var e,t;"function"==typeof(e=globalThis.define)&&(t=e,e=null),function(t,r,n,a,i){var o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},s="function"==typeof o[a]&&o[a],c=s.cache||{},u="undefined"!=typeof module&&"function"==typeof module.require&&module.require.bind(module);function l(e,r){if(!c[e]){if(!t[e]){var n="function"==typeof o[a]&&o[a];if(!r&&n)return n(e,!0);if(s)return s(e,!0);if(u&&"string"==typeof e)return u(e);var i=Error("Cannot find module '"+e+"'");throw i.code="MODULE_NOT_FOUND",i}d.resolve=function(r){var n=t[e][1][r];return null!=n?n:r},d.cache={};var f=c[e]=new l.Module(e);t[e][0].call(f.exports,d,f,f.exports,this)}return c[e].exports;function d(e){var t=d.resolve(e);return!1===t?{}:l(t)}}l.isParcelRequire=!0,l.Module=function(e){this.id=e,this.bundle=l,this.exports={}},l.modules=t,l.cache=c,l.parent=s,l.register=function(e,r){t[e]=[function(e,t){t.exports=r},{}]},Object.defineProperty(l,"root",{get:function(){return o[a]}}),o[a]=l;for(var f=0;fu);var a=e("~common/const"),i=e("~common/utils"),o=e("~services/ai-pick"),s=e("~services/ai-pick/store"),c=e("~services/ai-pick/widget-renderer");let u={matches:["*://s.1688.com/youyuan/index.htm*","*://s.1688.com/selloffer/similar_search.htm*"],run_at:"document_end"};async function l(){let e=(await (0,i.getExtensionLocalStorage)([a.STORAGE_KEY_AI_PICK_CONFIG]))[a.STORAGE_KEY_AI_PICK_CONFIG];if(!e)return;let t=e.supportList,r=t.filter(e=>new RegExp(e.regex).test(location.href));if(!r.length)return;let n=e?.websites?.[r[0]?.website];if(!n||n.isDisabled)return;let o=await (0,s.useAiPickStore).getState().fetchAiPickPermission();if(o)return n}(async function(){let e=await l();if(!e)return;let t=new c.WidgetRenderer,r=new o.PageOrchestrator(t,e);window.addEventListener("beforeunload",()=>{r.cleanup()}),r.observe()})()},{"~common/const":"bkfUq","~common/utils":"kYpGH","~services/ai-pick":"1wDFS","~services/ai-pick/store":"eRJ1i","~services/ai-pick/widget-renderer":"7tOZC","@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],bkfUq:[function(e,t,r){var n,a,i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"MAX_Z_INDEX",()=>u),i.export(r,"MODAL_Z_INDEX",()=>l),i.export(r,"OPERATION_Z_INDEX",()=>f),i.export(r,"MAX_COUNT",()=>d),i.export(r,"MAX_AGE",()=>h),i.export(r,"OVER_TIME",()=>p),i.export(r,"ONE_DAY_IN_MS",()=>v),i.export(r,"CODE_NOT_LOGIN",()=>m),i.export(r,"getChromeDefaultLang",()=>g),i.export(r,"DEFAULT_LANGUAGE",()=>b),i.export(r,"LANGUAGE_OPTIONS",()=>y),i.export(r,"IMAGE_SEARCH_CATEGORY",()=>_),i.export(r,"OPTIONS_HOVER_POSITION_IMAGE_CONFIG",()=>w),i.export(r,"DEFAULT_OPTIONS",()=>S),i.export(r,"STORAGE_KEY_STREAM_INFO_MAP",()=>E),i.export(r,"STORAGE_KEY_UUID",()=>k),i.export(r,"STORAGE_KEY_CRYPTO",()=>I),i.export(r,"STORAGE_KEY_DOWNLOAD_URL",()=>x),i.export(r,"STORAGE_KEY_VERSION_INFO",()=>O),i.export(r,"STORAGE_KEY_VERSION_LOG",()=>T),i.export(r,"STORAGE_KEY_CONFIGURATION",()=>A),i.export(r,"STORAGE_KEY_LOGIN_ID",()=>M),i.export(r,"STORAGE_KEY_USER_ID",()=>R),i.export(r,"STORAGE_KEY_REAL_TIME_USER_ID",()=>C),i.export(r,"STORAGE_KEY_IS_LOGIN",()=>j),i.export(r,"STORAGE_KEY_ACTIVE_TIME",()=>N),i.export(r,"STORAGE_KEY_OPEN_SEARCH_IMG_TOOLTIP",()=>P),i.export(r,"STORAGE_KEY_WANGWANG_UNREAD",()=>D),i.export(r,"STORAGE_KEY_WANGWANG_MTOP_TOKEN",()=>L),i.export(r,"STORAGE_KEY_IS_NUMBER_BROWSER",()=>F),i.export(r,"STORAGE_KEY_IS_OPEN_WEBSITE",()=>B),i.export(r,"STORAGE_KEY_OPTIONS",()=>U),i.export(r,"STORAGE_KEY_EXPRESS_DELIVERY_INFO",()=>z),i.export(r,"STORAGE_KEY_DRAWER_FIND_GOODS_SETTINGS",()=>H),i.export(r,"STORAGE_KEY_VIEW_TREND_PANEL_STATUS",()=>G),i.export(r,"STORAGE_KEY_DISABLE_DOWNLOAD_SETTING_WARNING",()=>q),i.export(r,"STORAGE_KEY_AB_TEST_INSERT_BTN_UI",()=>W),i.export(r,"STORAGE_KEY_PLUGIN_MENU_MODE",()=>K),i.export(r,"STORAGE_KEY_SHOW_GUIDANCE_REASON",()=>V),i.export(r,"STORAGE_KEY_FIND_SAME_GOODS_BTN",()=>Y),i.export(r,"STORAGE_KEY_ENTRY_POSITION",()=>J),i.export(r,"STORAGE_KEY_FLOATING_AI",()=>Z),i.export(r,"STORAGE_KEY_SHOULD_REPORT_BROWSER",()=>X),i.export(r,"STORAGE_KEY_DOWNLOAD_IMG_TYPE",()=>$),i.export(r,"STORAGE_KEY_DOWNLOAD_IMG_WAY",()=>Q),i.export(r,"STORAGE_KEY_AB_TEST_WORD_SEARCH_UI",()=>ee),i.export(r,"STORAGE_KEY_INSTALL_REPORTED",()=>et),i.export(r,"STORAGE_KEY_SHOULD_CONFIRM_INVITATION",()=>er),i.export(r,"STORAGE_KEY_ENTRY_NOTIFICATION",()=>en),i.export(r,"STORAGE_KEY_ACTIVE_NOTIFICATION",()=>ea),i.export(r,"STORAGE_KEY_UNREAD_NOTIFICATION",()=>ei),i.export(r,"STORAGE_KEY_MESSAGE_QUEUE",()=>eo),i.export(r,"STORAGE_KEY_ORDER_LOGISTICS_SWITCH",()=>es),i.export(r,"STORAGE_KEY_GOODS_OPERATION_FIXED_TOP",()=>ec),i.export(r,"STORAGE_KEY_GOODS_OPERATION_OPEN_STATUS",()=>eu),i.export(r,"STORAGE_KEY_MULTIPLE_INSTALLED_NOTIFICATION_TIME",()=>el),i.export(r,"STORAGE_KEY_TENDENCY_DAY_SELECT",()=>ef),i.export(r,"STORAGE_KEY_TRANSACTION_TREND_DAY_SELECT",()=>ed),i.export(r,"STORAGE_KEY_BLACK_LIST",()=>eh),i.export(r,"STORAGE_KEY_DEFAULT_LANGUAGE",()=>ep),i.export(r,"STORAGE_KEY_ON_LANGUAGE_CHANGE",()=>ev),i.export(r,"STORAGE_KEY_MTOP_ENV_SWITCH",()=>em),i.export(r,"STORAGE_KEY_USER_PERMISSION_LIST",()=>eg),i.export(r,"STORAGE_KEY_USER_PERMISSION_MAP",()=>eb),i.export(r,"STORAGE_KEY_OFFER_LIST_TOOLBAR_SHOW_EXTRA",()=>ey),i.export(r,"STORAGE_KEY_OFFER_LIST_TOOLBAR_PINNED",()=>e_),i.export(r,"STORAGE_KEY_OFFER_LIST_TOOLBAR_INFO",()=>ew),i.export(r,"STORAGE_KEY_SEARCH_HISTORY_LAST_TIMESTAMP",()=>eS),i.export(r,"STORAGE_KEY_OFFER_LIST_TOOLBAR_EXPORT_EXCLUDE_KEYS",()=>eE),i.export(r,"STORAGE_KEY_LATEST_VERSION",()=>ek),i.export(r,"STORAGE_KEY_AI_PICK_CONFIG",()=>eI),i.export(r,"STORAGE_KEY_AI_FIND_CONFIG",()=>ex),i.export(r,"STORAGE_KEY_FATIGUE_RECORDS",()=>eO),i.export(r,"STORAGE_KEY_SMART_LINK_MATERIAL_CONFIG",()=>eT),i.export(r,"STORAGE_KEY_SMART_LINK_MODULE",()=>eA),i.export(r,"STORAGE_KEY_AI_IMAGE_CONFIG",()=>eM),i.export(r,"STORAGE_KEY_TRANSLATION_TARGET_LANGUAGE",()=>eR),i.export(r,"STORAGE_KEY_SERVER_TRANSLATION_CONFIG",()=>eC),i.export(r,"ONBOARDING_FEATURE_URL_PARAM_KEY",()=>ej),i.export(r,"STORAGE_KEY_TASK_EXECUTION_RECORD",()=>eN),i.export(r,"STORAGE_KEY_REMOTE_SETTINGS",()=>eP),i.export(r,"STORAGE_KEY_AI_CHATBOT_CONFIG",()=>eD),i.export(r,"STORAGE_KEY_PAGE_ACTIVE_TIME",()=>eL),i.export(r,"STORAGE_KEY_NOTIFICATION_AB_TEST_GROUP",()=>eF),i.export(r,"STORAGE_KEY_NOTIFICATION_CONFIG",()=>eB),i.export(r,"STORAGE_KEY_EXTENSION_INSTALL_TIMESTAMP",()=>eU),i.export(r,"STORAGE_KEY_ONBOARDING_FEATURE",()=>ez),i.export(r,"STORAGE_KEY_ENABLE_DEBUG_LOG",()=>eH),i.export(r,"STORAGE_KEY_BIND_SHOP_FATIGUE",()=>eG),i.export(r,"STORAGE_KEY_SEARCH_MEMORY_ENTRY_POSITION",()=>eq),i.export(r,"STORAGE_KEY_CONTENT_SELECTOR_CONFIG",()=>eW),i.export(r,"STORAGE_KEY_SIDE_PANEL_OPEN",()=>eK),i.export(r,"STORAGE_KEY_PENDING_SIDEPANEL_MESSAGES",()=>eV),i.export(r,"STORAGE_KEY_USER_LOG_COLLECTION_CONFIG",()=>eY),i.export(r,"DEVELOPMENT_URL_PREFIX",()=>eJ),i.export(r,"TEST_URL_PREFIX",()=>eZ),i.export(r,"PRODUCTION_URL_PREFIX",()=>eX),i.export(r,"CONFIGURATION_JSON_NAME",()=>e$),i.export(r,"DOWNLOAD_ZIP_NAME",()=>eQ),i.export(r,"DOWNLOAD_CRX_NAME",()=>e0),i.export(r,"ENV",()=>a),i.export(r,"ENV_TAG",()=>e2),i.export(r,"ENV_PACKAGE",()=>e3),i.export(r,"ENV_VERSION",()=>e4),i.export(r,"IS_PACKAGE_SHOW_UPDATE",()=>e6),i.export(r,"GLOBAL_CONFIG",()=>e8),i.export(r,"LOGIN_URL",()=>e5),i.export(r,"PC_HOME_URL",()=>e7),i.export(r,"PC_ORDER_LIST_URL",()=>e9),i.export(r,"DEFAULT_UNINSTALL_URL",()=>te),i.export(r,"CONAN_APP_KEY",()=>tt),i.export(r,"MATCHES_LINK",()=>tr),i.export(r,"IS_QUARK_BROWSER",()=>tn),i.export(r,"IS_QQ_BROWSER",()=>ta),i.export(r,"IS_SOUGOU_BROWSER",()=>ti),i.export(r,"IS_SIDE_PANEL_SUPPORTED",()=>to),i.export(r,"DISABLE_DOWNLOAD_IMAGE",()=>ts),i.export(r,"USE_DYNAMIC_RULES",()=>tc),i.export(r,"MAIN_BROWSER",()=>tu);var o=e("~config/version-control.json"),s=i.interopDefault(o),c=e("./type");let u=2147483647,l=u-10,f=1100,d=5e3,h=7776e6,p=6e5,v=864e5,m=401,g=()=>{let e=navigator.language?navigator.language:"";return e?.toLocaleLowerCase()?.startsWith("zh")?"zh-CN":"en-US"},b=g()||"zh-CN",y=[{value:"en-US",label:"English"},{value:"zh-CN",label:"\u4e2d\u6587"}],_=[{key:c.ImageSearchDefaultChannel.DEFAULT,label:"\u9ed8\u8ba4\u6e20\u9053",icon:""},{key:c.ImageSearchDefaultChannel.ALL,label:"1688",icon:"https://gw.alicdn.com/imgextra/i3/O1CN01RbtNno1xR7N4UkwmR_!!6000000006439-55-tps-20-20.svg"},{key:c.ImageSearchDefaultChannel.KUA_JING,label:"1688\u8de8\u5883",icon:"https://gw.alicdn.com/imgextra/i3/O1CN01RbtNno1xR7N4UkwmR_!!6000000006439-55-tps-20-20.svg"},{key:c.ImageSearchDefaultChannel.TAOBAO,label:"\u6dd8\u5b9d",icon:"https://gw.alicdn.com/imgextra/i3/O1CN01k6dupu1I3Obu3VX4j_!!6000000000837-55-tps-20-20.svg"},{key:c.ImageSearchDefaultChannel.AMAZON,label:"\u4e9a\u9a6c\u900a",icon:"https://gw.alicdn.com/imgextra/i1/O1CN014l9H7329KV2MCwH57_!!6000000008049-55-tps-20-20.svg"},{key:c.ImageSearchDefaultChannel.ALIBABA,label:"\u963f\u91cc\u56fd\u9645\u7ad9",icon:"https://gw.alicdn.com/imgextra/i1/O1CN01sQ11ZX1ozcfT5Hlek_!!6000000005296-55-tps-300-300.svg"},{key:c.ImageSearchDefaultChannel.ALIEXPRESS,label:"\u901f\u5356\u901a",icon:"https://gw.alicdn.com/imgextra/i3/O1CN01dF8rpA1VXhpJQqFg6_!!6000000002663-55-tps-48-48.svg"},{key:c.ImageSearchDefaultChannel.OZON,label:"OZON",icon:"https://gw.alicdn.com/imgextra/i2/O1CN01WqdzEV1V5leJwX1uo_!!6000000002602-2-tps-96-96.png"}],w={[c.HoverPosition.LEFT_BOTTOM]:"https://img.alicdn.com/imgextra/i2/O1CN01K9QZuc1qAtxtGooFP_!!6000000005456-2-tps-2496-882.png",[c.HoverPosition.LEFT_TOP]:"https://img.alicdn.com/imgextra/i3/O1CN01nkJ3kB1h043F7CEQr_!!6000000004214-2-tps-2496-882.png",[c.HoverPosition.RIGHT_BOTTOM]:"https://img.alicdn.com/imgextra/i1/O1CN011KPmKN1qdkut4Ucis_!!6000000005519-2-tps-2496-882.png",[c.HoverPosition.RIGHT_TOP]:"https://img.alicdn.com/imgextra/i2/O1CN0148pQIn1gbKf5qlqw6_!!6000000004160-2-tps-2496-882.png"},S={[c.OptionsKey.WANGWANG_OPEN_IN_MODAL]:!0,[c.OptionsKey.INSERT_DOM_VISIBLE]:!0,[c.OptionsKey.IMAGE_SEARCH_VISIBLE]:!0,[c.OptionsKey.SHOW_DRAWER_FIND_GOODS]:!0,[c.OptionsKey.SHORTCUT_SCREENSHOT]:!0,[c.OptionsKey.SHOW_POPOVER_FIND_GOODS]:!0,[c.OptionsKey.LIST_SHOW_POPOVER_FIND_GOODS]:!0,[c.OptionsKey.SHOW_ENTRY_ORDER_INFO]:!1,[c.OptionsKey.SHOW_GLOBAL_ENTRY]:!0,[c.OptionsKey.SHOW_PIC_PREVIEW]:!0,[c.OptionsKey.GOODS_OPERATION_AREA]:!0,[c.OptionsKey.LANGUAGE]:b,[c.OptionsKey.HOVER_POSITION]:c.HoverPosition.LEFT_TOP,[c.OptionsKey.TRANSLATION_BUBBLE]:!0,[c.OptionsKey.NEW_SUPPLIER_PUSH]:!0,[c.OptionsKey.WANGWANG_PUSH]:!0,[c.OptionsKey.ABNORMAL_ORDER_PUSH]:!0,[c.OptionsKey.BATCH_INQUIRY_PUSH]:!0,[c.OptionsKey.IMAGE_SEARCH_DEFAULT_CHANNEL]:c.ImageSearchDefaultChannel.DEFAULT,[c.OptionsKey.SHOW_SEARCH_MEMORY_GLOBAL_ENTRY]:!0},E="__1688_EXTENSION_STREAM_INFO",k="_1688_EXTENSION_UUID",I="_1688_EXTENSION_CRYPTO",x="_1688_EXTENSION_DOWNLOAD_URL",O="_1688_EXTENSION_VERSION_INFO",T="_1688_EXTENSION_VERSION_LOG",A="_1688_EXTENSION_CONFIGURATION",M="_1688_EXTENSION_LOGIN_ID",R="_1688_EXTENSION_USER_ID",C="_1688_EXTENSION_REAL_TIME_USER_ID",j="_1688_EXTENSION_IS_LOGIN",N="_1688_EXTENSION_ACTIVE_TIME",P="_1688_EXTENSION_OPEN_SEARCH_IMG_TOOLTIP",D="_1688_EXTENSION_WANGWANG_UNREAD",L="_1688_EXTENSION_WANGWANG_MTOP_TOKEN",F="_1688_EXTENSION_IS_NUMBER_BROWSER",B="_1688_EXTENSION_IS_OPEN_WEBSITE",U="_1688_EXTENSION_OPTIONS",z="_1688_EXTENSION_EXPRESS_DELIVERY_INFO",H="_1688_EXTENSION_DRAWER_FIND_GOODS_SETTINGS",G="_1688_EXTENSION_VIEW_TREND_PANEL_STATUS",q="_1688_EXTENSION_DISABLE_DOWNLOAD_SETTING_WARNING",W="_1688_EXTENSION_AB_TEST_INSERT_BTN_UI",K="_1688_EXTENSION_PLUGIN_MENU_MODE",V="_1688_EXTENSION_SHOW_GUIDANCE_REASON",Y="findSameGoodsBtn",J="_1688_EXTENSION_ENTRY_POSITION",Z="_1688_EXTENSION_SHOW_AI_CHATBOT",X="_1688_EXTENSION_SHOULD_REPORT_BROWSER",$="_1688_EXTENSION_DOWNLOAD_IMG_TYPE",Q="_1688_EXTENSION_DOWNLOAD_IMG_WAY",ee="_1688_EXTENSION_AB_TEST_WORD_SEARCH_UI",et="_1688_EXTENSION_INSTALL_REPORTED",er="_1688_EXTENSION_SHOULD_CONFIRM_INVITATION",en="_1688_EXTENSION_ENTRY_NOTIFICATION",ea="_1688_EXTENSION_ACTIVE_NOTIFICATION",ei="_1688_EXTENSION_UNREAD_NOTIFICATION",eo="_1688_EXTENSION_MESSAGE_QUEUE",es="_1688_EXTENSION_ORDER_LOGISTICS_SWITCH",ec="_1688_EXTENSION_GOODS_OPERATION_FIXED_TOP",eu="_1688_EXTENSION_GOODS_OPERATION_OPEN_STATUS",el="_1688_EXTENSION_MULTIPLE_INSTALLED_NOTIFICATION_TIME",ef="_1688_EXTENSION_TENDENCY_DAY_SELECT",ed="_1688_EXTENSION_TRANSACTION_TREND_DAY_SELECT",eh="_1688_EXTENSION_BLACK_LIST",ep="_1688_EXTENSION_DEFAULT_LANGUAGE",ev="_1688_EXTENSION_ON_LANGUAGE_CHANGE",em="_1688_EXTENSION_MTOP_ENV_SWITCH",eg="_1688_EXTENSION_USER_PERMISSION_LIST",eb="_1688_EXTENSION_USER_PERMISSION_MAP",ey="_1688_EXTENSION_OFFER_LIST_TOOLBAR_SHOW_EXTRA",e_="_1688_EXTENSION_OFFER_LIST_TOOLBAR_PINNED",ew="_1688_EXTENSION_OFFER_LIST_TOOLBAR_INFO",eS="_1688_EXTENSION_SEARCH_HISTORY_LAST_TIMESTAMP",eE="_1688_EXTENSION_OFFER_LIST_TOOLBAR_EXPORT_EXCLUDE_KEYS",ek="_1688_EXTENSION_LATEST_VERSION",eI="_1688_EXTENSION_AI_PICK_CONFIG",ex="_1688_EXTENSION_AI_FIND_CONFIG",eO="_1688_EXTENSION_FATIGUE_RECORDS",eT="_1688_EXTENSION_SMART_LINK_MATERIAL_CONFIG",eA="_1688_EXTENSION_SMART_LINK_MODULE",eM="_1688_EXTENSION_AI_IMAGE_CONFIG",eR="_1688_EXTENSION_TRANSLATION_TARGET_LANGUAGE",eC="_1688_EXTENSION_SERVER_TRANSLATION_CONFIG",ej="pcPluginOnboardingFeature",eN="_1688_EXTENSION_TASK_EXECUTION_RECORD",eP="_1688_EXTENSION_REMOTE_SETTINGS",eD="_1688_EXTENSION_AI_CHATBOT_CONFIG",eL="_1688_EXTENSION_PAGE_ACTIVE_TIME",eF="_1688_EXTENSION_NOTIFICATION_AB_TEST_GROUP",eB="_1688_EXTENSION_NOTIFICATION_CONFIG",eU="_1688_EXTENSION_INSTALL_TIMESTAMP",ez="_1688_EXTENSION_ONBOARDING_FEATURE",eH="_1688_EXTENSION_ENABLE_DEBUG_LOG",eG="_1688_EXTENSION_BIND_SHOP_FATIGUE",eq="_1688_EXTENSION_SEARCH_MEMORY_ENTRY_POSITION",eW="_1688_EXTENSION_CONTENT_SELECTOR_CONFIG",eK="_1688_EXTENSION_SIDE_PANEL_OPEN",eV="_1688_EXTENSION_PENDING_SIDEPANEL_MESSAGES",eY="_1688_EXTENSION_COLLECTION_CONFIG",eJ="https://1688smartassistant.oss-cn-beijing.aliyuncs.com/development",eZ="https://1688smartassistant.oss-cn-beijing.aliyuncs.com/test",eX="https://1688smartassistant.oss-cn-beijing.aliyuncs.com",e$="version.json",eQ="1688-extension.zip",e0="1688-extension.crx";(n=a||(a={})).DEVELOPMENT="development",n.PRODUCTION="production",n.TEST="test";let e1={[a.DEVELOPMENT]:{env:a.DEVELOPMENT,cdn:{version:s.default,configuration:`${eJ}/${e$}`,zip:`${eJ}/${eQ}`,crx:`${eJ}/${e0}`}},[a.TEST]:{env:a.TEST,cdn:{version:"https://dev.o.alicdn.com/innovateHub/MarketMate/version.json",configuration:`${eZ}/${e$}`,zip:`${eZ}/${eQ}`,crx:`${eZ}/${e0}`}},[a.PRODUCTION]:{env:a.PRODUCTION,cdn:{version:"https://o.alicdn.com/innovateHub/MarketMate/version.json",configuration:`${eX}/${e$}`,zip:`${eX}/${eQ}`,crx:`${eX}/${e0}`}}},e2="production",e3="common",e4="1.1.8",e6=!e3?.includes("store")||"chrome-store"===e3,e8=e1[e2],e5="https://login.taobao.com/?redirect_url=https%3A%2F%2Flogin.1688.com%2Fmember%2Fjump.htm%3Ftarget%3Dhttps%253A%252F%252Flogin.1688.com%252Fmember%252FmarketSigninJump.htm%253FDone%253D%25252F%25252Fmy.1688.com%25252F&style=tao_custom&from=1688web",e7="https://www.1688.com/",e9="https://work.1688.com/home/buyer.htm?_path_=buyer2017Base/2017buyerbase_trade/buyList",te="https://air.1688.com/kapp/assets-group/haobangshou/UninstallRetention",tt="dfc62734abf1b2330e99f4c0d7efb0a7",tr=[{reg:/^(https?:\/\/)?(?:www\.)?baidu\.com\/s(?:[^\s]*)?$/,key:"wd=",parentElement:"#wrapper",insertElement:"#con-ar",logKey:"keyWordsSearchBD"},{reg:/^(https?:\/\/)?(?:www\.)?so\.com\/s(?:[^\s]*)?$/,key:"q=",parentElement:"#warper",insertElement:"#side_wrap",logKey:"keyWordsSearch360"},{reg:/^(https?:\/\/)?(?:www\.)?sogou\.com\/.*/,key:"query=",parentElement:"#sogou_wrap_id",insertElement:"#right",logKey:"keyWordsSearchSG"}],tn=/\bQuarkPC\b/i.test(navigator.userAgent),ta=/\bQQBrowser\b/i.test(navigator.userAgent),ti=/\bMetaSr\b/i.test(navigator.userAgent),to="undefined"!=typeof chrome&&!!chrome?.sidePanel?.open,ts=tn||ta||ti,tc="_USE_DYNAMIC_RULES_",tu=[{browser:"Chrome"},{browser:"360EE"},{browser:"360SE"},{browser:"Edge"},{browser:"Quark"},{browser:"QQBrowser"},{browser:"Sogou"},{browser:"2345Explorer"},{browser:"360AI"}]},{"~config/version-control.json":"8Bjpy","./type":"1PlmV","@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],"8Bjpy":[function(e,t,r){t.exports=JSON.parse('{"latestVersion":"0.1.31"}')},{}],"1PlmV":[function(e,t,r){var n,a,i,o,s,c,u,l,f,d,h=e("@parcel/transformer-js/src/esmodule-helpers.js");h.defineInteropFlag(r),h.export(r,"LogSource",()=>c),h.export(r,"OptionsKey",()=>u),h.export(r,"HoverPosition",()=>l),h.export(r,"ImageSearchDefaultChannel",()=>f),h.export(r,"ExecSmartLinkDslScene",()=>d);var p=e("~background/notifications/consts/enum");(n=c||(c={}))[n.API=0]="API",n[n.COMMON=1]="COMMON",n[n.SMART_LINK=2]="SMART_LINK",n[n.WEBSOCKET=3]="WEBSOCKET",n[n.TRACE=4]="TRACE",(a=u||(u={})).WANGWANG_VISIBLE="wangwangVisible",a.WANGWANG_OPEN_IN_MODAL="wangwangOpenInModal",a.INSERT_DOM_VISIBLE="insertDomVisible",a.IMAGE_SEARCH_VISIBLE="imageSearchVisible",a.SHOW_DRAWER_FIND_GOODS="showDrawerFindGoods",a.SHORTCUT_SCREENSHOT="shortcutScreenshot",a.SHOW_POPOVER_FIND_GOODS="showPopoverFindGoods",a.LIST_SHOW_POPOVER_FIND_GOODS="listShowPopoverFindGoods",a.SHOW_ENTRY_ORDER_INFO="showEntryOrderInfo",a.SHOW_GLOBAL_ENTRY="showGlobalEntry",a.SHOW_PIC_PREVIEW="showPicPreview",a.GOODS_OPERATION_AREA="goodsOperationArea",a.LANGUAGE="language",a.HOVER_POSITION="hoverPosition",a.TRANSLATION_BUBBLE="translationBubble",a.IMAGE_SEARCH_DEFAULT_CHANNEL="imageSearchDefaultChannel",a.SHOW_SEARCH_MEMORY_GLOBAL_ENTRY="showSearchMemoryGlobalEntry",a[a.NEW_SUPPLIER_PUSH=p.MessageBizType.SHOP_NEW_PRODUCT]="NEW_SUPPLIER_PUSH",a[a.ABNORMAL_ORDER_PUSH=p.MessageBizType.ABNORMAL_ORDER]="ABNORMAL_ORDER_PUSH",a[a.WANGWANG_PUSH=p.MessageBizType.WANGWANG]="WANGWANG_PUSH",a[a.BATCH_INQUIRY_PUSH=p.MessageBizType.BATCH_INQUIRY]="BATCH_INQUIRY_PUSH",(i=l||(l={})).LEFT_TOP="LeftTop",i.LEFT_BOTTOM="LeftBottom",i.RIGHT_TOP="RightTop",i.RIGHT_BOTTOM="RightBottom",(o=f||(f={})).DEFAULT="DEFAULT",o.ALL="ALL",o.KUA_JING="KUA_JING",o.TAOBAO="TAOBAO",o.AMAZON="AMAZON",o.ALIBABA="ALIBABA",o.ALIEXPRESS="ALIEXPRESS",o.OZON="OZON",(s=d||(d={})).EXEC_BG_DSL="execBackgroundDsl",s.EXEC_CS_DSL="execContentScriptDsl",s.PRELOAD_CS_DSL="preloadContentScriptDsl"},{"~background/notifications/consts/enum":"lfPmQ","@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],lfPmQ:[function(e,t,r){var n,a,i,o,s,c,u,l,f,d,h,p,v=e("@parcel/transformer-js/src/esmodule-helpers.js");v.defineInteropFlag(r),v.export(r,"MessageConflictStrategy",()=>u),v.export(r,"MessageSource",()=>l),v.export(r,"DisplayMode",()=>f),v.export(r,"MessageInteractionType",()=>d),v.export(r,"MessageBizType",()=>h),v.export(r,"MessageStatus",()=>p),(n=u||(u={})).KEEP_ALL="keep_all",n.REPLACE="replacement",n.DUMP="dump",(a=l||(l={})).POLLING="polling",a.USER_ACTION="user_action",a.PUSH="push",(i=f||(f={})).SILENT="silent",i.PROMINENT="prominent",(o=d||(d={})).AUTO_DISMISS="auto_dismiss",o.FORCE_INTERACTION="force_interaction",(s=h||(h={})).WANGWANG="wangwang",s.PLUGIN_UPDATE="update-version",s.MULTI_PLUGIN="multiple-installed",s.SHOP_NEW_PRODUCT="shop_publish",s.ABNORMAL_ORDER="abnormal_order",s.BATCH_INQUIRY="batch_inquiry",s.INTENT_PUSH="INTENT_PUSH",s.TASK_CENTER="task_completion",(c=p||(p={})).PENDING="pending",c.CONSUMING="consuming",c.READING="reading",c.COMPLETED="completed",c.INTERRUPTED="interrupted"},{"@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],fRZO2:[function(e,t,r){r.interopDefault=function(e){return e&&e.__esModule?e:{default:e}},r.defineInteropFlag=function(e){Object.defineProperty(e,"__esModule",{value:!0})},r.exportAll=function(e,t){return Object.keys(e).forEach(function(r){"default"===r||"__esModule"===r||t.hasOwnProperty(r)||Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[r]}})}),t},r.export=function(e,t,r){Object.defineProperty(e,t,{enumerable:!0,get:r})}},{}],kYpGH:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"sleep",()=>i),n.export(r,"retry",()=>o),n.export(r,"isTest",()=>s),n.export(r,"SPMMap",()=>c),n.export(r,"SPMExtension",()=>u),n.export(r,"formatUrlWithSPM",()=>l),n.export(r,"genUUID",()=>f),n.export(r,"getExtensionLocalStorage",()=>d),n.export(r,"getExtensionLocalStorageV2",()=>h),n.export(r,"getCachedOptions",()=>p),n.export(r,"isToday",()=>v),n.export(r,"getTodayString",()=>m),n.export(r,"formatDuration",()=>b),n.export(r,"getSafeInternalRemoteMediaUrl",()=>y),n.export(r,"transformBytesToBase64",()=>_),n.export(r,"encryptByCtr",()=>w),n.export(r,"compareVersions",()=>S),n.export(r,"getUUID",()=>E),n.export(r,"getEastEightDate",()=>k),n.export(r,"throttledFn",()=>I),n.export(r,"isChinese",()=>x),n.export(r,"removeDuplicates",()=>O),n.export(r,"getHtmlTextContent",()=>T),n.export(r,"debounce",()=>A),n.export(r,"safeJsonParse",()=>M),n.export(r,"enableRegisterMainScript",()=>R),n.export(r,"isChromeLargerThanOrEqualTo",()=>C),n.export(r,"isValidObject",()=>j),n.export(r,"isNonEmptyObject",()=>N),n.export(r,"isContentScript",()=>P);var a=e("./const");async function i(e){return new Promise(t=>{setTimeout(t,e)})}async function o(e,t){let r=0,n=null;for(;r{if("fromkv"===t.toLowerCase()){let n=decodeURIComponent(e);r.search=r.search.replace(`${t}=${encodeURIComponent(e)}`,`${t}=${n}`)}}),r.href}function f(){let e=Date.now(),t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=t.length,n="";for(;e>0;)n+=t.charAt(e%r),e=Math.floor(e/r);for(;n.length<16;)n+=t.charAt(Math.floor(Math.random()*r));let a=n.split("").sort(function(){return .5-Math.random()}).join("");return a.substring(0,16)}async function d(e){return new Promise(t=>{let r=setTimeout(()=>{console.error("storage.local.get timeout"),t({})},1e4);chrome.storage.local.get(e,e=>{clearTimeout(r),t(e||{})})})}async function h(e){return new Promise(t=>{let r=setTimeout(()=>{console.error("storage.local.get timeout"),t({})},1e4);chrome.storage.local.get(e,e=>{clearTimeout(r),t(e||{})})})}async function p(){let e=(await d(a.STORAGE_KEY_OPTIONS))[a.STORAGE_KEY_OPTIONS]||{};return{...a.DEFAULT_OPTIONS,...e}}function v(e){let t=new Date(e),r=new Date;return t.getFullYear()===r.getFullYear()&&t.getMonth()===r.getMonth()&&t.getDate()===r.getDate()}function m(){return new Date().toLocaleDateString(void 0,{month:"long",day:"numeric"})}function g(e){return e>9?e:"0"+e}function b(e,t,r){let n=setInterval(()=>{let a=Date.now(),i=e-a;i<0?(clearInterval(n),"function"==typeof r&&r()):"function"==typeof t&&t({days:g(Math.floor(i/864e5)),hours:g(Math.floor(i%864e5/36e5)),minutes:g(Math.floor(i%36e5/6e4)),seconds:g(Math.floor(i%6e4/1e3))})},1e3);return()=>clearInterval(n)}function y(e){try{let t=new URL(e);return t.searchParams.append(a.USE_DYNAMIC_RULES,"true"),t.href}catch(t){return e}}function _(e){let t="";for(let r=0;ra)return 1;if(t{try{let{[a.STORAGE_KEY_UUID]:e}=await d(a.STORAGE_KEY_UUID);if(!e){let e=f();return await chrome.storage.local.set({[a.STORAGE_KEY_UUID]:e}),e}return e}catch(e){return}};function k(e){let t=new Date;"number"==typeof e&&(t=new Date(e));let r=t.getTime()+6e4*t.getTimezoneOffset();return new Date(r+288e5)}function I(e,t){let r=0;return function(...n){let a=Date.now();a-r>=t&&(r=a,e.apply(this,n))}}function x(e){return"zh-CN"===e.getLang()}function O(e){return[...new Set(e)]}function T(e){return e?new DOMParser().parseFromString(e,"text/html").body.textContent:""}let A=(e,t)=>{let r=null;return(...n)=>{r&&clearTimeout(r),r=setTimeout(()=>{e(...n)},t)}};function M(e){try{return JSON.parse(e)}catch(e){return null}}function R(){return C(102)}function C(e){try{let t=navigator?.userAgent;if(!t)return!1;let r=Number(t.match(/Chrome\/(\d+)/)?.[1]);if(r&&r>=e)return!0;return!1}catch(e){return console.error(e),!1}}function j(e){return"object"==typeof e&&null!==e}function N(e){return j(e)&&Object.keys(e).length>0}function P(){return"undefined"!=typeof window&&"undefined"!=typeof document}},{"./const":"bkfUq","@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],"1wDFS":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"PageOrchestrator",()=>c);var a=e("./observers/image-crop"),i=e("./observers/image-switch"),o=e("./observers/scrollNew"),s=e("./observers/toolbar");class c{constructor(e,t){this.imageCropObserver=null,this.imageSwitchObserver=null,this.toolbarObserver=null,this.scrollObserver=null,this.widgetRenderer=null,this.config=t,this.widgetRenderer=e}observe(){this.setupImageSwitchObserver(),this.setupToolbarObserver(),this.setupImageCropObserver(),this.setupScrollObserver()}setupImageSwitchObserver(){let{imageDataConfig:e}=this.config;this.imageSwitchObserver=new i.ImageSwitchObserver({selector:e.referenceSelector,imageElementRelativePath:e.imageElementRelativePath,cropElementRelativePath:e.cropElementRelativePath},()=>{this.mountWidgets()})}setupImageCropObserver(){this.imageCropObserver=new a.ImageCropObserver}setupToolbarObserver(){this.toolbarObserver=new s.ToolbarObserver(e=>{this.widgetRenderer?.adjustIframePosition(e)})}setupScrollObserver(){this.scrollObserver=new o.ScrollObserver(e=>{this.widgetRenderer?.setVisible("overlay",e)},20)}cleanup(){this.cleanupImageCropObserver(),this.cleanupToolbarObserver(),this.cleanupScrollObserver(),this.cleanupImageSwitchObserver(),this.widgetRenderer?.cleanup()}cleanupImageCropObserver(){this.imageCropObserver&&(this.imageCropObserver.disconnect(),this.imageCropObserver=null)}cleanupToolbarObserver(){this.toolbarObserver&&(this.toolbarObserver.disconnect(),this.toolbarObserver=null)}cleanupScrollObserver(){this.scrollObserver&&(this.scrollObserver.disconnect(),this.scrollObserver=null)}cleanupImageSwitchObserver(){this.imageSwitchObserver&&(this.imageSwitchObserver.disconnect(),this.imageSwitchObserver=null)}isConfigValid(){return!!this.config?.imageDataConfig?.referenceSelector}mountWidgets(){if(this.config){if(!this.isConfigValid()){this.cleanup();return}this.widgetRenderer?.getWidgets().size&&this.widgetRenderer.getWidgets().size>=2||this.config.widgetsConfig.forEach(e=>{this.widgetRenderer?.renderWidget(e)})}}}},{"./observers/image-crop":"jhtze","./observers/image-switch":"aotb3","./observers/scrollNew":"lYtKE","./observers/toolbar":"cC7hN","@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],jhtze:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"ImageCropObserver",()=>i);var a=e("./base");class i extends a.DomObserverBase{constructor(){super({selector:"#space-image-head-sn > div.container > div > div.croper-container"}),this.imageCropObserver=null,this.callback=e=>{super.disconnect(),this.handleTargetElement(e)},this.init()}handleTargetElement(e){this.cleanupImageCropObserver(),this.imageCropObserver=new MutationObserver(t=>{t.forEach(t=>{"attributes"===t.type&&"style"===t.attributeName&&this.checkSelectionAreaClick(e)})}),this.imageCropObserver.observe(e,{attributes:!0,attributeFilter:["style"]}),this.checkSelectionAreaClick(e)}checkSelectionAreaClick(e){let t=e.parentElement,r=e.getAttribute("style")?.includes("visibility: visible;");requestAnimationFrame(()=>{t.setAttribute("style",r?"overflow-x: clip; overflow-y: visible;":"overflow-x: auto; overflow-y: hidden;")})}cleanupImageCropObserver(){this.imageCropObserver&&(this.imageCropObserver.disconnect(),this.imageCropObserver=null)}disconnect(){super.disconnect(),this.cleanupImageCropObserver()}}},{"./base":"eJR8E","@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],eJR8E:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"DomObserverBase",()=>i);var a=e("./manager");class i{constructor(e){this.config=e,this.observer=null,this.target=null,this.forceGlobalObserver=!1}init(){let e=this.config.root||document.body,t=e.querySelector(this.config.selector);(!t||(this.target=t,this.callback(t),this.forceGlobalObserver))&&(0,a.GlobalObserverManager).getInstance().register(this.config.selector,e=>{this.target=e,this.callback(e)})}disconnect(){(0,a.GlobalObserverManager).getInstance().unregister(this.config.selector),this.target=null}}},{"./manager":"e6OUZ","@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],e6OUZ:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"GlobalObserverManager",()=>a);class a{constructor(){this.observers=new Map,this.setupMainObserver()}static getInstance(){return a.instance||(a.instance=new a),a.instance}setupMainObserver(){this.mainObserver=new MutationObserver(e=>{e.forEach(e=>{e.addedNodes.forEach(e=>{e instanceof Element&&this.observers.forEach((t,r)=>{if(e.matches(r))t.callback(e);else{let n=e.querySelectorAll(r);n.length>0&&t.callback(n[0])}})})})}),this.mainObserver.observe(document.body,{childList:!0,subtree:!0})}register(e,t){this.observers.set(e,{callback:t})}unregister(e){this.observers.delete(e)}destroy(){this.mainObserver?.disconnect(),this.observers.clear()}}},{"@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],aotb3:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"ImageSwitchObserver",()=>c);var a=e("~libs/dom"),i=e("../store"),o=e("./base");function s(e,t){if(!e)return null;let r=RegExp(`${t}\\s*:\\s*([^;]+)`,"i"),n=e.match(r);return n?n[1].trim():null}class c extends o.DomObserverBase{constructor(e,t){super(e),this.onImageSearchInitHandler=t,this.targetTargetStyleObserver=null,this.forceGlobalObserver=!0,this.callback=t=>{this.onImageChangeHandler(t,e),this.onImageSearchInitHandler()},this.init()}onImageChangeHandler(e,t){(0,i.useAiPickStore).getState().switchImage();let r=(0,a.getNestedValue)(e,t.imageElementRelativePath);if(!r){console.warn("\u672a\u627e\u5230\u56fe\u7247\u5143\u7d20"),(0,i.useAiPickStore).getState().updateImageExtractStatus(i.AiPickProcessStatus.IMAGE_EXTRACT_FAILED);return}let n=(0,a.getNestedValue)(e,t.cropElementRelativePath);if(!n){console.warn("\u672a\u627e\u5230\u88c1\u526a\u5143\u7d20"),(0,i.useAiPickStore).getState().updateImageExtractStatus(i.AiPickProcessStatus.IMAGE_EXTRACT_FAILED);return}let o=this.extractImageData(r,n);isNaN(o.width)||isNaN(o.height)?this.observeTargetStyleChange(r,e=>{(0,i.useAiPickStore).getState().setImageData({...o,...e}),(0,i.startAiPick)()}):((0,i.useAiPickStore).getState().setImageData(o),(0,i.startAiPick)())}extractImageData(e,t){return{top:parseFloat(e.style.top)||0,left:parseFloat(e.style.left)||0,cropWidth:parseFloat(t.style.width||"91"),cropHeight:parseFloat(t.style.height||"91"),width:parseFloat(e.style.width),height:parseFloat(e.style.height),backgroundImage:e.style.backgroundImage.replace(/url\((.*)\)/,"$1").replace(/\"/g,"")}}observeTargetStyleChange(e,t){this.cleanupTargetStyleObserver(),this.targetTargetStyleObserver=new MutationObserver(e=>{for(let r of e)if("attributes"===r.type&&"style"===r.attributeName){let e=s(r.target.getAttribute("style"),"width"),n=s(r.target.getAttribute("style"),"height");if(e||n){requestAnimationFrame(()=>{t({width:parseFloat(e)||0,height:parseFloat(n)||0})}),this.cleanupTargetStyleObserver();break}}}),this.targetTargetStyleObserver.observe(e,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})}cleanupTargetStyleObserver(){this.targetTargetStyleObserver&&(this.targetTargetStyleObserver.disconnect(),this.targetTargetStyleObserver=null)}destroy(){super.disconnect(),this.cleanupTargetStyleObserver()}}},{"~libs/dom":"hXlzm","../store":"eRJ1i","./base":"eJR8E","@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],hXlzm:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"getCSSSelector",()=>function e(t){if(!t||!(t instanceof Element))return"";if(t===document.documentElement)return"html";if(t.id)return`#${CSS.escape(t.id)}`;let r="";return t.parentElement&&(r=e(t.parentElement))&&(r+=" > "),r+function(e){let t=e.parentElement,r=Array.from(t?.children||[]);if(!t||r.length<=1)return e.nodeName.toLowerCase();let n=Array.from(e.classList).map(e=>`.${CSS.escape(e)}`).join(""),a=-1,i=!0,o=!!n;return(r.some((t,r)=>{if(-1!==a&&!i&&!o)return!0;if(t===e&&(a=r),t!==e){t.nodeName===e.nodeName&&(i=!1);try{n&&t.matches(n)&&(o=!1)}catch(e){console.log(e)}}}),i)?e.nodeName.toLowerCase():o?e.nodeName.toLowerCase()+n:e.nodeName.toLowerCase()+`:nth-child(${a+1})`}(t)}),n.export(r,"myCreateElement",()=>c),n.export(r,"getDataFromReactInstance",()=>l),n.export(r,"getDataFromReactInstanceAsync",()=>f),n.export(r,"showToast",()=>d),n.export(r,"getNestedValue",()=>h),n.export(r,"injectCssStyle",()=>p),n.export(r,"injectShadowCssStyle",()=>v);var a=e("~common/images"),i=e("./post-message"),o=e("./react-fiber-main-handler"),s=e("./utils");function c(e,t){let r=document.createElement(e),{className:n,style:a,events:i,children:o,dataset:s,...c}=t||{};if(n&&(Array.isArray(n)?r.className=n.filter(e=>!!e).join(" "):r.className=n),c)for(let t in c)if("className"===t)r.className=c[t];else if("htmlFor"===t)"htmlFor"in r&&r.setAttribute("for",c[t]);else if(t in r)try{r[t]=c[t]}catch(r){console.warn(`\u5728 <${e}> \u5143\u7d20\u4e0a\u8bbe\u7f6e\u5c5e\u6027 '${t}' \u5931\u8d25:`,r)}else r.setAttribute(t,c[t]);if("img"===e&&"referrerPolicy"in r&&!("referrerPolicy"in c)&&(r.referrerPolicy="no-referrer"),Object.assign(r.style,a||{}),i)for(let e in i)r.addEventListener(e,i[e]);if(s)for(let e in s)r.dataset[e]=s[e];return o?.forEach(e=>{"string"==typeof e?r.appendChild(document.createTextNode(e)):e instanceof HTMLElement&&r.appendChild(e)}),r}let u=["^__reactInternalInstance","^__reactFiber"];function l(e,t){try{let r;if(!e||!(e instanceof Element))return;let n=[...t.instanceKeys||[],...u].map(e=>new RegExp(e)),a=Object.keys(e).length,i=Object.keys(e).sort((e,t)=>{let r=n.findIndex(t=>t.test(e)),i=n.findIndex(e=>e.test(t));return(-1===r?a:r)-(-1===i?a:i)});return i?.some(a=>{let i=n.some(e=>{if(e.test(a))return!0});if(!i)return;let o=e?.[a];return t.dataPaths?.some(e=>{let t=s.getValueByPath(o,e);if(null!=t)return r=t,!0})}),r}catch(e){console.error(e);return}}async function f(e,t){if(!e||!(e instanceof Element))return;let r=`data-mm-fiber-${Date.now()}-${Math.random().toString(36).slice(2)}`;e.setAttribute(r,"1");let n=new i.PostMessageChannel;try{let e=await n.sendMessage({name:o.GET_REACT_FIBER_DATA_MSG,request:{selector:`[${r}]`,instanceKeys:t.instanceKeys||[],dataPaths:t.dataPaths||[]}},{timeout:1e3});return e.success?e.data:void 0}finally{n.destroy(),e.removeAttribute(r)}}function d(e){let t=document.createElement("div"),r=document.createElement("span");r.innerText=e.message;let n=document.createElement("img");switch(n.style.height="18px",n.style.width="18px",n.style.marginRight="12px",n.referrerPolicy="no-referrer",e.type){case"success":n.src=a.IMAGE.IconSuccess;break;case"error":n.src=a.IMAGE.IconError;break;case"warning":n.src=a.IMAGE.IconWarning;break;default:n.src=a.IMAGE.IconInfo}t.append(n,r),t.style.position="fixed",t.style.display="flex",t.style.justifyContent="center",t.style.alignItems="center",t.style.top="40%",t.style.left="50%",t.style.transform="translateX(-50%)",t.style.padding="16px",t.style.backgroundColor="#333",t.style.color="#fff",t.style.borderRadius="5px",t.style.minWidth="250px",t.style.textAlign="center",t.style.zIndex="9999",t.style.opacity="0",t.style.transition="opacity 0.3s, visibility 0.3s",t.style.visibility="hidden",document.body.appendChild(t);let i=setTimeout(()=>{t.style.opacity="1",t.style.visibility="visible"},100),o=setTimeout(()=>{t.style.opacity="0",t.style.visibility="hidden",setTimeout(()=>{document.body.contains(t)&&document.body.removeChild(t),i=null,o=null},300)},3e3);return Object.assign(t.style,e.extraStyle||{}),()=>{null!==i&&(clearTimeout(i),i=null),null!==o&&(clearTimeout(o),o=null),document.body.contains(t)&&document.body.removeChild(t)}}let h=(e,t)=>{if(!t||"object"!=typeof e||null===e)return null;let r=t.replace(/\[(\d+)\]/g,".$1").split(".");return r.reduce((e,t)=>{if(null!=e){let r=e[t];return r&&r instanceof Node&&r.nodeType===Node.COMMENT_NODE?"firstChild"===t?r.nextSibling:r.previousSibling:r}return null},e)};function p(e,t){if(!e||t&&document.querySelector(`style#${t}`))return;let r=document.createElement("style");r.innerHTML=e,t&&(r.id=t),document.head.append(r)}function v(e,t){if(!e)return;let r=document.createElement("style");r.textContent=e,r.setAttribute("data-styled",""),t.append(r)}},{"~common/images":"iug4a","./post-message":"4hLsj","./react-fiber-main-handler":"6zH6I","./utils":"5BuMA","@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],iug4a:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"IMAGE",()=>a);let a={IconFolder:"https://img.alicdn.com/imgextra/i1/O1CN01Z70DtQ1xzSzevyLmc_!!6000000006514-55-tps-48-48.svg",IconSpecWarning:"https://img.alicdn.com/imgextra/i3/O1CN01tbUAE71gLInE30yDc_!!6000000004125-2-tps-48-48.png",IconChartSelect:"https://img.alicdn.com/imgextra/i4/O1CN01q2RnEZ27zbGaDPJtb_!!6000000007868-2-tps-36-36.png",IconChartSelected:"https://img.alicdn.com/imgextra/i2/O1CN01kTluCb1FcFpHjytp2_!!6000000000507-2-tps-48-48.png",IconZip:"https://img.alicdn.com/imgextra/i2/O1CN01PDnFQb23ekmBKOmWA_!!6000000007281-55-tps-200-200.svg",SwitchIcon:"https://img.alicdn.com/imgextra/i1/O1CN01ABegcn1ZlgIHxSTNc_!!6000000003235-55-tps-64-64.svg",IconBackBlue:"https://img.alicdn.com/imgextra/i4/O1CN01JrIJSM1LoW7nrNZmh_!!6000000001346-55-tps-10-10.svg",IconBackNew:"https://img.alicdn.com/imgextra/i4/O1CN01HGsw3C28czKQsEkZS_!!6000000007954-55-tps-14-14.svg",IconSearchBg:"https://img.alicdn.com/imgextra/i1/O1CN01JcJfdl1p04yuuDybA_!!6000000005297-2-tps-368-311.png",IconEvaluation1:"https://img.alicdn.com/imgextra/i3/O1CN01vWOFek1e8MMtNGYIh_!!6000000003826-2-tps-90-21.png",IconEvaluation2:"https://img.alicdn.com/imgextra/i4/O1CN01pBLdkK1KIcvt9PZfY_!!6000000001141-2-tps-102-30.png",IconOperationOpen:"https://img.alicdn.com/imgextra/i1/O1CN01iZMcRj1tf4tmkujSk_!!6000000005928-2-tps-48-48.png",IconOperationTopActive:"https://img.alicdn.com/imgextra/i4/O1CN01TJfBVV1fr4eUwCq75_!!6000000004059-2-tps-48-48.png",IconOperationTop:"https://img.alicdn.com/imgextra/i4/O1CN01yC5ccb1wVrmTRB07P_!!6000000006314-2-tps-48-48.png",IconDelete:"https://img.alicdn.com/imgextra/i3/O1CN01D6u2TW25meqJfDP5q_!!6000000007569-2-tps-72-72.png",IconDeleteHover:"https://img.alicdn.com/imgextra/i2/O1CN01btreNs24MinaKeqNu_!!6000000007377-2-tps-72-72.png",IconClose:"https://img.alicdn.com/imgextra/i3/O1CN01YyvmJM1XHnDSQI3vz_!!6000000002899-55-tps-24-24.svg",IconFold:"https://img.alicdn.com/imgextra/i2/O1CN01eWKFeq1s7M7aTzlFH_!!6000000005719-55-tps-17-9.svg",IconDownload:"https://img.alicdn.com/imgextra/i3/O1CN01KFm21X1ErXQaZEbXY_!!6000000000405-55-tps-48-48.svg",IconBackRed:"https://img.alicdn.com/imgextra/i3/O1CN01Yf3Hih1lZZCvCfhYU_!!6000000004833-55-tps-12-12.svg",PanelClose:"https://img.alicdn.com/imgextra/i2/O1CN01kCbGsq1D7uLtZyg82_!!6000000000170-55-tps-24-24.svg",IconLoading:"https://img.alicdn.com/imgextra/i3/O1CN01C2J8kd1UmWwwbUMwv_!!6000000002560-55-tps-48-48.svg",GuideLogo:"https://img.alicdn.com/imgextra/i4/O1CN01CpSENy1o8UdkIPx8G_!!6000000005180-2-tps-427-58.png",IconFindSameGoodsLogo:"https://img.alicdn.com/imgextra/i4/O1CN01FJSq8O1af6FApmOGx_!!6000000003356-55-tps-35-36.svg",IconDZ:"https://img.alicdn.com/imgextra/i2/O1CN015RnE6g1o9rpY6WMVY_!!6000000005183-2-tps-36-36.png",IconFK:"https://img.alicdn.com/imgextra/i2/O1CN01hZ4utY24oCYvEKF0Q_!!6000000007437-2-tps-36-36.png",IconFJ:"https://img.alicdn.com/imgextra/i2/O1CN01VO8S0k1MjJEpZGiaI_!!6000000001470-2-tps-36-36.png",IconXX:"https://img.alicdn.com/imgextra/i1/O1CN01KRtVBY1KwTOGAdK2m_!!6000000001228-2-tps-36-36.png",IconZX:"https://img.alicdn.com/imgextra/i3/O1CN01MrHGnh23HOZpAmyF3_!!6000000007230-2-tps-36-36.png",IconTitleSearch:"https://gw.alicdn.com/imgextra/i2/O1CN011AMRWp1wyGKyiNJPN_!!6000000006376-55-tps-23-23.svg",IconHoverTitleSearch:"https://gw.alicdn.com/imgextra/i1/O1CN01yCGdFW1lmOIZwkznt_!!6000000004861-55-tps-48-48.svg",IconHoverChaiCi:"https://gw.alicdn.com/imgextra/i2/O1CN01yJtyaJ1fcPyngaftZ_!!6000000004027-55-tps-48-48.svg",DingTalkQrCode:"https://img.alicdn.com/imgextra/i3/O1CN01TEntxG1nlaqtgKaDD_!!6000000005130-0-tps-864-814.jpg",SuccessIcon:"https://img.alicdn.com/imgextra/i2/O1CN01GNJjWn1Kq3rNcXiYk_!!6000000001214-2-tps-200-200.png",SuccessIconNoBorder:"https://img.alicdn.com/imgextra/i4/O1CN01I3404d1ddfqoBlRFg_!!6000000003759-55-tps-200-200.svg",IconSuccess:"https://img.alicdn.com/imgextra/i2/O1CN01GNJjWn1Kq3rNcXiYk_!!6000000001214-2-tps-200-200.png",IconWarning:"https://img.alicdn.com/imgextra/i4/O1CN015HOfwY1LN2NfYxbI8_!!6000000001286-2-tps-48-48.png",IconInfo:"https://img.alicdn.com/imgextra/i2/O1CN016gvryS1nBrxqwL8rc_!!6000000005052-2-tps-48-48.png",IconError:"https://img.alicdn.com/imgextra/i3/O1CN01NBn14x1f9Z2r5mJKj_!!6000000003964-2-tps-48-48.png",IconTrend:"https://img.alicdn.com/imgextra/i3/O1CN01t88w421Dd3Iv5n869_!!6000000000238-55-tps-200-200.svg",IconSearch:"https://img.alicdn.com/imgextra/i2/O1CN01Uju3s71qjFg8BXDcz_!!6000000005531-2-tps-48-48.png",orderLogisticsBarLogo:"https://gw.alicdn.com/imgextra/i1/O1CN01v7ZGgQ1ZaEPzEGPl1_!!6000000003210-2-tps-80-60.png",UpdateVersionImage:"https://img.alicdn.com/imgextra/i2/O1CN01fsZ0mf1zz7vrLhB1w_!!6000000006784-2-tps-1470-1440.png",IconHoverCopy:"https://gw.alicdn.com/imgextra/i4/O1CN01VAX9FG1gPsnkELNdD_!!6000000004135-55-tps-200-200.svg",IconArrowDown:"https://img.alicdn.com/imgextra/i3/O1CN019t75v51JR2cMOvl5f_!!6000000001024-2-tps-48-48.png",IconArrowUp:"https://img.alicdn.com/imgextra/i2/O1CN01B8Oui81RWYJImw3Xy_!!6000000002119-2-tps-48-48.png",IconSwap:"https://img.alicdn.com/imgextra/i4/O1CN01wRnmMt1Kk6kP6THtV_!!6000000001201-2-tps-48-48.png",IconClosePng:"https://img.alicdn.com/imgextra/i3/O1CN01lfp0rf1Yo8rFs3T8N_!!6000000003105-2-tps-54-54.png",IconClose_White:"https://img.alicdn.com/imgextra/i3/O1CN01lZDr8b1Q2UjWNNU93_!!6000000001918-2-tps-32-32.png",IconOperationLogo:"https://gw.alicdn.com/imgextra/i3/O1CN01Kh2uBT1Sohfuu463D_!!6000000002294-55-tps-33-31.svg",IconAILogo:"https://gw.alicdn.com/imgextra/i3/O1CN01OgjNU925ZNR04UUBQ_!!6000000007540-55-tps-23-14.svg",IconAILogoWhite:"https://gw.alicdn.com/imgextra/i1/O1CN01PP7w2i1XQ2QL9Juqo_!!6000000002917-55-tps-23-14.svg"}},{"@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],"4hLsj":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"PostMessageChannel",()=>i),n.export(r,"getPostMessageChannelSign",()=>o),n.export(r,"isPostMessageChannelValid",()=>s);var a=e("./md5");class i{constructor(){this.pendingMessages=new Map,this.handleMessage=this.handleMessage.bind(this),window.addEventListener("message",this.handleMessage)}sendMessage(e,t){let r=this.generateUniqueId(),n=Date.now(),a=o(r,e.name,n,e.request),i={id:r,name:e.name,sign:a,timestamp:n,payload:e.request},s=t?.timeout||1e4;return new Promise(n=>{this.pendingMessages.set(r,{name:e.name,resolve:n}),window.postMessage(i,t?.targetOrigin||"*"),setTimeout(()=>{this.pendingMessages.has(r)&&(this.pendingMessages.delete(r),n({success:!1,message:`Request timed out after ${s}ms: ${e.name} ${JSON.stringify(e.request)}`}))},s)})}handleMessage(e){let t=e.data;if(!s(t))return;let r=this.pendingMessages.get(t.id);if(r){if(t.name!==`${r.name}_FINISH`)return;r.resolve({success:!0,data:t.payload}),this.pendingMessages.delete(t.id)}}generateUniqueId(){return`${Date.now()}-${Math.random().toString(36).substring(2)}`}destroy(){window.removeEventListener("message",this.handleMessage),this.pendingMessages.forEach(e=>{e.resolve?.({success:!1,message:"MessageChannel destroyed before response received"})}),this.pendingMessages.clear()}}function o(e,t,r,n){return(0,a.md5)(e+"&"+t+"&"+r+"&"+JSON.stringify(n))}function s(e){if(!e||!e.id||!e.name||!e.sign)return!1;let t=o(e.id,e.name,e.timestamp,e.payload);return t===e.sign}},{"./md5":"3ODxA","@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],"3ODxA":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(e){let t,r,n,a,i,o,s,c,u;function l(e,t){return e<>>32-t}function f(e,t){let r,n,a,i,o;return(a=2147483648&e,i=2147483648&t,r=1073741824&e,n=1073741824&t,o=(1073741823&e)+(1073741823&t),r&n)?2147483648^o^a^i:r|n?1073741824&o?3221225472^o^a^i:1073741824^o^a^i:o^a^i}function d(e,t,r,n,a,i,o){return e=f(e,f(f(t&r|~t&n,a),o)),f(l(e,i),t)}function h(e,t,r,n,a,i,o){return e=f(e,f(f(t&n|r&~n,a),o)),f(l(e,i),t)}function p(e,t,r,n,a,i,o){return e=f(e,f(f(t^r^n,a),o)),f(l(e,i),t)}function v(e,t,r,n,a,i,o){return e=f(e,f(f(r^(t|~n),a),o)),f(l(e,i),t)}function m(e){let t,r="",n="";for(t=0;t<=3;t++)r+=(n="0"+(e>>>8*t&255).toString(16)).substr(n.length-2,2);return r}let g=[];for(t=0,g=function(e){let t;let r=e.length,n=r+8,a=((n-n%64)/64+1)*16,i=Array(a-1),o=0,s=0;for(;s>>29,i}(e=function(e){e=e.replace(/\r\n/g,"\n");let t="";for(let r=0;r127&&n<2048?t+=String.fromCharCode(n>>6|192)+String.fromCharCode(63&n|128):t+=String.fromCharCode(n>>12|224)+String.fromCharCode(n>>6&63|128)+String.fromCharCode(63&n|128)}return t}(e)),o=1732584193,s=4023233417,c=2562383102,u=271733878;ta)},{"@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],"6zH6I":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"GET_REACT_FIBER_DATA_MSG",()=>o),n.export(r,"handleGetReactFiberDataMessage",()=>s);var a=e("./dom"),i=e("./post-message");let o="get-react-fiber-data";function s(e){let t;let r=e.data;if(!(0,i.isPostMessageChannelValid)(r)||r.name!==o)return;let n=r.payload;try{let e=document.querySelector(n.selector);e&&(t=(0,a.getDataFromReactInstance)(e,{instanceKeys:n.instanceKeys,dataPaths:n.dataPaths}))}catch(e){console.warn("[handleGetReactFiberDataMessage] error:",e)}let s=Date.now(),c=`${o}_FINISH`,u=(0,i.getPostMessageChannelSign)(r.id,c,s,t);window.postMessage({id:r.id,name:c,sign:u,timestamp:s,payload:t},e.origin||"*")}},{"./dom":"hXlzm","./post-message":"4hLsj","@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],"5BuMA":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(e){return new Promise(t=>{e||t({success:!1,message:"\u6ca1\u6709\u8981\u590d\u5236\u7684\u5185\u5bb9"});let r=()=>{try{let r=document.createElement("textarea");r.style.display="none",r.value=e,document.body.appendChild(r),r.select(),document.execCommand("copy"),document.body.removeChild(r),t({success:!0})}catch(e){console.warn("\u590d\u5236\u5931\u8d25",e),t({success:!1,message:"\u590d\u5236\u5931\u8d25"})}};navigator.clipboard&&navigator.clipboard.writeText?navigator.clipboard.writeText(e).then(()=>{t({success:!0})}).catch(()=>r()):r()})}function i(e,t){try{let r=t.split("."),n=e;for(let e=0;ea),n.export(r,"getValueByPath",()=>i)},{"@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],eRJ1i:[function(e,t,r){var n,a,i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"AI_SEARCH_SCENE_CODE",()=>f),i.export(r,"AiPickProcessStatus",()=>a),i.export(r,"storeToCache",()=>h),i.export(r,"useAiPickStore",()=>p),i.export(r,"startAiPick",()=>v);var o=e("zustand"),s=e("zustand/middleware"),c=e("~background/log"),u=e("./image-processor"),l=e("./service");let f="SC_9f7445b21";(n=a||(a={})).INIT="init",n.IMAGE_SWITCHED="image-switched",n.IMAGE_EXTRACT_FAILED="image-extract-failed",n.IMAGE_EXTRACT_COMPLETE="image-extract-complete",n.IMAGE_CROP_FAILED="image-crop-failed",n.IMAGE_CROP_COMPLETE="image-crop-complete",n.IMAGE_UPLOADING="image-uploading",n.IMAGE_UPLOAD_COMPLETE="image-upload-complete",n.IMAGE_UPLOAD_FAILED="image-upload-failed",n.SERVICE_CALL_IN_PROGRESS="service-call-in-progress",n.SERVICE_DATA_RECEIVED="service-data-received",n.SERVICE_DATA_FAILED="service-data-failed";let d=new Map,h=()=>{let e=p.getState();e.imageData&&d.set(JSON.stringify(e.imageData),{imageData:e.imageData,imageUrl:e.imageUrl,accessToken:e.accessToken,messageInfo:e.messageInfo,aiPickProcessStatus:e.aiPickProcessStatus,uiRenderState:e.uiRenderState})},p=(0,o.create)()((0,s.subscribeWithSelector)((e,t)=>({aiPickProcessStatus:a.INIT,imageData:null,imageUrl:"",accessToken:"",messageInfo:{sceneCode:f,sessionId:"",msgId:"",messageStatus:""},uiRenderState:{inline:{isVisible:!1},overlay:{isVisible:!1}},updateImageExtractStatus:t=>{e({aiPickProcessStatus:t})},updateVisibility:(r,n)=>{e({uiRenderState:{...t().uiRenderState,[r]:{isVisible:n}}})},switchImage:()=>{(0,c.sendLog)({type:"monitor",target:"ai-pick",extra:{stage:"switch-image"}}),h(),e({aiPickProcessStatus:a.IMAGE_SWITCHED})},setImageData:t=>{if((0,c.sendLog)({type:"monitor",target:"ai-pick",extra:{stage:"set-image-data",message:JSON.stringify({width:t.width,height:t.height,top:t.top,left:t.left,cropWidth:t.cropWidth,cropHeight:t.cropHeight,backgroundImage:t.backgroundImage.slice(0,6)})}}),e({imageData:t,aiPickProcessStatus:a.IMAGE_EXTRACT_COMPLETE}),d.has(JSON.stringify(t))){(0,c.sendLog)({type:"monitor",target:"ai-pick",extra:{stage:"set-image-data",source:"cache"}});let r=d.get(JSON.stringify(t));e({imageUrl:r?.imageUrl||"",messageInfo:r?.messageInfo||{sceneCode:f,sessionId:"",msgId:"",messageStatus:"",messageError:void 0},aiPickProcessStatus:r?.aiPickProcessStatus===a.SERVICE_DATA_RECEIVED?r?.aiPickProcessStatus:a.IMAGE_SWITCHED})}else e({imageUrl:"",messageInfo:{sceneCode:f,sessionId:"",msgId:"",messageStatus:"",messageError:void 0}})},fetchAiPickPermission:async()=>{let t=await (0,l.getAiPickPermission)(),{access:r,accessToken:n}=t||{};return e({accessToken:r&&n?n:""}),!!(r&&n)},cropImage:async t=>{try{(0,c.sendLog)({type:"monitor",target:"ai-pick",extra:{stage:"crop-image"}});let r=(0,u.ImageProcessor).parseImageData(t),n=await (0,u.ImageProcessor).cropImageFromSource({...r,quality:1});return e({aiPickProcessStatus:a.IMAGE_CROP_COMPLETE}),n}catch(t){return e({aiPickProcessStatus:a.IMAGE_CROP_FAILED}),(0,c.sendLog)({type:"error",target:"ai-pick",extra:{status:a.IMAGE_CROP_FAILED,message:t instanceof Error?t.message:String(t),stack:t instanceof Error?t.stack:void 0,name:t instanceof Error?t.name:void 0}}),""}},uploadCropImage:async t=>{try{(0,c.sendLog)({type:"monitor",target:"ai-pick",extra:{stage:"upload-crop-image"}}),e({aiPickProcessStatus:a.IMAGE_UPLOADING});let r=await (0,l.uploadBase64Img)(t);return e({imageUrl:r?.imageUrl||"",aiPickProcessStatus:a.IMAGE_UPLOAD_COMPLETE}),r?.imageUrl||""}catch(t){return(0,c.sendLog)({type:"error",target:"ai-pick",extra:{stage:"upload-crop-image",message:t instanceof Error?t.message:String(t),stack:t instanceof Error?t.stack:void 0,name:t instanceof Error?t.name:void 0}}),e({aiPickProcessStatus:a.IMAGE_UPLOAD_FAILED}),null}},requestAiPick:async()=>{let{accessToken:r,imageUrl:n}=t();(0,c.sendLog)({type:"monitor",target:"ai-pick",extra:{stage:"request-ai-pick",params:{accessToken:r,imageUrl:n}}}),e({aiPickProcessStatus:a.SERVICE_CALL_IN_PROGRESS});let i=await (0,l.aiPick)(n,r);return 0===i.code?e({aiPickProcessStatus:a.SERVICE_DATA_RECEIVED,messageInfo:i?.data?.messageInfo||void 0}):(e({aiPickProcessStatus:a.SERVICE_DATA_FAILED,messageInfo:{sceneCode:f,sessionId:"",msgId:"",messageStatus:"",messageError:i?.error?.message||void 0}}),(0,c.sendLog)({type:"error",target:"ai-pick",extra:{stage:"request-ai-pick",status:a.SERVICE_DATA_FAILED,message:i?.error?.message||""}})),i}}))),v=async(e=0,t=3)=>{let{accessToken:r,imageUrl:n,imageData:i,aiPickProcessStatus:o}=p.getState();if(e>=t)return;if(!r||!i){(0,c.sendLog)({type:"monitor",target:"ai-pick",extra:{stage:"start-ai-pick",status:`${r?"":"\u6ca1\u6709accessToken"}; ${i?"":"\u6ca1\u6709imageData"}`}});return}if(!n){let e=await p.getState().cropImage(i);if(!e)return;let t=await p.getState().uploadCropImage(e);if(!t)return}if(o===a.SERVICE_DATA_RECEIVED)return;let s=await p.getState().requestAiPick();if(-1===s.code&&s?.error?.message.errorCode===(0,l.AiPickErrorCode).INVALID_ACCESS.toString()){await p.getState().fetchAiPickPermission(),await v(e+1,t);return}}},{zustand:"aRAx1","zustand/middleware":"j21iG","~background/log":"5w5vQ","./image-processor":"8dFwT","./service":"hrDg8","@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],aRAx1:[function(e,t,r){var n=e("a19f4edd89926025"),a=e("a0cacd268d6bf882");Object.keys(n).forEach(function(e){"default"===e||Object.prototype.hasOwnProperty.call(r,e)||Object.defineProperty(r,e,{enumerable:!0,get:function(){return n[e]}})}),Object.keys(a).forEach(function(e){"default"===e||Object.prototype.hasOwnProperty.call(r,e)||Object.defineProperty(r,e,{enumerable:!0,get:function(){return a[e]}})})},{a19f4edd89926025:"aYser",a0cacd268d6bf882:"e0gap"}],aYser:[function(e,t,r){let n=e=>{let t;let r=new Set,n=(e,n)=>{let a="function"==typeof e?e(t):e;if(!Object.is(a,t)){let e=t;t=(null!=n?n:"object"!=typeof a||null===a)?a:Object.assign({},t,a),r.forEach(r=>r(t,e))}},a=()=>t,i={setState:n,getState:a,getInitialState:()=>o,subscribe:e=>(r.add(e),()=>r.delete(e))},o=t=e(n,a,i);return i};r.createStore=e=>e?n(e):n},{}],e0gap:[function(e,t,r){var n=e("6a69048f974f8971"),a=e("985957b117977eb9");let i=e=>e;function o(e,t=i){let r=n.useSyncExternalStore(e.subscribe,n.useCallback(()=>t(e.getState()),[e,t]),n.useCallback(()=>t(e.getInitialState()),[e,t]));return n.useDebugValue(r),r}let s=e=>{let t=a.createStore(e),r=e=>o(t,e);return Object.assign(r,t),r};r.create=e=>e?s(e):s,r.useStore=o},{"6a69048f974f8971":"a8qhJ","985957b117977eb9":"aYser"}],a8qhJ:[function(e,t,r){t.exports=e("956f36295e4e0134")},{"956f36295e4e0134":"iTdc5"}],iTdc5:[function(e,t,r){var n=Symbol.for("react.element"),a=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),u=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.iterator,v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function b(e,t,r){this.props=e,this.context=t,this.refs=g,this.updater=r||v}function y(){}function _(e,t,r){this.props=e,this.context=t,this.refs=g,this.updater=r||v}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=b.prototype;var w=_.prototype=new y;w.constructor=_,m(w,b.prototype),w.isPureReactComponent=!0;var S=Array.isArray,E=Object.prototype.hasOwnProperty,k={current:null},I={key:!0,ref:!0,__self:!0,__source:!0};function x(e,t,r){var a,i={},o=null,s=null;if(null!=t)for(a in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(o=""+t.key),t)E.call(t,a)&&!I.hasOwnProperty(a)&&(i[a]=t[a]);var c=arguments.length-2;if(1===c)i.children=r;else if(1{let t=n.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([e,t])=>[e,t.getState()])):{}},i=(e,t,r)=>{if(void 0===e)return{type:"untracked",connection:t.connect(r)};let a=n.get(r.name);if(a)return{type:"tracked",store:e,...a};let i={connection:t.connect(r),stores:{}};return n.set(r.name,i),{type:"tracked",store:e,...i}},o=(e,t)=>{if(void 0===t)return;let r=n.get(e);r&&(delete r.stores[t],0===Object.keys(r.stores).length&&n.delete(e))},s=e=>{var t,r;if(!e)return;let n=e.split("\n"),a=n.findIndex(e=>e.includes("api.setState"));if(a<0)return;let i=(null==(t=n[a+1])?void 0:t.trim())||"";return null==(r=/.+ (.+) .+/.exec(i))?void 0:r[1]},c=(e,t)=>{let r;try{r=JSON.parse(e)}catch(e){console.error("[zustand devtools middleware] Could not parse the received json",e)}void 0!==r&&t(r)};function u(e,t){let r;try{r=e()}catch(e){return}return{getItem:e=>{var n;let a=e=>null===e?null:JSON.parse(e,null==t?void 0:t.reviver),i=null!=(n=r.getItem(e))?n:null;return i instanceof Promise?i.then(a):a(i)},setItem:(e,n)=>r.setItem(e,JSON.stringify(n,null==t?void 0:t.replacer)),removeItem:e=>r.removeItem(e)}}let l=e=>t=>{try{let r=e(t);if(r instanceof Promise)return r;return{then:e=>l(e)(r),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>l(t)(e)}}};r.combine=function(e,t){return(...r)=>Object.assign({},e,t(...r))},r.createJSONStorage=u,r.devtools=(e,t={})=>(r,n,u)=>{let l;let{enabled:f,anonymousActionType:d,store:h,...p}=t;try{l=null!=f&&f&&window.__REDUX_DEVTOOLS_EXTENSION__}catch(e){}if(!l)return e(r,n,u);let{connection:v,...m}=i(h,l,p),g=!0;u.setState=(e,t,i)=>{let o=r(e,t);if(!g)return o;let c=void 0===i?{type:d||s(Error().stack)||"anonymous"}:"string"==typeof i?{type:i}:i;return void 0===h?null==v||v.send(c,n()):null==v||v.send({...c,type:`${h}/${c.type}`},{...a(p.name),[h]:u.getState()}),o},u.devtools={cleanup:()=>{v&&"function"==typeof v.unsubscribe&&v.unsubscribe(),o(p.name,h)}};let b=(...e)=>{let t=g;g=!1,r(...e),g=t},y=e(u.setState,n,u);if("untracked"===m.type?null==v||v.init(y):(m.stores[m.store]=u,null==v||v.init(Object.fromEntries(Object.entries(m.stores).map(([e,t])=>[e,e===m.store?y:t.getState()])))),u.dispatchFromDevtools&&"function"==typeof u.dispatch){let e=u.dispatch;u.dispatch=(...t)=>{e(...t)}}return v.subscribe(e=>{var t;switch(e.type){case"ACTION":if("string"!=typeof e.payload){console.error("[zustand devtools middleware] Unsupported action format");return}return c(e.payload,e=>{if("__setState"===e.type){if(void 0===h){b(e.state);return}1!==Object.keys(e.state).length&&console.error(` [zustand devtools middleware] Unsupported __setState action format. When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(), and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } } `);let t=e.state[h];if(null==t)return;JSON.stringify(u.getState())!==JSON.stringify(t)&&b(t);return}u.dispatchFromDevtools&&"function"==typeof u.dispatch&&u.dispatch(e)});case"DISPATCH":switch(e.payload.type){case"RESET":if(b(y),void 0===h)return null==v?void 0:v.init(u.getState());return null==v?void 0:v.init(a(p.name));case"COMMIT":if(void 0===h){null==v||v.init(u.getState());break}return null==v?void 0:v.init(a(p.name));case"ROLLBACK":return c(e.state,e=>{if(void 0===h){b(e),null==v||v.init(u.getState());return}b(e[h]),null==v||v.init(a(p.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return c(e.state,e=>{if(void 0===h){b(e);return}JSON.stringify(u.getState())!==JSON.stringify(e[h])&&b(e[h])});case"IMPORT_STATE":{let{nextLiftedState:r}=e.payload,n=null==(t=r.computedStates.slice(-1)[0])?void 0:t.state;if(!n)return;void 0===h?b(n):b(n[h]),null==v||v.send(null,r);break}case"PAUSE_RECORDING":return g=!g}return}}),y},r.persist=(e,t)=>(r,n,a)=>{let i,o={storage:u(()=>localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},s=!1,c=new Set,f=new Set,d=o.storage;if(!d)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),r(...e)},n,a);let h=()=>{let e=o.partialize({...n()});return d.setItem(o.name,{state:e,version:o.version})},p=a.setState;a.setState=(e,t)=>(p(e,t),h());let v=e((...e)=>(r(...e),h()),n,a);a.getInitialState=()=>v;let m=()=>{var e,t;if(!d)return;s=!1,c.forEach(e=>{var t;return e(null!=(t=n())?t:v)});let a=(null==(t=o.onRehydrateStorage)?void 0:t.call(o,null!=(e=n())?e:v))||void 0;return l(d.getItem.bind(d))(o.name).then(e=>{if(e){if("number"!=typeof e.version||e.version===o.version)return[!1,e.state];if(o.migrate){let t=o.migrate(e.state,e.version);return t instanceof Promise?t.then(e=>[!0,e]):[!0,t]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}return[!1,void 0]}).then(e=>{var t;let[a,s]=e;if(r(i=o.merge(s,null!=(t=n())?t:v),!0),a)return h()}).then(()=>{null==a||a(i,void 0),i=n(),s=!0,f.forEach(e=>e(i))}).catch(e=>{null==a||a(void 0,e)})};return a.persist={setOptions:e=>{o={...o,...e},e.storage&&(d=e.storage)},clearStorage:()=>{null==d||d.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>m(),hasHydrated:()=>s,onHydrate:e=>(c.add(e),()=>{c.delete(e)}),onFinishHydration:e=>(f.add(e),()=>{f.delete(e)})},o.skipHydration||m(),i||v},r.redux=(e,t)=>(r,n,a)=>(a.dispatch=t=>(r(r=>e(r,t),!1,t),t),a.dispatchFromDevtools=!0,{dispatch:(...e)=>a.dispatch(...e),...t}),r.subscribeWithSelector=e=>(t,r,n)=>{let a=n.subscribe;n.subscribe=(e,t,r)=>{let i=e;if(t){let a=(null==r?void 0:r.equalityFn)||Object.is,o=e(n.getState());i=r=>{let n=e(r);if(!a(o,n)){let e=o;t(o=n,e)}},(null==r?void 0:r.fireImmediately)&&t(o,o)}return a(i)};let i=e(t,r,n);return i}},{}],"5w5vQ":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"sendLog",()=>m);var a=e("@ali/1688-marketmate-lib"),i=e("@ali/1688-plugin-logger"),o=e("~api/common"),s=e("~common/const"),c=e("~common/type"),u=e("~common/utils"),l=e("~libs/debugLog");let f=0,d=g(),h=0,p=null,v={[c.LogSource.COMMON]:{project:"ai-pilot",sourceLogstore:"extension-log_source",logstore:"extension-log",host:"cn-shanghai.log.aliyuncs.com",time:1,count:5},[c.LogSource.API]:{project:"cbu-pc-plugin-api",sourceLogstore:"api-log_source",logstore:"api-log",host:"cn-hangzhou.log.aliyuncs.com",time:1,count:5},[c.LogSource.SMART_LINK]:{project:"cbu-pc-plugin-smart-link",sourceLogstore:"smart-link-client-log_source",logstore:"smart-link-client-log",host:"cn-hangzhou.log.aliyuncs.com",time:1,count:5},[c.LogSource.WEBSOCKET]:{project:"cbu-pc-plugin-trace-log",sourceLogstore:"websocket-log_source",logstore:"websocket-log",host:"cn-hangzhou.log.aliyuncs.com",time:1,count:5},[c.LogSource.TRACE]:{project:"cbu-pc-plugin-trace-log",sourceLogstore:"monitor-log_source",logstore:"monitor-log",host:"cn-hangzhou.log.aliyuncs.com",time:1,count:5}},m=async(e,t=c.LogSource.COMMON)=>{p||(p=Promise.resolve().then(async()=>{let{[s.STORAGE_KEY_REMOTE_SETTINGS]:e}=await (0,u.getExtensionLocalStorage)(s.STORAGE_KEY_REMOTE_SETTINGS),t=e?.disableEncryptLog??!1,r={};return Object.entries(v).forEach(([e,n])=>{r[e]=new i.SLSLogger({project:n.project,logstore:t?n.logstore:n.sourceLogstore,host:n.host,time:n.time,count:n.count,encrypt:!t})}),r}).catch(e=>(m({type:"monitor",target:"logger",extra:{description:"\u521b\u5efa logger \u5931\u8d25",message:e instanceof Error?e.message:JSON.stringify(e)}},c.LogSource.TRACE),!1)));let r=await p,n=null;r&&(n=r[t]);let{project:b,logstore:y,host:_}=n?.getOpt()??v[t],w=Date.now();if(t===c.LogSource.SMART_LINK&&s.ENV_TAG!==s.ENV.PRODUCTION)return;if("error"===e.type&&"mtop"===e.target){if(s.ENV_TAG!==s.ENV.PRODUCTION)return;let e=g();if(e!==d&&(h=0,d=e),h>=500)return;h++}let S=new URL(`https://${b}.${_}/logstores/${y}/track.gif?APIVersion=0.6.0`);if(Object.keys(e).forEach(t=>{let r="[object Object]"===Object.prototype.toString.call(e[t])?JSON.stringify(e[t]):e[t];S.searchParams.append(t,r)}),w-f>=3e5)try{f=w,await (0,o.checkLogin)()}catch(e){}let{[s.STORAGE_KEY_UUID]:E,[s.STORAGE_KEY_LOGIN_ID]:k,[s.STORAGE_KEY_USER_ID]:I,[s.STORAGE_KEY_IS_LOGIN]:x,[s.STORAGE_KEY_IS_NUMBER_BROWSER]:O,[s.STORAGE_KEY_OPTIONS]:T}=await (0,u.getExtensionLocalStorage)([s.STORAGE_KEY_UUID,s.STORAGE_KEY_LOGIN_ID,s.STORAGE_KEY_USER_ID,s.STORAGE_KEY_IS_LOGIN,s.STORAGE_KEY_IS_NUMBER_BROWSER,s.STORAGE_KEY_OPTIONS]),A=navigator.userAgent;if(O&&(A+=" 360"),S.searchParams.append("version",chrome.runtime.getManifest().version),S.searchParams.append("env",s.ENV_TAG),S.searchParams.append("uuid",E),S.searchParams.append("isLogin",`${!!x}`),S.searchParams.append("loginId",k),S.searchParams.append("userId",I),S.searchParams.append("User-Agent",A),S.searchParams.append("language",navigator.language),S.searchParams.append("package",s.ENV_PACKAGE||""),S.searchParams.append("timestamp",w.toString()),S.searchParams.append("uiLanguage",T?.[c.OptionsKey.LANGUAGE]||s.DEFAULT_LANGUAGE),e?.location||S.searchParams.append("location",globalThis?.location?.href),(0,l.consoleLog)("sendLog",Object.fromEntries(S.searchParams)),"report"===e.type)try{let e=S?.search?.replace?.("?APIVersion=0.6.0&",""),t=await (0,a.secure).Encrypt(e);t&&(0,o.sendEncryptedLog)(t)}catch(e){}else if(n){let e={};S.searchParams.forEach((t,r)=>{"APIVersion"!==r&&(e[r]=t)}),n.send(e)}else fetch(S.href,{method:"GET"})};function g(){return new Date().toLocaleDateString(void 0,{month:"long",day:"numeric"})}},{"@ali/1688-marketmate-lib":"jURHk","@ali/1688-plugin-logger":"8ZJs5","~api/common":"fcM9g","~common/const":"bkfUq","~common/type":"1PlmV","~common/utils":"kYpGH","~libs/debugLog":"8Rm1G","@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],jURHk:[function(e,t,r){var n,a,i,o,s,c=e("@parcel/transformer-js/src/esmodule-helpers.js");c.defineInteropFlag(r),c.export(r,"logger",()=>n),c.export(r,"digest",()=>a),c.export(r,"secure",()=>i),c.export(r,"heartbeat",()=>o),c.export(r,"mtop",()=>s);var u=arguments[3];(function(e,t,r,c,l,f,d,h){function p(n){f[7];var a,i,o,s=[],u=new Set,p={};return p[t[14]]=function(){t[0];var p={};return p[h[11]]=function p(){for(var v=9;void 0!==v;){var m=3&v>>2;switch(3&v){case 0:switch(m){case 0:M=function(){for(var i=0;void 0!==i;){var o=1&i>>1;switch(1&i){case 0:switch(o){case 0:var u=r[0],p=(c[5],a),v=!(a=p=p?l[12][t[12]](a):n);if(!v){u=a;var m=f[8];m=m[d[12]](f[2])[c[6]]()[c[7]](h[7]),v=u==e[6][m]}i=(u=v)?2:1;break;case 1:return t[13]}continue;case 1:0===o&&(s=d[6][e[7]](a),i=void 0);continue}}}(),v=2;break;case 1:return i;case 2:for(var g=e[8],b=r[3],y=e[0];y>2;switch(3&i){case 0:switch(o){case 0:e[0];var s=function(t){for(var r=2;void 0!==r;){var n=1&r>>1;switch(1&r){case 0:switch(n){case 0:return t;case 1:r=e[19][f[24]](t)?0:1}continue;case 1:0===n&&(r=void 0);continue}}}(n);i=s?4:5;break;case 1:var u=s;u||(u=m(n,a));var p=u;i=p?8:1;break;case 2:return p}continue;case 1:switch(o){case 0:p=function(){throw TypeError(l[14])}(),i=8;break;case 1:s=function(n,a){for(var i=0;void 0!==i;){var o=1&i>>1;switch(1&i){case 0:switch(o){case 0:var s=r[0],u=(d[1],e[17]==n);if(u)u=h[16];else{s=typeof Symbol;var p=c[14];p+=t[18]+t[19];var v=(p=(p+=c[15])[r[19]](r[3])[r[6]]()[t[6]](d[19]))!=s;if(v){var m=t[20];m+=l[17],m=(m+=r[20])[t[8]](r[3])[e[18]]()[r[21]](c[2]),v=n[s=Symbol[m]]}var g=v;g||(g=n[l[18]]),u=g}var b=u;i=(s=t[9]!=b)?2:1;break;case 1:var y,_,w,S,E=[],k=!e[0],I=!h[15];try{for(var x=4;void 0!==x;){var O=3&x>>2;switch(3&x){case 0:switch(O){case 0:x=c[3]?6:13;break;case 1:b=s=b.call(n),w=s[t[21]],x=(s=c[5]===a)?1:9;break;case 2:k=!l[6],x=12;break;case 3:A=f[23],y=s=w.call(b),k=s=s[L];var T=!s;x=T?2:3}continue;case 1:switch(O){case 0:x=(s=(s=t[22](b))!==b)?5:10;break;case 1:return;case 2:for(var A=h[1],M=l[19],R=t[10],C=c[5],j=f[7];j>3;switch(7&i){case 0:switch(o){case 0:return g(n,a);case 1:w=b=b[v],x=b,i=35;break;case 2:var s=N;i=s?25:34;break;case 3:b=typeof n;var u=f[12];i=(b=(u=(u+=d[16])[t[8]](h[7])[c[6]]()[h[4]](c[2]))==b)?0:9;break;case 4:b=n[e[14]];var p=f[14],v=r[3],m=r[0];i=19}continue;case 1:switch(o){case 0:var b=t[0],y=t[0];i=n?24:10;break;case 1:b=(b=(b={})[r[13]]).call(n),y=-c[3];var _=d[17],w=b[_+=c[10]+f[13]](e[12],y),S=e[13]===w;i=S?2:27;break;case 2:m++,i=19;break;case 3:s=d[4][t[16]](n),i=33;break;case 4:return s}continue;case 2:switch(o){case 0:S=n[r[14]],i=27;break;case 1:i=void 0;break;case 2:N=r[17]===w,i=16;break;case 3:var E=k;s=E=E?g(n,a):void e[0],i=33;break;case 4:var k=f[17]===w;i=k?26:3}continue;case 3:switch(o){case 0:k=l[15][f[18]](w),i=26;break;case 1:var I=p[d[18]](m)-parseInt(e[15],h[13]);v+=c[11][r[15]](I),i=17;break;case 2:i=m>2;switch(3&i){case 0:switch(o){case 0:var s=d[1],u=(c[5],c[0]==a);i=u?5:4;break;case 1:u=(s=a)>n[c[12]],i=5;break;case 2:i=r[7]?12:9;break;case 3:i=w?2:6}continue;case 1:switch(o){case 0:(s=_)[y]=n[y],i=8;break;case 1:var p=u;if(p){for(var v=l[16],m=l[4],g=f[7];g>2;switch(3&a){case 0:switch(i){case 0:c=(u=n)!==Symbol[t[24]],a=4;break;case 1:var o=c;if(o){var s=r[4];s+=l[23]+t[25],o=s+=e[22]}else o=typeof n;return o;case 2:p=(u=n[e[14]])===Symbol,a=1}continue;case 1:switch(i){case 0:var c=p;a=c?0:4;break;case 1:var u=d[1],f=(d[1],n);if(f){u=typeof Symbol;var h=d[22];h+=d[23]+e[21],f=(h=(h+=r[26])[t[8]](t[10])[e[18]]()[l[22]](e[1]))==u}var p=f;a=p?8:1}continue}}}for(var o=0;void 0!==o;){var s=1&o>>1;switch(1&o){case 0:switch(s){case 0:var u=typeof Symbol,f=c[17]==u;f&&(u=typeof(u=Symbol[d[21]]),f=e[20]==u);var h=f;o=h?2:1;break;case 1:h=a,o=3}continue;case 1:switch(s){case 0:h=i,o=3;break;case 1:return(b=h)(n)}continue}}}function y(n,a){function i(e){return f[25][d[25]](n,e)[h[18]]}for(var o=0;void 0!==o;){var s=3&o>>2;switch(3&o){case 0:switch(s){case 0:for(var u=l[6],p=d[24],v=r[3],m=t[0],g=h[1];g>2;switch(s){case 0:switch(u){case 0:E={},o=3;break;case 1:p=y(p=t[22](k),v=!h[1]),v=a,I=p[_](v),o=5;break;case 2:v=i,x=(p=y(p=r[27](k)))[t[30]](v),o=11;break;case 3:var p=r[0],v=h[1],m=f[23],g=h[1],b=d[13],_=r[28],S=t[29];o=5}continue;case 1:switch(u){case 0:return n;case 1:o=c[3]?7:1;break;case 2:p=arguments[m];var E=r[29]!=p;o=E?14:0;break;case 3:p=n,v=h[3][h[20]](k),x=e[6][h[21]](p,v),o=11}continue;case 2:switch(u){case 0:m+=r[7],o=10;break;case 1:o=1;break;case 2:g=l[11],o=(p=(p=m)<(v=arguments[b]))?9:6;break;case 3:E=arguments[m],o=3}continue;case 3:switch(u){case 0:var k=E,I=m%l[25];o=I?4:15;break;case 1:o=g?2:10;break;case 2:I=x,o=5;break;case 3:var x=t[22][S];o=x?13:8}continue}}}function w(n,a,i){for(var o=1;void 0!==o;){var s=1&o>>1;switch(1&o){case 0:switch(s){case 0:return n;case 1:v=i,(u=n)[p=a]=v,m=v,o=0}continue;case 1:switch(s){case 0:var u=function(n){for(var a=2;void 0!==a;){var i=1&a>>1;switch(1&a){case 0:switch(i){case 0:u=s,a=1;break;case 1:var o=f[7],s=function(n,a){for(var i=12;void 0!==i;){var o=3&i>>2;switch(3&i){case 0:switch(o){case 0:return g;case 1:u=n;var s=a;i=s?14:9;break;case 2:return(u=v)(n);case 3:var u=b(n),h=e[0],p=l[26]!=u;p||(p=!n),i=(u=p)?5:13}continue;case 1:switch(o){case 0:var v=c[21]===a;i=v?2:10;break;case 1:return n;case 2:s=e[25],i=14;break;case 3:var m=n[u=Symbol[t[32]]];i=(u=(u=void r[0])!==(h=m))?4:1}continue;case 2:switch(o){case 0:v=t[33],i=8;break;case 1:throw TypeError(e[26]);case 2:v=t[34],i=8;break;case 3:h=s;var g=m.call(u,h);u=b(g);for(var y=l[27],_=d[19],w=f[7],S=r[0];S>2;switch(3&n){case 0:switch(a){case 0:u=d[40],n=9;break;case 1:n=l>3;switch(u){case 0:switch(p){case 0:var m=arguments[c[12]],g=h[1],y=m>l[11];s=y?18:36;break;case 1:eo++,s=4;break;case 2:var w=ev;s=w?53:11;break;case 3:O=h[15],s=(m=(m=I)<(g=x[T]))?44:30;break;case 4:s=eAc[23];s=el?29:37;break;case 5:var ef=v(m=x[I],h[29]),ed=ef[r[0]],eh=ef[d[8]],ep=A!==ed;ep&&(ep=M!==ed);var ev=ep;s=ev?5:16;break;case 6:var em=en[ei],eg=en[e[33]],eb=en[e[35]],ey=f[36];ey+=l[35];var e_=t[41][ey]();m=(m=(m=f[37][f[38]](em,l[36]))[l[37]](eb,d[33]))[t[42]](eg,f[39]);var ew=new URL(m),eS=ez[d[34]]();eS||(eS={});var eE=eS;m=_(m={},g=n);var ek=_(m,g=eE),eI=n[d[35]];s=eI?48:34}continue;case 5:switch(p){case 0:ev=R==(m=typeof ed),s=16;break;case 1:var ex=eO[t[26]](eA)^f[43];eT+=e[10][l[8]](ex),s=12;break;case 2:var eO=r[39],eT=l[4],eA=f[7];s=32;break;case 3:el=(m=void t[0])!==(g=arguments[f[34]]),s=37;break;case 4:var eM=el,eR=eM=eM?arguments[parseInt(h[28],h[29])]:eV;m=b(n);for(var eC=r[34],ej=c[2],eN=t[0],eP=c[5];eP>1;switch(1&i){case 0:switch(o){case 0:var s,u=l[6];l[6],u=n;var v=s;i=v?1:2;break;case 1:v=function(n,a){function i(){for(var n=9;void 0!==n;){var a=3&n>>2;switch(3&n){case 0:switch(a){case 0:m=typeof(m=ez[e[244]]),n=(m=d[239]==m)?5:8;break;case 1:try{m=new Uint32Array(r[7]);var i=r[244];return i+=d[238]+c[42]+l[246]+r[245],m=(m=ez[i](m))[f[7]]}catch(e){}n=0;break;case 2:for(var o=t[235],s=t[10],u=d[1];u>2;switch(a){case 0:switch(i){case 0:o[p](this,arguments),n=void 0;break;case 1:var o=u[_],s=h[65];s+=f[85],o=o[s=(s+=e[57])[e[81]](d[19])[e[18]]()[f[5]](r[3])];var c=r[248],p=t[10],v=e[0],m=t[0];n=8;break;case 2:n=m>2;switch(3&i){case 0:switch(o){case 0:s=a,u[e[248]]=s,v=s,i=2;break;case 1:l[6];var s=f[7],u=J(this),p=n;i=p?8:9;break;case 2:p=u[h[215]](n),i=9}continue;case 1:switch(o){case 0:var v=g;i=v?2:0;break;case 1:g=this[h[216]]!==(s=u[c[215]]),i=1;break;case 2:var m=t[238];m+=r[247]+t[192];var g=u[m=(m+=t[239])[e[81]](c[2])[e[18]]()[d[10]](t[10])](t[240]);i=g?5:1}continue;case 2:if(0===o){var b=f[254];return u[b+=t[241]][l[73]]=u,u[l[248]]=this,u}continue}}}function u(){f[7];for(var n=e[249],a=f[2],i=c[5];i>2;switch(3&n){case 0:switch(a){case 0:var i=s[_],o=r[w](i);o&&(u=i,v=r[i],this[u]=v,o=v),n=4;break;case 1:n=c[3]?5:9;break;case 2:var s,u=l[6],v=e[0],m=p(r),g=t[14],b=l[250],y=b=b[e[81]](l[4])[c[6]]()[t[6]](h[7]),_=t[243],w=c[217];n=4}continue;case 1:switch(a){case 0:n=9;break;case 1:s=u=m[g](),n=(u=u[y])?1:0;break;case 2:var S=r[h[220]](l[52]);S&&(u=r[f[256]],this[d[243]]=u,S=u),n=void 0}continue}}}function g(){var r=e[32],n=this[r=(r+=e[250])[h[8]](f[2])[t[46]]()[l[22]](c[2])];return(n=n[e[171]])[c[218]](this)}function b(n,a){var i=r[0],o=n;o||(o=[]),i=o;var s=c[40];this[s=(s+=e[251])[h[8]](f[2])[t[46]]()[c[7]](e[1])]=i,n=i;var u=void 0!=a;u?u=a:(i=n[l[44]],u=c[124]*i),this[c[219]]=u}function y(t){for(var r=0;void 0!==r;){var n=1&r>>1;switch(1&r){case 0:switch(n){case 0:e[0];var a=t;r=a?1:2;break;case 1:a=ev,r=1}continue;case 1:if(0===n)return a[f[81]](this);continue}}}function _(n){for(var a=2;void 0!==a;){var i=3&a>>2;switch(3&a){case 0:switch(i){case 0:g=E,b=I+s>>>d[72],y=s>>>t[54],g[b]=k[y],a=14;break;case 1:a=h[15]?8:9;break;case 2:var o=f[258];v&&(p+=e[36]),v=l[11],a=(g=p>>c[23]],b=p%t[139]*t[140];var T=(g>>>=b=o-c[220]-b)&parseInt(h[221],c[23])+o;b=I+p,y=(g=E)[b>>>=c[23]],_=T,w=(I+p)%c[124]*l[20],_<<=w=parseInt(c[221],c[13])-w,g[b]=y|_,a=4;break;case 2:u&&(s+=h[126]),u=h[15],a=(g=s>>t[54]],u=v%c[124]*f[121],u=a-l[252]-u,u=c[222]<>2;switch(3&n){case 0:switch(a){case 0:u=c[3],n=(i=s>2;switch(3&a){case 0:switch(i){case 0:a=9;break;case 1:var o=r[0],s=h[1],u=n[t[246]],p=c[224],v=n[p+=e[85]+c[225]],m=[],g=h[1],b=e[0],y=(l[254],l[255]),_=y+=f[261]+t[247]+r[257],w=h[224],S=w+=c[226]+c[107];a=1;break;case 2:b=h[15],a=(o=g>>c[23]],s=g%d[121]*r[130],o>>>=s=e[258]-s;var I=d[250],x=~(~(o&parseInt(I=(I+=c[228])[h[8]](d[19])[d[5]]()[r[21]](t[10]),l[20]))&~(o&parseInt(I,t[140])));m[S](o=(o=x>>>l[128])[_](h[132])),m[S](o=(o=E-c[190]&x)[_](parseInt(e[148],c[84]))),a=1}continue}}}function I(n){for(var a=8;void 0!==a;){var i=3&a>>2;switch(3&a){case 0:switch(i){case 0:return o=g,s=m/t[54],o=new ed[e[248]](o,s);case 1:a=0;break;case 2:var o=l[6],s=r[0],u=c[5],p=r[0],v=l[6],m=n[t[15]],g=[],b=t[0],y=f[7],_=h[225];_+=r[259];var w=_=(_+=h[226])[c[26]](e[1])[h[25]]()[l[22]](h[7]);a=1}continue;case 1:switch(i){case 0:a=e[36]?9:0;break;case 1:b+=t[54],a=6;break;case 2:var S=d[251];a=y?5:6}continue;case 2:switch(i){case 0:u=(o=g)[s=b>>>l[256]],p=parseInt(p=n[w](b,l[25]),e[28]),v=b%t[140]*h[126],p<<=v=S-l[257]-v,o[s]=u|p,a=1;break;case 1:y=d[8],a=(o=b>2;switch(3&a){case 0:switch(i){case 0:a=e[36]?8:4;break;case 1:return m[d[10]](c[2]);case 2:var o=parseInt(r[260],d[72]);a=b?2:1}continue;case 1:switch(i){case 0:b=e[36],a=(u=g>>l[25]],f=g%l[128]*l[20];var s=(u>>>=f=l[124]-f)&parseInt(e[261],d[83])+o;m[_](u=h[38][y](s)),a=0;break;case 2:a=4}continue;case 2:switch(i){case 0:g+=e[36],a=1;break;case 1:var u=c[5],f=l[6],p=n[t[246]],v=n[e[253]],m=[],g=e[0],b=c[5],y=r[15],_=r[23];a=0}continue}}}function O(n){for(var a=8;void 0!==a;){var i=3&a>>2;switch(3&a){case 0:switch(i){case 0:var o=e[263];w&&(_+=d[8]),w=r[7],a=(s=_>>t[54]],v=n[S](_),v=o-h[227]&v,m=_%e[135]*e[12],v<<=m=parseInt(c[94],l[25])-m,s[u]=p|v,a=4;break;case 2:return new ed[c[215]](y,b)}continue}}}function T(r){var n=h[1];try{return n=eg[t[90]](r),n=escape(n),n=e[265](n)}catch(t){throw new e[266](f[263])}}function A(e){var r=t[249](e);return r=unescape(r),r=eg[f[264]](r)}function M(){for(var r=t[250],n=e[1],a=t[0];a>1;switch(1&a){case 0:switch(i){case 0:y=this[f[265]];var o=l[262];y[o+=d[254]+r[172]](n);var s=l[263];y=this[s=s[l[3]](c[2])[c[6]]()[h[4]](c[2])];var u=r[263];_=n[u=u[e[81]](e[1])[f[30]]()[t[6]](f[2])];for(var p=h[229],v=e[1],m=d[1];m>2;switch(3&i){case 0:switch(o){case 0:return new ed[c[215]](_,N);case 1:w[g]=S-E,i=0;break;case 2:i=l[11]?13:6;break;case 3:var s=r[0],u=f[7],p=c[232];i=8}continue;case 1:switch(o){case 0:i=b>2;switch(3&a){case 0:switch(i){case 0:return this[l](),this;case 1:p||(h=t[256]);var o=u[e[16]](p),s=~(~(o&~h)&~(~o&h));h=o,l+=t[33][e[29]](s),a=5;break;case 2:a=p>1;switch(1&r){case 0:switch(n){case 0:return this[h[238]]();case 1:a=this[t[257]](e),r=0}continue;case 1:if(0===n){l[6];var a=e;r=a?2:0}continue}}}function F(n){return function(a,i){var o=new n[t[240]](i),s=c[237];return s+=d[261],o=o[s=(s+=r[274])[e[81]](c[2])[d[5]]()[r[21]](e[1])](a)}}function B(t){return function(r,n){for(var a=0;void 0!==a;){var i=3&a>>2;switch(3&a){case 0:switch(i){case 0:var o=eP[l[267]];o=new o[e[248]](t,n);var s=l[268],u=f[2],p=l[6];a=4;break;case 1:a=p>3;switch(7&U){case 0:switch(z){case 0:eH=typeof globalThis;var H=d[231]!=eH;U=H?17:28;break;case 1:var G=d[67];G+=c[40]+l[245]+d[236]+f[222]+r[243],ez=eH=window[G],eK=eH,U=1;break;case 2:var q=r[243];q+=l[244],q=(q+=f[250])[f[3]](l[4])[l[69]]()[d[10]](f[2]),ez=eH=self[q],e8=eH,U=0;break;case 3:var W=Y;U=W?20:26;break;case 4:var K=!ez;U=K?11:2}continue;case 1:switch(z){case 0:var V=!ez;V&&(V=(eH=void e[0])!==(eG=X));var Y=V;U=Y?25:24;break;case 1:var J=eQ,Z={};eG={},(eH=Z)[e[246]]=eG;var $=eG;eH=$;var Q={},ee=r[38];Q[ee+=r[246]+t[237]]=s,Q[h[218]]=u;for(var et=d[242],er=r[3],en=c[5],ei=h[1];ei>2;switch(3&a){case 0:switch(o){case 0:var s=function(n){for(var a=6;void 0!==a;){var o=3&a>>2;switch(3&a){case 0:switch(o){case 0:return!r[0];case 1:a=h?2:1;break;case 2:a=n%u?9:5}continue;case 1:switch(o){case 0:h=f[23],a=u<=c?8:10;break;case 1:return!r[7];case 2:a=e[36]?4:0}continue;case 2:switch(o){case 0:u+=t[64],a=1;break;case 1:e[0];var s=l[10],c=i[s+=f[274]+r[190]](n),u=d[72],h=l[6];a=9;break;case 2:a=0}continue}}}(S);if(s){var u=E>2;switch(3&i){case 0:switch(o){case 0:i=9;break;case 1:s=m,u=m[t[139]]+(p=E),s[e[135]]=u|l[6],s=m,u=m[d[99]]+(p=k),s[e[280]]=~(~u&~l[6]),i=2;break;case 2:var s=this[r[278]],u=r[0],p=h[1],v=e[0],m=s[r[279]],g=m[f[7]],_=m[e[36]],w=m[f[34]],S=m[r[223]],E=m[parseInt(e[276],h[29])],k=m[l[131]],I=m[t[146]],x=m[f[153]],O=d[1],T=e[0];f[277],f[206],t[258],h[245],i=12;break;case 3:i=r[7]?10:9}continue;case 1:switch(o){case 0:if(s=O>>e[146]))^(u=R<>>A-parseInt(e[278],r[130]))))^(u=R>>>l[256]),j=y[s=O-f[34]];s=j<>>M-t[144]),u=j<>>parseInt(N=N[l[3]](c[2])[r[6]]()[c[7]](h[7]),r[146])))&~(~s&u)))&~(u=j>>>l[139]))&~(~s&u));s=y,u=O,p=C+((v=y[v=O-d[267]])+(v=P)),v=y[v=O-(A-l[275])],s[u]=p+v}var D=~(~((s=~(~((s=g&_)&~(u=~(~(g&w)&~(g&w))))&~(~s&u)))&~(u=_&w))&~(~s&u)),L=(s=~(~((s=~(~(s=g<>>f[34])))&~(u=~(~(u=g<>>U-l[277]))))&~(~s&u)))^(u=~(~(u=g<>>U-l[278]))),F=(s=x+((u=~(~((u=~(~(u=E<>>d[132]))^(p=E<>>l[141])))&~(p=~(~(p=E<>>parseInt(c[242],l[57])))))&~(~u&p)))+(u=~(~((u=~(~(E&k)&~(E&k)))&~(p=~(~((p=~E)&(v=I))&~(p&v))))&~(~u&p)))+(u=b[O])))+(u=y[O]);x=I,I=k,k=E,E=(s=S+F)|l[6],S=w,w=_,_=g,g=(s=F+(u=L+D))|d[1],i=12;break;case 1:T=h[15],i=(s=O>2;switch(3&n){case 0:switch(a){case 0:n=P>>c[246]],m=k%d[271],m=s-h[249]-m,m=t[264]<>>d[272]<>>s-r[285]<>2;switch(3&i){case 0:switch(o){case 0:i=2;break;case 1:for(var s=f[280],u=c[2],p=f[7];p(g=P);i=D?9:1}continue}}}function o(){var n=r[0],a=l[287],i=this[a=a[c[26]](r[3])[c[6]]()[l[22]](r[3])];i[t[270]]();var o=d[278];o+=l[288],n=this[o=(o+=h[255])[e[81]](r[3])[f[30]]()[e[46]](h[7])],i[r[298]](n)}function s(e){var t=this[l[289]];return t[h[256]](e),t=this}function u(n){var a=r[0],i=this[e[287]],o=e[288],s=i[o+=r[299]+d[280]](n);i[l[290]](),a=this[f[282]];var u=d[42];return u+=d[281],a=(a=a[u+=c[252]]())[t[42]](s),a=i[l[291]](a)}for(var p=0;void 0!==p;){var v=3&p>>2;switch(3&p){case 0:switch(v){case 0:var m,g,b,y=d[1],_=f[7],w=f[7];y=n,m=_=ei,_=_[r[290]];var S=d[275];g=_[S=(S+=e[284])[h[8]](f[2])[e[18]]()[t[6]](f[2])],_=m[r[291]];var E=l[283],k=e[1],I=r[0];p=1;break;case 1:var x=E[d[18]](I)-r[292];k+=r[12][c[35]](x),p=2;break;case 2:b=_[k],_=m[l[284]];var O={};O[r[250]]=i;for(var T=l[286],A=h[7],M=c[5];M>2;switch(3&a){case 0:switch(i){case 0:a=m>3;switch(7&a){case 0:switch(i){case 0:T=l[11],a=(y=O>>=w=b-parseInt(f[287],r[112])-w)&parseInt(l[292],c[23]))&~(_&parseInt(h[259],r[146])))<>>c[23],a=18;break;case 2:return x[f[5]](f[2]);case 3:O+=t[112],a=0;break;case 4:a=19}continue;case 1:switch(i){case 0:y=v,_=h[107]-m,y=~(~((y>>>=_=d[132]*_)&parseInt(e[293],h[46]))&~(y&e[294])),x[R](y=I[M](y)),a=34;break;case 1:g&&(m+=l[11]),g=d[8];var o=m>>=w=parseInt(h[260],l[57])-w;var v=~(~y&~(_&=h[184])),m=l[6],g=h[1];a=34;break;case 3:y=S[y=O>>>l[25]],_=O%r[135]*h[13],y>>>=_=b-c[258]-_,y&=h[184],y<<=b-e[292],_=O+l[11]>>>l[25],a=8;break;case 4:a=l[11]?9:19}continue;case 3:switch(i){case 0:a=17;break;case 1:var b=r[301];a=T?24:0;break;case 2:a=t[64]?11:17;break;case 3:var y=e[0],_=l[6],w=l[6],S=n[c[243]],E=d[284],k=n[E=E[h[8]](e[1])[d[5]]()[t[6]](h[7])],I=this[c[257]];n[t[272]]();var x=[],O=d[1],T=r[0],A=h[258],M=A+=f[286]+h[65],R=c[48];a=19;break;case 4:a=r[7]?10:16}continue}}},o[h[74]]=function(n){for(var i=8;void 0!==i;){var o=3&i>>2;switch(3&i){case 0:switch(o){case 0:g=[];var s=d[286];s+=h[262]+t[215]+r[302],this[s=(s+=c[261])[d[12]](f[2])[t[46]]()[e[46]](d[19])]=g,S=g;var u=d[1],p=e[0],v=l[44],m=e[16];i=6;break;case 1:return function(n,i,o){for(var s=4;void 0!==s;){var u=3&s>>2;switch(3&s){case 0:switch(u){case 0:w+=l[11],s=8;break;case 1:var p=e[0],v=d[1],m=e[0],g=d[1],b=d[1],y=[],_=f[7],w=l[6],S=c[5],E=d[18];e[276],s=2;break;case 2:S=h[15],s=(p=w>>=m=parseInt(d[283],l[25])-m));m=(p=y)[v=_>>>l[25]],g=I,b=_%h[126]*h[13],g<<=b=k-c[256]-b,p[v]=m|g,_+=d[8]}s=2;break;case 1:s=S?0:8;break;case 2:return a[f[285]](y,_)}continue;case 2:switch(u){case 0:s=e[36]?5:9;break;case 1:s=9}continue}}}(n,b,S);case 2:var g=h[1],b=(r[0],n[h[9]]),y=h[261],_=this[y+=e[296]],w=t[274],S=this[w=w[h[8]](c[2])[c[6]]()[c[7]](c[2])];i=S?12:0;break;case 3:var E=_[h[263]](r[303]);i=E?5:4}continue;case 1:switch(o){case 0:(g=S)[_[m](u)]=u,i=6;break;case 1:var k=n[f[288]](E),I=(g=-e[36])!==k;i=I?13:4;break;case 2:i=12;break;case 3:b=g=k,I=g,i=4}continue;case 2:switch(o){case 0:p&&(u+=d[8]),p=h[15],i=(g=(g=u)<_[v])?1:9;break;case 1:i=d[8]?2:12}continue}}},o[d[287]]=h[264],n[l[293]]=o})(),s=i[c[262]],o[f[289]]=s[h[265]]}function C(n,a){var i,o=f[7];e[0],o=n,i=ei,function(n){function a(){for(var e=8;void 0!==e;){var a=3&e>>2;switch(3&e){case 0:switch(a){case 0:e=void 0;break;case 1:i=A,o=u,s=u+t[64],s=n[p](s),s=n[v](s),s=(c[265]+m)*s,i[o]=~(~s&~h[1]),e=5;break;case 2:var i=c[5],o=d[1],s=c[5],u=t[0],l=h[1],p=t[277],v=r[304];e=5}continue;case 1:switch(a){case 0:l=c[3],e=(i=u>2;switch(3&i){case 0:switch(o){case 0:var s=e[300];eo&&(ei+=c[3]),eo=l[11],i=($=ei>>s-e[301])),ee=~(~(f[293]&ee)&~(f[293]&ee)),et=H<>>f[121]),et=~(~(parseInt(d[290],d[60])&et)&~(parseInt(f[294],h[132])&et)),$[Q]=~(~ee&~et),i=4;break;case 2:var G=h[36],q=r[306],W=parseInt(h[268],r[146]),K=r[307],V=e[298],Y=f[292],J=l[294],Z=t[278],X=parseInt(e[299],f[76]),$=t[0],Q=c[5],ee=c[5],et=c[5],er=h[1],en=c[5],ea=c[5],ei=t[0],eo=r[0];i=4}continue}}}function u(){for(var a=4;void 0!==a;){var i=3&a>>2;switch(3&a){case 0:switch(i){case 0:a=t[64]?9:1;break;case 1:var o=parseInt(c[274],h[46]),s=r[320],u=e[0],p=f[7],v=r[0],m=c[5],g=(d[1],t[286]),b=this[g+=e[316]],y=f[109],_=b[y=(y+=f[308])[t[8]](r[3])[c[6]]()[h[4]](r[3])];u=this[t[287]];var w=t[140]*u;u=b[d[246]];var S=h[13]*u;v=(u=_)[p=S>>>r[139]],m=S%(s-parseInt(e[317],t[54])),m=o-e[318]-m,m=s-parseInt(f[309],d[87])<>>f[150]<>>o-c[275])),v=f[293]&v,m=~(~(m=E<>>r[130])),m=~(~(c[277]&m)&~(r[321]&m)),u[p]=~(~v&~m),u=_,p=S+(o-c[278])>>>h[286]<>>s-r[179]),v=parseInt(e[320],t[54])&v,m=~(~(m=w<>>parseInt(h[287],f[34]))),m=parseInt(r[322],t[128])&m,u[p]=v|m,u=b,p=_[c[12]]+r[7],u[h[254]]=d[121]*p,this[l[303]]();var k=this[c[279]],I=k[t[246]],x=r[0],O=h[1];a=0;break;case 2:x+=c[3],a=6}continue;case 1:switch(i){case 0:return k;case 1:var T=I[x];u=I,p=x,v=T<>>A-parseInt(f[310],h[13])),v=e[321]&v,m=T<>>d[87],m=~(~(r[321]&m)&~(parseInt(c[280],r[130])&m)),u[p]=~(~v&~m),a=0;break;case 2:var A=r[323];a=O?8:6}continue;case 2:switch(i){case 0:a=1;break;case 1:O=r[7],a=(u=x>>=v=u-d[302]-o))+(p=t)}function m(t,r,n,a,i,o,s){var u=c[207],f=t,d=(c[5],e[0]),p=l[6],v=(f+=(~(~(r&a)&~(r&a))|(d=~(~((d=n)&(p=~a))&~(d&p))))+i)+s;return(v<>>(d=u-h[288]-o))+r}function g(n,a,i,o,s,c,u){var l=t[290],f=n,h=r[0],p=(d[1],(f+=(h=a^i^o)+(h=s))+(h=u));return h=p,f=~(~(f=p<>>=e[280]+l-c))+(h=a)}function b(e,t,n,a,i,o,s){var c=parseInt(d[305],d[83]),u=e;d[1],r[0],h[1];var l=(u+=(n^(t|~a))+i)+s;return(l<>>c-h[289]-o)+t}for(var y=0;void 0!==y;){var _=3&y>>2;switch(3&y){case 0:switch(_){case 0:var w=h[1],S=d[1],E=i,k=E[h[243]],I=t[275];I+=t[215]+t[276]+c[263];var x=k[I=(I+=r[84])[f[3]](l[4])[c[6]]()[l[22]](d[19])],O=k[c[264]],T=E[r[276]],A=[];w=(w=a)(),w=T;var M={};M[f[291]]=o,M[r[305]]=s,M[d[301]]=u,M[f[311]]=p,S=M,S=O[f[312]](S),w[d[304]]=S;var R=S;w=E;var C=c[281],j=c[2],N=e[0],P=l[6];y=5;break;case 1:N=h[290],y=8;break;case 2:var D=C[f[20]](P),L=~(~(D&~N)&~(~D&N));N=D,j+=h[38][f[21]](L),y=1}continue;case 1:switch(_){case 0:P++,y=5;break;case 1:y=P>2;switch(3&o){case 0:switch(s){case 0:throw new t[292](t[293]);case 1:x=u[t[295]],o=10;break;case 2:var u,p=h[1],v=h[1],m=t[0],g=h[1],b=r[0],y=!n;o=y?2:13;break;case 3:E=(p=eo(a,n))[l[52]](es),o=14}continue;case 1:switch(s){case 0:u=p=globalThis[t[233]],I=r[29]!==p,o=6;break;case 1:var _=new TextEncoder,w=_[d[307]](n),S=_[t[294]](a),E=r[3],k=e[17]!==globalThis;k&&(k=(p=void c[5])!==(v=globalThis));var I=k;o=I?1:6;break;case 2:var x=M;o=x?4:10;break;case 3:y=!a,o=2}continue;case 2:switch(s){case 0:o=(p=y)?0:5;break;case 1:var O=I;O&&(O=(p=void c[5])!==(v=u));var T=O;if(T){var A=c[283];u=p=u[A=A[h[8]](d[19])[r[6]]()[f[5]](r[3])],T=f[119]!==p}var M=T;o=M?3:9;break;case 2:o=(p=x)?7:12;break;case 3:return E}continue;case 3:switch(s){case 0:M=(p=void c[5])!==(v=u),o=9;break;case 1:p=(p=globalThis[l[306]])[t[296]],v=w;for(var R={},C=t[297],j=t[10],N=h[1];N>1;switch(1&a){case 0:switch(i){case 0:return l?void e[0]:o[d[243]]();case 1:l=(s=void c[5])===(u=o),a=0}continue;case 1:if(0===i){var o,s=f[7],u=f[7];s=t+r[327],u=JSON[r[328]](n),o=s=ec(s+=u);var l=h[16]===s;a=l?0:2}continue}}}function P(n,a){var i,o,s,u,p,v,m,g,b=e[0],y=f[7],_=t[0];b=n,g=y=ei,i=y,s=(o=y[e[246]])[h[294]];var w=r[329];w+=c[285],u=o[w=(w+=e[326])[h[8]](l[4])[d[5]]()[l[22]](c[2])],p=i[l[284]],v=[],y=p;var S={},E=c[286];S[E+=f[318]+h[161]+f[319]]=function(){var e=t[0],n=[];n[h[64]](parseInt(c[287],f[76]),parseInt(d[312],c[13]),parseInt(d[313],r[146]),r[330],parseInt(f[320],h[132])),e=n,this[f[321]]=new s[l[273]](e)},S[f[322]]=function(n,a){for(var i=1;void 0!==i;){var o=7&i>>3;switch(7&i){case 0:switch(o){case 0:i=(_=R>>t[54]),O=x,x=D,i=17;break;case 1:var N=f[324],P=~(~((_=v[_=R-t[112]]^(w=v[w=R-f[121]])^(w=v[w=R-(N-e[308])]))&~(w=v[w=R-(N-r[331])]))&~(~_&w));_=v,w=R,S=P<>>N-parseInt(c[241],d[83]),_[w]=~(~S&~E),i=18;break;case 2:var D=(_=~(~(_=x<>>F-e[327]))+(w=M))+(w=v[R]);_=D;var L=R>>d[99]],p=b%(c[116]+a),p=parseInt(c[137],c[129])-p,p=i-l[310]<>>i-h[295]<>>n-parseInt(e[331],r[112])<>2;switch(3&i){case 0:switch(o){case 0:p=m[E](p),m[k](),i=10;break;case 1:return g[e[253]]=r[135]*y,g;case 2:i=b[w]>2;switch(3&o){case 0:switch(s){case 0:E++,o=10;break;case 1:o=y>2;switch(3&i){case 0:switch(o){case 0:return this[v](c,u,l);case 1:var s=p[d[18]](m)-parseInt(r[347],t[54]);v+=r[12][t[17]](s),i=8;break;case 2:m++,i=1}continue;case 1:switch(o){case 0:i=m>1;switch(1&t){case 0:switch(n){case 0:return this[h[238]]();case 1:a=this[r[349]](e),t=0}continue;case 1:if(0===n){f[7];var a=e;t=a?2:0}continue}}}function m(){function e(e){for(var t=3;void 0!==t;){var r=1&t>>1;switch(1&t){case 0:switch(r){case 0:return a;case 1:a=eM,t=0}continue;case 1:switch(r){case 0:a=eJ,t=0;break;case 1:var n=typeof e,a=l[188]==n;t=a?1:2}continue}}}return c[5],function(t){r[0];var n={};return n[c[298]]=function(r,n,a){return e(n)[f[334]](t,r,n,a)},n[d[328]]=function(r,n,a){return e(n)[c[299]](t,r,n,a)},n}}function g(){var e=!t[0];return this[c[296]](e)}function b(e,t){return this[f[336]][l[247]](e,t)}function y(r,n){var a=c[302];return this[a=a[l[3]](t[10])[d[5]]()[c[7]](e[1])][l[247]](r,n)}function _(e,t){this[r[354]]=e,this[f[337]]=t}function w(){function a(a,i,o){for(var s=3;void 0!==s;){var u=3&s>>2;switch(3&s){case 0:switch(u){case 0:s=void 0;break;case 1:s=N>2;switch(3&i){case 0:switch(o){case 0:i=8;break;case 1:var s=parseInt(l[329],f[100]),u=d[1],p=(l[6],l[6],r[135]*a),v=p-n[h[254]]%p,m=~(~(v<>>c[23]];var s=parseInt(l[254],t[140])&a;i=(a=n)[r[253]],o=s,a[d[246]]=i-o}function k(){for(var n=9;void 0!==n;){var a=3&n>>2;switch(3&n){case 0:switch(a){case 0:n=void 0;break;case 1:v=y;var i=b;i&&(i=b[d[244]]),m=i,this[h[323]]=p.call(v,this,m),v=this[e[350]],m=p;var o=e[183];o+=r[243]+h[325],v[o=(o+=t[329])[c[26]](l[4])[e[18]]()[c[7]](h[7])]=m,k=m,n=0;break;case 2:m=s,k=v[d[329]](this,m),n=0}continue;case 1:switch(a){case 0:v=this[h[323]];var s=b;n=s?5:8;break;case 1:var u=h[324];s=b[u+=r[252]],n=8;break;case 2:var p,v=c[5],m=d[1];(v=ts[f[270]]).call(this);var g=this[f[269]],b=g[t[327]],y=g[h[320]],_=(v=this[e[348]])==(m=this[t[328]]);if(_)p=v=y[l[331]],_=v;else{var w=t[215];w+=e[349]+d[335],p=y[w=(w+=r[360])[e[81]](d[19])[d[5]]()[d[10]](f[2])],v=t[64],this[h[321]]=v,_=v}var S=this[l[332]];if(S){v=this[f[344]];var E=h[322];E+=f[222],S=(v=v[E=(E+=l[333])[d[12]](t[10])[d[5]]()[r[21]](r[3])])==(m=p)}var k=S;n=k?1:4}continue}}}function I(e,t){this[f[344]][r[361]](e,t)}function x(){var n,a=h[1],i=t[0],o=(a=this[d[258]])[e[352]];a=this[l[320]];var s=l[321],c=a==(i=this[s=s[t[8]](e[1])[h[25]]()[d[10]](e[1])]);if(c)a=this[t[331]],i=this[l[327]],o[t[332]](a,i),a=!r[0],n=a=this[d[336]](a),c=a;else{a=!l[6],n=this[d[336]](a);var u=t[333];u+=t[14],c=o[u+=e[353]](n)}return n}function O(t){this[e[354]](t)}function T(e){for(var r=0;void 0!==r;){var n=1&r>>1;switch(1&r){case 0:switch(n){case 0:h[1];var a=e;r=a?1:2;break;case 1:a=this[t[334]],r=1}continue;case 1:if(0===n)return a[d[249]](this);continue}}}function A(e){for(var t=2;void 0!==t;){var r=1&t>>1;switch(1&t){case 0:switch(r){case 0:return(n=o)[d[243]](eX);case 1:var n=l[6],a=e[d[337]],i=e[c[311]],o=i;t=o?1:3}continue;case 1:switch(r){case 0:var s=[];s[l[24]](parseInt(d[338],l[25]),c[312]),n=s,o=(n=(n=K[f[285]](n))[l[37]](i))[c[313]](a),t=0;break;case 1:o=a,t=0}continue}}}function M(n){for(var a=0;void 0!==a;){var i=1&a>>1;switch(1&a){case 0:switch(i){case 0:for(var o,s=e[355],u=l[6],p=e[0],v=h[327],m=r[3],g=h[1];g>2;switch(3&s){case 0:switch(u){case 0:s=O>2;switch(3&s){case 0:switch(u){case 0:I||(k=h[332]-t[54]);var p=S[e[16]](I),v=p^k;k=p,E+=h[38][c[35]](v),s=8;break;case 1:return m=n[E](i,o),g=a[l[346]],m=m[c[318]](g);case 2:I++,s=1}continue;case 1:switch(u){case 0:s=I>1;switch(1&a){case 0:switch(i){case 0:var o=r[240];o+=h[159]+e[364],c=n[o+=l[9]](t,this),a=1;break;case 1:var s=typeof t,c=h[195]==s;a=c?0:3}continue;case 1:switch(i){case 0:return c;case 1:c=t,a=1}continue}}}function N(n,a,i,o,s){for(var u=0;void 0!==u;){var p=3&u>>2;switch(3&u){case 0:switch(p){case 0:var v=d[1],m=e[0],g=o;if(!g){var b=c[320];b+=f[352]+e[365],o=v=K[b=(b+=e[183])[e[81]](l[4])[f[30]]()[r[21]](h[7])](c[13]),g=v}u=(v=s)?2:1;break;case 1:var y=I[c[20]](O)-l[348];x+=t[33][d[39]](y),u=5;break;case 2:u=O>2;switch(3&s){case 0:switch(u){case 0:var p=w[T](S,E,k,I,x);w=o;var v=d[23];v+=d[112],w[r[375]]=p[v],w=eM[e[370]],S=n,E=a;var m=d[278];k=p[m=(m+=h[337])[e[81]](e[1])[e[18]]()[c[7]](c[2])],I=o;var g=w.call(this,S,E,k,I);return g[h[215]](p),w=g;case 1:var b=parseInt(d[344],t[140]),y=O[c[20]](A)-(b-d[345]);T+=t[33][r[15]](y),s=1;break;case 2:s=A>3;switch(7&L){case 0:switch(F){case 0:eF++,L=26;break;case 1:L=X>1;switch(1&o){case 0:switch(s){case 0:var u,p=d[1],v=t[0];p=n,u=v=ei;var m=(v=v[r[290]])[e[339]];o=m?2:1;break;case 1:v=m,p[f[289]]=void 0,o=void 0}continue;case 1:0===s&&(m=(v=i)(),o=2);continue}}}function F(n,a){var i,o=r[0];e[0],o=n,i=ei,function(){function n(){for(var n=33;void 0!==n;){var a=7&n>>3;switch(7&n){case 0:switch(a){case 0:O&&(x+=r[7]),O=c[3],n=(w=x>>r[130])&~(S=parseInt(l[356],l[57])&i))&~(~w&S)))^f[361],(w=j)[S=m]=i,(w=N)[S=i]=m;var o=I[m],s=I[o],u=I[s];w=I[i];var p=~(~((w=parseInt(r[380],r[62])*w)&~(S=t[343]*i))&~(~w&S));w=P,S=m,E=p<>>f[121],w[S]=~(~E&~k),w=D,S=m,E=p<>>t[37],w[S]=E|k,w=L,S=m,E=p<>>M-r[381],w[S]=E|k,(w=F)[S=m]=p,p=(w=~(~((w=parseInt(f[362],d[83])*u)&~(S=(t[344]+A)*s))&~(~w&S))^(S=(A-r[382])*o))^(S=parseInt(f[363],r[146])*m),w=B,S=i,E=p<>>r[130],w[S]=E|k,w=U,S=i,E=p<>>T-d[350],w[S]=E|k,w=z,S=i,E=p<>>T-f[364],w[S]=~(~E&~k),(w=H)[S=i]=p;var v=m;n=v?3:2;break;case 3:w[S]=C,n=25;break;case 4:n=_>3;switch(7&n){case 0:switch(a){case 0:var i=this[f[366]],o=t[0],s=e[0],u=t[0],p=!i;n=p?33:8;break;case 1:p=(i=this[h[340]])!==(o=this[c[332]]),n=33;break;case 2:i=D,o=L;var v=L>>b-r[386]]]^(u=U[u=j[u=~(~((u=y>>>b-d[357])&f[220])&~(u&parseInt(e[378],h[132])))]]))&~(u=z[u=j[u=~(~((u=y>>>parseInt(e[379],h[29]))&r[384])&~(u&f[220]))]]))&~(~s&u)))^(u=H[u=j[u=d[343]&y]])}i[o]=g,n=32;break;case 3:F=f[23],n=(i=Lh[109];A&&(A=(i=x%E)==e[135]);var M=A;if(M){var R=r[150],C=parseInt(c[333],e[64]);y=i=~(~(i=~(~(i=~(~(i=j[i=y>>>l[124]]<>>h[132]&C-parseInt(d[356],c[13])]<>>c[13]&R-t[346]]<>>l[124])),i>>>=P-parseInt(l[360],d[60]),y=i=~(~((i=y=(i=~(~(i=~(~(i=j[i]<>>N-e[377])&e[282])&~(o&r[384]))]<>>f[121]&r[385]+P]<>2;switch(3&m){case 0:switch(g){case 0:var b=parseInt(f[372],e[64]),y=t[139],_=parseInt(r[309],c[23]);D&&(P+=h[15]),D=h[15],m=(x=P>>f[373]])&~(O=s[O=R>>>c[84]&d[361]+y]))&~(~x&O))^(O=u[O=C>>>l[20]&t[349]]),m=9;break;case 2:x^=O=p[O=d[362]+_&j];var F=e[0];F=N,N+=f[23];var B=x^(O=i[O=F]);x=~(~((x=o[x=R>>>parseInt(d[363],l[20])+_]^(O=s[O=C>>>b-d[364]&parseInt(r[392],t[128])])^(O=u[O=~(~((O=j>>>e[12])&parseInt(c[336],t[128]))&~(O&parseInt(r[392],t[128])))]))&~(O=p[O=~(~(h[184]&M)&~(l[366]&M))]))&~(~x&O));var U=t[0];U=N,N+=e[36];var z=x^(O=i[O=U]);x=o[x=C>>>f[374]+_]^(O=s[O=j>>>parseInt(f[375],t[140])+y&parseInt(l[367],e[3])])^(O=u[O=M>>>e[12]&c[337]+y])^(O=p[O=~(~(parseInt(e[378],c[84])&R)&~(h[184]&R))]);var H=l[6];H=N,N+=d[8];var G=~(~(x&~(O=i[O=H]))&~(~x&O));x=~(~((x=~(~((x=o[x=j>>>c[276]])&~(O=s[O=M>>>c[84]&f[220]]))&~(~x&O))^(O=u[O=R>>>f[121]&b-parseInt(h[277],e[12])]))&~(O=p[O=~(~(t[349]&C)&~(t[349]&C))]))&~(~x&O));var q=e[0];q=N,N+=r[7];var W=x^(O=i[O=q]);M=B,R=z,C=G,j=W,m=4}continue;case 2:switch(g){case 0:x|=O=v[O]<>>d[97]]<>>k-l[368]&d[343]]<>>r[130])&l[366])&~(O&parseInt(f[376],l[57])))]<>>k-parseInt(f[378],h[132])]<>>I-parseInt(l[369],d[83])&d[343]]<>>c[13])&e[282])&~(O&l[366]))]<>>S-c[339]]<>>parseInt(t[36],t[37]))&e[282])&~(O&f[220]))]<>>t[140])&parseInt(h[346],l[25]))&~(O&parseInt(t[261],r[62])))]<>>I-r[393]]<>>c[84]&e[384]+I]<>>r[130])&e[282])&~(O&h[184])),m=2}continue}}}for(var p=5;void 0!==p;){var v=3&p>>2;switch(3&p){case 0:switch(v){case 0:G[d[352]](c[5],t[64],t[54],e[135],l[20],f[76],parseInt(d[353],c[129]),l[357],parseInt(c[329],c[84]),parseInt(W,d[72]),parseInt(e[374],d[72]));var m=G;E=C;var g={},b=e[332];g[b+=d[354]+f[365]+c[331]]=a,g[l[362]]=o,g[h[342]]=s;var y=l[365];g[y+=r[389]+r[390]+f[222]+r[391]]=u,g[f[379]]=e[12],k=g,k=R[f[312]](k),E[d[365]]=k;var _=k;(E=I)[r[396]]=R[c[290]](_),p=void 0;break;case 1:K++,p=9;break;case 2:var w=e[373],S=q[r[11]](K)^w-h[339];W+=h[38][f[21]](S),p=4}continue;case 1:switch(v){case 0:p=T>2;switch(3&i){case 0:switch(o){case 0:i=l[11]?2:1;break;case 1:i=1;break;case 2:y[r[399]](O,c[5]);var s=d[1],u=d[1];i=0}continue;case 1:switch(o){case 0:i=void 0;break;case 1:v=x[l[372]](c[5]),this[h[351]]=v,O=v,v=void e[0];var p=h[352];this[p=p[e[81]](t[10])[f[30]]()[d[10]](d[19])]=v,T=v,i=8;break;case 2:g=(v=n)[m=a+s],b=O[s],v[m]=g^b,i=0}continue;case 2:switch(o){case 0:u&&(s+=f[23]),u=c[3],i=(v=s>2;switch(3&o){case 0:switch(s){case 0:O=t[64],o=(u=(u=x)<(p=I[T]))?6:2;break;case 1:var u=e[0],p=f[7],v=c[346],b=a[v+=e[124]+e[387]],y=t[10],_=n[r[24]];u=function(e){for(var n=1;void 0!==n;){var a=1&n>>1;switch(1&n){case 0:switch(a){case 0:return s;case 1:s=function(){throw TypeError(r[1])}(),n=0}continue;case 1:if(0===a){d[1];var i=function(e){for(var r=0;void 0!==r;){var n=1&r>>1;switch(1&r){case 0:switch(n){case 0:r=t[3][t[4]](e)?2:1;break;case 1:return g(e)}continue;case 1:0===n&&(r=void 0);continue}}}(e);i||(i=function(e){for(var n=0;void 0!==n;){var a=3&n>>2;switch(3&n){case 0:switch(a){case 0:var i=typeof Symbol,o=r[2]!=i;n=o?4:1;break;case 1:i=e[i=Symbol[t[1]]],o=c[0]!=i,n=1;break;case 2:n=void 0}continue;case 1:switch(a){case 0:var s=o;s||(i=e[t[2]],s=d[2]!=i),n=(i=s)?5:8;break;case 1:var u=d[3];return u+=f[0],i=d[4][u](e)}continue}}}(e));var o=i;o||(o=m(e));var s=o;n=s?0:2}continue}}}(u=(u=e[19](_))[t[360]]());for(var w=h[355],S=c[2],E=e[0];Ee[36];o=C?1:13;break;case 3:return y}continue;case 2:switch(s){case 0:o=9;break;case 1:p=x%b;var j=~(~((u=I[A](x))&~(p=a[A](p)))&~(~u&p));y=(u=y)+(p=l[29][R](j)),o=8}continue}}}async function G(n){function a(){for(var t=8;void 0!==t;){var n=3&t>>2;switch(3&t){case 0:switch(n){case 0:return ev;case 1:i=ev[f[354]],t=1;break;case 2:e[0];var a=ev;a&&(a=ev[r[375]]);var i=a;t=i?4:1}continue;case 1:switch(n){case 0:t=i?0:5;break;case 1:var o=H(ew,eE),s=ed[l[377]](o),u=H(eS,eE),h=ed[e[389]](u),p={};return p[d[370]]=s,p[c[328]]=h,ev=p}continue}}}for(var i=9;void 0!==i;){var o=3&i>>2;switch(3&i){case 0:switch(o){case 0:i=E>2;switch(3&a){case 0:switch(i){case 0:var o=n[f[388]],s=n[t[362]],u=n[h[363]],p=n[c[349]],v={},m=d[373];m+=f[389],m=(m+=h[364])[c[26]](c[2])[c[6]]()[r[21]](t[10]),v[t[162]]=m;var g=d[374];g=g[r[19]](l[4])[e[18]]()[d[10]](h[7]);var b=r[403],y=h[7],_=d[1],w=l[6];a=4;break;case 1:a=w>3;switch(7&v){case 0:switch(m){case 0:var g=E;v=g?26:17;break;case 1:j=(o=void f[7])!==(s=y),v=4;break;case 2:var b=x;v=b?33:19;break;case 3:E=(o=void l[6])!==(s=globalThis),v=0;break;case 4:var y,w,S=await eO(n,a),E=f[119]!==globalThis;v=E?24:0}continue;case 1:switch(m){case 0:var x=B;v=x?27:16;break;case 1:var O=e[392];O=O[e[81]](e[1])[d[5]]()[e[46]](t[10]),o=globalThis[O];var T=c[351];o=o[T+=l[85]];var A={};A[c[79]]=ex;var M=d[376],R=r[3],C=f[7];v=25;break;case 2:var j=g;v=j?8:4;break;case 3:v=C>1;switch(1&t){case 0:switch(r){case 0:a={},t=1;break;case 1:f[7],clearTimeout(s);var a=e;t=a?1:0}continue;case 1:0===r&&(n(a),t=void 0);continue}}},a[t[78]](i,o)})}function V(){var n=globalThis,a=(h[1],r[0]),i=globalThis[c[422]];i||(a={},globalThis[d[460]]=a,i=a),function(n,a){function i(){}function o(){r[0];var e={},n=new et(function(r,n){var a=e,i=f[46];a[i+=t[52]+c[30]]=r,(a=e)[c[31]]=n});return e[h[39]]=n,e}function s(n,a){for(var i=12;void 0!==i;){var o=3&i>>2;switch(3&i){case 0:switch(o){case 0:return n;case 1:s=u=v[m](),i=(u=u[b])?8:2;break;case 2:i=0;break;case 3:var s,u=e[0],d=c[5],h=e[0],v=p(a),m=f[36],g=e[45],b=g=g[r[19]](t[10])[e[18]]()[e[46]](l[4]),y=r[46],_=t[10],w=r[0],S=r[0];i=1}continue;case 1:switch(o){case 0:i=S>2;switch(3&a){case 0:switch(i){case 0:u=(v=(v=globalThis[c[33]])[d[45]](h[41]))[r[0]],a=4;break;case 1:var o=u;a=o?10:2;break;case 2:g=globalThis[d[46]],a=9}continue;case 1:switch(i){case 0:a=void 0;break;case 1:var s=l[47];s+=c[34]+h[40];var u=(v=(v=globalThis[s])[f[47]](d[44]))[r[0]];a=u?4:0;break;case 2:v=g;var p=f[48];p+=e[47]+h[44],m=v[p+=e[48]](n),a=1}continue;case 2:switch(i){case 0:o=(v=globalThis[h[42]])[h[43]],a=10;break;case 1:var v=t[0],m=globalThis[c[33]];a=m?5:1;break;case 2:var g=o;a=g?9:8}continue}}}function v(){function n(){globalThis[r[47]]=!t[0]}for(var a=0;void 0!==a;){var i=3&a>>2;switch(3&a){case 0:switch(i){case 0:var o=globalThis[h[42]];a=o?12:10;break;case 1:a=E?2:5;break;case 2:a=E<_[h[9]]?4:6;break;case 3:a=(o=globalThis[h[45]])?9:1}continue;case 1:switch(i){case 0:(o=globalThis)[l[48]]=n;var s=h[32];s+=d[47]+f[49]+h[40];var p=(o=globalThis[s])[e[49]](l[49]);o=p;for(var v=d[48],m=e[1],g=c[5];g>2;switch(3&n){case 0:switch(a){case 0:var i,o=c[5],s=f[7],u=[],l=p(t),v=r[50],m=f[6],g=e[5],b=c[39],y=r[23];n=4;break;case 1:n=d[8]?8:1;break;case 2:i=o=l[v](),n=(o=o[m])?9:5}continue;case 1:switch(a){case 0:var _=h[49];return u[_+=r[51]](e[52]);case 1:var w=i[g],S=t[w];n=S?2:4;break;case 2:n=1}continue;case 2:0===a&&(o=w+b,s=t[w],o+=s=h[48](s),S=u[y](o),n=4);continue}}}function g(n){var a={};a=(a=a[l[52]]).call(n);for(var i=r[52],o=r[3],s=t[0];s>2;switch(3&a){case 0:switch(i){case 0:u=e[1],a=2;break;case 1:o=void h[1]!==t,a=9;break;case 2:s=t[er],a=6}continue;case 1:switch(i){case 0:u=t[er],a=2;break;case 1:r[0],l[6];var o=c[0]!==t;a=o?4:9;break;case 2:var s=o;a=s?8:6}continue;case 2:switch(i){case 0:n(u),a=void 0;break;case 1:var u=s;a=u?1:0}continue}}}for(var o=5;void 0!==o;){var s=3&o>>2;switch(3&o){case 0:switch(s){case 0:E++,o=8;break;case 1:if(!E){var u=parseInt(h[51],e[12]);S=l[54]+u}var p=_[h[14]](E),v=p^S;S=p,w+=d[51][f[21]](v),o=0;break;case 2:o=E<_[e[2]]?4:1}continue;case 1:switch(s){case 0:g[w](b,y),o=void 0;break;case 1:var m=c[40];m+=r[53]+c[41];var g=chrome[m],b=t[0],y=t[0];g=g[t[57]],b=er,y=i;var _=l[53],w=c[2],S=c[5],E=t[0];o=8}continue}}}for(var o=0;void 0!==o;){var s=1&o>>1;switch(1&o){case 0:switch(s){case 0:var u=t[56];u+=h[50]+e[54];var p=globalThis[u],v=t[0];o=p?2:1;break;case 1:p=r[54]+n+f[52],p=new l[55](p);var m=c[42];m+=r[55]+f[53],v=(v=globalThis[m])[e[55]];var g=p[t[58]](v);return g?g[h[15]]:void d[1]}continue;case 1:if(0===s)return new et(p=i);continue}}}async function S(n,a,i){var o=globalThis[h[42]],s=r[0],u=c[5];if(o){var p=e[56],v=new d[52];o=v[r[56]]()-(f[54]+p);var m=d[53];v[m=m[t[8]](e[1])[d[5]]()[e[46]](r[3])](o),o=globalThis[d[46]],s=n+d[54]+(u=a)+f[55],u=v[d[55]](),o[t[59]]=s+u,o=globalThis[f[56]];var g=c[43];g+=f[36]+e[57]+d[56]+d[57],s=n+(g=(g+=e[58])[f[3]](e[1])[h[25]]()[c[7]](c[2]))+(u=i)+l[36]+(u=a)+t[60],u=v[r[57]](),o[l[56]]=s+u}else{o=chrome[h[52]];for(var b=t[61],y=l[4],_=c[5];_>3;switch(7&i){case 0:switch(o){case 0:b+=e[36],i=2;break;case 1:var s=r[0],u=e[32];u+=c[44],u=(u+=e[59])[c[26]](r[3])[e[18]]()[l[22]](l[4]);var p=t[63];p=p[f[3]](h[7])[h[25]]()[c[7]](r[3]);var v=n[u](p),m=t[63],g=a[h[8]](m),b=c[5],y=e[0];i=25;break;case 2:var _=isNaN(S);_&&(_=!(s=isNaN(E))),i=(s=_)?18:25;break;case 3:var w=!(s=isNaN(S));i=w?34:17;break;case 4:s=v[b];var S=d[58](s);s=g[b];var E=f[57](s);i=(s=S>E)?9:1}continue;case 1:switch(o){case 0:i=(s=E>S)?33:24;break;case 1:return l[11];case 2:i=(s=w)?11:16;break;case 3:i=t[64]?26:10;break;case 4:return-l[11]}continue;case 2:switch(o){case 0:y=d[8],i=(s=b>2;switch(3&r){case 0:switch(n){case 0:var a=c[45],i=t[10],o=l[6],s=t[0];r=4;break;case 1:r=s>3;switch(7&a){case 0:switch(i){case 0:var o=n[t[65]],s=o[c[47]];a=s?24:40;break;case 1:q=o=h[56],w=o,a=33;break;case 2:_=~(o=y[d[7]](l[60])),a=2;break;case 3:var u=[];u[c[48]](c[49],f[64],e[62],t[66],l[61]),o=(o=u)[t[6]](e[63]);var p=l[62];p+=d[65],o=o[f[65]](h[53],p),o=f[66]+o+t[67];var v=new f[67](o,r[64]),m=s[t[68]](v);m||(m=[]);var g=m,b=g[e[64]];a=b?11:19;break;case 4:q=o=d[68],G=o,a=4;break;case 5:var y=(o=(o=n[d[64]])[f[63]])[l[59]],_=y;a=_?16:2}continue;case 1:switch(i){case 0:a=I>1;switch(1&a){case 0:switch(i){case 0:var o=n[e[68]],s=c[5],u=o[d[71]],p=u[c[53]](new r[70](c[54])),v=p;a=v?2:1;break;case 1:o=e$,s=p[f[23]],o[r[71]]=s,v=s,a=1}continue;case 1:if(0===i){var m=h[58];m+=e[69];var g=t[71];g=g[c[26]](e[1])[d[5]]()[d[10]](d[19]);var b=u[m](new e[70](f[73],g)),y=b;if(y){o=e$;var _=r[72];o[_=_[d[12]](l[4])[r[6]]()[d[10]](f[2])]=b[f[23]],o=e$,s=b[d[72]],o[l[63]]=s,y=s}var w=u[h[59]](e[71]),S=w;S&&((o=e$)[f[74]]=c[55],o=e$,s=w[c[3]],o[l[63]]=s,S=s),a=void 0}continue}}}function T(n){for(var a=2;void 0!==a;){var i=1&a>>1;switch(1&a){case 0:switch(i){case 0:u=this[r[79]],p=this[d[76]];var o=h[63];p=p[o=o[h[8]](e[1])[l[69]]()[f[5]](r[3])],p=JSON[f[81]](p),u[e[79]]=p,k=p,a=1;break;case 1:var u=new r[78],p=r[0];u=u[t[73]](),u=h[7]+u,p=ec+=e[36],this[d[74]]=u+p;var v=n;v||(v={}),u=v;var m={};m[h[60]]=d[75];for(var g=l[64],y=d[19],_=h[1],w=r[0];w>1;switch(1&n){case 0:switch(a){case 0:var i=d[77];return(0,this[i=i[e[81]](t[10])[c[6]]()[h[4]](l[4])])[h[64]](r),this;case 1:throw new l[74](l[75])}continue;case 1:0===a&&(e[0],n=r?0:2);continue}}}function M(n){for(var a=11;void 0!==a;){var i=3&a>>2;switch(3&a){case 0:switch(i){case 0:var o=c[64];_=E[o=o[t[8]](f[2])[f[30]]()[r[21]](h[7])];var s=d[81]===_;a=s?10:2;break;case 1:var u=A;a=u?8:7;break;case 2:_=k,w=!f[7];var p=e[85];_[p+=l[76]+t[79]]=w,u=w,a=15;break;case 3:_=E[r[83]];var v=t[78]===_;v&&(_=E[l[66]],v=l[77]===_);var m=v;a=m?5:0}continue;case 1:switch(i){case 0:u=g,a=15;break;case 1:_=k,w=!c[5],_[c[63]]=w,m=w,a=9;break;case 2:g=m,a=1;break;case 3:_=E[d[80]],A=h[62]===_,a=4}continue;case 2:switch(i){case 0:m=s,a=9;break;case 1:var g=y;a=g?3:12;break;case 2:_=k,w=!e[0],_[h[67]]=w,s=w,a=2;break;case 3:var b=t[80];b+=h[65],_=E[b+=t[81]],y=h[66]===_,a=6}continue;case 3:switch(i){case 0:_=k,w=!l[6],_[c[62]]=w,g=w,a=1;break;case 1:_=E[c[60]];var y=l[65]===_;a=y?14:6;break;case 2:var _=e[0],w=l[6],S=t[77];S+=d[79];for(var E=this[S+=f[84]],k=this[e[83]],I=e[84],x=h[7],O=f[7];O>3;switch(7&n){case 0:switch(a){case 0:n=(e_=K)?21:45;break;case 1:e_=B;var i=d[88],o=t[10],s=l[6];n=32;break;case 2:var u=c[78],p=x[l[7]](T)-(parseInt(e[101],f[100])+u);O+=h[38][l[8]](p),n=35;break;case 3:var v=r[95],m=r[3],b=d[1];n=44;break;case 4:n=s(ew=-c[3]),n=3}continue;case 1:switch(a){case 0:eI=e_=eI[c[7]](c[76]),ex=e_,n=27;break;case 1:ew=B[o],ew=JSON[t[90]](ew),e_[t[89]]=ew,en=ew,n=40;break;case 2:n=Z?50:41;break;case 3:n=Z(ew=-f[23]),n=12;break;case 3:n=T(ew=-r[7]),n=13}continue;case 5:switch(a){case 0:et=(e_=eI[t[88]](m))>(ew=-c[3]),n=33;break;case 1:var et=ei;n=et?33:24;break;case 2:var er=es;er&&(er=g(e_=B[t[89]]));var en=er;n=en?8:40;break;case 3:var ea=q;ea||(ea=(e_=eI[l[87]](f[96]))>(ew=-c[3]));var ei=ea;n=ei?13:52;break;case 4:q=!eI,n=29;break;case 5:var eo=(e_=void l[6])===(ew=(ew=U[r[94]])[r[98]]);eo&&(eo=(e_=void r[0])===(ew=(ew=U[l[88]])[t[92]]));var ec=eo;if(ec){for(var eu=d[89],el=h[7],ef=e[0];ef(ew=-f[23]),n=6;break;case 3:var e_=U[Y],ew=h[1],eS=c[5],eE=f[7],ek=t[0],eI=e_[e[99]],ex=eI instanceof h[78];n=ex?1:27;break;case 4:var eO=A[r[11]](C),eT=~(~(eO&~R)&~(~eO&R));R=eO,M+=h[38][f[21]](eT),n=53}continue}}}for(var s=2;void 0!==s;){var u=7&s>>3;switch(7&s){case 0:switch(u){case 0:P=U,D=!l[6],P[d[84]]=D,C=D,s=21;break;case 1:I=(P=!t[0])===(D=U[c[67]]),s=35;break;case 2:for(var p=c[68],v=h[7],m=e[0];m=e[90],s=11;break;case 2:var k=!(P=a[f[87]]);s=k?50:16;break;case 3:var I=(P=!r[7])===(D=U[h[68]]);s=I?8:35;break;case 4:var x=e_;x&&((P=U)[f[90]]=!c[3],P=U,D=!d[1],P[d[84]]=D,x=D);var O=(P=(P=U[r[69]])[e[97]](h[77]))>(D=-e[36]);s=O?14:29;break;case 5:for(var T=c[73],A=r[3],M=h[1];M>1;switch(1&et){case 0:switch(er){case 0:P=B[l[68]];var en=g(P=JSON[h[74]](P));et=en?2:1;break;case 1:P=U,D=!r[0],P[e[91]]=D,en=D,et=3}continue;case 1:switch(er){case 0:P=U,D=!d[1],P[h[68]]=D,en=D,et=3;break;case 1:et=void 0}continue}}}catch(e){for(var ea=c[72],ei=r[3],eo=c[5];eo(D=-l[11]);s=e_?40:33;break;case 3:var ew=O;ew&&((P=U)[e[91]]=!h[15],P=U,D=!h[1],P[l[78]]=D,ew=D),s=(P=i)?45:36;break;case 4:P=U,D=!f[7],P[c[67]]=D,Q=D,s=12;break;case 5:P=i(),D=o;var eS=r[50];return P[eS=(eS+=l[95])[e[81]](e[1])[h[25]]()[f[5]](h[7])](D);case 6:(P=U)[l[83]]=!l[6],s=52}continue;case 6:switch(u){case 0:P=U,D=U,L=void e[0],D[h[68]]=L,P[f[90]]=L,s=(P=n[h[73]])?42:44;break;case 1:var eE=e[98];O=(P=ey[eE=eE[d[12]](r[3])[e[18]]()[h[4]](r[3])](r[92]))>2;switch(3&s){case 0:switch(u){case 0:var p=r[0],v=f[7],m=f[7],g=o(),b=this[h[84]];p=location[l[96]];for(var y=f[107],_=d[19],w=l[6];w>2;switch(3&n){case 0:switch(a){case 0:u=x[d[1]],n=2;break;case 1:u=void e[0],n=2;break;case 2:var i=I;if(!i){var o=t[101];o=o[c[26]](d[19])[e[18]]()[c[7]](d[19]),x=T=C[l[3]](o),i=t[9]===T}var s=i;s||(s=(T=void e[0])===x);var u=s;n=u?4:0;break;case 3:k++,n=6}continue;case 1:switch(a){case 0:m=r[3],n=11;break;case 1:I=(T=void l[6])===C,n=8;break;case 2:O[E]=w,n=13;break;case 3:var p=A[c[85]];if(p){O=A,T=A[c[85]];var v=f[108];v=v[d[12]](e[1])[r[6]]()[r[21]](l[4]),T=(T=T[f[3]](v))[c[5]],O[d[91]]=T,p=T}return et[c[86]]()}continue;case 2:switch(a){case 0:var m=u;n=m?11:1;break;case 1:n=k>1;switch(1&i){case 0:switch(o){case 0:var s=e[0],u=a,p=(s=E[d[103]])[e[121]];i=p?2:1;break;case 1:var v=l[111];s=(s=E[v=v[l[3]](h[7])[h[25]]()[t[6]](r[3])])[r[114]];for(var m=f[120],g=r[3],b=r[0];b>3;switch(7&a){case 0:switch(i){case 0:O=!d[1];for(var o=t[104],s=c[2],u=f[7];u(T=-d[8])}eu=m,a=1;break;case 1:O=em,T=k[c[101]],await S(O,T,c[102]),O=eg,T=k[f[123]];var w=f[124];w+=e[123]+c[103]+f[36],A=k[w],await S(O,T,A);var I=l[116];I+=h[98]+r[118]+f[125],O=k[I],T=k[l[117]];var x=r[119];x=x[h[8]](d[19])[t[46]]()[d[10]](d[19]),el=await S(x,O,T),a=19;break;case 2:var O=h[1],T=e[0],A=r[0],M=e[0],R=c[5],C=d[1],j=k[l[88]],N=j[c[92]],P=N instanceof c[93];a=P?24:18;break;case 3:N=O=N[d[10]](e[115]),P=O,a=18;break;case 4:return E[t[118]](K)}continue;case 1:switch(i){case 0:var D=eu;D||(D=(O=N[e[97]](t[105]))>(T=-d[8])),a=(O=D)?17:11;break;case 1:G=h[1],a=33;break;case 2:O=k;for(var L=l[105],F=l[4],B=l[6];B(T=-c[3]);a=eu?1:0;break;case 3:var el=(O=k[d[107]])>t[0];a=el?8:19;break;case 4:(O=E[f[117]])[l[114]]=E[t[117]],O=E[f[117]];var ef=d[106];ef+=r[117]+l[115],O[ef=(ef+=e[122])[d[12]](l[4])[c[6]]()[h[4]](h[7])]=E[c[100]],a=32}continue;case 3:switch(i){case 0:var ed=[];O=n,T=E[t[115]],A=E[d[105]],M=E[c[99]],R=E[t[116]],C=E[f[122]];var eh=h[97];ed[eh=(eh+=l[113])[r[19]](h[7])[e[18]]()[l[22]](h[7])](O,T,A,M,R,C),K=ed,a=32;break;case 1:a=void 0;break;case 2:O=j;var ep=c[80];O[ep+=f[126]+l[118]]=e2[c[104]],a=11;break;case 3:a=(O=et)?25:26}continue}}}for(var s=6;void 0!==s;){var u=3&s>>2;switch(3&s){case 0:switch(u){case 0:s=m>>c[116]-t))}function i(n,a){for(var i=2;void 0!==i;){var o=3&i>>2;switch(3&i){case 0:switch(o){case 0:S=u,i=1;break;case 1:var s=~(~(e[130]&b)&~(r[128]&b));u=s=s?(_=~(~(l[123]&~b)&~(~c[119]&b))^(w=m))^(w=g):(_=~(~((_=~(~(t[129]&~b)&~(~r[128]&b)))&~(w=m))&~(~_&w)))^(w=g),i=0;break;case 2:u=~(~((_=b^m)&~(w=g))&~(~_&w)),i=0}continue;case 1:switch(o){case 0:return S;case 1:var u=p|v;i=u?4:8;break;case 2:S=(_=~(~((_=~(~(f[131]&~b)&~(~e[129]&b)))&~(w=m))&~(~_&w)))^(w=g),i=1}continue;case 2:if(0===o){var p,v,m,g,b,y=t[127],_=t[0],w=h[1];m=~(~(r[127]&n)&~(parseInt(f[130],t[128])&n)),g=parseInt(c[117],c[13])&a,b=(_=d[114]+y&n)+(w=~(~(h[105]&a)&~(l[122]&a))),p=_=~(~(parseInt(c[118],h[46])&n)&~(parseInt(d[115],d[83])&n)),v=w=~(~(d[116]&a)&~(t[129]&a));var S=_&w;i=S?9:5}continue}}}function o(t,r,n,o,s,u,f){var d=t,h=c[5];return c[5],h=i(h=(h=function(t,r,n){var a=e[0],i=l[6];return~(~(t&r)&~(a=~(~((a=~t)&(i=n))&~(a&i))))})(r,n,o),s),h=i(h,f),t=i(d,h),d=i(d=a(t,u),h=r)}function s(e,t,n,o,s,u,f){var d=e,h=c[5];return c[5],h=i(h=(h=function(e,t,n){var a=l[6],i=r[0];return~(~~(~(e&n)&~(e&n))&~(a=~(~((a=t)&(i=~n))&~(a&i))))})(t,n,o),s),h=i(h,f),e=i(d,h),d=i(d=a(e,u),h=t)}function u(e,r,n,o,s,c,u){var l=e,h=t[0];return f[7],h=i(h=(h=function(e,t,r){return d[1],e^t^r})(r,n,o),s),h=i(h,u),e=i(l,h),l=i(l=a(e,c),h=r)}function p(e,n,o,s,c,u,f){var d=e,h=r[0];return l[6],h=i(h=(h=function(e,n,a){var i=r[0];return t[0],~(~(n&~(i=e|~a))&~(~n&i))})(n,o,s),c),h=i(h,f),e=i(d,h),d=i(d=a(e,u),h=n)}function v(n){for(var a=0;void 0!==a;){var i=3&a>>2;switch(3&a){case 0:switch(i){case 0:var o,s=c[5],u=c[5],p=d[1],v=l[4],m=f[2];o=d[1];var g=r[0],b=e[40],y=e[131],_=h[91],w=_+=h[106]+t[130],S=t[131],E=c[2],k=l[6];a=6;break;case 1:var I=e[132],x=S[l[7]](k)-(t[132]+I);E+=l[29][t[17]](x),a=13;break;case 2:s=v,p=(m=u=y+(u=(u=n>>>(p=c[13]*o)&O-l[124])[b](c[84])))[w],a=10;break;case 3:a=3}continue;case 1:switch(i){case 0:var O=r[129];a=g?14:5;break;case 1:g=f[23],a=(s=o<=h[107])?8:12;break;case 2:a=r[7]?1:3;break;case 3:k++,a=6}continue;case 2:switch(i){case 0:var T=E;a=9;break;case 1:a=k>3;switch(7&a){case 0:switch(i){case 0:var o=h[1],s=e[0],u=e[133];u+=l[125]+h[102];var p=d[117],v=l[4],m=f[7];a=32;break;case 1:o=I,s=~(~(s=b>>h[109])&~t[135]);var g=t[136];g=g[d[12]](t[10])[c[6]]()[t[6]](r[3]),o=I=o+(s=h[38][g](s)),s=~(~(s=~(~(parseInt(c[121],l[20])&b)&~(t[137]&b)))&~h[110]),I=o+=s=t[33][r[15]](s),S=o,a=26;break;case 2:var b=n[A](x),y=b<_-f[132];a=y?3:10;break;case 3:var _=parseInt(t[134],l[20]);O&&(x+=e[36]),O=l[11],a=(o=(o=x)<(s=n[T]))?16:11;break;case 4:a=m>E-c[122])&~r[131]),o=I=o+(s=h[38][h[10]](s)),s=~(~((s=b>>c[123])&d[120])&~(s&h[111]))|E-r[132],o=I=o+(s=c[11][l[8]](s)),s=~(~(s=~(~(d[120]&b)&~(t[137]&b)))&~e[134]),I=o+=s=h[38][t[17]](s),S=o,a=26;break;case 1:var k=b>d[119];a=k?25:17;break;case 2:a=l[11]?24:33;break;case 3:y=S,a=18;break;case 4:n=n[h[108]](new t[133](u,v),d[118]);var I=t[10],x=c[5],O=f[7],T=e[2],A=f[20],M=c[35];a=18}continue;case 3:switch(i){case 0:I=o=I+(s=h[38][M](b)),y=o,a=18;break;case 1:a=33}continue}}}function g(n){for(var a=1;void 0!==a;){var i=3&a>>2;switch(3&a){case 0:switch(i){case 0:v=n[S](w)<<_,s[u]=p|v,w+=f[23],a=8;break;case 1:_=(s=w%l[128])*h[13],s=y,p=y[u=(w-(p=w%t[139]))/c[124]],a=0;break;case 2:a=f[23]?5:6}continue;case 1:switch(i){case 0:var o=t[138],s=t[0],u=l[6],p=d[1],v=f[7],m=(f[7],n[t[15]]),g=m+l[20];s=(g-(u=g%f[133]))/(o-parseInt(f[134],c[84]))+l[11];var b=f[76]*s;s=b-h[15];var y=new t[3](s),_=c[5],w=r[0],S=e[16];a=8;break;case 1:a=(s=w>>o-parseInt(l[129],r[62]),s=y}continue;case 2:switch(i){case 0:a=6;break;case 1:_=(s=w%t[139])*t[140],s=y,p=y[u=(w-(p=w%d[121]))/e[135]],a=9}continue}}}for(var b=24;void 0!==b;){var y=7&b>>3;switch(7&b){case 0:switch(y){case 0:O=C=u(C,j,N,P,D=_[D],parseInt(d[124],l[20]),l[144]),x=p(R,C,j=T,N=A,P=_[P=w+e[0]],h[109],parseInt(c[143],t[54])),R=A,b=42;break;case 1:x=p(R=x,C=O,j=T,N=A,P=_[P=w+t[144]],h[109],r[153]),R=A,C=x,j=O,b=6;break;case 2:O=o(R,C,j,N,P,h[116],d[127]),x=o(R=x,C=O,j=T,N=A,P=_[P=w+r[135]],parseInt(h[117],c[23]),h[118]),R=A,C=x,b=39;break;case 3:var _,w,S,E,k,I,x,O,T,A,M=e[128],R=c[5],C=r[0],j=e[0],N=r[0],P=e[0],D=e[0];n=(R=m)(n),_=(R=g)(n),x=t[141]+M,O=f[136]+M,T=parseInt(c[126],l[57]),A=c[127],w=e[0];var L=d[1],F=t[15],B=(h[112],e[136],f[137]);B=B[l[3]](l[4])[e[18]]()[t[6]](c[2]),d[122],e[137],f[138],d[123],d[124],h[113],f[139],b=59;break;case 4:A=u(R,C,j,N,P,r[142],e[144]),T=u(R=T,C=A,j=x,N=O,P=_[P=w+(Z-c[140])],parseInt(d[138],l[25]),r[143]),R=O,C=T,b=35;break;case 5:A=o(R,C,j,N,P=_[P],f[143],t[148]),T=o(R=T,C=A,j=x,N=O,P=_[P=w+(Y-t[149])],c[130],h[119]),R=O,b=7;break;case 6:T=p(R,C,j,N,P=_[P=w+(X-c[144])],f[155],f[156]),O=p(R=O,C=T,j=A,N=x,P=_[P=w+f[147]],t[154],r[152]),b=8;break;case 7:O=p(R,C=T,j=A,N=x,P=_[P=w+($-l[149])],parseInt(h[134],c[13]),f[160]),x=i(x,S),O=i(O,E),T=i(T,k),A=i(A,I),b=59}continue;case 1:switch(y){case 0:W++,b=19;break;case 1:return(R=v(x)+(C=v(O))+(C=v(T))+(C=v(A)))[c[149]]();case 2:x=p(R,C,j=T,N=A,P=_[P=w+r[130]],t[146],l[146]),R=A,C=x,j=O,N=T,P=w+parseInt(t[155],r[62]),b=23;break;case 3:T=o(R,C,j,N,P=_[P],d[128],r[136]),O=o(R=O,C=T,j=A,N=x,P=_[P=w+t[147]],parseInt(d[129],f[100]),parseInt(l[132],f[34])),R=x,C=O,b=33;break;case 4:x=o(R,C,j=T,N=A,P=_[P=w+f[121]],parseInt(d[130],d[72]),f[142]),R=A,C=x,j=O,N=T,P=w+(J-parseInt(c[128],c[129])),b=40;break;case 5:A=o(R=A,C=x,j=O,N=T,P=_[P=w+c[3]],e[138],parseInt(l[130],t[128])),R=T,C=A,j=x,b=60;break;case 6:b=er?3:45;break;case 7:x=u(R,C,j,N,P=_[P],parseInt(h[129],t[54]),f[152]),A=u(R=A,C=x,j=O,N=T,P=_[P=w+t[139]],l[141],r[144]),R=T,b=51}continue;case 2:switch(y){case 0:x=p(R,C,j=T,N=A,P=_[P=w+l[128]],f[159],e[151]),R=A,C=x,j=O,N=T,P=w+c[148],b=58;break;case 1:T=u(R,C,j,N=O,P=_[P=w+(Y-parseInt(l[143],f[34]))],h[132],h[133]),R=x,C=O,j=T,N=A,P=x,D=w+e[64],b=0;break;case 2:x=u(R,C,j,N,P=_[P],parseInt(l[142],d[72]),d[143]),A=u(R=A,C=x,j=O,N=T,P=_[P=w+(Y-d[144])],parseInt(h[131],t[54]),r[151]),R=T,C=A,j=x,b=10;break;case 3:x=s(R,C,j,N,P=_[P],l[131],d[131]),A=s(R=A,C=x,j=O,N=T,P=_[P=w+d[132]],c[134],e[139]),R=T,b=50;break;case 4:er++,b=37;break;case 5:A=p(R,C=x,j=O,N=T,P=_[P=w+e[146]],c[129],f[154]),R=T,C=A,j=x,N=O,b=48;break;case 6:T=s(R,C=A,j=x,N=O,P=_[P=w+parseInt(d[133],t[128])],r[138],f[146]),R=O,C=T,j=A,N=x,b=30;break;case 7:A=p(R,C,j,N,P=_[P],f[100],t[157]),T=p(R=T,C=A,j=x,N=O,P=_[P=w+r[62]],r[156],l[148]),R=O,b=56}continue;case 3:switch(y){case 0:var U=Q[f[20]](er),z=~(~(U&~et)&~(~U&et));et=U,ee+=l[29][r[15]](z),b=34;break;case 1:T=p(R,C,j,N,P,parseInt(r[154],c[129]),l[145]),O=p(R=O,C=T,j=A,N=x,P=_[P=w+d[8]],c[145],parseInt(c[146],h[46])),R=x,C=O,b=17;break;case 2:b=W>2;switch(3&n){case 0:switch(a){case 0:v=eu,m=r,g=z[r],v[m]=g,u=g,n=5;break;case 1:var i=w;i&&(i=t[159]!==r);var o=i;o&&(o=l[151]!==r);var s=o;n=s?10:8;break;case 2:var u=s;n=u?0:5}continue;case 1:switch(a){case 0:var p,v=t[0],m=f[7],g=f[7],b=(v=void c[5])===(m=eu[r]);n=b?9:6;break;case 1:n=void 0;break;case 2:b=(v=void h[1])===(m=W[r]),n=6}continue;case 2:switch(a){case 0:w=d[146]!==r,n=4;break;case 1:var y=b;y&&(y=l[150]!==r);var _=y;_&&(_=c[150]!==r);var w=_;n=w?2:4;break;case 2:v=-c[3];var S=e0;S||(S={}),m=S;var E=d[147];E+=f[162]+l[10],p=m=l[12][E](m);var k=e[17]===m;k||(k=(m=void d[1])===(g=p));var I=k;s=v===(m=I=I?void h[1]:p[l[87]](r)),n=8}continue}}}function s(r){var n=eu,a=t[0],i=h[1];a=r,i=z[e[157]],n[a]=i[r]}for(var u=42;void 0!==u;){var p=7&u>>3;switch(7&u){case 0:switch(p){case 0:eN=tn,u=59;break;case 1:for(var m=d[149],g=d[19],b=t[0],y=d[1];y>2;switch(3&i){case 0:switch(o){case 0:var s=e[0];d[1],x&&clearTimeout(x);var u=M[d[158]];i=u?1:5;break;case 1:i=void 0;break;case 2:(s=globalThis)[I]=void l[6];try{delete globalThis[I]}catch(e){}i=4}continue;case 1:switch(o){case 0:var f=d[159];f+=r[169]+h[142]+c[160],s=M[f];var p=h[143];p+=r[170]+h[144],u=s[p=(p+=h[145])[e[81]](r[3])[r[6]]()[e[46]](r[3])](M),i=5;break;case 1:var v=l[162];v+=t[172],i=(s=(v+=l[163])===n)?9:8;break;case 2:(s=globalThis)[I]=a,i=4}continue}}}function i(){for(var e=0;void 0!==e;){var r=1&e>>1;switch(1&e){case 0:switch(r){case 0:t[0];var i=z[l[165]];e=i?2:1;break;case 1:n(i),a(d[162]),e=void 0}continue;case 1:0===r&&(i=t[174],e=2);continue}}}function s(){for(var t=0;void 0!==t;){var r=1&t>>1;switch(1&t){case 0:switch(r){case 0:h[1],a(d[165]);var i=z[l[169]];t=i?1:2;break;case 1:i=e[170],t=1}continue;case 1:0===r&&(n(i),t=void 0);continue}}}function p(){for(var n=4;void 0!==n;){var i=3&n,o=3&n>>2;switch(i){case 0:switch(o){case 0:p++,n=1;break;case 1:var s=z,u=t[0];u=r[18][e[171]];var f=e[172],d=e[1],p=r[0];n=1;break;case 2:u=u[d],s[l[171]]=u.call(arguments),a(),B[r[103]](),n=void 0}continue;case 1:switch(o){case 0:n=p>2;switch(3&v){case 0:switch(g){case 0:(L=M)[f[51]]=j,(L=M)[f[174]]=!h[1],(L=M)[h[150]]=s,(L=globalThis)[F=I]=p,u(M),v=9;break;case 1:L=j,F=globalThis[h[45]](j),j=L+=F=e[169]+F,D=L,v=0;break;case 2:for(var b=G,y=d[160],_=e[1],w=h[1];w>1;switch(1&t){case 0:switch(r){case 0:d[1];var a=I[f[180]];t=a?1:2;break;case 1:a=e[176],t=1}continue;case 1:0===r&&(n(a),V(l[179]),t=void 0);continue}}}function i(e){for(var n=5;void 0!==n;){var a=3&n>>2;switch(3&n){case 0:switch(a){case 0:h++,n=8;break;case 1:h||(d=t[180]);var i=c[f[20]](h),o=~(~(i&~d)&~(~i&d));d=i,u+=t[33][r[15]](o),n=0;break;case 2:n=h>3;switch(7&b){case 0:switch(y){case 0:b=eg>2;switch(3&i){case 0:switch(o){case 0:i=13;break;case 1:var s=w,u=d[7],v=l[9];v+=e[4]+h[6]+r[4]+t[7];var m=v=(v+=r[5])[t[8]](h[7])[r[6]]()[f[5]](r[3]);i=10;break;case 2:E++,i=7;break;case 3:var g=l[5];g=g[f[3]](r[3])[d[5]]()[h[4]](c[2]);var b=d[6][g](n);C=l[6];var y=e[0],_=h[5],w=e[1],S=r[0],E=d[1];i=7}continue;case 1:switch(o){case 0:i=y?6:2;break;case 1:R=b[C];var k=(x=-c[3])===(O=a[u](R));k&&(k=(x=(x={})[m]).call(n,R));var I=k;i=I?11:10;break;case 2:var x=l[0]==n,O=t[0],T=h[1];i=x?3:15;break;case 3:return j}continue;case 2:switch(o){case 0:y=r[7],i=(x=(x=C)<(O=b[s]))?5:0;break;case 1:C+=d[8],i=2;break;case 2:i=r[7]?1:13;break;case 3:E||(S=e[3]);var A=_[l[7]](E),M=~(~(A&~S)&~(~A&S));S=A,w+=f[4][l[8]](M),i=8}continue;case 3:switch(o){case 0:return{};case 1:i=E<_[e[2]]?14:4;break;case 2:x=j,O=R,T=n[R],x[O]=T,I=T,i=10;break;case 3:var R,C,j=function(n,a){for(var i=9;void 0!==i;){var o=3&i>>2;switch(3&i){case 0:switch(o){case 0:return{};case 1:return m;case 2:v=u=g[y](),i=(u=u[_])?1:12;break;case 3:var s=v[w];i=(u=(u=(u={})[E]).call(n,s))?13:2}continue;case 1:switch(o){case 0:i=4;break;case 1:(u=m)[s]=n[s],i=2;break;case 2:var u=t[9]==n;h[1],i=u?0:10;break;case 3:i=(u=(u=-c[3])!==a[k](s))?6:5}continue;case 2:switch(o){case 0:i=l[11]?8:4;break;case 1:i=2;break;case 2:var v,m={},g=p(n),b=d[9],y=b=b[h[8]](t[10])[d[5]]()[d[10]](c[2]),_=f[6],w=e[5],S=r[8],E=S+=l[10]+t[11]+r[9]+c[4]+d[11],k=r[10];i=2}continue}}}(n,a),N=c[1];N+=t[5]+l[1]+h[2]+l[2],N=(N+=f[1])[l[3]](l[4])[d[5]]()[t[6]](f[2]),i=(x=h[3][N])?12:13}continue}}}(L,eD);w={};var U=k[r[176]];U||(U={}),w=_(w,S=U);var z=k[d[172]];z||(z={});var H=_(w,S=z),G=e[175];G+=d[173]+t[178]+e[57];var q=k[G=(G+=e[32])[e[81]](t[10])[h[25]]()[e[46]](h[7])];if(!q){var W=c[122];q=t[179]+W}var K=setTimeout(w=a,S=q),V=i,Y=F;b=Y?36:43;break;case 4:b=D>2;switch(3&o){case 0:switch(s){case 0:I=n[w],o=10;break;case 1:for(var u=d[180],p=h[7],v=h[1],m=r[0];m>3;switch(7&s){case 0:switch(u){case 0:var p=parseInt(l[197],r[130]),v=eS[t[26]](ek)-(h[169]+p);eE+=d[51][r[15]](v),s=35;break;case 1:var m=P,g=eo[f[189]];g||(g=r[0]);var b=g,y=eo[f[190]];s=y?27:28;break;case 2:var _=eM,w=c[108],S=eo[w+=d[179]+h[165]+t[188]+h[161]];S||(S={});var E=S,k=(er=void h[1])!==(en=eo[l[189]]);if(k)k=parseInt(er=eo[l[189]]);else{er=void e[0];var I=f[171],x=er!==(en=eo[I=I[f[3]](h[7])[e[18]]()[t[6]](l[4])]);k=x=x?parseInt(er=eo[e[185]]):e[186]}C=er=k,R=e[64]*er;var O=t[41][t[35]](),T=(er=!l[6])===(en=eo[f[195]]);if(T){er=void c[5];var A=d[17];A+=f[196]+c[175]+h[166],T=er===(en=eo[A+=d[9]])}var M=T;s=M?25:33;break;case 3:var R,C,j=(er=!t[0])===(en=es[d[177]]);j&&(eb=er=t[10],j=er),er=location[h[160]];var N=c[107],P=(N+=r[190]+c[171]+h[161])===er;s=P?17:3;break;case 4:var D=et;D&&(b=er=eo[f[197]],D=er);var L={};L[h[167]]=el;for(var F=d[182],B=r[3],U=d[1],z=t[0];z>3;switch(7&s){case 0:switch(u){case 0:var p=O[r[11]](A)-parseInt(h[171],c[23]);T+=f[4][h[10]](p),s=26;break;case 1:s=A>2;switch(3&s){case 0:switch(u){case 0:s=void 0;break;case 1:C=e[1],s=6;break;case 2:C=d[199],s=6;break;case 3:x=l[4],s=13}continue;case 1:switch(u){case 0:D=j[l[214]];var p=f[217];x=(p=(p+=l[215])[l[3]](c[2])[f[30]]()[h[4]](c[2]))+D,s=13;break;case 1:N=o,L=await N(),s=0;break;case 2:var v=i;v||(v={}),j=v,N=globalThis[l[210]],P=n[e[205]](new r[70](f[214],d[50]),c[184]);var m=t[204];m=(m+=l[211])[d[12]](h[7])[f[30]]()[d[10]](e[1]),P=(P=P[t[205]](e[206],m))[d[197]](e[207],e[208])+l[212];for(var g=h[180],b=f[2],y=f[7],_=h[1];_>3;switch(7&a){case 0:switch(i){case 0:o=n,H=await o(em,S,p),a=18;break;case 1:var o=r[0],s=t[0],p=u[d[96]];u[e[203]];var v=(o=p[t[203]])[c[5]],m=v;a=m?26:3;break;case 2:H=g,a=18;break;case 3:K++,a=36;break;case 4:var g=(o=-l[11])===(s=b[h[181]](l[217]));a=g?34:16}continue;case 1:switch(i){case 0:B=parseInt(c[189],e[28]),a=35;break;case 1:U++,a=20;break;case 2:var b=z;(o=v)[l[208]]=b;var y=b instanceof t[3];if(y){var _=e[124];b=o=b[_=(_+=r[206])[l[3]](l[4])[r[6]]()[h[4]](h[7])](c[76]),y=o}var S=v[c[37]],E=l[209],k=p[E+=e[204]];a=k?11:4;break;case 3:(o=p)[e[100]]=v,a=void 0;break;case 4:z=[],a=17}continue;case 2:switch(i){case 0:o=v,s=e2[t[208]],o[c[192]]=s,J=s,a=25;break;case 1:D[W]=!t[64];var x={};x[e[213]]=v,x[d[203]]=h[183];for(var O=e[214],T=h[7],A=c[5];A(s=-e[36]);a=J?28:2;break;case 1:var Z=~(~(q[h[14]](K)&~f[220])&~(~(q[l[7]](K)&q[r[11]](K))&c[190]));W+=h[38][c[35]](Z),a=24;break;case 2:a=U>2;switch(3&n){case 0:switch(i){case 0:var o=v[e[93]];n=o?10:6;break;case 1:n=v[f[90]]?8:9;break;case 2:var s=es;if(s){var p=t[202];p+=d[195]+d[196]+f[213]+l[207],s=u[p](a)}else s=u[h[178]](a);return s}continue;case 1:switch(i){case 0:l[6];var v=u[e[83]],m=l[206],g=v[m+=h[176]+r[204]+f[211]+e[32]];if(g){var b=v[f[212]];b||(b=v[f[167]]),g=b}n=g?2:0;break;case 1:return u[t[201]](a);case 2:throw new l[74](c[183])}continue;case 2:switch(i){case 0:return u[c[182]](a);case 1:n=o?5:4;break;case 2:var y=t[164],_=v[y+=h[177]+e[202]+r[205]];_||(_=v[f[165]]),o=_,n=6}continue}}},o=eJ[t[48]](o);var p=h[179];return s=i,o=(o=o[p=p[h[8]](c[2])[e[18]]()[t[6]](f[2])](n))[h[187]](s)}function G(n){function a(n){function i(){function r(t){return l[6],y[d[43]](t),_[e[219]]}function a(e){return f[7],y[c[31]](e),_[l[186]]}function i(t){var r=e[183];y[r+=c[108]+h[188]+f[222]](t)}for(var s=0;void 0!==s;){var u=1&s>>1;switch(1&s){case 0:switch(u){case 0:var p=h[1],m=c[5],g=e[0];y=o(),p=v,m=r,g=a,b=p=n.call(p,m,g);var w=p;s=w?2:1;break;case 1:p=i,b=p=b[h[189]](p),w=p,s=1}continue;case 1:if(0===u)return y[t[209]];continue}}}function s(n){for(var a=5;void 0!==a;){var i=3&a>>2;switch(3&a){case 0:switch(i){case 0:return _[p](n),b;case 1:m++,a=1;break;case 2:m||(v=parseInt(f[223],l[20])-c[193]);var o=u[d[18]](m),s=o^v;v=o,p+=r[12][c[35]](s),a=4}continue;case 1:switch(i){case 0:a=m>1;switch(1&u){case 0:switch(p){case 0:u=void 0;break;case 1:var b,y=o(),_=o();w=i,m[l[24]](w),w=s,g[t[109]](w),u=0}continue;case 1:switch(p){case 0:n[t[30]](a),u=0;break;case 1:var w=n instanceof e[19];u=w?1:2}continue}}}for(var i=4;void 0!==i;){var s=3&i>>2;switch(3&i){case 0:switch(s){case 0:b=b[k](u),i=1;break;case 1:var u,p=r[0],v=this,m=[],g=[];p=a,n[e[220]](p);var b=eJ,y=t[210],_=r[3],w=f[7];i=13;break;case 2:var S=e[221];i=10;break;case 3:u=p=m[E](),i=p?0:2}continue;case 1:switch(s){case 0:i=t[64]?12:8;break;case 1:i=3;break;case 2:u=p=g[S](),i=p?11:5;break;case 3:i=w>2;switch(3&a){case 0:switch(i){case 0:var o=u[r[11]](m),s=o^v;v=o,p+=h[38][d[39]](s),a=2;break;case 1:var c=globalThis,u=d[206],p=e[1],v=f[7],m=r[0];a=6;break;case 2:a=void 0}continue;case 1:switch(i){case 0:E=!h[1],g=n(),a=8;break;case 1:a=m?0:9;break;case 2:v=l[221],a=0}continue;case 2:switch(i){case 0:m++,a=6;break;case 1:a=m>2;switch(3&e){case 0:switch(t){case 0:r=clearTimeout(_),e=5;break;case 1:a=clearInterval(y),e=8;break;case 2:var r=_;e=r?0:5}continue;case 1:switch(t){case 0:var a=y;e=a?4:8;break;case 1:var i=E;e=i?9:2;break;case 2:e=void 0}continue;case 2:0===t&&(E=!h[1],i=n(),e=9);continue}}}function o(){var r=e[0],n=h[1];try{function a(){globalThis[h[191]]=!h[1],k()}for(var i=9;void 0!==i;){var o=3&i>>2;switch(3&i){case 0:switch(o){case 0:u=!(r=globalThis[t[53]]),i=4;break;case 1:var s=u;i=s?2:5;break;case 2:var u=globalThis[h[190]];i=u?0:4}continue;case 1:switch(o){case 0:r=globalThis;var f=l[222];r[f=f[h[8]](l[4])[e[18]]()[c[7]](l[4])]=!l[6],v=k(),i=8;break;case 1:i=void 0;break;case 2:var p=t[212];p=p[l[3]](t[10])[t[46]]()[h[4]](t[10]);var v=globalThis[p];i=v?1:8}continue;case 2:if(0===o){r=globalThis,n=a;var m=t[213];r[m=m[l[3]](d[19])[d[5]]()[t[6]](h[7])]=n,s=n,i=5}continue}}}catch(e){k()}}function s(){k()}for(var u=0;void 0!==u;){var p=3&u>>2;switch(3&u){case 0:switch(p){case 0:var m=l[6],g=(d[1],e$[r[212]]);g&&(g=!(m=globalThis[c[194]])),u=(m=g)?8:9;break;case 1:var b=d[205];w=parseInt(f[224],l[25])+b,u=5;break;case 2:v(),m=e$[r[213]];var y,_,w=c[195](m);u=w?5:4}continue;case 1:switch(p){case 0:u=void 0;break;case 1:var S=w,E=!e[36];(m=globalThis)[l[48]]=a;var k=i;y=setInterval(m=o,f[225]),_=setTimeout(m=s,S),u=1;break;case 2:n(),u=1}continue}}}function W(e){e()}function K(i){function o(n){var a=t[0],i=l[6],o=e[0],s=e[0],u=l[6],p=e[0],v=c[5],m=t[0],g=n[l[6]],b=n[r[7]],y=[];a=g,i=W[c[196]],o=W[e[225]];var _=l[223];_+=r[214]+h[193]+e[226]+t[214]+l[224],s=W[_],u=W[d[208]];var w=l[225];return w+=f[227]+f[228]+e[59],p=W[w],v=W[e[118]],m=b,y[r[23]](a,i,o,s,u,p,v,m),a=y,a=W[f[229]](a)}function u(){var e=W[d[96]],n=(t[0],e[t[94]]),a=(e=n[d[209]])!==e2[l[217]];if(a)a=et[c[31]](n);else{var i=(e=W[d[96]])[h[194]];if(i){var o=h[50];o+=f[230]+r[215]+t[121],i=void(e=(e=W[o])[f[231]](n))}else i=et[r[103]](n);a=i}return a}function p(n){for(var i=4;void 0!==i;){var o=3&i>>2;switch(3&i){case 0:switch(o){case 0:return et[r[219]](s);case 1:var s,u=h[1],p=f[7],v=n instanceof c[197];i=v?5:9;break;case 2:var m=h[50];m+=t[217]+d[213],(u=W[m])[f[234]](s),i=void 0}continue;case 1:switch(o){case 0:s=v;var g=(u=a[h[192]])[f[233]];if(g){u=a[r[216]];var b={};p=W[r[79]];var y=f[48];y+=e[57],b[r[98]]=p[y],p=W[h[196]],b[t[89]]=p[c[199]];var _=l[231];_+=r[217]+c[200],p=W[_],b[l[94]]=p[r[218]],b[c[201]]=s,p=b,g=u[c[202]](p)}i=(u=!(u=(u=W[t[216]])[h[197]]))?0:8;break;case 1:var w={},S=n[l[227]],E=d[111];w[E=(E+=d[210])[l[3]](d[19])[h[25]]()[h[4]](l[4])]=[S];var k=n[d[211]],I=e[227];w[I+=l[228]]=[k];var x=t[215];w[x+=c[108]+l[229]]=e2[l[230]],v=w,i=1;break;case 2:u=typeof n;var O=h[195]==u;if(O){var T={};T[e[99]]=[n];for(var A=c[198],M=h[7],R=c[5];R>3;switch(7&i){case 0:switch(o){case 0:y=[],i=8;break;case 1:var s=(a=(a=y)[t[15]])<=r[223];i=s?11:3;break;case 2:return a=_;case 3:b++,i=26;break;case 4:k||(E=parseInt(e[232],f[100]));var u=w[d[18]](k),p=u^E;E=u,S+=r[12][r[15]](p),i=18}continue;case 1:switch(o){case 0:var v=l[235],m=c[2],g=f[7],b=h[1];i=26;break;case 1:var y=n[t[8]](m);i=y?8:0;break;case 2:a=n[S](a);var _=c[206]!==a;i=_?1:10;break;case 3:i=k>3;switch(7&g){case 0:switch(b){case 0:H=(H=this[t[74]])[h[141]],k=d[81]===H,g=8;break;case 1:var y=k;g=y?1:3;break;case 2:H=this[e[203]];var _=t[222];H=H[_=_[d[12]](f[2])[f[30]]()[h[4]](e[1])];var w=l[65]===H;g=w?27:9;break;case 3:H=W[f[117]],G=L;var S=e[229];H[S+=c[204]+c[205]+r[221]+f[237]+l[233]]=G,Y=G,g=33;break;case 4:g=Q>1;switch(1&o){case 0:switch(s){case 0:var u=h[1],p=(l[6],{});p[h[68]]=n[h[68]],p[t[228]]=n[r[105]],p[d[225]]=n[r[235]],p[c[212]]=n[r[236]],p[h[206]]=n[l[239]];var v=d[226];v+=d[227]+f[242]+e[238],p[v=(v+=d[228])[d[12]](l[4])[c[6]]()[r[21]](f[2])]=a;var m=i;o=m?1:2;break;case 1:m=a,o=1}continue;case 1:if(0===s){p[h[197]]=m,u=p;var g=n[r[237]];g||(g={});var b=_(u,g);return(u=new T(n))[t[229]](b)}continue}}}function J(n,a,i){e[0];for(var o={},s=t[230],u=h[7],p=c[5],v=t[0];v>3;switch(7&Z){case 0:switch(X){case 0:var $=c[5],Q=f[7],ee=l[46],et=n[ee+=t[49]+t[50]+f[13]],er=r[45],en=et;Z=en?11:9;break;case 1:e6++,Z=16;break;case 2:Z=e6=d[1]),ea=eo}var es=ea,ec=l[6];($=T[l[73]])[t[75]]=A;var eu=f[13];eu+=d[78]+e[82],$=T[eu=(eu+=t[76])[h[8]](d[19])[d[5]]()[h[4]](l[4])];for(var el=c[61],ef=c[2],ed=e[0],eh=h[1];eh=r[0],Z=10}continue;case 1:switch(X){case 0:var ej=parseInt(c[56],f[76]),eN=e3[d[18]](e6)^parseInt(d[73],l[25])+ej;e4+=d[51][e[29]](eN),Z=8;break;case 1:var eP={};eP[t[51]]=i,en=eP,Z=11;break;case 2:eK=eY,Z=24;break;case 3:Q=k,($=e[10][d[59]])[f[60]]=Q,eZ=Q,Z=19;break;case 4:$=n[e4];for(var eL=e[72],eF=h[7],eB=d[1];eB=c[5],Z=17;break;case 1:var eJ=($=en)[d[43]](),eZ=($=t[33][f[58]])[r[63]];Z=eZ?19:25;break;case 2:var eX={};eX[f[61]]=!t[64],eX[d[61]]=!c[5],eX[l[58]]=!l[11];var e$=eX,eQ=[],e0={},e1={};e1[f[62]]=-h[15],e1[d[62]]=r[0],e1[e[61]]=r[7],e1[d[63]]=f[34];var e2=e1;$=($=x)(),($=O)();var e3=f[75],e4=d[19],e6=h[1];Z=16;break;case 3:eW||(eq=r[74]);var e8=eH[l[7]](eW),e5=~(~(e8&~eq)&~(~e8&eq));eq=e8,eG+=c[11][h[10]](e5),Z=18}continue}}}(n,i),function(n,a){function i(e){return t[0],e[h[369]](),!l[11]}function o(a,o){function s(){for(var n=d[1],a=e[0],i=t[401],o=r[3],s=h[1],c=e[0];c>4;switch(15&g){case 0:switch(b){case 0:var y=eP[e[16]](eF),_=y^eL;eL=y,eD+=l[29][t[17]](_),g=54;break;case 1:var w=t[397];ty=r[427]+w,g=80;break;case 2:eq=r[7],g=112;break;case 3:(X=document[eC])[e[421]](R),(X=e$)[c[375]]=ez,X=s,$=!c[3];var S=d[368];S+=e[425]+t[402]+c[376]+h[225];var E=r[431];E=E[d[12]](c[2])[t[46]]()[e[46]](t[10]),eS[S](E,X,$),this[f[415]]=u;var k=l[410],I=r[3],x=t[0];g=99;break;case 4:es=o[l[385]],g=19;break;case 5:var O=tg[l[7]](t_),T=~(~(O&~ty)&~(~O&ty));ty=O,tb+=e[10][f[21]](T),g=135;break;case 6:g=t7($=-t[64]);if(q){X=rt;for(var W=h[386],K=c[2],V=e[0];Vr[413];g=eT?87:22;break;case 1:g=D($=-e[36]);g=eV?33:38;break;case 5:g=t_?80:16;break;case 6:g=x($=-e[36]);g=tj?130:17;break;case 4:es=o[t[367]],g=19;break;case 5:g=tI($=-r[7]);g=ra?132:67;break;case 7:t0++,g=36;break;case 8:t_++,g=102}continue}}}function s(n){for(var a=8;void 0!==a;){var i=3&a>>2;switch(3&a){case 0:switch(i){case 0:s=E+w,u=n[E],s+=u=r[437](u),k=v[S](s),a=2;break;case 1:return v[e[46]](e[52]);case 2:var o,s=f[7],u=e[0],v=[],m=p(n),g=t[14],b=g=g[t[8]](c[2])[h[25]]()[e[46]](d[19]),y=f[6],_=l[414],w=f[418],S=f[419];a=2}continue;case 1:switch(i){case 0:var E=o[_],k=n[E];a=k?0:2;break;case 1:a=4;break;case 2:o=s=m[b](),a=(s=s[y])?5:1}continue;case 2:0===i&&(a=e[36]?9:4);continue}}}function u(n){d[1];var i=c[5],o=this,s=this[c[65]],u=this[r[79]];return i=function(){function n(n){for(var a=4;void 0!==a;){var i=3&a>>2;switch(3&a){case 0:switch(i){case 0:var s=_[c[20]](E),u=s^S;S=s,w+=c[11][f[21]](u),a=9;break;case 1:var p=f[7],v=c[5],m=e[0],g=h[1],b=f[7],y=[];p=o[d[105]];var _=r[442],w=h[7],S=t[0],E=c[5];a=8;break;case 2:a=E<_[e[2]]?5:2}continue;case 1:switch(i){case 0:var k=c[382];S=r[443]+k,a=0;break;case 1:a=E?0:1;break;case 2:E++,a=8}continue;case 2:if(0===i)return v=o[w],m=o[l[418]],g=o[h[396]],b=o[h[402]],y[e[295]](p,v,m,g,b),p=y,p=o[h[403]](p);continue}}}function i(n){h[1];var a=c[383],i=(a=(a+=t[410])[h[8]](h[7])[e[18]]()[h[4]](d[19]))===n;if(i)i=new r[85](l[419]);else{var o=r[444];o+=h[404]+e[434]+l[420]+t[411]+d[417],o=(o+=l[421])[c[26]](c[2])[h[25]]()[d[10]](r[3]),i=new e[266](o)}throw i}for(var p=0;void 0!==p;){var v=7&p>>3;switch(7&p){case 0:switch(v){case 0:var m=f[7],g=e[0],b=s[l[88]],y=e[32],_=b[y=(y+=d[210])[e[81]](h[7])[l[69]]()[h[4]](e[1])],w=l[415];w+=r[438],w=(w+=h[397])[d[12]](d[19])[f[30]]()[h[4]](f[2]),m=navigator[w];var S=d[111],E=m[S+=c[168]+e[429]+c[379]](),k=(m=E[h[181]](h[398]))>(g=-t[64]);k&&(k=(m=E[r[10]](e[430]))(g=-e[36]),p=25;break;case 1:var P=G;p=P?25:2;break;case 2:p=(m=C)?3:17;break;case 3:G=(m=_[r[10]](e[432]))>(g=-h[15]),p=10;break;case 4:var D=x;D||(m=s[l[417]],D=f[64]===m),p=(m=D)?24:32}continue;case 3:switch(v){case 0:var L=d[273];L+=l[416]+l[351]+c[381],p=(m=a[L])?8:9;break;case 1:var F=I,z=_ instanceof r[18];z&&(_=m=_[f[5]](c[76]),z=m);var H=(m=_[h[181]](c[380]))>(g=-d[8]);H||(H=(m=_[d[7]](r[440]))>(g=-f[23]));var G=H;p=G?10:26}continue}}},n()[l[226]](i)}function m(n,a,i){for(var o=0;void 0!==o;){var s=3&o>>2;switch(3&o){case 0:switch(s){case 0:r[0];var c={},u=l[423],p=h[7],v=l[6];o=8;break;case 1:c[p]=!l[6],c[l[78]]=!r[0],c[l[424]]=a;var m=i;m||(m=a),c[r[446]]=m;var g=c;return new F(n)[h[205]](g);case 2:o=v>1;switch(1&o){case 0:switch(s){case 0:d[1];var u={};u[f[425]]=!t[0],u[h[194]]=a;var p=i;o=p?1:2;break;case 1:p=a,o=1}continue;case 1:if(0===s){for(var v=l[426],m=f[2],g=f[7];g>2;switch(3&n){case 0:switch(a){case 0:m++,n=7;break;case 1:n=void 0;break;case 2:y=location;var i=e[154];i+=e[32],_=(_=S[i+=l[43]])[f[427]];var o=e[436];o+=l[431]+h[406]+e[437]+r[449]+r[169]+f[82],w=p[o];var s=h[407],u=r[3],v=c[5],m=l[6];n=7;break;case 3:w=u+w,_=_[f[65]](new e[70](h[408]),w),y[h[409]]=_,g=_,n=9}continue;case 1:switch(a){case 0:var g=p[t[415]];n=g?8:13;break;case 1:M=(y=S[e[79]])[d[420]],n=3;break;case 2:O=g,n=4;break;case 3:y=location,_=S[l[68]];var b=d[421];_=_[b+=e[158]],y[t[47]]=_,g=_,n=9}continue;case 2:switch(a){case 0:var y=f[7],_=r[0],w=c[5],S=p[t[94]],E=S[e[99]],k=E instanceof d[4];n=k?11:15;break;case 1:n=m?14:10;break;case 2:v=e[438],n=14;break;case 3:var I=s[c[20]](m),x=I^v;v=I,u+=r[12][t[17]](x),n=0}continue;case 3:switch(a){case 0:var O=M;n=O?1:4;break;case 1:n=m(_=-r[7]);n=M?5:3}continue}}}for(var i=0;void 0!==i;){var o=3&i>>2;switch(3&i){case 0:switch(o){case 0:var s=l[6],u=r[0],p=this[l[173]];this[t[74]];var v=(s=!f[7])===(u=p[t[91]]);i=v?5:9;break;case 1:_=(s=!d[1])===(u=p[t[413]]),i=2;break;case 2:n(),i=void 0}continue;case 1:switch(o){case 0:s=n(),u=a;for(var m=l[432],g=e[1],b=h[1];b>1;switch(1&a){case 0:switch(i){case 0:a=void 0;break;case 1:return p[c[3]]}continue;case 1:if(0===i){var o=f[439]+n,s=e[0];o+=h[426],o=new l[55](o),s=document[d[432]];var u=r[448],p=o[u+=t[428]](s);a=p?2:0}continue}}}function i(a,i){function s(){for(var a=0;void 0!==a;){var o=3&a>>2;switch(3&a){case 0:switch(o){case 0:var p=t[430],v=h[7],m=c[5];a=4;break;case 1:a=m>2;switch(3&v){case 0:switch(m){case 0:b[f[443]](f[414],s);var w=d[79];n[w+=d[434]+d[112]+l[447]+e[463]+t[432]](f[444],u),b[r[460]]();try{for(var S=2;void 0!==S;){var E=3&S>>2;switch(3&S){case 0:switch(E){case 0:S=d[8]?10:7;break;case 1:var k=L[H];(q=_)[W=k]=D[k],S=0;break;case 2:var I=[];q=g[c[398]],W=g[f[103]];var x=d[220];x+=c[111]+l[449]+h[430]+h[431]+l[450]+l[109],K=g[x=(x+=e[332])[r[19]](f[2])[t[46]]()[l[22]](e[1])],V=g[d[437]];var O=h[424];O+=c[289]+t[435]+c[402]+f[446],Y=g[O],I[t[109]](q,W,K,V,Y),q=I;var T=d[438],A=f[2],M=h[1];S=13;break;case 3:q=document;var R=t[434];R=R[f[3]](e[1])[l[69]]()[e[46]](d[19]),W=e4+R+(K=JSON[f[81]](D)),q[r[461]]=W+r[424],P=(q=n[t[65]])[e[464]](),S=9}continue;case 1:switch(E){case 0:D=q=JSON[h[74]](D),C=q,S=11;break;case 1:P=(q=g[A](q))[h[187]](a),S=9;break;case 2:S=void 0;break;case 3:S=M>1;switch(1&J){case 0:switch(Z){case 0:q=o[e[79]];var X=JSON[t[195]](q);J=X?2:1;break;case 1:G=X,J=void 0}continue;case 1:0===Z&&(X={},J=2);continue}}}catch(e){}var $=G;v=$?8:4;break;case 1:v=void 0}continue}}}var v=K[h[135]],m=r[0],b=new o(f[2],v);v=s,m=!l[11];var w=d[439];w+=l[451],w=(w+=r[462])[l[3]](l[4])[r[6]]()[e[46]](f[2]),b[f[415]](w,v,m),v=u,m=!e[36],n[t[183]](f[444],v,m),b[f[447]]()}for(var s=2;void 0!==s;){var u=7&s>>3;switch(7&s){case 0:switch(u){case 0:b=K[f[431]],s=17;break;case 1:var v=(U=V[e[97]](e[443]))>(z=-e[36]);if(v){var m=r[452];m+=f[430],v=K[m]}var b=v;s=b?0:17;break;case 2:E=U=k[I](),s=(U=U[x])?9:42;break;case 3:var w=[];U=g[d[105]],z=g[f[103]],H=g[e[462]],G=g[r[239]],q=g[t[429]];var S=f[441];return w[S+=l[10]+d[333]](U,z,H,G,q),U=w,U=g[e[218]](U);case 4:for(var E,k=p(e6),I=t[14],x=l[445],O=f[440],T=f[2],A=l[6];A>3;switch(7&en){case 0:switch(ea){case 0:eA++,en=19;break;case 1:U=ep;var ei=r[454],eo=e[1],es=c[5],ec=h[1];en=13;break;case 2:eq++,en=26;break;case 3:var eu=r[411];eu+=c[389]+t[333]+d[423],U=window[eu];var el=t[418];el+=e[444]+c[390];var ef=!!(U=U[el+=c[391]]),ed=new Image,eh=h[414];U=K[eh=eh[r[19]](h[7])[l[69]]()[t[6]](l[4])];var ep=(U=c[392]+U+e[445]+(z=K[t[419]])+r[453])+(z=ef),ev=window[f[63]];en=ev?42:27;break;case 4:U=ep,z=(z=window[d[429]])[e[453]];var em=r[456];em+=d[430]+l[444]+h[423],z=(em+=e[454])+z+e[455],ep=U+=z+=H=(H=window[f[437]])[r[250]],eU=U,en=33;break;case 5:ec||(es=e[149]);var eg=ei[h[14]](ec),eb=eg^es;es=eg,eo+=e[10][f[21]](eb),en=2}continue;case 1:switch(ea){case 0:var ey=h[418],e_=eH[d[18]](eq)-(c[395]+ey);eG+=f[4][t[17]](e_),en=16;break;case 1:U=ep,z=(z=location[h[409]])[e[447]](e[0],l[438]);var ew=d[424];ew+=l[439],ep=U+=z=(ew=(ew+=t[420])[l[3]](d[19])[c[6]]()[t[6]](f[2]))+z,eB=U,en=11;break;case 2:var eS=ex[t[26]](eA),eE=eS^eT;eT=eS,eO+=l[29][d[39]](eE),en=0;break;case 3:U=ep,z=(z=window[d[428]])[l[441]];var ek=f[161];ek+=l[442]+h[421],z=(ek+=l[443])+z;var eI=f[436];z+=eI=eI[f[3]](l[4])[h[25]]()[c[7]](l[4]);var ex=h[422],eO=t[10],eT=r[0],eA=c[5];en=19;break;case 4:(U=ed)[r[420]]=ep,(U=document[r[457]])[h[390]](ed),en=void 0;break;case 5:var eM=t[422];eM=eM[d[12]](d[19])[f[30]]()[e[46]](l[4]);var eR=window[eM];en=eR?8:5}continue;case 2:switch(ea){case 0:ec++,en=13;break;case 1:U=ep,z=(z=window[e[448]])[t[421]],z=e[449]+z+f[432],ep=U+=z+=H=(H=window[c[393]])[d[329]],en=36;break;case 2:U=ep,z=(z=window[d[427]])[f[435]];for(var eC=c[397],ej=r[3],eN=d[1];eN(z=-f[23]);eJ||(eJ=(U=V[d[7]](e[458]))>(z=-f[23]));var eZ=eJ;s=eZ?18:11;break;case 2:var Q=C[D],eX=_[Q];s=eX?28:1;break;case 3:e8=U=!t[0],eX=U,s=1;break;case 4:for(var e$=t[427],eQ=l[4],e0=f[7],e1=d[1];e1>2;switch(3&s){case 0:switch(u){case 0:var v=d[1],m=t[0],g=this,b=e[441];b+=l[435];var y=this[b=(b+=h[411])[l[3]](r[3])[r[6]]()[d[10]](c[2])],_=this[f[79]],w=(v=!t[64])!==(m=y[f[429]]);w&&(v=y,m=!e[0],v[e[442]]=m,w=m);var S=(v=!t[0])!==(m=_[c[386]]);s=S?9:2;break;case 1:var E=(v=!f[7])!==(m=B[f[429]]);E&&(E=(v=!t[0])!==(m=y[h[412]])),I=E,s=5;break;case 2:a(),s=void 0}continue;case 1:switch(u){case 0:v=a(),m=i;var k=d[440];return v[k=k[d[12]](r[3])[l[69]]()[e[46]](e[1])](m);case 1:s=(v=!(v=I))?1:8;break;case 2:S=(v=!h[1])!==(m=y[c[387]]),s=2}continue;case 2:if(0===u){var I=S;s=I?5:4}continue}}}async function S(n){function a(e){for(var r=0;void 0!==r;){var n=1&r>>1;switch(1&r){case 0:switch(n){case 0:var a,i=h[1],o=f[7];a=i=chrome;var s=h[16]===i;r=s?2:1;break;case 1:var c=s;c||(a=i=a[l[453]],c=d[2]===i);var u=c;u||(u=(i=void t[0])===(o=a));var p=u;if(!p){var v={};v[h[434]]=[A],i=v,o=e,p=a[f[448]](i,o)}r=void 0}continue;case 1:0===n&&(s=(i=void t[0])===(o=a),r=2);continue}}}function i(n){for(var a=4;void 0!==a;){var i=3&a>>2;switch(3&a){case 0:switch(i){case 0:o={},a=6;break;case 1:d[1],h[1];var o=n;a=o?6:0;break;case 2:s=void r[0]===b,a=2}continue;case 1:switch(i){case 0:y[f[449]]=p;var s=l[0]===b;a=s?2:8;break;case 1:var u=_,p=u=u?void f[7]:b[t[436]];a=p?1:10;break;case 2:_=void r[0]===b,a=5}continue;case 2:switch(i){case 0:var v=s;if(v)v=void c[5];else{var m=f[450];m+=h[435],v=b[m=(m+=r[439])[h[8]](c[2])[e[18]]()[l[22]](f[2])]}var g=v;return g||(g=d[441]),y[c[404]]=g,y;case 1:var b=o[l[454]],y={},_=c[0]===b;a=_?5:9;break;case 2:p=e[466],a=1}continue}}}function o(n){for(var a=0;void 0!==a;){var i=3&a>>2;switch(3&a){case 0:switch(i){case 0:var o,s=t[0],u=d[1];o=s=chrome;var p=h[16]===s;p||(p=(s=void h[1])===(u=o));var v=p;v||(o=s=o[e[467]],v=c[0]===s);var m=v;a=m?8:4;break;case 1:m=(s=void r[0])===(u=o),a=8;break;case 2:var g=m;a=g?10:9}continue;case 1:switch(i){case 0:O[M]=U,O[h[439]]=r[469],O[t[243]]=j,u=O,I[r[23]](s,u),k[r[470]]=I,S[e[469]]=k;var b={};b[r[471]]=D;var y=t[439];y+=f[452]+l[458]+t[214]+t[440],b[d[444]]=[y],S[f[453]]=b;var _=f[454];w[_=_[r[19]](d[19])[c[6]]()[t[6]](d[19])]=[S],s=w,u=n,g=o[t[441]](s,u),a=10;break;case 1:z++,a=6;break;case 2:var w={},S={};S[l[455]]=A;var E=c[405];S[E=E[t[8]](h[7])[h[25]]()[l[22]](l[4])]=c[3];var k={};k[r[83]]=e[468];var I=[],x={};x[d[443]]=l[456],x[c[406]]=c[407],x[f[451]]=N,s=x;for(var O={},T=h[438],M=t[10],R=c[5],C=f[7];C>1;switch(1&n){case 0:switch(a){case 0:var i=d[1],o=g;n=o?2:1;break;case 1:i=r,o=await new L(i),n=1}continue;case 1:0===a&&(n=void 0);continue}}}for(var p=9;void 0!==p;){var v=3&p>>2;switch(3&p){case 0:switch(v){case 0:var m=b;m&&(m=chrome[l[453]]);var g=m;p=g?6:2;break;case 1:I=(x=!d[1])===(O=T[h[433]]),p=10;break;case 2:var b=R;p=b?5:0}continue;case 1:switch(v){case 0:x=!h[1];for(var y=r[464],_=l[4],w=r[0],S=t[0];Sl[452];M&&(P=x=h[15],M=x);var R=(x=!t[0])===(O=T[l[78]]);p=R?1:8}continue;case 2:switch(v){case 0:O=u,(x=n())[t[48]](O),p=void 0;break;case 1:x=a,await new L(x);var C=(x=i)(T),j=C[f[449]],N=C[r[465]];x=T[h[436]];var D=c[2][d[166]](x),F=T[d[442]];F&&(x=D,O=s(O=T[h[437]]),D=x+=O=r[466]+O,F=x);var U=t[437],z=T[U=U[f[3]](f[2])[f[30]]()[r[21]](h[7])];z&&(x=D,O=s(O=T[r[175]]),D=x+=O=t[438]+O,z=x),x=o,await new L(x),p=2;break;case 2:R=I,p=8}continue}}}async function E(n){function a(e){for(var r=0;void 0!==r;){var n=1&r>>1;switch(1&r){case 0:switch(n){case 0:var a=c[37],i=e[a+=f[330]+f[459]+l[224]],o=!!i;r=o?2:1;break;case 1:i=e[c[414]],tA[l[24]](i),o=!t[0],r=1}continue;case 1:if(0===n)return o;continue}}}for(var i=40;void 0!==i;){var o=7&i>>3;switch(7&i){case 0:switch(o){case 0:tU++,i=37;break;case 1:tW=(g=void c[5])!==(b=p),i=34;break;case 2:ri=(g=void c[5])!==(b=p),i=28;break;case 3:t5=A[e[470]],i=19;break;case 4:(g=H)&&(P=(g=await K(eM))[eM]),m=g=P;var s=r[29]===g;i=s?26:44;break;case 5:var u,p,m,g=c[5],b=c[5],y=f[7],_=r[0],S=d[1],E=e[0],k=d[1],x=this[h[196]];x||(x={});var O=x,T=O[h[135]],A=O[d[445]],M=d[2]===A;M||(M=(g=void f[7])===(b=A));var R=M,C=R=R?void e[0]:A[e[470]];C||(C={});var j=C,N=j[t[445]],P=j[t[97]],D=l[94],L=j[D+=c[408]+d[446]],F=e[471],B=j[F=F[c[26]](c[2])[f[30]]()[c[7]](h[7])],U=j[l[459]],z=(g=void c[5])===(b=U);i=z?25:10}continue;case 1:switch(o){case 0:var H=tq;i=H?3:32;break;case 1:tD[l[467]]=tF,E=tD;var G={},q=tT;q&&(q=tT!==N),G[h[446]]=q;var W=d[452];W+=c[157]+d[42]+c[412];var V=t[451];V=V[c[26]](c[2])[h[25]]()[h[4]](h[7]),k=c[413][W](N,V);var Y=e[480];G[Y=Y[c[26]](d[19])[t[46]]()[f[5]](r[3])]=k[l[37]](tT,h[447]),k=G,tM[l[24]](g,b,y,_,S,E,k),b=a;var J=(g=tM)[d[453]](b);try{for(var Z=19;void 0!==Z;){var X=7&Z>>3;switch(7&Z){case 0:switch(X){case 0:Z=void 0;break;case 1:var $=eu;Z=$?32:16;break;case 2:$=tv[e[485]],Z=12;break;case 3:Z=t_>3;switch(7&eN){case 0:switch(eP){case 0:eV=(g=void d[1])!==(b=eD),eN=40;break;case 1:g=N,b=L;var eD,eL={},eF=l[0]===A;eN=eF?2:17;break;case 2:var eB=e5[e[16]](e9)-parseInt(e[482],d[87]);e7+=t[33][d[39]](eB),eN=18;break;case 3:eN=(g=eY)?35:33;break;case 4:eN=e9c[411];var tL=e[479],tF=h[7],tB=e[0],tU=r[0];i=37;break;case 3:var tz=s,tH=tz=tz?void c[5]:m[f[3]](l[461]);i=tH?18:17;break;case 4:var tG=tW;tG&&(p=g=p[e[475]],tG=h[16]!==g);var tq=tG;i=tq?5:1;break;case 5:var tW=rn;i=tW?8:34}continue;case 3:switch(o){case 0:var tK=t[448];H=p[tK+=h[65]],i=32;break;case 1:var tV=z,tY=d[17];tY+=t[446]+c[331],u=g=this[tY=(tY+=l[460])[c[26]](r[3])[c[6]]()[c[7]](h[7])];var tJ=t[9]!==g;tJ&&(tJ=(g=void d[1])!==(b=u));var tZ=tJ;i=tZ?27:36;break;case 2:g=t5;for(var tX=d[447],t$=h[7],tQ=c[5];tQ>2;switch(3&k){case 0:switch(x){case 0:var O=t[0],T=h[1],A=!a;A||(A=!(O=a[r[216]]));var M=A;M||(M=(O=a[e[396]])[d[379]]),k=(O=M)?4:2;break;case 1:var R=h[368];throw R=R[t[8]](h[7])[h[25]]()[c[7]](c[2]),O=new f[226](R);case 2:(O=a[q])[r[447]]=g,T=b,(O=(O=a[l[241]])[e[103]])[h[64]](T),(O=a[r[216]])[f[428]]=y;var C=d[422];C+=c[361],T=_,(O=(O=a[C])[e[103]])[f[419]](T),T=S,(O=(O=a[r[216]])[e[103]])[e[295]](T);var j=r[472];j+=t[444],T=E,(O=(O=a[j])[r[239]])[d[352]](T),k=void 0}continue;case 1:switch(x){case 0:W++,k=9;break;case 1:var N=G[e[16]](W)^parseInt(d[419],h[29]);q+=e[10][c[35]](N),k=1;break;case 2:k=W>2;switch(3&Y){case 0:switch(J){case 0:e6=eR,Y=4;break;case 1:var Z,X=e6,$={},Q=e[239];$[Q=Q[t[8]](e[1])[r[6]]()[h[4]](r[3])]=c[0],$[h[209]]={},eN=$;var ee=d[233];ee=ee[t[8]](l[4])[c[6]]()[r[21]](d[19]),Z=eN=h[3][ee](eN);var et=eN;if(et){var er=r[232];er+=l[243]+d[234]+f[248],et=Z[er+=e[32]]}var en=et;en||(en=Z);var ea=en,ei=x(eN=O);x(eN=T),x(eN=A);var eo=x(eN=M),es=x(eN=R),ec=x(eN=C),eu={};eu[c[282]]=j,eu[d[311]]=N;var el=eu;x(eN=P),x(eN=D),x(eN=L);var ef=x(eN=F),ed=x(eN=B),eh=x(eN=U),ep=x(eN=z),ev={},em={};em[t[356]]=l[374];var eg=f[384];eg+=t[357]+c[344],em[eg=(eg+=t[358])[c[26]](d[19])[f[30]]()[f[5]](d[19])]=r[400],em[c[345]]=e[386];var eb=em;eb||(eb={});var ey=eb,e_=t[359],ew=ey[e_=e_[h[8]](c[2])[d[5]]()[e[46]](c[2])],eS=ey[l[375]],eE=ey[r[401]],ek={};ek[e[388]]=G;var eI=ek,ex=f[387],eO=q,eT={};eT[h[362]]=eO,eT[c[348]]=W;var eA=eT,eM=d[378];n=ez,a=el,i=eI,o=eA,s=V,Y=void 0;break;case 2:eN=typeof window;var eR=d[231]!=eN;Y=eR?2:1}continue;case 1:switch(J){case 0:eN=typeof u;var eC=r[2]!=eN;if(eC)eC=u;else{eN=typeof self;var ej=c[213]!=eN;eC=ej=ej?self:{}}eR=eC,Y=0;break;case 1:e6=globalThis,Y=4;break;case 2:[][d[0]]([]);var eN=t[0],eP=e[0],eD=(r[0],[h[0]]),eL={};eL[d[29]]=f[28];var eF=eL,eB={},eU=e[27];eB[eU=eU[f[3]](h[7])[h[25]]()[r[21]](l[4])]=S,eB[r[31]]=E;for(var ez=eB,eH=l[31],eG=e[1],eq=t[0];eqd);var a=e("crypto-js"),i=n.interopDefault(a);function o(e,t){return fetch(e,{method:"POST",body:t,headers:{"Content-Type":"application/json"},credentials:"include"})}class s{constructor(e){this.total=0,this.count=0,this.pending=[],this.total=e}append(e){this.pending.push(e),this.run()}run(){if(!this.pending.length||this.count>=this.total)return;let e=this.pending.shift();e&&(this.count++,e().finally(()=>{this.count--,this.run()}))}}let{encryptedIv:c,encryptedKey:u,privateKey:l}={encryptedIv:"'\x04Y'\x18V \x0e\\+\x15W.\x18^'",encryptedKey:"/%\x02V?\x13@0\x1e]#\x1dG,\x06Z Y) \\2\x10Y=\x03]$\x06QS",privateKey:"jfkjdslkfjdskljfkldsjfkldsj"};function f(e,t){let r=t.length,n="",a=[...Array(e.length).keys()].reverse().map(t=>e[t]).join("");for(let e=0;e1&&(n=n[n.length-1]+n.slice(1,-1)+n[0]),n}class d{constructor(e){var t,r,n,a;this.encrypt=!0,this.timer=null,this.time=10,this.count=10,this.arr=[],this.MAX_PAYLOAD_SIZE=2621440,this.encrypt=null===(t=e.encrypt)||void 0===t||t,this.time=null!==(r=e.time)&&void 0!==r?r:10,this.count=null!==(n=e.count)&&void 0!==n?n:10,this.ccController=new s(null!==(a=e.maxReqCount)&&void 0!==a?a:10),e.host.startsWith("http://")||e.host.startsWith("https://")?this.url=`${e.host}/logstores/${e.logstore}/track`:this.url=`https://${e.project}.${e.host}/logstores/${e.logstore}/track`,this.opt=e,this.installUnloadHook()}installUnloadHook(){"onbeforeunload"in globalThis&&"function"==typeof globalThis.onbeforeunload&&globalThis.addEventListener("beforeunload",()=>{this.sendImmediateInner()}),this.opt.installUnloadHook&&"function"==typeof this.opt.installUnloadHook&&this.opt.installUnloadHook(()=>{this.sendImmediateInner()})}assemblePayload(e){let t={__logs__:e};return this.opt.tags&&(t.__tags__=this.opt.tags),this.opt.topic&&(t.__topic__=this.opt.topic),this.opt.source&&(t.__source__=this.opt.source),JSON.stringify(t)}calculateLogsSize(e){let t=JSON.stringify(e);return"undefined"!=typeof TextEncoder?(new TextEncoder).encode(t).length:2*t.length}startSend(e){if(!e.length)return;if(this.calculateLogsSize(e)<=this.MAX_PAYLOAD_SIZE)return void this.platformSend(e);let t=this.splitLogsBySize(e);for(let e of t)this.platformSend(e)}splitLogsBySize(e){let t=[],r=[],n=0;for(let a of e){let e=this.calculateLogsSize([a]);e>this.MAX_PAYLOAD_SIZE?console.error(`[Logger] \u5355\u6761\u65e5\u5fd7\u5927\u5c0f\u8d85\u8fc7\u9650\u5236 (${this.MAX_PAYLOAD_SIZE/1024/1024}MB)\uff0c\u5df2\u8df3\u8fc7\u8be5\u65e5\u5fd7:`,a):r.length>0&&n+e>this.MAX_PAYLOAD_SIZE?(t.push(r),r=[a],n=e):(r.push(a),n+=e)}return r.length>0&&t.push(r),t}async platformSend(e){let t=this.assemblePayload(e);return this.opt.sendPayload&&"function"==typeof this.opt.sendPayload?this.ccController.append(()=>this.opt.sendPayload(this.url,t)):this.ccController.append(()=>(function(e,t){let r=function(e){try{let t=new URL(e);return t.searchParams.set("APIVersion","0.6.0"),t.toString()}catch(t){return console.error("Logger url maybe wrong:",e),`${e}?APIVersion=0.6.0`}}(e);try{if(t.length>=32768)return o(r,t);let e=!!globalThis.navigator&&!!globalThis.navigator.sendBeacon&&globalThis.navigator.sendBeacon(r,t);return e?Promise.resolve():o(r,t)}catch(r){throw globalThis&&globalThis.console&&"function"==typeof globalThis.console.error&&(console.error("Failed to log to ali log service because of this exception:\n"+r),console.error("Failed log data:",e,t)),r}})(this.url,t))}transString(e){if(this.encrypt)return{__d__:function(e){let{iv:t,key:r}=function(){let e=f(c,l),t=f(u,l);return{iv:e,key:t}}()||{},n=(0,i.default).enc.Utf8.parse(r),a=(0,i.default).enc.Utf8.parse(t),o={mode:i.default.mode.CBC,padding:i.default.pad.Pkcs7,iv:a};return(0,i.default).AES.encrypt(e,n,o).toString()}(JSON.stringify(e))};let t={};for(let r in e)"object"==typeof e[r]?t[r]=JSON.stringify(e[r]):t[r]=String(e[r]);return t}sendImmediateInner(){this.arr&&this.arr.length>0&&(this.startSend(this.arr),null!=this.timer&&(clearTimeout(this.timer),this.timer=null),this.arr=[])}sendInner(){this.timer?this.arr.length>=this.count&&(clearTimeout(this.timer),this.timer=null,this.sendImmediateInner()):this.arr.length>=this.count||this.time<=0?this.sendImmediateInner():this.timer=setTimeout(()=>{this.sendImmediateInner()},1e3*this.time)}send(e){let t=this.transString(e);this.arr.push(t),this.sendInner()}sendImmediate(e){let t=this.transString(e);this.arr.push(t),this.sendImmediateInner()}sendBatchLogs(e){let t=e.map(e=>this.transString(e));this.arr.push(...t),this.sendInner()}sendBatchLogsImmediate(e){let t=e.map(e=>this.transString(e));this.arr.push(...t),this.sendImmediateInner()}getOpt(){return this.opt}}},{"crypto-js":"1bEvK","@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],"1bEvK":[function(e,t,r){var n;t.exports=(n=e("5eee6dbf972ff0c"),e("1ae7fff9f8fa4b2e"),e("5d5c6779507b6ecf"),e("8fed7daa3b4cc142"),e("789bad1b0dff9a96"),e("fb488ee151dd7943"),e("8ccb3bce525f169d"),e("f6a9495b1c254449"),e("fd2e65bc40b77537"),e("7fa06e499cf8a103"),e("c1cce0659b03adfe"),e("c5af184fa8c7874f"),e("4ae38a06cb259786"),e("c72e494c732a963f"),e("88bf72f2d872110"),e("89a6ccecb9711f00"),e("fe47fecb97678a27"),e("8494f33137888286"),e("a180680a3a0b6778"),e("5c9b46cec008dfa5"),e("4cba38335b9a1036"),e("52ef67a0df2f7b37"),e("1790c68efb06b110"),e("540eb4174417cc86"),e("e53c0db805905662"),e("cab1508d99737362"),e("c0ecce6689437d58"),e("5809aadf1a05b38"),e("72de7f0923a744f6"),e("8676fff60d27e6aa"),e("753c41c24ae9eb5b"),e("c4b3c473a798ab37"),e("64cf109d48a11849"),e("c44065b70e4f6cb8"),e("113273f8e2d4bebb"),n)},{"5eee6dbf972ff0c":"6dayE","1ae7fff9f8fa4b2e":"84enr","5d5c6779507b6ecf":"3d1VA","8fed7daa3b4cc142":"3zawB","789bad1b0dff9a96":"dQJ4T",fb488ee151dd7943:"d3oJY","8ccb3bce525f169d":"jxWg5",f6a9495b1c254449:"egwwf",fd2e65bc40b77537:"lf3El","7fa06e499cf8a103":"ex4nU",c1cce0659b03adfe:"4gcJV",c5af184fa8c7874f:"gAYGJ","4ae38a06cb259786":"gH36R",c72e494c732a963f:"jk2yU","88bf72f2d872110":"fMBoi","89a6ccecb9711f00":"luure",fe47fecb97678a27:"u3uJj","8494f33137888286":"fiMWt",a180680a3a0b6778:"BuN80","5c9b46cec008dfa5":"6Xeok","4cba38335b9a1036":"lpDIf","52ef67a0df2f7b37":"3qvsI","1790c68efb06b110":"9Pshe","540eb4174417cc86":"7iiSC",e53c0db805905662:"O1Dxw",cab1508d99737362:"7LkK3",c0ecce6689437d58:"l3Q7a","5809aadf1a05b38":"2BPWw","72de7f0923a744f6":"cHfOT","8676fff60d27e6aa":"6OxFr","753c41c24ae9eb5b":"cOrzN",c4b3c473a798ab37:"7yfB8","64cf109d48a11849":"6eplX",c44065b70e4f6cb8:"iooAT","113273f8e2d4bebb":"b99Gh"}],"6dayE":[function(e,t,r){var n,a=arguments[3];t.exports=n||function(t,r){if("undefined"!=typeof window&&window.crypto&&(n=window.crypto),"undefined"!=typeof self&&self.crypto&&(n=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(n=globalThis.crypto),!n&&"undefined"!=typeof window&&window.msCrypto&&(n=window.msCrypto),!n&&void 0!==a&&a.crypto&&(n=a.crypto),!n)try{n=e("b7760e5f0b7216d4")}catch(e){}var n,i=function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(e){}}throw Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),s={},c=s.lib={},u=c.Base={extend:function(e){var t=o(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},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},l=c.WordArray=u.extend({init:function(e,t){e=this.words=e||[],void 0!=t?this.sigBytes=t:this.sigBytes=4*e.length},toString:function(e){return(e||d).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,a=e.sigBytes;if(this.clamp(),n%4)for(var i=0;i>>2]>>>24-i%4*8&255;t[n+i>>>2]|=o<<24-(n+i)%4*8}else for(var s=0;s>>2]=r[s>>>2];return this.sigBytes+=a,this},clamp:function(){var e=this.words,r=this.sigBytes;e[r>>>2]&=4294967295<<32-r%4*8,e.length=t.ceil(r/4)},clone:function(){var e=u.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r>>2]>>>24-a%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new l.init(r,t/2)}},h=f.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],a=0;a>>2]>>>24-a%4*8&255;n.push(String.fromCharCode(i))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new l.init(r,t)}},p=f.Utf8={stringify:function(e){try{return decodeURIComponent(escape(h.stringify(e)))}catch(e){throw Error("Malformed UTF-8 data")}},parse:function(e){return h.parse(unescape(encodeURIComponent(e)))}},v=c.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=p.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(e){var r,n=this._data,a=n.words,i=n.sigBytes,o=this.blockSize,s=i/(4*o),c=(s=e?t.ceil(s):t.max((0|s)-this._minBufferSize,0))*o,u=t.min(4*c,i);if(c){for(var f=0;f()=>(t||e((t={exports:{}}).exports,t),t.exports),v=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of f(t))h.call(e,a)||a===r||u(e,a,{get:()=>t[a],enumerable:!(n=l(t,a))||n.enumerable});return e},m=(e,t,r)=>(r=null!=e?c(d(e)):{},v(!t&&e&&e.__esModule?r:u(r,"default",{value:e,enumerable:!0}),e)),g=p(e=>{e.byteLength=function(e){var t=s(e),r=t[0],n=t[1];return(r+n)*3/4-n},e.toByteArray=function(e){var t,r,n=s(e),o=n[0],c=n[1],u=new i((o+c)*3/4-c),l=0,f=c>0?o-4:o;for(r=0;r>16&255,u[l++]=t>>8&255,u[l++]=255&t;return 2===c&&(t=a[e.charCodeAt(r)]<<2|a[e.charCodeAt(r+1)]>>4,u[l++]=255&t),1===c&&(t=a[e.charCodeAt(r)]<<10|a[e.charCodeAt(r+1)]<<4|a[e.charCodeAt(r+2)]>>2,u[l++]=t>>8&255,u[l++]=255&t),u},e.fromByteArray=function(e){for(var t,r=e.length,a=r%3,i=[],o=0,s=r-a;o>18&63]+n[a>>12&63]+n[a>>6&63]+n[63&a]);return i.join("")}(e,o,o+16383>s?s:o+16383));return 1===a?i.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===a&&i.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),i.join("")};var t,r,n=[],a=[],i="u">typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(t=0,r=o.length;t0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}a["-".charCodeAt(0)]=62,a["_".charCodeAt(0)]=63}),b=p(e=>{e.read=function(e,t,r,n,a){var i,o,s=8*a-n-1,c=(1<>1,l=-7,f=r?a-1:0,d=r?-1:1,h=e[t+f];for(f+=d,i=h&(1<<-l)-1,h>>=-l,l+=s;l>0;i=256*i+e[t+f],f+=d,l-=8);for(o=i&(1<<-l)-1,i>>=-l,l+=n;l>0;o=256*o+e[t+f],f+=d,l-=8);if(0===i)i=1-u;else{if(i===c)return o?NaN:(h?-1:1)*(1/0);o+=Math.pow(2,n),i-=u}return(h?-1:1)*o*Math.pow(2,i-n)},e.write=function(e,t,r,n,a,i){var o,s,c,u=8*i-a-1,l=(1<>1,d=23===a?5960464477539062e-23:0,h=n?0:i-1,p=n?1:-1,v=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,o=l):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-o))<1&&(o--,c*=2),o+f>=1?t+=d/c:t+=d*Math.pow(2,1-f),t*c>=2&&(o++,c/=2),o+f>=l?(s=0,o=l):o+f>=1?(s=(t*c-1)*Math.pow(2,a),o+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,a),o=0));a>=8;e[r+h]=255&s,h+=p,s/=256,a-=8);for(o=o<0;e[r+h]=255&o,h+=p,o/=256,u-=8);e[r+h-p]|=128*v}}),y=p(e=>{var t=g(),r=b(),n="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,i.prototype),t}function i(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return o(e,t,r)}function o(e,t,r){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!i.isEncoding(t))throw TypeError("Unknown encoding: "+t);let r=0|d(e,t),n=a(r),o=n.write(e,t);return o!==r&&(n=n.slice(0,o)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(L(e,Uint8Array)){let t=new Uint8Array(e);return l(t.buffer,t.byteOffset,t.byteLength)}return u(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(L(e,ArrayBuffer)||e&&L(e.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(L(e,SharedArrayBuffer)||e&&L(e.buffer,SharedArrayBuffer)))return l(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return i.from(n,t,r);let o=function(e){var t;if(i.isBuffer(e)){let t=0|f(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?a(0):u(e):"Buffer"===e.type&&Array.isArray(e.data)?u(e.data):void 0}(e);if(o)return o;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return i.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function s(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return s(e),a(e<0?0:0|f(e))}function u(e){let t=e.length<0?0:0|f(e.length),r=a(t);for(let n=0;n=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function d(e,t){if(i.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||L(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let a=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return N(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return P(e).length;default:if(a)return n?-1:N(e).length;t=(""+t).toLowerCase(),a=!0}}function h(e,r,n){let a=!1;if((void 0===r||r<0)&&(r=0),r>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0)||(n>>>=0)<=(r>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){let n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let a="";for(let n=t;n2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),(o=r=+r)!=o&&(r=a?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(a)return -1;r=e.length-1}else if(r<0){if(!a)return -1;r=0}if("string"==typeof t&&(t=i.from(t,n)),i.isBuffer(t))return 0===t.length?-1:m(e,t,r,n,a);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,n,a);throw TypeError("val must be string, number or Buffer")}function m(e,t,r,n,a){let i,o=1,s=e.length,c=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;o=2,s/=2,c/=2,r/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(a){let n=-1;for(i=r;is&&(r=s-c),i=r;i>=0;i--){let r=!0;for(let n=0;n239?4:t>223?3:t>191?2:1;if(a+o<=r){let r,n,s,c;switch(o){case 1:t<128&&(i=t);break;case 2:(192&(r=e[a+1]))==128&&(c=(31&t)<<6|63&r)>127&&(i=c);break;case 3:r=e[a+1],n=e[a+2],(192&r)==128&&(192&n)==128&&(c=(15&t)<<12|(63&r)<<6|63&n)>2047&&(c<55296||c>57343)&&(i=c);break;case 4:r=e[a+1],n=e[a+2],s=e[a+3],(192&r)==128&&(192&n)==128&&(192&s)==128&&(c=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&s)>65535&&c<1114112&&(i=c)}}null===i?(i=65533,o=1):i>65535&&(i-=65536,n.push(i>>>10&1023|55296),i=56320|1023&i),n.push(i),a+=o}return function(e){let t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);let r="",n=0;for(;nr)throw RangeError("Trying to access beyond buffer length")}function w(e,t,r,n,a,o){if(!i.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>a||te.length)throw RangeError("Index out of range")}function S(e,t,r,n,a){M(t,n,a,e,r,7);let i=Number(t&BigInt(4294967295));e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,r}function E(e,t,r,n,a){M(t,n,a,e,r,7);let i=Number(t&BigInt(4294967295));e[r+7]=i,i>>=8,e[r+6]=i,i>>=8,e[r+5]=i,i>>=8,e[r+4]=i;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=o,o>>=8,e[r+2]=o,o>>=8,e[r+1]=o,o>>=8,e[r]=o,r+8}function k(e,t,r,n,a,i){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function I(e,t,n,a,i){return t=+t,n>>>=0,i||k(e,t,n,4,34028234663852886e22,-34028234663852886e22),r.write(e,t,n,a,23,4),n+4}function x(e,t,n,a,i){return t=+t,n>>>=0,i||k(e,t,n,8,17976931348623157e292,-17976931348623157e292),r.write(e,t,n,a,52,8),n+8}e.Buffer=i,e.SlowBuffer=function(e){return+e!=e&&(e=0),i.alloc(+e)},e.INSPECT_MAX_BYTES=50,e.kMaxLength=2147483647,i.TYPED_ARRAY_SUPPORT=function(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),!i.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(i.prototype,"parent",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.buffer}}),Object.defineProperty(i.prototype,"offset",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.byteOffset}}),i.poolSize=8192,i.from=function(e,t,r){return o(e,t,r)},Object.setPrototypeOf(i.prototype,Uint8Array.prototype),Object.setPrototypeOf(i,Uint8Array),i.alloc=function(e,t,r){return s(e),e<=0?a(e):void 0!==t?"string"==typeof r?a(e).fill(t,r):a(e).fill(t):a(e)},i.allocUnsafe=function(e){return c(e)},i.allocUnsafeSlow=function(e){return c(e)},i.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==i.prototype},i.compare=function(e,t){if(L(e,Uint8Array)&&(e=i.from(e,e.offset,e.byteLength)),L(t,Uint8Array)&&(t=i.from(t,t.offset,t.byteLength)),!i.isBuffer(e)||!i.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let a=0,i=Math.min(r,n);an.length?(i.isBuffer(t)||(t=i.from(t)),t.copy(n,a)):Uint8Array.prototype.set.call(n,t,a);else if(i.isBuffer(t))t.copy(n,a);else throw TypeError('"list" argument must be an Array of Buffers');a+=t.length}return n},i.byteLength=d,i.prototype._isBuffer=!0,i.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tr&&(t+=" ... "),""},n&&(i.prototype[n]=i.prototype.inspect),i.prototype.compare=function(e,t,r,n,a){if(L(e,Uint8Array)&&(e=i.from(e,e.offset,e.byteLength)),!i.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===a&&(a=this.length),t<0||r>e.length||n<0||a>this.length)throw RangeError("out of range index");if(n>=a&&t>=r)return 0;if(n>=a)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,a>>>=0,this===e)return 0;let o=a-n,s=r-t,c=Math.min(o,s),u=this.slice(n,a),l=e.slice(t,r);for(let e=0;e>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let d=this.length-t;if((void 0===r||r>d)&&(r=d),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let h=!1;for(;;)switch(n){case"hex":return function(e,t,r,n){let a;r=Number(r)||0;let i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;let o=t.length;for(n>o/2&&(n=o/2),a=0;a>8,a.push(r%256),a.push(n);return a}(e,this.length-l),this,l,f);default:if(h)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),h=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},i.prototype.slice=function(e,t){let r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||_(e,t,this.length);let n=this[e],a=1,i=0;for(;++i>>=0,t>>>=0,r||_(e,t,this.length);let n=this[e+--t],a=1;for(;t>0&&(a*=256);)n+=this[e+--t]*a;return n},i.prototype.readUint8=i.prototype.readUInt8=function(e,t){return e>>>=0,t||_(e,1,this.length),this[e]},i.prototype.readUint16LE=i.prototype.readUInt16LE=function(e,t){return e>>>=0,t||_(e,2,this.length),this[e]|this[e+1]<<8},i.prototype.readUint16BE=i.prototype.readUInt16BE=function(e,t){return e>>>=0,t||_(e,2,this.length),this[e]<<8|this[e+1]},i.prototype.readUint32LE=i.prototype.readUInt32LE=function(e,t){return e>>>=0,t||_(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},i.prototype.readUint32BE=i.prototype.readUInt32BE=function(e,t){return e>>>=0,t||_(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},i.prototype.readBigUInt64LE=B(function(e){R(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&C(e,this.length-8);let n=t+256*this[++e]+65536*this[++e]+16777216*this[++e],a=this[++e]+256*this[++e]+65536*this[++e]+16777216*r;return BigInt(n)+(BigInt(a)<>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&C(e,this.length-8);let n=16777216*t+65536*this[++e]+256*this[++e]+this[++e],a=16777216*this[++e]+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<>>=0,t>>>=0,r||_(e,t,this.length);let n=this[e],a=1,i=0;for(;++i=(a*=128)&&(n-=Math.pow(2,8*t)),n},i.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||_(e,t,this.length);let n=t,a=1,i=this[e+--n];for(;n>0&&(a*=256);)i+=this[e+--n]*a;return i>=(a*=128)&&(i-=Math.pow(2,8*t)),i},i.prototype.readInt8=function(e,t){return e>>>=0,t||_(e,1,this.length),128&this[e]?-((255-this[e]+1)*1):this[e]},i.prototype.readInt16LE=function(e,t){e>>>=0,t||_(e,2,this.length);let r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},i.prototype.readInt16BE=function(e,t){e>>>=0,t||_(e,2,this.length);let r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},i.prototype.readInt32LE=function(e,t){return e>>>=0,t||_(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},i.prototype.readInt32BE=function(e,t){return e>>>=0,t||_(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},i.prototype.readBigInt64LE=B(function(e){R(e>>>=0,"offset");let t=this[e],r=this[e+7];return(void 0===t||void 0===r)&&C(e,this.length-8),(BigInt(this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24))<>>=0,"offset");let t=this[e],r=this[e+7];return(void 0===t||void 0===r)&&C(e,this.length-8),(BigInt((t<<24)+65536*this[++e]+256*this[++e]+this[++e])<>>=0,t||_(e,4,this.length),r.read(this,e,!0,23,4)},i.prototype.readFloatBE=function(e,t){return e>>>=0,t||_(e,4,this.length),r.read(this,e,!1,23,4)},i.prototype.readDoubleLE=function(e,t){return e>>>=0,t||_(e,8,this.length),r.read(this,e,!0,52,8)},i.prototype.readDoubleBE=function(e,t){return e>>>=0,t||_(e,8,this.length),r.read(this,e,!1,52,8)},i.prototype.writeUintLE=i.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;w(this,e,t,r,n,0)}let a=1,i=0;for(this[t]=255&e;++i>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;w(this,e,t,r,n,0)}let a=r-1,i=1;for(this[t+a]=255&e;--a>=0&&(i*=256);)this[t+a]=e/i&255;return t+r},i.prototype.writeUint8=i.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,1,255,0),this[t]=255&e,t+1},i.prototype.writeUint16LE=i.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},i.prototype.writeUint16BE=i.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},i.prototype.writeUint32LE=i.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},i.prototype.writeUint32BE=i.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},i.prototype.writeBigUInt64LE=B(function(e,t=0){return S(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),i.prototype.writeBigUInt64BE=B(function(e,t=0){return E(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),i.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){let n=Math.pow(2,8*r-1);w(this,e,t,r,n-1,-n)}let a=0,i=1,o=0;for(this[t]=255&e;++a>0)-o&255;return t+r},i.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){let n=Math.pow(2,8*r-1);w(this,e,t,r,n-1,-n)}let a=r-1,i=1,o=0;for(this[t+a]=255&e;--a>=0&&(i*=256);)e<0&&0===o&&0!==this[t+a+1]&&(o=1),this[t+a]=(e/i>>0)-o&255;return t+r},i.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},i.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},i.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},i.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},i.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},i.prototype.writeBigInt64LE=B(function(e,t=0){return S(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),i.prototype.writeBigInt64BE=B(function(e,t=0){return E(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),i.prototype.writeFloatLE=function(e,t,r){return I(this,e,t,!0,r)},i.prototype.writeFloatBE=function(e,t,r){return I(this,e,t,!1,r)},i.prototype.writeDoubleLE=function(e,t,r){return x(this,e,t,!0,r)},i.prototype.writeDoubleBE=function(e,t,r){return x(this,e,t,!1,r)},i.prototype.copy=function(e,t,r,n){if(!i.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(a=t;a=n+4;r-=3)t="_".concat(e.slice(r-3,r)).concat(t);return"".concat(e.slice(0,r)).concat(t)}function M(e,t,r,n,a,i){if(e>r||e3?0===t||t===BigInt(0)?">= 0".concat(n," and < 2").concat(n," ** ").concat((i+1)*8).concat(n):">= -(2".concat(n," ** ").concat((i+1)*8-1).concat(n,") and < 2 ** ")+"".concat((i+1)*8-1).concat(n):">= ".concat(t).concat(n," and <= ").concat(r).concat(n),new O.ERR_OUT_OF_RANGE("value",a,e)}R(a,"offset"),(void 0===n[a]||void 0===n[a+i])&&C(a,n.length-(i+1))}function R(e,t){if("number"!=typeof e)throw new O.ERR_INVALID_ARG_TYPE(t,"number",e)}function C(e,t,r){throw Math.floor(e)!==e?(R(e,r),new O.ERR_OUT_OF_RANGE(r||"offset","an integer",e)):t<0?new O.ERR_BUFFER_OUT_OF_BOUNDS:new O.ERR_OUT_OF_RANGE(r||"offset",">= ".concat(r?1:0," and <= ").concat(t),e)}T("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?"".concat(e," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"},RangeError),T("ERR_INVALID_ARG_TYPE",function(e,t){return'The "'.concat(e,'" argument must be of type number. Received type ').concat(typeof t)},TypeError),T("ERR_OUT_OF_RANGE",function(e,t,r){let n='The value of "'.concat(e,'" is out of range.'),a=r;return Number.isInteger(r)&&Math.abs(r)>4294967296?a=A(String(r)):"bigint"==typeof r&&(a=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(a=A(a)),a+="n"),n+=" It must be ".concat(t,". Received ").concat(a)},RangeError);var j=/[^+/0-9A-Za-z-_]/g;function N(e,t){t=t||1/0;let r,n=e.length,a=null,i=[];for(let o=0;o55295&&r<57344){if(!a){if(r>56319||o+1===n){(t-=3)>-1&&i.push(239,191,189);continue}a=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),a=r;continue}r=(a-55296<<10|r-56320)+65536}else a&&(t-=3)>-1&&i.push(239,191,189);if(a=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return i}function P(e){return t.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(j,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function D(e,t,r,n){let a;for(a=0;a=t.length||a>=e.length);++a)t[a+r]=e[a];return a}function L(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var F=function(){let e="0123456789abcdef",t=Array(256);for(let r=0;r<16;++r){let n=16*r;for(let a=0;a<16;++a)t[n+a]=e[r]+e[a]}return t}();function B(e){return typeof BigInt>"u"?U:e}function U(){throw Error("BigInt not supported")}}),_=p((e,t)=>{var r=y(),n=r.Buffer;function a(e,t){for(var r in e)t[r]=e[r]}function i(e,t,r){return n(e,t,r)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?t.exports=r:(a(r,e),e.Buffer=i),i.prototype=Object.create(n.prototype),a(n,i),i.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return n(e,t,r)},i.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var a=n(e);return void 0!==t?"string"==typeof r?a.fill(t,r):a.fill(t):a.fill(0),a},i.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n(e)},i.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return r.SlowBuffer(e)}}),w=p((e,t)=>{var r=_().Buffer,n=i.crypto||i.msCrypto;n&&n.getRandomValues?t.exports=function(e,t){if(e>4294967295)throw RangeError("requested too many random bytes");var a=r.allocUnsafe(e);if(e>0){if(e>65536)for(var i=0;i{"function"==typeof Object.create?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}}),E=p((e,t)=>{var r,n="object"==typeof Reflect?Reflect:null,a=n&&"function"==typeof n.apply?n.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};r=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}t.exports=o,t.exports.once=function(e,t){return new Promise(function(r,n){function a(r){e.removeListener(t,i),n(r)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",a),r([].slice.call(arguments))}m(e,t,i,{once:!0}),"error"!==t&&"function"==typeof e.on&&m(e,"error",a,{once:!0})})},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function c(e){if("function"!=typeof e)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function l(e,t,r,n){var a,i,o;if(c(r),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),i=e._events),o=i[t]),void 0===o)o=i[t]=r,++e._eventsCount;else if("function"==typeof o?o=i[t]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),(a=u(e))>0&&o.length>a&&!o.warned){o.warned=!0;var s=Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=o.length,console&&console.warn&&console.warn(s)}return e}function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},a=f.bind(n);return a.listener=r,n.wrapFn=a,a}function h(e,t,r){var n=e._events;if(void 0===n)return[];var a=n[t];return void 0===a?[]:"function"==typeof a?r?[a.listener||a]:[a]:r?function(e){for(var t=Array(e.length),r=0;r0&&(o=t[0]),o instanceof Error)throw o;var o,s=Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var c=i[e];if(void 0===c)return!1;if("function"==typeof c)a(c,this,t);else for(var u=c.length,l=v(c,u),r=0;r=0;i--)if(r[i]===t||r[i].listener===t){o=r[i].listener,a=i;break}if(a<0)return this;0===a?r.shift():function(e,t){for(;t+1=0;n--)this.removeListener(e,t[n]);return this},o.prototype.listeners=function(e){return h(this,e,!0)},o.prototype.rawListeners=function(e){return h(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},o.prototype.listenerCount=p,o.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}}),k=p((e,t)=>{t.exports=E().EventEmitter}),I=p(()=>{}),x=p((e,t)=>{function r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function n(e){for(var t=1;t0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return o.alloc(0);for(var t,r,n=o.allocUnsafe(e>>>0),a=this.head,i=0;a;)t=a.data,r=i,o.prototype.copy.call(t,n,r),i+=a.data.length,a=a.next;return n}},{key:"consume",value:function(e,t){var r;return ea.length?a.length:e;if(i===a.length?n+=a:n+=a.slice(0,e),0==(e-=i)){i===a.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=a.slice(i));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=o.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var a=r.data,i=e>a.length?a.length:e;if(a.copy(t,t.length-e,0,i),0==(e-=i)){i===a.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=a.slice(i));break}++n}return this.length-=n,t}},{key:c,value:function(e,t){return s(this,n(n({},t),{},{depth:0,customInspect:!1}))}}],a(r.prototype,e),t&&a(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}()}),O=p((e,t)=>{function r(e,t){a(e,t),n(e)}function n(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function a(e,t){e.emit("error",t)}t.exports={destroy:function(e,t){var i=this,s=this._readableState&&this._readableState.destroyed,c=this._writableState&&this._writableState.destroyed;return s||c?t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,o.nextTick(a,this,e)):o.nextTick(a,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?i._writableState?i._writableState.errorEmitted?o.nextTick(n,i):(i._writableState.errorEmitted=!0,o.nextTick(r,i,e)):o.nextTick(r,i,e):t?(o.nextTick(n,i),t(e)):o.nextTick(n,i)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}}),T=p((e,t)=>{var r={};function n(e,t,n){n||(n=Error);var a=function(e){function r(r,n,a){return e.call(this,"string"==typeof t?t:t(r,n,a))||this}return r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.__proto__=e,r}(n);a.prototype.name=n.name,a.prototype.code=e,r[e]=a}function a(e,t){if(!Array.isArray(e))return"of ".concat(t," ").concat(String(e));var r=e.length;return e=e.map(function(e){return String(e)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}n("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),n("ERR_INVALID_ARG_TYPE",function(e,t,r){if("string"==typeof t&&(n="not ",t.substr(!i||i<0?0:+i,n.length)===n)?(u="must not be",t=t.replace(/^not /,"")):u="must be",o=" argument",(void 0===s||s>e.length)&&(s=e.length),e.substring(s-o.length,s)===o)l="The ".concat(e," ").concat(u," ").concat(a(t,"type"));else{var n,i,o,s,c,u,l,f=("number"!=typeof c&&(c=0),c+1>e.length||-1===e.indexOf(".",c))?"argument":"property";l='The "'.concat(e,'" ').concat(f," ").concat(u," ").concat(a(t,"type"))}return l+". Received type ".concat(typeof r)},TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=r}),A=p((e,t)=>{var r=T().codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(e,t,n,a){var i=null!=t.highWaterMark?t.highWaterMark:a?t[n]:null;if(null!=i){if(!(isFinite(i)&&Math.floor(i)===i)||i<0)throw new r(a?n:"highWaterMark",i);return Math.floor(i)}return e.objectMode?16:16384}}}),M=p((e,t)=>{t.exports=function(e,t){if(r("noDeprecation"))return e;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}};function r(e){try{if(!i.localStorage)return!1}catch(e){return!1}var t=i.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}}),R=p((e,t)=>{function r(e){var t=this;this.next=null,this.entry=null,this.finish=function(){(function(e,t,r){var n=e.entry;for(e.entry=null;n;){var a=n.callback;t.pendingcb--,a(void 0),n=n.next}t.corkedRequestsFree.next=e})(t,e)}}t.exports=j,j.WritableState=R;var n,a,s={deprecate:M()},c=k(),u=y().Buffer,l=("u">typeof i?i:"u">typeof window?window:"u">typeof self?self:{}).Uint8Array||function(){},f=O(),d=A().getHighWaterMark,h=T().codes,p=h.ERR_INVALID_ARG_TYPE,v=h.ERR_METHOD_NOT_IMPLEMENTED,m=h.ERR_MULTIPLE_CALLBACK,g=h.ERR_STREAM_CANNOT_PIPE,b=h.ERR_STREAM_DESTROYED,_=h.ERR_STREAM_NULL_VALUES,w=h.ERR_STREAM_WRITE_AFTER_END,E=h.ERR_UNKNOWN_ENCODING,I=f.errorOrDestroy;function x(){}function R(e,t,a){n=n||C(),e=e||{},"boolean"!=typeof a&&(a=t instanceof n),this.objectMode=!!e.objectMode,a&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=d(this,e,"writableHighWaterMark",a),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=!1===e.decodeStrings;this.decodeStrings=!i,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){(function(e,t){var r=e._writableState,n=r.sync,a=r.writecb;if("function"!=typeof a)throw new m;if(r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,t)--r.pendingcb,n?(o.nextTick(a,t),o.nextTick(B,e,r),e._writableState.errorEmitted=!0,I(e,t)):(a(t),e._writableState.errorEmitted=!0,I(e,t),B(e,r));else{var i=L(r)||e.destroyed;i||r.corked||r.bufferProcessing||!r.bufferedRequest||D(e,r),n?o.nextTick(P,e,r,i,a):P(e,r,i,a)}})(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new r(this)}function j(e){var t=this instanceof(n=n||C());if(!t&&!a.call(j,this))return new j(e);this._writableState=new R(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),c.call(this)}function N(e,t,r,n,a,i,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new b("write")):r?e._writev(a,t.onwrite):e._write(a,i,t.onwrite),t.sync=!1}function P(e,t,r,n){r||0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain")),t.pendingcb--,n(),B(e,t)}function D(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var a=Array(t.bufferedRequestCount),i=t.corkedRequestsFree;i.entry=n;for(var o=0,s=!0;n;)a[o]=n,n.isBuf||(s=!1),n=n.next,o+=1;a.allBuffers=s,N(e,t,!0,t.length,a,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new r(t),t.bufferedRequestCount=0}else{for(;n;){var c=n.chunk,u=n.encoding,l=n.callback,f=t.objectMode?1:c.length;if(N(e,t,!1,f,c,u,l),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function L(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function F(e,t){e._final(function(r){t.pendingcb--,r&&I(e,r),t.prefinished=!0,e.emit("prefinish"),B(e,t)})}function B(e,t){var r=L(t);if(r&&(t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,o.nextTick(F,e,t))),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}S()(j,c),R.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(R.prototype,"buffer",{get:s.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(a=Function.prototype[Symbol.hasInstance],Object.defineProperty(j,Symbol.hasInstance,{value:function(e){return!!a.call(this,e)||this===j&&e&&e._writableState instanceof R}})):a=function(e){return e instanceof this},j.prototype.pipe=function(){I(this,new g)},j.prototype.write=function(e,t,r){var n,a,i,s,c,f,d,h=this._writableState,v=!1,m=!h.objectMode&&(n=e,u.isBuffer(n)||n instanceof l);return m&&!u.isBuffer(e)&&(a=e,e=u.from(a)),"function"==typeof t&&(r=t,t=null),m?t="buffer":t||(t=h.defaultEncoding),"function"!=typeof r&&(r=x),h.ending?(i=r,I(this,s=new w),o.nextTick(i,s)):!m&&(c=e,f=r,null===c?d=new _:"string"==typeof c||h.objectMode||(d=new p("chunk",["string","Buffer"],c)),d&&(I(this,d),o.nextTick(f,d),1))||(h.pendingcb++,v=function(e,t,r,n,a,i){if(!r){var o,s,c=(o=n,s=a,t.objectMode||!1===t.decodeStrings||"string"!=typeof o||(o=u.from(o,s)),o);n!==c&&(r=!0,a="buffer",n=c)}var l=t.objectMode?1:n.length;t.length+=l;var f=t.length-1))throw new E(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(j.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(j.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),j.prototype._write=function(e,t,r){r(new v("_write()"))},j.prototype._writev=null,j.prototype.end=function(e,t,r){var n,a=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),a.corked&&(a.corked=1,this.uncork()),a.ending||(n=r,a.ending=!0,B(this,a),n&&(a.finished?o.nextTick(n):this.once("finish",n)),a.ended=!0,this.writable=!1),this},Object.defineProperty(j.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(j.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),j.prototype.destroy=f.destroy,j.prototype._undestroy=f.undestroy,j.prototype._destroy=function(e,t){t(e)}}),C=p((e,t)=>{var r,n,a,i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};t.exports=u;var s=L(),c=R();for(S()(u,s),r=i(c.prototype),a=0;a{var t=_().Buffer,r=t.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function n(e){var n;switch(this.encoding=function(e){var n=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof n&&(t.isEncoding===r||!r(e)))throw Error("Unknown encoding: "+e);return n||e}(e),this.encoding){case"utf16le":this.text=o,this.end=s,n=4;break;case"utf8":this.fillLast=i,n=4;break;case"base64":this.text=c,this.end=u,n=3;break;default:this.write=l,this.end=f;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(n)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function i(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"\ufffd";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"\ufffd";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"\ufffd"}}(this,e,0);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function o(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function s(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function c(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function u(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function l(e){return e.toString(this.encoding)}function f(e){return e&&e.length?this.write(e):""}e.StringDecoder=n,n.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0?(i>0&&(e.lastNeed=i-1),i):--n=0?(i>0&&(e.lastNeed=i-2),i):--n=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},n.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}}),N=p((e,t)=>{var r=T().codes.ERR_STREAM_PREMATURE_CLOSE;function n(){}t.exports=function e(t,a,i){if("function"==typeof a)return e(t,null,a);a||(a={}),o=i||n,s=!1,i=function(){if(!s){s=!0;for(var e=arguments.length,t=Array(e),r=0;r{function r(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var n,a=N(),i=Symbol("lastResolve"),s=Symbol("lastReject"),c=Symbol("error"),u=Symbol("ended"),l=Symbol("lastPromise"),f=Symbol("handlePromise"),d=Symbol("stream");function h(e,t){return{value:e,done:t}}function p(e){var t=e[i];if(null!==t){var r=e[d].read();null!==r&&(e[l]=null,e[i]=null,e[s]=null,t(h(r,!1)))}}function v(e){o.nextTick(p,e)}var m=Object.getPrototypeOf(function(){}),g=Object.setPrototypeOf((r(n={get stream(){return this[d]},next:function(){var e,t=this,r=this[c];if(null!==r)return Promise.reject(r);if(this[u])return Promise.resolve(h(void 0,!0));if(this[d].destroyed)return new Promise(function(e,r){o.nextTick(function(){t[c]?r(t[c]):e(h(void 0,!0))})});var n,a=this[l];if(a)n=new Promise((e=this,function(t,r){a.then(function(){if(e[u]){t(h(void 0,!0));return}e[f](t,r)},r)}));else{var i=this[d].read();if(null!==i)return Promise.resolve(h(i,!1));n=new Promise(this[f])}return this[l]=n,n}},Symbol.asyncIterator,function(){return this}),r(n,"return",function(){var e=this;return new Promise(function(t,r){e[d].destroy(null,function(e){if(e){r(e);return}t(h(void 0,!0))})})}),n),m);t.exports=function(e){var t,n=Object.create(g,(r(t={},d,{value:e,writable:!0}),r(t,i,{value:null,writable:!0}),r(t,s,{value:null,writable:!0}),r(t,c,{value:null,writable:!0}),r(t,u,{value:e._readableState.endEmitted,writable:!0}),r(t,f,{value:function(e,t){var r=n[d].read();r?(n[l]=null,n[i]=null,n[s]=null,e(h(r,!1))):(n[i]=e,n[s]=t)},writable:!0}),t));return n[l]=null,a(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=n[s];null!==t&&(n[l]=null,n[i]=null,n[s]=null,t(e)),n[c]=e;return}var r=n[i];null!==r&&(n[l]=null,n[i]=null,n[s]=null,r(h(void 0,!0))),n[u]=!0}),e.on("readable",v.bind(null,n)),n}}),D=p((e,t)=>{t.exports=function(){throw Error("Readable.from is not available in the browser")}}),L=p((e,t)=>{t.exports=F,F.ReadableState=L,E().EventEmitter;var r,n,a=function(e,t){return e.listeners(t).length},s=k(),c=y().Buffer,u=("u">typeof i?i:"u">typeof window?window:"u">typeof self?self:{}).Uint8Array||function(){},l=I();n=l&&l.debuglog?l.debuglog("stream"):function(){};var f,d,h,p=x(),v=O(),m=A().getHighWaterMark,g=T().codes,b=g.ERR_INVALID_ARG_TYPE,_=g.ERR_STREAM_PUSH_AFTER_EOF,w=g.ERR_METHOD_NOT_IMPLEMENTED,M=g.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;S()(F,s);var R=v.errorOrDestroy,N=["error","close","destroy","pause","resume"];function L(e,t,n){r=r||C(),e=e||{},"boolean"!=typeof n&&(n=t instanceof r),this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=m(this,e,"readableHighWaterMark",n),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(f||(f=j().StringDecoder),this.decoder=new f(e.encoding),this.encoding=e.encoding)}function F(e){if(r=r||C(),!(this instanceof F))return new F(e);var t=this instanceof r;this._readableState=new L(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),s.call(this)}function B(e,t,r,a,i){n("readableAddChunk",t);var o,s,l,f,d,h=e._readableState;if(null===t)h.reading=!1,function(e,t){if(n("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?H(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,G(e)))}}(e,h);else{if(i||(o=h,s=t,c.isBuffer(s)||s instanceof u||"string"==typeof s||void 0===s||o.objectMode||(l=new b("chunk",["string","Buffer","Uint8Array"],s)),d=l),d)R(e,d);else if(h.objectMode||t&&t.length>0){if("string"==typeof t||h.objectMode||Object.getPrototypeOf(t)===c.prototype||(f=t,t=c.from(f)),a)h.endEmitted?R(e,new M):U(e,h,t,!0);else if(h.ended)R(e,new _);else{if(h.destroyed)return!1;h.reading=!1,h.decoder&&!r?(t=h.decoder.write(t),h.objectMode||0!==t.length?U(e,h,t,!1):q(e,h)):U(e,h,t,!1)}}else a||(h.reading=!1,q(e,h))}return!h.ended&&(h.lengtht.highWaterMark&&(t.highWaterMark=((r=e)>=1073741824?r=1073741824:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function H(e){var t=e._readableState;n("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(n("emitReadable",t.flowing),t.emittedReadable=!0,o.nextTick(G,e))}function G(e){var t=e._readableState;n("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,J(e)}function q(e,t){t.readingMore||(t.readingMore=!0,o.nextTick(W,e,t))}function W(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function V(e){n("readable nexttick read 0"),e.read(0)}function Y(e,t){n("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),J(e),t.flowing&&!t.reading&&e.read(0)}function J(e){var t=e._readableState;for(n("flow",t.flowing);t.flowing&&null!==e.read(););}function Z(e,t){var r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r)}function X(e){var t=e._readableState;n("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,o.nextTick($,t,e))}function $(e,t){if(n("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function Q(e,t){for(var r=0,n=e.length;r=r.highWaterMark:r.length>0)||r.ended))return n("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?X(this):H(this),null;if(0===(e=z(e,r))&&r.ended)return 0===r.length&&X(this),null;var i=r.needReadable;return n("need readable",i),(0===r.length||r.length-e0?Z(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),a!==e&&r.ended&&X(this)),null!==t&&this.emit("data",t),t},F.prototype._read=function(e){R(this,new w("_read()"))},F.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,n("pipe count=%d opts=%j",i.pipesCount,t);var s=t&&!1===t.end||e===o.stdout||e===o.stderr?v:c;function c(){n("onend"),e.end()}i.endEmitted?o.nextTick(s):r.once("end",s),e.on("unpipe",function t(a,o){n("onunpipe"),a===r&&o&&!1===o.hasUnpiped&&(o.hasUnpiped=!0,n("cleanup"),e.removeListener("close",h),e.removeListener("finish",p),e.removeListener("drain",u),e.removeListener("error",d),e.removeListener("unpipe",t),r.removeListener("end",c),r.removeListener("end",v),r.removeListener("data",f),l=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&u())});var u=function(){var e=r._readableState;n("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&a(r,"data")&&(e.flowing=!0,J(r))};e.on("drain",u);var l=!1;function f(t){n("ondata");var a=e.write(t);n("dest.write",a),!1===a&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==Q(i.pipes,e))&&!l&&(n("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function d(t){n("onerror",t),v(),e.removeListener("error",d),0===a(e,"error")&&R(e,t)}function h(){e.removeListener("finish",p),v()}function p(){n("onfinish"),e.removeListener("close",h),v()}function v(){n("unpipe"),r.unpipe(e)}return r.on("data",f),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",d),e.once("close",h),e.once("finish",p),e.emit("pipe",r),i.flowing||(n("pipe resume"),r.resume()),e},F.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,a=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i0,!1!==a.flowing&&this.resume()):"readable"!==e||a.endEmitted||a.readableListening||(a.readableListening=a.needReadable=!0,a.flowing=!1,a.emittedReadable=!1,n("on readable",a.length,a.reading),a.length?H(this):a.reading||o.nextTick(V,this)),r},F.prototype.addListener=F.prototype.on,F.prototype.removeListener=function(e,t){var r=s.prototype.removeListener.call(this,e,t);return"readable"===e&&o.nextTick(K,this),r},F.prototype.removeAllListeners=function(e){var t=s.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&o.nextTick(K,this),t},F.prototype.resume=function(){var e=this._readableState;return e.flowing||(n("resume"),e.flowing=!e.readableListening,e.resumeScheduled||(e.resumeScheduled=!0,o.nextTick(Y,this,e))),e.paused=!1,this},F.prototype.pause=function(){return n("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(n("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},F.prototype.wrap=function(e){var t=this,r=this._readableState,a=!1;for(var i in e.on("end",function(){if(n("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){n("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i||!r.objectMode&&(!i||!i.length)||t.push(i)||(a=!0,e.pause())}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o{t.exports=u;var r=T().codes,n=r.ERR_METHOD_NOT_IMPLEMENTED,a=r.ERR_MULTIPLE_CALLBACK,i=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=r.ERR_TRANSFORM_WITH_LENGTH_0,s=C();function c(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new a);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length{t.exports=n;var r=F();function n(e){if(!(this instanceof n))return new n(e);r.call(this,e)}S()(n,r),n.prototype._transform=function(e,t,r){r(null,e)}}),U=p((e,t)=>{var r,n=T().codes,a=n.ERR_MISSING_ARGS,i=n.ERR_STREAM_DESTROYED;function o(e){if(e)throw e}function s(e){e()}function c(e,t){return e.pipe(t)}t.exports=function(){for(var e=arguments.length,t=Array(e),n=0;n0},function(e){if(e)return a(e);l=!0,a()}),h=!1,function(t){if(!l&&!h){if(h=!0,e.setHeader&&"function"==typeof e.abort)return e.abort();if("function"==typeof e.destroy)return e.destroy();a(t||new i("pipe"))}}});return t.reduce(c)}}),z=p((e,t)=>{(e=t.exports=L()).Stream=e,e.Readable=e,e.Writable=R(),e.Duplex=C(),e.Transform=F(),e.PassThrough=B(),e.finished=N(),e.pipeline=U()}),H=p((e,t)=>{var r=_().Buffer,n=z().Transform;function a(e){n.call(this),this._block=r.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}S()(a,n),a.prototype._transform=function(e,t,r){var n=null;try{this.update(e,t)}catch(e){n=e}r(n)},a.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},a.prototype.update=function(e,t){if(function(e,t){if(!r.isBuffer(e)&&"string"!=typeof e)throw TypeError(t+" must be a string or a buffer")}(e,"Data"),this._finalized)throw Error("Digest already called");r.isBuffer(e)||(e=r.from(e,t));for(var n=this._block,a=0;this._blockOffset+e.length-a>=this._blockSize;){for(var i=this._blockOffset;i0;++o)this._length[o]+=s,(s=this._length[o]/4294967296|0)>0&&(this._length[o]-=4294967296*s);return this},a.prototype._update=function(){throw Error("_update is not implemented")},a.prototype.digest=function(e){if(this._finalized)throw Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t},a.prototype._digest=function(){throw Error("_digest is not implemented")},t.exports=a}),G=p((e,t)=>{var r=S(),n=H(),a=_().Buffer,i=Array(16);function o(){n.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function s(e,t){return e<>>32-t}function c(e,t,r,n,a,i,o){return s(e+(t&r|~t&n)+a+i|0,o)+t|0}function u(e,t,r,n,a,i,o){return s(e+(t&n|r&~n)+a+i|0,o)+t|0}function l(e,t,r,n,a,i,o){return s(e+(t^r^n)+a+i|0,o)+t|0}function f(e,t,r,n,a,i,o){return s(e+(r^(t|~n))+a+i|0,o)+t|0}r(o,n),o.prototype._update=function(){for(var e=0;e<16;++e)i[e]=this._block.readInt32LE(4*e);var t=this._a,r=this._b,n=this._c,a=this._d;t=c(t,r,n,a,i[0],3614090360,7),a=c(a,t,r,n,i[1],3905402710,12),n=c(n,a,t,r,i[2],606105819,17),r=c(r,n,a,t,i[3],3250441966,22),t=c(t,r,n,a,i[4],4118548399,7),a=c(a,t,r,n,i[5],1200080426,12),n=c(n,a,t,r,i[6],2821735955,17),r=c(r,n,a,t,i[7],4249261313,22),t=c(t,r,n,a,i[8],1770035416,7),a=c(a,t,r,n,i[9],2336552879,12),n=c(n,a,t,r,i[10],4294925233,17),r=c(r,n,a,t,i[11],2304563134,22),t=c(t,r,n,a,i[12],1804603682,7),a=c(a,t,r,n,i[13],4254626195,12),n=c(n,a,t,r,i[14],2792965006,17),r=c(r,n,a,t,i[15],1236535329,22),t=u(t,r,n,a,i[1],4129170786,5),a=u(a,t,r,n,i[6],3225465664,9),n=u(n,a,t,r,i[11],643717713,14),r=u(r,n,a,t,i[0],3921069994,20),t=u(t,r,n,a,i[5],3593408605,5),a=u(a,t,r,n,i[10],38016083,9),n=u(n,a,t,r,i[15],3634488961,14),r=u(r,n,a,t,i[4],3889429448,20),t=u(t,r,n,a,i[9],568446438,5),a=u(a,t,r,n,i[14],3275163606,9),n=u(n,a,t,r,i[3],4107603335,14),r=u(r,n,a,t,i[8],1163531501,20),t=u(t,r,n,a,i[13],2850285829,5),a=u(a,t,r,n,i[2],4243563512,9),n=u(n,a,t,r,i[7],1735328473,14),r=u(r,n,a,t,i[12],2368359562,20),t=l(t,r,n,a,i[5],4294588738,4),a=l(a,t,r,n,i[8],2272392833,11),n=l(n,a,t,r,i[11],1839030562,16),r=l(r,n,a,t,i[14],4259657740,23),t=l(t,r,n,a,i[1],2763975236,4),a=l(a,t,r,n,i[4],1272893353,11),n=l(n,a,t,r,i[7],4139469664,16),r=l(r,n,a,t,i[10],3200236656,23),t=l(t,r,n,a,i[13],681279174,4),a=l(a,t,r,n,i[0],3936430074,11),n=l(n,a,t,r,i[3],3572445317,16),r=l(r,n,a,t,i[6],76029189,23),t=l(t,r,n,a,i[9],3654602809,4),a=l(a,t,r,n,i[12],3873151461,11),n=l(n,a,t,r,i[15],530742520,16),r=l(r,n,a,t,i[2],3299628645,23),t=f(t,r,n,a,i[0],4096336452,6),a=f(a,t,r,n,i[7],1126891415,10),n=f(n,a,t,r,i[14],2878612391,15),r=f(r,n,a,t,i[5],4237533241,21),t=f(t,r,n,a,i[12],1700485571,6),a=f(a,t,r,n,i[3],2399980690,10),n=f(n,a,t,r,i[10],4293915773,15),r=f(r,n,a,t,i[1],2240044497,21),t=f(t,r,n,a,i[8],1873313359,6),a=f(a,t,r,n,i[15],4264355552,10),n=f(n,a,t,r,i[6],2734768916,15),r=f(r,n,a,t,i[13],1309151649,21),t=f(t,r,n,a,i[4],4149444226,6),a=f(a,t,r,n,i[11],3174756917,10),n=f(n,a,t,r,i[2],718787259,15),r=f(r,n,a,t,i[9],3951481745,21),this._a=this._a+t|0,this._b=this._b+r|0,this._c=this._c+n|0,this._d=this._d+a|0},o.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=a.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},t.exports=o}),q=p((e,t)=>{var r=y().Buffer,n=S(),a=H(),i=Array(16),o=[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],s=[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],c=[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],u=[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];function l(){a.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function f(e,t){return e<>>32-t}n(l,a),l.prototype._update=function(){for(var e,t,r,n,a,l,d,h,p,v,m,g,b,y,_,w,S,E,k,I,x,O,T,A,M,R,C,j,N,P,D,L,F,B,U,z,H,G,q,W,K,V,Y,J,Z,X,$,Q,ee,et,er,en,ea,ei,eo,es,ec,eu,el,ef,ed,eh,ep,ev,em,eg,eb,ey,e_,ew,eS,eE,ek=0;ek<16;++ek)i[ek]=this._block.readInt32LE(4*ek);for(var eI=0|this._a,ex=0|this._b,eO=0|this._c,eT=0|this._d,eA=0|this._e,eM=0|this._a,eR=0|this._b,eC=0|this._c,ej=0|this._d,eN=0|this._e,eP=0;eP<80;eP+=1)eP<16?(e=eI,t=ex,r=eO,n=eT,a=eA,eS=f(e+(t^r^n)+i[o[eP]]+0|0,c[eP])+a|0,h=eM,p=eR,v=eC,m=ej,g=eN,eE=f(h+(p^(v|~m))+i[s[eP]]+1352829926|0,u[eP])+g|0):eP<32?(_=eI,w=ex,S=eO,E=eT,k=eA,eS=f(_+(w&S|~w&E)+i[o[eP]]+1518500249|0,c[eP])+k|0,O=eM,T=eR,A=eC,M=ej,R=eN,eE=f(O+(T&M|A&~M)+i[s[eP]]+1548603684|0,u[eP])+R|0):eP<48?(N=eI,P=ex,D=eO,L=eT,F=eA,eS=f(N+((P|~D)^L)+i[o[eP]]+1859775393|0,c[eP])+F|0,z=eM,H=eR,G=eC,q=ej,W=eN,eE=f(z+((H|~G)^q)+i[s[eP]]+1836072691|0,u[eP])+W|0):eP<64?(Y=eI,J=ex,Z=eO,X=eT,$=eA,eS=f(Y+(J&X|Z&~X)+i[o[eP]]+2400959708|0,c[eP])+$|0,et=eM,er=eR,en=eC,ea=ej,ei=eN,eE=f(et+(er&en|~er&ea)+i[s[eP]]+2053994217|0,u[eP])+ei|0):(ec=eI,eu=ex,el=eO,ef=eT,ed=eA,eS=f(ec+(eu^(el|~ef))+i[o[eP]]+2840853838|0,c[eP])+ed|0,ev=eM,em=eR,eg=eC,eb=ej,ey=eN,eE=f(ev+(em^eg^eb)+i[s[eP]]+0|0,u[eP])+ey|0),eI=eA,eA=eT,eT=f(eO,10),eO=ex,ex=eS,eM=eN,eN=ej,ej=f(eC,10),eC=eR,eR=eE;var eD=this._b+eO+ej|0;this._b=this._c+eT+eN|0,this._c=this._d+eA+eM|0,this._d=this._e+eI+eR|0,this._e=this._a+ex+eC|0,this._a=eD},l.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=r.alloc?r.alloc(20):new r(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},t.exports=l}),W=p((e,t)=>{var r=_().Buffer;function n(e,t){this._block=r.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}n.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=r.from(e,t));for(var n=this._block,a=this._blockSize,i=e.length,o=this._len,s=0;s=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0;this._block.writeUInt32BE((r-n)/4294967296,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var a=this._hash();return e?a.toString(e):a},n.prototype._update=function(){throw Error("_update must be implemented by subclass")},t.exports=n}),K=p((e,t)=>{var r=S(),n=W(),a=_().Buffer,i=[1518500249,1859775393,-1894007588,-899497514],o=Array(80);function s(){this.init(),this._w=o,n.call(this,64,56)}r(s,n),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},s.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,a=0|this._c,o=0|this._d,s=0|this._e,c=0;c<16;++c)t[c]=e.readInt32BE(4*c);for(;c<80;++c)t[c]=t[c-3]^t[c-8]^t[c-14]^t[c-16];for(var u=0;u<80;++u){var l,f,d,h,p,v=~~(u/20),m=((l=r)<<5|l>>>27)+(f=n,d=a,h=o,0===v?f&d|~f&h:2===v?f&d|f&h|d&h:f^d^h)+s+t[u]+i[v]|0;s=o,o=a,a=(p=n)<<30|p>>>2,n=r,r=m}this._a=r+this._a|0,this._b=n+this._b|0,this._c=a+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0},s.prototype._hash=function(){var e=a.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=s}),V=p((e,t)=>{var r=S(),n=W(),a=_().Buffer,i=[1518500249,1859775393,-1894007588,-899497514],o=Array(80);function s(){this.init(),this._w=o,n.call(this,64,56)}r(s,n),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},s.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,a=0|this._c,o=0|this._d,s=0|this._e,c=0;c<16;++c)t[c]=e.readInt32BE(4*c);for(;c<80;++c)t[c]=(l=t[c-3]^t[c-8]^t[c-14]^t[c-16])<<1|l>>>31;for(var u=0;u<80;++u){var l,f,d,h,p,v,m=~~(u/20),g=((f=r)<<5|f>>>27)+(d=n,h=a,p=o,0===m?d&h|~d&p:2===m?d&h|d&p|h&p:d^h^p)+s+t[u]+i[m]|0;s=o,o=a,a=(v=n)<<30|v>>>2,n=r,r=g}this._a=r+this._a|0,this._b=n+this._b|0,this._c=a+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0},s.prototype._hash=function(){var e=a.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=s}),Y=p((e,t)=>{var r=S(),n=W(),a=_().Buffer,i=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],o=Array(64);function s(){this.init(),this._w=o,n.call(this,64,56)}r(s,n),s.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},s.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,a=0|this._c,o=0|this._d,s=0|this._e,c=0|this._f,u=0|this._g,l=0|this._h,f=0;f<16;++f)t[f]=e.readInt32BE(4*f);for(;f<64;++f)t[f]=(((h=t[f-2])>>>17|h<<15)^(h>>>19|h<<13)^h>>>10)+t[f-7]+(((p=t[f-15])>>>7|p<<25)^(p>>>18|p<<14)^p>>>3)+t[f-16]|0;for(var d=0;d<64;++d){var h,p,v,m,g,b,y,_,w,S=l+(((v=s)>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7))+(m=s,g=c,(b=u)^m&(g^b))+i[d]+t[d]|0,E=(((y=r)>>>2|y<<30)^(y>>>13|y<<19)^(y>>>22|y<<10))+((_=r)&(w=n)|a&(_|w))|0;l=u,u=c,c=s,s=o+S|0,o=a,a=n,n=r,r=S+E|0}this._a=r+this._a|0,this._b=n+this._b|0,this._c=a+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0,this._f=c+this._f|0,this._g=u+this._g|0,this._h=l+this._h|0},s.prototype._hash=function(){var e=a.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},t.exports=s}),J=p((e,t)=>{var r=S(),n=Y(),a=W(),i=_().Buffer,o=Array(64);function s(){this.init(),this._w=o,a.call(this,64,56)}r(s,n),s.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},s.prototype._hash=function(){var e=i.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},t.exports=s}),Z=p((e,t)=>{var r=S(),n=W(),a=_().Buffer,i=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],o=Array(160);function s(){this.init(),this._w=o,n.call(this,128,112)}function c(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function u(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function l(e,t){return e>>>0>>0?1:0}r(s,n),s.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},s.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,a=0|this._ch,o=0|this._dh,s=0|this._eh,f=0|this._fh,d=0|this._gh,h=0|this._hh,p=0|this._al,v=0|this._bl,m=0|this._cl,g=0|this._dl,b=0|this._el,y=0|this._fl,_=0|this._gl,w=0|this._hl,S=0;S<32;S+=2)t[S]=e.readInt32BE(4*S),t[S+1]=e.readInt32BE(4*S+4);for(;S<160;S+=2){var E,k,I,x,O,T,A,M,R=t[S-30],C=t[S-30+1],j=((E=R)>>>1|(k=C)<<31)^(E>>>8|k<<24)^E>>>7,N=((I=C)>>>1|(x=R)<<31)^(I>>>8|x<<24)^(I>>>7|x<<25);R=t[S-4],C=t[S-4+1];var P=((O=R)>>>19|(T=C)<<13)^(T>>>29|O<<3)^O>>>6,D=((A=C)>>>19|(M=R)<<13)^(M>>>29|A<<3)^(A>>>6|M<<26),L=t[S-14],F=t[S-14+1],B=t[S-32],U=t[S-32+1],z=N+F|0,H=j+L+l(z,N)|0;H=(H=H+P+l(z=z+D|0,D)|0)+B+l(z=z+U|0,U)|0,t[S]=H,t[S+1]=z}for(var G=0;G<160;G+=2){H=t[G],z=t[G+1];var q,W,K,V,Y,J,Z,X,$,Q,ee=(q=r)&(W=n)|a&(q|W),et=(K=p)&(V=v)|m&(K|V),er=c(r,p),en=c(p,r),ea=u(s,b),ei=u(b,s),eo=i[G],es=i[G+1],ec=(Y=s,J=f,(Z=d)^Y&(J^Z)),eu=(X=b,$=y,(Q=_)^X&($^Q)),el=w+ei|0,ef=h+ea+l(el,w)|0;ef=(ef=(ef=ef+ec+l(el=el+eu|0,eu)|0)+eo+l(el=el+es|0,es)|0)+H+l(el=el+z|0,z)|0;var ed=en+et|0,eh=er+ee+l(ed,en)|0;h=d,w=_,d=f,_=y,f=s,y=b,s=o+ef+l(b=g+el|0,g)|0,o=a,g=m,a=n,m=v,n=r,v=p,r=ef+eh+l(p=el+ed|0,el)|0}this._al=this._al+p|0,this._bl=this._bl+v|0,this._cl=this._cl+m|0,this._dl=this._dl+g|0,this._el=this._el+b|0,this._fl=this._fl+y|0,this._gl=this._gl+_|0,this._hl=this._hl+w|0,this._ah=this._ah+r+l(this._al,p)|0,this._bh=this._bh+n+l(this._bl,v)|0,this._ch=this._ch+a+l(this._cl,m)|0,this._dh=this._dh+o+l(this._dl,g)|0,this._eh=this._eh+s+l(this._el,b)|0,this._fh=this._fh+f+l(this._fl,y)|0,this._gh=this._gh+d+l(this._gl,_)|0,this._hh=this._hh+h+l(this._hl,w)|0},s.prototype._hash=function(){var e=a.allocUnsafe(64);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},t.exports=s}),X=p((e,t)=>{var r=S(),n=Z(),a=W(),i=_().Buffer,o=Array(160);function s(){this.init(),this._w=o,a.call(this,128,112)}r(s,n),s.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},s.prototype._hash=function(){var e=i.allocUnsafe(48);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},t.exports=s}),$=p((e,t)=>{var e=t.exports=function(t){var r=e[t=t.toLowerCase()];if(!r)throw Error(t+" is not supported (we accept pull requests)");return new r};e.sha=K(),e.sha1=V(),e.sha224=J(),e.sha256=Y(),e.sha384=X(),e.sha512=Z()}),Q=p((e,t)=>{t.exports=n;var r=E().EventEmitter;function n(){r.call(this)}S()(n,r),n.Readable=L(),n.Writable=R(),n.Duplex=C(),n.Transform=F(),n.PassThrough=B(),n.finished=N(),n.pipeline=U(),n.Stream=n,n.prototype.pipe=function(e,t){var n=this;function a(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function i(){n.readable&&n.resume&&n.resume()}n.on("data",a),e.on("drain",i),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",c));var o=!1;function s(){o||(o=!0,e.end())}function c(){o||(o=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){if(l(),0===r.listenerCount(this,"error"))throw e}function l(){n.removeListener("data",a),e.removeListener("drain",i),n.removeListener("end",s),n.removeListener("close",c),n.removeListener("error",u),e.removeListener("error",u),n.removeListener("end",l),n.removeListener("close",l),e.removeListener("close",l)}return n.on("error",u),e.on("error",u),n.on("end",l),n.on("close",l),e.on("close",l),e.emit("pipe",n),e}}),ee=p((e,t)=>{var r=_().Buffer,n=Q().Transform,a=j().StringDecoder;function i(e){n.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}S()(i,n),i.prototype.update=function(e,t,n){"string"==typeof e&&(e=r.from(e,t));var a=this._update(e);return this.hashMode?this:(n&&(a=this._toString(a,n)),a)},i.prototype.setAutoPadding=function(){},i.prototype.getAuthTag=function(){throw Error("trying to get auth tag in unsupported state")},i.prototype.setAuthTag=function(){throw Error("trying to set auth tag in unsupported state")},i.prototype.setAAD=function(){throw Error("trying to set aad in unsupported state")},i.prototype._transform=function(e,t,r){var n;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){n=e}finally{r(n)}},i.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},i.prototype._finalOrDigest=function(e){var t=this.__final()||r.alloc(0);return e&&(t=this._toString(t,e,!0)),t},i.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new a(t),this._encoding=t),this._encoding!==t)throw Error("can't switch encodings");var n=this._decoder.write(e);return r&&(n+=this._decoder.end()),n},t.exports=i}),et=p((e,t)=>{var r=S(),n=G(),a=q(),i=$(),o=ee();function s(e){o.call(this,"digest"),this._hash=e}r(s,o),s.prototype._update=function(e){this._hash.update(e)},s.prototype._final=function(){return this._hash.digest()},t.exports=function(e){return"md5"===(e=e.toLowerCase())?new n:"rmd160"===e||"ripemd160"===e?new a:new s(i(e))}}),er=p((e,t)=>{var r=S(),n=_().Buffer,a=ee(),i=n.alloc(128);function o(e,t){a.call(this,"digest"),"string"==typeof t&&(t=n.from(t)),this._alg=e,this._key=t,t.length>64?t=e(t):t.length<64&&(t=n.concat([t,i],64));for(var r=this._ipad=n.allocUnsafe(64),o=this._opad=n.allocUnsafe(64),s=0;s<64;s++)r[s]=54^t[s],o[s]=92^t[s];this._hash=[r]}r(o,a),o.prototype._update=function(e){this._hash.push(e)},o.prototype._final=function(){var e=this._alg(n.concat(this._hash));return this._alg(n.concat([this._opad,e]))},t.exports=o}),en=p((e,t)=>{var r=G();t.exports=function(e){return new r().update(e).digest()}}),ea=p((e,t)=>{var r=S(),n=er(),a=ee(),i=_().Buffer,o=en(),s=q(),c=$(),u=i.alloc(128);function l(e,t){a.call(this,"digest"),"string"==typeof t&&(t=i.from(t));var r="sha512"===e||"sha384"===e?128:64;(this._alg=e,this._key=t,t.length>r)?t=("rmd160"===e?new s:c(e)).update(t).digest():t.length{t.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}}),eo=p((e,t)=>{t.exports=ei()}),es=p((e,t)=>{t.exports=function(e,t){if("number"!=typeof e)throw TypeError("Iterations not a number");if(e<0)throw TypeError("Bad iterations");if("number"!=typeof t)throw TypeError("Key length not a number");if(t<0||t>1073741823||t!=t)throw TypeError("Bad key length")}}),ec=p((e,t)=>{var r;r=i.process&&i.process.browser?"utf-8":i.process&&i.process.version?parseInt(o.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":"utf-8",t.exports=r}),eu=p((e,t)=>{var r=_().Buffer;t.exports=function(e,t,n){if(r.isBuffer(e))return e;if("string"==typeof e)return r.from(e,t);if(ArrayBuffer.isView(e))return r.from(e.buffer);throw TypeError(n+" must be a string, a Buffer, a typed array or a DataView")}}),el=p((e,t)=>{var r=en(),n=q(),a=$(),i=_().Buffer,o=es(),s=ec(),c=eu(),u=i.alloc(128),l={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function f(e,t,o){var s="rmd160"===e||"ripemd160"===e?function(e){return new n().update(e).digest()}:"md5"===e?r:function(t){return a(e).update(t).digest()},c="sha512"===e||"sha384"===e?128:64;t.length>c?t=s(t):t.length{var r,n,a=_().Buffer,o=es(),s=ec(),c=el(),u=eu(),l=i.crypto&&i.crypto.subtle,f={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},d=[];function h(){return r||(r=i.process&&i.process.nextTick?i.process.nextTick:i.queueMicrotask?i.queueMicrotask:i.setImmediate?i.setImmediate:i.setTimeout)}function p(e,t,r,n,i){return l.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then(function(e){return l.deriveBits({name:"PBKDF2",salt:t,iterations:r,hash:{name:i}},e,n<<3)}).then(function(e){return a.from(e)})}t.exports=function(e,t,r,v,m,g){"function"==typeof m&&(g=m,m=void 0);var b=f[(m=m||"sha1").toLowerCase()];if(!b||"function"!=typeof i.Promise){h()(function(){var n;try{n=c(e,t,r,v,m)}catch(e){return g(e)}g(null,n)});return}if(o(r,v),e=u(e,s,"Password"),t=u(t,s,"Salt"),"function"!=typeof g)throw Error("No callback provided to pbkdf2");!function(e,t){e.then(function(e){h()(function(){t(null,e)})},function(e){h()(function(){t(e)})})}((function(e){if(i.process&&!i.process.browser||!l||!l.importKey||!l.deriveBits)return Promise.resolve(!1);if(void 0!==d[e])return d[e];var t=p(n=n||a.alloc(8),n,10,128,e).then(function(){return!0}).catch(function(){return!1});return d[e]=t,t})(b).then(function(n){return n?p(e,t,r,v,b):c(e,t,r,v,m)}),g)}}),ed=p(e=>{e.pbkdf2=ef(),e.pbkdf2Sync=el()}),eh=p(e=>{e.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},e.writeUInt32BE=function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},e.ip=function(e,t,r,n){for(var a=0,i=0,o=6;o>=0;o-=2){for(var s=0;s<=24;s+=8)a<<=1,a|=t>>>s+o&1;for(var s=0;s<=24;s+=8)a<<=1,a|=e>>>s+o&1}for(var o=6;o>=0;o-=2){for(var s=1;s<=25;s+=8)i<<=1,i|=t>>>s+o&1;for(var s=1;s<=25;s+=8)i<<=1,i|=e>>>s+o&1}r[n+0]=a>>>0,r[n+1]=i>>>0},e.rip=function(e,t,r,n){for(var a=0,i=0,o=0;o<4;o++)for(var s=24;s>=0;s-=8)a<<=1,a|=t>>>s+o&1,a<<=1,a|=e>>>s+o&1;for(var o=4;o<8;o++)for(var s=24;s>=0;s-=8)i<<=1,i|=t>>>s+o&1,i<<=1,i|=e>>>s+o&1;r[n+0]=a>>>0,r[n+1]=i>>>0},e.pc1=function(e,t,r,n){for(var a=0,i=0,o=7;o>=5;o--){for(var s=0;s<=24;s+=8)a<<=1,a|=t>>s+o&1;for(var s=0;s<=24;s+=8)a<<=1,a|=e>>s+o&1}for(var s=0;s<=24;s+=8)a<<=1,a|=t>>s+o&1;for(var o=1;o<=3;o++){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+o&1;for(var s=0;s<=24;s+=8)i<<=1,i|=e>>s+o&1}for(var s=0;s<=24;s+=8)i<<=1,i|=e>>s+o&1;r[n+0]=a>>>0,r[n+1]=i>>>0},e.r28shl=function(e,t){return e<>>28-t};var t=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];e.pc2=function(e,r,n,a){for(var i=0,o=0,s=t.length>>>1,c=0;c>>t[c]&1;for(var c=s;c>>t[c]&1;n[a+0]=i>>>0,n[a+1]=o>>>0},e.expand=function(e,t,r){var n=0,a=0;n=(1&e)<<5|e>>>27;for(var i=23;i>=15;i-=4)n<<=6,n|=e>>>i&63;for(var i=11;i>=3;i-=4)a|=e>>>i&63,a<<=6;a|=(31&e)<<1|e>>>31,t[r+0]=n>>>0,t[r+1]=a>>>0};var r=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];e.substitute=function(e,t){for(var n=0,a=0;a<4;a++){var i=e>>>18-6*a&63,o=r[64*a+i];n<<=4,n|=o}for(var a=0;a<4;a++){var i=t>>>18-6*a&63,o=r[256+64*a+i];n<<=4,n|=o}return n>>>0};var n=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];e.permute=function(e){for(var t=0,r=0;r>>n[r]&1;return t>>>0},e.padSplit=function(e,t,r){for(var n=e.toString(2);n.length{function r(e,t){if(!e)throw Error(t||"Assertion failed")}t.exports=r,r.equal=function(e,t,r){if(e!=t)throw Error(r||"Assertion failed: "+e+" != "+t)}}),ev=p((e,t)=>{var r=ep();function n(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=Array(this.blockSize),this.bufferOff=0}t.exports=n,n.prototype._init=function(){},n.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},n.prototype._buffer=function(e,t){for(var r=Math.min(this.buffer.length-this.bufferOff,e.length-t),n=0;n0;n--)t+=this._buffer(e,t),r+=this._flushBuffer(a,r);return t+=this._buffer(e,t),a},n.prototype.final=function(e){var t,r;return e&&(t=this.update(e)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(r):r},n.prototype._pad=function(e,t){if(0===t)return!1;for(;t{var r=ep(),n=S(),a=eh(),i=ev();function o(){this.tmp=[,,],this.keys=null}function s(e){i.call(this,e);var t=new o;this._desState=t,this.deriveKeys(t,e.key)}n(s,i),t.exports=s,s.create=function(e){return new s(e)};var c=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];s.prototype.deriveKeys=function(e,t){e.keys=Array(32),r.equal(t.length,this.blockSize,"Invalid key length");var n=a.readUInt32BE(t,0),i=a.readUInt32BE(t,4);a.pc1(n,i,e.tmp,0),n=e.tmp[0],i=e.tmp[1];for(var o=0;o>>1];n=a.r28shl(n,s),i=a.r28shl(i,s),a.pc2(n,i,e.keys,o)}},s.prototype._update=function(e,t,r,n){var i=this._desState,o=a.readUInt32BE(e,t),s=a.readUInt32BE(e,t+4);a.ip(o,s,i.tmp,0),o=i.tmp[0],s=i.tmp[1],"encrypt"===this.type?this._encrypt(i,o,s,i.tmp,0):this._decrypt(i,o,s,i.tmp,0),o=i.tmp[0],s=i.tmp[1],a.writeUInt32BE(r,o,n),a.writeUInt32BE(r,s,n+4)},s.prototype._pad=function(e,t){for(var r=e.length-t,n=t;n>>0,o=h}a.rip(s,o,n,i)},s.prototype._decrypt=function(e,t,r,n,i){for(var o=r,s=t,c=e.keys.length-2;c>=0;c-=2){var u=e.keys[c],l=e.keys[c+1];a.expand(o,e.tmp,0),u^=e.tmp[0],l^=e.tmp[1];var f=a.substitute(u,l),d=a.permute(f),h=o;o=(s^d)>>>0,s=h}a.rip(o,s,n,i)}}),eg=p(e=>{var t=ep(),r=S(),n={};function a(e){t.equal(e.length,8,"Invalid IV length"),this.iv=Array(8);for(var r=0;r{var r=ep(),n=S(),a=ev(),i=em();function o(e,t){r.equal(t.length,24,"Invalid key length");var n=t.slice(0,8),a=t.slice(8,16),o=t.slice(16,24);"encrypt"===e?this.ciphers=[i.create({type:"encrypt",key:n}),i.create({type:"decrypt",key:a}),i.create({type:"encrypt",key:o})]:this.ciphers=[i.create({type:"decrypt",key:o}),i.create({type:"encrypt",key:a}),i.create({type:"decrypt",key:n})]}function s(e){a.call(this,e);var t=new o(this.type,this.options.key);this._edeState=t}n(s,a),t.exports=s,s.create=function(e){return new s(e)},s.prototype._update=function(e,t,r,n){var a=this._edeState;a.ciphers[0]._update(e,t,r,n),a.ciphers[1]._update(r,n,r,n),a.ciphers[2]._update(r,n,r,n)},s.prototype._pad=i.prototype._pad,s.prototype._unpad=i.prototype._unpad}),ey=p(e=>{e.utils=eh(),e.Cipher=ev(),e.DES=em(),e.CBC=eg(),e.EDE=eb()}),e_=p((e,t)=>{var r=ee(),n=ey(),a=S(),i=_().Buffer,o={"des-ede3-cbc":n.CBC.instantiate(n.EDE),"des-ede3":n.EDE,"des-ede-cbc":n.CBC.instantiate(n.EDE),"des-ede":n.EDE,"des-cbc":n.CBC.instantiate(n.DES),"des-ecb":n.DES};function s(e){r.call(this);var t,n=e.mode.toLowerCase(),a=o[n];t=e.decrypt?"decrypt":"encrypt";var s=e.key;i.isBuffer(s)||(s=i.from(s)),("des-ede"===n||"des-ede-cbc"===n)&&(s=i.concat([s,s.slice(0,8)]));var c=e.iv;i.isBuffer(c)||(c=i.from(c)),this._des=a.create({key:s,iv:c,type:t})}o.des=o["des-cbc"],o.des3=o["des-ede3-cbc"],t.exports=s,a(s,r),s.prototype._update=function(e){return i.from(this._des.update(e))},s.prototype._final=function(){return i.from(this._des.final())}}),ew=p(e=>{e.encrypt=function(e,t){return e._cipher.encryptBlock(t)},e.decrypt=function(e,t){return e._cipher.decryptBlock(t)}}),eS=p((e,t)=>{t.exports=function(e,t){for(var r=Math.min(e.length,t.length),n=new s(r),a=0;a{var t=eS();e.encrypt=function(e,r){var n=t(r,e._prev);return e._prev=e._cipher.encryptBlock(n),e._prev},e.decrypt=function(e,r){var n=e._prev;return e._prev=r,t(e._cipher.decryptBlock(r),n)}}),ek=p(e=>{var t=_().Buffer,r=eS();function n(e,n,a){var i=n.length,o=r(n,e._cache);return e._cache=e._cache.slice(i),e._prev=t.concat([e._prev,a?n:o]),o}e.encrypt=function(e,r,a){for(var i,o=t.allocUnsafe(0);r.length;)if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=t.allocUnsafe(0)),e._cache.length<=r.length)i=e._cache.length,o=t.concat([o,n(e,r.slice(0,i),a)]),r=r.slice(i);else{o=t.concat([o,n(e,r,a)]);break}return o}}),eI=p(e=>{var t=_().Buffer;e.encrypt=function(e,r,n){for(var a=r.length,i=t.allocUnsafe(a),o=-1;++o{var t=_().Buffer;e.encrypt=function(e,r,n){for(var a=r.length,i=t.allocUnsafe(a),o=-1;++o>s%8,e._prev=function(e,r){var n=e.length,a=-1,i=t.allocUnsafe(e.length);for(e=t.concat([e,t.from([r])]);++a>7;return i}(e._prev,n?i:o);return c}(e,r[o],n);return i}}),eO=p(e=>{var t=eS();e.encrypt=function(e,r){for(;e._cache.length{t.exports=function(e){for(var t,r=e.length;r--;)if(255===(t=e.readUInt8(r)))e.writeUInt8(0,r);else{t++,e.writeUInt8(t,r);break}}}),eA=p(e=>{var t=eS(),r=_().Buffer,n=eT();e.encrypt=function(e,a){var i=Math.ceil(a.length/16),o=e._cache.length;e._cache=r.concat([e._cache,r.allocUnsafe(16*i)]);for(var s=0;s{t.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}}),eR=p((e,t)=>{var r,n={ECB:ew(),CBC:eE(),CFB:ek(),CFB8:eI(),CFB1:ex(),OFB:eO(),CTR:eA(),GCM:eA()},a=eM();for(r in a)a[r].module=n[a[r].mode];t.exports=a}),eC=p((e,t)=>{var r=_().Buffer;function n(e){r.isBuffer(e)||(e=r.from(e));for(var t=e.length/4|0,n=Array(t),a=0;a>>24]^l[p>>>16&255]^f[v>>>8&255]^d[255&m]^t[g++],o=u[p>>>24]^l[v>>>16&255]^f[m>>>8&255]^d[255&h]^t[g++],s=u[v>>>24]^l[m>>>16&255]^f[h>>>8&255]^d[255&p]^t[g++],c=u[m>>>24]^l[h>>>16&255]^f[p>>>8&255]^d[255&v]^t[g++],h=i,p=o,v=s,m=c;return i=(n[h>>>24]<<24|n[p>>>16&255]<<16|n[v>>>8&255]<<8|n[255&m])^t[g++],o=(n[p>>>24]<<24|n[v>>>16&255]<<16|n[m>>>8&255]<<8|n[255&h])^t[g++],[i>>>=0,o>>>=0,s=((n[v>>>24]<<24|n[m>>>16&255]<<16|n[h>>>8&255]<<8|n[255&p])^t[g++])>>>0,c=((n[m>>>24]<<24|n[h>>>16&255]<<16|n[p>>>8&255]<<8|n[255&v])^t[g++])>>>0]}var o=[0,1,2,4,8,16,32,64,128,27,54],s=function(){for(var e=Array(256),t=0;t<256;t++)t<128?e[t]=t<<1:e[t]=t<<1^283;for(var r=[],n=[],a=[[],[],[],[]],i=[[],[],[],[]],o=0,s=0,c=0;c<256;++c){var u=s^s<<1^s<<2^s<<3^s<<4;u=u>>>8^255&u^99,r[o]=u,n[u]=o;var l=e[o],f=e[l],d=e[f],h=257*e[u]^16843008*u;a[0][o]=h<<24|h>>>8,a[1][o]=h<<16|h>>>16,a[2][o]=h<<8|h>>>24,a[3][o]=h,h=16843009*d^65537*f^257*l^16843008*o,i[0][u]=h<<24|h>>>8,i[1][u]=h<<16|h>>>16,i[2][u]=h<<8|h>>>24,i[3][u]=h,0===o?o=s=1:(o=l^e[e[e[d^l]]],s^=e[e[s]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:a,INV_SUB_MIX:i}}();function c(e){this._key=n(e),this._reset()}c.blockSize=16,c.keySize=32,c.prototype.blockSize=c.blockSize,c.prototype.keySize=c.keySize,c.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,n=(r+1)*4,a=[],i=0;i>>24,c=(s.SBOX[c>>>24]<<24|s.SBOX[c>>>16&255]<<16|s.SBOX[c>>>8&255]<<8|s.SBOX[255&c])^o[i/t|0]<<24):t>6&&i%t==4&&(c=s.SBOX[c>>>24]<<24|s.SBOX[c>>>16&255]<<16|s.SBOX[c>>>8&255]<<8|s.SBOX[255&c]),a[i]=a[i-t]^c}for(var u=[],l=0;l>>24]]^s.INV_SUB_MIX[1][s.SBOX[d>>>16&255]]^s.INV_SUB_MIX[2][s.SBOX[d>>>8&255]]^s.INV_SUB_MIX[3][s.SBOX[255&d]]}this._nRounds=r,this._keySchedule=a,this._invKeySchedule=u},c.prototype.encryptBlockRaw=function(e){return i(e=n(e),this._keySchedule,s.SUB_MIX,s.SBOX,this._nRounds)},c.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),n=r.allocUnsafe(16);return n.writeUInt32BE(t[0],0),n.writeUInt32BE(t[1],4),n.writeUInt32BE(t[2],8),n.writeUInt32BE(t[3],12),n},c.prototype.decryptBlock=function(e){var t=(e=n(e))[1];e[1]=e[3],e[3]=t;var a=i(e,this._invKeySchedule,s.INV_SUB_MIX,s.INV_SBOX,this._nRounds),o=r.allocUnsafe(16);return o.writeUInt32BE(a[0],0),o.writeUInt32BE(a[3],4),o.writeUInt32BE(a[2],8),o.writeUInt32BE(a[1],12),o},c.prototype.scrub=function(){a(this._keySchedule),a(this._invKeySchedule),a(this._key)},t.exports.AES=c}),ej=p((e,t)=>{var r=_().Buffer,n=r.alloc(16,0);function a(e){var t=r.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function i(e){this.h=e,this.state=r.alloc(16,0),this.cache=r.allocUnsafe(0)}i.prototype.ghash=function(e){for(var t=-1;++t0;t--)n[t]=n[t]>>>1|(1&n[t-1])<<31;n[0]=n[0]>>>1,r&&(n[0]=-520093696^n[0])}this.state=a(i)},i.prototype.update=function(e){this.cache=r.concat([this.cache,e]);for(var t;this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},i.prototype.final=function(e,t){return this.cache.length&&this.ghash(r.concat([this.cache,n],16)),this.ghash(a([0,e,0,t])),this.state},t.exports=i}),eN=p((e,t)=>{var r=eC(),n=_().Buffer,a=ee(),i=S(),o=ej(),s=eS(),c=eT();function u(e,t,i,s){a.call(this);var u=n.alloc(4,0);this._cipher=new r.AES(t);var l=this._cipher.encryptBlock(u);this._ghash=new o(l),i=function(e,t,r){if(12===t.length)return e._finID=n.concat([t,n.from([0,0,0,1])]),n.concat([t,n.from([0,0,0,2])]);var a=new o(r),i=t.length,s=i%16;a.update(t),s&&(s=16-s,a.update(n.alloc(s,0))),a.update(n.alloc(8,0));var u=n.alloc(8);u.writeUIntBE(8*i,0,8),a.update(u),e._finID=a.state;var l=n.from(e._finID);return c(l),l}(this,i,l),this._prev=n.from(i),this._cache=n.allocUnsafe(0),this._secCache=n.allocUnsafe(0),this._decrypt=s,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}i(u,a),u.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=n.alloc(t,0),this._ghash.update(t))}this._called=!0;var r=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(r),this._len+=e.length,r},u.prototype._final=function(){if(this._decrypt&&!this._authTag)throw Error("Unsupported state or unable to authenticate data");var e=s(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(e,t){var r=0;e.length!==t.length&&r++;for(var n=Math.min(e.length,t.length),a=0;a{var r=eC(),n=_().Buffer,a=ee();function i(e,t,i,o){a.call(this),this._cipher=new r.AES(t),this._prev=n.from(i),this._cache=n.allocUnsafe(0),this._secCache=n.allocUnsafe(0),this._decrypt=o,this._mode=e}S()(i,a),i.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},i.prototype._final=function(){this._cipher.scrub()},t.exports=i}),eD=p((e,t)=>{var r=_().Buffer,n=G();t.exports=function(e,t,a,i){if(r.isBuffer(e)||(e=r.from(e,"binary")),t&&(r.isBuffer(t)||(t=r.from(t,"binary")),8!==t.length))throw RangeError("salt should be Buffer with 8 byte length");for(var o=a/8,s=r.alloc(o),c=r.alloc(i||0),u=r.alloc(0);o>0||i>0;){var l=new n;l.update(u),l.update(e),t&&l.update(t),u=l.digest();var f=0;if(o>0){var d=s.length-o;f=Math.min(o,u.length),u.copy(s,d,0,f),o-=f}if(f0){var h=c.length-i,p=Math.min(i,u.length-f);u.copy(c,h,f,f+p),i-=p}}return u.fill(0),{key:s,iv:c}}}),eL=p(e=>{var t=eR(),r=eN(),n=_().Buffer,a=eP(),i=ee(),o=eC(),s=eD();function c(e,t,r){i.call(this),this._cache=new l,this._cipher=new o.AES(t),this._prev=n.from(r),this._mode=e,this._autopadding=!0}S()(c,i),c.prototype._update=function(e){this._cache.add(e);for(var t,r,a=[];t=this._cache.get();)r=this._mode.encrypt(this,t),a.push(r);return n.concat(a)};var u=n.alloc(16,16);function l(){this.cache=n.allocUnsafe(0)}function f(e,i,o){var s=t[e.toLowerCase()];if(!s)throw TypeError("invalid suite type");if("string"==typeof i&&(i=n.from(i)),i.length!==s.key/8)throw TypeError("invalid key length "+i.length);if("string"==typeof o&&(o=n.from(o)),"GCM"!==s.mode&&o.length!==s.iv)throw TypeError("invalid iv length "+o.length);return"stream"===s.type?new a(s.module,i,o):"auth"===s.type?new r(s.module,i,o):new c(s.module,i,o)}c.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(u))throw this._cipher.scrub(),Error("data not multiple of block length")},c.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},l.prototype.add=function(e){this.cache=n.concat([this.cache,e])},l.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},l.prototype.flush=function(){for(var e=16-this.cache.length,t=n.allocUnsafe(e),r=-1;++r{var t=eN(),r=_().Buffer,n=eR(),a=eP(),i=ee(),o=eC(),s=eD();function c(e,t,n){i.call(this),this._cache=new u,this._last=void 0,this._cipher=new o.AES(t),this._prev=r.from(n),this._mode=e,this._autopadding=!0}function u(){this.cache=r.allocUnsafe(0)}function l(e,i,o){var s=n[e.toLowerCase()];if(!s)throw TypeError("invalid suite type");if("string"==typeof o&&(o=r.from(o)),"GCM"!==s.mode&&o.length!==s.iv)throw TypeError("invalid iv length "+o.length);if("string"==typeof i&&(i=r.from(i)),i.length!==s.key/8)throw TypeError("invalid key length "+i.length);return"stream"===s.type?new a(s.module,i,o,!0):"auth"===s.type?new t(s.module,i,o,!0):new c(s.module,i,o)}S()(c,i),c.prototype._update=function(e){this._cache.add(e);for(var t,n,a=[];t=this._cache.get(this._autopadding);)n=this._mode.decrypt(this,t),a.push(n);return r.concat(a)},c.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||t>16)throw Error("unable to decrypt data");for(var r=-1;++r16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},u.prototype.flush=function(){if(this.cache.length)return this.cache},e.createDecipher=function(e,t){var r=n[e.toLowerCase()];if(!r)throw TypeError("invalid suite type");var a=s(t,!1,r.key,r.iv);return l(e,a.key,a.iv)},e.createDecipheriv=l}),eB=p(e=>{var t=eL(),r=eF(),n=eM();e.createCipher=e.Cipher=t.createCipher,e.createCipheriv=e.Cipheriv=t.createCipheriv,e.createDecipher=e.Decipher=r.createDecipher,e.createDecipheriv=e.Decipheriv=r.createDecipheriv,e.listCiphers=e.getCiphers=function(){return Object.keys(n)}}),eU=p(e=>{e["des-ecb"]={key:8,iv:0},e["des-cbc"]=e.des={key:8,iv:8},e["des-ede3-cbc"]=e.des3={key:24,iv:8},e["des-ede3"]={key:24,iv:0},e["des-ede-cbc"]={key:16,iv:8},e["des-ede"]={key:16,iv:0}}),ez=p(e=>{var t=e_(),r=eB(),n=eR(),a=eU(),i=eD();function o(e,i,o){if(n[e=e.toLowerCase()])return r.createCipheriv(e,i,o);if(a[e])return new t({key:i,iv:o,mode:e});throw TypeError("invalid suite type")}function s(e,i,o){if(n[e=e.toLowerCase()])return r.createDecipheriv(e,i,o);if(a[e])return new t({key:i,iv:o,mode:e,decrypt:!0});throw TypeError("invalid suite type")}e.createCipher=e.Cipher=function(e,t){if(n[e=e.toLowerCase()])r=n[e].key,s=n[e].iv;else if(a[e])r=8*a[e].key,s=a[e].iv;else throw TypeError("invalid suite type");var r,s,c=i(t,!1,r,s);return o(e,c.key,c.iv)},e.createCipheriv=e.Cipheriv=o,e.createDecipher=e.Decipher=function(e,t){if(n[e=e.toLowerCase()])r=n[e].key,o=n[e].iv;else if(a[e])r=8*a[e].key,o=a[e].iv;else throw TypeError("invalid suite type");var r,o,c=i(t,!1,r,o);return s(e,c.key,c.iv)},e.createDecipheriv=e.Decipheriv=s,e.listCiphers=e.getCiphers=function(){return Object.keys(a).concat(r.getCiphers())}}),eH=p(()=>{}),eG=p((e,t)=>{!function(e,t){function r(e,t){if(!e)throw Error(t||"Assertion failed")}function n(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function a(e,t,r){if(a.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&(("le"===t||"be"===t)&&(r=t,t=10),this._init(e||0,t||10,r||"be"))}"object"==typeof e?e.exports=a:t.BN=a,a.BN=a,a.wordSize=26;try{c="u">typeof window&&"u">typeof window.Buffer?window.Buffer:eH().Buffer}catch(e){}function i(e,t){var r=e.charCodeAt(t);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function o(e,t,r){var n=i(e,r);return r-1>=t&&(n|=i(e,r-1)<<4),n}function s(e,t,r,n){for(var a=0,i=Math.min(e.length,r),o=t;o=49?a+=s-49+10:s>=17?a+=s-17+10:a+=s}return a}a.isBN=function(e){return e instanceof a||null!==e&&"object"==typeof e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return 0>e.cmp(t)?e:t},a.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var a=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(a++,this.negative=1),a=0;a-=3)o=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[i]|=o<>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);else if("le"===n)for(a=0,i=0;a>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);return this.strip()},a.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var n=0;n=t;n-=2)a=o(e,t,n)<=18?(i-=18,s+=1,this.words[s]|=a>>>26):i+=8;else for(n=(e.length-t)%2==0?t+1:t;n=18?(i-=18,s+=1,this.words[s]|=a>>>26):i+=8;this.strip()},a.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,a=1;a<=67108863;a*=t)n++;n--,a=a/t|0;for(var i=e.length-r,o=i%n,c=Math.min(i,i-o)+r,u=0,l=r;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var c,u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function d(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var a=0|e.words[0],i=0|t.words[0],o=a*i,s=67108863&o,c=o/67108864|0;r.words[0]=s;for(var u=1;u>>26,f=67108863&c,d=Math.min(u,t.length-1),h=Math.max(0,u-e.length+1);h<=d;h++){var p=u-h|0;l+=(o=(a=0|e.words[p])*(i=0|t.words[h])+f)/67108864|0,f=67108863&o}r.words[u]=0|f,c=0|l}return 0!==c?r.words[u]=0|c:r.length--,r.strip()}a.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var n,a=0,i=0,o=0;o>>24-a&16777215)||o!==this.length-1?u[6-c.length]+c+n:c+n,(a+=2)>=26&&(a-=26,o--)}for(0!==i&&(n=i.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var d=l[e],h=f[e];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var v=p.modn(h).toString(e);n=(p=p.idivn(h)).isZero()?v+n:u[d-v.length]+v+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return r("u">typeof c),this.toArrayLike(c,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,n){var a=this.byteLength(),i=n||Math.max(1,a);r(a<=i,"byte array longer than desired length"),r(i>0,"Requested array length <= 0"),this.strip();var o,s,c=new e(i),u=this.clone();if("le"===t){for(s=0;!u.isZero();s++)o=u.andln(255),u.iushrn(8),c[s]=o;for(;s=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},a.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 8191&t||(r+=13,t>>>=13),127&t||(r+=7,t>>>=7),15&t||(r+=4,t>>>=4),3&t||(r+=2,t>>>=2),1&t||r++,r},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var a=0;a0&&(this.words[a]=~this.words[a]&67108863>>26-n),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,a=e%26;return this._expand(n+1),t?this.words[n]=this.words[n]|1<e.length?(r=this,n=e):(r=e,n=this);for(var t,r,n,a=0,i=0;i>>26;for(;0!==a&&i>>26;if(this.length=r.length,0!==a)this.words[this.length]=a,this.length++;else if(r!==this)for(;ie.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,n=this.iadd(e);return e.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var a=this.cmp(e);if(0===a)return this.negative=0,this.length=1,this.words[0]=0,this;a>0?(t=this,r=e):(t=e,r=this);for(var i=0,o=0;o>26,this.words[o]=67108863&n;for(;0!==i&&o>26,this.words[o]=67108863&n;if(0===i&&o>>13,h=0|o[1],p=8191&h,v=h>>>13,m=0|o[2],g=8191&m,b=m>>>13,y=0|o[3],_=8191&y,w=y>>>13,S=0|o[4],E=8191&S,k=S>>>13,I=0|o[5],x=8191&I,O=I>>>13,T=0|o[6],A=8191&T,M=T>>>13,R=0|o[7],C=8191&R,j=R>>>13,N=0|o[8],P=8191&N,D=N>>>13,L=0|o[9],F=8191&L,B=L>>>13,U=0|s[0],z=8191&U,H=U>>>13,G=0|s[1],q=8191&G,W=G>>>13,K=0|s[2],V=8191&K,Y=K>>>13,J=0|s[3],Z=8191&J,X=J>>>13,$=0|s[4],Q=8191&$,ee=$>>>13,et=0|s[5],er=8191&et,en=et>>>13,ea=0|s[6],ei=8191&ea,eo=ea>>>13,es=0|s[7],ec=8191&es,eu=es>>>13,el=0|s[8],ef=8191&el,ed=el>>>13,eh=0|s[9],ep=8191&eh,ev=eh>>>13;r.negative=e.negative^t.negative,r.length=19,n=Math.imul(f,z),a=(a=Math.imul(f,H))+Math.imul(d,z)|0,i=Math.imul(d,H);var em=(u+n|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(em>>>26)|0,em&=67108863,n=Math.imul(p,z),a=(a=Math.imul(p,H))+Math.imul(v,z)|0,i=Math.imul(v,H),n=n+Math.imul(f,q)|0,a=(a=a+Math.imul(f,W)|0)+Math.imul(d,q)|0,i=i+Math.imul(d,W)|0;var eg=(u+n|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(eg>>>26)|0,eg&=67108863,n=Math.imul(g,z),a=(a=Math.imul(g,H))+Math.imul(b,z)|0,i=Math.imul(b,H),n=n+Math.imul(p,q)|0,a=(a=a+Math.imul(p,W)|0)+Math.imul(v,q)|0,i=i+Math.imul(v,W)|0,n=n+Math.imul(f,V)|0,a=(a=a+Math.imul(f,Y)|0)+Math.imul(d,V)|0,i=i+Math.imul(d,Y)|0;var eb=(u+n|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(eb>>>26)|0,eb&=67108863,n=Math.imul(_,z),a=(a=Math.imul(_,H))+Math.imul(w,z)|0,i=Math.imul(w,H),n=n+Math.imul(g,q)|0,a=(a=a+Math.imul(g,W)|0)+Math.imul(b,q)|0,i=i+Math.imul(b,W)|0,n=n+Math.imul(p,V)|0,a=(a=a+Math.imul(p,Y)|0)+Math.imul(v,V)|0,i=i+Math.imul(v,Y)|0,n=n+Math.imul(f,Z)|0,a=(a=a+Math.imul(f,X)|0)+Math.imul(d,Z)|0,i=i+Math.imul(d,X)|0;var ey=(u+n|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(ey>>>26)|0,ey&=67108863,n=Math.imul(E,z),a=(a=Math.imul(E,H))+Math.imul(k,z)|0,i=Math.imul(k,H),n=n+Math.imul(_,q)|0,a=(a=a+Math.imul(_,W)|0)+Math.imul(w,q)|0,i=i+Math.imul(w,W)|0,n=n+Math.imul(g,V)|0,a=(a=a+Math.imul(g,Y)|0)+Math.imul(b,V)|0,i=i+Math.imul(b,Y)|0,n=n+Math.imul(p,Z)|0,a=(a=a+Math.imul(p,X)|0)+Math.imul(v,Z)|0,i=i+Math.imul(v,X)|0,n=n+Math.imul(f,Q)|0,a=(a=a+Math.imul(f,ee)|0)+Math.imul(d,Q)|0,i=i+Math.imul(d,ee)|0;var e_=(u+n|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(e_>>>26)|0,e_&=67108863,n=Math.imul(x,z),a=(a=Math.imul(x,H))+Math.imul(O,z)|0,i=Math.imul(O,H),n=n+Math.imul(E,q)|0,a=(a=a+Math.imul(E,W)|0)+Math.imul(k,q)|0,i=i+Math.imul(k,W)|0,n=n+Math.imul(_,V)|0,a=(a=a+Math.imul(_,Y)|0)+Math.imul(w,V)|0,i=i+Math.imul(w,Y)|0,n=n+Math.imul(g,Z)|0,a=(a=a+Math.imul(g,X)|0)+Math.imul(b,Z)|0,i=i+Math.imul(b,X)|0,n=n+Math.imul(p,Q)|0,a=(a=a+Math.imul(p,ee)|0)+Math.imul(v,Q)|0,i=i+Math.imul(v,ee)|0,n=n+Math.imul(f,er)|0,a=(a=a+Math.imul(f,en)|0)+Math.imul(d,er)|0,i=i+Math.imul(d,en)|0;var ew=(u+n|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(ew>>>26)|0,ew&=67108863,n=Math.imul(A,z),a=(a=Math.imul(A,H))+Math.imul(M,z)|0,i=Math.imul(M,H),n=n+Math.imul(x,q)|0,a=(a=a+Math.imul(x,W)|0)+Math.imul(O,q)|0,i=i+Math.imul(O,W)|0,n=n+Math.imul(E,V)|0,a=(a=a+Math.imul(E,Y)|0)+Math.imul(k,V)|0,i=i+Math.imul(k,Y)|0,n=n+Math.imul(_,Z)|0,a=(a=a+Math.imul(_,X)|0)+Math.imul(w,Z)|0,i=i+Math.imul(w,X)|0,n=n+Math.imul(g,Q)|0,a=(a=a+Math.imul(g,ee)|0)+Math.imul(b,Q)|0,i=i+Math.imul(b,ee)|0,n=n+Math.imul(p,er)|0,a=(a=a+Math.imul(p,en)|0)+Math.imul(v,er)|0,i=i+Math.imul(v,en)|0,n=n+Math.imul(f,ei)|0,a=(a=a+Math.imul(f,eo)|0)+Math.imul(d,ei)|0,i=i+Math.imul(d,eo)|0;var eS=(u+n|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(eS>>>26)|0,eS&=67108863,n=Math.imul(C,z),a=(a=Math.imul(C,H))+Math.imul(j,z)|0,i=Math.imul(j,H),n=n+Math.imul(A,q)|0,a=(a=a+Math.imul(A,W)|0)+Math.imul(M,q)|0,i=i+Math.imul(M,W)|0,n=n+Math.imul(x,V)|0,a=(a=a+Math.imul(x,Y)|0)+Math.imul(O,V)|0,i=i+Math.imul(O,Y)|0,n=n+Math.imul(E,Z)|0,a=(a=a+Math.imul(E,X)|0)+Math.imul(k,Z)|0,i=i+Math.imul(k,X)|0,n=n+Math.imul(_,Q)|0,a=(a=a+Math.imul(_,ee)|0)+Math.imul(w,Q)|0,i=i+Math.imul(w,ee)|0,n=n+Math.imul(g,er)|0,a=(a=a+Math.imul(g,en)|0)+Math.imul(b,er)|0,i=i+Math.imul(b,en)|0,n=n+Math.imul(p,ei)|0,a=(a=a+Math.imul(p,eo)|0)+Math.imul(v,ei)|0,i=i+Math.imul(v,eo)|0,n=n+Math.imul(f,ec)|0,a=(a=a+Math.imul(f,eu)|0)+Math.imul(d,ec)|0,i=i+Math.imul(d,eu)|0;var eE=(u+n|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(eE>>>26)|0,eE&=67108863,n=Math.imul(P,z),a=(a=Math.imul(P,H))+Math.imul(D,z)|0,i=Math.imul(D,H),n=n+Math.imul(C,q)|0,a=(a=a+Math.imul(C,W)|0)+Math.imul(j,q)|0,i=i+Math.imul(j,W)|0,n=n+Math.imul(A,V)|0,a=(a=a+Math.imul(A,Y)|0)+Math.imul(M,V)|0,i=i+Math.imul(M,Y)|0,n=n+Math.imul(x,Z)|0,a=(a=a+Math.imul(x,X)|0)+Math.imul(O,Z)|0,i=i+Math.imul(O,X)|0,n=n+Math.imul(E,Q)|0,a=(a=a+Math.imul(E,ee)|0)+Math.imul(k,Q)|0,i=i+Math.imul(k,ee)|0,n=n+Math.imul(_,er)|0,a=(a=a+Math.imul(_,en)|0)+Math.imul(w,er)|0,i=i+Math.imul(w,en)|0,n=n+Math.imul(g,ei)|0,a=(a=a+Math.imul(g,eo)|0)+Math.imul(b,ei)|0,i=i+Math.imul(b,eo)|0,n=n+Math.imul(p,ec)|0,a=(a=a+Math.imul(p,eu)|0)+Math.imul(v,ec)|0,i=i+Math.imul(v,eu)|0,n=n+Math.imul(f,ef)|0,a=(a=a+Math.imul(f,ed)|0)+Math.imul(d,ef)|0,i=i+Math.imul(d,ed)|0;var ek=(u+n|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(ek>>>26)|0,ek&=67108863,n=Math.imul(F,z),a=(a=Math.imul(F,H))+Math.imul(B,z)|0,i=Math.imul(B,H),n=n+Math.imul(P,q)|0,a=(a=a+Math.imul(P,W)|0)+Math.imul(D,q)|0,i=i+Math.imul(D,W)|0,n=n+Math.imul(C,V)|0,a=(a=a+Math.imul(C,Y)|0)+Math.imul(j,V)|0,i=i+Math.imul(j,Y)|0,n=n+Math.imul(A,Z)|0,a=(a=a+Math.imul(A,X)|0)+Math.imul(M,Z)|0,i=i+Math.imul(M,X)|0,n=n+Math.imul(x,Q)|0,a=(a=a+Math.imul(x,ee)|0)+Math.imul(O,Q)|0,i=i+Math.imul(O,ee)|0,n=n+Math.imul(E,er)|0,a=(a=a+Math.imul(E,en)|0)+Math.imul(k,er)|0,i=i+Math.imul(k,en)|0,n=n+Math.imul(_,ei)|0,a=(a=a+Math.imul(_,eo)|0)+Math.imul(w,ei)|0,i=i+Math.imul(w,eo)|0,n=n+Math.imul(g,ec)|0,a=(a=a+Math.imul(g,eu)|0)+Math.imul(b,ec)|0,i=i+Math.imul(b,eu)|0,n=n+Math.imul(p,ef)|0,a=(a=a+Math.imul(p,ed)|0)+Math.imul(v,ef)|0,i=i+Math.imul(v,ed)|0,n=n+Math.imul(f,ep)|0,a=(a=a+Math.imul(f,ev)|0)+Math.imul(d,ep)|0,i=i+Math.imul(d,ev)|0;var eI=(u+n|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(eI>>>26)|0,eI&=67108863,n=Math.imul(F,q),a=(a=Math.imul(F,W))+Math.imul(B,q)|0,i=Math.imul(B,W),n=n+Math.imul(P,V)|0,a=(a=a+Math.imul(P,Y)|0)+Math.imul(D,V)|0,i=i+Math.imul(D,Y)|0,n=n+Math.imul(C,Z)|0,a=(a=a+Math.imul(C,X)|0)+Math.imul(j,Z)|0,i=i+Math.imul(j,X)|0,n=n+Math.imul(A,Q)|0,a=(a=a+Math.imul(A,ee)|0)+Math.imul(M,Q)|0,i=i+Math.imul(M,ee)|0,n=n+Math.imul(x,er)|0,a=(a=a+Math.imul(x,en)|0)+Math.imul(O,er)|0,i=i+Math.imul(O,en)|0,n=n+Math.imul(E,ei)|0,a=(a=a+Math.imul(E,eo)|0)+Math.imul(k,ei)|0,i=i+Math.imul(k,eo)|0,n=n+Math.imul(_,ec)|0,a=(a=a+Math.imul(_,eu)|0)+Math.imul(w,ec)|0,i=i+Math.imul(w,eu)|0,n=n+Math.imul(g,ef)|0,a=(a=a+Math.imul(g,ed)|0)+Math.imul(b,ef)|0,i=i+Math.imul(b,ed)|0,n=n+Math.imul(p,ep)|0,a=(a=a+Math.imul(p,ev)|0)+Math.imul(v,ep)|0,i=i+Math.imul(v,ev)|0;var ex=(u+n|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(ex>>>26)|0,ex&=67108863,n=Math.imul(F,V),a=(a=Math.imul(F,Y))+Math.imul(B,V)|0,i=Math.imul(B,Y),n=n+Math.imul(P,Z)|0,a=(a=a+Math.imul(P,X)|0)+Math.imul(D,Z)|0,i=i+Math.imul(D,X)|0,n=n+Math.imul(C,Q)|0,a=(a=a+Math.imul(C,ee)|0)+Math.imul(j,Q)|0,i=i+Math.imul(j,ee)|0,n=n+Math.imul(A,er)|0,a=(a=a+Math.imul(A,en)|0)+Math.imul(M,er)|0,i=i+Math.imul(M,en)|0,n=n+Math.imul(x,ei)|0,a=(a=a+Math.imul(x,eo)|0)+Math.imul(O,ei)|0,i=i+Math.imul(O,eo)|0,n=n+Math.imul(E,ec)|0,a=(a=a+Math.imul(E,eu)|0)+Math.imul(k,ec)|0,i=i+Math.imul(k,eu)|0,n=n+Math.imul(_,ef)|0,a=(a=a+Math.imul(_,ed)|0)+Math.imul(w,ef)|0,i=i+Math.imul(w,ed)|0,n=n+Math.imul(g,ep)|0,a=(a=a+Math.imul(g,ev)|0)+Math.imul(b,ep)|0,i=i+Math.imul(b,ev)|0;var eO=(u+n|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(eO>>>26)|0,eO&=67108863,n=Math.imul(F,Z),a=(a=Math.imul(F,X))+Math.imul(B,Z)|0,i=Math.imul(B,X),n=n+Math.imul(P,Q)|0,a=(a=a+Math.imul(P,ee)|0)+Math.imul(D,Q)|0,i=i+Math.imul(D,ee)|0,n=n+Math.imul(C,er)|0,a=(a=a+Math.imul(C,en)|0)+Math.imul(j,er)|0,i=i+Math.imul(j,en)|0,n=n+Math.imul(A,ei)|0,a=(a=a+Math.imul(A,eo)|0)+Math.imul(M,ei)|0,i=i+Math.imul(M,eo)|0,n=n+Math.imul(x,ec)|0,a=(a=a+Math.imul(x,eu)|0)+Math.imul(O,ec)|0,i=i+Math.imul(O,eu)|0,n=n+Math.imul(E,ef)|0,a=(a=a+Math.imul(E,ed)|0)+Math.imul(k,ef)|0,i=i+Math.imul(k,ed)|0,n=n+Math.imul(_,ep)|0,a=(a=a+Math.imul(_,ev)|0)+Math.imul(w,ep)|0,i=i+Math.imul(w,ev)|0;var eT=(u+n|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(eT>>>26)|0,eT&=67108863,n=Math.imul(F,Q),a=(a=Math.imul(F,ee))+Math.imul(B,Q)|0,i=Math.imul(B,ee),n=n+Math.imul(P,er)|0,a=(a=a+Math.imul(P,en)|0)+Math.imul(D,er)|0,i=i+Math.imul(D,en)|0,n=n+Math.imul(C,ei)|0,a=(a=a+Math.imul(C,eo)|0)+Math.imul(j,ei)|0,i=i+Math.imul(j,eo)|0,n=n+Math.imul(A,ec)|0,a=(a=a+Math.imul(A,eu)|0)+Math.imul(M,ec)|0,i=i+Math.imul(M,eu)|0,n=n+Math.imul(x,ef)|0,a=(a=a+Math.imul(x,ed)|0)+Math.imul(O,ef)|0,i=i+Math.imul(O,ed)|0,n=n+Math.imul(E,ep)|0,a=(a=a+Math.imul(E,ev)|0)+Math.imul(k,ep)|0,i=i+Math.imul(k,ev)|0;var eA=(u+n|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(eA>>>26)|0,eA&=67108863,n=Math.imul(F,er),a=(a=Math.imul(F,en))+Math.imul(B,er)|0,i=Math.imul(B,en),n=n+Math.imul(P,ei)|0,a=(a=a+Math.imul(P,eo)|0)+Math.imul(D,ei)|0,i=i+Math.imul(D,eo)|0,n=n+Math.imul(C,ec)|0,a=(a=a+Math.imul(C,eu)|0)+Math.imul(j,ec)|0,i=i+Math.imul(j,eu)|0,n=n+Math.imul(A,ef)|0,a=(a=a+Math.imul(A,ed)|0)+Math.imul(M,ef)|0,i=i+Math.imul(M,ed)|0,n=n+Math.imul(x,ep)|0,a=(a=a+Math.imul(x,ev)|0)+Math.imul(O,ep)|0,i=i+Math.imul(O,ev)|0;var eM=(u+n|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(eM>>>26)|0,eM&=67108863,n=Math.imul(F,ei),a=(a=Math.imul(F,eo))+Math.imul(B,ei)|0,i=Math.imul(B,eo),n=n+Math.imul(P,ec)|0,a=(a=a+Math.imul(P,eu)|0)+Math.imul(D,ec)|0,i=i+Math.imul(D,eu)|0,n=n+Math.imul(C,ef)|0,a=(a=a+Math.imul(C,ed)|0)+Math.imul(j,ef)|0,i=i+Math.imul(j,ed)|0,n=n+Math.imul(A,ep)|0,a=(a=a+Math.imul(A,ev)|0)+Math.imul(M,ep)|0,i=i+Math.imul(M,ev)|0;var eR=(u+n|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(eR>>>26)|0,eR&=67108863,n=Math.imul(F,ec),a=(a=Math.imul(F,eu))+Math.imul(B,ec)|0,i=Math.imul(B,eu),n=n+Math.imul(P,ef)|0,a=(a=a+Math.imul(P,ed)|0)+Math.imul(D,ef)|0,i=i+Math.imul(D,ed)|0,n=n+Math.imul(C,ep)|0,a=(a=a+Math.imul(C,ev)|0)+Math.imul(j,ep)|0,i=i+Math.imul(j,ev)|0;var eC=(u+n|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(eC>>>26)|0,eC&=67108863,n=Math.imul(F,ef),a=(a=Math.imul(F,ed))+Math.imul(B,ef)|0,i=Math.imul(B,ed),n=n+Math.imul(P,ep)|0,a=(a=a+Math.imul(P,ev)|0)+Math.imul(D,ep)|0,i=i+Math.imul(D,ev)|0;var ej=(u+n|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(ej>>>26)|0,ej&=67108863,n=Math.imul(F,ep),a=(a=Math.imul(F,ev))+Math.imul(B,ep)|0,i=Math.imul(B,ev);var eN=(u+n|0)+((8191&a)<<13)|0;return u=(i+(a>>>13)|0)+(eN>>>26)|0,eN&=67108863,c[0]=em,c[1]=eg,c[2]=eb,c[3]=ey,c[4]=e_,c[5]=ew,c[6]=eS,c[7]=eE,c[8]=ek,c[9]=eI,c[10]=ex,c[11]=eO,c[12]=eT,c[13]=eA,c[14]=eM,c[15]=eR,c[16]=eC,c[17]=ej,c[18]=eN,0!==u&&(c[19]=u,r.length++),r};function p(e,t,r){return(new v).mulp(e,t,r)}function v(e,t){this.x=e,this.y=t}Math.imul||(h=d),a.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?h(this,e,t):r<63?d(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,a=0,i=0;i>>26)|0)>>>26,o&=67108863}r.words[i]=s,n=o,o=a}return 0!==n?r.words[i]=n:r.length--,r.strip()}(this,e,t):p(this,e,t)},v.prototype.makeRBT=function(e){for(var t=Array(e),r=a.prototype._countBits(e)-1,n=0;n>=1;return n},v.prototype.permute=function(e,t,r,n,a,i){for(var o=0;o>>=1)a++;return 1<>>=13,n[2*o+1]=8191&i,i>>>=13;for(o=2*t;o>=26,t+=(a/67108864|0)+(i>>>26),this.words[n]=67108863&i}return 0!==t&&(this.words[n]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=Array(e.bitLength()),r=0;r>>a}return t}(e);if(0===t.length)return new a(1);for(var r=this,n=0;n=0);var t,n=e%26,a=(e-n)/26,i=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(t=0;t>>26-n}o&&(this.words[t]=o,this.length++)}if(0!==a){for(t=this.length-1;t>=0;t--)this.words[t+a]=this.words[t];for(t=0;t=0),a=t?(t-t%26)/26:0;var a,i=e%26,o=Math.min((e-i)/26,this.length),s=67108863^67108863>>>i<o)for(this.length-=o,c=0;c=0&&(0!==u||c>=a);c--){var l=0|this.words[c];this.words[c]=u<<26-i|l>>>i,u=l&s}return n&&0!==u&&(n.words[n.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26;return!(this.length<=n)&&!!(this.words[n]&1<=0);var t=e%26,n=(e-t)/26;return(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)?this:(0!==t&&n++,this.length=Math.min(n,this.length),0!==t&&(this.words[this.length-1]&=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/67108864|0),this.words[a+n]=67108863&o}for(;a>26,this.words[a+n]=67108863&o;if(0===s)return this.strip();for(r(-1===s),s=0,a=0;a>26,this.words[a]=67108863&o;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var r=this.length-e.length,n=this.clone(),i=e,o=0|i.words[i.length-1];0!=(r=26-this._countBits(o))&&(i=i.ushln(r),n.iushln(r),o=0|i.words[i.length-1]);var s,c=n.length-i.length;if("mod"!==t){(s=new a(null)).length=c+1,s.words=Array(s.length);for(var u=0;u=0;f--){var d=(0|n.words[i.length+f])*67108864+(0|n.words[i.length+f-1]);for(d=Math.min(d/o|0,67108863),n._ishlnsubmul(i,d,f);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(i,1,f),n.isZero()||(n.negative^=1);s&&(s.words[f]=d)}return s&&s.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},a.prototype.divmod=function(e,t,n){var i,o,s;return(r(!e.isZero()),this.isZero())?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.iadd(e)),{div:i,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):this.negative&e.negative?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||0>this.cmp(e)?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t)},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),a=e.andln(1),i=r.cmp(n);return i<0||1===a&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){r(e<=67108863);for(var t=67108864%e,n=0,a=this.length-1;a>=0;a--)n=(t*n+(0|this.words[a]))%e;return n},a.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var a=(0|this.words[n])+67108864*t;this.words[n]=a/e|0,t=a%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new a(1),o=new a(0),s=new a(0),c=new a(1),u=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++u;for(var l=n.clone(),f=t.clone();!t.isZero();){for(var d=0,h=1;!(t.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(l),o.isub(f)),i.iushrn(1),o.iushrn(1);for(var p=0,v=1;!(n.words[0]&v)&&p<26;++p,v<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(l),c.isub(f)),s.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(s),o.isub(c)):(n.isub(t),s.isub(i),c.isub(o))}return{a:s,b:c,gcd:n.iushln(u)}},a.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t,n=this,i=e.clone();n=0!==n.negative?n.umod(e):n.clone();for(var o=new a(1),s=new a(0),c=i.clone();n.cmpn(1)>0&&i.cmpn(1)>0;){for(var u=0,l=1;!(n.words[0]&l)&&u<26;++u,l<<=1);if(u>0)for(n.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var f=0,d=1;!(i.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(i.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);n.cmp(i)>=0?(n.isub(i),o.isub(s)):(i.isub(n),s.isub(o))}return 0>(t=0===n.cmpn(1)?o:s).cmpn(0)&&t.iadd(e),t},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var a=t.cmp(r);if(a<0){var i=t;t=r,r=i}else if(0===a||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return(1&this.words[0])==0},a.prototype.isOdd=function(){return(1&this.words[0])==1},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,a=1<>>26,s&=67108863,this.words[o]=s}return 0!==i&&(this.words[o]=i,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return -1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var a=0|this.words[0];t=a===e?0:ae.length)return 1;if(this.length=0;r--){var n=0|this.words[r],a=0|e.words[r];if(n!==a){na&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return -1===this.cmpn(e)},a.prototype.lt=function(e){return -1===this.cmp(e)},a.prototype.lten=function(e){return 0>=this.cmpn(e)},a.prototype.lte=function(e){return 0>=this.cmp(e)},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new S(e)},a.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var m={k256:null,p224:null,p192:null,p25519:null};function g(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"==typeof e){var t=a._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function E(e){S.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}g.prototype._tmp=function(){var e=new a(null);return e.words=Array(Math.ceil(this.n/13)),e},g.prototype.ireduce=function(e){var t,r=e;do this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(t>this.n)var n=t0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},g.prototype.split=function(e,t){e.iushrn(this.n,0,t)},g.prototype.imulK=function(e){return e.imul(this.k)},n(b,g),b.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n>>22,a=i}a>>>=22,e.words[n-10]=a,0===a&&e.length>10?e.length-=10:e.length-=9},b.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=a,t=n}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){var t;if(m[e])return m[e];if("k256"===e)t=new b;else if("p224"===e)t=new y;else if("p192"===e)t=new _;else if("p25519"===e)t=new w;else throw Error("Unknown prime "+e);return m[e]=t,t},S.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){r((e.negative|t.negative)==0,"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},S.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},S.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},S.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},S.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},S.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},S.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},S.prototype.isqr=function(e){return this.imul(e,e.clone())},S.prototype.sqr=function(e){return this.mul(e,e)},S.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new a(1)).iushrn(2);return this.pow(e,n)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);r(!i.isZero());var s=new a(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new a(2*l*l).toRed(this);0!==this.pow(l,u).cmp(c);)l.redIAdd(c);for(var f=this.pow(l,i),d=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=o;0!==h.cmp(s);){for(var v=h,m=0;0!==v.cmp(s);m++)v=v.redSqr();r(m=0;n--){for(var u=t.words[n],l=c-1;l>=0;l--){var f=u>>l&1;if(i!==r[0]&&(i=this.sqr(i)),0===f&&0===o){s=0;continue}o<<=1,o|=f,4!=++s&&(0!==n||0!==l)||(i=this.mul(i,r[o]),s=0,o=0)}c=26}return i},S.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},S.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new E(e)},n(E,S),E.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},E.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},E.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=r.isub(n).iushrn(this.shift),i=a;return a.cmp(this.m)>=0?i=a.isub(this.m):0>a.cmpn(0)&&(i=a.iadd(this.m)),i._forceRed(this)},E.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):0>i.cmpn(0)&&(o=i.iadd(this.m)),o._forceRed(this)},E.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(typeof t>"u"||t,e)}),eq=p(()=>{}),eW=p((e,t)=>{var r,n;function a(e){this.rand=e}if(t.exports=function(e){return r||(r=new a(null)),r.generate(e)},t.exports.Rand=a,a.prototype.generate=function(e){return this._rand(e)},a.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r{var r=eG(),n=eW();function a(e){this.rand=e||new n.Rand}t.exports=a,a.create=function(e){return new a(e)},a.prototype._randbelow=function(e){var t=Math.ceil(e.bitLength()/8);do var n=new r(this.rand.generate(t));while(n.cmp(e)>=0)return n},a.prototype._randrange=function(e,t){var r=t.sub(e);return e.add(this._randbelow(r))},a.prototype.test=function(e,t,n){var a=e.bitLength(),i=r.mont(e),o=new r(1).toRed(i);t||(t=Math.max(1,a/48|0));for(var s=e.subn(1),c=0;!s.testn(c);c++);for(var u=e.shrn(c),l=s.toRed(i);t>0;t--){var f=this._randrange(new r(2),s);n&&n(f);var d=f.toRed(i).redPow(u);if(!(0===d.cmp(o)||0===d.cmp(l))){for(var h=1;h0;t--){var l=this._randrange(new r(2),o),f=e.gcd(l);if(0!==f.cmpn(1))return f;var d=l.toRed(a).redPow(c);if(!(0===d.cmp(i)||0===d.cmp(u))){for(var h=1;h{var r=w();t.exports=m,m.simpleSieve=p,m.fermatTest=v;var n=eG(),a=new n(24),i=new(eK()),o=new n(1),s=new n(2),c=new n(5),u=(new n(16),new n(8),new n(10)),l=new n(3),f=(new n(7),new n(11)),d=new n(4),h=(new n(12),null);function p(e){for(var t=function(){if(null!==h)return h;var e=[];e[0]=2;for(var t=1,r=3;r<1048576;r+=2){for(var n=Math.ceil(Math.sqrt(r)),a=0;ae;)h.ishrn(1);if(h.isEven()&&h.iadd(o),h.testn(1)||h.iadd(s),t.cmp(s)){if(!t.cmp(c))for(;h.mod(u).cmp(l);)h.iadd(d)}else for(;h.mod(a).cmp(f);)h.iadd(d);if(p(m=h.shrn(1))&&p(h)&&v(m)&&v(h)&&i.test(m)&&i.test(h))return h}}}),eY=p((e,t)=>{t.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}}),eJ=p((e,t)=>{var r=eG(),n=new(eK()),a=new r(24),i=new r(11),o=new r(10),c=new r(3),u=new r(7),l=eV(),f=w();function d(e,t){return t=t||"utf8",s.isBuffer(e)||(e=new s(e,t)),this._pub=new r(e),this}function h(e,t){return t=t||"utf8",s.isBuffer(e)||(e=new s(e,t)),this._priv=new r(e),this}t.exports=v;var p={};function v(e,t,n){this.setGenerator(t),this.__prime=new r(e),this._prime=r.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,n?(this.setPublicKey=d,this.setPrivateKey=h):this._primeCode=8}function m(e,t){var r=new s(e.toArray());return t?r.toString(t):r}Object.defineProperty(v.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){var r,s=t.toString("hex"),f=[s,e.toString(16)].join("_");if(f in p)return p[f];var d=0;if(e.isEven()||!l.simpleSieve||!l.fermatTest(e)||!n.test(e))return d+=1,"02"===s||"05"===s?d+=8:d+=4,p[f]=d,d;switch(n.test(e.shrn(1))||(d+=2),s){case"02":e.mod(a).cmp(i)&&(d+=8);break;case"05":(r=e.mod(o)).cmp(c)&&r.cmp(u)&&(d+=8);break;default:d+=4}return p[f]=d,d}(this.__prime,this.__gen)),this._primeCode}}),v.prototype.generateKeys=function(){return this._priv||(this._priv=new r(f(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},v.prototype.computeSecret=function(e){var t=new s((e=(e=new r(e)).toRed(this._prime)).redPow(this._priv).fromRed().toArray()),n=this.getPrime();if(t.length{var t=eV(),r=eY(),n=eJ(),a={binary:!0,hex:!0,base64:!0};e.DiffieHellmanGroup=e.createDiffieHellmanGroup=e.getDiffieHellman=function(e){return new n(new s(r[e].prime,"hex"),new s(r[e].gen,"hex"))},e.createDiffieHellman=e.DiffieHellman=function e(r,i,o,c){return s.isBuffer(i)||void 0===a[i]?e(r,"binary",i,o):(i=i||"binary",c=c||"binary",o=o||new s([2]),s.isBuffer(o)||(o=new s(o,c)),"number"==typeof r?new n(t(r,o),o,!0):(s.isBuffer(r)||(r=new s(r,i)),new n(r,o,!0)))}}),eX=p((e,t)=>{!function(e,t){function r(e,t){if(!e)throw Error(t||"Assertion failed")}function n(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function a(e,t,r){if(a.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&(("le"===t||"be"===t)&&(r=t,t=10),this._init(e||0,t||10,r||"be"))}"object"==typeof e?e.exports=a:t.BN=a,a.BN=a,a.wordSize=26;try{l="u">typeof window&&"u">typeof window.Buffer?window.Buffer:eH().Buffer}catch(e){}function i(e,t){var n=e.charCodeAt(t);return n>=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:void r(!1,"Invalid character in "+e)}function o(e,t,r){var n=i(e,r);return r-1>=t&&(n|=i(e,r-1)<<4),n}function s(e,t,n,a){for(var i=0,o=0,s=Math.min(e.length,n),c=t;c=49?u-49+10:u>=17?u-17+10:u,r(u>=0&&o0?e:t},a.min=function(e,t){return 0>e.cmp(t)?e:t},a.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var a=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(a++,this.negative=1),a=0;a-=3)o=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[i]|=o<>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);else if("le"===n)for(a=0,i=0;a>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);return this._strip()},a.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var n=0;n=t;n-=2)a=o(e,t,n)<=18?(i-=18,s+=1,this.words[s]|=a>>>26):i+=8;else for(n=(e.length-t)%2==0?t+1:t;n=18?(i-=18,s+=1,this.words[s]|=a>>>26):i+=8;this._strip()},a.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,a=1;a<=67108863;a*=t)n++;n--,a=a/t|0;for(var i=e.length-r,o=i%n,c=Math.min(i,i-o)+r,u=0,l=r;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"u">typeof Symbol&&"function"==typeof Symbol.for)try{a.prototype[Symbol.for("nodejs.util.inspect.custom")]=u}catch(e){a.prototype.inspect=u}else a.prototype.inspect=u;function u(){return(this.red?""}var l,f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var a=0|e.words[0],i=0|t.words[0],o=a*i,s=67108863&o,c=o/67108864|0;r.words[0]=s;for(var u=1;u>>26,f=67108863&c,d=Math.min(u,t.length-1),h=Math.max(0,u-e.length+1);h<=d;h++){var p=u-h|0;l+=(o=(a=0|e.words[p])*(i=0|t.words[h])+f)/67108864|0,f=67108863&o}r.words[u]=0|f,c=0|l}return 0!==c?r.words[u]=0|c:r.length--,r._strip()}a.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var n,a=0,i=0,o=0;o>>24-a&16777215,(a+=2)>=26&&(a-=26,o--),n=0!==i||o!==this.length-1?f[6-c.length]+c+n:c+n}for(0!==i&&(n=i.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var u=d[e],l=h[e];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var v=p.modrn(l).toString(e);n=(p=p.idivn(l)).isZero()?v+n:f[u-v.length]+v+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16,2)},l&&(a.prototype.toBuffer=function(e,t){return this.toArrayLike(l,e,t)}),a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,n){this._strip();var a=this.byteLength(),i=n||Math.max(1,a);r(a<=i,"byte array longer than desired length"),r(i>0,"Requested array length <= 0");var o=e.allocUnsafe?e.allocUnsafe(i):new e(i);return this["_toArrayLike"+("le"===t?"LE":"BE")](o,a),o},a.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,a=0,i=0;a>8&255),r>16&255),6===i?(r>24&255),n=0,i=0):(n=o>>>24,i+=2)}if(r=0&&(e[r--]=o>>8&255),r>=0&&(e[r--]=o>>16&255),6===i?(r>=0&&(e[r--]=o>>24&255),n=0,i=0):(n=o>>>24,i+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?a.prototype._countBits=function(e){return 32-Math.clz32(e)}:a.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},a.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 8191&t||(r+=13,t>>>=13),127&t||(r+=7,t>>>=7),15&t||(r+=4,t>>>=4),3&t||(r+=2,t>>>=2),1&t||r++,r},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var a=0;a0&&(this.words[a]=~this.words[a]&67108863>>26-n),this._strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,a=e%26;return this._expand(n+1),t?this.words[n]=this.words[n]|1<e.length?(r=this,n=e):(r=e,n=this);for(var t,r,n,a=0,i=0;i>>26;for(;0!==a&&i>>26;if(this.length=r.length,0!==a)this.words[this.length]=a,this.length++;else if(r!==this)for(;ie.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,n=this.iadd(e);return e.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var a=this.cmp(e);if(0===a)return this.negative=0,this.length=1,this.words[0]=0,this;a>0?(t=this,r=e):(t=e,r=this);for(var i=0,o=0;o>26,this.words[o]=67108863&n;for(;0!==i&&o>26,this.words[o]=67108863&n;if(0===i&&o>>13,h=0|o[1],p=8191&h,v=h>>>13,m=0|o[2],g=8191&m,b=m>>>13,y=0|o[3],_=8191&y,w=y>>>13,S=0|o[4],E=8191&S,k=S>>>13,I=0|o[5],x=8191&I,O=I>>>13,T=0|o[6],A=8191&T,M=T>>>13,R=0|o[7],C=8191&R,j=R>>>13,N=0|o[8],P=8191&N,D=N>>>13,L=0|o[9],F=8191&L,B=L>>>13,U=0|s[0],z=8191&U,H=U>>>13,G=0|s[1],q=8191&G,W=G>>>13,K=0|s[2],V=8191&K,Y=K>>>13,J=0|s[3],Z=8191&J,X=J>>>13,$=0|s[4],Q=8191&$,ee=$>>>13,et=0|s[5],er=8191&et,en=et>>>13,ea=0|s[6],ei=8191&ea,eo=ea>>>13,es=0|s[7],ec=8191&es,eu=es>>>13,el=0|s[8],ef=8191&el,ed=el>>>13,eh=0|s[9],ep=8191&eh,ev=eh>>>13;r.negative=e.negative^t.negative,r.length=19,n=Math.imul(f,z),a=(a=Math.imul(f,H))+Math.imul(d,z)|0,i=Math.imul(d,H);var em=(u+n|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(em>>>26)|0,em&=67108863,n=Math.imul(p,z),a=(a=Math.imul(p,H))+Math.imul(v,z)|0,i=Math.imul(v,H),n=n+Math.imul(f,q)|0,a=(a=a+Math.imul(f,W)|0)+Math.imul(d,q)|0,i=i+Math.imul(d,W)|0;var eg=(u+n|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(eg>>>26)|0,eg&=67108863,n=Math.imul(g,z),a=(a=Math.imul(g,H))+Math.imul(b,z)|0,i=Math.imul(b,H),n=n+Math.imul(p,q)|0,a=(a=a+Math.imul(p,W)|0)+Math.imul(v,q)|0,i=i+Math.imul(v,W)|0,n=n+Math.imul(f,V)|0,a=(a=a+Math.imul(f,Y)|0)+Math.imul(d,V)|0,i=i+Math.imul(d,Y)|0;var eb=(u+n|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(eb>>>26)|0,eb&=67108863,n=Math.imul(_,z),a=(a=Math.imul(_,H))+Math.imul(w,z)|0,i=Math.imul(w,H),n=n+Math.imul(g,q)|0,a=(a=a+Math.imul(g,W)|0)+Math.imul(b,q)|0,i=i+Math.imul(b,W)|0,n=n+Math.imul(p,V)|0,a=(a=a+Math.imul(p,Y)|0)+Math.imul(v,V)|0,i=i+Math.imul(v,Y)|0,n=n+Math.imul(f,Z)|0,a=(a=a+Math.imul(f,X)|0)+Math.imul(d,Z)|0,i=i+Math.imul(d,X)|0;var ey=(u+n|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(ey>>>26)|0,ey&=67108863,n=Math.imul(E,z),a=(a=Math.imul(E,H))+Math.imul(k,z)|0,i=Math.imul(k,H),n=n+Math.imul(_,q)|0,a=(a=a+Math.imul(_,W)|0)+Math.imul(w,q)|0,i=i+Math.imul(w,W)|0,n=n+Math.imul(g,V)|0,a=(a=a+Math.imul(g,Y)|0)+Math.imul(b,V)|0,i=i+Math.imul(b,Y)|0,n=n+Math.imul(p,Z)|0,a=(a=a+Math.imul(p,X)|0)+Math.imul(v,Z)|0,i=i+Math.imul(v,X)|0,n=n+Math.imul(f,Q)|0,a=(a=a+Math.imul(f,ee)|0)+Math.imul(d,Q)|0,i=i+Math.imul(d,ee)|0;var e_=(u+n|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(e_>>>26)|0,e_&=67108863,n=Math.imul(x,z),a=(a=Math.imul(x,H))+Math.imul(O,z)|0,i=Math.imul(O,H),n=n+Math.imul(E,q)|0,a=(a=a+Math.imul(E,W)|0)+Math.imul(k,q)|0,i=i+Math.imul(k,W)|0,n=n+Math.imul(_,V)|0,a=(a=a+Math.imul(_,Y)|0)+Math.imul(w,V)|0,i=i+Math.imul(w,Y)|0,n=n+Math.imul(g,Z)|0,a=(a=a+Math.imul(g,X)|0)+Math.imul(b,Z)|0,i=i+Math.imul(b,X)|0,n=n+Math.imul(p,Q)|0,a=(a=a+Math.imul(p,ee)|0)+Math.imul(v,Q)|0,i=i+Math.imul(v,ee)|0,n=n+Math.imul(f,er)|0,a=(a=a+Math.imul(f,en)|0)+Math.imul(d,er)|0,i=i+Math.imul(d,en)|0;var ew=(u+n|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(ew>>>26)|0,ew&=67108863,n=Math.imul(A,z),a=(a=Math.imul(A,H))+Math.imul(M,z)|0,i=Math.imul(M,H),n=n+Math.imul(x,q)|0,a=(a=a+Math.imul(x,W)|0)+Math.imul(O,q)|0,i=i+Math.imul(O,W)|0,n=n+Math.imul(E,V)|0,a=(a=a+Math.imul(E,Y)|0)+Math.imul(k,V)|0,i=i+Math.imul(k,Y)|0,n=n+Math.imul(_,Z)|0,a=(a=a+Math.imul(_,X)|0)+Math.imul(w,Z)|0,i=i+Math.imul(w,X)|0,n=n+Math.imul(g,Q)|0,a=(a=a+Math.imul(g,ee)|0)+Math.imul(b,Q)|0,i=i+Math.imul(b,ee)|0,n=n+Math.imul(p,er)|0,a=(a=a+Math.imul(p,en)|0)+Math.imul(v,er)|0,i=i+Math.imul(v,en)|0,n=n+Math.imul(f,ei)|0,a=(a=a+Math.imul(f,eo)|0)+Math.imul(d,ei)|0,i=i+Math.imul(d,eo)|0;var eS=(u+n|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(eS>>>26)|0,eS&=67108863,n=Math.imul(C,z),a=(a=Math.imul(C,H))+Math.imul(j,z)|0,i=Math.imul(j,H),n=n+Math.imul(A,q)|0,a=(a=a+Math.imul(A,W)|0)+Math.imul(M,q)|0,i=i+Math.imul(M,W)|0,n=n+Math.imul(x,V)|0,a=(a=a+Math.imul(x,Y)|0)+Math.imul(O,V)|0,i=i+Math.imul(O,Y)|0,n=n+Math.imul(E,Z)|0,a=(a=a+Math.imul(E,X)|0)+Math.imul(k,Z)|0,i=i+Math.imul(k,X)|0,n=n+Math.imul(_,Q)|0,a=(a=a+Math.imul(_,ee)|0)+Math.imul(w,Q)|0,i=i+Math.imul(w,ee)|0,n=n+Math.imul(g,er)|0,a=(a=a+Math.imul(g,en)|0)+Math.imul(b,er)|0,i=i+Math.imul(b,en)|0,n=n+Math.imul(p,ei)|0,a=(a=a+Math.imul(p,eo)|0)+Math.imul(v,ei)|0,i=i+Math.imul(v,eo)|0,n=n+Math.imul(f,ec)|0,a=(a=a+Math.imul(f,eu)|0)+Math.imul(d,ec)|0,i=i+Math.imul(d,eu)|0;var eE=(u+n|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(eE>>>26)|0,eE&=67108863,n=Math.imul(P,z),a=(a=Math.imul(P,H))+Math.imul(D,z)|0,i=Math.imul(D,H),n=n+Math.imul(C,q)|0,a=(a=a+Math.imul(C,W)|0)+Math.imul(j,q)|0,i=i+Math.imul(j,W)|0,n=n+Math.imul(A,V)|0,a=(a=a+Math.imul(A,Y)|0)+Math.imul(M,V)|0,i=i+Math.imul(M,Y)|0,n=n+Math.imul(x,Z)|0,a=(a=a+Math.imul(x,X)|0)+Math.imul(O,Z)|0,i=i+Math.imul(O,X)|0,n=n+Math.imul(E,Q)|0,a=(a=a+Math.imul(E,ee)|0)+Math.imul(k,Q)|0,i=i+Math.imul(k,ee)|0,n=n+Math.imul(_,er)|0,a=(a=a+Math.imul(_,en)|0)+Math.imul(w,er)|0,i=i+Math.imul(w,en)|0,n=n+Math.imul(g,ei)|0,a=(a=a+Math.imul(g,eo)|0)+Math.imul(b,ei)|0,i=i+Math.imul(b,eo)|0,n=n+Math.imul(p,ec)|0,a=(a=a+Math.imul(p,eu)|0)+Math.imul(v,ec)|0,i=i+Math.imul(v,eu)|0,n=n+Math.imul(f,ef)|0,a=(a=a+Math.imul(f,ed)|0)+Math.imul(d,ef)|0,i=i+Math.imul(d,ed)|0;var ek=(u+n|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(ek>>>26)|0,ek&=67108863,n=Math.imul(F,z),a=(a=Math.imul(F,H))+Math.imul(B,z)|0,i=Math.imul(B,H),n=n+Math.imul(P,q)|0,a=(a=a+Math.imul(P,W)|0)+Math.imul(D,q)|0,i=i+Math.imul(D,W)|0,n=n+Math.imul(C,V)|0,a=(a=a+Math.imul(C,Y)|0)+Math.imul(j,V)|0,i=i+Math.imul(j,Y)|0,n=n+Math.imul(A,Z)|0,a=(a=a+Math.imul(A,X)|0)+Math.imul(M,Z)|0,i=i+Math.imul(M,X)|0,n=n+Math.imul(x,Q)|0,a=(a=a+Math.imul(x,ee)|0)+Math.imul(O,Q)|0,i=i+Math.imul(O,ee)|0,n=n+Math.imul(E,er)|0,a=(a=a+Math.imul(E,en)|0)+Math.imul(k,er)|0,i=i+Math.imul(k,en)|0,n=n+Math.imul(_,ei)|0,a=(a=a+Math.imul(_,eo)|0)+Math.imul(w,ei)|0,i=i+Math.imul(w,eo)|0,n=n+Math.imul(g,ec)|0,a=(a=a+Math.imul(g,eu)|0)+Math.imul(b,ec)|0,i=i+Math.imul(b,eu)|0,n=n+Math.imul(p,ef)|0,a=(a=a+Math.imul(p,ed)|0)+Math.imul(v,ef)|0,i=i+Math.imul(v,ed)|0,n=n+Math.imul(f,ep)|0,a=(a=a+Math.imul(f,ev)|0)+Math.imul(d,ep)|0,i=i+Math.imul(d,ev)|0;var eI=(u+n|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(eI>>>26)|0,eI&=67108863,n=Math.imul(F,q),a=(a=Math.imul(F,W))+Math.imul(B,q)|0,i=Math.imul(B,W),n=n+Math.imul(P,V)|0,a=(a=a+Math.imul(P,Y)|0)+Math.imul(D,V)|0,i=i+Math.imul(D,Y)|0,n=n+Math.imul(C,Z)|0,a=(a=a+Math.imul(C,X)|0)+Math.imul(j,Z)|0,i=i+Math.imul(j,X)|0,n=n+Math.imul(A,Q)|0,a=(a=a+Math.imul(A,ee)|0)+Math.imul(M,Q)|0,i=i+Math.imul(M,ee)|0,n=n+Math.imul(x,er)|0,a=(a=a+Math.imul(x,en)|0)+Math.imul(O,er)|0,i=i+Math.imul(O,en)|0,n=n+Math.imul(E,ei)|0,a=(a=a+Math.imul(E,eo)|0)+Math.imul(k,ei)|0,i=i+Math.imul(k,eo)|0,n=n+Math.imul(_,ec)|0,a=(a=a+Math.imul(_,eu)|0)+Math.imul(w,ec)|0,i=i+Math.imul(w,eu)|0,n=n+Math.imul(g,ef)|0,a=(a=a+Math.imul(g,ed)|0)+Math.imul(b,ef)|0,i=i+Math.imul(b,ed)|0,n=n+Math.imul(p,ep)|0,a=(a=a+Math.imul(p,ev)|0)+Math.imul(v,ep)|0,i=i+Math.imul(v,ev)|0;var ex=(u+n|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(ex>>>26)|0,ex&=67108863,n=Math.imul(F,V),a=(a=Math.imul(F,Y))+Math.imul(B,V)|0,i=Math.imul(B,Y),n=n+Math.imul(P,Z)|0,a=(a=a+Math.imul(P,X)|0)+Math.imul(D,Z)|0,i=i+Math.imul(D,X)|0,n=n+Math.imul(C,Q)|0,a=(a=a+Math.imul(C,ee)|0)+Math.imul(j,Q)|0,i=i+Math.imul(j,ee)|0,n=n+Math.imul(A,er)|0,a=(a=a+Math.imul(A,en)|0)+Math.imul(M,er)|0,i=i+Math.imul(M,en)|0,n=n+Math.imul(x,ei)|0,a=(a=a+Math.imul(x,eo)|0)+Math.imul(O,ei)|0,i=i+Math.imul(O,eo)|0,n=n+Math.imul(E,ec)|0,a=(a=a+Math.imul(E,eu)|0)+Math.imul(k,ec)|0,i=i+Math.imul(k,eu)|0,n=n+Math.imul(_,ef)|0,a=(a=a+Math.imul(_,ed)|0)+Math.imul(w,ef)|0,i=i+Math.imul(w,ed)|0,n=n+Math.imul(g,ep)|0,a=(a=a+Math.imul(g,ev)|0)+Math.imul(b,ep)|0,i=i+Math.imul(b,ev)|0;var eO=(u+n|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(eO>>>26)|0,eO&=67108863,n=Math.imul(F,Z),a=(a=Math.imul(F,X))+Math.imul(B,Z)|0,i=Math.imul(B,X),n=n+Math.imul(P,Q)|0,a=(a=a+Math.imul(P,ee)|0)+Math.imul(D,Q)|0,i=i+Math.imul(D,ee)|0,n=n+Math.imul(C,er)|0,a=(a=a+Math.imul(C,en)|0)+Math.imul(j,er)|0,i=i+Math.imul(j,en)|0,n=n+Math.imul(A,ei)|0,a=(a=a+Math.imul(A,eo)|0)+Math.imul(M,ei)|0,i=i+Math.imul(M,eo)|0,n=n+Math.imul(x,ec)|0,a=(a=a+Math.imul(x,eu)|0)+Math.imul(O,ec)|0,i=i+Math.imul(O,eu)|0,n=n+Math.imul(E,ef)|0,a=(a=a+Math.imul(E,ed)|0)+Math.imul(k,ef)|0,i=i+Math.imul(k,ed)|0,n=n+Math.imul(_,ep)|0,a=(a=a+Math.imul(_,ev)|0)+Math.imul(w,ep)|0,i=i+Math.imul(w,ev)|0;var eT=(u+n|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(eT>>>26)|0,eT&=67108863,n=Math.imul(F,Q),a=(a=Math.imul(F,ee))+Math.imul(B,Q)|0,i=Math.imul(B,ee),n=n+Math.imul(P,er)|0,a=(a=a+Math.imul(P,en)|0)+Math.imul(D,er)|0,i=i+Math.imul(D,en)|0,n=n+Math.imul(C,ei)|0,a=(a=a+Math.imul(C,eo)|0)+Math.imul(j,ei)|0,i=i+Math.imul(j,eo)|0,n=n+Math.imul(A,ec)|0,a=(a=a+Math.imul(A,eu)|0)+Math.imul(M,ec)|0,i=i+Math.imul(M,eu)|0,n=n+Math.imul(x,ef)|0,a=(a=a+Math.imul(x,ed)|0)+Math.imul(O,ef)|0,i=i+Math.imul(O,ed)|0,n=n+Math.imul(E,ep)|0,a=(a=a+Math.imul(E,ev)|0)+Math.imul(k,ep)|0,i=i+Math.imul(k,ev)|0;var eA=(u+n|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(eA>>>26)|0,eA&=67108863,n=Math.imul(F,er),a=(a=Math.imul(F,en))+Math.imul(B,er)|0,i=Math.imul(B,en),n=n+Math.imul(P,ei)|0,a=(a=a+Math.imul(P,eo)|0)+Math.imul(D,ei)|0,i=i+Math.imul(D,eo)|0,n=n+Math.imul(C,ec)|0,a=(a=a+Math.imul(C,eu)|0)+Math.imul(j,ec)|0,i=i+Math.imul(j,eu)|0,n=n+Math.imul(A,ef)|0,a=(a=a+Math.imul(A,ed)|0)+Math.imul(M,ef)|0,i=i+Math.imul(M,ed)|0,n=n+Math.imul(x,ep)|0,a=(a=a+Math.imul(x,ev)|0)+Math.imul(O,ep)|0,i=i+Math.imul(O,ev)|0;var eM=(u+n|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(eM>>>26)|0,eM&=67108863,n=Math.imul(F,ei),a=(a=Math.imul(F,eo))+Math.imul(B,ei)|0,i=Math.imul(B,eo),n=n+Math.imul(P,ec)|0,a=(a=a+Math.imul(P,eu)|0)+Math.imul(D,ec)|0,i=i+Math.imul(D,eu)|0,n=n+Math.imul(C,ef)|0,a=(a=a+Math.imul(C,ed)|0)+Math.imul(j,ef)|0,i=i+Math.imul(j,ed)|0,n=n+Math.imul(A,ep)|0,a=(a=a+Math.imul(A,ev)|0)+Math.imul(M,ep)|0,i=i+Math.imul(M,ev)|0;var eR=(u+n|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(eR>>>26)|0,eR&=67108863,n=Math.imul(F,ec),a=(a=Math.imul(F,eu))+Math.imul(B,ec)|0,i=Math.imul(B,eu),n=n+Math.imul(P,ef)|0,a=(a=a+Math.imul(P,ed)|0)+Math.imul(D,ef)|0,i=i+Math.imul(D,ed)|0,n=n+Math.imul(C,ep)|0,a=(a=a+Math.imul(C,ev)|0)+Math.imul(j,ep)|0,i=i+Math.imul(j,ev)|0;var eC=(u+n|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(eC>>>26)|0,eC&=67108863,n=Math.imul(F,ef),a=(a=Math.imul(F,ed))+Math.imul(B,ef)|0,i=Math.imul(B,ed),n=n+Math.imul(P,ep)|0,a=(a=a+Math.imul(P,ev)|0)+Math.imul(D,ep)|0,i=i+Math.imul(D,ev)|0;var ej=(u+n|0)+((8191&a)<<13)|0;u=(i+(a>>>13)|0)+(ej>>>26)|0,ej&=67108863,n=Math.imul(F,ep),a=(a=Math.imul(F,ev))+Math.imul(B,ep)|0,i=Math.imul(B,ev);var eN=(u+n|0)+((8191&a)<<13)|0;return u=(i+(a>>>13)|0)+(eN>>>26)|0,eN&=67108863,c[0]=em,c[1]=eg,c[2]=eb,c[3]=ey,c[4]=e_,c[5]=ew,c[6]=eS,c[7]=eE,c[8]=ek,c[9]=eI,c[10]=ex,c[11]=eO,c[12]=eT,c[13]=eA,c[14]=eM,c[15]=eR,c[16]=eC,c[17]=ej,c[18]=eN,0!==u&&(c[19]=u,r.length++),r};function m(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,a=0,i=0;i>>26)|0)>>>26,o&=67108863}r.words[i]=s,n=o,o=a}return 0!==n?r.words[i]=n:r.length--,r._strip()}function g(e,t){this.x=e,this.y=t}Math.imul||(v=p),a.prototype.mulTo=function(e,t){var r,n=this.length+e.length;return 10===this.length&&10===e.length?v(this,e,t):n<63?p(this,e,t):m(this,e,t)},g.prototype.makeRBT=function(e){for(var t=Array(e),r=a.prototype._countBits(e)-1,n=0;n>=1;return n},g.prototype.permute=function(e,t,r,n,a,i){for(var o=0;o>>=1)a++;return 1<>>=13,n[2*o+1]=8191&i,i>>>=13;for(o=2*t;o>=26,n+=(i/67108864|0)+(o>>>26),this.words[a]=67108863&o}return 0!==n&&(this.words[a]=n,this.length++),t?this.ineg():this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=Array(e.bitLength()),r=0;r>>a&1}return t}(e);if(0===t.length)return new a(1);for(var r=this,n=0;n=0);var t,n=e%26,a=(e-n)/26,i=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(t=0;t>>26-n}o&&(this.words[t]=o,this.length++)}if(0!==a){for(t=this.length-1;t>=0;t--)this.words[t+a]=this.words[t];for(t=0;t=0),a=t?(t-t%26)/26:0;var a,i=e%26,o=Math.min((e-i)/26,this.length),s=67108863^67108863>>>i<o)for(this.length-=o,c=0;c=0&&(0!==u||c>=a);c--){var l=0|this.words[c];this.words[c]=u<<26-i|l>>>i,u=l&s}return n&&0!==u&&(n.words[n.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26;return!(this.length<=n)&&!!(this.words[n]&1<=0);var t=e%26,n=(e-t)/26;return(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)?this:(0!==t&&n++,this.length=Math.min(n,this.length),0!==t&&(this.words[this.length-1]&=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/67108864|0),this.words[a+n]=67108863&o}for(;a>26,this.words[a+n]=67108863&o;if(0===s)return this._strip();for(r(-1===s),s=0,a=0;a>26,this.words[a]=67108863&o;return this.negative=1,this._strip()},a.prototype._wordDiv=function(e,t){var r=this.length-e.length,n=this.clone(),i=e,o=0|i.words[i.length-1];0!=(r=26-this._countBits(o))&&(i=i.ushln(r),n.iushln(r),o=0|i.words[i.length-1]);var s,c=n.length-i.length;if("mod"!==t){(s=new a(null)).length=c+1,s.words=Array(s.length);for(var u=0;u=0;f--){var d=(0|n.words[i.length+f])*67108864+(0|n.words[i.length+f-1]);for(d=Math.min(d/o|0,67108863),n._ishlnsubmul(i,d,f);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(i,1,f),n.isZero()||(n.negative^=1);s&&(s.words[f]=d)}return s&&s._strip(),n._strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},a.prototype.divmod=function(e,t,n){var i,o,s;return(r(!e.isZero()),this.isZero())?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.iadd(e)),{div:i,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):this.negative&e.negative?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||0>this.cmp(e)?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modrn(e.words[0]))}:this._wordDiv(e,t)},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),a=e.andln(1),i=r.cmp(n);return i<0||1===a&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modrn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var n=67108864%e,a=0,i=this.length-1;i>=0;i--)a=(n*a+(0|this.words[i]))%e;return t?-a:a},a.prototype.modn=function(e){return this.modrn(e)},a.prototype.idivn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var n=0,a=this.length-1;a>=0;a--){var i=(0|this.words[a])+67108864*n;this.words[a]=i/e|0,n=i%e}return this._strip(),t?this.ineg():this},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new a(1),o=new a(0),s=new a(0),c=new a(1),u=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++u;for(var l=n.clone(),f=t.clone();!t.isZero();){for(var d=0,h=1;!(t.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(l),o.isub(f)),i.iushrn(1),o.iushrn(1);for(var p=0,v=1;!(n.words[0]&v)&&p<26;++p,v<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(l),c.isub(f)),s.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(s),o.isub(c)):(n.isub(t),s.isub(i),c.isub(o))}return{a:s,b:c,gcd:n.iushln(u)}},a.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t,n=this,i=e.clone();n=0!==n.negative?n.umod(e):n.clone();for(var o=new a(1),s=new a(0),c=i.clone();n.cmpn(1)>0&&i.cmpn(1)>0;){for(var u=0,l=1;!(n.words[0]&l)&&u<26;++u,l<<=1);if(u>0)for(n.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var f=0,d=1;!(i.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(i.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);n.cmp(i)>=0?(n.isub(i),o.isub(s)):(i.isub(n),s.isub(o))}return 0>(t=0===n.cmpn(1)?o:s).cmpn(0)&&t.iadd(e),t},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var a=t.cmp(r);if(a<0){var i=t;t=r,r=i}else if(0===a||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return(1&this.words[0])==0},a.prototype.isOdd=function(){return(1&this.words[0])==1},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,a=1<>>26,s&=67108863,this.words[o]=s}return 0!==i&&(this.words[o]=i,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return -1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var a=0|this.words[0];t=a===e?0:ae.length)return 1;if(this.length=0;r--){var n=0|this.words[r],a=0|e.words[r];if(n!==a){na&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return -1===this.cmpn(e)},a.prototype.lt=function(e){return -1===this.cmp(e)},a.prototype.lten=function(e){return 0>=this.cmpn(e)},a.prototype.lte=function(e){return 0>=this.cmp(e)},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new k(e)},a.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var b={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function S(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(e){if("string"==typeof e){var t=a._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function I(e){k.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}y.prototype._tmp=function(){var e=new a(null);return e.words=Array(Math.ceil(this.n/13)),e},y.prototype.ireduce=function(e){var t,r=e;do this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(t>this.n)var n=t0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},y.prototype.split=function(e,t){e.iushrn(this.n,0,t)},y.prototype.imulK=function(e){return e.imul(this.k)},n(_,y),_.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n>>22,a=i}a>>>=22,e.words[n-10]=a,0===a&&e.length>10?e.length-=10:e.length-=9},_.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=a,t=n}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){var t;if(b[e])return b[e];if("k256"===e)t=new _;else if("p224"===e)t=new w;else if("p192"===e)t=new S;else if("p25519"===e)t=new E;else throw Error("Unknown prime "+e);return b[e]=t,t},k.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},k.prototype._verify2=function(e,t){r((e.negative|t.negative)==0,"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},k.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(c(e,e.umod(this.m)._forceRed(this)),e)},k.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},k.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},k.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},k.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},k.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},k.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},k.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},k.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},k.prototype.isqr=function(e){return this.imul(e,e.clone())},k.prototype.sqr=function(e){return this.mul(e,e)},k.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new a(1)).iushrn(2);return this.pow(e,n)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);r(!i.isZero());var s=new a(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new a(2*l*l).toRed(this);0!==this.pow(l,u).cmp(c);)l.redIAdd(c);for(var f=this.pow(l,i),d=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=o;0!==h.cmp(s);){for(var v=h,m=0;0!==v.cmp(s);m++)v=v.redSqr();r(m=0;n--){for(var u=t.words[n],l=c-1;l>=0;l--){var f=u>>l&1;if(i!==r[0]&&(i=this.sqr(i)),0===f&&0===o){s=0;continue}o<<=1,o|=f,4!=++s&&(0!==n||0!==l)||(i=this.mul(i,r[o]),s=0,o=0)}c=26}return i},k.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},k.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new I(e)},n(I,k),I.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},I.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},I.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=r.isub(n).iushrn(this.shift),i=a;return a.cmp(this.m)>=0?i=a.isub(this.m):0>a.cmpn(0)&&(i=a.iadd(this.m)),i._forceRed(this)},I.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):0>i.cmpn(0)&&(o=i.iadd(this.m)),o._forceRed(this)},I.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(typeof t>"u"||t,e)}),e$=p((e,t)=>{var r=eX(),n=w();function a(e){var t,a=e.modulus.byteLength();do t=new r(n(a));while(t.cmp(e.modulus)>=0||!t.umod(e.prime1)||!t.umod(e.prime2))return t}function i(e,t){var n,i={blinder:(n=a(t)).toRed(r.mont(t.modulus)).redPow(new r(t.publicExponent)).fromRed(),unblinder:n.invm(t.modulus)},o=t.modulus.byteLength(),c=new r(e).mul(i.blinder).umod(t.modulus),u=c.toRed(r.mont(t.prime1)),l=c.toRed(r.mont(t.prime2)),f=t.coefficient,d=t.prime1,h=t.prime2,p=u.redPow(t.exponent1).fromRed(),v=l.redPow(t.exponent2).fromRed(),m=p.isub(v).imul(f).umod(d).imul(h);return v.iadd(m).imul(i.unblinder).umod(t.modulus).toArrayLike(s,"be",o)}i.getr=a,t.exports=i}),eQ=p((e,t)=>{t.exports={name:"elliptic",version:"6.5.4",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"git@github.com:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny ",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies:{"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}}),e0=p(e=>{function t(e){return 1===e.length?"0"+e:e}function r(e){for(var r="",n=0;n>8,o=255&a;i?r.push(i,o):r.push(o)}return r},e.zero2=t,e.toHex=r,e.encode=function(e,t){return"hex"===t?r(e):e}}),e1=p(e=>{var t=eG(),r=ep(),n=e0();e.assert=r,e.toArray=n.toArray,e.zero2=n.zero2,e.toHex=n.toHex,e.encode=n.encode,e.getNAF=function(e,t,r){var n=Array(Math.max(e.bitLength(),r)+1);n.fill(0);for(var a=1<(a>>1)-1?(a>>1)-c:c,i.isubn(s)):s=0,n[o]=s,i.iushrn(1)}return n},e.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n,a=0,i=0;e.cmpn(-a)>0||t.cmpn(-i)>0;){var o,s,c=e.andln(3)+a&3,u=t.andln(3)+i&3;3===c&&(c=-1),3===u&&(u=-1),o=1&c?(3==(n=e.andln(7)+a&7)||5===n)&&2===u?-c:c:0,r[0].push(o),s=1&u?(3==(n=t.andln(7)+i&7)||5===n)&&2===c?-u:u:0,r[1].push(s),2*a===o+1&&(a=1-a),2*i===s+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return r},e.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},e.parseBytes=function(t){return"string"==typeof t?e.toArray(t,"hex"):t},e.intFromLE=function(e){return new t(e,"hex","le")}}),e2=p((e,t)=>{var r=eG(),n=e1(),a=n.getNAF,i=n.getJSF,o=n.assert;function s(e,t){this.type=e,this.p=new r(t.p,16),this.red=t.prime?r.red(t.prime):r.mont(this.p),this.zero=new r(0).toRed(this.red),this.one=new r(1).toRed(this.red),this.two=new r(2).toRed(this.red),this.n=t.n&&new r(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function c(e,t){this.curve=e,this.type=t,this.precomputed=null}t.exports=s,s.prototype.point=function(){throw Error("Not implemented")},s.prototype.validate=function(){throw Error("Not implemented")},s.prototype._fixedNafMul=function(e,t){o(e.precomputed);var r=e._getDoubles(),n=a(t,1,this._bitLength),i=(1<=s;l--)c=(c<<1)+n[l];u.push(c)}for(var f=this.jpoint(null,null,null),d=this.jpoint(null,null,null),h=i;h>0;h--){for(s=0;s=0;u--){for(var l=0;u>=0&&0===s[u];u--)l++;if(u>=0&&l++,c=c.dblp(l),u<0)break;var f=s[u];o(0!==f),c="affine"===e.type?f>0?c.mixedAdd(i[f-1>>1]):c.mixedAdd(i[-f-1>>1].neg()):f>0?c.add(i[f-1>>1]):c.add(i[-f-1>>1].neg())}return"affine"===e.type?c.toP():c},s.prototype._wnafMulAdd=function(e,t,r,n,o){var s,c,u,l=this._wnafT1,f=this._wnafT2,d=this._wnafT3,h=0;for(s=0;s=1;s-=2){var v=s-1,m=s;if(1!==l[v]||1!==l[m]){d[v]=a(r[v],l[v],this._bitLength),d[m]=a(r[m],l[m],this._bitLength),h=Math.max(d[v].length,h),h=Math.max(d[m].length,h);continue}var g=[t[v],null,null,t[m]];0===t[v].y.cmp(t[m].y)?(g[1]=t[v].add(t[m]),g[2]=t[v].toJ().mixedAdd(t[m].neg())):0===t[v].y.cmp(t[m].y.redNeg())?(g[1]=t[v].toJ().mixedAdd(t[m]),g[2]=t[v].add(t[m].neg())):(g[1]=t[v].toJ().mixedAdd(t[m]),g[2]=t[v].toJ().mixedAdd(t[m].neg()));var b=[-3,-1,-5,-7,0,7,5,1,3],y=i(r[v],r[m]);for(h=Math.max(y[0].length,h),d[v]=Array(h),d[m]=Array(h),c=0;c=0;s--){for(var k=0;s>=0;){var I=!0;for(c=0;c=0&&k++,S=S.dblp(k),s<0)break;for(c=0;c0?u=f[c][x-1>>1]:x<0&&(u=f[c][-x-1>>1].neg()),S="affine"===u.type?S.mixedAdd(u):S.add(u))}}for(s=0;s=Math.ceil((e.bitLength()+1)/t.step)},c.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,a=0;a{var r=e1(),n=eG(),a=S(),i=e2(),o=r.assert;function s(e){i.call(this,"short",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=[,,,,],this._endoWnafT2=[,,,,]}function c(e,t,r,a){i.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new n(t,16),this.y=new n(r,16),a&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function u(e,t,r,a){i.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===a?(this.x=this.curve.one,this.y=this.curve.one,this.z=new n(0)):(this.x=new n(t,16),this.y=new n(r,16),this.z=new n(a,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}a(s,i),t.exports=s,s.prototype._getEndomorphism=function(e){if(!(!this.zeroA||!this.g||!this.n||1!==this.p.modn(3))){if(e.beta)t=new n(e.beta,16).toRed(this.red);else{var t,r,a,i=this._getEndoRoots(this.p);t=(t=0>i[0].cmp(i[1])?i[0]:i[1]).toRed(this.red)}if(e.lambda)r=new n(e.lambda,16);else{var s=this._getEndoRoots(this.n);0===this.g.mul(s[0]).x.cmp(this.g.x.redMul(t))?r=s[0]:(r=s[1],o(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return a=e.basis?e.basis.map(function(e){return{a:new n(e.a,16),b:new n(e.b,16)}}):this._getEndoBasis(r),{beta:t,lambda:r,basis:a}}},s.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:n.mont(e),r=new n(2).toRed(t).redInvm(),a=r.redNeg(),i=new n(3).toRed(t).redNeg().redSqrt().redMul(r);return[a.redAdd(i).fromRed(),a.redSub(i).fromRed()]},s.prototype._getEndoBasis=function(e){for(var t,r,a,i,o,s,c,u,l,f=this.n.ushrn(Math.floor(this.n.bitLength()/2)),d=e,h=this.n.clone(),p=new n(1),v=new n(0),m=new n(0),g=new n(1),b=0;0!==d.cmpn(0);){var y=h.div(d);u=h.sub(y.mul(d)),l=m.sub(y.mul(p));var _=g.sub(y.mul(v));if(!a&&0>u.cmp(f))t=c.neg(),r=p,a=u.neg(),i=l;else if(a&&2==++b)break;c=u,h=d,d=u,m=p,p=l,g=v,v=_}o=u.neg(),s=l;var w=a.sqr().add(i.sqr());return o.sqr().add(s.sqr()).cmp(w)>=0&&(o=t,s=r),a.negative&&(a=a.neg(),i=i.neg()),o.negative&&(o=o.neg(),s=s.neg()),[{a:a,b:i},{a:o,b:s}]},s.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],a=n.b.mul(e).divRound(this.n),i=r.b.neg().mul(e).divRound(this.n),o=a.mul(r.a),s=i.mul(n.a),c=a.mul(r.b),u=i.mul(n.b);return{k1:e.sub(o).sub(s),k2:c.add(u).neg()}},s.prototype.pointFromX=function(e,t){(e=new n(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),a=r.redSqrt();if(0!==a.redSqr().redSub(r).cmp(this.zero))throw Error("invalid point");var i=a.fromRed().isOdd();return(t&&!i||!t&&i)&&(a=a.redNeg()),this.point(e,a)},s.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),a=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(a).cmpn(0)},s.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,a=this._endoWnafT2,i=0;i":""},c.prototype.isInfinity=function(){return this.inf},c.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e)||0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},c.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),a=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),i=a.redSqr().redISub(this.x.redAdd(this.x)),o=a.redMul(this.x.redSub(i)).redISub(this.y);return this.curve.point(i,o)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(e){return e=new n(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){var n=[this,t],a=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,a):this.curve._wnafMulAdd(1,n,a,2)},c.prototype.jmulAdd=function(e,t,r){var n=[this,t],a=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,a,!0):this.curve._wnafMulAdd(1,n,a,2,!0)},c.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},c.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},a(u,i.BasePoint),s.prototype.jpoint=function(e,t,r){return new u(this,e,t,r)},u.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},u.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},u.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),a=e.x.redMul(r),i=this.y.redMul(t.redMul(e.z)),o=e.y.redMul(r.redMul(this.z)),s=n.redSub(a),c=i.redSub(o);if(0===s.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),l=u.redMul(s),f=n.redMul(u),d=c.redSqr().redIAdd(l).redISub(f).redISub(f),h=c.redMul(f.redISub(d)).redISub(i.redMul(l)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(d,h,p)},u.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),a=this.y,i=e.y.redMul(t).redMul(this.z),o=r.redSub(n),s=a.redSub(i);if(0===o.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=o.redSqr(),u=c.redMul(o),l=r.redMul(c),f=s.redSqr().redIAdd(u).redISub(l).redISub(l),d=s.redMul(l.redISub(f)).redISub(a.redMul(u)),h=this.z.redMul(o);return this.curve.jpoint(f,d,h)},u.prototype.dblp=function(e){if(0===e||this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){var t,r=this;for(t=0;t=0)return!1;if(r.redIAdd(a),0===this.x.cmp(r))return!0}},u.prototype.inspect=function(){return this.isInfinity()?"":""},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}}),e4=p((e,t)=>{var r=eG(),n=S(),a=e2(),i=e1();function o(e){a.call(this,"mont",e),this.a=new r(e.a,16).toRed(this.red),this.b=new r(e.b,16).toRed(this.red),this.i4=new r(4).toRed(this.red).redInvm(),this.two=new r(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function s(e,t,n){a.BasePoint.call(this,e,"projective"),null===t&&null===n?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new r(t,16),this.z=new r(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}n(o,a),t.exports=o,o.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},n(s,a.BasePoint),o.prototype.decodePoint=function(e,t){return this.point(i.toArray(e,t),1)},o.prototype.point=function(e,t){return new s(this,e,t)},o.prototype.pointFromJSON=function(e){return s.fromJSON(this,e)},s.prototype.precompute=function(){},s.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},s.fromJSON=function(e,t){return new s(e,t[0],t[1]||e.one)},s.prototype.inspect=function(){return this.isInfinity()?"":""},s.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},s.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),a=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,a)},s.prototype.add=function(){throw Error("Not supported on Montgomery curve")},s.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),a=e.x.redAdd(e.z),i=e.x.redSub(e.z).redMul(r),o=a.redMul(n),s=t.z.redMul(i.redAdd(o).redSqr()),c=t.x.redMul(i.redISub(o).redSqr());return this.curve.point(s,c)},s.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),a=[];0!==t.cmpn(0);t.iushrn(1))a.push(t.andln(1));for(var i=a.length-1;i>=0;i--)0===a[i]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},s.prototype.mulAdd=function(){throw Error("Not supported on Montgomery curve")},s.prototype.jumlAdd=function(){throw Error("Not supported on Montgomery curve")},s.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},s.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},s.prototype.getX=function(){return this.normalize(),this.x.fromRed()}}),e6=p((e,t)=>{var r=e1(),n=eG(),a=S(),i=e2(),o=r.assert;function s(e){this.twisted=(0|e.a)!=1,this.mOneA=this.twisted&&(0|e.a)==-1,this.extended=this.mOneA,i.call(this,"edwards",e),this.a=new n(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new n(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new n(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),o(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=(0|e.c)==1}function c(e,t,r,a,o){i.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===a?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new n(t,16),this.y=new n(r,16),this.z=a?new n(a,16):this.curve.one,this.t=o&&new n(o,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}a(s,i),t.exports=s,s.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},s.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},s.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},s.prototype.pointFromX=function(e,t){(e=new n(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),a=this.c2.redSub(this.a.redMul(r)),i=this.one.redSub(this.c2.redMul(this.d).redMul(r)),o=a.redMul(i.redInvm()),s=o.redSqrt();if(0!==s.redSqr().redSub(o).cmp(this.zero))throw Error("invalid point");var c=s.fromRed().isOdd();return(t&&!c||!t&&c)&&(s=s.redNeg()),this.point(e,s)},s.prototype.pointFromY=function(e,t){(e=new n(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),a=r.redSub(this.c2),i=r.redMul(this.d).redMul(this.c2).redSub(this.a),o=a.redMul(i.redInvm());if(0===o.cmp(this.zero)){if(t)throw Error("invalid point");return this.point(this.zero,e)}var s=o.redSqrt();if(0!==s.redSqr().redSub(o).cmp(this.zero))throw Error("invalid point");return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},s.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),a=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(a)},a(c,i.BasePoint),s.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},s.prototype.point=function(e,t,r,n){return new c(this,e,t,r,n)},c.fromJSON=function(e,t){return new c(e,t[0],t[1],t[2])},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},c.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),a=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),i=n.redAdd(t),o=i.redSub(r),s=n.redSub(t),c=a.redMul(o),u=i.redMul(s),l=a.redMul(s),f=o.redMul(i);return this.curve.point(c,u,f,l)},c.prototype._projDbl=function(){var e,t,r,n,a,i,o=this.x.redAdd(this.y).redSqr(),s=this.x.redSqr(),c=this.y.redSqr();if(this.curve.twisted){var u=(n=this.curve._mulA(s)).redAdd(c);this.zOne?(e=o.redSub(s).redSub(c).redMul(u.redSub(this.curve.two)),t=u.redMul(n.redSub(c)),r=u.redSqr().redSub(u).redSub(u)):(a=this.z.redSqr(),i=u.redSub(a).redISub(a),e=o.redSub(s).redISub(c).redMul(i),t=u.redMul(n.redSub(c)),r=u.redMul(i))}else n=s.redAdd(c),a=this.curve._mulC(this.z).redSqr(),i=n.redSub(a).redSub(a),e=this.curve._mulC(o.redISub(n)).redMul(i),t=this.curve._mulC(n).redMul(s.redISub(c)),r=n.redMul(i);return this.curve.point(e,t,r)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),a=this.z.redMul(e.z.redAdd(e.z)),i=r.redSub(t),o=a.redSub(n),s=a.redAdd(n),c=r.redAdd(t),u=i.redMul(o),l=s.redMul(c),f=i.redMul(c),d=o.redMul(s);return this.curve.point(u,l,d,f)},c.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),a=n.redSqr(),i=this.x.redMul(e.x),o=this.y.redMul(e.y),s=this.curve.d.redMul(i).redMul(o),c=a.redSub(s),u=a.redAdd(s),l=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(i).redISub(o),f=n.redMul(c).redMul(l);return this.curve.twisted?(t=n.redMul(u).redMul(o.redSub(this.curve._mulA(i))),r=c.redMul(u)):(t=n.redMul(u).redMul(o.redSub(i)),r=this.curve._mulC(c).redMul(u)),this.curve.point(f,t,r)},c.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},c.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},c.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},c.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},c.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add}),e8=p(e=>{e.base=e2(),e.short=e3(),e.mont=e4(),e.edwards=e6()}),e5=p(e=>{var t=ep(),r=S();function n(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function a(e){return 1===e.length?"0"+e:e}function i(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}e.inherits=r,e.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e){if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/ig,"")).length%2!=0&&(e="0"+e),a=0;a>6|192:((i=e,o=a,(64512&i.charCodeAt(o))!=55296||o<0||o+1>=i.length||(64512&i.charCodeAt(o+1))!=56320)?r[n++]=s>>12|224:(s=65536+((1023&s)<<10)+(1023&e.charCodeAt(++a)),r[n++]=s>>18|240,r[n++]=s>>12&63|128),r[n++]=s>>6&63|128),r[n++]=63&s|128)}}else for(a=0;a>>0;return s},e.split32=function(e,t){for(var r=Array(4*e.length),n=0,a=0;n>>24,r[a+1]=i>>>16&255,r[a+2]=i>>>8&255,r[a+3]=255&i):(r[a+3]=i>>>24,r[a+2]=i>>>16&255,r[a+1]=i>>>8&255,r[a]=255&i)}return r},e.rotr32=function(e,t){return e>>>t|e<<32-t},e.rotl32=function(e,t){return e<>>32-t},e.sum32=function(e,t){return e+t>>>0},e.sum32_3=function(e,t,r){return e+t+r>>>0},e.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},e.sum32_5=function(e,t,r,n,a){return e+t+r+n+a>>>0},e.sum64=function(e,t,r,n){var a=e[t],i=n+e[t+1]>>>0;e[t]=(i>>0,e[t+1]=i},e.sum64_hi=function(e,t,r,n){return(t+n>>>0>>0},e.sum64_lo=function(e,t,r,n){return t+n>>>0},e.sum64_4_hi=function(e,t,r,n,a,i,o,s){var c,u=t;return e+r+a+o+(0+((u=u+n>>>0)>>0)>>0)>>0},e.sum64_4_lo=function(e,t,r,n,a,i,o,s){return t+n+i+s>>>0},e.sum64_5_hi=function(e,t,r,n,a,i,o,s,c,u){var l,f=t;return e+r+a+o+c+(0+((f=f+n>>>0)>>0)>>0)>>0)>>0},e.sum64_5_lo=function(e,t,r,n,a,i,o,s,c,u){return t+n+i+s+u>>>0},e.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},e.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},e.shr64_hi=function(e,t,r){return e>>>r},e.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}}),e7=p(e=>{var t=e5(),r=ep();function n(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}e.BlockHash=n,n.prototype.update=function(e,r){if(e=t.toArray(e,r),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=t.join32(e,0,e.length-n,this.endian);for(var a=0;a>>24&255,n[a++]=e>>>16&255,n[a++]=e>>>8&255,n[a++]=255&e}else for(n[a++]=255&e,n[a++]=e>>>8&255,n[a++]=e>>>16&255,n[a++]=e>>>24&255,n[a++]=0,n[a++]=0,n[a++]=0,n[a++]=0,i=8;i{var t=e5().rotr32;function r(e,t,r){return e&t^e&r^t&r}e.ft_1=function(e,t,n,a){return 0===e?t&n^~t&a:1===e||3===e?t^n^a:2===e?r(t,n,a):void 0},e.ch32=function(e,t,r){return e&t^~e&r},e.maj32=r,e.p32=function(e,t,r){return e^t^r},e.s0_256=function(e){return t(e,2)^t(e,13)^t(e,22)},e.s1_256=function(e){return t(e,6)^t(e,11)^t(e,25)},e.g0_256=function(e){return t(e,7)^t(e,18)^e>>>3},e.g1_256=function(e){return t(e,17)^t(e,19)^e>>>10}}),te=p((e,t)=>{var r=e5(),n=e7(),a=e9(),i=r.rotl32,o=r.sum32,s=r.sum32_5,c=a.ft_1,u=n.BlockHash,l=[1518500249,1859775393,2400959708,3395469782];function f(){if(!(this instanceof f))return new f;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=Array(80)}r.inherits(f,u),t.exports=f,f.blockSize=512,f.outSize=160,f.hmacStrength=80,f.padLength=64,f.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n{var r=e5(),n=e7(),a=e9(),i=ep(),o=r.sum32,s=r.sum32_4,c=r.sum32_5,u=a.ch32,l=a.maj32,f=a.s0_256,d=a.s1_256,h=a.g0_256,p=a.g1_256,v=n.BlockHash,m=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function g(){if(!(this instanceof g))return new g;v.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=m,this.W=Array(64)}r.inherits(g,v),t.exports=g,g.blockSize=512,g.outSize=256,g.hmacStrength=192,g.padLength=64,g.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n{var r=e5(),n=tt();function a(){if(!(this instanceof a))return new a;n.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}r.inherits(a,n),t.exports=a,a.blockSize=512,a.outSize=224,a.hmacStrength=192,a.padLength=64,a.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h.slice(0,7),"big"):r.split32(this.h.slice(0,7),"big")}}),tn=p((e,t)=>{var r=e5(),n=e7(),a=ep(),i=r.rotr64_hi,o=r.rotr64_lo,s=r.shr64_hi,c=r.shr64_lo,u=r.sum64,l=r.sum64_hi,f=r.sum64_lo,d=r.sum64_4_hi,h=r.sum64_4_lo,p=r.sum64_5_hi,v=r.sum64_5_lo,m=n.BlockHash,g=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function b(){if(!(this instanceof b))return new b;m.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=g,this.W=Array(160)}r.inherits(b,m),t.exports=b,b.blockSize=1024,b.outSize=512,b.hmacStrength=192,b.padLength=128,b.prototype._prepareBlock=function(e,t){for(var r=this.W,n=0;n<32;n++)r[n]=e[t+n];for(;n{var r=e5(),n=tn();function a(){if(!(this instanceof a))return new a;n.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}r.inherits(a,n),t.exports=a,a.blockSize=1024,a.outSize=384,a.hmacStrength=192,a.padLength=128,a.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h.slice(0,12),"big"):r.split32(this.h.slice(0,12),"big")}}),ti=p(e=>{e.sha1=te(),e.sha224=tr(),e.sha256=tt(),e.sha384=ta(),e.sha512=tn()}),to=p(e=>{var t=e5(),r=e7(),n=t.rotl32,a=t.sum32,i=t.sum32_3,o=t.sum32_4,s=r.BlockHash;function c(){if(!(this instanceof c))return new c;s.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function u(e,t,r,n){return e<=15?t^r^n:e<=31?t&r|~t&n:e<=47?(t|~r)^n:e<=63?t&n|r&~n:t^(r|~n)}t.inherits(c,s),e.ripemd160=c,c.blockSize=512,c.outSize=160,c.hmacStrength=192,c.padLength=64,c.prototype._update=function(e,t){for(var r=this.h[0],s=this.h[1],c=this.h[2],p=this.h[3],v=this.h[4],m=r,g=s,b=c,y=p,_=v,w=0;w<80;w++){var S,E,k=a(n(o(r,u(w,s,c,p),e[l[w]+t],(S=w)<=15?0:S<=31?1518500249:S<=47?1859775393:S<=63?2400959708:2840853838),d[w]),v);r=v,v=p,p=n(c,10),c=s,s=k,k=a(n(o(m,u(79-w,g,b,y),e[f[w]+t],(E=w)<=15?1352829926:E<=31?1548603684:E<=47?1836072691:E<=63?2053994217:0),h[w]),_),m=_,_=y,y=n(b,10),b=g,g=k}k=i(this.h[1],c,y),this.h[1]=i(this.h[2],p,_),this.h[2]=i(this.h[3],v,m),this.h[3]=i(this.h[4],r,g),this.h[4]=i(this.h[0],s,b),this.h[0]=k},c.prototype._digest=function(e){return"hex"===e?t.toHex32(this.h,"little"):t.split32(this.h,"little")};var l=[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],f=[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],d=[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],h=[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]}),ts=p((e,t)=>{var r=e5(),n=ep();function a(e,t,n){if(!(this instanceof a))return new a(e,t,n);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(r.toArray(t,n))}t.exports=a,a.prototype._init=function(e){e.length>this.blockSize&&(e=new this.Hash().update(e).digest()),n(e.length<=this.blockSize);for(var t=e.length;t{e.utils=e5(),e.common=e7(),e.sha=ti(),e.ripemd=to(),e.hmac=ts(),e.sha1=e.sha.sha1,e.sha256=e.sha.sha256,e.sha224=e.sha.sha224,e.sha384=e.sha.sha384,e.sha512=e.sha.sha512,e.ripemd160=e.ripemd.ripemd160}),tu=p((e,t)=>{t.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}}),tl=p(e=>{var t,r=tc(),n=e8(),a=e1().assert;function i(e){"short"===e.type?this.curve=new n.short(e):"edwards"===e.type?this.curve=new n.edwards(e):this.curve=new n.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,a(this.g.validate(),"Invalid curve"),a(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function o(t,r){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){var n=new i(r);return Object.defineProperty(e,t,{configurable:!0,enumerable:!0,value:n}),n}})}e.PresetCurve=i,o("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:r.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),o("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:r.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),o("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:r.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),o("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:r.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),o("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:r.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),o("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:r.sha256,gRed:!1,g:["9"]}),o("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:r.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{t=tu()}catch(e){t=void 0}o("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:r.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",t]})}),tf=p((e,t)=>{var r=tc(),n=e0(),a=ep();function i(e){if(!(this instanceof i))return new i(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=n.toArray(e.entropy,e.entropyEnc||"hex"),r=n.toArray(e.nonce,e.nonceEnc||"hex"),o=n.toArray(e.pers,e.persEnc||"hex");a(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,o)}t.exports=i,i.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var a=0;a=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},i.prototype.generate=function(e,t,r,a){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");"string"!=typeof t&&(a=r,r=t,t=null),r&&(r=n.toArray(r,a||"hex"),this._update(r));for(var i=[];i.length{var r=eG(),n=e1().assert;function a(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}t.exports=a,a.fromPublic=function(e,t,r){return t instanceof a?t:new a(e,{pub:t,pubEnc:r})},a.fromPrivate=function(e,t,r){return t instanceof a?t:new a(e,{priv:t,privEnc:r})},a.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},a.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},a.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},a.prototype._importPrivate=function(e,t){this.priv=new r(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},a.prototype._importPublic=function(e,t){if(e.x||e.y){"mont"===this.ec.curve.type?n(e.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&n(e.x&&e.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(e.x,e.y);return}this.pub=this.ec.curve.decodePoint(e,t)},a.prototype.derive=function(e){return e.validate()||n(e.validate(),"public point not validated"),e.mul(this.priv).getX()},a.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},a.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},a.prototype.inspect=function(){return""}}),th=p((e,t)=>{var r=eG(),n=e1(),a=n.assert;function i(e,t){if(e instanceof i)return e;this._importDER(e,t)||(a(e.r&&e.s,"Signature without r or s"),this.r=new r(e.r,16),this.s=new r(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function o(){this.place=0}function s(e,t){var r=e[t.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var a=0,i=0,o=t.place;i>>=0;return!(a<=127)&&(t.place=o,a)}function c(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}t.exports=i,i.prototype._importDER=function(e,t){e=n.toArray(e,t);var a=new o;if(48!==e[a.place++])return!1;var i=s(e,a);if(!1===i||i+a.place!==e.length||2!==e[a.place++])return!1;var c=s(e,a);if(!1===c)return!1;var u=e.slice(a.place,c+a.place);if(a.place+=c,2!==e[a.place++])return!1;var l=s(e,a);if(!1===l||e.length!==l+a.place)return!1;var f=e.slice(a.place,l+a.place);if(0===u[0]){if(!(128&u[1]))return!1;u=u.slice(1)}if(0===f[0]){if(!(128&f[1]))return!1;f=f.slice(1)}return this.r=new r(u),this.s=new r(f),this.recoveryParam=null,!0},i.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=c(t),r=c(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var a=[2];u(a,t.length),(a=a.concat(t)).push(2),u(a,r.length);var i=a.concat(r),o=[48];return u(o,i.length),o=o.concat(i),n.encode(o,e)}}),tp=p((e,t)=>{var r=eG(),n=tf(),a=e1(),i=tl(),o=eW(),s=a.assert,c=td(),u=th();function l(e){if(!(this instanceof l))return new l(e);"string"==typeof e&&(s(Object.prototype.hasOwnProperty.call(i,e),"Unknown curve "+e),e=i[e]),e instanceof i.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}t.exports=l,l.prototype.keyPair=function(e){return new c(this,e)},l.prototype.keyFromPrivate=function(e,t){return c.fromPrivate(this,e,t)},l.prototype.keyFromPublic=function(e,t){return c.fromPublic(this,e,t)},l.prototype.genKeyPair=function(e){e||(e={});for(var t=new n({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||o(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),a=this.n.byteLength(),i=this.n.sub(new r(2));;){var s=new r(t.generate(a));if(!(s.cmp(i)>0))return s.iaddn(1),this.keyFromPrivate(s)}},l.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},l.prototype.sign=function(e,t,a,i){"object"==typeof a&&(i=a,a=null),i||(i={}),t=this.keyFromPrivate(t,a),e=this._truncateToN(new r(e,16));for(var o=this.n.byteLength(),s=t.getPrivate().toArray("be",o),c=e.toArray("be",o),l=new n({hash:this.hash,entropy:s,nonce:c,pers:i.pers,persEnc:i.persEnc||"utf8"}),f=this.n.sub(new r(1)),d=0;;d++){var h=i.k?i.k(d):new r(l.generate(this.n.byteLength()));if(!(0>=(h=this._truncateToN(h,!0)).cmpn(1)||h.cmp(f)>=0)){var p=this.g.mul(h);if(!p.isInfinity()){var v=p.getX(),m=v.umod(this.n);if(0!==m.cmpn(0)){var g=h.invm(this.n).mul(m.mul(t.getPrivate()).iadd(e));if(0!==(g=g.umod(this.n)).cmpn(0)){var b=(p.getY().isOdd()?1:0)|(0!==v.cmp(m)?2:0);return i.canonical&&g.cmp(this.nh)>0&&(g=this.n.sub(g),b^=1),new u({r:m,s:g,recoveryParam:b})}}}}}},l.prototype.verify=function(e,t,n,a){e=this._truncateToN(new r(e,16)),n=this.keyFromPublic(n,a);var i=(t=new u(t,"hex")).r,o=t.s;if(0>i.cmpn(1)||i.cmp(this.n)>=0||0>o.cmpn(1)||o.cmp(this.n)>=0)return!1;var s,c=o.invm(this.n),l=c.mul(e).umod(this.n),f=c.mul(i).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(l,n.getPublic(),f)).isInfinity()&&s.eqXToP(i):!(s=this.g.mulAdd(l,n.getPublic(),f)).isInfinity()&&0===s.getX().umod(this.n).cmp(i)},l.prototype.recoverPubKey=function(e,t,n,a){s((3&n)===n,"The recovery param is more than two bits"),t=new u(t,a);var i=this.n,o=new r(e),c=t.r,l=t.s,f=1&n,d=n>>1;if(c.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw Error("Unable to find sencond key candinate");c=d?this.curve.pointFromX(c.add(this.curve.n),f):this.curve.pointFromX(c,f);var h=t.r.invm(i),p=i.sub(o).mul(h).umod(i),v=l.mul(h).umod(i);return this.g.mulAdd(p,c,v)},l.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new u(t,n)).recoveryParam)return t.recoveryParam;for(var a,i=0;i<4;i++){try{a=this.recoverPubKey(e,t,i)}catch(e){continue}if(a.eq(r))return i}throw Error("Unable to find valid recovery factor")}}),tv=p((e,t)=>{var r=e1(),n=r.assert,a=r.parseBytes,i=r.cachedProperty;function o(e,t){this.eddsa=e,this._secret=a(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=a(t.pub)}o.fromPublic=function(e,t){return t instanceof o?t:new o(e,{pub:t})},o.fromSecret=function(e,t){return t instanceof o?t:new o(e,{secret:t})},o.prototype.secret=function(){return this._secret},i(o,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),i(o,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),i(o,"privBytes",function(){var e=this.eddsa,t=this.hash(),r=e.encodingLength-1,n=t.slice(0,e.encodingLength);return n[0]&=248,n[r]&=127,n[r]|=64,n}),i(o,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),i(o,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),i(o,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),o.prototype.sign=function(e){return n(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},o.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},o.prototype.getSecret=function(e){return n(this._secret,"KeyPair is public only"),r.encode(this.secret(),e)},o.prototype.getPublic=function(e){return r.encode(this.pubBytes(),e)},t.exports=o}),tm=p((e,t)=>{var r=eG(),n=e1(),a=n.assert,i=n.cachedProperty,o=n.parseBytes;function s(e,t){this.eddsa=e,"object"!=typeof t&&(t=o(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),a(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof r&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}i(s,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),i(s,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),i(s,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),i(s,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),s.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},s.prototype.toHex=function(){return n.encode(this.toBytes(),"hex").toUpperCase()},t.exports=s}),tg=p((e,t)=>{var r=tc(),n=tl(),a=e1(),i=a.assert,o=a.parseBytes,s=tv(),c=tm();function u(e){if(i("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof u))return new u(e);e=n[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=r.sha512}t.exports=u,u.prototype.sign=function(e,t){e=o(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),a=this.g.mul(n),i=this.encodePoint(a),s=this.hashInt(i,r.pubBytes(),e).mul(r.priv()),c=n.add(s).umod(this.curve.n);return this.makeSignature({R:a,S:c,Rencoded:i})},u.prototype.verify=function(e,t,r){e=o(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),a=this.hashInt(t.Rencoded(),n.pubBytes(),e),i=this.g.mul(t.S());return t.R().add(n.pub().mul(a)).eq(i)},u.prototype.hashInt=function(){for(var e=this.hash(),t=0;t{e.version=eQ().version,e.utils=e1(),e.rand=eW(),e.curve=e8(),e.curves=tl(),e.ec=tp(),e.eddsa=tg()}),ty=p((e,t)=>{var r,n=y(),a=n.Buffer,i={};for(r in n)n.hasOwnProperty(r)&&("SlowBuffer"===r||"Buffer"===r||(i[r]=n[r]));var s=i.Buffer={};for(r in a)a.hasOwnProperty(r)&&("allocUnsafe"===r||"allocUnsafeSlow"===r||(s[r]=a[r]));if(i.Buffer.prototype=a.prototype,s.from&&s.from!==Uint8Array.from||(s.from=function(e,t,r){if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type '+typeof e);if(e&&typeof e.length>"u")throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);return a(e,t,r)}),s.alloc||(s.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError('The "size" argument must be of type number. Received type '+typeof e);if(e<0||e>=2147483648)throw RangeError('The value "'+e+'" is invalid for option "size"');var n=a(e);return t&&0!==t.length?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n}),!i.kStringMaxLength)try{i.kStringMaxLength=o.binding("buffer").kStringMaxLength}catch(e){}i.constants||(i.constants={MAX_LENGTH:i.kMaxLength},i.kStringMaxLength&&(i.constants.MAX_STRING_LENGTH=i.kStringMaxLength)),t.exports=i}),t_=p(e=>{var t=S();function r(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function n(e,t){this.path=e,this.rethrow(t)}e.Reporter=r,r.prototype.isError=function(e){return e instanceof n},r.prototype.save=function(){let e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},r.prototype.restore=function(e){let t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},r.prototype.enterKey=function(e){return this._reporterState.path.push(e)},r.prototype.exitKey=function(e){let t=this._reporterState;t.path=t.path.slice(0,e-1)},r.prototype.leaveKey=function(e,t,r){let n=this._reporterState;this.exitKey(e),null!==n.obj&&(n.obj[t]=r)},r.prototype.path=function(){return this._reporterState.path.join("/")},r.prototype.enterObject=function(){let e=this._reporterState,t=e.obj;return e.obj={},t},r.prototype.leaveObject=function(e){let t=this._reporterState,r=t.obj;return t.obj=e,r},r.prototype.error=function(e){let t,r=this._reporterState,a=e instanceof n;if(t=a?e:new n(r.path.map(function(e){return"["+JSON.stringify(e)+"]"}).join(""),e.message||e,e.stack),!r.options.partial)throw t;return a||r.errors.push(t),t},r.prototype.wrapResult=function(e){let t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},t(n,Error),n.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,n),!this.stack)try{throw Error(this.message)}catch(e){this.stack=e.stack}return this}}),tw=p(e=>{var t=S(),r=t_().Reporter,n=ty().Buffer;function a(e,t){if(r.call(this,t),!n.isBuffer(e)){this.error("Input not Buffer");return}this.base=e,this.offset=0,this.length=e.length}function i(e,t){if(Array.isArray(e))this.length=0,this.value=e.map(function(e){return i.isEncoderBuffer(e)||(e=new i(e,t)),this.length+=e.length,e},this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=n.byteLength(e);else{if(!n.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}t(a,r),e.DecoderBuffer=a,a.isDecoderBuffer=function(e){return e instanceof a||"object"==typeof e&&n.isBuffer(e.base)&&"DecoderBuffer"===e.constructor.name&&"number"==typeof e.offset&&"number"==typeof e.length&&"function"==typeof e.save&&"function"==typeof e.restore&&"function"==typeof e.isEmpty&&"function"==typeof e.readUInt8&&"function"==typeof e.skip&&"function"==typeof e.raw},a.prototype.save=function(){return{offset:this.offset,reporter:r.prototype.save.call(this)}},a.prototype.restore=function(e){let t=new a(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,r.prototype.restore.call(this,e.reporter),t},a.prototype.isEmpty=function(){return this.offset===this.length},a.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},a.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");let r=new a(this.base);return r._reporterState=this._reporterState,r.offset=this.offset,r.length=this.offset+e,this.offset+=e,r},a.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},e.EncoderBuffer=i,i.isEncoderBuffer=function(e){return e instanceof i||"object"==typeof e&&"EncoderBuffer"===e.constructor.name&&"number"==typeof e.length&&"function"==typeof e.join},i.prototype.join=function(e,t){return e||(e=n.alloc(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(r){r.join(e,t),t+=r.length}):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):n.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}}),tS=p((e,t)=>{var r=t_().Reporter,n=tw().EncoderBuffer,a=tw().DecoderBuffer,i=ep(),o=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],s=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(o);function c(e,t,r){let n={};this._baseState=n,n.name=r,n.enc=e,n.parent=t||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n.default=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}t.exports=c;var u=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];c.prototype.clone=function(){let e=this._baseState,t={};u.forEach(function(r){t[r]=e[r]});let r=new this.constructor(t.parent);return r._baseState=t,r},c.prototype._wrap=function(){let e=this._baseState;s.forEach(function(t){this[t]=function(){let r=new this.constructor(this);return e.children.push(r),r[t].apply(r,arguments)}},this)},c.prototype._init=function(e){let t=this._baseState;i(null===t.parent),e.call(this),t.children=t.children.filter(function(e){return e._baseState.parent===this},this),i.equal(t.children.length,1,"Root node can have only one child")},c.prototype._useArgs=function(e){let t=this._baseState,r=e.filter(function(e){return e instanceof this.constructor},this);e=e.filter(function(e){return!(e instanceof this.constructor)},this),0!==r.length&&(i(null===t.children),t.children=r,r.forEach(function(e){e._baseState.parent=this},this)),0!==e.length&&(i(null===t.args),t.args=e,t.reverseArgs=e.map(function(e){if("object"!=typeof e||e.constructor!==Object)return e;let t={};return Object.keys(e).forEach(function(r){r==(0|r)&&(r|=0),t[e[r]]=r}),t}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(e){c.prototype[e]=function(){throw Error(e+" not implemented for encoding: "+this._baseState.enc)}}),o.forEach(function(e){c.prototype[e]=function(){let t=this._baseState,r=Array.prototype.slice.call(arguments);return i(null===t.tag),t.tag=e,this._useArgs(r),this}}),c.prototype.use=function(e){i(e);let t=this._baseState;return i(null===t.use),t.use=e,this},c.prototype.optional=function(){return this._baseState.optional=!0,this},c.prototype.def=function(e){let t=this._baseState;return i(null===t.default),t.default=e,t.optional=!0,this},c.prototype.explicit=function(e){let t=this._baseState;return i(null===t.explicit&&null===t.implicit),t.explicit=e,this},c.prototype.implicit=function(e){let t=this._baseState;return i(null===t.explicit&&null===t.implicit),t.implicit=e,this},c.prototype.obj=function(){let e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},c.prototype.key=function(e){let t=this._baseState;return i(null===t.key),t.key=e,this},c.prototype.any=function(){return this._baseState.any=!0,this},c.prototype.choice=function(e){let t=this._baseState;return i(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map(function(t){return e[t]})),this},c.prototype.contains=function(e){let t=this._baseState;return i(null===t.use),t.contains=e,this},c.prototype._decode=function(e,t){let r,n=this._baseState;if(null===n.parent)return e.wrapResult(n.children[0]._decode(e,t));let i=n.default,o=!0,s=null;if(null!==n.key&&(s=e.enterKey(n.key)),n.optional){let r=null;if(null!==n.explicit?r=n.explicit:null!==n.implicit?r=n.implicit:null!==n.tag&&(r=n.tag),null!==r||n.any){if(o=this._peekTag(e,r,n.any),e.isError(o))return o}else{let r=e.save();try{null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),o=!0}catch(e){o=!1}e.restore(r)}}if(n.obj&&o&&(r=e.enterObject()),o){if(null!==n.explicit){let t=this._decodeTag(e,n.explicit);if(e.isError(t))return t;e=t}let r=e.offset;if(null===n.use&&null===n.choice){let t;n.any&&(t=e.save());let r=this._decodeTag(e,null!==n.implicit?n.implicit:n.tag,n.any);if(e.isError(r))return r;n.any?i=e.raw(t):e=r}if(t&&t.track&&null!==n.tag&&t.track(e.path(),r,e.length,"tagged"),t&&t.track&&null!==n.tag&&t.track(e.path(),e.offset,e.length,"content"),n.any||(i=null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t)),e.isError(i))return i;if(n.any||null!==n.choice||null===n.children||n.children.forEach(function(r){r._decode(e,t)}),n.contains&&("octstr"===n.tag||"bitstr"===n.tag)){let r=new a(i);i=this._getUse(n.contains,e._reporterState.obj)._decode(r,t)}}return n.obj&&o&&(i=e.leaveObject(r)),null!==n.key&&(null!==i||!0===o)?e.leaveKey(s,n.key,i):null!==s&&e.exitKey(s),i},c.prototype._decodeGeneric=function(e,t,r){let n=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,n.args[0],r):/str$/.test(e)?this._decodeStr(t,e,r):"objid"===e&&n.args?this._decodeObjid(t,n.args[0],n.args[1],r):"objid"===e?this._decodeObjid(t,null,null,r):"gentime"===e||"utctime"===e?this._decodeTime(t,e,r):"null_"===e?this._decodeNull(t,r):"bool"===e?this._decodeBool(t,r):"objDesc"===e?this._decodeStr(t,e,r):"int"===e||"enum"===e?this._decodeInt(t,n.args&&n.args[0],r):null!==n.use?this._getUse(n.use,t._reporterState.obj)._decode(t,r):t.error("unknown tag: "+e)},c.prototype._getUse=function(e,t){let r=this._baseState;return r.useDecoder=this._use(e,t),i(null===r.useDecoder._baseState.parent),r.useDecoder=r.useDecoder._baseState.children[0],r.implicit!==r.useDecoder._baseState.implicit&&(r.useDecoder=r.useDecoder.clone(),r.useDecoder._baseState.implicit=r.implicit),r.useDecoder},c.prototype._decodeChoice=function(e,t){let r=this._baseState,n=null,a=!1;return Object.keys(r.choice).some(function(i){let o=e.save(),s=r.choice[i];try{let r=s._decode(e,t);if(e.isError(r))return!1;n={type:i,value:r},a=!0}catch(t){return e.restore(o),!1}return!0},this),a?n:e.error("Choice not matched")},c.prototype._createEncoderBuffer=function(e){return new n(e,this.reporter)},c.prototype._encode=function(e,t,r){let n=this._baseState;if(null!==n.default&&n.default===e)return;let a=this._encodeValue(e,t,r);if(void 0!==a&&!this._skipDefault(a,t,r))return a},c.prototype._encodeValue=function(e,t,n){let a=this._baseState;if(null===a.parent)return a.children[0]._encode(e,t||new r);let i=null;if(this.reporter=t,a.optional&&void 0===e){if(null===a.default)return;e=a.default}let o=null,s=!1;if(a.any)i=this._createEncoderBuffer(e);else if(a.choice)i=this._encodeChoice(e,t);else if(a.contains)o=this._getUse(a.contains,n)._encode(e,t),s=!0;else if(a.children)o=a.children.map(function(r){if("null_"===r._baseState.tag)return r._encode(null,t,e);if(null===r._baseState.key)return t.error("Child should have a key");let n=t.enterKey(r._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");let a=r._encode(e[r._baseState.key],t,e);return t.leaveKey(n),a},this).filter(function(e){return e}),o=this._createEncoderBuffer(o);else if("seqof"===a.tag||"setof"===a.tag){if(!(a.args&&1===a.args.length))return t.error("Too many args for : "+a.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");let r=this.clone();r._baseState.implicit=null,o=this._createEncoderBuffer(e.map(function(r){let n=this._baseState;return this._getUse(n.args[0],e)._encode(r,t)},r))}else null!==a.use?i=this._getUse(a.use,n)._encode(e,t):(o=this._encodePrimitive(a.tag,e),s=!0);if(!a.any&&null===a.choice){let e=null!==a.implicit?a.implicit:a.tag,r=null===a.implicit?"universal":"context";null===e?null===a.use&&t.error("Tag could be omitted only for .use()"):null===a.use&&(i=this._encodeComposite(e,s,r,o))}return null!==a.explicit&&(i=this._encodeComposite(a.explicit,!1,"context",i)),i},c.prototype._encodeChoice=function(e,t){let r=this._baseState,n=r.choice[e.type];return n||i(!1,e.type+" not found in "+JSON.stringify(Object.keys(r.choice))),n._encode(e.value,t)},c.prototype._encodePrimitive=function(e,t){let r=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&r.args)return this._encodeObjid(t,r.reverseArgs[0],r.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,r.args&&r.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw Error("Unsupported tag: "+e)},c.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},c.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)}}),tE=p(e=>{function t(e){let t={};return Object.keys(e).forEach(function(r){(0|r)==r&&(r|=0),t[e[r]]=r}),t}e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=t(e.tagClass),e.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},e.tagByName=t(e.tag)}),tk=p((e,t)=>{var r=S(),n=ty().Buffer,a=tS(),i=tE();function o(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new s,this.tree._init(e.body)}function s(e){a.call(this,"der",e)}function c(e){return e<10?"0"+e:e}t.exports=o,o.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},r(s,a),s.prototype._encodeComposite=function(e,t,r,a){let o=function(e,t,r,n){let a;if("seqof"===e?e="seq":"setof"===e&&(e="set"),i.tagByName.hasOwnProperty(e))a=i.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return n.error("Unknown tag: "+e);a=e}return a>=31?n.error("Multi-octet tag encoding unsupported"):(t||(a|=32),a|=i.tagClassByName[r||"universal"]<<6)}(e,t,r,this.reporter);if(a.length<128){let e=n.alloc(2);return e[0]=o,e[1]=a.length,this._createEncoderBuffer([e,a])}let s=1;for(let e=a.length;e>=256;e>>=8)s++;let c=n.alloc(2+s);c[0]=o,c[1]=128|s;for(let e=1+s,t=a.length;t>0;e--,t>>=8)c[e]=255&t;return this._createEncoderBuffer([c,a])},s.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"!==t)return"numstr"===t?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===t?this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(t)?this._createEncoderBuffer(e):"objDesc"===t?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+t+" unsupported");{let t=n.alloc(2*e.length);for(let r=0;r=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}let a=0;for(let t=0;t=128;r>>=7)a++}let i=n.alloc(a),o=i.length-1;for(let t=e.length-1;t>=0;t--){let r=e[t];for(i[o--]=127&r;(r>>=7)>0;)i[o--]=128|127&r}return this._createEncoderBuffer(i)},s.prototype._encodeTime=function(e,t){let r,n=new Date(e);return"gentime"===t?r=[c(n.getUTCFullYear()),c(n.getUTCMonth()+1),c(n.getUTCDate()),c(n.getUTCHours()),c(n.getUTCMinutes()),c(n.getUTCSeconds()),"Z"].join(""):"utctime"===t?r=[c(n.getUTCFullYear()%100),c(n.getUTCMonth()+1),c(n.getUTCDate()),c(n.getUTCHours()),c(n.getUTCMinutes()),c(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},s.prototype._encodeNull=function(){return this._createEncoderBuffer("")},s.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!n.isBuffer(e)){let t=e.toArray();!e.sign&&128&t[0]&&t.unshift(0),e=n.from(t)}if(n.isBuffer(e)){let t=e.length;0===e.length&&t++;let r=n.alloc(t);return e.copy(r),0===e.length&&(r[0]=0),this._createEncoderBuffer(r)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);let r=1;for(let t=e;t>=256;t>>=8)r++;let a=Array(r);for(let t=a.length-1;t>=0;t--)a[t]=255&e,e>>=8;return 128&a[0]&&a.unshift(0),this._createEncoderBuffer(n.from(a))},s.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},s.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},s.prototype._skipDefault=function(e,t,r){let n=this._baseState,a;if(null===n.default)return!1;let i=e.join();if(void 0===n.defaultBuffer&&(n.defaultBuffer=this._encodeValue(n.default,t,r).join()),i.length!==n.defaultBuffer.length)return!1;for(a=0;a{var r=S(),n=tk();function a(e){n.call(this,e),this.enc="pem"}r(a,n),t.exports=a,a.prototype.encode=function(e,t){let r=n.prototype.encode.call(this,e).toString("base64"),a=["-----BEGIN "+t.label+"-----"];for(let e=0;e{e.der=tk(),e.pem=tI()}),tO=p((e,t)=>{var r=S(),n=eG(),a=tw().DecoderBuffer,i=tS(),o=tE();function s(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new c,this.tree._init(e.body)}function c(e){i.call(this,"der",e)}function u(e,t){let r=e.readUInt8(t);if(e.isError(r))return r;let n=o.tagClass[r>>6],a=(32&r)==0;if((31&r)==31){let n=r;for(r=0;(128&n)==128;){if(n=e.readUInt8(t),e.isError(n))return n;r<<=7,r|=127&n}}else r&=31;let i=o.tag[r];return{cls:n,primitive:a,tag:r,tagStr:i}}function l(e,t,r){let n=e.readUInt8(r);if(e.isError(n))return n;if(!t&&128===n)return null;if(!(128&n))return n;let a=127&n;if(a>4)return e.error("length octect is too long");n=0;for(let t=0;t{var r=S(),n=ty().Buffer,a=tO();function i(e){a.call(this,e),this.enc="pem"}r(i,a),t.exports=i,i.prototype.decode=function(e,t){let r=e.toString().split(/[\r\n]+/g),i=t.label.toUpperCase(),o=/^-----(BEGIN|END) ([^-]+)-----$/,s=-1,c=-1;for(let e=0;e{e.der=tO(),e.pem=tT()}),tM=p(e=>{var t=tx(),r=tA(),n=S();function a(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}e.define=function(e,t){return new a(e,t)},a.prototype._createNamed=function(e){let t=this.name;function r(e){this._initNamed(e,t)}return n(r,e),r.prototype._initNamed=function(t,r){e.call(this,t,r)},new r(this)},a.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(r[e])),this.decoders[e]},a.prototype.decode=function(e,t,r){return this._getDecoder(t).decode(e,r)},a.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(t[e])),this.encoders[e]},a.prototype.encode=function(e,t,r){return this._getEncoder(t).encode(e,r)}}),tR=p(e=>{e.Reporter=t_().Reporter,e.DecoderBuffer=tw().DecoderBuffer,e.EncoderBuffer=tw().EncoderBuffer,e.Node=tS()}),tC=p(e=>{e._reverse=function(e){let t={};return Object.keys(e).forEach(function(r){(0|r)==r&&(r|=0),t[e[r]]=r}),t},e.der=tE()}),tj=p(e=>{e.bignum=eG(),e.define=tM().define,e.base=tR(),e.constants=tC(),e.decoders=tA(),e.encoders=tx()}),tN=p((e,t)=>{var r=tj(),n=r.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),a=r.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),i=r.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),o=r.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(i),this.key("subjectPublicKey").bitstr())}),s=r.define("RelativeDistinguishedName",function(){this.setof(a)}),c=r.define("RDNSequence",function(){this.seqof(s)}),u=r.define("Name",function(){this.choice({rdnSequence:this.use(c)})}),l=r.define("Validity",function(){this.seq().obj(this.key("notBefore").use(n),this.key("notAfter").use(n))}),f=r.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),d=r.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(i),this.key("issuer").use(u),this.key("validity").use(l),this.key("subject").use(u),this.key("subjectPublicKeyInfo").use(o),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(f).optional())}),h=r.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(d),this.key("signatureAlgorithm").use(i),this.key("signatureValue").bitstr())});t.exports=h}),tP=p(e=>{var t=tj();e.certificate=tN();var r=t.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});e.RSAPrivateKey=r;var n=t.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});e.RSAPublicKey=n;var a=t.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(i),this.key("subjectPublicKey").bitstr())});e.PublicKey=a;var i=t.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),o=t.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(i),this.key("subjectPrivateKey").octstr())});e.PrivateKey=o;var s=t.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});e.EncryptedPrivateKey=s;var c=t.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});e.DSAPrivateKey=c,e.DSAparam=t.define("DSAparam",function(){this.int()});var u=t.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(l),this.key("publicKey").optional().explicit(1).bitstr())});e.ECPrivateKey=u;var l=t.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});e.signature=t.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})}),tD=p((e,t)=>{t.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}}),tL=p((e,t)=>{var r=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,n=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,a=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,i=eD(),o=eB(),s=_().Buffer;t.exports=function(e,t){var c,u=e.toString(),l=u.match(r);if(l){var f="aes"+l[1],d=s.from(l[2],"hex"),h=s.from(l[3].replace(/[\r\n]/g,""),"base64"),p=i(t,d.slice(0,8),parseInt(l[1],10)).key,v=[],m=o.createDecipheriv(f,p,d);v.push(m.update(h)),v.push(m.final()),c=s.concat(v)}else{var g=u.match(a);c=s.from(g[2].replace(/[\r\n]/g,""),"base64")}return{tag:u.match(n)[1],data:c}}}),tF=p((e,t)=>{var r=tP(),n=tD(),a=tL(),i=eB(),o=ed(),s=_().Buffer;function c(e){"object"!=typeof e||s.isBuffer(e)||(b=e.passphrase,e=e.key),"string"==typeof e&&(e=s.from(e));var t,c,u,l,f,d,h,p,v,m,g,b,y,_,w=a(e,b),S=w.tag,E=w.data;switch(S){case"CERTIFICATE":_=r.certificate.decode(E,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(_||(_=r.PublicKey.decode(E,"der")),y=_.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPublicKey.decode(_.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return _.subjectPrivateKey=_.subjectPublicKey,{type:"ec",data:_};case"1.2.840.10040.4.1":return _.algorithm.params.pub_key=r.DSAparam.decode(_.subjectPublicKey.data,"der"),{type:"dsa",data:_.algorithm.params};default:throw Error("unknown key id "+y)}case"ENCRYPTED PRIVATE KEY":t=E=r.EncryptedPrivateKey.decode(E,"der"),c=b,u=t.algorithm.decrypt.kde.kdeparams.salt,l=parseInt(t.algorithm.decrypt.kde.kdeparams.iters.toString(),10),f=n[t.algorithm.decrypt.cipher.algo.join(".")],d=t.algorithm.decrypt.cipher.iv,h=t.subjectPrivateKey,p=parseInt(f.split("-")[1],10)/8,v=o.pbkdf2Sync(c,u,l,p,"sha1"),m=i.createDecipheriv(f,v,d),(g=[]).push(m.update(h)),g.push(m.final()),E=s.concat(g);case"PRIVATE KEY":switch(y=(_=r.PrivateKey.decode(E,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPrivateKey.decode(_.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:_.algorithm.curve,privateKey:r.ECPrivateKey.decode(_.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return _.algorithm.params.priv_key=r.DSAparam.decode(_.subjectPrivateKey,"der"),{type:"dsa",params:_.algorithm.params};default:throw Error("unknown key id "+y)}case"RSA PUBLIC KEY":return r.RSAPublicKey.decode(E,"der");case"RSA PRIVATE KEY":return r.RSAPrivateKey.decode(E,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:r.DSAPrivateKey.decode(E,"der")};case"EC PRIVATE KEY":return{curve:(E=r.ECPrivateKey.decode(E,"der")).parameters.value,privateKey:E.privateKey};default:throw Error("unknown key type "+S)}}t.exports=c,c.signature=r.signature}),tB=p((e,t)=>{t.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}}),tU=p((e,t)=>{var r=_().Buffer,n=ea(),a=e$(),i=tb().ec,o=eX(),s=tF(),c=tB();function u(e,t,a,i){if((e=r.from(e.toArray())).length0&&r.ishrn(n),r}function f(e,t,a){var i,o;do{for(i=r.alloc(0);8*i.length{var r=_().Buffer,n=eX(),a=tb().ec,i=tF(),o=tB();function s(e,t){if(0>=e.cmpn(0)||e.cmp(t)>=t)throw Error("invalid sig")}t.exports=function(e,t,c,u,l){var f,d,h,p,v,m,g,b,y,_,w,S=i(c);if("ec"===S.type){if("ecdsa"!==u&&"ecdsa/rsa"!==u)throw Error("wrong public key type");return function(e,t,r){var n=o[r.data.algorithm.curve.join(".")];if(!n)throw Error("unknown curve "+r.data.algorithm.curve.join("."));var i=new a(n),s=r.data.subjectPrivateKey.data;return i.verify(t,e,s)}(e,t,S)}if("dsa"===S.type){if("dsa"!==u)throw Error("wrong public key type");return f=e,d=t,h=S.data.p,p=S.data.q,v=S.data.g,m=S.data.pub_key,b=(g=i.signature.decode(f,"der")).s,y=g.r,s(b,p),s(y,p),_=n.mont(h),w=b.invm(p),0===v.toRed(_).redPow(new n(d).mul(w).mod(p)).fromRed().mul(m.toRed(_).redPow(y.mul(w).mod(p)).fromRed()).mod(h).mod(p).cmp(y)}if("rsa"!==u&&"ecdsa/rsa"!==u)throw Error("wrong public key type");t=r.concat([l,t]);for(var E=S.modulus.byteLength(),k=[1],I=0;t.length+k.length+2{var r=_().Buffer,n=et(),a=z(),i=S(),o=tU(),s=tz(),c=ei();function u(e){a.Writable.call(this);var t=c[e];if(!t)throw Error("Unknown message digest");this._hashType=t.hash,this._hash=n(t.hash),this._tag=t.id,this._signType=t.sign}function l(e){a.Writable.call(this);var t=c[e];if(!t)throw Error("Unknown message digest");this._hash=n(t.hash),this._tag=t.id,this._signType=t.sign}function f(e){return new u(e)}function d(e){return new l(e)}Object.keys(c).forEach(function(e){c[e].id=r.from(c[e].id,"hex"),c[e.toLowerCase()]=c[e]}),i(u,a.Writable),u.prototype._write=function(e,t,r){this._hash.update(e),r()},u.prototype.update=function(e,t){return"string"==typeof e&&(e=r.from(e,t)),this._hash.update(e),this},u.prototype.sign=function(e,t){this.end();var r=o(this._hash.digest(),e,this._hashType,this._signType,this._tag);return t?r.toString(t):r},i(l,a.Writable),l.prototype._write=function(e,t,r){this._hash.update(e),r()},l.prototype.update=function(e,t){return"string"==typeof e&&(e=r.from(e,t)),this._hash.update(e),this},l.prototype.verify=function(e,t,n){return"string"==typeof t&&(t=r.from(t,n)),this.end(),s(t,this._hash.digest(),e,this._signType,this._tag)},t.exports={Sign:f,Verify:d,createSign:f,createVerify:d}}),tG=p((e,t)=>{var r=tb(),n=eG();t.exports=function(e){return new i(e)};var a={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function i(e){this.curveType=a[e],this.curveType||(this.curveType={name:e}),this.curve=new r.ec(this.curveType.name),this.keys=void 0}function o(e,t,r){Array.isArray(e)||(e=e.toArray());var n=new s(e);if(r&&n.length{var r=et(),n=_().Buffer;t.exports=function(e,t){for(var a,i=n.alloc(0),o=0;i.length{t.exports=function(e,t){for(var r=e.length,n=-1;++n{var r=eG(),n=_().Buffer;t.exports=function(e,t){return n.from(e.toRed(r.mont(t.modulus)).redPow(new r(t.publicExponent)).fromRed().toArray())}}),tV=p((e,t)=>{var r=tF(),n=w(),a=et(),i=tq(),o=tW(),s=eG(),c=tK(),u=e$(),l=_().Buffer;t.exports=function(e,t,f){d=e.padding?e.padding:f?1:4;var d,h,p=r(e);if(4===d)h=function(e,t){var r=e.modulus.byteLength(),c=t.length,u=a("sha1").update(l.alloc(0)).digest(),f=u.length,d=2*f;if(c>r-d-2)throw Error("message too long");var h=l.alloc(r-c-d-2),p=r-f-1,v=n(f),m=o(l.concat([u,h,l.alloc(1,1),t],p),i(v,p)),g=o(v,i(m,f));return new s(l.concat([l.alloc(1),g,m],r))}(p,t);else if(1===d)h=function(e,t,r){var a,i=t.length,o=e.modulus.byteLength();if(i>o-11)throw Error("message too long");return a=r?l.alloc(o-i-3,255):function(e){for(var t,r=l.allocUnsafe(e),a=0,i=n(2*e),o=0;a=0)throw Error("data too long for modulus")}else throw Error("unknown padding");return f?u(h,p):c(h,p)}}),tY=p((e,t)=>{var r=tF(),n=tq(),a=tW(),i=eG(),o=e$(),s=et(),c=tK(),u=_().Buffer;t.exports=function(e,t,l){f=e.padding?e.padding:l?1:4;var f,d,h=r(e),p=h.modulus.byteLength();if(t.length>p||new i(t).cmp(h.modulus)>=0)throw Error("decryption error");d=l?c(new i(t),h):o(t,h);var v=u.alloc(p-d.length);if(d=u.concat([v,d],p),4===f)return function(e,t){var r=e.modulus.byteLength(),i=s("sha1").update(u.alloc(0)).digest(),o=i.length;if(0!==t[0])throw Error("decryption error");var c=t.slice(1,o+1),l=t.slice(o+1),f=a(c,n(l,o)),d=a(l,n(f,r-o-1));if(function(e,t){e=u.from(e),t=u.from(t);var r=0,n=e.length;e.length!==t.length&&(r++,n=Math.min(e.length,t.length));for(var a=-1;++a=t.length){i++;break}var o=t.slice(2,a-1);if(("0002"!==n.toString("hex")&&!r||"0001"!==n.toString("hex")&&r)&&i++,o.length<8&&i++,i)throw Error("decryption error");return t.slice(a)}(0,d,l);if(3===f)return d;throw Error("unknown padding")}}),tJ=p(e=>{e.publicEncrypt=tV(),e.privateDecrypt=tY(),e.privateEncrypt=function(t,r){return e.publicEncrypt(t,r,!0)},e.publicDecrypt=function(t,r){return e.privateDecrypt(t,r,!0)}}),tZ=p(e=>{function t(){throw Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var r=_(),n=(w(),r.Buffer),a=r.kMaxLength,s=i.crypto||i.msCrypto;function c(e,t){if("number"!=typeof e||e!=e)throw TypeError("offset must be a number");if(e>4294967295||e<0)throw TypeError("offset must be a uint32");if(e>a||e>t)throw RangeError("offset out of range")}function u(e,t,r){if("number"!=typeof e||e!=e)throw TypeError("size must be a number");if(e>4294967295||e<0)throw TypeError("size must be a uint32");if(e+t>r||e>a)throw RangeError("buffer too small")}function l(e,t,r,n){var a=e.buffer,i=new Uint8Array(a,t,r);if(s.getRandomValues(i),n){o.nextTick(function(){n(null,e)});return}return e}s&&s.getRandomValues?(e.randomFill=function(e,t,r,a){if(!n.isBuffer(e)&&!(e instanceof i.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof t)a=t,t=0,r=e.length;else if("function"==typeof r)a=r,r=e.length-t;else if("function"!=typeof a)throw TypeError('"cb" argument must be a function');return c(t,e.length),u(r,t,e.length),l(e,t,r,a)},e.randomFillSync=function(e,t,r){if(typeof t>"u"&&(t=0),!n.isBuffer(e)&&!(e instanceof i.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');return c(t,e.length),void 0===r&&(r=e.length-t),u(r,t,e.length),l(e,t,r)}):(e.randomFill=t,e.randomFillSync=t)}),tX=p(e=>{e.randomBytes=e.rng=e.pseudoRandomBytes=e.prng=w(),e.createHash=e.Hash=et(),e.createHmac=e.Hmac=ea();var t=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(Object.keys(eo()));e.getHashes=function(){return t};var r=ed();e.pbkdf2=r.pbkdf2,e.pbkdf2Sync=r.pbkdf2Sync;var n=ez();e.Cipher=n.Cipher,e.createCipher=n.createCipher,e.Cipheriv=n.Cipheriv,e.createCipheriv=n.createCipheriv,e.Decipher=n.Decipher,e.createDecipher=n.createDecipher,e.Decipheriv=n.Decipheriv,e.createDecipheriv=n.createDecipheriv,e.getCiphers=n.getCiphers,e.listCiphers=n.listCiphers;var a=eZ();e.DiffieHellmanGroup=a.DiffieHellmanGroup,e.createDiffieHellmanGroup=a.createDiffieHellmanGroup,e.getDiffieHellman=a.getDiffieHellman,e.createDiffieHellman=a.createDiffieHellman,e.DiffieHellman=a.DiffieHellman;var i=tH();e.createSign=i.createSign,e.Sign=i.Sign,e.createVerify=i.createVerify,e.Verify=i.Verify,e.createECDH=tG();var o=tJ();e.publicEncrypt=o.publicEncrypt,e.privateEncrypt=o.privateEncrypt,e.publicDecrypt=o.publicDecrypt,e.privateDecrypt=o.privateDecrypt;var s=tZ();e.randomFill=s.randomFill,e.randomFillSync=s.randomFillSync,e.createCredentials=function(){throw Error("sorry, createCredentials is not implemented yet\nwe accept pull requests\nhttps://github.com/crypto-browserify/crypto-browserify")},e.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}}),t$={};((e,t)=>{for(var r in t)u(e,r,{get:t[r],enumerable:!0})})(t$,{default:()=>t0}),t.exports=v(u({},"__esModule",{value:!0}),t$);var tQ=m(tX());n=m(tX()),a=t.exports,v(t$,n,"default"),a&&v(a,n,"default");var t0=tQ.default;/*! Bundled license information: ieee754/index.js: (*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh *) buffer/index.js: (*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT *) safe-buffer/index.js: (*! safe-buffer. MIT License. Feross Aboukhadijeh *) */},{"33602453034ea78a":"7gz8M","19365d62b9b9eabc":"89Y7O"}],"7gz8M":[function(e,t,r){var n,a,i,o,s=Object.create,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,f=Object.getPrototypeOf,d=Object.prototype.hasOwnProperty,h=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of l(t))d.call(e,a)||a===r||c(e,a,{get:()=>t[a],enumerable:!(n=u(t,a))||n.enumerable});return e},p=(e,t,r)=>(r=null!=e?s(f(e)):{},h(!t&&e&&e.__esModule?r:c(r,"default",{value:e,enumerable:!0}),e)),v=(n=(e,t)=>{var r,n,a=t.exports={};function i(){throw Error("setTimeout has not been defined")}function o(){throw Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:i}catch(e){r=i}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var c,u=[],l=!1,f=-1;function d(){l&&c&&(l=!1,c.length?u=c.concat(u):f=-1,u.length&&h())}function h(){if(!l){var e=s(d);l=!0;for(var t=u.length;t;){for(c=u,u=[];++f1)for(var r=1;r(a||n((a={exports:{}}).exports,a),a.exports)),m={};((e,t)=>{for(var r in t)c(e,r,{get:t[r],enumerable:!0})})(m,{default:()=>b}),t.exports=h(c({},"__esModule",{value:!0}),m);var g=p(v());i=p(v()),o=t.exports,h(m,i,"default"),o&&h(o,i,"default");var b=g.default},{}],"89Y7O":[function(e,t,r){var n,a,i=Object.create,o=Object.defineProperty,s=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,f=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),d=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of c(t))l.call(e,a)||a===r||o(e,a,{get:()=>t[a],enumerable:!(n=s(t,a))||n.enumerable});return e},h=(e,t,r)=>(r=null!=e?i(u(e)):{},d(!t&&e&&e.__esModule?r:o(r,"default",{value:e,enumerable:!0}),e)),p=f(e=>{e.byteLength=function(e){var t=s(e),r=t[0],n=t[1];return(r+n)*3/4-n},e.toByteArray=function(e){var t,r,n=s(e),o=n[0],c=n[1],u=new i((o+c)*3/4-c),l=0,f=c>0?o-4:o;for(r=0;r>16&255,u[l++]=t>>8&255,u[l++]=255&t;return 2===c&&(t=a[e.charCodeAt(r)]<<2|a[e.charCodeAt(r+1)]>>4,u[l++]=255&t),1===c&&(t=a[e.charCodeAt(r)]<<10|a[e.charCodeAt(r+1)]<<4|a[e.charCodeAt(r+2)]>>2,u[l++]=t>>8&255,u[l++]=255&t),u},e.fromByteArray=function(e){for(var t,r=e.length,a=r%3,i=[],o=0,s=r-a;o>18&63]+n[a>>12&63]+n[a>>6&63]+n[63&a]);return i.join("")}(e,o,o+16383>s?s:o+16383));return 1===a?i.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===a&&i.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),i.join("")};var t,r,n=[],a=[],i="u">typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(t=0,r=o.length;t0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}a["-".charCodeAt(0)]=62,a["_".charCodeAt(0)]=63}),v=f(e=>{e.read=function(e,t,r,n,a){var i,o,s=8*a-n-1,c=(1<>1,l=-7,f=r?a-1:0,d=r?-1:1,h=e[t+f];for(f+=d,i=h&(1<<-l)-1,h>>=-l,l+=s;l>0;i=256*i+e[t+f],f+=d,l-=8);for(o=i&(1<<-l)-1,i>>=-l,l+=n;l>0;o=256*o+e[t+f],f+=d,l-=8);if(0===i)i=1-u;else{if(i===c)return o?NaN:(h?-1:1)*(1/0);o+=Math.pow(2,n),i-=u}return(h?-1:1)*o*Math.pow(2,i-n)},e.write=function(e,t,r,n,a,i){var o,s,c,u=8*i-a-1,l=(1<>1,d=23===a?5960464477539062e-23:0,h=n?0:i-1,p=n?1:-1,v=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,o=l):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-o))<1&&(o--,c*=2),o+f>=1?t+=d/c:t+=d*Math.pow(2,1-f),t*c>=2&&(o++,c/=2),o+f>=l?(s=0,o=l):o+f>=1?(s=(t*c-1)*Math.pow(2,a),o+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,a),o=0));a>=8;e[r+h]=255&s,h+=p,s/=256,a-=8);for(o=o<0;e[r+h]=255&o,h+=p,o/=256,u-=8);e[r+h-p]|=128*v}}),m=f(e=>{var t=p(),r=v(),n="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,i.prototype),t}function i(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return o(e,t,r)}function o(e,t,r){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!i.isEncoding(t))throw TypeError("Unknown encoding: "+t);let r=0|d(e,t),n=a(r),o=n.write(e,t);return o!==r&&(n=n.slice(0,o)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(L(e,Uint8Array)){let t=new Uint8Array(e);return l(t.buffer,t.byteOffset,t.byteLength)}return u(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(L(e,ArrayBuffer)||e&&L(e.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(L(e,SharedArrayBuffer)||e&&L(e.buffer,SharedArrayBuffer)))return l(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return i.from(n,t,r);let o=function(e){var t;if(i.isBuffer(e)){let t=0|f(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?a(0):u(e):"Buffer"===e.type&&Array.isArray(e.data)?u(e.data):void 0}(e);if(o)return o;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return i.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function s(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return s(e),a(e<0?0:0|f(e))}function u(e){let t=e.length<0?0:0|f(e.length),r=a(t);for(let n=0;n=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function d(e,t){if(i.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||L(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let a=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return N(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return P(e).length;default:if(a)return n?-1:N(e).length;t=(""+t).toLowerCase(),a=!0}}function h(e,r,n){let a=!1;if((void 0===r||r<0)&&(r=0),r>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0)||(n>>>=0)<=(r>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){let n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let a="";for(let n=t;n2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),(o=r=+r)!=o&&(r=a?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(a)return -1;r=e.length-1}else if(r<0){if(!a)return -1;r=0}if("string"==typeof t&&(t=i.from(t,n)),i.isBuffer(t))return 0===t.length?-1:b(e,t,r,n,a);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):b(e,[t],r,n,a);throw TypeError("val must be string, number or Buffer")}function b(e,t,r,n,a){let i,o=1,s=e.length,c=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;o=2,s/=2,c/=2,r/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(a){let n=-1;for(i=r;is&&(r=s-c),i=r;i>=0;i--){let r=!0;for(let n=0;n239?4:t>223?3:t>191?2:1;if(a+o<=r){let r,n,s,c;switch(o){case 1:t<128&&(i=t);break;case 2:(192&(r=e[a+1]))==128&&(c=(31&t)<<6|63&r)>127&&(i=c);break;case 3:r=e[a+1],n=e[a+2],(192&r)==128&&(192&n)==128&&(c=(15&t)<<12|(63&r)<<6|63&n)>2047&&(c<55296||c>57343)&&(i=c);break;case 4:r=e[a+1],n=e[a+2],s=e[a+3],(192&r)==128&&(192&n)==128&&(192&s)==128&&(c=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&s)>65535&&c<1114112&&(i=c)}}null===i?(i=65533,o=1):i>65535&&(i-=65536,n.push(i>>>10&1023|55296),i=56320|1023&i),n.push(i),a+=o}return function(e){let t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);let r="",n=0;for(;nr)throw RangeError("Trying to access beyond buffer length")}function w(e,t,r,n,a,o){if(!i.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>a||te.length)throw RangeError("Index out of range")}function S(e,t,r,n,a){M(t,n,a,e,r,7);let i=Number(t&BigInt(4294967295));e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,r}function E(e,t,r,n,a){M(t,n,a,e,r,7);let i=Number(t&BigInt(4294967295));e[r+7]=i,i>>=8,e[r+6]=i,i>>=8,e[r+5]=i,i>>=8,e[r+4]=i;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=o,o>>=8,e[r+2]=o,o>>=8,e[r+1]=o,o>>=8,e[r]=o,r+8}function k(e,t,r,n,a,i){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function I(e,t,n,a,i){return t=+t,n>>>=0,i||k(e,t,n,4,34028234663852886e22,-34028234663852886e22),r.write(e,t,n,a,23,4),n+4}function x(e,t,n,a,i){return t=+t,n>>>=0,i||k(e,t,n,8,17976931348623157e292,-17976931348623157e292),r.write(e,t,n,a,52,8),n+8}e.Buffer=i,e.SlowBuffer=function(e){return+e!=e&&(e=0),i.alloc(+e)},e.INSPECT_MAX_BYTES=50,e.kMaxLength=2147483647,i.TYPED_ARRAY_SUPPORT=function(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),!i.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(i.prototype,"parent",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.buffer}}),Object.defineProperty(i.prototype,"offset",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.byteOffset}}),i.poolSize=8192,i.from=function(e,t,r){return o(e,t,r)},Object.setPrototypeOf(i.prototype,Uint8Array.prototype),Object.setPrototypeOf(i,Uint8Array),i.alloc=function(e,t,r){return s(e),e<=0?a(e):void 0!==t?"string"==typeof r?a(e).fill(t,r):a(e).fill(t):a(e)},i.allocUnsafe=function(e){return c(e)},i.allocUnsafeSlow=function(e){return c(e)},i.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==i.prototype},i.compare=function(e,t){if(L(e,Uint8Array)&&(e=i.from(e,e.offset,e.byteLength)),L(t,Uint8Array)&&(t=i.from(t,t.offset,t.byteLength)),!i.isBuffer(e)||!i.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let a=0,i=Math.min(r,n);an.length?(i.isBuffer(t)||(t=i.from(t)),t.copy(n,a)):Uint8Array.prototype.set.call(n,t,a);else if(i.isBuffer(t))t.copy(n,a);else throw TypeError('"list" argument must be an Array of Buffers');a+=t.length}return n},i.byteLength=d,i.prototype._isBuffer=!0,i.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tr&&(t+=" ... "),""},n&&(i.prototype[n]=i.prototype.inspect),i.prototype.compare=function(e,t,r,n,a){if(L(e,Uint8Array)&&(e=i.from(e,e.offset,e.byteLength)),!i.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===a&&(a=this.length),t<0||r>e.length||n<0||a>this.length)throw RangeError("out of range index");if(n>=a&&t>=r)return 0;if(n>=a)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,a>>>=0,this===e)return 0;let o=a-n,s=r-t,c=Math.min(o,s),u=this.slice(n,a),l=e.slice(t,r);for(let e=0;e>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let d=this.length-t;if((void 0===r||r>d)&&(r=d),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let h=!1;for(;;)switch(n){case"hex":return function(e,t,r,n){let a;r=Number(r)||0;let i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;let o=t.length;for(n>o/2&&(n=o/2),a=0;a>8,a.push(r%256),a.push(n);return a}(e,this.length-l),this,l,f);default:if(h)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),h=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},i.prototype.slice=function(e,t){let r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||_(e,t,this.length);let n=this[e],a=1,i=0;for(;++i>>=0,t>>>=0,r||_(e,t,this.length);let n=this[e+--t],a=1;for(;t>0&&(a*=256);)n+=this[e+--t]*a;return n},i.prototype.readUint8=i.prototype.readUInt8=function(e,t){return e>>>=0,t||_(e,1,this.length),this[e]},i.prototype.readUint16LE=i.prototype.readUInt16LE=function(e,t){return e>>>=0,t||_(e,2,this.length),this[e]|this[e+1]<<8},i.prototype.readUint16BE=i.prototype.readUInt16BE=function(e,t){return e>>>=0,t||_(e,2,this.length),this[e]<<8|this[e+1]},i.prototype.readUint32LE=i.prototype.readUInt32LE=function(e,t){return e>>>=0,t||_(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},i.prototype.readUint32BE=i.prototype.readUInt32BE=function(e,t){return e>>>=0,t||_(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},i.prototype.readBigUInt64LE=B(function(e){R(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&C(e,this.length-8);let n=t+256*this[++e]+65536*this[++e]+16777216*this[++e],a=this[++e]+256*this[++e]+65536*this[++e]+16777216*r;return BigInt(n)+(BigInt(a)<>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&C(e,this.length-8);let n=16777216*t+65536*this[++e]+256*this[++e]+this[++e],a=16777216*this[++e]+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<>>=0,t>>>=0,r||_(e,t,this.length);let n=this[e],a=1,i=0;for(;++i=(a*=128)&&(n-=Math.pow(2,8*t)),n},i.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||_(e,t,this.length);let n=t,a=1,i=this[e+--n];for(;n>0&&(a*=256);)i+=this[e+--n]*a;return i>=(a*=128)&&(i-=Math.pow(2,8*t)),i},i.prototype.readInt8=function(e,t){return e>>>=0,t||_(e,1,this.length),128&this[e]?-((255-this[e]+1)*1):this[e]},i.prototype.readInt16LE=function(e,t){e>>>=0,t||_(e,2,this.length);let r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},i.prototype.readInt16BE=function(e,t){e>>>=0,t||_(e,2,this.length);let r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},i.prototype.readInt32LE=function(e,t){return e>>>=0,t||_(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},i.prototype.readInt32BE=function(e,t){return e>>>=0,t||_(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},i.prototype.readBigInt64LE=B(function(e){R(e>>>=0,"offset");let t=this[e],r=this[e+7];return(void 0===t||void 0===r)&&C(e,this.length-8),(BigInt(this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24))<>>=0,"offset");let t=this[e],r=this[e+7];return(void 0===t||void 0===r)&&C(e,this.length-8),(BigInt((t<<24)+65536*this[++e]+256*this[++e]+this[++e])<>>=0,t||_(e,4,this.length),r.read(this,e,!0,23,4)},i.prototype.readFloatBE=function(e,t){return e>>>=0,t||_(e,4,this.length),r.read(this,e,!1,23,4)},i.prototype.readDoubleLE=function(e,t){return e>>>=0,t||_(e,8,this.length),r.read(this,e,!0,52,8)},i.prototype.readDoubleBE=function(e,t){return e>>>=0,t||_(e,8,this.length),r.read(this,e,!1,52,8)},i.prototype.writeUintLE=i.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;w(this,e,t,r,n,0)}let a=1,i=0;for(this[t]=255&e;++i>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;w(this,e,t,r,n,0)}let a=r-1,i=1;for(this[t+a]=255&e;--a>=0&&(i*=256);)this[t+a]=e/i&255;return t+r},i.prototype.writeUint8=i.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,1,255,0),this[t]=255&e,t+1},i.prototype.writeUint16LE=i.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},i.prototype.writeUint16BE=i.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},i.prototype.writeUint32LE=i.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},i.prototype.writeUint32BE=i.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},i.prototype.writeBigUInt64LE=B(function(e,t=0){return S(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),i.prototype.writeBigUInt64BE=B(function(e,t=0){return E(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),i.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){let n=Math.pow(2,8*r-1);w(this,e,t,r,n-1,-n)}let a=0,i=1,o=0;for(this[t]=255&e;++a>0)-o&255;return t+r},i.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){let n=Math.pow(2,8*r-1);w(this,e,t,r,n-1,-n)}let a=r-1,i=1,o=0;for(this[t+a]=255&e;--a>=0&&(i*=256);)e<0&&0===o&&0!==this[t+a+1]&&(o=1),this[t+a]=(e/i>>0)-o&255;return t+r},i.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},i.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},i.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},i.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},i.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},i.prototype.writeBigInt64LE=B(function(e,t=0){return S(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),i.prototype.writeBigInt64BE=B(function(e,t=0){return E(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),i.prototype.writeFloatLE=function(e,t,r){return I(this,e,t,!0,r)},i.prototype.writeFloatBE=function(e,t,r){return I(this,e,t,!1,r)},i.prototype.writeDoubleLE=function(e,t,r){return x(this,e,t,!0,r)},i.prototype.writeDoubleBE=function(e,t,r){return x(this,e,t,!1,r)},i.prototype.copy=function(e,t,r,n){if(!i.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(a=t;a=n+4;r-=3)t="_".concat(e.slice(r-3,r)).concat(t);return"".concat(e.slice(0,r)).concat(t)}function M(e,t,r,n,a,i){if(e>r||e3?0===t||t===BigInt(0)?">= 0".concat(n," and < 2").concat(n," ** ").concat((i+1)*8).concat(n):">= -(2".concat(n," ** ").concat((i+1)*8-1).concat(n,") and < 2 ** ")+"".concat((i+1)*8-1).concat(n):">= ".concat(t).concat(n," and <= ").concat(r).concat(n),new O.ERR_OUT_OF_RANGE("value",a,e)}R(a,"offset"),(void 0===n[a]||void 0===n[a+i])&&C(a,n.length-(i+1))}function R(e,t){if("number"!=typeof e)throw new O.ERR_INVALID_ARG_TYPE(t,"number",e)}function C(e,t,r){throw Math.floor(e)!==e?(R(e,r),new O.ERR_OUT_OF_RANGE(r||"offset","an integer",e)):t<0?new O.ERR_BUFFER_OUT_OF_BOUNDS:new O.ERR_OUT_OF_RANGE(r||"offset",">= ".concat(r?1:0," and <= ").concat(t),e)}T("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?"".concat(e," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"},RangeError),T("ERR_INVALID_ARG_TYPE",function(e,t){return'The "'.concat(e,'" argument must be of type number. Received type ').concat(typeof t)},TypeError),T("ERR_OUT_OF_RANGE",function(e,t,r){let n='The value of "'.concat(e,'" is out of range.'),a=r;return Number.isInteger(r)&&Math.abs(r)>4294967296?a=A(String(r)):"bigint"==typeof r&&(a=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(a=A(a)),a+="n"),n+=" It must be ".concat(t,". Received ").concat(a)},RangeError);var j=/[^+/0-9A-Za-z-_]/g;function N(e,t){t=t||1/0;let r,n=e.length,a=null,i=[];for(let o=0;o55295&&r<57344){if(!a){if(r>56319||o+1===n){(t-=3)>-1&&i.push(239,191,189);continue}a=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),a=r;continue}r=(a-55296<<10|r-56320)+65536}else a&&(t-=3)>-1&&i.push(239,191,189);if(a=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return i}function P(e){return t.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(j,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function D(e,t,r,n){let a;for(a=0;a=t.length||a>=e.length);++a)t[a+r]=e[a];return a}function L(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var F=function(){let e="0123456789abcdef",t=Array(256);for(let r=0;r<16;++r){let n=16*r;for(let a=0;a<16;++a)t[n+a]=e[r]+e[a]}return t}();function B(e){return typeof BigInt>"u"?U:e}function U(){throw Error("BigInt not supported")}}),g={};((e,t)=>{for(var r in t)o(e,r,{get:t[r],enumerable:!0})})(g,{default:()=>y}),t.exports=d(o({},"__esModule",{value:!0}),g);var b=h(m());n=h(m()),a=t.exports,d(g,n,"default"),a&&d(a,n,"default");var y=b.default;/*! Bundled license information: ieee754/index.js: (*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh *) buffer/index.js: (*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT *) */},{}],"84enr":[function(e,t,r){var n,a,i,o,s;t.exports=(i=(a=(n=e("d48fed549de80b2b")).lib).Base,o=a.WordArray,(s=n.x64={}).Word=i.extend({init:function(e,t){this.high=e,this.low=t}}),s.WordArray=i.extend({init:function(e,t){e=this.words=e||[],void 0!=t?this.sigBytes=t:this.sigBytes=8*e.length},toX32:function(){for(var e=this.words,t=e.length,r=[],n=0;n>>2]|=e[a]<<24-a%4*8;t.call(this,n,r)}else t.apply(this,arguments)}).prototype=e}}(),n.lib.WordArray)},{"300da5cb0ae97e38":"6dayE"}],"3zawB":[function(e,t,r){var n;t.exports=(n=e("3d8e0cedd47ceed4"),function(){var e=n.lib.WordArray,t=n.enc;function r(e){return e<<8&4278255360|e>>>8&16711935}t.Utf16=t.Utf16BE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],a=0;a>>2]>>>16-a%4*8&65535;n.push(String.fromCharCode(i))}return n.join("")},parse:function(t){for(var r=t.length,n=[],a=0;a>>1]|=t.charCodeAt(a)<<16-a%2*16;return e.create(n,2*r)}},t.Utf16LE={stringify:function(e){for(var t=e.words,n=e.sigBytes,a=[],i=0;i>>2]>>>16-i%4*8&65535);a.push(String.fromCharCode(o))}return a.join("")},parse:function(t){for(var n=t.length,a=[],i=0;i>>1]|=r(t.charCodeAt(i)<<16-i%2*16);return e.create(a,2*n)}}}(),n.enc.Utf16)},{"3d8e0cedd47ceed4":"6dayE"}],dQJ4T:[function(e,t,r){var n,a;t.exports=(a=(n=e("6c67d43f833ec62e")).lib.WordArray,n.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var a=[],i=0;i>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,s=0;s<4&&i+.75*s>>6*(3-s)&63));var c=n.charAt(64);if(c)for(;a.length%4;)a.push(c);return a.join("")},parse:function(e){var t=e.length,r=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var i=0;i>>6-o%4*2;n[i>>>2]|=s<<24-i%4*8,i++}return a.create(n,i)}(e,t,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},n.enc.Base64)},{"6c67d43f833ec62e":"6dayE"}],d3oJY:[function(e,t,r){var n,a;t.exports=(a=(n=e("7d66589bbaefbca4")).lib.WordArray,n.enc.Base64url={stringify:function(e,t){void 0===t&&(t=!0);var r=e.words,n=e.sigBytes,a=t?this._safe_map:this._map;e.clamp();for(var i=[],o=0;o>>2]>>>24-o%4*8&255)<<16|(r[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|r[o+2>>>2]>>>24-(o+2)%4*8&255,c=0;c<4&&o+.75*c>>6*(3-c)&63));var u=a.charAt(64);if(u)for(;i.length%4;)i.push(u);return i.join("")},parse:function(e,t){void 0===t&&(t=!0);var r=e.length,n=t?this._safe_map:this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o>>6-o%4*2;n[i>>>2]|=s<<24-i%4*8,i++}return a.create(n,i)}(e,r,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"},n.enc.Base64url)},{"7d66589bbaefbca4":"6dayE"}],jxWg5:[function(e,t,r){var n;t.exports=(n=e("df297d5f1a7605f5"),function(e){var t=n.lib,r=t.WordArray,a=t.Hasher,i=n.algo,o=[];!function(){for(var t=0;t<64;t++)o[t]=4294967296*e.abs(e.sin(t+1))|0}();var s=i.MD5=a.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,a=e[n];e[n]=(a<<8|a>>>24)&16711935|(a<<24|a>>>8)&4278255360}var i=this._hash.words,s=e[t+0],d=e[t+1],h=e[t+2],p=e[t+3],v=e[t+4],m=e[t+5],g=e[t+6],b=e[t+7],y=e[t+8],_=e[t+9],w=e[t+10],S=e[t+11],E=e[t+12],k=e[t+13],I=e[t+14],x=e[t+15],O=i[0],T=i[1],A=i[2],M=i[3];O=c(O,T,A,M,s,7,o[0]),M=c(M,O,T,A,d,12,o[1]),A=c(A,M,O,T,h,17,o[2]),T=c(T,A,M,O,p,22,o[3]),O=c(O,T,A,M,v,7,o[4]),M=c(M,O,T,A,m,12,o[5]),A=c(A,M,O,T,g,17,o[6]),T=c(T,A,M,O,b,22,o[7]),O=c(O,T,A,M,y,7,o[8]),M=c(M,O,T,A,_,12,o[9]),A=c(A,M,O,T,w,17,o[10]),T=c(T,A,M,O,S,22,o[11]),O=c(O,T,A,M,E,7,o[12]),M=c(M,O,T,A,k,12,o[13]),A=c(A,M,O,T,I,17,o[14]),T=c(T,A,M,O,x,22,o[15]),O=u(O,T,A,M,d,5,o[16]),M=u(M,O,T,A,g,9,o[17]),A=u(A,M,O,T,S,14,o[18]),T=u(T,A,M,O,s,20,o[19]),O=u(O,T,A,M,m,5,o[20]),M=u(M,O,T,A,w,9,o[21]),A=u(A,M,O,T,x,14,o[22]),T=u(T,A,M,O,v,20,o[23]),O=u(O,T,A,M,_,5,o[24]),M=u(M,O,T,A,I,9,o[25]),A=u(A,M,O,T,p,14,o[26]),T=u(T,A,M,O,y,20,o[27]),O=u(O,T,A,M,k,5,o[28]),M=u(M,O,T,A,h,9,o[29]),A=u(A,M,O,T,b,14,o[30]),T=u(T,A,M,O,E,20,o[31]),O=l(O,T,A,M,m,4,o[32]),M=l(M,O,T,A,y,11,o[33]),A=l(A,M,O,T,S,16,o[34]),T=l(T,A,M,O,I,23,o[35]),O=l(O,T,A,M,d,4,o[36]),M=l(M,O,T,A,v,11,o[37]),A=l(A,M,O,T,b,16,o[38]),T=l(T,A,M,O,w,23,o[39]),O=l(O,T,A,M,k,4,o[40]),M=l(M,O,T,A,s,11,o[41]),A=l(A,M,O,T,p,16,o[42]),T=l(T,A,M,O,g,23,o[43]),O=l(O,T,A,M,_,4,o[44]),M=l(M,O,T,A,E,11,o[45]),A=l(A,M,O,T,x,16,o[46]),T=l(T,A,M,O,h,23,o[47]),O=f(O,T,A,M,s,6,o[48]),M=f(M,O,T,A,b,10,o[49]),A=f(A,M,O,T,I,15,o[50]),T=f(T,A,M,O,m,21,o[51]),O=f(O,T,A,M,E,6,o[52]),M=f(M,O,T,A,p,10,o[53]),A=f(A,M,O,T,w,15,o[54]),T=f(T,A,M,O,d,21,o[55]),O=f(O,T,A,M,y,6,o[56]),M=f(M,O,T,A,x,10,o[57]),A=f(A,M,O,T,g,15,o[58]),T=f(T,A,M,O,k,21,o[59]),O=f(O,T,A,M,v,6,o[60]),M=f(M,O,T,A,S,10,o[61]),A=f(A,M,O,T,h,15,o[62]),T=f(T,A,M,O,_,21,o[63]),i[0]=i[0]+O|0,i[1]=i[1]+T|0,i[2]=i[2]+A|0,i[3]=i[3]+M|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,a=8*t.sigBytes;r[a>>>5]|=128<<24-a%32;var i=e.floor(n/4294967296);r[(a+64>>>9<<4)+15]=(i<<8|i>>>24)&16711935|(i<<24|i>>>8)&4278255360,r[(a+64>>>9<<4)+14]=(n<<8|n>>>24)&16711935|(n<<24|n>>>8)&4278255360,t.sigBytes=(r.length+1)*4,this._process();for(var o=this._hash,s=o.words,c=0;c<4;c++){var u=s[c];s[c]=(u<<8|u>>>24)&16711935|(u<<24|u>>>8)&4278255360}return o},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,r,n,a,i,o){var s=e+(t&r|~t&n)+a+o;return(s<>>32-i)+t}function u(e,t,r,n,a,i,o){var s=e+(t&n|r&~n)+a+o;return(s<>>32-i)+t}function l(e,t,r,n,a,i,o){var s=e+(t^r^n)+a+o;return(s<>>32-i)+t}function f(e,t,r,n,a,i,o){var s=e+(r^(t|~n))+a+o;return(s<>>32-i)+t}n.MD5=a._createHelper(s),n.HmacMD5=a._createHmacHelper(s)}(Math),n.MD5)},{df297d5f1a7605f5:"6dayE"}],egwwf:[function(e,t,r){var n,a,i,o,s,c,u;t.exports=(i=(a=(n=e("7b9891bafba06348")).lib).WordArray,o=a.Hasher,s=n.algo,c=[],u=s.SHA1=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],a=r[1],i=r[2],o=r[3],s=r[4],u=0;u<80;u++){if(u<16)c[u]=0|e[t+u];else{var l=c[u-3]^c[u-8]^c[u-14]^c[u-16];c[u]=l<<1|l>>>31}var f=(n<<5|n>>>27)+s+c[u];u<20?f+=(a&i|~a&o)+1518500249:u<40?f+=(a^i^o)+1859775393:u<60?f+=(a&i|a&o|i&o)-1894007588:f+=(a^i^o)-899497514,s=o,o=i,i=a<<30|a>>>2,a=n,n=f}r[0]=r[0]+n|0,r[1]=r[1]+a|0,r[2]=r[2]+i|0,r[3]=r[3]+o|0,r[4]=r[4]+s|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[(n+64>>>9<<4)+14]=Math.floor(r/4294967296),t[(n+64>>>9<<4)+15]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}}),n.SHA1=o._createHelper(u),n.HmacSHA1=o._createHmacHelper(u),n.SHA1)},{"7b9891bafba06348":"6dayE"}],lf3El:[function(e,t,r){var n,a,i,o,s,c,u,l,f,d;t.exports=(n=e("cd9e8447cb14a145"),a=Math,o=(i=n.lib).WordArray,s=i.Hasher,c=n.algo,u=[],l=[],function(){function e(e){return(e-(0|e))*4294967296|0}for(var t=2,r=0;r<64;)(function(e){for(var t=a.sqrt(e),r=2;r<=t;r++)if(!(e%r))return!1;return!0})(t)&&(r<8&&(u[r]=e(a.pow(t,.5))),l[r]=e(a.pow(t,1/3)),r++),t++}(),f=[],d=c.SHA256=s.extend({_doReset:function(){this._hash=new o.init(u.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],a=r[1],i=r[2],o=r[3],s=r[4],c=r[5],u=r[6],d=r[7],h=0;h<64;h++){if(h<16)f[h]=0|e[t+h];else{var p=f[h-15],v=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,m=f[h-2],g=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;f[h]=v+f[h-7]+g+f[h-16]}var b=s&c^~s&u,y=n&a^n&i^a&i,_=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),w=d+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+b+l[h]+f[h],S=_+y;d=u,u=c,c=s,s=o+w|0,o=i,i=a,a=n,n=w+S|0}r[0]=r[0]+n|0,r[1]=r[1]+a|0,r[2]=r[2]+i|0,r[3]=r[3]+o|0,r[4]=r[4]+s|0,r[5]=r[5]+c|0,r[6]=r[6]+u|0,r[7]=r[7]+d|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[(n+64>>>9<<4)+14]=a.floor(r/4294967296),t[(n+64>>>9<<4)+15]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}}),n.SHA256=s._createHelper(d),n.HmacSHA256=s._createHmacHelper(d),n.SHA256)},{cd9e8447cb14a145:"6dayE"}],ex4nU:[function(e,t,r){var n,a,i,o,s;t.exports=(n=e("e8965157f10402b0"),e("422fd5a45e67fd9c"),a=n.lib.WordArray,o=(i=n.algo).SHA256,s=i.SHA224=o.extend({_doReset:function(){this._hash=new a.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=o._doFinalize.call(this);return e.sigBytes-=4,e}}),n.SHA224=o._createHelper(s),n.HmacSHA224=o._createHmacHelper(s),n.SHA224)},{e8965157f10402b0:"6dayE","422fd5a45e67fd9c":"lf3El"}],"4gcJV":[function(e,t,r){var n;t.exports=(n=e("31d6ad3465d16167"),e("c6b2cb3d09716a55"),function(){var e=n.lib.Hasher,t=n.x64,r=t.Word,a=t.WordArray,i=n.algo;function o(){return r.create.apply(r,arguments)}var s=[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 u=i.SHA512=e.extend({_doReset:function(){this._hash=new a.init([new r.init(1779033703,4089235720),new r.init(3144134277,2227873595),new r.init(1013904242,4271175723),new r.init(2773480762,1595750129),new r.init(1359893119,2917565137),new r.init(2600822924,725511199),new r.init(528734635,4215389547),new r.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],a=r[1],i=r[2],o=r[3],u=r[4],l=r[5],f=r[6],d=r[7],h=n.high,p=n.low,v=a.high,m=a.low,g=i.high,b=i.low,y=o.high,_=o.low,w=u.high,S=u.low,E=l.high,k=l.low,I=f.high,x=f.low,O=d.high,T=d.low,A=h,M=p,R=v,C=m,j=g,N=b,P=y,D=_,L=w,F=S,B=E,U=k,z=I,H=x,G=O,q=T,W=0;W<80;W++){var K,V,Y=c[W];if(W<16)V=Y.high=0|e[t+2*W],K=Y.low=0|e[t+2*W+1];else{var J=c[W-15],Z=J.high,X=J.low,$=(Z>>>1|X<<31)^(Z>>>8|X<<24)^Z>>>7,Q=(X>>>1|Z<<31)^(X>>>8|Z<<24)^(X>>>7|Z<<25),ee=c[W-2],et=ee.high,er=ee.low,en=(et>>>19|er<<13)^(et<<3|er>>>29)^et>>>6,ea=(er>>>19|et<<13)^(er<<3|et>>>29)^(er>>>6|et<<26),ei=c[W-7],eo=ei.high,es=ei.low,ec=c[W-16],eu=ec.high,el=ec.low;V=$+eo+((K=Q+es)>>>0>>0?1:0),K+=ea,V=V+en+(K>>>0>>0?1:0),K+=el,V=V+eu+(K>>>0>>0?1:0),Y.high=V,Y.low=K}var ef=L&B^~L&z,ed=F&U^~F&H,eh=A&R^A&j^R&j,ep=M&C^M&N^C&N,ev=(A>>>28|M<<4)^(A<<30|M>>>2)^(A<<25|M>>>7),em=(M>>>28|A<<4)^(M<<30|A>>>2)^(M<<25|A>>>7),eg=(L>>>14|F<<18)^(L>>>18|F<<14)^(L<<23|F>>>9),eb=(F>>>14|L<<18)^(F>>>18|L<<14)^(F<<23|L>>>9),ey=s[W],e_=ey.high,ew=ey.low,eS=q+eb,eE=G+eg+(eS>>>0>>0?1:0),eS=eS+ed,eE=eE+ef+(eS>>>0>>0?1:0),eS=eS+ew,eE=eE+e_+(eS>>>0>>0?1:0),eS=eS+K,eE=eE+V+(eS>>>0>>0?1:0),ek=em+ep,eI=ev+eh+(ek>>>0>>0?1:0);G=z,q=H,z=B,H=U,B=L,U=F,L=P+eE+((F=D+eS|0)>>>0>>0?1:0)|0,P=j,D=N,j=R,N=C,R=A,C=M,A=eE+eI+((M=eS+ek|0)>>>0>>0?1:0)|0}p=n.low=p+M,n.high=h+A+(p>>>0>>0?1:0),m=a.low=m+C,a.high=v+R+(m>>>0>>0?1:0),b=i.low=b+N,i.high=g+j+(b>>>0>>0?1:0),_=o.low=_+D,o.high=y+P+(_>>>0>>0?1:0),S=u.low=S+F,u.high=w+L+(S>>>0>>0?1:0),k=l.low=k+U,l.high=E+B+(k>>>0>>0?1:0),x=f.low=x+H,f.high=I+z+(x>>>0>>0?1:0),T=d.low=T+q,d.high=O+G+(T>>>0>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[(n+128>>>10<<5)+30]=Math.floor(r/4294967296),t[(n+128>>>10<<5)+31]=r,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var t=e.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32});n.SHA512=e._createHelper(u),n.HmacSHA512=e._createHmacHelper(u)}(),n.SHA512)},{"31d6ad3465d16167":"6dayE",c6b2cb3d09716a55:"84enr"}],gAYGJ:[function(e,t,r){var n,a,i,o,s,c,u;t.exports=(n=e("b5fe0ebcfe1041bc"),e("a9e41ebd870c4542"),e("df3c8766d63d1a4"),i=(a=n.x64).Word,o=a.WordArray,c=(s=n.algo).SHA512,u=s.SHA384=c.extend({_doReset:function(){this._hash=new o.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var e=c._doFinalize.call(this);return e.sigBytes-=16,e}}),n.SHA384=c._createHelper(u),n.HmacSHA384=c._createHmacHelper(u),n.SHA384)},{b5fe0ebcfe1041bc:"6dayE",a9e41ebd870c4542:"84enr",df3c8766d63d1a4:"4gcJV"}],gH36R:[function(e,t,r){var n,a,i,o,s,c,u,l,f,d,h,p;t.exports=(n=e("50cd159714e45996"),e("93026947822c59d9"),a=Math,o=(i=n.lib).WordArray,s=i.Hasher,c=n.x64.Word,u=n.algo,l=[],f=[],d=[],function(){for(var e=1,t=0,r=0;r<24;r++){l[e+5*t]=(r+1)*(r+2)/2%64;var n=t%5,a=(2*e+3*t)%5;e=n,t=a}for(var e=0;e<5;e++)for(var t=0;t<5;t++)f[e+5*t]=t+(2*e+3*t)%5*5;for(var i=1,o=0;o<24;o++){for(var s=0,u=0,h=0;h<7;h++){if(1&i){var p=(1<>>24)&16711935|(i<<24|i>>>8)&4278255360,o=(o<<8|o>>>24)&16711935|(o<<24|o>>>8)&4278255360;var s=r[a];s.high^=o,s.low^=i}for(var c=0;c<24;c++){for(var u=0;u<5;u++){for(var p=0,v=0,m=0;m<5;m++){var s=r[u+5*m];p^=s.high,v^=s.low}var g=h[u];g.high=p,g.low=v}for(var u=0;u<5;u++)for(var b=h[(u+4)%5],y=h[(u+1)%5],_=y.high,w=y.low,p=b.high^(_<<1|w>>>31),v=b.low^(w<<1|_>>>31),m=0;m<5;m++){var s=r[u+5*m];s.high^=p,s.low^=v}for(var S=1;S<25;S++){var p,v,s=r[S],E=s.high,k=s.low,I=l[S];I<32?(p=E<>>32-I,v=k<>>32-I):(p=k<>>64-I,v=E<>>64-I);var x=h[f[S]];x.high=p,x.low=v}var O=h[0],T=r[0];O.high=T.high,O.low=T.low;for(var u=0;u<5;u++)for(var m=0;m<5;m++){var S=u+5*m,s=r[S],A=h[S],M=h[(u+1)%5+5*m],R=h[(u+2)%5+5*m];s.high=A.high^~M.high&R.high,s.low=A.low^~M.low&R.low}var s=r[0],C=d[c];s.high^=C.high,s.low^=C.low}},_doFinalize:function(){var e=this._data,t=e.words;this._nDataBytes;var r=8*e.sigBytes,n=32*this.blockSize;t[r>>>5]|=1<<24-r%32,t[(a.ceil((r+1)/n)*n>>>5)-1]|=128,e.sigBytes=4*t.length,this._process();for(var i=this._state,s=this.cfg.outputLength/8,c=s/8,u=[],l=0;l>>24)&16711935|(d<<24|d>>>8)&4278255360,h=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,u.push(h),u.push(d)}return new o.init(u,s)},clone:function(){for(var e=s.clone.call(this),t=e._state=this._state.slice(0),r=0;r<25;r++)t[r]=t[r].clone();return e}}),n.SHA3=s._createHelper(p),n.HmacSHA3=s._createHmacHelper(p),n.SHA3)},{"50cd159714e45996":"6dayE","93026947822c59d9":"84enr"}],jk2yU:[function(e,t,r){var n;t.exports=(n=e("f465710c5187ca82"),/** @preserve (c) 2012 by C\u00e9dric 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(e){var t=n.lib,r=t.WordArray,a=t.Hasher,i=n.algo,o=r.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]),s=r.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]),c=r.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]),u=r.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]),l=r.create([0,1518500249,1859775393,2400959708,2840853838]),f=r.create([1352829926,1548603684,1836072691,2053994217,0]),d=i.RIPEMD160=a.extend({_doReset:function(){this._hash=r.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r,n,a,i,d,p,v,m,g,b,y,_,w,S,E,k,I,x,O,T,A,M,R,C,j,N,P,D,L,F,B,U,z,H,G,q,W,K,V,Y,J,Z=0;Z<16;Z++){var X=t+Z,$=e[X];e[X]=($<<8|$>>>24)&16711935|($<<24|$>>>8)&4278255360}var Q=this._hash.words,ee=l.words,et=f.words,er=o.words,en=s.words,ea=c.words,ei=u.words;q=B=Q[0],W=U=Q[1],K=z=Q[2],V=H=Q[3],Y=G=Q[4];for(var Z=0;Z<80;Z+=1)J=B+e[t+er[Z]]|0,Z<16?J+=(U^z^H)+ee[0]:Z<32?J+=((i=U)&z|~i&H)+ee[1]:Z<48?J+=((U|~z)^H)+ee[2]:Z<64?J+=(b=U,y=z,(b&(_=H)|y&~_)+ee[3]):J+=(U^(z|~H))+ee[4],J|=0,J=(J=h(J,ea[Z]))+G|0,B=G,G=H,H=h(z,10),z=U,U=J,J=q+e[t+en[Z]]|0,Z<16?J+=(W^(K|~V))+et[0]:Z<32?J+=(O=W,T=K,(O&(A=V)|T&~A)+et[1]):Z<48?J+=((W|~K)^V)+et[2]:Z<64?J+=((j=W)&K|~j&V)+et[3]:J+=(W^K^V)+et[4],J|=0,J=(J=h(J,ei[Z]))+Y|0,q=Y,Y=V,V=h(K,10),K=W,W=J;J=Q[1]+z+V|0,Q[1]=Q[2]+H+Y|0,Q[2]=Q[3]+G+q|0,Q[3]=Q[4]+B+W|0,Q[4]=Q[0]+U+K|0,Q[0]=J},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[(n+64>>>9<<4)+14]=(r<<8|r>>>24)&16711935|(r<<24|r>>>8)&4278255360,e.sigBytes=(t.length+1)*4,this._process();for(var a=this._hash,i=a.words,o=0;o<5;o++){var s=i[o];i[o]=(s<<8|s>>>24)&16711935|(s<<24|s>>>8)&4278255360}return a},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});function h(e,t){return e<>>32-t}n.RIPEMD160=a._createHelper(d),n.HmacRIPEMD160=a._createHmacHelper(d)}(Math),n.RIPEMD160)},{f465710c5187ca82:"6dayE"}],fMBoi:[function(e,t,r){var n,a,i;t.exports=void(a=(n=e("7479609d4f7429fa")).lib.Base,i=n.enc.Utf8,n.algo.HMAC=a.extend({init:function(e,t){e=this._hasher=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 a=this._oKey=t.clone(),o=this._iKey=t.clone(),s=a.words,c=o.words,u=0;u>>2];e.sigBytes-=t}},a.BlockCipher=f.extend({cfg:f.cfg.extend({mode:p,padding:v}),reset:function(){f.reset.call(this);var e,t=this.cfg,r=t.iv,n=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=n.createEncryptor:(e=n.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,r&&r.words):(this._mode=e.call(n,this,r&&r.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4}),m=a.CipherParams=i.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),g=(n.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,r=e.salt;return(r?o.create([1398893684,1701076831]).concat(r).concat(t):t).toString(u)},parse:function(e){var t,r=u.parse(e),n=r.words;return 1398893684==n[0]&&1701076831==n[1]&&(t=o.create(n.slice(2,4)),n.splice(0,4),r.sigBytes-=16),m.create({ciphertext:r,salt:t})}},b=a.SerializableCipher=i.extend({cfg:i.extend({format:g}),encrypt:function(e,t,r,n){n=this.cfg.extend(n);var a=e.createEncryptor(r,n),i=a.finalize(t),o=a.cfg;return m.create({ciphertext:i,key:r,iv:o.iv,algorithm:e,mode:o.mode,padding:o.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,r,n){return n=this.cfg.extend(n),t=this._parse(t,n.format),e.createDecryptor(r,n).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),y=(n.kdf={}).OpenSSL={execute:function(e,t,r,n,a){if(n||(n=o.random(8)),a)var i=l.create({keySize:t+r,hasher:a}).compute(e,n);else var i=l.create({keySize:t+r}).compute(e,n);var s=o.create(i.words.slice(t),4*r);return i.sigBytes=4*t,m.create({key:i,iv:s,salt:n})}},_=a.PasswordBasedCipher=b.extend({cfg:b.cfg.extend({kdf:y}),encrypt:function(e,t,r,n){var a=(n=this.cfg.extend(n)).kdf.execute(r,e.keySize,e.ivSize,n.salt,n.hasher);n.iv=a.iv;var i=b.encrypt.call(this,e,t,a.key,n);return i.mixIn(a),i},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var a=n.kdf.execute(r,e.keySize,e.ivSize,t.salt,n.hasher);return n.iv=a.iv,b.decrypt.call(this,e,t,a.key,n)}}))))},{cd9e7c148581f3f:"6dayE",a566ab64a571fabc:"u3uJj"}],BuN80:[function(e,t,r){var n;t.exports=(n=e("2f52414e12ae6909"),e("1eb0a66f8f1f67cf"),n.mode.CFB=function(){var e=n.lib.BlockCipherMode.extend();function t(e,t,r,n){var a,i=this._iv;i?(a=i.slice(0),this._iv=void 0):a=this._prevBlock,n.encryptBlock(a,0);for(var o=0;o>24&255)==255){var t=e>>16&255,r=e>>8&255,n=255&e;255===t?(t=0,255===r?(r=0,255===n?n=0:++n):++r):++t,e=0+(t<<16)+(r<<8)+n}else e+=16777216;return e}var r=e.Encryptor=e.extend({processBlock:function(e,r){var n,a=this._cipher,i=a.blockSize,o=this._iv,s=this._counter;o&&(s=this._counter=o.slice(0),this._iv=void 0),0===((n=s)[0]=t(n[0]))&&(n[1]=t(n[1]));var c=s.slice(0);a.encryptBlock(c,0);for(var u=0;u>>2]|=a<<24-i%4*8,e.sigBytes+=a},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},n.pad.Ansix923)},{"655f8cc9ca5eb2ce":"6dayE","5c1782efee2c6874":"fiMWt"}],O1Dxw:[function(e,t,r){var n;t.exports=(n=e("5c66ff56d234cbf"),e("fcb5c1ae9ec239c4"),n.pad.Iso10126={pad:function(e,t){var r=4*t,a=r-e.sigBytes%r;e.concat(n.lib.WordArray.random(a-1)).concat(n.lib.WordArray.create([a<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},n.pad.Iso10126)},{"5c66ff56d234cbf":"6dayE",fcb5c1ae9ec239c4:"fiMWt"}],"7LkK3":[function(e,t,r){var n;t.exports=(n=e("44479225b8698d21"),e("ef25b57e3868eb7f"),n.pad.Iso97971={pad:function(e,t){e.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(e,t)},unpad:function(e){n.pad.ZeroPadding.unpad(e),e.sigBytes--}},n.pad.Iso97971)},{"44479225b8698d21":"6dayE",ef25b57e3868eb7f:"fiMWt"}],l3Q7a:[function(e,t,r){var n;t.exports=(n=e("87af21168aa44acb"),e("133ca1805bb6433e"),n.pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){for(var t=e.words,r=e.sigBytes-1,r=e.sigBytes-1;r>=0;r--)if(t[r>>>2]>>>24-r%4*8&255){e.sigBytes=r+1;break}}},n.pad.ZeroPadding)},{"87af21168aa44acb":"6dayE","133ca1805bb6433e":"fiMWt"}],"2BPWw":[function(e,t,r){var n;t.exports=(n=e("aa3c737d0aca3c8c"),e("48009bd77daa7164"),n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding)},{aa3c737d0aca3c8c:"6dayE","48009bd77daa7164":"fiMWt"}],cHfOT:[function(e,t,r){var n,a,i;t.exports=(n=e("21b80cefb2d8bce5"),e("edcb376f8d1cabe8"),a=n.lib.CipherParams,i=n.enc.Hex,n.format.Hex={stringify:function(e){return e.ciphertext.toString(i)},parse:function(e){var t=i.parse(e);return a.create({ciphertext:t})}},n.format.Hex)},{"21b80cefb2d8bce5":"6dayE",edcb376f8d1cabe8:"fiMWt"}],"6OxFr":[function(e,t,r){var n,a,i,o,s,c,u,l,f,d,h,p,v,m,g;t.exports=(n=e("16bcadd944502d8b"),e("5d6f4d12778ce0e2"),e("50eb63fc72836bd1"),e("7dfc9b682a0ce247"),e("3a168c81f3f01a90"),a=n.lib.BlockCipher,i=n.algo,o=[],s=[],c=[],u=[],l=[],f=[],d=[],h=[],p=[],v=[],function(){for(var e=[],t=0;t<256;t++)t<128?e[t]=t<<1:e[t]=t<<1^283;for(var r=0,n=0,t=0;t<256;t++){var a=n^n<<1^n<<2^n<<3^n<<4;a=a>>>8^255&a^99,o[r]=a,s[a]=r;var i=e[r],m=e[i],g=e[m],b=257*e[a]^16843008*a;c[r]=b<<24|b>>>8,u[r]=b<<16|b>>>16,l[r]=b<<8|b>>>24,f[r]=b;var b=16843009*g^65537*m^257*i^16843008*r;d[a]=b<<24|b>>>8,h[a]=b<<16|b>>>16,p[a]=b<<8|b>>>24,v[a]=b,r?(r=i^e[e[e[g^i]]],n^=e[e[n]]):r=n=1}}(),m=[0,1,2,4,8,16,32,64,128,27,54],g=i.AES=a.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e,t=this._keyPriorReset=this._key,r=t.words,n=t.sigBytes/4,a=((this._nRounds=n+6)+1)*4,i=this._keySchedule=[],s=0;s6&&s%n==4&&(e=o[e>>>24]<<24|o[e>>>16&255]<<16|o[e>>>8&255]<<8|o[255&e]):e=(o[(e=e<<8|e>>>24)>>>24]<<24|o[e>>>16&255]<<16|o[e>>>8&255]<<8|o[255&e])^m[s/n|0]<<24,i[s]=i[s-n]^e);for(var c=this._invKeySchedule=[],u=0;u>>24]]^h[o[e>>>16&255]]^p[o[e>>>8&255]]^v[o[255&e]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,c,u,l,f,o)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,d,h,p,v,s);var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,a,i,o,s){for(var c=this._nRounds,u=e[t]^r[0],l=e[t+1]^r[1],f=e[t+2]^r[2],d=e[t+3]^r[3],h=4,p=1;p>>24]^a[l>>>16&255]^i[f>>>8&255]^o[255&d]^r[h++],m=n[l>>>24]^a[f>>>16&255]^i[d>>>8&255]^o[255&u]^r[h++],g=n[f>>>24]^a[d>>>16&255]^i[u>>>8&255]^o[255&l]^r[h++],b=n[d>>>24]^a[u>>>16&255]^i[l>>>8&255]^o[255&f]^r[h++];u=v,l=m,f=g,d=b}var v=(s[u>>>24]<<24|s[l>>>16&255]<<16|s[f>>>8&255]<<8|s[255&d])^r[h++],m=(s[l>>>24]<<24|s[f>>>16&255]<<16|s[d>>>8&255]<<8|s[255&u])^r[h++],g=(s[f>>>24]<<24|s[d>>>16&255]<<16|s[u>>>8&255]<<8|s[255&l])^r[h++],b=(s[d>>>24]<<24|s[u>>>16&255]<<16|s[l>>>8&255]<<8|s[255&f])^r[h++];e[t]=v,e[t+1]=m,e[t+2]=g,e[t+3]=b},keySize:8}),n.AES=a._createHelper(g),n.AES)},{"16bcadd944502d8b":"6dayE","5d6f4d12778ce0e2":"dQJ4T","50eb63fc72836bd1":"jxWg5","7dfc9b682a0ce247":"u3uJj","3a168c81f3f01a90":"fiMWt"}],cOrzN:[function(e,t,r){var n;t.exports=(n=e("62629f7fb07c1dd7"),e("feb8e609cc5885ca"),e("6ec5b2354b411f51"),e("b62ab3b1c080ae4c"),e("baa70509b18bd19a"),function(){var e=n.lib,t=e.WordArray,r=e.BlockCipher,a=n.algo,i=[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],s=[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}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],l=a.DES=r.extend({_doReset:function(){for(var e=this._key.words,t=[],r=0;r<56;r++){var n=i[r]-1;t[r]=e[n>>>5]>>>31-n%32&1}for(var a=this._subKeys=[],c=0;c<16;c++){for(var u=a[c]=[],l=s[c],r=0;r<24;r++)u[r/6|0]|=t[(o[r]-1+l)%28]<<31-r%6,u[4+(r/6|0)]|=t[28+(o[r+24]-1+l)%28]<<31-r%6;u[0]=u[0]<<1|u[0]>>>31;for(var r=1;r<7;r++)u[r]=u[r]>>>(r-1)*4+3;u[7]=u[7]<<5|u[7]>>>27}for(var f=this._invSubKeys=[],r=0;r<16;r++)f[r]=a[15-r]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,r){this._lBlock=e[t],this._rBlock=e[t+1],f.call(this,4,252645135),f.call(this,16,65535),d.call(this,2,858993459),d.call(this,8,16711935),f.call(this,1,1431655765);for(var n=0;n<16;n++){for(var a=r[n],i=this._lBlock,o=this._rBlock,s=0,l=0;l<8;l++)s|=c[l][((o^a[l])&u[l])>>>0];this._lBlock=o,this._rBlock=i^s}var h=this._lBlock;this._lBlock=this._rBlock,this._rBlock=h,f.call(this,1,1431655765),d.call(this,8,16711935),d.call(this,2,858993459),f.call(this,16,65535),f.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function f(e,t){var r=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=r,this._lBlock^=r<>>e^this._lBlock)&t;this._lBlock^=r,this._rBlock^=r<192.");var r=e.slice(0,2),n=e.length<4?e.slice(0,2):e.slice(2,4),a=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=l.createEncryptor(t.create(r)),this._des2=l.createEncryptor(t.create(n)),this._des3=l.createEncryptor(t.create(a))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});n.TripleDES=r._createHelper(h)}(),n.TripleDES)},{"62629f7fb07c1dd7":"6dayE",feb8e609cc5885ca:"dQJ4T","6ec5b2354b411f51":"jxWg5",b62ab3b1c080ae4c:"u3uJj",baa70509b18bd19a:"fiMWt"}],"7yfB8":[function(e,t,r){var n;t.exports=(n=e("5adebd8db4e1f724"),e("d5eba26e964b3fe3"),e("be6b5d0f312e7e5b"),e("900f02bdbb6a3882"),e("ff3bd2d58928df2c"),function(){var e=n.lib.StreamCipher,t=n.algo,r=t.RC4=e.extend({_doReset:function(){for(var e=this._key,t=e.words,r=e.sigBytes,n=this._S=[],a=0;a<256;a++)n[a]=a;for(var a=0,i=0;a<256;a++){var o=a%r,s=t[o>>>2]>>>24-o%4*8&255;i=(i+n[a]+s)%256;var c=n[a];n[a]=n[i],n[i]=c}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=a.call(this)},keySize:8,ivSize:0});function a(){for(var e=this._S,t=this._i,r=this._j,n=0,a=0;a<4;a++){r=(r+e[t=(t+1)%256])%256;var i=e[t];e[t]=e[r],e[r]=i,n|=e[(e[t]+e[r])%256]<<24-8*a}return this._i=t,this._j=r,n}n.RC4=e._createHelper(r);var i=t.RC4Drop=r.extend({cfg:r.cfg.extend({drop:192}),_doReset:function(){r._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)a.call(this)}});n.RC4Drop=e._createHelper(i)}(),n.RC4)},{"5adebd8db4e1f724":"6dayE",d5eba26e964b3fe3:"dQJ4T",be6b5d0f312e7e5b:"jxWg5","900f02bdbb6a3882":"u3uJj",ff3bd2d58928df2c:"fiMWt"}],"6eplX":[function(e,t,r){var n;t.exports=(n=e("dce97015fe9c299f"),e("543b66e1a17bbf5f"),e("2dee0f2a2cc0a874"),e("6b6c48cc5ac6eba4"),e("6297c11c0d21147a"),function(){var e=n.lib.StreamCipher,t=n.algo,r=[],a=[],i=[],o=t.Rabbit=e.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=(e[r]<<8|e[r]>>>24)&16711935|(e[r]<<24|e[r]>>>8)&4278255360;var n=this._X=[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],a=this._C=[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._b=0;for(var r=0;r<4;r++)s.call(this);for(var r=0;r<8;r++)a[r]^=n[r+4&7];if(t){var i=t.words,o=i[0],c=i[1],u=(o<<8|o>>>24)&16711935|(o<<24|o>>>8)&4278255360,l=(c<<8|c>>>24)&16711935|(c<<24|c>>>8)&4278255360,f=u>>>16|4294901760&l,d=l<<16|65535&u;a[0]^=u,a[1]^=f,a[2]^=l,a[3]^=d,a[4]^=u,a[5]^=f,a[6]^=l,a[7]^=d;for(var r=0;r<4;r++)s.call(this)}},_doProcessBlock:function(e,t){var n=this._X;s.call(this),r[0]=n[0]^n[5]>>>16^n[3]<<16,r[1]=n[2]^n[7]>>>16^n[5]<<16,r[2]=n[4]^n[1]>>>16^n[7]<<16,r[3]=n[6]^n[3]>>>16^n[1]<<16;for(var a=0;a<4;a++)r[a]=(r[a]<<8|r[a]>>>24)&16711935|(r[a]<<24|r[a]>>>8)&4278255360,e[t+a]^=r[a]},blockSize:4,ivSize:2});function s(){for(var e=this._X,t=this._C,r=0;r<8;r++)a[r]=t[r];t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0;for(var r=0;r<8;r++){var n=e[r]+t[r],o=65535&n,s=n>>>16,c=((o*o>>>17)+o*s>>>15)+s*s,u=((4294901760&n)*n|0)+((65535&n)*n|0);i[r]=c^u}e[0]=i[0]+(i[7]<<16|i[7]>>>16)+(i[6]<<16|i[6]>>>16)|0,e[1]=i[1]+(i[0]<<8|i[0]>>>24)+i[7]|0,e[2]=i[2]+(i[1]<<16|i[1]>>>16)+(i[0]<<16|i[0]>>>16)|0,e[3]=i[3]+(i[2]<<8|i[2]>>>24)+i[1]|0,e[4]=i[4]+(i[3]<<16|i[3]>>>16)+(i[2]<<16|i[2]>>>16)|0,e[5]=i[5]+(i[4]<<8|i[4]>>>24)+i[3]|0,e[6]=i[6]+(i[5]<<16|i[5]>>>16)+(i[4]<<16|i[4]>>>16)|0,e[7]=i[7]+(i[6]<<8|i[6]>>>24)+i[5]|0}n.Rabbit=e._createHelper(o)}(),n.Rabbit)},{dce97015fe9c299f:"6dayE","543b66e1a17bbf5f":"dQJ4T","2dee0f2a2cc0a874":"jxWg5","6b6c48cc5ac6eba4":"u3uJj","6297c11c0d21147a":"fiMWt"}],iooAT:[function(e,t,r){var n;t.exports=(n=e("4b15b17a67843352"),e("5fb7ffe89dc864c6"),e("2203652551377e3e"),e("5b0030ff2473b4d4"),e("7a115a0bc4f30748"),function(){var e=n.lib.StreamCipher,t=n.algo,r=[],a=[],i=[],o=t.RabbitLegacy=e.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,r=this._X=[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._C=[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._b=0;for(var a=0;a<4;a++)s.call(this);for(var a=0;a<8;a++)n[a]^=r[a+4&7];if(t){var i=t.words,o=i[0],c=i[1],u=(o<<8|o>>>24)&16711935|(o<<24|o>>>8)&4278255360,l=(c<<8|c>>>24)&16711935|(c<<24|c>>>8)&4278255360,f=u>>>16|4294901760&l,d=l<<16|65535&u;n[0]^=u,n[1]^=f,n[2]^=l,n[3]^=d,n[4]^=u,n[5]^=f,n[6]^=l,n[7]^=d;for(var a=0;a<4;a++)s.call(this)}},_doProcessBlock:function(e,t){var n=this._X;s.call(this),r[0]=n[0]^n[5]>>>16^n[3]<<16,r[1]=n[2]^n[7]>>>16^n[5]<<16,r[2]=n[4]^n[1]>>>16^n[7]<<16,r[3]=n[6]^n[3]>>>16^n[1]<<16;for(var a=0;a<4;a++)r[a]=(r[a]<<8|r[a]>>>24)&16711935|(r[a]<<24|r[a]>>>8)&4278255360,e[t+a]^=r[a]},blockSize:4,ivSize:2});function s(){for(var e=this._X,t=this._C,r=0;r<8;r++)a[r]=t[r];t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0;for(var r=0;r<8;r++){var n=e[r]+t[r],o=65535&n,s=n>>>16,c=((o*o>>>17)+o*s>>>15)+s*s,u=((4294901760&n)*n|0)+((65535&n)*n|0);i[r]=c^u}e[0]=i[0]+(i[7]<<16|i[7]>>>16)+(i[6]<<16|i[6]>>>16)|0,e[1]=i[1]+(i[0]<<8|i[0]>>>24)+i[7]|0,e[2]=i[2]+(i[1]<<16|i[1]>>>16)+(i[0]<<16|i[0]>>>16)|0,e[3]=i[3]+(i[2]<<8|i[2]>>>24)+i[1]|0,e[4]=i[4]+(i[3]<<16|i[3]>>>16)+(i[2]<<16|i[2]>>>16)|0,e[5]=i[5]+(i[4]<<8|i[4]>>>24)+i[3]|0,e[6]=i[6]+(i[5]<<16|i[5]>>>16)+(i[4]<<16|i[4]>>>16)|0,e[7]=i[7]+(i[6]<<8|i[6]>>>24)+i[5]|0}n.RabbitLegacy=e._createHelper(o)}(),n.RabbitLegacy)},{"4b15b17a67843352":"6dayE","5fb7ffe89dc864c6":"dQJ4T","2203652551377e3e":"jxWg5","5b0030ff2473b4d4":"u3uJj","7a115a0bc4f30748":"fiMWt"}],b99Gh:[function(e,t,r){var n;t.exports=(n=e("6c1b1f80a09547ea"),e("76a4278a3203b7b3"),e("31b1f7acda670f6"),e("c8a50eb69fdf3b02"),e("3c354e713d4cd19b"),function(){var e=n.lib.BlockCipher,t=n.algo;let r=[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 i={pbox:[],sbox:[]};function o(e,t){let r=e.sbox[0][t>>24&255]+e.sbox[1][t>>16&255];return r^=e.sbox[2][t>>8&255],r+=e.sbox[3][255&t]}function s(e,t,r){let n,a=t,i=r;for(let t=0;t<16;++t)a^=e.pbox[t],i=o(e,a)^i,n=a,a=i,i=n;return n=a,a=i,i=n^e.pbox[16],{left:a^=e.pbox[17],right:i}}var c=t.Blowfish=e.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var e=this._keyPriorReset=this._key;!function(e,t,n){for(let t=0;t<4;t++){e.sbox[t]=[];for(let r=0;r<256;r++)e.sbox[t][r]=a[t][r]}let i=0;for(let a=0;a<18;a++)e.pbox[a]=r[a]^t[i],++i>=n&&(i=0);let o=0,c=0,u=0;for(let t=0;t<18;t+=2)o=(u=s(e,o,c)).left,c=u.right,e.pbox[t]=o,e.pbox[t+1]=c;for(let t=0;t<4;t++)for(let r=0;r<256;r+=2)o=(u=s(e,o,c)).left,c=u.right,e.sbox[t][r]=o,e.sbox[t][r+1]=c}(i,e.words,e.sigBytes/4)}},encryptBlock:function(e,t){var r=s(i,e[t],e[t+1]);e[t]=r.left,e[t+1]=r.right},decryptBlock:function(e,t){var r=function(e,t,r){let n,a=t,i=r;for(let t=17;t>1;--t)a^=e.pbox[t],i=o(e,a)^i,n=a,a=i,i=n;return n=a,a=i,i=n^e.pbox[1],{left:a^=e.pbox[0],right:i}}(i,e[t],e[t+1]);e[t]=r.left,e[t+1]=r.right},blockSize:2,keySize:4,ivSize:2});n.Blowfish=e._createHelper(c)}(),n.Blowfish)},{"6c1b1f80a09547ea":"6dayE","76a4278a3203b7b3":"dQJ4T","31b1f7acda670f6":"jxWg5",c8a50eb69fdf3b02:"u3uJj","3c354e713d4cd19b":"fiMWt"}],fcM9g:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"checkLogin",()=>s),n.export(r,"getResourceById",()=>c),n.export(r,"getPluginConfig",()=>u),n.export(r,"getPluginInstallReport",()=>l),n.export(r,"updatePluginInstallReport",()=>f),n.export(r,"postConfirmInvitation",()=>d),n.export(r,"postUsageReport",()=>h),n.export(r,"sendEncryptedLog",()=>p),n.export(r,"getCupidResource",()=>v),n.export(r,"getWWUserRedPointInfo",()=>m),n.export(r,"getOfferRemarkCnt",()=>g),n.export(r,"batchGetOfferData",()=>b);var a=e("~common/const"),i=e("~common/utils"),o=e("~libs/mtop");async function s(){let e=await (0,o.mtopRequest)({api:"mtop.1688.pc.plugin.user.login.get",v:"1.0",data:{}}),{[a.STORAGE_KEY_IS_LOGIN]:t,[a.STORAGE_KEY_LOGIN_ID]:r,[a.STORAGE_KEY_USER_ID]:n}=await (0,i.getExtensionLocalStorage)([a.STORAGE_KEY_IS_LOGIN,a.STORAGE_KEY_LOGIN_ID,a.STORAGE_KEY_USER_ID,a.STORAGE_KEY_REAL_TIME_USER_ID]),s=e?e?.error?.type===o.ResponseType.SESSION_EXPIRED?{isLogin:!1}:{isLogin:e?.data?.isLogin==="true",loginId:e?.data?.loginId,userId:e?.data?.userId}:{isLogin:t,loginId:r,userId:n},c={[a.STORAGE_KEY_IS_LOGIN]:s.isLogin,[a.STORAGE_KEY_REAL_TIME_USER_ID]:s.isLogin?s.userId:""};return(s.loginId||s.userId)&&(c[a.STORAGE_KEY_LOGIN_ID]=s.loginId,c[a.STORAGE_KEY_USER_ID]=s.userId),await chrome.storage.local.set(c),s}async function c(e){let t=await (0,o.mtopRequest)({api:"mtop.1688.pc.plugin.resource.get",v:"1.0",data:{resourceId:e}});return t?.data?.result||[]}async function u(e){let t=await (0,o.mtopRequest)({api:"mtop.1688.pc.plugin.frontend.config.get",v:"1.0",data:{configId:e}});return t.data}async function l(e,t,r){let n=await (0,o.mtopRequest)({api:"mtop.1688.pc.plugin.install.report",v:"1.1",data:{trackId:e,uuid:t,method:r}});return n.data}async function f(e,t,r){let n=await (0,o.mtopRequest)({api:"mtop.1688.pc.plugin.attribution.method.update",v:"1.0",data:{trackId:e,uuid:t,method:r}});return n.data?.result}async function d(e){let t=await (0,o.mtopRequest)({api:"mtop.1688.pc.plugin.fission.invitation.confirm",v:"1.0",data:{uuid:e}});return t.data}async function h(e,t){let r=await (0,o.mtopRequest)({api:"mtop.1688.pc.plugin.usage.report",v:"1.0",data:{cna:t,uuid:e,version:chrome.runtime.getManifest().version,env:a.ENV_TAG}});return r.data}async function p(e){let t=await (0,o.mtopRequest)({api:"mtop.1688.pc.plugin.collected.data.report",v:"1.0",data:{data:e}});return t.data}async function v(e,t){let r=await (0,o.mtopRequest)({api:"mtop.alibaba.cbu.cupid.resource.getResourceData",v:"2.0",data:{resourceId:e,paramsStr:JSON.stringify({userId:t})}},{isCupid:!0});return r.data}async function m(e){let t=await (0,o.mtopRequest)({api:"mtop.1688.pc.plugin.im.user.red.point",v:"1.0",data:e},{needEncrypt:!0});if(-1!==t.code&&!(t.data instanceof Array))return t?.data?.model}async function g(e){let t=await (0,o.mtopRequest)({api:"mtop.1688.pc.plugin.selection.production.stats.query",v:"1.0",data:{offerId:e}},{needEncrypt:!0});return t.data}async function b(e){let t=[];for(let r=0;r(0,o.mtopRequest)({api:"mtop.1688.pc.plugin.selection.normal.info",v:"1.0",data:{offerIds:e}},{needEncrypt:!0}))),n=[];return r.forEach(e=>{if("fulfilled"===e.status){let t=e?.value?.data?.result;Array.isArray(t)&&n.push(...t)}}),n}},{"~common/const":"bkfUq","~common/utils":"kYpGH","~libs/mtop":"6eepW","@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],"6eepW":[function(e,t,r){var n,a,i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"ResponseType",()=>a),i.export(r,"abortableMtopRequest",()=>v),i.export(r,"mtopRequest",()=>m);var o=e("@ali/1688-marketmate-lib"),s=e("~background/log"),c=e("~common/const"),u=e("~common/type"),l=e("~common/utils"),f=e("./logger"),d=e("./secure-token-pool");(0,o.mtop)(),(0,f.mountLogger)();let h=globalThis?.lib?.mtop;(n=a||(a={}))[n.ERROR=0]="ERROR",n[n.SUCCESS=1]="SUCCESS",n[n.TOKEN_EXPIRED=2]="TOKEN_EXPIRED",n[n.SESSION_EXPIRED=3]="SESSION_EXPIRED";let p=["FAIL_SYS_SESSION_EXPIRED","FAIL_SYS_ILLEGAL_ACCESS","FAIL_SYS_TOKEN_EMPTY","FAIL_SYS_TOKEN_ILLEGAL"];async function v(e,t){let{method:r,noWapa:n,prefix:i,subDomain:o,mainDomain:s,...f}=e,{[c.STORAGE_KEY_OPTIONS]:p}=await (0,l.getExtensionLocalStorage)(c.STORAGE_KEY_OPTIONS)||{},v=p?.[u.OptionsKey.LANGUAGE]||c.DEFAULT_LANGUAGE;r&&(f.type=r||"GET");let m={NeedAuthToken:t?.needEncrypt,DeclareExtensionHost:!0};if(t?.needEncrypt)try{let e=await (0,l.getUUID)(),{version:t}=chrome.runtime.getManifest(),r=await (0,d.waitForToken)();m.metaInfo={token:r,version:t,uuid:e}}catch(e){}let{[c.STORAGE_KEY_MTOP_ENV_SWITCH]:w}=await (0,l.getExtensionLocalStorage)(c.STORAGE_KEY_MTOP_ENV_SWITCH);c.ENV_TAG===c.ENV.PRODUCTION||n||!1===w?h.config.subDomain=o||"m":(h.config.subDomain=o||"wapa",t?.isCupid&&(f.data={...f.data||{},draft:!0})),h.config.prefix=i||"h5api",h.config.mainDomain=s||"1688.com";let{promise:S,abort:E}=function(e){let t=new AbortController,r=new Promise((r,n)=>{e(r,n,t.signal)});return{promise:r,abort:()=>t.abort()}}((r,n,i)=>{let o=_();h.request({v:"1.0",prefix:"h5api",appKey:12574478,jsv:"2.7.3",dataType:"json",...f,customConfig:m,ext_headers:{"X-Accept-Language":v},fetchInitConfig:{signal:i}},n=>{let i=y(n);i===a.SUCCESS?r({code:0,data:n?.data}):r({code:-1,error:{type:i,message:n?.ret||[]}});let s=_(),c=g(n?.ret||[]);b({api:t?.reportApi||e.api,timing:s-o,success:0===n.retType||c,message:{...n,data:void 0}})},n=>{let a=y(n);r({code:-1,error:{type:a,message:n.ret||[]}});let i=_(),s=g(n.ret||[]);b({api:t?.reportApi||e.api,timing:i-o,success:s,message:n})})});return{promise:S,abort:E}}async function m(e,t){let{promise:r}=await v(e,t);return r}function g(e){return p.some(t=>e[0]?.includes(t))}function b(e){try{let{api:t,timing:r,success:n,message:a}=e;(0,s.sendLog)({type:"metrics",target:"mtop",api:t,success:n,timing:r,extra:{message:a}},u.LogSource.API)}catch(e){console.warn(e)}}function y(e){let t=e.ret||"";return Array.isArray(t)&&(t=t.join(",")),t.indexOf("SUCCESS")>-1?a.SUCCESS:t.indexOf("TOKEN_EMPTY")>-1||t.indexOf("TOKEN_EXOIRED")>-1?a.TOKEN_EXPIRED:t.indexOf("SESSION_EXPIRED")>-1||t.indexOf("SID_INVALID")>-1||t.indexOf("AUTH_REJECT")>-1||t.indexOf("NEED_LOGIN")>-1?a.SESSION_EXPIRED:a.ERROR}function _(){return Math.floor(100*performance.now())/100}},{"@ali/1688-marketmate-lib":"jURHk","~background/log":"5w5vQ","~common/const":"bkfUq","~common/type":"1PlmV","~common/utils":"kYpGH","./logger":"2Jn8P","./secure-token-pool":"e7j2r","@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],"2Jn8P":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"mountLogger",()=>s);var a=e("@ali/1688-marketmate-lib"),i=e("./../common/const"),o=e("./../common/utils");let s=async()=>{try{let e=await (0,o.getUUID)(),{[i.STORAGE_KEY_LOGIN_ID]:t,[i.STORAGE_KEY_USER_ID]:r,[i.STORAGE_KEY_IS_LOGIN]:n,[i.STORAGE_KEY_IS_NUMBER_BROWSER]:s}=await (0,o.getExtensionLocalStorage)([i.STORAGE_KEY_LOGIN_ID,i.STORAGE_KEY_USER_ID,i.STORAGE_KEY_IS_LOGIN,i.STORAGE_KEY_IS_NUMBER_BROWSER]),c=navigator.userAgent;s&&(c+=" 360");let u={uuid:e,loginId:t,userId:r,isLogin:n,version:chrome.runtime.getManifest().version,env:i.ENV_TAG,package:i.ENV_PACKAGE,ua:c};(0,a.logger).updateLoggerInfo(u)}catch(e){}}},{"@ali/1688-marketmate-lib":"jURHk","./../common/const":"bkfUq","./../common/utils":"kYpGH","@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],e7j2r:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"TokenWaitingPool",()=>o),n.export(r,"waitForToken",()=>s);var a=e("~common/const"),i=e("~common/utils");class o{static getInstance(){return o.instance||(o.instance=new o),o.instance}setHeartbeatStatus(e){this.heartbeatPromise=e}isHeartbeatInProgress(){return null!==this.heartbeatPromise}async waitForToken(){let e=await this.getExistingToken();if(e)return e;if(this.isHeartbeatInProgress())try{return await this.heartbeatPromise,await this.getExistingToken()}catch(e){}return null}async getExistingToken(){try{let{[a.STORAGE_KEY_CRYPTO]:e}=await (0,i.getExtensionLocalStorage)(a.STORAGE_KEY_CRYPTO);if(e&&"string"==typeof e)return e}catch(e){}return null}constructor(){this.heartbeatPromise=null}}async function s(){let e=o.getInstance();return e.waitForToken()}},{"~common/const":"bkfUq","~common/utils":"kYpGH","@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],"8Rm1G":[function(e,t,r){let n;var a=e("@parcel/transformer-js/src/esmodule-helpers.js");a.defineInteropFlag(r),a.export(r,"getEnableDebugLog",()=>s),a.export(r,"consoleLog",()=>c),a.export(r,"consoleError",()=>u),a.export(r,"consoleInfo",()=>l),a.export(r,"consoleWarn",()=>f),a.export(r,"consoleTable",()=>d);var i=e("~common/const"),o=e("~common/utils");let s=async()=>{if(i.ENV_TAG!==i.ENV.PRODUCTION)return!0;if(void 0!==n)return n;let{[i.STORAGE_KEY_ENABLE_DEBUG_LOG]:e}=await (0,o.getExtensionLocalStorage)(i.STORAGE_KEY_ENABLE_DEBUG_LOG);return n=!0===e},c=async(e,...t)=>{let r=await s();r&&console.log(e,...t)},u=async(e,...t)=>{let r=await s();r&&console.error(e,...t)},l=async(e,...t)=>{let r=await s();r&&console.info(e,...t)},f=async(e,...t)=>{let r=await s();r&&console.warn(e,...t)},d=async(e,t)=>{let r=await s();r&&console.table(e,t)}},{"~common/const":"bkfUq","~common/utils":"kYpGH","@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],"8dFwT":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"ImageProcessor",()=>a);class a{static convertCssPixelsToNumber(e){return parseFloat(e)}static parseImageData(e){let{top:t,left:r,width:n,height:a,cropWidth:i,cropHeight:o,backgroundImage:s}=e||{};return{originalWidth:n,originalHeight:a,cropWidth:i,cropHeight:o,base64Data:s,offsetLeft:r,offsetTop:t}}static async cropImageFromSource(e){let{base64Data:t,originalWidth:r,originalHeight:n,offsetLeft:a,offsetTop:i,cropWidth:o,cropHeight:s,quality:c=.8}=e;return new Promise((e,u)=>{if(!t){u(Error("base64Data \u4e0d\u80fd\u4e3a\u7a7a"));return}if(o<=0||s<=0){u(Error("\u622a\u53d6\u5c3a\u5bf8\u5fc5\u987b\u5927\u4e8e0"));return}if(isNaN(r)||isNaN(n)){u(Error(`\u6ca1\u6709\u83b7\u53d6\u5230\u56fe\u7247\u5c3a\u5bf8: width: ${r}; height: ${n}`));return}let l=new Image;l.crossOrigin="anonymous",l.onload=()=>{let t=l.naturalWidth/r,f=l.naturalHeight/n,d=document.createElement("canvas");d.width=o*t,d.height=s*f;let h=d.getContext("2d");if(!h){u(Error("\u65e0\u6cd5\u521b\u5efacanvas\u4e0a\u4e0b\u6587"));return}try{h.drawImage(l,-a*t,-i*f,o*t,s*f,0,0,o*t,s*f);let r=d.toDataURL("image/jpeg",c);if("data:,"===r){u(Error(`\u751f\u6210\u7684base64\u6570\u636e\u65e0\u6548: ${r.slice(0,100)}`));return}e(r)}catch(e){u(Error(`\u56fe\u7247\u622a\u53d6\u5931\u8d25: ${e.message}`))}},l.onerror=e=>{u(Error(`\u539f\u56fe\u52a0\u8f7d\u5931\u8d25\uff0c\u8bf7\u68c0\u67e5base64\u6570\u636e\u662f\u5426\u6b63\u786e: ${JSON.stringify(e)}`))};let f=`${t}`;l.src=f})}static base64ToFile(e,t,r){let n=atob(e.split(",")[1]),a=Array(n.length);for(let e=0;en),a.export(r,"getAiPickPermission",()=>l),a.export(r,"uploadBase64Img",()=>f),a.export(r,"aiPick",()=>d);var i=e("@ali/mui-data-loader"),o=e("~common/const"),s=e("~common/utils"),c=e("~libs/mtop"),u=e("./store");async function l(){let e=await (0,c.mtopRequest)({api:"mtop.cbu.pc.tiansuo.engine.dialog.access",bizType:"plugin_img_search_ai_select",v:"1.0",data:{sceneCode:u.AI_SEARCH_SCENE_CODE,bizParam:{}}});return e.data}(n||(n={})).INVALID_ACCESS="CPTE-BASE-BIZ-ACCESS_REJECT";let f=async e=>{let t=await (0,c.mtopRequest)({api:"mtop.1688.wechat.image.upload.normal",v:"1.0",method:"POST",data:{base64Image:e}});if(0!==t.code)throw Error(JSON.stringify(t));return t.data},d=async(e,t)=>{let{[o.STORAGE_KEY_MTOP_ENV_SWITCH]:r}=await (0,s.getExtensionLocalStorage)(o.STORAGE_KEY_MTOP_ENV_SWITCH);return new Promise(n=>{let a=new i.Stream;a.createStream({msgInitial:{queryString:"",sceneCode:u.AI_SEARCH_SCENE_CODE},bizParams:{picUrl:e}},{accessToken:t},{environment:o.ENV_TAG!==o.ENV.PRODUCTION&&(r??!0)?"pre":"prod",bizType:"plugin_img_search_ai_select"}).onStreamStart(e=>{a.destroy(),n({code:0,data:{messageInfo:{messageStatus:e?.msgStatus,sceneCode:u.AI_SEARCH_SCENE_CODE,sessionId:e.sessionId,msgId:e.msgId||""}}})}).onStreamFail(e=>{n({code:-1,error:{type:c.ResponseType.ERROR,message:e}})})})}},{"@ali/mui-data-loader":"brAyZ","~common/const":"bkfUq","~common/utils":"kYpGH","~libs/mtop":"6eepW","./store":"eRJ1i","@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],brAyZ:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"getSessionList",()=>o.getSessionList),n.export(r,"getMessageList",()=>s.getMessageList),n.export(r,"getMsgDetail",()=>c.getMsgDetail),n.export(r,"saveMsg",()=>c.saveMsg),n.export(r,"getAssetsToken",()=>c.getAssetsToken),n.export(r,"Stream",()=>i.default);var a=e("./stream"),i=n.interopDefault(a),o=e("./scene"),s=e("./session"),c=e("./message")},{"./stream":"iSjuX","./scene":"d8uow","./session":"YRBPP","./message":"4ElEW","@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],iSjuX:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var a=e("@swc/helpers/_/_assert_this_initialized"),i=e("@swc/helpers/_/_class_call_check"),o=e("@swc/helpers/_/_create_class"),s=e("@swc/helpers/_/_define_property"),c=e("@swc/helpers/_/_inherits"),u=e("@swc/helpers/_/_object_spread"),l=e("@swc/helpers/_/_object_spread_props"),f=e("@swc/helpers/_/_create_super"),d=e("./server"),h=n.interopDefault(d),p=e("../utils/util"),v=e("../const"),m=e("../utils/tracker"),g=n.interopDefault(m),b=e("./helper"),y=e("./storage"),_=n.interopDefault(y),w={chunkIndex:1,chunkCount:1,chunkDetail:[],failedReasonDetail:[]},S=function(e){(0,c._)(r,e);var t=(0,f._)(r);function r(e){(0,i._)(this,r);var n,o=e||{},c=o.maxRetryCount,u=o.isRetryFailCanContinue,l=o.isAbortFinishCanContinue,f=o.isCoverNeedChunksSource;return o.sceneCode,o.bizType,n=t.call(this,{maxRetryCount:c}),(0,s._)((0,a._)(n),"processChunk",function(e,t){var r,a,i=e.compId,o=e.propCode,s=e.incremental,c=e.dynamicData;t?(0,p.debugConsole).info("~~~~stream/index.ts,processChunkFirst~~~~"):(0,p.debugConsole).infoPro("~~~~stream/index.ts,processChunk~~~~");var u=n.compsInfo.find(function(e){return e.id===i});if(!u){(0,p.debugConsole).error("~~~~stream/index.ts,processChunk~~~~,\u7ec4\u4ef6\u5217\u8868\u4e2d\u6ca1\u6709\u5f53\u524dchunk\u6240\u5c5e\u7684\u7ec4\u4ef6\uff0ccompId\uff0cthis.compsInfo",i,n.compsInfo);return}u.streamData[o]=c,(n.isCoverNeedChunksSource||s)&&(null==u||null===(a=u.chunksSource)||void 0===a||null===(r=a[o])||void 0===r||r.push(c)),t?(0,p.debugConsole).info("this.compsInfo\u3001this.streamInfo\uff1a",n.compsInfo,n.streamInfo):(0,p.debugConsole).infoPro("this.compsInfo\u3001this.streamInfo\uff1a",n.compsInfo,n.streamInfo),n.streamHandlers.onUpdate(),t&&n.streamHandlers.onFirstData&&n.streamHandlers.onFirstData()}),n.streamInstanceId="dataloader".concat(Date.now()),n.initStatusJudge({isRetryFailCanContinue:u,isAbortFinishCanContinue:l}),n.isCoverNeedChunksSource=f,n.streamHandlers={onStart:function(e){(0,p.debugConsole).info("~~~~stream/index.ts,handleStart~~~~,\u6d41\u5f00\u59cb\u4e86",e)},onLayout:function(){(0,p.debugConsole).info("~~~~stream/index.ts,handleLayout~~~~,\u7b2c\u4e00\u4e2amsg chunk\u5e03\u5c40\u6570\u636e\u6765\u4e86\uff0c",n.compsInfo,n.streamInfo)},onFirstData:function(){(0,p.debugConsole).info("~~~~stream/index.ts,handleFirstData~~~~,\u7b2c\u4e8c\u4e2amsg chunk\u6709AI\u56de\u7b54\u7684\u6570\u636e\u4e86\uff0c",n.compsInfo,n.streamInfo)},onUpdate:function(){(0,p.debugConsole).info("~~~~stream/index.ts,handleUpdate~~~~,\u6301\u7eed\u66f4\u65b0...\uff0c",n.compsInfo,n.streamInfo)},onFinish:function(){(0,p.debugConsole).info("~~~~stream/index.ts,handleFinish~~~~,\u6d41\u6210\u529f\u7684\u7ed3\u675f\u4e86\uff0c",n.streamInfo)},onAbort:function(){(0,p.debugConsole).info("~~~~stream/index.ts,handleAbort~~~~,\u6d41\u88ab\u4e1a\u52a1\u4e3b\u52a8\u4e2d\u65ad\u4e86\uff0c",n.streamInfo)},onError:function(e){(0,p.debugConsole).error("~~~~stream/index.ts,handleError~~~~,\u6d41\u51fa\u9519\u4e86\uff0c",n.streamInfo,"error:",e)},onRetry:function(e){(0,p.debugConsole).warn("~~~~stream/index.ts,handleRetry~~~~,\u6d41\u91cd\u8bd5\u5931\u8d25\u4e86\uff0c",n.streamInfo,"error:",e)},onHistory:function(){(0,p.debugConsole).info("~~~~stream/index.ts,handleHistory~~~~,\u6d41\u7684\u5386\u53f2\u6570\u636e\uff0c",n.streamInfo)}},window.addEventListener("beforeunload",function(){n.abortAndStoreIfNeed()}),n.streamStorage=new _.default,n}return(0,o._)(r,[{key:"resetLocalData",value:function(){this.streamInfo=(0,u._)({},w),this.messageInfo=(0,b.otherHelpers).getMessageInfoFromStreamInfo(this.streamInfo),this.compsInfo=[]}},{key:"abortAndStoreIfNeed",value:function(e){var t;if((null===(t=this.streamInfo)||void 0===t?void 0:t.msgStatus)==v.MSG_STATUS.generating.generating||e){(0,p.debugConsole).info("~~~~stream/index.ts,abortAndStoreIfNeed~~~~,".concat(e?"\u7528\u6237":"\u7cfb\u7edf","\u4e3b\u52a8\u4e2d\u65ad\u5f53\u524d\u5b9e\u4f8b\u4e2d\u7684\u6d41\u5e76\u5b58\u5230storage\u4e2d")),null===(n=this.streamContext)||void 0===n||null===(r=n.abort)||void 0===r||r.call(n);var r,n,a=this.streamInfo,i=this.compsInfo;(0,_.default).setMsg(a.msgId,{streamInfo:a,compsInfo:i})}}},{key:"initStatusJudge",value:function(e){var t=e.isRetryFailCanContinue,r=e.isAbortFinishCanContinue,n=[v.MSG_STATUS.generating.generating],a=[v.MSG_STATUS.failed.allFailed,v.MSG_STATUS.failed.halfFailed],i=[v.MSG_STATUS.finished.allFinished,v.MSG_STATUS.finished.halfFinished];t?n.push(v.MSG_STATUS.failed.retryFailed):a.push(v.MSG_STATUS.failed.retryFailed),r?n.push(v.MSG_STATUS.finished.abortFinished):i.push(v.MSG_STATUS.finished.abortFinished),this.judgeStatus={canContinue:function(e){return n.includes(e)},isFailed:function(e){return a.includes(e)},isFinish:function(e){return i.includes(e)}}}},{key:"processLayout",value:function(e){var t=e.componentList;(0,p.debugConsole).info("~~~~stream/index.ts\uff0cprocessLayout~~~~");var r=t.reduce(function(e,t){var r=t.componentInstanceId,n=t.cdnUrl,a=t.chunkList,i=t.staticConfig;if(r){var o=(a||[]).reduce(function(e,t){e[t.propCode]=[]},{});e.push({id:r,name:r,url:n,staticConfig:i,streamData:{},chunksSource:o})}return e},[]);this.compsInfo=r,(0,p.debugConsole).info("this.compsInfo",this.compsInfo),this.streamHandlers.onLayout()}},{key:"createStream",value:function(e,t,r){var n=e.msgInitial,a=e.bizParams,i=e.bizEnvironment,o=e.extParams;return(0,p.debugConsole).info("~~~~stream/index.ts,createStream~~~~\u4f20\u53c2\uff1amessageInitial\u3001bizParams\u3001bizEnvironment\u3001extParams",n,a,i,o),this.abortAndStoreIfNeed(),this.resetLocalData(),this.streamInfo=(0,l._)((0,u._)({},w),{queryString:null==n?void 0:n.queryString,sceneCode:null==n?void 0:n.sceneCode,sessionId:null==n?void 0:n.sessionId,msgStatus:v.INITIAL_MSG_STATUS.generating,parentMsgId:null==n?void 0:n.parentMsgId}),this.messageInfo=(0,b.otherHelpers).getMessageInfoFromStreamInfo(this.streamInfo),this.getStreamNew({msgInitial:n,bizParams:a,bizEnvironment:i,extParams:o},t,r),this}},{key:"continueStream",value:function(){}},{key:"replayStreamInner",value:function(e,t){var r;return((0,p.debugConsole).info("~~~~stream/index.ts,replayStreamInner~~~~\uff0cthis.streamInfo\uff1a",this.streamInfo),this.judgeStatus.canContinue(null===(r=this.streamInfo)||void 0===r?void 0:r.msgStatus))?this.getStreamContinue({streamInfo:this.streamInfo},e,t):(0,p.debugConsole).warn("~~~~stream/index.ts,replayStreamInner~~~~,\u6d41\u72b6\u6001\u4e0d\u652f\u6301\u7eed\u6d41\uff0cthis.streamInfo\uff1a",this.streamInfo),this}},{key:"reShowStream",value:function(e,t){var r,n=e.msgOfServer,a=(t||{}).autoError,i=void 0===a||a;(0,p.debugConsole).info("~~~~stream/index.ts,reStream~~~~,\u4f20\u53c2\uff1amsg\u3001autoContinue\u3001autoError:",n,i),this.abortAndStoreIfNeed(),this.resetLocalData();var o=n||{},s=o.sceneCode,c=o.sessionId,f=o.msgId,d=o.messageStatus,h=o.parentMsgId,v=o.messageContent,m=(void 0===v?{}:v).messageContent;if(this.judgeStatus.canContinue(d)){var y=(0,_.default).getMsg(f),S=y.error,E=y.data;S?(r={streamInfo:{},compsInfo:[]},(0,p.debugConsole).warn("~~~~stream/index.ts,reShowStream~~~~,storage\u6ca1\u62ff\u5230\u6570\u636e\uff0c\u8c03\u7528\u7eed\u6d41\u4f1a\u5c1d\u8bd5\u4ece\u5934\u6d41")):r=E}else{var k=function(e){try{var t=JSON.parse(e),r=t.compsInfo,n=t.streamInfo;if(!r.length)throw Error("compsInfo\u4e0d\u662f\u6570\u7ec4");return n.chunkDetail||(n.chunkDetail=[]),{data:t,error:null}}catch(e){return(0,g.default).reportTrace({name:"parseMsg",logType:"js-validate",meanings:"\u5386\u53f2\u6570\u636e\u89e3\u6790\u5931\u8d25",error:(0,p.stringifyEveryThing)(e)}),{data:null,error:e}}}(void 0===m?"":m),I=k.error,x=k.data;if(I)return{error:I,compsInfo:null};r=x}var O=r.compsInfo,T=r.streamInfo;return(this.streamInfo=(0,l._)((0,u._)({},w,T),{sceneCode:s,sessionId:c,msgId:f,msgStatus:d,parentMsgId:h}),this.messageInfo=(0,b.otherHelpers).getMessageInfoFromStreamInfo(this.streamInfo),this.compsInfo=O,(0,p.debugConsole).info("this.streamInfo, this.compsInfo",this.streamInfo,this.compsInfo),i&&this.judgeStatus.isFailed(d))?{error:(0,b.otherHelpers).reShapeErrorChunkParams(T)}:{compsInfo:O}}},{key:"replayStream",value:function(e,t,r,n){var a=e.msgOfServer,i=this,o=this.reShowStream({msgOfServer:a},t),s=o.error;return(o.compsInfo,s)?setTimeout(function(){i.streamHandlers.onError(s)},0):setTimeout(function(){i.streamHandlers.onHistory(),i.judgeStatus.canContinue(i.streamInfo.msgStatus)&&i.replayStreamInner(r,n)},0),this}},{key:"abortStream",value:function(){var e,t;(0,p.debugConsole).info("~~~~stream/index.ts,abortStream~~~~,\u4e2d\u65ad\u6d41"),null===(t=this.streamContext)||void 0===t||null===(e=t.abort)||void 0===e||e.call(t),this.judgeStatus.canContinue(v.MSG_STATUS.finished.abortFinished)?this.abortAndStoreIfNeed(!0):this.successEnd({endStatus:v.MSG_STATUS.finished.abortFinished})}},{key:"destroy",value:function(){var e,t;null===(t=this.streamContext)||void 0===t||null===(e=t.abort)||void 0===e||e.call(t),this.abortAndStoreIfNeed(!0),this.resetLocalData()}},{key:"onStreamStart",value:function(e){var t=this;return this.streamHandlers.onStart=function(r){(0,p.debugConsole).info("~~~~stream/index.ts\uff0cstreamHandlers.onStart~~~~\uff0cthis.streamInfo:","background:lightblue;line-height:24px",t.streamInfo),e(r)},this}},{key:"onStreamLayout",value:function(e){var t=this;return this.streamHandlers.onLayout=function(){(0,p.debugConsole).info("~~~~stream/index.ts\uff0cstreamHandlers.onLayout~~~~\uff0cthis.streamInfo:","background:lightblue;line-height:24px",t.streamInfo),e(t.compsInfo,t.messageInfo)},this}},{key:"onStreamFirstData",value:function(e){var t=this;return this.streamHandlers.onFirstData=function(){(0,p.debugConsole).info("~~~~stream/index.ts\uff0cstreamHandlers.onFirstData~~~~\uff0cthis.streamInfo:","background:lightblue;line-height:24px",t.streamInfo),e(t.compsInfo,t.messageInfo)},this}},{key:"onStreamUpdate",value:function(e){var t=this;return this.streamHandlers.onUpdate=function(){(0,p.debugConsole).infoPro("~~~~stream/index.ts\uff0cstreamHandlers.onUpdate~~~~\uff0cthis.streamInfo:","background:lightblue;line-height:24px",t.streamInfo),e(t.compsInfo,t.messageInfo)},this}},{key:"onStreamFinish",value:function(e){var t=this;return this.streamHandlers.onFinish=function(){(0,p.debugConsole).info("~~~~stream/index.ts\uff0cstreamHandlers.onFinish~~~~\uff0cthis.streamInfo:","background:lightblue;line-height:24px",t.streamInfo),e(t.messageInfo,!1)},this.streamHandlers.onAbort=function(){(0,p.debugConsole).info("~~~~stream/index.ts\uff0cstreamHandlers.onAbort~~~~\uff0cthis.streamInfo:","background:lightblue;line-height:24px",t.streamInfo),e(t.messageInfo,!0)},this}},{key:"onStreamFail",value:function(e){var t=this;return this.streamHandlers.onError=function(r){(0,p.debugConsole).error("~~~~stream/index.ts\uff0cstreamHandlers.onError~~~~\uff0cthis.streamInfo:","background:lightblue;line-height:24px",t.streamInfo),e(r,t.messageInfo,"stream")},this.streamHandlers.onRetry=function(r){(0,p.debugConsole).error("~~~~stream/index.ts\uff0cstreamHandlers.onRetry~~~~\uff0cthis.streamInfo:","background:lightblue;line-height:24px",t.streamInfo),e(r,t.messageInfo,"retry")},this}},{key:"onStreamHistory",value:function(e){var t=this;return this.streamHandlers.onHistory=function(){(0,p.debugConsole).info("~~~~stream/index.ts\uff0cstreamHandlers.onHistory~~~~\uff0cthis.streamInfo:","background:lightblue;line-height:24px",t.streamInfo),e(t.compsInfo,t.messageInfo)},this}}]),r}(h.default);r.default=S},{"@swc/helpers/_/_assert_this_initialized":"kLrHJ","@swc/helpers/_/_class_call_check":"05bL4","@swc/helpers/_/_create_class":"5DxXH","@swc/helpers/_/_define_property":"dDgsd","@swc/helpers/_/_inherits":"cJoav","@swc/helpers/_/_object_spread":"fzj09","@swc/helpers/_/_object_spread_props":"j5SKX","@swc/helpers/_/_create_super":"3SDdb","./server":"6pz4k","../utils/util":"fLHoZ","../const":"jdeL3","../utils/tracker":"jFoGJ","./helper":"1RBAj","./storage":"gddZu","@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],kLrHJ:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.defineInteropFlag(r),n.export(r,"_",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],"05bL4":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}n.defineInteropFlag(r),n.export(r,"_",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],"5DxXH":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(e,t){for(var r=0;ri)},{"@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],dDgsd:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}n.defineInteropFlag(r),n.export(r,"_",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],cJoav:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"_",()=>i);var a=e("./_set_prototype_of.js");function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&(0,a._)(e,t)}},{"./_set_prototype_of.js":"fTd4R","@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],fTd4R:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.defineInteropFlag(r),n.export(r,"_",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],fzj09:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"_",()=>i);var a=e("./_define_property.js");function i(e){for(var t=1;ta)},{"@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],"3SDdb":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"_",()=>s);var a=e("./_get_prototype_of.js"),i=e("./_is_native_reflect_construct.js"),o=e("./_possible_constructor_return.js");function s(e){var t=(0,i._)();return function(){var r,n=(0,a._)(e);if(t){var i=(0,a._)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,o._)(this,r)}}},{"./_get_prototype_of.js":"igSd6","./_is_native_reflect_construct.js":"hs9J0","./_possible_constructor_return.js":"ksJEu","@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],igSd6:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.defineInteropFlag(r),n.export(r,"_",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],hs9J0:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}n.defineInteropFlag(r),n.export(r,"_",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],ksJEu:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"_",()=>o);var a=e("./_assert_this_initialized.js"),i=e("./_type_of.js");function o(e,t){return t&&("object"===(0,i._)(t)||"function"==typeof t)?t:(0,a._)(e)}},{"./_assert_this_initialized.js":"kLrHJ","./_type_of.js":"ff798","@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],ff798:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}n.defineInteropFlag(r),n.export(r,"_",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],"6pz4k":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var a=e("@swc/helpers/_/_async_to_generator"),i=e("@swc/helpers/_/_class_call_check"),o=e("@swc/helpers/_/_create_class"),s=e("@swc/helpers/_/_define_property"),c=e("@swc/helpers/_/_object_spread"),u=e("@swc/helpers/_/_object_spread_props"),l=e("@swc/helpers/_/_ts_generator"),f=e("../utils/tracker"),d=n.interopDefault(f),h=e("../utils/util"),p=e("@ali/cbu-mtop-stream-v1"),v=e("../const"),m=e("./helper"),g=e("../message"),b=e("./storage"),y=n.interopDefault(b),_="background:blue;line-height:36px;border-radius: 8px;color:white;",w=function(){function e(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).maxRetryCount,r=this;(0,i._)(this,e),(0,s._)(this,"streamInstanceId",void 0),(0,s._)(this,"streamInfo",void 0),(0,s._)(this,"messageInfo",void 0),(0,s._)(this,"compsInfo",void 0),(0,s._)(this,"streamHandlers",void 0),(0,s._)(this,"judgeStatus",void 0),(0,s._)(this,"isCoverNeedChunksSource",!1),(0,s._)(this,"isRunFinishCallback",!1),(0,s._)(this,"streamContext",void 0),(0,s._)(this,"mtopStreamV1Params",void 0),(0,s._)(this,"retryHelper",void 0),(0,s._)(this,"streamStorage",void 0),(0,s._)(this,"requestPerformance",void 0),(0,s._)(this,"finishCallback",function(e){e.traceId;var t,n,a=e.chunkIndex,i=e.chunkCount,o=e.id,s=r.streamInfo.chunkDetail.length,c=r.streamInfo.chunkDetail.filter(function(e){return e.incremental&&"VALIDATE_SUCCESS"!==e.errorCode}).length,u=r.streamInfo.chunkDetail.filter(function(e){return!e.incremental&&"VALIDATE_SUCCESS"!==e.errorCode}).length,l=c+u,f=(null===(t=r.streamInfo.chunkDetail[s-1])||void 0===t?void 0:t.errorCode)!=="VALIDATE_SUCCESS";if(l?l===s?n=v.MSG_STATUS.failed.allFailed:c||u&&(n=f?v.MSG_STATUS.failed.halfFailed:v.MSG_STATUS.finished.halfFinished):n=v.MSG_STATUS.finished.allFinished,n===v.MSG_STATUS.failed.allFailed||n===v.MSG_STATUS.failed.halfFailed)throw{level:"VALIDATE",chunkIndex:a,chunkId:o,chunkCount:i,errorCode:"VALIDATE_FAILED",logMeaning:'\u6d41\u5f0f\u63a5\u53e3biz\u5c42\u5931\u8d25\uff0c.on("finish"\u8ba1\u7b97\u6700\u7ec8\u72b6\u6001\u4e3a\u5931\u8d25',endStatus:n};(0,h.debugConsole).info('~~~~server.ts\uff0c.on("finished~~~~',_),r.isRunFinishCallback=!0,r.successEnd({endStatus:n})}),this.retryHelper=new m.RetryHelper(t),this.requestPerformance={startTime:0,layoutTime:0,firstDataTime:0,endTime:0,duration:0}}return(0,o._)(e,[{key:"dataCallback",value:function(t){if(this.streamInfo.chunkCount<=e.LAYOUT_CHUNK_COUNT?(0,h.debugConsole).info('~~~~server.ts,.on("data~~~~\u54cd\u5e94\u6570\u636e\uff08\u6d41\u7684\u4e00\u6bb5/\u5757/chunk\uff09'+this.streamInfo.chunkCount,_,t):(0,h.debugConsole).infoPro('~~~~server.ts,.on("data~~~~\u54cd\u5e94\u6570\u636e\uff08\u6d41\u7684\u4e00\u6bb5/\u5757/chunk\uff09'+this.streamInfo.chunkCount,_,t),this.streamInfo.chunkCount===e.LAYOUT_CHUNK_COUNT){var r,n,a=(null==t?void 0:t.data)||{},i=a.msgId,o=a.sessionId,s=a.msgStatus;this.streamHandlers.onStart({traceId:null==t?void 0:t.traceId,msgId:i,sessionId:o,msgStatus:s})}var l=t.traceId,f=t.data,d=void 0===f?{}:f,p=t.id,g=this.streamInfo.chunkCount;this.streamInfo.traceId=l;var b=d||{},y=b.msgId,w=b.sessionId,S=b.msgStatus,E=b.traceId;if(this.streamInfo.conversationTraceId=E,!(S===v.INITIAL_MSG_STATUS.generating||S===v.INITIAL_MSG_STATUS.finished))throw{level:"MSG",chunkIndex:p,chunkCount:g,errorCode:d.errorCode,errorInfo:d.errorInfo,logMeaning:"\u6d41\u5f0f\u63a5\u53e3biz\u5c42message\u7ea7\u522b\u5931\u8d25",endStatus:v.MSG_STATUS.failed.allFailed};if(this.streamInfo.sessionId=w,this.streamInfo.msgId=y,d.msgStatus===v.INITIAL_MSG_STATUS.finished)return this.finishCallback({traceId:l,chunkIndex:p,chunkCount:g});var k=(null==d?void 0:null===(r=d.contents)||void 0===r?void 0:r[0])||{},I=k.content,x=k.contentType,O=k.status,T=k.errorCode,A=k.errorInfo,M=k.id,R=k.incremental,C=I||{},j=C.propCode,N=C.componentInstanceId,P=C.componentChunkUniqueKey,D=(0,h.isTrue)(R),L=(null==I?void 0:null===(n=I.uiSchema)||void 0===n?void 0:n.componentList)||[],F=L.filter(function(e){return e.componentInstanceId}),B=null==I?void 0:I.data,U={level:"CHUNK",chunkIndex:p,chunkCount:g,chunkId:M,errorInfo:A,incremental:D,componentChunkUniqueKey:P};if(g===e.LAYOUT_CHUNK_COUNT&&!("finished"===O&&"ui_framework"===x&&L.length&&F.length===L.length))throw(0,u._)((0,c._)({},U),{errorCode:T||"VALIDATE_FAILED",logMeaning:"\u6d41\u5f0f\u63a5\u53e3biz\u5c42chunk\u7ea7\u522b\u5931\u8d25\uff0c\u9996\u4e2achunk\u7c7b\u578b'ui_framework'\uff0c\u4f46\u8fd4\u56de\u7684\u72b6\u6001\u4e3a\u5931\u8d25\u6216\u8fd4\u56de\u7684\u5185\u5bb9\u4e0d\u53ef\u7528",endStatus:v.MSG_STATUS.failed.allFailed});if(g>e.LAYOUT_CHUNK_COUNT&&!(O&&"finished"===O&&"component_chunk"===x&&B)){if(this.streamInfo.chunkDetail.push((0,u._)((0,c._)({},U),{errorCode:T||"VALIDATE_FAILED",logMeaning:"\u6d41\u5f0f\u63a5\u53e3biz\u5c42chunk\u7ea7\u522b\u5931\u8d25\uff0c\u5f53\u524dchunk\u7c7b\u578b\u662f'component_chunk'\uff0c\u4f46\u8fd4\u56de\u7684\u72b6\u6001\u4e3a\u5931\u8d25\u6216\u8005\u8fd4\u56de\u7684\u5185\u5bb9\u4e3a\u7a7a"})),(0,h.isTrue)(D));else{this.streamInfo.chunkCount++;return}}this.streamInfo.chunkId=M,this.streamInfo.chunkCount===e.LAYOUT_CHUNK_COUNT&&this.processLayout({componentList:L}),this.streamInfo.chunkCount>e.LAYOUT_CHUNK_COUNT&&this.processChunk({incremental:D,propCode:j,dynamicData:B,compId:N},this.streamInfo.chunkCount===e.FIRST_DATA_COUNT),this.streamInfo.chunkDetail.push((0,u._)((0,c._)({errorCode:"VALIDATE_SUCCESS"},U),{errorInfo:"",logMeaning:""})),this.messageInfo=(0,m.otherHelpers).getMessageInfoFromStreamInfo(this.streamInfo),this.streamInfo.chunkCount===e.LAYOUT_CHUNK_COUNT&&(this.requestPerformance.layoutTime=Date.now()),this.streamInfo.chunkCount===e.FIRST_DATA_COUNT&&(this.requestPerformance.firstDataTime=Date.now()),this.streamInfo.chunkCount++}},{key:"endCallback",value:function(){if(!this.isRunFinishCallback){(0,h.debugConsole).warn('~~~~server.ts\uff0c.on("end~~~~',_);var e=this.streamInfo;throw{level:"VALIDATE",chunkIndex:"END",chunkCount:(e.chunkIndex,e.chunkCount),errorCode:"VALIDATE_FAILED",logMeaning:'\u6d41\u5f0f\u63a5\u53e3biz\u5c42\u672a\u77e5\u5931\u8d25\uff0c\u8fdb\u5165.on("end"',endStatus:this.streamInfo.chunkDetail.length===this.streamInfo.chunkDetail.filter(function(e){return"VALIDATE_SUCCESS"!==e.errorCode}).length?v.MSG_STATUS.failed.allFailed:v.MSG_STATUS.finished.halfFinished}}}},{key:"errorCallback",value:function(e){var t=this;if((0,h.debugConsole).error('~~~~server.ts\uff0c.on("error ~~~~',e),"FETCH_NET_WORK"===e.errorCode){this.retryHelper.isMaxRetry()?this.judgeStatus.canContinue(v.MSG_STATUS.failed.retryFailed)?this.abortAndStoreIfNeed(!0):this.failEnd(e,!1):setTimeout(function(){var e,r;t.getStream(null===(e=t.mtopStreamV1Params)||void 0===e?void 0:e.options,null===(r=t.mtopStreamV1Params)||void 0===r?void 0:r.params),t.retryHelper.addRetryCount()},3e3);return}this.failEnd(e,!1)}},{key:"successEnd",value:function(e){var t,r,n=e.endStatus;(0,h.debugConsole).info("~~~~server.ts\uff0csuccessEnd~~~~\uff0cthis.streamInfo\uff1a",_,this.streamInfo);var a=n===v.MSG_STATUS.finished.abortFinished,i=this.streamInfo,o=i.traceId,s=i.conversationTraceId;this.streamInfo.msgStatus=n,this.messageInfo=(0,m.otherHelpers).getMessageInfoFromStreamInfo(this.streamInfo),a?this.streamHandlers.onAbort():this.streamHandlers.onFinish(),this.requestPerformance.endTime=Date.now(),this.requestPerformance.duration=this.requestPerformance.endTime-this.requestPerformance.startTime,(0,d.default).reportTrace({name:null===(r=this.mtopStreamV1Params)||void 0===r?void 0:null===(t=r.options)||void 0===t?void 0:t.api,logType:a?"server-cancel":n===v.MSG_STATUS.finished.allFinished?"server-success":"server-downgrade",traceId:o,conversationTraceId:s,meanings:a?"\u6d41\u5f0f\u8bf7\u6c42\u6210\u529f\uff0c\u7528\u6237\u4e3b\u52a8\u53d6\u6d88":"\u6d41\u5f0f\u8bf7\u6c42\u6210\u529f",requestDuration:this.requestPerformance.duration,requestPerformanceFormatted:(0,h.stringifyEveryThing)((0,h.convertTimestampsToDates)(this.requestPerformance))});var c=this.compsInfo,u=this.streamInfo;(0,g.saveMsg)({streamInfo:u,compsInfo:c}),(0,y.default).clearMsg(u.msgId)}},{key:"failEnd",value:function(e,t){var r,n,a,i,o,s,u=e.level?e:(0,m.otherHelpers).completeErrorChunkItem(e,this.streamInfo,t,this.retryHelper.isMaxRetry()),l=u.endStatus,f=this.streamInfo,p=f.traceId,b=f.conversationTraceId,w=f.chunkDetail;this.streamInfo.msgStatus=l,this.streamInfo.chunkDetail.push(u),this.messageInfo=(0,m.otherHelpers).getMessageInfoFromStreamInfo(this.streamInfo),this.streamInfo.msgStatus===v.MSG_STATUS.failed.retryFailed?null===(r=(n=this.streamHandlers).onRetry)||void 0===r||r.call(n,(0,c._)({traceId:p},u)):null===(a=(i=this.streamHandlers).onError)||void 0===a||a.call(i,(0,c._)({traceId:p},u)),this.requestPerformance.endTime=Date.now(),this.requestPerformance.duration=this.requestPerformance.endTime-this.requestPerformance.startTime,(0,d.default).reportTrace({logType:"server-error",name:null===(s=this.mtopStreamV1Params)||void 0===s?void 0:null===(o=s.options)||void 0===o?void 0:o.api,traceId:p,conversationTraceId:b,params:(0,h.stringifyEveryThing)(this.mtopStreamV1Params),errorReason:(0,h.stringifyEveryThing)(u),meanings:"\u6d41\u5f0f\u8bf7\u6c42\u5931\u8d25",requestDuration:this.requestPerformance.duration,requestPerformanceFormatted:(0,h.stringifyEveryThing)((0,h.convertTimestampsToDates)(this.requestPerformance)),failedReasonDetail:(0,h.stringifyEveryThing)(null==w?void 0:w.filter(function(e){return"VALIDATE_SUCCESS"!==e.errorCode}))});var S=this.compsInfo,E=this.streamInfo;(0,g.saveMsg)({streamInfo:E,compsInfo:S}),(0,y.default).clearMsg(E.msgId),(0,h.debugConsole).info("~~~~server.ts\uff0cfailEnd~~~~\uff0cthis.streamInfo",_,this.streamInfo)}},{key:"getStream",value:function(e,t){var r=this;return(0,a._)(function(){var n;return(0,l._)(this,function(a){switch(a.label){case 0:r.mtopStreamV1Params={options:e,params:t},r.requestPerformance.startTime=Date.now(),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,(0,p.getStream)({options:e,params:t,nativeFetch:void 0})];case 2:return r.streamContext=a.sent(),r.streamContext.data.on("data",function(e){r.retryHelper.resetRetryCount(),r.dataCallback(e)}).on("end",function(e){r.retryHelper.resetRetryCount(),r.endCallback()}).on("error",function(e){r.errorCallback(e)}),[3,4];case 3:return n=a.sent(),(0,h.debugConsole).error("catch",n),r.failEnd(n,!0),[3,4];case 4:return[2]}})})()}},{key:"getStreamNew",value:function(t,r,n){var i=t.msgInitial,o=t.bizParams,s=t.bizEnvironment,u=t.extParams,f=this;return(0,a._)(function(){var t,a,d,h,p,v;return(0,l._)(this,function(l){return p={data:JSON.stringify((0,c._)({userAction:"chat",sessionId:null===(t=i)||void 0===t?void 0:t.sessionId,sessionType:"component_chat",parentMsgId:null===(a=i)||void 0===a?void 0:a.parentMsgId,params:{sceneCode:null===(d=i)||void 0===d?void 0:d.sceneCode},contents:[{content:null===(h=i)||void 0===h?void 0:h.queryString,contentType:"text",role:"user",bizParams:o,bizEnvironment:s,ext:u}]},r||{}))},v=(0,c._)({api:e.GET_STREAM_API,timeout:6e4,method:"POST",xAcceptStream:!0},n||{}),f.getStream(v,p),[2]})})()}},{key:"getStreamContinue",value:function(t,r,n){var i=t.streamInfo,o=this;return(0,a._)(function(){var t,a,s,u,f;return(0,l._)(this,function(l){return u={data:JSON.stringify((0,c._)({sessionId:null===(t=i)||void 0===t?void 0:t.sessionId,retryMsgId:null===(a=i)||void 0===a?void 0:a.msgId,lastComponentChunkId:null===(s=i)||void 0===s?void 0:s.chunkId},r||{}))},f=(0,c._)({api:e.GET_STREAM_REPLAY_API,timeout:6e4,method:"POST",xAcceptStream:!0},n||{}),o.getStream(f,u),[2]})})()}}]),e}();(0,s._)(w,"LAYOUT_CHUNK_COUNT",1),(0,s._)(w,"FIRST_DATA_COUNT",2),(0,s._)(w,"GET_STREAM_API","mtop.cbu.pc.tiansuo.engine.dialog.conversation"),(0,s._)(w,"GET_STREAM_REPLAY_API","mtop.cbu.pc.tiansuo.engine.dialog.conversation.message.replay"),r.default=w},{"@swc/helpers/_/_async_to_generator":"faxJC","@swc/helpers/_/_class_call_check":"05bL4","@swc/helpers/_/_create_class":"5DxXH","@swc/helpers/_/_define_property":"dDgsd","@swc/helpers/_/_object_spread":"fzj09","@swc/helpers/_/_object_spread_props":"j5SKX","@swc/helpers/_/_ts_generator":"lJ01F","../utils/tracker":"jFoGJ","../utils/util":"fLHoZ","@ali/cbu-mtop-stream-v1":"aFO1m","../const":"jdeL3","./helper":"1RBAj","../message":"4ElEW","./storage":"gddZu","@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],faxJC:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(e,t,r,n,a,i,o){try{var s=e[i](o),c=s.value}catch(e){r(e);return}s.done?t(c):Promise.resolve(c).then(n,a)}function i(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function s(e){a(o,n,i,s,c,"next",e)}function c(e){a(o,n,i,s,c,"throw",e)}s(void 0)})}}n.defineInteropFlag(r),n.export(r,"_",()=>i)},{"@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],lJ01F:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"_",()=>a.__generator);var a=e("tslib")},{tslib:"gdEuw","@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],gdEuw:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"__extends",()=>i),n.export(r,"__assign",()=>o),n.export(r,"__rest",()=>s),n.export(r,"__decorate",()=>c),n.export(r,"__param",()=>u),n.export(r,"__esDecorate",()=>l),n.export(r,"__runInitializers",()=>f),n.export(r,"__propKey",()=>d),n.export(r,"__setFunctionName",()=>h),n.export(r,"__metadata",()=>p),n.export(r,"__awaiter",()=>v),n.export(r,"__generator",()=>m),n.export(r,"__createBinding",()=>g),n.export(r,"__exportStar",()=>b),n.export(r,"__values",()=>y),n.export(r,"__read",()=>_),n.export(r,"__spread",()=>w),n.export(r,"__spreadArrays",()=>S),n.export(r,"__spreadArray",()=>E),n.export(r,"__await",()=>k),n.export(r,"__asyncGenerator",()=>I),n.export(r,"__asyncDelegator",()=>x),n.export(r,"__asyncValues",()=>O),n.export(r,"__makeTemplateObject",()=>T),n.export(r,"__importStar",()=>R),n.export(r,"__importDefault",()=>C),n.export(r,"__classPrivateFieldGet",()=>j),n.export(r,"__classPrivateFieldSet",()=>N),n.export(r,"__classPrivateFieldIn",()=>P),n.export(r,"__addDisposableResource",()=>D),n.export(r,"__disposeResources",()=>F),n.export(r,"__rewriteRelativeImportExtension",()=>B);var a=function(e,t){return(a=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;rt.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);at.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}function c(e,t,r,n){var a,i=arguments.length,o=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,r,o):a(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o}function u(e,t){return function(r,n){t(r,n,e)}}function l(e,t,r,n,a,i){function o(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var s,c=n.kind,u="getter"===c?"get":"setter"===c?"set":"value",l=!t&&e?n.static?e:e.prototype:null,f=t||(l?Object.getOwnPropertyDescriptor(l,n.name):{}),d=!1,h=r.length-1;h>=0;h--){var p={};for(var v in n)p[v]="access"===v?{}:n[v];for(var v in n.access)p.access[v]=n.access[v];p.addInitializer=function(e){if(d)throw TypeError("Cannot add initializers after decoration has completed");i.push(o(e||null))};var m=(0,r[h])("accessor"===c?{get:f.get,set:f.set}:f[u],p);if("accessor"===c){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw TypeError("Object expected");(s=o(m.get))&&(f.get=s),(s=o(m.set))&&(f.set=s),(s=o(m.init))&&a.unshift(s)}else(s=o(m))&&("field"===c?a.unshift(s):f[u]=s)}l&&Object.defineProperty(l,n.name,f),d=!0}function f(e,t,r){for(var n=arguments.length>2,a=0;a0&&a[a.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!a||s[1]>a[0]&&s[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function _(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,i=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)o.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(a)throw a.error}}return o}function w(){for(var e=[],t=0;t1||s(e,t)})},t&&(n[e]=t(n[e])))}function s(e,t){try{var r;(r=a[e](t)).value instanceof k?Promise.resolve(r.value.v).then(c,u):l(i[0][2],r)}catch(e){l(i[0][3],e)}}function c(e){s("next",e)}function u(e){s("throw",e)}function l(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function x(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,a){t[n]=e[n]?function(t){return(r=!r)?{value:k(e[n](t)),done:!1}:a?a(t):t}:a}}function O(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=y(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,a){(function(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)})(n,a,(t=e[r](t)).done,t.value)})}}}function T(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var A=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},M=function(e){return(M=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t})(e)};function R(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=M(e),n=0;n-1||location.search.indexOf("_debug_")>-1?"pre":"prod"),(0,i._)(this,"enscrptStr",Math.random().toString().substring(2)),(0,i._)(this,"userId",(null===(r=document.cookie.match(/unb=([^;]+)/))||void 0===r?void 0:r[1])||Math.random().toString(16).substring(2)),(0,i._)(this,"loginId",c()),(0,i._)(this,"userIdAfterEnscrpt",this.encrypt(this.userId,this.enscrptStr)),(0,i._)(this,"deviceId",(null===(a=document.cookie.match(/cna=([^;]+)/))||void 0===a?void 0:a[1])||Math.random().toString(16).substring(2)),(0,i._)(this,"commonInfo",{}),this.option=(0,o._)({},this.option,t),window.__pc_venue_tracker__=this}return(0,a._)(e,[{key:"encrypt",value:function(e,t){for(var r=0,n=e.split(""),a=0;ai);var a=e("./_object_without_properties_loose.js");function i(e,t){if(null==e)return{};var r,n,i=(0,a._)(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}},{"./_object_without_properties_loose.js":"jBDL6","@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],jBDL6:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(e,t){if(null==e)return{};var r,n,a={},i=Object.keys(e);for(n=0;n=0||(a[r]=e[r]);return a}n.defineInteropFlag(r),n.export(r,"_",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],fLHoZ:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"stringifyEveryThing",()=>s),n.export(r,"isTrue",()=>c),n.export(r,"isDebug",()=>l),n.export(r,"isDebugPro",()=>f),n.export(r,"logStl",()=>d),n.export(r,"debugConsole",()=>h),n.export(r,"convertTimestampsToDates",()=>p);var a=e("@swc/helpers/_/_instanceof"),i=e("@swc/helpers/_/_to_consumable_array"),o=e("@swc/helpers/_/_type_of");function s(e){if(null==e)return String(e);var t=void 0===e?"undefined":(0,o._)(e);if((0,a._)(e,Error))return JSON.stringify({message:e.message,stack:e.stack});if("object"===t)try{return JSON.stringify(e,function(e,t){return"function"==typeof t?t.toString():t},2)}catch(t){return String(e)}else if("function"===t)return e.toString();else return String(e)}var c=function(e){return!0===e||"true"===e},u=function(){try{if(window!==window.parent)return window.parent.location.href}catch(e){console.warn("Cannot access parent location (cross-origin), using current location")}return location.href},l=u().indexOf("__muiDataLoader_debug__")>-1,f=u().indexOf("__muiDataLoader_debug__=pro")>-1,d={pink:"background: pink; color: white; line-height:40px;border-radius: 8px;",blue:"background: rgb(63, 130, 247); color: white; line-height:40px;border-radius: 8px;",purple:"background: #b063e7; color: white; line-height:40px; border-radius: 8px;",red:"background: red; color: white; height:40px;border-radius: 8px;",orange:"background: orange; color: white; line-height:40px;border-radius: 8px;"},h={log:function(){for(var e,t=arguments.length,r=Array(t),n=0;n1?r-1:0),a=1;a2?a-2:0),s=2;s2?a-2:0),s=2;s1?r-1:0),a=1;aa)},{"@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],"2Cb2m":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"_",()=>c);var a=e("./_array_without_holes.js"),i=e("./_iterable_to_array.js"),o=e("./_non_iterable_spread.js"),s=e("./_unsupported_iterable_to_array.js");function c(e){return(0,a._)(e)||(0,i._)(e)||(0,s._)(e)||(0,o._)()}},{"./_array_without_holes.js":"iaMVV","./_iterable_to_array.js":"1DgUK","./_non_iterable_spread.js":"lMN0r","./_unsupported_iterable_to_array.js":"lx81R","@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],iaMVV:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"_",()=>i);var a=e("./_array_like_to_array.js");function i(e){if(Array.isArray(e))return(0,a._)(e)}},{"./_array_like_to_array.js":"gQ4e1","@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],gQ4e1:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);ra)},{"@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],"1DgUK":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.defineInteropFlag(r),n.export(r,"_",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],lMN0r:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.defineInteropFlag(r),n.export(r,"_",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],lx81R:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"_",()=>i);var a=e("./_array_like_to_array.js");function i(e,t){if(e){if("string"==typeof e)return(0,a._)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return(0,a._)(e,t)}}},{"./_array_like_to_array.js":"gQ4e1","@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],aFO1m:[function(e,t,r){var n,a=e("@parcel/transformer-js/src/esmodule-helpers.js");a.defineInteropFlag(r),a.export(r,"getStream",()=>S);var i=e("@swc/helpers/_/_async_to_generator"),o=e("@swc/helpers/_/_class_call_check"),s=e("@swc/helpers/_/_create_class"),c=e("@swc/helpers/_/_define_property"),u=e("@swc/helpers/_/_instanceof"),l=e("@swc/helpers/_/_object_spread"),f=e("@swc/helpers/_/_object_spread_props"),d=e("@swc/helpers/_/_to_consumable_array"),h=e("@swc/helpers/_/_ts_generator"),p=e("./lib-mtop-next-native-source/entry/web"),v=location.href.indexOf("__mtop_subdomain__=wapa")>-1||location.href.indexOf("pre-")>-1,m={FETCH_NET_WORK:"FETCH_NET_WORK",FAIL_BIZ_STREAM_ERROR:"FAIL_BIZ_STREAM_ERROR",JS:"JS",UNKNOWN:"UNKNOWN"},g={handleError:function(e){var t=e.message,r="network error"===e.message?m.FETCH_NET_WORK:m.JS;return"network error"!==e.message&&setTimeout(function(){throw e},0),{errorInfo:t,errorCode:r}},handleErrInfoWithRet:function(e){var t,r,n=(null===(r=e.ret)||void 0===r?void 0:null===(t=r[0])||void 0===t?void 0:t.split("::"))||[];return{errorCode:("network error"===n[0]?m.FETCH_NET_WORK:n[0])||m.UNKNOWN,errorInfo:n[1]||""}},handleErrInfoWithErrorCode:function(e){return(0,f._)((0,l._)({},e),{errorInfo:e.errorInfo||""})},handleDefault:function(e){return{errorInfo:String(e),errorCode:m.UNKNOWN}}},b=function(e){return(0,u._)(e,Error)?g.handleError(e):"object"==typeof e&&"ret"in e&&Array.isArray(e.ret)?g.handleErrInfoWithRet(e):"object"==typeof e&&"errorCode"in e?g.handleErrInfoWithErrorCode(e):g.handleDefault(e)},y=function(){function e(){(0,o._)(this,e),(0,c._)(this,"listeners",{}),(0,c._)(this,"stickyEvents",{})}return(0,s._)(e,[{key:"on",value:function(e,t){return this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t),this.stickyEvents[e]&&this.stickyEvents[e].forEach(function(e){t.apply(void 0,(0,d._)(e))}),this}},{key:"emit",value:function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n3)||void 0===c[3]||c[3],(null===(i=window)||void 0===i?void 0:null===(a=i.lib)||void 0===a?void 0:a.mtop)||console.error("mtop not found"),o={prefix:"h5api",timeout:6e4,mainDomain:"1688.com",v:"1.0",method:"POST",subDomain:"pre"===e.environment||!e.environment&&v?"wapa":"m",xAcceptStream:!0},s=(0,f._)((0,l._)({experimental:{fetch:r||window.fetch,openWhenHidden:n}},o,e),{data:t}),[2,(0,p.requestStream)(s)]})})).apply(this,arguments)}var w=function(){function e(t,r){(0,o._)(this,e),(0,c._)(this,"data",void 0),(0,c._)(this,"abortController",void 0),this.data=new y,this.abortController=r,this.processStream(t)}return(0,s._)(e,[{key:"processStream",value:function(e){var t=this;return(0,i._)(function(){var r,n,a,i,o,s,c;return(0,h._)(this,function(l){switch(l.label){case 0:r=null,l.label=1;case 1:if(l.trys.push([1,5,6,7]),!(0,u._)(e,ReadableStream))throw{errorCode:m.FAIL_BIZ_STREAM_ERROR,errorInfo:"result is not a stream"};r=e.getReader(),l.label=2;case 2:return[4,r.read()];case 3:if(a=(n=l.sent()).done,i=n.value,a)return t.data.emit("end"),[3,4];if((o=i.ret)&&"string"==typeof o[0]&&!o[0].includes("SUCCESS"))throw{errorCode:(s=o[0].split("::")||[])[0],errorInfo:s[1]};return t.data.emit("data",i),[3,2];case 4:return[3,7];case 5:return c=b(l.sent()),t.data.emit("error",c),[3,7];case 6:return(0,u._)(r,ReadableStreamDefaultReader)&&r.releaseLock(),t.abortController.abort(),[7];case 7:return[2]}})})()}},{key:"abort",value:function(){this.abortController.abort()}}]),e}(),S=(n=(0,i._)(function(e){var t,r,n,a,i;return(0,h._)(this,function(o){switch(o.label){case 0:t=e.options,r=e.params,n=e.nativeFetch,a=e.openWhenHidden,o.label=1;case 1:return o.trys.push([1,3,,4]),[4,function(e,t,r){return _.apply(this,arguments)}(t,r,n,a)];case 2:return[2,new w((i=o.sent()).stream,i.ctx.abortController)];case 3:throw b(o.sent());case 4:return[2]}})}),function(e){return n.apply(this,arguments)})},{"@swc/helpers/_/_async_to_generator":"faxJC","@swc/helpers/_/_class_call_check":"05bL4","@swc/helpers/_/_create_class":"5DxXH","@swc/helpers/_/_define_property":"dDgsd","@swc/helpers/_/_instanceof":"9c3DV","@swc/helpers/_/_object_spread":"fzj09","@swc/helpers/_/_object_spread_props":"j5SKX","@swc/helpers/_/_to_consumable_array":"2Cb2m","@swc/helpers/_/_ts_generator":"lJ01F","./lib-mtop-next-native-source/entry/web":"F7ydW","@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],F7ydW:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"requestStream",()=>h),n.export(r,"MTOP",()=>u.MTOP);var a=e("@swc/helpers/_/_async_to_generator"),i=e("@swc/helpers/_/_ts_generator"),o=e("../platform/web/middleware/anti-creep"),s=e("../platform/web/middleware/anti-flood"),c=e("../platform/web/middleware/login"),u=e("../platform/web"),l=e("../platform/web/enum");n.exportAll(l,r);var f=e("../type/mtop");n.exportAll(f,r);var d=e("../platform/web/lib/error");function h(e){return p.apply(this,arguments)}function p(){return(p=(0,a._)(function(e){return(0,i._)(this,function(t){return[2,new(0,u.MTOP)(e).requestStream()]})})).apply(this,arguments)}n.exportAll(d,r),(0,u.MTOP).use(c.loginMiddleware),(0,u.MTOP).use(s.antiFloodMiddleware),(0,u.MTOP).use(o.antiCreepMiddleware)},{"@swc/helpers/_/_async_to_generator":"faxJC","@swc/helpers/_/_ts_generator":"lJ01F","../platform/web/middleware/anti-creep":"lHXet","../platform/web/middleware/anti-flood":"cuWrD","../platform/web/middleware/login":"ftI2I","../platform/web":"daPR5","../platform/web/enum":!1,"../type/mtop":!1,"../platform/web/lib/error":!1,"@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],lHXet:[function(e,t,r){var n,a=e("@parcel/transformer-js/src/esmodule-helpers.js");a.defineInteropFlag(r),a.export(r,"antiCreepMiddleware",()=>c);var i=e("@swc/helpers/_/_async_to_generator"),o=e("@swc/helpers/_/_ts_generator");function s(e){return e.preventDefault(),!1}var c=(n=(0,i._)(function(e,t){var r,n,a,i,c;return(0,o._)(this,function(o){switch(o.label){case 0:if(!e.config.AntiCreep)return[2,t()];return[4,t()];case 1:if(o.sent(),(n=e.response.ret.join(",")).includes("CHECKJS_FLAG")&&e.response.uuid&&e.response.serid){try{a=!!window.document._sufei_data2,i=new Image,c="https://fourier.taobao.com/ts?ext=200&uuid="+e.response.uuid+"&serid="+e.response.serid+"&sufei="+a,window.location&&location.href&&(c+="&href=="+location.href.substr(0,128)),window.__fyModule&&(c+="&fyModuleLoad="+window.__fyModule.load+"&fyModuleInit="+window.__fyModule.init),window.__umModule&&(c+="&umModuleLoad="+window.__umModule.load+"&umModuleInit="+window.__umModule.init),window.__uabModule&&(c+="&uabModuleLoad="+window.__uabModule.load+"&uabModuleInit="+window.__uabModule.init),window.__ncModule&&(c+="&ncModuleLoad="+window.__ncModule.load+"&ncModuleInit="+window.__ncModule.init),window.__nsModule&&(c+="&nsModuleLoad="+window.__nsModule.load+"&nsModuleInit="+window.__nsModule.init),window.__etModule&&(c+="&etModuleLoad="+window.__etModule.load+"&etModuleInit="+window.__etModule.init),i.src=c,document.body.appendChild(i)}catch(e){console.log(e,"\u4e0a\u62a5\u5f02\u5e38")}return[2,e.retry()]}if(n.includes("RGV587_ERROR::SM")||n.includes("ASSIST_FLAG")&&(null===(r=e.response.data)||void 0===r?void 0:r.url))return[2,new Promise(function(t,r){var n=new(function(e,t){var r=navigator.userAgent.match(/.*(iPhone|iPad|Android|ios|SymbianOS|Windows Phone).*/i),n=r&&t.h5url?t.h5url:t.url,a=t.dialogSize,i=this,o=window.dpr||1,c=document.createElement("div"),u=document.documentElement.getBoundingClientRect(),l=Math.max(u.width,window.innerWidth)/o,f=window.innerHeight/o;c.style.cssText=["-webkit-transform:scale("+o+") translateZ(0)","-ms-transform:scale("+o+") translateZ(0)","transform:scale("+o+") translateZ(0)","-webkit-transform-origin:0 0","-ms-transform-origin:0 0","transform-origin:0 0","width:"+l+"px","height:"+f+"px","z-index:2147483647","position: fixed","left:0","top:0px","background:"+(l>800?"rgba(0,0,0,.5)":"#FFF"),"display:none"].join(";");var d=document.createElement("div");d.style.cssText="width:100%;height:52px;background:transparent;line-height:52px;text-align:left;box-sizing:border-box;padding-left:20px;position:absolute;left:0;top:0;font-size:16px;font-weight:bold;color:#333",d.innerText="";var h=document.createElement("img");h.style.cssText="display:block;position:absolute;margin-top:15px;right:0;top:0;height:15px;line-height:52px;padding:0 20px;color:#999",h.src="https://gw.alicdn.com/tfs/TB1QZN.CYj1gK0jSZFuXXcrHpXa-200-200.png";var p=document.createElement("iframe");if(p.style.cssText="width:100%;height:100%;border:0;overflow:hidden",r)d.appendChild(h),c.appendChild(d);else{var v=a&&a.width||"420px",m=a&&a.height||"320px",g=50,b=50,y=24,_=-3;m.indexOf("px")>-1?y-=Number(m.replace("px",""))/2:m.indexOf("%")>-1&&(g-=Number(m.replace("%",""))/2),v.indexOf("px")>-1?_+=Number(v.replace("px",""))/2:v.indexOf("%")>-1&&(b+=Number(v.replace("%",""))/2),h.style.cssText=["position:absolute","width:15px","height:15px","top:"+g+"%","left:"+b+"%","cursor: pointer","border:0","z-index:1","overflow:hidden","margin-top:"+y+"px","margin-left:"+_+"px"].join(";"),c.appendChild(h),p.style.cssText=["position:absolute","top:0px","left:0px","bottom:0px","right:0px","margin:auto","width:"+v,"height:"+m,"border:0","background:#FFF","overflow:hidden","border-radius:18px"].join(";")}c.appendChild(p),c.className="J_MIDDLEWARE_FRAME_WIDGET",document.body.appendChild(c),p.src=n,h.addEventListener("click",function(){i.hide();var e=document.createEvent("HTMLEvents");e.initEvent("close",!1,!1),c.dispatchEvent(e)},!1),this.addEventListener=function(){c.addEventListener.apply(c,arguments)},this.removeEventListener=function(){c.removeEventListener.apply(c,arguments)},this.show=function(){document.addEventListener("touchmove",s,!1),c.style.display="block",window.scrollTo(0,0)},this.hide=function(){document.removeEventListener("touchmove",s),window.scrollTo(0,-u.top),c.parentNode&&c.parentNode.removeChild(c)}}(0,e.response.data));function a(){n.removeEventListener("close",a),window.removeEventListener("message",i),r("USER_INPUT_CANCEL::\u7528\u6237\u53d6\u6d88\u8f93\u5165")}function i(o){var s,c;try{s=JSON.parse(o.data)||{}}catch(e){}if(s&&"child"===s.type){n.removeEventListener("close",a),window.removeEventListener("message",i),n.hide();try{for(var u in c=JSON.parse(decodeURIComponent(s.content)),"string"==typeof c&&(c=JSON.parse(c)),c)e.params[u]=c[u];return e.retry().then(t)}catch(e){r("USER_INPUT_FAILURE::\u7528\u6237\u8f93\u5165\u5931\u8d25")}}}n.addEventListener("close",a,!1),window.addEventListener("message",i,!1),n.show()})];return[2]}})}),function(e,t){return n.apply(this,arguments)})},{"@swc/helpers/_/_async_to_generator":"faxJC","@swc/helpers/_/_ts_generator":"lJ01F","@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],cuWrD:[function(e,t,r){var n,a=e("@parcel/transformer-js/src/esmodule-helpers.js");a.defineInteropFlag(r),a.export(r,"antiFloodMiddleware",()=>s);var i=e("@swc/helpers/_/_async_to_generator"),o=e("@swc/helpers/_/_ts_generator"),s=(n=(0,i._)(function(e,t){var r,n;return(0,o._)(this,function(a){switch(a.label){case 0:if(!e.config.AntiFlood)return[2,t()];return[4,t()];case 1:return a.sent(),e.response.ret.join(",").includes("FAIL_SYS_USER_VALIDATE")&&(null===(n=e.response)||void 0===n?void 0:null===(r=n.data)||void 0===r?void 0:r.url)&&(location.href=e.response.data.url),[2]}})}),function(e,t){return n.apply(this,arguments)})},{"@swc/helpers/_/_async_to_generator":"faxJC","@swc/helpers/_/_ts_generator":"lJ01F","@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],ftI2I:[function(e,t,r){var n,a=e("@parcel/transformer-js/src/esmodule-helpers.js");a.defineInteropFlag(r),a.export(r,"loginMiddleware",()=>u);var i=e("@swc/helpers/_/_async_to_generator"),o=e("@swc/helpers/_/_ts_generator"),s=e("../enum"),c=e("../lib/error"),u=(n=(0,i._)(function(e,t){var r,n,a,i;return(0,o._)(this,function(o){switch(o.label){case 0:return[4,t()];case 1:if(o.sent(),n=(r=e.response).ret.join(","),i=(a=navigator.userAgent.toLowerCase()).indexOf("safari")>-1&&0>a.indexOf("chrome")&&0>a.indexOf("qqbrowser"),!["SESSION_EXPIRED","SID_INVALID","AUTH_REJECT","NEED_LOGIN"].some(function(e){return n.includes(e)}))return[3,5];if(r.retType=s.MTopResponseType.SESSION_EXPIRED,!window.lib.login)throw new c.LibNotFountError("login");if(!(e.config.safariGoLogin&&i&&"taobao.com"!==e.config.pageDomain))return[3,2];return window.lib.login.goLogin(),[3,5];case 2:return o.trys.push([2,4,,5]),[4,window.lib.login.goLoginAsync()];case 3:return o.sent(),[2,e.retry()];case 4:if("CANCEL"===o.sent())throw new c.LoginCancelError;throw new c.LoginFailureError;case 5:return[2]}})}),function(e,t){return n.apply(this,arguments)})},{"@swc/helpers/_/_async_to_generator":"faxJC","@swc/helpers/_/_ts_generator":"lJ01F","../enum":"iBefJ","../lib/error":"2p5PO","@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],iBefJ:[function(e,t,r){var n,a,i,o,s,c,u,l,f=e("@parcel/transformer-js/src/esmodule-helpers.js");f.defineInteropFlag(r),f.export(r,"MTopResponseType",()=>s),f.export(r,"MTopResponseRet",()=>c),f.export(r,"MTopStreamResponseTrailerXRetCode",()=>u),f.export(r,"H5AppKey",()=>l),(n=s||(s={}))[n.ERROR=-1]="ERROR",n[n.SUCCESS=0]="SUCCESS",n[n.TOKEN_EXPIRED=1]="TOKEN_EXPIRED",n[n.SESSION_EXPIRED=2]="SESSION_EXPIRED",(a=c||(c={})).SUCCESS="SUCCESS",a.TOKEN_EMPTY="TOKEN_EMPTY",a.TOKEN_EXPIRED="TOKEN_EXOIRED",a.FAIL_SYS_ILLEGAL_ACCESS="ILLEGAL_ACCESS",(i=u||(u={})).SUCCESS="SUCCESS",i.FAIL_SYS_STREAM_TIMEOUT="FAIL_SYS_STREAM_TIMEOUT",i.FAIL_BIZ_STREAM_ERROR="FAIL_BIZ_STREAM_ERROR",i.FAIL_SYS_STREAM_ERROR="FAIL_SYS_STREAM_ERROR",(o=l||(l={})).DEFAULT="12574478",o.TEST="4272"},{"@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],"2p5PO":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"ParseJSONError",()=>l),n.export(r,"APIAbortedError",()=>f),n.export(r,"LibNotFountError",()=>d),n.export(r,"LoginCancelError",()=>h),n.export(r,"LoginFailureError",()=>p),n.export(r,"StreamError",()=>v);var a=e("@swc/helpers/_/_assert_this_initialized"),i=e("@swc/helpers/_/_class_call_check"),o=e("@swc/helpers/_/_define_property"),s=e("@swc/helpers/_/_inherits"),c=e("@swc/helpers/_/_wrap_native_super"),u=e("@swc/helpers/_/_create_super"),l=function(e){(0,s._)(r,e);var t=(0,u._)(r);function r(){var e;return(0,i._)(this,r),e=t.call(this,"PARSE_JSON_ERROR::\u89e3\u6790JSON\u5931\u8d25"),(0,o._)((0,a._)(e),"name","PARSE_JSON_ERROR"),e}return r}((0,c._)(Error)),f=function(e){(0,s._)(r,e);var t=(0,u._)(r);function r(){var e;return(0,i._)(this,r),e=t.call(this,"ABORT::\u63a5\u53e3\u5f02\u5e38\u9000\u51fa"),(0,o._)((0,a._)(e),"name","ABORT"),e}return r}((0,c._)(Error)),d=function(e){(0,s._)(r,e);var t=(0,u._)(r);function r(e){var n;return(0,i._)(this,r),(n=t.call(this,"".concat(e.toUpperCase(),"_NOT_FOUND::\u672a\u7f3a\u5c11lib.").concat(e))).name="".concat(e.toUpperCase(),"_NOT_FOUND"),n}return r}((0,c._)(Error)),h=function(e){(0,s._)(r,e);var t=(0,u._)(r);function r(){var e;return(0,i._)(this,r),e=t.call(this,"LOGIN_CANCEL::\u7528\u6237\u53d6\u6d88\u767b\u5f55"),(0,o._)((0,a._)(e),"name","LOGIN_CANCEL"),e}return r}((0,c._)(Error)),p=function(e){(0,s._)(r,e);var t=(0,u._)(r);function r(){var e;return(0,i._)(this,r),e=t.call(this,"LOGIN_FAILURE::\u7528\u6237\u767b\u5f55\u5931\u8d25"),(0,o._)((0,a._)(e),"name","LOGIN_FAILURE"),e}return r}((0,c._)(Error)),v=function(e){(0,s._)(r,e);var t=(0,u._)(r);function r(e){var n;return(0,i._)(this,r),n=t.call(this,"STREAM_ERROR::\u6d41\u5f0f\u63a5\u53e3\u9519\u8bef_".concat(e)),(0,o._)((0,a._)(n),"name","STREAM_ERROR"),n}return r}((0,c._)(Error))},{"@swc/helpers/_/_assert_this_initialized":"kLrHJ","@swc/helpers/_/_class_call_check":"05bL4","@swc/helpers/_/_define_property":"dDgsd","@swc/helpers/_/_inherits":"cJoav","@swc/helpers/_/_wrap_native_super":"lqsBQ","@swc/helpers/_/_create_super":"3SDdb","@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],lqsBQ:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"_",()=>c);var a=e("./_construct.js"),i=e("./_get_prototype_of.js"),o=e("./_is_native_function.js"),s=e("./_set_prototype_of.js");function c(e){var t="function"==typeof Map?new Map:void 0;return(c=function(e){if(null===e||!(0,o._)(e))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return(0,a._)(e,arguments,(0,i._)(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),(0,s._)(r,e)})(e)}},{"./_construct.js":"PogQH","./_get_prototype_of.js":"igSd6","./_is_native_function.js":"4enTN","./_set_prototype_of.js":"fTd4R","@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],PogQH:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"_",()=>o);var a=e("./_is_native_reflect_construct.js"),i=e("./_set_prototype_of.js");function o(e,t,r){return(o=(0,a._)()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var a=new(Function.bind.apply(e,n));return r&&(0,i._)(a,r.prototype),a}).apply(null,arguments)}},{"./_is_native_reflect_construct.js":"hs9J0","./_set_prototype_of.js":"fTd4R","@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],"4enTN":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(e){return -1!==Function.toString.call(e).indexOf("[native code]")}n.defineInteropFlag(r),n.export(r,"_",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],daPR5:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"MTOP",()=>I);var a=e("@swc/helpers/_/_async_to_generator"),i=e("@swc/helpers/_/_class_call_check"),o=e("@swc/helpers/_/_create_class"),s=e("@swc/helpers/_/_define_property"),c=e("@swc/helpers/_/_instanceof"),u=e("@swc/helpers/_/_object_without_properties"),l=e("@swc/helpers/_/_to_consumable_array"),f=e("@swc/helpers/_/_ts_generator"),d=e("./web/lib/compose"),h=e("./web/lib/qs"),p=e("@microsoft/fetch-event-source"),v=e("./web/lib/md5"),m=e("./web/lib/domain"),g=e("../common/validator"),b=e("./web/lib/cookie"),y=e("./web/enum"),_=e("./web/lib/error"),w={dataType:"jsonp",method:"get"},S={safariGoLogin:!0},E="_m_h5_c",k="_m_h5_tk",I=function(){function e(t){(0,i._)(this,e),(0,s._)(this,"config",null),(0,s._)(this,"params",null),(0,s._)(this,"domain",void 0),(0,s._)(this,"processRequestStreamH5",(r=(0,a._)(function(e,t){var r,n,i,o,s,c,u,l;return(0,f._)(this,function(t){var d;return r="POST"===e.params.method.toUpperCase(),n=[e.config.path,"?",(0,h.qs).stringify(e.config.query)],r||n.push("&",(0,h.qs).stringify(e.config.postdata)),i=n.join(""),o=Object.assign({Accept:"text/event-stream","Content-Type":"application/x-www-form-urlencoded"},e.params.extHeaders),s=r?(0,h.qs).stringify(e.config.postdata):void 0,c=!1,l=(u=new AbortController).signal,e.abortController=u,[2,new Promise((d=(0,a._)(function(t,r){var n;return(0,f._)(this,function(u){return n=new ReadableStream({start:function(u){var d,h,v,m;(0,p.fetchEventSource)(i,{signal:l,method:e.params.method,headers:o,credentials:"include",redirect:"manual",body:s,openWhenHidden:null===(h=e.params)||void 0===h?void 0:null===(d=h.experimental)||void 0===d?void 0:d.openWhenHidden,fetch:"function"==typeof(null===(m=e.params)||void 0===m?void 0:null===(v=m.experimental)||void 0===v?void 0:v.fetch)?e.params.experimental.fetch:void 0,onerror:function(e){throw u.error(e),c||r(e),e},onmessage:function(e){var t;try{(t=/^\s*$/.test(e.data)?{}:JSON.parse(e.data)).id=Number(e.id)}catch(e){u.error(new _.ParseJSONError);return}"resp"===e.event?u.enqueue(t):"trailer"===e.event&&t["x-retcode"]!==y.MTopStreamResponseTrailerXRetCode.SUCCESS&&u.error(new _.StreamError(t["x-retcode"]))},onopen:function(r){return(0,a._)(function(){return(0,f._)(this,function(a){switch(a.label){case 0:if(!r.headers.get("content-type").includes("application/json"))return[3,2];return[4,r.clone().json()];case 1:var i,o;return(i=a.sent()).ret=Array.isArray(i.ret)?i.ret:[],e.config.cors&&i.c&&(0,b.cookie).set(E,i.c,{domain:e.config.pageDomain,path:"/",secure:e.config.secure,sameSite:e.config.sameSite}),o=i.ret.join(","),i.retType=o.includes(y.MTopResponseRet.SUCCESS)?y.MTopResponseType.SUCCESS:y.MTopResponseType.ERROR,e.response=i,[3,3];case 2:e.response={api:e.params.api,v:e.params.v,data:{},ret:["SUCCESS::\u8c03\u7528\u6210\u529f"],retType:y.MTopResponseType.SUCCESS},e.stream=n,a.label=3;case 3:return c=!0,t(),[2]}})})()},onclose:function(){try{u.close()}catch(e){}}})}}),[2]})}),function(e,t){return d.apply(this,arguments)}))]})}),function(e,t){return r.apply(this,arguments)})),(0,s._)(this,"processRequestMethod",function(e,t){switch(e.params.method){case"get":switch(e.params.dataType){case"jsonp":e.config.getJSONP=!0;break;case"json":e.config.getJSON=!0;break;case"originaljsonp":e.config.getOriginalJSONP=!0;break;case"stream":e.config.getStream=!0}break;case"post":"stream"===e.params.dataType?e.config.getStream=!0:e.config.postJSON=!0}return t()});var r,n,o,c,l,d=this;(0,s._)(this,"processDomain",(n=(0,a._)(function(e,t){var r,n,a,i;return(0,f._)(this,function(o){return n=(r=d.domain.parseDomainEnv()).mainDomain,a=r.subDomain,i=r.prefix,e.config.mainDomain="string"==typeof e.params.mainDomain?e.params.mainDomain:n,e.config.subDomain="string"==typeof e.params.subDomain?e.params.subDomain:a,e.config.prefix="string"==typeof e.params.prefix?e.params.prefix:i,[2,t()]})}),function(e,t){return n.apply(this,arguments)})),(0,s._)(this,"processRequestUrl",(o=(0,a._)(function(t,r){var n,a,i,o,s,c,l,d,h,p,m,g,b;return(0,f._)(this,function(f){return t.config.NativeRequest||(n=["".concat(location.protocol,"//"),t.config.prefix?"".concat(t.config.prefix,"."):"",t.config.subDomain?"".concat(t.config.subDomain,"."):"",t.config.mainDomain,"/h5/",t.params.api.toLowerCase(),"/",t.params.v.toLowerCase(),"/"],a="waptest"===t.config.subDomain?y.H5AppKey.TEST:y.H5AppKey.DEFAULT,i=t.params.appKey||a,o=new Date().getTime(),s=(0,v.md5)("".concat(t.config.token,"&").concat(o,"&").concat(i,"&").concat(t.params.data)),c={jsv:e.version,appKey:i,t:o,sign:s},l=t.config.getStream?{xAcceptStream:!0}:null,(d=t.params).extHeaders,h=d.data,p=d.userAgent,m=d.extQuerys,g=Object.assign({},(0,u._)(d,["extHeaders","data","userAgent","extQuerys"]),m,c,l),b={data:h,ua:p},t.config.query=g,t.config.postdata=b,t.config.path=n.join("")),[2,r()]})}),function(e,t){return o.apply(this,arguments)}));var g=this;(0,s._)(this,"processCrossDomain",(c=(0,a._)(function(e,t){return(0,f._)(this,function(r){return e.config.pageDomain=g.domain.getPageDomain(),e.config.pageDomain!==e.config.mainDomain&&(e.config.cors=!0,e.config.maxRetryTimes=4),[2,t()]})}),function(e,t){return c.apply(this,arguments)})),(0,s._)(this,"processToken",(l=(0,a._)(function(e,t){var r,n;return(0,f._)(this,function(a){switch(a.label){case 0:return e.config.token&&delete e.config.token,e.config.cors&&(0,b.cookie).get(E)?e.config.token=(0,b.cookie).get(E).split(";")[0]:e.config.token=e.config.token||(0,b.cookie).get(k),e.config.token&&(e.config.token=e.config.token.split("_")[0]),[4,t()];case 1:if(a.sent(),e.response&&(n=(r=e.response.ret.join(",")).includes(y.MTopResponseRet.FAIL_SYS_ILLEGAL_ACCESS)&&e.config.cors,r.includes(y.MTopResponseRet.TOKEN_EMPTY)||r.includes(y.MTopResponseRet.TOKEN_EXPIRED)||n)){if(e.config.maxRetryTimes=e.config.maxRetryTimes||5,e.config.failTimes=e.config.failTimes||0,e.config.failTimes++,e.config.failTimes0&&((0,b.cookie).remove(E,e.config.pageDomain,"*"),(0,b.cookie).remove(k,e.config.mainDomain,e.config.subDomain),(0,b.cookie).remove("_m_h5_tk_enc",e.config.mainDomain,e.config.subDomain)),e.response.retType=y.MTopResponseType.TOKEN_EXPIRED}return[2]}})}),function(e,t){return l.apply(this,arguments)})),this.params=Object.assign({},w,t),this.params.method=this.params.method.toLowerCase(),"object"==typeof this.params.data&&(this.params.data=JSON.stringify(this.params.data)),this.config=Object.assign({},S,e.config),this.config.LoginRequest=this.params.LoginRequest,this.config.AntiFlood=this.params.AntiFlood,this.config.AntiCreep=!1!==this.params.AntiCreep;var I=window.location.hostname;if(!I){var x=window.parent.location.hostname;x&&~x.indexOf("zebra.alibaba-inc.com")&&(I=x)}this.domain=new m.DomainUtils(I)}return(0,o._)(e,[{key:"requestStream",value:function(){var t=this;return(0,a._)(function(){var r,n,a,i,o,s,u,h,p;return(0,f._)(this,function(f){switch(f.label){case 0:t.params.dataType="stream",(r={params:t.params,config:t.config}).retry=t.retry(r),n=[t.processDomain,t.processCrossDomain,t.processToken,t.processRequestMethod,t.processRequestUrl].concat((0,l._)(e.middlewares),[t.processRequestStreamH5]),f.label=1;case 1:return f.trys.push([1,3,,4]),[4,(0,d.compose)(n)(r)];case 2:if(f.sent(),r.response.retType!==y.MTopResponseType.SUCCESS)return[2,Promise.reject(r.response)];return[2,{stream:r.stream,ctx:r}];case 3:return a=f.sent(),(0,c._)(a,Error)?(console.error(a),u={stack:a.stack,ret:[a.message],retJson:y.MTopResponseType.ERROR,retType:y.MTopResponseType.ERROR}):u="string"==typeof a?{ret:[a],retJson:y.MTopResponseType.ERROR,retType:y.MTopResponseType.ERROR}:void 0!==a?a:r.response,(null===(s=window)||void 0===s?void 0:null===(o=s.lib)||void 0===o?void 0:null===(i=o.mtop)||void 0===i?void 0:i.errorListener)&&(null===(h=(p=window.lib.mtop).errorListener)||void 0===h||h.call(p,{api:r.params.api,v:r.params.v,retJson:r.response,data:r.params.data})),[2,Promise.reject(u)];case 4:return[2]}})})()}},{key:"retry",value:function(t){var r=this;return function(){var n=[r.processToken,r.processRequestUrl].concat((0,l._)(e.middlewares),[r.processRequestStreamH5]);return(0,d.compose)(n)(t)}}}],[{key:"use",value:function(e){return(0,g.validateFunction)("middleware",e),this.middlewares.push(e),this}}]),e}();(0,s._)(I,"middlewares",[]),(0,s._)(I,"version","0.0.1"),(0,s._)(I,"config",null)},{"@swc/helpers/_/_async_to_generator":"faxJC","@swc/helpers/_/_class_call_check":"05bL4","@swc/helpers/_/_create_class":"5DxXH","@swc/helpers/_/_define_property":"dDgsd","@swc/helpers/_/_instanceof":"9c3DV","@swc/helpers/_/_object_without_properties":"75DVk","@swc/helpers/_/_to_consumable_array":"2Cb2m","@swc/helpers/_/_ts_generator":"lJ01F","./web/lib/compose":"hpVyU","./web/lib/qs":"9Afcz","@microsoft/fetch-event-source":"ltywJ","./web/lib/md5":"lNQAy","./web/lib/domain":"5IrpU","../common/validator":"hjQEM","./web/lib/cookie":"hXiOj","./web/enum":"iBefJ","./web/lib/error":"2p5PO","@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],hpVyU:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"compose",()=>i);var a=e("../../../common/validator");function i(e){(0,a.validateArray)("middleware",e);var t=!0,r=!1,n=void 0;try{for(var i,o=e[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){var s=i.value;(0,a.validateFunction)("middleware[fn]",s)}}catch(e){r=!0,n=e}finally{try{t||null==o.return||o.return()}finally{if(r)throw n}}return function(t,r){var n=-1;return function a(i){if(i<=n)return Promise.reject(Error("next() called multiple times"));n=i;var o=e[i];if(i===e.length&&(o=r),!o)return Promise.resolve();try{return Promise.resolve(o(t,a.bind(null,i+1)))}catch(e){return Promise.reject(e)}}(0)}}},{"../../../common/validator":"hjQEM","@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],hjQEM:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(e,t){if("function"!=typeof t)throw TypeError("".concat(e," must be a function, but got ").concat(o(t)))}function i(e,t){if(!Array.isArray(t))throw TypeError("".concat(e," must be an array, but got ").concat(o(t)))}function o(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}n.defineInteropFlag(r),n.export(r,"validateFunction",()=>a),n.export(r,"validateArray",()=>i),n.export(r,"getType",()=>o)},{"@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],"9Afcz":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"qs",()=>a);var a={stringify:function(e){var t=[];for(var r in e)e[r]&&t.push(r+"="+encodeURIComponent(e[r]));return t.join("&")}}},{"@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],ltywJ:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"fetchEventSource",()=>a.fetchEventSource),n.export(r,"EventStreamContentType",()=>a.EventStreamContentType);var a=e("./fetch")},{"./fetch":"c4In2","@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],c4In2:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"EventStreamContentType",()=>o),n.export(r,"fetchEventSource",()=>c);var a=e("./parse"),i=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);at.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};let o="text/event-stream",s="last-event-id";function c(e,t){var{signal:r,headers:n,onopen:c,onmessage:l,onclose:f,onerror:d,openWhenHidden:h,fetch:p}=t,v=i(t,["signal","headers","onopen","onmessage","onclose","onerror","openWhenHidden","fetch"]);return new Promise((t,i)=>{let m;let g=Object.assign({},n);function b(){m.abort(),document.hidden||k()}g.accept||(g.accept=o),h||document.addEventListener("visibilitychange",b);let y=1e3,_=0;function w(){document.removeEventListener("visibilitychange",b),window.clearTimeout(_),m.abort()}null==r||r.addEventListener("abort",()=>{w(),t()});let S=null!=p?p:window.fetch,E=null!=c?c:u;async function k(){var r;m=new AbortController;try{let r=await S(e,Object.assign(Object.assign({},v),{headers:g,signal:m.signal}));await E(r),await (0,a.getBytes)(r.body,(0,a.getLines)((0,a.getMessages)(e=>{e?g[s]=e:delete g[s]},e=>{y=e},l))),null==f||f(),w(),t()}catch(e){if(!m.signal.aborted)try{let t=null!==(r=null==d?void 0:d(e))&&void 0!==r?r:y;window.clearTimeout(_),_=window.setTimeout(k,t)}catch(e){w(),i(e)}}}k()})}function u(e){let t=e.headers.get("content-type");if(!(null==t?void 0:t.startsWith(o)))throw Error(`Expected content-type to be ${o}, Actual: ${t}`)}},{"./parse":"kgGyz","@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],kgGyz:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");async function a(e,t){let r;let n=e.getReader();for(;!(r=await n.read()).done;)t(r.value)}function i(e){let t,r,n;let a=!1;return function(i){void 0===t?(t=i,r=0,n=-1):t=function(e,t){let r=new Uint8Array(e.length+t.length);return r.set(e),r.set(t,e.length),r}(t,i);let o=t.length,s=0;for(;r0){let r=a.decode(i.subarray(0,o)),s=o+(32===i[o+1]?2:1),c=a.decode(i.subarray(s));switch(r){case"data":n.data=n.data?n.data+"\n"+c:c;break;case"event":n.event=c;break;case"id":e(n.id=c);break;case"retry":let u=parseInt(c,10);isNaN(u)||t(n.retry=u)}}}}function s(){return{data:"",event:"",id:"",retry:void 0}}n.defineInteropFlag(r),n.export(r,"getBytes",()=>a),n.export(r,"getLines",()=>i),n.export(r,"getMessages",()=>o)},{"@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],lNQAy:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(e){var t,r,n,a,i,o,s,c,u,l=function(e,t){return e<>>32-t},f=function(e,t){var r,n,a,i,o;return(a=2147483648&e,i=2147483648&t,r=1073741824&e,n=1073741824&t,o=(1073741823&e)+(1073741823&t),r&n)?2147483648^o^a^i:r|n?1073741824&o?3221225472^o^a^i:1073741824^o^a^i:o^a^i},d=function(e,t,r,n,a,i,o){return e=f(e,f(f(t&r|~t&n,a),o)),f(l(e,i),t)},h=function(e,t,r,n,a,i,o){return e=f(e,f(f(t&n|r&~n,a),o)),f(l(e,i),t)},p=function(e,t,r,n,a,i,o){return e=f(e,f(f(t^r^n,a),o)),f(l(e,i),t)},v=function(e,t,r,n,a,i,o){return e=f(e,f(f(r^(t|~n),a),o)),f(l(e,i),t)},m=function(e){var t,r="",n="";for(t=0;t<=3;t++)r+=(n="0"+(e>>>8*t&255).toString(16)).substr(n.length-2,2);return r},g=[];for(t=0,g=function(e){for(var t,r=e.length,n=r+8,a=((n-n%64)/64+1)*16,i=Array(a-1),o=0,s=0;s>>29,i}(e=function(e){e=e.replace(/\r\n/g,"\n");for(var t="",r=0;r127&&n<2048?t+=String.fromCharCode(n>>6|192)+String.fromCharCode(63&n|128):t+=String.fromCharCode(n>>12|224)+String.fromCharCode(n>>6&63|128)+String.fromCharCode(63&n|128)}return t}(e)),o=1732584193,s=4023233417,c=2562383102,u=271733878;ta)},{"@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],"5IrpU":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"DomainUtils",()=>s);var a=e("@swc/helpers/_/_class_call_check"),i=e("@swc/helpers/_/_create_class"),o=e("@swc/helpers/_/_define_property"),s=function(){function e(t){(0,a._)(this,e),(0,o._)(this,"hostname",void 0),(0,o._)(this,"hosts",["taobao.net","taobao.com","tmall.com","tmall.hk","alibaba-inc.com"]),this.hostname=t}return(0,i._)(e,[{key:"parseDomainEnv",value:function(){var e=RegExp("([^.]*?)\\.?((?:"+this.hosts.join(")|(?:").replace(/\./g,"\\.")+"))","i"),t=this.hostname.match(e)||[],r=t[2]||"taobao.com",n=t[1]||"m";"taobao.net"===r&&("x"===n||"waptest"===n||"daily"===n)?n="waptest":"taobao.net"===r&&"demo"===n?n="demo":"alibaba-inc.com"===r&&"zebra"===n?n="zebra":"waptest"!==n&&"wapa"!==n&&"m"!==n&&(n="m");var a="h5api";return"taobao.net"===r&&"waptest"===n&&(a="acs"),{mainDomain:r,subDomain:n,prefix:a}}},{key:"getPageDomain",value:function(){var e=this.hostname;try{if(".com"===e.substring(e.lastIndexOf(".")))return e.substring(e.lastIndexOf(".",e.lastIndexOf(".")-1)+1);if((e.split(".")||[]).length<=3)return e;return e.split(".").slice(1).join(".")}catch(t){return e.substring(e.lastIndexOf(".",e.lastIndexOf(".")-1)+1)}}}]),e}()},{"@swc/helpers/_/_class_call_check":"05bL4","@swc/helpers/_/_create_class":"5DxXH","@swc/helpers/_/_define_property":"dDgsd","@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],hXiOj:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"cookie",()=>a);var a={set:function(e,t,r){var n=r||{};document.cookie=e.replace(/[^+#$&^`|]/g,encodeURIComponent).replace("(","%28").replace(")","%29")+"="+t.replace(/[^+#$&/:<-\[\]-}]/g,encodeURIComponent)+(n.domain?";domain="+n.domain:"")+(n.path?";path="+n.path:"")+(n.secure?";secure":"")+(n.httponly?";HttpOnly":"")+(n.sameSite?";Samesite="+n.sameSite:"")},remove:function(e,t,r){var n=new Date;n.setTime(n.getTime()-864e5),document.cookie=e+"=;path=/;domain=."+t+";expires="+n.toGMTString(),document.cookie=e+"=;path=/;domain=."+r+"."+t+";expires="+n.toGMTString()},get:function(e){var t=RegExp("(?:^|;\\s*)"+e+"\\=([^;]+)(?:;\\s*|$)").exec(document.cookie);return null==t?void 0:t[1]}}},{"@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],jdeL3:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"MSG_STATUS",()=>a),n.export(r,"INITIAL_MSG_STATUS",()=>i);var a={finished:{allFinished:"finished",abortFinished:"abortFinished",halfFinished:"halfFinished"},generating:{generating:"generating"},failed:{allFailed:"failed",halfFailed:"halfFailed",retryFailed:"retryFailed"}},i={finished:a.finished.allFinished,generating:a.generating.generating,failed:a.failed.allFailed}},{"@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],"1RBAj":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"otherHelpers",()=>u),n.export(r,"RetryHelper",()=>l);var a=e("@swc/helpers/_/_class_call_check"),i=e("@swc/helpers/_/_create_class"),o=e("@swc/helpers/_/_define_property"),s=e("@swc/helpers/_/_object_spread"),c=e("../const"),u={getMessageInfoFromStreamInfo:function(e){var t=e.sceneCode,r=e.sessionId,n=e.msgId,a=e.msgStatus,i=e.chunkId,o=e.parentMsgId;return{queryString:e.queryString,sceneCode:t,sessionId:r,msgId:n,msgStatus:a,chunkId:i,parentMsgId:o,failedReasonDetail:e.failedReasonDetail}},completeErrorChunkItem:function(e,t,r,n){var a,i="",o=c.MSG_STATUS.failed.allFailed,s=e.errorCode,u=e.errorInfo,l=t.chunkCount,f=t.chunkIndex,d=t.chunkId;return"JS"===s?(i='\u6d41\u5f0f\u63a5\u53e3JS\u5931\u8d25\uff0c\u8fdb\u5165.on("error"',a="JS"):"FETCH_NET_WORK"===s?(i='\u6d41\u5f0f\u63a5\u53e3\u7f51\u7edc\u5931\u8d25\uff0c\u8fdb\u5165.on("error"',a="NET",n&&(o=c.MSG_STATUS.failed.retryFailed)):(i=r?"\u6d41\u5f0f\u63a5\u53e3\u6574\u4f53\u5931\u8d25\u8fdb\u5165catch":'\u6d41\u5f0f\u63a5\u53e3mtop\u5c42\u5931\u8d25\uff0c\u8fdb\u5165.on("error"',a="MTOP"),{level:a,logMeaning:i,chunkCount:l,chunkIndex:f,errorCode:s,errorInfo:u,endStatus:o,chunkId:d}},reShapeErrorChunkParams:function(e){try{var t=e.traceId,r=e.chunkDetail.slice().reverse().find(function(e){return"VALIDATE_SUCCESS"!==e.errorCode});return(0,s._)({traceId:t},r)}catch(e){return{level:"UNKNOWN"}}}},l=function(){function e(t){(0,a._)(this,e),(0,o._)(this,"retryCount",1),(0,o._)(this,"maxRetryCount",void 0),this.maxRetryCount=Number(t)>0?t:e.DEFAULT_MAX_RETRY}return(0,i._)(e,[{key:"addRetryCount",value:function(){this.retryCount++}},{key:"resetRetryCount",value:function(){this.retryCount=0}},{key:"isMaxRetry",value:function(){return this.retryCount>this.maxRetryCount}}]),e}();(0,o._)(l,"DEFAULT_MAX_RETRY",5)},{"@swc/helpers/_/_class_call_check":"05bL4","@swc/helpers/_/_create_class":"5DxXH","@swc/helpers/_/_define_property":"dDgsd","@swc/helpers/_/_object_spread":"fzj09","../const":"jdeL3","@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],"4ElEW":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"saveMsg",()=>b),n.export(r,"getMsgDetail",()=>_),n.export(r,"getAssetsToken",()=>S);var a=e("@swc/helpers/_/_async_to_generator"),i=e("@swc/helpers/_/_instanceof"),o=e("@swc/helpers/_/_object_spread"),s=e("@swc/helpers/_/_object_spread_props"),c=e("@swc/helpers/_/_object_without_properties"),u=e("@swc/helpers/_/_sliced_to_array"),l=e("@swc/helpers/_/_ts_generator"),f=e("./utils/mtop"),d=e("./utils/tracker"),h=n.interopDefault(d),p=e("./utils/util"),v="mtop.cbu.pc.tiansuo.engine.dialog.conversation.finished",m="mtop.cbu.pc.tiansuo.portal.message.get",g="mtop.cbu.pc.tiansuo.engine.dialog.access";function b(e){return y.apply(this,arguments)}function y(){return(y=(0,a._)(function(e){var t,r,n,a,u,d,m,g,b,y,_,w,S,E,k;return(0,l._)(this,function(l){switch(l.label){case 0:(null===(r=window)||void 0===r?void 0:null===(t=r.lib)||void 0===t?void 0:t.mtop)||console.error("mtop not found"),(0,f.setMtopConfig)(),a=(n=e.streamInfo).sceneCode,u=n.sessionId,d={contentType:"tiansuo-render-protocol",sceneCode:a,sessionId:u,msgId:n.msgId,msgStatus:n.msgStatus,failedReasonDetail:n.chunkDetail.filter(function(e){return"VALIDATE_SUCCESS"!==e.errorCode}),failedReasonType:"",content:JSON.stringify(e)},l.label=1;case 1:return l.trys.push([1,3,,4]),b={v:"1.0",ecode:0,type:"POST",dataType:"jsonp",timeout:2e4,prefix:"h5api"},[4,window.lib.mtop.request((0,s._)((0,o._)({},b),{api:v,data:d}))];case 2:if(!((null===(g=(y=l.sent()).ret)||void 0===g?void 0:null===(m=g[0])||void 0===m?void 0:m.includes("SUCCESS"))&&y.data))return(0,h.default).reportTrace({name:v,logType:"server-error",meanings:"\u4fdd\u5b58\u73b0\u573a\u63a5\u53e3mtop\u5c42\u5931\u8d25\uff0c\u9519\u8bef\u4fe1\u606f=".concat(null===(S=y.ret)||void 0===S?void 0:null===(w=S[0])||void 0===w?void 0:null===(_=w.split("::"))||void 0===_?void 0:_[1])}),[2];return(0,h.default).reportTrace({name:v,logType:"server-success",meanings:"\u4fdd\u5b58\u73b0\u573a\u63a5\u53e3\u6210\u529f"}),[3,4];case 3:return E=l.sent(),d.content,k=(0,c._)(d,["content"]),(0,i._)(E,Error)?(0,h.default).reportTrace({name:v,logType:"js-error",meanings:"\u4fdd\u5b58\u73b0\u573a\u63a5\u53e3\u5904\u7406\u6570\u636e\u62a5\u9519\uff0c\u8fdb\u5165catch",errorMessage:E.message,streamInfo:(0,p.stringifyEveryThing)(e.streamInfo),paramsWithoutContent:(0,p.stringifyEveryThing)(k)}):(0,h.default).reportTrace({name:v,logType:"server-error",meanings:"\u4fdd\u5b58\u73b0\u573a\u63a5\u53e3mtop\u5c42\u5931\u8d25\uff0c\u8fdb\u5165catch",error:(0,p.stringifyEveryThing)(E),streamInfo:(0,p.stringifyEveryThing)(e.streamInfo),paramsWithoutContent:(0,p.stringifyEveryThing)(k)}),[3,4];case 4:return[2]}})})).apply(this,arguments)}function _(e,t){return w.apply(this,arguments)}function w(){return(w=(0,a._)(function(e,t){var r,n,a,s,c,d,v,g,b,y,_,w,S;return(0,l._)(this,function(l){switch(l.label){case 0:r=e.msgId,(null===(a=window)||void 0===a?void 0:null===(n=a.lib)||void 0===n?void 0:n.mtop)||console.error("mtop not found"),(0,f.setMtopConfig)(),l.label=1;case 1:return l.trys.push([1,3,,4]),d={msgId:r},[4,window.lib.mtop.request((0,o._)({api:m,v:"1.0",ecode:0,type:"GET",dataType:"jsonp",timeout:2e4,prefix:"h5api",data:d},t||{}))];case 2:if(!((null===(c=(v=l.sent()).ret)||void 0===c?void 0:null===(s=c[0])||void 0===s?void 0:s.includes("SUCCESS"))&&v.data))return _=(y=(0,u._)((null===(b=v.ret)||void 0===b?void 0:null===(g=b[0])||void 0===g?void 0:g.split("::"))||["",""],2))[0],w=y[1],(0,h.default).reportTrace({name:m,logType:"server-error",meanings:"\u83b7\u53d6\u6d88\u606f\u8be6\u60c5\u63a5\u53e3mtop\u5c42\u5931\u8d25",retCode:_,retMsg:w}),[2,{data:null,error:{}}];return(0,h.default).reportTrace({name:m,logType:"server-success",meanings:"\u83b7\u53d6\u6d88\u606f\u8be6\u60c5\u63a5\u53e3\u6210\u529f"}),[2,{data:v.data,error:null}];case 3:return S=l.sent(),(0,i._)(S,Error)?(0,h.default).reportTrace({name:m,logType:"js-error",meanings:"\u83b7\u53d6\u6d88\u606f\u8be6\u60c5\u63a5\u53e3\u5904\u7406\u6570\u636e\u62a5\u9519\uff0c\u8fdb\u5165catch",errorMessage:S.message}):(0,h.default).reportTrace({name:m,logType:"server-error",meanings:"\u83b7\u53d6\u6d88\u606f\u8be6\u60c5\u63a5\u53e3mtop\u5c42\u5931\u8d25\uff0c\u8fdb\u5165catch",error:(0,p.stringifyEveryThing)(S)}),[2,{data:null,error:{}}];case 4:return[2]}})})).apply(this,arguments)}function S(e,t){return E.apply(this,arguments)}function E(){return(E=(0,a._)(function(e,t){var r,n,a,i,o,s,c,d,v,m;return(0,l._)(this,function(l){switch(l.label){case 0:(null===(n=window)||void 0===n?void 0:null===(r=n.lib)||void 0===r?void 0:r.mtop)||console.error("mtop not found"),(0,f.setMtopConfig)(),l.label=1;case 1:return l.trys.push([1,3,,4]),[4,window.lib.mtop.request({api:g,v:"1.0",ecode:0,type:"POST",dataType:"jsonp",timeout:2e4,prefix:"h5api",data:{sceneCode:e,bizParams:t}})];case 2:if(o=l.sent(),c=(s=(0,u._)((null===(i=o.ret)||void 0===i?void 0:null===(a=i[0])||void 0===a?void 0:a.split("::"))||["",""],2))[0],d=s[1],v=o.data,!("SUCCESS"===c&&v))throw{level:"MTOP",errorCode:c,errorInfo:d};return(0,h.default).reportTrace({name:g,logType:"server-success",meanings:"\u83b7\u53d6token\u63a5\u53e3\u6210\u529f"}),[2,{data:v,error:null}];case 3:return m=l.sent(),(0,h.default).reportTrace({name:g,logType:m.level?"server-error":"js-error",meanings:m.level?"\u83b7\u53d6token\u63a5\u53e3\u5931\u8d25":"\u83b7\u53d6token js\u62a5\u9519",error:(0,p.stringifyEveryThing)(m)}),[2,{data:null,error:{level:m.level||"JS",errorCode:m.errorCode,errorInfo:m.errorInfo||m.message,logMeaning:"\u83b7\u53d6token\u5931\u8d25"}}];case 4:return[2]}})})).apply(this,arguments)}},{"@swc/helpers/_/_async_to_generator":"faxJC","@swc/helpers/_/_instanceof":"9c3DV","@swc/helpers/_/_object_spread":"fzj09","@swc/helpers/_/_object_spread_props":"j5SKX","@swc/helpers/_/_object_without_properties":"75DVk","@swc/helpers/_/_sliced_to_array":"kkUMi","@swc/helpers/_/_ts_generator":"lJ01F","./utils/mtop":"j94zw","./utils/tracker":"jFoGJ","./utils/util":"fLHoZ","@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],kkUMi:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"_",()=>c);var a=e("./_array_with_holes.js"),i=e("./_iterable_to_array_limit.js"),o=e("./_non_iterable_rest.js"),s=e("./_unsupported_iterable_to_array.js");function c(e,t){return(0,a._)(e)||(0,i._)(e,t)||(0,s._)(e,t)||(0,o._)()}},{"./_array_with_holes.js":"7bkpl","./_iterable_to_array_limit.js":"cY5Om","./_non_iterable_rest.js":"jA3qG","./_unsupported_iterable_to_array.js":"lx81R","@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],"7bkpl":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(e){if(Array.isArray(e))return e}n.defineInteropFlag(r),n.export(r,"_",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],cY5Om:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(e,t){var r,n,a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,s=!1;try{for(a=a.call(e);!(o=(r=a.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==a.return||a.return()}finally{if(s)throw n}}return i}}n.defineInteropFlag(r),n.export(r,"_",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],jA3qG:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.defineInteropFlag(r),n.export(r,"_",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],j94zw:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"initMtop",()=>i),n.export(r,"setMtopConfig",()=>o);var a=location.href.indexOf("__mtop_subdomain__=wapa")>-1||location.href.indexOf("pre-")>-1;function i(){}function o(){window.lib.mtop.config.prefix="h5api",a?window.lib.mtop.config.subDomain="wapa":window.lib.mtop.config.subDomain="m",window.lib.mtop.config.mainDomain="1688.com"}},{"@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],gddZu:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var a=e("@swc/helpers/_/_class_call_check"),i=e("@swc/helpers/_/_create_class"),o=e("@swc/helpers/_/_define_property"),s=e("../utils/tracker"),c=n.interopDefault(s),u=e("../utils/util"),l=function(){function e(){(0,a._)(this,e)}return(0,i._)(e,null,[{key:"setMsg",value:function(t,r){try{var n="".concat(e.PREFIX,"_").concat(t),a=JSON.stringify(r);localStorage.setItem(n,a)}catch(e){(0,c.default).reportTrace({name:"storage",logType:"js-error",meanings:"msgId=".concat(t,"\u7684storage\u5199\u5165\u5931\u8d25"),error:(0,u.stringifyEveryThing)(e)})}}},{key:"clearMsg",value:function(t){try{var r="".concat(e.PREFIX,"_").concat(t);localStorage.removeItem(r)}catch(e){(0,c.default).reportTrace({name:"storage",logType:"js-error",meanings:"msgId=".concat(t,"\u7684storage\u5220\u9664\u5931\u8d25"),error:(0,u.stringifyEveryThing)(e)})}}},{key:"getMsg",value:function(t){try{var r="".concat(e.PREFIX,"_").concat(t),n=localStorage.getItem(r),a=JSON.parse(n),i=a.compsInfo;if(a.streamInfo,!i.length)throw Error("msgId=".concat(t,"\u7684storage\u7684compsInfo\u4e0d\u662f\u6570\u7ec4"));return{data:a,error:null}}catch(e){return(0,c.default).reportTrace({name:"storage",logType:"js-validate",meanings:"msgId=".concat(t,"\u7684storage\u8bfb\u53d6\u5931\u8d25"),error:(0,u.stringifyEveryThing)(e),msgId:t}),{data:null,error:e}}}}]),e}();(0,o._)(l,"PREFIX","dataLoader"),r.default=l},{"@swc/helpers/_/_class_call_check":"05bL4","@swc/helpers/_/_create_class":"5DxXH","@swc/helpers/_/_define_property":"dDgsd","../utils/tracker":"jFoGJ","../utils/util":"fLHoZ","@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],d8uow:[function(e,t,r){var n,a=e("@parcel/transformer-js/src/esmodule-helpers.js");a.defineInteropFlag(r),a.export(r,"getSessionList",()=>h);var i=e("@swc/helpers/_/_async_to_generator"),o=e("@swc/helpers/_/_instanceof"),s=e("@swc/helpers/_/_ts_generator"),c=e("./utils/mtop"),u=e("./utils/util"),l=e("./utils/tracker"),f=a.interopDefault(l),d="mtop.cbu.pc.tiansuo.portal.conversation.history.page.query",h=(n=(0,i._)(function(e){var t,r,n,a,i,l,h,p,v,m,g;return(0,s._)(this,function(s){switch(s.label){case 0:t=e.sceneCode,r=e.pageNo,n=e.pageSize,a=e.noEnvironment,(null===(l=window)||void 0===l?void 0:null===(i=l.lib)||void 0===i?void 0:i.mtop)||console.error("mtop not found"),(0,c.setMtopConfig)(),h={scene:t,pageNo:r||1,pageSize:n||1e3,needEnvironment:!!a},s.label=1;case 1:return s.trys.push([1,3,,4]),[4,window.lib.mtop.request({api:d,v:"1.0",dataType:"json",data:h})];case 2:if(m=s.sent(),(0,u.debugConsole).info("~~~~scene.ts,getSessionList~~~~res:",u.logStl.purple,m),!Array.isArray(null===(v=m)||void 0===v?void 0:null===(p=v.data)||void 0===p?void 0:p.conversationList))return(0,f.default).reportTrace({name:d,logType:"server-error",meanings:"\u83b7\u53d6\u4f1a\u8bdd\u5217\u8868\u63a5\u53e3conversationList\u4e0d\u662f\u6570\u7ec4",params:(0,u.stringifyEveryThing)(h),error:(0,u.stringifyEveryThing)(m)}),(0,u.debugConsole).error("Error fetching session list:",m),[2,{conversationList:[],error:{}}];return[2,{conversationList:m.data.conversationList,error:null}];case 3:return g=s.sent(),(0,o._)(g,Error)?((0,f.default).reportTrace({name:d,logType:"js-error",meanings:"\u83b7\u53d6\u4f1a\u8bdd\u5217\u8868\u63a5\u53e3js\u62a5\u9519",errorMessage:g.message,params:(0,u.stringifyEveryThing)(h)}),(0,u.debugConsole).error("Error fetching session list:",g.message)):((0,f.default).reportTrace({name:d,logType:"server-error",meanings:"\u83b7\u53d6\u4f1a\u8bdd\u5217\u8868\u63a5\u53e3\u8fdb\u5165catch",error:(0,u.stringifyEveryThing)(g),params:(0,u.stringifyEveryThing)(h)}),(0,u.debugConsole).error("Error fetching session list:",g)),[2,{conversationList:[],error:{}}];case 4:return[2]}})}),function(e){return n.apply(this,arguments)})},{"@swc/helpers/_/_async_to_generator":"faxJC","@swc/helpers/_/_instanceof":"9c3DV","@swc/helpers/_/_ts_generator":"lJ01F","./utils/mtop":"j94zw","./utils/util":"fLHoZ","./utils/tracker":"jFoGJ","@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],YRBPP:[function(e,t,r){var n,a=e("@parcel/transformer-js/src/esmodule-helpers.js");a.defineInteropFlag(r),a.export(r,"getMessageList",()=>h);var i=e("@swc/helpers/_/_async_to_generator"),o=e("@swc/helpers/_/_instanceof"),s=e("@swc/helpers/_/_ts_generator"),c=e("./utils/mtop"),u=e("./utils/util"),l=e("./utils/tracker"),f=a.interopDefault(l),d="mtop.cbu.pc.tiansuo.portal.message.history.page.query",h=(n=(0,i._)(function(e){var t,r,n,a,i,l,h,p,v,m,g;return(0,s._)(this,function(s){switch(s.label){case 0:t=e.sceneCode,r=e.sessionId,n=e.pageNo,a=e.pageSize,(null===(l=window)||void 0===l?void 0:null===(i=l.lib)||void 0===i?void 0:i.mtop)||console.error("mtop not found"),(0,c.setMtopConfig)(),h={scene:t,sessionId:r,pageNo:n||1,pageSize:a||1e3},s.label=1;case 1:return s.trys.push([1,3,,4]),[4,window.lib.mtop.request({api:d,v:"1.0",dataType:"json",data:h})];case 2:if(!Array.isArray(null===(v=m=s.sent())||void 0===v?void 0:null===(p=v.data)||void 0===p?void 0:p.messageList))return(0,u.debugConsole).error("Error fetching message list:",m),(0,f.default).reportTrace({name:d,logType:"server-error",meanings:"\u83b7\u53d6\u6d88\u606f\u5217\u8868\u63a5\u53e3messageList\u4e0d\u662f\u6570\u7ec4",params:(0,u.stringifyEveryThing)(h),error:(0,u.stringifyEveryThing)(m)}),[2,{messageList:[],error:{}}];return(0,u.debugConsole).info("~~~~session.ts,getMessageList~~~~res:",u.logStl.pink,m),[2,{messageList:m.data.messageList,error:null}];case 3:return g=s.sent(),(0,o._)(g,Error)?((0,f.default).reportTrace({name:d,logType:"js-error",meanings:"\u83b7\u53d6\u6d88\u606f\u5217\u8868\u63a5\u53e3js\u62a5\u9519",errorMessage:g.message,params:(0,u.stringifyEveryThing)(h)}),(0,u.debugConsole).error("Error fetching message list:",g.message)):((0,f.default).reportTrace({name:d,logType:"server-error",meanings:"\u83b7\u53d6\u6d88\u606f\u5217\u8868\u63a5\u53e3\u8fdb\u5165catch",error:(0,u.stringifyEveryThing)(g),params:(0,u.stringifyEveryThing)(h)}),(0,u.debugConsole).error("Error fetching message list:",g)),[2,{messageList:[],error:{}}];case 4:return[2]}})}),function(e){return n.apply(this,arguments)})},{"@swc/helpers/_/_async_to_generator":"faxJC","@swc/helpers/_/_instanceof":"9c3DV","@swc/helpers/_/_ts_generator":"lJ01F","./utils/mtop":"j94zw","./utils/util":"fLHoZ","./utils/tracker":"jFoGJ","@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],lYtKE:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"ScrollObserver",()=>i);var a=e("./base");class i extends a.DomObserverBase{constructor(e,t=20){super({selector:".market-mate-ai-pick-inline"}),this.onVisibilityChange=e,this.scrollThreshold=t,this.intersectionObserver=null,this.shadowRootObserver=null,this.targetSelector=".ai-pick-inline-iframe-wrapper",this.callback=e=>{super.disconnect(),this.observeShadowRootForTarget(e.shadowRoot)},this.init()}observeShadowRootForTarget(e){let t=e.querySelector(this.targetSelector);t?this.setupIntersectionObserver(t):(this.cleanupShadowRootObserver(),this.shadowRootObserver=new MutationObserver(()=>{let t=e.querySelector(this.targetSelector);this.setupIntersectionObserver(t),this.cleanupShadowRootObserver()}),this.shadowRootObserver.observe(e,{childList:!0,subtree:!0}))}setupIntersectionObserver(e){this.cleanupIntersectionObserver(),this.intersectionObserver=new IntersectionObserver(e=>{e.forEach(e=>{let t=e.isIntersecting,r=!t;r&&(r=this.getScrollTop()>this.scrollThreshold),requestAnimationFrame(()=>{this.onVisibilityChange(r)})})},{root:null,rootMargin:"0px",threshold:.1}),this.intersectionObserver.observe(e)}getScrollTop(){return Math.max(document.documentElement.scrollTop,document.body.scrollTop)}cleanupIntersectionObserver(){this.intersectionObserver&&(this.intersectionObserver.disconnect(),this.intersectionObserver=null)}cleanupShadowRootObserver(){this.shadowRootObserver&&(this.shadowRootObserver.disconnect(),this.shadowRootObserver=null)}disconnect(){this.cleanupIntersectionObserver(),this.cleanupShadowRootObserver(),super.disconnect()}}},{"./base":"eJR8E","@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],cC7hN:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"ToolbarObserver",()=>i);var a=e("./base");class i extends a.DomObserverBase{constructor(e){super({selector:".market-mate-offer-list-toolbar"}),this.onPinnedChange=e,this.toolbarPinned=!1,this.toolbarObserver=null,this.callback=e=>{this.observeToolbarChange(e),super.disconnect()},this.init()}observeToolbarChange(e){if(this.cleanupToolbarObserver(),!e||!e.shadowRoot){console.warn("\u672a\u627e\u5230\u5de5\u5177\u680f shadow DOM\uff0c\u65e0\u6cd5\u76d1\u542c\u5de5\u5177\u680f\u56fa\u5b9a\u72b6\u6001");return}let t=e.shadowRoot;this.checkToolbarAffixState(t),this.toolbarObserver=new MutationObserver(()=>{this.checkToolbarAffixState(t)}),this.toolbarObserver.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["class","style"]})}checkToolbarAffixState(e){let t=e.querySelector(".toolbar-affix > .ant-affix"),r=!!t;this.toolbarPinned!==r&&(this.toolbarPinned=r,this.updateHostStyle(e.host,r),this.onPinnedChange(r))}updateHostStyle(e,t){requestAnimationFrame(()=>{e.setAttribute("style",t?"z-index: 1002; position: relative;":"z-index: 1; position: static;")})}cleanupToolbarObserver(){this.toolbarObserver&&(this.toolbarObserver.disconnect(),this.toolbarObserver=null)}disconnect(){super.disconnect(),this.cleanupToolbarObserver()}}},{"./base":"eJR8E","@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],"7tOZC":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"WidgetRenderer",()=>l);var a=e("react/jsx-runtime"),i=e("react-dom/client"),o=e("~background/log"),s=e("~components/ai-pick-widget"),c=e("~libs/dom"),u=e("./store");class l{constructor(){this.widgets=new Map,this.unsubscribe=null,this.setupStateSubscription()}setupStateSubscription(){this.unsubscribe=(0,u.useAiPickStore).subscribe(e=>e.aiPickProcessStatus,(e,t)=>{(e===u.AiPickProcessStatus.SERVICE_DATA_RECEIVED||e===u.AiPickProcessStatus.SERVICE_DATA_FAILED||e===u.AiPickProcessStatus.IMAGE_UPLOAD_FAILED||e===u.AiPickProcessStatus.IMAGE_CROP_FAILED)&&this.widgets.forEach(e=>{e._isDataReadyToShow=!0})})}getWidgets(){return this.widgets}getWidget(e){return this.widgets.get(e)}updateIframeUrlOfWidgets(e){let t=new URLSearchParams(window.location.search).get("__muiDataLoader_debug__"),r=new URLSearchParams(window.location.search).get("__mtop_subdomain__"),n=new URL(e.iframeUrl);t&&n.searchParams.set("__muiDataLoader_debug__",t),r&&n.searchParams.set("__mtop_subdomain__",r),e.iframeUrl=n.toString()}setLoaded(e){let t=this.getWidget(e);t&&(t._isIframeLoaded=!0)}renderWidget(e){this.updateIframeUrlOfWidgets(e);let t=this.createContainer(e);if(!t)return;let r=t.attachShadow({mode:"open"}),n=document.createElement("div");n.className=`market-mate-ai-pick-${e.type}-content`,r.appendChild(n),(0,c.injectShadowCssStyle)(e.styleSheet,r),(0,c.injectCssStyle)(e.globalStyleSheet||"",`data-ai-pick-${e.type}-global-style`);let o=(0,i.createRoot)(n);o.render((0,a.jsx)(s.AiPickWidget,{root:r,bizData:{accessToken:(0,u.useAiPickStore).getState().accessToken,imageUrl:(0,u.useAiPickStore).getState().imageUrl},id:e.type,config:{iframeUrl:e.iframeUrl,expandedHeight:e.container.expandedHeight,collapsedHeight:e.container.collapsedHeight},type:e.type,onIframeLoad:()=>this.handleIframeLoad(e.type)},e.type));let l=new Proxy({container:t,root:o,config:e,_isUiReadyToShow:"inline"===e.type,_isDataReadyToShow:!1,_isIframeLoaded:!1,isVisible:!1,isSecondRender:!1},{set:(t,r,n)=>(t[r]=n,("_isUiReadyToShow"===r||"_isDataReadyToShow"===r||"_isIframeLoaded"===r)&&this.showWidget(e.type),!0),get:(e,t)=>e[t]});this.widgets.set(e.type,l)}destroyWidget(e){let t=this.widgets.get(e);t&&(t.root.unmount(),t.container.remove(),this.widgets.delete(e))}adjustIframePosition(e){let t=this.widgets.get("overlay");if(!t||!t.container){console.warn("\u672a\u627e\u5230 overlay iframe \u5bb9\u5668");return}e?t.container.classList.add("beneath-toolbar"):t.container.classList.remove("beneath-toolbar")}setVisible(e,t){let r=this.widgets.get(e);if(!r){console.warn("\u672a\u627e\u5230 type \u4e3a",e,"\u7684 iframe \u5bb9\u5668");return}r._isUiReadyToShow=t}showWidget(e){let t=this.widgets.get(e);if(!t){console.warn("\u672a\u627e\u5230 type \u4e3a",e,"\u7684 iframe \u5bb9\u5668");return}let r=t._isIframeLoaded&&t._isUiReadyToShow,n=t.isSecondRender?r:r&&t._isDataReadyToShow,{container:a}=t;n?((0,c.injectCssStyle)(t?.config?.mountedGlobalStyleSheet||"",`data-ai-pick-${t.config.type}-mounted-global-style`),a.classList.add("show")):a.classList.remove("show"),t.isVisible=n,(0,u.useAiPickStore).getState().updateVisibility(e,n),n&&(0,o.sendLog)({type:"view",target:"ai-pick",extra:{type:e}}),t.isSecondRender||(t.isSecondRender=n)}cleanup(){this.widgets.forEach(e=>{this.destroyWidget(e.config.type)})}handleIframeLoad(e){this.setLoaded(e)}createContainer(e){let t=document.createElement("div");if(t.className=`market-mate-ai-pick-${e.type}`,e.anchor){let r=document.querySelector(e.anchor.selector);if(!r)return console.warn(`\u672a\u627e\u5230\u5185\u8054anchor\u5143\u7d20: ${e.anchor.selector}`),null;r.insertAdjacentElement("afterend",t)}else document.body.appendChild(t);return t}destroy(){this.unsubscribe?.()}}},{"react/jsx-runtime":"dF4sA","react-dom/client":"5AVdy","~background/log":"5w5vQ","~components/ai-pick-widget":"9leR5","~libs/dom":"hXlzm","./store":"eRJ1i","@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],dF4sA:[function(e,t,r){t.exports=e("e5e9711c2edf1a4e")},{e5e9711c2edf1a4e:"9zFFm"}],"9zFFm":[function(e,t,r){var n=e("3fd2a064dc1f3641"),a=Symbol.for("react.element"),i=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,r){var n,i={},u=null,l=null;for(n in void 0!==r&&(u=""+r),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(l=t.ref),t)o.call(t,n)&&!c.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===i[n]&&(i[n]=t[n]);return{$$typeof:a,type:e,key:u,ref:l,props:i,_owner:s.current}}r.Fragment=i,r.jsx=u,r.jsxs=u},{"3fd2a064dc1f3641":"a8qhJ"}],"5AVdy":[function(e,t,r){var n=e("aaccff5d309d9239");r.createRoot=n.createRoot,r.hydrateRoot=n.hydrateRoot},{aaccff5d309d9239:"8sy1S"}],"8sy1S":[function(e,t,r){(function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}})(),t.exports=e("9223fb8c5161e54b")},{"9223fb8c5161e54b":"iek0D"}],iek0D:[function(e,t,r){var n,a,i,o,s,c,u=e("5393afc8c463ef07"),l=e("ece50e903283a22f");function f(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r