@genesislcap/foundation-events 10.3.1-alpha-08364b6.0 → 11.3.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.
Files changed (37) hide show
  1. package/dist/esm/eventEmitter/eventEmitterDI.js +0 -1
  2. package/dist/esm/eventEmitter/eventEmitterMixin.js +0 -1
  3. package/dist/esm/eventEmitter/index.js +0 -1
  4. package/dist/esm/index.federated.js +0 -1
  5. package/dist/esm/index.js +0 -1
  6. package/dist/esm/types.js +0 -1
  7. package/package.json +3 -4
  8. package/dist/1.0.0.remoteEntry.js +0 -1
  9. package/dist/573.573.6e60854155addcc72467.js +0 -2
  10. package/dist/573.650390e975bc6c8376d3ff8eda7e52f4.js.map +0 -1
  11. package/dist/755.537dff5a23d468b98824bdef43b0cda0.js.map +0 -1
  12. package/dist/755.755.e981769af6aec9db513d.js +0 -2
  13. package/dist/856.3e4045c8104c25006236673f533997ff.js.map +0 -1
  14. package/dist/856.856.72fdef7363783c3bf498.js +0 -3
  15. package/dist/856.856.72fdef7363783c3bf498.js.LICENSE.txt +0 -4
  16. package/dist/dashboard.json +0 -1
  17. package/dist/esm/eventEmitter/eventEmitterDI.js.map +0 -1
  18. package/dist/esm/eventEmitter/eventEmitterMixin.js.map +0 -1
  19. package/dist/esm/eventEmitter/index.js.map +0 -1
  20. package/dist/esm/index.federated.js.map +0 -1
  21. package/dist/esm/index.js.map +0 -1
  22. package/dist/esm/types.js.map +0 -1
  23. package/dist/favicon.ico +0 -0
  24. package/dist/foundation-events.iife.min.js +0 -1
  25. package/dist/foundation-events.js +0 -2728
  26. package/dist/foundation-events.min.js +0 -1
  27. package/dist/foundationEvents.8f5b3182da29e4d9304d1d4c151e3e58.js.map +0 -1
  28. package/dist/index.ejs +0 -23
  29. package/dist/index.html +0 -13
  30. package/dist/info.ejs +0 -13
  31. package/dist/main.50811a618c5e054436cd.js +0 -2
  32. package/dist/main.db9310a7c29193d4ad3bbbeeb42b7729.js.map +0 -1
  33. package/dist/npm.microsoft.127.08b9ac45e34e116d147c.js +0 -1469
  34. package/dist/npm.microsoft.127.08b9ac45e34e116d147c.js.LICENSE.txt +0 -14
  35. package/dist/npm.microsoft.c693b5fe4306901c8d3cdd3b3c894944.js.map +0 -1
  36. package/dist/remoteEntry.js +0 -2
  37. package/dist/serve.json +0 -3
