@genesislcap/foundation-header 9.0.1-alpha-b5c5eb7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +246 -0
- package/dist/1.0.0.remoteEntry.js +1 -0
- package/dist/185.185.1368e7afe95e90687d2d.js +2 -0
- package/dist/185.bfe96e990dc6f09220d09b8c95f4b54c.js.map +1 -0
- package/dist/31607cf9ccd469a62208.svg +3 -0
- package/dist/338.338.6641454ca7888d1fe36e.js +2 -0
- package/dist/338.94cb9596c131c99ac58a37f38ad25ce7.js.map +1 -0
- package/dist/397.397.6f7ab18105495146ee4c.js +3 -0
- package/dist/397.397.6f7ab18105495146ee4c.js.LICENSE.txt +1 -0
- package/dist/397.b422a54dd9fd412d4aac2a90b8bb0e7a.js.map +1 -0
- package/dist/453.453.81dddb2e35aecdceb722.js +326 -0
- package/dist/453.547b1f466caf28aca7644e9032ba33d9.js.map +1 -0
- package/dist/506.216099078d895d583f069d47bbbbc118.js.map +1 -0
- package/dist/506.506.2df96cfa49403c056e18.js +3 -0
- package/dist/506.506.2df96cfa49403c056e18.js.LICENSE.txt +4 -0
- package/dist/540.540.16a5312961af053a4ac4.js +2 -0
- package/dist/540.6abb416013642069288d5369cb3126c7.js.map +1 -0
- package/dist/641.5d1b071000ebacbeffeb45846633c4ce.js.map +1 -0
- package/dist/641.641.0d19c60ce5b96cee96e9.js +3 -0
- package/dist/641.641.0d19c60ce5b96cee96e9.js.LICENSE.txt +4 -0
- package/dist/667.667.76a963874a8ced0ba03f.js +2 -0
- package/dist/667.e80f70ba5418c8fd00213d1c8ef97b86.js.map +1 -0
- package/dist/853.234215e17d31fe35e24b3b9241a6b6fd.js.map +1 -0
- package/dist/853.853.2cdc8d94fdad1718e016.js +2 -0
- package/dist/868.7e2669623e2fa4a4774231b5d97cd4a4.js.map +1 -0
- package/dist/868.868.db0184ec09b3ab0761a3.js +3405 -0
- package/dist/dashboard.json +1 -0
- package/dist/dts/components/components.d.ts +9 -0
- package/dist/dts/components/components.d.ts.map +1 -0
- package/dist/dts/components/index.d.ts +2 -0
- package/dist/dts/components/index.d.ts.map +1 -0
- package/dist/dts/index.d.ts +2 -0
- package/dist/dts/index.d.ts.map +1 -0
- package/dist/dts/index.federated.d.ts +1 -0
- package/dist/dts/index.federated.d.ts.map +1 -0
- package/dist/dts/main/index.d.ts +4 -0
- package/dist/dts/main/index.d.ts.map +1 -0
- package/dist/dts/main/main.d.ts +488 -0
- package/dist/dts/main/main.d.ts.map +1 -0
- package/dist/dts/main/main.styles.d.ts +10 -0
- package/dist/dts/main/main.styles.d.ts.map +1 -0
- package/dist/dts/main/main.template.d.ts +59 -0
- package/dist/dts/main/main.template.d.ts.map +1 -0
- package/dist/dts/styles/colors.d.ts +19 -0
- package/dist/dts/styles/colors.d.ts.map +1 -0
- package/dist/dts/styles/index.d.ts +3 -0
- package/dist/dts/styles/index.d.ts.map +1 -0
- package/dist/dts/styles/styles.d.ts +10 -0
- package/dist/dts/styles/styles.d.ts.map +1 -0
- package/dist/dts/styles/typography.d.ts +5 -0
- package/dist/dts/styles/typography.d.ts.map +1 -0
- package/dist/dts/tsdoc-metadata.json +11 -0
- package/dist/dts/utils/index.d.ts +2 -0
- package/dist/dts/utils/index.d.ts.map +1 -0
- package/dist/dts/utils/logger.d.ts +2 -0
- package/dist/dts/utils/logger.d.ts.map +1 -0
- package/dist/esm/assets/logo.svg +3 -0
- package/dist/esm/components/components.js +43 -0
- package/dist/esm/components/components.js.map +1 -0
- package/dist/esm/components/index.js +2 -0
- package/dist/esm/components/index.js.map +1 -0
- package/dist/esm/index.federated.js +2 -0
- package/dist/esm/index.federated.js.map +1 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/main/index.js +4 -0
- package/dist/esm/main/index.js.map +1 -0
- package/dist/esm/main/main.css +13 -0
- package/dist/esm/main/main.js +222 -0
- package/dist/esm/main/main.js.map +1 -0
- package/dist/esm/main/main.styles.js +250 -0
- package/dist/esm/main/main.styles.js.map +1 -0
- package/dist/esm/main/main.template.js +149 -0
- package/dist/esm/main/main.template.js.map +1 -0
- package/dist/esm/styles/colors.js +27 -0
- package/dist/esm/styles/colors.js.map +1 -0
- package/dist/esm/styles/index.js +3 -0
- package/dist/esm/styles/index.js.map +1 -0
- package/dist/esm/styles/styles.js +24 -0
- package/dist/esm/styles/styles.js.map +1 -0
- package/dist/esm/styles/typography.js +20 -0
- package/dist/esm/styles/typography.js.map +1 -0
- package/dist/esm/utils/index.js +2 -0
- package/dist/esm/utils/index.js.map +1 -0
- package/dist/esm/utils/logger.js +3 -0
- package/dist/esm/utils/logger.js.map +1 -0
- package/dist/favicon.ico +0 -0
- package/dist/foundation-header.api.json +837 -0
- package/dist/foundation-header.d.ts +521 -0
- package/dist/foundationHeader.d2a8e8744f9fd401e01219ffc10795af.js.map +1 -0
- package/dist/index.ejs +23 -0
- package/dist/index.html +10 -0
- package/dist/info.ejs +13 -0
- package/dist/info.html +19 -0
- package/dist/main.93fb4f46c19086cd1c10.js +2 -0
- package/dist/main.f149477dcf975f5bec20fdc2d0fce637.js.map +1 -0
- package/dist/npm.analytics.13d3017bcb2734b958e1c261c7e620d1.js.map +1 -0
- package/dist/npm.analytics.343.868701a34bf55591b35e.js +2 -0
- package/dist/npm.consola.713.a6a01a645775febbd05a.js +2 -0
- package/dist/npm.consola.d0475457692e79d2065981689ecbe6c8.js.map +1 -0
- package/dist/npm.dialog-polyfill.39e8a4cd9784ad9e0690d28f17eefeb3.js.map +1 -0
- package/dist/npm.dialog-polyfill.47.857e1cc698756a1d4d9f.js +2 -0
- package/dist/npm.finos.690.1d362c820f7a29e44178.js +2 -0
- package/dist/npm.finos.7eb5017b5506c0dd6de2c2bee763a997.js.map +1 -0
- package/dist/npm.fortawesome.104.6fdfed399ac3d4bcd076.js +2 -0
- package/dist/npm.fortawesome.96f1e7115d1e111bde725447b64f04a9.js.map +1 -0
- package/dist/npm.microsoft.127.63be836a7ee60f2db5e3.js +6406 -0
- package/dist/npm.microsoft.127.63be836a7ee60f2db5e3.js.LICENSE.txt +14 -0
- package/dist/npm.microsoft.93b16332ce7f1e3a889ad69e0403d652.js.map +1 -0
- package/dist/npm.rxjs.271.3c690069442a312eaee2.js +2 -0
- package/dist/npm.rxjs.3e4127a7515023cc78b8548028afb653.js.map +1 -0
- package/dist/remoteEntry.js +2 -0
- package/dist/serve.json +3 -0
- package/docs/api/foundation-header.mainstyles.md +13 -0
- package/docs/api/foundation-header.md +25 -0
- package/docs/api/foundation-header.naveventdetailmap.md +17 -0
- package/docs/api/foundation-header.navigation.auth.md +11 -0
- package/docs/api/foundation-header.navigation.connectedcallback.md +15 -0
- package/docs/api/foundation-header.navigation.credentialmanager.md +11 -0
- package/docs/api/foundation-header.navigation.hidesidebar.md +13 -0
- package/docs/api/foundation-header.navigation.logosrc.md +18 -0
- package/docs/api/foundation-header.navigation.logout.md +21 -0
- package/docs/api/foundation-header.navigation.md +45 -0
- package/docs/api/foundation-header.navigation.navigateto.md +28 -0
- package/docs/api/foundation-header.navigation.provider.md +11 -0
- package/docs/api/foundation-header.navigation.ready.md +11 -0
- package/docs/api/foundation-header.navigation.routebuttons.md +19 -0
- package/docs/api/foundation-header.navigation.selecttemplate.md +15 -0
- package/docs/api/foundation-header.navigation.showluminancetogglebutton.md +18 -0
- package/docs/api/foundation-header.navigation.showmisctogglebutton.md +18 -0
- package/docs/api/foundation-header.navigation.shownotificationsbutton.md +18 -0
- package/docs/api/foundation-header.navigation.sidenavopen.md +11 -0
- package/docs/api/foundation-header.navigation.username.md +13 -0
- package/docs/api/foundation-header.navtemplate.md +18 -0
- package/docs/api/index.md +12 -0
- package/docs/api-report.md +75 -0
- package/docs/img/foundation-header-replaced-img.png +0 -0
- package/docs/img/foundation-header-sidebar.png +0 -0
- package/docs/img/foundation-header-standard.png +0 -0
- package/license.txt +46 -0
- package/package.json +82 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["webpack://@genesislcap/foundation-header/../node_modules/consola/dist/consola.browser.js","webpack://@genesislcap/foundation-header/../node_modules/consola/src/logLevels.js","webpack://@genesislcap/foundation-header/../node_modules/consola/src/types.js","webpack://@genesislcap/foundation-header/../node_modules/consola/src/utils/index.js","webpack://@genesislcap/foundation-header/../node_modules/consola/src/consola.js","webpack://@genesislcap/foundation-header/../node_modules/consola/src/reporters/browser.js","webpack://@genesislcap/foundation-header/../node_modules/consola/src/browser.js"],"names":["module","exports","t","e","TypeError","r","length","o","enumerable","configurable","writable","Object","defineProperty","key","prototype","value","n","keys","getOwnPropertySymbols","filter","getOwnPropertyDescriptor","push","apply","s","arguments","forEach","getOwnPropertyDescriptors","defineProperties","i","Array","isArray","l","Symbol","iterator","from","a","toString","call","slice","constructor","name","test","u","done","f","next","return","c","Fatal","Error","Warn","Log","Info","Success","Debug","Trace","Silent","Verbose","silent","level","fatal","error","warn","log","info","success","debug","trace","verbose","ready","start","h","message","args","stack","p","y","d","this","_reporters","reporters","_types","types","_defaults","defaults","_async","async","_stdout","stdout","_stderr","stderr","_mockFn","mockFn","_throttle","throttle","_throttleMin","throttleMin","type","_wrapLogFn","raw","mockTypes","_lastLogSerialized","_lastLog","_lastLogTime","_lastLogCount","_throttleTimeout","assign","create","withDefaults","tag","indexOf","splice","wrapConsole","wrapStd","restoreConsole","restoreStd","console","_wrapStream","__write","write","String","trim","_restoreStream","_logFn","Promise","resolve","date","Date","unshift","additional","split","join","toLowerCase","concat","_log","_logAsync","clearTimeout","JSON","stringify","setTimeout","all","map","get","add","addReporter","remove","removeReporter","clear","withScope","withTag","mock","pause","pauseLogs","resume","resumeLogs","v","g","options","defaultColor","levelColorMap","typeColorMap","__error","__warn","__log","Boolean","window","consola","Consola","LogLevel","BrowserReporter","Infinity","isLogObj","arg","obj","paused","queue","undefined","reporter","setReporters","wrapAll","restoreAll","stream","data","_queue","item","isRaw","logObj","resolveLog","newLog","repeated","diffTime","serializedLog","isSameLog","_","consoleLogFn","style","badge","createConsola"],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,SAAWA,EACnBF,EAAQG,gBAAkBA,EAEnBH,CACT,CAEoE+B,E","file":"npm.consola.713.xxxxxxxxxxxxxxxxxxxx.js","sourcesContent":["!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(e):(t=t||self).consola=e()}(this,(function(){\"use strict\";function t(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function e(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,\"value\"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function r(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,o)}return r}function s(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach((function(e){o(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function i(t){return function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||a(t)||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.\")}()}function a(t,e){if(t){if(\"string\"==typeof t)return l(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return\"Object\"===r&&t.constructor&&(r=t.constructor.name),\"Map\"===r||\"Set\"===r?Array.from(t):\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(t,e):void 0}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r<e;r++)o[r]=t[r];return o}function u(t){if(\"undefined\"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(t=a(t))){var e=0,r=function(){};return{s:r,n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:r}}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 o,n,s=!0,i=!1;return{s:function(){o=t[Symbol.iterator]()},n:function(){var t=o.next();return s=t.done,t},e:function(t){i=!0,n=t},f:function(){try{s||null==o.return||o.return()}finally{if(i)throw n}}}}var c={};c[c.Fatal=0]=\"Fatal\",c[c.Error=0]=\"Error\",c[c.Warn=1]=\"Warn\",c[c.Log=2]=\"Log\",c[c.Info=3]=\"Info\",c[c.Success=3]=\"Success\",c[c.Debug=4]=\"Debug\",c[c.Trace=5]=\"Trace\",c[c.Silent=-1/0]=\"Silent\",c[c.Verbose=1/0]=\"Verbose\";var f={silent:{level:-1},fatal:{level:c.Fatal},error:{level:c.Error},warn:{level:c.Warn},log:{level:c.Log},info:{level:c.Info},success:{level:c.Success},debug:{level:c.Debug},trace:{level:c.Trace},verbose:{level:c.Trace},ready:{level:c.Info},start:{level:c.Info}};function h(t){return e=t,\"[object Object]\"===Object.prototype.toString.call(e)&&(!(!t.message&&!t.args)&&!t.stack);var e}var p=!1,y=[],d=function(){function e(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var o in t(this,e),this._reporters=r.reporters||[],this._types=r.types||f,this.level=void 0!==r.level?r.level:3,this._defaults=r.defaults||{},this._async=void 0!==r.async?r.async:void 0,this._stdout=r.stdout,this._stderr=r.stderr,this._mockFn=r.mockFn,this._throttle=r.throttle||1e3,this._throttleMin=r.throttleMin||5,this._types){var n=s(s({type:o},this._types[o]),this._defaults);this[o]=this._wrapLogFn(n),this[o].raw=this._wrapLogFn(n,!0)}this._mockFn&&this.mockTypes(),this._lastLogSerialized=void 0,this._lastLog=void 0,this._lastLogTime=void 0,this._lastLogCount=0,this._throttleTimeout=void 0}return r(e,[{key:\"create\",value:function(t){return new e(Object.assign({reporters:this._reporters,level:this.level,types:this._types,defaults:this._defaults,stdout:this._stdout,stderr:this._stderr,mockFn:this._mockFn},t))}},{key:\"withDefaults\",value:function(t){return this.create({defaults:Object.assign({},this._defaults,t)})}},{key:\"withTag\",value:function(t){return this.withDefaults({tag:this._defaults.tag?this._defaults.tag+\":\"+t:t})}},{key:\"addReporter\",value:function(t){return this._reporters.push(t),this}},{key:\"removeReporter\",value:function(t){if(t){var e=this._reporters.indexOf(t);if(e>=0)return this._reporters.splice(e,1)}else this._reporters.splice(0);return this}},{key:\"setReporters\",value:function(t){return this._reporters=Array.isArray(t)?t:[t],this}},{key:\"wrapAll\",value:function(){this.wrapConsole(),this.wrapStd()}},{key:\"restoreAll\",value:function(){this.restoreConsole(),this.restoreStd()}},{key:\"wrapConsole\",value:function(){for(var t in this._types)console[\"__\"+t]||(console[\"__\"+t]=console[t]),console[t]=this[t].raw}},{key:\"restoreConsole\",value:function(){for(var t in this._types)console[\"__\"+t]&&(console[t]=console[\"__\"+t],delete console[\"__\"+t])}},{key:\"wrapStd\",value:function(){this._wrapStream(this.stdout,\"log\"),this._wrapStream(this.stderr,\"log\")}},{key:\"_wrapStream\",value:function(t,e){var r=this;t&&(t.__write||(t.__write=t.write),t.write=function(t){r[e].raw(String(t).trim())})}},{key:\"restoreStd\",value:function(){this._restoreStream(this.stdout),this._restoreStream(this.stderr)}},{key:\"_restoreStream\",value:function(t){t&&t.__write&&(t.write=t.__write,delete t.__write)}},{key:\"pauseLogs\",value:function(){p=!0}},{key:\"resumeLogs\",value:function(){p=!1;var t,e=u(y.splice(0));try{for(e.s();!(t=e.n()).done;){var r=t.value;r[0]._logFn(r[1],r[2])}}catch(t){e.e(t)}finally{e.f()}}},{key:\"mockTypes\",value:function(t){if(this._mockFn=t||this._mockFn,\"function\"==typeof this._mockFn)for(var e in this._types)this[e]=this._mockFn(e,this._types[e])||this[e],this[e].raw=this[e]}},{key:\"_wrapLogFn\",value:function(t,e){var r=this;return function(){for(var o=arguments.length,n=new Array(o),s=0;s<o;s++)n[s]=arguments[s];if(!p)return r._logFn(t,n,e);y.push([r,t,n,e])}}},{key:\"_logFn\",value:function(t,e,r){var o=this;if(t.level>this.level)return!!this._async&&Promise.resolve(!1);var n=Object.assign({date:new Date,args:[]},t);!r&&1===e.length&&h(e[0])?Object.assign(n,e[0]):n.args=Array.from(e),n.message&&(n.args.unshift(n.message),delete n.message),n.additional&&(Array.isArray(n.additional)||(n.additional=n.additional.split(\"\\n\")),n.args.push(\"\\n\"+n.additional.join(\"\\n\")),delete n.additional),n.type=\"string\"==typeof n.type?n.type.toLowerCase():\"\",n.tag=\"string\"==typeof n.tag?n.tag.toLowerCase():\"\";var a=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=o._lastLogCount-o._throttleMin;if(o._lastLog&&e>0){var r=i(o._lastLog.args);e>1&&r.push(\"(repeated \".concat(e,\" times)\")),o._log(s(s({},o._lastLog),{},{args:r})),o._lastLogCount=1}if(t){if(o._lastLog=n,o._async)return o._logAsync(n);o._log(n)}};clearTimeout(this._throttleTimeout);var l=this._lastLogTime?n.date-this._lastLogTime:0;if(this._lastLogTime=n.date,l<this._throttle)try{var u=JSON.stringify([n.type,n.tag,n.args]),c=this._lastLogSerialized===u;if(this._lastLogSerialized=u,c&&(this._lastLogCount++,this._lastLogCount>this._throttleMin))return void(this._throttleTimeout=setTimeout(a,this._throttle))}catch(t){}a(!0)}},{key:\"_log\",value:function(t){var e,r=u(this._reporters);try{for(r.s();!(e=r.n()).done;){e.value.log(t,{async:!1,stdout:this.stdout,stderr:this.stderr})}}catch(t){r.e(t)}finally{r.f()}}},{key:\"_logAsync\",value:function(t){var e=this;return Promise.all(this._reporters.map((function(r){return r.log(t,{async:!0,stdout:e.stdout,stderr:e.stderr})})))}},{key:\"stdout\",get:function(){return this._stdout||console._stdout}},{key:\"stderr\",get:function(){return this._stderr||console._stderr}}]),e}();d.prototype.add=d.prototype.addReporter,d.prototype.remove=d.prototype.removeReporter,d.prototype.clear=d.prototype.removeReporter,d.prototype.withScope=d.prototype.withTag,d.prototype.mock=d.prototype.mockTypes,d.prototype.pause=d.prototype.pauseLogs,d.prototype.resume=d.prototype.resumeLogs;var v,g=function(){function e(r){t(this,e),this.options=Object.assign({},r),this.defaultColor=\"#7f8c8d\",this.levelColorMap={0:\"#c0392b\",1:\"#f39c12\",3:\"#00BCD4\"},this.typeColorMap={success:\"#2ecc71\"}}return r(e,[{key:\"log\",value:function(t){var e=t.level<1?console.__error||console.error:1===t.level&&console.warn?console.__warn||console.warn:console.__log||console.log,r=\"log\"!==t.type?t.type:\"\",o=t.tag?t.tag:\"\",n=this.typeColorMap[t.type]||this.levelColorMap[t.level]||this.defaultColor,s=\"\\n background: \".concat(n,\";\\n border-radius: 0.5em;\\n color: white;\\n font-weight: bold;\\n padding: 2px 0.5em;\\n \"),a=\"%c\".concat([o,r].filter(Boolean).join(\":\"));\"string\"==typeof t.args[0]?e.apply(void 0,[\"\".concat(a,\"%c \").concat(t.args[0]),s,\"\"].concat(i(t.args.slice(1)))):e.apply(void 0,[a,s].concat(i(t.args)))}}]),e}();return\"undefined\"!=typeof window&&window.consola||((v=new d({reporters:[new g]})).Consola=d,v.LogLevel=c,v.BrowserReporter=g,v)}));\n","export const LogLevel = {}\nLogLevel[LogLevel.Fatal = 0] = 'Fatal'\nLogLevel[LogLevel.Error = 0] = 'Error'\nLogLevel[LogLevel.Warn = 1] = 'Warn'\nLogLevel[LogLevel.Log = 2] = 'Log'\nLogLevel[LogLevel.Info = 3] = 'Info'\nLogLevel[LogLevel.Success = 3] = 'Success'\nLogLevel[LogLevel.Debug = 4] = 'Debug'\nLogLevel[LogLevel.Trace = 5] = 'Trace'\nLogLevel[LogLevel.Silent = -Infinity] = 'Silent'\nLogLevel[LogLevel.Verbose = Infinity] = 'Verbose'\n","import { LogLevel } from './logLevels'\n\nexport default {\n // Silent\n silent: {\n level: -1\n },\n // Level 0\n fatal: {\n level: LogLevel.Fatal\n },\n error: {\n level: LogLevel.Error\n },\n // Level 1\n warn: {\n level: LogLevel.Warn\n },\n // Level 2\n log: {\n level: LogLevel.Log\n },\n // Level 3\n info: {\n level: LogLevel.Info\n },\n success: {\n level: LogLevel.Success\n },\n // Level 4\n debug: {\n level: LogLevel.Debug\n },\n // Level 5\n trace: {\n level: LogLevel.Trace\n },\n // Verbose\n verbose: {\n level: LogLevel.Trace\n },\n\n // Legacy\n ready: {\n level: LogLevel.Info\n },\n start: {\n level: LogLevel.Info\n }\n}\n","export function isPlainObject (obj) {\n return Object.prototype.toString.call(obj) === '[object Object]'\n}\n\n// TODO: remove for consola@3\nexport function isLogObj (arg) {\n // Should be plain object\n if (!isPlainObject(arg)) {\n return false\n }\n\n // Should contains either 'message' or 'args' field\n if (!arg.message && !arg.args) {\n return false\n }\n\n // Handle non-standard error objects\n if (arg.stack) {\n return false\n }\n\n return true\n}\n","import Types from './types.js'\nimport { isLogObj } from './utils/index.js'\n\nlet paused = false\nconst queue = []\n\nclass Consola {\n constructor (options = {}) {\n this._reporters = options.reporters || []\n this._types = options.types || Types\n this.level = options.level !== undefined ? options.level : 3\n this._defaults = options.defaults || {}\n this._async = options.async !== undefined ? options.async : undefined\n this._stdout = options.stdout\n this._stderr = options.stderr\n this._mockFn = options.mockFn\n this._throttle = options.throttle || 1000\n this._throttleMin = options.throttleMin || 5\n\n // Create logger functions for current instance\n for (const type in this._types) {\n const defaults = {\n type,\n ...this._types[type],\n ...this._defaults\n }\n this[type] = this._wrapLogFn(defaults)\n this[type].raw = this._wrapLogFn(defaults, true)\n }\n\n // Use _mockFn if is set\n if (this._mockFn) {\n this.mockTypes()\n }\n\n // Keep serialized version of last log\n this._lastLogSerialized = undefined\n this._lastLog = undefined\n this._lastLogTime = undefined\n this._lastLogCount = 0\n this._throttleTimeout = undefined\n }\n\n get stdout () {\n return this._stdout || console._stdout // eslint-disable-line no-console\n }\n\n get stderr () {\n return this._stderr || console._stderr // eslint-disable-line no-console\n }\n\n create (options) {\n return new Consola(Object.assign({\n reporters: this._reporters,\n level: this.level,\n types: this._types,\n defaults: this._defaults,\n stdout: this._stdout,\n stderr: this._stderr,\n mockFn: this._mockFn\n }, options))\n }\n\n withDefaults (defaults) {\n return this.create({\n defaults: Object.assign({}, this._defaults, defaults)\n })\n }\n\n withTag (tag) {\n return this.withDefaults({\n tag: this._defaults.tag ? (this._defaults.tag + ':' + tag) : tag\n })\n }\n\n addReporter (reporter) {\n this._reporters.push(reporter)\n return this\n }\n\n removeReporter (reporter) {\n if (reporter) {\n const i = this._reporters.indexOf(reporter)\n if (i >= 0) {\n return this._reporters.splice(i, 1)\n }\n } else {\n this._reporters.splice(0)\n }\n return this\n }\n\n setReporters (reporters) {\n this._reporters = Array.isArray(reporters)\n ? reporters\n : [reporters]\n return this\n }\n\n wrapAll () {\n this.wrapConsole()\n this.wrapStd()\n }\n\n restoreAll () {\n this.restoreConsole()\n this.restoreStd()\n }\n\n wrapConsole () {\n for (const type in this._types) {\n // Backup original value\n if (!console['__' + type]) { // eslint-disable-line no-console\n console['__' + type] = console[type] // eslint-disable-line no-console\n }\n // Override\n console[type] = this[type].raw // eslint-disable-line no-console\n }\n }\n\n restoreConsole () {\n for (const type in this._types) {\n // Restore if backup is available\n if (console['__' + type]) { // eslint-disable-line no-console\n console[type] = console['__' + type] // eslint-disable-line no-console\n delete console['__' + type] // eslint-disable-line no-console\n }\n }\n }\n\n wrapStd () {\n this._wrapStream(this.stdout, 'log')\n this._wrapStream(this.stderr, 'log')\n }\n\n _wrapStream (stream, type) {\n if (!stream) {\n return\n }\n\n // Backup original value\n if (!stream.__write) {\n stream.__write = stream.write\n }\n\n // Override\n stream.write = (data) => {\n this[type].raw(String(data).trim())\n }\n }\n\n restoreStd () {\n this._restoreStream(this.stdout)\n this._restoreStream(this.stderr)\n }\n\n _restoreStream (stream) {\n if (!stream) {\n return\n }\n\n if (stream.__write) {\n stream.write = stream.__write\n delete stream.__write\n }\n }\n\n pauseLogs () {\n paused = true\n }\n\n resumeLogs () {\n paused = false\n\n // Process queue\n const _queue = queue.splice(0)\n for (const item of _queue) {\n item[0]._logFn(item[1], item[2])\n }\n }\n\n mockTypes (mockFn) {\n this._mockFn = mockFn || this._mockFn\n\n if (typeof this._mockFn !== 'function') {\n return\n }\n\n for (const type in this._types) {\n this[type] = this._mockFn(type, this._types[type]) || this[type]\n this[type].raw = this[type]\n }\n }\n\n _wrapLogFn (defaults, isRaw) {\n return (...args) => {\n if (paused) {\n queue.push([this, defaults, args, isRaw])\n return\n }\n return this._logFn(defaults, args, isRaw)\n }\n }\n\n _logFn (defaults, args, isRaw) {\n if (defaults.level > this.level) {\n return this._async ? Promise.resolve(false) : false\n }\n\n // Construct a new log object\n const logObj = Object.assign({\n date: new Date(),\n args: []\n }, defaults)\n\n // Consume arguments\n if (!isRaw && args.length === 1 && isLogObj(args[0])) {\n Object.assign(logObj, args[0])\n } else {\n logObj.args = Array.from(args)\n }\n\n // Aliases\n if (logObj.message) {\n logObj.args.unshift(logObj.message)\n delete logObj.message\n }\n if (logObj.additional) {\n if (!Array.isArray(logObj.additional)) {\n logObj.additional = logObj.additional.split('\\n')\n }\n logObj.args.push('\\n' + logObj.additional.join('\\n'))\n delete logObj.additional\n }\n\n // Normalize type and tag to lowercase\n logObj.type = typeof logObj.type === 'string' ? logObj.type.toLowerCase() : ''\n logObj.tag = typeof logObj.tag === 'string' ? logObj.tag.toLowerCase() : ''\n\n // Resolve log\n /**\n * @param newLog false if the throttle expired and\n * we don't want to log a duplicate\n */\n const resolveLog = (newLog = false) => {\n const repeated = this._lastLogCount - this._throttleMin\n if (this._lastLog && repeated > 0) {\n const args = [...this._lastLog.args]\n if (repeated > 1) {\n args.push(`(repeated ${repeated} times)`)\n }\n this._log({ ...this._lastLog, args })\n this._lastLogCount = 1\n }\n\n // Log\n if (newLog) {\n this._lastLog = logObj\n if (this._async) {\n return this._logAsync(logObj)\n } else {\n this._log(logObj)\n }\n }\n }\n\n // Throttle\n clearTimeout(this._throttleTimeout)\n const diffTime = this._lastLogTime ? logObj.date - this._lastLogTime : 0\n this._lastLogTime = logObj.date\n if (diffTime < this._throttle) {\n try {\n const serializedLog = JSON.stringify([logObj.type, logObj.tag, logObj.args])\n const isSameLog = this._lastLogSerialized === serializedLog\n this._lastLogSerialized = serializedLog\n if (isSameLog) {\n this._lastLogCount++\n if (this._lastLogCount > this._throttleMin) {\n // Auto-resolve when throttle is timed out\n this._throttleTimeout = setTimeout(resolveLog, this._throttle)\n return // SPAM!\n }\n }\n } catch (_) {\n // Circular References\n }\n }\n\n resolveLog(true)\n }\n\n _log (logObj) {\n for (const reporter of this._reporters) {\n reporter.log(logObj, {\n async: false,\n stdout: this.stdout,\n stderr: this.stderr\n })\n }\n }\n\n _logAsync (logObj) {\n return Promise.all(\n this._reporters.map(reporter => reporter.log(logObj, {\n async: true,\n stdout: this.stdout,\n stderr: this.stderr\n }))\n )\n }\n}\n\n// Legacy support\nConsola.prototype.add = Consola.prototype.addReporter\n\nConsola.prototype.remove = Consola.prototype.removeReporter\nConsola.prototype.clear = Consola.prototype.removeReporter\n\nConsola.prototype.withScope = Consola.prototype.withTag\n\nConsola.prototype.mock = Consola.prototype.mockTypes\n\nConsola.prototype.pause = Consola.prototype.pauseLogs\nConsola.prototype.resume = Consola.prototype.resumeLogs\n\n// Export class\nexport default Consola\n","export default class BrowserReporter {\n constructor (options) {\n this.options = Object.assign({}, options)\n\n this.defaultColor = '#7f8c8d' // Gray\n this.levelColorMap = {\n 0: '#c0392b', // Red\n 1: '#f39c12', // Yellow\n 3: '#00BCD4' // Cyan\n }\n this.typeColorMap = {\n success: '#2ecc71' // Green\n }\n }\n\n log (logObj) {\n const consoleLogFn = logObj.level < 1\n // eslint-disable-next-line no-console\n ? (console.__error || console.error)\n // eslint-disable-next-line no-console\n : logObj.level === 1 && console.warn ? (console.__warn || console.warn) : (console.__log || console.log)\n\n // Type\n const type = logObj.type !== 'log' ? logObj.type : ''\n\n // Tag\n const tag = logObj.tag ? logObj.tag : ''\n\n // Styles\n const color = this.typeColorMap[logObj.type] || this.levelColorMap[logObj.level] || this.defaultColor\n const style = `\n background: ${color};\n border-radius: 0.5em;\n color: white;\n font-weight: bold;\n padding: 2px 0.5em;\n `\n\n const badge = `%c${[tag, type].filter(Boolean).join(':')}`\n\n // Log to the console\n if (typeof logObj.args[0] === 'string') {\n consoleLogFn(\n `${badge}%c ${logObj.args[0]}`,\n style,\n // Empty string as style resets to default console style\n '',\n ...logObj.args.slice(1)\n )\n } else {\n consoleLogFn(badge, style, ...logObj.args)\n }\n }\n}\n","import Consola from './consola.js'\nimport BrowserReporter from './reporters/browser.js'\nimport { LogLevel } from './logLevels'\n\nfunction createConsola () {\n const consola = new Consola({\n reporters: [\n new BrowserReporter()\n ]\n })\n\n // Expose constructors\n consola.Consola = Consola\n consola.LogLevel = LogLevel\n consola.BrowserReporter = BrowserReporter\n\n return consola\n}\n\nexport default (typeof window !== 'undefined' && window.consola) || createConsola()\n"],"sourceRoot":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["webpack://@genesislcap/foundation-header/../node_modules/dialog-polyfill/dist/dialog-polyfill.esm.js"],"names":["supportCustomEvent","window","CustomEvent","safeDispatchEvent","target","event","check","type","toLowerCase","dispatchEvent","findNearestDialog","el","localName","parentElement","parentNode","host","safeBlur","shadowRoot","activeElement","blur","document","body","inNodeList","nodeList","node","i","length","isFormMethodDialog","hasAttribute","getAttribute","findFocusableElementWithin","hostElement","query","map","push","querySelector","join","Element","prototype","elems","querySelectorAll","tagName","isConnected","element","contains","findFormSubmitter","submitter","form","HTMLFormElement","dialogPolyfill","formSubmitter","getRootNode","maybeHandleSubmit","defaultPrevented","value","imagemapUseValue","dialog","preventDefault","close","dialogPolyfillInfo","this","dialog_","replacedStyleTop_","openAsModal_","setAttribute","show","bind","showModal","addEventListener","returnValue","MutationObserver","maybeHideModal","observe","attributes","attributeFilter","timeout","removed","cb","downgradeModal","delayModel","ev","cand","substr","clearTimeout","setTimeout","forEach","name","Object","defineProperty","set","setOpen","get","backdrop_","createElement","className","backdropMouseEvent_","x","createEvent","initCustomEvent","bubbles","cancelable","detail","Event","style","zIndex","top","removeChild","dm","removeDialog","removeAttribute","e","focus","fake","insertBefore","firstChild","tabIndex","redirectedEvent","initMouseEvent","screenX","screenY","clientX","clientY","ctrlKey","altKey","shiftKey","metaKey","button","relatedTarget","stopPropagation","focus_","updateZIndex","dialogZ","backdropZ","Error","open","pushDialog","s","getComputedStyle","invalid","k","ok","undefined","opacity","position","webkitOverflowScrolling","createsStackingContext","console","warn","needsCentering","reposition","nextSibling","opt_returnValue","closeEvent","scrollTop","documentElement","topValue","innerHeight","offsetHeight","Math","max","styleSheets","styleSheet","cssRules","j","rule","selectedNodes","selectorText","cssTop","getPropertyValue","cssBottom","bottom","isInlinePositionSetByStylesheet","HTMLDialogElement","forceRegisterDialog","pendingDialogStack","checkDOM","checkDOM_","overlay","forwardTab_","handleKey_","handleFocus_","zIndexLow_","zIndexHigh_","mo_","records","rec","c","removedNodes","concat","DialogManager","blockDocument","childList","subtree","unblockDocument","removeEventListener","disconnect","updateStacking","dpi","last","appendChild","containedByTopDialog_","candidate","composedPath","compareDocumentPosition","Node","DOCUMENT_POSITION_PRECEDING","keyCode","cancelEvent","slice","indexOf","allowed","unshift","index","splice","testForm","method","methodDescriptor","getOwnPropertyDescriptor","realGet","call","realSet","v","shift","offsetX","offsetY","nativeFormSubmit","submit"],"mappings":"+JACA,IAAIA,EAAqBC,OAAOC,YAmBhC,SAASC,EAAkBC,EAAQC,GACjC,IAAIC,EAAQ,KAAOD,EAAME,KAAKC,cAI9B,MAH6B,mBAAlBJ,EAAOE,IAChBF,EAAOE,GAAOD,GAETD,EAAOK,cAAcJ,EAC9B,CAmCA,SAASK,EAAkBC,GACzB,KA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AMA,IAAIwK,EAAmBjL,gBAAgBV,UAAU4L,OAQjDlL,gBAAgBV,UAAU4L,OAPE,WAC1B,IAAKvM,EAAmBiC,MACtB,OAAOqK,EAAiBN,KAAK/J,MAE/B,IAAIJ,EAAS9C,EAAkBkD,MAC/BJ,GAAUA,EAAOE,OACnB,CAEF,CAEA,S","file":"npm.dialog-polyfill.47.xxxxxxxxxxxxxxxxxxxx.js","sourcesContent":["// nb. This is for IE10 and lower _only_.\nvar supportCustomEvent = window.CustomEvent;\nif (!supportCustomEvent || typeof supportCustomEvent === 'object') {\n supportCustomEvent = function CustomEvent(event, x) {\n x = x || {};\n var ev = document.createEvent('CustomEvent');\n ev.initCustomEvent(event, !!x.bubbles, !!x.cancelable, x.detail || null);\n return ev;\n };\n supportCustomEvent.prototype = window.Event.prototype;\n}\n\n/**\n * Dispatches the passed event to both an \"on<type>\" handler as well as via the\n * normal dispatch operation. Does not bubble.\n *\n * @param {!EventTarget} target\n * @param {!Event} event\n * @return {boolean}\n */\nfunction safeDispatchEvent(target, event) {\n var check = 'on' + event.type.toLowerCase();\n if (typeof target[check] === 'function') {\n target[check](event);\n }\n return target.dispatchEvent(event);\n}\n\n/**\n * @param {Element} el to check for stacking context\n * @return {boolean} whether this el or its parents creates a stacking context\n */\nfunction createsStackingContext(el) {\n while (el && el !== document.body) {\n var s = window.getComputedStyle(el);\n var invalid = function(k, ok) {\n return !(s[k] === undefined || s[k] === ok);\n };\n\n if (s.opacity < 1 ||\n invalid('zIndex', 'auto') ||\n invalid('transform', 'none') ||\n invalid('mixBlendMode', 'normal') ||\n invalid('filter', 'none') ||\n invalid('perspective', 'none') ||\n s['isolation'] === 'isolate' ||\n s.position === 'fixed' ||\n s.webkitOverflowScrolling === 'touch') {\n return true;\n }\n el = el.parentElement;\n }\n return false;\n}\n\n/**\n * Finds the nearest <dialog> from the passed element.\n *\n * @param {Element} el to search from\n * @return {HTMLDialogElement} dialog found\n */\nfunction findNearestDialog(el) {\n while (el) {\n if (el.localName === 'dialog') {\n return /** @type {HTMLDialogElement} */ (el);\n }\n if (el.parentElement) {\n el = el.parentElement;\n } else if (el.parentNode) {\n el = el.parentNode.host;\n } else {\n el = null;\n }\n }\n return null;\n}\n\n/**\n * Blur the specified element, as long as it's not the HTML body element.\n * This works around an IE9/10 bug - blurring the body causes Windows to\n * blur the whole application.\n *\n * @param {Element} el to blur\n */\nfunction safeBlur(el) {\n // Find the actual focused element when the active element is inside a shadow root\n while (el && el.shadowRoot && el.shadowRoot.activeElement) {\n el = el.shadowRoot.activeElement;\n }\n\n if (el && el.blur && el !== document.body) {\n el.blur();\n }\n}\n\n/**\n * @param {!NodeList} nodeList to search\n * @param {Node} node to find\n * @return {boolean} whether node is inside nodeList\n */\nfunction inNodeList(nodeList, node) {\n for (var i = 0; i < nodeList.length; ++i) {\n if (nodeList[i] === node) {\n return true;\n }\n }\n return false;\n}\n\n/**\n * @param {HTMLFormElement} el to check\n * @return {boolean} whether this form has method=\"dialog\"\n */\nfunction isFormMethodDialog(el) {\n if (!el || !el.hasAttribute('method')) {\n return false;\n }\n return el.getAttribute('method').toLowerCase() === 'dialog';\n}\n\n/**\n * @param {!DocumentFragment|!Element} hostElement\n * @return {?Element}\n */\nfunction findFocusableElementWithin(hostElement) {\n // Note that this is 'any focusable area'. This list is probably not exhaustive, but the\n // alternative involves stepping through and trying to focus everything.\n var opts = ['button', 'input', 'keygen', 'select', 'textarea'];\n var query = opts.map(function(el) {\n return el + ':not([disabled])';\n });\n // TODO(samthor): tabindex values that are not numeric are not focusable.\n query.push('[tabindex]:not([disabled]):not([tabindex=\"\"])'); // tabindex != \"\", not disabled\n var target = hostElement.querySelector(query.join(', '));\n\n if (!target && 'attachShadow' in Element.prototype) {\n // If we haven't found a focusable target, see if the host element contains an element\n // which has a shadowRoot.\n // Recursively search for the first focusable item in shadow roots.\n var elems = hostElement.querySelectorAll('*');\n for (var i = 0; i < elems.length; i++) {\n if (elems[i].tagName && elems[i].shadowRoot) {\n target = findFocusableElementWithin(elems[i].shadowRoot);\n if (target) {\n break;\n }\n }\n }\n }\n return target;\n}\n\n/**\n * Determines if an element is attached to the DOM.\n * @param {Element} element to check\n * @return {boolean} whether the element is in DOM\n */\nfunction isConnected(element) {\n return element.isConnected || document.body.contains(element);\n}\n\n/**\n * @param {!Event} event\n * @return {?Element}\n */\nfunction findFormSubmitter(event) {\n if (event.submitter) {\n return event.submitter;\n }\n\n var form = event.target;\n if (!(form instanceof HTMLFormElement)) {\n return null;\n }\n\n var submitter = dialogPolyfill.formSubmitter;\n if (!submitter) {\n var target = event.target;\n var root = ('getRootNode' in target && target.getRootNode() || document);\n submitter = root.activeElement;\n }\n\n if (!submitter || submitter.form !== form) {\n return null;\n }\n return submitter;\n}\n\n/**\n * @param {!Event} event\n */\nfunction maybeHandleSubmit(event) {\n if (event.defaultPrevented) {\n return;\n }\n var form = /** @type {!HTMLFormElement} */ (event.target);\n\n // We'd have a value if we clicked on an imagemap.\n var value = dialogPolyfill.imagemapUseValue;\n var submitter = findFormSubmitter(event);\n if (value === null && submitter) {\n value = submitter.value;\n }\n\n // There should always be a dialog as this handler is added specifically on them, but check just\n // in case.\n var dialog = findNearestDialog(form);\n if (!dialog) {\n return;\n }\n\n // Prefer formmethod on the button.\n var formmethod = submitter && submitter.getAttribute('formmethod') || form.getAttribute('method');\n if (formmethod !== 'dialog') {\n return;\n }\n event.preventDefault();\n\n if (value != null) {\n // nb. we explicitly check against null/undefined\n dialog.close(value);\n } else {\n dialog.close();\n }\n}\n\n/**\n * @param {!HTMLDialogElement} dialog to upgrade\n * @constructor\n */\nfunction dialogPolyfillInfo(dialog) {\n this.dialog_ = dialog;\n this.replacedStyleTop_ = false;\n this.openAsModal_ = false;\n\n // Set a11y role. Browsers that support dialog implicitly know this already.\n if (!dialog.hasAttribute('role')) {\n dialog.setAttribute('role', 'dialog');\n }\n\n dialog.show = this.show.bind(this);\n dialog.showModal = this.showModal.bind(this);\n dialog.close = this.close.bind(this);\n\n dialog.addEventListener('submit', maybeHandleSubmit, false);\n\n if (!('returnValue' in dialog)) {\n dialog.returnValue = '';\n }\n\n if ('MutationObserver' in window) {\n var mo = new MutationObserver(this.maybeHideModal.bind(this));\n mo.observe(dialog, {attributes: true, attributeFilter: ['open']});\n } else {\n // IE10 and below support. Note that DOMNodeRemoved etc fire _before_ removal. They also\n // seem to fire even if the element was removed as part of a parent removal. Use the removed\n // events to force downgrade (useful if removed/immediately added).\n var removed = false;\n var cb = function() {\n removed ? this.downgradeModal() : this.maybeHideModal();\n removed = false;\n }.bind(this);\n var timeout;\n var delayModel = function(ev) {\n if (ev.target !== dialog) { return; } // not for a child element\n var cand = 'DOMNodeRemoved';\n removed |= (ev.type.substr(0, cand.length) === cand);\n window.clearTimeout(timeout);\n timeout = window.setTimeout(cb, 0);\n };\n ['DOMAttrModified', 'DOMNodeRemoved', 'DOMNodeRemovedFromDocument'].forEach(function(name) {\n dialog.addEventListener(name, delayModel);\n });\n }\n // Note that the DOM is observed inside DialogManager while any dialog\n // is being displayed as a modal, to catch modal removal from the DOM.\n\n Object.defineProperty(dialog, 'open', {\n set: this.setOpen.bind(this),\n get: dialog.hasAttribute.bind(dialog, 'open')\n });\n\n this.backdrop_ = document.createElement('div');\n this.backdrop_.className = 'backdrop';\n this.backdrop_.addEventListener('mouseup' , this.backdropMouseEvent_.bind(this));\n this.backdrop_.addEventListener('mousedown', this.backdropMouseEvent_.bind(this));\n this.backdrop_.addEventListener('click' , this.backdropMouseEvent_.bind(this));\n}\n\ndialogPolyfillInfo.prototype = /** @type {HTMLDialogElement.prototype} */ ({\n\n get dialog() {\n return this.dialog_;\n },\n\n /**\n * Maybe remove this dialog from the modal top layer. This is called when\n * a modal dialog may no longer be tenable, e.g., when the dialog is no\n * longer open or is no longer part of the DOM.\n */\n maybeHideModal: function() {\n if (this.dialog_.hasAttribute('open') && isConnected(this.dialog_)) { return; }\n this.downgradeModal();\n },\n\n /**\n * Remove this dialog from the modal top layer, leaving it as a non-modal.\n */\n downgradeModal: function() {\n if (!this.openAsModal_) { return; }\n this.openAsModal_ = false;\n this.dialog_.style.zIndex = '';\n\n // This won't match the native <dialog> exactly because if the user set top on a centered\n // polyfill dialog, that top gets thrown away when the dialog is closed. Not sure it's\n // possible to polyfill this perfectly.\n if (this.replacedStyleTop_) {\n this.dialog_.style.top = '';\n this.replacedStyleTop_ = false;\n }\n\n // Clear the backdrop and remove from the manager.\n this.backdrop_.parentNode && this.backdrop_.parentNode.removeChild(this.backdrop_);\n dialogPolyfill.dm.removeDialog(this);\n },\n\n /**\n * @param {boolean} value whether to open or close this dialog\n */\n setOpen: function(value) {\n if (value) {\n this.dialog_.hasAttribute('open') || this.dialog_.setAttribute('open', '');\n } else {\n this.dialog_.removeAttribute('open');\n this.maybeHideModal(); // nb. redundant with MutationObserver\n }\n },\n\n /**\n * Handles mouse events ('mouseup', 'mousedown', 'click') on the fake .backdrop element, redirecting them as if\n * they were on the dialog itself.\n *\n * @param {!Event} e to redirect\n */\n backdropMouseEvent_: function(e) {\n if (!this.dialog_.hasAttribute('tabindex')) {\n // Clicking on the backdrop should move the implicit cursor, even if dialog cannot be\n // focused. Create a fake thing to focus on. If the backdrop was _before_ the dialog, this\n // would not be needed - clicks would move the implicit cursor there.\n var fake = document.createElement('div');\n this.dialog_.insertBefore(fake, this.dialog_.firstChild);\n fake.tabIndex = -1;\n fake.focus();\n this.dialog_.removeChild(fake);\n } else {\n this.dialog_.focus();\n }\n\n var redirectedEvent = document.createEvent('MouseEvents');\n redirectedEvent.initMouseEvent(e.type, e.bubbles, e.cancelable, window,\n e.detail, e.screenX, e.screenY, e.clientX, e.clientY, e.ctrlKey,\n e.altKey, e.shiftKey, e.metaKey, e.button, e.relatedTarget);\n this.dialog_.dispatchEvent(redirectedEvent);\n e.stopPropagation();\n },\n\n /**\n * Focuses on the first focusable element within the dialog. This will always blur the current\n * focus, even if nothing within the dialog is found.\n */\n focus_: function() {\n // Find element with `autofocus` attribute, or fall back to the first form/tabindex control.\n var target = this.dialog_.querySelector('[autofocus]:not([disabled])');\n if (!target && this.dialog_.tabIndex >= 0) {\n target = this.dialog_;\n }\n if (!target) {\n target = findFocusableElementWithin(this.dialog_);\n }\n safeBlur(document.activeElement);\n target && target.focus();\n },\n\n /**\n * Sets the zIndex for the backdrop and dialog.\n *\n * @param {number} dialogZ\n * @param {number} backdropZ\n */\n updateZIndex: function(dialogZ, backdropZ) {\n if (dialogZ < backdropZ) {\n throw new Error('dialogZ should never be < backdropZ');\n }\n this.dialog_.style.zIndex = dialogZ;\n this.backdrop_.style.zIndex = backdropZ;\n },\n\n /**\n * Shows the dialog. If the dialog is already open, this does nothing.\n */\n show: function() {\n if (!this.dialog_.open) {\n this.setOpen(true);\n this.focus_();\n }\n },\n\n /**\n * Show this dialog modally.\n */\n showModal: function() {\n if (this.dialog_.hasAttribute('open')) {\n throw new Error('Failed to execute \\'showModal\\' on dialog: The element is already open, and therefore cannot be opened modally.');\n }\n if (!isConnected(this.dialog_)) {\n throw new Error('Failed to execute \\'showModal\\' on dialog: The element is not in a Document.');\n }\n if (!dialogPolyfill.dm.pushDialog(this)) {\n throw new Error('Failed to execute \\'showModal\\' on dialog: There are too many open modal dialogs.');\n }\n\n if (createsStackingContext(this.dialog_.parentElement)) {\n console.warn('A dialog is being shown inside a stacking context. ' +\n 'This may cause it to be unusable. For more information, see this link: ' +\n 'https://github.com/GoogleChrome/dialog-polyfill/#stacking-context');\n }\n\n this.setOpen(true);\n this.openAsModal_ = true;\n\n // Optionally center vertically, relative to the current viewport.\n if (dialogPolyfill.needsCentering(this.dialog_)) {\n dialogPolyfill.reposition(this.dialog_);\n this.replacedStyleTop_ = true;\n } else {\n this.replacedStyleTop_ = false;\n }\n\n // Insert backdrop.\n this.dialog_.parentNode.insertBefore(this.backdrop_, this.dialog_.nextSibling);\n\n // Focus on whatever inside the dialog.\n this.focus_();\n },\n\n /**\n * Closes this HTMLDialogElement. This is optional vs clearing the open\n * attribute, however this fires a 'close' event.\n *\n * @param {string=} opt_returnValue to use as the returnValue\n */\n close: function(opt_returnValue) {\n if (!this.dialog_.hasAttribute('open')) {\n throw new Error('Failed to execute \\'close\\' on dialog: The element does not have an \\'open\\' attribute, and therefore cannot be closed.');\n }\n this.setOpen(false);\n\n // Leave returnValue untouched in case it was set directly on the element\n if (opt_returnValue !== undefined) {\n this.dialog_.returnValue = opt_returnValue;\n }\n\n // Triggering \"close\" event for any attached listeners on the <dialog>.\n var closeEvent = new supportCustomEvent('close', {\n bubbles: false,\n cancelable: false\n });\n safeDispatchEvent(this.dialog_, closeEvent);\n }\n\n});\n\nvar dialogPolyfill = {};\n\ndialogPolyfill.reposition = function(element) {\n var scrollTop = document.body.scrollTop || document.documentElement.scrollTop;\n var topValue = scrollTop + (window.innerHeight - element.offsetHeight) / 2;\n element.style.top = Math.max(scrollTop, topValue) + 'px';\n};\n\ndialogPolyfill.isInlinePositionSetByStylesheet = function(element) {\n for (var i = 0; i < document.styleSheets.length; ++i) {\n var styleSheet = document.styleSheets[i];\n var cssRules = null;\n // Some browsers throw on cssRules.\n try {\n cssRules = styleSheet.cssRules;\n } catch (e) {}\n if (!cssRules) { continue; }\n for (var j = 0; j < cssRules.length; ++j) {\n var rule = cssRules[j];\n var selectedNodes = null;\n // Ignore errors on invalid selector texts.\n try {\n selectedNodes = document.querySelectorAll(rule.selectorText);\n } catch(e) {}\n if (!selectedNodes || !inNodeList(selectedNodes, element)) {\n continue;\n }\n var cssTop = rule.style.getPropertyValue('top');\n var cssBottom = rule.style.getPropertyValue('bottom');\n if ((cssTop && cssTop !== 'auto') || (cssBottom && cssBottom !== 'auto')) {\n return true;\n }\n }\n }\n return false;\n};\n\ndialogPolyfill.needsCentering = function(dialog) {\n var computedStyle = window.getComputedStyle(dialog);\n if (computedStyle.position !== 'absolute') {\n return false;\n }\n\n // We must determine whether the top/bottom specified value is non-auto. In\n // WebKit/Blink, checking computedStyle.top == 'auto' is sufficient, but\n // Firefox returns the used value. So we do this crazy thing instead: check\n // the inline style and then go through CSS rules.\n if ((dialog.style.top !== 'auto' && dialog.style.top !== '') ||\n (dialog.style.bottom !== 'auto' && dialog.style.bottom !== '')) {\n return false;\n }\n return !dialogPolyfill.isInlinePositionSetByStylesheet(dialog);\n};\n\n/**\n * @param {!Element} element to force upgrade\n */\ndialogPolyfill.forceRegisterDialog = function(element) {\n if (window.HTMLDialogElement || element.showModal) {\n console.warn('This browser already supports <dialog>, the polyfill ' +\n 'may not work correctly', element);\n }\n if (element.localName !== 'dialog') {\n throw new Error('Failed to register dialog: The element is not a dialog.');\n }\n new dialogPolyfillInfo(/** @type {!HTMLDialogElement} */ (element));\n};\n\n/**\n * @param {!Element} element to upgrade, if necessary\n */\ndialogPolyfill.registerDialog = function(element) {\n if (!element.showModal) {\n dialogPolyfill.forceRegisterDialog(element);\n }\n};\n\n/**\n * @constructor\n */\ndialogPolyfill.DialogManager = function() {\n /** @type {!Array<!dialogPolyfillInfo>} */\n this.pendingDialogStack = [];\n\n var checkDOM = this.checkDOM_.bind(this);\n\n // The overlay is used to simulate how a modal dialog blocks the document.\n // The blocking dialog is positioned on top of the overlay, and the rest of\n // the dialogs on the pending dialog stack are positioned below it. In the\n // actual implementation, the modal dialog stacking is controlled by the\n // top layer, where z-index has no effect.\n this.overlay = document.createElement('div');\n this.overlay.className = '_dialog_overlay';\n this.overlay.addEventListener('click', function(e) {\n this.forwardTab_ = undefined;\n e.stopPropagation();\n checkDOM([]); // sanity-check DOM\n }.bind(this));\n\n this.handleKey_ = this.handleKey_.bind(this);\n this.handleFocus_ = this.handleFocus_.bind(this);\n\n this.zIndexLow_ = 100000;\n this.zIndexHigh_ = 100000 + 150;\n\n this.forwardTab_ = undefined;\n\n if ('MutationObserver' in window) {\n this.mo_ = new MutationObserver(function(records) {\n var removed = [];\n records.forEach(function(rec) {\n for (var i = 0, c; c = rec.removedNodes[i]; ++i) {\n if (!(c instanceof Element)) {\n continue;\n } else if (c.localName === 'dialog') {\n removed.push(c);\n }\n removed = removed.concat(c.querySelectorAll('dialog'));\n }\n });\n removed.length && checkDOM(removed);\n });\n }\n};\n\n/**\n * Called on the first modal dialog being shown. Adds the overlay and related\n * handlers.\n */\ndialogPolyfill.DialogManager.prototype.blockDocument = function() {\n document.documentElement.addEventListener('focus', this.handleFocus_, true);\n document.addEventListener('keydown', this.handleKey_);\n this.mo_ && this.mo_.observe(document, {childList: true, subtree: true});\n};\n\n/**\n * Called on the first modal dialog being removed, i.e., when no more modal\n * dialogs are visible.\n */\ndialogPolyfill.DialogManager.prototype.unblockDocument = function() {\n document.documentElement.removeEventListener('focus', this.handleFocus_, true);\n document.removeEventListener('keydown', this.handleKey_);\n this.mo_ && this.mo_.disconnect();\n};\n\n/**\n * Updates the stacking of all known dialogs.\n */\ndialogPolyfill.DialogManager.prototype.updateStacking = function() {\n var zIndex = this.zIndexHigh_;\n\n for (var i = 0, dpi; dpi = this.pendingDialogStack[i]; ++i) {\n dpi.updateZIndex(--zIndex, --zIndex);\n if (i === 0) {\n this.overlay.style.zIndex = --zIndex;\n }\n }\n\n // Make the overlay a sibling of the dialog itself.\n var last = this.pendingDialogStack[0];\n if (last) {\n var p = last.dialog.parentNode || document.body;\n p.appendChild(this.overlay);\n } else if (this.overlay.parentNode) {\n this.overlay.parentNode.removeChild(this.overlay);\n }\n};\n\n/**\n * @param {Element} candidate to check if contained or is the top-most modal dialog\n * @return {boolean} whether candidate is contained in top dialog\n */\ndialogPolyfill.DialogManager.prototype.containedByTopDialog_ = function(candidate) {\n while (candidate = findNearestDialog(candidate)) {\n for (var i = 0, dpi; dpi = this.pendingDialogStack[i]; ++i) {\n if (dpi.dialog === candidate) {\n return i === 0; // only valid if top-most\n }\n }\n candidate = candidate.parentElement;\n }\n return false;\n};\n\ndialogPolyfill.DialogManager.prototype.handleFocus_ = function(event) {\n var target = event.composedPath ? event.composedPath()[0] : event.target;\n\n if (this.containedByTopDialog_(target)) { return; }\n\n if (document.activeElement === document.documentElement) { return; }\n\n event.preventDefault();\n event.stopPropagation();\n safeBlur(/** @type {Element} */ (target));\n\n if (this.forwardTab_ === undefined) { return; } // move focus only from a tab key\n\n var dpi = this.pendingDialogStack[0];\n var dialog = dpi.dialog;\n var position = dialog.compareDocumentPosition(target);\n if (position & Node.DOCUMENT_POSITION_PRECEDING) {\n if (this.forwardTab_) {\n // forward\n dpi.focus_();\n } else if (target !== document.documentElement) {\n // backwards if we're not already focused on <html>\n document.documentElement.focus();\n }\n }\n\n return false;\n};\n\ndialogPolyfill.DialogManager.prototype.handleKey_ = function(event) {\n this.forwardTab_ = undefined;\n if (event.keyCode === 27) {\n event.preventDefault();\n event.stopPropagation();\n var cancelEvent = new supportCustomEvent('cancel', {\n bubbles: false,\n cancelable: true\n });\n var dpi = this.pendingDialogStack[0];\n if (dpi && safeDispatchEvent(dpi.dialog, cancelEvent)) {\n dpi.dialog.close();\n }\n } else if (event.keyCode === 9) {\n this.forwardTab_ = !event.shiftKey;\n }\n};\n\n/**\n * Finds and downgrades any known modal dialogs that are no longer displayed. Dialogs that are\n * removed and immediately readded don't stay modal, they become normal.\n *\n * @param {!Array<!HTMLDialogElement>} removed that have definitely been removed\n */\ndialogPolyfill.DialogManager.prototype.checkDOM_ = function(removed) {\n // This operates on a clone because it may cause it to change. Each change also calls\n // updateStacking, which only actually needs to happen once. But who removes many modal dialogs\n // at a time?!\n var clone = this.pendingDialogStack.slice();\n clone.forEach(function(dpi) {\n if (removed.indexOf(dpi.dialog) !== -1) {\n dpi.downgradeModal();\n } else {\n dpi.maybeHideModal();\n }\n });\n};\n\n/**\n * @param {!dialogPolyfillInfo} dpi\n * @return {boolean} whether the dialog was allowed\n */\ndialogPolyfill.DialogManager.prototype.pushDialog = function(dpi) {\n var allowed = (this.zIndexHigh_ - this.zIndexLow_) / 2 - 1;\n if (this.pendingDialogStack.length >= allowed) {\n return false;\n }\n if (this.pendingDialogStack.unshift(dpi) === 1) {\n this.blockDocument();\n }\n this.updateStacking();\n return true;\n};\n\n/**\n * @param {!dialogPolyfillInfo} dpi\n */\ndialogPolyfill.DialogManager.prototype.removeDialog = function(dpi) {\n var index = this.pendingDialogStack.indexOf(dpi);\n if (index === -1) { return; }\n\n this.pendingDialogStack.splice(index, 1);\n if (this.pendingDialogStack.length === 0) {\n this.unblockDocument();\n }\n this.updateStacking();\n};\n\ndialogPolyfill.dm = new dialogPolyfill.DialogManager();\ndialogPolyfill.formSubmitter = null;\ndialogPolyfill.imagemapUseValue = null;\n\n/**\n * Installs global handlers, such as click listers and native method overrides. These are needed\n * even if a no dialog is registered, as they deal with <form method=\"dialog\">.\n */\nif (window.HTMLDialogElement === undefined) {\n\n /**\n * If HTMLFormElement translates method=\"DIALOG\" into 'get', then replace the descriptor with\n * one that returns the correct value.\n */\n var testForm = document.createElement('form');\n testForm.setAttribute('method', 'dialog');\n if (testForm.method !== 'dialog') {\n var methodDescriptor = Object.getOwnPropertyDescriptor(HTMLFormElement.prototype, 'method');\n if (methodDescriptor) {\n // nb. Some older iOS and older PhantomJS fail to return the descriptor. Don't do anything\n // and don't bother to update the element.\n var realGet = methodDescriptor.get;\n methodDescriptor.get = function() {\n if (isFormMethodDialog(this)) {\n return 'dialog';\n }\n return realGet.call(this);\n };\n var realSet = methodDescriptor.set;\n /** @this {HTMLElement} */\n methodDescriptor.set = function(v) {\n if (typeof v === 'string' && v.toLowerCase() === 'dialog') {\n return this.setAttribute('method', v);\n }\n return realSet.call(this, v);\n };\n Object.defineProperty(HTMLFormElement.prototype, 'method', methodDescriptor);\n }\n }\n\n /**\n * Global 'click' handler, to capture the <input type=\"submit\"> or <button> element which has\n * submitted a <form method=\"dialog\">. Needed as Safari and others don't report this inside\n * document.activeElement.\n */\n document.addEventListener('click', function(ev) {\n dialogPolyfill.formSubmitter = null;\n dialogPolyfill.imagemapUseValue = null;\n if (ev.defaultPrevented) { return; } // e.g. a submit which prevents default submission\n\n var target = /** @type {Element} */ (ev.target);\n if ('composedPath' in ev) {\n var path = ev.composedPath();\n target = path.shift() || target;\n }\n if (!target || !isFormMethodDialog(target.form)) { return; }\n\n var valid = (target.type === 'submit' && ['button', 'input'].indexOf(target.localName) > -1);\n if (!valid) {\n if (!(target.localName === 'input' && target.type === 'image')) { return; }\n // this is a <input type=\"image\">, which can submit forms\n dialogPolyfill.imagemapUseValue = ev.offsetX + ',' + ev.offsetY;\n }\n\n var dialog = findNearestDialog(target);\n if (!dialog) { return; }\n\n dialogPolyfill.formSubmitter = target;\n\n }, false);\n\n /**\n * Global 'submit' handler. This handles submits of `method=\"dialog\"` which are invalid, i.e.,\n * outside a dialog. They get prevented.\n */\n document.addEventListener('submit', function(ev) {\n var form = ev.target;\n var dialog = findNearestDialog(form);\n if (dialog) {\n return; // ignore, handle there\n }\n\n var submitter = findFormSubmitter(ev);\n var formmethod = submitter && submitter.getAttribute('formmethod') || form.getAttribute('method');\n if (formmethod === 'dialog') {\n ev.preventDefault();\n }\n });\n\n /**\n * Replace the native HTMLFormElement.submit() method, as it won't fire the\n * submit event and give us a chance to respond.\n */\n var nativeFormSubmit = HTMLFormElement.prototype.submit;\n var replacementFormSubmit = function () {\n if (!isFormMethodDialog(this)) {\n return nativeFormSubmit.call(this);\n }\n var dialog = findNearestDialog(this);\n dialog && dialog.close();\n };\n HTMLFormElement.prototype.submit = replacementFormSubmit;\n}\n\nexport default dialogPolyfill;\n"],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(self.webpackChunk_genesislcap_foundation_header=self.webpackChunk_genesislcap_foundation_header||[]).push([[47],{8090:(e,t,o)=>{"use strict";o.d(t,{Z:()=>_});var i=window.CustomEvent;function n(e,t){var o="on"+t.type.toLowerCase();return"function"==typeof e[o]&&e[o](t),e.dispatchEvent(t)}function a(e){for(;e;){if("dialog"===e.localName)return e;e=e.parentElement?e.parentElement:e.parentNode?e.parentNode.host:null}return null}function r(e){for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;e&&e.blur&&e!==document.body&&e.blur()}function s(e,t){for(var o=0;o<e.length;++o)if(e[o]===t)return!0;return!1}function l(e){return!(!e||!e.hasAttribute("method"))&&"dialog"===e.getAttribute("method").toLowerCase()}function d(e){var t=["button","input","keygen","select","textarea"].map((function(e){return e+":not([disabled])"}));t.push('[tabindex]:not([disabled]):not([tabindex=""])');var o=e.querySelector(t.join(", "));if(!o&&"attachShadow"in Element.prototype)for(var i=e.querySelectorAll("*"),n=0;n<i.length&&!(i[n].tagName&&i[n].shadowRoot&&(o=d(i[n].shadowRoot)));n++);return o}function c(e){return e.isConnected||document.body.contains(e)}function u(e){if(e.submitter)return e.submitter;var t=e.target;if(!(t instanceof HTMLFormElement))return null;var o=g.formSubmitter;if(!o){var i=e.target;o=("getRootNode"in i&&i.getRootNode()||document).activeElement}return o&&o.form===t?o:null}function h(e){if(!e.defaultPrevented){var t=e.target,o=g.imagemapUseValue,i=u(e);null===o&&i&&(o=i.value);var n=a(t);if(n)"dialog"===(i&&i.getAttribute("formmethod")||t.getAttribute("method"))&&(e.preventDefault(),null!=o?n.close(o):n.close())}}function p(e){if(this.dialog_=e,this.replacedStyleTop_=!1,this.openAsModal_=!1,e.hasAttribute("role")||e.setAttribute("role","dialog"),e.show=this.show.bind(this),e.showModal=this.showModal.bind(this),e.close=this.close.bind(this),e.addEventListener("submit",h,!1),"returnValue"in e||(e.returnValue=""),"MutationObserver"in window){new MutationObserver(this.maybeHideModal.bind(this)).observe(e,{attributes:!0,attributeFilter:["open"]})}else{var t,o=!1,i=function(){o?this.downgradeModal():this.maybeHideModal(),o=!1}.bind(this),n=function(n){if(n.target===e){var a="DOMNodeRemoved";o|=n.type.substr(0,a.length)===a,window.clearTimeout(t),t=window.setTimeout(i,0)}};["DOMAttrModified","DOMNodeRemoved","DOMNodeRemovedFromDocument"].forEach((function(t){e.addEventListener(t,n)}))}Object.defineProperty(e,"open",{set:this.setOpen.bind(this),get:e.hasAttribute.bind(e,"open")}),this.backdrop_=document.createElement("div"),this.backdrop_.className="backdrop",this.backdrop_.addEventListener("mouseup",this.backdropMouseEvent_.bind(this)),this.backdrop_.addEventListener("mousedown",this.backdropMouseEvent_.bind(this)),this.backdrop_.addEventListener("click",this.backdropMouseEvent_.bind(this))}i&&"object"!=typeof i||((i=function(e,t){t=t||{};var o=document.createEvent("CustomEvent");return o.initCustomEvent(e,!!t.bubbles,!!t.cancelable,t.detail||null),o}).prototype=window.Event.prototype),p.prototype={get dialog(){return this.dialog_},maybeHideModal:function(){this.dialog_.hasAttribute("open")&&c(this.dialog_)||this.downgradeModal()},downgradeModal:function(){this.openAsModal_&&(this.openAsModal_=!1,this.dialog_.style.zIndex="",this.replacedStyleTop_&&(this.dialog_.style.top="",this.replacedStyleTop_=!1),this.backdrop_.parentNode&&this.backdrop_.parentNode.removeChild(this.backdrop_),g.dm.removeDialog(this))},setOpen:function(e){e?this.dialog_.hasAttribute("open")||this.dialog_.setAttribute("open",""):(this.dialog_.removeAttribute("open"),this.maybeHideModal())},backdropMouseEvent_:function(e){if(this.dialog_.hasAttribute("tabindex"))this.dialog_.focus();else{var t=document.createElement("div");this.dialog_.insertBefore(t,this.dialog_.firstChild),t.tabIndex=-1,t.focus(),this.dialog_.removeChild(t)}var o=document.createEvent("MouseEvents");o.initMouseEvent(e.type,e.bubbles,e.cancelable,window,e.detail,e.screenX,e.screenY,e.clientX,e.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget),this.dialog_.dispatchEvent(o),e.stopPropagation()},focus_:function(){var e=this.dialog_.querySelector("[autofocus]:not([disabled])");!e&&this.dialog_.tabIndex>=0&&(e=this.dialog_),e||(e=d(this.dialog_)),r(document.activeElement),e&&e.focus()},updateZIndex:function(e,t){if(e<t)throw new Error("dialogZ should never be < backdropZ");this.dialog_.style.zIndex=e,this.backdrop_.style.zIndex=t},show:function(){this.dialog_.open||(this.setOpen(!0),this.focus_())},showModal:function(){if(this.dialog_.hasAttribute("open"))throw new Error("Failed to execute 'showModal' on dialog: The element is already open, and therefore cannot be opened modally.");if(!c(this.dialog_))throw new Error("Failed to execute 'showModal' on dialog: The element is not in a Document.");if(!g.dm.pushDialog(this))throw new Error("Failed to execute 'showModal' on dialog: There are too many open modal dialogs.");(function(e){for(;e&&e!==document.body;){var t=window.getComputedStyle(e),o=function(e,o){return!(void 0===t[e]||t[e]===o)};if(t.opacity<1||o("zIndex","auto")||o("transform","none")||o("mixBlendMode","normal")||o("filter","none")||o("perspective","none")||"isolate"===t.isolation||"fixed"===t.position||"touch"===t.webkitOverflowScrolling)return!0;e=e.parentElement}return!1})(this.dialog_.parentElement)&&console.warn("A dialog is being shown inside a stacking context. This may cause it to be unusable. For more information, see this link: https://github.com/GoogleChrome/dialog-polyfill/#stacking-context"),this.setOpen(!0),this.openAsModal_=!0,g.needsCentering(this.dialog_)?(g.reposition(this.dialog_),this.replacedStyleTop_=!0):this.replacedStyleTop_=!1,this.dialog_.parentNode.insertBefore(this.backdrop_,this.dialog_.nextSibling),this.focus_()},close:function(e){if(!this.dialog_.hasAttribute("open"))throw new Error("Failed to execute 'close' on dialog: The element does not have an 'open' attribute, and therefore cannot be closed.");this.setOpen(!1),void 0!==e&&(this.dialog_.returnValue=e);var t=new i("close",{bubbles:!1,cancelable:!1});n(this.dialog_,t)}};var g={reposition:function(e){var t=document.body.scrollTop||document.documentElement.scrollTop,o=t+(window.innerHeight-e.offsetHeight)/2;e.style.top=Math.max(t,o)+"px"},isInlinePositionSetByStylesheet:function(e){for(var t=0;t<document.styleSheets.length;++t){var o=document.styleSheets[t],i=null;try{i=o.cssRules}catch(e){}if(i)for(var n=0;n<i.length;++n){var a=i[n],r=null;try{r=document.querySelectorAll(a.selectorText)}catch(e){}if(r&&s(r,e)){var l=a.style.getPropertyValue("top"),d=a.style.getPropertyValue("bottom");if(l&&"auto"!==l||d&&"auto"!==d)return!0}}}return!1},needsCentering:function(e){return"absolute"===window.getComputedStyle(e).position&&(!("auto"!==e.style.top&&""!==e.style.top||"auto"!==e.style.bottom&&""!==e.style.bottom)&&!g.isInlinePositionSetByStylesheet(e))},forceRegisterDialog:function(e){if((window.HTMLDialogElement||e.showModal)&&console.warn("This browser already supports <dialog>, the polyfill may not work correctly",e),"dialog"!==e.localName)throw new Error("Failed to register dialog: The element is not a dialog.");new p(e)},registerDialog:function(e){e.showModal||g.forceRegisterDialog(e)},DialogManager:function(){this.pendingDialogStack=[];var e=this.checkDOM_.bind(this);this.overlay=document.createElement("div"),this.overlay.className="_dialog_overlay",this.overlay.addEventListener("click",function(t){this.forwardTab_=void 0,t.stopPropagation(),e([])}.bind(this)),this.handleKey_=this.handleKey_.bind(this),this.handleFocus_=this.handleFocus_.bind(this),this.zIndexLow_=1e5,this.zIndexHigh_=100150,this.forwardTab_=void 0,"MutationObserver"in window&&(this.mo_=new MutationObserver((function(t){var o=[];t.forEach((function(e){for(var t,i=0;t=e.removedNodes[i];++i)t instanceof Element&&("dialog"===t.localName&&o.push(t),o=o.concat(t.querySelectorAll("dialog")))})),o.length&&e(o)})))}};if(g.DialogManager.prototype.blockDocument=function(){document.documentElement.addEventListener("focus",this.handleFocus_,!0),document.addEventListener("keydown",this.handleKey_),this.mo_&&this.mo_.observe(document,{childList:!0,subtree:!0})},g.DialogManager.prototype.unblockDocument=function(){document.documentElement.removeEventListener("focus",this.handleFocus_,!0),document.removeEventListener("keydown",this.handleKey_),this.mo_&&this.mo_.disconnect()},g.DialogManager.prototype.updateStacking=function(){for(var e,t=this.zIndexHigh_,o=0;e=this.pendingDialogStack[o];++o)e.updateZIndex(--t,--t),0===o&&(this.overlay.style.zIndex=--t);var i=this.pendingDialogStack[0];i?(i.dialog.parentNode||document.body).appendChild(this.overlay):this.overlay.parentNode&&this.overlay.parentNode.removeChild(this.overlay)},g.DialogManager.prototype.containedByTopDialog_=function(e){for(;e=a(e);){for(var t,o=0;t=this.pendingDialogStack[o];++o)if(t.dialog===e)return 0===o;e=e.parentElement}return!1},g.DialogManager.prototype.handleFocus_=function(e){var t=e.composedPath?e.composedPath()[0]:e.target;if(!this.containedByTopDialog_(t)&&document.activeElement!==document.documentElement&&(e.preventDefault(),e.stopPropagation(),r(t),void 0!==this.forwardTab_)){var o=this.pendingDialogStack[0];return o.dialog.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING&&(this.forwardTab_?o.focus_():t!==document.documentElement&&document.documentElement.focus()),!1}},g.DialogManager.prototype.handleKey_=function(e){if(this.forwardTab_=void 0,27===e.keyCode){e.preventDefault(),e.stopPropagation();var t=new i("cancel",{bubbles:!1,cancelable:!0}),o=this.pendingDialogStack[0];o&&n(o.dialog,t)&&o.dialog.close()}else 9===e.keyCode&&(this.forwardTab_=!e.shiftKey)},g.DialogManager.prototype.checkDOM_=function(e){this.pendingDialogStack.slice().forEach((function(t){-1!==e.indexOf(t.dialog)?t.downgradeModal():t.maybeHideModal()}))},g.DialogManager.prototype.pushDialog=function(e){var t=(this.zIndexHigh_-this.zIndexLow_)/2-1;return!(this.pendingDialogStack.length>=t)&&(1===this.pendingDialogStack.unshift(e)&&this.blockDocument(),this.updateStacking(),!0)},g.DialogManager.prototype.removeDialog=function(e){var t=this.pendingDialogStack.indexOf(e);-1!==t&&(this.pendingDialogStack.splice(t,1),0===this.pendingDialogStack.length&&this.unblockDocument(),this.updateStacking())},g.dm=new g.DialogManager,g.formSubmitter=null,g.imagemapUseValue=null,void 0===window.HTMLDialogElement){var m=document.createElement("form");if(m.setAttribute("method","dialog"),"dialog"!==m.method){var f=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"method");if(f){var b=f.get;f.get=function(){return l(this)?"dialog":b.call(this)};var v=f.set;f.set=function(e){return"string"==typeof e&&"dialog"===e.toLowerCase()?this.setAttribute("method",e):v.call(this,e)},Object.defineProperty(HTMLFormElement.prototype,"method",f)}}document.addEventListener("click",(function(e){if(g.formSubmitter=null,g.imagemapUseValue=null,!e.defaultPrevented){var t=e.target;if("composedPath"in e)t=e.composedPath().shift()||t;if(t&&l(t.form)){if(!("submit"===t.type&&["button","input"].indexOf(t.localName)>-1)){if("input"!==t.localName||"image"!==t.type)return;g.imagemapUseValue=e.offsetX+","+e.offsetY}a(t)&&(g.formSubmitter=t)}}}),!1),document.addEventListener("submit",(function(e){var t=e.target;if(!a(t)){var o=u(e);"dialog"===(o&&o.getAttribute("formmethod")||t.getAttribute("method"))&&e.preventDefault()}}));var y=HTMLFormElement.prototype.submit;HTMLFormElement.prototype.submit=function(){if(!l(this))return y.call(this);var e=a(this);e&&e.close()}}const _=g}}]);
|
|
2
|
+
//# sourceMappingURL=npm.dialog-polyfill.39e8a4cd9784ad9e0690d28f17eefeb3.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(self.webpackChunk_genesislcap_foundation_header=self.webpackChunk_genesislcap_foundation_header||[]).push([[690],{3886:(t,n,r)=>{"use strict";var e,o,i;function a(t,n,r,e,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?n(u):Promise.resolve(u).then(e,o)}function c(t){return function(){var n=this,r=arguments;return new Promise((function(e,o){var i=t.apply(n,r);function c(t){a(i,e,o,c,u,"next",t)}function u(t){a(i,e,o,c,u,"throw",t)}c(void 0)}))}}r.d(n,{v7:()=>L,E$:()=>w,z6:()=>y,PJ:()=>g,C5:()=>C,Uo:()=>E,JJ:()=>b,v$:()=>m,NY:()=>x,Bh:()=>N}),function(t){t.AppNotFound="AppNotFound",t.ErrorOnLaunch="ErrorOnLaunch",t.AppTimeout="AppTimeout",t.ResolverUnavailable="ResolverUnavailable"}(e||(e={})),function(t){t.NoAppsFound="NoAppsFound",t.ResolverUnavailable="ResolverUnavailable",t.ResolverTimeout="ResolverTimeout"}(o||(o={})),function(t){t.NoChannelFound="NoChannelFound",t.AccessDenied="AccessDenied",t.CreationFailed="CreationFailed"}(i||(i={}));var u,f,s=(u=function(t){var n=function(t){var n,r=Object.prototype,e=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,n,r){return Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{u({},"")}catch(t){u=function(t,n,r){return t[n]=r}}function f(t,n,r,e){var o=n&&n.prototype instanceof w?n:w,i=Object.create(o.prototype),a=new O(e||[]);return i._invoke=function(t,n,r){var e=l;return function(o,i){if(e===d)throw new Error("Generator is already running");if(e===p){if("throw"===o)throw i;return A()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=_(a,r);if(c){if(c===v)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(e===l)throw e=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);e=d;var u=s(t,n,r);if("normal"===u.type){if(e=r.done?p:h,u.arg===v)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(e=p,r.method="throw",r.arg=u.arg)}}}(t,r,a),i}function s(t,n,r){try{return{type:"normal",arg:t.call(n,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var l="suspendedStart",h="suspendedYield",d="executing",p="completed",v={};function w(){}function y(){}function g(){}var m={};m[i]=function(){return this};var x=Object.getPrototypeOf,L=x&&x(x(k([])));L&&L!==r&&e.call(L,i)&&(m=L);var b=g.prototype=w.prototype=Object.create(m);function E(t){["next","throw","return"].forEach((function(n){u(t,n,(function(t){return this._invoke(n,t)}))}))}function C(t,n){function r(o,i,a,c){var u=s(t[o],t,i);if("throw"!==u.type){var f=u.arg,l=f.value;return l&&"object"==typeof l&&e.call(l,"__await")?n.resolve(l.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):n.resolve(l).then((function(t){f.value=t,a(f)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var o;this._invoke=function(t,e){function i(){return new n((function(n,o){r(t,e,n,o)}))}return o=o?o.then(i,i):i()}}function _(t,r){var e=t.iterator[r.method];if(e===n){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=n,_(t,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=s(e,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=n),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function N(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function F(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function k(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(e.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=n,r.done=!0,r};return a.next=a}}return{next:A}}function A(){return{value:n,done:!0}}return y.prototype=b.constructor=g,g.constructor=y,y.displayName=u(g,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var n="function"==typeof t&&t.constructor;return!!n&&(n===y||"GeneratorFunction"===(n.displayName||n.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,u(t,c,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},E(C.prototype),C.prototype[a]=function(){return this},t.AsyncIterator=C,t.async=function(n,r,e,o,i){void 0===i&&(i=Promise);var a=new C(f(n,r,e,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(b),u(b,c,"Generator"),b[i]=function(){return this},b.toString=function(){return"[object Generator]"},t.keys=function(t){var n=[];for(var r in t)n.push(r);return n.reverse(),function r(){for(;n.length;){var e=n.pop();if(e in t)return r.value=e,r.done=!1,r}return r.done=!0,r}},t.values=k,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(F),!t)for(var r in this)"t"===r.charAt(0)&&e.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(e,o){return c.type="throw",c.arg=t,r.next=e,o&&(r.method="next",r.arg=n),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=e.call(a,"catchLoc"),f=e.call(a,"finallyLoc");if(u&&f){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!f)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,n){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&e.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=n&&n<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=n,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,n){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&n&&(this.next=n),v},finish:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),F(r),v}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc===t){var e=r.completion;if("throw"===e.type){var o=e.arg;F(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,e){return this.delegate={iterator:k(t),resultName:r,nextLoc:e},"next"===this.method&&(this.arg=n),v}},t}(t.exports);try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}},u(f={exports:{}},f.exports),f.exports),l=new Error("FDC3 DesktopAgent not available at `window.fdc3`."),h=new Error("Timed out waiting for `fdc3Ready` event."),d=new Error("`fdc3Ready` event fired, but `window.fdc3` not set to DesktopAgent.");function p(t){return window.fdc3?t():Promise.reject(l)}function v(t){if(!window.fdc3)throw l;return t()}var w=function(){var t=c(s.mark((function t(n){return s.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return void 0===n&&(n=5e3),t.abrupt("return",new Promise((function(t,r){if(window.fdc3)t();else{var e=setTimeout((function(){return window.fdc3?t():r(h)}),n);window.addEventListener("fdc3Ready",(function(){clearTimeout(e),window.fdc3?t():r(d)}),{once:!0})}})));case 2:case"end":return t.stop()}}),t)})));return function(n){return t.apply(this,arguments)}}();function y(t,n){return p((function(){return window.fdc3.findIntent(t,n)}))}function g(t){return p((function(){return window.fdc3.findIntentsByContext(t)}))}function m(t,n,r){return p((function(){return window.fdc3.raiseIntent(t,n,r)}))}function x(t,n){return p((function(){return window.fdc3.raiseIntentForContext(t,n)}))}function L(t,n){return v((function(){return window.fdc3.addIntentListener(t,n)}))}function b(t){return p((function(){return window.fdc3.joinChannel(t)}))}function E(t){return p((function(){return window.fdc3.getOrCreateChannel(t)}))}function C(){return v((function(){return window.fdc3.getInfo()}))}var _,N=function(t,n){var r=function(t,n){try{for(var r=t.split(".").map(Number),e=n.split(".").map(Number),o=0;o<Math.max(r.length,e.length);o++){if(o===r.length||r[o]<e[o])return-1;if(o===e.length||r[o]>e[o])return 1}return 0}catch(t){return console.error("Failed to compare version strings",t),null}}(t.fdc3Version,n);return null===r?null:r>=0};!function(t){t.Contact="fdc3.contact",t.ContactList="fdc3.contactList",t.Country="fdc3.country",t.Instrument="fdc3.instrument",t.Organization="fdc3.organization",t.Portfolio="fdc3.portfolio",t.Position="fdc3.position"}(_||(_={}));var F;!function(t){t.StartCall="StartCall",t.StartChat="StartChat",t.ViewChart="ViewChart",t.ViewContact="ViewContact",t.ViewQuote="ViewQuote",t.ViewNews="ViewNews",t.ViewInstrument="ViewInstrument",t.ViewAnalysis="ViewAnalysis"}(F||(F={}))}}]);
|
|
2
|
+
//# sourceMappingURL=npm.finos.7eb5017b5506c0dd6de2c2bee763a997.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["webpack://@genesislcap/foundation-header/../node_modules/@finos/fdc3/dist/fdc3.esm.js"],"names":["OpenError","ResolveError","ChannelError","asyncGeneratorStep","gen","resolve","reject","_next","_throw","key","arg","info","value","error","done","Promise","then","_asyncToGenerator","fn","self","this","args","arguments","apply","err","undefined","module","runtime_1","runtime","exports","undefined$1","Op","Object","prototype","hasOwn","hasOwnProperty","$Symbol","Symbol","iteratorSymbol","iterator","asyncIteratorSymbol","asyncIterator","toStringTagSymbol","toStringTag","define","obj","defineProperty","enumerable","configurable","writable","wrap","innerFn","outerFn","tryLocsList","protoGenerator","Generator","generator","create","context","Context","_invoke","state","GenStateSuspendedStart","method","GenStateExecuting","Error","GenStateCompleted","doneResult","delegate","delegateResult","maybeInvokeDelegate","ContinueSentinel","sent","_sent","dispatchException","abrupt","record","tryCatch","type","GenStateSuspendedYield","makeInvokeMethod","call","GeneratorFunction","GeneratorFunctionPrototype","IteratorPrototype","getProto","getPrototypeOf","NativeIteratorPrototype","values","Gp","defineIteratorMethods","forEach","AsyncIterator","PromiseImpl","invoke","result","__await","unwrapped","previousPromise","callInvokeWithMethodAndArg","TypeError","resultName","next","nextLoc","pushTryEntry","locs","entry","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","push","resetTryEntry","completion","reset","iterable","iteratorMethod","isNaN","length","i","constructor","displayName","isGeneratorFunction","genFun","ctor","name","mark","setPrototypeOf","__proto__","awrap","async","iter","toString","keys","object","reverse","pop","skipTempReset","prev","charAt","slice","stop","rootRecord","rval","exception","handle","loc","caught","hasCatch","hasFinally","finallyEntry","complete","finish","thrown","delegateYield","regeneratorRuntime","accidentalStrictMode","Function","UnavailableError","TimeoutError","UnexpectedError","rejectIfNoGlobal","f","window","fdc3","throwIfNoGlobal","fdc3Ready","_ref","_callee","waitForMs","_context","timeout","setTimeout","addEventListener","clearTimeout","once","_x","findIntent","intent","findIntentsByContext","raiseIntent","app","raiseIntentForContext","addIntentListener","handler","joinChannel","channelId","getOrCreateChannel","getInfo","ContextTypes","versionIsAtLeast","metadata","version","comparison","a","b","aVerArr","split","map","Number","bVerArr","index","Math","max","e","console","compareVersionNumbers","fdc3Version","Intents"],"mappings":"+IAIA,IAAIA,EASAC,EAQAC,EAQJ,SAASC,EAAmBC,EAAKC,EAASC,EAAQC,EAAOC,EAAQC,EAAKC,GACpE,IACE,IAAIC,EAAOP,EAAIK,GAAKC,GAChBE,EAAQD,EAAKC,KACnB,CAAE,MAAOC,GAEP,YADAP,EAAOO,EAET,CAEIF,EAAKG,KACPT,EAAQO,GAERG,QAAQV,QAAQO,GAAOI,KAAKT,EAAOC,EAEvC,CAEA,SAASS,EAAkBC,GACzB,OAAO,WACL,IAAIC,EAAOC,KACPC,EAAOC,UACX,OAAO,IAAIP,SAAQ,SAAUV,EAASC,GACpC,IAAIF,EAAMc,EAAGK,MAAMJ,EAAME,GAEzB,SAASd,EAAMK,GACbT,EAAmBC,EAAKC,EAASC,EAAQC,EAAOC,EAAQ,OAAQI,EAClE,CAEA,SAASJ,EAAOgB,GACdrB,EAAmBC,EAAKC,EAASC,EAAQC,EAAOC,EAAQ,QAASgB,EACnE,CAEAjB,OAAMkB,EACR,GACF,CACF,C,mGAzDA,SAAWzB,GACTA,EAAuB,YAAI,cAC3BA,EAAyB,cAAI,gBAC7BA,EAAsB,WAAI,aAC1BA,EAA+B,oBAAI,qBACpC,CALD,CAKGA,IAAcA,EAAY,CAAC,IAI9B,SAAWC,GACTA,EAA0B,YAAI,cAC9BA,EAAkC,oBAAI,sBACtCA,E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,GAC5D,IAIE,IAHA,IAAIC,EAAUF,EAAEG,MAAM,KAAKC,IAAIC,QAC3BC,EAAUL,EAAEE,MAAM,KAAKC,IAAIC,QAEtBE,EAAQ,EAAGA,EAAQC,KAAKC,IAAIP,EAAQ9E,OAAQkF,EAAQlF,QAASmF,IAAS,CAG7E,GAAIA,IAAUL,EAAQ9E,QAAU8E,EAAQK,GAASD,EAAQC,GACvD,OAAQ,EACH,GAAIA,IAAUD,EAAQlF,QAAU8E,EAAQK,GAASD,EAAQC,GAC9D,OAAO,CAEX,CAEA,OAAO,CACT,CAAE,MAAOG,GAEP,OADAC,QAAQjM,MAAM,oCAAqCgM,GAC5C,IACT,CACF,CAYmBE,CAAsBf,EAASgB,YAAaf,GAC7D,OAAsB,OAAfC,EAAsB,KAAOA,GAAc,CACpD,GAIA,SAAWJ,GACTA,EAAsB,QAAI,eAC1BA,EAA0B,YAAI,mBAC9BA,EAAsB,QAAI,eAC1BA,EAAyB,WAAI,kBAC7BA,EAA2B,aAAI,oBAC/BA,EAAwB,UAAI,iBAC5BA,EAAuB,SAAI,eAC5B,CARD,CAQGA,IAAiBA,EAAe,CAAC,IAuRpC,IAgNImB,GAEJ,SAAWA,GACTA,EAAmB,UAAI,YACvBA,EAAmB,UAAI,YACvBA,EAAmB,UAAI,YACvBA,EAAqB,YAAI,cACzBA,EAAmB,UAAI,YACvBA,EAAkB,SAAI,WACtBA,EAAwB,eAAI,iBAC5BA,EAAsB,aAAI,cAC3B,CATD,CASGA,IAAYA,EAAU,CAAC,G","file":"npm.finos.690.xxxxxxxxxxxxxxxxxxxx.js","sourcesContent":["/**\r\n * SPDX-License-Identifier: Apache-2.0\r\n * Copyright 2019 FINOS FDC3 contributors - see NOTICE file\r\n */\nvar OpenError;\n\n(function (OpenError) {\n OpenError[\"AppNotFound\"] = \"AppNotFound\";\n OpenError[\"ErrorOnLaunch\"] = \"ErrorOnLaunch\";\n OpenError[\"AppTimeout\"] = \"AppTimeout\";\n OpenError[\"ResolverUnavailable\"] = \"ResolverUnavailable\";\n})(OpenError || (OpenError = {}));\n\nvar ResolveError;\n\n(function (ResolveError) {\n ResolveError[\"NoAppsFound\"] = \"NoAppsFound\";\n ResolveError[\"ResolverUnavailable\"] = \"ResolverUnavailable\";\n ResolveError[\"ResolverTimeout\"] = \"ResolverTimeout\";\n})(ResolveError || (ResolveError = {}));\n\nvar ChannelError;\n\n(function (ChannelError) {\n ChannelError[\"NoChannelFound\"] = \"NoChannelFound\";\n ChannelError[\"AccessDenied\"] = \"AccessDenied\";\n ChannelError[\"CreationFailed\"] = \"CreationFailed\";\n})(ChannelError || (ChannelError = {}));\n\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {\n try {\n var info = gen[key](arg);\n var value = info.value;\n } catch (error) {\n reject(error);\n return;\n }\n\n if (info.done) {\n resolve(value);\n } else {\n Promise.resolve(value).then(_next, _throw);\n }\n}\n\nfunction _asyncToGenerator(fn) {\n return function () {\n var self = this,\n args = arguments;\n return new Promise(function (resolve, reject) {\n var gen = fn.apply(self, args);\n\n function _next(value) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);\n }\n\n function _throw(err) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);\n }\n\n _next(undefined);\n });\n };\n}\n\nfunction createCommonjsModule(fn, module) {\n\treturn module = { exports: {} }, fn(module, module.exports), module.exports;\n}\n\nvar runtime_1 = createCommonjsModule(function (module) {\n/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nvar runtime = (function (exports) {\n\n var Op = Object.prototype;\n var hasOwn = Op.hasOwnProperty;\n var undefined$1; // More compressible than void 0.\n var $Symbol = typeof Symbol === \"function\" ? Symbol : {};\n var iteratorSymbol = $Symbol.iterator || \"@@iterator\";\n var asyncIteratorSymbol = $Symbol.asyncIterator || \"@@asyncIterator\";\n var toStringTagSymbol = $Symbol.toStringTag || \"@@toStringTag\";\n\n function define(obj, key, value) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n return obj[key];\n }\n try {\n // IE 8 has a broken Object.defineProperty that only works on DOM objects.\n define({}, \"\");\n } catch (err) {\n define = function(obj, key, value) {\n return obj[key] = value;\n };\n }\n\n function wrap(innerFn, outerFn, self, tryLocsList) {\n // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.\n var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;\n var generator = Object.create(protoGenerator.prototype);\n var context = new Context(tryLocsList || []);\n\n // The ._invoke method unifies the implementations of the .next,\n // .throw, and .return methods.\n generator._invoke = makeInvokeMethod(innerFn, self, context);\n\n return generator;\n }\n exports.wrap = wrap;\n\n // Try/catch helper to minimize deoptimizations. Returns a completion\n // record like context.tryEntries[i].completion. This interface could\n // have been (and was previously) designed to take a closure to be\n // invoked without arguments, but in all the cases we care about we\n // already have an existing method we want to call, so there's no need\n // to create a new function object. We can even get away with assuming\n // the method takes exactly one argument, since that happens to be true\n // in every case, so we don't have to touch the arguments object. The\n // only additional allocation required is the completion record, which\n // has a stable shape and so hopefully should be cheap to allocate.\n function tryCatch(fn, obj, arg) {\n try {\n return { type: \"normal\", arg: fn.call(obj, arg) };\n } catch (err) {\n return { type: \"throw\", arg: err };\n }\n }\n\n var GenStateSuspendedStart = \"suspendedStart\";\n var GenStateSuspendedYield = \"suspendedYield\";\n var GenStateExecuting = \"executing\";\n var GenStateCompleted = \"completed\";\n\n // Returning this object from the innerFn has the same effect as\n // breaking out of the dispatch switch statement.\n var ContinueSentinel = {};\n\n // Dummy constructor functions that we use as the .constructor and\n // .constructor.prototype properties for functions that return Generator\n // objects. For full spec compliance, you may wish to configure your\n // minifier not to mangle the names of these two functions.\n function Generator() {}\n function GeneratorFunction() {}\n function GeneratorFunctionPrototype() {}\n\n // This is a polyfill for %IteratorPrototype% for environments that\n // don't natively support it.\n var IteratorPrototype = {};\n IteratorPrototype[iteratorSymbol] = function () {\n return this;\n };\n\n var getProto = Object.getPrototypeOf;\n var NativeIteratorPrototype = getProto && getProto(getProto(values([])));\n if (NativeIteratorPrototype &&\n NativeIteratorPrototype !== Op &&\n hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {\n // This environment has a native %IteratorPrototype%; use it instead\n // of the polyfill.\n IteratorPrototype = NativeIteratorPrototype;\n }\n\n var Gp = GeneratorFunctionPrototype.prototype =\n Generator.prototype = Object.create(IteratorPrototype);\n GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;\n GeneratorFunctionPrototype.constructor = GeneratorFunction;\n GeneratorFunction.displayName = define(\n GeneratorFunctionPrototype,\n toStringTagSymbol,\n \"GeneratorFunction\"\n );\n\n // Helper for defining the .next, .throw, and .return methods of the\n // Iterator interface in terms of a single ._invoke method.\n function defineIteratorMethods(prototype) {\n [\"next\", \"throw\", \"return\"].forEach(function(method) {\n define(prototype, method, function(arg) {\n return this._invoke(method, arg);\n });\n });\n }\n\n exports.isGeneratorFunction = function(genFun) {\n var ctor = typeof genFun === \"function\" && genFun.constructor;\n return ctor\n ? ctor === GeneratorFunction ||\n // For the native GeneratorFunction constructor, the best we can\n // do is to check its .name property.\n (ctor.displayName || ctor.name) === \"GeneratorFunction\"\n : false;\n };\n\n exports.mark = function(genFun) {\n if (Object.setPrototypeOf) {\n Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);\n } else {\n genFun.__proto__ = GeneratorFunctionPrototype;\n define(genFun, toStringTagSymbol, \"GeneratorFunction\");\n }\n genFun.prototype = Object.create(Gp);\n return genFun;\n };\n\n // Within the body of any async function, `await x` is transformed to\n // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test\n // `hasOwn.call(value, \"__await\")` to determine if the yielded value is\n // meant to be awaited.\n exports.awrap = function(arg) {\n return { __await: arg };\n };\n\n function AsyncIterator(generator, PromiseImpl) {\n function invoke(method, arg, resolve, reject) {\n var record = tryCatch(generator[method], generator, arg);\n if (record.type === \"throw\") {\n reject(record.arg);\n } else {\n var result = record.arg;\n var value = result.value;\n if (value &&\n typeof value === \"object\" &&\n hasOwn.call(value, \"__await\")) {\n return PromiseImpl.resolve(value.__await).then(function(value) {\n invoke(\"next\", value, resolve, reject);\n }, function(err) {\n invoke(\"throw\", err, resolve, reject);\n });\n }\n\n return PromiseImpl.resolve(value).then(function(unwrapped) {\n // When a yielded Promise is resolved, its final value becomes\n // the .value of the Promise<{value,done}> result for the\n // current iteration.\n result.value = unwrapped;\n resolve(result);\n }, function(error) {\n // If a rejected Promise was yielded, throw the rejection back\n // into the async generator function so it can be handled there.\n return invoke(\"throw\", error, resolve, reject);\n });\n }\n }\n\n var previousPromise;\n\n function enqueue(method, arg) {\n function callInvokeWithMethodAndArg() {\n return new PromiseImpl(function(resolve, reject) {\n invoke(method, arg, resolve, reject);\n });\n }\n\n return previousPromise =\n // If enqueue has been called before, then we want to wait until\n // all previous Promises have been resolved before calling invoke,\n // so that results are always delivered in the correct order. If\n // enqueue has not been called before, then it is important to\n // call invoke immediately, without waiting on a callback to fire,\n // so that the async generator function has the opportunity to do\n // any necessary setup in a predictable way. This predictability\n // is why the Promise constructor synchronously invokes its\n // executor callback, and why async functions synchronously\n // execute code before the first await. Since we implement simple\n // async functions in terms of async generators, it is especially\n // important to get this right, even though it requires care.\n previousPromise ? previousPromise.then(\n callInvokeWithMethodAndArg,\n // Avoid propagating failures to Promises returned by later\n // invocations of the iterator.\n callInvokeWithMethodAndArg\n ) : callInvokeWithMethodAndArg();\n }\n\n // Define the unified helper method that is used to implement .next,\n // .throw, and .return (see defineIteratorMethods).\n this._invoke = enqueue;\n }\n\n defineIteratorMethods(AsyncIterator.prototype);\n AsyncIterator.prototype[asyncIteratorSymbol] = function () {\n return this;\n };\n exports.AsyncIterator = AsyncIterator;\n\n // Note that simple async functions are implemented on top of\n // AsyncIterator objects; they just return a Promise for the value of\n // the final result produced by the iterator.\n exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {\n if (PromiseImpl === void 0) PromiseImpl = Promise;\n\n var iter = new AsyncIterator(\n wrap(innerFn, outerFn, self, tryLocsList),\n PromiseImpl\n );\n\n return exports.isGeneratorFunction(outerFn)\n ? iter // If outerFn is a generator, return the full iterator.\n : iter.next().then(function(result) {\n return result.done ? result.value : iter.next();\n });\n };\n\n function makeInvokeMethod(innerFn, self, context) {\n var state = GenStateSuspendedStart;\n\n return function invoke(method, arg) {\n if (state === GenStateExecuting) {\n throw new Error(\"Generator is already running\");\n }\n\n if (state === GenStateCompleted) {\n if (method === \"throw\") {\n throw arg;\n }\n\n // Be forgiving, per 25.3.3.3.3 of the spec:\n // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume\n return doneResult();\n }\n\n context.method = method;\n context.arg = arg;\n\n while (true) {\n var delegate = context.delegate;\n if (delegate) {\n var delegateResult = maybeInvokeDelegate(delegate, context);\n if (delegateResult) {\n if (delegateResult === ContinueSentinel) continue;\n return delegateResult;\n }\n }\n\n if (context.method === \"next\") {\n // Setting context._sent for legacy support of Babel's\n // function.sent implementation.\n context.sent = context._sent = context.arg;\n\n } else if (context.method === \"throw\") {\n if (state === GenStateSuspendedStart) {\n state = GenStateCompleted;\n throw context.arg;\n }\n\n context.dispatchException(context.arg);\n\n } else if (context.method === \"return\") {\n context.abrupt(\"return\", context.arg);\n }\n\n state = GenStateExecuting;\n\n var record = tryCatch(innerFn, self, context);\n if (record.type === \"normal\") {\n // If an exception is thrown from innerFn, we leave state ===\n // GenStateExecuting and loop back for another invocation.\n state = context.done\n ? GenStateCompleted\n : GenStateSuspendedYield;\n\n if (record.arg === ContinueSentinel) {\n continue;\n }\n\n return {\n value: record.arg,\n done: context.done\n };\n\n } else if (record.type === \"throw\") {\n state = GenStateCompleted;\n // Dispatch the exception by looping back around to the\n // context.dispatchException(context.arg) call above.\n context.method = \"throw\";\n context.arg = record.arg;\n }\n }\n };\n }\n\n // Call delegate.iterator[context.method](context.arg) and handle the\n // result, either by returning a { value, done } result from the\n // delegate iterator, or by modifying context.method and context.arg,\n // setting context.delegate to null, and returning the ContinueSentinel.\n function maybeInvokeDelegate(delegate, context) {\n var method = delegate.iterator[context.method];\n if (method === undefined$1) {\n // A .throw or .return when the delegate iterator has no .throw\n // method always terminates the yield* loop.\n context.delegate = null;\n\n if (context.method === \"throw\") {\n // Note: [\"return\"] must be used for ES3 parsing compatibility.\n if (delegate.iterator[\"return\"]) {\n // If the delegate iterator has a return method, give it a\n // chance to clean up.\n context.method = \"return\";\n context.arg = undefined$1;\n maybeInvokeDelegate(delegate, context);\n\n if (context.method === \"throw\") {\n // If maybeInvokeDelegate(context) changed context.method from\n // \"return\" to \"throw\", let that override the TypeError below.\n return ContinueSentinel;\n }\n }\n\n context.method = \"throw\";\n context.arg = new TypeError(\n \"The iterator does not provide a 'throw' method\");\n }\n\n return ContinueSentinel;\n }\n\n var record = tryCatch(method, delegate.iterator, context.arg);\n\n if (record.type === \"throw\") {\n context.method = \"throw\";\n context.arg = record.arg;\n context.delegate = null;\n return ContinueSentinel;\n }\n\n var info = record.arg;\n\n if (! info) {\n context.method = \"throw\";\n context.arg = new TypeError(\"iterator result is not an object\");\n context.delegate = null;\n return ContinueSentinel;\n }\n\n if (info.done) {\n // Assign the result of the finished delegate to the temporary\n // variable specified by delegate.resultName (see delegateYield).\n context[delegate.resultName] = info.value;\n\n // Resume execution at the desired location (see delegateYield).\n context.next = delegate.nextLoc;\n\n // If context.method was \"throw\" but the delegate handled the\n // exception, let the outer generator proceed normally. If\n // context.method was \"next\", forget context.arg since it has been\n // \"consumed\" by the delegate iterator. If context.method was\n // \"return\", allow the original .return call to continue in the\n // outer generator.\n if (context.method !== \"return\") {\n context.method = \"next\";\n context.arg = undefined$1;\n }\n\n } else {\n // Re-yield the result returned by the delegate method.\n return info;\n }\n\n // The delegate iterator is finished, so forget it and continue with\n // the outer generator.\n context.delegate = null;\n return ContinueSentinel;\n }\n\n // Define Generator.prototype.{next,throw,return} in terms of the\n // unified ._invoke helper method.\n defineIteratorMethods(Gp);\n\n define(Gp, toStringTagSymbol, \"Generator\");\n\n // A Generator should always return itself as the iterator object when the\n // @@iterator function is called on it. Some browsers' implementations of the\n // iterator prototype chain incorrectly implement this, causing the Generator\n // object to not be returned from this call. This ensures that doesn't happen.\n // See https://github.com/facebook/regenerator/issues/274 for more details.\n Gp[iteratorSymbol] = function() {\n return this;\n };\n\n Gp.toString = function() {\n return \"[object Generator]\";\n };\n\n function pushTryEntry(locs) {\n var entry = { tryLoc: locs[0] };\n\n if (1 in locs) {\n entry.catchLoc = locs[1];\n }\n\n if (2 in locs) {\n entry.finallyLoc = locs[2];\n entry.afterLoc = locs[3];\n }\n\n this.tryEntries.push(entry);\n }\n\n function resetTryEntry(entry) {\n var record = entry.completion || {};\n record.type = \"normal\";\n delete record.arg;\n entry.completion = record;\n }\n\n function Context(tryLocsList) {\n // The root entry object (effectively a try statement without a catch\n // or a finally block) gives us a place to store values thrown from\n // locations where there is no enclosing try statement.\n this.tryEntries = [{ tryLoc: \"root\" }];\n tryLocsList.forEach(pushTryEntry, this);\n this.reset(true);\n }\n\n exports.keys = function(object) {\n var keys = [];\n for (var key in object) {\n keys.push(key);\n }\n keys.reverse();\n\n // Rather than returning an object with a next method, we keep\n // things simple and return the next function itself.\n return function next() {\n while (keys.length) {\n var key = keys.pop();\n if (key in object) {\n next.value = key;\n next.done = false;\n return next;\n }\n }\n\n // To avoid creating an additional object, we just hang the .value\n // and .done properties off the next function object itself. This\n // also ensures that the minifier will not anonymize the function.\n next.done = true;\n return next;\n };\n };\n\n function values(iterable) {\n if (iterable) {\n var iteratorMethod = iterable[iteratorSymbol];\n if (iteratorMethod) {\n return iteratorMethod.call(iterable);\n }\n\n if (typeof iterable.next === \"function\") {\n return iterable;\n }\n\n if (!isNaN(iterable.length)) {\n var i = -1, next = function next() {\n while (++i < iterable.length) {\n if (hasOwn.call(iterable, i)) {\n next.value = iterable[i];\n next.done = false;\n return next;\n }\n }\n\n next.value = undefined$1;\n next.done = true;\n\n return next;\n };\n\n return next.next = next;\n }\n }\n\n // Return an iterator with no values.\n return { next: doneResult };\n }\n exports.values = values;\n\n function doneResult() {\n return { value: undefined$1, done: true };\n }\n\n Context.prototype = {\n constructor: Context,\n\n reset: function(skipTempReset) {\n this.prev = 0;\n this.next = 0;\n // Resetting context._sent for legacy support of Babel's\n // function.sent implementation.\n this.sent = this._sent = undefined$1;\n this.done = false;\n this.delegate = null;\n\n this.method = \"next\";\n this.arg = undefined$1;\n\n this.tryEntries.forEach(resetTryEntry);\n\n if (!skipTempReset) {\n for (var name in this) {\n // Not sure about the optimal order of these conditions:\n if (name.charAt(0) === \"t\" &&\n hasOwn.call(this, name) &&\n !isNaN(+name.slice(1))) {\n this[name] = undefined$1;\n }\n }\n }\n },\n\n stop: function() {\n this.done = true;\n\n var rootEntry = this.tryEntries[0];\n var rootRecord = rootEntry.completion;\n if (rootRecord.type === \"throw\") {\n throw rootRecord.arg;\n }\n\n return this.rval;\n },\n\n dispatchException: function(exception) {\n if (this.done) {\n throw exception;\n }\n\n var context = this;\n function handle(loc, caught) {\n record.type = \"throw\";\n record.arg = exception;\n context.next = loc;\n\n if (caught) {\n // If the dispatched exception was caught by a catch block,\n // then let that catch block handle the exception normally.\n context.method = \"next\";\n context.arg = undefined$1;\n }\n\n return !! caught;\n }\n\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n var record = entry.completion;\n\n if (entry.tryLoc === \"root\") {\n // Exception thrown outside of any try block that could handle\n // it, so set the completion value of the entire function to\n // throw the exception.\n return handle(\"end\");\n }\n\n if (entry.tryLoc <= this.prev) {\n var hasCatch = hasOwn.call(entry, \"catchLoc\");\n var hasFinally = hasOwn.call(entry, \"finallyLoc\");\n\n if (hasCatch && hasFinally) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n } else if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else if (hasCatch) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n }\n\n } else if (hasFinally) {\n if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else {\n throw new Error(\"try statement without catch or finally\");\n }\n }\n }\n },\n\n abrupt: function(type, arg) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc <= this.prev &&\n hasOwn.call(entry, \"finallyLoc\") &&\n this.prev < entry.finallyLoc) {\n var finallyEntry = entry;\n break;\n }\n }\n\n if (finallyEntry &&\n (type === \"break\" ||\n type === \"continue\") &&\n finallyEntry.tryLoc <= arg &&\n arg <= finallyEntry.finallyLoc) {\n // Ignore the finally entry if control is not jumping to a\n // location outside the try/catch block.\n finallyEntry = null;\n }\n\n var record = finallyEntry ? finallyEntry.completion : {};\n record.type = type;\n record.arg = arg;\n\n if (finallyEntry) {\n this.method = \"next\";\n this.next = finallyEntry.finallyLoc;\n return ContinueSentinel;\n }\n\n return this.complete(record);\n },\n\n complete: function(record, afterLoc) {\n if (record.type === \"throw\") {\n throw record.arg;\n }\n\n if (record.type === \"break\" ||\n record.type === \"continue\") {\n this.next = record.arg;\n } else if (record.type === \"return\") {\n this.rval = this.arg = record.arg;\n this.method = \"return\";\n this.next = \"end\";\n } else if (record.type === \"normal\" && afterLoc) {\n this.next = afterLoc;\n }\n\n return ContinueSentinel;\n },\n\n finish: function(finallyLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.finallyLoc === finallyLoc) {\n this.complete(entry.completion, entry.afterLoc);\n resetTryEntry(entry);\n return ContinueSentinel;\n }\n }\n },\n\n \"catch\": function(tryLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc === tryLoc) {\n var record = entry.completion;\n if (record.type === \"throw\") {\n var thrown = record.arg;\n resetTryEntry(entry);\n }\n return thrown;\n }\n }\n\n // The context.catch method must only be called with a location\n // argument that corresponds to a known catch block.\n throw new Error(\"illegal catch attempt\");\n },\n\n delegateYield: function(iterable, resultName, nextLoc) {\n this.delegate = {\n iterator: values(iterable),\n resultName: resultName,\n nextLoc: nextLoc\n };\n\n if (this.method === \"next\") {\n // Deliberately forget the last sent value so that we don't\n // accidentally pass it on to the delegate.\n this.arg = undefined$1;\n }\n\n return ContinueSentinel;\n }\n };\n\n // Regardless of whether this script is executing as a CommonJS module\n // or not, return the runtime object so that we can declare the variable\n // regeneratorRuntime in the outer scope, which allows this module to be\n // injected easily by `bin/regenerator --include-runtime script.js`.\n return exports;\n\n}(\n // If this script is executing as a CommonJS module, use module.exports\n // as the regeneratorRuntime namespace. Otherwise create a new empty\n // object. Either way, the resulting object will be used to initialize\n // the regeneratorRuntime variable at the top of this file.\n module.exports \n));\n\ntry {\n regeneratorRuntime = runtime;\n} catch (accidentalStrictMode) {\n // This module should not be running in strict mode, so the above\n // assignment should always work unless something is misconfigured. Just\n // in case runtime.js accidentally runs in strict mode, we can escape\n // strict mode using a global Function call. This could conceivably fail\n // if a Content Security Policy forbids using Function, but in that case\n // the proper solution is to fix the accidental strict mode problem. If\n // you've misconfigured your bundler to force strict mode and applied a\n // CSP to forbid Function, and you're not willing to fix either of those\n // problems, please detail your unique predicament in a GitHub issue.\n Function(\"r\", \"regeneratorRuntime = r\")(runtime);\n}\n});\n\nvar DEFAULT_TIMEOUT = 5000;\nvar UnavailableError = /*#__PURE__*/new Error('FDC3 DesktopAgent not available at `window.fdc3`.');\nvar TimeoutError = /*#__PURE__*/new Error('Timed out waiting for `fdc3Ready` event.');\nvar UnexpectedError = /*#__PURE__*/new Error('`fdc3Ready` event fired, but `window.fdc3` not set to DesktopAgent.');\n\nfunction rejectIfNoGlobal(f) {\n return window.fdc3 ? f() : Promise.reject(UnavailableError);\n}\n\nfunction throwIfNoGlobal(f) {\n if (!window.fdc3) {\n throw UnavailableError;\n }\n\n return f();\n}\n\nvar fdc3Ready = /*#__PURE__*/function () {\n var _ref = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee(waitForMs) {\n return runtime_1.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n if (waitForMs === void 0) {\n waitForMs = DEFAULT_TIMEOUT;\n }\n\n return _context.abrupt(\"return\", new Promise(function (resolve, reject) {\n // if the global is already available resolve immediately\n if (window.fdc3) {\n resolve();\n } else {\n // if its not available setup a timeout to return a rejected promise\n var timeout = setTimeout(function () {\n return window.fdc3 ? resolve() : reject(TimeoutError);\n }, waitForMs); // listen for the fdc3Ready event\n\n window.addEventListener('fdc3Ready', function () {\n clearTimeout(timeout);\n window.fdc3 ? resolve() : reject(UnexpectedError);\n }, {\n once: true\n });\n }\n }));\n\n case 2:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }));\n\n return function fdc3Ready(_x) {\n return _ref.apply(this, arguments);\n };\n}();\nfunction open(app, context) {\n return rejectIfNoGlobal(function () {\n return window.fdc3.open(app, context);\n });\n}\nfunction findIntent(intent, context) {\n return rejectIfNoGlobal(function () {\n return window.fdc3.findIntent(intent, context);\n });\n}\nfunction findIntentsByContext(context) {\n return rejectIfNoGlobal(function () {\n return window.fdc3.findIntentsByContext(context);\n });\n}\nfunction broadcast(context) {\n throwIfNoGlobal(function () {\n return window.fdc3.broadcast(context);\n });\n}\nfunction raiseIntent(intent, context, app) {\n return rejectIfNoGlobal(function () {\n return window.fdc3.raiseIntent(intent, context, app);\n });\n}\nfunction raiseIntentForContext(context, app) {\n return rejectIfNoGlobal(function () {\n return window.fdc3.raiseIntentForContext(context, app);\n });\n}\nfunction addIntentListener(intent, handler) {\n return throwIfNoGlobal(function () {\n return window.fdc3.addIntentListener(intent, handler);\n });\n}\nfunction addContextListener(contextTypeOrHandler, handler) {\n if (typeof contextTypeOrHandler !== 'function') {\n return throwIfNoGlobal(function () {\n return window.fdc3.addContextListener(contextTypeOrHandler, handler);\n });\n } else {\n return throwIfNoGlobal(function () {\n return window.fdc3.addContextListener(contextTypeOrHandler);\n });\n }\n}\nfunction getSystemChannels() {\n return rejectIfNoGlobal(function () {\n return window.fdc3.getSystemChannels();\n });\n}\nfunction joinChannel(channelId) {\n return rejectIfNoGlobal(function () {\n return window.fdc3.joinChannel(channelId);\n });\n}\nfunction getOrCreateChannel(channelId) {\n return rejectIfNoGlobal(function () {\n return window.fdc3.getOrCreateChannel(channelId);\n });\n}\nfunction getCurrentChannel() {\n return rejectIfNoGlobal(function () {\n return window.fdc3.getCurrentChannel();\n });\n}\nfunction leaveCurrentChannel() {\n return rejectIfNoGlobal(function () {\n return window.fdc3.leaveCurrentChannel();\n });\n}\nfunction getInfo() {\n return throwIfNoGlobal(function () {\n return window.fdc3.getInfo();\n });\n}\n/**\r\n * Compare numeric semver version number strings (in the form `1.2.3`).\r\n *\r\n * Returns `-1` if the first argument is a lower version number than the second,\r\n * `1` if the first argument is greater than the second, 0 if the arguments are\r\n * equal and `null` if an error occurred during the comparison.\r\n *\r\n * @param a\r\n * @param b\r\n */\n\nvar compareVersionNumbers = function compareVersionNumbers(a, b) {\n try {\n var aVerArr = a.split('.').map(Number);\n var bVerArr = b.split('.').map(Number);\n\n for (var index = 0; index < Math.max(aVerArr.length, bVerArr.length); index++) {\n /* If one version number has more digits and the other does not, and they are otherwise equal,\r\n assume the longer is greater. E.g. 1.1.1 > 1.1 */\n if (index === aVerArr.length || aVerArr[index] < bVerArr[index]) {\n return -1;\n } else if (index === bVerArr.length || aVerArr[index] > bVerArr[index]) {\n return 1;\n }\n }\n\n return 0;\n } catch (e) {\n console.error('Failed to compare version strings', e);\n return null;\n }\n};\n/**\r\n * Check if the FDC3 version in an ImplementationMetadata object is greater than\r\n * or equal to the supplied numeric semver version number string (in the form `1.2.3`).\r\n *\r\n * Returns a boolean or null if an error occurred while comparing the version numbers.\r\n *\r\n * @param metadata\r\n * @param version\r\n */\n\nvar versionIsAtLeast = function versionIsAtLeast(metadata, version) {\n var comparison = compareVersionNumbers(metadata.fdc3Version, version);\n return comparison === null ? null : comparison >= 0 ? true : false;\n};\n\nvar ContextTypes;\n\n(function (ContextTypes) {\n ContextTypes[\"Contact\"] = \"fdc3.contact\";\n ContextTypes[\"ContactList\"] = \"fdc3.contactList\";\n ContextTypes[\"Country\"] = \"fdc3.country\";\n ContextTypes[\"Instrument\"] = \"fdc3.instrument\";\n ContextTypes[\"Organization\"] = \"fdc3.organization\";\n ContextTypes[\"Portfolio\"] = \"fdc3.portfolio\";\n ContextTypes[\"Position\"] = \"fdc3.position\";\n})(ContextTypes || (ContextTypes = {}));\n\n// To parse this data:\n//\n// import { Convert, Context, Contact, ContactList, Instrument, InstrumentList, Country, Organization, Portfolio, Position } from \"./file\";\n//\n// const context = Convert.toContext(json);\n// const contact = Convert.toContact(json);\n// const contactList = Convert.toContactList(json);\n// const instrument = Convert.toInstrument(json);\n// const instrumentList = Convert.toInstrumentList(json);\n// const country = Convert.toCountry(json);\n// const organization = Convert.toOrganization(json);\n// const portfolio = Convert.toPortfolio(json);\n// const position = Convert.toPosition(json);\n//\n// These functions will throw an error if the JSON doesn't\n// match the expected interface, even if the JSON is valid.\n// Converts JSON strings to/from your types\n// and asserts the results of JSON.parse at runtime\nvar Convert = /*#__PURE__*/function () {\n function Convert() {}\n\n Convert.toContext = function toContext(json) {\n return cast(JSON.parse(json), r('Context'));\n };\n\n Convert.contextToJson = function contextToJson(value) {\n return JSON.stringify(uncast(value, r('Context')), null, 2);\n };\n\n Convert.toContact = function toContact(json) {\n return cast(JSON.parse(json), r('Contact'));\n };\n\n Convert.contactToJson = function contactToJson(value) {\n return JSON.stringify(uncast(value, r('Contact')), null, 2);\n };\n\n Convert.toContactList = function toContactList(json) {\n return cast(JSON.parse(json), r('ContactList'));\n };\n\n Convert.contactListToJson = function contactListToJson(value) {\n return JSON.stringify(uncast(value, r('ContactList')), null, 2);\n };\n\n Convert.toInstrument = function toInstrument(json) {\n return cast(JSON.parse(json), r('Instrument'));\n };\n\n Convert.instrumentToJson = function instrumentToJson(value) {\n return JSON.stringify(uncast(value, r('Instrument')), null, 2);\n };\n\n Convert.toInstrumentList = function toInstrumentList(json) {\n return cast(JSON.parse(json), r('InstrumentList'));\n };\n\n Convert.instrumentListToJson = function instrumentListToJson(value) {\n return JSON.stringify(uncast(value, r('InstrumentList')), null, 2);\n };\n\n Convert.toCountry = function toCountry(json) {\n return cast(JSON.parse(json), r('Country'));\n };\n\n Convert.countryToJson = function countryToJson(value) {\n return JSON.stringify(uncast(value, r('Country')), null, 2);\n };\n\n Convert.toOrganization = function toOrganization(json) {\n return cast(JSON.parse(json), r('Organization'));\n };\n\n Convert.organizationToJson = function organizationToJson(value) {\n return JSON.stringify(uncast(value, r('Organization')), null, 2);\n };\n\n Convert.toPortfolio = function toPortfolio(json) {\n return cast(JSON.parse(json), r('Portfolio'));\n };\n\n Convert.portfolioToJson = function portfolioToJson(value) {\n return JSON.stringify(uncast(value, r('Portfolio')), null, 2);\n };\n\n Convert.toPosition = function toPosition(json) {\n return cast(JSON.parse(json), r('Position'));\n };\n\n Convert.positionToJson = function positionToJson(value) {\n return JSON.stringify(uncast(value, r('Position')), null, 2);\n };\n\n return Convert;\n}();\n\nfunction invalidValue(typ, val, key) {\n if (key === void 0) {\n key = '';\n }\n\n if (key) {\n throw Error(\"Invalid value for key \\\"\" + key + \"\\\". Expected type \" + JSON.stringify(typ) + \" but got \" + JSON.stringify(val));\n }\n\n throw Error(\"Invalid value \" + JSON.stringify(val) + \" for type \" + JSON.stringify(typ));\n}\n\nfunction jsonToJSProps(typ) {\n if (typ.jsonToJS === undefined) {\n var map = {};\n typ.props.forEach(function (p) {\n return map[p.json] = {\n key: p.js,\n typ: p.typ\n };\n });\n typ.jsonToJS = map;\n }\n\n return typ.jsonToJS;\n}\n\nfunction jsToJSONProps(typ) {\n if (typ.jsToJSON === undefined) {\n var map = {};\n typ.props.forEach(function (p) {\n return map[p.js] = {\n key: p.json,\n typ: p.typ\n };\n });\n typ.jsToJSON = map;\n }\n\n return typ.jsToJSON;\n}\n\nfunction transform(val, typ, getProps, key) {\n if (key === void 0) {\n key = '';\n }\n\n function transformPrimitive(typ, val) {\n if (typeof typ === typeof val) return val;\n return invalidValue(typ, val, key);\n }\n\n function transformUnion(typs, val) {\n // val must validate against one typ in typs\n var l = typs.length;\n\n for (var i = 0; i < l; i++) {\n var _typ = typs[i];\n\n try {\n return transform(val, _typ, getProps);\n } catch (_) {}\n }\n\n return invalidValue(typs, val);\n }\n\n function transformEnum(cases, val) {\n if (cases.indexOf(val) !== -1) return val;\n return invalidValue(cases, val);\n }\n\n function transformArray(typ, val) {\n // val must be an array with no invalid elements\n if (!Array.isArray(val)) return invalidValue('array', val);\n return val.map(function (el) {\n return transform(el, typ, getProps);\n });\n }\n\n function transformDate(val) {\n if (val === null) {\n return null;\n }\n\n var d = new Date(val);\n\n if (isNaN(d.valueOf())) {\n return invalidValue('Date', val);\n }\n\n return d;\n }\n\n function transformObject(props, additional, val) {\n if (val === null || typeof val !== 'object' || Array.isArray(val)) {\n return invalidValue('object', val);\n }\n\n var result = {};\n Object.getOwnPropertyNames(props).forEach(function (key) {\n var prop = props[key];\n var v = Object.prototype.hasOwnProperty.call(val, key) ? val[key] : undefined;\n result[prop.key] = transform(v, prop.typ, getProps, prop.key);\n });\n Object.getOwnPropertyNames(val).forEach(function (key) {\n if (!Object.prototype.hasOwnProperty.call(props, key)) {\n result[key] = transform(val[key], additional, getProps, key);\n }\n });\n return result;\n }\n\n if (typ === 'any') return val;\n\n if (typ === null) {\n if (val === null) return val;\n return invalidValue(typ, val);\n }\n\n if (typ === false) return invalidValue(typ, val);\n\n while (typeof typ === 'object' && typ.ref !== undefined) {\n typ = typeMap[typ.ref];\n }\n\n if (Array.isArray(typ)) return transformEnum(typ, val);\n\n if (typeof typ === 'object') {\n return typ.hasOwnProperty('unionMembers') ? transformUnion(typ.unionMembers, val) : typ.hasOwnProperty('arrayItems') ? transformArray(typ.arrayItems, val) : typ.hasOwnProperty('props') ? transformObject(getProps(typ), typ.additional, val) : invalidValue(typ, val);\n } // Numbers can be parsed by Date but shouldn't be.\n\n\n if (typ === Date && typeof val !== 'number') return transformDate(val);\n return transformPrimitive(typ, val);\n}\n\nfunction cast(val, typ) {\n return transform(val, typ, jsonToJSProps);\n}\n\nfunction uncast(val, typ) {\n return transform(val, typ, jsToJSONProps);\n}\n\nfunction a(typ) {\n return {\n arrayItems: typ\n };\n}\n\nfunction u() {\n for (var _len = arguments.length, typs = new Array(_len), _key = 0; _key < _len; _key++) {\n typs[_key] = arguments[_key];\n }\n\n return {\n unionMembers: typs\n };\n}\n\nfunction o(props, additional) {\n return {\n props: props,\n additional: additional\n };\n}\n\nfunction m(additional) {\n return {\n props: [],\n additional: additional\n };\n}\n\nfunction r(name) {\n return {\n ref: name\n };\n}\n\nvar typeMap = {\n Context: /*#__PURE__*/o([{\n json: 'id',\n js: 'id',\n typ: /*#__PURE__*/u(undefined, /*#__PURE__*/m(''))\n }, {\n json: 'name',\n js: 'name',\n typ: /*#__PURE__*/u(undefined, '')\n }, {\n json: 'type',\n js: 'type',\n typ: ''\n }], 'any'),\n ContactList: /*#__PURE__*/o([{\n json: 'contacts',\n js: 'contacts',\n typ: /*#__PURE__*/a( /*#__PURE__*/r('Contact'))\n }, {\n json: 'type',\n js: 'type',\n typ: ''\n }, {\n json: 'id',\n js: 'id',\n typ: /*#__PURE__*/u(undefined, /*#__PURE__*/m(''))\n }, {\n json: 'name',\n js: 'name',\n typ: /*#__PURE__*/u(undefined, '')\n }], 'any'),\n Contact: /*#__PURE__*/o([{\n json: 'id',\n js: 'id',\n typ: /*#__PURE__*/r('ContactID')\n }, {\n json: 'type',\n js: 'type',\n typ: ''\n }, {\n json: 'name',\n js: 'name',\n typ: /*#__PURE__*/u(undefined, '')\n }], 'any'),\n ContactID: /*#__PURE__*/o([{\n json: 'email',\n js: 'email',\n typ: /*#__PURE__*/u(undefined, '')\n }, {\n json: 'FDS_ID',\n js: 'FDS_ID',\n typ: /*#__PURE__*/u(undefined, '')\n }], ''),\n InstrumentList: /*#__PURE__*/o([{\n json: 'instruments',\n js: 'instruments',\n typ: /*#__PURE__*/a( /*#__PURE__*/r('Instrument'))\n }, {\n json: 'type',\n js: 'type',\n typ: ''\n }, {\n json: 'id',\n js: 'id',\n typ: /*#__PURE__*/u(undefined, /*#__PURE__*/m(''))\n }, {\n json: 'name',\n js: 'name',\n typ: /*#__PURE__*/u(undefined, '')\n }], 'any'),\n Instrument: /*#__PURE__*/o([{\n json: 'id',\n js: 'id',\n typ: /*#__PURE__*/r('InstrumentID')\n }, {\n json: 'type',\n js: 'type',\n typ: ''\n }, {\n json: 'name',\n js: 'name',\n typ: /*#__PURE__*/u(undefined, '')\n }], 'any'),\n InstrumentID: /*#__PURE__*/o([{\n json: 'BBG',\n js: 'BBG',\n typ: /*#__PURE__*/u(undefined, '')\n }, {\n json: 'CUSIP',\n js: 'CUSIP',\n typ: /*#__PURE__*/u(undefined, '')\n }, {\n json: 'FDS_ID',\n js: 'FDS_ID',\n typ: /*#__PURE__*/u(undefined, '')\n }, {\n json: 'FIGI',\n js: 'FIGI',\n typ: /*#__PURE__*/u(undefined, '')\n }, {\n json: 'ISIN',\n js: 'ISIN',\n typ: /*#__PURE__*/u(undefined, '')\n }, {\n json: 'PERMID',\n js: 'PERMID',\n typ: /*#__PURE__*/u(undefined, '')\n }, {\n json: 'RIC',\n js: 'RIC',\n typ: /*#__PURE__*/u(undefined, '')\n }, {\n json: 'SEDOL',\n js: 'SEDOL',\n typ: /*#__PURE__*/u(undefined, '')\n }, {\n json: 'ticker',\n js: 'ticker',\n typ: /*#__PURE__*/u(undefined, '')\n }], ''),\n Country: /*#__PURE__*/o([{\n json: 'id',\n js: 'id',\n typ: /*#__PURE__*/r('CountryID')\n }, {\n json: 'type',\n js: 'type',\n typ: ''\n }, {\n json: 'name',\n js: 'name',\n typ: /*#__PURE__*/u(undefined, '')\n }], 'any'),\n CountryID: /*#__PURE__*/o([{\n json: 'ISOALPHA2',\n js: 'ISOALPHA2',\n typ: /*#__PURE__*/u(undefined, '')\n }, {\n json: 'ISOALPHA3',\n js: 'ISOALPHA3',\n typ: /*#__PURE__*/u(undefined, '')\n }], ''),\n Organization: /*#__PURE__*/o([{\n json: 'id',\n js: 'id',\n typ: /*#__PURE__*/r('OrganizationID')\n }, {\n json: 'type',\n js: 'type',\n typ: ''\n }, {\n json: 'name',\n js: 'name',\n typ: /*#__PURE__*/u(undefined, '')\n }], 'any'),\n OrganizationID: /*#__PURE__*/o([{\n json: 'FDS_ID',\n js: 'FDS_ID',\n typ: /*#__PURE__*/u(undefined, '')\n }, {\n json: 'LEI',\n js: 'LEI',\n typ: /*#__PURE__*/u(undefined, '')\n }, {\n json: 'PERMID',\n js: 'PERMID',\n typ: /*#__PURE__*/u(undefined, '')\n }], ''),\n Portfolio: /*#__PURE__*/o([{\n json: 'positions',\n js: 'positions',\n typ: /*#__PURE__*/a( /*#__PURE__*/r('Position'))\n }, {\n json: 'type',\n js: 'type',\n typ: ''\n }, {\n json: 'id',\n js: 'id',\n typ: /*#__PURE__*/u(undefined, /*#__PURE__*/m(''))\n }, {\n json: 'name',\n js: 'name',\n typ: /*#__PURE__*/u(undefined, '')\n }], 'any'),\n Position: /*#__PURE__*/o([{\n json: 'holding',\n js: 'holding',\n typ: 3.14\n }, {\n json: 'instrument',\n js: 'instrument',\n typ: /*#__PURE__*/r('Instrument')\n }, {\n json: 'type',\n js: 'type',\n typ: ''\n }, {\n json: 'id',\n js: 'id',\n typ: /*#__PURE__*/u(undefined, /*#__PURE__*/m(''))\n }, {\n json: 'name',\n js: 'name',\n typ: /*#__PURE__*/u(undefined, '')\n }], 'any')\n};\n\nvar Intents;\n\n(function (Intents) {\n Intents[\"StartCall\"] = \"StartCall\";\n Intents[\"StartChat\"] = \"StartChat\";\n Intents[\"ViewChart\"] = \"ViewChart\";\n Intents[\"ViewContact\"] = \"ViewContact\";\n Intents[\"ViewQuote\"] = \"ViewQuote\";\n Intents[\"ViewNews\"] = \"ViewNews\";\n Intents[\"ViewInstrument\"] = \"ViewInstrument\";\n Intents[\"ViewAnalysis\"] = \"ViewAnalysis\";\n})(Intents || (Intents = {}));\n\nexport { ChannelError, ContextTypes, Convert, Intents, OpenError, ResolveError, addContextListener, addIntentListener, broadcast, compareVersionNumbers, fdc3Ready, findIntent, findIntentsByContext, getCurrentChannel, getInfo, getOrCreateChannel, getSystemChannels, joinChannel, leaveCurrentChannel, open, raiseIntent, raiseIntentForContext, versionIsAtLeast };\n//# sourceMappingURL=fdc3.esm.js.map\n"],"sourceRoot":""}
|