@openmrs/esm-react-utils 3.2.1-pre.1105 → 3.2.1-pre.1108

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,3 +1,3 @@
1
1
  /*! For license information please see openmrs-esm-react-utils.js.LICENSE.txt */
2
- System.register(["react","@openmrs/esm-config","@openmrs/esm-extensions","@openmrs/esm-globals","react-dom","i18next","react-i18next","@openmrs/esm-api","dayjs"],(function(t,n){var e={},r={},o={},u={},i={},a={},c={},f={},s={};return{setters:[function(t){e.createContext=t.createContext,e.createElement=t.createElement,e.default=t.default,e.useCallback=t.useCallback,e.useContext=t.useContext,e.useDebugValue=t.useDebugValue,e.useEffect=t.useEffect,e.useLayoutEffect=t.useLayoutEffect,e.useMemo=t.useMemo,e.useReducer=t.useReducer,e.useRef=t.useRef,e.useState=t.useState},function(t){r.getConfigStore=t.getConfigStore,r.getExtensionConfigFromStore=t.getExtensionConfigFromStore,r.getExtensionsConfigStore=t.getExtensionsConfigStore,r.interpolateUrl=t.interpolateUrl,r.navigate=t.navigate},function(t){o.getConnectedExtensions=t.getConnectedExtensions,o.getExtensionInternalStore=t.getExtensionInternalStore,o.getExtensionStore=t.getExtensionStore,o.registerExtensionSlot=t.registerExtensionSlot,o.renderExtension=t.renderExtension},function(t){u.subscribeConnectivityChanged=t.subscribeConnectivityChanged},function(t){i.default=t.default},function(t){a.default=t.default},function(t){c.I18nextProvider=t.I18nextProvider},function(t){f.defaultVisitCustomRepresentation=t.defaultVisitCustomRepresentation,f.fetchCurrentPatient=t.fetchCurrentPatient,f.getCurrentUser=t.getCurrentUser,f.getLocations=t.getLocations,f.getVisitTypes=t.getVisitTypes,f.openmrsFetch=t.openmrsFetch,f.userHasAccess=t.userHasAccess},function(t){s.default=t.default}],execute:function(){t((()=>{var t={748:()=>{System.register([],(function(t,n){return{execute:function(){t((()=>{var t={968:(t,n,e)=>{const r=e(577).R;n.s=function(t){if(t||(t=1),!e.y.meta||!e.y.meta.url)throw console.error("__system_context__",e.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");e.p=r(e.y.meta.url,t)}},577:(t,n,e)=>{n.R=function(t,n){var e=document.createElement("a");e.href=t;for(var r="/"===e.pathname[0]?e.pathname:"/"+e.pathname,o=0,u=r.length;o!==n&&u>=0;)"/"===r[--u]&&o++;if(o!==n)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+n+") is greater than the number of directories ("+o+") in the URL path "+t);var i=r.slice(0,u+1);return e.protocol+"//"+e.host+i},Number.isInteger}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var u=e[n]={exports:{}};return t[n](u,u.exports,r),u.exports}r.y=n,r.d=(t,n)=>{for(var e in n)r.o(n,e)&&!r.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:n[e]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,n)=>Object.prototype.hasOwnProperty.call(t,n),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t;r.g.importScripts&&(t=r.g.location+"");var n=r.g.document;if(!t&&n&&(n.currentScript&&(t=n.currentScript.src),!t)){var e=n.getElementsByTagName("script");e.length&&(t=e[e.length-1].src)}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=t})();var o={};return(0,r(968).s)(1),(()=>{"use strict";function t(t,n){for(var e in n)t[e]=n[e];return t}function n(n){var e=[];function r(t){for(var n=[],r=0;r<e.length;r++)e[r]===t?t=null:n.push(e[r]);e=n}function o(r,o,u){n=o?r:t(t({},n),r);for(var i=e,a=0;a<i.length;a++)i[a](n,u)}return n=n||{},{action:function(t){function e(n){o(n,!1,t)}return function(){for(var r=arguments,o=[n],u=0;u<arguments.length;u++)o.push(r[u]);var i=t.apply(this,o);if(null!=i)return i.then?i.then(e):e(i)}},setState:o,subscribe:function(t){return e.push(t),function(){r(t)}},unsubscribe:r,getState:function(){return n}}}r.r(o),r.d(o,{createAppState:()=>a,createGlobalStore:()=>u,getAppState:()=>c,getGlobalStore:()=>i,subscribeTo:()=>f});const e={};function u(t,r){const o=e[t];if(o)return o.active?console.error("Cannot override an existing store. Make sure that stores are only created once."):o.value.setState(r,!0),o.active=!0,o.value;{const o=n(r);return e[t]={value:o,active:!0},o}}function i(t,r){const o=e[t];if(!o){const o=n(r);return e[t]={value:o,active:!1},o}return o.value}function a(t){return u("app",t)}function c(){return i("app",{})}function f(t,n,e){let r=n(t.getState());return t.subscribe((t=>{const o=n(t);o!==r&&(r=o,e(o))}))}})(),o})())}}}))},332:function(t){t.exports=function(){"use strict";return function(t,n,e){n.prototype.isToday=function(){var t="YYYY-MM-DD",n=e();return this.format(t)===n.format(t)}}}()},891:function(t,n,e){var r;t=e.nmd(t),function(){var o,u="Expected a function",i="__lodash_hash_undefined__",a="__lodash_placeholder__",c=32,f=128,s=1/0,l=9007199254740991,p=NaN,h=4294967295,d=[["ary",f],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",c],["partialRight",64],["rearg",256]],v="[object Arguments]",g="[object Array]",y="[object Boolean]",_="[object Date]",m="[object Error]",b="[object Function]",w="[object GeneratorFunction]",x="[object Map]",E="[object Number]",j="[object Object]",S="[object Promise]",O="[object RegExp]",C="[object Set]",R="[object String]",A="[object Symbol]",P="[object WeakMap]",k="[object ArrayBuffer]",T="[object DataView]",L="[object Float32Array]",I="[object Float64Array]",U="[object Int8Array]",z="[object Int16Array]",M="[object Int32Array]",D="[object Uint8Array]",N="[object Uint8ClampedArray]",B="[object Uint16Array]",F="[object Uint32Array]",W=/\b__p \+= '';/g,$=/\b(__p \+=) '' \+/g,V=/(__e\(.*?\)|\b__t\)) \+\n'';/g,q=/&(?:amp|lt|gt|quot|#39);/g,G=/[&<>"']/g,Z=RegExp(q.source),H=RegExp(G.source),K=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,Y=/<%=([\s\S]+?)%>/g,Q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,X=/^\w*$/,tt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,nt=/[\\^$.*+?()[\]{}|]/g,et=RegExp(nt.source),rt=/^\s+/,ot=/\s/,ut=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,it=/\{\n\/\* \[wrapped with (.+)\] \*/,at=/,? & /,ct=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ft=/[()=,{}\[\]\/\s]/,st=/\\(\\)?/g,lt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pt=/\w*$/,ht=/^[-+]0x[0-9a-f]+$/i,dt=/^0b[01]+$/i,vt=/^\[object .+?Constructor\]$/,gt=/^0o[0-7]+$/i,yt=/^(?:0|[1-9]\d*)$/,_t=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,mt=/($^)/,bt=/['\n\r\u2028\u2029\\]/g,wt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",xt="a-z\\xdf-\\xf6\\xf8-\\xff",Et="A-Z\\xc0-\\xd6\\xd8-\\xde",jt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",St="["+jt+"]",Ot="["+wt+"]",Ct="\\d+",Rt="["+xt+"]",At="[^\\ud800-\\udfff"+jt+Ct+"\\u2700-\\u27bf"+xt+Et+"]",Pt="\\ud83c[\\udffb-\\udfff]",kt="[^\\ud800-\\udfff]",Tt="(?:\\ud83c[\\udde6-\\uddff]){2}",Lt="[\\ud800-\\udbff][\\udc00-\\udfff]",It="["+Et+"]",Ut="(?:"+Rt+"|"+At+")",zt="(?:"+It+"|"+At+")",Mt="(?:['’](?:d|ll|m|re|s|t|ve))?",Dt="(?:['’](?:D|LL|M|RE|S|T|VE))?",Nt="(?:"+Ot+"|"+Pt+")?",Bt="[\\ufe0e\\ufe0f]?",Ft=Bt+Nt+"(?:\\u200d(?:"+[kt,Tt,Lt].join("|")+")"+Bt+Nt+")*",Wt="(?:"+["[\\u2700-\\u27bf]",Tt,Lt].join("|")+")"+Ft,$t="(?:"+[kt+Ot+"?",Ot,Tt,Lt,"[\\ud800-\\udfff]"].join("|")+")",Vt=RegExp("['’]","g"),qt=RegExp(Ot,"g"),Gt=RegExp(Pt+"(?="+Pt+")|"+$t+Ft,"g"),Zt=RegExp([It+"?"+Rt+"+"+Mt+"(?="+[St,It,"$"].join("|")+")",zt+"+"+Dt+"(?="+[St,It+Ut,"$"].join("|")+")",It+"?"+Ut+"+"+Mt,It+"+"+Dt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ct,Wt].join("|"),"g"),Ht=RegExp("[\\u200d\\ud800-\\udfff"+wt+"\\ufe0e\\ufe0f]"),Kt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Jt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Yt=-1,Qt={};Qt[L]=Qt[I]=Qt[U]=Qt[z]=Qt[M]=Qt[D]=Qt[N]=Qt[B]=Qt[F]=!0,Qt[v]=Qt[g]=Qt[k]=Qt[y]=Qt[T]=Qt[_]=Qt[m]=Qt[b]=Qt[x]=Qt[E]=Qt[j]=Qt[O]=Qt[C]=Qt[R]=Qt[P]=!1;var Xt={};Xt[v]=Xt[g]=Xt[k]=Xt[T]=Xt[y]=Xt[_]=Xt[L]=Xt[I]=Xt[U]=Xt[z]=Xt[M]=Xt[x]=Xt[E]=Xt[j]=Xt[O]=Xt[C]=Xt[R]=Xt[A]=Xt[D]=Xt[N]=Xt[B]=Xt[F]=!0,Xt[m]=Xt[b]=Xt[P]=!1;var tn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},nn=parseFloat,en=parseInt,rn="object"==typeof e.g&&e.g&&e.g.Object===Object&&e.g,on="object"==typeof self&&self&&self.Object===Object&&self,un=rn||on||Function("return this")(),an=n&&!n.nodeType&&n,cn=an&&t&&!t.nodeType&&t,fn=cn&&cn.exports===an,sn=fn&&rn.process,ln=function(){try{return cn&&cn.require&&cn.require("util").types||sn&&sn.binding&&sn.binding("util")}catch(t){}}(),pn=ln&&ln.isArrayBuffer,hn=ln&&ln.isDate,dn=ln&&ln.isMap,vn=ln&&ln.isRegExp,gn=ln&&ln.isSet,yn=ln&&ln.isTypedArray;function _n(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}function mn(t,n,e,r){for(var o=-1,u=null==t?0:t.length;++o<u;){var i=t[o];n(r,i,e(i),t)}return r}function bn(t,n){for(var e=-1,r=null==t?0:t.length;++e<r&&!1!==n(t[e],e,t););return t}function wn(t,n){for(var e=null==t?0:t.length;e--&&!1!==n(t[e],e,t););return t}function xn(t,n){for(var e=-1,r=null==t?0:t.length;++e<r;)if(!n(t[e],e,t))return!1;return!0}function En(t,n){for(var e=-1,r=null==t?0:t.length,o=0,u=[];++e<r;){var i=t[e];n(i,e,t)&&(u[o++]=i)}return u}function jn(t,n){return!(null==t||!t.length)&&In(t,n,0)>-1}function Sn(t,n,e){for(var r=-1,o=null==t?0:t.length;++r<o;)if(e(n,t[r]))return!0;return!1}function On(t,n){for(var e=-1,r=null==t?0:t.length,o=Array(r);++e<r;)o[e]=n(t[e],e,t);return o}function Cn(t,n){for(var e=-1,r=n.length,o=t.length;++e<r;)t[o+e]=n[e];return t}function Rn(t,n,e,r){var o=-1,u=null==t?0:t.length;for(r&&u&&(e=t[++o]);++o<u;)e=n(e,t[o],o,t);return e}function An(t,n,e,r){var o=null==t?0:t.length;for(r&&o&&(e=t[--o]);o--;)e=n(e,t[o],o,t);return e}function Pn(t,n){for(var e=-1,r=null==t?0:t.length;++e<r;)if(n(t[e],e,t))return!0;return!1}var kn=Dn("length");function Tn(t,n,e){var r;return e(t,(function(t,e,o){if(n(t,e,o))return r=e,!1})),r}function Ln(t,n,e,r){for(var o=t.length,u=e+(r?1:-1);r?u--:++u<o;)if(n(t[u],u,t))return u;return-1}function In(t,n,e){return n==n?function(t,n,e){for(var r=e-1,o=t.length;++r<o;)if(t[r]===n)return r;return-1}(t,n,e):Ln(t,zn,e)}function Un(t,n,e,r){for(var o=e-1,u=t.length;++o<u;)if(r(t[o],n))return o;return-1}function zn(t){return t!=t}function Mn(t,n){var e=null==t?0:t.length;return e?Fn(t,n)/e:p}function Dn(t){return function(n){return null==n?o:n[t]}}function Nn(t){return function(n){return null==t?o:t[n]}}function Bn(t,n,e,r,o){return o(t,(function(t,o,u){e=r?(r=!1,t):n(e,t,o,u)})),e}function Fn(t,n){for(var e,r=-1,u=t.length;++r<u;){var i=n(t[r]);i!==o&&(e=e===o?i:e+i)}return e}function Wn(t,n){for(var e=-1,r=Array(t);++e<t;)r[e]=n(e);return r}function $n(t){return t?t.slice(0,ae(t)+1).replace(rt,""):t}function Vn(t){return function(n){return t(n)}}function qn(t,n){return On(n,(function(n){return t[n]}))}function Gn(t,n){return t.has(n)}function Zn(t,n){for(var e=-1,r=t.length;++e<r&&In(n,t[e],0)>-1;);return e}function Hn(t,n){for(var e=t.length;e--&&In(n,t[e],0)>-1;);return e}function Kn(t,n){for(var e=t.length,r=0;e--;)t[e]===n&&++r;return r}var Jn=Nn({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),Yn=Nn({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Qn(t){return"\\"+tn[t]}function Xn(t){return Ht.test(t)}function te(t){var n=-1,e=Array(t.size);return t.forEach((function(t,r){e[++n]=[r,t]})),e}function ne(t,n){return function(e){return t(n(e))}}function ee(t,n){for(var e=-1,r=t.length,o=0,u=[];++e<r;){var i=t[e];i!==n&&i!==a||(t[e]=a,u[o++]=e)}return u}function re(t){var n=-1,e=Array(t.size);return t.forEach((function(t){e[++n]=t})),e}function oe(t){var n=-1,e=Array(t.size);return t.forEach((function(t){e[++n]=[t,t]})),e}function ue(t){return Xn(t)?function(t){for(var n=Gt.lastIndex=0;Gt.test(t);)++n;return n}(t):kn(t)}function ie(t){return Xn(t)?function(t){return t.match(Gt)||[]}(t):function(t){return t.split("")}(t)}function ae(t){for(var n=t.length;n--&&ot.test(t.charAt(n)););return n}var ce=Nn({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),fe=function t(n){var e,r=(n=null==n?un:fe.defaults(un.Object(),n,fe.pick(un,Jt))).Array,ot=n.Date,wt=n.Error,xt=n.Function,Et=n.Math,jt=n.Object,St=n.RegExp,Ot=n.String,Ct=n.TypeError,Rt=r.prototype,At=xt.prototype,Pt=jt.prototype,kt=n["__core-js_shared__"],Tt=At.toString,Lt=Pt.hasOwnProperty,It=0,Ut=(e=/[^.]+$/.exec(kt&&kt.keys&&kt.keys.IE_PROTO||""))?"Symbol(src)_1."+e:"",zt=Pt.toString,Mt=Tt.call(jt),Dt=un._,Nt=St("^"+Tt.call(Lt).replace(nt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Bt=fn?n.Buffer:o,Ft=n.Symbol,Wt=n.Uint8Array,$t=Bt?Bt.allocUnsafe:o,Gt=ne(jt.getPrototypeOf,jt),Ht=jt.create,tn=Pt.propertyIsEnumerable,rn=Rt.splice,on=Ft?Ft.isConcatSpreadable:o,an=Ft?Ft.iterator:o,cn=Ft?Ft.toStringTag:o,sn=function(){try{var t=su(jt,"defineProperty");return t({},"",{}),t}catch(t){}}(),ln=n.clearTimeout!==un.clearTimeout&&n.clearTimeout,kn=ot&&ot.now!==un.Date.now&&ot.now,Nn=n.setTimeout!==un.setTimeout&&n.setTimeout,se=Et.ceil,le=Et.floor,pe=jt.getOwnPropertySymbols,he=Bt?Bt.isBuffer:o,de=n.isFinite,ve=Rt.join,ge=ne(jt.keys,jt),ye=Et.max,_e=Et.min,me=ot.now,be=n.parseInt,we=Et.random,xe=Rt.reverse,Ee=su(n,"DataView"),je=su(n,"Map"),Se=su(n,"Promise"),Oe=su(n,"Set"),Ce=su(n,"WeakMap"),Re=su(jt,"create"),Ae=Ce&&new Ce,Pe={},ke=Nu(Ee),Te=Nu(je),Le=Nu(Se),Ie=Nu(Oe),Ue=Nu(Ce),ze=Ft?Ft.prototype:o,Me=ze?ze.valueOf:o,De=ze?ze.toString:o;function Ne(t){if(ea(t)&&!qi(t)&&!(t instanceof $e)){if(t instanceof We)return t;if(Lt.call(t,"__wrapped__"))return Bu(t)}return new We(t)}var Be=function(){function t(){}return function(n){if(!na(n))return{};if(Ht)return Ht(n);t.prototype=n;var e=new t;return t.prototype=o,e}}();function Fe(){}function We(t,n){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=o}function $e(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function Ve(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}function qe(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}function Ge(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}function Ze(t){var n=-1,e=null==t?0:t.length;for(this.__data__=new Ge;++n<e;)this.add(t[n])}function He(t){var n=this.__data__=new qe(t);this.size=n.size}function Ke(t,n){var e=qi(t),r=!e&&Vi(t),o=!e&&!r&&Ki(t),u=!e&&!r&&!o&&sa(t),i=e||r||o||u,a=i?Wn(t.length,Ot):[],c=a.length;for(var f in t)!n&&!Lt.call(t,f)||i&&("length"==f||o&&("offset"==f||"parent"==f)||u&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||yu(f,c))||a.push(f);return a}function Je(t){var n=t.length;return n?t[Gr(0,n-1)]:o}function Ye(t,n){return Iu(Ro(t),ir(n,0,t.length))}function Qe(t){return Iu(Ro(t))}function Xe(t,n,e){(e!==o&&!Fi(t[n],e)||e===o&&!(n in t))&&or(t,n,e)}function tr(t,n,e){var r=t[n];Lt.call(t,n)&&Fi(r,e)&&(e!==o||n in t)||or(t,n,e)}function nr(t,n){for(var e=t.length;e--;)if(Fi(t[e][0],n))return e;return-1}function er(t,n,e,r){return lr(t,(function(t,o,u){n(r,t,e(t),u)})),r}function rr(t,n){return t&&Ao(n,Ta(n),t)}function or(t,n,e){"__proto__"==n&&sn?sn(t,n,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[n]=e}function ur(t,n){for(var e=-1,u=n.length,i=r(u),a=null==t;++e<u;)i[e]=a?o:Ca(t,n[e]);return i}function ir(t,n,e){return t==t&&(e!==o&&(t=t<=e?t:e),n!==o&&(t=t>=n?t:n)),t}function ar(t,n,e,r,u,i){var a,c=1&n,f=2&n,s=4&n;if(e&&(a=u?e(t,r,u,i):e(t)),a!==o)return a;if(!na(t))return t;var l=qi(t);if(l){if(a=function(t){var n=t.length,e=new t.constructor(n);return n&&"string"==typeof t[0]&&Lt.call(t,"index")&&(e.index=t.index,e.input=t.input),e}(t),!c)return Ro(t,a)}else{var p=hu(t),h=p==b||p==w;if(Ki(t))return xo(t,c);if(p==j||p==v||h&&!u){if(a=f||h?{}:vu(t),!c)return f?function(t,n){return Ao(t,pu(t),n)}(t,function(t,n){return t&&Ao(n,La(n),t)}(a,t)):function(t,n){return Ao(t,lu(t),n)}(t,rr(a,t))}else{if(!Xt[p])return u?t:{};a=function(t,n,e){var r,o=t.constructor;switch(n){case k:return Eo(t);case y:case _:return new o(+t);case T:return function(t,n){var e=n?Eo(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.byteLength)}(t,e);case L:case I:case U:case z:case M:case D:case N:case B:case F:return jo(t,e);case x:return new o;case E:case R:return new o(t);case O:return function(t){var n=new t.constructor(t.source,pt.exec(t));return n.lastIndex=t.lastIndex,n}(t);case C:return new o;case A:return r=t,Me?jt(Me.call(r)):{}}}(t,p,c)}}i||(i=new He);var d=i.get(t);if(d)return d;i.set(t,a),aa(t)?t.forEach((function(r){a.add(ar(r,n,e,r,t,i))})):ra(t)&&t.forEach((function(r,o){a.set(o,ar(r,n,e,o,t,i))}));var g=l?o:(s?f?ru:eu:f?La:Ta)(t);return bn(g||t,(function(r,o){g&&(r=t[o=r]),tr(a,o,ar(r,n,e,o,t,i))})),a}function cr(t,n,e){var r=e.length;if(null==t)return!r;for(t=jt(t);r--;){var u=e[r],i=n[u],a=t[u];if(a===o&&!(u in t)||!i(a))return!1}return!0}function fr(t,n,e){if("function"!=typeof t)throw new Ct(u);return Pu((function(){t.apply(o,e)}),n)}function sr(t,n,e,r){var o=-1,u=jn,i=!0,a=t.length,c=[],f=n.length;if(!a)return c;e&&(n=On(n,Vn(e))),r?(u=Sn,i=!1):n.length>=200&&(u=Gn,i=!1,n=new Ze(n));t:for(;++o<a;){var s=t[o],l=null==e?s:e(s);if(s=r||0!==s?s:0,i&&l==l){for(var p=f;p--;)if(n[p]===l)continue t;c.push(s)}else u(n,l,r)||c.push(s)}return c}Ne.templateSettings={escape:K,evaluate:J,interpolate:Y,variable:"",imports:{_:Ne}},Ne.prototype=Fe.prototype,Ne.prototype.constructor=Ne,We.prototype=Be(Fe.prototype),We.prototype.constructor=We,$e.prototype=Be(Fe.prototype),$e.prototype.constructor=$e,Ve.prototype.clear=function(){this.__data__=Re?Re(null):{},this.size=0},Ve.prototype.delete=function(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n},Ve.prototype.get=function(t){var n=this.__data__;if(Re){var e=n[t];return e===i?o:e}return Lt.call(n,t)?n[t]:o},Ve.prototype.has=function(t){var n=this.__data__;return Re?n[t]!==o:Lt.call(n,t)},Ve.prototype.set=function(t,n){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=Re&&n===o?i:n,this},qe.prototype.clear=function(){this.__data__=[],this.size=0},qe.prototype.delete=function(t){var n=this.__data__,e=nr(n,t);return!(e<0||(e==n.length-1?n.pop():rn.call(n,e,1),--this.size,0))},qe.prototype.get=function(t){var n=this.__data__,e=nr(n,t);return e<0?o:n[e][1]},qe.prototype.has=function(t){return nr(this.__data__,t)>-1},qe.prototype.set=function(t,n){var e=this.__data__,r=nr(e,t);return r<0?(++this.size,e.push([t,n])):e[r][1]=n,this},Ge.prototype.clear=function(){this.size=0,this.__data__={hash:new Ve,map:new(je||qe),string:new Ve}},Ge.prototype.delete=function(t){var n=cu(this,t).delete(t);return this.size-=n?1:0,n},Ge.prototype.get=function(t){return cu(this,t).get(t)},Ge.prototype.has=function(t){return cu(this,t).has(t)},Ge.prototype.set=function(t,n){var e=cu(this,t),r=e.size;return e.set(t,n),this.size+=e.size==r?0:1,this},Ze.prototype.add=Ze.prototype.push=function(t){return this.__data__.set(t,i),this},Ze.prototype.has=function(t){return this.__data__.has(t)},He.prototype.clear=function(){this.__data__=new qe,this.size=0},He.prototype.delete=function(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e},He.prototype.get=function(t){return this.__data__.get(t)},He.prototype.has=function(t){return this.__data__.has(t)},He.prototype.set=function(t,n){var e=this.__data__;if(e instanceof qe){var r=e.__data__;if(!je||r.length<199)return r.push([t,n]),this.size=++e.size,this;e=this.__data__=new Ge(r)}return e.set(t,n),this.size=e.size,this};var lr=To(mr),pr=To(br,!0);function hr(t,n){var e=!0;return lr(t,(function(t,r,o){return e=!!n(t,r,o)})),e}function dr(t,n,e){for(var r=-1,u=t.length;++r<u;){var i=t[r],a=n(i);if(null!=a&&(c===o?a==a&&!fa(a):e(a,c)))var c=a,f=i}return f}function vr(t,n){var e=[];return lr(t,(function(t,r,o){n(t,r,o)&&e.push(t)})),e}function gr(t,n,e,r,o){var u=-1,i=t.length;for(e||(e=gu),o||(o=[]);++u<i;){var a=t[u];n>0&&e(a)?n>1?gr(a,n-1,e,r,o):Cn(o,a):r||(o[o.length]=a)}return o}var yr=Lo(),_r=Lo(!0);function mr(t,n){return t&&yr(t,n,Ta)}function br(t,n){return t&&_r(t,n,Ta)}function wr(t,n){return En(n,(function(n){return Qi(t[n])}))}function xr(t,n){for(var e=0,r=(n=_o(n,t)).length;null!=t&&e<r;)t=t[Du(n[e++])];return e&&e==r?t:o}function Er(t,n,e){var r=n(t);return qi(t)?r:Cn(r,e(t))}function jr(t){return null==t?t===o?"[object Undefined]":"[object Null]":cn&&cn in jt(t)?function(t){var n=Lt.call(t,cn),e=t[cn];try{t[cn]=o;var r=!0}catch(t){}var u=zt.call(t);return r&&(n?t[cn]=e:delete t[cn]),u}(t):function(t){return zt.call(t)}(t)}function Sr(t,n){return t>n}function Or(t,n){return null!=t&&Lt.call(t,n)}function Cr(t,n){return null!=t&&n in jt(t)}function Rr(t,n,e){for(var u=e?Sn:jn,i=t[0].length,a=t.length,c=a,f=r(a),s=1/0,l=[];c--;){var p=t[c];c&&n&&(p=On(p,Vn(n))),s=_e(p.length,s),f[c]=!e&&(n||i>=120&&p.length>=120)?new Ze(c&&p):o}p=t[0];var h=-1,d=f[0];t:for(;++h<i&&l.length<s;){var v=p[h],g=n?n(v):v;if(v=e||0!==v?v:0,!(d?Gn(d,g):u(l,g,e))){for(c=a;--c;){var y=f[c];if(!(y?Gn(y,g):u(t[c],g,e)))continue t}d&&d.push(g),l.push(v)}}return l}function Ar(t,n,e){var r=null==(t=Ou(t,n=_o(n,t)))?t:t[Du(Yu(n))];return null==r?o:_n(r,t,e)}function Pr(t){return ea(t)&&jr(t)==v}function kr(t,n,e,r,u){return t===n||(null==t||null==n||!ea(t)&&!ea(n)?t!=t&&n!=n:function(t,n,e,r,u,i){var a=qi(t),c=qi(n),f=a?g:hu(t),s=c?g:hu(n),l=(f=f==v?j:f)==j,p=(s=s==v?j:s)==j,h=f==s;if(h&&Ki(t)){if(!Ki(n))return!1;a=!0,l=!1}if(h&&!l)return i||(i=new He),a||sa(t)?tu(t,n,e,r,u,i):function(t,n,e,r,o,u,i){switch(e){case T:if(t.byteLength!=n.byteLength||t.byteOffset!=n.byteOffset)return!1;t=t.buffer,n=n.buffer;case k:return!(t.byteLength!=n.byteLength||!u(new Wt(t),new Wt(n)));case y:case _:case E:return Fi(+t,+n);case m:return t.name==n.name&&t.message==n.message;case O:case R:return t==n+"";case x:var a=te;case C:var c=1&r;if(a||(a=re),t.size!=n.size&&!c)return!1;var f=i.get(t);if(f)return f==n;r|=2,i.set(t,n);var s=tu(a(t),a(n),r,o,u,i);return i.delete(t),s;case A:if(Me)return Me.call(t)==Me.call(n)}return!1}(t,n,f,e,r,u,i);if(!(1&e)){var d=l&&Lt.call(t,"__wrapped__"),b=p&&Lt.call(n,"__wrapped__");if(d||b){var w=d?t.value():t,S=b?n.value():n;return i||(i=new He),u(w,S,e,r,i)}}return!!h&&(i||(i=new He),function(t,n,e,r,u,i){var a=1&e,c=eu(t),f=c.length;if(f!=eu(n).length&&!a)return!1;for(var s=f;s--;){var l=c[s];if(!(a?l in n:Lt.call(n,l)))return!1}var p=i.get(t),h=i.get(n);if(p&&h)return p==n&&h==t;var d=!0;i.set(t,n),i.set(n,t);for(var v=a;++s<f;){var g=t[l=c[s]],y=n[l];if(r)var _=a?r(y,g,l,n,t,i):r(g,y,l,t,n,i);if(!(_===o?g===y||u(g,y,e,r,i):_)){d=!1;break}v||(v="constructor"==l)}if(d&&!v){var m=t.constructor,b=n.constructor;m==b||!("constructor"in t)||!("constructor"in n)||"function"==typeof m&&m instanceof m&&"function"==typeof b&&b instanceof b||(d=!1)}return i.delete(t),i.delete(n),d}(t,n,e,r,u,i))}(t,n,e,r,kr,u))}function Tr(t,n,e,r){var u=e.length,i=u,a=!r;if(null==t)return!i;for(t=jt(t);u--;){var c=e[u];if(a&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++u<i;){var f=(c=e[u])[0],s=t[f],l=c[1];if(a&&c[2]){if(s===o&&!(f in t))return!1}else{var p=new He;if(r)var h=r(s,l,f,t,n,p);if(!(h===o?kr(l,s,3,r,p):h))return!1}}return!0}function Lr(t){return!(!na(t)||(n=t,Ut&&Ut in n))&&(Qi(t)?Nt:vt).test(Nu(t));var n}function Ir(t){return"function"==typeof t?t:null==t?oc:"object"==typeof t?qi(t)?Nr(t[0],t[1]):Dr(t):hc(t)}function Ur(t){if(!xu(t))return ge(t);var n=[];for(var e in jt(t))Lt.call(t,e)&&"constructor"!=e&&n.push(e);return n}function zr(t,n){return t<n}function Mr(t,n){var e=-1,o=Zi(t)?r(t.length):[];return lr(t,(function(t,r,u){o[++e]=n(t,r,u)})),o}function Dr(t){var n=fu(t);return 1==n.length&&n[0][2]?ju(n[0][0],n[0][1]):function(e){return e===t||Tr(e,t,n)}}function Nr(t,n){return mu(t)&&Eu(n)?ju(Du(t),n):function(e){var r=Ca(e,t);return r===o&&r===n?Ra(e,t):kr(n,r,3)}}function Br(t,n,e,r,u){t!==n&&yr(n,(function(i,a){if(u||(u=new He),na(i))!function(t,n,e,r,u,i,a){var c=Ru(t,e),f=Ru(n,e),s=a.get(f);if(s)Xe(t,e,s);else{var l=i?i(c,f,e+"",t,n,a):o,p=l===o;if(p){var h=qi(f),d=!h&&Ki(f),v=!h&&!d&&sa(f);l=f,h||d||v?qi(c)?l=c:Hi(c)?l=Ro(c):d?(p=!1,l=xo(f,!0)):v?(p=!1,l=jo(f,!0)):l=[]:ua(f)||Vi(f)?(l=c,Vi(c)?l=_a(c):na(c)&&!Qi(c)||(l=vu(f))):p=!1}p&&(a.set(f,l),u(l,f,r,i,a),a.delete(f)),Xe(t,e,l)}}(t,n,a,e,Br,r,u);else{var c=r?r(Ru(t,a),i,a+"",t,n,u):o;c===o&&(c=i),Xe(t,a,c)}}),La)}function Fr(t,n){var e=t.length;if(e)return yu(n+=n<0?e:0,e)?t[n]:o}function Wr(t,n,e){n=n.length?On(n,(function(t){return qi(t)?function(n){return xr(n,1===t.length?t[0]:t)}:t})):[oc];var r=-1;n=On(n,Vn(au()));var o=Mr(t,(function(t,e,o){var u=On(n,(function(n){return n(t)}));return{criteria:u,index:++r,value:t}}));return function(t,n){var r=t.length;for(t.sort((function(t,n){return function(t,n,e){for(var r=-1,o=t.criteria,u=n.criteria,i=o.length,a=e.length;++r<i;){var c=So(o[r],u[r]);if(c)return r>=a?c:c*("desc"==e[r]?-1:1)}return t.index-n.index}(t,n,e)}));r--;)t[r]=t[r].value;return t}(o)}function $r(t,n,e){for(var r=-1,o=n.length,u={};++r<o;){var i=n[r],a=xr(t,i);e(a,i)&&Yr(u,_o(i,t),a)}return u}function Vr(t,n,e,r){var o=r?Un:In,u=-1,i=n.length,a=t;for(t===n&&(n=Ro(n)),e&&(a=On(t,Vn(e)));++u<i;)for(var c=0,f=n[u],s=e?e(f):f;(c=o(a,s,c,r))>-1;)a!==t&&rn.call(a,c,1),rn.call(t,c,1);return t}function qr(t,n){for(var e=t?n.length:0,r=e-1;e--;){var o=n[e];if(e==r||o!==u){var u=o;yu(o)?rn.call(t,o,1):fo(t,o)}}return t}function Gr(t,n){return t+le(we()*(n-t+1))}function Zr(t,n){var e="";if(!t||n<1||n>l)return e;do{n%2&&(e+=t),(n=le(n/2))&&(t+=t)}while(n);return e}function Hr(t,n){return ku(Su(t,n,oc),t+"")}function Kr(t){return Je(Fa(t))}function Jr(t,n){var e=Fa(t);return Iu(e,ir(n,0,e.length))}function Yr(t,n,e,r){if(!na(t))return t;for(var u=-1,i=(n=_o(n,t)).length,a=i-1,c=t;null!=c&&++u<i;){var f=Du(n[u]),s=e;if("__proto__"===f||"constructor"===f||"prototype"===f)return t;if(u!=a){var l=c[f];(s=r?r(l,f,c):o)===o&&(s=na(l)?l:yu(n[u+1])?[]:{})}tr(c,f,s),c=c[f]}return t}var Qr=Ae?function(t,n){return Ae.set(t,n),t}:oc,Xr=sn?function(t,n){return sn(t,"toString",{configurable:!0,enumerable:!1,value:nc(n),writable:!0})}:oc;function to(t){return Iu(Fa(t))}function no(t,n,e){var o=-1,u=t.length;n<0&&(n=-n>u?0:u+n),(e=e>u?u:e)<0&&(e+=u),u=n>e?0:e-n>>>0,n>>>=0;for(var i=r(u);++o<u;)i[o]=t[o+n];return i}function eo(t,n){var e;return lr(t,(function(t,r,o){return!(e=n(t,r,o))})),!!e}function ro(t,n,e){var r=0,o=null==t?r:t.length;if("number"==typeof n&&n==n&&o<=2147483647){for(;r<o;){var u=r+o>>>1,i=t[u];null!==i&&!fa(i)&&(e?i<=n:i<n)?r=u+1:o=u}return o}return oo(t,n,oc,e)}function oo(t,n,e,r){var u=0,i=null==t?0:t.length;if(0===i)return 0;for(var a=(n=e(n))!=n,c=null===n,f=fa(n),s=n===o;u<i;){var l=le((u+i)/2),p=e(t[l]),h=p!==o,d=null===p,v=p==p,g=fa(p);if(a)var y=r||v;else y=s?v&&(r||h):c?v&&h&&(r||!d):f?v&&h&&!d&&(r||!g):!d&&!g&&(r?p<=n:p<n);y?u=l+1:i=l}return _e(i,4294967294)}function uo(t,n){for(var e=-1,r=t.length,o=0,u=[];++e<r;){var i=t[e],a=n?n(i):i;if(!e||!Fi(a,c)){var c=a;u[o++]=0===i?0:i}}return u}function io(t){return"number"==typeof t?t:fa(t)?p:+t}function ao(t){if("string"==typeof t)return t;if(qi(t))return On(t,ao)+"";if(fa(t))return De?De.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}function co(t,n,e){var r=-1,o=jn,u=t.length,i=!0,a=[],c=a;if(e)i=!1,o=Sn;else if(u>=200){var f=n?null:Ho(t);if(f)return re(f);i=!1,o=Gn,c=new Ze}else c=n?[]:a;t:for(;++r<u;){var s=t[r],l=n?n(s):s;if(s=e||0!==s?s:0,i&&l==l){for(var p=c.length;p--;)if(c[p]===l)continue t;n&&c.push(l),a.push(s)}else o(c,l,e)||(c!==a&&c.push(l),a.push(s))}return a}function fo(t,n){return null==(t=Ou(t,n=_o(n,t)))||delete t[Du(Yu(n))]}function so(t,n,e,r){return Yr(t,n,e(xr(t,n)),r)}function lo(t,n,e,r){for(var o=t.length,u=r?o:-1;(r?u--:++u<o)&&n(t[u],u,t););return e?no(t,r?0:u,r?u+1:o):no(t,r?u+1:0,r?o:u)}function po(t,n){var e=t;return e instanceof $e&&(e=e.value()),Rn(n,(function(t,n){return n.func.apply(n.thisArg,Cn([t],n.args))}),e)}function ho(t,n,e){var o=t.length;if(o<2)return o?co(t[0]):[];for(var u=-1,i=r(o);++u<o;)for(var a=t[u],c=-1;++c<o;)c!=u&&(i[u]=sr(i[u]||a,t[c],n,e));return co(gr(i,1),n,e)}function vo(t,n,e){for(var r=-1,u=t.length,i=n.length,a={};++r<u;){var c=r<i?n[r]:o;e(a,t[r],c)}return a}function go(t){return Hi(t)?t:[]}function yo(t){return"function"==typeof t?t:oc}function _o(t,n){return qi(t)?t:mu(t,n)?[t]:Mu(ma(t))}var mo=Hr;function bo(t,n,e){var r=t.length;return e=e===o?r:e,!n&&e>=r?t:no(t,n,e)}var wo=ln||function(t){return un.clearTimeout(t)};function xo(t,n){if(n)return t.slice();var e=t.length,r=$t?$t(e):new t.constructor(e);return t.copy(r),r}function Eo(t){var n=new t.constructor(t.byteLength);return new Wt(n).set(new Wt(t)),n}function jo(t,n){var e=n?Eo(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)}function So(t,n){if(t!==n){var e=t!==o,r=null===t,u=t==t,i=fa(t),a=n!==o,c=null===n,f=n==n,s=fa(n);if(!c&&!s&&!i&&t>n||i&&a&&f&&!c&&!s||r&&a&&f||!e&&f||!u)return 1;if(!r&&!i&&!s&&t<n||s&&e&&u&&!r&&!i||c&&e&&u||!a&&u||!f)return-1}return 0}function Oo(t,n,e,o){for(var u=-1,i=t.length,a=e.length,c=-1,f=n.length,s=ye(i-a,0),l=r(f+s),p=!o;++c<f;)l[c]=n[c];for(;++u<a;)(p||u<i)&&(l[e[u]]=t[u]);for(;s--;)l[c++]=t[u++];return l}function Co(t,n,e,o){for(var u=-1,i=t.length,a=-1,c=e.length,f=-1,s=n.length,l=ye(i-c,0),p=r(l+s),h=!o;++u<l;)p[u]=t[u];for(var d=u;++f<s;)p[d+f]=n[f];for(;++a<c;)(h||u<i)&&(p[d+e[a]]=t[u++]);return p}function Ro(t,n){var e=-1,o=t.length;for(n||(n=r(o));++e<o;)n[e]=t[e];return n}function Ao(t,n,e,r){var u=!e;e||(e={});for(var i=-1,a=n.length;++i<a;){var c=n[i],f=r?r(e[c],t[c],c,e,t):o;f===o&&(f=t[c]),u?or(e,c,f):tr(e,c,f)}return e}function Po(t,n){return function(e,r){var o=qi(e)?mn:er,u=n?n():{};return o(e,t,au(r,2),u)}}function ko(t){return Hr((function(n,e){var r=-1,u=e.length,i=u>1?e[u-1]:o,a=u>2?e[2]:o;for(i=t.length>3&&"function"==typeof i?(u--,i):o,a&&_u(e[0],e[1],a)&&(i=u<3?o:i,u=1),n=jt(n);++r<u;){var c=e[r];c&&t(n,c,r,i)}return n}))}function To(t,n){return function(e,r){if(null==e)return e;if(!Zi(e))return t(e,r);for(var o=e.length,u=n?o:-1,i=jt(e);(n?u--:++u<o)&&!1!==r(i[u],u,i););return e}}function Lo(t){return function(n,e,r){for(var o=-1,u=jt(n),i=r(n),a=i.length;a--;){var c=i[t?a:++o];if(!1===e(u[c],c,u))break}return n}}function Io(t){return function(n){var e=Xn(n=ma(n))?ie(n):o,r=e?e[0]:n.charAt(0),u=e?bo(e,1).join(""):n.slice(1);return r[t]()+u}}function Uo(t){return function(n){return Rn(Qa(Va(n).replace(Vt,"")),t,"")}}function zo(t){return function(){var n=arguments;switch(n.length){case 0:return new t;case 1:return new t(n[0]);case 2:return new t(n[0],n[1]);case 3:return new t(n[0],n[1],n[2]);case 4:return new t(n[0],n[1],n[2],n[3]);case 5:return new t(n[0],n[1],n[2],n[3],n[4]);case 6:return new t(n[0],n[1],n[2],n[3],n[4],n[5]);case 7:return new t(n[0],n[1],n[2],n[3],n[4],n[5],n[6])}var e=Be(t.prototype),r=t.apply(e,n);return na(r)?r:e}}function Mo(t){return function(n,e,r){var u=jt(n);if(!Zi(n)){var i=au(e,3);n=Ta(n),e=function(t){return i(u[t],t,u)}}var a=t(n,e,r);return a>-1?u[i?n[a]:a]:o}}function Do(t){return nu((function(n){var e=n.length,r=e,i=We.prototype.thru;for(t&&n.reverse();r--;){var a=n[r];if("function"!=typeof a)throw new Ct(u);if(i&&!c&&"wrapper"==uu(a))var c=new We([],!0)}for(r=c?r:e;++r<e;){var f=uu(a=n[r]),s="wrapper"==f?ou(a):o;c=s&&bu(s[0])&&424==s[1]&&!s[4].length&&1==s[9]?c[uu(s[0])].apply(c,s[3]):1==a.length&&bu(a)?c[f]():c.thru(a)}return function(){var t=arguments,r=t[0];if(c&&1==t.length&&qi(r))return c.plant(r).value();for(var o=0,u=e?n[o].apply(this,t):r;++o<e;)u=n[o].call(this,u);return u}}))}function No(t,n,e,u,i,a,c,s,l,p){var h=n&f,d=1&n,v=2&n,g=24&n,y=512&n,_=v?o:zo(t);return function o(){for(var f=arguments.length,m=r(f),b=f;b--;)m[b]=arguments[b];if(g)var w=iu(o),x=Kn(m,w);if(u&&(m=Oo(m,u,i,g)),a&&(m=Co(m,a,c,g)),f-=x,g&&f<p){var E=ee(m,w);return Go(t,n,No,o.placeholder,e,m,E,s,l,p-f)}var j=d?e:this,S=v?j[t]:t;return f=m.length,s?m=Cu(m,s):y&&f>1&&m.reverse(),h&&l<f&&(m.length=l),this&&this!==un&&this instanceof o&&(S=_||zo(S)),S.apply(j,m)}}function Bo(t,n){return function(e,r){return function(t,n,e,r){return mr(t,(function(t,o,u){n(r,e(t),o,u)})),r}(e,t,n(r),{})}}function Fo(t,n){return function(e,r){var u;if(e===o&&r===o)return n;if(e!==o&&(u=e),r!==o){if(u===o)return r;"string"==typeof e||"string"==typeof r?(e=ao(e),r=ao(r)):(e=io(e),r=io(r)),u=t(e,r)}return u}}function Wo(t){return nu((function(n){return n=On(n,Vn(au())),Hr((function(e){var r=this;return t(n,(function(t){return _n(t,r,e)}))}))}))}function $o(t,n){var e=(n=n===o?" ":ao(n)).length;if(e<2)return e?Zr(n,t):n;var r=Zr(n,se(t/ue(n)));return Xn(n)?bo(ie(r),0,t).join(""):r.slice(0,t)}function Vo(t){return function(n,e,u){return u&&"number"!=typeof u&&_u(n,e,u)&&(e=u=o),n=da(n),e===o?(e=n,n=0):e=da(e),function(t,n,e,o){for(var u=-1,i=ye(se((n-t)/(e||1)),0),a=r(i);i--;)a[o?i:++u]=t,t+=e;return a}(n,e,u=u===o?n<e?1:-1:da(u),t)}}function qo(t){return function(n,e){return"string"==typeof n&&"string"==typeof e||(n=ya(n),e=ya(e)),t(n,e)}}function Go(t,n,e,r,u,i,a,f,s,l){var p=8&n;n|=p?c:64,4&(n&=~(p?64:c))||(n&=-4);var h=[t,n,u,p?i:o,p?a:o,p?o:i,p?o:a,f,s,l],d=e.apply(o,h);return bu(t)&&Au(d,h),d.placeholder=r,Tu(d,t,n)}function Zo(t){var n=Et[t];return function(t,e){if(t=ya(t),(e=null==e?0:_e(va(e),292))&&de(t)){var r=(ma(t)+"e").split("e");return+((r=(ma(n(r[0]+"e"+(+r[1]+e)))+"e").split("e"))[0]+"e"+(+r[1]-e))}return n(t)}}var Ho=Oe&&1/re(new Oe([,-0]))[1]==s?function(t){return new Oe(t)}:fc;function Ko(t){return function(n){var e=hu(n);return e==x?te(n):e==C?oe(n):function(t,n){return On(n,(function(n){return[n,t[n]]}))}(n,t(n))}}function Jo(t,n,e,i,s,l,p,h){var d=2&n;if(!d&&"function"!=typeof t)throw new Ct(u);var v=i?i.length:0;if(v||(n&=-97,i=s=o),p=p===o?p:ye(va(p),0),h=h===o?h:va(h),v-=s?s.length:0,64&n){var g=i,y=s;i=s=o}var _=d?o:ou(t),m=[t,n,e,i,s,g,y,l,p,h];if(_&&function(t,n){var e=t[1],r=n[1],o=e|r,u=o<131,i=r==f&&8==e||r==f&&256==e&&t[7].length<=n[8]||384==r&&n[7].length<=n[8]&&8==e;if(!u&&!i)return t;1&r&&(t[2]=n[2],o|=1&e?0:4);var c=n[3];if(c){var s=t[3];t[3]=s?Oo(s,c,n[4]):c,t[4]=s?ee(t[3],a):n[4]}(c=n[5])&&(s=t[5],t[5]=s?Co(s,c,n[6]):c,t[6]=s?ee(t[5],a):n[6]),(c=n[7])&&(t[7]=c),r&f&&(t[8]=null==t[8]?n[8]:_e(t[8],n[8])),null==t[9]&&(t[9]=n[9]),t[0]=n[0],t[1]=o}(m,_),t=m[0],n=m[1],e=m[2],i=m[3],s=m[4],!(h=m[9]=m[9]===o?d?0:t.length:ye(m[9]-v,0))&&24&n&&(n&=-25),n&&1!=n)b=8==n||16==n?function(t,n,e){var u=zo(t);return function i(){for(var a=arguments.length,c=r(a),f=a,s=iu(i);f--;)c[f]=arguments[f];var l=a<3&&c[0]!==s&&c[a-1]!==s?[]:ee(c,s);return(a-=l.length)<e?Go(t,n,No,i.placeholder,o,c,l,o,o,e-a):_n(this&&this!==un&&this instanceof i?u:t,this,c)}}(t,n,h):n!=c&&33!=n||s.length?No.apply(o,m):function(t,n,e,o){var u=1&n,i=zo(t);return function n(){for(var a=-1,c=arguments.length,f=-1,s=o.length,l=r(s+c),p=this&&this!==un&&this instanceof n?i:t;++f<s;)l[f]=o[f];for(;c--;)l[f++]=arguments[++a];return _n(p,u?e:this,l)}}(t,n,e,i);else var b=function(t,n,e){var r=1&n,o=zo(t);return function n(){return(this&&this!==un&&this instanceof n?o:t).apply(r?e:this,arguments)}}(t,n,e);return Tu((_?Qr:Au)(b,m),t,n)}function Yo(t,n,e,r){return t===o||Fi(t,Pt[e])&&!Lt.call(r,e)?n:t}function Qo(t,n,e,r,u,i){return na(t)&&na(n)&&(i.set(n,t),Br(t,n,o,Qo,i),i.delete(n)),t}function Xo(t){return ua(t)?o:t}function tu(t,n,e,r,u,i){var a=1&e,c=t.length,f=n.length;if(c!=f&&!(a&&f>c))return!1;var s=i.get(t),l=i.get(n);if(s&&l)return s==n&&l==t;var p=-1,h=!0,d=2&e?new Ze:o;for(i.set(t,n),i.set(n,t);++p<c;){var v=t[p],g=n[p];if(r)var y=a?r(g,v,p,n,t,i):r(v,g,p,t,n,i);if(y!==o){if(y)continue;h=!1;break}if(d){if(!Pn(n,(function(t,n){if(!Gn(d,n)&&(v===t||u(v,t,e,r,i)))return d.push(n)}))){h=!1;break}}else if(v!==g&&!u(v,g,e,r,i)){h=!1;break}}return i.delete(t),i.delete(n),h}function nu(t){return ku(Su(t,o,Gu),t+"")}function eu(t){return Er(t,Ta,lu)}function ru(t){return Er(t,La,pu)}var ou=Ae?function(t){return Ae.get(t)}:fc;function uu(t){for(var n=t.name+"",e=Pe[n],r=Lt.call(Pe,n)?e.length:0;r--;){var o=e[r],u=o.func;if(null==u||u==t)return o.name}return n}function iu(t){return(Lt.call(Ne,"placeholder")?Ne:t).placeholder}function au(){var t=Ne.iteratee||uc;return t=t===uc?Ir:t,arguments.length?t(arguments[0],arguments[1]):t}function cu(t,n){var e,r,o=t.__data__;return("string"==(r=typeof(e=n))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==e:null===e)?o["string"==typeof n?"string":"hash"]:o.map}function fu(t){for(var n=Ta(t),e=n.length;e--;){var r=n[e],o=t[r];n[e]=[r,o,Eu(o)]}return n}function su(t,n){var e=function(t,n){return null==t?o:t[n]}(t,n);return Lr(e)?e:o}var lu=pe?function(t){return null==t?[]:(t=jt(t),En(pe(t),(function(n){return tn.call(t,n)})))}:gc,pu=pe?function(t){for(var n=[];t;)Cn(n,lu(t)),t=Gt(t);return n}:gc,hu=jr;function du(t,n,e){for(var r=-1,o=(n=_o(n,t)).length,u=!1;++r<o;){var i=Du(n[r]);if(!(u=null!=t&&e(t,i)))break;t=t[i]}return u||++r!=o?u:!!(o=null==t?0:t.length)&&ta(o)&&yu(i,o)&&(qi(t)||Vi(t))}function vu(t){return"function"!=typeof t.constructor||xu(t)?{}:Be(Gt(t))}function gu(t){return qi(t)||Vi(t)||!!(on&&t&&t[on])}function yu(t,n){var e=typeof t;return!!(n=null==n?l:n)&&("number"==e||"symbol"!=e&&yt.test(t))&&t>-1&&t%1==0&&t<n}function _u(t,n,e){if(!na(e))return!1;var r=typeof n;return!!("number"==r?Zi(e)&&yu(n,e.length):"string"==r&&n in e)&&Fi(e[n],t)}function mu(t,n){if(qi(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!fa(t))||X.test(t)||!Q.test(t)||null!=n&&t in jt(n)}function bu(t){var n=uu(t),e=Ne[n];if("function"!=typeof e||!(n in $e.prototype))return!1;if(t===e)return!0;var r=ou(e);return!!r&&t===r[0]}(Ee&&hu(new Ee(new ArrayBuffer(1)))!=T||je&&hu(new je)!=x||Se&&hu(Se.resolve())!=S||Oe&&hu(new Oe)!=C||Ce&&hu(new Ce)!=P)&&(hu=function(t){var n=jr(t),e=n==j?t.constructor:o,r=e?Nu(e):"";if(r)switch(r){case ke:return T;case Te:return x;case Le:return S;case Ie:return C;case Ue:return P}return n});var wu=kt?Qi:yc;function xu(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||Pt)}function Eu(t){return t==t&&!na(t)}function ju(t,n){return function(e){return null!=e&&e[t]===n&&(n!==o||t in jt(e))}}function Su(t,n,e){return n=ye(n===o?t.length-1:n,0),function(){for(var o=arguments,u=-1,i=ye(o.length-n,0),a=r(i);++u<i;)a[u]=o[n+u];u=-1;for(var c=r(n+1);++u<n;)c[u]=o[u];return c[n]=e(a),_n(t,this,c)}}function Ou(t,n){return n.length<2?t:xr(t,no(n,0,-1))}function Cu(t,n){for(var e=t.length,r=_e(n.length,e),u=Ro(t);r--;){var i=n[r];t[r]=yu(i,e)?u[i]:o}return t}function Ru(t,n){if(("constructor"!==n||"function"!=typeof t[n])&&"__proto__"!=n)return t[n]}var Au=Lu(Qr),Pu=Nn||function(t,n){return un.setTimeout(t,n)},ku=Lu(Xr);function Tu(t,n,e){var r=n+"";return ku(t,function(t,n){var e=n.length;if(!e)return t;var r=e-1;return n[r]=(e>1?"& ":"")+n[r],n=n.join(e>2?", ":" "),t.replace(ut,"{\n/* [wrapped with "+n+"] */\n")}(r,function(t,n){return bn(d,(function(e){var r="_."+e[0];n&e[1]&&!jn(t,r)&&t.push(r)})),t.sort()}(function(t){var n=t.match(it);return n?n[1].split(at):[]}(r),e)))}function Lu(t){var n=0,e=0;return function(){var r=me(),u=16-(r-e);if(e=r,u>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(o,arguments)}}function Iu(t,n){var e=-1,r=t.length,u=r-1;for(n=n===o?r:n;++e<n;){var i=Gr(e,u),a=t[i];t[i]=t[e],t[e]=a}return t.length=n,t}var Uu,zu,Mu=(Uu=Ui((function(t){var n=[];return 46===t.charCodeAt(0)&&n.push(""),t.replace(tt,(function(t,e,r,o){n.push(r?o.replace(st,"$1"):e||t)})),n}),(function(t){return 500===zu.size&&zu.clear(),t})),zu=Uu.cache,Uu);function Du(t){if("string"==typeof t||fa(t))return t;var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}function Nu(t){if(null!=t){try{return Tt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Bu(t){if(t instanceof $e)return t.clone();var n=new We(t.__wrapped__,t.__chain__);return n.__actions__=Ro(t.__actions__),n.__index__=t.__index__,n.__values__=t.__values__,n}var Fu=Hr((function(t,n){return Hi(t)?sr(t,gr(n,1,Hi,!0)):[]})),Wu=Hr((function(t,n){var e=Yu(n);return Hi(e)&&(e=o),Hi(t)?sr(t,gr(n,1,Hi,!0),au(e,2)):[]})),$u=Hr((function(t,n){var e=Yu(n);return Hi(e)&&(e=o),Hi(t)?sr(t,gr(n,1,Hi,!0),o,e):[]}));function Vu(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var o=null==e?0:va(e);return o<0&&(o=ye(r+o,0)),Ln(t,au(n,3),o)}function qu(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var u=r-1;return e!==o&&(u=va(e),u=e<0?ye(r+u,0):_e(u,r-1)),Ln(t,au(n,3),u,!0)}function Gu(t){return null!=t&&t.length?gr(t,1):[]}function Zu(t){return t&&t.length?t[0]:o}var Hu=Hr((function(t){var n=On(t,go);return n.length&&n[0]===t[0]?Rr(n):[]})),Ku=Hr((function(t){var n=Yu(t),e=On(t,go);return n===Yu(e)?n=o:e.pop(),e.length&&e[0]===t[0]?Rr(e,au(n,2)):[]})),Ju=Hr((function(t){var n=Yu(t),e=On(t,go);return(n="function"==typeof n?n:o)&&e.pop(),e.length&&e[0]===t[0]?Rr(e,o,n):[]}));function Yu(t){var n=null==t?0:t.length;return n?t[n-1]:o}var Qu=Hr(Xu);function Xu(t,n){return t&&t.length&&n&&n.length?Vr(t,n):t}var ti=nu((function(t,n){var e=null==t?0:t.length,r=ur(t,n);return qr(t,On(n,(function(t){return yu(t,e)?+t:t})).sort(So)),r}));function ni(t){return null==t?t:xe.call(t)}var ei=Hr((function(t){return co(gr(t,1,Hi,!0))})),ri=Hr((function(t){var n=Yu(t);return Hi(n)&&(n=o),co(gr(t,1,Hi,!0),au(n,2))})),oi=Hr((function(t){var n=Yu(t);return n="function"==typeof n?n:o,co(gr(t,1,Hi,!0),o,n)}));function ui(t){if(!t||!t.length)return[];var n=0;return t=En(t,(function(t){if(Hi(t))return n=ye(t.length,n),!0})),Wn(n,(function(n){return On(t,Dn(n))}))}function ii(t,n){if(!t||!t.length)return[];var e=ui(t);return null==n?e:On(e,(function(t){return _n(n,o,t)}))}var ai=Hr((function(t,n){return Hi(t)?sr(t,n):[]})),ci=Hr((function(t){return ho(En(t,Hi))})),fi=Hr((function(t){var n=Yu(t);return Hi(n)&&(n=o),ho(En(t,Hi),au(n,2))})),si=Hr((function(t){var n=Yu(t);return n="function"==typeof n?n:o,ho(En(t,Hi),o,n)})),li=Hr(ui),pi=Hr((function(t){var n=t.length,e=n>1?t[n-1]:o;return e="function"==typeof e?(t.pop(),e):o,ii(t,e)}));function hi(t){var n=Ne(t);return n.__chain__=!0,n}function di(t,n){return n(t)}var vi=nu((function(t){var n=t.length,e=n?t[0]:0,r=this.__wrapped__,u=function(n){return ur(n,t)};return!(n>1||this.__actions__.length)&&r instanceof $e&&yu(e)?((r=r.slice(e,+e+(n?1:0))).__actions__.push({func:di,args:[u],thisArg:o}),new We(r,this.__chain__).thru((function(t){return n&&!t.length&&t.push(o),t}))):this.thru(u)})),gi=Po((function(t,n,e){Lt.call(t,e)?++t[e]:or(t,e,1)})),yi=Mo(Vu),_i=Mo(qu);function mi(t,n){return(qi(t)?bn:lr)(t,au(n,3))}function bi(t,n){return(qi(t)?wn:pr)(t,au(n,3))}var wi=Po((function(t,n,e){Lt.call(t,e)?t[e].push(n):or(t,e,[n])})),xi=Hr((function(t,n,e){var o=-1,u="function"==typeof n,i=Zi(t)?r(t.length):[];return lr(t,(function(t){i[++o]=u?_n(n,t,e):Ar(t,n,e)})),i})),Ei=Po((function(t,n,e){or(t,e,n)}));function ji(t,n){return(qi(t)?On:Mr)(t,au(n,3))}var Si=Po((function(t,n,e){t[e?0:1].push(n)}),(function(){return[[],[]]})),Oi=Hr((function(t,n){if(null==t)return[];var e=n.length;return e>1&&_u(t,n[0],n[1])?n=[]:e>2&&_u(n[0],n[1],n[2])&&(n=[n[0]]),Wr(t,gr(n,1),[])})),Ci=kn||function(){return un.Date.now()};function Ri(t,n,e){return n=e?o:n,n=t&&null==n?t.length:n,Jo(t,f,o,o,o,o,n)}function Ai(t,n){var e;if("function"!=typeof n)throw new Ct(u);return t=va(t),function(){return--t>0&&(e=n.apply(this,arguments)),t<=1&&(n=o),e}}var Pi=Hr((function(t,n,e){var r=1;if(e.length){var o=ee(e,iu(Pi));r|=c}return Jo(t,r,n,e,o)})),ki=Hr((function(t,n,e){var r=3;if(e.length){var o=ee(e,iu(ki));r|=c}return Jo(n,r,t,e,o)}));function Ti(t,n,e){var r,i,a,c,f,s,l=0,p=!1,h=!1,d=!0;if("function"!=typeof t)throw new Ct(u);function v(n){var e=r,u=i;return r=i=o,l=n,c=t.apply(u,e)}function g(t){return l=t,f=Pu(_,n),p?v(t):c}function y(t){var e=t-s;return s===o||e>=n||e<0||h&&t-l>=a}function _(){var t=Ci();if(y(t))return m(t);f=Pu(_,function(t){var e=n-(t-s);return h?_e(e,a-(t-l)):e}(t))}function m(t){return f=o,d&&r?v(t):(r=i=o,c)}function b(){var t=Ci(),e=y(t);if(r=arguments,i=this,s=t,e){if(f===o)return g(s);if(h)return wo(f),f=Pu(_,n),v(s)}return f===o&&(f=Pu(_,n)),c}return n=ya(n)||0,na(e)&&(p=!!e.leading,a=(h="maxWait"in e)?ye(ya(e.maxWait)||0,n):a,d="trailing"in e?!!e.trailing:d),b.cancel=function(){f!==o&&wo(f),l=0,r=s=i=f=o},b.flush=function(){return f===o?c:m(Ci())},b}var Li=Hr((function(t,n){return fr(t,1,n)})),Ii=Hr((function(t,n,e){return fr(t,ya(n)||0,e)}));function Ui(t,n){if("function"!=typeof t||null!=n&&"function"!=typeof n)throw new Ct(u);var e=function(){var r=arguments,o=n?n.apply(this,r):r[0],u=e.cache;if(u.has(o))return u.get(o);var i=t.apply(this,r);return e.cache=u.set(o,i)||u,i};return e.cache=new(Ui.Cache||Ge),e}function zi(t){if("function"!=typeof t)throw new Ct(u);return function(){var n=arguments;switch(n.length){case 0:return!t.call(this);case 1:return!t.call(this,n[0]);case 2:return!t.call(this,n[0],n[1]);case 3:return!t.call(this,n[0],n[1],n[2])}return!t.apply(this,n)}}Ui.Cache=Ge;var Mi=mo((function(t,n){var e=(n=1==n.length&&qi(n[0])?On(n[0],Vn(au())):On(gr(n,1),Vn(au()))).length;return Hr((function(r){for(var o=-1,u=_e(r.length,e);++o<u;)r[o]=n[o].call(this,r[o]);return _n(t,this,r)}))})),Di=Hr((function(t,n){var e=ee(n,iu(Di));return Jo(t,c,o,n,e)})),Ni=Hr((function(t,n){var e=ee(n,iu(Ni));return Jo(t,64,o,n,e)})),Bi=nu((function(t,n){return Jo(t,256,o,o,o,n)}));function Fi(t,n){return t===n||t!=t&&n!=n}var Wi=qo(Sr),$i=qo((function(t,n){return t>=n})),Vi=Pr(function(){return arguments}())?Pr:function(t){return ea(t)&&Lt.call(t,"callee")&&!tn.call(t,"callee")},qi=r.isArray,Gi=pn?Vn(pn):function(t){return ea(t)&&jr(t)==k};function Zi(t){return null!=t&&ta(t.length)&&!Qi(t)}function Hi(t){return ea(t)&&Zi(t)}var Ki=he||yc,Ji=hn?Vn(hn):function(t){return ea(t)&&jr(t)==_};function Yi(t){if(!ea(t))return!1;var n=jr(t);return n==m||"[object DOMException]"==n||"string"==typeof t.message&&"string"==typeof t.name&&!ua(t)}function Qi(t){if(!na(t))return!1;var n=jr(t);return n==b||n==w||"[object AsyncFunction]"==n||"[object Proxy]"==n}function Xi(t){return"number"==typeof t&&t==va(t)}function ta(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=l}function na(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}function ea(t){return null!=t&&"object"==typeof t}var ra=dn?Vn(dn):function(t){return ea(t)&&hu(t)==x};function oa(t){return"number"==typeof t||ea(t)&&jr(t)==E}function ua(t){if(!ea(t)||jr(t)!=j)return!1;var n=Gt(t);if(null===n)return!0;var e=Lt.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&Tt.call(e)==Mt}var ia=vn?Vn(vn):function(t){return ea(t)&&jr(t)==O},aa=gn?Vn(gn):function(t){return ea(t)&&hu(t)==C};function ca(t){return"string"==typeof t||!qi(t)&&ea(t)&&jr(t)==R}function fa(t){return"symbol"==typeof t||ea(t)&&jr(t)==A}var sa=yn?Vn(yn):function(t){return ea(t)&&ta(t.length)&&!!Qt[jr(t)]},la=qo(zr),pa=qo((function(t,n){return t<=n}));function ha(t){if(!t)return[];if(Zi(t))return ca(t)?ie(t):Ro(t);if(an&&t[an])return function(t){for(var n,e=[];!(n=t.next()).done;)e.push(n.value);return e}(t[an]());var n=hu(t);return(n==x?te:n==C?re:Fa)(t)}function da(t){return t?(t=ya(t))===s||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function va(t){var n=da(t),e=n%1;return n==n?e?n-e:n:0}function ga(t){return t?ir(va(t),0,h):0}function ya(t){if("number"==typeof t)return t;if(fa(t))return p;if(na(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=na(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=$n(t);var e=dt.test(t);return e||gt.test(t)?en(t.slice(2),e?2:8):ht.test(t)?p:+t}function _a(t){return Ao(t,La(t))}function ma(t){return null==t?"":ao(t)}var ba=ko((function(t,n){if(xu(n)||Zi(n))Ao(n,Ta(n),t);else for(var e in n)Lt.call(n,e)&&tr(t,e,n[e])})),wa=ko((function(t,n){Ao(n,La(n),t)})),xa=ko((function(t,n,e,r){Ao(n,La(n),t,r)})),Ea=ko((function(t,n,e,r){Ao(n,Ta(n),t,r)})),ja=nu(ur),Sa=Hr((function(t,n){t=jt(t);var e=-1,r=n.length,u=r>2?n[2]:o;for(u&&_u(n[0],n[1],u)&&(r=1);++e<r;)for(var i=n[e],a=La(i),c=-1,f=a.length;++c<f;){var s=a[c],l=t[s];(l===o||Fi(l,Pt[s])&&!Lt.call(t,s))&&(t[s]=i[s])}return t})),Oa=Hr((function(t){return t.push(o,Qo),_n(Ua,o,t)}));function Ca(t,n,e){var r=null==t?o:xr(t,n);return r===o?e:r}function Ra(t,n){return null!=t&&du(t,n,Cr)}var Aa=Bo((function(t,n,e){null!=n&&"function"!=typeof n.toString&&(n=zt.call(n)),t[n]=e}),nc(oc)),Pa=Bo((function(t,n,e){null!=n&&"function"!=typeof n.toString&&(n=zt.call(n)),Lt.call(t,n)?t[n].push(e):t[n]=[e]}),au),ka=Hr(Ar);function Ta(t){return Zi(t)?Ke(t):Ur(t)}function La(t){return Zi(t)?Ke(t,!0):function(t){if(!na(t))return function(t){var n=[];if(null!=t)for(var e in jt(t))n.push(e);return n}(t);var n=xu(t),e=[];for(var r in t)("constructor"!=r||!n&&Lt.call(t,r))&&e.push(r);return e}(t)}var Ia=ko((function(t,n,e){Br(t,n,e)})),Ua=ko((function(t,n,e,r){Br(t,n,e,r)})),za=nu((function(t,n){var e={};if(null==t)return e;var r=!1;n=On(n,(function(n){return n=_o(n,t),r||(r=n.length>1),n})),Ao(t,ru(t),e),r&&(e=ar(e,7,Xo));for(var o=n.length;o--;)fo(e,n[o]);return e})),Ma=nu((function(t,n){return null==t?{}:function(t,n){return $r(t,n,(function(n,e){return Ra(t,e)}))}(t,n)}));function Da(t,n){if(null==t)return{};var e=On(ru(t),(function(t){return[t]}));return n=au(n),$r(t,e,(function(t,e){return n(t,e[0])}))}var Na=Ko(Ta),Ba=Ko(La);function Fa(t){return null==t?[]:qn(t,Ta(t))}var Wa=Uo((function(t,n,e){return n=n.toLowerCase(),t+(e?$a(n):n)}));function $a(t){return Ya(ma(t).toLowerCase())}function Va(t){return(t=ma(t))&&t.replace(_t,Jn).replace(qt,"")}var qa=Uo((function(t,n,e){return t+(e?"-":"")+n.toLowerCase()})),Ga=Uo((function(t,n,e){return t+(e?" ":"")+n.toLowerCase()})),Za=Io("toLowerCase"),Ha=Uo((function(t,n,e){return t+(e?"_":"")+n.toLowerCase()})),Ka=Uo((function(t,n,e){return t+(e?" ":"")+Ya(n)})),Ja=Uo((function(t,n,e){return t+(e?" ":"")+n.toUpperCase()})),Ya=Io("toUpperCase");function Qa(t,n,e){return t=ma(t),(n=e?o:n)===o?function(t){return Kt.test(t)}(t)?function(t){return t.match(Zt)||[]}(t):function(t){return t.match(ct)||[]}(t):t.match(n)||[]}var Xa=Hr((function(t,n){try{return _n(t,o,n)}catch(t){return Yi(t)?t:new wt(t)}})),tc=nu((function(t,n){return bn(n,(function(n){n=Du(n),or(t,n,Pi(t[n],t))})),t}));function nc(t){return function(){return t}}var ec=Do(),rc=Do(!0);function oc(t){return t}function uc(t){return Ir("function"==typeof t?t:ar(t,1))}var ic=Hr((function(t,n){return function(e){return Ar(e,t,n)}})),ac=Hr((function(t,n){return function(e){return Ar(t,e,n)}}));function cc(t,n,e){var r=Ta(n),o=wr(n,r);null!=e||na(n)&&(o.length||!r.length)||(e=n,n=t,t=this,o=wr(n,Ta(n)));var u=!(na(e)&&"chain"in e&&!e.chain),i=Qi(t);return bn(o,(function(e){var r=n[e];t[e]=r,i&&(t.prototype[e]=function(){var n=this.__chain__;if(u||n){var e=t(this.__wrapped__),o=e.__actions__=Ro(this.__actions__);return o.push({func:r,args:arguments,thisArg:t}),e.__chain__=n,e}return r.apply(t,Cn([this.value()],arguments))})})),t}function fc(){}var sc=Wo(On),lc=Wo(xn),pc=Wo(Pn);function hc(t){return mu(t)?Dn(Du(t)):function(t){return function(n){return xr(n,t)}}(t)}var dc=Vo(),vc=Vo(!0);function gc(){return[]}function yc(){return!1}var _c,mc=Fo((function(t,n){return t+n}),0),bc=Zo("ceil"),wc=Fo((function(t,n){return t/n}),1),xc=Zo("floor"),Ec=Fo((function(t,n){return t*n}),1),jc=Zo("round"),Sc=Fo((function(t,n){return t-n}),0);return Ne.after=function(t,n){if("function"!=typeof n)throw new Ct(u);return t=va(t),function(){if(--t<1)return n.apply(this,arguments)}},Ne.ary=Ri,Ne.assign=ba,Ne.assignIn=wa,Ne.assignInWith=xa,Ne.assignWith=Ea,Ne.at=ja,Ne.before=Ai,Ne.bind=Pi,Ne.bindAll=tc,Ne.bindKey=ki,Ne.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return qi(t)?t:[t]},Ne.chain=hi,Ne.chunk=function(t,n,e){n=(e?_u(t,n,e):n===o)?1:ye(va(n),0);var u=null==t?0:t.length;if(!u||n<1)return[];for(var i=0,a=0,c=r(se(u/n));i<u;)c[a++]=no(t,i,i+=n);return c},Ne.compact=function(t){for(var n=-1,e=null==t?0:t.length,r=0,o=[];++n<e;){var u=t[n];u&&(o[r++]=u)}return o},Ne.concat=function(){var t=arguments.length;if(!t)return[];for(var n=r(t-1),e=arguments[0],o=t;o--;)n[o-1]=arguments[o];return Cn(qi(e)?Ro(e):[e],gr(n,1))},Ne.cond=function(t){var n=null==t?0:t.length,e=au();return t=n?On(t,(function(t){if("function"!=typeof t[1])throw new Ct(u);return[e(t[0]),t[1]]})):[],Hr((function(e){for(var r=-1;++r<n;){var o=t[r];if(_n(o[0],this,e))return _n(o[1],this,e)}}))},Ne.conforms=function(t){return function(t){var n=Ta(t);return function(e){return cr(e,t,n)}}(ar(t,1))},Ne.constant=nc,Ne.countBy=gi,Ne.create=function(t,n){var e=Be(t);return null==n?e:rr(e,n)},Ne.curry=function t(n,e,r){var u=Jo(n,8,o,o,o,o,o,e=r?o:e);return u.placeholder=t.placeholder,u},Ne.curryRight=function t(n,e,r){var u=Jo(n,16,o,o,o,o,o,e=r?o:e);return u.placeholder=t.placeholder,u},Ne.debounce=Ti,Ne.defaults=Sa,Ne.defaultsDeep=Oa,Ne.defer=Li,Ne.delay=Ii,Ne.difference=Fu,Ne.differenceBy=Wu,Ne.differenceWith=$u,Ne.drop=function(t,n,e){var r=null==t?0:t.length;return r?no(t,(n=e||n===o?1:va(n))<0?0:n,r):[]},Ne.dropRight=function(t,n,e){var r=null==t?0:t.length;return r?no(t,0,(n=r-(n=e||n===o?1:va(n)))<0?0:n):[]},Ne.dropRightWhile=function(t,n){return t&&t.length?lo(t,au(n,3),!0,!0):[]},Ne.dropWhile=function(t,n){return t&&t.length?lo(t,au(n,3),!0):[]},Ne.fill=function(t,n,e,r){var u=null==t?0:t.length;return u?(e&&"number"!=typeof e&&_u(t,n,e)&&(e=0,r=u),function(t,n,e,r){var u=t.length;for((e=va(e))<0&&(e=-e>u?0:u+e),(r=r===o||r>u?u:va(r))<0&&(r+=u),r=e>r?0:ga(r);e<r;)t[e++]=n;return t}(t,n,e,r)):[]},Ne.filter=function(t,n){return(qi(t)?En:vr)(t,au(n,3))},Ne.flatMap=function(t,n){return gr(ji(t,n),1)},Ne.flatMapDeep=function(t,n){return gr(ji(t,n),s)},Ne.flatMapDepth=function(t,n,e){return e=e===o?1:va(e),gr(ji(t,n),e)},Ne.flatten=Gu,Ne.flattenDeep=function(t){return null!=t&&t.length?gr(t,s):[]},Ne.flattenDepth=function(t,n){return null!=t&&t.length?gr(t,n=n===o?1:va(n)):[]},Ne.flip=function(t){return Jo(t,512)},Ne.flow=ec,Ne.flowRight=rc,Ne.fromPairs=function(t){for(var n=-1,e=null==t?0:t.length,r={};++n<e;){var o=t[n];r[o[0]]=o[1]}return r},Ne.functions=function(t){return null==t?[]:wr(t,Ta(t))},Ne.functionsIn=function(t){return null==t?[]:wr(t,La(t))},Ne.groupBy=wi,Ne.initial=function(t){return null!=t&&t.length?no(t,0,-1):[]},Ne.intersection=Hu,Ne.intersectionBy=Ku,Ne.intersectionWith=Ju,Ne.invert=Aa,Ne.invertBy=Pa,Ne.invokeMap=xi,Ne.iteratee=uc,Ne.keyBy=Ei,Ne.keys=Ta,Ne.keysIn=La,Ne.map=ji,Ne.mapKeys=function(t,n){var e={};return n=au(n,3),mr(t,(function(t,r,o){or(e,n(t,r,o),t)})),e},Ne.mapValues=function(t,n){var e={};return n=au(n,3),mr(t,(function(t,r,o){or(e,r,n(t,r,o))})),e},Ne.matches=function(t){return Dr(ar(t,1))},Ne.matchesProperty=function(t,n){return Nr(t,ar(n,1))},Ne.memoize=Ui,Ne.merge=Ia,Ne.mergeWith=Ua,Ne.method=ic,Ne.methodOf=ac,Ne.mixin=cc,Ne.negate=zi,Ne.nthArg=function(t){return t=va(t),Hr((function(n){return Fr(n,t)}))},Ne.omit=za,Ne.omitBy=function(t,n){return Da(t,zi(au(n)))},Ne.once=function(t){return Ai(2,t)},Ne.orderBy=function(t,n,e,r){return null==t?[]:(qi(n)||(n=null==n?[]:[n]),qi(e=r?o:e)||(e=null==e?[]:[e]),Wr(t,n,e))},Ne.over=sc,Ne.overArgs=Mi,Ne.overEvery=lc,Ne.overSome=pc,Ne.partial=Di,Ne.partialRight=Ni,Ne.partition=Si,Ne.pick=Ma,Ne.pickBy=Da,Ne.property=hc,Ne.propertyOf=function(t){return function(n){return null==t?o:xr(t,n)}},Ne.pull=Qu,Ne.pullAll=Xu,Ne.pullAllBy=function(t,n,e){return t&&t.length&&n&&n.length?Vr(t,n,au(e,2)):t},Ne.pullAllWith=function(t,n,e){return t&&t.length&&n&&n.length?Vr(t,n,o,e):t},Ne.pullAt=ti,Ne.range=dc,Ne.rangeRight=vc,Ne.rearg=Bi,Ne.reject=function(t,n){return(qi(t)?En:vr)(t,zi(au(n,3)))},Ne.remove=function(t,n){var e=[];if(!t||!t.length)return e;var r=-1,o=[],u=t.length;for(n=au(n,3);++r<u;){var i=t[r];n(i,r,t)&&(e.push(i),o.push(r))}return qr(t,o),e},Ne.rest=function(t,n){if("function"!=typeof t)throw new Ct(u);return Hr(t,n=n===o?n:va(n))},Ne.reverse=ni,Ne.sampleSize=function(t,n,e){return n=(e?_u(t,n,e):n===o)?1:va(n),(qi(t)?Ye:Jr)(t,n)},Ne.set=function(t,n,e){return null==t?t:Yr(t,n,e)},Ne.setWith=function(t,n,e,r){return r="function"==typeof r?r:o,null==t?t:Yr(t,n,e,r)},Ne.shuffle=function(t){return(qi(t)?Qe:to)(t)},Ne.slice=function(t,n,e){var r=null==t?0:t.length;return r?(e&&"number"!=typeof e&&_u(t,n,e)?(n=0,e=r):(n=null==n?0:va(n),e=e===o?r:va(e)),no(t,n,e)):[]},Ne.sortBy=Oi,Ne.sortedUniq=function(t){return t&&t.length?uo(t):[]},Ne.sortedUniqBy=function(t,n){return t&&t.length?uo(t,au(n,2)):[]},Ne.split=function(t,n,e){return e&&"number"!=typeof e&&_u(t,n,e)&&(n=e=o),(e=e===o?h:e>>>0)?(t=ma(t))&&("string"==typeof n||null!=n&&!ia(n))&&!(n=ao(n))&&Xn(t)?bo(ie(t),0,e):t.split(n,e):[]},Ne.spread=function(t,n){if("function"!=typeof t)throw new Ct(u);return n=null==n?0:ye(va(n),0),Hr((function(e){var r=e[n],o=bo(e,0,n);return r&&Cn(o,r),_n(t,this,o)}))},Ne.tail=function(t){var n=null==t?0:t.length;return n?no(t,1,n):[]},Ne.take=function(t,n,e){return t&&t.length?no(t,0,(n=e||n===o?1:va(n))<0?0:n):[]},Ne.takeRight=function(t,n,e){var r=null==t?0:t.length;return r?no(t,(n=r-(n=e||n===o?1:va(n)))<0?0:n,r):[]},Ne.takeRightWhile=function(t,n){return t&&t.length?lo(t,au(n,3),!1,!0):[]},Ne.takeWhile=function(t,n){return t&&t.length?lo(t,au(n,3)):[]},Ne.tap=function(t,n){return n(t),t},Ne.throttle=function(t,n,e){var r=!0,o=!0;if("function"!=typeof t)throw new Ct(u);return na(e)&&(r="leading"in e?!!e.leading:r,o="trailing"in e?!!e.trailing:o),Ti(t,n,{leading:r,maxWait:n,trailing:o})},Ne.thru=di,Ne.toArray=ha,Ne.toPairs=Na,Ne.toPairsIn=Ba,Ne.toPath=function(t){return qi(t)?On(t,Du):fa(t)?[t]:Ro(Mu(ma(t)))},Ne.toPlainObject=_a,Ne.transform=function(t,n,e){var r=qi(t),o=r||Ki(t)||sa(t);if(n=au(n,4),null==e){var u=t&&t.constructor;e=o?r?new u:[]:na(t)&&Qi(u)?Be(Gt(t)):{}}return(o?bn:mr)(t,(function(t,r,o){return n(e,t,r,o)})),e},Ne.unary=function(t){return Ri(t,1)},Ne.union=ei,Ne.unionBy=ri,Ne.unionWith=oi,Ne.uniq=function(t){return t&&t.length?co(t):[]},Ne.uniqBy=function(t,n){return t&&t.length?co(t,au(n,2)):[]},Ne.uniqWith=function(t,n){return n="function"==typeof n?n:o,t&&t.length?co(t,o,n):[]},Ne.unset=function(t,n){return null==t||fo(t,n)},Ne.unzip=ui,Ne.unzipWith=ii,Ne.update=function(t,n,e){return null==t?t:so(t,n,yo(e))},Ne.updateWith=function(t,n,e,r){return r="function"==typeof r?r:o,null==t?t:so(t,n,yo(e),r)},Ne.values=Fa,Ne.valuesIn=function(t){return null==t?[]:qn(t,La(t))},Ne.without=ai,Ne.words=Qa,Ne.wrap=function(t,n){return Di(yo(n),t)},Ne.xor=ci,Ne.xorBy=fi,Ne.xorWith=si,Ne.zip=li,Ne.zipObject=function(t,n){return vo(t||[],n||[],tr)},Ne.zipObjectDeep=function(t,n){return vo(t||[],n||[],Yr)},Ne.zipWith=pi,Ne.entries=Na,Ne.entriesIn=Ba,Ne.extend=wa,Ne.extendWith=xa,cc(Ne,Ne),Ne.add=mc,Ne.attempt=Xa,Ne.camelCase=Wa,Ne.capitalize=$a,Ne.ceil=bc,Ne.clamp=function(t,n,e){return e===o&&(e=n,n=o),e!==o&&(e=(e=ya(e))==e?e:0),n!==o&&(n=(n=ya(n))==n?n:0),ir(ya(t),n,e)},Ne.clone=function(t){return ar(t,4)},Ne.cloneDeep=function(t){return ar(t,5)},Ne.cloneDeepWith=function(t,n){return ar(t,5,n="function"==typeof n?n:o)},Ne.cloneWith=function(t,n){return ar(t,4,n="function"==typeof n?n:o)},Ne.conformsTo=function(t,n){return null==n||cr(t,n,Ta(n))},Ne.deburr=Va,Ne.defaultTo=function(t,n){return null==t||t!=t?n:t},Ne.divide=wc,Ne.endsWith=function(t,n,e){t=ma(t),n=ao(n);var r=t.length,u=e=e===o?r:ir(va(e),0,r);return(e-=n.length)>=0&&t.slice(e,u)==n},Ne.eq=Fi,Ne.escape=function(t){return(t=ma(t))&&H.test(t)?t.replace(G,Yn):t},Ne.escapeRegExp=function(t){return(t=ma(t))&&et.test(t)?t.replace(nt,"\\$&"):t},Ne.every=function(t,n,e){var r=qi(t)?xn:hr;return e&&_u(t,n,e)&&(n=o),r(t,au(n,3))},Ne.find=yi,Ne.findIndex=Vu,Ne.findKey=function(t,n){return Tn(t,au(n,3),mr)},Ne.findLast=_i,Ne.findLastIndex=qu,Ne.findLastKey=function(t,n){return Tn(t,au(n,3),br)},Ne.floor=xc,Ne.forEach=mi,Ne.forEachRight=bi,Ne.forIn=function(t,n){return null==t?t:yr(t,au(n,3),La)},Ne.forInRight=function(t,n){return null==t?t:_r(t,au(n,3),La)},Ne.forOwn=function(t,n){return t&&mr(t,au(n,3))},Ne.forOwnRight=function(t,n){return t&&br(t,au(n,3))},Ne.get=Ca,Ne.gt=Wi,Ne.gte=$i,Ne.has=function(t,n){return null!=t&&du(t,n,Or)},Ne.hasIn=Ra,Ne.head=Zu,Ne.identity=oc,Ne.includes=function(t,n,e,r){t=Zi(t)?t:Fa(t),e=e&&!r?va(e):0;var o=t.length;return e<0&&(e=ye(o+e,0)),ca(t)?e<=o&&t.indexOf(n,e)>-1:!!o&&In(t,n,e)>-1},Ne.indexOf=function(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var o=null==e?0:va(e);return o<0&&(o=ye(r+o,0)),In(t,n,o)},Ne.inRange=function(t,n,e){return n=da(n),e===o?(e=n,n=0):e=da(e),function(t,n,e){return t>=_e(n,e)&&t<ye(n,e)}(t=ya(t),n,e)},Ne.invoke=ka,Ne.isArguments=Vi,Ne.isArray=qi,Ne.isArrayBuffer=Gi,Ne.isArrayLike=Zi,Ne.isArrayLikeObject=Hi,Ne.isBoolean=function(t){return!0===t||!1===t||ea(t)&&jr(t)==y},Ne.isBuffer=Ki,Ne.isDate=Ji,Ne.isElement=function(t){return ea(t)&&1===t.nodeType&&!ua(t)},Ne.isEmpty=function(t){if(null==t)return!0;if(Zi(t)&&(qi(t)||"string"==typeof t||"function"==typeof t.splice||Ki(t)||sa(t)||Vi(t)))return!t.length;var n=hu(t);if(n==x||n==C)return!t.size;if(xu(t))return!Ur(t).length;for(var e in t)if(Lt.call(t,e))return!1;return!0},Ne.isEqual=function(t,n){return kr(t,n)},Ne.isEqualWith=function(t,n,e){var r=(e="function"==typeof e?e:o)?e(t,n):o;return r===o?kr(t,n,o,e):!!r},Ne.isError=Yi,Ne.isFinite=function(t){return"number"==typeof t&&de(t)},Ne.isFunction=Qi,Ne.isInteger=Xi,Ne.isLength=ta,Ne.isMap=ra,Ne.isMatch=function(t,n){return t===n||Tr(t,n,fu(n))},Ne.isMatchWith=function(t,n,e){return e="function"==typeof e?e:o,Tr(t,n,fu(n),e)},Ne.isNaN=function(t){return oa(t)&&t!=+t},Ne.isNative=function(t){if(wu(t))throw new wt("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Lr(t)},Ne.isNil=function(t){return null==t},Ne.isNull=function(t){return null===t},Ne.isNumber=oa,Ne.isObject=na,Ne.isObjectLike=ea,Ne.isPlainObject=ua,Ne.isRegExp=ia,Ne.isSafeInteger=function(t){return Xi(t)&&t>=-9007199254740991&&t<=l},Ne.isSet=aa,Ne.isString=ca,Ne.isSymbol=fa,Ne.isTypedArray=sa,Ne.isUndefined=function(t){return t===o},Ne.isWeakMap=function(t){return ea(t)&&hu(t)==P},Ne.isWeakSet=function(t){return ea(t)&&"[object WeakSet]"==jr(t)},Ne.join=function(t,n){return null==t?"":ve.call(t,n)},Ne.kebabCase=qa,Ne.last=Yu,Ne.lastIndexOf=function(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var u=r;return e!==o&&(u=(u=va(e))<0?ye(r+u,0):_e(u,r-1)),n==n?function(t,n,e){for(var r=e+1;r--;)if(t[r]===n)return r;return r}(t,n,u):Ln(t,zn,u,!0)},Ne.lowerCase=Ga,Ne.lowerFirst=Za,Ne.lt=la,Ne.lte=pa,Ne.max=function(t){return t&&t.length?dr(t,oc,Sr):o},Ne.maxBy=function(t,n){return t&&t.length?dr(t,au(n,2),Sr):o},Ne.mean=function(t){return Mn(t,oc)},Ne.meanBy=function(t,n){return Mn(t,au(n,2))},Ne.min=function(t){return t&&t.length?dr(t,oc,zr):o},Ne.minBy=function(t,n){return t&&t.length?dr(t,au(n,2),zr):o},Ne.stubArray=gc,Ne.stubFalse=yc,Ne.stubObject=function(){return{}},Ne.stubString=function(){return""},Ne.stubTrue=function(){return!0},Ne.multiply=Ec,Ne.nth=function(t,n){return t&&t.length?Fr(t,va(n)):o},Ne.noConflict=function(){return un._===this&&(un._=Dt),this},Ne.noop=fc,Ne.now=Ci,Ne.pad=function(t,n,e){t=ma(t);var r=(n=va(n))?ue(t):0;if(!n||r>=n)return t;var o=(n-r)/2;return $o(le(o),e)+t+$o(se(o),e)},Ne.padEnd=function(t,n,e){t=ma(t);var r=(n=va(n))?ue(t):0;return n&&r<n?t+$o(n-r,e):t},Ne.padStart=function(t,n,e){t=ma(t);var r=(n=va(n))?ue(t):0;return n&&r<n?$o(n-r,e)+t:t},Ne.parseInt=function(t,n,e){return e||null==n?n=0:n&&(n=+n),be(ma(t).replace(rt,""),n||0)},Ne.random=function(t,n,e){if(e&&"boolean"!=typeof e&&_u(t,n,e)&&(n=e=o),e===o&&("boolean"==typeof n?(e=n,n=o):"boolean"==typeof t&&(e=t,t=o)),t===o&&n===o?(t=0,n=1):(t=da(t),n===o?(n=t,t=0):n=da(n)),t>n){var r=t;t=n,n=r}if(e||t%1||n%1){var u=we();return _e(t+u*(n-t+nn("1e-"+((u+"").length-1))),n)}return Gr(t,n)},Ne.reduce=function(t,n,e){var r=qi(t)?Rn:Bn,o=arguments.length<3;return r(t,au(n,4),e,o,lr)},Ne.reduceRight=function(t,n,e){var r=qi(t)?An:Bn,o=arguments.length<3;return r(t,au(n,4),e,o,pr)},Ne.repeat=function(t,n,e){return n=(e?_u(t,n,e):n===o)?1:va(n),Zr(ma(t),n)},Ne.replace=function(){var t=arguments,n=ma(t[0]);return t.length<3?n:n.replace(t[1],t[2])},Ne.result=function(t,n,e){var r=-1,u=(n=_o(n,t)).length;for(u||(u=1,t=o);++r<u;){var i=null==t?o:t[Du(n[r])];i===o&&(r=u,i=e),t=Qi(i)?i.call(t):i}return t},Ne.round=jc,Ne.runInContext=t,Ne.sample=function(t){return(qi(t)?Je:Kr)(t)},Ne.size=function(t){if(null==t)return 0;if(Zi(t))return ca(t)?ue(t):t.length;var n=hu(t);return n==x||n==C?t.size:Ur(t).length},Ne.snakeCase=Ha,Ne.some=function(t,n,e){var r=qi(t)?Pn:eo;return e&&_u(t,n,e)&&(n=o),r(t,au(n,3))},Ne.sortedIndex=function(t,n){return ro(t,n)},Ne.sortedIndexBy=function(t,n,e){return oo(t,n,au(e,2))},Ne.sortedIndexOf=function(t,n){var e=null==t?0:t.length;if(e){var r=ro(t,n);if(r<e&&Fi(t[r],n))return r}return-1},Ne.sortedLastIndex=function(t,n){return ro(t,n,!0)},Ne.sortedLastIndexBy=function(t,n,e){return oo(t,n,au(e,2),!0)},Ne.sortedLastIndexOf=function(t,n){if(null!=t&&t.length){var e=ro(t,n,!0)-1;if(Fi(t[e],n))return e}return-1},Ne.startCase=Ka,Ne.startsWith=function(t,n,e){return t=ma(t),e=null==e?0:ir(va(e),0,t.length),n=ao(n),t.slice(e,e+n.length)==n},Ne.subtract=Sc,Ne.sum=function(t){return t&&t.length?Fn(t,oc):0},Ne.sumBy=function(t,n){return t&&t.length?Fn(t,au(n,2)):0},Ne.template=function(t,n,e){var r=Ne.templateSettings;e&&_u(t,n,e)&&(n=o),t=ma(t),n=xa({},n,r,Yo);var u,i,a=xa({},n.imports,r.imports,Yo),c=Ta(a),f=qn(a,c),s=0,l=n.interpolate||mt,p="__p += '",h=St((n.escape||mt).source+"|"+l.source+"|"+(l===Y?lt:mt).source+"|"+(n.evaluate||mt).source+"|$","g"),d="//# sourceURL="+(Lt.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Yt+"]")+"\n";t.replace(h,(function(n,e,r,o,a,c){return r||(r=o),p+=t.slice(s,c).replace(bt,Qn),e&&(u=!0,p+="' +\n__e("+e+") +\n'"),a&&(i=!0,p+="';\n"+a+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),s=c+n.length,n})),p+="';\n";var v=Lt.call(n,"variable")&&n.variable;if(v){if(ft.test(v))throw new wt("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(i?p.replace(W,""):p).replace($,"$1").replace(V,"$1;"),p="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(u?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var g=Xa((function(){return xt(c,d+"return "+p).apply(o,f)}));if(g.source=p,Yi(g))throw g;return g},Ne.times=function(t,n){if((t=va(t))<1||t>l)return[];var e=h,r=_e(t,h);n=au(n),t-=h;for(var o=Wn(r,n);++e<t;)n(e);return o},Ne.toFinite=da,Ne.toInteger=va,Ne.toLength=ga,Ne.toLower=function(t){return ma(t).toLowerCase()},Ne.toNumber=ya,Ne.toSafeInteger=function(t){return t?ir(va(t),-9007199254740991,l):0===t?t:0},Ne.toString=ma,Ne.toUpper=function(t){return ma(t).toUpperCase()},Ne.trim=function(t,n,e){if((t=ma(t))&&(e||n===o))return $n(t);if(!t||!(n=ao(n)))return t;var r=ie(t),u=ie(n);return bo(r,Zn(r,u),Hn(r,u)+1).join("")},Ne.trimEnd=function(t,n,e){if((t=ma(t))&&(e||n===o))return t.slice(0,ae(t)+1);if(!t||!(n=ao(n)))return t;var r=ie(t);return bo(r,0,Hn(r,ie(n))+1).join("")},Ne.trimStart=function(t,n,e){if((t=ma(t))&&(e||n===o))return t.replace(rt,"");if(!t||!(n=ao(n)))return t;var r=ie(t);return bo(r,Zn(r,ie(n))).join("")},Ne.truncate=function(t,n){var e=30,r="...";if(na(n)){var u="separator"in n?n.separator:u;e="length"in n?va(n.length):e,r="omission"in n?ao(n.omission):r}var i=(t=ma(t)).length;if(Xn(t)){var a=ie(t);i=a.length}if(e>=i)return t;var c=e-ue(r);if(c<1)return r;var f=a?bo(a,0,c).join(""):t.slice(0,c);if(u===o)return f+r;if(a&&(c+=f.length-c),ia(u)){if(t.slice(c).search(u)){var s,l=f;for(u.global||(u=St(u.source,ma(pt.exec(u))+"g")),u.lastIndex=0;s=u.exec(l);)var p=s.index;f=f.slice(0,p===o?c:p)}}else if(t.indexOf(ao(u),c)!=c){var h=f.lastIndexOf(u);h>-1&&(f=f.slice(0,h))}return f+r},Ne.unescape=function(t){return(t=ma(t))&&Z.test(t)?t.replace(q,ce):t},Ne.uniqueId=function(t){var n=++It;return ma(t)+n},Ne.upperCase=Ja,Ne.upperFirst=Ya,Ne.each=mi,Ne.eachRight=bi,Ne.first=Zu,cc(Ne,(_c={},mr(Ne,(function(t,n){Lt.call(Ne.prototype,n)||(_c[n]=t)})),_c),{chain:!1}),Ne.VERSION="4.17.21",bn(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Ne[t].placeholder=Ne})),bn(["drop","take"],(function(t,n){$e.prototype[t]=function(e){e=e===o?1:ye(va(e),0);var r=this.__filtered__&&!n?new $e(this):this.clone();return r.__filtered__?r.__takeCount__=_e(e,r.__takeCount__):r.__views__.push({size:_e(e,h),type:t+(r.__dir__<0?"Right":"")}),r},$e.prototype[t+"Right"]=function(n){return this.reverse()[t](n).reverse()}})),bn(["filter","map","takeWhile"],(function(t,n){var e=n+1,r=1==e||3==e;$e.prototype[t]=function(t){var n=this.clone();return n.__iteratees__.push({iteratee:au(t,3),type:e}),n.__filtered__=n.__filtered__||r,n}})),bn(["head","last"],(function(t,n){var e="take"+(n?"Right":"");$e.prototype[t]=function(){return this[e](1).value()[0]}})),bn(["initial","tail"],(function(t,n){var e="drop"+(n?"":"Right");$e.prototype[t]=function(){return this.__filtered__?new $e(this):this[e](1)}})),$e.prototype.compact=function(){return this.filter(oc)},$e.prototype.find=function(t){return this.filter(t).head()},$e.prototype.findLast=function(t){return this.reverse().find(t)},$e.prototype.invokeMap=Hr((function(t,n){return"function"==typeof t?new $e(this):this.map((function(e){return Ar(e,t,n)}))})),$e.prototype.reject=function(t){return this.filter(zi(au(t)))},$e.prototype.slice=function(t,n){t=va(t);var e=this;return e.__filtered__&&(t>0||n<0)?new $e(e):(t<0?e=e.takeRight(-t):t&&(e=e.drop(t)),n!==o&&(e=(n=va(n))<0?e.dropRight(-n):e.take(n-t)),e)},$e.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},$e.prototype.toArray=function(){return this.take(h)},mr($e.prototype,(function(t,n){var e=/^(?:filter|find|map|reject)|While$/.test(n),r=/^(?:head|last)$/.test(n),u=Ne[r?"take"+("last"==n?"Right":""):n],i=r||/^find/.test(n);u&&(Ne.prototype[n]=function(){var n=this.__wrapped__,a=r?[1]:arguments,c=n instanceof $e,f=a[0],s=c||qi(n),l=function(t){var n=u.apply(Ne,Cn([t],a));return r&&p?n[0]:n};s&&e&&"function"==typeof f&&1!=f.length&&(c=s=!1);var p=this.__chain__,h=!!this.__actions__.length,d=i&&!p,v=c&&!h;if(!i&&s){n=v?n:new $e(this);var g=t.apply(n,a);return g.__actions__.push({func:di,args:[l],thisArg:o}),new We(g,p)}return d&&v?t.apply(this,a):(g=this.thru(l),d?r?g.value()[0]:g.value():g)})})),bn(["pop","push","shift","sort","splice","unshift"],(function(t){var n=Rt[t],e=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);Ne.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var o=this.value();return n.apply(qi(o)?o:[],t)}return this[e]((function(e){return n.apply(qi(e)?e:[],t)}))}})),mr($e.prototype,(function(t,n){var e=Ne[n];if(e){var r=e.name+"";Lt.call(Pe,r)||(Pe[r]=[]),Pe[r].push({name:n,func:e})}})),Pe[No(o,2).name]=[{name:"wrapper",func:o}],$e.prototype.clone=function(){var t=new $e(this.__wrapped__);return t.__actions__=Ro(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Ro(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Ro(this.__views__),t},$e.prototype.reverse=function(){if(this.__filtered__){var t=new $e(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},$e.prototype.value=function(){var t=this.__wrapped__.value(),n=this.__dir__,e=qi(t),r=n<0,o=e?t.length:0,u=function(t,n,e){for(var r=-1,o=e.length;++r<o;){var u=e[r],i=u.size;switch(u.type){case"drop":t+=i;break;case"dropRight":n-=i;break;case"take":n=_e(n,t+i);break;case"takeRight":t=ye(t,n-i)}}return{start:t,end:n}}(0,o,this.__views__),i=u.start,a=u.end,c=a-i,f=r?a:i-1,s=this.__iteratees__,l=s.length,p=0,h=_e(c,this.__takeCount__);if(!e||!r&&o==c&&h==c)return po(t,this.__actions__);var d=[];t:for(;c--&&p<h;){for(var v=-1,g=t[f+=n];++v<l;){var y=s[v],_=y.iteratee,m=y.type,b=_(g);if(2==m)g=b;else if(!b){if(1==m)continue t;break t}}d[p++]=g}return d},Ne.prototype.at=vi,Ne.prototype.chain=function(){return hi(this)},Ne.prototype.commit=function(){return new We(this.value(),this.__chain__)},Ne.prototype.next=function(){this.__values__===o&&(this.__values__=ha(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?o:this.__values__[this.__index__++]}},Ne.prototype.plant=function(t){for(var n,e=this;e instanceof Fe;){var r=Bu(e);r.__index__=0,r.__values__=o,n?u.__wrapped__=r:n=r;var u=r;e=e.__wrapped__}return u.__wrapped__=t,n},Ne.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof $e){var n=t;return this.__actions__.length&&(n=new $e(this)),(n=n.reverse()).__actions__.push({func:di,args:[ni],thisArg:o}),new We(n,this.__chain__)}return this.thru(ni)},Ne.prototype.toJSON=Ne.prototype.valueOf=Ne.prototype.value=function(){return po(this.__wrapped__,this.__actions__)},Ne.prototype.first=Ne.prototype.head,an&&(Ne.prototype[an]=function(){return this}),Ne}();un._=fe,(r=function(){return fe}.call(n,e,n,t))===o||(t.exports=r)}.call(this)},968:(t,n,e)=>{const r=e(577).R;n.s=function(t){if(t||(t=1),!e.y.meta||!e.y.meta.url)throw console.error("__system_context__",e.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");e.p=r(e.y.meta.url,t)}},577:(t,n,e)=>{n.R=function(t,n){var e=document.createElement("a");e.href=t;for(var r="/"===e.pathname[0]?e.pathname:"/"+e.pathname,o=0,u=r.length;o!==n&&u>=0;)"/"===r[--u]&&o++;if(o!==n)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+n+") is greater than the number of directories ("+o+") in the URL path "+t);var i=r.slice(0,u+1);return e.protocol+"//"+e.host+i};Number.isInteger},766:t=>{"use strict";t.exports=f},824:t=>{"use strict";t.exports=r},45:t=>{"use strict";t.exports=o},728:t=>{"use strict";t.exports=u},688:t=>{"use strict";t.exports=s},64:t=>{"use strict";t.exports=a},954:t=>{"use strict";t.exports=e},493:t=>{"use strict";t.exports=i},281:t=>{"use strict";t.exports=c}},l={};function p(n){var e=l[n];if(void 0!==e)return e.exports;var r=l[n]={id:n,loaded:!1,exports:{}};return t[n].call(r.exports,r,r.exports,p),r.loaded=!0,r.exports}p.y=n,p.n=t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return p.d(n,{a:n}),n},p.d=(t,n)=>{for(var e in n)p.o(n,e)&&!p.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:n[e]})},p.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),p.o=(t,n)=>Object.prototype.hasOwnProperty.call(t,n),p.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},p.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{var t;p.g.importScripts&&(t=p.g.location+"");var n=p.g.document;if(!t&&n&&(n.currentScript&&(t=n.currentScript.src),!t)){var e=n.getElementsByTagName("script");e.length&&(t=e[e.length-1].src)}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),p.p=t})();var h={};return(0,p(968).s)(1),(()=>{"use strict";p.r(h),p.d(h,{ComponentContext:()=>n,ConfigurableLink:()=>o,Extension:()=>a,ExtensionSlot:()=>_,UserHasAccess:()=>ye,createUseStore:()=>u,getAsyncExtensionLifecycle:()=>$,getAsyncLifecycle:()=>F,getLifecycle:()=>B,getSyncLifecycle:()=>W,openmrsComponentDecorator:()=>N,useAssignedExtensionIds:()=>V,useAssignedExtensions:()=>l,useBodyScrollLock:()=>q,useConfig:()=>Yn,useConnectedExtensions:()=>d,useConnectivity:()=>f,useCurrentPatient:()=>ce,useExtensionInternalStore:()=>fe,useExtensionSlot:()=>v,useExtensionSlotMeta:()=>se,useExtensionStore:()=>le,useForceUpdate:()=>pe,useLayoutType:()=>de,useLocations:()=>ve,useOnClickOutside:()=>ge,usePagination:()=>xr,usePatient:()=>re,useSession:()=>_e,useSessionUser:()=>me,useStore:()=>Ee,useStoreWithActions:()=>je,useVisit:()=>br,useVisitTypes:()=>wr});var t=p(954);const n=t.default.createContext({moduleName:""});var e=p(824);function r(){return r=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},r.apply(this,arguments)}const o=n=>{let{to:o,children:u,...i}=n;return t.default.createElement("a",r({onClick:t=>function(t,n){t.metaKey||t.ctrlKey||t.shiftKey||0!=t.button||(t.preventDefault(),(0,e.navigate)({to:n}))}(t,o),href:(0,e.interpolateUrl)(o)},i),u)};function u(n){return function(e){const[r,o]=(0,t.useState)(n.getState());(0,t.useEffect)((()=>n.subscribe((t=>o(t)))),[]);let u={};return e&&(u=(0,t.useMemo)((()=>function(t,n){"function"==typeof n&&(n=n(t));const e={};for(let r in n)e[r]=t.action(n[r]);return e}(n,e)),[n,e])),{...r,...u}}}var i=p(45);const a=e=>{let{state:r,wrap:o}=e;const[u,a]=(0,t.useState)(),{extension:c}=(0,t.useContext)(n),f=(0,t.useCallback)((t=>{a(t)}),[]);(0,t.useEffect)((()=>{if(null!=u&&c)return(0,i.renderExtension)(u,c.extensionSlotName,c.extensionSlotModuleName,c.extensionId,void 0,r)}),[c?.extensionSlotName,c?.extensionId,c?.extensionSlotModuleName,r,u]);const s=t.default.createElement("div",{ref:f,"data-extension-id":c?.extensionId,style:{position:"relative"}});return c&&o?o(s,c):s};var c=p(728);function f(){let[n,e]=(0,t.useState)(window.navigator.onLine);return(0,t.useEffect)((()=>(0,c.subscribeConnectivityChanged)((t=>{let{online:n}=t;return e(n)}))),[]),n}var s=p(891);function l(n){const[e,r]=(0,t.useState)([]);return(0,t.useEffect)((()=>{function t(t){const o=t.slots[n]?.assignedExtensions??[];(0,s.isEqual)(o,e)||r(o)}return t((0,i.getExtensionStore)().getState()),(0,i.getExtensionStore)().subscribe(t)}),[n,e]),e}function d(n){const e=f(),r=l(n);return(0,t.useMemo)((()=>(0,i.getConnectedExtensions)(r,e)),[r,e])}function v(e){const{moduleName:r}=(0,t.useContext)(n);if(!r)throw Error("ComponentContext has not been provided. This should come from @openmrs/esm-react-utils.");return(0,t.useEffect)((()=>{(0,i.registerExtensionSlot)(r,e)}),[]),{extensions:d(e),extensionSlotName:e,extensionSlotModuleName:r}}function g(){return g=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},g.apply(this,arguments)}function y(t){return t}const _=e=>{let{extensionSlotName:r,select:o=y,children:u,state:i,style:c,...f}=e;const s=(0,t.useRef)(null),{extensions:l,extensionSlotModuleName:p}=v(r),h=(0,t.useRef)(i);(function(t,n){if(t===n)return!0;if(!t&&n)return!1;if(t&&!n)return!1;if("object"!=typeof t||"object"!=typeof n)return!1;const e=Object.keys(t),r=Object.keys(n);if(e.length!==r.length)return!1;for(let r=0;r<e.length;r++){const o=e[r];if(!(o in n)||n[o]!==t[o])return!1}return!0})(h.current,i)||(h.current=i);const d=(0,t.useMemo)((()=>r&&o(l).map((e=>t.default.createElement(n.Provider,{key:e.id,value:{moduleName:p,extension:{extensionId:e.id,extensionSlotName:r,extensionSlotModuleName:p}}},u??t.default.createElement(a,{state:h.current}))))),[o,l,r,h.current]);return t.default.createElement("div",g({ref:s,"data-extension-slot-name":r,"data-extension-slot-module-name":p,style:{...c,position:"relative"}},f),d)};var m=p(493);function b(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function w(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?b(Object(e),!0).forEach((function(n){E(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):b(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function x(t){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function E(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function j(t){return(j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function S(t,n){var e;if("function"!=typeof(e=n.domElement?function(){return n.domElement}:n.domElementGetter?n.domElementGetter:t.domElementGetter?t.domElementGetter:function(t){var n=t.appName||t.name;if(!n)throw Error("single-spa's dom-element-getter-helpers was not given an application name as a prop, so it can't make a unique dom element container for the react application");var e="single-spa-application:".concat(n);return function(){var t=document.getElementById(e);return t||((t=document.createElement("div")).id=e,document.body.appendChild(t)),t}}(n)))throw Error("single-spa's dom-element-getter-helpers was given an invalid domElementGetter for application or parcel '".concat(n.name,"'. Expected a function, received ").concat(j(e)));return function(){var t=e(n);if(!(t instanceof HTMLElement))throw Error("single-spa's dom-element-getter-helpers: domElementGetter returned an invalid dom element for application or parcel '".concat(n.name,"'. Expected HTMLElement, received ").concat(j(t)));return t}}var O=null;try{O=require("react").createContext()}catch(b){}var C={React:null,ReactDOM:null,rootComponent:null,loadRootComponent:null,renderType:null,errorBoundary:null,errorBoundaryClass:null,domElementGetter:null,parcelCanUpdate:!0,suppressComponentDidCatchWarning:!1,domElements:{},renderResults:{},updateResolves:{}};function R(t){if("object"!==x(t))throw new Error("single-spa-react requires a configuration object");var n=w(w({},C),t);if(!n.React)throw new Error("single-spa-react must be passed opts.React");if(!n.ReactDOM)throw new Error("single-spa-react must be passed opts.ReactDOM");if(!n.rootComponent&&!n.loadRootComponent)throw new Error("single-spa-react must be passed opts.rootComponent or opts.loadRootComponent");if(n.errorBoundary&&"function"!=typeof n.errorBoundary)throw Error("The errorBoundary opt for single-spa-react must either be omitted or be a function that returns React elements");!O&&n.React.createContext&&(O=n.React.createContext()),n.SingleSpaRoot=function(t){function n(t){n.displayName="SingleSpaRoot(".concat(t.name,")")}return n.prototype=Object.create(t.React.Component.prototype),n.prototype.componentDidMount=function(){setTimeout(this.props.mountFinished)},n.prototype.componentWillUnmount=function(){setTimeout(this.props.unmountFinished)},n.prototype.render=function(){return setTimeout(this.props.updateFinished),this.props.children},n}(n);var e={bootstrap:A.bind(null,n),mount:P.bind(null,n),unmount:k.bind(null,n)};return n.parcelCanUpdate&&(e.update=T.bind(null,n)),e}function A(t,n){return t.rootComponent?Promise.resolve():t.loadRootComponent(n).then((function(n){t.rootComponent=n}))}function P(t,n){return new Promise((function(e,r){t.suppressComponentDidCatchWarning||!function(t){if(!(t&&"string"==typeof t.version&&t.version.indexOf(".")>=0))return!1;var n=t.version.slice(0,t.version.indexOf("."));try{return Number(n)>=16}catch(t){return!1}}(t.React)||t.errorBoundary||(t.rootComponent.prototype?t.rootComponent.prototype.componentDidCatch||console.warn("single-spa-react: ".concat(n.name||n.appName||n.childAppName,"'s rootComponent should implement componentDidCatch to avoid accidentally unmounting the entire single-spa application.")):console.warn("single-spa-react: ".concat(n.name||n.appName||n.childAppName,"'s rootComponent does not implement an error boundary. If using a functional component, consider providing an opts.errorBoundary to singleSpaReact(opts).")));var o=L(t,n,(function(){e(this)})),u=S(t,n)(),i=function(t){var n=t.opts,e=t.elementToRender,r=t.domElement,o="function"==typeof n.renderType?n.renderType():n.renderType;if(["createRoot","unstable_createRoot","createBlockingRoot","unstable_createBlockingRoot"].indexOf(o)>=0){var u=n.ReactDOM[o](r);return u.render(e),u}return"hydrate"===o?n.ReactDOM.hydrate(e,r):n.ReactDOM.render(e,r),null}({elementToRender:o,domElement:u,opts:t});t.domElements[n.name]=u,t.renderResults[n.name]=i}))}function k(t,n){return new Promise((function(e){t.unmountFinished=e;var r=t.renderResults[n.name];r&&r.unmount?r.unmount():t.ReactDOM.unmountComponentAtNode(t.domElements[n.name]),delete t.domElements[n.name],delete t.renderResults[n.name]}))}function T(t,n){return new Promise((function(e){t.updateResolves[n.name]||(t.updateResolves[n.name]=[]),t.updateResolves[n.name].push(e);var r=L(t,n,null),o=t.renderResults[n.name];if(o&&o.render)o.render(r);else{var u=S(t,n)();t.ReactDOM.render(r,u)}}))}function L(t,n,e){var r=t.React.createElement(t.rootComponent,n),o=O?t.React.createElement(O.Provider,{value:n},r):r;return(t.errorBoundary||n.errorBoundary||t.errorBoundaryClass||n.errorBoundaryClass)&&(t.errorBoundaryClass=t.errorBoundaryClass||n.errorBoundaryClass||function(t,n){function e(n){t.React.Component.apply(this,arguments),this.state={caughtError:null,caughtErrorInfo:null},e.displayName="SingleSpaReactErrorBoundary(".concat(n.name,")")}return e.prototype=Object.create(t.React.Component.prototype),e.prototype.render=function(){return this.state.caughtError?(t.errorBoundary||n.errorBoundary)(this.state.caughtError,this.state.caughtErrorInfo,this.props):this.props.children},e.prototype.componentDidCatch=function(t,n){this.setState({caughtError:t,caughtErrorInfo:n})},e}(t,n),o=t.React.createElement(t.errorBoundaryClass,n,o)),t.React.createElement(t.SingleSpaRoot,w(w({},n),{},{mountFinished:e,updateFinished:function(){t.updateResolves[n.name]&&(t.updateResolves[n.name].forEach((function(t){return t()})),delete t.updateResolves[n.name])},unmountFinished:function(){setTimeout(t.unmountFinished)}}),o)}var I=p(64),U=p(281);const z=I.default.default||I.default,M={strictMode:!0,throwErrorsToConsole:!0,disableTranslations:!1},D=n=>{(0,t.useEffect)((()=>(z.on("languageChanged",n.forceUpdate),()=>z.off("languageChanged",n.forceUpdate))),[n.forceUpdate]);const e=(0,t.useRef)(null);if(e.current)throw e.current;if(!z.hasLoadedNamespace(n.ns)){const t=setTimeout((()=>{console.warn(`openmrsComponentDecorator: the React suspense promise for i18next.loadNamespaces(['${n.ns}']) did not resolve nor reject after three seconds. This could mean you have multiple versions of i18next and haven't made i18next a webpack external in all projects.`)}),3e3);throw z.loadNamespaces([n.ns]).then((()=>clearTimeout(t))).catch((n=>{clearTimeout(t),e.current=n}))}return t.default.createElement(t.default.Fragment,null,n.children)};function N(e){if("object"!=typeof e||"string"!=typeof e.featureName||"string"!=typeof e.moduleName)throw new Error("Invalid options");const r=Object.assign({},M,e);return function(e){var o,u,i,a;return u=o=class extends t.default.Component{constructor(t){super(t),this.state={caughtError:null,caughtErrorInfo:null,config:{moduleName:r.moduleName,extension:t._extensionContext}}}componentDidCatch(t,n){n&&n.componentStack&&(t.extra=Object.assign(t.extra||{},{componentStack:n.componentStack})),r.throwErrorsToConsole&&setTimeout((()=>{throw t})),this.setState({caughtError:t,caughtErrorInfo:n})}render(){if(this.state.caughtError)return t.default.createElement("div",null,"An error has occurred. Please try reloading the page.");{const o=t.default.createElement(n.Provider,{value:this.state.config},t.default.createElement(t.default.Suspense,{fallback:null},r.disableTranslations?t.default.createElement(e,this.props):t.default.createElement(D,{ns:r.moduleName,forceUpdate:()=>this.forceUpdate()},t.default.createElement(U.I18nextProvider,{i18n:z,defaultNS:r.moduleName},t.default.createElement(e,this.props)))));return r.strictMode||!t.default.StrictMode?o:t.default.createElement(t.default.StrictMode,null,o)}}},i="displayName",a=`OpenmrsReactComponent(${r.featureName})`,i in u?Object.defineProperty(u,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):u[i]=a,o}}function B(n,e){return R({React:t.default,ReactDOM:m.default,rootComponent:N(e)(n)})}function F(t,n){return()=>t().then((t=>{let{default:e}=t;return B(e,n)}))}function W(t,n){return()=>Promise.resolve(B(t,n))}const $=F;function V(n){const[e,r]=(0,t.useState)([]);return(0,t.useEffect)((()=>(0,i.getExtensionStore)().subscribe((t=>{const o=t.slots[n]?.assignedExtensions.map((t=>t.id))??[];(0,s.isEqual)(o,e)||r(o)}))),[]),e}function q(n){(0,t.useEffect)((()=>{if(n){const t=window.getComputedStyle(document.body).overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=t}}}),[n])}const G=function(t,n){return t===n||t!=t&&n!=n},Z=function(t,n){for(var e=t.length;e--;)if(G(t[e][0],n))return e;return-1};var H=Array.prototype.splice;function K(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}K.prototype.clear=function(){this.__data__=[],this.size=0},K.prototype.delete=function(t){var n=this.__data__,e=Z(n,t);return!(e<0||(e==n.length-1?n.pop():H.call(n,e,1),--this.size,0))},K.prototype.get=function(t){var n=this.__data__,e=Z(n,t);return e<0?void 0:n[e][1]},K.prototype.has=function(t){return Z(this.__data__,t)>-1},K.prototype.set=function(t,n){var e=this.__data__,r=Z(e,t);return r<0?(++this.size,e.push([t,n])):e[r][1]=n,this};const J=K,Y="object"==typeof global&&global&&global.Object===Object&&global;var Q="object"==typeof self&&self&&self.Object===Object&&self;const X=Y||Q||Function("return this")(),tt=X.Symbol;var nt=Object.prototype,et=nt.hasOwnProperty,rt=nt.toString,ot=tt?tt.toStringTag:void 0;var ut=Object.prototype.toString;var it=tt?tt.toStringTag:void 0;const at=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":it&&it in Object(t)?function(t){var n=et.call(t,ot),e=t[ot];try{t[ot]=void 0;var r=!0}catch(t){}var o=rt.call(t);return r&&(n?t[ot]=e:delete t[ot]),o}(t):function(t){return ut.call(t)}(t)},ct=function(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)},ft=function(t){if(!ct(t))return!1;var n=at(t);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n},st=X["__core-js_shared__"];var lt,pt=(lt=/[^.]+$/.exec(st&&st.keys&&st.keys.IE_PROTO||""))?"Symbol(src)_1."+lt:"";var ht=Function.prototype.toString;const dt=function(t){if(null!=t){try{return ht.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var vt=/^\[object .+?Constructor\]$/,gt=Function.prototype,yt=Object.prototype,_t=gt.toString,mt=yt.hasOwnProperty,bt=RegExp("^"+_t.call(mt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const wt=function(t){return!(!ct(t)||(n=t,pt&&pt in n))&&(ft(t)?bt:vt).test(dt(t));var n},xt=function(t,n){var e=function(t,n){return null==t?void 0:t[n]}(t,n);return wt(e)?e:void 0},Et=xt(X,"Map"),jt=xt(Object,"create");var St=Object.prototype.hasOwnProperty;var Ot=Object.prototype.hasOwnProperty;function Ct(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}Ct.prototype.clear=function(){this.__data__=jt?jt(null):{},this.size=0},Ct.prototype.delete=function(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n},Ct.prototype.get=function(t){var n=this.__data__;if(jt){var e=n[t];return"__lodash_hash_undefined__"===e?void 0:e}return St.call(n,t)?n[t]:void 0},Ct.prototype.has=function(t){var n=this.__data__;return jt?void 0!==n[t]:Ot.call(n,t)},Ct.prototype.set=function(t,n){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=jt&&void 0===n?"__lodash_hash_undefined__":n,this};const Rt=Ct,At=function(t,n){var e,r,o=t.__data__;return("string"==(r=typeof(e=n))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==e:null===e)?o["string"==typeof n?"string":"hash"]:o.map};function Pt(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}Pt.prototype.clear=function(){this.size=0,this.__data__={hash:new Rt,map:new(Et||J),string:new Rt}},Pt.prototype.delete=function(t){var n=At(this,t).delete(t);return this.size-=n?1:0,n},Pt.prototype.get=function(t){return At(this,t).get(t)},Pt.prototype.has=function(t){return At(this,t).has(t)},Pt.prototype.set=function(t,n){var e=At(this,t),r=e.size;return e.set(t,n),this.size+=e.size==r?0:1,this};const kt=Pt;function Tt(t){var n=this.__data__=new J(t);this.size=n.size}Tt.prototype.clear=function(){this.__data__=new J,this.size=0},Tt.prototype.delete=function(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e},Tt.prototype.get=function(t){return this.__data__.get(t)},Tt.prototype.has=function(t){return this.__data__.has(t)},Tt.prototype.set=function(t,n){var e=this.__data__;if(e instanceof J){var r=e.__data__;if(!Et||r.length<199)return r.push([t,n]),this.size=++e.size,this;e=this.__data__=new kt(r)}return e.set(t,n),this.size=e.size,this};const Lt=Tt;function It(t){var n=-1,e=null==t?0:t.length;for(this.__data__=new kt;++n<e;)this.add(t[n])}It.prototype.add=It.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},It.prototype.has=function(t){return this.__data__.has(t)};const Ut=It,zt=function(t,n){for(var e=-1,r=null==t?0:t.length;++e<r;)if(n(t[e],e,t))return!0;return!1},Mt=function(t,n){return t.has(n)},Dt=function(t,n,e,r,o,u){var i=1&e,a=t.length,c=n.length;if(a!=c&&!(i&&c>a))return!1;var f=u.get(t),s=u.get(n);if(f&&s)return f==n&&s==t;var l=-1,p=!0,h=2&e?new Ut:void 0;for(u.set(t,n),u.set(n,t);++l<a;){var d=t[l],v=n[l];if(r)var g=i?r(v,d,l,n,t,u):r(d,v,l,t,n,u);if(void 0!==g){if(g)continue;p=!1;break}if(h){if(!zt(n,(function(t,n){if(!Mt(h,n)&&(d===t||o(d,t,e,r,u)))return h.push(n)}))){p=!1;break}}else if(d!==v&&!o(d,v,e,r,u)){p=!1;break}}return u.delete(t),u.delete(n),p},Nt=X.Uint8Array,Bt=function(t){var n=-1,e=Array(t.size);return t.forEach((function(t,r){e[++n]=[r,t]})),e},Ft=function(t){var n=-1,e=Array(t.size);return t.forEach((function(t){e[++n]=t})),e};var Wt=tt?tt.prototype:void 0,$t=Wt?Wt.valueOf:void 0;const Vt=Array.isArray;var qt=Object.prototype.propertyIsEnumerable,Gt=Object.getOwnPropertySymbols;const Zt=Gt?function(t){return null==t?[]:(t=Object(t),function(t,n){for(var e=-1,r=null==t?0:t.length,o=0,u=[];++e<r;){var i=t[e];n(i,e,t)&&(u[o++]=i)}return u}(Gt(t),(function(n){return qt.call(t,n)})))}:function(){return[]},Ht=function(t){return null!=t&&"object"==typeof t},Kt=function(t){return Ht(t)&&"[object Arguments]"==at(t)};var Jt=Object.prototype,Yt=Jt.hasOwnProperty,Qt=Jt.propertyIsEnumerable,Xt=Kt(function(){return arguments}())?Kt:function(t){return Ht(t)&&Yt.call(t,"callee")&&!Qt.call(t,"callee")};const tn=Xt;var nn="object"==typeof exports&&exports&&!exports.nodeType&&exports,en=nn&&"object"==typeof module&&module&&!module.nodeType&&module,rn=en&&en.exports===nn?X.Buffer:void 0;const on=(rn?rn.isBuffer:void 0)||function(){return!1};var un=/^(?:0|[1-9]\d*)$/;const an=function(t,n){var e=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==e||"symbol"!=e&&un.test(t))&&t>-1&&t%1==0&&t<n},cn=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var fn={};fn["[object Float32Array]"]=fn["[object Float64Array]"]=fn["[object Int8Array]"]=fn["[object Int16Array]"]=fn["[object Int32Array]"]=fn["[object Uint8Array]"]=fn["[object Uint8ClampedArray]"]=fn["[object Uint16Array]"]=fn["[object Uint32Array]"]=!0,fn["[object Arguments]"]=fn["[object Array]"]=fn["[object ArrayBuffer]"]=fn["[object Boolean]"]=fn["[object DataView]"]=fn["[object Date]"]=fn["[object Error]"]=fn["[object Function]"]=fn["[object Map]"]=fn["[object Number]"]=fn["[object Object]"]=fn["[object RegExp]"]=fn["[object Set]"]=fn["[object String]"]=fn["[object WeakMap]"]=!1;var sn="object"==typeof exports&&exports&&!exports.nodeType&&exports,ln=sn&&"object"==typeof module&&module&&!module.nodeType&&module,pn=ln&&ln.exports===sn&&Y.process,hn=function(){try{return ln&&ln.require&&ln.require("util").types||pn&&pn.binding&&pn.binding("util")}catch(t){}}(),dn=hn&&hn.isTypedArray;const vn=dn?(gn=dn,function(t){return gn(t)}):function(t){return Ht(t)&&cn(t.length)&&!!fn[at(t)]};var gn,yn=Object.prototype.hasOwnProperty;const _n=function(t,n){var e=Vt(t),r=!e&&tn(t),o=!e&&!r&&on(t),u=!e&&!r&&!o&&vn(t),i=e||r||o||u,a=i?function(t,n){for(var e=-1,r=Array(t);++e<t;)r[e]=n(e);return r}(t.length,String):[],c=a.length;for(var f in t)!n&&!yn.call(t,f)||i&&("length"==f||o&&("offset"==f||"parent"==f)||u&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||an(f,c))||a.push(f);return a};var mn=Object.prototype;const bn=function(t,n){return function(e){return t(n(e))}}(Object.keys,Object);var wn=Object.prototype.hasOwnProperty;const xn=function(t){if(e=(n=t)&&n.constructor,n!==("function"==typeof e&&e.prototype||mn))return bn(t);var n,e,r=[];for(var o in Object(t))wn.call(t,o)&&"constructor"!=o&&r.push(o);return r},En=function(t){return null!=(n=t)&&cn(n.length)&&!ft(n)?_n(t):xn(t);var n},jn=function(t){return function(t,n,e){var r=n(t);return Vt(t)?r:function(t,n){for(var e=-1,r=n.length,o=t.length;++e<r;)t[o+e]=n[e];return t}(r,e(t))}(t,En,Zt)};var Sn=Object.prototype.hasOwnProperty;const On=xt(X,"DataView"),Cn=xt(X,"Promise"),Rn=xt(X,"Set"),An=xt(X,"WeakMap");var Pn="[object Map]",kn="[object Promise]",Tn="[object Set]",Ln="[object WeakMap]",In="[object DataView]",Un=dt(On),zn=dt(Et),Mn=dt(Cn),Dn=dt(Rn),Nn=dt(An),Bn=at;(On&&Bn(new On(new ArrayBuffer(1)))!=In||Et&&Bn(new Et)!=Pn||Cn&&Bn(Cn.resolve())!=kn||Rn&&Bn(new Rn)!=Tn||An&&Bn(new An)!=Ln)&&(Bn=function(t){var n=at(t),e="[object Object]"==n?t.constructor:void 0,r=e?dt(e):"";if(r)switch(r){case Un:return In;case zn:return Pn;case Mn:return kn;case Dn:return Tn;case Nn:return Ln}return n});const Fn=Bn;var Wn="[object Arguments]",$n="[object Array]",Vn="[object Object]",qn=Object.prototype.hasOwnProperty;const Gn=function(t,n,e,r,o,u){var i=Vt(t),a=Vt(n),c=i?$n:Fn(t),f=a?$n:Fn(n),s=(c=c==Wn?Vn:c)==Vn,l=(f=f==Wn?Vn:f)==Vn,p=c==f;if(p&&on(t)){if(!on(n))return!1;i=!0,s=!1}if(p&&!s)return u||(u=new Lt),i||vn(t)?Dt(t,n,e,r,o,u):function(t,n,e,r,o,u,i){switch(e){case"[object DataView]":if(t.byteLength!=n.byteLength||t.byteOffset!=n.byteOffset)return!1;t=t.buffer,n=n.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=n.byteLength||!u(new Nt(t),new Nt(n)));case"[object Boolean]":case"[object Date]":case"[object Number]":return G(+t,+n);case"[object Error]":return t.name==n.name&&t.message==n.message;case"[object RegExp]":case"[object String]":return t==n+"";case"[object Map]":var a=Bt;case"[object Set]":var c=1&r;if(a||(a=Ft),t.size!=n.size&&!c)return!1;var f=i.get(t);if(f)return f==n;r|=2,i.set(t,n);var s=Dt(a(t),a(n),r,o,u,i);return i.delete(t),s;case"[object Symbol]":if($t)return $t.call(t)==$t.call(n)}return!1}(t,n,c,e,r,o,u);if(!(1&e)){var h=s&&qn.call(t,"__wrapped__"),d=l&&qn.call(n,"__wrapped__");if(h||d){var v=h?t.value():t,g=d?n.value():n;return u||(u=new Lt),o(v,g,e,r,u)}}return!!p&&(u||(u=new Lt),function(t,n,e,r,o,u){var i=1&e,a=jn(t),c=a.length;if(c!=jn(n).length&&!i)return!1;for(var f=c;f--;){var s=a[f];if(!(i?s in n:Sn.call(n,s)))return!1}var l=u.get(t),p=u.get(n);if(l&&p)return l==n&&p==t;var h=!0;u.set(t,n),u.set(n,t);for(var d=i;++f<c;){var v=t[s=a[f]],g=n[s];if(r)var y=i?r(g,v,s,n,t,u):r(v,g,s,t,n,u);if(!(void 0===y?v===g||o(v,g,e,r,u):y)){h=!1;break}d||(d="constructor"==s)}if(h&&!d){var _=t.constructor,m=n.constructor;_==m||!("constructor"in t)||!("constructor"in n)||"function"==typeof _&&_ instanceof _&&"function"==typeof m&&m instanceof m||(h=!1)}return u.delete(t),u.delete(n),h}(t,n,e,r,o,u))},Zn=function t(n,e,r,o,u){return n===e||(null==n||null==e||!Ht(n)&&!Ht(e)?n!=n&&e!=e:Gn(n,e,r,o,t,u))},Hn=function(t,n){return Zn(t,n)},Kn={};function Jn(n){const r=(0,t.useMemo)(e.getExtensionsConfigStore,[]),o=function(n,r){const[o,u]=(0,t.useState)(function(t,n){return n?()=>{const r=t.getState(),o=(0,e.getExtensionConfigFromStore)(r,n.extensionSlotName,n.extensionId);if(o.loaded&&o.config)return o.config}:null}(n,r));return(0,t.useEffect)((()=>{if(r)return n.subscribe((t=>{const n=(0,e.getExtensionConfigFromStore)(t,r.extensionSlotName,r.extensionId);n.loaded&&n.config&&!Hn(n.config,o)&&u(n.config)}))}),[n,r,o]),o}(r,n);if(!o&&n){const t=`${n.extensionSlotName}-${n.extensionId}`;throw!Kn[t]&&r&&(Kn[t]=function(t,n){return new Promise((r=>{const o=t.subscribe((t=>{const u=(0,e.getExtensionConfigFromStore)(t,n.extensionSlotName,n.extensionId);u.loaded&&u.config&&(r(u.config),o())}))}))}(r,n)),Kn[t]}return o||{}}function Yn(){const{moduleName:r,extension:o}=(0,t.useContext)(n);if(!r&&!o)throw Error('No ComponentContext has been provided. This should come from "openmrsComponentDecorator".\nUsually this is already applied when using "getAsyncLifecycle" or "getSyncLifecycle".');const u=function(n){const r=(0,t.useMemo)((()=>(0,e.getConfigStore)(n)),[n]),o=n,u=function(n){const[e,r]=(0,t.useState)(function(t){return()=>{const n=t.getState();return n.loaded&&n.config?n.config:null}}(n));return(0,t.useEffect)((()=>n?.subscribe((t=>{t.loaded&&t.config&&r(t.config)}))),[n]),e}(r);if(!u)throw Kn[o]||(Kn[o]=function(t){return new Promise((n=>{const e=t.subscribe((t=>{t.loaded&&t.config&&(n(t.config),e())}))}))}(r)),Kn[o];return u}(r),i=Jn(o);return(0,t.useMemo)((()=>({...u,...i})),[u,i])}var Qn,Xn=p(766);!function(t){t.loadPatient="loadPatient",t.newPatient="newPatient",t.loadError="patientLoadError"}(Qn||(Qn={}));const te={patientUuid:null,patient:null,isPendingUuid:!0,isLoadingPatient:!1,err:null};function ne(){const t=/\/patient\/([a-zA-Z0-9\-]+)\/?/.exec(location.pathname);return t&&t[1]}function ee(t,n){switch(n.type){case Qn.loadPatient:return{...t,patientUuid:n.patientUuid,patient:null,isPendingUuid:!1,isLoadingPatient:!0,err:null};case Qn.newPatient:return{...t,patient:n.patient,isPendingUuid:!1,isLoadingPatient:!1,err:null};case Qn.loadError:return{...t,patient:null,isPendingUuid:!1,isLoadingPatient:!1,err:n.err};default:return t}}function re(n){const[e,r]=(0,t.useReducer)(ee,{...te,patientUuid:n??null,isPendingUuid:!n,isLoadingPatient:!!n});return(0,t.useEffect)((()=>{if(e.isPendingUuid){const t=ne();r(t?{type:Qn.loadPatient,patientUuid:t}:{type:Qn.newPatient,patient:null})}let t=!0;return e.isLoadingPatient&&e.patientUuid&&(0,Xn.fetchCurrentPatient)(e.patientUuid).then((n=>t&&r({patient:n.data,type:Qn.newPatient})),(n=>t&&r({err:n,type:Qn.loadError}))),()=>{t=!1}}),[e.isPendingUuid,e.isLoadingPatient,e.patientUuid]),(0,t.useEffect)((()=>{const t=t=>{const n=ne();n!=e.patientUuid&&r({type:Qn.loadPatient,patientUuid:n})};return window.addEventListener("single-spa:routing-event",t),()=>window.removeEventListener("single-spa:routing-event",t)}),[e.patientUuid]),{isLoading:e.isPendingUuid||e.isLoadingPatient,patient:e.patient,patientUuid:n??e.patientUuid,error:e.err}}var oe;!function(t){t.loadPatient="loadPatient",t.newPatient="newPatient",t.loadError="patientLloadErroroadError"}(oe||(oe={}));const ue={patient:null,isLoadingPatient:!0,err:null};function ie(){const t=/\/patient\/([a-zA-Z0-9\-]+)\/?/.exec(location.pathname);return t&&t[1]}function ae(t,n){switch(n.type){case oe.loadPatient:return{...t,patient:null,isLoadingPatient:!0,err:null};case oe.newPatient:return{...t,patient:n.patient,isLoadingPatient:!1,err:null};case oe.loadError:return{...t,patient:null,isLoadingPatient:!1,err:n.err};default:return t}}function ce(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ie();const[e,r]=(0,t.useReducer)(ae,ue);return(0,t.useEffect)((()=>{let t=!0;return n?((0,Xn.fetchCurrentPatient)(n).then((n=>t&&r({patient:n.data,type:oe.newPatient})),(n=>t&&r({err:n,type:oe.loadError}))),r({type:oe.loadPatient})):r({type:oe.newPatient,patient:null}),()=>{t=!1}}),[n]),[e.isLoadingPatient,e.patient,n,e.err]}const fe=u((0,i.getExtensionInternalStore)());function se(n){const e=d(n);return(0,t.useMemo)((()=>Object.fromEntries(e.map((t=>[t.name,t.meta])))),[e])}const le=u((0,i.getExtensionStore)());function pe(){const[,n]=(0,t.useState)(0);return(0,t.useCallback)((()=>{n((t=>t+1))}),[])}function he(){let t="tablet";return document.body.classList.forEach((n=>{switch(n){case"omrs-breakpoint-lt-tablet":t="phone";break;case"omrs-breakpoint-gt-tablet":t="desktop"}})),t}function de(){const[n,e]=(0,t.useState)(he);return(0,t.useEffect)((()=>{const t=()=>{e(he())};return window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)}),[]),n}function ve(){const[n,e]=(0,t.useState)([]);return(0,t.useEffect)((()=>{const t=(0,Xn.getLocations)().subscribe((t=>{e(t)}),(t=>{console.error(t)}));return()=>t.unsubscribe()}),[]),n}function ge(n){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const r=(0,t.useRef)(null);return(0,t.useEffect)((()=>{if(e){const t=t=>{r?.current?.contains(t.target)||n(t)};return window.addEventListener("click",t),()=>window.removeEventListener("click",t)}}),[n,e]),r}const ye=n=>{let{privilege:e,children:r}=n;const[o,u]=(0,t.useState)(null);return(0,t.useEffect)((()=>{const t=(0,Xn.getCurrentUser)({includeAuthStatus:!1}).subscribe(u);return()=>t.unsubscribe()}),[]),o&&(0,Xn.userHasAccess)(e,o)?t.default.createElement(t.default.Fragment,null,r):null};function _e(){const[n,e]=(0,t.useState)(null);return(0,t.useEffect)((()=>{const t=(0,Xn.getCurrentUser)({includeAuthStatus:!0}).subscribe((t=>e(t)));return()=>t.unsubscribe()}),[e]),n}const me=_e;var be=p(748);function we(t,n){"function"==typeof n&&(n=n(t));const e={};for(let r in n)e[r]=t.action(n[r]);return e}const xe=t=>t;function Ee(n){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:xe,r=arguments.length>2?arguments[2]:void 0;const[o,u]=(0,t.useState)((()=>e(n.getState())));(0,t.useEffect)((()=>(0,be.subscribeTo)(n,e,u)),[n,e]);let i={};return r&&(i=(0,t.useMemo)((()=>we(n,r)),[n,r])),{...o,...i}}function je(t,n){return Ee(t,xe,n)}function Se(t,n,e,r){return new(e||(e=Promise))((function(o,u){function i(t){try{c(r.next(t))}catch(t){u(t)}}function a(t){try{c(r.throw(t))}catch(t){u(t)}}function c(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(i,a)}c((r=r.apply(t,n||[])).next())}))}function Oe(t,n){var e,r,o,u,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return u={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function a(u){return function(a){return function(u){if(e)throw new TypeError("Generator is already executing.");for(;i;)try{if(e=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=n.call(t,i)}catch(t){u=[6,t],r=0}finally{e=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,a])}}}var Ce,Re=function(){},Ae=Re(),Pe=Object,ke=function(t){return t===Ae},Te=function(t){return"function"==typeof t},Le=function(t,n){return Pe.assign({},t,n)},Ie="undefined",Ue=function(){return typeof window!=Ie},ze=new WeakMap,Me=0,De=function(t){var n,e,r=typeof t,o=t&&t.constructor,u=o==Date;if(Pe(t)!==t||u||o==RegExp)n=u?t.toJSON():"symbol"==r?t.toString():"string"==r?JSON.stringify(t):""+t;else{if(n=ze.get(t))return n;if(n=++Me+"~",ze.set(t,n),o==Array){for(n="@",e=0;e<t.length;e++)n+=De(t[e])+",";ze.set(t,n)}if(o==Pe){n="#";for(var i=Pe.keys(t).sort();!ke(e=i.pop());)ke(t[e])||(n+=e+":"+De(t[e])+",");ze.set(t,n)}}return n},Ne=!0,Be=Ue(),Fe=typeof document!=Ie,We=Be&&window.addEventListener?window.addEventListener.bind(window):Re,$e=Fe?document.addEventListener.bind(document):Re,Ve=Be&&window.removeEventListener?window.removeEventListener.bind(window):Re,qe=Fe?document.removeEventListener.bind(document):Re,Ge={isOnline:function(){return Ne},isVisible:function(){var t=Fe&&document.visibilityState;return ke(t)||"hidden"!==t}},Ze={initFocus:function(t){return $e("visibilitychange",t),We("focus",t),function(){qe("visibilitychange",t),Ve("focus",t)}},initReconnect:function(t){var n=function(){Ne=!0,t()},e=function(){Ne=!1};return We("online",n),We("offline",e),function(){Ve("online",n),Ve("offline",e)}}},He=!Ue()||"Deno"in window,Ke=He?t.useEffect:t.useLayoutEffect,Je="undefined"!=typeof navigator&&navigator.connection,Ye=!He&&Je&&(["slow-2g","2g"].includes(Je.effectiveType)||Je.saveData),Qe=function(t){if(Te(t))try{t=t()}catch(n){t=""}var n=[].concat(t);return[t="string"==typeof t?t:(Array.isArray(t)?t.length:t)?De(t):"",n,t?"$swr$"+t:""]},Xe=new WeakMap,tr=function(t,n,e,r,o,u,i){void 0===i&&(i=!0);var a=Xe.get(t),c=a[0],f=a[1],s=a[3],l=c[n],p=f[n];if(i&&p)for(var h=0;h<p.length;++h)p[h](e,r,o);return u&&(delete s[n],l&&l[0])?l[0](2).then((function(){return t.get(n)})):t.get(n)},nr=0,er=function(){return++nr},rr=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Se(void 0,void 0,void 0,(function(){var n,e,r,o,u,i,a,c,f,s,l,p,h,d,v,g,y,_,m,b;return Oe(this,(function(w){switch(w.label){case 0:if(n=t[0],e=t[1],r=t[2],o=t[3],i=!!ke((u="boolean"==typeof o?{revalidate:o}:o||{}).populateCache)||u.populateCache,a=!1!==u.revalidate,c=!1!==u.rollbackOnError,f=u.optimisticData,s=Qe(e),l=s[0],p=s[2],!l)return[2];if(h=Xe.get(n),d=h[2],t.length<3)return[2,tr(n,l,n.get(l),Ae,Ae,a,!0)];if(v=r,y=er(),d[l]=[y,0],_=!ke(f),m=n.get(l),_&&(n.set(l,f),tr(n,l,f)),Te(v))try{v=v(n.get(l))}catch(t){g=t}return v&&Te(v.then)?[4,v.catch((function(t){g=t}))]:[3,2];case 1:if(v=w.sent(),y!==d[l][0]){if(g)throw g;return[2,v]}g&&_&&c&&(i=!0,v=m,n.set(l,m)),w.label=2;case 2:return i&&(g||(Te(i)&&(v=i(v,m)),n.set(l,v)),n.set(p,Le(n.get(p),{error:g}))),d[l][1]=er(),[4,tr(n,l,v,g,Ae,a,!!i)];case 3:if(b=w.sent(),g)throw g;return[2,i?b:v]}}))}))},or=function(t,n){for(var e in t)t[e][0]&&t[e][0](n)},ur=function(t,n){if(!Xe.has(t)){var e=Le(Ze,n),r={},o=rr.bind(Ae,t),u=Re;if(Xe.set(t,[r,{},{},{},o]),!He){var i=e.initFocus(setTimeout.bind(Ae,or.bind(Ae,r,0))),a=e.initReconnect(setTimeout.bind(Ae,or.bind(Ae,r,1)));u=function(){i&&i(),a&&a(),Xe.delete(t)}}return[t,o,u]}return[t,Xe.get(t)[4]]},ir=ur(new Map),ar=ir[0],cr=ir[1],fr=Le({onLoadingSlow:Re,onSuccess:Re,onError:Re,onErrorRetry:function(t,n,e,r,o){var u=e.errorRetryCount,i=o.retryCount,a=~~((Math.random()+.5)*(1<<(i<8?i:8)))*e.errorRetryInterval;!ke(u)&&i>u||setTimeout(r,a,o)},onDiscarded:Re,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Ye?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:Ye?5e3:3e3,compare:function(t,n){return De(t)==De(n)},isPaused:function(){return!1},cache:ar,mutate:cr,fallback:{}},Ge),sr=function(t,n){var e=Le(t,n);if(n){var r=t.use,o=t.fallback,u=n.use,i=n.fallback;r&&u&&(e.use=r.concat(u)),o&&i&&(e.fallback=Le(o,i))}return e},lr=(0,t.createContext)({}),pr=function(t){return Te(t[1])?[t[0],t[1],t[2]||{}]:[t[0],null,(null===t[1]?t[2]:t[1])||{}]},hr=function(){return Le(fr,(0,t.useContext)(lr))},dr=function(t,n,e){var r=n[t]||(n[t]=[]);return r.push(e),function(){var t=r.indexOf(e);t>=0&&(r[t]=r[r.length-1],r.pop())}},vr={dedupe:!0},gr=(Pe.defineProperty((function(n){var e=n.value,r=sr((0,t.useContext)(lr),e),o=e&&e.provider,u=(0,t.useState)((function(){return o?ur(o(r.cache||ar),e):Ae}))[0];return u&&(r.cache=u[0],r.mutate=u[1]),Ke((function(){return u?u[2]:Ae}),[]),(0,t.createElement)(lr.Provider,Le(n,{value:r}))}),"default",{value:fr}),Ce=function(n,e,r){var o=r.cache,u=r.compare,i=r.fallbackData,a=r.suspense,c=r.revalidateOnMount,f=r.refreshInterval,s=r.refreshWhenHidden,l=r.refreshWhenOffline,p=Xe.get(o),h=p[0],d=p[1],v=p[2],g=p[3],y=Qe(n),_=y[0],m=y[1],b=y[2],w=(0,t.useRef)(!1),x=(0,t.useRef)(!1),E=(0,t.useRef)(_),j=(0,t.useRef)(e),S=(0,t.useRef)(r),O=function(){return S.current},C=function(){return O().isVisible()&&O().isOnline()},R=function(t){return o.set(b,Le(o.get(b),t))},A=o.get(_),P=ke(i)?r.fallback[_]:i,k=ke(A)?P:A,T=o.get(b)||{},L=T.error,I=!w.current,U=function(){return I&&!ke(c)?c:!O().isPaused()&&(a?!ke(k):ke(k)||r.revalidateIfStale)},z=!(!_||!e)&&(!!T.isValidating||I&&U()),M=function(n,e){var r=(0,t.useState)({})[1],o=(0,t.useRef)(n),u=(0,t.useRef)({data:!1,error:!1,isValidating:!1}),i=(0,t.useCallback)((function(t){var n=!1,i=o.current;for(var a in t){var c=a;i[c]!==t[c]&&(i[c]=t[c],u.current[c]&&(n=!0))}n&&!e.current&&r({})}),[]);return Ke((function(){o.current=n})),[o,u.current,i]}({data:k,error:L,isValidating:z},x),D=M[0],N=M[1],B=M[2],F=(0,t.useCallback)((function(t){return Se(void 0,void 0,void 0,(function(){var n,e,i,a,c,f,s,l,p,h,d,y,b;return Oe(this,(function(S){switch(S.label){case 0:if(n=j.current,!_||!n||x.current||O().isPaused())return[2,!1];a=!0,c=t||{},f=!g[_]||!c.dedupe,s=function(){return!x.current&&_===E.current&&w.current},l=function(){var t=g[_];t&&t[1]===i&&delete g[_]},p={isValidating:!1},h=function(){R({isValidating:!1}),s()&&B(p)},R({isValidating:!0}),B({isValidating:!0}),S.label=1;case 1:return S.trys.push([1,3,,4]),f&&(tr(o,_,D.current.data,D.current.error,!0),r.loadingTimeout&&!o.get(_)&&setTimeout((function(){a&&s()&&O().onLoadingSlow(_,r)}),r.loadingTimeout),g[_]=[n.apply(void 0,m),er()]),b=g[_],e=b[0],i=b[1],[4,e];case 2:return e=S.sent(),f&&setTimeout(l,r.dedupingInterval),g[_]&&g[_][1]===i?(R({error:Ae}),p.error=Ae,d=v[_],!ke(d)&&(i<=d[0]||i<=d[1]||0===d[1])?(h(),f&&s()&&O().onDiscarded(_),[2,!1]):(u(D.current.data,e)?p.data=D.current.data:p.data=e,u(o.get(_),e)||o.set(_,e),f&&s()&&O().onSuccess(e,_,r),[3,4])):(f&&s()&&O().onDiscarded(_),[2,!1]);case 3:return y=S.sent(),l(),O().isPaused()||(R({error:y}),p.error=y,f&&s()&&(O().onError(y,_,r),("boolean"==typeof r.shouldRetryOnError&&r.shouldRetryOnError||Te(r.shouldRetryOnError)&&r.shouldRetryOnError(y))&&C()&&O().onErrorRetry(y,_,r,F,{retryCount:(c.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return a=!1,h(),s()&&f&&tr(o,_,p.data,p.error,!1),[2,!0]}}))}))}),[_]),W=(0,t.useCallback)(rr.bind(Ae,o,(function(){return E.current})),[]);if(Ke((function(){j.current=e,S.current=r})),Ke((function(){if(_){var t=_!==E.current,n=F.bind(Ae,vr),e=0,r=dr(_,d,(function(t,n,e){B(Le({error:n,isValidating:e},u(D.current.data,t)?Ae:{data:t}))})),o=dr(_,h,(function(t){if(0==t){var r=Date.now();O().revalidateOnFocus&&r>e&&C()&&(e=r+O().focusThrottleInterval,n())}else if(1==t)O().revalidateOnReconnect&&C()&&n();else if(2==t)return F()}));return x.current=!1,E.current=_,w.current=!0,t&&B({data:k,error:L,isValidating:z}),U()&&(ke(k)||He?n():(i=n,Ue()&&typeof window.requestAnimationFrame!=Ie?window.requestAnimationFrame(i):setTimeout(i,1))),function(){x.current=!0,r(),o()}}var i}),[_,F]),Ke((function(){var t;function n(){var n=Te(f)?f(k):f;n&&-1!==t&&(t=setTimeout(e,n))}function e(){D.current.error||!s&&!O().isVisible()||!l&&!O().isOnline()?n():F(vr).then(n)}return n(),function(){t&&(clearTimeout(t),t=-1)}}),[f,s,l,F]),(0,t.useDebugValue)(k),a&&ke(k)&&_)throw j.current=e,S.current=r,x.current=!1,ke(L)?F(vr):L;return{mutate:W,get data(){return N.data=!0,k},get error(){return N.error=!0,L},get isValidating(){return N.isValidating=!0,z}}},function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var e=hr(),r=pr(t),o=r[0],u=r[1],i=r[2],a=sr(e,i),c=Ce,f=a.use;if(f)for(var s=f.length;s-- >0;)c=f[s](c);return c(o,u||a.fetcher,a)}),yr=p(688),_r=p(332),mr=p.n(_r);function br(t){const{data:n,error:e,mutate:r,isValidating:o}=gr(`/ws/rest/v1/visit?patient=${t}&v=${Xn.defaultVisitCustomRepresentation}&includeInactive=false`,Xn.openmrsFetch);return{error:e,mutate:r,isValidating:o,currentVisit:n?.data.results.find((t=>null===t.stopDatetime&&(0,yr.default)(t.startDatetime).isToday()))??null}}function wr(){const[n,e]=(0,t.useState)([]);return(0,t.useEffect)((()=>{const t=(0,Xn.getVisitTypes)().subscribe((t=>{e(t)}),(t=>console.error(t)));return()=>t.unsubscribe()}),[]),n}function xr(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;const[r,o]=(0,t.useState)(1),u=(0,t.useMemo)((()=>Math.max(1,Math.ceil(n.length/e))),[n.length,e]),i=(0,t.useMemo)((()=>{const t=(r-1)*e,o=(r+0)*e;return n.slice(t,o)}),[n,r,e]);return{results:i,totalPages:u,currentPage:r,paginated:n.length>e,showNextButton:r<u,showPreviousButton:r>1,goTo(t){o(Math.max(1,Math.min(u,t)))},goToNext(){r<u&&o(r+1)},goToPrevious(){r>1&&o(r-1)}}}yr.default.extend(mr())})(),h})())}}}));
2
+ System.register(["react","@openmrs/esm-config","@openmrs/esm-extensions","@openmrs/esm-globals","react-dom","i18next","react-i18next","@openmrs/esm-api","dayjs"],(function(t,n){var e={},r={},o={},u={},i={},a={},c={},f={},l={};return{setters:[function(t){e.createContext=t.createContext,e.createElement=t.createElement,e.default=t.default,e.useCallback=t.useCallback,e.useContext=t.useContext,e.useDebugValue=t.useDebugValue,e.useEffect=t.useEffect,e.useLayoutEffect=t.useLayoutEffect,e.useMemo=t.useMemo,e.useReducer=t.useReducer,e.useRef=t.useRef,e.useState=t.useState},function(t){r.getConfigStore=t.getConfigStore,r.getExtensionConfigFromStore=t.getExtensionConfigFromStore,r.getExtensionsConfigStore=t.getExtensionsConfigStore,r.interpolateUrl=t.interpolateUrl,r.navigate=t.navigate},function(t){o.getConnectedExtensions=t.getConnectedExtensions,o.getExtensionInternalStore=t.getExtensionInternalStore,o.getExtensionStore=t.getExtensionStore,o.registerExtensionSlot=t.registerExtensionSlot,o.renderExtension=t.renderExtension},function(t){u.subscribeConnectivityChanged=t.subscribeConnectivityChanged},function(t){i.default=t.default},function(t){a.default=t.default},function(t){c.I18nextProvider=t.I18nextProvider},function(t){f.defaultVisitCustomRepresentation=t.defaultVisitCustomRepresentation,f.fetchCurrentPatient=t.fetchCurrentPatient,f.getCurrentUser=t.getCurrentUser,f.getLocations=t.getLocations,f.getVisitTypes=t.getVisitTypes,f.openmrsFetch=t.openmrsFetch,f.userHasAccess=t.userHasAccess},function(t){l.default=t.default}],execute:function(){t((()=>{var t={332:function(t){t.exports=function(){"use strict";return function(t,n,e){n.prototype.isToday=function(){var t="YYYY-MM-DD",n=e();return this.format(t)===n.format(t)}}}()},891:function(t,n,e){var r;t=e.nmd(t),function(){var o,u="Expected a function",i="__lodash_hash_undefined__",a="__lodash_placeholder__",c=32,f=128,l=1/0,s=9007199254740991,p=NaN,h=4294967295,v=[["ary",f],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",c],["partialRight",64],["rearg",256]],d="[object Arguments]",y="[object Array]",g="[object Boolean]",m="[object Date]",b="[object Error]",_="[object Function]",w="[object GeneratorFunction]",j="[object Map]",S="[object Number]",x="[object Object]",O="[object Promise]",E="[object RegExp]",A="[object Set]",C="[object String]",P="[object Symbol]",R="[object WeakMap]",I="[object ArrayBuffer]",k="[object DataView]",T="[object Float32Array]",L="[object Float64Array]",U="[object Int8Array]",M="[object Int16Array]",D="[object Int32Array]",z="[object Uint8Array]",N="[object Uint8ClampedArray]",B="[object Uint16Array]",$="[object Uint32Array]",F=/\b__p \+= '';/g,W=/\b(__p \+=) '' \+/g,V=/(__e\(.*?\)|\b__t\)) \+\n'';/g,q=/&(?:amp|lt|gt|quot|#39);/g,G=/[&<>"']/g,Z=RegExp(q.source),H=RegExp(G.source),K=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,Y=/<%=([\s\S]+?)%>/g,Q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,X=/^\w*$/,tt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,nt=/[\\^$.*+?()[\]{}|]/g,et=RegExp(nt.source),rt=/^\s+/,ot=/\s/,ut=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,it=/\{\n\/\* \[wrapped with (.+)\] \*/,at=/,? & /,ct=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ft=/[()=,{}\[\]\/\s]/,lt=/\\(\\)?/g,st=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pt=/\w*$/,ht=/^[-+]0x[0-9a-f]+$/i,vt=/^0b[01]+$/i,dt=/^\[object .+?Constructor\]$/,yt=/^0o[0-7]+$/i,gt=/^(?:0|[1-9]\d*)$/,mt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,bt=/($^)/,_t=/['\n\r\u2028\u2029\\]/g,wt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",jt="a-z\\xdf-\\xf6\\xf8-\\xff",St="A-Z\\xc0-\\xd6\\xd8-\\xde",xt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ot="["+xt+"]",Et="["+wt+"]",At="\\d+",Ct="["+jt+"]",Pt="[^\\ud800-\\udfff"+xt+At+"\\u2700-\\u27bf"+jt+St+"]",Rt="\\ud83c[\\udffb-\\udfff]",It="[^\\ud800-\\udfff]",kt="(?:\\ud83c[\\udde6-\\uddff]){2}",Tt="[\\ud800-\\udbff][\\udc00-\\udfff]",Lt="["+St+"]",Ut="(?:"+Ct+"|"+Pt+")",Mt="(?:"+Lt+"|"+Pt+")",Dt="(?:['’](?:d|ll|m|re|s|t|ve))?",zt="(?:['’](?:D|LL|M|RE|S|T|VE))?",Nt="(?:"+Et+"|"+Rt+")?",Bt="[\\ufe0e\\ufe0f]?",$t=Bt+Nt+"(?:\\u200d(?:"+[It,kt,Tt].join("|")+")"+Bt+Nt+")*",Ft="(?:"+["[\\u2700-\\u27bf]",kt,Tt].join("|")+")"+$t,Wt="(?:"+[It+Et+"?",Et,kt,Tt,"[\\ud800-\\udfff]"].join("|")+")",Vt=RegExp("['’]","g"),qt=RegExp(Et,"g"),Gt=RegExp(Rt+"(?="+Rt+")|"+Wt+$t,"g"),Zt=RegExp([Lt+"?"+Ct+"+"+Dt+"(?="+[Ot,Lt,"$"].join("|")+")",Mt+"+"+zt+"(?="+[Ot,Lt+Ut,"$"].join("|")+")",Lt+"?"+Ut+"+"+Dt,Lt+"+"+zt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",At,Ft].join("|"),"g"),Ht=RegExp("[\\u200d\\ud800-\\udfff"+wt+"\\ufe0e\\ufe0f]"),Kt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Jt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Yt=-1,Qt={};Qt[T]=Qt[L]=Qt[U]=Qt[M]=Qt[D]=Qt[z]=Qt[N]=Qt[B]=Qt[$]=!0,Qt[d]=Qt[y]=Qt[I]=Qt[g]=Qt[k]=Qt[m]=Qt[b]=Qt[_]=Qt[j]=Qt[S]=Qt[x]=Qt[E]=Qt[A]=Qt[C]=Qt[R]=!1;var Xt={};Xt[d]=Xt[y]=Xt[I]=Xt[k]=Xt[g]=Xt[m]=Xt[T]=Xt[L]=Xt[U]=Xt[M]=Xt[D]=Xt[j]=Xt[S]=Xt[x]=Xt[E]=Xt[A]=Xt[C]=Xt[P]=Xt[z]=Xt[N]=Xt[B]=Xt[$]=!0,Xt[b]=Xt[_]=Xt[R]=!1;var tn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},nn=parseFloat,en=parseInt,rn="object"==typeof e.g&&e.g&&e.g.Object===Object&&e.g,on="object"==typeof self&&self&&self.Object===Object&&self,un=rn||on||Function("return this")(),an=n&&!n.nodeType&&n,cn=an&&t&&!t.nodeType&&t,fn=cn&&cn.exports===an,ln=fn&&rn.process,sn=function(){try{return cn&&cn.require&&cn.require("util").types||ln&&ln.binding&&ln.binding("util")}catch(t){}}(),pn=sn&&sn.isArrayBuffer,hn=sn&&sn.isDate,vn=sn&&sn.isMap,dn=sn&&sn.isRegExp,yn=sn&&sn.isSet,gn=sn&&sn.isTypedArray;function mn(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}function bn(t,n,e,r){for(var o=-1,u=null==t?0:t.length;++o<u;){var i=t[o];n(r,i,e(i),t)}return r}function _n(t,n){for(var e=-1,r=null==t?0:t.length;++e<r&&!1!==n(t[e],e,t););return t}function wn(t,n){for(var e=null==t?0:t.length;e--&&!1!==n(t[e],e,t););return t}function jn(t,n){for(var e=-1,r=null==t?0:t.length;++e<r;)if(!n(t[e],e,t))return!1;return!0}function Sn(t,n){for(var e=-1,r=null==t?0:t.length,o=0,u=[];++e<r;){var i=t[e];n(i,e,t)&&(u[o++]=i)}return u}function xn(t,n){return!(null==t||!t.length)&&Ln(t,n,0)>-1}function On(t,n,e){for(var r=-1,o=null==t?0:t.length;++r<o;)if(e(n,t[r]))return!0;return!1}function En(t,n){for(var e=-1,r=null==t?0:t.length,o=Array(r);++e<r;)o[e]=n(t[e],e,t);return o}function An(t,n){for(var e=-1,r=n.length,o=t.length;++e<r;)t[o+e]=n[e];return t}function Cn(t,n,e,r){var o=-1,u=null==t?0:t.length;for(r&&u&&(e=t[++o]);++o<u;)e=n(e,t[o],o,t);return e}function Pn(t,n,e,r){var o=null==t?0:t.length;for(r&&o&&(e=t[--o]);o--;)e=n(e,t[o],o,t);return e}function Rn(t,n){for(var e=-1,r=null==t?0:t.length;++e<r;)if(n(t[e],e,t))return!0;return!1}var In=zn("length");function kn(t,n,e){var r;return e(t,(function(t,e,o){if(n(t,e,o))return r=e,!1})),r}function Tn(t,n,e,r){for(var o=t.length,u=e+(r?1:-1);r?u--:++u<o;)if(n(t[u],u,t))return u;return-1}function Ln(t,n,e){return n==n?function(t,n,e){for(var r=e-1,o=t.length;++r<o;)if(t[r]===n)return r;return-1}(t,n,e):Tn(t,Mn,e)}function Un(t,n,e,r){for(var o=e-1,u=t.length;++o<u;)if(r(t[o],n))return o;return-1}function Mn(t){return t!=t}function Dn(t,n){var e=null==t?0:t.length;return e?$n(t,n)/e:p}function zn(t){return function(n){return null==n?o:n[t]}}function Nn(t){return function(n){return null==t?o:t[n]}}function Bn(t,n,e,r,o){return o(t,(function(t,o,u){e=r?(r=!1,t):n(e,t,o,u)})),e}function $n(t,n){for(var e,r=-1,u=t.length;++r<u;){var i=n(t[r]);i!==o&&(e=e===o?i:e+i)}return e}function Fn(t,n){for(var e=-1,r=Array(t);++e<t;)r[e]=n(e);return r}function Wn(t){return t?t.slice(0,ae(t)+1).replace(rt,""):t}function Vn(t){return function(n){return t(n)}}function qn(t,n){return En(n,(function(n){return t[n]}))}function Gn(t,n){return t.has(n)}function Zn(t,n){for(var e=-1,r=t.length;++e<r&&Ln(n,t[e],0)>-1;);return e}function Hn(t,n){for(var e=t.length;e--&&Ln(n,t[e],0)>-1;);return e}function Kn(t,n){for(var e=t.length,r=0;e--;)t[e]===n&&++r;return r}var Jn=Nn({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),Yn=Nn({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Qn(t){return"\\"+tn[t]}function Xn(t){return Ht.test(t)}function te(t){var n=-1,e=Array(t.size);return t.forEach((function(t,r){e[++n]=[r,t]})),e}function ne(t,n){return function(e){return t(n(e))}}function ee(t,n){for(var e=-1,r=t.length,o=0,u=[];++e<r;){var i=t[e];i!==n&&i!==a||(t[e]=a,u[o++]=e)}return u}function re(t){var n=-1,e=Array(t.size);return t.forEach((function(t){e[++n]=t})),e}function oe(t){var n=-1,e=Array(t.size);return t.forEach((function(t){e[++n]=[t,t]})),e}function ue(t){return Xn(t)?function(t){for(var n=Gt.lastIndex=0;Gt.test(t);)++n;return n}(t):In(t)}function ie(t){return Xn(t)?function(t){return t.match(Gt)||[]}(t):function(t){return t.split("")}(t)}function ae(t){for(var n=t.length;n--&&ot.test(t.charAt(n)););return n}var ce=Nn({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),fe=function t(n){var e,r=(n=null==n?un:fe.defaults(un.Object(),n,fe.pick(un,Jt))).Array,ot=n.Date,wt=n.Error,jt=n.Function,St=n.Math,xt=n.Object,Ot=n.RegExp,Et=n.String,At=n.TypeError,Ct=r.prototype,Pt=jt.prototype,Rt=xt.prototype,It=n["__core-js_shared__"],kt=Pt.toString,Tt=Rt.hasOwnProperty,Lt=0,Ut=(e=/[^.]+$/.exec(It&&It.keys&&It.keys.IE_PROTO||""))?"Symbol(src)_1."+e:"",Mt=Rt.toString,Dt=kt.call(xt),zt=un._,Nt=Ot("^"+kt.call(Tt).replace(nt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Bt=fn?n.Buffer:o,$t=n.Symbol,Ft=n.Uint8Array,Wt=Bt?Bt.allocUnsafe:o,Gt=ne(xt.getPrototypeOf,xt),Ht=xt.create,tn=Rt.propertyIsEnumerable,rn=Ct.splice,on=$t?$t.isConcatSpreadable:o,an=$t?$t.iterator:o,cn=$t?$t.toStringTag:o,ln=function(){try{var t=lu(xt,"defineProperty");return t({},"",{}),t}catch(t){}}(),sn=n.clearTimeout!==un.clearTimeout&&n.clearTimeout,In=ot&&ot.now!==un.Date.now&&ot.now,Nn=n.setTimeout!==un.setTimeout&&n.setTimeout,le=St.ceil,se=St.floor,pe=xt.getOwnPropertySymbols,he=Bt?Bt.isBuffer:o,ve=n.isFinite,de=Ct.join,ye=ne(xt.keys,xt),ge=St.max,me=St.min,be=ot.now,_e=n.parseInt,we=St.random,je=Ct.reverse,Se=lu(n,"DataView"),xe=lu(n,"Map"),Oe=lu(n,"Promise"),Ee=lu(n,"Set"),Ae=lu(n,"WeakMap"),Ce=lu(xt,"create"),Pe=Ae&&new Ae,Re={},Ie=Nu(Se),ke=Nu(xe),Te=Nu(Oe),Le=Nu(Ee),Ue=Nu(Ae),Me=$t?$t.prototype:o,De=Me?Me.valueOf:o,ze=Me?Me.toString:o;function Ne(t){if(ea(t)&&!qi(t)&&!(t instanceof We)){if(t instanceof Fe)return t;if(Tt.call(t,"__wrapped__"))return Bu(t)}return new Fe(t)}var Be=function(){function t(){}return function(n){if(!na(n))return{};if(Ht)return Ht(n);t.prototype=n;var e=new t;return t.prototype=o,e}}();function $e(){}function Fe(t,n){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=o}function We(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function Ve(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}function qe(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}function Ge(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}function Ze(t){var n=-1,e=null==t?0:t.length;for(this.__data__=new Ge;++n<e;)this.add(t[n])}function He(t){var n=this.__data__=new qe(t);this.size=n.size}function Ke(t,n){var e=qi(t),r=!e&&Vi(t),o=!e&&!r&&Ki(t),u=!e&&!r&&!o&&la(t),i=e||r||o||u,a=i?Fn(t.length,Et):[],c=a.length;for(var f in t)!n&&!Tt.call(t,f)||i&&("length"==f||o&&("offset"==f||"parent"==f)||u&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||gu(f,c))||a.push(f);return a}function Je(t){var n=t.length;return n?t[Gr(0,n-1)]:o}function Ye(t,n){return Lu(Co(t),ir(n,0,t.length))}function Qe(t){return Lu(Co(t))}function Xe(t,n,e){(e!==o&&!$i(t[n],e)||e===o&&!(n in t))&&or(t,n,e)}function tr(t,n,e){var r=t[n];Tt.call(t,n)&&$i(r,e)&&(e!==o||n in t)||or(t,n,e)}function nr(t,n){for(var e=t.length;e--;)if($i(t[e][0],n))return e;return-1}function er(t,n,e,r){return sr(t,(function(t,o,u){n(r,t,e(t),u)})),r}function rr(t,n){return t&&Po(n,ka(n),t)}function or(t,n,e){"__proto__"==n&&ln?ln(t,n,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[n]=e}function ur(t,n){for(var e=-1,u=n.length,i=r(u),a=null==t;++e<u;)i[e]=a?o:Aa(t,n[e]);return i}function ir(t,n,e){return t==t&&(e!==o&&(t=t<=e?t:e),n!==o&&(t=t>=n?t:n)),t}function ar(t,n,e,r,u,i){var a,c=1&n,f=2&n,l=4&n;if(e&&(a=u?e(t,r,u,i):e(t)),a!==o)return a;if(!na(t))return t;var s=qi(t);if(s){if(a=function(t){var n=t.length,e=new t.constructor(n);return n&&"string"==typeof t[0]&&Tt.call(t,"index")&&(e.index=t.index,e.input=t.input),e}(t),!c)return Co(t,a)}else{var p=hu(t),h=p==_||p==w;if(Ki(t))return jo(t,c);if(p==x||p==d||h&&!u){if(a=f||h?{}:du(t),!c)return f?function(t,n){return Po(t,pu(t),n)}(t,function(t,n){return t&&Po(n,Ta(n),t)}(a,t)):function(t,n){return Po(t,su(t),n)}(t,rr(a,t))}else{if(!Xt[p])return u?t:{};a=function(t,n,e){var r,o=t.constructor;switch(n){case I:return So(t);case g:case m:return new o(+t);case k:return function(t,n){var e=n?So(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.byteLength)}(t,e);case T:case L:case U:case M:case D:case z:case N:case B:case $:return xo(t,e);case j:return new o;case S:case C:return new o(t);case E:return function(t){var n=new t.constructor(t.source,pt.exec(t));return n.lastIndex=t.lastIndex,n}(t);case A:return new o;case P:return r=t,De?xt(De.call(r)):{}}}(t,p,c)}}i||(i=new He);var v=i.get(t);if(v)return v;i.set(t,a),aa(t)?t.forEach((function(r){a.add(ar(r,n,e,r,t,i))})):ra(t)&&t.forEach((function(r,o){a.set(o,ar(r,n,e,o,t,i))}));var y=s?o:(l?f?ru:eu:f?Ta:ka)(t);return _n(y||t,(function(r,o){y&&(r=t[o=r]),tr(a,o,ar(r,n,e,o,t,i))})),a}function cr(t,n,e){var r=e.length;if(null==t)return!r;for(t=xt(t);r--;){var u=e[r],i=n[u],a=t[u];if(a===o&&!(u in t)||!i(a))return!1}return!0}function fr(t,n,e){if("function"!=typeof t)throw new At(u);return Ru((function(){t.apply(o,e)}),n)}function lr(t,n,e,r){var o=-1,u=xn,i=!0,a=t.length,c=[],f=n.length;if(!a)return c;e&&(n=En(n,Vn(e))),r?(u=On,i=!1):n.length>=200&&(u=Gn,i=!1,n=new Ze(n));t:for(;++o<a;){var l=t[o],s=null==e?l:e(l);if(l=r||0!==l?l:0,i&&s==s){for(var p=f;p--;)if(n[p]===s)continue t;c.push(l)}else u(n,s,r)||c.push(l)}return c}Ne.templateSettings={escape:K,evaluate:J,interpolate:Y,variable:"",imports:{_:Ne}},Ne.prototype=$e.prototype,Ne.prototype.constructor=Ne,Fe.prototype=Be($e.prototype),Fe.prototype.constructor=Fe,We.prototype=Be($e.prototype),We.prototype.constructor=We,Ve.prototype.clear=function(){this.__data__=Ce?Ce(null):{},this.size=0},Ve.prototype.delete=function(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n},Ve.prototype.get=function(t){var n=this.__data__;if(Ce){var e=n[t];return e===i?o:e}return Tt.call(n,t)?n[t]:o},Ve.prototype.has=function(t){var n=this.__data__;return Ce?n[t]!==o:Tt.call(n,t)},Ve.prototype.set=function(t,n){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=Ce&&n===o?i:n,this},qe.prototype.clear=function(){this.__data__=[],this.size=0},qe.prototype.delete=function(t){var n=this.__data__,e=nr(n,t);return!(e<0||(e==n.length-1?n.pop():rn.call(n,e,1),--this.size,0))},qe.prototype.get=function(t){var n=this.__data__,e=nr(n,t);return e<0?o:n[e][1]},qe.prototype.has=function(t){return nr(this.__data__,t)>-1},qe.prototype.set=function(t,n){var e=this.__data__,r=nr(e,t);return r<0?(++this.size,e.push([t,n])):e[r][1]=n,this},Ge.prototype.clear=function(){this.size=0,this.__data__={hash:new Ve,map:new(xe||qe),string:new Ve}},Ge.prototype.delete=function(t){var n=cu(this,t).delete(t);return this.size-=n?1:0,n},Ge.prototype.get=function(t){return cu(this,t).get(t)},Ge.prototype.has=function(t){return cu(this,t).has(t)},Ge.prototype.set=function(t,n){var e=cu(this,t),r=e.size;return e.set(t,n),this.size+=e.size==r?0:1,this},Ze.prototype.add=Ze.prototype.push=function(t){return this.__data__.set(t,i),this},Ze.prototype.has=function(t){return this.__data__.has(t)},He.prototype.clear=function(){this.__data__=new qe,this.size=0},He.prototype.delete=function(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e},He.prototype.get=function(t){return this.__data__.get(t)},He.prototype.has=function(t){return this.__data__.has(t)},He.prototype.set=function(t,n){var e=this.__data__;if(e instanceof qe){var r=e.__data__;if(!xe||r.length<199)return r.push([t,n]),this.size=++e.size,this;e=this.__data__=new Ge(r)}return e.set(t,n),this.size=e.size,this};var sr=ko(br),pr=ko(_r,!0);function hr(t,n){var e=!0;return sr(t,(function(t,r,o){return e=!!n(t,r,o)})),e}function vr(t,n,e){for(var r=-1,u=t.length;++r<u;){var i=t[r],a=n(i);if(null!=a&&(c===o?a==a&&!fa(a):e(a,c)))var c=a,f=i}return f}function dr(t,n){var e=[];return sr(t,(function(t,r,o){n(t,r,o)&&e.push(t)})),e}function yr(t,n,e,r,o){var u=-1,i=t.length;for(e||(e=yu),o||(o=[]);++u<i;){var a=t[u];n>0&&e(a)?n>1?yr(a,n-1,e,r,o):An(o,a):r||(o[o.length]=a)}return o}var gr=To(),mr=To(!0);function br(t,n){return t&&gr(t,n,ka)}function _r(t,n){return t&&mr(t,n,ka)}function wr(t,n){return Sn(n,(function(n){return Qi(t[n])}))}function jr(t,n){for(var e=0,r=(n=mo(n,t)).length;null!=t&&e<r;)t=t[zu(n[e++])];return e&&e==r?t:o}function Sr(t,n,e){var r=n(t);return qi(t)?r:An(r,e(t))}function xr(t){return null==t?t===o?"[object Undefined]":"[object Null]":cn&&cn in xt(t)?function(t){var n=Tt.call(t,cn),e=t[cn];try{t[cn]=o;var r=!0}catch(t){}var u=Mt.call(t);return r&&(n?t[cn]=e:delete t[cn]),u}(t):function(t){return Mt.call(t)}(t)}function Or(t,n){return t>n}function Er(t,n){return null!=t&&Tt.call(t,n)}function Ar(t,n){return null!=t&&n in xt(t)}function Cr(t,n,e){for(var u=e?On:xn,i=t[0].length,a=t.length,c=a,f=r(a),l=1/0,s=[];c--;){var p=t[c];c&&n&&(p=En(p,Vn(n))),l=me(p.length,l),f[c]=!e&&(n||i>=120&&p.length>=120)?new Ze(c&&p):o}p=t[0];var h=-1,v=f[0];t:for(;++h<i&&s.length<l;){var d=p[h],y=n?n(d):d;if(d=e||0!==d?d:0,!(v?Gn(v,y):u(s,y,e))){for(c=a;--c;){var g=f[c];if(!(g?Gn(g,y):u(t[c],y,e)))continue t}v&&v.push(y),s.push(d)}}return s}function Pr(t,n,e){var r=null==(t=Eu(t,n=mo(n,t)))?t:t[zu(Yu(n))];return null==r?o:mn(r,t,e)}function Rr(t){return ea(t)&&xr(t)==d}function Ir(t,n,e,r,u){return t===n||(null==t||null==n||!ea(t)&&!ea(n)?t!=t&&n!=n:function(t,n,e,r,u,i){var a=qi(t),c=qi(n),f=a?y:hu(t),l=c?y:hu(n),s=(f=f==d?x:f)==x,p=(l=l==d?x:l)==x,h=f==l;if(h&&Ki(t)){if(!Ki(n))return!1;a=!0,s=!1}if(h&&!s)return i||(i=new He),a||la(t)?tu(t,n,e,r,u,i):function(t,n,e,r,o,u,i){switch(e){case k:if(t.byteLength!=n.byteLength||t.byteOffset!=n.byteOffset)return!1;t=t.buffer,n=n.buffer;case I:return!(t.byteLength!=n.byteLength||!u(new Ft(t),new Ft(n)));case g:case m:case S:return $i(+t,+n);case b:return t.name==n.name&&t.message==n.message;case E:case C:return t==n+"";case j:var a=te;case A:var c=1&r;if(a||(a=re),t.size!=n.size&&!c)return!1;var f=i.get(t);if(f)return f==n;r|=2,i.set(t,n);var l=tu(a(t),a(n),r,o,u,i);return i.delete(t),l;case P:if(De)return De.call(t)==De.call(n)}return!1}(t,n,f,e,r,u,i);if(!(1&e)){var v=s&&Tt.call(t,"__wrapped__"),_=p&&Tt.call(n,"__wrapped__");if(v||_){var w=v?t.value():t,O=_?n.value():n;return i||(i=new He),u(w,O,e,r,i)}}return!!h&&(i||(i=new He),function(t,n,e,r,u,i){var a=1&e,c=eu(t),f=c.length;if(f!=eu(n).length&&!a)return!1;for(var l=f;l--;){var s=c[l];if(!(a?s in n:Tt.call(n,s)))return!1}var p=i.get(t),h=i.get(n);if(p&&h)return p==n&&h==t;var v=!0;i.set(t,n),i.set(n,t);for(var d=a;++l<f;){var y=t[s=c[l]],g=n[s];if(r)var m=a?r(g,y,s,n,t,i):r(y,g,s,t,n,i);if(!(m===o?y===g||u(y,g,e,r,i):m)){v=!1;break}d||(d="constructor"==s)}if(v&&!d){var b=t.constructor,_=n.constructor;b==_||!("constructor"in t)||!("constructor"in n)||"function"==typeof b&&b instanceof b&&"function"==typeof _&&_ instanceof _||(v=!1)}return i.delete(t),i.delete(n),v}(t,n,e,r,u,i))}(t,n,e,r,Ir,u))}function kr(t,n,e,r){var u=e.length,i=u,a=!r;if(null==t)return!i;for(t=xt(t);u--;){var c=e[u];if(a&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++u<i;){var f=(c=e[u])[0],l=t[f],s=c[1];if(a&&c[2]){if(l===o&&!(f in t))return!1}else{var p=new He;if(r)var h=r(l,s,f,t,n,p);if(!(h===o?Ir(s,l,3,r,p):h))return!1}}return!0}function Tr(t){return!(!na(t)||(n=t,Ut&&Ut in n))&&(Qi(t)?Nt:dt).test(Nu(t));var n}function Lr(t){return"function"==typeof t?t:null==t?oc:"object"==typeof t?qi(t)?Nr(t[0],t[1]):zr(t):hc(t)}function Ur(t){if(!ju(t))return ye(t);var n=[];for(var e in xt(t))Tt.call(t,e)&&"constructor"!=e&&n.push(e);return n}function Mr(t,n){return t<n}function Dr(t,n){var e=-1,o=Zi(t)?r(t.length):[];return sr(t,(function(t,r,u){o[++e]=n(t,r,u)})),o}function zr(t){var n=fu(t);return 1==n.length&&n[0][2]?xu(n[0][0],n[0][1]):function(e){return e===t||kr(e,t,n)}}function Nr(t,n){return bu(t)&&Su(n)?xu(zu(t),n):function(e){var r=Aa(e,t);return r===o&&r===n?Ca(e,t):Ir(n,r,3)}}function Br(t,n,e,r,u){t!==n&&gr(n,(function(i,a){if(u||(u=new He),na(i))!function(t,n,e,r,u,i,a){var c=Cu(t,e),f=Cu(n,e),l=a.get(f);if(l)Xe(t,e,l);else{var s=i?i(c,f,e+"",t,n,a):o,p=s===o;if(p){var h=qi(f),v=!h&&Ki(f),d=!h&&!v&&la(f);s=f,h||v||d?qi(c)?s=c:Hi(c)?s=Co(c):v?(p=!1,s=jo(f,!0)):d?(p=!1,s=xo(f,!0)):s=[]:ua(f)||Vi(f)?(s=c,Vi(c)?s=ma(c):na(c)&&!Qi(c)||(s=du(f))):p=!1}p&&(a.set(f,s),u(s,f,r,i,a),a.delete(f)),Xe(t,e,s)}}(t,n,a,e,Br,r,u);else{var c=r?r(Cu(t,a),i,a+"",t,n,u):o;c===o&&(c=i),Xe(t,a,c)}}),Ta)}function $r(t,n){var e=t.length;if(e)return gu(n+=n<0?e:0,e)?t[n]:o}function Fr(t,n,e){n=n.length?En(n,(function(t){return qi(t)?function(n){return jr(n,1===t.length?t[0]:t)}:t})):[oc];var r=-1;n=En(n,Vn(au()));var o=Dr(t,(function(t,e,o){var u=En(n,(function(n){return n(t)}));return{criteria:u,index:++r,value:t}}));return function(t,n){var r=t.length;for(t.sort((function(t,n){return function(t,n,e){for(var r=-1,o=t.criteria,u=n.criteria,i=o.length,a=e.length;++r<i;){var c=Oo(o[r],u[r]);if(c)return r>=a?c:c*("desc"==e[r]?-1:1)}return t.index-n.index}(t,n,e)}));r--;)t[r]=t[r].value;return t}(o)}function Wr(t,n,e){for(var r=-1,o=n.length,u={};++r<o;){var i=n[r],a=jr(t,i);e(a,i)&&Yr(u,mo(i,t),a)}return u}function Vr(t,n,e,r){var o=r?Un:Ln,u=-1,i=n.length,a=t;for(t===n&&(n=Co(n)),e&&(a=En(t,Vn(e)));++u<i;)for(var c=0,f=n[u],l=e?e(f):f;(c=o(a,l,c,r))>-1;)a!==t&&rn.call(a,c,1),rn.call(t,c,1);return t}function qr(t,n){for(var e=t?n.length:0,r=e-1;e--;){var o=n[e];if(e==r||o!==u){var u=o;gu(o)?rn.call(t,o,1):fo(t,o)}}return t}function Gr(t,n){return t+se(we()*(n-t+1))}function Zr(t,n){var e="";if(!t||n<1||n>s)return e;do{n%2&&(e+=t),(n=se(n/2))&&(t+=t)}while(n);return e}function Hr(t,n){return Iu(Ou(t,n,oc),t+"")}function Kr(t){return Je($a(t))}function Jr(t,n){var e=$a(t);return Lu(e,ir(n,0,e.length))}function Yr(t,n,e,r){if(!na(t))return t;for(var u=-1,i=(n=mo(n,t)).length,a=i-1,c=t;null!=c&&++u<i;){var f=zu(n[u]),l=e;if("__proto__"===f||"constructor"===f||"prototype"===f)return t;if(u!=a){var s=c[f];(l=r?r(s,f,c):o)===o&&(l=na(s)?s:gu(n[u+1])?[]:{})}tr(c,f,l),c=c[f]}return t}var Qr=Pe?function(t,n){return Pe.set(t,n),t}:oc,Xr=ln?function(t,n){return ln(t,"toString",{configurable:!0,enumerable:!1,value:nc(n),writable:!0})}:oc;function to(t){return Lu($a(t))}function no(t,n,e){var o=-1,u=t.length;n<0&&(n=-n>u?0:u+n),(e=e>u?u:e)<0&&(e+=u),u=n>e?0:e-n>>>0,n>>>=0;for(var i=r(u);++o<u;)i[o]=t[o+n];return i}function eo(t,n){var e;return sr(t,(function(t,r,o){return!(e=n(t,r,o))})),!!e}function ro(t,n,e){var r=0,o=null==t?r:t.length;if("number"==typeof n&&n==n&&o<=2147483647){for(;r<o;){var u=r+o>>>1,i=t[u];null!==i&&!fa(i)&&(e?i<=n:i<n)?r=u+1:o=u}return o}return oo(t,n,oc,e)}function oo(t,n,e,r){var u=0,i=null==t?0:t.length;if(0===i)return 0;for(var a=(n=e(n))!=n,c=null===n,f=fa(n),l=n===o;u<i;){var s=se((u+i)/2),p=e(t[s]),h=p!==o,v=null===p,d=p==p,y=fa(p);if(a)var g=r||d;else g=l?d&&(r||h):c?d&&h&&(r||!v):f?d&&h&&!v&&(r||!y):!v&&!y&&(r?p<=n:p<n);g?u=s+1:i=s}return me(i,4294967294)}function uo(t,n){for(var e=-1,r=t.length,o=0,u=[];++e<r;){var i=t[e],a=n?n(i):i;if(!e||!$i(a,c)){var c=a;u[o++]=0===i?0:i}}return u}function io(t){return"number"==typeof t?t:fa(t)?p:+t}function ao(t){if("string"==typeof t)return t;if(qi(t))return En(t,ao)+"";if(fa(t))return ze?ze.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}function co(t,n,e){var r=-1,o=xn,u=t.length,i=!0,a=[],c=a;if(e)i=!1,o=On;else if(u>=200){var f=n?null:Ho(t);if(f)return re(f);i=!1,o=Gn,c=new Ze}else c=n?[]:a;t:for(;++r<u;){var l=t[r],s=n?n(l):l;if(l=e||0!==l?l:0,i&&s==s){for(var p=c.length;p--;)if(c[p]===s)continue t;n&&c.push(s),a.push(l)}else o(c,s,e)||(c!==a&&c.push(s),a.push(l))}return a}function fo(t,n){return null==(t=Eu(t,n=mo(n,t)))||delete t[zu(Yu(n))]}function lo(t,n,e,r){return Yr(t,n,e(jr(t,n)),r)}function so(t,n,e,r){for(var o=t.length,u=r?o:-1;(r?u--:++u<o)&&n(t[u],u,t););return e?no(t,r?0:u,r?u+1:o):no(t,r?u+1:0,r?o:u)}function po(t,n){var e=t;return e instanceof We&&(e=e.value()),Cn(n,(function(t,n){return n.func.apply(n.thisArg,An([t],n.args))}),e)}function ho(t,n,e){var o=t.length;if(o<2)return o?co(t[0]):[];for(var u=-1,i=r(o);++u<o;)for(var a=t[u],c=-1;++c<o;)c!=u&&(i[u]=lr(i[u]||a,t[c],n,e));return co(yr(i,1),n,e)}function vo(t,n,e){for(var r=-1,u=t.length,i=n.length,a={};++r<u;){var c=r<i?n[r]:o;e(a,t[r],c)}return a}function yo(t){return Hi(t)?t:[]}function go(t){return"function"==typeof t?t:oc}function mo(t,n){return qi(t)?t:bu(t,n)?[t]:Du(ba(t))}var bo=Hr;function _o(t,n,e){var r=t.length;return e=e===o?r:e,!n&&e>=r?t:no(t,n,e)}var wo=sn||function(t){return un.clearTimeout(t)};function jo(t,n){if(n)return t.slice();var e=t.length,r=Wt?Wt(e):new t.constructor(e);return t.copy(r),r}function So(t){var n=new t.constructor(t.byteLength);return new Ft(n).set(new Ft(t)),n}function xo(t,n){var e=n?So(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)}function Oo(t,n){if(t!==n){var e=t!==o,r=null===t,u=t==t,i=fa(t),a=n!==o,c=null===n,f=n==n,l=fa(n);if(!c&&!l&&!i&&t>n||i&&a&&f&&!c&&!l||r&&a&&f||!e&&f||!u)return 1;if(!r&&!i&&!l&&t<n||l&&e&&u&&!r&&!i||c&&e&&u||!a&&u||!f)return-1}return 0}function Eo(t,n,e,o){for(var u=-1,i=t.length,a=e.length,c=-1,f=n.length,l=ge(i-a,0),s=r(f+l),p=!o;++c<f;)s[c]=n[c];for(;++u<a;)(p||u<i)&&(s[e[u]]=t[u]);for(;l--;)s[c++]=t[u++];return s}function Ao(t,n,e,o){for(var u=-1,i=t.length,a=-1,c=e.length,f=-1,l=n.length,s=ge(i-c,0),p=r(s+l),h=!o;++u<s;)p[u]=t[u];for(var v=u;++f<l;)p[v+f]=n[f];for(;++a<c;)(h||u<i)&&(p[v+e[a]]=t[u++]);return p}function Co(t,n){var e=-1,o=t.length;for(n||(n=r(o));++e<o;)n[e]=t[e];return n}function Po(t,n,e,r){var u=!e;e||(e={});for(var i=-1,a=n.length;++i<a;){var c=n[i],f=r?r(e[c],t[c],c,e,t):o;f===o&&(f=t[c]),u?or(e,c,f):tr(e,c,f)}return e}function Ro(t,n){return function(e,r){var o=qi(e)?bn:er,u=n?n():{};return o(e,t,au(r,2),u)}}function Io(t){return Hr((function(n,e){var r=-1,u=e.length,i=u>1?e[u-1]:o,a=u>2?e[2]:o;for(i=t.length>3&&"function"==typeof i?(u--,i):o,a&&mu(e[0],e[1],a)&&(i=u<3?o:i,u=1),n=xt(n);++r<u;){var c=e[r];c&&t(n,c,r,i)}return n}))}function ko(t,n){return function(e,r){if(null==e)return e;if(!Zi(e))return t(e,r);for(var o=e.length,u=n?o:-1,i=xt(e);(n?u--:++u<o)&&!1!==r(i[u],u,i););return e}}function To(t){return function(n,e,r){for(var o=-1,u=xt(n),i=r(n),a=i.length;a--;){var c=i[t?a:++o];if(!1===e(u[c],c,u))break}return n}}function Lo(t){return function(n){var e=Xn(n=ba(n))?ie(n):o,r=e?e[0]:n.charAt(0),u=e?_o(e,1).join(""):n.slice(1);return r[t]()+u}}function Uo(t){return function(n){return Cn(Qa(Va(n).replace(Vt,"")),t,"")}}function Mo(t){return function(){var n=arguments;switch(n.length){case 0:return new t;case 1:return new t(n[0]);case 2:return new t(n[0],n[1]);case 3:return new t(n[0],n[1],n[2]);case 4:return new t(n[0],n[1],n[2],n[3]);case 5:return new t(n[0],n[1],n[2],n[3],n[4]);case 6:return new t(n[0],n[1],n[2],n[3],n[4],n[5]);case 7:return new t(n[0],n[1],n[2],n[3],n[4],n[5],n[6])}var e=Be(t.prototype),r=t.apply(e,n);return na(r)?r:e}}function Do(t){return function(n,e,r){var u=xt(n);if(!Zi(n)){var i=au(e,3);n=ka(n),e=function(t){return i(u[t],t,u)}}var a=t(n,e,r);return a>-1?u[i?n[a]:a]:o}}function zo(t){return nu((function(n){var e=n.length,r=e,i=Fe.prototype.thru;for(t&&n.reverse();r--;){var a=n[r];if("function"!=typeof a)throw new At(u);if(i&&!c&&"wrapper"==uu(a))var c=new Fe([],!0)}for(r=c?r:e;++r<e;){var f=uu(a=n[r]),l="wrapper"==f?ou(a):o;c=l&&_u(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?c[uu(l[0])].apply(c,l[3]):1==a.length&&_u(a)?c[f]():c.thru(a)}return function(){var t=arguments,r=t[0];if(c&&1==t.length&&qi(r))return c.plant(r).value();for(var o=0,u=e?n[o].apply(this,t):r;++o<e;)u=n[o].call(this,u);return u}}))}function No(t,n,e,u,i,a,c,l,s,p){var h=n&f,v=1&n,d=2&n,y=24&n,g=512&n,m=d?o:Mo(t);return function o(){for(var f=arguments.length,b=r(f),_=f;_--;)b[_]=arguments[_];if(y)var w=iu(o),j=Kn(b,w);if(u&&(b=Eo(b,u,i,y)),a&&(b=Ao(b,a,c,y)),f-=j,y&&f<p){var S=ee(b,w);return Go(t,n,No,o.placeholder,e,b,S,l,s,p-f)}var x=v?e:this,O=d?x[t]:t;return f=b.length,l?b=Au(b,l):g&&f>1&&b.reverse(),h&&s<f&&(b.length=s),this&&this!==un&&this instanceof o&&(O=m||Mo(O)),O.apply(x,b)}}function Bo(t,n){return function(e,r){return function(t,n,e,r){return br(t,(function(t,o,u){n(r,e(t),o,u)})),r}(e,t,n(r),{})}}function $o(t,n){return function(e,r){var u;if(e===o&&r===o)return n;if(e!==o&&(u=e),r!==o){if(u===o)return r;"string"==typeof e||"string"==typeof r?(e=ao(e),r=ao(r)):(e=io(e),r=io(r)),u=t(e,r)}return u}}function Fo(t){return nu((function(n){return n=En(n,Vn(au())),Hr((function(e){var r=this;return t(n,(function(t){return mn(t,r,e)}))}))}))}function Wo(t,n){var e=(n=n===o?" ":ao(n)).length;if(e<2)return e?Zr(n,t):n;var r=Zr(n,le(t/ue(n)));return Xn(n)?_o(ie(r),0,t).join(""):r.slice(0,t)}function Vo(t){return function(n,e,u){return u&&"number"!=typeof u&&mu(n,e,u)&&(e=u=o),n=va(n),e===o?(e=n,n=0):e=va(e),function(t,n,e,o){for(var u=-1,i=ge(le((n-t)/(e||1)),0),a=r(i);i--;)a[o?i:++u]=t,t+=e;return a}(n,e,u=u===o?n<e?1:-1:va(u),t)}}function qo(t){return function(n,e){return"string"==typeof n&&"string"==typeof e||(n=ga(n),e=ga(e)),t(n,e)}}function Go(t,n,e,r,u,i,a,f,l,s){var p=8&n;n|=p?c:64,4&(n&=~(p?64:c))||(n&=-4);var h=[t,n,u,p?i:o,p?a:o,p?o:i,p?o:a,f,l,s],v=e.apply(o,h);return _u(t)&&Pu(v,h),v.placeholder=r,ku(v,t,n)}function Zo(t){var n=St[t];return function(t,e){if(t=ga(t),(e=null==e?0:me(da(e),292))&&ve(t)){var r=(ba(t)+"e").split("e");return+((r=(ba(n(r[0]+"e"+(+r[1]+e)))+"e").split("e"))[0]+"e"+(+r[1]-e))}return n(t)}}var Ho=Ee&&1/re(new Ee([,-0]))[1]==l?function(t){return new Ee(t)}:fc;function Ko(t){return function(n){var e=hu(n);return e==j?te(n):e==A?oe(n):function(t,n){return En(n,(function(n){return[n,t[n]]}))}(n,t(n))}}function Jo(t,n,e,i,l,s,p,h){var v=2&n;if(!v&&"function"!=typeof t)throw new At(u);var d=i?i.length:0;if(d||(n&=-97,i=l=o),p=p===o?p:ge(da(p),0),h=h===o?h:da(h),d-=l?l.length:0,64&n){var y=i,g=l;i=l=o}var m=v?o:ou(t),b=[t,n,e,i,l,y,g,s,p,h];if(m&&function(t,n){var e=t[1],r=n[1],o=e|r,u=o<131,i=r==f&&8==e||r==f&&256==e&&t[7].length<=n[8]||384==r&&n[7].length<=n[8]&&8==e;if(!u&&!i)return t;1&r&&(t[2]=n[2],o|=1&e?0:4);var c=n[3];if(c){var l=t[3];t[3]=l?Eo(l,c,n[4]):c,t[4]=l?ee(t[3],a):n[4]}(c=n[5])&&(l=t[5],t[5]=l?Ao(l,c,n[6]):c,t[6]=l?ee(t[5],a):n[6]),(c=n[7])&&(t[7]=c),r&f&&(t[8]=null==t[8]?n[8]:me(t[8],n[8])),null==t[9]&&(t[9]=n[9]),t[0]=n[0],t[1]=o}(b,m),t=b[0],n=b[1],e=b[2],i=b[3],l=b[4],!(h=b[9]=b[9]===o?v?0:t.length:ge(b[9]-d,0))&&24&n&&(n&=-25),n&&1!=n)_=8==n||16==n?function(t,n,e){var u=Mo(t);return function i(){for(var a=arguments.length,c=r(a),f=a,l=iu(i);f--;)c[f]=arguments[f];var s=a<3&&c[0]!==l&&c[a-1]!==l?[]:ee(c,l);return(a-=s.length)<e?Go(t,n,No,i.placeholder,o,c,s,o,o,e-a):mn(this&&this!==un&&this instanceof i?u:t,this,c)}}(t,n,h):n!=c&&33!=n||l.length?No.apply(o,b):function(t,n,e,o){var u=1&n,i=Mo(t);return function n(){for(var a=-1,c=arguments.length,f=-1,l=o.length,s=r(l+c),p=this&&this!==un&&this instanceof n?i:t;++f<l;)s[f]=o[f];for(;c--;)s[f++]=arguments[++a];return mn(p,u?e:this,s)}}(t,n,e,i);else var _=function(t,n,e){var r=1&n,o=Mo(t);return function n(){return(this&&this!==un&&this instanceof n?o:t).apply(r?e:this,arguments)}}(t,n,e);return ku((m?Qr:Pu)(_,b),t,n)}function Yo(t,n,e,r){return t===o||$i(t,Rt[e])&&!Tt.call(r,e)?n:t}function Qo(t,n,e,r,u,i){return na(t)&&na(n)&&(i.set(n,t),Br(t,n,o,Qo,i),i.delete(n)),t}function Xo(t){return ua(t)?o:t}function tu(t,n,e,r,u,i){var a=1&e,c=t.length,f=n.length;if(c!=f&&!(a&&f>c))return!1;var l=i.get(t),s=i.get(n);if(l&&s)return l==n&&s==t;var p=-1,h=!0,v=2&e?new Ze:o;for(i.set(t,n),i.set(n,t);++p<c;){var d=t[p],y=n[p];if(r)var g=a?r(y,d,p,n,t,i):r(d,y,p,t,n,i);if(g!==o){if(g)continue;h=!1;break}if(v){if(!Rn(n,(function(t,n){if(!Gn(v,n)&&(d===t||u(d,t,e,r,i)))return v.push(n)}))){h=!1;break}}else if(d!==y&&!u(d,y,e,r,i)){h=!1;break}}return i.delete(t),i.delete(n),h}function nu(t){return Iu(Ou(t,o,Gu),t+"")}function eu(t){return Sr(t,ka,su)}function ru(t){return Sr(t,Ta,pu)}var ou=Pe?function(t){return Pe.get(t)}:fc;function uu(t){for(var n=t.name+"",e=Re[n],r=Tt.call(Re,n)?e.length:0;r--;){var o=e[r],u=o.func;if(null==u||u==t)return o.name}return n}function iu(t){return(Tt.call(Ne,"placeholder")?Ne:t).placeholder}function au(){var t=Ne.iteratee||uc;return t=t===uc?Lr:t,arguments.length?t(arguments[0],arguments[1]):t}function cu(t,n){var e,r,o=t.__data__;return("string"==(r=typeof(e=n))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==e:null===e)?o["string"==typeof n?"string":"hash"]:o.map}function fu(t){for(var n=ka(t),e=n.length;e--;){var r=n[e],o=t[r];n[e]=[r,o,Su(o)]}return n}function lu(t,n){var e=function(t,n){return null==t?o:t[n]}(t,n);return Tr(e)?e:o}var su=pe?function(t){return null==t?[]:(t=xt(t),Sn(pe(t),(function(n){return tn.call(t,n)})))}:yc,pu=pe?function(t){for(var n=[];t;)An(n,su(t)),t=Gt(t);return n}:yc,hu=xr;function vu(t,n,e){for(var r=-1,o=(n=mo(n,t)).length,u=!1;++r<o;){var i=zu(n[r]);if(!(u=null!=t&&e(t,i)))break;t=t[i]}return u||++r!=o?u:!!(o=null==t?0:t.length)&&ta(o)&&gu(i,o)&&(qi(t)||Vi(t))}function du(t){return"function"!=typeof t.constructor||ju(t)?{}:Be(Gt(t))}function yu(t){return qi(t)||Vi(t)||!!(on&&t&&t[on])}function gu(t,n){var e=typeof t;return!!(n=null==n?s:n)&&("number"==e||"symbol"!=e&&gt.test(t))&&t>-1&&t%1==0&&t<n}function mu(t,n,e){if(!na(e))return!1;var r=typeof n;return!!("number"==r?Zi(e)&&gu(n,e.length):"string"==r&&n in e)&&$i(e[n],t)}function bu(t,n){if(qi(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!fa(t))||X.test(t)||!Q.test(t)||null!=n&&t in xt(n)}function _u(t){var n=uu(t),e=Ne[n];if("function"!=typeof e||!(n in We.prototype))return!1;if(t===e)return!0;var r=ou(e);return!!r&&t===r[0]}(Se&&hu(new Se(new ArrayBuffer(1)))!=k||xe&&hu(new xe)!=j||Oe&&hu(Oe.resolve())!=O||Ee&&hu(new Ee)!=A||Ae&&hu(new Ae)!=R)&&(hu=function(t){var n=xr(t),e=n==x?t.constructor:o,r=e?Nu(e):"";if(r)switch(r){case Ie:return k;case ke:return j;case Te:return O;case Le:return A;case Ue:return R}return n});var wu=It?Qi:gc;function ju(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||Rt)}function Su(t){return t==t&&!na(t)}function xu(t,n){return function(e){return null!=e&&e[t]===n&&(n!==o||t in xt(e))}}function Ou(t,n,e){return n=ge(n===o?t.length-1:n,0),function(){for(var o=arguments,u=-1,i=ge(o.length-n,0),a=r(i);++u<i;)a[u]=o[n+u];u=-1;for(var c=r(n+1);++u<n;)c[u]=o[u];return c[n]=e(a),mn(t,this,c)}}function Eu(t,n){return n.length<2?t:jr(t,no(n,0,-1))}function Au(t,n){for(var e=t.length,r=me(n.length,e),u=Co(t);r--;){var i=n[r];t[r]=gu(i,e)?u[i]:o}return t}function Cu(t,n){if(("constructor"!==n||"function"!=typeof t[n])&&"__proto__"!=n)return t[n]}var Pu=Tu(Qr),Ru=Nn||function(t,n){return un.setTimeout(t,n)},Iu=Tu(Xr);function ku(t,n,e){var r=n+"";return Iu(t,function(t,n){var e=n.length;if(!e)return t;var r=e-1;return n[r]=(e>1?"& ":"")+n[r],n=n.join(e>2?", ":" "),t.replace(ut,"{\n/* [wrapped with "+n+"] */\n")}(r,function(t,n){return _n(v,(function(e){var r="_."+e[0];n&e[1]&&!xn(t,r)&&t.push(r)})),t.sort()}(function(t){var n=t.match(it);return n?n[1].split(at):[]}(r),e)))}function Tu(t){var n=0,e=0;return function(){var r=be(),u=16-(r-e);if(e=r,u>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(o,arguments)}}function Lu(t,n){var e=-1,r=t.length,u=r-1;for(n=n===o?r:n;++e<n;){var i=Gr(e,u),a=t[i];t[i]=t[e],t[e]=a}return t.length=n,t}var Uu,Mu,Du=(Uu=Ui((function(t){var n=[];return 46===t.charCodeAt(0)&&n.push(""),t.replace(tt,(function(t,e,r,o){n.push(r?o.replace(lt,"$1"):e||t)})),n}),(function(t){return 500===Mu.size&&Mu.clear(),t})),Mu=Uu.cache,Uu);function zu(t){if("string"==typeof t||fa(t))return t;var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}function Nu(t){if(null!=t){try{return kt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Bu(t){if(t instanceof We)return t.clone();var n=new Fe(t.__wrapped__,t.__chain__);return n.__actions__=Co(t.__actions__),n.__index__=t.__index__,n.__values__=t.__values__,n}var $u=Hr((function(t,n){return Hi(t)?lr(t,yr(n,1,Hi,!0)):[]})),Fu=Hr((function(t,n){var e=Yu(n);return Hi(e)&&(e=o),Hi(t)?lr(t,yr(n,1,Hi,!0),au(e,2)):[]})),Wu=Hr((function(t,n){var e=Yu(n);return Hi(e)&&(e=o),Hi(t)?lr(t,yr(n,1,Hi,!0),o,e):[]}));function Vu(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var o=null==e?0:da(e);return o<0&&(o=ge(r+o,0)),Tn(t,au(n,3),o)}function qu(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var u=r-1;return e!==o&&(u=da(e),u=e<0?ge(r+u,0):me(u,r-1)),Tn(t,au(n,3),u,!0)}function Gu(t){return null!=t&&t.length?yr(t,1):[]}function Zu(t){return t&&t.length?t[0]:o}var Hu=Hr((function(t){var n=En(t,yo);return n.length&&n[0]===t[0]?Cr(n):[]})),Ku=Hr((function(t){var n=Yu(t),e=En(t,yo);return n===Yu(e)?n=o:e.pop(),e.length&&e[0]===t[0]?Cr(e,au(n,2)):[]})),Ju=Hr((function(t){var n=Yu(t),e=En(t,yo);return(n="function"==typeof n?n:o)&&e.pop(),e.length&&e[0]===t[0]?Cr(e,o,n):[]}));function Yu(t){var n=null==t?0:t.length;return n?t[n-1]:o}var Qu=Hr(Xu);function Xu(t,n){return t&&t.length&&n&&n.length?Vr(t,n):t}var ti=nu((function(t,n){var e=null==t?0:t.length,r=ur(t,n);return qr(t,En(n,(function(t){return gu(t,e)?+t:t})).sort(Oo)),r}));function ni(t){return null==t?t:je.call(t)}var ei=Hr((function(t){return co(yr(t,1,Hi,!0))})),ri=Hr((function(t){var n=Yu(t);return Hi(n)&&(n=o),co(yr(t,1,Hi,!0),au(n,2))})),oi=Hr((function(t){var n=Yu(t);return n="function"==typeof n?n:o,co(yr(t,1,Hi,!0),o,n)}));function ui(t){if(!t||!t.length)return[];var n=0;return t=Sn(t,(function(t){if(Hi(t))return n=ge(t.length,n),!0})),Fn(n,(function(n){return En(t,zn(n))}))}function ii(t,n){if(!t||!t.length)return[];var e=ui(t);return null==n?e:En(e,(function(t){return mn(n,o,t)}))}var ai=Hr((function(t,n){return Hi(t)?lr(t,n):[]})),ci=Hr((function(t){return ho(Sn(t,Hi))})),fi=Hr((function(t){var n=Yu(t);return Hi(n)&&(n=o),ho(Sn(t,Hi),au(n,2))})),li=Hr((function(t){var n=Yu(t);return n="function"==typeof n?n:o,ho(Sn(t,Hi),o,n)})),si=Hr(ui),pi=Hr((function(t){var n=t.length,e=n>1?t[n-1]:o;return e="function"==typeof e?(t.pop(),e):o,ii(t,e)}));function hi(t){var n=Ne(t);return n.__chain__=!0,n}function vi(t,n){return n(t)}var di=nu((function(t){var n=t.length,e=n?t[0]:0,r=this.__wrapped__,u=function(n){return ur(n,t)};return!(n>1||this.__actions__.length)&&r instanceof We&&gu(e)?((r=r.slice(e,+e+(n?1:0))).__actions__.push({func:vi,args:[u],thisArg:o}),new Fe(r,this.__chain__).thru((function(t){return n&&!t.length&&t.push(o),t}))):this.thru(u)})),yi=Ro((function(t,n,e){Tt.call(t,e)?++t[e]:or(t,e,1)})),gi=Do(Vu),mi=Do(qu);function bi(t,n){return(qi(t)?_n:sr)(t,au(n,3))}function _i(t,n){return(qi(t)?wn:pr)(t,au(n,3))}var wi=Ro((function(t,n,e){Tt.call(t,e)?t[e].push(n):or(t,e,[n])})),ji=Hr((function(t,n,e){var o=-1,u="function"==typeof n,i=Zi(t)?r(t.length):[];return sr(t,(function(t){i[++o]=u?mn(n,t,e):Pr(t,n,e)})),i})),Si=Ro((function(t,n,e){or(t,e,n)}));function xi(t,n){return(qi(t)?En:Dr)(t,au(n,3))}var Oi=Ro((function(t,n,e){t[e?0:1].push(n)}),(function(){return[[],[]]})),Ei=Hr((function(t,n){if(null==t)return[];var e=n.length;return e>1&&mu(t,n[0],n[1])?n=[]:e>2&&mu(n[0],n[1],n[2])&&(n=[n[0]]),Fr(t,yr(n,1),[])})),Ai=In||function(){return un.Date.now()};function Ci(t,n,e){return n=e?o:n,n=t&&null==n?t.length:n,Jo(t,f,o,o,o,o,n)}function Pi(t,n){var e;if("function"!=typeof n)throw new At(u);return t=da(t),function(){return--t>0&&(e=n.apply(this,arguments)),t<=1&&(n=o),e}}var Ri=Hr((function(t,n,e){var r=1;if(e.length){var o=ee(e,iu(Ri));r|=c}return Jo(t,r,n,e,o)})),Ii=Hr((function(t,n,e){var r=3;if(e.length){var o=ee(e,iu(Ii));r|=c}return Jo(n,r,t,e,o)}));function ki(t,n,e){var r,i,a,c,f,l,s=0,p=!1,h=!1,v=!0;if("function"!=typeof t)throw new At(u);function d(n){var e=r,u=i;return r=i=o,s=n,c=t.apply(u,e)}function y(t){return s=t,f=Ru(m,n),p?d(t):c}function g(t){var e=t-l;return l===o||e>=n||e<0||h&&t-s>=a}function m(){var t=Ai();if(g(t))return b(t);f=Ru(m,function(t){var e=n-(t-l);return h?me(e,a-(t-s)):e}(t))}function b(t){return f=o,v&&r?d(t):(r=i=o,c)}function _(){var t=Ai(),e=g(t);if(r=arguments,i=this,l=t,e){if(f===o)return y(l);if(h)return wo(f),f=Ru(m,n),d(l)}return f===o&&(f=Ru(m,n)),c}return n=ga(n)||0,na(e)&&(p=!!e.leading,a=(h="maxWait"in e)?ge(ga(e.maxWait)||0,n):a,v="trailing"in e?!!e.trailing:v),_.cancel=function(){f!==o&&wo(f),s=0,r=l=i=f=o},_.flush=function(){return f===o?c:b(Ai())},_}var Ti=Hr((function(t,n){return fr(t,1,n)})),Li=Hr((function(t,n,e){return fr(t,ga(n)||0,e)}));function Ui(t,n){if("function"!=typeof t||null!=n&&"function"!=typeof n)throw new At(u);var e=function(){var r=arguments,o=n?n.apply(this,r):r[0],u=e.cache;if(u.has(o))return u.get(o);var i=t.apply(this,r);return e.cache=u.set(o,i)||u,i};return e.cache=new(Ui.Cache||Ge),e}function Mi(t){if("function"!=typeof t)throw new At(u);return function(){var n=arguments;switch(n.length){case 0:return!t.call(this);case 1:return!t.call(this,n[0]);case 2:return!t.call(this,n[0],n[1]);case 3:return!t.call(this,n[0],n[1],n[2])}return!t.apply(this,n)}}Ui.Cache=Ge;var Di=bo((function(t,n){var e=(n=1==n.length&&qi(n[0])?En(n[0],Vn(au())):En(yr(n,1),Vn(au()))).length;return Hr((function(r){for(var o=-1,u=me(r.length,e);++o<u;)r[o]=n[o].call(this,r[o]);return mn(t,this,r)}))})),zi=Hr((function(t,n){var e=ee(n,iu(zi));return Jo(t,c,o,n,e)})),Ni=Hr((function(t,n){var e=ee(n,iu(Ni));return Jo(t,64,o,n,e)})),Bi=nu((function(t,n){return Jo(t,256,o,o,o,n)}));function $i(t,n){return t===n||t!=t&&n!=n}var Fi=qo(Or),Wi=qo((function(t,n){return t>=n})),Vi=Rr(function(){return arguments}())?Rr:function(t){return ea(t)&&Tt.call(t,"callee")&&!tn.call(t,"callee")},qi=r.isArray,Gi=pn?Vn(pn):function(t){return ea(t)&&xr(t)==I};function Zi(t){return null!=t&&ta(t.length)&&!Qi(t)}function Hi(t){return ea(t)&&Zi(t)}var Ki=he||gc,Ji=hn?Vn(hn):function(t){return ea(t)&&xr(t)==m};function Yi(t){if(!ea(t))return!1;var n=xr(t);return n==b||"[object DOMException]"==n||"string"==typeof t.message&&"string"==typeof t.name&&!ua(t)}function Qi(t){if(!na(t))return!1;var n=xr(t);return n==_||n==w||"[object AsyncFunction]"==n||"[object Proxy]"==n}function Xi(t){return"number"==typeof t&&t==da(t)}function ta(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=s}function na(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}function ea(t){return null!=t&&"object"==typeof t}var ra=vn?Vn(vn):function(t){return ea(t)&&hu(t)==j};function oa(t){return"number"==typeof t||ea(t)&&xr(t)==S}function ua(t){if(!ea(t)||xr(t)!=x)return!1;var n=Gt(t);if(null===n)return!0;var e=Tt.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&kt.call(e)==Dt}var ia=dn?Vn(dn):function(t){return ea(t)&&xr(t)==E},aa=yn?Vn(yn):function(t){return ea(t)&&hu(t)==A};function ca(t){return"string"==typeof t||!qi(t)&&ea(t)&&xr(t)==C}function fa(t){return"symbol"==typeof t||ea(t)&&xr(t)==P}var la=gn?Vn(gn):function(t){return ea(t)&&ta(t.length)&&!!Qt[xr(t)]},sa=qo(Mr),pa=qo((function(t,n){return t<=n}));function ha(t){if(!t)return[];if(Zi(t))return ca(t)?ie(t):Co(t);if(an&&t[an])return function(t){for(var n,e=[];!(n=t.next()).done;)e.push(n.value);return e}(t[an]());var n=hu(t);return(n==j?te:n==A?re:$a)(t)}function va(t){return t?(t=ga(t))===l||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function da(t){var n=va(t),e=n%1;return n==n?e?n-e:n:0}function ya(t){return t?ir(da(t),0,h):0}function ga(t){if("number"==typeof t)return t;if(fa(t))return p;if(na(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=na(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=Wn(t);var e=vt.test(t);return e||yt.test(t)?en(t.slice(2),e?2:8):ht.test(t)?p:+t}function ma(t){return Po(t,Ta(t))}function ba(t){return null==t?"":ao(t)}var _a=Io((function(t,n){if(ju(n)||Zi(n))Po(n,ka(n),t);else for(var e in n)Tt.call(n,e)&&tr(t,e,n[e])})),wa=Io((function(t,n){Po(n,Ta(n),t)})),ja=Io((function(t,n,e,r){Po(n,Ta(n),t,r)})),Sa=Io((function(t,n,e,r){Po(n,ka(n),t,r)})),xa=nu(ur),Oa=Hr((function(t,n){t=xt(t);var e=-1,r=n.length,u=r>2?n[2]:o;for(u&&mu(n[0],n[1],u)&&(r=1);++e<r;)for(var i=n[e],a=Ta(i),c=-1,f=a.length;++c<f;){var l=a[c],s=t[l];(s===o||$i(s,Rt[l])&&!Tt.call(t,l))&&(t[l]=i[l])}return t})),Ea=Hr((function(t){return t.push(o,Qo),mn(Ua,o,t)}));function Aa(t,n,e){var r=null==t?o:jr(t,n);return r===o?e:r}function Ca(t,n){return null!=t&&vu(t,n,Ar)}var Pa=Bo((function(t,n,e){null!=n&&"function"!=typeof n.toString&&(n=Mt.call(n)),t[n]=e}),nc(oc)),Ra=Bo((function(t,n,e){null!=n&&"function"!=typeof n.toString&&(n=Mt.call(n)),Tt.call(t,n)?t[n].push(e):t[n]=[e]}),au),Ia=Hr(Pr);function ka(t){return Zi(t)?Ke(t):Ur(t)}function Ta(t){return Zi(t)?Ke(t,!0):function(t){if(!na(t))return function(t){var n=[];if(null!=t)for(var e in xt(t))n.push(e);return n}(t);var n=ju(t),e=[];for(var r in t)("constructor"!=r||!n&&Tt.call(t,r))&&e.push(r);return e}(t)}var La=Io((function(t,n,e){Br(t,n,e)})),Ua=Io((function(t,n,e,r){Br(t,n,e,r)})),Ma=nu((function(t,n){var e={};if(null==t)return e;var r=!1;n=En(n,(function(n){return n=mo(n,t),r||(r=n.length>1),n})),Po(t,ru(t),e),r&&(e=ar(e,7,Xo));for(var o=n.length;o--;)fo(e,n[o]);return e})),Da=nu((function(t,n){return null==t?{}:function(t,n){return Wr(t,n,(function(n,e){return Ca(t,e)}))}(t,n)}));function za(t,n){if(null==t)return{};var e=En(ru(t),(function(t){return[t]}));return n=au(n),Wr(t,e,(function(t,e){return n(t,e[0])}))}var Na=Ko(ka),Ba=Ko(Ta);function $a(t){return null==t?[]:qn(t,ka(t))}var Fa=Uo((function(t,n,e){return n=n.toLowerCase(),t+(e?Wa(n):n)}));function Wa(t){return Ya(ba(t).toLowerCase())}function Va(t){return(t=ba(t))&&t.replace(mt,Jn).replace(qt,"")}var qa=Uo((function(t,n,e){return t+(e?"-":"")+n.toLowerCase()})),Ga=Uo((function(t,n,e){return t+(e?" ":"")+n.toLowerCase()})),Za=Lo("toLowerCase"),Ha=Uo((function(t,n,e){return t+(e?"_":"")+n.toLowerCase()})),Ka=Uo((function(t,n,e){return t+(e?" ":"")+Ya(n)})),Ja=Uo((function(t,n,e){return t+(e?" ":"")+n.toUpperCase()})),Ya=Lo("toUpperCase");function Qa(t,n,e){return t=ba(t),(n=e?o:n)===o?function(t){return Kt.test(t)}(t)?function(t){return t.match(Zt)||[]}(t):function(t){return t.match(ct)||[]}(t):t.match(n)||[]}var Xa=Hr((function(t,n){try{return mn(t,o,n)}catch(t){return Yi(t)?t:new wt(t)}})),tc=nu((function(t,n){return _n(n,(function(n){n=zu(n),or(t,n,Ri(t[n],t))})),t}));function nc(t){return function(){return t}}var ec=zo(),rc=zo(!0);function oc(t){return t}function uc(t){return Lr("function"==typeof t?t:ar(t,1))}var ic=Hr((function(t,n){return function(e){return Pr(e,t,n)}})),ac=Hr((function(t,n){return function(e){return Pr(t,e,n)}}));function cc(t,n,e){var r=ka(n),o=wr(n,r);null!=e||na(n)&&(o.length||!r.length)||(e=n,n=t,t=this,o=wr(n,ka(n)));var u=!(na(e)&&"chain"in e&&!e.chain),i=Qi(t);return _n(o,(function(e){var r=n[e];t[e]=r,i&&(t.prototype[e]=function(){var n=this.__chain__;if(u||n){var e=t(this.__wrapped__),o=e.__actions__=Co(this.__actions__);return o.push({func:r,args:arguments,thisArg:t}),e.__chain__=n,e}return r.apply(t,An([this.value()],arguments))})})),t}function fc(){}var lc=Fo(En),sc=Fo(jn),pc=Fo(Rn);function hc(t){return bu(t)?zn(zu(t)):function(t){return function(n){return jr(n,t)}}(t)}var vc=Vo(),dc=Vo(!0);function yc(){return[]}function gc(){return!1}var mc,bc=$o((function(t,n){return t+n}),0),_c=Zo("ceil"),wc=$o((function(t,n){return t/n}),1),jc=Zo("floor"),Sc=$o((function(t,n){return t*n}),1),xc=Zo("round"),Oc=$o((function(t,n){return t-n}),0);return Ne.after=function(t,n){if("function"!=typeof n)throw new At(u);return t=da(t),function(){if(--t<1)return n.apply(this,arguments)}},Ne.ary=Ci,Ne.assign=_a,Ne.assignIn=wa,Ne.assignInWith=ja,Ne.assignWith=Sa,Ne.at=xa,Ne.before=Pi,Ne.bind=Ri,Ne.bindAll=tc,Ne.bindKey=Ii,Ne.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return qi(t)?t:[t]},Ne.chain=hi,Ne.chunk=function(t,n,e){n=(e?mu(t,n,e):n===o)?1:ge(da(n),0);var u=null==t?0:t.length;if(!u||n<1)return[];for(var i=0,a=0,c=r(le(u/n));i<u;)c[a++]=no(t,i,i+=n);return c},Ne.compact=function(t){for(var n=-1,e=null==t?0:t.length,r=0,o=[];++n<e;){var u=t[n];u&&(o[r++]=u)}return o},Ne.concat=function(){var t=arguments.length;if(!t)return[];for(var n=r(t-1),e=arguments[0],o=t;o--;)n[o-1]=arguments[o];return An(qi(e)?Co(e):[e],yr(n,1))},Ne.cond=function(t){var n=null==t?0:t.length,e=au();return t=n?En(t,(function(t){if("function"!=typeof t[1])throw new At(u);return[e(t[0]),t[1]]})):[],Hr((function(e){for(var r=-1;++r<n;){var o=t[r];if(mn(o[0],this,e))return mn(o[1],this,e)}}))},Ne.conforms=function(t){return function(t){var n=ka(t);return function(e){return cr(e,t,n)}}(ar(t,1))},Ne.constant=nc,Ne.countBy=yi,Ne.create=function(t,n){var e=Be(t);return null==n?e:rr(e,n)},Ne.curry=function t(n,e,r){var u=Jo(n,8,o,o,o,o,o,e=r?o:e);return u.placeholder=t.placeholder,u},Ne.curryRight=function t(n,e,r){var u=Jo(n,16,o,o,o,o,o,e=r?o:e);return u.placeholder=t.placeholder,u},Ne.debounce=ki,Ne.defaults=Oa,Ne.defaultsDeep=Ea,Ne.defer=Ti,Ne.delay=Li,Ne.difference=$u,Ne.differenceBy=Fu,Ne.differenceWith=Wu,Ne.drop=function(t,n,e){var r=null==t?0:t.length;return r?no(t,(n=e||n===o?1:da(n))<0?0:n,r):[]},Ne.dropRight=function(t,n,e){var r=null==t?0:t.length;return r?no(t,0,(n=r-(n=e||n===o?1:da(n)))<0?0:n):[]},Ne.dropRightWhile=function(t,n){return t&&t.length?so(t,au(n,3),!0,!0):[]},Ne.dropWhile=function(t,n){return t&&t.length?so(t,au(n,3),!0):[]},Ne.fill=function(t,n,e,r){var u=null==t?0:t.length;return u?(e&&"number"!=typeof e&&mu(t,n,e)&&(e=0,r=u),function(t,n,e,r){var u=t.length;for((e=da(e))<0&&(e=-e>u?0:u+e),(r=r===o||r>u?u:da(r))<0&&(r+=u),r=e>r?0:ya(r);e<r;)t[e++]=n;return t}(t,n,e,r)):[]},Ne.filter=function(t,n){return(qi(t)?Sn:dr)(t,au(n,3))},Ne.flatMap=function(t,n){return yr(xi(t,n),1)},Ne.flatMapDeep=function(t,n){return yr(xi(t,n),l)},Ne.flatMapDepth=function(t,n,e){return e=e===o?1:da(e),yr(xi(t,n),e)},Ne.flatten=Gu,Ne.flattenDeep=function(t){return null!=t&&t.length?yr(t,l):[]},Ne.flattenDepth=function(t,n){return null!=t&&t.length?yr(t,n=n===o?1:da(n)):[]},Ne.flip=function(t){return Jo(t,512)},Ne.flow=ec,Ne.flowRight=rc,Ne.fromPairs=function(t){for(var n=-1,e=null==t?0:t.length,r={};++n<e;){var o=t[n];r[o[0]]=o[1]}return r},Ne.functions=function(t){return null==t?[]:wr(t,ka(t))},Ne.functionsIn=function(t){return null==t?[]:wr(t,Ta(t))},Ne.groupBy=wi,Ne.initial=function(t){return null!=t&&t.length?no(t,0,-1):[]},Ne.intersection=Hu,Ne.intersectionBy=Ku,Ne.intersectionWith=Ju,Ne.invert=Pa,Ne.invertBy=Ra,Ne.invokeMap=ji,Ne.iteratee=uc,Ne.keyBy=Si,Ne.keys=ka,Ne.keysIn=Ta,Ne.map=xi,Ne.mapKeys=function(t,n){var e={};return n=au(n,3),br(t,(function(t,r,o){or(e,n(t,r,o),t)})),e},Ne.mapValues=function(t,n){var e={};return n=au(n,3),br(t,(function(t,r,o){or(e,r,n(t,r,o))})),e},Ne.matches=function(t){return zr(ar(t,1))},Ne.matchesProperty=function(t,n){return Nr(t,ar(n,1))},Ne.memoize=Ui,Ne.merge=La,Ne.mergeWith=Ua,Ne.method=ic,Ne.methodOf=ac,Ne.mixin=cc,Ne.negate=Mi,Ne.nthArg=function(t){return t=da(t),Hr((function(n){return $r(n,t)}))},Ne.omit=Ma,Ne.omitBy=function(t,n){return za(t,Mi(au(n)))},Ne.once=function(t){return Pi(2,t)},Ne.orderBy=function(t,n,e,r){return null==t?[]:(qi(n)||(n=null==n?[]:[n]),qi(e=r?o:e)||(e=null==e?[]:[e]),Fr(t,n,e))},Ne.over=lc,Ne.overArgs=Di,Ne.overEvery=sc,Ne.overSome=pc,Ne.partial=zi,Ne.partialRight=Ni,Ne.partition=Oi,Ne.pick=Da,Ne.pickBy=za,Ne.property=hc,Ne.propertyOf=function(t){return function(n){return null==t?o:jr(t,n)}},Ne.pull=Qu,Ne.pullAll=Xu,Ne.pullAllBy=function(t,n,e){return t&&t.length&&n&&n.length?Vr(t,n,au(e,2)):t},Ne.pullAllWith=function(t,n,e){return t&&t.length&&n&&n.length?Vr(t,n,o,e):t},Ne.pullAt=ti,Ne.range=vc,Ne.rangeRight=dc,Ne.rearg=Bi,Ne.reject=function(t,n){return(qi(t)?Sn:dr)(t,Mi(au(n,3)))},Ne.remove=function(t,n){var e=[];if(!t||!t.length)return e;var r=-1,o=[],u=t.length;for(n=au(n,3);++r<u;){var i=t[r];n(i,r,t)&&(e.push(i),o.push(r))}return qr(t,o),e},Ne.rest=function(t,n){if("function"!=typeof t)throw new At(u);return Hr(t,n=n===o?n:da(n))},Ne.reverse=ni,Ne.sampleSize=function(t,n,e){return n=(e?mu(t,n,e):n===o)?1:da(n),(qi(t)?Ye:Jr)(t,n)},Ne.set=function(t,n,e){return null==t?t:Yr(t,n,e)},Ne.setWith=function(t,n,e,r){return r="function"==typeof r?r:o,null==t?t:Yr(t,n,e,r)},Ne.shuffle=function(t){return(qi(t)?Qe:to)(t)},Ne.slice=function(t,n,e){var r=null==t?0:t.length;return r?(e&&"number"!=typeof e&&mu(t,n,e)?(n=0,e=r):(n=null==n?0:da(n),e=e===o?r:da(e)),no(t,n,e)):[]},Ne.sortBy=Ei,Ne.sortedUniq=function(t){return t&&t.length?uo(t):[]},Ne.sortedUniqBy=function(t,n){return t&&t.length?uo(t,au(n,2)):[]},Ne.split=function(t,n,e){return e&&"number"!=typeof e&&mu(t,n,e)&&(n=e=o),(e=e===o?h:e>>>0)?(t=ba(t))&&("string"==typeof n||null!=n&&!ia(n))&&!(n=ao(n))&&Xn(t)?_o(ie(t),0,e):t.split(n,e):[]},Ne.spread=function(t,n){if("function"!=typeof t)throw new At(u);return n=null==n?0:ge(da(n),0),Hr((function(e){var r=e[n],o=_o(e,0,n);return r&&An(o,r),mn(t,this,o)}))},Ne.tail=function(t){var n=null==t?0:t.length;return n?no(t,1,n):[]},Ne.take=function(t,n,e){return t&&t.length?no(t,0,(n=e||n===o?1:da(n))<0?0:n):[]},Ne.takeRight=function(t,n,e){var r=null==t?0:t.length;return r?no(t,(n=r-(n=e||n===o?1:da(n)))<0?0:n,r):[]},Ne.takeRightWhile=function(t,n){return t&&t.length?so(t,au(n,3),!1,!0):[]},Ne.takeWhile=function(t,n){return t&&t.length?so(t,au(n,3)):[]},Ne.tap=function(t,n){return n(t),t},Ne.throttle=function(t,n,e){var r=!0,o=!0;if("function"!=typeof t)throw new At(u);return na(e)&&(r="leading"in e?!!e.leading:r,o="trailing"in e?!!e.trailing:o),ki(t,n,{leading:r,maxWait:n,trailing:o})},Ne.thru=vi,Ne.toArray=ha,Ne.toPairs=Na,Ne.toPairsIn=Ba,Ne.toPath=function(t){return qi(t)?En(t,zu):fa(t)?[t]:Co(Du(ba(t)))},Ne.toPlainObject=ma,Ne.transform=function(t,n,e){var r=qi(t),o=r||Ki(t)||la(t);if(n=au(n,4),null==e){var u=t&&t.constructor;e=o?r?new u:[]:na(t)&&Qi(u)?Be(Gt(t)):{}}return(o?_n:br)(t,(function(t,r,o){return n(e,t,r,o)})),e},Ne.unary=function(t){return Ci(t,1)},Ne.union=ei,Ne.unionBy=ri,Ne.unionWith=oi,Ne.uniq=function(t){return t&&t.length?co(t):[]},Ne.uniqBy=function(t,n){return t&&t.length?co(t,au(n,2)):[]},Ne.uniqWith=function(t,n){return n="function"==typeof n?n:o,t&&t.length?co(t,o,n):[]},Ne.unset=function(t,n){return null==t||fo(t,n)},Ne.unzip=ui,Ne.unzipWith=ii,Ne.update=function(t,n,e){return null==t?t:lo(t,n,go(e))},Ne.updateWith=function(t,n,e,r){return r="function"==typeof r?r:o,null==t?t:lo(t,n,go(e),r)},Ne.values=$a,Ne.valuesIn=function(t){return null==t?[]:qn(t,Ta(t))},Ne.without=ai,Ne.words=Qa,Ne.wrap=function(t,n){return zi(go(n),t)},Ne.xor=ci,Ne.xorBy=fi,Ne.xorWith=li,Ne.zip=si,Ne.zipObject=function(t,n){return vo(t||[],n||[],tr)},Ne.zipObjectDeep=function(t,n){return vo(t||[],n||[],Yr)},Ne.zipWith=pi,Ne.entries=Na,Ne.entriesIn=Ba,Ne.extend=wa,Ne.extendWith=ja,cc(Ne,Ne),Ne.add=bc,Ne.attempt=Xa,Ne.camelCase=Fa,Ne.capitalize=Wa,Ne.ceil=_c,Ne.clamp=function(t,n,e){return e===o&&(e=n,n=o),e!==o&&(e=(e=ga(e))==e?e:0),n!==o&&(n=(n=ga(n))==n?n:0),ir(ga(t),n,e)},Ne.clone=function(t){return ar(t,4)},Ne.cloneDeep=function(t){return ar(t,5)},Ne.cloneDeepWith=function(t,n){return ar(t,5,n="function"==typeof n?n:o)},Ne.cloneWith=function(t,n){return ar(t,4,n="function"==typeof n?n:o)},Ne.conformsTo=function(t,n){return null==n||cr(t,n,ka(n))},Ne.deburr=Va,Ne.defaultTo=function(t,n){return null==t||t!=t?n:t},Ne.divide=wc,Ne.endsWith=function(t,n,e){t=ba(t),n=ao(n);var r=t.length,u=e=e===o?r:ir(da(e),0,r);return(e-=n.length)>=0&&t.slice(e,u)==n},Ne.eq=$i,Ne.escape=function(t){return(t=ba(t))&&H.test(t)?t.replace(G,Yn):t},Ne.escapeRegExp=function(t){return(t=ba(t))&&et.test(t)?t.replace(nt,"\\$&"):t},Ne.every=function(t,n,e){var r=qi(t)?jn:hr;return e&&mu(t,n,e)&&(n=o),r(t,au(n,3))},Ne.find=gi,Ne.findIndex=Vu,Ne.findKey=function(t,n){return kn(t,au(n,3),br)},Ne.findLast=mi,Ne.findLastIndex=qu,Ne.findLastKey=function(t,n){return kn(t,au(n,3),_r)},Ne.floor=jc,Ne.forEach=bi,Ne.forEachRight=_i,Ne.forIn=function(t,n){return null==t?t:gr(t,au(n,3),Ta)},Ne.forInRight=function(t,n){return null==t?t:mr(t,au(n,3),Ta)},Ne.forOwn=function(t,n){return t&&br(t,au(n,3))},Ne.forOwnRight=function(t,n){return t&&_r(t,au(n,3))},Ne.get=Aa,Ne.gt=Fi,Ne.gte=Wi,Ne.has=function(t,n){return null!=t&&vu(t,n,Er)},Ne.hasIn=Ca,Ne.head=Zu,Ne.identity=oc,Ne.includes=function(t,n,e,r){t=Zi(t)?t:$a(t),e=e&&!r?da(e):0;var o=t.length;return e<0&&(e=ge(o+e,0)),ca(t)?e<=o&&t.indexOf(n,e)>-1:!!o&&Ln(t,n,e)>-1},Ne.indexOf=function(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var o=null==e?0:da(e);return o<0&&(o=ge(r+o,0)),Ln(t,n,o)},Ne.inRange=function(t,n,e){return n=va(n),e===o?(e=n,n=0):e=va(e),function(t,n,e){return t>=me(n,e)&&t<ge(n,e)}(t=ga(t),n,e)},Ne.invoke=Ia,Ne.isArguments=Vi,Ne.isArray=qi,Ne.isArrayBuffer=Gi,Ne.isArrayLike=Zi,Ne.isArrayLikeObject=Hi,Ne.isBoolean=function(t){return!0===t||!1===t||ea(t)&&xr(t)==g},Ne.isBuffer=Ki,Ne.isDate=Ji,Ne.isElement=function(t){return ea(t)&&1===t.nodeType&&!ua(t)},Ne.isEmpty=function(t){if(null==t)return!0;if(Zi(t)&&(qi(t)||"string"==typeof t||"function"==typeof t.splice||Ki(t)||la(t)||Vi(t)))return!t.length;var n=hu(t);if(n==j||n==A)return!t.size;if(ju(t))return!Ur(t).length;for(var e in t)if(Tt.call(t,e))return!1;return!0},Ne.isEqual=function(t,n){return Ir(t,n)},Ne.isEqualWith=function(t,n,e){var r=(e="function"==typeof e?e:o)?e(t,n):o;return r===o?Ir(t,n,o,e):!!r},Ne.isError=Yi,Ne.isFinite=function(t){return"number"==typeof t&&ve(t)},Ne.isFunction=Qi,Ne.isInteger=Xi,Ne.isLength=ta,Ne.isMap=ra,Ne.isMatch=function(t,n){return t===n||kr(t,n,fu(n))},Ne.isMatchWith=function(t,n,e){return e="function"==typeof e?e:o,kr(t,n,fu(n),e)},Ne.isNaN=function(t){return oa(t)&&t!=+t},Ne.isNative=function(t){if(wu(t))throw new wt("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Tr(t)},Ne.isNil=function(t){return null==t},Ne.isNull=function(t){return null===t},Ne.isNumber=oa,Ne.isObject=na,Ne.isObjectLike=ea,Ne.isPlainObject=ua,Ne.isRegExp=ia,Ne.isSafeInteger=function(t){return Xi(t)&&t>=-9007199254740991&&t<=s},Ne.isSet=aa,Ne.isString=ca,Ne.isSymbol=fa,Ne.isTypedArray=la,Ne.isUndefined=function(t){return t===o},Ne.isWeakMap=function(t){return ea(t)&&hu(t)==R},Ne.isWeakSet=function(t){return ea(t)&&"[object WeakSet]"==xr(t)},Ne.join=function(t,n){return null==t?"":de.call(t,n)},Ne.kebabCase=qa,Ne.last=Yu,Ne.lastIndexOf=function(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var u=r;return e!==o&&(u=(u=da(e))<0?ge(r+u,0):me(u,r-1)),n==n?function(t,n,e){for(var r=e+1;r--;)if(t[r]===n)return r;return r}(t,n,u):Tn(t,Mn,u,!0)},Ne.lowerCase=Ga,Ne.lowerFirst=Za,Ne.lt=sa,Ne.lte=pa,Ne.max=function(t){return t&&t.length?vr(t,oc,Or):o},Ne.maxBy=function(t,n){return t&&t.length?vr(t,au(n,2),Or):o},Ne.mean=function(t){return Dn(t,oc)},Ne.meanBy=function(t,n){return Dn(t,au(n,2))},Ne.min=function(t){return t&&t.length?vr(t,oc,Mr):o},Ne.minBy=function(t,n){return t&&t.length?vr(t,au(n,2),Mr):o},Ne.stubArray=yc,Ne.stubFalse=gc,Ne.stubObject=function(){return{}},Ne.stubString=function(){return""},Ne.stubTrue=function(){return!0},Ne.multiply=Sc,Ne.nth=function(t,n){return t&&t.length?$r(t,da(n)):o},Ne.noConflict=function(){return un._===this&&(un._=zt),this},Ne.noop=fc,Ne.now=Ai,Ne.pad=function(t,n,e){t=ba(t);var r=(n=da(n))?ue(t):0;if(!n||r>=n)return t;var o=(n-r)/2;return Wo(se(o),e)+t+Wo(le(o),e)},Ne.padEnd=function(t,n,e){t=ba(t);var r=(n=da(n))?ue(t):0;return n&&r<n?t+Wo(n-r,e):t},Ne.padStart=function(t,n,e){t=ba(t);var r=(n=da(n))?ue(t):0;return n&&r<n?Wo(n-r,e)+t:t},Ne.parseInt=function(t,n,e){return e||null==n?n=0:n&&(n=+n),_e(ba(t).replace(rt,""),n||0)},Ne.random=function(t,n,e){if(e&&"boolean"!=typeof e&&mu(t,n,e)&&(n=e=o),e===o&&("boolean"==typeof n?(e=n,n=o):"boolean"==typeof t&&(e=t,t=o)),t===o&&n===o?(t=0,n=1):(t=va(t),n===o?(n=t,t=0):n=va(n)),t>n){var r=t;t=n,n=r}if(e||t%1||n%1){var u=we();return me(t+u*(n-t+nn("1e-"+((u+"").length-1))),n)}return Gr(t,n)},Ne.reduce=function(t,n,e){var r=qi(t)?Cn:Bn,o=arguments.length<3;return r(t,au(n,4),e,o,sr)},Ne.reduceRight=function(t,n,e){var r=qi(t)?Pn:Bn,o=arguments.length<3;return r(t,au(n,4),e,o,pr)},Ne.repeat=function(t,n,e){return n=(e?mu(t,n,e):n===o)?1:da(n),Zr(ba(t),n)},Ne.replace=function(){var t=arguments,n=ba(t[0]);return t.length<3?n:n.replace(t[1],t[2])},Ne.result=function(t,n,e){var r=-1,u=(n=mo(n,t)).length;for(u||(u=1,t=o);++r<u;){var i=null==t?o:t[zu(n[r])];i===o&&(r=u,i=e),t=Qi(i)?i.call(t):i}return t},Ne.round=xc,Ne.runInContext=t,Ne.sample=function(t){return(qi(t)?Je:Kr)(t)},Ne.size=function(t){if(null==t)return 0;if(Zi(t))return ca(t)?ue(t):t.length;var n=hu(t);return n==j||n==A?t.size:Ur(t).length},Ne.snakeCase=Ha,Ne.some=function(t,n,e){var r=qi(t)?Rn:eo;return e&&mu(t,n,e)&&(n=o),r(t,au(n,3))},Ne.sortedIndex=function(t,n){return ro(t,n)},Ne.sortedIndexBy=function(t,n,e){return oo(t,n,au(e,2))},Ne.sortedIndexOf=function(t,n){var e=null==t?0:t.length;if(e){var r=ro(t,n);if(r<e&&$i(t[r],n))return r}return-1},Ne.sortedLastIndex=function(t,n){return ro(t,n,!0)},Ne.sortedLastIndexBy=function(t,n,e){return oo(t,n,au(e,2),!0)},Ne.sortedLastIndexOf=function(t,n){if(null!=t&&t.length){var e=ro(t,n,!0)-1;if($i(t[e],n))return e}return-1},Ne.startCase=Ka,Ne.startsWith=function(t,n,e){return t=ba(t),e=null==e?0:ir(da(e),0,t.length),n=ao(n),t.slice(e,e+n.length)==n},Ne.subtract=Oc,Ne.sum=function(t){return t&&t.length?$n(t,oc):0},Ne.sumBy=function(t,n){return t&&t.length?$n(t,au(n,2)):0},Ne.template=function(t,n,e){var r=Ne.templateSettings;e&&mu(t,n,e)&&(n=o),t=ba(t),n=ja({},n,r,Yo);var u,i,a=ja({},n.imports,r.imports,Yo),c=ka(a),f=qn(a,c),l=0,s=n.interpolate||bt,p="__p += '",h=Ot((n.escape||bt).source+"|"+s.source+"|"+(s===Y?st:bt).source+"|"+(n.evaluate||bt).source+"|$","g"),v="//# sourceURL="+(Tt.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Yt+"]")+"\n";t.replace(h,(function(n,e,r,o,a,c){return r||(r=o),p+=t.slice(l,c).replace(_t,Qn),e&&(u=!0,p+="' +\n__e("+e+") +\n'"),a&&(i=!0,p+="';\n"+a+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=c+n.length,n})),p+="';\n";var d=Tt.call(n,"variable")&&n.variable;if(d){if(ft.test(d))throw new wt("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(i?p.replace(F,""):p).replace(W,"$1").replace(V,"$1;"),p="function("+(d||"obj")+") {\n"+(d?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(u?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var y=Xa((function(){return jt(c,v+"return "+p).apply(o,f)}));if(y.source=p,Yi(y))throw y;return y},Ne.times=function(t,n){if((t=da(t))<1||t>s)return[];var e=h,r=me(t,h);n=au(n),t-=h;for(var o=Fn(r,n);++e<t;)n(e);return o},Ne.toFinite=va,Ne.toInteger=da,Ne.toLength=ya,Ne.toLower=function(t){return ba(t).toLowerCase()},Ne.toNumber=ga,Ne.toSafeInteger=function(t){return t?ir(da(t),-9007199254740991,s):0===t?t:0},Ne.toString=ba,Ne.toUpper=function(t){return ba(t).toUpperCase()},Ne.trim=function(t,n,e){if((t=ba(t))&&(e||n===o))return Wn(t);if(!t||!(n=ao(n)))return t;var r=ie(t),u=ie(n);return _o(r,Zn(r,u),Hn(r,u)+1).join("")},Ne.trimEnd=function(t,n,e){if((t=ba(t))&&(e||n===o))return t.slice(0,ae(t)+1);if(!t||!(n=ao(n)))return t;var r=ie(t);return _o(r,0,Hn(r,ie(n))+1).join("")},Ne.trimStart=function(t,n,e){if((t=ba(t))&&(e||n===o))return t.replace(rt,"");if(!t||!(n=ao(n)))return t;var r=ie(t);return _o(r,Zn(r,ie(n))).join("")},Ne.truncate=function(t,n){var e=30,r="...";if(na(n)){var u="separator"in n?n.separator:u;e="length"in n?da(n.length):e,r="omission"in n?ao(n.omission):r}var i=(t=ba(t)).length;if(Xn(t)){var a=ie(t);i=a.length}if(e>=i)return t;var c=e-ue(r);if(c<1)return r;var f=a?_o(a,0,c).join(""):t.slice(0,c);if(u===o)return f+r;if(a&&(c+=f.length-c),ia(u)){if(t.slice(c).search(u)){var l,s=f;for(u.global||(u=Ot(u.source,ba(pt.exec(u))+"g")),u.lastIndex=0;l=u.exec(s);)var p=l.index;f=f.slice(0,p===o?c:p)}}else if(t.indexOf(ao(u),c)!=c){var h=f.lastIndexOf(u);h>-1&&(f=f.slice(0,h))}return f+r},Ne.unescape=function(t){return(t=ba(t))&&Z.test(t)?t.replace(q,ce):t},Ne.uniqueId=function(t){var n=++Lt;return ba(t)+n},Ne.upperCase=Ja,Ne.upperFirst=Ya,Ne.each=bi,Ne.eachRight=_i,Ne.first=Zu,cc(Ne,(mc={},br(Ne,(function(t,n){Tt.call(Ne.prototype,n)||(mc[n]=t)})),mc),{chain:!1}),Ne.VERSION="4.17.21",_n(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Ne[t].placeholder=Ne})),_n(["drop","take"],(function(t,n){We.prototype[t]=function(e){e=e===o?1:ge(da(e),0);var r=this.__filtered__&&!n?new We(this):this.clone();return r.__filtered__?r.__takeCount__=me(e,r.__takeCount__):r.__views__.push({size:me(e,h),type:t+(r.__dir__<0?"Right":"")}),r},We.prototype[t+"Right"]=function(n){return this.reverse()[t](n).reverse()}})),_n(["filter","map","takeWhile"],(function(t,n){var e=n+1,r=1==e||3==e;We.prototype[t]=function(t){var n=this.clone();return n.__iteratees__.push({iteratee:au(t,3),type:e}),n.__filtered__=n.__filtered__||r,n}})),_n(["head","last"],(function(t,n){var e="take"+(n?"Right":"");We.prototype[t]=function(){return this[e](1).value()[0]}})),_n(["initial","tail"],(function(t,n){var e="drop"+(n?"":"Right");We.prototype[t]=function(){return this.__filtered__?new We(this):this[e](1)}})),We.prototype.compact=function(){return this.filter(oc)},We.prototype.find=function(t){return this.filter(t).head()},We.prototype.findLast=function(t){return this.reverse().find(t)},We.prototype.invokeMap=Hr((function(t,n){return"function"==typeof t?new We(this):this.map((function(e){return Pr(e,t,n)}))})),We.prototype.reject=function(t){return this.filter(Mi(au(t)))},We.prototype.slice=function(t,n){t=da(t);var e=this;return e.__filtered__&&(t>0||n<0)?new We(e):(t<0?e=e.takeRight(-t):t&&(e=e.drop(t)),n!==o&&(e=(n=da(n))<0?e.dropRight(-n):e.take(n-t)),e)},We.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},We.prototype.toArray=function(){return this.take(h)},br(We.prototype,(function(t,n){var e=/^(?:filter|find|map|reject)|While$/.test(n),r=/^(?:head|last)$/.test(n),u=Ne[r?"take"+("last"==n?"Right":""):n],i=r||/^find/.test(n);u&&(Ne.prototype[n]=function(){var n=this.__wrapped__,a=r?[1]:arguments,c=n instanceof We,f=a[0],l=c||qi(n),s=function(t){var n=u.apply(Ne,An([t],a));return r&&p?n[0]:n};l&&e&&"function"==typeof f&&1!=f.length&&(c=l=!1);var p=this.__chain__,h=!!this.__actions__.length,v=i&&!p,d=c&&!h;if(!i&&l){n=d?n:new We(this);var y=t.apply(n,a);return y.__actions__.push({func:vi,args:[s],thisArg:o}),new Fe(y,p)}return v&&d?t.apply(this,a):(y=this.thru(s),v?r?y.value()[0]:y.value():y)})})),_n(["pop","push","shift","sort","splice","unshift"],(function(t){var n=Ct[t],e=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);Ne.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var o=this.value();return n.apply(qi(o)?o:[],t)}return this[e]((function(e){return n.apply(qi(e)?e:[],t)}))}})),br(We.prototype,(function(t,n){var e=Ne[n];if(e){var r=e.name+"";Tt.call(Re,r)||(Re[r]=[]),Re[r].push({name:n,func:e})}})),Re[No(o,2).name]=[{name:"wrapper",func:o}],We.prototype.clone=function(){var t=new We(this.__wrapped__);return t.__actions__=Co(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Co(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Co(this.__views__),t},We.prototype.reverse=function(){if(this.__filtered__){var t=new We(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},We.prototype.value=function(){var t=this.__wrapped__.value(),n=this.__dir__,e=qi(t),r=n<0,o=e?t.length:0,u=function(t,n,e){for(var r=-1,o=e.length;++r<o;){var u=e[r],i=u.size;switch(u.type){case"drop":t+=i;break;case"dropRight":n-=i;break;case"take":n=me(n,t+i);break;case"takeRight":t=ge(t,n-i)}}return{start:t,end:n}}(0,o,this.__views__),i=u.start,a=u.end,c=a-i,f=r?a:i-1,l=this.__iteratees__,s=l.length,p=0,h=me(c,this.__takeCount__);if(!e||!r&&o==c&&h==c)return po(t,this.__actions__);var v=[];t:for(;c--&&p<h;){for(var d=-1,y=t[f+=n];++d<s;){var g=l[d],m=g.iteratee,b=g.type,_=m(y);if(2==b)y=_;else if(!_){if(1==b)continue t;break t}}v[p++]=y}return v},Ne.prototype.at=di,Ne.prototype.chain=function(){return hi(this)},Ne.prototype.commit=function(){return new Fe(this.value(),this.__chain__)},Ne.prototype.next=function(){this.__values__===o&&(this.__values__=ha(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?o:this.__values__[this.__index__++]}},Ne.prototype.plant=function(t){for(var n,e=this;e instanceof $e;){var r=Bu(e);r.__index__=0,r.__values__=o,n?u.__wrapped__=r:n=r;var u=r;e=e.__wrapped__}return u.__wrapped__=t,n},Ne.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof We){var n=t;return this.__actions__.length&&(n=new We(this)),(n=n.reverse()).__actions__.push({func:vi,args:[ni],thisArg:o}),new Fe(n,this.__chain__)}return this.thru(ni)},Ne.prototype.toJSON=Ne.prototype.valueOf=Ne.prototype.value=function(){return po(this.__wrapped__,this.__actions__)},Ne.prototype.first=Ne.prototype.head,an&&(Ne.prototype[an]=function(){return this}),Ne}();un._=fe,(r=function(){return fe}.call(n,e,n,t))===o||(t.exports=r)}.call(this)},385:()=>{System.register([],(function(t,n){return{execute:function(){t(function(){var t={968:function(t,n,e){var r=e(577).R;n.s=function(t){if(t||(t=1),!e.y.meta||!e.y.meta.url)throw console.error("__system_context__",e.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");e.p=r(e.y.meta.url,t)}},577:function(t,n,e){n.R=function(t,n){var e=document.createElement("a");e.href=t;for(var r="/"===e.pathname[0]?e.pathname:"/"+e.pathname,o=0,u=r.length;o!==n&&u>=0;)"/"===r[--u]&&o++;if(o!==n)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+n+") is greater than the number of directories ("+o+") in the URL path "+t);var i=r.slice(0,u+1);return e.protocol+"//"+e.host+i},Number.isInteger}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var u=e[n]={exports:{}};return t[n](u,u.exports,r),u.exports}r.y=n,r.d=function(t,n){for(var e in n)r.o(n,e)&&!r.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:n[e]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},function(){var t;r.g.importScripts&&(t=r.g.location+"");var n=r.g.document;if(!t&&n&&(n.currentScript&&(t=n.currentScript.src),!t)){var e=n.getElementsByTagName("script");e.length&&(t=e[e.length-1].src)}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=t}();var o={};return(0,r(968).s)(1),function(){"use strict";var t=function(t,n){for(var e in n)t[e]=n[e];return t},n=function(n){var e=[];function r(t){for(var n=[],r=0;r<e.length;r++)e[r]===t?t=null:n.push(e[r]);e=n}function o(r,o,u){n=o?r:t(t({},n),r);for(var i=e,a=0;a<i.length;a++)i[a](n,u)}return n=n||{},{action:function(t){function e(n){o(n,!1,t)}return function(){for(var r=arguments,o=[n],u=0;u<arguments.length;u++)o.push(r[u]);var i=t.apply(this,o);if(null!=i)return i.then?i.then(e):e(i)}},setState:o,subscribe:function(t){return e.push(t),function(){r(t)}},unsubscribe:r,getState:function(){return n}}},e=function(t,e){var r=f[t];if(r)return r.active?console.error("Cannot override an existing store. Make sure that stores are only created once."):r.value.setState(e,!0),r.active=!0,r.value;var o=n(e);return f[t]={value:o,active:!0},o},u=function(t,e){var r=f[t];if(!r){var o=n(e);return f[t]={value:o,active:!1},o}return r.value},i=function(t){return e("app",t)},a=function(){return u("app",{})},c=function(t,n,e){var r=n(t.getState());return t.subscribe((function(t){var o=n(t);o!==r&&(r=o,e(o))}))};r.r(o),r.d(o,{createAppState:function(){return i},createGlobalStore:function(){return e},getAppState:function(){return a},getGlobalStore:function(){return u},subscribeTo:function(){return c}});var f={}}(),o}())}}}))},968:(t,n,e)=>{const r=e(577).R;n.s=function(t){if(t||(t=1),!e.y.meta||!e.y.meta.url)throw console.error("__system_context__",e.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");e.p=r(e.y.meta.url,t)}},577:(t,n,e)=>{n.R=function(t,n){var e=document.createElement("a");e.href=t;for(var r="/"===e.pathname[0]?e.pathname:"/"+e.pathname,o=0,u=r.length;o!==n&&u>=0;)"/"===r[--u]&&o++;if(o!==n)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+n+") is greater than the number of directories ("+o+") in the URL path "+t);var i=r.slice(0,u+1);return e.protocol+"//"+e.host+i};Number.isInteger},766:t=>{"use strict";t.exports=f},824:t=>{"use strict";t.exports=r},45:t=>{"use strict";t.exports=o},728:t=>{"use strict";t.exports=u},688:t=>{"use strict";t.exports=l},64:t=>{"use strict";t.exports=a},954:t=>{"use strict";t.exports=e},493:t=>{"use strict";t.exports=i},281:t=>{"use strict";t.exports=c}},s={};function p(n){var e=s[n];if(void 0!==e)return e.exports;var r=s[n]={id:n,loaded:!1,exports:{}};return t[n].call(r.exports,r,r.exports,p),r.loaded=!0,r.exports}p.y=n,p.n=t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return p.d(n,{a:n}),n},p.d=(t,n)=>{for(var e in n)p.o(n,e)&&!p.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:n[e]})},p.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),p.o=(t,n)=>Object.prototype.hasOwnProperty.call(t,n),p.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},p.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{var t;p.g.importScripts&&(t=p.g.location+"");var n=p.g.document;if(!t&&n&&(n.currentScript&&(t=n.currentScript.src),!t)){var e=n.getElementsByTagName("script");e.length&&(t=e[e.length-1].src)}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),p.p=t})();var h={};return(0,p(968).s)(1),(()=>{"use strict";p.r(h),p.d(h,{ComponentContext:()=>n,ConfigurableLink:()=>o,Extension:()=>l,ExtensionSlot:()=>O,UserHasAccess:()=>Ve,createUseStore:()=>a,getAsyncExtensionLifecycle:()=>nt,getAsyncLifecycle:()=>X,getLifecycle:()=>Q,getSyncLifecycle:()=>tt,openmrsComponentDecorator:()=>Y,useAssignedExtensionIds:()=>rt,useAssignedExtensions:()=>m,useBodyScrollLock:()=>ot,useConfig:()=>he,useConnectedExtensions:()=>b,useConnectivity:()=>d,useCurrentPatient:()=>Ie,useExtensionInternalStore:()=>ke,useExtensionSlot:()=>_,useExtensionSlotMeta:()=>Te,useExtensionStore:()=>Le,useForceUpdate:()=>Me,useLayoutType:()=>Ne,useLocations:()=>$e,useOnClickOutside:()=>Fe,usePagination:()=>ro,usePatient:()=>Se,useSession:()=>Ge,useSessionUser:()=>Ze,useStore:()=>nr,useStoreWithActions:()=>er,useVisit:()=>Qr,useVisitTypes:()=>to});var t=p(954),n=t.default.createContext({moduleName:""}),e=p(824);function r(){return r=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},r.apply(this,arguments)}var o=function(n){var o=n.to,u=n.children,i=function(t,n){if(null==t)return{};var e,r,o=function(t,n){if(null==t)return{};var e,r,o={},u=Object.keys(t);for(r=0;r<u.length;r++)e=u[r],n.indexOf(e)>=0||(o[e]=t[e]);return o}(t,n);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(t);for(r=0;r<u.length;r++)e=u[r],n.indexOf(e)>=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o}(n,["to","children"]);return t.default.createElement("a",r({onClick:function(t){return function(t,n){t.metaKey||t.ctrlKey||t.shiftKey||0!=t.button||(t.preventDefault(),(0,e.navigate)({to:n}))}(t,o)},href:(0,e.interpolateUrl)(o)},i),u)};function u(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function i(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function a(n){return function(e){var r=function(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,o,u=[],i=!0,a=!1;try{for(e=e.call(t);!(i=(r=e.next()).done)&&(u.push(r.value),!n||u.length!==n);i=!0);}catch(t){a=!0,o=t}finally{try{i||null==e.return||e.return()}finally{if(a)throw o}}return u}}(t,n)||function(t,n){if(t){if("string"==typeof t)return u(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(e):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?u(t,n):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,t.useState)(n.getState()),2),o=r[0],a=r[1];(0,t.useEffect)((function(){return n.subscribe((function(t){return a(t)}))}),[]);var c={};return e&&(c=(0,t.useMemo)((function(){return function(t,n){"function"==typeof n&&(n=n(t));var e={};for(var r in n)e[r]=t.action(n[r]);return e}(n,e)}),[n,e])),function(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{},r=Object.keys(e);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(e).filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})))),r.forEach((function(n){i(t,n,e[n])}))}return t}({},o,c)}}var c=p(45);function f(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}var l=function(e){var r=e.state,o=e.wrap,u=function(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,o,u=[],i=!0,a=!1;try{for(e=e.call(t);!(i=(r=e.next()).done)&&(u.push(r.value),!n||u.length!==n);i=!0);}catch(t){a=!0,o=t}finally{try{i||null==e.return||e.return()}finally{if(a)throw o}}return u}}(t,n)||function(t,n){if(t){if("string"==typeof t)return f(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(e):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?f(t,n):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,t.useState)(),2),i=u[0],a=u[1],l=(0,t.useContext)(n).extension,s=(0,t.useCallback)((function(t){a(t)}),[]);(0,t.useEffect)((function(){if(null!=i&&l)return(0,c.renderExtension)(i,l.extensionSlotName,l.extensionSlotModuleName,l.extensionId,void 0,r)}),[null==l?void 0:l.extensionSlotName,null==l?void 0:l.extensionId,null==l?void 0:l.extensionSlotModuleName,r,i]);var p=t.default.createElement("div",{ref:s,"data-extension-id":null==l?void 0:l.extensionId,style:{position:"relative"}});return l&&o?o(p,l):p},s=p(728);function v(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function d(){var n=function(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,o,u=[],i=!0,a=!1;try{for(e=e.call(t);!(i=(r=e.next()).done)&&(u.push(r.value),!n||u.length!==n);i=!0);}catch(t){a=!0,o=t}finally{try{i||null==e.return||e.return()}finally{if(a)throw o}}return u}}(t,n)||function(t,n){if(t){if("string"==typeof t)return v(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(e):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?v(t,n):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,t.useState)(window.navigator.onLine),2),e=n[0],r=n[1];return(0,t.useEffect)((function(){return(0,s.subscribeConnectivityChanged)((function(t){var n=t.online;return r(n)}))}),[]),e}var y=p(891);function g(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function m(n){var e=function(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,o,u=[],i=!0,a=!1;try{for(e=e.call(t);!(i=(r=e.next()).done)&&(u.push(r.value),!n||u.length!==n);i=!0);}catch(t){a=!0,o=t}finally{try{i||null==e.return||e.return()}finally{if(a)throw o}}return u}}(t,n)||function(t,n){if(t){if("string"==typeof t)return g(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(e):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?g(t,n):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,t.useState)([]),2),r=e[0],o=e[1];return(0,t.useEffect)((function(){var t=function(t){var e,u,i=null!==(u=null===(e=t.slots[n])||void 0===e?void 0:e.assignedExtensions)&&void 0!==u?u:[];(0,y.isEqual)(i,r)||o(i)};return t((0,c.getExtensionStore)().getState()),(0,c.getExtensionStore)().subscribe(t)}),[n,r]),r}function b(n){var e=d(),r=m(n);return(0,t.useMemo)((function(){return(0,c.getConnectedExtensions)(r,e)}),[r,e])}function _(e){var r=(0,t.useContext)(n).moduleName;if(!r)throw Error("ComponentContext has not been provided. This should come from @openmrs/esm-react-utils.");return(0,t.useEffect)((function(){(0,c.registerExtensionSlot)(r,e)}),[]),{extensions:b(e),extensionSlotName:e,extensionSlotModuleName:r}}function w(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function j(){return j=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},j.apply(this,arguments)}function S(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{},r=Object.keys(e);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(e).filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})))),r.forEach((function(n){w(t,n,e[n])}))}return t}function x(t){return t}var O=function(e){var r=e.extensionSlotName,o=e.select,u=void 0===o?x:o,i=e.children,a=e.state,c=e.style,f=function(t,n){if(null==t)return{};var e,r,o=function(t,n){if(null==t)return{};var e,r,o={},u=Object.keys(t);for(r=0;r<u.length;r++)e=u[r],n.indexOf(e)>=0||(o[e]=t[e]);return o}(t,n);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(t);for(r=0;r<u.length;r++)e=u[r],n.indexOf(e)>=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o}(e,["extensionSlotName","select","children","state","style"]),s=(0,t.useRef)(null),p=_(r),h=p.extensions,v=p.extensionSlotModuleName,d=(0,t.useRef)(a);(function(t,n){if(t===n)return!0;if(!t&&n)return!1;if(t&&!n)return!1;if("object"!=typeof t||"object"!=typeof n)return!1;var e=Object.keys(t),r=Object.keys(n);if(e.length!==r.length)return!1;for(var o=0;o<e.length;o++){var u=e[o];if(!(u in n)||n[u]!==t[u])return!1}return!0})(d.current,a)||(d.current=a);var y=(0,t.useMemo)((function(){return r&&u(h).map((function(e){return t.default.createElement(n.Provider,{key:e.id,value:{moduleName:v,extension:{extensionId:e.id,extensionSlotName:r,extensionSlotModuleName:v}}},null!=i?i:t.default.createElement(l,{state:d.current}))}))}),[u,h,r,d.current]);return t.default.createElement("div",j({ref:s,"data-extension-slot-name":r,"data-extension-slot-module-name":v,style:S({},c,{position:"relative"})},f),y)},E=p(493);function A(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function C(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?A(Object(e),!0).forEach((function(n){R(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):A(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function P(t){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function R(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function I(t){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function k(t,n){var e;if("function"!=typeof(e=n.domElement?function(){return n.domElement}:n.domElementGetter?n.domElementGetter:t.domElementGetter?t.domElementGetter:function(t){var n=t.appName||t.name;if(!n)throw Error("single-spa's dom-element-getter-helpers was not given an application name as a prop, so it can't make a unique dom element container for the react application");var e="single-spa-application:".concat(n);return function(){var t=document.getElementById(e);return t||((t=document.createElement("div")).id=e,document.body.appendChild(t)),t}}(n)))throw Error("single-spa's dom-element-getter-helpers was given an invalid domElementGetter for application or parcel '".concat(n.name,"'. Expected a function, received ").concat(I(e)));return function(){var t=e(n);if(!(t instanceof HTMLElement))throw Error("single-spa's dom-element-getter-helpers: domElementGetter returned an invalid dom element for application or parcel '".concat(n.name,"'. Expected HTMLElement, received ").concat(I(t)));return t}}var T=null;try{T=require("react").createContext()}catch(A){}var L={React:null,ReactDOM:null,rootComponent:null,loadRootComponent:null,renderType:null,errorBoundary:null,errorBoundaryClass:null,domElementGetter:null,parcelCanUpdate:!0,suppressComponentDidCatchWarning:!1,domElements:{},renderResults:{},updateResolves:{}};function U(t){if("object"!==P(t))throw new Error("single-spa-react requires a configuration object");var n=C(C({},L),t);if(!n.React)throw new Error("single-spa-react must be passed opts.React");if(!n.ReactDOM)throw new Error("single-spa-react must be passed opts.ReactDOM");if(!n.rootComponent&&!n.loadRootComponent)throw new Error("single-spa-react must be passed opts.rootComponent or opts.loadRootComponent");if(n.errorBoundary&&"function"!=typeof n.errorBoundary)throw Error("The errorBoundary opt for single-spa-react must either be omitted or be a function that returns React elements");!T&&n.React.createContext&&(T=n.React.createContext()),n.SingleSpaRoot=function(t){function n(t){n.displayName="SingleSpaRoot(".concat(t.name,")")}return n.prototype=Object.create(t.React.Component.prototype),n.prototype.componentDidMount=function(){setTimeout(this.props.mountFinished)},n.prototype.componentWillUnmount=function(){setTimeout(this.props.unmountFinished)},n.prototype.render=function(){return setTimeout(this.props.updateFinished),this.props.children},n}(n);var e={bootstrap:M.bind(null,n),mount:D.bind(null,n),unmount:z.bind(null,n)};return n.parcelCanUpdate&&(e.update=N.bind(null,n)),e}function M(t,n){return t.rootComponent?Promise.resolve():t.loadRootComponent(n).then((function(n){t.rootComponent=n}))}function D(t,n){return new Promise((function(e,r){t.suppressComponentDidCatchWarning||!function(t){if(!(t&&"string"==typeof t.version&&t.version.indexOf(".")>=0))return!1;var n=t.version.slice(0,t.version.indexOf("."));try{return Number(n)>=16}catch(t){return!1}}(t.React)||t.errorBoundary||(t.rootComponent.prototype?t.rootComponent.prototype.componentDidCatch||console.warn("single-spa-react: ".concat(n.name||n.appName||n.childAppName,"'s rootComponent should implement componentDidCatch to avoid accidentally unmounting the entire single-spa application.")):console.warn("single-spa-react: ".concat(n.name||n.appName||n.childAppName,"'s rootComponent does not implement an error boundary. If using a functional component, consider providing an opts.errorBoundary to singleSpaReact(opts).")));var o=B(t,n,(function(){e(this)})),u=k(t,n)(),i=function(t){var n=t.opts,e=t.elementToRender,r=t.domElement,o="function"==typeof n.renderType?n.renderType():n.renderType;if(["createRoot","unstable_createRoot","createBlockingRoot","unstable_createBlockingRoot"].indexOf(o)>=0){var u=n.ReactDOM[o](r);return u.render(e),u}return"hydrate"===o?n.ReactDOM.hydrate(e,r):n.ReactDOM.render(e,r),null}({elementToRender:o,domElement:u,opts:t});t.domElements[n.name]=u,t.renderResults[n.name]=i}))}function z(t,n){return new Promise((function(e){t.unmountFinished=e;var r=t.renderResults[n.name];r&&r.unmount?r.unmount():t.ReactDOM.unmountComponentAtNode(t.domElements[n.name]),delete t.domElements[n.name],delete t.renderResults[n.name]}))}function N(t,n){return new Promise((function(e){t.updateResolves[n.name]||(t.updateResolves[n.name]=[]),t.updateResolves[n.name].push(e);var r=B(t,n,null),o=t.renderResults[n.name];if(o&&o.render)o.render(r);else{var u=k(t,n)();t.ReactDOM.render(r,u)}}))}function B(t,n,e){var r=t.React.createElement(t.rootComponent,n),o=T?t.React.createElement(T.Provider,{value:n},r):r;return(t.errorBoundary||n.errorBoundary||t.errorBoundaryClass||n.errorBoundaryClass)&&(t.errorBoundaryClass=t.errorBoundaryClass||n.errorBoundaryClass||function(t,n){function e(n){t.React.Component.apply(this,arguments),this.state={caughtError:null,caughtErrorInfo:null},e.displayName="SingleSpaReactErrorBoundary(".concat(n.name,")")}return e.prototype=Object.create(t.React.Component.prototype),e.prototype.render=function(){return this.state.caughtError?(t.errorBoundary||n.errorBoundary)(this.state.caughtError,this.state.caughtErrorInfo,this.props):this.props.children},e.prototype.componentDidCatch=function(t,n){this.setState({caughtError:t,caughtErrorInfo:n})},e}(t,n),o=t.React.createElement(t.errorBoundaryClass,n,o)),t.React.createElement(t.SingleSpaRoot,C(C({},n),{},{mountFinished:e,updateFinished:function(){t.updateResolves[n.name]&&(t.updateResolves[n.name].forEach((function(t){return t()})),delete t.updateResolves[n.name])},unmountFinished:function(){setTimeout(t.unmountFinished)}}),o)}var $=p(64),F=p(281);function W(){return W=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},W.apply(this,arguments)}function V(t){return V=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},V(t)}function q(t,n){return!n||"object"!==Z(n)&&"function"!=typeof n?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):n}function G(t,n){return G=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t},G(t,n)}var Z=function(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t};var H=$.default.default||$.default,K={strictMode:!0,throwErrorsToConsole:!0,disableTranslations:!1},J=function(n){(0,t.useEffect)((function(){return H.on("languageChanged",n.forceUpdate),function(){return H.off("languageChanged",n.forceUpdate)}}),[n.forceUpdate]);var e=(0,t.useRef)(null);if(e.current)throw e.current;if(!H.hasLoadedNamespace(n.ns)){var r=setTimeout((function(){console.warn("openmrsComponentDecorator: the React suspense promise for i18next.loadNamespaces(['".concat(n.ns,"']) did not resolve nor reject after three seconds. This could mean you have multiple versions of i18next and haven't made i18next a webpack external in all projects."))}),3e3);throw H.loadNamespaces([n.ns]).then((function(){return clearTimeout(r)})).catch((function(t){clearTimeout(r),e.current=t}))}return t.default.createElement(t.default.Fragment,null,n.children)};function Y(e){if("object"!=typeof e||"string"!=typeof e.featureName||"string"!=typeof e.moduleName)throw new Error("Invalid options");var r=Object.assign({},K,e);return function(e){var o;return(o=function(o){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&G(t,n)}(c,o);var u,i,a=(u=c,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=V(u);if(i){var e=V(this).constructor;t=Reflect.construct(n,arguments,e)}else t=n.apply(this,arguments);return q(this,t)});function c(t){var n;return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,c),(n=a.call(this,t)).state={caughtError:null,caughtErrorInfo:null,config:{moduleName:r.moduleName,extension:t._extensionContext}},n}var f=c.prototype;return f.componentDidCatch=function(t,n){n&&n.componentStack&&(t.extra=Object.assign(t.extra||{},{componentStack:n.componentStack})),r.throwErrorsToConsole&&setTimeout((function(){throw t})),this.setState({caughtError:t,caughtErrorInfo:n})},f.render=function(){if(this.state.caughtError)return t.default.createElement("div",null,"An error has occurred. Please try reloading the page.");var o=this,u=t.default.createElement(n.Provider,{value:this.state.config},t.default.createElement(t.default.Suspense,{fallback:null},r.disableTranslations?t.default.createElement(e,W({},this.props)):t.default.createElement(J,{ns:r.moduleName,forceUpdate:function(){return o.forceUpdate()}},t.default.createElement(F.I18nextProvider,{i18n:H,defaultNS:r.moduleName},t.default.createElement(e,W({},this.props))))));return r.strictMode||!t.default.StrictMode?u:t.default.createElement(t.default.StrictMode,null,u)},c}(t.default.Component)).displayName="OpenmrsReactComponent(".concat(r.featureName,")"),o}}function Q(n,e){return U({React:t.default,ReactDOM:E.default,rootComponent:Y(e)(n)})}function X(t,n){return function(){return t().then((function(t){return Q(t.default,n)}))}}function tt(t,n){return function(){return Promise.resolve(Q(t,n))}}var nt=X;function et(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function rt(n){var e=function(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,o,u=[],i=!0,a=!1;try{for(e=e.call(t);!(i=(r=e.next()).done)&&(u.push(r.value),!n||u.length!==n);i=!0);}catch(t){a=!0,o=t}finally{try{i||null==e.return||e.return()}finally{if(a)throw o}}return u}}(t,n)||function(t,n){if(t){if("string"==typeof t)return et(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(e):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?et(t,n):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,t.useState)([]),2),r=e[0],o=e[1];return(0,t.useEffect)((function(){return(0,c.getExtensionStore)().subscribe((function(t){var e,u,i=null!==(u=null===(e=t.slots[n])||void 0===e?void 0:e.assignedExtensions.map((function(t){return t.id})))&&void 0!==u?u:[];(0,y.isEqual)(i,r)||o(i)}))}),[]),r}function ot(n){(0,t.useEffect)((function(){if(n){var t=window.getComputedStyle(document.body).overflow;return document.body.style.overflow="hidden",function(){document.body.style.overflow=t}}}),[n])}const ut=function(t,n){return t===n||t!=t&&n!=n},it=function(t,n){for(var e=t.length;e--;)if(ut(t[e][0],n))return e;return-1};var at=Array.prototype.splice;function ct(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}ct.prototype.clear=function(){this.__data__=[],this.size=0},ct.prototype.delete=function(t){var n=this.__data__,e=it(n,t);return!(e<0||(e==n.length-1?n.pop():at.call(n,e,1),--this.size,0))},ct.prototype.get=function(t){var n=this.__data__,e=it(n,t);return e<0?void 0:n[e][1]},ct.prototype.has=function(t){return it(this.__data__,t)>-1},ct.prototype.set=function(t,n){var e=this.__data__,r=it(e,t);return r<0?(++this.size,e.push([t,n])):e[r][1]=n,this};const ft=ct,lt="object"==typeof global&&global&&global.Object===Object&&global;var st="object"==typeof self&&self&&self.Object===Object&&self;const pt=lt||st||Function("return this")(),ht=pt.Symbol;var vt=Object.prototype,dt=vt.hasOwnProperty,yt=vt.toString,gt=ht?ht.toStringTag:void 0;var mt=Object.prototype.toString;var bt=ht?ht.toStringTag:void 0;const _t=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":bt&&bt in Object(t)?function(t){var n=dt.call(t,gt),e=t[gt];try{t[gt]=void 0;var r=!0}catch(t){}var o=yt.call(t);return r&&(n?t[gt]=e:delete t[gt]),o}(t):function(t){return mt.call(t)}(t)},wt=function(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)},jt=function(t){if(!wt(t))return!1;var n=_t(t);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n},St=pt["__core-js_shared__"];var xt,Ot=(xt=/[^.]+$/.exec(St&&St.keys&&St.keys.IE_PROTO||""))?"Symbol(src)_1."+xt:"";var Et=Function.prototype.toString;const At=function(t){if(null!=t){try{return Et.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Ct=/^\[object .+?Constructor\]$/,Pt=Function.prototype,Rt=Object.prototype,It=Pt.toString,kt=Rt.hasOwnProperty,Tt=RegExp("^"+It.call(kt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Lt=function(t){return!(!wt(t)||(n=t,Ot&&Ot in n))&&(jt(t)?Tt:Ct).test(At(t));var n},Ut=function(t,n){var e=function(t,n){return null==t?void 0:t[n]}(t,n);return Lt(e)?e:void 0},Mt=Ut(pt,"Map"),Dt=Ut(Object,"create");var zt=Object.prototype.hasOwnProperty;var Nt=Object.prototype.hasOwnProperty;function Bt(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}Bt.prototype.clear=function(){this.__data__=Dt?Dt(null):{},this.size=0},Bt.prototype.delete=function(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n},Bt.prototype.get=function(t){var n=this.__data__;if(Dt){var e=n[t];return"__lodash_hash_undefined__"===e?void 0:e}return zt.call(n,t)?n[t]:void 0},Bt.prototype.has=function(t){var n=this.__data__;return Dt?void 0!==n[t]:Nt.call(n,t)},Bt.prototype.set=function(t,n){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=Dt&&void 0===n?"__lodash_hash_undefined__":n,this};const $t=Bt,Ft=function(t,n){var e,r,o=t.__data__;return("string"==(r=typeof(e=n))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==e:null===e)?o["string"==typeof n?"string":"hash"]:o.map};function Wt(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}Wt.prototype.clear=function(){this.size=0,this.__data__={hash:new $t,map:new(Mt||ft),string:new $t}},Wt.prototype.delete=function(t){var n=Ft(this,t).delete(t);return this.size-=n?1:0,n},Wt.prototype.get=function(t){return Ft(this,t).get(t)},Wt.prototype.has=function(t){return Ft(this,t).has(t)},Wt.prototype.set=function(t,n){var e=Ft(this,t),r=e.size;return e.set(t,n),this.size+=e.size==r?0:1,this};const Vt=Wt;function qt(t){var n=this.__data__=new ft(t);this.size=n.size}qt.prototype.clear=function(){this.__data__=new ft,this.size=0},qt.prototype.delete=function(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e},qt.prototype.get=function(t){return this.__data__.get(t)},qt.prototype.has=function(t){return this.__data__.has(t)},qt.prototype.set=function(t,n){var e=this.__data__;if(e instanceof ft){var r=e.__data__;if(!Mt||r.length<199)return r.push([t,n]),this.size=++e.size,this;e=this.__data__=new Vt(r)}return e.set(t,n),this.size=e.size,this};const Gt=qt;function Zt(t){var n=-1,e=null==t?0:t.length;for(this.__data__=new Vt;++n<e;)this.add(t[n])}Zt.prototype.add=Zt.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Zt.prototype.has=function(t){return this.__data__.has(t)};const Ht=Zt,Kt=function(t,n){for(var e=-1,r=null==t?0:t.length;++e<r;)if(n(t[e],e,t))return!0;return!1},Jt=function(t,n){return t.has(n)},Yt=function(t,n,e,r,o,u){var i=1&e,a=t.length,c=n.length;if(a!=c&&!(i&&c>a))return!1;var f=u.get(t),l=u.get(n);if(f&&l)return f==n&&l==t;var s=-1,p=!0,h=2&e?new Ht:void 0;for(u.set(t,n),u.set(n,t);++s<a;){var v=t[s],d=n[s];if(r)var y=i?r(d,v,s,n,t,u):r(v,d,s,t,n,u);if(void 0!==y){if(y)continue;p=!1;break}if(h){if(!Kt(n,(function(t,n){if(!Jt(h,n)&&(v===t||o(v,t,e,r,u)))return h.push(n)}))){p=!1;break}}else if(v!==d&&!o(v,d,e,r,u)){p=!1;break}}return u.delete(t),u.delete(n),p},Qt=pt.Uint8Array,Xt=function(t){var n=-1,e=Array(t.size);return t.forEach((function(t,r){e[++n]=[r,t]})),e},tn=function(t){var n=-1,e=Array(t.size);return t.forEach((function(t){e[++n]=t})),e};var nn=ht?ht.prototype:void 0,en=nn?nn.valueOf:void 0;const rn=Array.isArray;var on=Object.prototype.propertyIsEnumerable,un=Object.getOwnPropertySymbols;const an=un?function(t){return null==t?[]:(t=Object(t),function(t,n){for(var e=-1,r=null==t?0:t.length,o=0,u=[];++e<r;){var i=t[e];n(i,e,t)&&(u[o++]=i)}return u}(un(t),(function(n){return on.call(t,n)})))}:function(){return[]},cn=function(t){return null!=t&&"object"==typeof t},fn=function(t){return cn(t)&&"[object Arguments]"==_t(t)};var ln=Object.prototype,sn=ln.hasOwnProperty,pn=ln.propertyIsEnumerable,hn=fn(function(){return arguments}())?fn:function(t){return cn(t)&&sn.call(t,"callee")&&!pn.call(t,"callee")};const vn=hn;var dn="object"==typeof exports&&exports&&!exports.nodeType&&exports,yn=dn&&"object"==typeof module&&module&&!module.nodeType&&module,gn=yn&&yn.exports===dn?pt.Buffer:void 0;const mn=(gn?gn.isBuffer:void 0)||function(){return!1};var bn=/^(?:0|[1-9]\d*)$/;const _n=function(t,n){var e=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==e||"symbol"!=e&&bn.test(t))&&t>-1&&t%1==0&&t<n},wn=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var jn={};jn["[object Float32Array]"]=jn["[object Float64Array]"]=jn["[object Int8Array]"]=jn["[object Int16Array]"]=jn["[object Int32Array]"]=jn["[object Uint8Array]"]=jn["[object Uint8ClampedArray]"]=jn["[object Uint16Array]"]=jn["[object Uint32Array]"]=!0,jn["[object Arguments]"]=jn["[object Array]"]=jn["[object ArrayBuffer]"]=jn["[object Boolean]"]=jn["[object DataView]"]=jn["[object Date]"]=jn["[object Error]"]=jn["[object Function]"]=jn["[object Map]"]=jn["[object Number]"]=jn["[object Object]"]=jn["[object RegExp]"]=jn["[object Set]"]=jn["[object String]"]=jn["[object WeakMap]"]=!1;var Sn="object"==typeof exports&&exports&&!exports.nodeType&&exports,xn=Sn&&"object"==typeof module&&module&&!module.nodeType&&module,On=xn&&xn.exports===Sn&&lt.process,En=function(){try{return xn&&xn.require&&xn.require("util").types||On&&On.binding&&On.binding("util")}catch(t){}}(),An=En&&En.isTypedArray;const Cn=An?(Pn=An,function(t){return Pn(t)}):function(t){return cn(t)&&wn(t.length)&&!!jn[_t(t)]};var Pn,Rn=Object.prototype.hasOwnProperty;const In=function(t,n){var e=rn(t),r=!e&&vn(t),o=!e&&!r&&mn(t),u=!e&&!r&&!o&&Cn(t),i=e||r||o||u,a=i?function(t,n){for(var e=-1,r=Array(t);++e<t;)r[e]=n(e);return r}(t.length,String):[],c=a.length;for(var f in t)!n&&!Rn.call(t,f)||i&&("length"==f||o&&("offset"==f||"parent"==f)||u&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||_n(f,c))||a.push(f);return a};var kn=Object.prototype;const Tn=function(t,n){return function(e){return t(n(e))}}(Object.keys,Object);var Ln=Object.prototype.hasOwnProperty;const Un=function(t){if(e=(n=t)&&n.constructor,n!==("function"==typeof e&&e.prototype||kn))return Tn(t);var n,e,r=[];for(var o in Object(t))Ln.call(t,o)&&"constructor"!=o&&r.push(o);return r},Mn=function(t){return null!=(n=t)&&wn(n.length)&&!jt(n)?In(t):Un(t);var n},Dn=function(t){return function(t,n,e){var r=n(t);return rn(t)?r:function(t,n){for(var e=-1,r=n.length,o=t.length;++e<r;)t[o+e]=n[e];return t}(r,e(t))}(t,Mn,an)};var zn=Object.prototype.hasOwnProperty;const Nn=Ut(pt,"DataView"),Bn=Ut(pt,"Promise"),$n=Ut(pt,"Set"),Fn=Ut(pt,"WeakMap");var Wn="[object Map]",Vn="[object Promise]",qn="[object Set]",Gn="[object WeakMap]",Zn="[object DataView]",Hn=At(Nn),Kn=At(Mt),Jn=At(Bn),Yn=At($n),Qn=At(Fn),Xn=_t;(Nn&&Xn(new Nn(new ArrayBuffer(1)))!=Zn||Mt&&Xn(new Mt)!=Wn||Bn&&Xn(Bn.resolve())!=Vn||$n&&Xn(new $n)!=qn||Fn&&Xn(new Fn)!=Gn)&&(Xn=function(t){var n=_t(t),e="[object Object]"==n?t.constructor:void 0,r=e?At(e):"";if(r)switch(r){case Hn:return Zn;case Kn:return Wn;case Jn:return Vn;case Yn:return qn;case Qn:return Gn}return n});const te=Xn;var ne="[object Arguments]",ee="[object Array]",re="[object Object]",oe=Object.prototype.hasOwnProperty;const ue=function(t,n,e,r,o,u){var i=rn(t),a=rn(n),c=i?ee:te(t),f=a?ee:te(n),l=(c=c==ne?re:c)==re,s=(f=f==ne?re:f)==re,p=c==f;if(p&&mn(t)){if(!mn(n))return!1;i=!0,l=!1}if(p&&!l)return u||(u=new Gt),i||Cn(t)?Yt(t,n,e,r,o,u):function(t,n,e,r,o,u,i){switch(e){case"[object DataView]":if(t.byteLength!=n.byteLength||t.byteOffset!=n.byteOffset)return!1;t=t.buffer,n=n.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=n.byteLength||!u(new Qt(t),new Qt(n)));case"[object Boolean]":case"[object Date]":case"[object Number]":return ut(+t,+n);case"[object Error]":return t.name==n.name&&t.message==n.message;case"[object RegExp]":case"[object String]":return t==n+"";case"[object Map]":var a=Xt;case"[object Set]":var c=1&r;if(a||(a=tn),t.size!=n.size&&!c)return!1;var f=i.get(t);if(f)return f==n;r|=2,i.set(t,n);var l=Yt(a(t),a(n),r,o,u,i);return i.delete(t),l;case"[object Symbol]":if(en)return en.call(t)==en.call(n)}return!1}(t,n,c,e,r,o,u);if(!(1&e)){var h=l&&oe.call(t,"__wrapped__"),v=s&&oe.call(n,"__wrapped__");if(h||v){var d=h?t.value():t,y=v?n.value():n;return u||(u=new Gt),o(d,y,e,r,u)}}return!!p&&(u||(u=new Gt),function(t,n,e,r,o,u){var i=1&e,a=Dn(t),c=a.length;if(c!=Dn(n).length&&!i)return!1;for(var f=c;f--;){var l=a[f];if(!(i?l in n:zn.call(n,l)))return!1}var s=u.get(t),p=u.get(n);if(s&&p)return s==n&&p==t;var h=!0;u.set(t,n),u.set(n,t);for(var v=i;++f<c;){var d=t[l=a[f]],y=n[l];if(r)var g=i?r(y,d,l,n,t,u):r(d,y,l,t,n,u);if(!(void 0===g?d===y||o(d,y,e,r,u):g)){h=!1;break}v||(v="constructor"==l)}if(h&&!v){var m=t.constructor,b=n.constructor;m==b||!("constructor"in t)||!("constructor"in n)||"function"==typeof m&&m instanceof m&&"function"==typeof b&&b instanceof b||(h=!1)}return u.delete(t),u.delete(n),h}(t,n,e,r,o,u))},ie=function t(n,e,r,o,u){return n===e||(null==n||null==e||!cn(n)&&!cn(e)?n!=n&&e!=e:ue(n,e,r,o,t,u))},ae=function(t,n){return ie(t,n)};function ce(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function fe(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function le(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,o,u=[],i=!0,a=!1;try{for(e=e.call(t);!(i=(r=e.next()).done)&&(u.push(r.value),!n||u.length!==n);i=!0);}catch(t){a=!0,o=t}finally{try{i||null==e.return||e.return()}finally{if(a)throw o}}return u}}(t,n)||function(t,n){if(t){if("string"==typeof t)return ce(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(e):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?ce(t,n):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var se={};function pe(n){var r=(0,t.useMemo)(e.getExtensionsConfigStore,[]),o=function(n,r){var o=le((0,t.useState)(function(t,n){return n?function(){var r=t.getState(),o=(0,e.getExtensionConfigFromStore)(r,n.extensionSlotName,n.extensionId);if(o.loaded&&o.config)return o.config}:null}(n,r)),2),u=o[0],i=o[1];return(0,t.useEffect)((function(){if(r)return n.subscribe((function(t){var n=(0,e.getExtensionConfigFromStore)(t,r.extensionSlotName,r.extensionId);n.loaded&&n.config&&!ae(n.config,u)&&i(n.config)}))}),[n,r,u]),u}(r,n);if(!o&&n){var u="".concat(n.extensionSlotName,"-").concat(n.extensionId);throw!se[u]&&r&&(se[u]=function(t,n){return new Promise((function(r){var o=t.subscribe((function(t){var u=(0,e.getExtensionConfigFromStore)(t,n.extensionSlotName,n.extensionId);u.loaded&&u.config&&(r(u.config),o())}))}))}(r,n)),se[u]}return o||{}}function he(){var r=(0,t.useContext)(n),o=r.moduleName,u=r.extension;if(!o&&!u)throw Error('No ComponentContext has been provided. This should come from "openmrsComponentDecorator".\nUsually this is already applied when using "getAsyncLifecycle" or "getSyncLifecycle".');var i=function(n){var r=(0,t.useMemo)((function(){return(0,e.getConfigStore)(n)}),[n]),o=n,u=function(n){var e=le((0,t.useState)(function(t){return function(){var n=t.getState();return n.loaded&&n.config?n.config:null}}(n)),2),r=e[0],o=e[1];return(0,t.useEffect)((function(){return null==n?void 0:n.subscribe((function(t){t.loaded&&t.config&&o(t.config)}))}),[n]),r}(r);if(!u)throw se[o]||(se[o]=function(t){return new Promise((function(n){var e=t.subscribe((function(t){t.loaded&&t.config&&(n(t.config),e())}))}))}(r)),se[o];return u}(o),a=pe(u),c=(0,t.useMemo)((function(){return function(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{},r=Object.keys(e);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(e).filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})))),r.forEach((function(n){fe(t,n,e[n])}))}return t}({},i,a)}),[i,a]);return c}var ve,de=p(766);function ye(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function ge(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function me(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{},r=Object.keys(e);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(e).filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})))),r.forEach((function(n){ge(t,n,e[n])}))}return t}!function(t){t.loadPatient="loadPatient",t.newPatient="newPatient",t.loadError="patientLoadError"}(ve||(ve={}));var be,_e={patientUuid:null,patient:null,isPendingUuid:!0,isLoadingPatient:!1,err:null};function we(){var t=/\/patient\/([a-zA-Z0-9\-]+)\/?/.exec(location.pathname);return t&&t[1]}function je(t,n){switch(n.type){case ve.loadPatient:return me({},t,{patientUuid:n.patientUuid,patient:null,isPendingUuid:!1,isLoadingPatient:!0,err:null});case ve.newPatient:return me({},t,{patient:n.patient,isPendingUuid:!1,isLoadingPatient:!1,err:null});case ve.loadError:return me({},t,{patient:null,isPendingUuid:!1,isLoadingPatient:!1,err:n.err});default:return t}}function Se(n){var e=function(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,o,u=[],i=!0,a=!1;try{for(e=e.call(t);!(i=(r=e.next()).done)&&(u.push(r.value),!n||u.length!==n);i=!0);}catch(t){a=!0,o=t}finally{try{i||null==e.return||e.return()}finally{if(a)throw o}}return u}}(t,n)||function(t,n){if(t){if("string"==typeof t)return ye(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(e):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?ye(t,n):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,t.useReducer)(je,me({},_e,{patientUuid:null!=n?n:null,isPendingUuid:!n,isLoadingPatient:!!n})),2),r=e[0],o=e[1];return(0,t.useEffect)((function(){if(r.isPendingUuid){var t=we();o(t?{type:ve.loadPatient,patientUuid:t}:{type:ve.newPatient,patient:null})}var n=!0;return r.isLoadingPatient&&r.patientUuid&&(0,de.fetchCurrentPatient)(r.patientUuid).then((function(t){return n&&o({patient:t.data,type:ve.newPatient})}),(function(t){return n&&o({err:t,type:ve.loadError})})),function(){n=!1}}),[r.isPendingUuid,r.isLoadingPatient,r.patientUuid]),(0,t.useEffect)((function(){var t=function(t){var n=we();n!=r.patientUuid&&o({type:ve.loadPatient,patientUuid:n})};return window.addEventListener("single-spa:routing-event",t),function(){return window.removeEventListener("single-spa:routing-event",t)}}),[r.patientUuid]),{isLoading:r.isPendingUuid||r.isLoadingPatient,patient:r.patient,patientUuid:null!=n?n:r.patientUuid,error:r.err}}function xe(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function Oe(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function Ee(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{},r=Object.keys(e);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(e).filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})))),r.forEach((function(n){Oe(t,n,e[n])}))}return t}function Ae(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,o,u=[],i=!0,a=!1;try{for(e=e.call(t);!(i=(r=e.next()).done)&&(u.push(r.value),!n||u.length!==n);i=!0);}catch(t){a=!0,o=t}finally{try{i||null==e.return||e.return()}finally{if(a)throw o}}return u}}(t,n)||function(t,n){if(t){if("string"==typeof t)return xe(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(e):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?xe(t,n):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}!function(t){t.loadPatient="loadPatient",t.newPatient="newPatient",t.loadError="patientLloadErroroadError"}(be||(be={}));var Ce={patient:null,isLoadingPatient:!0,err:null};function Pe(){var t=/\/patient\/([a-zA-Z0-9\-]+)\/?/.exec(location.pathname);return t&&t[1]}function Re(t,n){switch(n.type){case be.loadPatient:return Ee({},t,{patient:null,isLoadingPatient:!0,err:null});case be.newPatient:return Ee({},t,{patient:n.patient,isLoadingPatient:!1,err:null});case be.loadError:return Ee({},t,{patient:null,isLoadingPatient:!1,err:n.err});default:return t}}function Ie(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Pe(),e=Ae((0,t.useReducer)(Re,Ce),2),r=e[0],o=e[1];return(0,t.useEffect)((function(){var t=!0;return n?((0,de.fetchCurrentPatient)(n).then((function(n){return t&&o({patient:n.data,type:be.newPatient})}),(function(n){return t&&o({err:n,type:be.loadError})})),o({type:be.loadPatient})):o({type:be.newPatient,patient:null}),function(){t=!1}}),[n]),[r.isLoadingPatient,r.patient,n,r.err]}var ke=a((0,c.getExtensionInternalStore)());function Te(n){var e=b(n);return(0,t.useMemo)((function(){return Object.fromEntries(e.map((function(t){return[t.name,t.meta]})))}),[e])}var Le=a((0,c.getExtensionStore)());function Ue(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function Me(){var n=function(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,o,u=[],i=!0,a=!1;try{for(e=e.call(t);!(i=(r=e.next()).done)&&(u.push(r.value),!n||u.length!==n);i=!0);}catch(t){a=!0,o=t}finally{try{i||null==e.return||e.return()}finally{if(a)throw o}}return u}}(t,n)||function(t,n){if(t){if("string"==typeof t)return Ue(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(e):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Ue(t,n):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,t.useState)(0),2)[1];return(0,t.useCallback)((function(){n((function(t){return t+1}))}),[])}function De(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function ze(){var t="tablet";return document.body.classList.forEach((function(n){switch(n){case"omrs-breakpoint-lt-tablet":t="phone";break;case"omrs-breakpoint-gt-tablet":t="desktop"}})),t}function Ne(){var n=function(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,o,u=[],i=!0,a=!1;try{for(e=e.call(t);!(i=(r=e.next()).done)&&(u.push(r.value),!n||u.length!==n);i=!0);}catch(t){a=!0,o=t}finally{try{i||null==e.return||e.return()}finally{if(a)throw o}}return u}}(t,n)||function(t,n){if(t){if("string"==typeof t)return De(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(e):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?De(t,n):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,t.useState)(ze),2),e=n[0],r=n[1];return(0,t.useEffect)((function(){var t=function(){r(ze())};return window.addEventListener("resize",t),function(){return window.removeEventListener("resize",t)}}),[]),e}function Be(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function $e(){var n=function(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,o,u=[],i=!0,a=!1;try{for(e=e.call(t);!(i=(r=e.next()).done)&&(u.push(r.value),!n||u.length!==n);i=!0);}catch(t){a=!0,o=t}finally{try{i||null==e.return||e.return()}finally{if(a)throw o}}return u}}(t,n)||function(t,n){if(t){if("string"==typeof t)return Be(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(e):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Be(t,n):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,t.useState)([]),2),e=n[0],r=n[1];return(0,t.useEffect)((function(){var t=(0,de.getLocations)().subscribe((function(t){r(t)}),(function(t){console.error(t)}));return function(){return t.unsubscribe()}}),[]),e}function Fe(n){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=(0,t.useRef)(null);return(0,t.useEffect)((function(){if(e){var t=function(t){var e;(null==r||null===(e=r.current)||void 0===e?void 0:e.contains(t.target))||n(t)};return window.addEventListener("click",t),function(){return window.removeEventListener("click",t)}}}),[n,e]),r}function We(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}var Ve=function(n){var e=n.privilege,r=n.children,o=function(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,o,u=[],i=!0,a=!1;try{for(e=e.call(t);!(i=(r=e.next()).done)&&(u.push(r.value),!n||u.length!==n);i=!0);}catch(t){a=!0,o=t}finally{try{i||null==e.return||e.return()}finally{if(a)throw o}}return u}}(t,n)||function(t,n){if(t){if("string"==typeof t)return We(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(e):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?We(t,n):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,t.useState)(null),2),u=o[0],i=o[1];return(0,t.useEffect)((function(){var t=(0,de.getCurrentUser)({includeAuthStatus:!1}).subscribe(i);return function(){return t.unsubscribe()}}),[]),u&&(0,de.userHasAccess)(e,u)?t.default.createElement(t.default.Fragment,null,r):null};function qe(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function Ge(){var n=function(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,o,u=[],i=!0,a=!1;try{for(e=e.call(t);!(i=(r=e.next()).done)&&(u.push(r.value),!n||u.length!==n);i=!0);}catch(t){a=!0,o=t}finally{try{i||null==e.return||e.return()}finally{if(a)throw o}}return u}}(t,n)||function(t,n){if(t){if("string"==typeof t)return qe(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(e):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?qe(t,n):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,t.useState)(null),2),e=n[0],r=n[1];return(0,t.useEffect)((function(){var t=(0,de.getCurrentUser)({includeAuthStatus:!0}).subscribe((function(t){return r(t)}));return function(){return t.unsubscribe()}}),[r]),e}var Ze=Ge,He=p(385);function Ke(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function Je(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function Ye(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{},r=Object.keys(e);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(e).filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})))),r.forEach((function(n){Je(t,n,e[n])}))}return t}function Qe(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,o,u=[],i=!0,a=!1;try{for(e=e.call(t);!(i=(r=e.next()).done)&&(u.push(r.value),!n||u.length!==n);i=!0);}catch(t){a=!0,o=t}finally{try{i||null==e.return||e.return()}finally{if(a)throw o}}return u}}(t,n)||function(t,n){if(t){if("string"==typeof t)return Ke(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(e):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Ke(t,n):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xe(t,n){"function"==typeof n&&(n=n(t));var e={};for(var r in n)e[r]=t.action(n[r]);return e}var tr=function(t){return t};function nr(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tr,r=arguments.length>2?arguments[2]:void 0,o=Qe((0,t.useState)((function(){return e(n.getState())})),2),u=o[0],i=o[1];(0,t.useEffect)((function(){return(0,He.subscribeTo)(n,e,i)}),[n,e]);var a={};return r&&(a=(0,t.useMemo)((function(){return Xe(n,r)}),[n,r])),Ye({},u,a)}function er(t,n){return nr(t,tr,n)}function rr(t,n,e,r){return new(e||(e=Promise))((function(o,u){function i(t){try{c(r.next(t))}catch(t){u(t)}}function a(t){try{c(r.throw(t))}catch(t){u(t)}}function c(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(i,a)}c((r=r.apply(t,n||[])).next())}))}function or(t,n){var e,r,o,u,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return u={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function a(u){return function(a){return function(u){if(e)throw new TypeError("Generator is already executing.");for(;i;)try{if(e=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=n.call(t,i)}catch(t){u=[6,t],r=0}finally{e=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,a])}}}var ur,ir=function(){},ar=ir(),cr=Object,fr=function(t){return t===ar},lr=function(t){return"function"==typeof t},sr=function(t,n){return cr.assign({},t,n)},pr="undefined",hr=function(){return typeof window!=pr},vr=new WeakMap,dr=0,yr=function(t){var n,e,r=typeof t,o=t&&t.constructor,u=o==Date;if(cr(t)!==t||u||o==RegExp)n=u?t.toJSON():"symbol"==r?t.toString():"string"==r?JSON.stringify(t):""+t;else{if(n=vr.get(t))return n;if(n=++dr+"~",vr.set(t,n),o==Array){for(n="@",e=0;e<t.length;e++)n+=yr(t[e])+",";vr.set(t,n)}if(o==cr){n="#";for(var i=cr.keys(t).sort();!fr(e=i.pop());)fr(t[e])||(n+=e+":"+yr(t[e])+",");vr.set(t,n)}}return n},gr=!0,mr=hr(),br=typeof document!=pr,_r=mr&&window.addEventListener?window.addEventListener.bind(window):ir,wr=br?document.addEventListener.bind(document):ir,jr=mr&&window.removeEventListener?window.removeEventListener.bind(window):ir,Sr=br?document.removeEventListener.bind(document):ir,xr={isOnline:function(){return gr},isVisible:function(){var t=br&&document.visibilityState;return fr(t)||"hidden"!==t}},Or={initFocus:function(t){return wr("visibilitychange",t),_r("focus",t),function(){Sr("visibilitychange",t),jr("focus",t)}},initReconnect:function(t){var n=function(){gr=!0,t()},e=function(){gr=!1};return _r("online",n),_r("offline",e),function(){jr("online",n),jr("offline",e)}}},Er=!hr()||"Deno"in window,Ar=Er?t.useEffect:t.useLayoutEffect,Cr="undefined"!=typeof navigator&&navigator.connection,Pr=!Er&&Cr&&(["slow-2g","2g"].includes(Cr.effectiveType)||Cr.saveData),Rr=function(t){if(lr(t))try{t=t()}catch(n){t=""}var n=[].concat(t);return[t="string"==typeof t?t:(Array.isArray(t)?t.length:t)?yr(t):"",n,t?"$swr$"+t:""]},Ir=new WeakMap,kr=function(t,n,e,r,o,u,i){void 0===i&&(i=!0);var a=Ir.get(t),c=a[0],f=a[1],l=a[3],s=c[n],p=f[n];if(i&&p)for(var h=0;h<p.length;++h)p[h](e,r,o);return u&&(delete l[n],s&&s[0])?s[0](2).then((function(){return t.get(n)})):t.get(n)},Tr=0,Lr=function(){return++Tr},Ur=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return rr(void 0,void 0,void 0,(function(){var n,e,r,o,u,i,a,c,f,l,s,p,h,v,d,y,g,m,b,_;return or(this,(function(w){switch(w.label){case 0:if(n=t[0],e=t[1],r=t[2],o=t[3],i=!!fr((u="boolean"==typeof o?{revalidate:o}:o||{}).populateCache)||u.populateCache,a=!1!==u.revalidate,c=!1!==u.rollbackOnError,f=u.optimisticData,l=Rr(e),s=l[0],p=l[2],!s)return[2];if(h=Ir.get(n),v=h[2],t.length<3)return[2,kr(n,s,n.get(s),ar,ar,a,!0)];if(d=r,g=Lr(),v[s]=[g,0],m=!fr(f),b=n.get(s),m&&(n.set(s,f),kr(n,s,f)),lr(d))try{d=d(n.get(s))}catch(t){y=t}return d&&lr(d.then)?[4,d.catch((function(t){y=t}))]:[3,2];case 1:if(d=w.sent(),g!==v[s][0]){if(y)throw y;return[2,d]}y&&m&&c&&(i=!0,d=b,n.set(s,b)),w.label=2;case 2:return i&&(y||(lr(i)&&(d=i(d,b)),n.set(s,d)),n.set(p,sr(n.get(p),{error:y}))),v[s][1]=Lr(),[4,kr(n,s,d,y,ar,a,!!i)];case 3:if(_=w.sent(),y)throw y;return[2,i?_:d]}}))}))},Mr=function(t,n){for(var e in t)t[e][0]&&t[e][0](n)},Dr=function(t,n){if(!Ir.has(t)){var e=sr(Or,n),r={},o=Ur.bind(ar,t),u=ir;if(Ir.set(t,[r,{},{},{},o]),!Er){var i=e.initFocus(setTimeout.bind(ar,Mr.bind(ar,r,0))),a=e.initReconnect(setTimeout.bind(ar,Mr.bind(ar,r,1)));u=function(){i&&i(),a&&a(),Ir.delete(t)}}return[t,o,u]}return[t,Ir.get(t)[4]]},zr=Dr(new Map),Nr=zr[0],Br=zr[1],$r=sr({onLoadingSlow:ir,onSuccess:ir,onError:ir,onErrorRetry:function(t,n,e,r,o){var u=e.errorRetryCount,i=o.retryCount,a=~~((Math.random()+.5)*(1<<(i<8?i:8)))*e.errorRetryInterval;!fr(u)&&i>u||setTimeout(r,a,o)},onDiscarded:ir,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Pr?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:Pr?5e3:3e3,compare:function(t,n){return yr(t)==yr(n)},isPaused:function(){return!1},cache:Nr,mutate:Br,fallback:{}},xr),Fr=function(t,n){var e=sr(t,n);if(n){var r=t.use,o=t.fallback,u=n.use,i=n.fallback;r&&u&&(e.use=r.concat(u)),o&&i&&(e.fallback=sr(o,i))}return e},Wr=(0,t.createContext)({}),Vr=function(t){return lr(t[1])?[t[0],t[1],t[2]||{}]:[t[0],null,(null===t[1]?t[2]:t[1])||{}]},qr=function(){return sr($r,(0,t.useContext)(Wr))},Gr=function(t,n,e){var r=n[t]||(n[t]=[]);return r.push(e),function(){var t=r.indexOf(e);t>=0&&(r[t]=r[r.length-1],r.pop())}},Zr={dedupe:!0},Hr=(cr.defineProperty((function(n){var e=n.value,r=Fr((0,t.useContext)(Wr),e),o=e&&e.provider,u=(0,t.useState)((function(){return o?Dr(o(r.cache||Nr),e):ar}))[0];return u&&(r.cache=u[0],r.mutate=u[1]),Ar((function(){return u?u[2]:ar}),[]),(0,t.createElement)(Wr.Provider,sr(n,{value:r}))}),"default",{value:$r}),ur=function(n,e,r){var o=r.cache,u=r.compare,i=r.fallbackData,a=r.suspense,c=r.revalidateOnMount,f=r.refreshInterval,l=r.refreshWhenHidden,s=r.refreshWhenOffline,p=Ir.get(o),h=p[0],v=p[1],d=p[2],y=p[3],g=Rr(n),m=g[0],b=g[1],_=g[2],w=(0,t.useRef)(!1),j=(0,t.useRef)(!1),S=(0,t.useRef)(m),x=(0,t.useRef)(e),O=(0,t.useRef)(r),E=function(){return O.current},A=function(){return E().isVisible()&&E().isOnline()},C=function(t){return o.set(_,sr(o.get(_),t))},P=o.get(m),R=fr(i)?r.fallback[m]:i,I=fr(P)?R:P,k=o.get(_)||{},T=k.error,L=!w.current,U=function(){return L&&!fr(c)?c:!E().isPaused()&&(a?!fr(I):fr(I)||r.revalidateIfStale)},M=!(!m||!e)&&(!!k.isValidating||L&&U()),D=function(n,e){var r=(0,t.useState)({})[1],o=(0,t.useRef)(n),u=(0,t.useRef)({data:!1,error:!1,isValidating:!1}),i=(0,t.useCallback)((function(t){var n=!1,i=o.current;for(var a in t){var c=a;i[c]!==t[c]&&(i[c]=t[c],u.current[c]&&(n=!0))}n&&!e.current&&r({})}),[]);return Ar((function(){o.current=n})),[o,u.current,i]}({data:I,error:T,isValidating:M},j),z=D[0],N=D[1],B=D[2],$=(0,t.useCallback)((function(t){return rr(void 0,void 0,void 0,(function(){var n,e,i,a,c,f,l,s,p,h,v,g,_;return or(this,(function(O){switch(O.label){case 0:if(n=x.current,!m||!n||j.current||E().isPaused())return[2,!1];a=!0,c=t||{},f=!y[m]||!c.dedupe,l=function(){return!j.current&&m===S.current&&w.current},s=function(){var t=y[m];t&&t[1]===i&&delete y[m]},p={isValidating:!1},h=function(){C({isValidating:!1}),l()&&B(p)},C({isValidating:!0}),B({isValidating:!0}),O.label=1;case 1:return O.trys.push([1,3,,4]),f&&(kr(o,m,z.current.data,z.current.error,!0),r.loadingTimeout&&!o.get(m)&&setTimeout((function(){a&&l()&&E().onLoadingSlow(m,r)}),r.loadingTimeout),y[m]=[n.apply(void 0,b),Lr()]),_=y[m],e=_[0],i=_[1],[4,e];case 2:return e=O.sent(),f&&setTimeout(s,r.dedupingInterval),y[m]&&y[m][1]===i?(C({error:ar}),p.error=ar,v=d[m],!fr(v)&&(i<=v[0]||i<=v[1]||0===v[1])?(h(),f&&l()&&E().onDiscarded(m),[2,!1]):(u(z.current.data,e)?p.data=z.current.data:p.data=e,u(o.get(m),e)||o.set(m,e),f&&l()&&E().onSuccess(e,m,r),[3,4])):(f&&l()&&E().onDiscarded(m),[2,!1]);case 3:return g=O.sent(),s(),E().isPaused()||(C({error:g}),p.error=g,f&&l()&&(E().onError(g,m,r),("boolean"==typeof r.shouldRetryOnError&&r.shouldRetryOnError||lr(r.shouldRetryOnError)&&r.shouldRetryOnError(g))&&A()&&E().onErrorRetry(g,m,r,$,{retryCount:(c.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return a=!1,h(),l()&&f&&kr(o,m,p.data,p.error,!1),[2,!0]}}))}))}),[m]),F=(0,t.useCallback)(Ur.bind(ar,o,(function(){return S.current})),[]);if(Ar((function(){x.current=e,O.current=r})),Ar((function(){if(m){var t=m!==S.current,n=$.bind(ar,Zr),e=0,r=Gr(m,v,(function(t,n,e){B(sr({error:n,isValidating:e},u(z.current.data,t)?ar:{data:t}))})),o=Gr(m,h,(function(t){if(0==t){var r=Date.now();E().revalidateOnFocus&&r>e&&A()&&(e=r+E().focusThrottleInterval,n())}else if(1==t)E().revalidateOnReconnect&&A()&&n();else if(2==t)return $()}));return j.current=!1,S.current=m,w.current=!0,t&&B({data:I,error:T,isValidating:M}),U()&&(fr(I)||Er?n():(i=n,hr()&&typeof window.requestAnimationFrame!=pr?window.requestAnimationFrame(i):setTimeout(i,1))),function(){j.current=!0,r(),o()}}var i}),[m,$]),Ar((function(){var t;function n(){var n=lr(f)?f(I):f;n&&-1!==t&&(t=setTimeout(e,n))}function e(){z.current.error||!l&&!E().isVisible()||!s&&!E().isOnline()?n():$(Zr).then(n)}return n(),function(){t&&(clearTimeout(t),t=-1)}}),[f,l,s,$]),(0,t.useDebugValue)(I),a&&fr(I)&&m)throw x.current=e,O.current=r,j.current=!1,fr(T)?$(Zr):T;return{mutate:F,get data(){return N.data=!0,I},get error(){return N.error=!0,T},get isValidating(){return N.isValidating=!0,M}}},function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var e=qr(),r=Vr(t),o=r[0],u=r[1],i=r[2],a=Fr(e,i),c=ur,f=a.use;if(f)for(var l=f.length;l-- >0;)c=f[l](c);return c(o,u||a.fetcher,a)}),Kr=p(688),Jr=p(332),Yr=p.n(Jr);function Qr(t){var n,e=Hr("/ws/rest/v1/visit?patient=".concat(t,"&v=").concat(de.defaultVisitCustomRepresentation,"&includeInactive=false"),de.openmrsFetch),r=e.data;return{error:e.error,mutate:e.mutate,isValidating:e.isValidating,currentVisit:null!==(n=null==r?void 0:r.data.results.find((function(t){return null===t.stopDatetime&&(0,Kr.default)(t.startDatetime).isToday()})))&&void 0!==n?n:null}}function Xr(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function to(){var n=function(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,o,u=[],i=!0,a=!1;try{for(e=e.call(t);!(i=(r=e.next()).done)&&(u.push(r.value),!n||u.length!==n);i=!0);}catch(t){a=!0,o=t}finally{try{i||null==e.return||e.return()}finally{if(a)throw o}}return u}}(t,n)||function(t,n){if(t){if("string"==typeof t)return Xr(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(e):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Xr(t,n):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,t.useState)([]),2),e=n[0],r=n[1];return(0,t.useEffect)((function(){var t=(0,de.getVisitTypes)().subscribe((function(t){r(t)}),(function(t){return console.error(t)}));return function(){return t.unsubscribe()}}),[]),e}function no(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function eo(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,o,u=[],i=!0,a=!1;try{for(e=e.call(t);!(i=(r=e.next()).done)&&(u.push(r.value),!n||u.length!==n);i=!0);}catch(t){a=!0,o=t}finally{try{i||null==e.return||e.return()}finally{if(a)throw o}}return u}}(t,n)||function(t,n){if(t){if("string"==typeof t)return no(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(e):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?no(t,n):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ro(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,r=eo((0,t.useState)(1),2),o=r[0],u=r[1],i=(0,t.useMemo)((function(){return Math.max(1,Math.ceil(n.length/e))}),[n.length,e]),a=(0,t.useMemo)((function(){var t=(o-1)*e,r=(o+0)*e;return n.slice(t,r)}),[n,o,e]);return{results:a,totalPages:i,currentPage:o,paginated:n.length>e,showNextButton:o<i,showPreviousButton:o>1,goTo:function(t){u(Math.max(1,Math.min(i,t)))},goToNext:function(){o<i&&u(o+1)},goToPrevious:function(){o>1&&u(o-1)}}}Kr.default.extend(Yr())})(),h})())}}}));
3
3
  //# sourceMappingURL=openmrs-esm-react-utils.js.map