@@ -11,4 +11,3 @@ export const EventEmitterDI = DI.createInterface((x) => x.singleton(DefaultEvent
11
11
  export const registerEmitter = () => {
12
12
  return DI.createInterface((x) => x.aliasTo(EventEmitterDI));
13
13
  };
14
- //# sourceMappingURL=eventEmitterDI.js.map
@@ -5,4 +5,3 @@ export const EventEmitter = (Base) => class extends Base {
5
5
  return super.$emit(type, detail, options);
6
6
  }
7
7
  };
8
- //# sourceMappingURL=eventEmitterMixin.js.map
@@ -1,3 +1,2 @@
1
1
  export * from './eventEmitterDI';
2
2
  export * from './eventEmitterMixin';
3
- //# sourceMappingURL=index.js.map
@@ -1,2 +1 @@
1
1
  import('./index');
2
- //# sourceMappingURL=index.federated.js.map
package/dist/esm/index.js CHANGED
@@ -1,3 +1,2 @@
1
1
  export * from './eventEmitter';
2
2
  export * from './types';
3
- //# sourceMappingURL=index.js.map
package/dist/esm/types.js CHANGED
@@ -19,4 +19,3 @@ export const targetFirstSelectedValue = (ctx) => { var _a, _b; return (_b = (_a
19
19
  const createChangeEmitter = (valueGetter) => (type, options) => (x, c) => x.$emit(String(type), valueGetter(c), options);
20
20
  export const createInputEmitter = () => createChangeEmitter(targetValue);
21
21
  export const createSelectEmitter = () => createChangeEmitter(targetFirstSelectedValue);
22
- //# sourceMappingURL=types.js.map
package/package.json CHANGED
@@ -1,12 +1,11 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-events",
3
3
  "description": "Genesis Foundation Events",
4
- "version": "10.3.1-alpha-08364b6.0",
4
+ "version": "11.3.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
8
8
  "types": "dist/dts/index.d.ts",
9
- "unpkg": "dist/foundation-events.min.js",
10
9
  "config": {
11
10
  "PORT": 3060
12
11
  },
@@ -22,7 +21,7 @@
22
21
  "dev:rollup": "rollup -c -w --configDev",
23
22
  "dev:tsc": "tsc -b ./tsconfig.build.json -w",
24
23
  "dev:webpack": "cross-env NODE_ENV=development webpack serve",
25
- "prepare": "npm run clean && npm run build",
24
+ "prepare": "npm run clean && npm run build:tsc",
26
25
  "prepublishOnly": "npm run prepare",
27
26
  "serve": "serve dist -p $npm_package_config_PORT",
28
27
  "test": "echo \"Error: no test specified\""
@@ -83,5 +82,5 @@
83
82
  "publishConfig": {
84
83
  "access": "public"
85
84
  },
86
- "gitHead": "5005eff83ee20009746a5b9f336556110571fd7a"
85
+ "gitHead": "14c3b231f318b547590e2474af8a1e86a7ee63ed"
87
86
  }
@@ -1 +0,0 @@
1
- var foundationEvents;(()=>{"use strict";var e,r,t,n,o,a,i,f,l,s,u,d,c={451:(e,r,t)=>{var n={"./index":()=>t.e(755).then((()=>()=>t(755)))},o=(e,r)=>(t.R=r,r=t.o(n,e)?n[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),t.R=void 0,r),a=(e,r)=>{if(t.S){var n=t.S.default,o="default";if(n&&n!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[o]=e,t.I(o,r)}};t.d(r,{get:()=>o,init:()=>a})}},v={};function p(e){var r=v[e];if(void 0!==r)return r.exports;var t=v[e]={exports:{}},n=!0;try{c[e](t,t.exports,p),n=!1}finally{n&&delete v[e]}return t.exports}p.m=c,p.c=v,e=[],p.O=(r,t,n,o)=>{if(!t){var a=1/0;for(s=0;s<e.length;s++){for(var[t,n,o]=e[s],i=!0,f=0;f<t.length;f++)(!1&o||a>=o)&&Object.keys(p.O).every((e=>p.O[e](t[f])))?t.splice(f--,1):(i=!1,o<a&&(a=o));if(i){e.splice(s--,1);var l=n();void 0!==l&&(r=l)}}return r}o=o||0;for(var s=e.length;s>0&&e[s-1][2]>o;s--)e[s]=e[s-1];e[s]=[t,n,o]},p.d=(e,r)=>{for(var t in r)p.o(r,t)&&!p.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},p.f={},p.e=e=>Promise.all(Object.keys(p.f).reduce(((r,t)=>(p.f[t](e,r),r)),[])),p.u=e=>(127===e?"npm.microsoft":e)+"."+e+"."+{127:"08b9ac45e34e116d147c",573:"6e60854155addcc72467",755:"e981769af6aec9db513d",856:"72fdef7363783c3bf498"}[e]+".js",p.miniCssF=e=>{},p.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),r={},t="@genesislcap/foundation-events:",p.l=(e,n,o,a)=>{if(r[e])r[e].push(n);else{var i,f;if(void 0!==o)for(var l=document.getElementsByTagName("script"),s=0;s<l.length;s++){var u=l[s];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")==t+o){i=u;break}}i||(f=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,p.nc&&i.setAttribute("nonce",p.nc),i.setAttribute("data-webpack",t+o),i.src=e),r[e]=[n];var d=(t,n)=>{i.onerror=i.onload=null,clearTimeout(c);var o=r[e];if(delete r[e],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),t)return t(n)},c=setTimeout(d.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=d.bind(null,i.onerror),i.onload=d.bind(null,i.onload),f&&document.head.appendChild(i)}},p.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{p.S={};var e={},r={};p.I=(t,n)=>{n||(n=[]);var o=r[t];if(o||(o=r[t]={}),!(n.indexOf(o)>=0)){if(n.push(o),e[t])return e[t];p.o(p.S,t)||(p.S[t]={});var a=p.S[t],i="@genesislcap/foundation-events",f=(e,r,t,n)=>{var o=a[e]=a[e]||{},f=o[r];(!f||!f.loaded&&(!n!=!f.eager?n:i>f.from))&&(o[r]={get:t,from:i,eager:!!n})},l=[];return"default"===t&&(f("@microsoft/fast-element","1.11.0",(()=>p.e(127).then((()=>()=>p(759))))),f("@microsoft/fast-foundation","2.47.0",(()=>Promise.all([p.e(127),p.e(856)]).then((()=>()=>p(812))))),f("tslib","1.14.1",(()=>p.e(127).then((()=>()=>p(726)))))),e[t]=l.length?Promise.all(l).then((()=>e[t]=1)):1}}})(),p.p="/",n=e=>{var r=e=>e.split(".").map((e=>+e==e?+e:e)),t=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),n=t[1]?r(t[1]):[];return t[2]&&(n.length++,n.push.apply(n,r(t[2]))),t[3]&&(n.push([]),n.push.apply(n,r(t[3]))),n},o=(e,r)=>{e=n(e),r=n(r);for(var t=0;;){if(t>=e.length)return t<r.length&&"u"!=(typeof r[t])[0];var o=e[t],a=(typeof o)[0];if(t>=r.length)return"u"==a;var i=r[t],f=(typeof i)[0];if(a!=f)return"o"==a&&"n"==f||"s"==f||"u"==a;if("o"!=a&&"u"!=a&&o!=i)return o<i;t++}},a=(e,r)=>{if(0 in e){r=n(r);var t=e[0],o=t<0;o&&(t=-t-1);for(var i=0,f=1,l=!0;;f++,i++){var s,u,d=f<e.length?(typeof e[f])[0]:"";if(i>=r.length||"o"==(u=(typeof(s=r[i]))[0]))return!l||("u"==d?f>t&&!o:""==d!=o);if("u"==u){if(!l||"u"!=d)return!1}else if(l)if(d==u)if(f<=t){if(s!=e[f])return!1}else{if(o?s>e[f]:s<e[f])return!1;s!=e[f]&&(l=!1)}else if("s"!=d&&"n"!=d){if(o||f<=t)return!1;l=!1,f--}else{if(f<=t||u<d!=o)return!1;l=!1}else"s"!=d&&"n"!=d&&(l=!1,f--)}}var c=[],v=c.pop.bind(c);for(i=1;i<e.length;i++){var p=e[i];c.push(1==p?v()|v():2==p?v()&v():p?a(p,r):!v())}return!!v()},i=(e,r,t)=>{var n=e[r];return(r=Object.keys(n).reduce(((e,r)=>!a(t,r)||e&&!o(e,r)?e:r),0))&&n[r]},f=e=>(e.loaded=1,e.get()),l=(e=>function(r,t,n,o){var a=p.I(r);return a&&a.then?a.then(e.bind(e,r,p.S[r],t,n,o)):e(r,p.S[r],t,n,o)})(((e,r,t,n,o)=>{var a=r&&p.o(r,t)&&i(r,t,n);return a?f(a):o()})),s={},u={147:()=>l("default","@microsoft/fast-element",[1,1,7,0],(()=>p.e(127).then((()=>()=>p(759))))),495:()=>l("default","tslib",[1,2,3,1],(()=>p.e(127).then((()=>()=>p(726))))),951:()=>l("default","@microsoft/fast-foundation",[1,2,33,2],(()=>Promise.all([p.e(127),p.e(856)]).then((()=>()=>p(812)))))},d={573:[951],856:[147,495]},p.f.consumes=(e,r)=>{p.o(d,e)&&d[e].forEach((e=>{if(p.o(s,e))return r.push(s[e]);var t=r=>{s[e]=0,p.m[e]=t=>{delete p.c[e],t.exports=r()}},n=r=>{delete s[e],p.m[e]=t=>{throw delete p.c[e],r}};try{var o=u[e]();o.then?r.push(s[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}))},(()=>{var e={707:0,822:0};p.f.j=(r,t)=>{var n=p.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(822!=r){var o=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=o);var a=p.p+p.u(r),i=new Error;p.l(a,(t=>{if(p.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var o=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;i.message="Loading chunk "+r+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,n[1](i)}}),"chunk-"+r,r)}else e[r]=0},p.O.j=r=>0===e[r];var r=(r,t)=>{var n,o,[a,i,f]=t,l=0;for(n in i)p.o(i,n)&&(p.m[n]=i[n]);if(f)var s=f(p);for(r&&r(t);l<a.length;l++)o=a[l],p.o(e,o)&&e[o]&&e[o][0](),e[a[l]]=0;return p.O(s)},t=self.webpackChunk_genesislcap_foundation_events=self.webpackChunk_genesislcap_foundation_events||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})();var h=p.O(void 0,[822],(()=>p(451)));h=p.O(h),foundationEvents=h})();
@@ -1,2 +0,0 @@
1
- (self.webpackChunk_genesislcap_foundation_events=self.webpackChunk_genesislcap_foundation_events||[]).push([[573],{573:(e,t,r)=>{"use strict";r.r(t),r.d(t,{DefaultEventEmitterDI:()=>v,EventEmitter:()=>p,EventEmitterDI:()=>m,createInputEmitter:()=>u,createSelectEmitter:()=>c,customEvent:()=>i,getBaseEmitArgs:()=>s,registerEmitter:()=>d,targetFirstSelectedValue:()=>l,targetValue:()=>a});var n=r(951);const s=(...e)=>{let[t,r,n]=e,s=r;var i;if(((null==(i=r)?void 0:i.hasOwnProperty("bubbles"))||(null==i?void 0:i.hasOwnProperty("cancelable"))||(null==i?void 0:i.hasOwnProperty("composed")))&&(n=r,s=void 0),"string"!=typeof t)throw new Error("$emit event types must be typeof string.");return[t,s,n]},i=e=>e.event,a=e=>e.event.target.value,l=e=>{var t,r;return null===(r=null===(t=e.event.target)||void 0===t?void 0:t.firstSelectedOption)||void 0===r?void 0:r.value},o=e=>(t,r)=>(n,s)=>n.$emit(String(t),e(s),r),u=()=>o(a),c=()=>o(l);class v{emit(...e){const[t,...r]=e,[n,i,a]=s(...r);return t.$emit(n,i,a)}}const m=n.DI.createInterface((e=>e.singleton(v))),d=()=>n.DI.createInterface((e=>e.aliasTo(m))),p=e=>class extends e{$emit(...e){const[t,r,n]=s(...e);return super.$emit(t,r,n)}}}}]);
2
- //# sourceMappingURL=573.650390e975bc6c8376d3ff8eda7e52f4.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["webpack://@genesislcap/foundation-events/./src/types.ts","webpack://@genesislcap/foundation-events/./src/eventEmitter/eventEmitterDI.ts","webpack://@genesislcap/foundation-events/./src/eventEmitter/eventEmitterMixin.ts"],"names":["getBaseEmitArgs","args","type","detailOrOptions","options","detail","candidate","hasOwnProperty","undefined","Error","customEvent","ctx","event","targetValue","target","value","targetFirstSelectedValue","firstSelectedOption","createChangeEmitter","valueGetter","x","c","$emit","String","createInputEmitter","createSelectEmitter","DefaultEventEmitterDI","emit","origin","rest","EventEmitterDI","DI","singleton","registerEmitter","aliasTo","EventEmitter","Base","super"],"mappings":"iZAiBA,MAKaA,EAAkB,IAAIC,KACjC,IAAKC,EAAMC,EAAiBC,GAAWH,EACnCI,EAASF,EAPO,IAACG,EAYrB,KAXAA,OADqBA,EAQHH,QAPT,EAATG,EAAWC,eAAe,cAC1BD,aAAS,EAATA,EAAWC,eAAe,iBAC1BD,aAAS,EAATA,EAAWC,eAAe,gBAMxBH,EAAUD,EACVE,OAASG,GAES,iBAATN,EACT,MAAM,IAAIO,MAAM,4CAElB,MAAO,CAACP,EAAMG,EAAQD,EAAQ,EAGnBM,EAAoCC,GAC/CA,EAAIC,MAIOC,EAA4BF,GAA2BA,EAAIC,MAAME,OAAeC,MAEhFC,EAAyCL,IAAyB,QAC7E,OAAiD,QAAjD,EAA4B,QAA5B,EAACA,EAAIC,MAAME,cAAiB,eAAEG,2BAAmB,eAAEF,KAAK,EAepDG,EACqCC,GACzC,CAAkDjB,EAASE,IAC3D,CAACgB,EAAgBC,IACfD,EAAEE,MAAMC,OAAOrB,GAAOiB,EAAYE,GAAIjB,GAE7BoB,EAAqB,IAChCN,EAAqCL,GAE1BY,EAAsB,IACjCP,EAAqCF,GClDhC,MAAMU,EAGXC,QACK1B,GAIH,MAAO2B,KAAWC,GAAQ5B,GACnBC,EAAMG,EAAQD,GAAWJ,KAAmB6B,GACnD,OAAOD,EAAON,MAAMpB,EAAMG,EAAQD,EACpC,EAGK,MAAM0B,EAAiB,EAAAC,GAAA,iBAAoDX,GAChFA,EAAEY,UAAUN,KAGDO,EAAkB,IACtB,EAAAF,GAAA,iBAAqDX,GAAMA,EAAEc,QAAQJ,KC7BjEK,EACXC,GAEA,cAAcA,EACZd,SACKrB,GAIH,MAAOC,EAAMG,EAAQD,GAAWJ,KAAmBC,GACnD,OAAOoC,MAAMf,MAAMpB,EAAMG,EAAQD,EACnC,E","file":"573.573.xxxxxxxxxxxxxxxxxxxx.js","sourcesContent":["import { Binding, Constructable, ExecutionContext, FASTElement } from '@microsoft/fast-element';\nimport type { Select } from '@microsoft/fast-foundation';\n\nexport type ConstructableTypedEventEmitter = Constructable<FASTElement & HTMLElement>;\nexport type EmitOptions = Omit<CustomEventInit, 'detail'>;\nexport type EmitReturn = boolean | void;\nexport type EmitArgs = [string, {} | undefined, EmitOptions | undefined];\nexport type EmitOrigin = FASTElement;\n\nexport type EventDetailMap = Record<string, unknown>;\nexport type EventListenerMap<TEventDetailMap extends EventDetailMap> = {\n [K in keyof TEventDetailMap]: EventListener;\n};\nexport type CustomEventMap<TEventDetailMap extends EventDetailMap> = {\n [K in keyof TEventDetailMap]: CustomEvent<TEventDetailMap[K]>;\n};\n\nconst isEmitOptions = (candidate: EmitOptions | any): boolean =>\n candidate?.hasOwnProperty('bubbles') ||\n candidate?.hasOwnProperty('cancelable') ||\n candidate?.hasOwnProperty('composed');\n\nexport const getBaseEmitArgs = (...args: unknown[]): EmitArgs => {\n let [type, detailOrOptions, options] = args;\n let detail = detailOrOptions;\n if (isEmitOptions(detailOrOptions)) {\n options = detailOrOptions;\n detail = undefined;\n }\n if (typeof type !== 'string') {\n throw new Error('$emit event types must be typeof string.');\n }\n return [type, detail, options];\n};\n\nexport const customEvent = <TEventDetail = void>(ctx: ExecutionContext) =>\n ctx.event as CustomEvent<TEventDetail>;\n\ntype ValueGetter = (ctx: ExecutionContext) => any;\n\nexport const targetValue: ValueGetter = (ctx: ExecutionContext) => (ctx.event.target as any).value;\n\nexport const targetFirstSelectedValue: ValueGetter = (ctx: ExecutionContext) =>\n (ctx.event.target as Select)?.firstSelectedOption?.value;\n\n/**\n * Template emit helpers for input and select elements:\n *\n * In some.template.ts file you create the helper upfront by passing in the full event map.\n *\n * const inputEmit = createInputEmitter<EventMap>();\n * const selectEmit = createSelectEmitter<EventMap>();\n *\n * <zero-text-field @change=\"${inputEmit('some-input-changed')}\">\n * <zero-select @change=\"${selectEmit('some-select-changed')}\">\n */\n\nexport type KeysMatching<T, V> = { [K in keyof T]-?: T[K] extends V ? K : never }[keyof T];\nconst createChangeEmitter =\n <TEventDetailMap extends EventDetailMap>(valueGetter: ValueGetter) =>\n <K extends KeysMatching<TEventDetailMap, string>>(type: K, options?: EmitOptions): Binding =>\n (x: FASTElement, c: ExecutionContext) =>\n x.$emit(String(type), valueGetter(c), options);\n\nexport const createInputEmitter = <TEventDetailMap extends EventDetailMap>() =>\n createChangeEmitter<TEventDetailMap>(targetValue);\n\nexport const createSelectEmitter = <TEventDetailMap extends EventDetailMap>() =>\n createChangeEmitter<TEventDetailMap>(targetFirstSelectedValue);\n","import { DI } from '@microsoft/fast-foundation';\nimport { EmitOptions, EmitOrigin, EmitReturn, EventDetailMap, getBaseEmitArgs } from '../types';\n\n/**\n * Base DI key of a strongly typed store event emitter with event type to event detail pairings.\n * This is closely related to the EventEmitter mixin in terms of functionality, however its purpose is a bit different.\n * You can create optional EventEmitters for your store that can be injected anywhere, and that emitter can emit an\n * allowed / typed event from an origin html element, without that element needing to be a FAST element.\n */\n\nexport interface EventEmitterDI<TEventDetailMap extends EventDetailMap> {\n emit<K extends keyof TEventDetailMap>(\n ...args: TEventDetailMap[K] extends void\n ? [origin: EmitOrigin, type: K, options?: EmitOptions]\n : [origin: EmitOrigin, type: K, detail: TEventDetailMap[K], options?: EmitOptions]\n ): EmitReturn;\n}\n\nexport class DefaultEventEmitterDI<TEventDetailMap extends EventDetailMap>\n implements EventEmitterDI<TEventDetailMap>\n{\n emit<K extends keyof TEventDetailMap>(\n ...args: TEventDetailMap[K] extends void\n ? [origin: EmitOrigin, type: K, options?: EmitOptions]\n : [origin: EmitOrigin, type: K, detail: TEventDetailMap[K], options?: EmitOptions]\n ): EmitReturn {\n const [origin, ...rest] = args;\n const [type, detail, options] = getBaseEmitArgs(...rest);\n return origin.$emit(type, detail, options);\n }\n}\n\nexport const EventEmitterDI = DI.createInterface<EventEmitterDI<EventDetailMap>>((x) =>\n x.singleton(DefaultEventEmitterDI)\n);\n\nexport const registerEmitter = <TEventDetailMap extends EventDetailMap>() => {\n return DI.createInterface<EventEmitterDI<TEventDetailMap>>((x) => x.aliasTo(EventEmitterDI));\n};\n","import {\n ConstructableTypedEventEmitter,\n EmitOptions,\n EmitReturn,\n EventDetailMap,\n getBaseEmitArgs,\n} from '../types';\n\nexport const EventEmitter = <TEventDetailMap extends EventDetailMap>(\n Base: ConstructableTypedEventEmitter\n) =>\n class extends Base {\n $emit<K extends keyof TEventDetailMap & string>(\n ...args: TEventDetailMap[K] extends void\n ? [type: K, options?: EmitOptions]\n : [type: K, detail: TEventDetailMap[K], options?: EmitOptions]\n ): EmitReturn {\n const [type, detail, options] = getBaseEmitArgs(...args);\n return super.$emit(type, detail, options);\n }\n };\n"],"sourceRoot":""}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["webpack://@genesislcap/foundation-events/./src/index.federated.ts"],"names":[],"mappings":"qIAAA,4B","file":"755.755.xxxxxxxxxxxxxxxxxxxx.js","sourcesContent":["import('./index');\n"],"sourceRoot":""}
@@ -1,2 +0,0 @@
1
- (self.webpackChunk_genesislcap_foundation_events=self.webpackChunk_genesislcap_foundation_events||[]).push([[755,179],{755:(e,n,s)=>{s.e(573).then(s.bind(s,573))}}]);
2
- //# sourceMappingURL=755.537dff5a23d468b98824bdef43b0cda0.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["webpack://@genesislcap/foundation-events/../node_modules/exenv-es6/dist/can-use-dom.js","webpack://@genesislcap/foundation-events/../node_modules/tabbable/dist/index.esm.js"],"names":["canUseDOM","window","document","createElement","candidateSelectors","candidateSelector","join","NoElement","Element","matches","prototype","msMatchesSelector","webkitMatchesSelector","getRootNode","element","ownerDocument","getTabindex","node","isScope","tabIndex","test","tagName","isContentEditable","isNaN","parseInt","getAttribute","isInput","isNonTabbableRadio","type","isRadio","name","radioSet","radioScope","form","queryRadios","querySelectorAll","CSS","escape","err","console","error","message","checked","nodes","i","length","getCheckedRadio","isTabbableRadio","isZeroArea","_node$getBoundingClie","getBoundingClientRect","width","height","isNodeMatchingSelectorFocusable","options","disabled","isHiddenInput","_ref","displayCheck","getShadowRoot","getComputedStyle","visibility","nodeUnderDetails","call","parentElement","nodeRootHost","host","nodeIsAttached","contains","originalNode","rootNode","shadowRoot","assignedSlot","getClientRects","isHidden","Array","slice","apply","children","some","child","isDetailsWithSummary","parentNode","item","isDisabledFromFieldset","isNodeMatchingSelectorTabbable","isTabbable","Error","focusableCandidateSelector","concat","isFocusable"],"mappings":"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","file":"856.856.xxxxxxxxxxxxxxxxxxxx.js","sourcesContent":["/**\n * Checks if the DOM is available to access and use\n */\nexport function canUseDOM() {\n return !!(typeof window !== \"undefined\" && window.document && window.document.createElement);\n}\n","/*!\n* tabbable 5.3.3\n* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE\n*/\nvar candidateSelectors = ['input', 'select', 'textarea', 'a[href]', 'button', '[tabindex]:not(slot)', 'audio[controls]', 'video[controls]', '[contenteditable]:not([contenteditable=\"false\"])', 'details>summary:first-of-type', 'details'];\nvar candidateSelector = /* #__PURE__ */candidateSelectors.join(',');\nvar NoElement = typeof Element === 'undefined';\nvar matches = NoElement ? function () {} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;\nvar getRootNode = !NoElement && Element.prototype.getRootNode ? function (element) {\n return element.getRootNode();\n} : function (element) {\n return element.ownerDocument;\n};\n/**\n * @param {Element} el container to check in\n * @param {boolean} includeContainer add container to check\n * @param {(node: Element) => boolean} filter filter candidates\n * @returns {Element[]}\n */\n\nvar getCandidates = function getCandidates(el, includeContainer, filter) {\n var candidates = Array.prototype.slice.apply(el.querySelectorAll(candidateSelector));\n\n if (includeContainer && matches.call(el, candidateSelector)) {\n candidates.unshift(el);\n }\n\n candidates = candidates.filter(filter);\n return candidates;\n};\n/**\n * @callback GetShadowRoot\n * @param {Element} element to check for shadow root\n * @returns {ShadowRoot|boolean} ShadowRoot if available or boolean indicating if a shadowRoot is attached but not available.\n */\n\n/**\n * @callback ShadowRootFilter\n * @param {Element} shadowHostNode the element which contains shadow content\n * @returns {boolean} true if a shadow root could potentially contain valid candidates.\n */\n\n/**\n * @typedef {Object} CandidatesScope\n * @property {Element} scope contains inner candidates\n * @property {Element[]} candidates\n */\n\n/**\n * @typedef {Object} IterativeOptions\n * @property {GetShadowRoot|boolean} getShadowRoot true if shadow support is enabled; falsy if not;\n * if a function, implies shadow support is enabled and either returns the shadow root of an element\n * or a boolean stating if it has an undisclosed shadow root\n * @property {(node: Element) => boolean} filter filter candidates\n * @property {boolean} flatten if true then result will flatten any CandidatesScope into the returned list\n * @property {ShadowRootFilter} shadowRootFilter filter shadow roots;\n */\n\n/**\n * @param {Element[]} elements list of element containers to match candidates from\n * @param {boolean} includeContainer add container list to check\n * @param {IterativeOptions} options\n * @returns {Array.<Element|CandidatesScope>}\n */\n\n\nvar getCandidatesIteratively = function getCandidatesIteratively(elements, includeContainer, options) {\n var candidates = [];\n var elementsToCheck = Array.from(elements);\n\n while (elementsToCheck.length) {\n var element = elementsToCheck.shift();\n\n if (element.tagName === 'SLOT') {\n // add shadow dom slot scope (slot itself cannot be focusable)\n var assigned = element.assignedElements();\n var content = assigned.length ? assigned : element.children;\n var nestedCandidates = getCandidatesIteratively(content, true, options);\n\n if (options.flatten) {\n candidates.push.apply(candidates, nestedCandidates);\n } else {\n candidates.push({\n scope: element,\n candidates: nestedCandidates\n });\n }\n } else {\n // check candidate element\n var validCandidate = matches.call(element, candidateSelector);\n\n if (validCandidate && options.filter(element) && (includeContainer || !elements.includes(element))) {\n candidates.push(element);\n } // iterate over shadow content if possible\n\n\n var shadowRoot = element.shadowRoot || // check for an undisclosed shadow\n typeof options.getShadowRoot === 'function' && options.getShadowRoot(element);\n var validShadowRoot = !options.shadowRootFilter || options.shadowRootFilter(element);\n\n if (shadowRoot && validShadowRoot) {\n // add shadow dom scope IIF a shadow root node was given; otherwise, an undisclosed\n // shadow exists, so look at light dom children as fallback BUT create a scope for any\n // child candidates found because they're likely slotted elements (elements that are\n // children of the web component element (which has the shadow), in the light dom, but\n // slotted somewhere _inside_ the undisclosed shadow) -- the scope is created below,\n // _after_ we return from this recursive call\n var _nestedCandidates = getCandidatesIteratively(shadowRoot === true ? element.children : shadowRoot.children, true, options);\n\n if (options.flatten) {\n candidates.push.apply(candidates, _nestedCandidates);\n } else {\n candidates.push({\n scope: element,\n candidates: _nestedCandidates\n });\n }\n } else {\n // there's not shadow so just dig into the element's (light dom) children\n // __without__ giving the element special scope treatment\n elementsToCheck.unshift.apply(elementsToCheck, element.children);\n }\n }\n }\n\n return candidates;\n};\n\nvar getTabindex = function getTabindex(node, isScope) {\n if (node.tabIndex < 0) {\n // in Chrome, <details/>, <audio controls/> and <video controls/> elements get a default\n // `tabIndex` of -1 when the 'tabindex' attribute isn't specified in the DOM,\n // yet they are still part of the regular tab order; in FF, they get a default\n // `tabIndex` of 0; since Chrome still puts those elements in the regular tab\n // order, consider their tab index to be 0.\n // Also browsers do not return `tabIndex` correctly for contentEditable nodes;\n // so if they don't have a tabindex attribute specifically set, assume it's 0.\n //\n // isScope is positive for custom element with shadow root or slot that by default\n // have tabIndex -1, but need to be sorted by document order in order for their\n // content to be inserted in the correct position\n if ((isScope || /^(AUDIO|VIDEO|DETAILS)$/.test(node.tagName) || node.isContentEditable) && isNaN(parseInt(node.getAttribute('tabindex'), 10))) {\n return 0;\n }\n }\n\n return node.tabIndex;\n};\n\nvar sortOrderedTabbables = function sortOrderedTabbables(a, b) {\n return a.tabIndex === b.tabIndex ? a.documentOrder - b.documentOrder : a.tabIndex - b.tabIndex;\n};\n\nvar isInput = function isInput(node) {\n return node.tagName === 'INPUT';\n};\n\nvar isHiddenInput = function isHiddenInput(node) {\n return isInput(node) && node.type === 'hidden';\n};\n\nvar isDetailsWithSummary = function isDetailsWithSummary(node) {\n var r = node.tagName === 'DETAILS' && Array.prototype.slice.apply(node.children).some(function (child) {\n return child.tagName === 'SUMMARY';\n });\n return r;\n};\n\nvar getCheckedRadio = function getCheckedRadio(nodes, form) {\n for (var i = 0; i < nodes.length; i++) {\n if (nodes[i].checked && nodes[i].form === form) {\n return nodes[i];\n }\n }\n};\n\nvar isTabbableRadio = function isTabbableRadio(node) {\n if (!node.name) {\n return true;\n }\n\n var radioScope = node.form || getRootNode(node);\n\n var queryRadios = function queryRadios(name) {\n return radioScope.querySelectorAll('input[type=\"radio\"][name=\"' + name + '\"]');\n };\n\n var radioSet;\n\n if (typeof window !== 'undefined' && typeof window.CSS !== 'undefined' && typeof window.CSS.escape === 'function') {\n radioSet = queryRadios(window.CSS.escape(node.name));\n } else {\n try {\n radioSet = queryRadios(node.name);\n } catch (err) {\n // eslint-disable-next-line no-console\n console.error('Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s', err.message);\n return false;\n }\n }\n\n var checked = getCheckedRadio(radioSet, node.form);\n return !checked || checked === node;\n};\n\nvar isRadio = function isRadio(node) {\n return isInput(node) && node.type === 'radio';\n};\n\nvar isNonTabbableRadio = function isNonTabbableRadio(node) {\n return isRadio(node) && !isTabbableRadio(node);\n};\n\nvar isZeroArea = function isZeroArea(node) {\n var _node$getBoundingClie = node.getBoundingClientRect(),\n width = _node$getBoundingClie.width,\n height = _node$getBoundingClie.height;\n\n return width === 0 && height === 0;\n};\n\nvar isHidden = function isHidden(node, _ref) {\n var displayCheck = _ref.displayCheck,\n getShadowRoot = _ref.getShadowRoot;\n\n // NOTE: visibility will be `undefined` if node is detached from the document\n // (see notes about this further down), which means we will consider it visible\n // (this is legacy behavior from a very long way back)\n // NOTE: we check this regardless of `displayCheck=\"none\"` because this is a\n // _visibility_ check, not a _display_ check\n if (getComputedStyle(node).visibility === 'hidden') {\n return true;\n }\n\n var isDirectSummary = matches.call(node, 'details>summary:first-of-type');\n var nodeUnderDetails = isDirectSummary ? node.parentElement : node;\n\n if (matches.call(nodeUnderDetails, 'details:not([open]) *')) {\n return true;\n } // The root node is the shadow root if the node is in a shadow DOM; some document otherwise\n // (but NOT _the_ document; see second 'If' comment below for more).\n // If rootNode is shadow root, it'll have a host, which is the element to which the shadow\n // is attached, and the one we need to check if it's in the document or not (because the\n // shadow, and all nodes it contains, is never considered in the document since shadows\n // behave like self-contained DOMs; but if the shadow's HOST, which is part of the document,\n // is hidden, or is not in the document itself but is detached, it will affect the shadow's\n // visibility, including all the nodes it contains). The host could be any normal node,\n // or a custom element (i.e. web component). Either way, that's the one that is considered\n // part of the document, not the shadow root, nor any of its children (i.e. the node being\n // tested).\n // If rootNode is not a shadow root, it won't have a host, and so rootNode should be the\n // document (per the docs) and while it's a Document-type object, that document does not\n // appear to be the same as the node's `ownerDocument` for some reason, so it's safer\n // to ignore the rootNode at this point, and use `node.ownerDocument`. Otherwise,\n // using `rootNode.contains(node)` will _always_ be true we'll get false-positives when\n // node is actually detached.\n\n\n var nodeRootHost = getRootNode(node).host;\n var nodeIsAttached = (nodeRootHost === null || nodeRootHost === void 0 ? void 0 : nodeRootHost.ownerDocument.contains(nodeRootHost)) || node.ownerDocument.contains(node);\n\n if (!displayCheck || displayCheck === 'full') {\n if (typeof getShadowRoot === 'function') {\n // figure out if we should consider the node to be in an undisclosed shadow and use the\n // 'non-zero-area' fallback\n var originalNode = node;\n\n while (node) {\n var parentElement = node.parentElement;\n var rootNode = getRootNode(node);\n\n if (parentElement && !parentElement.shadowRoot && getShadowRoot(parentElement) === true // check if there's an undisclosed shadow\n ) {\n // node has an undisclosed shadow which means we can only treat it as a black box, so we\n // fall back to a non-zero-area test\n return isZeroArea(node);\n } else if (node.assignedSlot) {\n // iterate up slot\n node = node.assignedSlot;\n } else if (!parentElement && rootNode !== node.ownerDocument) {\n // cross shadow boundary\n node = rootNode.host;\n } else {\n // iterate up normal dom\n node = parentElement;\n }\n }\n\n node = originalNode;\n } // else, `getShadowRoot` might be true, but all that does is enable shadow DOM support\n // (i.e. it does not also presume that all nodes might have undisclosed shadows); or\n // it might be a falsy value, which means shadow DOM support is disabled\n // Since we didn't find it sitting in an undisclosed shadow (or shadows are disabled)\n // now we can just test to see if it would normally be visible or not, provided it's\n // attached to the main document.\n // NOTE: We must consider case where node is inside a shadow DOM and given directly to\n // `isTabbable()` or `isFocusable()` -- regardless of `getShadowRoot` option setting.\n\n\n if (nodeIsAttached) {\n // this works wherever the node is: if there's at least one client rect, it's\n // somehow displayed; it also covers the CSS 'display: contents' case where the\n // node itself is hidden in place of its contents; and there's no need to search\n // up the hierarchy either\n return !node.getClientRects().length;\n } // Else, the node isn't attached to the document, which means the `getClientRects()`\n // API will __always__ return zero rects (this can happen, for example, if React\n // is used to render nodes onto a detached tree, as confirmed in this thread:\n // https://github.com/facebook/react/issues/9117#issuecomment-284228870)\n //\n // It also means that even window.getComputedStyle(node).display will return `undefined`\n // because styles are only computed for nodes that are in the document.\n //\n // NOTE: THIS HAS BEEN THE CASE FOR YEARS. It is not new, nor is it caused by tabbable\n // somehow. Though it was never stated officially, anyone who has ever used tabbable\n // APIs on nodes in detached containers has actually implicitly used tabbable in what\n // was later (as of v5.2.0 on Apr 9, 2021) called `displayCheck=\"none\"` mode -- essentially\n // considering __everything__ to be visible because of the innability to determine styles.\n\n } else if (displayCheck === 'non-zero-area') {\n // NOTE: Even though this tests that the node's client rect is non-zero to determine\n // whether it's displayed, and that a detached node will __always__ have a zero-area\n // client rect, we don't special-case for whether the node is attached or not. In\n // this mode, we do want to consider nodes that have a zero area to be hidden at all\n // times, and that includes attached or not.\n return isZeroArea(node);\n } // visible, as far as we can tell, or per current `displayCheck` mode\n\n\n return false;\n}; // form fields (nested) inside a disabled fieldset are not focusable/tabbable\n// unless they are in the _first_ <legend> element of the top-most disabled\n// fieldset\n\n\nvar isDisabledFromFieldset = function isDisabledFromFieldset(node) {\n if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(node.tagName)) {\n var parentNode = node.parentElement; // check if `node` is contained in a disabled <fieldset>\n\n while (parentNode) {\n if (parentNode.tagName === 'FIELDSET' && parentNode.disabled) {\n // look for the first <legend> among the children of the disabled <fieldset>\n for (var i = 0; i < parentNode.children.length; i++) {\n var child = parentNode.children.item(i); // when the first <legend> (in document order) is found\n\n if (child.tagName === 'LEGEND') {\n // if its parent <fieldset> is not nested in another disabled <fieldset>,\n // return whether `node` is a descendant of its first <legend>\n return matches.call(parentNode, 'fieldset[disabled] *') ? true : !child.contains(node);\n }\n } // the disabled <fieldset> containing `node` has no <legend>\n\n\n return true;\n }\n\n parentNode = parentNode.parentElement;\n }\n } // else, node's tabbable/focusable state should not be affected by a fieldset's\n // enabled/disabled state\n\n\n return false;\n};\n\nvar isNodeMatchingSelectorFocusable = function isNodeMatchingSelectorFocusable(options, node) {\n if (node.disabled || isHiddenInput(node) || isHidden(node, options) || // For a details element with a summary, the summary element gets the focus\n isDetailsWithSummary(node) || isDisabledFromFieldset(node)) {\n return false;\n }\n\n return true;\n};\n\nvar isNodeMatchingSelectorTabbable = function isNodeMatchingSelectorTabbable(options, node) {\n if (isNonTabbableRadio(node) || getTabindex(node) < 0 || !isNodeMatchingSelectorFocusable(options, node)) {\n return false;\n }\n\n return true;\n};\n\nvar isValidShadowRootTabbable = function isValidShadowRootTabbable(shadowHostNode) {\n var tabIndex = parseInt(shadowHostNode.getAttribute('tabindex'), 10);\n\n if (isNaN(tabIndex) || tabIndex >= 0) {\n return true;\n } // If a custom element has an explicit negative tabindex,\n // browsers will not allow tab targeting said element's children.\n\n\n return false;\n};\n/**\n * @param {Array.<Element|CandidatesScope>} candidates\n * @returns Element[]\n */\n\n\nvar sortByOrder = function sortByOrder(candidates) {\n var regularTabbables = [];\n var orderedTabbables = [];\n candidates.forEach(function (item, i) {\n var isScope = !!item.scope;\n var element = isScope ? item.scope : item;\n var candidateTabindex = getTabindex(element, isScope);\n var elements = isScope ? sortByOrder(item.candidates) : element;\n\n if (candidateTabindex === 0) {\n isScope ? regularTabbables.push.apply(regularTabbables, elements) : regularTabbables.push(element);\n } else {\n orderedTabbables.push({\n documentOrder: i,\n tabIndex: candidateTabindex,\n item: item,\n isScope: isScope,\n content: elements\n });\n }\n });\n return orderedTabbables.sort(sortOrderedTabbables).reduce(function (acc, sortable) {\n sortable.isScope ? acc.push.apply(acc, sortable.content) : acc.push(sortable.content);\n return acc;\n }, []).concat(regularTabbables);\n};\n\nvar tabbable = function tabbable(el, options) {\n options = options || {};\n var candidates;\n\n if (options.getShadowRoot) {\n candidates = getCandidatesIteratively([el], options.includeContainer, {\n filter: isNodeMatchingSelectorTabbable.bind(null, options),\n flatten: false,\n getShadowRoot: options.getShadowRoot,\n shadowRootFilter: isValidShadowRootTabbable\n });\n } else {\n candidates = getCandidates(el, options.includeContainer, isNodeMatchingSelectorTabbable.bind(null, options));\n }\n\n return sortByOrder(candidates);\n};\n\nvar focusable = function focusable(el, options) {\n options = options || {};\n var candidates;\n\n if (options.getShadowRoot) {\n candidates = getCandidatesIteratively([el], options.includeContainer, {\n filter: isNodeMatchingSelectorFocusable.bind(null, options),\n flatten: true,\n getShadowRoot: options.getShadowRoot\n });\n } else {\n candidates = getCandidates(el, options.includeContainer, isNodeMatchingSelectorFocusable.bind(null, options));\n }\n\n return candidates;\n};\n\nvar isTabbable = function isTabbable(node, options) {\n options = options || {};\n\n if (!node) {\n throw new Error('No node provided');\n }\n\n if (matches.call(node, candidateSelector) === false) {\n return false;\n }\n\n return isNodeMatchingSelectorTabbable(options, node);\n};\n\nvar focusableCandidateSelector = /* #__PURE__ */candidateSelectors.concat('iframe').join(',');\n\nvar isFocusable = function isFocusable(node, options) {\n options = options || {};\n\n if (!node) {\n throw new Error('No node provided');\n }\n\n if (matches.call(node, focusableCandidateSelector) === false) {\n return false;\n }\n\n return isNodeMatchingSelectorFocusable(options, node);\n};\n\nexport { focusable, isFocusable, isTabbable, tabbable };\n//# sourceMappingURL=index.esm.js.map\n"],"sourceRoot":""}
@@ -1,3 +0,0 @@
1
- /*! For license information please see 856.856.72fdef7363783c3bf498.js.LICENSE.txt */
2
- (self.webpackChunk_genesislcap_foundation_events=self.webpackChunk_genesislcap_foundation_events||[]).push([[856],{861:(e,t,n)=>{"use strict";function o(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}n.d(t,{N:()=>o})},642:(e,t,n)=>{"use strict";n.d(t,{EB:()=>w,Wq:()=>m});var o=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],r=o.join(","),i="undefined"==typeof Element,a=i?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,u=!i&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument},c=function(e,t){return e.tabIndex<0&&(t||/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||e.isContentEditable)&&isNaN(parseInt(e.getAttribute("tabindex"),10))?0:e.tabIndex},l=function(e){return"INPUT"===e.tagName},d=function(e){return function(e){return l(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||u(e),o=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=o(window.CSS.escape(e.name));else try{t=o(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var r=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!r||r===e}(e)},f=function(e){var t=e.getBoundingClientRect(),n=t.width,o=t.height;return 0===n&&0===o},s=function(e,t){return!(t.disabled||function(e){return l(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,o=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var r=a.call(e,"details>summary:first-of-type")?e.parentElement:e;if(a.call(r,"details:not([open]) *"))return!0;var i=u(e).host,c=(null==i?void 0:i.ownerDocument.contains(i))||e.ownerDocument.contains(e);if(n&&"full"!==n){if("non-zero-area"===n)return f(e)}else{if("function"==typeof o){for(var l=e;e;){var d=e.parentElement,s=u(e);if(d&&!d.shadowRoot&&!0===o(d))return f(e);e=e.assignedSlot?e.assignedSlot:d||s===e.ownerDocument?d:s.host}e=l}if(c)return!e.getClientRects().length}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var o=t.children.item(n);if("LEGEND"===o.tagName)return!!a.call(t,"fieldset[disabled] *")||!o.contains(e)}return!0}t=t.parentElement}return!1}(t))},p=function(e,t){return!(d(t)||c(t)<0||!s(e,t))},m=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==a.call(e,r)&&p(t,e)},h=o.concat("iframe").join(","),w=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==a.call(e,h)&&s(t,e)}}}]);
3
- //# sourceMappingURL=856.3e4045c8104c25006236673f533997ff.js.map
@@ -1,4 +0,0 @@
1
- /*!
2
- * tabbable 5.3.3
3
- * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
4
- */
@@ -1 +0,0 @@
1
- {"dependencies":[{"name":"@microsoft/fast-element","version":"1.11"},{"name":"@microsoft/fast-foundation","version":"2.47"},{"name":"tslib","version":"2.5"}],"devDependencies":[{"name":"@module-federation/dashboard-plugin","version":"2.3"},{"name":"@playwright/test","version":"1.31"},{"name":"@rollup/plugin-commonjs","version":"21.1"},{"name":"@rollup/plugin-node-resolve","version":"13.3"},{"name":"@rollup/plugin-typescript","version":"8.5"},{"name":"analytics","version":"0.8"},{"name":"c8","version":"7.13"},{"name":"camel-case","version":"4.1"},{"name":"clean-webpack-plugin","version":"4.0"},{"name":"cross-env","version":"7.0"},{"name":"csp-html-webpack-plugin","version":"5.1"},{"name":"css-loader","version":"6.7"},{"name":"cssnano","version":"5.1"},{"name":"esm","version":"3.2"},{"name":"file-loader","version":"6.2"},{"name":"html-webpack-plugin","version":"5.5"},{"name":"jsdom","version":"19.0"},{"name":"mini-css-extract-plugin","version":"2.7"},{"name":"playwright-test","version":"7.4"},{"name":"portfinder-sync","version":"0.0"},{"name":"postcss","version":"8.4"},{"name":"postcss-import","version":"14.1"},{"name":"postcss-loader","version":"6.2"},{"name":"postcss-preset-env","version":"7.8"},{"name":"rollup","version":"2.79"},{"name":"rollup-plugin-commonjs","version":"10.1"},{"name":"rollup-plugin-filesize","version":"9.1"},{"name":"rollup-plugin-node-resolve","version":"5.2"},{"name":"rollup-plugin-terser","version":"7.0"},{"name":"terser-webpack-plugin","version":"5.3"},{"name":"to-string-loader","version":"1.2"},{"name":"ts-loader","version":"9.3"},{"name":"tsconfig-paths-webpack-plugin","version":"3.5"},{"name":"tsm","version":"2.3"},{"name":"typescript","version":"4.9"},{"name":"uvu","version":"0.5"},{"name":"watchlist","version":"0.3"},{"name":"webpack","version":"5.45"},{"name":"webpack-bundle-analyzer","version":"4.8"},{"name":"webpack-cli","version":"4.10"},{"name":"webpack-dev-server","version":"4.11"},{"name":"webpack-merge","version":"5.8"}],"optionalDependencies":[],"id":"foundationEvents","name":"foundationEvents","remote":"","metadata":{},"overrides":[{"id":"@microsoft/fast-element","name":"@microsoft/fast-element","version":"1.11","location":"@microsoft/fast-element","applicationID":"foundationEvents"},{"id":"tslib","name":"tslib","version":"2.5","location":"tslib","applicationID":"foundationEvents"},{"id":"@microsoft/fast-foundation","name":"@microsoft/fast-foundation","version":"2.47","location":"@microsoft/fast-foundation","applicationID":"foundationEvents"}],"consumes":[],"modules":[{"id":"foundationEvents:index","name":"index","applicationID":"foundationEvents","requires":[],"file":"./src/index.federated.ts"}],"version":"1.0.0"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"eventEmitterDI.js","sourceRoot":"","sources":["../../../src/eventEmitter/eventEmitterDI.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,4BAA4B,CAAC;AAChD,OAAO,EAAuD,eAAe,EAAE,MAAM,UAAU,CAAC;AAiBhG,MAAM,OAAO,qBAAqB;IAGhC,IAAI,CACF,GAAG,IAEiF;QAEpF,MAAM,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;QAC/B,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,GAAG,eAAe,CAAC,GAAG,IAAI,CAAC,CAAC;QACzD,OAAO,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;IAC7C,CAAC;CACF;AAED,MAAM,CAAC,MAAM,cAAc,GAAG,EAAE,CAAC,eAAe,CAAiC,CAAC,CAAC,EAAE,EAAE,CACrF,CAAC,CAAC,SAAS,CAAC,qBAAqB,CAAC,CACnC,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,GAA2C,EAAE;IAC1E,OAAO,EAAE,CAAC,eAAe,CAAkC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC;AAC/F,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"eventEmitterMixin.js","sourceRoot":"","sources":["../../../src/eventEmitter/eventEmitterMixin.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,eAAe,GAChB,MAAM,UAAU,CAAC;AAElB,MAAM,CAAC,MAAM,YAAY,GAAG,CAC1B,IAAoC,EACpC,EAAE,CACF,KAAM,SAAQ,IAAI;IAChB,KAAK,CACH,GAAG,IAE6D;QAEhE,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,GAAG,eAAe,CAAC,GAAG,IAAI,CAAC,CAAC;QACzD,OAAO,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;IAC5C,CAAC;CACF,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/eventEmitter/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.federated.js","sourceRoot":"","sources":["../../src/index.federated.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,SAAS,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAiBA,MAAM,aAAa,GAAG,CAAC,SAA4B,EAAW,EAAE,CAC9D,CAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,cAAc,CAAC,SAAS,CAAC;KACpC,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,cAAc,CAAC,YAAY,CAAC,CAAA;KACvC,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,cAAc,CAAC,UAAU,CAAC,CAAA,CAAC;AAExC,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,GAAG,IAAe,EAAY,EAAE;IAC9D,IAAI,CAAC,IAAI,EAAE,eAAe,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IAC5C,IAAI,MAAM,GAAG,eAAe,CAAC;IAC7B,IAAI,aAAa,CAAC,eAAe,CAAC,EAAE;QAClC,OAAO,GAAG,eAAe,CAAC;QAC1B,MAAM,GAAG,SAAS,CAAC;KACpB;IACD,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;QAC5B,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAC;KAC7D;IACD,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;AACjC,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,CAAsB,GAAqB,EAAE,EAAE,CACxE,GAAG,CAAC,KAAkC,CAAC;AAIzC,MAAM,CAAC,MAAM,WAAW,GAAgB,CAAC,GAAqB,EAAE,EAAE,CAAE,GAAG,CAAC,KAAK,CAAC,MAAc,CAAC,KAAK,CAAC;AAEnG,MAAM,CAAC,MAAM,wBAAwB,GAAgB,CAAC,GAAqB,EAAE,EAAE,eAC7E,OAAA,MAAA,MAAC,GAAG,CAAC,KAAK,CAAC,MAAiB,0CAAE,mBAAmB,0CAAE,KAAK,CAAA,EAAA,CAAC;AAe3D,MAAM,mBAAmB,GACvB,CAAyC,WAAwB,EAAE,EAAE,CACrE,CAAkD,IAAO,EAAE,OAAqB,EAAW,EAAE,CAC7F,CAAC,CAAc,EAAE,CAAmB,EAAE,EAAE,CACtC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;AAEnD,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAA2C,EAAE,CAC7E,mBAAmB,CAAkB,WAAW,CAAC,CAAC;AAEpD,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAA2C,EAAE,CAC9E,mBAAmB,CAAkB,wBAAwB,CAAC,CAAC"}
package/dist/favicon.ico DELETED
Binary file
@@ -1 +0,0 @@
1
- !function(e){"use strict";const t=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof global)return global;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;try{return new Function("return this")()}catch(e){return{}}}();void 0===t.trustedTypes&&(t.trustedTypes={createPolicy:(e,t)=>t});const s={configurable:!1,enumerable:!1,writable:!1};void 0===t.FAST&&Reflect.defineProperty(t,"FAST",Object.assign({value:Object.create(null)},s));const n=t.FAST;if(void 0===n.getById){const e=Object.create(null);Reflect.defineProperty(n,"getById",Object.assign({value(t,s){let n=e[t];return void 0===n&&(n=s?e[t]=s():null),n}},s))}const r=Object.freeze([]);function i(){const e=new WeakMap;return function(t){let s=e.get(t);if(void 0===s){let n=Reflect.getPrototypeOf(t);for(;void 0===s&&null!==n;)s=e.get(n),n=Reflect.getPrototypeOf(n);s=void 0===s?[]:s.slice(0),e.set(t,s)}return s}}const o=t.FAST.getById(1,(()=>{const e=[],s=[];function n(){if(s.length)throw s.shift()}function r(e){try{e.call()}catch(e){s.push(e),setTimeout(n,0)}}function i(){let t=0;for(;t<e.length;)if(r(e[t]),t++,t>1024){for(let s=0,n=e.length-t;s<n;s++)e[s]=e[s+t];e.length-=t,t=0}e.length=0}return Object.freeze({enqueue:function(s){e.length<1&&t.requestAnimationFrame(i),e.push(s)},process:i})})),l=t.trustedTypes.createPolicy("fast-html",{createHTML:e=>e});let a=l;const c=`fast-${Math.random().toString(36).substring(2,8)}`,h=`${c}{`,u=`}${c}`,d=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(e){if(a!==l)throw new Error("The HTML policy can only be set once.");a=e},createHTML:e=>a.createHTML(e),isMarker:e=>e&&8===e.nodeType&&e.data.startsWith(c),extractDirectiveIndexFromMarker:e=>parseInt(e.data.replace(`${c}:`,"")),createInterpolationPlaceholder:e=>`${h}${e}${u}`,createCustomAttributePlaceholder(e,t){return`${e}="${this.createInterpolationPlaceholder(t)}"`},createBlockPlaceholder:e=>`\x3c!--${c}:${e}--\x3e`,queueUpdate:o.enqueue,processUpdates:o.process,nextUpdate:()=>new Promise(o.enqueue),setAttribute(e,t,s){null==s?e.removeAttribute(t):e.setAttribute(t,s)},setBooleanAttribute(e,t,s){s?e.setAttribute(t,""):e.removeAttribute(t)},removeChildNodes(e){for(let t=e.firstChild;null!==t;t=e.firstChild)e.removeChild(t)},createTemplateWalker:e=>document.createTreeWalker(e,133,null,!1)});class f{constructor(e,t){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.source=e,this.sub1=t}has(e){return void 0===this.spillover?this.sub1===e||this.sub2===e:-1!==this.spillover.indexOf(e)}subscribe(e){const t=this.spillover;if(void 0===t){if(this.has(e))return;if(void 0===this.sub1)return void(this.sub1=e);if(void 0===this.sub2)return void(this.sub2=e);this.spillover=[this.sub1,this.sub2,e],this.sub1=void 0,this.sub2=void 0}else{-1===t.indexOf(e)&&t.push(e)}}unsubscribe(e){const t=this.spillover;if(void 0===t)this.sub1===e?this.sub1=void 0:this.sub2===e&&(this.sub2=void 0);else{const s=t.indexOf(e);-1!==s&&t.splice(s,1)}}notify(e){const t=this.spillover,s=this.source;if(void 0===t){const t=this.sub1,n=this.sub2;void 0!==t&&t.handleChange(s,e),void 0!==n&&n.handleChange(s,e)}else for(let n=0,r=t.length;n<r;++n)t[n].handleChange(s,e)}}class g{constructor(e){this.subscribers={},this.sourceSubscribers=null,this.source=e}notify(e){var t;const s=this.subscribers[e];void 0!==s&&s.notify(e),null===(t=this.sourceSubscribers)||void 0===t||t.notify(e)}subscribe(e,t){var s;if(t){let s=this.subscribers[t];void 0===s&&(this.subscribers[t]=s=new f(this.source)),s.subscribe(e)}else this.sourceSubscribers=null!==(s=this.sourceSubscribers)&&void 0!==s?s:new f(this.source),this.sourceSubscribers.subscribe(e)}unsubscribe(e,t){var s;if(t){const s=this.subscribers[t];void 0!==s&&s.unsubscribe(e)}else null===(s=this.sourceSubscribers)||void 0===s||s.unsubscribe(e)}}const p=n.getById(2,(()=>{const e=/(:|&&|\|\||if)/,t=new WeakMap,s=d.queueUpdate;let n,r=e=>{throw new Error("Must call enableArrayObservation before observing arrays.")};function o(e){let s=e.$fastController||t.get(e);return void 0===s&&(Array.isArray(e)?s=r(e):t.set(e,s=new g(e))),s}const l=i();class a{constructor(e){this.name=e,this.field=`_${e}`,this.callback=`${e}Changed`}getValue(e){return void 0!==n&&n.watch(e,this.name),e[this.field]}setValue(e,t){const s=this.field,n=e[s];if(n!==t){e[s]=t;const r=e[this.callback];"function"==typeof r&&r.call(e,n,t),o(e).notify(this.name)}}}class c extends f{constructor(e,t,s=!1){super(e,t),this.binding=e,this.isVolatileBinding=s,this.needsRefresh=!0,this.needsQueue=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}observe(e,t){this.needsRefresh&&null!==this.last&&this.disconnect();const s=n;n=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;const r=this.binding(e,t);return n=s,r}disconnect(){if(null!==this.last){let e=this.first;for(;void 0!==e;)e.notifier.unsubscribe(this,e.propertyName),e=e.next;this.last=null,this.needsRefresh=this.needsQueue=!0}}watch(e,t){const s=this.last,r=o(e),i=null===s?this.first:{};if(i.propertySource=e,i.propertyName=t,i.notifier=r,r.subscribe(this,t),null!==s){if(!this.needsRefresh){let t;n=void 0,t=s.propertySource[s.propertyName],n=this,e===t&&(this.needsRefresh=!0)}s.next=i}this.last=i}handleChange(){this.needsQueue&&(this.needsQueue=!1,s(this))}call(){null!==this.last&&(this.needsQueue=!0,this.notify(this))}records(){let e=this.first;return{next:()=>{const t=e;return void 0===t?{value:void 0,done:!0}:(e=e.next,{value:t,done:!1})},[Symbol.iterator]:function(){return this}}}}return Object.freeze({setArrayObserverFactory(e){r=e},getNotifier:o,track(e,t){void 0!==n&&n.watch(e,t)},trackVolatile(){void 0!==n&&(n.needsRefresh=!0)},notify(e,t){o(e).notify(t)},defineProperty(e,t){"string"==typeof t&&(t=new a(t)),l(e).push(t),Reflect.defineProperty(e,t.name,{enumerable:!0,get:function(){return t.getValue(this)},set:function(e){t.setValue(this,e)}})},getAccessors:l,binding(e,t,s=this.isVolatileBinding(e)){return new c(e,t,s)},isVolatileBinding:t=>e.test(t.toString())})})),y=n.getById(3,(()=>{let e=null;return{get:()=>e,set(t){e=t}}}));class v{constructor(){this.index=0,this.length=0,this.parent=null,this.parentContext=null}get event(){return y.get()}get isEven(){return this.index%2==0}get isOdd(){return this.index%2!=0}get isFirst(){return 0===this.index}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}static setEvent(e){y.set(e)}}p.defineProperty(v.prototype,"index"),p.defineProperty(v.prototype,"length");const b=Object.seal(new v);class m{constructor(){this.targets=new WeakSet}addStylesTo(e){this.targets.add(e)}removeStylesFrom(e){this.targets.delete(e)}isAttachedTo(e){return this.targets.has(e)}withBehaviors(...e){return this.behaviors=null===this.behaviors?e:this.behaviors.concat(e),this}}function w(e){return e.map((e=>e instanceof m?w(e.styles):[e])).reduce(((e,t)=>e.concat(t)),[])}function C(e){return e.map((e=>e instanceof m?e.behaviors:null)).reduce(((e,t)=>null===t?e:(null===e&&(e=[]),e.concat(t))),null)}m.create=(()=>{if(d.supportsAdoptedStyleSheets){const e=new Map;return t=>new S(t,e)}return e=>new O(e)})();class S extends m{constructor(e,t){super(),this.styles=e,this.styleSheetCache=t,this._styleSheets=void 0,this.behaviors=C(e)}get styleSheets(){if(void 0===this._styleSheets){const e=this.styles,t=this.styleSheetCache;this._styleSheets=w(e).map((e=>{if(e instanceof CSSStyleSheet)return e;let s=t.get(e);return void 0===s&&(s=new CSSStyleSheet,s.replaceSync(e),t.set(e,s)),s}))}return this._styleSheets}addStylesTo(e){e.adoptedStyleSheets=[...e.adoptedStyleSheets,...this.styleSheets],super.addStylesTo(e)}removeStylesFrom(e){const t=this.styleSheets;e.adoptedStyleSheets=e.adoptedStyleSheets.filter((e=>-1===t.indexOf(e))),super.removeStylesFrom(e)}}let A=0;class O extends m{constructor(e){super(),this.styles=e,this.behaviors=null,this.behaviors=C(e),this.styleSheets=w(e),this.styleClass="fast-style-class-"+ ++A}addStylesTo(e){const t=this.styleSheets,s=this.styleClass;e=this.normalizeTarget(e);for(let n=0;n<t.length;n++){const r=document.createElement("style");r.innerHTML=t[n],r.className=s,e.append(r)}super.addStylesTo(e)}removeStylesFrom(e){const t=(e=this.normalizeTarget(e)).querySelectorAll(`.${this.styleClass}`);for(let s=0,n=t.length;s<n;++s)e.removeChild(t[s]);super.removeStylesFrom(e)}isAttachedTo(e){return super.isAttachedTo(this.normalizeTarget(e))}normalizeTarget(e){return e===document?document.body:e}}const T=Object.freeze({locate:i()}),R={toView:e=>e?"true":"false",fromView:e=>null!=e&&"false"!==e&&!1!==e&&0!==e};class ${constructor(e,t,s=t.toLowerCase(),n="reflect",r){this.guards=new Set,this.Owner=e,this.name=t,this.attribute=s,this.mode=n,this.converter=r,this.fieldName=`_${t}`,this.callbackName=`${t}Changed`,this.hasCallback=this.callbackName in e.prototype,"boolean"===n&&void 0===r&&(this.converter=R)}setValue(e,t){const s=e[this.fieldName],n=this.converter;void 0!==n&&(t=n.fromView(t)),s!==t&&(e[this.fieldName]=t,this.tryReflectToAttribute(e),this.hasCallback&&e[this.callbackName](s,t),e.$fastController.notify(this.name))}getValue(e){return p.track(e,this.name),e[this.fieldName]}onAttributeChangedCallback(e,t){this.guards.has(e)||(this.guards.add(e),this.setValue(e,t),this.guards.delete(e))}tryReflectToAttribute(e){const t=this.mode,s=this.guards;s.has(e)||"fromView"===t||d.queueUpdate((()=>{s.add(e);const n=e[this.fieldName];switch(t){case"reflect":const t=this.converter;d.setAttribute(e,this.attribute,void 0!==t?t.toView(n):n);break;case"boolean":d.setBooleanAttribute(e,this.attribute,n)}s.delete(e)}))}static collect(e,...t){const s=[];t.push(T.locate(e));for(let n=0,r=t.length;n<r;++n){const r=t[n];if(void 0!==r)for(let t=0,n=r.length;t<n;++t){const n=r[t];"string"==typeof n?s.push(new $(e,n)):s.push(new $(e,n.property,n.attribute,n.mode,n.converter))}}return s}}const k={mode:"open"},E={},j=n.getById(4,(()=>{const e=new Map;return Object.freeze({register:t=>!e.has(t.type)&&(e.set(t.type,t),!0),getByType:t=>e.get(t)})}));class _{constructor(e,t=e.definition){"string"==typeof t&&(t={name:t}),this.type=e,this.name=t.name,this.template=t.template;const s=$.collect(e,t.attributes),n=new Array(s.length),r={},i={};for(let e=0,t=s.length;e<t;++e){const t=s[e];n[e]=t.attribute,r[t.name]=t,i[t.attribute]=t}this.attributes=s,this.observedAttributes=n,this.propertyLookup=r,this.attributeLookup=i,this.shadowOptions=void 0===t.shadowOptions?k:null===t.shadowOptions?void 0:Object.assign(Object.assign({},k),t.shadowOptions),this.elementOptions=void 0===t.elementOptions?E:Object.assign(Object.assign({},E),t.elementOptions),this.styles=void 0===t.styles?void 0:Array.isArray(t.styles)?m.create(t.styles):t.styles instanceof m?t.styles:m.create([t.styles])}get isDefined(){return!!j.getByType(this.type)}define(e=customElements){const t=this.type;if(j.register(this)){const e=this.attributes,s=t.prototype;for(let t=0,n=e.length;t<n;++t)p.defineProperty(s,e[t]);Reflect.defineProperty(t,"observedAttributes",{value:this.observedAttributes,enumerable:!0})}return e.get(this.name)||e.define(this.name,t,this.elementOptions),this}}_.forType=j.getByType;const I=new WeakMap,P={bubbles:!0,composed:!0,cancelable:!0};function M(e){return e.shadowRoot||I.get(e)||null}class x extends g{constructor(e,t){super(e),this.boundObservables=null,this.behaviors=null,this.needsInitialization=!0,this._template=null,this._styles=null,this._isConnected=!1,this.$fastController=this,this.view=null,this.element=e,this.definition=t;const s=t.shadowOptions;if(void 0!==s){const t=e.attachShadow(s);"closed"===s.mode&&I.set(e,t)}const n=p.getAccessors(e);if(n.length>0){const t=this.boundObservables=Object.create(null);for(let s=0,r=n.length;s<r;++s){const r=n[s].name,i=e[r];void 0!==i&&(delete e[r],t[r]=i)}}}get isConnected(){return p.track(this,"isConnected"),this._isConnected}setIsConnected(e){this._isConnected=e,p.notify(this,"isConnected")}get template(){return this._template}set template(e){this._template!==e&&(this._template=e,this.needsInitialization||this.renderTemplate(e))}get styles(){return this._styles}set styles(e){this._styles!==e&&(null!==this._styles&&this.removeStyles(this._styles),this._styles=e,this.needsInitialization||null===e||this.addStyles(e))}addStyles(e){const t=M(this.element)||this.element.getRootNode();if(e instanceof HTMLStyleElement)t.append(e);else if(!e.isAttachedTo(t)){const s=e.behaviors;e.addStylesTo(t),null!==s&&this.addBehaviors(s)}}removeStyles(e){const t=M(this.element)||this.element.getRootNode();if(e instanceof HTMLStyleElement)t.removeChild(e);else if(e.isAttachedTo(t)){const s=e.behaviors;e.removeStylesFrom(t),null!==s&&this.removeBehaviors(s)}}addBehaviors(e){const t=this.behaviors||(this.behaviors=new Map),s=e.length,n=[];for(let r=0;r<s;++r){const s=e[r];t.has(s)?t.set(s,t.get(s)+1):(t.set(s,1),n.push(s))}if(this._isConnected){const e=this.element;for(let t=0;t<n.length;++t)n[t].bind(e,b)}}removeBehaviors(e,t=!1){const s=this.behaviors;if(null===s)return;const n=e.length,r=[];for(let i=0;i<n;++i){const n=e[i];if(s.has(n)){const e=s.get(n)-1;0===e||t?s.delete(n)&&r.push(n):s.set(n,e)}}if(this._isConnected){const e=this.element;for(let t=0;t<r.length;++t)r[t].unbind(e)}}onConnectedCallback(){if(this._isConnected)return;const e=this.element;this.needsInitialization?this.finishInitialization():null!==this.view&&this.view.bind(e,b);const t=this.behaviors;if(null!==t)for(const[s]of t)s.bind(e,b);this.setIsConnected(!0)}onDisconnectedCallback(){if(!this._isConnected)return;this.setIsConnected(!1);const e=this.view;null!==e&&e.unbind();const t=this.behaviors;if(null!==t){const e=this.element;for(const[s]of t)s.unbind(e)}}onAttributeChangedCallback(e,t,s){const n=this.definition.attributeLookup[e];void 0!==n&&n.onAttributeChangedCallback(this.element,s)}emit(e,t,s){return!!this._isConnected&&this.element.dispatchEvent(new CustomEvent(e,Object.assign(Object.assign({detail:t},P),s)))}finishInitialization(){const e=this.element,t=this.boundObservables;if(null!==t){const s=Object.keys(t);for(let n=0,r=s.length;n<r;++n){const r=s[n];e[r]=t[r]}this.boundObservables=null}const s=this.definition;null===this._template&&(this.element.resolveTemplate?this._template=this.element.resolveTemplate():s.template&&(this._template=s.template||null)),null!==this._template&&this.renderTemplate(this._template),null===this._styles&&(this.element.resolveStyles?this._styles=this.element.resolveStyles():s.styles&&(this._styles=s.styles||null)),null!==this._styles&&this.addStyles(this._styles),this.needsInitialization=!1}renderTemplate(e){const t=this.element,s=M(t)||t;null!==this.view?(this.view.dispose(),this.view=null):this.needsInitialization||d.removeChildNodes(s),e&&(this.view=e.render(t,s,t))}static forCustomElement(e){const t=e.$fastController;if(void 0!==t)return t;const s=_.forType(e.constructor);if(void 0===s)throw new Error("Missing FASTElement definition.");return e.$fastController=new x(e,s)}}function F(e){return class extends e{constructor(){super(),x.forCustomElement(this)}$emit(e,t,s){return this.$fastController.emit(e,t,s)}connectedCallback(){this.$fastController.onConnectedCallback()}disconnectedCallback(){this.$fastController.onDisconnectedCallback()}attributeChangedCallback(e,t,s){this.$fastController.onAttributeChangedCallback(e,t,s)}}}const N=Object.assign(F(HTMLElement),{from:e=>F(e),define:(e,t)=>new _(e,t).define().type}),B=new Map;"metadata"in Reflect||(Reflect.metadata=function(e,t){return function(s){Reflect.defineMetadata(e,t,s)}},Reflect.defineMetadata=function(e,t,s){let n=B.get(s);void 0===n&&B.set(s,n=new Map),n.set(e,t)},Reflect.getOwnMetadata=function(e,t){const s=B.get(t);if(void 0!==s)return s.get(e)});class D{constructor(e,t){this.container=e,this.key=t}instance(e){return this.registerResolver(0,e)}singleton(e){return this.registerResolver(1,e)}transient(e){return this.registerResolver(2,e)}callback(e){return this.registerResolver(3,e)}cachedCallback(e){return this.registerResolver(3,le(e))}aliasTo(e){return this.registerResolver(5,e)}registerResolver(e,t){const{container:s,key:n}=this;return this.container=this.key=void 0,s.registerResolver(n,new G(n,e,t))}}function z(e){const t=e.slice(),s=Object.keys(e),n=s.length;let r;for(let i=0;i<n;++i)r=s[i],pe(r)||(t[r]=e[r]);return t}const L=Object.freeze({none(e){throw Error(`${e.toString()} not registered, did you forget to add @singleton()?`)},singleton:e=>new G(e,1,e),transient:e=>new G(e,2,e)}),V=Object.freeze({default:Object.freeze({parentLocator:()=>null,responsibleForOwnerRequests:!1,defaultResolver:L.singleton})}),q=new Map;function U(e){return t=>Reflect.getOwnMetadata(e,t)}let W=null;const H=Object.freeze({createContainer:e=>new ie(null,Object.assign({},V.default,e)),findResponsibleContainer(e){const t=e.$$container$$;return t&&t.responsibleForOwnerRequests?t:H.findParentContainer(e)},findParentContainer(e){const t=new CustomEvent(ne,{bubbles:!0,composed:!0,cancelable:!0,detail:{container:void 0}});return e.dispatchEvent(t),t.detail.container||H.getOrCreateDOMContainer()},getOrCreateDOMContainer:(e,t)=>e?e.$$container$$||new ie(e,Object.assign({},V.default,t,{parentLocator:H.findParentContainer})):W||(W=new ie(null,Object.assign({},V.default,t,{parentLocator:()=>null}))),getDesignParamtypes:U("design:paramtypes"),getAnnotationParamtypes:U("di:paramtypes"),getOrCreateAnnotationParamTypes(e){let t=this.getAnnotationParamtypes(e);return void 0===t&&Reflect.defineMetadata("di:paramtypes",t=[],e),t},getDependencies(e){let t=q.get(e);if(void 0===t){const s=e.inject;if(void 0===s){const s=H.getDesignParamtypes(e),n=H.getAnnotationParamtypes(e);if(void 0===s)if(void 0===n){const s=Object.getPrototypeOf(e);t="function"==typeof s&&s!==Function.prototype?z(H.getDependencies(s)):[]}else t=z(n);else if(void 0===n)t=z(s);else{t=z(s);let e,r=n.length;for(let s=0;s<r;++s)e=n[s],void 0!==e&&(t[s]=e);const i=Object.keys(n);let o;r=i.length;for(let e=0;e<r;++e)o=i[e],pe(o)||(t[o]=n[o])}}else t=z(s);q.set(e,t)}return t},defineProperty(e,t,s,n=!1){const r=`$di_${t}`;Reflect.defineProperty(e,t,{get:function(){let e=this[r];if(void 0===e){const i=this instanceof HTMLElement?H.findResponsibleContainer(this):H.getOrCreateDOMContainer();if(e=i.get(s),this[r]=e,n&&this instanceof N){const n=this.$fastController,i=()=>{H.findResponsibleContainer(this).get(s)!==this[r]&&(this[r]=e,n.notify(t))};n.subscribe({handleChange:i},"isConnected")}}return e}})},createInterface(e,t){const s="function"==typeof e?e:t,n="string"==typeof e?e:e&&"friendlyName"in e&&e.friendlyName||ue,r="string"!=typeof e&&(e&&"respectConnection"in e&&e.respectConnection||!1),i=function(e,t,s){if(null==e||void 0!==new.target)throw new Error(`No registration for interface: '${i.friendlyName}'`);if(t)H.defineProperty(e,t,i,r);else{H.getOrCreateAnnotationParamTypes(e)[s]=i}};return i.$isInterface=!0,i.friendlyName=null==n?"(anonymous)":n,null!=s&&(i.register=function(e,t){return s(new D(e,null!=t?t:i))}),i.toString=function(){return`InterfaceSymbol<${i.friendlyName}>`},i},inject:(...e)=>function(t,s,n){if("number"==typeof n){const s=H.getOrCreateAnnotationParamTypes(t),r=e[0];void 0!==r&&(s[n]=r)}else if(s)H.defineProperty(t,s,e[0]);else{const s=n?H.getOrCreateAnnotationParamTypes(n.value):H.getOrCreateAnnotationParamTypes(t);let r;for(let t=0;t<e.length;++t)r=e[t],void 0!==r&&(s[t]=r)}},transient:e=>(e.register=function(t){return ae.transient(e,e).register(t)},e.registerInRequestor=!1,e),singleton:(e,t=K)=>(e.register=function(t){return ae.singleton(e,e).register(t)},e.registerInRequestor=t.scoped,e)}),Q=H.createInterface("Container");H.inject;const K={scoped:!1};class G{constructor(e,t,s){this.key=e,this.strategy=t,this.state=s,this.resolving=!1}get $isResolver(){return!0}register(e){return e.registerResolver(this.key,this)}resolve(e,t){switch(this.strategy){case 0:return this.state;case 1:if(this.resolving)throw new Error(`Cyclic dependency found: ${this.state.name}`);return this.resolving=!0,this.state=e.getFactory(this.state).construct(t),this.strategy=0,this.resolving=!1,this.state;case 2:{const s=e.getFactory(this.state);if(null===s)throw new Error(`Resolver for ${String(this.key)} returned a null factory`);return s.construct(t)}case 3:return this.state(e,t,this);case 4:return this.state[0].resolve(e,t);case 5:return t.get(this.state);default:throw new Error(`Invalid resolver strategy specified: ${this.strategy}.`)}}getFactory(e){var t,s,n;switch(this.strategy){case 1:case 2:return e.getFactory(this.state);case 5:return null!==(n=null===(s=null===(t=e.getResolver(this.state))||void 0===t?void 0:t.getFactory)||void 0===s?void 0:s.call(t,e))&&void 0!==n?n:null;default:return null}}}function J(e){return this.get(e)}function X(e,t){return t(e)}class Y{constructor(e,t){this.Type=e,this.dependencies=t,this.transformers=null}construct(e,t){let s;return s=void 0===t?new this.Type(...this.dependencies.map(J,e)):new this.Type(...this.dependencies.map(J,e),...t),null==this.transformers?s:this.transformers.reduce(X,s)}registerTransformer(e){(this.transformers||(this.transformers=[])).push(e)}}const Z={$isResolver:!0,resolve:(e,t)=>t};function ee(e){return"function"==typeof e.register}function te(e){return function(e){return ee(e)&&"boolean"==typeof e.registerInRequestor}(e)&&e.registerInRequestor}const se=new Set(["Array","ArrayBuffer","Boolean","DataView","Date","Error","EvalError","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Number","Object","Promise","RangeError","ReferenceError","RegExp","Set","SharedArrayBuffer","String","SyntaxError","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","URIError","WeakMap","WeakSet"]),ne="__DI_LOCATE_PARENT__",re=new Map;class ie{constructor(e,t){this.owner=e,this.config=t,this._parent=void 0,this.registerDepth=0,this.context=null,null!==e&&(e.$$container$$=this),this.resolvers=new Map,this.resolvers.set(Q,Z),e instanceof Node&&e.addEventListener(ne,(e=>{e.composedPath()[0]!==this.owner&&(e.detail.container=this,e.stopImmediatePropagation())}))}get parent(){return void 0===this._parent&&(this._parent=this.config.parentLocator(this.owner)),this._parent}get depth(){return null===this.parent?0:this.parent.depth+1}get responsibleForOwnerRequests(){return this.config.responsibleForOwnerRequests}registerWithContext(e,...t){return this.context=e,this.register(...t),this.context=null,this}register(...e){if(100==++this.registerDepth)throw new Error("Unable to autoregister dependency");let t,s,n,r,i;const o=this.context;for(let l=0,a=e.length;l<a;++l)if(t=e[l],de(t))if(ee(t))t.register(this,o);else if(void 0!==t.prototype)ae.singleton(t,t).register(this);else for(s=Object.keys(t),r=0,i=s.length;r<i;++r)n=t[s[r]],de(n)&&(ee(n)?n.register(this,o):this.register(n));return--this.registerDepth,this}registerResolver(e,t){ce(e);const s=this.resolvers,n=s.get(e);return null==n?s.set(e,t):n instanceof G&&4===n.strategy?n.state.push(t):s.set(e,new G(e,4,[n,t])),t}registerTransformer(e,t){const s=this.getResolver(e);if(null==s)return!1;if(s.getFactory){const e=s.getFactory(this);return null!=e&&(e.registerTransformer(t),!0)}return!1}getResolver(e,t=!0){if(ce(e),void 0!==e.resolve)return e;let s,n=this;for(;null!=n;){if(s=n.resolvers.get(e),null!=s)return s;if(null==n.parent){const s=te(e)?this:n;return t?this.jitRegister(e,s):null}n=n.parent}return null}has(e,t=!1){return!!this.resolvers.has(e)||!(!t||null==this.parent)&&this.parent.has(e,!0)}get(e){if(ce(e),e.$isResolver)return e.resolve(this,this);let t,s=this;for(;null!=s;){if(t=s.resolvers.get(e),null!=t)return t.resolve(s,this);if(null==s.parent){const n=te(e)?this:s;return t=this.jitRegister(e,n),t.resolve(s,this)}s=s.parent}throw new Error(`Unable to resolve key: ${e}`)}getAll(e,t=!1){ce(e);const s=this;let n,i=s;if(t){let t=r;for(;null!=i;)n=i.resolvers.get(e),null!=n&&(t=t.concat(he(n,i,s))),i=i.parent;return t}for(;null!=i;){if(n=i.resolvers.get(e),null!=n)return he(n,i,s);if(i=i.parent,null==i)return r}return r}getFactory(e){let t=re.get(e);if(void 0===t){if(fe(e))throw new Error(`${e.name} is a native function and therefore cannot be safely constructed by DI. If this is intentional, please use a callback or cachedCallback resolver.`);re.set(e,t=new Y(e,H.getDependencies(e)))}return t}registerFactory(e,t){re.set(e,t)}createChild(e){return new ie(null,Object.assign({},this.config,e,{parentLocator:()=>this}))}jitRegister(e,t){if("function"!=typeof e)throw new Error(`Attempted to jitRegister something that is not a constructor: '${e}'. Did you forget to register this dependency?`);if(se.has(e.name))throw new Error(`Attempted to jitRegister an intrinsic type: ${e.name}. Did you forget to add @inject(Key)`);if(ee(e)){const s=e.register(t);if(!(s instanceof Object)||null==s.resolve){const s=t.resolvers.get(e);if(null!=s)return s;throw new Error("A valid resolver was not returned from the static register method")}return s}if(e.$isInterface)throw new Error(`Attempted to jitRegister an interface: ${e.friendlyName}`);{const s=this.config.defaultResolver(e,t);return t.resolvers.set(e,s),s}}}const oe=new WeakMap;function le(e){return function(t,s,n){if(oe.has(n))return oe.get(n);const r=e(t,s,n);return oe.set(n,r),r}}const ae=Object.freeze({instance:(e,t)=>new G(e,0,t),singleton:(e,t)=>new G(e,1,t),transient:(e,t)=>new G(e,2,t),callback:(e,t)=>new G(e,3,t),cachedCallback:(e,t)=>new G(e,3,le(t)),aliasTo:(e,t)=>new G(t,5,e)});function ce(e){if(null==e)throw new Error("key/value cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?")}function he(e,t,s){if(e instanceof G&&4===e.strategy){const n=e.state;let r=n.length;const i=new Array(r);for(;r--;)i[r]=n[r].resolve(t,s);return i}return[e.resolve(t,s)]}const ue="(anonymous)";function de(e){return"object"==typeof e&&null!==e||"function"==typeof e}const fe=function(){const e=new WeakMap;let t=!1,s="",n=0;return function(r){return t=e.get(r),void 0===t&&(s=r.toString(),n=s.length,t=n>=29&&n<=100&&125===s.charCodeAt(n-1)&&s.charCodeAt(n-2)<=32&&93===s.charCodeAt(n-3)&&101===s.charCodeAt(n-4)&&100===s.charCodeAt(n-5)&&111===s.charCodeAt(n-6)&&99===s.charCodeAt(n-7)&&32===s.charCodeAt(n-8)&&101===s.charCodeAt(n-9)&&118===s.charCodeAt(n-10)&&105===s.charCodeAt(n-11)&&116===s.charCodeAt(n-12)&&97===s.charCodeAt(n-13)&&110===s.charCodeAt(n-14)&&88===s.charCodeAt(n-15),e.set(r,t)),t}}(),ge={};function pe(e){switch(typeof e){case"number":return e>=0&&(0|e)===e;case"string":{const t=ge[e];if(void 0!==t)return t;const s=e.length;if(0===s)return ge[e]=!1;let n=0;for(let t=0;t<s;++t)if(n=e.charCodeAt(t),0===t&&48===n&&s>1||n<48||n>57)return ge[e]=!1;return ge[e]=!0}default:return!1}}const ye=(...e)=>{let[t,s,n]=e,r=s;var i;if(((null==(i=s)?void 0:i.hasOwnProperty("bubbles"))||(null==i?void 0:i.hasOwnProperty("cancelable"))||(null==i?void 0:i.hasOwnProperty("composed")))&&(n=s,r=void 0),"string"!=typeof t)throw new Error("$emit event types must be typeof string.");return[t,r,n]},ve=e=>e.event.target.value,be=e=>{var t,s;return null===(s=null===(t=e.event.target)||void 0===t?void 0:t.firstSelectedOption)||void 0===s?void 0:s.value},me=e=>(t,s)=>(n,r)=>n.$emit(String(t),e(r),s);class we{emit(...e){const[t,...s]=e,[n,r,i]=ye(...s);return t.$emit(n,r,i)}}const Ce=H.createInterface((e=>e.singleton(we)));e.DefaultEventEmitterDI=we,e.EventEmitter=e=>class extends e{$emit(...e){const[t,s,n]=ye(...e);return super.$emit(t,s,n)}},e.EventEmitterDI=Ce,e.createInputEmitter=()=>me(ve),e.createSelectEmitter=()=>me(be),e.customEvent=e=>e.event,e.getBaseEmitArgs=ye,e.registerEmitter=()=>H.createInterface((e=>e.aliasTo(Ce))),e.targetFirstSelectedValue=be,e.targetValue=ve,Object.defineProperty(e,"__esModule",{value:!0})}({});