@openmrs/esm-extensions 5.0.2 → 5.0.3-pre.826

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.
@@ -1,17 +1,12 @@
1
- @openmrs/esm-extensions:build: cache hit, replaying output fd79a1daacc2a66e
2
- @openmrs/esm-extensions:build: asset openmrs-esm-extensions.js 20.7 KiB [emitted] [minimized] (name: main) 1 related asset
1
+ @openmrs/esm-extensions:build: cache hit, replaying output accb78377891e1fe
2
+ @openmrs/esm-extensions:build: asset openmrs-esm-extensions.js 19.5 KiB [emitted] [minimized] (name: main) 1 related asset
3
3
  @openmrs/esm-extensions:build: orphan modules 85.9 KiB [orphan] 94 modules
4
- @openmrs/esm-extensions:build: runtime modules 1.81 KiB 6 modules
5
- @openmrs/esm-extensions:build: built modules 89.8 KiB [built]
6
- @openmrs/esm-extensions:build:  cacheable modules 89.7 KiB
7
- @openmrs/esm-extensions:build:  modules by path ../../../node_modules/systemjs-webpack-interop/auto-public-path/*.js 935 bytes
8
- @openmrs/esm-extensions:build:  ../../../node_modules/systemjs-webpack-interop/auto-public-path/1.js 89 bytes [built] [code generated]
9
- @openmrs/esm-extensions:build:  ../../../node_modules/systemjs-webpack-interop/auto-public-path/auto-...(truncated) 846 bytes [built] [code generated]
10
- @openmrs/esm-extensions:build:  ./src/index.ts + 94 modules 86.4 KiB [built] [code generated]
11
- @openmrs/esm-extensions:build:  ../../../node_modules/systemjs-webpack-interop/public-path.js 2.36 KiB [built] [code generated]
4
+ @openmrs/esm-extensions:build: runtime modules 670 bytes 3 modules
5
+ @openmrs/esm-extensions:build: built modules 86.6 KiB [built]
12
6
  @openmrs/esm-extensions:build:  modules by path external "@openmrs/ 126 bytes
13
7
  @openmrs/esm-extensions:build:  external "@openmrs/esm-config" 42 bytes [built] [code generated]
14
8
  @openmrs/esm-extensions:build:  external "@openmrs/esm-state" 42 bytes [built] [code generated]
15
9
  @openmrs/esm-extensions:build:  external "@openmrs/esm-api" 42 bytes [built] [code generated]
10
+ @openmrs/esm-extensions:build:  ./src/index.ts + 94 modules 86.4 KiB [built] [code generated]
16
11
  @openmrs/esm-extensions:build:  external "single-spa" 42 bytes [built] [code generated]
17
- @openmrs/esm-extensions:build: webpack 5.88.0 compiled successfully in 5476 ms
12
+ @openmrs/esm-extensions:build: webpack 5.88.0 compiled successfully in 5984 ms
@@ -1,2 +1,2 @@
1
- System.register(["@openmrs/esm-config","@openmrs/esm-state","@openmrs/esm-api","single-spa"],(function(t,e){var n={},r={},o={},s={};return{setters:[function(t){n.configExtensionStore=t.configExtensionStore,n.getExtensionConfigFromStore=t.getExtensionConfigFromStore,n.getExtensionSlotConfig=t.getExtensionSlotConfig,n.getExtensionSlotConfigFromStore=t.getExtensionSlotConfigFromStore,n.getExtensionSlotsConfigStore=t.getExtensionSlotsConfigStore,n.getExtensionsConfigStore=t.getExtensionsConfigStore},function(t){r.createGlobalStore=t.createGlobalStore,r.getGlobalStore=t.getGlobalStore},function(t){o.getSessionStore=t.getSessionStore,o.userHasAccess=t.userHasAccess},function(t){s.mountRootParcel=t.mountRootParcel}],execute:function(){t((()=>{var t={968:(t,e,n)=>{const r=n(577).R;e.s=function(t){if(t||(t=1),!n.y.meta||!n.y.meta.url)throw console.error("__system_context__",n.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");n.p=r(n.y.meta.url,t)}},577:(t,e,n)=>{e.R=function(t,e){var n=document.createElement("a");n.href=t;for(var r="/"===n.pathname[0]?n.pathname:"/"+n.pathname,o=0,s=r.length;o!==e&&s>=0;)"/"===r[--s]&&o++;if(o!==e)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+e+") is greater than the number of directories ("+o+") in the URL path "+t);var i=r.slice(0,s+1);return n.protocol+"//"+n.host+i};Number.isInteger},766:t=>{"use strict";t.exports=o},824:t=>{"use strict";t.exports=n},685:t=>{"use strict";t.exports=r},645:t=>{"use strict";t.exports=s}},i={};function a(e){var n=i[e];if(void 0!==n)return n.exports;var r=i[e]={exports:{}};return t[e](r,r.exports,a),r.exports}a.y=e,a.d=(t,e)=>{for(var n in e)a.o(e,n)&&!a.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),a.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t;a.g.importScripts&&(t=a.g.location+"");var e=a.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&!t;)t=n[r--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=t})();var c={};return(0,a(968).s)(1),(()=>{"use strict";a.r(c),a.d(c,{attach:()=>we,checkStatus:()=>Fe,checkStatusFor:()=>De,detach:()=>Ee,detachAll:()=>Pe,extensionStore:()=>Ue,getAssignedExtensions:()=>Ie,getConnectedExtensions:()=>Ne,getExtensionInternalStore:()=>ie,getExtensionNameFromId:()=>je,getExtensionRegistration:()=>Oe,getExtensionRegistrationFrom:()=>Se,getExtensionStore:()=>ce,registerExtension:()=>xe,registerExtensionSlot:()=>ke,renderExtension:()=>Le,reset:()=>Ce,updateInternalExtensionStore:()=>ae});const t=function(t,e){return t===e||t!=t&&e!=e},e=function(e,n){for(var r=e.length;r--;)if(t(e[r][0],n))return r;return-1};var n=Array.prototype.splice;function r(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}r.prototype.clear=function(){this.__data__=[],this.size=0},r.prototype.delete=function(t){var r=this.__data__,o=e(r,t);return!(o<0||(o==r.length-1?r.pop():n.call(r,o,1),--this.size,0))},r.prototype.get=function(t){var n=this.__data__,r=e(n,t);return r<0?void 0:n[r][1]},r.prototype.has=function(t){return e(this.__data__,t)>-1},r.prototype.set=function(t,n){var r=this.__data__,o=e(r,t);return o<0?(++this.size,r.push([t,n])):r[o][1]=n,this};const o=r,s="object"==typeof global&&global&&global.Object===Object&&global;var i="object"==typeof self&&self&&self.Object===Object&&self;const u=s||i||Function("return this")(),l=u.Symbol;var f=Object.prototype,p=f.hasOwnProperty,b=f.toString,d=l?l.toStringTag:void 0;var g=Object.prototype.toString;var y=l?l.toStringTag:void 0;const h=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":y&&y in Object(t)?function(t){var e=p.call(t,d),n=t[d];try{t[d]=void 0;var r=!0}catch(t){}var o=b.call(t);return r&&(e?t[d]=n:delete t[d]),o}(t):function(t){return g.call(t)}(t)},v=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},m=function(t){if(!v(t))return!1;var e=h(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},_=u["__core-js_shared__"];var j,S=(j=/[^.]+$/.exec(_&&_.keys&&_.keys.IE_PROTO||""))?"Symbol(src)_1."+j:"";var O=Function.prototype.toString;const x=function(t){if(null!=t){try{return O.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var w=/^\[object .+?Constructor\]$/,E=Function.prototype,P=Object.prototype,A=E.toString,N=P.hasOwnProperty,z=RegExp("^"+A.call(N).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const I=function(t){return!(!v(t)||(e=t,S&&S in e))&&(m(t)?z:w).test(x(t));var e},k=function(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return I(n)?n:void 0},C=k(u,"Map"),F=k(Object,"create");var D=Object.prototype.hasOwnProperty;var M=Object.prototype.hasOwnProperty;function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}$.prototype.clear=function(){this.__data__=F?F(null):{},this.size=0},$.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},$.prototype.get=function(t){var e=this.__data__;if(F){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return D.call(e,t)?e[t]:void 0},$.prototype.has=function(t){var e=this.__data__;return F?void 0!==e[t]:M.call(e,t)},$.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=F&&void 0===e?"__lodash_hash_undefined__":e,this};const T=$,R=function(t,e){var n,r,o=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map};function B(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}B.prototype.clear=function(){this.size=0,this.__data__={hash:new T,map:new(C||o),string:new T}},B.prototype.delete=function(t){var e=R(this,t).delete(t);return this.size-=e?1:0,e},B.prototype.get=function(t){return R(this,t).get(t)},B.prototype.has=function(t){return R(this,t).has(t)},B.prototype.set=function(t,e){var n=R(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};const L=B;function G(t){var e=this.__data__=new o(t);this.size=e.size}G.prototype.clear=function(){this.__data__=new o,this.size=0},G.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},G.prototype.get=function(t){return this.__data__.get(t)},G.prototype.has=function(t){return this.__data__.has(t)},G.prototype.set=function(t,e){var n=this.__data__;if(n instanceof o){var r=n.__data__;if(!C||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new L(r)}return n.set(t,e),this.size=n.size,this};const U=G;function V(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new L;++e<n;)this.add(t[e])}V.prototype.add=V.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},V.prototype.has=function(t){return this.__data__.has(t)};const H=V,W=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1},q=function(t,e,n,r,o,s){var i=1&n,a=t.length,c=e.length;if(a!=c&&!(i&&c>a))return!1;var u=s.get(t),l=s.get(e);if(u&&l)return u==e&&l==t;var f=-1,p=!0,b=2&n?new H:void 0;for(s.set(t,e),s.set(e,t);++f<a;){var d=t[f],g=e[f];if(r)var y=i?r(g,d,f,e,t,s):r(d,g,f,t,e,s);if(void 0!==y){if(y)continue;p=!1;break}if(b){if(!W(e,(function(t,e){if(i=e,!b.has(i)&&(d===t||o(d,t,n,r,s)))return b.push(e);var i}))){p=!1;break}}else if(d!==g&&!o(d,g,n,r,s)){p=!1;break}}return s.delete(t),s.delete(e),p},J=u.Uint8Array,K=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n},Q=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var X=l?l.prototype:void 0,Y=X?X.valueOf:void 0;const Z=Array.isArray;var tt=Object.prototype.propertyIsEnumerable,et=Object.getOwnPropertySymbols;const nt=et?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,s=[];++n<r;){var i=t[n];e(i,n,t)&&(s[o++]=i)}return s}(et(t),(function(e){return tt.call(t,e)})))}:function(){return[]},rt=function(t){return null!=t&&"object"==typeof t},ot=function(t){return rt(t)&&"[object Arguments]"==h(t)};var st=Object.prototype,it=st.hasOwnProperty,at=st.propertyIsEnumerable,ct=ot(function(){return arguments}())?ot:function(t){return rt(t)&&it.call(t,"callee")&&!at.call(t,"callee")};const ut=ct;var lt="object"==typeof exports&&exports&&!exports.nodeType&&exports,ft=lt&&"object"==typeof module&&module&&!module.nodeType&&module,pt=ft&&ft.exports===lt?u.Buffer:void 0;const bt=(pt?pt.isBuffer:void 0)||function(){return!1};var dt=/^(?:0|[1-9]\d*)$/;const gt=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&dt.test(t))&&t>-1&&t%1==0&&t<e},yt=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var ht={};ht["[object Float32Array]"]=ht["[object Float64Array]"]=ht["[object Int8Array]"]=ht["[object Int16Array]"]=ht["[object Int32Array]"]=ht["[object Uint8Array]"]=ht["[object Uint8ClampedArray]"]=ht["[object Uint16Array]"]=ht["[object Uint32Array]"]=!0,ht["[object Arguments]"]=ht["[object Array]"]=ht["[object ArrayBuffer]"]=ht["[object Boolean]"]=ht["[object DataView]"]=ht["[object Date]"]=ht["[object Error]"]=ht["[object Function]"]=ht["[object Map]"]=ht["[object Number]"]=ht["[object Object]"]=ht["[object RegExp]"]=ht["[object Set]"]=ht["[object String]"]=ht["[object WeakMap]"]=!1;var vt="object"==typeof exports&&exports&&!exports.nodeType&&exports,mt=vt&&"object"==typeof module&&module&&!module.nodeType&&module,_t=mt&&mt.exports===vt&&s.process,jt=function(){try{return mt&&mt.require&&mt.require("util").types||_t&&_t.binding&&_t.binding("util")}catch(t){}}(),St=jt&&jt.isTypedArray;const Ot=St?(xt=St,function(t){return xt(t)}):function(t){return rt(t)&&yt(t.length)&&!!ht[h(t)]};var xt,wt=Object.prototype.hasOwnProperty;const Et=function(t,e){var n=Z(t),r=!n&&ut(t),o=!n&&!r&&bt(t),s=!n&&!r&&!o&&Ot(t),i=n||r||o||s,a=i?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],c=a.length;for(var u in t)!e&&!wt.call(t,u)||i&&("length"==u||o&&("offset"==u||"parent"==u)||s&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||gt(u,c))||a.push(u);return a};var Pt=Object.prototype;const At=function(t,e){return function(n){return t(e(n))}}(Object.keys,Object);var Nt=Object.prototype.hasOwnProperty;const zt=function(t){if(n=(e=t)&&e.constructor,e!==("function"==typeof n&&n.prototype||Pt))return At(t);var e,n,r=[];for(var o in Object(t))Nt.call(t,o)&&"constructor"!=o&&r.push(o);return r},It=function(t){return null!=(e=t)&&yt(e.length)&&!m(e)?Et(t):zt(t);var e},kt=function(t){return function(t,e,n){var r=e(t);return Z(t)?r:function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}(r,n(t))}(t,It,nt)};var Ct=Object.prototype.hasOwnProperty;const Ft=k(u,"DataView"),Dt=k(u,"Promise"),Mt=k(u,"Set"),$t=k(u,"WeakMap");var Tt="[object Map]",Rt="[object Promise]",Bt="[object Set]",Lt="[object WeakMap]",Gt="[object DataView]",Ut=x(Ft),Vt=x(C),Ht=x(Dt),Wt=x(Mt),qt=x($t),Jt=h;(Ft&&Jt(new Ft(new ArrayBuffer(1)))!=Gt||C&&Jt(new C)!=Tt||Dt&&Jt(Dt.resolve())!=Rt||Mt&&Jt(new Mt)!=Bt||$t&&Jt(new $t)!=Lt)&&(Jt=function(t){var e=h(t),n="[object Object]"==e?t.constructor:void 0,r=n?x(n):"";if(r)switch(r){case Ut:return Gt;case Vt:return Tt;case Ht:return Rt;case Wt:return Bt;case qt:return Lt}return e});const Kt=Jt;var Qt="[object Arguments]",Xt="[object Array]",Yt="[object Object]",Zt=Object.prototype.hasOwnProperty;const te=function(e,n,r,o,s,i){var a=Z(e),c=Z(n),u=a?Xt:Kt(e),l=c?Xt:Kt(n),f=(u=u==Qt?Yt:u)==Yt,p=(l=l==Qt?Yt:l)==Yt,b=u==l;if(b&&bt(e)){if(!bt(n))return!1;a=!0,f=!1}if(b&&!f)return i||(i=new U),a||Ot(e)?q(e,n,r,o,s,i):function(e,n,r,o,s,i,a){switch(r){case"[object DataView]":if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=n.byteLength||!i(new J(e),new J(n)));case"[object Boolean]":case"[object Date]":case"[object Number]":return t(+e,+n);case"[object Error]":return e.name==n.name&&e.message==n.message;case"[object RegExp]":case"[object String]":return e==n+"";case"[object Map]":var c=K;case"[object Set]":var u=1&o;if(c||(c=Q),e.size!=n.size&&!u)return!1;var l=a.get(e);if(l)return l==n;o|=2,a.set(e,n);var f=q(c(e),c(n),o,s,i,a);return a.delete(e),f;case"[object Symbol]":if(Y)return Y.call(e)==Y.call(n)}return!1}(e,n,u,r,o,s,i);if(!(1&r)){var d=f&&Zt.call(e,"__wrapped__"),g=p&&Zt.call(n,"__wrapped__");if(d||g){var y=d?e.value():e,h=g?n.value():n;return i||(i=new U),s(y,h,r,o,i)}}return!!b&&(i||(i=new U),function(t,e,n,r,o,s){var i=1&n,a=kt(t),c=a.length;if(c!=kt(e).length&&!i)return!1;for(var u=c;u--;){var l=a[u];if(!(i?l in e:Ct.call(e,l)))return!1}var f=s.get(t),p=s.get(e);if(f&&p)return f==e&&p==t;var b=!0;s.set(t,e),s.set(e,t);for(var d=i;++u<c;){var g=t[l=a[u]],y=e[l];if(r)var h=i?r(y,g,l,e,t,s):r(g,y,l,t,e,s);if(!(void 0===h?g===y||o(g,y,n,r,s):h)){b=!1;break}d||(d="constructor"==l)}if(b&&!d){var v=t.constructor,m=e.constructor;v==m||!("constructor"in t)||!("constructor"in e)||"function"==typeof v&&v instanceof v&&"function"==typeof m&&m instanceof m||(b=!1)}return s.delete(t),s.delete(e),b}(e,n,r,o,s,i))},ee=function t(e,n,r,o,s){return e===n||(null==e||null==n||!rt(e)&&!rt(n)?e!=e&&n!=n:te(e,n,r,o,t,s))},ne=function(t,e){return ee(t,e)};var re=a(824),oe=a(685);const se=(0,oe.createGlobalStore)("extensionsInternal",{slots:{},extensions:{}}),ie=()=>(0,oe.getGlobalStore)("extensionsInternal",{slots:{},extensions:{}});function ae(t){const e=se.getState(),n=t(e);n!==e&&se.setState(n)}const ce=()=>(0,oe.getGlobalStore)("extensions",{slots:{}});function ue(t){const e=[];for(let n of Object.values(t.extensions))for(let t of n.instances)e.push({slotModuleName:t.slotModuleName,extensionModuleName:n.moduleName,slotName:t.slotName,extensionId:t.id});ne(re.configExtensionStore.getState().mountedExtensions,e)||re.configExtensionStore.setState({mountedExtensions:e})}ue(se.getState()),se.subscribe(ue);var le=a(766);const fe=function(t){return void 0===t};function pe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function be(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){pe(t,e,n[e])}))}return t}function de(t,e){return e=null!=e?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):function(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n.push.apply(n,r)}return n}(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})),t}const ge=ie(),ye=ce(),he=(0,re.getExtensionSlotsConfigStore)(),ve=(0,re.getExtensionsConfigStore)();function me(t,e,n){const r={};for(let[o,s]of Object.entries(t.slots)){const{config:i}=(0,re.getExtensionSlotConfigFromStore)(e,s.name),a=ze(o,t,i,n);r[o]={moduleName:s.moduleName,assignedExtensions:a}}ne(ye.getState().slots,r)||ye.setState({slots:r})}function _e(t,e){return{moduleName:e,name:t,attachedIds:[],config:null}}function je(t){const[e]=t.split("#");return e}function Se(t,e){const n=je(e);return t.extensions[n]}function Oe(t){return Se(ge.getState(),t)}ge.subscribe((t=>{me(t,he.getState(),ve.getState())})),he.subscribe((t=>{me(ge.getState(),t,ve.getState())})),ve.subscribe((t=>{me(ge.getState(),he.getState(),t)}));const xe=t=>ge.setState((e=>(e.extensions[t.name]=de(be({},t),{instances:[]}),e)));function we(t,e){ae((n=>{const r=n.slots[t];return de(be({},n),r?{slots:de(be({},n.slots),{[t]:de(be({},r),{attachedIds:[...r.attachedIds,e]})})}:{slots:de(be({},n.slots),{[t]:de(be({},_e(t)),{attachedIds:[e]})})})}))}function Ee(t,e){ae((n=>{const r=n.slots[t];return r&&r.attachedIds.includes(e)?de(be({},n),{slots:de(be({},n.slots),{[t]:de(be({},r),{attachedIds:r.attachedIds.filter((t=>t!==e))})})}):n}))}function Pe(t){ae((e=>{const n=e.slots[t];return n?de(be({},e),{slots:de(be({},e.slots),{[t]:de(be({},n),{attachedIds:[]})})}):e}))}function Ae(t,e,n,r){const o=e.indexOf(t);if(-1!==o)return o;if(void 0!==n)return 1e3+n;{const e=r.indexOf(t);return-1!==e?2e3+e:-1}}function Ne(t,e=null){const n=null!=e?e:navigator.onLine;return t.filter((t=>De(n,t.online,t.offline)))}function ze(t,e,n,r){const o=function(t,e){const n=t.add||[],r=t.remove||[],o=t.order||[],{extensions:s}=ge.getState();return[...e,...n].filter((t=>!r.includes(t))).sort(((t,n)=>{var r,i;const a=Ae(t,o,null===(r=s[je(t)])||void 0===r?void 0:r.order,e),c=Ae(n,o,null===(i=s[je(n)])||void 0===i?void 0:i.order,e);return-1===c?-1:-1===a?1:a-c}))}(n,e.slots[t].attachedIds),s=[];let i;for(let n of o){const{config:o}=(0,re.getExtensionConfigFromStore)(r,t,n),f=je(n),p=e.extensions[f];if(p){var a,c,u;const t=null!==(u=null!==(c=null==o||null===(a=o["Display conditions"])||void 0===a?void 0:a.privileges)&&void 0!==c?c:p.privileges)&&void 0!==u?u:[];if(t&&("string"==typeof t||Array.isArray(t)&&t.length>0)){var l;if(fe(i)&&(i=null===(l=(0,le.getSessionStore)().getState().session)||void 0===l?void 0:l.user),!i)continue;if(!(0,le.userHasAccess)(t,i))continue}s.push({id:n,name:f,moduleName:p.moduleName,config:o,meta:p.meta})}}return s}function Ie(t){const e=ge.getState(),{config:n}=(0,re.getExtensionSlotConfig)(t);return ze(t,e,n,ve.getState())}const ke=(t,e)=>ge.setState((n=>{var r;const o=null===(r=n.slots[e])||void 0===r?void 0:r.moduleName;if(o&&o!=t)return console.warn(`An extension slot with the name '${e}' already exists. Refusing to register the same slot name twice (in "registerExtensionSlot"). The existing one is from module ${o}.`),n;if(o&&o==t)return n;if(n.slots[e])return de(be({},n),{slots:de(be({},n.slots),{[e]:de(be({},n.slots[e]),{moduleName:t})})});const s=_e(e,t);return de(be({},n),{slots:de(be({},n.slots),{[e]:s})})})),Ce=()=>ye.setState((()=>({slots:{},extensions:{}})));function Fe(t=!0,e=!1){return De(navigator.onLine,t,e)}function De(t,e=!0,n=!1){return Boolean(t?e:n)}var Me=a(645);function $e(t,e,n,r,o,s,i){try{var a=t[s](i),c=a.value}catch(t){return void n(t)}a.done?e(c):Promise.resolve(c).then(r,o)}function Te(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Re(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){Te(t,e,n[e])}))}return t}function Be(t,e){return e=null!=e?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):function(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n.push.apply(n,r)}return n}(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})),t}function Le(t,e,n,r){return Ge.apply(this,arguments)}function Ge(){var t;return t=function*(t,e,n,r,o=(t=>t),s={}){const i=je(r),a=Oe(r);let c=null;if(t){if(!a)throw Error(`Couldn't find extension '${i}' to attach to '${e}'`);const{load:u,meta:l,moduleName:f,online:p,offline:b}=a;if(Fe(p,b)){ae((o=>{const s={domElement:t,id:r,slotName:e,slotModuleName:n};return Be(Re({},o),{extensions:Be(Re({},o.extensions),{[i]:Be(Re({},o.extensions[i]),{instances:[...o.extensions[i].instances,s]})})})}));const a=yield u(),{default:p}=a,b=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},s=Object.keys(t);for(r=0;r<s.length;r++)n=s[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(r=0;r<s.length;r++)n=s[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(a,["default"]);c=(0,Me.mountRootParcel)(o(null!=p?p:b),Be(Re({},s),{_meta:l,_extensionContext:{extensionId:r,extensionSlotName:e,extensionSlotModuleName:n,extensionModuleName:f},domElement:t}))}}else console.warn(`Tried to render ${r} into ${e} but no DOM element was available.`);return c},Ge=function(){var e=this,n=arguments;return new Promise((function(r,o){var s=t.apply(e,n);function i(t){$e(s,r,o,i,a,"next",t)}function a(t){$e(s,r,o,i,a,"throw",t)}i(void 0)}))},Ge.apply(this,arguments)}const Ue=ie()})(),c})())}}}));
1
+ System.register(["@openmrs/esm-config","@openmrs/esm-state","@openmrs/esm-api","single-spa"],(function(t,e){var n={},r={},o={},s={};return{setters:[function(t){n.configExtensionStore=t.configExtensionStore,n.getExtensionConfigFromStore=t.getExtensionConfigFromStore,n.getExtensionSlotConfig=t.getExtensionSlotConfig,n.getExtensionSlotConfigFromStore=t.getExtensionSlotConfigFromStore,n.getExtensionSlotsConfigStore=t.getExtensionSlotsConfigStore,n.getExtensionsConfigStore=t.getExtensionsConfigStore},function(t){r.createGlobalStore=t.createGlobalStore,r.getGlobalStore=t.getGlobalStore},function(t){o.getSessionStore=t.getSessionStore,o.userHasAccess=t.userHasAccess},function(t){s.mountRootParcel=t.mountRootParcel}],execute:function(){t((()=>{"use strict";var t={766:t=>{t.exports=o},824:t=>{t.exports=n},685:t=>{t.exports=r},645:t=>{t.exports=s}},e={};function i(n){var r=e[n];if(void 0!==r)return r.exports;var o=e[n]={exports:{}};return t[n](o,o.exports,i),o.exports}i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var a={};return(()=>{i.r(a),i.d(a,{attach:()=>we,checkStatus:()=>ke,checkStatusFor:()=>De,detach:()=>Ee,detachAll:()=>Pe,extensionStore:()=>Ue,getAssignedExtensions:()=>Ne,getConnectedExtensions:()=>ze,getExtensionInternalStore:()=>ie,getExtensionNameFromId:()=>me,getExtensionRegistration:()=>Se,getExtensionRegistrationFrom:()=>Oe,getExtensionStore:()=>ce,registerExtension:()=>xe,registerExtensionSlot:()=>Ce,renderExtension:()=>Ge,reset:()=>Fe,updateInternalExtensionStore:()=>ae});const t=function(t,e){return t===e||t!=t&&e!=e},e=function(e,n){for(var r=e.length;r--;)if(t(e[r][0],n))return r;return-1};var n=Array.prototype.splice;function r(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}r.prototype.clear=function(){this.__data__=[],this.size=0},r.prototype.delete=function(t){var r=this.__data__,o=e(r,t);return!(o<0||(o==r.length-1?r.pop():n.call(r,o,1),--this.size,0))},r.prototype.get=function(t){var n=this.__data__,r=e(n,t);return r<0?void 0:n[r][1]},r.prototype.has=function(t){return e(this.__data__,t)>-1},r.prototype.set=function(t,n){var r=this.__data__,o=e(r,t);return o<0?(++this.size,r.push([t,n])):r[o][1]=n,this};const o=r,s="object"==typeof global&&global&&global.Object===Object&&global;var c="object"==typeof self&&self&&self.Object===Object&&self;const u=s||c||Function("return this")(),l=u.Symbol;var f=Object.prototype,p=f.hasOwnProperty,b=f.toString,d=l?l.toStringTag:void 0;var g=Object.prototype.toString;var y=l?l.toStringTag:void 0;const v=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":y&&y in Object(t)?function(t){var e=p.call(t,d),n=t[d];try{t[d]=void 0;var r=!0}catch(t){}var o=b.call(t);return r&&(e?t[d]=n:delete t[d]),o}(t):function(t){return g.call(t)}(t)},h=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},_=function(t){if(!h(t))return!1;var e=v(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},j=u["__core-js_shared__"];var m,O=(m=/[^.]+$/.exec(j&&j.keys&&j.keys.IE_PROTO||""))?"Symbol(src)_1."+m:"";var S=Function.prototype.toString;const x=function(t){if(null!=t){try{return S.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var w=/^\[object .+?Constructor\]$/,E=Function.prototype,P=Object.prototype,A=E.toString,z=P.hasOwnProperty,I=RegExp("^"+A.call(z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const N=function(t){return!(!h(t)||(e=t,O&&O in e))&&(_(t)?I:w).test(x(t));var e},C=function(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return N(n)?n:void 0},F=C(u,"Map"),k=C(Object,"create");var D=Object.prototype.hasOwnProperty;var M=Object.prototype.hasOwnProperty;function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}$.prototype.clear=function(){this.__data__=k?k(null):{},this.size=0},$.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},$.prototype.get=function(t){var e=this.__data__;if(k){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return D.call(e,t)?e[t]:void 0},$.prototype.has=function(t){var e=this.__data__;return k?void 0!==e[t]:M.call(e,t)},$.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=k&&void 0===e?"__lodash_hash_undefined__":e,this};const T=$,R=function(t,e){var n,r,o=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map};function B(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}B.prototype.clear=function(){this.size=0,this.__data__={hash:new T,map:new(F||o),string:new T}},B.prototype.delete=function(t){var e=R(this,t).delete(t);return this.size-=e?1:0,e},B.prototype.get=function(t){return R(this,t).get(t)},B.prototype.has=function(t){return R(this,t).has(t)},B.prototype.set=function(t,e){var n=R(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};const G=B;function L(t){var e=this.__data__=new o(t);this.size=e.size}L.prototype.clear=function(){this.__data__=new o,this.size=0},L.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},L.prototype.get=function(t){return this.__data__.get(t)},L.prototype.has=function(t){return this.__data__.has(t)},L.prototype.set=function(t,e){var n=this.__data__;if(n instanceof o){var r=n.__data__;if(!F||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new G(r)}return n.set(t,e),this.size=n.size,this};const U=L;function V(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new G;++e<n;)this.add(t[e])}V.prototype.add=V.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},V.prototype.has=function(t){return this.__data__.has(t)};const H=V,W=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1},q=function(t,e,n,r,o,s){var i=1&n,a=t.length,c=e.length;if(a!=c&&!(i&&c>a))return!1;var u=s.get(t),l=s.get(e);if(u&&l)return u==e&&l==t;var f=-1,p=!0,b=2&n?new H:void 0;for(s.set(t,e),s.set(e,t);++f<a;){var d=t[f],g=e[f];if(r)var y=i?r(g,d,f,e,t,s):r(d,g,f,t,e,s);if(void 0!==y){if(y)continue;p=!1;break}if(b){if(!W(e,(function(t,e){if(i=e,!b.has(i)&&(d===t||o(d,t,n,r,s)))return b.push(e);var i}))){p=!1;break}}else if(d!==g&&!o(d,g,n,r,s)){p=!1;break}}return s.delete(t),s.delete(e),p},J=u.Uint8Array,K=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n},Q=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var X=l?l.prototype:void 0,Y=X?X.valueOf:void 0;const Z=Array.isArray;var tt=Object.prototype.propertyIsEnumerable,et=Object.getOwnPropertySymbols;const nt=et?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,s=[];++n<r;){var i=t[n];e(i,n,t)&&(s[o++]=i)}return s}(et(t),(function(e){return tt.call(t,e)})))}:function(){return[]},rt=function(t){return null!=t&&"object"==typeof t},ot=function(t){return rt(t)&&"[object Arguments]"==v(t)};var st=Object.prototype,it=st.hasOwnProperty,at=st.propertyIsEnumerable,ct=ot(function(){return arguments}())?ot:function(t){return rt(t)&&it.call(t,"callee")&&!at.call(t,"callee")};const ut=ct;var lt="object"==typeof exports&&exports&&!exports.nodeType&&exports,ft=lt&&"object"==typeof module&&module&&!module.nodeType&&module,pt=ft&&ft.exports===lt?u.Buffer:void 0;const bt=(pt?pt.isBuffer:void 0)||function(){return!1};var dt=/^(?:0|[1-9]\d*)$/;const gt=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&dt.test(t))&&t>-1&&t%1==0&&t<e},yt=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var vt={};vt["[object Float32Array]"]=vt["[object Float64Array]"]=vt["[object Int8Array]"]=vt["[object Int16Array]"]=vt["[object Int32Array]"]=vt["[object Uint8Array]"]=vt["[object Uint8ClampedArray]"]=vt["[object Uint16Array]"]=vt["[object Uint32Array]"]=!0,vt["[object Arguments]"]=vt["[object Array]"]=vt["[object ArrayBuffer]"]=vt["[object Boolean]"]=vt["[object DataView]"]=vt["[object Date]"]=vt["[object Error]"]=vt["[object Function]"]=vt["[object Map]"]=vt["[object Number]"]=vt["[object Object]"]=vt["[object RegExp]"]=vt["[object Set]"]=vt["[object String]"]=vt["[object WeakMap]"]=!1;var ht="object"==typeof exports&&exports&&!exports.nodeType&&exports,_t=ht&&"object"==typeof module&&module&&!module.nodeType&&module,jt=_t&&_t.exports===ht&&s.process,mt=function(){try{return _t&&_t.require&&_t.require("util").types||jt&&jt.binding&&jt.binding("util")}catch(t){}}(),Ot=mt&&mt.isTypedArray;const St=Ot?(xt=Ot,function(t){return xt(t)}):function(t){return rt(t)&&yt(t.length)&&!!vt[v(t)]};var xt,wt=Object.prototype.hasOwnProperty;const Et=function(t,e){var n=Z(t),r=!n&&ut(t),o=!n&&!r&&bt(t),s=!n&&!r&&!o&&St(t),i=n||r||o||s,a=i?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],c=a.length;for(var u in t)!e&&!wt.call(t,u)||i&&("length"==u||o&&("offset"==u||"parent"==u)||s&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||gt(u,c))||a.push(u);return a};var Pt=Object.prototype;const At=function(t,e){return function(n){return t(e(n))}}(Object.keys,Object);var zt=Object.prototype.hasOwnProperty;const It=function(t){if(n=(e=t)&&e.constructor,e!==("function"==typeof n&&n.prototype||Pt))return At(t);var e,n,r=[];for(var o in Object(t))zt.call(t,o)&&"constructor"!=o&&r.push(o);return r},Nt=function(t){return null!=(e=t)&&yt(e.length)&&!_(e)?Et(t):It(t);var e},Ct=function(t){return function(t,e,n){var r=e(t);return Z(t)?r:function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}(r,n(t))}(t,Nt,nt)};var Ft=Object.prototype.hasOwnProperty;const kt=C(u,"DataView"),Dt=C(u,"Promise"),Mt=C(u,"Set"),$t=C(u,"WeakMap");var Tt="[object Map]",Rt="[object Promise]",Bt="[object Set]",Gt="[object WeakMap]",Lt="[object DataView]",Ut=x(kt),Vt=x(F),Ht=x(Dt),Wt=x(Mt),qt=x($t),Jt=v;(kt&&Jt(new kt(new ArrayBuffer(1)))!=Lt||F&&Jt(new F)!=Tt||Dt&&Jt(Dt.resolve())!=Rt||Mt&&Jt(new Mt)!=Bt||$t&&Jt(new $t)!=Gt)&&(Jt=function(t){var e=v(t),n="[object Object]"==e?t.constructor:void 0,r=n?x(n):"";if(r)switch(r){case Ut:return Lt;case Vt:return Tt;case Ht:return Rt;case Wt:return Bt;case qt:return Gt}return e});const Kt=Jt;var Qt="[object Arguments]",Xt="[object Array]",Yt="[object Object]",Zt=Object.prototype.hasOwnProperty;const te=function(e,n,r,o,s,i){var a=Z(e),c=Z(n),u=a?Xt:Kt(e),l=c?Xt:Kt(n),f=(u=u==Qt?Yt:u)==Yt,p=(l=l==Qt?Yt:l)==Yt,b=u==l;if(b&&bt(e)){if(!bt(n))return!1;a=!0,f=!1}if(b&&!f)return i||(i=new U),a||St(e)?q(e,n,r,o,s,i):function(e,n,r,o,s,i,a){switch(r){case"[object DataView]":if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=n.byteLength||!i(new J(e),new J(n)));case"[object Boolean]":case"[object Date]":case"[object Number]":return t(+e,+n);case"[object Error]":return e.name==n.name&&e.message==n.message;case"[object RegExp]":case"[object String]":return e==n+"";case"[object Map]":var c=K;case"[object Set]":var u=1&o;if(c||(c=Q),e.size!=n.size&&!u)return!1;var l=a.get(e);if(l)return l==n;o|=2,a.set(e,n);var f=q(c(e),c(n),o,s,i,a);return a.delete(e),f;case"[object Symbol]":if(Y)return Y.call(e)==Y.call(n)}return!1}(e,n,u,r,o,s,i);if(!(1&r)){var d=f&&Zt.call(e,"__wrapped__"),g=p&&Zt.call(n,"__wrapped__");if(d||g){var y=d?e.value():e,v=g?n.value():n;return i||(i=new U),s(y,v,r,o,i)}}return!!b&&(i||(i=new U),function(t,e,n,r,o,s){var i=1&n,a=Ct(t),c=a.length;if(c!=Ct(e).length&&!i)return!1;for(var u=c;u--;){var l=a[u];if(!(i?l in e:Ft.call(e,l)))return!1}var f=s.get(t),p=s.get(e);if(f&&p)return f==e&&p==t;var b=!0;s.set(t,e),s.set(e,t);for(var d=i;++u<c;){var g=t[l=a[u]],y=e[l];if(r)var v=i?r(y,g,l,e,t,s):r(g,y,l,t,e,s);if(!(void 0===v?g===y||o(g,y,n,r,s):v)){b=!1;break}d||(d="constructor"==l)}if(b&&!d){var h=t.constructor,_=e.constructor;h==_||!("constructor"in t)||!("constructor"in e)||"function"==typeof h&&h instanceof h&&"function"==typeof _&&_ instanceof _||(b=!1)}return s.delete(t),s.delete(e),b}(e,n,r,o,s,i))},ee=function t(e,n,r,o,s){return e===n||(null==e||null==n||!rt(e)&&!rt(n)?e!=e&&n!=n:te(e,n,r,o,t,s))},ne=function(t,e){return ee(t,e)};var re=i(824),oe=i(685);const se=(0,oe.createGlobalStore)("extensionsInternal",{slots:{},extensions:{}}),ie=()=>(0,oe.getGlobalStore)("extensionsInternal",{slots:{},extensions:{}});function ae(t){const e=se.getState(),n=t(e);n!==e&&se.setState(n)}const ce=()=>(0,oe.getGlobalStore)("extensions",{slots:{}});function ue(t){const e=[];for(let n of Object.values(t.extensions))for(let t of n.instances)e.push({slotModuleName:t.slotModuleName,extensionModuleName:n.moduleName,slotName:t.slotName,extensionId:t.id});ne(re.configExtensionStore.getState().mountedExtensions,e)||re.configExtensionStore.setState({mountedExtensions:e})}ue(se.getState()),se.subscribe(ue);var le=i(766);const fe=function(t){return void 0===t};function pe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function be(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){pe(t,e,n[e])}))}return t}function de(t,e){return e=null!=e?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):function(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n.push.apply(n,r)}return n}(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})),t}const ge=ie(),ye=ce(),ve=(0,re.getExtensionSlotsConfigStore)(),he=(0,re.getExtensionsConfigStore)();function _e(t,e,n){const r={};for(let[o,s]of Object.entries(t.slots)){const{config:i}=(0,re.getExtensionSlotConfigFromStore)(e,s.name),a=Ie(o,t,i,n);r[o]={moduleName:s.moduleName,assignedExtensions:a}}ne(ye.getState().slots,r)||ye.setState({slots:r})}function je(t,e){return{moduleName:e,name:t,attachedIds:[],config:null}}function me(t){const[e]=t.split("#");return e}function Oe(t,e){const n=me(e);return t.extensions[n]}function Se(t){return Oe(ge.getState(),t)}ge.subscribe((t=>{_e(t,ve.getState(),he.getState())})),ve.subscribe((t=>{_e(ge.getState(),t,he.getState())})),he.subscribe((t=>{_e(ge.getState(),ve.getState(),t)}));const xe=t=>ge.setState((e=>(e.extensions[t.name]=de(be({},t),{instances:[]}),e)));function we(t,e){ae((n=>{const r=n.slots[t];return de(be({},n),r?{slots:de(be({},n.slots),{[t]:de(be({},r),{attachedIds:[...r.attachedIds,e]})})}:{slots:de(be({},n.slots),{[t]:de(be({},je(t)),{attachedIds:[e]})})})}))}function Ee(t,e){ae((n=>{const r=n.slots[t];return r&&r.attachedIds.includes(e)?de(be({},n),{slots:de(be({},n.slots),{[t]:de(be({},r),{attachedIds:r.attachedIds.filter((t=>t!==e))})})}):n}))}function Pe(t){ae((e=>{const n=e.slots[t];return n?de(be({},e),{slots:de(be({},e.slots),{[t]:de(be({},n),{attachedIds:[]})})}):e}))}function Ae(t,e,n,r){const o=e.indexOf(t);if(-1!==o)return o;if(void 0!==n)return 1e3+n;{const e=r.indexOf(t);return-1!==e?2e3+e:-1}}function ze(t,e=null){const n=null!=e?e:navigator.onLine;return t.filter((t=>De(n,t.online,t.offline)))}function Ie(t,e,n,r){const o=function(t,e){const n=t.add||[],r=t.remove||[],o=t.order||[],{extensions:s}=ge.getState();return[...e,...n].filter((t=>!r.includes(t))).sort(((t,n)=>{var r,i;const a=Ae(t,o,null===(r=s[me(t)])||void 0===r?void 0:r.order,e),c=Ae(n,o,null===(i=s[me(n)])||void 0===i?void 0:i.order,e);return-1===c?-1:-1===a?1:a-c}))}(n,e.slots[t].attachedIds),s=[];let i;for(let n of o){const{config:o}=(0,re.getExtensionConfigFromStore)(r,t,n),f=me(n),p=e.extensions[f];if(p){var a,c,u;const t=null!==(u=null!==(c=null==o||null===(a=o["Display conditions"])||void 0===a?void 0:a.privileges)&&void 0!==c?c:p.privileges)&&void 0!==u?u:[];if(t&&("string"==typeof t||Array.isArray(t)&&t.length>0)){var l;if(fe(i)&&(i=null===(l=(0,le.getSessionStore)().getState().session)||void 0===l?void 0:l.user),!i)continue;if(!(0,le.userHasAccess)(t,i))continue}s.push({id:n,name:f,moduleName:p.moduleName,config:o,meta:p.meta})}}return s}function Ne(t){const e=ge.getState(),{config:n}=(0,re.getExtensionSlotConfig)(t);return Ie(t,e,n,he.getState())}const Ce=(t,e)=>ge.setState((n=>{var r;const o=null===(r=n.slots[e])||void 0===r?void 0:r.moduleName;if(o&&o!=t)return console.warn(`An extension slot with the name '${e}' already exists. Refusing to register the same slot name twice (in "registerExtensionSlot"). The existing one is from module ${o}.`),n;if(o&&o==t)return n;if(n.slots[e])return de(be({},n),{slots:de(be({},n.slots),{[e]:de(be({},n.slots[e]),{moduleName:t})})});const s=je(e,t);return de(be({},n),{slots:de(be({},n.slots),{[e]:s})})})),Fe=()=>ye.setState((()=>({slots:{},extensions:{}})));function ke(t=!0,e=!1){return De(navigator.onLine,t,e)}function De(t,e=!0,n=!1){return Boolean(t?e:n)}var Me=i(645);function $e(t,e,n,r,o,s,i){try{var a=t[s](i),c=a.value}catch(t){return void n(t)}a.done?e(c):Promise.resolve(c).then(r,o)}function Te(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Re(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){Te(t,e,n[e])}))}return t}function Be(t,e){return e=null!=e?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):function(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n.push.apply(n,r)}return n}(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})),t}function Ge(t,e,n,r){return Le.apply(this,arguments)}function Le(){var t;return t=function*(t,e,n,r,o=(t=>t),s={}){const i=me(r),a=Se(r);let c=null;if(t){if(!a)throw Error(`Couldn't find extension '${i}' to attach to '${e}'`);const{load:u,meta:l,moduleName:f,online:p,offline:b}=a;if(ke(p,b)){ae((o=>{const s={domElement:t,id:r,slotName:e,slotModuleName:n};return Be(Re({},o),{extensions:Be(Re({},o.extensions),{[i]:Be(Re({},o.extensions[i]),{instances:[...o.extensions[i].instances,s]})})})}));const a=yield u(),{default:p}=a,b=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},s=Object.keys(t);for(r=0;r<s.length;r++)n=s[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(r=0;r<s.length;r++)n=s[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(a,["default"]);c=(0,Me.mountRootParcel)(o(null!=p?p:b),Be(Re({},s),{_meta:l,_extensionContext:{extensionId:r,extensionSlotName:e,extensionSlotModuleName:n,extensionModuleName:f},domElement:t}))}}else console.warn(`Tried to render ${r} into ${e} but no DOM element was available.`);return c},Le=function(){var e=this,n=arguments;return new Promise((function(r,o){var s=t.apply(e,n);function i(t){$e(s,r,o,i,a,"next",t)}function a(t){$e(s,r,o,i,a,"throw",t)}i(void 0)}))},Le.apply(this,arguments)}const Ue=ie()})(),a})())}}}));
2
2
  //# sourceMappingURL=openmrs-esm-extensions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"openmrs-esm-extensions.js","mappings":"+vBAAA,MAAMA,EAAmB,SAEzBC,EAAQ,EAAiB,SAAwBC,GAY7C,GAXGA,IACHA,EAAe,IAUV,IAAmBC,OAAS,IAAmBA,KAAKC,IAEvD,MADAC,QAAQC,MAAM,qBAAsB,KAC9BC,MACJ,uHAIJ,IAA0BP,EACxB,IAAmBG,KAAKC,IACxBF,EAGN,C,gBCoDAD,EAAQ,EAlCR,SAA0BO,EAAWC,GAKnC,IAAIC,EAAIC,SAASC,cAAc,KAC/BF,EAAEG,KAAOL,EAKT,IAHA,IAAIM,EAA6B,MAAlBJ,EAAEI,SAAS,GAAaJ,EAAEI,SAAW,IAAMJ,EAAEI,SACxDC,EAAmB,EACrBC,EAAQF,EAASG,OACZF,IAAqBN,GAAsBO,GAAS,GAE5C,MADFF,IAAWE,IAEpBD,IAIJ,GAAIA,IAAqBN,EACvB,MAAMF,MACJ,iDACEE,EACA,gDACAM,EACA,qBACAP,GAIN,IAAIU,EAAYJ,EAASK,MAAM,EAAGH,EAAQ,GAE1C,OAAON,EAAEU,SAAW,KAAOV,EAAEW,KAAOH,CACtC,EAMEI,OAAOC,S,uBClFTC,EAAOvB,QAAUwB,C,uBCAjBD,EAAOvB,QAAUyB,C,uBCAjBF,EAAOvB,QAAU0B,C,uBCAjBH,EAAOvB,QAAU2B,C,GCCbC,EAA2B,CAAC,EAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAA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AMoU,EAAOjO,UACxB,OAAO,IAAI2M,SAAQ,SAASnK,EAAS8J,GACjC,IAAID,EAAMY,EAAGjG,MAAM1K,EAAM2R,GACzB,SAAS1B,EAAM9R,GACX2R,GAAmBC,EAAK7J,EAAS8J,EAAQC,EAAOC,EAAQ,OAAQ/R,EACpE,CACA,SAAS+R,EAAO0B,GACZ9B,GAAmBC,EAAK7J,EAAS8J,EAAQC,EAAOC,EAAQ,QAAS0B,EACrE,CACA3B,OAAMxT,EACV,GACJ,EA4IOiU,GAAiBhG,MAAMnN,KAAMmG,UACxC,CChK0F,MAAMqI,GAAgB7D,I","sources":["webpack://@openmrs/esm-extensions/../../../node_modules/systemjs-webpack-interop/auto-public-path/auto-public-path.js","webpack://@openmrs/esm-extensions/../../../node_modules/systemjs-webpack-interop/public-path.js","webpack://@openmrs/esm-extensions/external system \"@openmrs/esm-api\"","webpack://@openmrs/esm-extensions/external system \"@openmrs/esm-config\"","webpack://@openmrs/esm-extensions/external system \"@openmrs/esm-state\"","webpack://@openmrs/esm-extensions/external system \"single-spa\"","webpack://@openmrs/esm-extensions/webpack/bootstrap","webpack://@openmrs/esm-extensions/webpack/runtime/__system_context__","webpack://@openmrs/esm-extensions/webpack/runtime/define property getters","webpack://@openmrs/esm-extensions/webpack/runtime/global","webpack://@openmrs/esm-extensions/webpack/runtime/hasOwnProperty shorthand","webpack://@openmrs/esm-extensions/webpack/runtime/make namespace object","webpack://@openmrs/esm-extensions/webpack/runtime/publicPath","webpack://@openmrs/esm-extensions/../../../node_modules/systemjs-webpack-interop/auto-public-path/1.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_listCacheClear.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/eq.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_assocIndexOf.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_listCacheDelete.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_ListCache.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_listCacheGet.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_listCacheHas.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_listCacheSet.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_freeGlobal.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_root.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_Symbol.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_getRawTag.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_objectToString.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_baseGetTag.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/isObject.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/isFunction.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_coreJsData.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_isMasked.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_toSource.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_baseIsNative.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_getNative.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_getValue.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_Map.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_nativeCreate.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_hashGet.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_hashHas.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_Hash.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_hashClear.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_hashDelete.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_hashSet.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_getMapData.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_isKeyable.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_MapCache.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_mapCacheClear.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_mapCacheDelete.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_mapCacheGet.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_mapCacheHas.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_mapCacheSet.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_Stack.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_stackClear.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_stackDelete.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_stackGet.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_stackHas.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_stackSet.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_SetCache.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_setCacheAdd.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_setCacheHas.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_arraySome.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_equalArrays.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_cacheHas.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_Uint8Array.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_mapToArray.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_setToArray.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_equalByTag.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/isArray.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_getSymbols.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_arrayFilter.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/stubArray.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/isObjectLike.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_baseIsArguments.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/isArguments.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/isBuffer.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/stubFalse.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_isIndex.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/isLength.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_baseIsTypedArray.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_nodeUtil.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/isTypedArray.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_baseUnary.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_arrayLikeKeys.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_baseTimes.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_isPrototype.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_nativeKeys.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_overArg.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_baseKeys.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/keys.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/isArrayLike.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_getAllKeys.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_baseGetAllKeys.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_arrayPush.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_equalObjects.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_DataView.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_Promise.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_Set.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_WeakMap.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_getTag.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_baseIsEqualDeep.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_baseIsEqual.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/isEqual.js","webpack://@openmrs/esm-extensions/./src/store.ts","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/isUndefined.js","webpack://@openmrs/esm-extensions/./src/extensions.ts","webpack://@openmrs/esm-extensions/./src/helpers.ts","webpack://@openmrs/esm-extensions/./src/render.ts","webpack://@openmrs/esm-extensions/./src/index.ts"],"sourcesContent":["const resolveDirectory = require(\"../public-path\").resolveDirectory;\n\nexports.autoPublicPath = function autoPublicPath(rootDirLevel) {\n if (!rootDirLevel) {\n rootDirLevel = 1;\n }\n\n if (typeof __webpack_public_path__ !== \"undefined\") {\n if (typeof __system_context__ === \"undefined\") {\n throw Error(\n \"systemjs-webpack-interop requires webpack@>=5.0.0-beta.15 and output.libraryTarget set to 'system'\"\n );\n }\n\n if (!__system_context__.meta || !__system_context__.meta.url) {\n console.error(\"__system_context__\", __system_context__);\n throw Error(\n \"systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided\"\n );\n }\n\n __webpack_public_path__ = resolveDirectory(\n __system_context__.meta.url,\n rootDirLevel\n );\n }\n};\n","exports.setPublicPath = function setPublicPath(\n systemjsModuleName,\n rootDirectoryLevel\n) {\n if (!rootDirectoryLevel) {\n rootDirectoryLevel = 1;\n }\n if (\n typeof systemjsModuleName !== \"string\" ||\n systemjsModuleName.trim().length === 0\n ) {\n throw Error(\n \"systemjs-webpack-interop: setPublicPath(systemjsModuleName) must be called with a non-empty string 'systemjsModuleName'\"\n );\n }\n\n if (\n typeof rootDirectoryLevel !== \"number\" ||\n rootDirectoryLevel <= 0 ||\n isNaN(rootDirectoryLevel) ||\n !isInteger(rootDirectoryLevel)\n ) {\n throw Error(\n \"systemjs-webpack-interop: setPublicPath(systemjsModuleName, rootDirectoryLevel) must be called with a positive integer 'rootDirectoryLevel'\"\n );\n }\n\n var moduleUrl;\n try {\n moduleUrl = window.System.resolve(systemjsModuleName);\n if (!moduleUrl) {\n throw Error();\n }\n } catch (err) {\n throw Error(\n \"systemjs-webpack-interop: There is no such module '\" +\n systemjsModuleName +\n \"' in the SystemJS registry. Did you misspell the name of your module?\"\n );\n }\n\n __webpack_public_path__ = resolveDirectory(moduleUrl, rootDirectoryLevel);\n};\n\nfunction resolveDirectory(urlString, rootDirectoryLevel) {\n // Our friend IE11 doesn't support new URL()\n // https://github.com/single-spa/single-spa/issues/612\n // https://gist.github.com/jlong/2428561\n\n var a = document.createElement(\"a\");\n a.href = urlString;\n\n var pathname = a.pathname[0] === \"/\" ? a.pathname : \"/\" + a.pathname;\n var numDirsProcessed = 0,\n index = pathname.length;\n while (numDirsProcessed !== rootDirectoryLevel && index >= 0) {\n var char = pathname[--index];\n if (char === \"/\") {\n numDirsProcessed++;\n }\n }\n\n if (numDirsProcessed !== rootDirectoryLevel) {\n throw Error(\n \"systemjs-webpack-interop: rootDirectoryLevel (\" +\n rootDirectoryLevel +\n \") is greater than the number of directories (\" +\n numDirsProcessed +\n \") in the URL path \" +\n urlString\n );\n }\n\n var finalPath = pathname.slice(0, index + 1);\n\n return a.protocol + \"//\" + a.host + finalPath;\n}\n\nexports.resolveDirectory = resolveDirectory;\n\n// borrowed from https://github.com/parshap/js-is-integer/blob/master/index.js\nvar isInteger =\n Number.isInteger ||\n function isInteger(val) {\n return typeof val === \"number\" && isFinite(val) && Math.floor(val) === val;\n };\n","module.exports = __WEBPACK_EXTERNAL_MODULE__766__;","module.exports = __WEBPACK_EXTERNAL_MODULE__824__;","module.exports = __WEBPACK_EXTERNAL_MODULE__685__;","module.exports = __WEBPACK_EXTERNAL_MODULE__645__;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","__webpack_require__.y = __system_context__;","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","var scriptUrl;\nif (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \"\";\nvar document = __webpack_require__.g.document;\nif (!scriptUrl && document) {\n\tif (document.currentScript)\n\t\tscriptUrl = document.currentScript.src;\n\tif (!scriptUrl) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tif(scripts.length) {\n\t\t\tvar i = scripts.length - 1;\n\t\t\twhile (i > -1 && !scriptUrl) scriptUrl = scripts[i--].src;\n\t\t}\n\t}\n}\n// When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration\n// or pass an empty string (\"\") and set the __webpack_public_path__ variable from your code to use your own logic.\nif (!scriptUrl) throw new Error(\"Automatic publicPath is not supported in this browser\");\nscriptUrl = scriptUrl.replace(/#.*$/, \"\").replace(/\\?.*$/, \"\").replace(/\\/[^\\/]+$/, \"/\");\n__webpack_require__.p = scriptUrl;","const autoPublicPath = require(\"./auto-public-path\").autoPublicPath;\n\nautoPublicPath(1);\n","/**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\nfunction listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n}\n\nexport default listCacheClear;\n","/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\nfunction eq(value, other) {\n return value === other || (value !== value && other !== other);\n}\n\nexport default eq;\n","import eq from './eq.js';\n\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n}\n\nexport default assocIndexOf;\n","import assocIndexOf from './_assocIndexOf.js';\n\n/** Used for built-in method references. */\nvar arrayProto = Array.prototype;\n\n/** Built-in value references. */\nvar splice = arrayProto.splice;\n\n/**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n --this.size;\n return true;\n}\n\nexport default listCacheDelete;\n","import listCacheClear from './_listCacheClear.js';\nimport listCacheDelete from './_listCacheDelete.js';\nimport listCacheGet from './_listCacheGet.js';\nimport listCacheHas from './_listCacheHas.js';\nimport listCacheSet from './_listCacheSet.js';\n\n/**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction ListCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `ListCache`.\nListCache.prototype.clear = listCacheClear;\nListCache.prototype['delete'] = listCacheDelete;\nListCache.prototype.get = listCacheGet;\nListCache.prototype.has = listCacheHas;\nListCache.prototype.set = listCacheSet;\n\nexport default ListCache;\n","import assocIndexOf from './_assocIndexOf.js';\n\n/**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n return index < 0 ? undefined : data[index][1];\n}\n\nexport default listCacheGet;\n","import assocIndexOf from './_assocIndexOf.js';\n\n/**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n}\n\nexport default listCacheHas;\n","import assocIndexOf from './_assocIndexOf.js';\n\n/**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\nfunction listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n return this;\n}\n\nexport default listCacheSet;\n","/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nexport default freeGlobal;\n","import freeGlobal from './_freeGlobal.js';\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nexport default root;\n","import root from './_root.js';\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nexport default Symbol;\n","import Symbol from './_Symbol.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nexport default getRawTag;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nexport default objectToString;\n","import Symbol from './_Symbol.js';\nimport getRawTag from './_getRawTag.js';\nimport objectToString from './_objectToString.js';\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nexport default baseGetTag;\n","/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\nexport default isObject;\n","import baseGetTag from './_baseGetTag.js';\nimport isObject from './isObject.js';\n\n/** `Object#toString` result references. */\nvar asyncTag = '[object AsyncFunction]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n proxyTag = '[object Proxy]';\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n}\n\nexport default isFunction;\n","import root from './_root.js';\n\n/** Used to detect overreaching core-js shims. */\nvar coreJsData = root['__core-js_shared__'];\n\nexport default coreJsData;\n","import coreJsData from './_coreJsData.js';\n\n/** Used to detect methods masquerading as native. */\nvar maskSrcKey = (function() {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? ('Symbol(src)_1.' + uid) : '';\n}());\n\n/**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\nfunction isMasked(func) {\n return !!maskSrcKey && (maskSrcKey in func);\n}\n\nexport default isMasked;\n","/** Used for built-in method references. */\nvar funcProto = Function.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\nfunction toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return (func + '');\n } catch (e) {}\n }\n return '';\n}\n\nexport default toSource;\n","import isFunction from './isFunction.js';\nimport isMasked from './_isMasked.js';\nimport isObject from './isObject.js';\nimport toSource from './_toSource.js';\n\n/**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\nvar reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n\n/** Used to detect host constructors (Safari). */\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to detect if a method is native. */\nvar reIsNative = RegExp('^' +\n funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n);\n\n/**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\nfunction baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n}\n\nexport default baseIsNative;\n","import baseIsNative from './_baseIsNative.js';\nimport getValue from './_getValue.js';\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n}\n\nexport default getNative;\n","/**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction getValue(object, key) {\n return object == null ? undefined : object[key];\n}\n\nexport default getValue;\n","import getNative from './_getNative.js';\nimport root from './_root.js';\n\n/* Built-in method references that are verified to be native. */\nvar Map = getNative(root, 'Map');\n\nexport default Map;\n","import getNative from './_getNative.js';\n\n/* Built-in method references that are verified to be native. */\nvar nativeCreate = getNative(Object, 'create');\n\nexport default nativeCreate;\n","import nativeCreate from './_nativeCreate.js';\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n}\n\nexport default hashGet;\n","import nativeCreate from './_nativeCreate.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);\n}\n\nexport default hashHas;\n","import hashClear from './_hashClear.js';\nimport hashDelete from './_hashDelete.js';\nimport hashGet from './_hashGet.js';\nimport hashHas from './_hashHas.js';\nimport hashSet from './_hashSet.js';\n\n/**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Hash(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `Hash`.\nHash.prototype.clear = hashClear;\nHash.prototype['delete'] = hashDelete;\nHash.prototype.get = hashGet;\nHash.prototype.has = hashHas;\nHash.prototype.set = hashSet;\n\nexport default Hash;\n","import nativeCreate from './_nativeCreate.js';\n\n/**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\nfunction hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n}\n\nexport default hashClear;\n","/**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n}\n\nexport default hashDelete;\n","import nativeCreate from './_nativeCreate.js';\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\nfunction hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n return this;\n}\n\nexport default hashSet;\n","import isKeyable from './_isKeyable.js';\n\n/**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\nfunction getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key)\n ? data[typeof key == 'string' ? 'string' : 'hash']\n : data.map;\n}\n\nexport default getMapData;\n","/**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\nfunction isKeyable(value) {\n var type = typeof value;\n return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n ? (value !== '__proto__')\n : (value === null);\n}\n\nexport default isKeyable;\n","import mapCacheClear from './_mapCacheClear.js';\nimport mapCacheDelete from './_mapCacheDelete.js';\nimport mapCacheGet from './_mapCacheGet.js';\nimport mapCacheHas from './_mapCacheHas.js';\nimport mapCacheSet from './_mapCacheSet.js';\n\n/**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `MapCache`.\nMapCache.prototype.clear = mapCacheClear;\nMapCache.prototype['delete'] = mapCacheDelete;\nMapCache.prototype.get = mapCacheGet;\nMapCache.prototype.has = mapCacheHas;\nMapCache.prototype.set = mapCacheSet;\n\nexport default MapCache;\n","import Hash from './_Hash.js';\nimport ListCache from './_ListCache.js';\nimport Map from './_Map.js';\n\n/**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\nfunction mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n 'hash': new Hash,\n 'map': new (Map || ListCache),\n 'string': new Hash\n };\n}\n\nexport default mapCacheClear;\n","import getMapData from './_getMapData.js';\n\n/**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction mapCacheDelete(key) {\n var result = getMapData(this, key)['delete'](key);\n this.size -= result ? 1 : 0;\n return result;\n}\n\nexport default mapCacheDelete;\n","import getMapData from './_getMapData.js';\n\n/**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction mapCacheGet(key) {\n return getMapData(this, key).get(key);\n}\n\nexport default mapCacheGet;\n","import getMapData from './_getMapData.js';\n\n/**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction mapCacheHas(key) {\n return getMapData(this, key).has(key);\n}\n\nexport default mapCacheHas;\n","import getMapData from './_getMapData.js';\n\n/**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\nfunction mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n}\n\nexport default mapCacheSet;\n","import ListCache from './_ListCache.js';\nimport stackClear from './_stackClear.js';\nimport stackDelete from './_stackDelete.js';\nimport stackGet from './_stackGet.js';\nimport stackHas from './_stackHas.js';\nimport stackSet from './_stackSet.js';\n\n/**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Stack(entries) {\n var data = this.__data__ = new ListCache(entries);\n this.size = data.size;\n}\n\n// Add methods to `Stack`.\nStack.prototype.clear = stackClear;\nStack.prototype['delete'] = stackDelete;\nStack.prototype.get = stackGet;\nStack.prototype.has = stackHas;\nStack.prototype.set = stackSet;\n\nexport default Stack;\n","import ListCache from './_ListCache.js';\n\n/**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\nfunction stackClear() {\n this.__data__ = new ListCache;\n this.size = 0;\n}\n\nexport default stackClear;\n","/**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction stackDelete(key) {\n var data = this.__data__,\n result = data['delete'](key);\n\n this.size = data.size;\n return result;\n}\n\nexport default stackDelete;\n","/**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction stackGet(key) {\n return this.__data__.get(key);\n}\n\nexport default stackGet;\n","/**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction stackHas(key) {\n return this.__data__.has(key);\n}\n\nexport default stackHas;\n","import ListCache from './_ListCache.js';\nimport Map from './_Map.js';\nimport MapCache from './_MapCache.js';\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\nfunction stackSet(key, value) {\n var data = this.__data__;\n if (data instanceof ListCache) {\n var pairs = data.__data__;\n if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {\n pairs.push([key, value]);\n this.size = ++data.size;\n return this;\n }\n data = this.__data__ = new MapCache(pairs);\n }\n data.set(key, value);\n this.size = data.size;\n return this;\n}\n\nexport default stackSet;\n","import MapCache from './_MapCache.js';\nimport setCacheAdd from './_setCacheAdd.js';\nimport setCacheHas from './_setCacheHas.js';\n\n/**\n *\n * Creates an array cache object to store unique values.\n *\n * @private\n * @constructor\n * @param {Array} [values] The values to cache.\n */\nfunction SetCache(values) {\n var index = -1,\n length = values == null ? 0 : values.length;\n\n this.__data__ = new MapCache;\n while (++index < length) {\n this.add(values[index]);\n }\n}\n\n// Add methods to `SetCache`.\nSetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\nSetCache.prototype.has = setCacheHas;\n\nexport default SetCache;\n","/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/**\n * Adds `value` to the array cache.\n *\n * @private\n * @name add\n * @memberOf SetCache\n * @alias push\n * @param {*} value The value to cache.\n * @returns {Object} Returns the cache instance.\n */\nfunction setCacheAdd(value) {\n this.__data__.set(value, HASH_UNDEFINED);\n return this;\n}\n\nexport default setCacheAdd;\n","/**\n * Checks if `value` is in the array cache.\n *\n * @private\n * @name has\n * @memberOf SetCache\n * @param {*} value The value to search for.\n * @returns {number} Returns `true` if `value` is found, else `false`.\n */\nfunction setCacheHas(value) {\n return this.__data__.has(value);\n}\n\nexport default setCacheHas;\n","/**\n * A specialized version of `_.some` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\nfunction arraySome(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (predicate(array[index], index, array)) {\n return true;\n }\n }\n return false;\n}\n\nexport default arraySome;\n","import SetCache from './_SetCache.js';\nimport arraySome from './_arraySome.js';\nimport cacheHas from './_cacheHas.js';\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * A specialized version of `baseIsEqualDeep` for arrays with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Array} array The array to compare.\n * @param {Array} other The other array to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `array` and `other` objects.\n * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.\n */\nfunction equalArrays(array, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n arrLength = array.length,\n othLength = other.length;\n\n if (arrLength != othLength && !(isPartial && othLength > arrLength)) {\n return false;\n }\n // Check that cyclic values are equal.\n var arrStacked = stack.get(array);\n var othStacked = stack.get(other);\n if (arrStacked && othStacked) {\n return arrStacked == other && othStacked == array;\n }\n var index = -1,\n result = true,\n seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;\n\n stack.set(array, other);\n stack.set(other, array);\n\n // Ignore non-index properties.\n while (++index < arrLength) {\n var arrValue = array[index],\n othValue = other[index];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, arrValue, index, other, array, stack)\n : customizer(arrValue, othValue, index, array, other, stack);\n }\n if (compared !== undefined) {\n if (compared) {\n continue;\n }\n result = false;\n break;\n }\n // Recursively compare arrays (susceptible to call stack limits).\n if (seen) {\n if (!arraySome(other, function(othValue, othIndex) {\n if (!cacheHas(seen, othIndex) &&\n (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {\n return seen.push(othIndex);\n }\n })) {\n result = false;\n break;\n }\n } else if (!(\n arrValue === othValue ||\n equalFunc(arrValue, othValue, bitmask, customizer, stack)\n )) {\n result = false;\n break;\n }\n }\n stack['delete'](array);\n stack['delete'](other);\n return result;\n}\n\nexport default equalArrays;\n","/**\n * Checks if a `cache` value for `key` exists.\n *\n * @private\n * @param {Object} cache The cache to query.\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction cacheHas(cache, key) {\n return cache.has(key);\n}\n\nexport default cacheHas;\n","import root from './_root.js';\n\n/** Built-in value references. */\nvar Uint8Array = root.Uint8Array;\n\nexport default Uint8Array;\n","/**\n * Converts `map` to its key-value pairs.\n *\n * @private\n * @param {Object} map The map to convert.\n * @returns {Array} Returns the key-value pairs.\n */\nfunction mapToArray(map) {\n var index = -1,\n result = Array(map.size);\n\n map.forEach(function(value, key) {\n result[++index] = [key, value];\n });\n return result;\n}\n\nexport default mapToArray;\n","/**\n * Converts `set` to an array of its values.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the values.\n */\nfunction setToArray(set) {\n var index = -1,\n result = Array(set.size);\n\n set.forEach(function(value) {\n result[++index] = value;\n });\n return result;\n}\n\nexport default setToArray;\n","import Symbol from './_Symbol.js';\nimport Uint8Array from './_Uint8Array.js';\nimport eq from './eq.js';\nimport equalArrays from './_equalArrays.js';\nimport mapToArray from './_mapToArray.js';\nimport setToArray from './_setToArray.js';\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/** `Object#toString` result references. */\nvar boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]';\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;\n\n/**\n * A specialized version of `baseIsEqualDeep` for comparing objects of\n * the same `toStringTag`.\n *\n * **Note:** This function only supports comparing values with tags of\n * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {string} tag The `toStringTag` of the objects to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {\n switch (tag) {\n case dataViewTag:\n if ((object.byteLength != other.byteLength) ||\n (object.byteOffset != other.byteOffset)) {\n return false;\n }\n object = object.buffer;\n other = other.buffer;\n\n case arrayBufferTag:\n if ((object.byteLength != other.byteLength) ||\n !equalFunc(new Uint8Array(object), new Uint8Array(other))) {\n return false;\n }\n return true;\n\n case boolTag:\n case dateTag:\n case numberTag:\n // Coerce booleans to `1` or `0` and dates to milliseconds.\n // Invalid dates are coerced to `NaN`.\n return eq(+object, +other);\n\n case errorTag:\n return object.name == other.name && object.message == other.message;\n\n case regexpTag:\n case stringTag:\n // Coerce regexes to strings and treat strings, primitives and objects,\n // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring\n // for more details.\n return object == (other + '');\n\n case mapTag:\n var convert = mapToArray;\n\n case setTag:\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG;\n convert || (convert = setToArray);\n\n if (object.size != other.size && !isPartial) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked) {\n return stacked == other;\n }\n bitmask |= COMPARE_UNORDERED_FLAG;\n\n // Recursively compare objects (susceptible to call stack limits).\n stack.set(object, other);\n var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);\n stack['delete'](object);\n return result;\n\n case symbolTag:\n if (symbolValueOf) {\n return symbolValueOf.call(object) == symbolValueOf.call(other);\n }\n }\n return false;\n}\n\nexport default equalByTag;\n","/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\nexport default isArray;\n","import arrayFilter from './_arrayFilter.js';\nimport stubArray from './stubArray.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeGetSymbols = Object.getOwnPropertySymbols;\n\n/**\n * Creates an array of the own enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\nvar getSymbols = !nativeGetSymbols ? stubArray : function(object) {\n if (object == null) {\n return [];\n }\n object = Object(object);\n return arrayFilter(nativeGetSymbols(object), function(symbol) {\n return propertyIsEnumerable.call(object, symbol);\n });\n};\n\nexport default getSymbols;\n","/**\n * A specialized version of `_.filter` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\nfunction arrayFilter(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result[resIndex++] = value;\n }\n }\n return result;\n}\n\nexport default arrayFilter;\n","/**\n * This method returns a new empty array.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {Array} Returns the new empty array.\n * @example\n *\n * var arrays = _.times(2, _.stubArray);\n *\n * console.log(arrays);\n * // => [[], []]\n *\n * console.log(arrays[0] === arrays[1]);\n * // => false\n */\nfunction stubArray() {\n return [];\n}\n\nexport default stubArray;\n","/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nexport default isObjectLike;\n","import baseGetTag from './_baseGetTag.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]';\n\n/**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\nfunction baseIsArguments(value) {\n return isObjectLike(value) && baseGetTag(value) == argsTag;\n}\n\nexport default baseIsArguments;\n","import baseIsArguments from './_baseIsArguments.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\nvar isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\n !propertyIsEnumerable.call(value, 'callee');\n};\n\nexport default isArguments;\n","import root from './_root.js';\nimport stubFalse from './stubFalse.js';\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;\n\n/**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\nvar isBuffer = nativeIsBuffer || stubFalse;\n\nexport default isBuffer;\n","/**\n * This method returns `false`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `false`.\n * @example\n *\n * _.times(2, _.stubFalse);\n * // => [false, false]\n */\nfunction stubFalse() {\n return false;\n}\n\nexport default stubFalse;\n","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** Used to detect unsigned integer values. */\nvar reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\nfunction isIndex(value, length) {\n var type = typeof value;\n length = length == null ? MAX_SAFE_INTEGER : length;\n\n return !!length &&\n (type == 'number' ||\n (type != 'symbol' && reIsUint.test(value))) &&\n (value > -1 && value % 1 == 0 && value < length);\n}\n\nexport default isIndex;\n","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\nexport default isLength;\n","import baseGetTag from './_baseGetTag.js';\nimport isLength from './isLength.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n objectTag = '[object Object]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/** Used to identify `toStringTag` values of typed arrays. */\nvar typedArrayTags = {};\ntypedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\ntypedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\ntypedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\ntypedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\ntypedArrayTags[uint32Tag] = true;\ntypedArrayTags[argsTag] = typedArrayTags[arrayTag] =\ntypedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\ntypedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\ntypedArrayTags[errorTag] = typedArrayTags[funcTag] =\ntypedArrayTags[mapTag] = typedArrayTags[numberTag] =\ntypedArrayTags[objectTag] = typedArrayTags[regexpTag] =\ntypedArrayTags[setTag] = typedArrayTags[stringTag] =\ntypedArrayTags[weakMapTag] = false;\n\n/**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\nfunction baseIsTypedArray(value) {\n return isObjectLike(value) &&\n isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n}\n\nexport default baseIsTypedArray;\n","import freeGlobal from './_freeGlobal.js';\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Detect free variable `process` from Node.js. */\nvar freeProcess = moduleExports && freeGlobal.process;\n\n/** Used to access faster Node.js helpers. */\nvar nodeUtil = (function() {\n try {\n // Use `util.types` for Node.js 10+.\n var types = freeModule && freeModule.require && freeModule.require('util').types;\n\n if (types) {\n return types;\n }\n\n // Legacy `process.binding('util')` for Node.js < 10.\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\n } catch (e) {}\n}());\n\nexport default nodeUtil;\n","import baseIsTypedArray from './_baseIsTypedArray.js';\nimport baseUnary from './_baseUnary.js';\nimport nodeUtil from './_nodeUtil.js';\n\n/* Node.js helper references. */\nvar nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n/**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\nvar isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\nexport default isTypedArray;\n","/**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\nfunction baseUnary(func) {\n return function(value) {\n return func(value);\n };\n}\n\nexport default baseUnary;\n","import baseTimes from './_baseTimes.js';\nimport isArguments from './isArguments.js';\nimport isArray from './isArray.js';\nimport isBuffer from './isBuffer.js';\nimport isIndex from './_isIndex.js';\nimport isTypedArray from './isTypedArray.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\nfunction arrayLikeKeys(value, inherited) {\n var isArr = isArray(value),\n isArg = !isArr && isArguments(value),\n isBuff = !isArr && !isArg && isBuffer(value),\n isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n skipIndexes = isArr || isArg || isBuff || isType,\n result = skipIndexes ? baseTimes(value.length, String) : [],\n length = result.length;\n\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) &&\n !(skipIndexes && (\n // Safari 9 has enumerable `arguments.length` in strict mode.\n key == 'length' ||\n // Node.js 0.10 has enumerable non-index properties on buffers.\n (isBuff && (key == 'offset' || key == 'parent')) ||\n // PhantomJS 2 has enumerable non-index properties on typed arrays.\n (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\n // Skip index properties.\n isIndex(key, length)\n ))) {\n result.push(key);\n }\n }\n return result;\n}\n\nexport default arrayLikeKeys;\n","/**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\nfunction baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n}\n\nexport default baseTimes;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\nfunction isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n return value === proto;\n}\n\nexport default isPrototype;\n","import overArg from './_overArg.js';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeKeys = overArg(Object.keys, Object);\n\nexport default nativeKeys;\n","/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n}\n\nexport default overArg;\n","import isPrototype from './_isPrototype.js';\nimport nativeKeys from './_nativeKeys.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeys(object) {\n if (!isPrototype(object)) {\n return nativeKeys(object);\n }\n var result = [];\n for (var key in Object(object)) {\n if (hasOwnProperty.call(object, key) && key != 'constructor') {\n result.push(key);\n }\n }\n return result;\n}\n\nexport default baseKeys;\n","import arrayLikeKeys from './_arrayLikeKeys.js';\nimport baseKeys from './_baseKeys.js';\nimport isArrayLike from './isArrayLike.js';\n\n/**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\nfunction keys(object) {\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n}\n\nexport default keys;\n","import isFunction from './isFunction.js';\nimport isLength from './isLength.js';\n\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n}\n\nexport default isArrayLike;\n","import baseGetAllKeys from './_baseGetAllKeys.js';\nimport getSymbols from './_getSymbols.js';\nimport keys from './keys.js';\n\n/**\n * Creates an array of own enumerable property names and symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction getAllKeys(object) {\n return baseGetAllKeys(object, keys, getSymbols);\n}\n\nexport default getAllKeys;\n","import arrayPush from './_arrayPush.js';\nimport isArray from './isArray.js';\n\n/**\n * The base implementation of `getAllKeys` and `getAllKeysIn` which uses\n * `keysFunc` and `symbolsFunc` to get the enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @param {Function} symbolsFunc The function to get the symbols of `object`.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction baseGetAllKeys(object, keysFunc, symbolsFunc) {\n var result = keysFunc(object);\n return isArray(object) ? result : arrayPush(result, symbolsFunc(object));\n}\n\nexport default baseGetAllKeys;\n","/**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */\nfunction arrayPush(array, values) {\n var index = -1,\n length = values.length,\n offset = array.length;\n\n while (++index < length) {\n array[offset + index] = values[index];\n }\n return array;\n}\n\nexport default arrayPush;\n","import getAllKeys from './_getAllKeys.js';\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1;\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * A specialized version of `baseIsEqualDeep` for objects with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalObjects(object, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n objProps = getAllKeys(object),\n objLength = objProps.length,\n othProps = getAllKeys(other),\n othLength = othProps.length;\n\n if (objLength != othLength && !isPartial) {\n return false;\n }\n var index = objLength;\n while (index--) {\n var key = objProps[index];\n if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {\n return false;\n }\n }\n // Check that cyclic values are equal.\n var objStacked = stack.get(object);\n var othStacked = stack.get(other);\n if (objStacked && othStacked) {\n return objStacked == other && othStacked == object;\n }\n var result = true;\n stack.set(object, other);\n stack.set(other, object);\n\n var skipCtor = isPartial;\n while (++index < objLength) {\n key = objProps[index];\n var objValue = object[key],\n othValue = other[key];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, objValue, key, other, object, stack)\n : customizer(objValue, othValue, key, object, other, stack);\n }\n // Recursively compare objects (susceptible to call stack limits).\n if (!(compared === undefined\n ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))\n : compared\n )) {\n result = false;\n break;\n }\n skipCtor || (skipCtor = key == 'constructor');\n }\n if (result && !skipCtor) {\n var objCtor = object.constructor,\n othCtor = other.constructor;\n\n // Non `Object` object instances with different constructors are not equal.\n if (objCtor != othCtor &&\n ('constructor' in object && 'constructor' in other) &&\n !(typeof objCtor == 'function' && objCtor instanceof objCtor &&\n typeof othCtor == 'function' && othCtor instanceof othCtor)) {\n result = false;\n }\n }\n stack['delete'](object);\n stack['delete'](other);\n return result;\n}\n\nexport default equalObjects;\n","import getNative from './_getNative.js';\nimport root from './_root.js';\n\n/* Built-in method references that are verified to be native. */\nvar DataView = getNative(root, 'DataView');\n\nexport default DataView;\n","import getNative from './_getNative.js';\nimport root from './_root.js';\n\n/* Built-in method references that are verified to be native. */\nvar Promise = getNative(root, 'Promise');\n\nexport default Promise;\n","import getNative from './_getNative.js';\nimport root from './_root.js';\n\n/* Built-in method references that are verified to be native. */\nvar Set = getNative(root, 'Set');\n\nexport default Set;\n","import getNative from './_getNative.js';\nimport root from './_root.js';\n\n/* Built-in method references that are verified to be native. */\nvar WeakMap = getNative(root, 'WeakMap');\n\nexport default WeakMap;\n","import DataView from './_DataView.js';\nimport Map from './_Map.js';\nimport Promise from './_Promise.js';\nimport Set from './_Set.js';\nimport WeakMap from './_WeakMap.js';\nimport baseGetTag from './_baseGetTag.js';\nimport toSource from './_toSource.js';\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]',\n objectTag = '[object Object]',\n promiseTag = '[object Promise]',\n setTag = '[object Set]',\n weakMapTag = '[object WeakMap]';\n\nvar dataViewTag = '[object DataView]';\n\n/** Used to detect maps, sets, and weakmaps. */\nvar dataViewCtorString = toSource(DataView),\n mapCtorString = toSource(Map),\n promiseCtorString = toSource(Promise),\n setCtorString = toSource(Set),\n weakMapCtorString = toSource(WeakMap);\n\n/**\n * Gets the `toStringTag` of `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nvar getTag = baseGetTag;\n\n// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.\nif ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||\n (Map && getTag(new Map) != mapTag) ||\n (Promise && getTag(Promise.resolve()) != promiseTag) ||\n (Set && getTag(new Set) != setTag) ||\n (WeakMap && getTag(new WeakMap) != weakMapTag)) {\n getTag = function(value) {\n var result = baseGetTag(value),\n Ctor = result == objectTag ? value.constructor : undefined,\n ctorString = Ctor ? toSource(Ctor) : '';\n\n if (ctorString) {\n switch (ctorString) {\n case dataViewCtorString: return dataViewTag;\n case mapCtorString: return mapTag;\n case promiseCtorString: return promiseTag;\n case setCtorString: return setTag;\n case weakMapCtorString: return weakMapTag;\n }\n }\n return result;\n };\n}\n\nexport default getTag;\n","import Stack from './_Stack.js';\nimport equalArrays from './_equalArrays.js';\nimport equalByTag from './_equalByTag.js';\nimport equalObjects from './_equalObjects.js';\nimport getTag from './_getTag.js';\nimport isArray from './isArray.js';\nimport isBuffer from './isBuffer.js';\nimport isTypedArray from './isTypedArray.js';\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n objectTag = '[object Object]';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * A specialized version of `baseIsEqual` for arrays and objects which performs\n * deep comparisons and tracks traversed objects enabling objects with circular\n * references to be compared.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} [stack] Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {\n var objIsArr = isArray(object),\n othIsArr = isArray(other),\n objTag = objIsArr ? arrayTag : getTag(object),\n othTag = othIsArr ? arrayTag : getTag(other);\n\n objTag = objTag == argsTag ? objectTag : objTag;\n othTag = othTag == argsTag ? objectTag : othTag;\n\n var objIsObj = objTag == objectTag,\n othIsObj = othTag == objectTag,\n isSameTag = objTag == othTag;\n\n if (isSameTag && isBuffer(object)) {\n if (!isBuffer(other)) {\n return false;\n }\n objIsArr = true;\n objIsObj = false;\n }\n if (isSameTag && !objIsObj) {\n stack || (stack = new Stack);\n return (objIsArr || isTypedArray(object))\n ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)\n : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);\n }\n if (!(bitmask & COMPARE_PARTIAL_FLAG)) {\n var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),\n othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');\n\n if (objIsWrapped || othIsWrapped) {\n var objUnwrapped = objIsWrapped ? object.value() : object,\n othUnwrapped = othIsWrapped ? other.value() : other;\n\n stack || (stack = new Stack);\n return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);\n }\n }\n if (!isSameTag) {\n return false;\n }\n stack || (stack = new Stack);\n return equalObjects(object, other, bitmask, customizer, equalFunc, stack);\n}\n\nexport default baseIsEqualDeep;\n","import baseIsEqualDeep from './_baseIsEqualDeep.js';\nimport isObjectLike from './isObjectLike.js';\n\n/**\n * The base implementation of `_.isEqual` which supports partial comparisons\n * and tracks traversed objects.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Unordered comparison\n * 2 - Partial comparison\n * @param {Function} [customizer] The function to customize comparisons.\n * @param {Object} [stack] Tracks traversed `value` and `other` objects.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n */\nfunction baseIsEqual(value, other, bitmask, customizer, stack) {\n if (value === other) {\n return true;\n }\n if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {\n return value !== value && other !== other;\n }\n return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);\n}\n\nexport default baseIsEqual;\n","import baseIsEqual from './_baseIsEqual.js';\n\n/**\n * Performs a deep comparison between two values to determine if they are\n * equivalent.\n *\n * **Note:** This method supports comparing arrays, array buffers, booleans,\n * date objects, error objects, maps, numbers, `Object` objects, regexes,\n * sets, strings, symbols, and typed arrays. `Object` objects are compared\n * by their own, not inherited, enumerable properties. Functions and DOM\n * nodes are compared by strict equality, i.e. `===`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.isEqual(object, other);\n * // => true\n *\n * object === other;\n * // => false\n */\nfunction isEqual(value, other) {\n return baseIsEqual(value, other);\n}\n\nexport default isEqual;\n","/** @module @category Extension */ import isEqual from \"lodash-es/isEqual\";\nimport { configExtensionStore } from \"@openmrs/esm-config\";\nimport { createGlobalStore, getGlobalStore } from \"@openmrs/esm-state\";\nconst extensionInternalStore = createGlobalStore(\"extensionsInternal\", {\n slots: {},\n extensions: {}\n});\n/**\n * This gets the extension system's internal store. It is subject\n * to change radically and without warning. It should not be used\n * outside esm-core.\n * @internal\n */ export const getExtensionInternalStore = ()=>getGlobalStore(\"extensionsInternal\", {\n slots: {},\n extensions: {}\n });\n/** @internal */ export function updateInternalExtensionStore(updater) {\n const state = extensionInternalStore.getState();\n const newState = updater(state);\n if (newState !== state) {\n extensionInternalStore.setState(newState);\n }\n}\n/**\n * This returns a store that modules can use to get information about the\n * state of the extension system.\n */ export const getExtensionStore = ()=>getGlobalStore(\"extensions\", {\n slots: {}\n });\n/**\n * esm-config maintains its own store of the extension information it needs\n * to generate extension configs. We keep it updated based on what's in\n * `extensionStore`.\n */ updateConfigExtensionStore(extensionInternalStore.getState());\nextensionInternalStore.subscribe(updateConfigExtensionStore);\nfunction updateConfigExtensionStore(extensionState) {\n const configExtensionRecords = [];\n for (let extensionInfo of Object.values(extensionState.extensions)){\n for (let instance of extensionInfo.instances){\n configExtensionRecords.push({\n slotModuleName: instance.slotModuleName,\n extensionModuleName: extensionInfo.moduleName,\n slotName: instance.slotName,\n extensionId: instance.id\n });\n }\n }\n if (!isEqual(configExtensionStore.getState().mountedExtensions, configExtensionRecords)) {\n configExtensionStore.setState({\n mountedExtensions: configExtensionRecords\n });\n }\n}\n","/**\n * Checks if `value` is `undefined`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.\n * @example\n *\n * _.isUndefined(void 0);\n * // => true\n *\n * _.isUndefined(null);\n * // => false\n */\nfunction isUndefined(value) {\n return value === undefined;\n}\n\nexport default isUndefined;\n","/** @module @category Extension */ /*\n * We have the following extension modes:\n *\n * - attached (set via code in form of: attach, detach, ...)\n * - configured (set via configuration in form of: added, removed, ...)\n * - assigned (computed from attached and configured)\n * - connected (computed from assigned using connectivity and online / offline)\n */ function _define_property(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nfunction _object_spread(target) {\n for(var i = 1; i < arguments.length; i++){\n var source = arguments[i] != null ? arguments[i] : {};\n var ownKeys = Object.keys(source);\n if (typeof Object.getOwnPropertySymbols === \"function\") {\n ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {\n return Object.getOwnPropertyDescriptor(source, sym).enumerable;\n }));\n }\n ownKeys.forEach(function(key) {\n _define_property(target, key, source[key]);\n });\n }\n return target;\n}\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) {\n symbols = symbols.filter(function(sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n }\n keys.push.apply(keys, symbols);\n }\n return keys;\n}\nfunction _object_spread_props(target, source) {\n source = source != null ? source : {};\n if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function(key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n return target;\n}\nimport { getSessionStore, userHasAccess } from \"@openmrs/esm-api\";\nimport { getExtensionConfigFromStore, getExtensionsConfigStore, getExtensionSlotConfig, getExtensionSlotConfigFromStore, getExtensionSlotsConfigStore } from \"@openmrs/esm-config\";\nimport isEqual from \"lodash-es/isEqual\";\nimport isUndefined from \"lodash-es/isUndefined\";\nimport { getExtensionInternalStore, checkStatusFor } from \".\";\nimport { getExtensionStore, updateInternalExtensionStore } from \"./store\";\nconst extensionInternalStore = getExtensionInternalStore();\nconst extensionStore = getExtensionStore();\nconst slotsConfigStore = getExtensionSlotsConfigStore();\nconst extensionsConfigStore = getExtensionsConfigStore();\n// Keep the output store updated\nfunction updateExtensionOutputStore(internalState, extensionSlotConfigs, extensionsConfigStore) {\n const slots = {};\n for (let [slotName, slot] of Object.entries(internalState.slots)){\n const { config } = getExtensionSlotConfigFromStore(extensionSlotConfigs, slot.name);\n const assignedExtensions = getAssignedExtensionsFromSlotData(slotName, internalState, config, extensionsConfigStore);\n slots[slotName] = {\n moduleName: slot.moduleName,\n assignedExtensions\n };\n }\n if (!isEqual(extensionStore.getState().slots, slots)) {\n extensionStore.setState({\n slots\n });\n }\n}\nextensionInternalStore.subscribe((internalStore)=>{\n updateExtensionOutputStore(internalStore, slotsConfigStore.getState(), extensionsConfigStore.getState());\n});\nslotsConfigStore.subscribe((slotConfigs)=>{\n updateExtensionOutputStore(extensionInternalStore.getState(), slotConfigs, extensionsConfigStore.getState());\n});\nextensionsConfigStore.subscribe((extensionConfigs)=>{\n updateExtensionOutputStore(extensionInternalStore.getState(), slotsConfigStore.getState(), extensionConfigs);\n});\nfunction createNewExtensionSlotInfo(slotName, moduleName) {\n return {\n moduleName,\n name: slotName,\n attachedIds: [],\n config: null\n };\n}\n/**\n * Given an extension ID, which is a string uniquely identifying\n * an instance of an extension within an extension slot, this\n * returns the extension name.\n *\n * @example\n * ```js\n * getExtensionNameFromId(\"foo#bar\")\n * --> \"foo\"\n * getExtensionNameFromId(\"baz\")\n * --> \"baz\"\n * ```\n */ export function getExtensionNameFromId(extensionId) {\n const [extensionName] = extensionId.split(\"#\");\n return extensionName;\n}\nexport function getExtensionRegistrationFrom(state, extensionId) {\n const name = getExtensionNameFromId(extensionId);\n return state.extensions[name];\n}\nexport function getExtensionRegistration(extensionId) {\n const state = extensionInternalStore.getState();\n return getExtensionRegistrationFrom(state, extensionId);\n}\n/**\n * Extensions must be registered in order to be rendered.\n * This is handled by the app shell, when extensions are provided\n * via the `setupOpenMRS` return object.\n * @internal\n */ export const registerExtension = (extensionRegistration)=>extensionInternalStore.setState((state)=>{\n state.extensions[extensionRegistration.name] = _object_spread_props(_object_spread({}, extensionRegistration), {\n instances: []\n });\n return state;\n });\n/**\n * Attach an extension to an extension slot.\n *\n * This will cause the extension to be rendered into the specified\n * extension slot, unless it is removed by configuration. Using\n * `attach` is an alternative to specifying the `slot` or `slots`\n * in the extension declaration.\n *\n * It is particularly useful when creating a slot into which\n * you want to render an existing extension. This enables you\n * to do so without modifying the extension's declaration, which\n * may be impractical or inappropriate, for example if you are\n * writing a module for a specific implementation.\n *\n * @param slotName a name uniquely identifying the slot\n * @param extensionId an extension name, with an optional #-suffix\n * to distinguish it from other instances of the same extension\n * attached to the same slot.\n */ export function attach(slotName, extensionId) {\n updateInternalExtensionStore((state)=>{\n const existingSlot = state.slots[slotName];\n if (!existingSlot) {\n return _object_spread_props(_object_spread({}, state), {\n slots: _object_spread_props(_object_spread({}, state.slots), {\n [slotName]: _object_spread_props(_object_spread({}, createNewExtensionSlotInfo(slotName)), {\n attachedIds: [\n extensionId\n ]\n })\n })\n });\n } else {\n return _object_spread_props(_object_spread({}, state), {\n slots: _object_spread_props(_object_spread({}, state.slots), {\n [slotName]: _object_spread_props(_object_spread({}, existingSlot), {\n attachedIds: [\n ...existingSlot.attachedIds,\n extensionId\n ]\n })\n })\n });\n }\n });\n}\n/** Avoid using this. Extension attachments should be considered declarative. */ export function detach(extensionSlotName, extensionId) {\n updateInternalExtensionStore((state)=>{\n const existingSlot = state.slots[extensionSlotName];\n if (existingSlot && existingSlot.attachedIds.includes(extensionId)) {\n return _object_spread_props(_object_spread({}, state), {\n slots: _object_spread_props(_object_spread({}, state.slots), {\n [extensionSlotName]: _object_spread_props(_object_spread({}, existingSlot), {\n attachedIds: existingSlot.attachedIds.filter((id)=>id !== extensionId)\n })\n })\n });\n } else {\n return state;\n }\n });\n}\n/** Avoid using this. Extension attachments should be considered declarative. */ export function detachAll(extensionSlotName) {\n updateInternalExtensionStore((state)=>{\n const existingSlot = state.slots[extensionSlotName];\n if (existingSlot) {\n return _object_spread_props(_object_spread({}, state), {\n slots: _object_spread_props(_object_spread({}, state.slots), {\n [extensionSlotName]: _object_spread_props(_object_spread({}, existingSlot), {\n attachedIds: []\n })\n })\n });\n } else {\n return state;\n }\n });\n}\n/**\n * Get an order index for the extension. This will\n * come from either its configured order, its registered order\n * parameter, or the order in which it happened to be attached.\n */ function getOrder(extensionId, configuredOrder, registeredOrderIndex, attachedOrder) {\n const configuredIndex = configuredOrder.indexOf(extensionId);\n if (configuredIndex !== -1) {\n return configuredIndex;\n } else if (registeredOrderIndex !== undefined) {\n // extensions that don't have a configured order should appear after those that do\n return 1000 + registeredOrderIndex;\n } else {\n const assignedIndex = attachedOrder.indexOf(extensionId);\n if (assignedIndex !== -1) {\n // extensions that have neither a configured nor registered order should appear\n // after all others\n return 2000 + assignedIndex;\n } else {\n return -1;\n }\n }\n}\n/**\n * Filters a list of extensions according to whether they support the\n * current connectivity status.\n *\n * @param assignedExtensions The list of extensions to filter.\n * @param online Whether the app is currently online. If `null`, uses `navigator.onLine`.\n * @returns A list of extensions that should be rendered\n */ export function getConnectedExtensions(assignedExtensions, online = null) {\n const isOnline = online !== null && online !== void 0 ? online : navigator.onLine;\n return assignedExtensions.filter((e)=>checkStatusFor(isOnline, e.online, e.offline));\n}\nfunction getAssignedExtensionsFromSlotData(slotName, internalState, config, extensionConfigStoreState) {\n const attachedIds = internalState.slots[slotName].attachedIds;\n const assignedIds = calculateAssignedIds(config, attachedIds);\n const extensions = [];\n let user = undefined;\n for (let id of assignedIds){\n const { config: extensionConfig } = getExtensionConfigFromStore(extensionConfigStoreState, slotName, id);\n const name = getExtensionNameFromId(id);\n const extension = internalState.extensions[name];\n // if the extension has not been registered yet, do not include it\n if (extension) {\n var _extensionConfig_Displayconditions;\n var _extensionConfig_Displayconditions_privileges, _ref;\n const requiredPrivileges = (_ref = (_extensionConfig_Displayconditions_privileges = extensionConfig === null || extensionConfig === void 0 ? void 0 : (_extensionConfig_Displayconditions = extensionConfig[\"Display conditions\"]) === null || _extensionConfig_Displayconditions === void 0 ? void 0 : _extensionConfig_Displayconditions.privileges) !== null && _extensionConfig_Displayconditions_privileges !== void 0 ? _extensionConfig_Displayconditions_privileges : extension.privileges) !== null && _ref !== void 0 ? _ref : [];\n if (requiredPrivileges && (typeof requiredPrivileges === \"string\" || Array.isArray(requiredPrivileges) && requiredPrivileges.length > 0)) {\n if (isUndefined(user)) {\n var _getSessionStore_getState_session;\n user = (_getSessionStore_getState_session = getSessionStore().getState().session) === null || _getSessionStore_getState_session === void 0 ? void 0 : _getSessionStore_getState_session.user;\n }\n if (!user) {\n continue;\n }\n if (!userHasAccess(requiredPrivileges, user)) {\n continue;\n }\n }\n extensions.push({\n id,\n name,\n moduleName: extension.moduleName,\n config: extensionConfig,\n meta: extension.meta\n });\n }\n }\n return extensions;\n}\n/**\n * Gets the list of extensions assigned to a given slot\n *\n * @param slotName The slot to load the assigned extensions for\n * @returns An array of extensions assigned to the named slot\n */ export function getAssignedExtensions(slotName) {\n const internalState = extensionInternalStore.getState();\n const { config: slotConfig } = getExtensionSlotConfig(slotName);\n const extensionStoreState = extensionsConfigStore.getState();\n return getAssignedExtensionsFromSlotData(slotName, internalState, slotConfig, extensionStoreState);\n}\nfunction calculateAssignedIds(config, attachedIds) {\n const addedIds = config.add || [];\n const removedIds = config.remove || [];\n const idOrder = config.order || [];\n const { extensions } = extensionInternalStore.getState();\n return [\n ...attachedIds,\n ...addedIds\n ].filter((id)=>!removedIds.includes(id)).sort((idA, idB)=>{\n var _extensions_getExtensionNameFromId, _extensions_getExtensionNameFromId1;\n const ai = getOrder(idA, idOrder, (_extensions_getExtensionNameFromId = extensions[getExtensionNameFromId(idA)]) === null || _extensions_getExtensionNameFromId === void 0 ? void 0 : _extensions_getExtensionNameFromId.order, attachedIds);\n const bi = getOrder(idB, idOrder, (_extensions_getExtensionNameFromId1 = extensions[getExtensionNameFromId(idB)]) === null || _extensions_getExtensionNameFromId1 === void 0 ? void 0 : _extensions_getExtensionNameFromId1.order, attachedIds);\n if (bi === -1) {\n return -1;\n } else if (ai === -1) {\n return 1;\n } else {\n return ai - bi;\n }\n });\n}\n/**\n * Used by by extension slots at mount time.\n *\n * @param moduleName The name of the module that contains the extension slot\n * @param slotName The extension slot name that is actually used\n * @internal\n */ export const registerExtensionSlot = (moduleName, slotName)=>{\n return extensionInternalStore.setState((state)=>{\n var _state_slots_slotName;\n const existingModuleName = (_state_slots_slotName = state.slots[slotName]) === null || _state_slots_slotName === void 0 ? void 0 : _state_slots_slotName.moduleName;\n if (existingModuleName && existingModuleName != moduleName) {\n console.warn(`An extension slot with the name '${slotName}' already exists. Refusing to register the same slot name twice (in \"registerExtensionSlot\"). The existing one is from module ${existingModuleName}.`);\n return state;\n }\n if (existingModuleName && existingModuleName == moduleName) {\n // Re-rendering an existing slot\n return state;\n }\n if (state.slots[slotName]) {\n return _object_spread_props(_object_spread({}, state), {\n slots: _object_spread_props(_object_spread({}, state.slots), {\n [slotName]: _object_spread_props(_object_spread({}, state.slots[slotName]), {\n moduleName\n })\n })\n });\n }\n const slot = createNewExtensionSlotInfo(slotName, moduleName);\n return _object_spread_props(_object_spread({}, state), {\n slots: _object_spread_props(_object_spread({}, state.slots), {\n [slotName]: slot\n })\n });\n });\n};\n/**\n * @internal\n * Just for testing.\n */ export const reset = ()=>extensionStore.setState(()=>{\n return {\n slots: {},\n extensions: {}\n };\n });\n","export function checkStatus(online = true, offline = false) {\n const status = navigator.onLine;\n return checkStatusFor(status, online, offline);\n}\nexport function checkStatusFor(status, online = true, offline = false) {\n return Boolean(status ? online : offline);\n}\n","/** @module @category Extension */ function 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 if (info.done) {\n resolve(value);\n } else {\n Promise.resolve(value).then(_next, _throw);\n }\n}\nfunction _async_to_generator(fn) {\n return function() {\n var self = this, args = arguments;\n return new Promise(function(resolve, reject) {\n var gen = fn.apply(self, args);\n function _next(value) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);\n }\n function _throw(err) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);\n }\n _next(undefined);\n });\n };\n}\nfunction _define_property(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nfunction _object_spread(target) {\n for(var i = 1; i < arguments.length; i++){\n var source = arguments[i] != null ? arguments[i] : {};\n var ownKeys = Object.keys(source);\n if (typeof Object.getOwnPropertySymbols === \"function\") {\n ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {\n return Object.getOwnPropertyDescriptor(source, sym).enumerable;\n }));\n }\n ownKeys.forEach(function(key) {\n _define_property(target, key, source[key]);\n });\n }\n return target;\n}\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) {\n symbols = symbols.filter(function(sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n }\n keys.push.apply(keys, symbols);\n }\n return keys;\n}\nfunction _object_spread_props(target, source) {\n source = source != null ? source : {};\n if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function(key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n return target;\n}\nfunction _object_without_properties(source, excluded) {\n if (source == null) return {};\n var target = _object_without_properties_loose(source, excluded);\n var key, i;\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n for(i = 0; i < sourceSymbolKeys.length; i++){\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n return target;\n}\nfunction _object_without_properties_loose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for(i = 0; i < sourceKeys.length; i++){\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}\nimport { mountRootParcel } from \"single-spa\";\nimport { getExtensionNameFromId, getExtensionRegistration } from \"./extensions\";\nimport { checkStatus } from \"./helpers\";\nimport { updateInternalExtensionStore } from \"./store\";\n/**\n * Mounts into a DOM node (representing an extension slot)\n * a lazy-loaded component from *any* frontend module\n * that registered an extension component for this slot.\n */ export function renderExtension(domElement, extensionSlotName, extensionSlotModuleName, extensionId) {\n return _renderExtension.apply(this, arguments);\n}\nfunction _renderExtension() {\n _renderExtension = _async_to_generator(function*(domElement, extensionSlotName, extensionSlotModuleName, extensionId, renderFunction = (x)=>x, additionalProps = {}) {\n const extensionName = getExtensionNameFromId(extensionId);\n const extensionRegistration = getExtensionRegistration(extensionId);\n let parcel = null;\n if (domElement) {\n if (!extensionRegistration) {\n throw Error(`Couldn't find extension '${extensionName}' to attach to '${extensionSlotName}'`);\n }\n const { load , meta , moduleName , online , offline } = extensionRegistration;\n if (checkStatus(online, offline)) {\n updateInternalExtensionStore((state)=>{\n const instance = {\n domElement,\n id: extensionId,\n slotName: extensionSlotName,\n slotModuleName: extensionSlotModuleName\n };\n return _object_spread_props(_object_spread({}, state), {\n extensions: _object_spread_props(_object_spread({}, state.extensions), {\n [extensionName]: _object_spread_props(_object_spread({}, state.extensions[extensionName]), {\n instances: [\n ...state.extensions[extensionName].instances,\n instance\n ]\n })\n })\n });\n });\n const _ref = yield load(), { default: result } = _ref, lifecycle = _object_without_properties(_ref, [\n \"default\"\n ]);\n parcel = mountRootParcel(renderFunction(result !== null && result !== void 0 ? result : lifecycle), _object_spread_props(_object_spread({}, additionalProps), {\n _meta: meta,\n _extensionContext: {\n extensionId,\n extensionSlotName,\n extensionSlotModuleName,\n extensionModuleName: moduleName\n },\n domElement\n }));\n }\n } else {\n console.warn(`Tried to render ${extensionId} into ${extensionSlotName} but no DOM element was available.`);\n }\n return parcel;\n });\n return _renderExtension.apply(this, arguments);\n}\n","export * from \"./store\";\nexport * from \"./extensions\";\nexport * from \"./helpers\";\nexport * from \"./render\";\n// Temporary compatibility hack\n// What is now `extensionInternalStore` used to be exposed\n// and used as `extensionStore`.\nimport { getExtensionInternalStore } from \"./store\";\n/** @deprecated Use `getExtensionStore`. The structure of this store has also changed. */ const internalStore = getExtensionInternalStore();\nexport { internalStore as extensionStore };\n"],"names":["resolveDirectory","exports","rootDirLevel","meta","url","console","error","Error","urlString","rootDirectoryLevel","a","document","createElement","href","pathname","numDirsProcessed","index","length","finalPath","slice","protocol","host","Number","isInteger","module","__WEBPACK_EXTERNAL_MODULE__766__","__WEBPACK_EXTERNAL_MODULE__824__","__WEBPACK_EXTERNAL_MODULE__685__","__WEBPACK_EXTERNAL_MODULE__645__","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","y","__system_context__","d","definition","key","o","Object","defineProperty","enumerable","get","g","globalThis","this","Function","e","window","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","scriptUrl","importScripts","location","currentScript","src","scripts","getElementsByTagName","i","replace","p","autoPublicPath","other","array","splice","Array","ListCache","entries","clear","entry","set","__data__","size","data","pop","has","push","global","freeSelf","self","objectProto","nativeObjectToString","toString","symToStringTag","isOwn","tag","unmasked","result","type","uid","maskSrcKey","exec","keys","IE_PROTO","funcToString","func","reIsHostCtor","reIsNative","RegExp","test","object","Hash","map","MapCache","Stack","pairs","LARGE_ARRAY_SIZE","SetCache","values","add","predicate","bitmask","customizer","equalFunc","stack","isPartial","arrLength","othLength","arrStacked","othStacked","seen","arrValue","othValue","compared","othIndex","Uint8Array","forEach","symbolProto","symbolValueOf","valueOf","isArray","propertyIsEnumerable","nativeGetSymbols","getOwnPropertySymbols","resIndex","symbol","isArguments","arguments","freeExports","nodeType","freeModule","Buffer","isBuffer","reIsUint","typedArrayTags","freeProcess","process","nodeUtil","require","types","binding","nodeIsTypedArray","isTypedArray","inherited","isArr","isArg","isBuff","isType","skipIndexes","n","iteratee","String","transform","arg","Ctor","constructor","keysFunc","symbolsFunc","offset","promiseTag","dataViewCtorString","mapCtorString","promiseCtorString","setCtorString","weakMapCtorString","getTag","ArrayBuffer","resolve","ctorString","objIsArr","othIsArr","objTag","othTag","objIsObj","othIsObj","isSameTag","byteLength","byteOffset","buffer","name","message","convert","stacked","objIsWrapped","othIsWrapped","objUnwrapped","othUnwrapped","objProps","objLength","objStacked","skipCtor","objValue","objCtor","othCtor","baseIsEqual","extensionInternalStore","createGlobalStore","slots","extensions","getExtensionInternalStore","getGlobalStore","updateInternalExtensionStore","updater","state","getState","newState","setState","getExtensionStore","updateConfigExtensionStore","extensionState","configExtensionRecords","extensionInfo","instance","instances","slotModuleName","extensionModuleName","moduleName","slotName","extensionId","id","configExtensionStore","mountedExtensions","subscribe","_define_property","configurable","writable","_object_spread","target","source","ownKeys","concat","filter","sym","getOwnPropertyDescriptor","_object_spread_props","getOwnPropertyDescriptors","defineProperties","enumerableOnly","symbols","apply","extensionStore","slotsConfigStore","getExtensionSlotsConfigStore","extensionsConfigStore","getExtensionsConfigStore","updateExtensionOutputStore","internalState","extensionSlotConfigs","slot","config","getExtensionSlotConfigFromStore","assignedExtensions","getAssignedExtensionsFromSlotData","createNewExtensionSlotInfo","attachedIds","getExtensionNameFromId","extensionName","split","getExtensionRegistrationFrom","getExtensionRegistration","internalStore","slotConfigs","extensionConfigs","registerExtension","extensionRegistration","attach","existingSlot","detach","extensionSlotName","includes","detachAll","getOrder","configuredOrder","registeredOrderIndex","attachedOrder","configuredIndex","indexOf","assignedIndex","getConnectedExtensions","online","isOnline","navigator","onLine","checkStatusFor","offline","extensionConfigStoreState","assignedIds","addedIds","removedIds","remove","idOrder","order","sort","idA","idB","_extensions_getExtensionNameFromId","_extensions_getExtensionNameFromId1","ai","bi","calculateAssignedIds","user","extensionConfig","getExtensionConfigFromStore","extension","_extensionConfig_Displayconditions","_extensionConfig_Displayconditions_privileges","_ref","requiredPrivileges","privileges","_getSessionStore_getState_session","getSessionStore","session","userHasAccess","getAssignedExtensions","slotConfig","getExtensionSlotConfig","registerExtensionSlot","_state_slots_slotName","existingModuleName","warn","checkStatus","status","Boolean","asyncGeneratorStep","gen","reject","_next","_throw","info","done","Promise","then","renderExtension","domElement","extensionSlotModuleName","_renderExtension","fn","renderFunction","x","additionalProps","parcel","load","default","lifecycle","excluded","sourceKeys","_object_without_properties_loose","sourceSymbolKeys","_object_without_properties","mountRootParcel","_meta","_extensionContext","args","err"],"sourceRoot":""}
