herald-exchange-onramp_offramp-widget 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var e=require("react"),t=require("react-dom");function n(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var r=n(e),o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var s,a={exports:{}},l={};var c,u,d={};
1
+ "use strict";var e=require("react"),t=require("react-dom");function n(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var r=n(e),o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var a,s={exports:{}},l={};var c,u,d={};
2
2
  /**
3
3
  * @license React
4
4
  * react-jsx-runtime.development.js
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * This source code is licensed under the MIT license found in the
9
9
  * LICENSE file in the root directory of this source tree.
10
- */function f(){return c||(c=1,"production"!==process.env.NODE_ENV&&function(){function t(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===w?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case p:return"Fragment";case m:return"Profiler";case h:return"StrictMode";case _:return"Suspense";case y:return"SuspenseList";case C:return"Activity"}if("object"==typeof e)switch(e.tag,e.$$typeof){case f:return"Portal";case g:return(e.displayName||"Context")+".Provider";case b:return(e._context.displayName||"Context")+".Consumer";case v:var n=e.render;return(e=e.displayName)||(e=""!==(e=n.displayName||n.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case I:return null!==(n=e.displayName||null)?n:t(e.type)||"Memo";case x:n=e._payload,e=e._init;try{return t(e(n))}catch(e){}}return null}function n(e){return""+e}function r(e){try{n(e);var t=!1}catch(e){t=!0}if(t){var r=(t=console).error,o="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return r.call(t,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",o),n(e)}}function o(e){if(e===p)return"<>";if("object"==typeof e&&null!==e&&e.$$typeof===x)return"<...>";try{var n=t(e);return n?"<"+n+">":"<...>"}catch(e){return"<...>"}}function i(){return Error("react-stack-top-frame")}function s(){var e=t(this.type);return N[e]||(N[e]=!0),void 0!==(e=this.props.ref)?e:null}function a(e,n,o,i,a,c,d,f){var p,h=n.children;if(void 0!==h)if(i){if(A(h)){for(i=0;i<h.length;i++)l(h[i]);Object.freeze&&Object.freeze(h)}}else l(h);if(B.call(n,"key")){h=t(e);var m=Object.keys(n).filter((function(e){return"key"!==e}));i=0<m.length?"{key: someKey, "+m.join(": ..., ")+": ...}":"{key: someKey}",Z[h+i]||(m=0<m.length?"{"+m.join(": ..., ")+": ...}":"{}",Z[h+i]=!0)}if(h=null,void 0!==o&&(r(o),h=""+o),function(e){if(B.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(n)&&(r(n.key),h=""+n.key),"key"in n)for(var b in o={},n)"key"!==b&&(o[b]=n[b]);else o=n;return h&&function(e){function t(){}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}(o,"function"==typeof e&&(e.displayName||e.name)),function(e,t,n,r,o,i,a,l){return n=i.ref,e={$$typeof:u,type:e,key:t,props:i,_owner:o},null!==(void 0!==n?n:null)?Object.defineProperty(e,"ref",{enumerable:!1,get:s}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:l}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(e,h,c,0,null===(p=G.A)?null:p.getOwner(),o,d,f)}function l(e){"object"==typeof e&&null!==e&&e.$$typeof===u&&e._store&&(e._store.validated=1)}var c=e,u=Symbol.for("react.transitional.element"),f=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),g=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),C=Symbol.for("react.activity"),w=Symbol.for("react.client.reference"),G=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,A=Array.isArray,F=console.createTask?console.createTask:function(){return null},N={},X=(c={"react-stack-bottom-frame":function(e){return e()}})["react-stack-bottom-frame"].bind(c,i)(),R=F(o(i)),Z={};d.Fragment=p,d.jsx=function(e,t,n,r,i){var s=1e4>G.recentlyCreatedOwnerStacks++;return a(e,t,n,!1,0,i,s?Error("react-stack-top-frame"):X,s?F(o(e)):R)},d.jsxs=function(e,t,n,r,i){var s=1e4>G.recentlyCreatedOwnerStacks++;return a(e,t,n,!0,0,i,s?Error("react-stack-top-frame"):X,s?F(o(e)):R)}}()),d}var p=(u||(u=1,"production"===process.env.NODE_ENV?a.exports=function(){if(s)return l;s=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(t,n,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==n.key&&(o=""+n.key),"key"in n)for(var i in r={},n)"key"!==i&&(r[i]=n[i]);else r=n;return n=r.ref,{$$typeof:e,type:t,key:o,ref:void 0!==n?n:null,props:r}}return l.Fragment=t,l.jsx=n,l.jsxs=n,l}():a.exports=f()),a.exports);var h={action_btn:"onramp-offramp_style-module__action_btn___Qe9SK",primary:"onramp-offramp_style-module__primary___6uz1S",secondary:"onramp-offramp_style-module__secondary___0H7xC",overlay:"onramp-offramp_style-module__overlay___jy-Ji",tabs_link:"onramp-offramp_style-module__tabs_link___ltaYX",tabs_box:"onramp-offramp_style-module__tabs_box___tXGZ3",active_btn:"onramp-offramp_style-module__active_btn___1w3X3","widegt-tabs-close":"onramp-offramp_style-module__widegt-tabs-close___SXnY7",tabs_content:"onramp-offramp_style-module__tabs_content___poOn5",widget_wrapped:"onramp-offramp_style-module__widget_wrapped___YVh7g",widget_modal:"onramp-offramp_style-module__widget_modal___UQ7fD",widgetcomponent:"onramp-offramp_style-module__widgetcomponent___R5f6-","exchange-widget-modal":"onramp-offramp_style-module__exchange-widget-modal___zor12",widget_content:"onramp-offramp_style-module__widget_content___Lti0Q",tabs_wrapped:"onramp-offramp_style-module__tabs_wrapped___BYrp5",field_card:"onramp-offramp_style-module__field_card___7OeeE",field_label:"onramp-offramp_style-module__field_label___Mhflb",field_form:"onramp-offramp_style-module__field_form___qKHCt",input_control:"onramp-offramp_style-module__input_control___DZTWM",field_select:"onramp-offramp_style-module__field_select___bWAWD",ramp_modal_img:"onramp-offramp_style-module__ramp_modal_img___0CVFO","off-ramp-selected-badges":"onramp-offramp_style-module__off-ramp-selected-badges___Ppt7T",selected__two:"onramp-offramp_style-module__selected__two___kKNJ9",field_select_card:"onramp-offramp_style-module__field_select_card___M42uE","off-ramp-details-card":"onramp-offramp_style-module__off-ramp-details-card___DxH3h","span-d-align":"onramp-offramp_style-module__span-d-align___ZX7Xt",field_box:"onramp-offramp_style-module__field_box___8FV3p",label_icons:"onramp-offramp_style-module__label_icons___8FuSy",label_value:"onramp-offramp_style-module__label_value___ttAOt",label_card:"onramp-offramp_style-module__label_card___bLVvJ",label_titles:"onramp-offramp_style-module__label_titles___lIpzf",ramp_space:"onramp-offramp_style-module__ramp_space___Mudik",ramp_space_top:"onramp-offramp_style-module__ramp_space_top___qc4QJ",label_dots:"onramp-offramp_style-module__label_dots___Cs0-X",ramp_details:"onramp-offramp_style-module__ramp_details___M557P",ramp_head:"onramp-offramp_style-module__ramp_head___w1vo7",payment_check_card:"onramp-offramp_style-module__payment_check_card___zYnwb",payment_box:"onramp-offramp_style-module__payment_box___-Ws-J",selected:"onramp-offramp_style-module__selected___4iaZp",info_box:"onramp-offramp_style-module__info_box___d2OXa",ramp_action:"onramp-offramp_style-module__ramp_action___NZaHl",space_from:"onramp-offramp_style-module__space_from___Cyee1","efi-swap-action":"onramp-offramp_style-module__efi-swap-action___TxzRg",bank_head:"onramp-offramp_style-module__bank_head___AmN9V",bank_titles:"onramp-offramp_style-module__bank_titles___H9aoi",bank_tabs_link:"onramp-offramp_style-module__bank_tabs_link___dIttf",active:"onramp-offramp_style-module__active___WNuHk",bank_tabs_content:"onramp-offramp_style-module__bank_tabs_content___e0FU-",bank_exist_feilds_frame:"onramp-offramp_style-module__bank_exist_feilds_frame___EpACI",bank_exist_label:"onramp-offramp_style-module__bank_exist_label___Nw-0a",info_card:"onramp-offramp_style-module__info_card___jaV21",caution_info:"onramp-offramp_style-module__caution_info___tyyLy",new_bank_label:"onramp-offramp_style-module__new_bank_label___u5NVY",new_bank_fields:"onramp-offramp_style-module__new_bank_fields___9-ptN",ramp_bank_box:"onramp-offramp_style-module__ramp_bank_box___xlTmj",f_details_head:"onramp-offramp_style-module__f_details_head___FTGBr",f_details_titles:"onramp-offramp_style-module__f_details_titles___P-FjO","off-ramp-details-head":"onramp-offramp_style-module__off-ramp-details-head___NB-Uf",f_details_info_box:"onramp-offramp_style-module__f_details_info_box___J6BfR",f_details_card:"onramp-offramp_style-module__f_details_card___91eSD",span_d_align:"onramp-offramp_style-module__span_d_align___U5zBD",span_d_copy:"onramp-offramp_style-module__span_d_copy___X4DtF",ramp_option:"onramp-offramp_style-module__ramp_option___17oT-",toast_container:"onramp-offramp_style-module__toast_container___UnFzN",toast:"onramp-offramp_style-module__toast___IG3Ej",slideIn:"onramp-offramp_style-module__slideIn___o6Z41",fadeOut:"onramp-offramp_style-module__fadeOut___j8edh",success:"onramp-offramp_style-module__success___uT5AR",error:"onramp-offramp_style-module__error___QxAaR",info:"onramp-offramp_style-module__info___hDtkU",preloading_sec:"onramp-offramp_style-module__preloading_sec___ieG6d",l3:"onramp-offramp_style-module__l3___9yDUV",dot_loader:"onramp-offramp_style-module__dot_loader___hh2Ld",l1:"onramp-offramp_style-module__l1___3-UJN","off-ramp-field-form":"onramp-offramp_style-module__off-ramp-field-form___xT-00",off_currency_option:"onramp-offramp_style-module__off_currency_option___CWiHH",check_wrap:"onramp-offramp_style-module__check_wrap___yooyC",form_check:"onramp-offramp_style-module__form_check___Ia0Ug",form_check_input:"onramp-offramp_style-module__form_check_input___2fe62","space-bottom":"onramp-offramp_style-module__space-bottom___p9JgM","input-error":"onramp-offramp_style-module__input-error___irjqC",required:"onramp-offramp_style-module__required___x-Hpn",input_error:"onramp-offramp_style-module__input_error___cDlN1",error_msg:"onramp-offramp_style-module__error_msg___2mtuq","sell-payment-head":"onramp-offramp_style-module__sell-payment-head___aVS7i","back-arrow-btn-sec":"onramp-offramp_style-module__back-arrow-btn-sec___xGETD","back-arrow-btn":"onramp-offramp_style-module__back-arrow-btn___xOFm3",sell_qr_payemnt_wrap:"onramp-offramp_style-module__sell_qr_payemnt_wrap___R8qaX",sell_amt_details:"onramp-offramp_style-module__sell_amt_details___nD--g",sell_payment_qr_frame:"onramp-offramp_style-module__sell_payment_qr_frame___a4wAE",sell_amt_details_wrap:"onramp-offramp_style-module__sell_amt_details_wrap___-8-2T",sell_amt_pay:"onramp-offramp_style-module__sell_amt_pay___4QbtX",sell_pay_amt:"onramp-offramp_style-module__sell_pay_amt___fKbm2",sell_pay_label:"onramp-offramp_style-module__sell_pay_label___yHLT-","sell-pay-amt":"onramp-offramp_style-module__sell-pay-amt___0d6ky","sell-amt-get":"onramp-offramp_style-module__sell-amt-get___BxfQi",sell_estimated_info:"onramp-offramp_style-module__sell_estimated_info___IkpPZ",sell_payment_qr_box:"onramp-offramp_style-module__sell_payment_qr_box___kGIVi",sell_wallet_address_card:"onramp-offramp_style-module__sell_wallet_address_card___-qhPh",sell_wallet_data_card:"onramp-offramp_style-module__sell_wallet_data_card___OiOjU",sell_hash_label:"onramp-offramp_style-module__sell_hash_label___VhCda",sell_wallet_code_card:"onramp-offramp_style-module__sell_wallet_code_card___4-pJ-",sell_wallet_code:"onramp-offramp_style-module__sell_wallet_code___0Rmho",sell_hash_fields:"onramp-offramp_style-module__sell_hash_fields___f6X81",no_wallet_details:"onramp-offramp_style-module__no_wallet_details___umvFH",sell_final_box:"onramp-offramp_style-module__sell_final_box___LbDaV",sell_final_info:"onramp-offramp_style-module__sell_final_info___wCyQo",manual_hash_btn:"onramp-offramp_style-module__manual_hash_btn___xBHMj",flow_stepper_frame:"onramp-offramp_style-module__flow_stepper_frame___dAF11",withdraw_stepper:"onramp-offramp_style-module__withdraw_stepper___zR3xV",flow_stepper_card:"onramp-offramp_style-module__flow_stepper_card___EDOb9",dark_stepper:"onramp-offramp_style-module__dark_stepper___oRsBt",failed:"onramp-offramp_style-module__failed___xIAPu","wipe-in-right":"onramp-offramp_style-module__wipe-in-right___kPEvX",completed:"onramp-offramp_style-module__completed___WogRr",hash_completed:"onramp-offramp_style-module__hash_completed___DEMpP",flow_stepper_process:"onramp-offramp_style-module__flow_stepper_process___cuKv6",hash_failed:"onramp-offramp_style-module__hash_failed___-Wjyl",hash_failed_1:"onramp-offramp_style-module__hash_failed_1___rjirs","spinner-loader":"onramp-offramp_style-module__spinner-loader___-USKj",flow_stepper_success:"onramp-offramp_style-module__flow_stepper_success___-B7w8",flow_stepper_bar:"onramp-offramp_style-module__flow_stepper_bar___b9FDq",flow_loader:"onramp-offramp_style-module__flow_loader___ybARp",l13:"onramp-offramp_style-module__l13___mEfhi",spinnerLoader:"onramp-offramp_style-module__spinnerLoader___yjCZk",spinnerLoadingAnimation:"onramp-offramp_style-module__spinnerLoadingAnimation___Otpld"};!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}('@import url("https://fonts.googleapis.com/css2?family=Red+Hat+Text:wght@300;400;500;600;700&display=swap");@-webkit-viewport{width:device-width}@-moz-viewport{width:device-width}@-ms-viewport{width:device-width}@-o-viewport{width:device-width}@viewport{width:device-width}:root{--primay-sdk-color:#f9c201;--light-color:#fff;--dark-sdk-color:#000;--quaternary-sdk-color:#6b7178;--overlay-sdk-bg:#f5f5f5;--faile-sdk-color:#f22;--no-fill:transparent;--line-color:#e5eaf4}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-text-size-adjust:none;-ms-text-size-adjust:none;-moz-text-size-adjust:none;text-size-adjust:none;background-color:var(--light-color);background-size:cover;color:var(--dark-sdk-color);font-family:Red Hat Text,sans-serif;font-size:12px!important;letter-spacing:.8px;overflow-x:hidden;position:relative}*{margin:0;padding:0}*,:after,:before{box-sizing:border-box}a,button{cursor:pointer}a,div,h1,h2,h3,h4,h5,h6,p,span{font-family:Red Hat Text,sans-serif}button:disabled{cursor:not-allowed;opacity:.7}.onramp-offramp_style-module__action_btn___Qe9SK{--_background:var(--background,var(--primay-sdk-color));--_color:var(--color,var(--dark-sdk-color));--_border:var(--border,transparent);--_btn-width:var(--btn-width,auto);align-items:center;background:var(--_background);border:1px solid var(--_border);-webkit-border-radius:10px;-moz-border-radius:10px;-o-border-radius:10px;-ms-border-radius:10px;border-radius:10px;color:var(--_color);display:flex;font-family:Red Hat Text,sans-serif;font-size:.85em;font-weight:600;gap:.5em;justify-content:center;overflow:hidden;padding:.8em 2em;position:relative;text-align:center;-webkit-transition:all .5s ease-in-out;-moz-transition:all .5s ease-in-out;-ms-transition:all .5s ease-in-out;-o-transition:all .5s ease-in-out;transition:all .5s ease-in-out;width:var(--_btn-width);z-index:0}.onramp-offramp_style-module__primary___6uz1S{--background:var(--primay-sdk-color);--color:var(--dark-sdk-color);--btn-width:100%;--border:transparent}.onramp-offramp_style-module__secondary___0H7xC{--background:#f9f9f9;--color:var(--dark-sdk-color);--btn-width:auto;--border:transparent}.onramp-offramp_style-module__overlay___jy-Ji{--background:transparent;--color:var(--dark-sdk-color);--btn-width:auto;--border:#e5eaf4;padding:.5em}.onramp-offramp_style-module__tabs_link___ltaYX{align-items:flex-start;display:flex;justify-content:space-between}.onramp-offramp_style-module__tabs_box___tXGZ3{align-items:center;background:#ffffff47;border-radius:10px;display:flex;gap:1em;margin-bottom:1.5em;padding:.7em}.onramp-offramp_style-module__tabs_box___tXGZ3 button{background-color:initial;border:0;border-radius:0;color:#666;font-family:Red Hat Text,sans-serif;font-size:.85em;font-weight:600;padding:.8em 1em}.onramp-offramp_style-module__tabs_box___tXGZ3 button.onramp-offramp_style-module__active_btn___1w3X3{background:var(--light-color);border-radius:10px}.onramp-offramp_style-module__tabs_box___tXGZ3 button:first-child.onramp-offramp_style-module__active_btn___1w3X3{color:#008826!important}.onramp-offramp_style-module__tabs_box___tXGZ3 button:last-child.onramp-offramp_style-module__active_btn___1w3X3{color:red!important}.onramp-offramp_style-module__widegt-tabs-close___SXnY7 button{background-color:transparent;border:0}.onramp-offramp_style-module__tabs_content___poOn5{background:#ffffff47;border-radius:10px;padding:2em}.onramp-offramp_style-module__widget_wrapped___YVh7g{--spacing-modal:1.75rem;width:auto}@media (max-width:768.98px){.onramp-offramp_style-module__widget_wrapped___YVh7g{height:100%}.onramp-offramp_style-module__widget_modal___UQ7fD{border-radius:0!important;padding:0!important}}.onramp-offramp_style-module__widgetcomponent___R5f6-{background-color:#f3e2c3;border-radius:12px;display:block;max-width:600px;min-height:600px;min-width:600px;overflow:hidden;padding:2em;width:100%}@media (max-width:769.98px){.onramp-offramp_style-module__exchange-widget-modal___zor12{padding:1em!important}.onramp-offramp_style-module__widgetcomponent___R5f6-{border-radius:0;left:unset;max-width:unset!important;min-width:unset!important;padding:0!important;position:relative;top:unset;transform:unset;width:100%}}.onramp-offramp_style-module__widget_content___Lti0Q{position:relative}.onramp-offramp_style-module__field_card___7OeeE{border-radius:10px;display:flex}.onramp-offramp_style-module__field_label___Mhflb{color:#010101;font-size:1em;font-weight:600;margin-bottom:.5em}.onramp-offramp_style-module__field_form___qKHCt .onramp-offramp_style-module__input_control___DZTWM{background:var(--no-fill);border:0;border-radius:0;color:#7d7d7d;font-size:1.8em;font-weight:600;height:45px;padding:12px 12px 12px 0;width:100%}.onramp-offramp_style-module__field_form___qKHCt .onramp-offramp_style-module__input_control___DZTWM:active,.onramp-offramp_style-module__field_form___qKHCt .onramp-offramp_style-module__input_control___DZTWM:focus,.onramp-offramp_style-module__field_form___qKHCt .onramp-offramp_style-module__input_control___DZTWM:focus-visible,.onramp-offramp_style-module__field_form___qKHCt .onramp-offramp_style-module__input_control___DZTWM:focus-within{background:var(--no-fill);border:0;border-radius:0;outline:0}.onramp-offramp_style-module__field_form___qKHCt .onramp-offramp_style-module__input_control___DZTWM:focus-visible{background:var(--no-fill);border:0;border-radius:0;outline:0}.onramp-offramp_style-module__ramp_modal_img___0CVFO{height:1.5em;object-fit:contain;width:1.5em}.onramp-offramp_style-module__off-ramp-selected-badges___Ppt7T{padding:.5em;text-align:center}.onramp-offramp_style-module__off-ramp-selected-badges___Ppt7T,.onramp-offramp_style-module__selected__two___kKNJ9{background:#0000000a;border:1px dashed #0000003b;border-radius:10px;color:#010101;font-size:.85em;font-weight:600;line-height:1.8;margin-bottom:0}.onramp-offramp_style-module__selected__two___kKNJ9{margin-top:10px}@media (max-width:768.98px){.onramp-offramp_style-module__field_card___7OeeE{flex-direction:column}.onramp-offramp_style-module__field_select_card___M42uE{border-bottom-left-radius:10px!important;border-bottom-right-radius:10px!important;border-top-right-radius:0!important;width:100%!important}.onramp-offramp_style-module__off-ramp-details-card___DxH3h{grid-template-columns:repeat(1,1fr)!important}.onramp-offramp_style-module__off-ramp-details-card___DxH3h span:last-child{text-align:start!important}.onramp-offramp_style-module__span-d-align___ZX7Xt{justify-content:start!important}.onramp-offramp_style-module__field_box___8FV3p{border-bottom-left-radius:0!important;border-bottom-right-radius:0!important;border-top-right-radius:10px!important;width:100%!important}.onramp-offramp_style-module__widget_modal___UQ7fD{max-width:unset!important;min-width:unset!important;width:100%!important}.onramp-offramp_style-module__tabs_content___poOn5,.onramp-offramp_style-module__widget_content___Lti0Q{padding:1em!important}}.onramp-offramp_style-module__field_box___8FV3p{background:#fff9;border-bottom-left-radius:10px;border-top-left-radius:10px;display:flex;flex-direction:column;justify-content:center;padding:1em;width:75%}.onramp-offramp_style-module__field_select_card___M42uE{background-color:#f8f9fa;border-bottom-right-radius:10px;border-top-right-radius:10px;display:flex;flex-direction:column;justify-content:center;padding:1em;width:50%}.onramp-offramp_style-module__label_icons___8FuSy{background-color:#f8f9fa;border-radius:50%;display:grid;font-size:1.2em;font-weight:700;height:2em;place-items:center;width:2em}.onramp-offramp_style-module__label_value___ttAOt{align-items:center;color:#010101;display:flex;font-size:1.1em;font-weight:600;gap:10}.onramp-offramp_style-module__label_value___ttAOt span{color:#7d7d7d;font-weight:500}.onramp-offramp_style-module__ramp_space___Mudik{align-items:center;display:grid;grid-template-columns:50px auto}.onramp-offramp_style-module__ramp_space_top___qc4QJ{align-items:start;display:grid;grid-template-columns:50px auto}.onramp-offramp_style-module__label_dots___Cs0-X{background-color:#f8f9fa;border-radius:50%;height:1em;margin-left:10px;width:1em}.onramp-offramp_style-module__ramp_head___w1vo7{color:#7d7d7d;font-size:1.2em;font-weight:500;line-height:.9}.onramp-offramp_style-module__payment_check_card___zYnwb{align-items:center;background-color:var(--light-color);border:1px solid #fff;border-radius:8px;cursor:pointer;display:flex;gap:8px;justify-content:space-between;padding:10px 15px;position:relative;transition:all .3s ease}.onramp-offramp_style-module__payment_box___-Ws-J{align-items:center;display:flex;gap:1em;margin-top:1em}.onramp-offramp_style-module__payment_check_card___zYnwb input[type=radio]{height:0;opacity:0;position:absolute;width:0}.onramp-offramp_style-module__payment_check_card___zYnwb.onramp-offramp_style-module__selected___4iaZp{background-color:#fff7d1;border-color:var(--primay-sdk-color)}.onramp-offramp_style-module__info_box___d2OXa{display:flex;flex-direction:column;gap:2em;padding:2em 0;position:relative;z-index:999}.onramp-offramp_style-module__info_box___d2OXa:after{background:#ffffff73;content:"";height:100%;left:16px;position:absolute;top:0;width:2px;z-index:-1}.onramp-offramp_style-module__ramp_action___NZaHl{margin-top:2em}.onramp-offramp_style-module__space_from___Cyee1{margin-top:5em}.onramp-offramp_style-module__efi-swap-action___TxzRg{margin-bottom:1em}.onramp-offramp_style-module__bank_head___AmN9V{align-items:center;cursor:pointer;display:grid;gap:1em;grid-template-columns:24px auto;margin-bottom:2em}.onramp-offramp_style-module__bank_titles___H9aoi{color:#000;font-size:1.2em;font-weight:600}.onramp-offramp_style-module__bank_head___AmN9V a{height:18px;width:18px}.onramp-offramp_style-module__bank_tabs_link___dIttf{display:grid;grid-template-columns:repeat(2,1fr)}.onramp-offramp_style-module__bank_tabs_link___dIttf button{background-color:var(--no-fill);border:0;border-bottom:1px solid #fff;border-radius:0;color:#000;font-size:1.1em;font-weight:600;padding:1em 2em;width:100%}.onramp-offramp_style-module__bank_tabs_link___dIttf button.onramp-offramp_style-module__active___WNuHk{border-bottom:1px solid var(--primay-sdk-color)}.onramp-offramp_style-module__bank_tabs_content___e0FU-{padding-top:2em}.onramp-offramp_style-module__bank_exist_feilds_frame___EpACI{margin-bottom:2em}.onramp-offramp_style-module__bank_exist_label___Nw-0a{color:#010101;font-size:1em;font-weight:600;margin-bottom:.5em}.onramp-offramp_style-module__info_card___jaV21{align-items:center;background:#ffffff47;border-radius:10px;display:grid;grid-template-columns:40px auto;padding:.5em}.onramp-offramp_style-module__caution_info___tyyLy{color:var(--dark-sdk-color);font-size:.8em;font-weight:400;line-height:1.8}.onramp-offramp_style-module__new_bank_label___u5NVY{color:#010101;font-size:1em;font-weight:600;margin-bottom:.5em}.onramp-offramp_style-module__new_bank_fields___9-ptN .onramp-offramp_style-module__input_control___DZTWM{background-color:var(--light-color);border:1px soild var(--light-color);border-radius:10px;color:var(--dark-sdk-color);font-size:.9em!important;font-weight:400!important;height:45px;padding:10px;width:100%}.onramp-offramp_style-module__new_bank_fields___9-ptN .onramp-offramp_style-module__input_control___DZTWM:active,.onramp-offramp_style-module__new_bank_fields___9-ptN .onramp-offramp_style-module__input_control___DZTWM:focus,.onramp-offramp_style-module__new_bank_fields___9-ptN .onramp-offramp_style-module__input_control___DZTWM:focus-visible,.onramp-offramp_style-module__new_bank_fields___9-ptN .onramp-offramp_style-module__input_control___DZTWM:focus-within{border:1px soild var(--light-color);outline:0}.onramp-offramp_style-module__new_bank_fields___9-ptN .onramp-offramp_style-module__input_control___DZTWM:focus-visible{border:1px soild var(--light-color);outline:0}.onramp-offramp_style-module__ramp_bank_box___xlTmj{margin-bottom:2em}.onramp-offramp_style-module__f_details_head___FTGBr{align-items:center;display:grid;gap:1em;grid-template-columns:24px auto;margin-bottom:2em}.onramp-offramp_style-module__f_details_titles___P-FjO{color:#000;font-size:1.2em;font-weight:600}.onramp-offramp_style-module__off-ramp-details-head___NB-Uf a{height:18px;width:18px}.onramp-offramp_style-module__f_details_info_box___J6BfR{background-color:var(--light-color);border-radius:10px;padding:2em}.onramp-offramp_style-module__f_details_card___91eSD{align-items:center;border-bottom:1px dashed #ededed;display:grid;gap:2em;grid-template-columns:repeat(2,1fr);margin-bottom:1.5em;padding-bottom:1.5em}.onramp-offramp_style-module__f_details_card___91eSD:last-child{border-bottom:0 dashed #fff;margin-bottom:0;padding:0}.onramp-offramp_style-module__f_details_card___91eSD span:first-child{color:#7d7d7d;font-size:1em;font-weight:600;text-align:start}.onramp-offramp_style-module__f_details_card___91eSD span:last-child{color:#010101;font-size:1em;font-weight:500;text-align:end}.onramp-offramp_style-module__span_d_align___U5zBD a{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;font-size:.85em;font-weight:500;overflow:hidden;text-overflow:ellipsis;word-break:break-all}.onramp-offramp_style-module__span_d_align___U5zBD{align-items:center;display:grid;gap:1em;grid-template-columns:24px auto;justify-content:end}.onramp-offramp_style-module__span_d_copy___X4DtF{align-items:center;display:grid;gap:1em;grid-template-columns:auto 24px;justify-content:end}.onramp-offramp_style-module__ramp_option___17oT-{align-items:center;display:flex;gap:2em}.onramp-offramp_style-module__toast_container___UnFzN{display:flex;flex-direction:column;gap:10px;position:absolute;right:20px;top:20px;z-index:9999}.onramp-offramp_style-module__toast___IG3Ej{align-items:center;animation:onramp-offramp_style-module__slideIn___o6Z41 .3s ease,onramp-offramp_style-module__fadeOut___j8edh .5s ease 2.5s;background-color:#333;border-radius:6px;box-shadow:0 4px 10px rgba(0,0,0,.3);color:#fff;display:flex;justify-content:space-between;min-width:250px;padding:12px 16px;transition:opacity .3s}.onramp-offramp_style-module__toast___IG3Ej.onramp-offramp_style-module__success___uT5AR{background-color:#4caf50}.onramp-offramp_style-module__toast___IG3Ej.onramp-offramp_style-module__error___QxAaR{background-color:#f44336}.onramp-offramp_style-module__toast___IG3Ej.onramp-offramp_style-module__info___hDtkU{background-color:#2196f3}.onramp-offramp_style-module__toast___IG3Ej button{background:none;border:none;color:#fff;cursor:pointer;font-size:18px}@keyframes onramp-offramp_style-module__slideIn___o6Z41{0%{opacity:0;transform:translateX(100%)}to{opacity:1;transform:translateX(0)}}@keyframes onramp-offramp_style-module__fadeOut___j8edh{to{opacity:0}}.onramp-offramp_style-module__preloading_sec___ieG6d{border:2px solid;border-radius:40px;color:var(--primay-sdk-color);height:20px;position:relative;width:100px}.onramp-offramp_style-module__preloading_sec___ieG6d:before{animation:onramp-offramp_style-module__l3___9yDUV 1s linear infinite;background:currentColor;border-radius:inherit;bottom:0;content:"";left:0;margin:2px;position:absolute;top:0;width:25%}@keyframes onramp-offramp_style-module__l3___9yDUV{50%{left:100%;transform:translateX(calc(-100% - 4px))}}.onramp-offramp_style-module__dot_loader___hh2Ld{--c:no-repeat linear-gradient(var(--primay-sdk-color) 0 0);animation:onramp-offramp_style-module__l1___3-UJN 1s linear infinite;aspect-ratio:1;background:var(--c) 0 50%,var(--c) 50% 50%,var(--c) 100% 50%;background-size:20% 100%;width:45px}@keyframes onramp-offramp_style-module__l1___3-UJN{0%{background-size:20% 100%,20% 100%,20% 100%}33%{background-size:20% 10%,20% 100%,20% 100%}50%{background-size:20% 100%,20% 10%,20% 100%}66%{background-size:20% 100%,20% 100%,20% 10%}to{background-size:20% 100%,20% 100%,20% 100%}}.onramp-offramp_style-module__off-ramp-field-form___xT-00 .onramp-offramp_style-module__dot_loader___hh2Ld{height:20px}.onramp-offramp_style-module__off_currency_option___CWiHH h3{color:var(--dark-sdk-color);font-size:.85em;font-weight:500}.onramp-offramp_style-module__off_currency_option___CWiHH{align-items:center;background-color:var(--light-color);border:1px solid var(--light-color);border-radius:8px;cursor:pointer;display:flex;gap:8px;justify-content:space-between;padding:10px 15px;position:relative;transition:all .3s ease;width:100%}.onramp-offramp_style-module__check_wrap___yooyC{align-items:center;display:grid;gap:1em;grid-template-columns:repeat(3,1fr);margin-bottom:1.5em}.onramp-offramp_style-module__form_check___Ia0Ug .onramp-offramp_style-module__form_check_input___2fe62:checked~.onramp-offramp_style-module__off_currency_option___CWiHH{background-color:#fff7d1;border-color:var(--primay-sdk-color)}.onramp-offramp_style-module__form_check_input___2fe62{display:none}.onramp-offramp_style-module__space-bottom___p9JgM{margin-bottom:1rem}.onramp-offramp_style-module__input-error___irjqC,.onramp-offramp_style-module__required___x-Hpn{color:var(--faile-sdk-color)}.onramp-offramp_style-module__ramp_bank_box___xlTmj{position:relative}.onramp-offramp_style-module__ramp_bank_box___xlTmj .onramp-offramp_style-module__input_error___cDlN1{background-color:#e34f4f;border-radius:3px;color:#fff;display:inline-block;font-size:12px;font-weight:400;height:25px;line-height:1;padding:6px 8px;position:absolute;right:-15px;top:0;z-index:99}.onramp-offramp_style-module__ramp_bank_box___xlTmj .onramp-offramp_style-module__input_error___cDlN1:after{border-color:#0000 #e34f4f;border-style:solid;border-width:0 6px 6px 0;bottom:-6px;content:"";display:block;position:absolute;right:1.2em;width:0;z-index:99}.onramp-offramp_style-module__error_msg___2mtuq{color:#e34f4f;margin-top:.5em}.onramp-offramp_style-module__sell-payment-head___aVS7i{margin-bottom:1.5em}.onramp-offramp_style-module__back-arrow-btn-sec___xGETD{align-items:center;cursor:pointer;display:flex;gap:1em}.onramp-offramp_style-module__back-arrow-btn-sec___xGETD .onramp-offramp_style-module__back-arrow-btn___xOFm3{cursor:pointer;width:2em}.onramp-offramp_style-module__back-arrow-btn-sec___xGETD h4{color:var(--dark-sdk-color);font-size:1.1em;font-weight:600;margin-bottom:0}.onramp-offramp_style-module__sell_qr_payemnt_wrap___R8qaX{grid-gap:2em;background-color:var(--light-color);border-radius:10px;display:grid;gap:2em;grid-template-columns:repeat(2,1fr);margin-bottom:1em!important;padding:1.5em;position:relative}@media (max-width:991.98px){.onramp-offramp_style-module__sell_qr_payemnt_wrap___R8qaX{gap:1em;grid-template-columns:repeat(1,1fr)}}.onramp-offramp_style-module__sell_amt_details___nD--g{background-color:var(--light-color);border-radius:10px;display:flex;flex-direction:column;grid-area:1/1/2/3;justify-content:space-between;margin-bottom:1em!important}@media (max-width:991.98px){.onramp-offramp_style-module__sell_amt_details___nD--g{gap:1em;grid-area:unset}.onramp-offramp_style-module__sell_payment_qr_frame___a4wAE{display:grid;place-items:center}}.onramp-offramp_style-module__sell_amt_details_wrap___-8-2T{align-items:center;display:flex;justify-content:space-between;margin-bottom:1em}.onramp-offramp_style-module__sell_amt_pay___4QbtX{display:flex;flex-direction:column}.onramp-offramp_style-module__sell_pay_amt___fKbm2{display:flex;flex-direction:column;text-align:end}.onramp-offramp_style-module__sell_pay_label___yHLT-{color:var(--quaternary-sdk-color);font-size:.8em;font-weight:300;margin-bottom:.5em}.onramp-offramp_style-module__sell-pay-amt___0d6ky{color:var(--dark-sdk-color);font-size:.85em;font-weight:500;margin-bottom:0}.onramp-offramp_style-module__sell-amt-get___BxfQi{align-items:flex-end;display:flex;flex-direction:column}.onramp-offramp_style-module__sell_estimated_info___IkpPZ{background:#0000000a;border:1px dashed #0000003b;border-radius:10px;padding:.7em}.onramp-offramp_style-module__sell_estimated_info___IkpPZ p{align-items:center;color:var(--dark-sdk-color);display:flex;font-size:.85em;font-weight:600;justify-content:space-between;margin-bottom:0}.onramp-offramp_style-module__sell_payment_qr_box___kGIVi{grid-area:1/3/2/4}@media (max-width:991.98px){.onramp-offramp_style-module__sell_payment_qr_box___kGIVi{grid-area:unset}}.onramp-offramp_style-module__sell_wallet_address_card___-qhPh{background:var(--overlay-sdk-bg);border-radius:10px;margin-bottom:1.5em;padding:1.5em}.onramp-offramp_style-module__sell_wallet_data_card___OiOjU{margin-bottom:1em}.onramp-offramp_style-module__sell_hash_label___VhCda,.onramp-offramp_style-module__sell_wallet_data_card___OiOjU h6{color:var(--dark-sdk-color);font-size:.8em;font-weight:500;margin-bottom:.5em}.onramp-offramp_style-module__sell_hash_label___VhCda span{color:red}.onramp-offramp_style-module__sell_wallet_code_card___4-pJ-{grid-gap:.5em;display:grid;gap:.5em;grid-template-columns:auto 65px}.onramp-offramp_style-module__sell_wallet_code___0Rmho{border:1px solid var(--line-color);border-radius:10px;padding:.8em 1em}.onramp-offramp_style-module__sell_wallet_code___0Rmho span{-webkit-line-clamp:1;-webkit-box-orient:vertical;color:var(--dark-sdk-color);display:-webkit-box;font-size:.85em;font-weight:500;overflow:hidden;text-overflow:ellipsis;word-break:break-all}.onramp-offramp_style-module__sell_hash_fields___f6X81,.onramp-offramp_style-module__sell_hash_fields___f6X81:focus{background:transparent;border:1px solid var(--line-color);border-radius:10px;color:var(--dark-sdk-color);font-size:.9em;font-weight:400;padding:.8em 1em;width:100%}.onramp-offramp_style-module__sell_hash_fields___f6X81:focus{outline:1px solid var(--line-color)}.onramp-offramp_style-module__sell_hash_fields___f6X81::placeholder{font-family:Red Hat Text,sans-serif;font-size:.9em;font-weight:400}.onramp-offramp_style-module__no_wallet_details___umvFH{align-items:center;display:flex;gap:1em;justify-content:center}.onramp-offramp_style-module__sell_final_box___LbDaV{align-items:center;background-color:#fff;border-radius:12px;display:flex;flex-direction:column;gap:.2em;justify-content:center;padding:2em}.onramp-offramp_style-module__sell_final_info___wCyQo p{font-size:.95em;font-weight:500;line-height:2;margin-bottom:.5em}@media (max-width:767.98px){body{font-size:11px!important}}.onramp-offramp_style-module__manual_hash_btn___xBHMj{background:none;border:none;color:var(--senary-color);font-size:.8em;outline:none;padding:.2em}.onramp-offramp_style-module__flow_stepper_frame___dAF11 ul li{list-style:none!important}.onramp-offramp_style-module__flow_stepper_frame___dAF11 ul{align-items:self-start;display:flex;justify-content:space-between;margin:auto;min-height:70px;overflow:hidden;position:relative;width:100%}.onramp-offramp_style-module__withdraw_stepper___zR3xV .onramp-offramp_style-module__flow_stepper_frame___dAF11 ul{width:100%}.onramp-offramp_style-module__withdraw_stepper___zR3xV .onramp-offramp_style-module__flow_stepper_frame___dAF11 ul:after{transform:scale(.68)}.onramp-offramp_style-module__flow_stepper_card___EDOb9 span{position:absolute;text-align:center;top:40px;white-space:nowrap}.onramp-offramp_style-module__flow_stepper_frame___dAF11 ul li{position:relative;z-index:1050}.onramp-offramp_style-module__flow_stepper_frame___dAF11 ul li:after{background-color:#fff;content:" ";height:2px;left:18px;position:absolute;top:10px;transform-origin:center;width:90vw;z-index:-1}.onramp-offramp_style-module__dark_stepper___oRsBt .onramp-offramp_style-module__flow_stepper_frame___dAF11 ul li:after{background-color:#efefef}.onramp-offramp_style-module__flow_stepper_frame___dAF11 ul li:last-child:after{display:none}.onramp-offramp_style-module__flow_stepper_frame___dAF11 ul li.onramp-offramp_style-module__failed___xIAPu:after{animation:onramp-offramp_style-module__wipe-in-right___kPEvX 2.5s cubic-bezier(.25,1,.3,1) both;background-color:#e70f0f}.onramp-offramp_style-module__flow_stepper_frame___dAF11 ul li.onramp-offramp_style-module__completed___WogRr:after{animation:onramp-offramp_style-module__wipe-in-right___kPEvX 2.5s cubic-bezier(.25,1,.3,1) both;background-color:#32cd32}.onramp-offramp_style-module__flow_stepper_frame___dAF11 ul li.onramp-offramp_style-module__hash_completed___DEMpP:after{animation:onramp-offramp_style-module__wipe-in-right___kPEvX 2.5s cubic-bezier(.25,1,.3,1) both;background-color:none}.onramp-offramp_style-module__flow_stepper_frame___dAF11 ul li.onramp-offramp_style-module__hash_completed___DEMpP .onramp-offramp_style-module__flow_stepper_process___cuKv6{background-color:#32cd32}.onramp-offramp_style-module__flow_stepper_frame___dAF11 ul li.onramp-offramp_style-module__hash_failed___-Wjyl:after{animation:onramp-offramp_style-module__wipe-in-right___kPEvX 2.5s cubic-bezier(.25,1,.3,1) both;background-color:none}.onramp-offramp_style-module__flow_stepper_frame___dAF11 ul li.onramp-offramp_style-module__hash_failed___-Wjyl .onramp-offramp_style-module__flow_stepper_process___cuKv6{background-color:#e70f0f}.onramp-offramp_style-module__flow_stepper_frame___dAF11 ul li.onramp-offramp_style-module__hash_failed_1___rjirs:after{animation:onramp-offramp_style-module__wipe-in-right___kPEvX 2.5s cubic-bezier(.25,1,.3,1) both;background-color:#e70f0f}.onramp-offramp_style-module__flow_stepper_frame___dAF11 ul li.onramp-offramp_style-module__completed___WogRr .onramp-offramp_style-module__flow_stepper_process___cuKv6,.onramp-offramp_style-module__flow_stepper_frame___dAF11 ul li.onramp-offramp_style-module__hash_failed_1___rjirs .onramp-offramp_style-module__flow_stepper_process___cuKv6{background-color:#32cd32}.onramp-offramp_style-module__flow_stepper_frame___dAF11 ul li.onramp-offramp_style-module__failed___xIAPu .onramp-offramp_style-module__flow_stepper_process___cuKv6{background-color:#e70f0f}.onramp-offramp_style-module__flow_stepper_frame___dAF11 ul li:last-child .onramp-offramp_style-module__flow_stepper_card___EDOb9{align-items:flex-end}.onramp-offramp_style-module__flow_stepper_frame___dAF11 ul li:first-child .onramp-offramp_style-module__flow_stepper_card___EDOb9{align-items:flex-start}.onramp-offramp_style-module__flow_stepper_frame___dAF11 ul li:last-child .onramp-offramp_style-module__flow_stepper_card___EDOb9 span{text-align:end}.onramp-offramp_style-module__flow_stepper_frame___dAF11 ul.onramp-offramp_style-module__completed___WogRr:after{animation:onramp-offramp_style-module__wipe-in-right___kPEvX 2.5s cubic-bezier(.25,1,.3,1) both;background-color:#32cd32}.onramp-offramp_style-module__flow_stepper_frame___dAF11 ul.onramp-offramp_style-module__failed___xIAPu:after{animation:onramp-offramp_style-module__wipe-in-right___kPEvX 2.5s cubic-bezier(.25,1,.3,1) both;background-color:#e70f0f}.onramp-offramp_style-module__flow_stepper_card___EDOb9{align-items:center;border-radius:10px;color:var(--quaternary-sdk-color);display:flex;flex-direction:column;font-size:.65em;font-weight:600;gap:1em;justify-content:center}.onramp-offramp_style-module__flow_stepper_card___EDOb9.onramp-offramp_style-module__completed___WogRr{color:var(--dark-sdk-color)}.onramp-offramp_style-module__flow_stepper_card___EDOb9 .onramp-offramp_style-module__spinner-loader___-USKj{border:4px solid #6e6a6a29!important;margin:0!important}.onramp-offramp_style-module__flow_stepper_process___cuKv6{align-items:center;background-color:#fff;border-radius:50%;display:flex;height:2.5em;justify-content:center;padding:3px;width:2.5em}.onramp-offramp_style-module__dark_stepper___oRsBt .onramp-offramp_style-module__flow_stepper_process___cuKv6{background-color:#efefef}.onramp-offramp_style-module__flow_stepper_card___EDOb9.onramp-offramp_style-module__completed___WogRr .onramp-offramp_style-module__flow_stepper_process___cuKv6{background-color:#32cd32}.onramp-offramp_style-module__flow_stepper_card___EDOb9.onramp-offramp_style-module__failed___xIAPu .onramp-offramp_style-module__flow_stepper_process___cuKv6{background-color:#ea0909}.onramp-offramp_style-module__flow_stepper_success___-B7w8.onramp-offramp_style-module__completed___WogRr .onramp-offramp_style-module__flow_stepper_process___cuKv6{background-color:#32cd32}.onramp-offramp_style-module__flow_stepper_success___-B7w8{align-items:center;border-radius:10px;color:var(--quaternary-sdk-color);display:flex;flex-direction:column;font-size:.75em;font-weight:600;gap:1em;justify-content:center;padding:1em}.onramp-offramp_style-module__flow_stepper_success___-B7w8.onramp-offramp_style-module__completed___WogRr{color:var(--dark-sdk-color)}.onramp-offramp_style-module__flow_stepper_bar___b9FDq{background-color:#efefef;border-radius:50%;height:1.4em;width:1.4em}.onramp-offramp_style-module__flow_loader___ybARp{animation:onramp-offramp_style-module__l13___mEfhi 1s linear infinite;aspect-ratio:1;background:radial-gradient(farthest-side,#ffa516 94%,#0000) top/4.5px 4.5px no-repeat,conic-gradient(#0000 30%,#ffa516);border-radius:50%;-webkit-mask:radial-gradient(farthest-side,#0000 calc(100% - 4.5px),#000 0);width:100%}@keyframes onramp-offramp_style-module__l13___mEfhi{to{transform:rotate(1turn)}}@keyframes onramp-offramp_style-module__wipe-in-right___kPEvX{0%{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}.onramp-offramp_style-module__spinnerLoader___yjCZk{animation:onramp-offramp_style-module__spinnerLoadingAnimation___Otpld 1s linear infinite;aspect-ratio:1;background:radial-gradient(farthest-side,#000 94%,#0000) top/4px 4px no-repeat,conic-gradient(#0000 30%,#000);border-radius:50%;-webkit-mask:radial-gradient(farthest-side,#0000 calc(100% - 4px),#000 0);width:20px}@keyframes onramp-offramp_style-module__spinnerLoadingAnimation___Otpld{to{transform:rotate(1turn)}}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlLm1vZHVsZS5jc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsMEdBQTBHLENBRTFHLGtCQUNFLGtC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NwZWN0LXJhdGlvOiAxO1xuICBib3JkZXItcmFkaXVzOiA1MCU7XG4gIGJhY2tncm91bmQ6IHJhZGlhbC1ncmFkaWVudChmYXJ0aGVzdC1zaWRlLCAjMDAwMDAwIDk0JSwgIzAwMDApIHRvcC80cHggNHB4IG5vLXJlcGVhdCxcbiAgICBjb25pYy1ncmFkaWVudCgjMDAwMCAzMCUsICMwMDAwMDApO1xuICAtd2Via2l0LW1hc2s6IHJhZGlhbC1ncmFkaWVudChmYXJ0aGVzdC1zaWRlLCAjMDAwMCBjYWxjKDEwMCUgLSA0cHgpLCAjMDAwIDApO1xuICBhbmltYXRpb246IHNwaW5uZXJMb2FkaW5nQW5pbWF0aW9uIDFzIGluZmluaXRlIGxpbmVhcjtcbn1cbkBrZXlmcmFtZXMgc3Bpbm5lckxvYWRpbmdBbmltYXRpb24ge1xuICAxMDAlIHtcbiAgICB0cmFuc2Zvcm06IHJvdGF0ZSgxdHVybik7XG4gIH1cbn1cbiJdfQ== */');var m=function(){return m=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},m.apply(this,arguments)};function b(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{l(r.next(e))}catch(e){i(e)}}function a(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){e.done?o(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(s,a)}l((r=r.apply(e,t||[])).next())}))}function g(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}function v(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function _(e){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(e)}function y(e){var t=function(e,t){if("object"!=_(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==_(t)?t:t+""}function I(e,t,n){return(t=y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function C(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){I(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function G(e,t){if(e){if("string"==typeof e)return w(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}function B(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||G(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}"function"==typeof SuppressedError&&SuppressedError;var F=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function N(){return N=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},N.apply(null,arguments)}function X(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,y(r.key),r)}}function R(e,t){return R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},R(e,t)}function Z(e){return Z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Z(e)}function Q(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Q=function(){return!!e})()}function k(e,t){if(t&&("object"==_(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function L(e){return function(e){if(Array.isArray(e))return w(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||G(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var W=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),E="-ms-",V="-moz-",U="-webkit-",D="comm",S="rule",O="decl",M="@keyframes",Y=Math.abs,j=String.fromCharCode,T=Object.assign;function H(e){return e.trim()}function J(e,t,n){return e.replace(t,n)}function z(e,t){return e.indexOf(t)}function P(e,t){return 0|e.charCodeAt(t)}function K(e,t,n){return e.slice(t,n)}function q(e){return e.length}function $(e){return e.length}function ee(e,t){return t.push(e),e}var te=1,ne=1,re=0,oe=0,ie=0,se="";function ae(e,t,n,r,o,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:te,column:ne,length:s,return:""}}function le(e,t){return T(ae("",null,null,"",null,null,0),e,{length:-e.length},t)}function ce(){return ie=oe>0?P(se,--oe):0,ne--,10===ie&&(ne=1,te--),ie}function ue(){return ie=oe<re?P(se,oe++):0,ne++,10===ie&&(ne=1,te++),ie}function de(){return P(se,oe)}function fe(){return oe}function pe(e,t){return K(se,e,t)}function he(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function me(e){return te=ne=1,re=q(se=e),oe=0,[]}function be(e){return se="",e}function ge(e){return H(pe(oe-1,ye(91===e?e+2:40===e?e+1:e)))}function ve(e){for(;(ie=de())&&ie<33;)ue();return he(e)>2||he(ie)>3?"":" "}function _e(e,t){for(;--t&&ue()&&!(ie<48||ie>102||ie>57&&ie<65||ie>70&&ie<97););return pe(e,fe()+(t<6&&32==de()&&32==ue()))}function ye(e){for(;ue();)switch(ie){case e:return oe;case 34:case 39:34!==e&&39!==e&&ye(ie);break;case 40:41===e&&ye(e);break;case 92:ue()}return oe}function Ie(e,t){for(;ue()&&e+ie!==57&&(e+ie!==84||47!==de()););return"/*"+pe(t,oe-1)+"*"+j(47===e?e:ue())}function xe(e){for(;!he(de());)ue();return pe(e,oe)}function Ce(e){return be(we("",null,null,null,[""],e=me(e),0,[0],e))}function we(e,t,n,r,o,i,s,a,l){for(var c=0,u=0,d=s,f=0,p=0,h=0,m=1,b=1,g=1,v=0,_="",y=o,I=i,x=r,C=_;b;)switch(h=v,v=ue()){case 40:if(108!=h&&58==P(C,d-1)){-1!=z(C+=J(ge(v),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:C+=ge(v);break;case 9:case 10:case 13:case 32:C+=ve(h);break;case 92:C+=_e(fe()-1,7);continue;case 47:switch(de()){case 42:case 47:ee(Be(Ie(ue(),fe()),t,n),l);break;default:C+="/"}break;case 123*m:a[c++]=q(C)*g;case 125*m:case 59:case 0:switch(v){case 0:case 125:b=0;case 59+u:-1==g&&(C=J(C,/\f/g,"")),p>0&&q(C)-d&&ee(p>32?Ae(C+";",r,n,d-1):Ae(J(C," ","")+";",r,n,d-2),l);break;case 59:C+=";";default:if(ee(x=Ge(C,t,n,c,u,o,a,_,y=[],I=[],d),i),123===v)if(0===u)we(C,t,x,x,y,i,d,a,I);else switch(99===f&&110===P(C,3)?100:f){case 100:case 108:case 109:case 115:we(e,x,x,r&&ee(Ge(e,x,x,0,0,o,a,_,o,y=[],d),I),o,I,d,a,r?y:I);break;default:we(C,x,x,x,[""],I,0,a,I)}}c=u=p=0,m=g=1,_=C="",d=s;break;case 58:d=1+q(C),p=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==ce())continue;switch(C+=j(v),v*m){case 38:g=u>0?1:(C+="\f",-1);break;case 44:a[c++]=(q(C)-1)*g,g=1;break;case 64:45===de()&&(C+=ge(ue())),f=de(),u=d=q(_=C+=xe(fe())),v++;break;case 45:45===h&&2==q(C)&&(m=0)}}return i}function Ge(e,t,n,r,o,i,s,a,l,c,u){for(var d=o-1,f=0===o?i:[""],p=$(f),h=0,m=0,b=0;h<r;++h)for(var g=0,v=K(e,d+1,d=Y(m=s[h])),_=e;g<p;++g)(_=H(m>0?f[g]+" "+v:J(v,/&\f/g,f[g])))&&(l[b++]=_);return ae(e,t,n,0===o?S:a,l,c,u)}function Be(e,t,n){return ae(e,t,n,D,j(ie),K(e,2,-2),0)}function Ae(e,t,n,r){return ae(e,t,n,O,K(e,0,r),K(e,r+1,-1),r)}function Fe(e,t){for(var n="",r=$(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Ne(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case O:return e.return=e.return||e.value;case D:return"";case M:return e.return=e.value+"{"+Fe(e.children,r)+"}";case S:e.value=e.props.join(",")}return q(n=Fe(e.children,r))?e.return=e.value+"{"+n+"}":""}function Xe(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Re=function(e,t,n){for(var r=0,o=0;r=o,o=de(),38===r&&12===o&&(t[n]=1),!he(o);)ue();return pe(e,oe)},Ze=function(e,t){return be(function(e,t){var n=-1,r=44;do{switch(he(r)){case 0:38===r&&12===de()&&(t[n]=1),e[n]+=Re(oe-1,t,n);break;case 2:e[n]+=ge(r);break;case 4:if(44===r){e[++n]=58===de()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=j(r)}}while(r=ue());return e}(me(e),t))},Qe=new WeakMap,ke=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Qe.get(n))&&!r){Qe.set(e,!0);for(var o=[],i=Ze(t,o),s=n.props,a=0,l=0;a<i.length;a++)for(var c=0;c<s.length;c++,l++)e.props[l]=o[a]?i[a].replace(/&\f/g,s[c]):s[c]+" "+i[a]}}},Le=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function We(e,t){switch(function(e,t){return 45^P(e,0)?(((t<<2^P(e,0))<<2^P(e,1))<<2^P(e,2))<<2^P(e,3):0}(e,t)){case 5103:return U+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return U+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return U+e+V+e+E+e+e;case 6828:case 4268:return U+e+E+e+e;case 6165:return U+e+E+"flex-"+e+e;case 5187:return U+e+J(e,/(\w+).+(:[^]+)/,U+"box-$1$2"+E+"flex-$1$2")+e;case 5443:return U+e+E+"flex-item-"+J(e,/flex-|-self/,"")+e;case 4675:return U+e+E+"flex-line-pack"+J(e,/align-content|flex-|-self/,"")+e;case 5548:return U+e+E+J(e,"shrink","negative")+e;case 5292:return U+e+E+J(e,"basis","preferred-size")+e;case 6060:return U+"box-"+J(e,"-grow","")+U+e+E+J(e,"grow","positive")+e;case 4554:return U+J(e,/([^-])(transform)/g,"$1"+U+"$2")+e;case 6187:return J(J(J(e,/(zoom-|grab)/,U+"$1"),/(image-set)/,U+"$1"),e,"")+e;case 5495:case 3959:return J(e,/(image-set\([^]*)/,U+"$1$`$1");case 4968:return J(J(e,/(.+:)(flex-)?(.*)/,U+"box-pack:$3"+E+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+U+e+e;case 4095:case 3583:case 4068:case 2532:return J(e,/(.+)-inline(.+)/,U+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(q(e)-1-t>6)switch(P(e,t+1)){case 109:if(45!==P(e,t+4))break;case 102:return J(e,/(.+:)(.+)-([^]+)/,"$1"+U+"$2-$3$1"+V+(108==P(e,t+3)?"$3":"$2-$3"))+e;case 115:return~z(e,"stretch")?We(J(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==P(e,t+1))break;case 6444:switch(P(e,q(e)-3-(~z(e,"!important")&&10))){case 107:return J(e,":",":"+U)+e;case 101:return J(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+U+(45===P(e,14)?"inline-":"")+"box$3$1"+U+"$2$3$1"+E+"$2box$3")+e}break;case 5936:switch(P(e,t+11)){case 114:return U+e+E+J(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return U+e+E+J(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return U+e+E+J(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return U+e+E+e+e}return e}var Ee,Ve=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case O:e.return=We(e.value,e.length);break;case M:return Fe([le(e,{value:J(e.value,"@","@"+U)})],r);case S:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Fe([le(e,{props:[J(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Fe([le(e,{props:[J(t,/:(plac\w+)/,":"+U+"input-$1")]}),le(e,{props:[J(t,/:(plac\w+)/,":-moz-$1")]}),le(e,{props:[J(t,/:(plac\w+)/,E+"input-$1")]})],r)}return""}))}}],Ue=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,i=e.stylisPlugins||Ve,s={},a=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;a.push(e)}));var l,c,u=[Ne,(c=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],d=function(e){var t=$(e);return function(n,r,o,i){for(var s="",a=0;a<t;a++)s+=e[a](n,r,o,i)||"";return s}}([ke,Le].concat(i,u));o=function(e,t,n,r){l=n,function(e){Fe(Ce(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new W({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:o};return f.sheet.hydrate(a),f},De={exports:{}},Se={};var Oe,Me,Ye,je,Te={};
10
+ */function p(){return c||(c=1,"production"!==process.env.NODE_ENV&&function(){function t(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===G?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case f:return"Fragment";case m:return"Profiler";case h:return"StrictMode";case v:return"Suspense";case y:return"SuspenseList";case C:return"Activity"}if("object"==typeof e)switch(e.tag,e.$$typeof){case p:return"Portal";case g:return(e.displayName||"Context")+".Provider";case b:return(e._context.displayName||"Context")+".Consumer";case _:var n=e.render;return(e=e.displayName)||(e=""!==(e=n.displayName||n.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case I:return null!==(n=e.displayName||null)?n:t(e.type)||"Memo";case x:n=e._payload,e=e._init;try{return t(e(n))}catch(e){}}return null}function n(e){return""+e}function r(e){try{n(e);var t=!1}catch(e){t=!0}if(t){var r=(t=console).error,o="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return r.call(t,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",o),n(e)}}function o(e){if(e===f)return"<>";if("object"==typeof e&&null!==e&&e.$$typeof===x)return"<...>";try{var n=t(e);return n?"<"+n+">":"<...>"}catch(e){return"<...>"}}function i(){return Error("react-stack-top-frame")}function a(){var e=t(this.type);return N[e]||(N[e]=!0),void 0!==(e=this.props.ref)?e:null}function s(e,n,o,i,s,c,d,p){var f,h=n.children;if(void 0!==h)if(i){if(A(h)){for(i=0;i<h.length;i++)l(h[i]);Object.freeze&&Object.freeze(h)}}else l(h);if(w.call(n,"key")){h=t(e);var m=Object.keys(n).filter((function(e){return"key"!==e}));i=0<m.length?"{key: someKey, "+m.join(": ..., ")+": ...}":"{key: someKey}",R[h+i]||(m=0<m.length?"{"+m.join(": ..., ")+": ...}":"{}",R[h+i]=!0)}if(h=null,void 0!==o&&(r(o),h=""+o),function(e){if(w.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(n)&&(r(n.key),h=""+n.key),"key"in n)for(var b in o={},n)"key"!==b&&(o[b]=n[b]);else o=n;return h&&function(e){function t(){}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}(o,"function"==typeof e&&(e.displayName||e.name)),function(e,t,n,r,o,i,s,l){return n=i.ref,e={$$typeof:u,type:e,key:t,props:i,_owner:o},null!==(void 0!==n?n:null)?Object.defineProperty(e,"ref",{enumerable:!1,get:a}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:s}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:l}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(e,h,c,0,null===(f=B.A)?null:f.getOwner(),o,d,p)}function l(e){"object"==typeof e&&null!==e&&e.$$typeof===u&&e._store&&(e._store.validated=1)}var c=e,u=Symbol.for("react.transitional.element"),p=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),g=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),C=Symbol.for("react.activity"),G=Symbol.for("react.client.reference"),B=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,w=Object.prototype.hasOwnProperty,A=Array.isArray,F=console.createTask?console.createTask:function(){return null},N={},X=(c={"react-stack-bottom-frame":function(e){return e()}})["react-stack-bottom-frame"].bind(c,i)(),Q=F(o(i)),R={};d.Fragment=f,d.jsx=function(e,t,n,r,i){var a=1e4>B.recentlyCreatedOwnerStacks++;return s(e,t,n,!1,0,i,a?Error("react-stack-top-frame"):X,a?F(o(e)):Q)},d.jsxs=function(e,t,n,r,i){var a=1e4>B.recentlyCreatedOwnerStacks++;return s(e,t,n,!0,0,i,a?Error("react-stack-top-frame"):X,a?F(o(e)):Q)}}()),d}var f=(u||(u=1,"production"===process.env.NODE_ENV?s.exports=function(){if(a)return l;a=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(t,n,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==n.key&&(o=""+n.key),"key"in n)for(var i in r={},n)"key"!==i&&(r[i]=n[i]);else r=n;return n=r.ref,{$$typeof:e,type:t,key:o,ref:void 0!==n?n:null,props:r}}return l.Fragment=t,l.jsx=n,l.jsxs=n,l}():s.exports=p()),s.exports);var h={action_btn:"onramp-offramp_style-module__action_btn___Qe9SK",primary:"onramp-offramp_style-module__primary___6uz1S",secondary:"onramp-offramp_style-module__secondary___0H7xC",overlay:"onramp-offramp_style-module__overlay___jy-Ji",tabs_link:"onramp-offramp_style-module__tabs_link___ltaYX",tabs_box:"onramp-offramp_style-module__tabs_box___tXGZ3",active_btn:"onramp-offramp_style-module__active_btn___1w3X3","widegt-tabs-close":"onramp-offramp_style-module__widegt-tabs-close___SXnY7",tabs_content:"onramp-offramp_style-module__tabs_content___poOn5",widget_wrapped:"onramp-offramp_style-module__widget_wrapped___YVh7g",widget_modal:"onramp-offramp_style-module__widget_modal___UQ7fD",widgetcomponent:"onramp-offramp_style-module__widgetcomponent___R5f6-","exchange-widget-modal":"onramp-offramp_style-module__exchange-widget-modal___zor12",widget_content:"onramp-offramp_style-module__widget_content___Lti0Q",tabs_wrapped:"onramp-offramp_style-module__tabs_wrapped___BYrp5",field_card:"onramp-offramp_style-module__field_card___7OeeE",field_label:"onramp-offramp_style-module__field_label___Mhflb",field_form:"onramp-offramp_style-module__field_form___qKHCt",input_control:"onramp-offramp_style-module__input_control___DZTWM",field_select:"onramp-offramp_style-module__field_select___bWAWD",ramp_modal_img:"onramp-offramp_style-module__ramp_modal_img___0CVFO","off-ramp-selected-badges":"onramp-offramp_style-module__off-ramp-selected-badges___Ppt7T",selected__two:"onramp-offramp_style-module__selected__two___kKNJ9",field_select_card:"onramp-offramp_style-module__field_select_card___M42uE","off-ramp-details-card":"onramp-offramp_style-module__off-ramp-details-card___DxH3h","span-d-align":"onramp-offramp_style-module__span-d-align___ZX7Xt",field_box:"onramp-offramp_style-module__field_box___8FV3p",label_icons:"onramp-offramp_style-module__label_icons___8FuSy",label_value:"onramp-offramp_style-module__label_value___ttAOt",label_card:"onramp-offramp_style-module__label_card___bLVvJ",label_titles:"onramp-offramp_style-module__label_titles___lIpzf",ramp_space:"onramp-offramp_style-module__ramp_space___Mudik",ramp_space_top:"onramp-offramp_style-module__ramp_space_top___qc4QJ",label_dots:"onramp-offramp_style-module__label_dots___Cs0-X",ramp_details:"onramp-offramp_style-module__ramp_details___M557P",ramp_head:"onramp-offramp_style-module__ramp_head___w1vo7",payment_check_card:"onramp-offramp_style-module__payment_check_card___zYnwb",payment_box:"onramp-offramp_style-module__payment_box___-Ws-J",selected:"onramp-offramp_style-module__selected___4iaZp",info_box:"onramp-offramp_style-module__info_box___d2OXa",ramp_action:"onramp-offramp_style-module__ramp_action___NZaHl",space_from:"onramp-offramp_style-module__space_from___Cyee1","efi-swap-action":"onramp-offramp_style-module__efi-swap-action___TxzRg",bank_head:"onramp-offramp_style-module__bank_head___AmN9V",bank_titles:"onramp-offramp_style-module__bank_titles___H9aoi",bank_tabs_link:"onramp-offramp_style-module__bank_tabs_link___dIttf",active:"onramp-offramp_style-module__active___WNuHk",bank_tabs_content:"onramp-offramp_style-module__bank_tabs_content___e0FU-",bank_exist_feilds_frame:"onramp-offramp_style-module__bank_exist_feilds_frame___EpACI",bank_exist_label:"onramp-offramp_style-module__bank_exist_label___Nw-0a",info_card:"onramp-offramp_style-module__info_card___jaV21",caution_info:"onramp-offramp_style-module__caution_info___tyyLy",new_bank_label:"onramp-offramp_style-module__new_bank_label___u5NVY",new_bank_fields:"onramp-offramp_style-module__new_bank_fields___9-ptN",ramp_bank_box:"onramp-offramp_style-module__ramp_bank_box___xlTmj",f_details_head:"onramp-offramp_style-module__f_details_head___FTGBr",f_details_titles:"onramp-offramp_style-module__f_details_titles___P-FjO","off-ramp-details-head":"onramp-offramp_style-module__off-ramp-details-head___NB-Uf",f_details_info_box:"onramp-offramp_style-module__f_details_info_box___J6BfR",f_details_card:"onramp-offramp_style-module__f_details_card___91eSD",span_d_align:"onramp-offramp_style-module__span_d_align___U5zBD",span_d_copy:"onramp-offramp_style-module__span_d_copy___X4DtF",ramp_option:"onramp-offramp_style-module__ramp_option___17oT-",toast_container:"onramp-offramp_style-module__toast_container___UnFzN",toast:"onramp-offramp_style-module__toast___IG3Ej",slideIn:"onramp-offramp_style-module__slideIn___o6Z41",fadeOut:"onramp-offramp_style-module__fadeOut___j8edh",success:"onramp-offramp_style-module__success___uT5AR",error:"onramp-offramp_style-module__error___QxAaR",info:"onramp-offramp_style-module__info___hDtkU",preloading_sec:"onramp-offramp_style-module__preloading_sec___ieG6d",l3:"onramp-offramp_style-module__l3___9yDUV",dot_loader:"onramp-offramp_style-module__dot_loader___hh2Ld",l1:"onramp-offramp_style-module__l1___3-UJN","off-ramp-field-form":"onramp-offramp_style-module__off-ramp-field-form___xT-00",off_currency_option:"onramp-offramp_style-module__off_currency_option___CWiHH",check_wrap:"onramp-offramp_style-module__check_wrap___yooyC",form_check:"onramp-offramp_style-module__form_check___Ia0Ug",form_check_input:"onramp-offramp_style-module__form_check_input___2fe62","space-bottom":"onramp-offramp_style-module__space-bottom___p9JgM","input-error":"onramp-offramp_style-module__input-error___irjqC",input_error:"onramp-offramp_style-module__input_error___cDlN1",required:"onramp-offramp_style-module__required___x-Hpn",error_msg:"onramp-offramp_style-module__error_msg___2mtuq","sell-payment-head":"onramp-offramp_style-module__sell-payment-head___aVS7i","back-arrow-btn-sec":"onramp-offramp_style-module__back-arrow-btn-sec___xGETD","back-arrow-btn":"onramp-offramp_style-module__back-arrow-btn___xOFm3",sell_qr_payemnt_wrap:"onramp-offramp_style-module__sell_qr_payemnt_wrap___R8qaX",sell_amt_details:"onramp-offramp_style-module__sell_amt_details___nD--g",sell_payment_qr_frame:"onramp-offramp_style-module__sell_payment_qr_frame___a4wAE",sell_amt_details_wrap:"onramp-offramp_style-module__sell_amt_details_wrap___-8-2T",sell_amt_pay:"onramp-offramp_style-module__sell_amt_pay___4QbtX",sell_pay_amt:"onramp-offramp_style-module__sell_pay_amt___fKbm2",sell_pay_label:"onramp-offramp_style-module__sell_pay_label___yHLT-","sell-pay-amt":"onramp-offramp_style-module__sell-pay-amt___0d6ky","sell-amt-get":"onramp-offramp_style-module__sell-amt-get___BxfQi",sell_estimated_info:"onramp-offramp_style-module__sell_estimated_info___IkpPZ",sell_payment_qr_box:"onramp-offramp_style-module__sell_payment_qr_box___kGIVi",sell_wallet_address_card:"onramp-offramp_style-module__sell_wallet_address_card___-qhPh",sell_wallet_data_card:"onramp-offramp_style-module__sell_wallet_data_card___OiOjU",sell_hash_label:"onramp-offramp_style-module__sell_hash_label___VhCda",sell_wallet_code_card:"onramp-offramp_style-module__sell_wallet_code_card___4-pJ-",sell_wallet_code:"onramp-offramp_style-module__sell_wallet_code___0Rmho",sell_hash_fields:"onramp-offramp_style-module__sell_hash_fields___f6X81",no_wallet_details:"onramp-offramp_style-module__no_wallet_details___umvFH",sell_final_box:"onramp-offramp_style-module__sell_final_box___LbDaV",sell_final_info:"onramp-offramp_style-module__sell_final_info___wCyQo",manual_hash_btn:"onramp-offramp_style-module__manual_hash_btn___xBHMj",flow_stepper_frame:"onramp-offramp_style-module__flow_stepper_frame___dAF11",withdraw_stepper:"onramp-offramp_style-module__withdraw_stepper___zR3xV",flow_stepper_card:"onramp-offramp_style-module__flow_stepper_card___EDOb9",dark_stepper:"onramp-offramp_style-module__dark_stepper___oRsBt",failed:"onramp-offramp_style-module__failed___xIAPu","wipe-in-right":"onramp-offramp_style-module__wipe-in-right___kPEvX",completed:"onramp-offramp_style-module__completed___WogRr",hash_completed:"onramp-offramp_style-module__hash_completed___DEMpP",flow_stepper_process:"onramp-offramp_style-module__flow_stepper_process___cuKv6",hash_failed:"onramp-offramp_style-module__hash_failed___-Wjyl",hash_failed_1:"onramp-offramp_style-module__hash_failed_1___rjirs","spinner-loader":"onramp-offramp_style-module__spinner-loader___-USKj",flow_stepper_success:"onramp-offramp_style-module__flow_stepper_success___-B7w8",flow_stepper_bar:"onramp-offramp_style-module__flow_stepper_bar___b9FDq",flow_loader:"onramp-offramp_style-module__flow_loader___ybARp",l13:"onramp-offramp_style-module__l13___mEfhi",spinnerLoader:"onramp-offramp_style-module__spinnerLoader___yjCZk",spinnerLoadingAnimation:"onramp-offramp_style-module__spinnerLoadingAnimation___Otpld",card_form_container:"onramp-offramp_style-module__card_form_container___m8uAk",card_form:"onramp-offramp_style-module__card_form___m2ame",card_row:"onramp-offramp_style-module__card_row___LpJN7",result_step_container:"onramp-offramp_style-module__result_step_container___dSRKj",result_options:"onramp-offramp_style-module__result_options___6UDFB",result_option:"onramp-offramp_style-module__result_option___0Tvng",failure:"onramp-offramp_style-module__failure___0BXEY",sell_admin_crypto_result_options:"onramp-offramp_style-module__sell_admin_crypto_result_options___0wnsX",sell_admin_crypto_result_option:"onramp-offramp_style-module__sell_admin_crypto_result_option___-9IU-",sell_admin_crypto_success:"onramp-offramp_style-module__sell_admin_crypto_success___iLCJP",sell_admin_crypto_failure:"onramp-offramp_style-module__sell_admin_crypto_failure___zApAJ",hidden_radio:"onramp-offramp_style-module__hidden_radio___uuzNO"};!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}('@import url("https://fonts.googleapis.com/css2?family=Red+Hat+Text:wght@300;400;500;600;700&display=swap");@-webkit-viewport{width:device-width}@-moz-viewport{width:device-width}@-ms-viewport{width:device-width}@-o-viewport{width:device-width}@viewport{width:device-width}:root{--primay-sdk-color:#f9c201;--light-color:#fff;--dark-sdk-color:#000;--quaternary-sdk-color:#6b7178;--overlay-sdk-bg:#f5f5f5;--faile-sdk-color:#f22;--no-fill:transparent;--line-color:#e5eaf4}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-text-size-adjust:none;-ms-text-size-adjust:none;-moz-text-size-adjust:none;text-size-adjust:none;background-color:var(--light-color);background-size:cover;color:var(--dark-sdk-color);font-family:Red Hat Text,sans-serif;font-size:12px!important;letter-spacing:.8px;overflow-x:hidden;position:relative}*{margin:0;padding:0}*,:after,:before{box-sizing:border-box}a,button{cursor:pointer}a,div,h1,h2,h3,h4,h5,h6,p,span{font-family:Red Hat Text,sans-serif}button:disabled{cursor:not-allowed;opacity:.7}.onramp-offramp_style-module__action_btn___Qe9SK{--_background:var(--background,var(--primay-sdk-color));--_color:var(--color,var(--dark-sdk-color));--_border:var(--border,transparent);--_btn-width:var(--btn-width,auto);align-items:center;background:var(--_background);border:1px solid var(--_border);-webkit-border-radius:10px;-moz-border-radius:10px;-o-border-radius:10px;-ms-border-radius:10px;border-radius:10px;color:var(--_color);display:flex;font-family:Red Hat Text,sans-serif;font-size:.85em;font-weight:600;gap:.5em;justify-content:center;overflow:hidden;padding:.8em 2em;position:relative;text-align:center;-webkit-transition:all .5s ease-in-out;-moz-transition:all .5s ease-in-out;-ms-transition:all .5s ease-in-out;-o-transition:all .5s ease-in-out;transition:all .5s ease-in-out;width:var(--_btn-width);z-index:0}.onramp-offramp_style-module__primary___6uz1S{--background:var(--primay-sdk-color);--color:var(--dark-sdk-color);--btn-width:100%;--border:transparent}.onramp-offramp_style-module__secondary___0H7xC{--background:#f9f9f9;--color:var(--dark-sdk-color);--btn-width:auto;--border:transparent}.onramp-offramp_style-module__overlay___jy-Ji{--background:transparent;--color:var(--dark-sdk-color);--btn-width:auto;--border:#e5eaf4;padding:.5em}.onramp-offramp_style-module__tabs_link___ltaYX{align-items:flex-start;display:flex;justify-content:space-between}.onramp-offramp_style-module__tabs_box___tXGZ3{align-items:center;background:#ffffff47;border-radius:10px;display:flex;gap:1em;margin-bottom:1.5em;padding:.7em}.onramp-offramp_style-module__tabs_box___tXGZ3 button{background-color:initial;border:0;border-radius:0;color:#666;font-family:Red Hat Text,sans-serif;font-size:.85em;font-weight:600;padding:.8em 1em}.onramp-offramp_style-module__tabs_box___tXGZ3 button.onramp-offramp_style-module__active_btn___1w3X3{background:var(--light-color);border-radius:10px}.onramp-offramp_style-module__tabs_box___tXGZ3 button:first-child.onramp-offramp_style-module__active_btn___1w3X3{color:#008826!important}.onramp-offramp_style-module__tabs_box___tXGZ3 button:last-child.onramp-offramp_style-module__active_btn___1w3X3{color:red!important}.onramp-offramp_style-module__widegt-tabs-close___SXnY7 button{background-color:transparent;border:0}.onramp-offramp_style-module__tabs_content___poOn5{background:#ffffff47;border-radius:10px;padding:2em}.onramp-offramp_style-module__widget_wrapped___YVh7g{--spacing-modal:1.75rem;width:auto}@media (max-width:768.98px){.onramp-offramp_style-module__widget_wrapped___YVh7g{height:100%}.onramp-offramp_style-module__widget_modal___UQ7fD{border-radius:0!important;padding:0!important}}.onramp-offramp_style-module__widgetcomponent___R5f6-{background-color:#f3e2c3;border-radius:12px;display:block;max-width:600px;min-height:600px;min-width:600px;overflow:hidden;padding:2em;width:100%}@media (max-width:769.98px){.onramp-offramp_style-module__exchange-widget-modal___zor12{padding:1em!important}.onramp-offramp_style-module__widgetcomponent___R5f6-{border-radius:0;left:unset;max-width:unset!important;min-width:unset!important;padding:0!important;position:relative;top:unset;transform:unset;width:100%}}.onramp-offramp_style-module__widget_content___Lti0Q{position:relative}.onramp-offramp_style-module__field_card___7OeeE{border-radius:10px;display:flex}.onramp-offramp_style-module__field_label___Mhflb{color:#010101;font-size:1em;font-weight:600;margin-bottom:.5em}.onramp-offramp_style-module__field_form___qKHCt .onramp-offramp_style-module__input_control___DZTWM{background:var(--no-fill);border:0;border-radius:0;color:#7d7d7d;font-size:1.8em;font-weight:600;height:45px;padding:12px 12px 12px 0;width:100%}.onramp-offramp_style-module__field_form___qKHCt .onramp-offramp_style-module__input_control___DZTWM:active,.onramp-offramp_style-module__field_form___qKHCt .onramp-offramp_style-module__input_control___DZTWM:focus,.onramp-offramp_style-module__field_form___qKHCt .onramp-offramp_style-module__input_control___DZTWM:focus-visible,.onramp-offramp_style-module__field_form___qKHCt .onramp-offramp_style-module__input_control___DZTWM:focus-within{background:var(--no-fill);border:0;border-radius:0;outline:0}.onramp-offramp_style-module__field_form___qKHCt .onramp-offramp_style-module__input_control___DZTWM:focus-visible{background:var(--no-fill);border:0;border-radius:0;outline:0}.onramp-offramp_style-module__ramp_modal_img___0CVFO{height:1.5em;object-fit:contain;width:1.5em}.onramp-offramp_style-module__off-ramp-selected-badges___Ppt7T{padding:.5em;text-align:center}.onramp-offramp_style-module__off-ramp-selected-badges___Ppt7T,.onramp-offramp_style-module__selected__two___kKNJ9{background:#0000000a;border:1px dashed #0000003b;border-radius:10px;color:#010101;font-size:.85em;font-weight:600;line-height:1.8;margin-bottom:0}.onramp-offramp_style-module__selected__two___kKNJ9{margin-top:10px}@media (max-width:768.98px){.onramp-offramp_style-module__field_card___7OeeE{flex-direction:column}.onramp-offramp_style-module__field_select_card___M42uE{border-bottom-left-radius:10px!important;border-bottom-right-radius:10px!important;border-top-right-radius:0!important;width:100%!important}.onramp-offramp_style-module__off-ramp-details-card___DxH3h{grid-template-columns:repeat(1,1fr)!important}.onramp-offramp_style-module__off-ramp-details-card___DxH3h span:last-child{text-align:start!important}.onramp-offramp_style-module__span-d-align___ZX7Xt{justify-content:start!important}.onramp-offramp_style-module__field_box___8FV3p{border-bottom-left-radius:0!important;border-bottom-right-radius:0!important;border-top-right-radius:10px!important;width:100%!important}.onramp-offramp_style-module__widget_modal___UQ7fD{max-width:unset!important;min-width:unset!important;width:100%!important}.onramp-offramp_style-module__tabs_content___poOn5,.onramp-offramp_style-module__widget_content___Lti0Q{padding:1em!important}}.onramp-offramp_style-module__field_box___8FV3p{background:#fff9;border-bottom-left-radius:10px;border-top-left-radius:10px;display:flex;flex-direction:column;justify-content:center;padding:1em;width:75%}.onramp-offramp_style-module__field_select_card___M42uE{background-color:#f8f9fa;border-bottom-right-radius:10px;border-top-right-radius:10px;display:flex;flex-direction:column;justify-content:center;padding:1em;width:50%}.onramp-offramp_style-module__label_icons___8FuSy{background-color:#f8f9fa;border-radius:50%;display:grid;font-size:1.2em;font-weight:700;height:2em;place-items:center;width:2em}.onramp-offramp_style-module__label_value___ttAOt{align-items:center;color:#010101;display:flex;font-size:1.1em;font-weight:600;gap:10}.onramp-offramp_style-module__label_value___ttAOt span{color:#7d7d7d;font-weight:500}.onramp-offramp_style-module__ramp_space___Mudik{align-items:center;display:grid;grid-template-columns:50px auto}.onramp-offramp_style-module__ramp_space_top___qc4QJ{align-items:start;display:grid;grid-template-columns:50px auto}.onramp-offramp_style-module__label_dots___Cs0-X{background-color:#f8f9fa;border-radius:50%;height:1em;margin-left:10px;width:1em}.onramp-offramp_style-module__ramp_head___w1vo7{color:#7d7d7d;font-size:1.2em;font-weight:500;line-height:.9}.onramp-offramp_style-module__payment_check_card___zYnwb{align-items:center;background-color:var(--light-color);border:1px solid #fff;border-radius:8px;cursor:pointer;display:flex;gap:8px;justify-content:space-between;padding:10px 15px;position:relative;transition:all .3s ease}.onramp-offramp_style-module__payment_box___-Ws-J{align-items:center;display:flex;gap:1em;margin-top:1em}.onramp-offramp_style-module__payment_check_card___zYnwb input[type=radio]{height:0;opacity:0;position:absolute;width:0}.onramp-offramp_style-module__payment_check_card___zYnwb.onramp-offramp_style-module__selected___4iaZp{background-color:#fff7d1;border-color:var(--primay-sdk-color)}.onramp-offramp_style-module__info_box___d2OXa{display:flex;flex-direction:column;gap:2em;padding:2em 0;position:relative;z-index:999}.onramp-offramp_style-module__info_box___d2OXa:after{background:#ffffff73;content:"";height:100%;left:16px;position:absolute;top:0;width:2px;z-index:-1}.onramp-offramp_style-module__ramp_action___NZaHl{margin-top:2em}.onramp-offramp_style-module__space_from___Cyee1{margin-top:5em}.onramp-offramp_style-module__efi-swap-action___TxzRg{margin-bottom:1em}.onramp-offramp_style-module__bank_head___AmN9V{align-items:center;cursor:pointer;display:grid;gap:1em;grid-template-columns:24px auto;margin-bottom:2em}.onramp-offramp_style-module__bank_titles___H9aoi{color:#000;font-size:1.2em;font-weight:600}.onramp-offramp_style-module__bank_head___AmN9V a{height:18px;width:18px}.onramp-offramp_style-module__bank_tabs_link___dIttf{display:grid;grid-template-columns:repeat(2,1fr)}.onramp-offramp_style-module__bank_tabs_link___dIttf button{background-color:var(--no-fill);border:0;border-bottom:1px solid #fff;border-radius:0;color:#000;font-size:1.1em;font-weight:600;padding:1em 2em;width:100%}.onramp-offramp_style-module__bank_tabs_link___dIttf button.onramp-offramp_style-module__active___WNuHk{border-bottom:1px solid var(--primay-sdk-color)}.onramp-offramp_style-module__bank_tabs_content___e0FU-{padding-top:2em}.onramp-offramp_style-module__bank_exist_feilds_frame___EpACI{margin-bottom:2em}.onramp-offramp_style-module__bank_exist_label___Nw-0a{color:#010101;font-size:1em;font-weight:600;margin-bottom:.5em}.onramp-offramp_style-module__info_card___jaV21{align-items:center;background:#ffffff47;border-radius:10px;display:grid;grid-template-columns:40px auto;padding:.5em}.onramp-offramp_style-module__caution_info___tyyLy{color:var(--dark-sdk-color);font-size:.8em;font-weight:400;line-height:1.8}.onramp-offramp_style-module__new_bank_label___u5NVY{color:#010101;font-size:1em;font-weight:600;margin-bottom:.5em}.onramp-offramp_style-module__new_bank_fields___9-ptN .onramp-offramp_style-module__input_control___DZTWM{background-color:var(--light-color);border:1px soild var(--light-color);border-radius:10px;color:var(--dark-sdk-color);font-size:.9em!important;font-weight:400!important;height:45px;padding:10px;width:100%}.onramp-offramp_style-module__new_bank_fields___9-ptN .onramp-offramp_style-module__input_control___DZTWM:active,.onramp-offramp_style-module__new_bank_fields___9-ptN .onramp-offramp_style-module__input_control___DZTWM:focus,.onramp-offramp_style-module__new_bank_fields___9-ptN .onramp-offramp_style-module__input_control___DZTWM:focus-visible,.onramp-offramp_style-module__new_bank_fields___9-ptN .onramp-offramp_style-module__input_control___DZTWM:focus-within{border:1px soild var(--light-color);outline:0}.onramp-offramp_style-module__new_bank_fields___9-ptN .onramp-offramp_style-module__input_control___DZTWM:focus-visible{border:1px soild var(--light-color);outline:0}.onramp-offramp_style-module__ramp_bank_box___xlTmj{margin-bottom:2em}.onramp-offramp_style-module__f_details_head___FTGBr{align-items:center;display:grid;gap:1em;grid-template-columns:24px auto;margin-bottom:2em}.onramp-offramp_style-module__f_details_titles___P-FjO{color:#000;font-size:1.2em;font-weight:600}.onramp-offramp_style-module__off-ramp-details-head___NB-Uf a{height:18px;width:18px}.onramp-offramp_style-module__f_details_info_box___J6BfR{background-color:var(--light-color);border-radius:10px;padding:2em}.onramp-offramp_style-module__f_details_card___91eSD{align-items:center;border-bottom:1px dashed #ededed;display:grid;gap:2em;grid-template-columns:repeat(2,1fr);margin-bottom:1.5em;padding-bottom:1.5em}.onramp-offramp_style-module__f_details_card___91eSD:last-child{border-bottom:0 dashed #fff;margin-bottom:0;padding:0}.onramp-offramp_style-module__f_details_card___91eSD span:first-child{color:#7d7d7d;font-size:1em;font-weight:600;text-align:start}.onramp-offramp_style-module__f_details_card___91eSD span:last-child{color:#010101;font-size:1em;font-weight:500;text-align:end}.onramp-offramp_style-module__span_d_align___U5zBD a{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;font-size:.85em;font-weight:500;overflow:hidden;text-overflow:ellipsis;word-break:break-all}.onramp-offramp_style-module__span_d_align___U5zBD{align-items:center;display:grid;gap:1em;grid-template-columns:24px auto;justify-content:end}.onramp-offramp_style-module__span_d_copy___X4DtF{align-items:center;display:grid;gap:1em;grid-template-columns:auto 24px;justify-content:end}.onramp-offramp_style-module__ramp_option___17oT-{align-items:center;display:flex;gap:2em}.onramp-offramp_style-module__toast_container___UnFzN{display:flex;flex-direction:column;gap:10px;position:absolute;right:20px;top:20px;z-index:9999}.onramp-offramp_style-module__toast___IG3Ej{align-items:center;animation:onramp-offramp_style-module__slideIn___o6Z41 .3s ease,onramp-offramp_style-module__fadeOut___j8edh .5s ease 2.5s;background-color:#333;border-radius:6px;box-shadow:0 4px 10px rgba(0,0,0,.3);color:#fff;display:flex;justify-content:space-between;min-width:250px;padding:12px 16px;transition:opacity .3s}.onramp-offramp_style-module__toast___IG3Ej.onramp-offramp_style-module__success___uT5AR{background-color:#4caf50}.onramp-offramp_style-module__toast___IG3Ej.onramp-offramp_style-module__error___QxAaR{background-color:#f44336}.onramp-offramp_style-module__toast___IG3Ej.onramp-offramp_style-module__info___hDtkU{background-color:#2196f3}.onramp-offramp_style-module__toast___IG3Ej button{background:none;border:none;color:#fff;cursor:pointer;font-size:18px}@keyframes onramp-offramp_style-module__slideIn___o6Z41{0%{opacity:0;transform:translateX(100%)}to{opacity:1;transform:translateX(0)}}@keyframes onramp-offramp_style-module__fadeOut___j8edh{to{opacity:0}}.onramp-offramp_style-module__preloading_sec___ieG6d{border:2px solid;border-radius:40px;color:var(--primay-sdk-color);height:20px;position:relative;width:100px}.onramp-offramp_style-module__preloading_sec___ieG6d:before{animation:onramp-offramp_style-module__l3___9yDUV 1s linear infinite;background:currentColor;border-radius:inherit;bottom:0;content:"";left:0;margin:2px;position:absolute;top:0;width:25%}@keyframes onramp-offramp_style-module__l3___9yDUV{50%{left:100%;transform:translateX(calc(-100% - 4px))}}.onramp-offramp_style-module__dot_loader___hh2Ld{--c:no-repeat linear-gradient(var(--primay-sdk-color) 0 0);animation:onramp-offramp_style-module__l1___3-UJN 1s linear infinite;aspect-ratio:1;background:var(--c) 0 50%,var(--c) 50% 50%,var(--c) 100% 50%;background-size:20% 100%;width:45px}@keyframes onramp-offramp_style-module__l1___3-UJN{0%{background-size:20% 100%,20% 100%,20% 100%}33%{background-size:20% 10%,20% 100%,20% 100%}50%{background-size:20% 100%,20% 10%,20% 100%}66%{background-size:20% 100%,20% 100%,20% 10%}to{background-size:20% 100%,20% 100%,20% 100%}}.onramp-offramp_style-module__off-ramp-field-form___xT-00 .onramp-offramp_style-module__dot_loader___hh2Ld{height:20px}.onramp-offramp_style-module__off_currency_option___CWiHH h3{color:var(--dark-sdk-color);font-size:.85em;font-weight:500}.onramp-offramp_style-module__off_currency_option___CWiHH{align-items:center;background-color:var(--light-color);border:1px solid var(--light-color);border-radius:8px;cursor:pointer;display:flex;gap:8px;justify-content:space-between;padding:10px 15px;position:relative;transition:all .3s ease;width:100%}.onramp-offramp_style-module__check_wrap___yooyC{align-items:center;display:grid;gap:1em;grid-template-columns:repeat(3,1fr);margin-bottom:1.5em}.onramp-offramp_style-module__form_check___Ia0Ug .onramp-offramp_style-module__form_check_input___2fe62:checked~.onramp-offramp_style-module__off_currency_option___CWiHH{background-color:#fff7d1;border-color:var(--primay-sdk-color)}.onramp-offramp_style-module__form_check_input___2fe62{display:none}.onramp-offramp_style-module__space-bottom___p9JgM{margin-bottom:1rem}.onramp-offramp_style-module__input-error___irjqC,.onramp-offramp_style-module__input_error___cDlN1,.onramp-offramp_style-module__required___x-Hpn{color:var(--faile-sdk-color)}.onramp-offramp_style-module__ramp_bank_box___xlTmj{position:relative}.onramp-offramp_style-module__ramp_bank_box___xlTmj .onramp-offramp_style-module__input_error___cDlN1{background-color:#e34f4f;border-radius:3px;color:#fff;display:inline-block;font-size:12px;font-weight:400;height:25px;line-height:1;padding:6px 8px;position:absolute;right:-15px;top:0;z-index:99}.onramp-offramp_style-module__ramp_bank_box___xlTmj .onramp-offramp_style-module__input_error___cDlN1:after{border-color:#0000 #e34f4f;border-style:solid;border-width:0 6px 6px 0;bottom:-6px;content:"";display:block;position:absolute;right:1.2em;width:0;z-index:99}.onramp-offramp_style-module__error_msg___2mtuq{color:#e34f4f;margin-top:.5em}.onramp-offramp_style-module__sell-payment-head___aVS7i{margin-bottom:1.5em}.onramp-offramp_style-module__back-arrow-btn-sec___xGETD{align-items:center;cursor:pointer;display:flex;gap:1em}.onramp-offramp_style-module__back-arrow-btn-sec___xGETD .onramp-offramp_style-module__back-arrow-btn___xOFm3{cursor:pointer;width:2em}.onramp-offramp_style-module__back-arrow-btn-sec___xGETD h4{color:var(--dark-sdk-color);font-size:1.1em;font-weight:600;margin-bottom:0}.onramp-offramp_style-module__sell_qr_payemnt_wrap___R8qaX{grid-gap:2em;background-color:var(--light-color);border-radius:10px;display:grid;gap:2em;grid-template-columns:repeat(2,1fr);margin-bottom:1em!important;padding:1.5em;position:relative}@media (max-width:991.98px){.onramp-offramp_style-module__sell_qr_payemnt_wrap___R8qaX{gap:1em;grid-template-columns:repeat(1,1fr)}}.onramp-offramp_style-module__sell_amt_details___nD--g{background-color:var(--light-color);border-radius:10px;display:flex;flex-direction:column;grid-area:1/1/2/3;justify-content:space-between;margin-bottom:1em!important}@media (max-width:991.98px){.onramp-offramp_style-module__sell_amt_details___nD--g{gap:1em;grid-area:unset}.onramp-offramp_style-module__sell_payment_qr_frame___a4wAE{display:grid;place-items:center}}.onramp-offramp_style-module__sell_amt_details_wrap___-8-2T{align-items:center;display:flex;justify-content:space-between;margin-bottom:1em}.onramp-offramp_style-module__sell_amt_pay___4QbtX{display:flex;flex-direction:column}.onramp-offramp_style-module__sell_pay_amt___fKbm2{display:flex;flex-direction:column;text-align:end}.onramp-offramp_style-module__sell_pay_label___yHLT-{color:var(--quaternary-sdk-color);font-size:.8em;font-weight:300;margin-bottom:.5em}.onramp-offramp_style-module__sell-pay-amt___0d6ky{color:var(--dark-sdk-color);font-size:.85em;font-weight:500;margin-bottom:0}.onramp-offramp_style-module__sell-amt-get___BxfQi{align-items:flex-end;display:flex;flex-direction:column}.onramp-offramp_style-module__sell_estimated_info___IkpPZ{background:#0000000a;border:1px dashed #0000003b;border-radius:10px;padding:.7em}.onramp-offramp_style-module__sell_estimated_info___IkpPZ p{align-items:center;color:var(--dark-sdk-color);display:flex;font-size:.85em;font-weight:600;justify-content:space-between;margin-bottom:0}.onramp-offramp_style-module__sell_payment_qr_box___kGIVi{grid-area:1/3/2/4}@media (max-width:991.98px){.onramp-offramp_style-module__sell_payment_qr_box___kGIVi{grid-area:unset}}.onramp-offramp_style-module__sell_wallet_address_card___-qhPh{background:var(--overlay-sdk-bg);border-radius:10px;margin-bottom:1.5em;padding:1.5em}.onramp-offramp_style-module__sell_wallet_data_card___OiOjU{margin-bottom:1em}.onramp-offramp_style-module__sell_hash_label___VhCda,.onramp-offramp_style-module__sell_wallet_data_card___OiOjU h6{color:var(--dark-sdk-color);font-size:.8em;font-weight:500;margin-bottom:.5em}.onramp-offramp_style-module__sell_hash_label___VhCda span{color:red}.onramp-offramp_style-module__sell_wallet_code_card___4-pJ-{grid-gap:.5em;display:grid;gap:.5em;grid-template-columns:auto 65px}.onramp-offramp_style-module__sell_wallet_code___0Rmho{border:1px solid var(--line-color);border-radius:10px;padding:.8em 1em}.onramp-offramp_style-module__sell_wallet_code___0Rmho span{-webkit-line-clamp:1;-webkit-box-orient:vertical;color:var(--dark-sdk-color);display:-webkit-box;font-size:.85em;font-weight:500;overflow:hidden;text-overflow:ellipsis;word-break:break-all}.onramp-offramp_style-module__sell_hash_fields___f6X81,.onramp-offramp_style-module__sell_hash_fields___f6X81:focus{background:transparent;border:1px solid var(--line-color);border-radius:10px;color:var(--dark-sdk-color);font-size:.9em;font-weight:400;padding:.8em 1em;width:100%}.onramp-offramp_style-module__sell_hash_fields___f6X81:focus{outline:1px solid var(--line-color)}.onramp-offramp_style-module__sell_hash_fields___f6X81::placeholder{font-family:Red Hat Text,sans-serif;font-size:.9em;font-weight:400}.onramp-offramp_style-module__no_wallet_details___umvFH{align-items:center;display:flex;gap:1em;justify-content:center}.onramp-offramp_style-module__sell_final_box___LbDaV{align-items:center;background-color:#fff;border-radius:12px;display:flex;flex-direction:column;gap:.2em;justify-content:center;padding:2em}.onramp-offramp_style-module__sell_final_info___wCyQo p{font-size:.95em;font-weight:500;line-height:2;margin-bottom:.5em}@media (max-width:767.98px){body{font-size:11px!important}}.onramp-offramp_style-module__manual_hash_btn___xBHMj{background:none;border:none;color:var(--senary-color);font-size:.8em;outline:none;padding:.2em}.onramp-offramp_style-module__flow_stepper_frame___dAF11 ul li{list-style:none!important}.onramp-offramp_style-module__flow_stepper_frame___dAF11 ul{align-items:self-start;display:flex;justify-content:space-between;margin:auto;min-height:70px;overflow:hidden;position:relative;width:100%}.onramp-offramp_style-module__withdraw_stepper___zR3xV .onramp-offramp_style-module__flow_stepper_frame___dAF11 ul{width:100%}.onramp-offramp_style-module__withdraw_stepper___zR3xV .onramp-offramp_style-module__flow_stepper_frame___dAF11 ul:after{transform:scale(.68)}.onramp-offramp_style-module__flow_stepper_card___EDOb9 span{position:absolute;text-align:center;top:40px;white-space:nowrap}.onramp-offramp_style-module__flow_stepper_frame___dAF11 ul li{position:relative;z-index:1050}.onramp-offramp_style-module__flow_stepper_frame___dAF11 ul li:after{background-color:#fff;content:" ";height:2px;left:18px;position:absolute;top:10px;transform-origin:center;width:90vw;z-index:-1}.onramp-offramp_style-module__dark_stepper___oRsBt .onramp-offramp_style-module__flow_stepper_frame___dAF11 ul li:after{background-color:#efefef}.onramp-offramp_style-module__flow_stepper_frame___dAF11 ul li:last-child:after{display:none}.onramp-offramp_style-module__flow_stepper_frame___dAF11 ul li.onramp-offramp_style-module__failed___xIAPu:after{animation:onramp-offramp_style-module__wipe-in-right___kPEvX 2.5s cubic-bezier(.25,1,.3,1) both;background-color:#e70f0f}.onramp-offramp_style-module__flow_stepper_frame___dAF11 ul li.onramp-offramp_style-module__completed___WogRr:after{animation:onramp-offramp_style-module__wipe-in-right___kPEvX 2.5s cubic-bezier(.25,1,.3,1) both;background-color:#32cd32}.onramp-offramp_style-module__flow_stepper_frame___dAF11 ul li.onramp-offramp_style-module__hash_completed___DEMpP:after{animation:onramp-offramp_style-module__wipe-in-right___kPEvX 2.5s cubic-bezier(.25,1,.3,1) both;background-color:none}.onramp-offramp_style-module__flow_stepper_frame___dAF11 ul li.onramp-offramp_style-module__hash_completed___DEMpP .onramp-offramp_style-module__flow_stepper_process___cuKv6{background-color:#32cd32}.onramp-offramp_style-module__flow_stepper_frame___dAF11 ul li.onramp-offramp_style-module__hash_failed___-Wjyl:after{animation:onramp-offramp_style-module__wipe-in-right___kPEvX 2.5s cubic-bezier(.25,1,.3,1) both;background-color:none}.onramp-offramp_style-module__flow_stepper_frame___dAF11 ul li.onramp-offramp_style-module__hash_failed___-Wjyl .onramp-offramp_style-module__flow_stepper_process___cuKv6{background-color:#e70f0f}.onramp-offramp_style-module__flow_stepper_frame___dAF11 ul li.onramp-offramp_style-module__hash_failed_1___rjirs:after{animation:onramp-offramp_style-module__wipe-in-right___kPEvX 2.5s cubic-bezier(.25,1,.3,1) both;background-color:#e70f0f}.onramp-offramp_style-module__flow_stepper_frame___dAF11 ul li.onramp-offramp_style-module__completed___WogRr .onramp-offramp_style-module__flow_stepper_process___cuKv6,.onramp-offramp_style-module__flow_stepper_frame___dAF11 ul li.onramp-offramp_style-module__hash_failed_1___rjirs .onramp-offramp_style-module__flow_stepper_process___cuKv6{background-color:#32cd32}.onramp-offramp_style-module__flow_stepper_frame___dAF11 ul li.onramp-offramp_style-module__failed___xIAPu .onramp-offramp_style-module__flow_stepper_process___cuKv6{background-color:#e70f0f}.onramp-offramp_style-module__flow_stepper_frame___dAF11 ul li:last-child .onramp-offramp_style-module__flow_stepper_card___EDOb9{align-items:flex-end}.onramp-offramp_style-module__flow_stepper_frame___dAF11 ul li:first-child .onramp-offramp_style-module__flow_stepper_card___EDOb9{align-items:flex-start}.onramp-offramp_style-module__flow_stepper_frame___dAF11 ul li:last-child .onramp-offramp_style-module__flow_stepper_card___EDOb9 span{text-align:end}.onramp-offramp_style-module__flow_stepper_frame___dAF11 ul.onramp-offramp_style-module__completed___WogRr:after{animation:onramp-offramp_style-module__wipe-in-right___kPEvX 2.5s cubic-bezier(.25,1,.3,1) both;background-color:#32cd32}.onramp-offramp_style-module__flow_stepper_frame___dAF11 ul.onramp-offramp_style-module__failed___xIAPu:after{animation:onramp-offramp_style-module__wipe-in-right___kPEvX 2.5s cubic-bezier(.25,1,.3,1) both;background-color:#e70f0f}.onramp-offramp_style-module__flow_stepper_card___EDOb9{align-items:center;border-radius:10px;color:var(--quaternary-sdk-color);display:flex;flex-direction:column;font-size:.65em;font-weight:600;gap:1em;justify-content:center}.onramp-offramp_style-module__flow_stepper_card___EDOb9.onramp-offramp_style-module__completed___WogRr{color:var(--dark-sdk-color)}.onramp-offramp_style-module__flow_stepper_card___EDOb9 .onramp-offramp_style-module__spinner-loader___-USKj{border:4px solid #6e6a6a29!important;margin:0!important}.onramp-offramp_style-module__flow_stepper_process___cuKv6{align-items:center;background-color:#fff;border-radius:50%;display:flex;height:2.5em;justify-content:center;padding:3px;width:2.5em}.onramp-offramp_style-module__dark_stepper___oRsBt .onramp-offramp_style-module__flow_stepper_process___cuKv6{background-color:#efefef}.onramp-offramp_style-module__flow_stepper_card___EDOb9.onramp-offramp_style-module__completed___WogRr .onramp-offramp_style-module__flow_stepper_process___cuKv6{background-color:#32cd32}.onramp-offramp_style-module__flow_stepper_card___EDOb9.onramp-offramp_style-module__failed___xIAPu .onramp-offramp_style-module__flow_stepper_process___cuKv6{background-color:#ea0909}.onramp-offramp_style-module__flow_stepper_success___-B7w8.onramp-offramp_style-module__completed___WogRr .onramp-offramp_style-module__flow_stepper_process___cuKv6{background-color:#32cd32}.onramp-offramp_style-module__flow_stepper_success___-B7w8{align-items:center;border-radius:10px;color:var(--quaternary-sdk-color);display:flex;flex-direction:column;font-size:.75em;font-weight:600;gap:1em;justify-content:center;padding:1em}.onramp-offramp_style-module__flow_stepper_success___-B7w8.onramp-offramp_style-module__completed___WogRr{color:var(--dark-sdk-color)}.onramp-offramp_style-module__flow_stepper_bar___b9FDq{background-color:#efefef;border-radius:50%;height:1.4em;width:1.4em}.onramp-offramp_style-module__flow_loader___ybARp{animation:onramp-offramp_style-module__l13___mEfhi 1s linear infinite;aspect-ratio:1;background:radial-gradient(farthest-side,#ffa516 94%,#0000) top/4.5px 4.5px no-repeat,conic-gradient(#0000 30%,#ffa516);border-radius:50%;-webkit-mask:radial-gradient(farthest-side,#0000 calc(100% - 4.5px),#000 0);width:100%}@keyframes onramp-offramp_style-module__l13___mEfhi{to{transform:rotate(1turn)}}@keyframes onramp-offramp_style-module__wipe-in-right___kPEvX{0%{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}.onramp-offramp_style-module__spinnerLoader___yjCZk{animation:onramp-offramp_style-module__spinnerLoadingAnimation___Otpld 1s linear infinite;aspect-ratio:1;background:radial-gradient(farthest-side,#000 94%,#0000) top/4px 4px no-repeat,conic-gradient(#0000 30%,#000);border-radius:50%;-webkit-mask:radial-gradient(farthest-side,#0000 calc(100% - 4px),#000 0);width:20px}@keyframes onramp-offramp_style-module__spinnerLoadingAnimation___Otpld{to{transform:rotate(1turn)}}.onramp-offramp_style-module__card_form_container___m8uAk{align-items:center;display:flex;justify-content:center;padding:2rem}.onramp-offramp_style-module__card_form___m2ame{max-width:400px;width:100%}.onramp-offramp_style-module__card_form___m2ame h2{margin-bottom:1.5rem;text-align:center}.onramp-offramp_style-module__card_form___m2ame label{display:block;font-weight:500;margin-bottom:.3rem}.onramp-offramp_style-module__card_form___m2ame input{border:1px solid #aaa;border-radius:6px;font-size:1rem;margin-bottom:.2rem;padding:.5rem;width:100%}.onramp-offramp_style-module__card_row___LpJN7{display:flex;gap:1rem}.onramp-offramp_style-module__card_row___LpJN7>div{flex:1}.onramp-offramp_style-module__result_step_container___dSRKj{background:transparent;border:1px solid #ccc;border-radius:10px;margin:auto;max-width:400px;padding:2rem;text-align:center}.onramp-offramp_style-module__result_step_container___dSRKj h2{margin-bottom:1.5rem}.onramp-offramp_style-module__result_options___6UDFB{display:flex;gap:1rem;justify-content:space-between;margin-bottom:1.5rem}.onramp-offramp_style-module__result_option___0Tvng{border:1px solid var(--dark-sdk-color);border-radius:6px;cursor:pointer;font-size:1.1rem;padding:1rem;text-align:center;transition:all .2s ease-in-out}.onramp-offramp_style-module__success___uT5AR{background-color:#32cd32;border-color:#32cd32;box-shadow:0 0 10px rgba(0,0,0,.3);color:#fff;font-weight:700;transform:scale(1.1)}.onramp-offramp_style-module__failure___0BXEY{background-color:#dc3545;border-color:#dc3545;box-shadow:0 0 10px rgba(0,0,0,.3);color:#fff;font-weight:700;transform:scale(1.1)}.onramp-offramp_style-module__result_option___0Tvng:hover{border-color:var(--primay-sdk-color)}.onramp-offramp_style-module__sell_admin_crypto_result_options___0wnsX{align-items:center;display:flex;gap:1rem;margin-bottom:1.5rem}.onramp-offramp_style-module__sell_admin_crypto_result_option___-9IU-{border:1px solid var(--dark-sdk-color);border-radius:.5rem;cursor:pointer;font-size:1rem;padding:.5rem 1rem;text-align:center;transition:all .2s ease-in-out}.onramp-offramp_style-module__sell_admin_crypto_success___iLCJP{background-color:#32cd32;border-color:#32cd32;box-shadow:0 0 10px rgba(0,0,0,.3);color:#fff;font-weight:700;transform:scale(1.1)}.onramp-offramp_style-module__sell_admin_crypto_failure___zApAJ{background-color:#dc3545;border-color:#dc3545;box-shadow:0 0 10px rgba(0,0,0,.3);color:#fff;font-weight:700;transform:scale(1.1)}.onramp-offramp_style-module__hidden_radio___uuzNO{display:none}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlLm1vZHVsZS5jc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsMEdBQTBHLENBRTFHLGtCQUNFLGtCQUNGLENBRUEsZUFDRSxrQkFDRixDQUVBLGNBQ0Usa0JBQ0YsQ0FFQSxhQUNFLGtCQUNGLENBRUEsVUFDRSxrQkFDRixDQUVBLE1BQ0UsMEJBQTJCLENBQzNCLGtCQUFzQixDQUN0QixxQkFBc0IsQ0FDdEIsOEJBQStCLENBQy9CLHdCQUF5QixDQUN6QixzQkFBMEIsQ0FDMUIscUJBQXNCLENBRXRCLG9CQUNGLENBSUEsS0FDRSxrQ0FBbUMsQ0FDbkMsaUNBQWtDLENBWWxDLDZCQUE4QixDQUM5Qix5QkFBMEIsQ0FDMUIsMEJBQTJCLENBQzNCLHFCQUFzQixDQVJ0QixtQ0FBb0MsQ0FJcEMscUJBQXNCLENBTHRCLDJCQUE0QixDQUQ1QixtQ0FBdUMsQ0FJdkMsd0JBQTBCLENBQzFCLG1CQUFxQixDQVByQixpQkFBa0IsQ0FDbEIsaUJBWUYsQ0FHQSxFQUVFLFFBQVMsQ0FEVCxTQUVGLENBRUEsaUJBR0UscUJBQ0YsQ0FFQSxTQUVFLGNBQ0YsQ0FFQSwrQkFVRSxtQ0FDRixDQUVBLGdCQUVFLGtCQUFtQixDQURuQixVQUVGLENBRUEsaURBQ0UsdURBQXlELENBQ3pELDJDQUE2QyxDQUM3QyxtQ0FBcUMsQ0FDckMsa0NBQW9DLENBb0JwQyxrQkFBbUIsQ0FuQm5CLDZCQUE4QixDQUU5QiwrQkFBZ0MsQ0FXaEMsMEJBQTJCLENBQzNCLHVCQUF3QixDQUN4QixxQkFBc0IsQ0FDdEIsc0JBQXVCLENBQ3ZCL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SB7XG4gIGJhY2tncm91bmQtY29sb3I6ICNkYzM1NDU7XG4gIGNvbG9yOiB3aGl0ZTtcbiAgYm9yZGVyLWNvbG9yOiAjZGMzNTQ1O1xuICBmb250LXdlaWdodDogYm9sZDtcbiAgdHJhbnNmb3JtOiBzY2FsZSgxLjEpO1xuICBib3gtc2hhZG93OiAwcHggMHB4IDEwcHggcmdiYSgwLCAwLCAwLCAwLjMpO1xufVxuXG4uaGlkZGVuX3JhZGlvIHtcbiAgZGlzcGxheTogbm9uZTtcbn1cbiJdfQ== */');var m=function(){return m=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},m.apply(this,arguments)};function b(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){e.done?o(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())}))}function g(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function _(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function y(e){var t=function(e,t){if("object"!=v(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==v(t)?t:t+""}function I(e,t,n){return(t=y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function C(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){I(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function G(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function B(e,t){if(e){if("string"==typeof e)return G(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?G(e,t):void 0}}function w(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||B(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}"function"==typeof SuppressedError&&SuppressedError;var F=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function N(){return N=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},N.apply(null,arguments)}function X(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,y(r.key),r)}}function Q(e,t){return Q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Q(e,t)}function R(e){return R=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},R(e)}function Z(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Z=function(){return!!e})()}function k(e,t){if(t&&("object"==v(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function W(e){return function(e){if(Array.isArray(e))return G(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||B(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var L=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),E="-ms-",U="-moz-",D="-webkit-",V="comm",S="rule",O="decl",Y="@keyframes",M=Math.abs,j=String.fromCharCode,T=Object.assign;function H(e){return e.trim()}function J(e,t,n){return e.replace(t,n)}function z(e,t){return e.indexOf(t)}function P(e,t){return 0|e.charCodeAt(t)}function K(e,t,n){return e.slice(t,n)}function q(e){return e.length}function $(e){return e.length}function ee(e,t){return t.push(e),e}var te=1,ne=1,re=0,oe=0,ie=0,ae="";function se(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:te,column:ne,length:a,return:""}}function le(e,t){return T(se("",null,null,"",null,null,0),e,{length:-e.length},t)}function ce(){return ie=oe>0?P(ae,--oe):0,ne--,10===ie&&(ne=1,te--),ie}function ue(){return ie=oe<re?P(ae,oe++):0,ne++,10===ie&&(ne=1,te++),ie}function de(){return P(ae,oe)}function pe(){return oe}function fe(e,t){return K(ae,e,t)}function he(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function me(e){return te=ne=1,re=q(ae=e),oe=0,[]}function be(e){return ae="",e}function ge(e){return H(fe(oe-1,ye(91===e?e+2:40===e?e+1:e)))}function _e(e){for(;(ie=de())&&ie<33;)ue();return he(e)>2||he(ie)>3?"":" "}function ve(e,t){for(;--t&&ue()&&!(ie<48||ie>102||ie>57&&ie<65||ie>70&&ie<97););return fe(e,pe()+(t<6&&32==de()&&32==ue()))}function ye(e){for(;ue();)switch(ie){case e:return oe;case 34:case 39:34!==e&&39!==e&&ye(ie);break;case 40:41===e&&ye(e);break;case 92:ue()}return oe}function Ie(e,t){for(;ue()&&e+ie!==57&&(e+ie!==84||47!==de()););return"/*"+fe(t,oe-1)+"*"+j(47===e?e:ue())}function xe(e){for(;!he(de());)ue();return fe(e,oe)}function Ce(e){return be(Ge("",null,null,null,[""],e=me(e),0,[0],e))}function Ge(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,h=0,m=1,b=1,g=1,_=0,v="",y=o,I=i,x=r,C=v;b;)switch(h=_,_=ue()){case 40:if(108!=h&&58==P(C,d-1)){-1!=z(C+=J(ge(_),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:C+=ge(_);break;case 9:case 10:case 13:case 32:C+=_e(h);break;case 92:C+=ve(pe()-1,7);continue;case 47:switch(de()){case 42:case 47:ee(we(Ie(ue(),pe()),t,n),l);break;default:C+="/"}break;case 123*m:s[c++]=q(C)*g;case 125*m:case 59:case 0:switch(_){case 0:case 125:b=0;case 59+u:-1==g&&(C=J(C,/\f/g,"")),f>0&&q(C)-d&&ee(f>32?Ae(C+";",r,n,d-1):Ae(J(C," ","")+";",r,n,d-2),l);break;case 59:C+=";";default:if(ee(x=Be(C,t,n,c,u,o,s,v,y=[],I=[],d),i),123===_)if(0===u)Ge(C,t,x,x,y,i,d,s,I);else switch(99===p&&110===P(C,3)?100:p){case 100:case 108:case 109:case 115:Ge(e,x,x,r&&ee(Be(e,x,x,0,0,o,s,v,o,y=[],d),I),o,I,d,s,r?y:I);break;default:Ge(C,x,x,x,[""],I,0,s,I)}}c=u=f=0,m=g=1,v=C="",d=a;break;case 58:d=1+q(C),f=h;default:if(m<1)if(123==_)--m;else if(125==_&&0==m++&&125==ce())continue;switch(C+=j(_),_*m){case 38:g=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(q(C)-1)*g,g=1;break;case 64:45===de()&&(C+=ge(ue())),p=de(),u=d=q(v=C+=xe(pe())),_++;break;case 45:45===h&&2==q(C)&&(m=0)}}return i}function Be(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,p=0===o?i:[""],f=$(p),h=0,m=0,b=0;h<r;++h)for(var g=0,_=K(e,d+1,d=M(m=a[h])),v=e;g<f;++g)(v=H(m>0?p[g]+" "+_:J(_,/&\f/g,p[g])))&&(l[b++]=v);return se(e,t,n,0===o?S:s,l,c,u)}function we(e,t,n){return se(e,t,n,V,j(ie),K(e,2,-2),0)}function Ae(e,t,n,r){return se(e,t,n,O,K(e,0,r),K(e,r+1,-1),r)}function Fe(e,t){for(var n="",r=$(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Ne(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case O:return e.return=e.return||e.value;case V:return"";case Y:return e.return=e.value+"{"+Fe(e.children,r)+"}";case S:e.value=e.props.join(",")}return q(n=Fe(e.children,r))?e.return=e.value+"{"+n+"}":""}function Xe(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Qe=function(e,t,n){for(var r=0,o=0;r=o,o=de(),38===r&&12===o&&(t[n]=1),!he(o);)ue();return fe(e,oe)},Re=function(e,t){return be(function(e,t){var n=-1,r=44;do{switch(he(r)){case 0:38===r&&12===de()&&(t[n]=1),e[n]+=Qe(oe-1,t,n);break;case 2:e[n]+=ge(r);break;case 4:if(44===r){e[++n]=58===de()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=j(r)}}while(r=ue());return e}(me(e),t))},Ze=new WeakMap,ke=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Ze.get(n))&&!r){Ze.set(e,!0);for(var o=[],i=Re(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},We=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Le(e,t){switch(function(e,t){return 45^P(e,0)?(((t<<2^P(e,0))<<2^P(e,1))<<2^P(e,2))<<2^P(e,3):0}(e,t)){case 5103:return D+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return D+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return D+e+U+e+E+e+e;case 6828:case 4268:return D+e+E+e+e;case 6165:return D+e+E+"flex-"+e+e;case 5187:return D+e+J(e,/(\w+).+(:[^]+)/,D+"box-$1$2"+E+"flex-$1$2")+e;case 5443:return D+e+E+"flex-item-"+J(e,/flex-|-self/,"")+e;case 4675:return D+e+E+"flex-line-pack"+J(e,/align-content|flex-|-self/,"")+e;case 5548:return D+e+E+J(e,"shrink","negative")+e;case 5292:return D+e+E+J(e,"basis","preferred-size")+e;case 6060:return D+"box-"+J(e,"-grow","")+D+e+E+J(e,"grow","positive")+e;case 4554:return D+J(e,/([^-])(transform)/g,"$1"+D+"$2")+e;case 6187:return J(J(J(e,/(zoom-|grab)/,D+"$1"),/(image-set)/,D+"$1"),e,"")+e;case 5495:case 3959:return J(e,/(image-set\([^]*)/,D+"$1$`$1");case 4968:return J(J(e,/(.+:)(flex-)?(.*)/,D+"box-pack:$3"+E+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+D+e+e;case 4095:case 3583:case 4068:case 2532:return J(e,/(.+)-inline(.+)/,D+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(q(e)-1-t>6)switch(P(e,t+1)){case 109:if(45!==P(e,t+4))break;case 102:return J(e,/(.+:)(.+)-([^]+)/,"$1"+D+"$2-$3$1"+U+(108==P(e,t+3)?"$3":"$2-$3"))+e;case 115:return~z(e,"stretch")?Le(J(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==P(e,t+1))break;case 6444:switch(P(e,q(e)-3-(~z(e,"!important")&&10))){case 107:return J(e,":",":"+D)+e;case 101:return J(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+D+(45===P(e,14)?"inline-":"")+"box$3$1"+D+"$2$3$1"+E+"$2box$3")+e}break;case 5936:switch(P(e,t+11)){case 114:return D+e+E+J(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return D+e+E+J(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return D+e+E+J(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return D+e+E+e+e}return e}var Ee,Ue=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case O:e.return=Le(e.value,e.length);break;case Y:return Fe([le(e,{value:J(e.value,"@","@"+D)})],r);case S:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Fe([le(e,{props:[J(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Fe([le(e,{props:[J(t,/:(plac\w+)/,":"+D+"input-$1")]}),le(e,{props:[J(t,/:(plac\w+)/,":-moz-$1")]}),le(e,{props:[J(t,/:(plac\w+)/,E+"input-$1")]})],r)}return""}))}}],De=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,i=e.stylisPlugins||Ue,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var l,c,u=[Ne,(c=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],d=function(e){var t=$(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}([ke,We].concat(i,u));o=function(e,t,n,r){l=n,function(e){Fe(Ce(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new L({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return p.sheet.hydrate(s),p},Ve={exports:{}},Se={};var Oe,Ye,Me,je,Te={};
11
11
  /** @license React v16.13.1
12
12
  * react-is.development.js
13
13
  *
@@ -15,19 +15,19 @@
15
15
  *
16
16
  * This source code is licensed under the MIT license found in the
17
17
  * LICENSE file in the root directory of this source tree.
18
- */function He(){return Me||(Me=1,"production"===process.env.NODE_ENV?De.exports=function(){if(Ee)return Se;Ee=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function _(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case l:case c:case r:case i:case o:case d:return e;default:switch(e=e&&e.$$typeof){case a:case u:case h:case p:case s:return e;default:return f}}case n:return f}}}function y(e){return _(e)===c}return Se.AsyncMode=l,Se.ConcurrentMode=c,Se.ContextConsumer=a,Se.ContextProvider=s,Se.Element=t,Se.ForwardRef=u,Se.Fragment=r,Se.Lazy=h,Se.Memo=p,Se.Portal=n,Se.Profiler=i,Se.StrictMode=o,Se.Suspense=d,Se.isAsyncMode=function(e){return y(e)||_(e)===l},Se.isConcurrentMode=y,Se.isContextConsumer=function(e){return _(e)===a},Se.isContextProvider=function(e){return _(e)===s},Se.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Se.isForwardRef=function(e){return _(e)===u},Se.isFragment=function(e){return _(e)===r},Se.isLazy=function(e){return _(e)===h},Se.isMemo=function(e){return _(e)===p},Se.isPortal=function(e){return _(e)===n},Se.isProfiler=function(e){return _(e)===i},Se.isStrictMode=function(e){return _(e)===o},Se.isSuspense=function(e){return _(e)===d},Se.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===s||e.$$typeof===a||e.$$typeof===u||e.$$typeof===b||e.$$typeof===g||e.$$typeof===v||e.$$typeof===m)},Se.typeOf=_,Se}():De.exports=(Oe||(Oe=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function _(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:var m=e.type;switch(m){case l:case c:case r:case i:case o:case d:return m;default:var b=m&&m.$$typeof;switch(b){case a:case u:case h:case p:case s:return b;default:return f}}case n:return f}}}var y=l,I=c,x=a,C=s,w=t,G=u,B=r,A=h,F=p,N=n,X=i,R=o,Z=d,Q=!1;function k(e){return _(e)===c}Te.AsyncMode=y,Te.ConcurrentMode=I,Te.ContextConsumer=x,Te.ContextProvider=C,Te.Element=w,Te.ForwardRef=G,Te.Fragment=B,Te.Lazy=A,Te.Memo=F,Te.Portal=N,Te.Profiler=X,Te.StrictMode=R,Te.Suspense=Z,Te.isAsyncMode=function(e){return Q||(Q=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),k(e)||_(e)===l},Te.isConcurrentMode=k,Te.isContextConsumer=function(e){return _(e)===a},Te.isContextProvider=function(e){return _(e)===s},Te.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Te.isForwardRef=function(e){return _(e)===u},Te.isFragment=function(e){return _(e)===r},Te.isLazy=function(e){return _(e)===h},Te.isMemo=function(e){return _(e)===p},Te.isPortal=function(e){return _(e)===n},Te.isProfiler=function(e){return _(e)===i},Te.isStrictMode=function(e){return _(e)===o},Te.isSuspense=function(e){return _(e)===d},Te.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===s||e.$$typeof===a||e.$$typeof===u||e.$$typeof===b||e.$$typeof===g||e.$$typeof===v||e.$$typeof===m)},Te.typeOf=_}()),Te)),De.exports}!function(){if(je)return Ye;je=1;var e=He(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function i(n){return e.isMemo(n)?r:o[n.$$typeof]||t}o[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[e.Memo]=r;var s=Object.defineProperty,a=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,d=Object.prototype;Ye=function e(t,r,o){if("string"!=typeof r){if(d){var f=u(r);f&&f!==d&&e(t,f,o)}var p=a(r);l&&(p=p.concat(l(r)));for(var h=i(t),m=i(r),b=0;b<p.length;++b){var g=p[b];if(!(n[g]||o&&o[g]||m&&m[g]||h&&h[g])){var v=c(r,g);try{s(t,g,v)}catch(e){}}}}return t}}();var Je=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)};var ze={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Pe=/[A-Z]|^ms/g,Ke=/_EMO_([^_]+?)_([^]*?)_EMO_/g,qe=function(e){return 45===e.charCodeAt(1)},$e=function(e){return null!=e&&"boolean"!=typeof e},et=Xe((function(e){return qe(e)?e:e.replace(Pe,"-$&").toLowerCase()})),tt=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Ke,(function(e,t,n){return rt={name:t,styles:n,next:rt},t}))}return 1===ze[e]||qe(e)||"number"!=typeof t||0===t?t:t+"px"};function nt(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return rt={name:o.name,styles:o.styles,next:rt},o.name;var i=n;if(void 0!==i.styles){var s=i.next;if(void 0!==s)for(;void 0!==s;)rt={name:s.name,styles:s.styles,next:rt},s=s.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=nt(e,t,n[o])+";";else for(var i in n){var s=n[i];if("object"!=typeof s){var a=s;$e(a)&&(r+=et(i)+":"+tt(i,a)+";")}else if(Array.isArray(s)&&"string"==typeof s[0]&&null==t)for(var l=0;l<s.length;l++)$e(s[l])&&(r+=et(i)+":"+tt(i,s[l])+";");else{var c=nt(e,t,s);switch(i){case"animation":case"animationName":r+=et(i)+":"+c+";";break;default:r+=i+"{"+c+"}"}}}return r}(e,t,n);case"function":if(void 0!==e){var a=rt,l=n(e);return rt=a,nt(e,t,l)}}return n}var rt,ot=/label:\s*([^\s;{]+)\s*(;|$)/g;function it(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";rt=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=nt(n,t,i)):o+=i[0];for(var s=1;s<e.length;s++){if(o+=nt(n,t,e[s]),r)o+=i[s]}ot.lastIndex=0;for(var a,l="";null!==(a=ot.exec(o));)l+="-"+a[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:rt}}var st=!!r.useInsertionEffect&&r.useInsertionEffect||function(e){return e()},at=r.createContext("undefined"!=typeof HTMLElement?Ue({key:"css"}):null);at.Provider;var lt,ct,ut=function(t){return e.forwardRef((function(n,r){var o=e.useContext(at);return t(n,o,r)}))},dt=r.createContext({}),ft={}.hasOwnProperty,pt="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ht=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Je(t,n,r),st((function(){return function(e,t,n){Je(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}(t,n,r)})),null},mt=ut((function(e,t,n){var o=e.css;"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var i=e[pt],s=[o],a="";"string"==typeof e.className?a=function(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}(t.registered,s,e.className):null!=e.className&&(a=e.className+" ");var l=it(s,void 0,r.useContext(dt));a+=t.key+"-"+l.name;var c={};for(var u in e)ft.call(e,u)&&"css"!==u&&u!==pt&&(c[u]=e[u]);return c.className=a,n&&(c.ref=n),r.createElement(r.Fragment,null,r.createElement(ht,{cache:t,serialized:l,isStringTag:"string"==typeof i}),r.createElement(i,c))})),bt=mt,gt=function(e,t){var n=arguments;if(null==t||!ft.call(t,"css"))return r.createElement.apply(void 0,n);var o=n.length,i=new Array(o);i[0]=bt,i[1]=function(e,t){var n={};for(var r in t)ft.call(t,r)&&(n[r]=t[r]);return n[pt]=e,n}(e,t);for(var s=2;s<o;s++)i[s]=n[s];return r.createElement.apply(null,i)};function vt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return it(t)}lt=gt||(gt={}),ct||(ct=lt.JSX||(lt.JSX={}));const _t=Math.min,yt=Math.max,It=Math.round,xt=Math.floor,Ct=e=>({x:e,y:e});function wt(){return"undefined"!=typeof window}function Gt(e){return Ft(e)?(e.nodeName||"").toLowerCase():"#document"}function Bt(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function At(e){var t;return null==(t=(Ft(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Ft(e){return!!wt()&&(e instanceof Node||e instanceof Bt(e).Node)}function Nt(e){return!!wt()&&(e instanceof HTMLElement||e instanceof Bt(e).HTMLElement)}function Xt(e){return!(!wt()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Bt(e).ShadowRoot)}function Rt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Zt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Zt(e){return Bt(e).getComputedStyle(e)}function Qt(e){const t=function(e){if("html"===Gt(e))return e;const t=e.assignedSlot||e.parentNode||Xt(e)&&e.host||At(e);return Xt(t)?t.host:t}(e);return function(e){return["html","body","#document"].includes(Gt(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:Nt(t)&&Rt(t)?t:Qt(t)}function kt(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Qt(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),s=Bt(o);if(i){const e=Lt(s);return t.concat(s,s.visualViewport||[],Rt(o)?o:[],e&&n?kt(e):[])}return t.concat(o,kt(o,[],n))}function Lt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Wt(e){return function(e){return!!wt()&&(e instanceof Element||e instanceof Bt(e).Element)}(e)?e:e.contextElement}function Et(e){const t=Wt(e);if(!Nt(t))return Ct(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=function(e){const t=Zt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Nt(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=It(n)!==i||It(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}(t);let s=(i?It(n.width):n.width)/r,a=(i?It(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}function Vt(e,t,n,r){void 0===t&&(t=!1);const o=e.getBoundingClientRect(),i=Wt(e);let s=Ct(1);t&&(s=Et(e));const a=Ct(0);let l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,u=o.width/s.x,d=o.height/s.y;if(i){const e=r;let t=Bt(i),n=Lt(t);for(;n&&r&&e!==t;){const e=Et(n),r=n.getBoundingClientRect(),o=Zt(n),i=r.left+(n.clientLeft+parseFloat(o.paddingLeft))*e.x,s=r.top+(n.clientTop+parseFloat(o.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=s,t=Bt(n),n=Lt(t)}}return function(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}({width:u,height:d,x:l,y:c})}function Ut(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Dt(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=Wt(e),u=o||i?[...c?kt(c):[],...kt(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=c&&a?function(e,t){let n,r=null;const o=At(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function s(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=c;if(a||t(),!f||!p)return;const h={rootMargin:-xt(d)+"px "+-xt(o.clientWidth-(u+f))+"px "+-xt(o.clientHeight-(d+p))+"px "+-xt(u)+"px",threshold:yt(0,_t(1,l))||1};let m=!0;function b(t){const r=t[0].intersectionRatio;if(r!==l){if(!m)return s();r?s(!1,r):n=setTimeout((()=>{s(!1,1e-7)}),1e3)}1!==r||Ut(c,e.getBoundingClientRect())||s(),m=!1}try{r=new IntersectionObserver(b,{...h,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(b,h)}r.observe(e)}(!0),i}(c,n):null;let f,p=-1,h=null;s&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),c&&!l&&h.observe(c),h.observe(t));let m=l?Vt(e):null;return l&&function t(){const r=Vt(e);m&&!Ut(m,r)&&n();m=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(f)}}var St=e.useLayoutEffect,Ot=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Mt=function(){};function Yt(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function jt(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=[].concat(r);if(t&&e)for(var s in t)t.hasOwnProperty(s)&&t[s]&&i.push("".concat(Yt(e,s)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var Tt=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===_(e)&&null!==e?[e]:[];var t},Ht=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,C({},A(e,Ot))},Jt=function(e,t,n){var r=e.cx,o=e.getStyles,i=e.getClassNames,s=e.className;return{css:o(t,e),className:r(null!=n?n:{},i(t,e),s)}};function zt(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Pt(e){return zt(e)?window.pageYOffset:e.scrollTop}function Kt(e,t){zt(e)?window.scrollTo(0,t):e.scrollTop=t}function qt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Mt,o=Pt(e),i=t-o,s=0;!function t(){var a,l=i*((a=(a=s+=10)/n-1)*a*a+1)+o;Kt(e,l),s<n?window.requestAnimationFrame(t):r(e)}()}function $t(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?Kt(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&Kt(e,Math.max(t.offsetTop-o,0))}function en(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var tn=!1,nn={get passive(){return tn=!0}},rn="undefined"!=typeof window?window:{};rn.addEventListener&&rn.removeEventListener&&(rn.addEventListener("p",Mt,nn),rn.removeEventListener("p",Mt,!1));var on=tn;function sn(e){return null!=e}function an(e,t,n){return e?t:n}var ln=["children","innerProps"],cn=["children","innerProps"];function un(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,s=e.isFixedPosition,a=e.controlHeight,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var u,d=l.getBoundingClientRect().height,f=n.getBoundingClientRect(),p=f.bottom,h=f.height,m=f.top,b=n.offsetParent.getBoundingClientRect().top,g=s?window.innerHeight:zt(u=l)?window.innerHeight:u.clientHeight,v=Pt(l),_=parseInt(getComputedStyle(n).marginBottom,10),y=parseInt(getComputedStyle(n).marginTop,10),I=b-y,x=g-m,C=I+v,w=d-v-m,G=p-g+v+_,B=v+m-y,A=160;switch(o){case"auto":case"bottom":if(x>=h)return{placement:"bottom",maxHeight:t};if(w>=h&&!s)return i&&qt(l,G,A),{placement:"bottom",maxHeight:t};if(!s&&w>=r||s&&x>=r)return i&&qt(l,G,A),{placement:"bottom",maxHeight:s?x-_:w-_};if("auto"===o||s){var F=t,N=s?I:C;return N>=r&&(F=Math.min(N-_-a,t)),{placement:"top",maxHeight:F}}if("bottom"===o)return i&&Kt(l,G),{placement:"bottom",maxHeight:t};break;case"top":if(I>=h)return{placement:"top",maxHeight:t};if(C>=h&&!s)return i&&qt(l,B,A),{placement:"top",maxHeight:t};if(!s&&C>=r||s&&I>=r){var X=t;return(!s&&C>=r||s&&I>=r)&&(X=s?I-y:C-y),i&&qt(l,B,A),{placement:"top",maxHeight:X}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return c}var dn,fn=function(e){return"auto"===e?"bottom":e},pn=e.createContext(null),hn=function(t){var n=t.children,r=t.minMenuHeight,o=t.maxMenuHeight,i=t.menuPlacement,s=t.menuPosition,a=t.menuShouldScrollIntoView,l=t.theme,c=(e.useContext(pn)||{}).setPortalPlacement,u=e.useRef(null),d=B(e.useState(o),2),f=d[0],p=d[1],h=B(e.useState(null),2),m=h[0],b=h[1],g=l.spacing.controlHeight;return St((function(){var e=u.current;if(e){var t="fixed"===s,n=un({maxHeight:o,menuEl:e,minHeight:r,placement:i,shouldScroll:a&&!t,isFixedPosition:t,controlHeight:g});p(n.maxHeight),b(n.placement),null==c||c(n.placement)}}),[o,i,s,a,r,c,g]),n({ref:u,placerProps:C(C({},t),{},{placement:m||fn(i),maxHeight:f})})},mn=function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return gt("div",N({},Jt(e,"menu",{menu:!0}),{ref:n},r),t)},bn=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return C({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},gn=bn,vn=bn,_n=["size"],yn=["innerProps","isRtl","size"];var In,xn,Cn="production"===process.env.NODE_ENV?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6Z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wIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},wn=function(e){var t=e.size,n=A(e,_n);return gt("svg",N({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Cn},n))},Gn=function(e){return gt(wn,N({size:20},e),gt("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Bn=function(e){return gt(wn,N({size:20},e),gt("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},An=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return C({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*o,":hover":{color:n?i.neutral80:i.neutral40}})},Fn=An,Nn=An,Xn=function(){var e=vt.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(dn||(In=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],xn||(xn=In.slice(0)),dn=Object.freeze(Object.defineProperties(In,{raw:{value:Object.freeze(xn)}})))),Rn=function(e){var t=e.delay,n=e.offset;return gt("span",{css:vt({animation:"".concat(Xn," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"production"===process.env.NODE_ENV?"":";label:LoadingDot;","production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJ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iAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},Zn=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,i=e.innerProps,s=e.menuIsOpen;return gt("div",N({ref:o},Jt(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":s}),i,{"aria-disabled":n||void 0}),t)},Qn=["data"],kn=function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,i=e.Heading,s=e.headingProps,a=e.innerProps,l=e.label,c=e.theme,u=e.selectProps;return gt("div",N({},Jt(e,"group",{group:!0}),a),gt(i,N({},s,{selectProps:u,theme:c,getStyles:r,getClassNames:o,cx:n}),l),gt("div",null,t))},Ln=["innerRef","isDisabled","isHidden","inputClassName"],Wn={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},En={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":C({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Wn)},Vn=function(e){return C({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Wn)},Un=function(e){var t=e.cx,n=e.value,r=Ht(e),o=r.innerRef,i=r.isDisabled,s=r.isHidden,a=r.inputClassName,l=A(r,Ln);return gt("div",N({},Jt(e,"input",{"input-container":!0}),{"data-value":n||""}),gt("input",N({className:t({input:!0},a),ref:o,style:Vn(s),disabled:i},l)))},Dn=function(e){var t=e.children,n=e.innerProps;return gt("div",n,t)};var Sn=function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,i=e.isDisabled,s=e.removeProps,a=e.selectProps,l=n.Container,c=n.Label,u=n.Remove;return gt(l,{data:r,innerProps:C(C({},Jt(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:a},gt(c,{data:r,innerProps:C({},Jt(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:a},t),gt(u,{data:r,innerProps:C(C({},Jt(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},s),selectProps:a}))},On={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return gt("div",N({},Jt(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||gt(Gn,null))},Control:Zn,DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return gt("div",N({},Jt(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||gt(Bn,null))},DownChevron:Bn,CrossIcon:Gn,Group:kn,GroupHeading:function(e){var t=Ht(e);t.data;var n=A(t,Qn);return gt("div",N({},Jt(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return gt("div",N({},Jt(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return gt("span",N({},t,Jt(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:Un,LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=void 0===r?4:r,i=A(e,yn);return gt("div",N({},Jt(C(C({},i),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),gt(Rn,{delay:0,offset:n}),gt(Rn,{delay:160,offset:!0}),gt(Rn,{delay:320,offset:!n}))},Menu:mn,MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return gt("div",N({},Jt(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(n){var r=n.appendTo,o=n.children,i=n.controlElement,s=n.innerProps,a=n.menuPlacement,l=n.menuPosition,c=e.useRef(null),u=e.useRef(null),d=B(e.useState(fn(a)),2),f=d[0],p=d[1],h=e.useMemo((function(){return{setPortalPlacement:p}}),[]),m=B(e.useState(null),2),b=m[0],g=m[1],v=e.useCallback((function(){if(i){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(i),t="fixed"===l?0:window.pageYOffset,n=e[f]+t;n===(null==b?void 0:b.offset)&&e.left===(null==b?void 0:b.rect.left)&&e.width===(null==b?void 0:b.rect.width)||g({offset:n,rect:e})}}),[i,l,f,null==b?void 0:b.offset,null==b?void 0:b.rect.left,null==b?void 0:b.rect.width]);St((function(){v()}),[v]);var _=e.useCallback((function(){"function"==typeof u.current&&(u.current(),u.current=null),i&&c.current&&(u.current=Dt(i,c.current,v,{elementResize:"ResizeObserver"in window}))}),[i,v]);St((function(){_()}),[_]);var y=e.useCallback((function(e){c.current=e,_()}),[_]);if(!r&&"fixed"!==l||!b)return null;var I=gt("div",N({ref:y},Jt(C(C({},n),{},{offset:b.offset,position:l,rect:b.rect}),"menuPortal",{"menu-portal":!0}),s),o);return gt(pn.Provider,{value:h},r?t.createPortal(I,r):I)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,o=A(e,cn);return gt("div",N({},Jt(C(C({},o),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,o=A(e,ln);return gt("div",N({},Jt(C(C({},o),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:Sn,MultiValueContainer:Dn,MultiValueLabel:Dn,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return gt("div",N({role:"button"},n),t||gt(Gn,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.innerRef,s=e.innerProps;return gt("div",N({},Jt(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:i,"aria-disabled":n},s),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return gt("div",N({},Jt(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return gt("div",N({},Jt(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return gt("div",N({},Jt(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,o=e.hasValue;return gt("div",N({},Jt(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},Mn=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Yn(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||Mn(r)&&Mn(o)))return!1;var r,o;return!0}for(var jn="production"===process.env.NODE_ENV?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},Tn=function(e){return gt("span",N({css:jn},e))},Hn={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,i=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,i=void 0===o?"":o,s=e.selectValue,a=e.isDisabled,l=e.isSelected,c=e.isAppleDevice,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&s)return"value ".concat(i," focused, ").concat(u(s,n),".");if("menu"===t&&c){var d=a?" disabled":"",f="".concat(l?" selected":"").concat(d);return"".concat(i).concat(f,", ").concat(u(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},Jn=function(t){var n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,i=t.focusableOptions,s=t.isFocused,a=t.selectValue,l=t.selectProps,c=t.id,u=t.isAppleDevice,d=l.ariaLiveMessages,f=l.getOptionLabel,p=l.inputValue,h=l.isMulti,m=l.isOptionDisabled,b=l.isSearchable,g=l.menuIsOpen,v=l.options,_=l.screenReaderStatus,y=l.tabSelectsValue,I=l.isLoading,x=l["aria-label"],w=l["aria-live"],G=e.useMemo((function(){return C(C({},Hn),d||{})}),[d]),B=e.useMemo((function(){var e,t="";if(n&&G.onChange){var r=n.option,o=n.options,i=n.removedValue,s=n.removedValues,l=n.value,c=i||r||(e=l,Array.isArray(e)?null:e),u=c?f(c):"",d=o||s||void 0,p=d?d.map(f):[],h=C({isDisabled:c&&m(c,a),label:u,labels:p},n);t=G.onChange(h)}return t}),[n,G,m,a,f]),A=e.useMemo((function(){var e="",t=r||o,n=!!(r&&a&&a.includes(r));if(t&&G.onFocus){var s={focused:t,label:f(t),isDisabled:m(t,a),isSelected:n,options:i,context:t===r?"menu":"value",selectValue:a,isAppleDevice:u};e=G.onFocus(s)}return e}),[r,o,f,m,G,i,a,u]),F=e.useMemo((function(){var e="";if(g&&v.length&&!I&&G.onFilter){var t=_({count:i.length});e=G.onFilter({inputValue:p,resultsMessage:t})}return e}),[i,p,g,G,v,_,I]),N="initial-input-focus"===(null==n?void 0:n.action),X=e.useMemo((function(){var e="";if(G.guidance){var t=o?"value":g?"menu":"input";e=G.guidance({"aria-label":x,context:t,isDisabled:r&&m(r,a),isMulti:h,isSearchable:b,tabSelectsValue:y,isInitialFocus:N})}return e}),[x,r,o,h,m,b,g,G,a,y,N]),R=gt(e.Fragment,null,gt("span",{id:"aria-selection"},B),gt("span",{id:"aria-focused"},A),gt("span",{id:"aria-results"},F),gt("span",{id:"aria-guidance"},X));return gt(e.Fragment,null,gt(Tn,{id:c},N&&R),gt(Tn,{"aria-live":w,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},s&&!N&&R))},zn=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Pn=new RegExp("["+zn.map((function(e){return e.letters})).join("")+"]","g"),Kn={},qn=0;qn<zn.length;qn++)for(var $n=zn[qn],er=0;er<$n.letters.length;er++)Kn[$n.letters[er]]=$n.base;var tr=function(e){return e.replace(Pn,(function(e){return Kn[e]}))},nr=function(e,t){void 0===t&&(t=Yn);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}(tr),rr=function(e){return e.replace(/^\s+|\s+$/g,"")},or=function(e){return"".concat(e.label," ").concat(e.value)},ir=["innerRef"];function sr(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Object.entries(e).filter((function(e){var t=B(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=B(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}(A(e,ir),"onExited","in","enter","exit","appear");return gt("input",N({ref:t},n,{css:vt({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"production"===process.env.NODE_ENV?"":";label:DummyInput;","production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIj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Vyc29yXG4gICAgICAgIGNhcmV0Q29sb3I6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgIGZvbnRTaXplOiAnaW5oZXJpdCcsXG4gICAgICAgIGdyaWRBcmVhOiAnMSAvIDEgLyAyIC8gMycsXG4gICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var ar=["boxSizing","height","overflow","paddingRight","position"],lr={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function cr(e){e.cancelable&&e.preventDefault()}function ur(e){e.stopPropagation()}function dr(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function fr(){return"ontouchstart"in window||navigator.maxTouchPoints}var pr=!("undefined"==typeof window||!window.document||!window.document.createElement),hr=0,mr={capture:!1,passive:!1};var br=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},gr="production"===process.env.NODE_ENV?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZ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2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}};function vr(t){var n=t.children,r=t.lockEnabled,o=t.captureEnabled,i=function(t){var n=t.isEnabled,r=t.onBottomArrive,o=t.onBottomLeave,i=t.onTopArrive,s=t.onTopLeave,a=e.useRef(!1),l=e.useRef(!1),c=e.useRef(0),u=e.useRef(null),d=e.useCallback((function(e,t){if(null!==u.current){var n=u.current,c=n.scrollTop,d=n.scrollHeight,f=n.clientHeight,p=u.current,h=t>0,m=d-f-c,b=!1;m>t&&a.current&&(o&&o(e),a.current=!1),h&&l.current&&(s&&s(e),l.current=!1),h&&t>m?(r&&!a.current&&r(e),p.scrollTop=d,b=!0,a.current=!0):!h&&-t>c&&(i&&!l.current&&i(e),p.scrollTop=0,b=!0,l.current=!0),b&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[r,o,i,s]),f=e.useCallback((function(e){d(e,e.deltaY)}),[d]),p=e.useCallback((function(e){c.current=e.changedTouches[0].clientY}),[]),h=e.useCallback((function(e){var t=c.current-e.changedTouches[0].clientY;d(e,t)}),[d]),m=e.useCallback((function(e){if(e){var t=!!on&&{passive:!1};e.addEventListener("wheel",f,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",h,t)}}),[h,p,f]),b=e.useCallback((function(e){e&&(e.removeEventListener("wheel",f,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",h,!1))}),[h,p,f]);return e.useEffect((function(){if(n){var e=u.current;return m(e),function(){b(e)}}}),[n,m,b]),function(e){u.current=e}}({isEnabled:void 0===o||o,onBottomArrive:t.onBottomArrive,onBottomLeave:t.onBottomLeave,onTopArrive:t.onTopArrive,onTopLeave:t.onTopLeave}),s=function(t){var n=t.isEnabled,r=t.accountForScrollbars,o=void 0===r||r,i=e.useRef({}),s=e.useRef(null),a=e.useCallback((function(e){if(pr){var t=document.body,n=t&&t.style;if(o&&ar.forEach((function(e){var t=n&&n[e];i.current[e]=t})),o&&hr<1){var r=parseInt(i.current.paddingRight,10)||0,s=document.body?document.body.clientWidth:0,a=window.innerWidth-s+r||0;Object.keys(lr).forEach((function(e){var t=lr[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(a,"px"))}t&&fr()&&(t.addEventListener("touchmove",cr,mr),e&&(e.addEventListener("touchstart",dr,mr),e.addEventListener("touchmove",ur,mr))),hr+=1}}),[o]),l=e.useCallback((function(e){if(pr){var t=document.body,n=t&&t.style;hr=Math.max(hr-1,0),o&&hr<1&&ar.forEach((function(e){var t=i.current[e];n&&(n[e]=t)})),t&&fr()&&(t.removeEventListener("touchmove",cr,mr),e&&(e.removeEventListener("touchstart",dr,mr),e.removeEventListener("touchmove",ur,mr)))}}),[o]);return e.useEffect((function(){if(n){var e=s.current;return a(e),function(){l(e)}}}),[n,a,l]),function(e){s.current=e}}({isEnabled:r});return gt(e.Fragment,null,r&&gt("div",{onClick:br,css:gr}),n((function(e){i(e),s(e)})))}var _r="production"===process.env.NODE_ENV?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},yr=function(e){var t=e.name,n=e.onFocus;return gt("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:_r,value:"",onChange:function(){}})};function Ir(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function xr(){return Ir(/^Mac/i)}function Cr(){return Ir(/^iPhone/i)||Ir(/^iPad/i)||xr()&&navigator.maxTouchPoints>1}var wr,Gr={clearIndicator:Nn,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.theme,i=o.colors,s=o.borderRadius;return C({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:r?i.primary:i.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:r?i.primary:i.neutral30}})},dropdownIndicator:Fn,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,o=n.spacing;return C({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return C({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,i=o.spacing,s=o.colors;return C(C({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},En),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:s.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,i=o.colors,s=o.spacing.baseUnit;return C({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*s})},loadingMessage:vn,menu:function(e,t){var n,r=e.placement,o=e.theme,i=o.borderRadius,s=o.spacing,a=o.colors;return C((I(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),I(n,"position","absolute"),I(n,"width","100%"),I(n,"zIndex",1),n),t?{}:{backgroundColor:a.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return C({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors;return C({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,i=e.cropWithEllipsis;return C({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors,s=e.isFocused;return C({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:s?i.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:gn,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.theme,s=i.spacing,a=i.colors;return C({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?a.primary:r?a.primary25:"transparent",color:n?a.neutral20:o?a.neutral0:"inherit",padding:"".concat(2*s.baseUnit,"px ").concat(3*s.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?a.primary:a.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return C({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,i=r.colors;return C({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,i=e.selectProps.controlShouldRenderValue;return C({alignItems:"center",display:r&&o&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},Br={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Ar={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:en(),captureMenuScroll:!en(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=C({ignoreCase:!0,ignoreAccents:!0,stringify:or,trim:!0,matchFrom:"any"},wr),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,s=n.trim,a=n.matchFrom,l=s?rr(t):t,c=s?rr(i(e)):i(e);return r&&(l=l.toLowerCase(),c=c.toLowerCase()),o&&(l=nr(l),c=tr(c)),"start"===a?c.substr(0,l.length)===l:c.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Fr(e,t,n,r){return{type:"option",data:t,isDisabled:Wr(e,t,n),isSelected:Er(e,t,n),label:kr(e,t),value:Lr(e,t),index:r}}function Nr(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return Fr(e,n,t,r)})).filter((function(t){return Zr(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=Fr(e,n,t,r);return Zr(e,i)?i:void 0})).filter(sn)}function Xr(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,L(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Rr(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,L(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function Zr(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,s=t.label,a=t.value;return(!Ur(e)||!i)&&Vr(e,{label:s,value:a,data:o},r)}var Qr=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},kr=function(e,t){return e.getOptionLabel(t)},Lr=function(e,t){return e.getOptionValue(t)};function Wr(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Er(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=Lr(e,t);return n.some((function(t){return Lr(e,t)===r}))}function Vr(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Ur=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},Dr=1,Sr=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&R(e,t)}(n,e.Component);var t=function(e){var t=Q();return function(){var n,r=Z(e);if(t){var o=Z(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return k(this,n)}}(n);function n(e){var r;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(r=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.isAppleDevice=xr()||Cr(),r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,o=n.onChange,i=n.name;t.name=i,r.ariaOnChange(e,t),o(e,t)},r.setValue=function(e,t,n){var o=r.props,i=o.closeMenuOnSelect,s=o.isMulti,a=o.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:a}),i&&(r.setState({inputIsHiddenAfterUpdate:!s}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,o=t.isMulti,i=t.name,s=r.state.selectValue,a=o&&r.isOptionSelected(e,s),l=r.isOptionDisabled(e,s);if(a){var c=r.getOptionValue(e);r.setValue(s.filter((function(e){return r.getOptionValue(e)!==c})),"deselect-option",e)}else{if(l)return void r.ariaOnChange(e,{action:"select-option",option:e,name:i});o?r.setValue([].concat(L(s),[e]),"select-option",e):r.setValue(e,"select-option")}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,o=r.getOptionValue(e),i=n.filter((function(e){return r.getOptionValue(e)!==o})),s=an(t,i,i[0]||null);r.onChange(s,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(an(r.props.isMulti,[],null),{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],o=t.slice(0,t.length-1),i=an(e,o,o[0]||null);n&&r.onChange(i,{action:"pop-value",removedValue:n})},r.getFocusedOptionId=function(e){return Qr(r.state.focusableOptionsWithIds,e)},r.getFocusableOptionsWithIds=function(){return Rr(Nr(r.props,r.state.selectValue),r.getElementId("option"))},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return jt.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return kr(r.props,e)},r.getOptionValue=function(e){return Lr(r.props,e)},r.getStyles=function(e,t){var n=r.props.unstyled,o=Gr[e](t,n);o.boxSizing="border-box";var i=r.props.styles[e];return i?i(o,t):o},r.getClassNames=function(e,t){var n,o;return null===(n=(o=r.props.classNames)[e])||void 0===n?void 0:n.call(o,t)},r.getElementId=function(e){return"".concat(r.state.instancePrefix,"-").concat(e)},r.getComponents=function(){return e=r.props,C(C({},On),e.components);var e},r.buildCategorizedOptions=function(){return Nr(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return Xr(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:C({value:e},t)})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},r.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||r.props.isDisabled)){var t=r.props,n=t.isMulti,o=t.menuIsOpen;r.focusInput(),o?(r.setState({inputIsHiddenAfterUpdate:!n}),r.onMenuClose()):r.openMenu("first"),e.preventDefault()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.preventDefault(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout((function(){return r.focusInput()})))},r.onScroll=function(e){"boolean"==typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&zt(e.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var o=Math.abs(n.clientX-r.initialTouchX),i=Math.abs(n.clientY-r.initialTouchY);r.userIsDragging=o>5||i>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=r.props.inputValue,n=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(n,{action:"input-change",prevInputValue:t}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){var t=r.props.inputValue;r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur",prevInputValue:t}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){if(!r.blockOptionHover&&r.state.focusedOption!==e){var t=r.getFocusableOptions().indexOf(e);r.setState({focusedOption:e,focusedOptionId:t>-1?r.getFocusedOptionId(e):null})}},r.shouldHideSelectedOptions=function(){return Ur(r.props)},r.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),r.focus()},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,o=t.backspaceRemovesValue,i=t.escapeClearsValue,s=t.inputValue,a=t.isClearable,l=t.isDisabled,c=t.menuIsOpen,u=t.onKeyDown,d=t.tabSelectsValue,f=t.openMenuOnFocus,p=r.state,h=p.focusedOption,m=p.focusedValue,b=p.selectValue;if(!(l||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||s)return;r.focusValue("previous");break;case"ArrowRight":if(!n||s)return;r.focusValue("next");break;case"Delete":case"Backspace":if(s)return;if(m)r.removeValue(m);else{if(!o)return;n?r.popValue():a&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!c||!d||!h||f&&r.isOptionSelected(h,b))return;r.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(c){if(!h)return;if(r.isComposing)return;r.selectOption(h);break}return;case"Escape":c?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:s}),r.onMenuClose()):a&&i&&r.clearValue();break;case" ":if(s)return;if(!c){r.openMenu("first");break}if(!h)return;r.selectOption(h);break;case"ArrowUp":c?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":c?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!c)return;r.focusOption("pageup");break;case"PageDown":if(!c)return;r.focusOption("pagedown");break;case"Home":if(!c)return;r.focusOption("first");break;case"End":if(!c)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.state.instancePrefix="react-select-"+(r.props.instanceId||++Dr),r.state.selectValue=Tt(e.value),e.menuIsOpen&&r.state.selectValue.length){var o=r.getFocusableOptionsWithIds(),i=r.buildFocusableOptions(),s=i.indexOf(r.state.selectValue[0]);r.state.focusableOptionsWithIds=o,r.state.focusedOption=i[s],r.state.focusedOptionId=Qr(o,i[s])}return r}return function(e,t,n){t&&X(e.prototype,t),n&&X(e,n),Object.defineProperty(e,"prototype",{writable:!1})}(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&$t(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&($t(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildFocusableOptions(),s="first"===e?0:i.length-1;if(!this.props.isMulti){var a=i.indexOf(r[0]);a>-1&&(s=a)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[s],focusedOptionId:this.getFocusedOptionId(i[s])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var i=n.length-1,s=-1;if(n.length){switch(e){case"previous":s=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o<i&&(s=o+1)}this.setState({inputIsHidden:-1!==s,focusedValue:n[s]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Br):C(C({},Br),this.props.theme):Br}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,i=this.selectOption,s=this.setValue,a=this.props,l=a.isMulti,c=a.isRtl,u=a.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:l,isRtl:c,options:u,selectOption:i,selectProps:a,setValue:s,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return Wr(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Er(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Vr(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,o=e.inputId,i=e.inputValue,s=e.tabIndex,a=e.form,l=e.menuIsOpen,c=e.required,u=this.getComponents().Input,d=this.state,f=d.inputIsHidden,p=d.ariaSelection,h=this.commonProps,m=o||this.getElementId("input"),b=C(C(C({"aria-autocomplete":"list","aria-expanded":l,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":c,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},l&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==p?void 0:p.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?r.createElement(u,N({},h,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:m,innerRef:this.getInputRef,isDisabled:t,isHidden:f,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:s,form:a,type:"text",value:i},b)):r.createElement(sr,N({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Mt,onFocus:this.onInputFocus,disabled:t,tabIndex:s,inputMode:"none",form:a,value:""},b))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,o=t.MultiValueContainer,i=t.MultiValueLabel,s=t.MultiValueRemove,a=t.SingleValue,l=t.Placeholder,c=this.commonProps,u=this.props,d=u.controlShouldRenderValue,f=u.isDisabled,p=u.isMulti,h=u.inputValue,m=u.placeholder,b=this.state,g=b.selectValue,v=b.focusedValue,_=b.isFocused;if(!this.hasValue()||!d)return h?null:r.createElement(l,N({},c,{key:"placeholder",isDisabled:f,isFocused:_,innerProps:{id:this.getElementId("placeholder")}}),m);if(p)return g.map((function(t,a){var l=t===v,u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return r.createElement(n,N({},c,{components:{Container:o,Label:i,Remove:s},isFocused:l,isDisabled:f,key:u,index:a,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(h)return null;var y=g[0];return r.createElement(a,N({},c,{data:y,isDisabled:f}),this.formatOptionLabel(y,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,i=n.isLoading,s=this.state.isFocused;if(!this.isClearable()||!e||o||!this.hasValue()||i)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return r.createElement(e,N({},t,{innerProps:a,isFocused:s}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,i=n.isLoading,s=this.state.isFocused;if(!e||!i)return null;return r.createElement(e,N({},t,{innerProps:{"aria-hidden":"true"},isDisabled:o,isFocused:s}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var o=this.commonProps,i=this.props.isDisabled,s=this.state.isFocused;return r.createElement(n,N({},o,{isDisabled:i,isFocused:s}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,o=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return r.createElement(e,N({},t,{innerProps:i,isDisabled:n,isFocused:o}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,o=t.GroupHeading,i=t.Menu,s=t.MenuList,a=t.MenuPortal,l=t.LoadingMessage,c=t.NoOptionsMessage,u=t.Option,d=this.commonProps,f=this.state.focusedOption,p=this.props,h=p.captureMenuScroll,m=p.inputValue,b=p.isLoading,g=p.loadingMessage,v=p.minMenuHeight,_=p.maxMenuHeight,y=p.menuIsOpen,I=p.menuPlacement,x=p.menuPosition,C=p.menuPortalTarget,w=p.menuShouldBlockScroll,G=p.menuShouldScrollIntoView,B=p.noOptionsMessage,A=p.onMenuScrollToTop,F=p.onMenuScrollToBottom;if(!y)return null;var X,R=function(t,n){var o=t.type,i=t.data,s=t.isDisabled,a=t.isSelected,l=t.label,c=t.value,p=f===i,h=s?void 0:function(){return e.onOptionHover(i)},m=s?void 0:function(){return e.selectOption(i)},b="".concat(e.getElementId("option"),"-").concat(n),g={id:b,onClick:m,onMouseMove:h,onMouseOver:h,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:a};return r.createElement(u,N({},d,{innerProps:g,data:i,isDisabled:s,isSelected:a,key:b,label:l,type:o,value:c,isFocused:p,innerRef:p?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())X=this.getCategorizedOptions().map((function(t){if("group"===t.type){var i=t.data,s=t.options,a=t.index,l="".concat(e.getElementId("group"),"-").concat(a),c="".concat(l,"-heading");return r.createElement(n,N({},d,{key:l,data:i,options:s,Heading:o,headingProps:{id:c,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return R(e,"".concat(a,"-").concat(e.index))})))}if("option"===t.type)return R(t,"".concat(t.index))}));else if(b){var Z=g({inputValue:m});if(null===Z)return null;X=r.createElement(l,d,Z)}else{var Q=B({inputValue:m});if(null===Q)return null;X=r.createElement(c,d,Q)}var k={minMenuHeight:v,maxMenuHeight:_,menuPlacement:I,menuPosition:x,menuShouldScrollIntoView:G},L=r.createElement(hn,N({},d,k),(function(t){var n=t.ref,o=t.placerProps,a=o.placement,l=o.maxHeight;return r.createElement(i,N({},d,k,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:b,placement:a}),r.createElement(vr,{captureEnabled:h,onTopArrive:A,onBottomArrive:F,lockEnabled:w},(function(t){return r.createElement(s,N({},d,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":d.isMulti,id:e.getElementId("listbox")},isLoading:b,maxHeight:l,focusedOption:f}),X)})))}));return C||"fixed"===x?r.createElement(a,N({},d,{appendTo:C,controlElement:this.controlRef,menuPlacement:I,menuPosition:x}),L):L}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,o=t.isDisabled,i=t.isMulti,s=t.name,a=t.required,l=this.state.selectValue;if(a&&!this.hasValue()&&!o)return r.createElement(yr,{name:s,onFocus:this.onValueInputFocus});if(s&&!o){if(i){if(n){var c=l.map((function(t){return e.getOptionValue(t)})).join(n);return r.createElement("input",{name:s,type:"hidden",value:c})}var u=l.length>0?l.map((function(t,n){return r.createElement("input",{key:"i-".concat(n),name:s,type:"hidden",value:e.getOptionValue(t)})})):r.createElement("input",{name:s,type:"hidden",value:""});return r.createElement("div",null,u)}var d=l[0]?this.getOptionValue(l[0]):"";return r.createElement("input",{name:s,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,o=t.focusedOption,i=t.focusedValue,s=t.isFocused,a=t.selectValue,l=this.getFocusableOptions();return r.createElement(Jn,N({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:o,focusedValue:i,isFocused:s,selectValue:a,focusableOptions:l,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,o=e.SelectContainer,i=e.ValueContainer,s=this.props,a=s.className,l=s.id,c=s.isDisabled,u=s.menuIsOpen,d=this.state.isFocused,f=this.commonProps=this.getCommonProps();return r.createElement(o,N({},f,{className:a,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:d}),this.renderLiveRegion(),r.createElement(t,N({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:d,menuIsOpen:u}),r.createElement(i,N({},f,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),r.createElement(n,N({},f,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,s=t.isFocused,a=t.prevWasFocused,l=t.instancePrefix,c=e.options,u=e.value,d=e.menuIsOpen,f=e.inputValue,p=e.isMulti,h=Tt(u),m={};if(n&&(u!==n.value||c!==n.options||d!==n.menuIsOpen||f!==n.inputValue)){var b=d?function(e,t){return Xr(Nr(e,t))}(e,h):[],g=d?Rr(Nr(e,h),"".concat(l,"-option")):[],v=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,h):null,_=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,b);m={selectValue:h,focusedOption:_,focusedOptionId:Qr(g,_),focusableOptionsWithIds:g,focusedValue:v,clearFocusValueOnUpdate:!1}}var y=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},I=i,x=s&&a;return s&&!x&&(I={value:an(p,h,h[0]||null),options:h,action:"initial-input-focus"},x=!a),"initial-input-focus"===(null==i?void 0:i.action)&&(I=null),C(C(C({},m),y),{},{prevProps:e,ariaSelection:I,prevWasFocused:x})}}]),n}();Sr.defaultProps=Ar;var Or=e.forwardRef((function(t,n){var o=function(t){var n=t.defaultInputValue,r=void 0===n?"":n,o=t.defaultMenuIsOpen,i=void 0!==o&&o,s=t.defaultValue,a=void 0===s?null:s,l=t.inputValue,c=t.menuIsOpen,u=t.onChange,d=t.onInputChange,f=t.onMenuClose,p=t.onMenuOpen,h=t.value,m=A(t,F),b=B(e.useState(void 0!==l?l:r),2),g=b[0],v=b[1],_=B(e.useState(void 0!==c?c:i),2),y=_[0],I=_[1],x=B(e.useState(void 0!==h?h:a),2),w=x[0],G=x[1],N=e.useCallback((function(e,t){"function"==typeof u&&u(e,t),G(e)}),[u]),X=e.useCallback((function(e,t){var n;"function"==typeof d&&(n=d(e,t)),v(void 0!==n?n:e)}),[d]),R=e.useCallback((function(){"function"==typeof p&&p(),I(!0)}),[p]),Z=e.useCallback((function(){"function"==typeof f&&f(),I(!1)}),[f]),Q=void 0!==l?l:g,k=void 0!==c?c:y,L=void 0!==h?h:w;return C(C({},m),{},{inputValue:Q,menuIsOpen:k,onChange:N,onInputChange:X,onMenuClose:Z,onMenuOpen:R,value:L})}(t);return r.createElement(Sr,N({ref:n},o))})),Mr=Or,Yr=function(e){var t=e.placeholder,n=e.value,r=e.backgroundColor,o=void 0===r?"#fff":r,i=e.borderColor,s=void 0===i?"var(--no-color)":i,a=e.color,l=void 0===a?"#000":a,c=e.svgFill,u=void 0===c?"#333":c,d=e.image,f=e.singleicons,b=e.options,g=e.onChange,v=e.isClearable,_=e.isDisabled,y=e.isSearchable,I=e.onBlur,x=e.onKeyDown,C=e.onInputChange,w={menuPortal:function(e){return m(m({},e),{zIndex:9999})},menu:function(e){return m(m({},e),{zIndex:9999,left:"0px",borderRadius:"4px",overflow:"hidden"})},menuList:function(e){return m(m({},e),{padding:0,minWidth:250,fontSize:"0.95em","&::-webkit-scrollbar-track":{boxShadow:"inset 0 0 6px rgba(0,0,0,0.3)",borderRadius:"3px",backgroundColor:"#fff"},"&::-webkit-scrollbar":{width:"4px",backgroundColor:"#fff"},"&::-webkit-scrollbar-thumb":{borderRadius:"3px",boxShadow:"inset 0 0 6px rgba(0, 0, 0, .3)",backgroundColor:"#555"}})},container:function(e){return m(m({},e),{width:"auto"})},control:function(e){return m(m({},e),{padding:0,backgroundColor:o,border:"1px solid ".concat(s,"!important"),borderRadius:"8px!important",boxShadow:"none!important",height:"42px",display:"flex",alignItems:"center",alignItemsContent:"center",cursor:"pointer",fontSize:"0.85em"})},placeholder:function(e){return m(m({},e),{color:l,fontSize:"1.2em",fontWeight:"600"})},singleValue:function(e){return m(m({},e),{color:"#000",display:"flex",alignItems:"center",gap:"1em",fontSize:"1.2em",fontWeight:"600"})},indicatorContainer:function(e){return m(m({},e),{color:"#000!important"})},indicatorSeparator:function(e){return m(m({},e),{display:"none"})},dropdownIndicator:function(e){return m(m({},e),{svg:{fill:u,stroke:"#333"}})},option:function(e,t){return m(m({},e),{display:"flex",alignItems:"center",gap:"1em",backgroundColor:t.isSelected?"#F9C201":t.isFocused?"#f0f0f0":"transparent",color:(t.isSelected||t.isFocused,"#000"),":hover":{backgroundColor:"#f0f0f0",color:"#000"}})}};return p.jsx(Mr,{value:n,options:b,styles:w,placeholder:t||"Select an option",isClearable:v,isSearchable:y,onChange:g,components:{Option:function(e){return p.jsxs(On.Option,m({},e,{className:h.ramp_option,children:[d&&p.jsx("img",{src:e.data.icon||"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAD8AAAA/CAYAAABXXxDfAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA4XSURBVHgBvVvdbxxXFT/nzq7thBg7ahHlo+q6jURbVDlB8ECLFKdPvCUv8IQUByEEL6jhH0jyFzR95iGOhMRjkickJGpXUEWoRXZLhSgIskbUlUpbu7UT2zs7czjnnnvv3FnPemfXa07lzPfs/Z3vjynCMVP6h1MLJqF5MOYsArRyghYSzRDiaUQ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mge6ryNJQ7Pm42UbDqgxsmOvAegedMdkPfnVfuFs7ODtyn7LZkD5dZbg5Rh4bP+BCd5Rhgmptgcgq1oOgfPe/kR0OVJ5vXeJQ9nVfqFsEB05JaM7Uy1uiN9iUAtx/k+lz78ojItKYbG0Egcs9twlsCVakXRV+nBwBDoyeE/0Gw6FaK7xWheLKrAcCpUxvUlZvBR3vvh/lwrwot6GVTuHe0cFHf/iWIlucSsska8c84u80PP8d9rFbXJRwXtq31WiKFfvXR5XO/SOAIYTRQdmXDR28L2U/goWGhnMA9okSRp6spXB6AyE9jAJqM8AbGyWP54lwBr+VLusx0X/A7vHWRydDY/+AAAAAElFTkSuQmCC",alt:"logo",className:h.ramp_modal_img}),e.data.label]}))},SingleValue:function(e){return p.jsxs(On.SingleValue,m({},e,{children:[f&&p.jsx("img",{src:e.data.icon||window.location.origin+"/img/icons-one.png",alt:"s-logo",className:h.ramp_modal_img}),e.children]}))}},onBlur:I,isDisabled:_,onKeyDown:x,onInputChange:C})},jr=function(e){var t,n,r,o,i,s,a,l,c,u,d,f,m,v,_,y,I,x,C,w,G,B,A,F,N,X,R,Z,Q,k,L,W,E,V,U,D,S,O,M,Y,j,T,H,J,z,P,K,q,$,ee,te,ne=e.tokenSellData;return p.jsx(p.Fragment,{children:p.jsxs("div",{className:h.details_frame,children:[p.jsxs("div",{className:h.f_details_head,children:[p.jsx("div",{}),p.jsxs("div",{className:h.f_details_titles,children:["Sell"," ",null===(r=parseFloat((null===(n=null===(t=null==ne?void 0:ne.response)||void 0===t?void 0:t.offramp_transaction)||void 0===n?void 0:n.from_value)||"0"))||void 0===r?void 0:r.toFixed(4)," ",null===(i=null===(o=null==ne?void 0:ne.response)||void 0===o?void 0:o.offramp_transaction)||void 0===i?void 0:i.from," ",(null===(a=null===(s=null==ne?void 0:ne.response)||void 0===s?void 0:s.offramp_transaction)||void 0===a?void 0:a.network_type)?"(".concat(null===(c=null===(l=null==ne?void 0:ne.response)||void 0===l?void 0:l.offramp_transaction)||void 0===c?void 0:c.network_type,")"):""," ","@"," ",null===(f=parseFloat((null===(d=null===(u=null==ne?void 0:ne.response)||void 0===u?void 0:u.offramp_transaction)||void 0===d?void 0:d.to_value)||"0"))||void 0===f?void 0:f.toFixed(4)," ",null===(v=null===(m=null==ne?void 0:ne.response)||void 0===m?void 0:m.offramp_transaction)||void 0===v?void 0:v.to]})]}),p.jsxs("div",{className:h.f_details_info_box,children:[p.jsxs("div",{className:h.f_details_card,children:[p.jsx("span",{children:"Order Status"}),p.jsxs("span",{className:h.span_d_align,children:[p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:p.jsxs("g",{id:"Flat_Color",fill:"#20bf55","data-name":"Flat Color",children:[p.jsx("path",{d:"M12 22.75a10.75 10.75 0 0 1 0-21.5 10.5 10.5 0 0 1 4.82 1.15.75.75 0 0 1-.68 1.34 9 9 0 0 0-4.14-1A9.25 9.25 0 1 0 21.25 12a2 2 0 0 0 0-.25.75.75 0 1 1 1.5-.14V12A10.76 10.76 0 0 1 12 22.75"}),p.jsx("path",{d:"M11.82 15.41a.7.7 0 0 1-.52-.22l-4.83-4.74a.75.75 0 0 1 0-1.06.77.77 0 0 1 1.07 0l4.29 4.23 9.65-9.49a.77.77 0 0 1 1.07 0 .75.75 0 0 1 0 1.06l-10.18 10a.74.74 0 0 1-.55.22"})]})}),null===(y=null===(_=null==ne?void 0:ne.response)||void 0===_?void 0:_.offramp_transaction)||void 0===y?void 0:y.status]})]}),p.jsxs("div",{className:h.f_details_card,children:[p.jsx("span",{children:"Transaction Hash"}),p.jsxs("span",{className:h.span_d_align,children:[p.jsxs("a",{href:null===(x=null===(I=null==ne?void 0:ne.response)||void 0===I?void 0:I.offramp_transaction)||void 0===x?void 0:x.explorer_url,target:"_blank",rel:"noreferrer",children:[null===(G=null===(w=null===(C=null==ne?void 0:ne.response)||void 0===C?void 0:C.offramp_transaction)||void 0===w?void 0:w.transaction_hash)||void 0===G?void 0:G.slice(0,10),"...",null===(F=null===(A=null===(B=null==ne?void 0:ne.response)||void 0===B?void 0:B.offramp_transaction)||void 0===A?void 0:A.transaction_hash)||void 0===F?void 0:F.slice((null===(R=null===(X=null===(N=null==ne?void 0:ne.response)||void 0===N?void 0:N.offramp_transaction)||void 0===X?void 0:X.transaction_hash)||void 0===R?void 0:R.length)-10,null===(k=null===(Q=null===(Z=null==ne?void 0:ne.response)||void 0===Z?void 0:Z.offramp_transaction)||void 0===Q?void 0:Q.transaction_hash)||void 0===k?void 0:k.length)]}),p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"#F9C201",className:"size-6",style:{cursor:"pointer"},fill:"none",width:"24",height:"24",onClick:function(){return b(void 0,void 0,void 0,(function(){var e,t;return g(this,(function(n){return window.open(null===(t=null===(e=null==ne?void 0:ne.response)||void 0===e?void 0:e.offramp_transaction)||void 0===t?void 0:t.explorer_url,"_blank"),[2]}))}))},children:p.jsx("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 21a9.004 9.004 0 0 0 8.716-6.747M12 21a9.004 9.004 0 0 1-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 0 1 7.843 4.582M12 3a8.997 8.997 0 0 0-7.843 4.582m15.686 0A11.953 11.953 0 0 1 12 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0 1 21 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0 1 12 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 0 1 3 12c0-1.605.42-3.113 1.157-4.418"})})]})]}),p.jsxs("div",{className:h.f_details_card,children:[p.jsx("span",{children:"Order Date"}),p.jsxs("span",{children:[" ",new Date((null===(W=null===(L=null==ne?void 0:ne.response)||void 0===L?void 0:L.offramp_transaction)||void 0===W?void 0:W.created_at)||"").toUTCString().replace("GMT","UTC")]})]}),p.jsxs("div",{className:h.f_details_card,children:[p.jsx("span",{children:"Exchange Rate"}),p.jsxs("span",{children:["1 ",null===(V=null===(E=null==ne?void 0:ne.response)||void 0===E?void 0:E.offramp_transaction)||void 0===V?void 0:V.from," ="," ",null===(S=parseFloat((null===(D=null===(U=null==ne?void 0:ne.response)||void 0===U?void 0:U.offramp_transaction)||void 0===D?void 0:D.exchange_rate)||""))||void 0===S?void 0:S.toFixed(4)," ",null===(M=null===(O=null==ne?void 0:ne.response)||void 0===O?void 0:O.offramp_transaction)||void 0===M?void 0:M.to]})]}),p.jsxs("div",{className:h.f_details_card,children:[p.jsx("span",{children:"Network"}),p.jsx("span",{children:null===(j=null===(Y=null==ne?void 0:ne.response)||void 0===Y?void 0:Y.offramp_transaction)||void 0===j?void 0:j.network_type})]}),p.jsxs("div",{className:h.f_details_card,children:[p.jsx("span",{children:"Bank Details"}),p.jsx("span",{children:(null===(P=null===(z=null===(J=null===(H=null===(T=null==ne?void 0:ne.response)||void 0===T?void 0:T.offramp_transaction)||void 0===H?void 0:H.bank_account_transaction)||void 0===J?void 0:J.bank_account)||void 0===z?void 0:z.bank_account)||void 0===P?void 0:P.account_number)||(null===(te=null===(ee=null===($=null===(q=null===(K=null==ne?void 0:ne.response)||void 0===K?void 0:K.offramp_transaction)||void 0===q?void 0:q.bank_account_transaction)||void 0===$?void 0:$.bank_account)||void 0===ee?void 0:ee.bank_account)||void 0===te?void 0:te.iban)})]})]})]})})},Tr=e.createContext(void 0),Hr=0,Jr=function(t){var n=t.children,r=e.useState([]),o=r[0],i=r[1],s=e.useCallback((function(e,t,n){void 0===t&&(t="info"),void 0===n&&(n=3e3);var r=Hr++;i((function(n){return v(v([],n,!0),[{id:r,message:e,type:t}],!1)})),setTimeout((function(){i((function(e){return e.filter((function(e){return e.id!==r}))}))}),n)}),[]);return p.jsxs(Tr.Provider,{value:{addToast:s},children:[n,p.jsx("div",{className:h.toast_container,children:o.map((function(e){var t=e.id,n=e.message,r=e.type;return p.jsxs("div",{className:" ".concat(h.toast," toast ").concat(h[r]),children:[p.jsx("span",{children:n}),p.jsx("button",{onClick:function(){return function(e){i((function(t){return t.filter((function(t){return t.id!==e}))}))}(t)},children:"×"})]},t)}))})]})},zr=function(){var t=e.useContext(Tr);if(!t)throw new Error("useToast must be used within a ToastProvider");return t},Pr=function(e){return b(void 0,[e],void 0,(function(e){var t,n,r,o,i=e.url,s=e.body,a=e.headers,l=e.method,c=e.onError,u=e.onSuccess;return g(this,(function(e){switch(e.label){case 0:return e.trys.push([0,3,,4]),t={method:l||"GET"},a&&(t=m(m({},t),{headers:a})),s&&(t=m(m({},t),{body:s})),[4,fetch(i,t)];case 1:return[4,null==(n=e.sent())?void 0:n.json()];case 2:return r=e.sent(),[2,u(r)];case 3:return o=e.sent(),[2,c(o)];case 4:return[2]}}))}))},Kr=function(){return p.jsx("div",{className:h.text_center,children:p.jsxs("svg",{style:{margin:"auto",background:"none",display:"block",shapeRendering:"auto",width:"5em",height:"5em"},viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",children:[p.jsx("circle",{cx:"50",cy:"50",r:"29","stroke-width":"5",stroke:"#333333","stroke-dasharray":"45.553093477052 45.553093477052",fill:"none","stroke-linecap":"round",children:p.jsx("animateTransform",{attributeName:"transform",type:"rotate",dur:"1.25s",repeatCount:"indefinite",keyTimes:"0;1",values:"0 50 50;360 50 50"})}),p.jsx("circle",{cx:"50",cy:"50",r:"23","stroke-width":"5",stroke:"#555555","stroke-dasharray":"36.12831551628262 36.12831551628262","stroke-dashoffset":"36.12831551628262",fill:"none","stroke-linecap":"round",children:p.jsx("animateTransform",{attributeName:"transform",type:"rotate",dur:"1.25s",repeatCount:"indefinite",keyTimes:"0;1",values:"0 50 50;-360 50 50"})})]})})},qr=function(){return p.jsx("div",{className:h.text_center,children:p.jsxs("svg",{style:{margin:"auto",background:"none",display:"block",shapeRendering:"auto",width:"2.3em",height:"2.3em"},viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",children:[p.jsx("circle",{cx:"50",cy:"50",r:"29","stroke-width":"5",stroke:"#333333","stroke-dasharray":"45.553093477052 45.553093477052",fill:"none","stroke-linecap":"round",children:p.jsx("animateTransform",{attributeName:"transform",type:"rotate",dur:"1.25s",repeatCount:"indefinite",keyTimes:"0;1",values:"0 50 50;360 50 50"})}),p.jsx("circle",{cx:"50",cy:"50",r:"23","stroke-width":"5",stroke:"#555555","stroke-dasharray":"36.12831551628262 36.12831551628262","stroke-dashoffset":"36.12831551628262",fill:"none","stroke-linecap":"round",children:p.jsx("animateTransform",{attributeName:"transform",type:"rotate",dur:"1.25s",repeatCount:"indefinite",keyTimes:"0;1",values:"0 50 50;-360 50 50"})})]})})},$r=function(){return p.jsx("div",{className:h.preloading_sec})},eo=function(e){var t=e.size;return p.jsx("div",{className:h.spinnerLoader,style:{width:t||12}})};function to(e,t){if(!/^\d*\.?\d*$/.test(e))return!1;var n=e.split(".");return 2!==n.length||n[1].length<=t}function no(e){return"development"===e?"https://hexchangepay.rare-able.com":"https://gateway.herald.exchange"}var ro,oo,io=[{label:"SWIFT",currency:"USD"},{label:"SEPA",currency:"EUR"},{label:"Local",currency:"USD"}],so=function(t){var n=t.defaultTab,r=t.setStep,o=t.data,i=t.apiKey,s=t.clientReferenceID,a=t.setTokenSellData,l=t.mode,c=zr().addToast,u=e.useState(["select","addNew"].includes(n)?n:"select"),d=u[0],f=u[1],b=e.useState([]),g=b[0],_=b[1],y=e.useState(null),I=y[0],x=y[1],C=e.useState([]),w=C[0],G=C[1],B=e.useState(!0),A=B[0],F=B[1],N=e.useState(!1),X=N[0],R=N[1];e.useEffect((function(){Z()}),[d]),e.useEffect((function(){if((null==o?void 0:o.selectedBeneficiary)&&(null==g?void 0:g.length)&&!I&&(null==o?void 0:o.selectedBeneficiary)){var e=null==g?void 0:g.find((function(e){return(null==e?void 0:e.value)===(null==o?void 0:o.selectedBeneficiary)}));e&&x(e)}}),[o,g]);var Z=function(){var e=no(l);Pr({url:"".concat(e,"/api/bank_accounts"),headers:{"Content-Type":"application/json","X-API-KEY":i,"User-Id":s},onSuccess:function(e){var t,n,r;if(null==e?void 0:e.success){var i=null===(r=null===(n=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.bank_accounts)||void 0===n?void 0:n.filter((function(e){return(null==e?void 0:e.currency)===(null==o?void 0:o.selectedFiat)})))||void 0===r?void 0:r.map((function(e){var t,n,r;return{label:"".concat(null===(t=null==e?void 0:e.bank_account)||void 0===t?void 0:t.bank_name," - ").concat((null===(n=null==e?void 0:e.bank_account)||void 0===n?void 0:n.account_number)||(null===(r=null==e?void 0:e.bank_account)||void 0===r?void 0:r.iban)),value:null==e?void 0:e.unique_id}}));_(i),(null==i?void 0:i.length)<=0&&f("addNew"),F(!1)}},onError:function(){c("Error fetching Beneficiaries","error"),F(!1)}})},Q=e.useState({type:"EUR"===(null==o?void 0:o.selectedFiat)?"SEPA":"SWIFT",currency:(null==o?void 0:o.selectedFiat)||"USD",bank_name:"",account_number:"",route_number:"",swift_code:"",iban:"",service_bank:""}),k=Q[0],L=Q[1],W=e.useState({bank_name:"",account_number:"",route_number:"",swift_code:"",iban:"",service_bank:""}),E=W[0],V=W[1],U=function(e){var t,n=e.target,r=n.name,o=n.value,i="bank_name"===r?null==o?void 0:o.slice(0,100):null===(t=null==o?void 0:o.trim())||void 0===t?void 0:t.slice(0,100),s="";if(o)if("bank_name"===r){/^[A-Za-z\s]+$/.test(i)||(s="Enter only alphabets")}else{/^[A-Za-z0-9\s]+$/.test(i)||(s="Enter only alphanumeric")}else s="Field is Required";if(s)V((function(e){var t;return m(m({},e),((t={})[r]=s,t))}));else{var a=m({},E);delete a[r],V(a)}L((function(e){var t;return m(m({},e),((t={})[r]=i,t))}))},D=function(){var e=no(l);Pr({url:"".concat(e,"/api/service_banks"),headers:{"Content-Type":"application/json","X-API-KEY":i,"User-Id":s},onSuccess:function(e){var t,n;if(null==e?void 0:e.success){var r=null===(n=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.service_banks)||void 0===n?void 0:n.map((function(e){return{label:null==e?void 0:e.bank_name,value:null==e?void 0:e.service_bank}}));G(r)}},onError:function(){c("Error fetching Bank Accounts","error")}})};return A?p.jsx(Kr,{}):p.jsx(p.Fragment,{children:p.jsxs("div",{className:h.bank_frame,children:[p.jsxs("div",{className:h.bank_head,children:[p.jsx("div",{style:{cursor:"pointer"},onClick:function(){return r(1)},children:p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",width:"18",height:"18",viewBox:"0 0 240.823 240.823",children:p.jsx("path",{d:"M57.633 129.007 165.93 237.268c4.752 4.74 12.451 4.74 17.215 0 4.752-4.74 4.752-12.439 0-17.179l-99.707-99.671 99.695-99.671c4.752-4.74 4.752-12.439 0-17.191-4.752-4.74-12.463-4.74-17.215 0L57.621 111.816c-4.679 4.691-4.679 12.511.012 17.191","data-original":"#000000"})})}),p.jsx("div",{className:h.bank_titles,children:"Bank Details"})]}),p.jsxs("div",{className:h.bank_tabs_frame,children:[p.jsxs("div",{className:h.bank_tabs_link,children:[(null==g?void 0:g.length)>0&&p.jsx("button",{className:"".concat("select"===d&&h.active),onClick:function(){return f("select")},children:"Select Existing"}),p.jsx("button",{className:"".concat("addNew"===d&&h.active),onClick:function(){return f("addNew")},children:"Add New"})]}),p.jsxs("div",{className:h.bank_tabs_content,children:["select"===d&&p.jsxs("div",{className:h.bank_exist_box,children:[p.jsxs("div",{className:h.bank_exist_feilds_frame,children:[p.jsx("div",{className:h.bank_exist_label,children:"Select Bank"}),p.jsx("div",{className:h.bank_exist_feilds,children:p.jsx(Yr,{options:g,onChange:function(e){x(e),a(m(m({},o),{selectedBeneficiary:null==e?void 0:e.value}))},isClearable:!0,placeholder:A?"Loading...":"Select Beneficiary",value:I,isDisabled:(null==g?void 0:g.length)<=0})})]}),p.jsx("div",{className:"".concat(h.ramp_action," ").concat(h.space_from," "),children:p.jsx("button",{className:"".concat(h.action_btn," ").concat(h.primary," "),onClick:function(){(null==o?void 0:o.selectedBeneficiary)?r(3):c("Please select a beneficiary","error")},children:"Continue"})})]}),"addNew"===d&&p.jsxs("div",{className:h.new_box,children:[p.jsx("div",{className:h.check_wrap,children:io.map((function(e){return(null==o?void 0:o.selectedFiat)===e.currency?p.jsx("div",{className:h.form_check,children:p.jsxs("label",{className:h.form_check_label,htmlFor:e.label,children:[p.jsx("input",{className:h.form_check_input,type:"radio",name:"AccountType",value:e.label,id:e.label,onChange:function(e){return function(e){var t,n;"Local"===(null===(t=e.target)||void 0===t?void 0:t.value)&&D(),L(m(m({},k),{type:null===(n=e.target)||void 0===n?void 0:n.value})),V({bank_name:"",account_number:"",route_number:"",swift_code:"",iban:"",service_bank:""})}(e)}}),p.jsxs("div",{className:h.off_currency_option,children:[p.jsx("h3",{children:e.label}),p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 408.576 408.576",children:p.jsx("g",{children:p.jsx("path",{d:"M204.288 0C91.648 0 0 91.648 0 204.288s91.648 204.288 204.288 204.288 204.288-91.648 204.288-204.288S316.928 0 204.288 0zm114.176 150.528-130.56 129.536c-7.68 7.68-19.968 8.192-28.16.512L90.624 217.6c-8.192-7.68-8.704-20.48-1.536-28.672 7.68-8.192 20.48-8.704 28.672-1.024l54.784 50.176L289.28 121.344c8.192-8.192 20.992-8.192 29.184 0s8.192 20.992 0 29.184z",fill:(null==k?void 0:k.type)===e.label?"#F9C201":"#efefef"})})})]})]})},e.label):p.jsx(p.Fragment,{})}))}),"Local"===k.type?p.jsxs("div",{className:h.ramp_bank_box,children:[p.jsxs("div",{className:h.new_bank_label,children:["Bank Name ",p.jsx("span",{className:h.required,children:"*"})]}),p.jsx("div",{className:h.new_bank_fields,children:p.jsx(Yr,{options:w,isClearable:!0,placeholder:"Select Bank",value:(null==k?void 0:k.service_bank)?null==w?void 0:w.find((function(e){return(null==e?void 0:e.value)===(null==k?void 0:k.service_bank)})):null,isSearchable:!0,onChange:function(e){L(m(m({},k),{service_bank:(null==e?void 0:e.value)||""}));var t=m({},E);delete t.service_bank,V(m({},t))},onInputChange:function(e,t){"input-change"===t.action&&((null==e?void 0:e.length)>0?function(e){var t=no(l);Pr({url:"".concat(t,"/api/service_banks?search_key=").concat(e),headers:{"Content-Type":"application/json","X-API-KEY":i,"User-Id":s},onSuccess:function(e){var t,n;if(null==e?void 0:e.success){var r=null===(n=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.service_banks)||void 0===n?void 0:n.map((function(e){return{label:null==e?void 0:e.bank_name,value:null==e?void 0:e.service_bank}}));G(r)}},onError:function(){c("Error fetching Bank Accounts","error")}})}(e):D())}})}),(null==E?void 0:E.service_bank)&&p.jsx("span",{className:h.input_error,children:null==E?void 0:E.service_bank})]}):p.jsxs("div",{className:h.ramp_bank_box,children:[p.jsxs("div",{className:h.new_bank_label,children:["Bank Name ",p.jsx("span",{className:h.required,children:"*"})]}),p.jsx("div",{className:h.new_bank_fields,children:p.jsx("input",{type:"text",value:k.bank_name,className:h.input_control,placeholder:"Enter Bank Name",onChange:U,name:"bank_name"})}),(null==E?void 0:E.bank_name)&&p.jsx("span",{className:h.input_error,children:null==E?void 0:E.bank_name})]}),"SWIFT"===k.type||"Local"===k.type?p.jsxs("div",{className:h.ramp_bank_box,children:[p.jsxs("div",{className:h.new_bank_label,children:["Account Number ",p.jsx("span",{className:h.required,children:"*"})]}),p.jsx("div",{className:h.new_bank_fields,children:p.jsx("input",{type:"text",value:k.account_number,className:h.input_control,placeholder:"Enter Account Number",onChange:U,name:"account_number"})}),(null==E?void 0:E.account_number)&&p.jsx("span",{className:h.input_error,children:null==E?void 0:E.account_number})]}):null,"SWIFT"===k.type||"Local"===k.type?p.jsxs("div",{className:h.ramp_bank_box,children:[p.jsxs("div",{className:h.new_bank_label,children:["Route Number ",p.jsx("span",{className:h.required,children:"*"})]}),p.jsx("div",{className:h.new_bank_fields,children:p.jsx("input",{type:"text",value:k.route_number,className:h.input_control,placeholder:"Enter Route Number",onChange:U,name:"route_number"})}),(null==E?void 0:E.route_number)&&p.jsxs("span",{className:h.input_error,children:[null==E?void 0:E.route_number," "]})]}):null,"SWIFT"===k.type&&p.jsxs("div",{className:h.ramp_bank_box,children:[p.jsxs("div",{className:h.new_bank_label,children:["SWIFT Code ",p.jsx("span",{className:h.required,children:"*"})]}),p.jsx("div",{className:h.new_bank_fields,children:p.jsx("input",{type:"text",value:k.swift_code,className:h.input_control,placeholder:"Enter SWIFT Code",onChange:U,name:"swift_code"})}),(null==E?void 0:E.swift_code)&&p.jsx("span",{className:h.input_error,children:null==E?void 0:E.swift_code})]}),"SEPA"===k.type&&p.jsxs("div",{className:h.ramp_bank_box,children:[p.jsxs("div",{className:h.new_bank_label,children:["IBAN ",p.jsx("span",{className:h.required,children:"*"})]}),p.jsx("div",{className:h.new_bank_fields,children:p.jsx("input",{type:"text",value:k.iban,className:h.input_control,placeholder:"Enter IBAN",onChange:U,name:"iban"})}),(null==E?void 0:E.iban)&&p.jsx("span",{className:h.input_error,children:null==E?void 0:E.iban})]}),p.jsx("div",{className:h.ramp_action,children:p.jsxs("button",{className:"".concat(h.action_btn," ").concat(h.primary," "),onClick:function(){var e,t,n=no(l),u={},d=new FormData;switch(R(!0),d.append("currency",null==k?void 0:k.currency),d.append("type",null===(e=null==k?void 0:k.type)||void 0===e?void 0:e.toLowerCase()),k.type){case"SWIFT":(null==k?void 0:k.bank_name)||(u.bank_name="Field is required"),(null==k?void 0:k.route_number)||(u.route_number="Field is required"),(null==k?void 0:k.swift_code)||(u.swift_code="Field is required"),(null==k?void 0:k.account_number)||(u.account_number="Field is required"),d.append("bank_name",null==k?void 0:k.bank_name),d.append("route_number",null==k?void 0:k.route_number),d.append("swift_code",null==k?void 0:k.swift_code),d.append("account_number",null==k?void 0:k.account_number);break;case"Local":(null==k?void 0:k.service_bank)||(u.service_bank="Field is required"),(null==k?void 0:k.route_number)||(u.route_number="Field is required"),(null==k?void 0:k.account_number)||(u.account_number="Field is required"),d.append("service_bank",null==k?void 0:k.service_bank),d.append("route_number",null==k?void 0:k.route_number),d.append("account_number",null==k?void 0:k.account_number);break;case"SEPA":(null==k?void 0:k.bank_name)||(u.bank_name="Field is required"),(null==k?void 0:k.iban)||(u.iban="Field is required"),d.append("bank_name",null==k?void 0:k.bank_name),d.append("iban",null==k?void 0:k.iban)}if((null===(t=Object.keys(u))||void 0===t?void 0:t.length)>0)return V(u),c("Fill all fields","error"),void R(!1);Pr({url:"".concat(n,"/api/bank_accounts"),method:"POST",headers:{"X-API-KEY":i,"User-Id":s},body:d,onSuccess:function(e){var t,n,i,s,l,u,d,f,p,h,b,y,I,C,w,G,B,A,F,N;(null==e?void 0:e.success)?(_(v(v([],g,!0),[{label:"".concat(null===(n=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.bank_account)||void 0===n?void 0:n.bank_name," - ").concat((null===(s=null===(i=null==e?void 0:e.data)||void 0===i?void 0:i.bank_account)||void 0===s?void 0:s.account_number)||(null===(d=null===(u=null===(l=null==e?void 0:e.data)||void 0===l?void 0:l.bank_account)||void 0===u?void 0:u.bank_account)||void 0===d?void 0:d.iban)),value:null===(p=null===(f=null==e?void 0:e.data)||void 0===f?void 0:f.bank_account)||void 0===p?void 0:p.unique_id}],!1)),x({label:"".concat(null===(b=null===(h=null==e?void 0:e.data)||void 0===h?void 0:h.bank_account)||void 0===b?void 0:b.bank_name," - ").concat((null===(I=null===(y=null==e?void 0:e.data)||void 0===y?void 0:y.bank_account)||void 0===I?void 0:I.account_number)||(null===(G=null===(w=null===(C=null==e?void 0:e.data)||void 0===C?void 0:C.bank_account)||void 0===w?void 0:w.bank_account)||void 0===G?void 0:G.iban)),value:null===(A=null===(B=null==e?void 0:e.data)||void 0===B?void 0:B.bank_account)||void 0===A?void 0:A.unique_id}),a(m(m({},o),{selectedBeneficiary:null===(N=null===(F=null==e?void 0:e.data)||void 0===F?void 0:F.bank_account)||void 0===N?void 0:N.unique_id})),r(3)):c("Error Adding Bank Account : ".concat(null==e?void 0:e.message),"error"),R(!1)},onError:function(e){c("Error Adding Bank Account : ".concat(null==e?void 0:e.message),"error"),R(!1)}})},disabled:X,children:["Continue ",X&&p.jsx(eo,{})]})})]})]})]})]})})},ao=function(t){var n=t.props,r=t.monitoring,o=e.useState(!1),i=o[0],s=o[1],a=e.useState(!1),l=a[0],c=a[1];return e.useEffect((function(){var e;(null==n?void 0:n.data)&&(null===(e=Object.keys(null==n?void 0:n.data))||void 0===e?void 0:e.length)>0&&s(!0)}),[n]),e.useEffect((function(){c(r)}),[r]),e.useEffect((function(){return function(){s(!1)}}),[]),p.jsx(p.Fragment,{children:p.jsx("div",{className:h.flow_stepper_wrap,children:p.jsx("div",{className:h.flow_stepper_frame,children:p.jsxs("ul",{children:[p.jsx("li",{className:"".concat(l?"":h.completed),children:p.jsxs("div",{className:h.flow_stepper_card,children:[p.jsx("div",{className:h.flow_stepper_process,children:l?p.jsx("div",{className:h.flow_loader}):p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",enableBackground:"new 0 0 512 512",viewBox:"0 0 20 20",fill:"#fff",children:p.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd","data-original":"#000000"})})}),p.jsx("span",{children:"Awaiting Transaction"})]})}),p.jsx("li",{className:i&&!l?h.completed:"",children:p.jsxs("div",{className:h.flow_stepper_card,children:[p.jsx("div",{className:h.flow_stepper_process,children:i&&!l||l||i?p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",enableBackground:"new 0 0 512 512",viewBox:"0 0 20 20",fill:"#fff",children:p.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd","data-original":"#000000"})}):p.jsx("div",{className:h.flow_loader})}),p.jsx("span",{children:"Processing Transaction"})]})}),p.jsx("li",{className:"".concat(i?h.completed:""),children:p.jsxs("div",{className:h.flow_stepper_card,children:[p.jsx("div",{className:h.flow_stepper_process,children:i?p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",enableBackground:"new 0 0 512 512",viewBox:"0 0 20 20",fill:"#fff",children:p.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd","data-original":"#000000"})}):p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",enableBackground:"new 0 0 512 512",viewBox:"0 0 20 20",fill:"#e4e0e0",children:p.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd","data-original":"#000000"})})}),p.jsx("span",{children:"Transaction Successful"})]})})]})})})})},lo=Object.defineProperty,co=Object.getOwnPropertySymbols,uo=Object.prototype.hasOwnProperty,fo=Object.prototype.propertyIsEnumerable,po=(e,t,n)=>t in e?lo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ho=(e,t)=>{for(var n in t||(t={}))uo.call(t,n)&&po(e,n,t[n]);if(co)for(var n of co(t))fo.call(t,n)&&po(e,n,t[n]);return e},mo=(e,t)=>{var n={};for(var r in e)uo.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&co)for(var r of co(e))t.indexOf(r)<0&&fo.call(e,r)&&(n[r]=e[r]);return n};(e=>{const t=class t{constructor(e,n,r,i){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(i<-1||i>7)throw new RangeError("Mask value out of range");this.size=4*e+17;let s=[];for(let e=0;e<this.size;e++)s.push(!1);for(let e=0;e<this.size;e++)this.modules.push(s.slice()),this.isFunction.push(s.slice());this.drawFunctionPatterns();const a=this.addEccAndInterleave(r);if(this.drawCodewords(a),-1==i){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const n=this.getPenaltyScore();n<e&&(i=t,e=n),this.applyMask(t)}}o(0<=i&&i<=7),this.mask=i,this.applyMask(i),this.drawFormatBits(i),this.isFunction=[]}static encodeText(n,r){const o=e.QrSegment.makeSegments(n);return t.encodeSegments(o,r)}static encodeBinary(n,r){const o=e.QrSegment.makeBytes(n);return t.encodeSegments([o],r)}static encodeSegments(e,r,i=1,a=40,l=-1,c=!0){if(!(t.MIN_VERSION<=i&&i<=a&&a<=t.MAX_VERSION)||l<-1||l>7)throw new RangeError("Invalid value");let u,d;for(u=i;;u++){const n=8*t.getNumDataCodewords(u,r),o=s.getTotalBits(e,u);if(o<=n){d=o;break}if(u>=a)throw new RangeError("Data too long")}for(const e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])c&&d<=8*t.getNumDataCodewords(u,e)&&(r=e);let f=[];for(const t of e){n(t.mode.modeBits,4,f),n(t.numChars,t.mode.numCharCountBits(u),f);for(const e of t.getData())f.push(e)}o(f.length==d);const p=8*t.getNumDataCodewords(u,r);o(f.length<=p),n(0,Math.min(4,p-f.length),f),n(0,(8-f.length%8)%8,f),o(f.length%8==0);for(let e=236;f.length<p;e^=253)n(e,8,f);let h=[];for(;8*h.length<f.length;)h.push(0);return f.forEach(((e,t)=>h[t>>>3]|=e<<7-(7&t))),new t(u,r,h,l)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let r=0;r<t;r++)0==n&&0==r||0==n&&r==t-1||n==t-1&&0==r||this.drawAlignmentPattern(e[n],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let n=t;for(let e=0;e<10;e++)n=n<<1^1335*(n>>>9);const i=21522^(t<<10|n);o(i>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,r(i,e));this.setFunctionModule(8,7,r(i,6)),this.setFunctionModule(8,8,r(i,7)),this.setFunctionModule(7,8,r(i,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,r(i,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,r(i,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,r(i,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;o(t>>>18==0);for(let e=0;e<18;e++){const n=r(t,e),o=this.size-11+e%3,i=Math.floor(e/3);this.setFunctionModule(o,i,n),this.setFunctionModule(i,o,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){const o=Math.max(Math.abs(r),Math.abs(n)),i=e+r,s=t+n;0<=i&&i<this.size&&0<=s&&s<this.size&&this.setFunctionModule(i,s,2!=o&&4!=o)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,1!=Math.max(Math.abs(r),Math.abs(n)))}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){const n=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,r))throw new RangeError("Invalid argument");const i=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],s=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],a=Math.floor(t.getNumRawDataModules(n)/8),l=i-a%i,c=Math.floor(a/i);let u=[];const d=t.reedSolomonComputeDivisor(s);for(let n=0,r=0;n<i;n++){let o=e.slice(r,r+c-s+(n<l?0:1));r+=o.length;const i=t.reedSolomonComputeRemainder(o,d);n<l&&o.push(0),u.push(o.concat(i))}let f=[];for(let e=0;e<u[0].length;e++)u.forEach(((t,n)=>{(e!=c-s||n>=l)&&f.push(t[e])}));return o(f.length==a),f}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let n=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let o=0;o<this.size;o++)for(let i=0;i<2;i++){const s=t-i,a=!(t+1&2)?this.size-1-o:o;!this.isFunction[a][s]&&n<8*e.length&&(this.modules[a][s]=r(e[n>>>3],7-(7&n)),n++)}}o(n==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let n=0;n<this.size;n++){let r=!1,o=0,i=[0,0,0,0,0,0,0];for(let s=0;s<this.size;s++)this.modules[n][s]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,i),r||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),r=this.modules[n][s],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,i)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,o=0,i=[0,0,0,0,0,0,0];for(let s=0;s<this.size;s++)this.modules[s][n]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,i),r||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),r=this.modules[s][n],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,i)*t.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let r=0;r<this.size-1;r++){const o=this.modules[n][r];o==this.modules[n][r+1]&&o==this.modules[n+1][r]&&o==this.modules[n+1][r+1]&&(e+=t.PENALTY_N2)}let n=0;for(const e of this.modules)n=e.reduce(((e,t)=>e+(t?1:0)),n);const r=this.size*this.size,i=Math.ceil(Math.abs(20*n-10*r)/r)-1;return o(0<=i&&i<=9),e+=i*t.PENALTY_N4,o(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2));let n=[6];for(let r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");let n=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return o(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let n=[];for(let t=0;t<e-1;t++)n.push(0);n.push(1);let r=1;for(let o=0;o<e;o++){for(let e=0;e<n.length;e++)n[e]=t.reedSolomonMultiply(n[e],r),e+1<n.length&&(n[e]^=n[e+1]);r=t.reedSolomonMultiply(r,2)}return n}static reedSolomonComputeRemainder(e,n){let r=n.map((e=>0));for(const o of e){const e=o^r.shift();r.push(0),n.forEach(((n,o)=>r[o]^=t.reedSolomonMultiply(n,e)))}return r}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let n=0;for(let r=7;r>=0;r--)n=n<<1^285*(n>>>7),n^=(t>>>r&1)*e;return o(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];o(t<=3*this.size);const n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};function n(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function r(e,t){return!!(e>>>t&1)}function o(e){if(!e)throw new Error("Assertion error")}t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;const i=class e{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw new RangeError("Invalid argument");this.bitData=n.slice()}static makeBytes(t){let r=[];for(const e of t)n(e,8,r);return new e(e.Mode.BYTE,t.length,r)}static makeNumeric(t){if(!e.isNumeric(t))throw new RangeError("String contains non-numeric characters");let r=[];for(let e=0;e<t.length;){const o=Math.min(t.length-e,3);n(parseInt(t.substring(e,e+o),10),3*o+1,r),e+=o}return new e(e.Mode.NUMERIC,t.length,r)}static makeAlphanumeric(t){if(!e.isAlphanumeric(t))throw new RangeError("String contains unencodable characters in alphanumeric mode");let r,o=[];for(r=0;r+2<=t.length;r+=2){let i=45*e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r));i+=e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r+1)),n(i,11,o)}return r<t.length&&n(e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r)),6,o),new e(e.Mode.ALPHANUMERIC,t.length,o)}static makeSegments(t){return""==t?[]:e.isNumeric(t)?[e.makeNumeric(t)]:e.isAlphanumeric(t)?[e.makeAlphanumeric(t)]:[e.makeBytes(e.toUtf8ByteArray(t))]}static makeEci(t){let r=[];if(t<0)throw new RangeError("ECI assignment value out of range");if(t<128)n(t,8,r);else if(t<16384)n(2,2,r),n(t,14,r);else{if(!(t<1e6))throw new RangeError("ECI assignment value out of range");n(6,3,r),n(t,21,r)}return new e(e.Mode.ECI,0,r)}static isNumeric(t){return e.NUMERIC_REGEX.test(t)}static isAlphanumeric(t){return e.ALPHANUMERIC_REGEX.test(t)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let n=0;for(const r of e){const e=r.mode.numCharCountBits(t);if(r.numChars>=1<<e)return 1/0;n+=4+e+r.bitData.length}return n}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)"%"!=e.charAt(n)?t.push(e.charCodeAt(n)):(t.push(parseInt(e.substring(n+1,n+3),16)),n+=2);return t}};i.NUMERIC_REGEX=/^[0-9]*$/,i.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,i.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";let s=i;e.QrSegment=i})(ro||(ro={})),(e=>{const t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};t.LOW=new t(0,1),t.MEDIUM=new t(1,0),t.QUARTILE=new t(2,3),t.HIGH=new t(3,2),e.Ecc=t})((oo=ro||(ro={})).QrCode||(oo.QrCode={})),(e=>{(e=>{const t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};t.NUMERIC=new t(1,[10,12,14]),t.ALPHANUMERIC=new t(2,[9,11,13]),t.BYTE=new t(4,[8,16,16]),t.KANJI=new t(8,[8,10,12]),t.ECI=new t(7,[0,0,0]),e.Mode=t})(e.QrSegment||(e.QrSegment={}))})(ro||(ro={}));var bo=ro,go={L:bo.QrCode.Ecc.LOW,M:bo.QrCode.Ecc.MEDIUM,Q:bo.QrCode.Ecc.QUARTILE,H:bo.QrCode.Ecc.HIGH},vo=128,_o="L",yo="#FFFFFF",Io="#000000",xo=!1,Co=1;
18
+ */function He(){return Ye||(Ye=1,"production"===process.env.NODE_ENV?Ve.exports=function(){if(Ee)return Se;Ee=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function v(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case l:case c:case r:case i:case o:case d:return e;default:switch(e=e&&e.$$typeof){case s:case u:case h:case f:case a:return e;default:return p}}case n:return p}}}function y(e){return v(e)===c}return Se.AsyncMode=l,Se.ConcurrentMode=c,Se.ContextConsumer=s,Se.ContextProvider=a,Se.Element=t,Se.ForwardRef=u,Se.Fragment=r,Se.Lazy=h,Se.Memo=f,Se.Portal=n,Se.Profiler=i,Se.StrictMode=o,Se.Suspense=d,Se.isAsyncMode=function(e){return y(e)||v(e)===l},Se.isConcurrentMode=y,Se.isContextConsumer=function(e){return v(e)===s},Se.isContextProvider=function(e){return v(e)===a},Se.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Se.isForwardRef=function(e){return v(e)===u},Se.isFragment=function(e){return v(e)===r},Se.isLazy=function(e){return v(e)===h},Se.isMemo=function(e){return v(e)===f},Se.isPortal=function(e){return v(e)===n},Se.isProfiler=function(e){return v(e)===i},Se.isStrictMode=function(e){return v(e)===o},Se.isSuspense=function(e){return v(e)===d},Se.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===f||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===b||e.$$typeof===g||e.$$typeof===_||e.$$typeof===m)},Se.typeOf=v,Se}():Ve.exports=(Oe||(Oe=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function v(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:var m=e.type;switch(m){case l:case c:case r:case i:case o:case d:return m;default:var b=m&&m.$$typeof;switch(b){case s:case u:case h:case f:case a:return b;default:return p}}case n:return p}}}var y=l,I=c,x=s,C=a,G=t,B=u,w=r,A=h,F=f,N=n,X=i,Q=o,R=d,Z=!1;function k(e){return v(e)===c}Te.AsyncMode=y,Te.ConcurrentMode=I,Te.ContextConsumer=x,Te.ContextProvider=C,Te.Element=G,Te.ForwardRef=B,Te.Fragment=w,Te.Lazy=A,Te.Memo=F,Te.Portal=N,Te.Profiler=X,Te.StrictMode=Q,Te.Suspense=R,Te.isAsyncMode=function(e){return Z||(Z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),k(e)||v(e)===l},Te.isConcurrentMode=k,Te.isContextConsumer=function(e){return v(e)===s},Te.isContextProvider=function(e){return v(e)===a},Te.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Te.isForwardRef=function(e){return v(e)===u},Te.isFragment=function(e){return v(e)===r},Te.isLazy=function(e){return v(e)===h},Te.isMemo=function(e){return v(e)===f},Te.isPortal=function(e){return v(e)===n},Te.isProfiler=function(e){return v(e)===i},Te.isStrictMode=function(e){return v(e)===o},Te.isSuspense=function(e){return v(e)===d},Te.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===f||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===b||e.$$typeof===g||e.$$typeof===_||e.$$typeof===m)},Te.typeOf=v}()),Te)),Ve.exports}!function(){if(je)return Me;je=1;var e=He(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function i(n){return e.isMemo(n)?r:o[n.$$typeof]||t}o[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[e.Memo]=r;var a=Object.defineProperty,s=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,d=Object.prototype;Me=function e(t,r,o){if("string"!=typeof r){if(d){var p=u(r);p&&p!==d&&e(t,p,o)}var f=s(r);l&&(f=f.concat(l(r)));for(var h=i(t),m=i(r),b=0;b<f.length;++b){var g=f[b];if(!(n[g]||o&&o[g]||m&&m[g]||h&&h[g])){var _=c(r,g);try{a(t,g,_)}catch(e){}}}}return t}}();var Je=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)};var ze={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Pe=/[A-Z]|^ms/g,Ke=/_EMO_([^_]+?)_([^]*?)_EMO_/g,qe=function(e){return 45===e.charCodeAt(1)},$e=function(e){return null!=e&&"boolean"!=typeof e},et=Xe((function(e){return qe(e)?e:e.replace(Pe,"-$&").toLowerCase()})),tt=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Ke,(function(e,t,n){return rt={name:t,styles:n,next:rt},t}))}return 1===ze[e]||qe(e)||"number"!=typeof t||0===t?t:t+"px"};function nt(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return rt={name:o.name,styles:o.styles,next:rt},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)rt={name:a.name,styles:a.styles,next:rt},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=nt(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var s=a;$e(s)&&(r+=et(i)+":"+tt(i,s)+";")}else if(Array.isArray(a)&&"string"==typeof a[0]&&null==t)for(var l=0;l<a.length;l++)$e(a[l])&&(r+=et(i)+":"+tt(i,a[l])+";");else{var c=nt(e,t,a);switch(i){case"animation":case"animationName":r+=et(i)+":"+c+";";break;default:r+=i+"{"+c+"}"}}}return r}(e,t,n);case"function":if(void 0!==e){var s=rt,l=n(e);return rt=s,nt(e,t,l)}}return n}var rt,ot=/label:\s*([^\s;{]+)\s*(;|$)/g;function it(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";rt=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=nt(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++){if(o+=nt(n,t,e[a]),r)o+=i[a]}ot.lastIndex=0;for(var s,l="";null!==(s=ot.exec(o));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:rt}}var at=!!r.useInsertionEffect&&r.useInsertionEffect||function(e){return e()},st=r.createContext("undefined"!=typeof HTMLElement?De({key:"css"}):null);st.Provider;var lt,ct,ut=function(t){return e.forwardRef((function(n,r){var o=e.useContext(st);return t(n,o,r)}))},dt=r.createContext({}),pt={}.hasOwnProperty,ft="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ht=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Je(t,n,r),at((function(){return function(e,t,n){Je(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}(t,n,r)})),null},mt=ut((function(e,t,n){var o=e.css;"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var i=e[ft],a=[o],s="";"string"==typeof e.className?s=function(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}(t.registered,a,e.className):null!=e.className&&(s=e.className+" ");var l=it(a,void 0,r.useContext(dt));s+=t.key+"-"+l.name;var c={};for(var u in e)pt.call(e,u)&&"css"!==u&&u!==ft&&(c[u]=e[u]);return c.className=s,n&&(c.ref=n),r.createElement(r.Fragment,null,r.createElement(ht,{cache:t,serialized:l,isStringTag:"string"==typeof i}),r.createElement(i,c))})),bt=mt,gt=function(e,t){var n=arguments;if(null==t||!pt.call(t,"css"))return r.createElement.apply(void 0,n);var o=n.length,i=new Array(o);i[0]=bt,i[1]=function(e,t){var n={};for(var r in t)pt.call(t,r)&&(n[r]=t[r]);return n[ft]=e,n}(e,t);for(var a=2;a<o;a++)i[a]=n[a];return r.createElement.apply(null,i)};function _t(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return it(t)}lt=gt||(gt={}),ct||(ct=lt.JSX||(lt.JSX={}));const vt=Math.min,yt=Math.max,It=Math.round,xt=Math.floor,Ct=e=>({x:e,y:e});function Gt(){return"undefined"!=typeof window}function Bt(e){return Ft(e)?(e.nodeName||"").toLowerCase():"#document"}function wt(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function At(e){var t;return null==(t=(Ft(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Ft(e){return!!Gt()&&(e instanceof Node||e instanceof wt(e).Node)}function Nt(e){return!!Gt()&&(e instanceof HTMLElement||e instanceof wt(e).HTMLElement)}function Xt(e){return!(!Gt()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof wt(e).ShadowRoot)}function Qt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Rt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Rt(e){return wt(e).getComputedStyle(e)}function Zt(e){const t=function(e){if("html"===Bt(e))return e;const t=e.assignedSlot||e.parentNode||Xt(e)&&e.host||At(e);return Xt(t)?t.host:t}(e);return function(e){return["html","body","#document"].includes(Bt(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:Nt(t)&&Qt(t)?t:Zt(t)}function kt(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Zt(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=wt(o);if(i){const e=Wt(a);return t.concat(a,a.visualViewport||[],Qt(o)?o:[],e&&n?kt(e):[])}return t.concat(o,kt(o,[],n))}function Wt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Lt(e){return function(e){return!!Gt()&&(e instanceof Element||e instanceof wt(e).Element)}(e)?e:e.contextElement}function Et(e){const t=Lt(e);if(!Nt(t))return Ct(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=function(e){const t=Rt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Nt(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=It(n)!==i||It(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}(t);let a=(i?It(n.width):n.width)/r,s=(i?It(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}function Ut(e,t,n,r){void 0===t&&(t=!1);const o=e.getBoundingClientRect(),i=Lt(e);let a=Ct(1);t&&(a=Et(e));const s=Ct(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const e=r;let t=wt(i),n=Wt(t);for(;n&&r&&e!==t;){const e=Et(n),r=n.getBoundingClientRect(),o=Rt(n),i=r.left+(n.clientLeft+parseFloat(o.paddingLeft))*e.x,a=r.top+(n.clientTop+parseFloat(o.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=a,t=wt(n),n=Wt(t)}}return function(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}({width:u,height:d,x:l,y:c})}function Dt(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Vt(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=Lt(e),u=o||i?[...c?kt(c):[],...kt(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=c&&s?function(e,t){let n,r=null;const o=At(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:p,height:f}=c;if(s||t(),!p||!f)return;const h={rootMargin:-xt(d)+"px "+-xt(o.clientWidth-(u+p))+"px "+-xt(o.clientHeight-(d+f))+"px "+-xt(u)+"px",threshold:yt(0,vt(1,l))||1};let m=!0;function b(t){const r=t[0].intersectionRatio;if(r!==l){if(!m)return a();r?a(!1,r):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}1!==r||Dt(c,e.getBoundingClientRect())||a(),m=!1}try{r=new IntersectionObserver(b,{...h,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(b,h)}r.observe(e)}(!0),i}(c,n):null;let p,f=-1,h=null;a&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),c&&!l&&h.observe(c),h.observe(t));let m=l?Ut(e):null;return l&&function t(){const r=Ut(e);m&&!Dt(m,r)&&n();m=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(p)}}var St=e.useLayoutEffect,Ot=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Yt=function(){};function Mt(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function jt(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat(Mt(e,a)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var Tt=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===v(e)&&null!==e?[e]:[];var t},Ht=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,C({},A(e,Ot))},Jt=function(e,t,n){var r=e.cx,o=e.getStyles,i=e.getClassNames,a=e.className;return{css:o(t,e),className:r(null!=n?n:{},i(t,e),a)}};function zt(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Pt(e){return zt(e)?window.pageYOffset:e.scrollTop}function Kt(e,t){zt(e)?window.scrollTo(0,t):e.scrollTop=t}function qt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Yt,o=Pt(e),i=t-o,a=0;!function t(){var s,l=i*((s=(s=a+=10)/n-1)*s*s+1)+o;Kt(e,l),a<n?window.requestAnimationFrame(t):r(e)}()}function $t(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?Kt(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&Kt(e,Math.max(t.offsetTop-o,0))}function en(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var tn=!1,nn={get passive(){return tn=!0}},rn="undefined"!=typeof window?window:{};rn.addEventListener&&rn.removeEventListener&&(rn.addEventListener("p",Yt,nn),rn.removeEventListener("p",Yt,!1));var on=tn;function an(e){return null!=e}function sn(e,t,n){return e?t:n}var ln=["children","innerProps"],cn=["children","innerProps"];function un(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var u,d=l.getBoundingClientRect().height,p=n.getBoundingClientRect(),f=p.bottom,h=p.height,m=p.top,b=n.offsetParent.getBoundingClientRect().top,g=a?window.innerHeight:zt(u=l)?window.innerHeight:u.clientHeight,_=Pt(l),v=parseInt(getComputedStyle(n).marginBottom,10),y=parseInt(getComputedStyle(n).marginTop,10),I=b-y,x=g-m,C=I+_,G=d-_-m,B=f-g+_+v,w=_+m-y,A=160;switch(o){case"auto":case"bottom":if(x>=h)return{placement:"bottom",maxHeight:t};if(G>=h&&!a)return i&&qt(l,B,A),{placement:"bottom",maxHeight:t};if(!a&&G>=r||a&&x>=r)return i&&qt(l,B,A),{placement:"bottom",maxHeight:a?x-v:G-v};if("auto"===o||a){var F=t,N=a?I:C;return N>=r&&(F=Math.min(N-v-s,t)),{placement:"top",maxHeight:F}}if("bottom"===o)return i&&Kt(l,B),{placement:"bottom",maxHeight:t};break;case"top":if(I>=h)return{placement:"top",maxHeight:t};if(C>=h&&!a)return i&&qt(l,w,A),{placement:"top",maxHeight:t};if(!a&&C>=r||a&&I>=r){var X=t;return(!a&&C>=r||a&&I>=r)&&(X=a?I-y:C-y),i&&qt(l,w,A),{placement:"top",maxHeight:X}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return c}var dn,pn=function(e){return"auto"===e?"bottom":e},fn=e.createContext(null),hn=function(t){var n=t.children,r=t.minMenuHeight,o=t.maxMenuHeight,i=t.menuPlacement,a=t.menuPosition,s=t.menuShouldScrollIntoView,l=t.theme,c=(e.useContext(fn)||{}).setPortalPlacement,u=e.useRef(null),d=w(e.useState(o),2),p=d[0],f=d[1],h=w(e.useState(null),2),m=h[0],b=h[1],g=l.spacing.controlHeight;return St((function(){var e=u.current;if(e){var t="fixed"===a,n=un({maxHeight:o,menuEl:e,minHeight:r,placement:i,shouldScroll:s&&!t,isFixedPosition:t,controlHeight:g});f(n.maxHeight),b(n.placement),null==c||c(n.placement)}}),[o,i,a,s,r,c,g]),n({ref:u,placerProps:C(C({},t),{},{placement:m||pn(i),maxHeight:p})})},mn=function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return gt("div",N({},Jt(e,"menu",{menu:!0}),{ref:n},r),t)},bn=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return C({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},gn=bn,_n=bn,vn=["size"],yn=["innerProps","isRtl","size"];var In,xn,Cn="production"===process.env.NODE_ENV?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application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AgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},Gn=function(e){var t=e.size,n=A(e,vn);return gt("svg",N({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Cn},n))},Bn=function(e){return gt(Gn,N({size:20},e),gt("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},wn=function(e){return gt(Gn,N({size:20},e),gt("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},An=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return C({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*o,":hover":{color:n?i.neutral80:i.neutral40}})},Fn=An,Nn=An,Xn=function(){var e=_t.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(dn||(In=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],xn||(xn=In.slice(0)),dn=Object.freeze(Object.defineProperties(In,{raw:{value:Object.freeze(xn)}})))),Qn=function(e){var t=e.delay,n=e.offset;return gt("span",{css:_t({animation:"".concat(Xn," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"production"===process.env.NODE_ENV?"":";label:LoadingDot;","production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZn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aXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},Rn=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,i=e.innerProps,a=e.menuIsOpen;return gt("div",N({ref:o},Jt(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":a}),i,{"aria-disabled":n||void 0}),t)},Zn=["data"],kn=function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,i=e.Heading,a=e.headingProps,s=e.innerProps,l=e.label,c=e.theme,u=e.selectProps;return gt("div",N({},Jt(e,"group",{group:!0}),s),gt(i,N({},a,{selectProps:u,theme:c,getStyles:r,getClassNames:o,cx:n}),l),gt("div",null,t))},Wn=["innerRef","isDisabled","isHidden","inputClassName"],Ln={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},En={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":C({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Ln)},Un=function(e){return C({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Ln)},Dn=function(e){var t=e.cx,n=e.value,r=Ht(e),o=r.innerRef,i=r.isDisabled,a=r.isHidden,s=r.inputClassName,l=A(r,Wn);return gt("div",N({},Jt(e,"input",{"input-container":!0}),{"data-value":n||""}),gt("input",N({className:t({input:!0},s),ref:o,style:Un(a),disabled:i},l)))},Vn=function(e){var t=e.children,n=e.innerProps;return gt("div",n,t)};var Sn=function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,i=e.isDisabled,a=e.removeProps,s=e.selectProps,l=n.Container,c=n.Label,u=n.Remove;return gt(l,{data:r,innerProps:C(C({},Jt(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:s},gt(c,{data:r,innerProps:C({},Jt(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),gt(u,{data:r,innerProps:C(C({},Jt(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:s}))},On={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return gt("div",N({},Jt(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||gt(Bn,null))},Control:Rn,DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return gt("div",N({},Jt(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||gt(wn,null))},DownChevron:wn,CrossIcon:Bn,Group:kn,GroupHeading:function(e){var t=Ht(e);t.data;var n=A(t,Zn);return gt("div",N({},Jt(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return gt("div",N({},Jt(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return gt("span",N({},t,Jt(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:Dn,LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=void 0===r?4:r,i=A(e,yn);return gt("div",N({},Jt(C(C({},i),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),gt(Qn,{delay:0,offset:n}),gt(Qn,{delay:160,offset:!0}),gt(Qn,{delay:320,offset:!n}))},Menu:mn,MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return gt("div",N({},Jt(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(n){var r=n.appendTo,o=n.children,i=n.controlElement,a=n.innerProps,s=n.menuPlacement,l=n.menuPosition,c=e.useRef(null),u=e.useRef(null),d=w(e.useState(pn(s)),2),p=d[0],f=d[1],h=e.useMemo((function(){return{setPortalPlacement:f}}),[]),m=w(e.useState(null),2),b=m[0],g=m[1],_=e.useCallback((function(){if(i){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(i),t="fixed"===l?0:window.pageYOffset,n=e[p]+t;n===(null==b?void 0:b.offset)&&e.left===(null==b?void 0:b.rect.left)&&e.width===(null==b?void 0:b.rect.width)||g({offset:n,rect:e})}}),[i,l,p,null==b?void 0:b.offset,null==b?void 0:b.rect.left,null==b?void 0:b.rect.width]);St((function(){_()}),[_]);var v=e.useCallback((function(){"function"==typeof u.current&&(u.current(),u.current=null),i&&c.current&&(u.current=Vt(i,c.current,_,{elementResize:"ResizeObserver"in window}))}),[i,_]);St((function(){v()}),[v]);var y=e.useCallback((function(e){c.current=e,v()}),[v]);if(!r&&"fixed"!==l||!b)return null;var I=gt("div",N({ref:y},Jt(C(C({},n),{},{offset:b.offset,position:l,rect:b.rect}),"menuPortal",{"menu-portal":!0}),a),o);return gt(fn.Provider,{value:h},r?t.createPortal(I,r):I)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,o=A(e,cn);return gt("div",N({},Jt(C(C({},o),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,o=A(e,ln);return gt("div",N({},Jt(C(C({},o),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:Sn,MultiValueContainer:Vn,MultiValueLabel:Vn,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return gt("div",N({role:"button"},n),t||gt(Bn,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.innerRef,a=e.innerProps;return gt("div",N({},Jt(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:i,"aria-disabled":n},a),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return gt("div",N({},Jt(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return gt("div",N({},Jt(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return gt("div",N({},Jt(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,o=e.hasValue;return gt("div",N({},Jt(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},Yn=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Mn(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||Yn(r)&&Yn(o)))return!1;var r,o;return!0}for(var jn="production"===process.env.NODE_ENV?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},Tn=function(e){return gt("span",N({css:jn},e))},Hn={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,i=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,i=void 0===o?"":o,a=e.selectValue,s=e.isDisabled,l=e.isSelected,c=e.isAppleDevice,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(i," focused, ").concat(u(a,n),".");if("menu"===t&&c){var d=s?" disabled":"",p="".concat(l?" selected":"").concat(d);return"".concat(i).concat(p,", ").concat(u(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},Jn=function(t){var n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,i=t.focusableOptions,a=t.isFocused,s=t.selectValue,l=t.selectProps,c=t.id,u=t.isAppleDevice,d=l.ariaLiveMessages,p=l.getOptionLabel,f=l.inputValue,h=l.isMulti,m=l.isOptionDisabled,b=l.isSearchable,g=l.menuIsOpen,_=l.options,v=l.screenReaderStatus,y=l.tabSelectsValue,I=l.isLoading,x=l["aria-label"],G=l["aria-live"],B=e.useMemo((function(){return C(C({},Hn),d||{})}),[d]),w=e.useMemo((function(){var e,t="";if(n&&B.onChange){var r=n.option,o=n.options,i=n.removedValue,a=n.removedValues,l=n.value,c=i||r||(e=l,Array.isArray(e)?null:e),u=c?p(c):"",d=o||a||void 0,f=d?d.map(p):[],h=C({isDisabled:c&&m(c,s),label:u,labels:f},n);t=B.onChange(h)}return t}),[n,B,m,s,p]),A=e.useMemo((function(){var e="",t=r||o,n=!!(r&&s&&s.includes(r));if(t&&B.onFocus){var a={focused:t,label:p(t),isDisabled:m(t,s),isSelected:n,options:i,context:t===r?"menu":"value",selectValue:s,isAppleDevice:u};e=B.onFocus(a)}return e}),[r,o,p,m,B,i,s,u]),F=e.useMemo((function(){var e="";if(g&&_.length&&!I&&B.onFilter){var t=v({count:i.length});e=B.onFilter({inputValue:f,resultsMessage:t})}return e}),[i,f,g,B,_,v,I]),N="initial-input-focus"===(null==n?void 0:n.action),X=e.useMemo((function(){var e="";if(B.guidance){var t=o?"value":g?"menu":"input";e=B.guidance({"aria-label":x,context:t,isDisabled:r&&m(r,s),isMulti:h,isSearchable:b,tabSelectsValue:y,isInitialFocus:N})}return e}),[x,r,o,h,m,b,g,B,s,y,N]),Q=gt(e.Fragment,null,gt("span",{id:"aria-selection"},w),gt("span",{id:"aria-focused"},A),gt("span",{id:"aria-results"},F),gt("span",{id:"aria-guidance"},X));return gt(e.Fragment,null,gt(Tn,{id:c},N&&Q),gt(Tn,{"aria-live":G,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!N&&Q))},zn=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Pn=new RegExp("["+zn.map((function(e){return e.letters})).join("")+"]","g"),Kn={},qn=0;qn<zn.length;qn++)for(var $n=zn[qn],er=0;er<$n.letters.length;er++)Kn[$n.letters[er]]=$n.base;var tr=function(e){return e.replace(Pn,(function(e){return Kn[e]}))},nr=function(e,t){void 0===t&&(t=Mn);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}(tr),rr=function(e){return e.replace(/^\s+|\s+$/g,"")},or=function(e){return"".concat(e.label," ").concat(e.value)},ir=["innerRef"];function ar(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Object.entries(e).filter((function(e){var t=w(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=w(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}(A(e,ir),"onExited","in","enter","exit","appear");return gt("input",N({ref:t},n,{css:_t({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"production"===process.env.NODE_ENV?"":";label:DummyInput;","production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVt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xuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var sr=["boxSizing","height","overflow","paddingRight","position"],lr={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function cr(e){e.cancelable&&e.preventDefault()}function ur(e){e.stopPropagation()}function dr(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function pr(){return"ontouchstart"in window||navigator.maxTouchPoints}var fr=!("undefined"==typeof window||!window.document||!window.document.createElement),hr=0,mr={capture:!1,passive:!1};var br=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},gr="production"===process.env.NODE_ENV?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21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iAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}};function _r(t){var n=t.children,r=t.lockEnabled,o=t.captureEnabled,i=function(t){var n=t.isEnabled,r=t.onBottomArrive,o=t.onBottomLeave,i=t.onTopArrive,a=t.onTopLeave,s=e.useRef(!1),l=e.useRef(!1),c=e.useRef(0),u=e.useRef(null),d=e.useCallback((function(e,t){if(null!==u.current){var n=u.current,c=n.scrollTop,d=n.scrollHeight,p=n.clientHeight,f=u.current,h=t>0,m=d-p-c,b=!1;m>t&&s.current&&(o&&o(e),s.current=!1),h&&l.current&&(a&&a(e),l.current=!1),h&&t>m?(r&&!s.current&&r(e),f.scrollTop=d,b=!0,s.current=!0):!h&&-t>c&&(i&&!l.current&&i(e),f.scrollTop=0,b=!0,l.current=!0),b&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[r,o,i,a]),p=e.useCallback((function(e){d(e,e.deltaY)}),[d]),f=e.useCallback((function(e){c.current=e.changedTouches[0].clientY}),[]),h=e.useCallback((function(e){var t=c.current-e.changedTouches[0].clientY;d(e,t)}),[d]),m=e.useCallback((function(e){if(e){var t=!!on&&{passive:!1};e.addEventListener("wheel",p,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",h,t)}}),[h,f,p]),b=e.useCallback((function(e){e&&(e.removeEventListener("wheel",p,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",h,!1))}),[h,f,p]);return e.useEffect((function(){if(n){var e=u.current;return m(e),function(){b(e)}}}),[n,m,b]),function(e){u.current=e}}({isEnabled:void 0===o||o,onBottomArrive:t.onBottomArrive,onBottomLeave:t.onBottomLeave,onTopArrive:t.onTopArrive,onTopLeave:t.onTopLeave}),a=function(t){var n=t.isEnabled,r=t.accountForScrollbars,o=void 0===r||r,i=e.useRef({}),a=e.useRef(null),s=e.useCallback((function(e){if(fr){var t=document.body,n=t&&t.style;if(o&&sr.forEach((function(e){var t=n&&n[e];i.current[e]=t})),o&&hr<1){var r=parseInt(i.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+r||0;Object.keys(lr).forEach((function(e){var t=lr[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&pr()&&(t.addEventListener("touchmove",cr,mr),e&&(e.addEventListener("touchstart",dr,mr),e.addEventListener("touchmove",ur,mr))),hr+=1}}),[o]),l=e.useCallback((function(e){if(fr){var t=document.body,n=t&&t.style;hr=Math.max(hr-1,0),o&&hr<1&&sr.forEach((function(e){var t=i.current[e];n&&(n[e]=t)})),t&&pr()&&(t.removeEventListener("touchmove",cr,mr),e&&(e.removeEventListener("touchstart",dr,mr),e.removeEventListener("touchmove",ur,mr)))}}),[o]);return e.useEffect((function(){if(n){var e=a.current;return s(e),function(){l(e)}}}),[n,s,l]),function(e){a.current=e}}({isEnabled:r});return gt(e.Fragment,null,r&&gt("div",{onClick:br,css:gr}),n((function(e){i(e),a(e)})))}var vr="production"===process.env.NODE_ENV?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},yr=function(e){var t=e.name,n=e.onFocus;return gt("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:vr,value:"",onChange:function(){}})};function Ir(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function xr(){return Ir(/^Mac/i)}function Cr(){return Ir(/^iPhone/i)||Ir(/^iPad/i)||xr()&&navigator.maxTouchPoints>1}var Gr,Br={clearIndicator:Nn,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.theme,i=o.colors,a=o.borderRadius;return C({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:r?i.primary:i.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:r?i.primary:i.neutral30}})},dropdownIndicator:Fn,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,o=n.spacing;return C({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return C({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,i=o.spacing,a=o.colors;return C(C({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},En),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,i=o.colors,a=o.spacing.baseUnit;return C({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*a})},loadingMessage:_n,menu:function(e,t){var n,r=e.placement,o=e.theme,i=o.borderRadius,a=o.spacing,s=o.colors;return C((I(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),I(n,"position","absolute"),I(n,"width","100%"),I(n,"zIndex",1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return C({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors;return C({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,i=e.cropWithEllipsis;return C({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors,a=e.isFocused;return C({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:a?i.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:gn,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.theme,a=i.spacing,s=i.colors;return C({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?s.primary:r?s.primary25:"transparent",color:n?s.neutral20:o?s.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?s.primary:s.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return C({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,i=r.colors;return C({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,i=e.selectProps.controlShouldRenderValue;return C({alignItems:"center",display:r&&o&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},wr={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Ar={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:en(),captureMenuScroll:!en(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=C({ignoreCase:!0,ignoreAccents:!0,stringify:or,trim:!0,matchFrom:"any"},Gr),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,a=n.trim,s=n.matchFrom,l=a?rr(t):t,c=a?rr(i(e)):i(e);return r&&(l=l.toLowerCase(),c=c.toLowerCase()),o&&(l=nr(l),c=tr(c)),"start"===s?c.substr(0,l.length)===l:c.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Fr(e,t,n,r){return{type:"option",data:t,isDisabled:Lr(e,t,n),isSelected:Er(e,t,n),label:kr(e,t),value:Wr(e,t),index:r}}function Nr(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return Fr(e,n,t,r)})).filter((function(t){return Rr(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=Fr(e,n,t,r);return Rr(e,i)?i:void 0})).filter(an)}function Xr(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,W(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Qr(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,W(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function Rr(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,s=t.value;return(!Dr(e)||!i)&&Ur(e,{label:a,value:s,data:o},r)}var Zr=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},kr=function(e,t){return e.getOptionLabel(t)},Wr=function(e,t){return e.getOptionValue(t)};function Lr(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Er(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=Wr(e,t);return n.some((function(t){return Wr(e,t)===r}))}function Ur(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Dr=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},Vr=1,Sr=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Q(e,t)}(n,e.Component);var t=function(e){var t=Z();return function(){var n,r=R(e);if(t){var o=R(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return k(this,n)}}(n);function n(e){var r;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(r=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.isAppleDevice=xr()||Cr(),r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,o=n.onChange,i=n.name;t.name=i,r.ariaOnChange(e,t),o(e,t)},r.setValue=function(e,t,n){var o=r.props,i=o.closeMenuOnSelect,a=o.isMulti,s=o.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:s}),i&&(r.setState({inputIsHiddenAfterUpdate:!a}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,o=t.isMulti,i=t.name,a=r.state.selectValue,s=o&&r.isOptionSelected(e,a),l=r.isOptionDisabled(e,a);if(s){var c=r.getOptionValue(e);r.setValue(a.filter((function(e){return r.getOptionValue(e)!==c})),"deselect-option",e)}else{if(l)return void r.ariaOnChange(e,{action:"select-option",option:e,name:i});o?r.setValue([].concat(W(a),[e]),"select-option",e):r.setValue(e,"select-option")}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,o=r.getOptionValue(e),i=n.filter((function(e){return r.getOptionValue(e)!==o})),a=sn(t,i,i[0]||null);r.onChange(a,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(sn(r.props.isMulti,[],null),{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],o=t.slice(0,t.length-1),i=sn(e,o,o[0]||null);n&&r.onChange(i,{action:"pop-value",removedValue:n})},r.getFocusedOptionId=function(e){return Zr(r.state.focusableOptionsWithIds,e)},r.getFocusableOptionsWithIds=function(){return Qr(Nr(r.props,r.state.selectValue),r.getElementId("option"))},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return jt.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return kr(r.props,e)},r.getOptionValue=function(e){return Wr(r.props,e)},r.getStyles=function(e,t){var n=r.props.unstyled,o=Br[e](t,n);o.boxSizing="border-box";var i=r.props.styles[e];return i?i(o,t):o},r.getClassNames=function(e,t){var n,o;return null===(n=(o=r.props.classNames)[e])||void 0===n?void 0:n.call(o,t)},r.getElementId=function(e){return"".concat(r.state.instancePrefix,"-").concat(e)},r.getComponents=function(){return e=r.props,C(C({},On),e.components);var e},r.buildCategorizedOptions=function(){return Nr(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return Xr(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:C({value:e},t)})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},r.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||r.props.isDisabled)){var t=r.props,n=t.isMulti,o=t.menuIsOpen;r.focusInput(),o?(r.setState({inputIsHiddenAfterUpdate:!n}),r.onMenuClose()):r.openMenu("first"),e.preventDefault()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.preventDefault(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout((function(){return r.focusInput()})))},r.onScroll=function(e){"boolean"==typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&zt(e.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var o=Math.abs(n.clientX-r.initialTouchX),i=Math.abs(n.clientY-r.initialTouchY);r.userIsDragging=o>5||i>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=r.props.inputValue,n=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(n,{action:"input-change",prevInputValue:t}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){var t=r.props.inputValue;r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur",prevInputValue:t}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){if(!r.blockOptionHover&&r.state.focusedOption!==e){var t=r.getFocusableOptions().indexOf(e);r.setState({focusedOption:e,focusedOptionId:t>-1?r.getFocusedOptionId(e):null})}},r.shouldHideSelectedOptions=function(){return Dr(r.props)},r.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),r.focus()},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,o=t.backspaceRemovesValue,i=t.escapeClearsValue,a=t.inputValue,s=t.isClearable,l=t.isDisabled,c=t.menuIsOpen,u=t.onKeyDown,d=t.tabSelectsValue,p=t.openMenuOnFocus,f=r.state,h=f.focusedOption,m=f.focusedValue,b=f.selectValue;if(!(l||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;r.focusValue("previous");break;case"ArrowRight":if(!n||a)return;r.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)r.removeValue(m);else{if(!o)return;n?r.popValue():s&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!c||!d||!h||p&&r.isOptionSelected(h,b))return;r.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(c){if(!h)return;if(r.isComposing)return;r.selectOption(h);break}return;case"Escape":c?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:a}),r.onMenuClose()):s&&i&&r.clearValue();break;case" ":if(a)return;if(!c){r.openMenu("first");break}if(!h)return;r.selectOption(h);break;case"ArrowUp":c?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":c?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!c)return;r.focusOption("pageup");break;case"PageDown":if(!c)return;r.focusOption("pagedown");break;case"Home":if(!c)return;r.focusOption("first");break;case"End":if(!c)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.state.instancePrefix="react-select-"+(r.props.instanceId||++Vr),r.state.selectValue=Tt(e.value),e.menuIsOpen&&r.state.selectValue.length){var o=r.getFocusableOptionsWithIds(),i=r.buildFocusableOptions(),a=i.indexOf(r.state.selectValue[0]);r.state.focusableOptionsWithIds=o,r.state.focusedOption=i[a],r.state.focusedOptionId=Zr(o,i[a])}return r}return function(e,t,n){t&&X(e.prototype,t),n&&X(e,n),Object.defineProperty(e,"prototype",{writable:!1})}(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&$t(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&($t(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var s=i.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a],focusedOptionId:this.getFocusedOptionId(i[a])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o<i&&(a=o+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(wr):C(C({},wr),this.props.theme):wr}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,i=this.selectOption,a=this.setValue,s=this.props,l=s.isMulti,c=s.isRtl,u=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:l,isRtl:c,options:u,selectOption:i,selectProps:s,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return Lr(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Er(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Ur(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,o=e.inputId,i=e.inputValue,a=e.tabIndex,s=e.form,l=e.menuIsOpen,c=e.required,u=this.getComponents().Input,d=this.state,p=d.inputIsHidden,f=d.ariaSelection,h=this.commonProps,m=o||this.getElementId("input"),b=C(C(C({"aria-autocomplete":"list","aria-expanded":l,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":c,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},l&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==f?void 0:f.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?r.createElement(u,N({},h,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:m,innerRef:this.getInputRef,isDisabled:t,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:s,type:"text",value:i},b)):r.createElement(ar,N({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Yt,onFocus:this.onInputFocus,disabled:t,tabIndex:a,inputMode:"none",form:s,value:""},b))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,o=t.MultiValueContainer,i=t.MultiValueLabel,a=t.MultiValueRemove,s=t.SingleValue,l=t.Placeholder,c=this.commonProps,u=this.props,d=u.controlShouldRenderValue,p=u.isDisabled,f=u.isMulti,h=u.inputValue,m=u.placeholder,b=this.state,g=b.selectValue,_=b.focusedValue,v=b.isFocused;if(!this.hasValue()||!d)return h?null:r.createElement(l,N({},c,{key:"placeholder",isDisabled:p,isFocused:v,innerProps:{id:this.getElementId("placeholder")}}),m);if(f)return g.map((function(t,s){var l=t===_,u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return r.createElement(n,N({},c,{components:{Container:o,Label:i,Remove:a},isFocused:l,isDisabled:p,key:u,index:s,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(h)return null;var y=g[0];return r.createElement(s,N({},c,{data:y,isDisabled:p}),this.formatOptionLabel(y,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,i=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||o||!this.hasValue()||i)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return r.createElement(e,N({},t,{innerProps:s,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,i=n.isLoading,a=this.state.isFocused;if(!e||!i)return null;return r.createElement(e,N({},t,{innerProps:{"aria-hidden":"true"},isDisabled:o,isFocused:a}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var o=this.commonProps,i=this.props.isDisabled,a=this.state.isFocused;return r.createElement(n,N({},o,{isDisabled:i,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,o=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return r.createElement(e,N({},t,{innerProps:i,isDisabled:n,isFocused:o}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,o=t.GroupHeading,i=t.Menu,a=t.MenuList,s=t.MenuPortal,l=t.LoadingMessage,c=t.NoOptionsMessage,u=t.Option,d=this.commonProps,p=this.state.focusedOption,f=this.props,h=f.captureMenuScroll,m=f.inputValue,b=f.isLoading,g=f.loadingMessage,_=f.minMenuHeight,v=f.maxMenuHeight,y=f.menuIsOpen,I=f.menuPlacement,x=f.menuPosition,C=f.menuPortalTarget,G=f.menuShouldBlockScroll,B=f.menuShouldScrollIntoView,w=f.noOptionsMessage,A=f.onMenuScrollToTop,F=f.onMenuScrollToBottom;if(!y)return null;var X,Q=function(t,n){var o=t.type,i=t.data,a=t.isDisabled,s=t.isSelected,l=t.label,c=t.value,f=p===i,h=a?void 0:function(){return e.onOptionHover(i)},m=a?void 0:function(){return e.selectOption(i)},b="".concat(e.getElementId("option"),"-").concat(n),g={id:b,onClick:m,onMouseMove:h,onMouseOver:h,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:s};return r.createElement(u,N({},d,{innerProps:g,data:i,isDisabled:a,isSelected:s,key:b,label:l,type:o,value:c,isFocused:f,innerRef:f?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())X=this.getCategorizedOptions().map((function(t){if("group"===t.type){var i=t.data,a=t.options,s=t.index,l="".concat(e.getElementId("group"),"-").concat(s),c="".concat(l,"-heading");return r.createElement(n,N({},d,{key:l,data:i,options:a,Heading:o,headingProps:{id:c,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return Q(e,"".concat(s,"-").concat(e.index))})))}if("option"===t.type)return Q(t,"".concat(t.index))}));else if(b){var R=g({inputValue:m});if(null===R)return null;X=r.createElement(l,d,R)}else{var Z=w({inputValue:m});if(null===Z)return null;X=r.createElement(c,d,Z)}var k={minMenuHeight:_,maxMenuHeight:v,menuPlacement:I,menuPosition:x,menuShouldScrollIntoView:B},W=r.createElement(hn,N({},d,k),(function(t){var n=t.ref,o=t.placerProps,s=o.placement,l=o.maxHeight;return r.createElement(i,N({},d,k,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:b,placement:s}),r.createElement(_r,{captureEnabled:h,onTopArrive:A,onBottomArrive:F,lockEnabled:G},(function(t){return r.createElement(a,N({},d,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":d.isMulti,id:e.getElementId("listbox")},isLoading:b,maxHeight:l,focusedOption:p}),X)})))}));return C||"fixed"===x?r.createElement(s,N({},d,{appendTo:C,controlElement:this.controlRef,menuPlacement:I,menuPosition:x}),W):W}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,o=t.isDisabled,i=t.isMulti,a=t.name,s=t.required,l=this.state.selectValue;if(s&&!this.hasValue()&&!o)return r.createElement(yr,{name:a,onFocus:this.onValueInputFocus});if(a&&!o){if(i){if(n){var c=l.map((function(t){return e.getOptionValue(t)})).join(n);return r.createElement("input",{name:a,type:"hidden",value:c})}var u=l.length>0?l.map((function(t,n){return r.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})})):r.createElement("input",{name:a,type:"hidden",value:""});return r.createElement("div",null,u)}var d=l[0]?this.getOptionValue(l[0]):"";return r.createElement("input",{name:a,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,o=t.focusedOption,i=t.focusedValue,a=t.isFocused,s=t.selectValue,l=this.getFocusableOptions();return r.createElement(Jn,N({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:o,focusedValue:i,isFocused:a,selectValue:s,focusableOptions:l,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,o=e.SelectContainer,i=e.ValueContainer,a=this.props,s=a.className,l=a.id,c=a.isDisabled,u=a.menuIsOpen,d=this.state.isFocused,p=this.commonProps=this.getCommonProps();return r.createElement(o,N({},p,{className:s,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:d}),this.renderLiveRegion(),r.createElement(t,N({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:d,menuIsOpen:u}),r.createElement(i,N({},p,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),r.createElement(n,N({},p,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,a=t.isFocused,s=t.prevWasFocused,l=t.instancePrefix,c=e.options,u=e.value,d=e.menuIsOpen,p=e.inputValue,f=e.isMulti,h=Tt(u),m={};if(n&&(u!==n.value||c!==n.options||d!==n.menuIsOpen||p!==n.inputValue)){var b=d?function(e,t){return Xr(Nr(e,t))}(e,h):[],g=d?Qr(Nr(e,h),"".concat(l,"-option")):[],_=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,h):null,v=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,b);m={selectValue:h,focusedOption:v,focusedOptionId:Zr(g,v),focusableOptionsWithIds:g,focusedValue:_,clearFocusValueOnUpdate:!1}}var y=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},I=i,x=a&&s;return a&&!x&&(I={value:sn(f,h,h[0]||null),options:h,action:"initial-input-focus"},x=!s),"initial-input-focus"===(null==i?void 0:i.action)&&(I=null),C(C(C({},m),y),{},{prevProps:e,ariaSelection:I,prevWasFocused:x})}}]),n}();Sr.defaultProps=Ar;var Or=e.forwardRef((function(t,n){var o=function(t){var n=t.defaultInputValue,r=void 0===n?"":n,o=t.defaultMenuIsOpen,i=void 0!==o&&o,a=t.defaultValue,s=void 0===a?null:a,l=t.inputValue,c=t.menuIsOpen,u=t.onChange,d=t.onInputChange,p=t.onMenuClose,f=t.onMenuOpen,h=t.value,m=A(t,F),b=w(e.useState(void 0!==l?l:r),2),g=b[0],_=b[1],v=w(e.useState(void 0!==c?c:i),2),y=v[0],I=v[1],x=w(e.useState(void 0!==h?h:s),2),G=x[0],B=x[1],N=e.useCallback((function(e,t){"function"==typeof u&&u(e,t),B(e)}),[u]),X=e.useCallback((function(e,t){var n;"function"==typeof d&&(n=d(e,t)),_(void 0!==n?n:e)}),[d]),Q=e.useCallback((function(){"function"==typeof f&&f(),I(!0)}),[f]),R=e.useCallback((function(){"function"==typeof p&&p(),I(!1)}),[p]),Z=void 0!==l?l:g,k=void 0!==c?c:y,W=void 0!==h?h:G;return C(C({},m),{},{inputValue:Z,menuIsOpen:k,onChange:N,onInputChange:X,onMenuClose:R,onMenuOpen:Q,value:W})}(t);return r.createElement(Sr,N({ref:n},o))})),Yr=Or,Mr=function(e){var t=e.placeholder,n=e.value,r=e.backgroundColor,o=void 0===r?"#fff":r,i=e.borderColor,a=void 0===i?"var(--no-color)":i,s=e.color,l=void 0===s?"#000":s,c=e.svgFill,u=void 0===c?"#333":c,d=e.image,p=e.singleicons,b=e.options,g=e.onChange,_=e.isClearable,v=e.isDisabled,y=e.isSearchable,I=e.onBlur,x=e.onKeyDown,C=e.onInputChange,G={menuPortal:function(e){return m(m({},e),{zIndex:9999})},menu:function(e){return m(m({},e),{zIndex:9999,left:"0px",borderRadius:"4px",overflow:"hidden"})},menuList:function(e){return m(m({},e),{padding:0,minWidth:250,fontSize:"0.95em","&::-webkit-scrollbar-track":{boxShadow:"inset 0 0 6px rgba(0,0,0,0.3)",borderRadius:"3px",backgroundColor:"#fff"},"&::-webkit-scrollbar":{width:"4px",backgroundColor:"#fff"},"&::-webkit-scrollbar-thumb":{borderRadius:"3px",boxShadow:"inset 0 0 6px rgba(0, 0, 0, .3)",backgroundColor:"#555"}})},container:function(e){return m(m({},e),{width:"auto"})},control:function(e){return m(m({},e),{padding:0,backgroundColor:o,border:"1px solid ".concat(a,"!important"),borderRadius:"8px!important",boxShadow:"none!important",height:"42px",display:"flex",alignItems:"center",alignItemsContent:"center",cursor:"pointer",fontSize:"0.85em"})},placeholder:function(e){return m(m({},e),{color:l,fontSize:"1.2em",fontWeight:"600"})},singleValue:function(e){return m(m({},e),{color:"#000",display:"flex",alignItems:"center",gap:"1em",fontSize:"1.2em",fontWeight:"600"})},indicatorContainer:function(e){return m(m({},e),{color:"#000!important"})},indicatorSeparator:function(e){return m(m({},e),{display:"none"})},dropdownIndicator:function(e){return m(m({},e),{svg:{fill:u,stroke:"#333"}})},option:function(e,t){return m(m({},e),{display:"flex",alignItems:"center",gap:"1em",backgroundColor:t.isSelected?"#F9C201":t.isFocused?"#f0f0f0":"transparent",color:(t.isSelected||t.isFocused,"#000"),":hover":{backgroundColor:"#f0f0f0",color:"#000"}})}};return f.jsx(Yr,{value:n,options:b,styles:G,placeholder:t||"Select an option",isClearable:_,isSearchable:y,onChange:g,components:{Option:function(e){return f.jsxs(On.Option,m({},e,{className:h.ramp_option,children:[d&&f.jsx("img",{src:e.data.icon||"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAD8AAAA/CAYAAABXXxDfAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA4XSURBVHgBvVvdbxxXFT/nzq7thBg7ahHlo+q6jURbVDlB8ECLFKdPvCUv8IQUByEEL6jhH0jyFzR95iGOhMRjkickJGpXUEWoRXZLhSgIskbUlUpbu7UT2zs7czjnnnvv3FnPemfXa07lzPfs/Z3vjynCMVP6h1MLJqF5MOYsArRyghYSzRDiaUQgIuANbBLAZ5BAm0+skTHrzSRfxW/tvAHHSAhjJlqdnc1308uE5hIQnAWkGUTDv0OkSAVx9Luyx9wA4YHhJ+QM6nk+s0kIwoB7CSR38dzWFoyRxgY+vc8SRrhIOS7yW2f73+mAYrSCAiyxRiCBMgkwtzuWI3yN/26bRnodn99bhzHQkcGLWmMDr/HuQuUPON0+8KserJM0QTgHaIrz/EfuOkbPrnTT9MqJc3ttOAKNDF7UO9vLXuXdRZWmfd2B9wW7RnASp0Kaxpm8fUrhBSb0mIBypTAYUr4upZDeOPHcaEwYCTz9afpylsFNXuCMX44HGV7cK3EvUbnHFOe8dBWMBRh4SEglDf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AElFTkSuQmCC",alt:"logo",className:h.ramp_modal_img}),e.data.label]}))},SingleValue:function(e){return f.jsxs(On.SingleValue,m({},e,{children:[p&&f.jsx("img",{src:e.data.icon||window.location.origin+"/img/icons-one.png",alt:"s-logo",className:h.ramp_modal_img}),e.children]}))}},onBlur:I,isDisabled:v,onKeyDown:x,onInputChange:C})},jr=function(e){var t,n,r,o,i,a,s,l,c,u,d,p,m,_,v,y,I,x,C,G,B,w,A,F,N,X,Q,R,Z,k,W,L,E,U,D,V,S,O,Y,M,j,T,H,J,z,P,K,q,$,ee,te,ne=e.tokenSellData;return f.jsx(f.Fragment,{children:f.jsxs("div",{className:h.details_frame,children:[f.jsxs("div",{className:h.f_details_head,children:[f.jsx("div",{}),f.jsxs("div",{className:h.f_details_titles,children:["Sell"," ",null===(r=parseFloat((null===(n=null===(t=null==ne?void 0:ne.response)||void 0===t?void 0:t.offramp_transaction)||void 0===n?void 0:n.from_value)||"0"))||void 0===r?void 0:r.toFixed(4)," ",null===(i=null===(o=null==ne?void 0:ne.response)||void 0===o?void 0:o.offramp_transaction)||void 0===i?void 0:i.from," ",(null===(s=null===(a=null==ne?void 0:ne.response)||void 0===a?void 0:a.offramp_transaction)||void 0===s?void 0:s.network_type)?"(".concat(null===(c=null===(l=null==ne?void 0:ne.response)||void 0===l?void 0:l.offramp_transaction)||void 0===c?void 0:c.network_type,")"):""," ","@"," ",null===(p=parseFloat((null===(d=null===(u=null==ne?void 0:ne.response)||void 0===u?void 0:u.offramp_transaction)||void 0===d?void 0:d.to_value)||"0"))||void 0===p?void 0:p.toFixed(4)," ",null===(_=null===(m=null==ne?void 0:ne.response)||void 0===m?void 0:m.offramp_transaction)||void 0===_?void 0:_.to]})]}),f.jsxs("div",{className:h.f_details_info_box,children:[f.jsxs("div",{className:h.f_details_card,children:[f.jsx("span",{children:"Order Status"}),f.jsxs("span",{className:h.span_d_align,children:[f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:f.jsxs("g",{id:"Flat_Color",fill:"#20bf55","data-name":"Flat Color",children:[f.jsx("path",{d:"M12 22.75a10.75 10.75 0 0 1 0-21.5 10.5 10.5 0 0 1 4.82 1.15.75.75 0 0 1-.68 1.34 9 9 0 0 0-4.14-1A9.25 9.25 0 1 0 21.25 12a2 2 0 0 0 0-.25.75.75 0 1 1 1.5-.14V12A10.76 10.76 0 0 1 12 22.75"}),f.jsx("path",{d:"M11.82 15.41a.7.7 0 0 1-.52-.22l-4.83-4.74a.75.75 0 0 1 0-1.06.77.77 0 0 1 1.07 0l4.29 4.23 9.65-9.49a.77.77 0 0 1 1.07 0 .75.75 0 0 1 0 1.06l-10.18 10a.74.74 0 0 1-.55.22"})]})}),null===(y=null===(v=null==ne?void 0:ne.response)||void 0===v?void 0:v.offramp_transaction)||void 0===y?void 0:y.status]})]}),f.jsxs("div",{className:h.f_details_card,children:[f.jsx("span",{children:"Transaction Hash"}),f.jsxs("span",{className:h.span_d_align,children:[f.jsxs("a",{href:null===(x=null===(I=null==ne?void 0:ne.response)||void 0===I?void 0:I.offramp_transaction)||void 0===x?void 0:x.explorer_url,target:"_blank",rel:"noreferrer",children:[null===(B=null===(G=null===(C=null==ne?void 0:ne.response)||void 0===C?void 0:C.offramp_transaction)||void 0===G?void 0:G.transaction_hash)||void 0===B?void 0:B.slice(0,10),"...",null===(F=null===(A=null===(w=null==ne?void 0:ne.response)||void 0===w?void 0:w.offramp_transaction)||void 0===A?void 0:A.transaction_hash)||void 0===F?void 0:F.slice((null===(Q=null===(X=null===(N=null==ne?void 0:ne.response)||void 0===N?void 0:N.offramp_transaction)||void 0===X?void 0:X.transaction_hash)||void 0===Q?void 0:Q.length)-10,null===(k=null===(Z=null===(R=null==ne?void 0:ne.response)||void 0===R?void 0:R.offramp_transaction)||void 0===Z?void 0:Z.transaction_hash)||void 0===k?void 0:k.length)]}),f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"#F9C201",className:"size-6",style:{cursor:"pointer"},fill:"none",width:"24",height:"24",onClick:function(){return b(void 0,void 0,void 0,(function(){var e,t;return g(this,(function(n){return window.open(null===(t=null===(e=null==ne?void 0:ne.response)||void 0===e?void 0:e.offramp_transaction)||void 0===t?void 0:t.explorer_url,"_blank"),[2]}))}))},children:f.jsx("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 21a9.004 9.004 0 0 0 8.716-6.747M12 21a9.004 9.004 0 0 1-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 0 1 7.843 4.582M12 3a8.997 8.997 0 0 0-7.843 4.582m15.686 0A11.953 11.953 0 0 1 12 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0 1 21 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0 1 12 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 0 1 3 12c0-1.605.42-3.113 1.157-4.418"})})]})]}),f.jsxs("div",{className:h.f_details_card,children:[f.jsx("span",{children:"Order Date"}),f.jsxs("span",{children:[" ",new Date((null===(L=null===(W=null==ne?void 0:ne.response)||void 0===W?void 0:W.offramp_transaction)||void 0===L?void 0:L.created_at)||"").toUTCString().replace("GMT","UTC")]})]}),f.jsxs("div",{className:h.f_details_card,children:[f.jsx("span",{children:"Exchange Rate"}),f.jsxs("span",{children:["1 ",null===(U=null===(E=null==ne?void 0:ne.response)||void 0===E?void 0:E.offramp_transaction)||void 0===U?void 0:U.from," ="," ",null===(S=parseFloat((null===(V=null===(D=null==ne?void 0:ne.response)||void 0===D?void 0:D.offramp_transaction)||void 0===V?void 0:V.exchange_rate)||""))||void 0===S?void 0:S.toFixed(4)," ",null===(Y=null===(O=null==ne?void 0:ne.response)||void 0===O?void 0:O.offramp_transaction)||void 0===Y?void 0:Y.to]})]}),f.jsxs("div",{className:h.f_details_card,children:[f.jsx("span",{children:"Network"}),f.jsx("span",{children:null===(j=null===(M=null==ne?void 0:ne.response)||void 0===M?void 0:M.offramp_transaction)||void 0===j?void 0:j.network_type})]}),f.jsxs("div",{className:h.f_details_card,children:[f.jsx("span",{children:"Bank Details"}),f.jsx("span",{children:(null===(P=null===(z=null===(J=null===(H=null===(T=null==ne?void 0:ne.response)||void 0===T?void 0:T.offramp_transaction)||void 0===H?void 0:H.bank_account_transaction)||void 0===J?void 0:J.bank_account)||void 0===z?void 0:z.bank_account)||void 0===P?void 0:P.account_number)||(null===(te=null===(ee=null===($=null===(q=null===(K=null==ne?void 0:ne.response)||void 0===K?void 0:K.offramp_transaction)||void 0===q?void 0:q.bank_account_transaction)||void 0===$?void 0:$.bank_account)||void 0===ee?void 0:ee.bank_account)||void 0===te?void 0:te.iban)})]})]})]})})},Tr=e.createContext(void 0),Hr=0,Jr=function(t){var n=t.children,r=e.useState([]),o=r[0],i=r[1],a=e.useCallback((function(e,t,n){void 0===t&&(t="info"),void 0===n&&(n=3e3);var r=Hr++;i((function(n){return _(_([],n,!0),[{id:r,message:e,type:t}],!1)})),setTimeout((function(){i((function(e){return e.filter((function(e){return e.id!==r}))}))}),n)}),[]);return f.jsxs(Tr.Provider,{value:{addToast:a},children:[n,f.jsx("div",{className:h.toast_container,children:o.map((function(e){var t=e.id,n=e.message,r=e.type;return f.jsxs("div",{className:" ".concat(h.toast," toast ").concat(h[r]),children:[f.jsx("span",{children:n}),f.jsx("button",{onClick:function(){return function(e){i((function(t){return t.filter((function(t){return t.id!==e}))}))}(t)},children:"×"})]},t)}))})]})},zr=function(){var t=e.useContext(Tr);if(!t)throw new Error("useToast must be used within a ToastProvider");return t},Pr=function(e){return b(void 0,[e],void 0,(function(e){var t,n,r,o,i=e.url,a=e.body,s=e.headers,l=e.method,c=e.onError,u=e.onSuccess;return g(this,(function(e){switch(e.label){case 0:return e.trys.push([0,3,,4]),t={method:l||"GET"},s&&(t=m(m({},t),{headers:s})),a&&(t=m(m({},t),{body:a})),[4,fetch(i,t)];case 1:return[4,null==(n=e.sent())?void 0:n.json()];case 2:return r=e.sent(),[2,u(r)];case 3:return o=e.sent(),[2,c(o)];case 4:return[2]}}))}))},Kr=function(){return f.jsx("div",{className:h.text_center,children:f.jsxs("svg",{style:{margin:"auto",background:"none",display:"block",shapeRendering:"auto",width:"5em",height:"5em"},viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",children:[f.jsx("circle",{cx:"50",cy:"50",r:"29","stroke-width":"5",stroke:"#333333","stroke-dasharray":"45.553093477052 45.553093477052",fill:"none","stroke-linecap":"round",children:f.jsx("animateTransform",{attributeName:"transform",type:"rotate",dur:"1.25s",repeatCount:"indefinite",keyTimes:"0;1",values:"0 50 50;360 50 50"})}),f.jsx("circle",{cx:"50",cy:"50",r:"23","stroke-width":"5",stroke:"#555555","stroke-dasharray":"36.12831551628262 36.12831551628262","stroke-dashoffset":"36.12831551628262",fill:"none","stroke-linecap":"round",children:f.jsx("animateTransform",{attributeName:"transform",type:"rotate",dur:"1.25s",repeatCount:"indefinite",keyTimes:"0;1",values:"0 50 50;-360 50 50"})})]})})},qr=function(){return f.jsx("div",{className:h.text_center,children:f.jsxs("svg",{style:{margin:"auto",background:"none",display:"block",shapeRendering:"auto",width:"2.3em",height:"2.3em"},viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",children:[f.jsx("circle",{cx:"50",cy:"50",r:"29","stroke-width":"5",stroke:"#333333","stroke-dasharray":"45.553093477052 45.553093477052",fill:"none","stroke-linecap":"round",children:f.jsx("animateTransform",{attributeName:"transform",type:"rotate",dur:"1.25s",repeatCount:"indefinite",keyTimes:"0;1",values:"0 50 50;360 50 50"})}),f.jsx("circle",{cx:"50",cy:"50",r:"23","stroke-width":"5",stroke:"#555555","stroke-dasharray":"36.12831551628262 36.12831551628262","stroke-dashoffset":"36.12831551628262",fill:"none","stroke-linecap":"round",children:f.jsx("animateTransform",{attributeName:"transform",type:"rotate",dur:"1.25s",repeatCount:"indefinite",keyTimes:"0;1",values:"0 50 50;-360 50 50"})})]})})},$r=function(){return f.jsx("div",{className:h.preloading_sec})},eo=function(e){var t=e.size;return f.jsx("div",{className:h.spinnerLoader,style:{width:t||12}})};function to(e,t){if(!/^\d*\.?\d*$/.test(e))return!1;var n=e.split(".");return 2!==n.length||n[1].length<=t}function no(e){return"development"===e?"https://hexchangepay.rare-able.com":"https://gateway.herald.exchange"}var ro,oo,io=[{label:"SWIFT",currency:"USD"},{label:"SEPA",currency:"EUR"},{label:"Local",currency:"USD"}],ao=function(t){var n=t.defaultTab,r=t.setStep,o=t.data,i=t.apiKey,a=t.clientReferenceID,s=t.setTokenSellData,l=t.mode,c=zr().addToast,u=e.useState(["select","addNew"].includes(n)?n:"select"),d=u[0],p=u[1],b=e.useState([]),g=b[0],v=b[1],y=e.useState(null),I=y[0],x=y[1],C=e.useState([]),G=C[0],B=C[1],w=e.useState(!0),A=w[0],F=w[1],N=e.useState(!1),X=N[0],Q=N[1];e.useEffect((function(){R()}),[d]),e.useEffect((function(){if((null==o?void 0:o.selectedBeneficiary)&&(null==g?void 0:g.length)&&!I&&(null==o?void 0:o.selectedBeneficiary)){var e=null==g?void 0:g.find((function(e){return(null==e?void 0:e.value)===(null==o?void 0:o.selectedBeneficiary)}));e&&x(e)}}),[o,g]);var R=function(){var e=no(l);Pr({url:"".concat(e,"/api/bank_accounts"),headers:{"Content-Type":"application/json","X-API-KEY":i,"User-Id":a},onSuccess:function(e){var t,n,r;if(null==e?void 0:e.success){var i=null===(r=null===(n=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.bank_accounts)||void 0===n?void 0:n.filter((function(e){return(null==e?void 0:e.currency)===(null==o?void 0:o.selectedFiat)})))||void 0===r?void 0:r.map((function(e){var t,n,r;return{label:"".concat(null===(t=null==e?void 0:e.bank_account)||void 0===t?void 0:t.bank_name," - ").concat((null===(n=null==e?void 0:e.bank_account)||void 0===n?void 0:n.account_number)||(null===(r=null==e?void 0:e.bank_account)||void 0===r?void 0:r.iban)),value:null==e?void 0:e.unique_id}}));v(i),(null==i?void 0:i.length)<=0&&p("addNew"),F(!1)}},onError:function(){c("Error fetching Beneficiaries","error"),F(!1)}})},Z=e.useState({type:"EUR"===(null==o?void 0:o.selectedFiat)?"SEPA":"SWIFT",currency:(null==o?void 0:o.selectedFiat)||"USD",bank_name:"",account_number:"",route_number:"",swift_code:"",iban:"",service_bank:""}),k=Z[0],W=Z[1],L=e.useState({bank_name:"",account_number:"",route_number:"",swift_code:"",iban:"",service_bank:""}),E=L[0],U=L[1],D=function(e){var t,n=e.target,r=n.name,o=n.value,i="bank_name"===r?null==o?void 0:o.slice(0,100):null===(t=null==o?void 0:o.trim())||void 0===t?void 0:t.slice(0,100),a="";if(o)if("bank_name"===r){/^[A-Za-z\s]+$/.test(i)||(a="Enter only alphabets")}else{/^[A-Za-z0-9\s]+$/.test(i)||(a="Enter only alphanumeric")}else a="Field is Required";if(a)U((function(e){var t;return m(m({},e),((t={})[r]=a,t))}));else{var s=m({},E);delete s[r],U(s)}W((function(e){var t;return m(m({},e),((t={})[r]=i,t))}))},V=function(){var e=no(l);Pr({url:"".concat(e,"/api/service_banks"),headers:{"Content-Type":"application/json","X-API-KEY":i,"User-Id":a},onSuccess:function(e){var t,n;if(null==e?void 0:e.success){var r=null===(n=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.service_banks)||void 0===n?void 0:n.map((function(e){return{label:null==e?void 0:e.bank_name,value:null==e?void 0:e.service_bank}}));B(r)}},onError:function(){c("Error fetching Bank Accounts","error")}})};return A?f.jsx(Kr,{}):f.jsx(f.Fragment,{children:f.jsxs("div",{className:h.bank_frame,children:[f.jsxs("div",{className:h.bank_head,children:[f.jsx("div",{style:{cursor:"pointer"},onClick:function(){return r(1)},children:f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",width:"18",height:"18",viewBox:"0 0 240.823 240.823",children:f.jsx("path",{d:"M57.633 129.007 165.93 237.268c4.752 4.74 12.451 4.74 17.215 0 4.752-4.74 4.752-12.439 0-17.179l-99.707-99.671 99.695-99.671c4.752-4.74 4.752-12.439 0-17.191-4.752-4.74-12.463-4.74-17.215 0L57.621 111.816c-4.679 4.691-4.679 12.511.012 17.191","data-original":"#000000"})})}),f.jsx("div",{className:h.bank_titles,children:"Bank Details"})]}),f.jsxs("div",{className:h.bank_tabs_frame,children:[f.jsxs("div",{className:h.bank_tabs_link,children:[(null==g?void 0:g.length)>0&&f.jsx("button",{className:"".concat("select"===d&&h.active),onClick:function(){return p("select")},children:"Select Existing"}),f.jsx("button",{className:"".concat("addNew"===d&&h.active),onClick:function(){return p("addNew")},children:"Add New"})]}),f.jsxs("div",{className:h.bank_tabs_content,children:["select"===d&&f.jsxs("div",{className:h.bank_exist_box,children:[f.jsxs("div",{className:h.bank_exist_feilds_frame,children:[f.jsx("div",{className:h.bank_exist_label,children:"Select Bank"}),f.jsx("div",{className:h.bank_exist_feilds,children:f.jsx(Mr,{options:g,onChange:function(e){x(e),s(m(m({},o),{selectedBeneficiary:null==e?void 0:e.value}))},isClearable:!0,placeholder:A?"Loading...":"Select Beneficiary",value:I,isDisabled:(null==g?void 0:g.length)<=0})})]}),f.jsx("div",{className:"".concat(h.ramp_action," ").concat(h.space_from," "),children:f.jsx("button",{className:"".concat(h.action_btn," ").concat(h.primary," "),onClick:function(){(null==o?void 0:o.selectedBeneficiary)?r(3):c("Please select a beneficiary","error")},children:"Continue"})})]}),"addNew"===d&&f.jsxs("div",{className:h.new_box,children:[f.jsx("div",{className:h.check_wrap,children:io.map((function(e){return(null==o?void 0:o.selectedFiat)===e.currency?f.jsx("div",{className:h.form_check,children:f.jsxs("label",{className:h.form_check_label,htmlFor:e.label,children:[f.jsx("input",{className:h.form_check_input,type:"radio",name:"AccountType",value:e.label,id:e.label,onChange:function(e){return function(e){var t,n;"Local"===(null===(t=e.target)||void 0===t?void 0:t.value)&&V(),W(m(m({},k),{type:null===(n=e.target)||void 0===n?void 0:n.value})),U({bank_name:"",account_number:"",route_number:"",swift_code:"",iban:"",service_bank:""})}(e)}}),f.jsxs("div",{className:h.off_currency_option,children:[f.jsx("h3",{children:e.label}),f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 408.576 408.576",children:f.jsx("g",{children:f.jsx("path",{d:"M204.288 0C91.648 0 0 91.648 0 204.288s91.648 204.288 204.288 204.288 204.288-91.648 204.288-204.288S316.928 0 204.288 0zm114.176 150.528-130.56 129.536c-7.68 7.68-19.968 8.192-28.16.512L90.624 217.6c-8.192-7.68-8.704-20.48-1.536-28.672 7.68-8.192 20.48-8.704 28.672-1.024l54.784 50.176L289.28 121.344c8.192-8.192 20.992-8.192 29.184 0s8.192 20.992 0 29.184z",fill:(null==k?void 0:k.type)===e.label?"#F9C201":"#efefef"})})})]})]})},e.label):f.jsx(f.Fragment,{})}))}),"Local"===k.type?f.jsxs("div",{className:h.ramp_bank_box,children:[f.jsxs("div",{className:h.new_bank_label,children:["Bank Name ",f.jsx("span",{className:h.required,children:"*"})]}),f.jsx("div",{className:h.new_bank_fields,children:f.jsx(Mr,{options:G,isClearable:!0,placeholder:"Select Bank",value:(null==k?void 0:k.service_bank)?null==G?void 0:G.find((function(e){return(null==e?void 0:e.value)===(null==k?void 0:k.service_bank)})):null,isSearchable:!0,onChange:function(e){W(m(m({},k),{service_bank:(null==e?void 0:e.value)||""}));var t=m({},E);delete t.service_bank,U(m({},t))},onInputChange:function(e,t){"input-change"===t.action&&((null==e?void 0:e.length)>0?function(e){var t=no(l);Pr({url:"".concat(t,"/api/service_banks?search_key=").concat(e),headers:{"Content-Type":"application/json","X-API-KEY":i,"User-Id":a},onSuccess:function(e){var t,n;if(null==e?void 0:e.success){var r=null===(n=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.service_banks)||void 0===n?void 0:n.map((function(e){return{label:null==e?void 0:e.bank_name,value:null==e?void 0:e.service_bank}}));B(r)}},onError:function(){c("Error fetching Bank Accounts","error")}})}(e):V())}})}),(null==E?void 0:E.service_bank)&&f.jsx("span",{className:h.input_error,children:null==E?void 0:E.service_bank})]}):f.jsxs("div",{className:h.ramp_bank_box,children:[f.jsxs("div",{className:h.new_bank_label,children:["Bank Name ",f.jsx("span",{className:h.required,children:"*"})]}),f.jsx("div",{className:h.new_bank_fields,children:f.jsx("input",{type:"text",value:k.bank_name,className:h.input_control,placeholder:"Enter Bank Name",onChange:D,name:"bank_name"})}),(null==E?void 0:E.bank_name)&&f.jsx("span",{className:h.input_error,children:null==E?void 0:E.bank_name})]}),"SWIFT"===k.type||"Local"===k.type?f.jsxs("div",{className:h.ramp_bank_box,children:[f.jsxs("div",{className:h.new_bank_label,children:["Account Number ",f.jsx("span",{className:h.required,children:"*"})]}),f.jsx("div",{className:h.new_bank_fields,children:f.jsx("input",{type:"text",value:k.account_number,className:h.input_control,placeholder:"Enter Account Number",onChange:D,name:"account_number"})}),(null==E?void 0:E.account_number)&&f.jsx("span",{className:h.input_error,children:null==E?void 0:E.account_number})]}):null,"SWIFT"===k.type||"Local"===k.type?f.jsxs("div",{className:h.ramp_bank_box,children:[f.jsxs("div",{className:h.new_bank_label,children:["Route Number ",f.jsx("span",{className:h.required,children:"*"})]}),f.jsx("div",{className:h.new_bank_fields,children:f.jsx("input",{type:"text",value:k.route_number,className:h.input_control,placeholder:"Enter Route Number",onChange:D,name:"route_number"})}),(null==E?void 0:E.route_number)&&f.jsxs("span",{className:h.input_error,children:[null==E?void 0:E.route_number," "]})]}):null,"SWIFT"===k.type&&f.jsxs("div",{className:h.ramp_bank_box,children:[f.jsxs("div",{className:h.new_bank_label,children:["SWIFT Code ",f.jsx("span",{className:h.required,children:"*"})]}),f.jsx("div",{className:h.new_bank_fields,children:f.jsx("input",{type:"text",value:k.swift_code,className:h.input_control,placeholder:"Enter SWIFT Code",onChange:D,name:"swift_code"})}),(null==E?void 0:E.swift_code)&&f.jsx("span",{className:h.input_error,children:null==E?void 0:E.swift_code})]}),"SEPA"===k.type&&f.jsxs("div",{className:h.ramp_bank_box,children:[f.jsxs("div",{className:h.new_bank_label,children:["IBAN ",f.jsx("span",{className:h.required,children:"*"})]}),f.jsx("div",{className:h.new_bank_fields,children:f.jsx("input",{type:"text",value:k.iban,className:h.input_control,placeholder:"Enter IBAN",onChange:D,name:"iban"})}),(null==E?void 0:E.iban)&&f.jsx("span",{className:h.input_error,children:null==E?void 0:E.iban})]}),f.jsx("div",{className:h.ramp_action,children:f.jsxs("button",{className:"".concat(h.action_btn," ").concat(h.primary," "),onClick:function(){var e,t,n=no(l),u={},d=new FormData;switch(Q(!0),d.append("currency",null==k?void 0:k.currency),d.append("type",null===(e=null==k?void 0:k.type)||void 0===e?void 0:e.toLowerCase()),k.type){case"SWIFT":(null==k?void 0:k.bank_name)||(u.bank_name="Field is required"),(null==k?void 0:k.route_number)||(u.route_number="Field is required"),(null==k?void 0:k.swift_code)||(u.swift_code="Field is required"),(null==k?void 0:k.account_number)||(u.account_number="Field is required"),d.append("bank_name",null==k?void 0:k.bank_name),d.append("route_number",null==k?void 0:k.route_number),d.append("swift_code",null==k?void 0:k.swift_code),d.append("account_number",null==k?void 0:k.account_number);break;case"Local":(null==k?void 0:k.service_bank)||(u.service_bank="Field is required"),(null==k?void 0:k.route_number)||(u.route_number="Field is required"),(null==k?void 0:k.account_number)||(u.account_number="Field is required"),d.append("service_bank",null==k?void 0:k.service_bank),d.append("route_number",null==k?void 0:k.route_number),d.append("account_number",null==k?void 0:k.account_number);break;case"SEPA":(null==k?void 0:k.bank_name)||(u.bank_name="Field is required"),(null==k?void 0:k.iban)||(u.iban="Field is required"),d.append("bank_name",null==k?void 0:k.bank_name),d.append("iban",null==k?void 0:k.iban)}if((null===(t=Object.keys(u))||void 0===t?void 0:t.length)>0)return U(u),c("Fill all fields","error"),void Q(!1);Pr({url:"".concat(n,"/api/bank_accounts"),method:"POST",headers:{"X-API-KEY":i,"User-Id":a},body:d,onSuccess:function(e){var t,n,i,a,l,u,d,p,f,h,b,y,I,C,G,B,w,A,F,N;(null==e?void 0:e.success)?(v(_(_([],g,!0),[{label:"".concat(null===(n=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.bank_account)||void 0===n?void 0:n.bank_name," - ").concat((null===(a=null===(i=null==e?void 0:e.data)||void 0===i?void 0:i.bank_account)||void 0===a?void 0:a.account_number)||(null===(d=null===(u=null===(l=null==e?void 0:e.data)||void 0===l?void 0:l.bank_account)||void 0===u?void 0:u.bank_account)||void 0===d?void 0:d.iban)),value:null===(f=null===(p=null==e?void 0:e.data)||void 0===p?void 0:p.bank_account)||void 0===f?void 0:f.unique_id}],!1)),x({label:"".concat(null===(b=null===(h=null==e?void 0:e.data)||void 0===h?void 0:h.bank_account)||void 0===b?void 0:b.bank_name," - ").concat((null===(I=null===(y=null==e?void 0:e.data)||void 0===y?void 0:y.bank_account)||void 0===I?void 0:I.account_number)||(null===(B=null===(G=null===(C=null==e?void 0:e.data)||void 0===C?void 0:C.bank_account)||void 0===G?void 0:G.bank_account)||void 0===B?void 0:B.iban)),value:null===(A=null===(w=null==e?void 0:e.data)||void 0===w?void 0:w.bank_account)||void 0===A?void 0:A.unique_id}),s(m(m({},o),{selectedBeneficiary:null===(N=null===(F=null==e?void 0:e.data)||void 0===F?void 0:F.bank_account)||void 0===N?void 0:N.unique_id})),r(3)):c("Error Adding Bank Account : ".concat(null==e?void 0:e.message),"error"),Q(!1)},onError:function(e){c("Error Adding Bank Account : ".concat(null==e?void 0:e.message),"error"),Q(!1)}})},disabled:X,children:["Continue ",X&&f.jsx(eo,{})]})})]})]})]})]})})},so=function(t){var n=t.props,r=t.monitoring,o=e.useState(!1),i=o[0],a=o[1],s=e.useState(!1),l=s[0],c=s[1];return e.useEffect((function(){var e;(null==n?void 0:n.data)&&(null===(e=Object.keys(null==n?void 0:n.data))||void 0===e?void 0:e.length)>0&&a(!0)}),[n]),e.useEffect((function(){c(r)}),[r]),e.useEffect((function(){return function(){a(!1)}}),[]),f.jsx(f.Fragment,{children:f.jsx("div",{className:h.flow_stepper_wrap,children:f.jsx("div",{className:h.flow_stepper_frame,children:f.jsxs("ul",{children:[f.jsx("li",{className:"".concat(l?"":h.completed),children:f.jsxs("div",{className:h.flow_stepper_card,children:[f.jsx("div",{className:h.flow_stepper_process,children:l?f.jsx("div",{className:h.flow_loader}):f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",enableBackground:"new 0 0 512 512",viewBox:"0 0 20 20",fill:"#fff",children:f.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd","data-original":"#000000"})})}),f.jsx("span",{children:"Awaiting Transaction"})]})}),f.jsx("li",{className:i&&!l?h.completed:"",children:f.jsxs("div",{className:h.flow_stepper_card,children:[f.jsx("div",{className:h.flow_stepper_process,children:i&&!l||l||i?f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",enableBackground:"new 0 0 512 512",viewBox:"0 0 20 20",fill:"#fff",children:f.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd","data-original":"#000000"})}):f.jsx("div",{className:h.flow_loader})}),f.jsx("span",{children:"Processing Transaction"})]})}),f.jsx("li",{className:"".concat(i?h.completed:""),children:f.jsxs("div",{className:h.flow_stepper_card,children:[f.jsx("div",{className:h.flow_stepper_process,children:i?f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",enableBackground:"new 0 0 512 512",viewBox:"0 0 20 20",fill:"#fff",children:f.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd","data-original":"#000000"})}):f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",enableBackground:"new 0 0 512 512",viewBox:"0 0 20 20",fill:"#e4e0e0",children:f.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd","data-original":"#000000"})})}),f.jsx("span",{children:"Transaction Successful"})]})})]})})})})},lo=Object.defineProperty,co=Object.getOwnPropertySymbols,uo=Object.prototype.hasOwnProperty,po=Object.prototype.propertyIsEnumerable,fo=(e,t,n)=>t in e?lo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ho=(e,t)=>{for(var n in t||(t={}))uo.call(t,n)&&fo(e,n,t[n]);if(co)for(var n of co(t))po.call(t,n)&&fo(e,n,t[n]);return e},mo=(e,t)=>{var n={};for(var r in e)uo.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&co)for(var r of co(e))t.indexOf(r)<0&&po.call(e,r)&&(n[r]=e[r]);return n};(e=>{const t=class t{constructor(e,n,r,i){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(i<-1||i>7)throw new RangeError("Mask value out of range");this.size=4*e+17;let a=[];for(let e=0;e<this.size;e++)a.push(!1);for(let e=0;e<this.size;e++)this.modules.push(a.slice()),this.isFunction.push(a.slice());this.drawFunctionPatterns();const s=this.addEccAndInterleave(r);if(this.drawCodewords(s),-1==i){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const n=this.getPenaltyScore();n<e&&(i=t,e=n),this.applyMask(t)}}o(0<=i&&i<=7),this.mask=i,this.applyMask(i),this.drawFormatBits(i),this.isFunction=[]}static encodeText(n,r){const o=e.QrSegment.makeSegments(n);return t.encodeSegments(o,r)}static encodeBinary(n,r){const o=e.QrSegment.makeBytes(n);return t.encodeSegments([o],r)}static encodeSegments(e,r,i=1,s=40,l=-1,c=!0){if(!(t.MIN_VERSION<=i&&i<=s&&s<=t.MAX_VERSION)||l<-1||l>7)throw new RangeError("Invalid value");let u,d;for(u=i;;u++){const n=8*t.getNumDataCodewords(u,r),o=a.getTotalBits(e,u);if(o<=n){d=o;break}if(u>=s)throw new RangeError("Data too long")}for(const e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])c&&d<=8*t.getNumDataCodewords(u,e)&&(r=e);let p=[];for(const t of e){n(t.mode.modeBits,4,p),n(t.numChars,t.mode.numCharCountBits(u),p);for(const e of t.getData())p.push(e)}o(p.length==d);const f=8*t.getNumDataCodewords(u,r);o(p.length<=f),n(0,Math.min(4,f-p.length),p),n(0,(8-p.length%8)%8,p),o(p.length%8==0);for(let e=236;p.length<f;e^=253)n(e,8,p);let h=[];for(;8*h.length<p.length;)h.push(0);return p.forEach(((e,t)=>h[t>>>3]|=e<<7-(7&t))),new t(u,r,h,l)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let r=0;r<t;r++)0==n&&0==r||0==n&&r==t-1||n==t-1&&0==r||this.drawAlignmentPattern(e[n],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let n=t;for(let e=0;e<10;e++)n=n<<1^1335*(n>>>9);const i=21522^(t<<10|n);o(i>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,r(i,e));this.setFunctionModule(8,7,r(i,6)),this.setFunctionModule(8,8,r(i,7)),this.setFunctionModule(7,8,r(i,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,r(i,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,r(i,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,r(i,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;o(t>>>18==0);for(let e=0;e<18;e++){const n=r(t,e),o=this.size-11+e%3,i=Math.floor(e/3);this.setFunctionModule(o,i,n),this.setFunctionModule(i,o,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){const o=Math.max(Math.abs(r),Math.abs(n)),i=e+r,a=t+n;0<=i&&i<this.size&&0<=a&&a<this.size&&this.setFunctionModule(i,a,2!=o&&4!=o)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,1!=Math.max(Math.abs(r),Math.abs(n)))}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){const n=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,r))throw new RangeError("Invalid argument");const i=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],a=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],s=Math.floor(t.getNumRawDataModules(n)/8),l=i-s%i,c=Math.floor(s/i);let u=[];const d=t.reedSolomonComputeDivisor(a);for(let n=0,r=0;n<i;n++){let o=e.slice(r,r+c-a+(n<l?0:1));r+=o.length;const i=t.reedSolomonComputeRemainder(o,d);n<l&&o.push(0),u.push(o.concat(i))}let p=[];for(let e=0;e<u[0].length;e++)u.forEach(((t,n)=>{(e!=c-a||n>=l)&&p.push(t[e])}));return o(p.length==s),p}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let n=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let o=0;o<this.size;o++)for(let i=0;i<2;i++){const a=t-i,s=!(t+1&2)?this.size-1-o:o;!this.isFunction[s][a]&&n<8*e.length&&(this.modules[s][a]=r(e[n>>>3],7-(7&n)),n++)}}o(n==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let n=0;n<this.size;n++){let r=!1,o=0,i=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[n][a]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,i),r||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),r=this.modules[n][a],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,i)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,o=0,i=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[a][n]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,i),r||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),r=this.modules[a][n],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,i)*t.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let r=0;r<this.size-1;r++){const o=this.modules[n][r];o==this.modules[n][r+1]&&o==this.modules[n+1][r]&&o==this.modules[n+1][r+1]&&(e+=t.PENALTY_N2)}let n=0;for(const e of this.modules)n=e.reduce(((e,t)=>e+(t?1:0)),n);const r=this.size*this.size,i=Math.ceil(Math.abs(20*n-10*r)/r)-1;return o(0<=i&&i<=9),e+=i*t.PENALTY_N4,o(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2));let n=[6];for(let r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");let n=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return o(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let n=[];for(let t=0;t<e-1;t++)n.push(0);n.push(1);let r=1;for(let o=0;o<e;o++){for(let e=0;e<n.length;e++)n[e]=t.reedSolomonMultiply(n[e],r),e+1<n.length&&(n[e]^=n[e+1]);r=t.reedSolomonMultiply(r,2)}return n}static reedSolomonComputeRemainder(e,n){let r=n.map((e=>0));for(const o of e){const e=o^r.shift();r.push(0),n.forEach(((n,o)=>r[o]^=t.reedSolomonMultiply(n,e)))}return r}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let n=0;for(let r=7;r>=0;r--)n=n<<1^285*(n>>>7),n^=(t>>>r&1)*e;return o(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];o(t<=3*this.size);const n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};function n(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function r(e,t){return!!(e>>>t&1)}function o(e){if(!e)throw new Error("Assertion error")}t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;const i=class e{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw new RangeError("Invalid argument");this.bitData=n.slice()}static makeBytes(t){let r=[];for(const e of t)n(e,8,r);return new e(e.Mode.BYTE,t.length,r)}static makeNumeric(t){if(!e.isNumeric(t))throw new RangeError("String contains non-numeric characters");let r=[];for(let e=0;e<t.length;){const o=Math.min(t.length-e,3);n(parseInt(t.substring(e,e+o),10),3*o+1,r),e+=o}return new e(e.Mode.NUMERIC,t.length,r)}static makeAlphanumeric(t){if(!e.isAlphanumeric(t))throw new RangeError("String contains unencodable characters in alphanumeric mode");let r,o=[];for(r=0;r+2<=t.length;r+=2){let i=45*e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r));i+=e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r+1)),n(i,11,o)}return r<t.length&&n(e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r)),6,o),new e(e.Mode.ALPHANUMERIC,t.length,o)}static makeSegments(t){return""==t?[]:e.isNumeric(t)?[e.makeNumeric(t)]:e.isAlphanumeric(t)?[e.makeAlphanumeric(t)]:[e.makeBytes(e.toUtf8ByteArray(t))]}static makeEci(t){let r=[];if(t<0)throw new RangeError("ECI assignment value out of range");if(t<128)n(t,8,r);else if(t<16384)n(2,2,r),n(t,14,r);else{if(!(t<1e6))throw new RangeError("ECI assignment value out of range");n(6,3,r),n(t,21,r)}return new e(e.Mode.ECI,0,r)}static isNumeric(t){return e.NUMERIC_REGEX.test(t)}static isAlphanumeric(t){return e.ALPHANUMERIC_REGEX.test(t)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let n=0;for(const r of e){const e=r.mode.numCharCountBits(t);if(r.numChars>=1<<e)return 1/0;n+=4+e+r.bitData.length}return n}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)"%"!=e.charAt(n)?t.push(e.charCodeAt(n)):(t.push(parseInt(e.substring(n+1,n+3),16)),n+=2);return t}};i.NUMERIC_REGEX=/^[0-9]*$/,i.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,i.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";let a=i;e.QrSegment=i})(ro||(ro={})),(e=>{const t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};t.LOW=new t(0,1),t.MEDIUM=new t(1,0),t.QUARTILE=new t(2,3),t.HIGH=new t(3,2),e.Ecc=t})((oo=ro||(ro={})).QrCode||(oo.QrCode={})),(e=>{(e=>{const t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};t.NUMERIC=new t(1,[10,12,14]),t.ALPHANUMERIC=new t(2,[9,11,13]),t.BYTE=new t(4,[8,16,16]),t.KANJI=new t(8,[8,10,12]),t.ECI=new t(7,[0,0,0]),e.Mode=t})(e.QrSegment||(e.QrSegment={}))})(ro||(ro={}));var bo=ro,go={L:bo.QrCode.Ecc.LOW,M:bo.QrCode.Ecc.MEDIUM,Q:bo.QrCode.Ecc.QUARTILE,H:bo.QrCode.Ecc.HIGH},_o=128,vo="L",yo="#FFFFFF",Io="#000000",xo=!1,Co=1;
19
19
  /**
20
20
  * @license qrcode.react
21
21
  * Copyright (c) Paul O'Shannessy
22
22
  * SPDX-License-Identifier: ISC
23
- */function wo(e,t=0){const n=[];return e.forEach((function(e,r){let o=null;e.forEach((function(i,s){if(!i&&null!==o)return n.push(`M${o+t} ${r+t}h${s-o}v1H${o+t}z`),void(o=null);if(s!==e.length-1)i&&null===o&&(o=s);else{if(!i)return;null===o?n.push(`M${s+t},${r+t} h1v1H${s+t}z`):n.push(`M${o+t},${r+t} h${s+1-o}v1H${o+t}z`)}}))})),n.join("")}function Go(e,t){return e.slice().map(((e,n)=>n<t.y||n>=t.y+t.h?e:e.map(((e,n)=>(n<t.x||n>=t.x+t.w)&&e))))}function Bo({value:t,level:n,minVersion:r,includeMargin:o,marginSize:i,imageSettings:s,size:a,boostLevel:l}){let c=e.useMemo((()=>{const e=(Array.isArray(t)?t:[t]).reduce(((e,t)=>(e.push(...bo.QrSegment.makeSegments(t)),e)),[]);return bo.QrCode.encodeSegments(e,go[n],r,void 0,void 0,l)}),[t,n,r,l]);const{cells:u,margin:d,numCells:f,calculatedImageSettings:p}=e.useMemo((()=>{let e=c.getModules();const t=function(e,t){return null!=t?Math.max(Math.floor(t),0):e?4:0}(o,i),n=e.length+2*t,r=function(e,t,n,r){if(null==r)return null;const o=e.length+2*n,i=Math.floor(.1*t),s=o/t,a=(r.width||i)*s,l=(r.height||i)*s,c=null==r.x?e.length/2-a/2:r.x*s,u=null==r.y?e.length/2-l/2:r.y*s,d=null==r.opacity?1:r.opacity;let f=null;if(r.excavate){let e=Math.floor(c),t=Math.floor(u);f={x:e,y:t,w:Math.ceil(a+c-e),h:Math.ceil(l+u-t)}}return{x:c,y:u,h:l,w:a,excavation:f,opacity:d,crossOrigin:r.crossOrigin}}(e,a,t,s);return{cells:e,margin:t,numCells:n,calculatedImageSettings:r}}),[c,a,s,o,i]);return{qrcode:c,margin:d,cells:u,numCells:f,calculatedImageSettings:p}}var Ao=function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}return!0}(),Fo=e.forwardRef((function(t,n){const r=t,{value:o,size:i=vo,level:s=_o,bgColor:a=yo,fgColor:l=Io,includeMargin:c=xo,minVersion:u=Co,boostLevel:d,marginSize:f,imageSettings:p}=r,h=mo(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:m}=h,b=mo(h,["style"]),g=null==p?void 0:p.src,v=e.useRef(null),_=e.useRef(null),y=e.useCallback((e=>{v.current=e,"function"==typeof n?n(e):n&&(n.current=e)}),[n]),[I,x]=e.useState(!1),{margin:C,cells:w,numCells:G,calculatedImageSettings:B}=Bo({value:o,level:s,minVersion:u,boostLevel:d,includeMargin:c,marginSize:f,imageSettings:p,size:i});e.useEffect((()=>{if(null!=v.current){const e=v.current,t=e.getContext("2d");if(!t)return;let n=w;const r=_.current,o=null!=B&&null!==r&&r.complete&&0!==r.naturalHeight&&0!==r.naturalWidth;o&&null!=B.excavation&&(n=Go(w,B.excavation));const s=window.devicePixelRatio||1;e.height=e.width=i*s;const c=i/G*s;t.scale(c,c),t.fillStyle=a,t.fillRect(0,0,G,G),t.fillStyle=l,Ao?t.fill(new Path2D(wo(n,C))):w.forEach((function(e,n){e.forEach((function(e,r){e&&t.fillRect(r+C,n+C,1,1)}))})),B&&(t.globalAlpha=B.opacity),o&&t.drawImage(r,B.x+C,B.y+C,B.w,B.h)}})),e.useEffect((()=>{x(!1)}),[g]);const A=ho({height:i,width:i},m);let F=null;return null!=g&&(F=e.createElement("img",{src:g,key:g,style:{display:"none"},onLoad:()=>{x(!0)},ref:_,crossOrigin:null==B?void 0:B.crossOrigin})),e.createElement(e.Fragment,null,e.createElement("canvas",ho({style:A,height:i,width:i,ref:y,role:"img"},b)),F)}));Fo.displayName="QRCodeCanvas";var No,Xo,Ro,Zo=e.forwardRef((function(t,n){const r=t,{value:o,size:i=vo,level:s=_o,bgColor:a=yo,fgColor:l=Io,includeMargin:c=xo,minVersion:u=Co,boostLevel:d,title:f,marginSize:p,imageSettings:h}=r,m=mo(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:b,cells:g,numCells:v,calculatedImageSettings:_}=Bo({value:o,level:s,minVersion:u,boostLevel:d,includeMargin:c,marginSize:p,imageSettings:h,size:i});let y=g,I=null;null!=h&&null!=_&&(null!=_.excavation&&(y=Go(g,_.excavation)),I=e.createElement("image",{href:h.src,height:_.h,width:_.w,x:_.x+b,y:_.y+b,preserveAspectRatio:"none",opacity:_.opacity,crossOrigin:_.crossOrigin}));const x=wo(y,b);return e.createElement("svg",ho({height:i,width:i,viewBox:`0 0 ${v} ${v}`,ref:n,role:"img"},m),!!f&&e.createElement("title",null,f),e.createElement("path",{fill:a,d:`M0,0 h${v}v${v}H0z`,shapeRendering:"crispEdges"}),e.createElement("path",{fill:l,d:x,shapeRendering:"crispEdges"}),I)}));function Qo(e){var t,n,r,o,i,s=e.mode,a=e.token;return"development"===s?(r={BNB:97,BUSD:97,ETH:11155111,USDT:11155111,BITCOIN:10001,AVAX:43113,MATIC:84432,SOL:102,XRP:2,POLYGON_AMOY:84432,NILE:3,TRX:1},(t={})[(i={ETHEREUM:11155111,MATIC:84432,BINANCE:97,BITCOIN:10001,AVAX:43113,SOLANA:102,RIPPLE:2,POLYGON_AMOY:84432,NILE:3,TRX:1}).ETHEREUM]="https://api-sepolia.etherscan.io",t[i.MATIC]="https://api-amoy.polygonscan.com",t[i.BINANCE]="https://api-testnet.bscscan.com",t[i.SOLANA]="https://api.devnet.solana.com",t[i.POLYGON_AMOY]="https://api-amoy.polygonscan.com",t[i.NILE]="https://nile.trongrid.io",t[i.TRX]="https://api.shasta.trongrid.io",o=t):(r={BNB:56,ETH:1,BITCOIN:10001,AVAX:43113,MATIC:137,SOL:101,TRX:2},(n={})[(i={ETHEREUM:1,POLYGON:137,BINANCE:56,BITCOIN:10001,AVAX:43113,SOLANA:101,TRX:2}).ETHEREUM]="https://api.etherscan.io",n[i.MATIC]="https://api.polygonscan.com",n[i.BINANCE]="https://api.bscscan.com",n[i.SOLANA]="https://api.mainnet-beta.solana.com",n[i.POLYGON_AMOY]="https://api.polygonscan.com",n[i.TRX]="https://api.trongrid.io",o=n),o[r[a]]}Zo.displayName="QRCodeSVG","production"!=process.env.NODE_ENV?((No={})[(Ro={ETHEREUM:11155111,MATIC:84432,BINANCE:97,BITCOIN:10001,AVAX:43113,SOLANA:102,RIPPLE:2,POLYGON_AMOY:84432,NILE:3,TRX:1}).ETHEREUM]="https://api-sepolia.etherscan.io",No[Ro.MATIC]="https://api-amoy.polygonscan.com",No[Ro.BINANCE]="https://api-testnet.bscscan.com",No[Ro.SOLANA]="https://api.devnet.solana.com",No[Ro.POLYGON_AMOY]="https://api-amoy.polygonscan.com",No[Ro.NILE]="https://nile.trongrid.io",No[Ro.TRX]="https://api.shasta.trongrid.io"):((Xo={})[(Ro={ETHEREUM:1,POLYGON:137,BINANCE:56,BITCOIN:10001,AVAX:43113,SOLANA:101,TRX:1}).ETHEREUM]="https://api.etherscan.io",Xo[Ro.MATIC]="https://api.polygonscan.com",Xo[Ro.BINANCE]="https://api.bscscan.com",Xo[Ro.SOLANA]="https://api.mainnet-beta.solana.com",Xo[Ro.POLYGON_AMOY]="https://api.polygonscan.com",Xo[Ro.TRX]="https://api.trongrid.io");var ko=function(t){var n,r,o=t.tokenSellData,i=t.setTokenSellData,s=t.apiKey,a=t.setStep,l=t.clientReferenceID,c=t.mode,u=zr().addToast,d=e.useState(!1),f=d[0],v=d[1],_=e.useState(!0),y=_[0],I=_[1],x=e.useState(!1),C=x[0];x[1];var w=e.useState(""),G=w[0],B=w[1],A=e.useState(!0),F=A[0],N=A[1],X=e.useState(!0),R=X[0],Z=X[1],Q=e.useState(!1),k=Q[0],L=Q[1],W=e.useState(null),E=W[0],V=W[1],U=e.useState(""),D=U[0],S=U[1],O=e.useState(!1),M=O[0],Y=O[1],j=e.useState(null),T=j[0],H=j[1],J=e.useRef(null),z=e.useRef(null),P=e.useState(o.network_type||""),K=P[0];P[1],e.useEffect((function(){window.scrollTo(0,0),ee()}),[]);var q=function(){te(m(m({},o),{transaction_hash:D}))};e.useEffect((function(){if(!y&&E){var e=E,t=["USDT","USDC"].includes(o.selectedCrypto)?o.network_type:o.selectedCrypto;$(e,t,o.selectedCrypto)}I(!1)}),[E,o]);var $=function(e,t,n){return b(void 0,void 0,void 0,(function(){var r,i,s;return g(this,(function(a){return r="TRX"===t?"tron":"SOL"===t?"solana":"ethereum",["TRX","SOL"].includes(t)||["USDC","USDT"].includes(n),i=o.from_amount.toString(),s="".concat(r,":").concat(e,"?amount=").concat(i,"&label=").concat(encodeURIComponent("HeraldExchangeSell")),B(s),[2]}))}))},ee=function(){return b(void 0,void 0,void 0,(function(){var e;return g(this,(function(t){return e=no(c),L(!0),Pr({url:"".concat(e,"/api/offramp/wallet_address"),headers:{"Content-Type":"application/json","X-API-KEY":s,"User-Id":l},onSuccess:function(e){var t,n,r;if(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.wallet_address){var i=(["USDT","USDC"].includes(o.selectedCrypto)?o.network_type:o.selectedCrypto).toLowerCase(),s=["eth","bnb","matic"].includes(i)?null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.wallet_address.evm:["evm","trx","sol"].includes(i)?null===(r=null==e?void 0:e.data)||void 0===r?void 0:r.wallet_address[i]:"";V(s),L(!1)}},onError:function(){u("Error fetching exchange rate","error"),L(!1)}}),[2]}))}))},te=function(e){return b(void 0,void 0,void 0,(function(){var t,n,r;return g(this,(function(d){return Y(!0),t=no(c),(n=new FormData).append("from",o.selectedCrypto),n.append("to",o.selectedFiat),["USDT","USDC"].includes(o.selectedCrypto)&&n.append("network_type",o.network_type),n.append("value",o.from_amount),n.append("initial_exchange_rate",null===(r=o.exchange_rate)||void 0===r?void 0:r.toString()),n.append("transaction_hash",e.transaction_hash),n.append("bank_account",o.selectedBeneficiary),Pr({url:"".concat(t,"/api/offramp/transactions"),headers:{"X-API-KEY":s,"User-Id":l},method:"POST",body:n,onSuccess:function(e){(null==e?void 0:e.success)?(H({data:null==e?void 0:e.data}),v(!0),i(m(m({},o),{response:null==e?void 0:e.data})),Y(!1),u("".concat(null==e?void 0:e.message),"success"),a(4)):(u("".concat(null==e?void 0:e.message),"error"),v(!1),Y(!1))},onError:function(e){u(" ".concat(e),"error"),v(!1),Y(!1)}}),[2]}))}))};e.useEffect((function(){if(!y&&E&&F){var e=E,t=["USDT","USDC"].includes(o.selectedCrypto)?o.network_type:o.selectedCrypto,n=o.selectedCrypto,r=o.from_amount;if(e){var i=Date.now();J.current=setInterval((function(){["USDT","USDC"].includes(n)&&K?oe({currency:n,token:K,walletAddress:e,startTimestamp:i,expected_amount:r}):ne(t,e,i,r)}),1e4)}}return I(!1),function(){J.current&&clearInterval(J.current)}}),[E,o,F]);var ne=function(e,t,n,r){return b(void 0,void 0,void 0,(function(){var o,i,s;return g(this,(function(a){switch(a.label){case 0:if(o="",i=Qo({mode:c,token:e}),"ETH"===e)o="".concat(i,"/api?module=account&action=txlist&address=").concat(t,"&startblock=0&endblock=99999999&sort=desc&apikey=").concat("B34RQKNPZUV8IM6866DQ58WCS2Q6SWAP8V");else if("BNB"===e)o="".concat(i,"/api?module=account&action=txlist&address=").concat(t,"&startblock=0&endblock=99999999&sort=desc&apikey=").concat("876A7KYGBE2TVBBNY33I4GZPXE1Q4QH3QA");else if("MATIC"===e||"POLYGON"===e||"POLYGON_AMOY"===e)o="".concat(i,"/api?module=account&action=txlist&address=").concat(t,"&startblock=0&endblock=99999999&sort=desc&apikey=").concat("KYV61TJQU5RDMTGY1D95J8R61HWCR9T7KT");else{if("TRX"!==e)return"SOL"===e?[2,se()]:[2];o="".concat(i,"/v1/accounts/").concat(t,"/transactions?limit=10")}if(!R)return[3,5];a.label=1;case 1:return a.trys.push([1,4,,5]),[4,fetch(o)];case 2:return[4,a.sent().json()];case 3:return s=a.sent(),re(s,t,e,n,r),[3,5];case 4:return a.sent(),[3,5];case 5:return[2]}}))}))},re=function(e,t,n,r,o){var i=[];"ETH"===n||"BNB"===n||"MATIC"===n?i=e.result:"TRX"===n?i=e.data:"SOL"===n&&(i=e.result),i.forEach((function(e){if(("TRX"==n?e.block_timestamp:1e3*e.timeStamp)>r){var t=e.hash||e.transactionHash||e.txID,i="TRX"==n?e.raw_data.contract[0].parameter.value.amount/1e6:e.value/1e18;o==i&&(z.current.value=t,S(t),N(!1))}}))},oe=function(e){return b(void 0,[e],void 0,(function(e){var t,n,r,o,i,s=e.currency,a=e.token,l=e.walletAddress,u=e.startTimestamp,d=e.expected_amount;return g(this,(function(e){switch(e.label){case 0:if(t="",n=Qo({mode:c,token:a}),r=function(e){var t,n,r=e.mode,o=e.token,i=e.networkType;return"development"===r?(t={USDC:"Gh9ZwEmdLJ8DscKNTkTqPbNwLNNBjuSzaG9Vp2KGtKJr",USDT:"Gh9ZwEmdLJ8DscKNTkTqPbNwLNNBjuSzaG9Vp2KGtKJr"},n={ETH:{USDC:"0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238",USDT:"0x7169D38820dfd117C3FA1f22a697dBA58d90BA06",LINK:"0xb227f007804c16546Bd054dfED2E7A1fD5437678",MATIC:"0x8D38d6Ffa17FFD6dA49D4b53B6f0DFc8D291E867"},MATIC:{USDC:"0x702207d9c124c86c85A97222Cde98476f987ddaE",USDT:"0x702207d9c124c86c85A97222Cde98476f987ddaE",DAI:"0xb2df85a09cAB3a391Fd9ade76342583A0d4B75ce"},POLYGON_AMOY:{USDC:"0x702207d9c124c86c85A97222Cde98476f987ddaE",USDT:"0x702207d9c124c86c85A97222Cde98476f987ddaE",DAI:"0xb2df85a09cAB3a391Fd9ade76342583A0d4B75ce"},BNB:{USDT:"0x337610d27c682E347C9cD60BD4b3b107C9d34dDd",USDC:"0xfbe87897c07Cc64b6FFc04257672854b90e5B17b"},SHASTA:{USDT:"TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs",USDC:"TSdZwNqpHofzP6BsBKGQUWdBeJphLmF6id"},TRX:{USDT:"TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs",USDC:"TSdZwNqpHofzP6BsBKGQUWdBeJphLmF6id"}}):(t={USDC:"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",USDT:"Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"},n={ETH:{USDC:"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",USDT:"0xdAC17F958D2ee523a2206206994597C13D831ec7"},MATIC:{USDC:"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",USDT:"0xc2132D05D31c914a87C6611C10748AEb04B58e8F"},POLYGON:{USDC:"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",USDT:"0xc2132D05D31c914a87C6611C10748AEb04B58e8F"},POLYGON_AMOY:{USDC:"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",USDT:"0xc2132D05D31c914a87C6611C10748AEb04B58e8F"},BNB:{USDT:"0x55d398326f99059fF775485246999027B3197955",USDC:"0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d"},TRX:{USDT:"TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",USDC:"TLZSucJRjnqBKwvQz6n5hd29gbS4P7u7w8"}}),"SOL"===i?t[o]:n[i][o]||""}({mode:c,token:s,networkType:K}),["ETH","BNB","MATIC"].includes(K))o="ETH"==K?"B34RQKNPZUV8IM6866DQ58WCS2Q6SWAP8V":"BNB"==K?"876A7KYGBE2TVBBNY33I4GZPXE1Q4QH3QA":"KYV61TJQU5RDMTGY1D95J8R61HWCR9T7KT",t="".concat(n,"/api?module=account&action=tokentx&address=").concat(l,"&startblock=0&endblock=99999999&sort=desc&apikey=").concat(o);else{if("TRX"!==K)return"SOL"===K?[2,se()]:[2];t="".concat(n,"/v1/accounts/").concat(l,"/transactions/trc20")}e.label=1;case 1:return e.trys.push([1,4,,5]),[4,fetch(t)];case 2:return[4,e.sent().json()];case 3:return i=e.sent(),ie(i,l,a,u,r,d),[3,5];case 4:return e.sent(),[3,5];case 5:return[2]}}))}))},ie=function(e,t,n,r,o,i){(e.result||e.data||[]).forEach((function(e){if(("TRX"==K?e.block_timestamp:1e3*e.timeStamp)>r)if("TRX"==K){var t=e.hash||e.transaction_id||e.txID;parseFloat(e.value)/Math.pow(10,parseInt(e.token_info.decimals))==i&&(z.current.value=t,S(t),N(!1))}else if(o.toLowerCase()==e.contractAddress.toLowerCase()){t=e.hash||e.transactionHash||e.txID;parseFloat(e.value)/Math.pow(10,parseInt(e.tokenDecimal))==i&&(z.current.value=t,S(t),N(!1))}}))},se=function(){return b(void 0,void 0,void 0,(function(){return g(this,(function(e){return Z(!1),N(!1),[2]}))}))};return p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:h.bank_head,children:[p.jsx("div",{style:{cursor:"pointer"},onClick:function(){return a(2)},children:p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",width:"18",height:"18",viewBox:"0 0 240.823 240.823",children:p.jsx("path",{d:"M57.633 129.007 165.93 237.268c4.752 4.74 12.451 4.74 17.215 0 4.752-4.74 4.752-12.439 0-17.179l-99.707-99.671 99.695-99.671c4.752-4.74 4.752-12.439 0-17.191-4.752-4.74-12.463-4.74-17.215 0L57.621 111.816c-4.679 4.691-4.679 12.511.012 17.191","data-original":"#000000"})})}),p.jsx("div",{className:h.bank_titles,children:"Sell Crypto"})]}),k?p.jsx(Kr,{}):E&&(null===(n=Object.keys(E))||void 0===n?void 0:n.length)>0?p.jsxs(p.Fragment,{children:[p.jsx("div",{className:h.payment_details_wrap,children:p.jsxs("div",{className:h.sell_qr_payemnt_wrap,children:[p.jsxs("div",{className:h.sell_amt_details,children:[p.jsxs("div",{className:h.sell_amt_details_wrap,children:[p.jsxs("div",{className:h.sell_amt_pay,children:[p.jsx("span",{className:h.sell_pay_label,children:"You Pay "}),p.jsxs("span",{className:h.sell_pay_amt,children:[o.from_amount," ",o.selectedCrypto," ",["USDT","USDC"].includes(o.selectedCrypto)&&o.network_type?"(".concat(o.network_type,")"):""]})]}),p.jsxs("div",{className:h.sell_pay_amt,children:[p.jsx("span",{className:h.sell_pay_label,children:"You Get "}),p.jsxs("span",{className:h.sell_pay_amt,children:[null===(r=o.to_currency_conversion_value)||void 0===r?void 0:r.toFixed(4)," ",o.selectedFiat]})]})]}),p.jsx("div",{className:h.sell_estimated_info,children:p.jsxs("p",{children:[" ",p.jsx("span",{children:"Estimated Rate "})," ",p.jsxs("span",{children:["1 ",o.selectedCrypto," ="," ",isNaN(o.exchange_rate)?0:o.exchange_rate.toFixed(4)," ",o.selectedFiat]})]})})]}),p.jsx("div",{className:h.sell_payment_qr_box,children:p.jsx("div",{className:h.sell_payment_qr_frame,children:G?p.jsx(Fo,{value:G,size:128,bgColor:"#ffffff",fgColor:"#000000",level:"H"}):p.jsx(Kr,{})})})]})}),p.jsxs("form",{onSubmit:q,children:[p.jsxs("div",{className:h.sell_wallet_address_card,children:[C||E&&p.jsxs("div",{className:h.sell_wallet_data_card,children:[p.jsx("h6",{children:"Wallet Address"}),p.jsxs("div",{className:h.sell_wallet_code_card,children:[p.jsxs("div",{className:h.sell_wallet_code,children:[p.jsxs("span",{children:[" ",E]})," "]}),p.jsx("button",{className:"".concat(h.action_btn," ").concat(h.overlay," ").concat(h.item_center_column," ").concat(h.p_0),type:"button",onClick:function(){return b(void 0,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,navigator.clipboard.writeText(E)];case 1:return e.sent(),u("Copied","success"),[2]}}))}))},children:p.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"#298BFF","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[p.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),p.jsx("path",{d:"M7 7m0 2.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667z"}),p.jsx("path",{d:"M4.012 16.737a2.005 2.005 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1"})]})})]})]}),p.jsxs("div",{className:h.sell_hash_box,children:[p.jsx("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:p.jsxs("div",{className:h.sell_hash_label,children:["Transaction Hash ",p.jsx("span",{children:"*"})]})}),p.jsx("input",{className:h.sell_hash_fields,type:"text",placeholder:"Enter Transaction Hash",name:"transaction_hash",onChange:function(e){return S(e.target.value)},ref:z,disabled:R})]})]}),p.jsx("div",{className:h.efi_swap_action,children:F||M||f?p.jsx("div",{className:"mt-3",children:p.jsx(ao,{props:T,monitoring:F})}):p.jsx("button",{className:"".concat(h.action_btn," ").concat(h.primary," "),onClick:function(e){e.preventDefault(),q()},disabled:!D||M,children:M?p.jsx(qr,{}):"Submit"})})]})]}):p.jsx(p.Fragment,{children:p.jsxs("div",{className:h.no_wallet_details,children:[p.jsx("p",{children:"No Wallet Details Found"}),p.jsx("div",{children:p.jsx("button",{className:"".concat(h.action_btn," ").concat(h.primary," "),onClick:function(){return ee()},children:"Retry"})})]})})]})};const Lo=Object.create(null);Lo.open="0",Lo.close="1",Lo.ping="2",Lo.pong="3",Lo.message="4",Lo.upgrade="5",Lo.noop="6";const Wo=Object.create(null);Object.keys(Lo).forEach((e=>{Wo[Lo[e]]=e}));const Eo={type:"error",data:"parser error"},Vo="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),Uo="function"==typeof ArrayBuffer,Do=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,So=({type:e,data:t},n,r)=>Vo&&t instanceof Blob?n?r(t):Oo(t,r):Uo&&(t instanceof ArrayBuffer||Do(t))?n?r(t):Oo(new Blob([t]),r):r(Lo[e]+(t||"")),Oo=(e,t)=>{const n=new FileReader;return n.onload=function(){const e=n.result.split(",")[1];t("b"+(e||""))},n.readAsDataURL(e)};function Mo(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let Yo;const jo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",To="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e<64;e++)To[jo.charCodeAt(e)]=e;const Ho="function"==typeof ArrayBuffer,Jo=(e,t)=>{if("string"!=typeof e)return{type:"message",data:Po(e,t)};const n=e.charAt(0);if("b"===n)return{type:"message",data:zo(e.substring(1),t)};return Wo[n]?e.length>1?{type:Wo[n],data:e.substring(1)}:{type:Wo[n]}:Eo},zo=(e,t)=>{if(Ho){const n=(e=>{let t,n,r,o,i,s=.75*e.length,a=e.length,l=0;"="===e[e.length-1]&&(s--,"="===e[e.length-2]&&s--);const c=new ArrayBuffer(s),u=new Uint8Array(c);for(t=0;t<a;t+=4)n=To[e.charCodeAt(t)],r=To[e.charCodeAt(t+1)],o=To[e.charCodeAt(t+2)],i=To[e.charCodeAt(t+3)],u[l++]=n<<2|r>>4,u[l++]=(15&r)<<4|o>>2,u[l++]=(3&o)<<6|63&i;return c})(e);return Po(n,t)}return{base64:!0,data:e}},Po=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,Ko=String.fromCharCode(30);function qo(){return new TransformStream({transform(e,t){!function(e,t){Vo&&e.data instanceof Blob?e.data.arrayBuffer().then(Mo).then(t):Uo&&(e.data instanceof ArrayBuffer||Do(e.data))?t(Mo(e.data)):So(e,!1,(e=>{Yo||(Yo=new TextEncoder),t(Yo.encode(e))}))}(e,(n=>{const r=n.length;let o;if(r<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,r);else if(r<65536){o=new Uint8Array(3);const e=new DataView(o.buffer);e.setUint8(0,126),e.setUint16(1,r)}else{o=new Uint8Array(9);const e=new DataView(o.buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(r))}e.data&&"string"!=typeof e.data&&(o[0]|=128),t.enqueue(o),t.enqueue(n)}))}})}let $o;function ei(e){return e.reduce(((e,t)=>e+t.length),0)}function ti(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let o=0;o<t;o++)n[o]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function ni(e){if(e)return function(e){for(var t in ni.prototype)e[t]=ni.prototype[t];return e}(e)}ni.prototype.on=ni.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},ni.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},ni.prototype.off=ni.prototype.removeListener=ni.prototype.removeAllListeners=ni.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;o<r.length;o++)if((n=r[o])===t||n.fn===t){r.splice(o,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},ni.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var o=(n=n.slice(0)).length;r<o;++r)n[r].apply(this,t)}return this},ni.prototype.emitReserved=ni.prototype.emit,ni.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},ni.prototype.hasListeners=function(e){return!!this.listeners(e).length};const ri="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),oi="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")();function ii(e,...t){return t.reduce(((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t)),{})}const si=oi.setTimeout,ai=oi.clearTimeout;function li(e,t){t.useNativeTimers?(e.setTimeoutFn=si.bind(oi),e.clearTimeoutFn=ai.bind(oi)):(e.setTimeoutFn=oi.setTimeout.bind(oi),e.clearTimeoutFn=oi.clearTimeout.bind(oi))}function ci(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}class ui extends Error{constructor(e,t,n){super(e),this.description=t,this.context=n,this.type="TransportError"}}class di extends ni{constructor(e){super(),this.writable=!1,li(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,n){return super.emitReserved("error",new ui(e,t,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=Jo(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return-1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){const t=function(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}(e);return t.length?"?"+t:""}}class fi extends di{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let e=0;this._polling&&(e++,this.once("pollComplete",(function(){--e||t()}))),this.writable||(e++,this.once("drain",(function(){--e||t()})))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){((e,t)=>{const n=e.split(Ko),r=[];for(let e=0;e<n.length;e++){const o=Jo(n[e],t);if(r.push(o),"error"===o.type)break}return r})(e,this.socket.binaryType).forEach((e=>{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)})),"closed"!==this.readyState&&(this._polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this._poll())}doClose(){const e=()=>{this.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}write(e){this.writable=!1,((e,t)=>{const n=e.length,r=new Array(n);let o=0;e.forEach(((e,i)=>{So(e,!1,(e=>{r[i]=e,++o===n&&t(r.join(Ko))}))}))})(e,(e=>{this.doWrite(e,(()=>{this.writable=!0,this.emitReserved("drain")}))}))}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=ci()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}}let pi=!1;try{pi="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}const hi=pi;function mi(){}class bi extends fi{constructor(e){if(super(e),"undefined"!=typeof location){const t="https:"===location.protocol;let n=location.port;n||(n=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||n!==e.port}}doWrite(e,t){const n=this.request({method:"POST",data:e});n.on("success",t),n.on("error",((e,t)=>{this.onError("xhr post error",e,t)}))}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",((e,t)=>{this.onError("xhr poll error",e,t)})),this.pollXhr=e}}class gi extends ni{constructor(e,t,n){super(),this.createRequest=e,li(this,n),this._opts=n,this._method=n.method||"GET",this._uri=t,this._data=void 0!==n.data?n.data:null,this._create()}_create(){var e;const t=ii(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this._opts.xd;const n=this._xhr=this.createRequest(t);try{n.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let e in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(e)&&n.setRequestHeader(e,this._opts.extraHeaders[e])}}catch(e){}if("POST"===this._method)try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{n.setRequestHeader("Accept","*/*")}catch(e){}null===(e=this._opts.cookieJar)||void 0===e||e.addCookies(n),"withCredentials"in n&&(n.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(n.timeout=this._opts.requestTimeout),n.onreadystatechange=()=>{var e;3===n.readyState&&(null===(e=this._opts.cookieJar)||void 0===e||e.parseCookies(n.getResponseHeader("set-cookie"))),4===n.readyState&&(200===n.status||1223===n.status?this._onLoad():this.setTimeoutFn((()=>{this._onError("number"==typeof n.status?n.status:0)}),0))},n.send(this._data)}catch(e){return void this.setTimeoutFn((()=>{this._onError(e)}),0)}"undefined"!=typeof document&&(this._index=gi.requestsCount++,gi.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(void 0!==this._xhr&&null!==this._xhr){if(this._xhr.onreadystatechange=mi,e)try{this._xhr.abort()}catch(e){}"undefined"!=typeof document&&delete gi.requests[this._index],this._xhr=null}}_onLoad(){const e=this._xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}if(gi.requestsCount=0,gi.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",vi);else if("function"==typeof addEventListener){addEventListener("onpagehide"in oi?"pagehide":"unload",vi,!1)}function vi(){for(let e in gi.requests)gi.requests.hasOwnProperty(e)&&gi.requests[e].abort()}const _i=function(){const e=yi({xdomain:!1});return e&&null!==e.responseType}();function yi(e){const t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||hi))return new XMLHttpRequest}catch(e){}if(!t)try{return new(oi[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(e){}}const Ii="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class xi extends di{get name(){return"websocket"}doOpen(){const e=this.uri(),t=this.opts.protocols,n=Ii?{}:ii(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,n)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const n=e[t],r=t===e.length-1;So(n,this.supportsBinary,(e=>{try{this.doWrite(n,e)}catch(e){}r&&ri((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){void 0!==this.ws&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=ci()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}}const Ci=oi.WebSocket||oi.MozWebSocket;const wi={websocket:class extends xi{createSocket(e,t,n){return Ii?new Ci(e,t,n):t?new Ci(e,t):new Ci(e)}doWrite(e,t){this.ws.send(t)}},webtransport:class extends di{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then((()=>{this.onClose()})).catch((e=>{this.onError("webtransport error",e)})),this._transport.ready.then((()=>{this._transport.createBidirectionalStream().then((e=>{const t=function(e,t){$o||($o=new TextDecoder);const n=[];let r=0,o=-1,i=!1;return new TransformStream({transform(s,a){for(n.push(s);;){if(0===r){if(ei(n)<1)break;const e=ti(n,1);i=!(128&~e[0]),o=127&e[0],r=o<126?3:126===o?1:2}else if(1===r){if(ei(n)<2)break;const e=ti(n,2);o=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),r=3}else if(2===r){if(ei(n)<8)break;const e=ti(n,8),t=new DataView(e.buffer,e.byteOffset,e.length),i=t.getUint32(0);if(i>Math.pow(2,21)-1){a.enqueue(Eo);break}o=i*Math.pow(2,32)+t.getUint32(4),r=3}else{if(ei(n)<o)break;const e=ti(n,o);a.enqueue(Jo(i?e:$o.decode(e),t)),r=0}if(0===o||o>e){a.enqueue(Eo);break}}}})}(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(t).getReader(),r=qo();r.readable.pipeTo(e.writable),this._writer=r.writable.getWriter();const o=()=>{n.read().then((({done:e,value:t})=>{e||(this.onPacket(t),o())})).catch((e=>{}))};o();const i={type:"open"};this.query.sid&&(i.data=`{"sid":"${this.query.sid}"}`),this._writer.write(i).then((()=>this.onOpen()))}))}))}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const n=e[t],r=t===e.length-1;this._writer.write(n).then((()=>{r&&ri((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){var e;null===(e=this._transport)||void 0===e||e.close()}},polling:class extends bi{constructor(e){super(e);const t=e&&e.forceBase64;this.supportsBinary=_i&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new gi(yi,this.uri(),e)}}},Gi=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Bi=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Ai(e){if(e.length>8e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");-1!=n&&-1!=r&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let o=Gi.exec(e||""),i={},s=14;for(;s--;)i[Bi[s]]=o[s]||"";return-1!=n&&-1!=r&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=function(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");"/"!=t.slice(0,1)&&0!==t.length||r.splice(0,1);"/"==t.slice(-1)&&r.splice(r.length-1,1);return r}(0,i.path),i.queryKey=function(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,r){t&&(n[t]=r)})),n}(0,i.query),i}const Fi="function"==typeof addEventListener&&"function"==typeof removeEventListener,Ni=[];Fi&&addEventListener("offline",(()=>{Ni.forEach((e=>e()))}),!1);class Xi extends ni{constructor(e,t){if(super(),this.binaryType="arraybuffer",this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&"object"==typeof e&&(t=e,e=null),e){const n=Ai(e);t.hostname=n.host,t.secure="https"===n.protocol||"wss"===n.protocol,t.port=n.port,n.query&&(t.query=n.query)}else t.host&&(t.hostname=Ai(t.host).host);li(this,t),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},t.transports.forEach((e=>{const t=e.prototype.name;this.transports.push(t),this._transportsByName[t]=e})),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=function(e){let t={},n=e.split("&");for(let e=0,r=n.length;e<r;e++){let r=n[e].split("=");t[decodeURIComponent(r[0])]=decodeURIComponent(r[1])}return t}(this.opts.query)),Fi&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Ni.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=4,t.transport=e,this.id&&(t.sid=this.id);const n=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](n)}_open(){if(0===this.transports.length)return void this.setTimeoutFn((()=>{this.emitReserved("error","No transports available")}),0);const e=this.opts.rememberUpgrade&&Xi.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket")?"websocket":this.transports[0];this.readyState="opening";const t=this.createTransport(e);t.open(),this.setTransport(t)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",(e=>this._onClose("transport close",e)))}onOpen(){this.readyState="open",Xi.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush()}_onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const t=new Error("server error");t.code=e.data,this._onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data)}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn((()=>{this._onClose("ping timeout")}),e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let n=0;n<this.writeBuffer.length;n++){const r=this.writeBuffer[n].data;if(r&&(e+="string"==typeof(t=r)?function(e){let t=0,n=0;for(let r=0,o=e.length;r<o;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}(t):Math.ceil(1.33*(t.byteLength||t.size))),n>0&&e>this._maxPayload)return this.writeBuffer.slice(0,n);e+=2}var t;return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,ri((()=>{this._onClose("ping timeout")}),this.setTimeoutFn)),e}write(e,t,n){return this._sendPacket("message",e,t,n),this}send(e,t,n){return this._sendPacket("message",e,t,n),this}_sendPacket(e,t,n,r){if("function"==typeof t&&(r=t,t=void 0),"function"==typeof n&&(r=n,n=null),"closing"===this.readyState||"closed"===this.readyState)return;(n=n||{}).compress=!1!==n.compress;const o={type:e,data:t,options:n};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),r&&this.once("flush",r),this.flush()}close(){const e=()=>{this._onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},n=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",(()=>{this.upgrading?n():e()})):this.upgrading?n():e()),this}_onError(e){if(Xi.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&"opening"===this.readyState)return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Fi&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const e=Ni.indexOf(this._offlineEventListener);-1!==e&&Ni.splice(e,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this._prevBufferLen=0}}}Xi.protocol=4;class Ri extends Xi{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),"open"===this.readyState&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),n=!1;Xi.priorWebsocketSuccess=!1;const r=()=>{n||(t.send([{type:"ping",data:"probe"}]),t.once("packet",(e=>{if(!n)if("pong"===e.type&&"probe"===e.data){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;Xi.priorWebsocketSuccess="websocket"===t.name,this.transport.pause((()=>{n||"closed"!==this.readyState&&(c(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())}))}else{const e=new Error("probe error");e.transport=t.name,this.emitReserved("upgradeError",e)}})))};function o(){n||(n=!0,c(),t.close(),t=null)}const i=e=>{const n=new Error("probe error: "+e);n.transport=t.name,o(),this.emitReserved("upgradeError",n)};function s(){i("transport closed")}function a(){i("socket closed")}function l(e){t&&e.name!==t.name&&o()}const c=()=>{t.removeListener("open",r),t.removeListener("error",i),t.removeListener("close",s),this.off("close",a),this.off("upgrading",l)};t.once("open",r),t.once("error",i),t.once("close",s),this.once("close",a),this.once("upgrading",l),-1!==this._upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn((()=>{n||t.open()}),200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){const t=[];for(let n=0;n<e.length;n++)~this.transports.indexOf(e[n])&&t.push(e[n]);return t}}let Zi=class extends Ri{constructor(e,t={}){const n="object"==typeof e?e:t;(!n.transports||n.transports&&"string"==typeof n.transports[0])&&(n.transports=(n.transports||["polling","websocket","webtransport"]).map((e=>wi[e])).filter((e=>!!e))),super(e,n)}};const Qi="function"==typeof ArrayBuffer,ki=Object.prototype.toString,Li="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===ki.call(Blob),Wi="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===ki.call(File);function Ei(e){return Qi&&(e instanceof ArrayBuffer||(e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer)(e))||Li&&e instanceof Blob||Wi&&e instanceof File}function Vi(e,t){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e)){for(let t=0,n=e.length;t<n;t++)if(Vi(e[t]))return!0;return!1}if(Ei(e))return!0;if(e.toJSON&&"function"==typeof e.toJSON&&1===arguments.length)return Vi(e.toJSON(),!0);for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&Vi(e[t]))return!0;return!1}function Ui(e){const t=[],n=e.data,r=e;return r.data=Di(n,t),r.attachments=t.length,{packet:r,buffers:t}}function Di(e,t){if(!e)return e;if(Ei(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=Di(e[r],t);return n}if("object"==typeof e&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=Di(e[r],t));return n}return e}function Si(e,t){return e.data=Oi(e.data,t),delete e.attachments,e}function Oi(e,t){if(!e)return e;if(e&&!0===e._placeholder){if("number"==typeof e.num&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=Oi(e[n],t);else if("object"==typeof e)for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=Oi(e[n],t));return e}const Mi=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var Yi;!function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"}(Yi||(Yi={}));function ji(e){return"[object Object]"===Object.prototype.toString.call(e)}class Ti extends ni{constructor(e){super(),this.reviver=e}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e);const n=t.type===Yi.BINARY_EVENT;n||t.type===Yi.BINARY_ACK?(t.type=n?Yi.EVENT:Yi.ACK,this.reconstructor=new Hi(t),0===t.attachments&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else{if(!Ei(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t))}}decodeString(e){let t=0;const n={type:Number(e.charAt(0))};if(void 0===Yi[n.type])throw new Error("unknown packet type "+n.type);if(n.type===Yi.BINARY_EVENT||n.type===Yi.BINARY_ACK){const r=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);const o=e.substring(r,t);if(o!=Number(o)||"-"!==e.charAt(t))throw new Error("Illegal attachments");n.attachments=Number(o)}if("/"===e.charAt(t+1)){const r=t+1;for(;++t;){if(","===e.charAt(t))break;if(t===e.length)break}n.nsp=e.substring(r,t)}else n.nsp="/";const r=e.charAt(t+1);if(""!==r&&Number(r)==r){const r=t+1;for(;++t;){const n=e.charAt(t);if(null==n||Number(n)!=n){--t;break}if(t===e.length)break}n.id=Number(e.substring(r,t+1))}if(e.charAt(++t)){const r=this.tryParse(e.substr(t));if(!Ti.isPayloadValid(n.type,r))throw new Error("invalid payload");n.data=r}return n}tryParse(e){try{return JSON.parse(e,this.reviver)}catch(e){return!1}}static isPayloadValid(e,t){switch(e){case Yi.CONNECT:return ji(t);case Yi.DISCONNECT:return void 0===t;case Yi.CONNECT_ERROR:return"string"==typeof t||ji(t);case Yi.EVENT:case Yi.BINARY_EVENT:return Array.isArray(t)&&("number"==typeof t[0]||"string"==typeof t[0]&&-1===Mi.indexOf(t[0]));case Yi.ACK:case Yi.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class Hi{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const e=Si(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}var Ji=Object.freeze({__proto__:null,Decoder:Ti,Encoder:class{constructor(e){this.replacer=e}encode(e){return e.type!==Yi.EVENT&&e.type!==Yi.ACK||!Vi(e)?[this.encodeAsString(e)]:this.encodeAsBinary({type:e.type===Yi.EVENT?Yi.BINARY_EVENT:Yi.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id})}encodeAsString(e){let t=""+e.type;return e.type!==Yi.BINARY_EVENT&&e.type!==Yi.BINARY_ACK||(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){const t=Ui(e),n=this.encodeAsString(t.packet),r=t.buffers;return r.unshift(n),r}},get PacketType(){return Yi},protocol:5});function zi(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const Pi=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Ki extends ni{constructor(e,t,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[zi(e,"open",this.onopen.bind(this)),zi(e,"packet",this.onpacket.bind(this)),zi(e,"error",this.onerror.bind(this)),zi(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){var n,r,o;if(Pi.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;const i={type:Yi.EVENT,data:t,options:{}};if(i.options.compress=!1!==this.flags.compress,"function"==typeof t[t.length-1]){const e=this.ids++,n=t.pop();this._registerAckCallback(e,n),i.id=e}const s=null===(r=null===(n=this.io.engine)||void 0===n?void 0:n.transport)||void 0===r?void 0:r.writable,a=this.connected&&!(null===(o=this.io.engine)||void 0===o?void 0:o._hasPingExpired());return this.flags.volatile&&!s||(a?(this.notifyOutgoingListeners(i),this.packet(i)):this.sendBuffer.push(i)),this.flags={},this}_registerAckCallback(e,t){var n;const r=null!==(n=this.flags.timeout)&&void 0!==n?n:this._opts.ackTimeout;if(void 0===r)return void(this.acks[e]=t);const o=this.io.setTimeoutFn((()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&this.sendBuffer.splice(t,1);t.call(this,new Error("operation has timed out"))}),r),i=(...e)=>{this.io.clearTimeoutFn(o),t.apply(this,e)};i.withError=!0,this.acks[e]=i}emitWithAck(e,...t){return new Promise(((n,r)=>{const o=(e,t)=>e?r(e):n(t);o.withError=!0,t.push(o),this.emit(e,...t)}))}_addToQueue(e){let t;"function"==typeof e[e.length-1]&&(t=e.pop());const n={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push(((e,...r)=>{if(n!==this._queue[0])return;return null!==e?n.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)):(this._queue.shift(),t&&t(null,...r)),n.pending=!1,this._drainQueue()})),this._queue.push(n),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||0===this._queue.length)return;const t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){"function"==typeof this.auth?this.auth((e=>{this._sendConnectPacket(e)})):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:Yi.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach((e=>{if(!this.sendBuffer.some((t=>String(t.id)===e))){const t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,new Error("socket has been disconnected"))}}))}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case Yi.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Yi.EVENT:case Yi.BINARY_EVENT:this.onevent(e);break;case Yi.ACK:case Yi.BINARY_ACK:this.onack(e);break;case Yi.DISCONNECT:this.ondisconnect();break;case Yi.CONNECT_ERROR:this.destroy();const t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){const t=e.data||[];null!=e.id&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const n of t)n.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&"string"==typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let n=!1;return function(...r){n||(n=!0,t.packet({type:Yi.ACK,id:e,data:r}))}}onack(e){const t=this.acks[e.id];"function"==typeof t&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach((e=>this.emitEvent(e))),this.receiveBuffer=[],this.sendBuffer.forEach((e=>{this.notifyOutgoingListeners(e),this.packet(e)})),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach((e=>e())),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Yi.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const t=this._anyOutgoingListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const t=this._anyOutgoingListeners.slice();for(const n of t)n.apply(this,e.data)}}}function qi(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}qi.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=1&Math.floor(10*t)?e+n:e-n}return 0|Math.min(e,this.max)},qi.prototype.reset=function(){this.attempts=0},qi.prototype.setMin=function(e){this.ms=e},qi.prototype.setMax=function(e){this.max=e},qi.prototype.setJitter=function(e){this.jitter=e};class $i extends ni{constructor(e,t){var n;super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,li(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(n=t.randomizationFactor)&&void 0!==n?n:.5),this.backoff=new qi({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;const r=t.parser||Ji;this.encoder=new r.Encoder,this.decoder=new r.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new Zi(this.uri,this.opts);const t=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;const r=zi(t,"open",(function(){n.onopen(),e&&e()})),o=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},i=zi(t,"error",o);if(!1!==this._timeout){const e=this._timeout,n=this.setTimeoutFn((()=>{r(),o(new Error("timeout")),t.close()}),e);this.opts.autoUnref&&n.unref(),this.subs.push((()=>{this.clearTimeoutFn(n)}))}return this.subs.push(r),this.subs.push(i),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(zi(e,"ping",this.onping.bind(this)),zi(e,"data",this.ondata.bind(this)),zi(e,"error",this.onerror.bind(this)),zi(e,"close",this.onclose.bind(this)),zi(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(e){this.onclose("parse error",e)}}ondecoded(e){ri((()=>{this.emitReserved("packet",e)}),this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new Ki(this,e,t),this.nsps[e]=n),n}_destroy(e){const t=Object.keys(this.nsps);for(const e of t){if(this.nsps[e].active)return}this._close()}_packet(e){const t=this.encoder.encode(e);for(let n=0;n<t.length;n++)this.engine.write(t[n],e.options)}cleanup(){this.subs.forEach((e=>e())),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,t){var n;this.cleanup(),null===(n=this.engine)||void 0===n||n.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const n=this.setTimeoutFn((()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open((t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):e.onreconnect()})))}),t);this.opts.autoUnref&&n.unref(),this.subs.push((()=>{this.clearTimeoutFn(n)}))}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const es={};function ts(e,t){"object"==typeof e&&(t=e,e=void 0);const n=function(e,t="",n){let r=e;n=n||"undefined"!=typeof location&&location,null==e&&(e=n.protocol+"//"+n.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(e=void 0!==n?n.protocol+"//"+e:"https://"+e),r=Ai(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const o=-1!==r.host.indexOf(":")?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+o+":"+r.port+t,r.href=r.protocol+"://"+o+(n&&n.port===r.port?"":":"+r.port),r}(e,(t=t||{}).path||"/socket.io"),r=n.source,o=n.id,i=n.path,s=es[o]&&i in es[o].nsps;let a;return t.forceNew||t["force new connection"]||!1===t.multiplex||s?a=new $i(r,t):(es[o]||(es[o]=new $i(r,t)),a=es[o]),n.query&&!t.query&&(t.query=n.queryKey),a.socket(n.path,t)}Object.assign(ts,{Manager:$i,Socket:Ki,io:ts,connect:ts});var ns,rs=null,os=0,is=function(e){var t=e.size;return p.jsx("div",{style:{width:t||20},className:h.dot_loader})},ss=function(t){var n,r,o=t.apiKey,i=t.parameters,s=t.clientReferenceID,a=t.mode,l=zr().addToast,c=function(t){var n=t.onConnectCallback,r=t.onDisconnectCallback,o=t.mode,i=e.useRef(null);return e.useEffect((function(){os+=1;var e=function(e){return"production"===e?"https://woowga-node.herald.exchange:9001/":"https://efi-exchange.blockstall.com:9001/"}(o);return rs||(rs=ts(e,{transports:["websocket"]})),i.current=rs,n&&rs.on("connect",n),r&&rs.on("disconnect",r),function(){n&&rs.off("connect",n),r&&rs.off("disconnect",r),0==(os-=1)&&rs&&(rs.disconnect(),rs=null)}}),[]),i.current}({mode:a}),u=e.useState(1),d=u[0],f=u[1],b=e.useState(!1),g=b[0],v=b[1],_=e.useState(null),y=_[0],I=_[1],x=e.useState({from_amount:(null==i?void 0:i.from_amount)&&parseFloat(null==i?void 0:i.from_amount)>0?i.from_amount:"0",selectedCrypto:(null==i?void 0:i.from_currency)||"",selectedFiat:(null==i?void 0:i.to_currency)||"",to_currency_conversion_value:0,exchange_rate:0,minAmount:"0.0000001",maxAmount:"100000.0000",network_type:"",selectedBeneficiary:""}),C=x[0],w=x[1],G=e.useState(null),B=G[0],A=G[1],F=e.useState(null),N=F[0],X=F[1],R=e.useState([]),Z=R[0],Q=R[1],k=e.useState([]),L=k[0],W=k[1],E=e.useState([]),V=E[0],U=E[1],D=e.useState(null),S=D[0],O=D[1],M=e.useState(0);M[0];var Y=M[1],j=e.useState(0);j[0];var T=j[1],H=e.useState(0),J=H[0],z=H[1],P=e.useState(0),K=P[0],q=P[1],$=e.useState(0),ee=$[0],te=$[1],ne=e.useState(!1),re=ne[0],oe=ne[1],ie=e.useState(!0),se=ie[0],ae=ie[1],le=e.useState(null),ce=le[0],ue=le[1],de=e.useState({min:!1,max:!1}),fe=de[0],pe=de[1],he=e.useState({admin_commission:0,merchant_commission:0}),me=he[0],be=he[1];e.useEffect((function(){_e(),ve(),ge()}),[]);var ge=function(){var e=no(a);Pr({url:"".concat(e,"/api/lookup/configurations"),headers:{"Content-Type":"application/json","X-API-KEY":o,"User-Id":s},onSuccess:function(e){var t,n;(null==e?void 0:e.success)&&oe(1===(null===(n=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.merchant_configuration)||void 0===n?void 0:n.range_calculation))},onError:function(){l("Error fetching configuration","error")}})},ve=function(){var e=no(a);Pr({url:"".concat(e,"/api/lookup/commissions"),headers:{"Content-Type":"application/json","X-API-KEY":o,"User-Id":s},onSuccess:function(e){(null==e?void 0:e.success)&&O(null==e?void 0:e.data)},onError:function(){l("Error fetching comission","error")}})},_e=function(){var e=no(a);v(!0),Pr({url:"".concat(e,"/api/lookup/currencies"),headers:{"Content-Type":"application/json","X-API-KEY":o,"User-Id":s},onSuccess:function(e){(null==e?void 0:e.success)&&I(null==e?void 0:e.data),v(!1)},onError:function(){l("Error fetching currency","error"),v(!1)}})};e.useEffect((function(){var e,t,n,r,o,s,a,l,c,u,d,f;if(y){var p=(null===(t=null===(e=null==y?void 0:y.currencies)||void 0===e?void 0:e.filter((function(e){var t;return"FIAT"===(null===(t=null==e?void 0:e.supported_currency)||void 0===t?void 0:t.type)&&"offramp"===(null==e?void 0:e.service)})))||void 0===t?void 0:t.map((function(e){var t,n;return{label:null===(t=null==e?void 0:e.supported_currency)||void 0===t?void 0:t.code,value:null==e?void 0:e.unique_id,icon:null===(n=null==e?void 0:e.supported_currency)||void 0===n?void 0:n.icon}})))||[];W(p);var h=(null==C?void 0:C.selectedFiat)?(null===(n=null==y?void 0:y.currencies)||void 0===n?void 0:n.find((function(e){var t;return(null===(t=null==e?void 0:e.supported_currency)||void 0===t?void 0:t.code)===(null==C?void 0:C.selectedFiat)})))||(null===(r=null==y?void 0:y.currencies)||void 0===r?void 0:r.find((function(e){var t,n;return(null===(t=null==e?void 0:e.supported_currency)||void 0===t?void 0:t.code)===(null===(n=null==p?void 0:p[0])||void 0===n?void 0:n.label)}))):null===(o=null==y?void 0:y.currencies)||void 0===o?void 0:o.find((function(e){var t,n;return(null===(t=null==e?void 0:e.supported_currency)||void 0===t?void 0:t.code)===(null===(n=null==p?void 0:p[0])||void 0===n?void 0:n.label)})),b=C.selectedFiat&&p.find((function(e){return e.label===C.selectedFiat}))||(null==p?void 0:p[0]);X(b);var g=(null===(a=null===(s=null==y?void 0:y.currencies)||void 0===s?void 0:s.filter((function(e){var t;return"CRYPTO"===(null===(t=null==e?void 0:e.supported_currency)||void 0===t?void 0:t.type)&&"offramp"===(null==e?void 0:e.service)})))||void 0===a?void 0:a.map((function(e){var t,n;return{label:null===(t=null==e?void 0:e.supported_currency)||void 0===t?void 0:t.code,value:null==e?void 0:e.unique_id,icon:null===(n=null==e?void 0:e.supported_currency)||void 0===n?void 0:n.icon}})))||[];Q(g);var v=(null===(c=null===(l=null==y?void 0:y.currencies)||void 0===l?void 0:l.filter((function(e){var t,n;return"CRYPTO"===(null===(t=null==e?void 0:e.supported_currency)||void 0===t?void 0:t.type)&&"offramp"===(null==e?void 0:e.service)&&!["USDT","USDC"].includes(null===(n=null==e?void 0:e.supported_currency)||void 0===n?void 0:n.code)})))||void 0===c?void 0:c.map((function(e){var t,n,r;return{label:null===(t=null==e?void 0:e.supported_currency)||void 0===t?void 0:t.code,value:null===(n=null==e?void 0:e.supported_currency)||void 0===n?void 0:n.code,icon:null===(r=null==e?void 0:e.supported_currency)||void 0===r?void 0:r.icon}})))||[];U(v);var _=(null==i?void 0:i.from_currency)?(null===(u=null==y?void 0:y.currencies)||void 0===u?void 0:u.find((function(e){var t;return(null===(t=null==e?void 0:e.supported_currency)||void 0===t?void 0:t.code)===(null==i?void 0:i.from_currency)})))||(null===(d=null==y?void 0:y.currencies)||void 0===d?void 0:d.find((function(e){var t,n;return(null===(t=null==e?void 0:e.supported_currency)||void 0===t?void 0:t.code)===(null===(n=null==g?void 0:g[0])||void 0===n?void 0:n.label)}))):null===(f=null==y?void 0:y.currencies)||void 0===f?void 0:f.find((function(e){var t,n;return(null===(t=null==e?void 0:e.supported_currency)||void 0===t?void 0:t.code)===(null===(n=null==g?void 0:g[0])||void 0===n?void 0:n.label)}));A((null==i?void 0:i.from_currency)?g.find((function(e){return e.label===(null==i?void 0:i.from_currency)}))||(null==g?void 0:g[0]):(null==g?void 0:g[0])||[]),w((function(e){var t,n;return m(m({},e),{selectedCrypto:(null===(t=null==_?void 0:_.supported_currency)||void 0===t?void 0:t.code)||"",selectedFiat:(null===(n=null==h?void 0:h.supported_currency)||void 0===n?void 0:n.code)||""})}))}}),[y]),e.useEffect((function(){var e,t;if(S&&y){var n=null===(e=null==S?void 0:S.rules)||void 0===e?void 0:e.find((function(e){return"offramp"===(null==e?void 0:e.service)}));n&&ue(n);var r=null===(t=null==S?void 0:S.commission)||void 0===t?void 0:t.find((function(e){return"offramp"==(null==e?void 0:e.service)}));T((null==r?void 0:r.commission)?parseFloat(null==r?void 0:r.commission):0),be({admin_commission:(null==r?void 0:r.admin_commission)?parseFloat(null==r?void 0:r.admin_commission):0,merchant_commission:(null==r?void 0:r.commission)?parseFloat(null==r?void 0:r.commission):0}),n&&w((function(e){var t,r,o,i,s,a;return m(m({},e),{minAmount:parseFloat(null===(t=null==n?void 0:n.schema)||void 0===t?void 0:t.min)<=0?"0.0000001":null===(o=parseFloat(null===(r=null==n?void 0:n.schema)||void 0===r?void 0:r.min))||void 0===o?void 0:o.toFixed(8),maxAmount:parseFloat(null===(i=null==n?void 0:n.schema)||void 0===i?void 0:i.max)<=0?"100000":null===(a=parseFloat(null===(s=null==n?void 0:n.schema)||void 0===s?void 0:s.max))||void 0===a?void 0:a.toFixed(8)})}))}}),[S,y]),e.useEffect((function(){c&&N&&B&&(q(0),ye())}),[B,N]),e.useEffect((function(){c&&c.on("getSDKExchangeRate",(function(e){z(parseFloat(e)),ae(!1)}))}),[c]);var ye=function(){z(0),ae(!0),c.emit("fetchSDKExchangeRate",{pair:"".concat(null==N?void 0:N.label,"-").concat(null==B?void 0:B.label),user_id:"",type:"sell",apiKey:o,userId:s})};e.useEffect((function(){pe({min:parseFloat(C.from_amount)<parseFloat(C.minAmount)||""===C.from_amount||parseFloat(C.from_amount)<=0,max:parseFloat(C.from_amount)>parseFloat(C.maxAmount)})}),[K,C]),e.useEffect((function(){var e,t,n;if(C){var r=J,o=re?null===(e=null==S?void 0:S.commission_ranges)||void 0===e?void 0:e.find((function(e){return parseFloat(e.from_amount)<=parseFloat(C.from_amount)*r&&parseFloat(e.to_amount)>=parseFloat(C.from_amount)*r&&e.currency===(null==N?void 0:N.label)&&"c-f"===e.type})):null,i=o?parseFloat(null==o?void 0:o.from_commission):0,s=o?parseFloat(null==o?void 0:o.to_commission):0,a=C.from_amount?parseFloat(C.from_amount):0,l=o?parseFloat(o.from_amount):0,c=o?parseFloat(o.to_amount):0,u=o?parseFloat(o.from_commission)-(i-s)/(c-l)*(a*r-l):0,d=((t=(null==me?void 0:me.admin_commission)+u,n=null==me?void 0:me.merchant_commission,100*(1-(1-t/100)*(1-n/100)))||0)/100*r;Y(d||0);var f=parseFloat((r-d).toFixed(6));q(f||0),te(a*f)}}),[J,C,S]),e.useEffect((function(){(null==V?void 0:V.length)>0&&["USDT","USDC"].includes(C.selectedCrypto)&&!C.network_type&&w((function(e){return m(m({},e),{network_type:V[0].value})}))}),[C,V]);return p.jsx(p.Fragment,{children:1===d?p.jsxs(p.Fragment,{children:[" ",p.jsxs("div",{className:h.field_card,children:[p.jsxs("div",{className:h.field_box,children:[p.jsx("div",{className:h.field_label,children:"You Pay"}),p.jsx("div",{className:h.field_form,children:p.jsx("input",{type:"text",className:h.input_control,value:C.from_amount,onChange:function(e){!function(e){var t,n;if(e.includes(".")){if(ce&&!to(e,null===(t=null==ce?void 0:ce.schema)||void 0===t?void 0:t.decimal))return void l("You can input upto ".concat(null===(n=null==ce?void 0:ce.schema)||void 0===n?void 0:n.decimal," decimal places."),"error");""===e?w(m(m({},C),{from_amount:""})):isNaN(Number(e))||w(m(m({},C),{from_amount:e}))}else""===e?w(m(m({},C),{from_amount:""})):isNaN(Number(e))||w(m(m({},C),{from_amount:e}))}(e.target.value)}})})]}),p.jsxs("div",{className:h.field_select_card,children:[p.jsx("div",{className:h.field_select,children:(null==Z?void 0:Z.length)>0?p.jsx(Yr,{backgroundColor:"#f3e2c3",placeholder:"Select",image:!0,singleicons:!0,value:B,isSearchable:!1,onChange:function(e){!function(e){var t,n,r=null===(t=null==y?void 0:y.currencies)||void 0===t?void 0:t.find((function(t){return t.unique_id===(null==e?void 0:e.value)}));w(m(m({},C),{selectedCrypto:(null===(n=null==r?void 0:r.supported_currency)||void 0===n?void 0:n.code)||""})),A(e)}(e)},isDisabled:g,options:Z}):p.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:p.jsx($r,{})})}),(null==V?void 0:V.length)>0&&["USDT","USDC"].includes(C.selectedCrypto)&&p.jsx("div",{className:h.selected__two,children:p.jsx(Yr,{backgroundColor:"#fff",placeholder:"Select",options:V,image:!0,singleicons:!0,isSearchable:!1,onChange:function(e){w(m(m({},C),{network_type:(null==e?void 0:e.value)||""}))},value:V.find((function(e){return e.value==C.network_type})),isDisabled:g})})]})]}),(null==fe?void 0:fe.min)&&p.jsxs("p",{children:["Invalid, Min : ",null===(n=parseFloat(null==C?void 0:C.minAmount))||void 0===n?void 0:n.toFixed(8)]}),(null==fe?void 0:fe.max)&&p.jsxs("p",{children:["Invalid, Max : ",null===(r=parseFloat(null==C?void 0:C.maxAmount))||void 0===r?void 0:r.toString()]}),p.jsxs("div",{className:h.info_box,children:[p.jsxs("div",{className:"".concat(h.ramp_space," ").concat(h.label_card),children:[p.jsx("div",{className:h.label_icons,children:p.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",width:"12",height:"12",viewBox:"0 0 300 300",children:[p.jsx("path",{d:"M240.3 171.5H59.7c-11.9 0-21.5-9.6-21.5-21.5s9.6-21.5 21.5-21.5h180.6c11.9 0 21.5 9.6 21.5 21.5s-9.6 21.5-21.5 21.5","data-original":"#000000"}),p.jsx("circle",{cx:"150",cy:"65.5",r:"30.5","data-original":"#000000"}),p.jsx("circle",{cx:"150.5",cy:"234.5",r:"30.5","data-original":"#000000"})]})}),p.jsxs("div",{className:h.label_value,children:[p.jsx("span",{style:{marginRight:10},children:"Rate :"}),se?p.jsx(is,{}):"1 ".concat(C.selectedCrypto," = ").concat((null==K?void 0:K.toFixed(4))||0," ").concat(C.selectedFiat)]})]}),p.jsxs("div",{className:"".concat(h.ramp_space_top," ").concat(h.label_titles),children:[p.jsx("div",{className:h.label_dots}),p.jsxs("div",{className:h.ramp_details,children:[p.jsx("div",{className:h.ramp_head,children:"Withdrawal Method"}),p.jsx("div",{className:h.payment_box,children:p.jsxs("div",{className:"".concat(h.payment_check_card," ").concat(h.selected),children:[p.jsx("input",{type:"radio",name:"radioDefault",id:"radioDefault1",value:"0.10234",className:h.input_control}),p.jsx("div",{children:"Bank Transfer"}),p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 408.576 408.576",children:p.jsx("g",{children:p.jsx("path",{d:"M204.288 0C91.648 0 0 91.648 0 204.288s91.648 204.288 204.288 204.288 204.288-91.648 204.288-204.288S316.928 0 204.288 0zm114.176 150.528-130.56 129.536c-7.68 7.68-19.968 8.192-28.16.512L90.624 217.6c-8.192-7.68-8.704-20.48-1.536-28.672 7.68-8.192 20.48-8.704 28.672-1.024l54.784 50.176L289.28 121.344c8.192-8.192 20.992-8.192 29.184 0s8.192 20.992 0 29.184z",fill:"#F9C201"})})})]})})]})]})]}),p.jsxs("div",{className:h.field_card,children:[p.jsxs("div",{className:"".concat(h.field_box_res," ").concat(h.field_box),children:[p.jsx("div",{className:h.field_label,children:"You Receive ( estimate )"}),p.jsx("div",{className:h.field_form,children:se?p.jsx(is,{size:20}):p.jsx("input",{type:"text",className:h.input_control,value:(null==fe?void 0:fe.min)||(null==fe?void 0:fe.max)?0:Number(ee)&&Number(ee)>0?null==ee?void 0:ee.toFixed(4):0,disabled:!0})})]}),p.jsx("div",{className:h.field_select_card,children:p.jsx("div",{className:h.field_select,children:(null==L?void 0:L.length)>0?p.jsx(Yr,{backgroundColor:"#f3e2c3",placeholder:"Select",borderColor:"var(--no-color)",image:!0,singleicons:!0,options:L,value:N,isSearchable:!1,onChange:function(e){!function(e){var t,n,r=null===(t=null==y?void 0:y.currencies)||void 0===t?void 0:t.find((function(t){return(null==t?void 0:t.unique_id)===(null==e?void 0:e.value)}));w(m(m({},C),{selectedFiat:(null===(n=null==r?void 0:r.supported_currency)||void 0===n?void 0:n.code)||""})),X(e)}(e)},isDisabled:g||se}):p.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:p.jsx($r,{})})})})]}),p.jsxs("div",{style:{marginTop:20},className:h.info_card,children:[p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30",viewBox:"0 0 32 32",children:p.jsxs("g",{id:"Layer_20","data-name":"Layer 20",children:[p.jsx("path",{fill:"#fbd63b",d:"M28 28H4L16 6z"}),p.jsx("path",{fill:"#f8be31",d:"m16 6 12 22H16z"}),p.jsx("path",{fill:"#333",d:"m16 21-2-7h4z"}),p.jsx("circle",{cx:"16",cy:"25",r:"1",fill:"#333"}),p.jsx("path",{d:"M16 14h2l-2 7zM16 24a1 1 0 0 1 0 2z"})]})}),p.jsx("div",{className:h.caution_info,children:"Cryptocurrencies are volatile, and prices can change rapidly, make sure to research and understand the market risks."})]}),p.jsx("div",{className:h.ramp_action,children:p.jsx("button",{className:"".concat(h.action_btn," ").concat(h.primary," "),onClick:function(){parseFloat(C.from_amount)>0?(w(m(m({},C),{to_currency_conversion_value:ee,exchange_rate:K})),f(2)):l("Please enter valid amount","error")},disabled:g||!(J>0)||fe.min||fe.max,children:"Sell Now"})})]}):2===d?p.jsx(so,{defaultTab:"select",setStep:f,data:C,apiKey:o,clientReferenceID:s,setTokenSellData:w,mode:a}):3===d?p.jsx(ko,{tokenSellData:C,setTokenSellData:w,apiKey:o,clientReferenceID:s,setStep:f,mode:a}):4===d?p.jsx(jr,{tokenSellData:C}):null})},as={},ls={};var cs,us,ds={};
24
- /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */function fs(){return cs||(cs=1,ds.read=function(e,t,n,r,o){var i,s,a=8*o-r-1,l=(1<<a)-1,c=l>>1,u=-7,d=n?o-1:0,f=n?-1:1,p=e[t+d];for(d+=f,i=p&(1<<-u)-1,p>>=-u,u+=a;u>0;i=256*i+e[t+d],d+=f,u-=8);for(s=i&(1<<-u)-1,i>>=-u,u+=r;u>0;s=256*s+e[t+d],d+=f,u-=8);if(0===i)i=1-c;else{if(i===l)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,r),i-=c}return(p?-1:1)*s*Math.pow(2,i-r)},ds.write=function(e,t,n,r,o,i){var s,a,l,c=8*i-o-1,u=(1<<c)-1,d=u>>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=u):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),(t+=s+d>=1?f/l:f*Math.pow(2,1-d))*l>=2&&(s++,l/=2),s+d>=u?(a=0,s=u):s+d>=1?(a=(t*l-1)*Math.pow(2,o),s+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,o),s=0));o>=8;e[n+p]=255&a,p+=h,a/=256,o-=8);for(s=s<<o|a,c+=o;c>0;e[n+p]=255&s,p+=h,s/=256,c-=8);e[n+p-h]|=128*m}),ds}
23
+ */function Go(e,t=0){const n=[];return e.forEach((function(e,r){let o=null;e.forEach((function(i,a){if(!i&&null!==o)return n.push(`M${o+t} ${r+t}h${a-o}v1H${o+t}z`),void(o=null);if(a!==e.length-1)i&&null===o&&(o=a);else{if(!i)return;null===o?n.push(`M${a+t},${r+t} h1v1H${a+t}z`):n.push(`M${o+t},${r+t} h${a+1-o}v1H${o+t}z`)}}))})),n.join("")}function Bo(e,t){return e.slice().map(((e,n)=>n<t.y||n>=t.y+t.h?e:e.map(((e,n)=>(n<t.x||n>=t.x+t.w)&&e))))}function wo({value:t,level:n,minVersion:r,includeMargin:o,marginSize:i,imageSettings:a,size:s,boostLevel:l}){let c=e.useMemo((()=>{const e=(Array.isArray(t)?t:[t]).reduce(((e,t)=>(e.push(...bo.QrSegment.makeSegments(t)),e)),[]);return bo.QrCode.encodeSegments(e,go[n],r,void 0,void 0,l)}),[t,n,r,l]);const{cells:u,margin:d,numCells:p,calculatedImageSettings:f}=e.useMemo((()=>{let e=c.getModules();const t=function(e,t){return null!=t?Math.max(Math.floor(t),0):e?4:0}(o,i),n=e.length+2*t,r=function(e,t,n,r){if(null==r)return null;const o=e.length+2*n,i=Math.floor(.1*t),a=o/t,s=(r.width||i)*a,l=(r.height||i)*a,c=null==r.x?e.length/2-s/2:r.x*a,u=null==r.y?e.length/2-l/2:r.y*a,d=null==r.opacity?1:r.opacity;let p=null;if(r.excavate){let e=Math.floor(c),t=Math.floor(u);p={x:e,y:t,w:Math.ceil(s+c-e),h:Math.ceil(l+u-t)}}return{x:c,y:u,h:l,w:s,excavation:p,opacity:d,crossOrigin:r.crossOrigin}}(e,s,t,a);return{cells:e,margin:t,numCells:n,calculatedImageSettings:r}}),[c,s,a,o,i]);return{qrcode:c,margin:d,cells:u,numCells:p,calculatedImageSettings:f}}var Ao=function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}return!0}(),Fo=e.forwardRef((function(t,n){const r=t,{value:o,size:i=_o,level:a=vo,bgColor:s=yo,fgColor:l=Io,includeMargin:c=xo,minVersion:u=Co,boostLevel:d,marginSize:p,imageSettings:f}=r,h=mo(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:m}=h,b=mo(h,["style"]),g=null==f?void 0:f.src,_=e.useRef(null),v=e.useRef(null),y=e.useCallback((e=>{_.current=e,"function"==typeof n?n(e):n&&(n.current=e)}),[n]),[I,x]=e.useState(!1),{margin:C,cells:G,numCells:B,calculatedImageSettings:w}=wo({value:o,level:a,minVersion:u,boostLevel:d,includeMargin:c,marginSize:p,imageSettings:f,size:i});e.useEffect((()=>{if(null!=_.current){const e=_.current,t=e.getContext("2d");if(!t)return;let n=G;const r=v.current,o=null!=w&&null!==r&&r.complete&&0!==r.naturalHeight&&0!==r.naturalWidth;o&&null!=w.excavation&&(n=Bo(G,w.excavation));const a=window.devicePixelRatio||1;e.height=e.width=i*a;const c=i/B*a;t.scale(c,c),t.fillStyle=s,t.fillRect(0,0,B,B),t.fillStyle=l,Ao?t.fill(new Path2D(Go(n,C))):G.forEach((function(e,n){e.forEach((function(e,r){e&&t.fillRect(r+C,n+C,1,1)}))})),w&&(t.globalAlpha=w.opacity),o&&t.drawImage(r,w.x+C,w.y+C,w.w,w.h)}})),e.useEffect((()=>{x(!1)}),[g]);const A=ho({height:i,width:i},m);let F=null;return null!=g&&(F=e.createElement("img",{src:g,key:g,style:{display:"none"},onLoad:()=>{x(!0)},ref:v,crossOrigin:null==w?void 0:w.crossOrigin})),e.createElement(e.Fragment,null,e.createElement("canvas",ho({style:A,height:i,width:i,ref:y,role:"img"},b)),F)}));Fo.displayName="QRCodeCanvas";var No,Xo,Qo,Ro=e.forwardRef((function(t,n){const r=t,{value:o,size:i=_o,level:a=vo,bgColor:s=yo,fgColor:l=Io,includeMargin:c=xo,minVersion:u=Co,boostLevel:d,title:p,marginSize:f,imageSettings:h}=r,m=mo(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:b,cells:g,numCells:_,calculatedImageSettings:v}=wo({value:o,level:a,minVersion:u,boostLevel:d,includeMargin:c,marginSize:f,imageSettings:h,size:i});let y=g,I=null;null!=h&&null!=v&&(null!=v.excavation&&(y=Bo(g,v.excavation)),I=e.createElement("image",{href:h.src,height:v.h,width:v.w,x:v.x+b,y:v.y+b,preserveAspectRatio:"none",opacity:v.opacity,crossOrigin:v.crossOrigin}));const x=Go(y,b);return e.createElement("svg",ho({height:i,width:i,viewBox:`0 0 ${_} ${_}`,ref:n,role:"img"},m),!!p&&e.createElement("title",null,p),e.createElement("path",{fill:s,d:`M0,0 h${_}v${_}H0z`,shapeRendering:"crispEdges"}),e.createElement("path",{fill:l,d:x,shapeRendering:"crispEdges"}),I)}));function Zo(e){var t,n,r,o,i,a=e.mode,s=e.token;return"development"===a?(r={BNB:97,BUSD:97,ETH:11155111,USDT:11155111,BITCOIN:10001,AVAX:43113,MATIC:84432,SOL:102,XRP:2,POLYGON_AMOY:84432,NILE:3,TRX:1},(t={})[(i={ETHEREUM:11155111,MATIC:84432,BINANCE:97,BITCOIN:10001,AVAX:43113,SOLANA:102,RIPPLE:2,POLYGON_AMOY:84432,NILE:3,TRX:1}).ETHEREUM]="https://api-sepolia.etherscan.io",t[i.MATIC]="https://api-amoy.polygonscan.com",t[i.BINANCE]="https://api-testnet.bscscan.com",t[i.SOLANA]="https://api.devnet.solana.com",t[i.POLYGON_AMOY]="https://api-amoy.polygonscan.com",t[i.NILE]="https://nile.trongrid.io",t[i.TRX]="https://api.shasta.trongrid.io",o=t):(r={BNB:56,ETH:1,BITCOIN:10001,AVAX:43113,MATIC:137,SOL:101,TRX:2},(n={})[(i={ETHEREUM:1,POLYGON:137,BINANCE:56,BITCOIN:10001,AVAX:43113,SOLANA:101,TRX:2}).ETHEREUM]="https://api.etherscan.io",n[i.MATIC]="https://api.polygonscan.com",n[i.BINANCE]="https://api.bscscan.com",n[i.SOLANA]="https://api.mainnet-beta.solana.com",n[i.POLYGON_AMOY]="https://api.polygonscan.com",n[i.TRX]="https://api.trongrid.io",o=n),o[r[s]]}Ro.displayName="QRCodeSVG","production"!=process.env.NODE_ENV?((No={})[(Qo={ETHEREUM:11155111,MATIC:84432,BINANCE:97,BITCOIN:10001,AVAX:43113,SOLANA:102,RIPPLE:2,POLYGON_AMOY:84432,NILE:3,TRX:1}).ETHEREUM]="https://api-sepolia.etherscan.io",No[Qo.MATIC]="https://api-amoy.polygonscan.com",No[Qo.BINANCE]="https://api-testnet.bscscan.com",No[Qo.SOLANA]="https://api.devnet.solana.com",No[Qo.POLYGON_AMOY]="https://api-amoy.polygonscan.com",No[Qo.NILE]="https://nile.trongrid.io",No[Qo.TRX]="https://api.shasta.trongrid.io"):((Xo={})[(Qo={ETHEREUM:1,POLYGON:137,BINANCE:56,BITCOIN:10001,AVAX:43113,SOLANA:101,TRX:1}).ETHEREUM]="https://api.etherscan.io",Xo[Qo.MATIC]="https://api.polygonscan.com",Xo[Qo.BINANCE]="https://api.bscscan.com",Xo[Qo.SOLANA]="https://api.mainnet-beta.solana.com",Xo[Qo.POLYGON_AMOY]="https://api.polygonscan.com",Xo[Qo.TRX]="https://api.trongrid.io");var ko=function(t){var n,r,o=t.tokenSellData,i=t.setTokenSellData,a=t.apiKey,s=t.setStep,l=t.clientReferenceID,c=t.mode,u=zr().addToast,d=e.useState(!1),p=d[0],_=d[1],v=e.useState(!0),y=v[0],I=v[1],x=e.useState(!1),C=x[0];x[1];var G=e.useState(""),B=G[0],w=G[1],A=e.useState(!0),F=A[0],N=A[1],X=e.useState(!0),Q=X[0],R=X[1],Z=e.useState(!1),k=Z[0],W=Z[1],L=e.useState(null),E=L[0],U=L[1],D=e.useState(""),V=D[0],S=D[1],O=e.useState(!1),Y=O[0],M=O[1],j=e.useState(null),T=j[0],H=j[1],J=e.useRef(null),z=e.useRef(null),P=e.useState(o.network_type||""),K=P[0];P[1],e.useEffect((function(){window.scrollTo(0,0),ee()}),[]);var q=function(){te(m(m({},o),{transaction_hash:V}))};e.useEffect((function(){if(!y&&E){var e=E,t=["USDT","USDC"].includes(o.selectedCrypto)?o.network_type:o.selectedCrypto;$(e,t,o.selectedCrypto)}I(!1)}),[E,o]);var $=function(e,t,n){return b(void 0,void 0,void 0,(function(){var r,i,a;return g(this,(function(s){return r="TRX"===t?"tron":"SOL"===t?"solana":"ethereum",["TRX","SOL"].includes(t)||["USDC","USDT"].includes(n),i=o.from_amount.toString(),a="".concat(r,":").concat(e,"?amount=").concat(i,"&label=").concat(encodeURIComponent("HeraldExchangeSell")),w(a),[2]}))}))},ee=function(){return b(void 0,void 0,void 0,(function(){var e;return g(this,(function(t){return e=no(c),W(!0),Pr({url:"".concat(e,"/api/offramp/wallet_address"),headers:{"Content-Type":"application/json","X-API-KEY":a,"User-Id":l},onSuccess:function(e){var t,n,r;if(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.wallet_address){var i=(["USDT","USDC"].includes(o.selectedCrypto)?o.network_type:o.selectedCrypto).toLowerCase(),a=["eth","bnb","matic"].includes(i)?null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.wallet_address.evm:["evm","trx","sol"].includes(i)?null===(r=null==e?void 0:e.data)||void 0===r?void 0:r.wallet_address[i]:"";U(a),W(!1)}},onError:function(){u("Error fetching exchange rate","error"),W(!1)}}),[2]}))}))},te=function(e){return b(void 0,void 0,void 0,(function(){var t,n,r;return g(this,(function(d){return M(!0),t=no(c),(n=new FormData).append("from",o.selectedCrypto),n.append("to",o.selectedFiat),["USDT","USDC"].includes(o.selectedCrypto)&&n.append("network_type",o.network_type),n.append("value",o.from_amount),n.append("initial_exchange_rate",null===(r=o.exchange_rate)||void 0===r?void 0:r.toString()),n.append("transaction_hash",e.transaction_hash),n.append("bank_account",o.selectedBeneficiary),Pr({url:"".concat(t,"/api/offramp/transactions"),headers:{"X-API-KEY":a,"User-Id":l},method:"POST",body:n,onSuccess:function(e){(null==e?void 0:e.success)?(H({data:null==e?void 0:e.data}),_(!0),i(m(m({},o),{response:null==e?void 0:e.data})),M(!1),u("".concat(null==e?void 0:e.message),"success"),s(4)):(u("".concat(null==e?void 0:e.message),"error"),_(!1),M(!1))},onError:function(e){u(" ".concat(e),"error"),_(!1),M(!1)}}),[2]}))}))};e.useEffect((function(){if(!y&&E&&F){var e=E,t=["USDT","USDC"].includes(o.selectedCrypto)?o.network_type:o.selectedCrypto,n=o.selectedCrypto,r=o.from_amount;if(e&&"production"===c){var i=Date.now();J.current=setInterval((function(){["USDT","USDC"].includes(n)&&K?oe({currency:n,token:K,walletAddress:e,startTimestamp:i,expected_amount:r}):ne(t,e,i,r)}),1e4)}else se()}return I(!1),function(){J.current&&clearInterval(J.current)}}),[E,o,F]);var ne=function(e,t,n,r){return b(void 0,void 0,void 0,(function(){var o,i,a;return g(this,(function(s){switch(s.label){case 0:if(o="",i=Zo({mode:c,token:e}),"ETH"===e)o="".concat(i,"/api?module=account&action=txlist&address=").concat(t,"&startblock=0&endblock=99999999&sort=desc&apikey=").concat("B34RQKNPZUV8IM6866DQ58WCS2Q6SWAP8V");else if("BNB"===e)o="".concat(i,"/api?module=account&action=txlist&address=").concat(t,"&startblock=0&endblock=99999999&sort=desc&apikey=").concat("876A7KYGBE2TVBBNY33I4GZPXE1Q4QH3QA");else if("MATIC"===e||"POLYGON"===e||"POLYGON_AMOY"===e)o="".concat(i,"/api?module=account&action=txlist&address=").concat(t,"&startblock=0&endblock=99999999&sort=desc&apikey=").concat("KYV61TJQU5RDMTGY1D95J8R61HWCR9T7KT");else{if("TRX"!==e)return"SOL"===e?[2,ae()]:[2];o="".concat(i,"/v1/accounts/").concat(t,"/transactions?limit=10")}if(!Q)return[3,5];s.label=1;case 1:return s.trys.push([1,4,,5]),[4,fetch(o)];case 2:return[4,s.sent().json()];case 3:return a=s.sent(),re(a,t,e,n,r),[3,5];case 4:return s.sent(),[3,5];case 5:return[2]}}))}))},re=function(e,t,n,r,o){var i=[];"ETH"===n||"BNB"===n||"MATIC"===n?i=e.result:"TRX"===n?i=e.data:"SOL"===n&&(i=e.result),i.forEach((function(e){if(("TRX"==n?e.block_timestamp:1e3*e.timeStamp)>r){var t=e.hash||e.transactionHash||e.txID,i="TRX"==n?e.raw_data.contract[0].parameter.value.amount/1e6:e.value/1e18;o==i&&(z.current.value=t,S(t),N(!1))}}))},oe=function(e){return b(void 0,[e],void 0,(function(e){var t,n,r,o,i,a=e.currency,s=e.token,l=e.walletAddress,u=e.startTimestamp,d=e.expected_amount;return g(this,(function(e){switch(e.label){case 0:if(t="",n=Zo({mode:c,token:s}),r=function(e){var t,n,r=e.mode,o=e.token,i=e.networkType;return"development"===r?(t={USDC:"Gh9ZwEmdLJ8DscKNTkTqPbNwLNNBjuSzaG9Vp2KGtKJr",USDT:"Gh9ZwEmdLJ8DscKNTkTqPbNwLNNBjuSzaG9Vp2KGtKJr"},n={ETH:{USDC:"0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238",USDT:"0x7169D38820dfd117C3FA1f22a697dBA58d90BA06",LINK:"0xb227f007804c16546Bd054dfED2E7A1fD5437678",MATIC:"0x8D38d6Ffa17FFD6dA49D4b53B6f0DFc8D291E867"},MATIC:{USDC:"0x702207d9c124c86c85A97222Cde98476f987ddaE",USDT:"0x702207d9c124c86c85A97222Cde98476f987ddaE",DAI:"0xb2df85a09cAB3a391Fd9ade76342583A0d4B75ce"},POLYGON_AMOY:{USDC:"0x702207d9c124c86c85A97222Cde98476f987ddaE",USDT:"0x702207d9c124c86c85A97222Cde98476f987ddaE",DAI:"0xb2df85a09cAB3a391Fd9ade76342583A0d4B75ce"},BNB:{USDT:"0x337610d27c682E347C9cD60BD4b3b107C9d34dDd",USDC:"0xfbe87897c07Cc64b6FFc04257672854b90e5B17b"},SHASTA:{USDT:"TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs",USDC:"TSdZwNqpHofzP6BsBKGQUWdBeJphLmF6id"},TRX:{USDT:"TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs",USDC:"TSdZwNqpHofzP6BsBKGQUWdBeJphLmF6id"}}):(t={USDC:"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",USDT:"Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"},n={ETH:{USDC:"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",USDT:"0xdAC17F958D2ee523a2206206994597C13D831ec7"},MATIC:{USDC:"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",USDT:"0xc2132D05D31c914a87C6611C10748AEb04B58e8F"},POLYGON:{USDC:"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",USDT:"0xc2132D05D31c914a87C6611C10748AEb04B58e8F"},POLYGON_AMOY:{USDC:"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",USDT:"0xc2132D05D31c914a87C6611C10748AEb04B58e8F"},BNB:{USDT:"0x55d398326f99059fF775485246999027B3197955",USDC:"0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d"},TRX:{USDT:"TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",USDC:"TLZSucJRjnqBKwvQz6n5hd29gbS4P7u7w8"}}),"SOL"===i?t[o]:n[i][o]||""}({mode:c,token:a,networkType:K}),["ETH","BNB","MATIC"].includes(K))o="ETH"==K?"B34RQKNPZUV8IM6866DQ58WCS2Q6SWAP8V":"BNB"==K?"876A7KYGBE2TVBBNY33I4GZPXE1Q4QH3QA":"KYV61TJQU5RDMTGY1D95J8R61HWCR9T7KT",t="".concat(n,"/api?module=account&action=tokentx&address=").concat(l,"&startblock=0&endblock=99999999&sort=desc&apikey=").concat(o);else{if("TRX"!==K)return"SOL"===K?[2,ae()]:[2];t="".concat(n,"/v1/accounts/").concat(l,"/transactions/trc20")}e.label=1;case 1:return e.trys.push([1,4,,5]),[4,fetch(t)];case 2:return[4,e.sent().json()];case 3:return i=e.sent(),ie(i,l,s,u,r,d),[3,5];case 4:return e.sent(),[3,5];case 5:return[2]}}))}))},ie=function(e,t,n,r,o,i){(e.result||e.data||[]).forEach((function(e){if(("TRX"==K?e.block_timestamp:1e3*e.timeStamp)>r)if("TRX"==K){var t=e.hash||e.transaction_id||e.txID;parseFloat(e.value)/Math.pow(10,parseInt(e.token_info.decimals))==i&&(z.current.value=t,S(t),N(!1))}else if(o.toLowerCase()==e.contractAddress.toLowerCase()){t=e.hash||e.transactionHash||e.txID;parseFloat(e.value)/Math.pow(10,parseInt(e.tokenDecimal))==i&&(z.current.value=t,S(t),N(!1))}}))},ae=function(){return b(void 0,void 0,void 0,(function(){return g(this,(function(e){return R(!1),N(!1),[2]}))}))},se=function(){N(!1),R(!1)};return f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:h.bank_head,children:[f.jsx("div",{style:{cursor:"pointer"},onClick:function(){return s(2)},children:f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",width:"18",height:"18",viewBox:"0 0 240.823 240.823",children:f.jsx("path",{d:"M57.633 129.007 165.93 237.268c4.752 4.74 12.451 4.74 17.215 0 4.752-4.74 4.752-12.439 0-17.179l-99.707-99.671 99.695-99.671c4.752-4.74 4.752-12.439 0-17.191-4.752-4.74-12.463-4.74-17.215 0L57.621 111.816c-4.679 4.691-4.679 12.511.012 17.191","data-original":"#000000"})})}),f.jsx("div",{className:h.bank_titles,children:"Sell Crypto"})]}),k?f.jsx(Kr,{}):E&&(null===(n=Object.keys(E))||void 0===n?void 0:n.length)>0?f.jsxs(f.Fragment,{children:[f.jsx("div",{className:h.payment_details_wrap,children:f.jsxs("div",{className:h.sell_qr_payemnt_wrap,children:[f.jsxs("div",{className:h.sell_amt_details,children:[f.jsxs("div",{className:h.sell_amt_details_wrap,children:[f.jsxs("div",{className:h.sell_amt_pay,children:[f.jsx("span",{className:h.sell_pay_label,children:"You Pay "}),f.jsxs("span",{className:h.sell_pay_amt,children:[o.from_amount," ",o.selectedCrypto," ",["USDT","USDC"].includes(o.selectedCrypto)&&o.network_type?"(".concat(o.network_type,")"):""]})]}),f.jsxs("div",{className:h.sell_pay_amt,children:[f.jsx("span",{className:h.sell_pay_label,children:"You Get "}),f.jsxs("span",{className:h.sell_pay_amt,children:[null===(r=o.to_currency_conversion_value)||void 0===r?void 0:r.toFixed(4)," ",o.selectedFiat]})]})]}),f.jsx("div",{className:h.sell_estimated_info,children:f.jsxs("p",{children:[" ",f.jsx("span",{children:"Estimated Rate "})," ",f.jsxs("span",{children:["1 ",o.selectedCrypto," ="," ",isNaN(o.exchange_rate)?0:o.exchange_rate.toFixed(4)," ",o.selectedFiat]})]})})]}),f.jsx("div",{className:h.sell_payment_qr_box,children:f.jsx("div",{className:h.sell_payment_qr_frame,children:B?f.jsx(Fo,{value:B,size:128,bgColor:"#ffffff",fgColor:"#000000",level:"H"}):f.jsx(Kr,{})})})]})}),f.jsxs("form",{onSubmit:q,children:[f.jsxs("div",{className:h.sell_wallet_address_card,children:[C||E&&f.jsxs("div",{className:h.sell_wallet_data_card,children:[f.jsx("h6",{children:"Wallet Address"}),f.jsxs("div",{className:h.sell_wallet_code_card,children:[f.jsxs("div",{className:h.sell_wallet_code,children:[f.jsxs("span",{children:[" ",E]})," "]}),f.jsx("button",{className:"".concat(h.action_btn," ").concat(h.overlay," ").concat(h.item_center_column," ").concat(h.p_0),type:"button",onClick:function(){return b(void 0,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,navigator.clipboard.writeText(E)];case 1:return e.sent(),u("Copied","success"),[2]}}))}))},children:f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"#298BFF","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[f.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),f.jsx("path",{d:"M7 7m0 2.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667z"}),f.jsx("path",{d:"M4.012 16.737a2.005 2.005 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1"})]})})]})]}),f.jsxs("div",{className:h.sell_hash_box,children:[f.jsx("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:f.jsxs("div",{className:h.sell_hash_label,children:["Transaction Hash ",f.jsx("span",{children:"*"})]})}),f.jsx("input",{className:h.sell_hash_fields,type:"text",placeholder:"Enter Transaction Hash",name:"transaction_hash",onChange:function(e){return S(e.target.value)},ref:z,disabled:Q})]})]}),f.jsx("div",{className:h.efi_swap_action,children:F||Y||p?f.jsx("div",{className:"mt-3",children:f.jsx(so,{props:T,monitoring:F})}):f.jsx("button",{className:"".concat(h.action_btn," ").concat(h.primary," "),onClick:function(e){e.preventDefault(),q()},disabled:!V||Y,children:Y?f.jsx(qr,{}):"Submit"})})]})]}):f.jsx(f.Fragment,{children:f.jsxs("div",{className:h.no_wallet_details,children:[f.jsx("p",{children:"No Wallet Details Found"}),f.jsx("div",{children:f.jsx("button",{className:"".concat(h.action_btn," ").concat(h.primary," "),onClick:function(){return ee()},children:"Retry"})})]})})]})};const Wo=Object.create(null);Wo.open="0",Wo.close="1",Wo.ping="2",Wo.pong="3",Wo.message="4",Wo.upgrade="5",Wo.noop="6";const Lo=Object.create(null);Object.keys(Wo).forEach((e=>{Lo[Wo[e]]=e}));const Eo={type:"error",data:"parser error"},Uo="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),Do="function"==typeof ArrayBuffer,Vo=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,So=({type:e,data:t},n,r)=>Uo&&t instanceof Blob?n?r(t):Oo(t,r):Do&&(t instanceof ArrayBuffer||Vo(t))?n?r(t):Oo(new Blob([t]),r):r(Wo[e]+(t||"")),Oo=(e,t)=>{const n=new FileReader;return n.onload=function(){const e=n.result.split(",")[1];t("b"+(e||""))},n.readAsDataURL(e)};function Yo(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let Mo;const jo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",To="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e<64;e++)To[jo.charCodeAt(e)]=e;const Ho="function"==typeof ArrayBuffer,Jo=(e,t)=>{if("string"!=typeof e)return{type:"message",data:Po(e,t)};const n=e.charAt(0);if("b"===n)return{type:"message",data:zo(e.substring(1),t)};return Lo[n]?e.length>1?{type:Lo[n],data:e.substring(1)}:{type:Lo[n]}:Eo},zo=(e,t)=>{if(Ho){const n=(e=>{let t,n,r,o,i,a=.75*e.length,s=e.length,l=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);const c=new ArrayBuffer(a),u=new Uint8Array(c);for(t=0;t<s;t+=4)n=To[e.charCodeAt(t)],r=To[e.charCodeAt(t+1)],o=To[e.charCodeAt(t+2)],i=To[e.charCodeAt(t+3)],u[l++]=n<<2|r>>4,u[l++]=(15&r)<<4|o>>2,u[l++]=(3&o)<<6|63&i;return c})(e);return Po(n,t)}return{base64:!0,data:e}},Po=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,Ko=String.fromCharCode(30);function qo(){return new TransformStream({transform(e,t){!function(e,t){Uo&&e.data instanceof Blob?e.data.arrayBuffer().then(Yo).then(t):Do&&(e.data instanceof ArrayBuffer||Vo(e.data))?t(Yo(e.data)):So(e,!1,(e=>{Mo||(Mo=new TextEncoder),t(Mo.encode(e))}))}(e,(n=>{const r=n.length;let o;if(r<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,r);else if(r<65536){o=new Uint8Array(3);const e=new DataView(o.buffer);e.setUint8(0,126),e.setUint16(1,r)}else{o=new Uint8Array(9);const e=new DataView(o.buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(r))}e.data&&"string"!=typeof e.data&&(o[0]|=128),t.enqueue(o),t.enqueue(n)}))}})}let $o;function ei(e){return e.reduce(((e,t)=>e+t.length),0)}function ti(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let o=0;o<t;o++)n[o]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function ni(e){if(e)return function(e){for(var t in ni.prototype)e[t]=ni.prototype[t];return e}(e)}ni.prototype.on=ni.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},ni.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},ni.prototype.off=ni.prototype.removeListener=ni.prototype.removeAllListeners=ni.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;o<r.length;o++)if((n=r[o])===t||n.fn===t){r.splice(o,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},ni.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var o=(n=n.slice(0)).length;r<o;++r)n[r].apply(this,t)}return this},ni.prototype.emitReserved=ni.prototype.emit,ni.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},ni.prototype.hasListeners=function(e){return!!this.listeners(e).length};const ri="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),oi="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")();function ii(e,...t){return t.reduce(((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t)),{})}const ai=oi.setTimeout,si=oi.clearTimeout;function li(e,t){t.useNativeTimers?(e.setTimeoutFn=ai.bind(oi),e.clearTimeoutFn=si.bind(oi)):(e.setTimeoutFn=oi.setTimeout.bind(oi),e.clearTimeoutFn=oi.clearTimeout.bind(oi))}function ci(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}class ui extends Error{constructor(e,t,n){super(e),this.description=t,this.context=n,this.type="TransportError"}}class di extends ni{constructor(e){super(),this.writable=!1,li(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,n){return super.emitReserved("error",new ui(e,t,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=Jo(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return-1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){const t=function(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}(e);return t.length?"?"+t:""}}class pi extends di{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let e=0;this._polling&&(e++,this.once("pollComplete",(function(){--e||t()}))),this.writable||(e++,this.once("drain",(function(){--e||t()})))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){((e,t)=>{const n=e.split(Ko),r=[];for(let e=0;e<n.length;e++){const o=Jo(n[e],t);if(r.push(o),"error"===o.type)break}return r})(e,this.socket.binaryType).forEach((e=>{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)})),"closed"!==this.readyState&&(this._polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this._poll())}doClose(){const e=()=>{this.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}write(e){this.writable=!1,((e,t)=>{const n=e.length,r=new Array(n);let o=0;e.forEach(((e,i)=>{So(e,!1,(e=>{r[i]=e,++o===n&&t(r.join(Ko))}))}))})(e,(e=>{this.doWrite(e,(()=>{this.writable=!0,this.emitReserved("drain")}))}))}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=ci()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}}let fi=!1;try{fi="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}const hi=fi;function mi(){}class bi extends pi{constructor(e){if(super(e),"undefined"!=typeof location){const t="https:"===location.protocol;let n=location.port;n||(n=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||n!==e.port}}doWrite(e,t){const n=this.request({method:"POST",data:e});n.on("success",t),n.on("error",((e,t)=>{this.onError("xhr post error",e,t)}))}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",((e,t)=>{this.onError("xhr poll error",e,t)})),this.pollXhr=e}}class gi extends ni{constructor(e,t,n){super(),this.createRequest=e,li(this,n),this._opts=n,this._method=n.method||"GET",this._uri=t,this._data=void 0!==n.data?n.data:null,this._create()}_create(){var e;const t=ii(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this._opts.xd;const n=this._xhr=this.createRequest(t);try{n.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let e in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(e)&&n.setRequestHeader(e,this._opts.extraHeaders[e])}}catch(e){}if("POST"===this._method)try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{n.setRequestHeader("Accept","*/*")}catch(e){}null===(e=this._opts.cookieJar)||void 0===e||e.addCookies(n),"withCredentials"in n&&(n.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(n.timeout=this._opts.requestTimeout),n.onreadystatechange=()=>{var e;3===n.readyState&&(null===(e=this._opts.cookieJar)||void 0===e||e.parseCookies(n.getResponseHeader("set-cookie"))),4===n.readyState&&(200===n.status||1223===n.status?this._onLoad():this.setTimeoutFn((()=>{this._onError("number"==typeof n.status?n.status:0)}),0))},n.send(this._data)}catch(e){return void this.setTimeoutFn((()=>{this._onError(e)}),0)}"undefined"!=typeof document&&(this._index=gi.requestsCount++,gi.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(void 0!==this._xhr&&null!==this._xhr){if(this._xhr.onreadystatechange=mi,e)try{this._xhr.abort()}catch(e){}"undefined"!=typeof document&&delete gi.requests[this._index],this._xhr=null}}_onLoad(){const e=this._xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}if(gi.requestsCount=0,gi.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",_i);else if("function"==typeof addEventListener){addEventListener("onpagehide"in oi?"pagehide":"unload",_i,!1)}function _i(){for(let e in gi.requests)gi.requests.hasOwnProperty(e)&&gi.requests[e].abort()}const vi=function(){const e=yi({xdomain:!1});return e&&null!==e.responseType}();function yi(e){const t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||hi))return new XMLHttpRequest}catch(e){}if(!t)try{return new(oi[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(e){}}const Ii="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class xi extends di{get name(){return"websocket"}doOpen(){const e=this.uri(),t=this.opts.protocols,n=Ii?{}:ii(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,n)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const n=e[t],r=t===e.length-1;So(n,this.supportsBinary,(e=>{try{this.doWrite(n,e)}catch(e){}r&&ri((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){void 0!==this.ws&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=ci()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}}const Ci=oi.WebSocket||oi.MozWebSocket;const Gi={websocket:class extends xi{createSocket(e,t,n){return Ii?new Ci(e,t,n):t?new Ci(e,t):new Ci(e)}doWrite(e,t){this.ws.send(t)}},webtransport:class extends di{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then((()=>{this.onClose()})).catch((e=>{this.onError("webtransport error",e)})),this._transport.ready.then((()=>{this._transport.createBidirectionalStream().then((e=>{const t=function(e,t){$o||($o=new TextDecoder);const n=[];let r=0,o=-1,i=!1;return new TransformStream({transform(a,s){for(n.push(a);;){if(0===r){if(ei(n)<1)break;const e=ti(n,1);i=!(128&~e[0]),o=127&e[0],r=o<126?3:126===o?1:2}else if(1===r){if(ei(n)<2)break;const e=ti(n,2);o=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),r=3}else if(2===r){if(ei(n)<8)break;const e=ti(n,8),t=new DataView(e.buffer,e.byteOffset,e.length),i=t.getUint32(0);if(i>Math.pow(2,21)-1){s.enqueue(Eo);break}o=i*Math.pow(2,32)+t.getUint32(4),r=3}else{if(ei(n)<o)break;const e=ti(n,o);s.enqueue(Jo(i?e:$o.decode(e),t)),r=0}if(0===o||o>e){s.enqueue(Eo);break}}}})}(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(t).getReader(),r=qo();r.readable.pipeTo(e.writable),this._writer=r.writable.getWriter();const o=()=>{n.read().then((({done:e,value:t})=>{e||(this.onPacket(t),o())})).catch((e=>{}))};o();const i={type:"open"};this.query.sid&&(i.data=`{"sid":"${this.query.sid}"}`),this._writer.write(i).then((()=>this.onOpen()))}))}))}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const n=e[t],r=t===e.length-1;this._writer.write(n).then((()=>{r&&ri((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){var e;null===(e=this._transport)||void 0===e||e.close()}},polling:class extends bi{constructor(e){super(e);const t=e&&e.forceBase64;this.supportsBinary=vi&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new gi(yi,this.uri(),e)}}},Bi=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,wi=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Ai(e){if(e.length>8e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");-1!=n&&-1!=r&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let o=Bi.exec(e||""),i={},a=14;for(;a--;)i[wi[a]]=o[a]||"";return-1!=n&&-1!=r&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=function(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");"/"!=t.slice(0,1)&&0!==t.length||r.splice(0,1);"/"==t.slice(-1)&&r.splice(r.length-1,1);return r}(0,i.path),i.queryKey=function(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,r){t&&(n[t]=r)})),n}(0,i.query),i}const Fi="function"==typeof addEventListener&&"function"==typeof removeEventListener,Ni=[];Fi&&addEventListener("offline",(()=>{Ni.forEach((e=>e()))}),!1);class Xi extends ni{constructor(e,t){if(super(),this.binaryType="arraybuffer",this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&"object"==typeof e&&(t=e,e=null),e){const n=Ai(e);t.hostname=n.host,t.secure="https"===n.protocol||"wss"===n.protocol,t.port=n.port,n.query&&(t.query=n.query)}else t.host&&(t.hostname=Ai(t.host).host);li(this,t),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},t.transports.forEach((e=>{const t=e.prototype.name;this.transports.push(t),this._transportsByName[t]=e})),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=function(e){let t={},n=e.split("&");for(let e=0,r=n.length;e<r;e++){let r=n[e].split("=");t[decodeURIComponent(r[0])]=decodeURIComponent(r[1])}return t}(this.opts.query)),Fi&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Ni.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=4,t.transport=e,this.id&&(t.sid=this.id);const n=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](n)}_open(){if(0===this.transports.length)return void this.setTimeoutFn((()=>{this.emitReserved("error","No transports available")}),0);const e=this.opts.rememberUpgrade&&Xi.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket")?"websocket":this.transports[0];this.readyState="opening";const t=this.createTransport(e);t.open(),this.setTransport(t)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",(e=>this._onClose("transport close",e)))}onOpen(){this.readyState="open",Xi.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush()}_onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const t=new Error("server error");t.code=e.data,this._onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data)}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn((()=>{this._onClose("ping timeout")}),e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let n=0;n<this.writeBuffer.length;n++){const r=this.writeBuffer[n].data;if(r&&(e+="string"==typeof(t=r)?function(e){let t=0,n=0;for(let r=0,o=e.length;r<o;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}(t):Math.ceil(1.33*(t.byteLength||t.size))),n>0&&e>this._maxPayload)return this.writeBuffer.slice(0,n);e+=2}var t;return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,ri((()=>{this._onClose("ping timeout")}),this.setTimeoutFn)),e}write(e,t,n){return this._sendPacket("message",e,t,n),this}send(e,t,n){return this._sendPacket("message",e,t,n),this}_sendPacket(e,t,n,r){if("function"==typeof t&&(r=t,t=void 0),"function"==typeof n&&(r=n,n=null),"closing"===this.readyState||"closed"===this.readyState)return;(n=n||{}).compress=!1!==n.compress;const o={type:e,data:t,options:n};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),r&&this.once("flush",r),this.flush()}close(){const e=()=>{this._onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},n=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",(()=>{this.upgrading?n():e()})):this.upgrading?n():e()),this}_onError(e){if(Xi.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&"opening"===this.readyState)return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Fi&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const e=Ni.indexOf(this._offlineEventListener);-1!==e&&Ni.splice(e,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this._prevBufferLen=0}}}Xi.protocol=4;class Qi extends Xi{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),"open"===this.readyState&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),n=!1;Xi.priorWebsocketSuccess=!1;const r=()=>{n||(t.send([{type:"ping",data:"probe"}]),t.once("packet",(e=>{if(!n)if("pong"===e.type&&"probe"===e.data){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;Xi.priorWebsocketSuccess="websocket"===t.name,this.transport.pause((()=>{n||"closed"!==this.readyState&&(c(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())}))}else{const e=new Error("probe error");e.transport=t.name,this.emitReserved("upgradeError",e)}})))};function o(){n||(n=!0,c(),t.close(),t=null)}const i=e=>{const n=new Error("probe error: "+e);n.transport=t.name,o(),this.emitReserved("upgradeError",n)};function a(){i("transport closed")}function s(){i("socket closed")}function l(e){t&&e.name!==t.name&&o()}const c=()=>{t.removeListener("open",r),t.removeListener("error",i),t.removeListener("close",a),this.off("close",s),this.off("upgrading",l)};t.once("open",r),t.once("error",i),t.once("close",a),this.once("close",s),this.once("upgrading",l),-1!==this._upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn((()=>{n||t.open()}),200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){const t=[];for(let n=0;n<e.length;n++)~this.transports.indexOf(e[n])&&t.push(e[n]);return t}}let Ri=class extends Qi{constructor(e,t={}){const n="object"==typeof e?e:t;(!n.transports||n.transports&&"string"==typeof n.transports[0])&&(n.transports=(n.transports||["polling","websocket","webtransport"]).map((e=>Gi[e])).filter((e=>!!e))),super(e,n)}};const Zi="function"==typeof ArrayBuffer,ki=Object.prototype.toString,Wi="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===ki.call(Blob),Li="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===ki.call(File);function Ei(e){return Zi&&(e instanceof ArrayBuffer||(e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer)(e))||Wi&&e instanceof Blob||Li&&e instanceof File}function Ui(e,t){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e)){for(let t=0,n=e.length;t<n;t++)if(Ui(e[t]))return!0;return!1}if(Ei(e))return!0;if(e.toJSON&&"function"==typeof e.toJSON&&1===arguments.length)return Ui(e.toJSON(),!0);for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&Ui(e[t]))return!0;return!1}function Di(e){const t=[],n=e.data,r=e;return r.data=Vi(n,t),r.attachments=t.length,{packet:r,buffers:t}}function Vi(e,t){if(!e)return e;if(Ei(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=Vi(e[r],t);return n}if("object"==typeof e&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=Vi(e[r],t));return n}return e}function Si(e,t){return e.data=Oi(e.data,t),delete e.attachments,e}function Oi(e,t){if(!e)return e;if(e&&!0===e._placeholder){if("number"==typeof e.num&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=Oi(e[n],t);else if("object"==typeof e)for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=Oi(e[n],t));return e}const Yi=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var Mi;!function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"}(Mi||(Mi={}));function ji(e){return"[object Object]"===Object.prototype.toString.call(e)}class Ti extends ni{constructor(e){super(),this.reviver=e}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e);const n=t.type===Mi.BINARY_EVENT;n||t.type===Mi.BINARY_ACK?(t.type=n?Mi.EVENT:Mi.ACK,this.reconstructor=new Hi(t),0===t.attachments&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else{if(!Ei(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t))}}decodeString(e){let t=0;const n={type:Number(e.charAt(0))};if(void 0===Mi[n.type])throw new Error("unknown packet type "+n.type);if(n.type===Mi.BINARY_EVENT||n.type===Mi.BINARY_ACK){const r=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);const o=e.substring(r,t);if(o!=Number(o)||"-"!==e.charAt(t))throw new Error("Illegal attachments");n.attachments=Number(o)}if("/"===e.charAt(t+1)){const r=t+1;for(;++t;){if(","===e.charAt(t))break;if(t===e.length)break}n.nsp=e.substring(r,t)}else n.nsp="/";const r=e.charAt(t+1);if(""!==r&&Number(r)==r){const r=t+1;for(;++t;){const n=e.charAt(t);if(null==n||Number(n)!=n){--t;break}if(t===e.length)break}n.id=Number(e.substring(r,t+1))}if(e.charAt(++t)){const r=this.tryParse(e.substr(t));if(!Ti.isPayloadValid(n.type,r))throw new Error("invalid payload");n.data=r}return n}tryParse(e){try{return JSON.parse(e,this.reviver)}catch(e){return!1}}static isPayloadValid(e,t){switch(e){case Mi.CONNECT:return ji(t);case Mi.DISCONNECT:return void 0===t;case Mi.CONNECT_ERROR:return"string"==typeof t||ji(t);case Mi.EVENT:case Mi.BINARY_EVENT:return Array.isArray(t)&&("number"==typeof t[0]||"string"==typeof t[0]&&-1===Yi.indexOf(t[0]));case Mi.ACK:case Mi.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class Hi{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const e=Si(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}var Ji=Object.freeze({__proto__:null,Decoder:Ti,Encoder:class{constructor(e){this.replacer=e}encode(e){return e.type!==Mi.EVENT&&e.type!==Mi.ACK||!Ui(e)?[this.encodeAsString(e)]:this.encodeAsBinary({type:e.type===Mi.EVENT?Mi.BINARY_EVENT:Mi.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id})}encodeAsString(e){let t=""+e.type;return e.type!==Mi.BINARY_EVENT&&e.type!==Mi.BINARY_ACK||(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){const t=Di(e),n=this.encodeAsString(t.packet),r=t.buffers;return r.unshift(n),r}},get PacketType(){return Mi},protocol:5});function zi(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const Pi=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Ki extends ni{constructor(e,t,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[zi(e,"open",this.onopen.bind(this)),zi(e,"packet",this.onpacket.bind(this)),zi(e,"error",this.onerror.bind(this)),zi(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){var n,r,o;if(Pi.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;const i={type:Mi.EVENT,data:t,options:{}};if(i.options.compress=!1!==this.flags.compress,"function"==typeof t[t.length-1]){const e=this.ids++,n=t.pop();this._registerAckCallback(e,n),i.id=e}const a=null===(r=null===(n=this.io.engine)||void 0===n?void 0:n.transport)||void 0===r?void 0:r.writable,s=this.connected&&!(null===(o=this.io.engine)||void 0===o?void 0:o._hasPingExpired());return this.flags.volatile&&!a||(s?(this.notifyOutgoingListeners(i),this.packet(i)):this.sendBuffer.push(i)),this.flags={},this}_registerAckCallback(e,t){var n;const r=null!==(n=this.flags.timeout)&&void 0!==n?n:this._opts.ackTimeout;if(void 0===r)return void(this.acks[e]=t);const o=this.io.setTimeoutFn((()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&this.sendBuffer.splice(t,1);t.call(this,new Error("operation has timed out"))}),r),i=(...e)=>{this.io.clearTimeoutFn(o),t.apply(this,e)};i.withError=!0,this.acks[e]=i}emitWithAck(e,...t){return new Promise(((n,r)=>{const o=(e,t)=>e?r(e):n(t);o.withError=!0,t.push(o),this.emit(e,...t)}))}_addToQueue(e){let t;"function"==typeof e[e.length-1]&&(t=e.pop());const n={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push(((e,...r)=>{if(n!==this._queue[0])return;return null!==e?n.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)):(this._queue.shift(),t&&t(null,...r)),n.pending=!1,this._drainQueue()})),this._queue.push(n),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||0===this._queue.length)return;const t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){"function"==typeof this.auth?this.auth((e=>{this._sendConnectPacket(e)})):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:Mi.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach((e=>{if(!this.sendBuffer.some((t=>String(t.id)===e))){const t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,new Error("socket has been disconnected"))}}))}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case Mi.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Mi.EVENT:case Mi.BINARY_EVENT:this.onevent(e);break;case Mi.ACK:case Mi.BINARY_ACK:this.onack(e);break;case Mi.DISCONNECT:this.ondisconnect();break;case Mi.CONNECT_ERROR:this.destroy();const t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){const t=e.data||[];null!=e.id&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const n of t)n.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&"string"==typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let n=!1;return function(...r){n||(n=!0,t.packet({type:Mi.ACK,id:e,data:r}))}}onack(e){const t=this.acks[e.id];"function"==typeof t&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach((e=>this.emitEvent(e))),this.receiveBuffer=[],this.sendBuffer.forEach((e=>{this.notifyOutgoingListeners(e),this.packet(e)})),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach((e=>e())),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Mi.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const t=this._anyOutgoingListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const t=this._anyOutgoingListeners.slice();for(const n of t)n.apply(this,e.data)}}}function qi(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}qi.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=1&Math.floor(10*t)?e+n:e-n}return 0|Math.min(e,this.max)},qi.prototype.reset=function(){this.attempts=0},qi.prototype.setMin=function(e){this.ms=e},qi.prototype.setMax=function(e){this.max=e},qi.prototype.setJitter=function(e){this.jitter=e};class $i extends ni{constructor(e,t){var n;super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,li(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(n=t.randomizationFactor)&&void 0!==n?n:.5),this.backoff=new qi({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;const r=t.parser||Ji;this.encoder=new r.Encoder,this.decoder=new r.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new Ri(this.uri,this.opts);const t=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;const r=zi(t,"open",(function(){n.onopen(),e&&e()})),o=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},i=zi(t,"error",o);if(!1!==this._timeout){const e=this._timeout,n=this.setTimeoutFn((()=>{r(),o(new Error("timeout")),t.close()}),e);this.opts.autoUnref&&n.unref(),this.subs.push((()=>{this.clearTimeoutFn(n)}))}return this.subs.push(r),this.subs.push(i),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(zi(e,"ping",this.onping.bind(this)),zi(e,"data",this.ondata.bind(this)),zi(e,"error",this.onerror.bind(this)),zi(e,"close",this.onclose.bind(this)),zi(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(e){this.onclose("parse error",e)}}ondecoded(e){ri((()=>{this.emitReserved("packet",e)}),this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new Ki(this,e,t),this.nsps[e]=n),n}_destroy(e){const t=Object.keys(this.nsps);for(const e of t){if(this.nsps[e].active)return}this._close()}_packet(e){const t=this.encoder.encode(e);for(let n=0;n<t.length;n++)this.engine.write(t[n],e.options)}cleanup(){this.subs.forEach((e=>e())),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,t){var n;this.cleanup(),null===(n=this.engine)||void 0===n||n.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const n=this.setTimeoutFn((()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open((t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):e.onreconnect()})))}),t);this.opts.autoUnref&&n.unref(),this.subs.push((()=>{this.clearTimeoutFn(n)}))}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const ea={};function ta(e,t){"object"==typeof e&&(t=e,e=void 0);const n=function(e,t="",n){let r=e;n=n||"undefined"!=typeof location&&location,null==e&&(e=n.protocol+"//"+n.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(e=void 0!==n?n.protocol+"//"+e:"https://"+e),r=Ai(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const o=-1!==r.host.indexOf(":")?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+o+":"+r.port+t,r.href=r.protocol+"://"+o+(n&&n.port===r.port?"":":"+r.port),r}(e,(t=t||{}).path||"/socket.io"),r=n.source,o=n.id,i=n.path,a=ea[o]&&i in ea[o].nsps;let s;return t.forceNew||t["force new connection"]||!1===t.multiplex||a?s=new $i(r,t):(ea[o]||(ea[o]=new $i(r,t)),s=ea[o]),n.query&&!t.query&&(t.query=n.queryKey),s.socket(n.path,t)}Object.assign(ta,{Manager:$i,Socket:Ki,io:ta,connect:ta});var na,ra=null,oa=0,ia=function(e){var t=e.size;return f.jsx("div",{style:{width:t||20},className:h.dot_loader})},aa=function(t){var n,r,o=t.apiKey,i=t.parameters,a=t.clientReferenceID,s=t.mode,l=zr().addToast,c=function(t){var n=t.onConnectCallback,r=t.onDisconnectCallback,o=t.mode,i=e.useRef(null);return e.useEffect((function(){oa+=1;var e=function(e){return"production"===e?"https://woowga-node.herald.exchange:9001/":"https://efi-exchange.blockstall.com:9001/"}(o);return ra||(ra=ta(e,{transports:["websocket"]})),i.current=ra,n&&ra.on("connect",n),r&&ra.on("disconnect",r),function(){n&&ra.off("connect",n),r&&ra.off("disconnect",r),0==(oa-=1)&&ra&&(ra.disconnect(),ra=null)}}),[]),i.current}({mode:s}),u=e.useState(1),d=u[0],p=u[1],b=e.useState(!1),g=b[0],_=b[1],v=e.useState(null),y=v[0],I=v[1],x=e.useState({from_amount:(null==i?void 0:i.from_amount)&&parseFloat(null==i?void 0:i.from_amount)>0?i.from_amount:"0",selectedCrypto:(null==i?void 0:i.from_currency)||"",selectedFiat:(null==i?void 0:i.to_currency)||"",to_currency_conversion_value:0,exchange_rate:0,minAmount:"0.0000001",maxAmount:"100000.0000",network_type:"",selectedBeneficiary:""}),C=x[0],G=x[1],B=e.useState(null),w=B[0],A=B[1],F=e.useState(null),N=F[0],X=F[1],Q=e.useState([]),R=Q[0],Z=Q[1],k=e.useState([]),W=k[0],L=k[1],E=e.useState([]),U=E[0],D=E[1],V=e.useState(null),S=V[0],O=V[1],Y=e.useState(0);Y[0];var M=Y[1],j=e.useState(0);j[0];var T=j[1],H=e.useState(0),J=H[0],z=H[1],P=e.useState(0),K=P[0],q=P[1],$=e.useState(0),ee=$[0],te=$[1],ne=e.useState(!1),re=ne[0],oe=ne[1],ie=e.useState(!0),ae=ie[0],se=ie[1],le=e.useState(null),ce=le[0],ue=le[1],de=e.useState({min:!1,max:!1}),pe=de[0],fe=de[1],he=e.useState({admin_commission:0,merchant_commission:0}),me=he[0],be=he[1];e.useEffect((function(){ve(),_e(),ge()}),[]);var ge=function(){var e=no(s);Pr({url:"".concat(e,"/api/lookup/configurations"),headers:{"Content-Type":"application/json","X-API-KEY":o,"User-Id":a},onSuccess:function(e){var t,n;(null==e?void 0:e.success)&&oe(1===(null===(n=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.merchant_configuration)||void 0===n?void 0:n.range_calculation))},onError:function(){l("Error fetching configuration","error")}})},_e=function(){var e=no(s);Pr({url:"".concat(e,"/api/lookup/commissions"),headers:{"Content-Type":"application/json","X-API-KEY":o,"User-Id":a},onSuccess:function(e){(null==e?void 0:e.success)&&O(null==e?void 0:e.data)},onError:function(){l("Error fetching comission","error")}})},ve=function(){var e=no(s);_(!0),Pr({url:"".concat(e,"/api/lookup/currencies"),headers:{"Content-Type":"application/json","X-API-KEY":o,"User-Id":a},onSuccess:function(e){(null==e?void 0:e.success)&&I(null==e?void 0:e.data),_(!1)},onError:function(){l("Error fetching currency","error"),_(!1)}})};e.useEffect((function(){var e,t,n,r,o,a,s,l,c,u,d,p;if(y){var f=(null===(t=null===(e=null==y?void 0:y.currencies)||void 0===e?void 0:e.filter((function(e){var t;return"FIAT"===(null===(t=null==e?void 0:e.supported_currency)||void 0===t?void 0:t.type)&&"offramp"===(null==e?void 0:e.service)})))||void 0===t?void 0:t.map((function(e){var t,n;return{label:null===(t=null==e?void 0:e.supported_currency)||void 0===t?void 0:t.code,value:null==e?void 0:e.unique_id,icon:null===(n=null==e?void 0:e.supported_currency)||void 0===n?void 0:n.icon}})))||[];L(f);var h=(null==C?void 0:C.selectedFiat)?(null===(n=null==y?void 0:y.currencies)||void 0===n?void 0:n.find((function(e){var t;return(null===(t=null==e?void 0:e.supported_currency)||void 0===t?void 0:t.code)===(null==C?void 0:C.selectedFiat)})))||(null===(r=null==y?void 0:y.currencies)||void 0===r?void 0:r.find((function(e){var t,n;return(null===(t=null==e?void 0:e.supported_currency)||void 0===t?void 0:t.code)===(null===(n=null==f?void 0:f[0])||void 0===n?void 0:n.label)}))):null===(o=null==y?void 0:y.currencies)||void 0===o?void 0:o.find((function(e){var t,n;return(null===(t=null==e?void 0:e.supported_currency)||void 0===t?void 0:t.code)===(null===(n=null==f?void 0:f[0])||void 0===n?void 0:n.label)})),b=C.selectedFiat&&f.find((function(e){return e.label===C.selectedFiat}))||(null==f?void 0:f[0]);X(b);var g=(null===(s=null===(a=null==y?void 0:y.currencies)||void 0===a?void 0:a.filter((function(e){var t;return"CRYPTO"===(null===(t=null==e?void 0:e.supported_currency)||void 0===t?void 0:t.type)&&"offramp"===(null==e?void 0:e.service)})))||void 0===s?void 0:s.map((function(e){var t,n;return{label:null===(t=null==e?void 0:e.supported_currency)||void 0===t?void 0:t.code,value:null==e?void 0:e.unique_id,icon:null===(n=null==e?void 0:e.supported_currency)||void 0===n?void 0:n.icon}})))||[];Z(g);var _=(null===(c=null===(l=null==y?void 0:y.currencies)||void 0===l?void 0:l.filter((function(e){var t,n;return"CRYPTO"===(null===(t=null==e?void 0:e.supported_currency)||void 0===t?void 0:t.type)&&"offramp"===(null==e?void 0:e.service)&&!["USDT","USDC"].includes(null===(n=null==e?void 0:e.supported_currency)||void 0===n?void 0:n.code)})))||void 0===c?void 0:c.map((function(e){var t,n,r;return{label:null===(t=null==e?void 0:e.supported_currency)||void 0===t?void 0:t.code,value:null===(n=null==e?void 0:e.supported_currency)||void 0===n?void 0:n.code,icon:null===(r=null==e?void 0:e.supported_currency)||void 0===r?void 0:r.icon}})))||[];D(_);var v=(null==i?void 0:i.from_currency)?(null===(u=null==y?void 0:y.currencies)||void 0===u?void 0:u.find((function(e){var t;return(null===(t=null==e?void 0:e.supported_currency)||void 0===t?void 0:t.code)===(null==i?void 0:i.from_currency)})))||(null===(d=null==y?void 0:y.currencies)||void 0===d?void 0:d.find((function(e){var t,n;return(null===(t=null==e?void 0:e.supported_currency)||void 0===t?void 0:t.code)===(null===(n=null==g?void 0:g[0])||void 0===n?void 0:n.label)}))):null===(p=null==y?void 0:y.currencies)||void 0===p?void 0:p.find((function(e){var t,n;return(null===(t=null==e?void 0:e.supported_currency)||void 0===t?void 0:t.code)===(null===(n=null==g?void 0:g[0])||void 0===n?void 0:n.label)}));A((null==i?void 0:i.from_currency)?g.find((function(e){return e.label===(null==i?void 0:i.from_currency)}))||(null==g?void 0:g[0]):(null==g?void 0:g[0])||[]),G((function(e){var t,n;return m(m({},e),{selectedCrypto:(null===(t=null==v?void 0:v.supported_currency)||void 0===t?void 0:t.code)||"",selectedFiat:(null===(n=null==h?void 0:h.supported_currency)||void 0===n?void 0:n.code)||""})}))}}),[y]),e.useEffect((function(){var e,t;if(S&&y){var n=null===(e=null==S?void 0:S.rules)||void 0===e?void 0:e.find((function(e){return"offramp"===(null==e?void 0:e.service)}));n&&ue(n);var r=null===(t=null==S?void 0:S.commission)||void 0===t?void 0:t.find((function(e){return"offramp"==(null==e?void 0:e.service)}));T((null==r?void 0:r.commission)?parseFloat(null==r?void 0:r.commission):0),be({admin_commission:(null==r?void 0:r.admin_commission)?parseFloat(null==r?void 0:r.admin_commission):0,merchant_commission:(null==r?void 0:r.commission)?parseFloat(null==r?void 0:r.commission):0}),n&&G((function(e){var t,r,o,i,a,s;return m(m({},e),{minAmount:parseFloat(null===(t=null==n?void 0:n.schema)||void 0===t?void 0:t.min)<=0?"0.0000001":null===(o=parseFloat(null===(r=null==n?void 0:n.schema)||void 0===r?void 0:r.min))||void 0===o?void 0:o.toFixed(8),maxAmount:parseFloat(null===(i=null==n?void 0:n.schema)||void 0===i?void 0:i.max)<=0?"100000":null===(s=parseFloat(null===(a=null==n?void 0:n.schema)||void 0===a?void 0:a.max))||void 0===s?void 0:s.toFixed(8)})}))}}),[S,y]),e.useEffect((function(){c&&N&&w&&(q(0),ye())}),[w,N]),e.useEffect((function(){c&&c.on("getSDKExchangeRate",(function(e){z(parseFloat(e)),se(!1)}))}),[c]);var ye=function(){z(0),se(!0),c.emit("fetchSDKExchangeRate",{pair:"".concat(null==N?void 0:N.label,"-").concat(null==w?void 0:w.label),user_id:"",type:"sell",apiKey:o,userId:a})};e.useEffect((function(){fe({min:parseFloat(C.from_amount)<parseFloat(C.minAmount)||""===C.from_amount||parseFloat(C.from_amount)<=0,max:parseFloat(C.from_amount)>parseFloat(C.maxAmount)})}),[K,C]),e.useEffect((function(){var e,t,n;if(C){var r=J,o=re?null===(e=null==S?void 0:S.commission_ranges)||void 0===e?void 0:e.find((function(e){return parseFloat(e.from_amount)<=parseFloat(C.from_amount)*r&&parseFloat(e.to_amount)>=parseFloat(C.from_amount)*r&&e.currency===(null==N?void 0:N.label)&&"c-f"===e.type})):null,i=o?parseFloat(null==o?void 0:o.from_commission):0,a=o?parseFloat(null==o?void 0:o.to_commission):0,s=C.from_amount?parseFloat(C.from_amount):0,l=o?parseFloat(o.from_amount):0,c=o?parseFloat(o.to_amount):0,u=o?parseFloat(o.from_commission)-(i-a)/(c-l)*(s*r-l):0,d=((t=(null==me?void 0:me.admin_commission)+u,n=null==me?void 0:me.merchant_commission,100*(1-(1-t/100)*(1-n/100)))||0)/100*r;M(d||0);var p=parseFloat((r-d).toFixed(6));q(p||0),te(s*p)}}),[J,C,S]),e.useEffect((function(){(null==U?void 0:U.length)>0&&["USDT","USDC"].includes(C.selectedCrypto)&&!C.network_type&&G((function(e){return m(m({},e),{network_type:U[0].value})}))}),[C,U]);return f.jsx(f.Fragment,{children:1===d?f.jsxs(f.Fragment,{children:[" ",f.jsxs("div",{className:h.field_card,children:[f.jsxs("div",{className:h.field_box,children:[f.jsx("div",{className:h.field_label,children:"You Pay"}),f.jsx("div",{className:h.field_form,children:f.jsx("input",{type:"text",className:h.input_control,value:C.from_amount,onChange:function(e){!function(e){var t,n;if(e.includes(".")){if(ce&&!to(e,null===(t=null==ce?void 0:ce.schema)||void 0===t?void 0:t.decimal))return void l("You can input upto ".concat(null===(n=null==ce?void 0:ce.schema)||void 0===n?void 0:n.decimal," decimal places."),"error");""===e?G(m(m({},C),{from_amount:""})):isNaN(Number(e))||G(m(m({},C),{from_amount:e}))}else""===e?G(m(m({},C),{from_amount:""})):isNaN(Number(e))||G(m(m({},C),{from_amount:e}))}(e.target.value)}})})]}),f.jsxs("div",{className:h.field_select_card,children:[f.jsx("div",{className:h.field_select,children:(null==R?void 0:R.length)>0?f.jsx(Mr,{backgroundColor:"#f3e2c3",placeholder:"Select",image:!0,singleicons:!0,value:w,isSearchable:!1,onChange:function(e){!function(e){var t,n,r=null===(t=null==y?void 0:y.currencies)||void 0===t?void 0:t.find((function(t){return t.unique_id===(null==e?void 0:e.value)}));G(m(m({},C),{selectedCrypto:(null===(n=null==r?void 0:r.supported_currency)||void 0===n?void 0:n.code)||""})),A(e)}(e)},isDisabled:g,options:R}):f.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:f.jsx($r,{})})}),(null==U?void 0:U.length)>0&&["USDT","USDC"].includes(C.selectedCrypto)&&f.jsx("div",{className:h.selected__two,children:f.jsx(Mr,{backgroundColor:"#fff",placeholder:"Select",options:U,image:!0,singleicons:!0,isSearchable:!1,onChange:function(e){G(m(m({},C),{network_type:(null==e?void 0:e.value)||""}))},value:U.find((function(e){return e.value==C.network_type})),isDisabled:g})})]})]}),(null==pe?void 0:pe.min)&&f.jsxs("p",{children:["Invalid, Min : ",null===(n=parseFloat(null==C?void 0:C.minAmount))||void 0===n?void 0:n.toFixed(8)]}),(null==pe?void 0:pe.max)&&f.jsxs("p",{children:["Invalid, Max : ",null===(r=parseFloat(null==C?void 0:C.maxAmount))||void 0===r?void 0:r.toString()]}),f.jsxs("div",{className:h.info_box,children:[f.jsxs("div",{className:"".concat(h.ramp_space," ").concat(h.label_card),children:[f.jsx("div",{className:h.label_icons,children:f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",width:"12",height:"12",viewBox:"0 0 300 300",children:[f.jsx("path",{d:"M240.3 171.5H59.7c-11.9 0-21.5-9.6-21.5-21.5s9.6-21.5 21.5-21.5h180.6c11.9 0 21.5 9.6 21.5 21.5s-9.6 21.5-21.5 21.5","data-original":"#000000"}),f.jsx("circle",{cx:"150",cy:"65.5",r:"30.5","data-original":"#000000"}),f.jsx("circle",{cx:"150.5",cy:"234.5",r:"30.5","data-original":"#000000"})]})}),f.jsxs("div",{className:h.label_value,children:[f.jsx("span",{style:{marginRight:10},children:"Rate :"}),ae?f.jsx(ia,{}):"1 ".concat(C.selectedCrypto," = ").concat((null==K?void 0:K.toFixed(4))||0," ").concat(C.selectedFiat)]})]}),f.jsxs("div",{className:"".concat(h.ramp_space_top," ").concat(h.label_titles),children:[f.jsx("div",{className:h.label_dots}),f.jsxs("div",{className:h.ramp_details,children:[f.jsx("div",{className:h.ramp_head,children:"Withdrawal Method"}),f.jsx("div",{className:h.payment_box,children:f.jsxs("div",{className:"".concat(h.payment_check_card," ").concat(h.selected),children:[f.jsx("input",{type:"radio",name:"radioDefault",id:"radioDefault1",value:"0.10234",className:h.input_control}),f.jsx("div",{children:"Bank Transfer"}),f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 408.576 408.576",children:f.jsx("g",{children:f.jsx("path",{d:"M204.288 0C91.648 0 0 91.648 0 204.288s91.648 204.288 204.288 204.288 204.288-91.648 204.288-204.288S316.928 0 204.288 0zm114.176 150.528-130.56 129.536c-7.68 7.68-19.968 8.192-28.16.512L90.624 217.6c-8.192-7.68-8.704-20.48-1.536-28.672 7.68-8.192 20.48-8.704 28.672-1.024l54.784 50.176L289.28 121.344c8.192-8.192 20.992-8.192 29.184 0s8.192 20.992 0 29.184z",fill:"#F9C201"})})})]})})]})]})]}),f.jsxs("div",{className:h.field_card,children:[f.jsxs("div",{className:"".concat(h.field_box_res," ").concat(h.field_box),children:[f.jsx("div",{className:h.field_label,children:"You Receive ( estimate )"}),f.jsx("div",{className:h.field_form,children:ae?f.jsx(ia,{size:20}):f.jsx("input",{type:"text",className:h.input_control,value:(null==pe?void 0:pe.min)||(null==pe?void 0:pe.max)?0:Number(ee)&&Number(ee)>0?null==ee?void 0:ee.toFixed(4):0,disabled:!0})})]}),f.jsx("div",{className:h.field_select_card,children:f.jsx("div",{className:h.field_select,children:(null==W?void 0:W.length)>0?f.jsx(Mr,{backgroundColor:"#f3e2c3",placeholder:"Select",borderColor:"var(--no-color)",image:!0,singleicons:!0,options:W,value:N,isSearchable:!1,onChange:function(e){!function(e){var t,n,r=null===(t=null==y?void 0:y.currencies)||void 0===t?void 0:t.find((function(t){return(null==t?void 0:t.unique_id)===(null==e?void 0:e.value)}));G(m(m({},C),{selectedFiat:(null===(n=null==r?void 0:r.supported_currency)||void 0===n?void 0:n.code)||""})),X(e)}(e)},isDisabled:g||ae}):f.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:f.jsx($r,{})})})})]}),f.jsxs("div",{style:{marginTop:20},className:h.info_card,children:[f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30",viewBox:"0 0 32 32",children:f.jsxs("g",{id:"Layer_20","data-name":"Layer 20",children:[f.jsx("path",{fill:"#fbd63b",d:"M28 28H4L16 6z"}),f.jsx("path",{fill:"#f8be31",d:"m16 6 12 22H16z"}),f.jsx("path",{fill:"#333",d:"m16 21-2-7h4z"}),f.jsx("circle",{cx:"16",cy:"25",r:"1",fill:"#333"}),f.jsx("path",{d:"M16 14h2l-2 7zM16 24a1 1 0 0 1 0 2z"})]})}),f.jsx("div",{className:h.caution_info,children:"Cryptocurrencies are volatile, and prices can change rapidly, make sure to research and understand the market risks."})]}),f.jsx("div",{className:h.ramp_action,children:f.jsx("button",{className:"".concat(h.action_btn," ").concat(h.primary," "),onClick:function(){parseFloat(C.from_amount)>0?(G(m(m({},C),{to_currency_conversion_value:ee,exchange_rate:K})),p(2)):l("Please enter valid amount","error")},disabled:g||!(J>0)||pe.min||pe.max,children:"Sell Now"})})]}):2===d?f.jsx(ao,{defaultTab:"select",setStep:p,data:C,apiKey:o,clientReferenceID:a,setTokenSellData:G,mode:s}):3===d?f.jsx(ko,{tokenSellData:C,setTokenSellData:G,apiKey:o,clientReferenceID:a,setStep:p,mode:s}):4===d?f.jsx(jr,{tokenSellData:C}):null})},sa={},la={};var ca,ua,da={};
24
+ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */function pa(){return ca||(ca=1,da.read=function(e,t,n,r,o){var i,a,s=8*o-r-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?o-1:0,p=n?-1:1,f=e[t+d];for(d+=p,i=f&(1<<-u)-1,f>>=-u,u+=s;u>0;i=256*i+e[t+d],d+=p,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=r;u>0;a=256*a+e[t+d],d+=p,u-=8);if(0===i)i=1-c;else{if(i===l)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,r),i-=c}return(f?-1:1)*a*Math.pow(2,i-r)},da.write=function(e,t,n,r,o,i){var a,s,l,c=8*i-o-1,u=(1<<c)-1,d=u>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:i-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?p/l:p*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,o),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,o),a=0));o>=8;e[n+f]=255&s,f+=h,s/=256,o-=8);for(a=a<<o|s,c+=o;c>0;e[n+f]=255&a,f+=h,a/=256,c-=8);e[n+f-h]|=128*m}),da}
25
25
  /*!
26
26
  * The buffer module from node.js, for the browser.
27
27
  *
28
28
  * @author Feross Aboukhadijeh <https://feross.org>
29
29
  * @license MIT
30
- */function ps(){return us||(us=1,function(e){const t=function(){if(ns)return ls;ns=1,ls.byteLength=function(e){var t=i(e),n=t[0],r=t[1];return 3*(n+r)/4-r},ls.toByteArray=function(e){var r,o,s=i(e),a=s[0],l=s[1],c=new n(function(e,t,n){return 3*(t+n)/4-n}(0,a,l)),u=0,d=l>0?a-4:a;for(o=0;o<d;o+=4)r=t[e.charCodeAt(o)]<<18|t[e.charCodeAt(o+1)]<<12|t[e.charCodeAt(o+2)]<<6|t[e.charCodeAt(o+3)],c[u++]=r>>16&255,c[u++]=r>>8&255,c[u++]=255&r;return 2===l&&(r=t[e.charCodeAt(o)]<<2|t[e.charCodeAt(o+1)]>>4,c[u++]=255&r),1===l&&(r=t[e.charCodeAt(o)]<<10|t[e.charCodeAt(o+1)]<<4|t[e.charCodeAt(o+2)]>>2,c[u++]=r>>8&255,c[u++]=255&r),c},ls.fromByteArray=function(t){for(var n,r=t.length,o=r%3,i=[],a=16383,l=0,c=r-o;l<c;l+=a)i.push(s(t,l,l+a>c?c:l+a));return 1===o?(n=t[r-1],i.push(e[n>>2]+e[n<<4&63]+"==")):2===o&&(n=(t[r-2]<<8)+t[r-1],i.push(e[n>>10]+e[n>>4&63]+e[n<<2&63]+"=")),i.join("")};for(var e=[],t=[],n="undefined"!=typeof Uint8Array?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0;o<64;++o)e[o]=r[o],t[r.charCodeAt(o)]=o;function i(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function s(t,n,r){for(var o,i,s=[],a=n;a<r;a+=3)o=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(255&t[a+2]),s.push(e[(i=o)>>18&63]+e[i>>12&63]+e[i>>6&63]+e[63&i]);return s.join("")}return t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63,ls}(),n=fs(),r="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=function(e){+e!=e&&(e=0);return s.alloc(+e)},e.INSPECT_MAX_BYTES=50;const o=2147483647;function i(e){if(e>o)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return c(e)}return a(e,t,n)}function a(e,t,n){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!s.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|p(e,t);let r=i(n);const o=r.write(e,t);o!==n&&(r=r.slice(0,o));return r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(H(e,Uint8Array)){const t=new Uint8Array(e);return d(t.buffer,t.byteOffset,t.byteLength)}return u(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(H(e,ArrayBuffer)||e&&H(e.buffer,ArrayBuffer))return d(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(H(e,SharedArrayBuffer)||e&&H(e.buffer,SharedArrayBuffer)))return d(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return s.from(r,t,n);const o=function(e){if(s.isBuffer(e)){const t=0|f(e.length),n=i(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!=typeof e.length||J(e.length)?i(0):u(e);if("Buffer"===e.type&&Array.isArray(e.data))return u(e.data)}(e);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return l(e),i(e<0?0:0|f(e))}function u(e){const t=e.length<0?0:0|f(e.length),n=i(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function d(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,s.prototype),r}function f(e){if(e>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|e}function p(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||H(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let o=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return Y(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return j(e).length;default:if(o)return r?-1:Y(e).length;t=(""+t).toLowerCase(),o=!0}}function h(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return F(this,t,n);case"utf8":case"utf-8":return w(this,t,n);case"ascii":return B(this,t,n);case"latin1":case"binary":return A(this,t,n);case"base64":return C(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function m(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function b(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),J(n=+n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:g(e,t,n,r,o);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):g(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function g(e,t,n,r,o){let i,s=1,a=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,l/=2,n/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(o){let r=-1;for(i=n;i<a;i++)if(c(e,i)===c(t,-1===r?0:i-r)){if(-1===r&&(r=i),i-r+1===l)return r*s}else-1!==r&&(i-=i-r),r=-1}else for(n+l>a&&(n=a-l),i=n;i>=0;i--){let n=!0;for(let r=0;r<l;r++)if(c(e,i+r)!==c(t,r)){n=!1;break}if(n)return i}return-1}function v(e,t,n,r){n=Number(n)||0;const o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;const i=t.length;let s;for(r>i/2&&(r=i/2),s=0;s<r;++s){const r=parseInt(t.substr(2*s,2),16);if(J(r))return s;e[n+s]=r}return s}function _(e,t,n,r){return T(Y(t,e.length-n),e,n,r)}function y(e,t,n,r){return T(function(e){const t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function I(e,t,n,r){return T(j(t),e,n,r)}function x(e,t,n,r){return T(function(e,t){let n,r,o;const i=[];for(let s=0;s<e.length&&!((t-=2)<0);++s)n=e.charCodeAt(s),r=n>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function C(e,n,r){return 0===n&&r===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(n,r))}function w(e,t,n){n=Math.min(e.length,n);const r=[];let o=t;for(;o<n;){const t=e[o];let i=null,s=t>239?4:t>223?3:t>191?2:1;if(o+s<=n){let n,r,a,l;switch(s){case 1:t<128&&(i=t);break;case 2:n=e[o+1],128==(192&n)&&(l=(31&t)<<6|63&n,l>127&&(i=l));break;case 3:n=e[o+1],r=e[o+2],128==(192&n)&&128==(192&r)&&(l=(15&t)<<12|(63&n)<<6|63&r,l>2047&&(l<55296||l>57343)&&(i=l));break;case 4:n=e[o+1],r=e[o+2],a=e[o+3],128==(192&n)&&128==(192&r)&&128==(192&a)&&(l=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&a,l>65535&&l<1114112&&(i=l))}}null===i?(i=65533,s=1):i>65535&&(i-=65536,r.push(i>>>10&1023|55296),i=56320|1023&i),r.push(i),o+=s}return function(e){const t=e.length;if(t<=G)return String.fromCharCode.apply(String,e);let n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=G));return n}(r)}e.kMaxLength=o,s.TYPED_ARRAY_SUPPORT=function(){try{const 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}}(),!s.TYPED_ARRAY_SUPPORT&&"undefined"!=typeof console&&console.error,Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,n){return a(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,n){return function(e,t,n){return l(e),e<=0?i(e):void 0!==t?"string"==typeof n?i(e).fill(t,n):i(e).fill(t):i(e)}(e,t,n)},s.allocUnsafe=function(e){return c(e)},s.allocUnsafeSlow=function(e){return c(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(H(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),H(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,r=t.length;for(let o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);let n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const r=s.allocUnsafe(t);let o=0;for(n=0;n<e.length;++n){let t=e[n];if(H(t,Uint8Array))o+t.length>r.length?(s.isBuffer(t)||(t=s.from(t)),t.copy(r,o)):Uint8Array.prototype.set.call(r,t,o);else{if(!s.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,o)}o+=t.length}return r},s.byteLength=p,s.prototype._isBuffer=!0,s.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)m(this,t,t+1);return this},s.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},s.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},s.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?w(this,0,e):h.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){let t="";const n=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(t+=" ... "),"<Buffer "+t+">"},r&&(s.prototype[r]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,o){if(H(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;let i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0);const l=Math.min(i,a),c=this.slice(r,o),u=e.slice(t,n);for(let e=0;e<l;++e)if(c[e]!==u[e]){i=c[e],a=u[e];break}return i<a?-1:a<i?1:0},s.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},s.prototype.indexOf=function(e,t,n){return b(this,e,t,n,!0)},s.prototype.lastIndexOf=function(e,t,n){return b(this,e,t,n,!1)},s.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let i=!1;for(;;)switch(r){case"hex":return v(this,e,t,n);case"utf8":case"utf-8":return _(this,e,t,n);case"ascii":case"latin1":case"binary":return y(this,e,t,n);case"base64":return I(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const G=4096;function B(e,t,n){let r="";n=Math.min(e.length,n);for(let o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function A(e,t,n){let r="";n=Math.min(e.length,n);for(let o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function F(e,t,n){const r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let o="";for(let r=t;r<n;++r)o+=z[e[r]];return o}function N(e,t,n){const r=e.slice(t,n);let o="";for(let e=0;e<r.length-1;e+=2)o+=String.fromCharCode(r[e]+256*r[e+1]);return o}function X(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function R(e,t,n,r,o,i){if(!s.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function Z(e,t,n,r,o){D(t,r,o,e,n,7);let i=Number(t&BigInt(4294967295));e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s,n}function Q(e,t,n,r,o){D(t,r,o,e,n,7);let i=Number(t&BigInt(4294967295));e[n+7]=i,i>>=8,e[n+6]=i,i>>=8,e[n+5]=i,i>>=8,e[n+4]=i;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=s,s>>=8,e[n+2]=s,s>>=8,e[n+1]=s,s>>=8,e[n]=s,n+8}function k(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function L(e,t,r,o,i){return t=+t,r>>>=0,i||k(e,0,r,4),n.write(e,t,r,o,23,4),r+4}function W(e,t,r,o,i){return t=+t,r>>>=0,i||k(e,0,r,8),n.write(e,t,r,o,52,8),r+8}s.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);const r=this.subarray(e,t);return Object.setPrototypeOf(r,s.prototype),r},s.prototype.readUintLE=s.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||X(e,t,this.length);let r=this[e],o=1,i=0;for(;++i<t&&(o*=256);)r+=this[e+i]*o;return r},s.prototype.readUintBE=s.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||X(e,t,this.length);let r=this[e+--t],o=1;for(;t>0&&(o*=256);)r+=this[e+--t]*o;return r},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||X(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||X(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||X(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||X(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||X(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readBigUInt64LE=P((function(e){S(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||O(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,o=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(o)<<BigInt(32))})),s.prototype.readBigUInt64BE=P((function(e){S(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||O(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],o=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(o)})),s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||X(e,t,this.length);let r=this[e],o=1,i=0;for(;++i<t&&(o*=256);)r+=this[e+i]*o;return o*=128,r>=o&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||X(e,t,this.length);let r=t,o=1,i=this[e+--r];for(;r>0&&(o*=256);)i+=this[e+--r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i},s.prototype.readInt8=function(e,t){return e>>>=0,t||X(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||X(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||X(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||X(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||X(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readBigInt64LE=P((function(e){S(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||O(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),s.prototype.readBigInt64BE=P((function(e){S(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||O(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+n)})),s.prototype.readFloatLE=function(e,t){return e>>>=0,t||X(e,4,this.length),n.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||X(e,4,this.length),n.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||X(e,8,this.length),n.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||X(e,8,this.length),n.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){R(this,e,t,n,Math.pow(2,8*n)-1,0)}let o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){R(this,e,t,n,Math.pow(2,8*n)-1,0)}let o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||R(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},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||R(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},s.prototype.writeBigUInt64LE=P((function(e,t=0){return Z(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),s.prototype.writeBigUInt64BE=P((function(e,t=0){return Q(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);R(this,e,t,n,r-1,-r)}let o=0,i=1,s=0;for(this[t]=255&e;++o<n&&(i*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/i|0)-s&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);R(this,e,t,n,r-1,-r)}let o=n-1,i=1,s=0;for(this[t+o]=255&e;--o>=0&&(i*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/i|0)-s&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||R(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},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||R(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},s.prototype.writeBigInt64LE=P((function(e,t=0){return Z(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),s.prototype.writeBigInt64BE=P((function(e,t=0){return Q(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),s.prototype.writeFloatLE=function(e,t,n){return L(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return L(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return W(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return W(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);const o=r-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),o},s.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!s.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){const t=e.charCodeAt(0);("utf8"===r&&t<128||"latin1"===r)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;let o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{const i=s.isBuffer(e)?e:s.from(e,r),a=i.length;if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-t;++o)this[o+t]=i[o%a]}return this};const E={};function V(e,t,n){E[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function U(e){let t="",n=e.length;const r="-"===e[0]?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function D(e,t,n,r,o,i){if(e>n||e<t){const n="bigint"==typeof t?"n":"";let r;throw r=0===t||t===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(i+1)}${n}`:`>= -(2${n} ** ${8*(i+1)-1}${n}) and < 2 ** ${8*(i+1)-1}${n}`,new E.ERR_OUT_OF_RANGE("value",r,e)}!function(e,t,n){S(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||O(t,e.length-(n+1))}(r,o,i)}function S(e,t){if("number"!=typeof e)throw new E.ERR_INVALID_ARG_TYPE(t,"number",e)}function O(e,t,n){if(Math.floor(e)!==e)throw S(e,n),new E.ERR_OUT_OF_RANGE("offset","an integer",e);if(t<0)throw new E.ERR_BUFFER_OUT_OF_BOUNDS;throw new E.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${t}`,e)}V("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),V("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),V("ERR_OUT_OF_RANGE",(function(e,t,n){let r=`The value of "${e}" is out of range.`,o=n;return Number.isInteger(n)&&Math.abs(n)>2**32?o=U(String(n)):"bigint"==typeof n&&(o=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(o=U(o)),o+="n"),r+=` It must be ${t}. Received ${o}`,r}),RangeError);const M=/[^+/0-9A-Za-z-_]/g;function Y(e,t){let n;t=t||1/0;const r=e.length;let o=null;const i=[];for(let s=0;s<r;++s){if(n=e.charCodeAt(s),n>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function j(e){return t.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(M,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function T(e,t,n,r){let o;for(o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function H(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function J(e){return e!=e}const z=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let o=0;o<16;++o)t[r+o]=e[n]+e[o]}return t}();function P(e){return"undefined"==typeof BigInt?K:e}function K(){throw new Error("BigInt not supported")}}(as)),as}var hs,ms=ps(),bs={exports:{}};function gs(){return hs||(hs=1,bs.exports=function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="ARRAYBUFFER not supported by this environment",n="UINT8ARRAY not supported by this environment";function r(e,t,n,r){var o,i,s,a=t||[0],l=(n=n||0)>>>3,c=-1===r?3:0;for(o=0;o<e.length;o+=1)i=(s=o+l)>>>2,a.length<=i&&a.push(0),a[i]|=e[o]<<8*(c+r*(s%4));return{value:a,binLen:8*e.length+n}}function o(o,i,s){switch(i){case"UTF8":case"UTF16BE":case"UTF16LE":break;default:throw new Error("encoding must be UTF8, UTF16BE, or UTF16LE")}switch(o){case"HEX":return function(e,t,n){return function(e,t,n,r){var o,i,s,a;if(0!=e.length%2)throw new Error("String of HEX type must be in byte increments");var l=t||[0],c=(n=n||0)>>>3,u=-1===r?3:0;for(o=0;o<e.length;o+=2){if(i=parseInt(e.substr(o,2),16),isNaN(i))throw new Error("String of HEX type contains invalid characters");for(s=(a=(o>>>1)+c)>>>2;l.length<=s;)l.push(0);l[s]|=i<<8*(u+r*(a%4))}return{value:l,binLen:4*e.length+n}}(e,t,n,s)};case"TEXT":return function(e,t,n){return function(e,t,n,r,o){var i,s,a,l,c,u,d,f,p=0,h=n||[0],m=(r=r||0)>>>3;if("UTF8"===t)for(d=-1===o?3:0,a=0;a<e.length;a+=1)for(s=[],128>(i=e.charCodeAt(a))?s.push(i):2048>i?(s.push(192|i>>>6),s.push(128|63&i)):55296>i||57344<=i?s.push(224|i>>>12,128|i>>>6&63,128|63&i):(a+=1,i=65536+((1023&i)<<10|1023&e.charCodeAt(a)),s.push(240|i>>>18,128|i>>>12&63,128|i>>>6&63,128|63&i)),l=0;l<s.length;l+=1){for(c=(u=p+m)>>>2;h.length<=c;)h.push(0);h[c]|=s[l]<<8*(d+o*(u%4)),p+=1}else for(d=-1===o?2:0,f="UTF16LE"===t&&1!==o||"UTF16LE"!==t&&1===o,a=0;a<e.length;a+=1){for(i=e.charCodeAt(a),!0===f&&(i=(l=255&i)<<8|i>>>8),c=(u=p+m)>>>2;h.length<=c;)h.push(0);h[c]|=i<<8*(d+o*(u%4)),p+=2}return{value:h,binLen:8*p+r}}(e,i,t,n,s)};case"B64":return function(t,n,r){return function(t,n,r,o){var i,s,a,l,c,u,d=0,f=n||[0],p=(r=r||0)>>>3,h=-1===o?3:0,m=t.indexOf("=");if(-1===t.search(/^[a-zA-Z0-9=+/]+$/))throw new Error("Invalid character in base-64 string");if(t=t.replace(/=/g,""),-1!==m&&m<t.length)throw new Error("Invalid '=' found in base-64 string");for(i=0;i<t.length;i+=4){for(l=t.substr(i,4),a=0,s=0;s<l.length;s+=1)a|=e.indexOf(l.charAt(s))<<18-6*s;for(s=0;s<l.length-1;s+=1){for(c=(u=d+p)>>>2;f.length<=c;)f.push(0);f[c]|=(a>>>16-8*s&255)<<8*(h+o*(u%4)),d+=1}}return{value:f,binLen:8*d+r}}(t,n,r,s)};case"BYTES":return function(e,t,n){return function(e,t,n,r){var o,i,s,a,l=t||[0],c=(n=n||0)>>>3,u=-1===r?3:0;for(i=0;i<e.length;i+=1)o=e.charCodeAt(i),s=(a=i+c)>>>2,l.length<=s&&l.push(0),l[s]|=o<<8*(u+r*(a%4));return{value:l,binLen:8*e.length+n}}(e,t,n,s)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch(e){throw new Error(t)}return function(e,t,n){return function(e,t,n,o){return r(new Uint8Array(e),t,n,o)}(e,t,n,s)};case"UINT8ARRAY":try{new Uint8Array(0)}catch(e){throw new Error(n)}return function(e,t,n){return r(e,t,n,s)};default:throw new Error("format must be HEX, TEXT, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function i(r,o,i,s){switch(r){case"HEX":return function(e){return function(e,t,n,r){var o,i,s="0123456789abcdef",a="",l=t/8,c=-1===n?3:0;for(o=0;o<l;o+=1)i=e[o>>>2]>>>8*(c+n*(o%4)),a+=s.charAt(i>>>4&15)+s.charAt(15&i);return r.outputUpper?a.toUpperCase():a}(e,o,i,s)};case"B64":return function(t){return function(t,n,r,o){var i,s,a,l,c,u="",d=n/8,f=-1===r?3:0;for(i=0;i<d;i+=3)for(l=i+1<d?t[i+1>>>2]:0,c=i+2<d?t[i+2>>>2]:0,a=(t[i>>>2]>>>8*(f+r*(i%4))&255)<<16|(l>>>8*(f+r*((i+1)%4))&255)<<8|c>>>8*(f+r*((i+2)%4))&255,s=0;s<4;s+=1)u+=8*i+6*s<=n?e.charAt(a>>>6*(3-s)&63):o.b64Pad;return u}(t,o,i,s)};case"BYTES":return function(e){return function(e,t,n){var r,o,i="",s=t/8,a=-1===n?3:0;for(r=0;r<s;r+=1)o=e[r>>>2]>>>8*(a+n*(r%4))&255,i+=String.fromCharCode(o);return i}(e,o,i)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch(e){throw new Error(t)}return function(e){return function(e,t,n){var r,o=t/8,i=new ArrayBuffer(o),s=new Uint8Array(i),a=-1===n?3:0;for(r=0;r<o;r+=1)s[r]=e[r>>>2]>>>8*(a+n*(r%4))&255;return i}(e,o,i)};case"UINT8ARRAY":try{new Uint8Array(0)}catch(e){throw new Error(n)}return function(e){return function(e,t,n){var r,o=t/8,i=-1===n?3:0,s=new Uint8Array(o);for(r=0;r<o;r+=1)s[r]=e[r>>>2]>>>8*(i+n*(r%4))&255;return s}(e,o,i)};default:throw new Error("format must be HEX, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}var s=4294967296,a=[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],l=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428],c=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],u="Chosen SHA variant is not supported",d="Cannot set numRounds with MAC";function f(e,t){var n,r,o=e.binLen>>>3,i=t.binLen>>>3,s=o<<3,a=4-o<<3;if(o%4!=0){for(n=0;n<i;n+=4)r=o+n>>>2,e.value[r]|=t.value[n>>>2]<<s,e.value.push(0),e.value[r+1]|=t.value[n>>>2]>>>a;return(e.value.length<<2)-4>=i+o&&e.value.pop(),{value:e.value,binLen:e.binLen+t.binLen}}return{value:e.value.concat(t.value),binLen:e.binLen+t.binLen}}function p(e){var t={outputUpper:!1,b64Pad:"=",outputLen:-1},n=e||{},r="Output length must be a multiple of 8";if(t.outputUpper=n.outputUpper||!1,n.b64Pad&&(t.b64Pad=n.b64Pad),n.outputLen){if(n.outputLen%8!=0)throw new Error(r);t.outputLen=n.outputLen}else if(n.shakeLen){if(n.shakeLen%8!=0)throw new Error(r);t.outputLen=n.shakeLen}if("boolean"!=typeof t.outputUpper)throw new Error("Invalid outputUpper formatting option");if("string"!=typeof t.b64Pad)throw new Error("Invalid b64Pad formatting option");return t}function h(e,t,n,r){var i=e+" must include a value and format";if(!t){if(!r)throw new Error(i);return r}if(void 0===t.value||!t.format)throw new Error(i);return o(t.format,t.encoding||"UTF8",n)(t.value)}var m=function(){function e(e,t,n){var r=n||{};if(this.t=t,this.i=r.encoding||"UTF8",this.numRounds=r.numRounds||1,isNaN(this.numRounds)||this.numRounds!==parseInt(this.numRounds,10)||1>this.numRounds)throw new Error("numRounds must a integer >= 1");this.o=e,this.u=[],this.h=0,this.v=!1,this.A=0,this.l=!1,this.S=[],this.H=[]}return e.prototype.update=function(e){var t,n=0,r=this.p>>>5,o=this.m(e,this.u,this.h),i=o.binLen,s=o.value,a=i>>>5;for(t=0;t<a;t+=r)n+this.p<=i&&(this.U=this.R(s.slice(t,t+r),this.U),n+=this.p);return this.A+=n,this.u=s.slice(n>>>5),this.h=i%this.p,this.v=!0,this},e.prototype.getHash=function(e,t){var n,r,o=this.T,s=p(t);if(this.C){if(-1===s.outputLen)throw new Error("Output length must be specified in options");o=s.outputLen}var a=i(e,o,this.F,s);if(this.l&&this.K)return a(this.K(s));for(r=this.g(this.u.slice(),this.h,this.A,this.L(this.U),o),n=1;n<this.numRounds;n+=1)this.C&&o%32!=0&&(r[r.length-1]&=16777215>>>24-o%32),r=this.g(r,o,0,this.B(this.o),o);return a(r)},e.prototype.setHMACKey=function(e,t,n){if(!this.k)throw new Error("Variant does not support HMAC");if(this.v)throw new Error("Cannot set MAC key after calling update");var r=o(t,(n||{}).encoding||"UTF8",this.F);this.Y(r(e))},e.prototype.Y=function(e){var t,n=this.p>>>3,r=n/4-1;if(1!==this.numRounds)throw new Error(d);if(this.l)throw new Error("MAC key already set");for(n<e.binLen/8&&(e.value=this.g(e.value,e.binLen,0,this.B(this.o),this.T));e.value.length<=r;)e.value.push(0);for(t=0;t<=r;t+=1)this.S[t]=909522486^e.value[t],this.H[t]=1549556828^e.value[t];this.U=this.R(this.S,this.U),this.A=this.p,this.l=!0},e.prototype.getHMAC=function(e,t){var n=p(t);return i(e,this.T,this.F,n)(this.N())},e.prototype.N=function(){var e;if(!this.l)throw new Error("Cannot call getHMAC without first setting MAC key");var t=this.g(this.u.slice(),this.h,this.A,this.L(this.U),this.T);return e=this.R(this.H,this.B(this.o)),this.g(t,this.T,this.p,e,this.T)},e}(),b=function(e,t){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},b(e,t)};function g(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}b(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function v(e,t){return e<<t|e>>>32-t}function _(e,t){return e>>>t|e<<32-t}function y(e,t){return e>>>t}function I(e,t,n){return e^t^n}function x(e,t,n){return e&t^~e&n}function C(e,t,n){return e&t^e&n^t&n}function w(e){return _(e,2)^_(e,13)^_(e,22)}function G(e,t){var n=(65535&e)+(65535&t);return(65535&(e>>>16)+(t>>>16)+(n>>>16))<<16|65535&n}function B(e,t,n,r){var o=(65535&e)+(65535&t)+(65535&n)+(65535&r);return(65535&(e>>>16)+(t>>>16)+(n>>>16)+(r>>>16)+(o>>>16))<<16|65535&o}function A(e,t,n,r,o){var i=(65535&e)+(65535&t)+(65535&n)+(65535&r)+(65535&o);return(65535&(e>>>16)+(t>>>16)+(n>>>16)+(r>>>16)+(o>>>16)+(i>>>16))<<16|65535&i}function F(e){return _(e,7)^_(e,18)^y(e,3)}function N(e){return _(e,6)^_(e,11)^_(e,25)}function X(e){return[1732584193,4023233417,2562383102,271733878,3285377520]}function R(e,t){var n,r,o,i,s,a,l,c=[];for(n=t[0],r=t[1],o=t[2],i=t[3],s=t[4],l=0;l<80;l+=1)c[l]=l<16?e[l]:v(c[l-3]^c[l-8]^c[l-14]^c[l-16],1),a=l<20?A(v(n,5),x(r,o,i),s,1518500249,c[l]):l<40?A(v(n,5),I(r,o,i),s,1859775393,c[l]):l<60?A(v(n,5),C(r,o,i),s,2400959708,c[l]):A(v(n,5),I(r,o,i),s,3395469782,c[l]),s=i,i=o,o=v(r,30),r=n,n=a;return t[0]=G(n,t[0]),t[1]=G(r,t[1]),t[2]=G(o,t[2]),t[3]=G(i,t[3]),t[4]=G(s,t[4]),t}function Z(e,t,n,r){for(var o,i=15+(t+65>>>9<<4),a=t+n;e.length<=i;)e.push(0);for(e[t>>>5]|=128<<24-t%32,e[i]=4294967295&a,e[i-1]=a/s|0,o=0;o<e.length;o+=16)r=R(e.slice(o,o+16),r);return r}"function"==typeof SuppressedError&&SuppressedError;var Q=function(e){function t(t,n,r){var i=this;if("SHA-1"!==t)throw new Error(u);var s=r||{};return(i=e.call(this,t,n,r)||this).k=!0,i.K=i.N,i.F=-1,i.m=o(i.t,i.i,i.F),i.R=R,i.L=function(e){return e.slice()},i.B=X,i.g=Z,i.U=[1732584193,4023233417,2562383102,271733878,3285377520],i.p=512,i.T=160,i.C=!1,s.hmacKey&&i.Y(h("hmacKey",s.hmacKey,i.F)),i}return g(t,e),t}(m);function k(e){return"SHA-224"==e?l.slice():c.slice()}function L(e,t){var n,r,o,i,s,l,c,u,d,f,p,h,m=[];for(n=t[0],r=t[1],o=t[2],i=t[3],s=t[4],l=t[5],c=t[6],u=t[7],p=0;p<64;p+=1)m[p]=p<16?e[p]:B(_(h=m[p-2],17)^_(h,19)^y(h,10),m[p-7],F(m[p-15]),m[p-16]),d=A(u,N(s),x(s,l,c),a[p],m[p]),f=G(w(n),C(n,r,o)),u=c,c=l,l=s,s=G(i,d),i=o,o=r,r=n,n=G(d,f);return t[0]=G(n,t[0]),t[1]=G(r,t[1]),t[2]=G(o,t[2]),t[3]=G(i,t[3]),t[4]=G(s,t[4]),t[5]=G(l,t[5]),t[6]=G(c,t[6]),t[7]=G(u,t[7]),t}var W=function(e){function t(t,n,r){var i=this;if("SHA-224"!==t&&"SHA-256"!==t)throw new Error(u);var a=r||{};return(i=e.call(this,t,n,r)||this).K=i.N,i.k=!0,i.F=-1,i.m=o(i.t,i.i,i.F),i.R=L,i.L=function(e){return e.slice()},i.B=k,i.g=function(e,n,r,o){return function(e,t,n,r,o){for(var i,a=15+(t+65>>>9<<4),l=t+n;e.length<=a;)e.push(0);for(e[t>>>5]|=128<<24-t%32,e[a]=4294967295&l,e[a-1]=l/s|0,i=0;i<e.length;i+=16)r=L(e.slice(i,i+16),r);return"SHA-224"===o?[r[0],r[1],r[2],r[3],r[4],r[5],r[6]]:r}(e,n,r,o,t)},i.U=k(t),i.p=512,i.T="SHA-224"===t?224:256,i.C=!1,a.hmacKey&&i.Y(h("hmacKey",a.hmacKey,i.F)),i}return g(t,e),t}(m),E=function(e,t){this.I=e,this.M=t};function V(e,t){var n;return t>32?(n=64-t,new E(e.M<<t|e.I>>>n,e.I<<t|e.M>>>n)):0!==t?(n=32-t,new E(e.I<<t|e.M>>>n,e.M<<t|e.I>>>n)):e}function U(e,t){var n;return t<32?(n=32-t,new E(e.I>>>t|e.M<<n,e.M>>>t|e.I<<n)):(n=64-t,new E(e.M>>>t|e.I<<n,e.I>>>t|e.M<<n))}function D(e,t){return new E(e.I>>>t,e.M>>>t|e.I<<32-t)}function S(e,t,n){return new E(e.I&t.I^~e.I&n.I,e.M&t.M^~e.M&n.M)}function O(e,t,n){return new E(e.I&t.I^e.I&n.I^t.I&n.I,e.M&t.M^e.M&n.M^t.M&n.M)}function M(e){var t=U(e,28),n=U(e,34),r=U(e,39);return new E(t.I^n.I^r.I,t.M^n.M^r.M)}function Y(e,t){var n,r;n=(65535&e.M)+(65535&t.M);var o=(65535&(r=(e.M>>>16)+(t.M>>>16)+(n>>>16)))<<16|65535&n;return n=(65535&e.I)+(65535&t.I)+(r>>>16),r=(e.I>>>16)+(t.I>>>16)+(n>>>16),new E((65535&r)<<16|65535&n,o)}function j(e,t,n,r){var o,i;o=(65535&e.M)+(65535&t.M)+(65535&n.M)+(65535&r.M);var s=(65535&(i=(e.M>>>16)+(t.M>>>16)+(n.M>>>16)+(r.M>>>16)+(o>>>16)))<<16|65535&o;return o=(65535&e.I)+(65535&t.I)+(65535&n.I)+(65535&r.I)+(i>>>16),i=(e.I>>>16)+(t.I>>>16)+(n.I>>>16)+(r.I>>>16)+(o>>>16),new E((65535&i)<<16|65535&o,s)}function T(e,t,n,r,o){var i,s;i=(65535&e.M)+(65535&t.M)+(65535&n.M)+(65535&r.M)+(65535&o.M);var a=(65535&(s=(e.M>>>16)+(t.M>>>16)+(n.M>>>16)+(r.M>>>16)+(o.M>>>16)+(i>>>16)))<<16|65535&i;return i=(65535&e.I)+(65535&t.I)+(65535&n.I)+(65535&r.I)+(65535&o.I)+(s>>>16),s=(e.I>>>16)+(t.I>>>16)+(n.I>>>16)+(r.I>>>16)+(o.I>>>16)+(i>>>16),new E((65535&s)<<16|65535&i,a)}function H(e,t){return new E(e.I^t.I,e.M^t.M)}function J(e){var t=U(e,1),n=U(e,8),r=D(e,7);return new E(t.I^n.I^r.I,t.M^n.M^r.M)}function z(e){var t=U(e,14),n=U(e,18),r=U(e,41);return new E(t.I^n.I^r.I,t.M^n.M^r.M)}var P=[new E(a[0],3609767458),new E(a[1],602891725),new E(a[2],3964484399),new E(a[3],2173295548),new E(a[4],4081628472),new E(a[5],3053834265),new E(a[6],2937671579),new E(a[7],3664609560),new E(a[8],2734883394),new E(a[9],1164996542),new E(a[10],1323610764),new E(a[11],3590304994),new E(a[12],4068182383),new E(a[13],991336113),new E(a[14],633803317),new E(a[15],3479774868),new E(a[16],2666613458),new E(a[17],944711139),new E(a[18],2341262773),new E(a[19],2007800933),new E(a[20],1495990901),new E(a[21],1856431235),new E(a[22],3175218132),new E(a[23],2198950837),new E(a[24],3999719339),new E(a[25],766784016),new E(a[26],2566594879),new E(a[27],3203337956),new E(a[28],1034457026),new E(a[29],2466948901),new E(a[30],3758326383),new E(a[31],168717936),new E(a[32],1188179964),new E(a[33],1546045734),new E(a[34],1522805485),new E(a[35],2643833823),new E(a[36],2343527390),new E(a[37],1014477480),new E(a[38],1206759142),new E(a[39],344077627),new E(a[40],1290863460),new E(a[41],3158454273),new E(a[42],3505952657),new E(a[43],106217008),new E(a[44],3606008344),new E(a[45],1432725776),new E(a[46],1467031594),new E(a[47],851169720),new E(a[48],3100823752),new E(a[49],1363258195),new E(a[50],3750685593),new E(a[51],3785050280),new E(a[52],3318307427),new E(a[53],3812723403),new E(a[54],2003034995),new E(a[55],3602036899),new E(a[56],1575990012),new E(a[57],1125592928),new E(a[58],2716904306),new E(a[59],442776044),new E(a[60],593698344),new E(a[61],3733110249),new E(a[62],2999351573),new E(a[63],3815920427),new E(3391569614,3928383900),new E(3515267271,566280711),new E(3940187606,3454069534),new E(4118630271,4000239992),new E(116418474,1914138554),new E(174292421,2731055270),new E(289380356,3203993006),new E(460393269,320620315),new E(685471733,587496836),new E(852142971,1086792851),new E(1017036298,365543100),new E(1126000580,2618297676),new E(1288033470,3409855158),new E(1501505948,4234509866),new E(1607167915,987167468),new E(1816402316,1246189591)];function K(e){return"SHA-384"===e?[new E(3418070365,l[0]),new E(1654270250,l[1]),new E(2438529370,l[2]),new E(355462360,l[3]),new E(1731405415,l[4]),new E(41048885895,l[5]),new E(3675008525,l[6]),new E(1203062813,l[7])]:[new E(c[0],4089235720),new E(c[1],2227873595),new E(c[2],4271175723),new E(c[3],1595750129),new E(c[4],2917565137),new E(c[5],725511199),new E(c[6],4215389547),new E(c[7],327033209)]}function q(e,t){var n,r,o,i,s,a,l,c,u,d,f,p,h,m,b,g,v=[];for(n=t[0],r=t[1],o=t[2],i=t[3],s=t[4],a=t[5],l=t[6],c=t[7],f=0;f<80;f+=1)f<16?(p=2*f,v[f]=new E(e[p],e[p+1])):v[f]=j((m=void 0,b=void 0,g=void 0,m=U(h=v[f-2],19),b=U(h,61),g=D(h,6),new E(m.I^b.I^g.I,m.M^b.M^g.M)),v[f-7],J(v[f-15]),v[f-16]),u=T(c,z(s),S(s,a,l),P[f],v[f]),d=Y(M(n),O(n,r,o)),c=l,l=a,a=s,s=Y(i,u),i=o,o=r,r=n,n=Y(u,d);return t[0]=Y(n,t[0]),t[1]=Y(r,t[1]),t[2]=Y(o,t[2]),t[3]=Y(i,t[3]),t[4]=Y(s,t[4]),t[5]=Y(a,t[5]),t[6]=Y(l,t[6]),t[7]=Y(c,t[7]),t}var $=function(e){function t(t,n,r){var i=this;if("SHA-384"!==t&&"SHA-512"!==t)throw new Error(u);var a=r||{};return(i=e.call(this,t,n,r)||this).K=i.N,i.k=!0,i.F=-1,i.m=o(i.t,i.i,i.F),i.R=q,i.L=function(e){return e.slice()},i.B=K,i.g=function(e,n,r,o){return function(e,t,n,r,o){for(var i,a=31+(t+129>>>10<<5),l=t+n;e.length<=a;)e.push(0);for(e[t>>>5]|=128<<24-t%32,e[a]=4294967295&l,e[a-1]=l/s|0,i=0;i<e.length;i+=32)r=q(e.slice(i,i+32),r);return"SHA-384"===o?[r[0].I,r[0].M,r[1].I,r[1].M,r[2].I,r[2].M,r[3].I,r[3].M,r[4].I,r[4].M,r[5].I,r[5].M]:[r[0].I,r[0].M,r[1].I,r[1].M,r[2].I,r[2].M,r[3].I,r[3].M,r[4].I,r[4].M,r[5].I,r[5].M,r[6].I,r[6].M,r[7].I,r[7].M]}(e,n,r,o,t)},i.U=K(t),i.p=1024,i.T="SHA-384"===t?384:512,i.C=!1,a.hmacKey&&i.Y(h("hmacKey",a.hmacKey,i.F)),i}return g(t,e),t}(m),ee=[new E(0,1),new E(0,32898),new E(2147483648,32906),new E(2147483648,2147516416),new E(0,32907),new E(0,2147483649),new E(2147483648,2147516545),new E(2147483648,32777),new E(0,138),new E(0,136),new E(0,2147516425),new E(0,2147483658),new E(0,2147516555),new E(2147483648,139),new E(2147483648,32905),new E(2147483648,32771),new E(2147483648,32770),new E(2147483648,128),new E(0,32778),new E(2147483648,2147483658),new E(2147483648,2147516545),new E(2147483648,32896),new E(0,2147483649),new E(2147483648,2147516424)],te=[[0,36,3,41,18],[1,44,10,45,2],[62,6,43,15,61],[28,55,25,21,56],[27,20,39,8,14]];function ne(e){var t,n=[];for(t=0;t<5;t+=1)n[t]=[new E(0,0),new E(0,0),new E(0,0),new E(0,0),new E(0,0)];return n}function re(e){var t,n=[];for(t=0;t<5;t+=1)n[t]=e[t].slice();return n}function oe(e,t){var n,r,o,i,s,a,l,c,u,d=[],f=[];if(null!==e)for(r=0;r<e.length;r+=2)t[(r>>>1)%5][(r>>>1)/5|0]=H(t[(r>>>1)%5][(r>>>1)/5|0],new E(e[r+1],e[r]));for(n=0;n<24;n+=1){for(i=ne(),r=0;r<5;r+=1)d[r]=(s=t[r][0],a=t[r][1],l=t[r][2],c=t[r][3],u=t[r][4],new E(s.I^a.I^l.I^c.I^u.I,s.M^a.M^l.M^c.M^u.M));for(r=0;r<5;r+=1)f[r]=H(d[(r+4)%5],V(d[(r+1)%5],1));for(r=0;r<5;r+=1)for(o=0;o<5;o+=1)t[r][o]=H(t[r][o],f[r]);for(r=0;r<5;r+=1)for(o=0;o<5;o+=1)i[o][(2*r+3*o)%5]=V(t[r][o],te[r][o]);for(r=0;r<5;r+=1)for(o=0;o<5;o+=1)t[r][o]=H(i[r][o],new E(~i[(r+1)%5][o].I&i[(r+2)%5][o].I,~i[(r+1)%5][o].M&i[(r+2)%5][o].M));t[0][0]=H(t[0][0],ee[n])}return t}function ie(e){var t,n,r=0,o=[0,0],i=[4294967295&e,e/s&2097151];for(t=6;t>=0;t--)0==(n=i[t>>2]>>>8*t&255)&&0===r||(o[r+1>>2]|=n<<8*(r+1),r+=1);return r=0!==r?r:1,o[0]|=r,{value:r+1>4?o:[o[0]],binLen:8+8*r}}function se(e){return f(ie(e.binLen),e)}function ae(e,t){var n,r=ie(t),o=t>>>2,i=(o-(r=f(r,e)).value.length%o)%o;for(n=0;n<i;n++)r.value.push(0);return r.value}var le=function(e){function t(t,n,r){var i=this,s=6,a=0,l=r||{};if(1!==(i=e.call(this,t,n,r)||this).numRounds){if(l.kmacKey||l.hmacKey)throw new Error(d);if("CSHAKE128"===i.o||"CSHAKE256"===i.o)throw new Error("Cannot set numRounds for CSHAKE variants")}switch(i.F=1,i.m=o(i.t,i.i,i.F),i.R=oe,i.L=re,i.B=ne,i.U=ne(),i.C=!1,t){case"SHA3-224":i.p=a=1152,i.T=224,i.k=!0,i.K=i.N;break;case"SHA3-256":i.p=a=1088,i.T=256,i.k=!0,i.K=i.N;break;case"SHA3-384":i.p=a=832,i.T=384,i.k=!0,i.K=i.N;break;case"SHA3-512":i.p=a=576,i.T=512,i.k=!0,i.K=i.N;break;case"SHAKE128":s=31,i.p=a=1344,i.T=-1,i.C=!0,i.k=!1,i.K=null;break;case"SHAKE256":s=31,i.p=a=1088,i.T=-1,i.C=!0,i.k=!1,i.K=null;break;case"KMAC128":s=4,i.p=a=1344,i.X(r),i.T=-1,i.C=!0,i.k=!1,i.K=i.O;break;case"KMAC256":s=4,i.p=a=1088,i.X(r),i.T=-1,i.C=!0,i.k=!1,i.K=i.O;break;case"CSHAKE128":i.p=a=1344,s=i.j(r),i.T=-1,i.C=!0,i.k=!1,i.K=null;break;case"CSHAKE256":i.p=a=1088,s=i.j(r),i.T=-1,i.C=!0,i.k=!1,i.K=null;break;default:throw new Error(u)}return i.g=function(e,t,n,r,o){return function(e,t,n,r,o,i,s){var a,l,c=0,u=[],d=o>>>5,f=t>>>5;for(a=0;a<f&&t>=o;a+=d)r=oe(e.slice(a,a+d),r),t-=o;for(e=e.slice(a),t%=o;e.length<d;)e.push(0);for(e[(a=t>>>3)>>2]^=i<<a%4*8,e[d-1]^=2147483648,r=oe(e,r);32*u.length<s&&(l=r[c%5][c/5|0],u.push(l.M),!(32*u.length>=s));)u.push(l.I),0==64*(c+=1)%o&&(oe(null,r),c=0);return u}(e,t,0,r,a,s,o)},l.hmacKey&&i.Y(h("hmacKey",l.hmacKey,i.F)),i}return g(t,e),t.prototype.j=function(e,t){var n=function(e){var t=e||{};return{funcName:h("funcName",t.funcName,1,{value:[],binLen:0}),customization:h("Customization",t.customization,1,{value:[],binLen:0})}}(e||{});t&&(n.funcName=t);var r=f(se(n.funcName),se(n.customization));if(0!==n.customization.binLen||0!==n.funcName.binLen){for(var o=ae(r,this.p>>>3),i=0;i<o.length;i+=this.p>>>5)this.U=this.R(o.slice(i,i+(this.p>>>5)),this.U),this.A+=this.p;return 4}return 31},t.prototype.X=function(e){var t=function(e){var t=e||{};return{kmacKey:h("kmacKey",t.kmacKey,1),funcName:{value:[1128353099],binLen:32},customization:h("Customization",t.customization,1,{value:[],binLen:0})}}(e||{});this.j(e,t.funcName);for(var n=ae(se(t.kmacKey),this.p>>>3),r=0;r<n.length;r+=this.p>>>5)this.U=this.R(n.slice(r,r+(this.p>>>5)),this.U),this.A+=this.p;this.l=!0},t.prototype.O=function(e){var t=f({value:this.u.slice(),binLen:this.h},function(e){var t,n,r=0,o=[0,0],i=[4294967295&e,e/s&2097151];for(t=6;t>=0;t--)0==(n=i[t>>2]>>>8*t&255)&&0===r||(o[r>>2]|=n<<8*r,r+=1);return o[(r=0!==r?r:1)>>2]|=r<<8*r,{value:r+1>4?o:[o[0]],binLen:8+8*r}}(e.outputLen));return this.g(t.value,t.binLen,this.A,this.L(this.U),e.outputLen)},t}(m);return function(){function e(e,t,n){if("SHA-1"==e)this._=new Q(e,t,n);else if("SHA-224"==e||"SHA-256"==e)this._=new W(e,t,n);else if("SHA-384"==e||"SHA-512"==e)this._=new $(e,t,n);else{if("SHA3-224"!=e&&"SHA3-256"!=e&&"SHA3-384"!=e&&"SHA3-512"!=e&&"SHAKE128"!=e&&"SHAKE256"!=e&&"CSHAKE128"!=e&&"CSHAKE256"!=e&&"KMAC128"!=e&&"KMAC256"!=e)throw new Error(u);this._=new le(e,t,n)}}return e.prototype.update=function(e){return this._.update(e),this},e.prototype.getHash=function(e,t){return this._.getHash(e,t)},e.prototype.setHMACKey=function(e,t,n){this._.setHMACKey(e,t,n)},e.prototype.getHMAC=function(e,t){return this._.getHMAC(e,t)},e}()}()),bs.exports}var vs,_s,ys,Is,xs,Cs,ws,Gs,Bs,As,Fs,Ns,Xs,Rs,Zs,Qs,ks,Ls,Ws,Es,Vs,Us,Ds,Ss,Os,Ms,Ys,js={exports:{}};
30
+ */function fa(){return ua||(ua=1,function(e){const t=function(){if(na)return la;na=1,la.byteLength=function(e){var t=i(e),n=t[0],r=t[1];return 3*(n+r)/4-r},la.toByteArray=function(e){var r,o,a=i(e),s=a[0],l=a[1],c=new n(function(e,t,n){return 3*(t+n)/4-n}(0,s,l)),u=0,d=l>0?s-4:s;for(o=0;o<d;o+=4)r=t[e.charCodeAt(o)]<<18|t[e.charCodeAt(o+1)]<<12|t[e.charCodeAt(o+2)]<<6|t[e.charCodeAt(o+3)],c[u++]=r>>16&255,c[u++]=r>>8&255,c[u++]=255&r;return 2===l&&(r=t[e.charCodeAt(o)]<<2|t[e.charCodeAt(o+1)]>>4,c[u++]=255&r),1===l&&(r=t[e.charCodeAt(o)]<<10|t[e.charCodeAt(o+1)]<<4|t[e.charCodeAt(o+2)]>>2,c[u++]=r>>8&255,c[u++]=255&r),c},la.fromByteArray=function(t){for(var n,r=t.length,o=r%3,i=[],s=16383,l=0,c=r-o;l<c;l+=s)i.push(a(t,l,l+s>c?c:l+s));return 1===o?(n=t[r-1],i.push(e[n>>2]+e[n<<4&63]+"==")):2===o&&(n=(t[r-2]<<8)+t[r-1],i.push(e[n>>10]+e[n>>4&63]+e[n<<2&63]+"=")),i.join("")};for(var e=[],t=[],n="undefined"!=typeof Uint8Array?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0;o<64;++o)e[o]=r[o],t[r.charCodeAt(o)]=o;function i(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function a(t,n,r){for(var o,i,a=[],s=n;s<r;s+=3)o=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),a.push(e[(i=o)>>18&63]+e[i>>12&63]+e[i>>6&63]+e[63&i]);return a.join("")}return t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63,la}(),n=pa(),r="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=a,e.SlowBuffer=function(e){+e!=e&&(e=0);return a.alloc(+e)},e.INSPECT_MAX_BYTES=50;const o=2147483647;function i(e){if(e>o)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,a.prototype),t}function a(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return c(e)}return s(e,t,n)}function s(e,t,n){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!a.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|f(e,t);let r=i(n);const o=r.write(e,t);o!==n&&(r=r.slice(0,o));return r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(H(e,Uint8Array)){const t=new Uint8Array(e);return d(t.buffer,t.byteOffset,t.byteLength)}return u(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(H(e,ArrayBuffer)||e&&H(e.buffer,ArrayBuffer))return d(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(H(e,SharedArrayBuffer)||e&&H(e.buffer,SharedArrayBuffer)))return d(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return a.from(r,t,n);const o=function(e){if(a.isBuffer(e)){const t=0|p(e.length),n=i(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!=typeof e.length||J(e.length)?i(0):u(e);if("Buffer"===e.type&&Array.isArray(e.data))return u(e.data)}(e);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return a.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return l(e),i(e<0?0:0|p(e))}function u(e){const t=e.length<0?0:0|p(e.length),n=i(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function d(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,a.prototype),r}function p(e){if(e>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|e}function f(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||H(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let o=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return M(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return j(e).length;default:if(o)return r?-1:M(e).length;t=(""+t).toLowerCase(),o=!0}}function h(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return F(this,t,n);case"utf8":case"utf-8":return G(this,t,n);case"ascii":return w(this,t,n);case"latin1":case"binary":return A(this,t,n);case"base64":return C(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function m(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function b(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),J(n=+n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=a.from(t,r)),a.isBuffer(t))return 0===t.length?-1:g(e,t,n,r,o);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):g(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function g(e,t,n,r,o){let i,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){let r=-1;for(i=n;i<s;i++)if(c(e,i)===c(t,-1===r?0:i-r)){if(-1===r&&(r=i),i-r+1===l)return r*a}else-1!==r&&(i-=i-r),r=-1}else for(n+l>s&&(n=s-l),i=n;i>=0;i--){let n=!0;for(let r=0;r<l;r++)if(c(e,i+r)!==c(t,r)){n=!1;break}if(n)return i}return-1}function _(e,t,n,r){n=Number(n)||0;const o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;const i=t.length;let a;for(r>i/2&&(r=i/2),a=0;a<r;++a){const r=parseInt(t.substr(2*a,2),16);if(J(r))return a;e[n+a]=r}return a}function v(e,t,n,r){return T(M(t,e.length-n),e,n,r)}function y(e,t,n,r){return T(function(e){const t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function I(e,t,n,r){return T(j(t),e,n,r)}function x(e,t,n,r){return T(function(e,t){let n,r,o;const i=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function C(e,n,r){return 0===n&&r===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(n,r))}function G(e,t,n){n=Math.min(e.length,n);const r=[];let o=t;for(;o<n;){const t=e[o];let i=null,a=t>239?4:t>223?3:t>191?2:1;if(o+a<=n){let n,r,s,l;switch(a){case 1:t<128&&(i=t);break;case 2:n=e[o+1],128==(192&n)&&(l=(31&t)<<6|63&n,l>127&&(i=l));break;case 3:n=e[o+1],r=e[o+2],128==(192&n)&&128==(192&r)&&(l=(15&t)<<12|(63&n)<<6|63&r,l>2047&&(l<55296||l>57343)&&(i=l));break;case 4:n=e[o+1],r=e[o+2],s=e[o+3],128==(192&n)&&128==(192&r)&&128==(192&s)&&(l=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&s,l>65535&&l<1114112&&(i=l))}}null===i?(i=65533,a=1):i>65535&&(i-=65536,r.push(i>>>10&1023|55296),i=56320|1023&i),r.push(i),o+=a}return function(e){const t=e.length;if(t<=B)return String.fromCharCode.apply(String,e);let n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=B));return n}(r)}e.kMaxLength=o,a.TYPED_ARRAY_SUPPORT=function(){try{const 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}}(),!a.TYPED_ARRAY_SUPPORT&&"undefined"!=typeof console&&console.error,Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(e,t,n){return s(e,t,n)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(e,t,n){return function(e,t,n){return l(e),e<=0?i(e):void 0!==t?"string"==typeof n?i(e).fill(t,n):i(e).fill(t):i(e)}(e,t,n)},a.allocUnsafe=function(e){return c(e)},a.allocUnsafeSlow=function(e){return c(e)},a.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==a.prototype},a.compare=function(e,t){if(H(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),H(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(e)||!a.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,r=t.length;for(let o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},a.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return a.alloc(0);let n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const r=a.allocUnsafe(t);let o=0;for(n=0;n<e.length;++n){let t=e[n];if(H(t,Uint8Array))o+t.length>r.length?(a.isBuffer(t)||(t=a.from(t)),t.copy(r,o)):Uint8Array.prototype.set.call(r,t,o);else{if(!a.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,o)}o+=t.length}return r},a.byteLength=f,a.prototype._isBuffer=!0,a.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)m(this,t,t+1);return this},a.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},a.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},a.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?G(this,0,e):h.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(e){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===a.compare(this,e)},a.prototype.inspect=function(){let t="";const n=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(t+=" ... "),"<Buffer "+t+">"},r&&(a.prototype[r]=a.prototype.inspect),a.prototype.compare=function(e,t,n,r,o){if(H(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;let i=(o>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0);const l=Math.min(i,s),c=this.slice(r,o),u=e.slice(t,n);for(let e=0;e<l;++e)if(c[e]!==u[e]){i=c[e],s=u[e];break}return i<s?-1:s<i?1:0},a.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},a.prototype.indexOf=function(e,t,n){return b(this,e,t,n,!0)},a.prototype.lastIndexOf=function(e,t,n){return b(this,e,t,n,!1)},a.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let i=!1;for(;;)switch(r){case"hex":return _(this,e,t,n);case"utf8":case"utf-8":return v(this,e,t,n);case"ascii":case"latin1":case"binary":return y(this,e,t,n);case"base64":return I(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const B=4096;function w(e,t,n){let r="";n=Math.min(e.length,n);for(let o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function A(e,t,n){let r="";n=Math.min(e.length,n);for(let o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function F(e,t,n){const r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let o="";for(let r=t;r<n;++r)o+=z[e[r]];return o}function N(e,t,n){const r=e.slice(t,n);let o="";for(let e=0;e<r.length-1;e+=2)o+=String.fromCharCode(r[e]+256*r[e+1]);return o}function X(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function Q(e,t,n,r,o,i){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function R(e,t,n,r,o){V(t,r,o,e,n,7);let i=Number(t&BigInt(4294967295));e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,n}function Z(e,t,n,r,o){V(t,r,o,e,n,7);let i=Number(t&BigInt(4294967295));e[n+7]=i,i>>=8,e[n+6]=i,i>>=8,e[n+5]=i,i>>=8,e[n+4]=i;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function k(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function W(e,t,r,o,i){return t=+t,r>>>=0,i||k(e,0,r,4),n.write(e,t,r,o,23,4),r+4}function L(e,t,r,o,i){return t=+t,r>>>=0,i||k(e,0,r,8),n.write(e,t,r,o,52,8),r+8}a.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);const r=this.subarray(e,t);return Object.setPrototypeOf(r,a.prototype),r},a.prototype.readUintLE=a.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||X(e,t,this.length);let r=this[e],o=1,i=0;for(;++i<t&&(o*=256);)r+=this[e+i]*o;return r},a.prototype.readUintBE=a.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||X(e,t,this.length);let r=this[e+--t],o=1;for(;t>0&&(o*=256);)r+=this[e+--t]*o;return r},a.prototype.readUint8=a.prototype.readUInt8=function(e,t){return e>>>=0,t||X(e,1,this.length),this[e]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||X(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||X(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(e,t){return e>>>=0,t||X(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(e,t){return e>>>=0,t||X(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readBigUInt64LE=P((function(e){S(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||O(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,o=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(o)<<BigInt(32))})),a.prototype.readBigUInt64BE=P((function(e){S(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||O(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],o=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(o)})),a.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||X(e,t,this.length);let r=this[e],o=1,i=0;for(;++i<t&&(o*=256);)r+=this[e+i]*o;return o*=128,r>=o&&(r-=Math.pow(2,8*t)),r},a.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||X(e,t,this.length);let r=t,o=1,i=this[e+--r];for(;r>0&&(o*=256);)i+=this[e+--r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i},a.prototype.readInt8=function(e,t){return e>>>=0,t||X(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||X(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt16BE=function(e,t){e>>>=0,t||X(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt32LE=function(e,t){return e>>>=0,t||X(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e>>>=0,t||X(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readBigInt64LE=P((function(e){S(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||O(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),a.prototype.readBigInt64BE=P((function(e){S(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||O(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+n)})),a.prototype.readFloatLE=function(e,t){return e>>>=0,t||X(e,4,this.length),n.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||X(e,4,this.length),n.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||X(e,8,this.length),n.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||X(e,8,this.length),n.read(this,e,!1,52,8)},a.prototype.writeUintLE=a.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){Q(this,e,t,n,Math.pow(2,8*n)-1,0)}let o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){Q(this,e,t,n,Math.pow(2,8*n)-1,0)}let o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},a.prototype.writeUint8=a.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||Q(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||Q(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||Q(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||Q(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},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||Q(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},a.prototype.writeBigUInt64LE=P((function(e,t=0){return R(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),a.prototype.writeBigUInt64BE=P((function(e,t=0){return Z(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),a.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);Q(this,e,t,n,r-1,-r)}let o=0,i=1,a=0;for(this[t]=255&e;++o<n&&(i*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/i|0)-a&255;return t+n},a.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);Q(this,e,t,n,r-1,-r)}let o=n-1,i=1,a=0;for(this[t+o]=255&e;--o>=0&&(i*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/i|0)-a&255;return t+n},a.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||Q(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||Q(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||Q(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||Q(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},a.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||Q(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},a.prototype.writeBigInt64LE=P((function(e,t=0){return R(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),a.prototype.writeBigInt64BE=P((function(e,t=0){return Z(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),a.prototype.writeFloatLE=function(e,t,n){return W(this,e,t,!0,n)},a.prototype.writeFloatBE=function(e,t,n){return W(this,e,t,!1,n)},a.prototype.writeDoubleLE=function(e,t,n){return L(this,e,t,!0,n)},a.prototype.writeDoubleBE=function(e,t,n){return L(this,e,t,!1,n)},a.prototype.copy=function(e,t,n,r){if(!a.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);const o=r-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),o},a.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!a.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){const t=e.charCodeAt(0);("utf8"===r&&t<128||"latin1"===r)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;let o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{const i=a.isBuffer(e)?e:a.from(e,r),s=i.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-t;++o)this[o+t]=i[o%s]}return this};const E={};function U(e,t,n){E[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function D(e){let t="",n=e.length;const r="-"===e[0]?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function V(e,t,n,r,o,i){if(e>n||e<t){const n="bigint"==typeof t?"n":"";let r;throw r=0===t||t===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(i+1)}${n}`:`>= -(2${n} ** ${8*(i+1)-1}${n}) and < 2 ** ${8*(i+1)-1}${n}`,new E.ERR_OUT_OF_RANGE("value",r,e)}!function(e,t,n){S(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||O(t,e.length-(n+1))}(r,o,i)}function S(e,t){if("number"!=typeof e)throw new E.ERR_INVALID_ARG_TYPE(t,"number",e)}function O(e,t,n){if(Math.floor(e)!==e)throw S(e,n),new E.ERR_OUT_OF_RANGE("offset","an integer",e);if(t<0)throw new E.ERR_BUFFER_OUT_OF_BOUNDS;throw new E.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${t}`,e)}U("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),U("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),U("ERR_OUT_OF_RANGE",(function(e,t,n){let r=`The value of "${e}" is out of range.`,o=n;return Number.isInteger(n)&&Math.abs(n)>2**32?o=D(String(n)):"bigint"==typeof n&&(o=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(o=D(o)),o+="n"),r+=` It must be ${t}. Received ${o}`,r}),RangeError);const Y=/[^+/0-9A-Za-z-_]/g;function M(e,t){let n;t=t||1/0;const r=e.length;let o=null;const i=[];for(let a=0;a<r;++a){if(n=e.charCodeAt(a),n>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function j(e){return t.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(Y,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function T(e,t,n,r){let o;for(o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function H(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function J(e){return e!=e}const z=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let o=0;o<16;++o)t[r+o]=e[n]+e[o]}return t}();function P(e){return"undefined"==typeof BigInt?K:e}function K(){throw new Error("BigInt not supported")}}(sa)),sa}var ha,ma=fa(),ba={exports:{}};function ga(){return ha||(ha=1,ba.exports=function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="ARRAYBUFFER not supported by this environment",n="UINT8ARRAY not supported by this environment";function r(e,t,n,r){var o,i,a,s=t||[0],l=(n=n||0)>>>3,c=-1===r?3:0;for(o=0;o<e.length;o+=1)i=(a=o+l)>>>2,s.length<=i&&s.push(0),s[i]|=e[o]<<8*(c+r*(a%4));return{value:s,binLen:8*e.length+n}}function o(o,i,a){switch(i){case"UTF8":case"UTF16BE":case"UTF16LE":break;default:throw new Error("encoding must be UTF8, UTF16BE, or UTF16LE")}switch(o){case"HEX":return function(e,t,n){return function(e,t,n,r){var o,i,a,s;if(0!=e.length%2)throw new Error("String of HEX type must be in byte increments");var l=t||[0],c=(n=n||0)>>>3,u=-1===r?3:0;for(o=0;o<e.length;o+=2){if(i=parseInt(e.substr(o,2),16),isNaN(i))throw new Error("String of HEX type contains invalid characters");for(a=(s=(o>>>1)+c)>>>2;l.length<=a;)l.push(0);l[a]|=i<<8*(u+r*(s%4))}return{value:l,binLen:4*e.length+n}}(e,t,n,a)};case"TEXT":return function(e,t,n){return function(e,t,n,r,o){var i,a,s,l,c,u,d,p,f=0,h=n||[0],m=(r=r||0)>>>3;if("UTF8"===t)for(d=-1===o?3:0,s=0;s<e.length;s+=1)for(a=[],128>(i=e.charCodeAt(s))?a.push(i):2048>i?(a.push(192|i>>>6),a.push(128|63&i)):55296>i||57344<=i?a.push(224|i>>>12,128|i>>>6&63,128|63&i):(s+=1,i=65536+((1023&i)<<10|1023&e.charCodeAt(s)),a.push(240|i>>>18,128|i>>>12&63,128|i>>>6&63,128|63&i)),l=0;l<a.length;l+=1){for(c=(u=f+m)>>>2;h.length<=c;)h.push(0);h[c]|=a[l]<<8*(d+o*(u%4)),f+=1}else for(d=-1===o?2:0,p="UTF16LE"===t&&1!==o||"UTF16LE"!==t&&1===o,s=0;s<e.length;s+=1){for(i=e.charCodeAt(s),!0===p&&(i=(l=255&i)<<8|i>>>8),c=(u=f+m)>>>2;h.length<=c;)h.push(0);h[c]|=i<<8*(d+o*(u%4)),f+=2}return{value:h,binLen:8*f+r}}(e,i,t,n,a)};case"B64":return function(t,n,r){return function(t,n,r,o){var i,a,s,l,c,u,d=0,p=n||[0],f=(r=r||0)>>>3,h=-1===o?3:0,m=t.indexOf("=");if(-1===t.search(/^[a-zA-Z0-9=+/]+$/))throw new Error("Invalid character in base-64 string");if(t=t.replace(/=/g,""),-1!==m&&m<t.length)throw new Error("Invalid '=' found in base-64 string");for(i=0;i<t.length;i+=4){for(l=t.substr(i,4),s=0,a=0;a<l.length;a+=1)s|=e.indexOf(l.charAt(a))<<18-6*a;for(a=0;a<l.length-1;a+=1){for(c=(u=d+f)>>>2;p.length<=c;)p.push(0);p[c]|=(s>>>16-8*a&255)<<8*(h+o*(u%4)),d+=1}}return{value:p,binLen:8*d+r}}(t,n,r,a)};case"BYTES":return function(e,t,n){return function(e,t,n,r){var o,i,a,s,l=t||[0],c=(n=n||0)>>>3,u=-1===r?3:0;for(i=0;i<e.length;i+=1)o=e.charCodeAt(i),a=(s=i+c)>>>2,l.length<=a&&l.push(0),l[a]|=o<<8*(u+r*(s%4));return{value:l,binLen:8*e.length+n}}(e,t,n,a)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch(e){throw new Error(t)}return function(e,t,n){return function(e,t,n,o){return r(new Uint8Array(e),t,n,o)}(e,t,n,a)};case"UINT8ARRAY":try{new Uint8Array(0)}catch(e){throw new Error(n)}return function(e,t,n){return r(e,t,n,a)};default:throw new Error("format must be HEX, TEXT, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function i(r,o,i,a){switch(r){case"HEX":return function(e){return function(e,t,n,r){var o,i,a="0123456789abcdef",s="",l=t/8,c=-1===n?3:0;for(o=0;o<l;o+=1)i=e[o>>>2]>>>8*(c+n*(o%4)),s+=a.charAt(i>>>4&15)+a.charAt(15&i);return r.outputUpper?s.toUpperCase():s}(e,o,i,a)};case"B64":return function(t){return function(t,n,r,o){var i,a,s,l,c,u="",d=n/8,p=-1===r?3:0;for(i=0;i<d;i+=3)for(l=i+1<d?t[i+1>>>2]:0,c=i+2<d?t[i+2>>>2]:0,s=(t[i>>>2]>>>8*(p+r*(i%4))&255)<<16|(l>>>8*(p+r*((i+1)%4))&255)<<8|c>>>8*(p+r*((i+2)%4))&255,a=0;a<4;a+=1)u+=8*i+6*a<=n?e.charAt(s>>>6*(3-a)&63):o.b64Pad;return u}(t,o,i,a)};case"BYTES":return function(e){return function(e,t,n){var r,o,i="",a=t/8,s=-1===n?3:0;for(r=0;r<a;r+=1)o=e[r>>>2]>>>8*(s+n*(r%4))&255,i+=String.fromCharCode(o);return i}(e,o,i)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch(e){throw new Error(t)}return function(e){return function(e,t,n){var r,o=t/8,i=new ArrayBuffer(o),a=new Uint8Array(i),s=-1===n?3:0;for(r=0;r<o;r+=1)a[r]=e[r>>>2]>>>8*(s+n*(r%4))&255;return i}(e,o,i)};case"UINT8ARRAY":try{new Uint8Array(0)}catch(e){throw new Error(n)}return function(e){return function(e,t,n){var r,o=t/8,i=-1===n?3:0,a=new Uint8Array(o);for(r=0;r<o;r+=1)a[r]=e[r>>>2]>>>8*(i+n*(r%4))&255;return a}(e,o,i)};default:throw new Error("format must be HEX, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}var a=4294967296,s=[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],l=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428],c=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],u="Chosen SHA variant is not supported",d="Cannot set numRounds with MAC";function p(e,t){var n,r,o=e.binLen>>>3,i=t.binLen>>>3,a=o<<3,s=4-o<<3;if(o%4!=0){for(n=0;n<i;n+=4)r=o+n>>>2,e.value[r]|=t.value[n>>>2]<<a,e.value.push(0),e.value[r+1]|=t.value[n>>>2]>>>s;return(e.value.length<<2)-4>=i+o&&e.value.pop(),{value:e.value,binLen:e.binLen+t.binLen}}return{value:e.value.concat(t.value),binLen:e.binLen+t.binLen}}function f(e){var t={outputUpper:!1,b64Pad:"=",outputLen:-1},n=e||{},r="Output length must be a multiple of 8";if(t.outputUpper=n.outputUpper||!1,n.b64Pad&&(t.b64Pad=n.b64Pad),n.outputLen){if(n.outputLen%8!=0)throw new Error(r);t.outputLen=n.outputLen}else if(n.shakeLen){if(n.shakeLen%8!=0)throw new Error(r);t.outputLen=n.shakeLen}if("boolean"!=typeof t.outputUpper)throw new Error("Invalid outputUpper formatting option");if("string"!=typeof t.b64Pad)throw new Error("Invalid b64Pad formatting option");return t}function h(e,t,n,r){var i=e+" must include a value and format";if(!t){if(!r)throw new Error(i);return r}if(void 0===t.value||!t.format)throw new Error(i);return o(t.format,t.encoding||"UTF8",n)(t.value)}var m=function(){function e(e,t,n){var r=n||{};if(this.t=t,this.i=r.encoding||"UTF8",this.numRounds=r.numRounds||1,isNaN(this.numRounds)||this.numRounds!==parseInt(this.numRounds,10)||1>this.numRounds)throw new Error("numRounds must a integer >= 1");this.o=e,this.u=[],this.h=0,this.v=!1,this.A=0,this.l=!1,this.S=[],this.H=[]}return e.prototype.update=function(e){var t,n=0,r=this.p>>>5,o=this.m(e,this.u,this.h),i=o.binLen,a=o.value,s=i>>>5;for(t=0;t<s;t+=r)n+this.p<=i&&(this.U=this.R(a.slice(t,t+r),this.U),n+=this.p);return this.A+=n,this.u=a.slice(n>>>5),this.h=i%this.p,this.v=!0,this},e.prototype.getHash=function(e,t){var n,r,o=this.T,a=f(t);if(this.C){if(-1===a.outputLen)throw new Error("Output length must be specified in options");o=a.outputLen}var s=i(e,o,this.F,a);if(this.l&&this.K)return s(this.K(a));for(r=this.g(this.u.slice(),this.h,this.A,this.L(this.U),o),n=1;n<this.numRounds;n+=1)this.C&&o%32!=0&&(r[r.length-1]&=16777215>>>24-o%32),r=this.g(r,o,0,this.B(this.o),o);return s(r)},e.prototype.setHMACKey=function(e,t,n){if(!this.k)throw new Error("Variant does not support HMAC");if(this.v)throw new Error("Cannot set MAC key after calling update");var r=o(t,(n||{}).encoding||"UTF8",this.F);this.Y(r(e))},e.prototype.Y=function(e){var t,n=this.p>>>3,r=n/4-1;if(1!==this.numRounds)throw new Error(d);if(this.l)throw new Error("MAC key already set");for(n<e.binLen/8&&(e.value=this.g(e.value,e.binLen,0,this.B(this.o),this.T));e.value.length<=r;)e.value.push(0);for(t=0;t<=r;t+=1)this.S[t]=909522486^e.value[t],this.H[t]=1549556828^e.value[t];this.U=this.R(this.S,this.U),this.A=this.p,this.l=!0},e.prototype.getHMAC=function(e,t){var n=f(t);return i(e,this.T,this.F,n)(this.N())},e.prototype.N=function(){var e;if(!this.l)throw new Error("Cannot call getHMAC without first setting MAC key");var t=this.g(this.u.slice(),this.h,this.A,this.L(this.U),this.T);return e=this.R(this.H,this.B(this.o)),this.g(t,this.T,this.p,e,this.T)},e}(),b=function(e,t){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},b(e,t)};function g(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}b(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function _(e,t){return e<<t|e>>>32-t}function v(e,t){return e>>>t|e<<32-t}function y(e,t){return e>>>t}function I(e,t,n){return e^t^n}function x(e,t,n){return e&t^~e&n}function C(e,t,n){return e&t^e&n^t&n}function G(e){return v(e,2)^v(e,13)^v(e,22)}function B(e,t){var n=(65535&e)+(65535&t);return(65535&(e>>>16)+(t>>>16)+(n>>>16))<<16|65535&n}function w(e,t,n,r){var o=(65535&e)+(65535&t)+(65535&n)+(65535&r);return(65535&(e>>>16)+(t>>>16)+(n>>>16)+(r>>>16)+(o>>>16))<<16|65535&o}function A(e,t,n,r,o){var i=(65535&e)+(65535&t)+(65535&n)+(65535&r)+(65535&o);return(65535&(e>>>16)+(t>>>16)+(n>>>16)+(r>>>16)+(o>>>16)+(i>>>16))<<16|65535&i}function F(e){return v(e,7)^v(e,18)^y(e,3)}function N(e){return v(e,6)^v(e,11)^v(e,25)}function X(e){return[1732584193,4023233417,2562383102,271733878,3285377520]}function Q(e,t){var n,r,o,i,a,s,l,c=[];for(n=t[0],r=t[1],o=t[2],i=t[3],a=t[4],l=0;l<80;l+=1)c[l]=l<16?e[l]:_(c[l-3]^c[l-8]^c[l-14]^c[l-16],1),s=l<20?A(_(n,5),x(r,o,i),a,1518500249,c[l]):l<40?A(_(n,5),I(r,o,i),a,1859775393,c[l]):l<60?A(_(n,5),C(r,o,i),a,2400959708,c[l]):A(_(n,5),I(r,o,i),a,3395469782,c[l]),a=i,i=o,o=_(r,30),r=n,n=s;return t[0]=B(n,t[0]),t[1]=B(r,t[1]),t[2]=B(o,t[2]),t[3]=B(i,t[3]),t[4]=B(a,t[4]),t}function R(e,t,n,r){for(var o,i=15+(t+65>>>9<<4),s=t+n;e.length<=i;)e.push(0);for(e[t>>>5]|=128<<24-t%32,e[i]=4294967295&s,e[i-1]=s/a|0,o=0;o<e.length;o+=16)r=Q(e.slice(o,o+16),r);return r}"function"==typeof SuppressedError&&SuppressedError;var Z=function(e){function t(t,n,r){var i=this;if("SHA-1"!==t)throw new Error(u);var a=r||{};return(i=e.call(this,t,n,r)||this).k=!0,i.K=i.N,i.F=-1,i.m=o(i.t,i.i,i.F),i.R=Q,i.L=function(e){return e.slice()},i.B=X,i.g=R,i.U=[1732584193,4023233417,2562383102,271733878,3285377520],i.p=512,i.T=160,i.C=!1,a.hmacKey&&i.Y(h("hmacKey",a.hmacKey,i.F)),i}return g(t,e),t}(m);function k(e){return"SHA-224"==e?l.slice():c.slice()}function W(e,t){var n,r,o,i,a,l,c,u,d,p,f,h,m=[];for(n=t[0],r=t[1],o=t[2],i=t[3],a=t[4],l=t[5],c=t[6],u=t[7],f=0;f<64;f+=1)m[f]=f<16?e[f]:w(v(h=m[f-2],17)^v(h,19)^y(h,10),m[f-7],F(m[f-15]),m[f-16]),d=A(u,N(a),x(a,l,c),s[f],m[f]),p=B(G(n),C(n,r,o)),u=c,c=l,l=a,a=B(i,d),i=o,o=r,r=n,n=B(d,p);return t[0]=B(n,t[0]),t[1]=B(r,t[1]),t[2]=B(o,t[2]),t[3]=B(i,t[3]),t[4]=B(a,t[4]),t[5]=B(l,t[5]),t[6]=B(c,t[6]),t[7]=B(u,t[7]),t}var L=function(e){function t(t,n,r){var i=this;if("SHA-224"!==t&&"SHA-256"!==t)throw new Error(u);var s=r||{};return(i=e.call(this,t,n,r)||this).K=i.N,i.k=!0,i.F=-1,i.m=o(i.t,i.i,i.F),i.R=W,i.L=function(e){return e.slice()},i.B=k,i.g=function(e,n,r,o){return function(e,t,n,r,o){for(var i,s=15+(t+65>>>9<<4),l=t+n;e.length<=s;)e.push(0);for(e[t>>>5]|=128<<24-t%32,e[s]=4294967295&l,e[s-1]=l/a|0,i=0;i<e.length;i+=16)r=W(e.slice(i,i+16),r);return"SHA-224"===o?[r[0],r[1],r[2],r[3],r[4],r[5],r[6]]:r}(e,n,r,o,t)},i.U=k(t),i.p=512,i.T="SHA-224"===t?224:256,i.C=!1,s.hmacKey&&i.Y(h("hmacKey",s.hmacKey,i.F)),i}return g(t,e),t}(m),E=function(e,t){this.I=e,this.M=t};function U(e,t){var n;return t>32?(n=64-t,new E(e.M<<t|e.I>>>n,e.I<<t|e.M>>>n)):0!==t?(n=32-t,new E(e.I<<t|e.M>>>n,e.M<<t|e.I>>>n)):e}function D(e,t){var n;return t<32?(n=32-t,new E(e.I>>>t|e.M<<n,e.M>>>t|e.I<<n)):(n=64-t,new E(e.M>>>t|e.I<<n,e.I>>>t|e.M<<n))}function V(e,t){return new E(e.I>>>t,e.M>>>t|e.I<<32-t)}function S(e,t,n){return new E(e.I&t.I^~e.I&n.I,e.M&t.M^~e.M&n.M)}function O(e,t,n){return new E(e.I&t.I^e.I&n.I^t.I&n.I,e.M&t.M^e.M&n.M^t.M&n.M)}function Y(e){var t=D(e,28),n=D(e,34),r=D(e,39);return new E(t.I^n.I^r.I,t.M^n.M^r.M)}function M(e,t){var n,r;n=(65535&e.M)+(65535&t.M);var o=(65535&(r=(e.M>>>16)+(t.M>>>16)+(n>>>16)))<<16|65535&n;return n=(65535&e.I)+(65535&t.I)+(r>>>16),r=(e.I>>>16)+(t.I>>>16)+(n>>>16),new E((65535&r)<<16|65535&n,o)}function j(e,t,n,r){var o,i;o=(65535&e.M)+(65535&t.M)+(65535&n.M)+(65535&r.M);var a=(65535&(i=(e.M>>>16)+(t.M>>>16)+(n.M>>>16)+(r.M>>>16)+(o>>>16)))<<16|65535&o;return o=(65535&e.I)+(65535&t.I)+(65535&n.I)+(65535&r.I)+(i>>>16),i=(e.I>>>16)+(t.I>>>16)+(n.I>>>16)+(r.I>>>16)+(o>>>16),new E((65535&i)<<16|65535&o,a)}function T(e,t,n,r,o){var i,a;i=(65535&e.M)+(65535&t.M)+(65535&n.M)+(65535&r.M)+(65535&o.M);var s=(65535&(a=(e.M>>>16)+(t.M>>>16)+(n.M>>>16)+(r.M>>>16)+(o.M>>>16)+(i>>>16)))<<16|65535&i;return i=(65535&e.I)+(65535&t.I)+(65535&n.I)+(65535&r.I)+(65535&o.I)+(a>>>16),a=(e.I>>>16)+(t.I>>>16)+(n.I>>>16)+(r.I>>>16)+(o.I>>>16)+(i>>>16),new E((65535&a)<<16|65535&i,s)}function H(e,t){return new E(e.I^t.I,e.M^t.M)}function J(e){var t=D(e,1),n=D(e,8),r=V(e,7);return new E(t.I^n.I^r.I,t.M^n.M^r.M)}function z(e){var t=D(e,14),n=D(e,18),r=D(e,41);return new E(t.I^n.I^r.I,t.M^n.M^r.M)}var P=[new E(s[0],3609767458),new E(s[1],602891725),new E(s[2],3964484399),new E(s[3],2173295548),new E(s[4],4081628472),new E(s[5],3053834265),new E(s[6],2937671579),new E(s[7],3664609560),new E(s[8],2734883394),new E(s[9],1164996542),new E(s[10],1323610764),new E(s[11],3590304994),new E(s[12],4068182383),new E(s[13],991336113),new E(s[14],633803317),new E(s[15],3479774868),new E(s[16],2666613458),new E(s[17],944711139),new E(s[18],2341262773),new E(s[19],2007800933),new E(s[20],1495990901),new E(s[21],1856431235),new E(s[22],3175218132),new E(s[23],2198950837),new E(s[24],3999719339),new E(s[25],766784016),new E(s[26],2566594879),new E(s[27],3203337956),new E(s[28],1034457026),new E(s[29],2466948901),new E(s[30],3758326383),new E(s[31],168717936),new E(s[32],1188179964),new E(s[33],1546045734),new E(s[34],1522805485),new E(s[35],2643833823),new E(s[36],2343527390),new E(s[37],1014477480),new E(s[38],1206759142),new E(s[39],344077627),new E(s[40],1290863460),new E(s[41],3158454273),new E(s[42],3505952657),new E(s[43],106217008),new E(s[44],3606008344),new E(s[45],1432725776),new E(s[46],1467031594),new E(s[47],851169720),new E(s[48],3100823752),new E(s[49],1363258195),new E(s[50],3750685593),new E(s[51],3785050280),new E(s[52],3318307427),new E(s[53],3812723403),new E(s[54],2003034995),new E(s[55],3602036899),new E(s[56],1575990012),new E(s[57],1125592928),new E(s[58],2716904306),new E(s[59],442776044),new E(s[60],593698344),new E(s[61],3733110249),new E(s[62],2999351573),new E(s[63],3815920427),new E(3391569614,3928383900),new E(3515267271,566280711),new E(3940187606,3454069534),new E(4118630271,4000239992),new E(116418474,1914138554),new E(174292421,2731055270),new E(289380356,3203993006),new E(460393269,320620315),new E(685471733,587496836),new E(852142971,1086792851),new E(1017036298,365543100),new E(1126000580,2618297676),new E(1288033470,3409855158),new E(1501505948,4234509866),new E(1607167915,987167468),new E(1816402316,1246189591)];function K(e){return"SHA-384"===e?[new E(3418070365,l[0]),new E(1654270250,l[1]),new E(2438529370,l[2]),new E(355462360,l[3]),new E(1731405415,l[4]),new E(41048885895,l[5]),new E(3675008525,l[6]),new E(1203062813,l[7])]:[new E(c[0],4089235720),new E(c[1],2227873595),new E(c[2],4271175723),new E(c[3],1595750129),new E(c[4],2917565137),new E(c[5],725511199),new E(c[6],4215389547),new E(c[7],327033209)]}function q(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,h,m,b,g,_=[];for(n=t[0],r=t[1],o=t[2],i=t[3],a=t[4],s=t[5],l=t[6],c=t[7],p=0;p<80;p+=1)p<16?(f=2*p,_[p]=new E(e[f],e[f+1])):_[p]=j((m=void 0,b=void 0,g=void 0,m=D(h=_[p-2],19),b=D(h,61),g=V(h,6),new E(m.I^b.I^g.I,m.M^b.M^g.M)),_[p-7],J(_[p-15]),_[p-16]),u=T(c,z(a),S(a,s,l),P[p],_[p]),d=M(Y(n),O(n,r,o)),c=l,l=s,s=a,a=M(i,u),i=o,o=r,r=n,n=M(u,d);return t[0]=M(n,t[0]),t[1]=M(r,t[1]),t[2]=M(o,t[2]),t[3]=M(i,t[3]),t[4]=M(a,t[4]),t[5]=M(s,t[5]),t[6]=M(l,t[6]),t[7]=M(c,t[7]),t}var $=function(e){function t(t,n,r){var i=this;if("SHA-384"!==t&&"SHA-512"!==t)throw new Error(u);var s=r||{};return(i=e.call(this,t,n,r)||this).K=i.N,i.k=!0,i.F=-1,i.m=o(i.t,i.i,i.F),i.R=q,i.L=function(e){return e.slice()},i.B=K,i.g=function(e,n,r,o){return function(e,t,n,r,o){for(var i,s=31+(t+129>>>10<<5),l=t+n;e.length<=s;)e.push(0);for(e[t>>>5]|=128<<24-t%32,e[s]=4294967295&l,e[s-1]=l/a|0,i=0;i<e.length;i+=32)r=q(e.slice(i,i+32),r);return"SHA-384"===o?[r[0].I,r[0].M,r[1].I,r[1].M,r[2].I,r[2].M,r[3].I,r[3].M,r[4].I,r[4].M,r[5].I,r[5].M]:[r[0].I,r[0].M,r[1].I,r[1].M,r[2].I,r[2].M,r[3].I,r[3].M,r[4].I,r[4].M,r[5].I,r[5].M,r[6].I,r[6].M,r[7].I,r[7].M]}(e,n,r,o,t)},i.U=K(t),i.p=1024,i.T="SHA-384"===t?384:512,i.C=!1,s.hmacKey&&i.Y(h("hmacKey",s.hmacKey,i.F)),i}return g(t,e),t}(m),ee=[new E(0,1),new E(0,32898),new E(2147483648,32906),new E(2147483648,2147516416),new E(0,32907),new E(0,2147483649),new E(2147483648,2147516545),new E(2147483648,32777),new E(0,138),new E(0,136),new E(0,2147516425),new E(0,2147483658),new E(0,2147516555),new E(2147483648,139),new E(2147483648,32905),new E(2147483648,32771),new E(2147483648,32770),new E(2147483648,128),new E(0,32778),new E(2147483648,2147483658),new E(2147483648,2147516545),new E(2147483648,32896),new E(0,2147483649),new E(2147483648,2147516424)],te=[[0,36,3,41,18],[1,44,10,45,2],[62,6,43,15,61],[28,55,25,21,56],[27,20,39,8,14]];function ne(e){var t,n=[];for(t=0;t<5;t+=1)n[t]=[new E(0,0),new E(0,0),new E(0,0),new E(0,0),new E(0,0)];return n}function re(e){var t,n=[];for(t=0;t<5;t+=1)n[t]=e[t].slice();return n}function oe(e,t){var n,r,o,i,a,s,l,c,u,d=[],p=[];if(null!==e)for(r=0;r<e.length;r+=2)t[(r>>>1)%5][(r>>>1)/5|0]=H(t[(r>>>1)%5][(r>>>1)/5|0],new E(e[r+1],e[r]));for(n=0;n<24;n+=1){for(i=ne(),r=0;r<5;r+=1)d[r]=(a=t[r][0],s=t[r][1],l=t[r][2],c=t[r][3],u=t[r][4],new E(a.I^s.I^l.I^c.I^u.I,a.M^s.M^l.M^c.M^u.M));for(r=0;r<5;r+=1)p[r]=H(d[(r+4)%5],U(d[(r+1)%5],1));for(r=0;r<5;r+=1)for(o=0;o<5;o+=1)t[r][o]=H(t[r][o],p[r]);for(r=0;r<5;r+=1)for(o=0;o<5;o+=1)i[o][(2*r+3*o)%5]=U(t[r][o],te[r][o]);for(r=0;r<5;r+=1)for(o=0;o<5;o+=1)t[r][o]=H(i[r][o],new E(~i[(r+1)%5][o].I&i[(r+2)%5][o].I,~i[(r+1)%5][o].M&i[(r+2)%5][o].M));t[0][0]=H(t[0][0],ee[n])}return t}function ie(e){var t,n,r=0,o=[0,0],i=[4294967295&e,e/a&2097151];for(t=6;t>=0;t--)0==(n=i[t>>2]>>>8*t&255)&&0===r||(o[r+1>>2]|=n<<8*(r+1),r+=1);return r=0!==r?r:1,o[0]|=r,{value:r+1>4?o:[o[0]],binLen:8+8*r}}function ae(e){return p(ie(e.binLen),e)}function se(e,t){var n,r=ie(t),o=t>>>2,i=(o-(r=p(r,e)).value.length%o)%o;for(n=0;n<i;n++)r.value.push(0);return r.value}var le=function(e){function t(t,n,r){var i=this,a=6,s=0,l=r||{};if(1!==(i=e.call(this,t,n,r)||this).numRounds){if(l.kmacKey||l.hmacKey)throw new Error(d);if("CSHAKE128"===i.o||"CSHAKE256"===i.o)throw new Error("Cannot set numRounds for CSHAKE variants")}switch(i.F=1,i.m=o(i.t,i.i,i.F),i.R=oe,i.L=re,i.B=ne,i.U=ne(),i.C=!1,t){case"SHA3-224":i.p=s=1152,i.T=224,i.k=!0,i.K=i.N;break;case"SHA3-256":i.p=s=1088,i.T=256,i.k=!0,i.K=i.N;break;case"SHA3-384":i.p=s=832,i.T=384,i.k=!0,i.K=i.N;break;case"SHA3-512":i.p=s=576,i.T=512,i.k=!0,i.K=i.N;break;case"SHAKE128":a=31,i.p=s=1344,i.T=-1,i.C=!0,i.k=!1,i.K=null;break;case"SHAKE256":a=31,i.p=s=1088,i.T=-1,i.C=!0,i.k=!1,i.K=null;break;case"KMAC128":a=4,i.p=s=1344,i.X(r),i.T=-1,i.C=!0,i.k=!1,i.K=i.O;break;case"KMAC256":a=4,i.p=s=1088,i.X(r),i.T=-1,i.C=!0,i.k=!1,i.K=i.O;break;case"CSHAKE128":i.p=s=1344,a=i.j(r),i.T=-1,i.C=!0,i.k=!1,i.K=null;break;case"CSHAKE256":i.p=s=1088,a=i.j(r),i.T=-1,i.C=!0,i.k=!1,i.K=null;break;default:throw new Error(u)}return i.g=function(e,t,n,r,o){return function(e,t,n,r,o,i,a){var s,l,c=0,u=[],d=o>>>5,p=t>>>5;for(s=0;s<p&&t>=o;s+=d)r=oe(e.slice(s,s+d),r),t-=o;for(e=e.slice(s),t%=o;e.length<d;)e.push(0);for(e[(s=t>>>3)>>2]^=i<<s%4*8,e[d-1]^=2147483648,r=oe(e,r);32*u.length<a&&(l=r[c%5][c/5|0],u.push(l.M),!(32*u.length>=a));)u.push(l.I),0==64*(c+=1)%o&&(oe(null,r),c=0);return u}(e,t,0,r,s,a,o)},l.hmacKey&&i.Y(h("hmacKey",l.hmacKey,i.F)),i}return g(t,e),t.prototype.j=function(e,t){var n=function(e){var t=e||{};return{funcName:h("funcName",t.funcName,1,{value:[],binLen:0}),customization:h("Customization",t.customization,1,{value:[],binLen:0})}}(e||{});t&&(n.funcName=t);var r=p(ae(n.funcName),ae(n.customization));if(0!==n.customization.binLen||0!==n.funcName.binLen){for(var o=se(r,this.p>>>3),i=0;i<o.length;i+=this.p>>>5)this.U=this.R(o.slice(i,i+(this.p>>>5)),this.U),this.A+=this.p;return 4}return 31},t.prototype.X=function(e){var t=function(e){var t=e||{};return{kmacKey:h("kmacKey",t.kmacKey,1),funcName:{value:[1128353099],binLen:32},customization:h("Customization",t.customization,1,{value:[],binLen:0})}}(e||{});this.j(e,t.funcName);for(var n=se(ae(t.kmacKey),this.p>>>3),r=0;r<n.length;r+=this.p>>>5)this.U=this.R(n.slice(r,r+(this.p>>>5)),this.U),this.A+=this.p;this.l=!0},t.prototype.O=function(e){var t=p({value:this.u.slice(),binLen:this.h},function(e){var t,n,r=0,o=[0,0],i=[4294967295&e,e/a&2097151];for(t=6;t>=0;t--)0==(n=i[t>>2]>>>8*t&255)&&0===r||(o[r>>2]|=n<<8*r,r+=1);return o[(r=0!==r?r:1)>>2]|=r<<8*r,{value:r+1>4?o:[o[0]],binLen:8+8*r}}(e.outputLen));return this.g(t.value,t.binLen,this.A,this.L(this.U),e.outputLen)},t}(m);return function(){function e(e,t,n){if("SHA-1"==e)this._=new Z(e,t,n);else if("SHA-224"==e||"SHA-256"==e)this._=new L(e,t,n);else if("SHA-384"==e||"SHA-512"==e)this._=new $(e,t,n);else{if("SHA3-224"!=e&&"SHA3-256"!=e&&"SHA3-384"!=e&&"SHA3-512"!=e&&"SHAKE128"!=e&&"SHAKE256"!=e&&"CSHAKE128"!=e&&"CSHAKE256"!=e&&"KMAC128"!=e&&"KMAC256"!=e)throw new Error(u);this._=new le(e,t,n)}}return e.prototype.update=function(e){return this._.update(e),this},e.prototype.getHash=function(e,t){return this._.getHash(e,t)},e.prototype.setHMACKey=function(e,t,n){this._.setHMACKey(e,t,n)},e.prototype.getHMAC=function(e,t){return this._.getHMAC(e,t)},e}()}()),ba.exports}var _a,va,ya,Ia,xa,Ca,Ga,Ba,wa,Aa,Fa,Na,Xa,Qa,Ra,Za,ka,Wa,La,Ea,Ua,Da,Va,Sa,Oa,Ya,Ma,ja={exports:{}};
31
31
  /*
32
32
  * [js-sha512]{@link https://github.com/emn178/js-sha512}
33
33
  *
@@ -35,7 +35,7 @@
35
35
  * @author Chen, Yi-Cyuan [emn178@gmail.com]
36
36
  * @copyright Chen, Yi-Cyuan 2014-2024
37
37
  * @license MIT
38
- */function Ts(){if(ws)return Cs;function e(e,t,n){var r=e[t]+e[n],o=e[t+1]+e[n+1];r>=4294967296&&o++,e[t]=r,e[t+1]=o}function t(e,t,n,r){var o=e[t]+n;n<0&&(o+=4294967296);var i=e[t+1]+r;o>=4294967296&&i++,e[t]=o,e[t+1]=i}function n(e,t){return e[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}function r(n,r,o,i,l,c){var u=a[l],d=a[l+1],f=a[c],p=a[c+1];e(s,n,r),t(s,n,u,d);var h=s[i]^s[n],m=s[i+1]^s[n+1];s[i]=m,s[i+1]=h,e(s,o,i),h=s[r]^s[o],m=s[r+1]^s[o+1],s[r]=h>>>24^m<<8,s[r+1]=m>>>24^h<<8,e(s,n,r),t(s,n,f,p),h=s[i]^s[n],m=s[i+1]^s[n+1],s[i]=h>>>16^m<<16,s[i+1]=m>>>16^h<<16,e(s,o,i),h=s[r]^s[o],m=s[r+1]^s[o+1],s[r]=m>>>31^h<<1,s[r+1]=h>>>31^m<<1}ws=1;var o=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),i=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3].map((function(e){return 2*e}))),s=new Uint32Array(32),a=new Uint32Array(32);function l(e,t){var l=0;for(l=0;l<16;l++)s[l]=e.h[l],s[l+16]=o[l];for(s[24]=s[24]^e.t,s[25]=s[25]^e.t/4294967296,t&&(s[28]=~s[28],s[29]=~s[29]),l=0;l<32;l++)a[l]=n(e.b,4*l);for(l=0;l<12;l++)r(0,8,16,24,i[16*l+0],i[16*l+1]),r(2,10,18,26,i[16*l+2],i[16*l+3]),r(4,12,20,28,i[16*l+4],i[16*l+5]),r(6,14,22,30,i[16*l+6],i[16*l+7]),r(0,10,20,30,i[16*l+8],i[16*l+9]),r(2,12,22,24,i[16*l+10],i[16*l+11]),r(4,14,16,26,i[16*l+12],i[16*l+13]),r(6,8,18,28,i[16*l+14],i[16*l+15]);for(l=0;l<16;l++)e.h[l]=e.h[l]^s[l]^s[l+16]}var c=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function u(e,t,r,i){c.fill(0),this.b=new Uint8Array(128),this.h=new Uint32Array(16),this.t=0,this.c=0,this.outlen=e,c[0]=e,t&&(c[1]=t.length),c[2]=1,c[3]=1,r&&c.set(r,32),i&&c.set(i,48);for(var s=0;s<16;s++)this.h[s]=o[s]^n(c,4*s);t&&(d(this,t),this.c=128)}function d(e,t){for(var n=0;n<t.length;n++)128===e.c&&(e.t+=e.c,l(e,!1),e.c=0),e.b[e.c++]=t[n]}function f(e){return e<16?"0"+e.toString(16):e.toString(16)}return u.prototype.update=function(e){return d(this,e),this},u.prototype.digest=function(e){var t=e&&"binary"!==e&&"hex"!==e?e:new Uint8Array(this.outlen);return function(e,t){e.t+=e.c;for(;e.c<128;)e.b[e.c++]=0;l(e,!0);for(var n=0;n<e.outlen;n++)t[n]=e.h[n>>2]>>8*(3&n)}(this,t),"hex"===e?function(e){for(var t="",n=0;n<e.length;n++)t+=f(e[n]);return t}(t):t},u.prototype.final=u.prototype.digest,Cs=u}function Hs(){if(Bs)return Gs;Bs=1;for(var e="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",t={},n=0;n<58;++n)t[e.charAt(n)]=n;return Gs={decode:function(e){if(0===e.length)return[];var n,r,o=[0];for(n=0;n<e.length;++n){var i=e[n];if(!(i in t))throw new Error("Non-base58 character");for(r=0;r<o.length;++r)o[r]*=58;o[0]+=t[i];var s=0;for(r=0;r<o.length;++r)o[r]+=s,s=o[r]>>8,o[r]&=255;for(;s;)o.push(255&s),s>>=8}for(n=0;"1"===e[n]&&n<e.length-1;++n)o.push(0);return o.reverse()}},Gs}function Js(){if(Fs)return As;Fs=1;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";return As={b32decode:function(t){for(var n=new ArrayBuffer(5*t.length/8),r=new Uint8Array(n),o=0;o<t.length/8;o++){for(var i=[0,0,0,0,0,0,0,0],s=0;s<8;++s)i[s]=e.indexOf(t[8*o+s]);s=0;r[5*o+0]=i[s+0]<<3|i[s+1]>>2,r[5*o+1]=(3&i[s+1])<<6|i[s+2]<<1|i[s+3]>>4,r[5*o+2]=(15&i[s+3])<<4|i[s+4]>>1,r[5*o+3]=(1&i[s+4])<<7|i[s+5]<<2|i[s+6]>>3,r[5*o+4]=(7&i[s+6])<<5|i[s+7]}return r},b32encode:function(t){var n=[],r=Math.floor(t.length/5),o=t.length%5;if(0!=o){for(var i=0;i<5-o;i++)t+="\0";r+=1}for(i=0;i<r;i++)n.push(e.charAt(t.charCodeAt(5*i)>>3)),n.push(e.charAt((7&t.charCodeAt(5*i))<<2|t.charCodeAt(5*i+1)>>6)),n.push(e.charAt((63&t.charCodeAt(5*i+1))>>1)),n.push(e.charAt((1&t.charCodeAt(5*i+1))<<4|t.charCodeAt(5*i+2)>>4)),n.push(e.charAt((15&t.charCodeAt(5*i+2))<<1|t.charCodeAt(5*i+3)>>7)),n.push(e.charAt((127&t.charCodeAt(5*i+3))>>2)),n.push(e.charAt((3&t.charCodeAt(5*i+3))<<3|t.charCodeAt(5*i+4)>>5)),n.push(e.charAt(31&t.charCodeAt(5*i+4)));var s=0;1==o?s=6:2==o?s=4:3==o?s=3:4==o&&(s=1);for(i=0;i<s;i++)n.pop();for(i=0;i<s;i++)n.push("=");return n.join("")}},As}function zs(){if(Zs)return Rs;Zs=1;var e=gs(),t=(vs||(vs=1,function(e){!function(){var t="input is invalid type",n="object"==typeof window,r=n?window:{};r.JS_SHA512_NO_WINDOW&&(n=!1);var i=!n&&"object"==typeof self;!r.JS_SHA512_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node?r=o:i&&(r=self);var s=!r.JS_SHA512_NO_COMMON_JS&&e.exports,a=!r.JS_SHA512_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,l="0123456789abcdef".split(""),c=[-2147483648,8388608,32768,128],u=[24,16,8,0],d=[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],f=["hex","array","digest","arrayBuffer"],p=[],h=Array.isArray;!r.JS_SHA512_NO_NODE_JS&&h||(h=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var m=ArrayBuffer.isView;!a||!r.JS_SHA512_NO_ARRAY_BUFFER_IS_VIEW&&m||(m=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});var b=function(e){var n=typeof e;if("string"===n)return[e,!0];if("object"!==n||null===e)throw new Error(t);if(a&&e.constructor===ArrayBuffer)return[new Uint8Array(e),!1];if(!h(e)&&!m(e))throw new Error(t);return[e,!1]},g=function(e,t){return function(n){return new I(t,!0).update(n)[e]()}},v=function(e){var t=g("hex",e);t.create=function(){return new I(e)},t.update=function(e){return t.create().update(e)};for(var n=0;n<f.length;++n){var r=f[n];t[r]=g(r,e)}return t},_=function(e,t){return function(n,r){return new x(n,t,!0).update(r)[e]()}},y=function(e){var t=_("hex",e);t.create=function(t){return new x(t,e)},t.update=function(e,n){return t.create(e).update(n)};for(var n=0;n<f.length;++n){var r=f[n];t[r]=_(r,e)}return t};function I(e,t){t?(p[0]=p[1]=p[2]=p[3]=p[4]=p[5]=p[6]=p[7]=p[8]=p[9]=p[10]=p[11]=p[12]=p[13]=p[14]=p[15]=p[16]=p[17]=p[18]=p[19]=p[20]=p[21]=p[22]=p[23]=p[24]=p[25]=p[26]=p[27]=p[28]=p[29]=p[30]=p[31]=p[32]=0,this.blocks=p):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],384==e?(this.h0h=3418070365,this.h0l=3238371032,this.h1h=1654270250,this.h1l=914150663,this.h2h=2438529370,this.h2l=812702999,this.h3h=355462360,this.h3l=4144912697,this.h4h=1731405415,this.h4l=4290775857,this.h5h=2394180231,this.h5l=1750603025,this.h6h=3675008525,this.h6l=1694076839,this.h7h=1203062813,this.h7l=3204075428):256==e?(this.h0h=573645204,this.h0l=4230739756,this.h1h=2673172387,this.h1l=3360449730,this.h2h=596883563,this.h2l=1867755857,this.h3h=2520282905,this.h3l=1497426621,this.h4h=2519219938,this.h4l=2827943907,this.h5h=3193839141,this.h5l=1401305490,this.h6h=721525244,this.h6l=746961066,this.h7h=246885852,this.h7l=2177182882):224==e?(this.h0h=2352822216,this.h0l=424955298,this.h1h=1944164710,this.h1l=2312950998,this.h2h=502970286,this.h2l=855612546,this.h3h=1738396948,this.h3l=1479516111,this.h4h=258812777,this.h4l=2077511080,this.h5h=2011393907,this.h5l=79989058,this.h6h=1067287976,this.h6l=1780299464,this.h7h=286451373,this.h7l=2446758561):(this.h0h=1779033703,this.h0l=4089235720,this.h1h=3144134277,this.h1l=2227873595,this.h2h=1013904242,this.h2l=4271175723,this.h3h=2773480762,this.h3l=1595750129,this.h4h=1359893119,this.h4l=2917565137,this.h5h=2600822924,this.h5l=725511199,this.h6h=528734635,this.h6l=4215389547,this.h7h=1541459225,this.h7l=327033209),this.bits=e,this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1}function x(e,t,n){var r=b(e);if(e=r[0],r[1]){for(var o,i=[],s=e.length,a=0,l=0;l<s;++l)(o=e.charCodeAt(l))<128?i[a++]=o:o<2048?(i[a++]=192|o>>>6,i[a++]=128|63&o):o<55296||o>=57344?(i[a++]=224|o>>>12,i[a++]=128|o>>>6&63,i[a++]=128|63&o):(o=65536+((1023&o)<<10|1023&e.charCodeAt(++l)),i[a++]=240|o>>>18,i[a++]=128|o>>>12&63,i[a++]=128|o>>>6&63,i[a++]=128|63&o);e=i}e.length>128&&(e=new I(t,!0).update(e).array());var c=[],u=[];for(l=0;l<128;++l){var d=e[l]||0;c[l]=92^d,u[l]=54^d}I.call(this,t,n),this.update(u),this.oKeyPad=c,this.inner=!0,this.sharedMemory=n}I.prototype.update=function(e){if(this.finalized)throw new Error("finalize already called");var t=b(e);e=t[0];for(var n,r,o=t[1],i=0,s=e.length,a=this.blocks;i<s;){if(this.hashed&&(this.hashed=!1,a[0]=this.block,this.block=a[1]=a[2]=a[3]=a[4]=a[5]=a[6]=a[7]=a[8]=a[9]=a[10]=a[11]=a[12]=a[13]=a[14]=a[15]=a[16]=a[17]=a[18]=a[19]=a[20]=a[21]=a[22]=a[23]=a[24]=a[25]=a[26]=a[27]=a[28]=a[29]=a[30]=a[31]=a[32]=0),o)for(r=this.start;i<s&&r<128;++i)(n=e.charCodeAt(i))<128?a[r>>>2]|=n<<u[3&r++]:n<2048?(a[r>>>2]|=(192|n>>>6)<<u[3&r++],a[r>>>2]|=(128|63&n)<<u[3&r++]):n<55296||n>=57344?(a[r>>>2]|=(224|n>>>12)<<u[3&r++],a[r>>>2]|=(128|n>>>6&63)<<u[3&r++],a[r>>>2]|=(128|63&n)<<u[3&r++]):(n=65536+((1023&n)<<10|1023&e.charCodeAt(++i)),a[r>>>2]|=(240|n>>>18)<<u[3&r++],a[r>>>2]|=(128|n>>>12&63)<<u[3&r++],a[r>>>2]|=(128|n>>>6&63)<<u[3&r++],a[r>>>2]|=(128|63&n)<<u[3&r++]);else for(r=this.start;i<s&&r<128;++i)a[r>>>2]|=e[i]<<u[3&r++];this.lastByteIndex=r,this.bytes+=r-this.start,r>=128?(this.block=a[32],this.start=r-128,this.hash(),this.hashed=!0):this.start=r}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296|0,this.bytes=this.bytes%4294967296),this},I.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[32]=this.block,e[t>>>2]|=c[3&t],this.block=e[32],t>=112&&(this.hashed||this.hash(),e[0]=this.block,e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=e[16]=e[17]=e[18]=e[19]=e[20]=e[21]=e[22]=e[23]=e[24]=e[25]=e[26]=e[27]=e[28]=e[29]=e[30]=e[31]=e[32]=0),e[30]=this.hBytes<<3|this.bytes>>>29,e[31]=this.bytes<<3,this.hash()}},I.prototype.hash=function(){var e,t,n,r,o,i,s,a,l,c,u,f,p,h,m,b,g,v,_,y,I,x,C,w,G,B=this.h0h,A=this.h0l,F=this.h1h,N=this.h1l,X=this.h2h,R=this.h2l,Z=this.h3h,Q=this.h3l,k=this.h4h,L=this.h4l,W=this.h5h,E=this.h5l,V=this.h6h,U=this.h6l,D=this.h7h,S=this.h7l,O=this.blocks;for(e=32;e<160;e+=2)t=((y=O[e-30])>>>1|(I=O[e-29])<<31)^(y>>>8|I<<24)^y>>>7,n=(I>>>1|y<<31)^(I>>>8|y<<24)^(I>>>7|y<<25),r=((y=O[e-4])>>>19|(I=O[e-3])<<13)^(I>>>29|y<<3)^y>>>6,o=(I>>>19|y<<13)^(y>>>29|I<<3)^(I>>>6|y<<26),y=O[e-32],I=O[e-31],l=((x=O[e-14])>>>16)+(y>>>16)+(t>>>16)+(r>>>16)+((a=(65535&x)+(65535&y)+(65535&t)+(65535&r)+((s=((C=O[e-13])>>>16)+(I>>>16)+(n>>>16)+(o>>>16)+((i=(65535&C)+(65535&I)+(65535&n)+(65535&o))>>>16))>>>16))>>>16),O[e]=l<<16|65535&a,O[e+1]=s<<16|65535&i;var M=B,Y=A,j=F,T=N,H=X,J=R,z=Z,P=Q,K=k,q=L,$=W,ee=E,te=V,ne=U,re=D,oe=S;for(b=j&H,g=T&J,e=0;e<160;e+=8)t=(M>>>28|Y<<4)^(Y>>>2|M<<30)^(Y>>>7|M<<25),n=(Y>>>28|M<<4)^(M>>>2|Y<<30)^(M>>>7|Y<<25),r=(K>>>14|q<<18)^(K>>>18|q<<14)^(q>>>9|K<<23),o=(q>>>14|K<<18)^(q>>>18|K<<14)^(K>>>9|q<<23),v=(c=M&j)^M&H^b,_=(u=Y&T)^Y&J^g,w=K&$^~K&te,G=q&ee^~q&ne,y=O[e],I=O[e+1],y=(l=((x=d[e])>>>16)+(y>>>16)+(w>>>16)+(r>>>16)+(re>>>16)+((a=(65535&x)+(65535&y)+(65535&w)+(65535&r)+(65535&re)+((s=((C=d[e+1])>>>16)+(I>>>16)+(G>>>16)+(o>>>16)+(oe>>>16)+((i=(65535&C)+(65535&I)+(65535&G)+(65535&o)+(65535&oe))>>>16))>>>16))>>>16))<<16|65535&a,I=s<<16|65535&i,x=(l=(v>>>16)+(t>>>16)+((a=(65535&v)+(65535&t)+((s=(_>>>16)+(n>>>16)+((i=(65535&_)+(65535&n))>>>16))>>>16))>>>16))<<16|65535&a,C=s<<16|65535&i,re=(l=(z>>>16)+(y>>>16)+((a=(65535&z)+(65535&y)+((s=(P>>>16)+(I>>>16)+((i=(65535&P)+(65535&I))>>>16))>>>16))>>>16))<<16|65535&a,oe=s<<16|65535&i,t=((z=(l=(x>>>16)+(y>>>16)+((a=(65535&x)+(65535&y)+((s=(C>>>16)+(I>>>16)+((i=(65535&C)+(65535&I))>>>16))>>>16))>>>16))<<16|65535&a)>>>28|(P=s<<16|65535&i)<<4)^(P>>>2|z<<30)^(P>>>7|z<<25),n=(P>>>28|z<<4)^(z>>>2|P<<30)^(z>>>7|P<<25),r=(re>>>14|oe<<18)^(re>>>18|oe<<14)^(oe>>>9|re<<23),o=(oe>>>14|re<<18)^(oe>>>18|re<<14)^(re>>>9|oe<<23),v=(f=z&M)^z&j^c,_=(p=P&Y)^P&T^u,w=re&K^~re&$,G=oe&q^~oe&ee,y=O[e+2],I=O[e+3],y=(l=((x=d[e+2])>>>16)+(y>>>16)+(w>>>16)+(r>>>16)+(te>>>16)+((a=(65535&x)+(65535&y)+(65535&w)+(65535&r)+(65535&te)+((s=((C=d[e+3])>>>16)+(I>>>16)+(G>>>16)+(o>>>16)+(ne>>>16)+((i=(65535&C)+(65535&I)+(65535&G)+(65535&o)+(65535&ne))>>>16))>>>16))>>>16))<<16|65535&a,I=s<<16|65535&i,x=(l=(v>>>16)+(t>>>16)+((a=(65535&v)+(65535&t)+((s=(_>>>16)+(n>>>16)+((i=(65535&_)+(65535&n))>>>16))>>>16))>>>16))<<16|65535&a,C=s<<16|65535&i,te=(l=(H>>>16)+(y>>>16)+((a=(65535&H)+(65535&y)+((s=(J>>>16)+(I>>>16)+((i=(65535&J)+(65535&I))>>>16))>>>16))>>>16))<<16|65535&a,ne=s<<16|65535&i,t=((H=(l=(x>>>16)+(y>>>16)+((a=(65535&x)+(65535&y)+((s=(C>>>16)+(I>>>16)+((i=(65535&C)+(65535&I))>>>16))>>>16))>>>16))<<16|65535&a)>>>28|(J=s<<16|65535&i)<<4)^(J>>>2|H<<30)^(J>>>7|H<<25),n=(J>>>28|H<<4)^(H>>>2|J<<30)^(H>>>7|J<<25),r=(te>>>14|ne<<18)^(te>>>18|ne<<14)^(ne>>>9|te<<23),o=(ne>>>14|te<<18)^(ne>>>18|te<<14)^(te>>>9|ne<<23),v=(h=H&z)^H&M^f,_=(m=J&P)^J&Y^p,w=te&re^~te&K,G=ne&oe^~ne&q,y=O[e+4],I=O[e+5],y=(l=((x=d[e+4])>>>16)+(y>>>16)+(w>>>16)+(r>>>16)+($>>>16)+((a=(65535&x)+(65535&y)+(65535&w)+(65535&r)+(65535&$)+((s=((C=d[e+5])>>>16)+(I>>>16)+(G>>>16)+(o>>>16)+(ee>>>16)+((i=(65535&C)+(65535&I)+(65535&G)+(65535&o)+(65535&ee))>>>16))>>>16))>>>16))<<16|65535&a,I=s<<16|65535&i,x=(l=(v>>>16)+(t>>>16)+((a=(65535&v)+(65535&t)+((s=(_>>>16)+(n>>>16)+((i=(65535&_)+(65535&n))>>>16))>>>16))>>>16))<<16|65535&a,C=s<<16|65535&i,$=(l=(j>>>16)+(y>>>16)+((a=(65535&j)+(65535&y)+((s=(T>>>16)+(I>>>16)+((i=(65535&T)+(65535&I))>>>16))>>>16))>>>16))<<16|65535&a,ee=s<<16|65535&i,t=((j=(l=(x>>>16)+(y>>>16)+((a=(65535&x)+(65535&y)+((s=(C>>>16)+(I>>>16)+((i=(65535&C)+(65535&I))>>>16))>>>16))>>>16))<<16|65535&a)>>>28|(T=s<<16|65535&i)<<4)^(T>>>2|j<<30)^(T>>>7|j<<25),n=(T>>>28|j<<4)^(j>>>2|T<<30)^(j>>>7|T<<25),r=($>>>14|ee<<18)^($>>>18|ee<<14)^(ee>>>9|$<<23),o=(ee>>>14|$<<18)^(ee>>>18|$<<14)^($>>>9|ee<<23),v=(b=j&H)^j&z^h,_=(g=T&J)^T&P^m,w=$&te^~$&re,G=ee&ne^~ee&oe,y=O[e+6],I=O[e+7],y=(l=((x=d[e+6])>>>16)+(y>>>16)+(w>>>16)+(r>>>16)+(K>>>16)+((a=(65535&x)+(65535&y)+(65535&w)+(65535&r)+(65535&K)+((s=((C=d[e+7])>>>16)+(I>>>16)+(G>>>16)+(o>>>16)+(q>>>16)+((i=(65535&C)+(65535&I)+(65535&G)+(65535&o)+(65535&q))>>>16))>>>16))>>>16))<<16|65535&a,I=s<<16|65535&i,x=(l=(v>>>16)+(t>>>16)+((a=(65535&v)+(65535&t)+((s=(_>>>16)+(n>>>16)+((i=(65535&_)+(65535&n))>>>16))>>>16))>>>16))<<16|65535&a,C=s<<16|65535&i,K=(l=(M>>>16)+(y>>>16)+((a=(65535&M)+(65535&y)+((s=(Y>>>16)+(I>>>16)+((i=(65535&Y)+(65535&I))>>>16))>>>16))>>>16))<<16|65535&a,q=s<<16|65535&i,M=(l=(x>>>16)+(y>>>16)+((a=(65535&x)+(65535&y)+((s=(C>>>16)+(I>>>16)+((i=(65535&C)+(65535&I))>>>16))>>>16))>>>16))<<16|65535&a,Y=s<<16|65535&i;l=(B>>>16)+(M>>>16)+((a=(65535&B)+(65535&M)+((s=(A>>>16)+(Y>>>16)+((i=(65535&A)+(65535&Y))>>>16))>>>16))>>>16),this.h0h=l<<16|65535&a,this.h0l=s<<16|65535&i,l=(F>>>16)+(j>>>16)+((a=(65535&F)+(65535&j)+((s=(N>>>16)+(T>>>16)+((i=(65535&N)+(65535&T))>>>16))>>>16))>>>16),this.h1h=l<<16|65535&a,this.h1l=s<<16|65535&i,l=(X>>>16)+(H>>>16)+((a=(65535&X)+(65535&H)+((s=(R>>>16)+(J>>>16)+((i=(65535&R)+(65535&J))>>>16))>>>16))>>>16),this.h2h=l<<16|65535&a,this.h2l=s<<16|65535&i,l=(Z>>>16)+(z>>>16)+((a=(65535&Z)+(65535&z)+((s=(Q>>>16)+(P>>>16)+((i=(65535&Q)+(65535&P))>>>16))>>>16))>>>16),this.h3h=l<<16|65535&a,this.h3l=s<<16|65535&i,l=(k>>>16)+(K>>>16)+((a=(65535&k)+(65535&K)+((s=(L>>>16)+(q>>>16)+((i=(65535&L)+(65535&q))>>>16))>>>16))>>>16),this.h4h=l<<16|65535&a,this.h4l=s<<16|65535&i,l=(W>>>16)+($>>>16)+((a=(65535&W)+(65535&$)+((s=(E>>>16)+(ee>>>16)+((i=(65535&E)+(65535&ee))>>>16))>>>16))>>>16),this.h5h=l<<16|65535&a,this.h5l=s<<16|65535&i,l=(V>>>16)+(te>>>16)+((a=(65535&V)+(65535&te)+((s=(U>>>16)+(ne>>>16)+((i=(65535&U)+(65535&ne))>>>16))>>>16))>>>16),this.h6h=l<<16|65535&a,this.h6l=s<<16|65535&i,l=(D>>>16)+(re>>>16)+((a=(65535&D)+(65535&re)+((s=(S>>>16)+(oe>>>16)+((i=(65535&S)+(65535&oe))>>>16))>>>16))>>>16),this.h7h=l<<16|65535&a,this.h7l=s<<16|65535&i},I.prototype.hex=function(){this.finalize();var e=this.h0h,t=this.h0l,n=this.h1h,r=this.h1l,o=this.h2h,i=this.h2l,s=this.h3h,a=this.h3l,c=this.h4h,u=this.h4l,d=this.h5h,f=this.h5l,p=this.h6h,h=this.h6l,m=this.h7h,b=this.h7l,g=this.bits,v=l[e>>>28&15]+l[e>>>24&15]+l[e>>>20&15]+l[e>>>16&15]+l[e>>>12&15]+l[e>>>8&15]+l[e>>>4&15]+l[15&e]+l[t>>>28&15]+l[t>>>24&15]+l[t>>>20&15]+l[t>>>16&15]+l[t>>>12&15]+l[t>>>8&15]+l[t>>>4&15]+l[15&t]+l[n>>>28&15]+l[n>>>24&15]+l[n>>>20&15]+l[n>>>16&15]+l[n>>>12&15]+l[n>>>8&15]+l[n>>>4&15]+l[15&n]+l[r>>>28&15]+l[r>>>24&15]+l[r>>>20&15]+l[r>>>16&15]+l[r>>>12&15]+l[r>>>8&15]+l[r>>>4&15]+l[15&r]+l[o>>>28&15]+l[o>>>24&15]+l[o>>>20&15]+l[o>>>16&15]+l[o>>>12&15]+l[o>>>8&15]+l[o>>>4&15]+l[15&o]+l[i>>>28&15]+l[i>>>24&15]+l[i>>>20&15]+l[i>>>16&15]+l[i>>>12&15]+l[i>>>8&15]+l[i>>>4&15]+l[15&i]+l[s>>>28&15]+l[s>>>24&15]+l[s>>>20&15]+l[s>>>16&15]+l[s>>>12&15]+l[s>>>8&15]+l[s>>>4&15]+l[15&s];return g>=256&&(v+=l[a>>>28&15]+l[a>>>24&15]+l[a>>>20&15]+l[a>>>16&15]+l[a>>>12&15]+l[a>>>8&15]+l[a>>>4&15]+l[15&a]),g>=384&&(v+=l[c>>>28&15]+l[c>>>24&15]+l[c>>>20&15]+l[c>>>16&15]+l[c>>>12&15]+l[c>>>8&15]+l[c>>>4&15]+l[15&c]+l[u>>>28&15]+l[u>>>24&15]+l[u>>>20&15]+l[u>>>16&15]+l[u>>>12&15]+l[u>>>8&15]+l[u>>>4&15]+l[15&u]+l[d>>>28&15]+l[d>>>24&15]+l[d>>>20&15]+l[d>>>16&15]+l[d>>>12&15]+l[d>>>8&15]+l[d>>>4&15]+l[15&d]+l[f>>>28&15]+l[f>>>24&15]+l[f>>>20&15]+l[f>>>16&15]+l[f>>>12&15]+l[f>>>8&15]+l[f>>>4&15]+l[15&f]),512==g&&(v+=l[p>>>28&15]+l[p>>>24&15]+l[p>>>20&15]+l[p>>>16&15]+l[p>>>12&15]+l[p>>>8&15]+l[p>>>4&15]+l[15&p]+l[h>>>28&15]+l[h>>>24&15]+l[h>>>20&15]+l[h>>>16&15]+l[h>>>12&15]+l[h>>>8&15]+l[h>>>4&15]+l[15&h]+l[m>>>28&15]+l[m>>>24&15]+l[m>>>20&15]+l[m>>>16&15]+l[m>>>12&15]+l[m>>>8&15]+l[m>>>4&15]+l[15&m]+l[b>>>28&15]+l[b>>>24&15]+l[b>>>20&15]+l[b>>>16&15]+l[b>>>12&15]+l[b>>>8&15]+l[b>>>4&15]+l[15&b]),v},I.prototype.toString=I.prototype.hex,I.prototype.digest=function(){this.finalize();var e=this.h0h,t=this.h0l,n=this.h1h,r=this.h1l,o=this.h2h,i=this.h2l,s=this.h3h,a=this.h3l,l=this.h4h,c=this.h4l,u=this.h5h,d=this.h5l,f=this.h6h,p=this.h6l,h=this.h7h,m=this.h7l,b=this.bits,g=[e>>>24&255,e>>>16&255,e>>>8&255,255&e,t>>>24&255,t>>>16&255,t>>>8&255,255&t,n>>>24&255,n>>>16&255,n>>>8&255,255&n,r>>>24&255,r>>>16&255,r>>>8&255,255&r,o>>>24&255,o>>>16&255,o>>>8&255,255&o,i>>>24&255,i>>>16&255,i>>>8&255,255&i,s>>>24&255,s>>>16&255,s>>>8&255,255&s];return b>=256&&g.push(a>>>24&255,a>>>16&255,a>>>8&255,255&a),b>=384&&g.push(l>>>24&255,l>>>16&255,l>>>8&255,255&l,c>>>24&255,c>>>16&255,c>>>8&255,255&c,u>>>24&255,u>>>16&255,u>>>8&255,255&u,d>>>24&255,d>>>16&255,d>>>8&255,255&d),512==b&&g.push(f>>>24&255,f>>>16&255,f>>>8&255,255&f,p>>>24&255,p>>>16&255,p>>>8&255,255&p,h>>>24&255,h>>>16&255,h>>>8&255,255&h,m>>>24&255,m>>>16&255,m>>>8&255,255&m),g},I.prototype.array=I.prototype.digest,I.prototype.arrayBuffer=function(){this.finalize();var e=this.bits,t=new ArrayBuffer(e/8),n=new DataView(t);return n.setUint32(0,this.h0h),n.setUint32(4,this.h0l),n.setUint32(8,this.h1h),n.setUint32(12,this.h1l),n.setUint32(16,this.h2h),n.setUint32(20,this.h2l),n.setUint32(24,this.h3h),e>=256&&n.setUint32(28,this.h3l),e>=384&&(n.setUint32(32,this.h4h),n.setUint32(36,this.h4l),n.setUint32(40,this.h5h),n.setUint32(44,this.h5l)),512==e&&(n.setUint32(48,this.h6h),n.setUint32(52,this.h6l),n.setUint32(56,this.h7h),n.setUint32(60,this.h7l)),t},I.prototype.clone=function(){var e=new I(this.bits,!1);return this.copyTo(e),e},I.prototype.copyTo=function(e){var t=0,n=["h0h","h0l","h1h","h1l","h2h","h2l","h3h","h3l","h4h","h4l","h5h","h5l","h6h","h6l","h7h","h7l","start","bytes","hBytes","finalized","hashed","lastByteIndex"];for(t=0;t<n.length;++t)e[n[t]]=this[n[t]];for(t=0;t<this.blocks.length;++t)e.blocks[t]=this.blocks[t]},x.prototype=new I,x.prototype.finalize=function(){if(I.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();I.call(this,this.bits,this.sharedMemory),this.update(this.oKeyPad),this.update(e),I.prototype.finalize.call(this)}},x.prototype.clone=function(){var e=new x([],this.bits,!1);this.copyTo(e),e.inner=this.inner;for(var t=0;t<this.oKeyPad.length;++t)e.oKeyPad[t]=this.oKeyPad[t];return e};var C=v(512);C.sha512=C,C.sha384=v(384),C.sha512_256=v(256),C.sha512_224=v(224),C.sha512.hmac=y(512),C.sha384.hmac=y(384),C.sha512_256.hmac=y(256),C.sha512_224.hmac=y(224),s?e.exports=C:(r.sha512=C.sha512,r.sha384=C.sha384,r.sha512_256=C.sha512_256,r.sha512_224=C.sha512_224)}()}(js)),js.exports).sha512_256,n=function(){if(ys)return _s;ys=1,o.Buffer||(o.Buffer=ps().Buffer),i.sigma=[[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15],[14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3],[11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4],[7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8],[9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13],[2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9],[12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11],[13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10],[6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5],[10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0],[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15],[14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3],[11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4],[7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8],[9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13],[2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9]],i.u256=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479],i.padding=ms.Buffer.from([128,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),i.prototype._length_carry=function(e){for(var t=0;t<e.length&&!(e[t]<4294967296);++t)e[t]-=4294967296,e[t+1]+=1},i.prototype.update=function(e,t){e=ms.Buffer.from(e,t);for(var n=this._block,r=0;this._blockOffset+e.length-r>=n.length;){for(var o=this._blockOffset;o<n.length;)n[o++]=e[r++];this._length[0]+=8*n.length,this._length_carry(this._length),this._compress(),this._blockOffset=0}for(;r<e.length;)n[this._blockOffset++]=e[r++];return this};var e=ms.Buffer.from([1]),t=ms.Buffer.from([129]);function n(e,t){return(e<<32-t|e>>>t)>>>0}function r(e,t,r,o,s,a,l,c){var u=i.sigma,d=i.u256;e[o]=e[o]+((t[u[r][c]]^d[u[r][c+1]])>>>0)+e[s]>>>0,e[l]=n(e[l]^e[o],16),e[a]=e[a]+e[l]>>>0,e[s]=n(e[s]^e[a],12),e[o]=e[o]+((t[u[r][c+1]]^d[u[r][c]])>>>0)+e[s]>>>0,e[l]=n(e[l]^e[o],8),e[a]=e[a]+e[l]>>>0,e[s]=n(e[s]^e[a],7)}function i(){this._h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this._s=[0,0,0,0],this._block=ms.Buffer.allocUnsafe(64),this._blockOffset=0,this._length=[0,0],this._nullt=!1,this._zo=e,this._oo=t}return i.prototype._compress=function(){var e,t=i.u256,n=new Array(16),o=new Array(16);for(e=0;e<16;++e)o[e]=this._block.readUInt32BE(4*e);for(e=0;e<8;++e)n[e]=this._h[e]>>>0;for(e=8;e<12;++e)n[e]=(this._s[e-8]^t[e-8])>>>0;for(e=12;e<16;++e)n[e]=t[e-8];for(this._nullt||(n[12]=(n[12]^this._length[0])>>>0,n[13]=(n[13]^this._length[0])>>>0,n[14]=(n[14]^this._length[1])>>>0,n[15]=(n[15]^this._length[1])>>>0),e=0;e<14;++e)r(n,o,e,0,4,8,12,0),r(n,o,e,1,5,9,13,2),r(n,o,e,2,6,10,14,4),r(n,o,e,3,7,11,15,6),r(n,o,e,0,5,10,15,8),r(n,o,e,1,6,11,12,10),r(n,o,e,2,7,8,13,12),r(n,o,e,3,4,9,14,14);for(e=0;e<16;++e)this._h[e%8]=(this._h[e%8]^n[e])>>>0;for(e=0;e<8;++e)this._h[e]=(this._h[e]^this._s[e%4])>>>0},i.prototype._padding=function(){var e=this._length[0]+8*this._blockOffset,t=this._length[1];e>=4294967296&&(e-=4294967296,t+=1);var n=ms.Buffer.allocUnsafe(8);n.writeUInt32BE(t,0),n.writeUInt32BE(e,4),55===this._blockOffset?(this._length[0]-=8,this.update(this._oo)):(this._blockOffset<55?(0===this._blockOffset&&(this._nullt=!0),this._length[0]-=8*(55-this._blockOffset),this.update(i.padding.slice(0,55-this._blockOffset))):(this._length[0]-=8*(64-this._blockOffset),this.update(i.padding.slice(0,64-this._blockOffset)),this._length[0]-=440,this.update(i.padding.slice(1,56)),this._nullt=!0),this.update(this._zo),this._length[0]-=8),this._length[0]-=64,this.update(n)},i.prototype.digest=function(e){this._padding();for(var t=ms.Buffer.allocUnsafe(32),n=0;n<8;++n)t.writeUInt32BE(this._h[n],4*n);return t.toString(e)},_s=i}
38
+ */function Ta(){if(Ga)return Ca;function e(e,t,n){var r=e[t]+e[n],o=e[t+1]+e[n+1];r>=4294967296&&o++,e[t]=r,e[t+1]=o}function t(e,t,n,r){var o=e[t]+n;n<0&&(o+=4294967296);var i=e[t+1]+r;o>=4294967296&&i++,e[t]=o,e[t+1]=i}function n(e,t){return e[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}function r(n,r,o,i,l,c){var u=s[l],d=s[l+1],p=s[c],f=s[c+1];e(a,n,r),t(a,n,u,d);var h=a[i]^a[n],m=a[i+1]^a[n+1];a[i]=m,a[i+1]=h,e(a,o,i),h=a[r]^a[o],m=a[r+1]^a[o+1],a[r]=h>>>24^m<<8,a[r+1]=m>>>24^h<<8,e(a,n,r),t(a,n,p,f),h=a[i]^a[n],m=a[i+1]^a[n+1],a[i]=h>>>16^m<<16,a[i+1]=m>>>16^h<<16,e(a,o,i),h=a[r]^a[o],m=a[r+1]^a[o+1],a[r]=m>>>31^h<<1,a[r+1]=h>>>31^m<<1}Ga=1;var o=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),i=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3].map((function(e){return 2*e}))),a=new Uint32Array(32),s=new Uint32Array(32);function l(e,t){var l=0;for(l=0;l<16;l++)a[l]=e.h[l],a[l+16]=o[l];for(a[24]=a[24]^e.t,a[25]=a[25]^e.t/4294967296,t&&(a[28]=~a[28],a[29]=~a[29]),l=0;l<32;l++)s[l]=n(e.b,4*l);for(l=0;l<12;l++)r(0,8,16,24,i[16*l+0],i[16*l+1]),r(2,10,18,26,i[16*l+2],i[16*l+3]),r(4,12,20,28,i[16*l+4],i[16*l+5]),r(6,14,22,30,i[16*l+6],i[16*l+7]),r(0,10,20,30,i[16*l+8],i[16*l+9]),r(2,12,22,24,i[16*l+10],i[16*l+11]),r(4,14,16,26,i[16*l+12],i[16*l+13]),r(6,8,18,28,i[16*l+14],i[16*l+15]);for(l=0;l<16;l++)e.h[l]=e.h[l]^a[l]^a[l+16]}var c=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function u(e,t,r,i){c.fill(0),this.b=new Uint8Array(128),this.h=new Uint32Array(16),this.t=0,this.c=0,this.outlen=e,c[0]=e,t&&(c[1]=t.length),c[2]=1,c[3]=1,r&&c.set(r,32),i&&c.set(i,48);for(var a=0;a<16;a++)this.h[a]=o[a]^n(c,4*a);t&&(d(this,t),this.c=128)}function d(e,t){for(var n=0;n<t.length;n++)128===e.c&&(e.t+=e.c,l(e,!1),e.c=0),e.b[e.c++]=t[n]}function p(e){return e<16?"0"+e.toString(16):e.toString(16)}return u.prototype.update=function(e){return d(this,e),this},u.prototype.digest=function(e){var t=e&&"binary"!==e&&"hex"!==e?e:new Uint8Array(this.outlen);return function(e,t){e.t+=e.c;for(;e.c<128;)e.b[e.c++]=0;l(e,!0);for(var n=0;n<e.outlen;n++)t[n]=e.h[n>>2]>>8*(3&n)}(this,t),"hex"===e?function(e){for(var t="",n=0;n<e.length;n++)t+=p(e[n]);return t}(t):t},u.prototype.final=u.prototype.digest,Ca=u}function Ha(){if(wa)return Ba;wa=1;for(var e="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",t={},n=0;n<58;++n)t[e.charAt(n)]=n;return Ba={decode:function(e){if(0===e.length)return[];var n,r,o=[0];for(n=0;n<e.length;++n){var i=e[n];if(!(i in t))throw new Error("Non-base58 character");for(r=0;r<o.length;++r)o[r]*=58;o[0]+=t[i];var a=0;for(r=0;r<o.length;++r)o[r]+=a,a=o[r]>>8,o[r]&=255;for(;a;)o.push(255&a),a>>=8}for(n=0;"1"===e[n]&&n<e.length-1;++n)o.push(0);return o.reverse()}},Ba}function Ja(){if(Fa)return Aa;Fa=1;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";return Aa={b32decode:function(t){for(var n=new ArrayBuffer(5*t.length/8),r=new Uint8Array(n),o=0;o<t.length/8;o++){for(var i=[0,0,0,0,0,0,0,0],a=0;a<8;++a)i[a]=e.indexOf(t[8*o+a]);a=0;r[5*o+0]=i[a+0]<<3|i[a+1]>>2,r[5*o+1]=(3&i[a+1])<<6|i[a+2]<<1|i[a+3]>>4,r[5*o+2]=(15&i[a+3])<<4|i[a+4]>>1,r[5*o+3]=(1&i[a+4])<<7|i[a+5]<<2|i[a+6]>>3,r[5*o+4]=(7&i[a+6])<<5|i[a+7]}return r},b32encode:function(t){var n=[],r=Math.floor(t.length/5),o=t.length%5;if(0!=o){for(var i=0;i<5-o;i++)t+="\0";r+=1}for(i=0;i<r;i++)n.push(e.charAt(t.charCodeAt(5*i)>>3)),n.push(e.charAt((7&t.charCodeAt(5*i))<<2|t.charCodeAt(5*i+1)>>6)),n.push(e.charAt((63&t.charCodeAt(5*i+1))>>1)),n.push(e.charAt((1&t.charCodeAt(5*i+1))<<4|t.charCodeAt(5*i+2)>>4)),n.push(e.charAt((15&t.charCodeAt(5*i+2))<<1|t.charCodeAt(5*i+3)>>7)),n.push(e.charAt((127&t.charCodeAt(5*i+3))>>2)),n.push(e.charAt((3&t.charCodeAt(5*i+3))<<3|t.charCodeAt(5*i+4)>>5)),n.push(e.charAt(31&t.charCodeAt(5*i+4)));var a=0;1==o?a=6:2==o?a=4:3==o?a=3:4==o&&(a=1);for(i=0;i<a;i++)n.pop();for(i=0;i<a;i++)n.push("=");return n.join("")}},Aa}function za(){if(Ra)return Qa;Ra=1;var e=ga(),t=(_a||(_a=1,function(e){!function(){var t="input is invalid type",n="object"==typeof window,r=n?window:{};r.JS_SHA512_NO_WINDOW&&(n=!1);var i=!n&&"object"==typeof self;!r.JS_SHA512_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node?r=o:i&&(r=self);var a=!r.JS_SHA512_NO_COMMON_JS&&e.exports,s=!r.JS_SHA512_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,l="0123456789abcdef".split(""),c=[-2147483648,8388608,32768,128],u=[24,16,8,0],d=[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],p=["hex","array","digest","arrayBuffer"],f=[],h=Array.isArray;!r.JS_SHA512_NO_NODE_JS&&h||(h=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var m=ArrayBuffer.isView;!s||!r.JS_SHA512_NO_ARRAY_BUFFER_IS_VIEW&&m||(m=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});var b=function(e){var n=typeof e;if("string"===n)return[e,!0];if("object"!==n||null===e)throw new Error(t);if(s&&e.constructor===ArrayBuffer)return[new Uint8Array(e),!1];if(!h(e)&&!m(e))throw new Error(t);return[e,!1]},g=function(e,t){return function(n){return new I(t,!0).update(n)[e]()}},_=function(e){var t=g("hex",e);t.create=function(){return new I(e)},t.update=function(e){return t.create().update(e)};for(var n=0;n<p.length;++n){var r=p[n];t[r]=g(r,e)}return t},v=function(e,t){return function(n,r){return new x(n,t,!0).update(r)[e]()}},y=function(e){var t=v("hex",e);t.create=function(t){return new x(t,e)},t.update=function(e,n){return t.create(e).update(n)};for(var n=0;n<p.length;++n){var r=p[n];t[r]=v(r,e)}return t};function I(e,t){t?(f[0]=f[1]=f[2]=f[3]=f[4]=f[5]=f[6]=f[7]=f[8]=f[9]=f[10]=f[11]=f[12]=f[13]=f[14]=f[15]=f[16]=f[17]=f[18]=f[19]=f[20]=f[21]=f[22]=f[23]=f[24]=f[25]=f[26]=f[27]=f[28]=f[29]=f[30]=f[31]=f[32]=0,this.blocks=f):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],384==e?(this.h0h=3418070365,this.h0l=3238371032,this.h1h=1654270250,this.h1l=914150663,this.h2h=2438529370,this.h2l=812702999,this.h3h=355462360,this.h3l=4144912697,this.h4h=1731405415,this.h4l=4290775857,this.h5h=2394180231,this.h5l=1750603025,this.h6h=3675008525,this.h6l=1694076839,this.h7h=1203062813,this.h7l=3204075428):256==e?(this.h0h=573645204,this.h0l=4230739756,this.h1h=2673172387,this.h1l=3360449730,this.h2h=596883563,this.h2l=1867755857,this.h3h=2520282905,this.h3l=1497426621,this.h4h=2519219938,this.h4l=2827943907,this.h5h=3193839141,this.h5l=1401305490,this.h6h=721525244,this.h6l=746961066,this.h7h=246885852,this.h7l=2177182882):224==e?(this.h0h=2352822216,this.h0l=424955298,this.h1h=1944164710,this.h1l=2312950998,this.h2h=502970286,this.h2l=855612546,this.h3h=1738396948,this.h3l=1479516111,this.h4h=258812777,this.h4l=2077511080,this.h5h=2011393907,this.h5l=79989058,this.h6h=1067287976,this.h6l=1780299464,this.h7h=286451373,this.h7l=2446758561):(this.h0h=1779033703,this.h0l=4089235720,this.h1h=3144134277,this.h1l=2227873595,this.h2h=1013904242,this.h2l=4271175723,this.h3h=2773480762,this.h3l=1595750129,this.h4h=1359893119,this.h4l=2917565137,this.h5h=2600822924,this.h5l=725511199,this.h6h=528734635,this.h6l=4215389547,this.h7h=1541459225,this.h7l=327033209),this.bits=e,this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1}function x(e,t,n){var r=b(e);if(e=r[0],r[1]){for(var o,i=[],a=e.length,s=0,l=0;l<a;++l)(o=e.charCodeAt(l))<128?i[s++]=o:o<2048?(i[s++]=192|o>>>6,i[s++]=128|63&o):o<55296||o>=57344?(i[s++]=224|o>>>12,i[s++]=128|o>>>6&63,i[s++]=128|63&o):(o=65536+((1023&o)<<10|1023&e.charCodeAt(++l)),i[s++]=240|o>>>18,i[s++]=128|o>>>12&63,i[s++]=128|o>>>6&63,i[s++]=128|63&o);e=i}e.length>128&&(e=new I(t,!0).update(e).array());var c=[],u=[];for(l=0;l<128;++l){var d=e[l]||0;c[l]=92^d,u[l]=54^d}I.call(this,t,n),this.update(u),this.oKeyPad=c,this.inner=!0,this.sharedMemory=n}I.prototype.update=function(e){if(this.finalized)throw new Error("finalize already called");var t=b(e);e=t[0];for(var n,r,o=t[1],i=0,a=e.length,s=this.blocks;i<a;){if(this.hashed&&(this.hashed=!1,s[0]=this.block,this.block=s[1]=s[2]=s[3]=s[4]=s[5]=s[6]=s[7]=s[8]=s[9]=s[10]=s[11]=s[12]=s[13]=s[14]=s[15]=s[16]=s[17]=s[18]=s[19]=s[20]=s[21]=s[22]=s[23]=s[24]=s[25]=s[26]=s[27]=s[28]=s[29]=s[30]=s[31]=s[32]=0),o)for(r=this.start;i<a&&r<128;++i)(n=e.charCodeAt(i))<128?s[r>>>2]|=n<<u[3&r++]:n<2048?(s[r>>>2]|=(192|n>>>6)<<u[3&r++],s[r>>>2]|=(128|63&n)<<u[3&r++]):n<55296||n>=57344?(s[r>>>2]|=(224|n>>>12)<<u[3&r++],s[r>>>2]|=(128|n>>>6&63)<<u[3&r++],s[r>>>2]|=(128|63&n)<<u[3&r++]):(n=65536+((1023&n)<<10|1023&e.charCodeAt(++i)),s[r>>>2]|=(240|n>>>18)<<u[3&r++],s[r>>>2]|=(128|n>>>12&63)<<u[3&r++],s[r>>>2]|=(128|n>>>6&63)<<u[3&r++],s[r>>>2]|=(128|63&n)<<u[3&r++]);else for(r=this.start;i<a&&r<128;++i)s[r>>>2]|=e[i]<<u[3&r++];this.lastByteIndex=r,this.bytes+=r-this.start,r>=128?(this.block=s[32],this.start=r-128,this.hash(),this.hashed=!0):this.start=r}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296|0,this.bytes=this.bytes%4294967296),this},I.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[32]=this.block,e[t>>>2]|=c[3&t],this.block=e[32],t>=112&&(this.hashed||this.hash(),e[0]=this.block,e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=e[16]=e[17]=e[18]=e[19]=e[20]=e[21]=e[22]=e[23]=e[24]=e[25]=e[26]=e[27]=e[28]=e[29]=e[30]=e[31]=e[32]=0),e[30]=this.hBytes<<3|this.bytes>>>29,e[31]=this.bytes<<3,this.hash()}},I.prototype.hash=function(){var e,t,n,r,o,i,a,s,l,c,u,p,f,h,m,b,g,_,v,y,I,x,C,G,B,w=this.h0h,A=this.h0l,F=this.h1h,N=this.h1l,X=this.h2h,Q=this.h2l,R=this.h3h,Z=this.h3l,k=this.h4h,W=this.h4l,L=this.h5h,E=this.h5l,U=this.h6h,D=this.h6l,V=this.h7h,S=this.h7l,O=this.blocks;for(e=32;e<160;e+=2)t=((y=O[e-30])>>>1|(I=O[e-29])<<31)^(y>>>8|I<<24)^y>>>7,n=(I>>>1|y<<31)^(I>>>8|y<<24)^(I>>>7|y<<25),r=((y=O[e-4])>>>19|(I=O[e-3])<<13)^(I>>>29|y<<3)^y>>>6,o=(I>>>19|y<<13)^(y>>>29|I<<3)^(I>>>6|y<<26),y=O[e-32],I=O[e-31],l=((x=O[e-14])>>>16)+(y>>>16)+(t>>>16)+(r>>>16)+((s=(65535&x)+(65535&y)+(65535&t)+(65535&r)+((a=((C=O[e-13])>>>16)+(I>>>16)+(n>>>16)+(o>>>16)+((i=(65535&C)+(65535&I)+(65535&n)+(65535&o))>>>16))>>>16))>>>16),O[e]=l<<16|65535&s,O[e+1]=a<<16|65535&i;var Y=w,M=A,j=F,T=N,H=X,J=Q,z=R,P=Z,K=k,q=W,$=L,ee=E,te=U,ne=D,re=V,oe=S;for(b=j&H,g=T&J,e=0;e<160;e+=8)t=(Y>>>28|M<<4)^(M>>>2|Y<<30)^(M>>>7|Y<<25),n=(M>>>28|Y<<4)^(Y>>>2|M<<30)^(Y>>>7|M<<25),r=(K>>>14|q<<18)^(K>>>18|q<<14)^(q>>>9|K<<23),o=(q>>>14|K<<18)^(q>>>18|K<<14)^(K>>>9|q<<23),_=(c=Y&j)^Y&H^b,v=(u=M&T)^M&J^g,G=K&$^~K&te,B=q&ee^~q&ne,y=O[e],I=O[e+1],y=(l=((x=d[e])>>>16)+(y>>>16)+(G>>>16)+(r>>>16)+(re>>>16)+((s=(65535&x)+(65535&y)+(65535&G)+(65535&r)+(65535&re)+((a=((C=d[e+1])>>>16)+(I>>>16)+(B>>>16)+(o>>>16)+(oe>>>16)+((i=(65535&C)+(65535&I)+(65535&B)+(65535&o)+(65535&oe))>>>16))>>>16))>>>16))<<16|65535&s,I=a<<16|65535&i,x=(l=(_>>>16)+(t>>>16)+((s=(65535&_)+(65535&t)+((a=(v>>>16)+(n>>>16)+((i=(65535&v)+(65535&n))>>>16))>>>16))>>>16))<<16|65535&s,C=a<<16|65535&i,re=(l=(z>>>16)+(y>>>16)+((s=(65535&z)+(65535&y)+((a=(P>>>16)+(I>>>16)+((i=(65535&P)+(65535&I))>>>16))>>>16))>>>16))<<16|65535&s,oe=a<<16|65535&i,t=((z=(l=(x>>>16)+(y>>>16)+((s=(65535&x)+(65535&y)+((a=(C>>>16)+(I>>>16)+((i=(65535&C)+(65535&I))>>>16))>>>16))>>>16))<<16|65535&s)>>>28|(P=a<<16|65535&i)<<4)^(P>>>2|z<<30)^(P>>>7|z<<25),n=(P>>>28|z<<4)^(z>>>2|P<<30)^(z>>>7|P<<25),r=(re>>>14|oe<<18)^(re>>>18|oe<<14)^(oe>>>9|re<<23),o=(oe>>>14|re<<18)^(oe>>>18|re<<14)^(re>>>9|oe<<23),_=(p=z&Y)^z&j^c,v=(f=P&M)^P&T^u,G=re&K^~re&$,B=oe&q^~oe&ee,y=O[e+2],I=O[e+3],y=(l=((x=d[e+2])>>>16)+(y>>>16)+(G>>>16)+(r>>>16)+(te>>>16)+((s=(65535&x)+(65535&y)+(65535&G)+(65535&r)+(65535&te)+((a=((C=d[e+3])>>>16)+(I>>>16)+(B>>>16)+(o>>>16)+(ne>>>16)+((i=(65535&C)+(65535&I)+(65535&B)+(65535&o)+(65535&ne))>>>16))>>>16))>>>16))<<16|65535&s,I=a<<16|65535&i,x=(l=(_>>>16)+(t>>>16)+((s=(65535&_)+(65535&t)+((a=(v>>>16)+(n>>>16)+((i=(65535&v)+(65535&n))>>>16))>>>16))>>>16))<<16|65535&s,C=a<<16|65535&i,te=(l=(H>>>16)+(y>>>16)+((s=(65535&H)+(65535&y)+((a=(J>>>16)+(I>>>16)+((i=(65535&J)+(65535&I))>>>16))>>>16))>>>16))<<16|65535&s,ne=a<<16|65535&i,t=((H=(l=(x>>>16)+(y>>>16)+((s=(65535&x)+(65535&y)+((a=(C>>>16)+(I>>>16)+((i=(65535&C)+(65535&I))>>>16))>>>16))>>>16))<<16|65535&s)>>>28|(J=a<<16|65535&i)<<4)^(J>>>2|H<<30)^(J>>>7|H<<25),n=(J>>>28|H<<4)^(H>>>2|J<<30)^(H>>>7|J<<25),r=(te>>>14|ne<<18)^(te>>>18|ne<<14)^(ne>>>9|te<<23),o=(ne>>>14|te<<18)^(ne>>>18|te<<14)^(te>>>9|ne<<23),_=(h=H&z)^H&Y^p,v=(m=J&P)^J&M^f,G=te&re^~te&K,B=ne&oe^~ne&q,y=O[e+4],I=O[e+5],y=(l=((x=d[e+4])>>>16)+(y>>>16)+(G>>>16)+(r>>>16)+($>>>16)+((s=(65535&x)+(65535&y)+(65535&G)+(65535&r)+(65535&$)+((a=((C=d[e+5])>>>16)+(I>>>16)+(B>>>16)+(o>>>16)+(ee>>>16)+((i=(65535&C)+(65535&I)+(65535&B)+(65535&o)+(65535&ee))>>>16))>>>16))>>>16))<<16|65535&s,I=a<<16|65535&i,x=(l=(_>>>16)+(t>>>16)+((s=(65535&_)+(65535&t)+((a=(v>>>16)+(n>>>16)+((i=(65535&v)+(65535&n))>>>16))>>>16))>>>16))<<16|65535&s,C=a<<16|65535&i,$=(l=(j>>>16)+(y>>>16)+((s=(65535&j)+(65535&y)+((a=(T>>>16)+(I>>>16)+((i=(65535&T)+(65535&I))>>>16))>>>16))>>>16))<<16|65535&s,ee=a<<16|65535&i,t=((j=(l=(x>>>16)+(y>>>16)+((s=(65535&x)+(65535&y)+((a=(C>>>16)+(I>>>16)+((i=(65535&C)+(65535&I))>>>16))>>>16))>>>16))<<16|65535&s)>>>28|(T=a<<16|65535&i)<<4)^(T>>>2|j<<30)^(T>>>7|j<<25),n=(T>>>28|j<<4)^(j>>>2|T<<30)^(j>>>7|T<<25),r=($>>>14|ee<<18)^($>>>18|ee<<14)^(ee>>>9|$<<23),o=(ee>>>14|$<<18)^(ee>>>18|$<<14)^($>>>9|ee<<23),_=(b=j&H)^j&z^h,v=(g=T&J)^T&P^m,G=$&te^~$&re,B=ee&ne^~ee&oe,y=O[e+6],I=O[e+7],y=(l=((x=d[e+6])>>>16)+(y>>>16)+(G>>>16)+(r>>>16)+(K>>>16)+((s=(65535&x)+(65535&y)+(65535&G)+(65535&r)+(65535&K)+((a=((C=d[e+7])>>>16)+(I>>>16)+(B>>>16)+(o>>>16)+(q>>>16)+((i=(65535&C)+(65535&I)+(65535&B)+(65535&o)+(65535&q))>>>16))>>>16))>>>16))<<16|65535&s,I=a<<16|65535&i,x=(l=(_>>>16)+(t>>>16)+((s=(65535&_)+(65535&t)+((a=(v>>>16)+(n>>>16)+((i=(65535&v)+(65535&n))>>>16))>>>16))>>>16))<<16|65535&s,C=a<<16|65535&i,K=(l=(Y>>>16)+(y>>>16)+((s=(65535&Y)+(65535&y)+((a=(M>>>16)+(I>>>16)+((i=(65535&M)+(65535&I))>>>16))>>>16))>>>16))<<16|65535&s,q=a<<16|65535&i,Y=(l=(x>>>16)+(y>>>16)+((s=(65535&x)+(65535&y)+((a=(C>>>16)+(I>>>16)+((i=(65535&C)+(65535&I))>>>16))>>>16))>>>16))<<16|65535&s,M=a<<16|65535&i;l=(w>>>16)+(Y>>>16)+((s=(65535&w)+(65535&Y)+((a=(A>>>16)+(M>>>16)+((i=(65535&A)+(65535&M))>>>16))>>>16))>>>16),this.h0h=l<<16|65535&s,this.h0l=a<<16|65535&i,l=(F>>>16)+(j>>>16)+((s=(65535&F)+(65535&j)+((a=(N>>>16)+(T>>>16)+((i=(65535&N)+(65535&T))>>>16))>>>16))>>>16),this.h1h=l<<16|65535&s,this.h1l=a<<16|65535&i,l=(X>>>16)+(H>>>16)+((s=(65535&X)+(65535&H)+((a=(Q>>>16)+(J>>>16)+((i=(65535&Q)+(65535&J))>>>16))>>>16))>>>16),this.h2h=l<<16|65535&s,this.h2l=a<<16|65535&i,l=(R>>>16)+(z>>>16)+((s=(65535&R)+(65535&z)+((a=(Z>>>16)+(P>>>16)+((i=(65535&Z)+(65535&P))>>>16))>>>16))>>>16),this.h3h=l<<16|65535&s,this.h3l=a<<16|65535&i,l=(k>>>16)+(K>>>16)+((s=(65535&k)+(65535&K)+((a=(W>>>16)+(q>>>16)+((i=(65535&W)+(65535&q))>>>16))>>>16))>>>16),this.h4h=l<<16|65535&s,this.h4l=a<<16|65535&i,l=(L>>>16)+($>>>16)+((s=(65535&L)+(65535&$)+((a=(E>>>16)+(ee>>>16)+((i=(65535&E)+(65535&ee))>>>16))>>>16))>>>16),this.h5h=l<<16|65535&s,this.h5l=a<<16|65535&i,l=(U>>>16)+(te>>>16)+((s=(65535&U)+(65535&te)+((a=(D>>>16)+(ne>>>16)+((i=(65535&D)+(65535&ne))>>>16))>>>16))>>>16),this.h6h=l<<16|65535&s,this.h6l=a<<16|65535&i,l=(V>>>16)+(re>>>16)+((s=(65535&V)+(65535&re)+((a=(S>>>16)+(oe>>>16)+((i=(65535&S)+(65535&oe))>>>16))>>>16))>>>16),this.h7h=l<<16|65535&s,this.h7l=a<<16|65535&i},I.prototype.hex=function(){this.finalize();var e=this.h0h,t=this.h0l,n=this.h1h,r=this.h1l,o=this.h2h,i=this.h2l,a=this.h3h,s=this.h3l,c=this.h4h,u=this.h4l,d=this.h5h,p=this.h5l,f=this.h6h,h=this.h6l,m=this.h7h,b=this.h7l,g=this.bits,_=l[e>>>28&15]+l[e>>>24&15]+l[e>>>20&15]+l[e>>>16&15]+l[e>>>12&15]+l[e>>>8&15]+l[e>>>4&15]+l[15&e]+l[t>>>28&15]+l[t>>>24&15]+l[t>>>20&15]+l[t>>>16&15]+l[t>>>12&15]+l[t>>>8&15]+l[t>>>4&15]+l[15&t]+l[n>>>28&15]+l[n>>>24&15]+l[n>>>20&15]+l[n>>>16&15]+l[n>>>12&15]+l[n>>>8&15]+l[n>>>4&15]+l[15&n]+l[r>>>28&15]+l[r>>>24&15]+l[r>>>20&15]+l[r>>>16&15]+l[r>>>12&15]+l[r>>>8&15]+l[r>>>4&15]+l[15&r]+l[o>>>28&15]+l[o>>>24&15]+l[o>>>20&15]+l[o>>>16&15]+l[o>>>12&15]+l[o>>>8&15]+l[o>>>4&15]+l[15&o]+l[i>>>28&15]+l[i>>>24&15]+l[i>>>20&15]+l[i>>>16&15]+l[i>>>12&15]+l[i>>>8&15]+l[i>>>4&15]+l[15&i]+l[a>>>28&15]+l[a>>>24&15]+l[a>>>20&15]+l[a>>>16&15]+l[a>>>12&15]+l[a>>>8&15]+l[a>>>4&15]+l[15&a];return g>=256&&(_+=l[s>>>28&15]+l[s>>>24&15]+l[s>>>20&15]+l[s>>>16&15]+l[s>>>12&15]+l[s>>>8&15]+l[s>>>4&15]+l[15&s]),g>=384&&(_+=l[c>>>28&15]+l[c>>>24&15]+l[c>>>20&15]+l[c>>>16&15]+l[c>>>12&15]+l[c>>>8&15]+l[c>>>4&15]+l[15&c]+l[u>>>28&15]+l[u>>>24&15]+l[u>>>20&15]+l[u>>>16&15]+l[u>>>12&15]+l[u>>>8&15]+l[u>>>4&15]+l[15&u]+l[d>>>28&15]+l[d>>>24&15]+l[d>>>20&15]+l[d>>>16&15]+l[d>>>12&15]+l[d>>>8&15]+l[d>>>4&15]+l[15&d]+l[p>>>28&15]+l[p>>>24&15]+l[p>>>20&15]+l[p>>>16&15]+l[p>>>12&15]+l[p>>>8&15]+l[p>>>4&15]+l[15&p]),512==g&&(_+=l[f>>>28&15]+l[f>>>24&15]+l[f>>>20&15]+l[f>>>16&15]+l[f>>>12&15]+l[f>>>8&15]+l[f>>>4&15]+l[15&f]+l[h>>>28&15]+l[h>>>24&15]+l[h>>>20&15]+l[h>>>16&15]+l[h>>>12&15]+l[h>>>8&15]+l[h>>>4&15]+l[15&h]+l[m>>>28&15]+l[m>>>24&15]+l[m>>>20&15]+l[m>>>16&15]+l[m>>>12&15]+l[m>>>8&15]+l[m>>>4&15]+l[15&m]+l[b>>>28&15]+l[b>>>24&15]+l[b>>>20&15]+l[b>>>16&15]+l[b>>>12&15]+l[b>>>8&15]+l[b>>>4&15]+l[15&b]),_},I.prototype.toString=I.prototype.hex,I.prototype.digest=function(){this.finalize();var e=this.h0h,t=this.h0l,n=this.h1h,r=this.h1l,o=this.h2h,i=this.h2l,a=this.h3h,s=this.h3l,l=this.h4h,c=this.h4l,u=this.h5h,d=this.h5l,p=this.h6h,f=this.h6l,h=this.h7h,m=this.h7l,b=this.bits,g=[e>>>24&255,e>>>16&255,e>>>8&255,255&e,t>>>24&255,t>>>16&255,t>>>8&255,255&t,n>>>24&255,n>>>16&255,n>>>8&255,255&n,r>>>24&255,r>>>16&255,r>>>8&255,255&r,o>>>24&255,o>>>16&255,o>>>8&255,255&o,i>>>24&255,i>>>16&255,i>>>8&255,255&i,a>>>24&255,a>>>16&255,a>>>8&255,255&a];return b>=256&&g.push(s>>>24&255,s>>>16&255,s>>>8&255,255&s),b>=384&&g.push(l>>>24&255,l>>>16&255,l>>>8&255,255&l,c>>>24&255,c>>>16&255,c>>>8&255,255&c,u>>>24&255,u>>>16&255,u>>>8&255,255&u,d>>>24&255,d>>>16&255,d>>>8&255,255&d),512==b&&g.push(p>>>24&255,p>>>16&255,p>>>8&255,255&p,f>>>24&255,f>>>16&255,f>>>8&255,255&f,h>>>24&255,h>>>16&255,h>>>8&255,255&h,m>>>24&255,m>>>16&255,m>>>8&255,255&m),g},I.prototype.array=I.prototype.digest,I.prototype.arrayBuffer=function(){this.finalize();var e=this.bits,t=new ArrayBuffer(e/8),n=new DataView(t);return n.setUint32(0,this.h0h),n.setUint32(4,this.h0l),n.setUint32(8,this.h1h),n.setUint32(12,this.h1l),n.setUint32(16,this.h2h),n.setUint32(20,this.h2l),n.setUint32(24,this.h3h),e>=256&&n.setUint32(28,this.h3l),e>=384&&(n.setUint32(32,this.h4h),n.setUint32(36,this.h4l),n.setUint32(40,this.h5h),n.setUint32(44,this.h5l)),512==e&&(n.setUint32(48,this.h6h),n.setUint32(52,this.h6l),n.setUint32(56,this.h7h),n.setUint32(60,this.h7l)),t},I.prototype.clone=function(){var e=new I(this.bits,!1);return this.copyTo(e),e},I.prototype.copyTo=function(e){var t=0,n=["h0h","h0l","h1h","h1l","h2h","h2l","h3h","h3l","h4h","h4l","h5h","h5l","h6h","h6l","h7h","h7l","start","bytes","hBytes","finalized","hashed","lastByteIndex"];for(t=0;t<n.length;++t)e[n[t]]=this[n[t]];for(t=0;t<this.blocks.length;++t)e.blocks[t]=this.blocks[t]},x.prototype=new I,x.prototype.finalize=function(){if(I.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();I.call(this,this.bits,this.sharedMemory),this.update(this.oKeyPad),this.update(e),I.prototype.finalize.call(this)}},x.prototype.clone=function(){var e=new x([],this.bits,!1);this.copyTo(e),e.inner=this.inner;for(var t=0;t<this.oKeyPad.length;++t)e.oKeyPad[t]=this.oKeyPad[t];return e};var C=_(512);C.sha512=C,C.sha384=_(384),C.sha512_256=_(256),C.sha512_224=_(224),C.sha512.hmac=y(512),C.sha384.hmac=y(384),C.sha512_256.hmac=y(256),C.sha512_224.hmac=y(224),a?e.exports=C:(r.sha512=C.sha512,r.sha384=C.sha384,r.sha512_256=C.sha512_256,r.sha512_224=C.sha512_224)}()}(ja)),ja.exports).sha512_256,n=function(){if(ya)return va;ya=1,o.Buffer||(o.Buffer=fa().Buffer),i.sigma=[[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15],[14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3],[11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4],[7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8],[9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13],[2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9],[12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11],[13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10],[6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5],[10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0],[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15],[14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3],[11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4],[7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8],[9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13],[2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9]],i.u256=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479],i.padding=ma.Buffer.from([128,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),i.prototype._length_carry=function(e){for(var t=0;t<e.length&&!(e[t]<4294967296);++t)e[t]-=4294967296,e[t+1]+=1},i.prototype.update=function(e,t){e=ma.Buffer.from(e,t);for(var n=this._block,r=0;this._blockOffset+e.length-r>=n.length;){for(var o=this._blockOffset;o<n.length;)n[o++]=e[r++];this._length[0]+=8*n.length,this._length_carry(this._length),this._compress(),this._blockOffset=0}for(;r<e.length;)n[this._blockOffset++]=e[r++];return this};var e=ma.Buffer.from([1]),t=ma.Buffer.from([129]);function n(e,t){return(e<<32-t|e>>>t)>>>0}function r(e,t,r,o,a,s,l,c){var u=i.sigma,d=i.u256;e[o]=e[o]+((t[u[r][c]]^d[u[r][c+1]])>>>0)+e[a]>>>0,e[l]=n(e[l]^e[o],16),e[s]=e[s]+e[l]>>>0,e[a]=n(e[a]^e[s],12),e[o]=e[o]+((t[u[r][c+1]]^d[u[r][c]])>>>0)+e[a]>>>0,e[l]=n(e[l]^e[o],8),e[s]=e[s]+e[l]>>>0,e[a]=n(e[a]^e[s],7)}function i(){this._h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this._s=[0,0,0,0],this._block=ma.Buffer.allocUnsafe(64),this._blockOffset=0,this._length=[0,0],this._nullt=!1,this._zo=e,this._oo=t}return i.prototype._compress=function(){var e,t=i.u256,n=new Array(16),o=new Array(16);for(e=0;e<16;++e)o[e]=this._block.readUInt32BE(4*e);for(e=0;e<8;++e)n[e]=this._h[e]>>>0;for(e=8;e<12;++e)n[e]=(this._s[e-8]^t[e-8])>>>0;for(e=12;e<16;++e)n[e]=t[e-8];for(this._nullt||(n[12]=(n[12]^this._length[0])>>>0,n[13]=(n[13]^this._length[0])>>>0,n[14]=(n[14]^this._length[1])>>>0,n[15]=(n[15]^this._length[1])>>>0),e=0;e<14;++e)r(n,o,e,0,4,8,12,0),r(n,o,e,1,5,9,13,2),r(n,o,e,2,6,10,14,4),r(n,o,e,3,7,11,15,6),r(n,o,e,0,5,10,15,8),r(n,o,e,1,6,11,12,10),r(n,o,e,2,7,8,13,12),r(n,o,e,3,4,9,14,14);for(e=0;e<16;++e)this._h[e%8]=(this._h[e%8]^n[e])>>>0;for(e=0;e<8;++e)this._h[e]=(this._h[e]^this._s[e%4])>>>0},i.prototype._padding=function(){var e=this._length[0]+8*this._blockOffset,t=this._length[1];e>=4294967296&&(e-=4294967296,t+=1);var n=ma.Buffer.allocUnsafe(8);n.writeUInt32BE(t,0),n.writeUInt32BE(e,4),55===this._blockOffset?(this._length[0]-=8,this.update(this._oo)):(this._blockOffset<55?(0===this._blockOffset&&(this._nullt=!0),this._length[0]-=8*(55-this._blockOffset),this.update(i.padding.slice(0,55-this._blockOffset))):(this._length[0]-=8*(64-this._blockOffset),this.update(i.padding.slice(0,64-this._blockOffset)),this._length[0]-=440,this.update(i.padding.slice(1,56)),this._nullt=!0),this.update(this._zo),this._length[0]-=8),this._length[0]-=64,this.update(n)},i.prototype.digest=function(e){this._padding();for(var t=ma.Buffer.allocUnsafe(32),n=0;n<8;++n)t.writeUInt32BE(this._h[n],4*n);return t.toString(e)},va=i}
39
39
  /**
40
40
  * [js-sha3]{@link https://github.com/emn178/js-sha3}
41
41
  *
@@ -43,5 +43,5 @@
43
43
  * @author Chen, Yi-Cyuan [emn178@gmail.com]
44
44
  * @copyright Chen, Yi-Cyuan 2015-2017
45
45
  * @license MIT
46
- */(),r=function(){if(xs)return Is;xs=1;var e="input is invalid type",t="object"==typeof window,n=t?window:{};n.JS_SHA3_NO_WINDOW&&(t=!1);var r=!t&&"object"==typeof self;!n.JS_SHA3_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node?n=o:r&&(n=self);var i=!n.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,s="0123456789abcdef".split(""),a=[4,1024,262144,67108864],l=[0,8,16,24],c=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],u=[224,256,384,512],d=[128,256],f=["hex","buffer","arrayBuffer","array","digest"],p={128:168,256:136};!n.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!i||!n.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});for(var h=function(e,t,n){return function(r){return new F(e,t,e).update(r)[n]()}},m=function(e,t,n){return function(r,o){return new F(e,t,o).update(r)[n]()}},b=function(e,t,n){return function(t,r,o,i){return I["cshake"+e].update(t,r,o,i)[n]()}},g=function(e,t,n){return function(t,r,o,i){return I["kmac"+e].update(t,r,o,i)[n]()}},v=function(e,t,n,r){for(var o=0;o<f.length;++o){var i=f[o];e[i]=t(n,r,i)}return e},_=function(e,t){var n=h(e,t,"hex");return n.create=function(){return new F(e,t,e)},n.update=function(e){return n.create().update(e)},v(n,h,e,t)},y=[{name:"keccak",padding:[1,256,65536,16777216],bits:u,createMethod:_},{name:"sha3",padding:[6,1536,393216,100663296],bits:u,createMethod:_},{name:"shake",padding:[31,7936,2031616,520093696],bits:d,createMethod:function(e,t){var n=m(e,t,"hex");return n.create=function(n){return new F(e,t,n)},n.update=function(e,t){return n.create(t).update(e)},v(n,m,e,t)}},{name:"cshake",padding:a,bits:d,createMethod:function(e,t){var n=p[e],r=b(e,0,"hex");return r.create=function(r,o,i){return o||i?new F(e,t,r).bytepad([o,i],n):I["shake"+e].create(r)},r.update=function(e,t,n,o){return r.create(t,n,o).update(e)},v(r,b,e,t)}},{name:"kmac",padding:a,bits:d,createMethod:function(e,t){var n=p[e],r=g(e,0,"hex");return r.create=function(r,o,i){return new N(e,t,o).bytepad(["KMAC",i],n).bytepad([r],n)},r.update=function(e,t,n,o){return r.create(e,n,o).update(t)},v(r,g,e,t)}}],I={},x=0;x<y.length;++x)for(var C=y[x],w=C.bits,G=0;G<w.length;++G){var B=C.name+"_"+w[G];if(I[B]=C.createMethod(w[G],C.padding),"sha3"!==C.name){var A=C.name+w[G];I[A]=I[B]}}function F(e,t,n){this.blocks=[],this.s=[],this.padding=t,this.outputBits=n,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(e<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=n>>5,this.extraBytes=(31&n)>>3;for(var r=0;r<50;++r)this.s[r]=0}function N(e,t,n){F.call(this,e,t,n)}F.prototype.update=function(t){if(!this.finalized){var n,r=typeof t;if("string"!==r){if("object"!==r)throw e;if(null===t)throw e;if(i&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||i&&ArrayBuffer.isView(t)))throw e;n=!0}for(var o,s,a=this.blocks,c=this.byteCount,u=t.length,d=this.blockCount,f=0,p=this.s;f<u;){if(this.reset)for(this.reset=!1,a[0]=this.block,o=1;o<d+1;++o)a[o]=0;if(n)for(o=this.start;f<u&&o<c;++f)a[o>>2]|=t[f]<<l[3&o++];else for(o=this.start;f<u&&o<c;++f)(s=t.charCodeAt(f))<128?a[o>>2]|=s<<l[3&o++]:s<2048?(a[o>>2]|=(192|s>>6)<<l[3&o++],a[o>>2]|=(128|63&s)<<l[3&o++]):s<55296||s>=57344?(a[o>>2]|=(224|s>>12)<<l[3&o++],a[o>>2]|=(128|s>>6&63)<<l[3&o++],a[o>>2]|=(128|63&s)<<l[3&o++]):(s=65536+((1023&s)<<10|1023&t.charCodeAt(++f)),a[o>>2]|=(240|s>>18)<<l[3&o++],a[o>>2]|=(128|s>>12&63)<<l[3&o++],a[o>>2]|=(128|s>>6&63)<<l[3&o++],a[o>>2]|=(128|63&s)<<l[3&o++]);if(this.lastByteIndex=o,o>=c){for(this.start=o-c,this.block=a[d],o=0;o<d;++o)p[o]^=a[o];X(p),this.reset=!0}else this.start=o}return this}},F.prototype.encode=function(e,t){var n=255&e,r=1,o=[n];for(n=255&(e>>=8);n>0;)o.unshift(n),n=255&(e>>=8),++r;return t?o.push(r):o.unshift(r),this.update(o),o.length},F.prototype.encodeString=function(t){var n,r=typeof t;if("string"!==r){if("object"!==r)throw e;if(null===t)throw e;if(i&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||i&&ArrayBuffer.isView(t)))throw e;n=!0}var o=0,s=t.length;if(n)o=s;else for(var a=0;a<t.length;++a){var l=t.charCodeAt(a);l<128?o+=1:l<2048?o+=2:l<55296||l>=57344?o+=3:(l=65536+((1023&l)<<10|1023&t.charCodeAt(++a)),o+=4)}return o+=this.encode(8*o),this.update(t),o},F.prototype.bytepad=function(e,t){for(var n=this.encode(t),r=0;r<e.length;++r)n+=this.encodeString(e[r]);var o=t-n%t,i=[];return i.length=o,this.update(i),this},F.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex,n=this.blockCount,r=this.s;if(e[t>>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[n],t=1;t<n+1;++t)e[t]=0;for(e[n-1]|=2147483648,t=0;t<n;++t)r[t]^=e[t];X(r)}},F.prototype.toString=F.prototype.hex=function(){this.finalize();for(var e,t=this.blockCount,n=this.s,r=this.outputBlocks,o=this.extraBytes,i=0,a=0,l="";a<r;){for(i=0;i<t&&a<r;++i,++a)e=n[i],l+=s[e>>4&15]+s[15&e]+s[e>>12&15]+s[e>>8&15]+s[e>>20&15]+s[e>>16&15]+s[e>>28&15]+s[e>>24&15];a%t===0&&(X(n),i=0)}return o&&(e=n[i],l+=s[e>>4&15]+s[15&e],o>1&&(l+=s[e>>12&15]+s[e>>8&15]),o>2&&(l+=s[e>>20&15]+s[e>>16&15])),l},F.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,n=this.s,r=this.outputBlocks,o=this.extraBytes,i=0,s=0,a=this.outputBits>>3;e=o?new ArrayBuffer(r+1<<2):new ArrayBuffer(a);for(var l=new Uint32Array(e);s<r;){for(i=0;i<t&&s<r;++i,++s)l[s]=n[i];s%t===0&&X(n)}return o&&(l[i]=n[i],e=e.slice(0,a)),e},F.prototype.buffer=F.prototype.arrayBuffer,F.prototype.digest=F.prototype.array=function(){this.finalize();for(var e,t,n=this.blockCount,r=this.s,o=this.outputBlocks,i=this.extraBytes,s=0,a=0,l=[];a<o;){for(s=0;s<n&&a<o;++s,++a)e=a<<2,t=r[s],l[e]=255&t,l[e+1]=t>>8&255,l[e+2]=t>>16&255,l[e+3]=t>>24&255;a%n===0&&X(r)}return i&&(e=a<<2,t=r[s],l[e]=255&t,i>1&&(l[e+1]=t>>8&255),i>2&&(l[e+2]=t>>16&255)),l},N.prototype=new F,N.prototype.finalize=function(){return this.encode(this.outputBits,!0),F.prototype.finalize.call(this)};var X=function(e){var t,n,r,o,i,s,a,l,u,d,f,p,h,m,b,g,v,_,y,I,x,C,w,G,B,A,F,N,X,R,Z,Q,k,L,W,E,V,U,D,S,O,M,Y,j,T,H,J,z,P,K,q,$,ee,te,ne,re,oe,ie,se,ae,le,ce,ue;for(r=0;r<48;r+=2)o=e[0]^e[10]^e[20]^e[30]^e[40],i=e[1]^e[11]^e[21]^e[31]^e[41],s=e[2]^e[12]^e[22]^e[32]^e[42],a=e[3]^e[13]^e[23]^e[33]^e[43],l=e[4]^e[14]^e[24]^e[34]^e[44],u=e[5]^e[15]^e[25]^e[35]^e[45],d=e[6]^e[16]^e[26]^e[36]^e[46],f=e[7]^e[17]^e[27]^e[37]^e[47],t=(p=e[8]^e[18]^e[28]^e[38]^e[48])^(s<<1|a>>>31),n=(h=e[9]^e[19]^e[29]^e[39]^e[49])^(a<<1|s>>>31),e[0]^=t,e[1]^=n,e[10]^=t,e[11]^=n,e[20]^=t,e[21]^=n,e[30]^=t,e[31]^=n,e[40]^=t,e[41]^=n,t=o^(l<<1|u>>>31),n=i^(u<<1|l>>>31),e[2]^=t,e[3]^=n,e[12]^=t,e[13]^=n,e[22]^=t,e[23]^=n,e[32]^=t,e[33]^=n,e[42]^=t,e[43]^=n,t=s^(d<<1|f>>>31),n=a^(f<<1|d>>>31),e[4]^=t,e[5]^=n,e[14]^=t,e[15]^=n,e[24]^=t,e[25]^=n,e[34]^=t,e[35]^=n,e[44]^=t,e[45]^=n,t=l^(p<<1|h>>>31),n=u^(h<<1|p>>>31),e[6]^=t,e[7]^=n,e[16]^=t,e[17]^=n,e[26]^=t,e[27]^=n,e[36]^=t,e[37]^=n,e[46]^=t,e[47]^=n,t=d^(o<<1|i>>>31),n=f^(i<<1|o>>>31),e[8]^=t,e[9]^=n,e[18]^=t,e[19]^=n,e[28]^=t,e[29]^=n,e[38]^=t,e[39]^=n,e[48]^=t,e[49]^=n,m=e[0],b=e[1],H=e[11]<<4|e[10]>>>28,J=e[10]<<4|e[11]>>>28,N=e[20]<<3|e[21]>>>29,X=e[21]<<3|e[20]>>>29,ae=e[31]<<9|e[30]>>>23,le=e[30]<<9|e[31]>>>23,M=e[40]<<18|e[41]>>>14,Y=e[41]<<18|e[40]>>>14,L=e[2]<<1|e[3]>>>31,W=e[3]<<1|e[2]>>>31,g=e[13]<<12|e[12]>>>20,v=e[12]<<12|e[13]>>>20,z=e[22]<<10|e[23]>>>22,P=e[23]<<10|e[22]>>>22,R=e[33]<<13|e[32]>>>19,Z=e[32]<<13|e[33]>>>19,ce=e[42]<<2|e[43]>>>30,ue=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,ne=e[4]<<30|e[5]>>>2,E=e[14]<<6|e[15]>>>26,V=e[15]<<6|e[14]>>>26,_=e[25]<<11|e[24]>>>21,y=e[24]<<11|e[25]>>>21,K=e[34]<<15|e[35]>>>17,q=e[35]<<15|e[34]>>>17,Q=e[45]<<29|e[44]>>>3,k=e[44]<<29|e[45]>>>3,G=e[6]<<28|e[7]>>>4,B=e[7]<<28|e[6]>>>4,re=e[17]<<23|e[16]>>>9,oe=e[16]<<23|e[17]>>>9,U=e[26]<<25|e[27]>>>7,D=e[27]<<25|e[26]>>>7,I=e[36]<<21|e[37]>>>11,x=e[37]<<21|e[36]>>>11,$=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,j=e[8]<<27|e[9]>>>5,T=e[9]<<27|e[8]>>>5,A=e[18]<<20|e[19]>>>12,F=e[19]<<20|e[18]>>>12,ie=e[29]<<7|e[28]>>>25,se=e[28]<<7|e[29]>>>25,S=e[38]<<8|e[39]>>>24,O=e[39]<<8|e[38]>>>24,C=e[48]<<14|e[49]>>>18,w=e[49]<<14|e[48]>>>18,e[0]=m^~g&_,e[1]=b^~v&y,e[10]=G^~A&N,e[11]=B^~F&X,e[20]=L^~E&U,e[21]=W^~V&D,e[30]=j^~H&z,e[31]=T^~J&P,e[40]=te^~re&ie,e[41]=ne^~oe&se,e[2]=g^~_&I,e[3]=v^~y&x,e[12]=A^~N&R,e[13]=F^~X&Z,e[22]=E^~U&S,e[23]=V^~D&O,e[32]=H^~z&K,e[33]=J^~P&q,e[42]=re^~ie&ae,e[43]=oe^~se&le,e[4]=_^~I&C,e[5]=y^~x&w,e[14]=N^~R&Q,e[15]=X^~Z&k,e[24]=U^~S&M,e[25]=D^~O&Y,e[34]=z^~K&$,e[35]=P^~q&ee,e[44]=ie^~ae&ce,e[45]=se^~le&ue,e[6]=I^~C&m,e[7]=x^~w&b,e[16]=R^~Q&G,e[17]=Z^~k&B,e[26]=S^~M&L,e[27]=O^~Y&W,e[36]=K^~$&j,e[37]=q^~ee&T,e[46]=ae^~ce&te,e[47]=le^~ue&ne,e[8]=C^~m&g,e[9]=w^~b&v,e[18]=Q^~G&A,e[19]=k^~B&F,e[28]=M^~L&E,e[29]=Y^~W&V,e[38]=$^~j&H,e[39]=ee^~T&J,e[48]=ce^~te&re,e[49]=ue^~ne&oe,e[0]^=c[r],e[1]^=c[r+1]};return Is=I}().keccak256,i=Ts(),s=Hs(),a=Js(),l=function(){if(Xs)return Ns;Xs=1;var e,t=1e9,n=20,r=4,o=-7,i=21,s=-1e9,a=t,l=!0,c=parseInt,u=b.prototype,d="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_",f=0,p=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,h=String.prototype.trim||function(){return this.replace(/^\s+|\s+$/g,"")},m=b(1);function b(t,o){var i,c,u,m,_,y,I=this;if(!(I instanceof b))return new b(t,o);if(t instanceof b){if(f=0,o===i)return I.s=t.s,I.e=t.e,void(I.c=(t=t.c)?t.slice():t);t+=""}if("string"!=typeof t&&(t=(u="number"==typeof t||"[object Number]"==Object.prototype.toString.call(t))&&0===t&&1/t<0?"-0":t+""),y=t,o===i&&p.test(t))I.s="-"==t.charAt(0)?(t=t.slice(1),-1):1;else{if(10==o)return x(t,n,r);if(t=h.call(t).replace(/^\+(?!-)/,""),I.s="-"==t.charAt(0)?(t=t.replace(/^-(?!-)/,""),-1):1,null!=o?o!=(0|o)&&l||(e=!(o>=2&&o<65))?(g(o,2),_=p.test(t)):(m="["+d.slice(0,o|=0)+"]+",t=t.replace(/\.$/,"").replace(/^\./,"0."),(_=new RegExp("^"+m+"(?:\\."+m+")?$",o<37?"i":"").test(t))?(u&&(t.replace(/^0\.0*|\./,"").length>15&&g(y,0),u=!u),t=v(t,10,o,I.s)):"Infinity"!=t&&"NaN"!=t&&(g(y,1,o),t="NaN")):_=p.test(t),!_)return I.c=I.e=null,"Infinity"!=t&&("NaN"!=t&&g(y,3),I.s=null),void(f=0)}for((i=t.indexOf("."))>-1&&(t=t.replace(".","")),(c=t.search(/e/i))>0?(i<0&&(i=c),i+=+t.slice(c+1),t=t.substring(0,c)):i<0&&(i=t.length),c=0;"0"==t.charAt(c);c++);if(o=t.length,u&&o>15&&t.slice(c).length>15&&g(y,0),f=0,(i-=c+1)>a)I.c=I.e=null;else if(c==o||i<s)I.c=[I.e=0];else{for(;"0"==t.charAt(--o););for(I.e=i,I.c=[],i=0;c<=o;I.c[i++]=+t.charAt(c++));}}function g(t,n,r,o,i,s){if(l){var a,c=["new BigNumber","cmp","div","eq","gt","gte","lt","lte","minus","mod","plus","times","toFr"][f?f<0?-f:f:1/f<0?1:0]+"()",u=e?" out of range":" not a"+(i?" non-zero":"n")+" integer";throw u=([c+" number type has more than 15 significant digits",c+" not a base "+r+" number",c+" base"+u,c+" not a number"][n]||r+"() "+n+(s?" not a boolean or binary digit":u+(o?" or not ["+(e?" negative, positive":" integer, integer")+" ]":"")))+": "+t,e=f=0,(a=new Error(u)).name="BigNumber Error",a}}function v(e,t,n,r){var o,i,s,a,l,c;function u(e,r){var o,i,s=0,a=e.length,l=[0];for(r=r||n;s<a;s++){for(i=l.length,o=0;o<i;l[o]*=r,o++);for(l[0]+=d.indexOf(e.charAt(s)),o=0;o<l.length;o++)l[o]>t-1&&(null==l[o+1]&&(l[o+1]=0),l[o+1]+=l[o]/t^0,l[o]%=t)}return l.reverse()}function f(e){for(var t=0,n=e.length,r="";t<n;r+=d.charAt(e[t++]));return r}if(n<37&&(e=e.toLowerCase()),(o=e.indexOf("."))>-1)if(o=e.length-o-1,i=u(new b(n).pow(o).toF(),10),s=u((a=e.split("."))[1]),a=u(a[0]),l=(c=_(s,i,s.length-i.length,r,t,1&a[a.length-1])).c,o=c.e){for(;++o;l.unshift(0));e=f(a)+"."+f(l)}else l[0]?a[o=a.length-1]<t-1?(++a[o],e=f(a)):e=new b(f(a),t).plus(m).toS(t):e=f(a);else e=f(u(e));return e}function _(e,t,r,o,i,l){var c,u,d,f,p,h=t.slice(),g=c=t.length,v=e.length,_=e.slice(0,c),y=_.length,x=new b(m),C=x.c=[],w=0,G=n+(x.e=r)+1;for(x.s=o,o=G<0?0:G;y++<c;_.push(0));h.unshift(0);do{for(d=0;d<i;d++){if(c!=(y=_.length))f=c>y?1:-1;else for(p=-1,f=0;++p<c;)if(t[p]!=_[p]){f=t[p]>_[p]?1:-1;break}if(!(f<0))break;for(u=y==c?t:h;y;){if(_[--y]<u[y]){for(p=y;p&&!_[--p];_[p]=i-1);--_[p],_[y]+=i}_[y]-=u[y]}for(;!_[0];_.shift());}C[w++]=f?d:++d,_[0]&&f?_[y]=e[g]||0:_=[e[g]]}while((g++<v||null!=_[0])&&o--);return C[0]||1==w||(--x.e,C.shift()),w>G&&I(x,n,i,l,null!=_[0]),x.e>a?x.c=x.e=null:x.e<s&&(x.c=[x.e=0]),x}function y(e,t,n){var r=t-(e=new b(e)).e,i=e.c;if(!i)return e.toS();for(i.length>++t&&I(e,r,10),r=0==i[0]?r+1:n?t:e.e+r+1;i.length<r;i.push(0));return r=e.e,1==n||2==n&&(--t<r||r<=o)?(e.s<0&&i[0]?"-":"")+(i.length>1?(i.splice(1,0,"."),i.join("")):i[0])+(r<0?"e":"e+")+r:e.toS()}function I(e,t,n,o,i){var s=e.c,a=e.s<0,l=n/2,c=e.e+t+1,u=s[c],d=i||c<0||null!=s[c+1];if(i=r<4?(null!=u||d)&&(0==r||2==r&&!a||3==r&&a):u>l||u==l&&(4==r||d||6==r&&(1&s[c-1]||!t&&o)||7==r&&!a||8==r&&a),c<1||!s[0])return s.length=0,s.push(0),i?(s[0]=1,e.e=-t):e.e=0,e;if(s.length=c--,i)for(--n;++s[c]>n;)s[c]=0,c--||(++e.e,s.unshift(1));for(c=s.length;!s[--c];s.pop());return e}function x(e,t,n){var o=r;return r=n,(e=new b(e)).c&&I(e,t,10),r=o,e}return b.ROUND_UP=0,b.ROUND_DOWN=1,b.ROUND_CEIL=2,b.ROUND_FLOOR=3,b.ROUND_HALF_UP=4,b.ROUND_HALF_DOWN=5,b.ROUND_HALF_EVEN=6,b.ROUND_HALF_CEIL=7,b.ROUND_HALF_FLOOR=8,b.fromBuffer=function(e,t){t||(t={});var n={1:"big","-1":"little"}[t.endian]||t.endian||"big",r="auto"===t.size?Math.ceil(e.length):t.size||1;if(e.length%r!==0)throw new RangeError("Buffer length ("+e.length+") must be a multiple of size ("+r+")");for(var o=[],i=0;i<e.length;i+=r){for(var s=[],a=0;a<r;a++)s.push(e[i+("big"===n?a:r-a-1)]);o.push(s.map((function(e){return(e<16?"0":"")+e.toString(16)})).join(""))}return b(o.join(""),16)},b.config=function(){var u,d,p=0,h={},m=arguments,b=m[0],v="config",_=function(t,n,r){return!((e=t<n||t>r)||c(t)!=t&&0!==t)},y=b&&"object"==typeof b?function(){if(b.hasOwnProperty(d))return null!=(u=b[d])}:function(){if(m.length>p)return null!=(u=m[p++])};return y(d="DECIMAL_PLACES")&&(_(u,0,t)?n=0|u:g(u,d,v)),h[d]=n,y(d="ROUNDING_MODE")&&(_(u,0,8)?r=0|u:g(u,d,v)),h[d]=r,y(d="EXPONENTIAL_AT")&&(_(u,-1e9,t)?o=-(i=~~(u<0?-u:+u)):!e&&u&&_(u[0],-1e9,0)&&_(u[1],0,t)?(o=~~u[0],i=~~u[1]):g(u,d,v,1)),h[d]=[o,i],y(d="RANGE")&&(_(u,-1e9,t)&&~~u?s=-(a=~~(u<0?-u:+u)):!e&&u&&_(u[0],-1e9,-1)&&_(u[1],1,t)?(s=~~u[0],a=~~u[1]):g(u,d,v,1,1)),h[d]=[s,a],y(d="ERRORS")&&(u===!!u||1===u||0===u?(e=f=0,c=(l=!!u)?parseInt:parseFloat):g(u,d,v,0,0,1)),h[d]=l,h},u.abs=u.absoluteValue=function(){var e=new b(this);return e.s<0&&(e.s=1),e},u.bitLength=function(){return this.toString(2).length},u.ceil=function(){return x(this,0,2)},u.comparedTo=u.cmp=function(e,t){var n,r=this,o=r.c,i=(f=-f,e=new b(e,t)).c,s=r.s,a=e.s,l=r.e,c=e.e;if(!s||!a)return null;if(n=o&&!o[0],t=i&&!i[0],n||t)return n?t?0:-a:s;if(s!=a)return s;if(n=s<0,t=l==c,!o||!i)return t?0:!o^n?1:-1;if(!t)return l>c^n?1:-1;for(s=-1,a=(l=o.length)<(c=i.length)?l:c;++s<a;)if(o[s]!=i[s])return o[s]>i[s]^n?1:-1;return l==c?0:l>c^n?1:-1},u.dividedBy=u.div=function(e,t){var n=this.c,r=this.e,o=this.s,i=(f=2,e=new b(e,t)).c,s=e.e,a=e.s,l=o==a?1:-1;return(r||n&&n[0])&&(s||i&&i[0])?_(n,i,r-s,l,10):new b(o&&a&&(n?!i||n[0]!=i[0]:i)?n&&0==n[0]||!i?0*l:l/0:NaN)},u.equals=u.eq=function(e,t){return f=3,0===this.cmp(e,t)},u.floor=function(){return x(this,0,3)},u.greaterThan=u.gt=function(e,t){return f=4,this.cmp(e,t)>0},u.greaterThanOrEqualTo=u.gte=u.gt=function(e,t){return f=5,1==(t=this.cmp(e,t))||0===t},u.isFinite=u.isF=function(){return!!this.c},u.isNaN=function(){return!this.s},u.isNegative=u.isNeg=function(){return this.s<0},u.isZero=u.isZ=function(){return!!this.c&&0==this.c[0]},u.lessThan=u.lt=function(e,t){return f=6,this.cmp(e,t)<0},u.lessThanOrEqualTo=u.lte=u.le=function(e,t){return f=7,-1==(t=this.cmp(e,t))||0===t},u.minus=u.sub=function(e,t){var n,o,i,a,l=this,c=l.s;if(t=(f=8,e=new b(e,t)).s,!c||!t)return new b(NaN);if(c!=t)return e.s=-t,l.plus(e);var u=l.c,d=l.e,p=e.c,h=e.e;if(!d||!h){if(!u||!p)return u?(e.s=-t,e):new b(p?l:NaN);if(!u[0]||!p[0])return p[0]?(e.s=-t,e):new b(u[0]?l:3==r?-0:0)}if(u=u.slice(),c=d-h){for((n=(a=c<0)?(c=-c,u):(h=d,p)).reverse(),t=c;t--;n.push(0));n.reverse()}else for(i=((a=u.length<p.length)?u:p).length,c=t=0;t<i;t++)if(u[t]!=p[t]){a=u[t]<p[t];break}if(a&&(n=u,u=p,p=n,e.s=-e.s),(t=-((i=u.length)-p.length))>0)for(;t--;u[i++]=0);for(t=p.length;t>c;){if(u[--t]<p[t]){for(o=t;o&&!u[--o];u[o]=9);--u[o],u[t]+=10}u[t]-=p[t]}for(;0==u[--i];u.pop());for(;0==u[0];u.shift(),--h);return(h<s||!u[0])&&(u[0]||(e.s=3==r?-1:1),u=[h=0]),e.c=u,e.e=h,e},u.modulo=u.mod=function(e,t){var o=this,i=o.c,s=(f=9,e=new b(e,t)).c,a=o.s,l=e.s;return(t=!a||!l||s&&!s[0])||i&&!i[0]?new b(t?NaN:o):(o.s=e.s=1,t=1==e.cmp(o),o.s=a,e.s=l,t?new b(o):(a=n,l=r,n=0,r=1,o=o.div(e),n=a,r=l,this.minus(o.times(e))))},u.negated=u.neg=function(){var e=new b(this);return e.s=-e.s||null,e},u.plus=u.add=function(e,t){var n,r=this,o=r.s;if(t=(f=10,e=new b(e,t)).s,!o||!t)return new b(NaN);if(o!=t)return e.s=-t,r.minus(e);var i=r.e,s=r.c,l=e.e,c=e.c;if(!i||!l){if(!s||!c)return new b(o/0);if(!s[0]||!c[0])return c[0]?e:new b(s[0]?r:0*o)}if(s=s.slice(),o=i-l){for((n=o>0?(l=i,c):(o=-o,s)).reverse();o--;n.push(0));n.reverse()}for(s.length-c.length<0&&(n=c,c=s,s=n),o=c.length,t=0;o;t=(s[--o]=s[o]+c[o]+t)/10^0,s[o]%=10);for(t&&(s.unshift(t),++l>a&&(s=l=null)),o=s.length;0==s[--o];s.pop());return e.c=s,e.e=l,e},u.toPower=u.pow=function(t){var n=0*t==0?0|t:t,r=new b(this),o=new b(m);if(((e=t<-1e6||t>1e6)&&(n=1*t/0)||c(t)!=t&&0!==t&&!(n=NaN))&&!g(t,"exponent","pow")||!n)return new b(Math.pow(r.toS(),n));for(n=n<0?-n:n;1&n&&(o=o.times(r)),n>>=1;)r=r.times(r);return t<0?m.div(o):o},u.powm=function(e,t){return this.pow(e).mod(t)},u.round=function(n,o){return x(this,n=null==n||((e=n<0||n>t)||c(n)!=n)&&!g(n,"decimal places","round")?0:0|n,o=null==o||((e=o<0||o>8)||c(o)!=o&&0!==o)&&!g(o,"mode","round")?r:0|o)},u.squareRoot=u.sqrt=function(){var e,t,o,i,s=this,a=s.c,l=s.s,c=s.e,u=n,d=r,f=new b("0.5");if(1!==l||!a||!a[0])return new b(!l||l<0&&(!a||a[0])?NaN:a?s:1/0);for(l=Math.sqrt(s.toS()),r=1,0==l||l==1/0?((e=a.join("")).length+c&1||(e+="0"),(t=new b(Math.sqrt(e)+"")).c||(t.c=[1]),t.e=((c+1)/2|0)-(c<0||1&c)):t=new b(e=l.toString()),(l=(o=t.e)+(n+=4))<3&&(l=0),c=l;;)if(i=t,t=f.times(i.plus(s.div(i))),i.c.slice(0,l).join("")===t.c.slice(0,l).join("")){if(9!=(a=t.c)[l-=e&&t.e<o]||9!=a[l-1]||9!=a[l-2]||!(9==a[l-3]||e&&4==a[l-3])){if(!(a[c]||a[c-1]||a[c-2]||a[c-3]&&5!=a[c-3]||(a.length>c-2&&(a.length=c-2),t.times(t).eq(s)))){for(;a.length<c-3;)a.push(0);a[c-3]++}return r=d,I(t,n=u,10),t}if(e&&9==a[l-3]&&(i=t.round(u,0)).times(i).eq(s))return r=d,n=u,i;n+=4,l+=4,e=""}},u.times=u.mul=function(e,t){var n,r=this,o=r.c,i=(f=11,e=new b(e,t)).c,l=r.e,c=e.e,u=r.s;if(e.s=u==(t=e.s)?1:-1,!(l||o&&o[0])||!(c||i&&i[0]))return new b(!u||!t||o&&!o[0]&&!i||i&&!i[0]&&!o?NaN:o&&i?0*e.s:e.s/0);for(e.e=l+c,(u=o.length)<(t=i.length)&&(n=o,o=i,i=n,c=u,u=t,t=c),c=u+t,n=[];c--;n.push(0));for(l=t-1;l>-1;l--){for(t=0,c=u+l;c>l;t=n[c]+i[l]*o[c-l-1]+t,n[c--]=t%10|0,t=t/10|0);t&&(n[c]=(n[c]+t)%10)}for(t&&++e.e,!n[0]&&n.shift(),c=n.length;!n[--c];n.pop());return e.c=e.e>a?e.e=null:e.e<s?[e.e=0]:n,e},u.toBuffer=function(e){if("string"==typeof e){if("mpint"!==e)return"Unsupported Buffer representation";var t=this.abs(),n=1===(c=t.toBuffer({size:1,endian:"big"})).length&&0===c[0]?0:c.length;128&c[0]&&n++;var r=new ms.Buffer(4+n);n>0&&c.copy(r,4+(128&c[0]?1:0)),128&c[0]&&(r[4]=0),r[0]=n&255<<24,r[1]=n&255<<16,r[2]=65280&n,r[3]=255&n;var o=this.lt(0);if(o)for(var i=4;i<r.length;i++)r[i]=255-r[i];return r[4]=127&r[4]|(o?128:0),o&&r[r.length-1]++,r}e||(e={});var s={1:"big","-1":"little"}[e.endian]||e.endian||"big",a=this.toString(16);if("-"===a.charAt(0))throw new Error("converting negative numbers to Buffers not supported yet");for(var l="auto"===e.size?Math.ceil(a.length/2):e.size||1,c=(n=Math.ceil(a.length/(2*l))*l,new ms.Buffer(n));a.length<2*n;)a="0"+a;return a.split(new RegExp("(.{"+2*l+"})")).filter((function(e){return e.length>0})).forEach((function(e,t){for(var n=0;n<l;n++)c[t*l+("big"===s?n:l-n-1)]=parseInt(e.slice(2*n,2*n+2),16)})),c},u.toExponential=u.toE=function(n){return y(this,(null==n||((e=n<0||n>t)||c(n)!=n&&0!==n)&&!g(n,"decimal places","toE"))&&this.c?this.c.length-1:0|n,1)},u.toFixed=u.toF=function(n){var r,s,a,l=this;return null==n||((e=n<0||n>t)||c(n)!=n&&0!==n)&&!g(n,"decimal places","toF")||(a=l.e+(0|n)),r=o,n=i,o=-(i=1/0),a==s?s=l.toS():(s=y(l,a),l.s<0&&l.c&&(l.c[0]?s.indexOf("-")<0&&(s="-"+s):s=s.replace(/^-/,""))),o=r,i=n,s},u.toFraction=u.toFr=function(t){var o,i,s,c,u,d,p,h=c=new b(m),v=s=new b("0"),_=this,y=_.c,I=a,x=n,C=r,w=new b(m);if(!y)return _.toS();for(p=w.e=y.length-_.e-1,(null==t||(!(f=12,d=new b(t)).s||(e=d.cmp(h)<0||!d.c)||l&&d.e<d.c.length-1)&&!g(t,"max denominator","toFr")||(t=d).cmp(w)>0)&&(t=p>0?w:h),a=1/0,d=new b(y.join("")),n=0,r=1;o=d.div(w),1!=(u=c.plus(o.times(v))).cmp(t);)c=v,v=u,h=s.plus(o.times(u=h)),s=u,w=d.minus(o.times(u=w)),d=u;return u=t.minus(c).div(v),s=s.plus(u.times(h)),c=c.plus(u.times(v)),s.s=h.s=_.s,n=2*p,r=C,i=h.div(v).minus(_).abs().cmp(s.div(c).minus(_).abs())<1?[h.toS(),v.toS()]:[s.toS(),c.toS()],a=I,n=x,i},u.toPrecision=u.toP=function(n){return null==n||((e=n<1||n>t)||c(n)!=n)&&!g(n,"precision","toP")?this.toS():y(this,0|--n,2)},u.toString=u.toS=function(t){var n,r,s,a=this,c=a.e;if(null===c)r=a.s?"Infinity":"NaN";else{if(t===n&&(c<=o||c>=i))return y(a,a.c.length-1,1);if(r=a.c.join(""),c<0){for(;++c;r="0"+r);r="0."+r}else if(s=r.length,c>0)if(++c>s)for(c-=s;c--;r+="0");else c<s&&(r=r.slice(0,c)+"."+r.slice(c));else if(n=r.charAt(0),s>1)r=n+"."+r.slice(1);else if("0"==n)return n;if(null!=t)if((e=!(t>=2&&t<65))||t!=(0|t)&&l)g(t,"base","toS");else if("0"==(r=v(r,0|t,10,a.s)))return r}return a.s<0?"-"+r:r},u.valueOf=function(){return this.toS()},Ns=b}();function c(e,t){var n=e.toString(16);return n.length%2==1&&(n="0"+n),n.padStart(t,"0")}function u(e){return e>="A"&&e<="F"||e>="a"&&e<="f"||e>="0"&&e<="9"?1:0}function d(e){var t=0;return e>="A"&&e<="F"?t=e.charCodeAt(0)-"A".charCodeAt(0)+10:e>="a"&&e<="f"?t=e.charCodeAt(0)-"a".charCodeAt(0)+10:e>="0"&&e<="9"&&(t=e.charCodeAt(0)-"0".charCodeAt(0)),t}function f(e){var t="0123456789ABCDEF",n="";return n+=t.charAt(e>>4),n+=t.charAt(15&e)}return Rs={numberToHex:c,toHex:function(e){for(var t="",n=0;n<e.length;n++)t+=c(e[n]);return t},sha256:function(t,n="HEX"){var r=new e("SHA-256",n);return r.update(t),r.getHash(n)},sha256x2:function(e,t="HEX"){return this.sha256(this.sha256(e,t),t)},sha256Checksum:function(e){return this.sha256(this.sha256(e)).substr(0,8)},sha512_256:function(e,n="HEX"){const r=t.create();return r.update(ms.Buffer.from(e,n)),r.hex().toUpperCase()},blake256:function(e){return(new n).update(e,"hex").digest("hex")},blake256Checksum:function(e){return this.blake256(this.blake256(e)).substr(0,8)},blake2b:function(e,t){return new i(t).update(ms.Buffer.from(e,"hex")).digest("hex")},keccak256:function(e){return r(e)},keccak256Checksum:function(e){return r(e).toString().substr(0,8)},blake2b256:function(e){return new i(32).update(ms.Buffer.from(e,"hex"),32).digest("hex")},base58:s.decode,byteArray2hexStr:function(e){for(var t="",n=0;n<e.length-1;n++)t+=f(e[n]);return t+=f(e[n])},hexStr2byteArray:function(e){var t=Array(),n=0,r=0,o=0,i=0;for(r=0;r<e.length;r++){var s=e.charAt(r);u(s)&&(n<<=4,n+=d(s),0==++o%2&&(t[i++]=n,n=0))}return t},bigNumberToBuffer:function(e,t){return new l(e).toBuffer({size:t,endian:"big"})},base32:a},Rs}function Ps(){if(ks)return Qs;return ks=1,Qs=function(e){if(e.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),n=0;n<t.length;n++)t[n]=255;for(var r=0;r<e.length;r++){var o=e.charAt(r),i=o.charCodeAt(0);if(255!==t[i])throw new TypeError(o+" is ambiguous");t[i]=r}var s=e.length,a=e.charAt(0),l=Math.log(s)/Math.log(256),c=Math.log(256)/Math.log(s);function u(e){if("string"!=typeof e)throw new TypeError("Expected String");if(0===e.length)return new Uint8Array;for(var n=0,r=0,o=0;e[n]===a;)r++,n++;for(var i=(e.length-n)*l+1>>>0,c=new Uint8Array(i);e[n];){var u=e.charCodeAt(n);if(u>255)return;var d=t[u];if(255===d)return;for(var f=0,p=i-1;(0!==d||f<o)&&-1!==p;p--,f++)d+=s*c[p]>>>0,c[p]=d%256>>>0,d=d/256>>>0;if(0!==d)throw new Error("Non-zero carry");o=f,n++}for(var h=i-o;h!==i&&0===c[h];)h++;for(var m=new Uint8Array(r+(i-h)),b=r;h!==i;)m[b++]=c[h++];return m}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(0===t.length)return"";for(var n=0,r=0,o=0,i=t.length;o!==i&&0===t[o];)o++,n++;for(var l=(i-o)*c+1>>>0,u=new Uint8Array(l);o!==i;){for(var d=t[o],f=0,p=l-1;(0!==d||f<r)&&-1!==p;p--,f++)d+=256*u[p]>>>0,u[p]=d%s>>>0,d=d/s>>>0;if(0!==d)throw new Error("Non-zero carry");r=f,o++}for(var h=l-r;h!==l&&0===u[h];)h++;for(var m=a.repeat(n);h<l;++h)m+=e.charAt(u[h]);return m},decodeUnsafe:u,decode:function(e){var t=u(e);if(t)return t;throw new Error("Non-base"+s+" character")}}},Qs}function Ks(){if(Vs)return Es;Vs=1;var e=zs();return Es={isValidAddress:function(e){return!!/^0x[0-9a-fA-F]{40}$/.test(e)&&(!(!/^0x[0-9a-f]{40}$/.test(e)&&!/^0x?[0-9A-F]{40}$/.test(e))||this.verifyChecksum(e))},verifyChecksum:function(t){t=t.replace("0x","");for(var n=e.keccak256(t.toLowerCase()),r=0;r<40;r++)if(parseInt(n[r],16)>7&&t[r].toUpperCase()!==t[r]||parseInt(n[r],16)<=7&&t[r].toLowerCase()!==t[r])return!1;return!0}},Es}function qs(){if(Ds)return Us;Ds=1;var e="qpzry9x8gf2tvdw0s3jn54khce6mua7l",t=[996825010,642813549,513874426,1027748829,705979059];const n={BECH32:"bech32",BECH32M:"bech32m"};function r(e){return e==n.BECH32?1:e==n.BECH32M?734539939:null}function o(e){for(var n=1,r=0;r<e.length;++r){var o=n>>25;n=(33554431&n)<<5^e[r];for(var i=0;i<5;++i)o>>i&1&&(n^=t[i])}return n}function i(e){var t,n=[];for(t=0;t<e.length;++t)n.push(e.charCodeAt(t)>>5);for(n.push(0),t=0;t<e.length;++t)n.push(31&e.charCodeAt(t));return n}function s(e,t,n){return o(i(e).concat(t))===r(n)}return Us={decode:function(t,n){var r,o=!1,i=!1;for(r=0;r<t.length;++r){if(t.charCodeAt(r)<33||t.charCodeAt(r)>126)return null;t.charCodeAt(r)>=97&&t.charCodeAt(r)<=122&&(o=!0),t.charCodeAt(r)>=65&&t.charCodeAt(r)<=90&&(i=!0)}if(o&&i)return null;var a=(t=t.toLowerCase()).lastIndexOf("1");if(a<1||a+7>t.length||t.length>110)return null;var l=t.substring(0,a),c=[];for(r=a+1;r<t.length;++r){var u=e.indexOf(t.charAt(r));if(-1===u)return null;c.push(u)}if(!s(l,c,n))return null;return{hrp:l,data:c.slice(0,c.length-6)}},encode:function(t,n,s){for(var a=n.concat(function(e,t,n){for(var s=o(i(e).concat(t).concat([0,0,0,0,0,0]))^r(n),a=[],l=0;l<6;++l)a.push(s>>5*(5-l)&31);return a}(t,n,s)),l=t+"1",c=0;c<a.length;++c)l+=e.charAt(a[c]);return l},encodings:n,verifyChecksum:s}}function $s(){if(Ys)return Ms;Ys=1;var e=Hs(),t=function(){if(Os)return Ss;Os=1;var e=qs();function t(e,t,n,r){for(var o=0,i=0,s=[],a=(1<<n)-1,l=0;l<e.length;++l){var c=e[l];if(c<0||c>>t!==0)return null;for(o=o<<t|c,i+=t;i>=n;)i-=n,s.push(o>>i&a)}if(r)i>0&&s.push(o<<n-i&a);else if(i>=t||o<<n-i&a)return null;return s}function n(n,r){var o=!1,i=e.decode(r,e.encodings.BECH32);if(null===i&&(i=e.decode(r,e.encodings.BECH32M),o=!0),null===i||i.hrp!==n||i.data.length<1||i.data[0]>16)return null;var s=t(i.data.slice(1),5,8,!1);return null===s||s.length<2||s.length>40||0===i.data[0]&&20!==s.length&&32!==s.length||0===i.data[0]&&o?null:0===i.data[0]||o?{version:i.data[0],program:s}:null}function r(r,o,i){var s=e.encodings.BECH32;o>0&&(s=e.encodings.BECH32M);var a=e.encode(r,[o].concat(t(i,8,5,!0)),s);return null===n(r,a)?null:a}var o="prod";return Ss={encode:r,decode:n,isValidAddress:function(e,t,i={}){if(!t.bech32Hrp||0===t.bech32Hrp.length)return!1;const{networkType:s=o}=i;var a;if("prod"===s||"testnet"===s)a=t.bech32Hrp[s];else{if(!t.bech32Hrp)return!1;a=t.bech32Hrp.prod.concat(t.bech32Hrp.testnet)}for(var l of a){var c=n(l,e);if(c)return r(l,c.version,c.program)===e.toLowerCase()}return!1}}}(),n=zs(),r="prod";function o(t,r){var o=(r=r||{}).expectedLength||25,i=r.hashFunction||"sha256",s=function(t){try{return e.decode(t)}catch(e){return null}}(t);if(s){var a=s.length;if(a!==o)return null;if(r.regex&&!r.regex.test(t))return!1;var l=n.toHex(s.slice(a-4,a)),c=function(e,t){switch(e){case"blake256keccak256":var r=n.blake2b256(t);return n.keccak256Checksum(ms.Buffer.from(r,"hex"));case"blake256":return n.blake256Checksum(t);case"keccak256":return n.keccak256Checksum(t);default:return n.sha256Checksum(t)}}(i,n.toHex(s.slice(0,a-4)));return l===c?n.toHex(s.slice(0,o-24)):null}return null}return Ms={isValidAddress:function(e,n,i={}){return function(e,t,n){const{networkType:i=r}=n;var s,a=o(e,t);if(a){if("prod"===i||"testnet"===i)s=t.addressTypes[i];else{if(!t.addressTypes)return!1;s=t.addressTypes.prod.concat(t.addressTypes.testnet)}return s.indexOf(a)>=0}return!1}(e,n,i)||t.isValidAddress(e,n,i)}}}var ea,ta={exports:{}},na=ta.exports;function ra(){return ea||(ea=1,function(e){!function(t,n){var r=Math.pow(2,-24),o=Math.pow(2,32),i=Math.pow(2,53);var s={encode:function(e){var t,r=new ArrayBuffer(256),s=new DataView(r),a=0;function l(e){for(var n=r.byteLength,o=a+e;n<o;)n*=2;if(n!==r.byteLength){var i=s;r=new ArrayBuffer(n),s=new DataView(r);for(var l=a+3>>2,c=0;c<l;++c)s.setUint32(4*c,i.getUint32(4*c))}return t=e,s}function c(){a+=t}function u(e){c(l(1).setUint8(a,e))}function d(e){for(var t=l(e.length),n=0;n<e.length;++n)t.setUint8(a+n,e[n]);c()}function f(e,t){t<24?u(e<<5|t):t<256?(u(e<<5|24),u(t)):t<65536?(u(e<<5|25),function(e){c(l(2).setUint16(a,e))}(t)):t<4294967296?(u(e<<5|26),function(e){c(l(4).setUint32(a,e))}(t)):(u(e<<5|27),function(e){var t=e%o,n=(e-t)/o,r=l(8);r.setUint32(a,n),r.setUint32(a+4,t),c()}(t))}if(function e(t){var r;if(!1===t)return u(244);if(!0===t)return u(245);if(null===t)return u(246);if(t===n)return u(247);switch(typeof t){case"number":if(Math.floor(t)===t){if(0<=t&&t<=i)return f(0,t);if(-i<=t&&t<0)return f(1,-(t+1))}return u(251),function(e){c(l(8).setFloat64(a,e))}(t);case"string":var o=[];for(r=0;r<t.length;++r){var s=t.charCodeAt(r);s<128?o.push(s):s<2048?(o.push(192|s>>6),o.push(128|63&s)):s<55296?(o.push(224|s>>12),o.push(128|s>>6&63),o.push(128|63&s)):(s=(1023&s)<<10,s|=1023&t.charCodeAt(++r),s+=65536,o.push(240|s>>18),o.push(128|s>>12&63),o.push(128|s>>6&63),o.push(128|63&s))}return f(3,o.length),d(o);default:var p;if(Array.isArray(t))for(f(4,p=t.length),r=0;r<p;++r)e(t[r]);else if(t instanceof Uint8Array)f(2,t.length),d(t);else{var h=Object.keys(t);for(f(5,p=h.length),r=0;r<p;++r){var m=h[r];e(m),e(t[m])}}}}(e),"slice"in r)return r.slice(0,a);for(var p=new ArrayBuffer(a),h=new DataView(p),m=0;m<a;++m)h.setUint8(m,s.getUint8(m));return p},decode:function(e,t,i){var s=new DataView(e),a=0;function l(e,t){return a+=t,e}function c(t){return l(new Uint8Array(e,a,t),t)}function u(){return l(s.getUint8(a),1)}function d(){return l(s.getUint16(a),2)}function f(){return l(s.getUint32(a),4)}function p(){return 255===s.getUint8(a)&&(a+=1,!0)}function h(e){if(e<24)return e;if(24===e)return u();if(25===e)return d();if(26===e)return f();if(27===e)return f()*o+f();if(31===e)return-1;throw"Invalid length encoding"}function m(e){var t=u();if(255===t)return-1;var n=h(31&t);if(n<0||t>>5!==e)throw"Invalid indefinite length element";return n}function b(e,t){for(var n=0;n<t;++n){var r=u();128&r&&(r<224?(r=(31&r)<<6|63&u(),t-=1):r<240?(r=(15&r)<<12|(63&u())<<6|63&u(),t-=2):(r=(15&r)<<18|(63&u())<<12|(63&u())<<6|63&u(),t-=3)),r<65536?e.push(r):(r-=65536,e.push(55296|r>>10),e.push(56320|1023&r))}}"function"!=typeof t&&(t=function(e){return e}),"function"!=typeof i&&(i=function(){return n});var g=function e(){var o,f,g=u(),v=g>>5,_=31&g;if(7===v)switch(_){case 25:return function(){var e=new ArrayBuffer(4),t=new DataView(e),n=d(),o=32768&n,i=31744&n,s=1023&n;if(31744===i)i=261120;else if(0!==i)i+=114688;else if(0!==s)return s*r;return t.setUint32(0,o<<16|i<<13|s<<13),t.getFloat32(0)}();case 26:return l(s.getFloat32(a),4);case 27:return l(s.getFloat64(a),8)}if((f=h(_))<0&&(v<2||6<v))throw"Invalid length";switch(v){case 0:return f;case 1:return-1-f;case 2:if(f<0){for(var y=[],I=0;(f=m(v))>=0;)I+=f,y.push(c(f));var x=new Uint8Array(I),C=0;for(o=0;o<y.length;++o)x.set(y[o],C),C+=y[o].length;return x}return c(f);case 3:var w=[];if(f<0)for(;(f=m(v))>=0;)b(w,f);else b(w,f);return String.fromCharCode.apply(null,w);case 4:var G;if(f<0)for(G=[];!p();)G.push(e());else for(G=new Array(f),o=0;o<f;++o)G[o]=e();return G;case 5:var B={};for(o=0;o<f||f<0&&!p();++o){B[e()]=e()}return B;case 6:return t(e(),f);case 7:switch(f){case 20:return!1;case 21:return!0;case 22:return null;case 23:return n;default:return i(f)}}}();if(a!==e.byteLength)throw"Remaining bytes";return g}};e.exports?e.exports=s:t.CBOR||(t.CBOR=s)}(na)}(ta)),ta.exports}var oa,ia={exports:{}},sa={exports:{}},aa={},la={};var ca,ua,da,fa,pa={},ha={};function ma(){if(ua)return pa;ua=1;var e=pa&&pa.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(pa,"__esModule",{value:!0});const t=e(function(){if(ca)return ha;ca=1,Object.defineProperty(ha,"__esModule",{value:!0});const e=ps();return ha.default=(t,n)=>e.Buffer.from(t,n),ha}());return pa.default=function(e,n){const r=(e,r)=>n((0,t.default)(e),r)>>>0;return r.signed=(e,r)=>n((0,t.default)(e),r),r.unsigned=r,r.model=e,r},pa}function ba(){if(da)return aa;da=1;var e=aa&&aa.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(aa,"__esModule",{value:!0});const t=e((oa||(oa=1,Object.defineProperty(la,"__esModule",{value:!0}),la.default=(e,t=0)=>{let n=~~t,r=0;for(let t=0;t<e.length;t++)r+=e[t];return n+=r%256,n%256}),la)),n=e(ma());return aa.default=(0,n.default)("crc1",t.default),aa}function ga(){if(fa)return sa.exports;fa=1;const e=ba().default;return sa.exports=e,sa.exports.default=e,sa.exports}var va,_a,ya,Ia={exports:{}},xa={},Ca={};function wa(){if(_a)return xa;_a=1;var e=xa&&xa.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(xa,"__esModule",{value:!0});const t=e(function(){if(va)return Ca;va=1,Object.defineProperty(Ca,"__esModule",{value:!0});let e=[0,7,14,9,28,27,18,21,56,63,54,49,36,35,42,45,112,119,126,121,108,107,98,101,72,79,70,65,84,83,90,93,224,231,238,233,252,251,242,245,216,223,214,209,196,195,202,205,144,151,158,153,140,139,130,133,168,175,166,161,180,179,186,189,199,192,201,206,219,220,213,210,255,248,241,246,227,228,237,234,183,176,185,190,171,172,165,162,143,136,129,134,147,148,157,154,39,32,41,46,59,60,53,50,31,24,17,22,3,4,13,10,87,80,89,94,75,76,69,66,111,104,97,102,115,116,125,122,137,142,135,128,149,146,155,156,177,182,191,184,173,170,163,164,249,254,247,240,229,226,235,236,193,198,207,200,221,218,211,212,105,110,103,96,117,114,123,124,81,86,95,88,77,74,67,68,25,30,23,16,5,2,11,12,33,38,47,40,61,58,51,52,78,73,64,71,82,85,92,91,118,113,120,127,106,109,100,99,62,57,48,55,34,37,44,43,6,1,8,15,26,29,20,19,174,169,160,167,178,181,188,187,150,145,152,159,138,141,132,131,222,217,208,215,194,197,204,203,230,225,232,239,250,253,244,243];return"undefined"!=typeof Int32Array&&(e=new Int32Array(e)),Ca.default=(t,n=0)=>{let r=~~n;for(let n=0;n<t.length;n++)r=255&e[255&(r^t[n])];return r},Ca}()),n=e(ma());return xa.default=(0,n.default)("crc-8",t.default),xa}function Ga(){if(ya)return Ia.exports;ya=1;const e=wa().default;return Ia.exports=e,Ia.exports.default=e,Ia.exports}var Ba,Aa,Fa,Na={exports:{}},Xa={},Ra={};function Za(){if(Aa)return Xa;Aa=1;var e=Xa&&Xa.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Xa,"__esModule",{value:!0});const t=e(function(){if(Ba)return Ra;Ba=1,Object.defineProperty(Ra,"__esModule",{value:!0});let e=[0,94,188,226,97,63,221,131,194,156,126,32,163,253,31,65,157,195,33,127,252,162,64,30,95,1,227,189,62,96,130,220,35,125,159,193,66,28,254,160,225,191,93,3,128,222,60,98,190,224,2,92,223,129,99,61,124,34,192,158,29,67,161,255,70,24,250,164,39,121,155,197,132,218,56,102,229,187,89,7,219,133,103,57,186,228,6,88,25,71,165,251,120,38,196,154,101,59,217,135,4,90,184,230,167,249,27,69,198,152,122,36,248,166,68,26,153,199,37,123,58,100,134,216,91,5,231,185,140,210,48,110,237,179,81,15,78,16,242,172,47,113,147,205,17,79,173,243,112,46,204,146,211,141,111,49,178,236,14,80,175,241,19,77,206,144,114,44,109,51,209,143,12,82,176,238,50,108,142,208,83,13,239,177,240,174,76,18,145,207,45,115,202,148,118,40,171,245,23,73,8,86,180,234,105,55,213,139,87,9,235,181,54,104,138,212,149,203,41,119,244,170,72,22,233,183,85,11,136,214,52,106,43,117,151,201,74,20,246,168,116,42,200,150,21,75,169,247,182,232,10,84,215,137,107,53];return"undefined"!=typeof Int32Array&&(e=new Int32Array(e)),Ra.default=(t,n=0)=>{let r=~~n;for(let n=0;n<t.length;n++)r=255&e[255&(r^t[n])];return r},Ra}()),n=e(ma());return Xa.default=(0,n.default)("dallas-1-wire",t.default),Xa}function Qa(){if(Fa)return Na.exports;Fa=1;const e=Za().default;return Na.exports=e,Na.exports.default=e,Na.exports}var ka,La,Wa,Ea={exports:{}},Va={},Ua={};function Da(){if(La)return Va;La=1;var e=Va&&Va.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Va,"__esModule",{value:!0});const t=e(function(){if(ka)return Ua;ka=1,Object.defineProperty(Ua,"__esModule",{value:!0});let e=[0,49345,49537,320,49921,960,640,49729,50689,1728,1920,51009,1280,50625,50305,1088,52225,3264,3456,52545,3840,53185,52865,3648,2560,51905,52097,2880,51457,2496,2176,51265,55297,6336,6528,55617,6912,56257,55937,6720,7680,57025,57217,8e3,56577,7616,7296,56385,5120,54465,54657,5440,55041,6080,5760,54849,53761,4800,4992,54081,4352,53697,53377,4160,61441,12480,12672,61761,13056,62401,62081,12864,13824,63169,63361,14144,62721,13760,13440,62529,15360,64705,64897,15680,65281,16320,16e3,65089,64001,15040,15232,64321,14592,63937,63617,14400,10240,59585,59777,10560,60161,11200,10880,59969,60929,11968,12160,61249,11520,60865,60545,11328,58369,9408,9600,58689,9984,59329,59009,9792,8704,58049,58241,9024,57601,8640,8320,57409,40961,24768,24960,41281,25344,41921,41601,25152,26112,42689,42881,26432,42241,26048,25728,42049,27648,44225,44417,27968,44801,28608,28288,44609,43521,27328,27520,43841,26880,43457,43137,26688,30720,47297,47489,31040,47873,31680,31360,47681,48641,32448,32640,48961,32e3,48577,48257,31808,46081,29888,30080,46401,30464,47041,46721,30272,29184,45761,45953,29504,45313,29120,28800,45121,20480,37057,37249,20800,37633,21440,21120,37441,38401,22208,22400,38721,21760,38337,38017,21568,39937,23744,23936,40257,24320,40897,40577,24128,23040,39617,39809,23360,39169,22976,22656,38977,34817,18624,18816,35137,19200,35777,35457,19008,19968,36545,36737,20288,36097,19904,19584,35905,17408,33985,34177,17728,34561,18368,18048,34369,33281,17088,17280,33601,16640,33217,32897,16448];return"undefined"!=typeof Int32Array&&(e=new Int32Array(e)),Ua.default=(t,n=0)=>{let r=~~n;for(let n=0;n<t.length;n++)r=65535&(e[255&(r^t[n])]^r>>8);return r},Ua}()),n=e(ma());return Va.default=(0,n.default)("crc-16",t.default),Va}function Sa(){if(Wa)return Ea.exports;Wa=1;const e=Da().default;return Ea.exports=e,Ea.exports.default=e,Ea.exports}var Oa,Ma,Ya,ja={exports:{}},Ta={},Ha={};function Ja(){if(Ma)return Ta;Ma=1;var e=Ta&&Ta.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ta,"__esModule",{value:!0});const t=e(function(){if(Oa)return Ha;Oa=1,Object.defineProperty(Ha,"__esModule",{value:!0});let e=[0,4129,8258,12387,16516,20645,24774,28903,33032,37161,41290,45419,49548,53677,57806,61935,4657,528,12915,8786,21173,17044,29431,25302,37689,33560,45947,41818,54205,50076,62463,58334,9314,13379,1056,5121,25830,29895,17572,21637,42346,46411,34088,38153,58862,62927,50604,54669,13907,9842,5649,1584,30423,26358,22165,18100,46939,42874,38681,34616,63455,59390,55197,51132,18628,22757,26758,30887,2112,6241,10242,14371,51660,55789,59790,63919,35144,39273,43274,47403,23285,19156,31415,27286,6769,2640,14899,10770,56317,52188,64447,60318,39801,35672,47931,43802,27814,31879,19684,23749,11298,15363,3168,7233,60846,64911,52716,56781,44330,48395,36200,40265,32407,28342,24277,20212,15891,11826,7761,3696,65439,61374,57309,53244,48923,44858,40793,36728,37256,33193,45514,41451,53516,49453,61774,57711,4224,161,12482,8419,20484,16421,28742,24679,33721,37784,41979,46042,49981,54044,58239,62302,689,4752,8947,13010,16949,21012,25207,29270,46570,42443,38312,34185,62830,58703,54572,50445,13538,9411,5280,1153,29798,25671,21540,17413,42971,47098,34713,38840,59231,63358,50973,55100,9939,14066,1681,5808,26199,30326,17941,22068,55628,51565,63758,59695,39368,35305,47498,43435,22596,18533,30726,26663,6336,2273,14466,10403,52093,56156,60223,64286,35833,39896,43963,48026,19061,23124,27191,31254,2801,6864,10931,14994,64814,60687,56684,52557,48554,44427,40424,36297,31782,27655,23652,19525,15522,11395,7392,3265,61215,65342,53085,57212,44955,49082,36825,40952,28183,32310,20053,24180,11923,16050,3793,7920];return"undefined"!=typeof Int32Array&&(e=new Int32Array(e)),Ha.default=(t,n)=>{let r=void 0!==n?~~n:65535;for(let n=0;n<t.length;n++)r=65535&(e[255&(r>>8^t[n])]^r<<8);return r},Ha}()),n=e(ma());return Ta.default=(0,n.default)("ccitt",t.default),Ta}function za(){if(Ya)return ja.exports;Ya=1;const e=Ja().default;return ja.exports=e,ja.exports.default=e,ja.exports}var Pa,Ka,qa,$a={exports:{}},el={},tl={};function nl(){if(Ka)return el;Ka=1;var e=el&&el.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(el,"__esModule",{value:!0});const t=e(function(){if(Pa)return tl;Pa=1,Object.defineProperty(tl,"__esModule",{value:!0});let e=[0,49345,49537,320,49921,960,640,49729,50689,1728,1920,51009,1280,50625,50305,1088,52225,3264,3456,52545,3840,53185,52865,3648,2560,51905,52097,2880,51457,2496,2176,51265,55297,6336,6528,55617,6912,56257,55937,6720,7680,57025,57217,8e3,56577,7616,7296,56385,5120,54465,54657,5440,55041,6080,5760,54849,53761,4800,4992,54081,4352,53697,53377,4160,61441,12480,12672,61761,13056,62401,62081,12864,13824,63169,63361,14144,62721,13760,13440,62529,15360,64705,64897,15680,65281,16320,16e3,65089,64001,15040,15232,64321,14592,63937,63617,14400,10240,59585,59777,10560,60161,11200,10880,59969,60929,11968,12160,61249,11520,60865,60545,11328,58369,9408,9600,58689,9984,59329,59009,9792,8704,58049,58241,9024,57601,8640,8320,57409,40961,24768,24960,41281,25344,41921,41601,25152,26112,42689,42881,26432,42241,26048,25728,42049,27648,44225,44417,27968,44801,28608,28288,44609,43521,27328,27520,43841,26880,43457,43137,26688,30720,47297,47489,31040,47873,31680,31360,47681,48641,32448,32640,48961,32e3,48577,48257,31808,46081,29888,30080,46401,30464,47041,46721,30272,29184,45761,45953,29504,45313,29120,28800,45121,20480,37057,37249,20800,37633,21440,21120,37441,38401,22208,22400,38721,21760,38337,38017,21568,39937,23744,23936,40257,24320,40897,40577,24128,23040,39617,39809,23360,39169,22976,22656,38977,34817,18624,18816,35137,19200,35777,35457,19008,19968,36545,36737,20288,36097,19904,19584,35905,17408,33985,34177,17728,34561,18368,18048,34369,33281,17088,17280,33601,16640,33217,32897,16448];return"undefined"!=typeof Int32Array&&(e=new Int32Array(e)),tl.default=(t,n)=>{let r=void 0!==n?~~n:65535;for(let n=0;n<t.length;n++)r=65535&(e[255&(r^t[n])]^r>>8);return r},tl}()),n=e(ma());return el.default=(0,n.default)("crc-16-modbus",t.default),el}function rl(){if(qa)return $a.exports;qa=1;const e=nl().default;return $a.exports=e,$a.exports.default=e,$a.exports}var ol,il,sl,al={exports:{}},ll={},cl={};function ul(){if(il)return ll;il=1;var e=ll&&ll.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ll,"__esModule",{value:!0});const t=e((ol||(ol=1,Object.defineProperty(cl,"__esModule",{value:!0}),cl.default=(e,t)=>{let n=void 0!==t?~~t:0;for(let t=0;t<e.length;t++){let r=n>>>8&255;r^=255&e[t],r^=r>>>4,n=n<<8&65535,n^=r,r=r<<5&65535,n^=r,r=r<<7&65535,n^=r}return n}),cl)),n=e(ma());return ll.default=(0,n.default)("xmodem",t.default),ll}function dl(){if(sl)return al.exports;sl=1;const e=ul().default;return al.exports=e,al.exports.default=e,al.exports}var fl,pl,hl,ml={exports:{}},bl={},gl={};function vl(){if(pl)return bl;pl=1;var e=bl&&bl.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(bl,"__esModule",{value:!0});const t=e(function(){if(fl)return gl;fl=1,Object.defineProperty(gl,"__esModule",{value:!0});let e=[0,4489,8978,12955,17956,22445,25910,29887,35912,40385,44890,48851,51820,56293,59774,63735,4225,264,13203,8730,22181,18220,30135,25662,40137,36160,49115,44626,56045,52068,63999,59510,8450,12427,528,5017,26406,30383,17460,21949,44362,48323,36440,40913,60270,64231,51324,55797,12675,8202,4753,792,30631,26158,21685,17724,48587,44098,40665,36688,64495,60006,55549,51572,16900,21389,24854,28831,1056,5545,10034,14011,52812,57285,60766,64727,34920,39393,43898,47859,21125,17164,29079,24606,5281,1320,14259,9786,57037,53060,64991,60502,39145,35168,48123,43634,25350,29327,16404,20893,9506,13483,1584,6073,61262,65223,52316,56789,43370,47331,35448,39921,29575,25102,20629,16668,13731,9258,5809,1848,65487,60998,56541,52564,47595,43106,39673,35696,33800,38273,42778,46739,49708,54181,57662,61623,2112,6601,11090,15067,20068,24557,28022,31999,38025,34048,47003,42514,53933,49956,61887,57398,6337,2376,15315,10842,24293,20332,32247,27774,42250,46211,34328,38801,58158,62119,49212,53685,10562,14539,2640,7129,28518,32495,19572,24061,46475,41986,38553,34576,62383,57894,53437,49460,14787,10314,6865,2904,32743,28270,23797,19836,50700,55173,58654,62615,32808,37281,41786,45747,19012,23501,26966,30943,3168,7657,12146,16123,54925,50948,62879,58390,37033,33056,46011,41522,23237,19276,31191,26718,7393,3432,16371,11898,59150,63111,50204,54677,41258,45219,33336,37809,27462,31439,18516,23005,11618,15595,3696,8185,63375,58886,54429,50452,45483,40994,37561,33584,31687,27214,22741,18780,15843,11370,7921,3960];return"undefined"!=typeof Int32Array&&(e=new Int32Array(e)),gl.default=(t,n)=>{let r=void 0!==n?~~n:0;for(let n=0;n<t.length;n++)r=65535&(e[255&(r^t[n])]^r>>8);return r},gl}()),n=e(ma());return bl.default=(0,n.default)("kermit",t.default),bl}function _l(){if(hl)return ml.exports;hl=1;const e=vl().default;return ml.exports=e,ml.exports.default=e,ml.exports}var yl,Il,xl,Cl={exports:{}},wl={},Gl={};function Bl(){if(Il)return wl;Il=1;var e=wl&&wl.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(wl,"__esModule",{value:!0});const t=e(function(){if(yl)return Gl;yl=1,Object.defineProperty(Gl,"__esModule",{value:!0});let e=[0,8801531,9098509,825846,9692897,1419802,1651692,10452759,10584377,2608578,2839604,11344079,3303384,11807523,12104405,4128302,12930697,4391538,5217156,13227903,5679208,13690003,14450021,5910942,6606768,14844747,15604413,6837830,16197969,7431594,8256604,16494759,840169,9084178,8783076,18463,10434312,1670131,1434117,9678590,11358416,2825259,2590173,10602790,4109873,12122826,11821884,3289031,13213536,5231515,4409965,12912278,5929345,14431610,13675660,5693559,6823513,15618722,14863188,6588335,16513208,8238147,7417269,16212302,1680338,10481449,9664223,1391140,9061683,788936,36926,8838341,12067563,4091408,3340262,11844381,2868234,11372785,10555655,2579964,14478683,5939616,5650518,13661357,5180346,13190977,12967607,4428364,8219746,16457881,16234863,7468436,15633027,6866552,6578062,14816117,1405499,9649856,10463030,1698765,8819930,55329,803287,9047340,11858690,3325945,4072975,12086004,2561507,10574104,11387118,2853909,13647026,5664841,5958079,14460228,4446803,12949160,13176670,5194661,7454091,16249200,16476294,8201341,14834538,6559633,6852199,15647388,3360676,11864927,12161705,4185682,10527045,2551230,2782280,11286707,9619101,1346150,1577872,10379115,73852,8875143,9172337,899466,16124205,7357910,8182816,16421083,6680524,14918455,15678145,6911546,5736468,13747439,14507289,5968354,12873461,4334094,5159928,13170435,4167245,12180150,11879232,3346363,11301036,2767959,2532769,10545498,10360692,1596303,1360505,9604738,913813,9157998,8856728,92259,16439492,8164415,7343561,16138546,6897189,15692510,14936872,6662099,5986813,14488838,13733104,5750795,13156124,5174247,4352529,12855018,2810998,11315341,10498427,2522496,12124823,4148844,3397530,11901793,9135439,862644,110658,8912057,1606574,10407765,9590435,1317464,15706879,6940164,6651890,14889737,8145950,16384229,16161043,7394792,5123014,13133629,12910283,4370992,14535975,5997020,5707818,13718737,2504095,10516836,11329682,2796649,11916158,3383173,4130419,12143240,8893606,129117,876971,9121104,1331783,9576124,10389322,1625009,14908182,6633453,6925851,15721184,7380471,16175372,16402682,8127489,4389423,12891860,13119266,5137369,13704398,5722165,6015427,14517560];return"undefined"!=typeof Int32Array&&(e=new Int32Array(e)),Gl.default=(t,n)=>{let r=void 0!==n?~~n:11994318;for(let n=0;n<t.length;n++)r=16777215&(e[255&(r>>16^t[n])]^r<<8);return r},Gl}()),n=e(ma());return wl.default=(0,n.default)("crc-24",t.default),wl}function Al(){if(xl)return Cl.exports;xl=1;const e=Bl().default;return Cl.exports=e,Cl.exports.default=e,Cl.exports}var Fl,Nl,Xl,Rl={exports:{}},Zl={},Ql={};function kl(){if(Nl)return Zl;Nl=1;var e=Zl&&Zl.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Zl,"__esModule",{value:!0});const t=e(function(){if(Fl)return Ql;Fl=1,Object.defineProperty(Ql,"__esModule",{value:!0});let e=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];return"undefined"!=typeof Int32Array&&(e=new Int32Array(e)),Ql.default=(t,n)=>{let r=0===n?0:-1^n;for(let n=0;n<t.length;n++)r=e[255&(r^t[n])]^r>>>8;return-1^r},Ql}()),n=e(ma());return Zl.default=(0,n.default)("crc-32",t.default),Zl}function Ll(){if(Xl)return Rl.exports;Xl=1;const e=kl().default;return Rl.exports=e,Rl.exports.default=e,Rl.exports}var Wl,El,Vl,Ul={exports:{}},Dl={},Sl={};function Ol(){if(El)return Dl;El=1;var e=Dl&&Dl.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Dl,"__esModule",{value:!0});const t=e(function(){if(Wl)return Sl;Wl=1,Object.defineProperty(Sl,"__esModule",{value:!0});let e=[0,79764919,159529838,222504665,319059676,398814059,445009330,507990021,638119352,583659535,797628118,726387553,890018660,835552979,1015980042,944750013,1276238704,1221641927,1167319070,1095957929,1595256236,1540665371,1452775106,1381403509,1780037320,1859660671,1671105958,1733955601,2031960084,2111593891,1889500026,1952343757,2552477408,2632100695,2443283854,2506133561,2334638140,2414271883,2191915858,2254759653,3190512472,3135915759,3081330742,3009969537,2905550212,2850959411,2762807018,2691435357,3560074640,3505614887,3719321342,3648080713,3342211916,3287746299,3467911202,3396681109,4063920168,4143685023,4223187782,4286162673,3779000052,3858754371,3904687514,3967668269,881225847,809987520,1023691545,969234094,662832811,591600412,771767749,717299826,311336399,374308984,453813921,533576470,25881363,88864420,134795389,214552010,2023205639,2086057648,1897238633,1976864222,1804852699,1867694188,1645340341,1724971778,1587496639,1516133128,1461550545,1406951526,1302016099,1230646740,1142491917,1087903418,2896545431,2825181984,2770861561,2716262478,3215044683,3143675388,3055782693,3001194130,2326604591,2389456536,2200899649,2280525302,2578013683,2640855108,2418763421,2498394922,3769900519,3832873040,3912640137,3992402750,4088425275,4151408268,4197601365,4277358050,3334271071,3263032808,3476998961,3422541446,3585640067,3514407732,3694837229,3640369242,1762451694,1842216281,1619975040,1682949687,2047383090,2127137669,1938468188,2001449195,1325665622,1271206113,1183200824,1111960463,1543535498,1489069629,1434599652,1363369299,622672798,568075817,748617968,677256519,907627842,853037301,1067152940,995781531,51762726,131386257,177728840,240578815,269590778,349224269,429104020,491947555,4046411278,4126034873,4172115296,4234965207,3794477266,3874110821,3953728444,4016571915,3609705398,3555108353,3735388376,3664026991,3290680682,3236090077,3449943556,3378572211,3174993278,3120533705,3032266256,2961025959,2923101090,2868635157,2813903052,2742672763,2604032198,2683796849,2461293480,2524268063,2284983834,2364738477,2175806836,2238787779,1569362073,1498123566,1409854455,1355396672,1317987909,1246755826,1192025387,1137557660,2072149281,2135122070,1912620623,1992383480,1753615357,1816598090,1627664531,1707420964,295390185,358241886,404320391,483945776,43990325,106832002,186451547,266083308,932423249,861060070,1041341759,986742920,613929101,542559546,756411363,701822548,3316196985,3244833742,3425377559,3370778784,3601682597,3530312978,3744426955,3689838204,3819031489,3881883254,3928223919,4007849240,4037393693,4100235434,4180117107,4259748804,2310601993,2373574846,2151335527,2231098320,2596047829,2659030626,2470359227,2550115596,2947551409,2876312838,2788305887,2733848168,3165939309,3094707162,3040238851,2985771188];return"undefined"!=typeof Int32Array&&(e=new Int32Array(e)),Sl.default=(t,n)=>{let r=void 0!==n?~~n:4294967295;for(let n=0;n<t.length;n++)r=e[255&(r>>24^t[n])]^r<<8;return r},Sl}()),n=e(ma());return Dl.default=(0,n.default)("crc-32-mpeg",t.default),Dl}function Ml(){if(Vl)return Ul.exports;Vl=1;const e=Ol().default;return Ul.exports=e,Ul.exports.default=e,Ul.exports}var Yl,jl,Tl,Hl,Jl,zl,Pl,Kl,ql={exports:{}},$l={},ec={};function tc(){if(jl)return $l;jl=1;var e=$l&&$l.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty($l,"__esModule",{value:!0});const t=e(function(){if(Yl)return ec;Yl=1,Object.defineProperty(ec,"__esModule",{value:!0});let e=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];return"undefined"!=typeof Int32Array&&(e=new Int32Array(e)),ec.default=(t,n=-1)=>{let r=0===n?0:~~n;for(let n=0;n<t.length;n++)r=e[255&(r^t[n])]^r>>>8;return r},ec}()),n=e(ma());return $l.default=(0,n.default)("jam",t.default),$l}function nc(){if(Tl)return ql.exports;Tl=1;const e=tc().default;return ql.exports=e,ql.exports.default=e,ql.exports}function rc(){return Hl||(Hl=1,function(e){e.exports={crc1:ga(),crc8:Ga(),crc81wire:Qa(),crc16:Sa(),crc16ccitt:za(),crc16modbus:rl(),crc16xmodem:dl(),crc16kermit:_l(),crc24:Al(),crc32:Ll(),crc32mpeg:Ml(),crcjam:nc()},e.exports.default=e.exports}(ia)),ia.exports}function oc(){if(zl)return Jl;zl=1;var e=qs();return Jl={isValidAddress:function(t,n,r={}){const{networkType:o="prod"}=r,i=e.decode(t,e.encodings.BECH32);if(!i)return!1;const s=i.hrp;let a;if("prod"===o||"testnet"===o)a=n.bech32Hrp[o];else{if(!n.bech32Hrp)return!1;a=n.bech32Hrp.prod.concat(n.bech32Hrp.testnet)}return-1!==a.indexOf(s)}}}function ic(){if(Kl)return Pl;Kl=1;var e=ra(),t=rc(),n=Hs(),r=oc();function o(r){var o=function(t){try{var r=n.decode(t);return e.decode(new Uint8Array(r).buffer)}catch(e){return null}}(r);if(!o||!Array.isArray(o)&&2!=o.length)return!1;var i=o[0],s=o[1];return"number"==typeof s&&t.crc32(i)==s}return Pl={isValidAddress:function(e,t,n={}){return o(e)||function(e,t,n){return r.isValidAddress(e,t,n)}(e,t,n)}}}var sc,ac,lc,cc,uc,dc,fc,pc={};function hc(){if(lc)return ac;lc=1;var e=(sc||(sc=1,function(e){var t={};function n(e,r,i){if(i!==t)return e instanceof n?e:void 0===e?o:n.parse(e);for(e=e||[];e.length&&!e[e.length-1];)--e.length;this._d=e,this._s=e.length?r||1:0}n._construct=function(e,r){return new n(e,r,t)};var r=1e7;n.base=r,n.base_log10=7;var o=new n([],0,t);n.ZERO=o;var i=new n([1],1,t);n.ONE=i;var s=new n(i._d,-1,t);n.M_ONE=s,n._0=o,n._1=i,n.small=[o,i,new n([2],1,t),new n([3],1,t),new n([4],1,t),new n([5],1,t),new n([6],1,t),new n([7],1,t),new n([8],1,t),new n([9],1,t),new n([10],1,t),new n([11],1,t),new n([12],1,t),new n([13],1,t),new n([14],1,t),new n([15],1,t),new n([16],1,t),new n([17],1,t),new n([18],1,t),new n([19],1,t),new n([20],1,t),new n([21],1,t),new n([22],1,t),new n([23],1,t),new n([24],1,t),new n([25],1,t),new n([26],1,t),new n([27],1,t),new n([28],1,t),new n([29],1,t),new n([30],1,t),new n([31],1,t),new n([32],1,t),new n([33],1,t),new n([34],1,t),new n([35],1,t),new n([36],1,t)],n.digits="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),n.prototype.toString=function(e){if((e=+e||10)<2||e>36)throw new Error("illegal radix "+e+".");if(0===this._s)return"0";if(10===e){var t=this._s<0?"-":"";t+=this._d[this._d.length-1].toString();for(var r=this._d.length-2;r>=0;r--){for(var o=this._d[r].toString();o.length<7;)o="0"+o;t+=o}return t}var i=n.digits;e=n.small[e];for(var s,a=this._s,l=this.abs(),c=[];0!==l._s;){var u=l.divRem(e);l=u[0],s=u[1],c.push(i[s.valueOf()])}return(a<0?"-":"")+c.reverse().join("")},n.radixRegex=[/^$/,/^$/,/^[01]*$/,/^[012]*$/,/^[0-3]*$/,/^[0-4]*$/,/^[0-5]*$/,/^[0-6]*$/,/^[0-7]*$/,/^[0-8]*$/,/^[0-9]*$/,/^[0-9aA]*$/,/^[0-9abAB]*$/,/^[0-9abcABC]*$/,/^[0-9a-dA-D]*$/,/^[0-9a-eA-E]*$/,/^[0-9a-fA-F]*$/,/^[0-9a-gA-G]*$/,/^[0-9a-hA-H]*$/,/^[0-9a-iA-I]*$/,/^[0-9a-jA-J]*$/,/^[0-9a-kA-K]*$/,/^[0-9a-lA-L]*$/,/^[0-9a-mA-M]*$/,/^[0-9a-nA-N]*$/,/^[0-9a-oA-O]*$/,/^[0-9a-pA-P]*$/,/^[0-9a-qA-Q]*$/,/^[0-9a-rA-R]*$/,/^[0-9a-sA-S]*$/,/^[0-9a-tA-T]*$/,/^[0-9a-uA-U]*$/,/^[0-9a-vA-V]*$/,/^[0-9a-wA-W]*$/,/^[0-9a-xA-X]*$/,/^[0-9a-yA-Y]*$/,/^[0-9a-zA-Z]*$/],n.parse=function(e,r){e=e.toString(),void 0!==r&&10!==+r||(e=e.replace(/\s*[*xX]\s*10\s*(\^|\*\*)\s*/,"e").replace(/^([+\-])?(\d+)\.?(\d*)[eE]([+\-]?\d+)$/,(function(e,t,n,r,o){var i=(o=+o)<0,s=n.length+o;e=(i?n:r).length,o=(o=Math.abs(o))>=e?o-e+i:0;var a=new Array(o+1).join("0"),l=n+r;return(t||"")+(i?l=a+l:l+=a).substr(0,s+=i?a.length:0)+(s<l.length?"."+l.substr(s):"")})));var i=new RegExp("^([+\\-]?)("+(void 0===r?"0[xcb]":16==r?"0x":8==r?"0c":2==r?"0b":"")+")?([0-9a-z]*)(?:\\.\\d*)?$","i").exec(e);if(i){var s=i[1]||"+",a=i[2]||"",l=i[3]||"";if(void 0===r)r="0x"===a||"0X"===a?16:"0c"===a||"0C"===a?8:"0b"===a||"0B"===a?2:10;else if(r<2||r>36)throw new Error("Illegal radix "+r+".");if(r=+r,!n.radixRegex[r].test(l))throw new Error("Bad digit for radix "+r);if(0===(l=l.replace(/^0+/,"").split("")).length)return o;if(s="-"===s?-1:1,10==r){for(var c=[];l.length>=7;)c.push(parseInt(l.splice(l.length-n.base_log10,n.base_log10).join(""),10));return c.push(parseInt(l.join(""),10)),new n(c,s,t)}c=o,r=n.small[r];for(var u=n.small,d=0;d<l.length;d++)c=c.multiply(r).add(u[parseInt(l[d],36)]);return new n(c._d,s,t)}throw new Error("Invalid BigInteger format: "+e)},n.prototype.add=function(e){if(0===this._s)return n(e);if(0===(e=n(e))._s)return this;if(this._s!==e._s)return e=e.negate(),this.subtract(e);for(var o,i=this._d,s=e._d,a=i.length,l=s.length,c=new Array(Math.max(a,l)+1),u=Math.min(a,l),d=0,f=0;f<u;f++)o=i[f]+s[f]+d,c[f]=o%r,d=o/r|0;for(l>a&&(i=s,a=l),f=u;d&&f<a;f++)o=i[f]+d,c[f]=o%r,d=o/r|0;for(d&&(c[f]=d);f<a;f++)c[f]=i[f];return new n(c,this._s,t)},n.prototype.negate=function(){return new n(this._d,0|-this._s,t)},n.prototype.abs=function(){return this._s<0?this.negate():this},n.prototype.subtract=function(e){if(0===this._s)return n(e).negate();if(0===(e=n(e))._s)return this;if(this._s!==e._s)return e=e.negate(),this.add(e);var i=this;this._s<0&&(i=new n(e._d,1,t),e=new n(this._d,1,t));var s=i.compareAbs(e);if(0===s)return o;if(s<0){var a=e;e=i,i=a}var l,c,u=i._d,d=e._d,f=u.length,p=d.length,h=new Array(f),m=0;for(l=0;l<p;l++)(c=u[l]-m-d[l])<0?(c+=r,m=1):m=0,h[l]=c;for(l=p;l<f;l++){if(!((c=u[l]-m)<0)){h[l++]=c;break}c+=r,h[l]=c}for(;l<f;l++)h[l]=u[l];return new n(h,s,t)},function(){function e(e,o){for(var i=e._d,s=i.slice(),a=0;;){var l=(i[a]||0)+1;if(s[a]=l%r,l<=9999999)break;++a}return new n(s,o,t)}function o(e,o){for(var i=e._d,s=i.slice(),a=0;;){var l=(i[a]||0)-1;if(!(l<0)){s[a]=l;break}s[a]=l+r,++a}return new n(s,o,t)}n.prototype.next=function(){switch(this._s){case 0:return i;case-1:return o(this,-1);default:return e(this,1)}},n.prototype.prev=function(){switch(this._s){case 0:return s;case-1:return e(this,-1);default:return o(this,1)}}}(),n.prototype.compareAbs=function(e){if(this===e)return 0;if(!(e instanceof n)){if(!isFinite(e))return isNaN(e)?e:-1;e=n(e)}if(0===this._s)return 0!==e._s?-1:0;if(0===e._s)return 1;var t=this._d.length,r=e._d.length;if(t<r)return-1;if(t>r)return 1;for(var o=this._d,i=e._d,s=t-1;s>=0;s--)if(o[s]!==i[s])return o[s]<i[s]?-1:1;return 0},n.prototype.compare=function(e){return this===e?0:(e=n(e),0===this._s?-e._s:this._s===e._s?this.compareAbs(e)*this._s:this._s)},n.prototype.isUnit=function(){return this===i||this===s||1===this._d.length&&1===this._d[0]},n.prototype.multiply=function(e){if(0===this._s)return o;if(0===(e=n(e))._s)return o;if(this.isUnit())return this._s<0?e.negate():e;if(e.isUnit())return e._s<0?this.negate():this;if(this===e)return this.square();var i,s=this._d.length>=e._d.length,a=(s?this:e)._d,l=(s?e:this)._d,c=a.length,u=l.length,d=c+u,f=new Array(d);for(i=0;i<d;i++)f[i]=0;for(i=0;i<u;i++){for(var p,h=0,m=l[i],b=c+i,g=i;g<b;g++)h=(p=f[g]+m*a[g-i]+h)/r|0,f[g]=p%r|0;h&&(h=(p=f[g]+h)/r|0,f[g]=p%r)}return new n(f,this._s*e._s,t)},n.prototype.multiplySingleDigit=function(e){if(0===e||0===this._s)return o;if(1===e)return this;var i;if(1===this._d.length)return new n((i=this._d[0]*e)>=r?[i%r|0,i/r|0]:[i],1,t);if(2===e)return this.add(this);if(this.isUnit())return new n([e],1,t);for(var s=this._d,a=s.length,l=a+1,c=new Array(l),u=0;u<l;u++)c[u]=0;for(var d=0,f=0;f<a;f++)d=(i=e*s[f]+d)/r|0,c[f]=i%r|0;return d&&(c[f]=d),new n(c,1,t)},n.prototype.square=function(){if(0===this._s)return o;if(this.isUnit())return i;var e,s,a,l,c=this._d,u=c.length,d=new Array(u+u+1);for(l=0;l<u;l++)a=2*l,s=(e=c[l]*c[l])/r|0,d[a]=e%r,d[a+1]=s;for(l=0;l<u;l++){s=0,a=2*l+1;for(var f=l+1;f<u;f++,a++)s=(e=c[f]*c[l]*2+d[a]+s)/r|0,d[a]=e%r;var p=s+d[a=u+l];s=p/r|0,d[a]=p%r,d[a+1]+=s}return new n(d,1,t)},n.prototype.quotient=function(e){return this.divRem(e)[0]},n.prototype.divide=n.prototype.quotient,n.prototype.remainder=function(e){return this.divRem(e)[1]},n.prototype.divRem=function(e){if(0===(e=n(e))._s)throw new Error("Divide by zero");if(0===this._s)return[o,o];if(1===e._d.length)return this.divRemSmall(e._s*e._d[0]);switch(this.compareAbs(e)){case 0:return[this._s===e._s?i:s,o];case-1:return[o,this]}var a=this._s*e._s,l=e.abs(),c=this._d,u=c.length;e._d.length;for(var d,f=[],p=new n([],0,t);u;)if(p._d.unshift(c[--u]),(p=new n(p._d,1,t)).compareAbs(e)<0)f.push(0);else{if(0===p._s)d=0;else{var h=p._d.length,m=l._d.length,b=p._d[h-1]*r+p._d[h-2],g=l._d[m-1]*r+l._d[m-2];p._d.length>l._d.length&&(b=(b+1)*r),d=Math.ceil(b/g)}do{var v=l.multiplySingleDigit(d);if(v.compareAbs(p)<=0)break;d--}while(d);if(f.push(d),d){var _=p.subtract(v);p._d=_._d.slice()}}return[new n(f.reverse(),a,t),new n(p._d,this._s,t)]},n.prototype.divRemSmall=function(e){var i;if(0===(e=+e))throw new Error("Divide by zero");var s=e<0?-1:1,a=this._s*s;if((e=Math.abs(e))<1||e>=r)throw new Error("Argument out of range");if(0===this._s)return[o,o];if(1===e||-1===e)return[1===a?this.abs():new n(this._d,a,t),o];if(1===this._d.length){var l=new n([this._d[0]/e|0],1,t);return i=new n([this._d[0]%e|0],1,t),a<0&&(l=l.negate()),this._s<0&&(i=i.negate()),[l,i]}for(var c,u=this._d.slice(),d=new Array(u.length),f=0,p=0,h=0;u.length;)(f=f*r+u[u.length-1])<e?(d[h++]=0,u.pop(),p=r*p+f):(p=f-e*(c=0===f?0:f/e|0),d[h++]=c,c?(u.pop(),f=p):u.pop());return i=new n([p],1,t),this._s<0&&(i=i.negate()),[new n(d.reverse(),a,t),i]},n.prototype.isEven=function(){var e=this._d;return 0===this._s||0===e.length||e[0]%2==0},n.prototype.isOdd=function(){return!this.isEven()},n.prototype.sign=function(){return this._s},n.prototype.isPositive=function(){return this._s>0},n.prototype.isNegative=function(){return this._s<0},n.prototype.isZero=function(){return 0===this._s},n.prototype.exp10=function(e){if(0===(e=+e))return this;if(Math.abs(e)>Number(a))throw new Error("exponent too large in BigInteger.exp10");if(0===this._s)return o;if(e>0){for(var r=new n(this._d.slice(),this._s,t);e>=7;e-=7)r._d.unshift(0);return 0==e?r:(r._s=1,r=r.multiplySingleDigit(Math.pow(10,e)),this._s<0?r.negate():r)}if(-e>=7*this._d.length)return o;for(r=new n(this._d.slice(),this._s,t),e=-e;e>=7;e-=7)r._d.shift();return 0==e?r:r.divRemSmall(Math.pow(10,e))[0]},n.prototype.pow=function(e){if(this.isUnit())return this._s>0||n(e).isOdd()?this:this.negate();if(0===(e=n(e))._s)return i;if(e._s<0){if(0===this._s)throw new Error("Divide by zero");return o}if(0===this._s)return o;if(e.isUnit())return this;if(e.compareAbs(a)>0)throw new Error("exponent too large in BigInteger.pow");for(var t=this,r=i,s=n.small[2];e.isPositive();){if(e.isOdd()&&(r=r.multiply(t),e.isUnit()))return r;t=t.square(),e=e.quotient(s)}return r},n.prototype.modPow=function(e,t){for(var r=i,o=this;e.isPositive();)e.isOdd()&&(r=r.multiply(o).remainder(t)),(e=e.quotient(n.small[2])).isPositive()&&(o=o.square().remainder(t));return r},n.prototype.log=function(){switch(this._s){case 0:return-1/0;case-1:return NaN}var e=this._d.length;if(7*e<30)return Math.log(this.valueOf());var o=Math.ceil(30/7),i=this._d.slice(e-o);return Math.log(new n(i,1,t).valueOf())+(e-o)*Math.log(r)},n.prototype.valueOf=function(){return parseInt(this.toString(),10)},n.prototype.toJSValue=function(){return parseInt(this.toString(),10)},n.prototype.lowVal=function(){return this._d[0]||0};var a=n(2147483647);n.MAX_EXP=a,function(){function e(e){return function(t){return e.call(n(t))}}function t(e){return function(t,r){return e.call(n(t),n(r))}}function r(e){return function(t,r,o){return e.call(n(t),n(r),n(o))}}!function(){var o,i,s="toJSValue,isEven,isOdd,sign,isZero,isNegative,abs,isUnit,square,negate,isPositive,toString,next,prev,log".split(","),a="compare,remainder,divRem,subtract,add,quotient,divide,multiply,pow,compareAbs".split(","),l=["modPow"];for(o=0;o<s.length;o++)n[i=s[o]]=e(n.prototype[i]);for(o=0;o<a.length;o++)n[i=a[o]]=t(n.prototype[i]);for(o=0;o<l.length;o++)n[i=l[o]]=r(n.prototype[i]);n.exp10=function(e,t){return n(e).exp10(t)}}()}(),e.JSBigInt=n}(pc)),pc).JSBigInt,t=function(){for(var t={},n="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",r=[],o=0;o<58;o++)r.push(n.charCodeAt(o));var i=[0,2,3,5,6,7,9,10,11],s=r.length,a=11,l=new e(2).pow(64);return t.encode_block=function(t,n,o){if(t.length<1||t.length>a)throw"Invalid block length: "+t.length;for(var l=function(t){if(t.length<1||t.length>8)throw"Invalid input length";var n=e.ZERO,r=new e(2).pow(8),o=0;switch(9-t.length){case 1:n=n.add(t[o++]);case 2:n=n.multiply(r).add(t[o++]);case 3:n=n.multiply(r).add(t[o++]);case 4:n=n.multiply(r).add(t[o++]);case 5:n=n.multiply(r).add(t[o++]);case 6:n=n.multiply(r).add(t[o++]);case 7:n=n.multiply(r).add(t[o++]);case 8:n=n.multiply(r).add(t[o++]);break;default:throw"Impossible condition"}return n}(t),c=i[t.length]-1;1===l.compare(0);){var u=l.divRem(s),d=u[1];l=u[0],n[o+c]=r[d.toJSValue()],c--}return n},t.encode=function(e){var n=function(e){if(e.length%2!=0)throw"Hex string has invalid length!";for(var t=new Uint8Array(e.length/2),n=0;n<e.length/2;++n)t[n]=parseInt(e.slice(2*n,2*n+2),16);return t}(e);if(0===n.length)return"";var o,s=Math.floor(n.length/8),l=n.length%8,c=s*a+i[l],u=new Uint8Array(c);for(o=0;o<c;++o)u[o]=r[0];for(o=0;o<s;o++)u=t.encode_block(n.subarray(8*o,8*o+8),u,o*a);return l>0&&(u=t.encode_block(n.subarray(8*s,8*s+l),u,s*a)),function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}(u)},t.decode_block=function(t,n,o){if(t.length<1||t.length>a)throw"Invalid block length: "+t.length;var c=i.indexOf(t.length);if(c<=0)throw"Invalid block size";for(var u=new e(0),d=new e(1),f=t.length-1;f>=0;f--){var p=r.indexOf(t[f]);if(p<0)throw"Invalid symbol";var h=d.multiply(p).add(u);if(1===h.compare(l))throw"Overflow";u=h,d=d.multiply(s)}if(c<8&&new e(2).pow(8*c).compare(u)<=0)throw"Overflow 2";return n.set(function(t,n){var r=new Uint8Array(n);if(n<1||n>8)throw"Invalid input length";for(var o=new e(2).pow(8),i=n-1;i>=0;i--)r[i]=t.remainder(o).toJSValue(),t=t.divide(o);return r}(u,c),o),n},t.decode=function(e){if(e=function(e){for(var t=new Uint8Array(e.length),n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}(e),0===e.length)return"";var n=Math.floor(e.length/a),r=e.length%a,o=i.indexOf(r);if(o<0)throw"Invalid encoded length";for(var s=new Uint8Array(8*n+o),l=0;l<n;l++)s=t.decode_block(e.subarray(l*a,l*a+a),s,8*l);return r>0&&(s=t.decode_block(e.subarray(n*a,n*a+r),s,8*n)),function(e){for(var t=[],n=0;n<e.length;++n)t.push(("0"+e[n].toString(16)).slice(-2));return t.join("")}(s)},t}();return ac=t}function mc(){if(uc)return cc;uc=1;var e=zs(),t=hc(),n="prod",r=new RegExp("^[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{95}$"),o=new RegExp("^[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{106}$");return cc={isValidAddress:function(i,s,a={}){const{networkType:l=n}=a;var c="standard";if(!r.test(i)){if(!o.test(i))return!1;c="integrated"}var u=t.decode(i);if(!u)return!1;if(!function(e,t,n,r){var o=t.addressTypes;"integrated"==r&&(o=t.iAddressTypes);var i=parseInt(e.substr(0,2),16).toString();switch(n){case"prod":return o.prod.indexOf(i)>=0;case"testnet":return o.testnet.indexOf(i)>=0;case"stagenet":return o.stagenet.indexOf(i)>=0;case"both":return o.prod.indexOf(i)>=0||o.testnet.indexOf(i)>=0||o.stagenet.indexOf(i)>=0;default:return!1}}(u,s,l,c))return!1;var d=u.slice(-8),f=e.keccak256Checksum(function(e){if(e.length%2!=0)return null;for(var t=new Uint8Array(e.length/2),n=0;n<e.length/2;++n)t[n]=parseInt(e.slice(2*n,2*n+2),16);return t}(u.slice(0,-8)));return d===f}},cc}var bc,gc,vc,_c,yc,Ic,xc,Cc,wc,Gc,Bc,Ac,Fc,Nc,Xc,Rc,Zc,Qc,kc,Lc,Wc,Ec,Vc,Uc,Dc,Sc,Oc,Mc,Yc,jc,Tc,Hc,Jc,zc={exports:{}};function Pc(){return bc||(bc=1,function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,i="[object Arguments]",s="[object Array]",a="[object Boolean]",l="[object Date]",c="[object Error]",u="[object Function]",d="[object Map]",f="[object Number]",p="[object Object]",h="[object Promise]",m="[object RegExp]",b="[object Set]",g="[object String]",v="[object Symbol]",_="[object WeakMap]",y="[object ArrayBuffer]",I="[object DataView]",x=/^\[object .+?Constructor\]$/,C=/^(?:0|[1-9]\d*)$/,w={};w["[object Float32Array]"]=w["[object Float64Array]"]=w["[object Int8Array]"]=w["[object Int16Array]"]=w["[object Int32Array]"]=w["[object Uint8Array]"]=w["[object Uint8ClampedArray]"]=w["[object Uint16Array]"]=w["[object Uint32Array]"]=!0,w[i]=w[s]=w[y]=w[a]=w[I]=w[l]=w[c]=w[u]=w[d]=w[f]=w[p]=w[m]=w[b]=w[g]=w[_]=!1;var G="object"==typeof o&&o&&o.Object===Object&&o,B="object"==typeof self&&self&&self.Object===Object&&self,A=G||B||Function("return this")(),F=t&&!t.nodeType&&t,N=F&&e&&!e.nodeType&&e,X=N&&N.exports===F,R=X&&G.process,Z=function(){try{return R&&R.binding&&R.binding("util")}catch(e){}}(),Q=Z&&Z.isTypedArray;function k(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function L(e,t){return e.has(t)}function W(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function E(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var V,U,D,S=Array.prototype,O=Function.prototype,M=Object.prototype,Y=A["__core-js_shared__"],j=O.toString,T=M.hasOwnProperty,H=(V=/[^.]+$/.exec(Y&&Y.keys&&Y.keys.IE_PROTO||""))?"Symbol(src)_1."+V:"",J=M.toString,z=RegExp("^"+j.call(T).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),P=X?A.Buffer:void 0,K=A.Symbol,q=A.Uint8Array,$=M.propertyIsEnumerable,ee=S.splice,te=K?K.toStringTag:void 0,ne=Object.getOwnPropertySymbols,re=P?P.isBuffer:void 0,oe=(U=Object.keys,D=Object,function(e){return U(D(e))}),ie=Qe(A,"DataView"),se=Qe(A,"Map"),ae=Qe(A,"Promise"),le=Qe(A,"Set"),ce=Qe(A,"WeakMap"),ue=Qe(Object,"create"),de=Ee(ie),fe=Ee(se),pe=Ee(ae),he=Ee(le),me=Ee(ce),be=K?K.prototype:void 0,ge=be?be.valueOf:void 0;function ve(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function _e(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ye(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ie(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new ye;++t<n;)this.add(e[t])}function xe(e){var t=this.__data__=new _e(e);this.size=t.size}function Ce(e,t){var n=De(e),r=!n&&Ue(e),o=!n&&!r&&Se(e),i=!n&&!r&&!o&&Te(e),s=n||r||o||i,a=s?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=a.length;for(var c in e)!T.call(e,c)||s&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||We(c,l))||a.push(c);return a}function we(e,t){for(var n=e.length;n--;)if(Ve(e[n][0],t))return n;return-1}function Ge(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":te&&te in Object(e)?function(e){var t=T.call(e,te),n=e[te];try{e[te]=void 0;var r=!0}catch(e){}var o=J.call(e);r&&(t?e[te]=n:delete e[te]);return o}(e):function(e){return J.call(e)}(e)}function Be(e){return je(e)&&Ge(e)==i}function Ae(e,t,n,r,o){return e===t||(null==e||null==t||!je(e)&&!je(t)?e!=e&&t!=t:function(e,t,n,r,o,u){var h=De(e),_=De(t),x=h?s:Le(e),C=_?s:Le(t),w=(x=x==i?p:x)==p,G=(C=C==i?p:C)==p,B=x==C;if(B&&Se(e)){if(!Se(t))return!1;h=!0,w=!1}if(B&&!w)return u||(u=new xe),h||Te(e)?Xe(e,t,n,r,o,u):function(e,t,n,r,o,i,s){switch(n){case I:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case y:return!(e.byteLength!=t.byteLength||!i(new q(e),new q(t)));case a:case l:case f:return Ve(+e,+t);case c:return e.name==t.name&&e.message==t.message;case m:case g:return e==t+"";case d:var u=W;case b:var p=1&r;if(u||(u=E),e.size!=t.size&&!p)return!1;var h=s.get(e);if(h)return h==t;r|=2,s.set(e,t);var _=Xe(u(e),u(t),r,o,i,s);return s.delete(e),_;case v:if(ge)return ge.call(e)==ge.call(t)}return!1}(e,t,x,n,r,o,u);if(!(1&n)){var A=w&&T.call(e,"__wrapped__"),F=G&&T.call(t,"__wrapped__");if(A||F){var N=A?e.value():e,X=F?t.value():t;return u||(u=new xe),o(N,X,n,r,u)}}if(!B)return!1;return u||(u=new xe),function(e,t,n,r,o,i){var s=1&n,a=Re(e),l=a.length,c=Re(t),u=c.length;if(l!=u&&!s)return!1;var d=l;for(;d--;){var f=a[d];if(!(s?f in t:T.call(t,f)))return!1}var p=i.get(e);if(p&&i.get(t))return p==t;var h=!0;i.set(e,t),i.set(t,e);var m=s;for(;++d<l;){var b=e[f=a[d]],g=t[f];if(r)var v=s?r(g,b,f,t,e,i):r(b,g,f,e,t,i);if(!(void 0===v?b===g||o(b,g,n,r,i):v)){h=!1;break}m||(m="constructor"==f)}if(h&&!m){var _=e.constructor,y=t.constructor;_==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof y&&y instanceof y||(h=!1)}return i.delete(e),i.delete(t),h}(e,t,n,r,o,u)}(e,t,n,r,Ae,o))}function Fe(e){return!(!Ye(e)||function(e){return!!H&&H in e}(e))&&(Oe(e)?z:x).test(Ee(e))}function Ne(e){if(!function(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||M;return e===n}(e))return oe(e);var t=[];for(var n in Object(e))T.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Xe(e,t,n,r,o,i){var s=1&n,a=e.length,l=t.length;if(a!=l&&!(s&&l>a))return!1;var c=i.get(e);if(c&&i.get(t))return c==t;var u=-1,d=!0,f=2&n?new Ie:void 0;for(i.set(e,t),i.set(t,e);++u<a;){var p=e[u],h=t[u];if(r)var m=s?r(h,p,u,t,e,i):r(p,h,u,e,t,i);if(void 0!==m){if(m)continue;d=!1;break}if(f){if(!k(t,(function(e,t){if(!L(f,t)&&(p===e||o(p,e,n,r,i)))return f.push(t)}))){d=!1;break}}else if(p!==h&&!o(p,h,n,r,i)){d=!1;break}}return i.delete(e),i.delete(t),d}function Re(e){return function(e,t,n){var r=t(e);return De(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,He,ke)}function Ze(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function Qe(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Fe(n)?n:void 0}ve.prototype.clear=function(){this.__data__=ue?ue(null):{},this.size=0},ve.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ve.prototype.get=function(e){var t=this.__data__;if(ue){var r=t[e];return r===n?void 0:r}return T.call(t,e)?t[e]:void 0},ve.prototype.has=function(e){var t=this.__data__;return ue?void 0!==t[e]:T.call(t,e)},ve.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ue&&void 0===t?n:t,this},_e.prototype.clear=function(){this.__data__=[],this.size=0},_e.prototype.delete=function(e){var t=this.__data__,n=we(t,e);return!(n<0)&&(n==t.length-1?t.pop():ee.call(t,n,1),--this.size,!0)},_e.prototype.get=function(e){var t=this.__data__,n=we(t,e);return n<0?void 0:t[n][1]},_e.prototype.has=function(e){return we(this.__data__,e)>-1},_e.prototype.set=function(e,t){var n=this.__data__,r=we(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ye.prototype.clear=function(){this.size=0,this.__data__={hash:new ve,map:new(se||_e),string:new ve}},ye.prototype.delete=function(e){var t=Ze(this,e).delete(e);return this.size-=t?1:0,t},ye.prototype.get=function(e){return Ze(this,e).get(e)},ye.prototype.has=function(e){return Ze(this,e).has(e)},ye.prototype.set=function(e,t){var n=Ze(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Ie.prototype.add=Ie.prototype.push=function(e){return this.__data__.set(e,n),this},Ie.prototype.has=function(e){return this.__data__.has(e)},xe.prototype.clear=function(){this.__data__=new _e,this.size=0},xe.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},xe.prototype.get=function(e){return this.__data__.get(e)},xe.prototype.has=function(e){return this.__data__.has(e)},xe.prototype.set=function(e,t){var n=this.__data__;if(n instanceof _e){var r=n.__data__;if(!se||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ye(r)}return n.set(e,t),this.size=n.size,this};var ke=ne?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var s=e[n];t(s,n,e)&&(i[o++]=s)}return i}(ne(e),(function(t){return $.call(e,t)})))}:function(){return[]},Le=Ge;function We(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||C.test(e))&&e>-1&&e%1==0&&e<t}function Ee(e){if(null!=e){try{return j.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ve(e,t){return e===t||e!=e&&t!=t}(ie&&Le(new ie(new ArrayBuffer(1)))!=I||se&&Le(new se)!=d||ae&&Le(ae.resolve())!=h||le&&Le(new le)!=b||ce&&Le(new ce)!=_)&&(Le=function(e){var t=Ge(e),n=t==p?e.constructor:void 0,r=n?Ee(n):"";if(r)switch(r){case de:return I;case fe:return d;case pe:return h;case he:return b;case me:return _}return t});var Ue=Be(function(){return arguments}())?Be:function(e){return je(e)&&T.call(e,"callee")&&!$.call(e,"callee")},De=Array.isArray;var Se=re||function(){return!1};function Oe(e){if(!Ye(e))return!1;var t=Ge(e);return t==u||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Me(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}function Ye(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function je(e){return null!=e&&"object"==typeof e}var Te=Q?function(e){return function(t){return e(t)}}(Q):function(e){return je(e)&&Me(e.length)&&!!w[Ge(e)]};function He(e){return function(e){return null!=e&&Me(e.length)&&!Oe(e)}(e)?Ce(e):Ne(e)}e.exports=function(e,t){return Ae(e,t)}}(zc,zc.exports)),zc.exports}function Kc(){if(yc)return _c;yc=1;var e=zs();return _c={isValidAddress:function(t,n,r){var o=function(t){if("string"!=typeof t)return!1;if(34!==t.length)return!1;try{var n=e.base58(t)}catch(e){return!1}var r=n.length-4,o=n.slice(r);n=n.slice(0,r);var i=e.sha256(e.byteArray2hexStr(n)),s=e.hexStr2byteArray(e.sha256(i)).slice(0,4);return o[0]===s[0]&&o[1]===s[1]&&o[2]===s[2]&&o[3]===s[3]&&n}(t);if(!o)return!1;if(21!==o.length)return!1;return 65===o[0]}}}function qc(){if(wc)return Cc;wc=1;var e=zs(),t=qs(),n=$s();return Cc={isValidAddress:function(r,o,i){return function(n,r,o){var i,s=o?o.networkType:"",a="bitcoincash",l=new RegExp(r.regexp),c=n.split(":");if(1===c.length)i=n;else{if("bitcoincash"!==c[0])return!1;i=c[1]}if(!l.test(i))return!1;if(i.toLowerCase()!=i&&i.toUpperCase()!=i)return!1;var u=e.base32.b32decode(i);"testnet"===s&&(a="bchtest");try{if(t.verifyChecksum(a,u,t.encodings.BECH32))return!1}catch(e){return!1}return!0}(r,o,i)||n.isValidAddress(r,o,i)}},Cc}function $c(){if(Xc)return Nc;Xc=1;const e=Hs(),t=zs(),n=new Uint8Array([6,161,159]);return Nc={isValidAddress:function(r){try{let o=function(e){let n=e.slice(0,-4),r=e.slice(-4),o=t.hexStr2byteArray(t.sha256x2(t.byteArray2hexStr(n)));if(!(r[0]^o[0]|r[1]^o[1]|r[2]^o[2]|r[3]^o[3]))return n}(e.decode(r));return!!o&&(o.slice(n.length),!0)}catch(e){return!1}}},Nc}function eu(){if(Zc)return Rc;Zc=1;const e=Hs();return Rc={isValidAddress:function(t,n,r={}){try{if(!t||0==t.length)return!1;if(n.minLength&&t.length<n.minLength)return!1;if(n.maxLength&&t.length>n.maxLength)return!1;try{const n=e.decode(t);if(!n||!n.length)return!1}catch(e){return!1}return!0}catch(e){return!1}}}}function tu(){if(kc)return Qc;kc=1;var e=$s(),t=Ks(),n=Kc(),r=eu();const o=(e,t,n)=>r.isValidAddress(e,{...t,maxLength:44,minLength:43},n);return Qc={isValidAddress:function(r,i,s){if(s){switch(s.chainType?s.chainType.toLowerCase():""){case"erc20":case"ethereum":return t.isValidAddress(r,i,s.networkType);case"omni":return e.isValidAddress(r,i,s.networkType);case"tron":return n.isValidAddress(r,i,s.networkType);case"solana":return o(r,i,s.networkType)}}return function(r,i,s){return e.isValidAddress(r,i,s)||t.isValidAddress(r,i,s)||n.isValidAddress(r,i,s)||o(r,i,s)}(r,i,s)}}}function nu(){if(Wc)return Lc;Wc=1;var e=Ks(),t=eu();const n=(e,n,r)=>t.isValidAddress(e,{...n,maxLength:44,minLength:43},r);return Lc={isValidAddress:function(t,r,o){if(o)switch(o.chainType){case"arbitrum":case"avalanche":case"erc20":case"ethereum":return e.isValidAddress(t,r,o.networkType);case"solana":return n(t,r,o.networkType)}return function(t,r,o){return e.isValidAddress(t,r,o)||n(t,r,o)}(t,r,o)}}}function ru(){if(Tc)return jc;Tc=1;var e=function(){if(Ws)return Ls;Ws=1;var e=zs(),t="rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz",n=Ps()(t),r=new RegExp("^r["+t+"]{27,35}$");return Ls={isValidAddress:function(e){return!!r.test(e)&&this.verifyChecksum(e)},verifyChecksum:function(t){var r=n.decode(t);return e.sha256Checksum(e.toHex(r.slice(0,-4)))===e.toHex(r.slice(-4))}}}(),t=Ks(),n=$s(),r=ic(),o=mc(),i=function(){if(fc)return dc;fc=1;var e=zs(),t="13456789abcdefghijkmnopqrstuwxyz",n=Ps()(t),r=new RegExp("^(xrb|nano)_(["+t+"]{60})$");return dc={isValidAddress:function(e){return!!r.test(e)&&this.verifyChecksum(e)},verifyChecksum:function(t){var o=n.decode(r.exec(t)[2]).slice(-37);return e.blake2b(e.toHex(o.slice(0,-5)),5)===e.toHex(o.slice(-5).reverse())}}}(),s=function(){if(vc)return gc;vc=1;var e=zs(),t=Pc();return gc={isValidAddress:function(e){return 76===e.length&&this.verifyChecksum(e)},verifyChecksum:function(n){var r=n.slice(0,64),o=n.slice(64,76),i=e.blake2b(r,32).slice(0,12);return!!t(i,o)}}}(),a=Kc(),l=function(){if(xc)return Ic;xc=1;var e=zs();return Ic={isValidAddress:function(t){var n=t.toString().toUpperCase().replace(/-/g,"");if(!n||40!==n.length)return!1;var r=e.toHex(e.base32.b32decode(n));return e.keccak256Checksum(ms.Buffer.from(r.slice(0,42),"hex"))===r.slice(42)}}}(),c=qc(),u=function(){if(Bc)return Gc;Bc=1;var e=Ps(),t=rc(),n=zs(),r="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",o=e(r),i=new RegExp("^["+r+"]{56}$");return Gc={isValidAddress:function(e){return!!i.test(e)&&this.verifyChecksum(e)},verifyChecksum:function(e){var r,i=o.decode(e);return 48===i[0]&&n.numberToHex((255&(r=t.crc16xmodem(i.slice(0,-2))))<<8|r>>8&255,4)===n.toHex(i.slice(-2))}}}(),d=Fc?Ac:(Fc=1,Ac={isValidAddress:function(e,t,n){return function(e){return-1!==e.search(/^[a-z0-9.]+$/g)&&12===e.length}(e)}}),f=$c(),p=tu(),h=nu(),m=function(){if(Vc)return Ec;Vc=1;const e=zs();return Ec={isValidAddress:function(e,t,n={}){const{networkType:r="prod"}=n;return this.verifyChecksum(e)},verifyChecksum:function(t){if(58!==t.length)return!1;{const n=e.base32.b32decode(t),r=n.slice(0,n.length-4),o=e.byteArray2hexStr(n.slice(-4)).toString("HEX");return e.sha512_256(e.byteArray2hexStr(r)).substr(-8)===o}}}}(),b=function(){if(Dc)return Uc;Dc=1;const e=zs(),t=[{addressLength:3,accountIndexLength:1,checkSumLength:1},{addressLength:4,accountIndexLength:2,checkSumLength:1},{addressLength:5,accountIndexLength:2,checkSumLength:2},{addressLength:6,accountIndexLength:4,checkSumLength:1},{addressLength:7,accountIndexLength:4,checkSumLength:2},{addressLength:8,accountIndexLength:4,checkSumLength:3},{addressLength:9,accountIndexLength:4,checkSumLength:4},{addressLength:10,accountIndexLength:8,checkSumLength:1},{addressLength:11,accountIndexLength:8,checkSumLength:2},{addressLength:12,accountIndexLength:8,checkSumLength:3},{addressLength:13,accountIndexLength:8,checkSumLength:4},{addressLength:14,accountIndexLength:8,checkSumLength:5},{addressLength:15,accountIndexLength:8,checkSumLength:6},{addressLength:16,accountIndexLength:8,checkSumLength:7},{addressLength:17,accountIndexLength:8,checkSumLength:8},{addressLength:34,accountIndexLength:32,checkSumLength:2}];return Uc={isValidAddress:function(e,t,n={}){const{networkType:r="prod"}=n;return this.verifyChecksum(e)},verifyChecksum:function(n){try{const r="53533538505245",o=e.base58(n),i=e.byteArray2hexStr(o.slice(0,1)),s=o.slice(1),a=t.find((e=>e.addressLength===s.length));if(!a)throw new Error("Invalid address length");const l=e.byteArray2hexStr(s.slice(0,a.accountIndexLength)),c=e.byteArray2hexStr(s.slice(-a.checkSumLength));return e.blake2b(r+i+l,64).substr(0,2*a.checkSumLength).toUpperCase()==c}catch(e){return!1}}}}(),g=oc(),v=eu(),_=[{name:"Bitcoin",symbol:"btc",addressTypes:{prod:["00","05"],testnet:["6f","c4","3c","26"]},bech32Hrp:{prod:["bc"],testnet:["tb"]},validator:n},{name:"BitcoinCash",symbol:"bch",regexp:"^[qQpP]{1}[0-9a-zA-Z]{41}$",addressTypes:{prod:["00","05"],testnet:["6f","c4"]},validator:c},{name:"Bitcoin SV",symbol:"bsv",regexp:"^[qQ]{1}[0-9a-zA-Z]{41}$",addressTypes:{prod:["00","05"],testnet:["6f","c4"]},validator:c},{name:"LiteCoin",symbol:"ltc",addressTypes:{prod:["30","05","32"],testnet:["6f","c4","3a"]},bech32Hrp:{prod:["ltc"],testnet:["tltc"]},validator:n},{name:"PeerCoin",symbol:"ppc",addressTypes:{prod:["37","75"],testnet:["6f","c4"]},validator:n},{name:"DogeCoin",symbol:"doge",addressTypes:{prod:["1e","16"],testnet:["71","c4"]},validator:n},{name:"BeaverCoin",symbol:"bvc",addressTypes:{prod:["19","05"],testnet:["6f","c4"]},validator:n},{name:"FreiCoin",symbol:"frc",addressTypes:{prod:["00","05"],testnet:["6f","c4"]},validator:n},{name:"ProtoShares",symbol:"pts",addressTypes:{prod:["38","05"],testnet:["6f","c4"]},validator:n},{name:"MegaCoin",symbol:"mec",addressTypes:{prod:["32","05"],testnet:["6f","c4"]},validator:n},{name:"PrimeCoin",symbol:"xpm",addressTypes:{prod:["17","53"],testnet:["6f","c4"]},validator:n},{name:"AuroraCoin",symbol:"aur",addressTypes:{prod:["17","05"],testnet:["6f","c4"]},validator:n},{name:"NameCoin",symbol:"nmc",addressTypes:{prod:["34"],testnet:[]},validator:n},{name:"BioCoin",symbol:"bio",addressTypes:{prod:["19","14"],testnet:["6f","c4"]},validator:n},{name:"GarliCoin",symbol:"grlc",addressTypes:{prod:["26","05"],testnet:["6f","c4"]},validator:n},{name:"VertCoin",symbol:"vtc",addressTypes:{prod:["0x","47","71","05"],testnet:["6f","c4"]},bech32Hrp:{prod:["vtc"],testnet:["tvtc"]},validator:n},{name:"BitcoinGold",symbol:"btg",addressTypes:{prod:["26","17"],testnet:["6f","c4"]},validator:n},{name:"Komodo",symbol:"kmd",addressTypes:{prod:["3c","55"],testnet:["0","5"]},validator:n},{name:"BitcoinZ",symbol:"btcz",expectedLength:26,addressTypes:{prod:["1cb8","1cbd"],testnet:["1d25","1cba"]},validator:n},{name:"BitcoinPrivate",symbol:"btcp",expectedLength:26,addressTypes:{prod:["1325","13af"],testnet:["1957","19e0"]},validator:n},{name:"Hush",symbol:"hush",expectedLength:26,addressTypes:{prod:["1cb8","1cbd"],testnet:["1d25","1cba"]},validator:n},{name:"SnowGem",symbol:"sng",expectedLength:26,addressTypes:{prod:["1c28","1c2d"],testnet:["1d25","1cba"]},validator:n},{name:"ZCash",symbol:"zec",expectedLength:26,addressTypes:{prod:["1cb8","1cbd"],testnet:["1d25","1cba"]},validator:n},{name:"ZClassic",symbol:"zcl",expectedLength:26,addressTypes:{prod:["1cb8","1cbd"],testnet:["1d25","1cba"]},validator:n},{name:"ZenCash",symbol:"zen",expectedLength:26,addressTypes:{prod:["2089","2096"],testnet:["2092","2098"]},validator:n},{name:"VoteCoin",symbol:"vot",expectedLength:26,addressTypes:{prod:["1cb8","1cbd"],testnet:["1d25","1cba"]},validator:n},{name:"Decred",symbol:"dcr",addressTypes:{prod:["073f","071a"],testnet:["0f21","0efc"]},hashFunction:"blake256",expectedLength:26,validator:n},{name:"GameCredits",symbol:"game",addressTypes:{prod:["26","05"],testnet:[]},validator:t},{name:"PIVX",symbol:"pivx",addressTypes:{prod:["1e","0d"],testnet:[]},validator:n},{name:"SolarCoin",symbol:"slr",addressTypes:{prod:["12","05"],testnet:[]},validator:n},{name:"DigiByte",symbol:"dgb",addressTypes:{prod:["1e","3f"],testnet:[]},bech32Hrp:{prod:["dgb","S"],testnet:[]},validator:n},{name:"Tether",symbol:"usdt",addressTypes:{prod:["00","05","65"],testnet:["6f","c4","65"]},validator:p},{name:"Ripple",symbol:"xrp",validator:e},{name:"Dash",symbol:"dash",addressTypes:{prod:["4c","10"],testnet:["8c","13"]},validator:n},{name:"Neo",symbol:"neo",addressTypes:{prod:["17"],testnet:[]},validator:n},{name:"NeoGas",symbol:"gas",addressTypes:{prod:["17"],testnet:[]},validator:n},{name:"Qtum",symbol:"qtum",addressTypes:{prod:["3a","32"],testnet:["78","6e"]},validator:n},{name:"Waves",symbol:"waves",addressTypes:{prod:["0157"],testnet:["0154"]},expectedLength:26,hashFunction:"blake256keccak256",regex:/^[a-zA-Z0-9]{35}$/,validator:n},{name:"Aptos",symbol:"apt",validator:Oc?Sc:(Oc=1,Sc={isValidAddress:function(e){return!!/^0x[0-9a-fA-F]{64}$/.test(e)}})},{name:"Ethereum",symbol:"eth",validator:t},{name:"EthereumPow",symbol:"ethw",validator:t},{name:"EtherZero",symbol:"etz",validator:t},{name:"EthereumClassic",symbol:"etc",validator:t},{name:"Celo",symbol:"celo",validator:t},{name:"Callisto",symbol:"clo",validator:t},{name:"Bankex",symbol:"bkx",validator:t},{name:"Cardano",symbol:"ada",bech32Hrp:{prod:["addr"],testnet:["addr_test"]},validator:r},{name:"Monero",symbol:"xmr",addressTypes:{prod:["18","42"],testnet:["53","63"],stagenet:["24"]},iAddressTypes:{prod:["19"],testnet:["54"],stagenet:["25"]},validator:o},{name:"Aragon",symbol:"ant",validator:t},{name:"Basic Attention Token",symbol:"bat",validator:t},{name:"Bancor",symbol:"bnt",validator:t},{name:"Civic",symbol:"cvc",validator:t},{name:"District0x",symbol:"dnt",validator:t},{name:"Gnosis",symbol:"gno",validator:t},{name:"Golem (GNT)",symbol:"gnt",validator:t},{name:"Golem",symbol:"glm",validator:t},{name:"Matchpool",symbol:"gup",validator:t},{name:"Melon",symbol:"mln",validator:t},{name:"Numeraire",symbol:"nmr",validator:t},{name:"OmiseGO",symbol:"omg",validator:t},{name:"TenX",symbol:"pay",validator:t},{name:"Ripio Credit Network",symbol:"rcn",validator:t},{name:"Augur",symbol:"rep",validator:t},{name:"iExec RLC",symbol:"rlc",validator:t},{name:"Salt",symbol:"salt",validator:t},{name:"Status",symbol:"snt",validator:t},{name:"Storj",symbol:"storj",validator:t},{name:"Swarm City",symbol:"swt",validator:t},{name:"TrueUSD",symbol:"tusd",validator:t},{name:"Wings",symbol:"wings",validator:t},{name:"0x",symbol:"zrx",validator:t},{name:"Expanse",symbol:"exp",validator:t},{name:"Viberate",symbol:"vib",validator:t},{name:"Odyssey",symbol:"ocn",validator:t},{name:"Polymath",symbol:"poly",validator:t},{name:"Storm",symbol:"storm",validator:t},{name:"Nano",symbol:"nano",validator:i},{name:"RaiBlocks",symbol:"xrb",validator:i},{name:"Siacoin",symbol:"sc",validator:s},{name:"HyperSpace",symbol:"xsc",validator:s},{name:"loki",symbol:"loki",addressTypes:{prod:["114","115","116"],testnet:[]},iAddressTypes:{prod:["115"],testnet:[]},validator:o},{name:"LBRY Credits",symbol:"lbc",addressTypes:{prod:["55"],testnet:[]},validator:n},{name:"Tron",symbol:"trx",validator:a},{name:"Nem",symbol:"xem",validator:l},{name:"Stellar",symbol:"xlm",validator:u},{name:"BTU Protocol",symbol:"btu",validator:t},{name:"Crypto.com Coin",symbol:"cro",bech32Hrp:{prod:["cro"],testnet:["tcro"]},validator:g},{name:"Multi-collateral DAI",symbol:"dai",validator:t},{name:"Enjin Coin",symbol:"enj",validator:t},{name:"HedgeTrade",symbol:"hedg",validator:t},{name:"Cred",symbol:"lba",validator:t},{name:"Chainlink",symbol:"link",validator:t},{name:"Loom Network",symbol:"loom",validator:t},{name:"Maker",symbol:"mkr",validator:t},{name:"Metal",symbol:"mtl",validator:t},{name:"Ocean Protocol",symbol:"ocean",validator:t},{name:"Quant",symbol:"qnt",validator:t},{name:"Synthetix Network",symbol:"snx",validator:t},{name:"SOLVE",symbol:"solve",validator:t},{name:"Spendcoin",symbol:"spnd",validator:t},{name:"TEMCO",symbol:"temco",validator:t},{name:"EOS",symbol:"eos",validator:d},{name:"Tezos",symbol:"xtz",validator:f},{name:"VeChain",symbol:"vet",validator:t},{name:"StormX",symbol:"stmx",validator:t},{name:"AugurV2",symbol:"repv2",validator:t},{name:"FirmaChain",symbol:"fct",validator:t},{name:"BlockTrade",symbol:"btt",validator:t},{name:"Quantum Resistant Ledger",symbol:"qrl",validator:t},{name:"Serve",symbol:"serv",validator:t},{name:"Tap",symbol:"xtp",validator:t},{name:"Compound",symbol:"comp",validator:t},{name:"Paxos",symbol:"pax",validator:t},{name:"USD Coin",symbol:"usdc",validator:h},{name:"CUSD",symbol:"cusd",validator:t},{name:"Algorand",symbol:"algo",validator:m},{name:"Polkadot",symbol:"dot",validator:b},{name:"Uniswap Coin",symbol:"uni",validator:t},{name:"Aave Coin",symbol:"aave",validator:t},{name:"Matic",symbol:"matic",validator:t},{name:"Decentraland",symbol:"mana",validator:t},{name:"Solana",symbol:"sol",validator:v,maxLength:44,minLength:43},{name:"Bonk",symbol:"bonk",validator:v,maxLength:44,minLength:43},{name:"Binance",symbol:"bnb",validator:t},{name:"BinanceSmartChain",symbol:"bnb",validator:t},{name:"Avalanche",symbol:"avax",validator:t},{name:"Arbitrum",symbol:"arb",validator:t},{name:"Flare",symbol:"flr",validator:t},{name:"Yearn.finance",symbol:"yfi",validator:t},{name:"Optimism",symbol:"op",validator:t},{name:"Lido DAO Token",symbol:"ldo",validator:t},{name:"Curve DAO",symbol:"crv",validator:t},{name:"Arbitrum",symbol:"arb",validator:t},{name:"Hashflow",symbol:"hft",validator:t},{name:"Apecoin",symbol:"ape",validator:t},{name:"Band Protocol",symbol:"band",validator:t},{name:"The Graph",symbol:"grt",validator:t},{name:"Magic",symbol:"magic",validator:t},{name:"Biconomy",symbol:"bico",validator:t},{name:"API3",symbol:"api3",validator:t},{name:"Axie Infinity",symbol:"axs",validator:t},{name:"Blur",symbol:"blur",validator:t},{name:"Chiliz",symbol:"chz",validator:t},{name:"Ethereum Name Service",symbol:"ens",validator:t},{name:"Fetch.ai",symbol:"fet",validator:t},{name:"Illuvium",symbol:"ilv",validator:t},{name:"Injective",symbol:"inj",validator:t},{name:"Immutable",symbol:"imx",validator:t},{name:"Mask Network",symbol:"mask",validator:t},{name:"Origin Protocol",symbol:"ogn",validator:t},{name:"Onyx Protocol",symbol:"xcn",validator:t},{name:"Unifi Protocol DAO",symbol:"unfi",validator:t},{name:"Tellor",symbol:"trb",validator:t},{name:"SuperVerse",symbol:"super",validator:t},{name:"Sonic",symbol:"s",validator:t},{name:"Skale",symbol:"skl",validator:t},{name:"The Sandbox",symbol:"sand",validator:t},{name:"Vulcan Forged PYR",symbol:"pyr",validator:t},{name:"Marlin",symbol:"pond",validator:t},{name:"PayPal USD",symbol:"pyusd",validator:t},{name:"Hedera",symbol:"hbar",validator:Yc?Mc:(Yc=1,zs(),Mc={isValidAddress:function(e){if(!/^\d+\.\d+\.\d+$/.test(e))return!1;const[t,n,r]=e.split(".").map(Number);return Number.isInteger(t)&&t>=0&&Number.isInteger(n)&&n>=0&&Number.isInteger(r)&&r>=0}})},{name:"Berachain",symbol:"bera",validator:t},{name:"Story",symbol:"ip",validator:t}];const y={};return _.forEach((e=>{const{name:t,validator:n,addressTypes:r,iAddressTypes:o,bech32Hrp:i,maxLength:s,minLength:a,regexp:l,expectedLength:c,hashFunction:u}=e;y[t.toLowerCase()]={validator:n,addressTypes:r,bech32Hrp:i,maxLength:s,minLength:a,iAddressTypes:o,regexp:l,expectedLength:c,hashFunction:u}})),jc={getByNameOrSymbol:function(e){var t=e.toLowerCase();return _.find((function(e){return e.name.toLowerCase()===t||e.symbol.toLowerCase()===t}))},getAll:function(){return _},chainTypeToValidator:y}}var ou=function(){if(Jc)return Hc;Jc=1,o.Buffer||(o.Buffer=ps().Buffer);var e=ru();return Hc={validate:function(t,n,r){var o=e.getByNameOrSymbol(n||"bitcoin");if(r&&r.chainType){var i=r.chainType.toLowerCase(),s=e.chainTypeToValidator[i];if(s)return s.validator.isValidAddress(t,{...r,...s},r)}if(o&&o.validator)return r&&"string"==typeof r?o.validator.isValidAddress(t,o,{networkType:r}):o.validator.isValidAddress(t,o,r);throw new Error("Missing validator for currency: "+n)},getCurrencies:function(){return e.getAll()},findCurrency:function(t){return e.getByNameOrSymbol(t)||null},getChainTypeToValidators:function(){return e.chainTypeToValidator}}}(),iu=i(ou),su=function(t){var n,r,o=t.apiKey,i=t.redirectUrl,s=t.parameters,a=t.clientReferenceID,l=t.mode,c=zr().addToast,u=e.useState(!1),d=u[0],f=u[1],v=e.useState([]),_=v[0],y=v[1],I=e.useState([]),x=I[0],C=I[1],w=e.useState(null),G=w[0],B=w[1],A=e.useState(null),F=A[0],N=A[1],X=e.useState(0),R=X[0],Z=X[1],Q=e.useState(0),k=Q[0],L=Q[1],W=e.useState(null),E=W[0],V=W[1],U=e.useState(null),D=U[0],S=U[1],O=e.useState({min:!1,max:!1}),M=O[0],Y=O[1],j=e.useState(0),T=j[0],H=j[1],J=e.useState(!0),z=J[0],P=J[1],K=e.useState(1),q=K[0],$=K[1],ee=e.useState(),te=ee[0],ne=ee[1],re=e.useState(""),oe=re[0],ie=re[1],se=e.useState(""),ae=se[0],le=se[1],ce=e.useState({from_amount:(null==s?void 0:s.from_amount)&&parseFloat(null==s?void 0:s.from_amount)>0?s.from_amount:"0",selectedCrypto:s.token_type,selectedFiat:"",minAmount:"0.0000001",maxAmount:"1000.00000"}),ue=ce[0],de=ce[1];e.useEffect((function(){fe(),pe()}),[]);var fe=function(){var e=no(l);Pr({url:"".concat(e,"/api/lookup/currencies"),headers:{"Content-Type":"application/json","X-API-KEY":o,"User-Id":a},onSuccess:function(e){(null==e?void 0:e.success)&&S(null==e?void 0:e.data)},onError:function(){c("Error fetching currency","error")}})},pe=function(){var e=no(l);Pr({url:"".concat(e,"/api/lookup/commissions"),headers:{"Content-Type":"application/json","X-API-KEY":o,"User-Id":a},onSuccess:function(e){var t,n,r,o;if(null==e?void 0:e.success){var i=(null===(n=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.rules)||void 0===n?void 0:n.find((function(e){return"onramp"===(null==e?void 0:e.service)})))||null;V(i),i&&de(m(m({},ue),{minAmount:null===(r=null==i?void 0:i.schema)||void 0===r?void 0:r.min,maxAmount:null===(o=null==i?void 0:i.schema)||void 0===o?void 0:o.max}))}},onError:function(){c("Error fetching comission","error")}})};e.useEffect((function(){var e,t,n,r,o,i,a,l,c;if(D){var u=null===(t=null===(e=null==D?void 0:D.currencies)||void 0===e?void 0:e.filter((function(e){var t;return"FIAT"===(null===(t=null==e?void 0:e.supported_currency)||void 0===t?void 0:t.type)&&"onramp"===(null==e?void 0:e.service)})))||void 0===t?void 0:t.map((function(e){var t,n;return{label:null===(t=null==e?void 0:e.supported_currency)||void 0===t?void 0:t.code,value:null==e?void 0:e.unique_id,icon:null===(n=null==e?void 0:e.supported_currency)||void 0===n?void 0:n.icon}}));y(u);var d=(null==ue?void 0:ue.selectedFiat)?(null==D?void 0:D.currencies.find((function(e){var t;return(null===(t=null==e?void 0:e.supported_currency)||void 0===t?void 0:t.code)===(null==ue?void 0:ue.selectedFiat)})))||(null===(n=null==D?void 0:D.currencies)||void 0===n?void 0:n.find((function(e){var t,n;return(null===(t=null==e?void 0:e.supported_currency)||void 0===t?void 0:t.code)===(null===(n=null==u?void 0:u[0])||void 0===n?void 0:n.label)}))):null===(r=null==D?void 0:D.currencies)||void 0===r?void 0:r.find((function(e){var t,n;return(null===(t=null==e?void 0:e.supported_currency)||void 0===t?void 0:t.code)===(null===(n=null==u?void 0:u[0])||void 0===n?void 0:n.label)})),f=ue.selectedFiat&&u.find((function(e){return e.label===ue.selectedFiat}))||(null==u?void 0:u[0]);N(f);var p=(null===(i=null===(o=null==D?void 0:D.currencies)||void 0===o?void 0:o.filter((function(e){var t;return"CRYPTO"===(null===(t=null==e?void 0:e.supported_currency)||void 0===t?void 0:t.type)&&"onramp"===(null==e?void 0:e.service)})))||void 0===i?void 0:i.map((function(e){var t,n;return{label:null===(t=null==e?void 0:e.supported_currency)||void 0===t?void 0:t.code,value:null==e?void 0:e.unique_id,icon:null===(n=null==e?void 0:e.supported_currency)||void 0===n?void 0:n.icon}})))||[];C(p);var h=(null==s?void 0:s.token_type)?(null===(a=null==D?void 0:D.currencies)||void 0===a?void 0:a.find((function(e){var t;return(null===(t=null==e?void 0:e.supported_currency)||void 0===t?void 0:t.code)===(null==s?void 0:s.token_type)})))||(null===(l=null==D?void 0:D.currencies)||void 0===l?void 0:l.find((function(e){var t,n;return(null===(t=null==e?void 0:e.supported_currency)||void 0===t?void 0:t.code)===(null===(n=null==p?void 0:p[0])||void 0===n?void 0:n.label)}))):null===(c=null==D?void 0:D.currencies)||void 0===c?void 0:c.find((function(e){var t,n;return(null===(t=null==e?void 0:e.supported_currency)||void 0===t?void 0:t.code)===(null===(n=null==p?void 0:p[0])||void 0===n?void 0:n.label)}));B((null==s?void 0:s.token_type)?p.find((function(e){return e.label===(null==s?void 0:s.token_type)}))||(null==p?void 0:p[0]):(null==p?void 0:p[0])||[]),de((function(e){var t,n;return m(m({},e),{selectedCrypto:(null===(t=null==h?void 0:h.supported_currency)||void 0===t?void 0:t.code)||"",selectedFiat:(null===(n=null==d?void 0:d.supported_currency)||void 0===n?void 0:n.code)||""})}))}}),[D]);e.useEffect((function(){var e=setTimeout((function(){F&&G&&he()}),300);return function(){return clearTimeout(e)}}),[F,G,ue]);var he=function(){return b(void 0,void 0,void 0,(function(){var e,t,n;return g(this,(function(r){switch(r.label){case 0:if(e=no(l),P(!0),L(0),Z(0),H(0),!("string"==typeof ue.from_amount?parseFloat(null==ue?void 0:ue.from_amount)>0:ue.from_amount>0))return[3,6];t={from:(null==ue?void 0:ue.selectedFiat)||(null==F?void 0:F.label),to:(null==ue?void 0:ue.selectedCrypto)||(null==G?void 0:G.label),amount:null==ue?void 0:ue.from_amount},r.label=1;case 1:return r.trys.push([1,3,4,5]),[4,fetch("".concat(e,"/api/onramp/fee?from=").concat(t.from,"&to=").concat(t.to,"&amount=").concat(t.amount),{method:"GET",headers:{"Content-Type":"application/json","X-API-KEY":o,"User-Id":a}}).then((function(e){return e.json()})).then((function(e){if(Object.keys(e.data).length>0){var t=e.data;L(parseFloat(t.markupFee)+parseFloat(t.networkFee)+parseFloat(t.processingFee)),Z(t.exchangeRate),H(t.amountOut)}else c(null==e?void 0:e.message,"error")})).catch((function(e){c(e,"error")}))];case 2:return r.sent(),[3,5];case 3:return n=r.sent(),c(n,"error"),[3,5];case 4:return P(!1),[7];case 5:return[3,7];case 6:c("Please enter valid amount","error"),P(!1),r.label=7;case 7:return[2]}}))}))};e.useEffect((function(){Y({min:parseFloat(ue.from_amount)<parseFloat(ue.minAmount)||""===ue.from_amount||parseFloat(ue.from_amount)<=0,max:parseFloat(ue.from_amount)>parseFloat(ue.maxAmount)})}),[R,ue]);return p.jsx(p.Fragment,{children:1===q?p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:h.field_card,children:[p.jsxs("div",{className:h.field_box,children:[p.jsx("div",{className:h.field_label,children:"You Pay"}),p.jsx("div",{className:h.field_form,children:p.jsx("input",{type:"text",value:null==ue?void 0:ue.from_amount,onChange:function(e){!function(e){var t,n;if(e.includes(".")){if(E&&!to(e,null===(t=null==E?void 0:E.schema)||void 0===t?void 0:t.decimal))return void c("You can input upto ".concat(null===(n=null==E?void 0:E.schema)||void 0===n?void 0:n.decimal," decimal places."),"error");""===e?de(m(m({},ue),{from_amount:""})):isNaN(Number(e))||de(m(m({},ue),{from_amount:e}))}else""===e?de(m(m({},ue),{from_amount:""})):isNaN(Number(e))||de(m(m({},ue),{from_amount:e}))}(e.target.value)},className:h.input_control})})]}),p.jsx("div",{className:h.field_select_card,children:p.jsx("div",{className:h.field_select,children:(null==_?void 0:_.length)>0?p.jsx(Yr,{backgroundColor:"#f3e2c3",placeholder:"Select an option",image:!0,singleicons:!0,options:_,isSearchable:!1,value:F,onChange:function(e){return function(e){var t,n,r=null===(t=null==D?void 0:D.currencies)||void 0===t?void 0:t.find((function(t){return t.unique_id===(null==e?void 0:e.value)}));de(m(m({},ue),{selectedFiat:(null===(n=null==r?void 0:r.supported_currency)||void 0===n?void 0:n.code)||""})),N(e)}(e)},isDisabled:z}):p.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:p.jsx($r,{})})})})]}),(null==M?void 0:M.min)&&p.jsxs("p",{className:h.error_msg,children:["Invalid, Min : ",null===(n=parseFloat(null==ue?void 0:ue.minAmount))||void 0===n?void 0:n.toFixed(8)]}),(null==M?void 0:M.max)&&p.jsxs("p",{className:h.error_msg,children:["Invalid, Max : ",null===(r=parseFloat(null==ue?void 0:ue.maxAmount))||void 0===r?void 0:r.toString()]}),p.jsxs("div",{className:h.info_box,children:[p.jsxs("div",{className:"".concat(h.ramp_space," ").concat(h.label_card),children:[p.jsx("div",{className:h.label_icons,children:p.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",width:"12",height:"12",viewBox:"0 0 300 300",children:[p.jsx("path",{d:"M240.3 171.5H59.7c-11.9 0-21.5-9.6-21.5-21.5s9.6-21.5 21.5-21.5h180.6c11.9 0 21.5 9.6 21.5 21.5s-9.6 21.5-21.5 21.5","data-original":"#000000"}),p.jsx("circle",{cx:"150",cy:"65.5",r:"30.5","data-original":"#000000"}),p.jsx("circle",{cx:"150.5",cy:"234.5",r:"30.5","data-original":"#000000"})]})}),p.jsxs("div",{className:h.label_value,children:[p.jsx("span",{style:{marginRight:10},children:"Rate :"}),z?p.jsx(is,{}):"1\n ".concat((null==F?void 0:F.label)||"N/A","\n = ").concat(R>0?(1/R).toFixed(8):0," ").concat(null==G?void 0:G.label)]})]}),p.jsxs("div",{className:"".concat(h.ramp_space," ").concat(h.label_card),children:[p.jsx("div",{className:h.label_icons,children:p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",width:"10",height:"10",viewBox:"0 0 121.805 121.804",children:p.jsx("path",{d:"M7.308 68.211h107.188a7.31 7.31 0 0 0 7.309-7.31 7.31 7.31 0 0 0-7.309-7.309H7.308a7.31 7.31 0 0 0 0 14.619","data-original":"#000000"})})}),p.jsxs("div",{className:h.label_value,children:[p.jsx("span",{style:{marginRight:10},children:"Total Fees :"}),z?p.jsx(is,{}):"".concat(k||0," ").concat(null==F?void 0:F.label)]})]}),p.jsxs("div",{className:"".concat(h.ramp_space_top," ").concat(h.label_titles),children:[p.jsx("div",{className:h.label_dots}),p.jsxs("div",{className:h.ramp_details,children:[p.jsx("div",{className:h.ramp_head,children:"Payment Method"}),p.jsx("div",{className:h.payment_box,children:p.jsxs("div",{className:"".concat(h.payment_check_card," ").concat(h.selected),children:[p.jsx("input",{type:"radio",name:"radioDefault",id:"radioDefault1",value:"0.10234",className:h.input_control}),p.jsx("div",{children:"Card Payment"}),p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 408.576 408.576",children:p.jsx("g",{children:p.jsx("path",{d:"M204.288 0C91.648 0 0 91.648 0 204.288s91.648 204.288 204.288 204.288 204.288-91.648 204.288-204.288S316.928 0 204.288 0zm114.176 150.528-130.56 129.536c-7.68 7.68-19.968 8.192-28.16.512L90.624 217.6c-8.192-7.68-8.704-20.48-1.536-28.672 7.68-8.192 20.48-8.704 28.672-1.024l54.784 50.176L289.28 121.344c8.192-8.192 20.992-8.192 29.184 0s8.192 20.992 0 29.184z",fill:"#F9C201"})})})]})})]})]})]}),p.jsxs("div",{className:h.field_card,children:[p.jsxs("div",{className:h.field_box,children:[p.jsx("div",{className:h.field_label,children:"You Receive (estimate)"}),p.jsx("div",{className:h.field_form,children:z?p.jsx(is,{size:20}):p.jsx("input",{type:"text",value:(null==M?void 0:M.min)||(null==M?void 0:M.max)?0:T||0,className:h.input_control,disabled:!0})})]}),p.jsx("div",{className:h.field_select_card,children:p.jsx("div",{className:h.field_select,children:(null==x?void 0:x.length)>0?p.jsx(Yr,{backgroundColor:"#f3e2c3",placeholder:"Select",borderColor:"var(--no-color)",image:!0,singleicons:!0,options:x,isSearchable:!1,value:G,onChange:function(e){e&&(Z(0),ie(""),le("Required"),function(e){var t,n,r=null===(t=null==D?void 0:D.currencies)||void 0===t?void 0:t.find((function(t){return(null==t?void 0:t.unique_id)===e.value}));de(m(m({},ue),{selectedCrypto:(null===(n=null==r?void 0:r.supported_currency)||void 0===n?void 0:n.code)||""})),B(e)}(e))},isDisabled:z}):p.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:p.jsx($r,{})})})})]}),p.jsxs("div",{style:{marginTop:"20px"},className:h.ramp_bank_box,children:[p.jsxs("div",{className:h.new_bank_label,children:["Wallet Address ",p.jsx("span",{className:h.required,children:"*"})]}),p.jsx("div",{className:h.new_bank_fields,children:p.jsx("input",{type:"text",value:oe,className:h.input_control,placeholder:"Enter Wallet Address",onChange:function(e){var t=e.target.value.trim();if(ie(t),""!==e.target.value&&G){le("");var n=["USDT","USDC"].includes(G.label)?iu.validate(t,"ETH")||iu.validate(t,"TRX")||iu.validate(t,"SOL"):iu.validate(t,G.label);le(n?"":"Invalid wallet address")}else le("Required")},name:"bank_name"})}),ae&&p.jsx("span",{className:h.input_error,children:ae})]}),p.jsxs("div",{className:h.info_card,children:[p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30",viewBox:"0 0 32 32",children:p.jsxs("g",{id:"Layer_20","data-name":"Layer 20",children:[p.jsx("path",{fill:"#fbd63b",d:"M28 28H4L16 6z"}),p.jsx("path",{fill:"#f8be31",d:"m16 6 12 22H16z"}),p.jsx("path",{fill:"#333",d:"m16 21-2-7h4z"}),p.jsx("circle",{cx:"16",cy:"25",r:"1",fill:"#333"}),p.jsx("path",{d:"M16 14h2l-2 7zM16 24a1 1 0 0 1 0 2z"})]})}),p.jsx("div",{className:h.caution_info,children:"Cryptocurrencies are volatile, and prices can change rapidly, make sure to research and understand the market risks."})]}),p.jsx("div",{className:h.ramp_action,children:p.jsxs("button",{disabled:R<=0||z||!oe||d||(null==ae?void 0:ae.length)>0,className:"".concat(h.action_btn," ").concat(h.primary," "),onClick:function(){return b(void 0,void 0,void 0,(function(){var e,t,n;return g(this,(function(r){switch(r.label){case 0:if(e=no(l),!(parseFloat(ue.from_amount)>0))return[3,6];f(!0),t={from:(null==ue?void 0:ue.selectedFiat)||(null==F?void 0:F.label),to:(null==ue?void 0:ue.selectedCrypto)||(null==G?void 0:G.label),value:null==ue?void 0:ue.from_amount,wallet_address:oe,initial_exchange_rate:R,redirect_url:i},r.label=1;case 1:return r.trys.push([1,3,4,5]),[4,fetch("".concat(e,"/api/onramp/transactions"),{method:"POST",headers:{"Content-Type":"application/json","X-API-KEY":o,"User-Id":a},body:JSON.stringify(t)}).then((function(e){return e.json()})).then((function(e){var t;(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.redirect_url)?(ne(e.data.redirect_url),$(2)):e.success||c(null==e?void 0:e.message,"error")})).catch((function(e){c(e,"error")}))];case 2:return r.sent(),[3,5];case 3:return n=r.sent(),c(n,"error"),[3,5];case 4:return f(!1),[7];case 5:return[3,7];case 6:c("Please enter valid amount","error"),r.label=7;case 7:return[2]}}))}))},children:["Continue ",d&&p.jsx(eo,{})]})})]}):p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:h.bank_head,onClick:function(){return $(1)},children:[p.jsx("div",{children:p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",width:"18",height:"18",viewBox:"0 0 240.823 240.823",children:p.jsx("path",{d:"M57.633 129.007 165.93 237.268c4.752 4.74 12.451 4.74 17.215 0 4.752-4.74 4.752-12.439 0-17.179l-99.707-99.671 99.695-99.671c4.752-4.74 4.752-12.439 0-17.191-4.752-4.74-12.463-4.74-17.215 0L57.621 111.816c-4.679 4.691-4.679 12.511.012 17.191","data-original":"#000000"})})}),p.jsx("div",{className:h.bank_titles,children:"Back"})]}),p.jsx("iframe",{title:"Buy Crypto",id:"chat-widget",src:te,style:{width:"100%",minHeight:"calc(100vh - 400px)",border:"none",zIndex:"9999",overflow:"auto"}})]})})},au=function(t){var n=t.defaultTab,r=t.apiKey,o=t.redirectUrl,i=t.buyParameters,s=t.sellParameters,a=t.clientReferenceID,l=t.mode,c=e.useState(["buy","sell"].includes(n)?n:"buy"),u=c[0],d=c[1];return p.jsxs("div",{className:h.tabs_wrapped,children:[p.jsx("div",{className:h.tabs_link,children:p.jsxs("div",{className:h.tabs_box,children:[p.jsx("button",{className:"".concat("buy"===u&&h.active_btn),onClick:function(){return d("buy")},children:"Buy Crypto"}),p.jsx("button",{className:"".concat("sell"===u&&h.active_btn),onClick:function(){return d("sell")},children:"Sell Crypto"})]})}),p.jsxs("div",{className:h.tabs_content,children:["buy"===u&&p.jsx(su,{apiKey:r,redirectUrl:o,parameters:i,clientReferenceID:a,mode:l}),"sell"===u&&p.jsx(ss,{apiKey:r,parameters:s,clientReferenceID:a,mode:l})]})]})};module.exports=function(e){var t=e.apiKey,n=e.redirectUrl,r=e.buyParameters,o=e.sellParameters,i=e.defaultTab,s=e.clientReferenceID,a=e.mode,l=void 0===a?"development":a;return p.jsx("div",{style:{position:"relative"},className:h.widgetcomponent,id:"widget-container",children:p.jsx("div",{className:h.widget_wrapped,children:p.jsx("div",{className:h.widget_modal,children:p.jsx("div",{className:h.widget_content,children:p.jsx(Jr,{children:p.jsx(au,{redirectUrl:n,defaultTab:i,buyParameters:r,sellParameters:o,apiKey:t,clientReferenceID:s,mode:l})})})})})})};
46
+ */(),r=function(){if(xa)return Ia;xa=1;var e="input is invalid type",t="object"==typeof window,n=t?window:{};n.JS_SHA3_NO_WINDOW&&(t=!1);var r=!t&&"object"==typeof self;!n.JS_SHA3_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node?n=o:r&&(n=self);var i=!n.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,a="0123456789abcdef".split(""),s=[4,1024,262144,67108864],l=[0,8,16,24],c=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],u=[224,256,384,512],d=[128,256],p=["hex","buffer","arrayBuffer","array","digest"],f={128:168,256:136};!n.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!i||!n.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});for(var h=function(e,t,n){return function(r){return new F(e,t,e).update(r)[n]()}},m=function(e,t,n){return function(r,o){return new F(e,t,o).update(r)[n]()}},b=function(e,t,n){return function(t,r,o,i){return I["cshake"+e].update(t,r,o,i)[n]()}},g=function(e,t,n){return function(t,r,o,i){return I["kmac"+e].update(t,r,o,i)[n]()}},_=function(e,t,n,r){for(var o=0;o<p.length;++o){var i=p[o];e[i]=t(n,r,i)}return e},v=function(e,t){var n=h(e,t,"hex");return n.create=function(){return new F(e,t,e)},n.update=function(e){return n.create().update(e)},_(n,h,e,t)},y=[{name:"keccak",padding:[1,256,65536,16777216],bits:u,createMethod:v},{name:"sha3",padding:[6,1536,393216,100663296],bits:u,createMethod:v},{name:"shake",padding:[31,7936,2031616,520093696],bits:d,createMethod:function(e,t){var n=m(e,t,"hex");return n.create=function(n){return new F(e,t,n)},n.update=function(e,t){return n.create(t).update(e)},_(n,m,e,t)}},{name:"cshake",padding:s,bits:d,createMethod:function(e,t){var n=f[e],r=b(e,0,"hex");return r.create=function(r,o,i){return o||i?new F(e,t,r).bytepad([o,i],n):I["shake"+e].create(r)},r.update=function(e,t,n,o){return r.create(t,n,o).update(e)},_(r,b,e,t)}},{name:"kmac",padding:s,bits:d,createMethod:function(e,t){var n=f[e],r=g(e,0,"hex");return r.create=function(r,o,i){return new N(e,t,o).bytepad(["KMAC",i],n).bytepad([r],n)},r.update=function(e,t,n,o){return r.create(e,n,o).update(t)},_(r,g,e,t)}}],I={},x=0;x<y.length;++x)for(var C=y[x],G=C.bits,B=0;B<G.length;++B){var w=C.name+"_"+G[B];if(I[w]=C.createMethod(G[B],C.padding),"sha3"!==C.name){var A=C.name+G[B];I[A]=I[w]}}function F(e,t,n){this.blocks=[],this.s=[],this.padding=t,this.outputBits=n,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(e<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=n>>5,this.extraBytes=(31&n)>>3;for(var r=0;r<50;++r)this.s[r]=0}function N(e,t,n){F.call(this,e,t,n)}F.prototype.update=function(t){if(!this.finalized){var n,r=typeof t;if("string"!==r){if("object"!==r)throw e;if(null===t)throw e;if(i&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||i&&ArrayBuffer.isView(t)))throw e;n=!0}for(var o,a,s=this.blocks,c=this.byteCount,u=t.length,d=this.blockCount,p=0,f=this.s;p<u;){if(this.reset)for(this.reset=!1,s[0]=this.block,o=1;o<d+1;++o)s[o]=0;if(n)for(o=this.start;p<u&&o<c;++p)s[o>>2]|=t[p]<<l[3&o++];else for(o=this.start;p<u&&o<c;++p)(a=t.charCodeAt(p))<128?s[o>>2]|=a<<l[3&o++]:a<2048?(s[o>>2]|=(192|a>>6)<<l[3&o++],s[o>>2]|=(128|63&a)<<l[3&o++]):a<55296||a>=57344?(s[o>>2]|=(224|a>>12)<<l[3&o++],s[o>>2]|=(128|a>>6&63)<<l[3&o++],s[o>>2]|=(128|63&a)<<l[3&o++]):(a=65536+((1023&a)<<10|1023&t.charCodeAt(++p)),s[o>>2]|=(240|a>>18)<<l[3&o++],s[o>>2]|=(128|a>>12&63)<<l[3&o++],s[o>>2]|=(128|a>>6&63)<<l[3&o++],s[o>>2]|=(128|63&a)<<l[3&o++]);if(this.lastByteIndex=o,o>=c){for(this.start=o-c,this.block=s[d],o=0;o<d;++o)f[o]^=s[o];X(f),this.reset=!0}else this.start=o}return this}},F.prototype.encode=function(e,t){var n=255&e,r=1,o=[n];for(n=255&(e>>=8);n>0;)o.unshift(n),n=255&(e>>=8),++r;return t?o.push(r):o.unshift(r),this.update(o),o.length},F.prototype.encodeString=function(t){var n,r=typeof t;if("string"!==r){if("object"!==r)throw e;if(null===t)throw e;if(i&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||i&&ArrayBuffer.isView(t)))throw e;n=!0}var o=0,a=t.length;if(n)o=a;else for(var s=0;s<t.length;++s){var l=t.charCodeAt(s);l<128?o+=1:l<2048?o+=2:l<55296||l>=57344?o+=3:(l=65536+((1023&l)<<10|1023&t.charCodeAt(++s)),o+=4)}return o+=this.encode(8*o),this.update(t),o},F.prototype.bytepad=function(e,t){for(var n=this.encode(t),r=0;r<e.length;++r)n+=this.encodeString(e[r]);var o=t-n%t,i=[];return i.length=o,this.update(i),this},F.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex,n=this.blockCount,r=this.s;if(e[t>>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[n],t=1;t<n+1;++t)e[t]=0;for(e[n-1]|=2147483648,t=0;t<n;++t)r[t]^=e[t];X(r)}},F.prototype.toString=F.prototype.hex=function(){this.finalize();for(var e,t=this.blockCount,n=this.s,r=this.outputBlocks,o=this.extraBytes,i=0,s=0,l="";s<r;){for(i=0;i<t&&s<r;++i,++s)e=n[i],l+=a[e>>4&15]+a[15&e]+a[e>>12&15]+a[e>>8&15]+a[e>>20&15]+a[e>>16&15]+a[e>>28&15]+a[e>>24&15];s%t===0&&(X(n),i=0)}return o&&(e=n[i],l+=a[e>>4&15]+a[15&e],o>1&&(l+=a[e>>12&15]+a[e>>8&15]),o>2&&(l+=a[e>>20&15]+a[e>>16&15])),l},F.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,n=this.s,r=this.outputBlocks,o=this.extraBytes,i=0,a=0,s=this.outputBits>>3;e=o?new ArrayBuffer(r+1<<2):new ArrayBuffer(s);for(var l=new Uint32Array(e);a<r;){for(i=0;i<t&&a<r;++i,++a)l[a]=n[i];a%t===0&&X(n)}return o&&(l[i]=n[i],e=e.slice(0,s)),e},F.prototype.buffer=F.prototype.arrayBuffer,F.prototype.digest=F.prototype.array=function(){this.finalize();for(var e,t,n=this.blockCount,r=this.s,o=this.outputBlocks,i=this.extraBytes,a=0,s=0,l=[];s<o;){for(a=0;a<n&&s<o;++a,++s)e=s<<2,t=r[a],l[e]=255&t,l[e+1]=t>>8&255,l[e+2]=t>>16&255,l[e+3]=t>>24&255;s%n===0&&X(r)}return i&&(e=s<<2,t=r[a],l[e]=255&t,i>1&&(l[e+1]=t>>8&255),i>2&&(l[e+2]=t>>16&255)),l},N.prototype=new F,N.prototype.finalize=function(){return this.encode(this.outputBits,!0),F.prototype.finalize.call(this)};var X=function(e){var t,n,r,o,i,a,s,l,u,d,p,f,h,m,b,g,_,v,y,I,x,C,G,B,w,A,F,N,X,Q,R,Z,k,W,L,E,U,D,V,S,O,Y,M,j,T,H,J,z,P,K,q,$,ee,te,ne,re,oe,ie,ae,se,le,ce,ue;for(r=0;r<48;r+=2)o=e[0]^e[10]^e[20]^e[30]^e[40],i=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],l=e[4]^e[14]^e[24]^e[34]^e[44],u=e[5]^e[15]^e[25]^e[35]^e[45],d=e[6]^e[16]^e[26]^e[36]^e[46],p=e[7]^e[17]^e[27]^e[37]^e[47],t=(f=e[8]^e[18]^e[28]^e[38]^e[48])^(a<<1|s>>>31),n=(h=e[9]^e[19]^e[29]^e[39]^e[49])^(s<<1|a>>>31),e[0]^=t,e[1]^=n,e[10]^=t,e[11]^=n,e[20]^=t,e[21]^=n,e[30]^=t,e[31]^=n,e[40]^=t,e[41]^=n,t=o^(l<<1|u>>>31),n=i^(u<<1|l>>>31),e[2]^=t,e[3]^=n,e[12]^=t,e[13]^=n,e[22]^=t,e[23]^=n,e[32]^=t,e[33]^=n,e[42]^=t,e[43]^=n,t=a^(d<<1|p>>>31),n=s^(p<<1|d>>>31),e[4]^=t,e[5]^=n,e[14]^=t,e[15]^=n,e[24]^=t,e[25]^=n,e[34]^=t,e[35]^=n,e[44]^=t,e[45]^=n,t=l^(f<<1|h>>>31),n=u^(h<<1|f>>>31),e[6]^=t,e[7]^=n,e[16]^=t,e[17]^=n,e[26]^=t,e[27]^=n,e[36]^=t,e[37]^=n,e[46]^=t,e[47]^=n,t=d^(o<<1|i>>>31),n=p^(i<<1|o>>>31),e[8]^=t,e[9]^=n,e[18]^=t,e[19]^=n,e[28]^=t,e[29]^=n,e[38]^=t,e[39]^=n,e[48]^=t,e[49]^=n,m=e[0],b=e[1],H=e[11]<<4|e[10]>>>28,J=e[10]<<4|e[11]>>>28,N=e[20]<<3|e[21]>>>29,X=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,le=e[30]<<9|e[31]>>>23,Y=e[40]<<18|e[41]>>>14,M=e[41]<<18|e[40]>>>14,W=e[2]<<1|e[3]>>>31,L=e[3]<<1|e[2]>>>31,g=e[13]<<12|e[12]>>>20,_=e[12]<<12|e[13]>>>20,z=e[22]<<10|e[23]>>>22,P=e[23]<<10|e[22]>>>22,Q=e[33]<<13|e[32]>>>19,R=e[32]<<13|e[33]>>>19,ce=e[42]<<2|e[43]>>>30,ue=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,ne=e[4]<<30|e[5]>>>2,E=e[14]<<6|e[15]>>>26,U=e[15]<<6|e[14]>>>26,v=e[25]<<11|e[24]>>>21,y=e[24]<<11|e[25]>>>21,K=e[34]<<15|e[35]>>>17,q=e[35]<<15|e[34]>>>17,Z=e[45]<<29|e[44]>>>3,k=e[44]<<29|e[45]>>>3,B=e[6]<<28|e[7]>>>4,w=e[7]<<28|e[6]>>>4,re=e[17]<<23|e[16]>>>9,oe=e[16]<<23|e[17]>>>9,D=e[26]<<25|e[27]>>>7,V=e[27]<<25|e[26]>>>7,I=e[36]<<21|e[37]>>>11,x=e[37]<<21|e[36]>>>11,$=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,j=e[8]<<27|e[9]>>>5,T=e[9]<<27|e[8]>>>5,A=e[18]<<20|e[19]>>>12,F=e[19]<<20|e[18]>>>12,ie=e[29]<<7|e[28]>>>25,ae=e[28]<<7|e[29]>>>25,S=e[38]<<8|e[39]>>>24,O=e[39]<<8|e[38]>>>24,C=e[48]<<14|e[49]>>>18,G=e[49]<<14|e[48]>>>18,e[0]=m^~g&v,e[1]=b^~_&y,e[10]=B^~A&N,e[11]=w^~F&X,e[20]=W^~E&D,e[21]=L^~U&V,e[30]=j^~H&z,e[31]=T^~J&P,e[40]=te^~re&ie,e[41]=ne^~oe&ae,e[2]=g^~v&I,e[3]=_^~y&x,e[12]=A^~N&Q,e[13]=F^~X&R,e[22]=E^~D&S,e[23]=U^~V&O,e[32]=H^~z&K,e[33]=J^~P&q,e[42]=re^~ie&se,e[43]=oe^~ae&le,e[4]=v^~I&C,e[5]=y^~x&G,e[14]=N^~Q&Z,e[15]=X^~R&k,e[24]=D^~S&Y,e[25]=V^~O&M,e[34]=z^~K&$,e[35]=P^~q&ee,e[44]=ie^~se&ce,e[45]=ae^~le&ue,e[6]=I^~C&m,e[7]=x^~G&b,e[16]=Q^~Z&B,e[17]=R^~k&w,e[26]=S^~Y&W,e[27]=O^~M&L,e[36]=K^~$&j,e[37]=q^~ee&T,e[46]=se^~ce&te,e[47]=le^~ue&ne,e[8]=C^~m&g,e[9]=G^~b&_,e[18]=Z^~B&A,e[19]=k^~w&F,e[28]=Y^~W&E,e[29]=M^~L&U,e[38]=$^~j&H,e[39]=ee^~T&J,e[48]=ce^~te&re,e[49]=ue^~ne&oe,e[0]^=c[r],e[1]^=c[r+1]};return Ia=I}().keccak256,i=Ta(),a=Ha(),s=Ja(),l=function(){if(Xa)return Na;Xa=1;var e,t=1e9,n=20,r=4,o=-7,i=21,a=-1e9,s=t,l=!0,c=parseInt,u=b.prototype,d="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_",p=0,f=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,h=String.prototype.trim||function(){return this.replace(/^\s+|\s+$/g,"")},m=b(1);function b(t,o){var i,c,u,m,v,y,I=this;if(!(I instanceof b))return new b(t,o);if(t instanceof b){if(p=0,o===i)return I.s=t.s,I.e=t.e,void(I.c=(t=t.c)?t.slice():t);t+=""}if("string"!=typeof t&&(t=(u="number"==typeof t||"[object Number]"==Object.prototype.toString.call(t))&&0===t&&1/t<0?"-0":t+""),y=t,o===i&&f.test(t))I.s="-"==t.charAt(0)?(t=t.slice(1),-1):1;else{if(10==o)return x(t,n,r);if(t=h.call(t).replace(/^\+(?!-)/,""),I.s="-"==t.charAt(0)?(t=t.replace(/^-(?!-)/,""),-1):1,null!=o?o!=(0|o)&&l||(e=!(o>=2&&o<65))?(g(o,2),v=f.test(t)):(m="["+d.slice(0,o|=0)+"]+",t=t.replace(/\.$/,"").replace(/^\./,"0."),(v=new RegExp("^"+m+"(?:\\."+m+")?$",o<37?"i":"").test(t))?(u&&(t.replace(/^0\.0*|\./,"").length>15&&g(y,0),u=!u),t=_(t,10,o,I.s)):"Infinity"!=t&&"NaN"!=t&&(g(y,1,o),t="NaN")):v=f.test(t),!v)return I.c=I.e=null,"Infinity"!=t&&("NaN"!=t&&g(y,3),I.s=null),void(p=0)}for((i=t.indexOf("."))>-1&&(t=t.replace(".","")),(c=t.search(/e/i))>0?(i<0&&(i=c),i+=+t.slice(c+1),t=t.substring(0,c)):i<0&&(i=t.length),c=0;"0"==t.charAt(c);c++);if(o=t.length,u&&o>15&&t.slice(c).length>15&&g(y,0),p=0,(i-=c+1)>s)I.c=I.e=null;else if(c==o||i<a)I.c=[I.e=0];else{for(;"0"==t.charAt(--o););for(I.e=i,I.c=[],i=0;c<=o;I.c[i++]=+t.charAt(c++));}}function g(t,n,r,o,i,a){if(l){var s,c=["new BigNumber","cmp","div","eq","gt","gte","lt","lte","minus","mod","plus","times","toFr"][p?p<0?-p:p:1/p<0?1:0]+"()",u=e?" out of range":" not a"+(i?" non-zero":"n")+" integer";throw u=([c+" number type has more than 15 significant digits",c+" not a base "+r+" number",c+" base"+u,c+" not a number"][n]||r+"() "+n+(a?" not a boolean or binary digit":u+(o?" or not ["+(e?" negative, positive":" integer, integer")+" ]":"")))+": "+t,e=p=0,(s=new Error(u)).name="BigNumber Error",s}}function _(e,t,n,r){var o,i,a,s,l,c;function u(e,r){var o,i,a=0,s=e.length,l=[0];for(r=r||n;a<s;a++){for(i=l.length,o=0;o<i;l[o]*=r,o++);for(l[0]+=d.indexOf(e.charAt(a)),o=0;o<l.length;o++)l[o]>t-1&&(null==l[o+1]&&(l[o+1]=0),l[o+1]+=l[o]/t^0,l[o]%=t)}return l.reverse()}function p(e){for(var t=0,n=e.length,r="";t<n;r+=d.charAt(e[t++]));return r}if(n<37&&(e=e.toLowerCase()),(o=e.indexOf("."))>-1)if(o=e.length-o-1,i=u(new b(n).pow(o).toF(),10),a=u((s=e.split("."))[1]),s=u(s[0]),l=(c=v(a,i,a.length-i.length,r,t,1&s[s.length-1])).c,o=c.e){for(;++o;l.unshift(0));e=p(s)+"."+p(l)}else l[0]?s[o=s.length-1]<t-1?(++s[o],e=p(s)):e=new b(p(s),t).plus(m).toS(t):e=p(s);else e=p(u(e));return e}function v(e,t,r,o,i,l){var c,u,d,p,f,h=t.slice(),g=c=t.length,_=e.length,v=e.slice(0,c),y=v.length,x=new b(m),C=x.c=[],G=0,B=n+(x.e=r)+1;for(x.s=o,o=B<0?0:B;y++<c;v.push(0));h.unshift(0);do{for(d=0;d<i;d++){if(c!=(y=v.length))p=c>y?1:-1;else for(f=-1,p=0;++f<c;)if(t[f]!=v[f]){p=t[f]>v[f]?1:-1;break}if(!(p<0))break;for(u=y==c?t:h;y;){if(v[--y]<u[y]){for(f=y;f&&!v[--f];v[f]=i-1);--v[f],v[y]+=i}v[y]-=u[y]}for(;!v[0];v.shift());}C[G++]=p?d:++d,v[0]&&p?v[y]=e[g]||0:v=[e[g]]}while((g++<_||null!=v[0])&&o--);return C[0]||1==G||(--x.e,C.shift()),G>B&&I(x,n,i,l,null!=v[0]),x.e>s?x.c=x.e=null:x.e<a&&(x.c=[x.e=0]),x}function y(e,t,n){var r=t-(e=new b(e)).e,i=e.c;if(!i)return e.toS();for(i.length>++t&&I(e,r,10),r=0==i[0]?r+1:n?t:e.e+r+1;i.length<r;i.push(0));return r=e.e,1==n||2==n&&(--t<r||r<=o)?(e.s<0&&i[0]?"-":"")+(i.length>1?(i.splice(1,0,"."),i.join("")):i[0])+(r<0?"e":"e+")+r:e.toS()}function I(e,t,n,o,i){var a=e.c,s=e.s<0,l=n/2,c=e.e+t+1,u=a[c],d=i||c<0||null!=a[c+1];if(i=r<4?(null!=u||d)&&(0==r||2==r&&!s||3==r&&s):u>l||u==l&&(4==r||d||6==r&&(1&a[c-1]||!t&&o)||7==r&&!s||8==r&&s),c<1||!a[0])return a.length=0,a.push(0),i?(a[0]=1,e.e=-t):e.e=0,e;if(a.length=c--,i)for(--n;++a[c]>n;)a[c]=0,c--||(++e.e,a.unshift(1));for(c=a.length;!a[--c];a.pop());return e}function x(e,t,n){var o=r;return r=n,(e=new b(e)).c&&I(e,t,10),r=o,e}return b.ROUND_UP=0,b.ROUND_DOWN=1,b.ROUND_CEIL=2,b.ROUND_FLOOR=3,b.ROUND_HALF_UP=4,b.ROUND_HALF_DOWN=5,b.ROUND_HALF_EVEN=6,b.ROUND_HALF_CEIL=7,b.ROUND_HALF_FLOOR=8,b.fromBuffer=function(e,t){t||(t={});var n={1:"big","-1":"little"}[t.endian]||t.endian||"big",r="auto"===t.size?Math.ceil(e.length):t.size||1;if(e.length%r!==0)throw new RangeError("Buffer length ("+e.length+") must be a multiple of size ("+r+")");for(var o=[],i=0;i<e.length;i+=r){for(var a=[],s=0;s<r;s++)a.push(e[i+("big"===n?s:r-s-1)]);o.push(a.map((function(e){return(e<16?"0":"")+e.toString(16)})).join(""))}return b(o.join(""),16)},b.config=function(){var u,d,f=0,h={},m=arguments,b=m[0],_="config",v=function(t,n,r){return!((e=t<n||t>r)||c(t)!=t&&0!==t)},y=b&&"object"==typeof b?function(){if(b.hasOwnProperty(d))return null!=(u=b[d])}:function(){if(m.length>f)return null!=(u=m[f++])};return y(d="DECIMAL_PLACES")&&(v(u,0,t)?n=0|u:g(u,d,_)),h[d]=n,y(d="ROUNDING_MODE")&&(v(u,0,8)?r=0|u:g(u,d,_)),h[d]=r,y(d="EXPONENTIAL_AT")&&(v(u,-1e9,t)?o=-(i=~~(u<0?-u:+u)):!e&&u&&v(u[0],-1e9,0)&&v(u[1],0,t)?(o=~~u[0],i=~~u[1]):g(u,d,_,1)),h[d]=[o,i],y(d="RANGE")&&(v(u,-1e9,t)&&~~u?a=-(s=~~(u<0?-u:+u)):!e&&u&&v(u[0],-1e9,-1)&&v(u[1],1,t)?(a=~~u[0],s=~~u[1]):g(u,d,_,1,1)),h[d]=[a,s],y(d="ERRORS")&&(u===!!u||1===u||0===u?(e=p=0,c=(l=!!u)?parseInt:parseFloat):g(u,d,_,0,0,1)),h[d]=l,h},u.abs=u.absoluteValue=function(){var e=new b(this);return e.s<0&&(e.s=1),e},u.bitLength=function(){return this.toString(2).length},u.ceil=function(){return x(this,0,2)},u.comparedTo=u.cmp=function(e,t){var n,r=this,o=r.c,i=(p=-p,e=new b(e,t)).c,a=r.s,s=e.s,l=r.e,c=e.e;if(!a||!s)return null;if(n=o&&!o[0],t=i&&!i[0],n||t)return n?t?0:-s:a;if(a!=s)return a;if(n=a<0,t=l==c,!o||!i)return t?0:!o^n?1:-1;if(!t)return l>c^n?1:-1;for(a=-1,s=(l=o.length)<(c=i.length)?l:c;++a<s;)if(o[a]!=i[a])return o[a]>i[a]^n?1:-1;return l==c?0:l>c^n?1:-1},u.dividedBy=u.div=function(e,t){var n=this.c,r=this.e,o=this.s,i=(p=2,e=new b(e,t)).c,a=e.e,s=e.s,l=o==s?1:-1;return(r||n&&n[0])&&(a||i&&i[0])?v(n,i,r-a,l,10):new b(o&&s&&(n?!i||n[0]!=i[0]:i)?n&&0==n[0]||!i?0*l:l/0:NaN)},u.equals=u.eq=function(e,t){return p=3,0===this.cmp(e,t)},u.floor=function(){return x(this,0,3)},u.greaterThan=u.gt=function(e,t){return p=4,this.cmp(e,t)>0},u.greaterThanOrEqualTo=u.gte=u.gt=function(e,t){return p=5,1==(t=this.cmp(e,t))||0===t},u.isFinite=u.isF=function(){return!!this.c},u.isNaN=function(){return!this.s},u.isNegative=u.isNeg=function(){return this.s<0},u.isZero=u.isZ=function(){return!!this.c&&0==this.c[0]},u.lessThan=u.lt=function(e,t){return p=6,this.cmp(e,t)<0},u.lessThanOrEqualTo=u.lte=u.le=function(e,t){return p=7,-1==(t=this.cmp(e,t))||0===t},u.minus=u.sub=function(e,t){var n,o,i,s,l=this,c=l.s;if(t=(p=8,e=new b(e,t)).s,!c||!t)return new b(NaN);if(c!=t)return e.s=-t,l.plus(e);var u=l.c,d=l.e,f=e.c,h=e.e;if(!d||!h){if(!u||!f)return u?(e.s=-t,e):new b(f?l:NaN);if(!u[0]||!f[0])return f[0]?(e.s=-t,e):new b(u[0]?l:3==r?-0:0)}if(u=u.slice(),c=d-h){for((n=(s=c<0)?(c=-c,u):(h=d,f)).reverse(),t=c;t--;n.push(0));n.reverse()}else for(i=((s=u.length<f.length)?u:f).length,c=t=0;t<i;t++)if(u[t]!=f[t]){s=u[t]<f[t];break}if(s&&(n=u,u=f,f=n,e.s=-e.s),(t=-((i=u.length)-f.length))>0)for(;t--;u[i++]=0);for(t=f.length;t>c;){if(u[--t]<f[t]){for(o=t;o&&!u[--o];u[o]=9);--u[o],u[t]+=10}u[t]-=f[t]}for(;0==u[--i];u.pop());for(;0==u[0];u.shift(),--h);return(h<a||!u[0])&&(u[0]||(e.s=3==r?-1:1),u=[h=0]),e.c=u,e.e=h,e},u.modulo=u.mod=function(e,t){var o=this,i=o.c,a=(p=9,e=new b(e,t)).c,s=o.s,l=e.s;return(t=!s||!l||a&&!a[0])||i&&!i[0]?new b(t?NaN:o):(o.s=e.s=1,t=1==e.cmp(o),o.s=s,e.s=l,t?new b(o):(s=n,l=r,n=0,r=1,o=o.div(e),n=s,r=l,this.minus(o.times(e))))},u.negated=u.neg=function(){var e=new b(this);return e.s=-e.s||null,e},u.plus=u.add=function(e,t){var n,r=this,o=r.s;if(t=(p=10,e=new b(e,t)).s,!o||!t)return new b(NaN);if(o!=t)return e.s=-t,r.minus(e);var i=r.e,a=r.c,l=e.e,c=e.c;if(!i||!l){if(!a||!c)return new b(o/0);if(!a[0]||!c[0])return c[0]?e:new b(a[0]?r:0*o)}if(a=a.slice(),o=i-l){for((n=o>0?(l=i,c):(o=-o,a)).reverse();o--;n.push(0));n.reverse()}for(a.length-c.length<0&&(n=c,c=a,a=n),o=c.length,t=0;o;t=(a[--o]=a[o]+c[o]+t)/10^0,a[o]%=10);for(t&&(a.unshift(t),++l>s&&(a=l=null)),o=a.length;0==a[--o];a.pop());return e.c=a,e.e=l,e},u.toPower=u.pow=function(t){var n=0*t==0?0|t:t,r=new b(this),o=new b(m);if(((e=t<-1e6||t>1e6)&&(n=1*t/0)||c(t)!=t&&0!==t&&!(n=NaN))&&!g(t,"exponent","pow")||!n)return new b(Math.pow(r.toS(),n));for(n=n<0?-n:n;1&n&&(o=o.times(r)),n>>=1;)r=r.times(r);return t<0?m.div(o):o},u.powm=function(e,t){return this.pow(e).mod(t)},u.round=function(n,o){return x(this,n=null==n||((e=n<0||n>t)||c(n)!=n)&&!g(n,"decimal places","round")?0:0|n,o=null==o||((e=o<0||o>8)||c(o)!=o&&0!==o)&&!g(o,"mode","round")?r:0|o)},u.squareRoot=u.sqrt=function(){var e,t,o,i,a=this,s=a.c,l=a.s,c=a.e,u=n,d=r,p=new b("0.5");if(1!==l||!s||!s[0])return new b(!l||l<0&&(!s||s[0])?NaN:s?a:1/0);for(l=Math.sqrt(a.toS()),r=1,0==l||l==1/0?((e=s.join("")).length+c&1||(e+="0"),(t=new b(Math.sqrt(e)+"")).c||(t.c=[1]),t.e=((c+1)/2|0)-(c<0||1&c)):t=new b(e=l.toString()),(l=(o=t.e)+(n+=4))<3&&(l=0),c=l;;)if(i=t,t=p.times(i.plus(a.div(i))),i.c.slice(0,l).join("")===t.c.slice(0,l).join("")){if(9!=(s=t.c)[l-=e&&t.e<o]||9!=s[l-1]||9!=s[l-2]||!(9==s[l-3]||e&&4==s[l-3])){if(!(s[c]||s[c-1]||s[c-2]||s[c-3]&&5!=s[c-3]||(s.length>c-2&&(s.length=c-2),t.times(t).eq(a)))){for(;s.length<c-3;)s.push(0);s[c-3]++}return r=d,I(t,n=u,10),t}if(e&&9==s[l-3]&&(i=t.round(u,0)).times(i).eq(a))return r=d,n=u,i;n+=4,l+=4,e=""}},u.times=u.mul=function(e,t){var n,r=this,o=r.c,i=(p=11,e=new b(e,t)).c,l=r.e,c=e.e,u=r.s;if(e.s=u==(t=e.s)?1:-1,!(l||o&&o[0])||!(c||i&&i[0]))return new b(!u||!t||o&&!o[0]&&!i||i&&!i[0]&&!o?NaN:o&&i?0*e.s:e.s/0);for(e.e=l+c,(u=o.length)<(t=i.length)&&(n=o,o=i,i=n,c=u,u=t,t=c),c=u+t,n=[];c--;n.push(0));for(l=t-1;l>-1;l--){for(t=0,c=u+l;c>l;t=n[c]+i[l]*o[c-l-1]+t,n[c--]=t%10|0,t=t/10|0);t&&(n[c]=(n[c]+t)%10)}for(t&&++e.e,!n[0]&&n.shift(),c=n.length;!n[--c];n.pop());return e.c=e.e>s?e.e=null:e.e<a?[e.e=0]:n,e},u.toBuffer=function(e){if("string"==typeof e){if("mpint"!==e)return"Unsupported Buffer representation";var t=this.abs(),n=1===(c=t.toBuffer({size:1,endian:"big"})).length&&0===c[0]?0:c.length;128&c[0]&&n++;var r=new ma.Buffer(4+n);n>0&&c.copy(r,4+(128&c[0]?1:0)),128&c[0]&&(r[4]=0),r[0]=n&255<<24,r[1]=n&255<<16,r[2]=65280&n,r[3]=255&n;var o=this.lt(0);if(o)for(var i=4;i<r.length;i++)r[i]=255-r[i];return r[4]=127&r[4]|(o?128:0),o&&r[r.length-1]++,r}e||(e={});var a={1:"big","-1":"little"}[e.endian]||e.endian||"big",s=this.toString(16);if("-"===s.charAt(0))throw new Error("converting negative numbers to Buffers not supported yet");for(var l="auto"===e.size?Math.ceil(s.length/2):e.size||1,c=(n=Math.ceil(s.length/(2*l))*l,new ma.Buffer(n));s.length<2*n;)s="0"+s;return s.split(new RegExp("(.{"+2*l+"})")).filter((function(e){return e.length>0})).forEach((function(e,t){for(var n=0;n<l;n++)c[t*l+("big"===a?n:l-n-1)]=parseInt(e.slice(2*n,2*n+2),16)})),c},u.toExponential=u.toE=function(n){return y(this,(null==n||((e=n<0||n>t)||c(n)!=n&&0!==n)&&!g(n,"decimal places","toE"))&&this.c?this.c.length-1:0|n,1)},u.toFixed=u.toF=function(n){var r,a,s,l=this;return null==n||((e=n<0||n>t)||c(n)!=n&&0!==n)&&!g(n,"decimal places","toF")||(s=l.e+(0|n)),r=o,n=i,o=-(i=1/0),s==a?a=l.toS():(a=y(l,s),l.s<0&&l.c&&(l.c[0]?a.indexOf("-")<0&&(a="-"+a):a=a.replace(/^-/,""))),o=r,i=n,a},u.toFraction=u.toFr=function(t){var o,i,a,c,u,d,f,h=c=new b(m),_=a=new b("0"),v=this,y=v.c,I=s,x=n,C=r,G=new b(m);if(!y)return v.toS();for(f=G.e=y.length-v.e-1,(null==t||(!(p=12,d=new b(t)).s||(e=d.cmp(h)<0||!d.c)||l&&d.e<d.c.length-1)&&!g(t,"max denominator","toFr")||(t=d).cmp(G)>0)&&(t=f>0?G:h),s=1/0,d=new b(y.join("")),n=0,r=1;o=d.div(G),1!=(u=c.plus(o.times(_))).cmp(t);)c=_,_=u,h=a.plus(o.times(u=h)),a=u,G=d.minus(o.times(u=G)),d=u;return u=t.minus(c).div(_),a=a.plus(u.times(h)),c=c.plus(u.times(_)),a.s=h.s=v.s,n=2*f,r=C,i=h.div(_).minus(v).abs().cmp(a.div(c).minus(v).abs())<1?[h.toS(),_.toS()]:[a.toS(),c.toS()],s=I,n=x,i},u.toPrecision=u.toP=function(n){return null==n||((e=n<1||n>t)||c(n)!=n)&&!g(n,"precision","toP")?this.toS():y(this,0|--n,2)},u.toString=u.toS=function(t){var n,r,a,s=this,c=s.e;if(null===c)r=s.s?"Infinity":"NaN";else{if(t===n&&(c<=o||c>=i))return y(s,s.c.length-1,1);if(r=s.c.join(""),c<0){for(;++c;r="0"+r);r="0."+r}else if(a=r.length,c>0)if(++c>a)for(c-=a;c--;r+="0");else c<a&&(r=r.slice(0,c)+"."+r.slice(c));else if(n=r.charAt(0),a>1)r=n+"."+r.slice(1);else if("0"==n)return n;if(null!=t)if((e=!(t>=2&&t<65))||t!=(0|t)&&l)g(t,"base","toS");else if("0"==(r=_(r,0|t,10,s.s)))return r}return s.s<0?"-"+r:r},u.valueOf=function(){return this.toS()},Na=b}();function c(e,t){var n=e.toString(16);return n.length%2==1&&(n="0"+n),n.padStart(t,"0")}function u(e){return e>="A"&&e<="F"||e>="a"&&e<="f"||e>="0"&&e<="9"?1:0}function d(e){var t=0;return e>="A"&&e<="F"?t=e.charCodeAt(0)-"A".charCodeAt(0)+10:e>="a"&&e<="f"?t=e.charCodeAt(0)-"a".charCodeAt(0)+10:e>="0"&&e<="9"&&(t=e.charCodeAt(0)-"0".charCodeAt(0)),t}function p(e){var t="0123456789ABCDEF",n="";return n+=t.charAt(e>>4),n+=t.charAt(15&e)}return Qa={numberToHex:c,toHex:function(e){for(var t="",n=0;n<e.length;n++)t+=c(e[n]);return t},sha256:function(t,n="HEX"){var r=new e("SHA-256",n);return r.update(t),r.getHash(n)},sha256x2:function(e,t="HEX"){return this.sha256(this.sha256(e,t),t)},sha256Checksum:function(e){return this.sha256(this.sha256(e)).substr(0,8)},sha512_256:function(e,n="HEX"){const r=t.create();return r.update(ma.Buffer.from(e,n)),r.hex().toUpperCase()},blake256:function(e){return(new n).update(e,"hex").digest("hex")},blake256Checksum:function(e){return this.blake256(this.blake256(e)).substr(0,8)},blake2b:function(e,t){return new i(t).update(ma.Buffer.from(e,"hex")).digest("hex")},keccak256:function(e){return r(e)},keccak256Checksum:function(e){return r(e).toString().substr(0,8)},blake2b256:function(e){return new i(32).update(ma.Buffer.from(e,"hex"),32).digest("hex")},base58:a.decode,byteArray2hexStr:function(e){for(var t="",n=0;n<e.length-1;n++)t+=p(e[n]);return t+=p(e[n])},hexStr2byteArray:function(e){var t=Array(),n=0,r=0,o=0,i=0;for(r=0;r<e.length;r++){var a=e.charAt(r);u(a)&&(n<<=4,n+=d(a),0==++o%2&&(t[i++]=n,n=0))}return t},bigNumberToBuffer:function(e,t){return new l(e).toBuffer({size:t,endian:"big"})},base32:s},Qa}function Pa(){if(ka)return Za;return ka=1,Za=function(e){if(e.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),n=0;n<t.length;n++)t[n]=255;for(var r=0;r<e.length;r++){var o=e.charAt(r),i=o.charCodeAt(0);if(255!==t[i])throw new TypeError(o+" is ambiguous");t[i]=r}var a=e.length,s=e.charAt(0),l=Math.log(a)/Math.log(256),c=Math.log(256)/Math.log(a);function u(e){if("string"!=typeof e)throw new TypeError("Expected String");if(0===e.length)return new Uint8Array;for(var n=0,r=0,o=0;e[n]===s;)r++,n++;for(var i=(e.length-n)*l+1>>>0,c=new Uint8Array(i);e[n];){var u=e.charCodeAt(n);if(u>255)return;var d=t[u];if(255===d)return;for(var p=0,f=i-1;(0!==d||p<o)&&-1!==f;f--,p++)d+=a*c[f]>>>0,c[f]=d%256>>>0,d=d/256>>>0;if(0!==d)throw new Error("Non-zero carry");o=p,n++}for(var h=i-o;h!==i&&0===c[h];)h++;for(var m=new Uint8Array(r+(i-h)),b=r;h!==i;)m[b++]=c[h++];return m}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(0===t.length)return"";for(var n=0,r=0,o=0,i=t.length;o!==i&&0===t[o];)o++,n++;for(var l=(i-o)*c+1>>>0,u=new Uint8Array(l);o!==i;){for(var d=t[o],p=0,f=l-1;(0!==d||p<r)&&-1!==f;f--,p++)d+=256*u[f]>>>0,u[f]=d%a>>>0,d=d/a>>>0;if(0!==d)throw new Error("Non-zero carry");r=p,o++}for(var h=l-r;h!==l&&0===u[h];)h++;for(var m=s.repeat(n);h<l;++h)m+=e.charAt(u[h]);return m},decodeUnsafe:u,decode:function(e){var t=u(e);if(t)return t;throw new Error("Non-base"+a+" character")}}},Za}function Ka(){if(Ua)return Ea;Ua=1;var e=za();return Ea={isValidAddress:function(e){return!!/^0x[0-9a-fA-F]{40}$/.test(e)&&(!(!/^0x[0-9a-f]{40}$/.test(e)&&!/^0x?[0-9A-F]{40}$/.test(e))||this.verifyChecksum(e))},verifyChecksum:function(t){t=t.replace("0x","");for(var n=e.keccak256(t.toLowerCase()),r=0;r<40;r++)if(parseInt(n[r],16)>7&&t[r].toUpperCase()!==t[r]||parseInt(n[r],16)<=7&&t[r].toLowerCase()!==t[r])return!1;return!0}},Ea}function qa(){if(Va)return Da;Va=1;var e="qpzry9x8gf2tvdw0s3jn54khce6mua7l",t=[996825010,642813549,513874426,1027748829,705979059];const n={BECH32:"bech32",BECH32M:"bech32m"};function r(e){return e==n.BECH32?1:e==n.BECH32M?734539939:null}function o(e){for(var n=1,r=0;r<e.length;++r){var o=n>>25;n=(33554431&n)<<5^e[r];for(var i=0;i<5;++i)o>>i&1&&(n^=t[i])}return n}function i(e){var t,n=[];for(t=0;t<e.length;++t)n.push(e.charCodeAt(t)>>5);for(n.push(0),t=0;t<e.length;++t)n.push(31&e.charCodeAt(t));return n}function a(e,t,n){return o(i(e).concat(t))===r(n)}return Da={decode:function(t,n){var r,o=!1,i=!1;for(r=0;r<t.length;++r){if(t.charCodeAt(r)<33||t.charCodeAt(r)>126)return null;t.charCodeAt(r)>=97&&t.charCodeAt(r)<=122&&(o=!0),t.charCodeAt(r)>=65&&t.charCodeAt(r)<=90&&(i=!0)}if(o&&i)return null;var s=(t=t.toLowerCase()).lastIndexOf("1");if(s<1||s+7>t.length||t.length>110)return null;var l=t.substring(0,s),c=[];for(r=s+1;r<t.length;++r){var u=e.indexOf(t.charAt(r));if(-1===u)return null;c.push(u)}if(!a(l,c,n))return null;return{hrp:l,data:c.slice(0,c.length-6)}},encode:function(t,n,a){for(var s=n.concat(function(e,t,n){for(var a=o(i(e).concat(t).concat([0,0,0,0,0,0]))^r(n),s=[],l=0;l<6;++l)s.push(a>>5*(5-l)&31);return s}(t,n,a)),l=t+"1",c=0;c<s.length;++c)l+=e.charAt(s[c]);return l},encodings:n,verifyChecksum:a}}function $a(){if(Ma)return Ya;Ma=1;var e=Ha(),t=function(){if(Oa)return Sa;Oa=1;var e=qa();function t(e,t,n,r){for(var o=0,i=0,a=[],s=(1<<n)-1,l=0;l<e.length;++l){var c=e[l];if(c<0||c>>t!==0)return null;for(o=o<<t|c,i+=t;i>=n;)i-=n,a.push(o>>i&s)}if(r)i>0&&a.push(o<<n-i&s);else if(i>=t||o<<n-i&s)return null;return a}function n(n,r){var o=!1,i=e.decode(r,e.encodings.BECH32);if(null===i&&(i=e.decode(r,e.encodings.BECH32M),o=!0),null===i||i.hrp!==n||i.data.length<1||i.data[0]>16)return null;var a=t(i.data.slice(1),5,8,!1);return null===a||a.length<2||a.length>40||0===i.data[0]&&20!==a.length&&32!==a.length||0===i.data[0]&&o?null:0===i.data[0]||o?{version:i.data[0],program:a}:null}function r(r,o,i){var a=e.encodings.BECH32;o>0&&(a=e.encodings.BECH32M);var s=e.encode(r,[o].concat(t(i,8,5,!0)),a);return null===n(r,s)?null:s}var o="prod";return Sa={encode:r,decode:n,isValidAddress:function(e,t,i={}){if(!t.bech32Hrp||0===t.bech32Hrp.length)return!1;const{networkType:a=o}=i;var s;if("prod"===a||"testnet"===a)s=t.bech32Hrp[a];else{if(!t.bech32Hrp)return!1;s=t.bech32Hrp.prod.concat(t.bech32Hrp.testnet)}for(var l of s){var c=n(l,e);if(c)return r(l,c.version,c.program)===e.toLowerCase()}return!1}}}(),n=za(),r="prod";function o(t,r){var o=(r=r||{}).expectedLength||25,i=r.hashFunction||"sha256",a=function(t){try{return e.decode(t)}catch(e){return null}}(t);if(a){var s=a.length;if(s!==o)return null;if(r.regex&&!r.regex.test(t))return!1;var l=n.toHex(a.slice(s-4,s)),c=function(e,t){switch(e){case"blake256keccak256":var r=n.blake2b256(t);return n.keccak256Checksum(ma.Buffer.from(r,"hex"));case"blake256":return n.blake256Checksum(t);case"keccak256":return n.keccak256Checksum(t);default:return n.sha256Checksum(t)}}(i,n.toHex(a.slice(0,s-4)));return l===c?n.toHex(a.slice(0,o-24)):null}return null}return Ya={isValidAddress:function(e,n,i={}){return function(e,t,n){const{networkType:i=r}=n;var a,s=o(e,t);if(s){if("prod"===i||"testnet"===i)a=t.addressTypes[i];else{if(!t.addressTypes)return!1;a=t.addressTypes.prod.concat(t.addressTypes.testnet)}return a.indexOf(s)>=0}return!1}(e,n,i)||t.isValidAddress(e,n,i)}}}var es,ts={exports:{}},ns=ts.exports;function rs(){return es||(es=1,function(e){!function(t,n){var r=Math.pow(2,-24),o=Math.pow(2,32),i=Math.pow(2,53);var a={encode:function(e){var t,r=new ArrayBuffer(256),a=new DataView(r),s=0;function l(e){for(var n=r.byteLength,o=s+e;n<o;)n*=2;if(n!==r.byteLength){var i=a;r=new ArrayBuffer(n),a=new DataView(r);for(var l=s+3>>2,c=0;c<l;++c)a.setUint32(4*c,i.getUint32(4*c))}return t=e,a}function c(){s+=t}function u(e){c(l(1).setUint8(s,e))}function d(e){for(var t=l(e.length),n=0;n<e.length;++n)t.setUint8(s+n,e[n]);c()}function p(e,t){t<24?u(e<<5|t):t<256?(u(e<<5|24),u(t)):t<65536?(u(e<<5|25),function(e){c(l(2).setUint16(s,e))}(t)):t<4294967296?(u(e<<5|26),function(e){c(l(4).setUint32(s,e))}(t)):(u(e<<5|27),function(e){var t=e%o,n=(e-t)/o,r=l(8);r.setUint32(s,n),r.setUint32(s+4,t),c()}(t))}if(function e(t){var r;if(!1===t)return u(244);if(!0===t)return u(245);if(null===t)return u(246);if(t===n)return u(247);switch(typeof t){case"number":if(Math.floor(t)===t){if(0<=t&&t<=i)return p(0,t);if(-i<=t&&t<0)return p(1,-(t+1))}return u(251),function(e){c(l(8).setFloat64(s,e))}(t);case"string":var o=[];for(r=0;r<t.length;++r){var a=t.charCodeAt(r);a<128?o.push(a):a<2048?(o.push(192|a>>6),o.push(128|63&a)):a<55296?(o.push(224|a>>12),o.push(128|a>>6&63),o.push(128|63&a)):(a=(1023&a)<<10,a|=1023&t.charCodeAt(++r),a+=65536,o.push(240|a>>18),o.push(128|a>>12&63),o.push(128|a>>6&63),o.push(128|63&a))}return p(3,o.length),d(o);default:var f;if(Array.isArray(t))for(p(4,f=t.length),r=0;r<f;++r)e(t[r]);else if(t instanceof Uint8Array)p(2,t.length),d(t);else{var h=Object.keys(t);for(p(5,f=h.length),r=0;r<f;++r){var m=h[r];e(m),e(t[m])}}}}(e),"slice"in r)return r.slice(0,s);for(var f=new ArrayBuffer(s),h=new DataView(f),m=0;m<s;++m)h.setUint8(m,a.getUint8(m));return f},decode:function(e,t,i){var a=new DataView(e),s=0;function l(e,t){return s+=t,e}function c(t){return l(new Uint8Array(e,s,t),t)}function u(){return l(a.getUint8(s),1)}function d(){return l(a.getUint16(s),2)}function p(){return l(a.getUint32(s),4)}function f(){return 255===a.getUint8(s)&&(s+=1,!0)}function h(e){if(e<24)return e;if(24===e)return u();if(25===e)return d();if(26===e)return p();if(27===e)return p()*o+p();if(31===e)return-1;throw"Invalid length encoding"}function m(e){var t=u();if(255===t)return-1;var n=h(31&t);if(n<0||t>>5!==e)throw"Invalid indefinite length element";return n}function b(e,t){for(var n=0;n<t;++n){var r=u();128&r&&(r<224?(r=(31&r)<<6|63&u(),t-=1):r<240?(r=(15&r)<<12|(63&u())<<6|63&u(),t-=2):(r=(15&r)<<18|(63&u())<<12|(63&u())<<6|63&u(),t-=3)),r<65536?e.push(r):(r-=65536,e.push(55296|r>>10),e.push(56320|1023&r))}}"function"!=typeof t&&(t=function(e){return e}),"function"!=typeof i&&(i=function(){return n});var g=function e(){var o,p,g=u(),_=g>>5,v=31&g;if(7===_)switch(v){case 25:return function(){var e=new ArrayBuffer(4),t=new DataView(e),n=d(),o=32768&n,i=31744&n,a=1023&n;if(31744===i)i=261120;else if(0!==i)i+=114688;else if(0!==a)return a*r;return t.setUint32(0,o<<16|i<<13|a<<13),t.getFloat32(0)}();case 26:return l(a.getFloat32(s),4);case 27:return l(a.getFloat64(s),8)}if((p=h(v))<0&&(_<2||6<_))throw"Invalid length";switch(_){case 0:return p;case 1:return-1-p;case 2:if(p<0){for(var y=[],I=0;(p=m(_))>=0;)I+=p,y.push(c(p));var x=new Uint8Array(I),C=0;for(o=0;o<y.length;++o)x.set(y[o],C),C+=y[o].length;return x}return c(p);case 3:var G=[];if(p<0)for(;(p=m(_))>=0;)b(G,p);else b(G,p);return String.fromCharCode.apply(null,G);case 4:var B;if(p<0)for(B=[];!f();)B.push(e());else for(B=new Array(p),o=0;o<p;++o)B[o]=e();return B;case 5:var w={};for(o=0;o<p||p<0&&!f();++o){w[e()]=e()}return w;case 6:return t(e(),p);case 7:switch(p){case 20:return!1;case 21:return!0;case 22:return null;case 23:return n;default:return i(p)}}}();if(s!==e.byteLength)throw"Remaining bytes";return g}};e.exports?e.exports=a:t.CBOR||(t.CBOR=a)}(ns)}(ts)),ts.exports}var os,is={exports:{}},as={exports:{}},ss={},ls={};var cs,us,ds,ps,fs={},hs={};function ms(){if(us)return fs;us=1;var e=fs&&fs.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(fs,"__esModule",{value:!0});const t=e(function(){if(cs)return hs;cs=1,Object.defineProperty(hs,"__esModule",{value:!0});const e=fa();return hs.default=(t,n)=>e.Buffer.from(t,n),hs}());return fs.default=function(e,n){const r=(e,r)=>n((0,t.default)(e),r)>>>0;return r.signed=(e,r)=>n((0,t.default)(e),r),r.unsigned=r,r.model=e,r},fs}function bs(){if(ds)return ss;ds=1;var e=ss&&ss.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ss,"__esModule",{value:!0});const t=e((os||(os=1,Object.defineProperty(ls,"__esModule",{value:!0}),ls.default=(e,t=0)=>{let n=~~t,r=0;for(let t=0;t<e.length;t++)r+=e[t];return n+=r%256,n%256}),ls)),n=e(ms());return ss.default=(0,n.default)("crc1",t.default),ss}function gs(){if(ps)return as.exports;ps=1;const e=bs().default;return as.exports=e,as.exports.default=e,as.exports}var _s,vs,ys,Is={exports:{}},xs={},Cs={};function Gs(){if(vs)return xs;vs=1;var e=xs&&xs.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(xs,"__esModule",{value:!0});const t=e(function(){if(_s)return Cs;_s=1,Object.defineProperty(Cs,"__esModule",{value:!0});let e=[0,7,14,9,28,27,18,21,56,63,54,49,36,35,42,45,112,119,126,121,108,107,98,101,72,79,70,65,84,83,90,93,224,231,238,233,252,251,242,245,216,223,214,209,196,195,202,205,144,151,158,153,140,139,130,133,168,175,166,161,180,179,186,189,199,192,201,206,219,220,213,210,255,248,241,246,227,228,237,234,183,176,185,190,171,172,165,162,143,136,129,134,147,148,157,154,39,32,41,46,59,60,53,50,31,24,17,22,3,4,13,10,87,80,89,94,75,76,69,66,111,104,97,102,115,116,125,122,137,142,135,128,149,146,155,156,177,182,191,184,173,170,163,164,249,254,247,240,229,226,235,236,193,198,207,200,221,218,211,212,105,110,103,96,117,114,123,124,81,86,95,88,77,74,67,68,25,30,23,16,5,2,11,12,33,38,47,40,61,58,51,52,78,73,64,71,82,85,92,91,118,113,120,127,106,109,100,99,62,57,48,55,34,37,44,43,6,1,8,15,26,29,20,19,174,169,160,167,178,181,188,187,150,145,152,159,138,141,132,131,222,217,208,215,194,197,204,203,230,225,232,239,250,253,244,243];return"undefined"!=typeof Int32Array&&(e=new Int32Array(e)),Cs.default=(t,n=0)=>{let r=~~n;for(let n=0;n<t.length;n++)r=255&e[255&(r^t[n])];return r},Cs}()),n=e(ms());return xs.default=(0,n.default)("crc-8",t.default),xs}function Bs(){if(ys)return Is.exports;ys=1;const e=Gs().default;return Is.exports=e,Is.exports.default=e,Is.exports}var ws,As,Fs,Ns={exports:{}},Xs={},Qs={};function Rs(){if(As)return Xs;As=1;var e=Xs&&Xs.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Xs,"__esModule",{value:!0});const t=e(function(){if(ws)return Qs;ws=1,Object.defineProperty(Qs,"__esModule",{value:!0});let e=[0,94,188,226,97,63,221,131,194,156,126,32,163,253,31,65,157,195,33,127,252,162,64,30,95,1,227,189,62,96,130,220,35,125,159,193,66,28,254,160,225,191,93,3,128,222,60,98,190,224,2,92,223,129,99,61,124,34,192,158,29,67,161,255,70,24,250,164,39,121,155,197,132,218,56,102,229,187,89,7,219,133,103,57,186,228,6,88,25,71,165,251,120,38,196,154,101,59,217,135,4,90,184,230,167,249,27,69,198,152,122,36,248,166,68,26,153,199,37,123,58,100,134,216,91,5,231,185,140,210,48,110,237,179,81,15,78,16,242,172,47,113,147,205,17,79,173,243,112,46,204,146,211,141,111,49,178,236,14,80,175,241,19,77,206,144,114,44,109,51,209,143,12,82,176,238,50,108,142,208,83,13,239,177,240,174,76,18,145,207,45,115,202,148,118,40,171,245,23,73,8,86,180,234,105,55,213,139,87,9,235,181,54,104,138,212,149,203,41,119,244,170,72,22,233,183,85,11,136,214,52,106,43,117,151,201,74,20,246,168,116,42,200,150,21,75,169,247,182,232,10,84,215,137,107,53];return"undefined"!=typeof Int32Array&&(e=new Int32Array(e)),Qs.default=(t,n=0)=>{let r=~~n;for(let n=0;n<t.length;n++)r=255&e[255&(r^t[n])];return r},Qs}()),n=e(ms());return Xs.default=(0,n.default)("dallas-1-wire",t.default),Xs}function Zs(){if(Fs)return Ns.exports;Fs=1;const e=Rs().default;return Ns.exports=e,Ns.exports.default=e,Ns.exports}var ks,Ws,Ls,Es={exports:{}},Us={},Ds={};function Vs(){if(Ws)return Us;Ws=1;var e=Us&&Us.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Us,"__esModule",{value:!0});const t=e(function(){if(ks)return Ds;ks=1,Object.defineProperty(Ds,"__esModule",{value:!0});let e=[0,49345,49537,320,49921,960,640,49729,50689,1728,1920,51009,1280,50625,50305,1088,52225,3264,3456,52545,3840,53185,52865,3648,2560,51905,52097,2880,51457,2496,2176,51265,55297,6336,6528,55617,6912,56257,55937,6720,7680,57025,57217,8e3,56577,7616,7296,56385,5120,54465,54657,5440,55041,6080,5760,54849,53761,4800,4992,54081,4352,53697,53377,4160,61441,12480,12672,61761,13056,62401,62081,12864,13824,63169,63361,14144,62721,13760,13440,62529,15360,64705,64897,15680,65281,16320,16e3,65089,64001,15040,15232,64321,14592,63937,63617,14400,10240,59585,59777,10560,60161,11200,10880,59969,60929,11968,12160,61249,11520,60865,60545,11328,58369,9408,9600,58689,9984,59329,59009,9792,8704,58049,58241,9024,57601,8640,8320,57409,40961,24768,24960,41281,25344,41921,41601,25152,26112,42689,42881,26432,42241,26048,25728,42049,27648,44225,44417,27968,44801,28608,28288,44609,43521,27328,27520,43841,26880,43457,43137,26688,30720,47297,47489,31040,47873,31680,31360,47681,48641,32448,32640,48961,32e3,48577,48257,31808,46081,29888,30080,46401,30464,47041,46721,30272,29184,45761,45953,29504,45313,29120,28800,45121,20480,37057,37249,20800,37633,21440,21120,37441,38401,22208,22400,38721,21760,38337,38017,21568,39937,23744,23936,40257,24320,40897,40577,24128,23040,39617,39809,23360,39169,22976,22656,38977,34817,18624,18816,35137,19200,35777,35457,19008,19968,36545,36737,20288,36097,19904,19584,35905,17408,33985,34177,17728,34561,18368,18048,34369,33281,17088,17280,33601,16640,33217,32897,16448];return"undefined"!=typeof Int32Array&&(e=new Int32Array(e)),Ds.default=(t,n=0)=>{let r=~~n;for(let n=0;n<t.length;n++)r=65535&(e[255&(r^t[n])]^r>>8);return r},Ds}()),n=e(ms());return Us.default=(0,n.default)("crc-16",t.default),Us}function Ss(){if(Ls)return Es.exports;Ls=1;const e=Vs().default;return Es.exports=e,Es.exports.default=e,Es.exports}var Os,Ys,Ms,js={exports:{}},Ts={},Hs={};function Js(){if(Ys)return Ts;Ys=1;var e=Ts&&Ts.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ts,"__esModule",{value:!0});const t=e(function(){if(Os)return Hs;Os=1,Object.defineProperty(Hs,"__esModule",{value:!0});let e=[0,4129,8258,12387,16516,20645,24774,28903,33032,37161,41290,45419,49548,53677,57806,61935,4657,528,12915,8786,21173,17044,29431,25302,37689,33560,45947,41818,54205,50076,62463,58334,9314,13379,1056,5121,25830,29895,17572,21637,42346,46411,34088,38153,58862,62927,50604,54669,13907,9842,5649,1584,30423,26358,22165,18100,46939,42874,38681,34616,63455,59390,55197,51132,18628,22757,26758,30887,2112,6241,10242,14371,51660,55789,59790,63919,35144,39273,43274,47403,23285,19156,31415,27286,6769,2640,14899,10770,56317,52188,64447,60318,39801,35672,47931,43802,27814,31879,19684,23749,11298,15363,3168,7233,60846,64911,52716,56781,44330,48395,36200,40265,32407,28342,24277,20212,15891,11826,7761,3696,65439,61374,57309,53244,48923,44858,40793,36728,37256,33193,45514,41451,53516,49453,61774,57711,4224,161,12482,8419,20484,16421,28742,24679,33721,37784,41979,46042,49981,54044,58239,62302,689,4752,8947,13010,16949,21012,25207,29270,46570,42443,38312,34185,62830,58703,54572,50445,13538,9411,5280,1153,29798,25671,21540,17413,42971,47098,34713,38840,59231,63358,50973,55100,9939,14066,1681,5808,26199,30326,17941,22068,55628,51565,63758,59695,39368,35305,47498,43435,22596,18533,30726,26663,6336,2273,14466,10403,52093,56156,60223,64286,35833,39896,43963,48026,19061,23124,27191,31254,2801,6864,10931,14994,64814,60687,56684,52557,48554,44427,40424,36297,31782,27655,23652,19525,15522,11395,7392,3265,61215,65342,53085,57212,44955,49082,36825,40952,28183,32310,20053,24180,11923,16050,3793,7920];return"undefined"!=typeof Int32Array&&(e=new Int32Array(e)),Hs.default=(t,n)=>{let r=void 0!==n?~~n:65535;for(let n=0;n<t.length;n++)r=65535&(e[255&(r>>8^t[n])]^r<<8);return r},Hs}()),n=e(ms());return Ts.default=(0,n.default)("ccitt",t.default),Ts}function zs(){if(Ms)return js.exports;Ms=1;const e=Js().default;return js.exports=e,js.exports.default=e,js.exports}var Ps,Ks,qs,$s={exports:{}},el={},tl={};function nl(){if(Ks)return el;Ks=1;var e=el&&el.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(el,"__esModule",{value:!0});const t=e(function(){if(Ps)return tl;Ps=1,Object.defineProperty(tl,"__esModule",{value:!0});let e=[0,49345,49537,320,49921,960,640,49729,50689,1728,1920,51009,1280,50625,50305,1088,52225,3264,3456,52545,3840,53185,52865,3648,2560,51905,52097,2880,51457,2496,2176,51265,55297,6336,6528,55617,6912,56257,55937,6720,7680,57025,57217,8e3,56577,7616,7296,56385,5120,54465,54657,5440,55041,6080,5760,54849,53761,4800,4992,54081,4352,53697,53377,4160,61441,12480,12672,61761,13056,62401,62081,12864,13824,63169,63361,14144,62721,13760,13440,62529,15360,64705,64897,15680,65281,16320,16e3,65089,64001,15040,15232,64321,14592,63937,63617,14400,10240,59585,59777,10560,60161,11200,10880,59969,60929,11968,12160,61249,11520,60865,60545,11328,58369,9408,9600,58689,9984,59329,59009,9792,8704,58049,58241,9024,57601,8640,8320,57409,40961,24768,24960,41281,25344,41921,41601,25152,26112,42689,42881,26432,42241,26048,25728,42049,27648,44225,44417,27968,44801,28608,28288,44609,43521,27328,27520,43841,26880,43457,43137,26688,30720,47297,47489,31040,47873,31680,31360,47681,48641,32448,32640,48961,32e3,48577,48257,31808,46081,29888,30080,46401,30464,47041,46721,30272,29184,45761,45953,29504,45313,29120,28800,45121,20480,37057,37249,20800,37633,21440,21120,37441,38401,22208,22400,38721,21760,38337,38017,21568,39937,23744,23936,40257,24320,40897,40577,24128,23040,39617,39809,23360,39169,22976,22656,38977,34817,18624,18816,35137,19200,35777,35457,19008,19968,36545,36737,20288,36097,19904,19584,35905,17408,33985,34177,17728,34561,18368,18048,34369,33281,17088,17280,33601,16640,33217,32897,16448];return"undefined"!=typeof Int32Array&&(e=new Int32Array(e)),tl.default=(t,n)=>{let r=void 0!==n?~~n:65535;for(let n=0;n<t.length;n++)r=65535&(e[255&(r^t[n])]^r>>8);return r},tl}()),n=e(ms());return el.default=(0,n.default)("crc-16-modbus",t.default),el}function rl(){if(qs)return $s.exports;qs=1;const e=nl().default;return $s.exports=e,$s.exports.default=e,$s.exports}var ol,il,al,sl={exports:{}},ll={},cl={};function ul(){if(il)return ll;il=1;var e=ll&&ll.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ll,"__esModule",{value:!0});const t=e((ol||(ol=1,Object.defineProperty(cl,"__esModule",{value:!0}),cl.default=(e,t)=>{let n=void 0!==t?~~t:0;for(let t=0;t<e.length;t++){let r=n>>>8&255;r^=255&e[t],r^=r>>>4,n=n<<8&65535,n^=r,r=r<<5&65535,n^=r,r=r<<7&65535,n^=r}return n}),cl)),n=e(ms());return ll.default=(0,n.default)("xmodem",t.default),ll}function dl(){if(al)return sl.exports;al=1;const e=ul().default;return sl.exports=e,sl.exports.default=e,sl.exports}var pl,fl,hl,ml={exports:{}},bl={},gl={};function _l(){if(fl)return bl;fl=1;var e=bl&&bl.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(bl,"__esModule",{value:!0});const t=e(function(){if(pl)return gl;pl=1,Object.defineProperty(gl,"__esModule",{value:!0});let e=[0,4489,8978,12955,17956,22445,25910,29887,35912,40385,44890,48851,51820,56293,59774,63735,4225,264,13203,8730,22181,18220,30135,25662,40137,36160,49115,44626,56045,52068,63999,59510,8450,12427,528,5017,26406,30383,17460,21949,44362,48323,36440,40913,60270,64231,51324,55797,12675,8202,4753,792,30631,26158,21685,17724,48587,44098,40665,36688,64495,60006,55549,51572,16900,21389,24854,28831,1056,5545,10034,14011,52812,57285,60766,64727,34920,39393,43898,47859,21125,17164,29079,24606,5281,1320,14259,9786,57037,53060,64991,60502,39145,35168,48123,43634,25350,29327,16404,20893,9506,13483,1584,6073,61262,65223,52316,56789,43370,47331,35448,39921,29575,25102,20629,16668,13731,9258,5809,1848,65487,60998,56541,52564,47595,43106,39673,35696,33800,38273,42778,46739,49708,54181,57662,61623,2112,6601,11090,15067,20068,24557,28022,31999,38025,34048,47003,42514,53933,49956,61887,57398,6337,2376,15315,10842,24293,20332,32247,27774,42250,46211,34328,38801,58158,62119,49212,53685,10562,14539,2640,7129,28518,32495,19572,24061,46475,41986,38553,34576,62383,57894,53437,49460,14787,10314,6865,2904,32743,28270,23797,19836,50700,55173,58654,62615,32808,37281,41786,45747,19012,23501,26966,30943,3168,7657,12146,16123,54925,50948,62879,58390,37033,33056,46011,41522,23237,19276,31191,26718,7393,3432,16371,11898,59150,63111,50204,54677,41258,45219,33336,37809,27462,31439,18516,23005,11618,15595,3696,8185,63375,58886,54429,50452,45483,40994,37561,33584,31687,27214,22741,18780,15843,11370,7921,3960];return"undefined"!=typeof Int32Array&&(e=new Int32Array(e)),gl.default=(t,n)=>{let r=void 0!==n?~~n:0;for(let n=0;n<t.length;n++)r=65535&(e[255&(r^t[n])]^r>>8);return r},gl}()),n=e(ms());return bl.default=(0,n.default)("kermit",t.default),bl}function vl(){if(hl)return ml.exports;hl=1;const e=_l().default;return ml.exports=e,ml.exports.default=e,ml.exports}var yl,Il,xl,Cl={exports:{}},Gl={},Bl={};function wl(){if(Il)return Gl;Il=1;var e=Gl&&Gl.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Gl,"__esModule",{value:!0});const t=e(function(){if(yl)return Bl;yl=1,Object.defineProperty(Bl,"__esModule",{value:!0});let e=[0,8801531,9098509,825846,9692897,1419802,1651692,10452759,10584377,2608578,2839604,11344079,3303384,11807523,12104405,4128302,12930697,4391538,5217156,13227903,5679208,13690003,14450021,5910942,6606768,14844747,15604413,6837830,16197969,7431594,8256604,16494759,840169,9084178,8783076,18463,10434312,1670131,1434117,9678590,11358416,2825259,2590173,10602790,4109873,12122826,11821884,3289031,13213536,5231515,4409965,12912278,5929345,14431610,13675660,5693559,6823513,15618722,14863188,6588335,16513208,8238147,7417269,16212302,1680338,10481449,9664223,1391140,9061683,788936,36926,8838341,12067563,4091408,3340262,11844381,2868234,11372785,10555655,2579964,14478683,5939616,5650518,13661357,5180346,13190977,12967607,4428364,8219746,16457881,16234863,7468436,15633027,6866552,6578062,14816117,1405499,9649856,10463030,1698765,8819930,55329,803287,9047340,11858690,3325945,4072975,12086004,2561507,10574104,11387118,2853909,13647026,5664841,5958079,14460228,4446803,12949160,13176670,5194661,7454091,16249200,16476294,8201341,14834538,6559633,6852199,15647388,3360676,11864927,12161705,4185682,10527045,2551230,2782280,11286707,9619101,1346150,1577872,10379115,73852,8875143,9172337,899466,16124205,7357910,8182816,16421083,6680524,14918455,15678145,6911546,5736468,13747439,14507289,5968354,12873461,4334094,5159928,13170435,4167245,12180150,11879232,3346363,11301036,2767959,2532769,10545498,10360692,1596303,1360505,9604738,913813,9157998,8856728,92259,16439492,8164415,7343561,16138546,6897189,15692510,14936872,6662099,5986813,14488838,13733104,5750795,13156124,5174247,4352529,12855018,2810998,11315341,10498427,2522496,12124823,4148844,3397530,11901793,9135439,862644,110658,8912057,1606574,10407765,9590435,1317464,15706879,6940164,6651890,14889737,8145950,16384229,16161043,7394792,5123014,13133629,12910283,4370992,14535975,5997020,5707818,13718737,2504095,10516836,11329682,2796649,11916158,3383173,4130419,12143240,8893606,129117,876971,9121104,1331783,9576124,10389322,1625009,14908182,6633453,6925851,15721184,7380471,16175372,16402682,8127489,4389423,12891860,13119266,5137369,13704398,5722165,6015427,14517560];return"undefined"!=typeof Int32Array&&(e=new Int32Array(e)),Bl.default=(t,n)=>{let r=void 0!==n?~~n:11994318;for(let n=0;n<t.length;n++)r=16777215&(e[255&(r>>16^t[n])]^r<<8);return r},Bl}()),n=e(ms());return Gl.default=(0,n.default)("crc-24",t.default),Gl}function Al(){if(xl)return Cl.exports;xl=1;const e=wl().default;return Cl.exports=e,Cl.exports.default=e,Cl.exports}var Fl,Nl,Xl,Ql={exports:{}},Rl={},Zl={};function kl(){if(Nl)return Rl;Nl=1;var e=Rl&&Rl.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Rl,"__esModule",{value:!0});const t=e(function(){if(Fl)return Zl;Fl=1,Object.defineProperty(Zl,"__esModule",{value:!0});let e=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];return"undefined"!=typeof Int32Array&&(e=new Int32Array(e)),Zl.default=(t,n)=>{let r=0===n?0:-1^n;for(let n=0;n<t.length;n++)r=e[255&(r^t[n])]^r>>>8;return-1^r},Zl}()),n=e(ms());return Rl.default=(0,n.default)("crc-32",t.default),Rl}function Wl(){if(Xl)return Ql.exports;Xl=1;const e=kl().default;return Ql.exports=e,Ql.exports.default=e,Ql.exports}var Ll,El,Ul,Dl={exports:{}},Vl={},Sl={};function Ol(){if(El)return Vl;El=1;var e=Vl&&Vl.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Vl,"__esModule",{value:!0});const t=e(function(){if(Ll)return Sl;Ll=1,Object.defineProperty(Sl,"__esModule",{value:!0});let e=[0,79764919,159529838,222504665,319059676,398814059,445009330,507990021,638119352,583659535,797628118,726387553,890018660,835552979,1015980042,944750013,1276238704,1221641927,1167319070,1095957929,1595256236,1540665371,1452775106,1381403509,1780037320,1859660671,1671105958,1733955601,2031960084,2111593891,1889500026,1952343757,2552477408,2632100695,2443283854,2506133561,2334638140,2414271883,2191915858,2254759653,3190512472,3135915759,3081330742,3009969537,2905550212,2850959411,2762807018,2691435357,3560074640,3505614887,3719321342,3648080713,3342211916,3287746299,3467911202,3396681109,4063920168,4143685023,4223187782,4286162673,3779000052,3858754371,3904687514,3967668269,881225847,809987520,1023691545,969234094,662832811,591600412,771767749,717299826,311336399,374308984,453813921,533576470,25881363,88864420,134795389,214552010,2023205639,2086057648,1897238633,1976864222,1804852699,1867694188,1645340341,1724971778,1587496639,1516133128,1461550545,1406951526,1302016099,1230646740,1142491917,1087903418,2896545431,2825181984,2770861561,2716262478,3215044683,3143675388,3055782693,3001194130,2326604591,2389456536,2200899649,2280525302,2578013683,2640855108,2418763421,2498394922,3769900519,3832873040,3912640137,3992402750,4088425275,4151408268,4197601365,4277358050,3334271071,3263032808,3476998961,3422541446,3585640067,3514407732,3694837229,3640369242,1762451694,1842216281,1619975040,1682949687,2047383090,2127137669,1938468188,2001449195,1325665622,1271206113,1183200824,1111960463,1543535498,1489069629,1434599652,1363369299,622672798,568075817,748617968,677256519,907627842,853037301,1067152940,995781531,51762726,131386257,177728840,240578815,269590778,349224269,429104020,491947555,4046411278,4126034873,4172115296,4234965207,3794477266,3874110821,3953728444,4016571915,3609705398,3555108353,3735388376,3664026991,3290680682,3236090077,3449943556,3378572211,3174993278,3120533705,3032266256,2961025959,2923101090,2868635157,2813903052,2742672763,2604032198,2683796849,2461293480,2524268063,2284983834,2364738477,2175806836,2238787779,1569362073,1498123566,1409854455,1355396672,1317987909,1246755826,1192025387,1137557660,2072149281,2135122070,1912620623,1992383480,1753615357,1816598090,1627664531,1707420964,295390185,358241886,404320391,483945776,43990325,106832002,186451547,266083308,932423249,861060070,1041341759,986742920,613929101,542559546,756411363,701822548,3316196985,3244833742,3425377559,3370778784,3601682597,3530312978,3744426955,3689838204,3819031489,3881883254,3928223919,4007849240,4037393693,4100235434,4180117107,4259748804,2310601993,2373574846,2151335527,2231098320,2596047829,2659030626,2470359227,2550115596,2947551409,2876312838,2788305887,2733848168,3165939309,3094707162,3040238851,2985771188];return"undefined"!=typeof Int32Array&&(e=new Int32Array(e)),Sl.default=(t,n)=>{let r=void 0!==n?~~n:4294967295;for(let n=0;n<t.length;n++)r=e[255&(r>>24^t[n])]^r<<8;return r},Sl}()),n=e(ms());return Vl.default=(0,n.default)("crc-32-mpeg",t.default),Vl}function Yl(){if(Ul)return Dl.exports;Ul=1;const e=Ol().default;return Dl.exports=e,Dl.exports.default=e,Dl.exports}var Ml,jl,Tl,Hl,Jl,zl,Pl,Kl,ql={exports:{}},$l={},ec={};function tc(){if(jl)return $l;jl=1;var e=$l&&$l.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty($l,"__esModule",{value:!0});const t=e(function(){if(Ml)return ec;Ml=1,Object.defineProperty(ec,"__esModule",{value:!0});let e=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];return"undefined"!=typeof Int32Array&&(e=new Int32Array(e)),ec.default=(t,n=-1)=>{let r=0===n?0:~~n;for(let n=0;n<t.length;n++)r=e[255&(r^t[n])]^r>>>8;return r},ec}()),n=e(ms());return $l.default=(0,n.default)("jam",t.default),$l}function nc(){if(Tl)return ql.exports;Tl=1;const e=tc().default;return ql.exports=e,ql.exports.default=e,ql.exports}function rc(){return Hl||(Hl=1,function(e){e.exports={crc1:gs(),crc8:Bs(),crc81wire:Zs(),crc16:Ss(),crc16ccitt:zs(),crc16modbus:rl(),crc16xmodem:dl(),crc16kermit:vl(),crc24:Al(),crc32:Wl(),crc32mpeg:Yl(),crcjam:nc()},e.exports.default=e.exports}(is)),is.exports}function oc(){if(zl)return Jl;zl=1;var e=qa();return Jl={isValidAddress:function(t,n,r={}){const{networkType:o="prod"}=r,i=e.decode(t,e.encodings.BECH32);if(!i)return!1;const a=i.hrp;let s;if("prod"===o||"testnet"===o)s=n.bech32Hrp[o];else{if(!n.bech32Hrp)return!1;s=n.bech32Hrp.prod.concat(n.bech32Hrp.testnet)}return-1!==s.indexOf(a)}}}function ic(){if(Kl)return Pl;Kl=1;var e=rs(),t=rc(),n=Ha(),r=oc();function o(r){var o=function(t){try{var r=n.decode(t);return e.decode(new Uint8Array(r).buffer)}catch(e){return null}}(r);if(!o||!Array.isArray(o)&&2!=o.length)return!1;var i=o[0],a=o[1];return"number"==typeof a&&t.crc32(i)==a}return Pl={isValidAddress:function(e,t,n={}){return o(e)||function(e,t,n){return r.isValidAddress(e,t,n)}(e,t,n)}}}var ac,sc,lc,cc,uc,dc,pc,fc={};function hc(){if(lc)return sc;lc=1;var e=(ac||(ac=1,function(e){var t={};function n(e,r,i){if(i!==t)return e instanceof n?e:void 0===e?o:n.parse(e);for(e=e||[];e.length&&!e[e.length-1];)--e.length;this._d=e,this._s=e.length?r||1:0}n._construct=function(e,r){return new n(e,r,t)};var r=1e7;n.base=r,n.base_log10=7;var o=new n([],0,t);n.ZERO=o;var i=new n([1],1,t);n.ONE=i;var a=new n(i._d,-1,t);n.M_ONE=a,n._0=o,n._1=i,n.small=[o,i,new n([2],1,t),new n([3],1,t),new n([4],1,t),new n([5],1,t),new n([6],1,t),new n([7],1,t),new n([8],1,t),new n([9],1,t),new n([10],1,t),new n([11],1,t),new n([12],1,t),new n([13],1,t),new n([14],1,t),new n([15],1,t),new n([16],1,t),new n([17],1,t),new n([18],1,t),new n([19],1,t),new n([20],1,t),new n([21],1,t),new n([22],1,t),new n([23],1,t),new n([24],1,t),new n([25],1,t),new n([26],1,t),new n([27],1,t),new n([28],1,t),new n([29],1,t),new n([30],1,t),new n([31],1,t),new n([32],1,t),new n([33],1,t),new n([34],1,t),new n([35],1,t),new n([36],1,t)],n.digits="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),n.prototype.toString=function(e){if((e=+e||10)<2||e>36)throw new Error("illegal radix "+e+".");if(0===this._s)return"0";if(10===e){var t=this._s<0?"-":"";t+=this._d[this._d.length-1].toString();for(var r=this._d.length-2;r>=0;r--){for(var o=this._d[r].toString();o.length<7;)o="0"+o;t+=o}return t}var i=n.digits;e=n.small[e];for(var a,s=this._s,l=this.abs(),c=[];0!==l._s;){var u=l.divRem(e);l=u[0],a=u[1],c.push(i[a.valueOf()])}return(s<0?"-":"")+c.reverse().join("")},n.radixRegex=[/^$/,/^$/,/^[01]*$/,/^[012]*$/,/^[0-3]*$/,/^[0-4]*$/,/^[0-5]*$/,/^[0-6]*$/,/^[0-7]*$/,/^[0-8]*$/,/^[0-9]*$/,/^[0-9aA]*$/,/^[0-9abAB]*$/,/^[0-9abcABC]*$/,/^[0-9a-dA-D]*$/,/^[0-9a-eA-E]*$/,/^[0-9a-fA-F]*$/,/^[0-9a-gA-G]*$/,/^[0-9a-hA-H]*$/,/^[0-9a-iA-I]*$/,/^[0-9a-jA-J]*$/,/^[0-9a-kA-K]*$/,/^[0-9a-lA-L]*$/,/^[0-9a-mA-M]*$/,/^[0-9a-nA-N]*$/,/^[0-9a-oA-O]*$/,/^[0-9a-pA-P]*$/,/^[0-9a-qA-Q]*$/,/^[0-9a-rA-R]*$/,/^[0-9a-sA-S]*$/,/^[0-9a-tA-T]*$/,/^[0-9a-uA-U]*$/,/^[0-9a-vA-V]*$/,/^[0-9a-wA-W]*$/,/^[0-9a-xA-X]*$/,/^[0-9a-yA-Y]*$/,/^[0-9a-zA-Z]*$/],n.parse=function(e,r){e=e.toString(),void 0!==r&&10!==+r||(e=e.replace(/\s*[*xX]\s*10\s*(\^|\*\*)\s*/,"e").replace(/^([+\-])?(\d+)\.?(\d*)[eE]([+\-]?\d+)$/,(function(e,t,n,r,o){var i=(o=+o)<0,a=n.length+o;e=(i?n:r).length,o=(o=Math.abs(o))>=e?o-e+i:0;var s=new Array(o+1).join("0"),l=n+r;return(t||"")+(i?l=s+l:l+=s).substr(0,a+=i?s.length:0)+(a<l.length?"."+l.substr(a):"")})));var i=new RegExp("^([+\\-]?)("+(void 0===r?"0[xcb]":16==r?"0x":8==r?"0c":2==r?"0b":"")+")?([0-9a-z]*)(?:\\.\\d*)?$","i").exec(e);if(i){var a=i[1]||"+",s=i[2]||"",l=i[3]||"";if(void 0===r)r="0x"===s||"0X"===s?16:"0c"===s||"0C"===s?8:"0b"===s||"0B"===s?2:10;else if(r<2||r>36)throw new Error("Illegal radix "+r+".");if(r=+r,!n.radixRegex[r].test(l))throw new Error("Bad digit for radix "+r);if(0===(l=l.replace(/^0+/,"").split("")).length)return o;if(a="-"===a?-1:1,10==r){for(var c=[];l.length>=7;)c.push(parseInt(l.splice(l.length-n.base_log10,n.base_log10).join(""),10));return c.push(parseInt(l.join(""),10)),new n(c,a,t)}c=o,r=n.small[r];for(var u=n.small,d=0;d<l.length;d++)c=c.multiply(r).add(u[parseInt(l[d],36)]);return new n(c._d,a,t)}throw new Error("Invalid BigInteger format: "+e)},n.prototype.add=function(e){if(0===this._s)return n(e);if(0===(e=n(e))._s)return this;if(this._s!==e._s)return e=e.negate(),this.subtract(e);for(var o,i=this._d,a=e._d,s=i.length,l=a.length,c=new Array(Math.max(s,l)+1),u=Math.min(s,l),d=0,p=0;p<u;p++)o=i[p]+a[p]+d,c[p]=o%r,d=o/r|0;for(l>s&&(i=a,s=l),p=u;d&&p<s;p++)o=i[p]+d,c[p]=o%r,d=o/r|0;for(d&&(c[p]=d);p<s;p++)c[p]=i[p];return new n(c,this._s,t)},n.prototype.negate=function(){return new n(this._d,0|-this._s,t)},n.prototype.abs=function(){return this._s<0?this.negate():this},n.prototype.subtract=function(e){if(0===this._s)return n(e).negate();if(0===(e=n(e))._s)return this;if(this._s!==e._s)return e=e.negate(),this.add(e);var i=this;this._s<0&&(i=new n(e._d,1,t),e=new n(this._d,1,t));var a=i.compareAbs(e);if(0===a)return o;if(a<0){var s=e;e=i,i=s}var l,c,u=i._d,d=e._d,p=u.length,f=d.length,h=new Array(p),m=0;for(l=0;l<f;l++)(c=u[l]-m-d[l])<0?(c+=r,m=1):m=0,h[l]=c;for(l=f;l<p;l++){if(!((c=u[l]-m)<0)){h[l++]=c;break}c+=r,h[l]=c}for(;l<p;l++)h[l]=u[l];return new n(h,a,t)},function(){function e(e,o){for(var i=e._d,a=i.slice(),s=0;;){var l=(i[s]||0)+1;if(a[s]=l%r,l<=9999999)break;++s}return new n(a,o,t)}function o(e,o){for(var i=e._d,a=i.slice(),s=0;;){var l=(i[s]||0)-1;if(!(l<0)){a[s]=l;break}a[s]=l+r,++s}return new n(a,o,t)}n.prototype.next=function(){switch(this._s){case 0:return i;case-1:return o(this,-1);default:return e(this,1)}},n.prototype.prev=function(){switch(this._s){case 0:return a;case-1:return e(this,-1);default:return o(this,1)}}}(),n.prototype.compareAbs=function(e){if(this===e)return 0;if(!(e instanceof n)){if(!isFinite(e))return isNaN(e)?e:-1;e=n(e)}if(0===this._s)return 0!==e._s?-1:0;if(0===e._s)return 1;var t=this._d.length,r=e._d.length;if(t<r)return-1;if(t>r)return 1;for(var o=this._d,i=e._d,a=t-1;a>=0;a--)if(o[a]!==i[a])return o[a]<i[a]?-1:1;return 0},n.prototype.compare=function(e){return this===e?0:(e=n(e),0===this._s?-e._s:this._s===e._s?this.compareAbs(e)*this._s:this._s)},n.prototype.isUnit=function(){return this===i||this===a||1===this._d.length&&1===this._d[0]},n.prototype.multiply=function(e){if(0===this._s)return o;if(0===(e=n(e))._s)return o;if(this.isUnit())return this._s<0?e.negate():e;if(e.isUnit())return e._s<0?this.negate():this;if(this===e)return this.square();var i,a=this._d.length>=e._d.length,s=(a?this:e)._d,l=(a?e:this)._d,c=s.length,u=l.length,d=c+u,p=new Array(d);for(i=0;i<d;i++)p[i]=0;for(i=0;i<u;i++){for(var f,h=0,m=l[i],b=c+i,g=i;g<b;g++)h=(f=p[g]+m*s[g-i]+h)/r|0,p[g]=f%r|0;h&&(h=(f=p[g]+h)/r|0,p[g]=f%r)}return new n(p,this._s*e._s,t)},n.prototype.multiplySingleDigit=function(e){if(0===e||0===this._s)return o;if(1===e)return this;var i;if(1===this._d.length)return new n((i=this._d[0]*e)>=r?[i%r|0,i/r|0]:[i],1,t);if(2===e)return this.add(this);if(this.isUnit())return new n([e],1,t);for(var a=this._d,s=a.length,l=s+1,c=new Array(l),u=0;u<l;u++)c[u]=0;for(var d=0,p=0;p<s;p++)d=(i=e*a[p]+d)/r|0,c[p]=i%r|0;return d&&(c[p]=d),new n(c,1,t)},n.prototype.square=function(){if(0===this._s)return o;if(this.isUnit())return i;var e,a,s,l,c=this._d,u=c.length,d=new Array(u+u+1);for(l=0;l<u;l++)s=2*l,a=(e=c[l]*c[l])/r|0,d[s]=e%r,d[s+1]=a;for(l=0;l<u;l++){a=0,s=2*l+1;for(var p=l+1;p<u;p++,s++)a=(e=c[p]*c[l]*2+d[s]+a)/r|0,d[s]=e%r;var f=a+d[s=u+l];a=f/r|0,d[s]=f%r,d[s+1]+=a}return new n(d,1,t)},n.prototype.quotient=function(e){return this.divRem(e)[0]},n.prototype.divide=n.prototype.quotient,n.prototype.remainder=function(e){return this.divRem(e)[1]},n.prototype.divRem=function(e){if(0===(e=n(e))._s)throw new Error("Divide by zero");if(0===this._s)return[o,o];if(1===e._d.length)return this.divRemSmall(e._s*e._d[0]);switch(this.compareAbs(e)){case 0:return[this._s===e._s?i:a,o];case-1:return[o,this]}var s=this._s*e._s,l=e.abs(),c=this._d,u=c.length;e._d.length;for(var d,p=[],f=new n([],0,t);u;)if(f._d.unshift(c[--u]),(f=new n(f._d,1,t)).compareAbs(e)<0)p.push(0);else{if(0===f._s)d=0;else{var h=f._d.length,m=l._d.length,b=f._d[h-1]*r+f._d[h-2],g=l._d[m-1]*r+l._d[m-2];f._d.length>l._d.length&&(b=(b+1)*r),d=Math.ceil(b/g)}do{var _=l.multiplySingleDigit(d);if(_.compareAbs(f)<=0)break;d--}while(d);if(p.push(d),d){var v=f.subtract(_);f._d=v._d.slice()}}return[new n(p.reverse(),s,t),new n(f._d,this._s,t)]},n.prototype.divRemSmall=function(e){var i;if(0===(e=+e))throw new Error("Divide by zero");var a=e<0?-1:1,s=this._s*a;if((e=Math.abs(e))<1||e>=r)throw new Error("Argument out of range");if(0===this._s)return[o,o];if(1===e||-1===e)return[1===s?this.abs():new n(this._d,s,t),o];if(1===this._d.length){var l=new n([this._d[0]/e|0],1,t);return i=new n([this._d[0]%e|0],1,t),s<0&&(l=l.negate()),this._s<0&&(i=i.negate()),[l,i]}for(var c,u=this._d.slice(),d=new Array(u.length),p=0,f=0,h=0;u.length;)(p=p*r+u[u.length-1])<e?(d[h++]=0,u.pop(),f=r*f+p):(f=p-e*(c=0===p?0:p/e|0),d[h++]=c,c?(u.pop(),p=f):u.pop());return i=new n([f],1,t),this._s<0&&(i=i.negate()),[new n(d.reverse(),s,t),i]},n.prototype.isEven=function(){var e=this._d;return 0===this._s||0===e.length||e[0]%2==0},n.prototype.isOdd=function(){return!this.isEven()},n.prototype.sign=function(){return this._s},n.prototype.isPositive=function(){return this._s>0},n.prototype.isNegative=function(){return this._s<0},n.prototype.isZero=function(){return 0===this._s},n.prototype.exp10=function(e){if(0===(e=+e))return this;if(Math.abs(e)>Number(s))throw new Error("exponent too large in BigInteger.exp10");if(0===this._s)return o;if(e>0){for(var r=new n(this._d.slice(),this._s,t);e>=7;e-=7)r._d.unshift(0);return 0==e?r:(r._s=1,r=r.multiplySingleDigit(Math.pow(10,e)),this._s<0?r.negate():r)}if(-e>=7*this._d.length)return o;for(r=new n(this._d.slice(),this._s,t),e=-e;e>=7;e-=7)r._d.shift();return 0==e?r:r.divRemSmall(Math.pow(10,e))[0]},n.prototype.pow=function(e){if(this.isUnit())return this._s>0||n(e).isOdd()?this:this.negate();if(0===(e=n(e))._s)return i;if(e._s<0){if(0===this._s)throw new Error("Divide by zero");return o}if(0===this._s)return o;if(e.isUnit())return this;if(e.compareAbs(s)>0)throw new Error("exponent too large in BigInteger.pow");for(var t=this,r=i,a=n.small[2];e.isPositive();){if(e.isOdd()&&(r=r.multiply(t),e.isUnit()))return r;t=t.square(),e=e.quotient(a)}return r},n.prototype.modPow=function(e,t){for(var r=i,o=this;e.isPositive();)e.isOdd()&&(r=r.multiply(o).remainder(t)),(e=e.quotient(n.small[2])).isPositive()&&(o=o.square().remainder(t));return r},n.prototype.log=function(){switch(this._s){case 0:return-1/0;case-1:return NaN}var e=this._d.length;if(7*e<30)return Math.log(this.valueOf());var o=Math.ceil(30/7),i=this._d.slice(e-o);return Math.log(new n(i,1,t).valueOf())+(e-o)*Math.log(r)},n.prototype.valueOf=function(){return parseInt(this.toString(),10)},n.prototype.toJSValue=function(){return parseInt(this.toString(),10)},n.prototype.lowVal=function(){return this._d[0]||0};var s=n(2147483647);n.MAX_EXP=s,function(){function e(e){return function(t){return e.call(n(t))}}function t(e){return function(t,r){return e.call(n(t),n(r))}}function r(e){return function(t,r,o){return e.call(n(t),n(r),n(o))}}!function(){var o,i,a="toJSValue,isEven,isOdd,sign,isZero,isNegative,abs,isUnit,square,negate,isPositive,toString,next,prev,log".split(","),s="compare,remainder,divRem,subtract,add,quotient,divide,multiply,pow,compareAbs".split(","),l=["modPow"];for(o=0;o<a.length;o++)n[i=a[o]]=e(n.prototype[i]);for(o=0;o<s.length;o++)n[i=s[o]]=t(n.prototype[i]);for(o=0;o<l.length;o++)n[i=l[o]]=r(n.prototype[i]);n.exp10=function(e,t){return n(e).exp10(t)}}()}(),e.JSBigInt=n}(fc)),fc).JSBigInt,t=function(){for(var t={},n="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",r=[],o=0;o<58;o++)r.push(n.charCodeAt(o));var i=[0,2,3,5,6,7,9,10,11],a=r.length,s=11,l=new e(2).pow(64);return t.encode_block=function(t,n,o){if(t.length<1||t.length>s)throw"Invalid block length: "+t.length;for(var l=function(t){if(t.length<1||t.length>8)throw"Invalid input length";var n=e.ZERO,r=new e(2).pow(8),o=0;switch(9-t.length){case 1:n=n.add(t[o++]);case 2:n=n.multiply(r).add(t[o++]);case 3:n=n.multiply(r).add(t[o++]);case 4:n=n.multiply(r).add(t[o++]);case 5:n=n.multiply(r).add(t[o++]);case 6:n=n.multiply(r).add(t[o++]);case 7:n=n.multiply(r).add(t[o++]);case 8:n=n.multiply(r).add(t[o++]);break;default:throw"Impossible condition"}return n}(t),c=i[t.length]-1;1===l.compare(0);){var u=l.divRem(a),d=u[1];l=u[0],n[o+c]=r[d.toJSValue()],c--}return n},t.encode=function(e){var n=function(e){if(e.length%2!=0)throw"Hex string has invalid length!";for(var t=new Uint8Array(e.length/2),n=0;n<e.length/2;++n)t[n]=parseInt(e.slice(2*n,2*n+2),16);return t}(e);if(0===n.length)return"";var o,a=Math.floor(n.length/8),l=n.length%8,c=a*s+i[l],u=new Uint8Array(c);for(o=0;o<c;++o)u[o]=r[0];for(o=0;o<a;o++)u=t.encode_block(n.subarray(8*o,8*o+8),u,o*s);return l>0&&(u=t.encode_block(n.subarray(8*a,8*a+l),u,a*s)),function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}(u)},t.decode_block=function(t,n,o){if(t.length<1||t.length>s)throw"Invalid block length: "+t.length;var c=i.indexOf(t.length);if(c<=0)throw"Invalid block size";for(var u=new e(0),d=new e(1),p=t.length-1;p>=0;p--){var f=r.indexOf(t[p]);if(f<0)throw"Invalid symbol";var h=d.multiply(f).add(u);if(1===h.compare(l))throw"Overflow";u=h,d=d.multiply(a)}if(c<8&&new e(2).pow(8*c).compare(u)<=0)throw"Overflow 2";return n.set(function(t,n){var r=new Uint8Array(n);if(n<1||n>8)throw"Invalid input length";for(var o=new e(2).pow(8),i=n-1;i>=0;i--)r[i]=t.remainder(o).toJSValue(),t=t.divide(o);return r}(u,c),o),n},t.decode=function(e){if(e=function(e){for(var t=new Uint8Array(e.length),n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}(e),0===e.length)return"";var n=Math.floor(e.length/s),r=e.length%s,o=i.indexOf(r);if(o<0)throw"Invalid encoded length";for(var a=new Uint8Array(8*n+o),l=0;l<n;l++)a=t.decode_block(e.subarray(l*s,l*s+s),a,8*l);return r>0&&(a=t.decode_block(e.subarray(n*s,n*s+r),a,8*n)),function(e){for(var t=[],n=0;n<e.length;++n)t.push(("0"+e[n].toString(16)).slice(-2));return t.join("")}(a)},t}();return sc=t}function mc(){if(uc)return cc;uc=1;var e=za(),t=hc(),n="prod",r=new RegExp("^[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{95}$"),o=new RegExp("^[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{106}$");return cc={isValidAddress:function(i,a,s={}){const{networkType:l=n}=s;var c="standard";if(!r.test(i)){if(!o.test(i))return!1;c="integrated"}var u=t.decode(i);if(!u)return!1;if(!function(e,t,n,r){var o=t.addressTypes;"integrated"==r&&(o=t.iAddressTypes);var i=parseInt(e.substr(0,2),16).toString();switch(n){case"prod":return o.prod.indexOf(i)>=0;case"testnet":return o.testnet.indexOf(i)>=0;case"stagenet":return o.stagenet.indexOf(i)>=0;case"both":return o.prod.indexOf(i)>=0||o.testnet.indexOf(i)>=0||o.stagenet.indexOf(i)>=0;default:return!1}}(u,a,l,c))return!1;var d=u.slice(-8),p=e.keccak256Checksum(function(e){if(e.length%2!=0)return null;for(var t=new Uint8Array(e.length/2),n=0;n<e.length/2;++n)t[n]=parseInt(e.slice(2*n,2*n+2),16);return t}(u.slice(0,-8)));return d===p}},cc}var bc,gc,_c,vc,yc,Ic,xc,Cc,Gc,Bc,wc,Ac,Fc,Nc,Xc,Qc,Rc,Zc,kc,Wc,Lc,Ec,Uc,Dc,Vc,Sc,Oc,Yc,Mc,jc,Tc,Hc,Jc,zc={exports:{}};function Pc(){return bc||(bc=1,function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,i="[object Arguments]",a="[object Array]",s="[object Boolean]",l="[object Date]",c="[object Error]",u="[object Function]",d="[object Map]",p="[object Number]",f="[object Object]",h="[object Promise]",m="[object RegExp]",b="[object Set]",g="[object String]",_="[object Symbol]",v="[object WeakMap]",y="[object ArrayBuffer]",I="[object DataView]",x=/^\[object .+?Constructor\]$/,C=/^(?:0|[1-9]\d*)$/,G={};G["[object Float32Array]"]=G["[object Float64Array]"]=G["[object Int8Array]"]=G["[object Int16Array]"]=G["[object Int32Array]"]=G["[object Uint8Array]"]=G["[object Uint8ClampedArray]"]=G["[object Uint16Array]"]=G["[object Uint32Array]"]=!0,G[i]=G[a]=G[y]=G[s]=G[I]=G[l]=G[c]=G[u]=G[d]=G[p]=G[f]=G[m]=G[b]=G[g]=G[v]=!1;var B="object"==typeof o&&o&&o.Object===Object&&o,w="object"==typeof self&&self&&self.Object===Object&&self,A=B||w||Function("return this")(),F=t&&!t.nodeType&&t,N=F&&e&&!e.nodeType&&e,X=N&&N.exports===F,Q=X&&B.process,R=function(){try{return Q&&Q.binding&&Q.binding("util")}catch(e){}}(),Z=R&&R.isTypedArray;function k(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function W(e,t){return e.has(t)}function L(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function E(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var U,D,V,S=Array.prototype,O=Function.prototype,Y=Object.prototype,M=A["__core-js_shared__"],j=O.toString,T=Y.hasOwnProperty,H=(U=/[^.]+$/.exec(M&&M.keys&&M.keys.IE_PROTO||""))?"Symbol(src)_1."+U:"",J=Y.toString,z=RegExp("^"+j.call(T).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),P=X?A.Buffer:void 0,K=A.Symbol,q=A.Uint8Array,$=Y.propertyIsEnumerable,ee=S.splice,te=K?K.toStringTag:void 0,ne=Object.getOwnPropertySymbols,re=P?P.isBuffer:void 0,oe=(D=Object.keys,V=Object,function(e){return D(V(e))}),ie=Ze(A,"DataView"),ae=Ze(A,"Map"),se=Ze(A,"Promise"),le=Ze(A,"Set"),ce=Ze(A,"WeakMap"),ue=Ze(Object,"create"),de=Ee(ie),pe=Ee(ae),fe=Ee(se),he=Ee(le),me=Ee(ce),be=K?K.prototype:void 0,ge=be?be.valueOf:void 0;function _e(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ve(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ye(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ie(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new ye;++t<n;)this.add(e[t])}function xe(e){var t=this.__data__=new ve(e);this.size=t.size}function Ce(e,t){var n=Ve(e),r=!n&&De(e),o=!n&&!r&&Se(e),i=!n&&!r&&!o&&Te(e),a=n||r||o||i,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=s.length;for(var c in e)!T.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Le(c,l))||s.push(c);return s}function Ge(e,t){for(var n=e.length;n--;)if(Ue(e[n][0],t))return n;return-1}function Be(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":te&&te in Object(e)?function(e){var t=T.call(e,te),n=e[te];try{e[te]=void 0;var r=!0}catch(e){}var o=J.call(e);r&&(t?e[te]=n:delete e[te]);return o}(e):function(e){return J.call(e)}(e)}function we(e){return je(e)&&Be(e)==i}function Ae(e,t,n,r,o){return e===t||(null==e||null==t||!je(e)&&!je(t)?e!=e&&t!=t:function(e,t,n,r,o,u){var h=Ve(e),v=Ve(t),x=h?a:We(e),C=v?a:We(t),G=(x=x==i?f:x)==f,B=(C=C==i?f:C)==f,w=x==C;if(w&&Se(e)){if(!Se(t))return!1;h=!0,G=!1}if(w&&!G)return u||(u=new xe),h||Te(e)?Xe(e,t,n,r,o,u):function(e,t,n,r,o,i,a){switch(n){case I:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case y:return!(e.byteLength!=t.byteLength||!i(new q(e),new q(t)));case s:case l:case p:return Ue(+e,+t);case c:return e.name==t.name&&e.message==t.message;case m:case g:return e==t+"";case d:var u=L;case b:var f=1&r;if(u||(u=E),e.size!=t.size&&!f)return!1;var h=a.get(e);if(h)return h==t;r|=2,a.set(e,t);var v=Xe(u(e),u(t),r,o,i,a);return a.delete(e),v;case _:if(ge)return ge.call(e)==ge.call(t)}return!1}(e,t,x,n,r,o,u);if(!(1&n)){var A=G&&T.call(e,"__wrapped__"),F=B&&T.call(t,"__wrapped__");if(A||F){var N=A?e.value():e,X=F?t.value():t;return u||(u=new xe),o(N,X,n,r,u)}}if(!w)return!1;return u||(u=new xe),function(e,t,n,r,o,i){var a=1&n,s=Qe(e),l=s.length,c=Qe(t),u=c.length;if(l!=u&&!a)return!1;var d=l;for(;d--;){var p=s[d];if(!(a?p in t:T.call(t,p)))return!1}var f=i.get(e);if(f&&i.get(t))return f==t;var h=!0;i.set(e,t),i.set(t,e);var m=a;for(;++d<l;){var b=e[p=s[d]],g=t[p];if(r)var _=a?r(g,b,p,t,e,i):r(b,g,p,e,t,i);if(!(void 0===_?b===g||o(b,g,n,r,i):_)){h=!1;break}m||(m="constructor"==p)}if(h&&!m){var v=e.constructor,y=t.constructor;v==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof y&&y instanceof y||(h=!1)}return i.delete(e),i.delete(t),h}(e,t,n,r,o,u)}(e,t,n,r,Ae,o))}function Fe(e){return!(!Me(e)||function(e){return!!H&&H in e}(e))&&(Oe(e)?z:x).test(Ee(e))}function Ne(e){if(!function(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||Y;return e===n}(e))return oe(e);var t=[];for(var n in Object(e))T.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Xe(e,t,n,r,o,i){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=i.get(e);if(c&&i.get(t))return c==t;var u=-1,d=!0,p=2&n?new Ie:void 0;for(i.set(e,t),i.set(t,e);++u<s;){var f=e[u],h=t[u];if(r)var m=a?r(h,f,u,t,e,i):r(f,h,u,e,t,i);if(void 0!==m){if(m)continue;d=!1;break}if(p){if(!k(t,(function(e,t){if(!W(p,t)&&(f===e||o(f,e,n,r,i)))return p.push(t)}))){d=!1;break}}else if(f!==h&&!o(f,h,n,r,i)){d=!1;break}}return i.delete(e),i.delete(t),d}function Qe(e){return function(e,t,n){var r=t(e);return Ve(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,He,ke)}function Re(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function Ze(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Fe(n)?n:void 0}_e.prototype.clear=function(){this.__data__=ue?ue(null):{},this.size=0},_e.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},_e.prototype.get=function(e){var t=this.__data__;if(ue){var r=t[e];return r===n?void 0:r}return T.call(t,e)?t[e]:void 0},_e.prototype.has=function(e){var t=this.__data__;return ue?void 0!==t[e]:T.call(t,e)},_e.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ue&&void 0===t?n:t,this},ve.prototype.clear=function(){this.__data__=[],this.size=0},ve.prototype.delete=function(e){var t=this.__data__,n=Ge(t,e);return!(n<0)&&(n==t.length-1?t.pop():ee.call(t,n,1),--this.size,!0)},ve.prototype.get=function(e){var t=this.__data__,n=Ge(t,e);return n<0?void 0:t[n][1]},ve.prototype.has=function(e){return Ge(this.__data__,e)>-1},ve.prototype.set=function(e,t){var n=this.__data__,r=Ge(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ye.prototype.clear=function(){this.size=0,this.__data__={hash:new _e,map:new(ae||ve),string:new _e}},ye.prototype.delete=function(e){var t=Re(this,e).delete(e);return this.size-=t?1:0,t},ye.prototype.get=function(e){return Re(this,e).get(e)},ye.prototype.has=function(e){return Re(this,e).has(e)},ye.prototype.set=function(e,t){var n=Re(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Ie.prototype.add=Ie.prototype.push=function(e){return this.__data__.set(e,n),this},Ie.prototype.has=function(e){return this.__data__.has(e)},xe.prototype.clear=function(){this.__data__=new ve,this.size=0},xe.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},xe.prototype.get=function(e){return this.__data__.get(e)},xe.prototype.has=function(e){return this.__data__.has(e)},xe.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ve){var r=n.__data__;if(!ae||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ye(r)}return n.set(e,t),this.size=n.size,this};var ke=ne?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}(ne(e),(function(t){return $.call(e,t)})))}:function(){return[]},We=Be;function Le(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||C.test(e))&&e>-1&&e%1==0&&e<t}function Ee(e){if(null!=e){try{return j.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ue(e,t){return e===t||e!=e&&t!=t}(ie&&We(new ie(new ArrayBuffer(1)))!=I||ae&&We(new ae)!=d||se&&We(se.resolve())!=h||le&&We(new le)!=b||ce&&We(new ce)!=v)&&(We=function(e){var t=Be(e),n=t==f?e.constructor:void 0,r=n?Ee(n):"";if(r)switch(r){case de:return I;case pe:return d;case fe:return h;case he:return b;case me:return v}return t});var De=we(function(){return arguments}())?we:function(e){return je(e)&&T.call(e,"callee")&&!$.call(e,"callee")},Ve=Array.isArray;var Se=re||function(){return!1};function Oe(e){if(!Me(e))return!1;var t=Be(e);return t==u||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ye(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}function Me(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function je(e){return null!=e&&"object"==typeof e}var Te=Z?function(e){return function(t){return e(t)}}(Z):function(e){return je(e)&&Ye(e.length)&&!!G[Be(e)]};function He(e){return function(e){return null!=e&&Ye(e.length)&&!Oe(e)}(e)?Ce(e):Ne(e)}e.exports=function(e,t){return Ae(e,t)}}(zc,zc.exports)),zc.exports}function Kc(){if(yc)return vc;yc=1;var e=za();return vc={isValidAddress:function(t,n,r){var o=function(t){if("string"!=typeof t)return!1;if(34!==t.length)return!1;try{var n=e.base58(t)}catch(e){return!1}var r=n.length-4,o=n.slice(r);n=n.slice(0,r);var i=e.sha256(e.byteArray2hexStr(n)),a=e.hexStr2byteArray(e.sha256(i)).slice(0,4);return o[0]===a[0]&&o[1]===a[1]&&o[2]===a[2]&&o[3]===a[3]&&n}(t);if(!o)return!1;if(21!==o.length)return!1;return 65===o[0]}}}function qc(){if(Gc)return Cc;Gc=1;var e=za(),t=qa(),n=$a();return Cc={isValidAddress:function(r,o,i){return function(n,r,o){var i,a=o?o.networkType:"",s="bitcoincash",l=new RegExp(r.regexp),c=n.split(":");if(1===c.length)i=n;else{if("bitcoincash"!==c[0])return!1;i=c[1]}if(!l.test(i))return!1;if(i.toLowerCase()!=i&&i.toUpperCase()!=i)return!1;var u=e.base32.b32decode(i);"testnet"===a&&(s="bchtest");try{if(t.verifyChecksum(s,u,t.encodings.BECH32))return!1}catch(e){return!1}return!0}(r,o,i)||n.isValidAddress(r,o,i)}},Cc}function $c(){if(Xc)return Nc;Xc=1;const e=Ha(),t=za(),n=new Uint8Array([6,161,159]);return Nc={isValidAddress:function(r){try{let o=function(e){let n=e.slice(0,-4),r=e.slice(-4),o=t.hexStr2byteArray(t.sha256x2(t.byteArray2hexStr(n)));if(!(r[0]^o[0]|r[1]^o[1]|r[2]^o[2]|r[3]^o[3]))return n}(e.decode(r));return!!o&&(o.slice(n.length),!0)}catch(e){return!1}}},Nc}function eu(){if(Rc)return Qc;Rc=1;const e=Ha();return Qc={isValidAddress:function(t,n,r={}){try{if(!t||0==t.length)return!1;if(n.minLength&&t.length<n.minLength)return!1;if(n.maxLength&&t.length>n.maxLength)return!1;try{const n=e.decode(t);if(!n||!n.length)return!1}catch(e){return!1}return!0}catch(e){return!1}}}}function tu(){if(kc)return Zc;kc=1;var e=$a(),t=Ka(),n=Kc(),r=eu();const o=(e,t,n)=>r.isValidAddress(e,{...t,maxLength:44,minLength:43},n);return Zc={isValidAddress:function(r,i,a){if(a){switch(a.chainType?a.chainType.toLowerCase():""){case"erc20":case"ethereum":return t.isValidAddress(r,i,a.networkType);case"omni":return e.isValidAddress(r,i,a.networkType);case"tron":return n.isValidAddress(r,i,a.networkType);case"solana":return o(r,i,a.networkType)}}return function(r,i,a){return e.isValidAddress(r,i,a)||t.isValidAddress(r,i,a)||n.isValidAddress(r,i,a)||o(r,i,a)}(r,i,a)}}}function nu(){if(Lc)return Wc;Lc=1;var e=Ka(),t=eu();const n=(e,n,r)=>t.isValidAddress(e,{...n,maxLength:44,minLength:43},r);return Wc={isValidAddress:function(t,r,o){if(o)switch(o.chainType){case"arbitrum":case"avalanche":case"erc20":case"ethereum":return e.isValidAddress(t,r,o.networkType);case"solana":return n(t,r,o.networkType)}return function(t,r,o){return e.isValidAddress(t,r,o)||n(t,r,o)}(t,r,o)}}}function ru(){if(Tc)return jc;Tc=1;var e=function(){if(La)return Wa;La=1;var e=za(),t="rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz",n=Pa()(t),r=new RegExp("^r["+t+"]{27,35}$");return Wa={isValidAddress:function(e){return!!r.test(e)&&this.verifyChecksum(e)},verifyChecksum:function(t){var r=n.decode(t);return e.sha256Checksum(e.toHex(r.slice(0,-4)))===e.toHex(r.slice(-4))}}}(),t=Ka(),n=$a(),r=ic(),o=mc(),i=function(){if(pc)return dc;pc=1;var e=za(),t="13456789abcdefghijkmnopqrstuwxyz",n=Pa()(t),r=new RegExp("^(xrb|nano)_(["+t+"]{60})$");return dc={isValidAddress:function(e){return!!r.test(e)&&this.verifyChecksum(e)},verifyChecksum:function(t){var o=n.decode(r.exec(t)[2]).slice(-37);return e.blake2b(e.toHex(o.slice(0,-5)),5)===e.toHex(o.slice(-5).reverse())}}}(),a=function(){if(_c)return gc;_c=1;var e=za(),t=Pc();return gc={isValidAddress:function(e){return 76===e.length&&this.verifyChecksum(e)},verifyChecksum:function(n){var r=n.slice(0,64),o=n.slice(64,76),i=e.blake2b(r,32).slice(0,12);return!!t(i,o)}}}(),s=Kc(),l=function(){if(xc)return Ic;xc=1;var e=za();return Ic={isValidAddress:function(t){var n=t.toString().toUpperCase().replace(/-/g,"");if(!n||40!==n.length)return!1;var r=e.toHex(e.base32.b32decode(n));return e.keccak256Checksum(ma.Buffer.from(r.slice(0,42),"hex"))===r.slice(42)}}}(),c=qc(),u=function(){if(wc)return Bc;wc=1;var e=Pa(),t=rc(),n=za(),r="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",o=e(r),i=new RegExp("^["+r+"]{56}$");return Bc={isValidAddress:function(e){return!!i.test(e)&&this.verifyChecksum(e)},verifyChecksum:function(e){var r,i=o.decode(e);return 48===i[0]&&n.numberToHex((255&(r=t.crc16xmodem(i.slice(0,-2))))<<8|r>>8&255,4)===n.toHex(i.slice(-2))}}}(),d=Fc?Ac:(Fc=1,Ac={isValidAddress:function(e,t,n){return function(e){return-1!==e.search(/^[a-z0-9.]+$/g)&&12===e.length}(e)}}),p=$c(),f=tu(),h=nu(),m=function(){if(Uc)return Ec;Uc=1;const e=za();return Ec={isValidAddress:function(e,t,n={}){const{networkType:r="prod"}=n;return this.verifyChecksum(e)},verifyChecksum:function(t){if(58!==t.length)return!1;{const n=e.base32.b32decode(t),r=n.slice(0,n.length-4),o=e.byteArray2hexStr(n.slice(-4)).toString("HEX");return e.sha512_256(e.byteArray2hexStr(r)).substr(-8)===o}}}}(),b=function(){if(Vc)return Dc;Vc=1;const e=za(),t=[{addressLength:3,accountIndexLength:1,checkSumLength:1},{addressLength:4,accountIndexLength:2,checkSumLength:1},{addressLength:5,accountIndexLength:2,checkSumLength:2},{addressLength:6,accountIndexLength:4,checkSumLength:1},{addressLength:7,accountIndexLength:4,checkSumLength:2},{addressLength:8,accountIndexLength:4,checkSumLength:3},{addressLength:9,accountIndexLength:4,checkSumLength:4},{addressLength:10,accountIndexLength:8,checkSumLength:1},{addressLength:11,accountIndexLength:8,checkSumLength:2},{addressLength:12,accountIndexLength:8,checkSumLength:3},{addressLength:13,accountIndexLength:8,checkSumLength:4},{addressLength:14,accountIndexLength:8,checkSumLength:5},{addressLength:15,accountIndexLength:8,checkSumLength:6},{addressLength:16,accountIndexLength:8,checkSumLength:7},{addressLength:17,accountIndexLength:8,checkSumLength:8},{addressLength:34,accountIndexLength:32,checkSumLength:2}];return Dc={isValidAddress:function(e,t,n={}){const{networkType:r="prod"}=n;return this.verifyChecksum(e)},verifyChecksum:function(n){try{const r="53533538505245",o=e.base58(n),i=e.byteArray2hexStr(o.slice(0,1)),a=o.slice(1),s=t.find((e=>e.addressLength===a.length));if(!s)throw new Error("Invalid address length");const l=e.byteArray2hexStr(a.slice(0,s.accountIndexLength)),c=e.byteArray2hexStr(a.slice(-s.checkSumLength));return e.blake2b(r+i+l,64).substr(0,2*s.checkSumLength).toUpperCase()==c}catch(e){return!1}}}}(),g=oc(),_=eu(),v=[{name:"Bitcoin",symbol:"btc",addressTypes:{prod:["00","05"],testnet:["6f","c4","3c","26"]},bech32Hrp:{prod:["bc"],testnet:["tb"]},validator:n},{name:"BitcoinCash",symbol:"bch",regexp:"^[qQpP]{1}[0-9a-zA-Z]{41}$",addressTypes:{prod:["00","05"],testnet:["6f","c4"]},validator:c},{name:"Bitcoin SV",symbol:"bsv",regexp:"^[qQ]{1}[0-9a-zA-Z]{41}$",addressTypes:{prod:["00","05"],testnet:["6f","c4"]},validator:c},{name:"LiteCoin",symbol:"ltc",addressTypes:{prod:["30","05","32"],testnet:["6f","c4","3a"]},bech32Hrp:{prod:["ltc"],testnet:["tltc"]},validator:n},{name:"PeerCoin",symbol:"ppc",addressTypes:{prod:["37","75"],testnet:["6f","c4"]},validator:n},{name:"DogeCoin",symbol:"doge",addressTypes:{prod:["1e","16"],testnet:["71","c4"]},validator:n},{name:"BeaverCoin",symbol:"bvc",addressTypes:{prod:["19","05"],testnet:["6f","c4"]},validator:n},{name:"FreiCoin",symbol:"frc",addressTypes:{prod:["00","05"],testnet:["6f","c4"]},validator:n},{name:"ProtoShares",symbol:"pts",addressTypes:{prod:["38","05"],testnet:["6f","c4"]},validator:n},{name:"MegaCoin",symbol:"mec",addressTypes:{prod:["32","05"],testnet:["6f","c4"]},validator:n},{name:"PrimeCoin",symbol:"xpm",addressTypes:{prod:["17","53"],testnet:["6f","c4"]},validator:n},{name:"AuroraCoin",symbol:"aur",addressTypes:{prod:["17","05"],testnet:["6f","c4"]},validator:n},{name:"NameCoin",symbol:"nmc",addressTypes:{prod:["34"],testnet:[]},validator:n},{name:"BioCoin",symbol:"bio",addressTypes:{prod:["19","14"],testnet:["6f","c4"]},validator:n},{name:"GarliCoin",symbol:"grlc",addressTypes:{prod:["26","05"],testnet:["6f","c4"]},validator:n},{name:"VertCoin",symbol:"vtc",addressTypes:{prod:["0x","47","71","05"],testnet:["6f","c4"]},bech32Hrp:{prod:["vtc"],testnet:["tvtc"]},validator:n},{name:"BitcoinGold",symbol:"btg",addressTypes:{prod:["26","17"],testnet:["6f","c4"]},validator:n},{name:"Komodo",symbol:"kmd",addressTypes:{prod:["3c","55"],testnet:["0","5"]},validator:n},{name:"BitcoinZ",symbol:"btcz",expectedLength:26,addressTypes:{prod:["1cb8","1cbd"],testnet:["1d25","1cba"]},validator:n},{name:"BitcoinPrivate",symbol:"btcp",expectedLength:26,addressTypes:{prod:["1325","13af"],testnet:["1957","19e0"]},validator:n},{name:"Hush",symbol:"hush",expectedLength:26,addressTypes:{prod:["1cb8","1cbd"],testnet:["1d25","1cba"]},validator:n},{name:"SnowGem",symbol:"sng",expectedLength:26,addressTypes:{prod:["1c28","1c2d"],testnet:["1d25","1cba"]},validator:n},{name:"ZCash",symbol:"zec",expectedLength:26,addressTypes:{prod:["1cb8","1cbd"],testnet:["1d25","1cba"]},validator:n},{name:"ZClassic",symbol:"zcl",expectedLength:26,addressTypes:{prod:["1cb8","1cbd"],testnet:["1d25","1cba"]},validator:n},{name:"ZenCash",symbol:"zen",expectedLength:26,addressTypes:{prod:["2089","2096"],testnet:["2092","2098"]},validator:n},{name:"VoteCoin",symbol:"vot",expectedLength:26,addressTypes:{prod:["1cb8","1cbd"],testnet:["1d25","1cba"]},validator:n},{name:"Decred",symbol:"dcr",addressTypes:{prod:["073f","071a"],testnet:["0f21","0efc"]},hashFunction:"blake256",expectedLength:26,validator:n},{name:"GameCredits",symbol:"game",addressTypes:{prod:["26","05"],testnet:[]},validator:t},{name:"PIVX",symbol:"pivx",addressTypes:{prod:["1e","0d"],testnet:[]},validator:n},{name:"SolarCoin",symbol:"slr",addressTypes:{prod:["12","05"],testnet:[]},validator:n},{name:"DigiByte",symbol:"dgb",addressTypes:{prod:["1e","3f"],testnet:[]},bech32Hrp:{prod:["dgb","S"],testnet:[]},validator:n},{name:"Tether",symbol:"usdt",addressTypes:{prod:["00","05","65"],testnet:["6f","c4","65"]},validator:f},{name:"Ripple",symbol:"xrp",validator:e},{name:"Dash",symbol:"dash",addressTypes:{prod:["4c","10"],testnet:["8c","13"]},validator:n},{name:"Neo",symbol:"neo",addressTypes:{prod:["17"],testnet:[]},validator:n},{name:"NeoGas",symbol:"gas",addressTypes:{prod:["17"],testnet:[]},validator:n},{name:"Qtum",symbol:"qtum",addressTypes:{prod:["3a","32"],testnet:["78","6e"]},validator:n},{name:"Waves",symbol:"waves",addressTypes:{prod:["0157"],testnet:["0154"]},expectedLength:26,hashFunction:"blake256keccak256",regex:/^[a-zA-Z0-9]{35}$/,validator:n},{name:"Aptos",symbol:"apt",validator:Oc?Sc:(Oc=1,Sc={isValidAddress:function(e){return!!/^0x[0-9a-fA-F]{64}$/.test(e)}})},{name:"Ethereum",symbol:"eth",validator:t},{name:"EthereumPow",symbol:"ethw",validator:t},{name:"EtherZero",symbol:"etz",validator:t},{name:"EthereumClassic",symbol:"etc",validator:t},{name:"Celo",symbol:"celo",validator:t},{name:"Callisto",symbol:"clo",validator:t},{name:"Bankex",symbol:"bkx",validator:t},{name:"Cardano",symbol:"ada",bech32Hrp:{prod:["addr"],testnet:["addr_test"]},validator:r},{name:"Monero",symbol:"xmr",addressTypes:{prod:["18","42"],testnet:["53","63"],stagenet:["24"]},iAddressTypes:{prod:["19"],testnet:["54"],stagenet:["25"]},validator:o},{name:"Aragon",symbol:"ant",validator:t},{name:"Basic Attention Token",symbol:"bat",validator:t},{name:"Bancor",symbol:"bnt",validator:t},{name:"Civic",symbol:"cvc",validator:t},{name:"District0x",symbol:"dnt",validator:t},{name:"Gnosis",symbol:"gno",validator:t},{name:"Golem (GNT)",symbol:"gnt",validator:t},{name:"Golem",symbol:"glm",validator:t},{name:"Matchpool",symbol:"gup",validator:t},{name:"Melon",symbol:"mln",validator:t},{name:"Numeraire",symbol:"nmr",validator:t},{name:"OmiseGO",symbol:"omg",validator:t},{name:"TenX",symbol:"pay",validator:t},{name:"Ripio Credit Network",symbol:"rcn",validator:t},{name:"Augur",symbol:"rep",validator:t},{name:"iExec RLC",symbol:"rlc",validator:t},{name:"Salt",symbol:"salt",validator:t},{name:"Status",symbol:"snt",validator:t},{name:"Storj",symbol:"storj",validator:t},{name:"Swarm City",symbol:"swt",validator:t},{name:"TrueUSD",symbol:"tusd",validator:t},{name:"Wings",symbol:"wings",validator:t},{name:"0x",symbol:"zrx",validator:t},{name:"Expanse",symbol:"exp",validator:t},{name:"Viberate",symbol:"vib",validator:t},{name:"Odyssey",symbol:"ocn",validator:t},{name:"Polymath",symbol:"poly",validator:t},{name:"Storm",symbol:"storm",validator:t},{name:"Nano",symbol:"nano",validator:i},{name:"RaiBlocks",symbol:"xrb",validator:i},{name:"Siacoin",symbol:"sc",validator:a},{name:"HyperSpace",symbol:"xsc",validator:a},{name:"loki",symbol:"loki",addressTypes:{prod:["114","115","116"],testnet:[]},iAddressTypes:{prod:["115"],testnet:[]},validator:o},{name:"LBRY Credits",symbol:"lbc",addressTypes:{prod:["55"],testnet:[]},validator:n},{name:"Tron",symbol:"trx",validator:s},{name:"Nem",symbol:"xem",validator:l},{name:"Stellar",symbol:"xlm",validator:u},{name:"BTU Protocol",symbol:"btu",validator:t},{name:"Crypto.com Coin",symbol:"cro",bech32Hrp:{prod:["cro"],testnet:["tcro"]},validator:g},{name:"Multi-collateral DAI",symbol:"dai",validator:t},{name:"Enjin Coin",symbol:"enj",validator:t},{name:"HedgeTrade",symbol:"hedg",validator:t},{name:"Cred",symbol:"lba",validator:t},{name:"Chainlink",symbol:"link",validator:t},{name:"Loom Network",symbol:"loom",validator:t},{name:"Maker",symbol:"mkr",validator:t},{name:"Metal",symbol:"mtl",validator:t},{name:"Ocean Protocol",symbol:"ocean",validator:t},{name:"Quant",symbol:"qnt",validator:t},{name:"Synthetix Network",symbol:"snx",validator:t},{name:"SOLVE",symbol:"solve",validator:t},{name:"Spendcoin",symbol:"spnd",validator:t},{name:"TEMCO",symbol:"temco",validator:t},{name:"EOS",symbol:"eos",validator:d},{name:"Tezos",symbol:"xtz",validator:p},{name:"VeChain",symbol:"vet",validator:t},{name:"StormX",symbol:"stmx",validator:t},{name:"AugurV2",symbol:"repv2",validator:t},{name:"FirmaChain",symbol:"fct",validator:t},{name:"BlockTrade",symbol:"btt",validator:t},{name:"Quantum Resistant Ledger",symbol:"qrl",validator:t},{name:"Serve",symbol:"serv",validator:t},{name:"Tap",symbol:"xtp",validator:t},{name:"Compound",symbol:"comp",validator:t},{name:"Paxos",symbol:"pax",validator:t},{name:"USD Coin",symbol:"usdc",validator:h},{name:"CUSD",symbol:"cusd",validator:t},{name:"Algorand",symbol:"algo",validator:m},{name:"Polkadot",symbol:"dot",validator:b},{name:"Uniswap Coin",symbol:"uni",validator:t},{name:"Aave Coin",symbol:"aave",validator:t},{name:"Matic",symbol:"matic",validator:t},{name:"Decentraland",symbol:"mana",validator:t},{name:"Solana",symbol:"sol",validator:_,maxLength:44,minLength:43},{name:"Bonk",symbol:"bonk",validator:_,maxLength:44,minLength:43},{name:"Binance",symbol:"bnb",validator:t},{name:"BinanceSmartChain",symbol:"bnb",validator:t},{name:"Avalanche",symbol:"avax",validator:t},{name:"Arbitrum",symbol:"arb",validator:t},{name:"Flare",symbol:"flr",validator:t},{name:"Yearn.finance",symbol:"yfi",validator:t},{name:"Optimism",symbol:"op",validator:t},{name:"Lido DAO Token",symbol:"ldo",validator:t},{name:"Curve DAO",symbol:"crv",validator:t},{name:"Arbitrum",symbol:"arb",validator:t},{name:"Hashflow",symbol:"hft",validator:t},{name:"Apecoin",symbol:"ape",validator:t},{name:"Band Protocol",symbol:"band",validator:t},{name:"The Graph",symbol:"grt",validator:t},{name:"Magic",symbol:"magic",validator:t},{name:"Biconomy",symbol:"bico",validator:t},{name:"API3",symbol:"api3",validator:t},{name:"Axie Infinity",symbol:"axs",validator:t},{name:"Blur",symbol:"blur",validator:t},{name:"Chiliz",symbol:"chz",validator:t},{name:"Ethereum Name Service",symbol:"ens",validator:t},{name:"Fetch.ai",symbol:"fet",validator:t},{name:"Illuvium",symbol:"ilv",validator:t},{name:"Injective",symbol:"inj",validator:t},{name:"Immutable",symbol:"imx",validator:t},{name:"Mask Network",symbol:"mask",validator:t},{name:"Origin Protocol",symbol:"ogn",validator:t},{name:"Onyx Protocol",symbol:"xcn",validator:t},{name:"Unifi Protocol DAO",symbol:"unfi",validator:t},{name:"Tellor",symbol:"trb",validator:t},{name:"SuperVerse",symbol:"super",validator:t},{name:"Sonic",symbol:"s",validator:t},{name:"Skale",symbol:"skl",validator:t},{name:"The Sandbox",symbol:"sand",validator:t},{name:"Vulcan Forged PYR",symbol:"pyr",validator:t},{name:"Marlin",symbol:"pond",validator:t},{name:"PayPal USD",symbol:"pyusd",validator:t},{name:"Hedera",symbol:"hbar",validator:Mc?Yc:(Mc=1,za(),Yc={isValidAddress:function(e){if(!/^\d+\.\d+\.\d+$/.test(e))return!1;const[t,n,r]=e.split(".").map(Number);return Number.isInteger(t)&&t>=0&&Number.isInteger(n)&&n>=0&&Number.isInteger(r)&&r>=0}})},{name:"Berachain",symbol:"bera",validator:t},{name:"Story",symbol:"ip",validator:t}];const y={};return v.forEach((e=>{const{name:t,validator:n,addressTypes:r,iAddressTypes:o,bech32Hrp:i,maxLength:a,minLength:s,regexp:l,expectedLength:c,hashFunction:u}=e;y[t.toLowerCase()]={validator:n,addressTypes:r,bech32Hrp:i,maxLength:a,minLength:s,iAddressTypes:o,regexp:l,expectedLength:c,hashFunction:u}})),jc={getByNameOrSymbol:function(e){var t=e.toLowerCase();return v.find((function(e){return e.name.toLowerCase()===t||e.symbol.toLowerCase()===t}))},getAll:function(){return v},chainTypeToValidator:y}}var ou=function(){if(Jc)return Hc;Jc=1,o.Buffer||(o.Buffer=fa().Buffer);var e=ru();return Hc={validate:function(t,n,r){var o=e.getByNameOrSymbol(n||"bitcoin");if(r&&r.chainType){var i=r.chainType.toLowerCase(),a=e.chainTypeToValidator[i];if(a)return a.validator.isValidAddress(t,{...r,...a},r)}if(o&&o.validator)return r&&"string"==typeof r?o.validator.isValidAddress(t,o,{networkType:r}):o.validator.isValidAddress(t,o,r);throw new Error("Missing validator for currency: "+n)},getCurrencies:function(){return e.getAll()},findCurrency:function(t){return e.getByNameOrSymbol(t)||null},getChainTypeToValidators:function(){return e.chainTypeToValidator}}}(),iu=i(ou),au=function(t){var n=t.setSandboxStep,r=e.useState({name:"",number:"",expiry:"",cvv:""}),o=r[0],i=r[1],a=e.useState({name:"",number:"",expiry:"",cvv:""}),s=a[0],l=a[1],c=function(e){var t=e.target,n=t.name,r=t.value,o="",a=r;"name"===n&&(a.trim()?/^[A-Za-z\s]+$/.test(a)||(o="Enter only alphabets"):o="Cardholder name is required.");if("number"===n&&(a=function(e){return e.replace(/\D/g,"").replace(/(.{4})/g,"$1 ").trim()}(r),/^\d{4} \d{4} \d{4} \d{4}$/.test(a)||(o="Enter a valid 16-digit card number.")),"expiry"===n)if(a=function(e){var t=e.replace(/\D/g,"");return t.length>=3?t.slice(0,2)+"/"+t.slice(2,4):t}(r),/^(0[1-9]|1[0-2])\/\d{2}$/.test(a)){var s=a.split("/").map(Number),c=s[0],u=s[1],d=new Date,p=d.getMonth()+1,f=d.getFullYear()%100;(u<f||u===f&&c<p)&&(o="Expiry date must be in the future.")}else o="Use MM/YY format.";"cvv"===n&&(a=r.replace(/\D/g,""),/^\d{3,4}$/.test(a)||(o="CVV must be 3 or 4 digits.")),l((function(e){var t;return m(m({},e),((t={})[n]=o,t))})),i((function(e){var t;return m(m({},e),((t={})[n]=a,t))}))};return f.jsx("div",{className:h.card_form_container,children:f.jsxs("form",{onSubmit:function(e){e.preventDefault(),function(){var e={name:"",number:"",expiry:"",cvv:""};if(o.name.trim()||(e.name="Cardholder name is required."),/^\d{4} \d{4} \d{4} \d{4}$/.test(o.number)||(e.number="Enter a valid 16-digit card number."),/^(0[1-9]|1[0-2])\/\d{2}$/.test(o.expiry)){var t=o.expiry.split("/").map(Number),n=t[0],r=t[1],i=new Date,a=i.getMonth()+1,s=i.getFullYear()%100;(r<s||r===s&&n<a)&&(e.expiry="Expiry date must be in the future.")}else e.expiry="Use MM/YY format.";return/^\d{3,4}$/.test(o.cvv)||(e.cvv="CVV must be 3 or 4 digits."),l(e),Object.values(e).every((function(e){return!e}))}()&&n(2)},className:h.card_form,noValidate:!0,children:[f.jsx("h2",{children:"Enter Card Details"}),f.jsx("label",{htmlFor:"name",children:"Cardholder Name"}),f.jsx("input",{type:"text",id:"name",name:"name",placeholder:"John Doe",value:o.name,onChange:c,required:!0}),s.name&&f.jsx("span",{className:h.input_error,children:s.name}),f.jsx("label",{htmlFor:"number",children:"Card Number"}),f.jsx("input",{type:"text",id:"number",name:"number",placeholder:"1234 5678 9012 3456",maxLength:19,value:o.number,onChange:c,required:!0}),s.number&&f.jsx("span",{className:h.input_error,children:s.number}),f.jsxs("div",{className:h.card_row,children:[f.jsxs("div",{children:[f.jsx("label",{htmlFor:"expiry",children:"Expiry (MM/YY)"}),f.jsx("input",{type:"text",id:"expiry",name:"expiry",placeholder:"08/27",maxLength:5,value:o.expiry,onChange:c,required:!0}),s.expiry&&f.jsx("span",{className:h.input_error,children:s.expiry})]}),f.jsxs("div",{children:[f.jsx("label",{htmlFor:"cvv",children:"CVV"}),f.jsx("input",{type:"password",id:"cvv",name:"cvv",placeholder:"123",maxLength:4,value:o.cvv,onChange:c,required:!0}),s.cvv&&f.jsx("span",{className:h.input_error,children:s.cvv})]})]}),f.jsx("div",{className:h.ramp_action,children:f.jsx("button",{type:"submit",className:"".concat(h.action_btn," ").concat(h.primary),children:"Continue"})})]})})},su=function(t){var n,r,o,i,a,s,l,c,u,d,p,b,g,_,v,y,I,x,C,G,B,w,A,F,N,X,Q,R,Z,k=t.setSandboxStep,W=t.data,L=t.apiKey,E=t.clientReferenceID,U=t.setSandboxData,D=zr().addToast,V=e.useState(!1),S=V[0],O=V[1];return f.jsxs("div",{className:h.details_frame,children:[f.jsxs("div",{className:h.f_details_head,children:[f.jsx("div",{}),f.jsx("div",{className:h.f_details_titles,children:"Overview"})]}),f.jsxs("div",{className:h.f_details_info_box,children:[f.jsxs("div",{className:h.f_details_card,children:[f.jsx("span",{children:"You pay"}),f.jsxs("span",{children:[null===(r=null===(n=null==W?void 0:W.apiResponse)||void 0===n?void 0:n.onramp_transaction)||void 0===r?void 0:r.from_value,null===(i=null===(o=null==W?void 0:W.apiResponse)||void 0===o?void 0:o.onramp_transaction)||void 0===i?void 0:i.from]})]}),f.jsxs("div",{className:h.f_details_card,children:[f.jsx("span",{children:"Rate"}),f.jsxs("span",{children:["1 ",null===(s=null===(a=null==W?void 0:W.apiResponse)||void 0===a?void 0:a.onramp_transaction)||void 0===s?void 0:s.from," =",null===(c=null===(l=null==W?void 0:W.apiResponse)||void 0===l?void 0:l.onramp_transaction)||void 0===c?void 0:c.exchange_rate," ",null===(d=null===(u=null==W?void 0:W.apiResponse)||void 0===u?void 0:u.onramp_transaction)||void 0===d?void 0:d.to]})]}),f.jsxs("div",{className:h.f_details_card,children:[f.jsx("span",{children:"Fee"}),f.jsxs("span",{children:[null===(b=null===(p=null==W?void 0:W.apiResponse)||void 0===p?void 0:p.onramp_transaction)||void 0===b?void 0:b.service_fee,null===(_=null===(g=null==W?void 0:W.apiResponse)||void 0===g?void 0:g.onramp_transaction)||void 0===_?void 0:_.from]})]}),f.jsxs("div",{className:h.f_details_card,children:[f.jsx("span",{children:"You Receive"}),f.jsxs("span",{children:[null===(y=null===(v=null==W?void 0:W.apiResponse)||void 0===v?void 0:v.onramp_transaction)||void 0===y?void 0:y.to_value," ",null===(x=null===(I=null==W?void 0:W.apiResponse)||void 0===I?void 0:I.onramp_transaction)||void 0===x?void 0:x.to]})]}),f.jsxs("div",{className:h.f_details_card,children:[f.jsx("span",{children:"Wallet"}),f.jsx("span",{children:(null===(B=null===(G=null===(C=null==W?void 0:W.apiResponse)||void 0===C?void 0:C.onramp_transaction)||void 0===G?void 0:G.wallet_address)||void 0===B?void 0:B.length)>15?"".concat(null===(F=null===(A=null===(w=null==W?void 0:W.apiResponse)||void 0===w?void 0:w.onramp_transaction)||void 0===A?void 0:A.wallet_address)||void 0===F?void 0:F.slice(0,5),"...").concat(null===(Q=null===(X=null===(N=null==W?void 0:W.apiResponse)||void 0===N?void 0:N.onramp_transaction)||void 0===X?void 0:X.wallet_address)||void 0===Q?void 0:Q.slice(-5)):null===(Z=null===(R=null==W?void 0:W.apiResponse)||void 0===R?void 0:R.onramp_transaction)||void 0===Z?void 0:Z.wallet_address})]})]}),f.jsx("div",{className:h.ramp_action,children:f.jsxs("button",{type:"button",onClick:function(){var e,t;O(!0);var n=no("development");Pr({url:"".concat(n,"/api/onramp/transactions/status/").concat(null===(t=null===(e=null==W?void 0:W.apiResponse)||void 0===e?void 0:e.onramp_transaction)||void 0===t?void 0:t.unique_id),method:"POST",headers:{"X-API-KEY":L,"User-Id":E},onSuccess:function(e){(null==e?void 0:e.success)?(U(m(m({},W),{transactionDetails:null==e?void 0:e.data})),D("".concat(null==e?void 0:e.message),"success")):(U(m(m({},W),{transactionDetails:null==e?void 0:e.data})),D("".concat(null==e?void 0:e.message),"error")),O(!1),k(3)},onError:function(e){D("".concat(e),"error"),O(!1)}})},className:"".concat(h.action_btn," ").concat(h.primary),children:["Confirm ",S&&f.jsx(eo,{})]})})]})},lu=function(e){var t,n,r,o,i,a,s,l,c,u,d,p,m,b,g,_,v,y,I,x,C,G,B,w,A,F,N,X,Q,R,Z,k,W,L,E,U,D,V,S,O=e.data;return f.jsxs("div",{className:h.details_frame,children:[f.jsxs("div",{className:h.f_details_head,children:[f.jsx("div",{}),f.jsxs("div",{className:h.f_details_titles,children:["Buy"," ",null===(r=parseFloat((null===(n=null===(t=null==O?void 0:O.transactionDetails)||void 0===t?void 0:t.onramp_transaction)||void 0===n?void 0:n.from_value)||"0"))||void 0===r?void 0:r.toFixed(4)," ",null===(i=null===(o=null==O?void 0:O.transactionDetails)||void 0===o?void 0:o.onramp_transaction)||void 0===i?void 0:i.from," @"," ",null===(l=parseFloat((null===(s=null===(a=null==O?void 0:O.transactionDetails)||void 0===a?void 0:a.onramp_transaction)||void 0===s?void 0:s.to_value)||"0"))||void 0===l?void 0:l.toFixed(4)," ",null===(u=null===(c=null==O?void 0:O.transactionDetails)||void 0===c?void 0:c.onramp_transaction)||void 0===u?void 0:u.to]})]}),f.jsxs("div",{className:h.f_details_info_box,children:[f.jsxs("div",{className:h.f_details_card,children:[f.jsx("span",{children:"Order Status"}),f.jsx("span",{children:null===(p=null===(d=null==O?void 0:O.transactionDetails)||void 0===d?void 0:d.onramp_transaction)||void 0===p?void 0:p.status})]}),f.jsxs("div",{className:h.f_details_card,children:[f.jsx("span",{children:"Order Id"}),f.jsxs("span",{children:[null===(g=null===(b=null===(m=null==O?void 0:O.transactionDetails)||void 0===m?void 0:m.onramp_transaction)||void 0===b?void 0:b.unique_id)||void 0===g?void 0:g.slice(0,10),"...",null===(y=null===(v=null===(_=null==O?void 0:O.transactionDetails)||void 0===_?void 0:_.onramp_transaction)||void 0===v?void 0:v.unique_id)||void 0===y?void 0:y.slice((null===(C=null===(x=null===(I=null==O?void 0:O.transactionDetails)||void 0===I?void 0:I.onramp_transaction)||void 0===x?void 0:x.unique_id)||void 0===C?void 0:C.length)-10,null===(w=null===(B=null===(G=null==O?void 0:O.transactionDetails)||void 0===G?void 0:G.onramp_transaction)||void 0===B?void 0:B.unique_id)||void 0===w?void 0:w.length)]})]}),f.jsxs("div",{className:h.f_details_card,children:[f.jsx("span",{children:"Order Date"}),f.jsxs("span",{children:[" ",new Date((null===(F=null===(A=null==O?void 0:O.transactionDetails)||void 0===A?void 0:A.onramp_transaction)||void 0===F?void 0:F.created_at)||"").toUTCString().replace("GMT","UTC")]})]}),f.jsxs("div",{className:h.f_details_card,children:[f.jsx("span",{children:"Exchange Rate"}),f.jsxs("span",{children:["1 ",null===(X=null===(N=null==O?void 0:O.transactionDetails)||void 0===N?void 0:N.onramp_transaction)||void 0===X?void 0:X.from," ="," ",null===(Z=parseFloat((null===(R=null===(Q=null==O?void 0:O.transactionDetails)||void 0===Q?void 0:Q.onramp_transaction)||void 0===R?void 0:R.exchange_rate)||""))||void 0===Z?void 0:Z.toFixed(4)," ",null===(W=null===(k=null==O?void 0:O.transactionDetails)||void 0===k?void 0:k.onramp_transaction)||void 0===W?void 0:W.to]})]}),f.jsxs("div",{className:h.f_details_card,children:[f.jsx("span",{children:"Service Fee"}),f.jsxs("span",{children:[null===(E=null===(L=null==O?void 0:O.transactionDetails)||void 0===L?void 0:L.onramp_transaction)||void 0===E?void 0:E.service_fee," ",null===(D=null===(U=null==O?void 0:O.transactionDetails)||void 0===U?void 0:U.onramp_transaction)||void 0===D?void 0:D.from]})]}),f.jsxs("div",{className:h.f_details_card,children:[f.jsx("span",{children:"Wallet Address"}),f.jsx("span",{children:null===(S=null===(V=null==O?void 0:O.transactionDetails)||void 0===V?void 0:V.onramp_transaction)||void 0===S?void 0:S.wallet_address})]})]})]})},cu=function(t){var n=t.data,r=t.apiKey,o=t.clientReferenceID,i=t.setSandboxData,a=e.useState(1),s=a[0],l=a[1];return f.jsxs("div",{children:[1===s&&f.jsx(au,{setSandboxStep:l}),2===s&&f.jsx(su,{apiKey:r,clientReferenceID:o,data:n,setSandboxStep:l,setSandboxData:i}),3===s&&f.jsx(lu,{data:n})]})},uu=function(t){var n,r,o=t.apiKey,i=t.redirectUrl,a=t.parameters,s=t.clientReferenceID,l=t.mode,c=zr().addToast,u=e.useState(!1),d=u[0],p=u[1],_=e.useState([]),v=_[0],y=_[1],I=e.useState([]),x=I[0],C=I[1],G=e.useState(null),B=G[0],w=G[1],A=e.useState(null),F=A[0],N=A[1],X=e.useState(0),Q=X[0],R=X[1],Z=e.useState(0),k=Z[0],W=Z[1],L=e.useState(null),E=L[0],U=L[1],D=e.useState(null),V=D[0],S=D[1],O=e.useState({min:!1,max:!1}),Y=O[0],M=O[1],j=e.useState(0),T=j[0],H=j[1],J=e.useState(!0),z=J[0],P=J[1],K=e.useState(1),q=K[0],$=K[1],ee=e.useState(),te=ee[0],ne=ee[1],re=e.useState(""),oe=re[0],ie=re[1],ae=e.useState(""),se=ae[0],le=ae[1],ce=e.useState({from_amount:(null==a?void 0:a.from_amount)&&parseFloat(null==a?void 0:a.from_amount)>0?a.from_amount:"0",selectedCrypto:a.token_type,selectedFiat:"",minAmount:"0.0000001",maxAmount:"1000.00000"}),ue=ce[0],de=ce[1],pe=e.useState(null),fe=pe[0],he=pe[1];e.useEffect((function(){me(),be()}),[]);var me=function(){var e=no(l);Pr({url:"".concat(e,"/api/lookup/currencies"),headers:{"Content-Type":"application/json","X-API-KEY":o,"User-Id":s},onSuccess:function(e){(null==e?void 0:e.success)&&S(null==e?void 0:e.data)},onError:function(){c("Error fetching currency","error")}})},be=function(){var e=no(l);Pr({url:"".concat(e,"/api/lookup/commissions"),headers:{"Content-Type":"application/json","X-API-KEY":o,"User-Id":s},onSuccess:function(e){var t,n,r,o;if(null==e?void 0:e.success){var i=(null===(n=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.rules)||void 0===n?void 0:n.find((function(e){return"onramp"===(null==e?void 0:e.service)})))||null;U(i),i&&de(m(m({},ue),{minAmount:null===(r=null==i?void 0:i.schema)||void 0===r?void 0:r.min,maxAmount:null===(o=null==i?void 0:i.schema)||void 0===o?void 0:o.max}))}},onError:function(){c("Error fetching comission","error")}})};e.useEffect((function(){var e,t,n,r,o,i,s,l,c;if(V){var u=null===(t=null===(e=null==V?void 0:V.currencies)||void 0===e?void 0:e.filter((function(e){var t;return"FIAT"===(null===(t=null==e?void 0:e.supported_currency)||void 0===t?void 0:t.type)&&"onramp"===(null==e?void 0:e.service)})))||void 0===t?void 0:t.map((function(e){var t,n;return{label:null===(t=null==e?void 0:e.supported_currency)||void 0===t?void 0:t.code,value:null==e?void 0:e.unique_id,icon:null===(n=null==e?void 0:e.supported_currency)||void 0===n?void 0:n.icon}}));y(u);var d=(null==ue?void 0:ue.selectedFiat)?(null==V?void 0:V.currencies.find((function(e){var t;return(null===(t=null==e?void 0:e.supported_currency)||void 0===t?void 0:t.code)===(null==ue?void 0:ue.selectedFiat)})))||(null===(n=null==V?void 0:V.currencies)||void 0===n?void 0:n.find((function(e){var t,n;return(null===(t=null==e?void 0:e.supported_currency)||void 0===t?void 0:t.code)===(null===(n=null==u?void 0:u[0])||void 0===n?void 0:n.label)}))):null===(r=null==V?void 0:V.currencies)||void 0===r?void 0:r.find((function(e){var t,n;return(null===(t=null==e?void 0:e.supported_currency)||void 0===t?void 0:t.code)===(null===(n=null==u?void 0:u[0])||void 0===n?void 0:n.label)})),p=ue.selectedFiat&&u.find((function(e){return e.label===ue.selectedFiat}))||(null==u?void 0:u[0]);N(p);var f=(null===(i=null===(o=null==V?void 0:V.currencies)||void 0===o?void 0:o.filter((function(e){var t;return"CRYPTO"===(null===(t=null==e?void 0:e.supported_currency)||void 0===t?void 0:t.type)&&"onramp"===(null==e?void 0:e.service)})))||void 0===i?void 0:i.map((function(e){var t,n;return{label:null===(t=null==e?void 0:e.supported_currency)||void 0===t?void 0:t.code,value:null==e?void 0:e.unique_id,icon:null===(n=null==e?void 0:e.supported_currency)||void 0===n?void 0:n.icon}})))||[];C(f);var h=(null==a?void 0:a.token_type)?(null===(s=null==V?void 0:V.currencies)||void 0===s?void 0:s.find((function(e){var t;return(null===(t=null==e?void 0:e.supported_currency)||void 0===t?void 0:t.code)===(null==a?void 0:a.token_type)})))||(null===(l=null==V?void 0:V.currencies)||void 0===l?void 0:l.find((function(e){var t,n;return(null===(t=null==e?void 0:e.supported_currency)||void 0===t?void 0:t.code)===(null===(n=null==f?void 0:f[0])||void 0===n?void 0:n.label)}))):null===(c=null==V?void 0:V.currencies)||void 0===c?void 0:c.find((function(e){var t,n;return(null===(t=null==e?void 0:e.supported_currency)||void 0===t?void 0:t.code)===(null===(n=null==f?void 0:f[0])||void 0===n?void 0:n.label)}));w((null==a?void 0:a.token_type)?f.find((function(e){return e.label===(null==a?void 0:a.token_type)}))||(null==f?void 0:f[0]):(null==f?void 0:f[0])||[]),de((function(e){var t,n;return m(m({},e),{selectedCrypto:(null===(t=null==h?void 0:h.supported_currency)||void 0===t?void 0:t.code)||"",selectedFiat:(null===(n=null==d?void 0:d.supported_currency)||void 0===n?void 0:n.code)||""})}))}}),[V]);e.useEffect((function(){var e=setTimeout((function(){F&&B&&ge()}),300);return function(){return clearTimeout(e)}}),[F,B,ue]);var ge=function(){return b(void 0,void 0,void 0,(function(){var e,t,n;return g(this,(function(r){switch(r.label){case 0:if(e=no(l),P(!0),W(0),R(0),H(0),!("string"==typeof ue.from_amount?parseFloat(null==ue?void 0:ue.from_amount)>0:ue.from_amount>0))return[3,6];t={from:(null==ue?void 0:ue.selectedFiat)||(null==F?void 0:F.label),to:(null==ue?void 0:ue.selectedCrypto)||(null==B?void 0:B.label),amount:null==ue?void 0:ue.from_amount},r.label=1;case 1:return r.trys.push([1,3,4,5]),[4,fetch("".concat(e,"/api/onramp/fee?from=").concat(t.from,"&to=").concat(t.to,"&amount=").concat(t.amount),{method:"GET",headers:{"Content-Type":"application/json","X-API-KEY":o,"User-Id":s}}).then((function(e){return e.json()})).then((function(e){if(Object.keys(e.data).length>0){var t=e.data;W(parseFloat(t.markupFee)+parseFloat(t.networkFee)+parseFloat(t.processingFee)),R(t.exchangeRate),H(t.amountOut)}else c(null==e?void 0:e.message,"error")})).catch((function(e){c(e,"error")}))];case 2:return r.sent(),[3,5];case 3:return n=r.sent(),c(n,"error"),[3,5];case 4:return P(!1),[7];case 5:return[3,7];case 6:c("Please enter valid amount","error"),P(!1),r.label=7;case 7:return[2]}}))}))};e.useEffect((function(){M({min:parseFloat(ue.from_amount)<parseFloat(ue.minAmount)||""===ue.from_amount||parseFloat(ue.from_amount)<=0,max:parseFloat(ue.from_amount)>parseFloat(ue.maxAmount)})}),[Q,ue]);return f.jsx(f.Fragment,{children:1===q?f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:h.field_card,children:[f.jsxs("div",{className:h.field_box,children:[f.jsx("div",{className:h.field_label,children:"You Pay"}),f.jsx("div",{className:h.field_form,children:f.jsx("input",{type:"text",value:null==ue?void 0:ue.from_amount,onChange:function(e){!function(e){var t,n;if(e.includes(".")){if(E&&!to(e,null===(t=null==E?void 0:E.schema)||void 0===t?void 0:t.decimal))return void c("You can input upto ".concat(null===(n=null==E?void 0:E.schema)||void 0===n?void 0:n.decimal," decimal places."),"error");""===e?de(m(m({},ue),{from_amount:""})):isNaN(Number(e))||de(m(m({},ue),{from_amount:e}))}else""===e?de(m(m({},ue),{from_amount:""})):isNaN(Number(e))||de(m(m({},ue),{from_amount:e}))}(e.target.value)},className:h.input_control})})]}),f.jsx("div",{className:h.field_select_card,children:f.jsx("div",{className:h.field_select,children:(null==v?void 0:v.length)>0?f.jsx(Mr,{backgroundColor:"#f3e2c3",placeholder:"Select an option",image:!0,singleicons:!0,options:v,isSearchable:!1,value:F,onChange:function(e){return function(e){var t,n,r=null===(t=null==V?void 0:V.currencies)||void 0===t?void 0:t.find((function(t){return t.unique_id===(null==e?void 0:e.value)}));de(m(m({},ue),{selectedFiat:(null===(n=null==r?void 0:r.supported_currency)||void 0===n?void 0:n.code)||""})),N(e)}(e)},isDisabled:z}):f.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:f.jsx($r,{})})})})]}),(null==Y?void 0:Y.min)&&f.jsxs("p",{className:h.error_msg,children:["Invalid, Min : ",null===(n=parseFloat(null==ue?void 0:ue.minAmount))||void 0===n?void 0:n.toFixed(8)]}),(null==Y?void 0:Y.max)&&f.jsxs("p",{className:h.error_msg,children:["Invalid, Max : ",null===(r=parseFloat(null==ue?void 0:ue.maxAmount))||void 0===r?void 0:r.toString()]}),f.jsxs("div",{className:h.info_box,children:[f.jsxs("div",{className:"".concat(h.ramp_space," ").concat(h.label_card),children:[f.jsx("div",{className:h.label_icons,children:f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",width:"12",height:"12",viewBox:"0 0 300 300",children:[f.jsx("path",{d:"M240.3 171.5H59.7c-11.9 0-21.5-9.6-21.5-21.5s9.6-21.5 21.5-21.5h180.6c11.9 0 21.5 9.6 21.5 21.5s-9.6 21.5-21.5 21.5","data-original":"#000000"}),f.jsx("circle",{cx:"150",cy:"65.5",r:"30.5","data-original":"#000000"}),f.jsx("circle",{cx:"150.5",cy:"234.5",r:"30.5","data-original":"#000000"})]})}),f.jsxs("div",{className:h.label_value,children:[f.jsx("span",{style:{marginRight:10},children:"Rate :"}),z?f.jsx(ia,{}):"1\n ".concat((null==F?void 0:F.label)||"N/A","\n = ").concat(Q>0?(1/Q).toFixed(8):0," ").concat(null==B?void 0:B.label)]})]}),f.jsxs("div",{className:"".concat(h.ramp_space," ").concat(h.label_card),children:[f.jsx("div",{className:h.label_icons,children:f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",width:"10",height:"10",viewBox:"0 0 121.805 121.804",children:f.jsx("path",{d:"M7.308 68.211h107.188a7.31 7.31 0 0 0 7.309-7.31 7.31 7.31 0 0 0-7.309-7.309H7.308a7.31 7.31 0 0 0 0 14.619","data-original":"#000000"})})}),f.jsxs("div",{className:h.label_value,children:[f.jsx("span",{style:{marginRight:10},children:"Total Fees :"}),z?f.jsx(ia,{}):"".concat(k||0," ").concat(null==F?void 0:F.label)]})]}),f.jsxs("div",{className:"".concat(h.ramp_space_top," ").concat(h.label_titles),children:[f.jsx("div",{className:h.label_dots}),f.jsxs("div",{className:h.ramp_details,children:[f.jsx("div",{className:h.ramp_head,children:"Payment Method"}),f.jsx("div",{className:h.payment_box,children:f.jsxs("div",{className:"".concat(h.payment_check_card," ").concat(h.selected),children:[f.jsx("input",{type:"radio",name:"radioDefault",id:"radioDefault1",value:"0.10234",className:h.input_control}),f.jsx("div",{children:"Card Payment"}),f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 408.576 408.576",children:f.jsx("g",{children:f.jsx("path",{d:"M204.288 0C91.648 0 0 91.648 0 204.288s91.648 204.288 204.288 204.288 204.288-91.648 204.288-204.288S316.928 0 204.288 0zm114.176 150.528-130.56 129.536c-7.68 7.68-19.968 8.192-28.16.512L90.624 217.6c-8.192-7.68-8.704-20.48-1.536-28.672 7.68-8.192 20.48-8.704 28.672-1.024l54.784 50.176L289.28 121.344c8.192-8.192 20.992-8.192 29.184 0s8.192 20.992 0 29.184z",fill:"#F9C201"})})})]})})]})]})]}),f.jsxs("div",{className:h.field_card,children:[f.jsxs("div",{className:h.field_box,children:[f.jsx("div",{className:h.field_label,children:"You Receive (estimate)"}),f.jsx("div",{className:h.field_form,children:z?f.jsx(ia,{size:20}):f.jsx("input",{type:"text",value:(null==Y?void 0:Y.min)||(null==Y?void 0:Y.max)?0:T||0,className:h.input_control,disabled:!0})})]}),f.jsx("div",{className:h.field_select_card,children:f.jsx("div",{className:h.field_select,children:(null==x?void 0:x.length)>0?f.jsx(Mr,{backgroundColor:"#f3e2c3",placeholder:"Select",borderColor:"var(--no-color)",image:!0,singleicons:!0,options:x,isSearchable:!1,value:B,onChange:function(e){e&&(R(0),ie(""),le("Required"),function(e){var t,n,r=null===(t=null==V?void 0:V.currencies)||void 0===t?void 0:t.find((function(t){return(null==t?void 0:t.unique_id)===e.value}));de(m(m({},ue),{selectedCrypto:(null===(n=null==r?void 0:r.supported_currency)||void 0===n?void 0:n.code)||""})),w(e)}(e))},isDisabled:z}):f.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:f.jsx($r,{})})})})]}),f.jsxs("div",{style:{marginTop:"20px"},className:h.ramp_bank_box,children:[f.jsxs("div",{className:h.new_bank_label,children:["Wallet Address ",f.jsx("span",{className:h.required,children:"*"})]}),f.jsx("div",{className:h.new_bank_fields,children:f.jsx("input",{type:"text",value:oe,className:h.input_control,placeholder:"Enter Wallet Address",onChange:function(e){var t=e.target.value.trim();if(ie(t),""!==e.target.value&&B){le("");var n=["USDT","USDC"].includes(B.label)?iu.validate(t,"ETH")||iu.validate(t,"TRX")||iu.validate(t,"SOL"):iu.validate(t,B.label);le(n?"":"Invalid wallet address")}else le("Required")},name:"bank_name"})}),se&&f.jsx("span",{className:h.input_error,children:se})]}),f.jsxs("div",{className:h.info_card,children:[f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30",viewBox:"0 0 32 32",children:f.jsxs("g",{id:"Layer_20","data-name":"Layer 20",children:[f.jsx("path",{fill:"#fbd63b",d:"M28 28H4L16 6z"}),f.jsx("path",{fill:"#f8be31",d:"m16 6 12 22H16z"}),f.jsx("path",{fill:"#333",d:"m16 21-2-7h4z"}),f.jsx("circle",{cx:"16",cy:"25",r:"1",fill:"#333"}),f.jsx("path",{d:"M16 14h2l-2 7zM16 24a1 1 0 0 1 0 2z"})]})}),f.jsx("div",{className:h.caution_info,children:"Cryptocurrencies are volatile, and prices can change rapidly, make sure to research and understand the market risks."})]}),f.jsx("div",{className:h.ramp_action,children:f.jsxs("button",{disabled:Q<=0||z||!oe||d||(null==se?void 0:se.length)>0,className:"".concat(h.action_btn," ").concat(h.primary," "),onClick:function(){return b(void 0,void 0,void 0,(function(){var e,t,n;return g(this,(function(r){switch(r.label){case 0:if(e=no(l),!(parseFloat(ue.from_amount)>0))return[3,6];p(!0),t={from:(null==ue?void 0:ue.selectedFiat)||(null==F?void 0:F.label),to:(null==ue?void 0:ue.selectedCrypto)||(null==B?void 0:B.label),value:null==ue?void 0:ue.from_amount,wallet_address:oe,initial_exchange_rate:Q,redirect_url:i},r.label=1;case 1:return r.trys.push([1,3,4,5]),[4,fetch("".concat(e,"/api/onramp/transactions"),{method:"POST",headers:{"Content-Type":"application/json","X-API-KEY":o,"User-Id":s},body:JSON.stringify(t)}).then((function(e){return e.json()})).then((function(e){var t;(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.redirect_url)?(ne(e.data.redirect_url),he(m(m({},ue),{apiResponse:null==e?void 0:e.data})),$(2)):e.success||c(null==e?void 0:e.message,"error")})).catch((function(e){c(e,"error")}))];case 2:return r.sent(),[3,5];case 3:return n=r.sent(),c(n,"error"),[3,5];case 4:return p(!1),[7];case 5:return[3,7];case 6:c("Please enter valid amount","error"),r.label=7;case 7:return[2]}}))}))},children:["Continue ",d&&f.jsx(eo,{})]})})]}):f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:h.bank_head,onClick:function(){return $(1)},children:[f.jsx("div",{children:f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",width:"18",height:"18",viewBox:"0 0 240.823 240.823",children:f.jsx("path",{d:"M57.633 129.007 165.93 237.268c4.752 4.74 12.451 4.74 17.215 0 4.752-4.74 4.752-12.439 0-17.179l-99.707-99.671 99.695-99.671c4.752-4.74 4.752-12.439 0-17.191-4.752-4.74-12.463-4.74-17.215 0L57.621 111.816c-4.679 4.691-4.679 12.511.012 17.191","data-original":"#000000"})})}),f.jsx("div",{className:h.bank_titles,children:"Back"})]}),"development"===l?f.jsx(cu,{apiKey:o,clientReferenceID:s,data:fe,setSandboxData:he}):f.jsx("iframe",{title:"Buy Crypto",id:"chat-widget",src:te,style:{width:"100%",minHeight:"calc(100vh - 400px)",border:"none",zIndex:"9999",overflow:"auto"}})]})})},du=function(t){var n=t.defaultTab,r=t.apiKey,o=t.redirectUrl,i=t.buyParameters,a=t.sellParameters,s=t.clientReferenceID,l=t.mode,c=e.useState(["buy","sell"].includes(n)?n:"buy"),u=c[0],d=c[1];return f.jsxs("div",{className:h.tabs_wrapped,children:[f.jsx("div",{className:h.tabs_link,children:f.jsxs("div",{className:h.tabs_box,children:[f.jsx("button",{className:"".concat("buy"===u&&h.active_btn),onClick:function(){return d("buy")},children:"Buy Crypto"}),f.jsx("button",{className:"".concat("sell"===u&&h.active_btn),onClick:function(){return d("sell")},children:"Sell Crypto"})]})}),f.jsxs("div",{className:h.tabs_content,children:["buy"===u&&f.jsx(uu,{apiKey:r,redirectUrl:o,parameters:i,clientReferenceID:s,mode:l}),"sell"===u&&f.jsx(aa,{apiKey:r,parameters:a,clientReferenceID:s,mode:l})]})]})};module.exports=function(e){var t=e.apiKey,n=e.redirectUrl,r=e.buyParameters,o=e.sellParameters,i=e.defaultTab,a=e.clientReferenceID,s=e.mode,l=void 0===s?"development":s;return f.jsx("div",{style:{position:"relative"},className:h.widgetcomponent,id:"widget-container",children:f.jsx("div",{className:h.widget_wrapped,children:f.jsx("div",{className:h.widget_modal,children:f.jsx("div",{className:h.widget_content,children:f.jsx(Jr,{children:f.jsx(du,{redirectUrl:n,defaultTab:i,buyParameters:r,sellParameters:o,apiKey:t,clientReferenceID:a,mode:l})})})})})})};
47
47
  //# sourceMappingURL=index.js.map