@finsemble/finsemble-core 6.1.4 → 6.1.5
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/.mocharc.js +12 -12
- package/.nycrc.json +7 -7
- package/README.md +24 -24
- package/assets/fonts/LICENSE.txt +202 -202
- package/configs/core/config.json +214 -214
- package/configs/core/securityPolicies.json +24 -24
- package/configs/core/services.json +233 -233
- package/configs/schemas/README.md +1 -1
- package/configs/schemas/fileBasedSchemas/appdConfigFile.schema.json +5 -5
- package/configs/schemas/fileBasedSchemas/applicationConfigFile.schema.json +5 -5
- package/configs/schemas/fileBasedSchemas/componentsFile.schema.json +5 -5
- package/configs/schemas/fileBasedSchemas/coreConfigFile.schema.json +5 -5
- package/configs/schemas/fileBasedSchemas/dashbarFile.schema.json +5 -5
- package/configs/schemas/fileBasedSchemas/manifestFile.schema.json +5 -5
- package/configs/schemas/fileBasedSchemas/securityPoliciesFile.schema.json +5 -5
- package/configs/schemas/fileBasedSchemas/servicesFile.schema.json +5 -5
- package/configs/schemas/fileBasedSchemas/uiComponentsFile.schema.json +5 -5
- package/configs/schemas/fileBasedSchemas/workspacesFile.schema.json +5 -5
- package/configs/schemas/finsemble.schema.json +4006 -4006
- package/dist/FSBL.js +1 -1
- package/dist/clients/Interop/FinsembleDesktopAgent.md +154 -154
- package/dist/clients/Interop/tsconfig.json +7 -7
- package/dist/clients/Startup/README.md +28 -28
- package/dist/clients/dragAndDropAssets/dragAndDropScrim.css +54 -54
- package/dist/clients/dragAndDropAssets/ff-delete-circle.svg +10 -10
- package/dist/clients/dragAndDropAssets/ff-share.svg +13 -13
- package/dist/components/system/notification/ff-close.svg +14 -14
- package/dist/components/system/notification/finsemble_logo_white.svg +15 -15
- package/dist/components/system/notification/notification.html +155 -155
- package/dist/configs/core/config.json +214 -214
- package/dist/configs/core/securityPolicies.json +24 -24
- package/dist/configs/core/services.json +233 -233
- package/dist/configs/schemas/README.md +1 -1
- package/dist/configs/schemas/fileBasedSchemas/appdConfigFile.schema.json +5 -5
- package/dist/configs/schemas/fileBasedSchemas/applicationConfigFile.schema.json +5 -5
- package/dist/configs/schemas/fileBasedSchemas/componentsFile.schema.json +5 -5
- package/dist/configs/schemas/fileBasedSchemas/coreConfigFile.schema.json +5 -5
- package/dist/configs/schemas/fileBasedSchemas/dashbarFile.schema.json +5 -5
- package/dist/configs/schemas/fileBasedSchemas/manifestFile.schema.json +5 -5
- package/dist/configs/schemas/fileBasedSchemas/securityPoliciesFile.schema.json +5 -5
- package/dist/configs/schemas/fileBasedSchemas/servicesFile.schema.json +5 -5
- package/dist/configs/schemas/fileBasedSchemas/uiComponentsFile.schema.json +5 -5
- package/dist/configs/schemas/fileBasedSchemas/workspacesFile.schema.json +5 -5
- package/dist/configs/schemas/finsemble.schema.json +4006 -4006
- package/dist/finsemble-javascript-adapter.js +1 -1
- package/dist/index.js +1 -1
- package/dist/javascript-adapter-example-app.html +37 -37
- package/dist/services/Interop/DevTools.tsx +71 -71
- package/dist/services/Interop/Interop.html +15 -15
- package/dist/services/Interop/InteropService.js +1 -1
- package/dist/services/Interop/InteropService.md +148 -148
- package/dist/services/Interop/InteropServiceUI.css +12 -12
- package/dist/services/Interop/InteropServiceUI.js +1 -1
- package/dist/services/Interop/InteropServiceUI.tsx +39 -39
- package/dist/services/Interop/devtoolsEnhancer.tsx +63 -63
- package/dist/services/Interop/tsconfig.json +7 -7
- package/dist/services/ServiceTemplate.md +39 -39
- package/dist/services/assimilation/assimilation.html +18 -18
- package/dist/services/assimilation/assimilationService.js +1 -1
- package/dist/services/authentication/authentication.html +17 -17
- package/dist/services/authentication/authenticationService.js +1 -1
- package/dist/services/authentication/dialogSignOn.html +199 -199
- package/dist/services/config/config.html +17 -17
- package/dist/services/config/configService.js +1 -1
- package/dist/services/dataStore/dataStore.html +18 -18
- package/dist/services/dataStore/dataStoreService.js +1 -1
- package/dist/services/hotkeys/hotkeys.html +18 -18
- package/dist/services/hotkeys/hotkeysService.js +1 -1
- package/dist/services/linker/linker.html +18 -18
- package/dist/services/linker/linkerService.js +1 -1
- package/dist/services/logger/logger.html +18 -18
- package/dist/services/logger/loggerService.js +1 -1
- package/dist/services/logger/loggerUI.js +1 -1
- package/dist/services/logger/src/app.css +860 -860
- package/dist/services/logger/src/components/Views/Logs/rightPanel/consoleView.css +379 -379
- package/dist/services/logger/src/components/objectInspector/README.md +1 -1
- package/dist/services/notification/notification.html +11 -11
- package/dist/services/notification/notificationService.js +1 -1
- package/dist/services/preferences/preferencesService.js +1 -1
- package/dist/services/router/router.html +18 -18
- package/dist/services/router/routerService.js +1 -1
- package/dist/services/search/search.html +17 -17
- package/dist/services/search/searchService.js +1 -1
- package/dist/services/storage/adapters/instrumentedIndexedDBAdapter.js +1 -1
- package/dist/services/storage/storage.html +17 -17
- package/dist/services/storage/storageService.js +1 -1
- package/dist/services/systemManager/bootTasks/testTasks/_aReadMe.md +119 -119
- package/dist/services/systemManager/systemManager.html +24 -24
- package/dist/services/systemManager/systemManager.js +1 -1
- package/dist/services/window/Docking/GroupRequirements.md +18 -18
- package/dist/services/window/Splintering/SplinterAgentSlave.html +13 -13
- package/dist/services/window/Splintering/SplinterAgentSlave.js +1 -1
- package/dist/services/window/Splintering/Splintering.md +118 -118
- package/dist/services/window/StackedWindowManager/StackRequirements.md +23 -23
- package/dist/services/window/WindowBehaviorRequirements.md +25 -25
- package/dist/services/window/windowService.html +10 -10
- package/dist/services/window/windowService.js +1 -1
- package/dist/services/workspace/dev-docs/importExportFormat.md +51 -51
- package/dist/services/workspace/dev-docs/remotelyPersistedWorkspaces.md +62 -62
- package/dist/services/workspace/workspace.html +18 -18
- package/dist/services/workspace/workspace.schema.json +48 -48
- package/dist/services/workspace/workspaceService.js +1 -1
- package/package.json +1 -1
- package/tsconfig.json +23 -23
- package/types/index.d.ts +40 -55
- package/types/index.tsbuildinfo +1 -1
- package/types.tsconfig.json +15 -15
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see storageService.js.LICENSE.txt */
|
|
2
|
-
(()=>{var e={57664:(e,t,n)=>{"use strict";function r(e,...t){return(...n)=>e(...t,...n)}function o(e){return function(...t){var n=t.pop();return e.call(this,t,n)}}n.r(t),n.d(t,{default:()=>ht,apply:()=>r,applyEach:()=>R,applyEachSeries:()=>j,asyncify:()=>l,auto:()=>P,autoInject:()=>B,cargo:()=>q,cargoQueue:()=>z,compose:()=>J,concat:()=>X,concatLimit:()=>K,concatSeries:()=>Z,constant:()=>ee,detect:()=>ne,detectLimit:()=>re,detectSeries:()=>oe,dir:()=>se,doUntil:()=>ue,doWhilst:()=>ae,each:()=>le,eachLimit:()=>fe,eachOf:()=>T,eachOfLimit:()=>E,eachOfSeries:()=>L,eachSeries:()=>de,ensureAsync:()=>pe,every:()=>he,everyLimit:()=>ye,everySeries:()=>ge,filter:()=>we,filterLimit:()=>_e,filterSeries:()=>Se,forever:()=>Ce,groupBy:()=>Ae,groupByLimit:()=>Ee,groupBySeries:()=>Oe,log:()=>Te,map:()=>I,mapLimit:()=>Q,mapSeries:()=>x,mapValues:()=>Re,mapValuesLimit:()=>Ie,mapValuesSeries:()=>Le,memoize:()=>xe,nextTick:()=>je,parallel:()=>Ne,parallelLimit:()=>Pe,priorityQueue:()=>$e,queue:()=>De,race:()=>Be,reduce:()=>G,reduceRight:()=>Ue,reflect:()=>Ve,reflectAll:()=>He,reject:()=>ze,rejectLimit:()=>Ge,rejectSeries:()=>Ye,retry:()=>Qe,retryable:()=>Xe,seq:()=>Y,series:()=>Ze,setImmediate:()=>c,some:()=>et,someLimit:()=>tt,someSeries:()=>nt,sortBy:()=>rt,timeout:()=>ot,times:()=>st,timesLimit:()=>it,timesSeries:()=>at,transform:()=>ut,tryEach:()=>ct,unmemoize:()=>lt,until:()=>dt,waterfall:()=>pt,whilst:()=>ft,all:()=>he,allLimit:()=>ye,allSeries:()=>ge,any:()=>et,anyLimit:()=>tt,anySeries:()=>nt,find:()=>ne,findLimit:()=>re,findSeries:()=>oe,flatMap:()=>X,flatMapLimit:()=>K,flatMapSeries:()=>Z,forEach:()=>le,forEachSeries:()=>de,forEachLimit:()=>fe,forEachOf:()=>T,forEachOfSeries:()=>L,forEachOfLimit:()=>E,inject:()=>G,foldl:()=>G,foldr:()=>Ue,select:()=>we,selectLimit:()=>_e,selectSeries:()=>Se,wrapSync:()=>l,during:()=>ft,doDuring:()=>ae});var i="function"==typeof setImmediate&&setImmediate,s="object"==typeof process&&"function"==typeof process.nextTick;function a(e){setTimeout(e,0)}function u(e){return(t,...n)=>e((()=>t(...n)))}var c=u(i?setImmediate:s?process.nextTick:a);function l(e){return p(e)?function(...t){const n=t.pop();return f(e.apply(this,t),n)}:o((function(t,n){var r;try{r=e.apply(this,t)}catch(e){return n(e)}if(r&&"function"==typeof r.then)return f(r,n);n(null,r)}))}function f(e,t){return e.then((e=>{d(t,null,e)}),(e=>{d(t,e&&e.message?e:new Error(e))}))}function d(e,t,n){try{e(t,n)}catch(e){c((e=>{throw e}),e)}}function p(e){return"AsyncFunction"===e[Symbol.toStringTag]}function h(e){if("function"!=typeof e)throw new Error("expected a function");return p(e)?l(e):e}function y(e,t=e.length){if(!t)throw new Error("arity is undefined");return function(...n){return"function"==typeof n[t-1]?e.apply(this,n):new Promise(((r,o)=>{n[t-1]=(e,...t)=>{if(e)return o(e);r(t.length>1?t:t[0])},e.apply(this,n)}))}}function g(e){return function(t,...n){return y((function(r){var o=this;return e(t,((e,t)=>{h(e).apply(o,n.concat(t))}),r)}))}}function m(e,t,n,r){t=t||[];var o=[],i=0,s=h(n);return e(t,((e,t,n)=>{var r=i++;s(e,((e,t)=>{o[r]=t,n(e)}))}),(e=>{r(e,o)}))}function v(e){return e&&"number"==typeof e.length&&e.length>=0&&e.length%1==0}const b={};function w(e){function t(...t){if(null!==e){var n=e;e=null,n.apply(this,t)}}return Object.assign(t,e),t}function _(e){return function(...t){if(null===e)throw new Error("Callback was already called.");var n=e;e=null,n.apply(this,t)}}function S(e,t,n,r){let o=!1,i=!1,s=!1,a=0,u=0;function c(){a>=t||s||o||(s=!0,e.next().then((({value:e,done:t})=>{if(!i&&!o){if(s=!1,t)return o=!0,void(a<=0&&r(null));a++,n(e,u,l),u++,c()}})).catch(f))}function l(e,t){if(a-=1,!i)return e?f(e):!1===e?(o=!0,void(i=!0)):t===b||o&&a<=0?(o=!0,r(null)):void c()}function f(e){i||(s=!1,o=!0,r(e))}c()}var C=e=>(t,n,r)=>{if(r=w(r),e<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!t)return r(null);if("AsyncGenerator"===t[Symbol.toStringTag])return S(t,e,n,r);if(function(e){return"function"==typeof e[Symbol.asyncIterator]}(t))return S(t[Symbol.asyncIterator](),e,n,r);var o=function(e){if(v(e))return function(e){var t=-1,n=e.length;return function(){return++t<n?{value:e[t],key:t}:null}}(e);var t,n,r,o,i=function(e){return e[Symbol.iterator]&&e[Symbol.iterator]()}(e);return i?function(e){var t=-1;return function(){var n=e.next();return n.done?null:(t++,{value:n.value,key:t})}}(i):(n=(t=e)?Object.keys(t):[],r=-1,o=n.length,function(){var e=n[++r];return r<o?{value:t[e],key:e}:null})}(t),i=!1,s=!1,a=0,u=!1;function c(e,t){if(!s)if(a-=1,e)i=!0,r(e);else if(!1===e)i=!0,s=!0;else{if(t===b||i&&a<=0)return i=!0,r(null);u||l()}}function l(){for(u=!0;a<e&&!i;){var t=o();if(null===t)return i=!0,void(a<=0&&r(null));a+=1,n(t.value,t.key,_(c))}u=!1}l()},E=y((function(e,t,n,r){return C(t)(e,h(n),r)}),4);function A(e,t,n){n=w(n);var r=0,o=0,{length:i}=e,s=!1;function a(e,t){!1===e&&(s=!0),!0!==s&&(e?n(e):++o!==i&&t!==b||n(null))}for(0===i&&n(null);r<i;r++)t(e[r],r,_(a))}function O(e,t,n){return E(e,1/0,t,n)}var T=y((function(e,t,n){return(v(e)?A:O)(e,h(t),n)}),3),I=y((function(e,t,n){return m(T,e,t,n)}),3),R=g(I),L=y((function(e,t,n){return E(e,1,t,n)}),3),x=y((function(e,t,n){return m(L,e,t,n)}),3),j=g(x);const k=Symbol("promiseCallback");function N(){let e,t;function n(n,...r){if(n)return t(n);e(r.length>1?r:r[0])}return n[k]=new Promise(((n,r)=>{e=n,t=r})),n}function P(e,t,n){"number"!=typeof t&&(n=t,t=null),n=w(n||N());var r=Object.keys(e).length;if(!r)return n(null);t||(t=r);var o={},i=0,s=!1,a=!1,u=Object.create(null),c=[],l=[],f={};function d(e,t){c.push((()=>function(e,t){if(!a){var r=_(((t,...r)=>{if(i--,!1!==t)if(r.length<2&&([r]=r),t){var c={};if(Object.keys(o).forEach((e=>{c[e]=o[e]})),c[e]=r,a=!0,u=Object.create(null),s)return;n(t,c)}else o[e]=r,(u[e]||[]).forEach((e=>e())),p();else s=!0}));i++;var c=h(t[t.length-1]);t.length>1?c(o,r):c(r)}}(e,t)))}function p(){if(!s){if(0===c.length&&0===i)return n(null,o);for(;c.length&&i<t;)c.shift()()}}function y(t){var n=[];return Object.keys(e).forEach((r=>{const o=e[r];Array.isArray(o)&&o.indexOf(t)>=0&&n.push(r)})),n}return Object.keys(e).forEach((t=>{var n=e[t];if(!Array.isArray(n))return d(t,[n]),void l.push(t);var r=n.slice(0,n.length-1),o=r.length;if(0===o)return d(t,n),void l.push(t);f[t]=o,r.forEach((i=>{if(!e[i])throw new Error("async.auto task `"+t+"` has a non-existent dependency `"+i+"` in "+r.join(", "));var s,a;(a=u[s=i])||(a=u[s]=[]),a.push((()=>{0==--o&&d(t,n)}))}))})),function(){for(var e=0;l.length;)e++,y(l.pop()).forEach((e=>{0==--f[e]&&l.push(e)}));if(e!==r)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}(),p(),n[k]}var D=/^(?:async\s+)?(?:function)?\s*\w*\s*\(\s*([^)]+)\s*\)(?:\s*{)/,M=/^(?:async\s+)?\(?\s*([^)=]+)\s*\)?(?:\s*=>)/,F=/,/,W=/(=.+)?(\s*)$/,$=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm;function B(e,t){var n={};return Object.keys(e).forEach((t=>{var r,o=e[t],i=p(o),s=!i&&1===o.length||i&&0===o.length;if(Array.isArray(o))r=[...o],o=r.pop(),n[t]=r.concat(r.length>0?a:o);else if(s)n[t]=o;else{if(r=function(e){const t=e.toString().replace($,"");let n=t.match(D);if(n||(n=t.match(M)),!n)throw new Error("could not parse args in autoInject\nSource:\n"+t);let[,r]=n;return r.replace(/\s/g,"").split(F).map((e=>e.replace(W,"").trim()))}(o),0===o.length&&!i&&0===r.length)throw new Error("autoInject task functions require explicit parameters.");i||r.pop(),n[t]=r.concat(a)}function a(e,t){var n=r.map((t=>e[t]));n.push(t),h(o)(...n)}})),P(n,t)}class U{constructor(){this.head=this.tail=null,this.length=0}removeLink(e){return e.prev?e.prev.next=e.next:this.head=e.next,e.next?e.next.prev=e.prev:this.tail=e.prev,e.prev=e.next=null,this.length-=1,e}empty(){for(;this.head;)this.shift();return this}insertAfter(e,t){t.prev=e,t.next=e.next,e.next?e.next.prev=t:this.tail=t,e.next=t,this.length+=1}insertBefore(e,t){t.prev=e.prev,t.next=e,e.prev?e.prev.next=t:this.head=t,e.prev=t,this.length+=1}unshift(e){this.head?this.insertBefore(this.head,e):V(this,e)}push(e){this.tail?this.insertAfter(this.tail,e):V(this,e)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var e=this.head;e;)yield e.data,e=e.next}remove(e){for(var t=this.head;t;){var{next:n}=t;e(t)&&this.removeLink(t),t=n}return this}}function V(e,t){e.length=1,e.head=e.tail=t}function H(e,t,n){if(null==t)t=1;else if(0===t)throw new RangeError("Concurrency must not be zero");var r=h(e),o=0,i=[];const s={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function a(e,t){return e?t?void(s[e]=s[e].filter((e=>e!==t))):s[e]=[]:Object.keys(s).forEach((e=>s[e]=[]))}function u(e,...t){s[e].forEach((e=>e(...t)))}var l=!1;function f(e,t,n,r){if(null!=r&&"function"!=typeof r)throw new Error("task callback must be a function");var o,i;function s(e,...t){return e?n?i(e):o():t.length<=1?o(t[0]):void o(t)}m.started=!0;var a={data:e,callback:n?s:r||s};if(t?m._tasks.unshift(a):m._tasks.push(a),l||(l=!0,c((()=>{l=!1,m.process()}))),n||!r)return new Promise(((e,t)=>{o=e,i=t}))}function d(e){return function(t,...n){o-=1;for(var r=0,s=e.length;r<s;r++){var a=e[r],c=i.indexOf(a);0===c?i.shift():c>0&&i.splice(c,1),a.callback(t,...n),null!=t&&u("error",t,a.data)}o<=m.concurrency-m.buffer&&u("unsaturated"),m.idle()&&u("drain"),m.process()}}function p(e){return!(0!==e.length||!m.idle()||(c((()=>u("drain"))),0))}const y=e=>t=>{if(!t)return new Promise(((t,n)=>{!function(e,r){const o=(...r)=>{a(e,o),((e,r)=>{if(e)return n(e);t(r)})(...r)};s[e].push(o)}(e)}));a(e),function(e,t){s[e].push(t)}(e,t)};var g=!1,m={_tasks:new U,*[Symbol.iterator](){yield*m._tasks[Symbol.iterator]()},concurrency:t,payload:n,buffer:t/4,started:!1,paused:!1,push(e,t){if(Array.isArray(e)){if(p(e))return;return e.map((e=>f(e,!1,!1,t)))}return f(e,!1,!1,t)},pushAsync(e,t){if(Array.isArray(e)){if(p(e))return;return e.map((e=>f(e,!1,!0,t)))}return f(e,!1,!0,t)},kill(){a(),m._tasks.empty()},unshift(e,t){if(Array.isArray(e)){if(p(e))return;return e.map((e=>f(e,!0,!1,t)))}return f(e,!0,!1,t)},unshiftAsync(e,t){if(Array.isArray(e)){if(p(e))return;return e.map((e=>f(e,!0,!0,t)))}return f(e,!0,!0,t)},remove(e){m._tasks.remove(e)},process(){if(!g){for(g=!0;!m.paused&&o<m.concurrency&&m._tasks.length;){var e=[],t=[],n=m._tasks.length;m.payload&&(n=Math.min(n,m.payload));for(var s=0;s<n;s++){var a=m._tasks.shift();e.push(a),i.push(a),t.push(a.data)}o+=1,0===m._tasks.length&&u("empty"),o===m.concurrency&&u("saturated");var c=_(d(e));r(t,c)}g=!1}},length:()=>m._tasks.length,running:()=>o,workersList:()=>i,idle:()=>m._tasks.length+o===0,pause(){m.paused=!0},resume(){!1!==m.paused&&(m.paused=!1,c(m.process))}};return Object.defineProperties(m,{saturated:{writable:!1,value:y("saturated")},unsaturated:{writable:!1,value:y("unsaturated")},empty:{writable:!1,value:y("empty")},drain:{writable:!1,value:y("drain")},error:{writable:!1,value:y("error")}}),m}function q(e,t){return H(e,1,t)}function z(e,t,n){return H(e,t,n)}var G=y((function(e,t,n,r){r=w(r);var o=h(n);return L(e,((e,n,r)=>{o(t,e,((e,n)=>{t=n,r(e)}))}),(e=>r(e,t)))}),4);function Y(...e){var t=e.map(h);return function(...e){var n=this,r=e[e.length-1];return"function"==typeof r?e.pop():r=N(),G(t,e,((e,t,r)=>{t.apply(n,e.concat(((e,...t)=>{r(e,t)})))}),((e,t)=>r(e,...t))),r[k]}}function J(...e){return Y(...e.reverse())}var Q=y((function(e,t,n,r){return m(C(t),e,n,r)}),4),K=y((function(e,t,n,r){var o=h(n);return Q(e,t,((e,t)=>{o(e,((e,...n)=>e?t(e):t(e,n)))}),((e,t)=>{for(var n=[],o=0;o<t.length;o++)t[o]&&(n=n.concat(...t[o]));return r(e,n)}))}),4),X=y((function(e,t,n){return K(e,1/0,t,n)}),3),Z=y((function(e,t,n){return K(e,1,t,n)}),3);function ee(...e){return function(...t){return t.pop()(null,...e)}}function te(e,t){return(n,r,o,i)=>{var s,a=!1;const u=h(o);n(r,((n,r,o)=>{u(n,((r,i)=>r||!1===r?o(r):e(i)&&!s?(a=!0,s=t(!0,n),o(null,b)):void o()))}),(e=>{if(e)return i(e);i(null,a?s:t(!1))}))}}var ne=y((function(e,t,n){return te((e=>e),((e,t)=>t))(T,e,t,n)}),3),re=y((function(e,t,n,r){return te((e=>e),((e,t)=>t))(C(t),e,n,r)}),4),oe=y((function(e,t,n){return te((e=>e),((e,t)=>t))(C(1),e,t,n)}),3);function ie(e){return(t,...n)=>h(t)(...n,((t,...n)=>{"object"==typeof console&&(t?console.error&&console.error(t):console[e]&&n.forEach((t=>console[e](t))))}))}var se=ie("dir"),ae=y((function(e,t,n){n=_(n);var r,o=h(e),i=h(t);function s(e,...t){if(e)return n(e);!1!==e&&(r=t,i(...t,a))}function a(e,t){return e?n(e):!1!==e?t?void o(s):n(null,...r):void 0}return a(null,!0)}),3);function ue(e,t,n){const r=h(t);return ae(e,((...e)=>{const t=e.pop();r(...e,((e,n)=>t(e,!n)))}),n)}function ce(e){return(t,n,r)=>e(t,r)}var le=y((function(e,t,n){return T(e,ce(h(t)),n)}),3),fe=y((function(e,t,n,r){return C(t)(e,ce(h(n)),r)}),4),de=y((function(e,t,n){return fe(e,1,t,n)}),3);function pe(e){return p(e)?e:function(...t){var n=t.pop(),r=!0;t.push(((...e)=>{r?c((()=>n(...e))):n(...e)})),e.apply(this,t),r=!1}}var he=y((function(e,t,n){return te((e=>!e),(e=>!e))(T,e,t,n)}),3),ye=y((function(e,t,n,r){return te((e=>!e),(e=>!e))(C(t),e,n,r)}),4),ge=y((function(e,t,n){return te((e=>!e),(e=>!e))(L,e,t,n)}),3);function me(e,t,n,r){var o=new Array(t.length);e(t,((e,t,r)=>{n(e,((e,n)=>{o[t]=!!n,r(e)}))}),(e=>{if(e)return r(e);for(var n=[],i=0;i<t.length;i++)o[i]&&n.push(t[i]);r(null,n)}))}function ve(e,t,n,r){var o=[];e(t,((e,t,r)=>{n(e,((n,i)=>{if(n)return r(n);i&&o.push({index:t,value:e}),r(n)}))}),(e=>{if(e)return r(e);r(null,o.sort(((e,t)=>e.index-t.index)).map((e=>e.value)))}))}function be(e,t,n,r){return(v(t)?me:ve)(e,t,h(n),r)}var we=y((function(e,t,n){return be(T,e,t,n)}),3),_e=y((function(e,t,n,r){return be(C(t),e,n,r)}),4),Se=y((function(e,t,n){return be(L,e,t,n)}),3),Ce=y((function(e,t){var n=_(t),r=h(pe(e));return function e(t){if(t)return n(t);!1!==t&&r(e)}()}),2),Ee=y((function(e,t,n,r){var o=h(n);return Q(e,t,((e,t)=>{o(e,((n,r)=>n?t(n):t(n,{key:r,val:e})))}),((e,t)=>{for(var n={},{hasOwnProperty:o}=Object.prototype,i=0;i<t.length;i++)if(t[i]){var{key:s}=t[i],{val:a}=t[i];o.call(n,s)?n[s].push(a):n[s]=[a]}return r(e,n)}))}),4);function Ae(e,t,n){return Ee(e,1/0,t,n)}function Oe(e,t,n){return Ee(e,1,t,n)}var Te=ie("log"),Ie=y((function(e,t,n,r){r=w(r);var o={},i=h(n);return C(t)(e,((e,t,n)=>{i(e,t,((e,r)=>{if(e)return n(e);o[t]=r,n(e)}))}),(e=>r(e,o)))}),4);function Re(e,t,n){return Ie(e,1/0,t,n)}function Le(e,t,n){return Ie(e,1,t,n)}function xe(e,t=(e=>e)){var n=Object.create(null),r=Object.create(null),i=h(e),s=o(((e,o)=>{var s=t(...e);s in n?c((()=>o(null,...n[s]))):s in r?r[s].push(o):(r[s]=[o],i(...e,((e,...t)=>{e||(n[s]=t);var o=r[s];delete r[s];for(var i=0,a=o.length;i<a;i++)o[i](e,...t)})))}));return s.memo=n,s.unmemoized=e,s}var je=u(s?process.nextTick:i?setImmediate:a),ke=y(((e,t,n)=>{var r=v(t)?[]:{};e(t,((e,t,n)=>{h(e)(((e,...o)=>{o.length<2&&([o]=o),r[t]=o,n(e)}))}),(e=>n(e,r)))}),3);function Ne(e,t){return ke(T,e,t)}function Pe(e,t,n){return ke(C(t),e,n)}function De(e,t){var n=h(e);return H(((e,t)=>{n(e[0],t)}),t,1)}class Me{constructor(){this.heap=[],this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){return this.heap=[],this}percUp(e){let t;for(;e>0&&We(this.heap[e],this.heap[t=Fe(e)]);){let n=this.heap[e];this.heap[e]=this.heap[t],this.heap[t]=n,e=t}}percDown(e){let t;for(;(t=1+(e<<1))<this.heap.length&&(t+1<this.heap.length&&We(this.heap[t+1],this.heap[t])&&(t+=1),!We(this.heap[e],this.heap[t]));){let n=this.heap[e];this.heap[e]=this.heap[t],this.heap[t]=n,e=t}}push(e){e.pushCount=++this.pushCount,this.heap.push(e),this.percUp(this.heap.length-1)}unshift(e){return this.heap.push(e)}shift(){let[e]=this.heap;return this.heap[0]=this.heap[this.heap.length-1],this.heap.pop(),this.percDown(0),e}toArray(){return[...this]}*[Symbol.iterator](){for(let e=0;e<this.heap.length;e++)yield this.heap[e].data}remove(e){let t=0;for(let n=0;n<this.heap.length;n++)e(this.heap[n])||(this.heap[t]=this.heap[n],t++);this.heap.splice(t);for(let e=Fe(this.heap.length-1);e>=0;e--)this.percDown(e);return this}}function Fe(e){return(e+1>>1)-1}function We(e,t){return e.priority!==t.priority?e.priority<t.priority:e.pushCount<t.pushCount}function $e(e,t){var n=De(e,t);return n._tasks=new Me,n.push=function(e,t=0,r=(()=>{})){if("function"!=typeof r)throw new Error("task callback must be a function");if(n.started=!0,Array.isArray(e)||(e=[e]),0===e.length&&n.idle())return c((()=>n.drain()));for(var o=0,i=e.length;o<i;o++){var s={data:e[o],priority:t,callback:r};n._tasks.push(s)}c(n.process)},delete n.unshift,n}var Be=y((function(e,t){if(t=w(t),!Array.isArray(e))return t(new TypeError("First argument to race must be an array of functions"));if(!e.length)return t();for(var n=0,r=e.length;n<r;n++)h(e[n])(t)}),2);function Ue(e,t,n,r){var o=[...e].reverse();return G(o,t,n,r)}function Ve(e){var t=h(e);return o((function(e,n){return e.push(((e,...t)=>{let r={};if(e&&(r.error=e),t.length>0){var o=t;t.length<=1&&([o]=t),r.value=o}n(null,r)})),t.apply(this,e)}))}function He(e){var t;return Array.isArray(e)?t=e.map(Ve):(t={},Object.keys(e).forEach((n=>{t[n]=Ve.call(this,e[n])}))),t}function qe(e,t,n,r){const o=h(n);return be(e,t,((e,t)=>{o(e,((e,n)=>{t(e,!n)}))}),r)}var ze=y((function(e,t,n){return qe(T,e,t,n)}),3),Ge=y((function(e,t,n,r){return qe(C(t),e,n,r)}),4),Ye=y((function(e,t,n){return qe(L,e,t,n)}),3);function Je(e){return function(){return e}}function Qe(e,t,n){var r={times:5,intervalFunc:Je(0)};if(arguments.length<3&&"function"==typeof e?(n=t||N(),t=e):(Ke(r,e),n=n||N()),"function"!=typeof t)throw new Error("Invalid arguments for async.retry");var o=h(t),i=1;function s(){o(((e,...t)=>{!1!==e&&(e&&i++<r.times&&("function"!=typeof r.errorFilter||r.errorFilter(e))?setTimeout(s,r.intervalFunc(i-1)):n(e,...t))}))}return s(),n[k]}function Ke(e,t){if("object"==typeof t)e.times=+t.times||5,e.intervalFunc="function"==typeof t.interval?t.interval:Je(+t.interval||0),e.errorFilter=t.errorFilter;else{if("number"!=typeof t&&"string"!=typeof t)throw new Error("Invalid arguments for async.retry");e.times=+t||5}}function Xe(e,t){t||(t=e,e=null);let n=e&&e.arity||t.length;p(t)&&(n+=1);var r=h(t);return o(((t,o)=>{function i(e){r(...t,e)}return(t.length<n-1||null==o)&&(t.push(o),o=N()),e?Qe(e,i,o):Qe(i,o),o[k]}))}function Ze(e,t){return ke(L,e,t)}var et=y((function(e,t,n){return te(Boolean,(e=>e))(T,e,t,n)}),3),tt=y((function(e,t,n,r){return te(Boolean,(e=>e))(C(t),e,n,r)}),4),nt=y((function(e,t,n){return te(Boolean,(e=>e))(L,e,t,n)}),3),rt=y((function(e,t,n){var r=h(t);return I(e,((e,t)=>{r(e,((n,r)=>{if(n)return t(n);t(n,{value:e,criteria:r})}))}),((e,t)=>{if(e)return n(e);n(null,t.sort(o).map((e=>e.value)))}));function o(e,t){var n=e.criteria,r=t.criteria;return n<r?-1:n>r?1:0}}),3);function ot(e,t,n){var r=h(e);return o(((o,i)=>{var s,a=!1;o.push(((...e)=>{a||(i(...e),clearTimeout(s))})),s=setTimeout((function(){var t=e.name||"anonymous",r=new Error('Callback function "'+t+'" timed out.');r.code="ETIMEDOUT",n&&(r.info=n),a=!0,i(r)}),t),r(...o)}))}function it(e,t,n,r){var o=h(n);return Q(function(e){for(var t=Array(e);e--;)t[e]=e;return t}(e),t,o,r)}function st(e,t,n){return it(e,1/0,t,n)}function at(e,t,n){return it(e,1,t,n)}function ut(e,t,n,r){arguments.length<=3&&"function"==typeof t&&(r=n,n=t,t=Array.isArray(e)?[]:{}),r=w(r||N());var o=h(n);return T(e,((e,n,r)=>{o(t,e,n,r)}),(e=>r(e,t))),r[k]}var ct=y((function(e,t){var n,r=null;return de(e,((e,t)=>{h(e)(((e,...o)=>{if(!1===e)return t(e);o.length<2?[n]=o:n=o,r=e,t(e?null:{})}))}),(()=>t(r,n)))}));function lt(e){return(...t)=>(e.unmemoized||e)(...t)}var ft=y((function(e,t,n){n=_(n);var r=h(t),o=h(e),i=[];function s(e,...t){if(e)return n(e);i=t,!1!==e&&o(a)}function a(e,t){return e?n(e):!1!==e?t?void r(s):n(null,...i):void 0}return o(a)}),3);function dt(e,t,n){const r=h(e);return ft((e=>r(((t,n)=>e(t,!n)))),t,n)}var pt=y((function(e,t){if(t=w(t),!Array.isArray(e))return t(new Error("First argument to waterfall must be an array of functions"));if(!e.length)return t();var n=0;function r(t){h(e[n++])(...t,_(o))}function o(o,...i){if(!1!==o)return o||n===e.length?t(o,...i):void r(i)}r([])}));const ht={apply:r,applyEach:R,applyEachSeries:j,asyncify:l,auto:P,autoInject:B,cargo:q,cargoQueue:z,compose:J,concat:X,concatLimit:K,concatSeries:Z,constant:ee,detect:ne,detectLimit:re,detectSeries:oe,dir:se,doUntil:ue,doWhilst:ae,each:le,eachLimit:fe,eachOf:T,eachOfLimit:E,eachOfSeries:L,eachSeries:de,ensureAsync:pe,every:he,everyLimit:ye,everySeries:ge,filter:we,filterLimit:_e,filterSeries:Se,forever:Ce,groupBy:Ae,groupByLimit:Ee,groupBySeries:Oe,log:Te,map:I,mapLimit:Q,mapSeries:x,mapValues:Re,mapValuesLimit:Ie,mapValuesSeries:Le,memoize:xe,nextTick:je,parallel:Ne,parallelLimit:Pe,priorityQueue:$e,queue:De,race:Be,reduce:G,reduceRight:Ue,reflect:Ve,reflectAll:He,reject:ze,rejectLimit:Ge,rejectSeries:Ye,retry:Qe,retryable:Xe,seq:Y,series:Ze,setImmediate:c,some:et,someLimit:tt,someSeries:nt,sortBy:rt,timeout:ot,times:st,timesLimit:it,timesSeries:at,transform:ut,tryEach:ct,unmemoize:lt,until:dt,waterfall:pt,whilst:ft,all:he,allLimit:ye,allSeries:ge,any:et,anyLimit:tt,anySeries:nt,find:ne,findLimit:re,findSeries:oe,flatMap:X,flatMapLimit:K,flatMapSeries:Z,forEach:le,forEachSeries:de,forEachLimit:fe,forEachOf:T,forEachOfSeries:L,forEachOfLimit:E,inject:G,foldl:G,foldr:Ue,select:we,selectLimit:_e,selectSeries:Se,wrapSync:l,during:ft,doDuring:ae}},23471:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var a=i?Object.getOwnPropertyDescriptor(e,s):null;a&&(a.get||a.set)?Object.defineProperty(r,s,a):r[s]=e[s]}return r.default=e,n&&n.set(e,r),r}(n(76420));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}t.default=class{constructor(){return this.callbacks={},this.adapters={},this.storageAdapters={},this.loadModel=this.loadModel.bind(this),this.loaded=this.loaded.bind(this),this}loadModel(e,t,n){this.callbacks[e]=n,r.injectJS(t,Function.prototype)}loaded(e,t){this.adapters[e]=t,this.storageAdapters[e]=t,this.callbacks[e]?(this.callbacks[e](),delete this.callbacks[e]):console.info("`.loaded` invoked on Adapter Receiver by a storage adapter not loaded dynamically",e)}}},33998:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigUtilInstance=void 0;var r=s(n(72551)),o=n(51742),i=s(n(53059));function s(e){return e&&e.__esModule?e:{default:e}}const a=new function(){const e=this;this.resolveConfigVariables=function(e,t){let n=0,o=0,i=!0;function s(e){const t=e.split(/[/\\:?=&\s]/);for(let n=0;n<t.length;n++)if("$"===t[n][0]){const o=t[n].substring(1);let s=a(o);if(void 0!==s){const a=e.replace(t[n],s);r.default.system.verbose("forceObjectsToLogger","ConfigUtil.resolveConfigVariables:resolveString configString",t[n],o,s,"old value=",e,"value=",a),i=!0,e=a}}return e}function a(t){let n=e[t];return void 0===n&&(e.custom?(n=e.custom[t],void 0===n&&r.default.system.warn("ConfigUtil.resolveString",`Missing [${t}] variable from finsemble.custom configuration object`)):r.default.system.error("ConfigUtil.resolveString",`Missing "custom" node from finsemble configuration - unable to get variable resoution for variable: ${t}`)),n}function u(e,t,n){r.default.system.verbose("forceObjectsToLogger","resolveArray","pass",t,"recursionLevel",n,"configArray:",e);for(let r=0;r<e.length;r++){const o=e[r];"string"==typeof o&&o.indexOf("$")>-1?e[r]=s(o):o instanceof Array?u(o,t,n+1):"object"==typeof o&&c(o,t,n+1)}}function c(e,t,n){e=e||{},r.default.system.verbose("forceObjectsToLogger","ConfigUtil.resolveConfigVariables:resolveObject","pass",t,"recursionLevel",n,"configObject:",e),Object.keys(e).forEach((r=>{const o=e[r];"string"==typeof o&&o.indexOf("$")>-1?e[r]=s(o):o instanceof Array?u(o,t,n+1):"object"==typeof o&&c(o,t,n+1)}))}for(;i&&o++<100;)i=!1,c(t,++n,1);o>=100&&r.default.system.error("forceObjectsToLogger","resolveConfigVariables exceeded maximum passes so continuing -- probably a recursive macro definitions. Look in this config for unresolved macro variables",e)},this.getExpandedRawManifest=function(t,n){function i(t,s,a){r.default.system.debug("forceObjectsToLogger","ConfigUtil.getExpandedRawManifest:getRawManifest",s,a),s.getManifest((n=>{r.default.system.debug("forceObjectsToLogger","ConfigUtil.getExpandedRawManifest:getExpandedRawManifest: manifest retrieved. Pre-variable resolution",n),e.resolveConfigVariables(n.finsemble,n.finsemble),r.default.system.debug("forceObjectsToLogger","ConfigUtil.getExpandedRawManifest:getExpandedRawManifest:Complete. post-variable resolution",n),t(n)}),(e=>{e&&(r.default.system.error("ConfigUtil.getExpandedRawManifest:application.getManifest:err",e),n&&n()),s.getParentUuid((e=>{const n=o.System.Application.wrap(e);r.default.system.debug("forceObjectsToLogger","uuid",e,"parentApplication",n),a<10?i(t,n,++a):t("could not find manifest in parent applications")}))}))}r.default.system.debug("ConfigUtil.getExpandedRawManifest starting"),o.System.ready((()=>{const e=o.System.Application.getCurrent();i(t,e,1)}))},this.readConfigFile=function(e,t){r.default.system.debug(`fetching ${e}`),fetch(e,{credentials:"include",cache:"no-cache"}).then((e=>e.json())).catch((n=>{t(`Failure importing ${e}: ${n}`,null)})).then((e=>{t(null,e)}))},this.getInitialManifest=function(t){o.System.ready((()=>{o.System.Application.getCurrent().getManifest((n=>{n.finsemble=n.finsemble||{},e.resolveConfigVariables(n.finsemble,n.finsemble),n.finsemble.applicationRoot||r.default.system.error("FATAL ERROR: applicationRoot was not defined in manifest file.");const o=`${n.finsemble.moduleRoot}/configs/core/config.json`;e.readConfigFile(o,((i,s)=>{i?r.default.system.error(`ConfigUtil.getInitialManifest:getCoreConfig:failed importing into finsemble config. $moduleRoot=${n.finsemble.moduleRoot}; Full Path=${o}`,i):(Object.keys(s).forEach((e=>{if("importConfig"===e){n.finsemble.importConfig=n.finsemble.importConfig||[];for(let e=0;e<s.importConfig.length;e++)n.finsemble.importConfig.unshift(s.importConfig[e])}else if("importThirdPartyConfig"===e){n.finsemble.importThirdPartyConfig=n.finsemble.importThirdPartyConfig||[];for(let e=0;e<s.importThirdPartyConfig.length;e++)n.finsemble.importThirdPartyConfig.unshift(s.importThirdPartyConfig[e])}else n.finsemble[e]=s[e]})),e.resolveConfigVariables(n.finsemble,n.finsemble),r.default.system.debug("forceObjectsToLogger","ConfigUtil.getInitialManifest:getCoreConfig:Initial Manifest after variables Resolved",n)),t(n)}))}))}))},this.promptAndSaveJSONToLocalFile=function(e,t){r.default.system.debug("saveJSONToLocalFile",e,t);const n=JSON.stringify(t,null,"\t"),o=`data:application/json;charset=utf-8,${encodeURIComponent(n)}`,i=`${e}.json`,s=document.createElement("a");s.setAttribute("href",o),s.setAttribute("download",i),s.click()},this.configFormatForExport=function(e,t){r.default.system.debug("configFormatForExport starting",e,t);let n=i.default.cloneDeep(t);if("raw"===e);else if("all"===e)delete n.importConfig,delete n.comment;else if("application"===e)delete n.importConfig,delete n.comment,delete n.system,delete n.services;else if("workspace"===e)n={workspace:n};else if("workspaceTemplate"===e){const e={};e[n.name]=n,n={workspaceTemplates:e}}else"services"===e?n=n.services:"components"===e&&(n=n.components);return n},this.getDefault=function(e,t,n){let r=n;if(e){try{const n=t.split(".");let o=e;for(let e=1;e<n.length;e++)o=o[n[e]];r=o}catch(e){r=n}void 0===r&&(r=n)}return r},this.getFile=async function(e,t=Function.prototype){r.default.system.debug(`fetching import ${e}`);let n=null;return await fetch(e,{credentials:"include",cache:"no-cache"}).then((e=>e.json())).catch((n=>{t(`failure importing ${e}: ${n}`,null)})).then((e=>{t(null,e),n=e})),n}};t.ConfigUtilInstance=a},93802:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(5939),o=u(n(72551)),i=u(n(88021)),s=u(n(71879)),a=n(24232);function u(e){return e&&e.__esModule?e:{default:e}}let c;class l extends r.EventEmitter{constructor(e,t,n){if(super(),!n||!n.System)throw new Error("Monitors class requires dependency injection. Ensure that System is being passed in.");({System:c}=n),this.cachedMonitorInfo=null,this.limitedMonitorRefreshQueue=new i.default({concurrency:1}),this.bindAllFunctions(),this.limitedMonitorRefreshQueue.add((()=>this.refreshMonitors(e))),c.addEventListener("monitor-info-changed",(()=>{this.limitedMonitorRefreshQueue.add((()=>this.refreshMonitors(t)))})),c.addEventListener("session-changed",(e=>{e&&("object"!=typeof e||!e.hasOwnProperty("reason")||"unlock"!==e.reason&&"remote-connect"!==e.reason&&"unknown"!==e.reason)||this.limitedMonitorRefreshQueue.add((()=>this.refreshMonitors(t)))}))}bindAllFunctions(){let e=this;for(let t of Object.getOwnPropertyNames(Object.getPrototypeOf(e))){let n=e[t];n instanceof Function&&n!==l&&(e[t]=e[t].bind(e))}}asyncIt(e,t){return t(e),e}rationalizeMonitor(e){e.monitorRect.width=e.monitorRect.right-e.monitorRect.left,e.monitorRect.height=e.monitorRect.bottom-e.monitorRect.top,e.availableRect.width=e.availableRect.right-e.availableRect.left,e.availableRect.height=e.availableRect.bottom-e.availableRect.top}calculateMonitorScale(e,t){return(t.right-t.left)/(e.right-e.left)}monitorInfoIsChanged(e,t){if(!e||!t)return!0;if(e.nonPrimaryMonitors.length!==t.nonPrimaryMonitors.length)return!0;if(!(0,a.checkIfBoundsAreEqual)(e.primaryMonitor.availableRect,t.primaryMonitor.availableRect))return!0;if(!(0,a.checkIfBoundsAreEqual)(e.primaryMonitor.monitorRect,t.primaryMonitor.monitorRect))return!0;e.nonPrimaryMonitors.sort(((e,t)=>e.deviceName>t.deviceName?1:e.deviceName<t.deviceName?-1:0)),t.nonPrimaryMonitors.sort(((e,t)=>e.deviceName>t.deviceName?1:e.deviceName<t.deviceName?-1:0));let n=!1;return e.nonPrimaryMonitors.forEach(((e,r)=>{const o=t.nonPrimaryMonitors[r];(0,a.checkIfBoundsAreEqual)(e.availableRect,o.availableRect)&&(0,a.checkIfBoundsAreEqual)(e.monitorRect,o.monitorRect)||(n=!0)})),n}async refreshMonitors(e=Function.prototype){this.limitedMonitorRefreshQueue.clear();const t=await c.getMonitorInfo();if(!this.monitorInfoIsChanged(this.cachedMonitorInfo,t))return o.default.system.info("Skipped refreshMonitors because monitors do not change."),e(this.allMonitors);this.allMonitors=[];let{primaryMonitor:n}=t;if(Object.entries(n).length){n.whichMonitor="primary",n.position=0,this.allMonitors.push(Object.assign({},n));for(let e=0;e<t.nonPrimaryMonitors.length;e++){let n=t.nonPrimaryMonitors[e];n.whichMonitor=e,n.position=e+1,this.allMonitors.push(n)}for(let e=0;e<this.allMonitors.length;e++){let t=this.allMonitors[e];this.rationalizeMonitor(t)}this.cachedMonitorInfo=(0,s.default)(t),e(this.allMonitors),this.ready=!0,1===this.limitedMonitorRefreshQueue.pending&&this.emit("monitors-changed",{monitors:this.allMonitors})}else o.default.system.info("There is no primary monitor in 'monitorInfo' - the system is still in the process of updating the monitor information. Returning from monitorsAndScaling -> refreshMonitors")}getAllMonitors(e=Function.prototype){return this.ready?this.asyncIt(JSON.parse(JSON.stringify(this.allMonitors)),e):e?void this.refreshMonitors(e):"not ready"}getMonitorFromScaledXY(e,t,n=Function.prototype){return new Promise((r=>{if(!this.ready)return this.refreshMonitors((()=>{this.getMonitorFromScaledXY(e,t,n)})),"not ready";let o=null;for(var i=this.allMonitors,s=0;s<i.length;s++){var a=i[s],{monitorRect:u}=a;if(e>=u.left&&e<u.right&&t>=u.top&&t<u.bottom){o=a;break}}r(o),n(o)}))}getMonitorFromUnscaledXY(e,t,n=Function.prototype){if(!this.ready)return this.refreshMonitors((()=>{this.getMonitorFromUnscaledXY(e,t,n)})),"not ready";for(var r=this.allMonitors,o=0;o<r.length;o++){var i=r[o],s=i.monitor.scaledRect;if(e>=s.left&&e<s.right&&t>=s.top&&t<s.bottom)return this.asyncIt(i,n)}return this.asyncIt(null,n)}async translatePointFromScaled(e,t=Function.prototype){if(!this.ready)return this.refreshMonitors((()=>{this.translatePointFromScaled(e,t)})),"not ready";var n;e.point?({point:n}=e):n=e;var{monitor:r}=e;r||(r=(await this.getMonitorFromScaledXY(n.x,n.y)).data);let o=null;if(r){var i=n.x-r.monitorRect.left,s=n.y-r.monitorRect.top,a=i*r.deviceScaleFactor,u=s*r.deviceScaleFactor;o={x:a+r.monitor.scaledRect.left,y:u+r.monitor.scaledRect.top}}return t(o),Promise.resolve(o)}translatePointToScaled(e,t=Function.prototype){if(!this.ready)return this.refreshMonitors((()=>{this.translatePointToScaled(e,t)})),"not ready";var n;e.point?({point:n}=e):n=e;var r=e.monitor||this.getMonitorFromUnscaledXY(n.x,n.y);if(!r)return this.asyncIt(null,t);var o=n.x-r.monitor.scaledRect.left,i=n.y-r.monitor.scaledRect.top,s=o/r.deviceScaleFactor,a=i/r.deviceScaleFactor,u={x:s+r.monitorRect.left,y:a+r.monitorRect.top};return this.asyncIt(u,t)}async translateRectToScaled(e,t=Function.prototype){let n;if(!this.ready)return this.refreshMonitors((()=>{this.translateRectToScaled(e,t)})),"not ready";var r=this.translatePointToScaled({x:e.left,y:e.top}),o=this.translatePointToScaled({x:e.right,y:e.bottom});return!r&&o&&(n=await this.getMonitorFromScaledXY(o),r=this.translatePointToScaled({monitor:n,point:{x:e.left,y:e.top}})),!o&&r&&(n=await this.getMonitorFromScaledXY(o),o=this.translatePointToScaled({monitor:n,point:{x:e.right,y:e.bottom}})),this.asyncIt({top:r?r.y:null,left:r?r.x:null,bottom:o?o.y:null,right:o?o.x:null,height:r&&o?o.y-r.y:null,width:r&&o?o.x-r.x:null},t)}translateRectFromScaled(e,t=Function.prototype){if(!this.ready)return this.refreshMonitors((()=>{this.translateRectFromScaled(e,t)})),"not ready";var n=this.translatePointFromScaled({x:e.left,y:e.top}),r=this.translatePointFromScaled({x:e.right,y:e.bottom});return!n&&r&&(n=this.translatePointFromScaled({monitor:this.getMonitorFromUnscaledXY(r),point:{x:e.left,y:e.top}})),!r&&n&&(r=this.translatePointFromScaled({monitor:this.getMonitorFromUnscaledXY(n),point:{x:e.right,y:e.bottom}})),this.asyncIt({top:n?n.y:null,left:n?n.x:null,bottom:r?r.y:null,right:r?r.x:null,height:n&&r?r.y-n.y:null,width:n&&r?r.x-n.x:null},t)}}var f=l;t.default=f},21014:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=new function(){let e=3;this.diagLevel=function(){return e},this.setDiagLevel=function(t){e=t},this.validationEnabled=function(){return e>=4}};t.default=n},73699:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(72551)),o=n(33998),i=n(51742),s=a(n(5020));function a(e){return e&&e.__esModule?e:{default:e}}let u=null;var c=new function(){const e={},t={};let a=null;this.getDefaultTemplateURL=function(e){a?setTimeout((()=>{e(a)}),0):(u||(u=n(70010).default),u.getValue({field:"finsemble"},((t,n)=>{a=o.ConfigUtilInstance.getDefault(n,"finsemble.notificationURL",`${n.moduleRoot}/components/system/notification/notification.html`),e(a)})))},this.alert=function(e,t,n,r,o){const i=this;o&&o.url?this.alertInternal(e,t,n,r,o,o.url):this.getDefaultTemplateURL((s=>{i.alertInternal(e,t,n,r,o,s)}))},this.alertInternal=function(n,o,a,u,c,l){let f=!1;const d=`UserNotification.alert.${a}`,p=(c=c||{}).duration||864e5;switch(o){case"ONCE-SINCE-STARTUP":d in e?f=!1:(f=!0,e[d]=!0);break;case"MAX-COUNT":{let e=0;const n=c.maxCount||1;d in t&&(e=t[d]),t[d]=++e,e<=n&&(f=!0);break}default:f=!0}if(r.default.log("UserNotification.alert",n,f,o,a,u,c),f){const e={url:l,message:u,timeout:p};s.default.systemLog({notification:!0},`Notification: ${u}`),new i.System.Notification(e)}}};t.default=c},13712:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(21014))&&r.__esModule?r:{default:r},i=new function(){function e(e,t,n){const r=function(){try{throw Error("")}catch(e){return e}}(),o=r.stack.split("\n")[5],i=o.indexOf("at "),s=o.slice(i+2,o.length),a=r.stack.split("\n")[6],u=a.indexOf("at "),c=a.slice(u+2,a.length);console.warn(`parameter validation failed: parameter ${e} is of type '${typeof t}' but should be of type '${n}' in${s} called by${c}`)}this.args=function(){let t=!0;if(o.default.validationEnabled()){const n=arguments.length;if((n+1)%2!=0)for(let r=0;r<n;r+=2){let n=!1;const o=arguments[r];let i=arguments[r+1];if("="===i.slice(-1)&&(i=i.slice(0,-1),n=!0),typeof o!==i&&!(n&&void 0===o||void 0!==o&&"any"===i)){e(r/2+1,o,i),t=!1;break}}else console.warn(`validate.args requires even number of parameters: ${JSON.stringify(arguments)}`)}return t},this.args2=function(){let t=!0;if(o.default.validationEnabled()){const n=arguments.length;if((n+1)%3!=0)for(let r=0;r<n;r+=3){let n=!1;const o=arguments[r],i=arguments[r+1];let s=arguments[r+2];if("="===s.slice(-1)&&(s=s.slice(0,-1),n=!0),typeof i!==s&&!(n&&void 0===i||void 0!==i&&"any"===s)){e(o,i,s),t=!1;break}}else console.warn(`validate.args requires even number of parameters: ${JSON.stringify(arguments)}`)}return t}};t.default=i},16769:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e){if(e)try{n.g.adapterReceiver?n.g.adapterReceiver.loaded(e[0],this):console.error("Global Adapter Receiver not found on the global object. Fatal error.")}catch(e){console.error("BaseStorage constructor",e)}this.setBaseName=function(e){this.baseName=e},this.setUser=function(e){this.userName=e},this.save=function(){console.warn("Save method not fulfilled in the active storage model.")},this.get=function(){console.warn("Get method not fulfilled in the active storage model.")},this.keys=function(){console.warn("Keys method not fulfilled in the active storage model.")},this.delete=function(){console.warn("Delete method not fulfilled in the active storage model.")},this.clearCache=function(){console.warn("Clear cache method not fulfilled in the active storage model.")},this.empty=function(){console.warn("Empty method not fulfilled in the active storage model.")},this.getMultiple=function(){},this.getCombinedKey=function(e,t){return`${e.baseName}:${e.userName}:${t.topic}:${t.key}`},this.getKeyPreface=function(e,t){let n=`${e.baseName}:${e.userName}:${t.topic}:`;return"keyPrefix"in t&&(n+=t.keyPrefix),n}}},48785:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(16769)),o=i(n(72551));function i(e){return e&&e.__esModule?e:{default:e}}const s=function(){r.default.call(this,arguments),this.save=function(e,t){o.default.system.debug("saving",e);const n=this.getCombinedKey(this,e);try{localStorage.setItem(n,JSON.stringify(e.value))}catch(t){o.default.system.error("Storage.saving Error",t,`key=${n}`,"value=",e.value)}return o.default.system.debug(`Storage.save for key=${n} with data=${e.value}`),t(null,{status:"success"})},this.get=function(e,t){const n=this.getCombinedKey(this,e);try{var r=JSON.parse(localStorage.getItem(n))}catch(e){o.default.system.error("Storage.getItem Error",e,`key=${n}`)}return o.default.system.debug(`Storage.getItem for key=${n} with data=${r}`),t(null,r)},this.keys=function(e,t){const n=[],r=this.getKeyPreface(this,e),i=new RegExp(`${r}.*`);for(let e=0,t=localStorage.length;e<t;++e){const t=localStorage.key(e);i.test(t)&&n.push(t)}return o.default.system.debug(`Storage.keys for keyPreface=${r} with keys=${n}`),t(null,n)},this.delete=function(e,t){const n=this.getCombinedKey(this,e);return localStorage.removeItem(n),o.default.system.debug(`Storage.delete for key=${n}`),t(null,{status:"success"})},this.clearCache=function(e,t){o.default.system.info("Local storage adapter, clear cache.");const n=[];for(let e=0;e<localStorage.length;e++)o.default.system.debug("localStorage.key(i):::",localStorage.key(e).substring(0,`${this.baseName}:${this.userName}`.length)),localStorage.key(e).substring(0,`${this.baseName}:${this.userName}`.length)===`${this.baseName}:${this.userName}`&&n.push(localStorage.key(e));for(let e=0;e<n.length;e++)o.default.system.debug("remove Iem",n[e]),localStorage.removeItem(n[e]);return t()},this.empty=function(e){return localStorage.clear(),o.default.system.debug("Storage.empty"),e(null,{status:"success"})},this.getMultiple=function(e,t){let n;const r=[];let i;for(n in localStorage)if(localStorage.hasOwnProperty(n)&&(n.match(e)||!e&&"string"==typeof n)){try{i=JSON.parse(localStorage.getItem(n))}catch(e){o.default.system.error("Storage.getMultiple Error",e,`key=${n}`)}r.push({key:n,val:i})}return o.default.system.debug("results",r),t(null,r)}};s.prototype=new r.default,new s("localStorage");var a=s;t.default=a},66772:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(75391)),o=s(n(16769)),i=s(n(72551));function s(e){return e&&e.__esModule?e:{default:e}}const a=function(){o.default.call(this,arguments),this.save=function(e,t){i.default.system.debug("redis-params",e),r.default.post("/redis").set("Content-Type","application/x-www-form-urlencoded").send({key:this.getCombinedKey(this,e),value:JSON.stringify(e.value)}).end(((e,n)=>t(e,n.body)))},this.get=function(e,t){r.default.get("/redis").query({key:this.getCombinedKey(this,e)}).end(((e,n)=>{const r=n.text?n.text:null;return t(e,JSON.parse(r))}))},this.keys=function(e,t){i.default.system.debug("call to keys",e);const n=this;r.default.get("/redis").query({keys:!0}).end(((r,o)=>{i.default.system.debug(`keys response:${JSON.stringify(o.text)}`);const s=[],a=n.getKeyPreface(n,e),u=new RegExp(`${a}.*`),c=JSON.parse(o.text);for(let e=0,t=c.length;e<t;++e){const t=c[e];i.default.system.debug(`keyPrefix=${a}`),u.test(t)&&s.push(t)}return i.default.system.debug(`Storage.keys for keyPreface=${a} with keys=${s}`),t(r,s)}))},this.delete=function(e,t){i.default.system.debug("call to delete",e),r.default.delete("/redis").query({key:this.getCombinedKey(this,e)}).end(((e,n)=>t(e,n.texts)))},this.clearCache=function(e,t){i.default.system.debug("call to delete",e),r.default.delete("/redis/user").query({key:`${this.baseName}:${this.userName}`}).end(((e,n)=>t(e,n.texts)))},this.empty=function(){return{status:"success"}},this.getMultiple=function(){}};a.prototype=new o.default,new a("redis");var u=a;t.default=u},31069:e=>{function t(e){if(e)return function(e){for(var n in t.prototype)e[n]=t.prototype[n];return e}(e)}e.exports=t,t.prototype.on=t.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},t.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;o<r.length;o++)if((n=r[o])===t||n.fn===t){r.splice(o,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},t.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var o=(n=n.slice(0)).length;r<o;++r)n[r].apply(this,t)}return this},t.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},t.prototype.hasListeners=function(e){return!!this.listeners(e).length}},33034:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,r,i,s){if("function"!=typeof r)throw new TypeError("The listener must be a function");var a=new o(r,i||e,s),u=n?n+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],a]:e._events[u].push(a):(e._events[u]=a,e._eventsCount++),e}function s(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function a(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),a.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},a.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,s=new Array(i);o<i;o++)s[o]=r[o].fn;return s},a.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},a.prototype.emit=function(e,t,r,o,i,s){var a=n?n+e:e;if(!this._events[a])return!1;var u,c,l=this._events[a],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,r),!0;case 4:return l.fn.call(l.context,t,r,o),!0;case 5:return l.fn.call(l.context,t,r,o,i),!0;case 6:return l.fn.call(l.context,t,r,o,i,s),!0}for(c=1,u=new Array(f-1);c<f;c++)u[c-1]=arguments[c];l.fn.apply(l.context,u)}else{var d,p=l.length;for(c=0;c<p;c++)switch(l[c].once&&this.removeListener(e,l[c].fn,void 0,!0),f){case 1:l[c].fn.call(l[c].context);break;case 2:l[c].fn.call(l[c].context,t);break;case 3:l[c].fn.call(l[c].context,t,r);break;case 4:l[c].fn.call(l[c].context,t,r,o);break;default:if(!u)for(d=1,u=new Array(f-1);d<f;d++)u[d-1]=arguments[d];l[c].fn.apply(l[c].context,u)}}return!0},a.prototype.on=function(e,t,n){return i(this,e,t,n,!1)},a.prototype.once=function(e,t,n){return i(this,e,t,n,!0)},a.prototype.removeListener=function(e,t,r,o){var i=n?n+e:e;if(!this._events[i])return this;if(!t)return s(this,i),this;var a=this._events[i];if(a.fn)a.fn!==t||o&&!a.once||r&&a.context!==r||s(this,i);else{for(var u=0,c=[],l=a.length;u<l;u++)(a[u].fn!==t||o&&!a[u].once||r&&a[u].context!==r)&&c.push(a[u]);c.length?this._events[i]=1===c.length?c[0]:c:s(this,i)}return this},a.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&s(this,t)):(this._events=new r,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=n,a.EventEmitter=a,e.exports=a},5939:e=>{"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise((function(n,r){function o(n){e.removeListener(t,i),r(n)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",o),n([].slice.call(arguments))}y(e,t,i,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&y(e,"error",t,{once:!0})}(e,o)}))},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var s=10;function a(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function c(e,t,n,r){var o,i,s,c;if(a(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),s=i[t]),void 0===s)s=i[t]=n,++e._eventsCount;else if("function"==typeof s?s=i[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(o=u(e))>0&&s.length>o&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,c=l,console&&console.warn&&console.warn(c)}return e}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(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=l.bind(r);return o.listener=n,r.wrapFn=o,o}function d(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):h(o,o.length)}function p(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function h(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function y(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function o(i){r.once&&e.removeEventListener(t,o),n(i)}))}}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),i.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},i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return u(this)},i.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var o="error"===e,i=this._events;if(void 0!==i)o=o&&void 0===i.error;else if(!o)return!1;if(o){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var u=i[e];if(void 0===u)return!1;if("function"==typeof u)r(u,this,t);else{var c=u.length,l=h(u,c);for(n=0;n<c;++n)r(l[n],this,t)}return!0},i.prototype.addListener=function(e,t){return c(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return c(this,e,t,!0)},i.prototype.once=function(e,t){return a(t),this.on(e,f(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return a(t),this.prependListener(e,f(this,e,t)),this},i.prototype.removeListener=function(e,t){var n,r,o,i,s;if(a(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){s=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,s||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,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[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},i.prototype.listeners=function(e){return d(this,e,!0)},i.prototype.rawListeners=function(e){return d(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},i.prototype.listenerCount=p,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},5799:e=>{e.exports=r,r.default=r,r.stable=s,r.stableStringify=s;var t=[],n=[];function r(e,r,i){var s;for(o(e,"",[],void 0),s=0===n.length?JSON.stringify(e,r,i):JSON.stringify(e,u(r),i);0!==t.length;){var a=t.pop();4===a.length?Object.defineProperty(a[0],a[1],a[3]):a[0][a[1]]=a[2]}return s}function o(e,r,i,s){var a;if("object"==typeof e&&null!==e){for(a=0;a<i.length;a++)if(i[a]===e){var u=Object.getOwnPropertyDescriptor(s,r);return void(void 0!==u.get?u.configurable?(Object.defineProperty(s,r,{value:"[Circular]"}),t.push([s,r,e,u])):n.push([e,r]):(s[r]="[Circular]",t.push([s,r,e])))}if(i.push(e),Array.isArray(e))for(a=0;a<e.length;a++)o(e[a],a,i,e);else{var c=Object.keys(e);for(a=0;a<c.length;a++){var l=c[a];o(e[l],l,i,e)}}i.pop()}}function i(e,t){return e<t?-1:e>t?1:0}function s(e,r,o){var i,s=a(e,"",[],void 0)||e;for(i=0===n.length?JSON.stringify(s,r,o):JSON.stringify(s,u(r),o);0!==t.length;){var c=t.pop();4===c.length?Object.defineProperty(c[0],c[1],c[3]):c[0][c[1]]=c[2]}return i}function a(e,r,o,s){var u;if("object"==typeof e&&null!==e){for(u=0;u<o.length;u++)if(o[u]===e){var c=Object.getOwnPropertyDescriptor(s,r);return void(void 0!==c.get?c.configurable?(Object.defineProperty(s,r,{value:"[Circular]"}),t.push([s,r,e,c])):n.push([e,r]):(s[r]="[Circular]",t.push([s,r,e])))}if("function"==typeof e.toJSON)return;if(o.push(e),Array.isArray(e))for(u=0;u<e.length;u++)a(e[u],u,o,e);else{var l={},f=Object.keys(e).sort(i);for(u=0;u<f.length;u++){var d=f[u];a(e[d],d,o,e),l[d]=e[d]}if(void 0===s)return l;t.push([s,r,e]),s[r]=l}o.pop()}}function u(e){return e=void 0!==e?e:function(e,t){return t},function(t,r){if(n.length>0)for(var o=0;o<n.length;o++){var i=n[o];if(i[1]===t&&i[0]===r){r="[Circular]",n.splice(o,1);break}}return e.call(this,t,r)}}},24081:(e,t,n)=>{var r=n(21059)(n(158),"DataView");e.exports=r},15999:(e,t,n)=>{var r=n(13387),o=n(69252),i=n(31125),s=n(9021),a=n(68131);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=s,u.prototype.set=a,e.exports=u},26811:(e,t,n)=>{var r=n(72215),o=n(56105),i=n(30484),s=n(8046),a=n(30603);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=s,u.prototype.set=a,e.exports=u},60945:(e,t,n)=>{var r=n(21059)(n(158),"Map");e.exports=r},25835:(e,t,n)=>{var r=n(73633),o=n(39382),i=n(28850),s=n(70756),a=n(2769);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=s,u.prototype.set=a,e.exports=u},27540:(e,t,n)=>{var r=n(21059)(n(158),"Promise");e.exports=r},80476:(e,t,n)=>{var r=n(21059)(n(158),"Set");e.exports=r},74868:(e,t,n)=>{var r=n(25835),o=n(57554),i=n(18800);function s(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}s.prototype.add=s.prototype.push=o,s.prototype.has=i,e.exports=s},34987:(e,t,n)=>{var r=n(26811),o=n(73832),i=n(31676),s=n(33577),a=n(43343),u=n(20488);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=s,c.prototype.has=a,c.prototype.set=u,e.exports=c},44937:(e,t,n)=>{var r=n(158).Symbol;e.exports=r},48596:(e,t,n)=>{var r=n(158).Uint8Array;e.exports=r},18307:(e,t,n)=>{var r=n(21059)(n(158),"WeakMap");e.exports=r},90929:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},73034:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},5680:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var s=e[n];t(s,n,e)&&(i[o++]=s)}return i}},92554:(e,t,n)=>{var r=n(65086),o=n(67016),i=n(93706),s=n(77638),a=n(49699),u=n(70094),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),l=!n&&o(e),f=!n&&!l&&s(e),d=!n&&!l&&!f&&u(e),p=n||l||f||d,h=p?r(e.length,String):[],y=h.length;for(var g in e)!t&&!c.call(e,g)||p&&("length"==g||f&&("offset"==g||"parent"==g)||d&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||a(g,y))||h.push(g);return h}},57041:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},52824:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},99280:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},96122:(e,t,n)=>{var r=n(88039),o=n(1316),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var s=e[t];i.call(e,t)&&o(s,n)&&(void 0!==n||t in e)||r(e,t,n)}},33993:(e,t,n)=>{var r=n(1316);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},73977:(e,t,n)=>{var r=n(34386),o=n(23150);e.exports=function(e,t){return e&&r(t,o(t),e)}},5081:(e,t,n)=>{var r=n(34386),o=n(61530);e.exports=function(e,t){return e&&r(t,o(t),e)}},88039:(e,t,n)=>{var r=n(88689);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},49548:(e,t,n)=>{var r=n(34987),o=n(73034),i=n(96122),s=n(73977),a=n(5081),u=n(728),c=n(86923),l=n(21375),f=n(1584),d=n(47461),p=n(31441),h=n(35551),y=n(75539),g=n(83394),m=n(45010),v=n(93706),b=n(77638),w=n(55948),_=n(23619),S=n(78255),C=n(23150),E=n(61530),A="[object Arguments]",O="[object Function]",T="[object Object]",I={};I[A]=I["[object Array]"]=I["[object ArrayBuffer]"]=I["[object DataView]"]=I["[object Boolean]"]=I["[object Date]"]=I["[object Float32Array]"]=I["[object Float64Array]"]=I["[object Int8Array]"]=I["[object Int16Array]"]=I["[object Int32Array]"]=I["[object Map]"]=I["[object Number]"]=I[T]=I["[object RegExp]"]=I["[object Set]"]=I["[object String]"]=I["[object Symbol]"]=I["[object Uint8Array]"]=I["[object Uint8ClampedArray]"]=I["[object Uint16Array]"]=I["[object Uint32Array]"]=!0,I["[object Error]"]=I[O]=I["[object WeakMap]"]=!1,e.exports=function e(t,n,R,L,x,j){var k,N=1&n,P=2&n,D=4&n;if(R&&(k=x?R(t,L,x,j):R(t)),void 0!==k)return k;if(!_(t))return t;var M=v(t);if(M){if(k=y(t),!N)return c(t,k)}else{var F=h(t),W=F==O||"[object GeneratorFunction]"==F;if(b(t))return u(t,N);if(F==T||F==A||W&&!x){if(k=P||W?{}:m(t),!N)return P?f(t,a(k,t)):l(t,s(k,t))}else{if(!I[F])return x?t:{};k=g(t,F,N)}}j||(j=new r);var $=j.get(t);if($)return $;j.set(t,k),S(t)?t.forEach((function(r){k.add(e(r,n,R,r,t,j))})):w(t)&&t.forEach((function(r,o){k.set(o,e(r,n,R,o,t,j))}));var B=M?void 0:(D?P?p:d:P?E:C)(t);return o(B||t,(function(r,o){B&&(r=t[o=r]),i(k,o,e(r,n,R,o,t,j))})),k}},33776:(e,t,n)=>{var r=n(23619),o=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},22153:(e,t,n)=>{var r=n(52824),o=n(76648);e.exports=function e(t,n,i,s,a){var u=-1,c=t.length;for(i||(i=o),a||(a=[]);++u<c;){var l=t[u];n>0&&i(l)?n>1?e(l,n-1,i,s,a):r(a,l):s||(a[a.length]=l)}return a}},51845:(e,t,n)=>{var r=n(49160),o=n(46384);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},45328:(e,t,n)=>{var r=n(52824),o=n(93706);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},20194:(e,t,n)=>{var r=n(44937),o=n(15401),i=n(92445),s=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?o(e):i(e)}},56640:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},64634:(e,t,n)=>{var r=n(20194),o=n(81653);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},95372:(e,t,n)=>{var r=n(55365),o=n(81653);e.exports=function e(t,n,i,s,a){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,i,s,e,a))}},55365:(e,t,n)=>{var r=n(34987),o=n(95428),i=n(1108),s=n(71711),a=n(35551),u=n(93706),c=n(77638),l=n(70094),f="[object Arguments]",d="[object Array]",p="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,y,g,m){var v=u(e),b=u(t),w=v?d:a(e),_=b?d:a(t),S=(w=w==f?p:w)==p,C=(_=_==f?p:_)==p,E=w==_;if(E&&c(e)){if(!c(t))return!1;v=!0,S=!1}if(E&&!S)return m||(m=new r),v||l(e)?o(e,t,n,y,g,m):i(e,t,w,n,y,g,m);if(!(1&n)){var A=S&&h.call(e,"__wrapped__"),O=C&&h.call(t,"__wrapped__");if(A||O){var T=A?e.value():e,I=O?t.value():t;return m||(m=new r),g(T,I,n,y,m)}}return!!E&&(m||(m=new r),s(e,t,n,y,g,m))}},2471:(e,t,n)=>{var r=n(35551),o=n(81653);e.exports=function(e){return o(e)&&"[object Map]"==r(e)}},4249:(e,t,n)=>{var r=n(39277),o=n(83481),i=n(23619),s=n(91223),a=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,l=u.toString,f=c.hasOwnProperty,d=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?d:a).test(s(e))}},42388:(e,t,n)=>{var r=n(35551),o=n(81653);e.exports=function(e){return o(e)&&"[object Set]"==r(e)}},88595:(e,t,n)=>{var r=n(20194),o=n(62008),i=n(81653),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,e.exports=function(e){return i(e)&&o(e.length)&&!!s[r(e)]}},76324:(e,t,n)=>{var r=n(3067),o=n(32501),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},21506:(e,t,n)=>{var r=n(23619),o=n(3067),i=n(90807),s=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=o(e),n=[];for(var a in e)("constructor"!=a||!t&&s.call(e,a))&&n.push(a);return n}},11241:(e,t,n)=>{var r=n(10722),o=n(47975);e.exports=function(e,t){return r(e,t,(function(t,n){return o(e,n)}))}},10722:(e,t,n)=>{var r=n(51845),o=n(68400),i=n(49160);e.exports=function(e,t,n){for(var s=-1,a=t.length,u={};++s<a;){var c=t[s],l=r(e,c);n(l,c)&&o(u,i(c,e),l)}return u}},68400:(e,t,n)=>{var r=n(96122),o=n(49160),i=n(49699),s=n(23619),a=n(46384);e.exports=function(e,t,n,u){if(!s(e))return e;for(var c=-1,l=(t=o(t,e)).length,f=l-1,d=e;null!=d&&++c<l;){var p=a(t[c]),h=n;if("__proto__"===p||"constructor"===p||"prototype"===p)return e;if(c!=f){var y=d[p];void 0===(h=u?u(y,p,d):void 0)&&(h=s(y)?y:i(t[c+1])?[]:{})}r(d,p,h),d=d[p]}return e}},86920:(e,t,n)=>{var r=n(80446),o=n(88689),i=n(41549),s=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=s},65086:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},80430:(e,t,n)=>{var r=n(44937),o=n(57041),i=n(93706),s=n(81878),a=r?r.prototype:void 0,u=a?a.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(s(t))return u?u.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},12383:(e,t,n)=>{var r=n(38725),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},2723:e=>{e.exports=function(e){return function(t){return e(t)}}},67446:e=>{e.exports=function(e,t){return e.has(t)}},49160:(e,t,n)=>{var r=n(93706),o=n(63140),i=n(39230),s=n(33270);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(s(e))}},53310:(e,t,n)=>{var r=n(48596);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},728:(e,t,n)=>{e=n.nmd(e);var r=n(158),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,s=i&&i.exports===o?r.Buffer:void 0,a=s?s.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=a?a(n):new e.constructor(n);return e.copy(r),r}},14352:(e,t,n)=>{var r=n(53310);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},44694:e=>{var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},29169:(e,t,n)=>{var r=n(44937),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},69752:(e,t,n)=>{var r=n(53310);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},86923:e=>{e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},34386:(e,t,n)=>{var r=n(96122),o=n(88039);e.exports=function(e,t,n,i){var s=!n;n||(n={});for(var a=-1,u=t.length;++a<u;){var c=t[a],l=i?i(n[c],e[c],c,n,e):void 0;void 0===l&&(l=e[c]),s?o(n,c,l):r(n,c,l)}return n}},21375:(e,t,n)=>{var r=n(34386),o=n(45278);e.exports=function(e,t){return r(e,o(e),t)}},1584:(e,t,n)=>{var r=n(34386),o=n(27508);e.exports=function(e,t){return r(e,o(e),t)}},38728:(e,t,n)=>{var r=n(158)["__core-js_shared__"];e.exports=r},88689:(e,t,n)=>{var r=n(21059),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},95428:(e,t,n)=>{var r=n(74868),o=n(99280),i=n(67446);e.exports=function(e,t,n,s,a,u){var c=1&n,l=e.length,f=t.length;if(l!=f&&!(c&&f>l))return!1;var d=u.get(e),p=u.get(t);if(d&&p)return d==t&&p==e;var h=-1,y=!0,g=2&n?new r:void 0;for(u.set(e,t),u.set(t,e);++h<l;){var m=e[h],v=t[h];if(s)var b=c?s(v,m,h,t,e,u):s(m,v,h,e,t,u);if(void 0!==b){if(b)continue;y=!1;break}if(g){if(!o(t,(function(e,t){if(!i(g,t)&&(m===e||a(m,e,n,s,u)))return g.push(t)}))){y=!1;break}}else if(m!==v&&!a(m,v,n,s,u)){y=!1;break}}return u.delete(e),u.delete(t),y}},1108:(e,t,n)=>{var r=n(44937),o=n(48596),i=n(1316),s=n(95428),a=n(11382),u=n(76680),c=r?r.prototype:void 0,l=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,f,d){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!f(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=a;case"[object Set]":var h=1&r;if(p||(p=u),e.size!=t.size&&!h)return!1;var y=d.get(e);if(y)return y==t;r|=2,d.set(e,t);var g=s(p(e),p(t),r,c,f,d);return d.delete(e),g;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},71711:(e,t,n)=>{var r=n(47461),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,s,a){var u=1&n,c=r(e),l=c.length;if(l!=r(t).length&&!u)return!1;for(var f=l;f--;){var d=c[f];if(!(u?d in t:o.call(t,d)))return!1}var p=a.get(e),h=a.get(t);if(p&&h)return p==t&&h==e;var y=!0;a.set(e,t),a.set(t,e);for(var g=u;++f<l;){var m=e[d=c[f]],v=t[d];if(i)var b=u?i(v,m,d,t,e,a):i(m,v,d,e,t,a);if(!(void 0===b?m===v||s(m,v,n,i,a):b)){y=!1;break}g||(g="constructor"==d)}if(y&&!g){var w=e.constructor,_=t.constructor;w==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof _&&_ instanceof _||(y=!1)}return a.delete(e),a.delete(t),y}},39169:(e,t,n)=>{var r=n(30597),o=n(53039),i=n(47209);e.exports=function(e){return i(o(e,void 0,r),e+"")}},14528:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},47461:(e,t,n)=>{var r=n(45328),o=n(45278),i=n(23150);e.exports=function(e){return r(e,i,o)}},31441:(e,t,n)=>{var r=n(45328),o=n(27508),i=n(61530);e.exports=function(e){return r(e,i,o)}},5662:(e,t,n)=>{var r=n(10205);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},21059:(e,t,n)=>{var r=n(4249),o=n(4759);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},97959:(e,t,n)=>{var r=n(78579)(Object.getPrototypeOf,Object);e.exports=r},15401:(e,t,n)=>{var r=n(44937),o=Object.prototype,i=o.hasOwnProperty,s=o.toString,a=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,a),n=e[a];try{e[a]=void 0;var r=!0}catch(e){}var o=s.call(e);return r&&(t?e[a]=n:delete e[a]),o}},45278:(e,t,n)=>{var r=n(5680),o=n(59174),i=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,a=s?function(e){return null==e?[]:(e=Object(e),r(s(e),(function(t){return i.call(e,t)})))}:o;e.exports=a},27508:(e,t,n)=>{var r=n(52824),o=n(97959),i=n(45278),s=n(59174),a=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:s;e.exports=a},35551:(e,t,n)=>{var r=n(24081),o=n(60945),i=n(27540),s=n(80476),a=n(18307),u=n(20194),c=n(91223),l="[object Map]",f="[object Promise]",d="[object Set]",p="[object WeakMap]",h="[object DataView]",y=c(r),g=c(o),m=c(i),v=c(s),b=c(a),w=u;(r&&w(new r(new ArrayBuffer(1)))!=h||o&&w(new o)!=l||i&&w(i.resolve())!=f||s&&w(new s)!=d||a&&w(new a)!=p)&&(w=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case y:return h;case g:return l;case m:return f;case v:return d;case b:return p}return t}),e.exports=w},4759:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},96919:(e,t,n)=>{var r=n(49160),o=n(67016),i=n(93706),s=n(49699),a=n(62008),u=n(46384);e.exports=function(e,t,n){for(var c=-1,l=(t=r(t,e)).length,f=!1;++c<l;){var d=u(t[c]);if(!(f=null!=e&&n(e,d)))break;e=e[d]}return f||++c!=l?f:!!(l=null==e?0:e.length)&&a(l)&&s(d,l)&&(i(e)||o(e))}},13387:(e,t,n)=>{var r=n(45155);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},69252:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},31125:(e,t,n)=>{var r=n(45155),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},9021:(e,t,n)=>{var r=n(45155),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},68131:(e,t,n)=>{var r=n(45155);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},75539:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},83394:(e,t,n)=>{var r=n(53310),o=n(14352),i=n(44694),s=n(29169),a=n(69752);e.exports=function(e,t,n){var u=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new u(+e);case"[object DataView]":return o(e,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(e,n);case"[object Map]":return new u;case"[object Number]":case"[object String]":return new u(e);case"[object RegExp]":return i(e);case"[object Set]":return new u;case"[object Symbol]":return s(e)}}},45010:(e,t,n)=>{var r=n(33776),o=n(97959),i=n(3067);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(o(e))}},76648:(e,t,n)=>{var r=n(44937),o=n(67016),i=n(93706),s=r?r.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(s&&e&&e[s])}},49699:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},63140:(e,t,n)=>{var r=n(93706),o=n(81878),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||s.test(e)||!i.test(e)||null!=t&&e in Object(t)}},10205:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},83481:(e,t,n)=>{var r,o=n(38728),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},3067:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},72215:e=>{e.exports=function(){this.__data__=[],this.size=0}},56105:(e,t,n)=>{var r=n(33993),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():o.call(t,n,1),--this.size,0))}},30484:(e,t,n)=>{var r=n(33993);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},8046:(e,t,n)=>{var r=n(33993);e.exports=function(e){return r(this.__data__,e)>-1}},30603:(e,t,n)=>{var r=n(33993);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},73633:(e,t,n)=>{var r=n(15999),o=n(26811),i=n(60945);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},39382:(e,t,n)=>{var r=n(5662);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},28850:(e,t,n)=>{var r=n(5662);e.exports=function(e){return r(this,e).get(e)}},70756:(e,t,n)=>{var r=n(5662);e.exports=function(e){return r(this,e).has(e)}},2769:(e,t,n)=>{var r=n(5662);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},11382:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},32202:(e,t,n)=>{var r=n(54883);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},45155:(e,t,n)=>{var r=n(21059)(Object,"create");e.exports=r},32501:(e,t,n)=>{var r=n(78579)(Object.keys,Object);e.exports=r},90807:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},41771:(e,t,n)=>{e=n.nmd(e);var r=n(14528),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,s=i&&i.exports===o&&r.process,a=function(){try{return i&&i.require&&i.require("util").types||s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=a},92445:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},78579:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},53039:(e,t,n)=>{var r=n(90929),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,s=-1,a=o(i.length-t,0),u=Array(a);++s<a;)u[s]=i[t+s];s=-1;for(var c=Array(t+1);++s<t;)c[s]=i[s];return c[t]=n(u),r(e,this,c)}}},158:(e,t,n)=>{var r=n(14528),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},57554:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},18800:e=>{e.exports=function(e){return this.__data__.has(e)}},76680:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},47209:(e,t,n)=>{var r=n(86920),o=n(10832)(r);e.exports=o},10832:e=>{var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var o=t(),i=16-(o-r);if(r=o,i>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},73832:(e,t,n)=>{var r=n(26811);e.exports=function(){this.__data__=new r,this.size=0}},31676:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},33577:e=>{e.exports=function(e){return this.__data__.get(e)}},43343:e=>{e.exports=function(e){return this.__data__.has(e)}},20488:(e,t,n)=>{var r=n(26811),o=n(60945),i=n(25835);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!o||s.length<199)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(s)}return n.set(e,t),this.size=n.size,this}},39230:(e,t,n)=>{var r=n(32202),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,s=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)})),t}));e.exports=s},46384:(e,t,n)=>{var r=n(81878);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},91223:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},38725:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},71879:(e,t,n)=>{var r=n(49548);e.exports=function(e){return r(e,4)}},80446:e=>{e.exports=function(e){return function(){return e}}},76897:(e,t,n)=>{var r=n(23619),o=n(98253),i=n(95053),s=Math.max,a=Math.min;e.exports=function(e,t,n){var u,c,l,f,d,p,h=0,y=!1,g=!1,m=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var n=u,r=c;return u=c=void 0,h=t,f=e.apply(r,n)}function b(e){return h=e,d=setTimeout(_,t),y?v(e):f}function w(e){var n=e-p;return void 0===p||n>=t||n<0||g&&e-h>=l}function _(){var e=o();if(w(e))return S(e);d=setTimeout(_,function(e){var n=t-(e-p);return g?a(n,l-(e-h)):n}(e))}function S(e){return d=void 0,m&&u?v(e):(u=c=void 0,f)}function C(){var e=o(),n=w(e);if(u=arguments,c=this,p=e,n){if(void 0===d)return b(p);if(g)return clearTimeout(d),d=setTimeout(_,t),v(p)}return void 0===d&&(d=setTimeout(_,t)),f}return t=i(t)||0,r(n)&&(y=!!n.leading,l=(g="maxWait"in n)?s(i(n.maxWait)||0,t):l,m="trailing"in n?!!n.trailing:m),C.cancel=function(){void 0!==d&&clearTimeout(d),h=0,u=p=c=d=void 0},C.flush=function(){return void 0===d?f:S(o())},C}},1316:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},30597:(e,t,n)=>{var r=n(22153);e.exports=function(e){return null!=e&&e.length?r(e,1):[]}},80089:(e,t,n)=>{var r=n(51845);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},47975:(e,t,n)=>{var r=n(56640),o=n(96919);e.exports=function(e,t){return null!=e&&o(e,t,r)}},41549:e=>{e.exports=function(e){return e}},67016:(e,t,n)=>{var r=n(64634),o=n(81653),i=Object.prototype,s=i.hasOwnProperty,a=i.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return o(e)&&s.call(e,"callee")&&!a.call(e,"callee")};e.exports=u},93706:e=>{var t=Array.isArray;e.exports=t},51528:(e,t,n)=>{var r=n(39277),o=n(62008);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},77638:(e,t,n)=>{e=n.nmd(e);var r=n(158),o=n(30647),i=t&&!t.nodeType&&t,s=i&&e&&!e.nodeType&&e,a=s&&s.exports===i?r.Buffer:void 0,u=(a?a.isBuffer:void 0)||o;e.exports=u},47184:(e,t,n)=>{var r=n(95372);e.exports=function(e,t){return r(e,t)}},65162:(e,t,n)=>{var r=n(95372);e.exports=function(e,t,n){var o=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===o?r(e,t,void 0,n):!!o}},39277:(e,t,n)=>{var r=n(20194),o=n(23619);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},62008:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},55948:(e,t,n)=>{var r=n(2471),o=n(2723),i=n(41771),s=i&&i.isMap,a=s?o(s):r;e.exports=a},23619:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},81653:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},78255:(e,t,n)=>{var r=n(42388),o=n(2723),i=n(41771),s=i&&i.isSet,a=s?o(s):r;e.exports=a},81878:(e,t,n)=>{var r=n(20194),o=n(81653);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},70094:(e,t,n)=>{var r=n(88595),o=n(2723),i=n(41771),s=i&&i.isTypedArray,a=s?o(s):r;e.exports=a},23150:(e,t,n)=>{var r=n(92554),o=n(76324),i=n(51528);e.exports=function(e){return i(e)?r(e):o(e)}},61530:(e,t,n)=>{var r=n(92554),o=n(21506),i=n(51528);e.exports=function(e){return i(e)?r(e,!0):o(e)}},53059:function(e,t,n){var r;e=n.nmd(e),function(){var o,i="Expected a function",s="__lodash_hash_undefined__",a="__lodash_placeholder__",u=32,c=128,l=1/0,f=9007199254740991,d=NaN,p=4294967295,h=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",u],["partialRight",64],["rearg",256]],y="[object Arguments]",g="[object Array]",m="[object Boolean]",v="[object Date]",b="[object Error]",w="[object Function]",_="[object GeneratorFunction]",S="[object Map]",C="[object Number]",E="[object Object]",A="[object Promise]",O="[object RegExp]",T="[object Set]",I="[object String]",R="[object Symbol]",L="[object WeakMap]",x="[object ArrayBuffer]",j="[object DataView]",k="[object Float32Array]",N="[object Float64Array]",P="[object Int8Array]",D="[object Int16Array]",M="[object Int32Array]",F="[object Uint8Array]",W="[object Uint8ClampedArray]",$="[object Uint16Array]",B="[object Uint32Array]",U=/\b__p \+= '';/g,V=/\b(__p \+=) '' \+/g,H=/(__e\(.*?\)|\b__t\)) \+\n'';/g,q=/&(?:amp|lt|gt|quot|#39);/g,z=/[&<>"']/g,G=RegExp(q.source),Y=RegExp(z.source),J=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,K=/<%=([\s\S]+?)%>/g,X=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Z=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,oe=/\s/,ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,se=/\{\n\/\* \[wrapped with (.+)\] \*/,ae=/,? & /,ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ce=/[()=,{}\[\]\/\s]/,le=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,de=/\w*$/,pe=/^[-+]0x[0-9a-f]+$/i,he=/^0b[01]+$/i,ye=/^\[object .+?Constructor\]$/,ge=/^0o[0-7]+$/i,me=/^(?:0|[1-9]\d*)$/,ve=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,be=/($^)/,we=/['\n\r\u2028\u2029\\]/g,_e="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Se="a-z\\xdf-\\xf6\\xf8-\\xff",Ce="A-Z\\xc0-\\xd6\\xd8-\\xde",Ee="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ae="["+Ee+"]",Oe="["+_e+"]",Te="\\d+",Ie="["+Se+"]",Re="[^\\ud800-\\udfff"+Ee+Te+"\\u2700-\\u27bf"+Se+Ce+"]",Le="\\ud83c[\\udffb-\\udfff]",xe="[^\\ud800-\\udfff]",je="(?:\\ud83c[\\udde6-\\uddff]){2}",ke="[\\ud800-\\udbff][\\udc00-\\udfff]",Ne="["+Ce+"]",Pe="(?:"+Ie+"|"+Re+")",De="(?:"+Ne+"|"+Re+")",Me="(?:['’](?:d|ll|m|re|s|t|ve))?",Fe="(?:['’](?:D|LL|M|RE|S|T|VE))?",We="(?:"+Oe+"|"+Le+")?",$e="[\\ufe0e\\ufe0f]?",Be=$e+We+"(?:\\u200d(?:"+[xe,je,ke].join("|")+")"+$e+We+")*",Ue="(?:"+["[\\u2700-\\u27bf]",je,ke].join("|")+")"+Be,Ve="(?:"+[xe+Oe+"?",Oe,je,ke,"[\\ud800-\\udfff]"].join("|")+")",He=RegExp("['’]","g"),qe=RegExp(Oe,"g"),ze=RegExp(Le+"(?="+Le+")|"+Ve+Be,"g"),Ge=RegExp([Ne+"?"+Ie+"+"+Me+"(?="+[Ae,Ne,"$"].join("|")+")",De+"+"+Fe+"(?="+[Ae,Ne+Pe,"$"].join("|")+")",Ne+"?"+Pe+"+"+Me,Ne+"+"+Fe,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Te,Ue].join("|"),"g"),Ye=RegExp("[\\u200d\\ud800-\\udfff"+_e+"\\ufe0e\\ufe0f]"),Je=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Qe=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ke=-1,Xe={};Xe[k]=Xe[N]=Xe[P]=Xe[D]=Xe[M]=Xe[F]=Xe[W]=Xe[$]=Xe[B]=!0,Xe[y]=Xe[g]=Xe[x]=Xe[m]=Xe[j]=Xe[v]=Xe[b]=Xe[w]=Xe[S]=Xe[C]=Xe[E]=Xe[O]=Xe[T]=Xe[I]=Xe[L]=!1;var Ze={};Ze[y]=Ze[g]=Ze[x]=Ze[j]=Ze[m]=Ze[v]=Ze[k]=Ze[N]=Ze[P]=Ze[D]=Ze[M]=Ze[S]=Ze[C]=Ze[E]=Ze[O]=Ze[T]=Ze[I]=Ze[R]=Ze[F]=Ze[W]=Ze[$]=Ze[B]=!0,Ze[b]=Ze[w]=Ze[L]=!1;var et={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tt=parseFloat,nt=parseInt,rt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ot="object"==typeof self&&self&&self.Object===Object&&self,it=rt||ot||Function("return this")(),st=t&&!t.nodeType&&t,at=st&&e&&!e.nodeType&&e,ut=at&&at.exports===st,ct=ut&&rt.process,lt=function(){try{return at&&at.require&&at.require("util").types||ct&&ct.binding&&ct.binding("util")}catch(e){}}(),ft=lt&<.isArrayBuffer,dt=lt&<.isDate,pt=lt&<.isMap,ht=lt&<.isRegExp,yt=lt&<.isSet,gt=lt&<.isTypedArray;function mt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function vt(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var s=e[o];t(r,s,n(s),e)}return r}function bt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function wt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function _t(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function St(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var s=e[n];t(s,n,e)&&(i[o++]=s)}return i}function Ct(e,t){return!(null==e||!e.length)&&kt(e,t,0)>-1}function Et(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function At(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function Ot(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function Tt(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function It(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function Rt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Lt=Mt("length");function xt(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function jt(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function kt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):jt(e,Pt,n)}function Nt(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function Pt(e){return e!=e}function Dt(e,t){var n=null==e?0:e.length;return n?$t(e,t)/n:d}function Mt(e){return function(t){return null==t?o:t[e]}}function Ft(e){return function(t){return null==e?o:e[t]}}function Wt(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function $t(e,t){for(var n,r=-1,i=e.length;++r<i;){var s=t(e[r]);s!==o&&(n=n===o?s:n+s)}return n}function Bt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Ut(e){return e?e.slice(0,an(e)+1).replace(re,""):e}function Vt(e){return function(t){return e(t)}}function Ht(e,t){return At(t,(function(t){return e[t]}))}function qt(e,t){return e.has(t)}function zt(e,t){for(var n=-1,r=e.length;++n<r&&kt(t,e[n],0)>-1;);return n}function Gt(e,t){for(var n=e.length;n--&&kt(t,e[n],0)>-1;);return n}function Yt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Jt=Ft({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),Qt=Ft({"&":"&","<":"<",">":">",'"':""","'":"'"});function Kt(e){return"\\"+et[e]}function Xt(e){return Ye.test(e)}function Zt(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function en(e,t){return function(n){return e(t(n))}}function tn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var s=e[n];s!==t&&s!==a||(e[n]=a,i[o++]=n)}return i}function nn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function rn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function on(e){return Xt(e)?function(e){for(var t=ze.lastIndex=0;ze.test(e);)++t;return t}(e):Lt(e)}function sn(e){return Xt(e)?function(e){return e.match(ze)||[]}(e):function(e){return e.split("")}(e)}function an(e){for(var t=e.length;t--&&oe.test(e.charAt(t)););return t}var un=Ft({"&":"&","<":"<",">":">",""":'"',"'":"'"}),cn=function e(t){var n,r=(t=null==t?it:cn.defaults(it.Object(),t,cn.pick(it,Qe))).Array,oe=t.Date,_e=t.Error,Se=t.Function,Ce=t.Math,Ee=t.Object,Ae=t.RegExp,Oe=t.String,Te=t.TypeError,Ie=r.prototype,Re=Se.prototype,Le=Ee.prototype,xe=t["__core-js_shared__"],je=Re.toString,ke=Le.hasOwnProperty,Ne=0,Pe=(n=/[^.]+$/.exec(xe&&xe.keys&&xe.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",De=Le.toString,Me=je.call(Ee),Fe=it._,We=Ae("^"+je.call(ke).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$e=ut?t.Buffer:o,Be=t.Symbol,Ue=t.Uint8Array,Ve=$e?$e.allocUnsafe:o,ze=en(Ee.getPrototypeOf,Ee),Ye=Ee.create,et=Le.propertyIsEnumerable,rt=Ie.splice,ot=Be?Be.isConcatSpreadable:o,st=Be?Be.iterator:o,at=Be?Be.toStringTag:o,ct=function(){try{var e=li(Ee,"defineProperty");return e({},"",{}),e}catch(e){}}(),lt=t.clearTimeout!==it.clearTimeout&&t.clearTimeout,Lt=oe&&oe.now!==it.Date.now&&oe.now,Ft=t.setTimeout!==it.setTimeout&&t.setTimeout,ln=Ce.ceil,fn=Ce.floor,dn=Ee.getOwnPropertySymbols,pn=$e?$e.isBuffer:o,hn=t.isFinite,yn=Ie.join,gn=en(Ee.keys,Ee),mn=Ce.max,vn=Ce.min,bn=oe.now,wn=t.parseInt,_n=Ce.random,Sn=Ie.reverse,Cn=li(t,"DataView"),En=li(t,"Map"),An=li(t,"Promise"),On=li(t,"Set"),Tn=li(t,"WeakMap"),In=li(Ee,"create"),Rn=Tn&&new Tn,Ln={},xn=Wi(Cn),jn=Wi(En),kn=Wi(An),Nn=Wi(On),Pn=Wi(Tn),Dn=Be?Be.prototype:o,Mn=Dn?Dn.valueOf:o,Fn=Dn?Dn.toString:o;function Wn(e){if(na(e)&&!qs(e)&&!(e instanceof Vn)){if(e instanceof Un)return e;if(ke.call(e,"__wrapped__"))return $i(e)}return new Un(e)}var $n=function(){function e(){}return function(t){if(!ta(t))return{};if(Ye)return Ye(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function Bn(){}function Un(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Vn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=p,this.__views__=[]}function Hn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function zn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new zn;++t<n;)this.add(e[t])}function Yn(e){var t=this.__data__=new qn(e);this.size=t.size}function Jn(e,t){var n=qs(e),r=!n&&Hs(e),o=!n&&!r&&Js(e),i=!n&&!r&&!o&&la(e),s=n||r||o||i,a=s?Bt(e.length,Oe):[],u=a.length;for(var c in e)!t&&!ke.call(e,c)||s&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||mi(c,u))||a.push(c);return a}function Qn(e){var t=e.length;return t?e[zr(0,t-1)]:o}function Kn(e,t){return Ni(Io(e),sr(t,0,e.length))}function Xn(e){return Ni(Io(e))}function Zn(e,t,n){(n!==o&&!Bs(e[t],n)||n===o&&!(t in e))&&or(e,t,n)}function er(e,t,n){var r=e[t];ke.call(e,t)&&Bs(r,n)&&(n!==o||t in e)||or(e,t,n)}function tr(e,t){for(var n=e.length;n--;)if(Bs(e[n][0],t))return n;return-1}function nr(e,t,n,r){return fr(e,(function(e,o,i){t(r,e,n(e),i)})),r}function rr(e,t){return e&&Ro(t,ja(t),e)}function or(e,t,n){"__proto__"==t&&ct?ct(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ir(e,t){for(var n=-1,i=t.length,s=r(i),a=null==e;++n<i;)s[n]=a?o:Ta(e,t[n]);return s}function sr(e,t,n){return e==e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function ar(e,t,n,r,i,s){var a,u=1&t,c=2&t,l=4&t;if(n&&(a=i?n(e,r,i,s):n(e)),a!==o)return a;if(!ta(e))return e;var f=qs(e);if(f){if(a=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&ke.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!u)return Io(e,a)}else{var d=pi(e),p=d==w||d==_;if(Js(e))return So(e,u);if(d==E||d==y||p&&!i){if(a=c||p?{}:yi(e),!u)return c?function(e,t){return Ro(e,di(e),t)}(e,function(e,t){return e&&Ro(t,ka(t),e)}(a,e)):function(e,t){return Ro(e,fi(e),t)}(e,rr(a,e))}else{if(!Ze[d])return i?e:{};a=function(e,t,n){var r,o=e.constructor;switch(t){case x:return Co(e);case m:case v:return new o(+e);case j:return function(e,t){var n=t?Co(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case k:case N:case P:case D:case M:case F:case W:case $:case B:return Eo(e,n);case S:return new o;case C:case I:return new o(e);case O:return function(e){var t=new e.constructor(e.source,de.exec(e));return t.lastIndex=e.lastIndex,t}(e);case T:return new o;case R:return r=e,Mn?Ee(Mn.call(r)):{}}}(e,d,u)}}s||(s=new Yn);var h=s.get(e);if(h)return h;s.set(e,a),aa(e)?e.forEach((function(r){a.add(ar(r,t,n,r,e,s))})):ra(e)&&e.forEach((function(r,o){a.set(o,ar(r,t,n,o,e,s))}));var g=f?o:(l?c?ri:ni:c?ka:ja)(e);return bt(g||e,(function(r,o){g&&(r=e[o=r]),er(a,o,ar(r,t,n,o,e,s))})),a}function ur(e,t,n){var r=n.length;if(null==e)return!r;for(e=Ee(e);r--;){var i=n[r],s=t[i],a=e[i];if(a===o&&!(i in e)||!s(a))return!1}return!0}function cr(e,t,n){if("function"!=typeof e)throw new Te(i);return Li((function(){e.apply(o,n)}),t)}function lr(e,t,n,r){var o=-1,i=Ct,s=!0,a=e.length,u=[],c=t.length;if(!a)return u;n&&(t=At(t,Vt(n))),r?(i=Et,s=!1):t.length>=200&&(i=qt,s=!1,t=new Gn(t));e:for(;++o<a;){var l=e[o],f=null==n?l:n(l);if(l=r||0!==l?l:0,s&&f==f){for(var d=c;d--;)if(t[d]===f)continue e;u.push(l)}else i(t,f,r)||u.push(l)}return u}Wn.templateSettings={escape:J,evaluate:Q,interpolate:K,variable:"",imports:{_:Wn}},Wn.prototype=Bn.prototype,Wn.prototype.constructor=Wn,Un.prototype=$n(Bn.prototype),Un.prototype.constructor=Un,Vn.prototype=$n(Bn.prototype),Vn.prototype.constructor=Vn,Hn.prototype.clear=function(){this.__data__=In?In(null):{},this.size=0},Hn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Hn.prototype.get=function(e){var t=this.__data__;if(In){var n=t[e];return n===s?o:n}return ke.call(t,e)?t[e]:o},Hn.prototype.has=function(e){var t=this.__data__;return In?t[e]!==o:ke.call(t,e)},Hn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=In&&t===o?s:t,this},qn.prototype.clear=function(){this.__data__=[],this.size=0},qn.prototype.delete=function(e){var t=this.__data__,n=tr(t,e);return!(n<0||(n==t.length-1?t.pop():rt.call(t,n,1),--this.size,0))},qn.prototype.get=function(e){var t=this.__data__,n=tr(t,e);return n<0?o:t[n][1]},qn.prototype.has=function(e){return tr(this.__data__,e)>-1},qn.prototype.set=function(e,t){var n=this.__data__,r=tr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},zn.prototype.clear=function(){this.size=0,this.__data__={hash:new Hn,map:new(En||qn),string:new Hn}},zn.prototype.delete=function(e){var t=ui(this,e).delete(e);return this.size-=t?1:0,t},zn.prototype.get=function(e){return ui(this,e).get(e)},zn.prototype.has=function(e){return ui(this,e).has(e)},zn.prototype.set=function(e,t){var n=ui(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Gn.prototype.add=Gn.prototype.push=function(e){return this.__data__.set(e,s),this},Gn.prototype.has=function(e){return this.__data__.has(e)},Yn.prototype.clear=function(){this.__data__=new qn,this.size=0},Yn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Yn.prototype.get=function(e){return this.__data__.get(e)},Yn.prototype.has=function(e){return this.__data__.has(e)},Yn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof qn){var r=n.__data__;if(!En||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new zn(r)}return n.set(e,t),this.size=n.size,this};var fr=jo(br),dr=jo(wr,!0);function pr(e,t){var n=!0;return fr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function hr(e,t,n){for(var r=-1,i=e.length;++r<i;){var s=e[r],a=t(s);if(null!=a&&(u===o?a==a&&!ca(a):n(a,u)))var u=a,c=s}return c}function yr(e,t){var n=[];return fr(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function gr(e,t,n,r,o){var i=-1,s=e.length;for(n||(n=gi),o||(o=[]);++i<s;){var a=e[i];t>0&&n(a)?t>1?gr(a,t-1,n,r,o):Ot(o,a):r||(o[o.length]=a)}return o}var mr=ko(),vr=ko(!0);function br(e,t){return e&&mr(e,t,ja)}function wr(e,t){return e&&vr(e,t,ja)}function _r(e,t){return St(t,(function(t){return Xs(e[t])}))}function Sr(e,t){for(var n=0,r=(t=vo(t,e)).length;null!=e&&n<r;)e=e[Fi(t[n++])];return n&&n==r?e:o}function Cr(e,t,n){var r=t(e);return qs(e)?r:Ot(r,n(e))}function Er(e){return null==e?e===o?"[object Undefined]":"[object Null]":at&&at in Ee(e)?function(e){var t=ke.call(e,at),n=e[at];try{e[at]=o;var r=!0}catch(e){}var i=De.call(e);return r&&(t?e[at]=n:delete e[at]),i}(e):function(e){return De.call(e)}(e)}function Ar(e,t){return e>t}function Or(e,t){return null!=e&&ke.call(e,t)}function Tr(e,t){return null!=e&&t in Ee(e)}function Ir(e,t,n){for(var i=n?Et:Ct,s=e[0].length,a=e.length,u=a,c=r(a),l=1/0,f=[];u--;){var d=e[u];u&&t&&(d=At(d,Vt(t))),l=vn(d.length,l),c[u]=!n&&(t||s>=120&&d.length>=120)?new Gn(u&&d):o}d=e[0];var p=-1,h=c[0];e:for(;++p<s&&f.length<l;){var y=d[p],g=t?t(y):y;if(y=n||0!==y?y:0,!(h?qt(h,g):i(f,g,n))){for(u=a;--u;){var m=c[u];if(!(m?qt(m,g):i(e[u],g,n)))continue e}h&&h.push(g),f.push(y)}}return f}function Rr(e,t,n){var r=null==(e=Oi(e,t=vo(t,e)))?e:e[Fi(Ki(t))];return null==r?o:mt(r,e,n)}function Lr(e){return na(e)&&Er(e)==y}function xr(e,t,n,r,i){return e===t||(null==e||null==t||!na(e)&&!na(t)?e!=e&&t!=t:function(e,t,n,r,i,s){var a=qs(e),u=qs(t),c=a?g:pi(e),l=u?g:pi(t),f=(c=c==y?E:c)==E,d=(l=l==y?E:l)==E,p=c==l;if(p&&Js(e)){if(!Js(t))return!1;a=!0,f=!1}if(p&&!f)return s||(s=new Yn),a||la(e)?ei(e,t,n,r,i,s):function(e,t,n,r,o,i,s){switch(n){case j:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case x:return!(e.byteLength!=t.byteLength||!i(new Ue(e),new Ue(t)));case m:case v:case C:return Bs(+e,+t);case b:return e.name==t.name&&e.message==t.message;case O:case I:return e==t+"";case S:var a=Zt;case T:var u=1&r;if(a||(a=nn),e.size!=t.size&&!u)return!1;var c=s.get(e);if(c)return c==t;r|=2,s.set(e,t);var l=ei(a(e),a(t),r,o,i,s);return s.delete(e),l;case R:if(Mn)return Mn.call(e)==Mn.call(t)}return!1}(e,t,c,n,r,i,s);if(!(1&n)){var h=f&&ke.call(e,"__wrapped__"),w=d&&ke.call(t,"__wrapped__");if(h||w){var _=h?e.value():e,A=w?t.value():t;return s||(s=new Yn),i(_,A,n,r,s)}}return!!p&&(s||(s=new Yn),function(e,t,n,r,i,s){var a=1&n,u=ni(e),c=u.length;if(c!=ni(t).length&&!a)return!1;for(var l=c;l--;){var f=u[l];if(!(a?f in t:ke.call(t,f)))return!1}var d=s.get(e),p=s.get(t);if(d&&p)return d==t&&p==e;var h=!0;s.set(e,t),s.set(t,e);for(var y=a;++l<c;){var g=e[f=u[l]],m=t[f];if(r)var v=a?r(m,g,f,t,e,s):r(g,m,f,e,t,s);if(!(v===o?g===m||i(g,m,n,r,s):v)){h=!1;break}y||(y="constructor"==f)}if(h&&!y){var b=e.constructor,w=t.constructor;b==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(h=!1)}return s.delete(e),s.delete(t),h}(e,t,n,r,i,s))}(e,t,n,r,xr,i))}function jr(e,t,n,r){var i=n.length,s=i,a=!r;if(null==e)return!s;for(e=Ee(e);i--;){var u=n[i];if(a&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<s;){var c=(u=n[i])[0],l=e[c],f=u[1];if(a&&u[2]){if(l===o&&!(c in e))return!1}else{var d=new Yn;if(r)var p=r(l,f,c,e,t,d);if(!(p===o?xr(f,l,3,r,d):p))return!1}}return!0}function kr(e){return!(!ta(e)||(t=e,Pe&&Pe in t))&&(Xs(e)?We:ye).test(Wi(e));var t}function Nr(e){return"function"==typeof e?e:null==e?ou:"object"==typeof e?qs(e)?Wr(e[0],e[1]):Fr(e):pu(e)}function Pr(e){if(!Si(e))return gn(e);var t=[];for(var n in Ee(e))ke.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Dr(e,t){return e<t}function Mr(e,t){var n=-1,o=Gs(e)?r(e.length):[];return fr(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}function Fr(e){var t=ci(e);return 1==t.length&&t[0][2]?Ei(t[0][0],t[0][1]):function(n){return n===e||jr(n,e,t)}}function Wr(e,t){return bi(e)&&Ci(t)?Ei(Fi(e),t):function(n){var r=Ta(n,e);return r===o&&r===t?Ia(n,e):xr(t,r,3)}}function $r(e,t,n,r,i){e!==t&&mr(t,(function(s,a){if(i||(i=new Yn),ta(s))!function(e,t,n,r,i,s,a){var u=Ii(e,n),c=Ii(t,n),l=a.get(c);if(l)Zn(e,n,l);else{var f=s?s(u,c,n+"",e,t,a):o,d=f===o;if(d){var p=qs(c),h=!p&&Js(c),y=!p&&!h&&la(c);f=c,p||h||y?qs(u)?f=u:Ys(u)?f=Io(u):h?(d=!1,f=So(c,!0)):y?(d=!1,f=Eo(c,!0)):f=[]:ia(c)||Hs(c)?(f=u,Hs(u)?f=va(u):ta(u)&&!Xs(u)||(f=yi(c))):d=!1}d&&(a.set(c,f),i(f,c,r,s,a),a.delete(c)),Zn(e,n,f)}}(e,t,a,n,$r,r,i);else{var u=r?r(Ii(e,a),s,a+"",e,t,i):o;u===o&&(u=s),Zn(e,a,u)}}),ka)}function Br(e,t){var n=e.length;if(n)return mi(t+=t<0?n:0,n)?e[t]:o}function Ur(e,t,n){t=t.length?At(t,(function(e){return qs(e)?function(t){return Sr(t,1===e.length?e[0]:e)}:e})):[ou];var r=-1;return t=At(t,Vt(ai())),function(e,t){var r=e.length;for(e.sort((function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,s=o.length,a=n.length;++r<s;){var u=Ao(o[r],i[r]);if(u)return r>=a?u:u*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}));r--;)e[r]=e[r].value;return e}(Mr(e,(function(e,n,o){return{criteria:At(t,(function(t){return t(e)})),index:++r,value:e}})))}function Vr(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var s=t[r],a=Sr(e,s);n(a,s)&&Kr(i,vo(s,e),a)}return i}function Hr(e,t,n,r){var o=r?Nt:kt,i=-1,s=t.length,a=e;for(e===t&&(t=Io(t)),n&&(a=At(e,Vt(n)));++i<s;)for(var u=0,c=t[i],l=n?n(c):c;(u=o(a,l,u,r))>-1;)a!==e&&rt.call(a,u,1),rt.call(e,u,1);return e}function qr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;mi(o)?rt.call(e,o,1):co(e,o)}}return e}function zr(e,t){return e+fn(_n()*(t-e+1))}function Gr(e,t){var n="";if(!e||t<1||t>f)return n;do{t%2&&(n+=e),(t=fn(t/2))&&(e+=e)}while(t);return n}function Yr(e,t){return xi(Ai(e,t,ou),e+"")}function Jr(e){return Qn(Ba(e))}function Qr(e,t){var n=Ba(e);return Ni(n,sr(t,0,n.length))}function Kr(e,t,n,r){if(!ta(e))return e;for(var i=-1,s=(t=vo(t,e)).length,a=s-1,u=e;null!=u&&++i<s;){var c=Fi(t[i]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(i!=a){var f=u[c];(l=r?r(f,c,u):o)===o&&(l=ta(f)?f:mi(t[i+1])?[]:{})}er(u,c,l),u=u[c]}return e}var Xr=Rn?function(e,t){return Rn.set(e,t),e}:ou,Zr=ct?function(e,t){return ct(e,"toString",{configurable:!0,enumerable:!1,value:tu(t),writable:!0})}:ou;function eo(e){return Ni(Ba(e))}function to(e,t,n){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var s=r(i);++o<i;)s[o]=e[o+t];return s}function no(e,t){var n;return fr(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function ro(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,s=e[i];null!==s&&!ca(s)&&(n?s<=t:s<t)?r=i+1:o=i}return o}return oo(e,t,ou,n)}function oo(e,t,n,r){var i=0,s=null==e?0:e.length;if(0===s)return 0;for(var a=(t=n(t))!=t,u=null===t,c=ca(t),l=t===o;i<s;){var f=fn((i+s)/2),d=n(e[f]),p=d!==o,h=null===d,y=d==d,g=ca(d);if(a)var m=r||y;else m=l?y&&(r||p):u?y&&p&&(r||!h):c?y&&p&&!h&&(r||!g):!h&&!g&&(r?d<=t:d<t);m?i=f+1:s=f}return vn(s,4294967294)}function io(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var s=e[n],a=t?t(s):s;if(!n||!Bs(a,u)){var u=a;i[o++]=0===s?0:s}}return i}function so(e){return"number"==typeof e?e:ca(e)?d:+e}function ao(e){if("string"==typeof e)return e;if(qs(e))return At(e,ao)+"";if(ca(e))return Fn?Fn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function uo(e,t,n){var r=-1,o=Ct,i=e.length,s=!0,a=[],u=a;if(n)s=!1,o=Et;else if(i>=200){var c=t?null:Yo(e);if(c)return nn(c);s=!1,o=qt,u=new Gn}else u=t?[]:a;e:for(;++r<i;){var l=e[r],f=t?t(l):l;if(l=n||0!==l?l:0,s&&f==f){for(var d=u.length;d--;)if(u[d]===f)continue e;t&&u.push(f),a.push(l)}else o(u,f,n)||(u!==a&&u.push(f),a.push(l))}return a}function co(e,t){return null==(e=Oi(e,t=vo(t,e)))||delete e[Fi(Ki(t))]}function lo(e,t,n,r){return Kr(e,t,n(Sr(e,t)),r)}function fo(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?to(e,r?0:i,r?i+1:o):to(e,r?i+1:0,r?o:i)}function po(e,t){var n=e;return n instanceof Vn&&(n=n.value()),Tt(t,(function(e,t){return t.func.apply(t.thisArg,Ot([e],t.args))}),n)}function ho(e,t,n){var o=e.length;if(o<2)return o?uo(e[0]):[];for(var i=-1,s=r(o);++i<o;)for(var a=e[i],u=-1;++u<o;)u!=i&&(s[i]=lr(s[i]||a,e[u],t,n));return uo(gr(s,1),t,n)}function yo(e,t,n){for(var r=-1,i=e.length,s=t.length,a={};++r<i;){var u=r<s?t[r]:o;n(a,e[r],u)}return a}function go(e){return Ys(e)?e:[]}function mo(e){return"function"==typeof e?e:ou}function vo(e,t){return qs(e)?e:bi(e,t)?[e]:Mi(ba(e))}var bo=Yr;function wo(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:to(e,t,n)}var _o=lt||function(e){return it.clearTimeout(e)};function So(e,t){if(t)return e.slice();var n=e.length,r=Ve?Ve(n):new e.constructor(n);return e.copy(r),r}function Co(e){var t=new e.constructor(e.byteLength);return new Ue(t).set(new Ue(e)),t}function Eo(e,t){var n=t?Co(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ao(e,t){if(e!==t){var n=e!==o,r=null===e,i=e==e,s=ca(e),a=t!==o,u=null===t,c=t==t,l=ca(t);if(!u&&!l&&!s&&e>t||s&&a&&c&&!u&&!l||r&&a&&c||!n&&c||!i)return 1;if(!r&&!s&&!l&&e<t||l&&n&&i&&!r&&!s||u&&n&&i||!a&&i||!c)return-1}return 0}function Oo(e,t,n,o){for(var i=-1,s=e.length,a=n.length,u=-1,c=t.length,l=mn(s-a,0),f=r(c+l),d=!o;++u<c;)f[u]=t[u];for(;++i<a;)(d||i<s)&&(f[n[i]]=e[i]);for(;l--;)f[u++]=e[i++];return f}function To(e,t,n,o){for(var i=-1,s=e.length,a=-1,u=n.length,c=-1,l=t.length,f=mn(s-u,0),d=r(f+l),p=!o;++i<f;)d[i]=e[i];for(var h=i;++c<l;)d[h+c]=t[c];for(;++a<u;)(p||i<s)&&(d[h+n[a]]=e[i++]);return d}function Io(e,t){var n=-1,o=e.length;for(t||(t=r(o));++n<o;)t[n]=e[n];return t}function Ro(e,t,n,r){var i=!n;n||(n={});for(var s=-1,a=t.length;++s<a;){var u=t[s],c=r?r(n[u],e[u],u,n,e):o;c===o&&(c=e[u]),i?or(n,u,c):er(n,u,c)}return n}function Lo(e,t){return function(n,r){var o=qs(n)?vt:nr,i=t?t():{};return o(n,e,ai(r,2),i)}}function xo(e){return Yr((function(t,n){var r=-1,i=n.length,s=i>1?n[i-1]:o,a=i>2?n[2]:o;for(s=e.length>3&&"function"==typeof s?(i--,s):o,a&&vi(n[0],n[1],a)&&(s=i<3?o:s,i=1),t=Ee(t);++r<i;){var u=n[r];u&&e(t,u,r,s)}return t}))}function jo(e,t){return function(n,r){if(null==n)return n;if(!Gs(n))return e(n,r);for(var o=n.length,i=t?o:-1,s=Ee(n);(t?i--:++i<o)&&!1!==r(s[i],i,s););return n}}function ko(e){return function(t,n,r){for(var o=-1,i=Ee(t),s=r(t),a=s.length;a--;){var u=s[e?a:++o];if(!1===n(i[u],u,i))break}return t}}function No(e){return function(t){var n=Xt(t=ba(t))?sn(t):o,r=n?n[0]:t.charAt(0),i=n?wo(n,1).join(""):t.slice(1);return r[e]()+i}}function Po(e){return function(t){return Tt(Xa(Ha(t).replace(He,"")),e,"")}}function Do(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=$n(e.prototype),r=e.apply(n,t);return ta(r)?r:n}}function Mo(e){return function(t,n,r){var i=Ee(t);if(!Gs(t)){var s=ai(n,3);t=ja(t),n=function(e){return s(i[e],e,i)}}var a=e(t,n,r);return a>-1?i[s?t[a]:a]:o}}function Fo(e){return ti((function(t){var n=t.length,r=n,s=Un.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new Te(i);if(s&&!u&&"wrapper"==ii(a))var u=new Un([],!0)}for(r=u?r:n;++r<n;){var c=ii(a=t[r]),l="wrapper"==c?oi(a):o;u=l&&wi(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?u[ii(l[0])].apply(u,l[3]):1==a.length&&wi(a)?u[c]():u.thru(a)}return function(){var e=arguments,r=e[0];if(u&&1==e.length&&qs(r))return u.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}}))}function Wo(e,t,n,i,s,a,u,l,f,d){var p=t&c,h=1&t,y=2&t,g=24&t,m=512&t,v=y?o:Do(e);return function o(){for(var c=arguments.length,b=r(c),w=c;w--;)b[w]=arguments[w];if(g)var _=si(o),S=Yt(b,_);if(i&&(b=Oo(b,i,s,g)),a&&(b=To(b,a,u,g)),c-=S,g&&c<d){var C=tn(b,_);return zo(e,t,Wo,o.placeholder,n,b,C,l,f,d-c)}var E=h?n:this,A=y?E[e]:e;return c=b.length,l?b=Ti(b,l):m&&c>1&&b.reverse(),p&&f<c&&(b.length=f),this&&this!==it&&this instanceof o&&(A=v||Do(A)),A.apply(E,b)}}function $o(e,t){return function(n,r){return function(e,t,n,r){return br(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function Bo(e,t){return function(n,r){var i;if(n===o&&r===o)return t;if(n!==o&&(i=n),r!==o){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=ao(n),r=ao(r)):(n=so(n),r=so(r)),i=e(n,r)}return i}}function Uo(e){return ti((function(t){return t=At(t,Vt(ai())),Yr((function(n){var r=this;return e(t,(function(e){return mt(e,r,n)}))}))}))}function Vo(e,t){var n=(t=t===o?" ":ao(t)).length;if(n<2)return n?Gr(t,e):t;var r=Gr(t,ln(e/on(t)));return Xt(t)?wo(sn(r),0,e).join(""):r.slice(0,e)}function Ho(e){return function(t,n,i){return i&&"number"!=typeof i&&vi(t,n,i)&&(n=i=o),t=ha(t),n===o?(n=t,t=0):n=ha(n),function(e,t,n,o){for(var i=-1,s=mn(ln((t-e)/(n||1)),0),a=r(s);s--;)a[o?s:++i]=e,e+=n;return a}(t,n,i=i===o?t<n?1:-1:ha(i),e)}}function qo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ma(t),n=ma(n)),e(t,n)}}function zo(e,t,n,r,i,s,a,c,l,f){var d=8&t;t|=d?u:64,4&(t&=~(d?64:u))||(t&=-4);var p=[e,t,i,d?s:o,d?a:o,d?o:s,d?o:a,c,l,f],h=n.apply(o,p);return wi(e)&&Ri(h,p),h.placeholder=r,ji(h,e,t)}function Go(e){var t=Ce[e];return function(e,n){if(e=ma(e),(n=null==n?0:vn(ya(n),292))&&hn(e)){var r=(ba(e)+"e").split("e");return+((r=(ba(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Yo=On&&1/nn(new On([,-0]))[1]==l?function(e){return new On(e)}:cu;function Jo(e){return function(t){var n=pi(t);return n==S?Zt(t):n==T?rn(t):function(e,t){return At(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Qo(e,t,n,s,l,f,d,p){var h=2&t;if(!h&&"function"!=typeof e)throw new Te(i);var y=s?s.length:0;if(y||(t&=-97,s=l=o),d=d===o?d:mn(ya(d),0),p=p===o?p:ya(p),y-=l?l.length:0,64&t){var g=s,m=l;s=l=o}var v=h?o:oi(e),b=[e,t,n,s,l,g,m,f,d,p];if(v&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,s=r==c&&8==n||r==c&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!s)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var u=t[3];if(u){var l=e[3];e[3]=l?Oo(l,u,t[4]):u,e[4]=l?tn(e[3],a):t[4]}(u=t[5])&&(l=e[5],e[5]=l?To(l,u,t[6]):u,e[6]=l?tn(e[5],a):t[6]),(u=t[7])&&(e[7]=u),r&c&&(e[8]=null==e[8]?t[8]:vn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(b,v),e=b[0],t=b[1],n=b[2],s=b[3],l=b[4],!(p=b[9]=b[9]===o?h?0:e.length:mn(b[9]-y,0))&&24&t&&(t&=-25),t&&1!=t)w=8==t||16==t?function(e,t,n){var i=Do(e);return function s(){for(var a=arguments.length,u=r(a),c=a,l=si(s);c--;)u[c]=arguments[c];var f=a<3&&u[0]!==l&&u[a-1]!==l?[]:tn(u,l);return(a-=f.length)<n?zo(e,t,Wo,s.placeholder,o,u,f,o,o,n-a):mt(this&&this!==it&&this instanceof s?i:e,this,u)}}(e,t,p):t!=u&&33!=t||l.length?Wo.apply(o,b):function(e,t,n,o){var i=1&t,s=Do(e);return function t(){for(var a=-1,u=arguments.length,c=-1,l=o.length,f=r(l+u),d=this&&this!==it&&this instanceof t?s:e;++c<l;)f[c]=o[c];for(;u--;)f[c++]=arguments[++a];return mt(d,i?n:this,f)}}(e,t,n,s);else var w=function(e,t,n){var r=1&t,o=Do(e);return function t(){return(this&&this!==it&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,n);return ji((v?Xr:Ri)(w,b),e,t)}function Ko(e,t,n,r){return e===o||Bs(e,Le[n])&&!ke.call(r,n)?t:e}function Xo(e,t,n,r,i,s){return ta(e)&&ta(t)&&(s.set(t,e),$r(e,t,o,Xo,s),s.delete(t)),e}function Zo(e){return ia(e)?o:e}function ei(e,t,n,r,i,s){var a=1&n,u=e.length,c=t.length;if(u!=c&&!(a&&c>u))return!1;var l=s.get(e),f=s.get(t);if(l&&f)return l==t&&f==e;var d=-1,p=!0,h=2&n?new Gn:o;for(s.set(e,t),s.set(t,e);++d<u;){var y=e[d],g=t[d];if(r)var m=a?r(g,y,d,t,e,s):r(y,g,d,e,t,s);if(m!==o){if(m)continue;p=!1;break}if(h){if(!Rt(t,(function(e,t){if(!qt(h,t)&&(y===e||i(y,e,n,r,s)))return h.push(t)}))){p=!1;break}}else if(y!==g&&!i(y,g,n,r,s)){p=!1;break}}return s.delete(e),s.delete(t),p}function ti(e){return xi(Ai(e,o,zi),e+"")}function ni(e){return Cr(e,ja,fi)}function ri(e){return Cr(e,ka,di)}var oi=Rn?function(e){return Rn.get(e)}:cu;function ii(e){for(var t=e.name+"",n=Ln[t],r=ke.call(Ln,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function si(e){return(ke.call(Wn,"placeholder")?Wn:e).placeholder}function ai(){var e=Wn.iteratee||iu;return e=e===iu?Nr:e,arguments.length?e(arguments[0],arguments[1]):e}function ui(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function ci(e){for(var t=ja(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Ci(o)]}return t}function li(e,t){var n=function(e,t){return null==e?o:e[t]}(e,t);return kr(n)?n:o}var fi=dn?function(e){return null==e?[]:(e=Ee(e),St(dn(e),(function(t){return et.call(e,t)})))}:gu,di=dn?function(e){for(var t=[];e;)Ot(t,fi(e)),e=ze(e);return t}:gu,pi=Er;function hi(e,t,n){for(var r=-1,o=(t=vo(t,e)).length,i=!1;++r<o;){var s=Fi(t[r]);if(!(i=null!=e&&n(e,s)))break;e=e[s]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&ea(o)&&mi(s,o)&&(qs(e)||Hs(e))}function yi(e){return"function"!=typeof e.constructor||Si(e)?{}:$n(ze(e))}function gi(e){return qs(e)||Hs(e)||!!(ot&&e&&e[ot])}function mi(e,t){var n=typeof e;return!!(t=null==t?f:t)&&("number"==n||"symbol"!=n&&me.test(e))&&e>-1&&e%1==0&&e<t}function vi(e,t,n){if(!ta(n))return!1;var r=typeof t;return!!("number"==r?Gs(n)&&mi(t,n.length):"string"==r&&t in n)&&Bs(n[t],e)}function bi(e,t){if(qs(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ca(e))||Z.test(e)||!X.test(e)||null!=t&&e in Ee(t)}function wi(e){var t=ii(e),n=Wn[t];if("function"!=typeof n||!(t in Vn.prototype))return!1;if(e===n)return!0;var r=oi(n);return!!r&&e===r[0]}(Cn&&pi(new Cn(new ArrayBuffer(1)))!=j||En&&pi(new En)!=S||An&&pi(An.resolve())!=A||On&&pi(new On)!=T||Tn&&pi(new Tn)!=L)&&(pi=function(e){var t=Er(e),n=t==E?e.constructor:o,r=n?Wi(n):"";if(r)switch(r){case xn:return j;case jn:return S;case kn:return A;case Nn:return T;case Pn:return L}return t});var _i=xe?Xs:mu;function Si(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Le)}function Ci(e){return e==e&&!ta(e)}function Ei(e,t){return function(n){return null!=n&&n[e]===t&&(t!==o||e in Ee(n))}}function Ai(e,t,n){return t=mn(t===o?e.length-1:t,0),function(){for(var o=arguments,i=-1,s=mn(o.length-t,0),a=r(s);++i<s;)a[i]=o[t+i];i=-1;for(var u=r(t+1);++i<t;)u[i]=o[i];return u[t]=n(a),mt(e,this,u)}}function Oi(e,t){return t.length<2?e:Sr(e,to(t,0,-1))}function Ti(e,t){for(var n=e.length,r=vn(t.length,n),i=Io(e);r--;){var s=t[r];e[r]=mi(s,n)?i[s]:o}return e}function Ii(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ri=ki(Xr),Li=Ft||function(e,t){return it.setTimeout(e,t)},xi=ki(Zr);function ji(e,t,n){var r=t+"";return xi(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ie,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return bt(h,(function(n){var r="_."+n[0];t&n[1]&&!Ct(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(se);return t?t[1].split(ae):[]}(r),n)))}function ki(e){var t=0,n=0;return function(){var r=bn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Ni(e,t){var n=-1,r=e.length,i=r-1;for(t=t===o?r:t;++n<t;){var s=zr(n,i),a=e[s];e[s]=e[n],e[n]=a}return e.length=t,e}var Pi,Di,Mi=(Pi=Ps((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,(function(e,n,r,o){t.push(r?o.replace(le,"$1"):n||e)})),t}),(function(e){return 500===Di.size&&Di.clear(),e})),Di=Pi.cache,Pi);function Fi(e){if("string"==typeof e||ca(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Wi(e){if(null!=e){try{return je.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function $i(e){if(e instanceof Vn)return e.clone();var t=new Un(e.__wrapped__,e.__chain__);return t.__actions__=Io(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Bi=Yr((function(e,t){return Ys(e)?lr(e,gr(t,1,Ys,!0)):[]})),Ui=Yr((function(e,t){var n=Ki(t);return Ys(n)&&(n=o),Ys(e)?lr(e,gr(t,1,Ys,!0),ai(n,2)):[]})),Vi=Yr((function(e,t){var n=Ki(t);return Ys(n)&&(n=o),Ys(e)?lr(e,gr(t,1,Ys,!0),o,n):[]}));function Hi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ya(n);return o<0&&(o=mn(r+o,0)),jt(e,ai(t,3),o)}function qi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==o&&(i=ya(n),i=n<0?mn(r+i,0):vn(i,r-1)),jt(e,ai(t,3),i,!0)}function zi(e){return null!=e&&e.length?gr(e,1):[]}function Gi(e){return e&&e.length?e[0]:o}var Yi=Yr((function(e){var t=At(e,go);return t.length&&t[0]===e[0]?Ir(t):[]})),Ji=Yr((function(e){var t=Ki(e),n=At(e,go);return t===Ki(n)?t=o:n.pop(),n.length&&n[0]===e[0]?Ir(n,ai(t,2)):[]})),Qi=Yr((function(e){var t=Ki(e),n=At(e,go);return(t="function"==typeof t?t:o)&&n.pop(),n.length&&n[0]===e[0]?Ir(n,o,t):[]}));function Ki(e){var t=null==e?0:e.length;return t?e[t-1]:o}var Xi=Yr(Zi);function Zi(e,t){return e&&e.length&&t&&t.length?Hr(e,t):e}var es=ti((function(e,t){var n=null==e?0:e.length,r=ir(e,t);return qr(e,At(t,(function(e){return mi(e,n)?+e:e})).sort(Ao)),r}));function ts(e){return null==e?e:Sn.call(e)}var ns=Yr((function(e){return uo(gr(e,1,Ys,!0))})),rs=Yr((function(e){var t=Ki(e);return Ys(t)&&(t=o),uo(gr(e,1,Ys,!0),ai(t,2))})),os=Yr((function(e){var t=Ki(e);return t="function"==typeof t?t:o,uo(gr(e,1,Ys,!0),o,t)}));function is(e){if(!e||!e.length)return[];var t=0;return e=St(e,(function(e){if(Ys(e))return t=mn(e.length,t),!0})),Bt(t,(function(t){return At(e,Mt(t))}))}function ss(e,t){if(!e||!e.length)return[];var n=is(e);return null==t?n:At(n,(function(e){return mt(t,o,e)}))}var as=Yr((function(e,t){return Ys(e)?lr(e,t):[]})),us=Yr((function(e){return ho(St(e,Ys))})),cs=Yr((function(e){var t=Ki(e);return Ys(t)&&(t=o),ho(St(e,Ys),ai(t,2))})),ls=Yr((function(e){var t=Ki(e);return t="function"==typeof t?t:o,ho(St(e,Ys),o,t)})),fs=Yr(is),ds=Yr((function(e){var t=e.length,n=t>1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,ss(e,n)}));function ps(e){var t=Wn(e);return t.__chain__=!0,t}function hs(e,t){return t(e)}var ys=ti((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return ir(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Vn&&mi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:hs,args:[i],thisArg:o}),new Un(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)})),gs=Lo((function(e,t,n){ke.call(e,n)?++e[n]:or(e,n,1)})),ms=Mo(Hi),vs=Mo(qi);function bs(e,t){return(qs(e)?bt:fr)(e,ai(t,3))}function ws(e,t){return(qs(e)?wt:dr)(e,ai(t,3))}var _s=Lo((function(e,t,n){ke.call(e,n)?e[n].push(t):or(e,n,[t])})),Ss=Yr((function(e,t,n){var o=-1,i="function"==typeof t,s=Gs(e)?r(e.length):[];return fr(e,(function(e){s[++o]=i?mt(t,e,n):Rr(e,t,n)})),s})),Cs=Lo((function(e,t,n){or(e,n,t)}));function Es(e,t){return(qs(e)?At:Mr)(e,ai(t,3))}var As=Lo((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),Os=Yr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&vi(e,t[0],t[1])?t=[]:n>2&&vi(t[0],t[1],t[2])&&(t=[t[0]]),Ur(e,gr(t,1),[])})),Ts=Lt||function(){return it.Date.now()};function Is(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Qo(e,c,o,o,o,o,t)}function Rs(e,t){var n;if("function"!=typeof t)throw new Te(i);return e=ya(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var Ls=Yr((function(e,t,n){var r=1;if(n.length){var o=tn(n,si(Ls));r|=u}return Qo(e,r,t,n,o)})),xs=Yr((function(e,t,n){var r=3;if(n.length){var o=tn(n,si(xs));r|=u}return Qo(t,r,e,n,o)}));function js(e,t,n){var r,s,a,u,c,l,f=0,d=!1,p=!1,h=!0;if("function"!=typeof e)throw new Te(i);function y(t){var n=r,i=s;return r=s=o,f=t,u=e.apply(i,n)}function g(e){return f=e,c=Li(v,t),d?y(e):u}function m(e){var n=e-l;return l===o||n>=t||n<0||p&&e-f>=a}function v(){var e=Ts();if(m(e))return b(e);c=Li(v,function(e){var n=t-(e-l);return p?vn(n,a-(e-f)):n}(e))}function b(e){return c=o,h&&r?y(e):(r=s=o,u)}function w(){var e=Ts(),n=m(e);if(r=arguments,s=this,l=e,n){if(c===o)return g(l);if(p)return _o(c),c=Li(v,t),y(l)}return c===o&&(c=Li(v,t)),u}return t=ma(t)||0,ta(n)&&(d=!!n.leading,a=(p="maxWait"in n)?mn(ma(n.maxWait)||0,t):a,h="trailing"in n?!!n.trailing:h),w.cancel=function(){c!==o&&_o(c),f=0,r=l=s=c=o},w.flush=function(){return c===o?u:b(Ts())},w}var ks=Yr((function(e,t){return cr(e,1,t)})),Ns=Yr((function(e,t,n){return cr(e,ma(t)||0,n)}));function Ps(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Te(i);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s)||i,s};return n.cache=new(Ps.Cache||zn),n}function Ds(e){if("function"!=typeof e)throw new Te(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ps.Cache=zn;var Ms=bo((function(e,t){var n=(t=1==t.length&&qs(t[0])?At(t[0],Vt(ai())):At(gr(t,1),Vt(ai()))).length;return Yr((function(r){for(var o=-1,i=vn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return mt(e,this,r)}))})),Fs=Yr((function(e,t){var n=tn(t,si(Fs));return Qo(e,u,o,t,n)})),Ws=Yr((function(e,t){var n=tn(t,si(Ws));return Qo(e,64,o,t,n)})),$s=ti((function(e,t){return Qo(e,256,o,o,o,t)}));function Bs(e,t){return e===t||e!=e&&t!=t}var Us=qo(Ar),Vs=qo((function(e,t){return e>=t})),Hs=Lr(function(){return arguments}())?Lr:function(e){return na(e)&&ke.call(e,"callee")&&!et.call(e,"callee")},qs=r.isArray,zs=ft?Vt(ft):function(e){return na(e)&&Er(e)==x};function Gs(e){return null!=e&&ea(e.length)&&!Xs(e)}function Ys(e){return na(e)&&Gs(e)}var Js=pn||mu,Qs=dt?Vt(dt):function(e){return na(e)&&Er(e)==v};function Ks(e){if(!na(e))return!1;var t=Er(e);return t==b||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ia(e)}function Xs(e){if(!ta(e))return!1;var t=Er(e);return t==w||t==_||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Zs(e){return"number"==typeof e&&e==ya(e)}function ea(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function ta(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function na(e){return null!=e&&"object"==typeof e}var ra=pt?Vt(pt):function(e){return na(e)&&pi(e)==S};function oa(e){return"number"==typeof e||na(e)&&Er(e)==C}function ia(e){if(!na(e)||Er(e)!=E)return!1;var t=ze(e);if(null===t)return!0;var n=ke.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&je.call(n)==Me}var sa=ht?Vt(ht):function(e){return na(e)&&Er(e)==O},aa=yt?Vt(yt):function(e){return na(e)&&pi(e)==T};function ua(e){return"string"==typeof e||!qs(e)&&na(e)&&Er(e)==I}function ca(e){return"symbol"==typeof e||na(e)&&Er(e)==R}var la=gt?Vt(gt):function(e){return na(e)&&ea(e.length)&&!!Xe[Er(e)]},fa=qo(Dr),da=qo((function(e,t){return e<=t}));function pa(e){if(!e)return[];if(Gs(e))return ua(e)?sn(e):Io(e);if(st&&e[st])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[st]());var t=pi(e);return(t==S?Zt:t==T?nn:Ba)(e)}function ha(e){return e?(e=ma(e))===l||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ya(e){var t=ha(e),n=t%1;return t==t?n?t-n:t:0}function ga(e){return e?sr(ya(e),0,p):0}function ma(e){if("number"==typeof e)return e;if(ca(e))return d;if(ta(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ta(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Ut(e);var n=he.test(e);return n||ge.test(e)?nt(e.slice(2),n?2:8):pe.test(e)?d:+e}function va(e){return Ro(e,ka(e))}function ba(e){return null==e?"":ao(e)}var wa=xo((function(e,t){if(Si(t)||Gs(t))Ro(t,ja(t),e);else for(var n in t)ke.call(t,n)&&er(e,n,t[n])})),_a=xo((function(e,t){Ro(t,ka(t),e)})),Sa=xo((function(e,t,n,r){Ro(t,ka(t),e,r)})),Ca=xo((function(e,t,n,r){Ro(t,ja(t),e,r)})),Ea=ti(ir),Aa=Yr((function(e,t){e=Ee(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&vi(t[0],t[1],i)&&(r=1);++n<r;)for(var s=t[n],a=ka(s),u=-1,c=a.length;++u<c;){var l=a[u],f=e[l];(f===o||Bs(f,Le[l])&&!ke.call(e,l))&&(e[l]=s[l])}return e})),Oa=Yr((function(e){return e.push(o,Xo),mt(Pa,o,e)}));function Ta(e,t,n){var r=null==e?o:Sr(e,t);return r===o?n:r}function Ia(e,t){return null!=e&&hi(e,t,Tr)}var Ra=$o((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=De.call(t)),e[t]=n}),tu(ou)),La=$o((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=De.call(t)),ke.call(e,t)?e[t].push(n):e[t]=[n]}),ai),xa=Yr(Rr);function ja(e){return Gs(e)?Jn(e):Pr(e)}function ka(e){return Gs(e)?Jn(e,!0):function(e){if(!ta(e))return function(e){var t=[];if(null!=e)for(var n in Ee(e))t.push(n);return t}(e);var t=Si(e),n=[];for(var r in e)("constructor"!=r||!t&&ke.call(e,r))&&n.push(r);return n}(e)}var Na=xo((function(e,t,n){$r(e,t,n)})),Pa=xo((function(e,t,n,r){$r(e,t,n,r)})),Da=ti((function(e,t){var n={};if(null==e)return n;var r=!1;t=At(t,(function(t){return t=vo(t,e),r||(r=t.length>1),t})),Ro(e,ri(e),n),r&&(n=ar(n,7,Zo));for(var o=t.length;o--;)co(n,t[o]);return n})),Ma=ti((function(e,t){return null==e?{}:function(e,t){return Vr(e,t,(function(t,n){return Ia(e,n)}))}(e,t)}));function Fa(e,t){if(null==e)return{};var n=At(ri(e),(function(e){return[e]}));return t=ai(t),Vr(e,n,(function(e,n){return t(e,n[0])}))}var Wa=Jo(ja),$a=Jo(ka);function Ba(e){return null==e?[]:Ht(e,ja(e))}var Ua=Po((function(e,t,n){return t=t.toLowerCase(),e+(n?Va(t):t)}));function Va(e){return Ka(ba(e).toLowerCase())}function Ha(e){return(e=ba(e))&&e.replace(ve,Jt).replace(qe,"")}var qa=Po((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),za=Po((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ga=No("toLowerCase"),Ya=Po((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Ja=Po((function(e,t,n){return e+(n?" ":"")+Ka(t)})),Qa=Po((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ka=No("toUpperCase");function Xa(e,t,n){return e=ba(e),(t=n?o:t)===o?function(e){return Je.test(e)}(e)?function(e){return e.match(Ge)||[]}(e):function(e){return e.match(ue)||[]}(e):e.match(t)||[]}var Za=Yr((function(e,t){try{return mt(e,o,t)}catch(e){return Ks(e)?e:new _e(e)}})),eu=ti((function(e,t){return bt(t,(function(t){t=Fi(t),or(e,t,Ls(e[t],e))})),e}));function tu(e){return function(){return e}}var nu=Fo(),ru=Fo(!0);function ou(e){return e}function iu(e){return Nr("function"==typeof e?e:ar(e,1))}var su=Yr((function(e,t){return function(n){return Rr(n,e,t)}})),au=Yr((function(e,t){return function(n){return Rr(e,n,t)}}));function uu(e,t,n){var r=ja(t),o=_r(t,r);null!=n||ta(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=_r(t,ja(t)));var i=!(ta(n)&&"chain"in n&&!n.chain),s=Xs(e);return bt(o,(function(n){var r=t[n];e[n]=r,s&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__),o=n.__actions__=Io(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Ot([this.value()],arguments))})})),e}function cu(){}var lu=Uo(At),fu=Uo(_t),du=Uo(Rt);function pu(e){return bi(e)?Mt(Fi(e)):function(e){return function(t){return Sr(t,e)}}(e)}var hu=Ho(),yu=Ho(!0);function gu(){return[]}function mu(){return!1}var vu,bu=Bo((function(e,t){return e+t}),0),wu=Go("ceil"),_u=Bo((function(e,t){return e/t}),1),Su=Go("floor"),Cu=Bo((function(e,t){return e*t}),1),Eu=Go("round"),Au=Bo((function(e,t){return e-t}),0);return Wn.after=function(e,t){if("function"!=typeof t)throw new Te(i);return e=ya(e),function(){if(--e<1)return t.apply(this,arguments)}},Wn.ary=Is,Wn.assign=wa,Wn.assignIn=_a,Wn.assignInWith=Sa,Wn.assignWith=Ca,Wn.at=Ea,Wn.before=Rs,Wn.bind=Ls,Wn.bindAll=eu,Wn.bindKey=xs,Wn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return qs(e)?e:[e]},Wn.chain=ps,Wn.chunk=function(e,t,n){t=(n?vi(e,t,n):t===o)?1:mn(ya(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var s=0,a=0,u=r(ln(i/t));s<i;)u[a++]=to(e,s,s+=t);return u},Wn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},Wn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return Ot(qs(n)?Io(n):[n],gr(t,1))},Wn.cond=function(e){var t=null==e?0:e.length,n=ai();return e=t?At(e,(function(e){if("function"!=typeof e[1])throw new Te(i);return[n(e[0]),e[1]]})):[],Yr((function(n){for(var r=-1;++r<t;){var o=e[r];if(mt(o[0],this,n))return mt(o[1],this,n)}}))},Wn.conforms=function(e){return function(e){var t=ja(e);return function(n){return ur(n,e,t)}}(ar(e,1))},Wn.constant=tu,Wn.countBy=gs,Wn.create=function(e,t){var n=$n(e);return null==t?n:rr(n,t)},Wn.curry=function e(t,n,r){var i=Qo(t,8,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Wn.curryRight=function e(t,n,r){var i=Qo(t,16,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Wn.debounce=js,Wn.defaults=Aa,Wn.defaultsDeep=Oa,Wn.defer=ks,Wn.delay=Ns,Wn.difference=Bi,Wn.differenceBy=Ui,Wn.differenceWith=Vi,Wn.drop=function(e,t,n){var r=null==e?0:e.length;return r?to(e,(t=n||t===o?1:ya(t))<0?0:t,r):[]},Wn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?to(e,0,(t=r-(t=n||t===o?1:ya(t)))<0?0:t):[]},Wn.dropRightWhile=function(e,t){return e&&e.length?fo(e,ai(t,3),!0,!0):[]},Wn.dropWhile=function(e,t){return e&&e.length?fo(e,ai(t,3),!0):[]},Wn.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&vi(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=ya(n))<0&&(n=-n>i?0:i+n),(r=r===o||r>i?i:ya(r))<0&&(r+=i),r=n>r?0:ga(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Wn.filter=function(e,t){return(qs(e)?St:yr)(e,ai(t,3))},Wn.flatMap=function(e,t){return gr(Es(e,t),1)},Wn.flatMapDeep=function(e,t){return gr(Es(e,t),l)},Wn.flatMapDepth=function(e,t,n){return n=n===o?1:ya(n),gr(Es(e,t),n)},Wn.flatten=zi,Wn.flattenDeep=function(e){return null!=e&&e.length?gr(e,l):[]},Wn.flattenDepth=function(e,t){return null!=e&&e.length?gr(e,t=t===o?1:ya(t)):[]},Wn.flip=function(e){return Qo(e,512)},Wn.flow=nu,Wn.flowRight=ru,Wn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},Wn.functions=function(e){return null==e?[]:_r(e,ja(e))},Wn.functionsIn=function(e){return null==e?[]:_r(e,ka(e))},Wn.groupBy=_s,Wn.initial=function(e){return null!=e&&e.length?to(e,0,-1):[]},Wn.intersection=Yi,Wn.intersectionBy=Ji,Wn.intersectionWith=Qi,Wn.invert=Ra,Wn.invertBy=La,Wn.invokeMap=Ss,Wn.iteratee=iu,Wn.keyBy=Cs,Wn.keys=ja,Wn.keysIn=ka,Wn.map=Es,Wn.mapKeys=function(e,t){var n={};return t=ai(t,3),br(e,(function(e,r,o){or(n,t(e,r,o),e)})),n},Wn.mapValues=function(e,t){var n={};return t=ai(t,3),br(e,(function(e,r,o){or(n,r,t(e,r,o))})),n},Wn.matches=function(e){return Fr(ar(e,1))},Wn.matchesProperty=function(e,t){return Wr(e,ar(t,1))},Wn.memoize=Ps,Wn.merge=Na,Wn.mergeWith=Pa,Wn.method=su,Wn.methodOf=au,Wn.mixin=uu,Wn.negate=Ds,Wn.nthArg=function(e){return e=ya(e),Yr((function(t){return Br(t,e)}))},Wn.omit=Da,Wn.omitBy=function(e,t){return Fa(e,Ds(ai(t)))},Wn.once=function(e){return Rs(2,e)},Wn.orderBy=function(e,t,n,r){return null==e?[]:(qs(t)||(t=null==t?[]:[t]),qs(n=r?o:n)||(n=null==n?[]:[n]),Ur(e,t,n))},Wn.over=lu,Wn.overArgs=Ms,Wn.overEvery=fu,Wn.overSome=du,Wn.partial=Fs,Wn.partialRight=Ws,Wn.partition=As,Wn.pick=Ma,Wn.pickBy=Fa,Wn.property=pu,Wn.propertyOf=function(e){return function(t){return null==e?o:Sr(e,t)}},Wn.pull=Xi,Wn.pullAll=Zi,Wn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Hr(e,t,ai(n,2)):e},Wn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Hr(e,t,o,n):e},Wn.pullAt=es,Wn.range=hu,Wn.rangeRight=yu,Wn.rearg=$s,Wn.reject=function(e,t){return(qs(e)?St:yr)(e,Ds(ai(t,3)))},Wn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=ai(t,3);++r<i;){var s=e[r];t(s,r,e)&&(n.push(s),o.push(r))}return qr(e,o),n},Wn.rest=function(e,t){if("function"!=typeof e)throw new Te(i);return Yr(e,t=t===o?t:ya(t))},Wn.reverse=ts,Wn.sampleSize=function(e,t,n){return t=(n?vi(e,t,n):t===o)?1:ya(t),(qs(e)?Kn:Qr)(e,t)},Wn.set=function(e,t,n){return null==e?e:Kr(e,t,n)},Wn.setWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:Kr(e,t,n,r)},Wn.shuffle=function(e){return(qs(e)?Xn:eo)(e)},Wn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&vi(e,t,n)?(t=0,n=r):(t=null==t?0:ya(t),n=n===o?r:ya(n)),to(e,t,n)):[]},Wn.sortBy=Os,Wn.sortedUniq=function(e){return e&&e.length?io(e):[]},Wn.sortedUniqBy=function(e,t){return e&&e.length?io(e,ai(t,2)):[]},Wn.split=function(e,t,n){return n&&"number"!=typeof n&&vi(e,t,n)&&(t=n=o),(n=n===o?p:n>>>0)?(e=ba(e))&&("string"==typeof t||null!=t&&!sa(t))&&!(t=ao(t))&&Xt(e)?wo(sn(e),0,n):e.split(t,n):[]},Wn.spread=function(e,t){if("function"!=typeof e)throw new Te(i);return t=null==t?0:mn(ya(t),0),Yr((function(n){var r=n[t],o=wo(n,0,t);return r&&Ot(o,r),mt(e,this,o)}))},Wn.tail=function(e){var t=null==e?0:e.length;return t?to(e,1,t):[]},Wn.take=function(e,t,n){return e&&e.length?to(e,0,(t=n||t===o?1:ya(t))<0?0:t):[]},Wn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?to(e,(t=r-(t=n||t===o?1:ya(t)))<0?0:t,r):[]},Wn.takeRightWhile=function(e,t){return e&&e.length?fo(e,ai(t,3),!1,!0):[]},Wn.takeWhile=function(e,t){return e&&e.length?fo(e,ai(t,3)):[]},Wn.tap=function(e,t){return t(e),e},Wn.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new Te(i);return ta(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),js(e,t,{leading:r,maxWait:t,trailing:o})},Wn.thru=hs,Wn.toArray=pa,Wn.toPairs=Wa,Wn.toPairsIn=$a,Wn.toPath=function(e){return qs(e)?At(e,Fi):ca(e)?[e]:Io(Mi(ba(e)))},Wn.toPlainObject=va,Wn.transform=function(e,t,n){var r=qs(e),o=r||Js(e)||la(e);if(t=ai(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:ta(e)&&Xs(i)?$n(ze(e)):{}}return(o?bt:br)(e,(function(e,r,o){return t(n,e,r,o)})),n},Wn.unary=function(e){return Is(e,1)},Wn.union=ns,Wn.unionBy=rs,Wn.unionWith=os,Wn.uniq=function(e){return e&&e.length?uo(e):[]},Wn.uniqBy=function(e,t){return e&&e.length?uo(e,ai(t,2)):[]},Wn.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?uo(e,o,t):[]},Wn.unset=function(e,t){return null==e||co(e,t)},Wn.unzip=is,Wn.unzipWith=ss,Wn.update=function(e,t,n){return null==e?e:lo(e,t,mo(n))},Wn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:lo(e,t,mo(n),r)},Wn.values=Ba,Wn.valuesIn=function(e){return null==e?[]:Ht(e,ka(e))},Wn.without=as,Wn.words=Xa,Wn.wrap=function(e,t){return Fs(mo(t),e)},Wn.xor=us,Wn.xorBy=cs,Wn.xorWith=ls,Wn.zip=fs,Wn.zipObject=function(e,t){return yo(e||[],t||[],er)},Wn.zipObjectDeep=function(e,t){return yo(e||[],t||[],Kr)},Wn.zipWith=ds,Wn.entries=Wa,Wn.entriesIn=$a,Wn.extend=_a,Wn.extendWith=Sa,uu(Wn,Wn),Wn.add=bu,Wn.attempt=Za,Wn.camelCase=Ua,Wn.capitalize=Va,Wn.ceil=wu,Wn.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=ma(n))==n?n:0),t!==o&&(t=(t=ma(t))==t?t:0),sr(ma(e),t,n)},Wn.clone=function(e){return ar(e,4)},Wn.cloneDeep=function(e){return ar(e,5)},Wn.cloneDeepWith=function(e,t){return ar(e,5,t="function"==typeof t?t:o)},Wn.cloneWith=function(e,t){return ar(e,4,t="function"==typeof t?t:o)},Wn.conformsTo=function(e,t){return null==t||ur(e,t,ja(t))},Wn.deburr=Ha,Wn.defaultTo=function(e,t){return null==e||e!=e?t:e},Wn.divide=_u,Wn.endsWith=function(e,t,n){e=ba(e),t=ao(t);var r=e.length,i=n=n===o?r:sr(ya(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Wn.eq=Bs,Wn.escape=function(e){return(e=ba(e))&&Y.test(e)?e.replace(z,Qt):e},Wn.escapeRegExp=function(e){return(e=ba(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Wn.every=function(e,t,n){var r=qs(e)?_t:pr;return n&&vi(e,t,n)&&(t=o),r(e,ai(t,3))},Wn.find=ms,Wn.findIndex=Hi,Wn.findKey=function(e,t){return xt(e,ai(t,3),br)},Wn.findLast=vs,Wn.findLastIndex=qi,Wn.findLastKey=function(e,t){return xt(e,ai(t,3),wr)},Wn.floor=Su,Wn.forEach=bs,Wn.forEachRight=ws,Wn.forIn=function(e,t){return null==e?e:mr(e,ai(t,3),ka)},Wn.forInRight=function(e,t){return null==e?e:vr(e,ai(t,3),ka)},Wn.forOwn=function(e,t){return e&&br(e,ai(t,3))},Wn.forOwnRight=function(e,t){return e&&wr(e,ai(t,3))},Wn.get=Ta,Wn.gt=Us,Wn.gte=Vs,Wn.has=function(e,t){return null!=e&&hi(e,t,Or)},Wn.hasIn=Ia,Wn.head=Gi,Wn.identity=ou,Wn.includes=function(e,t,n,r){e=Gs(e)?e:Ba(e),n=n&&!r?ya(n):0;var o=e.length;return n<0&&(n=mn(o+n,0)),ua(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&kt(e,t,n)>-1},Wn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ya(n);return o<0&&(o=mn(r+o,0)),kt(e,t,o)},Wn.inRange=function(e,t,n){return t=ha(t),n===o?(n=t,t=0):n=ha(n),function(e,t,n){return e>=vn(t,n)&&e<mn(t,n)}(e=ma(e),t,n)},Wn.invoke=xa,Wn.isArguments=Hs,Wn.isArray=qs,Wn.isArrayBuffer=zs,Wn.isArrayLike=Gs,Wn.isArrayLikeObject=Ys,Wn.isBoolean=function(e){return!0===e||!1===e||na(e)&&Er(e)==m},Wn.isBuffer=Js,Wn.isDate=Qs,Wn.isElement=function(e){return na(e)&&1===e.nodeType&&!ia(e)},Wn.isEmpty=function(e){if(null==e)return!0;if(Gs(e)&&(qs(e)||"string"==typeof e||"function"==typeof e.splice||Js(e)||la(e)||Hs(e)))return!e.length;var t=pi(e);if(t==S||t==T)return!e.size;if(Si(e))return!Pr(e).length;for(var n in e)if(ke.call(e,n))return!1;return!0},Wn.isEqual=function(e,t){return xr(e,t)},Wn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:o)?n(e,t):o;return r===o?xr(e,t,o,n):!!r},Wn.isError=Ks,Wn.isFinite=function(e){return"number"==typeof e&&hn(e)},Wn.isFunction=Xs,Wn.isInteger=Zs,Wn.isLength=ea,Wn.isMap=ra,Wn.isMatch=function(e,t){return e===t||jr(e,t,ci(t))},Wn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:o,jr(e,t,ci(t),n)},Wn.isNaN=function(e){return oa(e)&&e!=+e},Wn.isNative=function(e){if(_i(e))throw new _e("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return kr(e)},Wn.isNil=function(e){return null==e},Wn.isNull=function(e){return null===e},Wn.isNumber=oa,Wn.isObject=ta,Wn.isObjectLike=na,Wn.isPlainObject=ia,Wn.isRegExp=sa,Wn.isSafeInteger=function(e){return Zs(e)&&e>=-9007199254740991&&e<=f},Wn.isSet=aa,Wn.isString=ua,Wn.isSymbol=ca,Wn.isTypedArray=la,Wn.isUndefined=function(e){return e===o},Wn.isWeakMap=function(e){return na(e)&&pi(e)==L},Wn.isWeakSet=function(e){return na(e)&&"[object WeakSet]"==Er(e)},Wn.join=function(e,t){return null==e?"":yn.call(e,t)},Wn.kebabCase=qa,Wn.last=Ki,Wn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=ya(n))<0?mn(r+i,0):vn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):jt(e,Pt,i,!0)},Wn.lowerCase=za,Wn.lowerFirst=Ga,Wn.lt=fa,Wn.lte=da,Wn.max=function(e){return e&&e.length?hr(e,ou,Ar):o},Wn.maxBy=function(e,t){return e&&e.length?hr(e,ai(t,2),Ar):o},Wn.mean=function(e){return Dt(e,ou)},Wn.meanBy=function(e,t){return Dt(e,ai(t,2))},Wn.min=function(e){return e&&e.length?hr(e,ou,Dr):o},Wn.minBy=function(e,t){return e&&e.length?hr(e,ai(t,2),Dr):o},Wn.stubArray=gu,Wn.stubFalse=mu,Wn.stubObject=function(){return{}},Wn.stubString=function(){return""},Wn.stubTrue=function(){return!0},Wn.multiply=Cu,Wn.nth=function(e,t){return e&&e.length?Br(e,ya(t)):o},Wn.noConflict=function(){return it._===this&&(it._=Fe),this},Wn.noop=cu,Wn.now=Ts,Wn.pad=function(e,t,n){e=ba(e);var r=(t=ya(t))?on(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Vo(fn(o),n)+e+Vo(ln(o),n)},Wn.padEnd=function(e,t,n){e=ba(e);var r=(t=ya(t))?on(e):0;return t&&r<t?e+Vo(t-r,n):e},Wn.padStart=function(e,t,n){e=ba(e);var r=(t=ya(t))?on(e):0;return t&&r<t?Vo(t-r,n)+e:e},Wn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),wn(ba(e).replace(re,""),t||0)},Wn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&vi(e,t,n)&&(t=n=o),n===o&&("boolean"==typeof t?(n=t,t=o):"boolean"==typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=ha(e),t===o?(t=e,e=0):t=ha(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=_n();return vn(e+i*(t-e+tt("1e-"+((i+"").length-1))),t)}return zr(e,t)},Wn.reduce=function(e,t,n){var r=qs(e)?Tt:Wt,o=arguments.length<3;return r(e,ai(t,4),n,o,fr)},Wn.reduceRight=function(e,t,n){var r=qs(e)?It:Wt,o=arguments.length<3;return r(e,ai(t,4),n,o,dr)},Wn.repeat=function(e,t,n){return t=(n?vi(e,t,n):t===o)?1:ya(t),Gr(ba(e),t)},Wn.replace=function(){var e=arguments,t=ba(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Wn.result=function(e,t,n){var r=-1,i=(t=vo(t,e)).length;for(i||(i=1,e=o);++r<i;){var s=null==e?o:e[Fi(t[r])];s===o&&(r=i,s=n),e=Xs(s)?s.call(e):s}return e},Wn.round=Eu,Wn.runInContext=e,Wn.sample=function(e){return(qs(e)?Qn:Jr)(e)},Wn.size=function(e){if(null==e)return 0;if(Gs(e))return ua(e)?on(e):e.length;var t=pi(e);return t==S||t==T?e.size:Pr(e).length},Wn.snakeCase=Ya,Wn.some=function(e,t,n){var r=qs(e)?Rt:no;return n&&vi(e,t,n)&&(t=o),r(e,ai(t,3))},Wn.sortedIndex=function(e,t){return ro(e,t)},Wn.sortedIndexBy=function(e,t,n){return oo(e,t,ai(n,2))},Wn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ro(e,t);if(r<n&&Bs(e[r],t))return r}return-1},Wn.sortedLastIndex=function(e,t){return ro(e,t,!0)},Wn.sortedLastIndexBy=function(e,t,n){return oo(e,t,ai(n,2),!0)},Wn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=ro(e,t,!0)-1;if(Bs(e[n],t))return n}return-1},Wn.startCase=Ja,Wn.startsWith=function(e,t,n){return e=ba(e),n=null==n?0:sr(ya(n),0,e.length),t=ao(t),e.slice(n,n+t.length)==t},Wn.subtract=Au,Wn.sum=function(e){return e&&e.length?$t(e,ou):0},Wn.sumBy=function(e,t){return e&&e.length?$t(e,ai(t,2)):0},Wn.template=function(e,t,n){var r=Wn.templateSettings;n&&vi(e,t,n)&&(t=o),e=ba(e),t=Sa({},t,r,Ko);var i,s,a=Sa({},t.imports,r.imports,Ko),u=ja(a),c=Ht(a,u),l=0,f=t.interpolate||be,d="__p += '",p=Ae((t.escape||be).source+"|"+f.source+"|"+(f===K?fe:be).source+"|"+(t.evaluate||be).source+"|$","g"),h="//# sourceURL="+(ke.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ke+"]")+"\n";e.replace(p,(function(t,n,r,o,a,u){return r||(r=o),d+=e.slice(l,u).replace(we,Kt),n&&(i=!0,d+="' +\n__e("+n+") +\n'"),a&&(s=!0,d+="';\n"+a+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=u+t.length,t})),d+="';\n";var y=ke.call(t,"variable")&&t.variable;if(y){if(ce.test(y))throw new _e("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(s?d.replace(U,""):d).replace(V,"$1").replace(H,"$1;"),d="function("+(y||"obj")+") {\n"+(y?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var g=Za((function(){return Se(u,h+"return "+d).apply(o,c)}));if(g.source=d,Ks(g))throw g;return g},Wn.times=function(e,t){if((e=ya(e))<1||e>f)return[];var n=p,r=vn(e,p);t=ai(t),e-=p;for(var o=Bt(r,t);++n<e;)t(n);return o},Wn.toFinite=ha,Wn.toInteger=ya,Wn.toLength=ga,Wn.toLower=function(e){return ba(e).toLowerCase()},Wn.toNumber=ma,Wn.toSafeInteger=function(e){return e?sr(ya(e),-9007199254740991,f):0===e?e:0},Wn.toString=ba,Wn.toUpper=function(e){return ba(e).toUpperCase()},Wn.trim=function(e,t,n){if((e=ba(e))&&(n||t===o))return Ut(e);if(!e||!(t=ao(t)))return e;var r=sn(e),i=sn(t);return wo(r,zt(r,i),Gt(r,i)+1).join("")},Wn.trimEnd=function(e,t,n){if((e=ba(e))&&(n||t===o))return e.slice(0,an(e)+1);if(!e||!(t=ao(t)))return e;var r=sn(e);return wo(r,0,Gt(r,sn(t))+1).join("")},Wn.trimStart=function(e,t,n){if((e=ba(e))&&(n||t===o))return e.replace(re,"");if(!e||!(t=ao(t)))return e;var r=sn(e);return wo(r,zt(r,sn(t))).join("")},Wn.truncate=function(e,t){var n=30,r="...";if(ta(t)){var i="separator"in t?t.separator:i;n="length"in t?ya(t.length):n,r="omission"in t?ao(t.omission):r}var s=(e=ba(e)).length;if(Xt(e)){var a=sn(e);s=a.length}if(n>=s)return e;var u=n-on(r);if(u<1)return r;var c=a?wo(a,0,u).join(""):e.slice(0,u);if(i===o)return c+r;if(a&&(u+=c.length-u),sa(i)){if(e.slice(u).search(i)){var l,f=c;for(i.global||(i=Ae(i.source,ba(de.exec(i))+"g")),i.lastIndex=0;l=i.exec(f);)var d=l.index;c=c.slice(0,d===o?u:d)}}else if(e.indexOf(ao(i),u)!=u){var p=c.lastIndexOf(i);p>-1&&(c=c.slice(0,p))}return c+r},Wn.unescape=function(e){return(e=ba(e))&&G.test(e)?e.replace(q,un):e},Wn.uniqueId=function(e){var t=++Ne;return ba(e)+t},Wn.upperCase=Qa,Wn.upperFirst=Ka,Wn.each=bs,Wn.eachRight=ws,Wn.first=Gi,uu(Wn,(vu={},br(Wn,(function(e,t){ke.call(Wn.prototype,t)||(vu[t]=e)})),vu),{chain:!1}),Wn.VERSION="4.17.21",bt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Wn[e].placeholder=Wn})),bt(["drop","take"],(function(e,t){Vn.prototype[e]=function(n){n=n===o?1:mn(ya(n),0);var r=this.__filtered__&&!t?new Vn(this):this.clone();return r.__filtered__?r.__takeCount__=vn(n,r.__takeCount__):r.__views__.push({size:vn(n,p),type:e+(r.__dir__<0?"Right":"")}),r},Vn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),bt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Vn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ai(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),bt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Vn.prototype[e]=function(){return this[n](1).value()[0]}})),bt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Vn.prototype[e]=function(){return this.__filtered__?new Vn(this):this[n](1)}})),Vn.prototype.compact=function(){return this.filter(ou)},Vn.prototype.find=function(e){return this.filter(e).head()},Vn.prototype.findLast=function(e){return this.reverse().find(e)},Vn.prototype.invokeMap=Yr((function(e,t){return"function"==typeof e?new Vn(this):this.map((function(n){return Rr(n,e,t)}))})),Vn.prototype.reject=function(e){return this.filter(Ds(ai(e)))},Vn.prototype.slice=function(e,t){e=ya(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Vn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=ya(t))<0?n.dropRight(-t):n.take(t-e)),n)},Vn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Vn.prototype.toArray=function(){return this.take(p)},br(Vn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Wn[r?"take"+("last"==t?"Right":""):t],s=r||/^find/.test(t);i&&(Wn.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,u=t instanceof Vn,c=a[0],l=u||qs(t),f=function(e){var t=i.apply(Wn,Ot([e],a));return r&&d?t[0]:t};l&&n&&"function"==typeof c&&1!=c.length&&(u=l=!1);var d=this.__chain__,p=!!this.__actions__.length,h=s&&!d,y=u&&!p;if(!s&&l){t=y?t:new Vn(this);var g=e.apply(t,a);return g.__actions__.push({func:hs,args:[f],thisArg:o}),new Un(g,d)}return h&&y?e.apply(this,a):(g=this.thru(f),h?r?g.value()[0]:g.value():g)})})),bt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ie[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Wn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(qs(o)?o:[],e)}return this[n]((function(n){return t.apply(qs(n)?n:[],e)}))}})),br(Vn.prototype,(function(e,t){var n=Wn[t];if(n){var r=n.name+"";ke.call(Ln,r)||(Ln[r]=[]),Ln[r].push({name:t,func:n})}})),Ln[Wo(o,2).name]=[{name:"wrapper",func:o}],Vn.prototype.clone=function(){var e=new Vn(this.__wrapped__);return e.__actions__=Io(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Io(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Io(this.__views__),e},Vn.prototype.reverse=function(){if(this.__filtered__){var e=new Vn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Vn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=qs(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],s=i.size;switch(i.type){case"drop":e+=s;break;case"dropRight":t-=s;break;case"take":t=vn(t,e+s);break;case"takeRight":e=mn(e,t-s)}}return{start:e,end:t}}(0,o,this.__views__),s=i.start,a=i.end,u=a-s,c=r?a:s-1,l=this.__iteratees__,f=l.length,d=0,p=vn(u,this.__takeCount__);if(!n||!r&&o==u&&p==u)return po(e,this.__actions__);var h=[];e:for(;u--&&d<p;){for(var y=-1,g=e[c+=t];++y<f;){var m=l[y],v=m.iteratee,b=m.type,w=v(g);if(2==b)g=w;else if(!w){if(1==b)continue e;break e}}h[d++]=g}return h},Wn.prototype.at=ys,Wn.prototype.chain=function(){return ps(this)},Wn.prototype.commit=function(){return new Un(this.value(),this.__chain__)},Wn.prototype.next=function(){this.__values__===o&&(this.__values__=pa(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},Wn.prototype.plant=function(e){for(var t,n=this;n instanceof Bn;){var r=$i(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},Wn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Vn){var t=e;return this.__actions__.length&&(t=new Vn(this)),(t=t.reverse()).__actions__.push({func:hs,args:[ts],thisArg:o}),new Un(t,this.__chain__)}return this.thru(ts)},Wn.prototype.toJSON=Wn.prototype.valueOf=Wn.prototype.value=function(){return po(this.__wrapped__,this.__actions__)},Wn.prototype.first=Wn.prototype.head,st&&(Wn.prototype[st]=function(){return this}),Wn}();it._=cn,(r=function(){return cn}.call(t,n,t,e))===o||(e.exports=r)}.call(this)},54883:(e,t,n)=>{var r=n(25835);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s)||i,s};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},98253:(e,t,n)=>{var r=n(158);e.exports=function(){return r.Date.now()}},75892:(e,t,n)=>{var r=n(11241),o=n(39169)((function(e,t){return null==e?{}:r(e,t)}));e.exports=o},59174:e=>{e.exports=function(){return[]}},30647:e=>{e.exports=function(){return!1}},38172:(e,t,n)=>{var r=n(76897),o=n(23619);e.exports=function(e,t,n){var i=!0,s=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,s="trailing"in n?!!n.trailing:s),r(e,t,{leading:i,maxWait:t,trailing:s})}},95053:(e,t,n)=>{var r=n(12383),o=n(23619),i=n(81878),s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=a.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):s.test(e)?NaN:+e}},33270:(e,t,n)=>{var r=n(80430);e.exports=function(e){return null==e?"":r(e)}},88021:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n(33034);class o extends Error{constructor(e){super(e),this.name="TimeoutError"}}class i{constructor(){Object.defineProperty(this,"_queue",{enumerable:!0,configurable:!0,writable:!0,value:[]})}enqueue(e,t){var n;const r={priority:(t={priority:0,...t}).priority,run:e};if(this.size&&(null===(n=this._queue[this.size-1])||void 0===n?void 0:n.priority)>=t.priority)return void this._queue.push(r);const o=function(e,t,n){let r=0,o=e.length;for(;o>0;){const n=Math.trunc(o/2);let s=r+n;i=e[s],t.priority-i.priority<=0?(r=++s,o-=n+1):o=n}var i;return r}(this._queue,r);this._queue.splice(o,0,r)}dequeue(){const e=this._queue.shift();return null==e?void 0:e.run}filter(e){return this._queue.filter((t=>t.priority===e.priority)).map((e=>e.run))}get size(){return this._queue.length}}const s=()=>{},a=new o;class u extends r{constructor(e){var t,n,r,o;if(super(),Object.defineProperty(this,"_carryoverConcurrencyCount",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_isIntervalIgnored",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_intervalCount",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_intervalCap",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_interval",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_intervalEnd",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_intervalId",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_timeoutId",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_queue",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_queueClass",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_pendingCount",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_concurrency",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_isPaused",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_resolveEmpty",{enumerable:!0,configurable:!0,writable:!0,value:s}),Object.defineProperty(this,"_resolveIdle",{enumerable:!0,configurable:!0,writable:!0,value:s}),Object.defineProperty(this,"_timeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_throwOnTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),!("number"==typeof(e={carryoverConcurrencyCount:!1,intervalCap:Number.POSITIVE_INFINITY,interval:0,concurrency:Number.POSITIVE_INFINITY,autoStart:!0,queueClass:i,...e}).intervalCap&&e.intervalCap>=1))throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${null!==(n=null===(t=e.intervalCap)||void 0===t?void 0:t.toString())&&void 0!==n?n:""}\` (${typeof e.intervalCap})`);if(void 0===e.interval||!(Number.isFinite(e.interval)&&e.interval>=0))throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${null!==(o=null===(r=e.interval)||void 0===r?void 0:r.toString())&&void 0!==o?o:""}\` (${typeof e.interval})`);this._carryoverConcurrencyCount=e.carryoverConcurrencyCount,this._isIntervalIgnored=e.intervalCap===Number.POSITIVE_INFINITY||0===e.interval,this._intervalCap=e.intervalCap,this._interval=e.interval,this._queue=new e.queueClass,this._queueClass=e.queueClass,this.concurrency=e.concurrency,this._timeout=e.timeout,this._throwOnTimeout=!0===e.throwOnTimeout,this._isPaused=!1===e.autoStart}get _doesIntervalAllowAnother(){return this._isIntervalIgnored||this._intervalCount<this._intervalCap}get _doesConcurrentAllowAnother(){return this._pendingCount<this._concurrency}_next(){this._pendingCount--,this._tryToStartAnother(),this.emit("next")}_resolvePromises(){this._resolveEmpty(),this._resolveEmpty=s,0===this._pendingCount&&(this._resolveIdle(),this._resolveIdle=s,this.emit("idle"))}_onResumeInterval(){this._onInterval(),this._initializeIntervalIfNeeded(),this._timeoutId=void 0}_isIntervalPaused(){const e=Date.now();if(void 0===this._intervalId){const t=this._intervalEnd-e;if(!(t<0))return void 0===this._timeoutId&&(this._timeoutId=setTimeout((()=>{this._onResumeInterval()}),t)),!0;this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0}return!1}_tryToStartAnother(){if(0===this._queue.size)return this._intervalId&&clearInterval(this._intervalId),this._intervalId=void 0,this._resolvePromises(),!1;if(!this._isPaused){const e=!this._isIntervalPaused();if(this._doesIntervalAllowAnother&&this._doesConcurrentAllowAnother){const t=this._queue.dequeue();return!!t&&(this.emit("active"),t(),e&&this._initializeIntervalIfNeeded(),!0)}}return!1}_initializeIntervalIfNeeded(){this._isIntervalIgnored||void 0!==this._intervalId||(this._intervalId=setInterval((()=>{this._onInterval()}),this._interval),this._intervalEnd=Date.now()+this._interval)}_onInterval(){0===this._intervalCount&&0===this._pendingCount&&this._intervalId&&(clearInterval(this._intervalId),this._intervalId=void 0),this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0,this._processQueue()}_processQueue(){for(;this._tryToStartAnother(););}get concurrency(){return this._concurrency}set concurrency(e){if(!("number"==typeof e&&e>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${e}\` (${typeof e})`);this._concurrency=e,this._processQueue()}async add(e,t={}){return new Promise(((n,r)=>{this._queue.enqueue((async()=>{this._pendingCount++,this._intervalCount++;try{const o=void 0===this._timeout&&void 0===t.timeout?e():function(e,t,n,r){let o;const i=new Promise(((i,s)=>{if("number"!=typeof t||t<0)throw new TypeError("Expected `milliseconds` to be a positive number");t!==Number.POSITIVE_INFINITY?(r={customTimers:{setTimeout,clearTimeout},...r},o=r.customTimers.setTimeout.call(void 0,(()=>{try{i(n())}catch(e){s(e)}}),t),(async()=>{try{i(await e)}catch(e){s(e)}finally{r.customTimers.clearTimeout.call(void 0,o)}})()):i(e)}));return i.clear=()=>{clearTimeout(o),o=void 0},i}(Promise.resolve(e()),void 0===t.timeout?this._timeout:t.timeout,(()=>{(void 0===t.throwOnTimeout?this._throwOnTimeout:t.throwOnTimeout)&&r(a)})),i=await o;n(i),this.emit("completed",i)}catch(e){r(e),this.emit("error",e)}this._next()}),t),this._tryToStartAnother(),this.emit("add")}))}async addAll(e,t){return Promise.all(e.map((async e=>this.add(e,t))))}start(){return this._isPaused?(this._isPaused=!1,this._processQueue(),this):this}pause(){this._isPaused=!0}clear(){this._queue=new this._queueClass}async onEmpty(){if(0!==this._queue.size)return new Promise((e=>{const t=this._resolveEmpty;this._resolveEmpty=()=>{t(),e()}}))}async onSizeLessThan(e){if(!(this._queue.size<e))return new Promise((t=>{const n=()=>{this._queue.size<e&&(this.removeListener("next",n),t())};this.on("next",n)}))}async onIdle(){if(0!==this._pendingCount||0!==this._queue.size)return new Promise((e=>{const t=this._resolveIdle;this._resolveIdle=()=>{t(),e()}}))}get size(){return this._queue.size}sizeBy(e){return this._queue.filter(e).length}get pending(){return this._pendingCount}get isPaused(){return this._isPaused}get timeout(){return this._timeout}set timeout(e){this._timeout=e}}},12858:e=>{"use strict";function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function n(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"].forEach((function(e){n.prototype[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this._defaults.push({fn:e,args:n}),this}})),n.prototype._setDefaults=function(e){this._defaults.forEach((function(n){var r;e[n.fn].apply(e,function(e){if(Array.isArray(e))return t(e)}(r=n.args)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(r)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}(r)||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.")}())}))},e.exports=n},75391:(e,t,n)=>{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o;"undefined"!=typeof window?o=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),o=void 0):o=self;var i=n(31069),s=n(5799),a=n(63065),u=n(24287),c=n(39905),l=n(40969),f=n(12858);function d(){}e.exports=function(e,n){return"function"==typeof n?new t.Request("GET",e).end(n):1===arguments.length?new t.Request("GET",e):new t.Request(e,n)};var p=t=e.exports;t.Request=w,p.getXHR=function(){if(o.XMLHttpRequest&&(!o.location||"file:"!==o.location.protocol||!o.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}throw new Error("Browser-only version of superagent could not find XHR")};var h="".trim?function(e){return e.trim()}:function(e){return e.replace(/(^\s*|\s*$)/g,"")};function y(e){if(!c(e))return e;var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&g(t,n,e[n]);return t.join("&")}function g(e,t,n){if(void 0!==n)if(null!==n)if(Array.isArray(n))n.forEach((function(n){g(e,t,n)}));else if(c(n))for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&g(e,"".concat(t,"[").concat(r,"]"),n[r]);else e.push(encodeURI(t)+"="+encodeURIComponent(n));else e.push(encodeURI(t))}function m(e){for(var t,n,r={},o=e.split("&"),i=0,s=o.length;i<s;++i)-1===(n=(t=o[i]).indexOf("="))?r[decodeURIComponent(t)]="":r[decodeURIComponent(t.slice(0,n))]=decodeURIComponent(t.slice(n+1));return r}function v(e){return/[/+]json($|[^-\w])/i.test(e)}function b(e){this.req=e,this.xhr=this.req.xhr,this.text="HEAD"!==this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;var t=this.xhr.status;1223===t&&(t=204),this._setStatusProperties(t),this.headers=function(e){for(var t,n,r,o,i=e.split(/\r?\n/),s={},a=0,u=i.length;a<u;++a)-1!==(t=(n=i[a]).indexOf(":"))&&(r=n.slice(0,t).toLowerCase(),o=h(n.slice(t+1)),s[r]=o);return s}(this.xhr.getAllResponseHeaders()),this.header=this.headers,this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),null===this.text&&e._responseType?this.body=this.xhr.response:this.body="HEAD"===this.req.method?null:this._parseBody(this.text?this.text:this.xhr.response)}function w(e,t){var n=this;this._query=this._query||[],this.method=e,this.url=t,this.header={},this._header={},this.on("end",(function(){var e,t=null,r=null;try{r=new b(n)}catch(e){return(t=new Error("Parser is unable to parse the response")).parse=!0,t.original=e,n.xhr?(t.rawResponse=void 0===n.xhr.responseType?n.xhr.responseText:n.xhr.response,t.status=n.xhr.status?n.xhr.status:null,t.statusCode=t.status):(t.rawResponse=null,t.status=null),n.callback(t)}n.emit("response",r);try{n._isResponseOK(r)||(e=new Error(r.statusText||r.text||"Unsuccessful HTTP response"))}catch(t){e=t}e?(e.original=t,e.response=r,e.status=r.status,n.callback(e,r)):n.callback(null,r)}))}function _(e,t,n){var r=p("DELETE",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}p.serializeObject=y,p.parseString=m,p.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},p.serialize={"application/x-www-form-urlencoded":a.stringify,"application/json":s},p.parse={"application/x-www-form-urlencoded":m,"application/json":JSON.parse},l(b.prototype),b.prototype._parseBody=function(e){var t=p.parse[this.type];return this.req._parser?this.req._parser(this,e):(!t&&v(this.type)&&(t=p.parse["application/json"]),t&&e&&(e.length>0||e instanceof Object)?t(e):null)},b.prototype.toError=function(){var e=this.req,t=e.method,n=e.url,r="cannot ".concat(t," ").concat(n," (").concat(this.status,")"),o=new Error(r);return o.status=this.status,o.method=t,o.url=n,o},p.Response=b,i(w.prototype),u(w.prototype),w.prototype.type=function(e){return this.set("Content-Type",p.types[e]||e),this},w.prototype.accept=function(e){return this.set("Accept",p.types[e]||e),this},w.prototype.auth=function(e,t,n){1===arguments.length&&(t=""),"object"===r(t)&&null!==t&&(n=t,t=""),n||(n={type:"function"==typeof btoa?"basic":"auto"});var o=function(e){if("function"==typeof btoa)return btoa(e);throw new Error("Cannot use basic auth, btoa is not a function")};return this._auth(e,t,n,o)},w.prototype.query=function(e){return"string"!=typeof e&&(e=y(e)),e&&this._query.push(e),this},w.prototype.attach=function(e,t,n){if(t){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(e,t,n||t.name)}return this},w.prototype._getFormData=function(){return this._formData||(this._formData=new o.FormData),this._formData},w.prototype.callback=function(e,t){if(this._shouldRetry(e,t))return this._retry();var n=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),n(e,t)},w.prototype.crossDomainError=function(){var e=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");e.crossDomain=!0,e.status=this.status,e.method=this.method,e.url=this.url,this.callback(e)},w.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},w.prototype.ca=w.prototype.agent,w.prototype.buffer=w.prototype.ca,w.prototype.write=function(){throw new Error("Streaming is not supported in browser version of superagent")},w.prototype.pipe=w.prototype.write,w.prototype._isHost=function(e){return e&&"object"===r(e)&&!Array.isArray(e)&&"[object Object]"!==Object.prototype.toString.call(e)},w.prototype.end=function(e){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=e||d,this._finalizeQueryString(),this._end()},w.prototype._setUploadTimeout=function(){var e=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout((function(){e._timeoutError("Upload timeout of ",e._uploadTimeout,"ETIMEDOUT")}),this._uploadTimeout))},w.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));var e=this;this.xhr=p.getXHR();var t=this.xhr,n=this._formData||this._data;this._setTimeouts(),t.onreadystatechange=function(){var n=t.readyState;if(n>=2&&e._responseTimeoutTimer&&clearTimeout(e._responseTimeoutTimer),4===n){var r;try{r=t.status}catch(e){r=0}if(!r){if(e.timedout||e._aborted)return;return e.crossDomainError()}e.emit("end")}};var r=function(t,n){n.total>0&&(n.percent=n.loaded/n.total*100,100===n.percent&&clearTimeout(e._uploadTimeoutTimer)),n.direction=t,e.emit("progress",n)};if(this.hasListeners("progress"))try{t.addEventListener("progress",r.bind(null,"download")),t.upload&&t.upload.addEventListener("progress",r.bind(null,"upload"))}catch(e){}t.upload&&this._setUploadTimeout();try{this.username&&this.password?t.open(this.method,this.url,!0,this.username,this.password):t.open(this.method,this.url,!0)}catch(e){return this.callback(e)}if(this._withCredentials&&(t.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof n&&!this._isHost(n)){var o=this._header["content-type"],i=this._serializer||p.serialize[o?o.split(";")[0]:""];!i&&v(o)&&(i=p.serialize["application/json"]),i&&(n=i(n))}for(var s in this.header)null!==this.header[s]&&Object.prototype.hasOwnProperty.call(this.header,s)&&t.setRequestHeader(s,this.header[s]);this._responseType&&(t.responseType=this._responseType),this.emit("request",this),t.send(void 0===n?null:n)},p.agent=function(){return new f},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach((function(e){f.prototype[e.toLowerCase()]=function(t,n){var r=new p.Request(e,t);return this._setDefaults(r),n&&r.end(n),r}})),f.prototype.del=f.prototype.delete,p.get=function(e,t,n){var r=p("GET",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},p.head=function(e,t,n){var r=p("HEAD",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},p.options=function(e,t,n){var r=p("OPTIONS",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},p.del=_,p.delete=_,p.patch=function(e,t,n){var r=p("PATCH",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},p.post=function(e,t,n){var r=p("POST",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},p.put=function(e,t,n){var r=p("PUT",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}},39905:e=>{"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e){return null!==e&&"object"===t(e)}},24287:(e,t,n)=>{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(39905);function i(e){if(e)return function(e){for(var t in i.prototype)Object.prototype.hasOwnProperty.call(i.prototype,t)&&(e[t]=i.prototype[t]);return e}(e)}e.exports=i,i.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},i.prototype.parse=function(e){return this._parser=e,this},i.prototype.responseType=function(e){return this._responseType=e,this},i.prototype.serialize=function(e){return this._serializer=e,this},i.prototype.timeout=function(e){if(!e||"object"!==r(e))return this._timeout=e,this._responseTimeout=0,this._uploadTimeout=0,this;for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))switch(t){case"deadline":this._timeout=e.deadline;break;case"response":this._responseTimeout=e.response;break;case"upload":this._uploadTimeout=e.upload;break;default:console.warn("Unknown timeout option",t)}return this},i.prototype.retry=function(e,t){return 0!==arguments.length&&!0!==e||(e=1),e<=0&&(e=0),this._maxRetries=e,this._retries=0,this._retryCallback=t,this};var s=new Set(["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"]),a=new Set([408,413,429,500,502,503,504,521,522,524]);i.prototype._shouldRetry=function(e,t){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var n=this._retryCallback(e,t);if(!0===n)return!0;if(!1===n)return!1}catch(e){console.error(e)}if(t&&t.status&&a.has(t.status))return!0;if(e){if(e.code&&s.has(e.code))return!0;if(e.timeout&&"ECONNABORTED"===e.code)return!0;if(e.crossDomain)return!0}return!1},i.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},i.prototype.then=function(e,t){var n=this;if(!this._fullfilledPromise){var r=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise((function(e,t){r.on("abort",(function(){if(!(n._maxRetries&&n._maxRetries>n._retries))if(n.timedout&&n.timedoutError)t(n.timedoutError);else{var e=new Error("Aborted");e.code="ABORTED",e.status=n.status,e.method=n.method,e.url=n.url,t(e)}})),r.end((function(n,r){n?t(n):e(r)}))}))}return this._fullfilledPromise.then(e,t)},i.prototype.catch=function(e){return this.then(void 0,e)},i.prototype.use=function(e){return e(this),this},i.prototype.ok=function(e){if("function"!=typeof e)throw new Error("Callback required");return this._okCallback=e,this},i.prototype._isResponseOK=function(e){return!!e&&(this._okCallback?this._okCallback(e):e.status>=200&&e.status<300)},i.prototype.get=function(e){return this._header[e.toLowerCase()]},i.prototype.getHeader=i.prototype.get,i.prototype.set=function(e,t){if(o(e)){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.set(n,e[n]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},i.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},i.prototype.field=function(e,t){if(null==e)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(o(e)){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.field(n,e[n]);return this}if(Array.isArray(t)){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&this.field(e,t[r]);return this}if(null==t)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof t&&(t=String(t)),this._getFormData().append(e,t),this},i.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},i.prototype._auth=function(e,t,n,r){switch(n.type){case"basic":this.set("Authorization","Basic ".concat(r("".concat(e,":").concat(t))));break;case"auto":this.username=e,this.password=t;break;case"bearer":this.set("Authorization","Bearer ".concat(e))}return this},i.prototype.withCredentials=function(e){return void 0===e&&(e=!0),this._withCredentials=e,this},i.prototype.redirects=function(e){return this._maxRedirects=e,this},i.prototype.maxResponseSize=function(e){if("number"!=typeof e)throw new TypeError("Invalid argument");return this._maxResponseSize=e,this},i.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},i.prototype.send=function(e){var t=o(e),n=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(t&&!this._data)Array.isArray(e)?this._data=[]:this._isHost(e)||(this._data={});else if(e&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(t&&o(this._data))for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(this._data[r]=e[r]);else"string"==typeof e?(n||this.type("form"),(n=this._header["content-type"])&&(n=n.toLowerCase().trim()),this._data="application/x-www-form-urlencoded"===n?this._data?"".concat(this._data,"&").concat(e):e:(this._data||"")+e):this._data=e;return!t||this._isHost(e)||n||this.type("json"),this},i.prototype.sortQuery=function(e){return this._sort=void 0===e||e,this},i.prototype._finalizeQueryString=function(){var e=this._query.join("&");if(e&&(this.url+=(this.url.includes("?")?"&":"?")+e),this._query.length=0,this._sort){var t=this.url.indexOf("?");if(t>=0){var n=this.url.slice(t+1).split("&");"function"==typeof this._sort?n.sort(this._sort):n.sort(),this.url=this.url.slice(0,t)+"?"+n.join("&")}}},i.prototype._appendQueryString=function(){console.warn("Unsupported")},i.prototype._timeoutError=function(e,t,n){if(!this._aborted){var r=new Error("".concat(e+t,"ms exceeded"));r.timeout=t,r.code="ECONNABORTED",r.errno=n,this.timedout=!0,this.timedoutError=r,this.abort(),this.callback(r)}},i.prototype._setTimeouts=function(){var e=this;this._timeout&&!this._timer&&(this._timer=setTimeout((function(){e._timeoutError("Timeout of ",e._timeout,"ETIME")}),this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout((function(){e._timeoutError("Response timeout of ",e._responseTimeout,"ETIMEDOUT")}),this._responseTimeout))}},40969:(e,t,n)=>{"use strict";var r=n(23094);function o(e){if(e)return function(e){for(var t in o.prototype)Object.prototype.hasOwnProperty.call(o.prototype,t)&&(e[t]=o.prototype[t]);return e}(e)}e.exports=o,o.prototype.get=function(e){return this.header[e.toLowerCase()]},o.prototype._setHeaderProperties=function(e){var t=e["content-type"]||"";this.type=r.type(t);var n=r.params(t);for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(this[o]=n[o]);this.links={};try{e.link&&(this.links=r.parseLinks(e.link))}catch(e){}},o.prototype._setStatusProperties=function(e){var t=e/100|0;this.statusCode=e,this.status=this.statusCode,this.statusType=t,this.info=1===t,this.ok=2===t,this.redirect=3===t,this.clientError=4===t,this.serverError=5===t,this.error=(4===t||5===t)&&this.toError(),this.created=201===e,this.accepted=202===e,this.noContent=204===e,this.badRequest=400===e,this.unauthorized=401===e,this.notAcceptable=406===e,this.forbidden=403===e,this.notFound=404===e,this.unprocessableEntity=422===e}},23094:(e,t)=>{"use strict";function n(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,s=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw s}}}}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}t.type=function(e){return e.split(/ *; */).shift()},t.params=function(e){var t,r={},o=n(e.split(/ *; */));try{for(o.s();!(t=o.n()).done;){var i=t.value.split(/ *= */),s=i.shift(),a=i.shift();s&&a&&(r[s]=a)}}catch(e){o.e(e)}finally{o.f()}return r},t.parseLinks=function(e){var t,r={},o=n(e.split(/ *, */));try{for(o.s();!(t=o.n()).done;){var i=t.value.split(/ *; */),s=i[0].slice(1,-1);r[i[1].split(/ *= */)[1].slice(1,-1)]=s}}catch(e){o.e(e)}finally{o.f()}return r},t.cleanHeader=function(e,t){return delete e["content-type"],delete e["content-length"],delete e["transfer-encoding"],delete e.host,t&&(delete e.authorization,delete e.cookie),e}},85335:e=>{"use strict";var t=String.prototype.replace,n=/%20/g,r="RFC3986";e.exports={default:r,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:r}},63065:(e,t,n)=>{"use strict";var r=n(24246),o=n(11688),i=n(85335);e.exports={formats:i,parse:o,stringify:r}},11688:(e,t,n)=>{"use strict";var r=n(14562),o=Object.prototype.hasOwnProperty,i=Array.isArray,s={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},a=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},u=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c=function(e,t,n,r){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/g,a=n.depth>0&&/(\[[^[\]]*])/.exec(i),c=a?i.slice(0,a.index):i,l=[];if(c){if(!n.plainObjects&&o.call(Object.prototype,c)&&!n.allowPrototypes)return;l.push(c)}for(var f=0;n.depth>0&&null!==(a=s.exec(i))&&f<n.depth;){if(f+=1,!n.plainObjects&&o.call(Object.prototype,a[1].slice(1,-1))&&!n.allowPrototypes)return;l.push(a[1])}return a&&l.push("["+i.slice(a.index)+"]"),function(e,t,n,r){for(var o=r?t:u(t,n),i=e.length-1;i>=0;--i){var s,a=e[i];if("[]"===a&&n.parseArrays)s=[].concat(o);else{s=n.plainObjects?Object.create(null):{};var c="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,l=parseInt(c,10);n.parseArrays||""!==c?!isNaN(l)&&a!==c&&String(l)===c&&l>=0&&n.parseArrays&&l<=n.arrayLimit?(s=[])[l]=o:s[c]=o:s={0:o}}o=s}return o}(l,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return s;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?s.charset:e.charset;return{allowDots:void 0===e.allowDots?s.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:s.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:s.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:s.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:s.comma,decoder:"function"==typeof e.decoder?e.decoder:s.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:s.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:s.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:s.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:s.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:s.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:s.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var l="string"==typeof e?function(e,t){var n,c={},l=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,f=t.parameterLimit===1/0?void 0:t.parameterLimit,d=l.split(t.delimiter,f),p=-1,h=t.charset;if(t.charsetSentinel)for(n=0;n<d.length;++n)0===d[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[n]?h="utf-8":"utf8=%26%2310003%3B"===d[n]&&(h="iso-8859-1"),p=n,n=d.length);for(n=0;n<d.length;++n)if(n!==p){var y,g,m=d[n],v=m.indexOf("]="),b=-1===v?m.indexOf("="):v+1;-1===b?(y=t.decoder(m,s.decoder,h,"key"),g=t.strictNullHandling?null:""):(y=t.decoder(m.slice(0,b),s.decoder,h,"key"),g=r.maybeMap(u(m.slice(b+1),t),(function(e){return t.decoder(e,s.decoder,h,"value")}))),g&&t.interpretNumericEntities&&"iso-8859-1"===h&&(g=a(g)),m.indexOf("[]=")>-1&&(g=i(g)?[g]:g),o.call(c,y)?c[y]=r.combine(c[y],g):c[y]=g}return c}(e,n):e,f=n.plainObjects?Object.create(null):{},d=Object.keys(l),p=0;p<d.length;++p){var h=d[p],y=c(h,l[h],n,"string"==typeof e);f=r.merge(f,y,n)}return r.compact(f)}},24246:(e,t,n)=>{"use strict";var r=n(14562),o=n(85335),i=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Array.isArray,u=Array.prototype.push,c=function(e,t){u.apply(e,a(t)?t:[t])},l=Date.prototype.toISOString,f=o.default,d={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:f,formatter:o.formatters[f],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},p=function e(t,n,o,i,s,u,l,f,p,h,y,g,m,v){var b,w=t;if("function"==typeof l?w=l(n,w):w instanceof Date?w=h(w):"comma"===o&&a(w)&&(w=r.maybeMap(w,(function(e){return e instanceof Date?h(e):e}))),null===w){if(i)return u&&!m?u(n,d.encoder,v,"key",y):n;w=""}if("string"==typeof(b=w)||"number"==typeof b||"boolean"==typeof b||"symbol"==typeof b||"bigint"==typeof b||r.isBuffer(w))return u?[g(m?n:u(n,d.encoder,v,"key",y))+"="+g(u(w,d.encoder,v,"value",y))]:[g(n)+"="+g(String(w))];var _,S=[];if(void 0===w)return S;if("comma"===o&&a(w))_=[{value:w.length>0?w.join(",")||null:void 0}];else if(a(l))_=l;else{var C=Object.keys(w);_=f?C.sort(f):C}for(var E=0;E<_.length;++E){var A=_[E],O="object"==typeof A&&void 0!==A.value?A.value:w[A];if(!s||null!==O){var T=a(w)?"function"==typeof o?o(n,A):n:n+(p?"."+A:"["+A+"]");c(S,e(O,T,o,i,s,u,l,f,p,h,y,g,m,v))}}return S};e.exports=function(e,t){var n,r=e,u=function(e){if(!e)return d;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||d.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o.default;if(void 0!==e.format){if(!i.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=o.formatters[n],s=d.filter;return("function"==typeof e.filter||a(e.filter))&&(s=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:d.addQueryPrefix,allowDots:void 0===e.allowDots?d.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:d.charsetSentinel,delimiter:void 0===e.delimiter?d.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:d.encode,encoder:"function"==typeof e.encoder?e.encoder:d.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:d.encodeValuesOnly,filter:s,format:n,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:d.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:d.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:d.strictNullHandling}}(t);"function"==typeof u.filter?r=(0,u.filter)("",r):a(u.filter)&&(n=u.filter);var l,f=[];if("object"!=typeof r||null===r)return"";l=t&&t.arrayFormat in s?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var h=s[l];n||(n=Object.keys(r)),u.sort&&n.sort(u.sort);for(var y=0;y<n.length;++y){var g=n[y];u.skipNulls&&null===r[g]||c(f,p(r[g],g,h,u.strictNullHandling,u.skipNulls,u.encode?u.encoder:null,u.filter,u.sort,u.allowDots,u.serializeDate,u.format,u.formatter,u.encodeValuesOnly,u.charset))}var m=f.join(u.delimiter),v=!0===u.addQueryPrefix?"?":"";return u.charsetSentinel&&("iso-8859-1"===u.charset?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),m.length>0?v+m:""}},14562:(e,t,n)=>{"use strict";var r=n(85335),o=Object.prototype.hasOwnProperty,i=Array.isArray,s=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:a,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var o=t[r],s=o.obj[o.prop],a=Object.keys(s),u=0;u<a.length;++u){var c=a[u],l=s[c];"object"==typeof l&&null!==l&&-1===n.indexOf(l)&&(t.push({obj:s,prop:c}),n.push(l))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&r.push(n[o]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n,o,i){if(0===e.length)return e;var a=e;if("symbol"==typeof e?a=Symbol.prototype.toString.call(e):"string"!=typeof e&&(a=String(e)),"iso-8859-1"===n)return escape(a).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var u="",c=0;c<a.length;++c){var l=a.charCodeAt(c);45===l||46===l||95===l||126===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||i===r.RFC1738&&(40===l||41===l)?u+=a.charAt(c):l<128?u+=s[l]:l<2048?u+=s[192|l>>6]+s[128|63&l]:l<55296||l>=57344?u+=s[224|l>>12]+s[128|l>>6&63]+s[128|63&l]:(c+=1,l=65536+((1023&l)<<10|1023&a.charCodeAt(c)),u+=s[240|l>>18]+s[128|l>>12&63]+s[128|l>>6&63]+s[128|63&l])}return u},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!=typeof n){if(i(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!o.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var s=t;return i(t)&&!i(n)&&(s=a(t,r)),i(t)&&i(n)?(n.forEach((function(n,i){if(o.call(t,i)){var s=t[i];s&&"object"==typeof s&&n&&"object"==typeof n?t[i]=e(s,n,r):t.push(n)}else t[i]=n})),t):Object.keys(n).reduce((function(t,i){var s=n[i];return o.call(t,i)?t[i]=e(t[i],s,r):t[i]=s,t}),s)}}},50586:(e,t,n)=>{var r=n(36589),o=n(22708),i=o;i.v1=r,i.v4=o,e.exports=i},98726:e=>{for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var r=n||0,o=t;return o[e[r++]]+o[e[r++]]+o[e[r++]]+o[e[r++]]+"-"+o[e[r++]]+o[e[r++]]+"-"+o[e[r++]]+o[e[r++]]+"-"+o[e[r++]]+o[e[r++]]+"-"+o[e[r++]]+o[e[r++]]+o[e[r++]]+o[e[r++]]+o[e[r++]]+o[e[r++]]}},76338:(e,t,n)=>{var r,o=n.g.crypto||n.g.msCrypto;if(o&&o.getRandomValues){var i=new Uint8Array(16);r=function(){return o.getRandomValues(i),i}}if(!r){var s=new Array(16);r=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),s[t]=e>>>((3&t)<<3)&255;return s}}e.exports=r},36589:(e,t,n)=>{var r=n(76338),o=n(98726),i=r(),s=[1|i[0],i[1],i[2],i[3],i[4],i[5]],a=16383&(i[6]<<8|i[7]),u=0,c=0;e.exports=function(e,t,n){var r=t&&n||0,i=t||[],l=void 0!==(e=e||{}).clockseq?e.clockseq:a,f=void 0!==e.msecs?e.msecs:(new Date).getTime(),d=void 0!==e.nsecs?e.nsecs:c+1,p=f-u+(d-c)/1e4;if(p<0&&void 0===e.clockseq&&(l=l+1&16383),(p<0||f>u)&&void 0===e.nsecs&&(d=0),d>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");u=f,c=d,a=l;var h=(1e4*(268435455&(f+=122192928e5))+d)%4294967296;i[r++]=h>>>24&255,i[r++]=h>>>16&255,i[r++]=h>>>8&255,i[r++]=255&h;var y=f/4294967296*1e4&268435455;i[r++]=y>>>8&255,i[r++]=255&y,i[r++]=y>>>24&15|16,i[r++]=y>>>16&255,i[r++]=l>>>8|128,i[r++]=255&l;for(var g=e.node||s,m=0;m<6;++m)i[r+m]=g[m];return t||o(i)}},22708:(e,t,n)=>{var r=n(76338),o=n(98726);e.exports=function(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"==e?new Array(16):null,e=null);var s=(e=e||{}).random||(e.rng||r)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t)for(var a=0;a<16;++a)t[i+a]=s[a];return t||o(s)}},34361:function(e,t,n){"use strict";var r,o,i,s,a,u,c,l,f,d,p,h,y,g=this&&this.__classPrivateFieldSet||function(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n},m=this&&this.__classPrivateFieldGet||function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)},v=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FinsembleDesktopAgent=void 0;const b=n(98832),w=v(n(72551)),_=n(6192),S=n(81298),C=n(81298),E=v(n(60306));class A{constructor(e){r.set(this,void 0),o.set(this,void 0),g(this,r,e,"f")}start(e){const t={type:"heartbeat",meta:{uuid:e}};m(this,r,"f").transmit(S.HEARTBEAT_CHANNEL,t),g(this,o,setInterval((()=>{m(this,r,"f").transmit(S.HEARTBEAT_CHANNEL,t)}),S.HEARTBEAT_INTERVAL),"f")}stop(){clearInterval(m(this,o,"f")),g(this,o,void 0,"f")}}r=new WeakMap,o=new WeakMap;class O{constructor(e,t,n="app"){i.set(this,void 0),g(this,i,e,"f"),this.id=t,this.type=n}broadcast(e){m(this,i,"f").channelBroadcast(this.id,e)}getCurrentContext(e){return m(this,i,"f").channelGetCurrentContext(this.id,e)}addContextListener(e,t){return m(this,i,"f").channelAddContextListener(this.id,e,t)}}i=new WeakMap,t.FinsembleDesktopAgent=class{constructor({routerClient:e,startup:t}){s.set(this,!1),a.set(this,void 0),u.set(this,!1),c.set(this,""),l.set(this,`FSBL.FDC3.Client.${Date.now()}_${Math.random()}`),f.set(this,{}),d.set(this,{}),p.set(this,[]),h.set(this,void 0),y.set(this,void 0),g(this,h,e,"f"),g(this,a,new A(e),"f"),g(this,y,t,"f");const n=()=>!0===_.Globals?.FSBL?.Clients?.WindowClient?.options?.customData?.interop?.autoConnect;if(_.Globals?.FSBL?.addEventListener?_.Globals?.FSBL.addEventListener("onReady",(()=>{n()&&this.connectWhenFSBLIsReady()})):window.addEventListener("FSBLReady",(()=>{n()&&this.connectWhenFSBLIsReady()})),window.Event){const e=new Event("fdc3Ready");window&&window.dispatchEvent(e)}}meta(){return{uuid:m(this,c,"f"),href:window.document?document.location.href:""}}triggerContextListeners(e){const{context:t}=e.payload;(m(this,d,"f")[t?.type]??[]).concat(m(this,d,"f")["*"]??[]).forEach((({handler:n,channel:r})=>{e.meta.channel!==r&&(e.meta.channel||r)||n(t)}))}triggerIntentListeners(e){const{intent:t,context:n}=e.payload,r=m(this,f,"f")[t];n&&(r||[]).forEach((e=>e(n)))}handleIncoming(e){switch(w.default.log("FDC3 Client: handleIncoming",e.type,e),e.type){case"broadcast":this.triggerContextListeners(e);break;case"intent":this.triggerIntentListeners(e)}}releaseQueue(){const e=e=>(void 0!==e?.meta?.uuid&&(e.meta.uuid=m(this,c,"f")),e);m(this,p,"f").forEach((async t=>{const{message:n,handler:r,resolve:o}=t,{err:i,response:s}=await m(this,h,"f").query(S.SERVER_CHANNEL,e(n),r);o({err:i,receiveMessage:s?.data})})),g(this,p,[],"f")}async connectWhenFSBLIsReady(){m(this,u,"f")||(g(this,u,!0,"f"),await m(this,y,"f").onReady(),this.connect())}exchange(e,t=(()=>{})){return new Promise((async n=>{if(m(this,s,"f")){const{err:r,response:o}=await m(this,h,"f").query(S.SERVER_CHANNEL,e,t);n({err:r,receiveMessage:o?.data})}else m(this,p,"f").push({message:e,handler:t,resolve:n}),this.connectWhenFSBLIsReady()}))}async connect(){const e=m(this,y,"f").getStartupData(),{windowName:t="Unknown window",authenticationToken:n}=e;w.default.log(`fdc3.connect StartupData for ${t}`,e),g(this,c,t,"f");const r={type:"register",meta:this.meta(),payload:{clientChannel:m(this,l,"f"),windowName:t,authenticationToken:n}};m(this,h,"f").query(S.SERVER_CHANNEL,r,(e=>{e?w.default.error("connect error",e):(m(this,h,"f").addResponder(m(this,l,"f"),((e,t)=>{if(e||!t){const t=C.errorAsString(e??"No request received on responder");w.default.error(`FinsembleDesktopAgent can't listen on channel ${m(this,l,"f")} : ${t}`)}else t.data&&this.handleIncoming(t.data),t.sendQueryResponse(null)})),g(this,s,!0,"f"),this.releaseQueue())})),m(this,a,"f").start(m(this,c,"f"))}stop(){m(this,a,"f").stop();const e={type:"unregister",meta:this.meta()};this.exchange(e,(()=>{m(this,h,"f").removeResponder(m(this,l,"f")),g(this,s,!1,"f")}))}async getCurrentContext(e){const t={type:"currentContextRequest",meta:this.meta(),payload:{contextType:e}},{err:n,receiveMessage:r}=await this.exchange(t);return n?null:"currentContext"===r?.type&&r.payload.context?r.payload.context:null}async channelGetCurrentContext(e,t){const n={type:"currentContextRequest",meta:{...this.meta(),channel:e},payload:{contextType:t}},{err:r,receiveMessage:o}=await this.exchange(n);return r?null:"currentContext"===o?.type?o.payload.context:null}broadcast(e){const t={type:"broadcast",meta:this.meta(),payload:{context:e}};this.exchange(t)}channelBroadcast(e,t){const n={type:"broadcast",meta:{...this.meta(),channel:e},payload:{context:t}};this.exchange(n)}async getSystemChannels(){const e={type:"systemChannelRequest",meta:this.meta()},{err:t,receiveMessage:n}=await this.exchange(e);return t?[]:("systemChannels"===n?.type?n?.payload?.channels:[]).map((e=>new O(this,e,"system")))}async open(e,t){const n={type:"open",meta:this.meta(),payload:{target:e,context:t}},{err:r,receiveMessage:o}=await this.exchange(n),i=o;if(r)throw b.OpenError.ResolverUnavailable;if(i.payload.error)throw i.payload.error}async findIntent(e,t){const n={type:"findIntent",meta:this.meta(),payload:{intent:e,context:t}},{err:r,receiveMessage:o}=await this.exchange(n),i=o;if(r)throw b.ResolveError.ResolverUnavailable;if(i.payload.error)throw i.payload.error;if(!i.payload.appIntent)throw"Invalid response returned from InteropService for findIntent. No appIntent and no error.";return i.payload.appIntent}async findIntentsByContext(e){const t={type:"findIntentsByContext",meta:this.meta(),payload:{context:e}},{receiveMessage:n}=await this.exchange(t),r=n;if(r.payload.error)throw r.payload.error;return r.payload.intents||[]}async raiseIntent(e,t,n){const r={type:"raiseIntent",meta:this.meta(),payload:{intent:e,context:t,target:n}},{err:o,receiveMessage:i}=await this.exchange(r),s=i;if(o)throw b.ResolveError.ResolverUnavailable;if(s.payload.error)throw s.payload.error;if(!s.payload.data)throw"Invalid response returned from InteropService for raiseIntent. No data.";return s.payload.data}async raiseIntentForContext(e,t){const n={type:"raiseIntent",meta:this.meta(),payload:{context:e,target:t}},{err:r,receiveMessage:o}=await this.exchange(n),i=o;if(r)throw b.ResolveError.ResolverUnavailable;if(i.payload.error)throw i.payload.error;if(!i.payload.data)throw"Invalid response returned from InteropService for raiseIntentForContext. No data.";return i.payload.data}addIntentListener(e,t){m(this,f,"f")[e]=C.mmAdd(m(this,f,"f"),e,t);const n={type:"subscribeIntent",meta:this.meta(),payload:{intent:e}};return this.exchange(n),{unsubscribe:()=>{const n={type:"unsubscribeIntent",meta:this.meta(),payload:{intent:e}};this.exchange(n),m(this,f,"f")[e]=C.mmRemove(m(this,f,"f"),e,t)}}}channelAddContextListener(e,t,n){const r=n?t:"*";n||(n=t);const o={handler:n,channel:e};m(this,d,"f")[r]=C.mmAdd(m(this,f,"f"),r,o);let i={type:"subscribeContext",meta:this.meta(),payload:{contextType:r}};return e&&(i.meta.channel=e),this.exchange(i),{unsubscribe:()=>{let t={type:"unsubscribeContext",meta:this.meta(),payload:{contextType:r}};e&&(t.meta.channel=e),m(this,d,"f")[r]=C.mmRemove(m(this,f,"f"),r,o),this.exchange(t)}}}addContextListener(e,t){return this.channelAddContextListener(null,e,t)}async joinChannel(e){const t={type:"joinChannels",meta:this.meta(),payload:{channels:[e]}};await this.exchange(t)}async getOrCreateChannel(e){return new O(this,e)}async getCurrentChannels(){const e={type:"getCurrentChannels",meta:this.meta()},{err:t,receiveMessage:n}=await this.exchange(e),r=n;if(t)throw t;if(r.payload.error)throw r.payload.error;if(!r.payload.data)throw"Invalid response returned from InteropService for getCurrentChannels. No data.";return r.payload.data.map((e=>new O(this,e.channel,"system")))}async getCurrentChannel(){const e=await this.getCurrentChannels();return e&&e.length?e[0]:null}async leaveCurrentChannel(){const e={type:"leaveChannels",meta:this.meta(),payload:{}};await this.exchange(e)}getInfo(){return{fdc3Version:"1.2",provider:"Finsemble",providerVersion:E.default.version}}},s=new WeakMap,a=new WeakMap,u=new WeakMap,c=new WeakMap,l=new WeakMap,f=new WeakMap,d=new WeakMap,p=new WeakMap,h=new WeakMap,y=new WeakMap},81298:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AnonymousAuthenticationToken=t.HEARTBEAT_INTERVAL=t.HEARTBEAT_CHANNEL=t.INTENT_RESOLVER_CHANNEL=t.SERVER_CHANNEL=t.GLOBAL_CHANNEL=t.errorAsString=t.mmRemove=t.concatNoDups=t.mmAdd=void 0,t.mmAdd=function(e,t,n){return(e[t]||[]).concat([n])},t.concatNoDups=function(e,t){const n=Array.isArray(t)?t:[t],r=e?n.concat(e):n;return Array.from(new Set(r))},t.mmRemove=function(e,t,n){return(e[t]||[]).filter((e=>e===n))},t.errorAsString=function(e){return e?.message??e??null},t.GLOBAL_CHANNEL="global",t.SERVER_CHANNEL="FSBL.FDC3.Interop.Server",t.INTENT_RESOLVER_CHANNEL="FSBL.FDC3.intent.resolver",t.HEARTBEAT_CHANNEL="FSBL.FDC3.Interop.Server",t.HEARTBEAT_INTERVAL=4e3,t.AnonymousAuthenticationToken={authenticationKeyType:"unauthenticated",meta:{name:"Anonymous app"}}},10589:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FSBLService=void 0;const o=r(n(39319)),i=n(67580),s=n(51742),a=n(16925),u=n(50586),c=n(6192),l=n(34361);t.FSBLService=class{async startApp(){await s.System.ready();const e=await i.getSystemStartupData(),t=s.System.Window.getCurrent(),n=t.name??document?.location?.href??"Unknown App",r=t.name??document?.location?.href??`Unknown window-${u.v4()}`,f=i.getManifestFromStartupData(e)??{},d=i.getRouterConfig({windowName:r,systemManifest:f});await o.default.start(d);const p=a.Startup.getInstance();p.setStartupData({windowName:r,authenticationToken:{authenticationKeyType:"unauthenticated",meta:{name:n}}}),c.Globals.fdc3=new l.FinsembleDesktopAgent({routerClient:o.default,startup:p}),p.ready()}async stopApp(){o.default.stop()}}},67580:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getManifestFromStartupData=t.getSystemStartupData=t.getRouterConfig=t.getRecommendedTransport=void 0;const o=r(n(72551)),i=n(51742),s=n(33998),a={sameDomainTransport:"FinsembleTransport",crossDomainTransport:"FinsembleTransport",transportSettings:{FinsembleTransport:{serverAddress:"ws://127.0.0.1:3376"}},transportName:"FinsembleTransport"},u=e=>{if(!e)return o.default.error("No documentRoot provided to RouterConfig.isCrossDomain(). Check the moduleRoot entry of the manifest."),!0;const t=document.createElement("a");t.href=e;const n=window.location.hostname===t.hostname,r=window.location.protocol===t.protocol,i=(void 0!==window.location.port?window.location.port:80)===(void 0!==t.port?t.port:80),s=n&&i&&r;return o.default.system.debug(`Transport crossDomain=${u} (${n}:${r}:${i})`),!s};t.getRecommendedTransport=e=>{const{moduleRoot:t,router:n}=e?.finsemble,{sameDomainTransport:r="SharedWorker",crossDomainTransport:i="IPCBus"}=n??{},s=u(t)?i:r;return o.default.system.log(`Transport Info: Selected=${s} SameDomainDefault=${r} CrossDomainDefault=${i}`),console.log(`Transport Info: Selected=${s} SameDomainDefault=${r} CrossDomainDefault=${i}`),s},t.getRouterConfig=({windowName:e,systemManifest:n,transportSettings:r})=>n?((e,n)=>{if(o.default.system.info("WINDOW LIFECYCLE:STARTUP:RouterClient:routerConfigFromManifest"),e&&"string"!=typeof e){const r=e.finsemble,o=r?.router?.transportSettings??r?.IAC??{},i=r?.notificationURL??`${r.moduleRoot}/components/system/notification/notification.html`;return{windowName:n,routerDomainRoot:r.moduleRoot,transportName:t.getRecommendedTransport(e),transportSettings:o,notificationURL:i}}return o.default.system.error("WINDOW LIFECYCLE:STARTUP:RouterClient:routerConfigFromManifest failed -- fatal error. No manifest found.",e),{...a,windowName:n}})(n,e):{...a,windowName:e,transportSettings:r??{}},t.getSystemStartupData=async()=>new Promise((e=>{i.System.Window.getCurrent().getOptions((t=>{e(t)}))})),t.getManifestFromStartupData=e=>{let t=e?.manifest;return t?.finsemble&&s.ConfigUtilInstance.resolveConfigVariables(t.finsemble,t.finsemble),t}},16925:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Startup=void 0;const r=n(81298),o=n(6192),i=n(50586),s=n(4971);class a{constructor(){this.isReady=!1,this.onReadyListeners=[],this.currentStartupData={authenticationToken:r.AnonymousAuthenticationToken,windowName:`Unknown window-${i.v4()}`}}static getInstance(){return a.instance?a.instance:a.instance=s.singleton("Startup",a)}getStartupData(){return this.currentStartupData}setStartupData(e){this.currentStartupData=e}onReady(e){return new Promise((t=>{this.isReady?(e&&setTimeout(e,0),t()):this.onReadyListeners.push((()=>{e&&e(),t()}))}))}ready(){this.isReady=!0,this.onReadyListeners.forEach((e=>{e()})),o.Globals.dispatchEvent&&o.Globals.dispatchEvent(new Event("FSBLReady"))}}t.Startup=a,a.instance=null},72669:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t._BaseClient=void 0;const o=r(n(39319)),i=r(n(72551)),s=n(51742),a=n(13854);t._BaseClient=class{constructor(e){this.status="offline",this.startupTime=0,this.initialized=!1,this.startupDependencies={services:[],clients:[]},this.finsembleWindow=null,this.windowName="",this.clientReadyQueue=[],this.processClientReadyQueue=()=>{for(const e of this.clientReadyQueue)e();this.clientReadyQueue=[]},this.onReady=e=>{this.clientReadyQueue.push(e),"online"===this.status&&this.processClientReadyQueue()},this.setClientOnline=()=>{this.status="online";const e=`STARTUP:CLIENT ONLINE:${this.finWindow?.name}:${this.name}`;this.startupTime=window.performance.now()-this.startupTime;const t=()=>{this.logger.system.debug(e),this.processClientReadyQueue(),a.FSBLDependencyManagerSingleton.setClientOnline(this.name)};this._onReady?this._onReady(t):t()},this.initialize=(e=Function.prototype)=>{this.initialized||(this.initialized=!0,this.startupTime=performance.now(),this.finWindow=s.System.Window.getCurrent(),this.windowName=this.finWindow.name,this.logger.system.debug("Baseclient Init Router Ready",this.name),a.FSBLDependencyManagerSingleton.startup.waitFor(this.startupDependencies,(()=>{e(),this.setClientOnline()})))},this.onClose=e=>{e&&e()},this.name=e.name,this._onReady=e.onReady,this.startupDependencies=e.startupDependencies||{services:[],clients:[]},this.logger=i.default,this.routerClient=o.default}}},70010:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(57664),i=r(n(13712)),s=n(72669),a=r(n(5020)),u=r(n(72551));class c extends s._BaseClient{constructor(e){super(e),this.listeners=[],this.changeSub=e=>{this.subs||(this.subs={}),this.subs[e]||(this.routerClient.query("configService.addListener",e,(t=>{t&&u.default.system.error("Error adding listener to config service",t),this.routerClient.subscribe(e,this.handleChanges)})),this.subs[e]=!0)},this.handleChanges=(e,t)=>{e&&u.default.system.error(e),t.data.field||(t.data.field=null);const n=t.data.storeData?t.data.storeData:t.data.value;this.triggerListeners(t.data.field?t.data.field:"configService",n)},this.triggerListeners=(e,t)=>{if(this.listeners[e])for(let n=0;n<this.listeners[e].length;n++)"function"==typeof this.listeners[e][n]?this.listeners[e][n](null,{field:e,value:t}):u.default.system.warn("ConfigClient:triggerListeners: listener is not a function",e)},this.set=(e,t)=>{u.default.system.debug("ConfigClient.Set",e),"function"==typeof e?(t=e,i.default.args(t,"function"),e={}):i.default.args(e,"object",t,"function"),this.routerClient.query("config.set",e,((e,n)=>{t(e,n?n.data:null)}))},this.processAndSet=this.processAndSet.bind(this),this.getValue=this.getValue.bind(this),this.getValues=this.getValues.bind(this),this.setValue=this.setValue.bind(this),this.setValues=this.setValues.bind(this),this.removeValue=this.removeValue.bind(this),this.removeValues=this.removeValues.bind(this),this.addListener=this.addListener.bind(this),this.addListeners=this.addListeners.bind(this),this.removeListener=this.removeListener.bind(this),this.removeListeners=this.removeListeners.bind(this),this.setPreference=this.setPreference.bind(this),this.getPreferences=this.getPreferences.bind(this),this.unsetPreference=this.unsetPreference.bind(this)}getValue(e,t=Function.prototype){return"string"==typeof e&&(e={field:e}),new Promise(((n,r)=>{if(!e.field){const e="no field provided";return r(e),t(e)}this.routerClient.query("configService.getValue",{field:e.field},((e,o)=>e?(r(e),t(e)):(n({err:e,data:o.data}),t(e,o.data))))}))}getValues(e,t=Function.prototype){return"function"==typeof e&&(t=e,e=null),e&&!Array.isArray(e)?this.getValue(e,t):new Promise((n=>{this.routerClient.query("configService.getValues",{fields:e},((e,r)=>e?t(e):(n({err:e,data:r.data}),t(e,r.data))))}))}setValue(e,t){const n={field:e.field,value:e.value};return this.routerClient.query("configService.setValue",n,(e=>t?t(e):null))}setValues(e,t){return e?Array.isArray(e)?this.routerClient.query("configService.setValues",e,(e=>t?t(e):null)):u.default.system.error("ConfigClient.SetValues. Params must be an array"):u.default.system.error("ConfigClient.SetValues. No params given")}removeValue(e,t=Function.prototype){if(void 0!==e){if(e.field||"string"!=typeof e)return t("no field provided");e={field:e}}return e.value=null,this.setValue(e,t)}removeValues(e,t=Function.prototype){if(!Array.isArray(e))return t("The passed in parameter needs to be an array");o.map(e,this.removeValue,((e,n)=>t(e,n)))}addListener(e,t,n){let r=null;"function"==typeof e&&(t=e,e={field:r}),({field:r}=e);const o="configService"+(r?`.${r}`:"");return this.listeners[o]?this.listeners[o].push(t):this.listeners[o]=[t],this.changeSub(o),n?n():null}addListeners(e,t,n){if(!Array.isArray(e))return this.addListener({field:e.field},t,n);for(let n=0;n<e.length;n++){let o=null;const i=e[n];var r;"string"==typeof i?o=i:i.field&&(({field:o}=i),r=i.listener);const s="configService"+(o?`.${o}`:"");r||t&&"function"==typeof t&&(r=t),this.listeners[s]?this.listeners[s].push(r):this.listeners[s]=[r],this.changeSub(s)}return n?n():null}removeListener(e,t,n){let r=null;"function"==typeof e&&(n=t,t=e,e={field:r}),({field:r}=e);const o=this.name+(r?`.${r}`:"");if(this.listeners[o])for(let e=0;e<this.listeners[o].length;e++)if(this.listeners[o][e]===t)return this.listeners[o].pop(e),n?n(null,!0):null;return n?n(null,!1):null}removeListeners(e,t,n){if(!Array.isArray(e))return"function"==typeof e?this.removeListener({},e,n):e.field&&this.removeListener(e,t,n),n?.("missing fields");let r=0;for(let n=0;n<e.length;n++){let i=null;const s=e[n];var o;"string"==typeof s?i=s:s.field&&(({field:i}=s),o=e[n].listener);const a="configService"+(i?`.${i}`:"");if(!o){if(!t||"function"!=typeof t)continue;o=t}for(let e=0;e<this.listeners[a].length;e++)this.listeners[a][e]===o&&(this.listeners[a].pop(n),r++)}return r<e.length?n?.("All listeners could not be found",!1):n?n(null,!0):null}get(e,t){u.default.system.debug("ConfigClient.Get",e),u.default.system.deprecated("This functionality has been deprecated. It will be removed in a future Finsemble release. Use getValue instead.",e),1===arguments.length?(t=e,i.default.args(t,"function"),e={}):i.default.args(e,"object",t,"function"),this.routerClient.query("config.get",e,((e,n)=>{t(e,n?n.data:null)}))}processAndSet(e,t){if(u.default.system.debug("ConfigClient.processAndSet",e),i.default.args(e,"object",t,"function=")&&i.default.args2("params.newConfig",e.newConfig,"object","params.overwrite",e.overwrite,"boolean=","params.replace",e.replace,"boolean="),!e.overwrite&&e.replace){const e="cannot use replace option unless overwrite is also true";u.default.system.warn("ConfigClient.processAndSet:",e),t&&t(e,null)}else this.routerClient.query("config.processAndSet",e,((e,n)=>{t&&t(e,n?n.data:null)}))}setPreference(e,t){this.routerClient.query("PreferencesService.setPreference",e,((e,n)=>{t&&t(e,n?n.data:null)}))}async getPreferences(e){await a.default.waitForStartup("preferencesService"),this.routerClient.query("PreferencesService.getPreferences",{},((t,n)=>{u.default.system.debug("ConfigClient.getPreferences response",n),e&&e(t,n?n.data:null)}))}async unsetPreference(e,t){u.default.system.debug("ConfigClient.unsetPreference",e),this.routerClient.query("PreferencesService.unsetPreference",e,((e,n)=>{t&&t(e,n?n.data:null)}))}}const l=new c({startupDependencies:{services:["configService"]},onReady(e){e&&e()},name:"configClient"});t.default=l},75729:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LocalLogger=void 0;const{debug:n,warn:r,log:o,error:i}=console,s=()=>{},a=s,u={warn:r,info:s,log:o,debug:n,error:i,verbose:a,deprecated:i},c={Error:!0,Warn:!0,Info:!0,Log:!0,Debug:!0,Verbose:!0,LocalOnly:!1},l={console:{Error:!0,Warn:!0,Info:!0,Log:!0,Debug:!0},dev:c,system:c,perf:c};function f(e){return"logger.service.logMessages"===e}t.LocalLogger=class{constructor(){this.start=()=>{},this.isLogMessage=f,this.setting=()=>l,this.callStack=()=>function(){const{stack:e}=function(){try{throw Error("")}catch(e){return e}}(),t=("\n",4,e.split("\n",4).join("\n").length);return`Log Stack: \n${e.substring(t).substr(1)}`}(),this.unregisterClient=()=>{},this.setRouterClient=()=>{},this.warn=r,this.info=s,this.log=o,this.debug=n,this.error=i,this.verbose=a,this.system=u,this.perf=u,this.deprecated=i}}},72551:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Logger=t.LoggerConstructor=void 0;const r=n(51742),o=n(75729),i=n(16925),s={Error:!0,Warn:!0,Info:!0,Log:!0,Debug:!0,Verbose:!1,LocalOnly:!1},a={Error:!0,Warn:!0,Info:!0,Log:!0,Debug:!0},u=n(38172);t.LoggerConstructor=function(e){const o=this;let c;o.RouterClient=e&&e.RouterClient;let l=!1,f=!1;const d=o;let p,h,y=0,g=0;this.startupTime=0;let m=[];if("undefined"==typeof window)return;let v=r.System.Window.getCurrent().name;window.top!==window&&(v=`${v}.Frame`),this.onLogStateChangeCallback=[];let b={console:a,dev:s,system:s,perf:s};function w(e,t,n){this.category=e,!c&&r.System.isBrowserView()&&(c=r.System.getViewId()),this.logClientName=c?`${v}: view-${c}`:v,this.logType=t,this.logData=n,this.logTimestamp=window.performance.timing.navigationStart+window.performance.now()+y}function _(e,t){e&&e.dev&&(b=e,o.onLogStateChangeCallback.forEach((t=>{t(e)}))),function(e){d.system.debug("Logger updateQueueBasedOnState",e,y,"QUEUE LENGTH",m.length,b);const t=[];for(let n=0,{length:r}=m;n<r;n++)if(b[m[n].category][m[n].logType]&&!b[m[n].category].LocalOnly)e&&(m[n].logTimestamp=m[n].logTimestamp+y),t.push(m[n]);else if(b[m[n].category][m[n].logType]&&b[m[n].category].LocalOnly){const e=m[n];console.log(e.category,e.logType,e.logTimestamp-window.performance.timing.navigationStart,e.logData,"(Previously queued!)")}m=t}(t)}function S(){const{stack:e}=function(){try{throw Error("")}catch(e){return e}}(),t=("\n",4,e.split("\n",4).join("\n").length);return`Log Stack: \n${e.substring(t).substr(1)}`}this.onStateChanged=e=>{-1===this.onLogStateChangeCallback.indexOf(e)&&this.onLogStateChangeCallback.push(e)},this.setClientName=function(e){console.error("logger.setClientName() is deprecated"),v=e},this.getClientName=function(){return console.error("logger.getClientName() is deprecated"),v},this.clearMessageList=function(){m=[]},this.callStack=function(){return S()},this.setting=function(){return b};const C=console.error,E=console.warn,A=console.info,O=console.log,T=console.debug;function I(e){return e.reduce(((e,t)=>e.concat(Array.isArray(t)?I(t):t)),[])}function R(e,t){try{e.apply(console,I(t))}catch(e){(t=[]).push(S())}}let L=()=>{m.length>0&&(o.RouterClient.transmit("logger.service.logMessages",m),d.clearMessageList())};function x(e,n,r){let o,i=!1,s=!0;"forceObjectsToLogger"===r[0]&&(i=!0,s=!1,r.splice(0,1)),r=r.map((e=>s&&function(e){const t=[],n=[e];let r=0,o=0;for(;n.length&&o<1e3;){o++;const e=n.pop();if("boolean"==typeof e)r+=4;else if("string"==typeof e)r+=2*e.length;else if("number"==typeof e)r+=8;else if("object"==typeof e&&-1===t.indexOf(e)){t.push(e);for(const t in e)n.push(e[t])}}return r}(e)>5e4?(R(A,["Message too large to send to the logger.",r]),"Log argument greater than 50KB. Check local Console to see output of the object."):e));try{for(let e=0;e<r.length;e++)r[e]instanceof Error&&(r[e]=r[e].toString());o=new w(e,n,JSON.stringify(r))}catch(t){r.splice(0,r.length),r.push(S()),o=new w(e,n,`*** Logging Error: ${JSON.stringify(r)}`)}i||!function(e){return!0===e.logData.includes("Finsemble.heartbeat")}(o)?function(e){if(m.length<2e4)m.push(e);else{console.error("Logging Queue Overflowed! Dumping queue here then continuing.",m.length);let e,n=0;for(;e=m.shift();)console.log("Message "+n++,e);t.Logger.system.error("Logging Queue Overflowed! Dumping queue in client then continuing.")}}(o):++g<=5&&R(A,[`"Filtered Logger Message (${g} of first 5 shown)`,o]),f&&L()}function j(){const{windowName:e}=i.Startup.getInstance().getStartupData();v=e,window.top!==window&&(v=`${v}.Frame`);const t=`finsemble.logger.client.${v}`;!c&&r.System.isBrowserView()&&(c=r.System.getViewId()),d.system.debug("logger.service.registering",v),r.System.Window.getCurrent().getOptions((n=>{const r=n?.customData?.component?.centralLoggerNamePrefix;o.RouterClient.query("logger.service.register",{clientName:v,clientChannel:t,windowName:e,viewId:c,centralLoggerNamePrefix:r},((e,t)=>{if(e)setTimeout(j,750);else{for(const e of m)e.viewId=c;f=!0,d.system.debug("logger.service.registered"),p=t.data,"routerService"!==v?(y=h,_(p,!0)):_(p,!1),x("system","Debug",["Logger Registered"]),L()}}))})),o.RouterClient.addListener(t,((e,t)=>{d.system.debug("logger.client.setLogState",t.data),p=t.data,_(p,!1)}))}L=u(L,"routerService"===v?100:250,{leading:!1}),this.error=function(){const e=Array.prototype.slice.call(arguments);e.push(S()),b.dev.Error&&!b.dev.LocalOnly&&x("dev","Error",e),e.unshift(`dev error (${window.performance.now()}):`),R(C,e)},this.warn=function(){if(b.dev.Warn){const e=Array.prototype.slice.call(arguments);e.push(S()),b.dev.Warn&&!b.dev.LocalOnly&&x("dev","Warn",e),b.dev.Warn&&b.dev.LocalOnly&&(e.unshift(`dev warn (${window.performance.now()}):`),R(E,e))}},this.info=function(){if(b.dev.Info){const e=Array.prototype.slice.call(arguments);b.dev.Info&&!b.dev.LocalOnly&&x("dev","Info",e),b.dev.Info&&b.dev.LocalOnly&&(e.unshift(`dev info (${window.performance.now()}):`),R(A,e))}},this.log=function(){if(b.dev.Log){const e=Array.prototype.slice.call(arguments);b.dev.Log&&!b.dev.LocalOnly&&x("dev","Log",e),b.dev.Log&&b.dev.LocalOnly&&(e.unshift(`dev log (${window.performance.now()}):`),R(O,e))}},this.debug=function(){if(b.dev.Debug){const e=Array.prototype.slice.call(arguments);b.dev.Debug&&!b.dev.LocalOnly&&x("dev","Debug",e),b.dev.Debug&&b.dev.LocalOnly&&(e.unshift(`dev debug (${window.performance.now()}):`),R(T,e))}},this.verbose=function(){if(b.dev.Verbose){const e=Array.prototype.slice.call(arguments);b.dev.Verbose&&!b.dev.LocalOnly&&x("dev","Verbose",e),b.dev.Verbose&&b.dev.LocalOnly&&(e.unshift(`dev verbose (${window.performance.now()}):`),R(T,e))}},this.deprecated=this.error,this.system={},this.system.error=function(){const e=Array.prototype.slice.call(arguments);e.push(S()),b.system.Error&&!b.system.LocalOnly&&x("system","Error",e),e.unshift(`system error (${window.performance.now()}):`),R(C,e)},this.system.warn=function(){if(b.system.Warn){const e=Array.prototype.slice.call(arguments);e.push(S()),b.system.Warn&&!b.system.LocalOnly&&x("system","Warn",e),b.system.Warn&&b.system.LocalOnly&&(e.unshift(`system warn (${window.performance.now()}):`),R(E,e))}},this.system.info=function(){if(b.system.Info){const e=Array.prototype.slice.call(arguments);b.system.Info&&!b.system.LocalOnly&&x("system","Info",e),b.system.Info&&b.system.LocalOnly&&(e.unshift(`system info (${window.performance.now()}):`),R(A,e))}},this.system.log=function(){if(b.system.Log){const e=Array.prototype.slice.call(arguments);b.system.Log&&!b.system.LocalOnly&&x("system","Log",e),b.system.Log&&b.system.LocalOnly&&(e.unshift(`system log (${window.performance.now()}):`),R(O,e))}},this.system.debug=function(){if(b.system.Debug){const e=Array.prototype.slice.call(arguments);b.system.Debug&&!b.system.LocalOnly&&x("system","Debug",e),b.system.Debug&&b.system.LocalOnly&&(e.unshift(`system debug (${window.performance.now()}):`),R(T,e))}},this.system.verbose=function(){if(b.system.Verbose){var e=Array.prototype.slice.call(arguments);b.system.Verbose&&!b.system.LocalOnly&&x("system","Verbose",e),b.system.Verbose&&b.system.LocalOnly&&((e=Array.prototype.slice.call(arguments)).unshift(`system log (${window.performance.now()}):`),R(T,e))}},this.system.deprecated=this.system.error,this.perf={},this.perf.error=function(){const e=Array.prototype.slice.call(arguments);e.push(S()),b.perf.Error&&!b.perf.LocalOnly&&x("perf","Error",e),e.unshift(`perf error (${window.performance.now()}):`),R(C,e)},this.perf.warn=function(){if(b.perf.Warn){const e=Array.prototype.slice.call(arguments);e.push(S()),b.perf.Warn&&!b.perf.LocalOnly&&x("perf","Warn",e),b.perf.Warn&&b.perf.LocalOnly&&(e.unshift(`perf warn (${window.performance.now()}):`),R(E,e))}},this.perf.info=function(){if(b.perf.Info){const e=Array.prototype.slice.call(arguments);b.perf.Info&&!b.perf.LocalOnly&&x("perf","Info",e),b.perf.Info&&b.perf.LocalOnly&&(e.unshift(`perf info (${window.performance.now()}):`),R(A,e))}},this.perf.log=function(){if(b.perf.Log){const e=Array.prototype.slice.call(arguments);b.perf.Log&&!b.perf.LocalOnly&&x("perf","Log",e),b.perf.Log&&b.perf.LocalOnly&&(e.unshift(`perf log (${window.performance.now()}):`),R(O,e))}},this.perf.debug=function(){if(b.perf.Debug){const e=Array.prototype.slice.call(arguments);b.perf.Debug&&!b.perf.LocalOnly&&x("perf","Debug",e),b.perf.Debug&&b.perf.LocalOnly&&(e.unshift(`perf debug (${window.performance.now()}):`),R(T,e))}},this.perf.verbose=function(){if(b.perf.Verbose){const e=Array.prototype.slice.call(arguments);b.perf.Verbose&&!b.perf.LocalOnly&&x("perf","Verbose",e),b.perf.Verbose&&b.perf.LocalOnly&&(e.unshift(`perf verbose (${window.performance.now()}):`),R(T,e))}},this.perf.deprecated=this.perf.error,this.unregisterClient=function(e=null,t=Function.prototype){d.system.debug("logger.service.unregister",v,e,c),L();const n=e||{clientName:v,viewId:c};o.RouterClient.query("logger.service.unregister",n,t)},this.isLogMessage=function(e){return"logger.service.logMessages"===e},this.status="offline",this.setRouterClient=e=>{this.RouterClient=e},this.start=function(){let e;this.startupTime=performance.now(),o.RouterClient||(console.log("No instance of the RouterClient found for this instance of the Logger. Dynamically requiring it."),o.RouterClient=n(39319).default);const t=()=>{e=o.RouterClient.subscribe("Finsemble.Service.State.loggerService",((t,n)=>{"ready"===n.data.state&&(o.status="online",d.system.debug("Logger onReady",v),o.RouterClient.calibrateTimeWithRouterService((e=>{h=e,l||(o.startupTime=performance.now()-o.startupTime,j(),l=!0)})),o.RouterClient.unsubscribe(e))}))};"routerService"===window.name?o.RouterClient.query("logger.service.register",{},(e=>{e?setTimeout(t,750):t()})):o.RouterClient.onReady(t),r.System.isBrowserView()&&window.addEventListener("beforeunload",(()=>{o.unregisterClient()}))}},t.Logger="undefined"!=typeof window?new t.LoggerConstructor:new o.LocalLogger,t.default=t.Logger},40568:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RouterClientConstructor=void 0;const o=r(n(82369)),i=r(n(13712)),s=r(n(73699)),a=n(51742),u=n(72551),c=n(6192),l=n(75729),f=n(50586),d=[];let p=u.Logger;function h(e,t={}){if(null===e||"object"!=typeof e)return e;if(e.constructor==Date||e.constructor==RegExp||e.constructor==Function||e.constructor==String||e.constructor==Number||e.constructor==Boolean)return new e.constructor(e);t=t||new e.constructor;for(const n in e)t[n]=void 0===t[n]?h(e[n],null):t[n];return t}t.RouterClientConstructor=function(){let e,t;const n={},r={},u={},y={},g={},m={},v={},b={},w={},_={};let S,C=null,E=!1;const A=[];function O(){this.header={origin:S,type:"initialHandshake"}}function T(e,t){this.header={origin:S,type:"timeCalibration"},this.clientBaseTime=e,this.serviceBaseTime=t}function I(e){this.header={origin:S,type:"addListener",channel:e}}function R(e,t,n){this.header={origin:S,type:"transmit",channel:e},this.data=t,this.options=n}function L(e){this.header={origin:S,type:"removeListener",channel:e}}function x(e){this.header={origin:S,type:"addResponder",channel:e}}function j(e,t,n){this.header={origin:S,type:"query",queryID:e,channel:t},this.data=n}function k(e,t,n){this.header={origin:S,type:"queryResponse",queryID:e,error:t},this.data=n}function N(e){this.header={origin:S,type:"removeResponder",channel:e}}function P(e,t){this.header={origin:S,type:"subscribe",subscribeID:e,topic:t}}function D(e,t){this.header={origin:S,type:"unsubscribe",subscribeID:e,topic:t}}function M(e,t){this.header={origin:S,type:"publish",topic:e},this.data=t}function F(e,t,n,r){this.header={origin:S,type:"notify",subscribeID:e,topic:t,error:n},this.data=r}function W(e,t,n){this.header={origin:S,type:"addPubSubResponder",topic:e,handleOnServer:n},this.data=t}function $(e){this.header={origin:S,type:"removePubSubResponder",topic:e}}function B(e){C?C.send(e):(p.system.info("RouterClient: Queuing message since router initialization not complete",e),d.push(e))}function U(){return this.header.origin===this.header.lastClient}function V(e,t){p.system.info("RouterClient: outgoing query response","CHANNEL",this.header.channel,"RESPONSE DATA",t,"QUERY ID",this.header.queryID),B(new k(this.header.queryID,e,t))}function H(e,t){const n=e[t.header.channel];void 0===n?p.system.warn(`RouterClient: no query responder define on channel ${t.header.channel} incoming from ${t.header.origin}`,t):t.header.error?(p.system.warn("RouterClient: queryResponder error",t),n(t.header.error,null),delete e[t.header.channel]):(t.originatedHere=U,t.sendQueryResponse=V.bind(t),p.system.info("RouterClient: incoming query","CHANNEL",t.header.channel,"FROM",t.header.origin,"QUERY MESSAGE",t),n(null,t))}function q(e,t){if(e)p.system.warn("RouterClient: income publish rejected by pubsub responder",e,t);else{y[this.header.topic]=t;const n=m[this.header.topic];if(void 0!==n)for(let r=0;r<n.length;r++)p.system.info("RouterClient: sending pubsub notify","TOPIC",this.header.topic,"NOTIFY DATA",t),B(new F(n[r],this.header.topic,e,t))}}function z(e,t){var n,r,o;(function(e){let t=!1;return void 0===e&&(t=!0),t})(t)||B(new F(this.header.subscribeID,this.header.topic,e,t)),e?p.system.warn("RouterClient: incoming subscription rejected by pubsub responder","TOPIC",this.header.topic,"MESSAGE",this):(n=m,r=this.header.topic,o=this.header.subscribeID,r in n?n[r].push(o):n[r]=[o],p.system.info("RouterClient: incoming subscription added","TOPIC",this.header.topic,"MESSAGE",this))}function G(){!function(e,t,n){let r=!1;if(t in e){const o=m[t];for(let i=0;i<o.length;i++)if(n===o[i]){o.splice(i,1),0===o.length&&delete e[t],r=!0,p.system.info("RouterClient: PubSub removeListener","TOPIC",t,"FROM",n);break}}r||p.system.warn(`RouterClient: tried to remove non-existent listener on ${t} from ${JSON.stringify(n)}`)}(m,this.header.topic,this.header.subscribeID)}function Y(o){switch(p.system.verbose("Incoming Message Type",o.header.type,o),o.header.type){case"transmit":!function(e,t){const n=e[t.header.channel]||[],r=[];if(Array.isArray(n)&&0!==n.length){t.originatedHere=U,n.forEach((e=>{r.push(e)}));for(let e=0;e<r.length;e++)p.isLogMessage(t.header.channel)||p.system.info("RouterClient: incoming transmit","CHANNEL",t.header.channel,"FROM",t.header.origin,"MESSAGE",t),r[e](null,t)}else p.system.warn(`RouterClient: no listener for incoming transmit on channel ${t.header.channel} from ${t.header.origin}`,t)}(n,o);break;case"query":H(r,o);break;case"queryResponse":!function(e,t){const n=e[t.header.queryID];void 0===n?p.system.warn("RouterClient: no handler for incoming query response","QUERY ID",t.header.queryID):(function(e,t){const n=e[t];void 0!==n&&clearTimeout(n)}(_,t.header.queryID),t.header.error?(p.system.debug("RouterClient: incoming queryResponse error",t.header,"QUERY ID",t.header.queryID),n(t.header.error,t)):(p.system.info("RouterClient: incoming query response","RESPONSE MESSAGE",t,"QUERY ID",t.header.queryID),n(null,t)),delete e[t.header.queryID])}(w,o);break;case"notify":!function(e,t){const n=e[t.header.subscribeID];void 0===n?p.system.warn("RouterClient: no subscription handler defined for incoming notify for subscriberID",t.header.subscribeID,t):t.header.error?(p.system.info("RouterClient: incoming PubSub notify error for subscriberID","SUBSCRIBER ID",t.header.subscribeID,"NOTIFY MESSAGE",t),n(t.header.error,t)):(t.originatedHere=U,p.system.info("RouterClient: incoming PubSub notify","SUBSCRIBER ID",t.header.subscribeID,"NOTIFY MESSAGE",t),n(null,t))}(v,o);break;case"publish":!function(e){let t=u[e.header.topic];if(void 0===t)for(const n in g)if(g[n].test(e.header.topic)){t=u[n];break}void 0===t?p.system.warn("RouterClient: no pubsub responder defined for incoming publish","TOPIC",e.header.topic,"PUBLISH MESSAGE",e):(e.sendNotifyToAllSubscribers=q,t.publishCallback?(p.system.info("RouterClient: incoming PubSub publish callback invoked","TOPIC",e.header.topic,"PUBLISH MESSAGE",e),t.publishCallback(null,e)):(p.system.info("RouterClient: incoming PubSub publish","TOPIC",e.header.topic,"PUBLISH MESSAGE",e),e.sendNotifyToAllSubscribers(null,e.data)))}(o);break;case"subscribe":!function(e){p.system.info("RouterClient: PubSub subscribe","TOPIC",e.header.topic);let t=u[e.header.topic];if(void 0===t)for(const n in g)if(g[n].test(e.header.topic)){t=u[n];let r=y[e.header.topic];void 0===r&&(r=y[n]),y[e.header.topic]=r;break}void 0===t?p.system.warn("RouterClient: no pubsub responder defined for incoming subscribe",e):e.header.error?p.system.warn(`RouterClient: pubsub error received from router service: ${JSON.stringify(e.header.error)}`):(e.sendNotifyToSubscriber=z,t.subscribeCallback?(e.data=y[e.header.topic],t.subscribeCallback(null,e)):e.sendNotifyToSubscriber(null,y[e.header.topic]))}(o);break;case"unsubscribe":!function(e){let t=u[e.header.topic];if(void 0===t)for(const n in g)if(g[n].test(e.header.topic)){t=u[n];break}void 0===t?p.system.warn("RouterClient: no pubsub responder defined for incoming unsubscribe","TOPIC",e.header.topic,"UNSUBSCRIBE MESSAGE",e):(e.removeSubscriber=G,t.unsubscribeCallback?(p.system.info("RouterClient: incoming unsubscribe callback","TOPIC",e.header.topic,"UNSUBSCRIBE MESSAGE",e),t.unsubscribeCallback(null,e)):(p.system.info("RouterClient: incoming unsubscribe","TOPIC",e.header.topic,"UNSUBSCRIBE MESSAGE",e),e.removeSubscriber()))}(o);break;case"timeCalibration":const i=()=>{t?t(o):setTimeout((()=>{i()}),10)};i();break;case"initialHandshakeResponse":e()}}function J(e,t){t.header.lastClient=S,t.header.incomingTransportInfo=e,Y(t)}this.startupTime=0,this.notificationURL="";const Q=(t,n,r)=>{let i,a;p.system.debug(`Name of transport to establish: ${n}`),this.notificationURL=t.notificationURL;let u,c,l,f,h=!1,y=0;const g=t=>{a=0,p.system.debug("WINDOW LIFECYCLE:STARTUP:RouterClient:transport ready","TRANSPORT OBJECT",t),C=t,e=f,l(),i=setInterval(l,200)};u=e=>{p.system.error("RouterClientError",e)};const m=()=>{p.system.debug("WINDOW LIFECYCLE:STARTUP:RouterClient:getClientTransport","ROUTER PARAMS:",t),o.default.getTransport(t,n,J,S,"RouterService").then(g).catch(u)};c=()=>{if(clearInterval(i),y++,y<=3)p.system.error("WINDOW LIFECYCLE:STARTUP:RouterClient: failure to connect to router service. Retrying...",y,t),m();else{const e="A cross domain transport has failed to connect. Cross domain components may not work. Please contact your administrator.";p.system.error(e,t),s.default.alert("dev","ONCE-SINCE-STARTUP","FSBL-Internal-Transport-Failure",e,{url:this.notificationURL})}},l=()=>{p.system.debug("WINDOW LIFECYCLE:STARTUP:RouterClient: sendHandshake",a),B(new O),a++>50&&c()},f=()=>{if(!h){if(p.system.debug(`WINDOW LIFECYCLE:STARTUP:RouterClient connected: Starting ${S} with transport ${C.identifier()}`),h=!0,clearInterval(i),d)for(let e=0;e<d.length;e++){p.system.debug("RouterClient: firing queued msg");const t=d[e];C.send(t)}r&&r()}},m()};function K(){return`${S}.${f.v4()}`}function X(e,t){let n=!1;return void 0!==e[t]&&(delete e[t],n=!0),n}this.calibrateTimeWithRouterService=function(e){let n,r=0,o=1/0;t=function(t){r++,r>5?function(t){let r=0;for(let e=1;e<5;e++){const i=t.clientBaseTime[e-1],s=t.clientBaseTime[e]-i,a=t.serviceBaseTime[e-1]-(i+s/2);s<o&&(o=s,n=a),r+=a,p.system.debug("calibrationCalculation Intermediate Values","lastRRT",s,"lastOffset",a,"fastestOffset",n,"fastestRRT",o)}r/=4,p.system.debug("RouterClient calibrationCalculation","Average Offset",r,"Chosen FastestOffset",n,t),e(n)}(t):(t.clientBaseTime.push(c.Globals.performance.timing.navigationStart+c.Globals.performance.now()),B(new T(t.clientBaseTime,t.serviceBaseTime)))},t(new T([],[]))},this.onReady=e=>new Promise((t=>{i.default.args(e,"function");const n=()=>{e&&e(),t()};E?n():A.push(n)})),this.addListener=function(e,t){p.system.info("RouterClient.addListener","CHANNEL",e),i.default.args(e,"string",t,"function"),function(e,t,n){let r=!1;const o=e[t];return void 0===o||0===o.length?(e[t]=[n],r=!0):o.push(n),r}(n,e,t)&&B(new I(e))},this.transmit=function(e,t,n={suppressWarnings:!1}){p.isLogMessage(e)||p.system.info("RouterClient.transmit","TO CHANNEL",e,"EVENT",t),i.default.args(e,"string",t,"any"),B(new R(e,t,n))},this.removeListener=function(e,t){p.system.info("RouterClient.removeListener","CHANNEL",e,"EVENT HANDLER",t),i.default.args(e,"string",t,"function"),function(e,t,n){let r=!1;const o=e[t];if(void 0!==o){const e=o.indexOf(n);e>-1?(o.splice(e,1),0===o.length&&(r=!0)):p.system.warn(`no listener defined for channel: ${t}`)}return r}(n,e,t)&&B(new L(e))},this.addResponder=(e,t)=>{if(p.system.info("RouterClient.addResponder","CHANNEL",e),i.default.args(e,"string",t,"function"),function(e,t,n){let r=!1;return void 0===e[t]&&(e[t]=n,r=!0),r}(r,e,t))B(new x(e));else{const n=`RouterClient.addResponder: Responder already locally defined for channel ${e}`;p.system.warn(n),t(n,null)}},this.query=(e,t,n,r)=>{const o=`${K()}.${e}`,s=window.performance.timing.navigationStart+window.performance.now(),a=window.performance.timing.navigationStart,u=window.performance.now();return p.system.info("RouterClient.query","RESPONDER CHANNEL",e,"QUERY EVENT",t,"PARAMS",n,"QUERY ID",o,{timestamp:s,navstart:a,timenow:u}),r||(r=n,n={timeout:2e4}),i.default.args(e,"string",t,"any=",n,"object=",r,"function"),n=n||{},i.default.args2("params.timeout",n.timeout,"number"),new Promise((function(i){w[o]=(c,l)=>{i({err:c,response:l}),"function"==typeof r?r(c,l):p.system.warn("No response event handler passed to RouterClient.query","RESPONDER CHANNEL",e,"QUERY EVENT",t,"PARAMS",n,"QUERY ID",o,{timestamp:s,navstart:a,timenow:u})},c.Globals.runningInFSBLUnitTest||function(e,t,n,r){r>0&&(e[t]=setTimeout((()=>{p.system.warn(`RouterClient: timeout waiting on query response on channel ${n} for queryID ${t} on timer ${e[t]} timeout=${r}`)}),r))}(_,o,e,n.timeout),B(new j(o,e,t))}))},this.removeResponder=e=>{p.system.info("RouterClient.removeResponder","RESPONDER CHANNEL",e),i.default.args(e,"string"),X(r,e)&&B(new N(e))},this.addPubSubResponder=(e,t,n,r)=>{let o,s;p.system.info("RouterClient.addPubSubResponder","TOPIC",e,"INITIAL STATE",t,"PARAMS",n),i.default.args(e,"any",t,"object=",n,"object="),n=n||{},i.default.args2("params.subscribeCallback",n.subscribeCallback,"function=","params.publishCallback",n.publishCallback,"function=")&&i.default.args2("params.unsubscribeCallback",n.unsubscribeCallback,"function="),void 0===n.subscribeCallback&&void 0===n.publishCallback&&void 0===n.unsubscribeCallback?(t=t||{},B(new W(e.toString(),t,!0)),s="success"):!function(e,t,n,r){let o=!1;return void 0===u[e.toString()]&&(e instanceof RegExp&&(g[e.toString()]=e,p.system.info(`RouterClient: PubSub RegEx added for topic ${e.toString()}`)),u[e.toString()]={subscribeCallback:t,publishCallback:n,unsubscribeCallback:r},o=!0),o}(e,n.subscribeCallback,n.publishCallback,n.unsubscribeCallback)?(o=`RouterClient.addPubSubResponder: Responder already locally defined for topic ${e}`,p.system.error(o)):(t=t||{},y[e.toString()]=h(t),B(new W(e.toString(),t,!1)),s="success"),r&&r(o,s)},this.removePubSubResponder=e=>{p.system.info("RouterClient.removePubSubResponder","TOPIC",e),i.default.args(e,"any"),X(u,e)?(delete y[e.toString()],delete g[e.toString()],B(new $(e))):p.system.warn(`RouterClient.removePubSubResponder failed: Could not find responder for topic ${e}`)},this.subscribe=(e,t)=>{p.system.info("RouterClient.subscribe","TOPIC",e),i.default.args(e,"string",t,"function");const n=K();return function(e,t,n,r){e[t]=n,b[t]=r}(v,n,t,e),B(new P(n,e)),{subscribeID:n,topic:e}},this.publish=(e,t)=>{p.system.info("RouterClient.publish","TOPIC",e,"EVENT",t),i.default.args(e,"string",t,"any"),B(new M(e,t))},this.unsubscribe=e=>{p.system.info("RouterClient.unsubscribe","SUBSCRIBE ID",e),i.default.args(e,"object")&&i.default.args2("subscribeIDStruct.subscribeID",e.subscribeID,"string"),!function(e,t){let n=!1;return void 0!==e[t]&&(delete e[t],n=!0),n}(v,e.subscribeID)?p.system.warn(`RouterClient.unsubscribe: Could not find subscribeID for topic ${e.topic}`):B(new D(e.subscribeID,e.topic))},this.trustedMessage=function(e){let t=!0;return p.system.debug("RouterClient.trustedMessage header",e.header),"SharedWorker"===e.header.originIncomingTransportInfo.transportID&&(t=!0),t},this.disconnectAll=function(){p.system.info("RouterClient.disconnectAll");for(const e in n)p.system.debug(`RouterClient.disconnectAll is removing listener on ${e}`),B(new L(e)),delete n[e];for(const e in r)p.system.debug(`RouterClient.disconnectAll is removing responder on ${e}`),B(new N(e)),delete r[e];for(const e in u)p.system.debug(`RouterClient.disconnectAll is removing pubsub responder on ${e}`),B(new $(e)),delete u[e.toString()],delete y[e.toString()],delete g[e.toString()];for(const e in v){const t=b[e];p.system.debug(`RouterClient.disconnectAll is removing subscriber on ${t}`),B(new D(e,t)),delete v[e],delete b[e]}},this.start=e=>new Promise((async t=>{if(this.started){const e="RouterClient.start() called twice. Ignoring second call.";return p.warn(e),t(e)}this.started=!0,p=new l.LocalLogger,"loggerService"===a.System.Window.getCurrent().name&&(p=new l.LocalLogger),S=`RouterClient.${e.windowName}.${f.v4()}`;const n=`"RouterClient Check: connecting new client for ${S}`;p.system.debug(n),console.debug(n),Q(e,e.transportName,(()=>{!function(){for(p.system.debug("WINDOW LIFECYCLE:STARTUP:RouterClient Ready"),E=!0;A.length>0;)p.system.debug("WINDOW LIFECYCLE:STARTUP:RouterClient parentReady invoked"),A.shift()()}(),t(null)}))})),this.stop=()=>{this.disconnectAll(),o.default.close(),this.started=!1}}},39319:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RouterConnectionInstance=t.RouterConnectionSingleton=void 0;const r=n(40568),o=n(72551),i=n(4971);t.RouterConnectionSingleton=i.singleton("RouterClient",r.RouterClientConstructor),o.Logger.setRouterClient(t.RouterConnectionSingleton);var s=n(40568);Object.defineProperty(t,"RouterConnectionInstance",{enumerable:!0,get:function(){return s.RouterClientConstructor}}),t.default=t.RouterConnectionSingleton},6192:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Globals=void 0,t.Globals="undefined"==typeof window?n.g:window},4971:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.singleton=void 0,t.singleton=(e,t)=>{const r=Symbol.for(`com.finsemble.singleton.${e}`);return Object.getOwnPropertySymbols(n.g).indexOf(r)>-1||(n.g[r]=new t),n.g[r]}},78379:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.MOVE_REASON=t.LAUNCHER_SERVICE=t.HEARTBEAT_TIMEOUT_CHANNEL=t.COMPONENT_STATE_STORAGE_TOPIC=t.WINDOW_SERVICE_REQUESTS=t.WORKSPACE=t.WINDOW=t.INTERRUPTIBLE_EVENTS=t.EVENT_INTERRUPT_CHANNEL=t.DOCKING=t.SERVICE_STOP_CHANNEL=t.SERVICE_START_CHANNEL=t.WINDOWSTATE=t.SERVICES_STATE_CHANNEL=t.CLIENT_SERVER_MAPPING=t.SERVICE_QUERY_READY_CHANNEL=t.SERVICE_CLOSED_CHANNEL=t.SERVICE_CLOSING_CHANNEL=t.SERVICE_READY_CHANNEL=t.SERVICE_INITIALIZING_CHANNEL=t.APPLICATION_STATE_CHANNEL=t.WRAPPERS=void 0,t.WRAPPERS={EVENTS:["title-changed","bringToFront","setBounds","alwaysOnTop","setOpacity"]},t.APPLICATION_STATE_CHANNEL="Finsemble.Application.State",t.SERVICE_INITIALIZING_CHANNEL="Finsemble.ServiceManager.serviceInitializing",t.SERVICE_READY_CHANNEL="Finsemble.ServiceManager.serviceReady",t.SERVICE_CLOSING_CHANNEL="Finsemble.ServiceManager.serviceClosing",t.SERVICE_CLOSED_CHANNEL="Finsemble.ServiceManager.serviceClosed",t.SERVICE_QUERY_READY_CHANNEL=e=>`Finsemble.ServiceManager.queryReady.${e}`,t.CLIENT_SERVER_MAPPING=e=>({authenticationClient:"authenticationService",configClient:"configService",distributedStoreClient:"dataStoreService",hotkeysClient:"hotkeysService",linkerClient:"linkerService",logger:"loggerService",searchClient:"searchService",storageClient:"storageService",windowClient:"windowService",workspaceClient:"workspaceService"}[e]),t.SERVICES_STATE_CHANNEL="Finsemble.State.Services",(n=t.WINDOWSTATE||(t.WINDOWSTATE={}))[n.NORMAL=0]="NORMAL",n[n.MINIMIZED_WAS_NORMAL=1]="MINIMIZED_WAS_NORMAL",n[n.MAXIMIZED=2]="MAXIMIZED",n[n.MINIMIZED_WAS_MAXIMIZED=3]="MINIMIZED_WAS_MAXIMIZED",n[n.TRANSITIONING=4]="TRANSITIONING",t.SERVICE_START_CHANNEL="Finsemble.Service.Start",t.SERVICE_STOP_CHANNEL="Finsemble.Service.Stop",t.DOCKING={GROUP_UPDATE:"DockingService.groupUpdate",WORKSPACE_GROUP_UPDATE:"Finsemble.WorkspaceService.groupUpdate",REQUEST_PUBLISH:"DockingService.requestGroupDataPublish"},t.EVENT_INTERRUPT_CHANNEL="Finsemble.Event.Interrupt",t.INTERRUPTIBLE_EVENTS=["close-requested","closed","close-complete","_container-close-handlers"],t.WINDOW={DELAYABLE_EVENTS:["close-requested","closed","close-complete","_container-close-handlers"],CANCELABLE_EVENTS:["close-requested"]},t.WORKSPACE={DELAYABLE_EVENTS:["load-requested","close-requested","save-requested"],CANCELABLE_EVENTS:["close-requested"],CLEAN_SHUTDOWN:"Finsemble.Workspace.cleanShutdown",UPDATE_PUBSUB:"Finsemble.WorkspaceService.update",STORAGE_TOPIC:"finsemble.workspace",CACHE_STORAGE_TOPIC:"finsemble.workspace.cache",ALL_WORKSPACES:"finsemble.allWorkspaces",ACTIVE_WORKSPACE:"activeWorkspace",LAST_USED_WORKSPACE_TOPIC:"finsemble",LAST_USED_WORKSPACE_NAME:"finsemble.lastUsedWorkspace.name",LAST_USED_WORKSPACE:"finsemble.lastUsedWorkspace",INITIAL_WORKSPACE_PREFERENCE:"finsemble.initialWorkspace",PUBLISH_REASONS:{INIT:"workspace:initialization",LOAD_DATA_RETRIEVED:"workspace:load:dataRetrieved",LOAD_FINISHED:"workspace:load:finished",WINDOW_REMOVED:"window:remove",WINDOW_ADDED:"window:add",LOAD_STARTED:"workspace:load:start",WORKSPACE_REMOVED:"Workspace:remove",WORKSPACE_RENAMED:"rename",SWITCHTO_TERMINATED:"workspace:switchTo:terminated",NEW_WORKSPACE:"new workspace",SAVE_AS:"APPLICATION LIFECYCLE:WORKSPACE LIFECYCLE:SaveAs:Workspace:Save As"},API_CHANNELS:{NEW_WORKSPACE:"Finsemble.Workspace.NewWorkspace",SAVE:"Finsemble.Workspace.Save",RENAME:"Finsemble.Workspace.Rename",SAVE_AS:"Finsemble.Workspace.SaveAs",SWITCH_TO:"Finsemble.Workspace.SwitchTo",IMPORT:"Finsemble.Workspace.Import",EXPORT:"Finsemble.Workspace.Export",REMOVE:"Finsemble.Workspace.Remove",SAVE_GLOBAL_DATA:"Finsemble.Workspace.SaveGlobalData",SAVE_VIEW_DATA:"Finsemble.Workspace.SaveViewData",GET_GLOBAL_DATA:"Finsemble.Workspace.GetGlobalData",GET_VIEW_DATA:"Finsemble.Workspace.GetViewData",GET_WORKSPACES:"Finsemble.Workspace.GetWorkspaces",GET_WORKSPACE_NAMES:"Finsemble.Workspace.GetWorkspaceNames",SET_WORKSPACE_ORDER:"Finsemble.Workspace.SetWorkspaceOrder",GET_ACTIVE_WORKSPACE:"Finsemble.Workspace.GetActiveWorkspace",GET_ACTIVE_WORKSPACE_DIRTY:"Finsemble.Workspace.GetActiveWorkspaceDirty",GET_TEMPLATES:"Finsemble.Workspace.GetTemplates",IMPORT_TEMPLATE:"Finsemble.Workspace.ImportTemplate",EXPORT_TEMPLATE:"Finsemble.Workspace.ExportTemplate",REMOVE_TEMPLATE:"Finsemble.Workspace.RemoveTemplate",SET_WINDOW_STATE:"Finsemble.Workspace.SetWindowData",GET_WINDOW_STATE:"Finsemble.Workspace.GetWindowData",ADD_WINDOW:"WorkspaceService.addWindow",REMOVE_WINDOW:"WorkspaceService.removeWindow"},DEFAULT_WINDOW_PROPS:["name","componentType","windowType","alwaysOnTop","autoShow","minWidth","minHeight","maxWidth","maxHeight","resizable","maximizable","minimizable","opacity","windowState","left","top","width","height","right","bottom","defaultLeft","defaultTop","defaultWidth","defaultHeight","defaultRight","defaultBottom","monitorInfo","icon","cachedBounds","showTaskbarIcon","isEvergreen","compositeComponentData"],ADDITIONAL_WINDOW_PROPS:{WebWindow:["url","fullscreen","frame","backgroundColor","transparent","waitForPageLoad","affinity","appUUID"],NativeWindow:["path","alias","arguments","argumentsAsQueryString","isWPF"],StackedWindow:["childWindowIdentifiers","visibleWindowIdentifier","bounds"]}},t.WINDOW_SERVICE_REQUESTS={REMOTE_FOCUS:"WindowService.remoteFocus",SET_ALWAYS_ON_TOP:"WindowService-Request-setAlwaysOnTop",IS_ALWAYS_ON_TOP:"WindowService-Request-isAlwaysOnTop"},t.COMPONENT_STATE_STORAGE_TOPIC="finsemble.componentStateStorage",t.HEARTBEAT_TIMEOUT_CHANNEL="Finsemble.WindowService.HeartbeatTimeout",t.LAUNCHER_SERVICE={WINDOW_CLOSED:"LauncherService.WindowClosed"},t.MOVE_REASON={AERO_KEY:"aero_key",SYSTEM_RESTORED:"system_restored"}},13854:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FSBLDependencyManagerSingleton=t.FSBLDependencyManager=void 0;const o=n(5939),i=r(n(39319)),s=n(78379),a=r(n(5020)),u=r(n(72551));class c extends o.EventEmitter{constructor(e){super(),this.callback=e.callback,this.dependencies=e.dependencies,this.startupTimer=null,this.setStartupTimer=this.setStartupTimer.bind(this),this.clearStartupTimer=this.clearStartupTimer.bind(this)}clearStartupTimer(){this.startupTimer&&clearTimeout(this.startupTimer),delete this.startupTimer}setStartupTimer(){const e=this;this.startupTimer=+setTimeout((()=>{e.emit("timeout")}),1e4)}}function l(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}class f{constructor(){this.servicesAreAllOnline={},this.clientsAreAllOnline={},this.onlineClients=[],this.dependencies={},this.startupTimers={},this.startupTimerFired=!1,this.bindCorrectContext()}waitFor(e,t){const n=l();e.clients||(e.clients=[]),e.clients.length&&(e.clients=e.clients.map((e=>e.charAt(0).toLowerCase()+e.slice(1))));const r=new c({dependencies:e,callback:t});return r.setStartupTimer(),r.on("timeout",(()=>{this.onDependencyTimeout(r)})),this.dependencies[n]=r,this.checkDependencies(),r}onDependencyTimeout(e){const t=this.getOfflineClients();let n="APPLICATION LIFECYCLE:STARTUP:Dependency not online after 10 seconds.";t.length&&(n=`${n} Waiting for these clients: ${t.join(", ")}.`),e.emit("err",n)}checkDependencies(){for(const e in this.dependencies){const t=this.dependencies[e],{dependencies:n,callback:r}=t;(!n.clients.length||this.clientsAreAllOnline[e]||(this.clientsAreAllOnline[e]=this.checkClients(n.clients),this.clientsAreAllOnline[e]))&&(delete this.dependencies[e],t.clearStartupTimer(),r&&r())}}getOfflineClients(){let e=[];for(const t in this.dependencies){const{dependencies:n}=this.dependencies[t];e=e.concat(n.clients.filter((e=>!this.onlineClients.includes(e))))}return e.filter(((t,n)=>e.indexOf(t)===n))}checkClients(e){return e.every((e=>this.onlineClients.includes(e)))}setClientOnline(e){this.onlineClients.includes(e)||(this.onlineClients.push(e),this.checkDependencies())}getOnlineClients(){return this.onlineClients}bindCorrectContext(){this.checkDependencies=this.checkDependencies.bind(this),this.checkClients=this.checkClients.bind(this),this.getOfflineClients=this.getOfflineClients.bind(this),this.onDependencyTimeout=this.onDependencyTimeout.bind(this),this.waitFor=this.waitFor.bind(this)}}class d{constructor(){this.offlineServices=[],this.dependencies={},this.checkDependencies=this.checkDependencies.bind(this)}waitFor(e,t){u.default.system.debug("DependencyManager:waitFor",e),e.services||(e.services=[]);const n=l();this.dependencies[n]={dependencies:e,callback:t}}checkDependencies(){if(console.debug("checkDependencies",this.dependencies),Object.keys(this.dependencies))for(const e in this.dependencies){const{dependencies:t,callback:n}=this.dependencies[e];(u.default.system.debug("DependencyManager:checkDependency",t.services,this.offlineServices),!t.services.length||this.checkServices(t.services))&&(console.debug("checkDependencies callback"),delete this.dependencies[e],n&&n())}}checkServices(e){return e.every((e=>this.offlineServices.includes(e)))}setServiceOffline(e){u.default.system.debug("setServiceOffline",e),console.debug("setServiceOffline",e),this.offlineServices.push(e),this.checkDependencies()}}class p extends o.EventEmitter{constructor(){super(),this.startup=new f,this.shutdown=new d,this.RouterClient=i.default,this.AuthorizationCompleted=!1,this.bindCorrectContext(),this.onAuthorizationCompleted(this.startup.checkDependencies),i.default.onReady(this.listenForServices)}bindCorrectContext(){this.listenForServices=this.listenForServices.bind(this),this.onAuthorizationCompleted=this.onAuthorizationCompleted.bind(this)}setClientOnline(e){this.startup.setClientOnline(e)}onServiceStateChange(e){Object.keys(e).forEach((t=>{const{state:n}=e[t];"closed"===n&&this.shutdown.setServiceOffline(t)}))}listenForServices(){u.default.system.debug("DependencyManager:listenForServices before wait"),a.default.waitForBootStage("kernel","stageEntered",(()=>{u.default.system.debug("DependencyManager:listenForServices after wait"),this.RouterClient.subscribe(s.SERVICES_STATE_CHANNEL,((e,t)=>{u.default.system.debug("DependencyManager:listenForServices SERVICES_STATE_CHANNEL",t.data),this.onServiceStateChange(t.data)})),this.RouterClient.addListener(s.SERVICE_CLOSED_CHANNEL,((e,t)=>{u.default.system.debug("DependencyManager:listenForServices SERVICE_CLOSED_CHANNEL",t.data);const n={};n[t.data.name]={state:"closed"},this.onServiceStateChange(n)})),this.RouterClient.subscribe(s.APPLICATION_STATE_CHANNEL,((e,t)=>{switch(t.data.state){case"authenticated":case"ready":break;case"closing":this.shutdown.checkDependencies()}}))}))}onAuthorizationCompleted(e){this.AuthorizationCompleted?e():this.addListener("AuthorizationCompleted",e)}}t.FSBLDependencyManager=p,t.FSBLDependencyManagerSingleton=new p,t.default=t.FSBLDependencyManagerSingleton},24232:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.checkDeprecatedConfigs=t.isEqualIgnoringArrayOrder=t.sleep=t.checkIfBoundsAreEqual=t.removeKeys=t.toRecord=t.isStackedWindow=t.wrapWithTimeout=t.timeoutPromise=t.getRandomWindowName=t.getProp=t.composeRL=t.instrumentPromise=t.promisify=t.identity=t.isNumber=t.chunkArray=t.Timeout=t.mockLogger=t.capitalizeFirst=t.clone=t.isServiceInWindow=t.iAmAServiceWindow=t.guuid=void 0;const o=n(50586),i=r(n(80089)),s=r(n(75892)),a=r(n(47184)),u=r(n(65162)),c=n(33998),l=r(n(72551)),f=window;function d(e,t){if(Array.isArray(e))return e.slice();try{return JSON.parse(JSON.stringify(e))}catch(e){return t("clone error",e),e}}function p(e,t){return new Promise(((n,r)=>{const o=setTimeout((()=>{clearTimeout(o),r(t)}),e)}))}function h(e,t,n){return`${e}.${t}.${n}`}function y(e,t,n){const r=`${h(e.baseString,e.newPath,e.newValue)}`;l.default.system.deprecated(`${h(e.baseString,t,n)} has been deprecated in favor of ${r}`)}t.guuid=function(){return o.v4()},t.iAmAServiceWindow=function(){return!(!f.finsembleServices||!f.finsembleServices.length)},t.isServiceInWindow=function(e){return f.finsembleServices&&f.finsembleServices.find((t=>t.name===e))},t.clone=d,t.capitalizeFirst=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},t.mockLogger=new class{constructor({debug:e}={debug:!0}){e?(this.system=console,this.system.debug=console.log):this.system={warn:Function.prototype,debug:Function.prototype,log:Function.prototype,info:Function.prototype,error:console.error}}isLogMessage(){return!0}start(){}},t.Timeout=class{constructor(e,t){this.fired=!1,this.id=setTimeout((()=>{e(),this.fired=!0}),t),this.clear=this.clear.bind(this),this.didFire=this.didFire.bind(this)}clear(){this.fired||clearTimeout(this.id)}didFire(){return this.fired}},t.chunkArray=function(e,t){if(e<=0)throw new Error("Can't chunk array by number less than 0");return t.reduce(((n,r,o)=>{if(o%e==0){const r=[];for(let n=o;n<o+e;n++)n<t.length&&r.push(t[n]);n.push(r)}return n}),[])},t.isNumber=function(e){return!(!e||Number.isNaN(Number(e)))&&Number(e)},t.identity=function(e){return e},t.promisify=function(e,t){return function(){const n=Array.prototype.slice.call(arguments);return new Promise(((r,o)=>{n.push(((e,t)=>e?o(e):r(t))),e.apply(t,n)}))}},t.instrumentPromise=async(e,t,n)=>{const r=`${t} end`;return e(`${t} start`),n.then((()=>e(r)))},t.composeRL=(...e)=>e.reduce(((e,t)=>(...n)=>e(t(...n)))),t.getProp=function e(t,n,r){const o=Array.isArray(n)?n:n.split(".").filter((e=>e.length));return o.length?e(t[o.shift()],o,r):void 0===t?r:t},t.getRandomWindowName=function(e="RouterClient"){return`${e}-${o.v4()}`},t.timeoutPromise=p,t.wrapWithTimeout=function(e,t,n){return Promise.race([e,p(t,n)])},t.isStackedWindow=function(e){return e&&"StackedWindow"===(i.default(e,"windowIdentifier.windowType")||e.windowType)},t.toRecord=function(e,t){const n="string"==typeof e?t=>t[e]:e;return t.reduce(((e,t)=>(e[n(t)]=t,e)),{})},t.removeKeys=function(e,t){if(!e)return e;const n=Object.keys(e).filter((e=>!t.includes(e)));return s.default(e,n)},t.checkIfBoundsAreEqual=function(e,t){if(!e||!t)return!1;const n=["left","right","top","bottom","width","height"],r=s.default(e,n),o=s.default(t,n);return!!a.default(r,o)},t.sleep=function(e,t=!1){return new Promise(((n,r)=>{t?setTimeout((()=>{try{r("timeout expired")}catch{}}),e):setTimeout(n,e)}))},t.isEqualIgnoringArrayOrder=function(e,t){const n=d(e,Function.prototype),r=d(t,Function.prototype);return u.default(n,r,((e,t)=>{if(Array.isArray(e)&&Array.isArray(t))return u.default(e.sort(),t.sort())}))},t.checkDeprecatedConfigs=function(e,t,n){const{baseString:r,oldPath:o,newPath:i,oldValue:s,newValue:a}=t;let u=c.ConfigUtilInstance.getDefault(e,h(r,i,a),null);return null===u&&(u=c.ConfigUtilInstance.getDefault(e,h(r,i,s),null),u?y(t,i,s):(u=c.ConfigUtilInstance.getDefault(e,h(r,o,a),null),u?y(t,o,a):(u=c.ConfigUtilInstance.getDefault(e,h(r,o,s),null),u?y(t,o,s):u=n))),u}},82369:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(72551)),i=n(51742),s={activeTransports:{},liveTransport:null,addTransport(e,t){this.activeTransports[e]=t,o.default.system.log(`RouterTransport ${e} added to activeTransports`)},getActiveTransports(e){const t=[];function n(e){-1===t.indexOf(e)&&t.push(e)}return i.System.InterApplicationBus&&n("IPCBus"),n("FinsembleTransport"),SharedWorker&&n("SharedWorker"),n(e.sameDomainTransport),n(e.crossDomainTransport),o.default.system.log("getActiveTransports",t),t},getTransport:(e,t,n,r,o)=>new Promise(((i,a)=>{const u=s.activeTransports[t];u?s.liveTransport=new u(e,n,r,o,(e=>{i(e)})):a(`unknown router transport name: ${t}`)})),close(){s.liveTransport&&(s.liveTransport.close(),s.liveTransport=null)}},a=function(e,t,n,r,i){let s;const a=this;this.send=function(e,t){1===arguments.length?(t=arguments[0],e=null):(e=arguments[0],t=arguments[1]),o.default.system.verbose("SharedWorkerTransport Outgoing Transport",t);try{s.port.postMessage([e,t])}catch(e){o.default.system.error(`SharedWorkerTransport: post message failed: ${JSON.stringify(e)}`,"Probable cause is sending illegal data type (e.g. function).")}},this.identifier=function(){return"SharedWorker"};const u=e.transportSettings.SharedWorker&&e.transportSettings.SharedWorker.workerPath?e.transportSettings.SharedWorker.workerPath:`${e.routerDomainRoot}/common/routerSharedWorker.js`;o.default.system.log(`SharedWorker Transport Initializing for ${n} using ${u}`),console.log(`SharedWorker Transport Initializing for ${n} using ${u}`),s=new SharedWorker(u,{name:"Finsemble",credentials:"include"}),s.port.onmessage=function(e){const n=e.data[0],r=e.data[1],i={transportID:a.identifier(),port:n};o.default.system.verbose("SharedWorkerTransport Incoming Transport",i,"Message",r),t(i,r)},s.onerror=function(e){o.default.system.error(`SharedWorkerTransport Transport Error${JSON.stringify(e)}`)},s.port.start(),"RouterService"===n&&s.port.postMessage({data:"connect",source:"RouterService"}),this.close=()=>{s.port.close()},i(this)},u=function(e,t,n,r,s){const{uuid:a}=i.System.Application.getCurrent(),u=this;this.send=function(e,t){let n;1===arguments.length?(n=r,t=arguments[0]):(n=e.name,t=arguments[1]),o.default.system.verbose("IPCTransport Outgoing Transport",a,n,"Message",t),i.System.InterApplicationBus.publish(n,t,(()=>{}),(()=>{}))},this.identifier=function(){return"IPCBus"},o.default.system.log(`IPCBus Transport Initializing for ${n}`),console.log(`IPCBus Transport Initializing for ${n}`);const c=i.System.InterApplicationBus.subscribe("*",n,(function(e,n){const r={transportID:u.identifier(),senderUuid:n,name:e.header.origin};o.default.system.verbose("IPCTransport Incoming Transport",r,"Message",e),t(r,e)}),(()=>{}),(function(e){o.default.system.error(`IPCBus Subscribe Failure: ${e}`)}));this.close=()=>{i.System.InterApplicationBus.unsubscribe(c)},s(this)},c=function(e,t,n,r,i){const s=`${e?.transportSettings?.FinsembleTransport?.serverAddress??e?.transportSettings?.serverAddress??"ws://127.0.0.1:3376"}/router`,a=this;let u;function c(){o.default.system.error(`FinsembleTransport Connection Timeout for ${n}`),i(a)}function l(){o.default.system.log(`FinsembleTransport Transport Initializing for ${n} using ${s}`),console.log(`FinsembleTransport Transport Initializing for ${n} using ${s}`),s.startsWith("ws:")||s.startsWith("wss:")||console.error(`Illegal WebSocket address "${s}" (Missing ws:// or wss:// ?)`),u=new WebSocket(s);const e=setTimeout(c,3e3);u.addEventListener("open",(()=>{clearTimeout(e),o.default.system.log("FinsembleTransport Connected to Server"),console.log("FinsembleTransport Connected to Server"),u.addEventListener("message",(e=>{const r=JSON.parse(e.data);("RouterService"===n&&"ROUTER_SERVICE"==r.dest||n===r.message.client)&&function(e){const n={transportID:a.identifier(),client:e.clientMessage.header.origin};o.default.system.verbose("FinsembleTransport Incoming Transport",n,"Message",e),t(n,e.clientMessage)}(r.message)})),i(a)}))}this.send=function(e,t){let n,r;1===arguments.length?(n="ROUTER_SERVICE",r={clientMessage:t=arguments[0]}):(n="ROUTER_CLIENT",t=arguments[1],r={client:e.client,clientMessage:t}),o.default.system.verbose("FinsembleTransport Outgoing Transport",n,"NewMessage",r),u.readyState===WebSocket.OPEN&&u.send(JSON.stringify({dest:n,message:r})),u.readyState===WebSocket.CONNECTING&&u.addEventListener("open",(()=>{u.send(JSON.stringify({dest:n,message:r}))})),u.readyState===WebSocket.CLOSED&&(l(),u.addEventListener("open",(()=>{u.send(JSON.stringify({dest:n,message:r}))}))),u.readyState===WebSocket.CLOSING&&(u.onclose=()=>{l(),u.addEventListener("open",(()=>{u.send(JSON.stringify({dest:n,message:r}))}))})},this.identifier=function(){return"FinsembleTransport"},this.close=()=>{u.close()},l()};s.addTransport("SharedWorker",a),s.addTransport("IPCBus",u),s.addTransport("FinsembleTransport",c),t.default=s},51742:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.System=void 0;const r=n(16925);class o{constructor(e,t,n){return new fin.desktop.Window(e,t)}static get getCurrent(){return fin.desktop.Window.getCurrent}static get wrap(){return fin.desktop.Window.wrap}}class i{constructor(e,t,n){t&&t()}static getCurrent(){const{windowName:e}=r.Startup.getInstance().getStartupData();return{name:e,uuid:`${e}-uuid`,getOptions:e=>{e&&e({})},addEventListener:()=>{},updateOptions:()=>{},close:()=>{},startMovingWindow:()=>{},stopMovingWindow:()=>{},isShowing:()=>{},bringToFront:()=>{},show:()=>{},hide:()=>{},setTaskbarIcon:()=>{}}}static wrap(){return{}}}class s{constructor(e,t,n){return new fin.desktop.Application(e,t)}static get getCurrent(){return fin.desktop.Application.getCurrent}static get wrap(){return fin.desktop.Application.wrap}}class a{constructor(e){new fin.desktop.Notification(e)}}class u{constructor(){return new fin.desktop.System.Clipboard}static get writeText(){return fin.desktop.System.Clipboard.writeText}static get writeHTML(){return fin.desktop.System.Clipboard.writeHTML}static get writeRTF(){return fin.desktop.System.Clipboard.writeRTF}static get readText(){return fin.desktop.System.Clipboard.readText}static get readHTML(){return fin.desktop.System.Clipboard.readHTML}static get readRTF(){return fin.desktop.System.Clipboard.readRTF}}class c{static isFreestanding(){return"undefined"==typeof fin}static get Application(){return s}static get Window(){return c.isFreestanding()?i:o}static get Notification(){return a}static get Clipboard(){return u}static async getMousePosition(e=Function.prototype){return new Promise(((t,n)=>{fin.desktop.System.getMousePosition((n=>{(n.left||0===n.left)&&(n.x=n.left),(n.top||0===n.top)&&(n.y=n.top),e(null,n),t(n)}),(t=>{e(t,null),n(t)}))}))}static getSDServerInfo(e=Function.prototype){return new Promise((t=>{fin.desktop.System.getSDServerInfo((n=>{t(n),e(n)}))}))}static getMonitorInfo(e=Function.prototype){return new Promise((t=>{fin.desktop.System.getMonitorInfo((n=>{t(n),e(n)}))}))}static container(){return"undefined"==typeof fin?"freestanding":fin.container?fin.container:"FEA"}static isBrowserView(){return!c.isFreestanding()&&fin.isBrowserView()}static getViewId(){return fin.getViewId()}static hasBrowserView(){return!c.isFreestanding()&&fin.hasBrowserView()}static get fin(){return fin||{}}static ready(e){return new Promise((t=>{fin.desktop.main((()=>{e&&e(),t()}))}))}static getHostSpecs(e=Function.prototype){return new Promise((t=>{fin.desktop.System.getHostSpecs((n=>{t(n),e(n)}))}))}static get InterApplicationBus(){return fin.desktop.InterApplicationBus}static get launchExternalProcess(){return fin.desktop.System.launchExternalProcess}static get terminateExternalProcess(){return fin.desktop.System.terminateExternalProcess}static get getAllApplications(){return fin.desktop.System.getAllApplications}static get exit(){return fin.desktop.System.exit}static get clearCache(){return fin.desktop.System.clearCache}static get showDeveloperTools(){return fin.desktop.System.showDeveloperTools}static get getRuntimeInfo(){return fin.desktop.System.getRuntimeInfo}static get addEventListener(){return c.isFreestanding()?window.addEventListener:fin.desktop.System.addEventListener}static get addSelectClientCertificateListener(){return fin.desktop.System.addSelectClientCertificateListener}static get addCertificateErrorListener(){return fin.desktop.System.addCertificateErrorListener}static get getVersion(){return fin.desktop.System.getVersion}static get getUpdateAvailable(){return fin.desktop.System.getUpdateAvailable}static get openUrlWithBrowser(){return fin.desktop.System.openUrlWithBrowser}static get getAllWindows(){return fin.desktop.System.getAllWindows}static get getProcessList(){return fin.desktop.System.getProcessList}static get getProtocolString(){return fin.desktop.System.getProtocolString}static get hideSplashScreen(){return fin.desktop.System.hideSplashScreen}static startupApplicationHandshake(){fin.desktop.System.startupApplicationHandshake&&fin.desktop.System.startupApplicationHandshake()}static closeApplication(e,t=Function.prototype){return new Promise((n=>{let r,o=!1;const i=()=>{o||(console.log("Attempting to terminate",e.uuid),e.terminate((()=>{t(),n()}),(()=>{o||(o=!0,clearInterval(r),console.log("force closing ",e.uuid),e.terminate())})))};r=setInterval(i,2e3),console.log("closing ",e.uuid),e.close(!1,(()=>{console.log("app.close: successfully closed",e.uuid),o=!0,clearInterval(r),t(),n()}),i)}))}}t.System=c},5020:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(39319)),i=r(n(72551)),s=n(56188),a=n(33509),u=n(95269),c=new class{publishBootStatus(e,t,n){console.log("publishStartingStatus",e,n),i.default.system.debug("publishBootStatus",e,t,n),o.default.publish(u.statusChannel(e),{name:e,type:t,state:n})}waitForBootStage(e,t,n=Function.prototype){return new Promise(((r,u)=>{i.default.system.debug("SystemManagerClient.waitForBootStage entry",e,t);const c=s.ALL_BOOT_STAGES.indexOf(e);"microkernel"===e&&"stageEntered"===t&&i.default.system.error("Cannot wait on `stageEntered` for microkernel because router isn't up yet. So will instead wait for microkernal stage complete.");const l=o.default.subscribe(a.STAGE_CHANNEL,((a,f)=>{if(i.default.system.debug("SystemManagerClient.waitForBootStage new stage",f.data.stage,l),a)i.default.system.error("SystemManagerClient.waitForBootStage subscribe error",a),n(a),u(a);else if(-1===c)a="illegal stage argument",i.default.system.debug("SystemManagerClient.waitForBootStage subscribe error",a,e),n(a),u(a);else{const a=s.ALL_BOOT_STAGES.indexOf(f.data.stage);i.default.system.debug("SystemManagerClient.waitForBootStage new stage",f.data,l),"stageEntered"===t&&a+1>=c?(i.default.system.debug("SystemManagerClient.waitForBootStage stageEntered",e,l,n.name),n(),r(),o.default.unsubscribe(l)):"stageCompleted"===t&&a>=c?(i.default.system.debug("SystemManagerClient.waitForBootStage completed",e,l),n(),r(),o.default.unsubscribe(l)):i.default.system.debug(`SystemManagerClient.waitForBootStage else currentStageIndex=${a} stageIndex=${c} `,a,c,e,l)}}))}))}waitForStartup(e,t=Function.prototype){return new Promise(((n,r)=>{i.default.system.debug(`SystemManagerClient.waitForStartup.${e}`,e);const s=o.default.subscribe(u.statusChannel(e),((a,u)=>{i.default.system.debug("SystemManagerClient.waitForStartup subscribe",e,a,u),a?(i.default.system.error("SystemManagerClient.waitForStartup subscribe error",a),t(a),r()):u.data.name===e&&"completed"===u.data.state&&(i.default.system.debug("SystemManagerClient.waitForStartup completed",e),t(),n(),o.default.unsubscribe(s))}))}))}publishCheckpointState(e,t,n){console.log("publishCheckpoint",e,t,n,u.checkpointChannel(e,t)),i.default.system.debug("publishCheckpoint",e,t,n,u.checkpointChannel(e,t)),o.default.publish(u.checkpointChannel(e,t),{windowName:e,checkpointName:t,state:n})}showSystemLog(){i.default.system.debug("SystemManagerClient.showSystemLog"),o.default.transmit(a.SHOW_SYSLOG_CHANNEL,!0)}systemLog(e,t){i.default.system.debug("SystemManagerClient.systemLog",e,t),o.default.transmit(a.SYSLOG_CHANNEL,{params:e,logMessage:t})}};t.default=c},76420:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.windowNameFromRouterHeader=t.getWindowType=t.isWindows=t.adjustBoundsToBeOnMonitor=t.isOnAMonitor=t.getNewBoundsWhenMovedToMonitor=t.openSharedData=t.injectJS=t.guuid=t.camelCase=t.getMyWindowIdentifier=t.getMonitorByDescriptor=t.windowOnMonitor=t.getMonitorFromCommand=t.getMonitor=t.getWhichMonitor=t.findMonitor=t.getWindowDescriptor=t.getFinWindow=t.getMonitorFromWindow=t.getMonitorFromXY=t.getAllMonitors=t.crossDomain=t.isPercentage=t.castToPromise=t.getContainerVersion=t.clone=t.Monitors=void 0;const o=r(n(36589)),i=n(51742),s=r(n(93802)),a=r(n(72551));function u(e,t={}){if(null===e||"object"!=typeof e)return e;if(e.constructor==Date||e.constructor==RegExp||e.constructor==Function||e.constructor==String||e.constructor==Number||e.constructor==Boolean)return new e.constructor(e);t=t||new e.constructor;for(const n in e)t[n]=void 0===t[n]?u(e[n],null):t[n];return t}function c(e,n){const r=Number.isFinite(e.x)?e.x:e.defaultLeft,o=Number.isFinite(e.y)?e.y:e.defaultTop,i=r+e.defaultWidth,s=o+e.defaultHeight;return new Promise(((e,c)=>{t.Monitors.getMonitorFromScaledXY(r,o,(l=>{if(!l)return a.default.system.debug("getMonitorFromWindow - top-left is off screen, trying bottom right"),void t.Monitors.getMonitorFromScaledXY(i,s,(i=>{if(!i)return a.default.system.debug("getMonitorFromWindow - bottom-right is off screen, getting primary"),void t.Monitors.getAllMonitors((t=>{t[0]?(n&&n(t[0]),e(t[0])):(c(new Error("Cannot find monitor for window.")),n&&n(null))}));i=u(i);const{monitorRect:s}=i;(s.left<r||s.right<o)&&(i.straddling=!0),n&&n(i),e(i)}));l=u(l);const{monitorRect:f}=l;(f.right>i||f.bottom>s)&&(l.straddling=!0),n&&n(l),e(l)}))}))}function l(e,t){return new Promise(((n,r)=>{const o=i.System.Window.getCurrent();o.getOptions((s=>{if(e&&e.windowName){e.uuid||(e.uuid=s.uuid);const o=i.System.Window.wrap(e.uuid,e.windowName);o.getInfo((()=>{t&&t(o),n(o)}),(()=>{t&&t(null),r(`Window ${e.windowName} not found. UUID: ${e.uuid}`),console.debug(`util.getFinWindow: Window ${e.windowName} not found`)}))}else if(e&&e.componentType)if(void 0!==window.LauncherService){const o=window.LauncherService.componentFinder(e);o?(n(o),t&&t(o)):(r(`util.getFinWindow: Component ${e.componentType} not found.`),t&&t(null))}else r("getFinWindow by componentType is currently only operable within LaunchService"),t&&t(null);else t&&t(o),n(o)}))}))}function f(e,t){return new Promise(((n,r)=>{l(e).then((e=>{e.getOptions((e=>{t&&t(e),n(e)}))})).catch((e=>{console.warn(e),t&&t(null),r(e)}))}))}function d(e,t,n){for(let r=0;r<e.length;r++){const o=e[r];if(o[t]===n)return o}return null}function p(e,n){let r;arguments.length>2&&(e={commandMonitor:arguments[0],monitors:arguments[1],launchingMonitorPosition:arguments[2]},n=null);let{commandMonitor:o,monitors:i,launchingMonitorPosition:s}=e;const a=o&&""!==o||0===o;if("primary"===o)r=d(i,"whichMonitor","primary");else if("next"===o){let e=s+1;e>=i.length&&(e=0),r=i[e]}else if("previous"===o){let e=s-1;e<0&&(e=i.length-1),r=i[e]}else if("mine"===o){var u=!0;activeWindows.getWindow(e.windowIdentifier.windowName)._getBounds(((e,o)=>{e?(r=i[0],n(r)):t.Monitors.getMonitorFromScaledXY(o.left,o.top,(e=>{n(e)}))}))}else a?(o>=i.length&&(o=i.length-1),r=i.filter((e=>e.position===o))[0]):s&&(r=i[s]);if(r||(r=i[0]),!u){if(!n)return r;n(r)}}function h(e,t){return new Promise(((n,r)=>{f(e,(e=>{e?c(e,(e=>{t&&t(e),n(e)})):r("util.getMonitor: Can't locate windowDescriptor.")}))}))}t.Monitors=new s.default(Function.prototype,Function.prototype,{System:i.System}),t.clone=u,t.getContainerVersion=function(e=Function.prototype){return new Promise((t=>{i.System.getVersion((n=>{const r=n.split(".").map(Number),o={major:r[0],chromium:r[1],minor:r[2],patch:r[3]};e(o),t({versionObject:o})}))}))},t.castToPromise=function(e){return function(...t){return new Promise(((n,r)=>{const o=e.apply(null,Array.from(t));try{return o.then(n,r)}catch(e){e instanceof TypeError?n(o):r(e)}}))}},t.isPercentage=function(e){return"string"==typeof e&&-1!==e.indexOf("%")},t.crossDomain=function(e){const t=document.createElement("a");t.href=e;const n=window.location.hostname===t.hostname,r=window.location.protocol===t.protocol,o=(void 0!==window.location.port?window.location.port:80)===(void 0!==t.port?t.port:80),i=!(n&&o&&r);return a.default.system.debug(`Launcher crossDomain=${i} (${n}:${r}:${o})`),i},t.getAllMonitors=t.Monitors.getAllMonitors,t.getMonitorFromXY=t.Monitors.getMonitorFromScaledXY,t.getMonitorFromWindow=c,t.getFinWindow=l,t.getWindowDescriptor=f,t.findMonitor=d,t.getWhichMonitor=p,t.getMonitor=h,t.getMonitorFromCommand=function(e,n,r){return new Promise((o=>{h(n,(n=>{t.Monitors.getAllMonitors((t=>{p({commandMonitor:e,monitors:t,launchingMonitorPosition:n.position},(e=>{r&&r(e),o(e)}))}))}))}))},t.windowOnMonitor=function(e,t){return e.left>=t.left&&e.left<t.right||e.right<=t.right&&e.right>t.left},t.getMonitorByDescriptor=function(e,t){return new Promise((n=>{c(e,(e=>{t&&t(e),n(e)}))}))},t.getMyWindowIdentifier=function(e){const t=i.System.Window.getCurrent();return new Promise((n=>{t.getOptions((r=>{let o=null;const{customData:i}=r;i&&i.component&&(o=i.component.type);const s={windowName:t.name,uuid:t.uuid,componentType:o};e&&e(s),n(s)}))}))},t.camelCase=function(...e){let t="";for(let n=0;n<e.length;n++)t=`${t} ${e[n]}`;return t.replace(/\s(.)/g,(e=>e.toUpperCase())).replace(/\s/g,"").replace(/^(.)/,(e=>e.toLowerCase()))},t.guuid=function(){return o.default()},t.injectJS=function(e,t){const n=document.createElement("script");n.onload=t,n.type="text/javascript",n.async=!0,n.src=e;const r=document.getElementsByTagName("head")[0],o=r.getElementsByTagName("script")[0];r.insertBefore(n,o)},t.openSharedData=function(e,t){const n=FSBL.Clients.LauncherClient,r=FSBL.Clients.LinkerClient;e.multipleOpenerHandler||(e.multipleOpenerHandler=function(e){let t,n=0;for(const r of Object.keys(e))e[r].length>n&&(t=r,n=e[r].length);return[t]});const o=[],i={};n.getComponentsThatCanReceiveDataTypes({dataTypes:Object.keys(e.data)},((s,u)=>{for(const e of Object.keys(u))if(u[e].componentTypes.length)for(const t of u[e].componentTypes)i[t]?i[t].push(e):i[t]=[e];else{const t=`No Components Available to Handle the type: ${e}`;o.push(t),a.default.system.error(t)}let c=Object.keys(i);if(c.length){c.length>1&&(c=e.multipleOpenerHandler(i));const s=Object.keys(r.channels);if(s.length)if(r.getLinkedComponents({componentTypes:c,windowIdentifier:r.windowIdentifier()}).length||e.publishOnly)r.publish({dataType:"Finsemble.DragAndDropClient",data:e.data},(()=>{})),t&&t(o.length?o:null,"Data published");else{for(const t of c)n.spawn(t,{data:{sharedData:e.data,linker:{channels:s}},addToWorkspace:!0});t&&t(o.length?o:null,"Linked Window(s) spawned with data")}else if(!e.publishOnly){for(const t of c)n.spawn(t,{data:{sharedData:e.data},addToWorkspace:!0});t&&t(o.length?o:null,"New Window(s) spawned with data")}}else t&&t(o.length?o:null,null)}))},t.getNewBoundsWhenMovedToMonitor=function(e,t,n="availableRect"){const r=e[n]||e.availableRect||e.monitorRect,o=u(t);return t.top<r.top?o.top=r.top:t.top>r.bottom-t.height&&(o.top=r.bottom-t.height),t.left<r.left?o.left=r.left:t.left>r.right-t.width&&(o.left=r.right-t.width),o.bottom=o.top+o.height,o.right=o.left+o.width,o.right>r.right&&(o.right=r.right),o.top<r.top&&(o.top=r.top),o.left<r.left&&(o.left=r.left),o.bottom>r.bottom&&(o.bottom=r.bottom),o.height=o.bottom-o.top,o.width=o.right-o.left,{newBounds:o,distanceMoved:Math.sqrt((t.left-o.left)**2+(t.top-o.top)**2),monitor:e}},t.isOnAMonitor=function(e){return this.Monitors.allMonitors.some((t=>{const{monitorRect:n}=t;return e.left>=n.left&&e.left<=n.right&&e.right>=n.left&&e.right<=n.right&&e.top>=n.top&&e.top<=n.bottom&&e.bottom>=n.top&&e.bottom<=n.bottom}))},t.adjustBoundsToBeOnMonitor=function(e,t="availableRect"){if(this.isOnAMonitor(e))return a.default.system.info("Launcher.adjustWindowDescriptorBoundsToBeOnMonitor: on monitor."),e;const n=this.Monitors.allMonitors.map((n=>{let r=n.rawMonitor?n.rawMonitor:n;return this.getNewBoundsWhenMovedToMonitor(r,e,t)})).sort(((e,t)=>e.distanceMoved-t.distanceMoved))[0];return a.default.system.info("Launcher.adjustWindowDescriptorBoundsToBeOnMonitor: not on monitor. bounds",e,"monitor name",n.monitor.name,"newBounds",n.newBounds),n.newBounds},t.isWindows=async function(e=Function.prototype){const t=(await i.System.getHostSpecs()).name.toUpperCase().includes("WINDOWS");return e(t),t},t.getWindowType=function(e){const t="WebWindow";if(e.windowType&&!["assimilation","assimilated","native","application","NativeWindow","FinsembleNativeWindow","CompoundWindow","WebWindow","WebApplication","StackedWindow"].includes(e.windowType))return a.default.system.error(`Invalid windowType: ${e.windowType}, defaulting to windowType: WebWindow`),t;let n=e.windowType||t;switch(e.windowType){case"assimilation":case"assimilated":n="NativeWindow";break;case"native":n="FinsembleNativeWindow";break;case"application":n="WebApplication";break;case"Web":n="WebWindow";break;case"StackedWindow":n="StackedWindow"}return e.native&&(n="NativeWindow"),e.compound&&(n="CompoundWindow"),n},t.windowNameFromRouterHeader=e=>{let t,n=/\.(.*)\./s;try{t=e.origin.match(n)[1]}catch(n){t=e.origin.split(".")[1]}return t}},96755:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.BaseService=void 0;const a=n(57664),u=n(13854),c=s(n(39319)),l=s(n(72551)),f=s(n(5020)),d=n(51742),p=i(n(78379)),h=n(6192),y=n(10589),{SERVICE_INITIALIZING_CHANNEL:g,SERVICE_READY_CHANNEL:m,SERVICE_QUERY_READY_CHANNEL:v,SERVICE_CLOSING_CHANNEL:b,SERVICE_CLOSED_CHANNEL:w,SERVICE_STOP_CHANNEL:_}=p,S={startupDependencies:{services:[],clients:[]},shutdownDependencies:{services:[]},addOFWrapper:!1,name:window.name};t.BaseService=class{constructor(e=S){!function(e){e.startupDependencies?(e.startupDependencies.services||(e.startupDependencies.services=S.startupDependencies.services),e.startupDependencies.clients||(e.startupDependencies.clients=S.startupDependencies.clients)):e.startupDependencies=S.startupDependencies,e.shutdownDependencies?e.shutdownDependencies.services||(e.shutdownDependencies.services=S.shutdownDependencies.services):e.shutdownDependencies=S.shutdownDependencies}(e),this.name=e.name?e.name:window.name,this.startupDependencies=e.startupDependencies,this.shutdownDependencies=e.shutdownDependencies,this.Logger=l.default,this.RouterClient=c.default,this.onBaseServiceReadyCB=null,this.setOnConnectionCompleteCB=null,this.listeners={},this.start=()=>{},this.started=!1,this.status="initializing",this.setOnline=this.setOnline.bind(this),this.onBaseServiceReady=this.onBaseServiceReady.bind(this),this.handleShutdown=this.handleShutdown.bind(this),this.waitForDependencies(),h.Globals.finsembleServices?h.Globals.finsembleServices.push(this):h.Globals.finsembleServices=[this]}async initialize(e){e()}waitForDependencies(){const e=this;if(this.started)return;this.started=!0;const t=this;function n(e){l.default.system.debug("BaseService.start.setParentUUID"),d.System.Window.getCurrent().getOptions((n=>{t.customData=n.customData,t.parentUuid=n.customData.parentUuid,e()}))}async function r(){await(new y.FSBLService).startApp(),c.default.addResponder(v(e.name),((t,n)=>{(e.status="ready")?n?.sendQueryResponse(null):n?.sendQueryResponse("service not ready")})),c.default.transmit(g,{name:t.name}),window.addEventListener("beforeunload",t.RouterClient.disconnectAll),l.default.system.debug("APPLICATION LIFECYCLE:STARTUP:SERVICE:BaseService.start.onRouterReady")}function o(e){const n=t.customData.debugServiceDelay||0;if(l.default.system.debug(`Custom Data: ${t.name} custom data`,t.customData),Number.isInteger(n))n>0&&l.default.system.debug(`APPLICATION LIFECYCLE:STARTUP:SERVICE:BaseService.start.debugDelay: ${t.name} startup will delayed by ${n} milliseconds for debugging`);else{const e=`debugDelay has an illegal value ("${n}") for ${t.name}. Value must be an integer.`;l.default.system.error(`APPLICATION LIFECYCLE:STARTUP:SERVICE:BaseService.start: ${e}`),f.default.systemLog({error:!0},e)}setTimeout(e,n)}function i(e){l.default.system.debug(`APPLICATION LIFECYCLE:STARTUP:SERVICE:BaseService.start.readyToGo ${t.name}`),console.log("Startup Dependencies for",t.name,t.startupDependencies),console.log("Shutdown Dependencies for",t.name,t.shutdownDependencies),u.FSBLDependencyManagerSingleton.shutdown.waitFor(t.shutdownDependencies,t.handleShutdown),l.default.system.debug(`APPLICATION LIFECYCLE:STARTUP:SERVICE:BaseService.start.readyToGo after wait ${t.name}`),c.default.transmit(`${d.System.Window.getCurrent().name}.onSpawned`,{name:d.System.Window.getCurrent().name},{suppressWarnings:!0}),u.FSBLDependencyManagerSingleton.startup.waitFor(t.startupDependencies,e).on("err",(e=>{l.default.system.error(e)}))}function s(e){const n=d.System.Window.getCurrent();n.isShowing((r=>{r&&!1!==t.customData.showDevConsoleOnVisible?d.System.showDeveloperTools(n.uuid,n.name,null,e):(l.default.system.debug("APPLICATION LIFECYCLE:STARTUP:SERVICE:BaseService.start.delayStartup done"),e())}))}return l.default.system.debug(`${this.name} starting`),new Promise((e=>{a.series([r,n,s,o,i],(()=>{e(),this.onDependenciesReady()}))}))}setOnline(){"ready"!==this.status&&(this.RouterClient.addListener(`${_}.${this.name}`,(()=>{u.FSBLDependencyManagerSingleton.shutdown.checkDependencies()})),this.status="ready",c.default.transmit(m,{serviceName:this.name},{suppressWarnings:!0}),l.default.system.log("APPLICATION LIFECYCLE:STARTUP:SERVICE ONLINE",this.name),f.default.publishBootStatus(this.name,"services","completed"))}onDependenciesReady(){l.default.system.debug("APPLICATION LIFECYCLE:STARTUP:BaseService onDependenciesReady",this.name),this.status="initializing",this.onBaseServiceReadyCB?this.onBaseServiceReadyCB(this.setOnline):this.initialize?this.initialize(this.setOnline):setTimeout((()=>{"ready"!==this.status&&"routerService"!==this.name&&(console.error("No onBaseServiceReadyCB on initialize function defined on your service. Ensure that service.setOnline is called"),l.default.system.error("No onBaseServiceReadyCB on initialize function defined on your service. Ensure that service.setOnline is called"))}),3e3)}onBaseServiceReady(e){"initializing"===this.status?this.onBaseServiceReadyCB=()=>{e(this.setOnline)}:e(this.setOnline)}addEventListener(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)}onShutdown(e){this.addEventListener("onShutdown",e)}handleShutdown(){l.default.system.debug("BaseService.handleShutdown");const e=this;this.listeners.onShutdown?(c.default.transmit(b,{waitForMe:!0,name:this.name}),a.each(this.listeners.onShutdown,(function(e,t){a.asyncify(e)(null,t)}),(function(t){t&&l.default.system.error(t),e.shutdownComplete()}))):(c.default.transmit(b,{waitForMe:!1,name:this.name}),e.shutdownComplete())}shutdownComplete(){l.default.system.info(`"APPLICATION LIFECYCLE:SHUTDOWN:SERVICE SHUTDOWN: ${this.name}`),c.default.transmit(w,{name:this.name,uuid:d.System.Application.getCurrent().uuid})}},window.addEventListener("error",(e=>{const t=e.error?e.error.stack.substring(e.error.stack.search("at ")):"";return l.default.error(e.message,`File: ${e.filename}`,`Line: ${e.lineno}`,`Column: ${e.colno}`,`Error Stack: \n ${t}`),!1})),window.addEventListener("unhandledrejection",(e=>{"Cannot Wrap Service Manager or Services"==e.reason?l.default.warn("A service tried To wrap itself. This is a side effect of using Clients in services."):l.default.error("Unhandled rejection","reason",e.reason)}))},33509:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CHECKPOINT_CHANNEL_BASE=t.STAGE_CHANNEL=t.STATUS_CHANNEL_BASE=t.SHOW_SYSLOG_CHANNEL=t.SYSLOG_CHANNEL=t.CRITICAL_BOOT_STAGES=t.ALL_BOOT_STAGES=void 0,t.ALL_BOOT_STAGES=["microkernel","kernel","authentication","preuser","earlyuser","user"],t.CRITICAL_BOOT_STAGES=["microkernel","kernel","authentication"],t.SYSLOG_CHANNEL="systemManager.systemlog",t.SHOW_SYSLOG_CHANNEL="systemManager.showSystemlog",t.STATUS_CHANNEL_BASE="systemManager.boot.status",t.STAGE_CHANNEL="systemManager.boot.stage",t.CHECKPOINT_CHANNEL_BASE="systemManager.checkpoint"},56188:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BootReadyItem=t.BootConfigElement=t.ALL_BOOT_STAGES=void 0,t.ALL_BOOT_STAGES=["microkernel","kernel","authentication","preuser","earlyuser","user"],t.BootConfigElement=class{},t.BootReadyItem=class{constructor(e,t,n){this.name=e,this.type=t,this.config=n}}},95269:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkpointChannel=t.statusChannel=t.killOldApplications=void 0;const r=n(51742),o=n(33509);t.killOldApplications=function(e){return new Promise((async t=>{r.System.getAllApplications((async n=>{if(n)for(let t=0;t<n.length;t++){const o=n[t];if(o.uuid?.endsWith(`-${e}`)){const e=r.System.Application.wrap(o.uuid);await r.System.closeApplication(e)}}console.log("killOldApplications: finished closing old apps"),t()}))}))},t.statusChannel=function(e){return`${o.STATUS_CHANNEL_BASE}.${e}`},t.checkpointChannel=function(e,t){return`${o.CHECKPOINT_CHANNEL_BASE}.${e}.${t}`}},88801:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},77661:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},80498:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},74215:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},19600:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},89520:(e,t)=>{"use strict";var n,r,o;Object.defineProperty(t,"__esModule",{value:!0}),t.ChannelError=t.ResolveError=t.OpenError=void 0,(o=t.OpenError||(t.OpenError={})).AppNotFound="AppNotFound",o.ErrorOnLaunch="ErrorOnLaunch",o.AppTimeout="AppTimeout",o.ResolverUnavailable="ResolverUnavailable",(r=t.ResolveError||(t.ResolveError={})).NoAppsFound="NoAppsFound",r.ResolverUnavailable="ResolverUnavailable",r.ResolverTimeout="ResolverTimeout",(n=t.ChannelError||(t.ChannelError={})).NoChannelFound="NoChannelFound",n.AccessDenied="AccessDenied",n.CreationFailed="CreationFailed"},55182:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},35644:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},66129:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},51854:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},36611:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.versionIsAtLeast=t.compareVersionNumbers=t.getInfo=t.leaveCurrentChannel=t.getCurrentChannel=t.getOrCreateChannel=t.joinChannel=t.getSystemChannels=t.addContextListener=t.addIntentListener=t.raiseIntentForContext=t.raiseIntent=t.broadcast=t.findIntentsByContext=t.findIntent=t.open=t.fdc3Ready=void 0;const n=new Error("FDC3 DesktopAgent not available at `window.fdc3`."),r=new Error("Timed out waiting for `fdc3Ready` event."),o=new Error("`fdc3Ready` event fired, but `window.fdc3` not set to DesktopAgent.");function i(e){return window.fdc3?e():Promise.reject(n)}function s(e){if(!window.fdc3)throw n;return e()}t.fdc3Ready=async(e=5e3)=>new Promise(((t,n)=>{if(window.fdc3)t();else{const i=setTimeout((()=>window.fdc3?t():n(r)),e);window.addEventListener("fdc3Ready",(()=>{clearTimeout(i),window.fdc3?t():n(o)}),{once:!0})}})),t.open=function(e,t){return i((()=>window.fdc3.open(e,t)))},t.findIntent=function(e,t){return i((()=>window.fdc3.findIntent(e,t)))},t.findIntentsByContext=function(e){return i((()=>window.fdc3.findIntentsByContext(e)))},t.broadcast=function(e){s((()=>window.fdc3.broadcast(e)))},t.raiseIntent=function(e,t,n){return i((()=>window.fdc3.raiseIntent(e,t,n)))},t.raiseIntentForContext=function(e,t){return i((()=>window.fdc3.raiseIntentForContext(e,t)))},t.addIntentListener=function(e,t){return s((()=>window.fdc3.addIntentListener(e,t)))},t.addContextListener=function(e,t){return s("function"!=typeof e?()=>window.fdc3.addContextListener(e,t):()=>window.fdc3.addContextListener(e))},t.getSystemChannels=function(){return i((()=>window.fdc3.getSystemChannels()))},t.joinChannel=function(e){return i((()=>window.fdc3.joinChannel(e)))},t.getOrCreateChannel=function(e){return i((()=>window.fdc3.getOrCreateChannel(e)))},t.getCurrentChannel=function(){return i((()=>window.fdc3.getCurrentChannel()))},t.leaveCurrentChannel=function(){return i((()=>window.fdc3.leaveCurrentChannel()))},t.getInfo=function(){return s((()=>window.fdc3.getInfo()))},t.compareVersionNumbers=(e,t)=>{try{let n=e.split(".").map(Number),r=t.split(".").map(Number);for(let e=0;e<Math.max(n.length,r.length);e++){if(e===n.length||n[e]<r[e])return-1;if(e===r.length||n[e]>r[e])return 1}return 0}catch(e){return console.error("Failed to compare version strings",e),null}},t.versionIsAtLeast=(e,n)=>{let r=t.compareVersionNumbers(e.fdc3Version,n);return null===r?null:r>=0}},55972:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},91767:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ContextTypes=void 0,(n=t.ContextTypes||(t.ContextTypes={})).Contact="fdc3.contact",n.ContactList="fdc3.contactList",n.Country="fdc3.country",n.Instrument="fdc3.instrument",n.Organization="fdc3.organization",n.Portfolio="fdc3.portfolio",n.Position="fdc3.position"},91966:(e,t)=>{"use strict";function n(e,t,n=""){if(n)throw Error(`Invalid value for key "${n}". Expected type ${JSON.stringify(e)} but got ${JSON.stringify(t)}`);throw Error(`Invalid value ${JSON.stringify(t)} for type ${JSON.stringify(e)}`)}function r(e){if(void 0===e.jsonToJS){const t={};e.props.forEach((e=>t[e.json]={key:e.js,typ:e.typ})),e.jsonToJS=t}return e.jsonToJS}function o(e){if(void 0===e.jsToJSON){const t={};e.props.forEach((e=>t[e.js]={key:e.json,typ:e.typ})),e.jsToJSON=t}return e.jsToJSON}function i(e,t,r,o=""){if("any"===t)return e;if(null===t)return null===e?e:n(t,e);if(!1===t)return n(t,e);for(;"object"==typeof t&&void 0!==t.ref;)t=p[t.ref];return Array.isArray(t)?function(e,t){return-1!==e.indexOf(t)?t:n(e,t)}(t,e):"object"==typeof t?t.hasOwnProperty("unionMembers")?function(e,t){const o=e.length;for(let n=0;n<o;n++){const o=e[n];try{return i(t,o,r)}catch(e){}}return n(e,t)}(t.unionMembers,e):t.hasOwnProperty("arrayItems")?function(e,t){return Array.isArray(t)?t.map((t=>i(t,e,r))):n("array",t)}(t.arrayItems,e):t.hasOwnProperty("props")?function(e,t,o){if(null===o||"object"!=typeof o||Array.isArray(o))return n("object",o);const s={};return Object.getOwnPropertyNames(e).forEach((t=>{const n=e[t],a=Object.prototype.hasOwnProperty.call(o,t)?o[t]:void 0;s[n.key]=i(a,n.typ,r,n.key)})),Object.getOwnPropertyNames(o).forEach((n=>{Object.prototype.hasOwnProperty.call(e,n)||(s[n]=i(o[n],t,r,n))})),s}(r(t),t.additional,e):n(t,e):t===Date&&"number"!=typeof e?function(e){if(null===e)return null;const t=new Date(e);return isNaN(t.valueOf())?n("Date",e):t}(e):function(e,t){return typeof e==typeof t?t:n(e,t,o)}(t,e)}function s(e,t){return i(e,t,r)}function a(e,t){return i(e,t,o)}function u(e){return{arrayItems:e}}function c(...e){return{unionMembers:e}}function l(e,t){return{props:e,additional:t}}function f(e){return{props:[],additional:e}}function d(e){return{ref:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Convert=void 0,t.Convert=class{static toContext(e){return s(JSON.parse(e),d("Context"))}static contextToJson(e){return JSON.stringify(a(e,d("Context")),null,2)}static toContact(e){return s(JSON.parse(e),d("Contact"))}static contactToJson(e){return JSON.stringify(a(e,d("Contact")),null,2)}static toContactList(e){return s(JSON.parse(e),d("ContactList"))}static contactListToJson(e){return JSON.stringify(a(e,d("ContactList")),null,2)}static toInstrument(e){return s(JSON.parse(e),d("Instrument"))}static instrumentToJson(e){return JSON.stringify(a(e,d("Instrument")),null,2)}static toInstrumentList(e){return s(JSON.parse(e),d("InstrumentList"))}static instrumentListToJson(e){return JSON.stringify(a(e,d("InstrumentList")),null,2)}static toCountry(e){return s(JSON.parse(e),d("Country"))}static countryToJson(e){return JSON.stringify(a(e,d("Country")),null,2)}static toOrganization(e){return s(JSON.parse(e),d("Organization"))}static organizationToJson(e){return JSON.stringify(a(e,d("Organization")),null,2)}static toPortfolio(e){return s(JSON.parse(e),d("Portfolio"))}static portfolioToJson(e){return JSON.stringify(a(e,d("Portfolio")),null,2)}static toPosition(e){return s(JSON.parse(e),d("Position"))}static positionToJson(e){return JSON.stringify(a(e,d("Position")),null,2)}};const p={Context:l([{json:"id",js:"id",typ:c(void 0,f(""))},{json:"name",js:"name",typ:c(void 0,"")},{json:"type",js:"type",typ:""}],"any"),ContactList:l([{json:"contacts",js:"contacts",typ:u(d("Contact"))},{json:"type",js:"type",typ:""},{json:"id",js:"id",typ:c(void 0,f(""))},{json:"name",js:"name",typ:c(void 0,"")}],"any"),Contact:l([{json:"id",js:"id",typ:d("ContactID")},{json:"type",js:"type",typ:""},{json:"name",js:"name",typ:c(void 0,"")}],"any"),ContactID:l([{json:"email",js:"email",typ:c(void 0,"")},{json:"FDS_ID",js:"FDS_ID",typ:c(void 0,"")}],""),InstrumentList:l([{json:"instruments",js:"instruments",typ:u(d("Instrument"))},{json:"type",js:"type",typ:""},{json:"id",js:"id",typ:c(void 0,f(""))},{json:"name",js:"name",typ:c(void 0,"")}],"any"),Instrument:l([{json:"id",js:"id",typ:d("InstrumentID")},{json:"type",js:"type",typ:""},{json:"name",js:"name",typ:c(void 0,"")}],"any"),InstrumentID:l([{json:"BBG",js:"BBG",typ:c(void 0,"")},{json:"CUSIP",js:"CUSIP",typ:c(void 0,"")},{json:"FDS_ID",js:"FDS_ID",typ:c(void 0,"")},{json:"FIGI",js:"FIGI",typ:c(void 0,"")},{json:"ISIN",js:"ISIN",typ:c(void 0,"")},{json:"PERMID",js:"PERMID",typ:c(void 0,"")},{json:"RIC",js:"RIC",typ:c(void 0,"")},{json:"SEDOL",js:"SEDOL",typ:c(void 0,"")},{json:"ticker",js:"ticker",typ:c(void 0,"")}],""),Country:l([{json:"id",js:"id",typ:d("CountryID")},{json:"type",js:"type",typ:""},{json:"name",js:"name",typ:c(void 0,"")}],"any"),CountryID:l([{json:"ISOALPHA2",js:"ISOALPHA2",typ:c(void 0,"")},{json:"ISOALPHA3",js:"ISOALPHA3",typ:c(void 0,"")}],""),Organization:l([{json:"id",js:"id",typ:d("OrganizationID")},{json:"type",js:"type",typ:""},{json:"name",js:"name",typ:c(void 0,"")}],"any"),OrganizationID:l([{json:"FDS_ID",js:"FDS_ID",typ:c(void 0,"")},{json:"LEI",js:"LEI",typ:c(void 0,"")},{json:"PERMID",js:"PERMID",typ:c(void 0,"")}],""),Portfolio:l([{json:"positions",js:"positions",typ:u(d("Position"))},{json:"type",js:"type",typ:""},{json:"id",js:"id",typ:c(void 0,f(""))},{json:"name",js:"name",typ:c(void 0,"")}],"any"),Position:l([{json:"holding",js:"holding",typ:3.14},{json:"instrument",js:"instrument",typ:d("Instrument")},{json:"type",js:"type",typ:""},{json:"id",js:"id",typ:c(void 0,f(""))},{json:"name",js:"name",typ:c(void 0,"")}],"any")}},98832:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(88801),t),o(n(77661),t),o(n(80498),t),o(n(55972),t),o(n(74215),t),o(n(19600),t),o(n(89520),t),o(n(35644),t),o(n(66129),t),o(n(51854),t),o(n(55182),t),o(n(36611),t),o(n(91767),t),o(n(91966),t),o(n(77178),t)},77178:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Intents=void 0,(n=t.Intents||(t.Intents={})).StartCall="StartCall",n.StartChat="StartChat",n.ViewChart="ViewChart",n.ViewContact="ViewContact",n.ViewQuote="ViewQuote",n.ViewNews="ViewNews",n.ViewInstrument="ViewInstrument",n.ViewAnalysis="ViewAnalysis"},60306:e=>{"use strict";e.exports=JSON.parse('{"name":"@finsemble/finsemble-core","main":"dist/index.js","types":"types/index.d.ts","version":"6.1.4","description":"Finsemble is an application framework providing infrastructure, services, and components for quickly building HTML5 multi-window financial desktop applications.","scripts":{"do-audit":" improved-yarn-audit --min-severity high","build":"gulp build --production","build-docs":"gulp --gulpfile gulpfile-docs.js build-docs","clean":"gulp clean","dev":"gulp build --watch","dev:fresh":"gulp build --clean --watch","docs":"set DEBUG=gulp-jsdoc3&&gulp --gulpfile=./gulpfile-docs.js docs-server","lint":"eslint --ext .js,.jsx,.ts,.tsx ./src/**","lint-fix":"eslint --fix --ext .js,.jsx,.ts,.tsx ./src/**","lint-stats":"eslint --format node_modules/eslint-stats/byErrorAndWarning.js --ext .js,.jsx,.ts,.tsx ./src/**","monodev":"yarn dev","obfuscate":"gulp build --production --obfuscate","prod":"gulp build --production","test":"ts-mocha","test-coverage":"nyc ts-mocha && nyc merge .nyc_output ../../.nyc_output/core.json","types":"gulp types"},"author":"Cosaic","license":"SEE LICENSE IN LICENSE","dependencies":{"@babel/core":"7.14.6","@babel/preset-env":"7.14.7","@babel/preset-react":"7.14.5"},"devDependencies":{"@istanbuljs/nyc-config-typescript":"1.0.1","@reduxjs/toolkit":"1.6.1","@types/chai":"4.2.21","@types/deepmerge":"2.2.0","@types/lodash":"4.14.171","@types/mocha":"9.0.0","@types/node":"12.12.7","@typescript-eslint/eslint-plugin":"4.28.3","@typescript-eslint/parser":"4.28.4","ajv":"6.12.2","async":"3.2.0","babel-loader":"8.2.2","browser-sync":"2.27.4","case-sensitive-paths-webpack-plugin":"2.4.0","chai":"4.2.0","chalk":"4.1.1","copy-webpack-plugin":"6.4.1","css-loader":"3.5.3","deepmerge":"1.3.2","del":"6.0.0","esm":"~3.2.25","fast-check":"2.17.0","file-loader":"6.2.0","file-saver":"2.0.5","fs-extra":"2.1.2","fuse.js":"6.4.6","git-rev-sync":"3.0.1","gulp":"4.0.0","gulp-javascript-obfuscator":"^1.1.6","gulp-jsdoc3":"3.0.0","gulp-plumber":"1.2.1","gulp-rename":"1.2.3","gulp-string-replace":"1.1.2","gulp-watch":"5.0.1","immutable":"4.0.0-rc.14","improved-yarn-audit":"^2.3.2","jsdoc":"3.6.6","jszip":"3.6.0","lodash":"4.17.21","mocha":"^8.0.1","mock-socket":"9.0.3","nyc":"15.1.0","p-limit":"3.1.0","p-queue":"7.1.0","pretty-hrtime":"1.0.3","prop-types":"15.7.2","react":"17.0.2","react-dom":"17.0.2","react-redux":"7.2.4","react-virtualized":"9.22.3","redux-devtools":"3.7.0","redux-devtools-chart-monitor":"1.7.2","redux-devtools-log-monitor":"2.1.0","redux-loop":"6.1.0","require-directory":"2.1.1","resize-observer-polyfill":"1.5.1","rimraf":"3.0.2","sass-loader":"12.1.0","searchjs":"1.1.0","shelljs":"0.8.4","sinon":"11.1.1","sinon-chai":"3.7.0","source-map-loader":"3.0.0","style-loader":"3.2.1","superagent":"6.1.0","taffydb":"2.7.3","to-string-loader":"1.1.6","ts-loader":"9.2.3","ts-mocha":"8.0.0","typedoc":"0.17.8","typescript":"4.3.5","url-loader":"4.1.0","uuid":"3.0.1","vinyl-sourcemaps-apply":"0.2.1","webpack":"5.45.1","webpack-glob-entries":"1.0.1","worker-farm":"1.7.0"},"resolutions":{"ts-mocha/ts-node":"^10.1.0","xmlhttprequest-ssl":"1.6.3","underscore":"1.12.1","ua-parser-js":"0.7.24","javascript-obfuscator":"2.15.5"}}')}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{"use strict";var e=n(57664),t=n(96755),r=c(n(39319)),o=c(n(70010)),i=n(33998),s=c(n(72551)),a=n(24232),u=c(n(23471));function c(e){return e&&e.__esModule?e:{default:e}}s.default.start();const l=new u.default;n.g.adapterReceiver=l,n.g.storageAdapters=l.adapters;class f extends t.BaseService{constructor(){n(48785),n(66772),super({name:"storageService",shutdownDependencies:{services:["windowService"]}}),this.storageAdapters={},this.user="default",this.currentDefaultDataStore,this.topicToStorageAdapterMap={},this.lastNotificationForErrType={}}async initialize(e){s.default.system.info("StorageService.initialize","Start"),await this.getConfig(),await this.fetchAdapters(),this.loadAdapters(),this.createRouterEndpoints(),this.serviceReady=!0,this.help(),e()}async getConfig(){let e;if(e=await o.default.getValue({field:"finsemble.servicesConfig.storage"}).catch((()=>{s.default.system.error("APPLICATION LIFECYCLE: Storage config not found in finsemble.servicesConfig.storage")})),e.data||(console.log("Checking finsemble.storage"),e=await o.default.getValue({field:"finsemble.storage"}).catch((()=>{s.default.system.error("APPLICATION LIFECYCLE: Storage config not found in finsemble.storage")})),e.data&&s.default.system.deprecated("Please move storage config to servicesConfig.storage. This location of config for storage is deprecated")),!e.data)return Promise.reject("Cannot find config");e=e.data;let{defaultStorage:t}=e;if(t||(t=await o.default.getValue({field:"finsemble.defaultStorage"}),s.default.system.deprecated("Please move defaultStorage config to servicesConfig.storage. This location of config for defaultStorage is deprecated"),t=t.data),t||s.default.system.warn("Default storage not found, defaulting to localStorage"),t=t||"localStorage",this.setStore({dataStore:t}),s.default.system.debug("APPLICATION LIFECYCLE: StorageService.initialize",`Setting default storage to ${t}`),e.topicToDataStoreAdapters){const t=Object.keys(e.topicToDataStoreAdapters);for(let n=0;n<t.length;n++){const r=t[n],o=e.topicToDataStoreAdapters[r];s.default.system.log("APPLICATION LIFECYCLE: StorageService.initialize","topic mapping",`Setting store for topic ${r} to store ${o}`),this.setStore({topic:r,dataStore:o})}}return this.adapterOperationTimeout=i.ConfigUtilInstance.getDefault(e,"storageConfig.adapterOperationTimeout",1e4),this.notificationThrottle=i.ConfigUtilInstance.getDefault(e,"storageConfig.notificationThrottle",18e4),this.storageAdaptersInConfig=e.dataStoreAdapters||e,Promise.resolve()}async fetchAdapters(){const t=this.storageAdaptersInConfig;if(!t)return s.default.system.log("APPLICATION LIFECYCLE: StorageService.initialize","finish. No storage adapters included in config."),Promise.resolve();const n=[];for(const e in t){const r=function(n){s.default.system.log("APPLICATION LIFECYCLE: StorageService.initialize",`Load adapter:${e}:start`),l.loadModel(e,t[e],(()=>{s.default.system.log("APPLICATION LIFECYCLE: StorageService.initialize",`Load adapter:${e}:finish`),n()}))};n.push(r)}return new Promise(((t,r)=>{(0,e.parallel)(n,(function(e){return s.default.system.info("StorageService.initialize","finish"),e?(s.default.system.error(e),r(e)):t()}))}))}createRouterEndpoints(){r.default.addResponder("Storage.clearCache",((e,t)=>{s.default.system.info("StorageService.clearCache",t),this.clearCache(t,((e,n)=>{t.sendQueryResponse(e,n)}))})),r.default.addResponder("Storage.delete",((e,t)=>{s.default.system.info("StorageService.delete",t),this.delete(t,((e,n)=>{t.sendQueryResponse(e,n)}))})),r.default.addResponder("Storage.get",((e,t)=>{s.default.system.info("StorageService.get",t),this.get(t,((e,n)=>{t.sendQueryResponse(e,n)}))})),r.default.addResponder("Storage.getMultiple",((e,t)=>{s.default.system.info("StorageService.getMultiple",t),t.sendQueryResponse(e,"get multiple is not implemented")})),r.default.addResponder("Storage.keys",((e,t)=>{s.default.system.info("StorageService.keys",t),this.keys(t,((e,n)=>{t.sendQueryResponse(e,n)}))})),r.default.addResponder("Storage.save",((e,t)=>{s.default.system.info("StorageService.save",t),this.save(t,((e,n)=>{t.sendQueryResponse(e,n)}))})),r.default.addResponder("Storage.setStore",((e,t)=>{s.default.system.info("StorageService.setStore",t),this.setStore(t.data),t.sendQueryResponse(null,{status:"success"})})),r.default.addResponder("Storage.setUser",((e,t)=>{s.default.system.info("StorageService.setUser",t),this.setUser(t,((e,n)=>{t.sendQueryResponse(e,n)}))}))}notifyError(e,t){s.default.system.error(e,t)}createTimeoutResponder(e,t,n,r){return new a.Timeout((()=>{const o=`Warning! StorageService.${e}: Storage adapter '${t}' is taking too long to respond`;n||(n={}),this.notifyError(o,n),r&&r(o,n)}),this.adapterOperationTimeout)}clearTimerAndLogIfError(e,t,n,r,o,i){if(n){const n=`StorageService.${e}: Error in Storage adapter '${t}'`;this.notifyError(n,o)}r&&r.clear(),i&&i(n,o)}clearCache(e,t){const n=this.getStore(e.data,"clearCache",t);if(!n||!this.storageAdapters[n])return;const r=this.createTimeoutResponder("clearCache",n,e.data,t);try{this.storageAdapters[n].clearCache(e.data,((e,o)=>{this.clearTimerAndLogIfError("clearCache",n,e,r,o,((e,n)=>{r.didFire()||t(e,n)}))}))}catch(e){this.clearTimerAndLogIfError("clearCache",n,e,r,null,((e,n)=>{r.didFire()||t(e,n)}))}}delete(e,t){if(this.serviceReady||this.notifyError("storageService invoked before ready",e),!e||!e.data||!e.data.key){const n=`StorageService.delete: No storage key found in message data, message: '${e}'`;return this.notifyError(n,{}),void t(n,null)}const n=this.getStore(e.data,"delete",t);if(!n||!this.storageAdapters[n])return;const r=this.createTimeoutResponder("delete",n,e.data,t);try{this.storageAdapters[n].delete(e.data,((e,o)=>{this.clearTimerAndLogIfError("delete",n,e,r,o,((e,n)=>{r.didFire()||t(e,n)}))}))}catch(e){this.clearTimerAndLogIfError("delete",n,e,r,null,((e,n)=>{r.didFire()||t(e,n)}))}}get(e,t){if(this.serviceReady||this.notifyError("storageService invoked before ready",e),!e||!e.data||!e.data.key){const n=`StorageService.get: No storage key found in message data, message: '${e}'`;return this.notifyError(n,{}),void t(n,null)}const{data:n}=e,r=this.getStore(n,"get",t);if(!r||!this.storageAdapters[r])return;const o=this.createTimeoutResponder("get",r,n,t);try{this.storageAdapters[r].get(n,((e,n)=>{this.clearTimerAndLogIfError("get",r,e,o,n,((e,n)=>{o.didFire()||t(e,n)}))}))}catch(e){this.clearTimerAndLogIfError("get",r,e,o,null,((e,n)=>{o.didFire()||t(e,n)}))}}keys(e,t){if(this.serviceReady||this.notifyError("storageService invoked before ready",e),!e||!e.data){const n=`StorageService.keys: No message data passed to function, message: '${e}'`;return this.notifyError(n,{}),void t(n,null)}const n=this.getStore(e.data,"keys",t);if(!n||!this.storageAdapters[n])return;const r=this.createTimeoutResponder("keys",n,e.data,t);try{this.storageAdapters[n].keys(e.data,((e,o)=>{this.clearTimerAndLogIfError("keys",n,e,r,o,((e,n)=>{r.didFire()||t(e,n)}))}))}catch(e){this.clearTimerAndLogIfError("keys",n,e,r,null,((e,n)=>{r.didFire()||t(e,n)}))}}loadAdapters(){const e=l.storageAdapters;for(const t in e)this.storageAdapters&&!this.storageAdapters[t]&&(e[t].setBaseName(this.parentUuid),e[t].setUser(this.user),this.storageAdapters[t]=e[t])}save(e,t){if(this.serviceReady||this.notifyError("storageService invoked before ready",e),!e||!e.data||!e.data.key){const n=`StorageService.save: No storage key found in message data, message: '${e}'`;return this.notifyError(n,{}),void t(n,null)}if(void 0===!e.data.value){const n=`StorageService.save: No value found to store in message data, message: '${e}'`;return this.notifyError(n,{}),void t(n,null)}const n=this.getStore(e.data,"save",t);if(!n||!this.storageAdapters[n])return;const r=this.createTimeoutResponder("save",n,e.data,t);try{this.storageAdapters[n].save(e.data,((e,o)=>{this.clearTimerAndLogIfError("save",n,e,r,o,((e,n)=>{r.didFire()||t(e,n)}))}))}catch(e){this.clearTimerAndLogIfError("save",n,e,r,null,((e,n)=>{r.didFire()||t(e,n)}))}}setUser(e,t){this.serviceReady||this.notifyError("storageService invoked before ready",e),this.user=e.data.user;for(const t in this.storageAdapters)s.default.system.log(`Model: ${t} User: ${JSON.stringify(e.data.user)}`),this.storageAdapters[t].setUser(e.data.user);t(null,{status:"success"})}getStore(e,t,n){let r=this.currentDefaultDataStore;if(e&&e.topic){const t=this.topicToStorageAdapterMap[e.topic];t?(s.default.system.debug("getStore for topic",e),r=t):s.default.system.info(`getStore: no data store for topic '${e.topic}', using default data store`,e,this.topicToStorageAdapterMap[e.topic])}else s.default.system.log("getStore: no topic provided, using default data store",r);return this.storageAdapters[r]?r:(this.clearTimerAndLogIfError(t,r,`storage adapter '${r}' not found`,null,null,n),null)}setStore(e){e.topic?(s.default.system.debug("setStore for topic ${data.topic}",e),this.topicToStorageAdapterMap[e.topic]=e.dataStore):(s.default.system.info("setStore for default data store",e),this.currentDefaultDataStore=e.dataStore)}help(){let e=Object.keys(this.storageAdapters);for(let t=0;t<e.length;t++)if(this.storageAdapters[e[t]].setRandomDelayBounds){console.log("***** The following list of instrumentation function can be invoked directly from the console. NOTE ALL PERSISTS ACROSS RESTARTS *****"),console.log("setRandomDelayBounds(lowerBoundInMilliseconds, upperBoundInMilliseconds) to randomly add delays (between specified bounds) to get/save/delete storage operations - persists across restarts so reset to 0,0 to stop"),console.log("setErrorMode(1) to always immediately return error for get/save/delete storage operations"),console.log("setErrorMode(2) to never return a response for get/save/delete storage operations (forcing a higher level timeout)"),console.log("clearErrorMode() to clear error mode"),window.help=this.help.bind(this),window.setRandomDelayBounds=this.storageAdapters[e[t]].setRandomDelayBounds.bind(this.storageAdapters[e[t]]),window.setErrorMode=this.storageAdapters[e[t]].setErrorMode.bind(this.storageAdapters[e[t]]),window.clearErrorMode=this.storageAdapters[e[t]].clearErrorMode.bind(this.storageAdapters[e[t]]);break}}}const d=new f;window.StorageService=d})()})();
|
|
2
|
+
(()=>{var e={57664:(e,t,n)=>{"use strict";function r(e,...t){return(...n)=>e(...t,...n)}function o(e){return function(...t){var n=t.pop();return e.call(this,t,n)}}n.r(t),n.d(t,{default:()=>ht,apply:()=>r,applyEach:()=>R,applyEachSeries:()=>j,asyncify:()=>l,auto:()=>P,autoInject:()=>B,cargo:()=>q,cargoQueue:()=>z,compose:()=>J,concat:()=>X,concatLimit:()=>K,concatSeries:()=>Z,constant:()=>ee,detect:()=>ne,detectLimit:()=>re,detectSeries:()=>oe,dir:()=>se,doUntil:()=>ue,doWhilst:()=>ae,each:()=>le,eachLimit:()=>fe,eachOf:()=>T,eachOfLimit:()=>E,eachOfSeries:()=>L,eachSeries:()=>de,ensureAsync:()=>pe,every:()=>he,everyLimit:()=>ye,everySeries:()=>ge,filter:()=>we,filterLimit:()=>_e,filterSeries:()=>Se,forever:()=>Ce,groupBy:()=>Ae,groupByLimit:()=>Ee,groupBySeries:()=>Oe,log:()=>Te,map:()=>I,mapLimit:()=>Q,mapSeries:()=>x,mapValues:()=>Re,mapValuesLimit:()=>Ie,mapValuesSeries:()=>Le,memoize:()=>xe,nextTick:()=>je,parallel:()=>Ne,parallelLimit:()=>Pe,priorityQueue:()=>$e,queue:()=>De,race:()=>Be,reduce:()=>G,reduceRight:()=>Ue,reflect:()=>Ve,reflectAll:()=>He,reject:()=>ze,rejectLimit:()=>Ge,rejectSeries:()=>Ye,retry:()=>Qe,retryable:()=>Xe,seq:()=>Y,series:()=>Ze,setImmediate:()=>c,some:()=>et,someLimit:()=>tt,someSeries:()=>nt,sortBy:()=>rt,timeout:()=>ot,times:()=>st,timesLimit:()=>it,timesSeries:()=>at,transform:()=>ut,tryEach:()=>ct,unmemoize:()=>lt,until:()=>dt,waterfall:()=>pt,whilst:()=>ft,all:()=>he,allLimit:()=>ye,allSeries:()=>ge,any:()=>et,anyLimit:()=>tt,anySeries:()=>nt,find:()=>ne,findLimit:()=>re,findSeries:()=>oe,flatMap:()=>X,flatMapLimit:()=>K,flatMapSeries:()=>Z,forEach:()=>le,forEachSeries:()=>de,forEachLimit:()=>fe,forEachOf:()=>T,forEachOfSeries:()=>L,forEachOfLimit:()=>E,inject:()=>G,foldl:()=>G,foldr:()=>Ue,select:()=>we,selectLimit:()=>_e,selectSeries:()=>Se,wrapSync:()=>l,during:()=>ft,doDuring:()=>ae});var i="function"==typeof setImmediate&&setImmediate,s="object"==typeof process&&"function"==typeof process.nextTick;function a(e){setTimeout(e,0)}function u(e){return(t,...n)=>e((()=>t(...n)))}var c=u(i?setImmediate:s?process.nextTick:a);function l(e){return p(e)?function(...t){const n=t.pop();return f(e.apply(this,t),n)}:o((function(t,n){var r;try{r=e.apply(this,t)}catch(e){return n(e)}if(r&&"function"==typeof r.then)return f(r,n);n(null,r)}))}function f(e,t){return e.then((e=>{d(t,null,e)}),(e=>{d(t,e&&e.message?e:new Error(e))}))}function d(e,t,n){try{e(t,n)}catch(e){c((e=>{throw e}),e)}}function p(e){return"AsyncFunction"===e[Symbol.toStringTag]}function h(e){if("function"!=typeof e)throw new Error("expected a function");return p(e)?l(e):e}function y(e,t=e.length){if(!t)throw new Error("arity is undefined");return function(...n){return"function"==typeof n[t-1]?e.apply(this,n):new Promise(((r,o)=>{n[t-1]=(e,...t)=>{if(e)return o(e);r(t.length>1?t:t[0])},e.apply(this,n)}))}}function g(e){return function(t,...n){return y((function(r){var o=this;return e(t,((e,t)=>{h(e).apply(o,n.concat(t))}),r)}))}}function m(e,t,n,r){t=t||[];var o=[],i=0,s=h(n);return e(t,((e,t,n)=>{var r=i++;s(e,((e,t)=>{o[r]=t,n(e)}))}),(e=>{r(e,o)}))}function v(e){return e&&"number"==typeof e.length&&e.length>=0&&e.length%1==0}const b={};function w(e){function t(...t){if(null!==e){var n=e;e=null,n.apply(this,t)}}return Object.assign(t,e),t}function _(e){return function(...t){if(null===e)throw new Error("Callback was already called.");var n=e;e=null,n.apply(this,t)}}function S(e,t,n,r){let o=!1,i=!1,s=!1,a=0,u=0;function c(){a>=t||s||o||(s=!0,e.next().then((({value:e,done:t})=>{if(!i&&!o){if(s=!1,t)return o=!0,void(a<=0&&r(null));a++,n(e,u,l),u++,c()}})).catch(f))}function l(e,t){if(a-=1,!i)return e?f(e):!1===e?(o=!0,void(i=!0)):t===b||o&&a<=0?(o=!0,r(null)):void c()}function f(e){i||(s=!1,o=!0,r(e))}c()}var C=e=>(t,n,r)=>{if(r=w(r),e<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!t)return r(null);if("AsyncGenerator"===t[Symbol.toStringTag])return S(t,e,n,r);if(function(e){return"function"==typeof e[Symbol.asyncIterator]}(t))return S(t[Symbol.asyncIterator](),e,n,r);var o=function(e){if(v(e))return function(e){var t=-1,n=e.length;return function(){return++t<n?{value:e[t],key:t}:null}}(e);var t,n,r,o,i=function(e){return e[Symbol.iterator]&&e[Symbol.iterator]()}(e);return i?function(e){var t=-1;return function(){var n=e.next();return n.done?null:(t++,{value:n.value,key:t})}}(i):(n=(t=e)?Object.keys(t):[],r=-1,o=n.length,function(){var e=n[++r];return r<o?{value:t[e],key:e}:null})}(t),i=!1,s=!1,a=0,u=!1;function c(e,t){if(!s)if(a-=1,e)i=!0,r(e);else if(!1===e)i=!0,s=!0;else{if(t===b||i&&a<=0)return i=!0,r(null);u||l()}}function l(){for(u=!0;a<e&&!i;){var t=o();if(null===t)return i=!0,void(a<=0&&r(null));a+=1,n(t.value,t.key,_(c))}u=!1}l()},E=y((function(e,t,n,r){return C(t)(e,h(n),r)}),4);function A(e,t,n){n=w(n);var r=0,o=0,{length:i}=e,s=!1;function a(e,t){!1===e&&(s=!0),!0!==s&&(e?n(e):++o!==i&&t!==b||n(null))}for(0===i&&n(null);r<i;r++)t(e[r],r,_(a))}function O(e,t,n){return E(e,1/0,t,n)}var T=y((function(e,t,n){return(v(e)?A:O)(e,h(t),n)}),3),I=y((function(e,t,n){return m(T,e,t,n)}),3),R=g(I),L=y((function(e,t,n){return E(e,1,t,n)}),3),x=y((function(e,t,n){return m(L,e,t,n)}),3),j=g(x);const k=Symbol("promiseCallback");function N(){let e,t;function n(n,...r){if(n)return t(n);e(r.length>1?r:r[0])}return n[k]=new Promise(((n,r)=>{e=n,t=r})),n}function P(e,t,n){"number"!=typeof t&&(n=t,t=null),n=w(n||N());var r=Object.keys(e).length;if(!r)return n(null);t||(t=r);var o={},i=0,s=!1,a=!1,u=Object.create(null),c=[],l=[],f={};function d(e,t){c.push((()=>function(e,t){if(!a){var r=_(((t,...r)=>{if(i--,!1!==t)if(r.length<2&&([r]=r),t){var c={};if(Object.keys(o).forEach((e=>{c[e]=o[e]})),c[e]=r,a=!0,u=Object.create(null),s)return;n(t,c)}else o[e]=r,(u[e]||[]).forEach((e=>e())),p();else s=!0}));i++;var c=h(t[t.length-1]);t.length>1?c(o,r):c(r)}}(e,t)))}function p(){if(!s){if(0===c.length&&0===i)return n(null,o);for(;c.length&&i<t;)c.shift()()}}function y(t){var n=[];return Object.keys(e).forEach((r=>{const o=e[r];Array.isArray(o)&&o.indexOf(t)>=0&&n.push(r)})),n}return Object.keys(e).forEach((t=>{var n=e[t];if(!Array.isArray(n))return d(t,[n]),void l.push(t);var r=n.slice(0,n.length-1),o=r.length;if(0===o)return d(t,n),void l.push(t);f[t]=o,r.forEach((i=>{if(!e[i])throw new Error("async.auto task `"+t+"` has a non-existent dependency `"+i+"` in "+r.join(", "));var s,a;(a=u[s=i])||(a=u[s]=[]),a.push((()=>{0==--o&&d(t,n)}))}))})),function(){for(var e=0;l.length;)e++,y(l.pop()).forEach((e=>{0==--f[e]&&l.push(e)}));if(e!==r)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}(),p(),n[k]}var D=/^(?:async\s+)?(?:function)?\s*\w*\s*\(\s*([^)]+)\s*\)(?:\s*{)/,M=/^(?:async\s+)?\(?\s*([^)=]+)\s*\)?(?:\s*=>)/,F=/,/,W=/(=.+)?(\s*)$/,$=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm;function B(e,t){var n={};return Object.keys(e).forEach((t=>{var r,o=e[t],i=p(o),s=!i&&1===o.length||i&&0===o.length;if(Array.isArray(o))r=[...o],o=r.pop(),n[t]=r.concat(r.length>0?a:o);else if(s)n[t]=o;else{if(r=function(e){const t=e.toString().replace($,"");let n=t.match(D);if(n||(n=t.match(M)),!n)throw new Error("could not parse args in autoInject\nSource:\n"+t);let[,r]=n;return r.replace(/\s/g,"").split(F).map((e=>e.replace(W,"").trim()))}(o),0===o.length&&!i&&0===r.length)throw new Error("autoInject task functions require explicit parameters.");i||r.pop(),n[t]=r.concat(a)}function a(e,t){var n=r.map((t=>e[t]));n.push(t),h(o)(...n)}})),P(n,t)}class U{constructor(){this.head=this.tail=null,this.length=0}removeLink(e){return e.prev?e.prev.next=e.next:this.head=e.next,e.next?e.next.prev=e.prev:this.tail=e.prev,e.prev=e.next=null,this.length-=1,e}empty(){for(;this.head;)this.shift();return this}insertAfter(e,t){t.prev=e,t.next=e.next,e.next?e.next.prev=t:this.tail=t,e.next=t,this.length+=1}insertBefore(e,t){t.prev=e.prev,t.next=e,e.prev?e.prev.next=t:this.head=t,e.prev=t,this.length+=1}unshift(e){this.head?this.insertBefore(this.head,e):V(this,e)}push(e){this.tail?this.insertAfter(this.tail,e):V(this,e)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var e=this.head;e;)yield e.data,e=e.next}remove(e){for(var t=this.head;t;){var{next:n}=t;e(t)&&this.removeLink(t),t=n}return this}}function V(e,t){e.length=1,e.head=e.tail=t}function H(e,t,n){if(null==t)t=1;else if(0===t)throw new RangeError("Concurrency must not be zero");var r=h(e),o=0,i=[];const s={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function a(e,t){return e?t?void(s[e]=s[e].filter((e=>e!==t))):s[e]=[]:Object.keys(s).forEach((e=>s[e]=[]))}function u(e,...t){s[e].forEach((e=>e(...t)))}var l=!1;function f(e,t,n,r){if(null!=r&&"function"!=typeof r)throw new Error("task callback must be a function");var o,i;function s(e,...t){return e?n?i(e):o():t.length<=1?o(t[0]):void o(t)}m.started=!0;var a={data:e,callback:n?s:r||s};if(t?m._tasks.unshift(a):m._tasks.push(a),l||(l=!0,c((()=>{l=!1,m.process()}))),n||!r)return new Promise(((e,t)=>{o=e,i=t}))}function d(e){return function(t,...n){o-=1;for(var r=0,s=e.length;r<s;r++){var a=e[r],c=i.indexOf(a);0===c?i.shift():c>0&&i.splice(c,1),a.callback(t,...n),null!=t&&u("error",t,a.data)}o<=m.concurrency-m.buffer&&u("unsaturated"),m.idle()&&u("drain"),m.process()}}function p(e){return!(0!==e.length||!m.idle()||(c((()=>u("drain"))),0))}const y=e=>t=>{if(!t)return new Promise(((t,n)=>{!function(e,r){const o=(...r)=>{a(e,o),((e,r)=>{if(e)return n(e);t(r)})(...r)};s[e].push(o)}(e)}));a(e),function(e,t){s[e].push(t)}(e,t)};var g=!1,m={_tasks:new U,*[Symbol.iterator](){yield*m._tasks[Symbol.iterator]()},concurrency:t,payload:n,buffer:t/4,started:!1,paused:!1,push(e,t){if(Array.isArray(e)){if(p(e))return;return e.map((e=>f(e,!1,!1,t)))}return f(e,!1,!1,t)},pushAsync(e,t){if(Array.isArray(e)){if(p(e))return;return e.map((e=>f(e,!1,!0,t)))}return f(e,!1,!0,t)},kill(){a(),m._tasks.empty()},unshift(e,t){if(Array.isArray(e)){if(p(e))return;return e.map((e=>f(e,!0,!1,t)))}return f(e,!0,!1,t)},unshiftAsync(e,t){if(Array.isArray(e)){if(p(e))return;return e.map((e=>f(e,!0,!0,t)))}return f(e,!0,!0,t)},remove(e){m._tasks.remove(e)},process(){if(!g){for(g=!0;!m.paused&&o<m.concurrency&&m._tasks.length;){var e=[],t=[],n=m._tasks.length;m.payload&&(n=Math.min(n,m.payload));for(var s=0;s<n;s++){var a=m._tasks.shift();e.push(a),i.push(a),t.push(a.data)}o+=1,0===m._tasks.length&&u("empty"),o===m.concurrency&&u("saturated");var c=_(d(e));r(t,c)}g=!1}},length:()=>m._tasks.length,running:()=>o,workersList:()=>i,idle:()=>m._tasks.length+o===0,pause(){m.paused=!0},resume(){!1!==m.paused&&(m.paused=!1,c(m.process))}};return Object.defineProperties(m,{saturated:{writable:!1,value:y("saturated")},unsaturated:{writable:!1,value:y("unsaturated")},empty:{writable:!1,value:y("empty")},drain:{writable:!1,value:y("drain")},error:{writable:!1,value:y("error")}}),m}function q(e,t){return H(e,1,t)}function z(e,t,n){return H(e,t,n)}var G=y((function(e,t,n,r){r=w(r);var o=h(n);return L(e,((e,n,r)=>{o(t,e,((e,n)=>{t=n,r(e)}))}),(e=>r(e,t)))}),4);function Y(...e){var t=e.map(h);return function(...e){var n=this,r=e[e.length-1];return"function"==typeof r?e.pop():r=N(),G(t,e,((e,t,r)=>{t.apply(n,e.concat(((e,...t)=>{r(e,t)})))}),((e,t)=>r(e,...t))),r[k]}}function J(...e){return Y(...e.reverse())}var Q=y((function(e,t,n,r){return m(C(t),e,n,r)}),4),K=y((function(e,t,n,r){var o=h(n);return Q(e,t,((e,t)=>{o(e,((e,...n)=>e?t(e):t(e,n)))}),((e,t)=>{for(var n=[],o=0;o<t.length;o++)t[o]&&(n=n.concat(...t[o]));return r(e,n)}))}),4),X=y((function(e,t,n){return K(e,1/0,t,n)}),3),Z=y((function(e,t,n){return K(e,1,t,n)}),3);function ee(...e){return function(...t){return t.pop()(null,...e)}}function te(e,t){return(n,r,o,i)=>{var s,a=!1;const u=h(o);n(r,((n,r,o)=>{u(n,((r,i)=>r||!1===r?o(r):e(i)&&!s?(a=!0,s=t(!0,n),o(null,b)):void o()))}),(e=>{if(e)return i(e);i(null,a?s:t(!1))}))}}var ne=y((function(e,t,n){return te((e=>e),((e,t)=>t))(T,e,t,n)}),3),re=y((function(e,t,n,r){return te((e=>e),((e,t)=>t))(C(t),e,n,r)}),4),oe=y((function(e,t,n){return te((e=>e),((e,t)=>t))(C(1),e,t,n)}),3);function ie(e){return(t,...n)=>h(t)(...n,((t,...n)=>{"object"==typeof console&&(t?console.error&&console.error(t):console[e]&&n.forEach((t=>console[e](t))))}))}var se=ie("dir"),ae=y((function(e,t,n){n=_(n);var r,o=h(e),i=h(t);function s(e,...t){if(e)return n(e);!1!==e&&(r=t,i(...t,a))}function a(e,t){return e?n(e):!1!==e?t?void o(s):n(null,...r):void 0}return a(null,!0)}),3);function ue(e,t,n){const r=h(t);return ae(e,((...e)=>{const t=e.pop();r(...e,((e,n)=>t(e,!n)))}),n)}function ce(e){return(t,n,r)=>e(t,r)}var le=y((function(e,t,n){return T(e,ce(h(t)),n)}),3),fe=y((function(e,t,n,r){return C(t)(e,ce(h(n)),r)}),4),de=y((function(e,t,n){return fe(e,1,t,n)}),3);function pe(e){return p(e)?e:function(...t){var n=t.pop(),r=!0;t.push(((...e)=>{r?c((()=>n(...e))):n(...e)})),e.apply(this,t),r=!1}}var he=y((function(e,t,n){return te((e=>!e),(e=>!e))(T,e,t,n)}),3),ye=y((function(e,t,n,r){return te((e=>!e),(e=>!e))(C(t),e,n,r)}),4),ge=y((function(e,t,n){return te((e=>!e),(e=>!e))(L,e,t,n)}),3);function me(e,t,n,r){var o=new Array(t.length);e(t,((e,t,r)=>{n(e,((e,n)=>{o[t]=!!n,r(e)}))}),(e=>{if(e)return r(e);for(var n=[],i=0;i<t.length;i++)o[i]&&n.push(t[i]);r(null,n)}))}function ve(e,t,n,r){var o=[];e(t,((e,t,r)=>{n(e,((n,i)=>{if(n)return r(n);i&&o.push({index:t,value:e}),r(n)}))}),(e=>{if(e)return r(e);r(null,o.sort(((e,t)=>e.index-t.index)).map((e=>e.value)))}))}function be(e,t,n,r){return(v(t)?me:ve)(e,t,h(n),r)}var we=y((function(e,t,n){return be(T,e,t,n)}),3),_e=y((function(e,t,n,r){return be(C(t),e,n,r)}),4),Se=y((function(e,t,n){return be(L,e,t,n)}),3),Ce=y((function(e,t){var n=_(t),r=h(pe(e));return function e(t){if(t)return n(t);!1!==t&&r(e)}()}),2),Ee=y((function(e,t,n,r){var o=h(n);return Q(e,t,((e,t)=>{o(e,((n,r)=>n?t(n):t(n,{key:r,val:e})))}),((e,t)=>{for(var n={},{hasOwnProperty:o}=Object.prototype,i=0;i<t.length;i++)if(t[i]){var{key:s}=t[i],{val:a}=t[i];o.call(n,s)?n[s].push(a):n[s]=[a]}return r(e,n)}))}),4);function Ae(e,t,n){return Ee(e,1/0,t,n)}function Oe(e,t,n){return Ee(e,1,t,n)}var Te=ie("log"),Ie=y((function(e,t,n,r){r=w(r);var o={},i=h(n);return C(t)(e,((e,t,n)=>{i(e,t,((e,r)=>{if(e)return n(e);o[t]=r,n(e)}))}),(e=>r(e,o)))}),4);function Re(e,t,n){return Ie(e,1/0,t,n)}function Le(e,t,n){return Ie(e,1,t,n)}function xe(e,t=(e=>e)){var n=Object.create(null),r=Object.create(null),i=h(e),s=o(((e,o)=>{var s=t(...e);s in n?c((()=>o(null,...n[s]))):s in r?r[s].push(o):(r[s]=[o],i(...e,((e,...t)=>{e||(n[s]=t);var o=r[s];delete r[s];for(var i=0,a=o.length;i<a;i++)o[i](e,...t)})))}));return s.memo=n,s.unmemoized=e,s}var je=u(s?process.nextTick:i?setImmediate:a),ke=y(((e,t,n)=>{var r=v(t)?[]:{};e(t,((e,t,n)=>{h(e)(((e,...o)=>{o.length<2&&([o]=o),r[t]=o,n(e)}))}),(e=>n(e,r)))}),3);function Ne(e,t){return ke(T,e,t)}function Pe(e,t,n){return ke(C(t),e,n)}function De(e,t){var n=h(e);return H(((e,t)=>{n(e[0],t)}),t,1)}class Me{constructor(){this.heap=[],this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){return this.heap=[],this}percUp(e){let t;for(;e>0&&We(this.heap[e],this.heap[t=Fe(e)]);){let n=this.heap[e];this.heap[e]=this.heap[t],this.heap[t]=n,e=t}}percDown(e){let t;for(;(t=1+(e<<1))<this.heap.length&&(t+1<this.heap.length&&We(this.heap[t+1],this.heap[t])&&(t+=1),!We(this.heap[e],this.heap[t]));){let n=this.heap[e];this.heap[e]=this.heap[t],this.heap[t]=n,e=t}}push(e){e.pushCount=++this.pushCount,this.heap.push(e),this.percUp(this.heap.length-1)}unshift(e){return this.heap.push(e)}shift(){let[e]=this.heap;return this.heap[0]=this.heap[this.heap.length-1],this.heap.pop(),this.percDown(0),e}toArray(){return[...this]}*[Symbol.iterator](){for(let e=0;e<this.heap.length;e++)yield this.heap[e].data}remove(e){let t=0;for(let n=0;n<this.heap.length;n++)e(this.heap[n])||(this.heap[t]=this.heap[n],t++);this.heap.splice(t);for(let e=Fe(this.heap.length-1);e>=0;e--)this.percDown(e);return this}}function Fe(e){return(e+1>>1)-1}function We(e,t){return e.priority!==t.priority?e.priority<t.priority:e.pushCount<t.pushCount}function $e(e,t){var n=De(e,t);return n._tasks=new Me,n.push=function(e,t=0,r=(()=>{})){if("function"!=typeof r)throw new Error("task callback must be a function");if(n.started=!0,Array.isArray(e)||(e=[e]),0===e.length&&n.idle())return c((()=>n.drain()));for(var o=0,i=e.length;o<i;o++){var s={data:e[o],priority:t,callback:r};n._tasks.push(s)}c(n.process)},delete n.unshift,n}var Be=y((function(e,t){if(t=w(t),!Array.isArray(e))return t(new TypeError("First argument to race must be an array of functions"));if(!e.length)return t();for(var n=0,r=e.length;n<r;n++)h(e[n])(t)}),2);function Ue(e,t,n,r){var o=[...e].reverse();return G(o,t,n,r)}function Ve(e){var t=h(e);return o((function(e,n){return e.push(((e,...t)=>{let r={};if(e&&(r.error=e),t.length>0){var o=t;t.length<=1&&([o]=t),r.value=o}n(null,r)})),t.apply(this,e)}))}function He(e){var t;return Array.isArray(e)?t=e.map(Ve):(t={},Object.keys(e).forEach((n=>{t[n]=Ve.call(this,e[n])}))),t}function qe(e,t,n,r){const o=h(n);return be(e,t,((e,t)=>{o(e,((e,n)=>{t(e,!n)}))}),r)}var ze=y((function(e,t,n){return qe(T,e,t,n)}),3),Ge=y((function(e,t,n,r){return qe(C(t),e,n,r)}),4),Ye=y((function(e,t,n){return qe(L,e,t,n)}),3);function Je(e){return function(){return e}}function Qe(e,t,n){var r={times:5,intervalFunc:Je(0)};if(arguments.length<3&&"function"==typeof e?(n=t||N(),t=e):(Ke(r,e),n=n||N()),"function"!=typeof t)throw new Error("Invalid arguments for async.retry");var o=h(t),i=1;function s(){o(((e,...t)=>{!1!==e&&(e&&i++<r.times&&("function"!=typeof r.errorFilter||r.errorFilter(e))?setTimeout(s,r.intervalFunc(i-1)):n(e,...t))}))}return s(),n[k]}function Ke(e,t){if("object"==typeof t)e.times=+t.times||5,e.intervalFunc="function"==typeof t.interval?t.interval:Je(+t.interval||0),e.errorFilter=t.errorFilter;else{if("number"!=typeof t&&"string"!=typeof t)throw new Error("Invalid arguments for async.retry");e.times=+t||5}}function Xe(e,t){t||(t=e,e=null);let n=e&&e.arity||t.length;p(t)&&(n+=1);var r=h(t);return o(((t,o)=>{function i(e){r(...t,e)}return(t.length<n-1||null==o)&&(t.push(o),o=N()),e?Qe(e,i,o):Qe(i,o),o[k]}))}function Ze(e,t){return ke(L,e,t)}var et=y((function(e,t,n){return te(Boolean,(e=>e))(T,e,t,n)}),3),tt=y((function(e,t,n,r){return te(Boolean,(e=>e))(C(t),e,n,r)}),4),nt=y((function(e,t,n){return te(Boolean,(e=>e))(L,e,t,n)}),3),rt=y((function(e,t,n){var r=h(t);return I(e,((e,t)=>{r(e,((n,r)=>{if(n)return t(n);t(n,{value:e,criteria:r})}))}),((e,t)=>{if(e)return n(e);n(null,t.sort(o).map((e=>e.value)))}));function o(e,t){var n=e.criteria,r=t.criteria;return n<r?-1:n>r?1:0}}),3);function ot(e,t,n){var r=h(e);return o(((o,i)=>{var s,a=!1;o.push(((...e)=>{a||(i(...e),clearTimeout(s))})),s=setTimeout((function(){var t=e.name||"anonymous",r=new Error('Callback function "'+t+'" timed out.');r.code="ETIMEDOUT",n&&(r.info=n),a=!0,i(r)}),t),r(...o)}))}function it(e,t,n,r){var o=h(n);return Q(function(e){for(var t=Array(e);e--;)t[e]=e;return t}(e),t,o,r)}function st(e,t,n){return it(e,1/0,t,n)}function at(e,t,n){return it(e,1,t,n)}function ut(e,t,n,r){arguments.length<=3&&"function"==typeof t&&(r=n,n=t,t=Array.isArray(e)?[]:{}),r=w(r||N());var o=h(n);return T(e,((e,n,r)=>{o(t,e,n,r)}),(e=>r(e,t))),r[k]}var ct=y((function(e,t){var n,r=null;return de(e,((e,t)=>{h(e)(((e,...o)=>{if(!1===e)return t(e);o.length<2?[n]=o:n=o,r=e,t(e?null:{})}))}),(()=>t(r,n)))}));function lt(e){return(...t)=>(e.unmemoized||e)(...t)}var ft=y((function(e,t,n){n=_(n);var r=h(t),o=h(e),i=[];function s(e,...t){if(e)return n(e);i=t,!1!==e&&o(a)}function a(e,t){return e?n(e):!1!==e?t?void r(s):n(null,...i):void 0}return o(a)}),3);function dt(e,t,n){const r=h(e);return ft((e=>r(((t,n)=>e(t,!n)))),t,n)}var pt=y((function(e,t){if(t=w(t),!Array.isArray(e))return t(new Error("First argument to waterfall must be an array of functions"));if(!e.length)return t();var n=0;function r(t){h(e[n++])(...t,_(o))}function o(o,...i){if(!1!==o)return o||n===e.length?t(o,...i):void r(i)}r([])}));const ht={apply:r,applyEach:R,applyEachSeries:j,asyncify:l,auto:P,autoInject:B,cargo:q,cargoQueue:z,compose:J,concat:X,concatLimit:K,concatSeries:Z,constant:ee,detect:ne,detectLimit:re,detectSeries:oe,dir:se,doUntil:ue,doWhilst:ae,each:le,eachLimit:fe,eachOf:T,eachOfLimit:E,eachOfSeries:L,eachSeries:de,ensureAsync:pe,every:he,everyLimit:ye,everySeries:ge,filter:we,filterLimit:_e,filterSeries:Se,forever:Ce,groupBy:Ae,groupByLimit:Ee,groupBySeries:Oe,log:Te,map:I,mapLimit:Q,mapSeries:x,mapValues:Re,mapValuesLimit:Ie,mapValuesSeries:Le,memoize:xe,nextTick:je,parallel:Ne,parallelLimit:Pe,priorityQueue:$e,queue:De,race:Be,reduce:G,reduceRight:Ue,reflect:Ve,reflectAll:He,reject:ze,rejectLimit:Ge,rejectSeries:Ye,retry:Qe,retryable:Xe,seq:Y,series:Ze,setImmediate:c,some:et,someLimit:tt,someSeries:nt,sortBy:rt,timeout:ot,times:st,timesLimit:it,timesSeries:at,transform:ut,tryEach:ct,unmemoize:lt,until:dt,waterfall:pt,whilst:ft,all:he,allLimit:ye,allSeries:ge,any:et,anyLimit:tt,anySeries:nt,find:ne,findLimit:re,findSeries:oe,flatMap:X,flatMapLimit:K,flatMapSeries:Z,forEach:le,forEachSeries:de,forEachLimit:fe,forEachOf:T,forEachOfSeries:L,forEachOfLimit:E,inject:G,foldl:G,foldr:Ue,select:we,selectLimit:_e,selectSeries:Se,wrapSync:l,during:ft,doDuring:ae}},23471:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var a=i?Object.getOwnPropertyDescriptor(e,s):null;a&&(a.get||a.set)?Object.defineProperty(r,s,a):r[s]=e[s]}return r.default=e,n&&n.set(e,r),r}(n(76420));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}t.default=class{constructor(){return this.callbacks={},this.adapters={},this.storageAdapters={},this.loadModel=this.loadModel.bind(this),this.loaded=this.loaded.bind(this),this}loadModel(e,t,n){this.callbacks[e]=n,r.injectJS(t,Function.prototype)}loaded(e,t){this.adapters[e]=t,this.storageAdapters[e]=t,this.callbacks[e]?(this.callbacks[e](),delete this.callbacks[e]):console.info("`.loaded` invoked on Adapter Receiver by a storage adapter not loaded dynamically",e)}}},33998:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigUtilInstance=void 0;var r=s(n(72551)),o=n(51742),i=s(n(53059));function s(e){return e&&e.__esModule?e:{default:e}}const a=new function(){const e=this;this.resolveConfigVariables=function(e,t){let n=0,o=0,i=!0;function s(e){const t=e.split(/[/\\:?=&\s]/);for(let n=0;n<t.length;n++)if("$"===t[n][0]){const o=t[n].substring(1);let s=a(o);if(void 0!==s){const a=e.replace(t[n],s);r.default.system.verbose("forceObjectsToLogger","ConfigUtil.resolveConfigVariables:resolveString configString",t[n],o,s,"old value=",e,"value=",a),i=!0,e=a}}return e}function a(t){let n=e[t];return void 0===n&&(e.custom?(n=e.custom[t],void 0===n&&r.default.system.warn("ConfigUtil.resolveString",`Missing [${t}] variable from finsemble.custom configuration object`)):r.default.system.error("ConfigUtil.resolveString",`Missing "custom" node from finsemble configuration - unable to get variable resoution for variable: ${t}`)),n}function u(e,t,n){r.default.system.verbose("forceObjectsToLogger","resolveArray","pass",t,"recursionLevel",n,"configArray:",e);for(let r=0;r<e.length;r++){const o=e[r];"string"==typeof o&&o.indexOf("$")>-1?e[r]=s(o):o instanceof Array?u(o,t,n+1):"object"==typeof o&&c(o,t,n+1)}}function c(e,t,n){e=e||{},r.default.system.verbose("forceObjectsToLogger","ConfigUtil.resolveConfigVariables:resolveObject","pass",t,"recursionLevel",n,"configObject:",e),Object.keys(e).forEach((r=>{const o=e[r];"string"==typeof o&&o.indexOf("$")>-1?e[r]=s(o):o instanceof Array?u(o,t,n+1):"object"==typeof o&&c(o,t,n+1)}))}for(;i&&o++<100;)i=!1,c(t,++n,1);o>=100&&r.default.system.error("forceObjectsToLogger","resolveConfigVariables exceeded maximum passes so continuing -- probably a recursive macro definitions. Look in this config for unresolved macro variables",e)},this.getExpandedRawManifest=function(t,n){function i(t,s,a){r.default.system.debug("forceObjectsToLogger","ConfigUtil.getExpandedRawManifest:getRawManifest",s,a),s.getManifest((n=>{r.default.system.debug("forceObjectsToLogger","ConfigUtil.getExpandedRawManifest:getExpandedRawManifest: manifest retrieved. Pre-variable resolution",n),e.resolveConfigVariables(n.finsemble,n.finsemble),r.default.system.debug("forceObjectsToLogger","ConfigUtil.getExpandedRawManifest:getExpandedRawManifest:Complete. post-variable resolution",n),t(n)}),(e=>{e&&(r.default.system.error("ConfigUtil.getExpandedRawManifest:application.getManifest:err",e),n&&n()),s.getParentUuid((e=>{const n=o.System.Application.wrap(e);r.default.system.debug("forceObjectsToLogger","uuid",e,"parentApplication",n),a<10?i(t,n,++a):t("could not find manifest in parent applications")}))}))}r.default.system.debug("ConfigUtil.getExpandedRawManifest starting"),o.System.ready((()=>{const e=o.System.Application.getCurrent();i(t,e,1)}))},this.readConfigFile=function(e,t){r.default.system.debug(`fetching ${e}`),fetch(e,{credentials:"include",cache:"no-cache"}).then((e=>e.json())).catch((n=>{t(`Failure importing ${e}: ${n}`,null)})).then((e=>{t(null,e)}))},this.getInitialManifest=function(t){o.System.ready((()=>{o.System.Application.getCurrent().getManifest((n=>{n.finsemble=n.finsemble||{},e.resolveConfigVariables(n.finsemble,n.finsemble),n.finsemble.applicationRoot||r.default.system.error("FATAL ERROR: applicationRoot was not defined in manifest file.");const o=`${n.finsemble.moduleRoot}/configs/core/config.json`;e.readConfigFile(o,((i,s)=>{i?r.default.system.error(`ConfigUtil.getInitialManifest:getCoreConfig:failed importing into finsemble config. $moduleRoot=${n.finsemble.moduleRoot}; Full Path=${o}`,i):(Object.keys(s).forEach((e=>{if("importConfig"===e){n.finsemble.importConfig=n.finsemble.importConfig||[];for(let e=0;e<s.importConfig.length;e++)n.finsemble.importConfig.unshift(s.importConfig[e])}else if("importThirdPartyConfig"===e){n.finsemble.importThirdPartyConfig=n.finsemble.importThirdPartyConfig||[];for(let e=0;e<s.importThirdPartyConfig.length;e++)n.finsemble.importThirdPartyConfig.unshift(s.importThirdPartyConfig[e])}else n.finsemble[e]=s[e]})),e.resolveConfigVariables(n.finsemble,n.finsemble),r.default.system.debug("forceObjectsToLogger","ConfigUtil.getInitialManifest:getCoreConfig:Initial Manifest after variables Resolved",n)),t(n)}))}))}))},this.promptAndSaveJSONToLocalFile=function(e,t){r.default.system.debug("saveJSONToLocalFile",e,t);const n=JSON.stringify(t,null,"\t"),o=`data:application/json;charset=utf-8,${encodeURIComponent(n)}`,i=`${e}.json`,s=document.createElement("a");s.setAttribute("href",o),s.setAttribute("download",i),s.click()},this.configFormatForExport=function(e,t){r.default.system.debug("configFormatForExport starting",e,t);let n=i.default.cloneDeep(t);if("raw"===e);else if("all"===e)delete n.importConfig,delete n.comment;else if("application"===e)delete n.importConfig,delete n.comment,delete n.system,delete n.services;else if("workspace"===e)n={workspace:n};else if("workspaceTemplate"===e){const e={};e[n.name]=n,n={workspaceTemplates:e}}else"services"===e?n=n.services:"components"===e&&(n=n.components);return n},this.getDefault=function(e,t,n){let r=n;if(e){try{const n=t.split(".");let o=e;for(let e=1;e<n.length;e++)o=o[n[e]];r=o}catch(e){r=n}void 0===r&&(r=n)}return r},this.getFile=async function(e,t=Function.prototype){r.default.system.debug(`fetching import ${e}`);let n=null;return await fetch(e,{credentials:"include",cache:"no-cache"}).then((e=>e.json())).catch((n=>{t(`failure importing ${e}: ${n}`,null)})).then((e=>{t(null,e),n=e})),n}};t.ConfigUtilInstance=a},93802:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(5939),o=u(n(72551)),i=u(n(88021)),s=u(n(71879)),a=n(24232);function u(e){return e&&e.__esModule?e:{default:e}}let c;class l extends r.EventEmitter{constructor(e,t,n){if(super(),!n||!n.System)throw new Error("Monitors class requires dependency injection. Ensure that System is being passed in.");({System:c}=n),this.cachedMonitorInfo=null,this.limitedMonitorRefreshQueue=new i.default({concurrency:1}),this.bindAllFunctions(),this.limitedMonitorRefreshQueue.add((()=>this.refreshMonitors(e))),c.addEventListener("monitor-info-changed",(()=>{this.limitedMonitorRefreshQueue.add((()=>this.refreshMonitors(t)))})),c.addEventListener("session-changed",(e=>{e&&("object"!=typeof e||!e.hasOwnProperty("reason")||"unlock"!==e.reason&&"remote-connect"!==e.reason&&"unknown"!==e.reason)||this.limitedMonitorRefreshQueue.add((()=>this.refreshMonitors(t)))}))}bindAllFunctions(){let e=this;for(let t of Object.getOwnPropertyNames(Object.getPrototypeOf(e))){let n=e[t];n instanceof Function&&n!==l&&(e[t]=e[t].bind(e))}}asyncIt(e,t){return t(e),e}rationalizeMonitor(e){e.monitorRect.width=e.monitorRect.right-e.monitorRect.left,e.monitorRect.height=e.monitorRect.bottom-e.monitorRect.top,e.availableRect.width=e.availableRect.right-e.availableRect.left,e.availableRect.height=e.availableRect.bottom-e.availableRect.top}calculateMonitorScale(e,t){return(t.right-t.left)/(e.right-e.left)}monitorInfoIsChanged(e,t){if(!e||!t)return!0;if(e.nonPrimaryMonitors.length!==t.nonPrimaryMonitors.length)return!0;if(!(0,a.checkIfBoundsAreEqual)(e.primaryMonitor.availableRect,t.primaryMonitor.availableRect))return!0;if(!(0,a.checkIfBoundsAreEqual)(e.primaryMonitor.monitorRect,t.primaryMonitor.monitorRect))return!0;e.nonPrimaryMonitors.sort(((e,t)=>e.deviceName>t.deviceName?1:e.deviceName<t.deviceName?-1:0)),t.nonPrimaryMonitors.sort(((e,t)=>e.deviceName>t.deviceName?1:e.deviceName<t.deviceName?-1:0));let n=!1;return e.nonPrimaryMonitors.forEach(((e,r)=>{const o=t.nonPrimaryMonitors[r];(0,a.checkIfBoundsAreEqual)(e.availableRect,o.availableRect)&&(0,a.checkIfBoundsAreEqual)(e.monitorRect,o.monitorRect)||(n=!0)})),n}async refreshMonitors(e=Function.prototype){this.limitedMonitorRefreshQueue.clear();const t=await c.getMonitorInfo();if(!this.monitorInfoIsChanged(this.cachedMonitorInfo,t))return o.default.system.info("Skipped refreshMonitors because monitors do not change."),e(this.allMonitors);this.allMonitors=[];let{primaryMonitor:n}=t;if(Object.entries(n).length){n.whichMonitor="primary",n.position=0,this.allMonitors.push(Object.assign({},n));for(let e=0;e<t.nonPrimaryMonitors.length;e++){let n=t.nonPrimaryMonitors[e];n.whichMonitor=e,n.position=e+1,this.allMonitors.push(n)}for(let e=0;e<this.allMonitors.length;e++){let t=this.allMonitors[e];this.rationalizeMonitor(t)}this.cachedMonitorInfo=(0,s.default)(t),e(this.allMonitors),this.ready=!0,1===this.limitedMonitorRefreshQueue.pending&&this.emit("monitors-changed",{monitors:this.allMonitors})}else o.default.system.info("There is no primary monitor in 'monitorInfo' - the system is still in the process of updating the monitor information. Returning from monitorsAndScaling -> refreshMonitors")}getAllMonitors(e=Function.prototype){return this.ready?this.asyncIt(JSON.parse(JSON.stringify(this.allMonitors)),e):e?void this.refreshMonitors(e):"not ready"}getMonitorFromScaledXY(e,t,n=Function.prototype){return new Promise((r=>{if(!this.ready)return this.refreshMonitors((()=>{this.getMonitorFromScaledXY(e,t,n)})),"not ready";let o=null;for(var i=this.allMonitors,s=0;s<i.length;s++){var a=i[s],{monitorRect:u}=a;if(e>=u.left&&e<u.right&&t>=u.top&&t<u.bottom){o=a;break}}r(o),n(o)}))}getMonitorFromUnscaledXY(e,t,n=Function.prototype){if(!this.ready)return this.refreshMonitors((()=>{this.getMonitorFromUnscaledXY(e,t,n)})),"not ready";for(var r=this.allMonitors,o=0;o<r.length;o++){var i=r[o],s=i.monitor.scaledRect;if(e>=s.left&&e<s.right&&t>=s.top&&t<s.bottom)return this.asyncIt(i,n)}return this.asyncIt(null,n)}async translatePointFromScaled(e,t=Function.prototype){if(!this.ready)return this.refreshMonitors((()=>{this.translatePointFromScaled(e,t)})),"not ready";var n;e.point?({point:n}=e):n=e;var{monitor:r}=e;r||(r=(await this.getMonitorFromScaledXY(n.x,n.y)).data);let o=null;if(r){var i=n.x-r.monitorRect.left,s=n.y-r.monitorRect.top,a=i*r.deviceScaleFactor,u=s*r.deviceScaleFactor;o={x:a+r.monitor.scaledRect.left,y:u+r.monitor.scaledRect.top}}return t(o),Promise.resolve(o)}translatePointToScaled(e,t=Function.prototype){if(!this.ready)return this.refreshMonitors((()=>{this.translatePointToScaled(e,t)})),"not ready";var n;e.point?({point:n}=e):n=e;var r=e.monitor||this.getMonitorFromUnscaledXY(n.x,n.y);if(!r)return this.asyncIt(null,t);var o=n.x-r.monitor.scaledRect.left,i=n.y-r.monitor.scaledRect.top,s=o/r.deviceScaleFactor,a=i/r.deviceScaleFactor,u={x:s+r.monitorRect.left,y:a+r.monitorRect.top};return this.asyncIt(u,t)}async translateRectToScaled(e,t=Function.prototype){let n;if(!this.ready)return this.refreshMonitors((()=>{this.translateRectToScaled(e,t)})),"not ready";var r=this.translatePointToScaled({x:e.left,y:e.top}),o=this.translatePointToScaled({x:e.right,y:e.bottom});return!r&&o&&(n=await this.getMonitorFromScaledXY(o),r=this.translatePointToScaled({monitor:n,point:{x:e.left,y:e.top}})),!o&&r&&(n=await this.getMonitorFromScaledXY(o),o=this.translatePointToScaled({monitor:n,point:{x:e.right,y:e.bottom}})),this.asyncIt({top:r?r.y:null,left:r?r.x:null,bottom:o?o.y:null,right:o?o.x:null,height:r&&o?o.y-r.y:null,width:r&&o?o.x-r.x:null},t)}translateRectFromScaled(e,t=Function.prototype){if(!this.ready)return this.refreshMonitors((()=>{this.translateRectFromScaled(e,t)})),"not ready";var n=this.translatePointFromScaled({x:e.left,y:e.top}),r=this.translatePointFromScaled({x:e.right,y:e.bottom});return!n&&r&&(n=this.translatePointFromScaled({monitor:this.getMonitorFromUnscaledXY(r),point:{x:e.left,y:e.top}})),!r&&n&&(r=this.translatePointFromScaled({monitor:this.getMonitorFromUnscaledXY(n),point:{x:e.right,y:e.bottom}})),this.asyncIt({top:n?n.y:null,left:n?n.x:null,bottom:r?r.y:null,right:r?r.x:null,height:n&&r?r.y-n.y:null,width:n&&r?r.x-n.x:null},t)}}var f=l;t.default=f},21014:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=new function(){let e=3;this.diagLevel=function(){return e},this.setDiagLevel=function(t){e=t},this.validationEnabled=function(){return e>=4}};t.default=n},73699:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(72551)),o=n(33998),i=n(51742),s=a(n(5020));function a(e){return e&&e.__esModule?e:{default:e}}let u=null;var c=new function(){const e={},t={};let a=null;this.getDefaultTemplateURL=function(e){a?setTimeout((()=>{e(a)}),0):(u||(u=n(70010).default),u.getValue({field:"finsemble"},((t,n)=>{a=o.ConfigUtilInstance.getDefault(n,"finsemble.notificationURL",`${n.moduleRoot}/components/system/notification/notification.html`),e(a)})))},this.alert=function(e,t,n,r,o){const i=this;o&&o.url?this.alertInternal(e,t,n,r,o,o.url):this.getDefaultTemplateURL((s=>{i.alertInternal(e,t,n,r,o,s)}))},this.alertInternal=function(n,o,a,u,c,l){let f=!1;const d=`UserNotification.alert.${a}`,p=(c=c||{}).duration||864e5;switch(o){case"ONCE-SINCE-STARTUP":d in e?f=!1:(f=!0,e[d]=!0);break;case"MAX-COUNT":{let e=0;const n=c.maxCount||1;d in t&&(e=t[d]),t[d]=++e,e<=n&&(f=!0);break}default:f=!0}if(r.default.log("UserNotification.alert",n,f,o,a,u,c),f){const e={url:l,message:u,timeout:p};s.default.systemLog({notification:!0},`Notification: ${u}`),new i.System.Notification(e)}}};t.default=c},13712:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(21014))&&r.__esModule?r:{default:r},i=new function(){function e(e,t,n){const r=function(){try{throw Error("")}catch(e){return e}}(),o=r.stack.split("\n")[5],i=o.indexOf("at "),s=o.slice(i+2,o.length),a=r.stack.split("\n")[6],u=a.indexOf("at "),c=a.slice(u+2,a.length);console.warn(`parameter validation failed: parameter ${e} is of type '${typeof t}' but should be of type '${n}' in${s} called by${c}`)}this.args=function(){let t=!0;if(o.default.validationEnabled()){const n=arguments.length;if((n+1)%2!=0)for(let r=0;r<n;r+=2){let n=!1;const o=arguments[r];let i=arguments[r+1];if("="===i.slice(-1)&&(i=i.slice(0,-1),n=!0),typeof o!==i&&!(n&&void 0===o||void 0!==o&&"any"===i)){e(r/2+1,o,i),t=!1;break}}else console.warn(`validate.args requires even number of parameters: ${JSON.stringify(arguments)}`)}return t},this.args2=function(){let t=!0;if(o.default.validationEnabled()){const n=arguments.length;if((n+1)%3!=0)for(let r=0;r<n;r+=3){let n=!1;const o=arguments[r],i=arguments[r+1];let s=arguments[r+2];if("="===s.slice(-1)&&(s=s.slice(0,-1),n=!0),typeof i!==s&&!(n&&void 0===i||void 0!==i&&"any"===s)){e(o,i,s),t=!1;break}}else console.warn(`validate.args requires even number of parameters: ${JSON.stringify(arguments)}`)}return t}};t.default=i},16769:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e){if(e)try{n.g.adapterReceiver?n.g.adapterReceiver.loaded(e[0],this):console.error("Global Adapter Receiver not found on the global object. Fatal error.")}catch(e){console.error("BaseStorage constructor",e)}this.setBaseName=function(e){this.baseName=e},this.setUser=function(e){this.userName=e},this.save=function(){console.warn("Save method not fulfilled in the active storage model.")},this.get=function(){console.warn("Get method not fulfilled in the active storage model.")},this.keys=function(){console.warn("Keys method not fulfilled in the active storage model.")},this.delete=function(){console.warn("Delete method not fulfilled in the active storage model.")},this.clearCache=function(){console.warn("Clear cache method not fulfilled in the active storage model.")},this.empty=function(){console.warn("Empty method not fulfilled in the active storage model.")},this.getMultiple=function(){},this.getCombinedKey=function(e,t){return`${e.baseName}:${e.userName}:${t.topic}:${t.key}`},this.getKeyPreface=function(e,t){let n=`${e.baseName}:${e.userName}:${t.topic}:`;return"keyPrefix"in t&&(n+=t.keyPrefix),n}}},48785:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(16769)),o=i(n(72551));function i(e){return e&&e.__esModule?e:{default:e}}const s=function(){r.default.call(this,arguments),this.save=function(e,t){o.default.system.debug("saving",e);const n=this.getCombinedKey(this,e);try{localStorage.setItem(n,JSON.stringify(e.value))}catch(t){o.default.system.error("Storage.saving Error",t,`key=${n}`,"value=",e.value)}return o.default.system.debug(`Storage.save for key=${n} with data=${e.value}`),t(null,{status:"success"})},this.get=function(e,t){const n=this.getCombinedKey(this,e);try{var r=JSON.parse(localStorage.getItem(n))}catch(e){o.default.system.error("Storage.getItem Error",e,`key=${n}`)}return o.default.system.debug(`Storage.getItem for key=${n} with data=${r}`),t(null,r)},this.keys=function(e,t){const n=[],r=this.getKeyPreface(this,e),i=new RegExp(`${r}.*`);for(let e=0,t=localStorage.length;e<t;++e){const t=localStorage.key(e);i.test(t)&&n.push(t)}return o.default.system.debug(`Storage.keys for keyPreface=${r} with keys=${n}`),t(null,n)},this.delete=function(e,t){const n=this.getCombinedKey(this,e);return localStorage.removeItem(n),o.default.system.debug(`Storage.delete for key=${n}`),t(null,{status:"success"})},this.clearCache=function(e,t){o.default.system.info("Local storage adapter, clear cache.");const n=[];for(let e=0;e<localStorage.length;e++)o.default.system.debug("localStorage.key(i):::",localStorage.key(e).substring(0,`${this.baseName}:${this.userName}`.length)),localStorage.key(e).substring(0,`${this.baseName}:${this.userName}`.length)===`${this.baseName}:${this.userName}`&&n.push(localStorage.key(e));for(let e=0;e<n.length;e++)o.default.system.debug("remove Iem",n[e]),localStorage.removeItem(n[e]);return t()},this.empty=function(e){return localStorage.clear(),o.default.system.debug("Storage.empty"),e(null,{status:"success"})},this.getMultiple=function(e,t){let n;const r=[];let i;for(n in localStorage)if(localStorage.hasOwnProperty(n)&&(n.match(e)||!e&&"string"==typeof n)){try{i=JSON.parse(localStorage.getItem(n))}catch(e){o.default.system.error("Storage.getMultiple Error",e,`key=${n}`)}r.push({key:n,val:i})}return o.default.system.debug("results",r),t(null,r)}};s.prototype=new r.default,new s("localStorage");var a=s;t.default=a},66772:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(75391)),o=s(n(16769)),i=s(n(72551));function s(e){return e&&e.__esModule?e:{default:e}}const a=function(){o.default.call(this,arguments),this.save=function(e,t){i.default.system.debug("redis-params",e),r.default.post("/redis").set("Content-Type","application/x-www-form-urlencoded").send({key:this.getCombinedKey(this,e),value:JSON.stringify(e.value)}).end(((e,n)=>t(e,n.body)))},this.get=function(e,t){r.default.get("/redis").query({key:this.getCombinedKey(this,e)}).end(((e,n)=>{const r=n.text?n.text:null;return t(e,JSON.parse(r))}))},this.keys=function(e,t){i.default.system.debug("call to keys",e);const n=this;r.default.get("/redis").query({keys:!0}).end(((r,o)=>{i.default.system.debug(`keys response:${JSON.stringify(o.text)}`);const s=[],a=n.getKeyPreface(n,e),u=new RegExp(`${a}.*`),c=JSON.parse(o.text);for(let e=0,t=c.length;e<t;++e){const t=c[e];i.default.system.debug(`keyPrefix=${a}`),u.test(t)&&s.push(t)}return i.default.system.debug(`Storage.keys for keyPreface=${a} with keys=${s}`),t(r,s)}))},this.delete=function(e,t){i.default.system.debug("call to delete",e),r.default.delete("/redis").query({key:this.getCombinedKey(this,e)}).end(((e,n)=>t(e,n.texts)))},this.clearCache=function(e,t){i.default.system.debug("call to delete",e),r.default.delete("/redis/user").query({key:`${this.baseName}:${this.userName}`}).end(((e,n)=>t(e,n.texts)))},this.empty=function(){return{status:"success"}},this.getMultiple=function(){}};a.prototype=new o.default,new a("redis");var u=a;t.default=u},31069:e=>{function t(e){if(e)return function(e){for(var n in t.prototype)e[n]=t.prototype[n];return e}(e)}e.exports=t,t.prototype.on=t.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},t.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;o<r.length;o++)if((n=r[o])===t||n.fn===t){r.splice(o,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},t.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var o=(n=n.slice(0)).length;r<o;++r)n[r].apply(this,t)}return this},t.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},t.prototype.hasListeners=function(e){return!!this.listeners(e).length}},33034:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,r,i,s){if("function"!=typeof r)throw new TypeError("The listener must be a function");var a=new o(r,i||e,s),u=n?n+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],a]:e._events[u].push(a):(e._events[u]=a,e._eventsCount++),e}function s(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function a(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),a.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},a.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,s=new Array(i);o<i;o++)s[o]=r[o].fn;return s},a.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},a.prototype.emit=function(e,t,r,o,i,s){var a=n?n+e:e;if(!this._events[a])return!1;var u,c,l=this._events[a],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,r),!0;case 4:return l.fn.call(l.context,t,r,o),!0;case 5:return l.fn.call(l.context,t,r,o,i),!0;case 6:return l.fn.call(l.context,t,r,o,i,s),!0}for(c=1,u=new Array(f-1);c<f;c++)u[c-1]=arguments[c];l.fn.apply(l.context,u)}else{var d,p=l.length;for(c=0;c<p;c++)switch(l[c].once&&this.removeListener(e,l[c].fn,void 0,!0),f){case 1:l[c].fn.call(l[c].context);break;case 2:l[c].fn.call(l[c].context,t);break;case 3:l[c].fn.call(l[c].context,t,r);break;case 4:l[c].fn.call(l[c].context,t,r,o);break;default:if(!u)for(d=1,u=new Array(f-1);d<f;d++)u[d-1]=arguments[d];l[c].fn.apply(l[c].context,u)}}return!0},a.prototype.on=function(e,t,n){return i(this,e,t,n,!1)},a.prototype.once=function(e,t,n){return i(this,e,t,n,!0)},a.prototype.removeListener=function(e,t,r,o){var i=n?n+e:e;if(!this._events[i])return this;if(!t)return s(this,i),this;var a=this._events[i];if(a.fn)a.fn!==t||o&&!a.once||r&&a.context!==r||s(this,i);else{for(var u=0,c=[],l=a.length;u<l;u++)(a[u].fn!==t||o&&!a[u].once||r&&a[u].context!==r)&&c.push(a[u]);c.length?this._events[i]=1===c.length?c[0]:c:s(this,i)}return this},a.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&s(this,t)):(this._events=new r,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=n,a.EventEmitter=a,e.exports=a},5939:e=>{"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise((function(n,r){function o(n){e.removeListener(t,i),r(n)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",o),n([].slice.call(arguments))}y(e,t,i,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&y(e,"error",t,{once:!0})}(e,o)}))},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var s=10;function a(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function c(e,t,n,r){var o,i,s,c;if(a(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),s=i[t]),void 0===s)s=i[t]=n,++e._eventsCount;else if("function"==typeof s?s=i[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(o=u(e))>0&&s.length>o&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,c=l,console&&console.warn&&console.warn(c)}return e}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(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=l.bind(r);return o.listener=n,r.wrapFn=o,o}function d(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):h(o,o.length)}function p(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function h(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function y(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function o(i){r.once&&e.removeEventListener(t,o),n(i)}))}}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),i.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},i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return u(this)},i.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var o="error"===e,i=this._events;if(void 0!==i)o=o&&void 0===i.error;else if(!o)return!1;if(o){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var u=i[e];if(void 0===u)return!1;if("function"==typeof u)r(u,this,t);else{var c=u.length,l=h(u,c);for(n=0;n<c;++n)r(l[n],this,t)}return!0},i.prototype.addListener=function(e,t){return c(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return c(this,e,t,!0)},i.prototype.once=function(e,t){return a(t),this.on(e,f(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return a(t),this.prependListener(e,f(this,e,t)),this},i.prototype.removeListener=function(e,t){var n,r,o,i,s;if(a(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){s=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,s||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,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[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},i.prototype.listeners=function(e){return d(this,e,!0)},i.prototype.rawListeners=function(e){return d(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},i.prototype.listenerCount=p,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},5799:e=>{e.exports=r,r.default=r,r.stable=s,r.stableStringify=s;var t=[],n=[];function r(e,r,i){var s;for(o(e,"",[],void 0),s=0===n.length?JSON.stringify(e,r,i):JSON.stringify(e,u(r),i);0!==t.length;){var a=t.pop();4===a.length?Object.defineProperty(a[0],a[1],a[3]):a[0][a[1]]=a[2]}return s}function o(e,r,i,s){var a;if("object"==typeof e&&null!==e){for(a=0;a<i.length;a++)if(i[a]===e){var u=Object.getOwnPropertyDescriptor(s,r);return void(void 0!==u.get?u.configurable?(Object.defineProperty(s,r,{value:"[Circular]"}),t.push([s,r,e,u])):n.push([e,r]):(s[r]="[Circular]",t.push([s,r,e])))}if(i.push(e),Array.isArray(e))for(a=0;a<e.length;a++)o(e[a],a,i,e);else{var c=Object.keys(e);for(a=0;a<c.length;a++){var l=c[a];o(e[l],l,i,e)}}i.pop()}}function i(e,t){return e<t?-1:e>t?1:0}function s(e,r,o){var i,s=a(e,"",[],void 0)||e;for(i=0===n.length?JSON.stringify(s,r,o):JSON.stringify(s,u(r),o);0!==t.length;){var c=t.pop();4===c.length?Object.defineProperty(c[0],c[1],c[3]):c[0][c[1]]=c[2]}return i}function a(e,r,o,s){var u;if("object"==typeof e&&null!==e){for(u=0;u<o.length;u++)if(o[u]===e){var c=Object.getOwnPropertyDescriptor(s,r);return void(void 0!==c.get?c.configurable?(Object.defineProperty(s,r,{value:"[Circular]"}),t.push([s,r,e,c])):n.push([e,r]):(s[r]="[Circular]",t.push([s,r,e])))}if("function"==typeof e.toJSON)return;if(o.push(e),Array.isArray(e))for(u=0;u<e.length;u++)a(e[u],u,o,e);else{var l={},f=Object.keys(e).sort(i);for(u=0;u<f.length;u++){var d=f[u];a(e[d],d,o,e),l[d]=e[d]}if(void 0===s)return l;t.push([s,r,e]),s[r]=l}o.pop()}}function u(e){return e=void 0!==e?e:function(e,t){return t},function(t,r){if(n.length>0)for(var o=0;o<n.length;o++){var i=n[o];if(i[1]===t&&i[0]===r){r="[Circular]",n.splice(o,1);break}}return e.call(this,t,r)}}},24081:(e,t,n)=>{var r=n(21059)(n(158),"DataView");e.exports=r},15999:(e,t,n)=>{var r=n(13387),o=n(69252),i=n(31125),s=n(9021),a=n(68131);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=s,u.prototype.set=a,e.exports=u},26811:(e,t,n)=>{var r=n(72215),o=n(56105),i=n(30484),s=n(8046),a=n(30603);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=s,u.prototype.set=a,e.exports=u},60945:(e,t,n)=>{var r=n(21059)(n(158),"Map");e.exports=r},25835:(e,t,n)=>{var r=n(73633),o=n(39382),i=n(28850),s=n(70756),a=n(2769);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=s,u.prototype.set=a,e.exports=u},27540:(e,t,n)=>{var r=n(21059)(n(158),"Promise");e.exports=r},80476:(e,t,n)=>{var r=n(21059)(n(158),"Set");e.exports=r},74868:(e,t,n)=>{var r=n(25835),o=n(57554),i=n(18800);function s(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}s.prototype.add=s.prototype.push=o,s.prototype.has=i,e.exports=s},34987:(e,t,n)=>{var r=n(26811),o=n(73832),i=n(31676),s=n(33577),a=n(43343),u=n(20488);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=s,c.prototype.has=a,c.prototype.set=u,e.exports=c},44937:(e,t,n)=>{var r=n(158).Symbol;e.exports=r},48596:(e,t,n)=>{var r=n(158).Uint8Array;e.exports=r},18307:(e,t,n)=>{var r=n(21059)(n(158),"WeakMap");e.exports=r},90929:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},73034:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},5680:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var s=e[n];t(s,n,e)&&(i[o++]=s)}return i}},92554:(e,t,n)=>{var r=n(65086),o=n(67016),i=n(93706),s=n(77638),a=n(49699),u=n(70094),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),l=!n&&o(e),f=!n&&!l&&s(e),d=!n&&!l&&!f&&u(e),p=n||l||f||d,h=p?r(e.length,String):[],y=h.length;for(var g in e)!t&&!c.call(e,g)||p&&("length"==g||f&&("offset"==g||"parent"==g)||d&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||a(g,y))||h.push(g);return h}},57041:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},52824:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},99280:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},96122:(e,t,n)=>{var r=n(88039),o=n(1316),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var s=e[t];i.call(e,t)&&o(s,n)&&(void 0!==n||t in e)||r(e,t,n)}},33993:(e,t,n)=>{var r=n(1316);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},73977:(e,t,n)=>{var r=n(34386),o=n(23150);e.exports=function(e,t){return e&&r(t,o(t),e)}},5081:(e,t,n)=>{var r=n(34386),o=n(61530);e.exports=function(e,t){return e&&r(t,o(t),e)}},88039:(e,t,n)=>{var r=n(88689);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},49548:(e,t,n)=>{var r=n(34987),o=n(73034),i=n(96122),s=n(73977),a=n(5081),u=n(728),c=n(86923),l=n(21375),f=n(1584),d=n(47461),p=n(31441),h=n(35551),y=n(75539),g=n(83394),m=n(45010),v=n(93706),b=n(77638),w=n(55948),_=n(23619),S=n(78255),C=n(23150),E=n(61530),A="[object Arguments]",O="[object Function]",T="[object Object]",I={};I[A]=I["[object Array]"]=I["[object ArrayBuffer]"]=I["[object DataView]"]=I["[object Boolean]"]=I["[object Date]"]=I["[object Float32Array]"]=I["[object Float64Array]"]=I["[object Int8Array]"]=I["[object Int16Array]"]=I["[object Int32Array]"]=I["[object Map]"]=I["[object Number]"]=I[T]=I["[object RegExp]"]=I["[object Set]"]=I["[object String]"]=I["[object Symbol]"]=I["[object Uint8Array]"]=I["[object Uint8ClampedArray]"]=I["[object Uint16Array]"]=I["[object Uint32Array]"]=!0,I["[object Error]"]=I[O]=I["[object WeakMap]"]=!1,e.exports=function e(t,n,R,L,x,j){var k,N=1&n,P=2&n,D=4&n;if(R&&(k=x?R(t,L,x,j):R(t)),void 0!==k)return k;if(!_(t))return t;var M=v(t);if(M){if(k=y(t),!N)return c(t,k)}else{var F=h(t),W=F==O||"[object GeneratorFunction]"==F;if(b(t))return u(t,N);if(F==T||F==A||W&&!x){if(k=P||W?{}:m(t),!N)return P?f(t,a(k,t)):l(t,s(k,t))}else{if(!I[F])return x?t:{};k=g(t,F,N)}}j||(j=new r);var $=j.get(t);if($)return $;j.set(t,k),S(t)?t.forEach((function(r){k.add(e(r,n,R,r,t,j))})):w(t)&&t.forEach((function(r,o){k.set(o,e(r,n,R,o,t,j))}));var B=M?void 0:(D?P?p:d:P?E:C)(t);return o(B||t,(function(r,o){B&&(r=t[o=r]),i(k,o,e(r,n,R,o,t,j))})),k}},33776:(e,t,n)=>{var r=n(23619),o=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},22153:(e,t,n)=>{var r=n(52824),o=n(76648);e.exports=function e(t,n,i,s,a){var u=-1,c=t.length;for(i||(i=o),a||(a=[]);++u<c;){var l=t[u];n>0&&i(l)?n>1?e(l,n-1,i,s,a):r(a,l):s||(a[a.length]=l)}return a}},51845:(e,t,n)=>{var r=n(49160),o=n(46384);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},45328:(e,t,n)=>{var r=n(52824),o=n(93706);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},20194:(e,t,n)=>{var r=n(44937),o=n(15401),i=n(92445),s=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?o(e):i(e)}},56640:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},64634:(e,t,n)=>{var r=n(20194),o=n(81653);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},95372:(e,t,n)=>{var r=n(55365),o=n(81653);e.exports=function e(t,n,i,s,a){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,i,s,e,a))}},55365:(e,t,n)=>{var r=n(34987),o=n(95428),i=n(1108),s=n(71711),a=n(35551),u=n(93706),c=n(77638),l=n(70094),f="[object Arguments]",d="[object Array]",p="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,y,g,m){var v=u(e),b=u(t),w=v?d:a(e),_=b?d:a(t),S=(w=w==f?p:w)==p,C=(_=_==f?p:_)==p,E=w==_;if(E&&c(e)){if(!c(t))return!1;v=!0,S=!1}if(E&&!S)return m||(m=new r),v||l(e)?o(e,t,n,y,g,m):i(e,t,w,n,y,g,m);if(!(1&n)){var A=S&&h.call(e,"__wrapped__"),O=C&&h.call(t,"__wrapped__");if(A||O){var T=A?e.value():e,I=O?t.value():t;return m||(m=new r),g(T,I,n,y,m)}}return!!E&&(m||(m=new r),s(e,t,n,y,g,m))}},2471:(e,t,n)=>{var r=n(35551),o=n(81653);e.exports=function(e){return o(e)&&"[object Map]"==r(e)}},4249:(e,t,n)=>{var r=n(39277),o=n(83481),i=n(23619),s=n(91223),a=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,l=u.toString,f=c.hasOwnProperty,d=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?d:a).test(s(e))}},42388:(e,t,n)=>{var r=n(35551),o=n(81653);e.exports=function(e){return o(e)&&"[object Set]"==r(e)}},88595:(e,t,n)=>{var r=n(20194),o=n(62008),i=n(81653),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,e.exports=function(e){return i(e)&&o(e.length)&&!!s[r(e)]}},76324:(e,t,n)=>{var r=n(3067),o=n(32501),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},21506:(e,t,n)=>{var r=n(23619),o=n(3067),i=n(90807),s=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=o(e),n=[];for(var a in e)("constructor"!=a||!t&&s.call(e,a))&&n.push(a);return n}},11241:(e,t,n)=>{var r=n(10722),o=n(47975);e.exports=function(e,t){return r(e,t,(function(t,n){return o(e,n)}))}},10722:(e,t,n)=>{var r=n(51845),o=n(68400),i=n(49160);e.exports=function(e,t,n){for(var s=-1,a=t.length,u={};++s<a;){var c=t[s],l=r(e,c);n(l,c)&&o(u,i(c,e),l)}return u}},68400:(e,t,n)=>{var r=n(96122),o=n(49160),i=n(49699),s=n(23619),a=n(46384);e.exports=function(e,t,n,u){if(!s(e))return e;for(var c=-1,l=(t=o(t,e)).length,f=l-1,d=e;null!=d&&++c<l;){var p=a(t[c]),h=n;if("__proto__"===p||"constructor"===p||"prototype"===p)return e;if(c!=f){var y=d[p];void 0===(h=u?u(y,p,d):void 0)&&(h=s(y)?y:i(t[c+1])?[]:{})}r(d,p,h),d=d[p]}return e}},86920:(e,t,n)=>{var r=n(80446),o=n(88689),i=n(41549),s=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=s},65086:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},80430:(e,t,n)=>{var r=n(44937),o=n(57041),i=n(93706),s=n(81878),a=r?r.prototype:void 0,u=a?a.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(s(t))return u?u.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},12383:(e,t,n)=>{var r=n(38725),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},2723:e=>{e.exports=function(e){return function(t){return e(t)}}},67446:e=>{e.exports=function(e,t){return e.has(t)}},49160:(e,t,n)=>{var r=n(93706),o=n(63140),i=n(39230),s=n(33270);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(s(e))}},53310:(e,t,n)=>{var r=n(48596);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},728:(e,t,n)=>{e=n.nmd(e);var r=n(158),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,s=i&&i.exports===o?r.Buffer:void 0,a=s?s.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=a?a(n):new e.constructor(n);return e.copy(r),r}},14352:(e,t,n)=>{var r=n(53310);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},44694:e=>{var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},29169:(e,t,n)=>{var r=n(44937),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},69752:(e,t,n)=>{var r=n(53310);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},86923:e=>{e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},34386:(e,t,n)=>{var r=n(96122),o=n(88039);e.exports=function(e,t,n,i){var s=!n;n||(n={});for(var a=-1,u=t.length;++a<u;){var c=t[a],l=i?i(n[c],e[c],c,n,e):void 0;void 0===l&&(l=e[c]),s?o(n,c,l):r(n,c,l)}return n}},21375:(e,t,n)=>{var r=n(34386),o=n(45278);e.exports=function(e,t){return r(e,o(e),t)}},1584:(e,t,n)=>{var r=n(34386),o=n(27508);e.exports=function(e,t){return r(e,o(e),t)}},38728:(e,t,n)=>{var r=n(158)["__core-js_shared__"];e.exports=r},88689:(e,t,n)=>{var r=n(21059),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},95428:(e,t,n)=>{var r=n(74868),o=n(99280),i=n(67446);e.exports=function(e,t,n,s,a,u){var c=1&n,l=e.length,f=t.length;if(l!=f&&!(c&&f>l))return!1;var d=u.get(e),p=u.get(t);if(d&&p)return d==t&&p==e;var h=-1,y=!0,g=2&n?new r:void 0;for(u.set(e,t),u.set(t,e);++h<l;){var m=e[h],v=t[h];if(s)var b=c?s(v,m,h,t,e,u):s(m,v,h,e,t,u);if(void 0!==b){if(b)continue;y=!1;break}if(g){if(!o(t,(function(e,t){if(!i(g,t)&&(m===e||a(m,e,n,s,u)))return g.push(t)}))){y=!1;break}}else if(m!==v&&!a(m,v,n,s,u)){y=!1;break}}return u.delete(e),u.delete(t),y}},1108:(e,t,n)=>{var r=n(44937),o=n(48596),i=n(1316),s=n(95428),a=n(11382),u=n(76680),c=r?r.prototype:void 0,l=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,f,d){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!f(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=a;case"[object Set]":var h=1&r;if(p||(p=u),e.size!=t.size&&!h)return!1;var y=d.get(e);if(y)return y==t;r|=2,d.set(e,t);var g=s(p(e),p(t),r,c,f,d);return d.delete(e),g;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},71711:(e,t,n)=>{var r=n(47461),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,s,a){var u=1&n,c=r(e),l=c.length;if(l!=r(t).length&&!u)return!1;for(var f=l;f--;){var d=c[f];if(!(u?d in t:o.call(t,d)))return!1}var p=a.get(e),h=a.get(t);if(p&&h)return p==t&&h==e;var y=!0;a.set(e,t),a.set(t,e);for(var g=u;++f<l;){var m=e[d=c[f]],v=t[d];if(i)var b=u?i(v,m,d,t,e,a):i(m,v,d,e,t,a);if(!(void 0===b?m===v||s(m,v,n,i,a):b)){y=!1;break}g||(g="constructor"==d)}if(y&&!g){var w=e.constructor,_=t.constructor;w==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof _&&_ instanceof _||(y=!1)}return a.delete(e),a.delete(t),y}},39169:(e,t,n)=>{var r=n(30597),o=n(53039),i=n(47209);e.exports=function(e){return i(o(e,void 0,r),e+"")}},14528:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},47461:(e,t,n)=>{var r=n(45328),o=n(45278),i=n(23150);e.exports=function(e){return r(e,i,o)}},31441:(e,t,n)=>{var r=n(45328),o=n(27508),i=n(61530);e.exports=function(e){return r(e,i,o)}},5662:(e,t,n)=>{var r=n(10205);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},21059:(e,t,n)=>{var r=n(4249),o=n(4759);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},97959:(e,t,n)=>{var r=n(78579)(Object.getPrototypeOf,Object);e.exports=r},15401:(e,t,n)=>{var r=n(44937),o=Object.prototype,i=o.hasOwnProperty,s=o.toString,a=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,a),n=e[a];try{e[a]=void 0;var r=!0}catch(e){}var o=s.call(e);return r&&(t?e[a]=n:delete e[a]),o}},45278:(e,t,n)=>{var r=n(5680),o=n(59174),i=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,a=s?function(e){return null==e?[]:(e=Object(e),r(s(e),(function(t){return i.call(e,t)})))}:o;e.exports=a},27508:(e,t,n)=>{var r=n(52824),o=n(97959),i=n(45278),s=n(59174),a=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:s;e.exports=a},35551:(e,t,n)=>{var r=n(24081),o=n(60945),i=n(27540),s=n(80476),a=n(18307),u=n(20194),c=n(91223),l="[object Map]",f="[object Promise]",d="[object Set]",p="[object WeakMap]",h="[object DataView]",y=c(r),g=c(o),m=c(i),v=c(s),b=c(a),w=u;(r&&w(new r(new ArrayBuffer(1)))!=h||o&&w(new o)!=l||i&&w(i.resolve())!=f||s&&w(new s)!=d||a&&w(new a)!=p)&&(w=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case y:return h;case g:return l;case m:return f;case v:return d;case b:return p}return t}),e.exports=w},4759:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},96919:(e,t,n)=>{var r=n(49160),o=n(67016),i=n(93706),s=n(49699),a=n(62008),u=n(46384);e.exports=function(e,t,n){for(var c=-1,l=(t=r(t,e)).length,f=!1;++c<l;){var d=u(t[c]);if(!(f=null!=e&&n(e,d)))break;e=e[d]}return f||++c!=l?f:!!(l=null==e?0:e.length)&&a(l)&&s(d,l)&&(i(e)||o(e))}},13387:(e,t,n)=>{var r=n(45155);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},69252:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},31125:(e,t,n)=>{var r=n(45155),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},9021:(e,t,n)=>{var r=n(45155),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},68131:(e,t,n)=>{var r=n(45155);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},75539:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},83394:(e,t,n)=>{var r=n(53310),o=n(14352),i=n(44694),s=n(29169),a=n(69752);e.exports=function(e,t,n){var u=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new u(+e);case"[object DataView]":return o(e,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(e,n);case"[object Map]":return new u;case"[object Number]":case"[object String]":return new u(e);case"[object RegExp]":return i(e);case"[object Set]":return new u;case"[object Symbol]":return s(e)}}},45010:(e,t,n)=>{var r=n(33776),o=n(97959),i=n(3067);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(o(e))}},76648:(e,t,n)=>{var r=n(44937),o=n(67016),i=n(93706),s=r?r.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(s&&e&&e[s])}},49699:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},63140:(e,t,n)=>{var r=n(93706),o=n(81878),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||s.test(e)||!i.test(e)||null!=t&&e in Object(t)}},10205:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},83481:(e,t,n)=>{var r,o=n(38728),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},3067:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},72215:e=>{e.exports=function(){this.__data__=[],this.size=0}},56105:(e,t,n)=>{var r=n(33993),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():o.call(t,n,1),--this.size,0))}},30484:(e,t,n)=>{var r=n(33993);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},8046:(e,t,n)=>{var r=n(33993);e.exports=function(e){return r(this.__data__,e)>-1}},30603:(e,t,n)=>{var r=n(33993);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},73633:(e,t,n)=>{var r=n(15999),o=n(26811),i=n(60945);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},39382:(e,t,n)=>{var r=n(5662);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},28850:(e,t,n)=>{var r=n(5662);e.exports=function(e){return r(this,e).get(e)}},70756:(e,t,n)=>{var r=n(5662);e.exports=function(e){return r(this,e).has(e)}},2769:(e,t,n)=>{var r=n(5662);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},11382:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},32202:(e,t,n)=>{var r=n(54883);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},45155:(e,t,n)=>{var r=n(21059)(Object,"create");e.exports=r},32501:(e,t,n)=>{var r=n(78579)(Object.keys,Object);e.exports=r},90807:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},41771:(e,t,n)=>{e=n.nmd(e);var r=n(14528),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,s=i&&i.exports===o&&r.process,a=function(){try{return i&&i.require&&i.require("util").types||s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=a},92445:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},78579:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},53039:(e,t,n)=>{var r=n(90929),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,s=-1,a=o(i.length-t,0),u=Array(a);++s<a;)u[s]=i[t+s];s=-1;for(var c=Array(t+1);++s<t;)c[s]=i[s];return c[t]=n(u),r(e,this,c)}}},158:(e,t,n)=>{var r=n(14528),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},57554:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},18800:e=>{e.exports=function(e){return this.__data__.has(e)}},76680:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},47209:(e,t,n)=>{var r=n(86920),o=n(10832)(r);e.exports=o},10832:e=>{var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var o=t(),i=16-(o-r);if(r=o,i>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},73832:(e,t,n)=>{var r=n(26811);e.exports=function(){this.__data__=new r,this.size=0}},31676:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},33577:e=>{e.exports=function(e){return this.__data__.get(e)}},43343:e=>{e.exports=function(e){return this.__data__.has(e)}},20488:(e,t,n)=>{var r=n(26811),o=n(60945),i=n(25835);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!o||s.length<199)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(s)}return n.set(e,t),this.size=n.size,this}},39230:(e,t,n)=>{var r=n(32202),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,s=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)})),t}));e.exports=s},46384:(e,t,n)=>{var r=n(81878);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},91223:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},38725:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},71879:(e,t,n)=>{var r=n(49548);e.exports=function(e){return r(e,4)}},80446:e=>{e.exports=function(e){return function(){return e}}},76897:(e,t,n)=>{var r=n(23619),o=n(98253),i=n(95053),s=Math.max,a=Math.min;e.exports=function(e,t,n){var u,c,l,f,d,p,h=0,y=!1,g=!1,m=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var n=u,r=c;return u=c=void 0,h=t,f=e.apply(r,n)}function b(e){return h=e,d=setTimeout(_,t),y?v(e):f}function w(e){var n=e-p;return void 0===p||n>=t||n<0||g&&e-h>=l}function _(){var e=o();if(w(e))return S(e);d=setTimeout(_,function(e){var n=t-(e-p);return g?a(n,l-(e-h)):n}(e))}function S(e){return d=void 0,m&&u?v(e):(u=c=void 0,f)}function C(){var e=o(),n=w(e);if(u=arguments,c=this,p=e,n){if(void 0===d)return b(p);if(g)return clearTimeout(d),d=setTimeout(_,t),v(p)}return void 0===d&&(d=setTimeout(_,t)),f}return t=i(t)||0,r(n)&&(y=!!n.leading,l=(g="maxWait"in n)?s(i(n.maxWait)||0,t):l,m="trailing"in n?!!n.trailing:m),C.cancel=function(){void 0!==d&&clearTimeout(d),h=0,u=p=c=d=void 0},C.flush=function(){return void 0===d?f:S(o())},C}},1316:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},30597:(e,t,n)=>{var r=n(22153);e.exports=function(e){return null!=e&&e.length?r(e,1):[]}},80089:(e,t,n)=>{var r=n(51845);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},47975:(e,t,n)=>{var r=n(56640),o=n(96919);e.exports=function(e,t){return null!=e&&o(e,t,r)}},41549:e=>{e.exports=function(e){return e}},67016:(e,t,n)=>{var r=n(64634),o=n(81653),i=Object.prototype,s=i.hasOwnProperty,a=i.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return o(e)&&s.call(e,"callee")&&!a.call(e,"callee")};e.exports=u},93706:e=>{var t=Array.isArray;e.exports=t},51528:(e,t,n)=>{var r=n(39277),o=n(62008);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},77638:(e,t,n)=>{e=n.nmd(e);var r=n(158),o=n(30647),i=t&&!t.nodeType&&t,s=i&&e&&!e.nodeType&&e,a=s&&s.exports===i?r.Buffer:void 0,u=(a?a.isBuffer:void 0)||o;e.exports=u},47184:(e,t,n)=>{var r=n(95372);e.exports=function(e,t){return r(e,t)}},65162:(e,t,n)=>{var r=n(95372);e.exports=function(e,t,n){var o=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===o?r(e,t,void 0,n):!!o}},39277:(e,t,n)=>{var r=n(20194),o=n(23619);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},62008:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},55948:(e,t,n)=>{var r=n(2471),o=n(2723),i=n(41771),s=i&&i.isMap,a=s?o(s):r;e.exports=a},23619:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},81653:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},78255:(e,t,n)=>{var r=n(42388),o=n(2723),i=n(41771),s=i&&i.isSet,a=s?o(s):r;e.exports=a},81878:(e,t,n)=>{var r=n(20194),o=n(81653);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},70094:(e,t,n)=>{var r=n(88595),o=n(2723),i=n(41771),s=i&&i.isTypedArray,a=s?o(s):r;e.exports=a},23150:(e,t,n)=>{var r=n(92554),o=n(76324),i=n(51528);e.exports=function(e){return i(e)?r(e):o(e)}},61530:(e,t,n)=>{var r=n(92554),o=n(21506),i=n(51528);e.exports=function(e){return i(e)?r(e,!0):o(e)}},53059:function(e,t,n){var r;e=n.nmd(e),function(){var o,i="Expected a function",s="__lodash_hash_undefined__",a="__lodash_placeholder__",u=32,c=128,l=1/0,f=9007199254740991,d=NaN,p=4294967295,h=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",u],["partialRight",64],["rearg",256]],y="[object Arguments]",g="[object Array]",m="[object Boolean]",v="[object Date]",b="[object Error]",w="[object Function]",_="[object GeneratorFunction]",S="[object Map]",C="[object Number]",E="[object Object]",A="[object Promise]",O="[object RegExp]",T="[object Set]",I="[object String]",R="[object Symbol]",L="[object WeakMap]",x="[object ArrayBuffer]",j="[object DataView]",k="[object Float32Array]",N="[object Float64Array]",P="[object Int8Array]",D="[object Int16Array]",M="[object Int32Array]",F="[object Uint8Array]",W="[object Uint8ClampedArray]",$="[object Uint16Array]",B="[object Uint32Array]",U=/\b__p \+= '';/g,V=/\b(__p \+=) '' \+/g,H=/(__e\(.*?\)|\b__t\)) \+\n'';/g,q=/&(?:amp|lt|gt|quot|#39);/g,z=/[&<>"']/g,G=RegExp(q.source),Y=RegExp(z.source),J=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,K=/<%=([\s\S]+?)%>/g,X=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Z=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,oe=/\s/,ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,se=/\{\n\/\* \[wrapped with (.+)\] \*/,ae=/,? & /,ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ce=/[()=,{}\[\]\/\s]/,le=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,de=/\w*$/,pe=/^[-+]0x[0-9a-f]+$/i,he=/^0b[01]+$/i,ye=/^\[object .+?Constructor\]$/,ge=/^0o[0-7]+$/i,me=/^(?:0|[1-9]\d*)$/,ve=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,be=/($^)/,we=/['\n\r\u2028\u2029\\]/g,_e="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Se="a-z\\xdf-\\xf6\\xf8-\\xff",Ce="A-Z\\xc0-\\xd6\\xd8-\\xde",Ee="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ae="["+Ee+"]",Oe="["+_e+"]",Te="\\d+",Ie="["+Se+"]",Re="[^\\ud800-\\udfff"+Ee+Te+"\\u2700-\\u27bf"+Se+Ce+"]",Le="\\ud83c[\\udffb-\\udfff]",xe="[^\\ud800-\\udfff]",je="(?:\\ud83c[\\udde6-\\uddff]){2}",ke="[\\ud800-\\udbff][\\udc00-\\udfff]",Ne="["+Ce+"]",Pe="(?:"+Ie+"|"+Re+")",De="(?:"+Ne+"|"+Re+")",Me="(?:['’](?:d|ll|m|re|s|t|ve))?",Fe="(?:['’](?:D|LL|M|RE|S|T|VE))?",We="(?:"+Oe+"|"+Le+")?",$e="[\\ufe0e\\ufe0f]?",Be=$e+We+"(?:\\u200d(?:"+[xe,je,ke].join("|")+")"+$e+We+")*",Ue="(?:"+["[\\u2700-\\u27bf]",je,ke].join("|")+")"+Be,Ve="(?:"+[xe+Oe+"?",Oe,je,ke,"[\\ud800-\\udfff]"].join("|")+")",He=RegExp("['’]","g"),qe=RegExp(Oe,"g"),ze=RegExp(Le+"(?="+Le+")|"+Ve+Be,"g"),Ge=RegExp([Ne+"?"+Ie+"+"+Me+"(?="+[Ae,Ne,"$"].join("|")+")",De+"+"+Fe+"(?="+[Ae,Ne+Pe,"$"].join("|")+")",Ne+"?"+Pe+"+"+Me,Ne+"+"+Fe,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Te,Ue].join("|"),"g"),Ye=RegExp("[\\u200d\\ud800-\\udfff"+_e+"\\ufe0e\\ufe0f]"),Je=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Qe=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ke=-1,Xe={};Xe[k]=Xe[N]=Xe[P]=Xe[D]=Xe[M]=Xe[F]=Xe[W]=Xe[$]=Xe[B]=!0,Xe[y]=Xe[g]=Xe[x]=Xe[m]=Xe[j]=Xe[v]=Xe[b]=Xe[w]=Xe[S]=Xe[C]=Xe[E]=Xe[O]=Xe[T]=Xe[I]=Xe[L]=!1;var Ze={};Ze[y]=Ze[g]=Ze[x]=Ze[j]=Ze[m]=Ze[v]=Ze[k]=Ze[N]=Ze[P]=Ze[D]=Ze[M]=Ze[S]=Ze[C]=Ze[E]=Ze[O]=Ze[T]=Ze[I]=Ze[R]=Ze[F]=Ze[W]=Ze[$]=Ze[B]=!0,Ze[b]=Ze[w]=Ze[L]=!1;var et={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tt=parseFloat,nt=parseInt,rt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ot="object"==typeof self&&self&&self.Object===Object&&self,it=rt||ot||Function("return this")(),st=t&&!t.nodeType&&t,at=st&&e&&!e.nodeType&&e,ut=at&&at.exports===st,ct=ut&&rt.process,lt=function(){try{return at&&at.require&&at.require("util").types||ct&&ct.binding&&ct.binding("util")}catch(e){}}(),ft=lt&<.isArrayBuffer,dt=lt&<.isDate,pt=lt&<.isMap,ht=lt&<.isRegExp,yt=lt&<.isSet,gt=lt&<.isTypedArray;function mt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function vt(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var s=e[o];t(r,s,n(s),e)}return r}function bt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function wt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function _t(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function St(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var s=e[n];t(s,n,e)&&(i[o++]=s)}return i}function Ct(e,t){return!(null==e||!e.length)&&kt(e,t,0)>-1}function Et(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function At(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function Ot(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function Tt(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function It(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function Rt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Lt=Mt("length");function xt(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function jt(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function kt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):jt(e,Pt,n)}function Nt(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function Pt(e){return e!=e}function Dt(e,t){var n=null==e?0:e.length;return n?$t(e,t)/n:d}function Mt(e){return function(t){return null==t?o:t[e]}}function Ft(e){return function(t){return null==e?o:e[t]}}function Wt(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function $t(e,t){for(var n,r=-1,i=e.length;++r<i;){var s=t(e[r]);s!==o&&(n=n===o?s:n+s)}return n}function Bt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Ut(e){return e?e.slice(0,an(e)+1).replace(re,""):e}function Vt(e){return function(t){return e(t)}}function Ht(e,t){return At(t,(function(t){return e[t]}))}function qt(e,t){return e.has(t)}function zt(e,t){for(var n=-1,r=e.length;++n<r&&kt(t,e[n],0)>-1;);return n}function Gt(e,t){for(var n=e.length;n--&&kt(t,e[n],0)>-1;);return n}function Yt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Jt=Ft({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),Qt=Ft({"&":"&","<":"<",">":">",'"':""","'":"'"});function Kt(e){return"\\"+et[e]}function Xt(e){return Ye.test(e)}function Zt(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function en(e,t){return function(n){return e(t(n))}}function tn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var s=e[n];s!==t&&s!==a||(e[n]=a,i[o++]=n)}return i}function nn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function rn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function on(e){return Xt(e)?function(e){for(var t=ze.lastIndex=0;ze.test(e);)++t;return t}(e):Lt(e)}function sn(e){return Xt(e)?function(e){return e.match(ze)||[]}(e):function(e){return e.split("")}(e)}function an(e){for(var t=e.length;t--&&oe.test(e.charAt(t)););return t}var un=Ft({"&":"&","<":"<",">":">",""":'"',"'":"'"}),cn=function e(t){var n,r=(t=null==t?it:cn.defaults(it.Object(),t,cn.pick(it,Qe))).Array,oe=t.Date,_e=t.Error,Se=t.Function,Ce=t.Math,Ee=t.Object,Ae=t.RegExp,Oe=t.String,Te=t.TypeError,Ie=r.prototype,Re=Se.prototype,Le=Ee.prototype,xe=t["__core-js_shared__"],je=Re.toString,ke=Le.hasOwnProperty,Ne=0,Pe=(n=/[^.]+$/.exec(xe&&xe.keys&&xe.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",De=Le.toString,Me=je.call(Ee),Fe=it._,We=Ae("^"+je.call(ke).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$e=ut?t.Buffer:o,Be=t.Symbol,Ue=t.Uint8Array,Ve=$e?$e.allocUnsafe:o,ze=en(Ee.getPrototypeOf,Ee),Ye=Ee.create,et=Le.propertyIsEnumerable,rt=Ie.splice,ot=Be?Be.isConcatSpreadable:o,st=Be?Be.iterator:o,at=Be?Be.toStringTag:o,ct=function(){try{var e=li(Ee,"defineProperty");return e({},"",{}),e}catch(e){}}(),lt=t.clearTimeout!==it.clearTimeout&&t.clearTimeout,Lt=oe&&oe.now!==it.Date.now&&oe.now,Ft=t.setTimeout!==it.setTimeout&&t.setTimeout,ln=Ce.ceil,fn=Ce.floor,dn=Ee.getOwnPropertySymbols,pn=$e?$e.isBuffer:o,hn=t.isFinite,yn=Ie.join,gn=en(Ee.keys,Ee),mn=Ce.max,vn=Ce.min,bn=oe.now,wn=t.parseInt,_n=Ce.random,Sn=Ie.reverse,Cn=li(t,"DataView"),En=li(t,"Map"),An=li(t,"Promise"),On=li(t,"Set"),Tn=li(t,"WeakMap"),In=li(Ee,"create"),Rn=Tn&&new Tn,Ln={},xn=Wi(Cn),jn=Wi(En),kn=Wi(An),Nn=Wi(On),Pn=Wi(Tn),Dn=Be?Be.prototype:o,Mn=Dn?Dn.valueOf:o,Fn=Dn?Dn.toString:o;function Wn(e){if(na(e)&&!qs(e)&&!(e instanceof Vn)){if(e instanceof Un)return e;if(ke.call(e,"__wrapped__"))return $i(e)}return new Un(e)}var $n=function(){function e(){}return function(t){if(!ta(t))return{};if(Ye)return Ye(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function Bn(){}function Un(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Vn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=p,this.__views__=[]}function Hn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function zn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new zn;++t<n;)this.add(e[t])}function Yn(e){var t=this.__data__=new qn(e);this.size=t.size}function Jn(e,t){var n=qs(e),r=!n&&Hs(e),o=!n&&!r&&Js(e),i=!n&&!r&&!o&&la(e),s=n||r||o||i,a=s?Bt(e.length,Oe):[],u=a.length;for(var c in e)!t&&!ke.call(e,c)||s&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||mi(c,u))||a.push(c);return a}function Qn(e){var t=e.length;return t?e[zr(0,t-1)]:o}function Kn(e,t){return Ni(Io(e),sr(t,0,e.length))}function Xn(e){return Ni(Io(e))}function Zn(e,t,n){(n!==o&&!Bs(e[t],n)||n===o&&!(t in e))&&or(e,t,n)}function er(e,t,n){var r=e[t];ke.call(e,t)&&Bs(r,n)&&(n!==o||t in e)||or(e,t,n)}function tr(e,t){for(var n=e.length;n--;)if(Bs(e[n][0],t))return n;return-1}function nr(e,t,n,r){return fr(e,(function(e,o,i){t(r,e,n(e),i)})),r}function rr(e,t){return e&&Ro(t,ja(t),e)}function or(e,t,n){"__proto__"==t&&ct?ct(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ir(e,t){for(var n=-1,i=t.length,s=r(i),a=null==e;++n<i;)s[n]=a?o:Ta(e,t[n]);return s}function sr(e,t,n){return e==e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function ar(e,t,n,r,i,s){var a,u=1&t,c=2&t,l=4&t;if(n&&(a=i?n(e,r,i,s):n(e)),a!==o)return a;if(!ta(e))return e;var f=qs(e);if(f){if(a=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&ke.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!u)return Io(e,a)}else{var d=pi(e),p=d==w||d==_;if(Js(e))return So(e,u);if(d==E||d==y||p&&!i){if(a=c||p?{}:yi(e),!u)return c?function(e,t){return Ro(e,di(e),t)}(e,function(e,t){return e&&Ro(t,ka(t),e)}(a,e)):function(e,t){return Ro(e,fi(e),t)}(e,rr(a,e))}else{if(!Ze[d])return i?e:{};a=function(e,t,n){var r,o=e.constructor;switch(t){case x:return Co(e);case m:case v:return new o(+e);case j:return function(e,t){var n=t?Co(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case k:case N:case P:case D:case M:case F:case W:case $:case B:return Eo(e,n);case S:return new o;case C:case I:return new o(e);case O:return function(e){var t=new e.constructor(e.source,de.exec(e));return t.lastIndex=e.lastIndex,t}(e);case T:return new o;case R:return r=e,Mn?Ee(Mn.call(r)):{}}}(e,d,u)}}s||(s=new Yn);var h=s.get(e);if(h)return h;s.set(e,a),aa(e)?e.forEach((function(r){a.add(ar(r,t,n,r,e,s))})):ra(e)&&e.forEach((function(r,o){a.set(o,ar(r,t,n,o,e,s))}));var g=f?o:(l?c?ri:ni:c?ka:ja)(e);return bt(g||e,(function(r,o){g&&(r=e[o=r]),er(a,o,ar(r,t,n,o,e,s))})),a}function ur(e,t,n){var r=n.length;if(null==e)return!r;for(e=Ee(e);r--;){var i=n[r],s=t[i],a=e[i];if(a===o&&!(i in e)||!s(a))return!1}return!0}function cr(e,t,n){if("function"!=typeof e)throw new Te(i);return Li((function(){e.apply(o,n)}),t)}function lr(e,t,n,r){var o=-1,i=Ct,s=!0,a=e.length,u=[],c=t.length;if(!a)return u;n&&(t=At(t,Vt(n))),r?(i=Et,s=!1):t.length>=200&&(i=qt,s=!1,t=new Gn(t));e:for(;++o<a;){var l=e[o],f=null==n?l:n(l);if(l=r||0!==l?l:0,s&&f==f){for(var d=c;d--;)if(t[d]===f)continue e;u.push(l)}else i(t,f,r)||u.push(l)}return u}Wn.templateSettings={escape:J,evaluate:Q,interpolate:K,variable:"",imports:{_:Wn}},Wn.prototype=Bn.prototype,Wn.prototype.constructor=Wn,Un.prototype=$n(Bn.prototype),Un.prototype.constructor=Un,Vn.prototype=$n(Bn.prototype),Vn.prototype.constructor=Vn,Hn.prototype.clear=function(){this.__data__=In?In(null):{},this.size=0},Hn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Hn.prototype.get=function(e){var t=this.__data__;if(In){var n=t[e];return n===s?o:n}return ke.call(t,e)?t[e]:o},Hn.prototype.has=function(e){var t=this.__data__;return In?t[e]!==o:ke.call(t,e)},Hn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=In&&t===o?s:t,this},qn.prototype.clear=function(){this.__data__=[],this.size=0},qn.prototype.delete=function(e){var t=this.__data__,n=tr(t,e);return!(n<0||(n==t.length-1?t.pop():rt.call(t,n,1),--this.size,0))},qn.prototype.get=function(e){var t=this.__data__,n=tr(t,e);return n<0?o:t[n][1]},qn.prototype.has=function(e){return tr(this.__data__,e)>-1},qn.prototype.set=function(e,t){var n=this.__data__,r=tr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},zn.prototype.clear=function(){this.size=0,this.__data__={hash:new Hn,map:new(En||qn),string:new Hn}},zn.prototype.delete=function(e){var t=ui(this,e).delete(e);return this.size-=t?1:0,t},zn.prototype.get=function(e){return ui(this,e).get(e)},zn.prototype.has=function(e){return ui(this,e).has(e)},zn.prototype.set=function(e,t){var n=ui(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Gn.prototype.add=Gn.prototype.push=function(e){return this.__data__.set(e,s),this},Gn.prototype.has=function(e){return this.__data__.has(e)},Yn.prototype.clear=function(){this.__data__=new qn,this.size=0},Yn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Yn.prototype.get=function(e){return this.__data__.get(e)},Yn.prototype.has=function(e){return this.__data__.has(e)},Yn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof qn){var r=n.__data__;if(!En||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new zn(r)}return n.set(e,t),this.size=n.size,this};var fr=jo(br),dr=jo(wr,!0);function pr(e,t){var n=!0;return fr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function hr(e,t,n){for(var r=-1,i=e.length;++r<i;){var s=e[r],a=t(s);if(null!=a&&(u===o?a==a&&!ca(a):n(a,u)))var u=a,c=s}return c}function yr(e,t){var n=[];return fr(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function gr(e,t,n,r,o){var i=-1,s=e.length;for(n||(n=gi),o||(o=[]);++i<s;){var a=e[i];t>0&&n(a)?t>1?gr(a,t-1,n,r,o):Ot(o,a):r||(o[o.length]=a)}return o}var mr=ko(),vr=ko(!0);function br(e,t){return e&&mr(e,t,ja)}function wr(e,t){return e&&vr(e,t,ja)}function _r(e,t){return St(t,(function(t){return Xs(e[t])}))}function Sr(e,t){for(var n=0,r=(t=vo(t,e)).length;null!=e&&n<r;)e=e[Fi(t[n++])];return n&&n==r?e:o}function Cr(e,t,n){var r=t(e);return qs(e)?r:Ot(r,n(e))}function Er(e){return null==e?e===o?"[object Undefined]":"[object Null]":at&&at in Ee(e)?function(e){var t=ke.call(e,at),n=e[at];try{e[at]=o;var r=!0}catch(e){}var i=De.call(e);return r&&(t?e[at]=n:delete e[at]),i}(e):function(e){return De.call(e)}(e)}function Ar(e,t){return e>t}function Or(e,t){return null!=e&&ke.call(e,t)}function Tr(e,t){return null!=e&&t in Ee(e)}function Ir(e,t,n){for(var i=n?Et:Ct,s=e[0].length,a=e.length,u=a,c=r(a),l=1/0,f=[];u--;){var d=e[u];u&&t&&(d=At(d,Vt(t))),l=vn(d.length,l),c[u]=!n&&(t||s>=120&&d.length>=120)?new Gn(u&&d):o}d=e[0];var p=-1,h=c[0];e:for(;++p<s&&f.length<l;){var y=d[p],g=t?t(y):y;if(y=n||0!==y?y:0,!(h?qt(h,g):i(f,g,n))){for(u=a;--u;){var m=c[u];if(!(m?qt(m,g):i(e[u],g,n)))continue e}h&&h.push(g),f.push(y)}}return f}function Rr(e,t,n){var r=null==(e=Oi(e,t=vo(t,e)))?e:e[Fi(Ki(t))];return null==r?o:mt(r,e,n)}function Lr(e){return na(e)&&Er(e)==y}function xr(e,t,n,r,i){return e===t||(null==e||null==t||!na(e)&&!na(t)?e!=e&&t!=t:function(e,t,n,r,i,s){var a=qs(e),u=qs(t),c=a?g:pi(e),l=u?g:pi(t),f=(c=c==y?E:c)==E,d=(l=l==y?E:l)==E,p=c==l;if(p&&Js(e)){if(!Js(t))return!1;a=!0,f=!1}if(p&&!f)return s||(s=new Yn),a||la(e)?ei(e,t,n,r,i,s):function(e,t,n,r,o,i,s){switch(n){case j:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case x:return!(e.byteLength!=t.byteLength||!i(new Ue(e),new Ue(t)));case m:case v:case C:return Bs(+e,+t);case b:return e.name==t.name&&e.message==t.message;case O:case I:return e==t+"";case S:var a=Zt;case T:var u=1&r;if(a||(a=nn),e.size!=t.size&&!u)return!1;var c=s.get(e);if(c)return c==t;r|=2,s.set(e,t);var l=ei(a(e),a(t),r,o,i,s);return s.delete(e),l;case R:if(Mn)return Mn.call(e)==Mn.call(t)}return!1}(e,t,c,n,r,i,s);if(!(1&n)){var h=f&&ke.call(e,"__wrapped__"),w=d&&ke.call(t,"__wrapped__");if(h||w){var _=h?e.value():e,A=w?t.value():t;return s||(s=new Yn),i(_,A,n,r,s)}}return!!p&&(s||(s=new Yn),function(e,t,n,r,i,s){var a=1&n,u=ni(e),c=u.length;if(c!=ni(t).length&&!a)return!1;for(var l=c;l--;){var f=u[l];if(!(a?f in t:ke.call(t,f)))return!1}var d=s.get(e),p=s.get(t);if(d&&p)return d==t&&p==e;var h=!0;s.set(e,t),s.set(t,e);for(var y=a;++l<c;){var g=e[f=u[l]],m=t[f];if(r)var v=a?r(m,g,f,t,e,s):r(g,m,f,e,t,s);if(!(v===o?g===m||i(g,m,n,r,s):v)){h=!1;break}y||(y="constructor"==f)}if(h&&!y){var b=e.constructor,w=t.constructor;b==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(h=!1)}return s.delete(e),s.delete(t),h}(e,t,n,r,i,s))}(e,t,n,r,xr,i))}function jr(e,t,n,r){var i=n.length,s=i,a=!r;if(null==e)return!s;for(e=Ee(e);i--;){var u=n[i];if(a&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<s;){var c=(u=n[i])[0],l=e[c],f=u[1];if(a&&u[2]){if(l===o&&!(c in e))return!1}else{var d=new Yn;if(r)var p=r(l,f,c,e,t,d);if(!(p===o?xr(f,l,3,r,d):p))return!1}}return!0}function kr(e){return!(!ta(e)||(t=e,Pe&&Pe in t))&&(Xs(e)?We:ye).test(Wi(e));var t}function Nr(e){return"function"==typeof e?e:null==e?ou:"object"==typeof e?qs(e)?Wr(e[0],e[1]):Fr(e):pu(e)}function Pr(e){if(!Si(e))return gn(e);var t=[];for(var n in Ee(e))ke.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Dr(e,t){return e<t}function Mr(e,t){var n=-1,o=Gs(e)?r(e.length):[];return fr(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}function Fr(e){var t=ci(e);return 1==t.length&&t[0][2]?Ei(t[0][0],t[0][1]):function(n){return n===e||jr(n,e,t)}}function Wr(e,t){return bi(e)&&Ci(t)?Ei(Fi(e),t):function(n){var r=Ta(n,e);return r===o&&r===t?Ia(n,e):xr(t,r,3)}}function $r(e,t,n,r,i){e!==t&&mr(t,(function(s,a){if(i||(i=new Yn),ta(s))!function(e,t,n,r,i,s,a){var u=Ii(e,n),c=Ii(t,n),l=a.get(c);if(l)Zn(e,n,l);else{var f=s?s(u,c,n+"",e,t,a):o,d=f===o;if(d){var p=qs(c),h=!p&&Js(c),y=!p&&!h&&la(c);f=c,p||h||y?qs(u)?f=u:Ys(u)?f=Io(u):h?(d=!1,f=So(c,!0)):y?(d=!1,f=Eo(c,!0)):f=[]:ia(c)||Hs(c)?(f=u,Hs(u)?f=va(u):ta(u)&&!Xs(u)||(f=yi(c))):d=!1}d&&(a.set(c,f),i(f,c,r,s,a),a.delete(c)),Zn(e,n,f)}}(e,t,a,n,$r,r,i);else{var u=r?r(Ii(e,a),s,a+"",e,t,i):o;u===o&&(u=s),Zn(e,a,u)}}),ka)}function Br(e,t){var n=e.length;if(n)return mi(t+=t<0?n:0,n)?e[t]:o}function Ur(e,t,n){t=t.length?At(t,(function(e){return qs(e)?function(t){return Sr(t,1===e.length?e[0]:e)}:e})):[ou];var r=-1;return t=At(t,Vt(ai())),function(e,t){var r=e.length;for(e.sort((function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,s=o.length,a=n.length;++r<s;){var u=Ao(o[r],i[r]);if(u)return r>=a?u:u*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}));r--;)e[r]=e[r].value;return e}(Mr(e,(function(e,n,o){return{criteria:At(t,(function(t){return t(e)})),index:++r,value:e}})))}function Vr(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var s=t[r],a=Sr(e,s);n(a,s)&&Kr(i,vo(s,e),a)}return i}function Hr(e,t,n,r){var o=r?Nt:kt,i=-1,s=t.length,a=e;for(e===t&&(t=Io(t)),n&&(a=At(e,Vt(n)));++i<s;)for(var u=0,c=t[i],l=n?n(c):c;(u=o(a,l,u,r))>-1;)a!==e&&rt.call(a,u,1),rt.call(e,u,1);return e}function qr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;mi(o)?rt.call(e,o,1):co(e,o)}}return e}function zr(e,t){return e+fn(_n()*(t-e+1))}function Gr(e,t){var n="";if(!e||t<1||t>f)return n;do{t%2&&(n+=e),(t=fn(t/2))&&(e+=e)}while(t);return n}function Yr(e,t){return xi(Ai(e,t,ou),e+"")}function Jr(e){return Qn(Ba(e))}function Qr(e,t){var n=Ba(e);return Ni(n,sr(t,0,n.length))}function Kr(e,t,n,r){if(!ta(e))return e;for(var i=-1,s=(t=vo(t,e)).length,a=s-1,u=e;null!=u&&++i<s;){var c=Fi(t[i]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(i!=a){var f=u[c];(l=r?r(f,c,u):o)===o&&(l=ta(f)?f:mi(t[i+1])?[]:{})}er(u,c,l),u=u[c]}return e}var Xr=Rn?function(e,t){return Rn.set(e,t),e}:ou,Zr=ct?function(e,t){return ct(e,"toString",{configurable:!0,enumerable:!1,value:tu(t),writable:!0})}:ou;function eo(e){return Ni(Ba(e))}function to(e,t,n){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var s=r(i);++o<i;)s[o]=e[o+t];return s}function no(e,t){var n;return fr(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function ro(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,s=e[i];null!==s&&!ca(s)&&(n?s<=t:s<t)?r=i+1:o=i}return o}return oo(e,t,ou,n)}function oo(e,t,n,r){var i=0,s=null==e?0:e.length;if(0===s)return 0;for(var a=(t=n(t))!=t,u=null===t,c=ca(t),l=t===o;i<s;){var f=fn((i+s)/2),d=n(e[f]),p=d!==o,h=null===d,y=d==d,g=ca(d);if(a)var m=r||y;else m=l?y&&(r||p):u?y&&p&&(r||!h):c?y&&p&&!h&&(r||!g):!h&&!g&&(r?d<=t:d<t);m?i=f+1:s=f}return vn(s,4294967294)}function io(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var s=e[n],a=t?t(s):s;if(!n||!Bs(a,u)){var u=a;i[o++]=0===s?0:s}}return i}function so(e){return"number"==typeof e?e:ca(e)?d:+e}function ao(e){if("string"==typeof e)return e;if(qs(e))return At(e,ao)+"";if(ca(e))return Fn?Fn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function uo(e,t,n){var r=-1,o=Ct,i=e.length,s=!0,a=[],u=a;if(n)s=!1,o=Et;else if(i>=200){var c=t?null:Yo(e);if(c)return nn(c);s=!1,o=qt,u=new Gn}else u=t?[]:a;e:for(;++r<i;){var l=e[r],f=t?t(l):l;if(l=n||0!==l?l:0,s&&f==f){for(var d=u.length;d--;)if(u[d]===f)continue e;t&&u.push(f),a.push(l)}else o(u,f,n)||(u!==a&&u.push(f),a.push(l))}return a}function co(e,t){return null==(e=Oi(e,t=vo(t,e)))||delete e[Fi(Ki(t))]}function lo(e,t,n,r){return Kr(e,t,n(Sr(e,t)),r)}function fo(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?to(e,r?0:i,r?i+1:o):to(e,r?i+1:0,r?o:i)}function po(e,t){var n=e;return n instanceof Vn&&(n=n.value()),Tt(t,(function(e,t){return t.func.apply(t.thisArg,Ot([e],t.args))}),n)}function ho(e,t,n){var o=e.length;if(o<2)return o?uo(e[0]):[];for(var i=-1,s=r(o);++i<o;)for(var a=e[i],u=-1;++u<o;)u!=i&&(s[i]=lr(s[i]||a,e[u],t,n));return uo(gr(s,1),t,n)}function yo(e,t,n){for(var r=-1,i=e.length,s=t.length,a={};++r<i;){var u=r<s?t[r]:o;n(a,e[r],u)}return a}function go(e){return Ys(e)?e:[]}function mo(e){return"function"==typeof e?e:ou}function vo(e,t){return qs(e)?e:bi(e,t)?[e]:Mi(ba(e))}var bo=Yr;function wo(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:to(e,t,n)}var _o=lt||function(e){return it.clearTimeout(e)};function So(e,t){if(t)return e.slice();var n=e.length,r=Ve?Ve(n):new e.constructor(n);return e.copy(r),r}function Co(e){var t=new e.constructor(e.byteLength);return new Ue(t).set(new Ue(e)),t}function Eo(e,t){var n=t?Co(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ao(e,t){if(e!==t){var n=e!==o,r=null===e,i=e==e,s=ca(e),a=t!==o,u=null===t,c=t==t,l=ca(t);if(!u&&!l&&!s&&e>t||s&&a&&c&&!u&&!l||r&&a&&c||!n&&c||!i)return 1;if(!r&&!s&&!l&&e<t||l&&n&&i&&!r&&!s||u&&n&&i||!a&&i||!c)return-1}return 0}function Oo(e,t,n,o){for(var i=-1,s=e.length,a=n.length,u=-1,c=t.length,l=mn(s-a,0),f=r(c+l),d=!o;++u<c;)f[u]=t[u];for(;++i<a;)(d||i<s)&&(f[n[i]]=e[i]);for(;l--;)f[u++]=e[i++];return f}function To(e,t,n,o){for(var i=-1,s=e.length,a=-1,u=n.length,c=-1,l=t.length,f=mn(s-u,0),d=r(f+l),p=!o;++i<f;)d[i]=e[i];for(var h=i;++c<l;)d[h+c]=t[c];for(;++a<u;)(p||i<s)&&(d[h+n[a]]=e[i++]);return d}function Io(e,t){var n=-1,o=e.length;for(t||(t=r(o));++n<o;)t[n]=e[n];return t}function Ro(e,t,n,r){var i=!n;n||(n={});for(var s=-1,a=t.length;++s<a;){var u=t[s],c=r?r(n[u],e[u],u,n,e):o;c===o&&(c=e[u]),i?or(n,u,c):er(n,u,c)}return n}function Lo(e,t){return function(n,r){var o=qs(n)?vt:nr,i=t?t():{};return o(n,e,ai(r,2),i)}}function xo(e){return Yr((function(t,n){var r=-1,i=n.length,s=i>1?n[i-1]:o,a=i>2?n[2]:o;for(s=e.length>3&&"function"==typeof s?(i--,s):o,a&&vi(n[0],n[1],a)&&(s=i<3?o:s,i=1),t=Ee(t);++r<i;){var u=n[r];u&&e(t,u,r,s)}return t}))}function jo(e,t){return function(n,r){if(null==n)return n;if(!Gs(n))return e(n,r);for(var o=n.length,i=t?o:-1,s=Ee(n);(t?i--:++i<o)&&!1!==r(s[i],i,s););return n}}function ko(e){return function(t,n,r){for(var o=-1,i=Ee(t),s=r(t),a=s.length;a--;){var u=s[e?a:++o];if(!1===n(i[u],u,i))break}return t}}function No(e){return function(t){var n=Xt(t=ba(t))?sn(t):o,r=n?n[0]:t.charAt(0),i=n?wo(n,1).join(""):t.slice(1);return r[e]()+i}}function Po(e){return function(t){return Tt(Xa(Ha(t).replace(He,"")),e,"")}}function Do(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=$n(e.prototype),r=e.apply(n,t);return ta(r)?r:n}}function Mo(e){return function(t,n,r){var i=Ee(t);if(!Gs(t)){var s=ai(n,3);t=ja(t),n=function(e){return s(i[e],e,i)}}var a=e(t,n,r);return a>-1?i[s?t[a]:a]:o}}function Fo(e){return ti((function(t){var n=t.length,r=n,s=Un.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new Te(i);if(s&&!u&&"wrapper"==ii(a))var u=new Un([],!0)}for(r=u?r:n;++r<n;){var c=ii(a=t[r]),l="wrapper"==c?oi(a):o;u=l&&wi(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?u[ii(l[0])].apply(u,l[3]):1==a.length&&wi(a)?u[c]():u.thru(a)}return function(){var e=arguments,r=e[0];if(u&&1==e.length&&qs(r))return u.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}}))}function Wo(e,t,n,i,s,a,u,l,f,d){var p=t&c,h=1&t,y=2&t,g=24&t,m=512&t,v=y?o:Do(e);return function o(){for(var c=arguments.length,b=r(c),w=c;w--;)b[w]=arguments[w];if(g)var _=si(o),S=Yt(b,_);if(i&&(b=Oo(b,i,s,g)),a&&(b=To(b,a,u,g)),c-=S,g&&c<d){var C=tn(b,_);return zo(e,t,Wo,o.placeholder,n,b,C,l,f,d-c)}var E=h?n:this,A=y?E[e]:e;return c=b.length,l?b=Ti(b,l):m&&c>1&&b.reverse(),p&&f<c&&(b.length=f),this&&this!==it&&this instanceof o&&(A=v||Do(A)),A.apply(E,b)}}function $o(e,t){return function(n,r){return function(e,t,n,r){return br(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function Bo(e,t){return function(n,r){var i;if(n===o&&r===o)return t;if(n!==o&&(i=n),r!==o){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=ao(n),r=ao(r)):(n=so(n),r=so(r)),i=e(n,r)}return i}}function Uo(e){return ti((function(t){return t=At(t,Vt(ai())),Yr((function(n){var r=this;return e(t,(function(e){return mt(e,r,n)}))}))}))}function Vo(e,t){var n=(t=t===o?" ":ao(t)).length;if(n<2)return n?Gr(t,e):t;var r=Gr(t,ln(e/on(t)));return Xt(t)?wo(sn(r),0,e).join(""):r.slice(0,e)}function Ho(e){return function(t,n,i){return i&&"number"!=typeof i&&vi(t,n,i)&&(n=i=o),t=ha(t),n===o?(n=t,t=0):n=ha(n),function(e,t,n,o){for(var i=-1,s=mn(ln((t-e)/(n||1)),0),a=r(s);s--;)a[o?s:++i]=e,e+=n;return a}(t,n,i=i===o?t<n?1:-1:ha(i),e)}}function qo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ma(t),n=ma(n)),e(t,n)}}function zo(e,t,n,r,i,s,a,c,l,f){var d=8&t;t|=d?u:64,4&(t&=~(d?64:u))||(t&=-4);var p=[e,t,i,d?s:o,d?a:o,d?o:s,d?o:a,c,l,f],h=n.apply(o,p);return wi(e)&&Ri(h,p),h.placeholder=r,ji(h,e,t)}function Go(e){var t=Ce[e];return function(e,n){if(e=ma(e),(n=null==n?0:vn(ya(n),292))&&hn(e)){var r=(ba(e)+"e").split("e");return+((r=(ba(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Yo=On&&1/nn(new On([,-0]))[1]==l?function(e){return new On(e)}:cu;function Jo(e){return function(t){var n=pi(t);return n==S?Zt(t):n==T?rn(t):function(e,t){return At(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Qo(e,t,n,s,l,f,d,p){var h=2&t;if(!h&&"function"!=typeof e)throw new Te(i);var y=s?s.length:0;if(y||(t&=-97,s=l=o),d=d===o?d:mn(ya(d),0),p=p===o?p:ya(p),y-=l?l.length:0,64&t){var g=s,m=l;s=l=o}var v=h?o:oi(e),b=[e,t,n,s,l,g,m,f,d,p];if(v&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,s=r==c&&8==n||r==c&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!s)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var u=t[3];if(u){var l=e[3];e[3]=l?Oo(l,u,t[4]):u,e[4]=l?tn(e[3],a):t[4]}(u=t[5])&&(l=e[5],e[5]=l?To(l,u,t[6]):u,e[6]=l?tn(e[5],a):t[6]),(u=t[7])&&(e[7]=u),r&c&&(e[8]=null==e[8]?t[8]:vn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(b,v),e=b[0],t=b[1],n=b[2],s=b[3],l=b[4],!(p=b[9]=b[9]===o?h?0:e.length:mn(b[9]-y,0))&&24&t&&(t&=-25),t&&1!=t)w=8==t||16==t?function(e,t,n){var i=Do(e);return function s(){for(var a=arguments.length,u=r(a),c=a,l=si(s);c--;)u[c]=arguments[c];var f=a<3&&u[0]!==l&&u[a-1]!==l?[]:tn(u,l);return(a-=f.length)<n?zo(e,t,Wo,s.placeholder,o,u,f,o,o,n-a):mt(this&&this!==it&&this instanceof s?i:e,this,u)}}(e,t,p):t!=u&&33!=t||l.length?Wo.apply(o,b):function(e,t,n,o){var i=1&t,s=Do(e);return function t(){for(var a=-1,u=arguments.length,c=-1,l=o.length,f=r(l+u),d=this&&this!==it&&this instanceof t?s:e;++c<l;)f[c]=o[c];for(;u--;)f[c++]=arguments[++a];return mt(d,i?n:this,f)}}(e,t,n,s);else var w=function(e,t,n){var r=1&t,o=Do(e);return function t(){return(this&&this!==it&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,n);return ji((v?Xr:Ri)(w,b),e,t)}function Ko(e,t,n,r){return e===o||Bs(e,Le[n])&&!ke.call(r,n)?t:e}function Xo(e,t,n,r,i,s){return ta(e)&&ta(t)&&(s.set(t,e),$r(e,t,o,Xo,s),s.delete(t)),e}function Zo(e){return ia(e)?o:e}function ei(e,t,n,r,i,s){var a=1&n,u=e.length,c=t.length;if(u!=c&&!(a&&c>u))return!1;var l=s.get(e),f=s.get(t);if(l&&f)return l==t&&f==e;var d=-1,p=!0,h=2&n?new Gn:o;for(s.set(e,t),s.set(t,e);++d<u;){var y=e[d],g=t[d];if(r)var m=a?r(g,y,d,t,e,s):r(y,g,d,e,t,s);if(m!==o){if(m)continue;p=!1;break}if(h){if(!Rt(t,(function(e,t){if(!qt(h,t)&&(y===e||i(y,e,n,r,s)))return h.push(t)}))){p=!1;break}}else if(y!==g&&!i(y,g,n,r,s)){p=!1;break}}return s.delete(e),s.delete(t),p}function ti(e){return xi(Ai(e,o,zi),e+"")}function ni(e){return Cr(e,ja,fi)}function ri(e){return Cr(e,ka,di)}var oi=Rn?function(e){return Rn.get(e)}:cu;function ii(e){for(var t=e.name+"",n=Ln[t],r=ke.call(Ln,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function si(e){return(ke.call(Wn,"placeholder")?Wn:e).placeholder}function ai(){var e=Wn.iteratee||iu;return e=e===iu?Nr:e,arguments.length?e(arguments[0],arguments[1]):e}function ui(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function ci(e){for(var t=ja(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Ci(o)]}return t}function li(e,t){var n=function(e,t){return null==e?o:e[t]}(e,t);return kr(n)?n:o}var fi=dn?function(e){return null==e?[]:(e=Ee(e),St(dn(e),(function(t){return et.call(e,t)})))}:gu,di=dn?function(e){for(var t=[];e;)Ot(t,fi(e)),e=ze(e);return t}:gu,pi=Er;function hi(e,t,n){for(var r=-1,o=(t=vo(t,e)).length,i=!1;++r<o;){var s=Fi(t[r]);if(!(i=null!=e&&n(e,s)))break;e=e[s]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&ea(o)&&mi(s,o)&&(qs(e)||Hs(e))}function yi(e){return"function"!=typeof e.constructor||Si(e)?{}:$n(ze(e))}function gi(e){return qs(e)||Hs(e)||!!(ot&&e&&e[ot])}function mi(e,t){var n=typeof e;return!!(t=null==t?f:t)&&("number"==n||"symbol"!=n&&me.test(e))&&e>-1&&e%1==0&&e<t}function vi(e,t,n){if(!ta(n))return!1;var r=typeof t;return!!("number"==r?Gs(n)&&mi(t,n.length):"string"==r&&t in n)&&Bs(n[t],e)}function bi(e,t){if(qs(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ca(e))||Z.test(e)||!X.test(e)||null!=t&&e in Ee(t)}function wi(e){var t=ii(e),n=Wn[t];if("function"!=typeof n||!(t in Vn.prototype))return!1;if(e===n)return!0;var r=oi(n);return!!r&&e===r[0]}(Cn&&pi(new Cn(new ArrayBuffer(1)))!=j||En&&pi(new En)!=S||An&&pi(An.resolve())!=A||On&&pi(new On)!=T||Tn&&pi(new Tn)!=L)&&(pi=function(e){var t=Er(e),n=t==E?e.constructor:o,r=n?Wi(n):"";if(r)switch(r){case xn:return j;case jn:return S;case kn:return A;case Nn:return T;case Pn:return L}return t});var _i=xe?Xs:mu;function Si(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Le)}function Ci(e){return e==e&&!ta(e)}function Ei(e,t){return function(n){return null!=n&&n[e]===t&&(t!==o||e in Ee(n))}}function Ai(e,t,n){return t=mn(t===o?e.length-1:t,0),function(){for(var o=arguments,i=-1,s=mn(o.length-t,0),a=r(s);++i<s;)a[i]=o[t+i];i=-1;for(var u=r(t+1);++i<t;)u[i]=o[i];return u[t]=n(a),mt(e,this,u)}}function Oi(e,t){return t.length<2?e:Sr(e,to(t,0,-1))}function Ti(e,t){for(var n=e.length,r=vn(t.length,n),i=Io(e);r--;){var s=t[r];e[r]=mi(s,n)?i[s]:o}return e}function Ii(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ri=ki(Xr),Li=Ft||function(e,t){return it.setTimeout(e,t)},xi=ki(Zr);function ji(e,t,n){var r=t+"";return xi(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ie,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return bt(h,(function(n){var r="_."+n[0];t&n[1]&&!Ct(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(se);return t?t[1].split(ae):[]}(r),n)))}function ki(e){var t=0,n=0;return function(){var r=bn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Ni(e,t){var n=-1,r=e.length,i=r-1;for(t=t===o?r:t;++n<t;){var s=zr(n,i),a=e[s];e[s]=e[n],e[n]=a}return e.length=t,e}var Pi,Di,Mi=(Pi=Ps((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,(function(e,n,r,o){t.push(r?o.replace(le,"$1"):n||e)})),t}),(function(e){return 500===Di.size&&Di.clear(),e})),Di=Pi.cache,Pi);function Fi(e){if("string"==typeof e||ca(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Wi(e){if(null!=e){try{return je.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function $i(e){if(e instanceof Vn)return e.clone();var t=new Un(e.__wrapped__,e.__chain__);return t.__actions__=Io(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Bi=Yr((function(e,t){return Ys(e)?lr(e,gr(t,1,Ys,!0)):[]})),Ui=Yr((function(e,t){var n=Ki(t);return Ys(n)&&(n=o),Ys(e)?lr(e,gr(t,1,Ys,!0),ai(n,2)):[]})),Vi=Yr((function(e,t){var n=Ki(t);return Ys(n)&&(n=o),Ys(e)?lr(e,gr(t,1,Ys,!0),o,n):[]}));function Hi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ya(n);return o<0&&(o=mn(r+o,0)),jt(e,ai(t,3),o)}function qi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==o&&(i=ya(n),i=n<0?mn(r+i,0):vn(i,r-1)),jt(e,ai(t,3),i,!0)}function zi(e){return null!=e&&e.length?gr(e,1):[]}function Gi(e){return e&&e.length?e[0]:o}var Yi=Yr((function(e){var t=At(e,go);return t.length&&t[0]===e[0]?Ir(t):[]})),Ji=Yr((function(e){var t=Ki(e),n=At(e,go);return t===Ki(n)?t=o:n.pop(),n.length&&n[0]===e[0]?Ir(n,ai(t,2)):[]})),Qi=Yr((function(e){var t=Ki(e),n=At(e,go);return(t="function"==typeof t?t:o)&&n.pop(),n.length&&n[0]===e[0]?Ir(n,o,t):[]}));function Ki(e){var t=null==e?0:e.length;return t?e[t-1]:o}var Xi=Yr(Zi);function Zi(e,t){return e&&e.length&&t&&t.length?Hr(e,t):e}var es=ti((function(e,t){var n=null==e?0:e.length,r=ir(e,t);return qr(e,At(t,(function(e){return mi(e,n)?+e:e})).sort(Ao)),r}));function ts(e){return null==e?e:Sn.call(e)}var ns=Yr((function(e){return uo(gr(e,1,Ys,!0))})),rs=Yr((function(e){var t=Ki(e);return Ys(t)&&(t=o),uo(gr(e,1,Ys,!0),ai(t,2))})),os=Yr((function(e){var t=Ki(e);return t="function"==typeof t?t:o,uo(gr(e,1,Ys,!0),o,t)}));function is(e){if(!e||!e.length)return[];var t=0;return e=St(e,(function(e){if(Ys(e))return t=mn(e.length,t),!0})),Bt(t,(function(t){return At(e,Mt(t))}))}function ss(e,t){if(!e||!e.length)return[];var n=is(e);return null==t?n:At(n,(function(e){return mt(t,o,e)}))}var as=Yr((function(e,t){return Ys(e)?lr(e,t):[]})),us=Yr((function(e){return ho(St(e,Ys))})),cs=Yr((function(e){var t=Ki(e);return Ys(t)&&(t=o),ho(St(e,Ys),ai(t,2))})),ls=Yr((function(e){var t=Ki(e);return t="function"==typeof t?t:o,ho(St(e,Ys),o,t)})),fs=Yr(is),ds=Yr((function(e){var t=e.length,n=t>1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,ss(e,n)}));function ps(e){var t=Wn(e);return t.__chain__=!0,t}function hs(e,t){return t(e)}var ys=ti((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return ir(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Vn&&mi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:hs,args:[i],thisArg:o}),new Un(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)})),gs=Lo((function(e,t,n){ke.call(e,n)?++e[n]:or(e,n,1)})),ms=Mo(Hi),vs=Mo(qi);function bs(e,t){return(qs(e)?bt:fr)(e,ai(t,3))}function ws(e,t){return(qs(e)?wt:dr)(e,ai(t,3))}var _s=Lo((function(e,t,n){ke.call(e,n)?e[n].push(t):or(e,n,[t])})),Ss=Yr((function(e,t,n){var o=-1,i="function"==typeof t,s=Gs(e)?r(e.length):[];return fr(e,(function(e){s[++o]=i?mt(t,e,n):Rr(e,t,n)})),s})),Cs=Lo((function(e,t,n){or(e,n,t)}));function Es(e,t){return(qs(e)?At:Mr)(e,ai(t,3))}var As=Lo((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),Os=Yr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&vi(e,t[0],t[1])?t=[]:n>2&&vi(t[0],t[1],t[2])&&(t=[t[0]]),Ur(e,gr(t,1),[])})),Ts=Lt||function(){return it.Date.now()};function Is(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Qo(e,c,o,o,o,o,t)}function Rs(e,t){var n;if("function"!=typeof t)throw new Te(i);return e=ya(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var Ls=Yr((function(e,t,n){var r=1;if(n.length){var o=tn(n,si(Ls));r|=u}return Qo(e,r,t,n,o)})),xs=Yr((function(e,t,n){var r=3;if(n.length){var o=tn(n,si(xs));r|=u}return Qo(t,r,e,n,o)}));function js(e,t,n){var r,s,a,u,c,l,f=0,d=!1,p=!1,h=!0;if("function"!=typeof e)throw new Te(i);function y(t){var n=r,i=s;return r=s=o,f=t,u=e.apply(i,n)}function g(e){return f=e,c=Li(v,t),d?y(e):u}function m(e){var n=e-l;return l===o||n>=t||n<0||p&&e-f>=a}function v(){var e=Ts();if(m(e))return b(e);c=Li(v,function(e){var n=t-(e-l);return p?vn(n,a-(e-f)):n}(e))}function b(e){return c=o,h&&r?y(e):(r=s=o,u)}function w(){var e=Ts(),n=m(e);if(r=arguments,s=this,l=e,n){if(c===o)return g(l);if(p)return _o(c),c=Li(v,t),y(l)}return c===o&&(c=Li(v,t)),u}return t=ma(t)||0,ta(n)&&(d=!!n.leading,a=(p="maxWait"in n)?mn(ma(n.maxWait)||0,t):a,h="trailing"in n?!!n.trailing:h),w.cancel=function(){c!==o&&_o(c),f=0,r=l=s=c=o},w.flush=function(){return c===o?u:b(Ts())},w}var ks=Yr((function(e,t){return cr(e,1,t)})),Ns=Yr((function(e,t,n){return cr(e,ma(t)||0,n)}));function Ps(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Te(i);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s)||i,s};return n.cache=new(Ps.Cache||zn),n}function Ds(e){if("function"!=typeof e)throw new Te(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ps.Cache=zn;var Ms=bo((function(e,t){var n=(t=1==t.length&&qs(t[0])?At(t[0],Vt(ai())):At(gr(t,1),Vt(ai()))).length;return Yr((function(r){for(var o=-1,i=vn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return mt(e,this,r)}))})),Fs=Yr((function(e,t){var n=tn(t,si(Fs));return Qo(e,u,o,t,n)})),Ws=Yr((function(e,t){var n=tn(t,si(Ws));return Qo(e,64,o,t,n)})),$s=ti((function(e,t){return Qo(e,256,o,o,o,t)}));function Bs(e,t){return e===t||e!=e&&t!=t}var Us=qo(Ar),Vs=qo((function(e,t){return e>=t})),Hs=Lr(function(){return arguments}())?Lr:function(e){return na(e)&&ke.call(e,"callee")&&!et.call(e,"callee")},qs=r.isArray,zs=ft?Vt(ft):function(e){return na(e)&&Er(e)==x};function Gs(e){return null!=e&&ea(e.length)&&!Xs(e)}function Ys(e){return na(e)&&Gs(e)}var Js=pn||mu,Qs=dt?Vt(dt):function(e){return na(e)&&Er(e)==v};function Ks(e){if(!na(e))return!1;var t=Er(e);return t==b||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ia(e)}function Xs(e){if(!ta(e))return!1;var t=Er(e);return t==w||t==_||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Zs(e){return"number"==typeof e&&e==ya(e)}function ea(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function ta(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function na(e){return null!=e&&"object"==typeof e}var ra=pt?Vt(pt):function(e){return na(e)&&pi(e)==S};function oa(e){return"number"==typeof e||na(e)&&Er(e)==C}function ia(e){if(!na(e)||Er(e)!=E)return!1;var t=ze(e);if(null===t)return!0;var n=ke.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&je.call(n)==Me}var sa=ht?Vt(ht):function(e){return na(e)&&Er(e)==O},aa=yt?Vt(yt):function(e){return na(e)&&pi(e)==T};function ua(e){return"string"==typeof e||!qs(e)&&na(e)&&Er(e)==I}function ca(e){return"symbol"==typeof e||na(e)&&Er(e)==R}var la=gt?Vt(gt):function(e){return na(e)&&ea(e.length)&&!!Xe[Er(e)]},fa=qo(Dr),da=qo((function(e,t){return e<=t}));function pa(e){if(!e)return[];if(Gs(e))return ua(e)?sn(e):Io(e);if(st&&e[st])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[st]());var t=pi(e);return(t==S?Zt:t==T?nn:Ba)(e)}function ha(e){return e?(e=ma(e))===l||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ya(e){var t=ha(e),n=t%1;return t==t?n?t-n:t:0}function ga(e){return e?sr(ya(e),0,p):0}function ma(e){if("number"==typeof e)return e;if(ca(e))return d;if(ta(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ta(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Ut(e);var n=he.test(e);return n||ge.test(e)?nt(e.slice(2),n?2:8):pe.test(e)?d:+e}function va(e){return Ro(e,ka(e))}function ba(e){return null==e?"":ao(e)}var wa=xo((function(e,t){if(Si(t)||Gs(t))Ro(t,ja(t),e);else for(var n in t)ke.call(t,n)&&er(e,n,t[n])})),_a=xo((function(e,t){Ro(t,ka(t),e)})),Sa=xo((function(e,t,n,r){Ro(t,ka(t),e,r)})),Ca=xo((function(e,t,n,r){Ro(t,ja(t),e,r)})),Ea=ti(ir),Aa=Yr((function(e,t){e=Ee(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&vi(t[0],t[1],i)&&(r=1);++n<r;)for(var s=t[n],a=ka(s),u=-1,c=a.length;++u<c;){var l=a[u],f=e[l];(f===o||Bs(f,Le[l])&&!ke.call(e,l))&&(e[l]=s[l])}return e})),Oa=Yr((function(e){return e.push(o,Xo),mt(Pa,o,e)}));function Ta(e,t,n){var r=null==e?o:Sr(e,t);return r===o?n:r}function Ia(e,t){return null!=e&&hi(e,t,Tr)}var Ra=$o((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=De.call(t)),e[t]=n}),tu(ou)),La=$o((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=De.call(t)),ke.call(e,t)?e[t].push(n):e[t]=[n]}),ai),xa=Yr(Rr);function ja(e){return Gs(e)?Jn(e):Pr(e)}function ka(e){return Gs(e)?Jn(e,!0):function(e){if(!ta(e))return function(e){var t=[];if(null!=e)for(var n in Ee(e))t.push(n);return t}(e);var t=Si(e),n=[];for(var r in e)("constructor"!=r||!t&&ke.call(e,r))&&n.push(r);return n}(e)}var Na=xo((function(e,t,n){$r(e,t,n)})),Pa=xo((function(e,t,n,r){$r(e,t,n,r)})),Da=ti((function(e,t){var n={};if(null==e)return n;var r=!1;t=At(t,(function(t){return t=vo(t,e),r||(r=t.length>1),t})),Ro(e,ri(e),n),r&&(n=ar(n,7,Zo));for(var o=t.length;o--;)co(n,t[o]);return n})),Ma=ti((function(e,t){return null==e?{}:function(e,t){return Vr(e,t,(function(t,n){return Ia(e,n)}))}(e,t)}));function Fa(e,t){if(null==e)return{};var n=At(ri(e),(function(e){return[e]}));return t=ai(t),Vr(e,n,(function(e,n){return t(e,n[0])}))}var Wa=Jo(ja),$a=Jo(ka);function Ba(e){return null==e?[]:Ht(e,ja(e))}var Ua=Po((function(e,t,n){return t=t.toLowerCase(),e+(n?Va(t):t)}));function Va(e){return Ka(ba(e).toLowerCase())}function Ha(e){return(e=ba(e))&&e.replace(ve,Jt).replace(qe,"")}var qa=Po((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),za=Po((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ga=No("toLowerCase"),Ya=Po((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Ja=Po((function(e,t,n){return e+(n?" ":"")+Ka(t)})),Qa=Po((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ka=No("toUpperCase");function Xa(e,t,n){return e=ba(e),(t=n?o:t)===o?function(e){return Je.test(e)}(e)?function(e){return e.match(Ge)||[]}(e):function(e){return e.match(ue)||[]}(e):e.match(t)||[]}var Za=Yr((function(e,t){try{return mt(e,o,t)}catch(e){return Ks(e)?e:new _e(e)}})),eu=ti((function(e,t){return bt(t,(function(t){t=Fi(t),or(e,t,Ls(e[t],e))})),e}));function tu(e){return function(){return e}}var nu=Fo(),ru=Fo(!0);function ou(e){return e}function iu(e){return Nr("function"==typeof e?e:ar(e,1))}var su=Yr((function(e,t){return function(n){return Rr(n,e,t)}})),au=Yr((function(e,t){return function(n){return Rr(e,n,t)}}));function uu(e,t,n){var r=ja(t),o=_r(t,r);null!=n||ta(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=_r(t,ja(t)));var i=!(ta(n)&&"chain"in n&&!n.chain),s=Xs(e);return bt(o,(function(n){var r=t[n];e[n]=r,s&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__),o=n.__actions__=Io(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Ot([this.value()],arguments))})})),e}function cu(){}var lu=Uo(At),fu=Uo(_t),du=Uo(Rt);function pu(e){return bi(e)?Mt(Fi(e)):function(e){return function(t){return Sr(t,e)}}(e)}var hu=Ho(),yu=Ho(!0);function gu(){return[]}function mu(){return!1}var vu,bu=Bo((function(e,t){return e+t}),0),wu=Go("ceil"),_u=Bo((function(e,t){return e/t}),1),Su=Go("floor"),Cu=Bo((function(e,t){return e*t}),1),Eu=Go("round"),Au=Bo((function(e,t){return e-t}),0);return Wn.after=function(e,t){if("function"!=typeof t)throw new Te(i);return e=ya(e),function(){if(--e<1)return t.apply(this,arguments)}},Wn.ary=Is,Wn.assign=wa,Wn.assignIn=_a,Wn.assignInWith=Sa,Wn.assignWith=Ca,Wn.at=Ea,Wn.before=Rs,Wn.bind=Ls,Wn.bindAll=eu,Wn.bindKey=xs,Wn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return qs(e)?e:[e]},Wn.chain=ps,Wn.chunk=function(e,t,n){t=(n?vi(e,t,n):t===o)?1:mn(ya(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var s=0,a=0,u=r(ln(i/t));s<i;)u[a++]=to(e,s,s+=t);return u},Wn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},Wn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return Ot(qs(n)?Io(n):[n],gr(t,1))},Wn.cond=function(e){var t=null==e?0:e.length,n=ai();return e=t?At(e,(function(e){if("function"!=typeof e[1])throw new Te(i);return[n(e[0]),e[1]]})):[],Yr((function(n){for(var r=-1;++r<t;){var o=e[r];if(mt(o[0],this,n))return mt(o[1],this,n)}}))},Wn.conforms=function(e){return function(e){var t=ja(e);return function(n){return ur(n,e,t)}}(ar(e,1))},Wn.constant=tu,Wn.countBy=gs,Wn.create=function(e,t){var n=$n(e);return null==t?n:rr(n,t)},Wn.curry=function e(t,n,r){var i=Qo(t,8,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Wn.curryRight=function e(t,n,r){var i=Qo(t,16,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Wn.debounce=js,Wn.defaults=Aa,Wn.defaultsDeep=Oa,Wn.defer=ks,Wn.delay=Ns,Wn.difference=Bi,Wn.differenceBy=Ui,Wn.differenceWith=Vi,Wn.drop=function(e,t,n){var r=null==e?0:e.length;return r?to(e,(t=n||t===o?1:ya(t))<0?0:t,r):[]},Wn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?to(e,0,(t=r-(t=n||t===o?1:ya(t)))<0?0:t):[]},Wn.dropRightWhile=function(e,t){return e&&e.length?fo(e,ai(t,3),!0,!0):[]},Wn.dropWhile=function(e,t){return e&&e.length?fo(e,ai(t,3),!0):[]},Wn.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&vi(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=ya(n))<0&&(n=-n>i?0:i+n),(r=r===o||r>i?i:ya(r))<0&&(r+=i),r=n>r?0:ga(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Wn.filter=function(e,t){return(qs(e)?St:yr)(e,ai(t,3))},Wn.flatMap=function(e,t){return gr(Es(e,t),1)},Wn.flatMapDeep=function(e,t){return gr(Es(e,t),l)},Wn.flatMapDepth=function(e,t,n){return n=n===o?1:ya(n),gr(Es(e,t),n)},Wn.flatten=zi,Wn.flattenDeep=function(e){return null!=e&&e.length?gr(e,l):[]},Wn.flattenDepth=function(e,t){return null!=e&&e.length?gr(e,t=t===o?1:ya(t)):[]},Wn.flip=function(e){return Qo(e,512)},Wn.flow=nu,Wn.flowRight=ru,Wn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},Wn.functions=function(e){return null==e?[]:_r(e,ja(e))},Wn.functionsIn=function(e){return null==e?[]:_r(e,ka(e))},Wn.groupBy=_s,Wn.initial=function(e){return null!=e&&e.length?to(e,0,-1):[]},Wn.intersection=Yi,Wn.intersectionBy=Ji,Wn.intersectionWith=Qi,Wn.invert=Ra,Wn.invertBy=La,Wn.invokeMap=Ss,Wn.iteratee=iu,Wn.keyBy=Cs,Wn.keys=ja,Wn.keysIn=ka,Wn.map=Es,Wn.mapKeys=function(e,t){var n={};return t=ai(t,3),br(e,(function(e,r,o){or(n,t(e,r,o),e)})),n},Wn.mapValues=function(e,t){var n={};return t=ai(t,3),br(e,(function(e,r,o){or(n,r,t(e,r,o))})),n},Wn.matches=function(e){return Fr(ar(e,1))},Wn.matchesProperty=function(e,t){return Wr(e,ar(t,1))},Wn.memoize=Ps,Wn.merge=Na,Wn.mergeWith=Pa,Wn.method=su,Wn.methodOf=au,Wn.mixin=uu,Wn.negate=Ds,Wn.nthArg=function(e){return e=ya(e),Yr((function(t){return Br(t,e)}))},Wn.omit=Da,Wn.omitBy=function(e,t){return Fa(e,Ds(ai(t)))},Wn.once=function(e){return Rs(2,e)},Wn.orderBy=function(e,t,n,r){return null==e?[]:(qs(t)||(t=null==t?[]:[t]),qs(n=r?o:n)||(n=null==n?[]:[n]),Ur(e,t,n))},Wn.over=lu,Wn.overArgs=Ms,Wn.overEvery=fu,Wn.overSome=du,Wn.partial=Fs,Wn.partialRight=Ws,Wn.partition=As,Wn.pick=Ma,Wn.pickBy=Fa,Wn.property=pu,Wn.propertyOf=function(e){return function(t){return null==e?o:Sr(e,t)}},Wn.pull=Xi,Wn.pullAll=Zi,Wn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Hr(e,t,ai(n,2)):e},Wn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Hr(e,t,o,n):e},Wn.pullAt=es,Wn.range=hu,Wn.rangeRight=yu,Wn.rearg=$s,Wn.reject=function(e,t){return(qs(e)?St:yr)(e,Ds(ai(t,3)))},Wn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=ai(t,3);++r<i;){var s=e[r];t(s,r,e)&&(n.push(s),o.push(r))}return qr(e,o),n},Wn.rest=function(e,t){if("function"!=typeof e)throw new Te(i);return Yr(e,t=t===o?t:ya(t))},Wn.reverse=ts,Wn.sampleSize=function(e,t,n){return t=(n?vi(e,t,n):t===o)?1:ya(t),(qs(e)?Kn:Qr)(e,t)},Wn.set=function(e,t,n){return null==e?e:Kr(e,t,n)},Wn.setWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:Kr(e,t,n,r)},Wn.shuffle=function(e){return(qs(e)?Xn:eo)(e)},Wn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&vi(e,t,n)?(t=0,n=r):(t=null==t?0:ya(t),n=n===o?r:ya(n)),to(e,t,n)):[]},Wn.sortBy=Os,Wn.sortedUniq=function(e){return e&&e.length?io(e):[]},Wn.sortedUniqBy=function(e,t){return e&&e.length?io(e,ai(t,2)):[]},Wn.split=function(e,t,n){return n&&"number"!=typeof n&&vi(e,t,n)&&(t=n=o),(n=n===o?p:n>>>0)?(e=ba(e))&&("string"==typeof t||null!=t&&!sa(t))&&!(t=ao(t))&&Xt(e)?wo(sn(e),0,n):e.split(t,n):[]},Wn.spread=function(e,t){if("function"!=typeof e)throw new Te(i);return t=null==t?0:mn(ya(t),0),Yr((function(n){var r=n[t],o=wo(n,0,t);return r&&Ot(o,r),mt(e,this,o)}))},Wn.tail=function(e){var t=null==e?0:e.length;return t?to(e,1,t):[]},Wn.take=function(e,t,n){return e&&e.length?to(e,0,(t=n||t===o?1:ya(t))<0?0:t):[]},Wn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?to(e,(t=r-(t=n||t===o?1:ya(t)))<0?0:t,r):[]},Wn.takeRightWhile=function(e,t){return e&&e.length?fo(e,ai(t,3),!1,!0):[]},Wn.takeWhile=function(e,t){return e&&e.length?fo(e,ai(t,3)):[]},Wn.tap=function(e,t){return t(e),e},Wn.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new Te(i);return ta(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),js(e,t,{leading:r,maxWait:t,trailing:o})},Wn.thru=hs,Wn.toArray=pa,Wn.toPairs=Wa,Wn.toPairsIn=$a,Wn.toPath=function(e){return qs(e)?At(e,Fi):ca(e)?[e]:Io(Mi(ba(e)))},Wn.toPlainObject=va,Wn.transform=function(e,t,n){var r=qs(e),o=r||Js(e)||la(e);if(t=ai(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:ta(e)&&Xs(i)?$n(ze(e)):{}}return(o?bt:br)(e,(function(e,r,o){return t(n,e,r,o)})),n},Wn.unary=function(e){return Is(e,1)},Wn.union=ns,Wn.unionBy=rs,Wn.unionWith=os,Wn.uniq=function(e){return e&&e.length?uo(e):[]},Wn.uniqBy=function(e,t){return e&&e.length?uo(e,ai(t,2)):[]},Wn.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?uo(e,o,t):[]},Wn.unset=function(e,t){return null==e||co(e,t)},Wn.unzip=is,Wn.unzipWith=ss,Wn.update=function(e,t,n){return null==e?e:lo(e,t,mo(n))},Wn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:lo(e,t,mo(n),r)},Wn.values=Ba,Wn.valuesIn=function(e){return null==e?[]:Ht(e,ka(e))},Wn.without=as,Wn.words=Xa,Wn.wrap=function(e,t){return Fs(mo(t),e)},Wn.xor=us,Wn.xorBy=cs,Wn.xorWith=ls,Wn.zip=fs,Wn.zipObject=function(e,t){return yo(e||[],t||[],er)},Wn.zipObjectDeep=function(e,t){return yo(e||[],t||[],Kr)},Wn.zipWith=ds,Wn.entries=Wa,Wn.entriesIn=$a,Wn.extend=_a,Wn.extendWith=Sa,uu(Wn,Wn),Wn.add=bu,Wn.attempt=Za,Wn.camelCase=Ua,Wn.capitalize=Va,Wn.ceil=wu,Wn.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=ma(n))==n?n:0),t!==o&&(t=(t=ma(t))==t?t:0),sr(ma(e),t,n)},Wn.clone=function(e){return ar(e,4)},Wn.cloneDeep=function(e){return ar(e,5)},Wn.cloneDeepWith=function(e,t){return ar(e,5,t="function"==typeof t?t:o)},Wn.cloneWith=function(e,t){return ar(e,4,t="function"==typeof t?t:o)},Wn.conformsTo=function(e,t){return null==t||ur(e,t,ja(t))},Wn.deburr=Ha,Wn.defaultTo=function(e,t){return null==e||e!=e?t:e},Wn.divide=_u,Wn.endsWith=function(e,t,n){e=ba(e),t=ao(t);var r=e.length,i=n=n===o?r:sr(ya(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Wn.eq=Bs,Wn.escape=function(e){return(e=ba(e))&&Y.test(e)?e.replace(z,Qt):e},Wn.escapeRegExp=function(e){return(e=ba(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Wn.every=function(e,t,n){var r=qs(e)?_t:pr;return n&&vi(e,t,n)&&(t=o),r(e,ai(t,3))},Wn.find=ms,Wn.findIndex=Hi,Wn.findKey=function(e,t){return xt(e,ai(t,3),br)},Wn.findLast=vs,Wn.findLastIndex=qi,Wn.findLastKey=function(e,t){return xt(e,ai(t,3),wr)},Wn.floor=Su,Wn.forEach=bs,Wn.forEachRight=ws,Wn.forIn=function(e,t){return null==e?e:mr(e,ai(t,3),ka)},Wn.forInRight=function(e,t){return null==e?e:vr(e,ai(t,3),ka)},Wn.forOwn=function(e,t){return e&&br(e,ai(t,3))},Wn.forOwnRight=function(e,t){return e&&wr(e,ai(t,3))},Wn.get=Ta,Wn.gt=Us,Wn.gte=Vs,Wn.has=function(e,t){return null!=e&&hi(e,t,Or)},Wn.hasIn=Ia,Wn.head=Gi,Wn.identity=ou,Wn.includes=function(e,t,n,r){e=Gs(e)?e:Ba(e),n=n&&!r?ya(n):0;var o=e.length;return n<0&&(n=mn(o+n,0)),ua(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&kt(e,t,n)>-1},Wn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ya(n);return o<0&&(o=mn(r+o,0)),kt(e,t,o)},Wn.inRange=function(e,t,n){return t=ha(t),n===o?(n=t,t=0):n=ha(n),function(e,t,n){return e>=vn(t,n)&&e<mn(t,n)}(e=ma(e),t,n)},Wn.invoke=xa,Wn.isArguments=Hs,Wn.isArray=qs,Wn.isArrayBuffer=zs,Wn.isArrayLike=Gs,Wn.isArrayLikeObject=Ys,Wn.isBoolean=function(e){return!0===e||!1===e||na(e)&&Er(e)==m},Wn.isBuffer=Js,Wn.isDate=Qs,Wn.isElement=function(e){return na(e)&&1===e.nodeType&&!ia(e)},Wn.isEmpty=function(e){if(null==e)return!0;if(Gs(e)&&(qs(e)||"string"==typeof e||"function"==typeof e.splice||Js(e)||la(e)||Hs(e)))return!e.length;var t=pi(e);if(t==S||t==T)return!e.size;if(Si(e))return!Pr(e).length;for(var n in e)if(ke.call(e,n))return!1;return!0},Wn.isEqual=function(e,t){return xr(e,t)},Wn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:o)?n(e,t):o;return r===o?xr(e,t,o,n):!!r},Wn.isError=Ks,Wn.isFinite=function(e){return"number"==typeof e&&hn(e)},Wn.isFunction=Xs,Wn.isInteger=Zs,Wn.isLength=ea,Wn.isMap=ra,Wn.isMatch=function(e,t){return e===t||jr(e,t,ci(t))},Wn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:o,jr(e,t,ci(t),n)},Wn.isNaN=function(e){return oa(e)&&e!=+e},Wn.isNative=function(e){if(_i(e))throw new _e("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return kr(e)},Wn.isNil=function(e){return null==e},Wn.isNull=function(e){return null===e},Wn.isNumber=oa,Wn.isObject=ta,Wn.isObjectLike=na,Wn.isPlainObject=ia,Wn.isRegExp=sa,Wn.isSafeInteger=function(e){return Zs(e)&&e>=-9007199254740991&&e<=f},Wn.isSet=aa,Wn.isString=ua,Wn.isSymbol=ca,Wn.isTypedArray=la,Wn.isUndefined=function(e){return e===o},Wn.isWeakMap=function(e){return na(e)&&pi(e)==L},Wn.isWeakSet=function(e){return na(e)&&"[object WeakSet]"==Er(e)},Wn.join=function(e,t){return null==e?"":yn.call(e,t)},Wn.kebabCase=qa,Wn.last=Ki,Wn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=ya(n))<0?mn(r+i,0):vn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):jt(e,Pt,i,!0)},Wn.lowerCase=za,Wn.lowerFirst=Ga,Wn.lt=fa,Wn.lte=da,Wn.max=function(e){return e&&e.length?hr(e,ou,Ar):o},Wn.maxBy=function(e,t){return e&&e.length?hr(e,ai(t,2),Ar):o},Wn.mean=function(e){return Dt(e,ou)},Wn.meanBy=function(e,t){return Dt(e,ai(t,2))},Wn.min=function(e){return e&&e.length?hr(e,ou,Dr):o},Wn.minBy=function(e,t){return e&&e.length?hr(e,ai(t,2),Dr):o},Wn.stubArray=gu,Wn.stubFalse=mu,Wn.stubObject=function(){return{}},Wn.stubString=function(){return""},Wn.stubTrue=function(){return!0},Wn.multiply=Cu,Wn.nth=function(e,t){return e&&e.length?Br(e,ya(t)):o},Wn.noConflict=function(){return it._===this&&(it._=Fe),this},Wn.noop=cu,Wn.now=Ts,Wn.pad=function(e,t,n){e=ba(e);var r=(t=ya(t))?on(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Vo(fn(o),n)+e+Vo(ln(o),n)},Wn.padEnd=function(e,t,n){e=ba(e);var r=(t=ya(t))?on(e):0;return t&&r<t?e+Vo(t-r,n):e},Wn.padStart=function(e,t,n){e=ba(e);var r=(t=ya(t))?on(e):0;return t&&r<t?Vo(t-r,n)+e:e},Wn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),wn(ba(e).replace(re,""),t||0)},Wn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&vi(e,t,n)&&(t=n=o),n===o&&("boolean"==typeof t?(n=t,t=o):"boolean"==typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=ha(e),t===o?(t=e,e=0):t=ha(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=_n();return vn(e+i*(t-e+tt("1e-"+((i+"").length-1))),t)}return zr(e,t)},Wn.reduce=function(e,t,n){var r=qs(e)?Tt:Wt,o=arguments.length<3;return r(e,ai(t,4),n,o,fr)},Wn.reduceRight=function(e,t,n){var r=qs(e)?It:Wt,o=arguments.length<3;return r(e,ai(t,4),n,o,dr)},Wn.repeat=function(e,t,n){return t=(n?vi(e,t,n):t===o)?1:ya(t),Gr(ba(e),t)},Wn.replace=function(){var e=arguments,t=ba(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Wn.result=function(e,t,n){var r=-1,i=(t=vo(t,e)).length;for(i||(i=1,e=o);++r<i;){var s=null==e?o:e[Fi(t[r])];s===o&&(r=i,s=n),e=Xs(s)?s.call(e):s}return e},Wn.round=Eu,Wn.runInContext=e,Wn.sample=function(e){return(qs(e)?Qn:Jr)(e)},Wn.size=function(e){if(null==e)return 0;if(Gs(e))return ua(e)?on(e):e.length;var t=pi(e);return t==S||t==T?e.size:Pr(e).length},Wn.snakeCase=Ya,Wn.some=function(e,t,n){var r=qs(e)?Rt:no;return n&&vi(e,t,n)&&(t=o),r(e,ai(t,3))},Wn.sortedIndex=function(e,t){return ro(e,t)},Wn.sortedIndexBy=function(e,t,n){return oo(e,t,ai(n,2))},Wn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ro(e,t);if(r<n&&Bs(e[r],t))return r}return-1},Wn.sortedLastIndex=function(e,t){return ro(e,t,!0)},Wn.sortedLastIndexBy=function(e,t,n){return oo(e,t,ai(n,2),!0)},Wn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=ro(e,t,!0)-1;if(Bs(e[n],t))return n}return-1},Wn.startCase=Ja,Wn.startsWith=function(e,t,n){return e=ba(e),n=null==n?0:sr(ya(n),0,e.length),t=ao(t),e.slice(n,n+t.length)==t},Wn.subtract=Au,Wn.sum=function(e){return e&&e.length?$t(e,ou):0},Wn.sumBy=function(e,t){return e&&e.length?$t(e,ai(t,2)):0},Wn.template=function(e,t,n){var r=Wn.templateSettings;n&&vi(e,t,n)&&(t=o),e=ba(e),t=Sa({},t,r,Ko);var i,s,a=Sa({},t.imports,r.imports,Ko),u=ja(a),c=Ht(a,u),l=0,f=t.interpolate||be,d="__p += '",p=Ae((t.escape||be).source+"|"+f.source+"|"+(f===K?fe:be).source+"|"+(t.evaluate||be).source+"|$","g"),h="//# sourceURL="+(ke.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ke+"]")+"\n";e.replace(p,(function(t,n,r,o,a,u){return r||(r=o),d+=e.slice(l,u).replace(we,Kt),n&&(i=!0,d+="' +\n__e("+n+") +\n'"),a&&(s=!0,d+="';\n"+a+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=u+t.length,t})),d+="';\n";var y=ke.call(t,"variable")&&t.variable;if(y){if(ce.test(y))throw new _e("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(s?d.replace(U,""):d).replace(V,"$1").replace(H,"$1;"),d="function("+(y||"obj")+") {\n"+(y?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var g=Za((function(){return Se(u,h+"return "+d).apply(o,c)}));if(g.source=d,Ks(g))throw g;return g},Wn.times=function(e,t){if((e=ya(e))<1||e>f)return[];var n=p,r=vn(e,p);t=ai(t),e-=p;for(var o=Bt(r,t);++n<e;)t(n);return o},Wn.toFinite=ha,Wn.toInteger=ya,Wn.toLength=ga,Wn.toLower=function(e){return ba(e).toLowerCase()},Wn.toNumber=ma,Wn.toSafeInteger=function(e){return e?sr(ya(e),-9007199254740991,f):0===e?e:0},Wn.toString=ba,Wn.toUpper=function(e){return ba(e).toUpperCase()},Wn.trim=function(e,t,n){if((e=ba(e))&&(n||t===o))return Ut(e);if(!e||!(t=ao(t)))return e;var r=sn(e),i=sn(t);return wo(r,zt(r,i),Gt(r,i)+1).join("")},Wn.trimEnd=function(e,t,n){if((e=ba(e))&&(n||t===o))return e.slice(0,an(e)+1);if(!e||!(t=ao(t)))return e;var r=sn(e);return wo(r,0,Gt(r,sn(t))+1).join("")},Wn.trimStart=function(e,t,n){if((e=ba(e))&&(n||t===o))return e.replace(re,"");if(!e||!(t=ao(t)))return e;var r=sn(e);return wo(r,zt(r,sn(t))).join("")},Wn.truncate=function(e,t){var n=30,r="...";if(ta(t)){var i="separator"in t?t.separator:i;n="length"in t?ya(t.length):n,r="omission"in t?ao(t.omission):r}var s=(e=ba(e)).length;if(Xt(e)){var a=sn(e);s=a.length}if(n>=s)return e;var u=n-on(r);if(u<1)return r;var c=a?wo(a,0,u).join(""):e.slice(0,u);if(i===o)return c+r;if(a&&(u+=c.length-u),sa(i)){if(e.slice(u).search(i)){var l,f=c;for(i.global||(i=Ae(i.source,ba(de.exec(i))+"g")),i.lastIndex=0;l=i.exec(f);)var d=l.index;c=c.slice(0,d===o?u:d)}}else if(e.indexOf(ao(i),u)!=u){var p=c.lastIndexOf(i);p>-1&&(c=c.slice(0,p))}return c+r},Wn.unescape=function(e){return(e=ba(e))&&G.test(e)?e.replace(q,un):e},Wn.uniqueId=function(e){var t=++Ne;return ba(e)+t},Wn.upperCase=Qa,Wn.upperFirst=Ka,Wn.each=bs,Wn.eachRight=ws,Wn.first=Gi,uu(Wn,(vu={},br(Wn,(function(e,t){ke.call(Wn.prototype,t)||(vu[t]=e)})),vu),{chain:!1}),Wn.VERSION="4.17.21",bt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Wn[e].placeholder=Wn})),bt(["drop","take"],(function(e,t){Vn.prototype[e]=function(n){n=n===o?1:mn(ya(n),0);var r=this.__filtered__&&!t?new Vn(this):this.clone();return r.__filtered__?r.__takeCount__=vn(n,r.__takeCount__):r.__views__.push({size:vn(n,p),type:e+(r.__dir__<0?"Right":"")}),r},Vn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),bt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Vn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ai(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),bt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Vn.prototype[e]=function(){return this[n](1).value()[0]}})),bt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Vn.prototype[e]=function(){return this.__filtered__?new Vn(this):this[n](1)}})),Vn.prototype.compact=function(){return this.filter(ou)},Vn.prototype.find=function(e){return this.filter(e).head()},Vn.prototype.findLast=function(e){return this.reverse().find(e)},Vn.prototype.invokeMap=Yr((function(e,t){return"function"==typeof e?new Vn(this):this.map((function(n){return Rr(n,e,t)}))})),Vn.prototype.reject=function(e){return this.filter(Ds(ai(e)))},Vn.prototype.slice=function(e,t){e=ya(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Vn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=ya(t))<0?n.dropRight(-t):n.take(t-e)),n)},Vn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Vn.prototype.toArray=function(){return this.take(p)},br(Vn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Wn[r?"take"+("last"==t?"Right":""):t],s=r||/^find/.test(t);i&&(Wn.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,u=t instanceof Vn,c=a[0],l=u||qs(t),f=function(e){var t=i.apply(Wn,Ot([e],a));return r&&d?t[0]:t};l&&n&&"function"==typeof c&&1!=c.length&&(u=l=!1);var d=this.__chain__,p=!!this.__actions__.length,h=s&&!d,y=u&&!p;if(!s&&l){t=y?t:new Vn(this);var g=e.apply(t,a);return g.__actions__.push({func:hs,args:[f],thisArg:o}),new Un(g,d)}return h&&y?e.apply(this,a):(g=this.thru(f),h?r?g.value()[0]:g.value():g)})})),bt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ie[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Wn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(qs(o)?o:[],e)}return this[n]((function(n){return t.apply(qs(n)?n:[],e)}))}})),br(Vn.prototype,(function(e,t){var n=Wn[t];if(n){var r=n.name+"";ke.call(Ln,r)||(Ln[r]=[]),Ln[r].push({name:t,func:n})}})),Ln[Wo(o,2).name]=[{name:"wrapper",func:o}],Vn.prototype.clone=function(){var e=new Vn(this.__wrapped__);return e.__actions__=Io(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Io(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Io(this.__views__),e},Vn.prototype.reverse=function(){if(this.__filtered__){var e=new Vn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Vn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=qs(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],s=i.size;switch(i.type){case"drop":e+=s;break;case"dropRight":t-=s;break;case"take":t=vn(t,e+s);break;case"takeRight":e=mn(e,t-s)}}return{start:e,end:t}}(0,o,this.__views__),s=i.start,a=i.end,u=a-s,c=r?a:s-1,l=this.__iteratees__,f=l.length,d=0,p=vn(u,this.__takeCount__);if(!n||!r&&o==u&&p==u)return po(e,this.__actions__);var h=[];e:for(;u--&&d<p;){for(var y=-1,g=e[c+=t];++y<f;){var m=l[y],v=m.iteratee,b=m.type,w=v(g);if(2==b)g=w;else if(!w){if(1==b)continue e;break e}}h[d++]=g}return h},Wn.prototype.at=ys,Wn.prototype.chain=function(){return ps(this)},Wn.prototype.commit=function(){return new Un(this.value(),this.__chain__)},Wn.prototype.next=function(){this.__values__===o&&(this.__values__=pa(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},Wn.prototype.plant=function(e){for(var t,n=this;n instanceof Bn;){var r=$i(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},Wn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Vn){var t=e;return this.__actions__.length&&(t=new Vn(this)),(t=t.reverse()).__actions__.push({func:hs,args:[ts],thisArg:o}),new Un(t,this.__chain__)}return this.thru(ts)},Wn.prototype.toJSON=Wn.prototype.valueOf=Wn.prototype.value=function(){return po(this.__wrapped__,this.__actions__)},Wn.prototype.first=Wn.prototype.head,st&&(Wn.prototype[st]=function(){return this}),Wn}();it._=cn,(r=function(){return cn}.call(t,n,t,e))===o||(e.exports=r)}.call(this)},54883:(e,t,n)=>{var r=n(25835);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s)||i,s};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},98253:(e,t,n)=>{var r=n(158);e.exports=function(){return r.Date.now()}},75892:(e,t,n)=>{var r=n(11241),o=n(39169)((function(e,t){return null==e?{}:r(e,t)}));e.exports=o},59174:e=>{e.exports=function(){return[]}},30647:e=>{e.exports=function(){return!1}},38172:(e,t,n)=>{var r=n(76897),o=n(23619);e.exports=function(e,t,n){var i=!0,s=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,s="trailing"in n?!!n.trailing:s),r(e,t,{leading:i,maxWait:t,trailing:s})}},95053:(e,t,n)=>{var r=n(12383),o=n(23619),i=n(81878),s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=a.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):s.test(e)?NaN:+e}},33270:(e,t,n)=>{var r=n(80430);e.exports=function(e){return null==e?"":r(e)}},88021:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n(33034);class o extends Error{constructor(e){super(e),this.name="TimeoutError"}}class i{constructor(){Object.defineProperty(this,"_queue",{enumerable:!0,configurable:!0,writable:!0,value:[]})}enqueue(e,t){var n;const r={priority:(t={priority:0,...t}).priority,run:e};if(this.size&&(null===(n=this._queue[this.size-1])||void 0===n?void 0:n.priority)>=t.priority)return void this._queue.push(r);const o=function(e,t,n){let r=0,o=e.length;for(;o>0;){const n=Math.trunc(o/2);let s=r+n;i=e[s],t.priority-i.priority<=0?(r=++s,o-=n+1):o=n}var i;return r}(this._queue,r);this._queue.splice(o,0,r)}dequeue(){const e=this._queue.shift();return null==e?void 0:e.run}filter(e){return this._queue.filter((t=>t.priority===e.priority)).map((e=>e.run))}get size(){return this._queue.length}}const s=()=>{},a=new o;class u extends r{constructor(e){var t,n,r,o;if(super(),Object.defineProperty(this,"_carryoverConcurrencyCount",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_isIntervalIgnored",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_intervalCount",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_intervalCap",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_interval",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_intervalEnd",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_intervalId",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_timeoutId",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_queue",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_queueClass",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_pendingCount",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_concurrency",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_isPaused",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_resolveEmpty",{enumerable:!0,configurable:!0,writable:!0,value:s}),Object.defineProperty(this,"_resolveIdle",{enumerable:!0,configurable:!0,writable:!0,value:s}),Object.defineProperty(this,"_timeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_throwOnTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),!("number"==typeof(e={carryoverConcurrencyCount:!1,intervalCap:Number.POSITIVE_INFINITY,interval:0,concurrency:Number.POSITIVE_INFINITY,autoStart:!0,queueClass:i,...e}).intervalCap&&e.intervalCap>=1))throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${null!==(n=null===(t=e.intervalCap)||void 0===t?void 0:t.toString())&&void 0!==n?n:""}\` (${typeof e.intervalCap})`);if(void 0===e.interval||!(Number.isFinite(e.interval)&&e.interval>=0))throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${null!==(o=null===(r=e.interval)||void 0===r?void 0:r.toString())&&void 0!==o?o:""}\` (${typeof e.interval})`);this._carryoverConcurrencyCount=e.carryoverConcurrencyCount,this._isIntervalIgnored=e.intervalCap===Number.POSITIVE_INFINITY||0===e.interval,this._intervalCap=e.intervalCap,this._interval=e.interval,this._queue=new e.queueClass,this._queueClass=e.queueClass,this.concurrency=e.concurrency,this._timeout=e.timeout,this._throwOnTimeout=!0===e.throwOnTimeout,this._isPaused=!1===e.autoStart}get _doesIntervalAllowAnother(){return this._isIntervalIgnored||this._intervalCount<this._intervalCap}get _doesConcurrentAllowAnother(){return this._pendingCount<this._concurrency}_next(){this._pendingCount--,this._tryToStartAnother(),this.emit("next")}_resolvePromises(){this._resolveEmpty(),this._resolveEmpty=s,0===this._pendingCount&&(this._resolveIdle(),this._resolveIdle=s,this.emit("idle"))}_onResumeInterval(){this._onInterval(),this._initializeIntervalIfNeeded(),this._timeoutId=void 0}_isIntervalPaused(){const e=Date.now();if(void 0===this._intervalId){const t=this._intervalEnd-e;if(!(t<0))return void 0===this._timeoutId&&(this._timeoutId=setTimeout((()=>{this._onResumeInterval()}),t)),!0;this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0}return!1}_tryToStartAnother(){if(0===this._queue.size)return this._intervalId&&clearInterval(this._intervalId),this._intervalId=void 0,this._resolvePromises(),!1;if(!this._isPaused){const e=!this._isIntervalPaused();if(this._doesIntervalAllowAnother&&this._doesConcurrentAllowAnother){const t=this._queue.dequeue();return!!t&&(this.emit("active"),t(),e&&this._initializeIntervalIfNeeded(),!0)}}return!1}_initializeIntervalIfNeeded(){this._isIntervalIgnored||void 0!==this._intervalId||(this._intervalId=setInterval((()=>{this._onInterval()}),this._interval),this._intervalEnd=Date.now()+this._interval)}_onInterval(){0===this._intervalCount&&0===this._pendingCount&&this._intervalId&&(clearInterval(this._intervalId),this._intervalId=void 0),this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0,this._processQueue()}_processQueue(){for(;this._tryToStartAnother(););}get concurrency(){return this._concurrency}set concurrency(e){if(!("number"==typeof e&&e>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${e}\` (${typeof e})`);this._concurrency=e,this._processQueue()}async add(e,t={}){return new Promise(((n,r)=>{this._queue.enqueue((async()=>{this._pendingCount++,this._intervalCount++;try{const o=void 0===this._timeout&&void 0===t.timeout?e():function(e,t,n,r){let o;const i=new Promise(((i,s)=>{if("number"!=typeof t||t<0)throw new TypeError("Expected `milliseconds` to be a positive number");t!==Number.POSITIVE_INFINITY?(r={customTimers:{setTimeout,clearTimeout},...r},o=r.customTimers.setTimeout.call(void 0,(()=>{try{i(n())}catch(e){s(e)}}),t),(async()=>{try{i(await e)}catch(e){s(e)}finally{r.customTimers.clearTimeout.call(void 0,o)}})()):i(e)}));return i.clear=()=>{clearTimeout(o),o=void 0},i}(Promise.resolve(e()),void 0===t.timeout?this._timeout:t.timeout,(()=>{(void 0===t.throwOnTimeout?this._throwOnTimeout:t.throwOnTimeout)&&r(a)})),i=await o;n(i),this.emit("completed",i)}catch(e){r(e),this.emit("error",e)}this._next()}),t),this._tryToStartAnother(),this.emit("add")}))}async addAll(e,t){return Promise.all(e.map((async e=>this.add(e,t))))}start(){return this._isPaused?(this._isPaused=!1,this._processQueue(),this):this}pause(){this._isPaused=!0}clear(){this._queue=new this._queueClass}async onEmpty(){if(0!==this._queue.size)return new Promise((e=>{const t=this._resolveEmpty;this._resolveEmpty=()=>{t(),e()}}))}async onSizeLessThan(e){if(!(this._queue.size<e))return new Promise((t=>{const n=()=>{this._queue.size<e&&(this.removeListener("next",n),t())};this.on("next",n)}))}async onIdle(){if(0!==this._pendingCount||0!==this._queue.size)return new Promise((e=>{const t=this._resolveIdle;this._resolveIdle=()=>{t(),e()}}))}get size(){return this._queue.size}sizeBy(e){return this._queue.filter(e).length}get pending(){return this._pendingCount}get isPaused(){return this._isPaused}get timeout(){return this._timeout}set timeout(e){this._timeout=e}}},12858:e=>{"use strict";function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function n(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"].forEach((function(e){n.prototype[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this._defaults.push({fn:e,args:n}),this}})),n.prototype._setDefaults=function(e){this._defaults.forEach((function(n){var r;e[n.fn].apply(e,function(e){if(Array.isArray(e))return t(e)}(r=n.args)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(r)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}(r)||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.")}())}))},e.exports=n},75391:(e,t,n)=>{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o;"undefined"!=typeof window?o=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),o=void 0):o=self;var i=n(31069),s=n(5799),a=n(63065),u=n(24287),c=n(39905),l=n(40969),f=n(12858);function d(){}e.exports=function(e,n){return"function"==typeof n?new t.Request("GET",e).end(n):1===arguments.length?new t.Request("GET",e):new t.Request(e,n)};var p=t=e.exports;t.Request=w,p.getXHR=function(){if(o.XMLHttpRequest&&(!o.location||"file:"!==o.location.protocol||!o.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}throw new Error("Browser-only version of superagent could not find XHR")};var h="".trim?function(e){return e.trim()}:function(e){return e.replace(/(^\s*|\s*$)/g,"")};function y(e){if(!c(e))return e;var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&g(t,n,e[n]);return t.join("&")}function g(e,t,n){if(void 0!==n)if(null!==n)if(Array.isArray(n))n.forEach((function(n){g(e,t,n)}));else if(c(n))for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&g(e,"".concat(t,"[").concat(r,"]"),n[r]);else e.push(encodeURI(t)+"="+encodeURIComponent(n));else e.push(encodeURI(t))}function m(e){for(var t,n,r={},o=e.split("&"),i=0,s=o.length;i<s;++i)-1===(n=(t=o[i]).indexOf("="))?r[decodeURIComponent(t)]="":r[decodeURIComponent(t.slice(0,n))]=decodeURIComponent(t.slice(n+1));return r}function v(e){return/[/+]json($|[^-\w])/i.test(e)}function b(e){this.req=e,this.xhr=this.req.xhr,this.text="HEAD"!==this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;var t=this.xhr.status;1223===t&&(t=204),this._setStatusProperties(t),this.headers=function(e){for(var t,n,r,o,i=e.split(/\r?\n/),s={},a=0,u=i.length;a<u;++a)-1!==(t=(n=i[a]).indexOf(":"))&&(r=n.slice(0,t).toLowerCase(),o=h(n.slice(t+1)),s[r]=o);return s}(this.xhr.getAllResponseHeaders()),this.header=this.headers,this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),null===this.text&&e._responseType?this.body=this.xhr.response:this.body="HEAD"===this.req.method?null:this._parseBody(this.text?this.text:this.xhr.response)}function w(e,t){var n=this;this._query=this._query||[],this.method=e,this.url=t,this.header={},this._header={},this.on("end",(function(){var e,t=null,r=null;try{r=new b(n)}catch(e){return(t=new Error("Parser is unable to parse the response")).parse=!0,t.original=e,n.xhr?(t.rawResponse=void 0===n.xhr.responseType?n.xhr.responseText:n.xhr.response,t.status=n.xhr.status?n.xhr.status:null,t.statusCode=t.status):(t.rawResponse=null,t.status=null),n.callback(t)}n.emit("response",r);try{n._isResponseOK(r)||(e=new Error(r.statusText||r.text||"Unsuccessful HTTP response"))}catch(t){e=t}e?(e.original=t,e.response=r,e.status=r.status,n.callback(e,r)):n.callback(null,r)}))}function _(e,t,n){var r=p("DELETE",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}p.serializeObject=y,p.parseString=m,p.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},p.serialize={"application/x-www-form-urlencoded":a.stringify,"application/json":s},p.parse={"application/x-www-form-urlencoded":m,"application/json":JSON.parse},l(b.prototype),b.prototype._parseBody=function(e){var t=p.parse[this.type];return this.req._parser?this.req._parser(this,e):(!t&&v(this.type)&&(t=p.parse["application/json"]),t&&e&&(e.length>0||e instanceof Object)?t(e):null)},b.prototype.toError=function(){var e=this.req,t=e.method,n=e.url,r="cannot ".concat(t," ").concat(n," (").concat(this.status,")"),o=new Error(r);return o.status=this.status,o.method=t,o.url=n,o},p.Response=b,i(w.prototype),u(w.prototype),w.prototype.type=function(e){return this.set("Content-Type",p.types[e]||e),this},w.prototype.accept=function(e){return this.set("Accept",p.types[e]||e),this},w.prototype.auth=function(e,t,n){1===arguments.length&&(t=""),"object"===r(t)&&null!==t&&(n=t,t=""),n||(n={type:"function"==typeof btoa?"basic":"auto"});var o=function(e){if("function"==typeof btoa)return btoa(e);throw new Error("Cannot use basic auth, btoa is not a function")};return this._auth(e,t,n,o)},w.prototype.query=function(e){return"string"!=typeof e&&(e=y(e)),e&&this._query.push(e),this},w.prototype.attach=function(e,t,n){if(t){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(e,t,n||t.name)}return this},w.prototype._getFormData=function(){return this._formData||(this._formData=new o.FormData),this._formData},w.prototype.callback=function(e,t){if(this._shouldRetry(e,t))return this._retry();var n=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),n(e,t)},w.prototype.crossDomainError=function(){var e=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");e.crossDomain=!0,e.status=this.status,e.method=this.method,e.url=this.url,this.callback(e)},w.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},w.prototype.ca=w.prototype.agent,w.prototype.buffer=w.prototype.ca,w.prototype.write=function(){throw new Error("Streaming is not supported in browser version of superagent")},w.prototype.pipe=w.prototype.write,w.prototype._isHost=function(e){return e&&"object"===r(e)&&!Array.isArray(e)&&"[object Object]"!==Object.prototype.toString.call(e)},w.prototype.end=function(e){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=e||d,this._finalizeQueryString(),this._end()},w.prototype._setUploadTimeout=function(){var e=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout((function(){e._timeoutError("Upload timeout of ",e._uploadTimeout,"ETIMEDOUT")}),this._uploadTimeout))},w.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));var e=this;this.xhr=p.getXHR();var t=this.xhr,n=this._formData||this._data;this._setTimeouts(),t.onreadystatechange=function(){var n=t.readyState;if(n>=2&&e._responseTimeoutTimer&&clearTimeout(e._responseTimeoutTimer),4===n){var r;try{r=t.status}catch(e){r=0}if(!r){if(e.timedout||e._aborted)return;return e.crossDomainError()}e.emit("end")}};var r=function(t,n){n.total>0&&(n.percent=n.loaded/n.total*100,100===n.percent&&clearTimeout(e._uploadTimeoutTimer)),n.direction=t,e.emit("progress",n)};if(this.hasListeners("progress"))try{t.addEventListener("progress",r.bind(null,"download")),t.upload&&t.upload.addEventListener("progress",r.bind(null,"upload"))}catch(e){}t.upload&&this._setUploadTimeout();try{this.username&&this.password?t.open(this.method,this.url,!0,this.username,this.password):t.open(this.method,this.url,!0)}catch(e){return this.callback(e)}if(this._withCredentials&&(t.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof n&&!this._isHost(n)){var o=this._header["content-type"],i=this._serializer||p.serialize[o?o.split(";")[0]:""];!i&&v(o)&&(i=p.serialize["application/json"]),i&&(n=i(n))}for(var s in this.header)null!==this.header[s]&&Object.prototype.hasOwnProperty.call(this.header,s)&&t.setRequestHeader(s,this.header[s]);this._responseType&&(t.responseType=this._responseType),this.emit("request",this),t.send(void 0===n?null:n)},p.agent=function(){return new f},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach((function(e){f.prototype[e.toLowerCase()]=function(t,n){var r=new p.Request(e,t);return this._setDefaults(r),n&&r.end(n),r}})),f.prototype.del=f.prototype.delete,p.get=function(e,t,n){var r=p("GET",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},p.head=function(e,t,n){var r=p("HEAD",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},p.options=function(e,t,n){var r=p("OPTIONS",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},p.del=_,p.delete=_,p.patch=function(e,t,n){var r=p("PATCH",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},p.post=function(e,t,n){var r=p("POST",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},p.put=function(e,t,n){var r=p("PUT",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}},39905:e=>{"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e){return null!==e&&"object"===t(e)}},24287:(e,t,n)=>{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(39905);function i(e){if(e)return function(e){for(var t in i.prototype)Object.prototype.hasOwnProperty.call(i.prototype,t)&&(e[t]=i.prototype[t]);return e}(e)}e.exports=i,i.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},i.prototype.parse=function(e){return this._parser=e,this},i.prototype.responseType=function(e){return this._responseType=e,this},i.prototype.serialize=function(e){return this._serializer=e,this},i.prototype.timeout=function(e){if(!e||"object"!==r(e))return this._timeout=e,this._responseTimeout=0,this._uploadTimeout=0,this;for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))switch(t){case"deadline":this._timeout=e.deadline;break;case"response":this._responseTimeout=e.response;break;case"upload":this._uploadTimeout=e.upload;break;default:console.warn("Unknown timeout option",t)}return this},i.prototype.retry=function(e,t){return 0!==arguments.length&&!0!==e||(e=1),e<=0&&(e=0),this._maxRetries=e,this._retries=0,this._retryCallback=t,this};var s=new Set(["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"]),a=new Set([408,413,429,500,502,503,504,521,522,524]);i.prototype._shouldRetry=function(e,t){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var n=this._retryCallback(e,t);if(!0===n)return!0;if(!1===n)return!1}catch(e){console.error(e)}if(t&&t.status&&a.has(t.status))return!0;if(e){if(e.code&&s.has(e.code))return!0;if(e.timeout&&"ECONNABORTED"===e.code)return!0;if(e.crossDomain)return!0}return!1},i.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},i.prototype.then=function(e,t){var n=this;if(!this._fullfilledPromise){var r=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise((function(e,t){r.on("abort",(function(){if(!(n._maxRetries&&n._maxRetries>n._retries))if(n.timedout&&n.timedoutError)t(n.timedoutError);else{var e=new Error("Aborted");e.code="ABORTED",e.status=n.status,e.method=n.method,e.url=n.url,t(e)}})),r.end((function(n,r){n?t(n):e(r)}))}))}return this._fullfilledPromise.then(e,t)},i.prototype.catch=function(e){return this.then(void 0,e)},i.prototype.use=function(e){return e(this),this},i.prototype.ok=function(e){if("function"!=typeof e)throw new Error("Callback required");return this._okCallback=e,this},i.prototype._isResponseOK=function(e){return!!e&&(this._okCallback?this._okCallback(e):e.status>=200&&e.status<300)},i.prototype.get=function(e){return this._header[e.toLowerCase()]},i.prototype.getHeader=i.prototype.get,i.prototype.set=function(e,t){if(o(e)){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.set(n,e[n]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},i.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},i.prototype.field=function(e,t){if(null==e)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(o(e)){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.field(n,e[n]);return this}if(Array.isArray(t)){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&this.field(e,t[r]);return this}if(null==t)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof t&&(t=String(t)),this._getFormData().append(e,t),this},i.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},i.prototype._auth=function(e,t,n,r){switch(n.type){case"basic":this.set("Authorization","Basic ".concat(r("".concat(e,":").concat(t))));break;case"auto":this.username=e,this.password=t;break;case"bearer":this.set("Authorization","Bearer ".concat(e))}return this},i.prototype.withCredentials=function(e){return void 0===e&&(e=!0),this._withCredentials=e,this},i.prototype.redirects=function(e){return this._maxRedirects=e,this},i.prototype.maxResponseSize=function(e){if("number"!=typeof e)throw new TypeError("Invalid argument");return this._maxResponseSize=e,this},i.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},i.prototype.send=function(e){var t=o(e),n=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(t&&!this._data)Array.isArray(e)?this._data=[]:this._isHost(e)||(this._data={});else if(e&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(t&&o(this._data))for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(this._data[r]=e[r]);else"string"==typeof e?(n||this.type("form"),(n=this._header["content-type"])&&(n=n.toLowerCase().trim()),this._data="application/x-www-form-urlencoded"===n?this._data?"".concat(this._data,"&").concat(e):e:(this._data||"")+e):this._data=e;return!t||this._isHost(e)||n||this.type("json"),this},i.prototype.sortQuery=function(e){return this._sort=void 0===e||e,this},i.prototype._finalizeQueryString=function(){var e=this._query.join("&");if(e&&(this.url+=(this.url.includes("?")?"&":"?")+e),this._query.length=0,this._sort){var t=this.url.indexOf("?");if(t>=0){var n=this.url.slice(t+1).split("&");"function"==typeof this._sort?n.sort(this._sort):n.sort(),this.url=this.url.slice(0,t)+"?"+n.join("&")}}},i.prototype._appendQueryString=function(){console.warn("Unsupported")},i.prototype._timeoutError=function(e,t,n){if(!this._aborted){var r=new Error("".concat(e+t,"ms exceeded"));r.timeout=t,r.code="ECONNABORTED",r.errno=n,this.timedout=!0,this.timedoutError=r,this.abort(),this.callback(r)}},i.prototype._setTimeouts=function(){var e=this;this._timeout&&!this._timer&&(this._timer=setTimeout((function(){e._timeoutError("Timeout of ",e._timeout,"ETIME")}),this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout((function(){e._timeoutError("Response timeout of ",e._responseTimeout,"ETIMEDOUT")}),this._responseTimeout))}},40969:(e,t,n)=>{"use strict";var r=n(23094);function o(e){if(e)return function(e){for(var t in o.prototype)Object.prototype.hasOwnProperty.call(o.prototype,t)&&(e[t]=o.prototype[t]);return e}(e)}e.exports=o,o.prototype.get=function(e){return this.header[e.toLowerCase()]},o.prototype._setHeaderProperties=function(e){var t=e["content-type"]||"";this.type=r.type(t);var n=r.params(t);for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(this[o]=n[o]);this.links={};try{e.link&&(this.links=r.parseLinks(e.link))}catch(e){}},o.prototype._setStatusProperties=function(e){var t=e/100|0;this.statusCode=e,this.status=this.statusCode,this.statusType=t,this.info=1===t,this.ok=2===t,this.redirect=3===t,this.clientError=4===t,this.serverError=5===t,this.error=(4===t||5===t)&&this.toError(),this.created=201===e,this.accepted=202===e,this.noContent=204===e,this.badRequest=400===e,this.unauthorized=401===e,this.notAcceptable=406===e,this.forbidden=403===e,this.notFound=404===e,this.unprocessableEntity=422===e}},23094:(e,t)=>{"use strict";function n(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,s=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw s}}}}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}t.type=function(e){return e.split(/ *; */).shift()},t.params=function(e){var t,r={},o=n(e.split(/ *; */));try{for(o.s();!(t=o.n()).done;){var i=t.value.split(/ *= */),s=i.shift(),a=i.shift();s&&a&&(r[s]=a)}}catch(e){o.e(e)}finally{o.f()}return r},t.parseLinks=function(e){var t,r={},o=n(e.split(/ *, */));try{for(o.s();!(t=o.n()).done;){var i=t.value.split(/ *; */),s=i[0].slice(1,-1);r[i[1].split(/ *= */)[1].slice(1,-1)]=s}}catch(e){o.e(e)}finally{o.f()}return r},t.cleanHeader=function(e,t){return delete e["content-type"],delete e["content-length"],delete e["transfer-encoding"],delete e.host,t&&(delete e.authorization,delete e.cookie),e}},85335:e=>{"use strict";var t=String.prototype.replace,n=/%20/g,r="RFC3986";e.exports={default:r,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:r}},63065:(e,t,n)=>{"use strict";var r=n(24246),o=n(11688),i=n(85335);e.exports={formats:i,parse:o,stringify:r}},11688:(e,t,n)=>{"use strict";var r=n(14562),o=Object.prototype.hasOwnProperty,i=Array.isArray,s={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},a=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},u=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c=function(e,t,n,r){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/g,a=n.depth>0&&/(\[[^[\]]*])/.exec(i),c=a?i.slice(0,a.index):i,l=[];if(c){if(!n.plainObjects&&o.call(Object.prototype,c)&&!n.allowPrototypes)return;l.push(c)}for(var f=0;n.depth>0&&null!==(a=s.exec(i))&&f<n.depth;){if(f+=1,!n.plainObjects&&o.call(Object.prototype,a[1].slice(1,-1))&&!n.allowPrototypes)return;l.push(a[1])}return a&&l.push("["+i.slice(a.index)+"]"),function(e,t,n,r){for(var o=r?t:u(t,n),i=e.length-1;i>=0;--i){var s,a=e[i];if("[]"===a&&n.parseArrays)s=[].concat(o);else{s=n.plainObjects?Object.create(null):{};var c="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,l=parseInt(c,10);n.parseArrays||""!==c?!isNaN(l)&&a!==c&&String(l)===c&&l>=0&&n.parseArrays&&l<=n.arrayLimit?(s=[])[l]=o:s[c]=o:s={0:o}}o=s}return o}(l,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return s;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?s.charset:e.charset;return{allowDots:void 0===e.allowDots?s.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:s.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:s.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:s.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:s.comma,decoder:"function"==typeof e.decoder?e.decoder:s.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:s.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:s.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:s.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:s.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:s.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:s.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var l="string"==typeof e?function(e,t){var n,c={},l=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,f=t.parameterLimit===1/0?void 0:t.parameterLimit,d=l.split(t.delimiter,f),p=-1,h=t.charset;if(t.charsetSentinel)for(n=0;n<d.length;++n)0===d[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[n]?h="utf-8":"utf8=%26%2310003%3B"===d[n]&&(h="iso-8859-1"),p=n,n=d.length);for(n=0;n<d.length;++n)if(n!==p){var y,g,m=d[n],v=m.indexOf("]="),b=-1===v?m.indexOf("="):v+1;-1===b?(y=t.decoder(m,s.decoder,h,"key"),g=t.strictNullHandling?null:""):(y=t.decoder(m.slice(0,b),s.decoder,h,"key"),g=r.maybeMap(u(m.slice(b+1),t),(function(e){return t.decoder(e,s.decoder,h,"value")}))),g&&t.interpretNumericEntities&&"iso-8859-1"===h&&(g=a(g)),m.indexOf("[]=")>-1&&(g=i(g)?[g]:g),o.call(c,y)?c[y]=r.combine(c[y],g):c[y]=g}return c}(e,n):e,f=n.plainObjects?Object.create(null):{},d=Object.keys(l),p=0;p<d.length;++p){var h=d[p],y=c(h,l[h],n,"string"==typeof e);f=r.merge(f,y,n)}return r.compact(f)}},24246:(e,t,n)=>{"use strict";var r=n(14562),o=n(85335),i=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Array.isArray,u=Array.prototype.push,c=function(e,t){u.apply(e,a(t)?t:[t])},l=Date.prototype.toISOString,f=o.default,d={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:f,formatter:o.formatters[f],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},p=function e(t,n,o,i,s,u,l,f,p,h,y,g,m,v){var b,w=t;if("function"==typeof l?w=l(n,w):w instanceof Date?w=h(w):"comma"===o&&a(w)&&(w=r.maybeMap(w,(function(e){return e instanceof Date?h(e):e}))),null===w){if(i)return u&&!m?u(n,d.encoder,v,"key",y):n;w=""}if("string"==typeof(b=w)||"number"==typeof b||"boolean"==typeof b||"symbol"==typeof b||"bigint"==typeof b||r.isBuffer(w))return u?[g(m?n:u(n,d.encoder,v,"key",y))+"="+g(u(w,d.encoder,v,"value",y))]:[g(n)+"="+g(String(w))];var _,S=[];if(void 0===w)return S;if("comma"===o&&a(w))_=[{value:w.length>0?w.join(",")||null:void 0}];else if(a(l))_=l;else{var C=Object.keys(w);_=f?C.sort(f):C}for(var E=0;E<_.length;++E){var A=_[E],O="object"==typeof A&&void 0!==A.value?A.value:w[A];if(!s||null!==O){var T=a(w)?"function"==typeof o?o(n,A):n:n+(p?"."+A:"["+A+"]");c(S,e(O,T,o,i,s,u,l,f,p,h,y,g,m,v))}}return S};e.exports=function(e,t){var n,r=e,u=function(e){if(!e)return d;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||d.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o.default;if(void 0!==e.format){if(!i.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=o.formatters[n],s=d.filter;return("function"==typeof e.filter||a(e.filter))&&(s=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:d.addQueryPrefix,allowDots:void 0===e.allowDots?d.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:d.charsetSentinel,delimiter:void 0===e.delimiter?d.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:d.encode,encoder:"function"==typeof e.encoder?e.encoder:d.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:d.encodeValuesOnly,filter:s,format:n,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:d.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:d.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:d.strictNullHandling}}(t);"function"==typeof u.filter?r=(0,u.filter)("",r):a(u.filter)&&(n=u.filter);var l,f=[];if("object"!=typeof r||null===r)return"";l=t&&t.arrayFormat in s?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var h=s[l];n||(n=Object.keys(r)),u.sort&&n.sort(u.sort);for(var y=0;y<n.length;++y){var g=n[y];u.skipNulls&&null===r[g]||c(f,p(r[g],g,h,u.strictNullHandling,u.skipNulls,u.encode?u.encoder:null,u.filter,u.sort,u.allowDots,u.serializeDate,u.format,u.formatter,u.encodeValuesOnly,u.charset))}var m=f.join(u.delimiter),v=!0===u.addQueryPrefix?"?":"";return u.charsetSentinel&&("iso-8859-1"===u.charset?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),m.length>0?v+m:""}},14562:(e,t,n)=>{"use strict";var r=n(85335),o=Object.prototype.hasOwnProperty,i=Array.isArray,s=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:a,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var o=t[r],s=o.obj[o.prop],a=Object.keys(s),u=0;u<a.length;++u){var c=a[u],l=s[c];"object"==typeof l&&null!==l&&-1===n.indexOf(l)&&(t.push({obj:s,prop:c}),n.push(l))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&r.push(n[o]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n,o,i){if(0===e.length)return e;var a=e;if("symbol"==typeof e?a=Symbol.prototype.toString.call(e):"string"!=typeof e&&(a=String(e)),"iso-8859-1"===n)return escape(a).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var u="",c=0;c<a.length;++c){var l=a.charCodeAt(c);45===l||46===l||95===l||126===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||i===r.RFC1738&&(40===l||41===l)?u+=a.charAt(c):l<128?u+=s[l]:l<2048?u+=s[192|l>>6]+s[128|63&l]:l<55296||l>=57344?u+=s[224|l>>12]+s[128|l>>6&63]+s[128|63&l]:(c+=1,l=65536+((1023&l)<<10|1023&a.charCodeAt(c)),u+=s[240|l>>18]+s[128|l>>12&63]+s[128|l>>6&63]+s[128|63&l])}return u},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!=typeof n){if(i(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!o.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var s=t;return i(t)&&!i(n)&&(s=a(t,r)),i(t)&&i(n)?(n.forEach((function(n,i){if(o.call(t,i)){var s=t[i];s&&"object"==typeof s&&n&&"object"==typeof n?t[i]=e(s,n,r):t.push(n)}else t[i]=n})),t):Object.keys(n).reduce((function(t,i){var s=n[i];return o.call(t,i)?t[i]=e(t[i],s,r):t[i]=s,t}),s)}}},50586:(e,t,n)=>{var r=n(36589),o=n(22708),i=o;i.v1=r,i.v4=o,e.exports=i},98726:e=>{for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var r=n||0,o=t;return o[e[r++]]+o[e[r++]]+o[e[r++]]+o[e[r++]]+"-"+o[e[r++]]+o[e[r++]]+"-"+o[e[r++]]+o[e[r++]]+"-"+o[e[r++]]+o[e[r++]]+"-"+o[e[r++]]+o[e[r++]]+o[e[r++]]+o[e[r++]]+o[e[r++]]+o[e[r++]]}},76338:(e,t,n)=>{var r,o=n.g.crypto||n.g.msCrypto;if(o&&o.getRandomValues){var i=new Uint8Array(16);r=function(){return o.getRandomValues(i),i}}if(!r){var s=new Array(16);r=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),s[t]=e>>>((3&t)<<3)&255;return s}}e.exports=r},36589:(e,t,n)=>{var r=n(76338),o=n(98726),i=r(),s=[1|i[0],i[1],i[2],i[3],i[4],i[5]],a=16383&(i[6]<<8|i[7]),u=0,c=0;e.exports=function(e,t,n){var r=t&&n||0,i=t||[],l=void 0!==(e=e||{}).clockseq?e.clockseq:a,f=void 0!==e.msecs?e.msecs:(new Date).getTime(),d=void 0!==e.nsecs?e.nsecs:c+1,p=f-u+(d-c)/1e4;if(p<0&&void 0===e.clockseq&&(l=l+1&16383),(p<0||f>u)&&void 0===e.nsecs&&(d=0),d>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");u=f,c=d,a=l;var h=(1e4*(268435455&(f+=122192928e5))+d)%4294967296;i[r++]=h>>>24&255,i[r++]=h>>>16&255,i[r++]=h>>>8&255,i[r++]=255&h;var y=f/4294967296*1e4&268435455;i[r++]=y>>>8&255,i[r++]=255&y,i[r++]=y>>>24&15|16,i[r++]=y>>>16&255,i[r++]=l>>>8|128,i[r++]=255&l;for(var g=e.node||s,m=0;m<6;++m)i[r+m]=g[m];return t||o(i)}},22708:(e,t,n)=>{var r=n(76338),o=n(98726);e.exports=function(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"==e?new Array(16):null,e=null);var s=(e=e||{}).random||(e.rng||r)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t)for(var a=0;a<16;++a)t[i+a]=s[a];return t||o(s)}},34361:function(e,t,n){"use strict";var r,o,i,s,a,u,c,l,f,d,p,h,y,g=this&&this.__classPrivateFieldSet||function(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n},m=this&&this.__classPrivateFieldGet||function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)},v=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FinsembleDesktopAgent=void 0;const b=n(98832),w=v(n(72551)),_=n(6192),S=n(81298),C=n(81298),E=v(n(60306));class A{constructor(e){r.set(this,void 0),o.set(this,void 0),g(this,r,e,"f")}start(e){const t={type:"heartbeat",meta:{uuid:e}};m(this,r,"f").transmit(S.HEARTBEAT_CHANNEL,t),g(this,o,setInterval((()=>{m(this,r,"f").transmit(S.HEARTBEAT_CHANNEL,t)}),S.HEARTBEAT_INTERVAL),"f")}stop(){clearInterval(m(this,o,"f")),g(this,o,void 0,"f")}}r=new WeakMap,o=new WeakMap;class O{constructor(e,t,n="app"){i.set(this,void 0),g(this,i,e,"f"),this.id=t,this.type=n}broadcast(e){m(this,i,"f").channelBroadcast(this.id,e)}getCurrentContext(e){return m(this,i,"f").channelGetCurrentContext(this.id,e)}addContextListener(e,t){return m(this,i,"f").channelAddContextListener(this.id,e,t)}}i=new WeakMap,t.FinsembleDesktopAgent=class{constructor({routerClient:e,startup:t}){s.set(this,!1),a.set(this,void 0),u.set(this,!1),c.set(this,""),l.set(this,`FSBL.FDC3.Client.${Date.now()}_${Math.random()}`),f.set(this,{}),d.set(this,{}),p.set(this,[]),h.set(this,void 0),y.set(this,void 0),g(this,h,e,"f"),g(this,a,new A(e),"f"),g(this,y,t,"f");const n=()=>!0===_.Globals?.FSBL?.Clients?.WindowClient?.options?.customData?.interop?.autoConnect;if(_.Globals?.FSBL?.addEventListener?_.Globals?.FSBL.addEventListener("onReady",(()=>{n()&&this.connectWhenFSBLIsReady()})):window.addEventListener("FSBLReady",(()=>{n()&&this.connectWhenFSBLIsReady()})),window.Event){const e=new Event("fdc3Ready");window&&window.dispatchEvent(e)}}meta(){return{uuid:m(this,c,"f"),href:window.document?document.location.href:""}}triggerContextListeners(e){const{context:t}=e.payload;(m(this,d,"f")[t?.type]??[]).concat(m(this,d,"f")["*"]??[]).forEach((({handler:n,channel:r})=>{e.meta.channel!==r&&(e.meta.channel||r)||n(t)}))}triggerIntentListeners(e){const{intent:t,context:n}=e.payload,r=m(this,f,"f")[t];n&&(r||[]).forEach((e=>e(n)))}handleIncoming(e){switch(w.default.log("FDC3 Client: handleIncoming",e.type,e),e.type){case"broadcast":this.triggerContextListeners(e);break;case"intent":this.triggerIntentListeners(e)}}releaseQueue(){const e=e=>(void 0!==e?.meta?.uuid&&(e.meta.uuid=m(this,c,"f")),e);m(this,p,"f").forEach((async t=>{const{message:n,handler:r,resolve:o}=t,{err:i,response:s}=await m(this,h,"f").query(S.SERVER_CHANNEL,e(n),r);o({err:i,receiveMessage:s?.data})})),g(this,p,[],"f")}async connectWhenFSBLIsReady(){m(this,u,"f")||(g(this,u,!0,"f"),await m(this,y,"f").onReady(),this.connect())}exchange(e,t=(()=>{})){return new Promise((async n=>{if(m(this,s,"f")){const{err:r,response:o}=await m(this,h,"f").query(S.SERVER_CHANNEL,e,t);n({err:r,receiveMessage:o?.data})}else m(this,p,"f").push({message:e,handler:t,resolve:n}),this.connectWhenFSBLIsReady()}))}async connect(){const e=m(this,y,"f").getStartupData(),{windowName:t="Unknown window",authenticationToken:n}=e;w.default.log(`fdc3.connect StartupData for ${t}`,e),g(this,c,t,"f");const r={type:"register",meta:this.meta(),payload:{clientChannel:m(this,l,"f"),windowName:t,authenticationToken:n}};m(this,h,"f").query(S.SERVER_CHANNEL,r,(e=>{e?w.default.error("connect error",e):(m(this,h,"f").addResponder(m(this,l,"f"),((e,t)=>{if(e||!t){const t=C.errorAsString(e??"No request received on responder");w.default.error(`FinsembleDesktopAgent can't listen on channel ${m(this,l,"f")} : ${t}`)}else t.data&&this.handleIncoming(t.data),t.sendQueryResponse(null)})),g(this,s,!0,"f"),this.releaseQueue())})),m(this,a,"f").start(m(this,c,"f"))}stop(){m(this,a,"f").stop();const e={type:"unregister",meta:this.meta()};this.exchange(e,(()=>{m(this,h,"f").removeResponder(m(this,l,"f")),g(this,s,!1,"f")}))}async getCurrentContext(e){const t={type:"currentContextRequest",meta:this.meta(),payload:{contextType:e}},{err:n,receiveMessage:r}=await this.exchange(t);return n?null:"currentContext"===r?.type&&r.payload.context?r.payload.context:null}async channelGetCurrentContext(e,t){const n={type:"currentContextRequest",meta:{...this.meta(),channel:e},payload:{contextType:t}},{err:r,receiveMessage:o}=await this.exchange(n);return r?null:"currentContext"===o?.type?o.payload.context:null}broadcast(e){const t={type:"broadcast",meta:this.meta(),payload:{context:e}};this.exchange(t)}channelBroadcast(e,t){const n={type:"broadcast",meta:{...this.meta(),channel:e},payload:{context:t}};this.exchange(n)}async getSystemChannels(){const e={type:"systemChannelRequest",meta:this.meta()},{err:t,receiveMessage:n}=await this.exchange(e);return t?[]:("systemChannels"===n?.type?n?.payload?.channels:[]).map((e=>new O(this,e,"system")))}async open(e,t){const n={type:"open",meta:this.meta(),payload:{target:e,context:t}},{err:r,receiveMessage:o}=await this.exchange(n),i=o;if(r)throw b.OpenError.ResolverUnavailable;if(i.payload.error)throw i.payload.error}async findIntent(e,t){const n={type:"findIntent",meta:this.meta(),payload:{intent:e,context:t}},{err:r,receiveMessage:o}=await this.exchange(n),i=o;if(r)throw b.ResolveError.ResolverUnavailable;if(i.payload.error)throw i.payload.error;if(!i.payload.appIntent)throw"Invalid response returned from InteropService for findIntent. No appIntent and no error.";return i.payload.appIntent}async findIntentsByContext(e){const t={type:"findIntentsByContext",meta:this.meta(),payload:{context:e}},{receiveMessage:n}=await this.exchange(t),r=n;if(r.payload.error)throw r.payload.error;return r.payload.intents||[]}async raiseIntent(e,t,n){const r={type:"raiseIntent",meta:this.meta(),payload:{intent:e,context:t,target:n}},{err:o,receiveMessage:i}=await this.exchange(r),s=i;if(o)throw b.ResolveError.ResolverUnavailable;if(s.payload.error)throw s.payload.error;if(!s.payload.data)throw"Invalid response returned from InteropService for raiseIntent. No data.";return s.payload.data}async raiseIntentForContext(e,t){const n={type:"raiseIntent",meta:this.meta(),payload:{context:e,target:t}},{err:r,receiveMessage:o}=await this.exchange(n),i=o;if(r)throw b.ResolveError.ResolverUnavailable;if(i.payload.error)throw i.payload.error;if(!i.payload.data)throw"Invalid response returned from InteropService for raiseIntentForContext. No data.";return i.payload.data}addIntentListener(e,t){m(this,f,"f")[e]=C.mmAdd(m(this,f,"f"),e,t);const n={type:"subscribeIntent",meta:this.meta(),payload:{intent:e}};return this.exchange(n),{unsubscribe:()=>{const n={type:"unsubscribeIntent",meta:this.meta(),payload:{intent:e}};this.exchange(n),m(this,f,"f")[e]=C.mmRemove(m(this,f,"f"),e,t)}}}channelAddContextListener(e,t,n){const r=n?t:"*";n||(n=t);const o={handler:n,channel:e};m(this,d,"f")[r]=C.mmAdd(m(this,f,"f"),r,o);let i={type:"subscribeContext",meta:this.meta(),payload:{contextType:r}};return e&&(i.meta.channel=e),this.exchange(i),{unsubscribe:()=>{let t={type:"unsubscribeContext",meta:this.meta(),payload:{contextType:r}};e&&(t.meta.channel=e),m(this,d,"f")[r]=C.mmRemove(m(this,f,"f"),r,o),this.exchange(t)}}}addContextListener(e,t){return this.channelAddContextListener(null,e,t)}async joinChannel(e){const t={type:"joinChannels",meta:this.meta(),payload:{channels:[e]}};await this.exchange(t)}async getOrCreateChannel(e){return new O(this,e)}async getCurrentChannels(){const e={type:"getCurrentChannels",meta:this.meta()},{err:t,receiveMessage:n}=await this.exchange(e),r=n;if(t)throw t;if(r.payload.error)throw r.payload.error;if(!r.payload.data)throw"Invalid response returned from InteropService for getCurrentChannels. No data.";return r.payload.data.map((e=>new O(this,e.channel,"system")))}async getCurrentChannel(){const e=await this.getCurrentChannels();return e&&e.length?e[0]:null}async leaveCurrentChannel(){const e={type:"leaveChannels",meta:this.meta(),payload:{}};await this.exchange(e)}getInfo(){return{fdc3Version:"1.2",provider:"Finsemble",providerVersion:E.default.version}}},s=new WeakMap,a=new WeakMap,u=new WeakMap,c=new WeakMap,l=new WeakMap,f=new WeakMap,d=new WeakMap,p=new WeakMap,h=new WeakMap,y=new WeakMap},81298:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AnonymousAuthenticationToken=t.HEARTBEAT_INTERVAL=t.HEARTBEAT_CHANNEL=t.INTENT_RESOLVER_CHANNEL=t.SERVER_CHANNEL=t.GLOBAL_CHANNEL=t.errorAsString=t.mmRemove=t.concatNoDups=t.mmAdd=void 0,t.mmAdd=function(e,t,n){return(e[t]||[]).concat([n])},t.concatNoDups=function(e,t){const n=Array.isArray(t)?t:[t],r=e?n.concat(e):n;return Array.from(new Set(r))},t.mmRemove=function(e,t,n){return(e[t]||[]).filter((e=>e===n))},t.errorAsString=function(e){return e?.message??e??null},t.GLOBAL_CHANNEL="global",t.SERVER_CHANNEL="FSBL.FDC3.Interop.Server",t.INTENT_RESOLVER_CHANNEL="FSBL.FDC3.intent.resolver",t.HEARTBEAT_CHANNEL="FSBL.FDC3.Interop.Server",t.HEARTBEAT_INTERVAL=4e3,t.AnonymousAuthenticationToken={authenticationKeyType:"unauthenticated",meta:{name:"Anonymous app"}}},10589:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FSBLService=void 0;const o=r(n(39319)),i=n(67580),s=n(51742),a=n(16925),u=n(50586),c=n(6192),l=n(34361);t.FSBLService=class{async startApp(){await s.System.ready();const e=await i.getSystemStartupData(),t=s.System.Window.getCurrent(),n=t.name??document?.location?.href??"Unknown App",r=t.name??document?.location?.href??`Unknown window-${u.v4()}`,f=i.getManifestFromStartupData(e)??{},d=i.getRouterConfig({windowName:r,systemManifest:f});await o.default.start(d);const p=a.Startup.getInstance();p.setStartupData({windowName:r,authenticationToken:{authenticationKeyType:"unauthenticated",meta:{name:n}}}),c.Globals.fdc3=new l.FinsembleDesktopAgent({routerClient:o.default,startup:p}),p.ready()}async stopApp(){o.default.stop()}}},67580:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getManifestFromStartupData=t.getSystemStartupData=t.getRouterConfig=t.getRecommendedTransport=void 0;const o=r(n(72551)),i=n(51742),s=n(33998),a={sameDomainTransport:"FinsembleTransport",crossDomainTransport:"FinsembleTransport",transportSettings:{FinsembleTransport:{serverAddress:"ws://127.0.0.1:3376"}},transportName:"FinsembleTransport"},u=e=>{if(!e)return o.default.error("No documentRoot provided to RouterConfig.isCrossDomain(). Check the moduleRoot entry of the manifest."),!0;const t=document.createElement("a");t.href=e;const n=window.location.hostname===t.hostname,r=window.location.protocol===t.protocol,i=(void 0!==window.location.port?window.location.port:80)===(void 0!==t.port?t.port:80),s=n&&i&&r;return o.default.system.debug(`Transport crossDomain=${u} (${n}:${r}:${i})`),!s};t.getRecommendedTransport=e=>{const{moduleRoot:t,router:n}=e?.finsemble,{sameDomainTransport:r="SharedWorker",crossDomainTransport:i="IPCBus"}=n??{},s=u(t)?i:r;return o.default.system.log(`Transport Info: Selected=${s} SameDomainDefault=${r} CrossDomainDefault=${i}`),console.log(`Transport Info: Selected=${s} SameDomainDefault=${r} CrossDomainDefault=${i}`),s},t.getRouterConfig=({windowName:e,systemManifest:n,transportSettings:r})=>n?((e,n)=>{if(o.default.system.info("WINDOW LIFECYCLE:STARTUP:RouterClient:routerConfigFromManifest"),e&&"string"!=typeof e){const r=e.finsemble,o=r?.router?.transportSettings??r?.IAC??{},i=r?.notificationURL??`${r.moduleRoot}/components/system/notification/notification.html`;return{windowName:n,routerDomainRoot:r.moduleRoot,transportName:t.getRecommendedTransport(e),transportSettings:o,notificationURL:i}}return o.default.system.error("WINDOW LIFECYCLE:STARTUP:RouterClient:routerConfigFromManifest failed -- fatal error. No manifest found.",e),{...a,windowName:n}})(n,e):{...a,windowName:e,transportSettings:r??{}},t.getSystemStartupData=async()=>new Promise((e=>{i.System.Window.getCurrent().getOptions((t=>{e(t)}))})),t.getManifestFromStartupData=e=>{let t=e?.manifest;return t?.finsemble&&s.ConfigUtilInstance.resolveConfigVariables(t.finsemble,t.finsemble),t}},16925:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Startup=void 0;const r=n(81298),o=n(6192),i=n(50586),s=n(4971);class a{constructor(){this.isReady=!1,this.onReadyListeners=[],this.currentStartupData={authenticationToken:r.AnonymousAuthenticationToken,windowName:`Unknown window-${i.v4()}`}}static getInstance(){return a.instance?a.instance:a.instance=s.singleton("Startup",a)}getStartupData(){return this.currentStartupData}setStartupData(e){this.currentStartupData=e}onReady(e){return new Promise((t=>{this.isReady?(e&&setTimeout(e,0),t()):this.onReadyListeners.push((()=>{e&&e(),t()}))}))}ready(){this.isReady=!0,this.onReadyListeners.forEach((e=>{e()})),o.Globals.dispatchEvent&&o.Globals.dispatchEvent(new Event("FSBLReady"))}}t.Startup=a,a.instance=null},72669:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t._BaseClient=void 0;const o=r(n(39319)),i=r(n(72551)),s=n(51742),a=n(13854);t._BaseClient=class{constructor(e){this.status="offline",this.startupTime=0,this.initialized=!1,this.startupDependencies={services:[],clients:[]},this.finsembleWindow=null,this.windowName="",this.clientReadyQueue=[],this.processClientReadyQueue=()=>{for(const e of this.clientReadyQueue)e();this.clientReadyQueue=[]},this.onReady=e=>{this.clientReadyQueue.push(e),"online"===this.status&&this.processClientReadyQueue()},this.setClientOnline=()=>{this.status="online";const e=`STARTUP:CLIENT ONLINE:${this.finWindow?.name}:${this.name}`;this.startupTime=window.performance.now()-this.startupTime;const t=()=>{this.logger.system.debug(e),this.processClientReadyQueue(),a.FSBLDependencyManagerSingleton.setClientOnline(this.name)};this._onReady?this._onReady(t):t()},this.initialize=(e=Function.prototype)=>{this.initialized||(this.initialized=!0,this.startupTime=performance.now(),this.finWindow=s.System.Window.getCurrent(),this.windowName=this.finWindow.name,this.logger.system.debug("Baseclient Init Router Ready",this.name),a.FSBLDependencyManagerSingleton.startup.waitFor(this.startupDependencies,(()=>{e(),this.setClientOnline()})))},this.onClose=e=>{e&&e()},this.name=e.name,this._onReady=e.onReady,this.startupDependencies=e.startupDependencies||{services:[],clients:[]},this.logger=i.default,this.routerClient=o.default}}},70010:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(57664),i=r(n(13712)),s=n(72669),a=r(n(5020)),u=r(n(72551));class c extends s._BaseClient{constructor(e){super(e),this.listeners=[],this.changeSub=e=>{this.subs||(this.subs={}),this.subs[e]||(this.routerClient.query("configService.addListener",e,(t=>{t&&u.default.system.error("Error adding listener to config service",t),this.routerClient.subscribe(e,this.handleChanges)})),this.subs[e]=!0)},this.handleChanges=(e,t)=>{e&&u.default.system.error(e),t.data.field||(t.data.field=null);const n=t.data.storeData?t.data.storeData:t.data.value;this.triggerListeners(t.data.field?t.data.field:"configService",n)},this.triggerListeners=(e,t)=>{if(this.listeners[e])for(let n=0;n<this.listeners[e].length;n++)"function"==typeof this.listeners[e][n]?this.listeners[e][n](null,{field:e,value:t}):u.default.system.warn("ConfigClient:triggerListeners: listener is not a function",e)},this.set=(e,t)=>{u.default.system.debug("ConfigClient.Set",e),"function"==typeof e?(t=e,i.default.args(t,"function"),e={}):i.default.args(e,"object",t,"function"),this.routerClient.query("config.set",e,((e,n)=>{t(e,n?n.data:null)}))},this.processAndSet=this.processAndSet.bind(this),this.getValue=this.getValue.bind(this),this.getValues=this.getValues.bind(this),this.setValue=this.setValue.bind(this),this.setValues=this.setValues.bind(this),this.removeValue=this.removeValue.bind(this),this.removeValues=this.removeValues.bind(this),this.addListener=this.addListener.bind(this),this.addListeners=this.addListeners.bind(this),this.removeListener=this.removeListener.bind(this),this.removeListeners=this.removeListeners.bind(this),this.setPreference=this.setPreference.bind(this),this.getPreferences=this.getPreferences.bind(this),this.unsetPreference=this.unsetPreference.bind(this)}getValue(e,t=Function.prototype){return"string"==typeof e&&(e={field:e}),new Promise(((n,r)=>{if(!e.field){const e="no field provided";return r(e),t(e)}this.routerClient.query("configService.getValue",{field:e.field},((e,o)=>e?(r(e),t(e)):(n({err:e,data:o.data}),t(e,o.data))))}))}getValues(e,t=Function.prototype){return"function"==typeof e&&(t=e,e=null),e&&!Array.isArray(e)?this.getValue(e,t):new Promise((n=>{this.routerClient.query("configService.getValues",{fields:e},((e,r)=>e?t(e):(n({err:e,data:r.data}),t(e,r.data))))}))}setValue(e,t){const n={field:e.field,value:e.value};return this.routerClient.query("configService.setValue",n,(e=>t?t(e):null))}setValues(e,t){return e?Array.isArray(e)?this.routerClient.query("configService.setValues",e,(e=>t?t(e):null)):u.default.system.error("ConfigClient.SetValues. Params must be an array"):u.default.system.error("ConfigClient.SetValues. No params given")}removeValue(e,t=Function.prototype){if(void 0!==e){if(e.field||"string"!=typeof e)return t("no field provided");e={field:e}}return e.value=null,this.setValue(e,t)}removeValues(e,t=Function.prototype){if(!Array.isArray(e))return t("The passed in parameter needs to be an array");o.map(e,this.removeValue,((e,n)=>t(e,n)))}addListener(e,t,n){let r=null;"function"==typeof e&&(t=e,e={field:r}),({field:r}=e);const o="configService"+(r?`.${r}`:"");return this.listeners[o]?this.listeners[o].push(t):this.listeners[o]=[t],this.changeSub(o),n?n():null}addListeners(e,t,n){if(!Array.isArray(e))return this.addListener({field:e.field},t,n);for(let n=0;n<e.length;n++){let o=null;const i=e[n];var r;"string"==typeof i?o=i:i.field&&(({field:o}=i),r=i.listener);const s="configService"+(o?`.${o}`:"");r||t&&"function"==typeof t&&(r=t),this.listeners[s]?this.listeners[s].push(r):this.listeners[s]=[r],this.changeSub(s)}return n?n():null}removeListener(e,t,n){let r=null;"function"==typeof e&&(n=t,t=e,e={field:r}),({field:r}=e);const o=this.name+(r?`.${r}`:"");if(this.listeners[o])for(let e=0;e<this.listeners[o].length;e++)if(this.listeners[o][e]===t)return this.listeners[o].pop(e),n?n(null,!0):null;return n?n(null,!1):null}removeListeners(e,t,n){if(!Array.isArray(e))return"function"==typeof e?this.removeListener({},e,n):e.field&&this.removeListener(e,t,n),n?.("missing fields");let r=0;for(let n=0;n<e.length;n++){let i=null;const s=e[n];var o;"string"==typeof s?i=s:s.field&&(({field:i}=s),o=e[n].listener);const a="configService"+(i?`.${i}`:"");if(!o){if(!t||"function"!=typeof t)continue;o=t}for(let e=0;e<this.listeners[a].length;e++)this.listeners[a][e]===o&&(this.listeners[a].pop(n),r++)}return r<e.length?n?.("All listeners could not be found",!1):n?n(null,!0):null}get(e,t){u.default.system.debug("ConfigClient.Get",e),u.default.system.deprecated("This functionality has been deprecated. It will be removed in a future Finsemble release. Use getValue instead.",e),1===arguments.length?(t=e,i.default.args(t,"function"),e={}):i.default.args(e,"object",t,"function"),this.routerClient.query("config.get",e,((e,n)=>{t(e,n?n.data:null)}))}processAndSet(e,t){if(u.default.system.debug("ConfigClient.processAndSet",e),i.default.args(e,"object",t,"function=")&&i.default.args2("params.newConfig",e.newConfig,"object","params.overwrite",e.overwrite,"boolean=","params.replace",e.replace,"boolean="),!e.overwrite&&e.replace){const e="cannot use replace option unless overwrite is also true";u.default.system.warn("ConfigClient.processAndSet:",e),t&&t(e,null)}else this.routerClient.query("config.processAndSet",e,((e,n)=>{t&&t(e,n?n.data:null)}))}setPreference(e,t){this.routerClient.query("PreferencesService.setPreference",e,((e,n)=>{t&&t(e,n?n.data:null)}))}async getPreferences(e){await a.default.waitForStartup("preferencesService"),this.routerClient.query("PreferencesService.getPreferences",{},((t,n)=>{u.default.system.debug("ConfigClient.getPreferences response",n),e&&e(t,n?n.data:null)}))}async unsetPreference(e,t){u.default.system.debug("ConfigClient.unsetPreference",e),this.routerClient.query("PreferencesService.unsetPreference",e,((e,n)=>{t&&t(e,n?n.data:null)}))}}const l=new c({startupDependencies:{services:["configService"]},onReady(e){e&&e()},name:"configClient"});t.default=l},75729:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LocalLogger=void 0;const{debug:n,warn:r,log:o,error:i}=console,s=()=>{},a=s,u={warn:r,info:s,log:o,debug:n,error:i,verbose:a,deprecated:i},c={Error:!0,Warn:!0,Info:!0,Log:!0,Debug:!0,Verbose:!0,LocalOnly:!1},l={console:{Error:!0,Warn:!0,Info:!0,Log:!0,Debug:!0},dev:c,system:c,perf:c};function f(e){return"logger.service.logMessages"===e}t.LocalLogger=class{constructor(){this.start=()=>{},this.isLogMessage=f,this.setting=()=>l,this.callStack=()=>function(){const{stack:e}=function(){try{throw Error("")}catch(e){return e}}(),t=("\n",4,e.split("\n",4).join("\n").length);return`Log Stack: \n${e.substring(t).substr(1)}`}(),this.unregisterClient=()=>{},this.setRouterClient=()=>{},this.warn=r,this.info=s,this.log=o,this.debug=n,this.error=i,this.verbose=a,this.system=u,this.perf=u,this.deprecated=i}}},72551:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Logger=t.LoggerConstructor=void 0;const r=n(51742),o=n(75729),i=n(16925),s={Error:!0,Warn:!0,Info:!1,Log:!0,Debug:!1,Verbose:!1,LocalOnly:!1},a={Error:!0,Warn:!0,Info:!0,Log:!0,Debug:!0},u=n(38172);t.LoggerConstructor=function(e){const o=this;let c;o.RouterClient=e&&e.RouterClient;let l=!1,f=!1;const d=o;let p,h,y=0,g=0;this.startupTime=0;let m=[];if("undefined"==typeof window)return;let v=r.System.Window.getCurrent().name;window.top!==window&&(v=`${v}.Frame`),this.onLogStateChangeCallback=[];let b={console:a,dev:s,system:s,perf:s};function w(e,t,n){this.category=e,!c&&r.System.isBrowserView()&&(c=r.System.getViewId()),this.logClientName=c?`${v}: view-${c}`:v,this.logType=t,this.logData=n,this.logTimestamp=window.performance.timing.navigationStart+window.performance.now()+y}function _(e,t){e&&e.dev&&(b=e,o.onLogStateChangeCallback.forEach((t=>{t(e)}))),function(e){d.system.debug("Logger updateQueueBasedOnState",e,y,"QUEUE LENGTH",m.length,b);const t=[];for(let n=0,{length:r}=m;n<r;n++)if(b[m[n].category][m[n].logType]&&!b[m[n].category].LocalOnly)e&&(m[n].logTimestamp=m[n].logTimestamp+y),t.push(m[n]);else if(b[m[n].category][m[n].logType]&&b[m[n].category].LocalOnly){const e=m[n];console.log(e.category,e.logType,e.logTimestamp-window.performance.timing.navigationStart,e.logData,"(Previously queued!)")}m=t}(t)}function S(){const{stack:e}=function(){try{throw Error("")}catch(e){return e}}(),t=("\n",4,e.split("\n",4).join("\n").length);return`Log Stack: \n${e.substring(t).substr(1)}`}this.onStateChanged=e=>{-1===this.onLogStateChangeCallback.indexOf(e)&&this.onLogStateChangeCallback.push(e)},this.setClientName=function(e){console.error("logger.setClientName() is deprecated"),v=e},this.getClientName=function(){return console.error("logger.getClientName() is deprecated"),v},this.clearMessageList=function(){m=[]},this.callStack=function(){return S()},this.setting=function(){return b};const C=console.error,E=console.warn,A=console.info,O=console.log,T=console.debug;function I(e){return e.reduce(((e,t)=>e.concat(Array.isArray(t)?I(t):t)),[])}function R(e,t){try{e.apply(console,I(t))}catch(e){(t=[]).push(S())}}let L=()=>{m.length>0&&(o.RouterClient.transmit("logger.service.logMessages",m),d.clearMessageList())};function x(e,n,r){let o,i=!1,s=!0;"forceObjectsToLogger"===r[0]&&(i=!0,s=!1,r.splice(0,1)),r=r.map((e=>s&&function(e){const t=[],n=[e];let r=0,o=0;for(;n.length&&o<1e3;){o++;const e=n.pop();if("boolean"==typeof e)r+=4;else if("string"==typeof e)r+=2*e.length;else if("number"==typeof e)r+=8;else if("object"==typeof e&&-1===t.indexOf(e)){t.push(e);for(const t in e)n.push(e[t])}}return r}(e)>5e4?(R(A,["Message too large to send to the logger.",r]),"Log argument greater than 50KB. Check local Console to see output of the object."):e));try{for(let e=0;e<r.length;e++)r[e]instanceof Error&&(r[e]=r[e].toString());o=new w(e,n,JSON.stringify(r))}catch(t){r.splice(0,r.length),r.push(S()),o=new w(e,n,`*** Logging Error: ${JSON.stringify(r)}`)}i||!function(e){return!0===e.logData.includes("Finsemble.heartbeat")}(o)?function(e){if(m.length<2e4)m.push(e);else{console.error("Logging Queue Overflowed! Dumping queue here then continuing.",m.length);let e,n=0;for(;e=m.shift();)console.log("Message "+n++,e);t.Logger.system.error("Logging Queue Overflowed! Dumping queue in client then continuing.")}}(o):++g<=5&&R(A,[`"Filtered Logger Message (${g} of first 5 shown)`,o]),f&&L()}function j(){const{windowName:e}=i.Startup.getInstance().getStartupData();v=e,window.top!==window&&(v=`${v}.Frame`);const t=`finsemble.logger.client.${v}`;!c&&r.System.isBrowserView()&&(c=r.System.getViewId()),d.system.debug("logger.service.registering",v),r.System.Window.getCurrent().getOptions((n=>{const r=n?.customData?.component?.centralLoggerNamePrefix;o.RouterClient.query("logger.service.register",{clientName:v,clientChannel:t,windowName:e,viewId:c,centralLoggerNamePrefix:r},((e,t)=>{if(e)setTimeout(j,750);else{for(const e of m)e.viewId=c;f=!0,d.system.debug("logger.service.registered"),p=t.data,"routerService"!==v?(y=h,_(p,!0)):_(p,!1),x("system","Debug",["Logger Registered"]),L()}}))})),o.RouterClient.addListener(t,((e,t)=>{d.system.debug("logger.client.setLogState",t.data),p=t.data,_(p,!1)}))}L=u(L,"routerService"===v?100:250,{leading:!1}),this.error=function(){const e=Array.prototype.slice.call(arguments);e.push(S()),b.dev.Error&&!b.dev.LocalOnly&&x("dev","Error",e),e.unshift(`dev error (${window.performance.now()}):`),R(C,e)},this.warn=function(){if(b.dev.Warn){const e=Array.prototype.slice.call(arguments);e.push(S()),b.dev.Warn&&!b.dev.LocalOnly&&x("dev","Warn",e),b.dev.Warn&&b.dev.LocalOnly&&(e.unshift(`dev warn (${window.performance.now()}):`),R(E,e))}},this.info=function(){if(b.dev.Info){const e=Array.prototype.slice.call(arguments);b.dev.Info&&!b.dev.LocalOnly&&x("dev","Info",e),b.dev.Info&&b.dev.LocalOnly&&(e.unshift(`dev info (${window.performance.now()}):`),R(A,e))}},this.log=function(){if(b.dev.Log){const e=Array.prototype.slice.call(arguments);b.dev.Log&&!b.dev.LocalOnly&&x("dev","Log",e),b.dev.Log&&b.dev.LocalOnly&&(e.unshift(`dev log (${window.performance.now()}):`),R(O,e))}},this.debug=function(){if(b.dev.Debug){const e=Array.prototype.slice.call(arguments);b.dev.Debug&&!b.dev.LocalOnly&&x("dev","Debug",e),b.dev.Debug&&b.dev.LocalOnly&&(e.unshift(`dev debug (${window.performance.now()}):`),R(T,e))}},this.verbose=function(){if(b.dev.Verbose){const e=Array.prototype.slice.call(arguments);b.dev.Verbose&&!b.dev.LocalOnly&&x("dev","Verbose",e),b.dev.Verbose&&b.dev.LocalOnly&&(e.unshift(`dev verbose (${window.performance.now()}):`),R(T,e))}},this.deprecated=this.error,this.system={},this.system.error=function(){const e=Array.prototype.slice.call(arguments);e.push(S()),b.system.Error&&!b.system.LocalOnly&&x("system","Error",e),e.unshift(`system error (${window.performance.now()}):`),R(C,e)},this.system.warn=function(){if(b.system.Warn){const e=Array.prototype.slice.call(arguments);e.push(S()),b.system.Warn&&!b.system.LocalOnly&&x("system","Warn",e),b.system.Warn&&b.system.LocalOnly&&(e.unshift(`system warn (${window.performance.now()}):`),R(E,e))}},this.system.info=function(){if(b.system.Info){const e=Array.prototype.slice.call(arguments);b.system.Info&&!b.system.LocalOnly&&x("system","Info",e),b.system.Info&&b.system.LocalOnly&&(e.unshift(`system info (${window.performance.now()}):`),R(A,e))}},this.system.log=function(){if(b.system.Log){const e=Array.prototype.slice.call(arguments);b.system.Log&&!b.system.LocalOnly&&x("system","Log",e),b.system.Log&&b.system.LocalOnly&&(e.unshift(`system log (${window.performance.now()}):`),R(O,e))}},this.system.debug=function(){if(b.system.Debug){const e=Array.prototype.slice.call(arguments);b.system.Debug&&!b.system.LocalOnly&&x("system","Debug",e),b.system.Debug&&b.system.LocalOnly&&(e.unshift(`system debug (${window.performance.now()}):`),R(T,e))}},this.system.verbose=function(){if(b.system.Verbose){var e=Array.prototype.slice.call(arguments);b.system.Verbose&&!b.system.LocalOnly&&x("system","Verbose",e),b.system.Verbose&&b.system.LocalOnly&&((e=Array.prototype.slice.call(arguments)).unshift(`system log (${window.performance.now()}):`),R(T,e))}},this.system.deprecated=this.system.error,this.perf={},this.perf.error=function(){const e=Array.prototype.slice.call(arguments);e.push(S()),b.perf.Error&&!b.perf.LocalOnly&&x("perf","Error",e),e.unshift(`perf error (${window.performance.now()}):`),R(C,e)},this.perf.warn=function(){if(b.perf.Warn){const e=Array.prototype.slice.call(arguments);e.push(S()),b.perf.Warn&&!b.perf.LocalOnly&&x("perf","Warn",e),b.perf.Warn&&b.perf.LocalOnly&&(e.unshift(`perf warn (${window.performance.now()}):`),R(E,e))}},this.perf.info=function(){if(b.perf.Info){const e=Array.prototype.slice.call(arguments);b.perf.Info&&!b.perf.LocalOnly&&x("perf","Info",e),b.perf.Info&&b.perf.LocalOnly&&(e.unshift(`perf info (${window.performance.now()}):`),R(A,e))}},this.perf.log=function(){if(b.perf.Log){const e=Array.prototype.slice.call(arguments);b.perf.Log&&!b.perf.LocalOnly&&x("perf","Log",e),b.perf.Log&&b.perf.LocalOnly&&(e.unshift(`perf log (${window.performance.now()}):`),R(O,e))}},this.perf.debug=function(){if(b.perf.Debug){const e=Array.prototype.slice.call(arguments);b.perf.Debug&&!b.perf.LocalOnly&&x("perf","Debug",e),b.perf.Debug&&b.perf.LocalOnly&&(e.unshift(`perf debug (${window.performance.now()}):`),R(T,e))}},this.perf.verbose=function(){if(b.perf.Verbose){const e=Array.prototype.slice.call(arguments);b.perf.Verbose&&!b.perf.LocalOnly&&x("perf","Verbose",e),b.perf.Verbose&&b.perf.LocalOnly&&(e.unshift(`perf verbose (${window.performance.now()}):`),R(T,e))}},this.perf.deprecated=this.perf.error,this.unregisterClient=function(e=null,t=Function.prototype){d.system.debug("logger.service.unregister",v,e,c),L();const n=e||{clientName:v,viewId:c};o.RouterClient.query("logger.service.unregister",n,t)},this.isLogMessage=function(e){return"logger.service.logMessages"===e},this.status="offline",this.setRouterClient=e=>{this.RouterClient=e},this.start=function(){let e;this.startupTime=performance.now(),o.RouterClient||(console.log("No instance of the RouterClient found for this instance of the Logger. Dynamically requiring it."),o.RouterClient=n(39319).default);const t=()=>{e=o.RouterClient.subscribe("Finsemble.Service.State.loggerService",((t,n)=>{"ready"===n.data.state&&(o.status="online",d.system.debug("Logger onReady",v),o.RouterClient.calibrateTimeWithRouterService((e=>{h=e,l||(o.startupTime=performance.now()-o.startupTime,j(),l=!0)})),o.RouterClient.unsubscribe(e))}))};"routerService"===window.name?o.RouterClient.query("logger.service.register",{},(e=>{e?setTimeout(t,750):t()})):o.RouterClient.onReady(t),r.System.isBrowserView()&&window.addEventListener("beforeunload",(()=>{o.unregisterClient()}))}},t.Logger="undefined"!=typeof window?new t.LoggerConstructor:new o.LocalLogger,t.default=t.Logger},40568:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RouterClientConstructor=void 0;const o=r(n(82369)),i=r(n(13712)),s=r(n(73699)),a=n(51742),u=n(72551),c=n(6192),l=n(75729),f=n(50586),d=[];let p=u.Logger;function h(e,t={}){if(null===e||"object"!=typeof e)return e;if(e.constructor==Date||e.constructor==RegExp||e.constructor==Function||e.constructor==String||e.constructor==Number||e.constructor==Boolean)return new e.constructor(e);t=t||new e.constructor;for(const n in e)t[n]=void 0===t[n]?h(e[n],null):t[n];return t}t.RouterClientConstructor=function(){let e,t;const n={},r={},u={},y={},g={},m={},v={},b={},w={},_={};let S,C=null,E=!1;const A=[];function O(){this.header={origin:S,type:"initialHandshake"}}function T(e,t){this.header={origin:S,type:"timeCalibration"},this.clientBaseTime=e,this.serviceBaseTime=t}function I(e){this.header={origin:S,type:"addListener",channel:e}}function R(e,t,n){this.header={origin:S,type:"transmit",channel:e},this.data=t,this.options=n}function L(e){this.header={origin:S,type:"removeListener",channel:e}}function x(e){this.header={origin:S,type:"addResponder",channel:e}}function j(e,t,n){this.header={origin:S,type:"query",queryID:e,channel:t},this.data=n}function k(e,t,n){this.header={origin:S,type:"queryResponse",queryID:e,error:t},this.data=n}function N(e){this.header={origin:S,type:"removeResponder",channel:e}}function P(e,t){this.header={origin:S,type:"subscribe",subscribeID:e,topic:t}}function D(e,t){this.header={origin:S,type:"unsubscribe",subscribeID:e,topic:t}}function M(e,t){this.header={origin:S,type:"publish",topic:e},this.data=t}function F(e,t,n,r){this.header={origin:S,type:"notify",subscribeID:e,topic:t,error:n},this.data=r}function W(e,t,n){this.header={origin:S,type:"addPubSubResponder",topic:e,handleOnServer:n},this.data=t}function $(e){this.header={origin:S,type:"removePubSubResponder",topic:e}}function B(e){C?C.send(e):(p.system.info("RouterClient: Queuing message since router initialization not complete",e),d.push(e))}function U(){return this.header.origin===this.header.lastClient}function V(e,t){p.system.info("RouterClient: outgoing query response","CHANNEL",this.header.channel,"RESPONSE DATA",t,"QUERY ID",this.header.queryID),B(new k(this.header.queryID,e,t))}function H(e,t){const n=e[t.header.channel];void 0===n?p.system.warn(`RouterClient: no query responder define on channel ${t.header.channel} incoming from ${t.header.origin}`,t):t.header.error?(p.system.warn("RouterClient: queryResponder error",t),n(t.header.error,null),delete e[t.header.channel]):(t.originatedHere=U,t.sendQueryResponse=V.bind(t),p.system.info("RouterClient: incoming query","CHANNEL",t.header.channel,"FROM",t.header.origin,"QUERY MESSAGE",t),n(null,t))}function q(e,t){if(e)p.system.warn("RouterClient: income publish rejected by pubsub responder",e,t);else{y[this.header.topic]=t;const n=m[this.header.topic];if(void 0!==n)for(let r=0;r<n.length;r++)p.system.info("RouterClient: sending pubsub notify","TOPIC",this.header.topic,"NOTIFY DATA",t),B(new F(n[r],this.header.topic,e,t))}}function z(e,t){var n,r,o;(function(e){let t=!1;return void 0===e&&(t=!0),t})(t)||B(new F(this.header.subscribeID,this.header.topic,e,t)),e?p.system.warn("RouterClient: incoming subscription rejected by pubsub responder","TOPIC",this.header.topic,"MESSAGE",this):(n=m,r=this.header.topic,o=this.header.subscribeID,r in n?n[r].push(o):n[r]=[o],p.system.info("RouterClient: incoming subscription added","TOPIC",this.header.topic,"MESSAGE",this))}function G(){!function(e,t,n){let r=!1;if(t in e){const o=m[t];for(let i=0;i<o.length;i++)if(n===o[i]){o.splice(i,1),0===o.length&&delete e[t],r=!0,p.system.info("RouterClient: PubSub removeListener","TOPIC",t,"FROM",n);break}}r||p.system.warn(`RouterClient: tried to remove non-existent listener on ${t} from ${JSON.stringify(n)}`)}(m,this.header.topic,this.header.subscribeID)}function Y(o){switch(p.system.verbose("Incoming Message Type",o.header.type,o),o.header.type){case"transmit":!function(e,t){const n=e[t.header.channel]||[],r=[];if(Array.isArray(n)&&0!==n.length){t.originatedHere=U,n.forEach((e=>{r.push(e)}));for(let e=0;e<r.length;e++)p.isLogMessage(t.header.channel)||p.system.info("RouterClient: incoming transmit","CHANNEL",t.header.channel,"FROM",t.header.origin,"MESSAGE",t),r[e](null,t)}else p.system.warn(`RouterClient: no listener for incoming transmit on channel ${t.header.channel} from ${t.header.origin}`,t)}(n,o);break;case"query":H(r,o);break;case"queryResponse":!function(e,t){const n=e[t.header.queryID];void 0===n?p.system.warn("RouterClient: no handler for incoming query response","QUERY ID",t.header.queryID):(function(e,t){const n=e[t];void 0!==n&&clearTimeout(n)}(_,t.header.queryID),t.header.error?(p.system.debug("RouterClient: incoming queryResponse error",t.header,"QUERY ID",t.header.queryID),n(t.header.error,t)):(p.system.info("RouterClient: incoming query response","RESPONSE MESSAGE",t,"QUERY ID",t.header.queryID),n(null,t)),delete e[t.header.queryID])}(w,o);break;case"notify":!function(e,t){const n=e[t.header.subscribeID];void 0===n?p.system.warn("RouterClient: no subscription handler defined for incoming notify for subscriberID",t.header.subscribeID,t):t.header.error?(p.system.info("RouterClient: incoming PubSub notify error for subscriberID","SUBSCRIBER ID",t.header.subscribeID,"NOTIFY MESSAGE",t),n(t.header.error,t)):(t.originatedHere=U,p.system.info("RouterClient: incoming PubSub notify","SUBSCRIBER ID",t.header.subscribeID,"NOTIFY MESSAGE",t),n(null,t))}(v,o);break;case"publish":!function(e){let t=u[e.header.topic];if(void 0===t)for(const n in g)if(g[n].test(e.header.topic)){t=u[n];break}void 0===t?p.system.warn("RouterClient: no pubsub responder defined for incoming publish","TOPIC",e.header.topic,"PUBLISH MESSAGE",e):(e.sendNotifyToAllSubscribers=q,t.publishCallback?(p.system.info("RouterClient: incoming PubSub publish callback invoked","TOPIC",e.header.topic,"PUBLISH MESSAGE",e),t.publishCallback(null,e)):(p.system.info("RouterClient: incoming PubSub publish","TOPIC",e.header.topic,"PUBLISH MESSAGE",e),e.sendNotifyToAllSubscribers(null,e.data)))}(o);break;case"subscribe":!function(e){p.system.info("RouterClient: PubSub subscribe","TOPIC",e.header.topic);let t=u[e.header.topic];if(void 0===t)for(const n in g)if(g[n].test(e.header.topic)){t=u[n];let r=y[e.header.topic];void 0===r&&(r=y[n]),y[e.header.topic]=r;break}void 0===t?p.system.warn("RouterClient: no pubsub responder defined for incoming subscribe",e):e.header.error?p.system.warn(`RouterClient: pubsub error received from router service: ${JSON.stringify(e.header.error)}`):(e.sendNotifyToSubscriber=z,t.subscribeCallback?(e.data=y[e.header.topic],t.subscribeCallback(null,e)):e.sendNotifyToSubscriber(null,y[e.header.topic]))}(o);break;case"unsubscribe":!function(e){let t=u[e.header.topic];if(void 0===t)for(const n in g)if(g[n].test(e.header.topic)){t=u[n];break}void 0===t?p.system.warn("RouterClient: no pubsub responder defined for incoming unsubscribe","TOPIC",e.header.topic,"UNSUBSCRIBE MESSAGE",e):(e.removeSubscriber=G,t.unsubscribeCallback?(p.system.info("RouterClient: incoming unsubscribe callback","TOPIC",e.header.topic,"UNSUBSCRIBE MESSAGE",e),t.unsubscribeCallback(null,e)):(p.system.info("RouterClient: incoming unsubscribe","TOPIC",e.header.topic,"UNSUBSCRIBE MESSAGE",e),e.removeSubscriber()))}(o);break;case"timeCalibration":const i=()=>{t?t(o):setTimeout((()=>{i()}),10)};i();break;case"initialHandshakeResponse":e()}}function J(e,t){t.header.lastClient=S,t.header.incomingTransportInfo=e,Y(t)}this.startupTime=0,this.notificationURL="";const Q=(t,n,r)=>{let i,a;p.system.debug(`Name of transport to establish: ${n}`),this.notificationURL=t.notificationURL;let u,c,l,f,h=!1,y=0;const g=t=>{a=0,p.system.debug("WINDOW LIFECYCLE:STARTUP:RouterClient:transport ready","TRANSPORT OBJECT",t),C=t,e=f,l(),i=setInterval(l,200)};u=e=>{p.system.error("RouterClientError",e)};const m=()=>{p.system.debug("WINDOW LIFECYCLE:STARTUP:RouterClient:getClientTransport","ROUTER PARAMS:",t),o.default.getTransport(t,n,J,S,"RouterService").then(g).catch(u)};c=()=>{if(clearInterval(i),y++,y<=3)p.system.error("WINDOW LIFECYCLE:STARTUP:RouterClient: failure to connect to router service. Retrying...",y,t),m();else{const e="A cross domain transport has failed to connect. Cross domain components may not work. Please contact your administrator.";p.system.error(e,t),s.default.alert("dev","ONCE-SINCE-STARTUP","FSBL-Internal-Transport-Failure",e,{url:this.notificationURL})}},l=()=>{p.system.debug("WINDOW LIFECYCLE:STARTUP:RouterClient: sendHandshake",a),B(new O),a++>50&&c()},f=()=>{if(!h){if(p.system.debug(`WINDOW LIFECYCLE:STARTUP:RouterClient connected: Starting ${S} with transport ${C.identifier()}`),h=!0,clearInterval(i),d)for(let e=0;e<d.length;e++){p.system.debug("RouterClient: firing queued msg");const t=d[e];C.send(t)}r&&r()}},m()};function K(){return`${S}.${f.v4()}`}function X(e,t){let n=!1;return void 0!==e[t]&&(delete e[t],n=!0),n}this.calibrateTimeWithRouterService=function(e){let n,r=0,o=1/0;t=function(t){r++,r>5?function(t){let r=0;for(let e=1;e<5;e++){const i=t.clientBaseTime[e-1],s=t.clientBaseTime[e]-i,a=t.serviceBaseTime[e-1]-(i+s/2);s<o&&(o=s,n=a),r+=a,p.system.debug("calibrationCalculation Intermediate Values","lastRRT",s,"lastOffset",a,"fastestOffset",n,"fastestRRT",o)}r/=4,p.system.debug("RouterClient calibrationCalculation","Average Offset",r,"Chosen FastestOffset",n,t),e(n)}(t):(t.clientBaseTime.push(c.Globals.performance.timing.navigationStart+c.Globals.performance.now()),B(new T(t.clientBaseTime,t.serviceBaseTime)))},t(new T([],[]))},this.onReady=e=>new Promise((t=>{i.default.args(e,"function");const n=()=>{e&&e(),t()};E?n():A.push(n)})),this.addListener=function(e,t){p.system.info("RouterClient.addListener","CHANNEL",e),i.default.args(e,"string",t,"function"),function(e,t,n){let r=!1;const o=e[t];return void 0===o||0===o.length?(e[t]=[n],r=!0):o.push(n),r}(n,e,t)&&B(new I(e))},this.transmit=function(e,t,n={suppressWarnings:!1}){p.isLogMessage(e)||p.system.info("RouterClient.transmit","TO CHANNEL",e,"EVENT",t),i.default.args(e,"string",t,"any"),B(new R(e,t,n))},this.removeListener=function(e,t){p.system.info("RouterClient.removeListener","CHANNEL",e,"EVENT HANDLER",t),i.default.args(e,"string",t,"function"),function(e,t,n){let r=!1;const o=e[t];if(void 0!==o){const e=o.indexOf(n);e>-1?(o.splice(e,1),0===o.length&&(r=!0)):p.system.warn(`no listener defined for channel: ${t}`)}return r}(n,e,t)&&B(new L(e))},this.addResponder=(e,t)=>{if(p.system.info("RouterClient.addResponder","CHANNEL",e),i.default.args(e,"string",t,"function"),function(e,t,n){let r=!1;return void 0===e[t]&&(e[t]=n,r=!0),r}(r,e,t))B(new x(e));else{const n=`RouterClient.addResponder: Responder already locally defined for channel ${e}`;p.system.warn(n),t(n,null)}},this.query=(e,t,n,r)=>{const o=`${K()}.${e}`,s=window.performance.timing.navigationStart+window.performance.now(),a=window.performance.timing.navigationStart,u=window.performance.now();return p.system.info("RouterClient.query","RESPONDER CHANNEL",e,"QUERY EVENT",t,"PARAMS",n,"QUERY ID",o,{timestamp:s,navstart:a,timenow:u}),r||(r=n,n={timeout:2e4}),i.default.args(e,"string",t,"any=",n,"object=",r,"function"),n=n||{},i.default.args2("params.timeout",n.timeout,"number"),new Promise((function(i){w[o]=(c,l)=>{i({err:c,response:l}),"function"==typeof r?r(c,l):p.system.warn("No response event handler passed to RouterClient.query","RESPONDER CHANNEL",e,"QUERY EVENT",t,"PARAMS",n,"QUERY ID",o,{timestamp:s,navstart:a,timenow:u})},c.Globals.runningInFSBLUnitTest||function(e,t,n,r){r>0&&(e[t]=setTimeout((()=>{p.system.warn(`RouterClient: timeout waiting on query response on channel ${n} for queryID ${t} on timer ${e[t]} timeout=${r}`)}),r))}(_,o,e,n.timeout),B(new j(o,e,t))}))},this.removeResponder=e=>{p.system.info("RouterClient.removeResponder","RESPONDER CHANNEL",e),i.default.args(e,"string"),X(r,e)&&B(new N(e))},this.addPubSubResponder=(e,t,n,r)=>{let o,s;p.system.info("RouterClient.addPubSubResponder","TOPIC",e,"INITIAL STATE",t,"PARAMS",n),i.default.args(e,"any",t,"object=",n,"object="),n=n||{},i.default.args2("params.subscribeCallback",n.subscribeCallback,"function=","params.publishCallback",n.publishCallback,"function=")&&i.default.args2("params.unsubscribeCallback",n.unsubscribeCallback,"function="),void 0===n.subscribeCallback&&void 0===n.publishCallback&&void 0===n.unsubscribeCallback?(t=t||{},B(new W(e.toString(),t,!0)),s="success"):!function(e,t,n,r){let o=!1;return void 0===u[e.toString()]&&(e instanceof RegExp&&(g[e.toString()]=e,p.system.info(`RouterClient: PubSub RegEx added for topic ${e.toString()}`)),u[e.toString()]={subscribeCallback:t,publishCallback:n,unsubscribeCallback:r},o=!0),o}(e,n.subscribeCallback,n.publishCallback,n.unsubscribeCallback)?(o=`RouterClient.addPubSubResponder: Responder already locally defined for topic ${e}`,p.system.error(o)):(t=t||{},y[e.toString()]=h(t),B(new W(e.toString(),t,!1)),s="success"),r&&r(o,s)},this.removePubSubResponder=e=>{p.system.info("RouterClient.removePubSubResponder","TOPIC",e),i.default.args(e,"any"),X(u,e)?(delete y[e.toString()],delete g[e.toString()],B(new $(e))):p.system.warn(`RouterClient.removePubSubResponder failed: Could not find responder for topic ${e}`)},this.subscribe=(e,t)=>{p.system.info("RouterClient.subscribe","TOPIC",e),i.default.args(e,"string",t,"function");const n=K();return function(e,t,n,r){e[t]=n,b[t]=r}(v,n,t,e),B(new P(n,e)),{subscribeID:n,topic:e}},this.publish=(e,t)=>{p.system.info("RouterClient.publish","TOPIC",e,"EVENT",t),i.default.args(e,"string",t,"any"),B(new M(e,t))},this.unsubscribe=e=>{p.system.info("RouterClient.unsubscribe","SUBSCRIBE ID",e),i.default.args(e,"object")&&i.default.args2("subscribeIDStruct.subscribeID",e.subscribeID,"string"),!function(e,t){let n=!1;return void 0!==e[t]&&(delete e[t],n=!0),n}(v,e.subscribeID)?p.system.warn(`RouterClient.unsubscribe: Could not find subscribeID for topic ${e.topic}`):B(new D(e.subscribeID,e.topic))},this.trustedMessage=function(e){let t=!0;return p.system.debug("RouterClient.trustedMessage header",e.header),"SharedWorker"===e.header.originIncomingTransportInfo.transportID&&(t=!0),t},this.disconnectAll=function(){p.system.info("RouterClient.disconnectAll");for(const e in n)p.system.debug(`RouterClient.disconnectAll is removing listener on ${e}`),B(new L(e)),delete n[e];for(const e in r)p.system.debug(`RouterClient.disconnectAll is removing responder on ${e}`),B(new N(e)),delete r[e];for(const e in u)p.system.debug(`RouterClient.disconnectAll is removing pubsub responder on ${e}`),B(new $(e)),delete u[e.toString()],delete y[e.toString()],delete g[e.toString()];for(const e in v){const t=b[e];p.system.debug(`RouterClient.disconnectAll is removing subscriber on ${t}`),B(new D(e,t)),delete v[e],delete b[e]}},this.start=e=>new Promise((async t=>{if(this.started){const e="RouterClient.start() called twice. Ignoring second call.";return p.warn(e),t(e)}this.started=!0,p=new l.LocalLogger,"loggerService"===a.System.Window.getCurrent().name&&(p=new l.LocalLogger),S=`RouterClient.${e.windowName}.${f.v4()}`;const n=`"RouterClient Check: connecting new client for ${S}`;p.system.debug(n),console.debug(n),Q(e,e.transportName,(()=>{!function(){for(p.system.debug("WINDOW LIFECYCLE:STARTUP:RouterClient Ready"),E=!0;A.length>0;)p.system.debug("WINDOW LIFECYCLE:STARTUP:RouterClient parentReady invoked"),A.shift()()}(),t(null)}))})),this.stop=()=>{this.disconnectAll(),o.default.close(),this.started=!1}}},39319:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RouterConnectionInstance=t.RouterConnectionSingleton=void 0;const r=n(40568),o=n(72551),i=n(4971);t.RouterConnectionSingleton=i.singleton("RouterClient",r.RouterClientConstructor),o.Logger.setRouterClient(t.RouterConnectionSingleton);var s=n(40568);Object.defineProperty(t,"RouterConnectionInstance",{enumerable:!0,get:function(){return s.RouterClientConstructor}}),t.default=t.RouterConnectionSingleton},6192:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Globals=void 0,t.Globals="undefined"==typeof window?n.g:window},4971:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.singleton=void 0,t.singleton=(e,t)=>{const r=Symbol.for(`com.finsemble.singleton.${e}`);return Object.getOwnPropertySymbols(n.g).indexOf(r)>-1||(n.g[r]=new t),n.g[r]}},78379:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.MOVE_REASON=t.LAUNCHER_SERVICE=t.HEARTBEAT_TIMEOUT_CHANNEL=t.COMPONENT_STATE_STORAGE_TOPIC=t.WINDOW_SERVICE_REQUESTS=t.WORKSPACE=t.WINDOW=t.INTERRUPTIBLE_EVENTS=t.EVENT_INTERRUPT_CHANNEL=t.DOCKING=t.SERVICE_STOP_CHANNEL=t.SERVICE_START_CHANNEL=t.WINDOWSTATE=t.SERVICES_STATE_CHANNEL=t.CLIENT_SERVER_MAPPING=t.SERVICE_QUERY_READY_CHANNEL=t.SERVICE_CLOSED_CHANNEL=t.SERVICE_CLOSING_CHANNEL=t.SERVICE_READY_CHANNEL=t.SERVICE_INITIALIZING_CHANNEL=t.APPLICATION_STATE_CHANNEL=t.WRAPPERS=void 0,t.WRAPPERS={EVENTS:["title-changed","bringToFront","setBounds","alwaysOnTop","setOpacity"]},t.APPLICATION_STATE_CHANNEL="Finsemble.Application.State",t.SERVICE_INITIALIZING_CHANNEL="Finsemble.ServiceManager.serviceInitializing",t.SERVICE_READY_CHANNEL="Finsemble.ServiceManager.serviceReady",t.SERVICE_CLOSING_CHANNEL="Finsemble.ServiceManager.serviceClosing",t.SERVICE_CLOSED_CHANNEL="Finsemble.ServiceManager.serviceClosed",t.SERVICE_QUERY_READY_CHANNEL=e=>`Finsemble.ServiceManager.queryReady.${e}`,t.CLIENT_SERVER_MAPPING=e=>({authenticationClient:"authenticationService",configClient:"configService",distributedStoreClient:"dataStoreService",hotkeysClient:"hotkeysService",linkerClient:"linkerService",logger:"loggerService",searchClient:"searchService",storageClient:"storageService",windowClient:"windowService",workspaceClient:"workspaceService"}[e]),t.SERVICES_STATE_CHANNEL="Finsemble.State.Services",(n=t.WINDOWSTATE||(t.WINDOWSTATE={}))[n.NORMAL=0]="NORMAL",n[n.MINIMIZED_WAS_NORMAL=1]="MINIMIZED_WAS_NORMAL",n[n.MAXIMIZED=2]="MAXIMIZED",n[n.MINIMIZED_WAS_MAXIMIZED=3]="MINIMIZED_WAS_MAXIMIZED",n[n.TRANSITIONING=4]="TRANSITIONING",t.SERVICE_START_CHANNEL="Finsemble.Service.Start",t.SERVICE_STOP_CHANNEL="Finsemble.Service.Stop",t.DOCKING={GROUP_UPDATE:"DockingService.groupUpdate",WORKSPACE_GROUP_UPDATE:"Finsemble.WorkspaceService.groupUpdate",REQUEST_PUBLISH:"DockingService.requestGroupDataPublish"},t.EVENT_INTERRUPT_CHANNEL="Finsemble.Event.Interrupt",t.INTERRUPTIBLE_EVENTS=["close-requested","closed","close-complete","_container-close-handlers"],t.WINDOW={DELAYABLE_EVENTS:["close-requested","closed","close-complete","_container-close-handlers"],CANCELABLE_EVENTS:["close-requested"]},t.WORKSPACE={DELAYABLE_EVENTS:["load-requested","close-requested","save-requested"],CANCELABLE_EVENTS:["close-requested"],CLEAN_SHUTDOWN:"Finsemble.Workspace.cleanShutdown",UPDATE_PUBSUB:"Finsemble.WorkspaceService.update",STORAGE_TOPIC:"finsemble.workspace",CACHE_STORAGE_TOPIC:"finsemble.workspace.cache",ALL_WORKSPACES:"finsemble.allWorkspaces",ACTIVE_WORKSPACE:"activeWorkspace",LAST_USED_WORKSPACE_TOPIC:"finsemble",LAST_USED_WORKSPACE_NAME:"finsemble.lastUsedWorkspace.name",LAST_USED_WORKSPACE:"finsemble.lastUsedWorkspace",INITIAL_WORKSPACE_PREFERENCE:"finsemble.initialWorkspace",PUBLISH_REASONS:{INIT:"workspace:initialization",LOAD_DATA_RETRIEVED:"workspace:load:dataRetrieved",LOAD_FINISHED:"workspace:load:finished",WINDOW_REMOVED:"window:remove",WINDOW_ADDED:"window:add",LOAD_STARTED:"workspace:load:start",WORKSPACE_REMOVED:"Workspace:remove",WORKSPACE_RENAMED:"rename",SWITCHTO_TERMINATED:"workspace:switchTo:terminated",NEW_WORKSPACE:"new workspace",SAVE_AS:"APPLICATION LIFECYCLE:WORKSPACE LIFECYCLE:SaveAs:Workspace:Save As"},API_CHANNELS:{NEW_WORKSPACE:"Finsemble.Workspace.NewWorkspace",SAVE:"Finsemble.Workspace.Save",RENAME:"Finsemble.Workspace.Rename",SAVE_AS:"Finsemble.Workspace.SaveAs",SWITCH_TO:"Finsemble.Workspace.SwitchTo",IMPORT:"Finsemble.Workspace.Import",EXPORT:"Finsemble.Workspace.Export",REMOVE:"Finsemble.Workspace.Remove",SAVE_GLOBAL_DATA:"Finsemble.Workspace.SaveGlobalData",SAVE_VIEW_DATA:"Finsemble.Workspace.SaveViewData",GET_GLOBAL_DATA:"Finsemble.Workspace.GetGlobalData",GET_VIEW_DATA:"Finsemble.Workspace.GetViewData",GET_WORKSPACES:"Finsemble.Workspace.GetWorkspaces",GET_WORKSPACE_NAMES:"Finsemble.Workspace.GetWorkspaceNames",SET_WORKSPACE_ORDER:"Finsemble.Workspace.SetWorkspaceOrder",GET_ACTIVE_WORKSPACE:"Finsemble.Workspace.GetActiveWorkspace",GET_ACTIVE_WORKSPACE_DIRTY:"Finsemble.Workspace.GetActiveWorkspaceDirty",GET_TEMPLATES:"Finsemble.Workspace.GetTemplates",IMPORT_TEMPLATE:"Finsemble.Workspace.ImportTemplate",EXPORT_TEMPLATE:"Finsemble.Workspace.ExportTemplate",REMOVE_TEMPLATE:"Finsemble.Workspace.RemoveTemplate",SET_WINDOW_STATE:"Finsemble.Workspace.SetWindowData",GET_WINDOW_STATE:"Finsemble.Workspace.GetWindowData",ADD_WINDOW:"WorkspaceService.addWindow",REMOVE_WINDOW:"WorkspaceService.removeWindow"},DEFAULT_WINDOW_PROPS:["name","componentType","windowType","alwaysOnTop","autoShow","minWidth","minHeight","maxWidth","maxHeight","resizable","maximizable","minimizable","opacity","windowState","left","top","width","height","right","bottom","defaultLeft","defaultTop","defaultWidth","defaultHeight","defaultRight","defaultBottom","monitorInfo","icon","cachedBounds","showTaskbarIcon","isEvergreen","compositeComponentData"],ADDITIONAL_WINDOW_PROPS:{WebWindow:["url","fullscreen","frame","backgroundColor","transparent","waitForPageLoad","affinity","appUUID"],NativeWindow:["path","alias","arguments","argumentsAsQueryString","isWPF"],StackedWindow:["childWindowIdentifiers","visibleWindowIdentifier","bounds"]}},t.WINDOW_SERVICE_REQUESTS={REMOTE_FOCUS:"WindowService.remoteFocus",SET_ALWAYS_ON_TOP:"WindowService-Request-setAlwaysOnTop",IS_ALWAYS_ON_TOP:"WindowService-Request-isAlwaysOnTop"},t.COMPONENT_STATE_STORAGE_TOPIC="finsemble.componentStateStorage",t.HEARTBEAT_TIMEOUT_CHANNEL="Finsemble.WindowService.HeartbeatTimeout",t.LAUNCHER_SERVICE={WINDOW_CLOSED:"LauncherService.WindowClosed"},t.MOVE_REASON={AERO_KEY:"aero_key",SYSTEM_RESTORED:"system_restored"}},13854:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FSBLDependencyManagerSingleton=t.FSBLDependencyManager=void 0;const o=n(5939),i=r(n(39319)),s=n(78379),a=r(n(5020)),u=r(n(72551));class c extends o.EventEmitter{constructor(e){super(),this.callback=e.callback,this.dependencies=e.dependencies,this.startupTimer=null,this.setStartupTimer=this.setStartupTimer.bind(this),this.clearStartupTimer=this.clearStartupTimer.bind(this)}clearStartupTimer(){this.startupTimer&&clearTimeout(this.startupTimer),delete this.startupTimer}setStartupTimer(){const e=this;this.startupTimer=+setTimeout((()=>{e.emit("timeout")}),1e4)}}function l(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}class f{constructor(){this.servicesAreAllOnline={},this.clientsAreAllOnline={},this.onlineClients=[],this.dependencies={},this.startupTimers={},this.startupTimerFired=!1,this.bindCorrectContext()}waitFor(e,t){const n=l();e.clients||(e.clients=[]),e.clients.length&&(e.clients=e.clients.map((e=>e.charAt(0).toLowerCase()+e.slice(1))));const r=new c({dependencies:e,callback:t});return r.setStartupTimer(),r.on("timeout",(()=>{this.onDependencyTimeout(r)})),this.dependencies[n]=r,this.checkDependencies(),r}onDependencyTimeout(e){const t=this.getOfflineClients();let n="APPLICATION LIFECYCLE:STARTUP:Dependency not online after 10 seconds.";t.length&&(n=`${n} Waiting for these clients: ${t.join(", ")}.`),e.emit("err",n)}checkDependencies(){for(const e in this.dependencies){const t=this.dependencies[e],{dependencies:n,callback:r}=t;(!n.clients.length||this.clientsAreAllOnline[e]||(this.clientsAreAllOnline[e]=this.checkClients(n.clients),this.clientsAreAllOnline[e]))&&(delete this.dependencies[e],t.clearStartupTimer(),r&&r())}}getOfflineClients(){let e=[];for(const t in this.dependencies){const{dependencies:n}=this.dependencies[t];e=e.concat(n.clients.filter((e=>!this.onlineClients.includes(e))))}return e.filter(((t,n)=>e.indexOf(t)===n))}checkClients(e){return e.every((e=>this.onlineClients.includes(e)))}setClientOnline(e){this.onlineClients.includes(e)||(this.onlineClients.push(e),this.checkDependencies())}getOnlineClients(){return this.onlineClients}bindCorrectContext(){this.checkDependencies=this.checkDependencies.bind(this),this.checkClients=this.checkClients.bind(this),this.getOfflineClients=this.getOfflineClients.bind(this),this.onDependencyTimeout=this.onDependencyTimeout.bind(this),this.waitFor=this.waitFor.bind(this)}}class d{constructor(){this.offlineServices=[],this.dependencies={},this.checkDependencies=this.checkDependencies.bind(this)}waitFor(e,t){u.default.system.debug("DependencyManager:waitFor",e),e.services||(e.services=[]);const n=l();this.dependencies[n]={dependencies:e,callback:t}}checkDependencies(){if(console.debug("checkDependencies",this.dependencies),Object.keys(this.dependencies))for(const e in this.dependencies){const{dependencies:t,callback:n}=this.dependencies[e];(u.default.system.debug("DependencyManager:checkDependency",t.services,this.offlineServices),!t.services.length||this.checkServices(t.services))&&(console.debug("checkDependencies callback"),delete this.dependencies[e],n&&n())}}checkServices(e){return e.every((e=>this.offlineServices.includes(e)))}setServiceOffline(e){u.default.system.debug("setServiceOffline",e),console.debug("setServiceOffline",e),this.offlineServices.push(e),this.checkDependencies()}}class p extends o.EventEmitter{constructor(){super(),this.startup=new f,this.shutdown=new d,this.RouterClient=i.default,this.AuthorizationCompleted=!1,this.bindCorrectContext(),this.onAuthorizationCompleted(this.startup.checkDependencies),i.default.onReady(this.listenForServices)}bindCorrectContext(){this.listenForServices=this.listenForServices.bind(this),this.onAuthorizationCompleted=this.onAuthorizationCompleted.bind(this)}setClientOnline(e){this.startup.setClientOnline(e)}onServiceStateChange(e){Object.keys(e).forEach((t=>{const{state:n}=e[t];"closed"===n&&this.shutdown.setServiceOffline(t)}))}listenForServices(){u.default.system.debug("DependencyManager:listenForServices before wait"),a.default.waitForBootStage("kernel","stageEntered",(()=>{u.default.system.debug("DependencyManager:listenForServices after wait"),this.RouterClient.subscribe(s.SERVICES_STATE_CHANNEL,((e,t)=>{u.default.system.debug("DependencyManager:listenForServices SERVICES_STATE_CHANNEL",t.data),this.onServiceStateChange(t.data)})),this.RouterClient.addListener(s.SERVICE_CLOSED_CHANNEL,((e,t)=>{u.default.system.debug("DependencyManager:listenForServices SERVICE_CLOSED_CHANNEL",t.data);const n={};n[t.data.name]={state:"closed"},this.onServiceStateChange(n)})),this.RouterClient.subscribe(s.APPLICATION_STATE_CHANNEL,((e,t)=>{switch(t.data.state){case"authenticated":case"ready":break;case"closing":this.shutdown.checkDependencies()}}))}))}onAuthorizationCompleted(e){this.AuthorizationCompleted?e():this.addListener("AuthorizationCompleted",e)}}t.FSBLDependencyManager=p,t.FSBLDependencyManagerSingleton=new p,t.default=t.FSBLDependencyManagerSingleton},24232:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.checkDeprecatedConfigs=t.isEqualIgnoringArrayOrder=t.sleep=t.checkIfBoundsAreEqual=t.removeKeys=t.toRecord=t.isStackedWindow=t.wrapWithTimeout=t.timeoutPromise=t.getRandomWindowName=t.getProp=t.composeRL=t.instrumentPromise=t.promisify=t.identity=t.isNumber=t.chunkArray=t.Timeout=t.mockLogger=t.capitalizeFirst=t.clone=t.isServiceInWindow=t.iAmAServiceWindow=t.guuid=void 0;const o=n(50586),i=r(n(80089)),s=r(n(75892)),a=r(n(47184)),u=r(n(65162)),c=n(33998),l=r(n(72551)),f=window;function d(e,t){if(Array.isArray(e))return e.slice();try{return JSON.parse(JSON.stringify(e))}catch(e){return t("clone error",e),e}}function p(e,t){return new Promise(((n,r)=>{const o=setTimeout((()=>{clearTimeout(o),r(t)}),e)}))}function h(e,t,n){return`${e}.${t}.${n}`}function y(e,t,n){const r=`${h(e.baseString,e.newPath,e.newValue)}`;l.default.system.deprecated(`${h(e.baseString,t,n)} has been deprecated in favor of ${r}`)}t.guuid=function(){return o.v4()},t.iAmAServiceWindow=function(){return!(!f.finsembleServices||!f.finsembleServices.length)},t.isServiceInWindow=function(e){return f.finsembleServices&&f.finsembleServices.find((t=>t.name===e))},t.clone=d,t.capitalizeFirst=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},t.mockLogger=new class{constructor({debug:e}={debug:!0}){e?(this.system=console,this.system.debug=console.log):this.system={warn:Function.prototype,debug:Function.prototype,log:Function.prototype,info:Function.prototype,error:console.error}}isLogMessage(){return!0}start(){}},t.Timeout=class{constructor(e,t){this.fired=!1,this.id=setTimeout((()=>{e(),this.fired=!0}),t),this.clear=this.clear.bind(this),this.didFire=this.didFire.bind(this)}clear(){this.fired||clearTimeout(this.id)}didFire(){return this.fired}},t.chunkArray=function(e,t){if(e<=0)throw new Error("Can't chunk array by number less than 0");return t.reduce(((n,r,o)=>{if(o%e==0){const r=[];for(let n=o;n<o+e;n++)n<t.length&&r.push(t[n]);n.push(r)}return n}),[])},t.isNumber=function(e){return!(!e||Number.isNaN(Number(e)))&&Number(e)},t.identity=function(e){return e},t.promisify=function(e,t){return function(){const n=Array.prototype.slice.call(arguments);return new Promise(((r,o)=>{n.push(((e,t)=>e?o(e):r(t))),e.apply(t,n)}))}},t.instrumentPromise=async(e,t,n)=>{const r=`${t} end`;return e(`${t} start`),n.then((()=>e(r)))},t.composeRL=(...e)=>e.reduce(((e,t)=>(...n)=>e(t(...n)))),t.getProp=function e(t,n,r){const o=Array.isArray(n)?n:n.split(".").filter((e=>e.length));return o.length?e(t[o.shift()],o,r):void 0===t?r:t},t.getRandomWindowName=function(e="RouterClient"){return`${e}-${o.v4()}`},t.timeoutPromise=p,t.wrapWithTimeout=function(e,t,n){return Promise.race([e,p(t,n)])},t.isStackedWindow=function(e){return e&&"StackedWindow"===(i.default(e,"windowIdentifier.windowType")||e.windowType)},t.toRecord=function(e,t){const n="string"==typeof e?t=>t[e]:e;return t.reduce(((e,t)=>(e[n(t)]=t,e)),{})},t.removeKeys=function(e,t){if(!e)return e;const n=Object.keys(e).filter((e=>!t.includes(e)));return s.default(e,n)},t.checkIfBoundsAreEqual=function(e,t){if(!e||!t)return!1;const n=["left","right","top","bottom","width","height"],r=s.default(e,n),o=s.default(t,n);return!!a.default(r,o)},t.sleep=function(e,t=!1){return new Promise(((n,r)=>{t?setTimeout((()=>{try{r("timeout expired")}catch{}}),e):setTimeout(n,e)}))},t.isEqualIgnoringArrayOrder=function(e,t){const n=d(e,Function.prototype),r=d(t,Function.prototype);return u.default(n,r,((e,t)=>{if(Array.isArray(e)&&Array.isArray(t))return u.default(e.sort(),t.sort())}))},t.checkDeprecatedConfigs=function(e,t,n){const{baseString:r,oldPath:o,newPath:i,oldValue:s,newValue:a}=t;let u=c.ConfigUtilInstance.getDefault(e,h(r,i,a),null);return null===u&&(u=c.ConfigUtilInstance.getDefault(e,h(r,i,s),null),u?y(t,i,s):(u=c.ConfigUtilInstance.getDefault(e,h(r,o,a),null),u?y(t,o,a):(u=c.ConfigUtilInstance.getDefault(e,h(r,o,s),null),u?y(t,o,s):u=n))),u}},82369:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(72551)),i=n(51742),s={activeTransports:{},liveTransport:null,addTransport(e,t){this.activeTransports[e]=t,o.default.system.log(`RouterTransport ${e} added to activeTransports`)},getActiveTransports(e){const t=[];function n(e){-1===t.indexOf(e)&&t.push(e)}return i.System.InterApplicationBus&&n("IPCBus"),n("FinsembleTransport"),SharedWorker&&n("SharedWorker"),n(e.sameDomainTransport),n(e.crossDomainTransport),o.default.system.log("getActiveTransports",t),t},getTransport:(e,t,n,r,o)=>new Promise(((i,a)=>{const u=s.activeTransports[t];u?s.liveTransport=new u(e,n,r,o,(e=>{i(e)})):a(`unknown router transport name: ${t}`)})),close(){s.liveTransport&&(s.liveTransport.close(),s.liveTransport=null)}},a=function(e,t,n,r,i){let s;const a=this;this.send=function(e,t){1===arguments.length?(t=arguments[0],e=null):(e=arguments[0],t=arguments[1]),o.default.system.verbose("SharedWorkerTransport Outgoing Transport",t);try{s.port.postMessage([e,t])}catch(e){o.default.system.error(`SharedWorkerTransport: post message failed: ${JSON.stringify(e)}`,"Probable cause is sending illegal data type (e.g. function).")}},this.identifier=function(){return"SharedWorker"};const u=e.transportSettings.SharedWorker&&e.transportSettings.SharedWorker.workerPath?e.transportSettings.SharedWorker.workerPath:`${e.routerDomainRoot}/common/routerSharedWorker.js`;o.default.system.log(`SharedWorker Transport Initializing for ${n} using ${u}`),console.log(`SharedWorker Transport Initializing for ${n} using ${u}`),s=new SharedWorker(u,{name:"Finsemble",credentials:"include"}),s.port.onmessage=function(e){const n=e.data[0],r=e.data[1],i={transportID:a.identifier(),port:n};o.default.system.verbose("SharedWorkerTransport Incoming Transport",i,"Message",r),t(i,r)},s.onerror=function(e){o.default.system.error(`SharedWorkerTransport Transport Error${JSON.stringify(e)}`)},s.port.start(),"RouterService"===n&&s.port.postMessage({data:"connect",source:"RouterService"}),this.close=()=>{s.port.close()},i(this)},u=function(e,t,n,r,s){const{uuid:a}=i.System.Application.getCurrent(),u=this;this.send=function(e,t){let n;1===arguments.length?(n=r,t=arguments[0]):(n=e.name,t=arguments[1]),o.default.system.verbose("IPCTransport Outgoing Transport",a,n,"Message",t),i.System.InterApplicationBus.publish(n,t,(()=>{}),(()=>{}))},this.identifier=function(){return"IPCBus"},o.default.system.log(`IPCBus Transport Initializing for ${n}`),console.log(`IPCBus Transport Initializing for ${n}`);const c=i.System.InterApplicationBus.subscribe("*",n,(function(e,n){const r={transportID:u.identifier(),senderUuid:n,name:e.header.origin};o.default.system.verbose("IPCTransport Incoming Transport",r,"Message",e),t(r,e)}),(()=>{}),(function(e){o.default.system.error(`IPCBus Subscribe Failure: ${e}`)}));this.close=()=>{i.System.InterApplicationBus.unsubscribe(c)},s(this)},c=function(e,t,n,r,i){const s=`${e?.transportSettings?.FinsembleTransport?.serverAddress??e?.transportSettings?.serverAddress??"ws://127.0.0.1:3376"}/router`,a=this;let u;function c(){o.default.system.error(`FinsembleTransport Connection Timeout for ${n}`),i(a)}function l(){o.default.system.log(`FinsembleTransport Transport Initializing for ${n} using ${s}`),console.log(`FinsembleTransport Transport Initializing for ${n} using ${s}`),s.startsWith("ws:")||s.startsWith("wss:")||console.error(`Illegal WebSocket address "${s}" (Missing ws:// or wss:// ?)`),u=new WebSocket(s);const e=setTimeout(c,3e3);u.addEventListener("open",(()=>{clearTimeout(e),o.default.system.log("FinsembleTransport Connected to Server"),console.log("FinsembleTransport Connected to Server"),u.addEventListener("message",(e=>{const r=JSON.parse(e.data);("RouterService"===n&&"ROUTER_SERVICE"==r.dest||n===r.message.client)&&function(e){const n={transportID:a.identifier(),client:e.clientMessage.header.origin};o.default.system.verbose("FinsembleTransport Incoming Transport",n,"Message",e),t(n,e.clientMessage)}(r.message)})),i(a)}))}this.send=function(e,t){let n,r;1===arguments.length?(n="ROUTER_SERVICE",r={clientMessage:t=arguments[0]}):(n="ROUTER_CLIENT",t=arguments[1],r={client:e.client,clientMessage:t}),o.default.system.verbose("FinsembleTransport Outgoing Transport",n,"NewMessage",r),u.readyState===WebSocket.OPEN&&u.send(JSON.stringify({dest:n,message:r})),u.readyState===WebSocket.CONNECTING&&u.addEventListener("open",(()=>{u.send(JSON.stringify({dest:n,message:r}))})),u.readyState===WebSocket.CLOSED&&(l(),u.addEventListener("open",(()=>{u.send(JSON.stringify({dest:n,message:r}))}))),u.readyState===WebSocket.CLOSING&&(u.onclose=()=>{l(),u.addEventListener("open",(()=>{u.send(JSON.stringify({dest:n,message:r}))}))})},this.identifier=function(){return"FinsembleTransport"},this.close=()=>{u.close()},l()};s.addTransport("SharedWorker",a),s.addTransport("IPCBus",u),s.addTransport("FinsembleTransport",c),t.default=s},51742:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.System=void 0;const r=n(16925);class o{constructor(e,t,n){return new fin.desktop.Window(e,t)}static get getCurrent(){return fin.desktop.Window.getCurrent}static get wrap(){return fin.desktop.Window.wrap}}class i{constructor(e,t,n){t&&t()}static getCurrent(){const{windowName:e}=r.Startup.getInstance().getStartupData();return{name:e,uuid:`${e}-uuid`,getOptions:e=>{e&&e({})},addEventListener:()=>{},updateOptions:()=>{},close:()=>{},startMovingWindow:()=>{},stopMovingWindow:()=>{},isShowing:()=>{},bringToFront:()=>{},show:()=>{},hide:()=>{},setTaskbarIcon:()=>{}}}static wrap(){return{}}}class s{constructor(e,t,n){return new fin.desktop.Application(e,t)}static get getCurrent(){return fin.desktop.Application.getCurrent}static get wrap(){return fin.desktop.Application.wrap}}class a{constructor(e){new fin.desktop.Notification(e)}}class u{constructor(){return new fin.desktop.System.Clipboard}static get writeText(){return fin.desktop.System.Clipboard.writeText}static get writeHTML(){return fin.desktop.System.Clipboard.writeHTML}static get writeRTF(){return fin.desktop.System.Clipboard.writeRTF}static get readText(){return fin.desktop.System.Clipboard.readText}static get readHTML(){return fin.desktop.System.Clipboard.readHTML}static get readRTF(){return fin.desktop.System.Clipboard.readRTF}}class c{static isFreestanding(){return"undefined"==typeof fin}static get Application(){return s}static get Window(){return c.isFreestanding()?i:o}static get Notification(){return a}static get Clipboard(){return u}static async getMousePosition(e=Function.prototype){return new Promise(((t,n)=>{fin.desktop.System.getMousePosition((n=>{(n.left||0===n.left)&&(n.x=n.left),(n.top||0===n.top)&&(n.y=n.top),e(null,n),t(n)}),(t=>{e(t,null),n(t)}))}))}static getSDServerInfo(e=Function.prototype){return new Promise((t=>{fin.desktop.System.getSDServerInfo((n=>{t(n),e(n)}))}))}static getMonitorInfo(e=Function.prototype){return new Promise((t=>{fin.desktop.System.getMonitorInfo((n=>{t(n),e(n)}))}))}static container(){return"undefined"==typeof fin?"freestanding":fin.container?fin.container:"FEA"}static isBrowserView(){return!c.isFreestanding()&&fin.isBrowserView()}static getViewId(){return fin.getViewId()}static hasBrowserView(){return!c.isFreestanding()&&fin.hasBrowserView()}static get fin(){return fin||{}}static ready(e){return new Promise((t=>{fin.desktop.main((()=>{e&&e(),t()}))}))}static getHostSpecs(e=Function.prototype){return new Promise((t=>{fin.desktop.System.getHostSpecs((n=>{t(n),e(n)}))}))}static get InterApplicationBus(){return fin.desktop.InterApplicationBus}static get launchExternalProcess(){return fin.desktop.System.launchExternalProcess}static get terminateExternalProcess(){return fin.desktop.System.terminateExternalProcess}static get getAllApplications(){return fin.desktop.System.getAllApplications}static get exit(){return fin.desktop.System.exit}static get clearCache(){return fin.desktop.System.clearCache}static get showDeveloperTools(){return fin.desktop.System.showDeveloperTools}static get getRuntimeInfo(){return fin.desktop.System.getRuntimeInfo}static get addEventListener(){return c.isFreestanding()?window.addEventListener:fin.desktop.System.addEventListener}static get addSelectClientCertificateListener(){return fin.desktop.System.addSelectClientCertificateListener}static get addCertificateErrorListener(){return fin.desktop.System.addCertificateErrorListener}static get getVersion(){return fin.desktop.System.getVersion}static get getUpdateAvailable(){return fin.desktop.System.getUpdateAvailable}static get openUrlWithBrowser(){return fin.desktop.System.openUrlWithBrowser}static get getAllWindows(){return fin.desktop.System.getAllWindows}static get getProcessList(){return fin.desktop.System.getProcessList}static get getProtocolString(){return fin.desktop.System.getProtocolString}static get hideSplashScreen(){return fin.desktop.System.hideSplashScreen}static startupApplicationHandshake(){fin.desktop.System.startupApplicationHandshake&&fin.desktop.System.startupApplicationHandshake()}static closeApplication(e,t=Function.prototype){return new Promise((n=>{let r,o=!1;const i=()=>{o||(console.log("Attempting to terminate",e.uuid),e.terminate((()=>{t(),n()}),(()=>{o||(o=!0,clearInterval(r),console.log("force closing ",e.uuid),e.terminate())})))};r=setInterval(i,2e3),console.log("closing ",e.uuid),e.close(!1,(()=>{console.log("app.close: successfully closed",e.uuid),o=!0,clearInterval(r),t(),n()}),i)}))}}t.System=c},5020:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(39319)),i=r(n(72551)),s=n(56188),a=n(33509),u=n(95269),c=new class{publishBootStatus(e,t,n){console.log("publishStartingStatus",e,n),i.default.system.debug("publishBootStatus",e,t,n),o.default.publish(u.statusChannel(e),{name:e,type:t,state:n})}waitForBootStage(e,t,n=Function.prototype){return new Promise(((r,u)=>{i.default.system.debug("SystemManagerClient.waitForBootStage entry",e,t);const c=s.ALL_BOOT_STAGES.indexOf(e);"microkernel"===e&&"stageEntered"===t&&i.default.system.error("Cannot wait on `stageEntered` for microkernel because router isn't up yet. So will instead wait for microkernal stage complete.");const l=o.default.subscribe(a.STAGE_CHANNEL,((a,f)=>{if(i.default.system.debug("SystemManagerClient.waitForBootStage new stage",f.data.stage,l),a)i.default.system.error("SystemManagerClient.waitForBootStage subscribe error",a),n(a),u(a);else if(-1===c)a="illegal stage argument",i.default.system.debug("SystemManagerClient.waitForBootStage subscribe error",a,e),n(a),u(a);else{const a=s.ALL_BOOT_STAGES.indexOf(f.data.stage);i.default.system.debug("SystemManagerClient.waitForBootStage new stage",f.data,l),"stageEntered"===t&&a+1>=c?(i.default.system.debug("SystemManagerClient.waitForBootStage stageEntered",e,l,n.name),n(),r(),o.default.unsubscribe(l)):"stageCompleted"===t&&a>=c?(i.default.system.debug("SystemManagerClient.waitForBootStage completed",e,l),n(),r(),o.default.unsubscribe(l)):i.default.system.debug(`SystemManagerClient.waitForBootStage else currentStageIndex=${a} stageIndex=${c} `,a,c,e,l)}}))}))}waitForStartup(e,t=Function.prototype){return new Promise(((n,r)=>{i.default.system.debug(`SystemManagerClient.waitForStartup.${e}`,e);const s=o.default.subscribe(u.statusChannel(e),((a,u)=>{i.default.system.debug("SystemManagerClient.waitForStartup subscribe",e,a,u),a?(i.default.system.error("SystemManagerClient.waitForStartup subscribe error",a),t(a),r()):u.data.name===e&&"completed"===u.data.state&&(i.default.system.debug("SystemManagerClient.waitForStartup completed",e),t(),n(),o.default.unsubscribe(s))}))}))}publishCheckpointState(e,t,n){console.log("publishCheckpoint",e,t,n,u.checkpointChannel(e,t)),i.default.system.debug("publishCheckpoint",e,t,n,u.checkpointChannel(e,t)),o.default.publish(u.checkpointChannel(e,t),{windowName:e,checkpointName:t,state:n})}showSystemLog(){i.default.system.debug("SystemManagerClient.showSystemLog"),o.default.transmit(a.SHOW_SYSLOG_CHANNEL,!0)}systemLog(e,t){i.default.system.debug("SystemManagerClient.systemLog",e,t),o.default.transmit(a.SYSLOG_CHANNEL,{params:e,logMessage:t})}};t.default=c},76420:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.windowNameFromRouterHeader=t.getWindowType=t.isWindows=t.adjustBoundsToBeOnMonitor=t.isOnAMonitor=t.getNewBoundsWhenMovedToMonitor=t.openSharedData=t.injectJS=t.guuid=t.camelCase=t.getMyWindowIdentifier=t.getMonitorByDescriptor=t.windowOnMonitor=t.getMonitorFromCommand=t.getMonitor=t.getWhichMonitor=t.findMonitor=t.getWindowDescriptor=t.getFinWindow=t.getMonitorFromWindow=t.getMonitorFromXY=t.getAllMonitors=t.crossDomain=t.isPercentage=t.castToPromise=t.getContainerVersion=t.clone=t.Monitors=void 0;const o=r(n(36589)),i=n(51742),s=r(n(93802)),a=r(n(72551));function u(e,t={}){if(null===e||"object"!=typeof e)return e;if(e.constructor==Date||e.constructor==RegExp||e.constructor==Function||e.constructor==String||e.constructor==Number||e.constructor==Boolean)return new e.constructor(e);t=t||new e.constructor;for(const n in e)t[n]=void 0===t[n]?u(e[n],null):t[n];return t}function c(e,n){const r=Number.isFinite(e.x)?e.x:e.defaultLeft,o=Number.isFinite(e.y)?e.y:e.defaultTop,i=r+e.defaultWidth,s=o+e.defaultHeight;return new Promise(((e,c)=>{t.Monitors.getMonitorFromScaledXY(r,o,(l=>{if(!l)return a.default.system.debug("getMonitorFromWindow - top-left is off screen, trying bottom right"),void t.Monitors.getMonitorFromScaledXY(i,s,(i=>{if(!i)return a.default.system.debug("getMonitorFromWindow - bottom-right is off screen, getting primary"),void t.Monitors.getAllMonitors((t=>{t[0]?(n&&n(t[0]),e(t[0])):(c(new Error("Cannot find monitor for window.")),n&&n(null))}));i=u(i);const{monitorRect:s}=i;(s.left<r||s.right<o)&&(i.straddling=!0),n&&n(i),e(i)}));l=u(l);const{monitorRect:f}=l;(f.right>i||f.bottom>s)&&(l.straddling=!0),n&&n(l),e(l)}))}))}function l(e,t){return new Promise(((n,r)=>{const o=i.System.Window.getCurrent();o.getOptions((s=>{if(e&&e.windowName){e.uuid||(e.uuid=s.uuid);const o=i.System.Window.wrap(e.uuid,e.windowName);o.getInfo((()=>{t&&t(o),n(o)}),(()=>{t&&t(null),r(`Window ${e.windowName} not found. UUID: ${e.uuid}`),console.debug(`util.getFinWindow: Window ${e.windowName} not found`)}))}else if(e&&e.componentType)if(void 0!==window.LauncherService){const o=window.LauncherService.componentFinder(e);o?(n(o),t&&t(o)):(r(`util.getFinWindow: Component ${e.componentType} not found.`),t&&t(null))}else r("getFinWindow by componentType is currently only operable within LaunchService"),t&&t(null);else t&&t(o),n(o)}))}))}function f(e,t){return new Promise(((n,r)=>{l(e).then((e=>{e.getOptions((e=>{t&&t(e),n(e)}))})).catch((e=>{console.warn(e),t&&t(null),r(e)}))}))}function d(e,t,n){for(let r=0;r<e.length;r++){const o=e[r];if(o[t]===n)return o}return null}function p(e,n){let r;arguments.length>2&&(e={commandMonitor:arguments[0],monitors:arguments[1],launchingMonitorPosition:arguments[2]},n=null);let{commandMonitor:o,monitors:i,launchingMonitorPosition:s}=e;const a=o&&""!==o||0===o;if("primary"===o)r=d(i,"whichMonitor","primary");else if("next"===o){let e=s+1;e>=i.length&&(e=0),r=i[e]}else if("previous"===o){let e=s-1;e<0&&(e=i.length-1),r=i[e]}else if("mine"===o){var u=!0;activeWindows.getWindow(e.windowIdentifier.windowName)._getBounds(((e,o)=>{e?(r=i[0],n(r)):t.Monitors.getMonitorFromScaledXY(o.left,o.top,(e=>{n(e)}))}))}else a?(o>=i.length&&(o=i.length-1),r=i.filter((e=>e.position===o))[0]):s&&(r=i[s]);if(r||(r=i[0]),!u){if(!n)return r;n(r)}}function h(e,t){return new Promise(((n,r)=>{f(e,(e=>{e?c(e,(e=>{t&&t(e),n(e)})):r("util.getMonitor: Can't locate windowDescriptor.")}))}))}t.Monitors=new s.default(Function.prototype,Function.prototype,{System:i.System}),t.clone=u,t.getContainerVersion=function(e=Function.prototype){return new Promise((t=>{i.System.getVersion((n=>{const r=n.split(".").map(Number),o={major:r[0],chromium:r[1],minor:r[2],patch:r[3]};e(o),t({versionObject:o})}))}))},t.castToPromise=function(e){return function(...t){return new Promise(((n,r)=>{const o=e.apply(null,Array.from(t));try{return o.then(n,r)}catch(e){e instanceof TypeError?n(o):r(e)}}))}},t.isPercentage=function(e){return"string"==typeof e&&-1!==e.indexOf("%")},t.crossDomain=function(e){const t=document.createElement("a");t.href=e;const n=window.location.hostname===t.hostname,r=window.location.protocol===t.protocol,o=(void 0!==window.location.port?window.location.port:80)===(void 0!==t.port?t.port:80),i=!(n&&o&&r);return a.default.system.debug(`Launcher crossDomain=${i} (${n}:${r}:${o})`),i},t.getAllMonitors=t.Monitors.getAllMonitors,t.getMonitorFromXY=t.Monitors.getMonitorFromScaledXY,t.getMonitorFromWindow=c,t.getFinWindow=l,t.getWindowDescriptor=f,t.findMonitor=d,t.getWhichMonitor=p,t.getMonitor=h,t.getMonitorFromCommand=function(e,n,r){return new Promise((o=>{h(n,(n=>{t.Monitors.getAllMonitors((t=>{p({commandMonitor:e,monitors:t,launchingMonitorPosition:n.position},(e=>{r&&r(e),o(e)}))}))}))}))},t.windowOnMonitor=function(e,t){return e.left>=t.left&&e.left<t.right||e.right<=t.right&&e.right>t.left},t.getMonitorByDescriptor=function(e,t){return new Promise((n=>{c(e,(e=>{t&&t(e),n(e)}))}))},t.getMyWindowIdentifier=function(e){const t=i.System.Window.getCurrent();return new Promise((n=>{t.getOptions((r=>{let o=null;const{customData:i}=r;i&&i.component&&(o=i.component.type);const s={windowName:t.name,uuid:t.uuid,componentType:o};e&&e(s),n(s)}))}))},t.camelCase=function(...e){let t="";for(let n=0;n<e.length;n++)t=`${t} ${e[n]}`;return t.replace(/\s(.)/g,(e=>e.toUpperCase())).replace(/\s/g,"").replace(/^(.)/,(e=>e.toLowerCase()))},t.guuid=function(){return o.default()},t.injectJS=function(e,t){const n=document.createElement("script");n.onload=t,n.type="text/javascript",n.async=!0,n.src=e;const r=document.getElementsByTagName("head")[0],o=r.getElementsByTagName("script")[0];r.insertBefore(n,o)},t.openSharedData=function(e,t){const n=FSBL.Clients.LauncherClient,r=FSBL.Clients.LinkerClient;e.multipleOpenerHandler||(e.multipleOpenerHandler=function(e){let t,n=0;for(const r of Object.keys(e))e[r].length>n&&(t=r,n=e[r].length);return[t]});const o=[],i={};n.getComponentsThatCanReceiveDataTypes({dataTypes:Object.keys(e.data)},((s,u)=>{for(const e of Object.keys(u))if(u[e].componentTypes.length)for(const t of u[e].componentTypes)i[t]?i[t].push(e):i[t]=[e];else{const t=`No Components Available to Handle the type: ${e}`;o.push(t),a.default.system.error(t)}let c=Object.keys(i);if(c.length){c.length>1&&(c=e.multipleOpenerHandler(i));const s=Object.keys(r.channels);if(s.length)if(r.getLinkedComponents({componentTypes:c,windowIdentifier:r.windowIdentifier()}).length||e.publishOnly)r.publish({dataType:"Finsemble.DragAndDropClient",data:e.data},(()=>{})),t&&t(o.length?o:null,"Data published");else{for(const t of c)n.spawn(t,{data:{sharedData:e.data,linker:{channels:s}},addToWorkspace:!0});t&&t(o.length?o:null,"Linked Window(s) spawned with data")}else if(!e.publishOnly){for(const t of c)n.spawn(t,{data:{sharedData:e.data},addToWorkspace:!0});t&&t(o.length?o:null,"New Window(s) spawned with data")}}else t&&t(o.length?o:null,null)}))},t.getNewBoundsWhenMovedToMonitor=function(e,t,n="availableRect"){const r=e[n]||e.availableRect||e.monitorRect,o=u(t);return t.top<r.top?o.top=r.top:t.top>r.bottom-t.height&&(o.top=r.bottom-t.height),t.left<r.left?o.left=r.left:t.left>r.right-t.width&&(o.left=r.right-t.width),o.bottom=o.top+o.height,o.right=o.left+o.width,o.right>r.right&&(o.right=r.right),o.top<r.top&&(o.top=r.top),o.left<r.left&&(o.left=r.left),o.bottom>r.bottom&&(o.bottom=r.bottom),o.height=o.bottom-o.top,o.width=o.right-o.left,{newBounds:o,distanceMoved:Math.sqrt((t.left-o.left)**2+(t.top-o.top)**2),monitor:e}},t.isOnAMonitor=function(e){return this.Monitors.allMonitors.some((t=>{const{monitorRect:n}=t;return e.left>=n.left&&e.left<=n.right&&e.right>=n.left&&e.right<=n.right&&e.top>=n.top&&e.top<=n.bottom&&e.bottom>=n.top&&e.bottom<=n.bottom}))},t.adjustBoundsToBeOnMonitor=function(e,t="availableRect"){if(this.isOnAMonitor(e))return a.default.system.info("Launcher.adjustWindowDescriptorBoundsToBeOnMonitor: on monitor."),e;const n=this.Monitors.allMonitors.map((n=>{let r=n.rawMonitor?n.rawMonitor:n;return this.getNewBoundsWhenMovedToMonitor(r,e,t)})).sort(((e,t)=>e.distanceMoved-t.distanceMoved))[0];return a.default.system.info("Launcher.adjustWindowDescriptorBoundsToBeOnMonitor: not on monitor. bounds",e,"monitor name",n.monitor.name,"newBounds",n.newBounds),n.newBounds},t.isWindows=async function(e=Function.prototype){const t=(await i.System.getHostSpecs()).name.toUpperCase().includes("WINDOWS");return e(t),t},t.getWindowType=function(e){const t="WebWindow";if(e.windowType&&!["assimilation","assimilated","native","application","NativeWindow","FinsembleNativeWindow","CompoundWindow","WebWindow","WebApplication","StackedWindow"].includes(e.windowType))return a.default.system.error(`Invalid windowType: ${e.windowType}, defaulting to windowType: WebWindow`),t;let n=e.windowType||t;switch(e.windowType){case"assimilation":case"assimilated":n="NativeWindow";break;case"native":n="FinsembleNativeWindow";break;case"application":n="WebApplication";break;case"Web":n="WebWindow";break;case"StackedWindow":n="StackedWindow"}return e.native&&(n="NativeWindow"),e.compound&&(n="CompoundWindow"),n},t.windowNameFromRouterHeader=e=>{let t,n=/\.(.*)\./s;try{t=e.origin.match(n)[1]}catch(n){t=e.origin.split(".")[1]}return t}},96755:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.BaseService=void 0;const a=n(57664),u=n(13854),c=s(n(39319)),l=s(n(72551)),f=s(n(5020)),d=n(51742),p=i(n(78379)),h=n(6192),y=n(10589),{SERVICE_INITIALIZING_CHANNEL:g,SERVICE_READY_CHANNEL:m,SERVICE_QUERY_READY_CHANNEL:v,SERVICE_CLOSING_CHANNEL:b,SERVICE_CLOSED_CHANNEL:w,SERVICE_STOP_CHANNEL:_}=p,S={startupDependencies:{services:[],clients:[]},shutdownDependencies:{services:[]},addOFWrapper:!1,name:window.name};t.BaseService=class{constructor(e=S){!function(e){e.startupDependencies?(e.startupDependencies.services||(e.startupDependencies.services=S.startupDependencies.services),e.startupDependencies.clients||(e.startupDependencies.clients=S.startupDependencies.clients)):e.startupDependencies=S.startupDependencies,e.shutdownDependencies?e.shutdownDependencies.services||(e.shutdownDependencies.services=S.shutdownDependencies.services):e.shutdownDependencies=S.shutdownDependencies}(e),this.name=e.name?e.name:window.name,this.startupDependencies=e.startupDependencies,this.shutdownDependencies=e.shutdownDependencies,this.Logger=l.default,this.RouterClient=c.default,this.onBaseServiceReadyCB=null,this.setOnConnectionCompleteCB=null,this.listeners={},this.start=()=>{},this.started=!1,this.status="initializing",this.setOnline=this.setOnline.bind(this),this.onBaseServiceReady=this.onBaseServiceReady.bind(this),this.handleShutdown=this.handleShutdown.bind(this),this.waitForDependencies(),h.Globals.finsembleServices?h.Globals.finsembleServices.push(this):h.Globals.finsembleServices=[this]}async initialize(e){e()}waitForDependencies(){const e=this;if(this.started)return;this.started=!0;const t=this;function n(e){l.default.system.debug("BaseService.start.setParentUUID"),d.System.Window.getCurrent().getOptions((n=>{t.customData=n.customData,t.parentUuid=n.customData.parentUuid,e()}))}async function r(){await(new y.FSBLService).startApp(),c.default.addResponder(v(e.name),((t,n)=>{(e.status="ready")?n?.sendQueryResponse(null):n?.sendQueryResponse("service not ready")})),c.default.transmit(g,{name:t.name}),window.addEventListener("beforeunload",t.RouterClient.disconnectAll),l.default.system.debug("APPLICATION LIFECYCLE:STARTUP:SERVICE:BaseService.start.onRouterReady")}function o(e){const n=t.customData.debugServiceDelay||0;if(l.default.system.debug(`Custom Data: ${t.name} custom data`,t.customData),Number.isInteger(n))n>0&&l.default.system.debug(`APPLICATION LIFECYCLE:STARTUP:SERVICE:BaseService.start.debugDelay: ${t.name} startup will delayed by ${n} milliseconds for debugging`);else{const e=`debugDelay has an illegal value ("${n}") for ${t.name}. Value must be an integer.`;l.default.system.error(`APPLICATION LIFECYCLE:STARTUP:SERVICE:BaseService.start: ${e}`),f.default.systemLog({error:!0},e)}setTimeout(e,n)}function i(e){l.default.system.debug(`APPLICATION LIFECYCLE:STARTUP:SERVICE:BaseService.start.readyToGo ${t.name}`),console.log("Startup Dependencies for",t.name,t.startupDependencies),console.log("Shutdown Dependencies for",t.name,t.shutdownDependencies),u.FSBLDependencyManagerSingleton.shutdown.waitFor(t.shutdownDependencies,t.handleShutdown),l.default.system.debug(`APPLICATION LIFECYCLE:STARTUP:SERVICE:BaseService.start.readyToGo after wait ${t.name}`),c.default.transmit(`${d.System.Window.getCurrent().name}.onSpawned`,{name:d.System.Window.getCurrent().name},{suppressWarnings:!0}),u.FSBLDependencyManagerSingleton.startup.waitFor(t.startupDependencies,e).on("err",(e=>{l.default.system.error(e)}))}function s(e){const n=d.System.Window.getCurrent();n.isShowing((r=>{r&&!1!==t.customData.showDevConsoleOnVisible?d.System.showDeveloperTools(n.uuid,n.name,null,e):(l.default.system.debug("APPLICATION LIFECYCLE:STARTUP:SERVICE:BaseService.start.delayStartup done"),e())}))}return l.default.system.debug(`${this.name} starting`),new Promise((e=>{a.series([r,n,s,o,i],(()=>{e(),this.onDependenciesReady()}))}))}setOnline(){"ready"!==this.status&&(this.RouterClient.addListener(`${_}.${this.name}`,(()=>{u.FSBLDependencyManagerSingleton.shutdown.checkDependencies()})),this.status="ready",c.default.transmit(m,{serviceName:this.name},{suppressWarnings:!0}),l.default.system.log("APPLICATION LIFECYCLE:STARTUP:SERVICE ONLINE",this.name),f.default.publishBootStatus(this.name,"services","completed"))}onDependenciesReady(){l.default.system.debug("APPLICATION LIFECYCLE:STARTUP:BaseService onDependenciesReady",this.name),this.status="initializing",this.onBaseServiceReadyCB?this.onBaseServiceReadyCB(this.setOnline):this.initialize?this.initialize(this.setOnline):setTimeout((()=>{"ready"!==this.status&&"routerService"!==this.name&&(console.error("No onBaseServiceReadyCB on initialize function defined on your service. Ensure that service.setOnline is called"),l.default.system.error("No onBaseServiceReadyCB on initialize function defined on your service. Ensure that service.setOnline is called"))}),3e3)}onBaseServiceReady(e){"initializing"===this.status?this.onBaseServiceReadyCB=()=>{e(this.setOnline)}:e(this.setOnline)}addEventListener(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)}onShutdown(e){this.addEventListener("onShutdown",e)}handleShutdown(){l.default.system.debug("BaseService.handleShutdown");const e=this;this.listeners.onShutdown?(c.default.transmit(b,{waitForMe:!0,name:this.name}),a.each(this.listeners.onShutdown,(function(e,t){a.asyncify(e)(null,t)}),(function(t){t&&l.default.system.error(t),e.shutdownComplete()}))):(c.default.transmit(b,{waitForMe:!1,name:this.name}),e.shutdownComplete())}shutdownComplete(){l.default.system.info(`"APPLICATION LIFECYCLE:SHUTDOWN:SERVICE SHUTDOWN: ${this.name}`),c.default.transmit(w,{name:this.name,uuid:d.System.Application.getCurrent().uuid})}},window.addEventListener("error",(e=>{const t=e.error?e.error.stack.substring(e.error.stack.search("at ")):"";return l.default.error(e.message,`File: ${e.filename}`,`Line: ${e.lineno}`,`Column: ${e.colno}`,`Error Stack: \n ${t}`),!1})),window.addEventListener("unhandledrejection",(e=>{"Cannot Wrap Service Manager or Services"==e.reason?l.default.warn("A service tried To wrap itself. This is a side effect of using Clients in services."):l.default.error("Unhandled rejection","reason",e.reason)}))},33509:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CHECKPOINT_CHANNEL_BASE=t.STAGE_CHANNEL=t.STATUS_CHANNEL_BASE=t.SHOW_SYSLOG_CHANNEL=t.SYSLOG_CHANNEL=t.CRITICAL_BOOT_STAGES=t.ALL_BOOT_STAGES=void 0,t.ALL_BOOT_STAGES=["microkernel","kernel","authentication","preuser","earlyuser","user"],t.CRITICAL_BOOT_STAGES=["microkernel","kernel","authentication"],t.SYSLOG_CHANNEL="systemManager.systemlog",t.SHOW_SYSLOG_CHANNEL="systemManager.showSystemlog",t.STATUS_CHANNEL_BASE="systemManager.boot.status",t.STAGE_CHANNEL="systemManager.boot.stage",t.CHECKPOINT_CHANNEL_BASE="systemManager.checkpoint"},56188:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BootReadyItem=t.BootConfigElement=t.ALL_BOOT_STAGES=void 0,t.ALL_BOOT_STAGES=["microkernel","kernel","authentication","preuser","earlyuser","user"],t.BootConfigElement=class{},t.BootReadyItem=class{constructor(e,t,n){this.name=e,this.type=t,this.config=n}}},95269:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkpointChannel=t.statusChannel=t.killOldApplications=void 0;const r=n(51742),o=n(33509);t.killOldApplications=function(e){return new Promise((async t=>{r.System.getAllApplications((async n=>{if(n)for(let t=0;t<n.length;t++){const o=n[t];if(o.uuid?.endsWith(`-${e}`)){const e=r.System.Application.wrap(o.uuid);await r.System.closeApplication(e)}}console.log("killOldApplications: finished closing old apps"),t()}))}))},t.statusChannel=function(e){return`${o.STATUS_CHANNEL_BASE}.${e}`},t.checkpointChannel=function(e,t){return`${o.CHECKPOINT_CHANNEL_BASE}.${e}.${t}`}},88801:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},77661:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},80498:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},74215:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},19600:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},89520:(e,t)=>{"use strict";var n,r,o;Object.defineProperty(t,"__esModule",{value:!0}),t.ChannelError=t.ResolveError=t.OpenError=void 0,(o=t.OpenError||(t.OpenError={})).AppNotFound="AppNotFound",o.ErrorOnLaunch="ErrorOnLaunch",o.AppTimeout="AppTimeout",o.ResolverUnavailable="ResolverUnavailable",(r=t.ResolveError||(t.ResolveError={})).NoAppsFound="NoAppsFound",r.ResolverUnavailable="ResolverUnavailable",r.ResolverTimeout="ResolverTimeout",(n=t.ChannelError||(t.ChannelError={})).NoChannelFound="NoChannelFound",n.AccessDenied="AccessDenied",n.CreationFailed="CreationFailed"},55182:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},35644:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},66129:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},51854:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},36611:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.versionIsAtLeast=t.compareVersionNumbers=t.getInfo=t.leaveCurrentChannel=t.getCurrentChannel=t.getOrCreateChannel=t.joinChannel=t.getSystemChannels=t.addContextListener=t.addIntentListener=t.raiseIntentForContext=t.raiseIntent=t.broadcast=t.findIntentsByContext=t.findIntent=t.open=t.fdc3Ready=void 0;const n=new Error("FDC3 DesktopAgent not available at `window.fdc3`."),r=new Error("Timed out waiting for `fdc3Ready` event."),o=new Error("`fdc3Ready` event fired, but `window.fdc3` not set to DesktopAgent.");function i(e){return window.fdc3?e():Promise.reject(n)}function s(e){if(!window.fdc3)throw n;return e()}t.fdc3Ready=async(e=5e3)=>new Promise(((t,n)=>{if(window.fdc3)t();else{const i=setTimeout((()=>window.fdc3?t():n(r)),e);window.addEventListener("fdc3Ready",(()=>{clearTimeout(i),window.fdc3?t():n(o)}),{once:!0})}})),t.open=function(e,t){return i((()=>window.fdc3.open(e,t)))},t.findIntent=function(e,t){return i((()=>window.fdc3.findIntent(e,t)))},t.findIntentsByContext=function(e){return i((()=>window.fdc3.findIntentsByContext(e)))},t.broadcast=function(e){s((()=>window.fdc3.broadcast(e)))},t.raiseIntent=function(e,t,n){return i((()=>window.fdc3.raiseIntent(e,t,n)))},t.raiseIntentForContext=function(e,t){return i((()=>window.fdc3.raiseIntentForContext(e,t)))},t.addIntentListener=function(e,t){return s((()=>window.fdc3.addIntentListener(e,t)))},t.addContextListener=function(e,t){return s("function"!=typeof e?()=>window.fdc3.addContextListener(e,t):()=>window.fdc3.addContextListener(e))},t.getSystemChannels=function(){return i((()=>window.fdc3.getSystemChannels()))},t.joinChannel=function(e){return i((()=>window.fdc3.joinChannel(e)))},t.getOrCreateChannel=function(e){return i((()=>window.fdc3.getOrCreateChannel(e)))},t.getCurrentChannel=function(){return i((()=>window.fdc3.getCurrentChannel()))},t.leaveCurrentChannel=function(){return i((()=>window.fdc3.leaveCurrentChannel()))},t.getInfo=function(){return s((()=>window.fdc3.getInfo()))},t.compareVersionNumbers=(e,t)=>{try{let n=e.split(".").map(Number),r=t.split(".").map(Number);for(let e=0;e<Math.max(n.length,r.length);e++){if(e===n.length||n[e]<r[e])return-1;if(e===r.length||n[e]>r[e])return 1}return 0}catch(e){return console.error("Failed to compare version strings",e),null}},t.versionIsAtLeast=(e,n)=>{let r=t.compareVersionNumbers(e.fdc3Version,n);return null===r?null:r>=0}},55972:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},91767:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ContextTypes=void 0,(n=t.ContextTypes||(t.ContextTypes={})).Contact="fdc3.contact",n.ContactList="fdc3.contactList",n.Country="fdc3.country",n.Instrument="fdc3.instrument",n.Organization="fdc3.organization",n.Portfolio="fdc3.portfolio",n.Position="fdc3.position"},91966:(e,t)=>{"use strict";function n(e,t,n=""){if(n)throw Error(`Invalid value for key "${n}". Expected type ${JSON.stringify(e)} but got ${JSON.stringify(t)}`);throw Error(`Invalid value ${JSON.stringify(t)} for type ${JSON.stringify(e)}`)}function r(e){if(void 0===e.jsonToJS){const t={};e.props.forEach((e=>t[e.json]={key:e.js,typ:e.typ})),e.jsonToJS=t}return e.jsonToJS}function o(e){if(void 0===e.jsToJSON){const t={};e.props.forEach((e=>t[e.js]={key:e.json,typ:e.typ})),e.jsToJSON=t}return e.jsToJSON}function i(e,t,r,o=""){if("any"===t)return e;if(null===t)return null===e?e:n(t,e);if(!1===t)return n(t,e);for(;"object"==typeof t&&void 0!==t.ref;)t=p[t.ref];return Array.isArray(t)?function(e,t){return-1!==e.indexOf(t)?t:n(e,t)}(t,e):"object"==typeof t?t.hasOwnProperty("unionMembers")?function(e,t){const o=e.length;for(let n=0;n<o;n++){const o=e[n];try{return i(t,o,r)}catch(e){}}return n(e,t)}(t.unionMembers,e):t.hasOwnProperty("arrayItems")?function(e,t){return Array.isArray(t)?t.map((t=>i(t,e,r))):n("array",t)}(t.arrayItems,e):t.hasOwnProperty("props")?function(e,t,o){if(null===o||"object"!=typeof o||Array.isArray(o))return n("object",o);const s={};return Object.getOwnPropertyNames(e).forEach((t=>{const n=e[t],a=Object.prototype.hasOwnProperty.call(o,t)?o[t]:void 0;s[n.key]=i(a,n.typ,r,n.key)})),Object.getOwnPropertyNames(o).forEach((n=>{Object.prototype.hasOwnProperty.call(e,n)||(s[n]=i(o[n],t,r,n))})),s}(r(t),t.additional,e):n(t,e):t===Date&&"number"!=typeof e?function(e){if(null===e)return null;const t=new Date(e);return isNaN(t.valueOf())?n("Date",e):t}(e):function(e,t){return typeof e==typeof t?t:n(e,t,o)}(t,e)}function s(e,t){return i(e,t,r)}function a(e,t){return i(e,t,o)}function u(e){return{arrayItems:e}}function c(...e){return{unionMembers:e}}function l(e,t){return{props:e,additional:t}}function f(e){return{props:[],additional:e}}function d(e){return{ref:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Convert=void 0,t.Convert=class{static toContext(e){return s(JSON.parse(e),d("Context"))}static contextToJson(e){return JSON.stringify(a(e,d("Context")),null,2)}static toContact(e){return s(JSON.parse(e),d("Contact"))}static contactToJson(e){return JSON.stringify(a(e,d("Contact")),null,2)}static toContactList(e){return s(JSON.parse(e),d("ContactList"))}static contactListToJson(e){return JSON.stringify(a(e,d("ContactList")),null,2)}static toInstrument(e){return s(JSON.parse(e),d("Instrument"))}static instrumentToJson(e){return JSON.stringify(a(e,d("Instrument")),null,2)}static toInstrumentList(e){return s(JSON.parse(e),d("InstrumentList"))}static instrumentListToJson(e){return JSON.stringify(a(e,d("InstrumentList")),null,2)}static toCountry(e){return s(JSON.parse(e),d("Country"))}static countryToJson(e){return JSON.stringify(a(e,d("Country")),null,2)}static toOrganization(e){return s(JSON.parse(e),d("Organization"))}static organizationToJson(e){return JSON.stringify(a(e,d("Organization")),null,2)}static toPortfolio(e){return s(JSON.parse(e),d("Portfolio"))}static portfolioToJson(e){return JSON.stringify(a(e,d("Portfolio")),null,2)}static toPosition(e){return s(JSON.parse(e),d("Position"))}static positionToJson(e){return JSON.stringify(a(e,d("Position")),null,2)}};const p={Context:l([{json:"id",js:"id",typ:c(void 0,f(""))},{json:"name",js:"name",typ:c(void 0,"")},{json:"type",js:"type",typ:""}],"any"),ContactList:l([{json:"contacts",js:"contacts",typ:u(d("Contact"))},{json:"type",js:"type",typ:""},{json:"id",js:"id",typ:c(void 0,f(""))},{json:"name",js:"name",typ:c(void 0,"")}],"any"),Contact:l([{json:"id",js:"id",typ:d("ContactID")},{json:"type",js:"type",typ:""},{json:"name",js:"name",typ:c(void 0,"")}],"any"),ContactID:l([{json:"email",js:"email",typ:c(void 0,"")},{json:"FDS_ID",js:"FDS_ID",typ:c(void 0,"")}],""),InstrumentList:l([{json:"instruments",js:"instruments",typ:u(d("Instrument"))},{json:"type",js:"type",typ:""},{json:"id",js:"id",typ:c(void 0,f(""))},{json:"name",js:"name",typ:c(void 0,"")}],"any"),Instrument:l([{json:"id",js:"id",typ:d("InstrumentID")},{json:"type",js:"type",typ:""},{json:"name",js:"name",typ:c(void 0,"")}],"any"),InstrumentID:l([{json:"BBG",js:"BBG",typ:c(void 0,"")},{json:"CUSIP",js:"CUSIP",typ:c(void 0,"")},{json:"FDS_ID",js:"FDS_ID",typ:c(void 0,"")},{json:"FIGI",js:"FIGI",typ:c(void 0,"")},{json:"ISIN",js:"ISIN",typ:c(void 0,"")},{json:"PERMID",js:"PERMID",typ:c(void 0,"")},{json:"RIC",js:"RIC",typ:c(void 0,"")},{json:"SEDOL",js:"SEDOL",typ:c(void 0,"")},{json:"ticker",js:"ticker",typ:c(void 0,"")}],""),Country:l([{json:"id",js:"id",typ:d("CountryID")},{json:"type",js:"type",typ:""},{json:"name",js:"name",typ:c(void 0,"")}],"any"),CountryID:l([{json:"ISOALPHA2",js:"ISOALPHA2",typ:c(void 0,"")},{json:"ISOALPHA3",js:"ISOALPHA3",typ:c(void 0,"")}],""),Organization:l([{json:"id",js:"id",typ:d("OrganizationID")},{json:"type",js:"type",typ:""},{json:"name",js:"name",typ:c(void 0,"")}],"any"),OrganizationID:l([{json:"FDS_ID",js:"FDS_ID",typ:c(void 0,"")},{json:"LEI",js:"LEI",typ:c(void 0,"")},{json:"PERMID",js:"PERMID",typ:c(void 0,"")}],""),Portfolio:l([{json:"positions",js:"positions",typ:u(d("Position"))},{json:"type",js:"type",typ:""},{json:"id",js:"id",typ:c(void 0,f(""))},{json:"name",js:"name",typ:c(void 0,"")}],"any"),Position:l([{json:"holding",js:"holding",typ:3.14},{json:"instrument",js:"instrument",typ:d("Instrument")},{json:"type",js:"type",typ:""},{json:"id",js:"id",typ:c(void 0,f(""))},{json:"name",js:"name",typ:c(void 0,"")}],"any")}},98832:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(88801),t),o(n(77661),t),o(n(80498),t),o(n(55972),t),o(n(74215),t),o(n(19600),t),o(n(89520),t),o(n(35644),t),o(n(66129),t),o(n(51854),t),o(n(55182),t),o(n(36611),t),o(n(91767),t),o(n(91966),t),o(n(77178),t)},77178:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Intents=void 0,(n=t.Intents||(t.Intents={})).StartCall="StartCall",n.StartChat="StartChat",n.ViewChart="ViewChart",n.ViewContact="ViewContact",n.ViewQuote="ViewQuote",n.ViewNews="ViewNews",n.ViewInstrument="ViewInstrument",n.ViewAnalysis="ViewAnalysis"},60306:e=>{"use strict";e.exports=JSON.parse('{"name":"@finsemble/finsemble-core","main":"dist/index.js","types":"types/index.d.ts","version":"6.1.5","description":"Finsemble is an application framework providing infrastructure, services, and components for quickly building HTML5 multi-window financial desktop applications.","scripts":{"do-audit":" improved-yarn-audit --min-severity high","build":"gulp build --production","build-docs":"gulp --gulpfile gulpfile-docs.js build-docs","clean":"gulp clean","dev":"gulp build --watch","dev:fresh":"gulp build --clean --watch","docs":"set DEBUG=gulp-jsdoc3&&gulp --gulpfile=./gulpfile-docs.js docs-server","lint":"eslint --ext .js,.jsx,.ts,.tsx ./src/**","lint-fix":"eslint --fix --ext .js,.jsx,.ts,.tsx ./src/**","lint-stats":"eslint --format node_modules/eslint-stats/byErrorAndWarning.js --ext .js,.jsx,.ts,.tsx ./src/**","monodev":"yarn dev","obfuscate":"gulp build --production --obfuscate","prod":"gulp build --production","test":"ts-mocha","test-coverage":"nyc ts-mocha && nyc merge .nyc_output ../../.nyc_output/core.json","types":"gulp types"},"author":"Cosaic","license":"SEE LICENSE IN LICENSE","dependencies":{"@babel/core":"7.14.6","@babel/preset-env":"7.14.7","@babel/preset-react":"7.14.5"},"devDependencies":{"@istanbuljs/nyc-config-typescript":"1.0.1","@reduxjs/toolkit":"1.6.1","@types/chai":"4.2.21","@types/deepmerge":"2.2.0","@types/lodash":"4.14.171","@types/mocha":"9.0.0","@types/node":"12.12.7","@typescript-eslint/eslint-plugin":"4.28.3","@typescript-eslint/parser":"4.28.4","ajv":"6.12.2","async":"3.2.0","babel-loader":"8.2.2","browser-sync":"2.27.4","case-sensitive-paths-webpack-plugin":"2.4.0","chai":"4.2.0","chalk":"4.1.1","copy-webpack-plugin":"6.4.1","css-loader":"3.5.3","deepmerge":"1.3.2","del":"6.0.0","esm":"~3.2.25","fast-check":"2.17.0","file-loader":"6.2.0","file-saver":"2.0.5","fs-extra":"2.1.2","fuse.js":"6.4.6","git-rev-sync":"3.0.1","gulp":"4.0.0","gulp-javascript-obfuscator":"^1.1.6","gulp-jsdoc3":"3.0.0","gulp-plumber":"1.2.1","gulp-rename":"1.2.3","gulp-string-replace":"1.1.2","gulp-watch":"5.0.1","immutable":"4.0.0-rc.14","improved-yarn-audit":"^2.3.2","jsdoc":"3.6.6","jszip":"3.6.0","lodash":"4.17.21","mocha":"^8.0.1","mock-socket":"9.0.3","nyc":"15.1.0","p-limit":"3.1.0","p-queue":"7.1.0","pretty-hrtime":"1.0.3","prop-types":"15.7.2","react":"17.0.2","react-dom":"17.0.2","react-redux":"7.2.4","react-virtualized":"9.22.3","redux-devtools":"3.7.0","redux-devtools-chart-monitor":"1.7.2","redux-devtools-log-monitor":"2.1.0","redux-loop":"6.1.0","require-directory":"2.1.1","resize-observer-polyfill":"1.5.1","rimraf":"3.0.2","sass-loader":"12.1.0","searchjs":"1.1.0","shelljs":"0.8.4","sinon":"11.1.1","sinon-chai":"3.7.0","source-map-loader":"3.0.0","style-loader":"3.2.1","superagent":"6.1.0","taffydb":"2.7.3","to-string-loader":"1.1.6","ts-loader":"9.2.3","ts-mocha":"8.0.0","typedoc":"0.17.8","typescript":"4.3.5","url-loader":"4.1.0","uuid":"3.0.1","vinyl-sourcemaps-apply":"0.2.1","webpack":"5.45.1","webpack-glob-entries":"1.0.1","worker-farm":"1.7.0"},"resolutions":{"ts-mocha/ts-node":"^10.1.0","xmlhttprequest-ssl":"1.6.3","underscore":"1.12.1","ua-parser-js":"0.7.24","javascript-obfuscator":"2.15.5"}}')}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{"use strict";var e=n(57664),t=n(96755),r=c(n(39319)),o=c(n(70010)),i=n(33998),s=c(n(72551)),a=n(24232),u=c(n(23471));function c(e){return e&&e.__esModule?e:{default:e}}s.default.start();const l=new u.default;n.g.adapterReceiver=l,n.g.storageAdapters=l.adapters;class f extends t.BaseService{constructor(){n(48785),n(66772),super({name:"storageService",shutdownDependencies:{services:["windowService"]}}),this.storageAdapters={},this.user="default",this.currentDefaultDataStore,this.topicToStorageAdapterMap={},this.lastNotificationForErrType={}}async initialize(e){s.default.system.info("StorageService.initialize","Start"),await this.getConfig(),await this.fetchAdapters(),this.loadAdapters(),this.createRouterEndpoints(),this.serviceReady=!0,this.help(),e()}async getConfig(){let e;if(e=await o.default.getValue({field:"finsemble.servicesConfig.storage"}).catch((()=>{s.default.system.error("APPLICATION LIFECYCLE: Storage config not found in finsemble.servicesConfig.storage")})),e.data||(console.log("Checking finsemble.storage"),e=await o.default.getValue({field:"finsemble.storage"}).catch((()=>{s.default.system.error("APPLICATION LIFECYCLE: Storage config not found in finsemble.storage")})),e.data&&s.default.system.deprecated("Please move storage config to servicesConfig.storage. This location of config for storage is deprecated")),!e.data)return Promise.reject("Cannot find config");e=e.data;let{defaultStorage:t}=e;if(t||(t=await o.default.getValue({field:"finsemble.defaultStorage"}),s.default.system.deprecated("Please move defaultStorage config to servicesConfig.storage. This location of config for defaultStorage is deprecated"),t=t.data),t||s.default.system.warn("Default storage not found, defaulting to localStorage"),t=t||"localStorage",this.setStore({dataStore:t}),s.default.system.debug("APPLICATION LIFECYCLE: StorageService.initialize",`Setting default storage to ${t}`),e.topicToDataStoreAdapters){const t=Object.keys(e.topicToDataStoreAdapters);for(let n=0;n<t.length;n++){const r=t[n],o=e.topicToDataStoreAdapters[r];s.default.system.log("APPLICATION LIFECYCLE: StorageService.initialize","topic mapping",`Setting store for topic ${r} to store ${o}`),this.setStore({topic:r,dataStore:o})}}return this.adapterOperationTimeout=i.ConfigUtilInstance.getDefault(e,"storageConfig.adapterOperationTimeout",1e4),this.notificationThrottle=i.ConfigUtilInstance.getDefault(e,"storageConfig.notificationThrottle",18e4),this.storageAdaptersInConfig=e.dataStoreAdapters||e,Promise.resolve()}async fetchAdapters(){const t=this.storageAdaptersInConfig;if(!t)return s.default.system.log("APPLICATION LIFECYCLE: StorageService.initialize","finish. No storage adapters included in config."),Promise.resolve();const n=[];for(const e in t){const r=function(n){s.default.system.log("APPLICATION LIFECYCLE: StorageService.initialize",`Load adapter:${e}:start`),l.loadModel(e,t[e],(()=>{s.default.system.log("APPLICATION LIFECYCLE: StorageService.initialize",`Load adapter:${e}:finish`),n()}))};n.push(r)}return new Promise(((t,r)=>{(0,e.parallel)(n,(function(e){return s.default.system.info("StorageService.initialize","finish"),e?(s.default.system.error(e),r(e)):t()}))}))}createRouterEndpoints(){r.default.addResponder("Storage.clearCache",((e,t)=>{s.default.system.info("StorageService.clearCache",t),this.clearCache(t,((e,n)=>{t.sendQueryResponse(e,n)}))})),r.default.addResponder("Storage.delete",((e,t)=>{s.default.system.info("StorageService.delete",t),this.delete(t,((e,n)=>{t.sendQueryResponse(e,n)}))})),r.default.addResponder("Storage.get",((e,t)=>{s.default.system.info("StorageService.get",t),this.get(t,((e,n)=>{t.sendQueryResponse(e,n)}))})),r.default.addResponder("Storage.getMultiple",((e,t)=>{s.default.system.info("StorageService.getMultiple",t),t.sendQueryResponse(e,"get multiple is not implemented")})),r.default.addResponder("Storage.keys",((e,t)=>{s.default.system.info("StorageService.keys",t),this.keys(t,((e,n)=>{t.sendQueryResponse(e,n)}))})),r.default.addResponder("Storage.save",((e,t)=>{s.default.system.info("StorageService.save",t),this.save(t,((e,n)=>{t.sendQueryResponse(e,n)}))})),r.default.addResponder("Storage.setStore",((e,t)=>{s.default.system.info("StorageService.setStore",t),this.setStore(t.data),t.sendQueryResponse(null,{status:"success"})})),r.default.addResponder("Storage.setUser",((e,t)=>{s.default.system.info("StorageService.setUser",t),this.setUser(t,((e,n)=>{t.sendQueryResponse(e,n)}))}))}notifyError(e,t){s.default.system.error(e,t)}createTimeoutResponder(e,t,n,r){return new a.Timeout((()=>{const o=`Warning! StorageService.${e}: Storage adapter '${t}' is taking too long to respond`;n||(n={}),this.notifyError(o,n),r&&r(o,n)}),this.adapterOperationTimeout)}clearTimerAndLogIfError(e,t,n,r,o,i){if(n){const n=`StorageService.${e}: Error in Storage adapter '${t}'`;this.notifyError(n,o)}r&&r.clear(),i&&i(n,o)}clearCache(e,t){const n=this.getStore(e.data,"clearCache",t);if(!n||!this.storageAdapters[n])return;const r=this.createTimeoutResponder("clearCache",n,e.data,t);try{this.storageAdapters[n].clearCache(e.data,((e,o)=>{this.clearTimerAndLogIfError("clearCache",n,e,r,o,((e,n)=>{r.didFire()||t(e,n)}))}))}catch(e){this.clearTimerAndLogIfError("clearCache",n,e,r,null,((e,n)=>{r.didFire()||t(e,n)}))}}delete(e,t){if(this.serviceReady||this.notifyError("storageService invoked before ready",e),!e||!e.data||!e.data.key){const n=`StorageService.delete: No storage key found in message data, message: '${e}'`;return this.notifyError(n,{}),void t(n,null)}const n=this.getStore(e.data,"delete",t);if(!n||!this.storageAdapters[n])return;const r=this.createTimeoutResponder("delete",n,e.data,t);try{this.storageAdapters[n].delete(e.data,((e,o)=>{this.clearTimerAndLogIfError("delete",n,e,r,o,((e,n)=>{r.didFire()||t(e,n)}))}))}catch(e){this.clearTimerAndLogIfError("delete",n,e,r,null,((e,n)=>{r.didFire()||t(e,n)}))}}get(e,t){if(this.serviceReady||this.notifyError("storageService invoked before ready",e),!e||!e.data||!e.data.key){const n=`StorageService.get: No storage key found in message data, message: '${e}'`;return this.notifyError(n,{}),void t(n,null)}const{data:n}=e,r=this.getStore(n,"get",t);if(!r||!this.storageAdapters[r])return;const o=this.createTimeoutResponder("get",r,n,t);try{this.storageAdapters[r].get(n,((e,n)=>{this.clearTimerAndLogIfError("get",r,e,o,n,((e,n)=>{o.didFire()||t(e,n)}))}))}catch(e){this.clearTimerAndLogIfError("get",r,e,o,null,((e,n)=>{o.didFire()||t(e,n)}))}}keys(e,t){if(this.serviceReady||this.notifyError("storageService invoked before ready",e),!e||!e.data){const n=`StorageService.keys: No message data passed to function, message: '${e}'`;return this.notifyError(n,{}),void t(n,null)}const n=this.getStore(e.data,"keys",t);if(!n||!this.storageAdapters[n])return;const r=this.createTimeoutResponder("keys",n,e.data,t);try{this.storageAdapters[n].keys(e.data,((e,o)=>{this.clearTimerAndLogIfError("keys",n,e,r,o,((e,n)=>{r.didFire()||t(e,n)}))}))}catch(e){this.clearTimerAndLogIfError("keys",n,e,r,null,((e,n)=>{r.didFire()||t(e,n)}))}}loadAdapters(){const e=l.storageAdapters;for(const t in e)this.storageAdapters&&!this.storageAdapters[t]&&(e[t].setBaseName(this.parentUuid),e[t].setUser(this.user),this.storageAdapters[t]=e[t])}save(e,t){if(this.serviceReady||this.notifyError("storageService invoked before ready",e),!e||!e.data||!e.data.key){const n=`StorageService.save: No storage key found in message data, message: '${e}'`;return this.notifyError(n,{}),void t(n,null)}if(void 0===!e.data.value){const n=`StorageService.save: No value found to store in message data, message: '${e}'`;return this.notifyError(n,{}),void t(n,null)}const n=this.getStore(e.data,"save",t);if(!n||!this.storageAdapters[n])return;const r=this.createTimeoutResponder("save",n,e.data,t);try{this.storageAdapters[n].save(e.data,((e,o)=>{this.clearTimerAndLogIfError("save",n,e,r,o,((e,n)=>{r.didFire()||t(e,n)}))}))}catch(e){this.clearTimerAndLogIfError("save",n,e,r,null,((e,n)=>{r.didFire()||t(e,n)}))}}setUser(e,t){this.serviceReady||this.notifyError("storageService invoked before ready",e),this.user=e.data.user;for(const t in this.storageAdapters)s.default.system.log(`Model: ${t} User: ${JSON.stringify(e.data.user)}`),this.storageAdapters[t].setUser(e.data.user);t(null,{status:"success"})}getStore(e,t,n){let r=this.currentDefaultDataStore;if(e&&e.topic){const t=this.topicToStorageAdapterMap[e.topic];t?(s.default.system.debug("getStore for topic",e),r=t):s.default.system.info(`getStore: no data store for topic '${e.topic}', using default data store`,e,this.topicToStorageAdapterMap[e.topic])}else s.default.system.log("getStore: no topic provided, using default data store",r);return this.storageAdapters[r]?r:(this.clearTimerAndLogIfError(t,r,`storage adapter '${r}' not found`,null,null,n),null)}setStore(e){e.topic?(s.default.system.debug("setStore for topic ${data.topic}",e),this.topicToStorageAdapterMap[e.topic]=e.dataStore):(s.default.system.info("setStore for default data store",e),this.currentDefaultDataStore=e.dataStore)}help(){let e=Object.keys(this.storageAdapters);for(let t=0;t<e.length;t++)if(this.storageAdapters[e[t]].setRandomDelayBounds){console.log("***** The following list of instrumentation function can be invoked directly from the console. NOTE ALL PERSISTS ACROSS RESTARTS *****"),console.log("setRandomDelayBounds(lowerBoundInMilliseconds, upperBoundInMilliseconds) to randomly add delays (between specified bounds) to get/save/delete storage operations - persists across restarts so reset to 0,0 to stop"),console.log("setErrorMode(1) to always immediately return error for get/save/delete storage operations"),console.log("setErrorMode(2) to never return a response for get/save/delete storage operations (forcing a higher level timeout)"),console.log("clearErrorMode() to clear error mode"),window.help=this.help.bind(this),window.setRandomDelayBounds=this.storageAdapters[e[t]].setRandomDelayBounds.bind(this.storageAdapters[e[t]]),window.setErrorMode=this.storageAdapters[e[t]].setErrorMode.bind(this.storageAdapters[e[t]]),window.clearErrorMode=this.storageAdapters[e[t]].clearErrorMode.bind(this.storageAdapters[e[t]]);break}}}const d=new f;window.StorageService=d})()})();
|