1
+ {"version":3,"file":"openmrs-esm-extensions.js","mappings":"swBAAAA,EAAOC,QAAUC,C,UCAjBF,EAAOC,QAAUE,C,UCAjBH,EAAOC,QAAUG,C,UCAjBJ,EAAOC,QAAUI,C,GCCbC,EAA2B,CAAC,EAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaR,QAGrB,IAAID,EAASM,EAAyBE,GAAY,CAGjDP,QAAS,CAAC,GAOX,OAHAU,EAAoBH,GAAUR,EAAQA,EAAOC,QAASM,GAG/CP,EAAOC,OACf,CCrBAM,EAAoBK,EAAI,CAACX,EAASY,KACjC,IAAI,IAAIC,KAAOD,EACXN,EAAoBQ,EAAEF,EAAYC,KAASP,EAAoBQ,EAAEd,EAASa,IAC5EE,OAAOC,eAAehB,EAASa,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAW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AAQ,OAAQ7R,EACpE,CACA,SAAS6R,EAAO4B,GACZhC,GAAmBC,EAAKhK,EAASiK,EAAQC,EAAOC,EAAQ,QAAS4B,EACrE,CACA7B,OAAM9S,EACV,GACJ,EA4IOwT,GAAiBnG,MAAM1L,KAAMyE,UACxC,CChK0F,MAAMsI,GAAgB9D,I","sources":["webpack://@openmrs/esm-extensions/external system \"@openmrs/esm-api\"","webpack://@openmrs/esm-extensions/external system \"@openmrs/esm-config\"","webpack://@openmrs/esm-extensions/external system \"@openmrs/esm-state\"","webpack://@openmrs/esm-extensions/external system \"single-spa\"","webpack://@openmrs/esm-extensions/webpack/bootstrap","webpack://@openmrs/esm-extensions/webpack/runtime/define property getters","webpack://@openmrs/esm-extensions/webpack/runtime/hasOwnProperty shorthand","webpack://@openmrs/esm-extensions/webpack/runtime/make namespace object","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_listCacheClear.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/eq.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_assocIndexOf.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_listCacheDelete.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_ListCache.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_listCacheGet.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_listCacheHas.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_listCacheSet.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_freeGlobal.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_root.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_Symbol.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_getRawTag.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_objectToString.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_baseGetTag.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/isObject.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/isFunction.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_coreJsData.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_isMasked.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_toSource.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_baseIsNative.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_getNative.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_getValue.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_Map.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_nativeCreate.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_hashGet.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_hashHas.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_Hash.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_hashClear.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_hashDelete.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_hashSet.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_getMapData.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_isKeyable.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_MapCache.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_mapCacheClear.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_mapCacheDelete.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_mapCacheGet.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_mapCacheHas.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_mapCacheSet.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_Stack.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_stackClear.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_stackDelete.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_stackGet.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_stackHas.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_stackSet.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_SetCache.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_setCacheAdd.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_setCacheHas.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_arraySome.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_equalArrays.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_cacheHas.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_Uint8Array.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_mapToArray.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_setToArray.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_equalByTag.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/isArray.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_getSymbols.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_arrayFilter.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/stubArray.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/isObjectLike.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_baseIsArguments.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/isArguments.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/isBuffer.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/stubFalse.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_isIndex.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/isLength.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_baseIsTypedArray.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_nodeUtil.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/isTypedArray.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_baseUnary.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_arrayLikeKeys.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_baseTimes.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_isPrototype.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_nativeKeys.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_overArg.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_baseKeys.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/keys.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/isArrayLike.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_getAllKeys.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_baseGetAllKeys.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_arrayPush.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_equalObjects.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_DataView.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_Promise.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_Set.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_WeakMap.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_getTag.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_baseIsEqualDeep.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/_baseIsEqual.js","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/isEqual.js","webpack://@openmrs/esm-extensions/./src/store.ts","webpack://@openmrs/esm-extensions/../../../node_modules/lodash-es/isUndefined.js","webpack://@openmrs/esm-extensions/./src/extensions.ts","webpack://@openmrs/esm-extensions/./src/helpers.ts","webpack://@openmrs/esm-extensions/./src/render.ts","webpack://@openmrs/esm-extensions/./src/index.ts"],"sourcesContent":["module.exports = __WEBPACK_EXTERNAL_MODULE__766__;","module.exports = __WEBPACK_EXTERNAL_MODULE__824__;","module.exports = __WEBPACK_EXTERNAL_MODULE__685__;","module.exports = __WEBPACK_EXTERNAL_MODULE__645__;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","/**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\nfunction listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n}\n\nexport default listCacheClear;\n","/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\nfunction eq(value, other) {\n return value === other || (value !== value && other !== other);\n}\n\nexport default eq;\n","import eq from './eq.js';\n\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n}\n\nexport default assocIndexOf;\n","import assocIndexOf from './_assocIndexOf.js';\n\n/** Used for built-in method references. */\nvar arrayProto = Array.prototype;\n\n/** Built-in value references. */\nvar splice = arrayProto.splice;\n\n/**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n --this.size;\n return true;\n}\n\nexport default listCacheDelete;\n","import listCacheClear from './_listCacheClear.js';\nimport listCacheDelete from './_listCacheDelete.js';\nimport listCacheGet from './_listCacheGet.js';\nimport listCacheHas from './_listCacheHas.js';\nimport listCacheSet from './_listCacheSet.js';\n\n/**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction ListCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `ListCache`.\nListCache.prototype.clear = listCacheClear;\nListCache.prototype['delete'] = listCacheDelete;\nListCache.prototype.get = listCacheGet;\nListCache.prototype.has = listCacheHas;\nListCache.prototype.set = listCacheSet;\n\nexport default ListCache;\n","import assocIndexOf from './_assocIndexOf.js';\n\n/**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n return index < 0 ? undefined : data[index][1];\n}\n\nexport default listCacheGet;\n","import assocIndexOf from './_assocIndexOf.js';\n\n/**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n}\n\nexport default listCacheHas;\n","import assocIndexOf from './_assocIndexOf.js';\n\n/**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\nfunction listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n return this;\n}\n\nexport default listCacheSet;\n","/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nexport default freeGlobal;\n","import freeGlobal from './_freeGlobal.js';\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nexport default root;\n","import root from './_root.js';\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nexport default Symbol;\n","import Symbol from './_Symbol.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nexport default getRawTag;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nexport default objectToString;\n","import Symbol from './_Symbol.js';\nimport getRawTag from './_getRawTag.js';\nimport objectToString from './_objectToString.js';\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nexport default baseGetTag;\n","/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\nexport default isObject;\n","import baseGetTag from './_baseGetTag.js';\nimport isObject from './isObject.js';\n\n/** `Object#toString` result references. */\nvar asyncTag = '[object AsyncFunction]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n proxyTag = '[object Proxy]';\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n}\n\nexport default isFunction;\n","import root from './_root.js';\n\n/** Used to detect overreaching core-js shims. */\nvar coreJsData = root['__core-js_shared__'];\n\nexport default coreJsData;\n","import coreJsData from './_coreJsData.js';\n\n/** Used to detect methods masquerading as native. */\nvar maskSrcKey = (function() {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? ('Symbol(src)_1.' + uid) : '';\n}());\n\n/**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\nfunction isMasked(func) {\n return !!maskSrcKey && (maskSrcKey in func);\n}\n\nexport default isMasked;\n","/** Used for built-in method references. */\nvar funcProto = Function.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\nfunction toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return (func + '');\n } catch (e) {}\n }\n return '';\n}\n\nexport default toSource;\n","import isFunction from './isFunction.js';\nimport isMasked from './_isMasked.js';\nimport isObject from './isObject.js';\nimport toSource from './_toSource.js';\n\n/**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\nvar reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n\n/** Used to detect host constructors (Safari). */\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to detect if a method is native. */\nvar reIsNative = RegExp('^' +\n funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n);\n\n/**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\nfunction baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n}\n\nexport default baseIsNative;\n","import baseIsNative from './_baseIsNative.js';\nimport getValue from './_getValue.js';\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n}\n\nexport default getNative;\n","/**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction getValue(object, key) {\n return object == null ? undefined : object[key];\n}\n\nexport default getValue;\n","import getNative from './_getNative.js';\nimport root from './_root.js';\n\n/* Built-in method references that are verified to be native. */\nvar Map = getNative(root, 'Map');\n\nexport default Map;\n","import getNative from './_getNative.js';\n\n/* Built-in method references that are verified to be native. */\nvar nativeCreate = getNative(Object, 'create');\n\nexport default nativeCreate;\n","import nativeCreate from './_nativeCreate.js';\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n}\n\nexport default hashGet;\n","import nativeCreate from './_nativeCreate.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);\n}\n\nexport default hashHas;\n","import hashClear from './_hashClear.js';\nimport hashDelete from './_hashDelete.js';\nimport hashGet from './_hashGet.js';\nimport hashHas from './_hashHas.js';\nimport hashSet from './_hashSet.js';\n\n/**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Hash(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `Hash`.\nHash.prototype.clear = hashClear;\nHash.prototype['delete'] = hashDelete;\nHash.prototype.get = hashGet;\nHash.prototype.has = hashHas;\nHash.prototype.set = hashSet;\n\nexport default Hash;\n","import nativeCreate from './_nativeCreate.js';\n\n/**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\nfunction hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n}\n\nexport default hashClear;\n","/**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n}\n\nexport default hashDelete;\n","import nativeCreate from './_nativeCreate.js';\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\nfunction hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n return this;\n}\n\nexport default hashSet;\n","import isKeyable from './_isKeyable.js';\n\n/**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\nfunction getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key)\n ? data[typeof key == 'string' ? 'string' : 'hash']\n : data.map;\n}\n\nexport default getMapData;\n","/**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\nfunction isKeyable(value) {\n var type = typeof value;\n return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n ? (value !== '__proto__')\n : (value === null);\n}\n\nexport default isKeyable;\n","import mapCacheClear from './_mapCacheClear.js';\nimport mapCacheDelete from './_mapCacheDelete.js';\nimport mapCacheGet from './_mapCacheGet.js';\nimport mapCacheHas from './_mapCacheHas.js';\nimport mapCacheSet from './_mapCacheSet.js';\n\n/**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `MapCache`.\nMapCache.prototype.clear = mapCacheClear;\nMapCache.prototype['delete'] = mapCacheDelete;\nMapCache.prototype.get = mapCacheGet;\nMapCache.prototype.has = mapCacheHas;\nMapCache.prototype.set = mapCacheSet;\n\nexport default MapCache;\n","import Hash from './_Hash.js';\nimport ListCache from './_ListCache.js';\nimport Map from './_Map.js';\n\n/**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\nfunction mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n 'hash': new Hash,\n 'map': new (Map || ListCache),\n 'string': new Hash\n };\n}\n\nexport default mapCacheClear;\n","import getMapData from './_getMapData.js';\n\n/**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction mapCacheDelete(key) {\n var result = getMapData(this, key)['delete'](key);\n this.size -= result ? 1 : 0;\n return result;\n}\n\nexport default mapCacheDelete;\n","import getMapData from './_getMapData.js';\n\n/**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction mapCacheGet(key) {\n return getMapData(this, key).get(key);\n}\n\nexport default mapCacheGet;\n","import getMapData from './_getMapData.js';\n\n/**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction mapCacheHas(key) {\n return getMapData(this, key).has(key);\n}\n\nexport default mapCacheHas;\n","import getMapData from './_getMapData.js';\n\n/**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\nfunction mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n}\n\nexport default mapCacheSet;\n","import ListCache from './_ListCache.js';\nimport stackClear from './_stackClear.js';\nimport stackDelete from './_stackDelete.js';\nimport stackGet from './_stackGet.js';\nimport stackHas from './_stackHas.js';\nimport stackSet from './_stackSet.js';\n\n/**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Stack(entries) {\n var data = this.__data__ = new ListCache(entries);\n this.size = data.size;\n}\n\n// Add methods to `Stack`.\nStack.prototype.clear = stackClear;\nStack.prototype['delete'] = stackDelete;\nStack.prototype.get = stackGet;\nStack.prototype.has = stackHas;\nStack.prototype.set = stackSet;\n\nexport default Stack;\n","import ListCache from './_ListCache.js';\n\n/**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\nfunction stackClear() {\n this.__data__ = new ListCache;\n this.size = 0;\n}\n\nexport default stackClear;\n","/**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction stackDelete(key) {\n var data = this.__data__,\n result = data['delete'](key);\n\n this.size = data.size;\n return result;\n}\n\nexport default stackDelete;\n","/**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction stackGet(key) {\n return this.__data__.get(key);\n}\n\nexport default stackGet;\n","/**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction stackHas(key) {\n return this.__data__.has(key);\n}\n\nexport default stackHas;\n","import ListCache from './_ListCache.js';\nimport Map from './_Map.js';\nimport MapCache from './_MapCache.js';\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\nfunction stackSet(key, value) {\n var data = this.__data__;\n if (data instanceof ListCache) {\n var pairs = data.__data__;\n if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {\n pairs.push([key, value]);\n this.size = ++data.size;\n return this;\n }\n data = this.__data__ = new MapCache(pairs);\n }\n data.set(key, value);\n this.size = data.size;\n return this;\n}\n\nexport default stackSet;\n","import MapCache from './_MapCache.js';\nimport setCacheAdd from './_setCacheAdd.js';\nimport setCacheHas from './_setCacheHas.js';\n\n/**\n *\n * Creates an array cache object to store unique values.\n *\n * @private\n * @constructor\n * @param {Array} [values] The values to cache.\n */\nfunction SetCache(values) {\n var index = -1,\n length = values == null ? 0 : values.length;\n\n this.__data__ = new MapCache;\n while (++index < length) {\n this.add(values[index]);\n }\n}\n\n// Add methods to `SetCache`.\nSetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\nSetCache.prototype.has = setCacheHas;\n\nexport default SetCache;\n","/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/**\n * Adds `value` to the array cache.\n *\n * @private\n * @name add\n * @memberOf SetCache\n * @alias push\n * @param {*} value The value to cache.\n * @returns {Object} Returns the cache instance.\n */\nfunction setCacheAdd(value) {\n this.__data__.set(value, HASH_UNDEFINED);\n return this;\n}\n\nexport default setCacheAdd;\n","/**\n * Checks if `value` is in the array cache.\n *\n * @private\n * @name has\n * @memberOf SetCache\n * @param {*} value The value to search for.\n * @returns {number} Returns `true` if `value` is found, else `false`.\n */\nfunction setCacheHas(value) {\n return this.__data__.has(value);\n}\n\nexport default setCacheHas;\n","/**\n * A specialized version of `_.some` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\nfunction arraySome(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (predicate(array[index], index, array)) {\n return true;\n }\n }\n return false;\n}\n\nexport default arraySome;\n","import SetCache from './_SetCache.js';\nimport arraySome from './_arraySome.js';\nimport cacheHas from './_cacheHas.js';\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * A specialized version of `baseIsEqualDeep` for arrays with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Array} array The array to compare.\n * @param {Array} other The other array to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `array` and `other` objects.\n * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.\n */\nfunction equalArrays(array, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n arrLength = array.length,\n othLength = other.length;\n\n if (arrLength != othLength && !(isPartial && othLength > arrLength)) {\n return false;\n }\n // Check that cyclic values are equal.\n var arrStacked = stack.get(array);\n var othStacked = stack.get(other);\n if (arrStacked && othStacked) {\n return arrStacked == other && othStacked == array;\n }\n var index = -1,\n result = true,\n seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;\n\n stack.set(array, other);\n stack.set(other, array);\n\n // Ignore non-index properties.\n while (++index < arrLength) {\n var arrValue = array[index],\n othValue = other[index];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, arrValue, index, other, array, stack)\n : customizer(arrValue, othValue, index, array, other, stack);\n }\n if (compared !== undefined) {\n if (compared) {\n continue;\n }\n result = false;\n break;\n }\n // Recursively compare arrays (susceptible to call stack limits).\n if (seen) {\n if (!arraySome(other, function(othValue, othIndex) {\n if (!cacheHas(seen, othIndex) &&\n (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {\n return seen.push(othIndex);\n }\n })) {\n result = false;\n break;\n }\n } else if (!(\n arrValue === othValue ||\n equalFunc(arrValue, othValue, bitmask, customizer, stack)\n )) {\n result = false;\n break;\n }\n }\n stack['delete'](array);\n stack['delete'](other);\n return result;\n}\n\nexport default equalArrays;\n","/**\n * Checks if a `cache` value for `key` exists.\n *\n * @private\n * @param {Object} cache The cache to query.\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction cacheHas(cache, key) {\n return cache.has(key);\n}\n\nexport default cacheHas;\n","import root from './_root.js';\n\n/** Built-in value references. */\nvar Uint8Array = root.Uint8Array;\n\nexport default Uint8Array;\n","/**\n * Converts `map` to its key-value pairs.\n *\n * @private\n * @param {Object} map The map to convert.\n * @returns {Array} Returns the key-value pairs.\n */\nfunction mapToArray(map) {\n var index = -1,\n result = Array(map.size);\n\n map.forEach(function(value, key) {\n result[++index] = [key, value];\n });\n return result;\n}\n\nexport default mapToArray;\n","/**\n * Converts `set` to an array of its values.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the values.\n */\nfunction setToArray(set) {\n var index = -1,\n result = Array(set.size);\n\n set.forEach(function(value) {\n result[++index] = value;\n });\n return result;\n}\n\nexport default setToArray;\n","import Symbol from './_Symbol.js';\nimport Uint8Array from './_Uint8Array.js';\nimport eq from './eq.js';\nimport equalArrays from './_equalArrays.js';\nimport mapToArray from './_mapToArray.js';\nimport setToArray from './_setToArray.js';\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/** `Object#toString` result references. */\nvar boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]';\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;\n\n/**\n * A specialized version of `baseIsEqualDeep` for comparing objects of\n * the same `toStringTag`.\n *\n * **Note:** This function only supports comparing values with tags of\n * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {string} tag The `toStringTag` of the objects to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {\n switch (tag) {\n case dataViewTag:\n if ((object.byteLength != other.byteLength) ||\n (object.byteOffset != other.byteOffset)) {\n return false;\n }\n object = object.buffer;\n other = other.buffer;\n\n case arrayBufferTag:\n if ((object.byteLength != other.byteLength) ||\n !equalFunc(new Uint8Array(object), new Uint8Array(other))) {\n return false;\n }\n return true;\n\n case boolTag:\n case dateTag:\n case numberTag:\n // Coerce booleans to `1` or `0` and dates to milliseconds.\n // Invalid dates are coerced to `NaN`.\n return eq(+object, +other);\n\n case errorTag:\n return object.name == other.name && object.message == other.message;\n\n case regexpTag:\n case stringTag:\n // Coerce regexes to strings and treat strings, primitives and objects,\n // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring\n // for more details.\n return object == (other + '');\n\n case mapTag:\n var convert = mapToArray;\n\n case setTag:\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG;\n convert || (convert = setToArray);\n\n if (object.size != other.size && !isPartial) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked) {\n return stacked == other;\n }\n bitmask |= COMPARE_UNORDERED_FLAG;\n\n // Recursively compare objects (susceptible to call stack limits).\n stack.set(object, other);\n var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);\n stack['delete'](object);\n return result;\n\n case symbolTag:\n if (symbolValueOf) {\n return symbolValueOf.call(object) == symbolValueOf.call(other);\n }\n }\n return false;\n}\n\nexport default equalByTag;\n","/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\nexport default isArray;\n","import arrayFilter from './_arrayFilter.js';\nimport stubArray from './stubArray.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeGetSymbols = Object.getOwnPropertySymbols;\n\n/**\n * Creates an array of the own enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\nvar getSymbols = !nativeGetSymbols ? stubArray : function(object) {\n if (object == null) {\n return [];\n }\n object = Object(object);\n return arrayFilter(nativeGetSymbols(object), function(symbol) {\n return propertyIsEnumerable.call(object, symbol);\n });\n};\n\nexport default getSymbols;\n","/**\n * A specialized version of `_.filter` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\nfunction arrayFilter(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result[resIndex++] = value;\n }\n }\n return result;\n}\n\nexport default arrayFilter;\n","/**\n * This method returns a new empty array.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {Array} Returns the new empty array.\n * @example\n *\n * var arrays = _.times(2, _.stubArray);\n *\n * console.log(arrays);\n * // => [[], []]\n *\n * console.log(arrays[0] === arrays[1]);\n * // => false\n */\nfunction stubArray() {\n return [];\n}\n\nexport default stubArray;\n","/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nexport default isObjectLike;\n","import baseGetTag from './_baseGetTag.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]';\n\n/**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\nfunction baseIsArguments(value) {\n return isObjectLike(value) && baseGetTag(value) == argsTag;\n}\n\nexport default baseIsArguments;\n","import baseIsArguments from './_baseIsArguments.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\nvar isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\n !propertyIsEnumerable.call(value, 'callee');\n};\n\nexport default isArguments;\n","import root from './_root.js';\nimport stubFalse from './stubFalse.js';\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;\n\n/**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\nvar isBuffer = nativeIsBuffer || stubFalse;\n\nexport default isBuffer;\n","/**\n * This method returns `false`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `false`.\n * @example\n *\n * _.times(2, _.stubFalse);\n * // => [false, false]\n */\nfunction stubFalse() {\n return false;\n}\n\nexport default stubFalse;\n","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** Used to detect unsigned integer values. */\nvar reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\nfunction isIndex(value, length) {\n var type = typeof value;\n length = length == null ? MAX_SAFE_INTEGER : length;\n\n return !!length &&\n (type == 'number' ||\n (type != 'symbol' && reIsUint.test(value))) &&\n (value > -1 && value % 1 == 0 && value < length);\n}\n\nexport default isIndex;\n","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\nexport default isLength;\n","import baseGetTag from './_baseGetTag.js';\nimport isLength from './isLength.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n objectTag = '[object Object]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/** Used to identify `toStringTag` values of typed arrays. */\nvar typedArrayTags = {};\ntypedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\ntypedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\ntypedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\ntypedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\ntypedArrayTags[uint32Tag] = true;\ntypedArrayTags[argsTag] = typedArrayTags[arrayTag] =\ntypedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\ntypedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\ntypedArrayTags[errorTag] = typedArrayTags[funcTag] =\ntypedArrayTags[mapTag] = typedArrayTags[numberTag] =\ntypedArrayTags[objectTag] = typedArrayTags[regexpTag] =\ntypedArrayTags[setTag] = typedArrayTags[stringTag] =\ntypedArrayTags[weakMapTag] = false;\n\n/**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\nfunction baseIsTypedArray(value) {\n return isObjectLike(value) &&\n isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n}\n\nexport default baseIsTypedArray;\n","import freeGlobal from './_freeGlobal.js';\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Detect free variable `process` from Node.js. */\nvar freeProcess = moduleExports && freeGlobal.process;\n\n/** Used to access faster Node.js helpers. */\nvar nodeUtil = (function() {\n try {\n // Use `util.types` for Node.js 10+.\n var types = freeModule && freeModule.require && freeModule.require('util').types;\n\n if (types) {\n return types;\n }\n\n // Legacy `process.binding('util')` for Node.js < 10.\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\n } catch (e) {}\n}());\n\nexport default nodeUtil;\n","import baseIsTypedArray from './_baseIsTypedArray.js';\nimport baseUnary from './_baseUnary.js';\nimport nodeUtil from './_nodeUtil.js';\n\n/* Node.js helper references. */\nvar nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n/**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\nvar isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\nexport default isTypedArray;\n","/**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\nfunction baseUnary(func) {\n return function(value) {\n return func(value);\n };\n}\n\nexport default baseUnary;\n","import baseTimes from './_baseTimes.js';\nimport isArguments from './isArguments.js';\nimport isArray from './isArray.js';\nimport isBuffer from './isBuffer.js';\nimport isIndex from './_isIndex.js';\nimport isTypedArray from './isTypedArray.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\nfunction arrayLikeKeys(value, inherited) {\n var isArr = isArray(value),\n isArg = !isArr && isArguments(value),\n isBuff = !isArr && !isArg && isBuffer(value),\n isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n skipIndexes = isArr || isArg || isBuff || isType,\n result = skipIndexes ? baseTimes(value.length, String) : [],\n length = result.length;\n\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) &&\n !(skipIndexes && (\n // Safari 9 has enumerable `arguments.length` in strict mode.\n key == 'length' ||\n // Node.js 0.10 has enumerable non-index properties on buffers.\n (isBuff && (key == 'offset' || key == 'parent')) ||\n // PhantomJS 2 has enumerable non-index properties on typed arrays.\n (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\n // Skip index properties.\n isIndex(key, length)\n ))) {\n result.push(key);\n }\n }\n return result;\n}\n\nexport default arrayLikeKeys;\n","/**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\nfunction baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n}\n\nexport default baseTimes;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\nfunction isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n return value === proto;\n}\n\nexport default isPrototype;\n","import overArg from './_overArg.js';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeKeys = overArg(Object.keys, Object);\n\nexport default nativeKeys;\n","/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n}\n\nexport default overArg;\n","import isPrototype from './_isPrototype.js';\nimport nativeKeys from './_nativeKeys.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeys(object) {\n if (!isPrototype(object)) {\n return nativeKeys(object);\n }\n var result = [];\n for (var key in Object(object)) {\n if (hasOwnProperty.call(object, key) && key != 'constructor') {\n result.push(key);\n }\n }\n return result;\n}\n\nexport default baseKeys;\n","import arrayLikeKeys from './_arrayLikeKeys.js';\nimport baseKeys from './_baseKeys.js';\nimport isArrayLike from './isArrayLike.js';\n\n/**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\nfunction keys(object) {\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n}\n\nexport default keys;\n","import isFunction from './isFunction.js';\nimport isLength from './isLength.js';\n\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n}\n\nexport default isArrayLike;\n","import baseGetAllKeys from './_baseGetAllKeys.js';\nimport getSymbols from './_getSymbols.js';\nimport keys from './keys.js';\n\n/**\n * Creates an array of own enumerable property names and symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction getAllKeys(object) {\n return baseGetAllKeys(object, keys, getSymbols);\n}\n\nexport default getAllKeys;\n","import arrayPush from './_arrayPush.js';\nimport isArray from './isArray.js';\n\n/**\n * The base implementation of `getAllKeys` and `getAllKeysIn` which uses\n * `keysFunc` and `symbolsFunc` to get the enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @param {Function} symbolsFunc The function to get the symbols of `object`.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction baseGetAllKeys(object, keysFunc, symbolsFunc) {\n var result = keysFunc(object);\n return isArray(object) ? result : arrayPush(result, symbolsFunc(object));\n}\n\nexport default baseGetAllKeys;\n","/**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */\nfunction arrayPush(array, values) {\n var index = -1,\n length = values.length,\n offset = array.length;\n\n while (++index < length) {\n array[offset + index] = values[index];\n }\n return array;\n}\n\nexport default arrayPush;\n","import getAllKeys from './_getAllKeys.js';\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1;\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * A specialized version of `baseIsEqualDeep` for objects with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalObjects(object, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n objProps = getAllKeys(object),\n objLength = objProps.length,\n othProps = getAllKeys(other),\n othLength = othProps.length;\n\n if (objLength != othLength && !isPartial) {\n return false;\n }\n var index = objLength;\n while (index--) {\n var key = objProps[index];\n if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {\n return false;\n }\n }\n // Check that cyclic values are equal.\n var objStacked = stack.get(object);\n var othStacked = stack.get(other);\n if (objStacked && othStacked) {\n return objStacked == other && othStacked == object;\n }\n var result = true;\n stack.set(object, other);\n stack.set(other, object);\n\n var skipCtor = isPartial;\n while (++index < objLength) {\n key = objProps[index];\n var objValue = object[key],\n othValue = other[key];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, objValue, key, other, object, stack)\n : customizer(objValue, othValue, key, object, other, stack);\n }\n // Recursively compare objects (susceptible to call stack limits).\n if (!(compared === undefined\n ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))\n : compared\n )) {\n result = false;\n break;\n }\n skipCtor || (skipCtor = key == 'constructor');\n }\n if (result && !skipCtor) {\n var objCtor = object.constructor,\n othCtor = other.constructor;\n\n // Non `Object` object instances with different constructors are not equal.\n if (objCtor != othCtor &&\n ('constructor' in object && 'constructor' in other) &&\n !(typeof objCtor == 'function' && objCtor instanceof objCtor &&\n typeof othCtor == 'function' && othCtor instanceof othCtor)) {\n result = false;\n }\n }\n stack['delete'](object);\n stack['delete'](other);\n return result;\n}\n\nexport default equalObjects;\n","import getNative from './_getNative.js';\nimport root from './_root.js';\n\n/* Built-in method references that are verified to be native. */\nvar DataView = getNative(root, 'DataView');\n\nexport default DataView;\n","import getNative from './_getNative.js';\nimport root from './_root.js';\n\n/* Built-in method references that are verified to be native. */\nvar Promise = getNative(root, 'Promise');\n\nexport default Promise;\n","import getNative from './_getNative.js';\nimport root from './_root.js';\n\n/* Built-in method references that are verified to be native. */\nvar Set = getNative(root, 'Set');\n\nexport default Set;\n","import getNative from './_getNative.js';\nimport root from './_root.js';\n\n/* Built-in method references that are verified to be native. */\nvar WeakMap = getNative(root, 'WeakMap');\n\nexport default WeakMap;\n","import DataView from './_DataView.js';\nimport Map from './_Map.js';\nimport Promise from './_Promise.js';\nimport Set from './_Set.js';\nimport WeakMap from './_WeakMap.js';\nimport baseGetTag from './_baseGetTag.js';\nimport toSource from './_toSource.js';\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]',\n objectTag = '[object Object]',\n promiseTag = '[object Promise]',\n setTag = '[object Set]',\n weakMapTag = '[object WeakMap]';\n\nvar dataViewTag = '[object DataView]';\n\n/** Used to detect maps, sets, and weakmaps. */\nvar dataViewCtorString = toSource(DataView),\n mapCtorString = toSource(Map),\n promiseCtorString = toSource(Promise),\n setCtorString = toSource(Set),\n weakMapCtorString = toSource(WeakMap);\n\n/**\n * Gets the `toStringTag` of `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nvar getTag = baseGetTag;\n\n// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.\nif ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||\n (Map && getTag(new Map) != mapTag) ||\n (Promise && getTag(Promise.resolve()) != promiseTag) ||\n (Set && getTag(new Set) != setTag) ||\n (WeakMap && getTag(new WeakMap) != weakMapTag)) {\n getTag = function(value) {\n var result = baseGetTag(value),\n Ctor = result == objectTag ? value.constructor : undefined,\n ctorString = Ctor ? toSource(Ctor) : '';\n\n if (ctorString) {\n switch (ctorString) {\n case dataViewCtorString: return dataViewTag;\n case mapCtorString: return mapTag;\n case promiseCtorString: return promiseTag;\n case setCtorString: return setTag;\n case weakMapCtorString: return weakMapTag;\n }\n }\n return result;\n };\n}\n\nexport default getTag;\n","import Stack from './_Stack.js';\nimport equalArrays from './_equalArrays.js';\nimport equalByTag from './_equalByTag.js';\nimport equalObjects from './_equalObjects.js';\nimport getTag from './_getTag.js';\nimport isArray from './isArray.js';\nimport isBuffer from './isBuffer.js';\nimport isTypedArray from './isTypedArray.js';\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n objectTag = '[object Object]';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * A specialized version of `baseIsEqual` for arrays and objects which performs\n * deep comparisons and tracks traversed objects enabling objects with circular\n * references to be compared.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} [stack] Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {\n var objIsArr = isArray(object),\n othIsArr = isArray(other),\n objTag = objIsArr ? arrayTag : getTag(object),\n othTag = othIsArr ? arrayTag : getTag(other);\n\n objTag = objTag == argsTag ? objectTag : objTag;\n othTag = othTag == argsTag ? objectTag : othTag;\n\n var objIsObj = objTag == objectTag,\n othIsObj = othTag == objectTag,\n isSameTag = objTag == othTag;\n\n if (isSameTag && isBuffer(object)) {\n if (!isBuffer(other)) {\n return false;\n }\n objIsArr = true;\n objIsObj = false;\n }\n if (isSameTag && !objIsObj) {\n stack || (stack = new Stack);\n return (objIsArr || isTypedArray(object))\n ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)\n : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);\n }\n if (!(bitmask & COMPARE_PARTIAL_FLAG)) {\n var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),\n othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');\n\n if (objIsWrapped || othIsWrapped) {\n var objUnwrapped = objIsWrapped ? object.value() : object,\n othUnwrapped = othIsWrapped ? other.value() : other;\n\n stack || (stack = new Stack);\n return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);\n }\n }\n if (!isSameTag) {\n return false;\n }\n stack || (stack = new Stack);\n return equalObjects(object, other, bitmask, customizer, equalFunc, stack);\n}\n\nexport default baseIsEqualDeep;\n","import baseIsEqualDeep from './_baseIsEqualDeep.js';\nimport isObjectLike from './isObjectLike.js';\n\n/**\n * The base implementation of `_.isEqual` which supports partial comparisons\n * and tracks traversed objects.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Unordered comparison\n * 2 - Partial comparison\n * @param {Function} [customizer] The function to customize comparisons.\n * @param {Object} [stack] Tracks traversed `value` and `other` objects.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n */\nfunction baseIsEqual(value, other, bitmask, customizer, stack) {\n if (value === other) {\n return true;\n }\n if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {\n return value !== value && other !== other;\n }\n return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);\n}\n\nexport default baseIsEqual;\n","import baseIsEqual from './_baseIsEqual.js';\n\n/**\n * Performs a deep comparison between two values to determine if they are\n * equivalent.\n *\n * **Note:** This method supports comparing arrays, array buffers, booleans,\n * date objects, error objects, maps, numbers, `Object` objects, regexes,\n * sets, strings, symbols, and typed arrays. `Object` objects are compared\n * by their own, not inherited, enumerable properties. Functions and DOM\n * nodes are compared by strict equality, i.e. `===`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.isEqual(object, other);\n * // => true\n *\n * object === other;\n * // => false\n */\nfunction isEqual(value, other) {\n return baseIsEqual(value, other);\n}\n\nexport default isEqual;\n","/** @module @category Extension */ import isEqual from \"lodash-es/isEqual\";\nimport { configExtensionStore } from \"@openmrs/esm-config\";\nimport { createGlobalStore, getGlobalStore } from \"@openmrs/esm-state\";\nconst extensionInternalStore = createGlobalStore(\"extensionsInternal\", {\n slots: {},\n extensions: {}\n});\n/**\n * This gets the extension system's internal store. It is subject\n * to change radically and without warning. It should not be used\n * outside esm-core.\n * @internal\n */ export const getExtensionInternalStore = ()=>getGlobalStore(\"extensionsInternal\", {\n slots: {},\n extensions: {}\n });\n/** @internal */ export function updateInternalExtensionStore(updater) {\n const state = extensionInternalStore.getState();\n const newState = updater(state);\n if (newState !== state) {\n extensionInternalStore.setState(newState);\n }\n}\n/**\n * This returns a store that modules can use to get information about the\n * state of the extension system.\n */ export const getExtensionStore = ()=>getGlobalStore(\"extensions\", {\n slots: {}\n });\n/**\n * esm-config maintains its own store of the extension information it needs\n * to generate extension configs. We keep it updated based on what's in\n * `extensionStore`.\n */ updateConfigExtensionStore(extensionInternalStore.getState());\nextensionInternalStore.subscribe(updateConfigExtensionStore);\nfunction updateConfigExtensionStore(extensionState) {\n const configExtensionRecords = [];\n for (let extensionInfo of Object.values(extensionState.extensions)){\n for (let instance of extensionInfo.instances){\n configExtensionRecords.push({\n slotModuleName: instance.slotModuleName,\n extensionModuleName: extensionInfo.moduleName,\n slotName: instance.slotName,\n extensionId: instance.id\n });\n }\n }\n if (!isEqual(configExtensionStore.getState().mountedExtensions, configExtensionRecords)) {\n configExtensionStore.setState({\n mountedExtensions: configExtensionRecords\n });\n }\n}\n","/**\n * Checks if `value` is `undefined`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.\n * @example\n *\n * _.isUndefined(void 0);\n * // => true\n *\n * _.isUndefined(null);\n * // => false\n */\nfunction isUndefined(value) {\n return value === undefined;\n}\n\nexport default isUndefined;\n","/** @module @category Extension */ /*\n * We have the following extension modes:\n *\n * - attached (set via code in form of: attach, detach, ...)\n * - configured (set via configuration in form of: added, removed, ...)\n * - assigned (computed from attached and configured)\n * - connected (computed from assigned using connectivity and online / offline)\n */ function _define_property(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nfunction _object_spread(target) {\n for(var i = 1; i < arguments.length; i++){\n var source = arguments[i] != null ? arguments[i] : {};\n var ownKeys = Object.keys(source);\n if (typeof Object.getOwnPropertySymbols === \"function\") {\n ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {\n return Object.getOwnPropertyDescriptor(source, sym).enumerable;\n }));\n }\n ownKeys.forEach(function(key) {\n _define_property(target, key, source[key]);\n });\n }\n return target;\n}\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) {\n symbols = symbols.filter(function(sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n }\n keys.push.apply(keys, symbols);\n }\n return keys;\n}\nfunction _object_spread_props(target, source) {\n source = source != null ? source : {};\n if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function(key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n return target;\n}\nimport { getSessionStore, userHasAccess } from \"@openmrs/esm-api\";\nimport { getExtensionConfigFromStore, getExtensionsConfigStore, getExtensionSlotConfig, getExtensionSlotConfigFromStore, getExtensionSlotsConfigStore } from \"@openmrs/esm-config\";\nimport isEqual from \"lodash-es/isEqual\";\nimport isUndefined from \"lodash-es/isUndefined\";\nimport { getExtensionInternalStore, checkStatusFor } from \".\";\nimport { getExtensionStore, updateInternalExtensionStore } from \"./store\";\nconst extensionInternalStore = getExtensionInternalStore();\nconst extensionStore = getExtensionStore();\nconst slotsConfigStore = getExtensionSlotsConfigStore();\nconst extensionsConfigStore = getExtensionsConfigStore();\n// Keep the output store updated\nfunction updateExtensionOutputStore(internalState, extensionSlotConfigs, extensionsConfigStore) {\n const slots = {};\n for (let [slotName, slot] of Object.entries(internalState.slots)){\n const { config } = getExtensionSlotConfigFromStore(extensionSlotConfigs, slot.name);\n const assignedExtensions = getAssignedExtensionsFromSlotData(slotName, internalState, config, extensionsConfigStore);\n slots[slotName] = {\n moduleName: slot.moduleName,\n assignedExtensions\n };\n }\n if (!isEqual(extensionStore.getState().slots, slots)) {\n extensionStore.setState({\n slots\n });\n }\n}\nextensionInternalStore.subscribe((internalStore)=>{\n updateExtensionOutputStore(internalStore, slotsConfigStore.getState(), extensionsConfigStore.getState());\n});\nslotsConfigStore.subscribe((slotConfigs)=>{\n updateExtensionOutputStore(extensionInternalStore.getState(), slotConfigs, extensionsConfigStore.getState());\n});\nextensionsConfigStore.subscribe((extensionConfigs)=>{\n updateExtensionOutputStore(extensionInternalStore.getState(), slotsConfigStore.getState(), extensionConfigs);\n});\nfunction createNewExtensionSlotInfo(slotName, moduleName) {\n return {\n moduleName,\n name: slotName,\n attachedIds: [],\n config: null\n };\n}\n/**\n * Given an extension ID, which is a string uniquely identifying\n * an instance of an extension within an extension slot, this\n * returns the extension name.\n *\n * @example\n * ```js\n * getExtensionNameFromId(\"foo#bar\")\n * --> \"foo\"\n * getExtensionNameFromId(\"baz\")\n * --> \"baz\"\n * ```\n */ export function getExtensionNameFromId(extensionId) {\n const [extensionName] = extensionId.split(\"#\");\n return extensionName;\n}\nexport function getExtensionRegistrationFrom(state, extensionId) {\n const name = getExtensionNameFromId(extensionId);\n return state.extensions[name];\n}\nexport function getExtensionRegistration(extensionId) {\n const state = extensionInternalStore.getState();\n return getExtensionRegistrationFrom(state, extensionId);\n}\n/**\n * Extensions must be registered in order to be rendered.\n * This is handled by the app shell, when extensions are provided\n * via the `setupOpenMRS` return object.\n * @internal\n */ export const registerExtension = (extensionRegistration)=>extensionInternalStore.setState((state)=>{\n state.extensions[extensionRegistration.name] = _object_spread_props(_object_spread({}, extensionRegistration), {\n instances: []\n });\n return state;\n });\n/**\n * Attach an extension to an extension slot.\n *\n * This will cause the extension to be rendered into the specified\n * extension slot, unless it is removed by configuration. Using\n * `attach` is an alternative to specifying the `slot` or `slots`\n * in the extension declaration.\n *\n * It is particularly useful when creating a slot into which\n * you want to render an existing extension. This enables you\n * to do so without modifying the extension's declaration, which\n * may be impractical or inappropriate, for example if you are\n * writing a module for a specific implementation.\n *\n * @param slotName a name uniquely identifying the slot\n * @param extensionId an extension name, with an optional #-suffix\n * to distinguish it from other instances of the same extension\n * attached to the same slot.\n */ export function attach(slotName, extensionId) {\n updateInternalExtensionStore((state)=>{\n const existingSlot = state.slots[slotName];\n if (!existingSlot) {\n return _object_spread_props(_object_spread({}, state), {\n slots: _object_spread_props(_object_spread({}, state.slots), {\n [slotName]: _object_spread_props(_object_spread({}, createNewExtensionSlotInfo(slotName)), {\n attachedIds: [\n extensionId\n ]\n })\n })\n });\n } else {\n return _object_spread_props(_object_spread({}, state), {\n slots: _object_spread_props(_object_spread({}, state.slots), {\n [slotName]: _object_spread_props(_object_spread({}, existingSlot), {\n attachedIds: [\n ...existingSlot.attachedIds,\n extensionId\n ]\n })\n })\n });\n }\n });\n}\n/** Avoid using this. Extension attachments should be considered declarative. */ export function detach(extensionSlotName, extensionId) {\n updateInternalExtensionStore((state)=>{\n const existingSlot = state.slots[extensionSlotName];\n if (existingSlot && existingSlot.attachedIds.includes(extensionId)) {\n return _object_spread_props(_object_spread({}, state), {\n slots: _object_spread_props(_object_spread({}, state.slots), {\n [extensionSlotName]: _object_spread_props(_object_spread({}, existingSlot), {\n attachedIds: existingSlot.attachedIds.filter((id)=>id !== extensionId)\n })\n })\n });\n } else {\n return state;\n }\n });\n}\n/** Avoid using this. Extension attachments should be considered declarative. */ export function detachAll(extensionSlotName) {\n updateInternalExtensionStore((state)=>{\n const existingSlot = state.slots[extensionSlotName];\n if (existingSlot) {\n return _object_spread_props(_object_spread({}, state), {\n slots: _object_spread_props(_object_spread({}, state.slots), {\n [extensionSlotName]: _object_spread_props(_object_spread({}, existingSlot), {\n attachedIds: []\n })\n })\n });\n } else {\n return state;\n }\n });\n}\n/**\n * Get an order index for the extension. This will\n * come from either its configured order, its registered order\n * parameter, or the order in which it happened to be attached.\n */ function getOrder(extensionId, configuredOrder, registeredOrderIndex, attachedOrder) {\n const configuredIndex = configuredOrder.indexOf(extensionId);\n if (configuredIndex !== -1) {\n return configuredIndex;\n } else if (registeredOrderIndex !== undefined) {\n // extensions that don't have a configured order should appear after those that do\n return 1000 + registeredOrderIndex;\n } else {\n const assignedIndex = attachedOrder.indexOf(extensionId);\n if (assignedIndex !== -1) {\n // extensions that have neither a configured nor registered order should appear\n // after all others\n return 2000 + assignedIndex;\n } else {\n return -1;\n }\n }\n}\n/**\n * Filters a list of extensions according to whether they support the\n * current connectivity status.\n *\n * @param assignedExtensions The list of extensions to filter.\n * @param online Whether the app is currently online. If `null`, uses `navigator.onLine`.\n * @returns A list of extensions that should be rendered\n */ export function getConnectedExtensions(assignedExtensions, online = null) {\n const isOnline = online !== null && online !== void 0 ? online : navigator.onLine;\n return assignedExtensions.filter((e)=>checkStatusFor(isOnline, e.online, e.offline));\n}\nfunction getAssignedExtensionsFromSlotData(slotName, internalState, config, extensionConfigStoreState) {\n const attachedIds = internalState.slots[slotName].attachedIds;\n const assignedIds = calculateAssignedIds(config, attachedIds);\n const extensions = [];\n let user = undefined;\n for (let id of assignedIds){\n const { config: extensionConfig } = getExtensionConfigFromStore(extensionConfigStoreState, slotName, id);\n const name = getExtensionNameFromId(id);\n const extension = internalState.extensions[name];\n // if the extension has not been registered yet, do not include it\n if (extension) {\n var _extensionConfig_Displayconditions;\n var _extensionConfig_Displayconditions_privileges, _ref;\n const requiredPrivileges = (_ref = (_extensionConfig_Displayconditions_privileges = extensionConfig === null || extensionConfig === void 0 ? void 0 : (_extensionConfig_Displayconditions = extensionConfig[\"Display conditions\"]) === null || _extensionConfig_Displayconditions === void 0 ? void 0 : _extensionConfig_Displayconditions.privileges) !== null && _extensionConfig_Displayconditions_privileges !== void 0 ? _extensionConfig_Displayconditions_privileges : extension.privileges) !== null && _ref !== void 0 ? _ref : [];\n if (requiredPrivileges && (typeof requiredPrivileges === \"string\" || Array.isArray(requiredPrivileges) && requiredPrivileges.length > 0)) {\n if (isUndefined(user)) {\n var _getSessionStore_getState_session;\n user = (_getSessionStore_getState_session = getSessionStore().getState().session) === null || _getSessionStore_getState_session === void 0 ? void 0 : _getSessionStore_getState_session.user;\n }\n if (!user) {\n continue;\n }\n if (!userHasAccess(requiredPrivileges, user)) {\n continue;\n }\n }\n extensions.push({\n id,\n name,\n moduleName: extension.moduleName,\n config: extensionConfig,\n meta: extension.meta\n });\n }\n }\n return extensions;\n}\n/**\n * Gets the list of extensions assigned to a given slot\n *\n * @param slotName The slot to load the assigned extensions for\n * @returns An array of extensions assigned to the named slot\n */ export function getAssignedExtensions(slotName) {\n const internalState = extensionInternalStore.getState();\n const { config: slotConfig } = getExtensionSlotConfig(slotName);\n const extensionStoreState = extensionsConfigStore.getState();\n return getAssignedExtensionsFromSlotData(slotName, internalState, slotConfig, extensionStoreState);\n}\nfunction calculateAssignedIds(config, attachedIds) {\n const addedIds = config.add || [];\n const removedIds = config.remove || [];\n const idOrder = config.order || [];\n const { extensions } = extensionInternalStore.getState();\n return [\n ...attachedIds,\n ...addedIds\n ].filter((id)=>!removedIds.includes(id)).sort((idA, idB)=>{\n var _extensions_getExtensionNameFromId, _extensions_getExtensionNameFromId1;\n const ai = getOrder(idA, idOrder, (_extensions_getExtensionNameFromId = extensions[getExtensionNameFromId(idA)]) === null || _extensions_getExtensionNameFromId === void 0 ? void 0 : _extensions_getExtensionNameFromId.order, attachedIds);\n const bi = getOrder(idB, idOrder, (_extensions_getExtensionNameFromId1 = extensions[getExtensionNameFromId(idB)]) === null || _extensions_getExtensionNameFromId1 === void 0 ? void 0 : _extensions_getExtensionNameFromId1.order, attachedIds);\n if (bi === -1) {\n return -1;\n } else if (ai === -1) {\n return 1;\n } else {\n return ai - bi;\n }\n });\n}\n/**\n * Used by by extension slots at mount time.\n *\n * @param moduleName The name of the module that contains the extension slot\n * @param slotName The extension slot name that is actually used\n * @internal\n */ export const registerExtensionSlot = (moduleName, slotName)=>{\n return extensionInternalStore.setState((state)=>{\n var _state_slots_slotName;\n const existingModuleName = (_state_slots_slotName = state.slots[slotName]) === null || _state_slots_slotName === void 0 ? void 0 : _state_slots_slotName.moduleName;\n if (existingModuleName && existingModuleName != moduleName) {\n console.warn(`An extension slot with the name '${slotName}' already exists. Refusing to register the same slot name twice (in \"registerExtensionSlot\"). The existing one is from module ${existingModuleName}.`);\n return state;\n }\n if (existingModuleName && existingModuleName == moduleName) {\n // Re-rendering an existing slot\n return state;\n }\n if (state.slots[slotName]) {\n return _object_spread_props(_object_spread({}, state), {\n slots: _object_spread_props(_object_spread({}, state.slots), {\n [slotName]: _object_spread_props(_object_spread({}, state.slots[slotName]), {\n moduleName\n })\n })\n });\n }\n const slot = createNewExtensionSlotInfo(slotName, moduleName);\n return _object_spread_props(_object_spread({}, state), {\n slots: _object_spread_props(_object_spread({}, state.slots), {\n [slotName]: slot\n })\n });\n });\n};\n/**\n * @internal\n * Just for testing.\n */ export const reset = ()=>extensionStore.setState(()=>{\n return {\n slots: {},\n extensions: {}\n };\n });\n","export function checkStatus(online = true, offline = false) {\n const status = navigator.onLine;\n return checkStatusFor(status, online, offline);\n}\nexport function checkStatusFor(status, online = true, offline = false) {\n return Boolean(status ? online : offline);\n}\n","/** @module @category Extension */ function 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 if (info.done) {\n resolve(value);\n } else {\n Promise.resolve(value).then(_next, _throw);\n }\n}\nfunction _async_to_generator(fn) {\n return function() {\n var self = this, args = arguments;\n return new Promise(function(resolve, reject) {\n var gen = fn.apply(self, args);\n function _next(value) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);\n }\n function _throw(err) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);\n }\n _next(undefined);\n });\n };\n}\nfunction _define_property(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nfunction _object_spread(target) {\n for(var i = 1; i < arguments.length; i++){\n var source = arguments[i] != null ? arguments[i] : {};\n var ownKeys = Object.keys(source);\n if (typeof Object.getOwnPropertySymbols === \"function\") {\n ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {\n return Object.getOwnPropertyDescriptor(source, sym).enumerable;\n }));\n }\n ownKeys.forEach(function(key) {\n _define_property(target, key, source[key]);\n });\n }\n return target;\n}\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) {\n symbols = symbols.filter(function(sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n }\n keys.push.apply(keys, symbols);\n }\n return keys;\n}\nfunction _object_spread_props(target, source) {\n source = source != null ? source : {};\n if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function(key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n return target;\n}\nfunction _object_without_properties(source, excluded) {\n if (source == null) return {};\n var target = _object_without_properties_loose(source, excluded);\n var key, i;\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n for(i = 0; i < sourceSymbolKeys.length; i++){\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n return target;\n}\nfunction _object_without_properties_loose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for(i = 0; i < sourceKeys.length; i++){\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}\nimport { mountRootParcel } from \"single-spa\";\nimport { getExtensionNameFromId, getExtensionRegistration } from \"./extensions\";\nimport { checkStatus } from \"./helpers\";\nimport { updateInternalExtensionStore } from \"./store\";\n/**\n * Mounts into a DOM node (representing an extension slot)\n * a lazy-loaded component from *any* frontend module\n * that registered an extension component for this slot.\n */ export function renderExtension(domElement, extensionSlotName, extensionSlotModuleName, extensionId) {\n return _renderExtension.apply(this, arguments);\n}\nfunction _renderExtension() {\n _renderExtension = _async_to_generator(function*(domElement, extensionSlotName, extensionSlotModuleName, extensionId, renderFunction = (x)=>x, additionalProps = {}) {\n const extensionName = getExtensionNameFromId(extensionId);\n const extensionRegistration = getExtensionRegistration(extensionId);\n let parcel = null;\n if (domElement) {\n if (!extensionRegistration) {\n throw Error(`Couldn't find extension '${extensionName}' to attach to '${extensionSlotName}'`);\n }\n const { load , meta , moduleName , online , offline } = extensionRegistration;\n if (checkStatus(online, offline)) {\n updateInternalExtensionStore((state)=>{\n const instance = {\n domElement,\n id: extensionId,\n slotName: extensionSlotName,\n slotModuleName: extensionSlotModuleName\n };\n return _object_spread_props(_object_spread({}, state), {\n extensions: _object_spread_props(_object_spread({}, state.extensions), {\n [extensionName]: _object_spread_props(_object_spread({}, state.extensions[extensionName]), {\n instances: [\n ...state.extensions[extensionName].instances,\n instance\n ]\n })\n })\n });\n });\n const _ref = yield load(), { default: result } = _ref, lifecycle = _object_without_properties(_ref, [\n \"default\"\n ]);\n parcel = mountRootParcel(renderFunction(result !== null && result !== void 0 ? result : lifecycle), _object_spread_props(_object_spread({}, additionalProps), {\n _meta: meta,\n _extensionContext: {\n extensionId,\n extensionSlotName,\n extensionSlotModuleName,\n extensionModuleName: moduleName\n },\n domElement\n }));\n }\n } else {\n console.warn(`Tried to render ${extensionId} into ${extensionSlotName} but no DOM element was available.`);\n }\n return parcel;\n });\n return _renderExtension.apply(this, arguments);\n}\n","export * from \"./store\";\nexport * from \"./extensions\";\nexport * from \"./helpers\";\nexport * from \"./render\";\n// Temporary compatibility hack\n// What is now `extensionInternalStore` used to be exposed\n// and used as `extensionStore`.\nimport { getExtensionInternalStore } from \"./store\";\n/** @deprecated Use `getExtensionStore`. The structure of this store has also changed. */ const internalStore = getExtensionInternalStore();\nexport { internalStore as extensionStore };\n"],"names":["module","exports","__WEBPACK_EXTERNAL_MODULE__766__","__WEBPACK_EXTERNAL_MODULE__824__","__WEBPACK_EXTERNAL_MODULE__685__","__WEBPACK_EXTERNAL_MODULE__645__","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","d","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","other","array","length","splice","Array","ListCache","entries","index","this","clear","entry","set","__data__","size","data","pop","has","push","global","freeSelf","self","Function","objectProto","nativeObjectToString","toString","symToStringTag","isOwn","tag","unmasked","e","result","type","uid","maskSrcKey","exec","keys","IE_PROTO","funcToString","func","reIsHostCtor","reIsNative","RegExp","replace","test","object","Hash","map","MapCache","Stack","pairs","LARGE_ARRAY_SIZE","SetCache","values","add","predicate","bitmask","customizer","equalFunc","stack","isPartial","arrLength","othLength","arrStacked","othStacked","seen","arrValue","othValue","compared","othIndex","Uint8Array","forEach","symbolProto","symbolValueOf","valueOf","isArray","propertyIsEnumerable","nativeGetSymbols","getOwnPropertySymbols","resIndex","symbol","isArguments","arguments","freeExports","nodeType","freeModule","Buffer","isBuffer","reIsUint","typedArrayTags","freeProcess","process","nodeUtil","require","types","binding","nodeIsTypedArray","isTypedArray","inherited","isArr","isArg","isBuff","isType","skipIndexes","n","iteratee","String","transform","arg","Ctor","constructor","keysFunc","symbolsFunc","offset","promiseTag","dataViewCtorString","mapCtorString","promiseCtorString","setCtorString","weakMapCtorString","getTag","ArrayBuffer","resolve","ctorString","objIsArr","othIsArr","objTag","othTag","objIsObj","othIsObj","isSameTag","byteLength","byteOffset","buffer","name","message","convert","stacked","objIsWrapped","othIsWrapped","objUnwrapped","othUnwrapped","objProps","objLength","objStacked","skipCtor","objValue","objCtor","othCtor","baseIsEqual","extensionInternalStore","createGlobalStore","slots","extensions","getExtensionInternalStore","getGlobalStore","updateInternalExtensionStore","updater","state","getState","newState","setState","getExtensionStore","updateConfigExtensionStore","extensionState","configExtensionRecords","extensionInfo","instance","instances","slotModuleName","extensionModuleName","moduleName","slotName","extensionId","id","configExtensionStore","mountedExtensions","subscribe","_define_property","configurable","writable","_object_spread","target","i","source","ownKeys","concat","filter","sym","getOwnPropertyDescriptor","_object_spread_props","getOwnPropertyDescriptors","defineProperties","enumerableOnly","symbols","apply","extensionStore","slotsConfigStore","getExtensionSlotsConfigStore","extensionsConfigStore","getExtensionsConfigStore","updateExtensionOutputStore","internalState","extensionSlotConfigs","slot","config","getExtensionSlotConfigFromStore","assignedExtensions","getAssignedExtensionsFromSlotData","createNewExtensionSlotInfo","attachedIds","getExtensionNameFromId","extensionName","split","getExtensionRegistrationFrom","getExtensionRegistration","internalStore","slotConfigs","extensionConfigs","registerExtension","extensionRegistration","attach","existingSlot","detach","extensionSlotName","includes","detachAll","getOrder","configuredOrder","registeredOrderIndex","attachedOrder","configuredIndex","indexOf","assignedIndex","getConnectedExtensions","online","isOnline","navigator","onLine","checkStatusFor","offline","extensionConfigStoreState","assignedIds","addedIds","removedIds","remove","idOrder","order","sort","idA","idB","_extensions_getExtensionNameFromId","_extensions_getExtensionNameFromId1","ai","bi","calculateAssignedIds","user","extensionConfig","getExtensionConfigFromStore","extension","_extensionConfig_Displayconditions","_extensionConfig_Displayconditions_privileges","_ref","requiredPrivileges","privileges","_getSessionStore_getState_session","getSessionStore","session","userHasAccess","meta","getAssignedExtensions","slotConfig","getExtensionSlotConfig","registerExtensionSlot","_state_slots_slotName","existingModuleName","console","warn","checkStatus","status","Boolean","asyncGeneratorStep","gen","reject","_next","_throw","info","error","done","Promise","then","renderExtension","domElement","extensionSlotModuleName","_renderExtension","fn","renderFunction","x","additionalProps","parcel","Error","load","default","lifecycle","excluded","sourceKeys","_object_without_properties_loose","sourceSymbolKeys","_object_without_properties","mountRootParcel","_meta","_extensionContext","args","err"],"sourceRoot":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/esm-extensions",
3
- "version": "5.0.2",
3
+ "version": "5.0.3-pre.826",
4
4
  "license": "MPL-2.0",
5
5
  "description": "Coordinates extensions and extension points in the OpenMRS Frontend",
6
6
  "browser": "dist/openmrs-esm-extensions.js",
@@ -43,13 +43,13 @@
43
43
  "single-spa": "5.x"
44
44
  },
