@openmrs/esm-app-shell 5.2.1-pre.1092 → 5.2.1-pre.1101
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +99 -99
- package/dist/{74758f432e4bb251.js.map → 5df6e9c31425ce80.js.map} +1 -1
- package/dist/index.html +1 -1
- package/dist/openmrs.897cc8306bb63385.js +2 -0
- package/dist/{openmrs.3ddab49d33de4a9e.js.map → openmrs.897cc8306bb63385.js.map} +1 -1
- package/dist/service-worker.js +1 -1
- package/lib/esm-devtools-app/889.js +1 -1
- package/lib/esm-devtools-app/889.js.map +1 -1
- package/lib/esm-devtools-app/main.js +1 -1
- package/lib/esm-devtools-app/openmrs-esm-devtools-app.js +1 -1
- package/lib/esm-devtools-app/openmrs-esm-devtools-app.js.buildmanifest.json +5 -5
- package/lib/esm-devtools-app/routes.json +1 -1
- package/lib/esm-implementer-tools-app/329.js +1 -1
- package/lib/esm-implementer-tools-app/499.js +1 -1
- package/lib/esm-implementer-tools-app/{271.js → 602.js} +1 -1
- package/lib/esm-implementer-tools-app/{271.js.map → 602.js.map} +1 -1
- package/lib/esm-implementer-tools-app/889.js +1 -1
- package/lib/esm-implementer-tools-app/889.js.map +1 -1
- package/lib/esm-implementer-tools-app/main.js +1 -1
- package/lib/esm-implementer-tools-app/openmrs-esm-implementer-tools-app.js +1 -1
- package/lib/esm-implementer-tools-app/openmrs-esm-implementer-tools-app.js.buildmanifest.json +32 -32
- package/lib/esm-implementer-tools-app/routes.json +1 -1
- package/lib/esm-login-app/111.js +1 -1
- package/lib/esm-login-app/126.js +1 -1
- package/lib/esm-login-app/173.js +1 -1
- package/lib/esm-login-app/337.js +1 -1
- package/lib/esm-login-app/342.js +1 -1
- package/lib/esm-login-app/889.js +1 -1
- package/lib/esm-login-app/889.js.map +1 -1
- package/lib/esm-login-app/main.js +1 -1
- package/lib/esm-login-app/main.js.map +1 -1
- package/lib/esm-login-app/openmrs-esm-login-app.js +1 -1
- package/lib/esm-login-app/openmrs-esm-login-app.js.buildmanifest.json +31 -31
- package/lib/esm-login-app/openmrs-esm-login-app.js.map +1 -1
- package/lib/esm-login-app/routes.json +1 -1
- package/lib/esm-offline-tools-app/1584c81d564cacde.svg +8 -0
- package/lib/esm-offline-tools-app/202.js +1 -0
- package/lib/esm-offline-tools-app/202.js.map +1 -0
- package/lib/esm-offline-tools-app/206.js +1 -0
- package/lib/esm-offline-tools-app/206.js.map +1 -0
- package/lib/esm-offline-tools-app/224.js +2 -0
- package/lib/esm-offline-tools-app/224.js.LICENSE.txt +9 -0
- package/lib/esm-offline-tools-app/224.js.map +1 -0
- package/lib/esm-offline-tools-app/263.js +1 -0
- package/lib/esm-offline-tools-app/263.js.map +1 -0
- package/lib/esm-offline-tools-app/273.js +2 -0
- package/lib/esm-offline-tools-app/273.js.LICENSE.txt +15 -0
- package/lib/esm-offline-tools-app/273.js.map +1 -0
- package/lib/esm-offline-tools-app/281.js +1 -0
- package/lib/esm-offline-tools-app/281.js.map +1 -0
- package/lib/esm-offline-tools-app/297.js +1 -0
- package/lib/esm-offline-tools-app/297.js.map +1 -0
- package/lib/esm-offline-tools-app/316.js +1 -0
- package/lib/esm-offline-tools-app/316.js.map +1 -0
- package/lib/esm-offline-tools-app/319.js +1 -0
- package/lib/esm-offline-tools-app/391.js +1 -0
- package/lib/esm-offline-tools-app/391.js.map +1 -0
- package/lib/esm-offline-tools-app/412.js +1 -0
- package/lib/esm-offline-tools-app/412.js.map +1 -0
- package/lib/esm-offline-tools-app/460.js +1 -0
- package/lib/esm-offline-tools-app/47.js +1 -0
- package/lib/esm-offline-tools-app/47.js.map +1 -0
- package/lib/esm-offline-tools-app/501.js +1 -0
- package/lib/esm-offline-tools-app/501.js.map +1 -0
- package/lib/esm-offline-tools-app/526.js +1 -0
- package/lib/esm-offline-tools-app/526.js.map +1 -0
- package/lib/esm-offline-tools-app/538.js +1 -0
- package/lib/esm-offline-tools-app/538.js.map +1 -0
- package/lib/esm-offline-tools-app/541.js +1 -0
- package/lib/esm-offline-tools-app/541.js.map +1 -0
- package/lib/esm-offline-tools-app/56.js +1 -0
- package/lib/esm-offline-tools-app/56.js.map +1 -0
- package/lib/esm-offline-tools-app/574.js +1 -0
- package/lib/esm-offline-tools-app/594.js +1 -0
- package/lib/esm-offline-tools-app/594.js.map +1 -0
- package/lib/esm-offline-tools-app/625.js +1 -0
- package/lib/esm-offline-tools-app/63.js +2 -0
- package/lib/esm-offline-tools-app/63.js.LICENSE.txt +32 -0
- package/lib/esm-offline-tools-app/63.js.map +1 -0
- package/lib/esm-offline-tools-app/696.js +1 -0
- package/lib/esm-offline-tools-app/696.js.map +1 -0
- package/lib/esm-offline-tools-app/733.js +1 -0
- package/lib/esm-offline-tools-app/733.js.map +1 -0
- package/lib/esm-offline-tools-app/735.js +2 -0
- package/lib/esm-offline-tools-app/735.js.LICENSE.txt +9 -0
- package/lib/esm-offline-tools-app/735.js.map +1 -0
- package/lib/esm-offline-tools-app/752.js +1 -0
- package/lib/esm-offline-tools-app/752.js.map +1 -0
- package/lib/esm-offline-tools-app/757.js +1 -0
- package/lib/esm-offline-tools-app/78.js +1 -0
- package/lib/esm-offline-tools-app/78.js.map +1 -0
- package/lib/esm-offline-tools-app/788.js +2 -0
- package/lib/esm-offline-tools-app/788.js.LICENSE.txt +19 -0
- package/lib/esm-offline-tools-app/788.js.map +1 -0
- package/lib/esm-offline-tools-app/807.js +1 -0
- package/lib/esm-offline-tools-app/833.js +1 -0
- package/lib/esm-offline-tools-app/889.js +2 -0
- package/lib/esm-offline-tools-app/889.js.LICENSE.txt +3 -0
- package/lib/esm-offline-tools-app/889.js.map +1 -0
- package/lib/esm-offline-tools-app/937.js +1 -0
- package/lib/esm-offline-tools-app/937.js.map +1 -0
- package/lib/esm-offline-tools-app/main.js +2 -0
- package/lib/esm-offline-tools-app/main.js.LICENSE.txt +15 -0
- package/lib/esm-offline-tools-app/main.js.map +1 -0
- package/lib/esm-offline-tools-app/openmrs-esm-offline-tools-app.js +1 -0
- package/lib/esm-offline-tools-app/openmrs-esm-offline-tools-app.js.buildmanifest.json +912 -0
- package/lib/esm-offline-tools-app/openmrs-esm-offline-tools-app.js.map +1 -0
- package/lib/esm-offline-tools-app/routes.json +1 -0
- package/lib/esm-primary-navigation-app/889.js +1 -1
- package/lib/esm-primary-navigation-app/889.js.map +1 -1
- package/lib/esm-primary-navigation-app/main.js +1 -1
- package/lib/esm-primary-navigation-app/openmrs-esm-primary-navigation-app.js +1 -1
- package/lib/esm-primary-navigation-app/openmrs-esm-primary-navigation-app.js.buildmanifest.json +5 -5
- package/lib/esm-primary-navigation-app/routes.json +1 -1
- package/lib/index.html +2 -2
- package/lib/openmrs.js +58 -25
- package/lib/service-worker.js +1 -1
- package/package.json +4 -4
- package/dist/openmrs.3ddab49d33de4a9e.js +0 -2
- /package/dist/{74758f432e4bb251.js → 5df6e9c31425ce80.js} +0 -0
- /package/dist/{openmrs.3ddab49d33de4a9e.js.LICENSE.txt → openmrs.897cc8306bb63385.js.LICENSE.txt} +0 -0
- /package/lib/{a3f8c9535d9deb27.js → 61aaa345d60b0076.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e,r,t={988:(e,r,t)=>{(0,t(610).getAsyncLifecycle)((function(){return Promise.all([t.e(776),t.e(68)]).then(t.bind(t,68))}),{featureName:"devtools",moduleName:"@openmrs/esm-devtools-app"})}},o={};function n(e){var r=o[e];if(void 0!==r)return r.exports;var a=o[e]={id:e,loaded:!1,exports:{}};return t[e](a,a.exports,n),a.loaded=!0,a.exports}n.m=t,n.c=o,n.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return n.d(r,{a:r}),r},n.d=(e,r)=>{for(var t in r)n.o(r,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((r,t)=>(n.f[t](e,r),r)),[])),n.u=e=>e+".js",n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},r="@openmrs/esm-devtools-app:",n.l=(t,o,a,i)=>{if(e[t])e[t].push(o);else{var l,u;if(void 0!==a)for(var s=document.getElementsByTagName("script"),p=0;p<s.length;p++){var f=s[p];if(f.getAttribute("src")==t||f.getAttribute("data-webpack")==r+a){l=f;break}}l||(u=!0,(l=document.createElement("script")).charset="utf-8",l.timeout=120,n.nc&&l.setAttribute("nonce",n.nc),l.setAttribute("data-webpack",r+a),l.src=t),e[t]=[o];var d=(r,o)=>{l.onerror=l.onload=null,clearTimeout(c);var n=e[t];if(delete e[t],l.parentNode&&l.parentNode.removeChild(l),n&&n.forEach((e=>e(o))),r)return r(o)},c=setTimeout(d.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=d.bind(null,l.onerror),l.onload=d.bind(null,l.onload),u&&document.head.appendChild(l)}},n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{n.S={};var e={},r={};n.I=(t,o)=>{o||(o=[]);var a=r[t];if(a||(a=r[t]={}),!(o.indexOf(a)>=0)){if(o.push(a),e[t])return e[t];n.o(n.S,t)||(n.S[t]={});var i=n.S[t],l="@openmrs/esm-devtools-app",u=(e,r,t,o)=>{var n=i[e]=i[e]||{},a=n[r];(!a||!a.loaded&&(!o!=!a.eager?o:l>a.from))&&(n[r]={get:t,from:l,eager:!!o})},s=[];return"default"===t&&(u("@openmrs/esm-framework","5.2.1-pre.
|
|
1
|
+
(()=>{"use strict";var e,r,t={988:(e,r,t)=>{(0,t(610).getAsyncLifecycle)((function(){return Promise.all([t.e(776),t.e(68)]).then(t.bind(t,68))}),{featureName:"devtools",moduleName:"@openmrs/esm-devtools-app"})}},o={};function n(e){var r=o[e];if(void 0!==r)return r.exports;var a=o[e]={id:e,loaded:!1,exports:{}};return t[e](a,a.exports,n),a.loaded=!0,a.exports}n.m=t,n.c=o,n.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return n.d(r,{a:r}),r},n.d=(e,r)=>{for(var t in r)n.o(r,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((r,t)=>(n.f[t](e,r),r)),[])),n.u=e=>e+".js",n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},r="@openmrs/esm-devtools-app:",n.l=(t,o,a,i)=>{if(e[t])e[t].push(o);else{var l,u;if(void 0!==a)for(var s=document.getElementsByTagName("script"),p=0;p<s.length;p++){var f=s[p];if(f.getAttribute("src")==t||f.getAttribute("data-webpack")==r+a){l=f;break}}l||(u=!0,(l=document.createElement("script")).charset="utf-8",l.timeout=120,n.nc&&l.setAttribute("nonce",n.nc),l.setAttribute("data-webpack",r+a),l.src=t),e[t]=[o];var d=(r,o)=>{l.onerror=l.onload=null,clearTimeout(c);var n=e[t];if(delete e[t],l.parentNode&&l.parentNode.removeChild(l),n&&n.forEach((e=>e(o))),r)return r(o)},c=setTimeout(d.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=d.bind(null,l.onerror),l.onload=d.bind(null,l.onload),u&&document.head.appendChild(l)}},n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{n.S={};var e={},r={};n.I=(t,o)=>{o||(o=[]);var a=r[t];if(a||(a=r[t]={}),!(o.indexOf(a)>=0)){if(o.push(a),e[t])return e[t];n.o(n.S,t)||(n.S[t]={});var i=n.S[t],l="@openmrs/esm-devtools-app",u=(e,r,t,o)=>{var n=i[e]=i[e]||{},a=n[r];(!a||!a.loaded&&(!o!=!a.eager?o:l>a.from))&&(n[r]={get:t,from:l,eager:!!o})},s=[];return"default"===t&&(u("@openmrs/esm-framework","5.2.1-pre.1101",(()=>Promise.all([n.e(776),n.e(889)]).then((()=>()=>n(889))))),u("react","18.2.0",(()=>n.e(735).then((()=>()=>n(735)))))),e[t]=s.length?Promise.all(s).then((()=>e[t]=1)):1}}})(),(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var r=n.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");if(t.length)for(var o=t.length-1;o>-1&&!e;)e=t[o--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})(),(()=>{var e=e=>{var r=e=>e.split(".").map((e=>+e==e?+e:e)),t=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),o=t[1]?r(t[1]):[];return t[2]&&(o.length++,o.push.apply(o,r(t[2]))),t[3]&&(o.push([]),o.push.apply(o,r(t[3]))),o},r=e=>{var t=e[0],o="";if(1===e.length)return"*";if(t+.5){o+=0==t?">=":-1==t?"<":1==t?"^":2==t?"~":t>0?"=":"!=";for(var n=1,a=1;a<e.length;a++)n--,o+="u"==(typeof(l=e[a]))[0]?"-":(n>0?".":"")+(n=2,l);return o}var i=[];for(a=1;a<e.length;a++){var l=e[a];i.push(0===l?"not("+u()+")":1===l?"("+u()+" || "+u()+")":2===l?i.pop()+" "+i.pop():r(l))}return u();function u(){return i.pop().replace(/^\((.+)\)$/,"$1")}},t=(r,o)=>{if(0 in r){o=e(o);var n=r[0],a=n<0;a&&(n=-n-1);for(var i=0,l=1,u=!0;;l++,i++){var s,p,f=l<r.length?(typeof r[l])[0]:"";if(i>=o.length||"o"==(p=(typeof(s=o[i]))[0]))return!u||("u"==f?l>n&&!a:""==f!=a);if("u"==p){if(!u||"u"!=f)return!1}else if(u)if(f==p)if(l<=n){if(s!=r[l])return!1}else{if(a?s>r[l]:s<r[l])return!1;s!=r[l]&&(u=!1)}else if("s"!=f&&"n"!=f){if(a||l<=n)return!1;u=!1,l--}else{if(l<=n||p<f!=a)return!1;u=!1}else"s"!=f&&"n"!=f&&(u=!1,l--)}}var d=[],c=d.pop.bind(d);for(i=1;i<r.length;i++){var h=r[i];d.push(1==h?c()|c():2==h?c()&c():h?t(h,o):!c())}return!!c()},o=(r,t)=>{var o=r[t];return Object.keys(o).reduce(((r,t)=>!r||!o[r].loaded&&((r,t)=>{r=e(r),t=e(t);for(var o=0;;){if(o>=r.length)return o<t.length&&"u"!=(typeof t[o])[0];var n=r[o],a=(typeof n)[0];if(o>=t.length)return"u"==a;var i=t[o],l=(typeof i)[0];if(a!=l)return"o"==a&&"n"==l||"s"==l||"u"==a;if("o"!=a&&"u"!=a&&n!=i)return n<i;o++}})(r,t)?t:r),0)},a=(e,n,a,u)=>{var s=o(e,a);return t(u,s)||i(((e,t,o,n)=>"Unsatisfied version "+o+" from "+(o&&e[t][o].from)+" of shared singleton module "+t+" (required "+r(n)+")")(e,a,s,u)),l(e[a][s])},i=e=>{"undefined"!=typeof console&&console.warn&&console.warn(e)},l=e=>(e.loaded=1,e.get()),u=(e=>function(r,t,o,a){var i=n.I(r);return i&&i.then?i.then(e.bind(e,r,n.S[r],t,o,a)):e(r,n.S[r],t,o,a)})(((e,r,t,o,i)=>r&&n.o(r,t)?a(r,0,t,o):i())),s={},p={776:()=>u("default","react",[1,18],(()=>n.e(735).then((()=>()=>n(735))))),610:()=>u("default","@openmrs/esm-framework",[0],(()=>Promise.all([n.e(776),n.e(889)]).then((()=>()=>n(889)))))};[610].forEach((e=>{n.m[e]=r=>{s[e]=0,delete n.c[e];var t=p[e]();if("function"!=typeof t)throw new Error("Shared module is not available for eager consumption: "+e);r.exports=t()}}));var f={776:[776]};n.f.consumes=(e,r)=>{n.o(f,e)&&f[e].forEach((e=>{if(n.o(s,e))return r.push(s[e]);var t=r=>{s[e]=0,n.m[e]=t=>{delete n.c[e],t.exports=r()}},o=r=>{delete s[e],n.m[e]=t=>{throw delete n.c[e],r}};try{var a=p[e]();a.then?r.push(s[e]=a.then(t).catch(o)):t(a)}catch(e){o(e)}}))}})(),(()=>{var e={179:0,988:0};n.f.j=(r,t)=>{var o=n.o(e,r)?e[r]:void 0;if(0!==o)if(o)t.push(o[2]);else if(776!=r){var a=new Promise(((t,n)=>o=e[r]=[t,n]));t.push(o[2]=a);var i=n.p+n.u(r),l=new Error;n.l(i,(t=>{if(n.o(e,r)&&(0!==(o=e[r])&&(e[r]=void 0),o)){var a=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src;l.message="Loading chunk "+r+" failed.\n("+a+": "+i+")",l.name="ChunkLoadError",l.type=a,l.request=i,o[1](l)}}),"chunk-"+r,r)}else e[r]=0};var r=(r,t)=>{var o,a,[i,l,u]=t,s=0;if(i.some((r=>0!==e[r]))){for(o in l)n.o(l,o)&&(n.m[o]=l[o]);u&&u(n)}for(r&&r(t);s<i.length;s++)a=i[s],n.o(e,a)&&e[a]&&e[a][0](),e[a]=0},t=globalThis.webpackChunk_openmrs_esm_devtools_app=globalThis.webpackChunk_openmrs_esm_devtools_app||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),n.nc=void 0,n(988)})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var _openmrs_esm_devtools_app;(()=>{"use strict";var e,r,t,o,n,a,i,l,s,u,p,f,d,c,h,v={466:(e,r,t)=>{var o={"./start":()=>t.e(988).then((()=>()=>t(988)))},n=(e,r)=>(t.R=r,r=t.o(o,e)?o[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),t.R=void 0,r),a=(e,r)=>{if(t.S){var o="default",n=t.S[o];if(n&&n!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[o]=e,t.I(o,r)}};t.d(r,{get:()=>n,init:()=>a})}},m={};function g(e){var r=m[e];if(void 0!==r)return r.exports;var t=m[e]={id:e,loaded:!1,exports:{}};return v[e](t,t.exports,g),t.loaded=!0,t.exports}g.m=v,g.c=m,g.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return g.d(r,{a:r}),r},g.d=(e,r)=>{for(var t in r)g.o(r,t)&&!g.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},g.f={},g.e=e=>Promise.all(Object.keys(g.f).reduce(((r,t)=>(g.f[t](e,r),r)),[])),g.u=e=>e+".js",g.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),g.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},r="@openmrs/esm-devtools-app:",g.l=(t,o,n,a)=>{if(e[t])e[t].push(o);else{var i,l;if(void 0!==n)for(var s=document.getElementsByTagName("script"),u=0;u<s.length;u++){var p=s[u];if(p.getAttribute("src")==t||p.getAttribute("data-webpack")==r+n){i=p;break}}i||(l=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,g.nc&&i.setAttribute("nonce",g.nc),i.setAttribute("data-webpack",r+n),i.src=t),e[t]=[o];var f=(r,o)=>{i.onerror=i.onload=null,clearTimeout(d);var n=e[t];if(delete e[t],i.parentNode&&i.parentNode.removeChild(i),n&&n.forEach((e=>e(o))),r)return r(o)},d=setTimeout(f.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),l&&document.head.appendChild(i)}},g.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},g.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{g.S={};var e={},r={};g.I=(t,o)=>{o||(o=[]);var n=r[t];if(n||(n=r[t]={}),!(o.indexOf(n)>=0)){if(o.push(n),e[t])return e[t];g.o(g.S,t)||(g.S[t]={});var a=g.S[t],i="@openmrs/esm-devtools-app",l=(e,r,t,o)=>{var n=a[e]=a[e]||{},l=n[r];(!l||!l.loaded&&(!o!=!l.eager?o:i>l.from))&&(n[r]={get:t,from:i,eager:!!o})},s=[];return"default"===t&&(l("@openmrs/esm-framework","5.2.1-pre.
|
|
1
|
+
var _openmrs_esm_devtools_app;(()=>{"use strict";var e,r,t,o,n,a,i,l,s,u,p,f,d,c,h,v={466:(e,r,t)=>{var o={"./start":()=>t.e(988).then((()=>()=>t(988)))},n=(e,r)=>(t.R=r,r=t.o(o,e)?o[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),t.R=void 0,r),a=(e,r)=>{if(t.S){var o="default",n=t.S[o];if(n&&n!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[o]=e,t.I(o,r)}};t.d(r,{get:()=>n,init:()=>a})}},m={};function g(e){var r=m[e];if(void 0!==r)return r.exports;var t=m[e]={id:e,loaded:!1,exports:{}};return v[e](t,t.exports,g),t.loaded=!0,t.exports}g.m=v,g.c=m,g.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return g.d(r,{a:r}),r},g.d=(e,r)=>{for(var t in r)g.o(r,t)&&!g.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},g.f={},g.e=e=>Promise.all(Object.keys(g.f).reduce(((r,t)=>(g.f[t](e,r),r)),[])),g.u=e=>e+".js",g.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),g.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},r="@openmrs/esm-devtools-app:",g.l=(t,o,n,a)=>{if(e[t])e[t].push(o);else{var i,l;if(void 0!==n)for(var s=document.getElementsByTagName("script"),u=0;u<s.length;u++){var p=s[u];if(p.getAttribute("src")==t||p.getAttribute("data-webpack")==r+n){i=p;break}}i||(l=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,g.nc&&i.setAttribute("nonce",g.nc),i.setAttribute("data-webpack",r+n),i.src=t),e[t]=[o];var f=(r,o)=>{i.onerror=i.onload=null,clearTimeout(d);var n=e[t];if(delete e[t],i.parentNode&&i.parentNode.removeChild(i),n&&n.forEach((e=>e(o))),r)return r(o)},d=setTimeout(f.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),l&&document.head.appendChild(i)}},g.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},g.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{g.S={};var e={},r={};g.I=(t,o)=>{o||(o=[]);var n=r[t];if(n||(n=r[t]={}),!(o.indexOf(n)>=0)){if(o.push(n),e[t])return e[t];g.o(g.S,t)||(g.S[t]={});var a=g.S[t],i="@openmrs/esm-devtools-app",l=(e,r,t,o)=>{var n=a[e]=a[e]||{},l=n[r];(!l||!l.loaded&&(!o!=!l.eager?o:i>l.from))&&(n[r]={get:t,from:i,eager:!!o})},s=[];return"default"===t&&(l("@openmrs/esm-framework","5.2.1-pre.1101",(()=>Promise.all([g.e(776),g.e(889)]).then((()=>()=>g(889))))),l("react","18.2.0",(()=>g.e(735).then((()=>()=>g(735)))))),e[t]=s.length?Promise.all(s).then((()=>e[t]=1)):1}}})(),(()=>{var e;g.g.importScripts&&(e=g.g.location+"");var r=g.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");if(t.length)for(var o=t.length-1;o>-1&&!e;)e=t[o--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),g.p=e})(),t=e=>{var r=e=>e.split(".").map((e=>+e==e?+e:e)),t=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),o=t[1]?r(t[1]):[];return t[2]&&(o.length++,o.push.apply(o,r(t[2]))),t[3]&&(o.push([]),o.push.apply(o,r(t[3]))),o},o=(e,r)=>{e=t(e),r=t(r);for(var o=0;;){if(o>=e.length)return o<r.length&&"u"!=(typeof r[o])[0];var n=e[o],a=(typeof n)[0];if(o>=r.length)return"u"==a;var i=r[o],l=(typeof i)[0];if(a!=l)return"o"==a&&"n"==l||"s"==l||"u"==a;if("o"!=a&&"u"!=a&&n!=i)return n<i;o++}},n=e=>{var r=e[0],t="";if(1===e.length)return"*";if(r+.5){t+=0==r?">=":-1==r?"<":1==r?"^":2==r?"~":r>0?"=":"!=";for(var o=1,a=1;a<e.length;a++)o--,t+="u"==(typeof(l=e[a]))[0]?"-":(o>0?".":"")+(o=2,l);return t}var i=[];for(a=1;a<e.length;a++){var l=e[a];i.push(0===l?"not("+s()+")":1===l?"("+s()+" || "+s()+")":2===l?i.pop()+" "+i.pop():n(l))}return s();function s(){return i.pop().replace(/^\((.+)\)$/,"$1")}},a=(e,r)=>{if(0 in e){r=t(r);var o=e[0],n=o<0;n&&(o=-o-1);for(var i=0,l=1,s=!0;;l++,i++){var u,p,f=l<e.length?(typeof e[l])[0]:"";if(i>=r.length||"o"==(p=(typeof(u=r[i]))[0]))return!s||("u"==f?l>o&&!n:""==f!=n);if("u"==p){if(!s||"u"!=f)return!1}else if(s)if(f==p)if(l<=o){if(u!=e[l])return!1}else{if(n?u>e[l]:u<e[l])return!1;u!=e[l]&&(s=!1)}else if("s"!=f&&"n"!=f){if(n||l<=o)return!1;s=!1,l--}else{if(l<=o||p<f!=n)return!1;s=!1}else"s"!=f&&"n"!=f&&(s=!1,l--)}}var d=[],c=d.pop.bind(d);for(i=1;i<e.length;i++){var h=e[i];d.push(1==h?c()|c():2==h?c()&c():h?a(h,r):!c())}return!!c()},i=(e,r)=>{var t=e[r];return Object.keys(t).reduce(((e,r)=>!e||!t[e].loaded&&o(e,r)?r:e),0)},l=(e,r,t,o)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+n(o)+")",s=(e,r,t,o)=>{var n=i(e,t);return a(o,n)||u(l(e,t,n,o)),p(e[t][n])},u=e=>{"undefined"!=typeof console&&console.warn&&console.warn(e)},p=e=>(e.loaded=1,e.get()),f=(e=>function(r,t,o,n){var a=g.I(r);return a&&a.then?a.then(e.bind(e,r,g.S[r],t,o,n)):e(0,g.S[r],t,o,n)})(((e,r,t,o,n)=>r&&g.o(r,t)?s(r,0,t,o):n())),d={},c={776:()=>f("default","react",[1,18],(()=>g.e(735).then((()=>()=>g(735))))),610:()=>f("default","@openmrs/esm-framework",[0],(()=>Promise.all([g.e(776),g.e(889)]).then((()=>()=>g(889)))))},h={776:[776],988:[610]},g.f.consumes=(e,r)=>{g.o(h,e)&&h[e].forEach((e=>{if(g.o(d,e))return r.push(d[e]);var t=r=>{d[e]=0,g.m[e]=t=>{delete g.c[e],t.exports=r()}},o=r=>{delete d[e],g.m[e]=t=>{throw delete g.c[e],r}};try{var n=c[e]();n.then?r.push(d[e]=n.then(t).catch(o)):t(n)}catch(e){o(e)}}))},(()=>{var e={64:0};g.f.j=(r,t)=>{var o=g.o(e,r)?e[r]:void 0;if(0!==o)if(o)t.push(o[2]);else if(776!=r){var n=new Promise(((t,n)=>o=e[r]=[t,n]));t.push(o[2]=n);var a=g.p+g.u(r),i=new Error;g.l(a,(t=>{if(g.o(e,r)&&(0!==(o=e[r])&&(e[r]=void 0),o)){var n=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;i.message="Loading chunk "+r+" failed.\n("+n+": "+a+")",i.name="ChunkLoadError",i.type=n,i.request=a,o[1](i)}}),"chunk-"+r,r)}else e[r]=0};var r=(r,t)=>{var o,n,[a,i,l]=t,s=0;if(a.some((r=>0!==e[r]))){for(o in i)g.o(i,o)&&(g.m[o]=i[o]);l&&l(g)}for(r&&r(t);s<a.length;s++)n=a[s],g.o(e,n)&&e[n]&&e[n][0](),e[n]=0},t=globalThis.webpackChunk_openmrs_esm_devtools_app=globalThis.webpackChunk_openmrs_esm_devtools_app||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),g.nc=void 0;var b=g(466);_openmrs_esm_devtools_app=b})();
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"auxiliaryFiles": [
|
|
25
25
|
"openmrs-esm-devtools-app.js.map"
|
|
26
26
|
],
|
|
27
|
-
"hash": "
|
|
27
|
+
"hash": "a347a7b27ab1c370",
|
|
28
28
|
"childrenByOrder": {}
|
|
29
29
|
},
|
|
30
30
|
{
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"auxiliaryFiles": [
|
|
77
77
|
"main.js.map"
|
|
78
78
|
],
|
|
79
|
-
"hash": "
|
|
79
|
+
"hash": "c24f1c2ff439d59f",
|
|
80
80
|
"childrenByOrder": {}
|
|
81
81
|
},
|
|
82
82
|
{
|
|
@@ -129,9 +129,9 @@
|
|
|
129
129
|
"initial": false,
|
|
130
130
|
"entry": false,
|
|
131
131
|
"recorded": false,
|
|
132
|
-
"size":
|
|
132
|
+
"size": 1750175,
|
|
133
133
|
"sizes": {
|
|
134
|
-
"javascript":
|
|
134
|
+
"javascript": 1750175
|
|
135
135
|
},
|
|
136
136
|
"names": [],
|
|
137
137
|
"idHints": [],
|
|
@@ -145,7 +145,7 @@
|
|
|
145
145
|
"auxiliaryFiles": [
|
|
146
146
|
"889.js.map"
|
|
147
147
|
],
|
|
148
|
-
"hash": "
|
|
148
|
+
"hash": "c9f78eaba49ba428",
|
|
149
149
|
"childrenByOrder": {}
|
|
150
150
|
},
|
|
151
151
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"$schema":"https://json.openmrs.org/routes.schema.json","pages":[{"component":"devtools","route":true,"online":true,"offline":true}],"version":"5.2.1-pre.
|
|
1
|
+
{"$schema":"https://json.openmrs.org/routes.schema.json","pages":[{"component":"devtools","route":true,"online":true,"offline":true}],"version":"5.2.1-pre.1101"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see 329.js.LICENSE.txt */
|
|
2
|
-
"use strict";(globalThis.webpackChunk_openmrs_esm_implementer_tools_app=globalThis.webpackChunk_openmrs_esm_implementer_tools_app||[]).push([[329],{8696:(t,e,r)=>{r.d(e,{AG:()=>l,vc:()=>v});var n,o,a,i,c,u=r(5776),s=r.n(u),f=r(6248);const l=s().forwardRef((function(t,e){let{children:r,size:o=16,...a}=t;return s().createElement(f.I,{width:o,height:o,ref:e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...a},n||(n=s().createElement("path",{d:"M18,28A12,12,0,1,0,6,16v6.2L2.4,18.6,1,20l6,6,6-6-1.4-1.4L8,22.2V16H8A10,10,0,1,1,18,26Z"})),r)})),v=s().forwardRef((function(t,e){let{children:r,size:n=16,...u}=t;return 16===n||"16"===n||"16px"===n?s().createElement(f.I,{width:n,height:n,ref:e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...u},o||(o=s().createElement("path",{d:"M13.9,4.6l-2.5-2.5C11.3,2.1,11.1,2,11,2H3C2.4,2,2,2.4,2,3v10c0,0.6,0.4,1,1,1h10c0.6,0,1-0.4,1-1V5 C14,4.9,13.9,4.7,13.9,4.6z M6,3h4v2H6V3z M10,13H6V9h4V13z M11,13V9c0-0.6-0.4-1-1-1H6C5.4,8,5,8.4,5,9v4H3V3h2v2c0,0.6,0.4,1,1,1 h4c0.6,0,1-0.4,1-1V3.2l2,2V13H11z"})),r):20===n||"20"===n||"20px"===n?s().createElement(f.I,{width:n,height:n,ref:e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...u},a||(a=s().createElement("path",{d:"M17.8,5.5l-3.3-3.3C14.3,2.1,14.2,2,14,2H3.3C2.6,2,2,2.6,2,3.3v13.3C2,17.4,2.6,18,3.3,18h13.3c0.7,0,1.4-0.5,1.4-1.2V6.1 C18,5.7,17.9,5.7,17.8,5.5z M7.3,3.3h5.3v3.3H7.3V3.3z M12.7,16.7H7.3v-5.3h5.3L12.7,16.7L12.7,16.7z M14,16.7v-5.3 c0-0.7-0.6-1.3-1.3-1.3H7.3C6.6,10,6,10.6,6,11.3v5.3H3.3V3.3H6v3.3C6,7.4,6.6,8,7.3,8h5.3C13.4,8,14,7.4,14,6.7v-3l2.7,2.7v10.4 L14,16.7L14,16.7z"})),r):24===n||"24"===n||"24px"===n?s().createElement(f.I,{width:n,height:n,ref:e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...u},i||(i=s().createElement("path",{d:"M20.8,7L17,3.2C16.9,3.1,16.7,3,16.5,3h-12C3.7,3,3,3.7,3,4.5v15C3,20.3,3.7,21,4.5,21h15c0.8,0,1.5-0.7,1.5-1.5v-12 C21,7.3,20.9,7.1,20.8,7z M9,4.5h6v3H9V4.5z M15,19.5H9v-6h6V19.5z M16.5,19.5v-6c0-0.8-0.7-1.5-1.5-1.5H9c-0.8,0-1.5,0.7-1.5,1.5v6 h-3v-15h3v3C7.5,8.3,8.2,9,9,9h6c0.8,0,1.5-0.7,1.5-1.5V4.8l3,3v11.7H16.5z"})),r):s().createElement(f.I,{width:n,height:n,ref:e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...u},c||(c=s().createElement("path",{d:"M27.71,9.29l-5-5A1,1,0,0,0,22,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V10A1,1,0,0,0,27.71,9.29ZM12,6h8v4H12Zm8,20H12V18h8Zm2,0V18a2,2,0,0,0-2-2H12a2,2,0,0,0-2,2v8H6V6h4v4a2,2,0,0,0,2,2h8a2,2,0,0,0,2-2V6.41l4,4V26Z"})),r)}))},2173:(t,e,r)=>{var n=r(5776),o="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},a=n.useState,i=n.useEffect,c=n.useLayoutEffect,u=n.useDebugValue;function s(t){var e=t.getSnapshot;t=t.value;try{var r=e();return!o(t,r)}catch(t){return!0}}var f="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var r=e(),n=a({inst:{value:r,getSnapshot:e}}),o=n[0].inst,f=n[1];return c((function(){o.value=r,o.getSnapshot=e,s(o)&&f({inst:o})}),[t,r,e]),i((function(){return s(o)&&f({inst:o}),t((function(){s(o)&&f({inst:o})}))}),[t]),u(r),r};e.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:f},1374:(t,e,r)=>{t.exports=r(2173)},1890:(t,e,r)=>{r.d(e,{Z:()=>c});var n=r(7487);var o=r(6763),a=r(6776);function i(t){var e=this.__data__=new n.Z(t);this.size=e.size}i.prototype.clear=function(){this.__data__=new n.Z,this.size=0},i.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},i.prototype.get=function(t){return this.__data__.get(t)},i.prototype.has=function(t){return this.__data__.has(t)},i.prototype.set=function(t,e){var r=this.__data__;if(r instanceof n.Z){var i=r.__data__;if(!o.Z||i.length<199)return i.push([t,e]),this.size=++r.size,this;r=this.__data__=new a.Z(i)}return r.set(t,e),this.size=r.size,this};const c=i},4269:(t,e,r)=>{r.d(e,{Z:()=>n});const n=r(658).Z.Uint8Array},1602:(t,e,r)=>{r.d(e,{Z:()=>s});var n=r(4996),o=r(6575),a=r(5008),i=r(5313),c=r(8485),u=Object.prototype.hasOwnProperty;const s=function(t,e){var r=(0,o.Z)(t),s=!r&&(0,n.Z)(t),f=!r&&!s&&(0,a.Z)(t),l=!r&&!s&&!f&&(0,c.Z)(t),v=r||s||f||l,d=v?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],Z=d.length;for(var p in t)!e&&!u.call(t,p)||v&&("length"==p||f&&("offset"==p||"parent"==p)||l&&("buffer"==p||"byteLength"==p||"byteOffset"==p)||(0,i.Z)(p,Z))||d.push(p);return d}},9616:(t,e,r)=>{r.d(e,{Z:()=>i});var n=r(1250),o=r(8670),a=Object.prototype.hasOwnProperty;const i=function(t,e,r){var i=t[e];a.call(t,e)&&(0,o.Z)(i,r)&&(void 0!==r||e in t)||(0,n.Z)(t,e,r)}},1250:(t,e,r)=>{r.d(e,{Z:()=>o});var n=r(6684);const o=function(t,e,r){"__proto__"==e&&n.Z?(0,n.Z)(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},7106:(t,e,r)=>{r.d(e,{Z:()=>a});var n=r(6205),o=r(199);const a=function(t,e){for(var r=0,a=(e=(0,n.Z)(e,t)).length;null!=t&&r<a;)t=t[(0,o.Z)(e[r++])];return r&&r==a?t:void 0}},6449:(t,e,r)=>{r.d(e,{Z:()=>a});var n=r(4895),o=r(6575);const a=function(t,e,r){var a=e(t);return(0,o.Z)(t)?a:(0,n.Z)(a,r(t))}},8165:(t,e,r)=>{r.d(e,{Z:()=>V});var n=r(1890),o=r(7693);const a=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1};var i=r(2248);const c=function(t,e,r,n,c,u){var s=1&r,f=t.length,l=e.length;if(f!=l&&!(s&&l>f))return!1;var v=u.get(t),d=u.get(e);if(v&&d)return v==e&&d==t;var Z=-1,p=!0,b=2&r?new o.Z:void 0;for(u.set(t,e),u.set(e,t);++Z<f;){var h=t[Z],y=e[Z];if(n)var g=s?n(y,h,Z,e,t,u):n(h,y,Z,t,e,u);if(void 0!==g){if(g)continue;p=!1;break}if(b){if(!a(e,(function(t,e){if(!(0,i.Z)(b,e)&&(h===t||c(h,t,r,n,u)))return b.push(e)}))){p=!1;break}}else if(h!==y&&!c(h,y,r,n,u)){p=!1;break}}return u.delete(t),u.delete(e),p};var u=r(7851),s=r(4269),f=r(8670);const l=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r},v=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r};var d=u.Z?u.Z.prototype:void 0,Z=d?d.valueOf:void 0;var p=r(8924),b=Object.prototype.hasOwnProperty;var h=r(6812),y=r(6575),g=r(5008),j=r(8485),w="[object Arguments]",m="[object Array]",E="[object Object]",_=Object.prototype.hasOwnProperty;const A=function(t,e,r,o,a,i){var u=(0,y.Z)(t),d=(0,y.Z)(e),A=u?m:(0,h.Z)(t),O=d?m:(0,h.Z)(e),V=(A=A==w?E:A)==E,x=(O=O==w?E:O)==E,S=A==O;if(S&&(0,g.Z)(t)){if(!(0,g.Z)(e))return!1;u=!0,V=!1}if(S&&!V)return i||(i=new n.Z),u||(0,j.Z)(t)?c(t,e,r,o,a,i):function(t,e,r,n,o,a,i){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!a(new s.Z(t),new s.Z(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return(0,f.Z)(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var u=l;case"[object Set]":var d=1&n;if(u||(u=v),t.size!=e.size&&!d)return!1;var p=i.get(t);if(p)return p==e;n|=2,i.set(t,e);var b=c(u(t),u(e),n,o,a,i);return i.delete(t),b;case"[object Symbol]":if(Z)return Z.call(t)==Z.call(e)}return!1}(t,e,A,r,o,a,i);if(!(1&r)){var C=V&&_.call(t,"__wrapped__"),U=x&&_.call(e,"__wrapped__");if(C||U){var T=C?t.value():t,R=U?e.value():e;return i||(i=new n.Z),a(T,R,r,o,i)}}return!!S&&(i||(i=new n.Z),function(t,e,r,n,o,a){var i=1&r,c=(0,p.Z)(t),u=c.length;if(u!=(0,p.Z)(e).length&&!i)return!1;for(var s=u;s--;){var f=c[s];if(!(i?f in e:b.call(e,f)))return!1}var l=a.get(t),v=a.get(e);if(l&&v)return l==e&&v==t;var d=!0;a.set(t,e),a.set(e,t);for(var Z=i;++s<u;){var h=t[f=c[s]],y=e[f];if(n)var g=i?n(y,h,f,e,t,a):n(h,y,f,t,e,a);if(!(void 0===g?h===y||o(h,y,r,n,a):g)){d=!1;break}Z||(Z="constructor"==f)}if(d&&!Z){var j=t.constructor,w=e.constructor;j==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof j&&j instanceof j&&"function"==typeof w&&w instanceof w||(d=!1)}return a.delete(t),a.delete(e),d}(t,e,r,o,a,i))};var O=r(4897);const V=function t(e,r,n,o,a){return e===r||(null==e||null==r||!(0,O.Z)(e)&&!(0,O.Z)(r)?e!=e&&r!=r:A(e,r,n,o,t,a))}},3126:(t,e,r)=>{r.d(e,{Z:()=>i});var n=r(9494);const o=(0,r(6899).Z)(Object.keys,Object);var a=Object.prototype.hasOwnProperty;const i=function(t){if(!(0,n.Z)(t))return o(t);var e=[];for(var r in Object(t))a.call(t,r)&&"constructor"!=r&&e.push(r);return e}},6205:(t,e,r)=>{r.d(e,{Z:()=>d});var n=r(6575),o=r(5506),a=r(6776);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=t.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(i.Cache||a.Z),r}i.Cache=a.Z;var c=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,u=/\\(\\)?/g;const s=(f=i((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(c,(function(t,r,n,o){e.push(n?o.replace(u,"$1"):r||t)})),e}),(function(t){return 500===l.size&&l.clear(),t})),l=f.cache,f);var f,l,v=r(131);const d=function(t,e){return(0,n.Z)(t)?t:(0,o.Z)(t,e)?[t]:s((0,v.Z)(t))}},8924:(t,e,r)=>{r.d(e,{Z:()=>i});var n=r(6449),o=r(7451),a=r(825);const i=function(t){return(0,n.Z)(t,a.Z,o.Z)}},1325:(t,e,r)=>{r.d(e,{Z:()=>i});var n=r(6449),o=r(1830),a=r(9809);const i=function(t){return(0,n.Z)(t,a.Z,o.Z)}},4003:(t,e,r)=>{r.d(e,{Z:()=>n});const n=(0,r(6899).Z)(Object.getPrototypeOf,Object)},7451:(t,e,r)=>{r.d(e,{Z:()=>i});var n=r(1940),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols;const i=a?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,a=[];++r<n;){var i=t[r];e(i,r,t)&&(a[o++]=i)}return a}(a(t),(function(e){return o.call(t,e)})))}:n.Z},1830:(t,e,r)=>{r.d(e,{Z:()=>c});var n=r(4895),o=r(4003),a=r(7451),i=r(1940);const c=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)(0,n.Z)(e,(0,a.Z)(t)),t=(0,o.Z)(t);return e}:i.Z},6812:(t,e,r)=>{r.d(e,{Z:()=>E});var n=r(5441),o=r(658);const a=(0,n.Z)(o.Z,"DataView");var i=r(6763);const c=(0,n.Z)(o.Z,"Promise"),u=(0,n.Z)(o.Z,"Set"),s=(0,n.Z)(o.Z,"WeakMap");var f=r(1258),l=r(9441),v="[object Map]",d="[object Promise]",Z="[object Set]",p="[object WeakMap]",b="[object DataView]",h=(0,l.Z)(a),y=(0,l.Z)(i.Z),g=(0,l.Z)(c),j=(0,l.Z)(u),w=(0,l.Z)(s),m=f.Z;(a&&m(new a(new ArrayBuffer(1)))!=b||i.Z&&m(new i.Z)!=v||c&&m(c.resolve())!=d||u&&m(new u)!=Z||s&&m(new s)!=p)&&(m=function(t){var e=(0,f.Z)(t),r="[object Object]"==e?t.constructor:void 0,n=r?(0,l.Z)(r):"";if(n)switch(n){case h:return b;case y:return v;case g:return d;case j:return Z;case w:return p}return e});const E=m},5313:(t,e,r)=>{r.d(e,{Z:()=>o});var n=/^(?:0|[1-9]\d*)$/;const o=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&n.test(t))&&t>-1&&t%1==0&&t<e}},5506:(t,e,r)=>{r.d(e,{Z:()=>c});var n=r(6575),o=r(54),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;const c=function(t,e){if((0,n.Z)(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!(0,o.Z)(t))||i.test(t)||!a.test(t)||null!=e&&t in Object(e)}},9494:(t,e,r)=>{r.d(e,{Z:()=>o});var n=Object.prototype;const o=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},9801:(t,e,r)=>{r.d(e,{Z:()=>c});var n=r(5852),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=o&&"object"==typeof module&&module&&!module.nodeType&&module,i=a&&a.exports===o&&n.Z.process;const c=function(){try{return a&&a.require&&a.require("util").types||i&&i.binding&&i.binding("util")}catch(t){}}()},6899:(t,e,r)=>{r.d(e,{Z:()=>n});const n=function(t,e){return function(r){return t(e(r))}}},199:(t,e,r)=>{r.d(e,{Z:()=>o});var n=r(54);const o=function(t){if("string"==typeof t||(0,n.Z)(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},839:(t,e,r)=>{r.d(e,{Z:()=>$});var n=r(1890);var o=r(9616),a=r(1250);const i=function(t,e,r,n){var i=!r;r||(r={});for(var c=-1,u=e.length;++c<u;){var s=e[c],f=n?n(r[s],t[s],s,r,t):void 0;void 0===f&&(f=t[s]),i?(0,a.Z)(r,s,f):(0,o.Z)(r,s,f)}return r};var c=r(825);var u=r(9809);var s=r(658),f="object"==typeof exports&&exports&&!exports.nodeType&&exports,l=f&&"object"==typeof module&&module&&!module.nodeType&&module,v=l&&l.exports===f?s.Z.Buffer:void 0,d=v?v.allocUnsafe:void 0;var Z=r(7451);var p=r(1830);var b=r(8924),h=r(1325),y=r(6812),g=Object.prototype.hasOwnProperty;var j=r(4269);const w=function(t){var e=new t.constructor(t.byteLength);return new j.Z(e).set(new j.Z(t)),e};var m=/\w*$/;var E=r(7851),_=E.Z?E.Z.prototype:void 0,A=_?_.valueOf:void 0;const O=function(t,e,r){var n,o,a,i=t.constructor;switch(e){case"[object ArrayBuffer]":return w(t);case"[object Boolean]":case"[object Date]":return new i(+t);case"[object DataView]":return function(t,e){var r=e?w(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(t,e){var r=e?w(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}(t,r);case"[object Map]":case"[object Set]":return new i;case"[object Number]":case"[object String]":return new i(t);case"[object RegExp]":return(a=new(o=t).constructor(o.source,m.exec(o))).lastIndex=o.lastIndex,a;case"[object Symbol]":return n=t,A?Object(A.call(n)):{}}};var V=r(7275),x=Object.create;const S=function(){function t(){}return function(e){if(!(0,V.Z)(e))return{};if(x)return x(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();var C=r(4003),U=r(9494);var T=r(6575),R=r(5008),I=r(4897);var M=r(7133),L=r(9801),z=L.Z&&L.Z.isMap;const H=z?(0,M.Z)(z):function(t){return(0,I.Z)(t)&&"[object Map]"==(0,y.Z)(t)};var k=L.Z&&L.Z.isSet;const D=k?(0,M.Z)(k):function(t){return(0,I.Z)(t)&&"[object Set]"==(0,y.Z)(t)};var P="[object Arguments]",N="[object Function]",B="[object Object]",F={};F[P]=F["[object Array]"]=F["[object ArrayBuffer]"]=F["[object DataView]"]=F["[object Boolean]"]=F["[object Date]"]=F["[object Float32Array]"]=F["[object Float64Array]"]=F["[object Int8Array]"]=F["[object Int16Array]"]=F["[object Int32Array]"]=F["[object Map]"]=F["[object Number]"]=F[B]=F["[object RegExp]"]=F["[object Set]"]=F["[object String]"]=F["[object Symbol]"]=F["[object Uint8Array]"]=F["[object Uint8ClampedArray]"]=F["[object Uint16Array]"]=F["[object Uint32Array]"]=!0,F["[object Error]"]=F[N]=F["[object WeakMap]"]=!1;const W=function t(e,r,a,s,f,l){var v,j=1&r,w=2&r,m=4&r;if(a&&(v=f?a(e,s,f,l):a(e)),void 0!==v)return v;if(!(0,V.Z)(e))return e;var E=(0,T.Z)(e);if(E){if(v=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&g.call(t,"index")&&(r.index=t.index,r.input=t.input),r}(e),!j)return function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}(e,v)}else{var _=(0,y.Z)(e),A=_==N||"[object GeneratorFunction]"==_;if((0,R.Z)(e))return function(t,e){if(e)return t.slice();var r=t.length,n=d?d(r):new t.constructor(r);return t.copy(n),n}(e,j);if(_==B||_==P||A&&!f){if(v=w||A?{}:function(t){return"function"!=typeof t.constructor||(0,U.Z)(t)?{}:S((0,C.Z)(t))}(e),!j)return w?function(t,e){return i(t,(0,p.Z)(t),e)}(e,function(t,e){return t&&i(e,(0,u.Z)(e),t)}(v,e)):function(t,e){return i(t,(0,Z.Z)(t),e)}(e,function(t,e){return t&&i(e,(0,c.Z)(e),t)}(v,e))}else{if(!F[_])return f?e:{};v=O(e,_,j)}}l||(l=new n.Z);var x=l.get(e);if(x)return x;l.set(e,v),D(e)?e.forEach((function(n){v.add(t(n,r,a,n,e,l))})):H(e)&&e.forEach((function(n,o){v.set(o,t(n,r,a,o,e,l))}));var I=m?w?h.Z:b.Z:w?u.Z:c.Z,M=E?void 0:I(e);return function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););}(M||e,(function(n,i){M&&(n=e[i=n]),(0,o.Z)(v,i,t(n,r,a,i,e,l))})),v},$=function(t){return W(t,5)}},744:(t,e,r)=>{r.d(e,{Z:()=>h});var n=r(7275),o=r(658);const a=function(){return o.Z.Date.now()};var i=/\s/;var c=/^\s+/;const u=function(t){return t?t.slice(0,function(t){for(var e=t.length;e--&&i.test(t.charAt(e)););return e}(t)+1).replace(c,""):t};var s=r(54),f=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,v=/^0o[0-7]+$/i,d=parseInt;const Z=function(t){if("number"==typeof t)return t;if((0,s.Z)(t))return NaN;if((0,n.Z)(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=(0,n.Z)(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=u(t);var r=l.test(t);return r||v.test(t)?d(t.slice(2),r?2:8):f.test(t)?NaN:+t};var p=Math.max,b=Math.min;const h=function(t,e,r){var o,i,c,u,s,f,l=0,v=!1,d=!1,h=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function y(e){var r=o,n=i;return o=i=void 0,l=e,u=t.apply(n,r)}function g(t){var r=t-f;return void 0===f||r>=e||r<0||d&&t-l>=c}function j(){var t=a();if(g(t))return w(t);s=setTimeout(j,function(t){var r=e-(t-f);return d?b(r,c-(t-l)):r}(t))}function w(t){return s=void 0,h&&o?y(t):(o=i=void 0,u)}function m(){var t=a(),r=g(t);if(o=arguments,i=this,f=t,r){if(void 0===s)return function(t){return l=t,s=setTimeout(j,e),v?y(t):u}(f);if(d)return clearTimeout(s),s=setTimeout(j,e),y(f)}return void 0===s&&(s=setTimeout(j,e)),u}return e=Z(e)||0,(0,n.Z)(r)&&(v=!!r.leading,c=(d="maxWait"in r)?p(Z(r.maxWait)||0,e):c,h="trailing"in r?!!r.trailing:h),m.cancel=function(){void 0!==s&&clearTimeout(s),l=0,o=f=i=s=void 0},m.flush=function(){return void 0===s?u:w(a())},m}},5008:(t,e,r)=>{r.d(e,{Z:()=>c});var n=r(658);var o="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=o&&"object"==typeof module&&module&&!module.nodeType&&module,i=a&&a.exports===o?n.Z.Buffer:void 0;const c=(i?i.isBuffer:void 0)||function(){return!1}},8403:(t,e,r)=>{r.d(e,{Z:()=>v});var n=r(3126),o=r(6812),a=r(4996),i=r(6575),c=r(6905),u=r(5008),s=r(9494),f=r(8485),l=Object.prototype.hasOwnProperty;const v=function(t){if(null==t)return!0;if((0,c.Z)(t)&&((0,i.Z)(t)||"string"==typeof t||"function"==typeof t.splice||(0,u.Z)(t)||(0,f.Z)(t)||(0,a.Z)(t)))return!t.length;var e=(0,o.Z)(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if((0,s.Z)(t))return!(0,n.Z)(t).length;for(var r in t)if(l.call(t,r))return!1;return!0}},988:(t,e,r)=>{r.d(e,{Z:()=>o});var n=r(8165);const o=function(t,e){return(0,n.Z)(t,e)}},54:(t,e,r)=>{r.d(e,{Z:()=>a});var n=r(1258),o=r(4897);const a=function(t){return"symbol"==typeof t||(0,o.Z)(t)&&"[object Symbol]"==(0,n.Z)(t)}},8485:(t,e,r)=>{r.d(e,{Z:()=>f});var n=r(1258),o=r(3492),a=r(4897),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1;var c=r(7133),u=r(9801),s=u.Z&&u.Z.isTypedArray;const f=s?(0,c.Z)(s):function(t){return(0,a.Z)(t)&&(0,o.Z)(t.length)&&!!i[(0,n.Z)(t)]}},825:(t,e,r)=>{r.d(e,{Z:()=>i});var n=r(1602),o=r(3126),a=r(6905);const i=function(t){return(0,a.Z)(t)?(0,n.Z)(t):(0,o.Z)(t)}},9809:(t,e,r)=>{r.d(e,{Z:()=>s});var n=r(1602),o=r(7275),a=r(9494);var i=Object.prototype.hasOwnProperty;const c=function(t){if(!(0,o.Z)(t))return function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}(t);var e=(0,a.Z)(t),r=[];for(var n in t)("constructor"!=n||!e&&i.call(t,n))&&r.push(n);return r};var u=r(6905);const s=function(t){return(0,u.Z)(t)?(0,n.Z)(t,!0):c(t)}},9340:(t,e,r)=>{r.d(e,{Z:()=>V});var n=r(2363),o=r(1890),a=r(8165);var i=r(7275);const c=function(t){return t==t&&!(0,i.Z)(t)};var u=r(825);const s=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}},f=function(t){var e=function(t){for(var e=(0,u.Z)(t),r=e.length;r--;){var n=e[r],o=t[n];e[r]=[n,o,c(o)]}return e}(t);return 1==e.length&&e[0][2]?s(e[0][0],e[0][1]):function(r){return r===t||function(t,e,r,n){var i=r.length,c=i,u=!n;if(null==t)return!c;for(t=Object(t);i--;){var s=r[i];if(u&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++i<c;){var f=(s=r[i])[0],l=t[f],v=s[1];if(u&&s[2]){if(void 0===l&&!(f in t))return!1}else{var d=new o.Z;if(n)var Z=n(l,v,f,t,e,d);if(!(void 0===Z?(0,a.Z)(v,l,3,n,d):Z))return!1}}return!0}(r,t,e)}};var l=r(7106);const v=function(t,e){return null!=t&&e in Object(t)};var d=r(6205),Z=r(4996),p=r(6575),b=r(5313),h=r(3492),y=r(199);const g=function(t,e){return null!=t&&function(t,e,r){for(var n=-1,o=(e=(0,d.Z)(e,t)).length,a=!1;++n<o;){var i=(0,y.Z)(e[n]);if(!(a=null!=t&&r(t,i)))break;t=t[i]}return a||++n!=o?a:!!(o=null==t?0:t.length)&&(0,h.Z)(o)&&(0,b.Z)(i,o)&&((0,p.Z)(t)||(0,Z.Z)(t))}(t,e,v)};var j=r(5506);const w=function(t,e){return(0,j.Z)(t)&&c(e)?s((0,y.Z)(t),e):function(r){var n=function(t,e,r){var n=null==t?void 0:(0,l.Z)(t,e);return void 0===n?r:n}(r,t);return void 0===n&&n===e?g(r,t):(0,a.Z)(e,n,3)}};var m=r(1116);const E=function(t){return(0,j.Z)(t)?(e=(0,y.Z)(t),function(t){return null==t?void 0:t[e]}):function(t){return function(e){return(0,l.Z)(e,t)}}(t);var e};var _=r(9616);const A=function(t,e,r,n){if(!(0,i.Z)(t))return t;for(var o=-1,a=(e=(0,d.Z)(e,t)).length,c=a-1,u=t;null!=u&&++o<a;){var s=(0,y.Z)(e[o]),f=r;if("__proto__"===s||"constructor"===s||"prototype"===s)return t;if(o!=c){var l=u[s];void 0===(f=n?n(l,s,u):void 0)&&(f=(0,i.Z)(l)?l:(0,b.Z)(e[o+1])?[]:{})}(0,_.Z)(u,s,f),u=u[s]}return t};var O=r(1325);const V=function(t,e){if(null==t)return{};var r,o=(0,n.Z)((0,O.Z)(t),(function(t){return[t]}));return e="function"==typeof(r=e)?r:null==r?m.Z:"object"==typeof r?(0,p.Z)(r)?w(r[0],r[1]):f(r):E(r),function(t,e,r){for(var n=-1,o=e.length,a={};++n<o;){var i=e[n],c=(0,l.Z)(t,i);r(c,i)&&A(a,(0,d.Z)(i,t),c)}return a}(t,o,(function(t,r){return e(t,r[0])}))}},1940:(t,e,r)=>{r.d(e,{Z:()=>n});const n=function(){return[]}},131:(t,e,r)=>{r.d(e,{Z:()=>f});var n=r(7851),o=r(2363),a=r(6575),i=r(54),c=n.Z?n.Z.prototype:void 0,u=c?c.toString:void 0;const s=function t(e){if("string"==typeof e)return e;if((0,a.Z)(e))return(0,o.Z)(e,t)+"";if((0,i.Z)(e))return u?u.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r},f=function(t){return null==t?"":s(t)}},7474:(t,e,r)=>{r.d(e,{Z:()=>a});var n=r(131),o=0;const a=function(t){var e=++o;return(0,n.Z)(t)+e}},5751:(t,e,r)=>{r.d(e,{Z:()=>c});var n=r(6205);var o=r(7106);const a=function(t,e){return e.length<2?t:(0,o.Z)(t,function(t,e,r){var n=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(r=r>o?o:r)<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var a=Array(o);++n<o;)a[n]=t[n+e];return a}(e,0,-1))};var i=r(199);const c=function(t,e){return null==t||function(t,e){return e=(0,n.Z)(e,t),null==(t=a(t,e))||delete t[(0,i.Z)((r=e,o=null==r?0:r.length,o?r[o-1]:void 0))];var r,o}(t,e)}},4126:(t,e,r)=>{r.d(e,{ZP:()=>u});var n=r(5776),o=r(1374),a=r(9631);const i=n.use||(t=>{if("pending"===t.status)throw t;if("fulfilled"===t.status)return t.value;throw"rejected"===t.status?t.reason:(t.status="pending",t.then((e=>{t.status="fulfilled",t.value=e}),(e=>{t.status="rejected",t.reason=e})),t)}),c={dedupe:!0},u=(a.OBJECT.defineProperty(a.SWRConfig,"defaultValue",{value:a.defaultConfig}),(0,a.withArgs)(((t,e,r)=>{const{cache:u,compare:s,suspense:f,fallbackData:l,revalidateOnMount:v,revalidateIfStale:d,refreshInterval:Z,refreshWhenHidden:p,refreshWhenOffline:b,keepPreviousData:h}=r,[y,g,j,w]=a.SWRGlobalState.get(u),[m,E]=(0,a.serialize)(t),_=(0,n.useRef)(!1),A=(0,n.useRef)(!1),O=(0,n.useRef)(m),V=(0,n.useRef)(e),x=(0,n.useRef)(r),S=()=>x.current,C=()=>S().isVisible()&&S().isOnline(),[U,T,R,I]=(0,a.createCacheHelper)(u,m),M=(0,n.useRef)({}).current,L=(0,a.isUndefined)(l)?r.fallback[m]:l,z=(t,e)=>{for(const r in M){const n=r;if("data"===n){if(!s(t[n],e[n])){if(!(0,a.isUndefined)(t[n]))return!1;if(!s($,e[n]))return!1}}else if(e[n]!==t[n])return!1}return!0},H=(0,n.useMemo)((()=>{const t=!!m&&!!e&&((0,a.isUndefined)(v)?!S().isPaused()&&!f&&(!!(0,a.isUndefined)(d)||d):v),r=e=>{const r=(0,a.mergeObjects)(e);return delete r._k,t?{isValidating:!0,isLoading:!0,...r}:r},n=U(),o=I(),i=r(n),c=n===o?i:r(o);let u=i;return[()=>{const t=r(U());return z(t,u)?(u.data=t.data,u.isLoading=t.isLoading,u.isValidating=t.isValidating,u.error=t.error,u):(u=t,t)},()=>c]}),[u,m]),k=(0,o.useSyncExternalStore)((0,n.useCallback)((t=>R(m,((e,r)=>{z(r,e)||t()}))),[u,m]),H[0],H[1]),D=!_.current,P=y[m]&&y[m].length>0,N=k.data,B=(0,a.isUndefined)(N)?L:N,F=k.error,W=(0,n.useRef)(B),$=h?(0,a.isUndefined)(N)?W.current:N:B,G=!(P&&!(0,a.isUndefined)(F))&&(D&&!(0,a.isUndefined)(v)?v:!S().isPaused()&&(f?!(0,a.isUndefined)(B)&&d:(0,a.isUndefined)(B)||d)),q=!!(m&&e&&D&&G),Y=(0,a.isUndefined)(k.isValidating)?q:k.isValidating,J=(0,a.isUndefined)(k.isLoading)?q:k.isLoading,K=(0,n.useCallback)((async t=>{const e=V.current;if(!m||!e||A.current||S().isPaused())return!1;let n,o,i=!0;const c=t||{},u=!j[m]||!c.dedupe,f=()=>a.IS_REACT_LEGACY?!A.current&&m===O.current&&_.current:m===O.current,l={isValidating:!1,isLoading:!1},v=()=>{T(l)},d=()=>{const t=j[m];t&&t[1]===o&&delete j[m]},Z={isValidating:!0};(0,a.isUndefined)(U().data)&&(Z.isLoading=!0);try{if(u&&(T(Z),r.loadingTimeout&&(0,a.isUndefined)(U().data)&&setTimeout((()=>{i&&f()&&S().onLoadingSlow(m,r)}),r.loadingTimeout),j[m]=[e(E),(0,a.getTimestamp)()]),[n,o]=j[m],n=await n,u&&setTimeout(d,r.dedupingInterval),!j[m]||j[m][1]!==o)return u&&f()&&S().onDiscarded(m),!1;l.error=a.UNDEFINED;const t=g[m];if(!(0,a.isUndefined)(t)&&(o<=t[0]||o<=t[1]||0===t[1]))return v(),u&&f()&&S().onDiscarded(m),!1;const c=U().data;l.data=s(c,n)?c:n,u&&f()&&S().onSuccess(n,m,r)}catch(t){d();const e=S(),{shouldRetryOnError:r}=e;e.isPaused()||(l.error=t,u&&f()&&(e.onError(t,m,e),(!0===r||(0,a.isFunction)(r)&&r(t))&&C()&&e.onErrorRetry(t,m,e,(t=>{const e=y[m];e&&e[0]&&e[0](a.revalidateEvents.ERROR_REVALIDATE_EVENT,t)}),{retryCount:(c.retryCount||0)+1,dedupe:!0})))}return i=!1,v(),!0}),[m,u]),Q=(0,n.useCallback)(((...t)=>(0,a.internalMutate)(u,O.current,...t)),[]);if((0,a.useIsomorphicLayoutEffect)((()=>{V.current=e,x.current=r,(0,a.isUndefined)(N)||(W.current=N)})),(0,a.useIsomorphicLayoutEffect)((()=>{if(!m)return;const t=K.bind(a.UNDEFINED,c);let e=0;const r=(0,a.subscribeCallback)(m,y,((r,n={})=>{if(r==a.revalidateEvents.FOCUS_EVENT){const r=Date.now();S().revalidateOnFocus&&r>e&&C()&&(e=r+S().focusThrottleInterval,t())}else if(r==a.revalidateEvents.RECONNECT_EVENT)S().revalidateOnReconnect&&C()&&t();else{if(r==a.revalidateEvents.MUTATE_EVENT)return K();if(r==a.revalidateEvents.ERROR_REVALIDATE_EVENT)return K(n)}}));return A.current=!1,O.current=m,_.current=!0,T({_k:E}),G&&((0,a.isUndefined)(B)||a.IS_SERVER?t():(0,a.rAF)(t)),()=>{A.current=!0,r()}}),[m]),(0,a.useIsomorphicLayoutEffect)((()=>{let t;function e(){const e=(0,a.isFunction)(Z)?Z(U().data):Z;e&&-1!==t&&(t=setTimeout(r,e))}function r(){U().error||!p&&!S().isVisible()||!b&&!S().isOnline()?e():K(c).then(e)}return e(),()=>{t&&(clearTimeout(t),t=-1)}}),[Z,p,b,m]),(0,n.useDebugValue)($),f&&(0,a.isUndefined)(B)&&m){if(!a.IS_REACT_LEGACY&&a.IS_SERVER)throw new Error("Fallback data is required when using suspense in SSR.");V.current=e,x.current=r,A.current=!1;const t=w[m];if(!(0,a.isUndefined)(t)){const e=Q(t);i(e)}if(!(0,a.isUndefined)(F))throw F;{const t=K(c);(0,a.isUndefined)($)||(t.status="fulfilled",t.value=!0),i(t)}}return{mutate:Q,get data(){return M.data=!0,$},get error(){return M.error=!0,F},get isValidating(){return M.isValidating=!0,Y},get isLoading(){return M.isLoading=!0,J}}})))}}]);
|
|
2
|
+
"use strict";(globalThis.webpackChunk_openmrs_esm_implementer_tools_app=globalThis.webpackChunk_openmrs_esm_implementer_tools_app||[]).push([[329],{8696:(t,e,r)=>{r.d(e,{AG:()=>l,vc:()=>v});var n,o,a,i,c,u=r(5776),s=r.n(u),f=r(6248);const l=s().forwardRef((function(t,e){let{children:r,size:o=16,...a}=t;return s().createElement(f.I,{width:o,height:o,ref:e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...a},n||(n=s().createElement("path",{d:"M18,28A12,12,0,1,0,6,16v6.2L2.4,18.6,1,20l6,6,6-6-1.4-1.4L8,22.2V16H8A10,10,0,1,1,18,26Z"})),r)})),v=s().forwardRef((function(t,e){let{children:r,size:n=16,...u}=t;return 16===n||"16"===n||"16px"===n?s().createElement(f.I,{width:n,height:n,ref:e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...u},o||(o=s().createElement("path",{d:"M13.9,4.6l-2.5-2.5C11.3,2.1,11.1,2,11,2H3C2.4,2,2,2.4,2,3v10c0,0.6,0.4,1,1,1h10c0.6,0,1-0.4,1-1V5 C14,4.9,13.9,4.7,13.9,4.6z M6,3h4v2H6V3z M10,13H6V9h4V13z M11,13V9c0-0.6-0.4-1-1-1H6C5.4,8,5,8.4,5,9v4H3V3h2v2c0,0.6,0.4,1,1,1 h4c0.6,0,1-0.4,1-1V3.2l2,2V13H11z"})),r):20===n||"20"===n||"20px"===n?s().createElement(f.I,{width:n,height:n,ref:e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...u},a||(a=s().createElement("path",{d:"M17.8,5.5l-3.3-3.3C14.3,2.1,14.2,2,14,2H3.3C2.6,2,2,2.6,2,3.3v13.3C2,17.4,2.6,18,3.3,18h13.3c0.7,0,1.4-0.5,1.4-1.2V6.1 C18,5.7,17.9,5.7,17.8,5.5z M7.3,3.3h5.3v3.3H7.3V3.3z M12.7,16.7H7.3v-5.3h5.3L12.7,16.7L12.7,16.7z M14,16.7v-5.3 c0-0.7-0.6-1.3-1.3-1.3H7.3C6.6,10,6,10.6,6,11.3v5.3H3.3V3.3H6v3.3C6,7.4,6.6,8,7.3,8h5.3C13.4,8,14,7.4,14,6.7v-3l2.7,2.7v10.4 L14,16.7L14,16.7z"})),r):24===n||"24"===n||"24px"===n?s().createElement(f.I,{width:n,height:n,ref:e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...u},i||(i=s().createElement("path",{d:"M20.8,7L17,3.2C16.9,3.1,16.7,3,16.5,3h-12C3.7,3,3,3.7,3,4.5v15C3,20.3,3.7,21,4.5,21h15c0.8,0,1.5-0.7,1.5-1.5v-12 C21,7.3,20.9,7.1,20.8,7z M9,4.5h6v3H9V4.5z M15,19.5H9v-6h6V19.5z M16.5,19.5v-6c0-0.8-0.7-1.5-1.5-1.5H9c-0.8,0-1.5,0.7-1.5,1.5v6 h-3v-15h3v3C7.5,8.3,8.2,9,9,9h6c0.8,0,1.5-0.7,1.5-1.5V4.8l3,3v11.7H16.5z"})),r):s().createElement(f.I,{width:n,height:n,ref:e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...u},c||(c=s().createElement("path",{d:"M27.71,9.29l-5-5A1,1,0,0,0,22,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V10A1,1,0,0,0,27.71,9.29ZM12,6h8v4H12Zm8,20H12V18h8Zm2,0V18a2,2,0,0,0-2-2H12a2,2,0,0,0-2,2v8H6V6h4v4a2,2,0,0,0,2,2h8a2,2,0,0,0,2-2V6.41l4,4V26Z"})),r)}))},2173:(t,e,r)=>{var n=r(5776),o="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},a=n.useState,i=n.useEffect,c=n.useLayoutEffect,u=n.useDebugValue;function s(t){var e=t.getSnapshot;t=t.value;try{var r=e();return!o(t,r)}catch(t){return!0}}var f="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var r=e(),n=a({inst:{value:r,getSnapshot:e}}),o=n[0].inst,f=n[1];return c((function(){o.value=r,o.getSnapshot=e,s(o)&&f({inst:o})}),[t,r,e]),i((function(){return s(o)&&f({inst:o}),t((function(){s(o)&&f({inst:o})}))}),[t]),u(r),r};e.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:f},1374:(t,e,r)=>{t.exports=r(2173)},1890:(t,e,r)=>{r.d(e,{Z:()=>c});var n=r(7487);var o=r(6763),a=r(6776);function i(t){var e=this.__data__=new n.Z(t);this.size=e.size}i.prototype.clear=function(){this.__data__=new n.Z,this.size=0},i.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},i.prototype.get=function(t){return this.__data__.get(t)},i.prototype.has=function(t){return this.__data__.has(t)},i.prototype.set=function(t,e){var r=this.__data__;if(r instanceof n.Z){var i=r.__data__;if(!o.Z||i.length<199)return i.push([t,e]),this.size=++r.size,this;r=this.__data__=new a.Z(i)}return r.set(t,e),this.size=r.size,this};const c=i},4269:(t,e,r)=>{r.d(e,{Z:()=>n});const n=r(658).Z.Uint8Array},1602:(t,e,r)=>{r.d(e,{Z:()=>s});var n=r(4996),o=r(6575),a=r(5008),i=r(5313),c=r(8485),u=Object.prototype.hasOwnProperty;const s=function(t,e){var r=(0,o.Z)(t),s=!r&&(0,n.Z)(t),f=!r&&!s&&(0,a.Z)(t),l=!r&&!s&&!f&&(0,c.Z)(t),v=r||s||f||l,d=v?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],Z=d.length;for(var p in t)!e&&!u.call(t,p)||v&&("length"==p||f&&("offset"==p||"parent"==p)||l&&("buffer"==p||"byteLength"==p||"byteOffset"==p)||(0,i.Z)(p,Z))||d.push(p);return d}},9616:(t,e,r)=>{r.d(e,{Z:()=>i});var n=r(1250),o=r(8670),a=Object.prototype.hasOwnProperty;const i=function(t,e,r){var i=t[e];a.call(t,e)&&(0,o.Z)(i,r)&&(void 0!==r||e in t)||(0,n.Z)(t,e,r)}},1250:(t,e,r)=>{r.d(e,{Z:()=>o});var n=r(6684);const o=function(t,e,r){"__proto__"==e&&n.Z?(0,n.Z)(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},7106:(t,e,r)=>{r.d(e,{Z:()=>a});var n=r(6205),o=r(199);const a=function(t,e){for(var r=0,a=(e=(0,n.Z)(e,t)).length;null!=t&&r<a;)t=t[(0,o.Z)(e[r++])];return r&&r==a?t:void 0}},6449:(t,e,r)=>{r.d(e,{Z:()=>a});var n=r(4895),o=r(6575);const a=function(t,e,r){var a=e(t);return(0,o.Z)(t)?a:(0,n.Z)(a,r(t))}},8165:(t,e,r)=>{r.d(e,{Z:()=>V});var n=r(1890),o=r(7693);const a=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1};var i=r(2248);const c=function(t,e,r,n,c,u){var s=1&r,f=t.length,l=e.length;if(f!=l&&!(s&&l>f))return!1;var v=u.get(t),d=u.get(e);if(v&&d)return v==e&&d==t;var Z=-1,p=!0,b=2&r?new o.Z:void 0;for(u.set(t,e),u.set(e,t);++Z<f;){var h=t[Z],y=e[Z];if(n)var g=s?n(y,h,Z,e,t,u):n(h,y,Z,t,e,u);if(void 0!==g){if(g)continue;p=!1;break}if(b){if(!a(e,(function(t,e){if(!(0,i.Z)(b,e)&&(h===t||c(h,t,r,n,u)))return b.push(e)}))){p=!1;break}}else if(h!==y&&!c(h,y,r,n,u)){p=!1;break}}return u.delete(t),u.delete(e),p};var u=r(7851),s=r(4269),f=r(8670);const l=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r},v=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r};var d=u.Z?u.Z.prototype:void 0,Z=d?d.valueOf:void 0;var p=r(8924),b=Object.prototype.hasOwnProperty;var h=r(6812),y=r(6575),g=r(5008),j=r(8485),w="[object Arguments]",m="[object Array]",E="[object Object]",_=Object.prototype.hasOwnProperty;const A=function(t,e,r,o,a,i){var u=(0,y.Z)(t),d=(0,y.Z)(e),A=u?m:(0,h.Z)(t),O=d?m:(0,h.Z)(e),V=(A=A==w?E:A)==E,x=(O=O==w?E:O)==E,S=A==O;if(S&&(0,g.Z)(t)){if(!(0,g.Z)(e))return!1;u=!0,V=!1}if(S&&!V)return i||(i=new n.Z),u||(0,j.Z)(t)?c(t,e,r,o,a,i):function(t,e,r,n,o,a,i){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!a(new s.Z(t),new s.Z(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return(0,f.Z)(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var u=l;case"[object Set]":var d=1&n;if(u||(u=v),t.size!=e.size&&!d)return!1;var p=i.get(t);if(p)return p==e;n|=2,i.set(t,e);var b=c(u(t),u(e),n,o,a,i);return i.delete(t),b;case"[object Symbol]":if(Z)return Z.call(t)==Z.call(e)}return!1}(t,e,A,r,o,a,i);if(!(1&r)){var C=V&&_.call(t,"__wrapped__"),U=x&&_.call(e,"__wrapped__");if(C||U){var T=C?t.value():t,R=U?e.value():e;return i||(i=new n.Z),a(T,R,r,o,i)}}return!!S&&(i||(i=new n.Z),function(t,e,r,n,o,a){var i=1&r,c=(0,p.Z)(t),u=c.length;if(u!=(0,p.Z)(e).length&&!i)return!1;for(var s=u;s--;){var f=c[s];if(!(i?f in e:b.call(e,f)))return!1}var l=a.get(t),v=a.get(e);if(l&&v)return l==e&&v==t;var d=!0;a.set(t,e),a.set(e,t);for(var Z=i;++s<u;){var h=t[f=c[s]],y=e[f];if(n)var g=i?n(y,h,f,e,t,a):n(h,y,f,t,e,a);if(!(void 0===g?h===y||o(h,y,r,n,a):g)){d=!1;break}Z||(Z="constructor"==f)}if(d&&!Z){var j=t.constructor,w=e.constructor;j==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof j&&j instanceof j&&"function"==typeof w&&w instanceof w||(d=!1)}return a.delete(t),a.delete(e),d}(t,e,r,o,a,i))};var O=r(4897);const V=function t(e,r,n,o,a){return e===r||(null==e||null==r||!(0,O.Z)(e)&&!(0,O.Z)(r)?e!=e&&r!=r:A(e,r,n,o,t,a))}},3126:(t,e,r)=>{r.d(e,{Z:()=>i});var n=r(9494);const o=(0,r(6899).Z)(Object.keys,Object);var a=Object.prototype.hasOwnProperty;const i=function(t){if(!(0,n.Z)(t))return o(t);var e=[];for(var r in Object(t))a.call(t,r)&&"constructor"!=r&&e.push(r);return e}},6205:(t,e,r)=>{r.d(e,{Z:()=>d});var n=r(6575),o=r(5506),a=r(6776);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=t.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(i.Cache||a.Z),r}i.Cache=a.Z;var c=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,u=/\\(\\)?/g;const s=(f=i((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(c,(function(t,r,n,o){e.push(n?o.replace(u,"$1"):r||t)})),e}),(function(t){return 500===l.size&&l.clear(),t})),l=f.cache,f);var f,l,v=r(131);const d=function(t,e){return(0,n.Z)(t)?t:(0,o.Z)(t,e)?[t]:s((0,v.Z)(t))}},8924:(t,e,r)=>{r.d(e,{Z:()=>i});var n=r(6449),o=r(7451),a=r(825);const i=function(t){return(0,n.Z)(t,a.Z,o.Z)}},1325:(t,e,r)=>{r.d(e,{Z:()=>i});var n=r(6449),o=r(1830),a=r(9809);const i=function(t){return(0,n.Z)(t,a.Z,o.Z)}},4003:(t,e,r)=>{r.d(e,{Z:()=>n});const n=(0,r(6899).Z)(Object.getPrototypeOf,Object)},7451:(t,e,r)=>{r.d(e,{Z:()=>i});var n=r(1940),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols;const i=a?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,a=[];++r<n;){var i=t[r];e(i,r,t)&&(a[o++]=i)}return a}(a(t),(function(e){return o.call(t,e)})))}:n.Z},1830:(t,e,r)=>{r.d(e,{Z:()=>c});var n=r(4895),o=r(4003),a=r(7451),i=r(1940);const c=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)(0,n.Z)(e,(0,a.Z)(t)),t=(0,o.Z)(t);return e}:i.Z},6812:(t,e,r)=>{r.d(e,{Z:()=>E});var n=r(5441),o=r(658);const a=(0,n.Z)(o.Z,"DataView");var i=r(6763);const c=(0,n.Z)(o.Z,"Promise"),u=(0,n.Z)(o.Z,"Set"),s=(0,n.Z)(o.Z,"WeakMap");var f=r(1258),l=r(9441),v="[object Map]",d="[object Promise]",Z="[object Set]",p="[object WeakMap]",b="[object DataView]",h=(0,l.Z)(a),y=(0,l.Z)(i.Z),g=(0,l.Z)(c),j=(0,l.Z)(u),w=(0,l.Z)(s),m=f.Z;(a&&m(new a(new ArrayBuffer(1)))!=b||i.Z&&m(new i.Z)!=v||c&&m(c.resolve())!=d||u&&m(new u)!=Z||s&&m(new s)!=p)&&(m=function(t){var e=(0,f.Z)(t),r="[object Object]"==e?t.constructor:void 0,n=r?(0,l.Z)(r):"";if(n)switch(n){case h:return b;case y:return v;case g:return d;case j:return Z;case w:return p}return e});const E=m},5313:(t,e,r)=>{r.d(e,{Z:()=>o});var n=/^(?:0|[1-9]\d*)$/;const o=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&n.test(t))&&t>-1&&t%1==0&&t<e}},5506:(t,e,r)=>{r.d(e,{Z:()=>c});var n=r(6575),o=r(54),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;const c=function(t,e){if((0,n.Z)(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!(0,o.Z)(t))||i.test(t)||!a.test(t)||null!=e&&t in Object(e)}},9494:(t,e,r)=>{r.d(e,{Z:()=>o});var n=Object.prototype;const o=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},9801:(t,e,r)=>{r.d(e,{Z:()=>c});var n=r(5852),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=o&&"object"==typeof module&&module&&!module.nodeType&&module,i=a&&a.exports===o&&n.Z.process;const c=function(){try{return a&&a.require&&a.require("util").types||i&&i.binding&&i.binding("util")}catch(t){}}()},6899:(t,e,r)=>{r.d(e,{Z:()=>n});const n=function(t,e){return function(r){return t(e(r))}}},199:(t,e,r)=>{r.d(e,{Z:()=>o});var n=r(54);const o=function(t){if("string"==typeof t||(0,n.Z)(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},839:(t,e,r)=>{r.d(e,{Z:()=>$});var n=r(1890);var o=r(9616),a=r(1250);const i=function(t,e,r,n){var i=!r;r||(r={});for(var c=-1,u=e.length;++c<u;){var s=e[c],f=n?n(r[s],t[s],s,r,t):void 0;void 0===f&&(f=t[s]),i?(0,a.Z)(r,s,f):(0,o.Z)(r,s,f)}return r};var c=r(825);var u=r(9809);var s=r(658),f="object"==typeof exports&&exports&&!exports.nodeType&&exports,l=f&&"object"==typeof module&&module&&!module.nodeType&&module,v=l&&l.exports===f?s.Z.Buffer:void 0,d=v?v.allocUnsafe:void 0;var Z=r(7451);var p=r(1830);var b=r(8924),h=r(1325),y=r(6812),g=Object.prototype.hasOwnProperty;var j=r(4269);const w=function(t){var e=new t.constructor(t.byteLength);return new j.Z(e).set(new j.Z(t)),e};var m=/\w*$/;var E=r(7851),_=E.Z?E.Z.prototype:void 0,A=_?_.valueOf:void 0;const O=function(t,e,r){var n,o,a,i=t.constructor;switch(e){case"[object ArrayBuffer]":return w(t);case"[object Boolean]":case"[object Date]":return new i(+t);case"[object DataView]":return function(t,e){var r=e?w(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(t,e){var r=e?w(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}(t,r);case"[object Map]":case"[object Set]":return new i;case"[object Number]":case"[object String]":return new i(t);case"[object RegExp]":return(a=new(o=t).constructor(o.source,m.exec(o))).lastIndex=o.lastIndex,a;case"[object Symbol]":return n=t,A?Object(A.call(n)):{}}};var V=r(7275),x=Object.create;const S=function(){function t(){}return function(e){if(!(0,V.Z)(e))return{};if(x)return x(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();var C=r(4003),U=r(9494);var T=r(6575),R=r(5008),I=r(4897);var M=r(7133),L=r(9801),z=L.Z&&L.Z.isMap;const H=z?(0,M.Z)(z):function(t){return(0,I.Z)(t)&&"[object Map]"==(0,y.Z)(t)};var k=L.Z&&L.Z.isSet;const D=k?(0,M.Z)(k):function(t){return(0,I.Z)(t)&&"[object Set]"==(0,y.Z)(t)};var P="[object Arguments]",N="[object Function]",B="[object Object]",F={};F[P]=F["[object Array]"]=F["[object ArrayBuffer]"]=F["[object DataView]"]=F["[object Boolean]"]=F["[object Date]"]=F["[object Float32Array]"]=F["[object Float64Array]"]=F["[object Int8Array]"]=F["[object Int16Array]"]=F["[object Int32Array]"]=F["[object Map]"]=F["[object Number]"]=F[B]=F["[object RegExp]"]=F["[object Set]"]=F["[object String]"]=F["[object Symbol]"]=F["[object Uint8Array]"]=F["[object Uint8ClampedArray]"]=F["[object Uint16Array]"]=F["[object Uint32Array]"]=!0,F["[object Error]"]=F[N]=F["[object WeakMap]"]=!1;const W=function t(e,r,a,s,f,l){var v,j=1&r,w=2&r,m=4&r;if(a&&(v=f?a(e,s,f,l):a(e)),void 0!==v)return v;if(!(0,V.Z)(e))return e;var E=(0,T.Z)(e);if(E){if(v=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&g.call(t,"index")&&(r.index=t.index,r.input=t.input),r}(e),!j)return function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}(e,v)}else{var _=(0,y.Z)(e),A=_==N||"[object GeneratorFunction]"==_;if((0,R.Z)(e))return function(t,e){if(e)return t.slice();var r=t.length,n=d?d(r):new t.constructor(r);return t.copy(n),n}(e,j);if(_==B||_==P||A&&!f){if(v=w||A?{}:function(t){return"function"!=typeof t.constructor||(0,U.Z)(t)?{}:S((0,C.Z)(t))}(e),!j)return w?function(t,e){return i(t,(0,p.Z)(t),e)}(e,function(t,e){return t&&i(e,(0,u.Z)(e),t)}(v,e)):function(t,e){return i(t,(0,Z.Z)(t),e)}(e,function(t,e){return t&&i(e,(0,c.Z)(e),t)}(v,e))}else{if(!F[_])return f?e:{};v=O(e,_,j)}}l||(l=new n.Z);var x=l.get(e);if(x)return x;l.set(e,v),D(e)?e.forEach((function(n){v.add(t(n,r,a,n,e,l))})):H(e)&&e.forEach((function(n,o){v.set(o,t(n,r,a,o,e,l))}));var I=m?w?h.Z:b.Z:w?u.Z:c.Z,M=E?void 0:I(e);return function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););}(M||e,(function(n,i){M&&(n=e[i=n]),(0,o.Z)(v,i,t(n,r,a,i,e,l))})),v},$=function(t){return W(t,5)}},744:(t,e,r)=>{r.d(e,{Z:()=>h});var n=r(7275),o=r(658);const a=function(){return o.Z.Date.now()};var i=/\s/;var c=/^\s+/;const u=function(t){return t?t.slice(0,function(t){for(var e=t.length;e--&&i.test(t.charAt(e)););return e}(t)+1).replace(c,""):t};var s=r(54),f=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,v=/^0o[0-7]+$/i,d=parseInt;const Z=function(t){if("number"==typeof t)return t;if((0,s.Z)(t))return NaN;if((0,n.Z)(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=(0,n.Z)(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=u(t);var r=l.test(t);return r||v.test(t)?d(t.slice(2),r?2:8):f.test(t)?NaN:+t};var p=Math.max,b=Math.min;const h=function(t,e,r){var o,i,c,u,s,f,l=0,v=!1,d=!1,h=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function y(e){var r=o,n=i;return o=i=void 0,l=e,u=t.apply(n,r)}function g(t){var r=t-f;return void 0===f||r>=e||r<0||d&&t-l>=c}function j(){var t=a();if(g(t))return w(t);s=setTimeout(j,function(t){var r=e-(t-f);return d?b(r,c-(t-l)):r}(t))}function w(t){return s=void 0,h&&o?y(t):(o=i=void 0,u)}function m(){var t=a(),r=g(t);if(o=arguments,i=this,f=t,r){if(void 0===s)return function(t){return l=t,s=setTimeout(j,e),v?y(t):u}(f);if(d)return clearTimeout(s),s=setTimeout(j,e),y(f)}return void 0===s&&(s=setTimeout(j,e)),u}return e=Z(e)||0,(0,n.Z)(r)&&(v=!!r.leading,c=(d="maxWait"in r)?p(Z(r.maxWait)||0,e):c,h="trailing"in r?!!r.trailing:h),m.cancel=function(){void 0!==s&&clearTimeout(s),l=0,o=f=i=s=void 0},m.flush=function(){return void 0===s?u:w(a())},m}},5008:(t,e,r)=>{r.d(e,{Z:()=>c});var n=r(658);var o="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=o&&"object"==typeof module&&module&&!module.nodeType&&module,i=a&&a.exports===o?n.Z.Buffer:void 0;const c=(i?i.isBuffer:void 0)||function(){return!1}},8403:(t,e,r)=>{r.d(e,{Z:()=>v});var n=r(3126),o=r(6812),a=r(4996),i=r(6575),c=r(6905),u=r(5008),s=r(9494),f=r(8485),l=Object.prototype.hasOwnProperty;const v=function(t){if(null==t)return!0;if((0,c.Z)(t)&&((0,i.Z)(t)||"string"==typeof t||"function"==typeof t.splice||(0,u.Z)(t)||(0,f.Z)(t)||(0,a.Z)(t)))return!t.length;var e=(0,o.Z)(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if((0,s.Z)(t))return!(0,n.Z)(t).length;for(var r in t)if(l.call(t,r))return!1;return!0}},988:(t,e,r)=>{r.d(e,{Z:()=>o});var n=r(8165);const o=function(t,e){return(0,n.Z)(t,e)}},54:(t,e,r)=>{r.d(e,{Z:()=>a});var n=r(1258),o=r(4897);const a=function(t){return"symbol"==typeof t||(0,o.Z)(t)&&"[object Symbol]"==(0,n.Z)(t)}},8485:(t,e,r)=>{r.d(e,{Z:()=>f});var n=r(1258),o=r(3492),a=r(4897),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1;var c=r(7133),u=r(9801),s=u.Z&&u.Z.isTypedArray;const f=s?(0,c.Z)(s):function(t){return(0,a.Z)(t)&&(0,o.Z)(t.length)&&!!i[(0,n.Z)(t)]}},825:(t,e,r)=>{r.d(e,{Z:()=>i});var n=r(1602),o=r(3126),a=r(6905);const i=function(t){return(0,a.Z)(t)?(0,n.Z)(t):(0,o.Z)(t)}},9809:(t,e,r)=>{r.d(e,{Z:()=>s});var n=r(1602),o=r(7275),a=r(9494);var i=Object.prototype.hasOwnProperty;const c=function(t){if(!(0,o.Z)(t))return function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}(t);var e=(0,a.Z)(t),r=[];for(var n in t)("constructor"!=n||!e&&i.call(t,n))&&r.push(n);return r};var u=r(6905);const s=function(t){return(0,u.Z)(t)?(0,n.Z)(t,!0):c(t)}},9340:(t,e,r)=>{r.d(e,{Z:()=>V});var n=r(2363),o=r(1890),a=r(8165);var i=r(7275);const c=function(t){return t==t&&!(0,i.Z)(t)};var u=r(825);const s=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}},f=function(t){var e=function(t){for(var e=(0,u.Z)(t),r=e.length;r--;){var n=e[r],o=t[n];e[r]=[n,o,c(o)]}return e}(t);return 1==e.length&&e[0][2]?s(e[0][0],e[0][1]):function(r){return r===t||function(t,e,r,n){var i=r.length,c=i,u=!n;if(null==t)return!c;for(t=Object(t);i--;){var s=r[i];if(u&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++i<c;){var f=(s=r[i])[0],l=t[f],v=s[1];if(u&&s[2]){if(void 0===l&&!(f in t))return!1}else{var d=new o.Z;if(n)var Z=n(l,v,f,t,e,d);if(!(void 0===Z?(0,a.Z)(v,l,3,n,d):Z))return!1}}return!0}(r,t,e)}};var l=r(7106);const v=function(t,e){return null!=t&&e in Object(t)};var d=r(6205),Z=r(4996),p=r(6575),b=r(5313),h=r(3492),y=r(199);const g=function(t,e){return null!=t&&function(t,e,r){for(var n=-1,o=(e=(0,d.Z)(e,t)).length,a=!1;++n<o;){var i=(0,y.Z)(e[n]);if(!(a=null!=t&&r(t,i)))break;t=t[i]}return a||++n!=o?a:!!(o=null==t?0:t.length)&&(0,h.Z)(o)&&(0,b.Z)(i,o)&&((0,p.Z)(t)||(0,Z.Z)(t))}(t,e,v)};var j=r(5506);const w=function(t,e){return(0,j.Z)(t)&&c(e)?s((0,y.Z)(t),e):function(r){var n=function(t,e,r){var n=null==t?void 0:(0,l.Z)(t,e);return void 0===n?r:n}(r,t);return void 0===n&&n===e?g(r,t):(0,a.Z)(e,n,3)}};var m=r(1116);const E=function(t){return(0,j.Z)(t)?(e=(0,y.Z)(t),function(t){return null==t?void 0:t[e]}):function(t){return function(e){return(0,l.Z)(e,t)}}(t);var e};var _=r(9616);const A=function(t,e,r,n){if(!(0,i.Z)(t))return t;for(var o=-1,a=(e=(0,d.Z)(e,t)).length,c=a-1,u=t;null!=u&&++o<a;){var s=(0,y.Z)(e[o]),f=r;if("__proto__"===s||"constructor"===s||"prototype"===s)return t;if(o!=c){var l=u[s];void 0===(f=n?n(l,s,u):void 0)&&(f=(0,i.Z)(l)?l:(0,b.Z)(e[o+1])?[]:{})}(0,_.Z)(u,s,f),u=u[s]}return t};var O=r(1325);const V=function(t,e){if(null==t)return{};var r,o=(0,n.Z)((0,O.Z)(t),(function(t){return[t]}));return e="function"==typeof(r=e)?r:null==r?m.Z:"object"==typeof r?(0,p.Z)(r)?w(r[0],r[1]):f(r):E(r),function(t,e,r){for(var n=-1,o=e.length,a={};++n<o;){var i=e[n],c=(0,l.Z)(t,i);r(c,i)&&A(a,(0,d.Z)(i,t),c)}return a}(t,o,(function(t,r){return e(t,r[0])}))}},1940:(t,e,r)=>{r.d(e,{Z:()=>n});const n=function(){return[]}},131:(t,e,r)=>{r.d(e,{Z:()=>f});var n=r(7851),o=r(2363),a=r(6575),i=r(54),c=n.Z?n.Z.prototype:void 0,u=c?c.toString:void 0;const s=function t(e){if("string"==typeof e)return e;if((0,a.Z)(e))return(0,o.Z)(e,t)+"";if((0,i.Z)(e))return u?u.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r},f=function(t){return null==t?"":s(t)}},7474:(t,e,r)=>{r.d(e,{Z:()=>a});var n=r(131),o=0;const a=function(t){var e=++o;return(0,n.Z)(t)+e}},5751:(t,e,r)=>{r.d(e,{Z:()=>c});var n=r(6205);var o=r(7106);const a=function(t,e){return e.length<2?t:(0,o.Z)(t,function(t,e,r){var n=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(r=r>o?o:r)<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var a=Array(o);++n<o;)a[n]=t[n+e];return a}(e,0,-1))};var i=r(199);const c=function(t,e){return null==t||function(t,e){return e=(0,n.Z)(e,t),null==(t=a(t,e))||delete t[(0,i.Z)((r=e,o=null==r?0:r.length,o?r[o-1]:void 0))];var r,o}(t,e)}},4126:(t,e,r)=>{r.d(e,{ZP:()=>u});var n=r(5776),o=r(1374),a=r(9312);const i=n.use||(t=>{if("pending"===t.status)throw t;if("fulfilled"===t.status)return t.value;throw"rejected"===t.status?t.reason:(t.status="pending",t.then((e=>{t.status="fulfilled",t.value=e}),(e=>{t.status="rejected",t.reason=e})),t)}),c={dedupe:!0},u=(a.OBJECT.defineProperty(a.SWRConfig,"defaultValue",{value:a.defaultConfig}),(0,a.withArgs)(((t,e,r)=>{const{cache:u,compare:s,suspense:f,fallbackData:l,revalidateOnMount:v,revalidateIfStale:d,refreshInterval:Z,refreshWhenHidden:p,refreshWhenOffline:b,keepPreviousData:h}=r,[y,g,j,w]=a.SWRGlobalState.get(u),[m,E]=(0,a.serialize)(t),_=(0,n.useRef)(!1),A=(0,n.useRef)(!1),O=(0,n.useRef)(m),V=(0,n.useRef)(e),x=(0,n.useRef)(r),S=()=>x.current,C=()=>S().isVisible()&&S().isOnline(),[U,T,R,I]=(0,a.createCacheHelper)(u,m),M=(0,n.useRef)({}).current,L=(0,a.isUndefined)(l)?r.fallback[m]:l,z=(t,e)=>{for(const r in M){const n=r;if("data"===n){if(!s(t[n],e[n])){if(!(0,a.isUndefined)(t[n]))return!1;if(!s($,e[n]))return!1}}else if(e[n]!==t[n])return!1}return!0},H=(0,n.useMemo)((()=>{const t=!!m&&!!e&&((0,a.isUndefined)(v)?!S().isPaused()&&!f&&(!!(0,a.isUndefined)(d)||d):v),r=e=>{const r=(0,a.mergeObjects)(e);return delete r._k,t?{isValidating:!0,isLoading:!0,...r}:r},n=U(),o=I(),i=r(n),c=n===o?i:r(o);let u=i;return[()=>{const t=r(U());return z(t,u)?(u.data=t.data,u.isLoading=t.isLoading,u.isValidating=t.isValidating,u.error=t.error,u):(u=t,t)},()=>c]}),[u,m]),k=(0,o.useSyncExternalStore)((0,n.useCallback)((t=>R(m,((e,r)=>{z(r,e)||t()}))),[u,m]),H[0],H[1]),D=!_.current,P=y[m]&&y[m].length>0,N=k.data,B=(0,a.isUndefined)(N)?L:N,F=k.error,W=(0,n.useRef)(B),$=h?(0,a.isUndefined)(N)?W.current:N:B,G=!(P&&!(0,a.isUndefined)(F))&&(D&&!(0,a.isUndefined)(v)?v:!S().isPaused()&&(f?!(0,a.isUndefined)(B)&&d:(0,a.isUndefined)(B)||d)),q=!!(m&&e&&D&&G),Y=(0,a.isUndefined)(k.isValidating)?q:k.isValidating,J=(0,a.isUndefined)(k.isLoading)?q:k.isLoading,K=(0,n.useCallback)((async t=>{const e=V.current;if(!m||!e||A.current||S().isPaused())return!1;let n,o,i=!0;const c=t||{},u=!j[m]||!c.dedupe,f=()=>a.IS_REACT_LEGACY?!A.current&&m===O.current&&_.current:m===O.current,l={isValidating:!1,isLoading:!1},v=()=>{T(l)},d=()=>{const t=j[m];t&&t[1]===o&&delete j[m]},Z={isValidating:!0};(0,a.isUndefined)(U().data)&&(Z.isLoading=!0);try{if(u&&(T(Z),r.loadingTimeout&&(0,a.isUndefined)(U().data)&&setTimeout((()=>{i&&f()&&S().onLoadingSlow(m,r)}),r.loadingTimeout),j[m]=[e(E),(0,a.getTimestamp)()]),[n,o]=j[m],n=await n,u&&setTimeout(d,r.dedupingInterval),!j[m]||j[m][1]!==o)return u&&f()&&S().onDiscarded(m),!1;l.error=a.UNDEFINED;const t=g[m];if(!(0,a.isUndefined)(t)&&(o<=t[0]||o<=t[1]||0===t[1]))return v(),u&&f()&&S().onDiscarded(m),!1;const c=U().data;l.data=s(c,n)?c:n,u&&f()&&S().onSuccess(n,m,r)}catch(t){d();const e=S(),{shouldRetryOnError:r}=e;e.isPaused()||(l.error=t,u&&f()&&(e.onError(t,m,e),(!0===r||(0,a.isFunction)(r)&&r(t))&&C()&&e.onErrorRetry(t,m,e,(t=>{const e=y[m];e&&e[0]&&e[0](a.revalidateEvents.ERROR_REVALIDATE_EVENT,t)}),{retryCount:(c.retryCount||0)+1,dedupe:!0})))}return i=!1,v(),!0}),[m,u]),Q=(0,n.useCallback)(((...t)=>(0,a.internalMutate)(u,O.current,...t)),[]);if((0,a.useIsomorphicLayoutEffect)((()=>{V.current=e,x.current=r,(0,a.isUndefined)(N)||(W.current=N)})),(0,a.useIsomorphicLayoutEffect)((()=>{if(!m)return;const t=K.bind(a.UNDEFINED,c);let e=0;const r=(0,a.subscribeCallback)(m,y,((r,n={})=>{if(r==a.revalidateEvents.FOCUS_EVENT){const r=Date.now();S().revalidateOnFocus&&r>e&&C()&&(e=r+S().focusThrottleInterval,t())}else if(r==a.revalidateEvents.RECONNECT_EVENT)S().revalidateOnReconnect&&C()&&t();else{if(r==a.revalidateEvents.MUTATE_EVENT)return K();if(r==a.revalidateEvents.ERROR_REVALIDATE_EVENT)return K(n)}}));return A.current=!1,O.current=m,_.current=!0,T({_k:E}),G&&((0,a.isUndefined)(B)||a.IS_SERVER?t():(0,a.rAF)(t)),()=>{A.current=!0,r()}}),[m]),(0,a.useIsomorphicLayoutEffect)((()=>{let t;function e(){const e=(0,a.isFunction)(Z)?Z(U().data):Z;e&&-1!==t&&(t=setTimeout(r,e))}function r(){U().error||!p&&!S().isVisible()||!b&&!S().isOnline()?e():K(c).then(e)}return e(),()=>{t&&(clearTimeout(t),t=-1)}}),[Z,p,b,m]),(0,n.useDebugValue)($),f&&(0,a.isUndefined)(B)&&m){if(!a.IS_REACT_LEGACY&&a.IS_SERVER)throw new Error("Fallback data is required when using suspense in SSR.");V.current=e,x.current=r,A.current=!1;const t=w[m];if(!(0,a.isUndefined)(t)){const e=Q(t);i(e)}if(!(0,a.isUndefined)(F))throw F;{const t=K(c);(0,a.isUndefined)($)||(t.status="fulfilled",t.value=!0),i(t)}}return{mutate:Q,get data(){return M.data=!0,$},get error(){return M.error=!0,F},get isValidating(){return M.isValidating=!0,Y},get isLoading(){return M.isLoading=!0,J}}})))}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_openmrs_esm_implementer_tools_app=globalThis.webpackChunk_openmrs_esm_implementer_tools_app||[]).push([[499],{7499:(e,n,t)=>{t.r(n),t.d(n,{default:()=>I});var r,o=t(5776),i=t.n(o),u=t(4610),a=t(1004),l=t(500);function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function s(e,n,t,r,o,i,u){try{var a=e[i](u),l=a.value}catch(e){return void t(e)}a.done?n(l):Promise.resolve(l).then(r,o)}function f(e){return function(){var n=this,t=arguments;return new Promise((function(r,o){var i=e.apply(n,t);function u(e){s(i,r,o,u,a,"next",e)}function a(e){s(i,r,o,u,a,"throw",e)}u(void 0)}))}}function p(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return c(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?c(e,n):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,n){var t,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(t)throw new TypeError("Generator is already executing.");for(;u;)try{if(t=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!((o=(o=u.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=n.call(e,u)}catch(e){i=[6,e],r=0}finally{t=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}function y(){return m.apply(this,arguments)}function m(){return(m=f((function(){var e;return d(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,(0,u.openmrsFetch)("/ws/rest/v1/module?v=custom:(uuid,version)",{method:"GET"})];case 1:return[2,n.sent().data.results];case 2:return e=n.sent(),console.error(e),[3,3];case 3:return[2,[]]}}))}))).apply(this,arguments)}function b(e,n){return(0,u.isVersionSatisfied)(e,n)?"okay":"version-mismatch"}function v(){return(v=f((function(){var e,n,t;return d(this,(function(o){switch(o.label){case 0:return r?[3,2]:(n=(null!==(e=window.installedModules)&&void 0!==e?e:[]).filter((function(e){var n;return Boolean(null===(n=e[1])||void 0===n?void 0:n.backendDependencies)})).map((function(e){return{backendDependencies:e[1].backendDependencies,moduleName:e[0]}})),[4,y()]);case 1:t=o.sent(),r=n.map((function(e){return function(e,n){var t,r=[],o=function(e,n){if(!e)return[];var t=Object.keys(e),r=n.map((function(e){return e.uuid}));return(0,l.Z)(t,r).map((function(n){return{uuid:n,version:e[n]}}))}(e.backendDependencies,n),i=function(e,n){return e?Object.keys(e).map((function(n){return{uuid:n,version:e[n]}})).filter((function(e){return n.find((function(n){return e.uuid===n.uuid}))})):[]}(e.backendDependencies,n);return(t=r).push.apply(t,p(o.map((function(e){return{name:e.uuid,requiredVersion:e.version,type:"missing"}}))).concat(p(i.map((function(e){var t=e.version,r=function(e,n){var t,r,o=e.uuid;return null!==(r=null===(t=n.find((function(e){return e.uuid==o})))||void 0===t?void 0:t.version)&&void 0!==r?r:""}(e,n);return{name:e.uuid,requiredVersion:t,installedVersion:r,type:b(t,r)}}))))),{name:e.moduleName,dependencies:r}}(e,t)})),o.label=2;case 2:return[2,r]}}))}))).apply(this,arguments)}function h(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function w(){var e,n,t=(e=(0,o.useState)([]),n=2,function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i=[],u=!0,a=!1;try{for(t=t.call(e);!(u=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);u=!0);}catch(e){a=!0,o=e}finally{try{u||null==t.return||t.return()}finally{if(a)throw o}}return i}}(e,n)||function(e,n){if(e){if("string"==typeof e)return h(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?h(e,n):void 0}}(e,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.")}()),r=t[0],i=t[1];return(0,o.useEffect)((function(){(function(){return v.apply(this,arguments)})().then(i)}),[]),r}var g=t(2680);function O(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function k(){return(0,o.useMemo)((function(){var e;return(null!==(e=window.installedModules)&&void 0!==e?e:[]).filter((function(e){return Boolean(e)&&Boolean(e[1])})).map((function(e){return n=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),r.forEach((function(n){O(e,n,t[n])}))}return e}({},e[1]),t=null!=(t={name:e[0]})?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})),n;var n,t}))}),[])}function S(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var j=i().lazy((function(){return Promise.all([t.e(220),t.e(837),t.e(575),t.e(329),t.e(551),t.e(478),t.e(
|
|
1
|
+
"use strict";(globalThis.webpackChunk_openmrs_esm_implementer_tools_app=globalThis.webpackChunk_openmrs_esm_implementer_tools_app||[]).push([[499],{7499:(e,n,t)=>{t.r(n),t.d(n,{default:()=>I});var r,o=t(5776),i=t.n(o),u=t(4610),a=t(1004),l=t(500);function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function s(e,n,t,r,o,i,u){try{var a=e[i](u),l=a.value}catch(e){return void t(e)}a.done?n(l):Promise.resolve(l).then(r,o)}function f(e){return function(){var n=this,t=arguments;return new Promise((function(r,o){var i=e.apply(n,t);function u(e){s(i,r,o,u,a,"next",e)}function a(e){s(i,r,o,u,a,"throw",e)}u(void 0)}))}}function p(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return c(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?c(e,n):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,n){var t,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(t)throw new TypeError("Generator is already executing.");for(;u;)try{if(t=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!((o=(o=u.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=n.call(e,u)}catch(e){i=[6,e],r=0}finally{t=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}function y(){return m.apply(this,arguments)}function m(){return(m=f((function(){var e;return d(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,(0,u.openmrsFetch)("/ws/rest/v1/module?v=custom:(uuid,version)",{method:"GET"})];case 1:return[2,n.sent().data.results];case 2:return e=n.sent(),console.error(e),[3,3];case 3:return[2,[]]}}))}))).apply(this,arguments)}function b(e,n){return(0,u.isVersionSatisfied)(e,n)?"okay":"version-mismatch"}function v(){return(v=f((function(){var e,n,t;return d(this,(function(o){switch(o.label){case 0:return r?[3,2]:(n=(null!==(e=window.installedModules)&&void 0!==e?e:[]).filter((function(e){var n;return Boolean(null===(n=e[1])||void 0===n?void 0:n.backendDependencies)})).map((function(e){return{backendDependencies:e[1].backendDependencies,moduleName:e[0]}})),[4,y()]);case 1:t=o.sent(),r=n.map((function(e){return function(e,n){var t,r=[],o=function(e,n){if(!e)return[];var t=Object.keys(e),r=n.map((function(e){return e.uuid}));return(0,l.Z)(t,r).map((function(n){return{uuid:n,version:e[n]}}))}(e.backendDependencies,n),i=function(e,n){return e?Object.keys(e).map((function(n){return{uuid:n,version:e[n]}})).filter((function(e){return n.find((function(n){return e.uuid===n.uuid}))})):[]}(e.backendDependencies,n);return(t=r).push.apply(t,p(o.map((function(e){return{name:e.uuid,requiredVersion:e.version,type:"missing"}}))).concat(p(i.map((function(e){var t=e.version,r=function(e,n){var t,r,o=e.uuid;return null!==(r=null===(t=n.find((function(e){return e.uuid==o})))||void 0===t?void 0:t.version)&&void 0!==r?r:""}(e,n);return{name:e.uuid,requiredVersion:t,installedVersion:r,type:b(t,r)}}))))),{name:e.moduleName,dependencies:r}}(e,t)})),o.label=2;case 2:return[2,r]}}))}))).apply(this,arguments)}function h(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function w(){var e,n,t=(e=(0,o.useState)([]),n=2,function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i=[],u=!0,a=!1;try{for(t=t.call(e);!(u=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);u=!0);}catch(e){a=!0,o=e}finally{try{u||null==t.return||t.return()}finally{if(a)throw o}}return i}}(e,n)||function(e,n){if(e){if("string"==typeof e)return h(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?h(e,n):void 0}}(e,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.")}()),r=t[0],i=t[1];return(0,o.useEffect)((function(){(function(){return v.apply(this,arguments)})().then(i)}),[]),r}var g=t(2680);function O(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function k(){return(0,o.useMemo)((function(){var e;return(null!==(e=window.installedModules)&&void 0!==e?e:[]).filter((function(e){return Boolean(e)&&Boolean(e[1])})).map((function(e){return n=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),r.forEach((function(n){O(e,n,t[n])}))}return e}({},e[1]),t=null!=(t={name:e[0]})?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})),n;var n,t}))}),[])}function S(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var j=i().lazy((function(){return Promise.all([t.e(220),t.e(837),t.e(575),t.e(329),t.e(551),t.e(478),t.e(602)]).then(t.bind(t,3199))})),A=i().lazy((function(){return Promise.all([t.e(220),t.e(837),t.e(551),t.e(478),t.e(587)]).then(t.bind(t,587))}));function E(){var e,n,t=k(),r=w(),l=(e=(0,o.useState)(!1),n=2,function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i=[],u=!0,a=!1;try{for(t=t.call(e);!(u=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);u=!0);}catch(e){a=!0,o=e}finally{try{u||null==t.return||t.return()}finally{if(a)throw o}}return i}}(e,n)||function(e,n){if(e){if("string"==typeof e)return S(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?S(e,n):void 0}}(e,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.")}()),c=l[0],s=l[1],f=(0,g.useTranslation)().t;(0,o.useEffect)((function(){s((function(e){return e||function(e){return e.some((function(e){return e.dependencies.some((function(e){return"okay"!==e.type}))}))}(r)}))}),[r]),(0,o.useEffect)((function(){c&&(0,u.showActionableNotification)({critical:!1,kind:"error",subtitle:f("checkImplementerToolsMessage","Check the Backend Modules tab in the Implementer Tools for more details"),title:f("modulesWithMissingDependenciesWarning","Some modules have unresolved backend dependencies"),actionButtonLabel:f("viewModules","View modules"),onActionButtonClick:a.XE})}),[f,c]);var p=(0,u.useStore)(a.wT),d=p.isOpen,y=p.isUIEditorEnabled,m=p.openTabIndex;return i().createElement(i().Fragment,null,d?i().createElement(j,{close:a.zI,frontendModules:t,backendDependencies:r,visibleTabIndex:m}):null,y?i().createElement(A,null):null)}function I(){return i().createElement(u.UserHasAccess,{privilege:"coreapps.systemAdministration"},i().createElement(E,null))}}}]);
|