@inboxsdk/core 1.1.7 → 1.2.0
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/inboxsdk.js +8 -8
- package/inboxsdk.js.map +1 -1
- package/package.json +1 -1
- package/pageWorld.js +1 -1
- package/pageWorld.js.map +1 -1
- package/src/inboxsdk.d.ts +3 -3
- package/src/injected-js/gmail/setup-gmail-interceptor.d.ts.map +1 -1
- package/src/injected-js/gmail/setup-gmail-interceptor.js +2 -5
- package/src/injected-js/gmail/thread-identifier/index.d.ts.map +1 -1
- package/src/injected-js/gmail/thread-identifier/index.js +1 -2
- package/src/injected-js/message-metadata-holder.d.ts.map +1 -1
- package/src/injected-js/setup-data-exposer.d.ts.map +1 -1
- package/src/injected-js/setup-data-exposer.js +0 -1
- package/src/injected-js/setup-error-silencer.d.ts.map +1 -1
- package/src/injected-js/setup-error-silencer.js +2 -3
- package/src/injected-js/xhr-helper.d.ts.map +1 -1
- package/src/injected-js/xhr-helper.js +27 -57
- package/src/injected-js/xhr-proxy-factory.d.ts.map +1 -1
- package/src/injected-js/xhr-proxy-factory.js +1 -2
- package/src/platform-implementation-js/dom-driver/gmail/gmail-driver/keyboard-shortcut-help-modifier.d.ts.map +1 -1
- package/src/platform-implementation-js/dom-driver/gmail/gmail-driver/keyboard-shortcut-help-modifier.js +1 -2
- package/src/platform-implementation-js/dom-driver/gmail/gmail-driver/track-events.d.ts.map +1 -1
- package/src/platform-implementation-js/dom-driver/gmail/gmail-driver/track-events.js +0 -1
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-app-sidebar-view/primary/add-companion-global-icon-area.d.ts.map +1 -1
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-app-sidebar-view/primary/add-companion-thread-icon-area.d.ts.map +1 -1
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-app-sidebar-view/primary/add-companion-thread-icon-area.js +0 -1
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-app-sidebar-view/primary/index.d.ts.map +1 -1
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-attachment-area-view.d.ts.map +1 -1
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-attachment-area-view.js +1 -1
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-attachment-card-view.d.ts.map +1 -1
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-attachment-card-view.js +0 -1
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-collapsible-section-view.d.ts +1 -1
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-collapsible-section-view.d.ts.map +1 -1
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-collapsible-section-view.js +4 -5
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-compose-view/add-button.d.ts.map +1 -1
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-compose-view/add-button.js +1 -1
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-compose-view/add-tooltip-to-button.d.ts.map +1 -1
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-compose-view/get-address-changes-stream.d.ts.map +1 -1
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-compose-view/get-address-changes-stream.js +0 -1
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-compose-view/insert-link-into-body.d.ts.map +1 -1
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-compose-view/manage-button-grouping.d.ts.map +1 -1
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-compose-view/monitor-selection-range.d.ts.map +1 -1
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-compose-view/monitor-selection-range.js +1 -2
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-compose-view/size-fixer.d.ts.map +1 -1
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-compose-view/size-fixer.js +1 -2
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-compose-view.d.ts.map +1 -1
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-compose-view.js +1 -3
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-message-view.d.ts.map +1 -1
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-message-view.js +3 -4
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-route-view/gmail-route-view.d.ts +2 -1
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-route-view/gmail-route-view.d.ts.map +1 -1
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-route-view/gmail-route-view.js +2 -2
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-row-list-view.d.ts.map +1 -1
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-row-list-view.js +0 -1
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-thread-row-view.d.ts.map +1 -1
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-thread-row-view.js +0 -1
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-thread-view.d.ts +0 -2
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-thread-view.d.ts.map +1 -1
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-thread-view.js +0 -3
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-toolbar-view.d.ts.map +1 -1
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-toolbar-view.js +3 -4
- package/src/platform-implementation-js/dom-driver/gmail/views/native-gmail-nav-item-view.d.ts.map +1 -1
- package/src/platform-implementation-js/dom-driver/gmail/views/native-gmail-nav-item-view.js +0 -1
- package/src/platform-implementation-js/dom-driver/gmail/widgets/buttons/create-accessory-button-view.d.ts +2 -2
- package/src/platform-implementation-js/dom-driver/gmail/widgets/buttons/create-accessory-button-view.d.ts.map +1 -1
- package/src/platform-implementation-js/dom-driver/gmail/widgets/buttons/create-accessory-button-view.js +2 -3
- package/src/platform-implementation-js/dom-driver/gmail/widgets/buttons/create-parent-accessory-button-view.d.ts +2 -2
- package/src/platform-implementation-js/dom-driver/gmail/widgets/buttons/create-parent-accessory-button-view.d.ts.map +1 -1
- package/src/platform-implementation-js/dom-driver/gmail/widgets/buttons/create-parent-accessory-button-view.js +2 -3
- package/src/platform-implementation-js/dom-driver/gmail/widgets/buttons/modal-button-view.d.ts +2 -2
- package/src/platform-implementation-js/dom-driver/gmail/widgets/buttons/modal-button-view.d.ts.map +1 -1
- package/src/platform-implementation-js/dom-driver/gmail/widgets/buttons/modal-button-view.js +2 -3
- package/src/platform-implementation-js/dom-driver/gmail/widgets/gmail-modal-view-driver.d.ts.map +1 -1
- package/src/platform-implementation-js/dom-driver/gmail/widgets/gmail-modal-view-driver.js +2 -4
- package/src/platform-implementation-js/dom-driver/gmail/widgets/gmail-tooltip-view.d.ts.map +1 -1
- package/src/platform-implementation-js/dom-driver/gmail/widgets/gmail-tooltip-view.js +7 -14
- package/src/platform-implementation-js/dom-driver/inbox/views/inbox-backdrop.d.ts.map +1 -1
- package/src/platform-implementation-js/dom-driver/inbox/views/inbox-backdrop.js +1 -2
- package/src/platform-implementation-js/dom-driver/inbox/views/inbox-drawer-view.d.ts.map +1 -1
- package/src/platform-implementation-js/dom-driver/inbox/views/inbox-drawer-view.js +1 -2
- package/src/platform-implementation-js/driver-common/sidebar/AppSidebar.d.ts.map +1 -1
- package/src/platform-implementation-js/driver-common/sidebar/AppSidebar.js +0 -1
- package/src/platform-implementation-js/driver-common/sidebar/ContentPanelViewDriver.d.ts.map +1 -1
- package/src/platform-implementation-js/driver-interfaces/compose-view-driver.d.ts +2 -1
- package/src/platform-implementation-js/driver-interfaces/compose-view-driver.d.ts.map +1 -1
- package/src/platform-implementation-js/driver-interfaces/driver.d.ts +2 -1
- package/src/platform-implementation-js/driver-interfaces/driver.d.ts.map +1 -1
- package/src/platform-implementation-js/lib/dom/insert-html-at-cursor.d.ts.map +1 -1
- package/src/platform-implementation-js/lib/dom/insert-html-at-cursor.js +1 -2
- package/src/platform-implementation-js/lib/handle-compose-link-chips.d.ts.map +1 -1
- package/src/platform-implementation-js/lib/handle-compose-link-chips.js +1 -2
- package/src/platform-implementation-js/lib/parseParamsFromRouteID.d.ts.map +1 -1
- package/src/platform-implementation-js/lib/parseParamsFromRouteID.js +1 -3
- package/src/platform-implementation-js/lib/safe-event-emitter.d.ts +1 -1
- package/src/platform-implementation-js/lib/safe-event-emitter.d.ts.map +1 -1
- package/src/platform-implementation-js/lib/safe-event-emitter.js +1 -2
- package/src/platform-implementation-js/namespaces/app-menu.d.ts +49 -3
- package/src/platform-implementation-js/namespaces/app-menu.d.ts.map +1 -1
- package/src/platform-implementation-js/namespaces/app-menu.js +16 -2
- package/src/platform-implementation-js/namespaces/compose.d.ts.map +1 -1
- package/src/platform-implementation-js/namespaces/compose.js +0 -1
- package/src/platform-implementation-js/namespaces/conversations.d.ts.map +1 -1
- package/src/platform-implementation-js/namespaces/conversations.js +4 -6
- package/src/platform-implementation-js/namespaces/global.d.ts.map +1 -1
- package/src/platform-implementation-js/namespaces/global.js +0 -1
- package/src/platform-implementation-js/namespaces/toolbars.d.ts.map +1 -1
- package/src/platform-implementation-js/namespaces/toolbars.js +1 -2
- package/src/platform-implementation-js/platform-implementation.d.ts.map +1 -1
- package/src/platform-implementation-js/platform-implementation.js +1 -12
- package/src/platform-implementation-js/views/app-menu-item-view.d.ts +27 -1
- package/src/platform-implementation-js/views/app-menu-item-view.d.ts.map +1 -1
- package/src/platform-implementation-js/views/app-menu-item-view.js +18 -1
- package/src/platform-implementation-js/views/collapsible-panel-view.d.ts +20 -0
- package/src/platform-implementation-js/views/collapsible-panel-view.d.ts.map +1 -1
- package/src/platform-implementation-js/views/collapsible-panel-view.js +14 -0
- package/src/platform-implementation-js/views/compose-view.d.ts +4 -4
- package/src/platform-implementation-js/views/compose-view.d.ts.map +1 -1
- package/src/platform-implementation-js/views/content-panel-view.d.ts.map +1 -1
- package/src/platform-implementation-js/views/conversations/attachment-card-view.d.ts.map +1 -1
- package/src/platform-implementation-js/views/conversations/custom-message-view.d.ts.map +1 -1
- package/src/platform-implementation-js/views/conversations/message-view.d.ts.map +1 -1
- package/src/platform-implementation-js/views/conversations/message-view.js +2 -4
- package/src/platform-implementation-js/views/native-nav-item-view.d.ts.map +1 -1
- package/src/platform-implementation-js/views/nav-item-view.d.ts.map +1 -1
- package/src/platform-implementation-js/widgets/drawer-view.d.ts.map +1 -1
- package/src/platform-implementation-js/widgets/drawer-view.js +0 -1
- package/src/platform-implementation-js/widgets/modal-view.d.ts +1 -1
- package/src/platform-implementation-js/widgets/modal-view.d.ts.map +1 -1
- package/src/platform-implementation-js/widgets/modal-view.js +1 -2
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-compose-view/add-inner-sidebar.d.ts +0 -8
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-compose-view/add-inner-sidebar.d.ts.map +0 -1
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-compose-view/add-inner-sidebar.js +0 -20
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-compose-view/add-outer-sidebar.d.ts +0 -8
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-compose-view/add-outer-sidebar.d.ts.map +0 -1
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-compose-view/add-outer-sidebar.js +0 -25
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-thread-sidebar-view/add-icon-area.d.ts +0 -5
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-thread-sidebar-view/add-icon-area.d.ts.map +0 -1
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-thread-sidebar-view/add-icon-area.js +0 -108
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-thread-sidebar-view.d.ts +0 -18
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-thread-sidebar-view.d.ts.map +0 -1
- package/src/platform-implementation-js/dom-driver/gmail/views/gmail-thread-sidebar-view.js +0 -555
- package/src/platform-implementation-js/lib/dom/set-value-and-dispatch-event.d.ts +0 -2
- package/src/platform-implementation-js/lib/dom/set-value-and-dispatch-event.d.ts.map +0 -1
- package/src/platform-implementation-js/lib/dom/set-value-and-dispatch-event.js +0 -6
package/pageWorld.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! For license information please see pageWorld.js.LICENSE.txt */
|
|
2
|
-
(()=>{var t={3758:t=>{t.exports=function(t,e){var n="number"==typeof t,r="number"==typeof e;n&&!r?(e=t,t=0):n||r||(t=0,e=0);var i=(e|=0)-(t|=0);if(i<0)throw new Error("array length must be positive");for(var o=new Array(i),s=0,a=t;s<i;s++,a++)o[s]=a;return o}},8583:(t,e,n)=>{"use strict";var r=n(7418);function i(t,e){if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0}function o(t){return n.g.Buffer&&"function"==typeof n.g.Buffer.isBuffer?n.g.Buffer.isBuffer(t):!(null==t||!t._isBuffer)}var s=n(9539),a=Object.prototype.hasOwnProperty,u=Array.prototype.slice,c="foo"===function(){}.name;function l(t){return Object.prototype.toString.call(t)}function f(t){return!o(t)&&"function"==typeof n.g.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):!!t&&(t instanceof DataView||!!(t.buffer&&t.buffer instanceof ArrayBuffer)))}var h=t.exports=m,d=/\s*function\s+([^\(\s]*)\s*/;function p(t){if(s.isFunction(t)){if(c)return t.name;var e=t.toString().match(d);return e&&e[1]}}function _(t,e){return"string"==typeof t?t.length<e?t:t.slice(0,e):t}function y(t){if(c||!s.isFunction(t))return s.inspect(t);var e=p(t);return"[Function"+(e?": "+e:"")+"]"}function v(t,e,n,r,i){throw new h.AssertionError({message:n,actual:t,expected:e,operator:r,stackStartFunction:i})}function m(t,e){t||v(t,!0,e,"==",h.ok)}function g(t,e,n,r){if(t===e)return!0;if(o(t)&&o(e))return 0===i(t,e);if(s.isDate(t)&&s.isDate(e))return t.getTime()===e.getTime();if(s.isRegExp(t)&&s.isRegExp(e))return t.source===e.source&&t.global===e.global&&t.multiline===e.multiline&&t.lastIndex===e.lastIndex&&t.ignoreCase===e.ignoreCase;if(null!==t&&"object"==typeof t||null!==e&&"object"==typeof e){if(f(t)&&f(e)&&l(t)===l(e)&&!(t instanceof Float32Array||t instanceof Float64Array))return 0===i(new Uint8Array(t.buffer),new Uint8Array(e.buffer));if(o(t)!==o(e))return!1;var a=(r=r||{actual:[],expected:[]}).actual.indexOf(t);return-1!==a&&a===r.expected.indexOf(e)||(r.actual.push(t),r.expected.push(e),function(t,e,n,r){if(null==t||null==e)return!1;if(s.isPrimitive(t)||s.isPrimitive(e))return t===e;if(n&&Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;var i=b(t),o=b(e);if(i&&!o||!i&&o)return!1;if(i)return g(t=u.call(t),e=u.call(e),n);var a,c,l=E(t),f=E(e);if(l.length!==f.length)return!1;for(l.sort(),f.sort(),c=l.length-1;c>=0;c--)if(l[c]!==f[c])return!1;for(c=l.length-1;c>=0;c--)if(!g(t[a=l[c]],e[a],n,r))return!1;return!0}(t,e,n,r))}return n?t===e:t==e}function b(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function x(t,e){if(!t||!e)return!1;if("[object RegExp]"==Object.prototype.toString.call(e))return e.test(t);try{if(t instanceof e)return!0}catch(t){}return!Error.isPrototypeOf(e)&&!0===e.call({},t)}function w(t,e,n,r){var i;if("function"!=typeof e)throw new TypeError('"block" argument must be a function');"string"==typeof n&&(r=n,n=null),i=function(t){var e;try{t()}catch(t){e=t}return e}(e),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),t&&!i&&v(i,n,"Missing expected exception"+r);var o="string"==typeof r,a=!t&&i&&!n;if((!t&&s.isError(i)&&o&&x(i,n)||a)&&v(i,n,"Got unwanted exception"+r),t&&i&&n&&!x(i,n)||!t&&i)throw i}h.AssertionError=function(t){this.name="AssertionError",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=function(t){return _(y(t.actual),128)+" "+t.operator+" "+_(y(t.expected),128)}(this),this.generatedMessage=!0);var e=t.stackStartFunction||v;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var n=new Error;if(n.stack){var r=n.stack,i=p(e),o=r.indexOf("\n"+i);if(o>=0){var s=r.indexOf("\n",o+1);r=r.substring(s+1)}this.stack=r}}},s.inherits(h.AssertionError,Error),h.fail=v,h.ok=m,h.equal=function(t,e,n){t!=e&&v(t,e,n,"==",h.equal)},h.notEqual=function(t,e,n){t==e&&v(t,e,n,"!=",h.notEqual)},h.deepEqual=function(t,e,n){g(t,e,!1)||v(t,e,n,"deepEqual",h.deepEqual)},h.deepStrictEqual=function(t,e,n){g(t,e,!0)||v(t,e,n,"deepStrictEqual",h.deepStrictEqual)},h.notDeepEqual=function(t,e,n){g(t,e,!1)&&v(t,e,n,"notDeepEqual",h.notDeepEqual)},h.notDeepStrictEqual=function t(e,n,r){g(e,n,!0)&&v(e,n,r,"notDeepStrictEqual",t)},h.strictEqual=function(t,e,n){t!==e&&v(t,e,n,"===",h.strictEqual)},h.notStrictEqual=function(t,e,n){t===e&&v(t,e,n,"!==",h.notStrictEqual)},h.throws=function(t,e,n){w(!0,t,e,n)},h.doesNotThrow=function(t,e,n){w(!1,t,e,n)},h.ifError=function(t){if(t)throw t},h.strict=r((function t(e,n){e||v(e,!0,n,"==",t)}),h,{equal:h.strictEqual,deepEqual:h.deepStrictEqual,notEqual:h.notStrictEqual,notDeepEqual:h.notDeepStrictEqual}),h.strict.strict=h.strict;var E=Object.keys||function(t){var e=[];for(var n in t)a.call(t,n)&&e.push(n);return e}},5408:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=new Array(2*t.length-1);e[0]=t[0];for(var n=0,r=arguments.length<=1?0:arguments.length-1;n<r;n++){var o=n+1<1||arguments.length<=n+1?void 0:arguments[n+1];e[2*n+1]=o&&Object.prototype.hasOwnProperty.call(o,"__html")?o.__html:(0,i.default)(o),e[2*n+2]=t[n+1]}return e.join("")};var r,i=(r=n(1675))&&r.__esModule?r:{default:r};t.exports=e.default,t.exports.default=e.default},7709:(t,e,n)=>{"use strict";n.d(e,{Z:()=>l});var r=n(7673),i=n(443);const o=/([?&])_=[^&]*/;let s=Date.now()+Math.floor(Math.random()*Math.pow(2,32));const a=64e3,u=5,c={};function l(t){if(!t||"string"!=typeof t.url)throw new Error("URL must be given");return new Promise((function(e,n){const f=t.method?t.method:"GET";let h=t.url,d=null;t.data&&(d="string"==typeof t.data?t.data:r.stringify(t.data),"GET"!==f&&"HEAD"!==f||(h+=(/\?/.test(h)?"&":"?")+d,d=null));const p=null!=t.canRetry?t.canRetry:"GET"===f||"HEAD"===f,_=h.match(/(?:(?:[a-z]+:)?\/\/)?([^/]*)\//);if(!_)throw new Error("Failed to match url");const y=_[1];if(Object.prototype.hasOwnProperty.call(c,y))return void n(new Error(`Server at ${h} has told us to stop connecting`));t.cachebust&&(h=function(t){return o.test(t)?t.replace(o,"$1_="+s++):t+(/\?/.test(t)?"&":"?")+"_="+s++}(h));const v=new(t.XMLHttpRequest||window.XMLHttpRequest);if(Object.assign(v,t.xhrFields),v.onerror=function(r){if((t.retryNum||0)<u&&(502===v.status||(0===v.status||v.status>=500)&&p))return void e(function(t){const e=(t.retryNum||0)+1,n=Math.min(1e3*Math.pow(2,e),a);return(0,i.Z)(n).then((()=>l(Object.assign({},t,{retryNum:e}))))}(t));const o=Object.assign(new Error(`Failed to load ${h}`),{event:r,xhr:v,status:v.status});490==v.status&&(c[y]=!0),n(o)},v.onload=function(t){200===v.status?e({xhr:v,text:v.responseText}):v.onerror(t)},v.open(f,h,!0),t.headers){const{headers:e}=t;Object.keys(e).forEach((t=>{const n=e[t];v.setRequestHeader(t,n)}))}v.send(d)}))}},2780:(t,e,n)=>{"use strict";function r(t){const e=document.createElement("div");return e.innerHTML=t.replace(/<[^>]*>?/g,""),e.textContent}n.d(e,{Z:()=>r})},9638:(t,e,n)=>{"use strict";n.d(e,{Z:()=>l});var r=n(1675),i=n.n(r),o=n(5408),s=n.n(o),a=n(1010),u=n(2780),c=n(8153);t=n.hmd(t);const l=(0,a.Kg)(t,(function(t,e){const{value:n,options:r}=c.vB(t),o=n[0][1];for(const t of e){let e,r,a,c;if("string"==typeof t.name?(e=t.name,r=i()(e)):"string"==typeof t.nameHTML&&(r=t.nameHTML,e=(0,u.Z)(r)),null==e||null==r)throw new Error("name or nameHTML must be provided");"string"==typeof t.description?(a=t.description,c=i()(a)):"string"==typeof t.descriptionHTML&&(c=t.descriptionHTML,a=(0,u.Z)(c));const l={id:t.id,routeName:t.routeName,routeParams:t.routeParams,externalURL:t.externalURL};r+=s()` <span style="display:none" data-inboxsdk-suggestion="${JSON.stringify(l)}"></span>`,null!=t.iconHTML&&(r=`<div class="inboxsdk__custom_suggestion_iconHTML">${t.iconHTML}</div>${r}`);const f=["aso.sug",t.searchTerm||o,r,null,[],0,null,"asor inboxsdk__custom_suggestion "+t.providerId+" "+(t.iconClass||""),0];null!=c&&(f[3]=["aso.eme",a,e,c,r]),null!=t.iconHTML?(f[6]=["aso.thn","data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="],f[7]+=" inboxsdk__no_bg"):t.iconUrl?(f[6]=["aso.thn",t.iconUrl],f[7]+=" inboxsdk__no_bg"):f[7]+=" asor_i4",n[0][3].push(f)}return c.qC(n,r)}))},3870:(t,e,n)=>{"use strict";n.d(e,{Z:()=>jt});var r=n(6678),i=n.n(r),o=n(5564),s=n.n(o),a=n(3311),u=n.n(a),c=n(5325),l=n.n(c),f=n(4721),h=n.n(f),d=n(4431),p=n.n(d),_=n(6609),y=n(3721),v=n(8721),m=n.n(v),g=n(308),b=n.n(g),x=n(6073),w=n.n(x),E=n(3105),A=n.n(E),S=n(1463),O=n.n(S),T=n(8583),j=n.n(T),D=n(7187),I=n.n(D),L=n(7673);const k=6e4;function M(t,e,n){const r=n&&n.logError||function(t,e){setTimeout((function(){throw t}),1)};function i(t,e,n){const r={};return Object.keys(n).concat(["bubbles","cancelBubble","cancelable","defaultPrevented","preventDefault","stopPropagation","stopImmediatePropagation","lengthComputable","loaded","total","type","currentTarget","target","srcElement","NONE","CAPTURING_PHASE","AT_TARGET","BUBBLING_PHASE","eventPhase"]).filter((t=>t in n)).forEach((i=>{const o=n[i];r[i]=o===t?e:"function"==typeof o?o.bind(n):o})),r}function o(t,e,n){return function(r){return n.call(e,i(t,e,r))}}function s(){this._wrappers=e,this._listeners={},this._boundListeners={},this._events=new(I()),this.responseText="",this._openState=!1,t.bind&&t.bind.apply?this._realxhr=new(t.bind.apply(t,[null].concat(arguments))):this._realxhr=new t;const n=this,s=(t,e)=>{if(this["on"+t])try{o(this._realxhr,this,this["on"+t]).call(this,e)}catch(t){r(t,"XMLHttpRequest event listener error")}w()(this._boundListeners[t],(t=>{try{t(e)}catch(t){r(t,"XMLHttpRequest event listener error")}}))},a=t=>{s("readystatechange",t)};this._fakeRscEvent=function(){a(Object.freeze({bubbles:!1,cancelBubble:!1,cancelable:!1,defaultPrevented:!1,preventDefault:b(),stopPropagation:b(),stopImmediatePropagation:b(),type:"readystatechange",currentTarget:this,target:this,srcElement:this,NONE:0,CAPTURING_PHASE:1,AT_TARGET:2,BUBBLING_PHASE:3,eventPhase:0}))};const u=t=>{this.readyState=4;var e=200==this.status,n=Object.assign({},i(this._realxhr,this,t),{lengthComputable:!1,loaded:0,total:0});(!this._realxhr.responseType||"text"==this._realxhr.responseType)&&w()(this._activeWrappers,(t=>{if(t.finalResponseTextLogger)try{t.finalResponseTextLogger(this._connection,this.responseText)}catch(t){r(t)}})),a(t),s(e?"load":"error",n),s("loadend",n),w()(this._activeWrappers,(t=>{if(t.afterListeners)try{t.afterListeners(this._connection)}catch(t){r(t)}}))};this._realxhr.addEventListener("readystatechange",(t=>{if(!this._connection)return;this._realxhr.readyState>=2&&(this._connection.status=this._realxhr.status);const e=!this._realxhr.responseType||"text"==this._realxhr.responseType;if(4==this._realxhr.readyState){if(e){Object.defineProperty(this._connection,"originalResponseText",{enumerable:!0,writable:!1,configurable:!1,value:n._realxhr.responseText}),w()(this._activeWrappers,(t=>{if(t.originalResponseTextLogger)try{t.originalResponseTextLogger(this._connection,this._connection.originalResponseText)}catch(t){r(t)}}));const e=O()(u.bind(null,t));if(this._connection.async){const t=this._connection;return void(async()=>{let e=t.originalResponseText;t.modifiedResponseText=e;for(const n of this._responseTextChangers){const r=setTimeout((()=>{console.warn("responseTextChanger is taking too long",n,t)}),k);try{e=await n(t,e)}finally{clearTimeout(r)}if("string"!=typeof e)throw new Error("responseTextChanger returned non-string value "+e);if(t.modifiedResponseText=e,t!==this._connection)break}return e})().then((r=>{t===n._connection&&(this.responseText=r,e())}),(n=>{r(n),t===this._connection&&(this.responseText=this._realxhr.responseText,e())})).catch(r)}n.responseText=n._realxhr.responseText}else n.responseText="";u(t)}else{if(1==n._realxhr.readyState&&1==n.readyState)return;n._realxhr.readyState>=3&&e?n._responseTextChangers.length?n.responseText="":n.responseText=n._realxhr.responseText:n.responseText="",n.readyState=n._realxhr.readyState,a(t)}}),!1),["dispatchEvent","getAllResponseHeaders","getResponseHeader","overrideMimeType","responseType","responseXML","responseURL","status","statusText","timeout","ontimeout","onloadstart","onprogress","onabort","upload","withCredentials"].forEach((function(t){Object.defineProperty(n,t,{enumerable:!0,configurable:!1,get:function(){return"function"==typeof n._realxhr[t]?n._realxhr[t].bind(n._realxhr):n._realxhr[t]},set:function(e){"function"==typeof e&&(e=o(this._realxhr,this,e)),n._realxhr[t]=e}})})),Object.defineProperty(n,"response",{enumerable:!0,configurable:!1,get:function(){return this._realxhr.responseType&&"text"!=this._realxhr.responseType?this._realxhr.response:this.responseText}}),n.readyState=n._realxhr.readyState}return s.prototype.abort=function(){this._clientStartedSend&&!this._realStartedSend&&(0!=this.readyState&&0==this._realxhr.readyState&&this._realxhr.open(this._connection.method,this._connection.url),this._realStartedSend=!0,this._realxhr.send()),this._realxhr.abort()},s.prototype.setRequestHeader=function(t,e){var n=this;if(1!=this.readyState&&console.warn("setRequestHeader improperly called at readyState "+this.readyState),!this._openState)throw new Error("Can only set headers after open and before send");this._connection.headers[t]=e,this._connection.async&&this._requestChangers.length?this._events.once("realOpen",(function(){n._realxhr.setRequestHeader(t,e)})):this._realxhr.setRequestHeader(t,e)},s.prototype.addEventListener=function(t,e){if(this._listeners[t]||(this._listeners[t]=[],this._boundListeners[t]=[]),!h()(this._listeners[t],e)){var n=o(this._realxhr,this,e);this._listeners[t].push(e),this._boundListeners[t].push(n),h()(["readystatechange","load","error","loadend"],t)||this._realxhr.addEventListener(t,n,!1)}},s.prototype.removeEventListener=function(t,e){if(this._listeners[t]){var n=this._listeners[t].indexOf(e);if(-1!=n){this._listeners[t].splice(n,1);var r=this._boundListeners[t].splice(n,1)[0];"readystatechange"!=t&&this._realxhr.removeEventListener(t,r,!1)}}},s.prototype.open=function(e,n,i){if(!(this instanceof s))return t.prototype.open.apply(this,arguments);var o=this;function a(t,e){return o._realxhr.open(t,e,o._connection.async)}this._connection={method:e,url:n,params:(0,L.parse)(n.split("?")[1]||""),headers:{},async:arguments.length<3||!!i},this._clientStartedSend=!1,this._realStartedSend=!1,this._activeWrappers=function(t,e){return A()(t,(function(t){try{return t.isRelevantTo(e)}catch(t){r(t)}}))}(this._wrappers,this._connection),this._responseTextChangers=this._activeWrappers.map((function(t){return t.responseTextChanger&&t.responseTextChanger.bind(t)})).filter(Boolean),this.responseText="",this._openState=!0,this._connection.async?(this._requestChangers=this._activeWrappers.map((function(t){return t.requestChanger&&t.requestChanger.bind(t)})).filter(Boolean),this._requestChangers.length?1!=this.readyState&&(this.readyState=1,this._fakeRscEvent()):a(e,n)):a(e,n)},s.prototype.send=function(t){var e=this;function n(t){e._realStartedSend=!0,e._realxhr.send(t)}if(this._clientStartedSend=!0,this._openState=!1,Object.defineProperty(this._connection,"originalSendBody",{enumerable:!0,writable:!1,configurable:!1,value:t}),this._connection.responseType=this._realxhr.responseType||"text",w()(e._activeWrappers,(function(n){if(n.originalSendBodyLogger)try{n.originalSendBodyLogger(e._connection,t)}catch(t){r(t)}})),this._connection.async&&this._requestChangers.length){const e=this._connection,i={method:this._connection.method,url:this._connection.url,body:t};(async()=>{let t=i;for(const n of this._requestChangers){const r=setTimeout((()=>{console.warn("requestChanger is taking too long",n,e)}),k);try{t=await n(this._connection,Object.freeze(t))}finally{clearTimeout(r)}if(j()(m()(t,"method"),"modifiedRequest has method"),j()(m()(t,"url"),"modifiedRequest has url"),j()(m()(t,"body"),"modifiedRequest has body"),e!==this._connection||this._realStartedSend)break}return t})().catch((t=>(r(t),i))).then((t=>{e!==this._connection||this._realStartedSend||(this._realxhr.open(t.method,t.url),this._events.emit("realOpen"),n(t.body))}))}else n(t)},[s,s.prototype].forEach((function(t){Object.assign(t,{UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4})})),s}var R=n(8153);function P(t){var e,n,r;j()(t.hasAttribute("id"),"check element is main thread row");var i=[];if(2===l()(Array.from(t.classList),["zA","apv"]).length){var o=t.nextElementSibling;if(o){var s=o.nextElementSibling;s&&s.classList.contains("apw")||(s=null),e=t.querySelector("td.apt > div.apm > span[title]"),n=o.querySelector("td div.xS div.xT div.y6 > span"),r=t.querySelector("td.apy > div.yW, td.apx > div.yW")}else i.push("failed to find threadRow2")}else{e=t.querySelector("td.xW > span[title]");var a=t.querySelector("td.a4W div[role=link] div.y6");a&&a.children.length>=1&&(n=a.children[0]),r=t.querySelector("td.yX > div.yW")}return e||i.push("failed to find timeSpan"),n||i.push("failed to find subjectSpan"),r||i.push("failed to find peopleDiv"),i.length&&y.error(new Error("Errors in thread row parsing"),{errors:i}),{timeString:e&&e.getAttribute("title")||"",subject:n?n.textContent:"",peopleHtml:r?(0,R.E3)(r.innerHTML):""}}var C=n(5703);const q=n.n(C)()(!0);function N(t,e){return Object.prototype.hasOwnProperty.call(t,e)?t[e]:null}function V(t){const e=document.createEvent("MouseEvents");let n;e.initMouseEvent("click",!0,!0,document.defaultView,0,0,0,0,0,!0,!1,!1,!0,0,null);const r=window.open,i=window.onerror,o=N(window.HTMLElement.prototype,"focus"),s=N(window.HTMLElement.prototype,"blur");try{window.HTMLElement.prototype.focus=b(),window.HTMLElement.prototype.blur=b(),window.onerror=q;const r=function(t,e,r){n=t;const i={closed:!1,focus:b()};return setTimeout((function(){i.closed=!0}),5),i};if(window.open=r,window.open!==r)return y.error(new Error("Failed to override window.open")),null;t.dispatchEvent(e)}finally{o?window.HTMLElement.prototype.focus=o:delete window.HTMLElement.prototype.focus,s?window.HTMLElement.prototype.blur=s:delete window.HTMLElement.prototype.blur,window.onerror=i,window.open=r}return n}function B(t){t.forEach(U)}const $={name:"AMBIGUOUS"},F=new Map;function U(t){var e=H(t);F.has(e)?F.get(e)!==t.gmailThreadId&&F.set(e,$):F.set(e,t.gmailThreadId)}function H(t){return t.subject.trim()+":"+t.timeString.trim()+":"+t.peopleHtml.trim()}var G=n(240),z=n.n(G),K=n(5440);function W(t){return null!=t}function Z(t){const e=JSON.parse(t);if(Array.isArray(e))return function(t){const e=t&&t[1];if(!e)throw new Error("Failed to process thread response");return e.map((t=>{if("string"!=typeof t[0]||!Array.isArray(t[2])||t[1]&&t[1][0]&&t[1][0][13]&&Array.isArray(t[1][1])){const e=t[1]&&t[1][0];if(!e)return null;let n;const r=Array.isArray(t[2])&&t[2];return n=r?r.map((t=>({syncMessageID:t[0],date:+t[1][16],recipients:X(t)}))):(t[1]&&t[1][1]).map((t=>({syncMessageId:t[0],date:+t[15]}))),{subject:e[1],snippet:e[2],syncThreadID:e[0],oldGmailThreadID:new(p())(e[13]).toString(16),rawResponse:t,extraMetaData:{syncMessageData:n,snippet:""}}}return{syncThreadID:t[0],oldGmailThreadID:t[1]&&t[1][0]&&t[1][0][15]||void 0,extraMetaData:{snippet:t[1]&&t[1][0]&&t[1][0][2]||void 0,syncMessageData:(t[2]||[]).filter((t=>Boolean(t[1]))).map((t=>({syncMessageID:t[0],date:+t[1][16],recipients:X(t)})))}}})).filter(W)}(e);const n=e&&e[2];if(!n)throw new Error("Failed to process thread response");return n.map((t=>{if("string"!=typeof t[1]||!Array.isArray(t[3])||t[2]&&t[2][1]&&t[2][1][14]&&Array.isArray(t[2][2])){const e=t[2]&&t[2][1];if(!e)return null;let n;const r=Array.isArray(t[3])&&t[3];return n=r?r.map((t=>({syncMessageID:t[1],date:+t[2][17],recipients:J(t)}))):(t[2]&&t[2][2]).map((t=>({syncMessageId:t[1],date:+t[16]}))),{subject:e[2],snippet:e[3],syncThreadID:e[1],oldGmailThreadID:new(p())(e[14]).toString(16),rawResponse:t,extraMetaData:{syncMessageData:n,snippet:""}}}return{syncThreadID:t[1],oldGmailThreadID:t[2]&&t[2][1]&&t[2][1][16]||void 0,extraMetaData:{snippet:t[2]&&t[2][1]&&t[2][1][3]||void 0,syncMessageData:(t[3]||[]).filter((t=>Boolean(t[2]))).map((t=>({syncMessageID:t[1],date:+t[2][17],recipients:J(t)})))}}})).filter(W)}function J(t){if(!t[2])return;const e=t[2][1]||[],n=t[2][2]||[],r=t[2][3]||[];return e.concat(n).concat(r).map((t=>({emailAddress:t[2],name:t[3]})))}function X(t){if(!t[1])return;const e=t[1][0]||[],n=t[1][1]||[],r=t[1][2]||[];return e.concat(n).concat(r).map((t=>({emailAddress:t[1],name:t[2]})))}var Q=n(1375);var Y=n(2147);const tt=new Map;function et(t,e,n){const{target:r,detail:{threadId:i,ikValue:o,btaiHeader:s,xsrfToken:a}}=t;(async()=>{const t=Array.from(r.parentElement.children).filter((t=>!t.classList.contains("inboxsdk__custom_message_view"))).indexOf(r);if(t<0)throw new Error("Should not happen");let u=nt(i,t);if(null==u||!u.recipients){try{await function(t,e,n,r){const i=it.get(t);if(i)return i;const o=(async()=>{try{if(z()(t,"thread")){if(!n||!r)throw new Error("Need btaiHeader and xsrfToken when in new data layer");const e=await async function(t,e,n){let r=null;try{const{text:i}=await(0,K.Z)({method:"POST",url:`https://mail.google.com/sync${(0,Q.Z)()}/i/fd`,headers:{"Content-Type":"application/json","X-Framework-Xsrf-Token":n,"X-Gmail-BTAI":e,"X-Google-BTD":"1"},data:JSON.stringify({1:[{1:t,2:1}]})});r=i}catch(i){const{text:o}=await(0,K.Z)({method:"POST",url:`https://mail.google.com/sync${(0,Q.Z)()}/i/fd?rt=r&pt=ji`,headers:{"Content-Type":"application/json","X-Framework-Xsrf-Token":n,"X-Gmail-BTAI":e,"X-Google-BTD":"1"},data:JSON.stringify([[[t,1]],2])});r=o}const i=Z(r);if(i.length>0){const t=i[0];if(t.oldGmailThreadID)return t}return null}(t,n,r);e&&rt([{threadID:e.syncThreadID,messages:e.extraMetaData.syncMessageData.map((t=>({date:t.date,recipients:t.recipients})))}])}else{const n=await(0,Y.Z)(e,t);rt((0,R.bd)(n))}}catch(t){y.error(t)}finally{it.delete(t)}})();return it.set(t,o),o}(i,o,s,a)}catch(t){y.error(t)}if(u=nt(i,t),null==u)throw new Error("Failed to find message date after re-requesting thread")}r.setAttribute(e,JSON.stringify(n(u)))})().catch((t=>{r.setAttribute(e,"error"),y.error(t)}))}function nt(t,e){const n=tt.get(t);if(n){const t=n[e];if(t)return t}}function rt(t){t.forEach((t=>{tt.set(t.threadID,t.messages)}))}const it=new Map;function ot(t){let e=[],n=0;const r=/"[^"]*"/g;for(;;){const i=r.exec(t);if(e=e.concat((i?t.substring(n,i.index):t.substring(n)).split(/ +/).filter(Boolean)),!i)break;n=i.index+i[0].length,e.push(i[0])}return e}function st(){let t,e;const n=new Promise(((n,r)=>{t=n,e=r}));return{resolve:t,reject:e,promise:n}}var at=n(9638),ut=n(9734),ct=n.n(ut);const lt=["^pfg"],ft=["^r","^r_bt"],ht=["SEND","DRAFT_SAVE"];function dt(t){const e=t[1]?.[0];if(!Array.isArray(e))return null;const n=e.map(mt).filter(W);return ct()(n,(t=>ht.indexOf(t.type)))[0]||null}function pt(t){return t.startsWith("thread-")?t.includes("|")?t.split("|")[0]:t:null}function _t(t){return t.startsWith("msg-")?t:null}function yt(t){return Array.isArray(t)?t.filter((t=>!!t[1])).map((t=>({emailAddress:t[1],name:t[2]??null}))):null}function vt(t){const e=[t[1]?.[2]?.[0]?.[4]?.[0],t[1]?.[1]?.[0],t[1]?.[13]?.[0]];for(const t of e){const e=gt(t);if(e)return{parsedMsg:e,originalMsg:t}}return null}function mt(t){if(!Array.isArray(t)||!Array.isArray(t[1]))return null;const e=t[1],n=pt(e[0]);if(!n)return null;const r=vt(e);if(!r)return null;const{parsedMsg:i,originalMsg:o}=r,{messageId:s,to:a,cc:u,bcc:c,subject:l,body:f,actions:h}=i;let d=wt(h);return d?("DRAFT_SAVE"!==d||o!==e[1]?.[2]?.[0]?.[4]?.[0]&&o!==e[1]?.[1]?.[0]||(d="FIRST_DRAFT_SAVE"),{threadId:n,messageId:s,to:a,cc:u,bcc:c,subject:l,body:f,actions:h,type:d}):null}function gt(t){if(!Array.isArray(t))return null;const e=_t(t[0]);if(!e)return null;const n=t[7];return{messageId:e,to:yt(t[2]),cc:yt(t[3]),bcc:yt(t[4]),subject:n,body:t[8][1][0][1],actions:t[10],rfcID:t[13],oldMessageId:t[55]}}function bt(t,e){if(!Array.isArray(t))return null;t[8][1][0][1]=e}function xt(t){if(!Array.isArray(t)||!Array.isArray(t[0]))return null;const e=t[0],n=pt(e[0]);if(!n)return null;const r=e[2]?.[6]?.[0];return Array.isArray(r)?{threadId:n,oldThreadId:r[19],parsedMessages:Array.isArray(r[4])?r[4].map((t=>Array.isArray(t)?function(t){if(!Array.isArray(t))return null;const e=_t(t[0]);if(!e)return null;const n=t[10];return{messageId:e,to:yt(t[2]),cc:yt(t[3]),bcc:yt(t[4]),actions:n,rfcID:t[13],oldMessageId:t[55]}}(t):null)).filter(W):[]}:null}function wt(t){return l()(t,ft).length===ft.length?"DRAFT_SAVE":l()(t,lt).length===lt.length?"SEND":null}function Et(t,e){const n=t[9]&&t[9][2]&&t[9][2][0]&&t[9][2][0][2];return null==n?null:{body:n,type:e,to:At(t[3]),cc:At(t[4]),bcc:At(t[5]),draftID:t[1].replace("msg-a:",""),subject:t[8]}}function At(t){return Array.isArray(t)?t.map((t=>({emailAddress:t[2],name:t[3]||null}))):null}function St(t){const e=JSON.parse(t);try{if(Array.isArray(e)){const t=function(t){return dt(t)}(e);return t?{type:t.type,to:t.to,cc:t.cc,bcc:t.bcc,draftID:t.messageId.replace("msg-a:",""),subject:t.subject,body:t.body}:null}}catch(t){y.eventSdkPassive("connection.requestResponseParsingFailed",{requestParseError:t})}return function(t){const e=t[2]&&t[2][1];if(!e)return null;const n=e.filter((t=>{const e=t[2]&&t[2][2]&&(t[2][2][14]||t[2][2][2]);return e&&e[1]&&e[1][1]&&e[1][1].indexOf("msg-a:")>-1}));if(n.length){const t=n.find((t=>{const e=t[2]&&t[2][2]&&(t[2][2][14]||t[2][2][2]);return e[1][11]&&l()(e[1][11],lt).length===lt.length}));if(t)return Et((t[2]&&t[2][2]&&(t[2][2][14]||t[2][2][2]))[1],"SEND");{const t=n[0];return Et((t[2]&&t[2][2]&&(t[2][2][14]||t[2][2][2]))[1],"DRAFT_SAVE")}}{const t=e.map((t=>t[2]&&t[2][2]&&t[2][2][3]&&t[2][2][3][1]&&t[2][2][3][1][5]&&t[2][2][3][1][5][0])).filter(Boolean);return 0===t.length?null:Et(t[0],"FIRST_DRAFT_SAVE")}}(e)}function Ot(t,e){const n=JSON.parse(t);try{if(Array.isArray(n)){const r=function(t,e){return function(t,e){const n=dt(t);if(!n)return null;const r=n.messageId,i=t[1]?.[0];if(!Array.isArray(i))return null;for(const n of i){if(!Array.isArray(n)||!Array.isArray(n[1]))return null;const i=n[1];if(!pt(i[0]))return null;const o=vt(i);if(o?.parsedMsg.messageId===r&&"SEND"===wt(o.parsedMsg.actions))return bt(o.originalMsg,e),t}return null}(t,e)}(n,e);return r?JSON.stringify(r):t}}catch(t){y.eventSdkPassive("connection.requestResponseParsingFailed",{replaceBodyFailed:t})}return function(t,e){if(!e)return t;const n=JSON.parse(t),r=n[2]&&n[2][1];if(!r)return t;const i=r.filter((t=>{const e=t[2]&&t[2][2]&&(t[2][2][14]||t[2][2][2]);return e&&e[1]&&e[1][1]&&e[1][1].indexOf("msg-a:")>-1}));if(!i.length)return t;const o=i.find((t=>{const e=t[2]&&t[2][2]&&(t[2][2][14]||t[2][2][2]);return e[1][11]&&l()(e[1][11],lt).length===lt.length}));return o?((o[2]&&o[2][2]&&(o[2][2][14]||o[2][2][2]))[1][9][2][0][2]=e,JSON.stringify(n)):t}(t,e)}function Tt(t,e){"XMLHttpRequest event listener error"!==e?y.error(t,e):setTimeout((function(){throw t}),1)}function jt(){let t=null;const e=top.document.getElementById("js_frame");e?t=e.contentDocument.defaultView:y.eventSdkPassive("noJSFrameElementFound"),function(t,e){const n=[],r=[];{const e=t.XMLHttpRequest;t.XMLHttpRequest=M(e,n,{logError:Tt})}if(e){const t=e.XMLHttpRequest;e.XMLHttpRequest=M(t,r,{logError:Tt})}(function(){try{!function(){const t=u()(document.querySelectorAll("script:not([src])"),(t=>t.text&&t.text.slice(0,500).indexOf("var VIEW_DATA=[[")>-1));if(t){const e=t.text.indexOf("["),n=t.text.lastIndexOf("]"),r=t.text.slice(e,n+1);B(R.Ae([R.GE(r)]))}}()}catch(t){y.error(t,"Failed to process preloaded thread identifiers")}document.addEventListener("inboxSDKtellMeThisThreadIdByDatabase",(function(t){try{const e=function(t){const e=H(P(t)),n=F.get(e);if("string"==typeof n)return n}(t.target);e&&t.target.setAttribute("data-inboxsdk-threadid",e)}catch(t){y.error(t,"Error in inboxSDKtellMeThisThreadIdByDatabase")}})),document.addEventListener("inboxSDKtellMeThisThreadIdByClick",(function(t){try{const e=function(t){P(t);const e=function(t,e){let n=t.parentElement;for(;n;){if(e(n))return n;n=n.parentElement}return null}(t,(t=>"DIV"===t.nodeName&&"main"===t.getAttribute("role")));if(!e)throw new Error("Can't operate on disconnected thread row");const n=e.querySelector("td.PE")||e.querySelector("tr"),r=V(t),i=r&&function(t){var e=(0,L.parse)(t).th;if(!e){var n=t.match(/#(.*)/);n&&(t=decodeURIComponent(decodeURIComponent(n[1])),e=(0,L.parse)(t).th)}return e.replace("#","")}(r);return n&&V(n),i}(t.target);e&&t.target.setAttribute("data-inboxsdk-threadid",e)}catch(t){y.error(t,"Error in inboxSDKtellMeThisThreadIdByClick")}}))})(),document.addEventListener("inboxSDKtellMeThisMessageDate",(function(t){et(t,"data-inboxsdk-sortdate",(t=>t.date))})),document.addEventListener("inboxSDKtellMeThisMessageRecipients",(function(t){et(t,"data-inboxsdk-recipients",(t=>t.recipients?t.recipients:null))}));{const t={};_.ZP.fromEvents(document,"inboxSDKregisterComposeRequestModifier").onValue((e=>{let{detail:n}=e;const r=n.composeid||n.draftID;t[r]||(t[r]=[]),t[r].push(n.modifierId)})),_.ZP.fromEvents(document,"inboxSDKunregisterComposeRequestModifier").onValue((e=>{let{detail:n}=e;const{keyId:r,modifierId:i}=n;t[r]=t[r].filter((t=>t!==i)),0===t[r].length&&delete t[r]})),r.push({isRelevantTo:function(t){return"sm"===t.params.act},originalSendBodyLogger:function(t,e){Dt({type:"emailSending",body:e})},requestChanger:async function(e,n){let r=L.parse(n.body);const i=r.composeid,o=t[r.composeid];if(!o||0===o.length)return n;for(let t=0;t<o.length;t++){const e=o[t],n=_.ZP.fromEvents(document,"inboxSDKcomposeRequestModified").filter((t=>{let{detail:n}=t;return n.composeid===i&&n.modifierId===e})).take(1).map((t=>{let{detail:e}=t;return e.composeParams})).toPromise();Dt({type:"inboxSDKmodifyComposeRequest",composeid:i,modifierId:e,composeParams:{body:r.body,isPlainText:"1"!==r.ishtml}});const s=await n;r=Object.assign({},r,s)}return Object.assign({},n,{body:It(r)})},afterListeners:function(e){if(200===e.status&&(Dt({type:"emailSent",responseText:e.originalResponseText,originalSendBody:e.originalSendBody}),e.originalSendBody)){const n=L.parse(e.originalSendBody);delete t[n.composeid]}}}),r.push({isRelevantTo:function(t){return"sd"===t.params.act},originalSendBodyLogger:function(t,e){Dt({type:"emailDraftSaveSending",body:e})},afterListeners:function(t){200===t.status&&Dt({type:"emailDraftReceived",responseText:t.originalResponseText,originalSendBody:t.originalSendBody,connectionDetails:{method:t.method,url:t.url,params:t.params,responseType:t.responseType}})}});{const e=new WeakMap,r=new WeakMap,i=new WeakMap;n.push({isRelevantTo:t=>/sync(?:\/u\/\d+)?\/i\/s/.test(t.url),originalSendBodyLogger(t){if(t.originalSendBody){const n=St(t.originalSendBody);if(!n)return;const{draftID:o}=n;switch(n.type){case"FIRST_DRAFT_SAVE":i.set(t,o);break;case"DRAFT_SAVE":r.set(t,o);break;case"SEND":e.set(t,o),Dt({type:"emailSending",draftID:o})}}},requestChanger:async function(e,n){const r=St(n.body);if(!r||"SEND"!==r.type)return n;const{draftID:i,body:o,type:s}=r,a=t[i];if(!a||0===a.length)return n;let u=r.body;for(let t=0;t<a.length;t++){const e=a[t],n=_.ZP.fromEvents(document,"inboxSDKcomposeRequestModified").filter((t=>{let{detail:n}=t;return n.draftID===i&&n.modifierId===e})).take(1).map((t=>{let{detail:e}=t;return e.composeParams})).toPromise();Dt({type:"inboxSDKmodifyComposeRequest",draftID:i,modifierId:e,composeParams:{body:u,isPlainText:!1}}),u=(await n).body}return Object.assign({},n,{body:Ot(n.body,u)})},afterListeners(t){if(e.has(t)||r.has(t)||i.has(t)){const n=()=>{Dt({type:"emailSendFailed",draftID:o}),e.delete(t)},o=e.get(t)||r.get(t)||i.get(t);if(200!==t.status||!t.originalResponseText)return void n();try{const n=function(t){const e=JSON.parse(t);return Array.isArray(e)?function(t){return function(t){const e=t[1]?.[5];return Array.isArray(e)?e.map(xt).filter(W).flatMap((t=>{const{threadId:e,oldThreadId:n,parsedMessages:r}=t;return r.map((t=>{const{messageId:r,to:i,cc:o,bcc:s,actions:a,rfcID:u,oldMessageId:c}=t,l=wt(a);return l?{threadId:e,messageId:r,to:i,cc:o,bcc:s,actions:a,rfcID:u,oldMessageId:c,oldThreadId:n,type:l}:null}))})).filter(W):[]}(t)}(e):[]}(t.originalResponseText);for(const s of n)if(!o||s.messageId.endsWith(o)){if("FIRST_DRAFT_SAVE"===s.type||"DRAFT_SAVE"===s.type)return Dt({draftID:o,type:"emailDraftReceived",rfcID:s.rfcID,threadID:s.threadId,messageID:s.messageId,oldMessageID:s.oldMessageId,oldThreadID:s.oldThreadId}),e.delete(t),r.delete(t),void i.delete(t);if("SEND"===s.type)return Dt({draftID:o,type:"emailSent",rfcID:s.rfcID,threadID:s.threadId,messageID:s.messageId,oldMessageID:s.oldMessageId,oldThreadID:s.oldThreadId}),e.delete(t),r.delete(t),void i.delete(t)}}catch(t){y.eventSdkPassive("connection.requestResponseParsingFailed",{responseParseError:t})}const s=JSON.parse(t.originalResponseText);if(i.has(t)){const t=s[2]&&s[2][6]&&s[2][6][0]&&s[2][6][0][1];if(t){const e=t[3]&&t[3][7]&&t[3][7][1],n=e&&e[5]&&e[5][0];e&&n?Dt({draftID:o,type:"emailDraftReceived",rfcID:n[14],threadID:e[4].split("|")[0],messageID:n[1],oldMessageID:n[56],oldThreadID:e[20]}):y.error(new Error("Could not parse draft save"))}else{y.eventSdkPassive("old compose draft id handling hit");const t=s[2]&&s[2][6]&&s[2][6][1]&&s[2][6][1][1];if(t){const e=t[3]&&t[3][1]&&t[3][1][1];e&&Dt({draftID:o,type:"emailDraftReceived",rfcID:e[14],messageID:e[1],oldMessageID:e[48]?new(p())(e[48]).toString(16):e[56],syncThreadID:t[1]})}}}else{const r=s[2]?.[6];if(!r)return void n();const i=r.find((t=>t[1]?.[3]?.[7]?.[1]?.[5]?.[0]?.[14]&&t[1][3][7][1][5].find((t=>h()(t[1],o)))));if(!i){if(e.has(t)){const t=r.filter((t=>t[1]?.[3]?.[5]?.[3]));if(t.length>0){const e=t[0][1][1]?t[0][1][1].replace(/\|.*$/,""):void 0;Dt({draftID:o,type:"emailSent",threadID:e,messageID:t[0][1][3]?.[5]?.[5]?.[0]||t[0][1][3][5][3]?.[0]})}else n()}else n();return}const a=i[1]?.[3]?.[7]?.[1],u=a[5].find((t=>t[1].includes(o)));if(!u)return void n();const c=e.has(t);Array.isArray(u[11])?c&&u[11].indexOf("^r")>=0&&y.error(new Error('sendUpdate[11] unexpectedly contained "^r"')):y.error(new Error("sendUpdate[11] was not an array")),c&&void 0!==u[22]&&3!==u[22]&&y.error(new Error("sendUpdate[22] was not expected value"),{value:u[22]});const l=a[4]?a[4].replace(/\|.*$/,""):void 0;Dt({draftID:o,type:c?"emailSent":"emailDraftReceived",rfcID:u[14],messageID:u[1],oldMessageID:u[48]?new(p())(u[48]).toString(16):u[56],threadID:l,oldThreadID:null!=a[18]?new(p())(a[18]).toString(16):a[20]})}e.delete(t),r.delete(t),i.delete(t)}}})}}r.push({isRelevantTo:t=>!!t.params.search&&"tl"===t.params.view,responseTextChanger:async(t,e)=>e,originalResponseTextLogger(t){if(200===t.status){t.params.search;e=t.originalResponseText,B(R.MA(e))}var e}}),r.push({isRelevantTo:t=>"cv"===t.params.view,originalResponseTextLogger(t){200===t.status&&rt(R.bd(t.originalResponseText))}}),n.push({isRelevantTo:function(t){return/sync(?:\/u\/\d+)?\/i\/bv/.test(t.url)},originalResponseTextLogger(t){200===t.status&&rt(function(t){const e=JSON.parse(t);if(Array.isArray(e))try{return function(t){const e=t&&t[2];return e?e.map(((e,n)=>{const r=e[0];return r?{subject:r[0],snippet:r[1],syncThreadID:r[3],oldGmailThreadID:null!=r[17]?new(p())(r[17]).toString(16):r[19],rawResponse:e,extraMetaData:{snippet:t[14]&&t[14][0]&&t[14][0][n]||"",syncMessageData:r[4].map((t=>({syncMessageID:t[0],oldMessageID:t[55],date:+t[6]})))}}:null})).filter(W):[]}(e)}catch(t){return[]}const n=e&&e[3];return n?n.map(((t,n)=>{const r=t[1];return r?{subject:r[1],snippet:r[2],syncThreadID:r[4],oldGmailThreadID:null!=r[18]?new(p())(r[18]).toString(16):r[20],rawResponse:t,extraMetaData:{snippet:e[15]&&e[15][1]&&e[15][1][n]||"",syncMessageData:r[5].map((t=>({syncMessageID:t[1],oldMessageID:t[56],date:+t[7]})))}}:null})).filter(W):[]}(t.originalResponseText).map((t=>({threadID:t.syncThreadID,messages:t.extraMetaData.syncMessageData.map((t=>({date:t.date,recipients:t.recipients})))}))))}}),n.push({isRelevantTo:function(t){return/sync(?:\/u\/\d+)?\/i\/fd/.test(t.url)},originalResponseTextLogger(t){200===t.status&&rt(Z(t.originalResponseText).map((t=>({threadID:t.syncThreadID,messages:t.extraMetaData.syncMessageData.map((t=>({date:t.date,recipients:t.recipients})))}))))}});{const t=Object.create(null);let e,r,i;document.addEventListener("inboxSDKregisterSuggestionsModifier",(function(e){let{detail:n}=e;t[n.providerID]={position:Object.keys(t).length}})),document.addEventListener("inboxSDKprovideSuggestions",(function(n){let{detail:o}=n;if(o.query===e){const n=t[o.providerID];if(!n)throw new Error("provider does not exist for providerID");if(null==r)throw new Error("tried to modified a null suggestionModifications");if(r[n.position]=o.suggestions,r.filter(Boolean).length===Object.keys(t).length){if(null==i)throw new Error("tried to resolve a null currentQueryDefer");i.resolve(s()(r)),i=e=r=null}}})),n.push({isRelevantTo:e=>Object.keys(t).length>0&&!!e.url.match(/^\/cloudsearch\/request\?/)&&"gmail"==e.params.client&&"gmail"==e.params.gs_ri,originalSendBodyLogger(t,n){const o=L.parse(n);if(!o.request)return;const s=JSON.parse(o.request)[2];s&&(e=s,i&&i.resolve(),i=t._defer=st(),r=[],Dt({type:"suggestionsRequest",query:e}))},async responseTextChanger(t,e){if(t._defer&&200===t.status){const n=await t._defer.promise;if(n)return(0,at.Z)(e,n)}return e}})}{const t=[];let e;document.addEventListener("inboxSDKcreateCustomSearchTerm",(function(e){t.push(e.detail.term)})),document.addEventListener("inboxSDKsearchReplacementReady",(function(t){e.query===t.detail.query&&e.newQuery.resolve(t.detail.newQuery)})),r.push({isRelevantTo:function(n){let r;const i=n.params;return!!("POST"===n.method&&i.search&&"tl"===i.view&&n.url.match(/^\?/)&&i.q&&(r=l()(t,ot(i.q))[0]))&&(e&&e.query===i.q&&e.start!=i.start?(n._queryReplacement=e,e.start=i.start):(e&&e.newQuery.resolve(e.query),e=n._queryReplacement={term:r,query:i.q,start:i.start,newQuery:st()},Dt({type:"searchQueryForReplacement",term:r,query:i.q})),!0)},requestChanger:function(t,e){return t._queryReplacement.newQuery.promise.then((function(n){const r=i()(t.params);return r.q=n,{method:e.method,url:"?"+(0,L.stringify)(r),body:e.body}}))}}),n.push({isRelevantTo:function(t){return"POST"===t.method&&/sync(?:\/u\/\d+)?\/i\/bv/.test(t.url)},requestChanger:function(n,r){let i;const o=JSON.parse(r.body);let s,a,u,c=!1;return Array.isArray(o)?(c=!0,s=o[0],a=s[3],u=s[9]):(s=o[1],a=s[4],u=s[10]),79===s[c?0:1]&&"string"==typeof a&&(i=l()(t,ot(a))[0])?(e&&e.query===a&&e.start!=u?(n._queryReplacement=e,e.start=u):(e&&e.newQuery.resolve(e.query),e=n._queryReplacement={term:i,query:a,start:u,newQuery:st()},Dt({type:"searchQueryForReplacement",term:i,query:a})),n._queryReplacement.newQuery.promise.then((function(t){return c?o[0][3]=t:o[1][4]=t,{method:r.method,url:r.url,body:JSON.stringify(o)}}))):Promise.resolve(r)}})}{const t=[];let e;document.addEventListener("inboxSDKcustomListRegisterQuery",(e=>{t.push(e.detail.query)})),document.addEventListener("inboxSDKcustomListNewQuery",(t=>{if(e.query===t.detail.query&&e.start===t.detail.start){const{newQuery:n,newStart:r}=t.detail;e.newRequestParams.resolve({query:n,start:r})}})),document.addEventListener("inboxSDKcustomListResults",(t=>{e.query===t.detail.query&&e.newResults.resolve(t.detail.newResults)})),r.push({isRelevantTo:function(n){let r;const i=n.params;return!!("POST"===n.method&&i.search&&"tl"===i.view&&n.url.match(/^\?/)&&i.q&&!i.act&&(r=u()(t,(t=>t===i.q))))&&(e&&(e.newRequestParams.resolve({query:e.query,start:e.start}),e.newResults.resolve(null)),e=n._customListJob={query:i.q,start:+i.start,newRequestParams:st(),newResults:st()},Dt({type:"searchForReplacement",query:e.query,start:e.start}),!0)},requestChanger:function(t,e){return t._customListJob.newRequestParams.promise.then((n=>{let{query:r,start:o}=n;const s=i()(t.params);return s.q=r,s.start=o,{method:e.method,url:"?"+(0,L.stringify)(s),body:e.body}}))},responseTextChanger:function(t,e){return Dt({type:"searchResultsResponse",query:t._customListJob.query,start:t._customListJob.start,response:e}),t._customListJob.newResults.promise.then((t=>null===t?e:t))}}),n.push({isRelevantTo:function(t){return!!/sync(?:\/u\/\d+)?\/i\/bv/.test(t.url)&&(e&&(e.newRequestParams.resolve({query:e.query,start:e.start}),e.newResults.resolve(null)),!0)},requestChanger:async function(n,r){if(r.body){const i=JSON.parse(r.body),o=Array.isArray(i),s=(o?i&&i[0]&&i[0][3]:i&&i[1]&&i[1][4])||"";if(u()(t,(t=>t===s)))return e=n._customListJob={query:s,start:o?i[0][9]:i[1][10],newRequestParams:st(),newResults:st()},Dt({type:"searchForReplacement",query:e.query,start:e.start}),n._customListJob.newRequestParams.promise.then((t=>{let{query:e,start:n}=t;return o?(i[0][3]=e,i[0][9]=n):(i[1][4]=e,i[1][10]=n),{method:r.method,url:r.url,body:JSON.stringify(i)}}))}return r},responseTextChanger:async function(t,e){return t._customListJob?(Dt({type:"searchResultsResponse",query:t._customListJob.query,start:t._customListJob.start,response:e}),t._customListJob.newResults.promise.then((t=>null===t?e:t))):e}})}{const t=t=>{document.head.setAttribute("data-inboxsdk-btai-header",t),Dt({type:"btaiHeaderReceived"})};n.push({isRelevantTo:t=>/sync(?:\/u\/\d+)?\//.test(t.url)&&!document.head.hasAttribute("data-inboxsdk-btai-header"),originalSendBodyLogger(e){e.headers["X-Gmail-BTAI"]&&t(e.headers["X-Gmail-BTAI"])}});const e=t=>{document.head.setAttribute("data-inboxsdk-xsrf-token",t),Dt({type:"xsrfTokenHeaderReceived"})};n.push({isRelevantTo:t=>/sync(?:\/u\/\d+)?\//.test(t.url)&&!document.head.hasAttribute("data-inboxsdk-xsrf-token"),originalSendBodyLogger(t){t.headers["X-Framework-Xsrf-Token"]&&e(t.headers["X-Framework-Xsrf-Token"])}})}}(window,t)}function Dt(t){document.dispatchEvent(new CustomEvent("inboxSDKajaxIntercept",{bubbles:!0,cancelable:!1,detail:t}))}function It(t){const e=i()(t),n=`=${Lt(e.to,"to")}&=${Lt(e.cc,"cc")}&=${Lt(e.bcc,"bcc")}`;return delete e.to,delete e.bcc,delete e.cc,n+"&"+L.stringify(e)}function Lt(t,e){let n="";if(Array.isArray(t))for(let r=0;r<t.length;r++)n+=`&${e}=${encodeURIComponent(t[r])}`;else n+=`&${e}=${encodeURIComponent(t)}`;return n}},7851:(t,e,n)=>{"use strict";function r(){const t=new Promise((t=>{!function e(){window.gmonkey?window.gmonkey.load("2.0",t):setTimeout(e,500)}()}));document.addEventListener("inboxSDKtellMeIsConversationViewDisabled",(function(){t.then((t=>{const e=t.isConversationViewDisabled(),n=document.createEvent("CustomEvent");n.initCustomEvent("inboxSDKgmonkeyResponse",!1,!1,e),document.dispatchEvent(n)}))})),document.addEventListener("inboxSDKtellMeCurrentThreadId",(function(t){let e;if(t.detail.isPreviewedThread){const t=Array.from(document.querySelectorAll("[gh=tl] tr.aps"));if(t.length>0){const n=t.map((t=>t.querySelector("[data-thread-id]"))).filter(Boolean)[0];e=n?n.getAttribute("data-thread-id"):t[0].getAttribute("data-inboxsdk-threadid")}}else e=window.gmonkey?.v2?.getCurrentThread?.()?.getThreadId();e&&(e=e.replace("#",""),t.target.setAttribute("data-inboxsdk-currentthreadid",e))}))}n.d(e,{Z:()=>r})},3721:(t,e,n)=>{"use strict";function r(t,e){t||(t=new Error("No error given")),console.error("Error in injected script",t,e);try{JSON.stringify(e)}catch(t){e="<failed to jsonify>"}const n={};for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))try{const r=t[e];JSON.stringify(r),n[e]=r}catch(t){}Object.keys(n).length>0&&(e={errorProperties:n,details:e}),document.dispatchEvent(new CustomEvent("inboxSDKinjectedError",{bubbles:!1,cancelable:!1,detail:{message:t&&t.message,stack:t&&t.stack,details:e}}))}function i(t,e,n){try{JSON.stringify(e)}catch(t){e="<failed to jsonify>"}document.dispatchEvent(new CustomEvent("inboxSDKinjectedEventSdkPassive",{bubbles:!1,cancelable:!1,detail:{name:t,details:e,sensitive:n}}))}n.r(e),n.d(e,{error:()=>r,eventSdkPassive:()=>i})},8339:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var r=n(3311),i=n.n(r),o=n(3721);function s(t,e){var n=i()(t,(t=>t[0]===e));return!!n&&function(t){switch(""+t){case"1":case"t":case"true":return!0;default:return!1}}(n[1])}function a(){let t;(function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:12e4,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:250;const r=new Error("waitFor timeout");return new Promise((function(i,o){let s=0;setTimeout((function a(){try{const u=t();u?i(u):s>=e?o(r):(s+=n,setTimeout(a,n))}catch(t){o(t)}}),1)}))})((()=>(t=function(){let t=n.g;try{if(t.GLOBALS)return t;n.g.opener&&n.g.opener.top&&(n.g.opener.top.location.href,t=n.g.opener.top)}catch(e){t=n.g}return t}(),t&&(t.GLOBALS||t.gbar)))).then((()=>{if(t){var e=t.GLOBALS?t.GLOBALS[10]:t.gbar._CONFIG[0][10][5];document.head.setAttribute("data-inboxsdk-user-email-address",e);var n=t.GLOBALS?t.GLOBALS[4].split(".")[1]:t.gbar._CONFIG[0][0][4];if(document.head.setAttribute("data-inboxsdk-user-language",n),document.head.setAttribute("data-inboxsdk-using-sync-api",t.GM_SPT_ENABLED),t.GLOBALS){document.head.setAttribute("data-inboxsdk-ik-value",t.GLOBALS[9]),document.head.setAttribute("data-inboxsdk-action-token-value",t.GM_ACTION_TOKEN);var r=i()(t.GLOBALS[17],(t=>"p"===t[0]));if(!r)return;var a=r[1],u=s(a,"bx_lab_1252"),c=s(a,"bx_spa"),l=s(a,"bx_spo"),f=u&&c?l?"vertical":"horizontal":"none";document.head.setAttribute("data-inboxsdk-user-preview-pane-mode",f)}else{const t="window.BT_EmbeddedAppData=[",e=i()(document.querySelectorAll("script:not([src])"),(e=>e.text&&e.text.slice(0,500).indexOf(t)>-1));if(e){const{text:n}=e,r=n.indexOf("window.BT_EmbeddedAppData=[");let i=n.indexOf("]\n;",r);-1===i&&(i=n.indexOf("];",r));const s=JSON.parse(n.slice(r+t.length-1,i+1)),a=s[11];"string"!=typeof a?o.error(new Error("Could not find valid ikValue")):document.head.setAttribute("data-inboxsdk-ik-value",a);const u=s[12];"string"!=typeof u?o.error(new Error("Could not find valid xsrfToken")):document.head.setAttribute("data-inboxsdk-xsrf-token",u)}else o.error(new Error("Could not read preloaded BT_EmbeddedAppData"))}}})).catch((e=>{function n(){return{hasGLOBALS:!!t.GLOBALS,hasGbar:!!t.gbar}}var r=n(),i=18e4;throw setTimeout((()=>{var t=n();o.eventSdkPassive("waitfor global data",{startStatus:r,waitTime:i,laterStatus:t})}),i),e})).catch(o.error)}},3386:(t,e,n)=>{"use strict";function r(){var t=[];document.addEventListener("inboxSDKsilencePageErrors",(function(e){t.push(window.onerror),window.onerror=function(){return!0}})),document.addEventListener("inboxSDKunsilencePageErrors",(function(e){window.onerror=t.pop()}))}n.d(e,{Z:()=>r})},5740:(t,e,n)=>{"use strict";function r(){document.addEventListener("inboxsdk_event_relay",(function(t){const e=document.createEvent("Events");if(e.initEvent(t.detail.type,t.detail.bubbles,t.detail.cancelable),Object.assign(e,t.detail.props),t.detail.dataTransfer){const{files:n,fileNames:r}=t.detail.dataTransfer;r&&r.forEach(((t,e)=>{const r=n[e];"string"!=typeof r.name&&(r.name=t)})),e.dataTransfer={dropEffect:"none",effectAllowed:"all",files:n,items:n.map(((t,e)=>{let{type:r}=t;return{kind:"file",type:r,getAsFile:()=>n[e],getAsString(){throw new Error("getAsString not supported")}}})),types:["Files"],getData:()=>"",setData(){},setDragImage(){}}}t.target.dispatchEvent(e)}))}n.d(e,{Z:()=>r})},2165:(t,e,n)=>{"use strict";n.d(e,{Z:()=>d});var r=n(1010),i=n(4721),o=n.n(i),s=n(4681),a=n.n(s),u=n(3721);function c(t){return{value:t,configurable:!0}}t=n.hmd(t);const l=["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","PageUp","PageDown","Home","End","Enter"],f=["Left","Right","Up","Down"],h=(0,r.Kg)(t,(function(t){try{(function(t){if(!document.body.classList.contains("inboxsdk__custom_view_active"))return!1;const e=t.target,n=t.key||String.fromCharCode(t.which||t.keyCode);return!("Escape"!==t.key||!a()(e,".inboxsdk__custom_view"))||!!(o()(l,n)||o()(f,t.keyIdentifier)||o()("!#[]{}_+=-;:\r\n1234567890`~",n)||!t.shiftKey&&!t.ctrlKey&&!t.metaKey&&!t.altKey&&o()(",xsyemrafz.ujkpnl",n)||t.shiftKey&&!t.ctrlKey&&!t.metaKey&&!t.altKey&&o()("parfniut",n.toLowerCase()))&&!(a()(e,"input, textarea, button, [contenteditable]")||!a()(e,".inboxsdk__custom_view")&&a()(e,"[role=button], [role=link]"))})(t)&&Object.defineProperties(t,{altKey:c(!1),ctrlKey:c(!1),shiftKey:c(!1),metaKey:c(!1),charCode:c(92),code:c("Backslash"),key:c("\\"),keyCode:c(92),which:c(92)})}catch(t){u.error(t)}}));function d(){document.addEventListener("keydown",h,!0)}},1623:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var r=n(4681),i=n.n(r);function o(){const t=new Set;document.addEventListener("inboxSDKregisterAllowedHashLinkStartTerm",(function(e){const n=e.detail.term;t.add(n)})),document.addEventListener("click",(function(e){const n=e.target;if(!(n instanceof HTMLElement))return;const r=i()(n,'a[href^="#"]');if(!(r&&r instanceof HTMLAnchorElement))return;const o=/^#([^/]+)/.exec(r.getAttribute("href")||"");if(!o)return;const s=o[1];t.has(s)&&(e.preventDefault=()=>{})}),!0)}},244:(t,e,n)=>{"use strict";function r(){const t=history.pushState;history.pushState=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];const i=t.apply(this,n);return document.dispatchEvent(new CustomEvent("inboxSDKpushState",{bubbles:!1,cancelable:!1,detail:{args:n}})),i}}n.d(e,{Z:()=>r})},5309:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});var r=n(7709);function i(){document.addEventListener("inboxSDKpageAjax",(function(t){const e=t.detail.id,i={url:t.detail.url,method:t.detail.method,headers:t.detail.headers,xhrFields:t.detail.xhrFields,data:t.detail.data};n.g.fetch?(async()=>{const t=await fetch(i.url,{method:i.method||"GET",credentials:"include"});document.dispatchEvent(new CustomEvent("inboxSDKpageAjaxDone",{bubbles:!1,cancelable:!1,detail:{id:e,error:!1,text:await t.text(),responseURL:t.url}}))})().catch((t=>{document.dispatchEvent(new CustomEvent("inboxSDKpageAjaxDone",{bubbles:!1,cancelable:!1,detail:{id:e,error:!0,message:t&&t.message,stack:t&&t.stack,status:t&&t.xhr&&t.xhr.status}}))})):(0,r.Z)(i).then((t=>{let{text:n,xhr:r}=t;document.dispatchEvent(new CustomEvent("inboxSDKpageAjaxDone",{bubbles:!1,cancelable:!1,detail:{id:e,error:!1,text:n,responseURL:r.responseURL}}))}),(t=>{document.dispatchEvent(new CustomEvent("inboxSDKpageAjaxDone",{bubbles:!1,cancelable:!1,detail:{id:e,error:!0,message:t&&t.message,stack:t&&t.stack,status:t&&t.xhr&&t.xhr.status}}))}))}))}},8153:(t,e,n)=>{"use strict";n.d(e,{Ae:()=>_,E3:()=>y,GE:()=>f,MA:()=>p,bd:()=>b,qC:()=>h,vB:()=>l}),n(5564),n(928);var r=n(1095),i=n.n(r),o=n(8583),s=n.n(o),a=n(2780);function u(t,e){for(let n=e,r=t.length;n<r;n++)if('"'===t[n]||"'"===t[n])return n;return-1}function c(t,e,n){for(let r=e,i=t.length;r<i;r++)if("\\"===t[r])r++;else if(t[r]===n)return r;return-1}function l(t){const e={includeLengths:!1,suggestionMode:/^5\n/.test(t),noArrayNewLines:!/^[,\]]/m.test(t),includeExplicitNulls:!0},n=[];let r;if(e.suggestionMode){if(r=t.indexOf("'\n"),-1===r)throw new Error("Message was missing beginning header");r+=2}else{if(r=t.indexOf("\n\n"),-1===r)throw new Error("Message was missing beginning newlines");r+=2}for(;r<t.length;){let i=t.indexOf("\n",r+1);-1===i?i=t.length:"\r"===t[i-1]&&(i+=1);const o=t.slice(r,i);let s;if(/^\d+\s*$/.test(o)){e.includeLengths=!0;const n=+o;s=t.slice(i,i+n),r=i+n}else s=t.slice(r),r=t.length;n.push(f(s))}return{value:n,options:e}}function f(t){t=function(t,e){const n=[];let r,i=0,o=!1;for(;-1!==(r=c(t,i,'"'));)o?n.push(t.slice(i,r+1)):n.push(e(t.slice(i,r+1))),i=r+1,o=!o;if(o)throw new Error("string ended inside quoted section");return n.push(e(t.slice(i))),n.join("")}(t=function(t){let e=0;const n=[];for(;;){const r=u(t,e);if(r<0){n.push(t.substr(e));break}if(n.push(t.substr(e,r-e)),n.push('"'),e=r+1,'"'===t[r]){const r=c(t,e,'"');if(r<0)throw new Error("Unclosed double quote");n.push(t.slice(e,r+1)),e=r+1}else{const r=c(t,e,"'");if(r<0)throw new Error("Unclosed single quote");const i=t.slice(e,r).replace(/"/g,'\\"').replace(/\\'/g,"'");n.push(i),n.push('"'),e=r+1}}return n.join("")}(t=t.replace(/[\r\n\t]/g,"")),(t=>t.replace(/,\s*(?=,|\])/g,",null").replace(/\[\s*(?=,)/g,"[null")));try{return JSON.parse(t,((t,e)=>null==e?void 0:e))}catch(t){throw new Error("deserialization error")}}function h(t,e){return e.suggestionMode?(s()(e.includeLengths),function(t,e){let n="5\n)]}'\n";for(let r=0;r<t.length;r++){const i=d(t[r],!1,e);n+=i.length+"\r\n"+i}return n}(t,e.includeExplicitNulls)):function(t,e){const{includeLengths:n,noArrayNewLines:r,includeExplicitNulls:i}=e;let o=")]}'\n"+(r&&n?"":"\n");for(let e=0;e<t.length;e++){const s=d(t[e],r,i);o+=n?(r?"\n":"")+(s.length+(r?2:1))+"\n"+s:s}if(!n)if(r)o=o.replace(/"([0-9a-f]{8,16})"\]$/,"'$1']");else{const t=o.split(/\r|\n/),e=t.slice(0,-3),n=t.slice(-3);o=e.join("\n"),o+="\n"+n[0]+n[1].replace(/"/g,"'")}return o+(r&&n?"\n":"")}(t,e)}function d(t,e,n){let r="[";for(let i=0;i<t.length;i++){const o=t[i];let s;s=Array.isArray(o)?d(o,e,n):null==o?n?"null":"":JSON.stringify(o).replace(/</gim,"\\u003c").replace(/=/gim,"\\u003d").replace(/>/gim,"\\u003e").replace(/&/gim,"\\u0026"),i>0&&(r+=","),r+=s}return r+="]"+(e?"":"\n"),r}function p(t){return _(l(t).value)}function _(t){return 1===t.length&&2===t[0].length&&"string"==typeof t[0][1]&&(t=[t[0][0]]),(e=t,i().toArray(e,v)).map((t=>Object.freeze(Object.defineProperty({subject:(0,a.Z)(t[9]),shortDate:(0,a.Z)(t[14]),timeString:(0,a.Z)(t[15]),peopleHtml:y(t[7]),timestamp:t[16]/1e3,isUnread:t[9].indexOf("<b>")>-1,lastEmailAddress:t[28],bodyPreviewHtml:t[10],someGmailMessageIds:[t[1],t[2]],gmailThreadId:t[0]},"_originalGmailFormat",{value:t}))));var e}function y(t){return t.replace(/^[^<]*/,"").replace(/(<span[^>]*) class="[^"]*"/g,"$1")}i().compose(i().cat,i().cat,i().filter((t=>"cs"===t[0])),i().map((t=>[t[1],t[2]])));const v=i().compose(i().cat,i().filter((t=>"tb"===t[0])),i().map((t=>t[2])),i().cat),m=i().compose(i().cat,i().filter((t=>"cs"===t[0])),i().map((t=>({threadID:t[1],messageIDs:t[8]})))),g=i().compose(i().cat,i().filter((t=>"ms"===t[0])),i().map((t=>({messageID:t[1],date:t[7]}))));function b(t){let{value:e}=l(t);1===e.length&&(e=e[0]);const n=i().toArray(e,m),r=i().toArray(e,g),o={};return r.forEach((t=>{o[t.messageID]=t})),n.map((t=>{let{threadID:e,messageIDs:n}=t;return{threadID:e,messages:n.map((t=>o[t]))}}))}},1375:(t,e,n)=>{"use strict";function r(){const t=document.location.pathname.match(/\/b\/(.+?)\/u\/(\d+)/);if(t){const e=t[1];return`/u/${t[2]}/d/${e}`}{const t=document.location.pathname.match(/(\/u\/\d+)\//i);return t?t[1]:"/u/0"}}n.d(e,{Z:()=>r})},5440:(t,e,n)=>{"use strict";n.d(e,{Z:()=>u});var r=n(1010),i=n(6609);function o(t,e,n){let r=[];const i=[];let o=!1;function s(){i.shift()(),i.length?a():o=!1}function a(){o=!0;const t=function(){const t=Date.now()-e;return r=r.filter((e=>e>t)),r.length>=n?r[0]-t:-1}();t>0?setTimeout(s,t):s()}return function(){for(var e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];let u;const c=new Promise(((e,i)=>{u=()=>{r.push(Date.now());try{e(t.apply(this,n))}catch(t){i(t)}}}));if(!u)throw new Error("Should not happen");return i.push(u),o||a(),c}}var s=n(7709);t=n.hmd(t);const a=o(o(s.Z,1e3,7),1e4,50),u=(0,r.Kg)(t,(async function(t){if(!/^https:\/\/mail\.google\.com(?:$|\/)/.test(t.url))throw new Error("Should not happen: gmailAjax called with non-gmail url");if("https://mail.google.com"===document.location.origin)return await a(t);try{return await a({...t,canRetry:!1})}catch(e){if(e&&0===e.status){try{await i.ZP.fromPromise(("https://mail.google.com/mail/u/0/",new Promise(((t,e)=>{const n=new Image;n.addEventListener("load",(()=>t(n))),n.addEventListener("error",e),n.src="https://mail.google.com/mail/u/0/"})))).merge(i.ZP.later(6e4,void 0)).take(1).takeErrors(1).toPromise()}catch(t){}return await a(t)}if(e&&"number"==typeof e.status&&e.status>=500)return await a(t);throw e}}))},2147:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var r=n(1010),i=n(7673),o=n(5440),s=n(1375);t=n.hmd(t);const a=(0,r.Kg)(t,(async function(t,e){const n={ui:2,ik:t,view:"cv",th:e,pcd:1,mb:0,rt:"c",search:"inbox",type:e},{text:r}=await(0,o.Z)({method:"POST",url:`https://mail.google.com/mail${(0,s.Z)()}?${i.stringify(n)}`,canRetry:!0});return r}))},4431:function(t,e,n){var r;!function(i){"use strict";var o,s=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,a=Math.ceil,u=Math.floor,c="[BigNumber Error] ",l=c+"Number primitive has more than 15 significant digits: ",f=1e14,h=14,d=9007199254740991,p=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],_=1e7,y=1e9;function v(t){var e=0|t;return t>0||t===e?e:e-1}function m(t){for(var e,n,r=1,i=t.length,o=t[0]+"";r<i;){for(e=t[r++]+"",n=h-e.length;n--;e="0"+e);o+=e}for(i=o.length;48===o.charCodeAt(--i););return o.slice(0,i+1||1)}function g(t,e){var n,r,i=t.c,o=e.c,s=t.s,a=e.s,u=t.e,c=e.e;if(!s||!a)return null;if(n=i&&!i[0],r=o&&!o[0],n||r)return n?r?0:-a:s;if(s!=a)return s;if(n=s<0,r=u==c,!i||!o)return r?0:!i^n?1:-1;if(!r)return u>c^n?1:-1;for(a=(u=i.length)<(c=o.length)?u:c,s=0;s<a;s++)if(i[s]!=o[s])return i[s]>o[s]^n?1:-1;return u==c?0:u>c^n?1:-1}function b(t,e,n,r){if(t<e||t>n||t!==u(t))throw Error(c+(r||"Argument")+("number"==typeof t?t<e||t>n?" out of range: ":" not an integer: ":" not a primitive number: ")+String(t))}function x(t){var e=t.c.length-1;return v(t.e/h)==e&&t.c[e]%2!=0}function w(t,e){return(t.length>1?t.charAt(0)+"."+t.slice(1):t)+(e<0?"e":"e+")+e}function E(t,e,n){var r,i;if(e<0){for(i=n+".";++e;i+=n);t=i+t}else if(++e>(r=t.length)){for(i=n,e-=r;--e;i+=n);t+=i}else e<r&&(t=t.slice(0,e)+"."+t.slice(e));return t}o=function t(e){var n,r,i,o,A,S,O,T,j,D,I=U.prototype={constructor:U,toString:null,valueOf:null},L=new U(1),k=20,M=4,R=-7,P=21,C=-1e7,q=1e7,N=!1,V=1,B=0,$={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},F="0123456789abcdefghijklmnopqrstuvwxyz";function U(t,e){var n,o,a,c,f,p,_,y,v=this;if(!(v instanceof U))return new U(t,e);if(null==e){if(t&&!0===t._isBigNumber)return v.s=t.s,void(!t.c||t.e>q?v.c=v.e=null:t.e<C?v.c=[v.e=0]:(v.e=t.e,v.c=t.c.slice()));if((p="number"==typeof t)&&0*t==0){if(v.s=1/t<0?(t=-t,-1):1,t===~~t){for(c=0,f=t;f>=10;f/=10,c++);return void(c>q?v.c=v.e=null:(v.e=c,v.c=[t]))}y=String(t)}else{if(!s.test(y=String(t)))return i(v,y,p);v.s=45==y.charCodeAt(0)?(y=y.slice(1),-1):1}(c=y.indexOf("."))>-1&&(y=y.replace(".","")),(f=y.search(/e/i))>0?(c<0&&(c=f),c+=+y.slice(f+1),y=y.substring(0,f)):c<0&&(c=y.length)}else{if(b(e,2,F.length,"Base"),10==e)return K(v=new U(t),k+v.e+1,M);if(y=String(t),p="number"==typeof t){if(0*t!=0)return i(v,y,p,e);if(v.s=1/t<0?(y=y.slice(1),-1):1,U.DEBUG&&y.replace(/^0\.0*|\./,"").length>15)throw Error(l+t)}else v.s=45===y.charCodeAt(0)?(y=y.slice(1),-1):1;for(n=F.slice(0,e),c=f=0,_=y.length;f<_;f++)if(n.indexOf(o=y.charAt(f))<0){if("."==o){if(f>c){c=_;continue}}else if(!a&&(y==y.toUpperCase()&&(y=y.toLowerCase())||y==y.toLowerCase()&&(y=y.toUpperCase()))){a=!0,f=-1,c=0;continue}return i(v,String(t),p,e)}p=!1,(c=(y=r(y,e,10,v.s)).indexOf("."))>-1?y=y.replace(".",""):c=y.length}for(f=0;48===y.charCodeAt(f);f++);for(_=y.length;48===y.charCodeAt(--_););if(y=y.slice(f,++_)){if(_-=f,p&&U.DEBUG&&_>15&&(t>d||t!==u(t)))throw Error(l+v.s*t);if((c=c-f-1)>q)v.c=v.e=null;else if(c<C)v.c=[v.e=0];else{if(v.e=c,v.c=[],f=(c+1)%h,c<0&&(f+=h),f<_){for(f&&v.c.push(+y.slice(0,f)),_-=h;f<_;)v.c.push(+y.slice(f,f+=h));f=h-(y=y.slice(f)).length}else f-=_;for(;f--;y+="0");v.c.push(+y)}}else v.c=[v.e=0]}function H(t,e,n,r){var i,o,s,a,u;if(null==n?n=M:b(n,0,8),!t.c)return t.toString();if(i=t.c[0],s=t.e,null==e)u=m(t.c),u=1==r||2==r&&(s<=R||s>=P)?w(u,s):E(u,s,"0");else if(o=(t=K(new U(t),e,n)).e,a=(u=m(t.c)).length,1==r||2==r&&(e<=o||o<=R)){for(;a<e;u+="0",a++);u=w(u,o)}else if(e-=s,u=E(u,o,"0"),o+1>a){if(--e>0)for(u+=".";e--;u+="0");}else if((e+=o-a)>0)for(o+1==a&&(u+=".");e--;u+="0");return t.s<0&&i?"-"+u:u}function G(t,e){for(var n,r=1,i=new U(t[0]);r<t.length;r++){if(!(n=new U(t[r])).s){i=n;break}e.call(i,n)&&(i=n)}return i}function z(t,e,n){for(var r=1,i=e.length;!e[--i];e.pop());for(i=e[0];i>=10;i/=10,r++);return(n=r+n*h-1)>q?t.c=t.e=null:n<C?t.c=[t.e=0]:(t.e=n,t.c=e),t}function K(t,e,n,r){var i,o,s,c,l,d,_,y=t.c,v=p;if(y){t:{for(i=1,c=y[0];c>=10;c/=10,i++);if((o=e-i)<0)o+=h,s=e,_=(l=y[d=0])/v[i-s-1]%10|0;else if((d=a((o+1)/h))>=y.length){if(!r)break t;for(;y.length<=d;y.push(0));l=_=0,i=1,s=(o%=h)-h+1}else{for(l=c=y[d],i=1;c>=10;c/=10,i++);_=(s=(o%=h)-h+i)<0?0:l/v[i-s-1]%10|0}if(r=r||e<0||null!=y[d+1]||(s<0?l:l%v[i-s-1]),r=n<4?(_||r)&&(0==n||n==(t.s<0?3:2)):_>5||5==_&&(4==n||r||6==n&&(o>0?s>0?l/v[i-s]:0:y[d-1])%10&1||n==(t.s<0?8:7)),e<1||!y[0])return y.length=0,r?(e-=t.e+1,y[0]=v[(h-e%h)%h],t.e=-e||0):y[0]=t.e=0,t;if(0==o?(y.length=d,c=1,d--):(y.length=d+1,c=v[h-o],y[d]=s>0?u(l/v[i-s]%v[s])*c:0),r)for(;;){if(0==d){for(o=1,s=y[0];s>=10;s/=10,o++);for(s=y[0]+=c,c=1;s>=10;s/=10,c++);o!=c&&(t.e++,y[0]==f&&(y[0]=1));break}if(y[d]+=c,y[d]!=f)break;y[d--]=0,c=1}for(o=y.length;0===y[--o];y.pop());}t.e>q?t.c=t.e=null:t.e<C&&(t.c=[t.e=0])}return t}function W(t){var e,n=t.e;return null===n?t.toString():(e=m(t.c),e=n<=R||n>=P?w(e,n):E(e,n,"0"),t.s<0?"-"+e:e)}return U.clone=t,U.ROUND_UP=0,U.ROUND_DOWN=1,U.ROUND_CEIL=2,U.ROUND_FLOOR=3,U.ROUND_HALF_UP=4,U.ROUND_HALF_DOWN=5,U.ROUND_HALF_EVEN=6,U.ROUND_HALF_CEIL=7,U.ROUND_HALF_FLOOR=8,U.EUCLID=9,U.config=U.set=function(t){var e,n;if(null!=t){if("object"!=typeof t)throw Error(c+"Object expected: "+t);if(t.hasOwnProperty(e="DECIMAL_PLACES")&&(b(n=t[e],0,y,e),k=n),t.hasOwnProperty(e="ROUNDING_MODE")&&(b(n=t[e],0,8,e),M=n),t.hasOwnProperty(e="EXPONENTIAL_AT")&&((n=t[e])&&n.pop?(b(n[0],-y,0,e),b(n[1],0,y,e),R=n[0],P=n[1]):(b(n,-y,y,e),R=-(P=n<0?-n:n))),t.hasOwnProperty(e="RANGE"))if((n=t[e])&&n.pop)b(n[0],-y,-1,e),b(n[1],1,y,e),C=n[0],q=n[1];else{if(b(n,-y,y,e),!n)throw Error(c+e+" cannot be zero: "+n);C=-(q=n<0?-n:n)}if(t.hasOwnProperty(e="CRYPTO")){if((n=t[e])!==!!n)throw Error(c+e+" not true or false: "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw N=!n,Error(c+"crypto unavailable");N=n}else N=n}if(t.hasOwnProperty(e="MODULO_MODE")&&(b(n=t[e],0,9,e),V=n),t.hasOwnProperty(e="POW_PRECISION")&&(b(n=t[e],0,y,e),B=n),t.hasOwnProperty(e="FORMAT")){if("object"!=typeof(n=t[e]))throw Error(c+e+" not an object: "+n);$=n}if(t.hasOwnProperty(e="ALPHABET")){if("string"!=typeof(n=t[e])||/^.?$|[+\-.\s]|(.).*\1/.test(n))throw Error(c+e+" invalid: "+n);F=n}}return{DECIMAL_PLACES:k,ROUNDING_MODE:M,EXPONENTIAL_AT:[R,P],RANGE:[C,q],CRYPTO:N,MODULO_MODE:V,POW_PRECISION:B,FORMAT:$,ALPHABET:F}},U.isBigNumber=function(t){if(!t||!0!==t._isBigNumber)return!1;if(!U.DEBUG)return!0;var e,n,r=t.c,i=t.e,o=t.s;t:if("[object Array]"=={}.toString.call(r)){if((1===o||-1===o)&&i>=-y&&i<=y&&i===u(i)){if(0===r[0]){if(0===i&&1===r.length)return!0;break t}if((e=(i+1)%h)<1&&(e+=h),String(r[0]).length==e){for(e=0;e<r.length;e++)if((n=r[e])<0||n>=f||n!==u(n))break t;if(0!==n)return!0}}}else if(null===r&&null===i&&(null===o||1===o||-1===o))return!0;throw Error(c+"Invalid BigNumber: "+t)},U.maximum=U.max=function(){return G(arguments,I.lt)},U.minimum=U.min=function(){return G(arguments,I.gt)},U.random=(o=9007199254740992,A=Math.random()*o&2097151?function(){return u(Math.random()*o)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(t){var e,n,r,i,o,s=0,l=[],f=new U(L);if(null==t?t=k:b(t,0,y),i=a(t/h),N)if(crypto.getRandomValues){for(e=crypto.getRandomValues(new Uint32Array(i*=2));s<i;)(o=131072*e[s]+(e[s+1]>>>11))>=9e15?(n=crypto.getRandomValues(new Uint32Array(2)),e[s]=n[0],e[s+1]=n[1]):(l.push(o%1e14),s+=2);s=i/2}else{if(!crypto.randomBytes)throw N=!1,Error(c+"crypto unavailable");for(e=crypto.randomBytes(i*=7);s<i;)(o=281474976710656*(31&e[s])+1099511627776*e[s+1]+4294967296*e[s+2]+16777216*e[s+3]+(e[s+4]<<16)+(e[s+5]<<8)+e[s+6])>=9e15?crypto.randomBytes(7).copy(e,s):(l.push(o%1e14),s+=7);s=i/7}if(!N)for(;s<i;)(o=A())<9e15&&(l[s++]=o%1e14);for(i=l[--s],t%=h,i&&t&&(o=p[h-t],l[s]=u(i/o)*o);0===l[s];l.pop(),s--);if(s<0)l=[r=0];else{for(r=-1;0===l[0];l.splice(0,1),r-=h);for(s=1,o=l[0];o>=10;o/=10,s++);s<h&&(r-=h-s)}return f.e=r,f.c=l,f}),U.sum=function(){for(var t=1,e=arguments,n=new U(e[0]);t<e.length;)n=n.plus(e[t++]);return n},r=function(){var t="0123456789";function e(t,e,n,r){for(var i,o,s=[0],a=0,u=t.length;a<u;){for(o=s.length;o--;s[o]*=e);for(s[0]+=r.indexOf(t.charAt(a++)),i=0;i<s.length;i++)s[i]>n-1&&(null==s[i+1]&&(s[i+1]=0),s[i+1]+=s[i]/n|0,s[i]%=n)}return s.reverse()}return function(r,i,o,s,a){var u,c,l,f,h,d,p,_,y=r.indexOf("."),v=k,g=M;for(y>=0&&(f=B,B=0,r=r.replace(".",""),d=(_=new U(i)).pow(r.length-y),B=f,_.c=e(E(m(d.c),d.e,"0"),10,o,t),_.e=_.c.length),l=f=(p=e(r,i,o,a?(u=F,t):(u=t,F))).length;0==p[--f];p.pop());if(!p[0])return u.charAt(0);if(y<0?--l:(d.c=p,d.e=l,d.s=s,p=(d=n(d,_,v,g,o)).c,h=d.r,l=d.e),y=p[c=l+v+1],f=o/2,h=h||c<0||null!=p[c+1],h=g<4?(null!=y||h)&&(0==g||g==(d.s<0?3:2)):y>f||y==f&&(4==g||h||6==g&&1&p[c-1]||g==(d.s<0?8:7)),c<1||!p[0])r=h?E(u.charAt(1),-v,u.charAt(0)):u.charAt(0);else{if(p.length=c,h)for(--o;++p[--c]>o;)p[c]=0,c||(++l,p=[1].concat(p));for(f=p.length;!p[--f];);for(y=0,r="";y<=f;r+=u.charAt(p[y++]));r=E(r,l,u.charAt(0))}return r}}(),n=function(){function t(t,e,n){var r,i,o,s,a=0,u=t.length,c=e%_,l=e/_|0;for(t=t.slice();u--;)a=((i=c*(o=t[u]%_)+(r=l*o+(s=t[u]/_|0)*c)%_*_+a)/n|0)+(r/_|0)+l*s,t[u]=i%n;return a&&(t=[a].concat(t)),t}function e(t,e,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;i<n;i++)if(t[i]!=e[i]){o=t[i]>e[i]?1:-1;break}return o}function n(t,e,n,r){for(var i=0;n--;)t[n]-=i,i=t[n]<e[n]?1:0,t[n]=i*r+t[n]-e[n];for(;!t[0]&&t.length>1;t.splice(0,1));}return function(r,i,o,s,a){var c,l,d,p,_,y,m,g,b,x,w,E,A,S,O,T,j,D=r.s==i.s?1:-1,I=r.c,L=i.c;if(!(I&&I[0]&&L&&L[0]))return new U(r.s&&i.s&&(I?!L||I[0]!=L[0]:L)?I&&0==I[0]||!L?0*D:D/0:NaN);for(b=(g=new U(D)).c=[],D=o+(l=r.e-i.e)+1,a||(a=f,l=v(r.e/h)-v(i.e/h),D=D/h|0),d=0;L[d]==(I[d]||0);d++);if(L[d]>(I[d]||0)&&l--,D<0)b.push(1),p=!0;else{for(S=I.length,T=L.length,d=0,D+=2,(_=u(a/(L[0]+1)))>1&&(L=t(L,_,a),I=t(I,_,a),T=L.length,S=I.length),A=T,w=(x=I.slice(0,T)).length;w<T;x[w++]=0);j=L.slice(),j=[0].concat(j),O=L[0],L[1]>=a/2&&O++;do{if(_=0,(c=e(L,x,T,w))<0){if(E=x[0],T!=w&&(E=E*a+(x[1]||0)),(_=u(E/O))>1)for(_>=a&&(_=a-1),m=(y=t(L,_,a)).length,w=x.length;1==e(y,x,m,w);)_--,n(y,T<m?j:L,m,a),m=y.length,c=1;else 0==_&&(c=_=1),m=(y=L.slice()).length;if(m<w&&(y=[0].concat(y)),n(x,y,w,a),w=x.length,-1==c)for(;e(L,x,T,w)<1;)_++,n(x,T<w?j:L,w,a),w=x.length}else 0===c&&(_++,x=[0]);b[d++]=_,x[0]?x[w++]=I[A]||0:(x=[I[A]],w=1)}while((A++<S||null!=x[0])&&D--);p=null!=x[0],b[0]||b.splice(0,1)}if(a==f){for(d=1,D=b[0];D>=10;D/=10,d++);K(g,o+(g.e=d+l*h-1)+1,s,p)}else g.e=l,g.r=+p;return g}}(),S=/^(-?)0([xbo])(?=\w[\w.]*$)/i,O=/^([^.]+)\.$/,T=/^\.([^.]+)$/,j=/^-?(Infinity|NaN)$/,D=/^\s*\+(?=[\w.])|^\s+|\s+$/g,i=function(t,e,n,r){var i,o=n?e:e.replace(D,"");if(j.test(o))t.s=isNaN(o)?null:o<0?-1:1;else{if(!n&&(o=o.replace(S,(function(t,e,n){return i="x"==(n=n.toLowerCase())?16:"b"==n?2:8,r&&r!=i?t:e})),r&&(i=r,o=o.replace(O,"$1").replace(T,"0.$1")),e!=o))return new U(o,i);if(U.DEBUG)throw Error(c+"Not a"+(r?" base "+r:"")+" number: "+e);t.s=null}t.c=t.e=null},I.absoluteValue=I.abs=function(){var t=new U(this);return t.s<0&&(t.s=1),t},I.comparedTo=function(t,e){return g(this,new U(t,e))},I.decimalPlaces=I.dp=function(t,e){var n,r,i,o=this;if(null!=t)return b(t,0,y),null==e?e=M:b(e,0,8),K(new U(o),t+o.e+1,e);if(!(n=o.c))return null;if(r=((i=n.length-1)-v(this.e/h))*h,i=n[i])for(;i%10==0;i/=10,r--);return r<0&&(r=0),r},I.dividedBy=I.div=function(t,e){return n(this,new U(t,e),k,M)},I.dividedToIntegerBy=I.idiv=function(t,e){return n(this,new U(t,e),0,1)},I.exponentiatedBy=I.pow=function(t,e){var n,r,i,o,s,l,f,d,p=this;if((t=new U(t)).c&&!t.isInteger())throw Error(c+"Exponent not an integer: "+W(t));if(null!=e&&(e=new U(e)),s=t.e>14,!p.c||!p.c[0]||1==p.c[0]&&!p.e&&1==p.c.length||!t.c||!t.c[0])return d=new U(Math.pow(+W(p),s?2-x(t):+W(t))),e?d.mod(e):d;if(l=t.s<0,e){if(e.c?!e.c[0]:!e.s)return new U(NaN);(r=!l&&p.isInteger()&&e.isInteger())&&(p=p.mod(e))}else{if(t.e>9&&(p.e>0||p.e<-1||(0==p.e?p.c[0]>1||s&&p.c[1]>=24e7:p.c[0]<8e13||s&&p.c[0]<=9999975e7)))return o=p.s<0&&x(t)?-0:0,p.e>-1&&(o=1/o),new U(l?1/o:o);B&&(o=a(B/h+2))}for(s?(n=new U(.5),l&&(t.s=1),f=x(t)):f=(i=Math.abs(+W(t)))%2,d=new U(L);;){if(f){if(!(d=d.times(p)).c)break;o?d.c.length>o&&(d.c.length=o):r&&(d=d.mod(e))}if(i){if(0===(i=u(i/2)))break;f=i%2}else if(K(t=t.times(n),t.e+1,1),t.e>14)f=x(t);else{if(0==(i=+W(t)))break;f=i%2}p=p.times(p),o?p.c&&p.c.length>o&&(p.c.length=o):r&&(p=p.mod(e))}return r?d:(l&&(d=L.div(d)),e?d.mod(e):o?K(d,B,M,void 0):d)},I.integerValue=function(t){var e=new U(this);return null==t?t=M:b(t,0,8),K(e,e.e+1,t)},I.isEqualTo=I.eq=function(t,e){return 0===g(this,new U(t,e))},I.isFinite=function(){return!!this.c},I.isGreaterThan=I.gt=function(t,e){return g(this,new U(t,e))>0},I.isGreaterThanOrEqualTo=I.gte=function(t,e){return 1===(e=g(this,new U(t,e)))||0===e},I.isInteger=function(){return!!this.c&&v(this.e/h)>this.c.length-2},I.isLessThan=I.lt=function(t,e){return g(this,new U(t,e))<0},I.isLessThanOrEqualTo=I.lte=function(t,e){return-1===(e=g(this,new U(t,e)))||0===e},I.isNaN=function(){return!this.s},I.isNegative=function(){return this.s<0},I.isPositive=function(){return this.s>0},I.isZero=function(){return!!this.c&&0==this.c[0]},I.minus=function(t,e){var n,r,i,o,s=this,a=s.s;if(e=(t=new U(t,e)).s,!a||!e)return new U(NaN);if(a!=e)return t.s=-e,s.plus(t);var u=s.e/h,c=t.e/h,l=s.c,d=t.c;if(!u||!c){if(!l||!d)return l?(t.s=-e,t):new U(d?s:NaN);if(!l[0]||!d[0])return d[0]?(t.s=-e,t):new U(l[0]?s:3==M?-0:0)}if(u=v(u),c=v(c),l=l.slice(),a=u-c){for((o=a<0)?(a=-a,i=l):(c=u,i=d),i.reverse(),e=a;e--;i.push(0));i.reverse()}else for(r=(o=(a=l.length)<(e=d.length))?a:e,a=e=0;e<r;e++)if(l[e]!=d[e]){o=l[e]<d[e];break}if(o&&(i=l,l=d,d=i,t.s=-t.s),(e=(r=d.length)-(n=l.length))>0)for(;e--;l[n++]=0);for(e=f-1;r>a;){if(l[--r]<d[r]){for(n=r;n&&!l[--n];l[n]=e);--l[n],l[r]+=f}l[r]-=d[r]}for(;0==l[0];l.splice(0,1),--c);return l[0]?z(t,l,c):(t.s=3==M?-1:1,t.c=[t.e=0],t)},I.modulo=I.mod=function(t,e){var r,i,o=this;return t=new U(t,e),!o.c||!t.s||t.c&&!t.c[0]?new U(NaN):!t.c||o.c&&!o.c[0]?new U(o):(9==V?(i=t.s,t.s=1,r=n(o,t,0,3),t.s=i,r.s*=i):r=n(o,t,0,V),(t=o.minus(r.times(t))).c[0]||1!=V||(t.s=o.s),t)},I.multipliedBy=I.times=function(t,e){var n,r,i,o,s,a,u,c,l,d,p,y,m,g,b,x=this,w=x.c,E=(t=new U(t,e)).c;if(!(w&&E&&w[0]&&E[0]))return!x.s||!t.s||w&&!w[0]&&!E||E&&!E[0]&&!w?t.c=t.e=t.s=null:(t.s*=x.s,w&&E?(t.c=[0],t.e=0):t.c=t.e=null),t;for(r=v(x.e/h)+v(t.e/h),t.s*=x.s,(u=w.length)<(d=E.length)&&(m=w,w=E,E=m,i=u,u=d,d=i),i=u+d,m=[];i--;m.push(0));for(g=f,b=_,i=d;--i>=0;){for(n=0,p=E[i]%b,y=E[i]/b|0,o=i+(s=u);o>i;)n=((c=p*(c=w[--s]%b)+(a=y*c+(l=w[s]/b|0)*p)%b*b+m[o]+n)/g|0)+(a/b|0)+y*l,m[o--]=c%g;m[o]=n}return n?++r:m.splice(0,1),z(t,m,r)},I.negated=function(){var t=new U(this);return t.s=-t.s||null,t},I.plus=function(t,e){var n,r=this,i=r.s;if(e=(t=new U(t,e)).s,!i||!e)return new U(NaN);if(i!=e)return t.s=-e,r.minus(t);var o=r.e/h,s=t.e/h,a=r.c,u=t.c;if(!o||!s){if(!a||!u)return new U(i/0);if(!a[0]||!u[0])return u[0]?t:new U(a[0]?r:0*i)}if(o=v(o),s=v(s),a=a.slice(),i=o-s){for(i>0?(s=o,n=u):(i=-i,n=a),n.reverse();i--;n.push(0));n.reverse()}for((i=a.length)-(e=u.length)<0&&(n=u,u=a,a=n,e=i),i=0;e;)i=(a[--e]=a[e]+u[e]+i)/f|0,a[e]=f===a[e]?0:a[e]%f;return i&&(a=[i].concat(a),++s),z(t,a,s)},I.precision=I.sd=function(t,e){var n,r,i,o=this;if(null!=t&&t!==!!t)return b(t,1,y),null==e?e=M:b(e,0,8),K(new U(o),t,e);if(!(n=o.c))return null;if(r=(i=n.length-1)*h+1,i=n[i]){for(;i%10==0;i/=10,r--);for(i=n[0];i>=10;i/=10,r++);}return t&&o.e+1>r&&(r=o.e+1),r},I.shiftedBy=function(t){return b(t,-9007199254740991,d),this.times("1e"+t)},I.squareRoot=I.sqrt=function(){var t,e,r,i,o,s=this,a=s.c,u=s.s,c=s.e,l=k+4,f=new U("0.5");if(1!==u||!a||!a[0])return new U(!u||u<0&&(!a||a[0])?NaN:a?s:1/0);if(0==(u=Math.sqrt(+W(s)))||u==1/0?(((e=m(a)).length+c)%2==0&&(e+="0"),u=Math.sqrt(+e),c=v((c+1)/2)-(c<0||c%2),r=new U(e=u==1/0?"5e"+c:(e=u.toExponential()).slice(0,e.indexOf("e")+1)+c)):r=new U(u+""),r.c[0])for((u=(c=r.e)+l)<3&&(u=0);;)if(o=r,r=f.times(o.plus(n(s,o,l,1))),m(o.c).slice(0,u)===(e=m(r.c)).slice(0,u)){if(r.e<c&&--u,"9999"!=(e=e.slice(u-3,u+1))&&(i||"4999"!=e)){+e&&(+e.slice(1)||"5"!=e.charAt(0))||(K(r,r.e+k+2,1),t=!r.times(r).eq(s));break}if(!i&&(K(o,o.e+k+2,0),o.times(o).eq(s))){r=o;break}l+=4,u+=4,i=1}return K(r,r.e+k+1,M,t)},I.toExponential=function(t,e){return null!=t&&(b(t,0,y),t++),H(this,t,e,1)},I.toFixed=function(t,e){return null!=t&&(b(t,0,y),t=t+this.e+1),H(this,t,e)},I.toFormat=function(t,e,n){var r,i=this;if(null==n)null!=t&&e&&"object"==typeof e?(n=e,e=null):t&&"object"==typeof t?(n=t,t=e=null):n=$;else if("object"!=typeof n)throw Error(c+"Argument not an object: "+n);if(r=i.toFixed(t,e),i.c){var o,s=r.split("."),a=+n.groupSize,u=+n.secondaryGroupSize,l=n.groupSeparator||"",f=s[0],h=s[1],d=i.s<0,p=d?f.slice(1):f,_=p.length;if(u&&(o=a,a=u,u=o,_-=o),a>0&&_>0){for(o=_%a||a,f=p.substr(0,o);o<_;o+=a)f+=l+p.substr(o,a);u>0&&(f+=l+p.slice(o)),d&&(f="-"+f)}r=h?f+(n.decimalSeparator||"")+((u=+n.fractionGroupSize)?h.replace(new RegExp("\\d{"+u+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):h):f}return(n.prefix||"")+r+(n.suffix||"")},I.toFraction=function(t){var e,r,i,o,s,a,u,l,f,d,_,y,v=this,g=v.c;if(null!=t&&(!(u=new U(t)).isInteger()&&(u.c||1!==u.s)||u.lt(L)))throw Error(c+"Argument "+(u.isInteger()?"out of range: ":"not an integer: ")+W(u));if(!g)return new U(v);for(e=new U(L),f=r=new U(L),i=l=new U(L),y=m(g),s=e.e=y.length-v.e-1,e.c[0]=p[(a=s%h)<0?h+a:a],t=!t||u.comparedTo(e)>0?s>0?e:f:u,a=q,q=1/0,u=new U(y),l.c[0]=0;d=n(u,e,0,1),1!=(o=r.plus(d.times(i))).comparedTo(t);)r=i,i=o,f=l.plus(d.times(o=f)),l=o,e=u.minus(d.times(o=e)),u=o;return o=n(t.minus(r),i,0,1),l=l.plus(o.times(f)),r=r.plus(o.times(i)),l.s=f.s=v.s,_=n(f,i,s*=2,M).minus(v).abs().comparedTo(n(l,r,s,M).minus(v).abs())<1?[f,i]:[l,r],q=a,_},I.toNumber=function(){return+W(this)},I.toPrecision=function(t,e){return null!=t&&b(t,1,y),H(this,t,e,2)},I.toString=function(t){var e,n=this,i=n.s,o=n.e;return null===o?i?(e="Infinity",i<0&&(e="-"+e)):e="NaN":(null==t?e=o<=R||o>=P?w(m(n.c),o):E(m(n.c),o,"0"):10===t?e=E(m((n=K(new U(n),k+o+1,M)).c),n.e,"0"):(b(t,2,F.length,"Base"),e=r(E(m(n.c),o,"0"),10,t,i,!0)),i<0&&n.c[0]&&(e="-"+e)),e},I.valueOf=I.toJSON=function(){return W(this)},I._isBigNumber=!0,null!=e&&U.set(e),U}(),o.default=o.BigNumber=o,void 0===(r=function(){return o}.call(e,n,e,t))||(t.exports=r)}()},4681:(t,e,n)=>{"use strict";e.__esModule=!0,e.default=function(t,e){if(s)return s.call(t,e);var r=t;do{if((0,i.default)(r,e))return r;r=r.parentNode}while(r&&r!==n.g.document);return null};var r,i=(r=n(5936))&&r.__esModule?r:{default:r},o=n.g.Element&&n.g.Element.prototype,s=o&&o.closest;t.exports=e.default,t.exports.default=e.default},7187:t=>{"use strict";var e,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)};e=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var i=Number.isNaN||function(t){return t!=t};function o(){o.init.call(this)}t.exports=o,t.exports.once=function(t,e){return new Promise((function(n,r){function i(n){t.removeListener(e,o),r(n)}function o(){"function"==typeof t.removeListener&&t.removeListener("error",i),n([].slice.call(arguments))}_(t,e,o,{once:!0}),"error"!==e&&function(t,e,n){"function"==typeof t.on&&_(t,"error",e,{once:!0})}(t,i)}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function a(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function u(t){return void 0===t._maxListeners?o.defaultMaxListeners:t._maxListeners}function c(t,e,n,r){var i,o,s,c;if(a(n),void 0===(o=t._events)?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),o=t._events),s=o[e]),void 0===s)s=o[e]=n,++t._eventsCount;else if("function"==typeof s?s=o[e]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(i=u(t))>0&&s.length>i&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=t,l.type=e,l.count=s.length,c=l,console&&console.warn&&console.warn(c)}return t}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},i=l.bind(r);return i.listener=n,r.wrapFn=i,i}function h(t,e,n){var r=t._events;if(void 0===r)return[];var i=r[e];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}(i):p(i,i.length)}function d(t){var e=this._events;if(void 0!==e){var n=e[t];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function p(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t[r];return n}function _(t,e,n,r){if("function"==typeof t.on)r.once?t.once(e,n):t.on(e,n);else{if("function"!=typeof t.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t);t.addEventListener(e,(function i(o){r.once&&t.removeEventListener(e,i),n(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(t){if("number"!=typeof t||t<0||i(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");s=t}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||i(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},o.prototype.getMaxListeners=function(){return u(this)},o.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e.push(arguments[n]);var i="error"===t,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var s;if(e.length>0&&(s=e[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var u=o[t];if(void 0===u)return!1;if("function"==typeof u)r(u,this,e);else{var c=u.length,l=p(u,c);for(n=0;n<c;++n)r(l[n],this,e)}return!0},o.prototype.addListener=function(t,e){return c(this,t,e,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(t,e){return c(this,t,e,!0)},o.prototype.once=function(t,e){return a(e),this.on(t,f(this,t,e)),this},o.prototype.prependOnceListener=function(t,e){return a(e),this.prependListener(t,f(this,t,e)),this},o.prototype.removeListener=function(t,e){var n,r,i,o,s;if(a(e),void 0===(r=this._events))return this;if(void 0===(n=r[t]))return this;if(n===e||n.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete r[t],r.removeListener&&this.emit("removeListener",t,n.listener||e));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===e||n[o].listener===e){s=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(n,i),1===n.length&&(r[t]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",t,s||e)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(t){var e,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[t]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=n[t]))this.removeListener(t,e);else if(void 0!==e)for(r=e.length-1;r>=0;r--)this.removeListener(t,e[r]);return this},o.prototype.listeners=function(t){return h(this,t,!0)},o.prototype.rawListeners=function(t){return h(this,t,!1)},o.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):d.call(t,e)},o.prototype.listenerCount=d,o.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},2750:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.moduleId=void 0,e.moduleId="1f24 e53a"},9979:(t,e,n)=>{"use strict";var r=n(4836);Object.defineProperty(e,"__esModule",{value:!0}),e.init=function(){var t=window.XMLHttpRequest;window.addEventListener("message",(function e(n){if(n.data&&"ext-corb-workaround_port"===n.data.type&&n.data.moduleId===s.moduleId&&!n.__ext_claimed){n.__ext_claimed=!0,window.removeEventListener("message",e);var r=n.data.port,a={};r.addEventListener("message",(function(e){var n=e.data.id;switch(e.data.type){case"NEW_XHR":var s=a[n]=new t;s.addEventListener("readystatechange",(function(){if(4===s.readyState){var t;delete a[n];try{t=s.responseText}catch(t){}r.postMessage({type:"COMPLETE",id:n,headers:s.getAllResponseHeaders(),readyState:s.readyState,status:s.status,statusText:s.statusText,responseURL:s.responseURL,response:s.response,responseText:t},(0,o.default)([s.response]))}}));break;case"SET":var u=e.data,c=u.prop,l=u.value;a[n][c]=l;break;case"CALL":var f,h=e.data,d=h.method,p=h.args;if("abort"===d&&!a[n])break;(f=a[n])[d].apply(f,(0,i.default)(p));break;default:console.error("ext-corb-workaround: Unknown event in page world:",e)}})),r.addEventListener("messageerror",(function(t){console.error("ext-corb-workaround: Unknown error in page world:",t)})),r.start()}}))};var i=r(n(861)),o=r(n(4658)),s=n(2750)},4658:(t,e,n)=>{"use strict";var r=n(4836);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t.map((function(t){if(t&&"object"===(0,i.default)(t)&&t.__proto__){if("ArrayBuffer"===t.__proto__.constructor.name)return t;if(t.__proto__.__proto__&&"TypedArray"===t.__proto__.__proto__.constructor.name)return t.buffer}})).filter(Boolean)};var i=r(n(8698))},6609:(t,e,n)=>{"use strict";function r(t){var e=arguments.length,n=void 0,r=void 0;for(n=1;n<e;n++)for(r in arguments[n])t[r]=arguments[n][r];return t}function i(t,e){var n,i,o=arguments.length,s=void 0;for(t.prototype=(n=e.prototype,(i=function(){}).prototype=n,new i),t.prototype.constructor=t,s=2;s<o;s++)r(t.prototype,arguments[s]);return t}n.d(e,{ZP:()=>kn}),t=n.hmd(t);var o=["<nothing>"],s="end",a="value",u="error",c="any";function l(t,e){var n=void 0,r=void 0,i=void 0,o=void 0;if(0===t.length)return e;if(0===e.length)return t;for(o=0,n=new Array(t.length+e.length),r=t.length,i=0;i<r;i++,o++)n[o]=t[i];for(r=e.length,i=0;i<r;i++,o++)n[o]=e[i];return n}function f(t,e){var n=t.length,r=void 0;for(r=0;r<n;r++)if(t[r]===e)return r;return-1}function h(t,e){var n=t.length,r=void 0;for(r=0;r<n;r++)if(e(t[r]))return r;return-1}function d(t){var e=t.length,n=new Array(e),r=void 0;for(r=0;r<e;r++)n[r]=t[r];return n}function p(t,e){var n=t.length,r=void 0,i=void 0,o=void 0;if(e>=0&&e<n){if(1===n)return[];for(r=new Array(n-1),i=0,o=0;i<n;i++)i!==e&&(r[o]=t[i],o++);return r}return t}function _(t,e){var n=t.length,r=new Array(n),i=void 0;for(i=0;i<n;i++)r[i]=e(t[i]);return r}function y(t,e,n){t===c?e(n):t===n.type&&(t===a||t===u?e(n.value):e())}function v(){this._items=[],this._spies=[],this._inLoop=0,this._removedItems=null}function m(){this._dispatcher=new v,this._active=!1,this._alive=!0,this._activating=!1,this._logHandlers=null,this._spyHandlers=null}function g(){m.call(this)}function b(){m.call(this),this._currentEvent=null}r(v.prototype,{add:function(t,e){return this._items=l(this._items,[{type:t,fn:e}]),this._items.length},remove:function(t,e){var n=h(this._items,(function(n){return n.type===t&&n.fn===e}));return 0!==this._inLoop&&-1!==n&&(null===this._removedItems&&(this._removedItems=[]),this._removedItems.push(this._items[n])),this._items=p(this._items,n),this._items.length},addSpy:function(t){return this._spies=l(this._spies,[t]),this._spies.length},removeSpy:function(t){return this._spies=p(this._spies,this._spies.indexOf(t)),this._spies.length},dispatch:function(t){this._inLoop++;for(var e=0,n=this._spies;null!==this._spies&&e<n.length;e++)n[e](t);for(var r=0,i=this._items;r<i.length&&null!==this._items;r++)null!==this._removedItems&&-1!==f(this._removedItems,i[r])||y(i[r].type,i[r].fn,t);this._inLoop--,0===this._inLoop&&(this._removedItems=null)},cleanup:function(){this._items=null,this._spies=null}}),r(m.prototype,{_name:"observable",_onActivation:function(){},_onDeactivation:function(){},_setActive:function(t){this._active!==t&&(this._active=t,t?(this._activating=!0,this._onActivation(),this._activating=!1):this._onDeactivation())},_clear:function(){this._setActive(!1),this._dispatcher.cleanup(),this._dispatcher=null,this._logHandlers=null},_emit:function(t,e){switch(t){case a:return this._emitValue(e);case u:return this._emitError(e);case s:return this._emitEnd()}},_emitValue:function(t){this._alive&&this._dispatcher.dispatch({type:a,value:t})},_emitError:function(t){this._alive&&this._dispatcher.dispatch({type:u,value:t})},_emitEnd:function(){this._alive&&(this._alive=!1,this._dispatcher.dispatch({type:s}),this._clear())},_on:function(t,e){return this._alive?(this._dispatcher.add(t,e),this._setActive(!0)):y(t,e,{type:s}),this},_off:function(t,e){return this._alive&&0===this._dispatcher.remove(t,e)&&this._setActive(!1),this},onValue:function(t){return this._on(a,t)},onError:function(t){return this._on(u,t)},onEnd:function(t){return this._on(s,t)},onAny:function(t){return this._on(c,t)},offValue:function(t){return this._off(a,t)},offError:function(t){return this._off(u,t)},offEnd:function(t){return this._off(s,t)},offAny:function(t){return this._off(c,t)},observe:function(t,e,n){var r=this,i=!1,o=t&&"function"!=typeof t?t:{value:t,error:e,end:n},c=function(t){t.type===s&&(i=!0),t.type===a&&o.value?o.value(t.value):t.type===u&&o.error?o.error(t.value):t.type===s&&o.end&&o.end(t.value)};return this.onAny(c),{unsubscribe:function(){i||(r.offAny(c),i=!0)},get closed(){return i}}},_ofSameType:function(t,e){return t.prototype.getType()===this.getType()?t:e},setName:function(t,e){return this._name=e?t._name+"."+e:t,this},log:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.toString(),e=void 0,n=function(n){var r="<"+n.type+(e?":current":"")+">";n.type===s?console.log(t,r):console.log(t,r,n.value)};return this._alive&&(this._logHandlers||(this._logHandlers=[]),this._logHandlers.push({name:t,handler:n})),e=!0,this.onAny(n),e=!1,this},offLog:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.toString();if(this._logHandlers){var e=h(this._logHandlers,(function(e){return e.name===t}));-1!==e&&(this.offAny(this._logHandlers[e].handler),this._logHandlers.splice(e,1))}return this},spy:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.toString(),e=function(e){var n="<"+e.type+">";e.type===s?console.log(t,n):console.log(t,n,e.value)};return this._alive&&(this._spyHandlers||(this._spyHandlers=[]),this._spyHandlers.push({name:t,handler:e}),this._dispatcher.addSpy(e)),this},offSpy:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.toString();if(this._spyHandlers){var e=h(this._spyHandlers,(function(e){return e.name===t}));-1!==e&&(this._dispatcher.removeSpy(this._spyHandlers[e].handler),this._spyHandlers.splice(e,1))}return this}}),m.prototype.toString=function(){return"["+this._name+"]"},i(g,m,{_name:"stream",getType:function(){return"stream"}}),i(b,m,{_name:"property",_emitValue:function(t){this._alive&&(this._currentEvent={type:a,value:t},this._activating||this._dispatcher.dispatch({type:a,value:t}))},_emitError:function(t){this._alive&&(this._currentEvent={type:u,value:t},this._activating||this._dispatcher.dispatch({type:u,value:t}))},_emitEnd:function(){this._alive&&(this._alive=!1,this._activating||this._dispatcher.dispatch({type:s}),this._clear())},_on:function(t,e){return this._alive&&(this._dispatcher.add(t,e),this._setActive(!0)),null!==this._currentEvent&&y(t,e,this._currentEvent),this._alive||y(t,e,{type:s}),this},getType:function(){return"property"}});var x=new g;function w(){return x}function E(t){function e(t,e){var n=this;g.call(this),this._wait=t,this._intervalId=null,this._$onTick=function(){return n._onTick()},this._init(e)}return i(e,g,{_init:function(){},_free:function(){},_onTick:function(){},_onActivation:function(){this._intervalId=setInterval(this._$onTick,this._wait)},_onDeactivation:function(){null!==this._intervalId&&(clearInterval(this._intervalId),this._intervalId=null)},_clear:function(){g.prototype._clear.call(this),this._$onTick=null,this._free()}},t),e}x._emitEnd(),x._name="never";var A=E({_name:"later",_init:function(t){var e=t.x;this._x=e},_free:function(){this._x=null},_onTick:function(){this._emitValue(this._x),this._emitEnd()}}),S=E({_name:"interval",_init:function(t){var e=t.x;this._x=e},_free:function(){this._x=null},_onTick:function(){this._emitValue(this._x)}}),O=E({_name:"sequentially",_init:function(t){var e=t.xs;this._xs=d(e)},_free:function(){this._xs=null},_onTick:function(){1===this._xs.length?(this._emitValue(this._xs[0]),this._emitEnd()):this._emitValue(this._xs.shift())}}),T=E({_name:"fromPoll",_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_onTick:function(){var t=this._fn;this._emitValue(t())}});function j(t){function e(e){return t._emitValue(e),t._active}function n(e){return t._emit(e.type,e.value),t._active}return{value:e,error:function(e){return t._emitError(e),t._active},end:function(){return t._emitEnd(),t._active},event:n,emit:e,emitEvent:n}}var D=E({_name:"withInterval",_init:function(t){var e=t.fn;this._fn=e,this._emitter=j(this)},_free:function(){this._fn=null,this._emitter=null},_onTick:function(){(0,this._fn)(this._emitter)}});function I(t){g.call(this),this._fn=t,this._unsubscribe=null}function L(t){return new I(t)}function k(t,e){switch(e){case 0:return function(){return t()};case 1:return function(e){return t(e[0])};case 2:return function(e){return t(e[0],e[1])};case 3:return function(e){return t(e[0],e[1],e[2])};case 4:return function(e){return t(e[0],e[1],e[2],e[3])};default:return function(e){return t.apply(null,e)}}}i(I,g,{_name:"stream",_onActivation:function(){var t=(0,this._fn)(j(this));this._unsubscribe="function"==typeof t?t:null,this._active||this._callUnsubscribe()},_callUnsubscribe:function(){null!==this._unsubscribe&&(this._unsubscribe(),this._unsubscribe=null)},_onDeactivation:function(){this._callUnsubscribe()},_clear:function(){g.prototype._clear.call(this),this._fn=null}});var M=[["addEventListener","removeEventListener"],["addListener","removeListener"],["on","off"]];function R(t){this._currentEvent={type:"value",value:t,current:!0}}function P(t){return new R(t)}function C(t){this._currentEvent={type:"error",value:t,current:!0}}function q(t,e){return function(n,r){var i=this;t.call(this),this._source=n,this._name=n._name+"."+e,this._init(r),this._$handleAny=function(t){return i._handleAny(t)}}}function N(t){return{_init:function(){},_free:function(){},_handleValue:function(t){this._emitValue(t)},_handleError:function(t){this._emitError(t)},_handleEnd:function(){this._emitEnd()},_handleAny:function(t){switch(t.type){case a:return this._handleValue(t.value);case u:return this._handleError(t.value);case s:return this._handleEnd()}},_onActivation:function(){this._source.onAny(this._$handleAny)},_onDeactivation:function(){this._source.offAny(this._$handleAny)},_clear:function(){t.prototype._clear.call(this),this._source=null,this._$handleAny=null,this._free()}}}function V(t,e){var n=q(g,t);return i(n,g,N(g),e),n}function B(t,e){var n=q(b,t);return i(n,b,N(b),e),n}i(R,b,{_name:"constant",_active:!1,_activating:!1,_alive:!1,_dispatcher:null,_logHandlers:null}),i(C,b,{_name:"constantError",_active:!1,_activating:!1,_alive:!1,_dispatcher:null,_logHandlers:null});var $=B("toProperty",{_init:function(t){var e=t.fn;this._getInitialCurrent=e},_onActivation:function(){if(null!==this._getInitialCurrent){var t=this._getInitialCurrent;this._emitValue(t())}this._source.onAny(this._$handleAny)}});function F(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(null!==e&&"function"!=typeof e)throw new Error("You should call toProperty() with a function or no arguments.");return new $(t,{fn:e})}var U=V("changes",{_handleValue:function(t){this._activating||this._emitValue(t)},_handleError:function(t){this._activating||this._emitError(t)}});function H(){if("function"==typeof Promise)return Promise;throw new Error("There isn't default Promise, use shim or parameter")}var G=function(t){var e,n=t.Symbol;return"function"==typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}("undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:t),z=G.default?G.default:G;function K(t){this._observable=t.takeErrors(1)}function W(){return new K(this)}function Z(t,e,n){for(var r in t)t.hasOwnProperty(r)&&(e.push(r),n.push(t[r]))}function J(t,e,n){var r=this;g.call(this),this._activeCount=t.length,this._sources=l(t,e),this._combinator=n,this._aliveCount=0,this._latestValues=new Array(this._sources.length),this._latestErrors=new Array(this._sources.length),function(t,e){var n=t.length,r=void 0;for(r=0;r<n;r++)t[r]=e}(this._latestValues,o),this._emitAfterActivation=!1,this._endAfterActivation=!1,this._latestErrorIndex=0,this._$handlers=[];for(var i=function(t){r._$handlers.push((function(e){return r._handleAny(t,e)}))},s=0;s<this._sources.length;s++)i(s)}function X(t,e,n){return"function"==typeof e&&(n=e,e=void 0),Array.isArray(t)?function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments[2];if(!Array.isArray(e))throw new Error("Combine can only combine active and passive collections of the same type.");return n=n?k(n,t.length+e.length):function(t){return t},0===t.length?w():new J(t,e,n)}(t,e,n):function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];if("object"!=typeof e||Array.isArray(e))throw new Error("Combine can only combine active and passive collections of the same type.");var r=[],i=[],o=[];return Z(t,r,i),Z(e,r,o),0===i.length?w():new J(i,o,(function(t){for(var e={},i=t.length-1;0<=i;i--)e[r[i]]=t[i];return n?n(e):e}))}(t,e,n)}r(K.prototype,{subscribe:function(t,e,n){var r=this,i="function"==typeof t?{next:t,error:e,complete:n}:t,o=function(t){t.type===s&&(c=!0),t.type===a&&i.next?i.next(t.value):t.type===u&&i.error?i.error(t.value):t.type===s&&i.complete&&i.complete(t.value)};this._observable.onAny(o);var c=!1;return{unsubscribe:function(){c=!0,r._observable.offAny(o)},get closed(){return c}}}}),K.prototype[z]=function(){return this},i(J,g,{_name:"combine",_onActivation:function(){this._aliveCount=this._activeCount;for(var t=this._activeCount;t<this._sources.length;t++)this._sources[t].onAny(this._$handlers[t]);for(var e=0;e<this._activeCount;e++)this._sources[e].onAny(this._$handlers[e]);this._emitAfterActivation&&(this._emitAfterActivation=!1,this._emitIfFull()),this._endAfterActivation&&this._emitEnd()},_onDeactivation:function(){var t=this._sources.length,e=void 0;for(e=0;e<t;e++)this._sources[e].offAny(this._$handlers[e])},_emitIfFull:function(){for(var t=!0,e=!1,n=this._latestValues.length,r=new Array(n),i=new Array(n),s=0;s<n;s++)r[s]=this._latestValues[s],i[s]=this._latestErrors[s],r[s]===o&&(t=!1),void 0!==i[s]&&(e=!0);if(t){var a=this._combinator;this._emitValue(a(r))}e&&this._emitError(function(t){for(var e=void 0,n=0;n<t.length;n++)void 0!==t[n]&&(void 0===e||e.index<t[n].index)&&(e=t[n]);return e.error}(i))},_handleAny:function(t,e){e.type===a||e.type===u?(e.type===a&&(this._latestValues[t]=e.value,this._latestErrors[t]=void 0),e.type===u&&(this._latestValues[t]=o,this._latestErrors[t]={index:this._latestErrorIndex++,error:e.value}),t<this._activeCount&&(this._activating?this._emitAfterActivation=!0:this._emitIfFull())):t<this._activeCount&&(this._aliveCount--,0===this._aliveCount&&(this._activating?this._endAfterActivation=!0:this._emitEnd()))},_clear:function(){g.prototype._clear.call(this),this._sources=null,this._latestValues=null,this._latestErrors=null,this._combinator=null,this._$handlers=null}});var Q={empty:function(){return w()},concat:function(t,e){return t.merge(e)},of:function(t){return P(t)},map:function(t,e){return e.map(t)},bimap:function(t,e,n){return n.mapErrors(t).map(e)},ap:function(t,e){return X([t,e],(function(t,e){return t(e)}))},chain:function(t,e){return e.flatMap(t)}},Y=Object.freeze({Observable:Q}),tt={_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleValue:function(t){var e=this._fn;this._emitValue(e(t))}},et=V("map",tt),nt=B("map",tt),rt=function(t){return t};function it(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rt;return new(t._ofSameType(et,nt))(t,{fn:e})}var ot={_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleValue:function(t){(0,this._fn)(t)&&this._emitValue(t)}},st=V("filter",ot),at=B("filter",ot),ut=function(t){return t},ct={_init:function(t){var e=t.n;this._n=e,e<=0&&this._emitEnd()},_handleValue:function(t){0!==this._n&&(this._n--,this._emitValue(t),0===this._n&&this._emitEnd())}},lt=V("take",ct),ft=B("take",ct),ht={_init:function(t){var e=t.n;this._n=e,e<=0&&this._emitEnd()},_handleError:function(t){0!==this._n&&(this._n--,this._emitError(t),0===this._n&&this._emitEnd())}},dt=V("takeErrors",ht),pt=B("takeErrors",ht),_t={_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleValue:function(t){(0,this._fn)(t)?this._emitValue(t):this._emitEnd()}},yt=V("takeWhile",_t),vt=B("takeWhile",_t),mt=function(t){return t},gt={_init:function(){this._lastValue=o},_free:function(){this._lastValue=null},_handleValue:function(t){this._lastValue=t},_handleEnd:function(){this._lastValue!==o&&this._emitValue(this._lastValue),this._emitEnd()}},bt=V("last",gt),xt=B("last",gt),wt={_init:function(t){var e=t.n;this._n=Math.max(0,e)},_handleValue:function(t){0===this._n?this._emitValue(t):this._n--}},Et=V("skip",wt),At=B("skip",wt),St={_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleValue:function(t){var e=this._fn;null===this._fn||e(t)||(this._fn=null),null===this._fn&&this._emitValue(t)}},Ot=V("skipWhile",St),Tt=B("skipWhile",St),jt=function(t){return t},Dt={_init:function(t){var e=t.fn;this._fn=e,this._prev=o},_free:function(){this._fn=null,this._prev=null},_handleValue:function(t){var e=this._fn;this._prev!==o&&e(this._prev,t)||(this._prev=t,this._emitValue(t))}},It=V("skipDuplicates",Dt),Lt=B("skipDuplicates",Dt),kt=function(t,e){return t===e};function Mt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:kt;return new(t._ofSameType(It,Lt))(t,{fn:e})}var Rt={_init:function(t){var e=t.fn,n=t.seed;this._fn=e,this._prev=n},_free:function(){this._prev=null,this._fn=null},_handleValue:function(t){if(this._prev!==o){var e=this._fn;this._emitValue(e(this._prev,t))}this._prev=t}},Pt=V("diff",Rt),Ct=B("diff",Rt);function qt(t,e){return[t,e]}var Nt=B("scan",{_init:function(t){var e=t.fn,n=t.seed;this._fn=e,this._seed=n,n!==o&&this._emitValue(n)},_free:function(){this._fn=null,this._seed=null},_handleValue:function(t){var e=this._fn;null===this._currentEvent||this._currentEvent.type===u?this._emitValue(this._seed===o?t:e(this._seed,t)):this._emitValue(e(this._currentEvent.value,t))}}),Vt=V("flatten",{_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleValue:function(t){for(var e=(0,this._fn)(t),n=0;n<e.length;n++)this._emitValue(e[n])}}),Bt=function(t){return t},$t={},Ft={_init:function(t){var e=this,n=t.wait;this._wait=Math.max(0,n),this._buff=[],this._$shiftBuff=function(){var t=e._buff.shift();t===$t?e._emitEnd():e._emitValue(t)}},_free:function(){this._buff=null,this._$shiftBuff=null},_handleValue:function(t){this._activating?this._emitValue(t):(this._buff.push(t),setTimeout(this._$shiftBuff,this._wait))},_handleEnd:function(){this._activating?this._emitEnd():(this._buff.push($t),setTimeout(this._$shiftBuff,this._wait))}},Ut=V("delay",Ft),Ht=B("delay",Ft),Gt=Date.now?function(){return Date.now()}:function(){return(new Date).getTime()},zt={_init:function(t){var e=this,n=t.wait,r=t.leading,i=t.trailing;this._wait=Math.max(0,n),this._leading=r,this._trailing=i,this._trailingValue=null,this._timeoutId=null,this._endLater=!1,this._lastCallTime=0,this._$trailingCall=function(){return e._trailingCall()}},_free:function(){this._trailingValue=null,this._$trailingCall=null},_handleValue:function(t){if(this._activating)this._emitValue(t);else{var e=Gt();0!==this._lastCallTime||this._leading||(this._lastCallTime=e);var n=this._wait-(e-this._lastCallTime);n<=0?(this._cancelTrailing(),this._lastCallTime=e,this._emitValue(t)):this._trailing&&(this._cancelTrailing(),this._trailingValue=t,this._timeoutId=setTimeout(this._$trailingCall,n))}},_handleEnd:function(){this._activating?this._emitEnd():this._timeoutId?this._endLater=!0:this._emitEnd()},_cancelTrailing:function(){null!==this._timeoutId&&(clearTimeout(this._timeoutId),this._timeoutId=null)},_trailingCall:function(){this._emitValue(this._trailingValue),this._timeoutId=null,this._trailingValue=null,this._lastCallTime=this._leading?Gt():0,this._endLater&&this._emitEnd()}},Kt=V("throttle",zt),Wt=B("throttle",zt),Zt={_init:function(t){var e=this,n=t.wait,r=t.immediate;this._wait=Math.max(0,n),this._immediate=r,this._lastAttempt=0,this._timeoutId=null,this._laterValue=null,this._endLater=!1,this._$later=function(){return e._later()}},_free:function(){this._laterValue=null,this._$later=null},_handleValue:function(t){this._activating?this._emitValue(t):(this._lastAttempt=Gt(),this._immediate&&!this._timeoutId&&this._emitValue(t),this._timeoutId||(this._timeoutId=setTimeout(this._$later,this._wait)),this._immediate||(this._laterValue=t))},_handleEnd:function(){this._activating?this._emitEnd():this._timeoutId&&!this._immediate?this._endLater=!0:this._emitEnd()},_later:function(){var t=Gt()-this._lastAttempt;if(t<this._wait&&t>=0)this._timeoutId=setTimeout(this._$later,this._wait-t);else{if(this._timeoutId=null,!this._immediate){var e=this._laterValue;this._laterValue=null,this._emitValue(e)}this._endLater&&this._emitEnd()}}},Jt=V("debounce",Zt),Xt=B("debounce",Zt),Qt={_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleError:function(t){var e=this._fn;this._emitError(e(t))}},Yt=V("mapErrors",Qt),te=B("mapErrors",Qt),ee=function(t){return t},ne={_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleError:function(t){(0,this._fn)(t)&&this._emitError(t)}},re=V("filterErrors",ne),ie=B("filterErrors",ne),oe=function(t){return t},se={_handleValue:function(){}},ae=V("ignoreValues",se),ue=B("ignoreValues",se),ce={_handleError:function(){}},le=V("ignoreErrors",ce),fe=B("ignoreErrors",ce),he={_handleEnd:function(){}},de=V("ignoreEnd",he),pe=B("ignoreEnd",he),_e={_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleEnd:function(){var t=this._fn;this._emitValue(t()),this._emitEnd()}},ye=V("beforeEnd",_e),ve=B("beforeEnd",_e),me={_init:function(t){var e=t.min,n=t.max;this._max=n,this._min=e,this._buff=[]},_free:function(){this._buff=null},_handleValue:function(t){this._buff=function(t,e,n){var r=Math.min(n,t.length+1),i=t.length-r+1,o=new Array(r),s=void 0;for(s=i;s<r;s++)o[s-i]=t[s];return o[r-1]=e,o}(this._buff,t,this._max),this._buff.length>=this._min&&this._emitValue(this._buff)}},ge=V("slidingWindow",me),be=B("slidingWindow",me),xe={_init:function(t){var e=t.fn,n=t.flushOnEnd;this._fn=e,this._flushOnEnd=n,this._buff=[]},_free:function(){this._buff=null},_flush:function(){null!==this._buff&&0!==this._buff.length&&(this._emitValue(this._buff),this._buff=[])},_handleValue:function(t){this._buff.push(t),(0,this._fn)(t)||this._flush()},_handleEnd:function(){this._flushOnEnd&&this._flush(),this._emitEnd()}},we=V("bufferWhile",xe),Ee=B("bufferWhile",xe),Ae=function(t){return t},Se={_init:function(t){var e=t.count,n=t.flushOnEnd;this._count=e,this._flushOnEnd=n,this._buff=[]},_free:function(){this._buff=null},_flush:function(){null!==this._buff&&0!==this._buff.length&&(this._emitValue(this._buff),this._buff=[])},_handleValue:function(t){this._buff.push(t),this._buff.length>=this._count&&this._flush()},_handleEnd:function(){this._flushOnEnd&&this._flush(),this._emitEnd()}},Oe=V("bufferWithCount",Se),Te=B("bufferWithCount",Se),je={_init:function(t){var e=this,n=t.wait,r=t.count,i=t.flushOnEnd;this._wait=n,this._count=r,this._flushOnEnd=i,this._intervalId=null,this._$onTick=function(){return e._flush()},this._buff=[]},_free:function(){this._$onTick=null,this._buff=null},_flush:function(){null!==this._buff&&(this._emitValue(this._buff),this._buff=[])},_handleValue:function(t){this._buff.push(t),this._buff.length>=this._count&&(clearInterval(this._intervalId),this._flush(),this._intervalId=setInterval(this._$onTick,this._wait))},_handleEnd:function(){this._flushOnEnd&&0!==this._buff.length&&this._flush(),this._emitEnd()},_onActivation:function(){this._intervalId=setInterval(this._$onTick,this._wait),this._source.onAny(this._$handleAny)},_onDeactivation:function(){null!==this._intervalId&&(clearInterval(this._intervalId),this._intervalId=null),this._source.offAny(this._$handleAny)}},De=V("bufferWithTimeOrCount",je),Ie=B("bufferWithTimeOrCount",je),Le={_init:function(t){var e,n=t.transducer;this._xform=n((e=this,{"@@transducer/step":function(t,n){return e._emitValue(n),null},"@@transducer/result":function(){return e._emitEnd(),null}}))},_free:function(){this._xform=null},_handleValue:function(t){null!==this._xform["@@transducer/step"](null,t)&&this._xform["@@transducer/result"](null)},_handleEnd:function(){this._xform["@@transducer/result"](null)}},ke=V("transduce",Le),Me=B("transduce",Le),Re={_init:function(t){var e=t.fn;this._handler=e,this._emitter=j(this)},_free:function(){this._handler=null,this._emitter=null},_handleAny:function(t){this._handler(this._emitter,t)}},Pe=V("withHandler",Re),Ce=B("withHandler",Re),qe=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function Ne(t,e){var n=this;g.call(this),this._buffers=_(t,(function(t){return qe(t)?d(t):[]})),this._sources=_(t,(function(t){return qe(t)?w():t})),this._combinator=e?k(e,this._sources.length):function(t){return t},this._aliveCount=0,this._$handlers=[];for(var r=function(t){n._$handlers.push((function(e){return n._handleAny(t,e)}))},i=0;i<this._sources.length;i++)r(i)}function Ve(t,e){return 0===t.length?w():new Ne(t,e)}i(Ne,g,{_name:"zip",_onActivation:function(){for(;this._isFull();)this._emit();var t=this._sources.length;this._aliveCount=t;for(var e=0;e<t&&this._active;e++)this._sources[e].onAny(this._$handlers[e])},_onDeactivation:function(){for(var t=0;t<this._sources.length;t++)this._sources[t].offAny(this._$handlers[t])},_emit:function(){for(var t=new Array(this._buffers.length),e=0;e<this._buffers.length;e++)t[e]=this._buffers[e].shift();var n=this._combinator;this._emitValue(n(t))},_isFull:function(){for(var t=0;t<this._buffers.length;t++)if(0===this._buffers[t].length)return!1;return!0},_handleAny:function(t,e){e.type===a&&(this._buffers[t].push(e.value),this._isFull()&&this._emit()),e.type===u&&this._emitError(e.value),e.type===s&&(this._aliveCount--,0===this._aliveCount&&this._emitEnd())},_clear:function(){g.prototype._clear.call(this),this._sources=null,this._buffers=null,this._combinator=null,this._$handlers=null}});var Be=function(t){return t};function $e(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.queueLim,r=void 0===n?0:n,i=e.concurLim,o=void 0===i?-1:i,s=e.drop,a=void 0===s?"new":s;g.call(this),this._queueLim=r<0?-1:r,this._concurLim=o<0?-1:o,this._drop=a,this._queue=[],this._curSources=[],this._$handleSubAny=function(e){return t._handleSubAny(e)},this._$endHandlers=[],this._currentlyAdding=null,0===this._concurLim&&this._emitEnd()}function Fe(t){$e.call(this),this._addAll(t),this._initialised=!0}function Ue(t){return 0===t.length?w():new Fe(t)}function He(t){var e=this;g.call(this),this._generator=t,this._source=null,this._inLoop=!1,this._iteration=0,this._$handleAny=function(t){return e._handleAny(t)}}i($e,g,{_name:"abstractPool",_add:function(t,e){e=e||Be,-1===this._concurLim||this._curSources.length<this._concurLim?this._addToCur(e(t)):-1===this._queueLim||this._queue.length<this._queueLim?this._addToQueue(e(t)):"old"===this._drop&&(this._removeOldest(),this._add(t,e))},_addAll:function(t){var e=this;!function(t,n){var r,i=t.length,o=void 0;for(o=0;o<i;o++)r=t[o],e._add(r)}(t)},_remove:function(t){-1===this._removeCur(t)&&this._removeQueue(t)},_addToQueue:function(t){this._queue=l(this._queue,[t])},_addToCur:function(t){if(this._active){if(!t._alive)return t._currentEvent&&this._emit(t._currentEvent.type,t._currentEvent.value),void(this._active&&(0!==this._queue.length?this._pullQueue():0===this._curSources.length&&this._onEmpty()));this._currentlyAdding=t,t.onAny(this._$handleSubAny),this._currentlyAdding=null,t._alive?(this._curSources=l(this._curSources,[t]),this._active&&this._subToEnd(t)):0!==this._queue.length?this._pullQueue():0===this._curSources.length&&this._onEmpty()}else this._curSources=l(this._curSources,[t])},_subToEnd:function(t){var e=this,n=function(){return e._removeCur(t)};this._$endHandlers.push({obs:t,handler:n}),t.onEnd(n)},_subscribe:function(t){t.onAny(this._$handleSubAny),this._active&&this._subToEnd(t)},_unsubscribe:function(t){t.offAny(this._$handleSubAny);var e=h(this._$endHandlers,(function(e){return e.obs===t}));-1!==e&&(t.offEnd(this._$endHandlers[e].handler),this._$endHandlers.splice(e,1))},_handleSubAny:function(t){t.type===a?this._emitValue(t.value):t.type===u&&this._emitError(t.value)},_removeQueue:function(t){var e=f(this._queue,t);return this._queue=p(this._queue,e),e},_removeCur:function(t){this._active&&this._unsubscribe(t);var e=f(this._curSources,t);return this._curSources=p(this._curSources,e),-1!==e&&(0!==this._queue.length?this._pullQueue():0===this._curSources.length&&this._onEmpty()),e},_removeOldest:function(){this._removeCur(this._curSources[0])},_pullQueue:function(){0!==this._queue.length&&(this._queue=d(this._queue),this._addToCur(this._queue.shift()))},_onActivation:function(){for(var t=0,e=this._curSources;t<e.length&&this._active;t++)this._subscribe(e[t])},_onDeactivation:function(){for(var t=0,e=this._curSources;t<e.length;t++)this._unsubscribe(e[t]);null!==this._currentlyAdding&&this._unsubscribe(this._currentlyAdding)},_isEmpty:function(){return 0===this._curSources.length},_onEmpty:function(){},_clear:function(){g.prototype._clear.call(this),this._queue=null,this._curSources=null,this._$handleSubAny=null,this._$endHandlers=null}}),i(Fe,$e,{_name:"merge",_onEmpty:function(){this._initialised&&this._emitEnd()}}),i(He,g,{_name:"repeat",_handleAny:function(t){t.type===s?(this._source=null,this._getSource()):this._emit(t.type,t.value)},_getSource:function(){if(!this._inLoop){this._inLoop=!0;for(var t=this._generator;null===this._source&&this._alive&&this._active;)this._source=t(this._iteration++),this._source?this._source.onAny(this._$handleAny):this._emitEnd();this._inLoop=!1}},_onActivation:function(){this._source?this._source.onAny(this._$handleAny):this._getSource()},_onDeactivation:function(){this._source&&this._source.offAny(this._$handleAny)},_clear:function(){g.prototype._clear.call(this),this._generator=null,this._source=null,this._$handleAny=null}});var Ge=function(t){return new He(t)};function ze(t){return Ge((function(e){return t.length>e&&t[e]})).setName("concat")}function Ke(){$e.call(this)}function We(t,e,n){var r=this;$e.call(this,n),this._source=t,this._fn=e,this._mainEnded=!1,this._lastCurrent=null,this._$handleMain=function(t){return r._handleMain(t)}}function Ze(t,e){We.call(this,t,e)}function Je(t,e){return function(n,r,i){var s=this;t.call(this),this._primary=n,this._secondary=r,this._name=n._name+"."+e,this._lastSecondary=o,this._$handleSecondaryAny=function(t){return s._handleSecondaryAny(t)},this._$handlePrimaryAny=function(t){return s._handlePrimaryAny(t)},this._init(i)}}function Xe(t){return{_init:function(){},_free:function(){},_handlePrimaryValue:function(t){this._emitValue(t)},_handlePrimaryError:function(t){this._emitError(t)},_handlePrimaryEnd:function(){this._emitEnd()},_handleSecondaryValue:function(t){this._lastSecondary=t},_handleSecondaryError:function(t){this._emitError(t)},_handleSecondaryEnd:function(){},_handlePrimaryAny:function(t){switch(t.type){case a:return this._handlePrimaryValue(t.value);case u:return this._handlePrimaryError(t.value);case s:return this._handlePrimaryEnd(t.value)}},_handleSecondaryAny:function(t){switch(t.type){case a:return this._handleSecondaryValue(t.value);case u:return this._handleSecondaryError(t.value);case s:this._handleSecondaryEnd(t.value),this._removeSecondary()}},_removeSecondary:function(){null!==this._secondary&&(this._secondary.offAny(this._$handleSecondaryAny),this._$handleSecondaryAny=null,this._secondary=null)},_onActivation:function(){null!==this._secondary&&this._secondary.onAny(this._$handleSecondaryAny),this._active&&this._primary.onAny(this._$handlePrimaryAny)},_onDeactivation:function(){null!==this._secondary&&this._secondary.offAny(this._$handleSecondaryAny),this._primary.offAny(this._$handlePrimaryAny)},_clear:function(){t.prototype._clear.call(this),this._primary=null,this._secondary=null,this._lastSecondary=null,this._$handleSecondaryAny=null,this._$handlePrimaryAny=null,this._free()}}}function Qe(t,e){var n=Je(g,t);return i(n,g,Xe(g),e),n}function Ye(t,e){var n=Je(b,t);return i(n,b,Xe(b),e),n}i(Ke,$e,{_name:"pool",plug:function(t){return this._add(t),this},unplug:function(t){return this._remove(t),this}}),i(We,$e,{_onActivation:function(){$e.prototype._onActivation.call(this),this._active&&this._source.onAny(this._$handleMain)},_onDeactivation:function(){$e.prototype._onDeactivation.call(this),this._source.offAny(this._$handleMain),this._hadNoEvSinceDeact=!0},_handleMain:function(t){t.type===a&&(this._activating&&this._hadNoEvSinceDeact&&this._lastCurrent===t.value||this._add(t.value,this._fn),this._lastCurrent=t.value,this._hadNoEvSinceDeact=!1),t.type===u&&this._emitError(t.value),t.type===s&&(this._isEmpty()?this._emitEnd():this._mainEnded=!0)},_onEmpty:function(){this._mainEnded&&this._emitEnd()},_clear:function(){$e.prototype._clear.call(this),this._source=null,this._lastCurrent=null,this._$handleMain=null}}),i(Ze,We,{_handleMain:function(t){t.type===u&&(this._activating&&this._hadNoEvSinceDeact&&this._lastCurrent===t.value||this._add(t.value,this._fn),this._lastCurrent=t.value,this._hadNoEvSinceDeact=!1),t.type===a&&this._emitValue(t.value),t.type===s&&(this._isEmpty()?this._emitEnd():this._mainEnded=!0)}});var tn={_handlePrimaryValue:function(t){this._lastSecondary!==o&&this._lastSecondary&&this._emitValue(t)},_handleSecondaryEnd:function(){this._lastSecondary!==o&&this._lastSecondary||this._emitEnd()}},en=Qe("filterBy",tn),nn=Ye("filterBy",tn),rn=function(t,e){return e},on={_handlePrimaryValue:function(t){this._lastSecondary!==o&&this._emitValue(t)},_handleSecondaryEnd:function(){this._lastSecondary===o&&this._emitEnd()}},sn=Qe("skipUntilBy",on),an=Ye("skipUntilBy",on),un={_handleSecondaryValue:function(){this._emitEnd()}},cn=Qe("takeUntilBy",un),ln=Ye("takeUntilBy",un),fn={_init:function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).flushOnEnd,e=void 0===t||t;this._buff=[],this._flushOnEnd=e},_free:function(){this._buff=null},_flush:function(){null!==this._buff&&(this._emitValue(this._buff),this._buff=[])},_handlePrimaryEnd:function(){this._flushOnEnd&&this._flush(),this._emitEnd()},_onActivation:function(){this._primary.onAny(this._$handlePrimaryAny),this._alive&&null!==this._secondary&&this._secondary.onAny(this._$handleSecondaryAny)},_handlePrimaryValue:function(t){this._buff.push(t)},_handleSecondaryValue:function(){this._flush()},_handleSecondaryEnd:function(){this._flushOnEnd||this._emitEnd()}},hn=Qe("bufferBy",fn),dn=Ye("bufferBy",fn),pn={_init:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.flushOnEnd,n=void 0===e||e,r=t.flushOnChange,i=void 0!==r&&r;this._buff=[],this._flushOnEnd=n,this._flushOnChange=i},_free:function(){this._buff=null},_flush:function(){null!==this._buff&&(this._emitValue(this._buff),this._buff=[])},_handlePrimaryEnd:function(){this._flushOnEnd&&this._flush(),this._emitEnd()},_handlePrimaryValue:function(t){this._buff.push(t),this._lastSecondary===o||this._lastSecondary||this._flush()},_handleSecondaryEnd:function(){this._flushOnEnd||this._lastSecondary!==o&&!this._lastSecondary||this._emitEnd()},_handleSecondaryValue:function(t){this._flushOnChange&&!t&&this._flush(),this._lastSecondary=t}},_n=Qe("bufferWhileBy",pn),yn=Ye("bufferWhileBy",pn),vn=function(){return!1},mn=function(){return!0},gn={_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleValue:function(t){var e=(0,this._fn)(t);e.convert?this._emitError(e.error):this._emitValue(t)}},bn=V("valuesToErrors",gn),xn=B("valuesToErrors",gn),wn=function(t){return{convert:!0,error:t}},En={_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleError:function(t){var e=(0,this._fn)(t);e.convert?this._emitValue(e.value):this._emitError(t)}},An=V("errorsToValues",En),Sn=B("errorsToValues",En),On=function(t){return{convert:!0,value:t}},Tn={_handleError:function(t){this._emitError(t),this._emitEnd()}},jn=V("endOnError",Tn),Dn=B("endOnError",Tn);m.prototype.toProperty=function(t){return F(this,t)},m.prototype.changes=function(){return new U(this)},m.prototype.toPromise=function(t){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:H(),n=null;return new e((function(e,r){t.onAny((function(t){t.type===s&&null!==n?((n.type===a?e:r)(n.value),n=null):n=t}))}))}(this,t)},m.prototype.toESObservable=W,m.prototype[z]=W,m.prototype.map=function(t){return it(this,t)},m.prototype.filter=function(t){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ut;return new(t._ofSameType(st,at))(t,{fn:e})}(this,t)},m.prototype.take=function(t){return function(t,e){return new(t._ofSameType(lt,ft))(t,{n:e})}(this,t)},m.prototype.takeErrors=function(t){return function(t,e){return new(t._ofSameType(dt,pt))(t,{n:e})}(this,t)},m.prototype.takeWhile=function(t){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:mt;return new(t._ofSameType(yt,vt))(t,{fn:e})}(this,t)},m.prototype.last=function(){return new((t=this)._ofSameType(bt,xt))(t);var t},m.prototype.skip=function(t){return function(t,e){return new(t._ofSameType(Et,At))(t,{n:e})}(this,t)},m.prototype.skipWhile=function(t){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:jt;return new(t._ofSameType(Ot,Tt))(t,{fn:e})}(this,t)},m.prototype.skipDuplicates=function(t){return Mt(this,t)},m.prototype.diff=function(t,e){return function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o;return new(t._ofSameType(Pt,Ct))(t,{fn:e||qt,seed:n})}(this,t,e)},m.prototype.scan=function(t,e){return function(t,e){return new Nt(t,{fn:e,seed:arguments.length>2&&void 0!==arguments[2]?arguments[2]:o})}(this,t,e)},m.prototype.flatten=function(t){return function(t){return new Vt(t,{fn:arguments.length>1&&void 0!==arguments[1]?arguments[1]:Bt})}(this,t)},m.prototype.delay=function(t){return function(t,e){return new(t._ofSameType(Ut,Ht))(t,{wait:e})}(this,t)},m.prototype.throttle=function(t,e){return function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.leading,i=void 0===r||r,o=n.trailing,s=void 0===o||o;return new(t._ofSameType(Kt,Wt))(t,{wait:e,leading:i,trailing:s})}(this,t,e)},m.prototype.debounce=function(t,e){return function(t,e){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).immediate,r=void 0!==n&&n;return new(t._ofSameType(Jt,Xt))(t,{wait:e,immediate:r})}(this,t,e)},m.prototype.mapErrors=function(t){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ee;return new(t._ofSameType(Yt,te))(t,{fn:e})}(this,t)},m.prototype.filterErrors=function(t){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:oe;return new(t._ofSameType(re,ie))(t,{fn:e})}(this,t)},m.prototype.ignoreValues=function(){return new((t=this)._ofSameType(ae,ue))(t);var t},m.prototype.ignoreErrors=function(){return new((t=this)._ofSameType(le,fe))(t);var t},m.prototype.ignoreEnd=function(){return new((t=this)._ofSameType(de,pe))(t);var t},m.prototype.beforeEnd=function(t){return function(t,e){return new(t._ofSameType(ye,ve))(t,{fn:e})}(this,t)},m.prototype.slidingWindow=function(t,e){return function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return new(t._ofSameType(ge,be))(t,{min:n,max:e})}(this,t,e)},m.prototype.bufferWhile=function(t,e){return function(t,e){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).flushOnEnd,r=void 0===n||n;return new(t._ofSameType(we,Ee))(t,{fn:e||Ae,flushOnEnd:r})}(this,t,e)},m.prototype.bufferWithCount=function(t,e){return function(t,e){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).flushOnEnd,r=void 0===n||n;return new(t._ofSameType(Oe,Te))(t,{count:e,flushOnEnd:r})}(this,t,e)},m.prototype.bufferWithTimeOrCount=function(t,e,n){return function(t,e,n){var r=(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).flushOnEnd,i=void 0===r||r;return new(t._ofSameType(De,Ie))(t,{wait:e,count:n,flushOnEnd:i})}(this,t,e,n)},m.prototype.transduce=function(t){return function(t,e){return new(t._ofSameType(ke,Me))(t,{transducer:e})}(this,t)},m.prototype.withHandler=function(t){return function(t,e){return new(t._ofSameType(Pe,Ce))(t,{fn:e})}(this,t)},m.prototype.thru=function(t){return t(this)},m.prototype.combine=function(t,e){return X([this,t],e)},m.prototype.zip=function(t,e){return Ve([this,t],e)},m.prototype.merge=function(t){return Ue([this,t])},m.prototype.concat=function(t){return ze([this,t])},m.prototype.flatMap=function(t){return new We(this,t).setName(this,"flatMap")},m.prototype.flatMapLatest=function(t){return new We(this,t,{concurLim:1,drop:"old"}).setName(this,"flatMapLatest")},m.prototype.flatMapFirst=function(t){return new We(this,t,{concurLim:1}).setName(this,"flatMapFirst")},m.prototype.flatMapConcat=function(t){return new We(this,t,{queueLim:-1,concurLim:1}).setName(this,"flatMapConcat")},m.prototype.flatMapConcurLimit=function(t,e){return new We(this,t,{queueLim:-1,concurLim:e}).setName(this,"flatMapConcurLimit")},m.prototype.flatMapErrors=function(t){return new Ze(this,t).setName(this,"flatMapErrors")},m.prototype.filterBy=function(t){return n=t,new((e=this)._ofSameType(en,nn))(e,n);var e,n},m.prototype.sampledBy=function(t,e){return function(t,e,n){return X([e],[t],n?function(t,e){return n(e,t)}:rn).setName(t,"sampledBy")}(this,t,e)},m.prototype.skipUntilBy=function(t){return n=t,new((e=this)._ofSameType(sn,an))(e,n);var e,n},m.prototype.takeUntilBy=function(t){return n=t,new((e=this)._ofSameType(cn,ln))(e,n);var e,n},m.prototype.bufferBy=function(t,e){return function(t,e,n){return new(t._ofSameType(hn,dn))(t,e,n)}(this,t,e)},m.prototype.bufferWhileBy=function(t,e){return function(t,e,n){return new(t._ofSameType(_n,yn))(t,e,n)}(this,t,e)};function In(t){console&&"function"==typeof console.warn&&console.warn(t,"\nHere is an Error object for you containing the call stack:",new Error)}m.prototype.awaiting=function(t){return In("You are using deprecated .awaiting() method, see https://github.com/kefirjs/kefir/issues/145"),function(t,e){var n=Ue([it(t,mn),it(e,vn)]);return(n=F(n=Mt(n),vn)).setName(t,"awaiting")}(this,t)},m.prototype.valuesToErrors=function(t){return In("You are using deprecated .valuesToErrors() method, see https://github.com/kefirjs/kefir/issues/149"),function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:wn;return new(t._ofSameType(bn,xn))(t,{fn:e})}(this,t)},m.prototype.errorsToValues=function(t){return In("You are using deprecated .errorsToValues() method, see https://github.com/kefirjs/kefir/issues/149"),function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:On;return new(t._ofSameType(An,Sn))(t,{fn:e})}(this,t)},m.prototype.endOnError=function(){return In("You are using deprecated .endOnError() method, see https://github.com/kefirjs/kefir/issues/150"),new((t=this)._ofSameType(jn,Dn))(t);var t};var Ln={Observable:m,Stream:g,Property:b,never:w,later:function(t,e){return new A(t,{x:e})},interval:function(t,e){return new S(t,{x:e})},sequentially:function(t,e){return 0===e.length?w():new O(t,{xs:e})},fromPoll:function(t,e){return new T(t,{fn:e})},withInterval:function(t,e){return new D(t,{fn:e})},fromCallback:function(t){var e=!1;return L((function(n){e||(t((function(t){n.emit(t),n.end()})),e=!0)})).setName("fromCallback")},fromNodeCallback:function(t){var e=!1;return L((function(n){e||(t((function(t,e){t?n.error(t):n.emit(e),n.end()})),e=!0)})).setName("fromNodeCallback")},fromEvents:function(t,e,n){for(var r=void 0,i=void 0,o=0;o<M.length;o++)if("function"==typeof t[M[o][0]]&&"function"==typeof t[M[o][1]]){r=M[o][0],i=M[o][1];break}if(void 0===r)throw new Error("target don't support any of addEventListener/removeEventListener, addListener/removeListener, on/off method pair");return function(t,e,n){return L((function(r){var i=n?function(){r.emit(function(t,e,n){var r=n?n.length:0;if(null!=e)return 0===r?t.call(e):t.apply(e,n);switch(r){case 0:return t();case 1:return t(n[0]);case 2:return t(n[0],n[1]);case 3:return t(n[0],n[1],n[2]);case 4:return t(n[0],n[1],n[2],n[3]);default:return t.apply(null,n)}}(n,this,arguments))}:function(t){r.emit(t)};return t(i),function(){return e(i)}})).setName("fromSubUnsub")}((function(n){return t[r](e,n)}),(function(n){return t[i](e,n)}),n).setName("fromEvents")},stream:L,constant:P,constantError:function(t){return new C(t)},fromPromise:function(t){var e=!1,n=L((function(n){if(!e){var r=t.then((function(t){n.emit(t),n.end()}),(function(t){n.error(t),n.end()}));r&&"function"==typeof r.done&&r.done(),e=!0}}));return F(n,null).setName("fromPromise")},fromESObservable:function(t){var e=t[z]?t[z]():t;return L((function(t){var n=e.subscribe({error:function(e){t.error(e),t.end()},next:function(e){t.emit(e)},complete:function(){t.end()}});return n.unsubscribe?function(){n.unsubscribe()}:n})).setName("fromESObservable")},combine:X,zip:Ve,merge:Ue,concat:ze,Pool:Ke,pool:function(){return new Ke},repeat:Ge,staticLand:Y};Ln.Kefir=Ln;const kn=Ln},8552:(t,e,n)=>{var r=n(852)(n(5639),"DataView");t.exports=r},1989:(t,e,n)=>{var r=n(1789),i=n(401),o=n(7667),s=n(1327),a=n(1866);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=s,u.prototype.set=a,t.exports=u},8407:(t,e,n)=>{var r=n(7040),i=n(4125),o=n(2117),s=n(7518),a=n(4705);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=s,u.prototype.set=a,t.exports=u},7071:(t,e,n)=>{var r=n(852)(n(5639),"Map");t.exports=r},3369:(t,e,n)=>{var r=n(4785),i=n(1285),o=n(6e3),s=n(9916),a=n(5265);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=s,u.prototype.set=a,t.exports=u},3818:(t,e,n)=>{var r=n(852)(n(5639),"Promise");t.exports=r},8525:(t,e,n)=>{var r=n(852)(n(5639),"Set");t.exports=r},8668:(t,e,n)=>{var r=n(3369),i=n(619),o=n(2385);function s(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r;++e<n;)this.add(t[e])}s.prototype.add=s.prototype.push=i,s.prototype.has=o,t.exports=s},6384:(t,e,n)=>{var r=n(8407),i=n(7465),o=n(3779),s=n(7599),a=n(4758),u=n(4309);function c(t){var e=this.__data__=new r(t);this.size=e.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=s,c.prototype.has=a,c.prototype.set=u,t.exports=c},2705:(t,e,n)=>{var r=n(5639).Symbol;t.exports=r},1149:(t,e,n)=>{var r=n(5639).Uint8Array;t.exports=r},577:(t,e,n)=>{var r=n(852)(n(5639),"WeakMap");t.exports=r},6874:t=>{t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},7412:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},4963:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o}},7443:(t,e,n)=>{var r=n(2118);t.exports=function(t,e){return!(null==t||!t.length)&&r(t,e,0)>-1}},1196:t=>{t.exports=function(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}},4636:(t,e,n)=>{var r=n(2545),i=n(5694),o=n(1469),s=n(4144),a=n(5776),u=n(6719),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=o(t),l=!n&&i(t),f=!n&&!l&&s(t),h=!n&&!l&&!f&&u(t),d=n||l||f||h,p=d?r(t.length,String):[],_=p.length;for(var y in t)!e&&!c.call(t,y)||d&&("length"==y||f&&("offset"==y||"parent"==y)||h&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||a(y,_))||p.push(y);return p}},9932:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}},2488:t=>{t.exports=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}},2908:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},4865:(t,e,n)=>{var r=n(9465),i=n(7813),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var s=t[e];o.call(t,e)&&i(s,n)&&(void 0!==n||e in t)||r(t,e,n)}},8470:(t,e,n)=>{var r=n(7813);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},4037:(t,e,n)=>{var r=n(8363),i=n(3674);t.exports=function(t,e){return t&&r(e,i(e),t)}},3886:(t,e,n)=>{var r=n(8363),i=n(1704);t.exports=function(t,e){return t&&r(e,i(e),t)}},9465:(t,e,n)=>{var r=n(8777);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},9750:t=>{t.exports=function(t,e,n){return t==t&&(void 0!==n&&(t=t<=n?t:n),void 0!==e&&(t=t>=e?t:e)),t}},5990:(t,e,n)=>{var r=n(6384),i=n(7412),o=n(4865),s=n(4037),a=n(3886),u=n(4626),c=n(278),l=n(8805),f=n(1911),h=n(8234),d=n(6904),p=n(4160),_=n(3824),y=n(9148),v=n(8517),m=n(1469),g=n(4144),b=n(6688),x=n(3218),w=n(2928),E=n(3674),A=n(1704),S="[object Arguments]",O="[object Function]",T="[object Object]",j={};j[S]=j["[object Array]"]=j["[object ArrayBuffer]"]=j["[object DataView]"]=j["[object Boolean]"]=j["[object Date]"]=j["[object Float32Array]"]=j["[object Float64Array]"]=j["[object Int8Array]"]=j["[object Int16Array]"]=j["[object Int32Array]"]=j["[object Map]"]=j["[object Number]"]=j[T]=j["[object RegExp]"]=j["[object Set]"]=j["[object String]"]=j["[object Symbol]"]=j["[object Uint8Array]"]=j["[object Uint8ClampedArray]"]=j["[object Uint16Array]"]=j["[object Uint32Array]"]=!0,j["[object Error]"]=j[O]=j["[object WeakMap]"]=!1,t.exports=function t(e,n,D,I,L,k){var M,R=1&n,P=2&n,C=4&n;if(D&&(M=L?D(e,I,L,k):D(e)),void 0!==M)return M;if(!x(e))return e;var q=m(e);if(q){if(M=_(e),!R)return c(e,M)}else{var N=p(e),V=N==O||"[object GeneratorFunction]"==N;if(g(e))return u(e,R);if(N==T||N==S||V&&!L){if(M=P||V?{}:v(e),!R)return P?f(e,a(M,e)):l(e,s(M,e))}else{if(!j[N])return L?e:{};M=y(e,N,R)}}k||(k=new r);var B=k.get(e);if(B)return B;k.set(e,M),w(e)?e.forEach((function(r){M.add(t(r,n,D,r,e,k))})):b(e)&&e.forEach((function(r,i){M.set(i,t(r,n,D,i,e,k))}));var $=q?void 0:(C?P?d:h:P?A:E)(e);return i($||e,(function(r,i){$&&(r=e[i=r]),o(M,i,t(r,n,D,i,e,k))})),M}},3118:(t,e,n)=>{var r=n(3218),i=Object.create,o=function(){function t(){}return function(e){if(!r(e))return{};if(i)return i(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=o},9881:(t,e,n)=>{var r=n(7816),i=n(9291)(r);t.exports=i},760:(t,e,n)=>{var r=n(9881);t.exports=function(t,e){var n=[];return r(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n}},1848:t=>{t.exports=function(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}},1078:(t,e,n)=>{var r=n(2488),i=n(7285);t.exports=function t(e,n,o,s,a){var u=-1,c=e.length;for(o||(o=i),a||(a=[]);++u<c;){var l=e[u];n>0&&o(l)?n>1?t(l,n-1,o,s,a):r(a,l):s||(a[a.length]=l)}return a}},8483:(t,e,n)=>{var r=n(5063)();t.exports=r},7816:(t,e,n)=>{var r=n(8483),i=n(3674);t.exports=function(t,e){return t&&r(t,e,i)}},7786:(t,e,n)=>{var r=n(1811),i=n(327);t.exports=function(t,e){for(var n=0,o=(e=r(e,t)).length;null!=t&&n<o;)t=t[i(e[n++])];return n&&n==o?t:void 0}},8866:(t,e,n)=>{var r=n(2488),i=n(1469);t.exports=function(t,e,n){var o=e(t);return i(t)?o:r(o,n(t))}},4239:(t,e,n)=>{var r=n(2705),i=n(9607),o=n(2333),s=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":s&&s in Object(t)?i(t):o(t)}},8565:t=>{var e=Object.prototype.hasOwnProperty;t.exports=function(t,n){return null!=t&&e.call(t,n)}},13:t=>{t.exports=function(t,e){return null!=t&&e in Object(t)}},2118:(t,e,n)=>{var r=n(1848),i=n(2722),o=n(2351);t.exports=function(t,e,n){return e==e?o(t,e,n):r(t,i,n)}},7556:(t,e,n)=>{var r=n(8668),i=n(7443),o=n(1196),s=n(9932),a=n(1717),u=n(4757),c=Math.min;t.exports=function(t,e,n){for(var l=n?o:i,f=t[0].length,h=t.length,d=h,p=Array(h),_=1/0,y=[];d--;){var v=t[d];d&&e&&(v=s(v,a(e))),_=c(v.length,_),p[d]=!n&&(e||f>=120&&v.length>=120)?new r(d&&v):void 0}v=t[0];var m=-1,g=p[0];t:for(;++m<f&&y.length<_;){var b=v[m],x=e?e(b):b;if(b=n||0!==b?b:0,!(g?u(g,x):l(y,x,n))){for(d=h;--d;){var w=p[d];if(!(w?u(w,x):l(t[d],x,n)))continue t}g&&g.push(x),y.push(b)}}return y}},9454:(t,e,n)=>{var r=n(4239),i=n(7005);t.exports=function(t){return i(t)&&"[object Arguments]"==r(t)}},939:(t,e,n)=>{var r=n(2492),i=n(7005);t.exports=function t(e,n,o,s,a){return e===n||(null==e||null==n||!i(e)&&!i(n)?e!=e&&n!=n:r(e,n,o,s,t,a))}},2492:(t,e,n)=>{var r=n(6384),i=n(7114),o=n(8351),s=n(6096),a=n(4160),u=n(1469),c=n(4144),l=n(6719),f="[object Arguments]",h="[object Array]",d="[object Object]",p=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,_,y,v){var m=u(t),g=u(e),b=m?h:a(t),x=g?h:a(e),w=(b=b==f?d:b)==d,E=(x=x==f?d:x)==d,A=b==x;if(A&&c(t)){if(!c(e))return!1;m=!0,w=!1}if(A&&!w)return v||(v=new r),m||l(t)?i(t,e,n,_,y,v):o(t,e,b,n,_,y,v);if(!(1&n)){var S=w&&p.call(t,"__wrapped__"),O=E&&p.call(e,"__wrapped__");if(S||O){var T=S?t.value():t,j=O?e.value():e;return v||(v=new r),y(T,j,n,_,v)}}return!!A&&(v||(v=new r),s(t,e,n,_,y,v))}},5588:(t,e,n)=>{var r=n(4160),i=n(7005);t.exports=function(t){return i(t)&&"[object Map]"==r(t)}},2958:(t,e,n)=>{var r=n(6384),i=n(939);t.exports=function(t,e,n,o){var s=n.length,a=s,u=!o;if(null==t)return!a;for(t=Object(t);s--;){var c=n[s];if(u&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++s<a;){var l=(c=n[s])[0],f=t[l],h=c[1];if(u&&c[2]){if(void 0===f&&!(l in t))return!1}else{var d=new r;if(o)var p=o(f,h,l,t,e,d);if(!(void 0===p?i(h,f,3,o,d):p))return!1}}return!0}},2722:t=>{t.exports=function(t){return t!=t}},8458:(t,e,n)=>{var r=n(3560),i=n(5346),o=n(3218),s=n(346),a=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,l=u.toString,f=c.hasOwnProperty,h=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(r(t)?h:a).test(s(t))}},9221:(t,e,n)=>{var r=n(4160),i=n(7005);t.exports=function(t){return i(t)&&"[object Set]"==r(t)}},8749:(t,e,n)=>{var r=n(4239),i=n(1780),o=n(7005),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&i(t.length)&&!!s[r(t)]}},7206:(t,e,n)=>{var r=n(1573),i=n(6432),o=n(6557),s=n(1469),a=n(9601);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?s(t)?i(t[0],t[1]):r(t):a(t)}},280:(t,e,n)=>{var r=n(5726),i=n(6916),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}},313:(t,e,n)=>{var r=n(3218),i=n(5726),o=n(3498),s=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return o(t);var e=i(t),n=[];for(var a in t)("constructor"!=a||!e&&s.call(t,a))&&n.push(a);return n}},9199:(t,e,n)=>{var r=n(9881),i=n(8612);t.exports=function(t,e){var n=-1,o=i(t)?Array(t.length):[];return r(t,(function(t,r,i){o[++n]=e(t,r,i)})),o}},1573:(t,e,n)=>{var r=n(2958),i=n(1499),o=n(2634);t.exports=function(t){var e=i(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},6432:(t,e,n)=>{var r=n(939),i=n(7361),o=n(9095),s=n(5403),a=n(9162),u=n(2634),c=n(327);t.exports=function(t,e){return s(t)&&a(e)?u(c(t),e):function(n){var s=i(n,t);return void 0===s&&s===e?o(n,t):r(e,s,3)}}},2689:(t,e,n)=>{var r=n(9932),i=n(7786),o=n(7206),s=n(9199),a=n(1131),u=n(1717),c=n(5022),l=n(6557),f=n(1469);t.exports=function(t,e,n){e=e.length?r(e,(function(t){return f(t)?function(e){return i(e,1===t.length?t[0]:t)}:t})):[l];var h=-1;e=r(e,u(o));var d=s(t,(function(t,n,i){return{criteria:r(e,(function(e){return e(t)})),index:++h,value:t}}));return a(d,(function(t,e){return c(t,e,n)}))}},371:t=>{t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},9152:(t,e,n)=>{var r=n(7786);t.exports=function(t){return function(e){return r(e,t)}}},8674:t=>{t.exports=function(t){return function(e){return null==t?void 0:t[e]}}},5976:(t,e,n)=>{var r=n(6557),i=n(5357),o=n(61);t.exports=function(t,e){return o(i(t,e,r),t+"")}},6560:(t,e,n)=>{var r=n(5703),i=n(8777),o=n(6557),s=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:o;t.exports=s},1131:t=>{t.exports=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}},2545:t=>{t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},531:(t,e,n)=>{var r=n(2705),i=n(9932),o=n(1469),s=n(3448),a=r?r.prototype:void 0,u=a?a.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return i(e,t)+"";if(s(e))return u?u.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},7561:(t,e,n)=>{var r=n(7990),i=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(i,""):t}},1717:t=>{t.exports=function(t){return function(e){return t(e)}}},7415:(t,e,n)=>{var r=n(9932);t.exports=function(t,e){return r(e,(function(e){return t[e]}))}},4757:t=>{t.exports=function(t,e){return t.has(e)}},4387:(t,e,n)=>{var r=n(9246);t.exports=function(t){return r(t)?t:[]}},4290:(t,e,n)=>{var r=n(6557);t.exports=function(t){return"function"==typeof t?t:r}},1811:(t,e,n)=>{var r=n(1469),i=n(5403),o=n(5514),s=n(9833);t.exports=function(t,e){return r(t)?t:i(t,e)?[t]:o(s(t))}},4318:(t,e,n)=>{var r=n(1149);t.exports=function(t){var e=new t.constructor(t.byteLength);return new r(e).set(new r(t)),e}},4626:(t,e,n)=>{t=n.nmd(t);var r=n(5639),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,s=o&&o.exports===i?r.Buffer:void 0,a=s?s.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=a?a(n):new t.constructor(n);return t.copy(r),r}},7157:(t,e,n)=>{var r=n(4318);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}},3147:t=>{var e=/\w*$/;t.exports=function(t){var n=new t.constructor(t.source,e.exec(t));return n.lastIndex=t.lastIndex,n}},419:(t,e,n)=>{var r=n(2705),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;t.exports=function(t){return o?Object(o.call(t)):{}}},7133:(t,e,n)=>{var r=n(4318);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},6393:(t,e,n)=>{var r=n(3448);t.exports=function(t,e){if(t!==e){var n=void 0!==t,i=null===t,o=t==t,s=r(t),a=void 0!==e,u=null===e,c=e==e,l=r(e);if(!u&&!l&&!s&&t>e||s&&a&&c&&!u&&!l||i&&a&&c||!n&&c||!o)return 1;if(!i&&!s&&!l&&t<e||l&&n&&o&&!i&&!s||u&&n&&o||!a&&o||!c)return-1}return 0}},5022:(t,e,n)=>{var r=n(6393);t.exports=function(t,e,n){for(var i=-1,o=t.criteria,s=e.criteria,a=o.length,u=n.length;++i<a;){var c=r(o[i],s[i]);if(c)return i>=u?c:c*("desc"==n[i]?-1:1)}return t.index-e.index}},278:t=>{t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}},8363:(t,e,n)=>{var r=n(4865),i=n(9465);t.exports=function(t,e,n,o){var s=!n;n||(n={});for(var a=-1,u=e.length;++a<u;){var c=e[a],l=o?o(n[c],t[c],c,n,t):void 0;void 0===l&&(l=t[c]),s?i(n,c,l):r(n,c,l)}return n}},8805:(t,e,n)=>{var r=n(8363),i=n(9551);t.exports=function(t,e){return r(t,i(t),e)}},1911:(t,e,n)=>{var r=n(8363),i=n(1442);t.exports=function(t,e){return r(t,i(t),e)}},4429:(t,e,n)=>{var r=n(5639)["__core-js_shared__"];t.exports=r},9291:(t,e,n)=>{var r=n(8612);t.exports=function(t,e){return function(n,i){if(null==n)return n;if(!r(n))return t(n,i);for(var o=n.length,s=e?o:-1,a=Object(n);(e?s--:++s<o)&&!1!==i(a[s],s,a););return n}}},5063:t=>{t.exports=function(t){return function(e,n,r){for(var i=-1,o=Object(e),s=r(e),a=s.length;a--;){var u=s[t?a:++i];if(!1===n(o[u],u,o))break}return e}}},7740:(t,e,n)=>{var r=n(7206),i=n(8612),o=n(3674);t.exports=function(t){return function(e,n,s){var a=Object(e);if(!i(e)){var u=r(n,3);e=o(e),n=function(t){return u(a[t],t,a)}}var c=t(e,n,s);return c>-1?a[u?e[c]:c]:void 0}}},8777:(t,e,n)=>{var r=n(852),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},7114:(t,e,n)=>{var r=n(8668),i=n(2908),o=n(4757);t.exports=function(t,e,n,s,a,u){var c=1&n,l=t.length,f=e.length;if(l!=f&&!(c&&f>l))return!1;var h=u.get(t),d=u.get(e);if(h&&d)return h==e&&d==t;var p=-1,_=!0,y=2&n?new r:void 0;for(u.set(t,e),u.set(e,t);++p<l;){var v=t[p],m=e[p];if(s)var g=c?s(m,v,p,e,t,u):s(v,m,p,t,e,u);if(void 0!==g){if(g)continue;_=!1;break}if(y){if(!i(e,(function(t,e){if(!o(y,e)&&(v===t||a(v,t,n,s,u)))return y.push(e)}))){_=!1;break}}else if(v!==m&&!a(v,m,n,s,u)){_=!1;break}}return u.delete(t),u.delete(e),_}},8351:(t,e,n)=>{var r=n(2705),i=n(1149),o=n(7813),s=n(7114),a=n(8776),u=n(1814),c=r?r.prototype:void 0,l=c?c.valueOf:void 0;t.exports=function(t,e,n,r,c,f,h){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!f(new i(t),new i(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var d=a;case"[object Set]":var p=1&r;if(d||(d=u),t.size!=e.size&&!p)return!1;var _=h.get(t);if(_)return _==e;r|=2,h.set(t,e);var y=s(d(t),d(e),r,c,f,h);return h.delete(t),y;case"[object Symbol]":if(l)return l.call(t)==l.call(e)}return!1}},6096:(t,e,n)=>{var r=n(8234),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,o,s,a){var u=1&n,c=r(t),l=c.length;if(l!=r(e).length&&!u)return!1;for(var f=l;f--;){var h=c[f];if(!(u?h in e:i.call(e,h)))return!1}var d=a.get(t),p=a.get(e);if(d&&p)return d==e&&p==t;var _=!0;a.set(t,e),a.set(e,t);for(var y=u;++f<l;){var v=t[h=c[f]],m=e[h];if(o)var g=u?o(m,v,h,e,t,a):o(v,m,h,t,e,a);if(!(void 0===g?v===m||s(v,m,n,o,a):g)){_=!1;break}y||(y="constructor"==h)}if(_&&!y){var b=t.constructor,x=e.constructor;b==x||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof x&&x instanceof x||(_=!1)}return a.delete(t),a.delete(e),_}},9464:(t,e,n)=>{var r=n(8674)({"&":"&","<":"<",">":">",'"':""","'":"'"});t.exports=r},1957:(t,e,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},8234:(t,e,n)=>{var r=n(8866),i=n(9551),o=n(3674);t.exports=function(t){return r(t,o,i)}},6904:(t,e,n)=>{var r=n(8866),i=n(1442),o=n(1704);t.exports=function(t){return r(t,o,i)}},5050:(t,e,n)=>{var r=n(7019);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},1499:(t,e,n)=>{var r=n(9162),i=n(3674);t.exports=function(t){for(var e=i(t),n=e.length;n--;){var o=e[n],s=t[o];e[n]=[o,s,r(s)]}return e}},852:(t,e,n)=>{var r=n(8458),i=n(7801);t.exports=function(t,e){var n=i(t,e);return r(n)?n:void 0}},5924:(t,e,n)=>{var r=n(5569)(Object.getPrototypeOf,Object);t.exports=r},9607:(t,e,n)=>{var r=n(2705),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=r?r.toStringTag:void 0;t.exports=function(t){var e=o.call(t,a),n=t[a];try{t[a]=void 0;var r=!0}catch(t){}var i=s.call(t);return r&&(e?t[a]=n:delete t[a]),i}},9551:(t,e,n)=>{var r=n(4963),i=n(479),o=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,a=s?function(t){return null==t?[]:(t=Object(t),r(s(t),(function(e){return o.call(t,e)})))}:i;t.exports=a},1442:(t,e,n)=>{var r=n(2488),i=n(5924),o=n(9551),s=n(479),a=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)r(e,o(t)),t=i(t);return e}:s;t.exports=a},4160:(t,e,n)=>{var r=n(8552),i=n(7071),o=n(3818),s=n(8525),a=n(577),u=n(4239),c=n(346),l="[object Map]",f="[object Promise]",h="[object Set]",d="[object WeakMap]",p="[object DataView]",_=c(r),y=c(i),v=c(o),m=c(s),g=c(a),b=u;(r&&b(new r(new ArrayBuffer(1)))!=p||i&&b(new i)!=l||o&&b(o.resolve())!=f||s&&b(new s)!=h||a&&b(new a)!=d)&&(b=function(t){var e=u(t),n="[object Object]"==e?t.constructor:void 0,r=n?c(n):"";if(r)switch(r){case _:return p;case y:return l;case v:return f;case m:return h;case g:return d}return e}),t.exports=b},7801:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},222:(t,e,n)=>{var r=n(1811),i=n(5694),o=n(1469),s=n(5776),a=n(1780),u=n(327);t.exports=function(t,e,n){for(var c=-1,l=(e=r(e,t)).length,f=!1;++c<l;){var h=u(e[c]);if(!(f=null!=t&&n(t,h)))break;t=t[h]}return f||++c!=l?f:!!(l=null==t?0:t.length)&&a(l)&&s(h,l)&&(o(t)||i(t))}},1789:(t,e,n)=>{var r=n(4536);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},401:t=>{t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},7667:(t,e,n)=>{var r=n(4536),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(e,t)?e[t]:void 0}},1327:(t,e,n)=>{var r=n(4536),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:i.call(e,t)}},1866:(t,e,n)=>{var r=n(4536);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this}},3824:t=>{var e=Object.prototype.hasOwnProperty;t.exports=function(t){var n=t.length,r=new t.constructor(n);return n&&"string"==typeof t[0]&&e.call(t,"index")&&(r.index=t.index,r.input=t.input),r}},9148:(t,e,n)=>{var r=n(4318),i=n(7157),o=n(3147),s=n(419),a=n(7133);t.exports=function(t,e,n){var u=t.constructor;switch(e){case"[object ArrayBuffer]":return r(t);case"[object Boolean]":case"[object Date]":return new u(+t);case"[object DataView]":return i(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return a(t,n);case"[object Map]":case"[object Set]":return new u;case"[object Number]":case"[object String]":return new u(t);case"[object RegExp]":return o(t);case"[object Symbol]":return s(t)}}},8517:(t,e,n)=>{var r=n(3118),i=n(5924),o=n(5726);t.exports=function(t){return"function"!=typeof t.constructor||o(t)?{}:r(i(t))}},7285:(t,e,n)=>{var r=n(2705),i=n(5694),o=n(1469),s=r?r.isConcatSpreadable:void 0;t.exports=function(t){return o(t)||i(t)||!!(s&&t&&t[s])}},5776:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}},6612:(t,e,n)=>{var r=n(7813),i=n(8612),o=n(5776),s=n(3218);t.exports=function(t,e,n){if(!s(n))return!1;var a=typeof e;return!!("number"==a?i(n)&&o(e,n.length):"string"==a&&e in n)&&r(n[e],t)}},5403:(t,e,n)=>{var r=n(1469),i=n(3448),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!i(t))||s.test(t)||!o.test(t)||null!=e&&t in Object(e)}},7019:t=>{t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},5346:(t,e,n)=>{var r,i=n(4429),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!o&&o in t}},5726:t=>{var e=Object.prototype;t.exports=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}},9162:(t,e,n)=>{var r=n(3218);t.exports=function(t){return t==t&&!r(t)}},7040:t=>{t.exports=function(){this.__data__=[],this.size=0}},4125:(t,e,n)=>{var r=n(8470),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0||(n==e.length-1?e.pop():i.call(e,n,1),--this.size,0))}},2117:(t,e,n)=>{var r=n(8470);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},7518:(t,e,n)=>{var r=n(8470);t.exports=function(t){return r(this.__data__,t)>-1}},4705:(t,e,n)=>{var r=n(8470);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},4785:(t,e,n)=>{var r=n(1989),i=n(8407),o=n(7071);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},1285:(t,e,n)=>{var r=n(5050);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},6e3:(t,e,n)=>{var r=n(5050);t.exports=function(t){return r(this,t).get(t)}},9916:(t,e,n)=>{var r=n(5050);t.exports=function(t){return r(this,t).has(t)}},5265:(t,e,n)=>{var r=n(5050);t.exports=function(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},8776:t=>{t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}},2634:t=>{t.exports=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}},4523:(t,e,n)=>{var r=n(8306);t.exports=function(t){var e=r(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}},4536:(t,e,n)=>{var r=n(852)(Object,"create");t.exports=r},6916:(t,e,n)=>{var r=n(5569)(Object.keys,Object);t.exports=r},3498:t=>{t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},1167:(t,e,n)=>{t=n.nmd(t);var r=n(1957),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,s=o&&o.exports===i&&r.process,a=function(){try{return o&&o.require&&o.require("util").types||s&&s.binding&&s.binding("util")}catch(t){}}();t.exports=a},2333:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},5569:t=>{t.exports=function(t,e){return function(n){return t(e(n))}}},5357:(t,e,n)=>{var r=n(6874),i=Math.max;t.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,s=-1,a=i(o.length-e,0),u=Array(a);++s<a;)u[s]=o[e+s];s=-1;for(var c=Array(e+1);++s<e;)c[s]=o[s];return c[e]=n(u),r(t,this,c)}}},5639:(t,e,n)=>{var r=n(1957),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},619:t=>{t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},2385:t=>{t.exports=function(t){return this.__data__.has(t)}},1814:t=>{t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}},61:(t,e,n)=>{var r=n(6560),i=n(1275)(r);t.exports=i},1275:t=>{var e=Date.now;t.exports=function(t){var n=0,r=0;return function(){var i=e(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}},7465:(t,e,n)=>{var r=n(8407);t.exports=function(){this.__data__=new r,this.size=0}},3779:t=>{t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},7599:t=>{t.exports=function(t){return this.__data__.get(t)}},4758:t=>{t.exports=function(t){return this.__data__.has(t)}},4309:(t,e,n)=>{var r=n(8407),i=n(7071),o=n(3369);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!i||s.length<199)return s.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(s)}return n.set(t,e),this.size=n.size,this}},2351:t=>{t.exports=function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}},5514:(t,e,n)=>{var r=n(4523),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,s=r((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,(function(t,n,r,i){e.push(r?i.replace(o,"$1"):n||t)})),e}));t.exports=s},327:(t,e,n)=>{var r=n(3448);t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},346:t=>{var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},7990:t=>{var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},9567:(t,e,n)=>{var r=n(554);t.exports=function(t,e){var n;if("function"!=typeof e)throw new TypeError("Expected a function");return t=r(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=void 0),n}}},6678:(t,e,n)=>{var r=n(5990);t.exports=function(t){return r(t,4)}},5703:t=>{t.exports=function(t){return function(){return t}}},6073:(t,e,n)=>{t.exports=n(4486)},7813:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},1675:(t,e,n)=>{var r=n(9464),i=n(9833),o=/[&<>"']/g,s=RegExp(o.source);t.exports=function(t){return(t=i(t))&&s.test(t)?t.replace(o,r):t}},3105:(t,e,n)=>{var r=n(4963),i=n(760),o=n(7206),s=n(1469);t.exports=function(t,e){return(s(t)?r:i)(t,o(e,3))}},3311:(t,e,n)=>{var r=n(7740)(n(998));t.exports=r},998:(t,e,n)=>{var r=n(1848),i=n(7206),o=n(554),s=Math.max;t.exports=function(t,e,n){var a=null==t?0:t.length;if(!a)return-1;var u=null==n?0:o(n);return u<0&&(u=s(a+u,0)),r(t,i(e,3),u)}},5564:(t,e,n)=>{var r=n(1078);t.exports=function(t){return null!=t&&t.length?r(t,1):[]}},4486:(t,e,n)=>{var r=n(7412),i=n(9881),o=n(4290),s=n(1469);t.exports=function(t,e){return(s(t)?r:i)(t,o(e))}},7361:(t,e,n)=>{var r=n(7786);t.exports=function(t,e,n){var i=null==t?void 0:r(t,e);return void 0===i?n:i}},8721:(t,e,n)=>{var r=n(8565),i=n(222);t.exports=function(t,e){return null!=t&&i(t,e,r)}},9095:(t,e,n)=>{var r=n(13),i=n(222);t.exports=function(t,e){return null!=t&&i(t,e,r)}},6557:t=>{t.exports=function(t){return t}},4721:(t,e,n)=>{var r=n(2118),i=n(8612),o=n(7037),s=n(554),a=n(2628),u=Math.max;t.exports=function(t,e,n,c){t=i(t)?t:a(t),n=n&&!c?s(n):0;var l=t.length;return n<0&&(n=u(l+n,0)),o(t)?n<=l&&t.indexOf(e,n)>-1:!!l&&r(t,e,n)>-1}},5325:(t,e,n)=>{var r=n(9932),i=n(7556),o=n(5976),s=n(4387),a=o((function(t){var e=r(t,s);return e.length&&e[0]===t[0]?i(e):[]}));t.exports=a},5694:(t,e,n)=>{var r=n(9454),i=n(7005),o=Object.prototype,s=o.hasOwnProperty,a=o.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(t){return i(t)&&s.call(t,"callee")&&!a.call(t,"callee")};t.exports=u},1469:t=>{var e=Array.isArray;t.exports=e},8612:(t,e,n)=>{var r=n(3560),i=n(1780);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},9246:(t,e,n)=>{var r=n(8612),i=n(7005);t.exports=function(t){return i(t)&&r(t)}},4144:(t,e,n)=>{t=n.nmd(t);var r=n(5639),i=n(5062),o=e&&!e.nodeType&&e,s=o&&t&&!t.nodeType&&t,a=s&&s.exports===o?r.Buffer:void 0,u=(a?a.isBuffer:void 0)||i;t.exports=u},3560:(t,e,n)=>{var r=n(4239),i=n(3218);t.exports=function(t){if(!i(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},1780:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},6688:(t,e,n)=>{var r=n(5588),i=n(1717),o=n(1167),s=o&&o.isMap,a=s?i(s):r;t.exports=a},3218:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},7005:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},2928:(t,e,n)=>{var r=n(9221),i=n(1717),o=n(1167),s=o&&o.isSet,a=s?i(s):r;t.exports=a},7037:(t,e,n)=>{var r=n(4239),i=n(1469),o=n(7005);t.exports=function(t){return"string"==typeof t||!i(t)&&o(t)&&"[object String]"==r(t)}},3448:(t,e,n)=>{var r=n(4239),i=n(7005);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},6719:(t,e,n)=>{var r=n(8749),i=n(1717),o=n(1167),s=o&&o.isTypedArray,a=s?i(s):r;t.exports=a},3674:(t,e,n)=>{var r=n(4636),i=n(280),o=n(8612);t.exports=function(t){return o(t)?r(t):i(t)}},1704:(t,e,n)=>{var r=n(4636),i=n(313),o=n(8612);t.exports=function(t){return o(t)?r(t,!0):i(t)}},928:t=>{t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},8306:(t,e,n)=>{var r=n(3369);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(i.Cache||r),n}i.Cache=r,t.exports=i},308:t=>{t.exports=function(){}},1463:(t,e,n)=>{var r=n(9567);t.exports=function(t){return r(2,t)}},9601:(t,e,n)=>{var r=n(371),i=n(9152),o=n(5403),s=n(327);t.exports=function(t){return o(t)?r(s(t)):i(t)}},9734:(t,e,n)=>{var r=n(1078),i=n(2689),o=n(5976),s=n(6612),a=o((function(t,e){if(null==t)return[];var n=e.length;return n>1&&s(t,e[0],e[1])?e=[]:n>2&&s(e[0],e[1],e[2])&&(e=[e[0]]),i(t,r(e,1),[])}));t.exports=a},240:(t,e,n)=>{var r=n(9750),i=n(531),o=n(554),s=n(9833);t.exports=function(t,e,n){return t=s(t),n=null==n?0:r(o(n),0,t.length),e=i(e),t.slice(n,n+e.length)==e}},479:t=>{t.exports=function(){return[]}},5062:t=>{t.exports=function(){return!1}},8601:(t,e,n)=>{var r=n(4841);t.exports=function(t){return t?Infinity===(t=r(t))||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},554:(t,e,n)=>{var r=n(8601);t.exports=function(t){var e=r(t),n=e%1;return e==e?n?e-n:e:0}},4841:(t,e,n)=>{var r=n(7561),i=n(3218),o=n(3448),s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=a.test(t);return n||u.test(t)?c(t.slice(2),n?2:8):s.test(t)?NaN:+t}},9833:(t,e,n)=>{var r=n(531);t.exports=function(t){return null==t?"":r(t)}},2628:(t,e,n)=>{var r=n(7415),i=n(3674);t.exports=function(t){return null==t?[]:r(t,i(t))}},5936:(t,e,n)=>{"use strict";e.__esModule=!0,e.default=function(t,e){if(i)return i.call(t,e);var n=t.parentNode;if(n&&"function"==typeof n.querySelectorAll)for(var r=n.querySelectorAll(e),o=0;o<r.length;o++)if(r[o]===t)return!0;return!1};var r=n.g.Element&&n.g.Element.prototype,i=r&&(r.matches||r.matchesSelector||r.webkitMatchesSelector||r.mozMatchesSelector||r.msMatchesSelector||r.oMatchesSelector);t.exports=e.default,t.exports.default=e.default},7418:t=>{"use strict";var e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,i){for(var o,s,a=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),u=1;u<arguments.length;u++){for(var c in o=Object(arguments[u]))n.call(o,c)&&(a[c]=o[c]);if(e){s=e(o);for(var l=0;l<s.length;l++)r.call(o,s[l])&&(a[s[l]]=o[s[l]])}}return a}},443:(t,e)=>{"use strict";e.Z=function(t,e){return new Promise((function(n){setTimeout((function(){n(e)}),t)}))}},4155:t=>{var e,n,r=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(t){if(e===setTimeout)return setTimeout(t,0);if((e===i||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(n){try{return e.call(null,t,0)}catch(n){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:i}catch(t){e=i}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(t){n=o}}();var a,u=[],c=!1,l=-1;function f(){c&&a&&(c=!1,a.length?u=a.concat(u):l=-1,u.length&&h())}function h(){if(!c){var t=s(f);c=!0;for(var e=u.length;e;){for(a=u,u=[];++l<e;)a&&a[l].run();l=-1,e=u.length}a=null,c=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{return n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function p(){}r.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];u.push(new d(t,e)),1!==u.length||c||s(h)},d.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=p,r.addListener=p,r.once=p,r.off=p,r.removeListener=p,r.removeAllListeners=p,r.emit=p,r.prependListener=p,r.prependOnceListener=p,r.listeners=function(t){return[]},r.binding=function(t){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},2587:t=>{"use strict";function e(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,n,r,i){n=n||"&",r=r||"=";var o={};if("string"!=typeof t||0===t.length)return o;var s=/\+/g;t=t.split(n);var a=1e3;i&&"number"==typeof i.maxKeys&&(a=i.maxKeys);var u=t.length;a>0&&u>a&&(u=a);for(var c=0;c<u;++c){var l,f,h,d,p=t[c].replace(s,"%20"),_=p.indexOf(r);_>=0?(l=p.substr(0,_),f=p.substr(_+1)):(l=p,f=""),h=decodeURIComponent(l),d=decodeURIComponent(f),e(o,h)?Array.isArray(o[h])?o[h].push(d):o[h]=[o[h],d]:o[h]=d}return o}},2361:t=>{"use strict";var e=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,n,r,i){return n=n||"&",r=r||"=",null===t&&(t=void 0),"object"==typeof t?Object.keys(t).map((function(i){var o=encodeURIComponent(e(i))+r;return Array.isArray(t[i])?t[i].map((function(t){return o+encodeURIComponent(e(t))})).join(n):o+encodeURIComponent(e(t[i]))})).join(n):i?encodeURIComponent(e(i))+r+encodeURIComponent(e(t)):""}},7673:(t,e,n)=>{"use strict";e.decode=e.parse=n(2587),e.encode=e.stringify=n(2361)},1095:t=>{var e={iterator:"undefined"!=typeof Symbol?Symbol.iterator:"@@iterator"};function n(t,e){throw new Error("don't know how to "+t+" collection: "+e)}function r(t,n){return"iterator"===n?t[e.iterator]||t.next:t[e[n]]}function i(t){var n=t[e.iterator];return n?n.call(t):t.next?t:u(t)?new o(t):l(t)?new s(t):void 0}function o(t){this.arr=t,this.index=0}function s(t){this.obj=t,this.keys=Object.keys(t),this.index=0}o.prototype.next=function(){return this.index<this.arr.length?{value:this.arr[this.index++],done:!1}:{done:!0}},s.prototype.next=function(){if(this.index<this.keys.length){var t=this.keys[this.index++];return{value:[t,this.obj[t]],done:!1}}return{done:!0}};var a=Object.prototype.toString,u="function"==typeof Array.isArray?Array.isArray:function(t){return"[object Array]"==a.call(t)};function c(t){return"function"==typeof t}function l(t){return t instanceof Object&&Object.getPrototypeOf(t)===Object.getPrototypeOf({})}function f(t){return"number"==typeof t}function h(t){this["@@transducer/reduced"]=!0,this["@@transducer/value"]=t}function d(t){return t instanceof h||t&&t["@@transducer/reduced"]}function p(t){return t["@@transducer/value"]}function _(t){return d(t)?p(t):t}function y(t,e,o){if(u(t)){for(var s=o,a=-1,c=t.length;++a<c;)if(d(s=e["@@transducer/step"](s,t[a]))){s=p(s);break}return e["@@transducer/result"](s)}if(l(t)||r(t,"iterator")){s=o;for(var f=i(t),h=f.next();!h.done;){if(d(s=e["@@transducer/step"](s,h.value))){s=p(s);break}h=f.next()}return e["@@transducer/result"](s)}n("iterate",t)}function v(t,e,n,r){return e=e(n),void 0===r&&(r=e["@@transducer/init"]()),y(t,e,r)}function m(){var t=Array.prototype.slice.call(arguments);return function(e){for(var n=e,r=t.length-1;r>=0;r--)n=t[r](n);return n}}function g(t,e,n){if(!e)return t;switch(n=null!=n?n:1){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};default:return t.bind(e)}}function b(t,e){this.xform=e,this.f=t}function x(t,e,n){return c(t)&&(n=e,e=t,t=null),e=g(e,n),t?u(t)?function(t,e,n){var r=-1,i=t.length,o=Array(i);for(e=g(e,n,2);++r<i;)o[r]=e(t[r],r);return o}(t,e,n):$(t,x(e)):function(t){return new b(e,t)}}function w(t,e){this.xform=e,this.f=t}function E(t,e,n){return c(t)&&(n=e,e=t,t=null),e=g(e,n),t?u(t)?function(t,e,n){var r=t.length,i=[];e=g(e,n,2);for(var o=0;o<r;o++)e(t[o],o)&&i.push(t[o]);return i}(t,e,n):$(t,E(e)):function(t){return new w(e,t)}}function A(t){this.xform=t,this.last=void 0}function S(t,e){this.xform=e,this.f=t}function O(t,e){this.n=t,this.i=0,this.xform=e}function T(t,e){this.n=t,this.i=0,this.xform=e}function j(t,e){this.xform=e,this.f=t,this.dropping=!0}function D(t,e){this.n=t,this.i=0,this.xform=e,this.part=new Array(t)}b.prototype["@@transducer/init"]=function(){return this.xform["@@transducer/init"]()},b.prototype["@@transducer/result"]=function(t){return this.xform["@@transducer/result"](t)},b.prototype["@@transducer/step"]=function(t,e){return this.xform["@@transducer/step"](t,this.f(e))},w.prototype["@@transducer/init"]=function(){return this.xform["@@transducer/init"]()},w.prototype["@@transducer/result"]=function(t){return this.xform["@@transducer/result"](t)},w.prototype["@@transducer/step"]=function(t,e){return this.f(e)?this.xform["@@transducer/step"](t,e):t},A.prototype["@@transducer/init"]=function(){return this.xform["@@transducer/init"]()},A.prototype["@@transducer/result"]=function(t){return this.xform["@@transducer/result"](t)},A.prototype["@@transducer/step"]=function(t,e){return e!==this.last?(this.last=e,this.xform["@@transducer/step"](t,e)):t},S.prototype["@@transducer/init"]=function(){return this.xform["@@transducer/init"]()},S.prototype["@@transducer/result"]=function(t){return this.xform["@@transducer/result"](t)},S.prototype["@@transducer/step"]=function(t,e){return this.f(e)?this.xform["@@transducer/step"](t,e):new h(t)},O.prototype["@@transducer/init"]=function(){return this.xform["@@transducer/init"]()},O.prototype["@@transducer/result"]=function(t){return this.xform["@@transducer/result"](t)},O.prototype["@@transducer/step"]=function(t,e){var n;return this.i<this.n&&(t=this.xform["@@transducer/step"](t,e),this.i+1>=this.n&&(t=d(n=t)?n:new h(n))),this.i++,t},T.prototype["@@transducer/init"]=function(){return this.xform["@@transducer/init"]()},T.prototype["@@transducer/result"]=function(t){return this.xform["@@transducer/result"](t)},T.prototype["@@transducer/step"]=function(t,e){return this.i++<this.n?t:this.xform["@@transducer/step"](t,e)},j.prototype["@@transducer/init"]=function(){return this.xform["@@transducer/init"]()},j.prototype["@@transducer/result"]=function(t){return this.xform["@@transducer/result"](t)},j.prototype["@@transducer/step"]=function(t,e){if(this.dropping){if(this.f(e))return t;this.dropping=!1}return this.xform["@@transducer/step"](t,e)},D.prototype["@@transducer/init"]=function(){return this.xform["@@transducer/init"]()},D.prototype["@@transducer/result"]=function(t){return this.i>0?_(this.xform["@@transducer/step"](t,this.part.slice(0,this.i))):this.xform["@@transducer/result"](t)},D.prototype["@@transducer/step"]=function(t,e){if(this.part[this.i]=e,this.i+=1,this.i===this.n){var n=this.part.slice(0,this.n);return this.part=new Array(this.n),this.i=0,this.xform["@@transducer/step"](t,n)}return t};var I={};function L(t,e){this.f=t,this.xform=e,this.part=[],this.last=I}function k(t,e){this.sep=t,this.xform=e,this.started=!1}function M(t,e){this.xform=e,this.n=t}function R(t,e){this.xform=e,this.n=t,this.i=-1}function P(t){this.xform=t}function C(t){return new P(t)}function q(t,e){return t.push(e),t}function N(t,e){if(u(e)&&2===e.length)t[e[0]]=e[1];else for(var n=Object.keys(e),r=n.length,i=0;i<r;i++)t[n[i]]=e[n[i]];return t}L.prototype["@@transducer/init"]=function(){return this.xform["@@transducer/init"]()},L.prototype["@@transducer/result"]=function(t){var e=this.part.length;return e>0?_(this.xform["@@transducer/step"](t,this.part.slice(0,e))):this.xform["@@transducer/result"](t)},L.prototype["@@transducer/step"]=function(t,e){var n=this.f(e);return n===this.last||this.last===I?this.part.push(e):(t=this.xform["@@transducer/step"](t,this.part),this.part=[e]),this.last=n,t},k.prototype["@@transducer/init"]=function(){return this.xform["@@transducer/init"]()},k.prototype["@@transducer/result"]=function(t){return this.xform["@@transducer/result"](t)},k.prototype["@@transducer/step"]=function(t,e){if(this.started){var n=this.xform["@@transducer/step"](t,this.sep);return d(n)?n:this.xform["@@transducer/step"](n,e)}return this.started=!0,this.xform["@@transducer/step"](t,e)},M.prototype["@@transducer/init"]=function(){return this.xform["@@transducer/init"]()},M.prototype["@@transducer/result"]=function(t){return this.xform["@@transducer/result"](t)},M.prototype["@@transducer/step"]=function(t,e){for(var n=this.n,r=t,i=0;i<n&&!d(r=this.xform["@@transducer/step"](r,e));i++);return r},R.prototype["@@transducer/init"]=function(){return this.xform["@@transducer/init"]()},R.prototype["@@transducer/result"]=function(t){return this.xform["@@transducer/result"](t)},R.prototype["@@transducer/step"]=function(t,e){return this.i+=1,this.i%this.n==0?this.xform["@@transducer/step"](t,e):t},P.prototype["@@transducer/init"]=function(){return this.xform["@@transducer/init"]()},P.prototype["@@transducer/result"]=function(t){return this.xform["@@transducer/result"](t)},P.prototype["@@transducer/step"]=function(t,e){var n=this.xform,r={"@@transducer/init":function(){return n["@@transducer/init"]()},"@@transducer/result":function(t){return t},"@@transducer/step":function(t,e){var r=n["@@transducer/step"](t,e);return d(r)?p(r):r}};return y(e,r,t)};var V={"@@transducer/init":function(){return[]},"@@transducer/result":function(t){return t}};V["@@transducer/step"]=q;var B={};function $(t,e){return u(t)?v(t,e,V,[]):l(t)?v(t,e,B,{}):t["@@transducer/step"]?(i=t["@@transducer/init"]?t["@@transducer/init"]():new t.constructor,v(t,e,t,i)):r(t,"iterator")?new H(e,t):void n("sequence",t);var i}B["@@transducer/init"]=function(){return{}},B["@@transducer/result"]=function(t){return t},B["@@transducer/step"]=N;var F={};function U(t,e){this.xform=t(F),this.iter=e}function H(t,e){this.iter=i(e),this.items=[],this.stepper=new U(t,i(e))}F["@@transducer/result"]=function(t){return d(t)?p(t):t},F["@@transducer/step"]=function(t,e){return t.items.push(e),t.rest},U.prototype["@@transducer/step"]=function(t){for(var e=t.items.length;t.items.length===e;){var n=this.iter.next();if(n.done||d(n.value)){this.xform["@@transducer/result"](this);break}this.xform["@@transducer/step"](t,n.value)}},H.prototype[e.iterator]=function(){return this},H.prototype.next=function(){return this["@@transducer/step"](),this.items.length?{value:this.items.pop(),done:!1}:{done:!0}},H.prototype["@@transducer/step"]=function(){this.items.length||this.stepper["@@transducer/step"](this)},t.exports={reduce:y,transformer:function(t){var e={"@@transducer/init":function(){throw new Error("init value unavailable")},"@@transducer/result":function(t){return t}};return e["@@transducer/step"]=t,e},Reduced:h,isReduced:d,iterator:i,push:q,merge:N,transduce:v,seq:$,toArray:function(t,e){return e?v(t,e,V,[]):y(t,V,[])},toObj:function(t,e){return e?v(t,e,B,{}):y(t,B,{})},toIter:function(t,e){return e?new H(e,t):i(t)},into:function(t,e,r){return u(t)?v(r,e,V,t):l(t)?v(r,e,B,t):t["@@transducer/step"]?v(r,e,t,t):void n("into",t)},compose:m,map:x,filter:E,remove:function(t,e,n){return c(t)&&(n=e,e=t,t=null),e=g(e,n),E(t,(function(t){return!e(t)}))},cat:C,mapcat:function(t,e){return m(x(t=g(t,e)),C)},keep:function(t){return E(t,(function(t){return null!=t}))},dedupe:function t(e){return e?$(e,t()):function(t){return new A(t)}},take:function t(e,n){return f(e)&&(n=e,e=null),e?$(e,t(n)):function(t){return new O(n,t)}},takeWhile:function t(e,n,r){return c(e)&&(r=n,n=e,e=null),n=g(n,r),e?$(e,t(n)):function(t){return new S(n,t)}},takeNth:function t(e,n){return 1===arguments.length?(n=e,function(t){return new R(n,t)}):$(e,t(n))},drop:function t(e,n){return f(e)&&(n=e,e=null),e?$(e,t(n)):function(t){return new T(n,t)}},dropWhile:function t(e,n,r){return c(e)&&(r=n,n=e,e=null),n=g(n,r),e?$(e,t(n)):function(t){return new j(n,t)}},partition:function t(e,n){return f(e)&&(n=e,e=null),e?$(e,t(n)):function(t){return new D(n,t)}},partitionBy:function t(e,n,r){return c(e)&&(r=n,n=e,e=null),n=g(n,r),e?$(e,t(n)):function(t){return new L(n,t)}},interpose:function t(e,n){return 1===arguments.length?(n=e,function(t){return new k(n,t)}):$(e,t(n))},repeat:function t(e,n){return 1===arguments.length?(n=e,function(t){return new M(n,t)}):$(e,t(n))},range:function(t){for(var e=new Array(t),n=0;n<e.length;n++)e[n]=n;return e},LazyTransformer:H}},1010:(t,e,n)=>{"use strict";e.Kg=function(t,e){var n=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";!function(t){t.hot&&t.hot.accept()}(t);var r=i.get(t);if(r||(r=new Set,i.set(t,r)),r.has(n))throw new Error("ud functions can only be used once per module with a given key");r.add(n);var o=!1,s=void 0;return t.hot&&(t.hot.data&&t.hot.data.__ud__&&Object.prototype.hasOwnProperty.call(t.hot.data.__ud__,n)&&(s=t.hot.data.__ud__[n],o=!0),t.hot.dispose((function(t){t.__ud__||(t.__ud__={}),t.__ud__[n]=s}))),o||(s=e()),s}(t,(function(){if(!t.hot)return{fn:null,wrapper:e};var n={fn:null,wrapper:null},i=r(e.length).map((function(t){return"a"+t})).join(",");return n.wrapper=new Function("shared","\n 'use strict';\n return function ".concat(e.name,"__ud_wrapper(").concat(i,") {\n if (new.target) {\n return Reflect.construct(shared.fn, arguments, new.target);\n } else {\n return shared.fn.apply(this, arguments);\n }\n };\n "))(n),e.prototype?(n.wrapper.prototype=Object.create(e.prototype),n.wrapper.prototype.constructor=n.wrapper):n.wrapper.prototype=e.prototype,n}),"--defn-shared-"+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:""));return n.fn=e,t.hot&&(e.prototype&&n.wrapper.prototype&&Object.getPrototypeOf(n.wrapper.prototype)!==e.prototype&&Object.setPrototypeOf(n.wrapper.prototype,e.prototype),Object.setPrototypeOf(n.wrapper,e)),n.wrapper};var r=n(3758),i=(n(3687),new WeakMap)},1496:t=>{"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},384:t=>{t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},9539:(t,e,n)=>{var r=n(4155),i=/%[sdj%]/g;e.format=function(t){if(!v(t)){for(var e=[],n=0;n<arguments.length;n++)e.push(a(arguments[n]));return e.join(" ")}n=1;for(var r=arguments,o=r.length,s=String(t).replace(i,(function(t){if("%%"===t)return"%";if(n>=o)return t;switch(t){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return t}})),u=r[n];n<o;u=r[++n])_(u)||!b(u)?s+=" "+u:s+=" "+a(u);return s},e.deprecate=function(t,i){if(m(n.g.process))return function(){return e.deprecate(t,i).apply(this,arguments)};if(!0===r.noDeprecation)return t;var o=!1;return function(){if(!o){if(r.throwDeprecation)throw new Error(i);r.traceDeprecation?console.trace(i):console.error(i),o=!0}return t.apply(this,arguments)}};var o,s={};function a(t,n){var r={seen:[],stylize:c};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),p(n)?r.showHidden=n:n&&e._extend(r,n),m(r.showHidden)&&(r.showHidden=!1),m(r.depth)&&(r.depth=2),m(r.colors)&&(r.colors=!1),m(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=u),l(r,t,r.depth)}function u(t,e){var n=a.styles[e];return n?"["+a.colors[n][0]+"m"+t+"["+a.colors[n][1]+"m":t}function c(t,e){return t}function l(t,n,r){if(t.customInspect&&n&&E(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,t);return v(i)||(i=l(t,i,r)),i}var o=function(t,e){if(m(e))return t.stylize("undefined","undefined");if(v(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}return y(e)?t.stylize(""+e,"number"):p(e)?t.stylize(""+e,"boolean"):_(e)?t.stylize("null","null"):void 0}(t,n);if(o)return o;var s=Object.keys(n),a=function(t){var e={};return t.forEach((function(t,n){e[t]=!0})),e}(s);if(t.showHidden&&(s=Object.getOwnPropertyNames(n)),w(n)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return f(n);if(0===s.length){if(E(n)){var u=n.name?": "+n.name:"";return t.stylize("[Function"+u+"]","special")}if(g(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(x(n))return t.stylize(Date.prototype.toString.call(n),"date");if(w(n))return f(n)}var c,b="",A=!1,S=["{","}"];return d(n)&&(A=!0,S=["[","]"]),E(n)&&(b=" [Function"+(n.name?": "+n.name:"")+"]"),g(n)&&(b=" "+RegExp.prototype.toString.call(n)),x(n)&&(b=" "+Date.prototype.toUTCString.call(n)),w(n)&&(b=" "+f(n)),0!==s.length||A&&0!=n.length?r<0?g(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special"):(t.seen.push(n),c=A?function(t,e,n,r,i){for(var o=[],s=0,a=e.length;s<a;++s)T(e,String(s))?o.push(h(t,e,n,r,String(s),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(h(t,e,n,r,i,!0))})),o}(t,n,r,a,s):s.map((function(e){return h(t,n,r,a,e,A)})),t.seen.pop(),function(t,e,n){return t.reduce((function(t,e){return e.indexOf("\n"),t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1]:n[0]+e+" "+t.join(", ")+" "+n[1]}(c,b,S)):S[0]+b+S[1]}function f(t){return"["+Error.prototype.toString.call(t)+"]"}function h(t,e,n,r,i,o){var s,a,u;if((u=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?a=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(a=t.stylize("[Setter]","special")),T(r,i)||(s="["+i+"]"),a||(t.seen.indexOf(u.value)<0?(a=_(n)?l(t,u.value,null):l(t,u.value,n-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+a.split("\n").map((function(t){return" "+t})).join("\n")):a=t.stylize("[Circular]","special")),m(s)){if(o&&i.match(/^\d+$/))return a;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=t.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=t.stylize(s,"string"))}return s+": "+a}function d(t){return Array.isArray(t)}function p(t){return"boolean"==typeof t}function _(t){return null===t}function y(t){return"number"==typeof t}function v(t){return"string"==typeof t}function m(t){return void 0===t}function g(t){return b(t)&&"[object RegExp]"===A(t)}function b(t){return"object"==typeof t&&null!==t}function x(t){return b(t)&&"[object Date]"===A(t)}function w(t){return b(t)&&("[object Error]"===A(t)||t instanceof Error)}function E(t){return"function"==typeof t}function A(t){return Object.prototype.toString.call(t)}function S(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(m(o)&&(o=r.env.NODE_DEBUG||""),t=t.toUpperCase(),!s[t])if(new RegExp("\\b"+t+"\\b","i").test(o)){var n=r.pid;s[t]=function(){var r=e.format.apply(e,arguments);console.error("%s %d: %s",t,n,r)}}else s[t]=function(){};return s[t]},e.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=d,e.isBoolean=p,e.isNull=_,e.isNullOrUndefined=function(t){return null==t},e.isNumber=y,e.isString=v,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=m,e.isRegExp=g,e.isObject=b,e.isDate=x,e.isError=w,e.isFunction=E,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=n(384);var O=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function T(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){var t,n;console.log("%s - %s",(n=[S((t=new Date).getHours()),S(t.getMinutes()),S(t.getSeconds())].join(":"),[t.getDate(),O[t.getMonth()],n].join(" ")),e.format.apply(e,arguments))},e.inherits=n(1496),e._extend=function(t,e){if(!e||!b(e))return t;for(var n=Object.keys(e),r=n.length;r--;)t[n[r]]=e[n[r]];return t}},3687:t=>{t.exports=function(t,e){1==arguments.length&&(e=t[1],t=t[0]);for(var n={},r=0;r<t.length;r+=1)n[t[r]]=e[r];return n}},3897:t=>{t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},t.exports.__esModule=!0,t.exports.default=t.exports},3405:(t,e,n)=>{var r=n(3897);t.exports=function(t){if(Array.isArray(t))return r(t)},t.exports.__esModule=!0,t.exports.default=t.exports},4836:t=>{t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports},9498:t=>{t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.__esModule=!0,t.exports.default=t.exports},2281:t=>{t.exports=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.")},t.exports.__esModule=!0,t.exports.default=t.exports},861:(t,e,n)=>{var r=n(3405),i=n(9498),o=n(6116),s=n(2281);t.exports=function(t){return r(t)||i(t)||o(t)||s()},t.exports.__esModule=!0,t.exports.default=t.exports},8698:t=>{function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},6116:(t,e,n)=>{var r=n(3897);t.exports=function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={id:r,loaded:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.amdD=function(){throw new Error("define cannot be used indirect")},n.amdO={},n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.hmd=t=>((t=Object.create(t)).children||(t.children=[]),Object.defineProperty(t,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+t.id)}}),t),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{if(!n.g.__InboxSDKInjected){n.g.__InboxSDKInjected=!0;const t=n(3721);let e;try{n.amdD&&n.amdO&&(e=n.amdD,n.amdD=null);const t=n(9979),r=n(5309).Z,i=n(8339).Z,o=n(5740).Z,s=n(3386).Z,a=n(2165).Z,u=n(244).Z,c=n(1623).Z,l=n(3870).Z,f=n(7851).Z;if("https://mail.google.com"!==document.location.origin)throw new Error("Should not happen");l(),f(),t.init(),r(),i(),o(),s(),a(),u(),c()}catch(e){t.error(e)}finally{e&&(n.amdD=e)}}})()})();
|
|
2
|
+
(()=>{var t={3758:t=>{t.exports=function(t,e){var n="number"==typeof t,r="number"==typeof e;n&&!r?(e=t,t=0):n||r||(t=0,e=0);var i=(e|=0)-(t|=0);if(i<0)throw new Error("array length must be positive");for(var o=new Array(i),s=0,a=t;s<i;s++,a++)o[s]=a;return o}},8583:(t,e,n)=>{"use strict";var r=n(7418);function i(t,e){if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0}function o(t){return n.g.Buffer&&"function"==typeof n.g.Buffer.isBuffer?n.g.Buffer.isBuffer(t):!(null==t||!t._isBuffer)}var s=n(9539),a=Object.prototype.hasOwnProperty,u=Array.prototype.slice,c="foo"===function(){}.name;function l(t){return Object.prototype.toString.call(t)}function f(t){return!o(t)&&"function"==typeof n.g.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):!!t&&(t instanceof DataView||!!(t.buffer&&t.buffer instanceof ArrayBuffer)))}var h=t.exports=m,d=/\s*function\s+([^\(\s]*)\s*/;function p(t){if(s.isFunction(t)){if(c)return t.name;var e=t.toString().match(d);return e&&e[1]}}function _(t,e){return"string"==typeof t?t.length<e?t:t.slice(0,e):t}function y(t){if(c||!s.isFunction(t))return s.inspect(t);var e=p(t);return"[Function"+(e?": "+e:"")+"]"}function v(t,e,n,r,i){throw new h.AssertionError({message:n,actual:t,expected:e,operator:r,stackStartFunction:i})}function m(t,e){t||v(t,!0,e,"==",h.ok)}function g(t,e,n,r){if(t===e)return!0;if(o(t)&&o(e))return 0===i(t,e);if(s.isDate(t)&&s.isDate(e))return t.getTime()===e.getTime();if(s.isRegExp(t)&&s.isRegExp(e))return t.source===e.source&&t.global===e.global&&t.multiline===e.multiline&&t.lastIndex===e.lastIndex&&t.ignoreCase===e.ignoreCase;if(null!==t&&"object"==typeof t||null!==e&&"object"==typeof e){if(f(t)&&f(e)&&l(t)===l(e)&&!(t instanceof Float32Array||t instanceof Float64Array))return 0===i(new Uint8Array(t.buffer),new Uint8Array(e.buffer));if(o(t)!==o(e))return!1;var a=(r=r||{actual:[],expected:[]}).actual.indexOf(t);return-1!==a&&a===r.expected.indexOf(e)||(r.actual.push(t),r.expected.push(e),function(t,e,n,r){if(null==t||null==e)return!1;if(s.isPrimitive(t)||s.isPrimitive(e))return t===e;if(n&&Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;var i=b(t),o=b(e);if(i&&!o||!i&&o)return!1;if(i)return g(t=u.call(t),e=u.call(e),n);var a,c,l=E(t),f=E(e);if(l.length!==f.length)return!1;for(l.sort(),f.sort(),c=l.length-1;c>=0;c--)if(l[c]!==f[c])return!1;for(c=l.length-1;c>=0;c--)if(!g(t[a=l[c]],e[a],n,r))return!1;return!0}(t,e,n,r))}return n?t===e:t==e}function b(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function x(t,e){if(!t||!e)return!1;if("[object RegExp]"==Object.prototype.toString.call(e))return e.test(t);try{if(t instanceof e)return!0}catch(t){}return!Error.isPrototypeOf(e)&&!0===e.call({},t)}function w(t,e,n,r){var i;if("function"!=typeof e)throw new TypeError('"block" argument must be a function');"string"==typeof n&&(r=n,n=null),i=function(t){var e;try{t()}catch(t){e=t}return e}(e),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),t&&!i&&v(i,n,"Missing expected exception"+r);var o="string"==typeof r,a=!t&&i&&!n;if((!t&&s.isError(i)&&o&&x(i,n)||a)&&v(i,n,"Got unwanted exception"+r),t&&i&&n&&!x(i,n)||!t&&i)throw i}h.AssertionError=function(t){this.name="AssertionError",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=function(t){return _(y(t.actual),128)+" "+t.operator+" "+_(y(t.expected),128)}(this),this.generatedMessage=!0);var e=t.stackStartFunction||v;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var n=new Error;if(n.stack){var r=n.stack,i=p(e),o=r.indexOf("\n"+i);if(o>=0){var s=r.indexOf("\n",o+1);r=r.substring(s+1)}this.stack=r}}},s.inherits(h.AssertionError,Error),h.fail=v,h.ok=m,h.equal=function(t,e,n){t!=e&&v(t,e,n,"==",h.equal)},h.notEqual=function(t,e,n){t==e&&v(t,e,n,"!=",h.notEqual)},h.deepEqual=function(t,e,n){g(t,e,!1)||v(t,e,n,"deepEqual",h.deepEqual)},h.deepStrictEqual=function(t,e,n){g(t,e,!0)||v(t,e,n,"deepStrictEqual",h.deepStrictEqual)},h.notDeepEqual=function(t,e,n){g(t,e,!1)&&v(t,e,n,"notDeepEqual",h.notDeepEqual)},h.notDeepStrictEqual=function t(e,n,r){g(e,n,!0)&&v(e,n,r,"notDeepStrictEqual",t)},h.strictEqual=function(t,e,n){t!==e&&v(t,e,n,"===",h.strictEqual)},h.notStrictEqual=function(t,e,n){t===e&&v(t,e,n,"!==",h.notStrictEqual)},h.throws=function(t,e,n){w(!0,t,e,n)},h.doesNotThrow=function(t,e,n){w(!1,t,e,n)},h.ifError=function(t){if(t)throw t},h.strict=r((function t(e,n){e||v(e,!0,n,"==",t)}),h,{equal:h.strictEqual,deepEqual:h.deepStrictEqual,notEqual:h.notStrictEqual,notDeepEqual:h.notDeepStrictEqual}),h.strict.strict=h.strict;var E=Object.keys||function(t){var e=[];for(var n in t)a.call(t,n)&&e.push(n);return e}},5408:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=new Array(2*t.length-1);e[0]=t[0];for(var n=0,r=arguments.length<=1?0:arguments.length-1;n<r;n++){var o=n+1<1||arguments.length<=n+1?void 0:arguments[n+1];e[2*n+1]=o&&Object.prototype.hasOwnProperty.call(o,"__html")?o.__html:(0,i.default)(o),e[2*n+2]=t[n+1]}return e.join("")};var r,i=(r=n(1675))&&r.__esModule?r:{default:r};t.exports=e.default,t.exports.default=e.default},2780:(t,e,n)=>{"use strict";function r(t){const e=document.createElement("div");return e.innerHTML=t.replace(/<[^>]*>?/g,""),e.textContent}n.d(e,{Z:()=>r})},9638:(t,e,n)=>{"use strict";n.d(e,{Z:()=>l});var r=n(1675),i=n.n(r),o=n(5408),s=n.n(o),a=n(1010),u=n(2780),c=n(8153);t=n.hmd(t);const l=(0,a.Kg)(t,(function(t,e){const{value:n,options:r}=c.vB(t),o=n[0][1];for(const t of e){let e,r,a,c;if("string"==typeof t.name?(e=t.name,r=i()(e)):"string"==typeof t.nameHTML&&(r=t.nameHTML,e=(0,u.Z)(r)),null==e||null==r)throw new Error("name or nameHTML must be provided");"string"==typeof t.description?(a=t.description,c=i()(a)):"string"==typeof t.descriptionHTML&&(c=t.descriptionHTML,a=(0,u.Z)(c));const l={id:t.id,routeName:t.routeName,routeParams:t.routeParams,externalURL:t.externalURL};r+=s()` <span style="display:none" data-inboxsdk-suggestion="${JSON.stringify(l)}"></span>`,null!=t.iconHTML&&(r=`<div class="inboxsdk__custom_suggestion_iconHTML">${t.iconHTML}</div>${r}`);const f=["aso.sug",t.searchTerm||o,r,null,[],0,null,"asor inboxsdk__custom_suggestion "+t.providerId+" "+(t.iconClass||""),0];null!=c&&(f[3]=["aso.eme",a,e,c,r]),null!=t.iconHTML?(f[6]=["aso.thn","data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="],f[7]+=" inboxsdk__no_bg"):t.iconUrl?(f[6]=["aso.thn",t.iconUrl],f[7]+=" inboxsdk__no_bg"):f[7]+=" asor_i4",n[0][3].push(f)}return c.qC(n,r)}))},3870:(t,e,n)=>{"use strict";n.d(e,{Z:()=>jt});var r=n(6678),i=n.n(r),o=n(5564),s=n.n(o),a=n(3311),u=n.n(a),c=n(5325),l=n.n(c),f=n(4721),h=n.n(f),d=n(4431),p=n.n(d),_=n(6609),y=n(3721),v=n(8721),m=n.n(v),g=n(308),b=n.n(g),x=n(6073),w=n.n(x),E=n(3105),A=n.n(E),S=n(1463),O=n.n(S),T=n(8583),j=n.n(T),D=n(7187),I=n.n(D),L=n(7673);const k=6e4;function M(t,e,n){const r=n&&n.logError||function(t){setTimeout((function(){throw t}),1)};function i(t,e,n){const r={};return Object.keys(n).concat(["bubbles","cancelBubble","cancelable","defaultPrevented","preventDefault","stopPropagation","stopImmediatePropagation","lengthComputable","loaded","total","type","currentTarget","target","srcElement","NONE","CAPTURING_PHASE","AT_TARGET","BUBBLING_PHASE","eventPhase"]).filter((t=>t in n)).forEach((i=>{const o=n[i];r[i]=o===t?e:"function"==typeof o?o.bind(n):o})),r}function o(t,e,n){return function(r){return n.call(e,i(t,e,r))}}function s(){this._wrappers=e,this._listeners={},this._boundListeners={},this._events=new(I()),this.responseText="",this._openState=!1,t.bind&&t.bind.apply?this._realxhr=new(t.bind.apply(t,[null].concat(arguments))):this._realxhr=new t;const n=this,s=(t,e)=>{if(this["on"+t])try{o(this._realxhr,this,this["on"+t]).call(this,e)}catch(t){r(t,"XMLHttpRequest event listener error")}w()(this._boundListeners[t],(t=>{try{t(e)}catch(t){r(t,"XMLHttpRequest event listener error")}}))},a=t=>{s("readystatechange",t)};this._fakeRscEvent=function(){a(Object.freeze({bubbles:!1,cancelBubble:!1,cancelable:!1,defaultPrevented:!1,preventDefault:b(),stopPropagation:b(),stopImmediatePropagation:b(),type:"readystatechange",currentTarget:this,target:this,srcElement:this,NONE:0,CAPTURING_PHASE:1,AT_TARGET:2,BUBBLING_PHASE:3,eventPhase:0}))};const u=t=>{this.readyState=4;var e=200==this.status,n=Object.assign({},i(this._realxhr,this,t),{lengthComputable:!1,loaded:0,total:0});(!this._realxhr.responseType||"text"==this._realxhr.responseType)&&w()(this._activeWrappers,(t=>{if(t.finalResponseTextLogger)try{t.finalResponseTextLogger(this._connection,this.responseText)}catch(t){r(t)}})),a(t),s(e?"load":"error",n),s("loadend",n),w()(this._activeWrappers,(t=>{if(t.afterListeners)try{t.afterListeners(this._connection)}catch(t){r(t)}}))};this._realxhr.addEventListener("readystatechange",(t=>{if(!this._connection)return;this._realxhr.readyState>=2&&(this._connection.status=this._realxhr.status);const e=!this._realxhr.responseType||"text"==this._realxhr.responseType;if(4==this._realxhr.readyState){if(e){Object.defineProperty(this._connection,"originalResponseText",{enumerable:!0,writable:!1,configurable:!1,value:n._realxhr.responseText}),w()(this._activeWrappers,(t=>{if(t.originalResponseTextLogger)try{t.originalResponseTextLogger(this._connection,this._connection.originalResponseText)}catch(t){r(t)}}));const e=O()(u.bind(null,t));if(this._connection.async){const t=this._connection;return void(async()=>{let e=t.originalResponseText;t.modifiedResponseText=e;for(const n of this._responseTextChangers){const r=setTimeout((()=>{console.warn("responseTextChanger is taking too long",n,t)}),k);try{e=await n(t,e)}finally{clearTimeout(r)}if("string"!=typeof e)throw new Error("responseTextChanger returned non-string value "+e);if(t.modifiedResponseText=e,t!==this._connection)break}return e})().then((r=>{t===n._connection&&(this.responseText=r,e())}),(n=>{r(n),t===this._connection&&(this.responseText=this._realxhr.responseText,e())})).catch(r)}n.responseText=n._realxhr.responseText}else n.responseText="";u(t)}else{if(1==n._realxhr.readyState&&1==n.readyState)return;n._realxhr.readyState>=3&&e?n._responseTextChangers.length?n.responseText="":n.responseText=n._realxhr.responseText:n.responseText="",n.readyState=n._realxhr.readyState,a(t)}}),!1),["dispatchEvent","getAllResponseHeaders","getResponseHeader","overrideMimeType","responseType","responseXML","responseURL","status","statusText","timeout","ontimeout","onloadstart","onprogress","onabort","upload","withCredentials"].forEach((function(t){Object.defineProperty(n,t,{enumerable:!0,configurable:!1,get:function(){return"function"==typeof n._realxhr[t]?n._realxhr[t].bind(n._realxhr):n._realxhr[t]},set:function(e){"function"==typeof e&&(e=o(this._realxhr,this,e)),n._realxhr[t]=e}})})),Object.defineProperty(n,"response",{enumerable:!0,configurable:!1,get:function(){return this._realxhr.responseType&&"text"!=this._realxhr.responseType?this._realxhr.response:this.responseText}}),n.readyState=n._realxhr.readyState}return s.prototype.abort=function(){this._clientStartedSend&&!this._realStartedSend&&(0!=this.readyState&&0==this._realxhr.readyState&&this._realxhr.open(this._connection.method,this._connection.url),this._realStartedSend=!0,this._realxhr.send()),this._realxhr.abort()},s.prototype.setRequestHeader=function(t,e){var n=this;if(1!=this.readyState&&console.warn("setRequestHeader improperly called at readyState "+this.readyState),!this._openState)throw new Error("Can only set headers after open and before send");this._connection.headers[t]=e,this._connection.async&&this._requestChangers.length?this._events.once("realOpen",(function(){n._realxhr.setRequestHeader(t,e)})):this._realxhr.setRequestHeader(t,e)},s.prototype.addEventListener=function(t,e){if(this._listeners[t]||(this._listeners[t]=[],this._boundListeners[t]=[]),!h()(this._listeners[t],e)){var n=o(this._realxhr,this,e);this._listeners[t].push(e),this._boundListeners[t].push(n),h()(["readystatechange","load","error","loadend"],t)||this._realxhr.addEventListener(t,n,!1)}},s.prototype.removeEventListener=function(t,e){if(this._listeners[t]){var n=this._listeners[t].indexOf(e);if(-1!=n){this._listeners[t].splice(n,1);var r=this._boundListeners[t].splice(n,1)[0];"readystatechange"!=t&&this._realxhr.removeEventListener(t,r,!1)}}},s.prototype.open=function(e,n,i){if(!(this instanceof s))return t.prototype.open.apply(this,arguments);var o=this;function a(t,e){return o._realxhr.open(t,e,o._connection.async)}this._connection={method:e,url:n,params:(0,L.parse)(n.split("?")[1]||""),headers:{},async:arguments.length<3||!!i},this._clientStartedSend=!1,this._realStartedSend=!1,this._activeWrappers=function(t,e){return A()(t,(function(t){try{return t.isRelevantTo(e)}catch(t){r(t)}}))}(this._wrappers,this._connection),this._responseTextChangers=this._activeWrappers.map((function(t){return t.responseTextChanger&&t.responseTextChanger.bind(t)})).filter(Boolean),this.responseText="",this._openState=!0,this._connection.async?(this._requestChangers=this._activeWrappers.map((function(t){return t.requestChanger&&t.requestChanger.bind(t)})).filter(Boolean),this._requestChangers.length?1!=this.readyState&&(this.readyState=1,this._fakeRscEvent()):a(e,n)):a(e,n)},s.prototype.send=function(t){var e=this;function n(t){e._realStartedSend=!0,e._realxhr.send(t)}if(this._clientStartedSend=!0,this._openState=!1,Object.defineProperty(this._connection,"originalSendBody",{enumerable:!0,writable:!1,configurable:!1,value:t}),this._connection.responseType=this._realxhr.responseType||"text",w()(e._activeWrappers,(function(n){if(n.originalSendBodyLogger)try{n.originalSendBodyLogger(e._connection,t)}catch(t){r(t)}})),this._connection.async&&this._requestChangers.length){const e=this._connection,i={method:this._connection.method,url:this._connection.url,body:t};(async()=>{let t=i;for(const n of this._requestChangers){const r=setTimeout((()=>{console.warn("requestChanger is taking too long",n,e)}),k);try{t=await n(this._connection,Object.freeze(t))}finally{clearTimeout(r)}if(j()(m()(t,"method"),"modifiedRequest has method"),j()(m()(t,"url"),"modifiedRequest has url"),j()(m()(t,"body"),"modifiedRequest has body"),e!==this._connection||this._realStartedSend)break}return t})().catch((t=>(r(t),i))).then((t=>{e!==this._connection||this._realStartedSend||(this._realxhr.open(t.method,t.url),this._events.emit("realOpen"),n(t.body))}))}else n(t)},[s,s.prototype].forEach((function(t){Object.assign(t,{UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4})})),s}var R=n(8153);function P(t){var e,n,r;j()(t.hasAttribute("id"),"check element is main thread row");var i=[];if(2===l()(Array.from(t.classList),["zA","apv"]).length){var o=t.nextElementSibling;if(o){var s=o.nextElementSibling;s&&s.classList.contains("apw")||(s=null),e=t.querySelector("td.apt > div.apm > span[title]"),n=o.querySelector("td div.xS div.xT div.y6 > span"),r=t.querySelector("td.apy > div.yW, td.apx > div.yW")}else i.push("failed to find threadRow2")}else{e=t.querySelector("td.xW > span[title]");var a=t.querySelector("td.a4W div[role=link] div.y6");a&&a.children.length>=1&&(n=a.children[0]),r=t.querySelector("td.yX > div.yW")}return e||i.push("failed to find timeSpan"),n||i.push("failed to find subjectSpan"),r||i.push("failed to find peopleDiv"),i.length&&y.error(new Error("Errors in thread row parsing"),{errors:i}),{timeString:e&&e.getAttribute("title")||"",subject:n?n.textContent:"",peopleHtml:r?(0,R.E3)(r.innerHTML):""}}var C=n(5703);const q=n.n(C)()(!0);function N(t,e){return Object.prototype.hasOwnProperty.call(t,e)?t[e]:null}function V(t){const e=document.createEvent("MouseEvents");let n;e.initMouseEvent("click",!0,!0,document.defaultView,0,0,0,0,0,!0,!1,!1,!0,0,null);const r=window.open,i=window.onerror,o=N(window.HTMLElement.prototype,"focus"),s=N(window.HTMLElement.prototype,"blur");try{window.HTMLElement.prototype.focus=b(),window.HTMLElement.prototype.blur=b(),window.onerror=q;const r=function(t,e,r){n=t;const i={closed:!1,focus:b()};return setTimeout((function(){i.closed=!0}),5),i};if(window.open=r,window.open!==r)return y.error(new Error("Failed to override window.open")),null;t.dispatchEvent(e)}finally{o?window.HTMLElement.prototype.focus=o:delete window.HTMLElement.prototype.focus,s?window.HTMLElement.prototype.blur=s:delete window.HTMLElement.prototype.blur,window.onerror=i,window.open=r}return n}function B(t){t.forEach(H)}const $={name:"AMBIGUOUS"},F=new Map;function H(t){var e=U(t);F.has(e)?F.get(e)!==t.gmailThreadId&&F.set(e,$):F.set(e,t.gmailThreadId)}function U(t){return t.subject.trim()+":"+t.timeString.trim()+":"+t.peopleHtml.trim()}var G=n(240),z=n.n(G),K=n(4776);function W(t){return null!=t}function Z(t){const e=JSON.parse(t);if(Array.isArray(e))return function(t){const e=t&&t[1];if(!e)throw new Error("Failed to process thread response");return e.map((t=>{if("string"!=typeof t[0]||!Array.isArray(t[2])||t[1]&&t[1][0]&&t[1][0][13]&&Array.isArray(t[1][1])){const e=t[1]&&t[1][0];if(!e)return null;let n;const r=Array.isArray(t[2])&&t[2];return n=r?r.map((t=>({syncMessageID:t[0],date:+t[1][16],recipients:X(t)}))):(t[1]&&t[1][1]).map((t=>({syncMessageId:t[0],date:+t[15]}))),{subject:e[1],snippet:e[2],syncThreadID:e[0],oldGmailThreadID:new(p())(e[13]).toString(16),rawResponse:t,extraMetaData:{syncMessageData:n,snippet:""}}}return{syncThreadID:t[0],oldGmailThreadID:t[1]&&t[1][0]&&t[1][0][15]||void 0,extraMetaData:{snippet:t[1]&&t[1][0]&&t[1][0][2]||void 0,syncMessageData:(t[2]||[]).filter((t=>Boolean(t[1]))).map((t=>({syncMessageID:t[0],date:+t[1][16],recipients:X(t)})))}}})).filter(W)}(e);const n=e&&e[2];if(!n)throw new Error("Failed to process thread response");return n.map((t=>{if("string"!=typeof t[1]||!Array.isArray(t[3])||t[2]&&t[2][1]&&t[2][1][14]&&Array.isArray(t[2][2])){const e=t[2]&&t[2][1];if(!e)return null;let n;const r=Array.isArray(t[3])&&t[3];return n=r?r.map((t=>({syncMessageID:t[1],date:+t[2][17],recipients:J(t)}))):(t[2]&&t[2][2]).map((t=>({syncMessageId:t[1],date:+t[16]}))),{subject:e[2],snippet:e[3],syncThreadID:e[1],oldGmailThreadID:new(p())(e[14]).toString(16),rawResponse:t,extraMetaData:{syncMessageData:n,snippet:""}}}return{syncThreadID:t[1],oldGmailThreadID:t[2]&&t[2][1]&&t[2][1][16]||void 0,extraMetaData:{snippet:t[2]&&t[2][1]&&t[2][1][3]||void 0,syncMessageData:(t[3]||[]).filter((t=>Boolean(t[2]))).map((t=>({syncMessageID:t[1],date:+t[2][17],recipients:J(t)})))}}})).filter(W)}function J(t){if(!t[2])return;const e=t[2][1]||[],n=t[2][2]||[],r=t[2][3]||[];return e.concat(n).concat(r).map((t=>({emailAddress:t[2],name:t[3]})))}function X(t){if(!t[1])return;const e=t[1][0]||[],n=t[1][1]||[],r=t[1][2]||[];return e.concat(n).concat(r).map((t=>({emailAddress:t[1],name:t[2]})))}var Q=n(1375);var Y=n(2147);const tt=new Map;function et(t,e,n){const{target:r,detail:{threadId:i,ikValue:o,btaiHeader:s,xsrfToken:a}}=t;(async()=>{const t=Array.from(r.parentElement.children).filter((t=>!t.classList.contains("inboxsdk__custom_message_view"))).indexOf(r);if(t<0)throw new Error("Should not happen");let u=nt(i,t);if(null==u||!u.recipients){try{await function(t,e,n,r){const i=it.get(t);if(i)return i;const o=(async()=>{try{if(z()(t,"thread")){if(!n||!r)throw new Error("Need btaiHeader and xsrfToken when in new data layer");const e=await async function(t,e,n){let r=null;try{const{text:i}=await(0,K.Z)({method:"POST",url:`https://mail.google.com/sync${(0,Q.Z)()}/i/fd`,headers:{"Content-Type":"application/json","X-Framework-Xsrf-Token":n,"X-Gmail-BTAI":e,"X-Google-BTD":"1"},data:JSON.stringify({1:[{1:t,2:1}]})});r=i}catch(i){const{text:o}=await(0,K.Z)({method:"POST",url:`https://mail.google.com/sync${(0,Q.Z)()}/i/fd?rt=r&pt=ji`,headers:{"Content-Type":"application/json","X-Framework-Xsrf-Token":n,"X-Gmail-BTAI":e,"X-Google-BTD":"1"},data:JSON.stringify([[[t,1]],2])});r=o}const i=Z(r);if(i.length>0){const t=i[0];if(t.oldGmailThreadID)return t}return null}(t,n,r);e&&rt([{threadID:e.syncThreadID,messages:e.extraMetaData.syncMessageData.map((t=>({date:t.date,recipients:t.recipients})))}])}else{const n=await(0,Y.Z)(e,t);rt((0,R.bd)(n))}}catch(t){y.error(t)}finally{it.delete(t)}})();return it.set(t,o),o}(i,o,s,a)}catch(t){y.error(t)}if(u=nt(i,t),null==u)throw new Error("Failed to find message date after re-requesting thread")}r.setAttribute(e,JSON.stringify(n(u)))})().catch((t=>{r.setAttribute(e,"error"),y.error(t)}))}function nt(t,e){const n=tt.get(t);if(n){const t=n[e];if(t)return t}}function rt(t){t.forEach((t=>{tt.set(t.threadID,t.messages)}))}const it=new Map;function ot(t){let e=[],n=0;const r=/"[^"]*"/g;for(;;){const i=r.exec(t);if(e=e.concat((i?t.substring(n,i.index):t.substring(n)).split(/ +/).filter(Boolean)),!i)break;n=i.index+i[0].length,e.push(i[0])}return e}function st(){let t,e;const n=new Promise(((n,r)=>{t=n,e=r}));return{resolve:t,reject:e,promise:n}}var at=n(9638),ut=n(9734),ct=n.n(ut);const lt=["^pfg"],ft=["^r","^r_bt"],ht=["SEND","DRAFT_SAVE"];function dt(t){const e=t[1]?.[0];if(!Array.isArray(e))return null;const n=e.map(mt).filter(W);return ct()(n,(t=>ht.indexOf(t.type)))[0]||null}function pt(t){return t.startsWith("thread-")?t.includes("|")?t.split("|")[0]:t:null}function _t(t){return t.startsWith("msg-")?t:null}function yt(t){return Array.isArray(t)?t.filter((t=>!!t[1])).map((t=>({emailAddress:t[1],name:t[2]??null}))):null}function vt(t){const e=[t[1]?.[2]?.[0]?.[4]?.[0],t[1]?.[1]?.[0],t[1]?.[13]?.[0]];for(const t of e){const e=gt(t);if(e)return{parsedMsg:e,originalMsg:t}}return null}function mt(t){if(!Array.isArray(t)||!Array.isArray(t[1]))return null;const e=t[1],n=pt(e[0]);if(!n)return null;const r=vt(e);if(!r)return null;const{parsedMsg:i,originalMsg:o}=r,{messageId:s,to:a,cc:u,bcc:c,subject:l,body:f,actions:h}=i;let d=wt(h);return d?("DRAFT_SAVE"!==d||o!==e[1]?.[2]?.[0]?.[4]?.[0]&&o!==e[1]?.[1]?.[0]||(d="FIRST_DRAFT_SAVE"),{threadId:n,messageId:s,to:a,cc:u,bcc:c,subject:l,body:f,actions:h,type:d}):null}function gt(t){if(!Array.isArray(t))return null;const e=_t(t[0]);if(!e)return null;const n=t[7];return{messageId:e,to:yt(t[2]),cc:yt(t[3]),bcc:yt(t[4]),subject:n,body:t[8][1][0][1],actions:t[10],rfcID:t[13],oldMessageId:t[55]}}function bt(t,e){if(!Array.isArray(t))return null;t[8][1][0][1]=e}function xt(t){if(!Array.isArray(t)||!Array.isArray(t[0]))return null;const e=t[0],n=pt(e[0]);if(!n)return null;const r=e[2]?.[6]?.[0];return Array.isArray(r)?{threadId:n,oldThreadId:r[19],parsedMessages:Array.isArray(r[4])?r[4].map((t=>Array.isArray(t)?function(t){if(!Array.isArray(t))return null;const e=_t(t[0]);if(!e)return null;const n=t[10];return{messageId:e,to:yt(t[2]),cc:yt(t[3]),bcc:yt(t[4]),actions:n,rfcID:t[13],oldMessageId:t[55]}}(t):null)).filter(W):[]}:null}function wt(t){return l()(t,ft).length===ft.length?"DRAFT_SAVE":l()(t,lt).length===lt.length?"SEND":null}function Et(t,e){const n=t[9]&&t[9][2]&&t[9][2][0]&&t[9][2][0][2];return null==n?null:{body:n,type:e,to:At(t[3]),cc:At(t[4]),bcc:At(t[5]),draftID:t[1].replace("msg-a:",""),subject:t[8]}}function At(t){return Array.isArray(t)?t.map((t=>({emailAddress:t[2],name:t[3]||null}))):null}function St(t){const e=JSON.parse(t);try{if(Array.isArray(e)){const t=function(t){return dt(t)}(e);return t?{type:t.type,to:t.to,cc:t.cc,bcc:t.bcc,draftID:t.messageId.replace("msg-a:",""),subject:t.subject,body:t.body}:null}}catch(t){y.eventSdkPassive("connection.requestResponseParsingFailed",{requestParseError:t})}return function(t){const e=t[2]&&t[2][1];if(!e)return null;const n=e.filter((t=>{const e=t[2]&&t[2][2]&&(t[2][2][14]||t[2][2][2]);return e&&e[1]&&e[1][1]&&e[1][1].indexOf("msg-a:")>-1}));if(n.length){const t=n.find((t=>{const e=t[2]&&t[2][2]&&(t[2][2][14]||t[2][2][2]);return e[1][11]&&l()(e[1][11],lt).length===lt.length}));if(t)return Et((t[2]&&t[2][2]&&(t[2][2][14]||t[2][2][2]))[1],"SEND");{const t=n[0];return Et((t[2]&&t[2][2]&&(t[2][2][14]||t[2][2][2]))[1],"DRAFT_SAVE")}}{const t=e.map((t=>t[2]&&t[2][2]&&t[2][2][3]&&t[2][2][3][1]&&t[2][2][3][1][5]&&t[2][2][3][1][5][0])).filter(Boolean);return 0===t.length?null:Et(t[0],"FIRST_DRAFT_SAVE")}}(e)}function Ot(t,e){const n=JSON.parse(t);try{if(Array.isArray(n)){const r=function(t,e){return function(t,e){const n=dt(t);if(!n)return null;const r=n.messageId,i=t[1]?.[0];if(!Array.isArray(i))return null;for(const n of i){if(!Array.isArray(n)||!Array.isArray(n[1]))return null;const i=n[1];if(!pt(i[0]))return null;const o=vt(i);if(o?.parsedMsg.messageId===r&&"SEND"===wt(o.parsedMsg.actions))return bt(o.originalMsg,e),t}return null}(t,e)}(n,e);return r?JSON.stringify(r):t}}catch(t){y.eventSdkPassive("connection.requestResponseParsingFailed",{replaceBodyFailed:t})}return function(t,e){if(!e)return t;const n=JSON.parse(t),r=n[2]&&n[2][1];if(!r)return t;const i=r.filter((t=>{const e=t[2]&&t[2][2]&&(t[2][2][14]||t[2][2][2]);return e&&e[1]&&e[1][1]&&e[1][1].indexOf("msg-a:")>-1}));if(!i.length)return t;const o=i.find((t=>{const e=t[2]&&t[2][2]&&(t[2][2][14]||t[2][2][2]);return e[1][11]&&l()(e[1][11],lt).length===lt.length}));return o?((o[2]&&o[2][2]&&(o[2][2][14]||o[2][2][2]))[1][9][2][0][2]=e,JSON.stringify(n)):t}(t,e)}function Tt(t,e){"XMLHttpRequest event listener error"!==e?y.error(t,e):setTimeout((function(){throw t}),1)}function jt(){let t=null;const e=top.document.getElementById("js_frame");e?t=e.contentDocument.defaultView:y.eventSdkPassive("noJSFrameElementFound"),function(t,e){const n=[],r=[];{const e=t.XMLHttpRequest;t.XMLHttpRequest=M(e,n,{logError:Tt})}if(e){const t=e.XMLHttpRequest;e.XMLHttpRequest=M(t,r,{logError:Tt})}(function(){try{!function(){const t=u()(document.querySelectorAll("script:not([src])"),(t=>t.text&&t.text.slice(0,500).indexOf("var VIEW_DATA=[[")>-1));if(t){const e=t.text.indexOf("["),n=t.text.lastIndexOf("]"),r=t.text.slice(e,n+1);B(R.Ae([R.GE(r)]))}}()}catch(t){y.error(t,"Failed to process preloaded thread identifiers")}document.addEventListener("inboxSDKtellMeThisThreadIdByDatabase",(function(t){try{const e=function(t){const e=U(P(t)),n=F.get(e);if("string"==typeof n)return n}(t.target);e&&t.target.setAttribute("data-inboxsdk-threadid",e)}catch(t){y.error(t,"Error in inboxSDKtellMeThisThreadIdByDatabase")}})),document.addEventListener("inboxSDKtellMeThisThreadIdByClick",(function(t){try{const e=function(t){P(t);const e=function(t,e){let n=t.parentElement;for(;n;){if(e(n))return n;n=n.parentElement}return null}(t,(t=>"DIV"===t.nodeName&&"main"===t.getAttribute("role")));if(!e)throw new Error("Can't operate on disconnected thread row");const n=e.querySelector("td.PE")||e.querySelector("tr"),r=V(t),i=r&&function(t){var e=(0,L.parse)(t).th;if(!e){var n=t.match(/#(.*)/);n&&(t=decodeURIComponent(decodeURIComponent(n[1])),e=(0,L.parse)(t).th)}return e.replace("#","")}(r);return n&&V(n),i}(t.target);e&&t.target.setAttribute("data-inboxsdk-threadid",e)}catch(t){y.error(t,"Error in inboxSDKtellMeThisThreadIdByClick")}}))})(),document.addEventListener("inboxSDKtellMeThisMessageDate",(function(t){et(t,"data-inboxsdk-sortdate",(t=>t.date))})),document.addEventListener("inboxSDKtellMeThisMessageRecipients",(function(t){et(t,"data-inboxsdk-recipients",(t=>t.recipients?t.recipients:null))}));{const t={};_.ZP.fromEvents(document,"inboxSDKregisterComposeRequestModifier").onValue((e=>{let{detail:n}=e;const r=n.composeid||n.draftID;t[r]||(t[r]=[]),t[r].push(n.modifierId)})),_.ZP.fromEvents(document,"inboxSDKunregisterComposeRequestModifier").onValue((e=>{let{detail:n}=e;const{keyId:r,modifierId:i}=n;t[r]=t[r].filter((t=>t!==i)),0===t[r].length&&delete t[r]})),r.push({isRelevantTo:function(t){return"sm"===t.params.act},originalSendBodyLogger:function(t,e){Dt({type:"emailSending",body:e})},requestChanger:async function(e,n){let r=L.parse(n.body);const i=r.composeid,o=t[r.composeid];if(!o||0===o.length)return n;for(let t=0;t<o.length;t++){const e=o[t],n=_.ZP.fromEvents(document,"inboxSDKcomposeRequestModified").filter((t=>{let{detail:n}=t;return n.composeid===i&&n.modifierId===e})).take(1).map((t=>{let{detail:e}=t;return e.composeParams})).toPromise();Dt({type:"inboxSDKmodifyComposeRequest",composeid:i,modifierId:e,composeParams:{body:r.body,isPlainText:"1"!==r.ishtml}});const s=await n;r=Object.assign({},r,s)}return Object.assign({},n,{body:It(r)})},afterListeners:function(e){if(200===e.status&&(Dt({type:"emailSent",responseText:e.originalResponseText,originalSendBody:e.originalSendBody}),e.originalSendBody)){const n=L.parse(e.originalSendBody);delete t[n.composeid]}}}),r.push({isRelevantTo:function(t){return"sd"===t.params.act},originalSendBodyLogger:function(t,e){Dt({type:"emailDraftSaveSending",body:e})},afterListeners:function(t){200===t.status&&Dt({type:"emailDraftReceived",responseText:t.originalResponseText,originalSendBody:t.originalSendBody,connectionDetails:{method:t.method,url:t.url,params:t.params,responseType:t.responseType}})}});{const e=new WeakMap,r=new WeakMap,i=new WeakMap;n.push({isRelevantTo:t=>/sync(?:\/u\/\d+)?\/i\/s/.test(t.url),originalSendBodyLogger(t){if(t.originalSendBody){const n=St(t.originalSendBody);if(!n)return;const{draftID:o}=n;switch(n.type){case"FIRST_DRAFT_SAVE":i.set(t,o);break;case"DRAFT_SAVE":r.set(t,o);break;case"SEND":e.set(t,o),Dt({type:"emailSending",draftID:o})}}},requestChanger:async function(e,n){const r=St(n.body);if(!r||"SEND"!==r.type)return n;const{draftID:i}=r,o=t[i];if(!o||0===o.length)return n;let s=r.body;for(let t=0;t<o.length;t++){const e=o[t],n=_.ZP.fromEvents(document,"inboxSDKcomposeRequestModified").filter((t=>{let{detail:n}=t;return n.draftID===i&&n.modifierId===e})).take(1).map((t=>{let{detail:e}=t;return e.composeParams})).toPromise();Dt({type:"inboxSDKmodifyComposeRequest",draftID:i,modifierId:e,composeParams:{body:s,isPlainText:!1}}),s=(await n).body}return Object.assign({},n,{body:Ot(n.body,s)})},afterListeners(t){if(e.has(t)||r.has(t)||i.has(t)){const n=()=>{Dt({type:"emailSendFailed",draftID:o}),e.delete(t)},o=e.get(t)||r.get(t)||i.get(t);if(200!==t.status||!t.originalResponseText)return void n();try{const n=function(t){const e=JSON.parse(t);return Array.isArray(e)?function(t){return function(t){const e=t[1]?.[5];return Array.isArray(e)?e.map(xt).filter(W).flatMap((t=>{const{threadId:e,oldThreadId:n,parsedMessages:r}=t;return r.map((t=>{const{messageId:r,to:i,cc:o,bcc:s,actions:a,rfcID:u,oldMessageId:c}=t,l=wt(a);return l?{threadId:e,messageId:r,to:i,cc:o,bcc:s,actions:a,rfcID:u,oldMessageId:c,oldThreadId:n,type:l}:null}))})).filter(W):[]}(t)}(e):[]}(t.originalResponseText);for(const s of n)if(!o||s.messageId.endsWith(o)){if("FIRST_DRAFT_SAVE"===s.type||"DRAFT_SAVE"===s.type)return Dt({draftID:o,type:"emailDraftReceived",rfcID:s.rfcID,threadID:s.threadId,messageID:s.messageId,oldMessageID:s.oldMessageId,oldThreadID:s.oldThreadId}),e.delete(t),r.delete(t),void i.delete(t);if("SEND"===s.type)return Dt({draftID:o,type:"emailSent",rfcID:s.rfcID,threadID:s.threadId,messageID:s.messageId,oldMessageID:s.oldMessageId,oldThreadID:s.oldThreadId}),e.delete(t),r.delete(t),void i.delete(t)}}catch(t){y.eventSdkPassive("connection.requestResponseParsingFailed",{responseParseError:t})}const s=JSON.parse(t.originalResponseText);if(i.has(t)){const t=s[2]&&s[2][6]&&s[2][6][0]&&s[2][6][0][1];if(t){const e=t[3]&&t[3][7]&&t[3][7][1],n=e&&e[5]&&e[5][0];e&&n?Dt({draftID:o,type:"emailDraftReceived",rfcID:n[14],threadID:e[4].split("|")[0],messageID:n[1],oldMessageID:n[56],oldThreadID:e[20]}):y.error(new Error("Could not parse draft save"))}else{y.eventSdkPassive("old compose draft id handling hit");const t=s[2]&&s[2][6]&&s[2][6][1]&&s[2][6][1][1];if(t){const e=t[3]&&t[3][1]&&t[3][1][1];e&&Dt({draftID:o,type:"emailDraftReceived",rfcID:e[14],messageID:e[1],oldMessageID:e[48]?new(p())(e[48]).toString(16):e[56],syncThreadID:t[1]})}}}else{const r=s[2]?.[6];if(!r)return void n();const i=r.find((t=>t[1]?.[3]?.[7]?.[1]?.[5]?.[0]?.[14]&&t[1][3][7][1][5].find((t=>h()(t[1],o)))));if(!i){if(e.has(t)){const t=r.filter((t=>t[1]?.[3]?.[5]?.[3]));if(t.length>0){const e=t[0][1][1]?t[0][1][1].replace(/\|.*$/,""):void 0;Dt({draftID:o,type:"emailSent",threadID:e,messageID:t[0][1][3]?.[5]?.[5]?.[0]||t[0][1][3][5][3]?.[0]})}else n()}else n();return}const a=i[1]?.[3]?.[7]?.[1],u=a[5].find((t=>t[1].includes(o)));if(!u)return void n();const c=e.has(t);Array.isArray(u[11])?c&&u[11].indexOf("^r")>=0&&y.error(new Error('sendUpdate[11] unexpectedly contained "^r"')):y.error(new Error("sendUpdate[11] was not an array")),c&&void 0!==u[22]&&3!==u[22]&&y.error(new Error("sendUpdate[22] was not expected value"),{value:u[22]});const l=a[4]?a[4].replace(/\|.*$/,""):void 0;Dt({draftID:o,type:c?"emailSent":"emailDraftReceived",rfcID:u[14],messageID:u[1],oldMessageID:u[48]?new(p())(u[48]).toString(16):u[56],threadID:l,oldThreadID:null!=a[18]?new(p())(a[18]).toString(16):a[20]})}e.delete(t),r.delete(t),i.delete(t)}}})}}r.push({isRelevantTo:t=>!!t.params.search&&"tl"===t.params.view,responseTextChanger:async(t,e)=>e,originalResponseTextLogger(t){if(200===t.status){e=t.originalResponseText,B(R.MA(e))}var e}}),r.push({isRelevantTo:t=>"cv"===t.params.view,originalResponseTextLogger(t){200===t.status&&rt(R.bd(t.originalResponseText))}}),n.push({isRelevantTo:function(t){return/sync(?:\/u\/\d+)?\/i\/bv/.test(t.url)},originalResponseTextLogger(t){200===t.status&&rt(function(t){const e=JSON.parse(t);if(Array.isArray(e))try{return function(t){const e=t&&t[2];return e?e.map(((e,n)=>{const r=e[0];return r?{subject:r[0],snippet:r[1],syncThreadID:r[3],oldGmailThreadID:null!=r[17]?new(p())(r[17]).toString(16):r[19],rawResponse:e,extraMetaData:{snippet:t[14]&&t[14][0]&&t[14][0][n]||"",syncMessageData:r[4].map((t=>({syncMessageID:t[0],oldMessageID:t[55],date:+t[6]})))}}:null})).filter(W):[]}(e)}catch(t){return[]}const n=e&&e[3];return n?n.map(((t,n)=>{const r=t[1];return r?{subject:r[1],snippet:r[2],syncThreadID:r[4],oldGmailThreadID:null!=r[18]?new(p())(r[18]).toString(16):r[20],rawResponse:t,extraMetaData:{snippet:e[15]&&e[15][1]&&e[15][1][n]||"",syncMessageData:r[5].map((t=>({syncMessageID:t[1],oldMessageID:t[56],date:+t[7]})))}}:null})).filter(W):[]}(t.originalResponseText).map((t=>({threadID:t.syncThreadID,messages:t.extraMetaData.syncMessageData.map((t=>({date:t.date,recipients:t.recipients})))}))))}}),n.push({isRelevantTo:function(t){return/sync(?:\/u\/\d+)?\/i\/fd/.test(t.url)},originalResponseTextLogger(t){200===t.status&&rt(Z(t.originalResponseText).map((t=>({threadID:t.syncThreadID,messages:t.extraMetaData.syncMessageData.map((t=>({date:t.date,recipients:t.recipients})))}))))}});{const t=Object.create(null);let e,r,i;document.addEventListener("inboxSDKregisterSuggestionsModifier",(function(e){let{detail:n}=e;t[n.providerID]={position:Object.keys(t).length}})),document.addEventListener("inboxSDKprovideSuggestions",(function(n){let{detail:o}=n;if(o.query===e){const n=t[o.providerID];if(!n)throw new Error("provider does not exist for providerID");if(null==r)throw new Error("tried to modified a null suggestionModifications");if(r[n.position]=o.suggestions,r.filter(Boolean).length===Object.keys(t).length){if(null==i)throw new Error("tried to resolve a null currentQueryDefer");i.resolve(s()(r)),i=e=r=null}}})),n.push({isRelevantTo:e=>Object.keys(t).length>0&&!!e.url.match(/^\/cloudsearch\/request\?/)&&"gmail"==e.params.client&&"gmail"==e.params.gs_ri,originalSendBodyLogger(t,n){const o=L.parse(n);if(!o.request)return;const s=JSON.parse(o.request)[2];s&&(e=s,i&&i.resolve(),i=t._defer=st(),r=[],Dt({type:"suggestionsRequest",query:e}))},async responseTextChanger(t,e){if(t._defer&&200===t.status){const n=await t._defer.promise;if(n)return(0,at.Z)(e,n)}return e}})}{const t=[];let e;document.addEventListener("inboxSDKcreateCustomSearchTerm",(function(e){t.push(e.detail.term)})),document.addEventListener("inboxSDKsearchReplacementReady",(function(t){e.query===t.detail.query&&e.newQuery.resolve(t.detail.newQuery)})),r.push({isRelevantTo:function(n){let r;const i=n.params;return!!("POST"===n.method&&i.search&&"tl"===i.view&&n.url.match(/^\?/)&&i.q&&(r=l()(t,ot(i.q))[0]))&&(e&&e.query===i.q&&e.start!=i.start?(n._queryReplacement=e,e.start=i.start):(e&&e.newQuery.resolve(e.query),e=n._queryReplacement={term:r,query:i.q,start:i.start,newQuery:st()},Dt({type:"searchQueryForReplacement",term:r,query:i.q})),!0)},requestChanger:function(t,e){return t._queryReplacement.newQuery.promise.then((function(n){const r=i()(t.params);return r.q=n,{method:e.method,url:"?"+(0,L.stringify)(r),body:e.body}}))}}),n.push({isRelevantTo:function(t){return"POST"===t.method&&/sync(?:\/u\/\d+)?\/i\/bv/.test(t.url)},requestChanger:function(n,r){let i;const o=JSON.parse(r.body);let s,a,u,c=!1;return Array.isArray(o)?(c=!0,s=o[0],a=s[3],u=s[9]):(s=o[1],a=s[4],u=s[10]),79===s[c?0:1]&&"string"==typeof a&&(i=l()(t,ot(a))[0])?(e&&e.query===a&&e.start!=u?(n._queryReplacement=e,e.start=u):(e&&e.newQuery.resolve(e.query),e=n._queryReplacement={term:i,query:a,start:u,newQuery:st()},Dt({type:"searchQueryForReplacement",term:i,query:a})),n._queryReplacement.newQuery.promise.then((function(t){return c?o[0][3]=t:o[1][4]=t,{method:r.method,url:r.url,body:JSON.stringify(o)}}))):Promise.resolve(r)}})}{const t=[];let e;document.addEventListener("inboxSDKcustomListRegisterQuery",(e=>{t.push(e.detail.query)})),document.addEventListener("inboxSDKcustomListNewQuery",(t=>{if(e.query===t.detail.query&&e.start===t.detail.start){const{newQuery:n,newStart:r}=t.detail;e.newRequestParams.resolve({query:n,start:r})}})),document.addEventListener("inboxSDKcustomListResults",(t=>{e.query===t.detail.query&&e.newResults.resolve(t.detail.newResults)})),r.push({isRelevantTo:function(n){const r=n.params;return!!("POST"===n.method&&r.search&&"tl"===r.view&&n.url.match(/^\?/)&&r.q&&!r.act&&u()(t,(t=>t===r.q)))&&(e&&(e.newRequestParams.resolve({query:e.query,start:e.start}),e.newResults.resolve(null)),e=n._customListJob={query:r.q,start:+r.start,newRequestParams:st(),newResults:st()},Dt({type:"searchForReplacement",query:e.query,start:e.start}),!0)},requestChanger:function(t,e){return t._customListJob.newRequestParams.promise.then((n=>{let{query:r,start:o}=n;const s=i()(t.params);return s.q=r,s.start=o,{method:e.method,url:"?"+(0,L.stringify)(s),body:e.body}}))},responseTextChanger:function(t,e){return Dt({type:"searchResultsResponse",query:t._customListJob.query,start:t._customListJob.start,response:e}),t._customListJob.newResults.promise.then((t=>null===t?e:t))}}),n.push({isRelevantTo:function(t){return!!/sync(?:\/u\/\d+)?\/i\/bv/.test(t.url)&&(e&&(e.newRequestParams.resolve({query:e.query,start:e.start}),e.newResults.resolve(null)),!0)},requestChanger:async function(n,r){if(r.body){const i=JSON.parse(r.body),o=Array.isArray(i),s=(o?i&&i[0]&&i[0][3]:i&&i[1]&&i[1][4])||"";if(u()(t,(t=>t===s)))return e=n._customListJob={query:s,start:o?i[0][9]:i[1][10],newRequestParams:st(),newResults:st()},Dt({type:"searchForReplacement",query:e.query,start:e.start}),n._customListJob.newRequestParams.promise.then((t=>{let{query:e,start:n}=t;return o?(i[0][3]=e,i[0][9]=n):(i[1][4]=e,i[1][10]=n),{method:r.method,url:r.url,body:JSON.stringify(i)}}))}return r},responseTextChanger:async function(t,e){return t._customListJob?(Dt({type:"searchResultsResponse",query:t._customListJob.query,start:t._customListJob.start,response:e}),t._customListJob.newResults.promise.then((t=>null===t?e:t))):e}})}{const t=t=>{document.head.setAttribute("data-inboxsdk-btai-header",t),Dt({type:"btaiHeaderReceived"})};n.push({isRelevantTo:t=>/sync(?:\/u\/\d+)?\//.test(t.url)&&!document.head.hasAttribute("data-inboxsdk-btai-header"),originalSendBodyLogger(e){e.headers["X-Gmail-BTAI"]&&t(e.headers["X-Gmail-BTAI"])}});const e=t=>{document.head.setAttribute("data-inboxsdk-xsrf-token",t),Dt({type:"xsrfTokenHeaderReceived"})};n.push({isRelevantTo:t=>/sync(?:\/u\/\d+)?\//.test(t.url)&&!document.head.hasAttribute("data-inboxsdk-xsrf-token"),originalSendBodyLogger(t){t.headers["X-Framework-Xsrf-Token"]&&e(t.headers["X-Framework-Xsrf-Token"])}})}}(window,t)}function Dt(t){document.dispatchEvent(new CustomEvent("inboxSDKajaxIntercept",{bubbles:!0,cancelable:!1,detail:t}))}function It(t){const e=i()(t),n=`=${Lt(e.to,"to")}&=${Lt(e.cc,"cc")}&=${Lt(e.bcc,"bcc")}`;return delete e.to,delete e.bcc,delete e.cc,n+"&"+L.stringify(e)}function Lt(t,e){let n="";if(Array.isArray(t))for(let r=0;r<t.length;r++)n+=`&${e}=${encodeURIComponent(t[r])}`;else n+=`&${e}=${encodeURIComponent(t)}`;return n}},7851:(t,e,n)=>{"use strict";function r(){const t=new Promise((t=>{!function e(){window.gmonkey?window.gmonkey.load("2.0",t):setTimeout(e,500)}()}));document.addEventListener("inboxSDKtellMeIsConversationViewDisabled",(function(){t.then((t=>{const e=t.isConversationViewDisabled(),n=document.createEvent("CustomEvent");n.initCustomEvent("inboxSDKgmonkeyResponse",!1,!1,e),document.dispatchEvent(n)}))})),document.addEventListener("inboxSDKtellMeCurrentThreadId",(function(t){let e;if(t.detail.isPreviewedThread){const t=Array.from(document.querySelectorAll("[gh=tl] tr.aps"));if(t.length>0){const n=t.map((t=>t.querySelector("[data-thread-id]"))).filter(Boolean)[0];e=n?n.getAttribute("data-thread-id"):t[0].getAttribute("data-inboxsdk-threadid")}}else e=window.gmonkey?.v2?.getCurrentThread?.()?.getThreadId();e&&(e=e.replace("#",""),t.target.setAttribute("data-inboxsdk-currentthreadid",e))}))}n.d(e,{Z:()=>r})},3721:(t,e,n)=>{"use strict";function r(t,e){t||(t=new Error("No error given")),console.error("Error in injected script",t,e);try{JSON.stringify(e)}catch(t){e="<failed to jsonify>"}const n={};for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))try{const r=t[e];JSON.stringify(r),n[e]=r}catch(t){}Object.keys(n).length>0&&(e={errorProperties:n,details:e}),document.dispatchEvent(new CustomEvent("inboxSDKinjectedError",{bubbles:!1,cancelable:!1,detail:{message:t&&t.message,stack:t&&t.stack,details:e}}))}function i(t,e,n){try{JSON.stringify(e)}catch(t){e="<failed to jsonify>"}document.dispatchEvent(new CustomEvent("inboxSDKinjectedEventSdkPassive",{bubbles:!1,cancelable:!1,detail:{name:t,details:e,sensitive:n}}))}n.r(e),n.d(e,{error:()=>r,eventSdkPassive:()=>i})},8339:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var r=n(3311),i=n.n(r),o=n(3721);function s(t,e){var n=i()(t,(t=>t[0]===e));return!!n&&function(t){switch(""+t){case"1":case"t":case"true":return!0;default:return!1}}(n[1])}function a(){let t;(function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:12e4,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:250;const r=new Error("waitFor timeout");return new Promise((function(i,o){let s=0;setTimeout((function a(){try{const u=t();u?i(u):s>=e?o(r):(s+=n,setTimeout(a,n))}catch(t){o(t)}}),1)}))})((()=>(t=function(){let t=n.g;try{if(t.GLOBALS)return t;n.g.opener&&n.g.opener.top&&(n.g.opener.top.location.href,t=n.g.opener.top)}catch(e){t=n.g}return t}(),t&&(t.GLOBALS||t.gbar)))).then((()=>{if(t){var e=t.GLOBALS?t.GLOBALS[10]:t.gbar._CONFIG[0][10][5];document.head.setAttribute("data-inboxsdk-user-email-address",e);var n=t.GLOBALS?t.GLOBALS[4].split(".")[1]:t.gbar._CONFIG[0][0][4];if(document.head.setAttribute("data-inboxsdk-user-language",n),document.head.setAttribute("data-inboxsdk-using-sync-api",t.GM_SPT_ENABLED),t.GLOBALS){document.head.setAttribute("data-inboxsdk-ik-value",t.GLOBALS[9]),document.head.setAttribute("data-inboxsdk-action-token-value",t.GM_ACTION_TOKEN);var r=i()(t.GLOBALS[17],(t=>"p"===t[0]));if(!r)return;var a=r[1],u=s(a,"bx_lab_1252"),c=s(a,"bx_spa"),l=s(a,"bx_spo"),f=u&&c?l?"vertical":"horizontal":"none";document.head.setAttribute("data-inboxsdk-user-preview-pane-mode",f)}else{const t="window.BT_EmbeddedAppData=[",e=i()(document.querySelectorAll("script:not([src])"),(e=>e.text&&e.text.slice(0,500).indexOf(t)>-1));if(e){const{text:n}=e,r=n.indexOf("window.BT_EmbeddedAppData=[");let i=n.indexOf("]\n;",r);-1===i&&(i=n.indexOf("];",r));const s=JSON.parse(n.slice(r+t.length-1,i+1)),a=s[11];"string"!=typeof a?o.error(new Error("Could not find valid ikValue")):document.head.setAttribute("data-inboxsdk-ik-value",a);const u=s[12];"string"!=typeof u?o.error(new Error("Could not find valid xsrfToken")):document.head.setAttribute("data-inboxsdk-xsrf-token",u)}else o.error(new Error("Could not read preloaded BT_EmbeddedAppData"))}}})).catch((e=>{function n(){return{hasGLOBALS:!!t.GLOBALS,hasGbar:!!t.gbar}}var r=n(),i=18e4;throw setTimeout((()=>{var t=n();o.eventSdkPassive("waitfor global data",{startStatus:r,waitTime:i,laterStatus:t})}),i),e})).catch(o.error)}},3386:(t,e,n)=>{"use strict";function r(){var t=[];document.addEventListener("inboxSDKsilencePageErrors",(function(){t.push(window.onerror),window.onerror=function(){return!0}})),document.addEventListener("inboxSDKunsilencePageErrors",(function(){window.onerror=t.pop()}))}n.d(e,{Z:()=>r})},5740:(t,e,n)=>{"use strict";function r(){document.addEventListener("inboxsdk_event_relay",(function(t){const e=document.createEvent("Events");if(e.initEvent(t.detail.type,t.detail.bubbles,t.detail.cancelable),Object.assign(e,t.detail.props),t.detail.dataTransfer){const{files:n,fileNames:r}=t.detail.dataTransfer;r&&r.forEach(((t,e)=>{const r=n[e];"string"!=typeof r.name&&(r.name=t)})),e.dataTransfer={dropEffect:"none",effectAllowed:"all",files:n,items:n.map(((t,e)=>{let{type:r}=t;return{kind:"file",type:r,getAsFile:()=>n[e],getAsString(){throw new Error("getAsString not supported")}}})),types:["Files"],getData:()=>"",setData(){},setDragImage(){}}}t.target.dispatchEvent(e)}))}n.d(e,{Z:()=>r})},2165:(t,e,n)=>{"use strict";n.d(e,{Z:()=>d});var r=n(1010),i=n(4721),o=n.n(i),s=n(4681),a=n.n(s),u=n(3721);function c(t){return{value:t,configurable:!0}}t=n.hmd(t);const l=["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","PageUp","PageDown","Home","End","Enter"],f=["Left","Right","Up","Down"],h=(0,r.Kg)(t,(function(t){try{(function(t){if(!document.body.classList.contains("inboxsdk__custom_view_active"))return!1;const e=t.target,n=t.key||String.fromCharCode(t.which||t.keyCode);return!("Escape"!==t.key||!a()(e,".inboxsdk__custom_view"))||!!(o()(l,n)||o()(f,t.keyIdentifier)||o()("!#[]{}_+=-;:\r\n1234567890`~",n)||!t.shiftKey&&!t.ctrlKey&&!t.metaKey&&!t.altKey&&o()(",xsyemrafz.ujkpnl",n)||t.shiftKey&&!t.ctrlKey&&!t.metaKey&&!t.altKey&&o()("parfniut",n.toLowerCase()))&&!(a()(e,"input, textarea, button, [contenteditable]")||!a()(e,".inboxsdk__custom_view")&&a()(e,"[role=button], [role=link]"))})(t)&&Object.defineProperties(t,{altKey:c(!1),ctrlKey:c(!1),shiftKey:c(!1),metaKey:c(!1),charCode:c(92),code:c("Backslash"),key:c("\\"),keyCode:c(92),which:c(92)})}catch(t){u.error(t)}}));function d(){document.addEventListener("keydown",h,!0)}},1623:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var r=n(4681),i=n.n(r);function o(){const t=new Set;document.addEventListener("inboxSDKregisterAllowedHashLinkStartTerm",(function(e){const n=e.detail.term;t.add(n)})),document.addEventListener("click",(function(e){const n=e.target;if(!(n instanceof HTMLElement))return;const r=i()(n,'a[href^="#"]');if(!(r&&r instanceof HTMLAnchorElement))return;const o=/^#([^/]+)/.exec(r.getAttribute("href")||"");if(!o)return;const s=o[1];t.has(s)&&(e.preventDefault=()=>{})}),!0)}},244:(t,e,n)=>{"use strict";function r(){const t=history.pushState;history.pushState=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];const i=t.apply(this,n);return document.dispatchEvent(new CustomEvent("inboxSDKpushState",{bubbles:!1,cancelable:!1,detail:{args:n}})),i}}n.d(e,{Z:()=>r})},5309:(t,e,n)=>{"use strict";function r(){document.addEventListener("inboxSDKpageAjax",(function(t){const e=t.detail.id,n={url:t.detail.url,method:t.detail.method,headers:t.detail.headers,xhrFields:t.detail.xhrFields,data:t.detail.data};(async()=>{const t=await fetch(n.url,{method:n.method||"GET",credentials:"include"});document.dispatchEvent(new CustomEvent("inboxSDKpageAjaxDone",{bubbles:!1,cancelable:!1,detail:{id:e,error:!1,text:await t.text(),responseURL:t.url}}))})().catch((t=>{document.dispatchEvent(new CustomEvent("inboxSDKpageAjaxDone",{bubbles:!1,cancelable:!1,detail:{id:e,error:!0,message:t&&t.message,stack:t&&t.stack,status:t&&t.xhr&&t.xhr.status}}))}))}))}n.d(e,{Z:()=>r})},8153:(t,e,n)=>{"use strict";n.d(e,{Ae:()=>_,E3:()=>y,GE:()=>f,MA:()=>p,bd:()=>b,qC:()=>h,vB:()=>l}),n(5564),n(928);var r=n(1095),i=n.n(r),o=n(8583),s=n.n(o),a=n(2780);function u(t,e){for(let n=e,r=t.length;n<r;n++)if('"'===t[n]||"'"===t[n])return n;return-1}function c(t,e,n){for(let r=e,i=t.length;r<i;r++)if("\\"===t[r])r++;else if(t[r]===n)return r;return-1}function l(t){const e={includeLengths:!1,suggestionMode:/^5\n/.test(t),noArrayNewLines:!/^[,\]]/m.test(t),includeExplicitNulls:!0},n=[];let r;if(e.suggestionMode){if(r=t.indexOf("'\n"),-1===r)throw new Error("Message was missing beginning header");r+=2}else{if(r=t.indexOf("\n\n"),-1===r)throw new Error("Message was missing beginning newlines");r+=2}for(;r<t.length;){let i=t.indexOf("\n",r+1);-1===i?i=t.length:"\r"===t[i-1]&&(i+=1);const o=t.slice(r,i);let s;if(/^\d+\s*$/.test(o)){e.includeLengths=!0;const n=+o;s=t.slice(i,i+n),r=i+n}else s=t.slice(r),r=t.length;n.push(f(s))}return{value:n,options:e}}function f(t){t=function(t,e){const n=[];let r,i=0,o=!1;for(;-1!==(r=c(t,i,'"'));)o?n.push(t.slice(i,r+1)):n.push(e(t.slice(i,r+1))),i=r+1,o=!o;if(o)throw new Error("string ended inside quoted section");return n.push(e(t.slice(i))),n.join("")}(t=function(t){let e=0;const n=[];for(;;){const r=u(t,e);if(r<0){n.push(t.substr(e));break}if(n.push(t.substr(e,r-e)),n.push('"'),e=r+1,'"'===t[r]){const r=c(t,e,'"');if(r<0)throw new Error("Unclosed double quote");n.push(t.slice(e,r+1)),e=r+1}else{const r=c(t,e,"'");if(r<0)throw new Error("Unclosed single quote");const i=t.slice(e,r).replace(/"/g,'\\"').replace(/\\'/g,"'");n.push(i),n.push('"'),e=r+1}}return n.join("")}(t=t.replace(/[\r\n\t]/g,"")),(t=>t.replace(/,\s*(?=,|\])/g,",null").replace(/\[\s*(?=,)/g,"[null")));try{return JSON.parse(t,((t,e)=>null==e?void 0:e))}catch(t){throw new Error("deserialization error")}}function h(t,e){return e.suggestionMode?(s()(e.includeLengths),function(t,e){let n="5\n)]}'\n";for(let r=0;r<t.length;r++){const i=d(t[r],!1,e);n+=i.length+"\r\n"+i}return n}(t,e.includeExplicitNulls)):function(t,e){const{includeLengths:n,noArrayNewLines:r,includeExplicitNulls:i}=e;let o=")]}'\n"+(r&&n?"":"\n");for(let e=0;e<t.length;e++){const s=d(t[e],r,i);o+=n?(r?"\n":"")+(s.length+(r?2:1))+"\n"+s:s}if(!n)if(r)o=o.replace(/"([0-9a-f]{8,16})"\]$/,"'$1']");else{const t=o.split(/\r|\n/),e=t.slice(0,-3),n=t.slice(-3);o=e.join("\n"),o+="\n"+n[0]+n[1].replace(/"/g,"'")}return o+(r&&n?"\n":"")}(t,e)}function d(t,e,n){let r="[";for(let i=0;i<t.length;i++){const o=t[i];let s;s=Array.isArray(o)?d(o,e,n):null==o?n?"null":"":JSON.stringify(o).replace(/</gim,"\\u003c").replace(/=/gim,"\\u003d").replace(/>/gim,"\\u003e").replace(/&/gim,"\\u0026"),i>0&&(r+=","),r+=s}return r+="]"+(e?"":"\n"),r}function p(t){return _(l(t).value)}function _(t){return 1===t.length&&2===t[0].length&&"string"==typeof t[0][1]&&(t=[t[0][0]]),(e=t,i().toArray(e,v)).map((t=>Object.freeze(Object.defineProperty({subject:(0,a.Z)(t[9]),shortDate:(0,a.Z)(t[14]),timeString:(0,a.Z)(t[15]),peopleHtml:y(t[7]),timestamp:t[16]/1e3,isUnread:t[9].indexOf("<b>")>-1,lastEmailAddress:t[28],bodyPreviewHtml:t[10],someGmailMessageIds:[t[1],t[2]],gmailThreadId:t[0]},"_originalGmailFormat",{value:t}))));var e}function y(t){return t.replace(/^[^<]*/,"").replace(/(<span[^>]*) class="[^"]*"/g,"$1")}i().compose(i().cat,i().cat,i().filter((t=>"cs"===t[0])),i().map((t=>[t[1],t[2]])));const v=i().compose(i().cat,i().filter((t=>"tb"===t[0])),i().map((t=>t[2])),i().cat),m=i().compose(i().cat,i().filter((t=>"cs"===t[0])),i().map((t=>({threadID:t[1],messageIDs:t[8]})))),g=i().compose(i().cat,i().filter((t=>"ms"===t[0])),i().map((t=>({messageID:t[1],date:t[7]}))));function b(t){let{value:e}=l(t);1===e.length&&(e=e[0]);const n=i().toArray(e,m),r=i().toArray(e,g),o={};return r.forEach((t=>{o[t.messageID]=t})),n.map((t=>{let{threadID:e,messageIDs:n}=t;return{threadID:e,messages:n.map((t=>o[t]))}}))}},1375:(t,e,n)=>{"use strict";function r(){const t=document.location.pathname.match(/\/b\/(.+?)\/u\/(\d+)/);if(t){const e=t[1];return`/u/${t[2]}/d/${e}`}{const t=document.location.pathname.match(/(\/u\/\d+)\//i);return t?t[1]:"/u/0"}}n.d(e,{Z:()=>r})},4776:(t,e,n)=>{"use strict";n.d(e,{Z:()=>h});var r=n(1010),i=n(6609);function o(t,e,n){let r=[];const i=[];let o=!1;function s(){i.shift()(),i.length?a():o=!1}function a(){o=!0;const t=function(){const t=Date.now()-e;return r=r.filter((e=>e>t)),r.length>=n?r[0]-t:-1}();t>0?setTimeout(s,t):s()}return function(){for(var e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];let u;const c=new Promise(((e,i)=>{u=()=>{r.push(Date.now());try{e(t.apply(this,n))}catch(t){i(t)}}}));if(!u)throw new Error("Should not happen");return i.push(u),o||a(),c}}var s=n(7673),a=n(443);const u=/([?&])_=[^&]*/;let c=Date.now()+Math.floor(Math.random()*Math.pow(2,32));const l={};t=n.hmd(t);const f=o(o((function t(e){if(!e||"string"!=typeof e.url)throw new Error("URL must be given");return new Promise((function(n,r){const i=e.method?e.method:"GET";let o=e.url,f=null;e.data&&(f="string"==typeof e.data?e.data:s.stringify(e.data),"GET"!==i&&"HEAD"!==i||(o+=(/\?/.test(o)?"&":"?")+f,f=null));const h=null!=e.canRetry?e.canRetry:"GET"===i||"HEAD"===i,d=o.match(/(?:(?:[a-z]+:)?\/\/)?([^/]*)\//);if(!d)throw new Error("Failed to match url");const p=d[1];if(Object.prototype.hasOwnProperty.call(l,p))return void r(new Error(`Server at ${o} has told us to stop connecting`));e.cachebust&&(o=function(t){return u.test(t)?t.replace(u,"$1_="+c++):t+(/\?/.test(t)?"&":"?")+"_="+c++}(o));const _=new(e.XMLHttpRequest||window.XMLHttpRequest);if(Object.assign(_,e.xhrFields),_.onerror=function(i){if((e.retryNum||0)<5&&(502===_.status||(0===_.status||_.status>=500)&&h))return void n(function(e){const n=(e.retryNum||0)+1,r=Math.min(1e3*Math.pow(2,n),64e3);return(0,a.Z)(r).then((()=>t(Object.assign({},e,{retryNum:n}))))}(e));const s=Object.assign(new Error(`Failed to load ${o}`),{event:i,xhr:_,status:_.status});490==_.status&&(l[p]=!0),r(s)},_.onload=function(t){200===_.status?n({xhr:_,text:_.responseText}):_.onerror(t)},_.open(i,o,!0),e.headers){const{headers:t}=e;Object.keys(t).forEach((e=>{const n=t[e];_.setRequestHeader(e,n)}))}_.send(f)}))}),1e3,7),1e4,50),h=(0,r.Kg)(t,(async function(t){if(!/^https:\/\/mail\.google\.com(?:$|\/)/.test(t.url))throw new Error("Should not happen: gmailAjax called with non-gmail url");if("https://mail.google.com"===document.location.origin)return await f(t);try{return await f({...t,canRetry:!1})}catch(e){if(e&&0===e.status){try{await i.ZP.fromPromise(("https://mail.google.com/mail/u/0/",new Promise(((t,e)=>{const n=new Image;n.addEventListener("load",(()=>t(n))),n.addEventListener("error",e),n.src="https://mail.google.com/mail/u/0/"})))).merge(i.ZP.later(6e4,void 0)).take(1).takeErrors(1).toPromise()}catch(t){}return await f(t)}if(e&&"number"==typeof e.status&&e.status>=500)return await f(t);throw e}}))},2147:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var r=n(1010),i=n(7673),o=n(4776),s=n(1375);t=n.hmd(t);const a=(0,r.Kg)(t,(async function(t,e){const n={ui:2,ik:t,view:"cv",th:e,pcd:1,mb:0,rt:"c",search:"inbox",type:e},{text:r}=await(0,o.Z)({method:"POST",url:`https://mail.google.com/mail${(0,s.Z)()}?${i.stringify(n)}`,canRetry:!0});return r}))},4431:function(t,e,n){var r;!function(i){"use strict";var o,s=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,a=Math.ceil,u=Math.floor,c="[BigNumber Error] ",l=c+"Number primitive has more than 15 significant digits: ",f=1e14,h=14,d=9007199254740991,p=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],_=1e7,y=1e9;function v(t){var e=0|t;return t>0||t===e?e:e-1}function m(t){for(var e,n,r=1,i=t.length,o=t[0]+"";r<i;){for(e=t[r++]+"",n=h-e.length;n--;e="0"+e);o+=e}for(i=o.length;48===o.charCodeAt(--i););return o.slice(0,i+1||1)}function g(t,e){var n,r,i=t.c,o=e.c,s=t.s,a=e.s,u=t.e,c=e.e;if(!s||!a)return null;if(n=i&&!i[0],r=o&&!o[0],n||r)return n?r?0:-a:s;if(s!=a)return s;if(n=s<0,r=u==c,!i||!o)return r?0:!i^n?1:-1;if(!r)return u>c^n?1:-1;for(a=(u=i.length)<(c=o.length)?u:c,s=0;s<a;s++)if(i[s]!=o[s])return i[s]>o[s]^n?1:-1;return u==c?0:u>c^n?1:-1}function b(t,e,n,r){if(t<e||t>n||t!==u(t))throw Error(c+(r||"Argument")+("number"==typeof t?t<e||t>n?" out of range: ":" not an integer: ":" not a primitive number: ")+String(t))}function x(t){var e=t.c.length-1;return v(t.e/h)==e&&t.c[e]%2!=0}function w(t,e){return(t.length>1?t.charAt(0)+"."+t.slice(1):t)+(e<0?"e":"e+")+e}function E(t,e,n){var r,i;if(e<0){for(i=n+".";++e;i+=n);t=i+t}else if(++e>(r=t.length)){for(i=n,e-=r;--e;i+=n);t+=i}else e<r&&(t=t.slice(0,e)+"."+t.slice(e));return t}o=function t(e){var n,r,i,o,A,S,O,T,j,D,I=H.prototype={constructor:H,toString:null,valueOf:null},L=new H(1),k=20,M=4,R=-7,P=21,C=-1e7,q=1e7,N=!1,V=1,B=0,$={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},F="0123456789abcdefghijklmnopqrstuvwxyz";function H(t,e){var n,o,a,c,f,p,_,y,v=this;if(!(v instanceof H))return new H(t,e);if(null==e){if(t&&!0===t._isBigNumber)return v.s=t.s,void(!t.c||t.e>q?v.c=v.e=null:t.e<C?v.c=[v.e=0]:(v.e=t.e,v.c=t.c.slice()));if((p="number"==typeof t)&&0*t==0){if(v.s=1/t<0?(t=-t,-1):1,t===~~t){for(c=0,f=t;f>=10;f/=10,c++);return void(c>q?v.c=v.e=null:(v.e=c,v.c=[t]))}y=String(t)}else{if(!s.test(y=String(t)))return i(v,y,p);v.s=45==y.charCodeAt(0)?(y=y.slice(1),-1):1}(c=y.indexOf("."))>-1&&(y=y.replace(".","")),(f=y.search(/e/i))>0?(c<0&&(c=f),c+=+y.slice(f+1),y=y.substring(0,f)):c<0&&(c=y.length)}else{if(b(e,2,F.length,"Base"),10==e)return K(v=new H(t),k+v.e+1,M);if(y=String(t),p="number"==typeof t){if(0*t!=0)return i(v,y,p,e);if(v.s=1/t<0?(y=y.slice(1),-1):1,H.DEBUG&&y.replace(/^0\.0*|\./,"").length>15)throw Error(l+t)}else v.s=45===y.charCodeAt(0)?(y=y.slice(1),-1):1;for(n=F.slice(0,e),c=f=0,_=y.length;f<_;f++)if(n.indexOf(o=y.charAt(f))<0){if("."==o){if(f>c){c=_;continue}}else if(!a&&(y==y.toUpperCase()&&(y=y.toLowerCase())||y==y.toLowerCase()&&(y=y.toUpperCase()))){a=!0,f=-1,c=0;continue}return i(v,String(t),p,e)}p=!1,(c=(y=r(y,e,10,v.s)).indexOf("."))>-1?y=y.replace(".",""):c=y.length}for(f=0;48===y.charCodeAt(f);f++);for(_=y.length;48===y.charCodeAt(--_););if(y=y.slice(f,++_)){if(_-=f,p&&H.DEBUG&&_>15&&(t>d||t!==u(t)))throw Error(l+v.s*t);if((c=c-f-1)>q)v.c=v.e=null;else if(c<C)v.c=[v.e=0];else{if(v.e=c,v.c=[],f=(c+1)%h,c<0&&(f+=h),f<_){for(f&&v.c.push(+y.slice(0,f)),_-=h;f<_;)v.c.push(+y.slice(f,f+=h));f=h-(y=y.slice(f)).length}else f-=_;for(;f--;y+="0");v.c.push(+y)}}else v.c=[v.e=0]}function U(t,e,n,r){var i,o,s,a,u;if(null==n?n=M:b(n,0,8),!t.c)return t.toString();if(i=t.c[0],s=t.e,null==e)u=m(t.c),u=1==r||2==r&&(s<=R||s>=P)?w(u,s):E(u,s,"0");else if(o=(t=K(new H(t),e,n)).e,a=(u=m(t.c)).length,1==r||2==r&&(e<=o||o<=R)){for(;a<e;u+="0",a++);u=w(u,o)}else if(e-=s,u=E(u,o,"0"),o+1>a){if(--e>0)for(u+=".";e--;u+="0");}else if((e+=o-a)>0)for(o+1==a&&(u+=".");e--;u+="0");return t.s<0&&i?"-"+u:u}function G(t,e){for(var n,r=1,i=new H(t[0]);r<t.length;r++){if(!(n=new H(t[r])).s){i=n;break}e.call(i,n)&&(i=n)}return i}function z(t,e,n){for(var r=1,i=e.length;!e[--i];e.pop());for(i=e[0];i>=10;i/=10,r++);return(n=r+n*h-1)>q?t.c=t.e=null:n<C?t.c=[t.e=0]:(t.e=n,t.c=e),t}function K(t,e,n,r){var i,o,s,c,l,d,_,y=t.c,v=p;if(y){t:{for(i=1,c=y[0];c>=10;c/=10,i++);if((o=e-i)<0)o+=h,s=e,_=(l=y[d=0])/v[i-s-1]%10|0;else if((d=a((o+1)/h))>=y.length){if(!r)break t;for(;y.length<=d;y.push(0));l=_=0,i=1,s=(o%=h)-h+1}else{for(l=c=y[d],i=1;c>=10;c/=10,i++);_=(s=(o%=h)-h+i)<0?0:l/v[i-s-1]%10|0}if(r=r||e<0||null!=y[d+1]||(s<0?l:l%v[i-s-1]),r=n<4?(_||r)&&(0==n||n==(t.s<0?3:2)):_>5||5==_&&(4==n||r||6==n&&(o>0?s>0?l/v[i-s]:0:y[d-1])%10&1||n==(t.s<0?8:7)),e<1||!y[0])return y.length=0,r?(e-=t.e+1,y[0]=v[(h-e%h)%h],t.e=-e||0):y[0]=t.e=0,t;if(0==o?(y.length=d,c=1,d--):(y.length=d+1,c=v[h-o],y[d]=s>0?u(l/v[i-s]%v[s])*c:0),r)for(;;){if(0==d){for(o=1,s=y[0];s>=10;s/=10,o++);for(s=y[0]+=c,c=1;s>=10;s/=10,c++);o!=c&&(t.e++,y[0]==f&&(y[0]=1));break}if(y[d]+=c,y[d]!=f)break;y[d--]=0,c=1}for(o=y.length;0===y[--o];y.pop());}t.e>q?t.c=t.e=null:t.e<C&&(t.c=[t.e=0])}return t}function W(t){var e,n=t.e;return null===n?t.toString():(e=m(t.c),e=n<=R||n>=P?w(e,n):E(e,n,"0"),t.s<0?"-"+e:e)}return H.clone=t,H.ROUND_UP=0,H.ROUND_DOWN=1,H.ROUND_CEIL=2,H.ROUND_FLOOR=3,H.ROUND_HALF_UP=4,H.ROUND_HALF_DOWN=5,H.ROUND_HALF_EVEN=6,H.ROUND_HALF_CEIL=7,H.ROUND_HALF_FLOOR=8,H.EUCLID=9,H.config=H.set=function(t){var e,n;if(null!=t){if("object"!=typeof t)throw Error(c+"Object expected: "+t);if(t.hasOwnProperty(e="DECIMAL_PLACES")&&(b(n=t[e],0,y,e),k=n),t.hasOwnProperty(e="ROUNDING_MODE")&&(b(n=t[e],0,8,e),M=n),t.hasOwnProperty(e="EXPONENTIAL_AT")&&((n=t[e])&&n.pop?(b(n[0],-y,0,e),b(n[1],0,y,e),R=n[0],P=n[1]):(b(n,-y,y,e),R=-(P=n<0?-n:n))),t.hasOwnProperty(e="RANGE"))if((n=t[e])&&n.pop)b(n[0],-y,-1,e),b(n[1],1,y,e),C=n[0],q=n[1];else{if(b(n,-y,y,e),!n)throw Error(c+e+" cannot be zero: "+n);C=-(q=n<0?-n:n)}if(t.hasOwnProperty(e="CRYPTO")){if((n=t[e])!==!!n)throw Error(c+e+" not true or false: "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw N=!n,Error(c+"crypto unavailable");N=n}else N=n}if(t.hasOwnProperty(e="MODULO_MODE")&&(b(n=t[e],0,9,e),V=n),t.hasOwnProperty(e="POW_PRECISION")&&(b(n=t[e],0,y,e),B=n),t.hasOwnProperty(e="FORMAT")){if("object"!=typeof(n=t[e]))throw Error(c+e+" not an object: "+n);$=n}if(t.hasOwnProperty(e="ALPHABET")){if("string"!=typeof(n=t[e])||/^.?$|[+\-.\s]|(.).*\1/.test(n))throw Error(c+e+" invalid: "+n);F=n}}return{DECIMAL_PLACES:k,ROUNDING_MODE:M,EXPONENTIAL_AT:[R,P],RANGE:[C,q],CRYPTO:N,MODULO_MODE:V,POW_PRECISION:B,FORMAT:$,ALPHABET:F}},H.isBigNumber=function(t){if(!t||!0!==t._isBigNumber)return!1;if(!H.DEBUG)return!0;var e,n,r=t.c,i=t.e,o=t.s;t:if("[object Array]"=={}.toString.call(r)){if((1===o||-1===o)&&i>=-y&&i<=y&&i===u(i)){if(0===r[0]){if(0===i&&1===r.length)return!0;break t}if((e=(i+1)%h)<1&&(e+=h),String(r[0]).length==e){for(e=0;e<r.length;e++)if((n=r[e])<0||n>=f||n!==u(n))break t;if(0!==n)return!0}}}else if(null===r&&null===i&&(null===o||1===o||-1===o))return!0;throw Error(c+"Invalid BigNumber: "+t)},H.maximum=H.max=function(){return G(arguments,I.lt)},H.minimum=H.min=function(){return G(arguments,I.gt)},H.random=(o=9007199254740992,A=Math.random()*o&2097151?function(){return u(Math.random()*o)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(t){var e,n,r,i,o,s=0,l=[],f=new H(L);if(null==t?t=k:b(t,0,y),i=a(t/h),N)if(crypto.getRandomValues){for(e=crypto.getRandomValues(new Uint32Array(i*=2));s<i;)(o=131072*e[s]+(e[s+1]>>>11))>=9e15?(n=crypto.getRandomValues(new Uint32Array(2)),e[s]=n[0],e[s+1]=n[1]):(l.push(o%1e14),s+=2);s=i/2}else{if(!crypto.randomBytes)throw N=!1,Error(c+"crypto unavailable");for(e=crypto.randomBytes(i*=7);s<i;)(o=281474976710656*(31&e[s])+1099511627776*e[s+1]+4294967296*e[s+2]+16777216*e[s+3]+(e[s+4]<<16)+(e[s+5]<<8)+e[s+6])>=9e15?crypto.randomBytes(7).copy(e,s):(l.push(o%1e14),s+=7);s=i/7}if(!N)for(;s<i;)(o=A())<9e15&&(l[s++]=o%1e14);for(i=l[--s],t%=h,i&&t&&(o=p[h-t],l[s]=u(i/o)*o);0===l[s];l.pop(),s--);if(s<0)l=[r=0];else{for(r=-1;0===l[0];l.splice(0,1),r-=h);for(s=1,o=l[0];o>=10;o/=10,s++);s<h&&(r-=h-s)}return f.e=r,f.c=l,f}),H.sum=function(){for(var t=1,e=arguments,n=new H(e[0]);t<e.length;)n=n.plus(e[t++]);return n},r=function(){var t="0123456789";function e(t,e,n,r){for(var i,o,s=[0],a=0,u=t.length;a<u;){for(o=s.length;o--;s[o]*=e);for(s[0]+=r.indexOf(t.charAt(a++)),i=0;i<s.length;i++)s[i]>n-1&&(null==s[i+1]&&(s[i+1]=0),s[i+1]+=s[i]/n|0,s[i]%=n)}return s.reverse()}return function(r,i,o,s,a){var u,c,l,f,h,d,p,_,y=r.indexOf("."),v=k,g=M;for(y>=0&&(f=B,B=0,r=r.replace(".",""),d=(_=new H(i)).pow(r.length-y),B=f,_.c=e(E(m(d.c),d.e,"0"),10,o,t),_.e=_.c.length),l=f=(p=e(r,i,o,a?(u=F,t):(u=t,F))).length;0==p[--f];p.pop());if(!p[0])return u.charAt(0);if(y<0?--l:(d.c=p,d.e=l,d.s=s,p=(d=n(d,_,v,g,o)).c,h=d.r,l=d.e),y=p[c=l+v+1],f=o/2,h=h||c<0||null!=p[c+1],h=g<4?(null!=y||h)&&(0==g||g==(d.s<0?3:2)):y>f||y==f&&(4==g||h||6==g&&1&p[c-1]||g==(d.s<0?8:7)),c<1||!p[0])r=h?E(u.charAt(1),-v,u.charAt(0)):u.charAt(0);else{if(p.length=c,h)for(--o;++p[--c]>o;)p[c]=0,c||(++l,p=[1].concat(p));for(f=p.length;!p[--f];);for(y=0,r="";y<=f;r+=u.charAt(p[y++]));r=E(r,l,u.charAt(0))}return r}}(),n=function(){function t(t,e,n){var r,i,o,s,a=0,u=t.length,c=e%_,l=e/_|0;for(t=t.slice();u--;)a=((i=c*(o=t[u]%_)+(r=l*o+(s=t[u]/_|0)*c)%_*_+a)/n|0)+(r/_|0)+l*s,t[u]=i%n;return a&&(t=[a].concat(t)),t}function e(t,e,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;i<n;i++)if(t[i]!=e[i]){o=t[i]>e[i]?1:-1;break}return o}function n(t,e,n,r){for(var i=0;n--;)t[n]-=i,i=t[n]<e[n]?1:0,t[n]=i*r+t[n]-e[n];for(;!t[0]&&t.length>1;t.splice(0,1));}return function(r,i,o,s,a){var c,l,d,p,_,y,m,g,b,x,w,E,A,S,O,T,j,D=r.s==i.s?1:-1,I=r.c,L=i.c;if(!(I&&I[0]&&L&&L[0]))return new H(r.s&&i.s&&(I?!L||I[0]!=L[0]:L)?I&&0==I[0]||!L?0*D:D/0:NaN);for(b=(g=new H(D)).c=[],D=o+(l=r.e-i.e)+1,a||(a=f,l=v(r.e/h)-v(i.e/h),D=D/h|0),d=0;L[d]==(I[d]||0);d++);if(L[d]>(I[d]||0)&&l--,D<0)b.push(1),p=!0;else{for(S=I.length,T=L.length,d=0,D+=2,(_=u(a/(L[0]+1)))>1&&(L=t(L,_,a),I=t(I,_,a),T=L.length,S=I.length),A=T,w=(x=I.slice(0,T)).length;w<T;x[w++]=0);j=L.slice(),j=[0].concat(j),O=L[0],L[1]>=a/2&&O++;do{if(_=0,(c=e(L,x,T,w))<0){if(E=x[0],T!=w&&(E=E*a+(x[1]||0)),(_=u(E/O))>1)for(_>=a&&(_=a-1),m=(y=t(L,_,a)).length,w=x.length;1==e(y,x,m,w);)_--,n(y,T<m?j:L,m,a),m=y.length,c=1;else 0==_&&(c=_=1),m=(y=L.slice()).length;if(m<w&&(y=[0].concat(y)),n(x,y,w,a),w=x.length,-1==c)for(;e(L,x,T,w)<1;)_++,n(x,T<w?j:L,w,a),w=x.length}else 0===c&&(_++,x=[0]);b[d++]=_,x[0]?x[w++]=I[A]||0:(x=[I[A]],w=1)}while((A++<S||null!=x[0])&&D--);p=null!=x[0],b[0]||b.splice(0,1)}if(a==f){for(d=1,D=b[0];D>=10;D/=10,d++);K(g,o+(g.e=d+l*h-1)+1,s,p)}else g.e=l,g.r=+p;return g}}(),S=/^(-?)0([xbo])(?=\w[\w.]*$)/i,O=/^([^.]+)\.$/,T=/^\.([^.]+)$/,j=/^-?(Infinity|NaN)$/,D=/^\s*\+(?=[\w.])|^\s+|\s+$/g,i=function(t,e,n,r){var i,o=n?e:e.replace(D,"");if(j.test(o))t.s=isNaN(o)?null:o<0?-1:1;else{if(!n&&(o=o.replace(S,(function(t,e,n){return i="x"==(n=n.toLowerCase())?16:"b"==n?2:8,r&&r!=i?t:e})),r&&(i=r,o=o.replace(O,"$1").replace(T,"0.$1")),e!=o))return new H(o,i);if(H.DEBUG)throw Error(c+"Not a"+(r?" base "+r:"")+" number: "+e);t.s=null}t.c=t.e=null},I.absoluteValue=I.abs=function(){var t=new H(this);return t.s<0&&(t.s=1),t},I.comparedTo=function(t,e){return g(this,new H(t,e))},I.decimalPlaces=I.dp=function(t,e){var n,r,i,o=this;if(null!=t)return b(t,0,y),null==e?e=M:b(e,0,8),K(new H(o),t+o.e+1,e);if(!(n=o.c))return null;if(r=((i=n.length-1)-v(this.e/h))*h,i=n[i])for(;i%10==0;i/=10,r--);return r<0&&(r=0),r},I.dividedBy=I.div=function(t,e){return n(this,new H(t,e),k,M)},I.dividedToIntegerBy=I.idiv=function(t,e){return n(this,new H(t,e),0,1)},I.exponentiatedBy=I.pow=function(t,e){var n,r,i,o,s,l,f,d,p=this;if((t=new H(t)).c&&!t.isInteger())throw Error(c+"Exponent not an integer: "+W(t));if(null!=e&&(e=new H(e)),s=t.e>14,!p.c||!p.c[0]||1==p.c[0]&&!p.e&&1==p.c.length||!t.c||!t.c[0])return d=new H(Math.pow(+W(p),s?2-x(t):+W(t))),e?d.mod(e):d;if(l=t.s<0,e){if(e.c?!e.c[0]:!e.s)return new H(NaN);(r=!l&&p.isInteger()&&e.isInteger())&&(p=p.mod(e))}else{if(t.e>9&&(p.e>0||p.e<-1||(0==p.e?p.c[0]>1||s&&p.c[1]>=24e7:p.c[0]<8e13||s&&p.c[0]<=9999975e7)))return o=p.s<0&&x(t)?-0:0,p.e>-1&&(o=1/o),new H(l?1/o:o);B&&(o=a(B/h+2))}for(s?(n=new H(.5),l&&(t.s=1),f=x(t)):f=(i=Math.abs(+W(t)))%2,d=new H(L);;){if(f){if(!(d=d.times(p)).c)break;o?d.c.length>o&&(d.c.length=o):r&&(d=d.mod(e))}if(i){if(0===(i=u(i/2)))break;f=i%2}else if(K(t=t.times(n),t.e+1,1),t.e>14)f=x(t);else{if(0==(i=+W(t)))break;f=i%2}p=p.times(p),o?p.c&&p.c.length>o&&(p.c.length=o):r&&(p=p.mod(e))}return r?d:(l&&(d=L.div(d)),e?d.mod(e):o?K(d,B,M,void 0):d)},I.integerValue=function(t){var e=new H(this);return null==t?t=M:b(t,0,8),K(e,e.e+1,t)},I.isEqualTo=I.eq=function(t,e){return 0===g(this,new H(t,e))},I.isFinite=function(){return!!this.c},I.isGreaterThan=I.gt=function(t,e){return g(this,new H(t,e))>0},I.isGreaterThanOrEqualTo=I.gte=function(t,e){return 1===(e=g(this,new H(t,e)))||0===e},I.isInteger=function(){return!!this.c&&v(this.e/h)>this.c.length-2},I.isLessThan=I.lt=function(t,e){return g(this,new H(t,e))<0},I.isLessThanOrEqualTo=I.lte=function(t,e){return-1===(e=g(this,new H(t,e)))||0===e},I.isNaN=function(){return!this.s},I.isNegative=function(){return this.s<0},I.isPositive=function(){return this.s>0},I.isZero=function(){return!!this.c&&0==this.c[0]},I.minus=function(t,e){var n,r,i,o,s=this,a=s.s;if(e=(t=new H(t,e)).s,!a||!e)return new H(NaN);if(a!=e)return t.s=-e,s.plus(t);var u=s.e/h,c=t.e/h,l=s.c,d=t.c;if(!u||!c){if(!l||!d)return l?(t.s=-e,t):new H(d?s:NaN);if(!l[0]||!d[0])return d[0]?(t.s=-e,t):new H(l[0]?s:3==M?-0:0)}if(u=v(u),c=v(c),l=l.slice(),a=u-c){for((o=a<0)?(a=-a,i=l):(c=u,i=d),i.reverse(),e=a;e--;i.push(0));i.reverse()}else for(r=(o=(a=l.length)<(e=d.length))?a:e,a=e=0;e<r;e++)if(l[e]!=d[e]){o=l[e]<d[e];break}if(o&&(i=l,l=d,d=i,t.s=-t.s),(e=(r=d.length)-(n=l.length))>0)for(;e--;l[n++]=0);for(e=f-1;r>a;){if(l[--r]<d[r]){for(n=r;n&&!l[--n];l[n]=e);--l[n],l[r]+=f}l[r]-=d[r]}for(;0==l[0];l.splice(0,1),--c);return l[0]?z(t,l,c):(t.s=3==M?-1:1,t.c=[t.e=0],t)},I.modulo=I.mod=function(t,e){var r,i,o=this;return t=new H(t,e),!o.c||!t.s||t.c&&!t.c[0]?new H(NaN):!t.c||o.c&&!o.c[0]?new H(o):(9==V?(i=t.s,t.s=1,r=n(o,t,0,3),t.s=i,r.s*=i):r=n(o,t,0,V),(t=o.minus(r.times(t))).c[0]||1!=V||(t.s=o.s),t)},I.multipliedBy=I.times=function(t,e){var n,r,i,o,s,a,u,c,l,d,p,y,m,g,b,x=this,w=x.c,E=(t=new H(t,e)).c;if(!(w&&E&&w[0]&&E[0]))return!x.s||!t.s||w&&!w[0]&&!E||E&&!E[0]&&!w?t.c=t.e=t.s=null:(t.s*=x.s,w&&E?(t.c=[0],t.e=0):t.c=t.e=null),t;for(r=v(x.e/h)+v(t.e/h),t.s*=x.s,(u=w.length)<(d=E.length)&&(m=w,w=E,E=m,i=u,u=d,d=i),i=u+d,m=[];i--;m.push(0));for(g=f,b=_,i=d;--i>=0;){for(n=0,p=E[i]%b,y=E[i]/b|0,o=i+(s=u);o>i;)n=((c=p*(c=w[--s]%b)+(a=y*c+(l=w[s]/b|0)*p)%b*b+m[o]+n)/g|0)+(a/b|0)+y*l,m[o--]=c%g;m[o]=n}return n?++r:m.splice(0,1),z(t,m,r)},I.negated=function(){var t=new H(this);return t.s=-t.s||null,t},I.plus=function(t,e){var n,r=this,i=r.s;if(e=(t=new H(t,e)).s,!i||!e)return new H(NaN);if(i!=e)return t.s=-e,r.minus(t);var o=r.e/h,s=t.e/h,a=r.c,u=t.c;if(!o||!s){if(!a||!u)return new H(i/0);if(!a[0]||!u[0])return u[0]?t:new H(a[0]?r:0*i)}if(o=v(o),s=v(s),a=a.slice(),i=o-s){for(i>0?(s=o,n=u):(i=-i,n=a),n.reverse();i--;n.push(0));n.reverse()}for((i=a.length)-(e=u.length)<0&&(n=u,u=a,a=n,e=i),i=0;e;)i=(a[--e]=a[e]+u[e]+i)/f|0,a[e]=f===a[e]?0:a[e]%f;return i&&(a=[i].concat(a),++s),z(t,a,s)},I.precision=I.sd=function(t,e){var n,r,i,o=this;if(null!=t&&t!==!!t)return b(t,1,y),null==e?e=M:b(e,0,8),K(new H(o),t,e);if(!(n=o.c))return null;if(r=(i=n.length-1)*h+1,i=n[i]){for(;i%10==0;i/=10,r--);for(i=n[0];i>=10;i/=10,r++);}return t&&o.e+1>r&&(r=o.e+1),r},I.shiftedBy=function(t){return b(t,-9007199254740991,d),this.times("1e"+t)},I.squareRoot=I.sqrt=function(){var t,e,r,i,o,s=this,a=s.c,u=s.s,c=s.e,l=k+4,f=new H("0.5");if(1!==u||!a||!a[0])return new H(!u||u<0&&(!a||a[0])?NaN:a?s:1/0);if(0==(u=Math.sqrt(+W(s)))||u==1/0?(((e=m(a)).length+c)%2==0&&(e+="0"),u=Math.sqrt(+e),c=v((c+1)/2)-(c<0||c%2),r=new H(e=u==1/0?"5e"+c:(e=u.toExponential()).slice(0,e.indexOf("e")+1)+c)):r=new H(u+""),r.c[0])for((u=(c=r.e)+l)<3&&(u=0);;)if(o=r,r=f.times(o.plus(n(s,o,l,1))),m(o.c).slice(0,u)===(e=m(r.c)).slice(0,u)){if(r.e<c&&--u,"9999"!=(e=e.slice(u-3,u+1))&&(i||"4999"!=e)){+e&&(+e.slice(1)||"5"!=e.charAt(0))||(K(r,r.e+k+2,1),t=!r.times(r).eq(s));break}if(!i&&(K(o,o.e+k+2,0),o.times(o).eq(s))){r=o;break}l+=4,u+=4,i=1}return K(r,r.e+k+1,M,t)},I.toExponential=function(t,e){return null!=t&&(b(t,0,y),t++),U(this,t,e,1)},I.toFixed=function(t,e){return null!=t&&(b(t,0,y),t=t+this.e+1),U(this,t,e)},I.toFormat=function(t,e,n){var r,i=this;if(null==n)null!=t&&e&&"object"==typeof e?(n=e,e=null):t&&"object"==typeof t?(n=t,t=e=null):n=$;else if("object"!=typeof n)throw Error(c+"Argument not an object: "+n);if(r=i.toFixed(t,e),i.c){var o,s=r.split("."),a=+n.groupSize,u=+n.secondaryGroupSize,l=n.groupSeparator||"",f=s[0],h=s[1],d=i.s<0,p=d?f.slice(1):f,_=p.length;if(u&&(o=a,a=u,u=o,_-=o),a>0&&_>0){for(o=_%a||a,f=p.substr(0,o);o<_;o+=a)f+=l+p.substr(o,a);u>0&&(f+=l+p.slice(o)),d&&(f="-"+f)}r=h?f+(n.decimalSeparator||"")+((u=+n.fractionGroupSize)?h.replace(new RegExp("\\d{"+u+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):h):f}return(n.prefix||"")+r+(n.suffix||"")},I.toFraction=function(t){var e,r,i,o,s,a,u,l,f,d,_,y,v=this,g=v.c;if(null!=t&&(!(u=new H(t)).isInteger()&&(u.c||1!==u.s)||u.lt(L)))throw Error(c+"Argument "+(u.isInteger()?"out of range: ":"not an integer: ")+W(u));if(!g)return new H(v);for(e=new H(L),f=r=new H(L),i=l=new H(L),y=m(g),s=e.e=y.length-v.e-1,e.c[0]=p[(a=s%h)<0?h+a:a],t=!t||u.comparedTo(e)>0?s>0?e:f:u,a=q,q=1/0,u=new H(y),l.c[0]=0;d=n(u,e,0,1),1!=(o=r.plus(d.times(i))).comparedTo(t);)r=i,i=o,f=l.plus(d.times(o=f)),l=o,e=u.minus(d.times(o=e)),u=o;return o=n(t.minus(r),i,0,1),l=l.plus(o.times(f)),r=r.plus(o.times(i)),l.s=f.s=v.s,_=n(f,i,s*=2,M).minus(v).abs().comparedTo(n(l,r,s,M).minus(v).abs())<1?[f,i]:[l,r],q=a,_},I.toNumber=function(){return+W(this)},I.toPrecision=function(t,e){return null!=t&&b(t,1,y),U(this,t,e,2)},I.toString=function(t){var e,n=this,i=n.s,o=n.e;return null===o?i?(e="Infinity",i<0&&(e="-"+e)):e="NaN":(null==t?e=o<=R||o>=P?w(m(n.c),o):E(m(n.c),o,"0"):10===t?e=E(m((n=K(new H(n),k+o+1,M)).c),n.e,"0"):(b(t,2,F.length,"Base"),e=r(E(m(n.c),o,"0"),10,t,i,!0)),i<0&&n.c[0]&&(e="-"+e)),e},I.valueOf=I.toJSON=function(){return W(this)},I._isBigNumber=!0,null!=e&&H.set(e),H}(),o.default=o.BigNumber=o,void 0===(r=function(){return o}.call(e,n,e,t))||(t.exports=r)}()},4681:(t,e,n)=>{"use strict";e.__esModule=!0,e.default=function(t,e){if(s)return s.call(t,e);var r=t;do{if((0,i.default)(r,e))return r;r=r.parentNode}while(r&&r!==n.g.document);return null};var r,i=(r=n(5936))&&r.__esModule?r:{default:r},o=n.g.Element&&n.g.Element.prototype,s=o&&o.closest;t.exports=e.default,t.exports.default=e.default},7187:t=>{"use strict";var e,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)};e=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var i=Number.isNaN||function(t){return t!=t};function o(){o.init.call(this)}t.exports=o,t.exports.once=function(t,e){return new Promise((function(n,r){function i(n){t.removeListener(e,o),r(n)}function o(){"function"==typeof t.removeListener&&t.removeListener("error",i),n([].slice.call(arguments))}_(t,e,o,{once:!0}),"error"!==e&&function(t,e,n){"function"==typeof t.on&&_(t,"error",e,{once:!0})}(t,i)}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function a(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function u(t){return void 0===t._maxListeners?o.defaultMaxListeners:t._maxListeners}function c(t,e,n,r){var i,o,s,c;if(a(n),void 0===(o=t._events)?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),o=t._events),s=o[e]),void 0===s)s=o[e]=n,++t._eventsCount;else if("function"==typeof s?s=o[e]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(i=u(t))>0&&s.length>i&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=t,l.type=e,l.count=s.length,c=l,console&&console.warn&&console.warn(c)}return t}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},i=l.bind(r);return i.listener=n,r.wrapFn=i,i}function h(t,e,n){var r=t._events;if(void 0===r)return[];var i=r[e];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}(i):p(i,i.length)}function d(t){var e=this._events;if(void 0!==e){var n=e[t];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function p(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t[r];return n}function _(t,e,n,r){if("function"==typeof t.on)r.once?t.once(e,n):t.on(e,n);else{if("function"!=typeof t.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t);t.addEventListener(e,(function i(o){r.once&&t.removeEventListener(e,i),n(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(t){if("number"!=typeof t||t<0||i(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");s=t}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||i(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},o.prototype.getMaxListeners=function(){return u(this)},o.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e.push(arguments[n]);var i="error"===t,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var s;if(e.length>0&&(s=e[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var u=o[t];if(void 0===u)return!1;if("function"==typeof u)r(u,this,e);else{var c=u.length,l=p(u,c);for(n=0;n<c;++n)r(l[n],this,e)}return!0},o.prototype.addListener=function(t,e){return c(this,t,e,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(t,e){return c(this,t,e,!0)},o.prototype.once=function(t,e){return a(e),this.on(t,f(this,t,e)),this},o.prototype.prependOnceListener=function(t,e){return a(e),this.prependListener(t,f(this,t,e)),this},o.prototype.removeListener=function(t,e){var n,r,i,o,s;if(a(e),void 0===(r=this._events))return this;if(void 0===(n=r[t]))return this;if(n===e||n.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete r[t],r.removeListener&&this.emit("removeListener",t,n.listener||e));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===e||n[o].listener===e){s=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(n,i),1===n.length&&(r[t]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",t,s||e)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(t){var e,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[t]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=n[t]))this.removeListener(t,e);else if(void 0!==e)for(r=e.length-1;r>=0;r--)this.removeListener(t,e[r]);return this},o.prototype.listeners=function(t){return h(this,t,!0)},o.prototype.rawListeners=function(t){return h(this,t,!1)},o.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):d.call(t,e)},o.prototype.listenerCount=d,o.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},2750:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.moduleId=void 0,e.moduleId="1f24 e53a"},9979:(t,e,n)=>{"use strict";var r=n(4836);Object.defineProperty(e,"__esModule",{value:!0}),e.init=function(){var t=window.XMLHttpRequest;window.addEventListener("message",(function e(n){if(n.data&&"ext-corb-workaround_port"===n.data.type&&n.data.moduleId===s.moduleId&&!n.__ext_claimed){n.__ext_claimed=!0,window.removeEventListener("message",e);var r=n.data.port,a={};r.addEventListener("message",(function(e){var n=e.data.id;switch(e.data.type){case"NEW_XHR":var s=a[n]=new t;s.addEventListener("readystatechange",(function(){if(4===s.readyState){var t;delete a[n];try{t=s.responseText}catch(t){}r.postMessage({type:"COMPLETE",id:n,headers:s.getAllResponseHeaders(),readyState:s.readyState,status:s.status,statusText:s.statusText,responseURL:s.responseURL,response:s.response,responseText:t},(0,o.default)([s.response]))}}));break;case"SET":var u=e.data,c=u.prop,l=u.value;a[n][c]=l;break;case"CALL":var f,h=e.data,d=h.method,p=h.args;if("abort"===d&&!a[n])break;(f=a[n])[d].apply(f,(0,i.default)(p));break;default:console.error("ext-corb-workaround: Unknown event in page world:",e)}})),r.addEventListener("messageerror",(function(t){console.error("ext-corb-workaround: Unknown error in page world:",t)})),r.start()}}))};var i=r(n(861)),o=r(n(4658)),s=n(2750)},4658:(t,e,n)=>{"use strict";var r=n(4836);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t.map((function(t){if(t&&"object"===(0,i.default)(t)&&t.__proto__){if("ArrayBuffer"===t.__proto__.constructor.name)return t;if(t.__proto__.__proto__&&"TypedArray"===t.__proto__.__proto__.constructor.name)return t.buffer}})).filter(Boolean)};var i=r(n(8698))},6609:(t,e,n)=>{"use strict";function r(t){var e=arguments.length,n=void 0,r=void 0;for(n=1;n<e;n++)for(r in arguments[n])t[r]=arguments[n][r];return t}function i(t,e){var n,i,o=arguments.length,s=void 0;for(t.prototype=(n=e.prototype,(i=function(){}).prototype=n,new i),t.prototype.constructor=t,s=2;s<o;s++)r(t.prototype,arguments[s]);return t}n.d(e,{ZP:()=>kn}),t=n.hmd(t);var o=["<nothing>"],s="end",a="value",u="error",c="any";function l(t,e){var n=void 0,r=void 0,i=void 0,o=void 0;if(0===t.length)return e;if(0===e.length)return t;for(o=0,n=new Array(t.length+e.length),r=t.length,i=0;i<r;i++,o++)n[o]=t[i];for(r=e.length,i=0;i<r;i++,o++)n[o]=e[i];return n}function f(t,e){var n=t.length,r=void 0;for(r=0;r<n;r++)if(t[r]===e)return r;return-1}function h(t,e){var n=t.length,r=void 0;for(r=0;r<n;r++)if(e(t[r]))return r;return-1}function d(t){var e=t.length,n=new Array(e),r=void 0;for(r=0;r<e;r++)n[r]=t[r];return n}function p(t,e){var n=t.length,r=void 0,i=void 0,o=void 0;if(e>=0&&e<n){if(1===n)return[];for(r=new Array(n-1),i=0,o=0;i<n;i++)i!==e&&(r[o]=t[i],o++);return r}return t}function _(t,e){var n=t.length,r=new Array(n),i=void 0;for(i=0;i<n;i++)r[i]=e(t[i]);return r}function y(t,e,n){t===c?e(n):t===n.type&&(t===a||t===u?e(n.value):e())}function v(){this._items=[],this._spies=[],this._inLoop=0,this._removedItems=null}function m(){this._dispatcher=new v,this._active=!1,this._alive=!0,this._activating=!1,this._logHandlers=null,this._spyHandlers=null}function g(){m.call(this)}function b(){m.call(this),this._currentEvent=null}r(v.prototype,{add:function(t,e){return this._items=l(this._items,[{type:t,fn:e}]),this._items.length},remove:function(t,e){var n=h(this._items,(function(n){return n.type===t&&n.fn===e}));return 0!==this._inLoop&&-1!==n&&(null===this._removedItems&&(this._removedItems=[]),this._removedItems.push(this._items[n])),this._items=p(this._items,n),this._items.length},addSpy:function(t){return this._spies=l(this._spies,[t]),this._spies.length},removeSpy:function(t){return this._spies=p(this._spies,this._spies.indexOf(t)),this._spies.length},dispatch:function(t){this._inLoop++;for(var e=0,n=this._spies;null!==this._spies&&e<n.length;e++)n[e](t);for(var r=0,i=this._items;r<i.length&&null!==this._items;r++)null!==this._removedItems&&-1!==f(this._removedItems,i[r])||y(i[r].type,i[r].fn,t);this._inLoop--,0===this._inLoop&&(this._removedItems=null)},cleanup:function(){this._items=null,this._spies=null}}),r(m.prototype,{_name:"observable",_onActivation:function(){},_onDeactivation:function(){},_setActive:function(t){this._active!==t&&(this._active=t,t?(this._activating=!0,this._onActivation(),this._activating=!1):this._onDeactivation())},_clear:function(){this._setActive(!1),this._dispatcher.cleanup(),this._dispatcher=null,this._logHandlers=null},_emit:function(t,e){switch(t){case a:return this._emitValue(e);case u:return this._emitError(e);case s:return this._emitEnd()}},_emitValue:function(t){this._alive&&this._dispatcher.dispatch({type:a,value:t})},_emitError:function(t){this._alive&&this._dispatcher.dispatch({type:u,value:t})},_emitEnd:function(){this._alive&&(this._alive=!1,this._dispatcher.dispatch({type:s}),this._clear())},_on:function(t,e){return this._alive?(this._dispatcher.add(t,e),this._setActive(!0)):y(t,e,{type:s}),this},_off:function(t,e){return this._alive&&0===this._dispatcher.remove(t,e)&&this._setActive(!1),this},onValue:function(t){return this._on(a,t)},onError:function(t){return this._on(u,t)},onEnd:function(t){return this._on(s,t)},onAny:function(t){return this._on(c,t)},offValue:function(t){return this._off(a,t)},offError:function(t){return this._off(u,t)},offEnd:function(t){return this._off(s,t)},offAny:function(t){return this._off(c,t)},observe:function(t,e,n){var r=this,i=!1,o=t&&"function"!=typeof t?t:{value:t,error:e,end:n},c=function(t){t.type===s&&(i=!0),t.type===a&&o.value?o.value(t.value):t.type===u&&o.error?o.error(t.value):t.type===s&&o.end&&o.end(t.value)};return this.onAny(c),{unsubscribe:function(){i||(r.offAny(c),i=!0)},get closed(){return i}}},_ofSameType:function(t,e){return t.prototype.getType()===this.getType()?t:e},setName:function(t,e){return this._name=e?t._name+"."+e:t,this},log:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.toString(),e=void 0,n=function(n){var r="<"+n.type+(e?":current":"")+">";n.type===s?console.log(t,r):console.log(t,r,n.value)};return this._alive&&(this._logHandlers||(this._logHandlers=[]),this._logHandlers.push({name:t,handler:n})),e=!0,this.onAny(n),e=!1,this},offLog:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.toString();if(this._logHandlers){var e=h(this._logHandlers,(function(e){return e.name===t}));-1!==e&&(this.offAny(this._logHandlers[e].handler),this._logHandlers.splice(e,1))}return this},spy:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.toString(),e=function(e){var n="<"+e.type+">";e.type===s?console.log(t,n):console.log(t,n,e.value)};return this._alive&&(this._spyHandlers||(this._spyHandlers=[]),this._spyHandlers.push({name:t,handler:e}),this._dispatcher.addSpy(e)),this},offSpy:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.toString();if(this._spyHandlers){var e=h(this._spyHandlers,(function(e){return e.name===t}));-1!==e&&(this._dispatcher.removeSpy(this._spyHandlers[e].handler),this._spyHandlers.splice(e,1))}return this}}),m.prototype.toString=function(){return"["+this._name+"]"},i(g,m,{_name:"stream",getType:function(){return"stream"}}),i(b,m,{_name:"property",_emitValue:function(t){this._alive&&(this._currentEvent={type:a,value:t},this._activating||this._dispatcher.dispatch({type:a,value:t}))},_emitError:function(t){this._alive&&(this._currentEvent={type:u,value:t},this._activating||this._dispatcher.dispatch({type:u,value:t}))},_emitEnd:function(){this._alive&&(this._alive=!1,this._activating||this._dispatcher.dispatch({type:s}),this._clear())},_on:function(t,e){return this._alive&&(this._dispatcher.add(t,e),this._setActive(!0)),null!==this._currentEvent&&y(t,e,this._currentEvent),this._alive||y(t,e,{type:s}),this},getType:function(){return"property"}});var x=new g;function w(){return x}function E(t){function e(t,e){var n=this;g.call(this),this._wait=t,this._intervalId=null,this._$onTick=function(){return n._onTick()},this._init(e)}return i(e,g,{_init:function(){},_free:function(){},_onTick:function(){},_onActivation:function(){this._intervalId=setInterval(this._$onTick,this._wait)},_onDeactivation:function(){null!==this._intervalId&&(clearInterval(this._intervalId),this._intervalId=null)},_clear:function(){g.prototype._clear.call(this),this._$onTick=null,this._free()}},t),e}x._emitEnd(),x._name="never";var A=E({_name:"later",_init:function(t){var e=t.x;this._x=e},_free:function(){this._x=null},_onTick:function(){this._emitValue(this._x),this._emitEnd()}}),S=E({_name:"interval",_init:function(t){var e=t.x;this._x=e},_free:function(){this._x=null},_onTick:function(){this._emitValue(this._x)}}),O=E({_name:"sequentially",_init:function(t){var e=t.xs;this._xs=d(e)},_free:function(){this._xs=null},_onTick:function(){1===this._xs.length?(this._emitValue(this._xs[0]),this._emitEnd()):this._emitValue(this._xs.shift())}}),T=E({_name:"fromPoll",_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_onTick:function(){var t=this._fn;this._emitValue(t())}});function j(t){function e(e){return t._emitValue(e),t._active}function n(e){return t._emit(e.type,e.value),t._active}return{value:e,error:function(e){return t._emitError(e),t._active},end:function(){return t._emitEnd(),t._active},event:n,emit:e,emitEvent:n}}var D=E({_name:"withInterval",_init:function(t){var e=t.fn;this._fn=e,this._emitter=j(this)},_free:function(){this._fn=null,this._emitter=null},_onTick:function(){(0,this._fn)(this._emitter)}});function I(t){g.call(this),this._fn=t,this._unsubscribe=null}function L(t){return new I(t)}function k(t,e){switch(e){case 0:return function(){return t()};case 1:return function(e){return t(e[0])};case 2:return function(e){return t(e[0],e[1])};case 3:return function(e){return t(e[0],e[1],e[2])};case 4:return function(e){return t(e[0],e[1],e[2],e[3])};default:return function(e){return t.apply(null,e)}}}i(I,g,{_name:"stream",_onActivation:function(){var t=(0,this._fn)(j(this));this._unsubscribe="function"==typeof t?t:null,this._active||this._callUnsubscribe()},_callUnsubscribe:function(){null!==this._unsubscribe&&(this._unsubscribe(),this._unsubscribe=null)},_onDeactivation:function(){this._callUnsubscribe()},_clear:function(){g.prototype._clear.call(this),this._fn=null}});var M=[["addEventListener","removeEventListener"],["addListener","removeListener"],["on","off"]];function R(t){this._currentEvent={type:"value",value:t,current:!0}}function P(t){return new R(t)}function C(t){this._currentEvent={type:"error",value:t,current:!0}}function q(t,e){return function(n,r){var i=this;t.call(this),this._source=n,this._name=n._name+"."+e,this._init(r),this._$handleAny=function(t){return i._handleAny(t)}}}function N(t){return{_init:function(){},_free:function(){},_handleValue:function(t){this._emitValue(t)},_handleError:function(t){this._emitError(t)},_handleEnd:function(){this._emitEnd()},_handleAny:function(t){switch(t.type){case a:return this._handleValue(t.value);case u:return this._handleError(t.value);case s:return this._handleEnd()}},_onActivation:function(){this._source.onAny(this._$handleAny)},_onDeactivation:function(){this._source.offAny(this._$handleAny)},_clear:function(){t.prototype._clear.call(this),this._source=null,this._$handleAny=null,this._free()}}}function V(t,e){var n=q(g,t);return i(n,g,N(g),e),n}function B(t,e){var n=q(b,t);return i(n,b,N(b),e),n}i(R,b,{_name:"constant",_active:!1,_activating:!1,_alive:!1,_dispatcher:null,_logHandlers:null}),i(C,b,{_name:"constantError",_active:!1,_activating:!1,_alive:!1,_dispatcher:null,_logHandlers:null});var $=B("toProperty",{_init:function(t){var e=t.fn;this._getInitialCurrent=e},_onActivation:function(){if(null!==this._getInitialCurrent){var t=this._getInitialCurrent;this._emitValue(t())}this._source.onAny(this._$handleAny)}});function F(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(null!==e&&"function"!=typeof e)throw new Error("You should call toProperty() with a function or no arguments.");return new $(t,{fn:e})}var H=V("changes",{_handleValue:function(t){this._activating||this._emitValue(t)},_handleError:function(t){this._activating||this._emitError(t)}});function U(){if("function"==typeof Promise)return Promise;throw new Error("There isn't default Promise, use shim or parameter")}var G=function(t){var e,n=t.Symbol;return"function"==typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}("undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:t),z=G.default?G.default:G;function K(t){this._observable=t.takeErrors(1)}function W(){return new K(this)}function Z(t,e,n){for(var r in t)t.hasOwnProperty(r)&&(e.push(r),n.push(t[r]))}function J(t,e,n){var r=this;g.call(this),this._activeCount=t.length,this._sources=l(t,e),this._combinator=n,this._aliveCount=0,this._latestValues=new Array(this._sources.length),this._latestErrors=new Array(this._sources.length),function(t,e){var n=t.length,r=void 0;for(r=0;r<n;r++)t[r]=e}(this._latestValues,o),this._emitAfterActivation=!1,this._endAfterActivation=!1,this._latestErrorIndex=0,this._$handlers=[];for(var i=function(t){r._$handlers.push((function(e){return r._handleAny(t,e)}))},s=0;s<this._sources.length;s++)i(s)}function X(t,e,n){return"function"==typeof e&&(n=e,e=void 0),Array.isArray(t)?function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments[2];if(!Array.isArray(e))throw new Error("Combine can only combine active and passive collections of the same type.");return n=n?k(n,t.length+e.length):function(t){return t},0===t.length?w():new J(t,e,n)}(t,e,n):function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];if("object"!=typeof e||Array.isArray(e))throw new Error("Combine can only combine active and passive collections of the same type.");var r=[],i=[],o=[];return Z(t,r,i),Z(e,r,o),0===i.length?w():new J(i,o,(function(t){for(var e={},i=t.length-1;0<=i;i--)e[r[i]]=t[i];return n?n(e):e}))}(t,e,n)}r(K.prototype,{subscribe:function(t,e,n){var r=this,i="function"==typeof t?{next:t,error:e,complete:n}:t,o=function(t){t.type===s&&(c=!0),t.type===a&&i.next?i.next(t.value):t.type===u&&i.error?i.error(t.value):t.type===s&&i.complete&&i.complete(t.value)};this._observable.onAny(o);var c=!1;return{unsubscribe:function(){c=!0,r._observable.offAny(o)},get closed(){return c}}}}),K.prototype[z]=function(){return this},i(J,g,{_name:"combine",_onActivation:function(){this._aliveCount=this._activeCount;for(var t=this._activeCount;t<this._sources.length;t++)this._sources[t].onAny(this._$handlers[t]);for(var e=0;e<this._activeCount;e++)this._sources[e].onAny(this._$handlers[e]);this._emitAfterActivation&&(this._emitAfterActivation=!1,this._emitIfFull()),this._endAfterActivation&&this._emitEnd()},_onDeactivation:function(){var t=this._sources.length,e=void 0;for(e=0;e<t;e++)this._sources[e].offAny(this._$handlers[e])},_emitIfFull:function(){for(var t=!0,e=!1,n=this._latestValues.length,r=new Array(n),i=new Array(n),s=0;s<n;s++)r[s]=this._latestValues[s],i[s]=this._latestErrors[s],r[s]===o&&(t=!1),void 0!==i[s]&&(e=!0);if(t){var a=this._combinator;this._emitValue(a(r))}e&&this._emitError(function(t){for(var e=void 0,n=0;n<t.length;n++)void 0!==t[n]&&(void 0===e||e.index<t[n].index)&&(e=t[n]);return e.error}(i))},_handleAny:function(t,e){e.type===a||e.type===u?(e.type===a&&(this._latestValues[t]=e.value,this._latestErrors[t]=void 0),e.type===u&&(this._latestValues[t]=o,this._latestErrors[t]={index:this._latestErrorIndex++,error:e.value}),t<this._activeCount&&(this._activating?this._emitAfterActivation=!0:this._emitIfFull())):t<this._activeCount&&(this._aliveCount--,0===this._aliveCount&&(this._activating?this._endAfterActivation=!0:this._emitEnd()))},_clear:function(){g.prototype._clear.call(this),this._sources=null,this._latestValues=null,this._latestErrors=null,this._combinator=null,this._$handlers=null}});var Q={empty:function(){return w()},concat:function(t,e){return t.merge(e)},of:function(t){return P(t)},map:function(t,e){return e.map(t)},bimap:function(t,e,n){return n.mapErrors(t).map(e)},ap:function(t,e){return X([t,e],(function(t,e){return t(e)}))},chain:function(t,e){return e.flatMap(t)}},Y=Object.freeze({Observable:Q}),tt={_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleValue:function(t){var e=this._fn;this._emitValue(e(t))}},et=V("map",tt),nt=B("map",tt),rt=function(t){return t};function it(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rt;return new(t._ofSameType(et,nt))(t,{fn:e})}var ot={_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleValue:function(t){(0,this._fn)(t)&&this._emitValue(t)}},st=V("filter",ot),at=B("filter",ot),ut=function(t){return t},ct={_init:function(t){var e=t.n;this._n=e,e<=0&&this._emitEnd()},_handleValue:function(t){0!==this._n&&(this._n--,this._emitValue(t),0===this._n&&this._emitEnd())}},lt=V("take",ct),ft=B("take",ct),ht={_init:function(t){var e=t.n;this._n=e,e<=0&&this._emitEnd()},_handleError:function(t){0!==this._n&&(this._n--,this._emitError(t),0===this._n&&this._emitEnd())}},dt=V("takeErrors",ht),pt=B("takeErrors",ht),_t={_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleValue:function(t){(0,this._fn)(t)?this._emitValue(t):this._emitEnd()}},yt=V("takeWhile",_t),vt=B("takeWhile",_t),mt=function(t){return t},gt={_init:function(){this._lastValue=o},_free:function(){this._lastValue=null},_handleValue:function(t){this._lastValue=t},_handleEnd:function(){this._lastValue!==o&&this._emitValue(this._lastValue),this._emitEnd()}},bt=V("last",gt),xt=B("last",gt),wt={_init:function(t){var e=t.n;this._n=Math.max(0,e)},_handleValue:function(t){0===this._n?this._emitValue(t):this._n--}},Et=V("skip",wt),At=B("skip",wt),St={_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleValue:function(t){var e=this._fn;null===this._fn||e(t)||(this._fn=null),null===this._fn&&this._emitValue(t)}},Ot=V("skipWhile",St),Tt=B("skipWhile",St),jt=function(t){return t},Dt={_init:function(t){var e=t.fn;this._fn=e,this._prev=o},_free:function(){this._fn=null,this._prev=null},_handleValue:function(t){var e=this._fn;this._prev!==o&&e(this._prev,t)||(this._prev=t,this._emitValue(t))}},It=V("skipDuplicates",Dt),Lt=B("skipDuplicates",Dt),kt=function(t,e){return t===e};function Mt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:kt;return new(t._ofSameType(It,Lt))(t,{fn:e})}var Rt={_init:function(t){var e=t.fn,n=t.seed;this._fn=e,this._prev=n},_free:function(){this._prev=null,this._fn=null},_handleValue:function(t){if(this._prev!==o){var e=this._fn;this._emitValue(e(this._prev,t))}this._prev=t}},Pt=V("diff",Rt),Ct=B("diff",Rt);function qt(t,e){return[t,e]}var Nt=B("scan",{_init:function(t){var e=t.fn,n=t.seed;this._fn=e,this._seed=n,n!==o&&this._emitValue(n)},_free:function(){this._fn=null,this._seed=null},_handleValue:function(t){var e=this._fn;null===this._currentEvent||this._currentEvent.type===u?this._emitValue(this._seed===o?t:e(this._seed,t)):this._emitValue(e(this._currentEvent.value,t))}}),Vt=V("flatten",{_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleValue:function(t){for(var e=(0,this._fn)(t),n=0;n<e.length;n++)this._emitValue(e[n])}}),Bt=function(t){return t},$t={},Ft={_init:function(t){var e=this,n=t.wait;this._wait=Math.max(0,n),this._buff=[],this._$shiftBuff=function(){var t=e._buff.shift();t===$t?e._emitEnd():e._emitValue(t)}},_free:function(){this._buff=null,this._$shiftBuff=null},_handleValue:function(t){this._activating?this._emitValue(t):(this._buff.push(t),setTimeout(this._$shiftBuff,this._wait))},_handleEnd:function(){this._activating?this._emitEnd():(this._buff.push($t),setTimeout(this._$shiftBuff,this._wait))}},Ht=V("delay",Ft),Ut=B("delay",Ft),Gt=Date.now?function(){return Date.now()}:function(){return(new Date).getTime()},zt={_init:function(t){var e=this,n=t.wait,r=t.leading,i=t.trailing;this._wait=Math.max(0,n),this._leading=r,this._trailing=i,this._trailingValue=null,this._timeoutId=null,this._endLater=!1,this._lastCallTime=0,this._$trailingCall=function(){return e._trailingCall()}},_free:function(){this._trailingValue=null,this._$trailingCall=null},_handleValue:function(t){if(this._activating)this._emitValue(t);else{var e=Gt();0!==this._lastCallTime||this._leading||(this._lastCallTime=e);var n=this._wait-(e-this._lastCallTime);n<=0?(this._cancelTrailing(),this._lastCallTime=e,this._emitValue(t)):this._trailing&&(this._cancelTrailing(),this._trailingValue=t,this._timeoutId=setTimeout(this._$trailingCall,n))}},_handleEnd:function(){this._activating?this._emitEnd():this._timeoutId?this._endLater=!0:this._emitEnd()},_cancelTrailing:function(){null!==this._timeoutId&&(clearTimeout(this._timeoutId),this._timeoutId=null)},_trailingCall:function(){this._emitValue(this._trailingValue),this._timeoutId=null,this._trailingValue=null,this._lastCallTime=this._leading?Gt():0,this._endLater&&this._emitEnd()}},Kt=V("throttle",zt),Wt=B("throttle",zt),Zt={_init:function(t){var e=this,n=t.wait,r=t.immediate;this._wait=Math.max(0,n),this._immediate=r,this._lastAttempt=0,this._timeoutId=null,this._laterValue=null,this._endLater=!1,this._$later=function(){return e._later()}},_free:function(){this._laterValue=null,this._$later=null},_handleValue:function(t){this._activating?this._emitValue(t):(this._lastAttempt=Gt(),this._immediate&&!this._timeoutId&&this._emitValue(t),this._timeoutId||(this._timeoutId=setTimeout(this._$later,this._wait)),this._immediate||(this._laterValue=t))},_handleEnd:function(){this._activating?this._emitEnd():this._timeoutId&&!this._immediate?this._endLater=!0:this._emitEnd()},_later:function(){var t=Gt()-this._lastAttempt;if(t<this._wait&&t>=0)this._timeoutId=setTimeout(this._$later,this._wait-t);else{if(this._timeoutId=null,!this._immediate){var e=this._laterValue;this._laterValue=null,this._emitValue(e)}this._endLater&&this._emitEnd()}}},Jt=V("debounce",Zt),Xt=B("debounce",Zt),Qt={_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleError:function(t){var e=this._fn;this._emitError(e(t))}},Yt=V("mapErrors",Qt),te=B("mapErrors",Qt),ee=function(t){return t},ne={_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleError:function(t){(0,this._fn)(t)&&this._emitError(t)}},re=V("filterErrors",ne),ie=B("filterErrors",ne),oe=function(t){return t},se={_handleValue:function(){}},ae=V("ignoreValues",se),ue=B("ignoreValues",se),ce={_handleError:function(){}},le=V("ignoreErrors",ce),fe=B("ignoreErrors",ce),he={_handleEnd:function(){}},de=V("ignoreEnd",he),pe=B("ignoreEnd",he),_e={_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleEnd:function(){var t=this._fn;this._emitValue(t()),this._emitEnd()}},ye=V("beforeEnd",_e),ve=B("beforeEnd",_e),me={_init:function(t){var e=t.min,n=t.max;this._max=n,this._min=e,this._buff=[]},_free:function(){this._buff=null},_handleValue:function(t){this._buff=function(t,e,n){var r=Math.min(n,t.length+1),i=t.length-r+1,o=new Array(r),s=void 0;for(s=i;s<r;s++)o[s-i]=t[s];return o[r-1]=e,o}(this._buff,t,this._max),this._buff.length>=this._min&&this._emitValue(this._buff)}},ge=V("slidingWindow",me),be=B("slidingWindow",me),xe={_init:function(t){var e=t.fn,n=t.flushOnEnd;this._fn=e,this._flushOnEnd=n,this._buff=[]},_free:function(){this._buff=null},_flush:function(){null!==this._buff&&0!==this._buff.length&&(this._emitValue(this._buff),this._buff=[])},_handleValue:function(t){this._buff.push(t),(0,this._fn)(t)||this._flush()},_handleEnd:function(){this._flushOnEnd&&this._flush(),this._emitEnd()}},we=V("bufferWhile",xe),Ee=B("bufferWhile",xe),Ae=function(t){return t},Se={_init:function(t){var e=t.count,n=t.flushOnEnd;this._count=e,this._flushOnEnd=n,this._buff=[]},_free:function(){this._buff=null},_flush:function(){null!==this._buff&&0!==this._buff.length&&(this._emitValue(this._buff),this._buff=[])},_handleValue:function(t){this._buff.push(t),this._buff.length>=this._count&&this._flush()},_handleEnd:function(){this._flushOnEnd&&this._flush(),this._emitEnd()}},Oe=V("bufferWithCount",Se),Te=B("bufferWithCount",Se),je={_init:function(t){var e=this,n=t.wait,r=t.count,i=t.flushOnEnd;this._wait=n,this._count=r,this._flushOnEnd=i,this._intervalId=null,this._$onTick=function(){return e._flush()},this._buff=[]},_free:function(){this._$onTick=null,this._buff=null},_flush:function(){null!==this._buff&&(this._emitValue(this._buff),this._buff=[])},_handleValue:function(t){this._buff.push(t),this._buff.length>=this._count&&(clearInterval(this._intervalId),this._flush(),this._intervalId=setInterval(this._$onTick,this._wait))},_handleEnd:function(){this._flushOnEnd&&0!==this._buff.length&&this._flush(),this._emitEnd()},_onActivation:function(){this._intervalId=setInterval(this._$onTick,this._wait),this._source.onAny(this._$handleAny)},_onDeactivation:function(){null!==this._intervalId&&(clearInterval(this._intervalId),this._intervalId=null),this._source.offAny(this._$handleAny)}},De=V("bufferWithTimeOrCount",je),Ie=B("bufferWithTimeOrCount",je),Le={_init:function(t){var e,n=t.transducer;this._xform=n((e=this,{"@@transducer/step":function(t,n){return e._emitValue(n),null},"@@transducer/result":function(){return e._emitEnd(),null}}))},_free:function(){this._xform=null},_handleValue:function(t){null!==this._xform["@@transducer/step"](null,t)&&this._xform["@@transducer/result"](null)},_handleEnd:function(){this._xform["@@transducer/result"](null)}},ke=V("transduce",Le),Me=B("transduce",Le),Re={_init:function(t){var e=t.fn;this._handler=e,this._emitter=j(this)},_free:function(){this._handler=null,this._emitter=null},_handleAny:function(t){this._handler(this._emitter,t)}},Pe=V("withHandler",Re),Ce=B("withHandler",Re),qe=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function Ne(t,e){var n=this;g.call(this),this._buffers=_(t,(function(t){return qe(t)?d(t):[]})),this._sources=_(t,(function(t){return qe(t)?w():t})),this._combinator=e?k(e,this._sources.length):function(t){return t},this._aliveCount=0,this._$handlers=[];for(var r=function(t){n._$handlers.push((function(e){return n._handleAny(t,e)}))},i=0;i<this._sources.length;i++)r(i)}function Ve(t,e){return 0===t.length?w():new Ne(t,e)}i(Ne,g,{_name:"zip",_onActivation:function(){for(;this._isFull();)this._emit();var t=this._sources.length;this._aliveCount=t;for(var e=0;e<t&&this._active;e++)this._sources[e].onAny(this._$handlers[e])},_onDeactivation:function(){for(var t=0;t<this._sources.length;t++)this._sources[t].offAny(this._$handlers[t])},_emit:function(){for(var t=new Array(this._buffers.length),e=0;e<this._buffers.length;e++)t[e]=this._buffers[e].shift();var n=this._combinator;this._emitValue(n(t))},_isFull:function(){for(var t=0;t<this._buffers.length;t++)if(0===this._buffers[t].length)return!1;return!0},_handleAny:function(t,e){e.type===a&&(this._buffers[t].push(e.value),this._isFull()&&this._emit()),e.type===u&&this._emitError(e.value),e.type===s&&(this._aliveCount--,0===this._aliveCount&&this._emitEnd())},_clear:function(){g.prototype._clear.call(this),this._sources=null,this._buffers=null,this._combinator=null,this._$handlers=null}});var Be=function(t){return t};function $e(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.queueLim,r=void 0===n?0:n,i=e.concurLim,o=void 0===i?-1:i,s=e.drop,a=void 0===s?"new":s;g.call(this),this._queueLim=r<0?-1:r,this._concurLim=o<0?-1:o,this._drop=a,this._queue=[],this._curSources=[],this._$handleSubAny=function(e){return t._handleSubAny(e)},this._$endHandlers=[],this._currentlyAdding=null,0===this._concurLim&&this._emitEnd()}function Fe(t){$e.call(this),this._addAll(t),this._initialised=!0}function He(t){return 0===t.length?w():new Fe(t)}function Ue(t){var e=this;g.call(this),this._generator=t,this._source=null,this._inLoop=!1,this._iteration=0,this._$handleAny=function(t){return e._handleAny(t)}}i($e,g,{_name:"abstractPool",_add:function(t,e){e=e||Be,-1===this._concurLim||this._curSources.length<this._concurLim?this._addToCur(e(t)):-1===this._queueLim||this._queue.length<this._queueLim?this._addToQueue(e(t)):"old"===this._drop&&(this._removeOldest(),this._add(t,e))},_addAll:function(t){var e=this;!function(t,n){var r,i=t.length,o=void 0;for(o=0;o<i;o++)r=t[o],e._add(r)}(t)},_remove:function(t){-1===this._removeCur(t)&&this._removeQueue(t)},_addToQueue:function(t){this._queue=l(this._queue,[t])},_addToCur:function(t){if(this._active){if(!t._alive)return t._currentEvent&&this._emit(t._currentEvent.type,t._currentEvent.value),void(this._active&&(0!==this._queue.length?this._pullQueue():0===this._curSources.length&&this._onEmpty()));this._currentlyAdding=t,t.onAny(this._$handleSubAny),this._currentlyAdding=null,t._alive?(this._curSources=l(this._curSources,[t]),this._active&&this._subToEnd(t)):0!==this._queue.length?this._pullQueue():0===this._curSources.length&&this._onEmpty()}else this._curSources=l(this._curSources,[t])},_subToEnd:function(t){var e=this,n=function(){return e._removeCur(t)};this._$endHandlers.push({obs:t,handler:n}),t.onEnd(n)},_subscribe:function(t){t.onAny(this._$handleSubAny),this._active&&this._subToEnd(t)},_unsubscribe:function(t){t.offAny(this._$handleSubAny);var e=h(this._$endHandlers,(function(e){return e.obs===t}));-1!==e&&(t.offEnd(this._$endHandlers[e].handler),this._$endHandlers.splice(e,1))},_handleSubAny:function(t){t.type===a?this._emitValue(t.value):t.type===u&&this._emitError(t.value)},_removeQueue:function(t){var e=f(this._queue,t);return this._queue=p(this._queue,e),e},_removeCur:function(t){this._active&&this._unsubscribe(t);var e=f(this._curSources,t);return this._curSources=p(this._curSources,e),-1!==e&&(0!==this._queue.length?this._pullQueue():0===this._curSources.length&&this._onEmpty()),e},_removeOldest:function(){this._removeCur(this._curSources[0])},_pullQueue:function(){0!==this._queue.length&&(this._queue=d(this._queue),this._addToCur(this._queue.shift()))},_onActivation:function(){for(var t=0,e=this._curSources;t<e.length&&this._active;t++)this._subscribe(e[t])},_onDeactivation:function(){for(var t=0,e=this._curSources;t<e.length;t++)this._unsubscribe(e[t]);null!==this._currentlyAdding&&this._unsubscribe(this._currentlyAdding)},_isEmpty:function(){return 0===this._curSources.length},_onEmpty:function(){},_clear:function(){g.prototype._clear.call(this),this._queue=null,this._curSources=null,this._$handleSubAny=null,this._$endHandlers=null}}),i(Fe,$e,{_name:"merge",_onEmpty:function(){this._initialised&&this._emitEnd()}}),i(Ue,g,{_name:"repeat",_handleAny:function(t){t.type===s?(this._source=null,this._getSource()):this._emit(t.type,t.value)},_getSource:function(){if(!this._inLoop){this._inLoop=!0;for(var t=this._generator;null===this._source&&this._alive&&this._active;)this._source=t(this._iteration++),this._source?this._source.onAny(this._$handleAny):this._emitEnd();this._inLoop=!1}},_onActivation:function(){this._source?this._source.onAny(this._$handleAny):this._getSource()},_onDeactivation:function(){this._source&&this._source.offAny(this._$handleAny)},_clear:function(){g.prototype._clear.call(this),this._generator=null,this._source=null,this._$handleAny=null}});var Ge=function(t){return new Ue(t)};function ze(t){return Ge((function(e){return t.length>e&&t[e]})).setName("concat")}function Ke(){$e.call(this)}function We(t,e,n){var r=this;$e.call(this,n),this._source=t,this._fn=e,this._mainEnded=!1,this._lastCurrent=null,this._$handleMain=function(t){return r._handleMain(t)}}function Ze(t,e){We.call(this,t,e)}function Je(t,e){return function(n,r,i){var s=this;t.call(this),this._primary=n,this._secondary=r,this._name=n._name+"."+e,this._lastSecondary=o,this._$handleSecondaryAny=function(t){return s._handleSecondaryAny(t)},this._$handlePrimaryAny=function(t){return s._handlePrimaryAny(t)},this._init(i)}}function Xe(t){return{_init:function(){},_free:function(){},_handlePrimaryValue:function(t){this._emitValue(t)},_handlePrimaryError:function(t){this._emitError(t)},_handlePrimaryEnd:function(){this._emitEnd()},_handleSecondaryValue:function(t){this._lastSecondary=t},_handleSecondaryError:function(t){this._emitError(t)},_handleSecondaryEnd:function(){},_handlePrimaryAny:function(t){switch(t.type){case a:return this._handlePrimaryValue(t.value);case u:return this._handlePrimaryError(t.value);case s:return this._handlePrimaryEnd(t.value)}},_handleSecondaryAny:function(t){switch(t.type){case a:return this._handleSecondaryValue(t.value);case u:return this._handleSecondaryError(t.value);case s:this._handleSecondaryEnd(t.value),this._removeSecondary()}},_removeSecondary:function(){null!==this._secondary&&(this._secondary.offAny(this._$handleSecondaryAny),this._$handleSecondaryAny=null,this._secondary=null)},_onActivation:function(){null!==this._secondary&&this._secondary.onAny(this._$handleSecondaryAny),this._active&&this._primary.onAny(this._$handlePrimaryAny)},_onDeactivation:function(){null!==this._secondary&&this._secondary.offAny(this._$handleSecondaryAny),this._primary.offAny(this._$handlePrimaryAny)},_clear:function(){t.prototype._clear.call(this),this._primary=null,this._secondary=null,this._lastSecondary=null,this._$handleSecondaryAny=null,this._$handlePrimaryAny=null,this._free()}}}function Qe(t,e){var n=Je(g,t);return i(n,g,Xe(g),e),n}function Ye(t,e){var n=Je(b,t);return i(n,b,Xe(b),e),n}i(Ke,$e,{_name:"pool",plug:function(t){return this._add(t),this},unplug:function(t){return this._remove(t),this}}),i(We,$e,{_onActivation:function(){$e.prototype._onActivation.call(this),this._active&&this._source.onAny(this._$handleMain)},_onDeactivation:function(){$e.prototype._onDeactivation.call(this),this._source.offAny(this._$handleMain),this._hadNoEvSinceDeact=!0},_handleMain:function(t){t.type===a&&(this._activating&&this._hadNoEvSinceDeact&&this._lastCurrent===t.value||this._add(t.value,this._fn),this._lastCurrent=t.value,this._hadNoEvSinceDeact=!1),t.type===u&&this._emitError(t.value),t.type===s&&(this._isEmpty()?this._emitEnd():this._mainEnded=!0)},_onEmpty:function(){this._mainEnded&&this._emitEnd()},_clear:function(){$e.prototype._clear.call(this),this._source=null,this._lastCurrent=null,this._$handleMain=null}}),i(Ze,We,{_handleMain:function(t){t.type===u&&(this._activating&&this._hadNoEvSinceDeact&&this._lastCurrent===t.value||this._add(t.value,this._fn),this._lastCurrent=t.value,this._hadNoEvSinceDeact=!1),t.type===a&&this._emitValue(t.value),t.type===s&&(this._isEmpty()?this._emitEnd():this._mainEnded=!0)}});var tn={_handlePrimaryValue:function(t){this._lastSecondary!==o&&this._lastSecondary&&this._emitValue(t)},_handleSecondaryEnd:function(){this._lastSecondary!==o&&this._lastSecondary||this._emitEnd()}},en=Qe("filterBy",tn),nn=Ye("filterBy",tn),rn=function(t,e){return e},on={_handlePrimaryValue:function(t){this._lastSecondary!==o&&this._emitValue(t)},_handleSecondaryEnd:function(){this._lastSecondary===o&&this._emitEnd()}},sn=Qe("skipUntilBy",on),an=Ye("skipUntilBy",on),un={_handleSecondaryValue:function(){this._emitEnd()}},cn=Qe("takeUntilBy",un),ln=Ye("takeUntilBy",un),fn={_init:function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).flushOnEnd,e=void 0===t||t;this._buff=[],this._flushOnEnd=e},_free:function(){this._buff=null},_flush:function(){null!==this._buff&&(this._emitValue(this._buff),this._buff=[])},_handlePrimaryEnd:function(){this._flushOnEnd&&this._flush(),this._emitEnd()},_onActivation:function(){this._primary.onAny(this._$handlePrimaryAny),this._alive&&null!==this._secondary&&this._secondary.onAny(this._$handleSecondaryAny)},_handlePrimaryValue:function(t){this._buff.push(t)},_handleSecondaryValue:function(){this._flush()},_handleSecondaryEnd:function(){this._flushOnEnd||this._emitEnd()}},hn=Qe("bufferBy",fn),dn=Ye("bufferBy",fn),pn={_init:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.flushOnEnd,n=void 0===e||e,r=t.flushOnChange,i=void 0!==r&&r;this._buff=[],this._flushOnEnd=n,this._flushOnChange=i},_free:function(){this._buff=null},_flush:function(){null!==this._buff&&(this._emitValue(this._buff),this._buff=[])},_handlePrimaryEnd:function(){this._flushOnEnd&&this._flush(),this._emitEnd()},_handlePrimaryValue:function(t){this._buff.push(t),this._lastSecondary===o||this._lastSecondary||this._flush()},_handleSecondaryEnd:function(){this._flushOnEnd||this._lastSecondary!==o&&!this._lastSecondary||this._emitEnd()},_handleSecondaryValue:function(t){this._flushOnChange&&!t&&this._flush(),this._lastSecondary=t}},_n=Qe("bufferWhileBy",pn),yn=Ye("bufferWhileBy",pn),vn=function(){return!1},mn=function(){return!0},gn={_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleValue:function(t){var e=(0,this._fn)(t);e.convert?this._emitError(e.error):this._emitValue(t)}},bn=V("valuesToErrors",gn),xn=B("valuesToErrors",gn),wn=function(t){return{convert:!0,error:t}},En={_init:function(t){var e=t.fn;this._fn=e},_free:function(){this._fn=null},_handleError:function(t){var e=(0,this._fn)(t);e.convert?this._emitValue(e.value):this._emitError(t)}},An=V("errorsToValues",En),Sn=B("errorsToValues",En),On=function(t){return{convert:!0,value:t}},Tn={_handleError:function(t){this._emitError(t),this._emitEnd()}},jn=V("endOnError",Tn),Dn=B("endOnError",Tn);m.prototype.toProperty=function(t){return F(this,t)},m.prototype.changes=function(){return new H(this)},m.prototype.toPromise=function(t){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:U(),n=null;return new e((function(e,r){t.onAny((function(t){t.type===s&&null!==n?((n.type===a?e:r)(n.value),n=null):n=t}))}))}(this,t)},m.prototype.toESObservable=W,m.prototype[z]=W,m.prototype.map=function(t){return it(this,t)},m.prototype.filter=function(t){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ut;return new(t._ofSameType(st,at))(t,{fn:e})}(this,t)},m.prototype.take=function(t){return function(t,e){return new(t._ofSameType(lt,ft))(t,{n:e})}(this,t)},m.prototype.takeErrors=function(t){return function(t,e){return new(t._ofSameType(dt,pt))(t,{n:e})}(this,t)},m.prototype.takeWhile=function(t){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:mt;return new(t._ofSameType(yt,vt))(t,{fn:e})}(this,t)},m.prototype.last=function(){return new((t=this)._ofSameType(bt,xt))(t);var t},m.prototype.skip=function(t){return function(t,e){return new(t._ofSameType(Et,At))(t,{n:e})}(this,t)},m.prototype.skipWhile=function(t){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:jt;return new(t._ofSameType(Ot,Tt))(t,{fn:e})}(this,t)},m.prototype.skipDuplicates=function(t){return Mt(this,t)},m.prototype.diff=function(t,e){return function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o;return new(t._ofSameType(Pt,Ct))(t,{fn:e||qt,seed:n})}(this,t,e)},m.prototype.scan=function(t,e){return function(t,e){return new Nt(t,{fn:e,seed:arguments.length>2&&void 0!==arguments[2]?arguments[2]:o})}(this,t,e)},m.prototype.flatten=function(t){return function(t){return new Vt(t,{fn:arguments.length>1&&void 0!==arguments[1]?arguments[1]:Bt})}(this,t)},m.prototype.delay=function(t){return function(t,e){return new(t._ofSameType(Ht,Ut))(t,{wait:e})}(this,t)},m.prototype.throttle=function(t,e){return function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.leading,i=void 0===r||r,o=n.trailing,s=void 0===o||o;return new(t._ofSameType(Kt,Wt))(t,{wait:e,leading:i,trailing:s})}(this,t,e)},m.prototype.debounce=function(t,e){return function(t,e){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).immediate,r=void 0!==n&&n;return new(t._ofSameType(Jt,Xt))(t,{wait:e,immediate:r})}(this,t,e)},m.prototype.mapErrors=function(t){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ee;return new(t._ofSameType(Yt,te))(t,{fn:e})}(this,t)},m.prototype.filterErrors=function(t){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:oe;return new(t._ofSameType(re,ie))(t,{fn:e})}(this,t)},m.prototype.ignoreValues=function(){return new((t=this)._ofSameType(ae,ue))(t);var t},m.prototype.ignoreErrors=function(){return new((t=this)._ofSameType(le,fe))(t);var t},m.prototype.ignoreEnd=function(){return new((t=this)._ofSameType(de,pe))(t);var t},m.prototype.beforeEnd=function(t){return function(t,e){return new(t._ofSameType(ye,ve))(t,{fn:e})}(this,t)},m.prototype.slidingWindow=function(t,e){return function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return new(t._ofSameType(ge,be))(t,{min:n,max:e})}(this,t,e)},m.prototype.bufferWhile=function(t,e){return function(t,e){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).flushOnEnd,r=void 0===n||n;return new(t._ofSameType(we,Ee))(t,{fn:e||Ae,flushOnEnd:r})}(this,t,e)},m.prototype.bufferWithCount=function(t,e){return function(t,e){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).flushOnEnd,r=void 0===n||n;return new(t._ofSameType(Oe,Te))(t,{count:e,flushOnEnd:r})}(this,t,e)},m.prototype.bufferWithTimeOrCount=function(t,e,n){return function(t,e,n){var r=(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).flushOnEnd,i=void 0===r||r;return new(t._ofSameType(De,Ie))(t,{wait:e,count:n,flushOnEnd:i})}(this,t,e,n)},m.prototype.transduce=function(t){return function(t,e){return new(t._ofSameType(ke,Me))(t,{transducer:e})}(this,t)},m.prototype.withHandler=function(t){return function(t,e){return new(t._ofSameType(Pe,Ce))(t,{fn:e})}(this,t)},m.prototype.thru=function(t){return t(this)},m.prototype.combine=function(t,e){return X([this,t],e)},m.prototype.zip=function(t,e){return Ve([this,t],e)},m.prototype.merge=function(t){return He([this,t])},m.prototype.concat=function(t){return ze([this,t])},m.prototype.flatMap=function(t){return new We(this,t).setName(this,"flatMap")},m.prototype.flatMapLatest=function(t){return new We(this,t,{concurLim:1,drop:"old"}).setName(this,"flatMapLatest")},m.prototype.flatMapFirst=function(t){return new We(this,t,{concurLim:1}).setName(this,"flatMapFirst")},m.prototype.flatMapConcat=function(t){return new We(this,t,{queueLim:-1,concurLim:1}).setName(this,"flatMapConcat")},m.prototype.flatMapConcurLimit=function(t,e){return new We(this,t,{queueLim:-1,concurLim:e}).setName(this,"flatMapConcurLimit")},m.prototype.flatMapErrors=function(t){return new Ze(this,t).setName(this,"flatMapErrors")},m.prototype.filterBy=function(t){return n=t,new((e=this)._ofSameType(en,nn))(e,n);var e,n},m.prototype.sampledBy=function(t,e){return function(t,e,n){return X([e],[t],n?function(t,e){return n(e,t)}:rn).setName(t,"sampledBy")}(this,t,e)},m.prototype.skipUntilBy=function(t){return n=t,new((e=this)._ofSameType(sn,an))(e,n);var e,n},m.prototype.takeUntilBy=function(t){return n=t,new((e=this)._ofSameType(cn,ln))(e,n);var e,n},m.prototype.bufferBy=function(t,e){return function(t,e,n){return new(t._ofSameType(hn,dn))(t,e,n)}(this,t,e)},m.prototype.bufferWhileBy=function(t,e){return function(t,e,n){return new(t._ofSameType(_n,yn))(t,e,n)}(this,t,e)};function In(t){console&&"function"==typeof console.warn&&console.warn(t,"\nHere is an Error object for you containing the call stack:",new Error)}m.prototype.awaiting=function(t){return In("You are using deprecated .awaiting() method, see https://github.com/kefirjs/kefir/issues/145"),function(t,e){var n=He([it(t,mn),it(e,vn)]);return(n=F(n=Mt(n),vn)).setName(t,"awaiting")}(this,t)},m.prototype.valuesToErrors=function(t){return In("You are using deprecated .valuesToErrors() method, see https://github.com/kefirjs/kefir/issues/149"),function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:wn;return new(t._ofSameType(bn,xn))(t,{fn:e})}(this,t)},m.prototype.errorsToValues=function(t){return In("You are using deprecated .errorsToValues() method, see https://github.com/kefirjs/kefir/issues/149"),function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:On;return new(t._ofSameType(An,Sn))(t,{fn:e})}(this,t)},m.prototype.endOnError=function(){return In("You are using deprecated .endOnError() method, see https://github.com/kefirjs/kefir/issues/150"),new((t=this)._ofSameType(jn,Dn))(t);var t};var Ln={Observable:m,Stream:g,Property:b,never:w,later:function(t,e){return new A(t,{x:e})},interval:function(t,e){return new S(t,{x:e})},sequentially:function(t,e){return 0===e.length?w():new O(t,{xs:e})},fromPoll:function(t,e){return new T(t,{fn:e})},withInterval:function(t,e){return new D(t,{fn:e})},fromCallback:function(t){var e=!1;return L((function(n){e||(t((function(t){n.emit(t),n.end()})),e=!0)})).setName("fromCallback")},fromNodeCallback:function(t){var e=!1;return L((function(n){e||(t((function(t,e){t?n.error(t):n.emit(e),n.end()})),e=!0)})).setName("fromNodeCallback")},fromEvents:function(t,e,n){for(var r=void 0,i=void 0,o=0;o<M.length;o++)if("function"==typeof t[M[o][0]]&&"function"==typeof t[M[o][1]]){r=M[o][0],i=M[o][1];break}if(void 0===r)throw new Error("target don't support any of addEventListener/removeEventListener, addListener/removeListener, on/off method pair");return function(t,e,n){return L((function(r){var i=n?function(){r.emit(function(t,e,n){var r=n?n.length:0;if(null!=e)return 0===r?t.call(e):t.apply(e,n);switch(r){case 0:return t();case 1:return t(n[0]);case 2:return t(n[0],n[1]);case 3:return t(n[0],n[1],n[2]);case 4:return t(n[0],n[1],n[2],n[3]);default:return t.apply(null,n)}}(n,this,arguments))}:function(t){r.emit(t)};return t(i),function(){return e(i)}})).setName("fromSubUnsub")}((function(n){return t[r](e,n)}),(function(n){return t[i](e,n)}),n).setName("fromEvents")},stream:L,constant:P,constantError:function(t){return new C(t)},fromPromise:function(t){var e=!1,n=L((function(n){if(!e){var r=t.then((function(t){n.emit(t),n.end()}),(function(t){n.error(t),n.end()}));r&&"function"==typeof r.done&&r.done(),e=!0}}));return F(n,null).setName("fromPromise")},fromESObservable:function(t){var e=t[z]?t[z]():t;return L((function(t){var n=e.subscribe({error:function(e){t.error(e),t.end()},next:function(e){t.emit(e)},complete:function(){t.end()}});return n.unsubscribe?function(){n.unsubscribe()}:n})).setName("fromESObservable")},combine:X,zip:Ve,merge:He,concat:ze,Pool:Ke,pool:function(){return new Ke},repeat:Ge,staticLand:Y};Ln.Kefir=Ln;const kn=Ln},8552:(t,e,n)=>{var r=n(852)(n(5639),"DataView");t.exports=r},1989:(t,e,n)=>{var r=n(1789),i=n(401),o=n(7667),s=n(1327),a=n(1866);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=s,u.prototype.set=a,t.exports=u},8407:(t,e,n)=>{var r=n(7040),i=n(4125),o=n(2117),s=n(7518),a=n(4705);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=s,u.prototype.set=a,t.exports=u},7071:(t,e,n)=>{var r=n(852)(n(5639),"Map");t.exports=r},3369:(t,e,n)=>{var r=n(4785),i=n(1285),o=n(6e3),s=n(9916),a=n(5265);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=s,u.prototype.set=a,t.exports=u},3818:(t,e,n)=>{var r=n(852)(n(5639),"Promise");t.exports=r},8525:(t,e,n)=>{var r=n(852)(n(5639),"Set");t.exports=r},8668:(t,e,n)=>{var r=n(3369),i=n(619),o=n(2385);function s(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r;++e<n;)this.add(t[e])}s.prototype.add=s.prototype.push=i,s.prototype.has=o,t.exports=s},6384:(t,e,n)=>{var r=n(8407),i=n(7465),o=n(3779),s=n(7599),a=n(4758),u=n(4309);function c(t){var e=this.__data__=new r(t);this.size=e.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=s,c.prototype.has=a,c.prototype.set=u,t.exports=c},2705:(t,e,n)=>{var r=n(5639).Symbol;t.exports=r},1149:(t,e,n)=>{var r=n(5639).Uint8Array;t.exports=r},577:(t,e,n)=>{var r=n(852)(n(5639),"WeakMap");t.exports=r},6874:t=>{t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},7412:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},4963:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o}},7443:(t,e,n)=>{var r=n(2118);t.exports=function(t,e){return!(null==t||!t.length)&&r(t,e,0)>-1}},1196:t=>{t.exports=function(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}},4636:(t,e,n)=>{var r=n(2545),i=n(5694),o=n(1469),s=n(4144),a=n(5776),u=n(6719),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=o(t),l=!n&&i(t),f=!n&&!l&&s(t),h=!n&&!l&&!f&&u(t),d=n||l||f||h,p=d?r(t.length,String):[],_=p.length;for(var y in t)!e&&!c.call(t,y)||d&&("length"==y||f&&("offset"==y||"parent"==y)||h&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||a(y,_))||p.push(y);return p}},9932:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}},2488:t=>{t.exports=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}},2908:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},4865:(t,e,n)=>{var r=n(9465),i=n(7813),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var s=t[e];o.call(t,e)&&i(s,n)&&(void 0!==n||e in t)||r(t,e,n)}},8470:(t,e,n)=>{var r=n(7813);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},4037:(t,e,n)=>{var r=n(8363),i=n(3674);t.exports=function(t,e){return t&&r(e,i(e),t)}},3886:(t,e,n)=>{var r=n(8363),i=n(1704);t.exports=function(t,e){return t&&r(e,i(e),t)}},9465:(t,e,n)=>{var r=n(8777);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},9750:t=>{t.exports=function(t,e,n){return t==t&&(void 0!==n&&(t=t<=n?t:n),void 0!==e&&(t=t>=e?t:e)),t}},5990:(t,e,n)=>{var r=n(6384),i=n(7412),o=n(4865),s=n(4037),a=n(3886),u=n(4626),c=n(278),l=n(8805),f=n(1911),h=n(8234),d=n(6904),p=n(4160),_=n(3824),y=n(9148),v=n(8517),m=n(1469),g=n(4144),b=n(6688),x=n(3218),w=n(2928),E=n(3674),A=n(1704),S="[object Arguments]",O="[object Function]",T="[object Object]",j={};j[S]=j["[object Array]"]=j["[object ArrayBuffer]"]=j["[object DataView]"]=j["[object Boolean]"]=j["[object Date]"]=j["[object Float32Array]"]=j["[object Float64Array]"]=j["[object Int8Array]"]=j["[object Int16Array]"]=j["[object Int32Array]"]=j["[object Map]"]=j["[object Number]"]=j[T]=j["[object RegExp]"]=j["[object Set]"]=j["[object String]"]=j["[object Symbol]"]=j["[object Uint8Array]"]=j["[object Uint8ClampedArray]"]=j["[object Uint16Array]"]=j["[object Uint32Array]"]=!0,j["[object Error]"]=j[O]=j["[object WeakMap]"]=!1,t.exports=function t(e,n,D,I,L,k){var M,R=1&n,P=2&n,C=4&n;if(D&&(M=L?D(e,I,L,k):D(e)),void 0!==M)return M;if(!x(e))return e;var q=m(e);if(q){if(M=_(e),!R)return c(e,M)}else{var N=p(e),V=N==O||"[object GeneratorFunction]"==N;if(g(e))return u(e,R);if(N==T||N==S||V&&!L){if(M=P||V?{}:v(e),!R)return P?f(e,a(M,e)):l(e,s(M,e))}else{if(!j[N])return L?e:{};M=y(e,N,R)}}k||(k=new r);var B=k.get(e);if(B)return B;k.set(e,M),w(e)?e.forEach((function(r){M.add(t(r,n,D,r,e,k))})):b(e)&&e.forEach((function(r,i){M.set(i,t(r,n,D,i,e,k))}));var $=q?void 0:(C?P?d:h:P?A:E)(e);return i($||e,(function(r,i){$&&(r=e[i=r]),o(M,i,t(r,n,D,i,e,k))})),M}},3118:(t,e,n)=>{var r=n(3218),i=Object.create,o=function(){function t(){}return function(e){if(!r(e))return{};if(i)return i(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=o},9881:(t,e,n)=>{var r=n(7816),i=n(9291)(r);t.exports=i},760:(t,e,n)=>{var r=n(9881);t.exports=function(t,e){var n=[];return r(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n}},1848:t=>{t.exports=function(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}},1078:(t,e,n)=>{var r=n(2488),i=n(7285);t.exports=function t(e,n,o,s,a){var u=-1,c=e.length;for(o||(o=i),a||(a=[]);++u<c;){var l=e[u];n>0&&o(l)?n>1?t(l,n-1,o,s,a):r(a,l):s||(a[a.length]=l)}return a}},8483:(t,e,n)=>{var r=n(5063)();t.exports=r},7816:(t,e,n)=>{var r=n(8483),i=n(3674);t.exports=function(t,e){return t&&r(t,e,i)}},7786:(t,e,n)=>{var r=n(1811),i=n(327);t.exports=function(t,e){for(var n=0,o=(e=r(e,t)).length;null!=t&&n<o;)t=t[i(e[n++])];return n&&n==o?t:void 0}},8866:(t,e,n)=>{var r=n(2488),i=n(1469);t.exports=function(t,e,n){var o=e(t);return i(t)?o:r(o,n(t))}},4239:(t,e,n)=>{var r=n(2705),i=n(9607),o=n(2333),s=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":s&&s in Object(t)?i(t):o(t)}},8565:t=>{var e=Object.prototype.hasOwnProperty;t.exports=function(t,n){return null!=t&&e.call(t,n)}},13:t=>{t.exports=function(t,e){return null!=t&&e in Object(t)}},2118:(t,e,n)=>{var r=n(1848),i=n(2722),o=n(2351);t.exports=function(t,e,n){return e==e?o(t,e,n):r(t,i,n)}},7556:(t,e,n)=>{var r=n(8668),i=n(7443),o=n(1196),s=n(9932),a=n(1717),u=n(4757),c=Math.min;t.exports=function(t,e,n){for(var l=n?o:i,f=t[0].length,h=t.length,d=h,p=Array(h),_=1/0,y=[];d--;){var v=t[d];d&&e&&(v=s(v,a(e))),_=c(v.length,_),p[d]=!n&&(e||f>=120&&v.length>=120)?new r(d&&v):void 0}v=t[0];var m=-1,g=p[0];t:for(;++m<f&&y.length<_;){var b=v[m],x=e?e(b):b;if(b=n||0!==b?b:0,!(g?u(g,x):l(y,x,n))){for(d=h;--d;){var w=p[d];if(!(w?u(w,x):l(t[d],x,n)))continue t}g&&g.push(x),y.push(b)}}return y}},9454:(t,e,n)=>{var r=n(4239),i=n(7005);t.exports=function(t){return i(t)&&"[object Arguments]"==r(t)}},939:(t,e,n)=>{var r=n(2492),i=n(7005);t.exports=function t(e,n,o,s,a){return e===n||(null==e||null==n||!i(e)&&!i(n)?e!=e&&n!=n:r(e,n,o,s,t,a))}},2492:(t,e,n)=>{var r=n(6384),i=n(7114),o=n(8351),s=n(6096),a=n(4160),u=n(1469),c=n(4144),l=n(6719),f="[object Arguments]",h="[object Array]",d="[object Object]",p=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,_,y,v){var m=u(t),g=u(e),b=m?h:a(t),x=g?h:a(e),w=(b=b==f?d:b)==d,E=(x=x==f?d:x)==d,A=b==x;if(A&&c(t)){if(!c(e))return!1;m=!0,w=!1}if(A&&!w)return v||(v=new r),m||l(t)?i(t,e,n,_,y,v):o(t,e,b,n,_,y,v);if(!(1&n)){var S=w&&p.call(t,"__wrapped__"),O=E&&p.call(e,"__wrapped__");if(S||O){var T=S?t.value():t,j=O?e.value():e;return v||(v=new r),y(T,j,n,_,v)}}return!!A&&(v||(v=new r),s(t,e,n,_,y,v))}},5588:(t,e,n)=>{var r=n(4160),i=n(7005);t.exports=function(t){return i(t)&&"[object Map]"==r(t)}},2958:(t,e,n)=>{var r=n(6384),i=n(939);t.exports=function(t,e,n,o){var s=n.length,a=s,u=!o;if(null==t)return!a;for(t=Object(t);s--;){var c=n[s];if(u&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++s<a;){var l=(c=n[s])[0],f=t[l],h=c[1];if(u&&c[2]){if(void 0===f&&!(l in t))return!1}else{var d=new r;if(o)var p=o(f,h,l,t,e,d);if(!(void 0===p?i(h,f,3,o,d):p))return!1}}return!0}},2722:t=>{t.exports=function(t){return t!=t}},8458:(t,e,n)=>{var r=n(3560),i=n(5346),o=n(3218),s=n(346),a=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,l=u.toString,f=c.hasOwnProperty,h=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(r(t)?h:a).test(s(t))}},9221:(t,e,n)=>{var r=n(4160),i=n(7005);t.exports=function(t){return i(t)&&"[object Set]"==r(t)}},8749:(t,e,n)=>{var r=n(4239),i=n(1780),o=n(7005),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&i(t.length)&&!!s[r(t)]}},7206:(t,e,n)=>{var r=n(1573),i=n(6432),o=n(6557),s=n(1469),a=n(9601);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?s(t)?i(t[0],t[1]):r(t):a(t)}},280:(t,e,n)=>{var r=n(5726),i=n(6916),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}},313:(t,e,n)=>{var r=n(3218),i=n(5726),o=n(3498),s=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return o(t);var e=i(t),n=[];for(var a in t)("constructor"!=a||!e&&s.call(t,a))&&n.push(a);return n}},9199:(t,e,n)=>{var r=n(9881),i=n(8612);t.exports=function(t,e){var n=-1,o=i(t)?Array(t.length):[];return r(t,(function(t,r,i){o[++n]=e(t,r,i)})),o}},1573:(t,e,n)=>{var r=n(2958),i=n(1499),o=n(2634);t.exports=function(t){var e=i(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},6432:(t,e,n)=>{var r=n(939),i=n(7361),o=n(9095),s=n(5403),a=n(9162),u=n(2634),c=n(327);t.exports=function(t,e){return s(t)&&a(e)?u(c(t),e):function(n){var s=i(n,t);return void 0===s&&s===e?o(n,t):r(e,s,3)}}},2689:(t,e,n)=>{var r=n(9932),i=n(7786),o=n(7206),s=n(9199),a=n(1131),u=n(1717),c=n(5022),l=n(6557),f=n(1469);t.exports=function(t,e,n){e=e.length?r(e,(function(t){return f(t)?function(e){return i(e,1===t.length?t[0]:t)}:t})):[l];var h=-1;e=r(e,u(o));var d=s(t,(function(t,n,i){return{criteria:r(e,(function(e){return e(t)})),index:++h,value:t}}));return a(d,(function(t,e){return c(t,e,n)}))}},371:t=>{t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},9152:(t,e,n)=>{var r=n(7786);t.exports=function(t){return function(e){return r(e,t)}}},8674:t=>{t.exports=function(t){return function(e){return null==t?void 0:t[e]}}},5976:(t,e,n)=>{var r=n(6557),i=n(5357),o=n(61);t.exports=function(t,e){return o(i(t,e,r),t+"")}},6560:(t,e,n)=>{var r=n(5703),i=n(8777),o=n(6557),s=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:o;t.exports=s},1131:t=>{t.exports=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}},2545:t=>{t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},531:(t,e,n)=>{var r=n(2705),i=n(9932),o=n(1469),s=n(3448),a=r?r.prototype:void 0,u=a?a.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return i(e,t)+"";if(s(e))return u?u.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},7561:(t,e,n)=>{var r=n(7990),i=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(i,""):t}},1717:t=>{t.exports=function(t){return function(e){return t(e)}}},7415:(t,e,n)=>{var r=n(9932);t.exports=function(t,e){return r(e,(function(e){return t[e]}))}},4757:t=>{t.exports=function(t,e){return t.has(e)}},4387:(t,e,n)=>{var r=n(9246);t.exports=function(t){return r(t)?t:[]}},4290:(t,e,n)=>{var r=n(6557);t.exports=function(t){return"function"==typeof t?t:r}},1811:(t,e,n)=>{var r=n(1469),i=n(5403),o=n(5514),s=n(9833);t.exports=function(t,e){return r(t)?t:i(t,e)?[t]:o(s(t))}},4318:(t,e,n)=>{var r=n(1149);t.exports=function(t){var e=new t.constructor(t.byteLength);return new r(e).set(new r(t)),e}},4626:(t,e,n)=>{t=n.nmd(t);var r=n(5639),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,s=o&&o.exports===i?r.Buffer:void 0,a=s?s.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=a?a(n):new t.constructor(n);return t.copy(r),r}},7157:(t,e,n)=>{var r=n(4318);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}},3147:t=>{var e=/\w*$/;t.exports=function(t){var n=new t.constructor(t.source,e.exec(t));return n.lastIndex=t.lastIndex,n}},419:(t,e,n)=>{var r=n(2705),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;t.exports=function(t){return o?Object(o.call(t)):{}}},7133:(t,e,n)=>{var r=n(4318);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},6393:(t,e,n)=>{var r=n(3448);t.exports=function(t,e){if(t!==e){var n=void 0!==t,i=null===t,o=t==t,s=r(t),a=void 0!==e,u=null===e,c=e==e,l=r(e);if(!u&&!l&&!s&&t>e||s&&a&&c&&!u&&!l||i&&a&&c||!n&&c||!o)return 1;if(!i&&!s&&!l&&t<e||l&&n&&o&&!i&&!s||u&&n&&o||!a&&o||!c)return-1}return 0}},5022:(t,e,n)=>{var r=n(6393);t.exports=function(t,e,n){for(var i=-1,o=t.criteria,s=e.criteria,a=o.length,u=n.length;++i<a;){var c=r(o[i],s[i]);if(c)return i>=u?c:c*("desc"==n[i]?-1:1)}return t.index-e.index}},278:t=>{t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}},8363:(t,e,n)=>{var r=n(4865),i=n(9465);t.exports=function(t,e,n,o){var s=!n;n||(n={});for(var a=-1,u=e.length;++a<u;){var c=e[a],l=o?o(n[c],t[c],c,n,t):void 0;void 0===l&&(l=t[c]),s?i(n,c,l):r(n,c,l)}return n}},8805:(t,e,n)=>{var r=n(8363),i=n(9551);t.exports=function(t,e){return r(t,i(t),e)}},1911:(t,e,n)=>{var r=n(8363),i=n(1442);t.exports=function(t,e){return r(t,i(t),e)}},4429:(t,e,n)=>{var r=n(5639)["__core-js_shared__"];t.exports=r},9291:(t,e,n)=>{var r=n(8612);t.exports=function(t,e){return function(n,i){if(null==n)return n;if(!r(n))return t(n,i);for(var o=n.length,s=e?o:-1,a=Object(n);(e?s--:++s<o)&&!1!==i(a[s],s,a););return n}}},5063:t=>{t.exports=function(t){return function(e,n,r){for(var i=-1,o=Object(e),s=r(e),a=s.length;a--;){var u=s[t?a:++i];if(!1===n(o[u],u,o))break}return e}}},7740:(t,e,n)=>{var r=n(7206),i=n(8612),o=n(3674);t.exports=function(t){return function(e,n,s){var a=Object(e);if(!i(e)){var u=r(n,3);e=o(e),n=function(t){return u(a[t],t,a)}}var c=t(e,n,s);return c>-1?a[u?e[c]:c]:void 0}}},8777:(t,e,n)=>{var r=n(852),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},7114:(t,e,n)=>{var r=n(8668),i=n(2908),o=n(4757);t.exports=function(t,e,n,s,a,u){var c=1&n,l=t.length,f=e.length;if(l!=f&&!(c&&f>l))return!1;var h=u.get(t),d=u.get(e);if(h&&d)return h==e&&d==t;var p=-1,_=!0,y=2&n?new r:void 0;for(u.set(t,e),u.set(e,t);++p<l;){var v=t[p],m=e[p];if(s)var g=c?s(m,v,p,e,t,u):s(v,m,p,t,e,u);if(void 0!==g){if(g)continue;_=!1;break}if(y){if(!i(e,(function(t,e){if(!o(y,e)&&(v===t||a(v,t,n,s,u)))return y.push(e)}))){_=!1;break}}else if(v!==m&&!a(v,m,n,s,u)){_=!1;break}}return u.delete(t),u.delete(e),_}},8351:(t,e,n)=>{var r=n(2705),i=n(1149),o=n(7813),s=n(7114),a=n(8776),u=n(1814),c=r?r.prototype:void 0,l=c?c.valueOf:void 0;t.exports=function(t,e,n,r,c,f,h){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!f(new i(t),new i(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var d=a;case"[object Set]":var p=1&r;if(d||(d=u),t.size!=e.size&&!p)return!1;var _=h.get(t);if(_)return _==e;r|=2,h.set(t,e);var y=s(d(t),d(e),r,c,f,h);return h.delete(t),y;case"[object Symbol]":if(l)return l.call(t)==l.call(e)}return!1}},6096:(t,e,n)=>{var r=n(8234),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,o,s,a){var u=1&n,c=r(t),l=c.length;if(l!=r(e).length&&!u)return!1;for(var f=l;f--;){var h=c[f];if(!(u?h in e:i.call(e,h)))return!1}var d=a.get(t),p=a.get(e);if(d&&p)return d==e&&p==t;var _=!0;a.set(t,e),a.set(e,t);for(var y=u;++f<l;){var v=t[h=c[f]],m=e[h];if(o)var g=u?o(m,v,h,e,t,a):o(v,m,h,t,e,a);if(!(void 0===g?v===m||s(v,m,n,o,a):g)){_=!1;break}y||(y="constructor"==h)}if(_&&!y){var b=t.constructor,x=e.constructor;b==x||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof x&&x instanceof x||(_=!1)}return a.delete(t),a.delete(e),_}},9464:(t,e,n)=>{var r=n(8674)({"&":"&","<":"<",">":">",'"':""","'":"'"});t.exports=r},1957:(t,e,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},8234:(t,e,n)=>{var r=n(8866),i=n(9551),o=n(3674);t.exports=function(t){return r(t,o,i)}},6904:(t,e,n)=>{var r=n(8866),i=n(1442),o=n(1704);t.exports=function(t){return r(t,o,i)}},5050:(t,e,n)=>{var r=n(7019);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},1499:(t,e,n)=>{var r=n(9162),i=n(3674);t.exports=function(t){for(var e=i(t),n=e.length;n--;){var o=e[n],s=t[o];e[n]=[o,s,r(s)]}return e}},852:(t,e,n)=>{var r=n(8458),i=n(7801);t.exports=function(t,e){var n=i(t,e);return r(n)?n:void 0}},5924:(t,e,n)=>{var r=n(5569)(Object.getPrototypeOf,Object);t.exports=r},9607:(t,e,n)=>{var r=n(2705),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=r?r.toStringTag:void 0;t.exports=function(t){var e=o.call(t,a),n=t[a];try{t[a]=void 0;var r=!0}catch(t){}var i=s.call(t);return r&&(e?t[a]=n:delete t[a]),i}},9551:(t,e,n)=>{var r=n(4963),i=n(479),o=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,a=s?function(t){return null==t?[]:(t=Object(t),r(s(t),(function(e){return o.call(t,e)})))}:i;t.exports=a},1442:(t,e,n)=>{var r=n(2488),i=n(5924),o=n(9551),s=n(479),a=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)r(e,o(t)),t=i(t);return e}:s;t.exports=a},4160:(t,e,n)=>{var r=n(8552),i=n(7071),o=n(3818),s=n(8525),a=n(577),u=n(4239),c=n(346),l="[object Map]",f="[object Promise]",h="[object Set]",d="[object WeakMap]",p="[object DataView]",_=c(r),y=c(i),v=c(o),m=c(s),g=c(a),b=u;(r&&b(new r(new ArrayBuffer(1)))!=p||i&&b(new i)!=l||o&&b(o.resolve())!=f||s&&b(new s)!=h||a&&b(new a)!=d)&&(b=function(t){var e=u(t),n="[object Object]"==e?t.constructor:void 0,r=n?c(n):"";if(r)switch(r){case _:return p;case y:return l;case v:return f;case m:return h;case g:return d}return e}),t.exports=b},7801:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},222:(t,e,n)=>{var r=n(1811),i=n(5694),o=n(1469),s=n(5776),a=n(1780),u=n(327);t.exports=function(t,e,n){for(var c=-1,l=(e=r(e,t)).length,f=!1;++c<l;){var h=u(e[c]);if(!(f=null!=t&&n(t,h)))break;t=t[h]}return f||++c!=l?f:!!(l=null==t?0:t.length)&&a(l)&&s(h,l)&&(o(t)||i(t))}},1789:(t,e,n)=>{var r=n(4536);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},401:t=>{t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},7667:(t,e,n)=>{var r=n(4536),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(e,t)?e[t]:void 0}},1327:(t,e,n)=>{var r=n(4536),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:i.call(e,t)}},1866:(t,e,n)=>{var r=n(4536);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this}},3824:t=>{var e=Object.prototype.hasOwnProperty;t.exports=function(t){var n=t.length,r=new t.constructor(n);return n&&"string"==typeof t[0]&&e.call(t,"index")&&(r.index=t.index,r.input=t.input),r}},9148:(t,e,n)=>{var r=n(4318),i=n(7157),o=n(3147),s=n(419),a=n(7133);t.exports=function(t,e,n){var u=t.constructor;switch(e){case"[object ArrayBuffer]":return r(t);case"[object Boolean]":case"[object Date]":return new u(+t);case"[object DataView]":return i(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return a(t,n);case"[object Map]":case"[object Set]":return new u;case"[object Number]":case"[object String]":return new u(t);case"[object RegExp]":return o(t);case"[object Symbol]":return s(t)}}},8517:(t,e,n)=>{var r=n(3118),i=n(5924),o=n(5726);t.exports=function(t){return"function"!=typeof t.constructor||o(t)?{}:r(i(t))}},7285:(t,e,n)=>{var r=n(2705),i=n(5694),o=n(1469),s=r?r.isConcatSpreadable:void 0;t.exports=function(t){return o(t)||i(t)||!!(s&&t&&t[s])}},5776:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}},6612:(t,e,n)=>{var r=n(7813),i=n(8612),o=n(5776),s=n(3218);t.exports=function(t,e,n){if(!s(n))return!1;var a=typeof e;return!!("number"==a?i(n)&&o(e,n.length):"string"==a&&e in n)&&r(n[e],t)}},5403:(t,e,n)=>{var r=n(1469),i=n(3448),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!i(t))||s.test(t)||!o.test(t)||null!=e&&t in Object(e)}},7019:t=>{t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},5346:(t,e,n)=>{var r,i=n(4429),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!o&&o in t}},5726:t=>{var e=Object.prototype;t.exports=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}},9162:(t,e,n)=>{var r=n(3218);t.exports=function(t){return t==t&&!r(t)}},7040:t=>{t.exports=function(){this.__data__=[],this.size=0}},4125:(t,e,n)=>{var r=n(8470),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0||(n==e.length-1?e.pop():i.call(e,n,1),--this.size,0))}},2117:(t,e,n)=>{var r=n(8470);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},7518:(t,e,n)=>{var r=n(8470);t.exports=function(t){return r(this.__data__,t)>-1}},4705:(t,e,n)=>{var r=n(8470);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},4785:(t,e,n)=>{var r=n(1989),i=n(8407),o=n(7071);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},1285:(t,e,n)=>{var r=n(5050);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},6e3:(t,e,n)=>{var r=n(5050);t.exports=function(t){return r(this,t).get(t)}},9916:(t,e,n)=>{var r=n(5050);t.exports=function(t){return r(this,t).has(t)}},5265:(t,e,n)=>{var r=n(5050);t.exports=function(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},8776:t=>{t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}},2634:t=>{t.exports=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}},4523:(t,e,n)=>{var r=n(8306);t.exports=function(t){var e=r(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}},4536:(t,e,n)=>{var r=n(852)(Object,"create");t.exports=r},6916:(t,e,n)=>{var r=n(5569)(Object.keys,Object);t.exports=r},3498:t=>{t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},1167:(t,e,n)=>{t=n.nmd(t);var r=n(1957),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,s=o&&o.exports===i&&r.process,a=function(){try{return o&&o.require&&o.require("util").types||s&&s.binding&&s.binding("util")}catch(t){}}();t.exports=a},2333:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},5569:t=>{t.exports=function(t,e){return function(n){return t(e(n))}}},5357:(t,e,n)=>{var r=n(6874),i=Math.max;t.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,s=-1,a=i(o.length-e,0),u=Array(a);++s<a;)u[s]=o[e+s];s=-1;for(var c=Array(e+1);++s<e;)c[s]=o[s];return c[e]=n(u),r(t,this,c)}}},5639:(t,e,n)=>{var r=n(1957),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},619:t=>{t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},2385:t=>{t.exports=function(t){return this.__data__.has(t)}},1814:t=>{t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}},61:(t,e,n)=>{var r=n(6560),i=n(1275)(r);t.exports=i},1275:t=>{var e=Date.now;t.exports=function(t){var n=0,r=0;return function(){var i=e(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}},7465:(t,e,n)=>{var r=n(8407);t.exports=function(){this.__data__=new r,this.size=0}},3779:t=>{t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},7599:t=>{t.exports=function(t){return this.__data__.get(t)}},4758:t=>{t.exports=function(t){return this.__data__.has(t)}},4309:(t,e,n)=>{var r=n(8407),i=n(7071),o=n(3369);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!i||s.length<199)return s.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(s)}return n.set(t,e),this.size=n.size,this}},2351:t=>{t.exports=function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}},5514:(t,e,n)=>{var r=n(4523),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,s=r((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,(function(t,n,r,i){e.push(r?i.replace(o,"$1"):n||t)})),e}));t.exports=s},327:(t,e,n)=>{var r=n(3448);t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},346:t=>{var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},7990:t=>{var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},9567:(t,e,n)=>{var r=n(554);t.exports=function(t,e){var n;if("function"!=typeof e)throw new TypeError("Expected a function");return t=r(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=void 0),n}}},6678:(t,e,n)=>{var r=n(5990);t.exports=function(t){return r(t,4)}},5703:t=>{t.exports=function(t){return function(){return t}}},6073:(t,e,n)=>{t.exports=n(4486)},7813:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},1675:(t,e,n)=>{var r=n(9464),i=n(9833),o=/[&<>"']/g,s=RegExp(o.source);t.exports=function(t){return(t=i(t))&&s.test(t)?t.replace(o,r):t}},3105:(t,e,n)=>{var r=n(4963),i=n(760),o=n(7206),s=n(1469);t.exports=function(t,e){return(s(t)?r:i)(t,o(e,3))}},3311:(t,e,n)=>{var r=n(7740)(n(998));t.exports=r},998:(t,e,n)=>{var r=n(1848),i=n(7206),o=n(554),s=Math.max;t.exports=function(t,e,n){var a=null==t?0:t.length;if(!a)return-1;var u=null==n?0:o(n);return u<0&&(u=s(a+u,0)),r(t,i(e,3),u)}},5564:(t,e,n)=>{var r=n(1078);t.exports=function(t){return null!=t&&t.length?r(t,1):[]}},4486:(t,e,n)=>{var r=n(7412),i=n(9881),o=n(4290),s=n(1469);t.exports=function(t,e){return(s(t)?r:i)(t,o(e))}},7361:(t,e,n)=>{var r=n(7786);t.exports=function(t,e,n){var i=null==t?void 0:r(t,e);return void 0===i?n:i}},8721:(t,e,n)=>{var r=n(8565),i=n(222);t.exports=function(t,e){return null!=t&&i(t,e,r)}},9095:(t,e,n)=>{var r=n(13),i=n(222);t.exports=function(t,e){return null!=t&&i(t,e,r)}},6557:t=>{t.exports=function(t){return t}},4721:(t,e,n)=>{var r=n(2118),i=n(8612),o=n(7037),s=n(554),a=n(2628),u=Math.max;t.exports=function(t,e,n,c){t=i(t)?t:a(t),n=n&&!c?s(n):0;var l=t.length;return n<0&&(n=u(l+n,0)),o(t)?n<=l&&t.indexOf(e,n)>-1:!!l&&r(t,e,n)>-1}},5325:(t,e,n)=>{var r=n(9932),i=n(7556),o=n(5976),s=n(4387),a=o((function(t){var e=r(t,s);return e.length&&e[0]===t[0]?i(e):[]}));t.exports=a},5694:(t,e,n)=>{var r=n(9454),i=n(7005),o=Object.prototype,s=o.hasOwnProperty,a=o.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(t){return i(t)&&s.call(t,"callee")&&!a.call(t,"callee")};t.exports=u},1469:t=>{var e=Array.isArray;t.exports=e},8612:(t,e,n)=>{var r=n(3560),i=n(1780);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},9246:(t,e,n)=>{var r=n(8612),i=n(7005);t.exports=function(t){return i(t)&&r(t)}},4144:(t,e,n)=>{t=n.nmd(t);var r=n(5639),i=n(5062),o=e&&!e.nodeType&&e,s=o&&t&&!t.nodeType&&t,a=s&&s.exports===o?r.Buffer:void 0,u=(a?a.isBuffer:void 0)||i;t.exports=u},3560:(t,e,n)=>{var r=n(4239),i=n(3218);t.exports=function(t){if(!i(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},1780:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},6688:(t,e,n)=>{var r=n(5588),i=n(1717),o=n(1167),s=o&&o.isMap,a=s?i(s):r;t.exports=a},3218:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},7005:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},2928:(t,e,n)=>{var r=n(9221),i=n(1717),o=n(1167),s=o&&o.isSet,a=s?i(s):r;t.exports=a},7037:(t,e,n)=>{var r=n(4239),i=n(1469),o=n(7005);t.exports=function(t){return"string"==typeof t||!i(t)&&o(t)&&"[object String]"==r(t)}},3448:(t,e,n)=>{var r=n(4239),i=n(7005);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},6719:(t,e,n)=>{var r=n(8749),i=n(1717),o=n(1167),s=o&&o.isTypedArray,a=s?i(s):r;t.exports=a},3674:(t,e,n)=>{var r=n(4636),i=n(280),o=n(8612);t.exports=function(t){return o(t)?r(t):i(t)}},1704:(t,e,n)=>{var r=n(4636),i=n(313),o=n(8612);t.exports=function(t){return o(t)?r(t,!0):i(t)}},928:t=>{t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},8306:(t,e,n)=>{var r=n(3369);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(i.Cache||r),n}i.Cache=r,t.exports=i},308:t=>{t.exports=function(){}},1463:(t,e,n)=>{var r=n(9567);t.exports=function(t){return r(2,t)}},9601:(t,e,n)=>{var r=n(371),i=n(9152),o=n(5403),s=n(327);t.exports=function(t){return o(t)?r(s(t)):i(t)}},9734:(t,e,n)=>{var r=n(1078),i=n(2689),o=n(5976),s=n(6612),a=o((function(t,e){if(null==t)return[];var n=e.length;return n>1&&s(t,e[0],e[1])?e=[]:n>2&&s(e[0],e[1],e[2])&&(e=[e[0]]),i(t,r(e,1),[])}));t.exports=a},240:(t,e,n)=>{var r=n(9750),i=n(531),o=n(554),s=n(9833);t.exports=function(t,e,n){return t=s(t),n=null==n?0:r(o(n),0,t.length),e=i(e),t.slice(n,n+e.length)==e}},479:t=>{t.exports=function(){return[]}},5062:t=>{t.exports=function(){return!1}},8601:(t,e,n)=>{var r=n(4841);t.exports=function(t){return t?Infinity===(t=r(t))||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},554:(t,e,n)=>{var r=n(8601);t.exports=function(t){var e=r(t),n=e%1;return e==e?n?e-n:e:0}},4841:(t,e,n)=>{var r=n(7561),i=n(3218),o=n(3448),s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=a.test(t);return n||u.test(t)?c(t.slice(2),n?2:8):s.test(t)?NaN:+t}},9833:(t,e,n)=>{var r=n(531);t.exports=function(t){return null==t?"":r(t)}},2628:(t,e,n)=>{var r=n(7415),i=n(3674);t.exports=function(t){return null==t?[]:r(t,i(t))}},5936:(t,e,n)=>{"use strict";e.__esModule=!0,e.default=function(t,e){if(i)return i.call(t,e);var n=t.parentNode;if(n&&"function"==typeof n.querySelectorAll)for(var r=n.querySelectorAll(e),o=0;o<r.length;o++)if(r[o]===t)return!0;return!1};var r=n.g.Element&&n.g.Element.prototype,i=r&&(r.matches||r.matchesSelector||r.webkitMatchesSelector||r.mozMatchesSelector||r.msMatchesSelector||r.oMatchesSelector);t.exports=e.default,t.exports.default=e.default},7418:t=>{"use strict";var e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,i){for(var o,s,a=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),u=1;u<arguments.length;u++){for(var c in o=Object(arguments[u]))n.call(o,c)&&(a[c]=o[c]);if(e){s=e(o);for(var l=0;l<s.length;l++)r.call(o,s[l])&&(a[s[l]]=o[s[l]])}}return a}},443:(t,e)=>{"use strict";e.Z=function(t,e){return new Promise((function(n){setTimeout((function(){n(e)}),t)}))}},4155:t=>{var e,n,r=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(t){if(e===setTimeout)return setTimeout(t,0);if((e===i||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(n){try{return e.call(null,t,0)}catch(n){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:i}catch(t){e=i}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(t){n=o}}();var a,u=[],c=!1,l=-1;function f(){c&&a&&(c=!1,a.length?u=a.concat(u):l=-1,u.length&&h())}function h(){if(!c){var t=s(f);c=!0;for(var e=u.length;e;){for(a=u,u=[];++l<e;)a&&a[l].run();l=-1,e=u.length}a=null,c=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{return n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function p(){}r.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];u.push(new d(t,e)),1!==u.length||c||s(h)},d.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=p,r.addListener=p,r.once=p,r.off=p,r.removeListener=p,r.removeAllListeners=p,r.emit=p,r.prependListener=p,r.prependOnceListener=p,r.listeners=function(t){return[]},r.binding=function(t){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},2587:t=>{"use strict";function e(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,n,r,i){n=n||"&",r=r||"=";var o={};if("string"!=typeof t||0===t.length)return o;var s=/\+/g;t=t.split(n);var a=1e3;i&&"number"==typeof i.maxKeys&&(a=i.maxKeys);var u=t.length;a>0&&u>a&&(u=a);for(var c=0;c<u;++c){var l,f,h,d,p=t[c].replace(s,"%20"),_=p.indexOf(r);_>=0?(l=p.substr(0,_),f=p.substr(_+1)):(l=p,f=""),h=decodeURIComponent(l),d=decodeURIComponent(f),e(o,h)?Array.isArray(o[h])?o[h].push(d):o[h]=[o[h],d]:o[h]=d}return o}},2361:t=>{"use strict";var e=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,n,r,i){return n=n||"&",r=r||"=",null===t&&(t=void 0),"object"==typeof t?Object.keys(t).map((function(i){var o=encodeURIComponent(e(i))+r;return Array.isArray(t[i])?t[i].map((function(t){return o+encodeURIComponent(e(t))})).join(n):o+encodeURIComponent(e(t[i]))})).join(n):i?encodeURIComponent(e(i))+r+encodeURIComponent(e(t)):""}},7673:(t,e,n)=>{"use strict";e.decode=e.parse=n(2587),e.encode=e.stringify=n(2361)},1095:t=>{var e={iterator:"undefined"!=typeof Symbol?Symbol.iterator:"@@iterator"};function n(t,e){throw new Error("don't know how to "+t+" collection: "+e)}function r(t,n){return"iterator"===n?t[e.iterator]||t.next:t[e[n]]}function i(t){var n=t[e.iterator];return n?n.call(t):t.next?t:u(t)?new o(t):l(t)?new s(t):void 0}function o(t){this.arr=t,this.index=0}function s(t){this.obj=t,this.keys=Object.keys(t),this.index=0}o.prototype.next=function(){return this.index<this.arr.length?{value:this.arr[this.index++],done:!1}:{done:!0}},s.prototype.next=function(){if(this.index<this.keys.length){var t=this.keys[this.index++];return{value:[t,this.obj[t]],done:!1}}return{done:!0}};var a=Object.prototype.toString,u="function"==typeof Array.isArray?Array.isArray:function(t){return"[object Array]"==a.call(t)};function c(t){return"function"==typeof t}function l(t){return t instanceof Object&&Object.getPrototypeOf(t)===Object.getPrototypeOf({})}function f(t){return"number"==typeof t}function h(t){this["@@transducer/reduced"]=!0,this["@@transducer/value"]=t}function d(t){return t instanceof h||t&&t["@@transducer/reduced"]}function p(t){return t["@@transducer/value"]}function _(t){return d(t)?p(t):t}function y(t,e,o){if(u(t)){for(var s=o,a=-1,c=t.length;++a<c;)if(d(s=e["@@transducer/step"](s,t[a]))){s=p(s);break}return e["@@transducer/result"](s)}if(l(t)||r(t,"iterator")){s=o;for(var f=i(t),h=f.next();!h.done;){if(d(s=e["@@transducer/step"](s,h.value))){s=p(s);break}h=f.next()}return e["@@transducer/result"](s)}n("iterate",t)}function v(t,e,n,r){return e=e(n),void 0===r&&(r=e["@@transducer/init"]()),y(t,e,r)}function m(){var t=Array.prototype.slice.call(arguments);return function(e){for(var n=e,r=t.length-1;r>=0;r--)n=t[r](n);return n}}function g(t,e,n){if(!e)return t;switch(n=null!=n?n:1){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};default:return t.bind(e)}}function b(t,e){this.xform=e,this.f=t}function x(t,e,n){return c(t)&&(n=e,e=t,t=null),e=g(e,n),t?u(t)?function(t,e,n){var r=-1,i=t.length,o=Array(i);for(e=g(e,n,2);++r<i;)o[r]=e(t[r],r);return o}(t,e,n):$(t,x(e)):function(t){return new b(e,t)}}function w(t,e){this.xform=e,this.f=t}function E(t,e,n){return c(t)&&(n=e,e=t,t=null),e=g(e,n),t?u(t)?function(t,e,n){var r=t.length,i=[];e=g(e,n,2);for(var o=0;o<r;o++)e(t[o],o)&&i.push(t[o]);return i}(t,e,n):$(t,E(e)):function(t){return new w(e,t)}}function A(t){this.xform=t,this.last=void 0}function S(t,e){this.xform=e,this.f=t}function O(t,e){this.n=t,this.i=0,this.xform=e}function T(t,e){this.n=t,this.i=0,this.xform=e}function j(t,e){this.xform=e,this.f=t,this.dropping=!0}function D(t,e){this.n=t,this.i=0,this.xform=e,this.part=new Array(t)}b.prototype["@@transducer/init"]=function(){return this.xform["@@transducer/init"]()},b.prototype["@@transducer/result"]=function(t){return this.xform["@@transducer/result"](t)},b.prototype["@@transducer/step"]=function(t,e){return this.xform["@@transducer/step"](t,this.f(e))},w.prototype["@@transducer/init"]=function(){return this.xform["@@transducer/init"]()},w.prototype["@@transducer/result"]=function(t){return this.xform["@@transducer/result"](t)},w.prototype["@@transducer/step"]=function(t,e){return this.f(e)?this.xform["@@transducer/step"](t,e):t},A.prototype["@@transducer/init"]=function(){return this.xform["@@transducer/init"]()},A.prototype["@@transducer/result"]=function(t){return this.xform["@@transducer/result"](t)},A.prototype["@@transducer/step"]=function(t,e){return e!==this.last?(this.last=e,this.xform["@@transducer/step"](t,e)):t},S.prototype["@@transducer/init"]=function(){return this.xform["@@transducer/init"]()},S.prototype["@@transducer/result"]=function(t){return this.xform["@@transducer/result"](t)},S.prototype["@@transducer/step"]=function(t,e){return this.f(e)?this.xform["@@transducer/step"](t,e):new h(t)},O.prototype["@@transducer/init"]=function(){return this.xform["@@transducer/init"]()},O.prototype["@@transducer/result"]=function(t){return this.xform["@@transducer/result"](t)},O.prototype["@@transducer/step"]=function(t,e){var n;return this.i<this.n&&(t=this.xform["@@transducer/step"](t,e),this.i+1>=this.n&&(t=d(n=t)?n:new h(n))),this.i++,t},T.prototype["@@transducer/init"]=function(){return this.xform["@@transducer/init"]()},T.prototype["@@transducer/result"]=function(t){return this.xform["@@transducer/result"](t)},T.prototype["@@transducer/step"]=function(t,e){return this.i++<this.n?t:this.xform["@@transducer/step"](t,e)},j.prototype["@@transducer/init"]=function(){return this.xform["@@transducer/init"]()},j.prototype["@@transducer/result"]=function(t){return this.xform["@@transducer/result"](t)},j.prototype["@@transducer/step"]=function(t,e){if(this.dropping){if(this.f(e))return t;this.dropping=!1}return this.xform["@@transducer/step"](t,e)},D.prototype["@@transducer/init"]=function(){return this.xform["@@transducer/init"]()},D.prototype["@@transducer/result"]=function(t){return this.i>0?_(this.xform["@@transducer/step"](t,this.part.slice(0,this.i))):this.xform["@@transducer/result"](t)},D.prototype["@@transducer/step"]=function(t,e){if(this.part[this.i]=e,this.i+=1,this.i===this.n){var n=this.part.slice(0,this.n);return this.part=new Array(this.n),this.i=0,this.xform["@@transducer/step"](t,n)}return t};var I={};function L(t,e){this.f=t,this.xform=e,this.part=[],this.last=I}function k(t,e){this.sep=t,this.xform=e,this.started=!1}function M(t,e){this.xform=e,this.n=t}function R(t,e){this.xform=e,this.n=t,this.i=-1}function P(t){this.xform=t}function C(t){return new P(t)}function q(t,e){return t.push(e),t}function N(t,e){if(u(e)&&2===e.length)t[e[0]]=e[1];else for(var n=Object.keys(e),r=n.length,i=0;i<r;i++)t[n[i]]=e[n[i]];return t}L.prototype["@@transducer/init"]=function(){return this.xform["@@transducer/init"]()},L.prototype["@@transducer/result"]=function(t){var e=this.part.length;return e>0?_(this.xform["@@transducer/step"](t,this.part.slice(0,e))):this.xform["@@transducer/result"](t)},L.prototype["@@transducer/step"]=function(t,e){var n=this.f(e);return n===this.last||this.last===I?this.part.push(e):(t=this.xform["@@transducer/step"](t,this.part),this.part=[e]),this.last=n,t},k.prototype["@@transducer/init"]=function(){return this.xform["@@transducer/init"]()},k.prototype["@@transducer/result"]=function(t){return this.xform["@@transducer/result"](t)},k.prototype["@@transducer/step"]=function(t,e){if(this.started){var n=this.xform["@@transducer/step"](t,this.sep);return d(n)?n:this.xform["@@transducer/step"](n,e)}return this.started=!0,this.xform["@@transducer/step"](t,e)},M.prototype["@@transducer/init"]=function(){return this.xform["@@transducer/init"]()},M.prototype["@@transducer/result"]=function(t){return this.xform["@@transducer/result"](t)},M.prototype["@@transducer/step"]=function(t,e){for(var n=this.n,r=t,i=0;i<n&&!d(r=this.xform["@@transducer/step"](r,e));i++);return r},R.prototype["@@transducer/init"]=function(){return this.xform["@@transducer/init"]()},R.prototype["@@transducer/result"]=function(t){return this.xform["@@transducer/result"](t)},R.prototype["@@transducer/step"]=function(t,e){return this.i+=1,this.i%this.n==0?this.xform["@@transducer/step"](t,e):t},P.prototype["@@transducer/init"]=function(){return this.xform["@@transducer/init"]()},P.prototype["@@transducer/result"]=function(t){return this.xform["@@transducer/result"](t)},P.prototype["@@transducer/step"]=function(t,e){var n=this.xform,r={"@@transducer/init":function(){return n["@@transducer/init"]()},"@@transducer/result":function(t){return t},"@@transducer/step":function(t,e){var r=n["@@transducer/step"](t,e);return d(r)?p(r):r}};return y(e,r,t)};var V={"@@transducer/init":function(){return[]},"@@transducer/result":function(t){return t}};V["@@transducer/step"]=q;var B={};function $(t,e){return u(t)?v(t,e,V,[]):l(t)?v(t,e,B,{}):t["@@transducer/step"]?(i=t["@@transducer/init"]?t["@@transducer/init"]():new t.constructor,v(t,e,t,i)):r(t,"iterator")?new U(e,t):void n("sequence",t);var i}B["@@transducer/init"]=function(){return{}},B["@@transducer/result"]=function(t){return t},B["@@transducer/step"]=N;var F={};function H(t,e){this.xform=t(F),this.iter=e}function U(t,e){this.iter=i(e),this.items=[],this.stepper=new H(t,i(e))}F["@@transducer/result"]=function(t){return d(t)?p(t):t},F["@@transducer/step"]=function(t,e){return t.items.push(e),t.rest},H.prototype["@@transducer/step"]=function(t){for(var e=t.items.length;t.items.length===e;){var n=this.iter.next();if(n.done||d(n.value)){this.xform["@@transducer/result"](this);break}this.xform["@@transducer/step"](t,n.value)}},U.prototype[e.iterator]=function(){return this},U.prototype.next=function(){return this["@@transducer/step"](),this.items.length?{value:this.items.pop(),done:!1}:{done:!0}},U.prototype["@@transducer/step"]=function(){this.items.length||this.stepper["@@transducer/step"](this)},t.exports={reduce:y,transformer:function(t){var e={"@@transducer/init":function(){throw new Error("init value unavailable")},"@@transducer/result":function(t){return t}};return e["@@transducer/step"]=t,e},Reduced:h,isReduced:d,iterator:i,push:q,merge:N,transduce:v,seq:$,toArray:function(t,e){return e?v(t,e,V,[]):y(t,V,[])},toObj:function(t,e){return e?v(t,e,B,{}):y(t,B,{})},toIter:function(t,e){return e?new U(e,t):i(t)},into:function(t,e,r){return u(t)?v(r,e,V,t):l(t)?v(r,e,B,t):t["@@transducer/step"]?v(r,e,t,t):void n("into",t)},compose:m,map:x,filter:E,remove:function(t,e,n){return c(t)&&(n=e,e=t,t=null),e=g(e,n),E(t,(function(t){return!e(t)}))},cat:C,mapcat:function(t,e){return m(x(t=g(t,e)),C)},keep:function(t){return E(t,(function(t){return null!=t}))},dedupe:function t(e){return e?$(e,t()):function(t){return new A(t)}},take:function t(e,n){return f(e)&&(n=e,e=null),e?$(e,t(n)):function(t){return new O(n,t)}},takeWhile:function t(e,n,r){return c(e)&&(r=n,n=e,e=null),n=g(n,r),e?$(e,t(n)):function(t){return new S(n,t)}},takeNth:function t(e,n){return 1===arguments.length?(n=e,function(t){return new R(n,t)}):$(e,t(n))},drop:function t(e,n){return f(e)&&(n=e,e=null),e?$(e,t(n)):function(t){return new T(n,t)}},dropWhile:function t(e,n,r){return c(e)&&(r=n,n=e,e=null),n=g(n,r),e?$(e,t(n)):function(t){return new j(n,t)}},partition:function t(e,n){return f(e)&&(n=e,e=null),e?$(e,t(n)):function(t){return new D(n,t)}},partitionBy:function t(e,n,r){return c(e)&&(r=n,n=e,e=null),n=g(n,r),e?$(e,t(n)):function(t){return new L(n,t)}},interpose:function t(e,n){return 1===arguments.length?(n=e,function(t){return new k(n,t)}):$(e,t(n))},repeat:function t(e,n){return 1===arguments.length?(n=e,function(t){return new M(n,t)}):$(e,t(n))},range:function(t){for(var e=new Array(t),n=0;n<e.length;n++)e[n]=n;return e},LazyTransformer:U}},1010:(t,e,n)=>{"use strict";e.Kg=function(t,e){var n=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";!function(t){t.hot&&t.hot.accept()}(t);var r=i.get(t);if(r||(r=new Set,i.set(t,r)),r.has(n))throw new Error("ud functions can only be used once per module with a given key");r.add(n);var o=!1,s=void 0;return t.hot&&(t.hot.data&&t.hot.data.__ud__&&Object.prototype.hasOwnProperty.call(t.hot.data.__ud__,n)&&(s=t.hot.data.__ud__[n],o=!0),t.hot.dispose((function(t){t.__ud__||(t.__ud__={}),t.__ud__[n]=s}))),o||(s=e()),s}(t,(function(){if(!t.hot)return{fn:null,wrapper:e};var n={fn:null,wrapper:null},i=r(e.length).map((function(t){return"a"+t})).join(",");return n.wrapper=new Function("shared","\n 'use strict';\n return function ".concat(e.name,"__ud_wrapper(").concat(i,") {\n if (new.target) {\n return Reflect.construct(shared.fn, arguments, new.target);\n } else {\n return shared.fn.apply(this, arguments);\n }\n };\n "))(n),e.prototype?(n.wrapper.prototype=Object.create(e.prototype),n.wrapper.prototype.constructor=n.wrapper):n.wrapper.prototype=e.prototype,n}),"--defn-shared-"+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:""));return n.fn=e,t.hot&&(e.prototype&&n.wrapper.prototype&&Object.getPrototypeOf(n.wrapper.prototype)!==e.prototype&&Object.setPrototypeOf(n.wrapper.prototype,e.prototype),Object.setPrototypeOf(n.wrapper,e)),n.wrapper};var r=n(3758),i=(n(3687),new WeakMap)},1496:t=>{"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},384:t=>{t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},9539:(t,e,n)=>{var r=n(4155),i=/%[sdj%]/g;e.format=function(t){if(!v(t)){for(var e=[],n=0;n<arguments.length;n++)e.push(a(arguments[n]));return e.join(" ")}n=1;for(var r=arguments,o=r.length,s=String(t).replace(i,(function(t){if("%%"===t)return"%";if(n>=o)return t;switch(t){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return t}})),u=r[n];n<o;u=r[++n])_(u)||!b(u)?s+=" "+u:s+=" "+a(u);return s},e.deprecate=function(t,i){if(m(n.g.process))return function(){return e.deprecate(t,i).apply(this,arguments)};if(!0===r.noDeprecation)return t;var o=!1;return function(){if(!o){if(r.throwDeprecation)throw new Error(i);r.traceDeprecation?console.trace(i):console.error(i),o=!0}return t.apply(this,arguments)}};var o,s={};function a(t,n){var r={seen:[],stylize:c};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),p(n)?r.showHidden=n:n&&e._extend(r,n),m(r.showHidden)&&(r.showHidden=!1),m(r.depth)&&(r.depth=2),m(r.colors)&&(r.colors=!1),m(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=u),l(r,t,r.depth)}function u(t,e){var n=a.styles[e];return n?"["+a.colors[n][0]+"m"+t+"["+a.colors[n][1]+"m":t}function c(t,e){return t}function l(t,n,r){if(t.customInspect&&n&&E(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,t);return v(i)||(i=l(t,i,r)),i}var o=function(t,e){if(m(e))return t.stylize("undefined","undefined");if(v(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}return y(e)?t.stylize(""+e,"number"):p(e)?t.stylize(""+e,"boolean"):_(e)?t.stylize("null","null"):void 0}(t,n);if(o)return o;var s=Object.keys(n),a=function(t){var e={};return t.forEach((function(t,n){e[t]=!0})),e}(s);if(t.showHidden&&(s=Object.getOwnPropertyNames(n)),w(n)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return f(n);if(0===s.length){if(E(n)){var u=n.name?": "+n.name:"";return t.stylize("[Function"+u+"]","special")}if(g(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(x(n))return t.stylize(Date.prototype.toString.call(n),"date");if(w(n))return f(n)}var c,b="",A=!1,S=["{","}"];return d(n)&&(A=!0,S=["[","]"]),E(n)&&(b=" [Function"+(n.name?": "+n.name:"")+"]"),g(n)&&(b=" "+RegExp.prototype.toString.call(n)),x(n)&&(b=" "+Date.prototype.toUTCString.call(n)),w(n)&&(b=" "+f(n)),0!==s.length||A&&0!=n.length?r<0?g(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special"):(t.seen.push(n),c=A?function(t,e,n,r,i){for(var o=[],s=0,a=e.length;s<a;++s)T(e,String(s))?o.push(h(t,e,n,r,String(s),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(h(t,e,n,r,i,!0))})),o}(t,n,r,a,s):s.map((function(e){return h(t,n,r,a,e,A)})),t.seen.pop(),function(t,e,n){return t.reduce((function(t,e){return e.indexOf("\n"),t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1]:n[0]+e+" "+t.join(", ")+" "+n[1]}(c,b,S)):S[0]+b+S[1]}function f(t){return"["+Error.prototype.toString.call(t)+"]"}function h(t,e,n,r,i,o){var s,a,u;if((u=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?a=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(a=t.stylize("[Setter]","special")),T(r,i)||(s="["+i+"]"),a||(t.seen.indexOf(u.value)<0?(a=_(n)?l(t,u.value,null):l(t,u.value,n-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+a.split("\n").map((function(t){return" "+t})).join("\n")):a=t.stylize("[Circular]","special")),m(s)){if(o&&i.match(/^\d+$/))return a;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=t.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=t.stylize(s,"string"))}return s+": "+a}function d(t){return Array.isArray(t)}function p(t){return"boolean"==typeof t}function _(t){return null===t}function y(t){return"number"==typeof t}function v(t){return"string"==typeof t}function m(t){return void 0===t}function g(t){return b(t)&&"[object RegExp]"===A(t)}function b(t){return"object"==typeof t&&null!==t}function x(t){return b(t)&&"[object Date]"===A(t)}function w(t){return b(t)&&("[object Error]"===A(t)||t instanceof Error)}function E(t){return"function"==typeof t}function A(t){return Object.prototype.toString.call(t)}function S(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(m(o)&&(o=r.env.NODE_DEBUG||""),t=t.toUpperCase(),!s[t])if(new RegExp("\\b"+t+"\\b","i").test(o)){var n=r.pid;s[t]=function(){var r=e.format.apply(e,arguments);console.error("%s %d: %s",t,n,r)}}else s[t]=function(){};return s[t]},e.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=d,e.isBoolean=p,e.isNull=_,e.isNullOrUndefined=function(t){return null==t},e.isNumber=y,e.isString=v,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=m,e.isRegExp=g,e.isObject=b,e.isDate=x,e.isError=w,e.isFunction=E,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=n(384);var O=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function T(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){var t,n;console.log("%s - %s",(n=[S((t=new Date).getHours()),S(t.getMinutes()),S(t.getSeconds())].join(":"),[t.getDate(),O[t.getMonth()],n].join(" ")),e.format.apply(e,arguments))},e.inherits=n(1496),e._extend=function(t,e){if(!e||!b(e))return t;for(var n=Object.keys(e),r=n.length;r--;)t[n[r]]=e[n[r]];return t}},3687:t=>{t.exports=function(t,e){1==arguments.length&&(e=t[1],t=t[0]);for(var n={},r=0;r<t.length;r+=1)n[t[r]]=e[r];return n}},3897:t=>{t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},t.exports.__esModule=!0,t.exports.default=t.exports},3405:(t,e,n)=>{var r=n(3897);t.exports=function(t){if(Array.isArray(t))return r(t)},t.exports.__esModule=!0,t.exports.default=t.exports},4836:t=>{t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports},9498:t=>{t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.__esModule=!0,t.exports.default=t.exports},2281:t=>{t.exports=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.")},t.exports.__esModule=!0,t.exports.default=t.exports},861:(t,e,n)=>{var r=n(3405),i=n(9498),o=n(6116),s=n(2281);t.exports=function(t){return r(t)||i(t)||o(t)||s()},t.exports.__esModule=!0,t.exports.default=t.exports},8698:t=>{function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},6116:(t,e,n)=>{var r=n(3897);t.exports=function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={id:r,loaded:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.amdD=function(){throw new Error("define cannot be used indirect")},n.amdO={},n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.hmd=t=>((t=Object.create(t)).children||(t.children=[]),Object.defineProperty(t,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+t.id)}}),t),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{if(!n.g.__InboxSDKInjected){n.g.__InboxSDKInjected=!0;const t=n(3721);let e;try{n.amdD&&n.amdO&&(e=n.amdD,n.amdD=null);const t=n(9979),r=n(5309).Z,i=n(8339).Z,o=n(5740).Z,s=n(3386).Z,a=n(2165).Z,u=n(244).Z,c=n(1623).Z,l=n(3870).Z,f=n(7851).Z;if("https://mail.google.com"!==document.location.origin)throw new Error("Should not happen");l(),f(),t.init(),r(),i(),o(),s(),a(),u(),c()}catch(e){t.error(e)}finally{e&&(n.amdD=e)}}})()})();
|
|
3
3
|
//# sourceMappingURL=pageWorld.js.map
|