45
45
  "devDependencies": {
46
- "@openmrs/esm-api": "^5.0.2",
47
- "@openmrs/esm-config": "^5.0.2",
48
- "@openmrs/esm-state": "^5.0.2",
46
+ "@openmrs/esm-api": "^5.0.3-pre.826",
47
+ "@openmrs/esm-config": "^5.0.3-pre.826",
48
+ "@openmrs/esm-state": "^5.0.3-pre.826",
49
49
  "single-spa": "^5.9.2"
50
50
  },
51
51
  "dependencies": {
52
52
  "lodash-es": "^4.17.21"
53
53
  },
54
- "gitHead": "0a5da41b12979457322425409fbed4195d5b13da"
54
+ "gitHead": "d0bef414e7decaaa709644212c6cfd50c62c211f"
55
55
  }
package/webpack.config.js CHANGED
@@ -1,5 +1,4 @@
1
1
  const ForkTsCheckerWebpackPlugin = require("fork-ts-checker-webpack-plugin");
2
- const SystemJSPublicPathWebpackPlugin = require("systemjs-webpack-interop/SystemJSPublicPathWebpackPlugin");
3
2
  const { resolve } = require("path");
4
3
  const { CleanWebpackPlugin } = require("clean-webpack-plugin");
5
4
  const { BundleAnalyzerPlugin } = require("webpack-bundle-analyzer");
@@ -11,7 +10,7 @@ module.exports = (env) => ({
11
10
  output: {
12
11
  filename: "openmrs-esm-extensions.js",
13
12
  path: resolve(__dirname, "dist"),
14
- libraryTarget: "system",
13
+ library: { type: "system" },
15
14
  },
16
15
  devtool: "source-map",
17
16
  module: {
@@ -28,7 +27,6 @@ module.exports = (env) => ({
28
27
  modules: ["node_modules", resolve(__dirname, "node_modules")],
29
28
  },
30
29
  plugins: [
31
- new SystemJSPublicPathWebpackPlugin(),
32
30
  new CleanWebpackPlugin(),
33
31
  new ForkTsCheckerWebpackPlugin(),
34
32
  new BundleAnalyzerPlugin({