@openmrs/esm-framework 6.3.1-pre.3136 → 6.3.1-pre.3140

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
- (()=>{var e={6799:function(){"use strict";function e(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var t,n,r,i={};try{process.env.CARBON_ENABLE_CSS_CUSTOM_PROPERTIES&&"true"===process.env.CARBON_ENABLE_CSS_CUSTOM_PROPERTIES?i.enableCssCustomProperties=!0:i.enableCssCustomProperties=!1,process.env.CARBON_ENABLE_CSS_GRID&&"true"===process.env.CARBON_ENABLE_CSS_GRID?i.enableCssGrid=!0:i.enableCssGrid=!1,process.env.CARBON_ENABLE_V11_RELEASE?"true"===process.env.CARBON_ENABLE_V11_RELEASE?i.enableV11Release=!0:i.enableV11Release=!1:i.enableV11Release=!0,process.env.CARBON_ENABLE_EXPERIMENTAL_TILE_CONTRAST&&"true"===process.env.CARBON_ENABLE_EXPERIMENTAL_TILE_CONTRAST?i.enableExperimentalTileContrast=!0:i.enableExperimentalTileContrast=!1,process.env.CARBON_ENABLE_V12_TILE_DEFAULT_ICONS&&"true"===process.env.CARBON_ENABLE_V12_TILE_DEFAULT_ICONS?i.enableV12TileDefaultIcons=!0:i.enableV12TileDefaultIcons=!1,process.env.CARBON_ENABLE_V12_TILE_RADIO_ICONS&&"true"===process.env.CARBON_ENABLE_V12_TILE_RADIO_ICONS?i.enableV12TileRadioIcons=!0:i.enableV12TileRadioIcons=!1,process.env.CARBON_ENABLE_V12_OVERFLOWMENU&&"true"===process.env.CARBON_ENABLE_V12_OVERFLOWMENU?i.enableV12Overflowmenu=!0:i.enableV12Overflowmenu=!1,process.env.CARBON_ENABLE_TREEVIEW_CONTROLLABLE&&"true"===process.env.CARBON_ENABLE_TREEVIEW_CONTROLLABLE?i.enableTreeviewControllable=!0:i.enableTreeviewControllable=!1,process.env.CARBON_ENABLE_V12_STRUCTURED_LIST_VISIBLE_ICONS&&"true"===process.env.CARBON_ENABLE_V12_STRUCTURED_LIST_VISIBLE_ICONS?i.enableV12StructuredListVisibleIcons=!0:i.enableV12StructuredListVisibleIcons=!1,process.env.CARBON_ENABLE_EXPERIMENTAL_FOCUS_WRAP_WITHOUT_SENTINELS&&"true"===process.env.CARBON_ENABLE_EXPERIMENTAL_FOCUS_WRAP_WITHOUT_SENTINELS?i.enableExperimentalFocusWrapWithoutSentinels=!0:i.enableExperimentalFocusWrapWithoutSentinels=!1,process.env.CARBON_ENABLE_DIALOG_ELEMENT&&"true"===process.env.CARBON_ENABLE_DIALOG_ELEMENT?i.enableDialogElement=!0:i.enableDialogElement=!1,process.env.CARBON_ENABLE_V12_DYNAMIC_FLOATING_STYLES&&"true"===process.env.CARBON_ENABLE_V12_DYNAMIC_FLOATING_STYLES?i.enableV12DynamicFloatingStyles=!0:i.enableV12DynamicFloatingStyles=!1}catch(e){i.enableCssCustomProperties=!1,i.enableCssGrid=!1,i.enableV11Release=!0,i.enableExperimentalTileContrast=!1,i.enableV12TileDefaultIcons=!1,i.enableV12TileRadioIcons=!1,i.enableV12Overflowmenu=!1,i.enableTreeviewControllable=!1,i.enableV12StructuredListVisibleIcons=!1,i.enableExperimentalFocusWrapWithoutSentinels=!1,i.enableDialogElement=!1,i.enableV12DynamicFloatingStyles=!1}var a=[{name:"enable-css-custom-properties",description:"Describe what the flag does",enabled:i.enableCssCustomProperties},{name:"enable-css-grid",description:"Enable CSS Grid Layout in the Grid and Column React components\n",enabled:i.enableCssGrid},{name:"enable-v11-release",description:"Enable the features and functionality for the v11 Release\n",enabled:i.enableV11Release},{name:"enable-experimental-tile-contrast",description:"Enable the experimental tile improved contrast styles\n",enabled:i.enableExperimentalTileContrast},{name:"enable-v12-tile-default-icons",description:"Enable rendering of default icons in the tile components\n",enabled:i.enableV12TileDefaultIcons},{name:"enable-v12-tile-radio-icons",description:"Enable rendering of radio icons in the RadioTile component\n",enabled:i.enableV12TileRadioIcons},{name:"enable-v12-overflowmenu",description:"Enable the use of the v12 OverflowMenu leveraging the Menu subcomponents\n",enabled:i.enableV12Overflowmenu},{name:"enable-treeview-controllable",description:"Enable the new TreeView controllable API\n",enabled:i.enableTreeviewControllable},{name:"enable-v12-structured-list-visible-icons",description:"Enable rendering of radio icons in the StructuredList component\n",enabled:i.enableV12StructuredListVisibleIcons},{name:"enable-experimental-focus-wrap-without-sentinels",description:"Enable the new focus wrap behavior that doesn't use sentinel nodes\n",enabled:i.enableExperimentalFocusWrapWithoutSentinels},{name:"enable-dialog-element",description:"Enable components to utilize the native dialog element\n",enabled:i.enableDialogElement},{name:"enable-v12-dynamic-floating-styles",description:"Enable dynamic setting of floating styles for components like Popover, Tooltip, etc.\n",enabled:i.enableV12DynamicFloatingStyles}];function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){if(e){if("string"==typeof e)return o(e,t);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}for(var c=(n=function e(t){var n=this,r=e;if(null!=r&&"undefined"!=typeof Symbol&&r[Symbol.hasInstance]?!r[Symbol.hasInstance](this):!(this instanceof r))throw TypeError("Cannot call a class as a function");this.flags=new Map,t&&Object.keys(t).forEach(function(e){n.flags.set(e,t[e])})},r=[{key:"checkForFlag",value:function(e){if(!this.flags.has(e))throw Error("Unable to find a feature flag with the name: `".concat(e,"`"))}},{key:"add",value:function(e,t){if(this.flags.has(e))throw Error("The feature flag: ".concat(e," already exists"));this.flags.set(e,t)}},{key:"enable",value:function(e){this.checkForFlag(e),this.flags.set(e,!0)}},{key:"disable",value:function(e){this.checkForFlag(e),this.flags.set(e,!1)}},{key:"merge",value:function(e){var t=this;Object.keys(e).forEach(function(n){t.flags.set(n,e[n])})}},{key:"mergeWithScope",value:function(e){var t,n=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=s(e))){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw a}}}}(e.flags);try{for(n.s();!(t=n.n()).done;){var r,i=(r=t.value,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,s=[],c=!0,u=!1;try{a=(n=n.call(e)).next,!1;for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}(r,2)||s(r,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=i[0],o=i[1];this.flags.has(a)||this.flags.set(a,o)}}catch(e){n.e(e)}finally{n.f()}}},{key:"enabled",value:function(e){return this.checkForFlag(e),this.flags.get(e)}}],function(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,function(t){var n=function(t,n){if("object"!=(void 0===t?"undefined":e(t))||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,n||"default");if("object"!=(void 0===i?"undefined":e(i)))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"==(void 0===n?"undefined":e(n))?n:n+""}(i.key),i)}}(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n),u=new c(void 0),l=0;l<a.length;l++){var f=a[l];u.add(f.name,f.enabled)}!function(){u.merge.apply(u,arguments)}({"enable-css-custom-properties":!0,"enable-css-grid":!0,"enable-v11-release":!0,"enable-experimental-tile-contrast":!1,"enable-v12-tile-radio-icons":!1,"enable-v12-structured-list-visible-icons":!1,"enable-v12-dynamic-floating-styles":!1})},8807:function(e,t,n){"use strict";n.a(e,async function(e,t){try{n(6799),t()}catch(e){t(e)}})},2886:function(e,t){var n,r;n=this,r=function(){return function(e,t,n){t.prototype.isToday=function(){var e="YYYY-MM-DD",t=n();return this.format(e)===t.format(e)}}},"object"==(t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)?e.exports=r():"function"==typeof define&&define.amd?define(r):(n="undefined"!=typeof globalThis?globalThis:n||self).dayjs_plugin_isToday=r()},4453:function(e,t,n){!function(t){"use strict";var r=n(5128);function i(e){return function(t,n){var r;return(void 0===t?"undefined":(r=t)&&"undefined"!=typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)=="object"&&(n=t,t=null),null==t&&(t=new Date().toString()),n||(n={}),e.call(this,t,n)}}var a=e.exports={generate:i(function(e,t){return new r(e,t)})};t&&(t.fn.geopattern=i(function(e,n){return this.each(function(){var r=t(this).attr("data-title-sha");r&&(n=t.extend({hash:r},n));var i=a.generate(e,n);t(this).css("background-image",i.toDataUrl())})}))}("undefined"!=typeof jQuery?jQuery:null)},3328:function(e){"use strict";e.exports={hex2rgb:function(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(e,t,n,r){return t+t+n+n+r+r});var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null},rgb2hex:function(e){return"#"+["r","g","b"].map(function(t){return("0"+e[t].toString(16)).slice(-2)}).join("")},rgb2hsl:function(e){var t,n,r=e.r,i=e.g,a=e.b,o=Math.max(r/=255,i/=255,a/=255),s=Math.min(r,i,a),c=(o+s)/2;if(o===s)t=n=0;else{var u=o-s;switch(n=c>.5?u/(2-o-s):u/(o+s),o){case r:t=(i-a)/u+6*(i<a);break;case i:t=(a-r)/u+2;break;case a:t=(r-i)/u+4}t/=6}return{h:t,s:n,l:c}},hsl2rgb:function(e){function t(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}var n,r,i,a=e.h,o=e.s,s=e.l;if(0===o)n=r=i=s;else{var c=s<.5?s*(1+o):s+o-s*o,u=2*s-c;n=t(u,c,a+1/3),r=t(u,c,a),i=t(u,c,a-1/3)}return{r:Math.round(255*n),g:Math.round(255*r),b:Math.round(255*i)}},rgb2rgbString:function(e){return"rgb("+[e.r,e.g,e.b].join(",")+")"}}},5128:function(e,t,n){"use strict";var r=n(416),i=n(3328),a=n(7410),o=n(1488),s={baseColor:"#933c3c"},c=["octogons","overlappingCircles","plusSigns","xes","sineWaves","hexagons","overlappingRings","plaid","triangles","squares","concentricCircles","diamonds","tessellation","nestedSquares","mosaicSquares","chevrons"],u="#000";function l(e,t,n){return parseInt(e.substr(t,n||1),16)}function f(e,t,n,r,i){return(parseFloat(e)-t)*(i-r)/(n-t)+r}function h(e){return e%2==0?"#ddd":"#222"}function d(e){return f(e,0,15,.02,.15)}var p=e.exports=function(e,t){return this.opts=r({},s,t),this.hash=t.hash||a(e),this.svg=new o,this.generateBackground(),this.generatePattern(),this};function y(e){return[[e,0,e,3*e],[0,e,3*e,e]]}function v(e){return[0,0,e,e,0,e,0,0].join(",")}function g(e,t,n,r,i){var a=v(r),o=d(i[0]),s=h(i[0]),c={stroke:u,"stroke-opacity":.02,"fill-opacity":o,fill:s};e.polyline(a,c).transform({translate:[t+r,n],scale:[-1,1]}),e.polyline(a,c).transform({translate:[t+r,n+2*r],scale:[1,-1]}),c={stroke:u,"stroke-opacity":.02,"fill-opacity":o=d(i[1]),fill:s=h(i[1])},e.polyline(a,c).transform({translate:[t+r,n+2*r],scale:[-1,-1]}),e.polyline(a,c).transform({translate:[t+r,n],scale:[1,1]})}function b(e,t,n,r,i){var a=d(i),o=h(i),s=v(r),c={stroke:u,"stroke-opacity":.02,"fill-opacity":a,fill:o};e.polyline(s,c).transform({translate:[t,n+r],scale:[1,-1]}),e.polyline(s,c).transform({translate:[t+2*r,n+r],scale:[-1,-1]}),e.polyline(s,c).transform({translate:[t,n+r],scale:[1,1]}),e.polyline(s,c).transform({translate:[t+2*r,n+r],scale:[-1,1]})}p.prototype.toSvg=function(){return this.svg.toString()},p.prototype.toString=function(){return this.toSvg()},p.prototype.toBase64=function(){var e,t=this.toSvg();return"undefined"!=typeof window&&"function"==typeof window.btoa?window.btoa(t):new Buffer(t).toString("base64")},p.prototype.toDataUri=function(){return"data:image/svg+xml;base64,"+this.toBase64()},p.prototype.toDataUrl=function(){return'url("'+this.toDataUri()+'")'},p.prototype.generateBackground=function(){var e,t,n,r;this.opts.color?n=i.hex2rgb(this.opts.color):(t=f(l(this.hash,14,3),0,4095,0,359),r=l(this.hash,17),(e=i.rgb2hsl(i.hex2rgb(this.opts.baseColor))).h=(360*e.h-t+360)%360/360,r%2==0?e.s=Math.min(1,(100*e.s+r)/100):e.s=Math.max(0,(100*e.s-r)/100),n=i.hsl2rgb(e)),this.color=i.rgb2hex(n),this.svg.rect(0,0,"100%","100%",{fill:i.rgb2rgbString(n)})},p.prototype.generatePattern=function(){var e=this.opts.generator;if(e){if(0>c.indexOf(e))throw Error("The generator "+e+" does not exist.")}else e=c[l(this.hash,20)];return this["geo"+e.slice(0,1).toUpperCase()+e.slice(1)]()},p.prototype.geoHexagons=function(){var e,t,n,r,i,a,o,s,c,p=f(l(this.hash,0),0,15,8,60),y=p*Math.sqrt(3),v=2*p,g=(s=p/2,[0,c=Math.sin(60*Math.PI/180)*p,s,0,s+p,0,2*p,c,s+p,2*c,s,2*c,0,c].join(","));for(this.svg.setWidth(3*v+3*p),this.svg.setHeight(6*y),t=0,o=0;o<6;o++)for(a=0;a<6;a++)i=l(this.hash,t),e=a%2==0?o*y:o*y+y/2,n=d(i),r={fill:h(i),"fill-opacity":n,stroke:u,"stroke-opacity":.02},this.svg.polyline(g,r).transform({translate:[a*p*1.5-v/2,e-y/2]}),0===a&&this.svg.polyline(g,r).transform({translate:[6*p*1.5-v/2,e-y/2]}),0===o&&(e=a%2==0?6*y:6*y+y/2,this.svg.polyline(g,r).transform({translate:[a*p*1.5-v/2,e-y/2]})),0===a&&0===o&&this.svg.polyline(g,r).transform({translate:[6*p*1.5-v/2,5*y+y/2]}),t++},p.prototype.geoSineWaves=function(){var e,t,n,r,i,a,o,s=Math.floor(f(l(this.hash,0),0,15,100,400)),c=Math.floor(f(l(this.hash,1),0,15,30,100)),u=Math.floor(f(l(this.hash,2),0,15,3,30));for(this.svg.setWidth(s),this.svg.setHeight(36*u),t=0;t<36;t++)n=d(a=l(this.hash,t)),e=h(a),o=s/4*.7,i={fill:"none",stroke:e,opacity:n,"stroke-width":""+u+"px"},r="M0 "+c+" C "+o+" 0, "+(s/2-o)+" 0, "+s/2+" "+c+" S "+(s-o)+" "+2*c+", "+s+" "+c+" S "+(1.5*s-o)+" 0, "+1.5*s+", "+c,this.svg.path(r,i).transform({translate:[-s/4,u*t-1.5*c]}),this.svg.path(r,i).transform({translate:[-s/4,u*t-1.5*c+36*u]})},p.prototype.geoChevrons=function(){var e,t,n,r,i,a,o,s=f(l(this.hash,0),0,15,30,80),c=f(l(this.hash,0),0,15,30,80),p=(e=.66*c,[[0,0,s/2,c-e,s/2,c,0,e,0,0],[s/2,c-e,s,0,s,e,s/2,c,s/2,c-e]].map(function(e){return e.join(",")}));for(this.svg.setWidth(6*s),this.svg.setHeight(6*c*.66),t=0,o=0;o<6;o++)for(a=0;a<6;a++)n=d(i=l(this.hash,t)),r={stroke:u,"stroke-opacity":.02,fill:h(i),"fill-opacity":n,"stroke-width":1},this.svg.group(r).transform({translate:[a*s,o*c*.66-c/2]}).polyline(p).end(),0===o&&this.svg.group(r).transform({translate:[a*s,6*c*.66-c/2]}).polyline(p).end(),t+=1},p.prototype.geoPlusSigns=function(){var e,t,n,r,i,a,o,s,c=f(l(this.hash,0),0,15,10,25),p=3*c,v=y(c);for(this.svg.setWidth(12*c),this.svg.setHeight(12*c),n=0,s=0;s<6;s++)for(o=0;o<6;o++)r=d(a=l(this.hash,n)),t=h(a),e=+(s%2!=0),i={fill:t,stroke:u,"stroke-opacity":.02,"fill-opacity":r},this.svg.group(i).transform({translate:[o*p-o*c+e*c-c,s*p-s*c-p/2]}).rect(v).end(),0===o&&this.svg.group(i).transform({translate:[4*p-o*c+e*c-c,s*p-s*c-p/2]}).rect(v).end(),0===s&&this.svg.group(i).transform({translate:[o*p-o*c+e*c-c,4*p-s*c-p/2]}).rect(v).end(),0===o&&0===s&&this.svg.group(i).transform({translate:[4*p-o*c+e*c-c,4*p-s*c-p/2]}).rect(v).end(),n++},p.prototype.geoXes=function(){var e,t,n,r,i,a,o,s=f(l(this.hash,0),0,15,10,25),c=y(s),u=3*s*.943;for(this.svg.setWidth(3*u),this.svg.setHeight(3*u),t=0,o=0;o<6;o++)for(a=0;a<6;a++)n=d(i=l(this.hash,t)),e=a%2==0?o*u-.5*u:o*u-.5*u+u/4,r={fill:h(i),opacity:n},this.svg.group(r).transform({translate:[a*u/2-u/2,e-o*u/2],rotate:[45,u/2,u/2]}).rect(c).end(),0===a&&this.svg.group(r).transform({translate:[6*u/2-u/2,e-o*u/2],rotate:[45,u/2,u/2]}).rect(c).end(),0===o&&(e=a%2==0?6*u-u/2:6*u-u/2+u/4,this.svg.group(r).transform({translate:[a*u/2-u/2,e-6*u/2],rotate:[45,u/2,u/2]}).rect(c).end()),5===o&&this.svg.group(r).transform({translate:[a*u/2-u/2,e-11*u/2],rotate:[45,u/2,u/2]}).rect(c).end(),0===a&&0===o&&this.svg.group(r).transform({translate:[6*u/2-u/2,e-6*u/2],rotate:[45,u/2,u/2]}).rect(c).end(),t++},p.prototype.geoOverlappingCircles=function(){var e,t,n,r,i,a,o=f(l(this.hash,0),0,15,25,200)/2;for(this.svg.setWidth(6*o),this.svg.setHeight(6*o),e=0,a=0;a<6;a++)for(i=0;i<6;i++)t=d(r=l(this.hash,e)),n={fill:h(r),opacity:t},this.svg.circle(i*o,a*o,o,n),0===i&&this.svg.circle(6*o,a*o,o,n),0===a&&this.svg.circle(i*o,6*o,o,n),0===i&&0===a&&this.svg.circle(6*o,6*o,o,n),e++},p.prototype.geoOctogons=function(){var e,t,n,r,i,a,o,s=f(l(this.hash,0),0,15,10,60),c=[e=.33*s,0,s-e,0,s,e,s,s-e,s-e,s,e,s,0,s-e,0,e,e,0].join(",");for(this.svg.setWidth(6*s),this.svg.setHeight(6*s),n=0,o=0;o<6;o++)for(a=0;a<6;a++)r=d(i=l(this.hash,n)),t=h(i),this.svg.polyline(c,{fill:t,"fill-opacity":r,stroke:u,"stroke-opacity":.02}).transform({translate:[a*s,o*s]}),n+=1},p.prototype.geoSquares=function(){var e,t,n,r,i,a,o=f(l(this.hash,0),0,15,10,60);for(this.svg.setWidth(6*o),this.svg.setHeight(6*o),t=0,a=0;a<6;a++)for(i=0;i<6;i++)n=d(r=l(this.hash,t)),e=h(r),this.svg.rect(i*o,a*o,o,o,{fill:e,"fill-opacity":n,stroke:u,"stroke-opacity":.02}),t+=1},p.prototype.geoConcentricCircles=function(){var e,t,n,r,i,a,o=f(l(this.hash,0),0,15,10,60),s=o/5;for(this.svg.setWidth((o+s)*6),this.svg.setHeight((o+s)*6),t=0,a=0;a<6;a++)for(i=0;i<6;i++)n=d(r=l(this.hash,t)),e=h(r),this.svg.circle(i*o+i*s+(o+s)/2,a*o+a*s+(o+s)/2,o/2,{fill:"none",stroke:e,opacity:n,"stroke-width":s+"px"}),n=d(r=l(this.hash,39-t)),e=h(r),this.svg.circle(i*o+i*s+(o+s)/2,a*o+a*s+(o+s)/2,o/4,{fill:e,"fill-opacity":n}),t+=1},p.prototype.geoOverlappingRings=function(){var e,t,n,r,i,a,o=f(l(this.hash,0),0,15,10,60),s=o/4;for(this.svg.setWidth(6*o),this.svg.setHeight(6*o),e=0,a=0;a<6;a++)for(i=0;i<6;i++)t=d(r=l(this.hash,e)),n={fill:"none",stroke:h(r),opacity:t,"stroke-width":s+"px"},this.svg.circle(i*o,a*o,o-s/2,n),0===i&&this.svg.circle(6*o,a*o,o-s/2,n),0===a&&this.svg.circle(i*o,6*o,o-s/2,n),0===i&&0===a&&this.svg.circle(6*o,6*o,o-s/2,n),e+=1},p.prototype.geoTriangles=function(){var e,t,n,r,i,a,o,s,c=f(l(this.hash,0),0,15,15,80),p=c/2*Math.sqrt(3),y=[s=c/2,0,c,p,0,p,s,0].join(",");for(this.svg.setWidth(3*c),this.svg.setHeight(6*p),e=0,o=0;o<6;o++)for(a=0;a<6;a++)t=d(i=l(this.hash,e)),r={fill:h(i),"fill-opacity":t,stroke:u,"stroke-opacity":.02},n=o%2==0?180*(a%2==0):180*(a%2!=0),this.svg.polyline(y,r).transform({translate:[a*c*.5-c/2,p*o],rotate:[n,c/2,p/2]}),0===a&&this.svg.polyline(y,r).transform({translate:[6*c*.5-c/2,p*o],rotate:[n,c/2,p/2]}),e+=1},p.prototype.geoDiamonds=function(){var e,t,n,r,i,a,o,s=f(l(this.hash,0),0,15,10,50),c=f(l(this.hash,1),0,15,10,50),p=[s/2,0,s,c/2,s/2,c,0,c/2].join(",");for(this.svg.setWidth(6*s),this.svg.setHeight(3*c),t=0,o=0;o<6;o++)for(a=0;a<6;a++)n=d(i=l(this.hash,t)),r={fill:h(i),"fill-opacity":n,stroke:u,"stroke-opacity":.02},e=o%2==0?0:s/2,this.svg.polyline(p,r).transform({translate:[a*s-s/2+e,c/2*o-c/2]}),0===a&&this.svg.polyline(p,r).transform({translate:[6*s-s/2+e,c/2*o-c/2]}),0===o&&this.svg.polyline(p,r).transform({translate:[a*s-s/2+e,c/2*6-c/2]}),0===a&&0===o&&this.svg.polyline(p,r).transform({translate:[6*s-s/2+e,c/2*6-c/2]}),t+=1},p.prototype.geoNestedSquares=function(){var e,t,n,r,i,a,o,s=f(l(this.hash,0),0,15,4,12),c=7*s;for(this.svg.setWidth((c+s)*6+6*s),this.svg.setHeight((c+s)*6+6*s),t=0,o=0;o<6;o++)for(a=0;a<6;a++)n=d(i=l(this.hash,t)),r={fill:"none",stroke:h(i),opacity:n,"stroke-width":s+"px"},this.svg.rect(a*c+a*s*2+s/2,o*c+o*s*2+s/2,c,c,r),n=d(i=l(this.hash,39-t)),r={fill:"none",stroke:h(i),opacity:n,"stroke-width":s+"px"},this.svg.rect(a*c+a*s*2+s/2+2*s,o*c+o*s*2+s/2+2*s,3*s,3*s,r),t+=1},p.prototype.geoMosaicSquares=function(){var e,t,n,r=f(l(this.hash,0),0,15,15,50);for(this.svg.setWidth(8*r),this.svg.setHeight(8*r),e=0,n=0;n<4;n++)for(t=0;t<4;t++)t%2==0?n%2==0?b(this.svg,t*r*2,n*r*2,r,l(this.hash,e)):g(this.svg,t*r*2,n*r*2,r,[l(this.hash,e),l(this.hash,e+1)]):n%2==0?g(this.svg,t*r*2,n*r*2,r,[l(this.hash,e),l(this.hash,e+1)]):b(this.svg,t*r*2,n*r*2,r,l(this.hash,e)),e+=1},p.prototype.geoPlaid=function(){var e,t,n,r,i,a,o,s=0,c=0;for(t=0;t<36;)s+=l(this.hash,t)+5,n=d(o=l(this.hash,t+1)),e=h(o),i=o+5,this.svg.rect(0,s,"100%",i,{opacity:n,fill:e}),s+=i,t+=2;for(t=0;t<36;)c+=l(this.hash,t)+5,n=d(o=l(this.hash,t+1)),e=h(o),a=o+5,this.svg.rect(c,0,a,"100%",{opacity:n,fill:e}),c+=a,t+=2;this.svg.setWidth(c),this.svg.setHeight(s)},p.prototype.geoTessellation=function(){var e,t,n,r,i=f(l(this.hash,0),0,15,5,40),a=i*Math.sqrt(3),o=2*i,s=i/2*Math.sqrt(3),c=[0,0,s,i/2,0,i,0,0].join(","),p=3*i+2*s,y=2*a+2*i;for(this.svg.setWidth(p),this.svg.setHeight(y),e=0;e<20;e++)switch(t=d(r=l(this.hash,e)),n={stroke:u,"stroke-opacity":.02,fill:h(r),"fill-opacity":t,"stroke-width":1},e){case 0:this.svg.rect(-i/2,-i/2,i,i,n),this.svg.rect(p-i/2,-i/2,i,i,n),this.svg.rect(-i/2,y-i/2,i,i,n),this.svg.rect(p-i/2,y-i/2,i,i,n);break;case 1:this.svg.rect(o/2+s,a/2,i,i,n);break;case 2:this.svg.rect(-i/2,y/2-i/2,i,i,n),this.svg.rect(p-i/2,y/2-i/2,i,i,n);break;case 3:this.svg.rect(o/2+s,1.5*a+i,i,i,n);break;case 4:this.svg.polyline(c,n).transform({translate:[i/2,-i/2],rotate:[0,i/2,s/2]}),this.svg.polyline(c,n).transform({translate:[i/2,y- -i/2],rotate:[0,i/2,s/2],scale:[1,-1]});break;case 5:this.svg.polyline(c,n).transform({translate:[p-i/2,-i/2],rotate:[0,i/2,s/2],scale:[-1,1]}),this.svg.polyline(c,n).transform({translate:[p-i/2,y+i/2],rotate:[0,i/2,s/2],scale:[-1,-1]});break;case 6:this.svg.polyline(c,n).transform({translate:[p/2+i/2,a/2]});break;case 7:this.svg.polyline(c,n).transform({translate:[p-p/2-i/2,a/2],scale:[-1,1]});break;case 8:this.svg.polyline(c,n).transform({translate:[p/2+i/2,y-a/2],scale:[1,-1]});break;case 9:this.svg.polyline(c,n).transform({translate:[p-p/2-i/2,y-a/2],scale:[-1,-1]});break;case 10:this.svg.polyline(c,n).transform({translate:[i/2,y/2-i/2]});break;case 11:this.svg.polyline(c,n).transform({translate:[p-i/2,y/2-i/2],scale:[-1,1]});break;case 12:this.svg.rect(0,0,i,i,n).transform({translate:[i/2,i/2],rotate:[-30,0,0]});break;case 13:this.svg.rect(0,0,i,i,n).transform({scale:[-1,1],translate:[-p+i/2,i/2],rotate:[-30,0,0]});break;case 14:this.svg.rect(0,0,i,i,n).transform({translate:[i/2,y/2-i/2-i],rotate:[30,0,i]});break;case 15:this.svg.rect(0,0,i,i,n).transform({scale:[-1,1],translate:[-p+i/2,y/2-i/2-i],rotate:[30,0,i]});break;case 16:this.svg.rect(0,0,i,i,n).transform({scale:[1,-1],translate:[i/2,-y+y/2-i/2-i],rotate:[30,0,i]});break;case 17:this.svg.rect(0,0,i,i,n).transform({scale:[-1,-1],translate:[-p+i/2,-y+y/2-i/2-i],rotate:[30,0,i]});break;case 18:this.svg.rect(0,0,i,i,n).transform({scale:[1,-1],translate:[i/2,-y+i/2],rotate:[-30,0,0]});break;case 19:this.svg.rect(0,0,i,i,n).transform({scale:[-1,-1],translate:[-p+i/2,-y+i/2],rotate:[-30,0,0]})}}},7410:function(e){"use strict";function t(){var e=0x67452301,t=0xefcdab89,n=0x98badcfe,r=0x10325476,i=0xc3d2e1f0,a=new Uint32Array(80),o=0,s=24,c=0;function u(){for(var s,c,u=16;u<80;u++){var l=a[u-3]^a[u-8]^a[u-14]^a[u-16];a[u]=l<<1|l>>>31}var f=e,h=t,d=n,p=r,y=i;for(u=0;u<80;u++){u<20?(s=p^h&(d^p),c=0x5a827999):u<40?(s=h^d^p,c=0x6ed9eba1):u<60?(s=h&d|p&(h|d),c=0x8f1bbcdc):(s=h^d^p,c=0xca62c1d6);var v=(f<<5|f>>>27)+s+y+c+(0|a[u]);y=p,p=d,d=h<<30|h>>>2,h=f,f=v}for(u=0,e=e+f|0,t=t+h|0,n=n+d|0,r=r+p|0,i=i+y|0,o=0;u<16;u++)a[u]=0}function l(e){a[o]|=(255&e)<<s,s?s-=8:(o++,s=24),16===o&&u()}function f(e){for(var t="",n=28;n>=0;n-=4)t+=(e>>n&15).toString(16);return t}return{update:function(e){if("string"==typeof e){var t=e.length;c+=8*t;for(var n=0;n<t;n++)l(e.charCodeAt(n));return}var r=e.length;c+=8*r;for(var i=0;i<r;i++)l(e[i])},digest:function(){l(128),(o>14||14===o&&s<24)&&u(),o=14,s=24,l(0),l(0),l(c>0xffffffffff?c/0x10000000000:0),l(c>0xffffffff?c/0x100000000:0);for(var a=24;a>=0;a-=8)l(c>>a);return f(e)+f(t)+f(n)+f(r)+f(i)}}}e.exports=function(e){if(void 0===e)return t();var n=t();return n.update(e),n.digest()}},1488:function(e,t,n){"use strict";var r=n(416),i=n(3653);function a(){return this.width=100,this.height=100,this.svg=i("svg"),this.context=[],this.setAttributes(this.svg,{xmlns:"http://www.w3.org/2000/svg",width:this.width,height:this.height}),this}e.exports=a,a.prototype.currentContext=function(){return this.context[this.context.length-1]||this.svg},a.prototype.end=function(){return this.context.pop(),this},a.prototype.currentNode=function(){var e=this.currentContext();return e.lastChild||e},a.prototype.transform=function(e){return this.currentNode().setAttribute("transform",Object.keys(e).map(function(t){return t+"("+e[t].join(",")+")"}).join(" ")),this},a.prototype.setAttributes=function(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})},a.prototype.setWidth=function(e){this.svg.setAttribute("width",Math.floor(e))},a.prototype.setHeight=function(e){this.svg.setAttribute("height",Math.floor(e))},a.prototype.toString=function(){return this.svg.toString()},a.prototype.rect=function(e,t,n,a,o){var s=this;if(Array.isArray(e))return e.forEach(function(e){s.rect.apply(s,e.concat(o))}),this;var c=i("rect");return this.currentContext().appendChild(c),this.setAttributes(c,r({x:e,y:t,width:n,height:a},o)),this},a.prototype.circle=function(e,t,n,a){var o=i("circle");return this.currentContext().appendChild(o),this.setAttributes(o,r({cx:e,cy:t,r:n},a)),this},a.prototype.path=function(e,t){var n=i("path");return this.currentContext().appendChild(n),this.setAttributes(n,r({d:e},t)),this},a.prototype.polyline=function(e,t){var n=this;if(Array.isArray(e))return e.forEach(function(e){n.polyline(e,t)}),this;var a=i("polyline");return this.currentContext().appendChild(a),this.setAttributes(a,r({points:e},t)),this},a.prototype.group=function(e){var t=i("g");return this.currentContext().appendChild(t),this.context.push(t),this.setAttributes(t,r({},e)),this}},3653:function(e){"use strict";var t=e.exports=function(e){return(null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?t[Symbol.hasInstance](this):this instanceof t)?(this.tagName=e,this.attributes=Object.create(null),this.children=[],this.lastChild=null,this):new t(e)};t.prototype.appendChild=function(e){return this.children.push(e),this.lastChild=e,this},t.prototype.setAttribute=function(e,t){return this.attributes[e]=t,this},t.prototype.toString=function(){var e=this;return["<",e.tagName,Object.keys(e.attributes).map(function(t){return[" ",t,'="',e.attributes[t],'"'].join("")}).join(""),">",e.children.map(function(e){return e.toString()}).join(""),"</",e.tagName,">"].join("")}},416:function(e){var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString;function r(e){if(!e||"[object Object]"!==n.call(e)||e.nodeType||e.setInterval)return!1;var r,i=t.call(e,"constructor"),a=t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!a)return!1;for(r in e);return void 0===r||t.call(e,r)}e.exports=function e(){var t,n,i,a,o,s,c,u=arguments[0]||{},l=1,f=arguments.length,h=!1;for("boolean"==typeof u&&(h=u,u=arguments[1]||{},l=2),(void 0===u?"undefined":(t=u)&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)!="object"&&"function"!=typeof u&&(u={});l<f;l++)if(null!=(n=arguments[l]))for(i in n)a=u[i],u!==(o=n[i])&&(h&&o&&(r(o)||(s=Array.isArray(o)))?(s?(s=!1,c=a&&Array.isArray(a)?a:[]):c=a&&r(a)?a:{},u[i]=e(h,c,o)):void 0!==o&&(u[i]=o));return u}},5631:function(e,t,n){"use strict";var r=n(7362);r.createRoot,r.hydrateRoot},8800:function(e,t,n){"use strict";var r=n(810),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useState,o=r.useEffect,s=r.useLayoutEffect,c=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,l=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&l({inst:i})},[e,n,t]),o(function(){return u(i)&&l({inst:i}),e(function(){u(i)&&l({inst:i})})},[e]),c(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:l},4273:function(e,t,n){"use strict";e.exports=n(8800)},9387:function(e,t,n){"use strict";n.a(e,async function(e,r){try{n.d(t,{Jg:()=>s});var i=n(7166),a=e([i]);i=(a.then?(await a)():a)[0];let o={flags:function(){let e={};for(let t of Object.keys(localStorage))if(t.startsWith("openmrs:feature-flag:")){let n=t.replace("openmrs:feature-flag:",""),r=JSON.parse(localStorage.getItem(`openmrs:feature-flag-meta:${n}`)||"{}");e[n]={enabled:"true"===localStorage.getItem(t),...r}}return e}()},s=(0,i.zJ)("feature-flags",o);s.subscribe(e=>{for(let[t,n]of Object.entries(e.flags))localStorage.setItem(`openmrs:feature-flag:${t}`,n.enabled.toString()),localStorage.setItem(`openmrs:feature-flag-meta:${t}`,JSON.stringify({label:n.label,description:n.description}))}),r()}catch(e){r(e)}})},2111:function(e,t,n){"use strict";n.a(e,async function(e,r){try{n.d(t,{Jg:()=>i.Jg});var i=n(9387),a=e([i]);i=(a.then?(await a)():a)[0],r()}catch(e){r(e)}})},4572:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(9387),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},8514:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(9217),i=n(1916),a=n(2151);n(382);var o=n(7282),s=n(4572),c=n(8071),u=n(2363),l=n(1612),f=n(4396),h=n(8472),d=n(3305),p=e([r,i,a,o,s,c,u,l,f,h,d]);[r,i,a,o,s,c,u,l,f,h,d]=p.then?(await p)():p,t()}catch(e){t(e)}})},3184:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(5970),i=n(6149),a=n(2639);n(382);var o=n(5911),s=n(2111),c=n(1946),u=n(4952),l=n(7974),f=n(7166),h=n(6022),d=n(9400),p=e([r,i,a,o,s,c,u,l,f,h,d]);[r,i,a,o,s,c,u,l,f,h,d]=p.then?(await p)():p,t()}catch(e){t(e)}})},9383:function(){},3416:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(6149),i=n(5650),a=e([r]);(r=(a.then?(await a)():a)[0]).Dy.String,r.z2.oneOf(i.l),r.Dy.String,r.z2.oneOf(i.l),r.Dy.String,r.Dy.String,r.Dy.String,r.Dy.Array,r.Dy.UUID,r.Dy.String,r.Dy.ConceptUuid,r.Dy.Object,r.z2.oneOf(["buddhist","chinese","coptic","dangi","ethioaa","ethiopic","gregory","hebrew","indian","islamic","islamic-umalqura","islamic-tbla","islamic-civil","islamic-rgsa","iso8601","japanese","persian","roc","islamicc"]),r.Dy.Object,r.Dy.String,t()}catch(e){t(e)}})},4082:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810);n(6962);var i=n(7974),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},763:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(4082),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},937:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810);n(6962);var i=n(7987),a=n(8514),o=e([r,i,a]);[r,i,a]=o.then?(await o)():o,t()}catch(e){t(e)}})},5358:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(7974),a=n(6935),o=n(1569),s=e([r,i,a,o]);[r,i,a,o]=s.then?(await s)():s,t()}catch(e){t(e)}})},4005:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(8534),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},5733:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},7639:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(6935),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},5114:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(8231),a=n(8534),o=e([r,i,a]);[r,i,a]=o.then?(await o)():o,t()}catch(e){t(e)}})},9082:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810);n(6962);var i=n(7974),a=n(8534),o=n(1569),s=n(8231),c=n(5114),u=n(5358),l=n(5733),f=n(4005),h=n(7639),d=e([r,i,a,o,s,c,u,l,f,h]);[r,i,a,o,s,c,u,l,f,h]=d.then?(await d)():d,t()}catch(e){t(e)}})},6935:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},7164:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(9082),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},8231:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],(0,r.createContext)(null),t()}catch(e){t(e)}})},1569:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(1338),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},3497:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(8807),i=n(7974),a=n(810),o=e([r,i,a]);[r,i,a]=o.then?(await o)():o,t()}catch(e){t(e)}})},34:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(3497),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},2621:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(8807),a=n(9400),o=n(7974),s=e([r,i,a,o]);[r,i,a,o]=s.then?(await s)():s,t()}catch(e){t(e)}})},9342:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(2621),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},6496:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810);n(6962);var i=n(7974),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},8534:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(6496),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},6022:function(e,t,n){"use strict";n.a(e,async function(e,t){try{n(9383);var r=n(3416),i=n(763),a=n(937),o=n(7164),s=n(34),c=n(9342),u=n(6496),l=n(1866),f=n(7540),h=n(5753),d=n(8678),p=n(8869),y=n(6394),v=n(3853),g=n(2270),b=n(8638),m=n(2322),w=n(1728),E=n(8491),x=n(3227),O=n(8074),S=n(9020),k=n(2612),A=e([r,i,a,o,s,c,u,l,f,h,d,p,y,v,g,b,m,w,E,x,O,S,k]);[r,i,a,o,s,c,u,l,f,h,d,p,y,v,g,b,m,w,E,x,O,S,k]=A.then?(await A)():A,t()}catch(e){t(e)}})},1866:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(8807),a=n(7974),o=e([r,i,a]);[r,i,a]=o.then?(await o)():o,t()}catch(e){t(e)}})},7540:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(2680),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},2680:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(8514),a=n(7987),o=n(8807),s=n(2856),c=e([r,i,a,o,s]);[r,i,a,o,s]=c.then?(await c)():c,t()}catch(e){t(e)}})},2856:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(7987),a=n(6280),o=n(2666),s=n(5970),c=n(7974),u=n(8678),l=e([r,i,a,o,s,c,u]);[r,i,a,o,s,c,u]=l.then?(await l)():l,t()}catch(e){t(e)}})},5753:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(7134),i=n(7166),a=n(5911);n(382);var o=e([r,a,i]);[r,a,i]=o.then?(await o)():o,(0,i.jk)("modalState",{modalContainer:null,modalStack:[]}),window.getComputedStyle(document.body).overflow,t()}catch(e){t(e)}})},8869:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(8807),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},7661:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(8869),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},6541:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(6394),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},8678:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(8999),a=n(6541),o=n(7661);n(5631);var s=e([r,a,o,i]);[r,a,o,i]=s.then?(await s)():s,new i.Subject,new i.Subject,t()}catch(e){t(e)}})},6394:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(8807),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},3853:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(38),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},38:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810);n(6962);var i=n(6149),a=n(9400),o=e([r,i,a]);[r,i,a]=o.then?(await o)():o,t()}catch(e){t(e)}})},6120:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(7974),a=n(9400),o=n(4082),s=e([r,i,a,o]);[r,i,a,o]=s.then?(await s)():s,t()}catch(e){t(e)}})},491:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810);n(6962);var i=n(8807),a=n(9400),o=n(7974),s=n(772),c=n(6641),u=n(1493),l=e([r,i,a,o,s,c,u]);[r,i,a,o,s,c,u]=l.then?(await l)():l,t()}catch(e){t(e)}})},5591:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(8807),a=n(9400),o=n(8472),s=e([r,i,a,o]);[r,i,a,o]=s.then?(await s)():s,t()}catch(e){t(e)}})},772:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(6280),a=n(5970),o=n(7974),s=e([r,i,a,o]);[r,i,a,o]=s.then?(await s)():s,t()}catch(e){t(e)}})},6641:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(5941),a=n(5970),o=e([r,i,a]);[r,i,a]=o.then?(await o)():o,t()}catch(e){t(e)}})},1493:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(5970),i=n(5941),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},2270:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(3458),i=n(6157),a=n(6120),o=n(5591),s=n(491),c=e([r,i,a,o,s]);[r,i,a,o,s]=c.then?(await c)():c,t()}catch(e){t(e)}})},6157:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(8807),a=n(7974),o=e([r,i,a]);[r,i,a]=o.then?(await o)():o,t()}catch(e){t(e)}})},3458:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810);n(6962);var i=n(7974),a=n(9400),o=n(8534),s=n(6157),c=e([r,i,a,o,s]);[r,i,a,o,s]=c.then?(await c)():c,t()}catch(e){t(e)}})},8638:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(1799),i=n(6191),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},1799:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810);n(4453);var i=n(8807),a=n(7987),o=n(6191),s=n(1889),c=e([r,i,a,o,s]);[r,i,a,o,s]=c.then?(await c)():c,t()}catch(e){t(e)}})},1889:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(7987),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},6191:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(5941),i=n(5970),a=n(7974),o=e([r,i,a]);[r,i,a]=o.then?(await o)():o,t()}catch(e){t(e)}})},2322:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810);n(6962);var i=n(7974),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},8472:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(8678),i=n(8074),a=n(5753),o=n(3506),s=n(8491),c=n(1866),u=n(937),l=n(9342),f=n(7164),h=n(1728),d=n(2270),p=n(8638),y=n(763),v=n(6496),g=n(3853),b=n(2322),m=n(7540),w=n(34),E=e([r,i,a,o,s,c,u,l,f,h,d,p,y,v,g,b,m,w]);[r,i,a,o,s,c,u,l,f,h,d,p,y,v,g,b,m,w]=E.then?(await E)():E,t()}catch(e){t(e)}})},1728:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(2448),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},2448:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(8807),a=n(7974),o=e([r,i,a]);[r,i,a]=o.then?(await o)():o,t()}catch(e){t(e)}})},7323:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(3227),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},8491:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810);n(5631);var i=n(8999),a=n(7323),o=e([r,a,i]);[r,a,i]=o.then?(await o)():o,new i.Subject,t()}catch(e){t(e)}})},3227:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810);n(6962);var i=n(8807),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},9162:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(9020),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},8074:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810);n(5631);var i=n(8999),a=n(9162),o=e([r,a,i]);[r,a,i]=o.then?(await o)():o,new i.Subject,t()}catch(e){t(e)}})},9020:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(8807),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},5650:function(e,t,n){"use strict";n.d(t,{l:()=>r});var r=["red","magenta","purple","blue","teal","cyan","gray","green","warm-gray","cool-gray","high-contrast","outline"]},9230:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810);n(6962);var i=n(8807),a=n(7974),o=n(9749),s=e([r,i,a,o]);[r,i,a,o]=s.then?(await s)():s,t()}catch(e){t(e)}})},2983:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810);n(6962);var i=n(7974),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},9045:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(7987);n(6962);var a=n(8807),o=n(7974),s=n(9400),c=n(8534),u=n(1029),l=n(9749),f=n(6766),h=n(2983),d=e([r,i,a,o,s,c,u,l,f,h]);[r,i,a,o,s,c,u,l,f,h]=d.then?(await d)():d,t()}catch(e){t(e)}})},6766:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(7134),a=n(620),o=n(8807),s=n(9400),c=n(7931),u=e([r,i,a,o,s,c]);[r,i,a,o,s,c]=u.then?(await u)():u,t()}catch(e){t(e)}})},2612:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(9230),i=n(2983),a=n(9045),o=n(1029),s=n(9749),c=e([r,i,a,o,s]);[r,i,a,o,s]=c.then?(await c)():c,t()}catch(e){t(e)}})},1029:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(7987),a=n(8807),o=n(1946);n(382);var s=n(9749),c=e([r,i,a,o,s]);[r,i,a,o,s]=c.then?(await c)():c,t()}catch(e){t(e)}})},3506:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(9230),i=n(9045),a=n(9749),o=e([r,i,a]);[r,i,a]=o.then?(await o)():o,t()}catch(e){t(e)}})},7931:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(9749),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},9749:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(5911),a=n(1946),o=n(7166),s=n(9400),c=n(7974),u=e([r,i,a,s,c,o]);[r,i,a,s,c,o]=u.then?(await u)():u,(0,o.jk)("workspace",{context:"",openWorkspaces:[],prompt:null,workspaceWindowState:"normal",workspaceGroup:void 0}),t()}catch(e){t(e)}})},1338:function(e){"use strict";e.exports=import("dayjs").then(function(e){return e})},2021:function(e){"use strict";e.exports=import("i18next").then(function(e){return e})},810:function(e){"use strict";e.exports=import("react").then(function(e){return e})},7362:function(e){"use strict";e.exports=import("react-dom").then(function(e){return e})},7987:function(e){"use strict";e.exports=import("react-i18next").then(function(e){return e})},8999:function(e){"use strict";e.exports=import("rxjs").then(function(e){return e})},7134:function(e){"use strict";e.exports=import("single-spa").then(function(e){return e})},5941:function(e){"use strict";e.exports=import("swr").then(function(e){return e})},6962:function(e){function t(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e="",a=0;a<arguments.length;a++){var o=arguments[a];o&&(e=i(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if((void 0===e?"undefined":t(e))!=="object")return"";if(Array.isArray(e))return r.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var a="";for(var o in e)n.call(e,o)&&e[o]&&(a=i(a,o));return a}(o)))}return e}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(r.default=r,e.exports=r):"function"==typeof define&&"object"===t(define.amd)&&define.amd?define("classnames",[],function(){return r}):window.classNames=r}()},4197:function(e,t,n){"use strict";let r;n.d(t,{ZP:()=>nu});let i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,a=Object.keys,o=Array.isArray;function s(e,t){return"object"!=typeof t||a(t).forEach(function(n){e[n]=t[n]}),e}"undefined"==typeof Promise||i.Promise||(i.Promise=Promise);let c=Object.getPrototypeOf,u={}.hasOwnProperty;function l(e,t){return u.call(e,t)}function f(e,t){"function"==typeof t&&(t=t(c(e))),("undefined"==typeof Reflect?a:Reflect.ownKeys)(t).forEach(n=>{d(e,n,t[n])})}let h=Object.defineProperty;function d(e,t,n,r){h(e,t,s(n&&l(n,"get")&&"function"==typeof n.get?{get:n.get,set:n.set,configurable:!0}:{value:n,configurable:!0,writable:!0},r))}function p(e){return{from:function(t){return e.prototype=Object.create(t.prototype),d(e.prototype,"constructor",e),{extend:f.bind(null,e.prototype)}}}}let y=Object.getOwnPropertyDescriptor;function v(e,t){let n;return y(e,t)||(n=c(e))&&v(n,t)}let g=[].slice;function b(e,t,n){return g.call(e,t,n)}function m(e,t){return t(e)}function w(e){if(!e)throw Error("Assertion Failed")}function E(e){i.setImmediate?setImmediate(e):setTimeout(e,0)}function x(e,t){return e.reduce((e,n,r)=>{var i=t(n,r);return i&&(e[i[0]]=i[1]),e},{})}function O(e,t){if(l(e,t))return e[t];if(!t)return e;if("string"!=typeof t){for(var n=[],r=0,i=t.length;r<i;++r){var a=O(e,t[r]);n.push(a)}return n}var o=t.indexOf(".");if(-1!==o){var s=e[t.substr(0,o)];return void 0===s?void 0:O(s,t.substr(o+1))}}function S(e,t,n){if(e&&void 0!==t&&(!("isFrozen"in Object)||!Object.isFrozen(e)))if("string"!=typeof t&&"length"in t){w("string"!=typeof n&&"length"in n);for(var r=0,i=t.length;r<i;++r)S(e,t[r],n[r])}else{var a=t.indexOf(".");if(-1!==a){var s=t.substr(0,a),c=t.substr(a+1);if(""===c)void 0===n?o(e)&&!isNaN(parseInt(s))?e.splice(s,1):delete e[s]:e[s]=n;else{var u=e[s];u&&l(e,s)||(u=e[s]={}),S(u,c,n)}}else void 0===n?o(e)&&!isNaN(parseInt(t))?e.splice(t,1):delete e[t]:e[t]=n}}function k(e){var t={};for(var n in e)l(e,n)&&(t[n]=e[n]);return t}let A=[].concat;function j(e){return A.apply([],e)}let C="Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(j([8,16,32,64].map(e=>["Int","Uint","Float"].map(t=>t+e+"Array")))).filter(e=>i[e]),P=C.map(e=>i[e]);x(C,e=>[e,!0]);let D=null;function T(e){D="undefined"!=typeof WeakMap&&new WeakMap;let t=function e(t){if(!t||"object"!=typeof t)return t;let n=D&&D.get(t);if(n)return n;if(o(t)){n=[],D&&D.set(t,n);for(var r=0,i=t.length;r<i;++r)n.push(e(t[r]))}else if(P.indexOf(t.constructor)>=0)n=t;else{let r=c(t);for(var a in n=r===Object.prototype?{}:Object.create(r),D&&D.set(t,n),t)l(t,a)&&(n[a]=e(t[a]))}return n}(e);return D=null,t}let{toString:R}={};function I(e){return R.call(e).slice(8,-1)}let N="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator",L="symbol"==typeof N?function(e){var t;return null!=e&&(t=e[N])&&t.apply(e)}:function(){return null},B={};function Z(e){var t,n,r,i;if(1==arguments.length){if(o(e))return e.slice();if(this===B&&"string"==typeof e)return[e];if(i=L(e)){for(n=[];!(r=i.next()).done;)n.push(r.value);return n}if(null==e)return[e];if("number"==typeof(t=e.length)){for(n=Array(t);t--;)n[t]=e[t];return n}return[e]}for(t=arguments.length,n=Array(t);t--;)n[t]=arguments[t];return n}let M="undefined"!=typeof Symbol?e=>"AsyncFunction"===e[Symbol.toStringTag]:()=>!1;var K="undefined"!=typeof location&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href),F=()=>!0;let U=!Error("").stack;function V(){if(U)try{throw V.arguments,Error()}catch(e){return e}return Error()}function $(e,t){var n=e.stack;return n?(t=t||0,0===n.indexOf(e.name)&&(t+=(e.name+e.message).split("\n").length),n.split("\n").slice(t).filter(F).map(e=>"\n"+e).join("")):""}var q=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],W=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(q),z={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function H(e,t){this._e=V(),this.name=e,this.message=t}function J(e,t){return e+". Errors: "+Object.keys(t).map(e=>t[e].toString()).filter((e,t,n)=>n.indexOf(e)===t).join("\n")}function X(e,t,n,r){this._e=V(),this.failures=t,this.failedKeys=r,this.successCount=n,this.message=J(e,t)}function Y(e,t){this._e=V(),this.name="BulkError",this.failures=Object.keys(t).map(e=>t[e]),this.failuresByPos=t,this.message=J(e,t)}p(H).from(Error).extend({stack:{get:function(){return this._stack||(this._stack=this.name+": "+this.message+$(this._e,2))}},toString:function(){return this.name+": "+this.message}}),p(X).from(H),p(Y).from(H);var G=W.reduce((e,t)=>(e[t]=t+"Error",e),{}),Q=W.reduce((e,t)=>{var n=t+"Error";function r(e,r){this._e=V(),this.name=n,e?"string"==typeof e?(this.message=`${e}${r?"\n "+r:""}`,this.inner=r||null):"object"==typeof e&&(this.message=`${e.name} ${e.message}`,this.inner=e):(this.message=z[t]||n,this.inner=null)}return p(r).from(H),e[t]=r,e},{});Q.Syntax=SyntaxError,Q.Type=TypeError,Q.Range=RangeError;var ee=q.reduce((e,t)=>(e[t+"Error"]=Q[t],e),{}),et=W.reduce((e,t)=>(-1===["Syntax","Type","Range"].indexOf(t)&&(e[t+"Error"]=Q[t]),e),{});function en(){}function er(e){return e}function ei(e,t){return null==e||e===er?t:function(n){return t(e(n))}}function ea(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function eo(e,t){return e===en?t:function(){var n=e.apply(this,arguments);void 0!==n&&(arguments[0]=n);var r=this.onsuccess,i=this.onerror;this.onsuccess=null,this.onerror=null;var a=t.apply(this,arguments);return r&&(this.onsuccess=this.onsuccess?ea(r,this.onsuccess):r),i&&(this.onerror=this.onerror?ea(i,this.onerror):i),void 0!==a?a:n}}function es(e,t){return e===en?t:function(){e.apply(this,arguments);var n=this.onsuccess,r=this.onerror;this.onsuccess=this.onerror=null,t.apply(this,arguments),n&&(this.onsuccess=this.onsuccess?ea(n,this.onsuccess):n),r&&(this.onerror=this.onerror?ea(r,this.onerror):r)}}function ec(e,t){return e===en?t:function(n){var r=e.apply(this,arguments);s(n,r);var i=this.onsuccess,a=this.onerror;this.onsuccess=null,this.onerror=null;var o=t.apply(this,arguments);return i&&(this.onsuccess=this.onsuccess?ea(i,this.onsuccess):i),a&&(this.onerror=this.onerror?ea(a,this.onerror):a),void 0===r?void 0===o?void 0:o:s(r,o)}}function eu(e,t){return e===en?t:function(){return!1!==t.apply(this,arguments)&&e.apply(this,arguments)}}function el(e,t){return e===en?t:function(){var n=e.apply(this,arguments);if(n&&"function"==typeof n.then){for(var r=this,i=arguments.length,a=Array(i);i--;)a[i]=arguments[i];return n.then(function(){return t.apply(r,a)})}return t.apply(this,arguments)}}et.ModifyError=X,et.DexieError=H,et.BulkError=Y;var ef={};let[eh,ed,ep]="undefined"==typeof Promise?[]:(()=>{let e=Promise.resolve();if("undefined"==typeof crypto||!crypto.subtle)return[e,c(e),e];let t=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[t,c(t),e]})(),ey=ed&&ed.then,ev=eh&&eh.constructor,eg=!!ep;var eb=!1,em=ep?()=>{ep.then(eK)}:i.setImmediate?setImmediate.bind(null,eK):i.MutationObserver?()=>{var e=document.createElement("div");new MutationObserver(()=>{eK(),e=null}).observe(e,{attributes:!0}),e.setAttribute("i","1")}:()=>{setTimeout(eK,0)},ew=function(e,t){eC.push([e,t]),eE&&(em(),eE=!1)},e_=!0,eE=!0,ex=[],eO=[],eS=null,ek=er,eA={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:e7,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach(e=>{try{e7(e[0],e[1])}catch(e){}})}},ej=eA,eC=[],eP=0,eD=[];function eT(e){if("object"!=typeof this)throw TypeError("Promises must be constructed via new");this._listeners=[],this.onuncatched=en,this._lib=!1;var t=this._PSD=ej;if(K&&(this._stackHolder=V(),this._prev=null,this._numPrev=0),"function"!=typeof e){if(e!==ef)throw TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(!1===this._state&&eN(this,this._value))}this._state=null,this._value=null,++t.ref,function e(t,n){try{n(n=>{if(null===t._state){if(n===t)throw TypeError("A promise cannot be resolved with itself.");var r=t._lib&&eF();n&&"function"==typeof n.then?e(t,(e,t)=>{n instanceof eT?n._then(e,t):n.then(e,t)}):(t._state=!0,t._value=n,eL(t)),r&&eU()}},eN.bind(null,t))}catch(e){eN(t,e)}}(this,e)}let eR={get:function(){var e=ej,t=eX;function n(n,r){var i=!e.global&&(e!==ej||t!==eX);let a=i&&!e0();var o=new eT((t,o)=>{eB(this,new eI(e5(n,e,i,a),e5(r,e,i,a),t,o,e))});return K&&eM(o,this),o}return n.prototype=ef,n},set:function(e){d(this,"then",e&&e.prototype===ef?eR:{get:function(){return e},set:eR.set})}};function eI(e,t,n,r,i){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.resolve=n,this.reject=r,this.psd=i}function eN(e,t){if(eO.push(t),null===e._state){var n=e._lib&&eF();t=ek(t),e._state=!1,e._value=t,K&&null!==t&&"object"==typeof t&&!t._promise&&function(e,t,n){try{e.apply(null,void 0)}catch(e){}}(()=>{var n=v(t,"stack");t._promise=e,d(t,"stack",{get:()=>eb?n&&(n.get?n.get.apply(t):n.value):e.stack})}),ex.some(t=>t._value===e._value)||ex.push(e),eL(e),n&&eU()}}function eL(e){var t=e._listeners;e._listeners=[];for(var n=0,r=t.length;n<r;++n)eB(e,t[n]);var i=e._PSD;--i.ref||i.finalize(),0===eP&&(++eP,ew(()=>{0==--eP&&eV()},[]))}function eB(e,t){if(null!==e._state){var n=e._state?t.onFulfilled:t.onRejected;if(null===n)return(e._state?t.resolve:t.reject)(e._value);++t.psd.ref,++eP,ew(eZ,[n,e,t])}else e._listeners.push(t)}function eZ(e,t,n){try{eS=t;var r,i=t._value;t._state?r=e(i):(eO.length&&(eO=[]),r=e(i),-1===eO.indexOf(i)&&function(e){for(var t=ex.length;t;)if(ex[--t]._value===e._value)return void ex.splice(t,1)}(t)),n.resolve(r)}catch(e){n.reject(e)}finally{eS=null,0==--eP&&eV(),--n.psd.ref||n.psd.finalize()}}function eM(e,t){var n=t?t._numPrev+1:0;n<100&&(e._prev=t,e._numPrev=n)}function eK(){eF()&&eU()}function eF(){var e=e_;return e_=!1,eE=!1,e}function eU(){var e,t,n;do for(;eC.length>0;)for(e=eC,eC=[],n=e.length,t=0;t<n;++t){var r=e[t];r[0].apply(null,r[1])}while(eC.length>0);e_=!0,eE=!0}function eV(){var e=ex;ex=[],e.forEach(e=>{e._PSD.onunhandled.call(null,e._value,e)});for(var t=eD.slice(0),n=t.length;n;)t[--n]()}function e$(e){return new eT(ef,!1,e)}function eq(e,t){var n=ej;return function(){var r=eF(),i=ej;try{return e8(n,!0),e.apply(this,arguments)}catch(e){t&&t(e)}finally{e8(i,!1),r&&eU()}}}f(eT.prototype,{then:eR,_then:function(e,t){eB(this,new eI(null,null,e,t,ej))},catch:function(e){if(1==arguments.length)return this.then(null,e);var t=arguments[0],n=arguments[1];return"function"==typeof t?this.then(null,e=>e instanceof t?n(e):e$(e)):this.then(null,e=>e&&e.name===t?n(e):e$(e))},finally:function(e){return this.then(t=>(e(),t),t=>(e(),e$(t)))},stack:{get:function(){if(this._stack)return this._stack;try{eb=!0;var e=(function e(t,n,r){if(n.length===r)return n;var i="";if(!1===t._state){var a,o,s=t._value;null!=s?(a=s.name||"Error",o=s.message||s,i=$(s,0)):(a=s,o=""),n.push(a+(o?": "+o:"")+i)}return K&&((i=$(t._stackHolder,2))&&-1===n.indexOf(i)&&n.push(i),t._prev&&e(t._prev,n,r)),n})(this,[],20).join("\nFrom previous: ");return null!==this._state&&(this._stack=e),e}finally{eb=!1}}},timeout:function(e,t){return e<1/0?new eT((n,r)=>{var i=setTimeout(()=>r(new Q.Timeout(t)),e);this.then(n,r).finally(clearTimeout.bind(null,i))}):this}}),"undefined"!=typeof Symbol&&Symbol.toStringTag&&d(eT.prototype,Symbol.toStringTag,"Dexie.Promise"),eA.env=e9(),f(eT,{all:function(){var e=Z.apply(null,arguments).map(e1);return new eT(function(t,n){0===e.length&&t([]);var r=e.length;e.forEach((i,a)=>eT.resolve(i).then(n=>{e[a]=n,--r||t(e)},n))})},resolve:e=>{if(e instanceof eT)return e;if(e&&"function"==typeof e.then)return new eT((t,n)=>{e.then(t,n)});var t=new eT(ef,!0,e);return eM(t,eS),t},reject:e$,race:function(){var e=Z.apply(null,arguments).map(e1);return new eT((t,n)=>{e.map(e=>eT.resolve(e).then(t,n))})},PSD:{get:()=>ej,set:e=>ej=e},totalEchoes:{get:()=>eX},newPSD:eG,usePSD:e4,scheduler:{get:()=>ew,set:e=>{ew=e}},rejectionMapper:{get:()=>ek,set:e=>{ek=e}},follow:(e,t)=>new eT((n,r)=>eG((t,n)=>{var r=ej;r.unhandleds=[],r.onunhandled=n,r.finalize=ea(function(){var e;e=()=>{0===this.unhandleds.length?t():n(this.unhandleds[0])},eD.push(function t(){e(),eD.splice(eD.indexOf(t),1)}),++eP,ew(()=>{0==--eP&&eV()},[])},r.finalize),e()},t,n,r))}),ev&&(ev.allSettled&&d(eT,"allSettled",function(){let e=Z.apply(null,arguments).map(e1);return new eT(t=>{0===e.length&&t([]);let n=e.length,r=Array(n);e.forEach((e,i)=>eT.resolve(e).then(e=>r[i]={status:"fulfilled",value:e},e=>r[i]={status:"rejected",reason:e}).then(()=>--n||t(r)))})}),ev.any&&"undefined"!=typeof AggregateError&&d(eT,"any",function(){let e=Z.apply(null,arguments).map(e1);return new eT((t,n)=>{0===e.length&&n(AggregateError([]));let r=e.length,i=Array(r);e.forEach((e,a)=>eT.resolve(e).then(e=>t(e),e=>{i[a]=e,--r||n(AggregateError(i))}))})}));let eW={awaits:0,echoes:0,id:0};var ez=0,eH=[],eJ=0,eX=0,eY=0;function eG(e,t,n,r){var i=ej,a=Object.create(i);a.parent=i,a.ref=0,a.global=!1,a.id=++eY;var o=eA.env;a.env=eg?{Promise:eT,PromiseProp:{value:eT,configurable:!0,writable:!0},all:eT.all,race:eT.race,allSettled:eT.allSettled,any:eT.any,resolve:eT.resolve,reject:eT.reject,nthen:e3(o.nthen,a),gthen:e3(o.gthen,a)}:{},t&&s(a,t),++i.ref,a.finalize=function(){--this.parent.ref||this.parent.finalize()};var c=e4(a,e,n,r);return 0===a.ref&&a.finalize(),c}function eQ(){return eW.id||(eW.id=++ez),++eW.awaits,eW.echoes+=100,eW.id}function e0(){return!!eW.awaits&&(0==--eW.awaits&&(eW.id=0),eW.echoes=100*eW.awaits,!0)}function e1(e){return eW.echoes&&e&&e.constructor===ev?(eQ(),e.then(e=>(e0(),e),e=>(e0(),te(e)))):e}function e2(e){++eX,eW.echoes&&0!=--eW.echoes||(eW.echoes=eW.id=0),eH.push(ej),e8(e,!0)}function e6(){var e=eH[eH.length-1];eH.pop(),e8(e,!1)}function e8(e,t){var n,r=ej;if((t?!eW.echoes||eJ++&&e===ej:!eJ||--eJ&&e===ej)||(n=t?e2.bind(null,e):e6,ey.call(eh,n)),e!==ej&&(ej=e,r===eA&&(eA.env=e9()),eg)){var a=eA.env.Promise,o=e.env;ed.then=o.nthen,a.prototype.then=o.gthen,(r.global||e.global)&&(Object.defineProperty(i,"Promise",o.PromiseProp),a.all=o.all,a.race=o.race,a.resolve=o.resolve,a.reject=o.reject,o.allSettled&&(a.allSettled=o.allSettled),o.any&&(a.any=o.any))}}function e9(){var e=i.Promise;return eg?{Promise:e,PromiseProp:Object.getOwnPropertyDescriptor(i,"Promise"),all:e.all,race:e.race,allSettled:e.allSettled,any:e.any,resolve:e.resolve,reject:e.reject,nthen:ed.then,gthen:e.prototype.then}:{}}function e4(e,t,n,r,i){var a=ej;try{return e8(e,!0),t(n,r,i)}finally{e8(a,!1)}}function e5(e,t,n,r){return"function"!=typeof e?e:function(){var i,a=ej;n&&eQ(),e8(t,!0);try{return e.apply(this,arguments)}finally{e8(a,!1),r&&(i=e0,ey.call(eh,i))}}}function e3(e,t){return function(n,r){return e.call(this,e5(n,t),e5(r,t))}}function e7(e,t){var n;try{n=t.onuncatched(e)}catch(e){}if(!1!==n)try{var r,a={promise:t,reason:e};if(i.document&&document.createEvent?((r=document.createEvent("Event")).initEvent("unhandledrejection",!0,!0),s(r,a)):i.CustomEvent&&s(r=new CustomEvent("unhandledrejection",{detail:a}),a),r&&i.dispatchEvent&&(dispatchEvent(r),!i.PromiseRejectionEvent&&i.onunhandledrejection))try{i.onunhandledrejection(r)}catch(e){}K&&r&&!r.defaultPrevented&&console.warn(`Unhandled rejection: ${e.stack||e}`)}catch(e){}}-1===(""+ey).indexOf("[native code]")&&(eQ=e0=en);var te=eT.reject;let tt=String.fromCharCode(65535),tn="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",tr=[],ti="undefined"!=typeof navigator&&/(MSIE|Trident|Edge)/.test(navigator.userAgent),ta=e=>!/(dexie\.js|dexie\.min\.js)/.test(e);function to(e,t){return e?t?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:e:t}let ts={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function tc(e){return"string"!=typeof e||/\./.test(e)?e=>e:t=>(void 0===t[e]&&e in t&&delete(t=T(t))[e],t)}class tu{_trans(e,t,n){let r=this._tx||ej.trans,i=this.name;function a(e,n,r){if(!r.schema[i])throw new Q.NotFound("Table "+i+" not part of transaction");return t(r.idbtrans,r)}let o=eF();try{return r&&r.db===this.db?r===ej.trans?r._promise(e,a,n):eG(()=>r._promise(e,a,n),{trans:r,transless:ej.transless||ej}):function e(t,n,r,i){if(t.idbdb&&(t._state.openComplete||ej.letThrough||t._vip)){var a=t._createTransaction(n,r,t._dbSchema);try{a.create(),t._state.PR1398_maxLoop=3}catch(a){return a.name===G.InvalidState&&t.isOpen()&&--t._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),t._close(),t.open().then(()=>e(t,n,r,i))):te(a)}return a._promise(n,(e,t)=>eG(()=>(ej.trans=a,i(e,t,a)))).then(e=>a._completion.then(()=>e))}if(t._state.openComplete)return te(new Q.DatabaseClosed(t._state.dbOpenError));if(!t._state.isBeingOpened){if(!t._options.autoOpen)return te(new Q.DatabaseClosed);t.open().catch(en)}return t._state.dbReadyPromise.then(()=>e(t,n,r,i))}(this.db,e,[this.name],a)}finally{o&&eU()}}get(e,t){return e&&e.constructor===Object?this.where(e).first(t):this._trans("readonly",t=>this.core.get({trans:t,key:e}).then(e=>this.hook.reading.fire(e))).then(t)}where(e){if("string"==typeof e)return new this.db.WhereClause(this,e);if(o(e))return new this.db.WhereClause(this,`[${e.join("+")}]`);let t=a(e);if(1===t.length)return this.where(t[0]).equals(e[t[0]]);let n=this.schema.indexes.concat(this.schema.primKey).filter(e=>e.compound&&t.every(t=>e.keyPath.indexOf(t)>=0)&&e.keyPath.every(e=>t.indexOf(e)>=0))[0];if(n&&this.db._maxKey!==tt)return this.where(n.name).equals(n.keyPath.map(t=>e[t]));!n&&K&&console.warn(`The query ${JSON.stringify(e)} on ${this.name} would benefit of a compound index [${t.join("+")}]`);let{idxByName:r}=this.schema,i=this.db._deps.indexedDB;function s(e,t){try{return 0===i.cmp(e,t)}catch(e){return!1}}let[c,u]=t.reduce(([t,n],i)=>{let a=r[i],c=e[i];return[t||a,t||!a?to(n,a&&a.multi?e=>{let t=O(e,i);return o(t)&&t.some(e=>s(c,e))}:e=>s(c,O(e,i))):n]},[null,null]);return c?this.where(c.name).equals(e[c.keyPath]).filter(u):n?this.filter(u):this.where(t).equals("")}filter(e){return this.toCollection().and(e)}count(e){return this.toCollection().count(e)}offset(e){return this.toCollection().offset(e)}limit(e){return this.toCollection().limit(e)}each(e){return this.toCollection().each(e)}toArray(e){return this.toCollection().toArray(e)}toCollection(){return new this.db.Collection(new this.db.WhereClause(this))}orderBy(e){return new this.db.Collection(new this.db.WhereClause(this,o(e)?`[${e.join("+")}]`:e))}reverse(){return this.toCollection().reverse()}mapToClass(e){this.schema.mappedClass=e;let t=t=>{if(!t)return t;let n=Object.create(e.prototype);for(var r in t)if(l(t,r))try{n[r]=t[r]}catch(e){}return n};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=t,this.hook("reading",t),e}defineClass(){return this.mapToClass(function(e){s(this,e)})}add(e,t){let{auto:n,keyPath:r}=this.schema.primKey,i=e;return r&&n&&(i=tc(r)(e)),this._trans("readwrite",e=>this.core.mutate({trans:e,type:"add",keys:null!=t?[t]:null,values:[i]})).then(e=>e.numFailures?eT.reject(e.failures[0]):e.lastResult).then(t=>{if(r)try{S(e,r,t)}catch(e){}return t})}update(e,t){if("object"!=typeof e||o(e))return this.where(":id").equals(e).modify(t);{let n=O(e,this.schema.primKey.keyPath);if(void 0===n)return te(new Q.InvalidArgument("Given object does not contain its primary key"));try{"function"!=typeof t?a(t).forEach(n=>{S(e,n,t[n])}):t(e,{value:e,primKey:n})}catch(e){}return this.where(":id").equals(n).modify(t)}}put(e,t){let{auto:n,keyPath:r}=this.schema.primKey,i=e;return r&&n&&(i=tc(r)(e)),this._trans("readwrite",e=>this.core.mutate({trans:e,type:"put",values:[i],keys:null!=t?[t]:null})).then(e=>e.numFailures?eT.reject(e.failures[0]):e.lastResult).then(t=>{if(r)try{S(e,r,t)}catch(e){}return t})}delete(e){return this._trans("readwrite",t=>this.core.mutate({trans:t,type:"delete",keys:[e]})).then(e=>e.numFailures?eT.reject(e.failures[0]):void 0)}clear(){return this._trans("readwrite",e=>this.core.mutate({trans:e,type:"deleteRange",range:ts})).then(e=>e.numFailures?eT.reject(e.failures[0]):void 0)}bulkGet(e){return this._trans("readonly",t=>this.core.getMany({keys:e,trans:t}).then(e=>e.map(e=>this.hook.reading.fire(e))))}bulkAdd(e,t,n){let r=Array.isArray(t)?t:void 0,i=(n=n||(r?void 0:t))?n.allKeys:void 0;return this._trans("readwrite",t=>{let{auto:n,keyPath:a}=this.schema.primKey;if(a&&r)throw new Q.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(r&&r.length!==e.length)throw new Q.InvalidArgument("Arguments objects and keys must have the same length");let o=e.length,s=a&&n?e.map(tc(a)):e;return this.core.mutate({trans:t,type:"add",keys:r,values:s,wantResults:i}).then(({numFailures:e,results:t,lastResult:n,failures:r})=>{if(0===e)return i?t:n;throw new Y(`${this.name}.bulkAdd(): ${e} of ${o} operations failed`,r)})})}bulkPut(e,t,n){let r=Array.isArray(t)?t:void 0,i=(n=n||(r?void 0:t))?n.allKeys:void 0;return this._trans("readwrite",t=>{let{auto:n,keyPath:a}=this.schema.primKey;if(a&&r)throw new Q.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(r&&r.length!==e.length)throw new Q.InvalidArgument("Arguments objects and keys must have the same length");let o=e.length,s=a&&n?e.map(tc(a)):e;return this.core.mutate({trans:t,type:"put",keys:r,values:s,wantResults:i}).then(({numFailures:e,results:t,lastResult:n,failures:r})=>{if(0===e)return i?t:n;throw new Y(`${this.name}.bulkPut(): ${e} of ${o} operations failed`,r)})})}bulkDelete(e){let t=e.length;return this._trans("readwrite",t=>this.core.mutate({trans:t,type:"delete",keys:e})).then(({numFailures:e,lastResult:n,failures:r})=>{if(0===e)return n;throw new Y(`${this.name}.bulkDelete(): ${e} of ${t} operations failed`,r)})}}function tl(e){var t={},n=function(n,r){if(r){for(var i=arguments.length,a=Array(i-1);--i;)a[i-1]=arguments[i];return t[n].subscribe.apply(null,a),e}if("string"==typeof n)return t[n]};n.addEventType=s;for(var r=1,i=arguments.length;r<i;++r)s(arguments[r]);return n;function s(e,r,i){if("object"==typeof e){var c;return void a(c=e).forEach(function(e){var t=c[e];if(o(t))s(e,c[e][0],c[e][1]);else{if("asap"!==t)throw new Q.InvalidArgument("Invalid event config");var n=s(e,er,function(){for(var e=arguments.length,t=Array(e);e--;)t[e]=arguments[e];n.subscribers.forEach(function(e){E(function(){e.apply(null,t)})})})}})}r||(r=eu),i||(i=en);var u={subscribers:[],fire:i,subscribe:function(e){-1===u.subscribers.indexOf(e)&&(u.subscribers.push(e),u.fire=r(u.fire,e))},unsubscribe:function(e){u.subscribers=u.subscribers.filter(function(t){return t!==e}),u.fire=u.subscribers.reduce(r,i)}};return t[e]=n[e]=u,u}}function tf(e,t){return p(t).from({prototype:e}),t}function th(e,t){return!(e.filter||e.algorithm||e.or)&&(t?e.justLimit:!e.replayFilter)}function td(e,t){e.filter=to(e.filter,t)}function tp(e,t,n){var r=e.replayFilter;e.replayFilter=r?()=>to(r(),t()):t,e.justLimit=n&&!r}function ty(e,t){if(e.isPrimKey)return t.primaryKey;let n=t.getIndexByKeyPath(e.index);if(!n)throw new Q.Schema("KeyPath "+e.index+" on object store "+t.name+" is not indexed");return n}function tv(e,t,n){let r=ty(e,t.schema);return t.openCursor({trans:n,values:!e.keysOnly,reverse:"prev"===e.dir,unique:!!e.unique,query:{index:r,range:e.range}})}function tg(e,t,n,r){let i=e.replayFilter?to(e.filter,e.replayFilter()):e.filter;if(e.or){let a={},o=(e,n,r)=>{if(!i||i(n,r,e=>n.stop(e),e=>n.fail(e))){var o=n.primaryKey,s=""+o;"[object ArrayBuffer]"===s&&(s=""+new Uint8Array(o)),l(a,s)||(a[s]=!0,t(e,n,r))}};return Promise.all([e.or._iterate(o,n),tb(tv(e,r,n),e.algorithm,o,!e.keysOnly&&e.valueMapper)])}return tb(tv(e,r,n),to(e.algorithm,i),t,!e.keysOnly&&e.valueMapper)}function tb(e,t,n,r){var i=eq(r?(e,t,i)=>n(r(e),t,i):n);return e.then(e=>{if(e)return e.start(()=>{var n=()=>e.continue();t&&!t(e,e=>n=e,t=>{e.stop(t),n=en},t=>{e.fail(t),n=en})||i(e.value,e,e=>n=e),n()})})}function tm(e,t){try{let n=tw(e),r=tw(t);if(n!==r)return"Array"===n?1:"Array"===r?-1:"binary"===n?1:"binary"===r?-1:"string"===n?1:"string"===r?-1:"Date"===n?1:"Date"!==r?NaN:-1;switch(n){case"number":case"Date":case"string":return e>t?1:e<t?-1:0;case"binary":return function(e,t){let n=e.length,r=t.length,i=n<r?n:r;for(let n=0;n<i;++n)if(e[n]!==t[n])return e[n]<t[n]?-1:1;return n===r?0:n<r?-1:1}(t_(e),t_(t));case"Array":return function(e,t){let n=e.length,r=t.length,i=n<r?n:r;for(let n=0;n<i;++n){let r=tm(e[n],t[n]);if(0!==r)return r}return n===r?0:n<r?-1:1}(e,t)}}catch(e){}return NaN}function tw(e){let t=typeof e;if("object"!==t)return t;if(ArrayBuffer.isView(e))return"binary";let n=I(e);return"ArrayBuffer"===n?"binary":n}function t_(e){return e instanceof Uint8Array?e:ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e)}class tE{_read(e,t){var n=this._ctx;return n.error?n.table._trans(null,te.bind(null,n.error)):n.table._trans("readonly",e).then(t)}_write(e){var t=this._ctx;return t.error?t.table._trans(null,te.bind(null,t.error)):t.table._trans("readwrite",e,"locked")}_addAlgorithm(e){var t=this._ctx;t.algorithm=to(t.algorithm,e)}_iterate(e,t){return tg(this._ctx,e,t,this._ctx.table.core)}clone(e){var t=Object.create(this.constructor.prototype),n=Object.create(this._ctx);return e&&s(n,e),t._ctx=n,t}raw(){return this._ctx.valueMapper=null,this}each(e){var t=this._ctx;return this._read(n=>tg(t,e,n,t.table.core))}count(e){return this._read(e=>{let t=this._ctx,n=t.table.core;if(th(t,!0))return n.count({trans:e,query:{index:ty(t,n.schema),range:t.range}}).then(e=>Math.min(e,t.limit));var r=0;return tg(t,()=>(++r,!1),e,n).then(()=>r)}).then(e)}sortBy(e,t){let n=e.split(".").reverse(),r=n[0],i=n.length-1;function a(e,t){return t?a(e[n[t]],t-1):e[r]}var o="next"===this._ctx.dir?1:-1;function s(e,t){var n=a(e,i),r=a(t,i);return n<r?-o:n>r?o:0}return this.toArray(function(e){return e.sort(s)}).then(t)}toArray(e){return this._read(e=>{var t=this._ctx;if("next"===t.dir&&th(t,!0)&&t.limit>0){let{valueMapper:n}=t,r=ty(t,t.table.core.schema);return t.table.core.query({trans:e,limit:t.limit,values:!0,query:{index:r,range:t.range}}).then(({result:e})=>n?e.map(n):e)}{let n=[];return tg(t,e=>n.push(e),e,t.table.core).then(()=>n)}},e)}offset(e){var t=this._ctx;return e<=0||(t.offset+=e,th(t)?tp(t,()=>{var t=e;return(e,n)=>0===t||(1===t?--t:n(()=>{e.advance(t),t=0}),!1)}):tp(t,()=>{var t=e;return()=>--t<0})),this}limit(e){return this._ctx.limit=Math.min(this._ctx.limit,e),tp(this._ctx,()=>{var t=e;return function(e,n,r){return--t<=0&&n(r),t>=0}},!0),this}until(e,t){return td(this._ctx,function(n,r,i){return!e(n.value)||(r(i),t)}),this}first(e){return this.limit(1).toArray(function(e){return e[0]}).then(e)}last(e){return this.reverse().first(e)}filter(e){var t;return td(this._ctx,function(t){return e(t.value)}),(t=this._ctx).isMatch=to(t.isMatch,e),this}and(e){return this.filter(e)}or(e){return new this.db.WhereClause(this._ctx.table,e,this)}reverse(){return this._ctx.dir="prev"===this._ctx.dir?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this}desc(){return this.reverse()}eachKey(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each(function(t,n){e(n.key,n)})}eachUniqueKey(e){return this._ctx.unique="unique",this.eachKey(e)}eachPrimaryKey(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each(function(t,n){e(n.primaryKey,n)})}keys(e){var t=this._ctx;t.keysOnly=!t.isMatch;var n=[];return this.each(function(e,t){n.push(t.key)}).then(function(){return n}).then(e)}primaryKeys(e){var t=this._ctx;if("next"===t.dir&&th(t,!0)&&t.limit>0)return this._read(e=>{var n=ty(t,t.table.core.schema);return t.table.core.query({trans:e,values:!1,limit:t.limit,query:{index:n,range:t.range}})}).then(({result:e})=>e).then(e);t.keysOnly=!t.isMatch;var n=[];return this.each(function(e,t){n.push(t.primaryKey)}).then(function(){return n}).then(e)}uniqueKeys(e){return this._ctx.unique="unique",this.keys(e)}firstKey(e){return this.limit(1).keys(function(e){return e[0]}).then(e)}lastKey(e){return this.reverse().firstKey(e)}distinct(){var e=this._ctx,t=e.index&&e.table.schema.idxByName[e.index];if(!t||!t.multi)return this;var n={};return td(this._ctx,function(e){var t=e.primaryKey.toString(),r=l(n,t);return n[t]=!0,!r}),this}modify(e){var t=this._ctx;return this._write(n=>{var r;if("function"==typeof e)r=e;else{var i=a(e),o=i.length;r=function(t){for(var n=!1,r=0;r<o;++r){var a=i[r],s=e[a];O(t,a)!==s&&(S(t,a,s),n=!0)}return n}}let s=t.table.core,{outbound:c,extractKey:u}=s.schema.primaryKey,l=this.db._options.modifyChunkSize||200,f=[],h=0,d=[],p=(e,t)=>{let{failures:n,numFailures:r}=t;for(let t of(h+=e-r,a(n)))f.push(n[t])};return this.clone().primaryKeys().then(i=>{let a=o=>{let f=Math.min(l,i.length-o);return s.getMany({trans:n,keys:i.slice(o,o+f),cache:"immutable"}).then(h=>{let d=[],y=[],v=c?[]:null,g=[];for(let e=0;e<f;++e){let t=h[e],n={value:T(t),primKey:i[o+e]};!1!==r.call(n,n.value,n)&&(null==n.value?g.push(i[o+e]):c||0===tm(u(t),u(n.value))?(y.push(n.value),c&&v.push(i[o+e])):(g.push(i[o+e]),d.push(n.value)))}let b=th(t)&&t.limit===1/0&&("function"!=typeof e||e===tx)&&{index:t.index,range:t.range};return Promise.resolve(d.length>0&&s.mutate({trans:n,type:"add",values:d}).then(e=>{for(let t in e.failures)g.splice(parseInt(t),1);p(d.length,e)})).then(()=>(y.length>0||b&&"object"==typeof e)&&s.mutate({trans:n,type:"put",keys:v,values:y,criteria:b,changeSpec:"function"!=typeof e&&e}).then(e=>p(y.length,e))).then(()=>(g.length>0||b&&e===tx)&&s.mutate({trans:n,type:"delete",keys:g,criteria:b}).then(e=>p(g.length,e))).then(()=>i.length>o+f&&a(o+l))})};return a(0).then(()=>{if(f.length>0)throw new X("Error modifying one or more objects",f,h,d);return i.length})})})}delete(){var e=this._ctx,t=e.range;return th(e)&&(e.isPrimKey&&!ti||3===t.type)?this._write(n=>{let{primaryKey:r}=e.table.core.schema;return e.table.core.count({trans:n,query:{index:r,range:t}}).then(r=>e.table.core.mutate({trans:n,type:"deleteRange",range:t}).then(({failures:e,lastResult:t,results:n,numFailures:i})=>{if(i)throw new X("Could not delete some values",Object.keys(e).map(t=>e[t]),r-i);return r-i}))}):this.modify(tx)}}let tx=(e,t)=>t.value=null;function tO(e,t){return e<t?-1:+(e!==t)}function tS(e,t){return e>t?-1:+(e!==t)}function tk(e,t,n){var r=e instanceof tD?new e.Collection(e):e;return r._ctx.error=n?new n(t):TypeError(t),r}function tA(e){return new e.Collection(e,()=>tP("")).limit(0)}function tj(e,t,n,r){var i,a,o,s,c,u,l,f=n.length;if(!n.every(e=>"string"==typeof e))return tk(e,"String expected.");function h(e){i="next"===e?e=>e.toUpperCase():e=>e.toLowerCase(),a="next"===e?e=>e.toLowerCase():e=>e.toUpperCase(),o="next"===e?tO:tS;var t=n.map(function(e){return{lower:a(e),upper:i(e)}}).sort(function(e,t){return o(e.lower,t.lower)});s=t.map(function(e){return e.upper}),c=t.map(function(e){return e.lower}),u=e,l="next"===e?"":r}h("next");var d=new e.Collection(e,()=>tC(s[0],c[f-1]+r));d._ondirectionchange=function(e){h(e)};var p=0;return d._addAlgorithm(function(e,n,r){var i=e.key;if("string"!=typeof i)return!1;var h=a(i);if(t(h,c,p))return!0;for(var d=null,y=p;y<f;++y){var v=function(e,t,n,r,i,a){for(var o=Math.min(e.length,r.length),s=-1,c=0;c<o;++c){var u=t[c];if(u!==r[c])return 0>i(e[c],n[c])?e.substr(0,c)+n[c]+n.substr(c+1):0>i(e[c],r[c])?e.substr(0,c)+r[c]+n.substr(c+1):s>=0?e.substr(0,s)+t[s]+n.substr(s+1):null;0>i(e[c],u)&&(s=c)}return o<r.length&&"next"===a?e+n.substr(e.length):o<e.length&&"prev"===a?e.substr(0,n.length):s<0?null:e.substr(0,s)+r[s]+n.substr(s+1)}(i,h,s[y],c[y],o,u);null===v&&null===d?p=y+1:(null===d||o(d,v)>0)&&(d=v)}return n(null!==d?function(){e.continue(d+l)}:r),!1}),d}function tC(e,t,n,r){return{type:2,lower:e,upper:t,lowerOpen:n,upperOpen:r}}function tP(e){return{type:1,lower:e,upper:e}}class tD{get Collection(){return this._ctx.table.db.Collection}between(e,t,n,r){n=!1!==n,r=!0===r;try{return this._cmp(e,t)>0||0===this._cmp(e,t)&&(n||r)&&(!n||!r)?tA(this):new this.Collection(this,()=>tC(e,t,!n,!r))}catch(e){return tk(this,tn)}}equals(e){return null==e?tk(this,tn):new this.Collection(this,()=>tP(e))}above(e){return null==e?tk(this,tn):new this.Collection(this,()=>tC(e,void 0,!0))}aboveOrEqual(e){return null==e?tk(this,tn):new this.Collection(this,()=>tC(e,void 0,!1))}below(e){return null==e?tk(this,tn):new this.Collection(this,()=>tC(void 0,e,!1,!0))}belowOrEqual(e){return null==e?tk(this,tn):new this.Collection(this,()=>tC(void 0,e))}startsWith(e){return"string"!=typeof e?tk(this,"String expected."):this.between(e,e+tt,!0,!0)}startsWithIgnoreCase(e){return""===e?this.startsWith(e):tj(this,(e,t)=>0===e.indexOf(t[0]),[e],tt)}equalsIgnoreCase(e){return tj(this,(e,t)=>e===t[0],[e],"")}anyOfIgnoreCase(){var e=Z.apply(B,arguments);return 0===e.length?tA(this):tj(this,(e,t)=>-1!==t.indexOf(e),e,"")}startsWithAnyOfIgnoreCase(){var e=Z.apply(B,arguments);return 0===e.length?tA(this):tj(this,(e,t)=>t.some(t=>0===e.indexOf(t)),e,tt)}anyOf(){let e=Z.apply(B,arguments),t=this._cmp;try{e.sort(t)}catch(e){return tk(this,tn)}if(0===e.length)return tA(this);let n=new this.Collection(this,()=>tC(e[0],e[e.length-1]));n._ondirectionchange=n=>{t="next"===n?this._ascending:this._descending,e.sort(t)};let r=0;return n._addAlgorithm((n,i,a)=>{let o=n.key;for(;t(o,e[r])>0;)if(++r===e.length)return i(a),!1;return 0===t(o,e[r])||(i(()=>{n.continue(e[r])}),!1)}),n}notEqual(e){return this.inAnyRange([[-1/0,e],[e,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})}noneOf(){let e=Z.apply(B,arguments);if(0===e.length)return new this.Collection(this);try{e.sort(this._ascending)}catch(e){return tk(this,tn)}let t=e.reduce((e,t)=>e?e.concat([[e[e.length-1][1],t]]):[[-1/0,t]],null);return t.push([e[e.length-1],this.db._maxKey]),this.inAnyRange(t,{includeLowers:!1,includeUppers:!1})}inAnyRange(e,t){let n=this._cmp,r=this._ascending,i=this._descending,a=this._min,o=this._max;if(0===e.length)return tA(this);if(!e.every(e=>void 0!==e[0]&&void 0!==e[1]&&0>=r(e[0],e[1])))return tk(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",Q.InvalidArgument);let s=!t||!1!==t.includeLowers,c=t&&!0===t.includeUppers,u,l=r;function f(e,t){return l(e[0],t[0])}try{(u=e.reduce(function(e,t){let r=0,i=e.length;for(;r<i;++r){let i=e[r];if(0>n(t[0],i[1])&&n(t[1],i[0])>0){i[0]=a(i[0],t[0]),i[1]=o(i[1],t[1]);break}}return r===i&&e.push(t),e},[])).sort(f)}catch(e){return tk(this,tn)}let h=0,d=c?e=>r(e,u[h][1])>0:e=>r(e,u[h][1])>=0,p=s?e=>i(e,u[h][0])>0:e=>i(e,u[h][0])>=0,y=d,v=new this.Collection(this,()=>tC(u[0][0],u[u.length-1][1],!s,!c));return v._ondirectionchange=e=>{"next"===e?(y=d,l=r):(y=p,l=i),u.sort(f)},v._addAlgorithm((e,t,n)=>{for(var i=e.key;y(i);)if(++h===u.length)return t(n),!1;return!!(!d(i)&&!p(i))||(0===this._cmp(i,u[h][1])||0===this._cmp(i,u[h][0])||t(()=>{l===r?e.continue(u[h][0]):e.continue(u[h][1])}),!1)}),v}startsWithAnyOf(){let e=Z.apply(B,arguments);return e.every(e=>"string"==typeof e)?0===e.length?tA(this):this.inAnyRange(e.map(e=>[e,e+tt])):tk(this,"startsWithAnyOf() only works with strings")}}function tT(e){return eq(function(t){return tR(t),e(t.target.error),!1})}function tR(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()}let tI=tl(null,"storagemutated");class tN{_lock(){return w(!ej.global),++this._reculock,1!==this._reculock||ej.global||(ej.lockOwnerFor=this),this}_unlock(){if(w(!ej.global),0==--this._reculock)for(ej.global||(ej.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var e=this._blockedFuncs.shift();try{e4(e[1],e[0])}catch(e){}}return this}_locked(){return this._reculock&&ej.lockOwnerFor!==this}create(e){if(!this.mode)return this;let t=this.db.idbdb,n=this.db._state.dbOpenError;if(w(!this.idbtrans),!e&&!t)switch(n&&n.name){case"DatabaseClosedError":throw new Q.DatabaseClosed(n);case"MissingAPIError":throw new Q.MissingAPI(n.message,n);default:throw new Q.OpenFailed(n)}if(!this.active)throw new Q.TransactionInactive;return w(null===this._completion._state),(e=this.idbtrans=e||(this.db.core?this.db.core.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}):t.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}))).onerror=eq(t=>{tR(t),this._reject(e.error)}),e.onabort=eq(t=>{tR(t),this.active&&this._reject(new Q.Abort(e.error)),this.active=!1,this.on("abort").fire(t)}),e.oncomplete=eq(()=>{this.active=!1,this._resolve(),"mutatedParts"in e&&tI.storagemutated.fire(e.mutatedParts)}),this}_promise(e,t,n){if("readwrite"===e&&"readwrite"!==this.mode)return te(new Q.ReadOnly("Transaction is readonly"));if(!this.active)return te(new Q.TransactionInactive);if(this._locked())return new eT((r,i)=>{this._blockedFuncs.push([()=>{this._promise(e,t,n).then(r,i)},ej])});if(n)return eG(()=>{var e=new eT((e,n)=>{this._lock();let r=t(e,n,this);r&&r.then&&r.then(e,n)});return e.finally(()=>this._unlock()),e._lib=!0,e});var r=new eT((e,n)=>{var r=t(e,n,this);r&&r.then&&r.then(e,n)});return r._lib=!0,r}_root(){return this.parent?this.parent._root():this}waitFor(e){var t=this._root();let n=eT.resolve(e);if(t._waitingFor)t._waitingFor=t._waitingFor.then(()=>n);else{t._waitingFor=n,t._waitingQueue=[];var r=t.idbtrans.objectStore(t.storeNames[0]);!function e(){for(++t._spinCount;t._waitingQueue.length;)t._waitingQueue.shift()();t._waitingFor&&(r.get(-1/0).onsuccess=e)}()}var i=t._waitingFor;return new eT((e,r)=>{n.then(n=>t._waitingQueue.push(eq(e.bind(null,n))),e=>t._waitingQueue.push(eq(r.bind(null,e)))).finally(()=>{t._waitingFor===i&&(t._waitingFor=null)})})}abort(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new Q.Abort))}table(e){let t=this._memoizedTables||(this._memoizedTables={});if(l(t,e))return t[e];let n=this.schema[e];if(!n)throw new Q.NotFound("Table "+e+" not part of transaction");let r=new this.db.Table(e,n,this);return r.core=this.db.core.table(e),t[e]=r,r}}function tL(e,t,n,r,i,a,o){return{name:e,keyPath:t,unique:n,multi:r,auto:i,compound:a,src:(n&&!o?"&":"")+(r?"*":"")+(i?"++":"")+tB(t)}}function tB(e){return"string"==typeof e?e:e?"["+[].join.call(e,"+")+"]":""}function tZ(e,t,n){return{name:e,primKey:t,indexes:n,mappedClass:null,idxByName:x(n,e=>[e.name,e])}}let tM=e=>{try{return e.only([[]]),tM=()=>[[]],[[]]}catch(e){return tM=()=>tt,tt}};function tK(e){return null==e?()=>{}:"string"==typeof e?1===e.split(".").length?t=>t[e]:t=>O(t,e):t=>O(t,e)}function tF(e){return[].slice.call(e)}let tU=0;function tV(e){return null==e?":id":"string"==typeof e?e:`[${e.join("+")}]`}function t$({_novip:e},t){let n=t.db,r=function(e,t,{IDBKeyRange:n,indexedDB:r},i){var a;return{dbcore:(a=function(e,t,n){function r(e){if(3===e.type)return null;if(4===e.type)throw Error("Cannot convert never type to IDBKeyRange");let{lower:n,upper:r,lowerOpen:i,upperOpen:a}=e;return void 0===n?void 0===r?null:t.upperBound(r,!!a):void 0===r?t.lowerBound(n,!!i):t.bound(n,r,!!i,!!a)}let{schema:i,hasGetAll:a}=function(e,t){let n=tF(e.objectStoreNames);return{schema:{name:e.name,tables:n.map(e=>t.objectStore(e)).map(e=>{let{keyPath:t,autoIncrement:n}=e,r=o(t),i=null==t,a={},s={name:e.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:i,compound:r,keyPath:t,autoIncrement:n,unique:!0,extractKey:tK(t)},indexes:tF(e.indexNames).map(t=>e.index(t)).map(e=>{let{name:t,unique:n,multiEntry:r,keyPath:i}=e,s={name:t,compound:o(i),keyPath:i,unique:n,multiEntry:r,extractKey:tK(i)};return a[tV(i)]=s,s}),getIndexByKeyPath:e=>a[tV(e)]};return a[":id"]=s.primaryKey,null!=t&&(a[tV(t)]=s.primaryKey),s})},hasGetAll:n.length>0&&"getAll"in t.objectStore(n[0])&&!("undefined"!=typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}}(e,n),s=i.tables.map(e=>(function(e){let t=e.name;return{name:t,schema:e,mutate:function({trans:e,type:n,keys:i,values:a,range:o}){return new Promise((s,c)=>{let u;s=eq(s);let l=e.objectStore(t),f=null==l.keyPath,h="put"===n||"add"===n;if(!h&&"delete"!==n&&"deleteRange"!==n)throw Error("Invalid operation type: "+n);let{length:d}=i||a||{length:1};if(i&&a&&i.length!==a.length)throw Error("Given keys array must have same length as given values array.");if(0===d)return s({numFailures:0,failures:{},results:[],lastResult:void 0});let p=[],y=[],v=0,g=e=>{++v,tR(e)};if("deleteRange"===n){if(4===o.type)return s({numFailures:v,failures:y,results:[],lastResult:void 0});3===o.type?p.push(u=l.clear()):p.push(u=l.delete(r(o)))}else{let[e,t]=h?f?[a,i]:[a,null]:[i,null];if(h)for(let r=0;r<d;++r)p.push(u=t&&void 0!==t[r]?l[n](e[r],t[r]):l[n](e[r])),u.onerror=g;else for(let t=0;t<d;++t)p.push(u=l[n](e[t])),u.onerror=g}let b=e=>{let t=e.target.result;p.forEach((e,t)=>null!=e.error&&(y[t]=e.error)),s({numFailures:v,failures:y,results:"delete"===n?i:p.map(e=>e.result),lastResult:t})};u.onerror=e=>{g(e),b(e)},u.onsuccess=b})},getMany:({trans:e,keys:n})=>new Promise((r,i)=>{r=eq(r);let a=e.objectStore(t),o=n.length,s=Array(o),c,u=0,l=0,f=e=>{let t=e.target;s[t._pos]=t.result,++l===u&&r(s)},h=tT(i);for(let e=0;e<o;++e)null!=n[e]&&((c=a.get(n[e]))._pos=e,c.onsuccess=f,c.onerror=h,++u);0===u&&r(s)}),get:({trans:e,key:n})=>new Promise((r,i)=>{r=eq(r);let a=e.objectStore(t).get(n);a.onsuccess=e=>r(e.target.result),a.onerror=tT(i)}),query:e=>new Promise((n,i)=>{n=eq(n);let{trans:o,values:s,limit:c,query:u}=e,l=c===1/0?void 0:c,{index:f,range:h}=u,d=o.objectStore(t),p=f.isPrimaryKey?d:d.index(f.name),y=r(h);if(0===c)return n({result:[]});if(a){let e=s?p.getAll(y,l):p.getAllKeys(y,l);e.onsuccess=e=>n({result:e.target.result}),e.onerror=tT(i)}else{let e=0,t=!s&&"openKeyCursor"in p?p.openKeyCursor(y):p.openCursor(y),r=[];t.onsuccess=i=>{let a=t.result;return a?(r.push(s?a.value:a.primaryKey),++e===c?n({result:r}):void a.continue()):n({result:r})},t.onerror=tT(i)}}),openCursor:function({trans:e,values:n,query:i,reverse:a,unique:o}){return new Promise((s,c)=>{s=eq(s);let{index:u,range:l}=i,f=e.objectStore(t),h=u.isPrimaryKey?f:f.index(u.name),d=a?o?"prevunique":"prev":o?"nextunique":"next",p=!n&&"openKeyCursor"in h?h.openKeyCursor(r(l),d):h.openCursor(r(l),d);p.onerror=tT(c),p.onsuccess=eq(t=>{let n=p.result;if(!n)return void s(null);n.___id=++tU,n.done=!1;let r=n.continue.bind(n),i=n.continuePrimaryKey;i&&(i=i.bind(n));let a=n.advance.bind(n),o=()=>{throw Error("Cursor not stopped")};n.trans=e,n.stop=n.continue=n.continuePrimaryKey=n.advance=()=>{throw Error("Cursor not started")},n.fail=eq(c),n.next=function(){let e=1;return this.start(()=>e--?this.continue():this.stop()).then(()=>this)},n.start=e=>{let t=new Promise((e,t)=>{e=eq(e),p.onerror=tT(t),n.fail=t,n.stop=t=>{n.stop=n.continue=n.continuePrimaryKey=n.advance=o,e(t)}}),s=()=>{if(p.result)try{e()}catch(e){n.fail(e)}else n.done=!0,n.start=()=>{throw Error("Cursor behind last entry")},n.stop()};return p.onsuccess=eq(e=>{p.onsuccess=s,s()}),n.continue=r,n.continuePrimaryKey=i,n.advance=a,s(),t},s(n)},c)})},count({query:e,trans:n}){let{index:i,range:a}=e;return new Promise((e,o)=>{let s=n.objectStore(t),c=i.isPrimaryKey?s:s.index(i.name),u=r(a),l=u?c.count(u):c.count();l.onsuccess=eq(t=>e(t.target.result)),l.onerror=tT(o)})}}})(e)),c={};return s.forEach(e=>c[e.name]=e),{stack:"dbcore",transaction:e.transaction.bind(e),table(e){if(!c[e])throw Error(`Table '${e}' not found`);return c[e]},MIN_KEY:-1/0,MAX_KEY:tM(t),schema:i}}(t,n,i),e.dbcore.reduce((e,{create:t})=>({...e,...t(e)}),a))}}(e._middlewares,n,e._deps,t);e.core=r.dbcore,e.tables.forEach(t=>{let n=t.name;e.core.schema.tables.some(e=>e.name===n)&&(t.core=e.core.table(n),e[n]instanceof e.Table&&(e[n].core=t.core))})}function tq({_novip:e},t,n,r){n.forEach(n=>{let i=r[n];t.forEach(t=>{let r=v(t,n);(!r||"value"in r&&void 0===r.value)&&(t===e.Transaction.prototype||t instanceof e.Transaction?d(t,n,{get(){return this.table(n)},set(e){h(this,n,{value:e,writable:!0,configurable:!0,enumerable:!0})}}):t[n]=new e.Table(n,i))})})}function tW({_novip:e},t){t.forEach(t=>{for(let n in t)t[n]instanceof e.Table&&delete t[n]})}function tz(e,t){return e._cfg.version-t._cfg.version}function tH(e,t){let n,r={del:[],add:[],change:[]};for(n in e)t[n]||r.del.push(n);for(n in t){let i=e[n],a=t[n];if(i){let e={name:n,def:a,recreate:!1,del:[],add:[],change:[]};if(""+(i.primKey.keyPath||"")==""+(a.primKey.keyPath||"")&&(i.primKey.auto===a.primKey.auto||ti)){let t,n=i.idxByName,o=a.idxByName;for(t in n)o[t]||e.del.push(t);for(t in o){let r=n[t],i=o[t];r?r.src!==i.src&&e.change.push(i):e.add.push(i)}(e.del.length>0||e.add.length>0||e.change.length>0)&&r.change.push(e)}else e.recreate=!0,r.change.push(e)}else r.add.push([n,a])}return r}function tJ(e,t,n,r){let i=e.db.createObjectStore(t,n.keyPath?{keyPath:n.keyPath,autoIncrement:n.auto}:{autoIncrement:n.auto});return r.forEach(e=>tX(i,e)),i}function tX(e,t){e.createIndex(t.name,t.keyPath,{unique:t.unique,multiEntry:t.multi})}function tY(e,t,n){let r={};return b(t.objectStoreNames,0).forEach(e=>{let t=n.objectStore(e),i=t.keyPath,a=tL(tB(i),i||"",!1,!1,!!t.autoIncrement,i&&"string"!=typeof i,!0),o=[];for(let e=0;e<t.indexNames.length;++e){let n=t.index(t.indexNames[e]);i=n.keyPath;var s=tL(n.name,i,!!n.unique,!!n.multiEntry,!1,i&&"string"!=typeof i,!1);o.push(s)}r[e]=tZ(e,a,o)}),r}function tG({_novip:e},t,n){let r=n.db.objectStoreNames;for(let i=0;i<r.length;++i){let a=r[i],o=n.objectStore(a);e._hasGetAll="getAll"in o;for(let e=0;e<o.indexNames.length;++e){let n=o.indexNames[e],r=o.index(n).keyPath,i="string"==typeof r?r:"["+b(r).join("+")+"]";if(t[a]){let e=t[a].idxByName[i];e&&(e.name=n,delete t[a].idxByName[i],t[a].idxByName[n]=e)}}}"undefined"!=typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&i.WorkerGlobalScope&&i instanceof i.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(e._hasGetAll=!1)}class tQ{_parseStoresSpec(e,t){a(e).forEach(n=>{if(null!==e[n]){var r=e[n].split(",").map((e,t)=>{let n=(e=e.trim()).replace(/([&*]|\+\+)/g,""),r=/^\[/.test(n)?n.match(/^\[(.*)\]$/)[1].split("+"):n;return tL(n,r||null,/\&/.test(e),/\*/.test(e),/\+\+/.test(e),o(r),0===t)}),i=r.shift();if(i.multi)throw new Q.Schema("Primary key cannot be multi-valued");r.forEach(e=>{if(e.auto)throw new Q.Schema("Only primary key can be marked as autoIncrement (++)");if(!e.keyPath)throw new Q.Schema("Index must have a name and cannot be an empty string")}),t[n]=tZ(n,i,r)}})}stores(e){let t=this.db;this._cfg.storesSource=this._cfg.storesSource?s(this._cfg.storesSource,e):e;let n=t._versions,r={},i={};return n.forEach(e=>{s(r,e._cfg.storesSource),i=e._cfg.dbschema={},e._parseStoresSpec(r,i)}),t._dbSchema=i,tW(t,[t._allTables,t,t.Transaction.prototype]),tq(t,[t._allTables,t,t.Transaction.prototype,this._cfg.tables],a(i),i),t._storeNames=a(i),this}upgrade(e){return this._cfg.contentUpgrade=el(this._cfg.contentUpgrade||en,e),this}}function t0(e,t){let n=e._dbNamesDB;return n||(n=e._dbNamesDB=new nu("__dbnames",{addons:[],indexedDB:e,IDBKeyRange:t})).version(1).stores({dbnames:"name"}),n.table("dbnames")}function t1(e){return e&&"function"==typeof e.databases}function t2(e){return eG(function(){return ej.letThrough=!0,e()})}function t6(e){var t=t=>e.next(t),n=i(t),r=i(t=>e.throw(t));function i(e){return t=>{var i=e(t),a=i.value;return i.done?a:a&&"function"==typeof a.then?a.then(n,r):o(a)?Promise.all(a).then(n,r):n(a)}}return i(t)()}function t8(e,t,n){var r=arguments.length;if(r<2)throw new Q.InvalidArgument("Too few arguments");for(var i=Array(r-1);--r;)i[r-1]=arguments[r];return n=i.pop(),[e,j(i),n]}function t9(e,t,n){let r=o(e)?e.slice():[e];for(let e=0;e<n;++e)r.push(t);return r}let t4={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:function(e){return{...e,table(t){let n=e.table(t),{schema:r}=n,i={},a=[];function o(e,t,n){let r=tV(e),s=i[r]=i[r]||[],c=null==e?0:"string"==typeof e?1:e.length,u=t>0,l={...n,isVirtual:u,keyTail:t,keyLength:c,extractKey:tK(e),unique:!u&&n.unique};return s.push(l),l.isPrimaryKey||a.push(l),c>1&&o(2===c?e[0]:e.slice(0,c-1),t+1,n),s.sort((e,t)=>e.keyTail-t.keyTail),l}let s=o(r.primaryKey.keyPath,0,r.primaryKey);for(let e of(i[":id"]=[s],r.indexes))o(e.keyPath,0,e);function c(t){var n,r;let i=t.query.index;return i.isVirtual?{...t,query:{index:i,range:(n=t.query.range,r=i.keyTail,{type:1===n.type?2:n.type,lower:t9(n.lower,n.lowerOpen?e.MAX_KEY:e.MIN_KEY,r),lowerOpen:!0,upper:t9(n.upper,n.upperOpen?e.MIN_KEY:e.MAX_KEY,r),upperOpen:!0})}}:t}return{...n,schema:{...r,primaryKey:s,indexes:a,getIndexByKeyPath:function(e){let t=i[tV(e)];return t&&t[0]}},count:e=>n.count(c(e)),query:e=>n.query(c(e)),openCursor(t){let{keyTail:r,isVirtual:i,keyLength:a}=t.query.index;return i?n.openCursor(c(t)).then(n=>n&&Object.create(n,{continue:{value:function(i){null!=i?n.continue(t9(i,t.reverse?e.MAX_KEY:e.MIN_KEY,r)):t.unique?n.continue(n.key.slice(0,a).concat(t.reverse?e.MIN_KEY:e.MAX_KEY,r)):n.continue()}},continuePrimaryKey:{value(t,i){n.continuePrimaryKey(t9(t,e.MAX_KEY,r),i)}},primaryKey:{get:()=>n.primaryKey},key:{get(){let e=n.key;return 1===a?e[0]:e.slice(0,a)}},value:{get:()=>n.value}})):n.openCursor(t)}}}}}};function t5(e,t,n,r){return n=n||{},r=r||"",a(e).forEach(i=>{if(l(t,i)){var a=e[i],o=t[i];if("object"==typeof a&&"object"==typeof o&&a&&o){let e=I(a);e!==I(o)?n[r+i]=t[i]:"Object"===e?t5(a,o,n,r+i+"."):a!==o&&(n[r+i]=t[i])}else a!==o&&(n[r+i]=t[i])}else n[r+i]=void 0}),a(t).forEach(i=>{l(e,i)||(n[r+i]=t[i])}),n}let t3={stack:"dbcore",name:"HooksMiddleware",level:2,create:e=>({...e,table(t){let n=e.table(t),{primaryKey:r}=n.schema;return{...n,mutate(e){let i=ej.trans,{deleting:a,creating:o,updating:s}=i.table(t).hook;switch(e.type){case"add":if(o.fire===en)break;return i._promise("readwrite",()=>c(e),!0);case"put":if(o.fire===en&&s.fire===en)break;return i._promise("readwrite",()=>c(e),!0);case"delete":if(a.fire===en)break;return i._promise("readwrite",()=>c(e),!0);case"deleteRange":if(a.fire===en)break;return i._promise("readwrite",()=>(function e(t,i,a){return n.query({trans:t,values:!1,query:{index:r,range:i},limit:a}).then(({result:n})=>c({type:"delete",keys:n,trans:t}).then(r=>r.numFailures>0?Promise.reject(r.failures[0]):n.length<a?{failures:[],numFailures:0,lastResult:void 0}:e(t,{...i,lower:n[n.length-1],lowerOpen:!0},a)))})(e.trans,e.range,1e4),!0)}return n.mutate(e);function c(e){var t,i;let c=ej.trans,u=e.keys||("delete"===(t=e).type?t.keys:t.keys||t.values.map(r.extractKey));if(!u)throw Error("Keys missing");return"delete"!==(e="add"===e.type||"put"===e.type?{...e,keys:u}:{...e}).type&&(e.values=[...e.values]),e.keys&&(e.keys=[...e.keys]),("add"===(i=e).type?Promise.resolve([]):n.getMany({trans:i.trans,keys:u,cache:"immutable"})).then(t=>{let i=u.map((n,i)=>{let u=t[i],f={onerror:null,onsuccess:null};if("delete"===e.type)a.fire.call(f,n,u,c);else if("add"===e.type||void 0===u){let t=o.fire.call(f,n,e.values[i],c);null==n&&null!=t&&(n=t,e.keys[i]=n,r.outbound||S(e.values[i],r.keyPath,n))}else{let t=t5(u,e.values[i]),r=s.fire.call(f,t,n,u,c);if(r){let t=e.values[i];Object.keys(r).forEach(e=>{l(t,e)?t[e]=r[e]:S(t,e,r[e])})}}return f});return n.mutate(e).then(({failures:n,results:r,numFailures:a,lastResult:o})=>{for(let a=0;a<u.length;++a){let o=r?r[a]:u[a],s=i[a];null==o?s.onerror&&s.onerror(n[a]):s.onsuccess&&s.onsuccess("put"===e.type&&t[a]?e.values[a]:o)}return{failures:n,results:r,numFailures:a,lastResult:o}}).catch(e=>(i.forEach(t=>t.onerror&&t.onerror(e)),Promise.reject(e)))})}}}}})};function t7(e,t,n){try{if(!t||t.keys.length<e.length)return null;let r=[];for(let i=0,a=0;i<t.keys.length&&a<e.length;++i)0===tm(t.keys[i],e[a])&&(r.push(n?T(t.values[i]):t.values[i]),++a);return r.length===e.length?r:null}catch(e){return null}}let ne={stack:"dbcore",level:-1,create:e=>({table:t=>{let n=e.table(t);return{...n,getMany:e=>{if(!e.cache)return n.getMany(e);let t=t7(e.keys,e.trans._cache,"clone"===e.cache);return t?eT.resolve(t):n.getMany(e).then(t=>(e.trans._cache={keys:e.keys,values:"clone"===e.cache?T(t):t},t))},mutate:e=>("add"!==e.type&&(e.trans._cache=null),n.mutate(e))}}})};function nt(e){return!("from"in e)}let nn=function(e,t){if(!this){let t=new nn;return e&&"d"in e&&s(t,e),t}s(this,arguments.length?{d:1,from:e,to:arguments.length>1?t:e}:{d:0})};function nr(e,t,n){let r=tm(t,n);if(isNaN(r))return;if(r>0)throw RangeError();if(nt(e))return s(e,{from:t,to:n,d:1});let i=e.l,a=e.r;if(0>tm(n,e.from))return i?nr(i,t,n):e.l={from:t,to:n,d:1,l:null,r:null},no(e);if(tm(t,e.to)>0)return a?nr(a,t,n):e.r={from:t,to:n,d:1,l:null,r:null},no(e);0>tm(t,e.from)&&(e.from=t,e.l=null,e.d=a?a.d+1:1),tm(n,e.to)>0&&(e.to=n,e.r=null,e.d=e.l?e.l.d+1:1);let o=!e.r;i&&!e.l&&ni(e,i),a&&o&&ni(e,a)}function ni(e,t){nt(t)||function e(t,{from:n,to:r,l:i,r:a}){nr(t,n,r),i&&e(t,i),a&&e(t,a)}(e,t)}function na(e){let t=nt(e)?null:{s:0,n:e};return{next(e){let n=arguments.length>0;for(;t;)switch(t.s){case 0:if(t.s=1,n)for(;t.n.l&&0>tm(e,t.n.from);)t={up:t,n:t.n.l,s:1};else for(;t.n.l;)t={up:t,n:t.n.l,s:1};case 1:if(t.s=2,!n||0>=tm(e,t.n.to))return{value:t.n,done:!1};case 2:if(t.n.r){t.s=3,t={up:t,n:t.n.r,s:0};continue}case 3:t=t.up}return{done:!0}}}}function no(e){var t,n;let r=((null==(t=e.r)?void 0:t.d)||0)-((null==(n=e.l)?void 0:n.d)||0),i=r>1?"r":r<-1?"l":"";if(i){let t="r"===i?"l":"r",n={...e},r=e[i];e.from=r.from,e.to=r.to,e[i]=r[i],n[i]=r[t],e[t]=n,n.d=ns(n)}e.d=ns(e)}function ns({r:e,l:t}){return(e?t?Math.max(e.d,t.d):e.d:t?t.d:0)+1}f(nn.prototype,{add(e){return ni(this,e),this},addKey(e){return nr(this,e,e),this},addKeys(e){return e.forEach(e=>nr(this,e,e)),this},[N](){return na(this)}});let nc={stack:"dbcore",level:0,create:e=>{let t=e.schema.name,n=new nn(e.MIN_KEY,e.MAX_KEY);return{...e,table:r=>{let i=e.table(r),{schema:s}=i,{primaryKey:c}=s,{extractKey:u,outbound:l}=c,f={...i,mutate:e=>{let a=e.trans,c=a.mutatedParts||(a.mutatedParts={}),u=e=>{let n=`idb://${t}/${r}/${e}`;return c[n]||(c[n]=new nn)},l=u(""),f=u(":dels"),{type:h}=e,[d,p]="deleteRange"===e.type?[e.range]:"delete"===e.type?[e.keys]:e.values.length<50?[[],e.values]:[],y=e.trans._cache;return i.mutate(e).then(e=>{if(o(d)){"delete"!==h&&(d=e.results),l.addKeys(d);let t=t7(d,y);t||"add"===h||f.addKeys(d),(t||p)&&s.indexes.forEach(function(e){let n=u(e.name||"");function r(t){return null!=t?e.extractKey(t):null}let i=t=>e.multiEntry&&o(t)?t.forEach(e=>n.addKey(e)):n.addKey(t);(t||p).forEach((e,n)=>{let a=t&&r(t[n]),o=p&&r(p[n]);0!==tm(a,o)&&(null!=a&&i(a),null!=o&&i(o))})})}else if(d){let e={from:d.lower,to:d.upper};f.add(e),l.add(e)}else l.add(n),f.add(n),s.indexes.forEach(e=>u(e.name).add(n));return e})}},h=({query:{index:t,range:n}})=>{var r,i;return[t,new nn(null!=(r=n.lower)?r:e.MIN_KEY,null!=(i=n.upper)?i:e.MAX_KEY)]},d={get:e=>[c,new nn(e.key)],getMany:e=>[c,(new nn).addKeys(e.keys)],count:h,query:h,openCursor:h};return a(d).forEach(e=>{f[e]=function(a){let{subscr:o}=ej;if(o){let s=e=>{let n=`idb://${t}/${r}/${e}`;return o[n]||(o[n]=new nn)},c=s(""),f=s(":dels"),[h,p]=d[e](a);if(s(h.name||"").add(p),!h.isPrimaryKey){if("count"!==e){let t="query"===e&&l&&a.values&&i.query({...a,values:!1});return i[e].apply(this,arguments).then(n=>{if("query"===e){if(l&&a.values)return t.then(({result:e})=>(c.addKeys(e),n));let e=a.values?n.result.map(u):n.result;a.values?c.addKeys(e):f.addKeys(e)}else if("openCursor"===e){let e=a.values;return n&&Object.create(n,{key:{get:()=>(f.addKey(n.primaryKey),n.key)},primaryKey:{get(){let e=n.primaryKey;return f.addKey(e),e}},value:{get:()=>(e&&c.addKey(n.primaryKey),n.value)}})}return n})}f.add(n)}}return i[e].apply(this,arguments)}}),f}}}};class nu{constructor(e,t){var n,r,i,a,o;this._middlewares={},this.verno=0;let s=nu.dependencies;this._options=t={addons:nu.addons,autoOpen:!0,indexedDB:s.indexedDB,IDBKeyRange:s.IDBKeyRange,...t},this._deps={indexedDB:t.indexedDB,IDBKeyRange:t.IDBKeyRange};let{addons:c}=t;this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;let u={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:en,dbReadyPromise:null,cancelOpen:en,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3};u.dbReadyPromise=new eT(e=>{u.dbReadyResolve=e}),u.openCanceller=new eT((e,t)=>{u.cancelOpen=t}),this._state=u,this.name=e,this.on=tl(this,"populate","blocked","versionchange","close",{ready:[el,en]}),this.on.ready.subscribe=m(this.on.ready.subscribe,e=>(t,n)=>{nu.vip(()=>{let r=this._state;if(r.openComplete)r.dbOpenError||eT.resolve().then(t),n&&e(t);else if(r.onReadyBeingFired)r.onReadyBeingFired.push(t),n&&e(t);else{e(t);let r=this;n||e(function e(){r.on.ready.unsubscribe(t),r.on.ready.unsubscribe(e)})}})}),this.Collection=(n=this,tf(tE.prototype,function(e,t){this.db=n;let r=ts,i=null;if(t)try{r=t()}catch(e){i=e}let a=e._ctx,o=a.table,s=o.hook.reading.fire;this._ctx={table:o,index:a.index,isPrimKey:!a.index||o.schema.primKey.keyPath&&a.index===o.schema.primKey.name,range:r,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:i,or:a.or,valueMapper:s!==er?s:null}})),this.Table=(r=this,tf(tu.prototype,function(e,t,n){this.db=r,this._tx=n,this.name=e,this.schema=t,this.hook=r._allTables[e]?r._allTables[e].hook:tl(null,{creating:[eo,en],reading:[ei,er],updating:[ec,en],deleting:[es,en]})})),this.Transaction=(i=this,tf(tN.prototype,function(e,t,n,r,a){this.db=i,this.mode=e,this.storeNames=t,this.schema=n,this.chromeTransactionDurability=r,this.idbtrans=null,this.on=tl(this,"complete","error","abort"),this.parent=a||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new eT((e,t)=>{this._resolve=e,this._reject=t}),this._completion.then(()=>{this.active=!1,this.on.complete.fire()},e=>{var t=this.active;return this.active=!1,this.on.error.fire(e),this.parent?this.parent._reject(e):t&&this.idbtrans&&this.idbtrans.abort(),te(e)})})),this.Version=(a=this,tf(tQ.prototype,function(e){this.db=a,this._cfg={version:e,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})),this.WhereClause=(o=this,tf(tD.prototype,function(e,t,n){this.db=o,this._ctx={table:e,index:":id"===t?null:t,or:n};let r=o._deps.indexedDB;if(!r)throw new Q.MissingAPI;this._cmp=this._ascending=r.cmp.bind(r),this._descending=(e,t)=>r.cmp(t,e),this._max=(e,t)=>r.cmp(e,t)>0?e:t,this._min=(e,t)=>0>r.cmp(e,t)?e:t,this._IDBKeyRange=o._deps.IDBKeyRange})),this.on("versionchange",e=>{e.newVersion>0?console.warn(`Another connection wants to upgrade database '${this.name}'. Closing db now to resume the upgrade.`):console.warn(`Another connection wants to delete database '${this.name}'. Closing db now to resume the delete request.`),this.close()}),this.on("blocked",e=>{!e.newVersion||e.newVersion<e.oldVersion?console.warn(`Dexie.delete('${this.name}') was blocked`):console.warn(`Upgrade '${this.name}' blocked by other connection holding version ${e.oldVersion/10}`)}),this._maxKey=tM(t.IDBKeyRange),this._createTransaction=(e,t,n,r)=>new this.Transaction(e,t,n,this._options.chromeTransactionDurability,r),this._fireOnBlocked=e=>{this.on("blocked").fire(e),tr.filter(e=>e.name===this.name&&e!==this&&!e._state.vcFired).map(t=>t.on("versionchange").fire(e))},this.use(t4),this.use(t3),this.use(nc),this.use(ne),this.vip=Object.create(this,{_vip:{value:!0}}),c.forEach(e=>e(this))}version(e){if(isNaN(e)||e<.1)throw new Q.Type("Given version is not a positive number");if(e=Math.round(10*e)/10,this.idbdb||this._state.isBeingOpened)throw new Q.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,e);let t=this._versions;var n=t.filter(t=>t._cfg.version===e)[0];return n||(n=new this.Version(e),t.push(n),t.sort(tz),n.stores({}),this._state.autoSchema=!1,n)}_whenReady(e){return this.idbdb&&(this._state.openComplete||ej.letThrough||this._vip)?e():new eT((e,t)=>{if(this._state.openComplete)return t(new Q.DatabaseClosed(this._state.dbOpenError));if(!this._state.isBeingOpened){if(!this._options.autoOpen)return void t(new Q.DatabaseClosed);this.open().catch(en)}this._state.dbReadyPromise.then(e,t)}).then(e)}use({stack:e,create:t,level:n,name:r}){r&&this.unuse({stack:e,name:r});let i=this._middlewares[e]||(this._middlewares[e]=[]);return i.push({stack:e,create:t,level:null==n?10:n,name:r}),i.sort((e,t)=>e.level-t.level),this}unuse({stack:e,name:t,create:n}){return e&&this._middlewares[e]&&(this._middlewares[e]=this._middlewares[e].filter(e=>n?e.create!==n:!!t&&e.name!==t)),this}open(){return function(e){var t;let n=e._state,{indexedDB:r}=e._deps;if(n.isBeingOpened||e.idbdb)return n.dbReadyPromise.then(()=>n.dbOpenError?te(n.dbOpenError):e);K&&(n.openCanceller._stackHolder=V()),n.isBeingOpened=!0,n.dbOpenError=null,n.openComplete=!1;let i=n.openCanceller;function o(){if(n.openCanceller!==i)throw new Q.DatabaseClosed("db.open() was cancelled")}let s=n.dbReadyResolve,c=null,u=!1;return eT.race([i,("undefined"==typeof navigator?eT.resolve():!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise(function(e){var n=function(){return indexedDB.databases().finally(e)};t=setInterval(n,100),n()}).finally(function(){return clearInterval(t)}):Promise.resolve()).then(()=>new eT((t,i)=>{if(o(),!r)throw new Q.MissingAPI;let s=e.name,l=n.autoSchema?r.open(s):r.open(s,Math.round(10*e.verno));if(!l)throw new Q.MissingAPI;l.onerror=tT(i),l.onblocked=eq(e._fireOnBlocked),l.onupgradeneeded=eq(t=>{if(c=l.transaction,n.autoSchema&&!e._options.allowEmptyDB){l.onerror=tR,c.abort(),l.result.close();let e=r.deleteDatabase(s);e.onsuccess=e.onerror=eq(()=>{i(new Q.NoSuchDatabase(`Database ${s} doesnt exist`))})}else{c.onerror=tT(i);var o=t.oldVersion>0x4000000000000000?0:t.oldVersion;u=o<1,e._novip.idbdb=l.result,function(e,t,n,r){let i=e._dbSchema,o=e._createTransaction("readwrite",e._storeNames,i);o.create(n),o._completion.catch(r);let s=o._reject.bind(o),c=ej.transless||ej;eG(()=>{ej.trans=o,ej.transless=c,0===t?(a(i).forEach(e=>{tJ(n,e,i[e].primKey,i[e].indexes)}),t$(e,n),eT.follow(()=>e.on.populate.fire(o)).catch(s)):(function({_novip:e},t,n,r){let i=[],o=e._versions,s=e._dbSchema=tY(e,e.idbdb,r),c=!1;return o.filter(e=>e._cfg.version>=t).forEach(o=>{i.push(()=>{let i=s,u=o._cfg.dbschema;tG(e,i,r),tG(e,u,r),s=e._dbSchema=u;let l=tH(i,u);l.add.forEach(e=>{tJ(r,e[0],e[1].primKey,e[1].indexes)}),l.change.forEach(e=>{if(e.recreate)throw new Q.Upgrade("Not yet support for changing primary key");{let t=r.objectStore(e.name);e.add.forEach(e=>tX(t,e)),e.change.forEach(e=>{t.deleteIndex(e.name),tX(t,e)}),e.del.forEach(e=>t.deleteIndex(e))}});let f=o._cfg.contentUpgrade;if(f&&o._cfg.version>t){let t;t$(e,r),n._memoizedTables={},c=!0;let o=k(u);l.del.forEach(e=>{o[e]=i[e]}),tW(e,[e.Transaction.prototype]),tq(e,[e.Transaction.prototype],a(o),o),n.schema=o;let s=M(f);s&&eQ();let h=eT.follow(()=>{if((t=f(n))&&s){var e=e0.bind(null,null);t.then(e,e)}});return t&&"function"==typeof t.then?eT.resolve(t):h.then(()=>t)}}),i.push(t=>{var r;c&&ti||(r=o._cfg.dbschema,[].slice.call(t.db.objectStoreNames).forEach(e=>null==r[e]&&t.db.deleteObjectStore(e))),tW(e,[e.Transaction.prototype]),tq(e,[e.Transaction.prototype],e._storeNames,e._dbSchema),n.schema=e._dbSchema})}),(function e(){return i.length?eT.resolve(i.shift()(n.idbtrans)).then(e):eT.resolve()})().then(()=>{var e;a(e=s).forEach(t=>{r.db.objectStoreNames.contains(t)||tJ(r,t,e[t].primKey,e[t].indexes)})})})(e,t,o,n).catch(s)})}(e,o/10,c,i)}},i),l.onsuccess=eq(()=>{c=null;let r=e._novip.idbdb=l.result,i=b(r.objectStoreNames);if(i.length>0)try{let t=r.transaction(1===i.length?i[0]:i,"readonly");n.autoSchema?function({_novip:e},t,n){e.verno=t.version/10;let r=e._dbSchema=tY(0,t,n);e._storeNames=b(t.objectStoreNames,0),tq(e,[e._allTables],a(r),r)}(e,r,t):(tG(e,e._dbSchema,t),function(e,t){let n=tH(tY(0,e.idbdb,t),e._dbSchema);return!(n.add.length||n.change.some(e=>e.add.length||e.change.length))}(e,t)||console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Some queries may fail.")),t$(e,t)}catch(e){}tr.push(e),r.onversionchange=eq(t=>{n.vcFired=!0,e.on("versionchange").fire(t)}),r.onclose=eq(t=>{e.on("close").fire(t)}),u&&function({indexedDB:e,IDBKeyRange:t},n){t1(e)||"__dbnames"===n||t0(e,t).put({name:n}).catch(en)}(e._deps,s),t()},i)}))]).then(()=>(o(),n.onReadyBeingFired=[],eT.resolve(t2(()=>e.on.ready.fire(e.vip))).then(function t(){if(n.onReadyBeingFired.length>0){let r=n.onReadyBeingFired.reduce(el,en);return n.onReadyBeingFired=[],eT.resolve(t2(()=>r(e.vip))).then(t)}}))).finally(()=>{n.onReadyBeingFired=null,n.isBeingOpened=!1}).then(()=>e).catch(t=>{n.dbOpenError=t;try{c&&c.abort()}catch(e){}return i===n.openCanceller&&e._close(),te(t)}).finally(()=>{n.openComplete=!0,s()})}(this)}_close(){let e=this._state,t=tr.indexOf(this);if(t>=0&&tr.splice(t,1),this.idbdb){try{this.idbdb.close()}catch(e){}this._novip.idbdb=null}e.dbReadyPromise=new eT(t=>{e.dbReadyResolve=t}),e.openCanceller=new eT((t,n)=>{e.cancelOpen=n})}close(){this._close();let e=this._state;this._options.autoOpen=!1,e.dbOpenError=new Q.DatabaseClosed,e.isBeingOpened&&e.cancelOpen(e.dbOpenError)}delete(){let e=arguments.length>0,t=this._state;return new eT((n,r)=>{let i=()=>{this.close();var e=this._deps.indexedDB.deleteDatabase(this.name);e.onsuccess=eq(()=>{!function({indexedDB:e,IDBKeyRange:t},n){t1(e)||"__dbnames"===n||t0(e,t).delete(n).catch(en)}(this._deps,this.name),n()}),e.onerror=tT(r),e.onblocked=this._fireOnBlocked};if(e)throw new Q.InvalidArgument("Arguments not allowed in db.delete()");t.isBeingOpened?t.dbReadyPromise.then(i):i()})}backendDB(){return this.idbdb}isOpen(){return null!==this.idbdb}hasBeenClosed(){let e=this._state.dbOpenError;return e&&"DatabaseClosed"===e.name}hasFailed(){return null!==this._state.dbOpenError}dynamicallyOpened(){return this._state.autoSchema}get tables(){return a(this._allTables).map(e=>this._allTables[e])}transaction(){let e=t8.apply(this,arguments);return this._transaction.apply(this,e)}_transaction(e,t,n){let r,i,a=ej.trans;a&&a.db===this&&-1===e.indexOf("!")||(a=null);let o=-1!==e.indexOf("?");e=e.replace("!","").replace("?","");try{if(i=t.map(e=>{var t=e instanceof this.Table?e.name:e;if("string"!=typeof t)throw TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return t}),"r"==e||"readonly"===e)r="readonly";else{if("rw"!=e&&"readwrite"!=e)throw new Q.InvalidArgument("Invalid transaction mode: "+e);r="readwrite"}if(a){if("readonly"===a.mode&&"readwrite"===r){if(!o)throw new Q.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");a=null}a&&i.forEach(e=>{if(a&&-1===a.storeNames.indexOf(e)){if(!o)throw new Q.SubTransaction("Table "+e+" not included in parent transaction.");a=null}}),o&&a&&!a.active&&(a=null)}}catch(e){return a?a._promise(null,(t,n)=>{n(e)}):te(e)}let s=(function e(t,n,r,i,a){return eT.resolve().then(()=>{let o,s=ej.transless||ej,c=t._createTransaction(n,r,t._dbSchema,i);if(i)c.idbtrans=i.idbtrans;else try{c.create(),t._state.PR1398_maxLoop=3}catch(i){return i.name===G.InvalidState&&t.isOpen()&&--t._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),t._close(),t.open().then(()=>e(t,n,r,null,a))):te(i)}let u=M(a);u&&eQ();let l=eT.follow(()=>{if(o=a.call(c,c))if(u){var e=e0.bind(null,null);o.then(e,e)}else"function"==typeof o.next&&"function"==typeof o.throw&&(o=t6(o))},{trans:c,transless:s});return(o&&"function"==typeof o.then?eT.resolve(o).then(e=>c.active?e:te(new Q.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))):l.then(()=>o)).then(e=>(i&&c._resolve(),c._completion.then(()=>e))).catch(e=>(c._reject(e),te(e)))})}).bind(null,this,r,i,a,n);return a?a._promise(r,s,"lock"):ej.trans?e4(ej.transless,()=>this._whenReady(s)):this._whenReady(s)}table(e){if(!l(this._allTables,e))throw new Q.InvalidTable(`Table ${e} does not exist`);return this._allTables[e]}}let nl="undefined"!=typeof Symbol&&"observable"in Symbol?Symbol.observable:"@@observable";class nf{constructor(e){this._subscribe=e}subscribe(e,t,n){return this._subscribe(e&&"function"!=typeof e?e:{next:e,error:t,complete:n})}[nl](){return this}}function nh(e,t){return a(t).forEach(n=>{ni(e[n]||(e[n]=new nn),t[n])}),e}try{r={indexedDB:i.indexedDB||i.mozIndexedDB||i.webkitIndexedDB||i.msIndexedDB,IDBKeyRange:i.IDBKeyRange||i.webkitIDBKeyRange}}catch(e){r={indexedDB:null,IDBKeyRange:null}}function nd(e){let t=np;try{np=!0,tI.storagemutated.fire(e)}finally{np=t}}f(nu,{...et,delete:e=>new nu(e,{addons:[]}).delete(),exists:e=>new nu(e,{addons:[]}).open().then(e=>(e.close(),!0)).catch("NoSuchDatabaseError",()=>!1),getDatabaseNames(e){try{return(function({indexedDB:e,IDBKeyRange:t}){return t1(e)?Promise.resolve(e.databases()).then(e=>e.map(e=>e.name).filter(e=>"__dbnames"!==e)):t0(e,t).toCollection().primaryKeys()})(nu.dependencies).then(e)}catch(e){return te(new Q.MissingAPI)}},defineClass:()=>function(e){s(this,e)},ignoreTransaction:e=>ej.trans?e4(ej.transless,e):e(),vip:t2,async:function(e){return function(){try{var t=t6(e.apply(this,arguments));return t&&"function"==typeof t.then?t:eT.resolve(t)}catch(e){return te(e)}}},spawn:function(e,t,n){try{var r=t6(e.apply(n,t||[]));return r&&"function"==typeof r.then?r:eT.resolve(r)}catch(e){return te(e)}},currentTransaction:{get:()=>ej.trans||null},waitFor:function(e,t){let n=eT.resolve("function"==typeof e?nu.ignoreTransaction(e):e).timeout(t||6e4);return ej.trans?ej.trans.waitFor(n):n},Promise:eT,debug:{get:()=>K,set:e=>{K=e,F="dexie"===e?()=>!0:ta}},derive:p,extend:s,props:f,override:m,Events:tl,on:tI,liveQuery:function(e){return new nf(t=>{let n=M(e),r=!1,i={},o={},s={get closed(){return r},unsubscribe:()=>{r=!0,tI.storagemutated.unsubscribe(f)}};t.start&&t.start(s);let c=!1,u=!1;function l(){return a(o).some(e=>i[e]&&function(e,t){let n=na(t),r=n.next();if(r.done)return!1;let i=r.value,a=na(e),o=a.next(i.from),s=o.value;for(;!r.done&&!o.done;){if(0>=tm(s.from,i.to)&&tm(s.to,i.from)>=0)return!0;0>tm(i.from,s.from)?i=(r=n.next(s.from)).value:s=(o=a.next(i.from)).value}return!1}(i[e],o[e]))}let f=e=>{nh(i,e),l()&&h()},h=()=>{if(c||r)return;i={};let a={},d=function(t){n&&eQ();let r=()=>eG(e,{subscr:t,trans:null}),i=ej.trans?e4(ej.transless,r):r();return n&&i.then(e0,e0),i}(a);u||(tI("storagemutated",f),u=!0),c=!0,Promise.resolve(d).then(e=>{c=!1,r||(l()?h():(i={},o=a,t.next&&t.next(e)))},e=>{c=!1,t.error&&t.error(e),s.unsubscribe()})};return h(),s})},extendObservabilitySet:nh,getByKeyPath:O,setByKeyPath:S,delByKeyPath:function(e,t){"string"==typeof t?S(e,t,void 0):"length"in t&&[].map.call(t,function(t){S(e,t,void 0)})},shallowClone:k,deepClone:T,getObjectDiff:t5,cmp:tm,asap:E,minKey:-1/0,addons:[],connections:tr,errnames:G,dependencies:r,semVer:"3.2.3",version:"3.2.3".split(".").map(e=>parseInt(e)).reduce((e,t,n)=>e+t/Math.pow(10,2*n))}),nu.maxKey=tM(nu.dependencies.IDBKeyRange),"undefined"!=typeof dispatchEvent&&"undefined"!=typeof addEventListener&&(tI("storagemutated",e=>{if(!np){let t;ti?(t=document.createEvent("CustomEvent")).initCustomEvent("x-storagemutated-1",!0,!0,e):t=new CustomEvent("x-storagemutated-1",{detail:e}),np=!0,dispatchEvent(t),np=!1}}),addEventListener("x-storagemutated-1",({detail:e})=>{np||nd(e)}));let np=!1;if("undefined"!=typeof BroadcastChannel){let e=new BroadcastChannel("x-storagemutated-1");"function"==typeof e.unref&&e.unref(),tI("storagemutated",t=>{np||e.postMessage(t)}),e.onmessage=e=>{e.data&&nd(e.data)}}else if("undefined"!=typeof self&&"undefined"!=typeof navigator){tI("storagemutated",e=>{try{np||("undefined"!=typeof localStorage&&localStorage.setItem("x-storagemutated-1",JSON.stringify({trig:Math.random(),changedParts:e})),"object"==typeof self.clients&&[...self.clients.matchAll({includeUncontrolled:!0})].forEach(t=>t.postMessage({type:"x-storagemutated-1",changedParts:e})))}catch(e){}}),"undefined"!=typeof addEventListener&&addEventListener("storage",e=>{if("x-storagemutated-1"===e.key){let t=JSON.parse(e.newValue);t&&nd(t.changedParts)}});let e=self.document&&navigator.serviceWorker;e&&e.addEventListener("message",function({data:e}){e&&"x-storagemutated-1"===e.type&&nd(e.changedParts)})}eT.rejectionMapper=function(e,t){if(!e||e instanceof H||e instanceof TypeError||e instanceof SyntaxError||!e.name||!ee[e.name])return e;var n=new ee[e.name](t||e.message,e);return"stack"in e&&d(n,"stack",{get:function(){return this.inner.stack}}),n},F=ta},430:function(e,t,n){"use strict";n.d(t,{Z:()=>s});var r=n(8674);let i=function(e,t){for(var n=e.length;n--;)if((0,r.Z)(e[n][0],t))return n;return -1};var a=Array.prototype.splice;function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}o.prototype.clear=function(){this.__data__=[],this.size=0},o.prototype.delete=function(e){var t=this.__data__,n=i(t,e);return!(n<0)&&(n==t.length-1?t.pop():a.call(t,n,1),--this.size,!0)},o.prototype.get=function(e){var t=this.__data__,n=i(t,e);return n<0?void 0:t[n][1]},o.prototype.has=function(e){return i(this.__data__,e)>-1},o.prototype.set=function(e,t){var n=this.__data__,r=i(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};let s=o},4359:function(e,t,n){"use strict";n.d(t,{Z:()=>a});var r=n(3456),i=n(119);let a=(0,r.Z)(i.Z,"Map")},6389:function(e,t,n){"use strict";n.d(t,{Z:()=>h});var r=(0,n(3456).Z)(Object,"create"),i=Object.prototype.hasOwnProperty,a=Object.prototype.hasOwnProperty;function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}o.prototype.clear=function(){this.__data__=r?r(null):{},this.size=0},o.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t},o.prototype.get=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0},o.prototype.has=function(e){var t=this.__data__;return r?void 0!==t[e]:a.call(t,e)},o.prototype.set=function(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this};var s=n(430),c=n(4359);let u=function(e){var t=void 0===e?"undefined":e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},l=function(e,t){var n=e.__data__;return u(t)?n["string"==typeof t?"string":"hash"]:n.map};function f(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}f.prototype.clear=function(){this.size=0,this.__data__={hash:new o,map:new(c.Z||s.Z),string:new o}},f.prototype.delete=function(e){var t=l(this,e).delete(e);return this.size-=!!t,t},f.prototype.get=function(e){return l(this,e).get(e)},f.prototype.has=function(e){return l(this,e).has(e)},f.prototype.set=function(e,t){var n=l(this,e),r=n.size;return n.set(e,t),this.size+=+(n.size!=r),this};let h=f},8877:function(e,t,n){"use strict";n.d(t,{Z:()=>s});var r=n(430),i=n(4359),a=n(6389);function o(e){var t=this.__data__=new r.Z(e);this.size=t.size}o.prototype.clear=function(){this.__data__=new r.Z,this.size=0},o.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},o.prototype.get=function(e){return this.__data__.get(e)},o.prototype.has=function(e){return this.__data__.has(e)},o.prototype.set=function(e,t){var n,o,s=this.__data__;if(n=s,null!=(o=r.Z)&&"undefined"!=typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](n):n instanceof o){var c=s.__data__;if(!i.Z||c.length<199)return c.push([e,t]),this.size=++s.size,this;s=this.__data__=new a.Z(c)}return s.set(e,t),this.size=s.size,this};let s=o},9466:function(e,t,n){"use strict";n.d(t,{Z:()=>r});let r=n(119).Z.Symbol},5225:function(e,t,n){"use strict";n.d(t,{Z:()=>r});let r=n(119).Z.Uint8Array},659:function(e,t,n){"use strict";n.d(t,{Z:()=>l});let r=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r};var i=n(984),a=n(1919),o=n(8988),s=n(3422),c=n(2675),u=Object.prototype.hasOwnProperty;let l=function(e,t){var n=(0,a.Z)(e),l=!n&&(0,i.Z)(e),f=!n&&!l&&(0,o.Z)(e),h=!n&&!l&&!f&&(0,c.Z)(e),d=n||l||f||h,p=d?r(e.length,String):[],y=p.length;for(var v in e)(t||u.call(e,v))&&!(d&&("length"==v||f&&("offset"==v||"parent"==v)||h&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||(0,s.Z)(v,y)))&&p.push(v);return p}},9614:function(e,t,n){"use strict";n.d(t,{Z:()=>f});var r=n(9466),i=Object.prototype,a=i.hasOwnProperty,o=i.toString,s=r.Z?r.Z.toStringTag:void 0;let c=function(e){var t=a.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=o.call(e);return r&&(t?e[s]=n:delete e[s]),i};var u=Object.prototype.toString,l=r.Z?r.Z.toStringTag:void 0;let f=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":l&&l in Object(e)?c(e):u.call(e)}},7636:function(e,t,n){"use strict";var r;n.d(t,{Z:()=>i});let i=("undefined"==typeof global?"undefined":(r=global)&&"undefined"!=typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)=="object"&&global&&global.Object===Object&&global},3456:function(e,t,n){"use strict";n.d(t,{Z:()=>y});var r,i=n(9634),a=n(119).Z["__core-js_shared__"],o=(r=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",s=n(5074),c=n(4791),u=/^\[object .+?Constructor\]$/,l=Object.prototype,f=Function.prototype.toString,h=l.hasOwnProperty,d=RegExp("^"+f.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");let p=function(e){return!!(0,s.Z)(e)&&(!o||!(o in e))&&((0,i.Z)(e)?d:u).test((0,c.Z)(e))},y=function(e,t){var n=null==e?void 0:e[t];return p(n)?n:void 0}},3422:function(e,t,n){"use strict";n.d(t,{Z:()=>i});var r=/^(?:0|[1-9]\d*)$/;let i=function(e,t){var n=void 0===e?"undefined":e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e;return!!(t=null==t?0x1fffffffffffff:t)&&("number"==n||"symbol"!=n&&r.test(e))&&e>-1&&e%1==0&&e<t}},1700:function(e,t,n){"use strict";n.d(t,{Z:()=>i});var r=Object.prototype;let i=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||r)}},8660:function(e,t,n){"use strict";n.d(t,{Z:()=>r});let r=function(e,t){return function(n){return e(t(n))}}},119:function(e,t,n){"use strict";n.d(t,{Z:()=>o});var r,i=n(7636),a=("undefined"==typeof self?"undefined":(r=self)&&"undefined"!=typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)=="object"&&self&&self.Object===Object&&self;let o=i.Z||a||Function("return this")()},4791:function(e,t,n){"use strict";n.d(t,{Z:()=>i});var r=Function.prototype.toString;let i=function(e){if(null!=e){try{return r.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},8674:function(e,t,n){"use strict";n.d(t,{Z:()=>r});let r=function(e,t){return e===t||e!=e&&t!=t}},984:function(e,t,n){"use strict";n.d(t,{Z:()=>u});var r=n(9614),i=n(7422);let a=function(e){return(0,i.Z)(e)&&"[object Arguments]"==(0,r.Z)(e)};var o=Object.prototype,s=o.hasOwnProperty,c=o.propertyIsEnumerable;let u=a(function(){return arguments}())?a:function(e){return(0,i.Z)(e)&&s.call(e,"callee")&&!c.call(e,"callee")}},1919:function(e,t,n){"use strict";n.d(t,{Z:()=>r});let r=Array.isArray},4233:function(e,t,n){"use strict";n.d(t,{Z:()=>a});var r=n(9634),i=n(9008);let a=function(e){return null!=e&&(0,i.Z)(e.length)&&!(0,r.Z)(e)}},8988:function(e,t,n){"use strict";n.d(t,{Z:()=>c});var r=n(119);function i(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var a=("undefined"==typeof exports?"undefined":i(exports))=="object"&&exports&&!exports.nodeType&&exports,o=a&&("undefined"==typeof module?"undefined":i(module))=="object"&&module&&!module.nodeType&&module,s=o&&o.exports===a?r.Z.Buffer:void 0;let c=(s?s.isBuffer:void 0)||function(){return!1}},186:function(e,t,n){"use strict";n.d(t,{Z:()=>el});var r=n(8877),i=n(6389);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new i.Z;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},a.prototype.has=function(e){return this.__data__.has(e)};let o=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1},s=function(e,t,n,r,i,s){var c=1&n,u=e.length,l=t.length;if(u!=l&&!(c&&l>u))return!1;var f=s.get(e),h=s.get(t);if(f&&h)return f==t&&h==e;var d=-1,p=!0,y=2&n?new a:void 0;for(s.set(e,t),s.set(t,e);++d<u;){var v=e[d],g=t[d];if(r)var b=c?r(g,v,d,t,e,s):r(v,g,d,e,t,s);if(void 0!==b){if(b)continue;p=!1;break}if(y){if(!o(t,function(e,t){if(!y.has(t)&&(v===e||i(v,e,n,r,s)))return y.push(t)})){p=!1;break}}else if(!(v===g||i(v,g,n,r,s))){p=!1;break}}return s.delete(e),s.delete(t),p};var c=n(9466),u=n(5225),l=n(8674);let f=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n},h=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n};var d=c.Z?c.Z.prototype:void 0,p=d?d.valueOf:void 0;let y=function(e,t,n,r,i,a,o){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!a(new u.Z(e),new u.Z(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return(0,l.Z)(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var c=f;case"[object Set]":var d=1&r;if(c||(c=h),e.size!=t.size&&!d)break;var y=o.get(e);if(y)return y==t;r|=2,o.set(e,t);var v=s(c(e),c(t),r,i,a,o);return o.delete(e),v;case"[object Symbol]":if(p)return p.call(e)==p.call(t)}return!1},v=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e};var g=n(1919);let b=function(e,t,n){var r=t(e);return(0,g.Z)(e)?r:v(r,n(e))},m=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a};var w=Object.prototype.propertyIsEnumerable,E=Object.getOwnPropertySymbols,x=E?function(e){return null==e?[]:m(E(e=Object(e)),function(t){return w.call(e,t)})}:function(){return[]},O=n(659),S=n(1700),k=(0,n(8660).Z)(Object.keys,Object),A=Object.prototype.hasOwnProperty;let j=function(e){if(!(0,S.Z)(e))return k(e);var t=[];for(var n in Object(e))A.call(e,n)&&"constructor"!=n&&t.push(n);return t};var C=n(4233);let P=function(e){return(0,C.Z)(e)?(0,O.Z)(e):j(e)},D=function(e){return b(e,P,x)};function T(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}var R=Object.prototype.hasOwnProperty;let I=function(e,t,n,r,i,a){var o=1&n,s=D(e),c=s.length;if(c!=D(t).length&&!o)return!1;for(var u=c;u--;){var l=s[u];if(!(o?l in t:R.call(t,l)))return!1}var f=a.get(e),h=a.get(t);if(f&&h)return f==t&&h==e;var d=!0;a.set(e,t),a.set(t,e);for(var p=o;++u<c;){var y=e[l=s[u]],v=t[l];if(r)var g=o?r(v,y,l,t,e,a):r(y,v,l,e,t,a);if(!(void 0===g?y===v||i(y,v,n,r,a):g)){d=!1;break}p||(p="constructor"==l)}if(d&&!p){var b=e.constructor,m=t.constructor;b!=m&&"constructor"in e&&"constructor"in t&&!("function"==typeof b&&T(b,b)&&"function"==typeof m&&T(m,m))&&(d=!1)}return a.delete(e),a.delete(t),d};var N=n(3456),L=n(119),B=(0,N.Z)(L.Z,"DataView"),Z=n(4359),M=(0,N.Z)(L.Z,"Promise"),K=(0,N.Z)(L.Z,"Set"),F=(0,N.Z)(L.Z,"WeakMap"),U=n(9614),V=n(4791),$="[object Map]",q="[object Promise]",W="[object Set]",z="[object WeakMap]",H="[object DataView]",J=(0,V.Z)(B),X=(0,V.Z)(Z.Z),Y=(0,V.Z)(M),G=(0,V.Z)(K),Q=(0,V.Z)(F),ee=U.Z;(B&&ee(new B(new ArrayBuffer(1)))!=H||Z.Z&&ee(new Z.Z)!=$||M&&ee(M.resolve())!=q||K&&ee(new K)!=W||F&&ee(new F)!=z)&&(ee=function(e){var t=(0,U.Z)(e),n="[object Object]"==t?e.constructor:void 0,r=n?(0,V.Z)(n):"";if(r)switch(r){case J:return H;case X:return $;case Y:return q;case G:return W;case Q:return z}return t});let et=ee;var en=n(8988),er=n(2675),ei="[object Arguments]",ea="[object Array]",eo="[object Object]",es=Object.prototype.hasOwnProperty;let ec=function(e,t,n,i,a,o){var c=(0,g.Z)(e),u=(0,g.Z)(t),l=c?ea:et(e),f=u?ea:et(t);l=l==ei?eo:l,f=f==ei?eo:f;var h=l==eo,d=f==eo,p=l==f;if(p&&(0,en.Z)(e)){if(!(0,en.Z)(t))return!1;c=!0,h=!1}if(p&&!h)return o||(o=new r.Z),c||(0,er.Z)(e)?s(e,t,n,i,a,o):y(e,t,l,n,i,a,o);if(!(1&n)){var v=h&&es.call(e,"__wrapped__"),b=d&&es.call(t,"__wrapped__");if(v||b){var m=v?e.value():e,w=b?t.value():t;return o||(o=new r.Z),a(m,w,n,i,o)}}return!!p&&(o||(o=new r.Z),I(e,t,n,i,a,o))};var eu=n(7422);let el=function(e,t){return function e(t,n,r,i,a){return t===n||(null!=t&&null!=n&&((0,eu.Z)(t)||(0,eu.Z)(n))?ec(t,n,r,i,e,a):t!=t&&n!=n)}(e,t)}},9634:function(e,t,n){"use strict";n.d(t,{Z:()=>a});var r=n(9614),i=n(5074);let a=function(e){if(!(0,i.Z)(e))return!1;var t=(0,r.Z)(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},9008:function(e,t,n){"use strict";n.d(t,{Z:()=>r});let r=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}},5074:function(e,t,n){"use strict";n.d(t,{Z:()=>r});let r=function(e){var t=void 0===e?"undefined":e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e;return null!=e&&("object"==t||"function"==t)}},7422:function(e,t,n){"use strict";n.d(t,{Z:()=>r});let r=function(e){return null!=e&&(void 0===e?"undefined":e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)=="object"}},2675:function(e,t,n){"use strict";n.d(t,{Z:()=>p});var r=n(9614),i=n(9008),a=n(7422),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1;var s=n(7636);function c(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var u=("undefined"==typeof exports?"undefined":c(exports))=="object"&&exports&&!exports.nodeType&&exports,l=u&&("undefined"==typeof module?"undefined":c(module))=="object"&&module&&!module.nodeType&&module,f=l&&l.exports===u&&s.Z.process,h=function(){try{var e=l&&l.require&&l.require("util").types;if(e)return e;return f&&f.binding&&f.binding("util")}catch(e){}}(),d=h&&h.isTypedArray;let p=d?function(e){return d(e)}:function(e){return(0,a.Z)(e)&&(0,i.Z)(e.length)&&!!o[(0,r.Z)(e)]}},6058:function(e,t,n){"use strict";n.d(t,{Z:()=>r});let r=function(e){return void 0===e}},7830:function(e,t,n){"use strict";n.d(t,{Z:()=>ef});var r,i,a,o,s,c,u,l=n(8877),f=n(3456),h=function(){try{var e=(0,f.Z)(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();let d=function(e,t,n){"__proto__"==t&&h?h(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};var p=n(8674);let y=function(e,t,n){(void 0===n||(0,p.Z)(e[t],n))&&(void 0!==n||t in e)||d(e,t,n)},v=function(e,t,n){for(var r=-1,i=Object(e),a=n(e),o=a.length;o--;){var s=a[++r];if(!1===t(i[s],s,i))break}return e};var g=n(119);function b(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var m=("undefined"==typeof exports?"undefined":b(exports))=="object"&&exports&&!exports.nodeType&&exports,w=m&&("undefined"==typeof module?"undefined":b(module))=="object"&&module&&!module.nodeType&&module,E=w&&w.exports===m?g.Z.Buffer:void 0,x=E?E.allocUnsafe:void 0;let O=function(e,t){if(t)return e.slice();var n=e.length,r=x?x(n):new e.constructor(n);return e.copy(r),r};var S=n(5225);let k=function(e){var t=new e.constructor(e.byteLength);return new S.Z(t).set(new S.Z(e)),t},A=function(e,t){var n=t?k(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)},j=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t};var C=n(5074),P=Object.create,D=function(){function e(){}return function(t){if(!(0,C.Z)(t))return{};if(P)return P(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),T=(0,n(8660).Z)(Object.getPrototypeOf,Object),R=n(1700),I=n(984),N=n(1919),L=n(4233),B=n(7422),Z=n(8988),M=n(9634),K=n(9614),F=Object.prototype,U=Function.prototype.toString,V=F.hasOwnProperty,$=U.call(Object);let q=function(e){if(!(0,B.Z)(e)||"[object Object]"!=(0,K.Z)(e))return!1;var t=T(e);if(null===t)return!0;var n=V.call(t,"constructor")&&t.constructor;return"function"==typeof n&&(null!=n&&"undefined"!=typeof Symbol&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](n):n instanceof n)&&U.call(n)==$};var W=n(2675);let z=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]};var H=Object.prototype.hasOwnProperty;let J=function(e,t,n){var r=e[t];H.call(e,t)&&(0,p.Z)(r,n)&&(void 0!==n||t in e)||d(e,t,n)},X=function(e,t,n,r){var i=!n;n||(n={});for(var a=-1,o=t.length;++a<o;){var s=t[a],c=r?r(n[s],e[s],s,n,e):void 0;void 0===c&&(c=e[s]),i?d(n,s,c):J(n,s,c)}return n};var Y=n(659);let G=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t};var Q=Object.prototype.hasOwnProperty;let ee=function(e){if(!(0,C.Z)(e))return G(e);var t=(0,R.Z)(e),n=[];for(var r in e)"constructor"==r&&(t||!Q.call(e,r))||n.push(r);return n},et=function(e){return(0,L.Z)(e)?(0,Y.Z)(e,!0):ee(e)},en=function(e,t,n,r,i,a,o){var s=z(e,n),c=z(t,n),u=o.get(c);if(u)return void y(e,n,u);var l=a?a(s,c,n+"",e,t,o):void 0,f=void 0===l;if(f){var h=(0,N.Z)(c),d=!h&&(0,Z.Z)(c),p=!h&&!d&&(0,W.Z)(c);(l=c,h||d||p)?(0,N.Z)(s)?l=s:(0,B.Z)(s)&&(0,L.Z)(s)?l=j(s):d?(f=!1,l=O(c,!0)):p?(f=!1,l=A(c,!0)):l=[]:q(c)||(0,I.Z)(c)?(l=s,(0,I.Z)(s))?l=X(s,et(s)):(!(0,C.Z)(s)||(0,M.Z)(s))&&(l="function"!=typeof c.constructor||(0,R.Z)(c)?{}:D(T(c))):f=!1}f&&(o.set(c,l),i(l,c,r,a,o),o.delete(c)),y(e,n,l)},er=function e(t,n,r,i,a){t!==n&&v(n,function(o,s){if(a||(a=new l.Z),(0,C.Z)(o))en(t,n,s,r,e,i,a);else{var c=i?i(z(t,s),o,s+"",t,n,a):void 0;void 0===c&&(c=o),y(t,s,c)}},et)},ei=function(e){return e},ea=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)};var eo=Math.max,es=Date.now,ec=(o=h?function(e,t){return h(e,"toString",{configurable:!0,enumerable:!1,value:function(){return t},writable:!0})}:ei,s=0,c=0,function(){var e=es(),t=16-(e-c);if(c=e,t>0){if(++s>=800)return arguments[0]}else s=0;return o.apply(void 0,arguments)}),eu=n(3422);let el=function(e,t,n){if(!(0,C.Z)(n))return!1;var r=void 0===t?"undefined":t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t;return("number"==r?!!((0,L.Z)(n)&&(0,eu.Z)(t,n.length)):"string"==r&&t in n)&&(0,p.Z)(n[t],e)},ef=(u=function(e,t,n){er(e,t,n)},ec((r=function(e,t){var n=-1,r=t.length,i=r>1?t[r-1]:void 0,a=r>2?t[2]:void 0;for(i=u.length>3&&"function"==typeof i?(r--,i):void 0,a&&el(t[0],t[1],a)&&(i=r<3?void 0:i,r=1),e=Object(e);++n<r;){var o=t[n];o&&u(e,o,n,i)}return e},a=eo(void 0===(a=i)?r.length-1:a,0),function(){for(var e=arguments,t=-1,n=eo(e.length-a,0),i=Array(n);++t<n;)i[t]=e[a+t];t=-1;for(var o=Array(a+1);++t<a;)o[t]=e[t];return o[a]=ei(i),ea(r,this,o)}),r+""))},3518:function(e,t,n){"use strict";n.d(t,{Z:()=>a});var r=n(926),i=function(){function e(){this.map={},this.length=0}return e.prototype.set=function(e,t){var n=this.hash(e),r=this.map[n];r||(this.map[n]=r=[]),r.push([e,t]),this.length+=1},e.prototype.hash=function(e){var t=[];for(var n in e)t.push(Object.prototype.toString.call(e[n]));return t.join()},e.prototype.get=function(e){if(this.length<=180){for(var t in this.map)for(var n=this.map[t],r=0;r<n.length;r+=1){var i=n[r];if(i[0]===e)return i[1]}return}var a=this.hash(e),n=this.map[a];if(n)for(var r=0;r<n.length;r+=1){var i=n[r];if(i[0]===e)return i[1]}},e}();let a=(0,n(8658).Z)(function(e){return null!=e&&"function"==typeof e.clone?e.clone():function e(t,n,a){if(a||(a=new i),function(e){var t=void 0===e?"undefined":e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e;return null==e||"object"!=t&&"function"!=t}(t))return t;var o=function(r){var i=a.get(t);if(i)return i;for(var o in a.set(t,r),t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=n?e(t[o],!0,a):t[o]);return r};switch((0,r.Z)(t)){case"Object":return o(Object.create(Object.getPrototypeOf(t)));case"Array":return o(Array(t.length));case"Date":return new Date(t.valueOf());case"RegExp":return new RegExp(t.source,t.flags?t.flags:(t.global?"g":"")+(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.sticky?"y":"")+(t.unicode?"u":"")+(t.dotAll?"s":""));case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return t.slice();default:return t}}(e,!0)})},5747:function(e,t,n){"use strict";n.d(t,{Z:()=>w});var r=n(7637);function i(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function a(e,t,n){for(var r=0,i=n.length;r<i;){if(e(t,n[r]))return!0;r+=1}return!1}var o=n(7086);let s="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var c=n(8658),u=Object.prototype.toString,l=function(){return"[object Arguments]"===u.call(arguments)?function(e){return"[object Arguments]"===u.call(e)}:function(e){return(0,o.Z)("callee",e)}}(),f=!({toString:null}).propertyIsEnumerable("toString"),h=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],d=function(){return arguments.propertyIsEnumerable("length")}(),p=function(e,t){for(var n=0;n<e.length;){if(e[n]===t)return!0;n+=1}return!1},y="function"!=typeof Object.keys||d?(0,c.Z)(function(e){if(Object(e)!==e)return[];var t,n,r=[],i=d&&l(e);for(t in e)(0,o.Z)(t,e)&&(!i||"length"!==t)&&(r[r.length]=t);if(f)for(n=h.length-1;n>=0;)t=h[n],(0,o.Z)(t,e)&&!p(r,t)&&(r[r.length]=t),n-=1;return r}):(0,c.Z)(function(e){return Object(e)!==e?[]:Object.keys(e)}),v=n(926);function g(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function b(e,t,n,r){var o=i(e);function s(e,t){return m(e,t,n.slice(),r.slice())}return!a(function(e,t){return!a(s,t,e)},i(t),o)}function m(e,t,n,r){if(s(e,t))return!0;var i,a=(0,v.Z)(e);if(a!==(0,v.Z)(t))return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(a){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(null==(i=String(e.constructor).match(/^function (\w*)/))?"":i[1]))return e===t;break;case"Boolean":case"Number":case"String":if(!((void 0===e?"undefined":g(e))===(void 0===t?"undefined":g(t))&&s(e.valueOf(),t.valueOf())))return!1;break;case"Date":if(!s(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var c=n.length-1;c>=0;){if(n[c]===e)return r[c]===t;c-=1}switch(a){case"Map":if(e.size!==t.size)return!1;return b(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":if(e.size!==t.size)return!1;return b(e.values(),t.values(),n.concat([e]),r.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var u=y(e);if(u.length!==y(t).length)return!1;var l=n.concat([e]),f=r.concat([t]);for(c=u.length-1;c>=0;){var h=u[c];if(!((0,o.Z)(h,t)&&m(t[h],e[h],l,f)))return!1;c-=1}return!0}let w=(0,r.Z)(function(e,t){return m(e,t,[],[])})},8658:function(e,t,n){"use strict";n.d(t,{Z:()=>i});var r=n(75);function i(e){return function t(n){return 0==arguments.length||(0,r.Z)(n)?t:e.apply(this,arguments)}}},7637:function(e,t,n){"use strict";n.d(t,{Z:()=>a});var r=n(8658),i=n(75);function a(e){return function t(n,a){switch(arguments.length){case 0:return t;case 1:return(0,i.Z)(n)?t:(0,r.Z)(function(t){return e(n,t)});default:return(0,i.Z)(n)&&(0,i.Z)(a)?t:(0,i.Z)(n)?(0,r.Z)(function(t){return e(t,a)}):(0,i.Z)(a)?(0,r.Z)(function(t){return e(n,t)}):e(n,a)}}}},8830:function(e,t,n){"use strict";n.d(t,{Z:()=>o});var r=n(8658),i=n(7637),a=n(75);function o(e){return function t(n,o,s){switch(arguments.length){case 0:return t;case 1:return(0,a.Z)(n)?t:(0,i.Z)(function(t,r){return e(n,t,r)});case 2:return(0,a.Z)(n)&&(0,a.Z)(o)?t:(0,a.Z)(n)?(0,i.Z)(function(t,n){return e(t,o,n)}):(0,a.Z)(o)?(0,i.Z)(function(t,r){return e(n,t,r)}):(0,r.Z)(function(t){return e(n,o,t)});default:return(0,a.Z)(n)&&(0,a.Z)(o)&&(0,a.Z)(s)?t:(0,a.Z)(n)&&(0,a.Z)(o)?(0,i.Z)(function(t,n){return e(t,n,s)}):(0,a.Z)(n)&&(0,a.Z)(s)?(0,i.Z)(function(t,n){return e(t,o,n)}):(0,a.Z)(o)&&(0,a.Z)(s)?(0,i.Z)(function(t,r){return e(n,t,r)}):(0,a.Z)(n)?(0,r.Z)(function(t){return e(t,o,s)}):(0,a.Z)(o)?(0,r.Z)(function(t){return e(n,t,s)}):(0,a.Z)(s)?(0,r.Z)(function(t){return e(n,o,t)}):e(n,o,s)}}}},7086:function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(t,e)}n.d(t,{Z:()=>r})},75:function(e,t,n){"use strict";function r(e){return null!=e&&(void 0===e?"undefined":e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)=="object"&&!0===e["@@functional/placeholder"]}n.d(t,{Z:()=>r})},1802:function(e,t,n){"use strict";n.d(t,{Z:()=>u});var r=n(7637),i=n(8830);function a(e){return"[object Object]"===Object.prototype.toString.call(e)}var o=n(7086),s=(0,i.Z)(function(e,t,n){var r,i={};for(r in n=n||{},t=t||{})(0,o.Z)(r,t)&&(i[r]=(0,o.Z)(r,n)?e(r,t[r],n[r]):t[r]);for(r in n)(0,o.Z)(r,n)&&!(0,o.Z)(r,i)&&(i[r]=n[r]);return i}),c=(0,i.Z)(function e(t,n,r){return s(function(n,r,i){return a(r)&&a(i)?e(t,r,i):t(n,r,i)},n,r)});let u=(0,r.Z)(function(e,t){return c(function(e,t,n){return n},e,t)})},1748:function(e,t,n){"use strict";n.d(t,{Z:()=>p});var r,i,a,o=n(8830),s=n(8658);let c=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};var u=(0,s.Z)(function(e){return!!c(e)||!!e&&(void 0===e?"undefined":e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)=="object"&&"[object String]"!==Object.prototype.toString.call(e)&&(0===e.length||e.length>0&&e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1))}),l="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator",f=(0,n(7637).Z)(function(e,t){var n=e.length,r=function(){return e.apply(t,arguments)};switch(n){case 0:return function(){return r.apply(this,arguments)};case 1:return function(e){return r.apply(this,arguments)};case 2:return function(e,t){return r.apply(this,arguments)};case 3:return function(e,t,n){return r.apply(this,arguments)};case 4:return function(e,t,n,i){return r.apply(this,arguments)};case 5:return function(e,t,n,i,a){return r.apply(this,arguments)};case 6:return function(e,t,n,i,a,o){return r.apply(this,arguments)};case 7:return function(e,t,n,i,a,o,s){return r.apply(this,arguments)};case 8:return function(e,t,n,i,a,o,s,c){return r.apply(this,arguments)};case 9:return function(e,t,n,i,a,o,s,c,u){return r.apply(this,arguments)};case 10:return function(e,t,n,i,a,o,s,c,u,l){return r.apply(this,arguments)};default:throw Error("First argument to _arity must be a non-negative integer no greater than ten")}}),h=(r=function(e,t,n){for(var r=0,i=n.length;r<i;){if((t=e["@@transducer/step"](t,n[r]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)},i=function(e,t,n,r){return e["@@transducer/result"](n[r](f(e["@@transducer/step"],e),t))},a=function(e,t,n){for(var r=n.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=n.next()}return e["@@transducer/result"](t)},function(e,t,n){if(u(n))return r(e,t,n);if(null==n)return t;if("function"==typeof n["fantasy-land/reduce"])return i(e,t,n,"fantasy-land/reduce");if(null!=n[l])return a(e,t,n[l]());if("function"==typeof n.next)return a(e,t,n);if("function"==typeof n.reduce)return i(e,t,n,"reduce");throw TypeError("reduce: list must be array or iterable")}),d=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();let p=(0,o.Z)(function(e,t,n){return h("function"==typeof e?new d(e):e,t,n)})},926:function(e,t,n){"use strict";n.d(t,{Z:()=>r});let r=(0,n(8658).Z)(function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)})},620:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(3628),i=n(810),a=e([i]);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){u(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}i=(a.then?(await a)():a)[0];var d=function(e){var t=i.Component;if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");p.prototype=Object.create(t&&t.prototype,{constructor:{value:p,writable:!0,configurable:!0}}),t&&f(p,t);var n,a,o,d=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=l(p);if(n){var r=l(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);var i=e;if(i&&("object"==(void 0===i?"undefined":i&&"undefined"!=typeof Symbol&&i.constructor===Symbol?"symbol":typeof i)||"function"==typeof i))return i;if(void 0!==i)throw TypeError("Derived constructors may only return object or undefined");return h(this)});function p(e){var t;if(function(e,t){if(null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!t[Symbol.hasInstance](e):!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,p),u(h(t=d.call(this,e)),"handleRef",function(e){t.el=e}),u(h(t),"addThingToDo",function(e,n){t.state.hasError&&"unmount"!==e||(t.nextThingToDo=(t.nextThingToDo||Promise.resolve()).then(function(){if(!t.unmounted||"unmount"===e)return n.apply(void 0,arguments)}).catch(function(n){throw t.nextThingToDo=Promise.resolve(),t.setState({hasError:!0}),n&&n.message&&(n.message="During '".concat(e,"', parcel threw an error: ").concat(n.message)),t.props.handleError?t.props.handleError(n):setTimeout(function(){throw n}),n}))}),u(h(t),"getParcelProps",function(){var e=s(s({},t.props),{},{domElement:t.el});return delete e.mountParcel,delete e.config,delete e.wrapWith,delete e.wrapStyle,delete e.appendTo,delete e.handleError,delete e.parcelDidMount,e}),t.state={hasError:!1},!e.config)throw Error("single-spa-react's Parcel component requires the 'config' prop to either be a parcel config or a loading function that returns a promise. See https://github.com/single-spa/single-spa-react");return t}return a=[{key:"componentDidMount",value:function(){var e=this;this.unmounted=!1,this.addThingToDo("mount",function(){var t,n=e.props.mountParcel||e.mountParcel;if(!n)throw Error("\n <Parcel /> was not passed a mountParcel prop, nor is it rendered where mountParcel is within the React context.\n If you are using <Parcel /> within a module that is not a single-spa application, you will need to import mountRootParcel from single-spa and pass it into <Parcel /> as a mountParcel prop \n ");return e.el?t=e.el:(e.createdDomElement=t=document.createElement(e.props.wrapWith),Object.keys(e.props.wrapStyle).forEach(function(n){t.style[n]=e.props.wrapStyle[n]}),e.props.appendTo.appendChild(t)),e.parcel=n(e.props.config,s({domElement:t},e.getParcelProps())),e.parcel.mountPromise.then(e.props.parcelDidMount),e.parcel.mountPromise})}},{key:"componentDidUpdate",value:function(){var e=this;this.addThingToDo("update",function(){if(e.parcel&&e.parcel.update)return e.parcel.update(e.getParcelProps())})}},{key:"componentWillUnmount",value:function(){var e=this;this.addThingToDo("unmount",function(){if(e.parcel&&"MOUNTED"===e.parcel.getStatus())return e.parcel.unmount()}),this.createdDomElement&&this.createdDomElement.parentNode.removeChild(this.createdDomElement),this.unmounted=!0}},{key:"render",value:function(){var e=this;if(this.props.appendTo)return r.a&&r.a.Consumer?i.createElement(r.a.Consumer,null,function(t){return e.mountParcel=t?t.mountParcel:null,null}):null;var t=r.a&&r.a.Consumer?i.createElement(r.a.Consumer,null,function(t){return e.mountParcel=t?t.mountParcel:null,null}):void 0;return i.createElement(this.props.wrapWith,{ref:this.handleRef,style:this.props.wrapStyle,className:this.props.wrapClassName},t)}}],c(p.prototype,a),o&&c(p,o),p}();u(d,"defaultProps",{wrapWith:"div",wrapStyle:{},parcelDidMount:function(){}}),t()}catch(e){t(e)}})},3628:function(e,t,n){"use strict";n.d(t,{a:()=>r});var r=null;try{r=require("react").createContext()}catch(e){}},6113:function(e,t,n){"use strict";n.a(e,async function(e,r){try{n.d(t,{Qf:()=>l,y9:()=>u}),n(382);var i=n(7166),a=n(6058),o=n(8999),s=n(3203),c=e([o,s,i]);[o,s,i]=c.then?(await c)():c;let l=(0,i.jk)("session",{loaded:!1,session:null});function u(e,t){var n,r;if(void 0===t)return!!e;if(!e)return!0;return n=e,r=t,("string"==typeof n?!(0,a.Z)(r.privileges.find(e=>n===e.display)):Array.isArray(n)?n.every(e=>!(0,a.Z)(r.privileges.find(t=>e===t.display))):((0,a.Z)(n)||console.error(`Could not understand privileges "${n}"`),!0))||!(0,a.Z)(t.roles.find(e=>"System Developer"===e.display))}l.subscribe(e=>{var t;let n;e.loaded&&e.session&&(t=e.session,(n=t.user?.userProperties?.defaultLocale??t.locale)&&n.includes("_")&&(n=n.replaceAll("_","-")),function(e){if(void 0===e||"string"!=typeof e)return!1;try{new Intl.Locale(e)}catch(e){return!1}return!0}(n)&&n!==document.documentElement.getAttribute("lang")&&document.documentElement.setAttribute("lang",n))}),r()}catch(e){r(e)}})},5970:function(e,t,n){"use strict";n.a(e,async function(e,r){try{n.d(t,{Qf:()=>i.Qf,YC:()=>a.YC,y9:()=>i.y9});var i=n(6113),a=n(3203),o=n(3440),s=e([i,a,o]);[i,a,o]=s.then?(await s)():s,r()}catch(e){r(e)}})},3203:function(e,t,n){"use strict";n.a(e,async function(e,r){try{n.d(t,{YC:()=>c});var i=n(8999),a=n(6149),o=n(1946),s=e([i,a,o]);[i,a,o]=s.then?(await s)():s;let c="/ws/rest/v1";r()}catch(e){r(e)}})},9217:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(6113),i=n(3203),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},3440:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(6149),i=n(6113),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},6149:function(e,t,n){"use strict";n.a(e,async function(e,r){try{n.d(t,{$w:()=>a.$w,Dy:()=>s.D,Gr:()=>a.Gr,R2:()=>a.R2,_z:()=>a._z,getExtensionConfigFromStore:()=>a.sR,getExtensionSlotConfigFromStore:()=>a.eQ,z2:()=>o.z2});var i=n(568),a=n(3953),o=n(2051),s=n(7595),c=e([i,a]);[i,a]=c.then?(await c)():c,r()}catch(e){r(e)}})},568:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(5747),i=n(3518),a=n(1748),o=n(1802),s=n(7595),c=n(6543),u=n(5585),l=n(3953),f=e([l]);l=(f.then?(await f)():f)[0],h(l.hv.getState(),l.DK.getState()),l.hv.subscribe(e=>h(e,l.DK.getState())),l.DK.subscribe(e=>h(l.hv.getState(),e)),p(l.hv.getState(),l.DK.getState()),l.hv.subscribe(e=>p(e,l.DK.getState())),l.DK.subscribe(e=>p(l.hv.getState(),e)),d(l.hv.getState(),l.DK.getState()),l.hv.subscribe(e=>d(e,l.DK.getState())),l.DK.subscribe(e=>d(l.hv.getState(),e)),y(l.hv.getState(),l.R2.getState(),l.DK.getState()),l.hv.subscribe(e=>{y(e,l.R2.getState(),l.DK.getState())}),l.R2.subscribe(e=>{y(l.hv.getState(),e,l.DK.getState())}),l.DK.subscribe(e=>{y(l.hv.getState(),l.R2.getState(),e)});let A=new Set;function h(e,t){for(let n of Object.keys(e.schemas)){let r=(0,l.pR)(n);if(e.moduleLoaded[n]){let i=function(e,t,n){let r=t.schemas[e],i=g(e,v(t,n));m(r,i,e);let a=j(r,i);return w(r,a,e),delete a.extensionSlots,a}(n,e,t);r.setState({translationOverridesLoaded:!0,loaded:!0,config:i})}else{let i=function(e,t,n){let r=g(e,v(t,n)),i=j(P,r);return w(P,i,e),delete i.extensionSlots,i}(n,e,t);r.setState({translationOverridesLoaded:!0,loaded:!1,config:i})}}}function d(e,t){let n=function(e,t){let n=b(v(e,t)),r=Object.keys(n).reduce((e,t)=>(n[t]?.extensionSlots&&(e[t]=n[t]?.extensionSlots),e),{});return function(e){for(let[i,a]of Object.entries(e))for(let[e,o]of Object.entries(a)){var t=o,n=i,r=e;let a=`${n}.extensionSlots.${r}`,s=`Extension slot config '${a}'`,c=Object.keys(t).filter(e=>!["add","remove","order","configure"].includes(e));c.length&&k(a,s+`' contains invalid keys '${c.join("', '")}'`),!t.add||Array.isArray(t.add)&&t.add.every(e=>"string"==typeof e)||k(a,s+".add' is invalid. Must be an array of strings (extension IDs)"),!t.remove||Array.isArray(t.remove)&&t.remove.every(e=>"string"==typeof e)||k(a,s+".remove' is invalid. Must be an array of strings (extension IDs)"),!t.order||Array.isArray(t.order)&&t.order.every(e=>"string"==typeof e)||k(a,s+".order' is invalid. Must be an array of strings (extension IDs)"),t.configure&&!S(t.configure)&&k(a,s+".configure' is invalid. Must be an object with extension IDs for keys")}}(r),Object.keys(r).reduce((e,t)=>e={...e,...r[t]},{})}(e,t),i=Object.fromEntries(Object.entries(n).map(([e,t])=>[e,{loaded:!0,config:t}])),a=(0,l.Gr)(),o=a.getState(),s={slots:{...o.slots,...i}};(0,r.Z)(o,s)||a.setState(s)}function p(e,t){let n=function(e,t){let n=function e(t){return t.hasOwnProperty("_default")?{...t,_value:t._default,_source:"default"}:S(t)?Object.keys(t).reduce((n,r)=>(n[r]=e(t[r]),n),{}):{}}((0,i.Z)(e.schemas));for(let[r,i]of[...e.providedConfigs.map(e=>[e.config,e.source]),[t.config,"temporary config"]])n=b([n,function e(t,n){return S(t)?Object.keys(t).reduce((r,i)=>(r[i]=e(t[i],n),r),{}):{_value:t,_source:n}}(r,i)]);return n}(e,t);l.HN.setState({config:n})}function y(e,t,n){let r={};for(let i of t.mountedExtensions){let t=function(e,t,n,r,i,a){let o=function(e){let[t]=e.split("#");return t}(r),s=i.schemas[o],c=s?o:t,u=v(i,a),l=g(e,u),f=l?.extensionSlots?.[n]?.configure?.[r]??{},h=g(c,u),d=b([h,f]),p=s??i.schemas[t];m(p,d,c);let y=j(p,d);return w(p,y,c),delete y.extensionSlots,y}(i.slotModuleName,i.extensionModuleName,i.slotName,i.extensionId,e,n);r[i.slotName]={...r[i.slotName],[i.extensionId]:{config:t,loaded:!0}}}(0,l._z)().setState({configs:r})}function v(e,t){return[...e.providedConfigs.map(e=>e.config),t.config]}function g(e,t){let n=t.map(({[e]:t})=>t).filter(e=>!!e);return b(n)}function b(e){return(0,a.Z)(o.Z)({},e)}function m(e,t,n=""){for(let r of Object.keys(t)){let i=t[r],a=n+"."+r,o=e[r];if(!e.hasOwnProperty(r)){("extensionSlots"!==r||""===n)&&k(a,`Unknown config key '${a}' provided. Ignoring.`);continue}(function e(t,n,r){E(r,t._type,n),S(n)?t._type===s.D.Object?function(t,n,r){if(t._elements)for(let i of Object.keys(n)){let a=n[i];e(t._elements,a,`${r}.${i}`)}}(t,n,r):t.hasOwnProperty("_default")||t.hasOwnProperty("_type")||m(t,n,r):t._type===s.D.Array&&function(t,n,r){if(E(r,s.D.Array,n)){if(O(t._elements))for(let i=0;i<n.length;i++)e(t._elements,n[i],`${r}[${i}]`);for(let e=0;e<n.length;e++)E(`${r}[${e}]`,t._elements?._type,n[e])}}(t,n,r)})(o,i,a)}}function w(e,t,n=""){if(e){if(t!==e._default&&x(n,e._validators,t),S(t))for(let r of Object.keys(t)){let i=t[r],a=n+"."+r,o=e[r];e._type===s.D.Object&&e._elements?w(e._elements,i,a):w(o,i,a)}else if(Array.isArray(t)&&e._elements)for(let r=0;r<t.length;r++)w(e._elements,t[r],`${n}[${r}]`)}}function E(e,t,n){if(t){let r={Array:c.kJ,Boolean:c.jn,ConceptUuid:c.K8,Number:c.hj,Object:c.Kn,String:c.HD,UUID:c.K8,PersonAttributeTypeUuid:c.K8,PatientIdentifierTypeUuid:c.K8};return x(e,[r[t]],n)}return!0}function x(e,t,n){let r=!0;if(t)try{for(let i of t){let t=i(n);if("string"==typeof t){let i="object"==typeof n?`Invalid configuration for ${e}: ${t}`:`Invalid configuration value ${n} for ${e}: ${t}`;k(e,i),r=!1}}}catch(t){console.error(`Skipping invalid validator at "${e}". Encountered error
2
- ${t}`)}return r}let j=(e,t)=>{let n=(0,i.Z)(t);if(!e)return n;for(let t of Object.keys(e)){let r=n[t],i=e[t];if(i&&(i.hasOwnProperty("_type")||i.hasOwnProperty("_default"))){n.hasOwnProperty(t)||(n[t]=i._default);let e=i._elements;if(r&&O(e)){if(i._type===s.D.Array&&Array.isArray(r)){let i=r.map(t=>j(e,t));n[t]=i}else if(i._type===s.D.Object)for(let t of Object.keys(r))r[t]=j(e,r[t])}}else if(S(i)){let e=r??{};S(e)&&(n[t]=j(i,e))}}return n};function O(e){return!!e&&Object.keys(e).filter(e=>!["_default","_validators"].includes(e)).length>0}function S(e){return"object"==typeof e&&!Array.isArray(e)&&null!==e}function k(e,t){let n=`${e}:::${t}`;A||(A=new Set),A.has(n)||(console.error(t),A.add(n))}let C={"Translation overrides":{_description:"Per-language overrides for frontend translations should be keyed by language code and each language dictionary contains the translation key and the display value",_type:s.D.Object,_default:{},_validators:[(0,u.s)(e=>Object.keys(e).every(e=>/^[a-z]{2,3}(-[A-Z]{2,3})?$/.test(e)),e=>{let t=Object.keys(e).filter(e=>!/^[a-z]{2,3}(-[A-Z]{2,3})?$/.test(e));return`The 'Translation overrides' object should have language codes for keys. Language codes must be in the form of a two-to-three letter language code optionally followed by a hyphen and a two-to-three letter country code. The following keys do not conform: ${t.join(", ")}.`})]}},P={"Display conditions":{privileges:{_description:"The privilege(s) the user must have to use this extension",_type:s.D.Array,_default:[]}},...C};t()}catch(e){t(e)}})},3953:function(e,t,n){"use strict";n.a(e,async function(e,r){try{n.d(t,{$w:()=>f,DK:()=>d,Gr:()=>s,HN:()=>y,R2:()=>p,_z:()=>u,eQ:()=>c,hv:()=>h,pR:()=>o,sR:()=>l});var i=n(7166),a=e([i]);i=(a.then?(await a)():a)[0];let h=(0,i.jk)("config-internal",{providedConfigs:[],schemas:{},moduleLoaded:{}}),d=(0,i.jk)("temporary-config",{config:function(){try{return JSON.parse(localStorage.getItem("openmrs:temporaryConfig")||"{}")}catch(e){return{}}}()});d.subscribe(e=>{var t;t=e.config,localStorage.setItem("openmrs:temporaryConfig",JSON.stringify(t))});let p=(0,i.jk)("config-store-of-extension-state",{mountedExtensions:[]});function o(e){return(0,i.zJ)(`config-module-${e}`,{config:null,loaded:!1,translationOverridesLoaded:!1})}function s(){return(0,i.zJ)("config-extension-slots",{slots:{}})}function c(e,t){return e.slots[t]??{loaded:!1,config:{}}}function u(){return(0,i.zJ)("config-extensions",{configs:{}})}function l(e,t,n){return e.configs[t]?.[n]??{loaded:!1,config:null}}function f(e,t,n){return e.configure?.[n]??null}let y=(0,i.jk)("config-implementer-tools",{config:{}});r()}catch(e){r(e)}})},1916:function(e,t,n){"use strict";n.a(e,async function(e,t){try{n(2051);var r=n(568),i=n(3953),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},7595:function(e,t,n){"use strict";n.d(t,{D:()=>i});var r,i=((r={}).Array="Array",r.Boolean="Boolean",r.ConceptUuid="ConceptUuid",r.Number="Number",r.Object="Object",r.String="String",r.UUID="UUID",r.PersonAttributeTypeUuid="PersonAttributeTypeUuid",r.PatientIdentifierTypeUuid="PatientIdentifierTypeUuid",r)},6543:function(e,t,n){"use strict";n.d(t,{HD:()=>s,K8:()=>u,Kn:()=>c,hj:()=>o,jn:()=>a,kJ:()=>i});var r=n(5585);let i=(0,r.s)(e=>Array.isArray(e),"must be an array"),a=(0,r.s)(e=>"boolean"==typeof e,"must be a boolean"),o=(0,r.s)(e=>"number"==typeof e,"must be a number"),s=(0,r.s)(e=>"string"==typeof e,"must be a string"),c=(0,r.s)(e=>"object"==typeof e&&!Array.isArray(e)&&null!==e,"must be an object (not an array or null)"),u=(0,r.s)(e=>/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(e)||/^[0-9a-f]{36}$/i.test(e),"must be a valid UUID or a 36-character hexadecimal string")},5585:function(e,t,n){"use strict";function r(e,t){return n=>{if(!e(n))if("function"==typeof t)return t(n);else return t}}n.d(t,{s:()=>r})},2051:function(e,t,n){"use strict";n.d(t,{z2:()=>a});var r=n(5585);let i=e=>{let t=e.concat(["openmrsBase","openmrsSpaBase"]);return(0,r.s)(e=>{if(!e||"string"!=typeof e)return!1;let n=/\${(.*?)}/g,r=n.exec(e);for(;r;){if(!t.includes(r[1]))return!1;r=n.exec(e)}return!0},"Should be a URL or path. The allowed template parameters are "+t.map(e=>"${"+e+"}").join(", "))},a={inRange:(e,t)=>(0,r.s)(n=>e<=n&&n<=t,`must be between ${e} and ${t}`),isUrl:i([]),isUrlWithTemplateParameters:i,oneOf:e=>(0,r.s)(t=>e.includes(t),`Must be one of the following: '${e.join("', '")}'.`)}},742:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(5970),i=e([r]);(r=(i.then?(await i)():i)[0]).YC,t()}catch(e){t(e)}})},2570:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(5970),i=n(4952),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},2639:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(742),i=n(2570),a=n(2947),o=n(4444),s=n(4994),c=e([r,i,a,o,s]);[r,i,a,o,s]=c.then?(await c)():c,t()}catch(e){t(e)}})},2947:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(5970),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},2151:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(742),i=n(2570),a=n(4994),o=n(4444),s=n(2947),c=e([r,i,a,o,s]);[r,i,a,o,s]=c.then?(await c)():c,t()}catch(e){t(e)}})},4444:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(5970),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},4994:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(5970),i=n(7166),a=n(8999),o=e([r,i,a]);[r,i,a]=o.then?(await o)():o;let s=function(){try{return JSON.parse(sessionStorage.getItem("openmrs:visitStoreState")||"null")}catch(e){return null}}()||{patientUuid:null,manuallySetVisitUuid:null,mutateVisitCallbacks:{}};(0,i.zJ)("visit",s).subscribe(e=>{var t;t=e,sessionStorage.setItem("openmrs:visitStoreState",JSON.stringify(t))}),new a.BehaviorSubject(null),t()}catch(e){t(e)}})},382:function(e,t,n){"use strict";var r=n(595);window.onerror=function(e){return console.error("Unexpected error: ",e),(0,r.dO)({description:e??"Oops! An unexpected error occurred.",kind:"error",title:"Error"}),!1},window.onunhandledrejection=function(e){console.error("Unhandled rejection: ",e.reason),(0,r.dO)({description:e.reason??"Oops! An unhandled promise rejection occurred.",kind:"error",title:"Error"})}},9753:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}n.d(t,{po:()=>v});var s=function(){function e(){i(this,e)}return o(e,[{key:"add",value:function(e,t,n){if("string"!=typeof arguments[0])for(var r in arguments[0])this.add(r,arguments[0][r],arguments[1]);else(Array.isArray(e)?e:[e]).forEach(function(e){this[e]=this[e]||[],t&&this[e][n?"unshift":"push"](t)},this)}},{key:"run",value:function(e,t){this[e]=this[e]||[],this[e].forEach(function(e){e.call(t&&t.context?t.context:t,t)})}}]),e}(),c=function(){function e(t){i(this,e),this.jsep=t,this.registered={}}return o(e,[{key:"register",value:function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];n.forEach(function(t){if((void 0===t?"undefined":t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)!="object"||!t.name||!t.init)throw Error("Invalid JSEP plugin format");e.registered[t.name]||(t.init(e.jsep),e.registered[t.name]=t)})}}]),e}(),u=function(){function e(t){i(this,e),this.expr=t,this.index=0}return o(e,[{key:"char",get:function(){return this.expr.charAt(this.index)}},{key:"code",get:function(){return this.expr.charCodeAt(this.index)}},{key:"throwError",value:function(e){var t=Error(e+" at character "+this.index);throw t.index=this.index,t.description=e,t}},{key:"runHook",value:function(t,n){if(e.hooks[t]){var r={context:this,node:n};return e.hooks.run(t,r),r.node}return n}},{key:"searchHook",value:function(t){if(e.hooks[t]){var n={context:this};return e.hooks[t].find(function(e){return e.call(n.context,n),n.node}),n.node}}},{key:"gobbleSpaces",value:function(){for(var t=this.code;t===e.SPACE_CODE||t===e.TAB_CODE||t===e.LF_CODE||t===e.CR_CODE;)t=this.expr.charCodeAt(++this.index);this.runHook("gobble-spaces")}},{key:"parse",value:function(){this.runHook("before-all");var t=this.gobbleExpressions(),n=1===t.length?t[0]:{type:e.COMPOUND,body:t};return this.runHook("after-all",n)}},{key:"gobbleExpressions",value:function(t){for(var n,r,i=[];this.index<this.expr.length;)if((n=this.code)===e.SEMCOL_CODE||n===e.COMMA_CODE)this.index++;else if(r=this.gobbleExpression())i.push(r);else if(this.index<this.expr.length){if(n===t)break;this.throwError('Unexpected "'+this.char+'"')}return i}},{key:"gobbleExpression",value:function(){var e=this.searchHook("gobble-expression")||this.gobbleBinaryExpression();return this.gobbleSpaces(),this.runHook("after-expression",e)}},{key:"gobbleBinaryOp",value:function(){this.gobbleSpaces();for(var t=this.expr.substr(this.index,e.max_binop_len),n=t.length;n>0;){if(e.binary_ops.hasOwnProperty(t)&&(!e.isIdentifierStart(this.code)||this.index+t.length<this.expr.length&&!e.isIdentifierPart(this.expr.charCodeAt(this.index+t.length))))return this.index+=n,t;t=t.substr(0,--n)}return!1}},{key:"gobbleBinaryExpression",value:function(){var t,n,r,i,a,o,s,c,u,l;if(!(o=this.gobbleToken())||!(n=this.gobbleBinaryOp()))return o;for(a={value:n,prec:e.binaryPrecedence(n),right_a:e.right_associative.has(n)},(s=this.gobbleToken())||this.throwError("Expected expression after "+n),i=[o,a,s];n=this.gobbleBinaryOp();){if(0===(r=e.binaryPrecedence(n))){this.index-=n.length;break}for(a={value:n,prec:r,right_a:e.right_associative.has(n)},u=n;i.length>2&&(l=i[i.length-2],a.right_a&&l.right_a?r>l.prec:r<=l.prec);)s=i.pop(),n=i.pop().value,o=i.pop(),t={type:e.BINARY_EXP,operator:n,left:o,right:s},i.push(t);(t=this.gobbleToken())||this.throwError("Expected expression after "+u),i.push(a,t)}for(c=i.length-1,t=i[c];c>1;)t={type:e.BINARY_EXP,operator:i[c-1].value,left:i[c-2],right:t},c-=2;return t}},{key:"gobbleToken",value:function(){var t,n,r,i;if(this.gobbleSpaces(),i=this.searchHook("gobble-token"))return this.runHook("after-token",i);if(t=this.code,e.isDecimalDigit(t)||t===e.PERIOD_CODE)return this.gobbleNumericLiteral();if(t===e.SQUOTE_CODE||t===e.DQUOTE_CODE)i=this.gobbleStringLiteral();else if(t===e.OBRACK_CODE)i=this.gobbleArray();else{for(r=(n=this.expr.substr(this.index,e.max_unop_len)).length;r>0;){if(e.unary_ops.hasOwnProperty(n)&&(!e.isIdentifierStart(this.code)||this.index+n.length<this.expr.length&&!e.isIdentifierPart(this.expr.charCodeAt(this.index+n.length)))){this.index+=r;var a=this.gobbleToken();return a||this.throwError("missing unaryOp argument"),this.runHook("after-token",{type:e.UNARY_EXP,operator:n,argument:a,prefix:!0})}n=n.substr(0,--r)}e.isIdentifierStart(t)?(i=this.gobbleIdentifier(),e.literals.hasOwnProperty(i.name)?i={type:e.LITERAL,value:e.literals[i.name],raw:i.name}:i.name===e.this_str&&(i={type:e.THIS_EXP})):t===e.OPAREN_CODE&&(i=this.gobbleGroup())}return i?(i=this.gobbleTokenProperty(i),this.runHook("after-token",i)):this.runHook("after-token",!1)}},{key:"gobbleTokenProperty",value:function(t){this.gobbleSpaces();for(var n=this.code;n===e.PERIOD_CODE||n===e.OBRACK_CODE||n===e.OPAREN_CODE||n===e.QUMARK_CODE;){var r=void 0;if(n===e.QUMARK_CODE){if(this.expr.charCodeAt(this.index+1)!==e.PERIOD_CODE)break;r=!0,this.index+=2,this.gobbleSpaces(),n=this.code}this.index++,n===e.OBRACK_CODE?((t={type:e.MEMBER_EXP,computed:!0,object:t,property:this.gobbleExpression()}).property||this.throwError('Unexpected "'+this.char+'"'),this.gobbleSpaces(),(n=this.code)!==e.CBRACK_CODE&&this.throwError("Unclosed ["),this.index++):n===e.OPAREN_CODE?t={type:e.CALL_EXP,arguments:this.gobbleArguments(e.CPAREN_CODE),callee:t}:(n===e.PERIOD_CODE||r)&&(r&&this.index--,this.gobbleSpaces(),t={type:e.MEMBER_EXP,computed:!1,object:t,property:this.gobbleIdentifier()}),r&&(t.optional=!0),this.gobbleSpaces(),n=this.code}return t}},{key:"gobbleNumericLiteral",value:function(){for(var t,n,r="";e.isDecimalDigit(this.code);)r+=this.expr.charAt(this.index++);if(this.code===e.PERIOD_CODE)for(r+=this.expr.charAt(this.index++);e.isDecimalDigit(this.code);)r+=this.expr.charAt(this.index++);if("e"===(t=this.char)||"E"===t){for(r+=this.expr.charAt(this.index++),("+"===(t=this.char)||"-"===t)&&(r+=this.expr.charAt(this.index++));e.isDecimalDigit(this.code);)r+=this.expr.charAt(this.index++);e.isDecimalDigit(this.expr.charCodeAt(this.index-1))||this.throwError("Expected exponent ("+r+this.char+")")}return n=this.code,e.isIdentifierStart(n)?this.throwError("Variable names cannot start with a number ("+r+this.char+")"):(n===e.PERIOD_CODE||1===r.length&&r.charCodeAt(0)===e.PERIOD_CODE)&&this.throwError("Unexpected period"),{type:e.LITERAL,value:parseFloat(r),raw:r}}},{key:"gobbleStringLiteral",value:function(){for(var t="",n=this.index,r=this.expr.charAt(this.index++),i=!1;this.index<this.expr.length;){var a=this.expr.charAt(this.index++);if(a===r){i=!0;break}if("\\"===a)switch(a=this.expr.charAt(this.index++)){case"n":t+="\n";break;case"r":t+="\r";break;case"t":t+=" ";break;case"b":t+="\b";break;case"f":t+="\f";break;case"v":t+="\v";break;default:t+=a}else t+=a}return i||this.throwError('Unclosed quote after "'+t+'"'),{type:e.LITERAL,value:t,raw:this.expr.substring(n,this.index)}}},{key:"gobbleIdentifier",value:function(){var t=this.code,n=this.index;for(e.isIdentifierStart(t)?this.index++:this.throwError("Unexpected "+this.char);this.index<this.expr.length;)if(t=this.code,e.isIdentifierPart(t))this.index++;else break;return{type:e.IDENTIFIER,name:this.expr.slice(n,this.index)}}},{key:"gobbleArguments",value:function(t){for(var n=[],r=!1,i=0;this.index<this.expr.length;){this.gobbleSpaces();var a=this.code;if(a===t){r=!0,this.index++,t===e.CPAREN_CODE&&i&&i>=n.length&&this.throwError("Unexpected token "+String.fromCharCode(t));break}if(a===e.COMMA_CODE){if(this.index++,++i!==n.length){if(t===e.CPAREN_CODE)this.throwError("Unexpected token ,");else if(t===e.CBRACK_CODE)for(var o=n.length;o<i;o++)n.push(null)}}else if(n.length!==i&&0!==i)this.throwError("Expected comma");else{var s=this.gobbleExpression();s&&s.type!==e.COMPOUND||this.throwError("Expected comma"),n.push(s)}}return r||this.throwError("Expected "+String.fromCharCode(t)),n}},{key:"gobbleGroup",value:function(){this.index++;var t=this.gobbleExpressions(e.CPAREN_CODE);if(this.code===e.CPAREN_CODE)return(this.index++,1===t.length)?t[0]:!!t.length&&{type:e.SEQUENCE_EXP,expressions:t};this.throwError("Unclosed (")}},{key:"gobbleArray",value:function(){return this.index++,{type:e.ARRAY_EXP,elements:this.gobbleArguments(e.CBRACK_CODE)}}}],[{key:"version",get:function(){return"1.4.0"}},{key:"toString",value:function(){return"JavaScript Expression Parser (JSEP) v"+e.version}},{key:"addUnaryOp",value:function(t){return e.max_unop_len=Math.max(t.length,e.max_unop_len),e.unary_ops[t]=1,e}},{key:"addBinaryOp",value:function(t,n,r){return e.max_binop_len=Math.max(t.length,e.max_binop_len),e.binary_ops[t]=n,r?e.right_associative.add(t):e.right_associative.delete(t),e}},{key:"addIdentifierChar",value:function(t){return e.additional_identifier_chars.add(t),e}},{key:"addLiteral",value:function(t,n){return e.literals[t]=n,e}},{key:"removeUnaryOp",value:function(t){return delete e.unary_ops[t],t.length===e.max_unop_len&&(e.max_unop_len=e.getMaxKeyLen(e.unary_ops)),e}},{key:"removeAllUnaryOps",value:function(){return e.unary_ops={},e.max_unop_len=0,e}},{key:"removeIdentifierChar",value:function(t){return e.additional_identifier_chars.delete(t),e}},{key:"removeBinaryOp",value:function(t){return delete e.binary_ops[t],t.length===e.max_binop_len&&(e.max_binop_len=e.getMaxKeyLen(e.binary_ops)),e.right_associative.delete(t),e}},{key:"removeAllBinaryOps",value:function(){return e.binary_ops={},e.max_binop_len=0,e}},{key:"removeLiteral",value:function(t){return delete e.literals[t],e}},{key:"removeAllLiterals",value:function(){return e.literals={},e}},{key:"parse",value:function(t){return new e(t).parse()}},{key:"getMaxKeyLen",value:function(e){var t,n;return(t=Math).max.apply(t,[0].concat(function(e){if(Array.isArray(e))return r(e)}(n=Object.keys(e).map(function(e){return e.length}))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return r(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}}(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))}},{key:"isDecimalDigit",value:function(e){return e>=48&&e<=57}},{key:"binaryPrecedence",value:function(t){return e.binary_ops[t]||0}},{key:"isIdentifierStart",value:function(t){return t>=65&&t<=90||t>=97&&t<=122||t>=128&&!e.binary_ops[String.fromCharCode(t)]||e.additional_identifier_chars.has(String.fromCharCode(t))}},{key:"isIdentifierPart",value:function(t){return e.isIdentifierStart(t)||e.isDecimalDigit(t)}}]),e}();Object.assign(u,{hooks:new s,plugins:new c(u),COMPOUND:"Compound",SEQUENCE_EXP:"SequenceExpression",IDENTIFIER:"Identifier",MEMBER_EXP:"MemberExpression",LITERAL:"Literal",THIS_EXP:"ThisExpression",CALL_EXP:"CallExpression",UNARY_EXP:"UnaryExpression",BINARY_EXP:"BinaryExpression",ARRAY_EXP:"ArrayExpression",TAB_CODE:9,LF_CODE:10,CR_CODE:13,SPACE_CODE:32,PERIOD_CODE:46,COMMA_CODE:44,SQUOTE_CODE:39,DQUOTE_CODE:34,OPAREN_CODE:40,CPAREN_CODE:41,OBRACK_CODE:91,CBRACK_CODE:93,QUMARK_CODE:63,SEMCOL_CODE:59,COLON_CODE:58,unary_ops:{"-":1,"!":1,"~":1,"+":1},binary_ops:{"||":1,"??":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":10,"/":10,"%":10,"**":11},right_associative:new Set(["**"]),additional_identifier_chars:new Set(["$","_"]),literals:{true:!0,false:!1,null:null},this_str:"this"}),u.max_unop_len=u.getMaxKeyLen(u.unary_ops),u.max_binop_len=u.getMaxKeyLen(u.binary_ops);var l=function(e){return new u(e).parse()},f=Object.getOwnPropertyNames(function e(){i(this,e)});Object.getOwnPropertyNames(u).filter(function(e){return!f.includes(e)&&void 0===l[e]}).forEach(function(e){l[e]=u[e]}),l.Jsep=u,l.plugins.register({name:"ternary",init:function(e){e.hooks.add("after-expression",function(t){if(t.node&&this.code===e.QUMARK_CODE){this.index++;var n=t.node,r=this.gobbleExpression();if(r||this.throwError("Expected expression"),this.gobbleSpaces(),this.code===e.COLON_CODE){this.index++;var i=this.gobbleExpression();if(i||this.throwError("Expected expression"),t.node={type:"ConditionalExpression",test:n,consequent:r,alternate:i},n.operator&&e.binary_ops[n.operator]<=.9){for(var a=n;a.right.operator&&e.binary_ops[a.right.operator]<=.9;)a=a.right;t.node.test=a.right,a.right=t.node,t.node=n}}else this.throwError("Expected :")}})}});var h="ArrowFunctionExpression";function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}let y={Array,Boolean,Symbol,Infinity,NaN,Math,Number,BigInt,String,RegExp,JSON,isFinite,isNaN,parseFloat,parseInt,decodeURI,encodeURI,encodeURIComponent,Object:{__proto__:void 0,assign:Object.assign.bind(null),fromEntries:Object.fromEntries.bind(null),hasOwn:Object.hasOwn.bind(null),keys:Object.keys.bind(null),is:Object.is.bind(null),values:Object.values.bind(null)}};function v(e,t={}){return function(e,t={},n){if("string"!=typeof e&&("object"!=typeof e||!e||!("type"in e)))throw`Unknown expression type ${e}. Expressions must either be a string or pre-compiled string.`;null==t&&(t={});let r=function(e){var t=e,n=y;let r={thisObj:void 0,variables:{...t},globals:{...n},addVariables(e){return this.variables={...this.variables,...e},this}};return r.addVariables.bind(r),r}(t),i=b("string"==typeof e?l(e):e,r);if(n(i))return i;throw{type:"Invalid result",message:"string"==typeof e?`The expression ${e} did not produce a valid result`:"The expression did not produce a valid result"}}(e,t,g)}function g(e){return"boolean"==typeof e}function b(e,t){switch(e.type){case"UnaryExpression":var n,r,i,a,o,s,c,u,l=e,f=t;let h=b(l.argument,f);switch(l.operator){case"+":return+h;case"-":return-h;case"~":return~h;case"!":return!h;default:throw`Expression evaluator does not support operator '${l.operator}''`}case"BinaryExpression":var d=e,p=t;let y=b(d.left,p),v=b(d.right,p);switch(d.operator){case"+":return y+v;case"-":return y-v;case"*":return y*v;case"/":return y/v;case"%":return y%v;case"**":return y**v;case"==":return y==v;case"===":return y===v;case"!=":return y!=v;case"!==":return y!==v;case">":return y>v;case">=":return y>=v;case"<":return y<v;case"<=":return y<=v;case"in":return y in v;case"&&":return y&&v;case"||":return y||v;case"??":return y??v;default:throw`Expression evaluator does not support operator '${d.operator}' operator`}case"ConditionalExpression":return n=e,r=t,b(n.test,r)?b(n.consequent,r):b(n.alternate,r);case"CallExpression":var g=e,O=t;let S=g.arguments?.map(w(O)),k=b(g.callee,O);if(k){if("function"!=typeof k)throw`${x(g.callee)} is not a function`}else throw`No function named ${x(g.callee)} is defined in this context`;return k(...S);case"ArrowFunctionExpression":var A=e,j=t;let C=A.params?.map(e=>{if("Identifier"===e.type)return e.name;throw`Cannot handle parameter of type ${e.type}`})??[];return(function(...e){if(e.length<C.length)throw`Required argument(s) ${C.slice(e.length,-1).join(", ")} were not provided`;let t=Object.fromEntries(C.reduce((t,n,r)=>{let i=e[r];return function e(t){if("string"==typeof t||"number"==typeof t||"boolean"==typeof t||"function"==typeof t||null===t||t instanceof RegExp)return!0;if("object"==typeof t){for(let n of Object.keys(t))if(!e(t[n]))return!1;return!0}if(Array.isArray(t)){for(let n of t)if(!e(n))break}return!1}(i)&&t.push([n,i]),t},[]));return b(A.body,j.addVariables(t))}).bind(j.thisObj??null);case"MemberExpression":return function(e,t){let n,r=b(e.object,t);if(void 0===r)switch(e.object.type){case"Identifier":{let n=m(e.object,t);throw ReferenceError(`ReferenceError: ${n} is not defined`)}case"MemberExpression":{let n=m(e.property,t);throw TypeError(`TypeError: cannot read properties of undefined (reading '${n}')`)}default:throw`VisitMemberExpression does not support operator '${e.object.type}' type`}let i=r;if("string"==typeof r)i=String.prototype;else if("number"==typeof r)i=Number.prototype;else if("function"==typeof r);else if("object"!=typeof r)throw`VisitMemberExpression does not support member access on type ${typeof r}`;switch(t.thisObj=i,e.property.type){case"Identifier":case"MemberExpression":n=b(e.property,t);break;default:{let i=b(e.property,t);if(void 0===i)throw{type:"Illegal property access",message:"No property was supplied to the property access"};E(i),n=r[i]}}return"function"==typeof n?n.bind(r):n}(e,t);case"ArrayExpression":return i=e,a=t,i.elements?.map(w(a));case"SequenceExpression":var P=e,D=t;let T=P.expressions.map(w(D));return T[T.length-1];case"NewExpression":var R=e,I=t;if(R.callee&&"Identifier"===R.callee.type){let e=R.arguments?.map(w(I));switch(R.callee.name){case"Date":return new Date(...e);case"RegExp":return new RegExp(...e);default:throw`Cannot instantiate object of type ${R.callee.name}`}}if(R.callee)throw"new must be called with either Date or RegExp";throw'Could not handle "new" without a specified class';case"Literal":return s=0,E((o=e).value),o.value;case"Identifier":var N=e,L=t;E(N.name);let B=L.thisObj;if(B&&("object"==typeof B||"function"==typeof B)&&N.name in B){let e=B[N.name];return E(e),e}if(L.variables&&N.name in L.variables){let e=L.variables[N.name];return E(e),e}return N.name in L.globals?L.globals[N.name]:void 0;case"TemplateLiteral":var Z=e,M=t;let K=Z.expressions?.map(w(M))??[],F=Z.quasis?.map(w(M))??[];return F.filter(e=>!e.tail).map(e=>e.value).join("")+K.join("")+F.filter(e=>e.tail).map(e=>e.value).join("");case"TemplateElement":return u=0,{value:(c=e).cooked,tail:c.tail};default:throw`Expression evaluator does not support expression of type '${e.type}'`}}function m(e,t){switch(e.type){case"Literal":return e.value;case"Identifier":return e.name;case"MemberExpression":return m(e.property,t);default:throw`VisitExpressionName does not support expression of type '${e.type}'`}}function w(e){return function(t){return null===t?null:b(t,e)}}function E(e){if("__proto__"===e||"prototype"===e||"constructor"===e)throw{type:"Illegal property access",message:`Cannot access the ${e} property of objects`}}function x(e){return e?"MemberExpression"===e.type?e.property?.name:e.name:null}l.plugins.register({name:"arrow",init:function(e){e.addBinaryOp("=>",.1,!0),e.hooks.add("gobble-expression",function(t){if(this.gobbleSpaces(),this.code===e.OPAREN_CODE){var n=this.index;if(this.index++,this.gobbleSpaces(),this.code===e.CPAREN_CODE){this.index++;var r=this.gobbleBinaryOp();if("=>"===r){var i=this.gobbleBinaryExpression();i||this.throwError("Expected expression after "+r),t.node={type:h,params:null,body:i};return}}this.index=n}}),e.hooks.add("after-expression",function(t){!function t(n){n&&(Object.values(n).forEach(function(e){e&&(void 0===e?"undefined":e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)=="object"&&t(e)}),"=>"===n.operator&&(n.type=h,n.params=n.left?[n.left]:null,n.body=n.right,n.params&&n.params[0].type===e.SEQUENCE_EXP&&(n.params=n.params[0].expressions),delete n.left,delete n.right,delete n.operator))}(t.node)})}}),l.plugins.register({name:"new",init:function(e){e.addUnaryOp("new"),e.hooks.add("after-token",function(t){var n=t.node;if(n&&"new"===n.operator){n.argument&&[e.CALL_EXP,e.MEMBER_EXP].includes(n.argument.type)||this.throwError("Expected new function()"),t.node=n.argument;for(var r=t.node;r.type===e.MEMBER_EXP||r.type===e.CALL_EXP&&r.callee.type===e.MEMBER_EXP;)r=r.type===e.MEMBER_EXP?r.object:r.callee.object;r.type="NewExpression"}})}}),l.plugins.register({name:"numbers",init:function(e){function t(e){return"x"===e||"X"===e?(this.index+=2,[[48,57],[65,70],[97,102]]):"b"===e||"B"===e?(this.index+=2,[[48,49]]):"o"===e||"O"===e||e>="0"&&e<="7"?(this.index+=e<="7"?1:2,[[48,55]]):null}function n(t){var n=this,r=this.index,i="",a=function(){for(;e.isDecimalDigit(n.code)||95===n.code;)95===n.code?n.index++:i+=n.expr.charAt(n.index++)};a(),this.code===e.PERIOD_CODE&&(i+=this.expr.charAt(this.index++),a());var o=this.char;("e"===o||"E"===o)&&(i+=this.expr.charAt(this.index++),("+"===(o=this.char)||"-"===o)&&(i+=this.expr.charAt(this.index++)),a(),e.isDecimalDigit(this.expr.charCodeAt(this.index-1))||this.throwError("Expected exponent ("+i+this.char+")"));var s=this.code;if(e.isIdentifierStart(s))this.throwError("Variable names cannot start with a number ("+i+this.char+")");else if(s===e.PERIOD_CODE){i.length>1&&this.throwError("Unexpected period ".concat(JSON.stringify({chCode:s,number:i},null,2))),this.index=r;return}t.node={type:e.LITERAL,value:parseFloat(i),raw:this.expr.substring(r,this.index)}}e.hooks.add("gobble-token",function(r){if(48===this.code){var i=this.index,a=this.expr.charAt(this.index+1),o=t.call(this,a);if(o){for(var s,c,u,l="";s=this.code,c=o,95===s||c.some(function(e){var t=function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(n=i.next()).done)&&(a.push(n.value),a.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw r}}return a}}(e,2)||function(e,t){if(e){if("string"==typeof e)return d(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(e,t)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=t[0],r=t[1];return s>=n&&s<=r});)95===this.code?this.index++:l+=this.expr.charAt(this.index++);if(e.isIdentifierPart(this.code)){if(e.isDecimalDigit(this.code)&&e.isDecimalDigit(a.charCodeAt(0))){this.index=i+1,n.call(this,r);return}this.throwError("unexpected char within number")}r.node={type:e.LITERAL,value:parseInt(l,"x"===(u=a)||"X"===u?16:"b"===u||"B"===u?2:8),raw:this.expr.substring(i,this.index)}}}else(e.isDecimalDigit(this.code)||this.code===e.PERIOD_CODE)&&n.call(this,r)})}}),l.plugins.register({name:"regex",init:function(e){e.hooks.add("gobble-token",function(t){if(47===this.code){for(var n=++this.index,r=!1;this.index<this.expr.length;){if(47===this.code&&!r){for(var i=this.expr.slice(n,this.index),a="";++this.index<this.expr.length;){var o=this.code;if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57)a+=this.char;else break}var s=void 0;try{s=new RegExp(i,a)}catch(e){this.throwError(e.message)}return t.node={type:e.LITERAL,value:s,raw:this.expr.slice(n-1,this.index)},t.node=this.gobbleTokenProperty(t.node),t.node}this.code===e.OBRACK_CODE?r=!0:r&&this.code===e.CBRACK_CODE&&(r=!1),this.index+=92===this.code?2:1}this.throwError("Unclosed Regex")}})}}),l.plugins.register({name:"ternary",init:function(e){e.hooks.add("after-expression",function(t){if(t.node&&this.code===e.QUMARK_CODE){this.index++;var n=t.node,r=this.gobbleExpression();if(r||this.throwError("Expected expression"),this.gobbleSpaces(),this.code===e.COLON_CODE){this.index++;var i=this.gobbleExpression();if(i||this.throwError("Expected expression"),t.node={type:"ConditionalExpression",test:n,consequent:r,alternate:i},n.operator&&e.binary_ops[n.operator]<=.9){for(var a=n;a.right.operator&&e.binary_ops[a.right.operator]<=.9;)a=a.right;t.node.test=a.right,a.right=t.node,t.node=n}}else this.throwError("Expected :")}})}}),l.plugins.register({name:"jsepTemplateLiteral",init:function(e){function t(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if(96===this.code){for(var n={type:"TemplateLiteral",quasis:[],expressions:[]},r="",i="",a=!1,o=this.expr.length,s=function(){return n.quasis.push({type:"TemplateElement",value:{raw:i,cooked:r},tail:a})};this.index<o;){var c,u,l=this.expr.charAt(++this.index);if("`"===l)return this.index+=1,a=!0,s(),e.node=n,t&&(e.node=this.gobbleTokenProperty(e.node)),e.node;if("$"===l&&"{"===this.expr.charAt(this.index+1))this.index+=2,s(),i="",r="",(u=n.expressions).push.apply(u,function(e){if(Array.isArray(e))return p(e)}(c=this.gobbleExpressions(125))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(c)||function(e,t){if(e){if("string"==typeof e)return p(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(e,t)}}(c)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),125!==this.code&&this.throwError("unclosed ${");else if("\\"===l)switch(i+=l,l=this.expr.charAt(++this.index),i+=l,l){case"n":r+="\n";break;case"r":r+="\r";break;case"t":r+=" ";break;case"b":r+="\b";break;case"f":r+="\f";break;case"v":r+="\v";break;default:r+=l}else r+=l,i+=l}this.throwError("Unclosed `")}}e.hooks.add("gobble-token",t),e.hooks.add("after-token",function(n){if((n.node.type===e.IDENTIFIER||n.node.type===e.MEMBER_EXP)&&96===this.code)return n.node={type:"TaggedTemplateExpression",tag:n.node,quasi:t.bind(this)(n,!1)},n.node=this.gobbleTokenProperty(n.node),n.node})}}),l.addBinaryOp("in",7),l.addBinaryOp("??",1)},2025:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(5970),i=n(6149),a=n(9753),o=n(2111),s=n(595),c=n(1465),u=n(186),l=n(7830),f=n(6920),h=n(7021),d=e([h,o,i,r,f]);[h,o,i,r,f]=d.then?(await d)():d;let b=(0,h.Co)(),m=(0,h.yw)(),w=(0,i.Gr)(),E=(0,i._z)();function p(e,t,n,o,s){let h={},d=(0,c.G)(),p=Object.entries(o.flags).filter(([,{enabled:e}])=>e).map(([e])=>e);for(let[o,c]of Object.entries(e.slots)){let{config:u}=(0,i.getExtensionSlotConfigFromStore)(t,c.name),y=function(e,t,n,o,s,c,u){let h=t.slots[e].attachedIds,d=function(e,t){let n=e.add||[],r=e.remove||[],i=e.order||[],{extensions:a}=b.getState();return[...t,...n].filter(e=>!r.includes(e)).sort((e,n)=>{let r=g(e,i,a[v(e)]?.order,t),o=g(n,i,a[v(n)]?.order,t);return -1===o?-1:-1===r?1:r-o})}(n,h),p=[];for(let h of d){let{config:d}=(0,i.getExtensionConfigFromStore)(o,e,h),y=(0,i.$w)(n,e,h),g=(0,l.Z)(d,y),b=v(h),m=t.extensions[b];if(m){let e=g?.["Display conditions"]?.privileges??m.privileges??[];if(e&&("string"==typeof e||Array.isArray(e)&&e.length>0)&&(!u?.user||!(0,r.y9)(e,u.user)))continue;let t=g?.["Display conditions"]?.expression??null;if(null!==t)try{if(!(0,a.po)(t,{session:u}))continue}catch(e){console.error(`Error while evaluating expression ${t}`,e);continue}if(m.featureFlag&&!s.includes(m.featureFlag)||window.offlineEnabled&&!(0,f.g)(c,m.online,m.offline))continue;p.push({id:h,name:b,moduleName:m.moduleName,config:g,featureFlag:m.featureFlag,meta:m.meta,online:g?.["Display conditions"]?.online??m.online??!0,offline:g?.["Display conditions"]?.offline??m.offline??!1})}}return p}(o,e,u,n,p,d,s.session);h[o]={moduleName:c.moduleName,assignedExtensions:y}}(0,u.Z)(m.getState().slots,h)||m.setState({slots:h})}function y(){p(b.getState(),w.getState(),E.getState(),o.Jg.getState(),r.Qf.getState())}function v(e){let[t]=e.split("#");return t}function g(e,t,n,r){let i=t.indexOf(e);if(-1!==i)return i;{if(void 0!==n)return 1e3+n;let t=r.indexOf(e);return -1!==t?2e3+t:-1}}b.subscribe(e=>{p(e,w.getState(),E.getState(),o.Jg.getState(),r.Qf.getState())}),w.subscribe(e=>{p(b.getState(),e,E.getState(),o.Jg.getState(),r.Qf.getState())}),E.subscribe(e=>{p(b.getState(),w.getState(),e,o.Jg.getState(),r.Qf.getState())}),o.Jg.subscribe(e=>{p(b.getState(),w.getState(),E.getState(),e,r.Qf.getState())}),r.Qf.subscribe(e=>{p(b.getState(),w.getState(),E.getState(),o.Jg.getState(),e)}),y(),(0,s.XS)(y),t()}catch(e){t(e)}})},6920:function(e,t,n){"use strict";n.a(e,async function(e,r){try{function i(e,t=!0,n=!1){return!!(e?t:n)}n.d(t,{g:()=>i}),r()}catch(e){r(e)}})},5911:function(e,t,n){"use strict";n.a(e,async function(e,r){try{n.d(t,{Co:()=>u.Co,yw:()=>u.yw});var i=n(2025),a=n(2485),o=n(4016),s=n(3789),c=n(2007),u=n(7021),l=e([i,a,o,s,c,u]);[i,a,o,s,c,u]=l.then?(await l)():l,r()}catch(e){r(e)}})},2485:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(7166),i=e([r]);r=(i.then?(await i)():i)[0],(0,r.jk)("left-nav",{slotName:null,basePath:window.spaBase,mode:"normal"}),t()}catch(e){t(e)}})},4016:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(7166),i=n(5911),a=e([i,r]);[i,r]=a.then?(await a)():a,(0,r.jk)("modalRegistry",{modals:{}}),t()}catch(e){t(e)}})},7282:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(2025),i=n(2485),a=n(2007),o=n(7021),s=e([r,i,a,o]);[r,i,a,o]=s.then?(await s)():s,t()}catch(e){t(e)}})},2007:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(7134),i=n(2025),a=n(7021),o=e([r,i,a]);[r,i,a]=o.then?(await o)():o,t()}catch(e){t(e)}})},7021:function(e,t,n){"use strict";n.a(e,async function(e,r){try{n.d(t,{Co:()=>l,yw:()=>f});var i=n(186),a=n(6149),o=n(7166),s=e([o,a]);[o,a]=s.then?(await s)():s;let u=(0,o.jk)("extensionsInternal",{slots:{},extensions:{}}),l=()=>(0,o.zJ)("extensionsInternal",{slots:{},extensions:{}}),f=()=>(0,o.zJ)("extensions",{slots:{}});function c(e){let t=[];for(let n of Object.values(e.extensions))for(let e of n.instances)t.push({slotModuleName:e.slotModuleName,extensionModuleName:n.moduleName,slotName:e.slotName,extensionId:e.id});(0,i.Z)(a.R2.getState().mountedExtensions,t)||a.R2.setState({mountedExtensions:t})}c(u.getState()),u.subscribe(c),r()}catch(e){r(e)}})},3789:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(5911),i=n(7166),a=n(9400),o=e([r,a,i]);[r,a,i]=o.then?(await o)():o,(0,i.jk)("workspaceRegistrations",{workspaces:{}}),(0,i.jk)("workspaceGroups",{workspaceGroups:{}}),t()}catch(e){t(e)}})},595:function(e,t,n){"use strict";n.d(t,{XS:()=>i,dO:()=>a});let r="openmrs:connectivity-changed";function i(e){if(!window.offlineEnabled)return()=>{};let t=t=>e(t.detail);return window.addEventListener(r,t),()=>window.removeEventListener(r,t)}function a(e){window.dispatchEvent(new CustomEvent("openmrs:toast-shown",{detail:e}))}},7005:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(7166),i=e([r]);r=(i.then?(await i)():i)[0],(0,r.jk)("breadcrumbs",[]),t()}catch(e){t(e)}})},97:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(7005),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},5061:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(4559),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},1946:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(7005),i=n(97),a=n(5061),o=n(4559),s=e([r,i,a,o]);[r,i,a,o]=s.then?(await s)():s,t()}catch(e){t(e)}})},4559:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(7134),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},8071:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(7005),i=n(97),a=n(5061),o=n(4559),s=e([r,i,a,o]);[r,i,a,o]=s.then?(await s)():s,t()}catch(e){t(e)}})},4957:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(5970);n(4197),n(8099);var i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},4952:function(e,t,n){"use strict";n.a(e,async function(e,t){try{n(4936),n(6514);var r=n(7041),i=n(3634),a=n(4957);n(8099);var o=e([r,i,a]);[r,i,a]=o.then?(await o)():o,t()}catch(e){t(e)}})},8099:function(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(4197);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class a extends r.ZP{constructor(){super("EsmOffline"),i(this,"syncQueue",void 0),i(this,"dynamicOfflineData",void 0),this.version(4).stores({syncQueue:"++id,userId,type,[userId+type]",dynamicOfflineData:"++id,type,identifier,*users,&[type+identifier]"}),this.syncQueue=this.table("syncQueue"),this.dynamicOfflineData=this.table("dynamicOfflineData")}}},3634:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(7166),i=n(4957),a=e([i,r]);[i,r]=a.then?(await a)():a,(0,r.jk)("offline-patients",{offlinePatientDataSyncState:{},handlers:{}}),t()}catch(e){t(e)}})},2363:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(3634);n(6514);var i=n(7041),a=n(4957);n(8099);var o=e([r,i,a]);[r,i,a]=o.then?(await o)():o,t()}catch(e){t(e)}})},6514:function(e,t,n){"use strict";n(4936)},4936:function(){"use strict";try{self["workbox:window:6.5.4"]&&_()}catch(e){}function e(e,t){return new Promise(function(n){var r=new MessageChannel;r.port1.onmessage=function(e){n(e.data)},e.postMessage(t,[r.port2])})}function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}try{self["workbox:core:6.5.4"]&&_()}catch(e){}var r=function(){var e=this;this.promise=new Promise(function(t,n){e.resolve=t,e.reject=n})};function i(e,t){var n=location.href;return new URL(e,n).href===new URL(t,n).href}var a=function(e,t){this.type=e,Object.assign(this,t)};function o(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}function s(){}var c={type:"SKIP_WAITING"};function u(e,t){if(!t)return e&&e.then?e.then(s):Promise.resolve()}!function(n){function s(e,t){var s,c;return void 0===t&&(t={}),(s=n.call(this)||this).nn={},s.tn=0,s.rn=new r,s.en=new r,s.on=new r,s.un=0,s.an=new Set,s.cn=function(){var e=s.fn,t=e.installing;s.tn>0||!i(t.scriptURL,s.sn.toString())||performance.now()>s.un+6e4?(s.vn=t,e.removeEventListener("updatefound",s.cn)):(s.hn=t,s.an.add(t),s.rn.resolve(t)),++s.tn,t.addEventListener("statechange",s.ln)},s.ln=function(e){var t=s.fn,n=e.target,r=n.state,i=n===s.vn,o={sw:n,isExternal:i,originalEvent:e};!i&&s.mn&&(o.isUpdate=!0),s.dispatchEvent(new a(r,o)),"installed"===r?s.wn=self.setTimeout(function(){"installed"===r&&t.waiting===n&&s.dispatchEvent(new a("waiting",o))},200):"activating"===r&&(clearTimeout(s.wn),i||s.en.resolve(n))},s.dn=function(e){var t=s.hn,n=t!==navigator.serviceWorker.controller;s.dispatchEvent(new a("controlling",{isExternal:n,originalEvent:e,sw:t,isUpdate:s.mn})),n||s.on.resolve(t)},c=function(e){var t=e.data,n=e.ports,r=e.source;return o(s.getSW(),function(){s.an.has(r)&&s.dispatchEvent(new a("message",{data:t,originalEvent:e,ports:n,sw:r}))})},s.gn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Promise.resolve(c.apply(this,e))}catch(e){return Promise.reject(e)}},s.sn=e,s.nn=t,navigator.serviceWorker.addEventListener("message",s.gn),s}s.prototype=Object.create(n.prototype),s.prototype.constructor=s,s.__proto__=n;var l,f=s.prototype;f.register=function(e){var t=(void 0===e?{}:e).immediate,n=void 0!==t&&t;try{var r,s,c,l=this;return r=function(){if(!n&&"complete"!==document.readyState)return u(new Promise(function(e){return window.addEventListener("load",e)}))},s=function(){return l.mn=!!navigator.serviceWorker.controller,l.yn=l.pn(),o(l.bn(),function(e){l.fn=e,l.yn&&(l.hn=l.yn,l.en.resolve(l.yn),l.on.resolve(l.yn),l.yn.addEventListener("statechange",l.ln,{once:!0}));var t=l.fn.waiting;return t&&i(t.scriptURL,l.sn.toString())&&(l.hn=t,Promise.resolve().then(function(){l.dispatchEvent(new a("waiting",{sw:t,wasWaitingBeforeRegister:!0}))}).then(function(){})),l.hn&&(l.rn.resolve(l.hn),l.an.add(l.hn)),l.fn.addEventListener("updatefound",l.cn),navigator.serviceWorker.addEventListener("controllerchange",l.dn),l.fn})},(c=r())&&c.then?c.then(s):s(c)}catch(e){return Promise.reject(e)}},f.update=function(){try{return this.fn?u(this.fn.update()):void 0}catch(e){return Promise.reject(e)}},f.getSW=function(){return void 0!==this.hn?Promise.resolve(this.hn):this.rn.promise},f.messageSW=function(t){try{return o(this.getSW(),function(n){return e(n,t)})}catch(e){return Promise.reject(e)}},f.messageSkipWaiting=function(){this.fn&&this.fn.waiting&&e(this.fn.waiting,c)},f.pn=function(){var e=navigator.serviceWorker.controller;return e&&i(e.scriptURL,this.sn.toString())?e:void 0},f.bn=function(){try{var e=this;return function(e,t){try{var n=e()}catch(e){return t(e)}return n&&n.then?n.then(void 0,t):n}(function(){return o(navigator.serviceWorker.register(e.sn,e.nn),function(t){return e.un=performance.now(),t})},function(e){throw e})}catch(e){return Promise.reject(e)}},t(s.prototype,[{key:"active",get:function(){return this.en.promise}},{key:"controlling",get:function(){return this.on.promise}}]),l&&t(s,l)}(function(){function e(){this.Pn=new Map}var t=e.prototype;return t.addEventListener=function(e,t){this.Sn(e).add(t)},t.removeEventListener=function(e,t){this.Sn(e).delete(t)},t.dispatchEvent=function(e){e.target=this;for(var t,r=function(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return n(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,void 0):void 0}}(e))){r&&(e=r);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(r=e[Symbol.iterator]()).next.bind(r)}(this.Sn(e.type));!(t=r()).done;)(0,t.value)(e)},t.Sn=function(e){return this.Pn.has(e)||this.Pn.set(e,new Set),this.Pn.get(e)},e}())},7041:function(e,t,n){"use strict";n.a(e,async function(e,t){try{n(4197);var r=n(5970),i=n(7166),a=n(8099),o=e([r,i]);[r,i]=o.then?(await o)():o,new a.A,(0,i.jk)("offline-synchronization",{}),t()}catch(e){t(e)}})},8147:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],(0,r.createContext)({moduleName:"",featureName:""}),t()}catch(e){t(e)}})},3637:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(1946),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},9579:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(5911),i=n(810),a=n(7974),o=e([r,i,a]);[r,i,a]=o.then?(await o)():o,t()}catch(e){t(e)}})},6858:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(8147),a=n(9579),o=n(2815),s=e([r,i,a,o]);[r,i,a,o]=s.then?(await s)():s,t()}catch(e){t(e)}})},1460:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(5601),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},1737:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},5611:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(5970),i=n(810),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},7554:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810);n(5631),n(3628);var i=n(5099),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},7974:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(8147),i=n(3637),a=n(9579),o=n(6858),s=n(1460),c=n(1737),u=n(5611),l=n(7554),f=n(5099),h=n(9438),d=n(3382),p=n(291),y=n(3374),v=n(1512),g=n(2913),b=n(6186),m=n(8629),w=n(6245),E=n(819),x=n(5601),O=n(2663),S=n(1528),k=n(2815),A=n(5482),j=n(4021),C=n(6924),P=n(7312),D=n(7283),T=n(7327),R=n(7501),I=n(6094),N=n(7853),L=n(2154),B=n(9835),Z=n(7105),M=n(3118),K=n(8989),F=n(8271),U=n(3903),V=n(4664),$=n(2741),q=n(7152),W=n(5169),z=n(1828),H=n(2163),J=n(2217),X=n(6711),Y=n(6760),G=n(7045),Q=n(6909),ee=e([r,i,a,o,s,c,u,l,f,h,d,p,y,v,g,b,m,w,E,x,O,S,k,A,j,C,P,D,T,R,I,N,L,B,Z,M,K,F,U,V,$,q,W,z,H,J,X,Y,G,Q]);[r,i,a,o,s,c,u,l,f,h,d,p,y,v,g,b,m,w,E,x,O,S,k,A,j,C,P,D,T,R,I,N,L,B,Z,M,K,F,U,V,$,q,W,z,H,J,X,Y,G,Q]=ee.then?(await ee)():ee,t()}catch(e){t(e)}})},5099:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(7987),a=n(5941),o=n(5970),s=n(8147),c=e([r,i,a,o,s]);[r,i,a,o,s]=c.then?(await c)():c,t()}catch(e){t(e)}})},1612:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(3637),i=n(9579),a=n(6858),o=n(5611),s=n(7554),c=n(1460),u=n(1737),l=n(9438),f=n(3382),h=n(3374),d=n(291),p=n(1512),y=n(2913),v=n(6186),g=n(8629),b=n(6245),m=n(819),w=n(5601),E=n(2663),x=n(5482),O=n(6924),S=n(4021),k=n(7312),A=n(7853),j=n(2154),C=n(9835),P=n(7105),D=n(3118),T=n(8989),R=n(8271),I=n(4664),N=n(7152),L=n(6909),B=n(5169),Z=n(1828),M=n(2163),K=n(2217),F=n(3903),U=n(2741),V=n(6094),$=n(7501),q=n(7327),W=n(7045),z=n(6760),H=n(6711),J=e([r,i,a,o,s,c,u,l,f,h,d,p,y,v,g,b,m,w,E,x,O,S,k,A,j,C,P,D,T,R,I,N,L,B,Z,M,K,F,U,V,$,q,W,z,H]);[r,i,a,o,s,c,u,l,f,h,d,p,y,v,g,b,m,w,E,x,O,S,k,A,j,C,P,D,T,R,I,N,L,B,Z,M,K,F,U,V,$,q,W,z,H]=J.then?(await J)():J,t()}catch(e){t(e)}})},9438:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},3382:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},291:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(5911),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},3374:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(4021),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},1512:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(5941),a=n(5970),o=n(2639),s=e([r,i,a,o]);[r,i,a,o]=s.then?(await s)():s,t()}catch(e){t(e)}})},2913:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},6186:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(6149),a=n(8147),o=e([r,i,a]);[r,i,a]=o.then?(await o)():o,t()}catch(e){t(e)}})},8629:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(3374),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},6245:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},819:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},5601:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},2663:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(6280),a=n(5970),o=e([r,i,a]);[r,i,a]=o.then?(await o)():o,[["admissionDecisionConcept","ref"],["admissionEncounterType","ref"],["admissionForm","ref"],["atFacilityVisitType","ref"],["bedAssignmentEncounterType","ref"],["cancelADTRequestEncounterType","ref"],["checkInClerkEncounterRole","ref"],["checkInEncounterType","ref"],["clinicianEncounterRole","ref"],["conceptSourcesForDiagnosisSearch","ref"],["consultEncounterType","ref"],["consultFreeTextCommentsConcept","ref"],["denyAdmissionConcept","ref"],["diagnosisMetadata","ref"],["diagnosisSets","ref"],["dischargeForm","ref"],["dispositionDescriptor","ref"],["dispositions","ref"],["emrApiConceptSource","ref"],["exitFromInpatientEncounterType","ref"],["extraPatientIdentifierTypes","ref"],["fullPrivilegeLevel","ref"],["highPrivilegeLevel","ref"],["identifierTypesToSearch","ref"],["inpatientNoteEncounterType","ref"],["lastViewedPatientSizeLimit","ref"],["metadataSourceName","ref"],["motherChildRelationshipType","ref"],["narrowerThanConceptMapType","ref"],["nonDiagnosisConceptSets","ref"],["orderingProviderEncounterRole","ref"],["patientDiedConcept","ref"],["personImageDirectory","ref"],["primaryIdentifierType","ref"],["sameAsConceptMapType","ref"],["suppressedDiagnosisConcepts","ref"],["supportsAdmissionLocationTag","(uuid,display,name,links)"],["supportsLoginLocationTag","(uuid,display,name,links)"],["supportsTransferLocationTag","(uuid,display,name,links)"],["supportsVisitsLocationTag","(uuid,display,name,links)"],["telephoneAttributeType","ref"],["testPatientPersonAttributeType","ref"],["transferForm","ref"],["transferRequestEncounterType","ref"],["transferWithinHospitalEncounterType","ref"],["unknownCauseOfDeathConcept","ref"],["unknownLocation","ref"],["unknownPatientPersonAttributeType","ref"],["unknownProvider","ref"],["visitAssignmentHandlerAdjustEncounterTimeOfDayIfNecessary","ref"],["visitExpireHours","ref"],["visitNoteEncounterType","ref"]].map(([e,t])=>`${e}:${t}`).join(","),t()}catch(e){t(e)}})},1528:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(5911),i=n(5169),a=e([i,r]);[i,r]=a.then?(await a)():a,(0,i.NV)((0,r.Co)()),t()}catch(e){t(e)}})},2815:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(5911),a=n(8147),o=n(3374),s=e([r,i,a,o]);[r,i,a,o]=s.then?(await s)():s,t()}catch(e){t(e)}})},5482:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(3374),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},4021:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(5911),i=n(5169),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},6924:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(5911),i=n(5169),a=e([i,r]);[i,r]=a.then?(await a)():a,(0,i.NV)((0,r.yw)()),t()}catch(e){t(e)}})},7312:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(5169),i=n(2111),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},7327:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(6094),i=n(6711),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},7501:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(6094),i=n(6760),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},6094:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(5970),i=n(7045),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},7283:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},7853:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},2154:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(5911),a=n(8147),o=e([r,i,a]);[r,i,a]=o.then?(await o)():o,t()}catch(e){t(e)}})},9835:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(5911),i=n(5169),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},7105:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(2639),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},3118:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},8989:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},6711:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(6760),a=n(7045),o=e([r,i,a]);[r,i,a]=o.then?(await o)():o,t()}catch(e){t(e)}})},6760:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(5970),i=n(810),a=n(2666),o=n(7045),s=e([r,i,a,o]);[r,i,a,o]=s.then?(await s)():s,t()}catch(e){t(e)}})},7045:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(5970),i=n(810),a=n(5941),o=n(6280),s=e([r,i,a,o]);[r,i,a,o]=s.then?(await s)():s,t()}catch(e){t(e)}})},8271:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(5941),a=n(5970),o=n(9438),s=e([r,i,a,o]);[r,i,a,o]=s.then?(await s)():s,t()}catch(e){t(e)}})},3903:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},4664:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(5941),a=n(2639),o=e([r,i,a]);[r,i,a]=o.then?(await o)():o,t()}catch(e){t(e)}})},2741:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(5941),a=n(5970),o=e([r,i,a]);[r,i,a]=o.then?(await o)():o,t()}catch(e){t(e)}})},7152:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(7974),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},6909:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(5970),i=n(810),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},5169:function(e,t,n){"use strict";n.a(e,async function(e,r){try{n.d(t,{NV:()=>s});var i=n(7166),a=n(810),o=e([i,a]);function s(e){return function(t){let[n,r]=(0,a.useState)(e.getState());(0,a.useEffect)(()=>e.subscribe(e=>r(e)),[]);let i=(0,a.useMemo)(()=>t?function(e,t){"function"==typeof t&&(t=t(e));let n={};for(let[r,i]of Object.entries(t)){let t=function(...t){e.setState(e=>i(e,...t))};n[r]=t}return n}(e,t):{},[t]);return{...n,...i}}}[i,a]=o.then?(await o)():o,r()}catch(e){r(e)}})},1828:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(5941),a=n(1338),o=n(2886),s=n(5970),c=n(2639),u=n(2163),l=e([r,i,s,c,u,a]);[r,i,s,c,u,a]=l.then?(await l)():l,a.default.extend(o),t()}catch(e){t(e)}})},2163:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(2639),a=n(5169),o=e([r,i,a]);[r,i,a]=o.then?(await o)():o,t()}catch(e){t(e)}})},2217:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(2639),i=n(810),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},7166:function(e,t,n){"use strict";n.a(e,async function(e,r){try{n.d(t,{jk:()=>i.jk,zJ:()=>i.zJ});var i=n(3652),a=e([i]);i=(a.then?(await a)():a)[0],r()}catch(e){r(e)}})},4396:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(3652),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},3652:function(e,t,n){"use strict";n.a(e,async function(e,r){try{n.d(t,{jk:()=>a,zJ:()=>o});var i=n(1844);let e={};function a(t,n){let r=e[t];if(r)return r.active?console.error(`Attempted to override the existing store ${t}. Make sure that stores are only created once.`):r.value.setState(n,!0),r.active=!0,r.value;{let r=(0,i.M)()(()=>n);return e[t]={value:r,active:!0},r}}function o(t,n){let r=e[t];if(!r){let r=(0,i.M)()(()=>n??{});return e[t]={value:r,active:!1},r}return r.value}setTimeout(()=>{window&&"development"===window.spaEnv&&(window.stores=e)},1e3),r()}catch(e){r(e)}})},9400:function(e,t,n){"use strict";n.a(e,async function(e,t){try{n(648);var r=n(2021),i=e([r]);((r=(i.then?(await i)():i)[0]).default.default||r.default).on("initialized",function(){window.i18next.loadNamespaces(["core"])}),t()}catch(e){t(e)}})},3305:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(9400),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},648:function(){},1465:function(e,t,n){"use strict";function r(e){return!window.offlineEnabled||(e??navigator.onLine)}n.d(t,{G:()=>r})},8431:function(e,t,n){"use strict";n.a(e,async function(e,r){try{n.d(t,{$l:()=>l,BN:()=>s,DY:()=>b,Fs:()=>U,J$:()=>z,JN:()=>k,LI:()=>I,PM:()=>d,UG:()=>H,W6:()=>T,i_:()=>u,ko:()=>et,kw:()=>R,mf:()=>h,o8:()=>f,qC:()=>B,s6:()=>ee,sj:()=>o,u3:()=>M,u_:()=>$,w6:()=>D,xD:()=>en});var i=n(810),a=e([i]);i=(a.then?(await a)():a)[0];let c=()=>{},u=c(),l=Object,f=e=>e===u,h=e=>"function"==typeof e,d=(e,t)=>({...e,...t}),p=e=>h(e.then),y=new WeakMap,v=0,g=e=>{let t,n,r=typeof e,i=e&&e.constructor,a=i==Date;if(l(e)!==e||a||i==RegExp)t=a?e.toJSON():"symbol"==r?e.toString():"string"==r?JSON.stringify(e):""+e;else{if(t=y.get(e))return t;if(t=++v+"~",y.set(e,t),i==Array){for(n=0,t="@";n<e.length;n++)t+=g(e[n])+",";y.set(e,t)}if(i==l){t="#";let r=l.keys(e).sort();for(;!f(n=r.pop());)f(e[n])||(t+=n+":"+g(e[n])+",");y.set(e,t)}}return t},b=new WeakMap,m={},w={},E="undefined",x=typeof window!=E,O=typeof document!=E,S=()=>x&&typeof window.requestAnimationFrame!=E,k=(e,t)=>{let n=b.get(e);return[()=>!f(t)&&e.get(t)||m,r=>{if(!f(t)){let i=e.get(t);t in w||(w[t]=i),n[5](t,d(i,r),i||m)}},n[6],()=>!f(t)&&t in w?w[t]:!f(t)&&e.get(t)||m]},A=!0,[j,C]=x&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[c,c],P={initFocus:e=>(O&&document.addEventListener("visibilitychange",e),j("focus",e),()=>{O&&document.removeEventListener("visibilitychange",e),C("focus",e)}),initReconnect:e=>{let t=()=>{A=!0,e()},n=()=>{A=!1};return j("online",t),j("offline",n),()=>{C("online",t),C("offline",n)}}},D=!i.default.useId,T=!x||"Deno"in window,R=e=>S()?window.requestAnimationFrame(e):setTimeout(e,1),I=T?i.useEffect:i.useLayoutEffect,N="undefined"!=typeof navigator&&navigator.connection,L=!T&&N&&(["slow-2g","2g"].includes(N.effectiveType)||N.saveData),B=e=>{if(h(e))try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?g(e):"",t]},Z=0,M=()=>++Z;var o={__proto__:null,ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:0,MUTATE_EVENT:2,RECONNECT_EVENT:1};async function s(...e){let[t,n,r,i]=e,a=d({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{}),o=a.populateCache,c=a.rollbackOnError,l=a.optimisticData,y=e=>"function"==typeof c?c(e):!1!==c,v=a.throwOnError;if(h(n)){let e=[];for(let r of t.keys())!/^\$(inf|sub)\$/.test(r)&&n(t.get(r)._k)&&e.push(r);return Promise.all(e.map(g))}return g(n);async function g(n){let i,[s]=B(n);if(!s)return;let[c,d]=k(t,s),[g,m,w,E]=b.get(t),x=()=>{let e=g[s];return(h(a.revalidate)?a.revalidate(c().data,n):!1!==a.revalidate)&&(delete w[s],delete E[s],e&&e[0])?e[0](2).then(()=>c().data):c().data};if(e.length<3)return x();let O=r,S=M();m[s]=[S,0];let A=!f(l),j=c(),C=j.data,P=j._c,D=f(P)?C:P;if(A&&(l=h(l)?l(D,C):l,d({data:l,_c:D})),h(O))try{O=O(D)}catch(e){i=e}if(O&&p(O)){if(O=await O.catch(e=>{i=e}),S!==m[s][0]){if(i)throw i;return O}i&&A&&y(i)&&(o=!0,d({data:D,_c:u}))}if(o&&!i)if(h(o)){let e=o(O,D);d({data:e,error:u,_c:u})}else d({data:O,error:u,_c:u});if(m[s][1]=M(),Promise.resolve(x()).then(()=>{d({_c:u})}),i){if(v)throw i;return}return O}}let K=(e,t)=>{for(let n in e)e[n][0]&&e[n][0](t)},F=(e,t)=>{if(!b.has(e)){let n=d(P,t),r={},i=s.bind(u,e),a=c,o={},l=(e,t)=>{let n=o[e]||[];return o[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},f=(t,n,r)=>{e.set(t,n);let i=o[t];if(i)for(let e of i)e(n,r)},h=()=>{if(!b.has(e)&&(b.set(e,[r,{},{},{},i,f,l]),!T)){let t=n.initFocus(setTimeout.bind(u,K.bind(u,r,0))),i=n.initReconnect(setTimeout.bind(u,K.bind(u,r,1)));a=()=>{t&&t(),i&&i(),b.delete(e)}}};return h(),[e,i,h,a]}return[e,b.get(e)[4]]},[U,V]=F(new Map),$=d({onLoadingSlow:c,onSuccess:c,onError:c,onErrorRetry:(e,t,n,r,i)=>{let a=n.errorRetryCount,o=i.retryCount,s=~~((Math.random()+.5)*(1<<(o<8?o:8)))*n.errorRetryInterval;(f(a)||!(o>a))&&setTimeout(r,s,i)},onDiscarded:c,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:L?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:L?5e3:3e3,compare:(e,t)=>g(e)==g(t),isPaused:()=>!1,cache:U,mutate:V,fallback:{}},{isOnline:()=>A,isVisible:()=>{let e=O&&document.visibilityState;return f(e)||"hidden"!==e}}),q=(e,t)=>{let n=d(e,t);if(t){let{use:r,fallback:i}=e,{use:a,fallback:o}=t;r&&a&&(n.use=r.concat(a)),i&&o&&(n.fallback=d(i,o))}return n},W=(0,i.createContext)({}),z=e=>{let{value:t}=e,n=(0,i.useContext)(W),r=h(t),a=(0,i.useMemo)(()=>r?t(n):t,[r,n,t]),o=(0,i.useMemo)(()=>r?a:q(n,a),[r,n,a]),s=a&&a.provider,c=(0,i.useRef)(u);s&&!c.current&&(c.current=F(s(o.cache||U),a));let l=c.current;return l&&(o.cache=l[0],o.mutate=l[1]),I(()=>{if(l)return l[2]&&l[2](),l[3]},[]),(0,i.createElement)(W.Provider,d(e,{value:o}))},H="$inf$",J=x&&window.__SWR_DEVTOOLS_USE__,X=J?window.__SWR_DEVTOOLS_USE__:[],Y=e=>h(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],G=()=>d($,(0,i.useContext)(W)),Q=X.concat(e=>(t,n,r)=>{let i=n&&((...e)=>{let[r]=B(t),[,,,i]=b.get(U);if(r.startsWith(H))return n(...e);let a=i[r];return f(a)?n(...e):(delete i[r],a)});return e(t,i,r)}),ee=e=>function(...t){let n=G(),[r,i,a]=Y(t),o=q(n,a),s=e,{use:c}=o,u=(c||[]).concat(Q);for(let e=u.length;e--;)s=u[e](s);return s(r,i||o.fetcher||null,o)},et=(e,t,n)=>{let r=t[e]||(t[e]=[]);return r.push(n),()=>{let e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}},en=(e,t)=>(...n)=>{let[r,i,a]=Y(n),o=(a.use||[]).concat(t);return e(r,i,{...a,use:o})};J&&(window.__SWR_DEVTOOLS_REACT__=i.default),r()}catch(e){r(e)}})},6280:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(4273),a=n(8431),o=e([r,a]);[r,a]=o.then?(await o)():o;let s=r.default.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;if("rejected"===e.status)throw e.reason;throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}),c={dedupe:!0};a.$l.defineProperty(a.J$,"defaultValue",{value:a.u_});let u=(0,a.s6)((e,t,n)=>{let{cache:o,compare:u,suspense:l,fallbackData:f,revalidateOnMount:h,revalidateIfStale:d,refreshInterval:p,refreshWhenHidden:y,refreshWhenOffline:v,keepPreviousData:g}=n,[b,m,w,E]=a.DY.get(o),[x,O]=(0,a.qC)(e),S=(0,r.useRef)(!1),k=(0,r.useRef)(!1),A=(0,r.useRef)(x),j=(0,r.useRef)(t),C=(0,r.useRef)(n),P=()=>C.current,D=()=>P().isVisible()&&P().isOnline(),[T,R,I,N]=(0,a.JN)(o,x),L=(0,r.useRef)({}).current,B=(0,a.o8)(f)?n.fallback[x]:f,Z=(e,t)=>{for(let n in L)if("data"===n){if(!u(e[n],t[n])&&(!(0,a.o8)(e[n])||!u(z,t[n])))return!1}else if(t[n]!==e[n])return!1;return!0},M=(0,r.useMemo)(()=>{let e=!!x&&!!t&&((0,a.o8)(h)?!P().isPaused()&&!l&&(!!(0,a.o8)(d)||d):h),n=t=>{let n=(0,a.PM)(t);return(delete n._k,e)?{isValidating:!0,isLoading:!0,...n}:n},r=T(),i=N(),o=n(r),s=r===i?o:n(i),c=o;return[()=>{let e=n(T());return Z(e,c)?(c.data=e.data,c.isLoading=e.isLoading,c.isValidating=e.isValidating,c.error=e.error,c):(c=e,e)},()=>s]},[o,x]),K=(0,i.useSyncExternalStore)((0,r.useCallback)(e=>I(x,(t,n)=>{Z(n,t)||e()}),[o,x]),M[0],M[1]),F=!S.current,U=b[x]&&b[x].length>0,V=K.data,$=(0,a.o8)(V)?B:V,q=K.error,W=(0,r.useRef)($),z=g?(0,a.o8)(V)?W.current:V:$,H=(!U||!!(0,a.o8)(q))&&(F&&!(0,a.o8)(h)?h:!P().isPaused()&&(l?!(0,a.o8)($)&&d:(0,a.o8)($)||d)),J=!!(x&&t&&F&&H),X=(0,a.o8)(K.isValidating)?J:K.isValidating,Y=(0,a.o8)(K.isLoading)?J:K.isLoading,G=(0,r.useCallback)(async e=>{let t,r,i=j.current;if(!x||!i||k.current||P().isPaused())return!1;let o=!0,s=e||{},c=!w[x]||!s.dedupe,l=()=>a.w6?!k.current&&x===A.current&&S.current:x===A.current,f={isValidating:!1,isLoading:!1},h=()=>{R(f)},d=()=>{let e=w[x];e&&e[1]===r&&delete w[x]},p={isValidating:!0};(0,a.o8)(T().data)&&(p.isLoading=!0);try{if(c&&(R(p),n.loadingTimeout&&(0,a.o8)(T().data)&&setTimeout(()=>{o&&l()&&P().onLoadingSlow(x,n)},n.loadingTimeout),w[x]=[i(O),(0,a.u3)()]),[t,r]=w[x],t=await t,c&&setTimeout(d,n.dedupingInterval),!w[x]||w[x][1]!==r)return c&&l()&&P().onDiscarded(x),!1;f.error=a.i_;let e=m[x];if(!(0,a.o8)(e)&&(r<=e[0]||r<=e[1]||0===e[1]))return h(),c&&l()&&P().onDiscarded(x),!1;let s=T().data;f.data=u(s,t)?s:t,c&&l()&&P().onSuccess(t,x,n)}catch(n){d();let e=P(),{shouldRetryOnError:t}=e;!e.isPaused()&&(f.error=n,c&&l()&&(e.onError(n,x,e),(!0===t||(0,a.mf)(t)&&t(n))&&(!P().revalidateOnFocus||!P().revalidateOnReconnect||D())&&e.onErrorRetry(n,x,e,e=>{let t=b[x];t&&t[0]&&t[0](a.sj.ERROR_REVALIDATE_EVENT,e)},{retryCount:(s.retryCount||0)+1,dedupe:!0})))}return o=!1,h(),!0},[x,o]),Q=(0,r.useCallback)((...e)=>(0,a.BN)(o,A.current,...e),[]);if((0,a.LI)(()=>{j.current=t,C.current=n,(0,a.o8)(V)||(W.current=V)}),(0,a.LI)(()=>{if(!x)return;let e=G.bind(a.i_,c),t=0,n=(0,a.ko)(x,b,(n,r={})=>{if(n==a.sj.FOCUS_EVENT){let n=Date.now();P().revalidateOnFocus&&n>t&&D()&&(t=n+P().focusThrottleInterval,e())}else if(n==a.sj.RECONNECT_EVENT)P().revalidateOnReconnect&&D()&&e();else if(n==a.sj.MUTATE_EVENT)return G();else if(n==a.sj.ERROR_REVALIDATE_EVENT)return G(r)});return k.current=!1,A.current=x,S.current=!0,R({_k:O}),H&&((0,a.o8)($)||a.W6?e():(0,a.kw)(e)),()=>{k.current=!0,n()}},[x]),(0,a.LI)(()=>{let e;function t(){let t=(0,a.mf)(p)?p(T().data):p;t&&-1!==e&&(e=setTimeout(n,t))}function n(){!T().error&&(y||P().isVisible())&&(v||P().isOnline())?G(c).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[p,y,v,x]),(0,r.useDebugValue)(z),l&&(0,a.o8)($)&&x){if(!a.w6&&a.W6)throw Error("Fallback data is required when using suspense in SSR.");j.current=t,C.current=n,k.current=!1;let e=E[x];if(!(0,a.o8)(e)){let t=Q(e);s(t)}if((0,a.o8)(q)){let e=G(c);(0,a.o8)(z)||(e.status="fulfilled",e.value=!0),s(e)}else throw q}return{mutate:Q,get data(){return L.data=!0,z},get error(){return L.error=!0,q},get isValidating(){return L.isValidating=!0,X},get isLoading(){return L.isLoading=!0,Y}}});(0,a.xD)(u,e=>(t,n,r)=>(r.revalidateOnFocus=!1,r.revalidateIfStale=!1,r.revalidateOnReconnect=!1,e(t,n,r))),t()}catch(e){t(e)}})},2666:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(4273),a=n(8431),o=e([r,a]);[r,a]=o.then?(await o)():o;let s=r.default.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;if("rejected"===e.status)throw e.reason;throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}),c={dedupe:!0};a.$l.defineProperty(a.J$,"defaultValue",{value:a.u_});let u=(0,a.s6)((e,t,n)=>{let{cache:o,compare:u,suspense:l,fallbackData:f,revalidateOnMount:h,revalidateIfStale:d,refreshInterval:p,refreshWhenHidden:y,refreshWhenOffline:v,keepPreviousData:g}=n,[b,m,w,E]=a.DY.get(o),[x,O]=(0,a.qC)(e),S=(0,r.useRef)(!1),k=(0,r.useRef)(!1),A=(0,r.useRef)(x),j=(0,r.useRef)(t),C=(0,r.useRef)(n),P=()=>C.current,D=()=>P().isVisible()&&P().isOnline(),[T,R,I,N]=(0,a.JN)(o,x),L=(0,r.useRef)({}).current,B=(0,a.o8)(f)?n.fallback[x]:f,Z=(e,t)=>{for(let n in L)if("data"===n){if(!u(e[n],t[n])&&(!(0,a.o8)(e[n])||!u(z,t[n])))return!1}else if(t[n]!==e[n])return!1;return!0},M=(0,r.useMemo)(()=>{let e=!!x&&!!t&&((0,a.o8)(h)?!P().isPaused()&&!l&&(!!(0,a.o8)(d)||d):h),n=t=>{let n=(0,a.PM)(t);return(delete n._k,e)?{isValidating:!0,isLoading:!0,...n}:n},r=T(),i=N(),o=n(r),s=r===i?o:n(i),c=o;return[()=>{let e=n(T());return Z(e,c)?(c.data=e.data,c.isLoading=e.isLoading,c.isValidating=e.isValidating,c.error=e.error,c):(c=e,e)},()=>s]},[o,x]),K=(0,i.useSyncExternalStore)((0,r.useCallback)(e=>I(x,(t,n)=>{Z(n,t)||e()}),[o,x]),M[0],M[1]),F=!S.current,U=b[x]&&b[x].length>0,V=K.data,$=(0,a.o8)(V)?B:V,q=K.error,W=(0,r.useRef)($),z=g?(0,a.o8)(V)?W.current:V:$,H=(!U||!!(0,a.o8)(q))&&(F&&!(0,a.o8)(h)?h:!P().isPaused()&&(l?!(0,a.o8)($)&&d:(0,a.o8)($)||d)),J=!!(x&&t&&F&&H),X=(0,a.o8)(K.isValidating)?J:K.isValidating,Y=(0,a.o8)(K.isLoading)?J:K.isLoading,G=(0,r.useCallback)(async e=>{let t,r,i=j.current;if(!x||!i||k.current||P().isPaused())return!1;let o=!0,s=e||{},c=!w[x]||!s.dedupe,l=()=>a.w6?!k.current&&x===A.current&&S.current:x===A.current,f={isValidating:!1,isLoading:!1},h=()=>{R(f)},d=()=>{let e=w[x];e&&e[1]===r&&delete w[x]},p={isValidating:!0};(0,a.o8)(T().data)&&(p.isLoading=!0);try{if(c&&(R(p),n.loadingTimeout&&(0,a.o8)(T().data)&&setTimeout(()=>{o&&l()&&P().onLoadingSlow(x,n)},n.loadingTimeout),w[x]=[i(O),(0,a.u3)()]),[t,r]=w[x],t=await t,c&&setTimeout(d,n.dedupingInterval),!w[x]||w[x][1]!==r)return c&&l()&&P().onDiscarded(x),!1;f.error=a.i_;let e=m[x];if(!(0,a.o8)(e)&&(r<=e[0]||r<=e[1]||0===e[1]))return h(),c&&l()&&P().onDiscarded(x),!1;let s=T().data;f.data=u(s,t)?s:t,c&&l()&&P().onSuccess(t,x,n)}catch(n){d();let e=P(),{shouldRetryOnError:t}=e;!e.isPaused()&&(f.error=n,c&&l()&&(e.onError(n,x,e),(!0===t||(0,a.mf)(t)&&t(n))&&(!P().revalidateOnFocus||!P().revalidateOnReconnect||D())&&e.onErrorRetry(n,x,e,e=>{let t=b[x];t&&t[0]&&t[0](a.sj.ERROR_REVALIDATE_EVENT,e)},{retryCount:(s.retryCount||0)+1,dedupe:!0})))}return o=!1,h(),!0},[x,o]),Q=(0,r.useCallback)((...e)=>(0,a.BN)(o,A.current,...e),[]);if((0,a.LI)(()=>{j.current=t,C.current=n,(0,a.o8)(V)||(W.current=V)}),(0,a.LI)(()=>{if(!x)return;let e=G.bind(a.i_,c),t=0,n=(0,a.ko)(x,b,(n,r={})=>{if(n==a.sj.FOCUS_EVENT){let n=Date.now();P().revalidateOnFocus&&n>t&&D()&&(t=n+P().focusThrottleInterval,e())}else if(n==a.sj.RECONNECT_EVENT)P().revalidateOnReconnect&&D()&&e();else if(n==a.sj.MUTATE_EVENT)return G();else if(n==a.sj.ERROR_REVALIDATE_EVENT)return G(r)});return k.current=!1,A.current=x,S.current=!0,R({_k:O}),H&&((0,a.o8)($)||a.W6?e():(0,a.kw)(e)),()=>{k.current=!0,n()}},[x]),(0,a.LI)(()=>{let e;function t(){let t=(0,a.mf)(p)?p(T().data):p;t&&-1!==e&&(e=setTimeout(n,t))}function n(){!T().error&&(y||P().isVisible())&&(v||P().isOnline())?G(c).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[p,y,v,x]),(0,r.useDebugValue)(z),l&&(0,a.o8)($)&&x){if(!a.w6&&a.W6)throw Error("Fallback data is required when using suspense in SSR.");j.current=t,C.current=n,k.current=!1;let e=E[x];if(!(0,a.o8)(e)){let t=Q(e);s(t)}if((0,a.o8)(q)){let e=G(c);(0,a.o8)(z)||(e.status="fulfilled",e.value=!0),s(e)}else throw q}return{mutate:Q,get data(){return L.data=!0,z},get error(){return L.error=!0,q},get isValidating(){return L.isValidating=!0,X},get isLoading(){return L.isLoading=!0,Y}}}),l=e=>(0,a.qC)(e?e(0,null):null)[0],f=Promise.resolve();(0,a.xD)(u,e=>(t,n,o)=>{let s,c=(0,r.useRef)(!1),{cache:u,initialSize:h=1,revalidateAll:d=!1,persistSize:p=!1,revalidateFirstPage:y=!0,revalidateOnMount:v=!1,parallel:g=!1}=o,[,,,b]=a.DY.get(a.Fs);try{(s=l(t))&&(s=a.UG+s)}catch(e){}let[m,w,E]=(0,a.JN)(u,s),x=(0,r.useCallback)(()=>(0,a.o8)(m()._l)?h:m()._l,[u,s,h]);(0,i.useSyncExternalStore)((0,r.useCallback)(e=>s?E(s,()=>{e()}):()=>{},[u,s]),x,x);let O=(0,r.useCallback)(()=>{let e=m()._l;return(0,a.o8)(e)?h:e},[s,h]),S=(0,r.useRef)(O());(0,a.LI)(()=>{if(!c.current){c.current=!0;return}s&&w({_l:p?S.current:O()})},[s,u]);let k=v&&!c.current,A=e(s,async e=>{let r=m()._i,i=m()._r;w({_r:a.i_});let s=[],c=O(),[l]=(0,a.JN)(u,e),f=l().data,h=[],p=null;for(let e=0;e<c;++e){let[c,l]=(0,a.qC)(t(e,g?null:p));if(!c)break;let[v,m]=(0,a.JN)(u,c),w=v().data,E=d||r||(0,a.o8)(w)||y&&!e&&!(0,a.o8)(f)||k||f&&!(0,a.o8)(f[e])&&!o.compare(f[e],w);if(n&&("function"==typeof i?i(w,l):E)){let t=async()=>{if(c in b){let e=b[c];delete b[c],w=await e}else w=await n(l);m({data:w,_k:l}),s[e]=w};g?h.push(t):await t()}else s[e]=w;g||(p=w)}return g&&await Promise.all(h.map(e=>e())),w({_i:a.i_}),s},o),j=(0,r.useCallback)(function(e,t){let n="boolean"==typeof t?{revalidate:t}:t||{},r=!1!==n.revalidate;return s?(r&&((0,a.o8)(e)?w({_i:!0,_r:n.revalidate}):w({_i:!1,_r:n.revalidate})),arguments.length?A.mutate(e,{...n,revalidate:r}):A.mutate()):f},[s,u]),C=(0,r.useCallback)(e=>{let n;if(!s)return f;let[,r]=(0,a.JN)(u,s);if((0,a.mf)(e)?n=e(O()):"number"==typeof e&&(n=e),"number"!=typeof n)return f;r({_l:n}),S.current=n;let i=[],[o]=(0,a.JN)(u,s),c=null;for(let e=0;e<n;++e){let[n]=(0,a.qC)(t(e,c)),[r]=(0,a.JN)(u,n),s=n?r().data:a.i_;if((0,a.o8)(s))return j(o().data);i.push(s),c=s}return j(i)},[s,u,j,O]);return{size:O(),setSize:C,mutate:j,get data(){return A.data},get error(){return A.error},get isValidating(){return A.isValidating},get isLoading(){return A.isLoading}}}),t()}catch(e){t(e)}})},1844:function(e,t,n){"use strict";n.d(t,{M:()=>i});let r=e=>{let t,n=new Set,r=(e,r)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=r?r:"object"!=typeof i||null===i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>o,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},o=t=e(r,i,a);return a},i=e=>e?r(e):r}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}(()=>{var e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",r="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",i=e=>{e&&e.d<1&&(e.d=1,e.forEach(e=>e.r--),e.forEach(e=>e.r--?e.r++:e()))},a=n=>n.map(n=>{if(null!==n&&"object"==typeof n){if(n[e])return n;if(n.then){var a=[];a.d=0,n.then(e=>{o[t]=e,i(a)},e=>{o[r]=e,i(a)});var o={};return o[e]=e=>e(a),o}}var s={};return s[e]=function(){},s[t]=n,s});n.a=(n,o,s)=>{s&&((c=[]).d=-1);var c,u,l,f,h=new Set,d=n.exports,p=new Promise((e,t)=>{f=t,l=e});p[t]=d,p[e]=e=>{c&&e(c),h.forEach(e),p.catch(function(){})},n.exports=p,o(n=>{u=a(n);var i,o=()=>u.map(e=>{if(e[r])throw e[r];return e[t]}),s=new Promise(t=>{(i=()=>t(o)).r=0;var n=e=>e!==c&&!h.has(e)&&(h.add(e),e&&!e.d&&(i.r++,e.push(i)));u.map(t=>t[e](n))});return i.r?s:o()},e=>(e?f(p[r]=e):l(d),i(c))),c&&c.d<0&&(c.d=0)}})(),n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.rv=()=>"1.3.11",n.ruid="bundler=rspack@1.3.11",n(3184)})();
1
+ (()=>{var e={6799:function(){"use strict";function e(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var t,n,r,i={};try{process.env.CARBON_ENABLE_CSS_CUSTOM_PROPERTIES&&"true"===process.env.CARBON_ENABLE_CSS_CUSTOM_PROPERTIES?i.enableCssCustomProperties=!0:i.enableCssCustomProperties=!1,process.env.CARBON_ENABLE_CSS_GRID&&"true"===process.env.CARBON_ENABLE_CSS_GRID?i.enableCssGrid=!0:i.enableCssGrid=!1,process.env.CARBON_ENABLE_V11_RELEASE?"true"===process.env.CARBON_ENABLE_V11_RELEASE?i.enableV11Release=!0:i.enableV11Release=!1:i.enableV11Release=!0,process.env.CARBON_ENABLE_EXPERIMENTAL_TILE_CONTRAST&&"true"===process.env.CARBON_ENABLE_EXPERIMENTAL_TILE_CONTRAST?i.enableExperimentalTileContrast=!0:i.enableExperimentalTileContrast=!1,process.env.CARBON_ENABLE_V12_TILE_DEFAULT_ICONS&&"true"===process.env.CARBON_ENABLE_V12_TILE_DEFAULT_ICONS?i.enableV12TileDefaultIcons=!0:i.enableV12TileDefaultIcons=!1,process.env.CARBON_ENABLE_V12_TILE_RADIO_ICONS&&"true"===process.env.CARBON_ENABLE_V12_TILE_RADIO_ICONS?i.enableV12TileRadioIcons=!0:i.enableV12TileRadioIcons=!1,process.env.CARBON_ENABLE_V12_OVERFLOWMENU&&"true"===process.env.CARBON_ENABLE_V12_OVERFLOWMENU?i.enableV12Overflowmenu=!0:i.enableV12Overflowmenu=!1,process.env.CARBON_ENABLE_TREEVIEW_CONTROLLABLE&&"true"===process.env.CARBON_ENABLE_TREEVIEW_CONTROLLABLE?i.enableTreeviewControllable=!0:i.enableTreeviewControllable=!1,process.env.CARBON_ENABLE_V12_STRUCTURED_LIST_VISIBLE_ICONS&&"true"===process.env.CARBON_ENABLE_V12_STRUCTURED_LIST_VISIBLE_ICONS?i.enableV12StructuredListVisibleIcons=!0:i.enableV12StructuredListVisibleIcons=!1,process.env.CARBON_ENABLE_EXPERIMENTAL_FOCUS_WRAP_WITHOUT_SENTINELS&&"true"===process.env.CARBON_ENABLE_EXPERIMENTAL_FOCUS_WRAP_WITHOUT_SENTINELS?i.enableExperimentalFocusWrapWithoutSentinels=!0:i.enableExperimentalFocusWrapWithoutSentinels=!1,process.env.CARBON_ENABLE_DIALOG_ELEMENT&&"true"===process.env.CARBON_ENABLE_DIALOG_ELEMENT?i.enableDialogElement=!0:i.enableDialogElement=!1,process.env.CARBON_ENABLE_V12_DYNAMIC_FLOATING_STYLES&&"true"===process.env.CARBON_ENABLE_V12_DYNAMIC_FLOATING_STYLES?i.enableV12DynamicFloatingStyles=!0:i.enableV12DynamicFloatingStyles=!1}catch(e){i.enableCssCustomProperties=!1,i.enableCssGrid=!1,i.enableV11Release=!0,i.enableExperimentalTileContrast=!1,i.enableV12TileDefaultIcons=!1,i.enableV12TileRadioIcons=!1,i.enableV12Overflowmenu=!1,i.enableTreeviewControllable=!1,i.enableV12StructuredListVisibleIcons=!1,i.enableExperimentalFocusWrapWithoutSentinels=!1,i.enableDialogElement=!1,i.enableV12DynamicFloatingStyles=!1}var a=[{name:"enable-css-custom-properties",description:"Describe what the flag does",enabled:i.enableCssCustomProperties},{name:"enable-css-grid",description:"Enable CSS Grid Layout in the Grid and Column React components\n",enabled:i.enableCssGrid},{name:"enable-v11-release",description:"Enable the features and functionality for the v11 Release\n",enabled:i.enableV11Release},{name:"enable-experimental-tile-contrast",description:"Enable the experimental tile improved contrast styles\n",enabled:i.enableExperimentalTileContrast},{name:"enable-v12-tile-default-icons",description:"Enable rendering of default icons in the tile components\n",enabled:i.enableV12TileDefaultIcons},{name:"enable-v12-tile-radio-icons",description:"Enable rendering of radio icons in the RadioTile component\n",enabled:i.enableV12TileRadioIcons},{name:"enable-v12-overflowmenu",description:"Enable the use of the v12 OverflowMenu leveraging the Menu subcomponents\n",enabled:i.enableV12Overflowmenu},{name:"enable-treeview-controllable",description:"Enable the new TreeView controllable API\n",enabled:i.enableTreeviewControllable},{name:"enable-v12-structured-list-visible-icons",description:"Enable rendering of radio icons in the StructuredList component\n",enabled:i.enableV12StructuredListVisibleIcons},{name:"enable-experimental-focus-wrap-without-sentinels",description:"Enable the new focus wrap behavior that doesn't use sentinel nodes\n",enabled:i.enableExperimentalFocusWrapWithoutSentinels},{name:"enable-dialog-element",description:"Enable components to utilize the native dialog element\n",enabled:i.enableDialogElement},{name:"enable-v12-dynamic-floating-styles",description:"Enable dynamic setting of floating styles for components like Popover, Tooltip, etc.\n",enabled:i.enableV12DynamicFloatingStyles}];function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){if(e){if("string"==typeof e)return o(e,t);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}for(var c=(n=function e(t){var n=this,r=e;if(null!=r&&"undefined"!=typeof Symbol&&r[Symbol.hasInstance]?!r[Symbol.hasInstance](this):!(this instanceof r))throw TypeError("Cannot call a class as a function");this.flags=new Map,t&&Object.keys(t).forEach(function(e){n.flags.set(e,t[e])})},r=[{key:"checkForFlag",value:function(e){if(!this.flags.has(e))throw Error("Unable to find a feature flag with the name: `".concat(e,"`"))}},{key:"add",value:function(e,t){if(this.flags.has(e))throw Error("The feature flag: ".concat(e," already exists"));this.flags.set(e,t)}},{key:"enable",value:function(e){this.checkForFlag(e),this.flags.set(e,!0)}},{key:"disable",value:function(e){this.checkForFlag(e),this.flags.set(e,!1)}},{key:"merge",value:function(e){var t=this;Object.keys(e).forEach(function(n){t.flags.set(n,e[n])})}},{key:"mergeWithScope",value:function(e){var t,n=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=s(e))){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw a}}}}(e.flags);try{for(n.s();!(t=n.n()).done;){var r,i=(r=t.value,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,s=[],c=!0,u=!1;try{a=(n=n.call(e)).next,!1;for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}(r,2)||s(r,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=i[0],o=i[1];this.flags.has(a)||this.flags.set(a,o)}}catch(e){n.e(e)}finally{n.f()}}},{key:"enabled",value:function(e){return this.checkForFlag(e),this.flags.get(e)}}],function(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,function(t){var n=function(t,n){if("object"!=(void 0===t?"undefined":e(t))||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,n||"default");if("object"!=(void 0===i?"undefined":e(i)))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"==(void 0===n?"undefined":e(n))?n:n+""}(i.key),i)}}(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n),u=new c(void 0),l=0;l<a.length;l++){var f=a[l];u.add(f.name,f.enabled)}!function(){u.merge.apply(u,arguments)}({"enable-css-custom-properties":!0,"enable-css-grid":!0,"enable-v11-release":!0,"enable-experimental-tile-contrast":!1,"enable-v12-tile-radio-icons":!1,"enable-v12-structured-list-visible-icons":!1,"enable-v12-dynamic-floating-styles":!1})},8807:function(e,t,n){"use strict";n.a(e,async function(e,t){try{n(6799),t()}catch(e){t(e)}})},2886:function(e,t){var n,r;n=this,r=function(){return function(e,t,n){t.prototype.isToday=function(){var e="YYYY-MM-DD",t=n();return this.format(e)===t.format(e)}}},"object"==(t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)?e.exports=r():"function"==typeof define&&define.amd?define(r):(n="undefined"!=typeof globalThis?globalThis:n||self).dayjs_plugin_isToday=r()},4453:function(e,t,n){!function(t){"use strict";var r=n(5128);function i(e){return function(t,n){var r;return(void 0===t?"undefined":(r=t)&&"undefined"!=typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)=="object"&&(n=t,t=null),null==t&&(t=new Date().toString()),n||(n={}),e.call(this,t,n)}}var a=e.exports={generate:i(function(e,t){return new r(e,t)})};t&&(t.fn.geopattern=i(function(e,n){return this.each(function(){var r=t(this).attr("data-title-sha");r&&(n=t.extend({hash:r},n));var i=a.generate(e,n);t(this).css("background-image",i.toDataUrl())})}))}("undefined"!=typeof jQuery?jQuery:null)},3328:function(e){"use strict";e.exports={hex2rgb:function(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(e,t,n,r){return t+t+n+n+r+r});var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null},rgb2hex:function(e){return"#"+["r","g","b"].map(function(t){return("0"+e[t].toString(16)).slice(-2)}).join("")},rgb2hsl:function(e){var t,n,r=e.r,i=e.g,a=e.b,o=Math.max(r/=255,i/=255,a/=255),s=Math.min(r,i,a),c=(o+s)/2;if(o===s)t=n=0;else{var u=o-s;switch(n=c>.5?u/(2-o-s):u/(o+s),o){case r:t=(i-a)/u+6*(i<a);break;case i:t=(a-r)/u+2;break;case a:t=(r-i)/u+4}t/=6}return{h:t,s:n,l:c}},hsl2rgb:function(e){function t(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}var n,r,i,a=e.h,o=e.s,s=e.l;if(0===o)n=r=i=s;else{var c=s<.5?s*(1+o):s+o-s*o,u=2*s-c;n=t(u,c,a+1/3),r=t(u,c,a),i=t(u,c,a-1/3)}return{r:Math.round(255*n),g:Math.round(255*r),b:Math.round(255*i)}},rgb2rgbString:function(e){return"rgb("+[e.r,e.g,e.b].join(",")+")"}}},5128:function(e,t,n){"use strict";var r=n(416),i=n(3328),a=n(7410),o=n(1488),s={baseColor:"#933c3c"},c=["octogons","overlappingCircles","plusSigns","xes","sineWaves","hexagons","overlappingRings","plaid","triangles","squares","concentricCircles","diamonds","tessellation","nestedSquares","mosaicSquares","chevrons"],u="#000";function l(e,t,n){return parseInt(e.substr(t,n||1),16)}function f(e,t,n,r,i){return(parseFloat(e)-t)*(i-r)/(n-t)+r}function h(e){return e%2==0?"#ddd":"#222"}function d(e){return f(e,0,15,.02,.15)}var p=e.exports=function(e,t){return this.opts=r({},s,t),this.hash=t.hash||a(e),this.svg=new o,this.generateBackground(),this.generatePattern(),this};function y(e){return[[e,0,e,3*e],[0,e,3*e,e]]}function v(e){return[0,0,e,e,0,e,0,0].join(",")}function g(e,t,n,r,i){var a=v(r),o=d(i[0]),s=h(i[0]),c={stroke:u,"stroke-opacity":.02,"fill-opacity":o,fill:s};e.polyline(a,c).transform({translate:[t+r,n],scale:[-1,1]}),e.polyline(a,c).transform({translate:[t+r,n+2*r],scale:[1,-1]}),c={stroke:u,"stroke-opacity":.02,"fill-opacity":o=d(i[1]),fill:s=h(i[1])},e.polyline(a,c).transform({translate:[t+r,n+2*r],scale:[-1,-1]}),e.polyline(a,c).transform({translate:[t+r,n],scale:[1,1]})}function b(e,t,n,r,i){var a=d(i),o=h(i),s=v(r),c={stroke:u,"stroke-opacity":.02,"fill-opacity":a,fill:o};e.polyline(s,c).transform({translate:[t,n+r],scale:[1,-1]}),e.polyline(s,c).transform({translate:[t+2*r,n+r],scale:[-1,-1]}),e.polyline(s,c).transform({translate:[t,n+r],scale:[1,1]}),e.polyline(s,c).transform({translate:[t+2*r,n+r],scale:[-1,1]})}p.prototype.toSvg=function(){return this.svg.toString()},p.prototype.toString=function(){return this.toSvg()},p.prototype.toBase64=function(){var e,t=this.toSvg();return"undefined"!=typeof window&&"function"==typeof window.btoa?window.btoa(t):new Buffer(t).toString("base64")},p.prototype.toDataUri=function(){return"data:image/svg+xml;base64,"+this.toBase64()},p.prototype.toDataUrl=function(){return'url("'+this.toDataUri()+'")'},p.prototype.generateBackground=function(){var e,t,n,r;this.opts.color?n=i.hex2rgb(this.opts.color):(t=f(l(this.hash,14,3),0,4095,0,359),r=l(this.hash,17),(e=i.rgb2hsl(i.hex2rgb(this.opts.baseColor))).h=(360*e.h-t+360)%360/360,r%2==0?e.s=Math.min(1,(100*e.s+r)/100):e.s=Math.max(0,(100*e.s-r)/100),n=i.hsl2rgb(e)),this.color=i.rgb2hex(n),this.svg.rect(0,0,"100%","100%",{fill:i.rgb2rgbString(n)})},p.prototype.generatePattern=function(){var e=this.opts.generator;if(e){if(0>c.indexOf(e))throw Error("The generator "+e+" does not exist.")}else e=c[l(this.hash,20)];return this["geo"+e.slice(0,1).toUpperCase()+e.slice(1)]()},p.prototype.geoHexagons=function(){var e,t,n,r,i,a,o,s,c,p=f(l(this.hash,0),0,15,8,60),y=p*Math.sqrt(3),v=2*p,g=(s=p/2,[0,c=Math.sin(60*Math.PI/180)*p,s,0,s+p,0,2*p,c,s+p,2*c,s,2*c,0,c].join(","));for(this.svg.setWidth(3*v+3*p),this.svg.setHeight(6*y),t=0,o=0;o<6;o++)for(a=0;a<6;a++)i=l(this.hash,t),e=a%2==0?o*y:o*y+y/2,n=d(i),r={fill:h(i),"fill-opacity":n,stroke:u,"stroke-opacity":.02},this.svg.polyline(g,r).transform({translate:[a*p*1.5-v/2,e-y/2]}),0===a&&this.svg.polyline(g,r).transform({translate:[6*p*1.5-v/2,e-y/2]}),0===o&&(e=a%2==0?6*y:6*y+y/2,this.svg.polyline(g,r).transform({translate:[a*p*1.5-v/2,e-y/2]})),0===a&&0===o&&this.svg.polyline(g,r).transform({translate:[6*p*1.5-v/2,5*y+y/2]}),t++},p.prototype.geoSineWaves=function(){var e,t,n,r,i,a,o,s=Math.floor(f(l(this.hash,0),0,15,100,400)),c=Math.floor(f(l(this.hash,1),0,15,30,100)),u=Math.floor(f(l(this.hash,2),0,15,3,30));for(this.svg.setWidth(s),this.svg.setHeight(36*u),t=0;t<36;t++)n=d(a=l(this.hash,t)),e=h(a),o=s/4*.7,i={fill:"none",stroke:e,opacity:n,"stroke-width":""+u+"px"},r="M0 "+c+" C "+o+" 0, "+(s/2-o)+" 0, "+s/2+" "+c+" S "+(s-o)+" "+2*c+", "+s+" "+c+" S "+(1.5*s-o)+" 0, "+1.5*s+", "+c,this.svg.path(r,i).transform({translate:[-s/4,u*t-1.5*c]}),this.svg.path(r,i).transform({translate:[-s/4,u*t-1.5*c+36*u]})},p.prototype.geoChevrons=function(){var e,t,n,r,i,a,o,s=f(l(this.hash,0),0,15,30,80),c=f(l(this.hash,0),0,15,30,80),p=(e=.66*c,[[0,0,s/2,c-e,s/2,c,0,e,0,0],[s/2,c-e,s,0,s,e,s/2,c,s/2,c-e]].map(function(e){return e.join(",")}));for(this.svg.setWidth(6*s),this.svg.setHeight(6*c*.66),t=0,o=0;o<6;o++)for(a=0;a<6;a++)n=d(i=l(this.hash,t)),r={stroke:u,"stroke-opacity":.02,fill:h(i),"fill-opacity":n,"stroke-width":1},this.svg.group(r).transform({translate:[a*s,o*c*.66-c/2]}).polyline(p).end(),0===o&&this.svg.group(r).transform({translate:[a*s,6*c*.66-c/2]}).polyline(p).end(),t+=1},p.prototype.geoPlusSigns=function(){var e,t,n,r,i,a,o,s,c=f(l(this.hash,0),0,15,10,25),p=3*c,v=y(c);for(this.svg.setWidth(12*c),this.svg.setHeight(12*c),n=0,s=0;s<6;s++)for(o=0;o<6;o++)r=d(a=l(this.hash,n)),t=h(a),e=+(s%2!=0),i={fill:t,stroke:u,"stroke-opacity":.02,"fill-opacity":r},this.svg.group(i).transform({translate:[o*p-o*c+e*c-c,s*p-s*c-p/2]}).rect(v).end(),0===o&&this.svg.group(i).transform({translate:[4*p-o*c+e*c-c,s*p-s*c-p/2]}).rect(v).end(),0===s&&this.svg.group(i).transform({translate:[o*p-o*c+e*c-c,4*p-s*c-p/2]}).rect(v).end(),0===o&&0===s&&this.svg.group(i).transform({translate:[4*p-o*c+e*c-c,4*p-s*c-p/2]}).rect(v).end(),n++},p.prototype.geoXes=function(){var e,t,n,r,i,a,o,s=f(l(this.hash,0),0,15,10,25),c=y(s),u=3*s*.943;for(this.svg.setWidth(3*u),this.svg.setHeight(3*u),t=0,o=0;o<6;o++)for(a=0;a<6;a++)n=d(i=l(this.hash,t)),e=a%2==0?o*u-.5*u:o*u-.5*u+u/4,r={fill:h(i),opacity:n},this.svg.group(r).transform({translate:[a*u/2-u/2,e-o*u/2],rotate:[45,u/2,u/2]}).rect(c).end(),0===a&&this.svg.group(r).transform({translate:[6*u/2-u/2,e-o*u/2],rotate:[45,u/2,u/2]}).rect(c).end(),0===o&&(e=a%2==0?6*u-u/2:6*u-u/2+u/4,this.svg.group(r).transform({translate:[a*u/2-u/2,e-6*u/2],rotate:[45,u/2,u/2]}).rect(c).end()),5===o&&this.svg.group(r).transform({translate:[a*u/2-u/2,e-11*u/2],rotate:[45,u/2,u/2]}).rect(c).end(),0===a&&0===o&&this.svg.group(r).transform({translate:[6*u/2-u/2,e-6*u/2],rotate:[45,u/2,u/2]}).rect(c).end(),t++},p.prototype.geoOverlappingCircles=function(){var e,t,n,r,i,a,o=f(l(this.hash,0),0,15,25,200)/2;for(this.svg.setWidth(6*o),this.svg.setHeight(6*o),e=0,a=0;a<6;a++)for(i=0;i<6;i++)t=d(r=l(this.hash,e)),n={fill:h(r),opacity:t},this.svg.circle(i*o,a*o,o,n),0===i&&this.svg.circle(6*o,a*o,o,n),0===a&&this.svg.circle(i*o,6*o,o,n),0===i&&0===a&&this.svg.circle(6*o,6*o,o,n),e++},p.prototype.geoOctogons=function(){var e,t,n,r,i,a,o,s=f(l(this.hash,0),0,15,10,60),c=[e=.33*s,0,s-e,0,s,e,s,s-e,s-e,s,e,s,0,s-e,0,e,e,0].join(",");for(this.svg.setWidth(6*s),this.svg.setHeight(6*s),n=0,o=0;o<6;o++)for(a=0;a<6;a++)r=d(i=l(this.hash,n)),t=h(i),this.svg.polyline(c,{fill:t,"fill-opacity":r,stroke:u,"stroke-opacity":.02}).transform({translate:[a*s,o*s]}),n+=1},p.prototype.geoSquares=function(){var e,t,n,r,i,a,o=f(l(this.hash,0),0,15,10,60);for(this.svg.setWidth(6*o),this.svg.setHeight(6*o),t=0,a=0;a<6;a++)for(i=0;i<6;i++)n=d(r=l(this.hash,t)),e=h(r),this.svg.rect(i*o,a*o,o,o,{fill:e,"fill-opacity":n,stroke:u,"stroke-opacity":.02}),t+=1},p.prototype.geoConcentricCircles=function(){var e,t,n,r,i,a,o=f(l(this.hash,0),0,15,10,60),s=o/5;for(this.svg.setWidth((o+s)*6),this.svg.setHeight((o+s)*6),t=0,a=0;a<6;a++)for(i=0;i<6;i++)n=d(r=l(this.hash,t)),e=h(r),this.svg.circle(i*o+i*s+(o+s)/2,a*o+a*s+(o+s)/2,o/2,{fill:"none",stroke:e,opacity:n,"stroke-width":s+"px"}),n=d(r=l(this.hash,39-t)),e=h(r),this.svg.circle(i*o+i*s+(o+s)/2,a*o+a*s+(o+s)/2,o/4,{fill:e,"fill-opacity":n}),t+=1},p.prototype.geoOverlappingRings=function(){var e,t,n,r,i,a,o=f(l(this.hash,0),0,15,10,60),s=o/4;for(this.svg.setWidth(6*o),this.svg.setHeight(6*o),e=0,a=0;a<6;a++)for(i=0;i<6;i++)t=d(r=l(this.hash,e)),n={fill:"none",stroke:h(r),opacity:t,"stroke-width":s+"px"},this.svg.circle(i*o,a*o,o-s/2,n),0===i&&this.svg.circle(6*o,a*o,o-s/2,n),0===a&&this.svg.circle(i*o,6*o,o-s/2,n),0===i&&0===a&&this.svg.circle(6*o,6*o,o-s/2,n),e+=1},p.prototype.geoTriangles=function(){var e,t,n,r,i,a,o,s,c=f(l(this.hash,0),0,15,15,80),p=c/2*Math.sqrt(3),y=[s=c/2,0,c,p,0,p,s,0].join(",");for(this.svg.setWidth(3*c),this.svg.setHeight(6*p),e=0,o=0;o<6;o++)for(a=0;a<6;a++)t=d(i=l(this.hash,e)),r={fill:h(i),"fill-opacity":t,stroke:u,"stroke-opacity":.02},n=o%2==0?180*(a%2==0):180*(a%2!=0),this.svg.polyline(y,r).transform({translate:[a*c*.5-c/2,p*o],rotate:[n,c/2,p/2]}),0===a&&this.svg.polyline(y,r).transform({translate:[6*c*.5-c/2,p*o],rotate:[n,c/2,p/2]}),e+=1},p.prototype.geoDiamonds=function(){var e,t,n,r,i,a,o,s=f(l(this.hash,0),0,15,10,50),c=f(l(this.hash,1),0,15,10,50),p=[s/2,0,s,c/2,s/2,c,0,c/2].join(",");for(this.svg.setWidth(6*s),this.svg.setHeight(3*c),t=0,o=0;o<6;o++)for(a=0;a<6;a++)n=d(i=l(this.hash,t)),r={fill:h(i),"fill-opacity":n,stroke:u,"stroke-opacity":.02},e=o%2==0?0:s/2,this.svg.polyline(p,r).transform({translate:[a*s-s/2+e,c/2*o-c/2]}),0===a&&this.svg.polyline(p,r).transform({translate:[6*s-s/2+e,c/2*o-c/2]}),0===o&&this.svg.polyline(p,r).transform({translate:[a*s-s/2+e,c/2*6-c/2]}),0===a&&0===o&&this.svg.polyline(p,r).transform({translate:[6*s-s/2+e,c/2*6-c/2]}),t+=1},p.prototype.geoNestedSquares=function(){var e,t,n,r,i,a,o,s=f(l(this.hash,0),0,15,4,12),c=7*s;for(this.svg.setWidth((c+s)*6+6*s),this.svg.setHeight((c+s)*6+6*s),t=0,o=0;o<6;o++)for(a=0;a<6;a++)n=d(i=l(this.hash,t)),r={fill:"none",stroke:h(i),opacity:n,"stroke-width":s+"px"},this.svg.rect(a*c+a*s*2+s/2,o*c+o*s*2+s/2,c,c,r),n=d(i=l(this.hash,39-t)),r={fill:"none",stroke:h(i),opacity:n,"stroke-width":s+"px"},this.svg.rect(a*c+a*s*2+s/2+2*s,o*c+o*s*2+s/2+2*s,3*s,3*s,r),t+=1},p.prototype.geoMosaicSquares=function(){var e,t,n,r=f(l(this.hash,0),0,15,15,50);for(this.svg.setWidth(8*r),this.svg.setHeight(8*r),e=0,n=0;n<4;n++)for(t=0;t<4;t++)t%2==0?n%2==0?b(this.svg,t*r*2,n*r*2,r,l(this.hash,e)):g(this.svg,t*r*2,n*r*2,r,[l(this.hash,e),l(this.hash,e+1)]):n%2==0?g(this.svg,t*r*2,n*r*2,r,[l(this.hash,e),l(this.hash,e+1)]):b(this.svg,t*r*2,n*r*2,r,l(this.hash,e)),e+=1},p.prototype.geoPlaid=function(){var e,t,n,r,i,a,o,s=0,c=0;for(t=0;t<36;)s+=l(this.hash,t)+5,n=d(o=l(this.hash,t+1)),e=h(o),i=o+5,this.svg.rect(0,s,"100%",i,{opacity:n,fill:e}),s+=i,t+=2;for(t=0;t<36;)c+=l(this.hash,t)+5,n=d(o=l(this.hash,t+1)),e=h(o),a=o+5,this.svg.rect(c,0,a,"100%",{opacity:n,fill:e}),c+=a,t+=2;this.svg.setWidth(c),this.svg.setHeight(s)},p.prototype.geoTessellation=function(){var e,t,n,r,i=f(l(this.hash,0),0,15,5,40),a=i*Math.sqrt(3),o=2*i,s=i/2*Math.sqrt(3),c=[0,0,s,i/2,0,i,0,0].join(","),p=3*i+2*s,y=2*a+2*i;for(this.svg.setWidth(p),this.svg.setHeight(y),e=0;e<20;e++)switch(t=d(r=l(this.hash,e)),n={stroke:u,"stroke-opacity":.02,fill:h(r),"fill-opacity":t,"stroke-width":1},e){case 0:this.svg.rect(-i/2,-i/2,i,i,n),this.svg.rect(p-i/2,-i/2,i,i,n),this.svg.rect(-i/2,y-i/2,i,i,n),this.svg.rect(p-i/2,y-i/2,i,i,n);break;case 1:this.svg.rect(o/2+s,a/2,i,i,n);break;case 2:this.svg.rect(-i/2,y/2-i/2,i,i,n),this.svg.rect(p-i/2,y/2-i/2,i,i,n);break;case 3:this.svg.rect(o/2+s,1.5*a+i,i,i,n);break;case 4:this.svg.polyline(c,n).transform({translate:[i/2,-i/2],rotate:[0,i/2,s/2]}),this.svg.polyline(c,n).transform({translate:[i/2,y- -i/2],rotate:[0,i/2,s/2],scale:[1,-1]});break;case 5:this.svg.polyline(c,n).transform({translate:[p-i/2,-i/2],rotate:[0,i/2,s/2],scale:[-1,1]}),this.svg.polyline(c,n).transform({translate:[p-i/2,y+i/2],rotate:[0,i/2,s/2],scale:[-1,-1]});break;case 6:this.svg.polyline(c,n).transform({translate:[p/2+i/2,a/2]});break;case 7:this.svg.polyline(c,n).transform({translate:[p-p/2-i/2,a/2],scale:[-1,1]});break;case 8:this.svg.polyline(c,n).transform({translate:[p/2+i/2,y-a/2],scale:[1,-1]});break;case 9:this.svg.polyline(c,n).transform({translate:[p-p/2-i/2,y-a/2],scale:[-1,-1]});break;case 10:this.svg.polyline(c,n).transform({translate:[i/2,y/2-i/2]});break;case 11:this.svg.polyline(c,n).transform({translate:[p-i/2,y/2-i/2],scale:[-1,1]});break;case 12:this.svg.rect(0,0,i,i,n).transform({translate:[i/2,i/2],rotate:[-30,0,0]});break;case 13:this.svg.rect(0,0,i,i,n).transform({scale:[-1,1],translate:[-p+i/2,i/2],rotate:[-30,0,0]});break;case 14:this.svg.rect(0,0,i,i,n).transform({translate:[i/2,y/2-i/2-i],rotate:[30,0,i]});break;case 15:this.svg.rect(0,0,i,i,n).transform({scale:[-1,1],translate:[-p+i/2,y/2-i/2-i],rotate:[30,0,i]});break;case 16:this.svg.rect(0,0,i,i,n).transform({scale:[1,-1],translate:[i/2,-y+y/2-i/2-i],rotate:[30,0,i]});break;case 17:this.svg.rect(0,0,i,i,n).transform({scale:[-1,-1],translate:[-p+i/2,-y+y/2-i/2-i],rotate:[30,0,i]});break;case 18:this.svg.rect(0,0,i,i,n).transform({scale:[1,-1],translate:[i/2,-y+i/2],rotate:[-30,0,0]});break;case 19:this.svg.rect(0,0,i,i,n).transform({scale:[-1,-1],translate:[-p+i/2,-y+i/2],rotate:[-30,0,0]})}}},7410:function(e){"use strict";function t(){var e=0x67452301,t=0xefcdab89,n=0x98badcfe,r=0x10325476,i=0xc3d2e1f0,a=new Uint32Array(80),o=0,s=24,c=0;function u(){for(var s,c,u=16;u<80;u++){var l=a[u-3]^a[u-8]^a[u-14]^a[u-16];a[u]=l<<1|l>>>31}var f=e,h=t,d=n,p=r,y=i;for(u=0;u<80;u++){u<20?(s=p^h&(d^p),c=0x5a827999):u<40?(s=h^d^p,c=0x6ed9eba1):u<60?(s=h&d|p&(h|d),c=0x8f1bbcdc):(s=h^d^p,c=0xca62c1d6);var v=(f<<5|f>>>27)+s+y+c+(0|a[u]);y=p,p=d,d=h<<30|h>>>2,h=f,f=v}for(u=0,e=e+f|0,t=t+h|0,n=n+d|0,r=r+p|0,i=i+y|0,o=0;u<16;u++)a[u]=0}function l(e){a[o]|=(255&e)<<s,s?s-=8:(o++,s=24),16===o&&u()}function f(e){for(var t="",n=28;n>=0;n-=4)t+=(e>>n&15).toString(16);return t}return{update:function(e){if("string"==typeof e){var t=e.length;c+=8*t;for(var n=0;n<t;n++)l(e.charCodeAt(n));return}var r=e.length;c+=8*r;for(var i=0;i<r;i++)l(e[i])},digest:function(){l(128),(o>14||14===o&&s<24)&&u(),o=14,s=24,l(0),l(0),l(c>0xffffffffff?c/0x10000000000:0),l(c>0xffffffff?c/0x100000000:0);for(var a=24;a>=0;a-=8)l(c>>a);return f(e)+f(t)+f(n)+f(r)+f(i)}}}e.exports=function(e){if(void 0===e)return t();var n=t();return n.update(e),n.digest()}},1488:function(e,t,n){"use strict";var r=n(416),i=n(3653);function a(){return this.width=100,this.height=100,this.svg=i("svg"),this.context=[],this.setAttributes(this.svg,{xmlns:"http://www.w3.org/2000/svg",width:this.width,height:this.height}),this}e.exports=a,a.prototype.currentContext=function(){return this.context[this.context.length-1]||this.svg},a.prototype.end=function(){return this.context.pop(),this},a.prototype.currentNode=function(){var e=this.currentContext();return e.lastChild||e},a.prototype.transform=function(e){return this.currentNode().setAttribute("transform",Object.keys(e).map(function(t){return t+"("+e[t].join(",")+")"}).join(" ")),this},a.prototype.setAttributes=function(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})},a.prototype.setWidth=function(e){this.svg.setAttribute("width",Math.floor(e))},a.prototype.setHeight=function(e){this.svg.setAttribute("height",Math.floor(e))},a.prototype.toString=function(){return this.svg.toString()},a.prototype.rect=function(e,t,n,a,o){var s=this;if(Array.isArray(e))return e.forEach(function(e){s.rect.apply(s,e.concat(o))}),this;var c=i("rect");return this.currentContext().appendChild(c),this.setAttributes(c,r({x:e,y:t,width:n,height:a},o)),this},a.prototype.circle=function(e,t,n,a){var o=i("circle");return this.currentContext().appendChild(o),this.setAttributes(o,r({cx:e,cy:t,r:n},a)),this},a.prototype.path=function(e,t){var n=i("path");return this.currentContext().appendChild(n),this.setAttributes(n,r({d:e},t)),this},a.prototype.polyline=function(e,t){var n=this;if(Array.isArray(e))return e.forEach(function(e){n.polyline(e,t)}),this;var a=i("polyline");return this.currentContext().appendChild(a),this.setAttributes(a,r({points:e},t)),this},a.prototype.group=function(e){var t=i("g");return this.currentContext().appendChild(t),this.context.push(t),this.setAttributes(t,r({},e)),this}},3653:function(e){"use strict";var t=e.exports=function(e){return(null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?t[Symbol.hasInstance](this):this instanceof t)?(this.tagName=e,this.attributes=Object.create(null),this.children=[],this.lastChild=null,this):new t(e)};t.prototype.appendChild=function(e){return this.children.push(e),this.lastChild=e,this},t.prototype.setAttribute=function(e,t){return this.attributes[e]=t,this},t.prototype.toString=function(){var e=this;return["<",e.tagName,Object.keys(e.attributes).map(function(t){return[" ",t,'="',e.attributes[t],'"'].join("")}).join(""),">",e.children.map(function(e){return e.toString()}).join(""),"</",e.tagName,">"].join("")}},416:function(e){var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString;function r(e){if(!e||"[object Object]"!==n.call(e)||e.nodeType||e.setInterval)return!1;var r,i=t.call(e,"constructor"),a=t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!a)return!1;for(r in e);return void 0===r||t.call(e,r)}e.exports=function e(){var t,n,i,a,o,s,c,u=arguments[0]||{},l=1,f=arguments.length,h=!1;for("boolean"==typeof u&&(h=u,u=arguments[1]||{},l=2),(void 0===u?"undefined":(t=u)&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)!="object"&&"function"!=typeof u&&(u={});l<f;l++)if(null!=(n=arguments[l]))for(i in n)a=u[i],u!==(o=n[i])&&(h&&o&&(r(o)||(s=Array.isArray(o)))?(s?(s=!1,c=a&&Array.isArray(a)?a:[]):c=a&&r(a)?a:{},u[i]=e(h,c,o)):void 0!==o&&(u[i]=o));return u}},5631:function(e,t,n){"use strict";var r=n(7362);r.createRoot,r.hydrateRoot},8800:function(e,t,n){"use strict";var r=n(810),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useState,o=r.useEffect,s=r.useLayoutEffect,c=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,l=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&l({inst:i})},[e,n,t]),o(function(){return u(i)&&l({inst:i}),e(function(){u(i)&&l({inst:i})})},[e]),c(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:l},4273:function(e,t,n){"use strict";e.exports=n(8800)},9387:function(e,t,n){"use strict";n.a(e,async function(e,r){try{n.d(t,{Jg:()=>s});var i=n(7166),a=e([i]);i=(a.then?(await a)():a)[0];let o={flags:function(){let e={};for(let t of Object.keys(localStorage))if(t.startsWith("openmrs:feature-flag:")){let n=t.replace("openmrs:feature-flag:",""),r=JSON.parse(localStorage.getItem(`openmrs:feature-flag-meta:${n}`)||"{}");e[n]={enabled:"true"===localStorage.getItem(t),...r}}return e}()},s=(0,i.zJ)("feature-flags",o);s.subscribe(e=>{for(let[t,n]of Object.entries(e.flags))localStorage.setItem(`openmrs:feature-flag:${t}`,n.enabled.toString()),localStorage.setItem(`openmrs:feature-flag-meta:${t}`,JSON.stringify({label:n.label,description:n.description}))}),r()}catch(e){r(e)}})},2111:function(e,t,n){"use strict";n.a(e,async function(e,r){try{n.d(t,{Jg:()=>i.Jg});var i=n(9387),a=e([i]);i=(a.then?(await a)():a)[0],r()}catch(e){r(e)}})},4572:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(9387),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},8514:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(9217),i=n(1916),a=n(2151);n(382);var o=n(7282),s=n(4572),c=n(8071),u=n(2363),l=n(1612),f=n(4396),h=n(8472),d=n(3305),p=e([r,i,a,o,s,c,u,l,f,h,d]);[r,i,a,o,s,c,u,l,f,h,d]=p.then?(await p)():p,t()}catch(e){t(e)}})},3184:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(5970),i=n(6149),a=n(2639);n(382);var o=n(5911),s=n(2111),c=n(1946),u=n(4952),l=n(7974),f=n(7166),h=n(6022),d=n(9400),p=e([r,i,a,o,s,c,u,l,f,h,d]);[r,i,a,o,s,c,u,l,f,h,d]=p.then?(await p)():p,t()}catch(e){t(e)}})},9383:function(){},3416:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(6149),i=n(5650),a=e([r]);(r=(a.then?(await a)():a)[0]).Dy.String,r.z2.oneOf(i.l),r.Dy.String,r.z2.oneOf(i.l),r.Dy.String,r.Dy.String,r.Dy.String,r.Dy.Array,r.Dy.UUID,r.Dy.String,r.Dy.ConceptUuid,r.Dy.Object,r.z2.oneOf(["buddhist","chinese","coptic","dangi","ethioaa","ethiopic","gregory","hebrew","indian","islamic","islamic-umalqura","islamic-tbla","islamic-civil","islamic-rgsa","iso8601","japanese","persian","roc","islamicc"]),r.Dy.Object,r.Dy.String,t()}catch(e){t(e)}})},4082:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810);n(6962);var i=n(7974),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},763:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(4082),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},937:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810);n(6962);var i=n(7987),a=n(8514),o=e([r,i,a]);[r,i,a]=o.then?(await o)():o,t()}catch(e){t(e)}})},5358:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(7974),a=n(6935),o=n(1569),s=e([r,i,a,o]);[r,i,a,o]=s.then?(await s)():s,t()}catch(e){t(e)}})},4005:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(8534),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},5733:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},7639:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(6935),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},5114:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(8231),a=n(8534),o=e([r,i,a]);[r,i,a]=o.then?(await o)():o,t()}catch(e){t(e)}})},9082:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810);n(6962);var i=n(7974),a=n(8534),o=n(1569),s=n(8231),c=n(5114),u=n(5358),l=n(5733),f=n(4005),h=n(7639),d=e([r,i,a,o,s,c,u,l,f,h]);[r,i,a,o,s,c,u,l,f,h]=d.then?(await d)():d,t()}catch(e){t(e)}})},6935:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},7164:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(9082),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},8231:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],(0,r.createContext)(null),t()}catch(e){t(e)}})},1569:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(1338),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},3497:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(8807),i=n(7974),a=n(810),o=e([r,i,a]);[r,i,a]=o.then?(await o)():o,t()}catch(e){t(e)}})},34:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(3497),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},2621:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(8807),a=n(9400),o=n(7974),s=e([r,i,a,o]);[r,i,a,o]=s.then?(await s)():s,t()}catch(e){t(e)}})},9342:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(2621),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},6496:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810);n(6962);var i=n(7974),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},8534:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(6496),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},6022:function(e,t,n){"use strict";n.a(e,async function(e,t){try{n(9383);var r=n(3416),i=n(763),a=n(937),o=n(7164),s=n(34),c=n(9342),u=n(6496),l=n(1866),f=n(7540),h=n(5753),d=n(8678),p=n(8869),y=n(6394),v=n(3853),g=n(2270),b=n(8638),m=n(2322),w=n(1728),E=n(8491),x=n(3227),O=n(8074),S=n(9020),k=n(2612),A=e([r,i,a,o,s,c,u,l,f,h,d,p,y,v,g,b,m,w,E,x,O,S,k]);[r,i,a,o,s,c,u,l,f,h,d,p,y,v,g,b,m,w,E,x,O,S,k]=A.then?(await A)():A,t()}catch(e){t(e)}})},1866:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(8807),a=n(7974),o=e([r,i,a]);[r,i,a]=o.then?(await o)():o,t()}catch(e){t(e)}})},7540:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(2680),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},2680:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(8514),a=n(7987),o=n(8807),s=n(2856),c=e([r,i,a,o,s]);[r,i,a,o,s]=c.then?(await c)():c,t()}catch(e){t(e)}})},2856:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(7987),a=n(6280),o=n(2666),s=n(5970),c=n(7974),u=n(8678),l=e([r,i,a,o,s,c,u]);[r,i,a,o,s,c,u]=l.then?(await l)():l,t()}catch(e){t(e)}})},5753:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(7134),i=n(7166),a=n(5911);n(382);var o=e([r,a,i]);[r,a,i]=o.then?(await o)():o,(0,i.jk)("modalState",{modalContainer:null,modalStack:[]}),window.getComputedStyle(document.body).overflow,t()}catch(e){t(e)}})},8869:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(8807),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},7661:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(8869),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},6541:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(6394),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},8678:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(8999),a=n(6541),o=n(7661);n(5631);var s=e([r,a,o,i]);[r,a,o,i]=s.then?(await s)():s,new i.Subject,new i.Subject,t()}catch(e){t(e)}})},6394:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(8807),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},3853:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(38),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},38:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810);n(6962);var i=n(6149),a=n(9400),o=e([r,i,a]);[r,i,a]=o.then?(await o)():o,t()}catch(e){t(e)}})},6120:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(7974),a=n(9400),o=n(4082),s=e([r,i,a,o]);[r,i,a,o]=s.then?(await s)():s,t()}catch(e){t(e)}})},491:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810);n(6962);var i=n(8807),a=n(9400),o=n(7974),s=n(772),c=n(6641),u=n(1493),l=e([r,i,a,o,s,c,u]);[r,i,a,o,s,c,u]=l.then?(await l)():l,t()}catch(e){t(e)}})},5591:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(8807),a=n(9400),o=n(8472),s=e([r,i,a,o]);[r,i,a,o]=s.then?(await s)():s,t()}catch(e){t(e)}})},772:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(6280),a=n(5970),o=n(7974),s=e([r,i,a,o]);[r,i,a,o]=s.then?(await s)():s,t()}catch(e){t(e)}})},6641:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(5941),a=n(5970),o=e([r,i,a]);[r,i,a]=o.then?(await o)():o,t()}catch(e){t(e)}})},1493:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(5970),i=n(5941),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},2270:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(3458),i=n(6157),a=n(6120),o=n(5591),s=n(491),c=e([r,i,a,o,s]);[r,i,a,o,s]=c.then?(await c)():c,t()}catch(e){t(e)}})},6157:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(8807),a=n(7974),o=e([r,i,a]);[r,i,a]=o.then?(await o)():o,t()}catch(e){t(e)}})},3458:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810);n(6962);var i=n(7974),a=n(9400),o=n(8534),s=n(6157),c=e([r,i,a,o,s]);[r,i,a,o,s]=c.then?(await c)():c,t()}catch(e){t(e)}})},8638:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(1799),i=n(6191),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},1799:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810);n(4453);var i=n(8807),a=n(7987),o=n(6191),s=n(1889),c=e([r,i,a,o,s]);[r,i,a,o,s]=c.then?(await c)():c,t()}catch(e){t(e)}})},1889:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(7987),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},6191:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(5941),i=n(5970),a=n(7974),o=e([r,i,a]);[r,i,a]=o.then?(await o)():o,t()}catch(e){t(e)}})},2322:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810);n(6962);var i=n(7974),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},8472:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(8678),i=n(8074),a=n(5753),o=n(3506),s=n(8491),c=n(1866),u=n(937),l=n(9342),f=n(7164),h=n(1728),d=n(2270),p=n(8638),y=n(763),v=n(6496),g=n(3853),b=n(2322),m=n(7540),w=n(34),E=e([r,i,a,o,s,c,u,l,f,h,d,p,y,v,g,b,m,w]);[r,i,a,o,s,c,u,l,f,h,d,p,y,v,g,b,m,w]=E.then?(await E)():E,t()}catch(e){t(e)}})},1728:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(2448),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},2448:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(8807),a=n(7974),o=e([r,i,a]);[r,i,a]=o.then?(await o)():o,t()}catch(e){t(e)}})},7323:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(3227),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},8491:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810);n(5631);var i=n(8999),a=n(7323),o=e([r,a,i]);[r,a,i]=o.then?(await o)():o,new i.Subject,t()}catch(e){t(e)}})},3227:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810);n(6962);var i=n(8807),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},9162:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(9020),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},8074:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810);n(5631);var i=n(8999),a=n(9162),o=e([r,a,i]);[r,a,i]=o.then?(await o)():o,new i.Subject,t()}catch(e){t(e)}})},9020:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(8807),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},5650:function(e,t,n){"use strict";n.d(t,{l:()=>r});var r=["red","magenta","purple","blue","teal","cyan","gray","green","warm-gray","cool-gray","high-contrast","outline"]},9230:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810);n(6962);var i=n(8807),a=n(7974),o=n(9749),s=e([r,i,a,o]);[r,i,a,o]=s.then?(await s)():s,t()}catch(e){t(e)}})},2983:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810);n(6962);var i=n(7974),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},9045:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(7987);n(6962);var a=n(8807),o=n(7974),s=n(9400),c=n(8534),u=n(1029),l=n(9749),f=n(6766),h=n(2983),d=e([r,i,a,o,s,c,u,l,f,h]);[r,i,a,o,s,c,u,l,f,h]=d.then?(await d)():d,t()}catch(e){t(e)}})},6766:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(7134),a=n(620),o=n(8807),s=n(9400),c=n(7931),u=e([r,i,a,o,s,c]);[r,i,a,o,s,c]=u.then?(await u)():u,t()}catch(e){t(e)}})},2612:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(9230),i=n(2983),a=n(9045),o=n(1029),s=n(9749),c=e([r,i,a,o,s]);[r,i,a,o,s]=c.then?(await c)():c,t()}catch(e){t(e)}})},1029:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(7987),a=n(8807),o=n(1946);n(382);var s=n(9749),c=e([r,i,a,o,s]);[r,i,a,o,s]=c.then?(await c)():c,t()}catch(e){t(e)}})},3506:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(9230),i=n(9045),a=n(9749),o=e([r,i,a]);[r,i,a]=o.then?(await o)():o,t()}catch(e){t(e)}})},7931:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(9749),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},9749:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(5911),a=n(1946),o=n(7166),s=n(9400),c=n(7974),u=e([r,i,a,s,c,o]);[r,i,a,s,c,o]=u.then?(await u)():u,(0,o.jk)("workspace",{context:"",openWorkspaces:[],prompt:null,workspaceWindowState:"normal",workspaceGroup:void 0}),t()}catch(e){t(e)}})},1338:function(e){"use strict";e.exports=import("dayjs").then(function(e){return e})},2021:function(e){"use strict";e.exports=import("i18next").then(function(e){return e})},810:function(e){"use strict";e.exports=import("react").then(function(e){return e})},7362:function(e){"use strict";e.exports=import("react-dom").then(function(e){return e})},7987:function(e){"use strict";e.exports=import("react-i18next").then(function(e){return e})},8999:function(e){"use strict";e.exports=import("rxjs").then(function(e){return e})},7134:function(e){"use strict";e.exports=import("single-spa").then(function(e){return e})},5941:function(e){"use strict";e.exports=import("swr").then(function(e){return e})},6962:function(e){function t(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e="",a=0;a<arguments.length;a++){var o=arguments[a];o&&(e=i(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if((void 0===e?"undefined":t(e))!=="object")return"";if(Array.isArray(e))return r.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var a="";for(var o in e)n.call(e,o)&&e[o]&&(a=i(a,o));return a}(o)))}return e}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(r.default=r,e.exports=r):"function"==typeof define&&"object"===t(define.amd)&&define.amd?define("classnames",[],function(){return r}):window.classNames=r}()},4197:function(e,t,n){"use strict";let r;n.d(t,{ZP:()=>nu});let i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,a=Object.keys,o=Array.isArray;function s(e,t){return"object"!=typeof t||a(t).forEach(function(n){e[n]=t[n]}),e}"undefined"==typeof Promise||i.Promise||(i.Promise=Promise);let c=Object.getPrototypeOf,u={}.hasOwnProperty;function l(e,t){return u.call(e,t)}function f(e,t){"function"==typeof t&&(t=t(c(e))),("undefined"==typeof Reflect?a:Reflect.ownKeys)(t).forEach(n=>{d(e,n,t[n])})}let h=Object.defineProperty;function d(e,t,n,r){h(e,t,s(n&&l(n,"get")&&"function"==typeof n.get?{get:n.get,set:n.set,configurable:!0}:{value:n,configurable:!0,writable:!0},r))}function p(e){return{from:function(t){return e.prototype=Object.create(t.prototype),d(e.prototype,"constructor",e),{extend:f.bind(null,e.prototype)}}}}let y=Object.getOwnPropertyDescriptor;function v(e,t){let n;return y(e,t)||(n=c(e))&&v(n,t)}let g=[].slice;function b(e,t,n){return g.call(e,t,n)}function m(e,t){return t(e)}function w(e){if(!e)throw Error("Assertion Failed")}function E(e){i.setImmediate?setImmediate(e):setTimeout(e,0)}function x(e,t){return e.reduce((e,n,r)=>{var i=t(n,r);return i&&(e[i[0]]=i[1]),e},{})}function O(e,t){if(l(e,t))return e[t];if(!t)return e;if("string"!=typeof t){for(var n=[],r=0,i=t.length;r<i;++r){var a=O(e,t[r]);n.push(a)}return n}var o=t.indexOf(".");if(-1!==o){var s=e[t.substr(0,o)];return void 0===s?void 0:O(s,t.substr(o+1))}}function S(e,t,n){if(e&&void 0!==t&&(!("isFrozen"in Object)||!Object.isFrozen(e)))if("string"!=typeof t&&"length"in t){w("string"!=typeof n&&"length"in n);for(var r=0,i=t.length;r<i;++r)S(e,t[r],n[r])}else{var a=t.indexOf(".");if(-1!==a){var s=t.substr(0,a),c=t.substr(a+1);if(""===c)void 0===n?o(e)&&!isNaN(parseInt(s))?e.splice(s,1):delete e[s]:e[s]=n;else{var u=e[s];u&&l(e,s)||(u=e[s]={}),S(u,c,n)}}else void 0===n?o(e)&&!isNaN(parseInt(t))?e.splice(t,1):delete e[t]:e[t]=n}}function k(e){var t={};for(var n in e)l(e,n)&&(t[n]=e[n]);return t}let A=[].concat;function j(e){return A.apply([],e)}let C="Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(j([8,16,32,64].map(e=>["Int","Uint","Float"].map(t=>t+e+"Array")))).filter(e=>i[e]),P=C.map(e=>i[e]);x(C,e=>[e,!0]);let D=null;function T(e){D="undefined"!=typeof WeakMap&&new WeakMap;let t=function e(t){if(!t||"object"!=typeof t)return t;let n=D&&D.get(t);if(n)return n;if(o(t)){n=[],D&&D.set(t,n);for(var r=0,i=t.length;r<i;++r)n.push(e(t[r]))}else if(P.indexOf(t.constructor)>=0)n=t;else{let r=c(t);for(var a in n=r===Object.prototype?{}:Object.create(r),D&&D.set(t,n),t)l(t,a)&&(n[a]=e(t[a]))}return n}(e);return D=null,t}let{toString:R}={};function I(e){return R.call(e).slice(8,-1)}let N="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator",L="symbol"==typeof N?function(e){var t;return null!=e&&(t=e[N])&&t.apply(e)}:function(){return null},B={};function Z(e){var t,n,r,i;if(1==arguments.length){if(o(e))return e.slice();if(this===B&&"string"==typeof e)return[e];if(i=L(e)){for(n=[];!(r=i.next()).done;)n.push(r.value);return n}if(null==e)return[e];if("number"==typeof(t=e.length)){for(n=Array(t);t--;)n[t]=e[t];return n}return[e]}for(t=arguments.length,n=Array(t);t--;)n[t]=arguments[t];return n}let M="undefined"!=typeof Symbol?e=>"AsyncFunction"===e[Symbol.toStringTag]:()=>!1;var K="undefined"!=typeof location&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href),F=()=>!0;let U=!Error("").stack;function V(){if(U)try{throw V.arguments,Error()}catch(e){return e}return Error()}function $(e,t){var n=e.stack;return n?(t=t||0,0===n.indexOf(e.name)&&(t+=(e.name+e.message).split("\n").length),n.split("\n").slice(t).filter(F).map(e=>"\n"+e).join("")):""}var q=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],W=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(q),z={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function H(e,t){this._e=V(),this.name=e,this.message=t}function J(e,t){return e+". Errors: "+Object.keys(t).map(e=>t[e].toString()).filter((e,t,n)=>n.indexOf(e)===t).join("\n")}function X(e,t,n,r){this._e=V(),this.failures=t,this.failedKeys=r,this.successCount=n,this.message=J(e,t)}function Y(e,t){this._e=V(),this.name="BulkError",this.failures=Object.keys(t).map(e=>t[e]),this.failuresByPos=t,this.message=J(e,t)}p(H).from(Error).extend({stack:{get:function(){return this._stack||(this._stack=this.name+": "+this.message+$(this._e,2))}},toString:function(){return this.name+": "+this.message}}),p(X).from(H),p(Y).from(H);var G=W.reduce((e,t)=>(e[t]=t+"Error",e),{}),Q=W.reduce((e,t)=>{var n=t+"Error";function r(e,r){this._e=V(),this.name=n,e?"string"==typeof e?(this.message=`${e}${r?"\n "+r:""}`,this.inner=r||null):"object"==typeof e&&(this.message=`${e.name} ${e.message}`,this.inner=e):(this.message=z[t]||n,this.inner=null)}return p(r).from(H),e[t]=r,e},{});Q.Syntax=SyntaxError,Q.Type=TypeError,Q.Range=RangeError;var ee=q.reduce((e,t)=>(e[t+"Error"]=Q[t],e),{}),et=W.reduce((e,t)=>(-1===["Syntax","Type","Range"].indexOf(t)&&(e[t+"Error"]=Q[t]),e),{});function en(){}function er(e){return e}function ei(e,t){return null==e||e===er?t:function(n){return t(e(n))}}function ea(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function eo(e,t){return e===en?t:function(){var n=e.apply(this,arguments);void 0!==n&&(arguments[0]=n);var r=this.onsuccess,i=this.onerror;this.onsuccess=null,this.onerror=null;var a=t.apply(this,arguments);return r&&(this.onsuccess=this.onsuccess?ea(r,this.onsuccess):r),i&&(this.onerror=this.onerror?ea(i,this.onerror):i),void 0!==a?a:n}}function es(e,t){return e===en?t:function(){e.apply(this,arguments);var n=this.onsuccess,r=this.onerror;this.onsuccess=this.onerror=null,t.apply(this,arguments),n&&(this.onsuccess=this.onsuccess?ea(n,this.onsuccess):n),r&&(this.onerror=this.onerror?ea(r,this.onerror):r)}}function ec(e,t){return e===en?t:function(n){var r=e.apply(this,arguments);s(n,r);var i=this.onsuccess,a=this.onerror;this.onsuccess=null,this.onerror=null;var o=t.apply(this,arguments);return i&&(this.onsuccess=this.onsuccess?ea(i,this.onsuccess):i),a&&(this.onerror=this.onerror?ea(a,this.onerror):a),void 0===r?void 0===o?void 0:o:s(r,o)}}function eu(e,t){return e===en?t:function(){return!1!==t.apply(this,arguments)&&e.apply(this,arguments)}}function el(e,t){return e===en?t:function(){var n=e.apply(this,arguments);if(n&&"function"==typeof n.then){for(var r=this,i=arguments.length,a=Array(i);i--;)a[i]=arguments[i];return n.then(function(){return t.apply(r,a)})}return t.apply(this,arguments)}}et.ModifyError=X,et.DexieError=H,et.BulkError=Y;var ef={};let[eh,ed,ep]="undefined"==typeof Promise?[]:(()=>{let e=Promise.resolve();if("undefined"==typeof crypto||!crypto.subtle)return[e,c(e),e];let t=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[t,c(t),e]})(),ey=ed&&ed.then,ev=eh&&eh.constructor,eg=!!ep;var eb=!1,em=ep?()=>{ep.then(eK)}:i.setImmediate?setImmediate.bind(null,eK):i.MutationObserver?()=>{var e=document.createElement("div");new MutationObserver(()=>{eK(),e=null}).observe(e,{attributes:!0}),e.setAttribute("i","1")}:()=>{setTimeout(eK,0)},ew=function(e,t){eC.push([e,t]),eE&&(em(),eE=!1)},e_=!0,eE=!0,ex=[],eO=[],eS=null,ek=er,eA={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:e7,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach(e=>{try{e7(e[0],e[1])}catch(e){}})}},ej=eA,eC=[],eP=0,eD=[];function eT(e){if("object"!=typeof this)throw TypeError("Promises must be constructed via new");this._listeners=[],this.onuncatched=en,this._lib=!1;var t=this._PSD=ej;if(K&&(this._stackHolder=V(),this._prev=null,this._numPrev=0),"function"!=typeof e){if(e!==ef)throw TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(!1===this._state&&eN(this,this._value))}this._state=null,this._value=null,++t.ref,function e(t,n){try{n(n=>{if(null===t._state){if(n===t)throw TypeError("A promise cannot be resolved with itself.");var r=t._lib&&eF();n&&"function"==typeof n.then?e(t,(e,t)=>{n instanceof eT?n._then(e,t):n.then(e,t)}):(t._state=!0,t._value=n,eL(t)),r&&eU()}},eN.bind(null,t))}catch(e){eN(t,e)}}(this,e)}let eR={get:function(){var e=ej,t=eX;function n(n,r){var i=!e.global&&(e!==ej||t!==eX);let a=i&&!e0();var o=new eT((t,o)=>{eB(this,new eI(e5(n,e,i,a),e5(r,e,i,a),t,o,e))});return K&&eM(o,this),o}return n.prototype=ef,n},set:function(e){d(this,"then",e&&e.prototype===ef?eR:{get:function(){return e},set:eR.set})}};function eI(e,t,n,r,i){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.resolve=n,this.reject=r,this.psd=i}function eN(e,t){if(eO.push(t),null===e._state){var n=e._lib&&eF();t=ek(t),e._state=!1,e._value=t,K&&null!==t&&"object"==typeof t&&!t._promise&&function(e,t,n){try{e.apply(null,void 0)}catch(e){}}(()=>{var n=v(t,"stack");t._promise=e,d(t,"stack",{get:()=>eb?n&&(n.get?n.get.apply(t):n.value):e.stack})}),ex.some(t=>t._value===e._value)||ex.push(e),eL(e),n&&eU()}}function eL(e){var t=e._listeners;e._listeners=[];for(var n=0,r=t.length;n<r;++n)eB(e,t[n]);var i=e._PSD;--i.ref||i.finalize(),0===eP&&(++eP,ew(()=>{0==--eP&&eV()},[]))}function eB(e,t){if(null!==e._state){var n=e._state?t.onFulfilled:t.onRejected;if(null===n)return(e._state?t.resolve:t.reject)(e._value);++t.psd.ref,++eP,ew(eZ,[n,e,t])}else e._listeners.push(t)}function eZ(e,t,n){try{eS=t;var r,i=t._value;t._state?r=e(i):(eO.length&&(eO=[]),r=e(i),-1===eO.indexOf(i)&&function(e){for(var t=ex.length;t;)if(ex[--t]._value===e._value)return void ex.splice(t,1)}(t)),n.resolve(r)}catch(e){n.reject(e)}finally{eS=null,0==--eP&&eV(),--n.psd.ref||n.psd.finalize()}}function eM(e,t){var n=t?t._numPrev+1:0;n<100&&(e._prev=t,e._numPrev=n)}function eK(){eF()&&eU()}function eF(){var e=e_;return e_=!1,eE=!1,e}function eU(){var e,t,n;do for(;eC.length>0;)for(e=eC,eC=[],n=e.length,t=0;t<n;++t){var r=e[t];r[0].apply(null,r[1])}while(eC.length>0);e_=!0,eE=!0}function eV(){var e=ex;ex=[],e.forEach(e=>{e._PSD.onunhandled.call(null,e._value,e)});for(var t=eD.slice(0),n=t.length;n;)t[--n]()}function e$(e){return new eT(ef,!1,e)}function eq(e,t){var n=ej;return function(){var r=eF(),i=ej;try{return e8(n,!0),e.apply(this,arguments)}catch(e){t&&t(e)}finally{e8(i,!1),r&&eU()}}}f(eT.prototype,{then:eR,_then:function(e,t){eB(this,new eI(null,null,e,t,ej))},catch:function(e){if(1==arguments.length)return this.then(null,e);var t=arguments[0],n=arguments[1];return"function"==typeof t?this.then(null,e=>e instanceof t?n(e):e$(e)):this.then(null,e=>e&&e.name===t?n(e):e$(e))},finally:function(e){return this.then(t=>(e(),t),t=>(e(),e$(t)))},stack:{get:function(){if(this._stack)return this._stack;try{eb=!0;var e=(function e(t,n,r){if(n.length===r)return n;var i="";if(!1===t._state){var a,o,s=t._value;null!=s?(a=s.name||"Error",o=s.message||s,i=$(s,0)):(a=s,o=""),n.push(a+(o?": "+o:"")+i)}return K&&((i=$(t._stackHolder,2))&&-1===n.indexOf(i)&&n.push(i),t._prev&&e(t._prev,n,r)),n})(this,[],20).join("\nFrom previous: ");return null!==this._state&&(this._stack=e),e}finally{eb=!1}}},timeout:function(e,t){return e<1/0?new eT((n,r)=>{var i=setTimeout(()=>r(new Q.Timeout(t)),e);this.then(n,r).finally(clearTimeout.bind(null,i))}):this}}),"undefined"!=typeof Symbol&&Symbol.toStringTag&&d(eT.prototype,Symbol.toStringTag,"Dexie.Promise"),eA.env=e9(),f(eT,{all:function(){var e=Z.apply(null,arguments).map(e1);return new eT(function(t,n){0===e.length&&t([]);var r=e.length;e.forEach((i,a)=>eT.resolve(i).then(n=>{e[a]=n,--r||t(e)},n))})},resolve:e=>{if(e instanceof eT)return e;if(e&&"function"==typeof e.then)return new eT((t,n)=>{e.then(t,n)});var t=new eT(ef,!0,e);return eM(t,eS),t},reject:e$,race:function(){var e=Z.apply(null,arguments).map(e1);return new eT((t,n)=>{e.map(e=>eT.resolve(e).then(t,n))})},PSD:{get:()=>ej,set:e=>ej=e},totalEchoes:{get:()=>eX},newPSD:eG,usePSD:e4,scheduler:{get:()=>ew,set:e=>{ew=e}},rejectionMapper:{get:()=>ek,set:e=>{ek=e}},follow:(e,t)=>new eT((n,r)=>eG((t,n)=>{var r=ej;r.unhandleds=[],r.onunhandled=n,r.finalize=ea(function(){var e;e=()=>{0===this.unhandleds.length?t():n(this.unhandleds[0])},eD.push(function t(){e(),eD.splice(eD.indexOf(t),1)}),++eP,ew(()=>{0==--eP&&eV()},[])},r.finalize),e()},t,n,r))}),ev&&(ev.allSettled&&d(eT,"allSettled",function(){let e=Z.apply(null,arguments).map(e1);return new eT(t=>{0===e.length&&t([]);let n=e.length,r=Array(n);e.forEach((e,i)=>eT.resolve(e).then(e=>r[i]={status:"fulfilled",value:e},e=>r[i]={status:"rejected",reason:e}).then(()=>--n||t(r)))})}),ev.any&&"undefined"!=typeof AggregateError&&d(eT,"any",function(){let e=Z.apply(null,arguments).map(e1);return new eT((t,n)=>{0===e.length&&n(AggregateError([]));let r=e.length,i=Array(r);e.forEach((e,a)=>eT.resolve(e).then(e=>t(e),e=>{i[a]=e,--r||n(AggregateError(i))}))})}));let eW={awaits:0,echoes:0,id:0};var ez=0,eH=[],eJ=0,eX=0,eY=0;function eG(e,t,n,r){var i=ej,a=Object.create(i);a.parent=i,a.ref=0,a.global=!1,a.id=++eY;var o=eA.env;a.env=eg?{Promise:eT,PromiseProp:{value:eT,configurable:!0,writable:!0},all:eT.all,race:eT.race,allSettled:eT.allSettled,any:eT.any,resolve:eT.resolve,reject:eT.reject,nthen:e3(o.nthen,a),gthen:e3(o.gthen,a)}:{},t&&s(a,t),++i.ref,a.finalize=function(){--this.parent.ref||this.parent.finalize()};var c=e4(a,e,n,r);return 0===a.ref&&a.finalize(),c}function eQ(){return eW.id||(eW.id=++ez),++eW.awaits,eW.echoes+=100,eW.id}function e0(){return!!eW.awaits&&(0==--eW.awaits&&(eW.id=0),eW.echoes=100*eW.awaits,!0)}function e1(e){return eW.echoes&&e&&e.constructor===ev?(eQ(),e.then(e=>(e0(),e),e=>(e0(),te(e)))):e}function e2(e){++eX,eW.echoes&&0!=--eW.echoes||(eW.echoes=eW.id=0),eH.push(ej),e8(e,!0)}function e6(){var e=eH[eH.length-1];eH.pop(),e8(e,!1)}function e8(e,t){var n,r=ej;if((t?!eW.echoes||eJ++&&e===ej:!eJ||--eJ&&e===ej)||(n=t?e2.bind(null,e):e6,ey.call(eh,n)),e!==ej&&(ej=e,r===eA&&(eA.env=e9()),eg)){var a=eA.env.Promise,o=e.env;ed.then=o.nthen,a.prototype.then=o.gthen,(r.global||e.global)&&(Object.defineProperty(i,"Promise",o.PromiseProp),a.all=o.all,a.race=o.race,a.resolve=o.resolve,a.reject=o.reject,o.allSettled&&(a.allSettled=o.allSettled),o.any&&(a.any=o.any))}}function e9(){var e=i.Promise;return eg?{Promise:e,PromiseProp:Object.getOwnPropertyDescriptor(i,"Promise"),all:e.all,race:e.race,allSettled:e.allSettled,any:e.any,resolve:e.resolve,reject:e.reject,nthen:ed.then,gthen:e.prototype.then}:{}}function e4(e,t,n,r,i){var a=ej;try{return e8(e,!0),t(n,r,i)}finally{e8(a,!1)}}function e5(e,t,n,r){return"function"!=typeof e?e:function(){var i,a=ej;n&&eQ(),e8(t,!0);try{return e.apply(this,arguments)}finally{e8(a,!1),r&&(i=e0,ey.call(eh,i))}}}function e3(e,t){return function(n,r){return e.call(this,e5(n,t),e5(r,t))}}function e7(e,t){var n;try{n=t.onuncatched(e)}catch(e){}if(!1!==n)try{var r,a={promise:t,reason:e};if(i.document&&document.createEvent?((r=document.createEvent("Event")).initEvent("unhandledrejection",!0,!0),s(r,a)):i.CustomEvent&&s(r=new CustomEvent("unhandledrejection",{detail:a}),a),r&&i.dispatchEvent&&(dispatchEvent(r),!i.PromiseRejectionEvent&&i.onunhandledrejection))try{i.onunhandledrejection(r)}catch(e){}K&&r&&!r.defaultPrevented&&console.warn(`Unhandled rejection: ${e.stack||e}`)}catch(e){}}-1===(""+ey).indexOf("[native code]")&&(eQ=e0=en);var te=eT.reject;let tt=String.fromCharCode(65535),tn="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",tr=[],ti="undefined"!=typeof navigator&&/(MSIE|Trident|Edge)/.test(navigator.userAgent),ta=e=>!/(dexie\.js|dexie\.min\.js)/.test(e);function to(e,t){return e?t?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:e:t}let ts={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function tc(e){return"string"!=typeof e||/\./.test(e)?e=>e:t=>(void 0===t[e]&&e in t&&delete(t=T(t))[e],t)}class tu{_trans(e,t,n){let r=this._tx||ej.trans,i=this.name;function a(e,n,r){if(!r.schema[i])throw new Q.NotFound("Table "+i+" not part of transaction");return t(r.idbtrans,r)}let o=eF();try{return r&&r.db===this.db?r===ej.trans?r._promise(e,a,n):eG(()=>r._promise(e,a,n),{trans:r,transless:ej.transless||ej}):function e(t,n,r,i){if(t.idbdb&&(t._state.openComplete||ej.letThrough||t._vip)){var a=t._createTransaction(n,r,t._dbSchema);try{a.create(),t._state.PR1398_maxLoop=3}catch(a){return a.name===G.InvalidState&&t.isOpen()&&--t._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),t._close(),t.open().then(()=>e(t,n,r,i))):te(a)}return a._promise(n,(e,t)=>eG(()=>(ej.trans=a,i(e,t,a)))).then(e=>a._completion.then(()=>e))}if(t._state.openComplete)return te(new Q.DatabaseClosed(t._state.dbOpenError));if(!t._state.isBeingOpened){if(!t._options.autoOpen)return te(new Q.DatabaseClosed);t.open().catch(en)}return t._state.dbReadyPromise.then(()=>e(t,n,r,i))}(this.db,e,[this.name],a)}finally{o&&eU()}}get(e,t){return e&&e.constructor===Object?this.where(e).first(t):this._trans("readonly",t=>this.core.get({trans:t,key:e}).then(e=>this.hook.reading.fire(e))).then(t)}where(e){if("string"==typeof e)return new this.db.WhereClause(this,e);if(o(e))return new this.db.WhereClause(this,`[${e.join("+")}]`);let t=a(e);if(1===t.length)return this.where(t[0]).equals(e[t[0]]);let n=this.schema.indexes.concat(this.schema.primKey).filter(e=>e.compound&&t.every(t=>e.keyPath.indexOf(t)>=0)&&e.keyPath.every(e=>t.indexOf(e)>=0))[0];if(n&&this.db._maxKey!==tt)return this.where(n.name).equals(n.keyPath.map(t=>e[t]));!n&&K&&console.warn(`The query ${JSON.stringify(e)} on ${this.name} would benefit of a compound index [${t.join("+")}]`);let{idxByName:r}=this.schema,i=this.db._deps.indexedDB;function s(e,t){try{return 0===i.cmp(e,t)}catch(e){return!1}}let[c,u]=t.reduce(([t,n],i)=>{let a=r[i],c=e[i];return[t||a,t||!a?to(n,a&&a.multi?e=>{let t=O(e,i);return o(t)&&t.some(e=>s(c,e))}:e=>s(c,O(e,i))):n]},[null,null]);return c?this.where(c.name).equals(e[c.keyPath]).filter(u):n?this.filter(u):this.where(t).equals("")}filter(e){return this.toCollection().and(e)}count(e){return this.toCollection().count(e)}offset(e){return this.toCollection().offset(e)}limit(e){return this.toCollection().limit(e)}each(e){return this.toCollection().each(e)}toArray(e){return this.toCollection().toArray(e)}toCollection(){return new this.db.Collection(new this.db.WhereClause(this))}orderBy(e){return new this.db.Collection(new this.db.WhereClause(this,o(e)?`[${e.join("+")}]`:e))}reverse(){return this.toCollection().reverse()}mapToClass(e){this.schema.mappedClass=e;let t=t=>{if(!t)return t;let n=Object.create(e.prototype);for(var r in t)if(l(t,r))try{n[r]=t[r]}catch(e){}return n};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=t,this.hook("reading",t),e}defineClass(){return this.mapToClass(function(e){s(this,e)})}add(e,t){let{auto:n,keyPath:r}=this.schema.primKey,i=e;return r&&n&&(i=tc(r)(e)),this._trans("readwrite",e=>this.core.mutate({trans:e,type:"add",keys:null!=t?[t]:null,values:[i]})).then(e=>e.numFailures?eT.reject(e.failures[0]):e.lastResult).then(t=>{if(r)try{S(e,r,t)}catch(e){}return t})}update(e,t){if("object"!=typeof e||o(e))return this.where(":id").equals(e).modify(t);{let n=O(e,this.schema.primKey.keyPath);if(void 0===n)return te(new Q.InvalidArgument("Given object does not contain its primary key"));try{"function"!=typeof t?a(t).forEach(n=>{S(e,n,t[n])}):t(e,{value:e,primKey:n})}catch(e){}return this.where(":id").equals(n).modify(t)}}put(e,t){let{auto:n,keyPath:r}=this.schema.primKey,i=e;return r&&n&&(i=tc(r)(e)),this._trans("readwrite",e=>this.core.mutate({trans:e,type:"put",values:[i],keys:null!=t?[t]:null})).then(e=>e.numFailures?eT.reject(e.failures[0]):e.lastResult).then(t=>{if(r)try{S(e,r,t)}catch(e){}return t})}delete(e){return this._trans("readwrite",t=>this.core.mutate({trans:t,type:"delete",keys:[e]})).then(e=>e.numFailures?eT.reject(e.failures[0]):void 0)}clear(){return this._trans("readwrite",e=>this.core.mutate({trans:e,type:"deleteRange",range:ts})).then(e=>e.numFailures?eT.reject(e.failures[0]):void 0)}bulkGet(e){return this._trans("readonly",t=>this.core.getMany({keys:e,trans:t}).then(e=>e.map(e=>this.hook.reading.fire(e))))}bulkAdd(e,t,n){let r=Array.isArray(t)?t:void 0,i=(n=n||(r?void 0:t))?n.allKeys:void 0;return this._trans("readwrite",t=>{let{auto:n,keyPath:a}=this.schema.primKey;if(a&&r)throw new Q.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(r&&r.length!==e.length)throw new Q.InvalidArgument("Arguments objects and keys must have the same length");let o=e.length,s=a&&n?e.map(tc(a)):e;return this.core.mutate({trans:t,type:"add",keys:r,values:s,wantResults:i}).then(({numFailures:e,results:t,lastResult:n,failures:r})=>{if(0===e)return i?t:n;throw new Y(`${this.name}.bulkAdd(): ${e} of ${o} operations failed`,r)})})}bulkPut(e,t,n){let r=Array.isArray(t)?t:void 0,i=(n=n||(r?void 0:t))?n.allKeys:void 0;return this._trans("readwrite",t=>{let{auto:n,keyPath:a}=this.schema.primKey;if(a&&r)throw new Q.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(r&&r.length!==e.length)throw new Q.InvalidArgument("Arguments objects and keys must have the same length");let o=e.length,s=a&&n?e.map(tc(a)):e;return this.core.mutate({trans:t,type:"put",keys:r,values:s,wantResults:i}).then(({numFailures:e,results:t,lastResult:n,failures:r})=>{if(0===e)return i?t:n;throw new Y(`${this.name}.bulkPut(): ${e} of ${o} operations failed`,r)})})}bulkDelete(e){let t=e.length;return this._trans("readwrite",t=>this.core.mutate({trans:t,type:"delete",keys:e})).then(({numFailures:e,lastResult:n,failures:r})=>{if(0===e)return n;throw new Y(`${this.name}.bulkDelete(): ${e} of ${t} operations failed`,r)})}}function tl(e){var t={},n=function(n,r){if(r){for(var i=arguments.length,a=Array(i-1);--i;)a[i-1]=arguments[i];return t[n].subscribe.apply(null,a),e}if("string"==typeof n)return t[n]};n.addEventType=s;for(var r=1,i=arguments.length;r<i;++r)s(arguments[r]);return n;function s(e,r,i){if("object"==typeof e){var c;return void a(c=e).forEach(function(e){var t=c[e];if(o(t))s(e,c[e][0],c[e][1]);else{if("asap"!==t)throw new Q.InvalidArgument("Invalid event config");var n=s(e,er,function(){for(var e=arguments.length,t=Array(e);e--;)t[e]=arguments[e];n.subscribers.forEach(function(e){E(function(){e.apply(null,t)})})})}})}r||(r=eu),i||(i=en);var u={subscribers:[],fire:i,subscribe:function(e){-1===u.subscribers.indexOf(e)&&(u.subscribers.push(e),u.fire=r(u.fire,e))},unsubscribe:function(e){u.subscribers=u.subscribers.filter(function(t){return t!==e}),u.fire=u.subscribers.reduce(r,i)}};return t[e]=n[e]=u,u}}function tf(e,t){return p(t).from({prototype:e}),t}function th(e,t){return!(e.filter||e.algorithm||e.or)&&(t?e.justLimit:!e.replayFilter)}function td(e,t){e.filter=to(e.filter,t)}function tp(e,t,n){var r=e.replayFilter;e.replayFilter=r?()=>to(r(),t()):t,e.justLimit=n&&!r}function ty(e,t){if(e.isPrimKey)return t.primaryKey;let n=t.getIndexByKeyPath(e.index);if(!n)throw new Q.Schema("KeyPath "+e.index+" on object store "+t.name+" is not indexed");return n}function tv(e,t,n){let r=ty(e,t.schema);return t.openCursor({trans:n,values:!e.keysOnly,reverse:"prev"===e.dir,unique:!!e.unique,query:{index:r,range:e.range}})}function tg(e,t,n,r){let i=e.replayFilter?to(e.filter,e.replayFilter()):e.filter;if(e.or){let a={},o=(e,n,r)=>{if(!i||i(n,r,e=>n.stop(e),e=>n.fail(e))){var o=n.primaryKey,s=""+o;"[object ArrayBuffer]"===s&&(s=""+new Uint8Array(o)),l(a,s)||(a[s]=!0,t(e,n,r))}};return Promise.all([e.or._iterate(o,n),tb(tv(e,r,n),e.algorithm,o,!e.keysOnly&&e.valueMapper)])}return tb(tv(e,r,n),to(e.algorithm,i),t,!e.keysOnly&&e.valueMapper)}function tb(e,t,n,r){var i=eq(r?(e,t,i)=>n(r(e),t,i):n);return e.then(e=>{if(e)return e.start(()=>{var n=()=>e.continue();t&&!t(e,e=>n=e,t=>{e.stop(t),n=en},t=>{e.fail(t),n=en})||i(e.value,e,e=>n=e),n()})})}function tm(e,t){try{let n=tw(e),r=tw(t);if(n!==r)return"Array"===n?1:"Array"===r?-1:"binary"===n?1:"binary"===r?-1:"string"===n?1:"string"===r?-1:"Date"===n?1:"Date"!==r?NaN:-1;switch(n){case"number":case"Date":case"string":return e>t?1:e<t?-1:0;case"binary":return function(e,t){let n=e.length,r=t.length,i=n<r?n:r;for(let n=0;n<i;++n)if(e[n]!==t[n])return e[n]<t[n]?-1:1;return n===r?0:n<r?-1:1}(t_(e),t_(t));case"Array":return function(e,t){let n=e.length,r=t.length,i=n<r?n:r;for(let n=0;n<i;++n){let r=tm(e[n],t[n]);if(0!==r)return r}return n===r?0:n<r?-1:1}(e,t)}}catch(e){}return NaN}function tw(e){let t=typeof e;if("object"!==t)return t;if(ArrayBuffer.isView(e))return"binary";let n=I(e);return"ArrayBuffer"===n?"binary":n}function t_(e){return e instanceof Uint8Array?e:ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e)}class tE{_read(e,t){var n=this._ctx;return n.error?n.table._trans(null,te.bind(null,n.error)):n.table._trans("readonly",e).then(t)}_write(e){var t=this._ctx;return t.error?t.table._trans(null,te.bind(null,t.error)):t.table._trans("readwrite",e,"locked")}_addAlgorithm(e){var t=this._ctx;t.algorithm=to(t.algorithm,e)}_iterate(e,t){return tg(this._ctx,e,t,this._ctx.table.core)}clone(e){var t=Object.create(this.constructor.prototype),n=Object.create(this._ctx);return e&&s(n,e),t._ctx=n,t}raw(){return this._ctx.valueMapper=null,this}each(e){var t=this._ctx;return this._read(n=>tg(t,e,n,t.table.core))}count(e){return this._read(e=>{let t=this._ctx,n=t.table.core;if(th(t,!0))return n.count({trans:e,query:{index:ty(t,n.schema),range:t.range}}).then(e=>Math.min(e,t.limit));var r=0;return tg(t,()=>(++r,!1),e,n).then(()=>r)}).then(e)}sortBy(e,t){let n=e.split(".").reverse(),r=n[0],i=n.length-1;function a(e,t){return t?a(e[n[t]],t-1):e[r]}var o="next"===this._ctx.dir?1:-1;function s(e,t){var n=a(e,i),r=a(t,i);return n<r?-o:n>r?o:0}return this.toArray(function(e){return e.sort(s)}).then(t)}toArray(e){return this._read(e=>{var t=this._ctx;if("next"===t.dir&&th(t,!0)&&t.limit>0){let{valueMapper:n}=t,r=ty(t,t.table.core.schema);return t.table.core.query({trans:e,limit:t.limit,values:!0,query:{index:r,range:t.range}}).then(({result:e})=>n?e.map(n):e)}{let n=[];return tg(t,e=>n.push(e),e,t.table.core).then(()=>n)}},e)}offset(e){var t=this._ctx;return e<=0||(t.offset+=e,th(t)?tp(t,()=>{var t=e;return(e,n)=>0===t||(1===t?--t:n(()=>{e.advance(t),t=0}),!1)}):tp(t,()=>{var t=e;return()=>--t<0})),this}limit(e){return this._ctx.limit=Math.min(this._ctx.limit,e),tp(this._ctx,()=>{var t=e;return function(e,n,r){return--t<=0&&n(r),t>=0}},!0),this}until(e,t){return td(this._ctx,function(n,r,i){return!e(n.value)||(r(i),t)}),this}first(e){return this.limit(1).toArray(function(e){return e[0]}).then(e)}last(e){return this.reverse().first(e)}filter(e){var t;return td(this._ctx,function(t){return e(t.value)}),(t=this._ctx).isMatch=to(t.isMatch,e),this}and(e){return this.filter(e)}or(e){return new this.db.WhereClause(this._ctx.table,e,this)}reverse(){return this._ctx.dir="prev"===this._ctx.dir?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this}desc(){return this.reverse()}eachKey(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each(function(t,n){e(n.key,n)})}eachUniqueKey(e){return this._ctx.unique="unique",this.eachKey(e)}eachPrimaryKey(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each(function(t,n){e(n.primaryKey,n)})}keys(e){var t=this._ctx;t.keysOnly=!t.isMatch;var n=[];return this.each(function(e,t){n.push(t.key)}).then(function(){return n}).then(e)}primaryKeys(e){var t=this._ctx;if("next"===t.dir&&th(t,!0)&&t.limit>0)return this._read(e=>{var n=ty(t,t.table.core.schema);return t.table.core.query({trans:e,values:!1,limit:t.limit,query:{index:n,range:t.range}})}).then(({result:e})=>e).then(e);t.keysOnly=!t.isMatch;var n=[];return this.each(function(e,t){n.push(t.primaryKey)}).then(function(){return n}).then(e)}uniqueKeys(e){return this._ctx.unique="unique",this.keys(e)}firstKey(e){return this.limit(1).keys(function(e){return e[0]}).then(e)}lastKey(e){return this.reverse().firstKey(e)}distinct(){var e=this._ctx,t=e.index&&e.table.schema.idxByName[e.index];if(!t||!t.multi)return this;var n={};return td(this._ctx,function(e){var t=e.primaryKey.toString(),r=l(n,t);return n[t]=!0,!r}),this}modify(e){var t=this._ctx;return this._write(n=>{var r;if("function"==typeof e)r=e;else{var i=a(e),o=i.length;r=function(t){for(var n=!1,r=0;r<o;++r){var a=i[r],s=e[a];O(t,a)!==s&&(S(t,a,s),n=!0)}return n}}let s=t.table.core,{outbound:c,extractKey:u}=s.schema.primaryKey,l=this.db._options.modifyChunkSize||200,f=[],h=0,d=[],p=(e,t)=>{let{failures:n,numFailures:r}=t;for(let t of(h+=e-r,a(n)))f.push(n[t])};return this.clone().primaryKeys().then(i=>{let a=o=>{let f=Math.min(l,i.length-o);return s.getMany({trans:n,keys:i.slice(o,o+f),cache:"immutable"}).then(h=>{let d=[],y=[],v=c?[]:null,g=[];for(let e=0;e<f;++e){let t=h[e],n={value:T(t),primKey:i[o+e]};!1!==r.call(n,n.value,n)&&(null==n.value?g.push(i[o+e]):c||0===tm(u(t),u(n.value))?(y.push(n.value),c&&v.push(i[o+e])):(g.push(i[o+e]),d.push(n.value)))}let b=th(t)&&t.limit===1/0&&("function"!=typeof e||e===tx)&&{index:t.index,range:t.range};return Promise.resolve(d.length>0&&s.mutate({trans:n,type:"add",values:d}).then(e=>{for(let t in e.failures)g.splice(parseInt(t),1);p(d.length,e)})).then(()=>(y.length>0||b&&"object"==typeof e)&&s.mutate({trans:n,type:"put",keys:v,values:y,criteria:b,changeSpec:"function"!=typeof e&&e}).then(e=>p(y.length,e))).then(()=>(g.length>0||b&&e===tx)&&s.mutate({trans:n,type:"delete",keys:g,criteria:b}).then(e=>p(g.length,e))).then(()=>i.length>o+f&&a(o+l))})};return a(0).then(()=>{if(f.length>0)throw new X("Error modifying one or more objects",f,h,d);return i.length})})})}delete(){var e=this._ctx,t=e.range;return th(e)&&(e.isPrimKey&&!ti||3===t.type)?this._write(n=>{let{primaryKey:r}=e.table.core.schema;return e.table.core.count({trans:n,query:{index:r,range:t}}).then(r=>e.table.core.mutate({trans:n,type:"deleteRange",range:t}).then(({failures:e,lastResult:t,results:n,numFailures:i})=>{if(i)throw new X("Could not delete some values",Object.keys(e).map(t=>e[t]),r-i);return r-i}))}):this.modify(tx)}}let tx=(e,t)=>t.value=null;function tO(e,t){return e<t?-1:+(e!==t)}function tS(e,t){return e>t?-1:+(e!==t)}function tk(e,t,n){var r=e instanceof tD?new e.Collection(e):e;return r._ctx.error=n?new n(t):TypeError(t),r}function tA(e){return new e.Collection(e,()=>tP("")).limit(0)}function tj(e,t,n,r){var i,a,o,s,c,u,l,f=n.length;if(!n.every(e=>"string"==typeof e))return tk(e,"String expected.");function h(e){i="next"===e?e=>e.toUpperCase():e=>e.toLowerCase(),a="next"===e?e=>e.toLowerCase():e=>e.toUpperCase(),o="next"===e?tO:tS;var t=n.map(function(e){return{lower:a(e),upper:i(e)}}).sort(function(e,t){return o(e.lower,t.lower)});s=t.map(function(e){return e.upper}),c=t.map(function(e){return e.lower}),u=e,l="next"===e?"":r}h("next");var d=new e.Collection(e,()=>tC(s[0],c[f-1]+r));d._ondirectionchange=function(e){h(e)};var p=0;return d._addAlgorithm(function(e,n,r){var i=e.key;if("string"!=typeof i)return!1;var h=a(i);if(t(h,c,p))return!0;for(var d=null,y=p;y<f;++y){var v=function(e,t,n,r,i,a){for(var o=Math.min(e.length,r.length),s=-1,c=0;c<o;++c){var u=t[c];if(u!==r[c])return 0>i(e[c],n[c])?e.substr(0,c)+n[c]+n.substr(c+1):0>i(e[c],r[c])?e.substr(0,c)+r[c]+n.substr(c+1):s>=0?e.substr(0,s)+t[s]+n.substr(s+1):null;0>i(e[c],u)&&(s=c)}return o<r.length&&"next"===a?e+n.substr(e.length):o<e.length&&"prev"===a?e.substr(0,n.length):s<0?null:e.substr(0,s)+r[s]+n.substr(s+1)}(i,h,s[y],c[y],o,u);null===v&&null===d?p=y+1:(null===d||o(d,v)>0)&&(d=v)}return n(null!==d?function(){e.continue(d+l)}:r),!1}),d}function tC(e,t,n,r){return{type:2,lower:e,upper:t,lowerOpen:n,upperOpen:r}}function tP(e){return{type:1,lower:e,upper:e}}class tD{get Collection(){return this._ctx.table.db.Collection}between(e,t,n,r){n=!1!==n,r=!0===r;try{return this._cmp(e,t)>0||0===this._cmp(e,t)&&(n||r)&&(!n||!r)?tA(this):new this.Collection(this,()=>tC(e,t,!n,!r))}catch(e){return tk(this,tn)}}equals(e){return null==e?tk(this,tn):new this.Collection(this,()=>tP(e))}above(e){return null==e?tk(this,tn):new this.Collection(this,()=>tC(e,void 0,!0))}aboveOrEqual(e){return null==e?tk(this,tn):new this.Collection(this,()=>tC(e,void 0,!1))}below(e){return null==e?tk(this,tn):new this.Collection(this,()=>tC(void 0,e,!1,!0))}belowOrEqual(e){return null==e?tk(this,tn):new this.Collection(this,()=>tC(void 0,e))}startsWith(e){return"string"!=typeof e?tk(this,"String expected."):this.between(e,e+tt,!0,!0)}startsWithIgnoreCase(e){return""===e?this.startsWith(e):tj(this,(e,t)=>0===e.indexOf(t[0]),[e],tt)}equalsIgnoreCase(e){return tj(this,(e,t)=>e===t[0],[e],"")}anyOfIgnoreCase(){var e=Z.apply(B,arguments);return 0===e.length?tA(this):tj(this,(e,t)=>-1!==t.indexOf(e),e,"")}startsWithAnyOfIgnoreCase(){var e=Z.apply(B,arguments);return 0===e.length?tA(this):tj(this,(e,t)=>t.some(t=>0===e.indexOf(t)),e,tt)}anyOf(){let e=Z.apply(B,arguments),t=this._cmp;try{e.sort(t)}catch(e){return tk(this,tn)}if(0===e.length)return tA(this);let n=new this.Collection(this,()=>tC(e[0],e[e.length-1]));n._ondirectionchange=n=>{t="next"===n?this._ascending:this._descending,e.sort(t)};let r=0;return n._addAlgorithm((n,i,a)=>{let o=n.key;for(;t(o,e[r])>0;)if(++r===e.length)return i(a),!1;return 0===t(o,e[r])||(i(()=>{n.continue(e[r])}),!1)}),n}notEqual(e){return this.inAnyRange([[-1/0,e],[e,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})}noneOf(){let e=Z.apply(B,arguments);if(0===e.length)return new this.Collection(this);try{e.sort(this._ascending)}catch(e){return tk(this,tn)}let t=e.reduce((e,t)=>e?e.concat([[e[e.length-1][1],t]]):[[-1/0,t]],null);return t.push([e[e.length-1],this.db._maxKey]),this.inAnyRange(t,{includeLowers:!1,includeUppers:!1})}inAnyRange(e,t){let n=this._cmp,r=this._ascending,i=this._descending,a=this._min,o=this._max;if(0===e.length)return tA(this);if(!e.every(e=>void 0!==e[0]&&void 0!==e[1]&&0>=r(e[0],e[1])))return tk(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",Q.InvalidArgument);let s=!t||!1!==t.includeLowers,c=t&&!0===t.includeUppers,u,l=r;function f(e,t){return l(e[0],t[0])}try{(u=e.reduce(function(e,t){let r=0,i=e.length;for(;r<i;++r){let i=e[r];if(0>n(t[0],i[1])&&n(t[1],i[0])>0){i[0]=a(i[0],t[0]),i[1]=o(i[1],t[1]);break}}return r===i&&e.push(t),e},[])).sort(f)}catch(e){return tk(this,tn)}let h=0,d=c?e=>r(e,u[h][1])>0:e=>r(e,u[h][1])>=0,p=s?e=>i(e,u[h][0])>0:e=>i(e,u[h][0])>=0,y=d,v=new this.Collection(this,()=>tC(u[0][0],u[u.length-1][1],!s,!c));return v._ondirectionchange=e=>{"next"===e?(y=d,l=r):(y=p,l=i),u.sort(f)},v._addAlgorithm((e,t,n)=>{for(var i=e.key;y(i);)if(++h===u.length)return t(n),!1;return!!(!d(i)&&!p(i))||(0===this._cmp(i,u[h][1])||0===this._cmp(i,u[h][0])||t(()=>{l===r?e.continue(u[h][0]):e.continue(u[h][1])}),!1)}),v}startsWithAnyOf(){let e=Z.apply(B,arguments);return e.every(e=>"string"==typeof e)?0===e.length?tA(this):this.inAnyRange(e.map(e=>[e,e+tt])):tk(this,"startsWithAnyOf() only works with strings")}}function tT(e){return eq(function(t){return tR(t),e(t.target.error),!1})}function tR(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()}let tI=tl(null,"storagemutated");class tN{_lock(){return w(!ej.global),++this._reculock,1!==this._reculock||ej.global||(ej.lockOwnerFor=this),this}_unlock(){if(w(!ej.global),0==--this._reculock)for(ej.global||(ej.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var e=this._blockedFuncs.shift();try{e4(e[1],e[0])}catch(e){}}return this}_locked(){return this._reculock&&ej.lockOwnerFor!==this}create(e){if(!this.mode)return this;let t=this.db.idbdb,n=this.db._state.dbOpenError;if(w(!this.idbtrans),!e&&!t)switch(n&&n.name){case"DatabaseClosedError":throw new Q.DatabaseClosed(n);case"MissingAPIError":throw new Q.MissingAPI(n.message,n);default:throw new Q.OpenFailed(n)}if(!this.active)throw new Q.TransactionInactive;return w(null===this._completion._state),(e=this.idbtrans=e||(this.db.core?this.db.core.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}):t.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}))).onerror=eq(t=>{tR(t),this._reject(e.error)}),e.onabort=eq(t=>{tR(t),this.active&&this._reject(new Q.Abort(e.error)),this.active=!1,this.on("abort").fire(t)}),e.oncomplete=eq(()=>{this.active=!1,this._resolve(),"mutatedParts"in e&&tI.storagemutated.fire(e.mutatedParts)}),this}_promise(e,t,n){if("readwrite"===e&&"readwrite"!==this.mode)return te(new Q.ReadOnly("Transaction is readonly"));if(!this.active)return te(new Q.TransactionInactive);if(this._locked())return new eT((r,i)=>{this._blockedFuncs.push([()=>{this._promise(e,t,n).then(r,i)},ej])});if(n)return eG(()=>{var e=new eT((e,n)=>{this._lock();let r=t(e,n,this);r&&r.then&&r.then(e,n)});return e.finally(()=>this._unlock()),e._lib=!0,e});var r=new eT((e,n)=>{var r=t(e,n,this);r&&r.then&&r.then(e,n)});return r._lib=!0,r}_root(){return this.parent?this.parent._root():this}waitFor(e){var t=this._root();let n=eT.resolve(e);if(t._waitingFor)t._waitingFor=t._waitingFor.then(()=>n);else{t._waitingFor=n,t._waitingQueue=[];var r=t.idbtrans.objectStore(t.storeNames[0]);!function e(){for(++t._spinCount;t._waitingQueue.length;)t._waitingQueue.shift()();t._waitingFor&&(r.get(-1/0).onsuccess=e)}()}var i=t._waitingFor;return new eT((e,r)=>{n.then(n=>t._waitingQueue.push(eq(e.bind(null,n))),e=>t._waitingQueue.push(eq(r.bind(null,e)))).finally(()=>{t._waitingFor===i&&(t._waitingFor=null)})})}abort(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new Q.Abort))}table(e){let t=this._memoizedTables||(this._memoizedTables={});if(l(t,e))return t[e];let n=this.schema[e];if(!n)throw new Q.NotFound("Table "+e+" not part of transaction");let r=new this.db.Table(e,n,this);return r.core=this.db.core.table(e),t[e]=r,r}}function tL(e,t,n,r,i,a,o){return{name:e,keyPath:t,unique:n,multi:r,auto:i,compound:a,src:(n&&!o?"&":"")+(r?"*":"")+(i?"++":"")+tB(t)}}function tB(e){return"string"==typeof e?e:e?"["+[].join.call(e,"+")+"]":""}function tZ(e,t,n){return{name:e,primKey:t,indexes:n,mappedClass:null,idxByName:x(n,e=>[e.name,e])}}let tM=e=>{try{return e.only([[]]),tM=()=>[[]],[[]]}catch(e){return tM=()=>tt,tt}};function tK(e){return null==e?()=>{}:"string"==typeof e?1===e.split(".").length?t=>t[e]:t=>O(t,e):t=>O(t,e)}function tF(e){return[].slice.call(e)}let tU=0;function tV(e){return null==e?":id":"string"==typeof e?e:`[${e.join("+")}]`}function t$({_novip:e},t){let n=t.db,r=function(e,t,{IDBKeyRange:n,indexedDB:r},i){var a;return{dbcore:(a=function(e,t,n){function r(e){if(3===e.type)return null;if(4===e.type)throw Error("Cannot convert never type to IDBKeyRange");let{lower:n,upper:r,lowerOpen:i,upperOpen:a}=e;return void 0===n?void 0===r?null:t.upperBound(r,!!a):void 0===r?t.lowerBound(n,!!i):t.bound(n,r,!!i,!!a)}let{schema:i,hasGetAll:a}=function(e,t){let n=tF(e.objectStoreNames);return{schema:{name:e.name,tables:n.map(e=>t.objectStore(e)).map(e=>{let{keyPath:t,autoIncrement:n}=e,r=o(t),i=null==t,a={},s={name:e.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:i,compound:r,keyPath:t,autoIncrement:n,unique:!0,extractKey:tK(t)},indexes:tF(e.indexNames).map(t=>e.index(t)).map(e=>{let{name:t,unique:n,multiEntry:r,keyPath:i}=e,s={name:t,compound:o(i),keyPath:i,unique:n,multiEntry:r,extractKey:tK(i)};return a[tV(i)]=s,s}),getIndexByKeyPath:e=>a[tV(e)]};return a[":id"]=s.primaryKey,null!=t&&(a[tV(t)]=s.primaryKey),s})},hasGetAll:n.length>0&&"getAll"in t.objectStore(n[0])&&!("undefined"!=typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}}(e,n),s=i.tables.map(e=>(function(e){let t=e.name;return{name:t,schema:e,mutate:function({trans:e,type:n,keys:i,values:a,range:o}){return new Promise((s,c)=>{let u;s=eq(s);let l=e.objectStore(t),f=null==l.keyPath,h="put"===n||"add"===n;if(!h&&"delete"!==n&&"deleteRange"!==n)throw Error("Invalid operation type: "+n);let{length:d}=i||a||{length:1};if(i&&a&&i.length!==a.length)throw Error("Given keys array must have same length as given values array.");if(0===d)return s({numFailures:0,failures:{},results:[],lastResult:void 0});let p=[],y=[],v=0,g=e=>{++v,tR(e)};if("deleteRange"===n){if(4===o.type)return s({numFailures:v,failures:y,results:[],lastResult:void 0});3===o.type?p.push(u=l.clear()):p.push(u=l.delete(r(o)))}else{let[e,t]=h?f?[a,i]:[a,null]:[i,null];if(h)for(let r=0;r<d;++r)p.push(u=t&&void 0!==t[r]?l[n](e[r],t[r]):l[n](e[r])),u.onerror=g;else for(let t=0;t<d;++t)p.push(u=l[n](e[t])),u.onerror=g}let b=e=>{let t=e.target.result;p.forEach((e,t)=>null!=e.error&&(y[t]=e.error)),s({numFailures:v,failures:y,results:"delete"===n?i:p.map(e=>e.result),lastResult:t})};u.onerror=e=>{g(e),b(e)},u.onsuccess=b})},getMany:({trans:e,keys:n})=>new Promise((r,i)=>{r=eq(r);let a=e.objectStore(t),o=n.length,s=Array(o),c,u=0,l=0,f=e=>{let t=e.target;s[t._pos]=t.result,++l===u&&r(s)},h=tT(i);for(let e=0;e<o;++e)null!=n[e]&&((c=a.get(n[e]))._pos=e,c.onsuccess=f,c.onerror=h,++u);0===u&&r(s)}),get:({trans:e,key:n})=>new Promise((r,i)=>{r=eq(r);let a=e.objectStore(t).get(n);a.onsuccess=e=>r(e.target.result),a.onerror=tT(i)}),query:e=>new Promise((n,i)=>{n=eq(n);let{trans:o,values:s,limit:c,query:u}=e,l=c===1/0?void 0:c,{index:f,range:h}=u,d=o.objectStore(t),p=f.isPrimaryKey?d:d.index(f.name),y=r(h);if(0===c)return n({result:[]});if(a){let e=s?p.getAll(y,l):p.getAllKeys(y,l);e.onsuccess=e=>n({result:e.target.result}),e.onerror=tT(i)}else{let e=0,t=!s&&"openKeyCursor"in p?p.openKeyCursor(y):p.openCursor(y),r=[];t.onsuccess=i=>{let a=t.result;return a?(r.push(s?a.value:a.primaryKey),++e===c?n({result:r}):void a.continue()):n({result:r})},t.onerror=tT(i)}}),openCursor:function({trans:e,values:n,query:i,reverse:a,unique:o}){return new Promise((s,c)=>{s=eq(s);let{index:u,range:l}=i,f=e.objectStore(t),h=u.isPrimaryKey?f:f.index(u.name),d=a?o?"prevunique":"prev":o?"nextunique":"next",p=!n&&"openKeyCursor"in h?h.openKeyCursor(r(l),d):h.openCursor(r(l),d);p.onerror=tT(c),p.onsuccess=eq(t=>{let n=p.result;if(!n)return void s(null);n.___id=++tU,n.done=!1;let r=n.continue.bind(n),i=n.continuePrimaryKey;i&&(i=i.bind(n));let a=n.advance.bind(n),o=()=>{throw Error("Cursor not stopped")};n.trans=e,n.stop=n.continue=n.continuePrimaryKey=n.advance=()=>{throw Error("Cursor not started")},n.fail=eq(c),n.next=function(){let e=1;return this.start(()=>e--?this.continue():this.stop()).then(()=>this)},n.start=e=>{let t=new Promise((e,t)=>{e=eq(e),p.onerror=tT(t),n.fail=t,n.stop=t=>{n.stop=n.continue=n.continuePrimaryKey=n.advance=o,e(t)}}),s=()=>{if(p.result)try{e()}catch(e){n.fail(e)}else n.done=!0,n.start=()=>{throw Error("Cursor behind last entry")},n.stop()};return p.onsuccess=eq(e=>{p.onsuccess=s,s()}),n.continue=r,n.continuePrimaryKey=i,n.advance=a,s(),t},s(n)},c)})},count({query:e,trans:n}){let{index:i,range:a}=e;return new Promise((e,o)=>{let s=n.objectStore(t),c=i.isPrimaryKey?s:s.index(i.name),u=r(a),l=u?c.count(u):c.count();l.onsuccess=eq(t=>e(t.target.result)),l.onerror=tT(o)})}}})(e)),c={};return s.forEach(e=>c[e.name]=e),{stack:"dbcore",transaction:e.transaction.bind(e),table(e){if(!c[e])throw Error(`Table '${e}' not found`);return c[e]},MIN_KEY:-1/0,MAX_KEY:tM(t),schema:i}}(t,n,i),e.dbcore.reduce((e,{create:t})=>({...e,...t(e)}),a))}}(e._middlewares,n,e._deps,t);e.core=r.dbcore,e.tables.forEach(t=>{let n=t.name;e.core.schema.tables.some(e=>e.name===n)&&(t.core=e.core.table(n),e[n]instanceof e.Table&&(e[n].core=t.core))})}function tq({_novip:e},t,n,r){n.forEach(n=>{let i=r[n];t.forEach(t=>{let r=v(t,n);(!r||"value"in r&&void 0===r.value)&&(t===e.Transaction.prototype||t instanceof e.Transaction?d(t,n,{get(){return this.table(n)},set(e){h(this,n,{value:e,writable:!0,configurable:!0,enumerable:!0})}}):t[n]=new e.Table(n,i))})})}function tW({_novip:e},t){t.forEach(t=>{for(let n in t)t[n]instanceof e.Table&&delete t[n]})}function tz(e,t){return e._cfg.version-t._cfg.version}function tH(e,t){let n,r={del:[],add:[],change:[]};for(n in e)t[n]||r.del.push(n);for(n in t){let i=e[n],a=t[n];if(i){let e={name:n,def:a,recreate:!1,del:[],add:[],change:[]};if(""+(i.primKey.keyPath||"")==""+(a.primKey.keyPath||"")&&(i.primKey.auto===a.primKey.auto||ti)){let t,n=i.idxByName,o=a.idxByName;for(t in n)o[t]||e.del.push(t);for(t in o){let r=n[t],i=o[t];r?r.src!==i.src&&e.change.push(i):e.add.push(i)}(e.del.length>0||e.add.length>0||e.change.length>0)&&r.change.push(e)}else e.recreate=!0,r.change.push(e)}else r.add.push([n,a])}return r}function tJ(e,t,n,r){let i=e.db.createObjectStore(t,n.keyPath?{keyPath:n.keyPath,autoIncrement:n.auto}:{autoIncrement:n.auto});return r.forEach(e=>tX(i,e)),i}function tX(e,t){e.createIndex(t.name,t.keyPath,{unique:t.unique,multiEntry:t.multi})}function tY(e,t,n){let r={};return b(t.objectStoreNames,0).forEach(e=>{let t=n.objectStore(e),i=t.keyPath,a=tL(tB(i),i||"",!1,!1,!!t.autoIncrement,i&&"string"!=typeof i,!0),o=[];for(let e=0;e<t.indexNames.length;++e){let n=t.index(t.indexNames[e]);i=n.keyPath;var s=tL(n.name,i,!!n.unique,!!n.multiEntry,!1,i&&"string"!=typeof i,!1);o.push(s)}r[e]=tZ(e,a,o)}),r}function tG({_novip:e},t,n){let r=n.db.objectStoreNames;for(let i=0;i<r.length;++i){let a=r[i],o=n.objectStore(a);e._hasGetAll="getAll"in o;for(let e=0;e<o.indexNames.length;++e){let n=o.indexNames[e],r=o.index(n).keyPath,i="string"==typeof r?r:"["+b(r).join("+")+"]";if(t[a]){let e=t[a].idxByName[i];e&&(e.name=n,delete t[a].idxByName[i],t[a].idxByName[n]=e)}}}"undefined"!=typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&i.WorkerGlobalScope&&i instanceof i.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(e._hasGetAll=!1)}class tQ{_parseStoresSpec(e,t){a(e).forEach(n=>{if(null!==e[n]){var r=e[n].split(",").map((e,t)=>{let n=(e=e.trim()).replace(/([&*]|\+\+)/g,""),r=/^\[/.test(n)?n.match(/^\[(.*)\]$/)[1].split("+"):n;return tL(n,r||null,/\&/.test(e),/\*/.test(e),/\+\+/.test(e),o(r),0===t)}),i=r.shift();if(i.multi)throw new Q.Schema("Primary key cannot be multi-valued");r.forEach(e=>{if(e.auto)throw new Q.Schema("Only primary key can be marked as autoIncrement (++)");if(!e.keyPath)throw new Q.Schema("Index must have a name and cannot be an empty string")}),t[n]=tZ(n,i,r)}})}stores(e){let t=this.db;this._cfg.storesSource=this._cfg.storesSource?s(this._cfg.storesSource,e):e;let n=t._versions,r={},i={};return n.forEach(e=>{s(r,e._cfg.storesSource),i=e._cfg.dbschema={},e._parseStoresSpec(r,i)}),t._dbSchema=i,tW(t,[t._allTables,t,t.Transaction.prototype]),tq(t,[t._allTables,t,t.Transaction.prototype,this._cfg.tables],a(i),i),t._storeNames=a(i),this}upgrade(e){return this._cfg.contentUpgrade=el(this._cfg.contentUpgrade||en,e),this}}function t0(e,t){let n=e._dbNamesDB;return n||(n=e._dbNamesDB=new nu("__dbnames",{addons:[],indexedDB:e,IDBKeyRange:t})).version(1).stores({dbnames:"name"}),n.table("dbnames")}function t1(e){return e&&"function"==typeof e.databases}function t2(e){return eG(function(){return ej.letThrough=!0,e()})}function t6(e){var t=t=>e.next(t),n=i(t),r=i(t=>e.throw(t));function i(e){return t=>{var i=e(t),a=i.value;return i.done?a:a&&"function"==typeof a.then?a.then(n,r):o(a)?Promise.all(a).then(n,r):n(a)}}return i(t)()}function t8(e,t,n){var r=arguments.length;if(r<2)throw new Q.InvalidArgument("Too few arguments");for(var i=Array(r-1);--r;)i[r-1]=arguments[r];return n=i.pop(),[e,j(i),n]}function t9(e,t,n){let r=o(e)?e.slice():[e];for(let e=0;e<n;++e)r.push(t);return r}let t4={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:function(e){return{...e,table(t){let n=e.table(t),{schema:r}=n,i={},a=[];function o(e,t,n){let r=tV(e),s=i[r]=i[r]||[],c=null==e?0:"string"==typeof e?1:e.length,u=t>0,l={...n,isVirtual:u,keyTail:t,keyLength:c,extractKey:tK(e),unique:!u&&n.unique};return s.push(l),l.isPrimaryKey||a.push(l),c>1&&o(2===c?e[0]:e.slice(0,c-1),t+1,n),s.sort((e,t)=>e.keyTail-t.keyTail),l}let s=o(r.primaryKey.keyPath,0,r.primaryKey);for(let e of(i[":id"]=[s],r.indexes))o(e.keyPath,0,e);function c(t){var n,r;let i=t.query.index;return i.isVirtual?{...t,query:{index:i,range:(n=t.query.range,r=i.keyTail,{type:1===n.type?2:n.type,lower:t9(n.lower,n.lowerOpen?e.MAX_KEY:e.MIN_KEY,r),lowerOpen:!0,upper:t9(n.upper,n.upperOpen?e.MIN_KEY:e.MAX_KEY,r),upperOpen:!0})}}:t}return{...n,schema:{...r,primaryKey:s,indexes:a,getIndexByKeyPath:function(e){let t=i[tV(e)];return t&&t[0]}},count:e=>n.count(c(e)),query:e=>n.query(c(e)),openCursor(t){let{keyTail:r,isVirtual:i,keyLength:a}=t.query.index;return i?n.openCursor(c(t)).then(n=>n&&Object.create(n,{continue:{value:function(i){null!=i?n.continue(t9(i,t.reverse?e.MAX_KEY:e.MIN_KEY,r)):t.unique?n.continue(n.key.slice(0,a).concat(t.reverse?e.MIN_KEY:e.MAX_KEY,r)):n.continue()}},continuePrimaryKey:{value(t,i){n.continuePrimaryKey(t9(t,e.MAX_KEY,r),i)}},primaryKey:{get:()=>n.primaryKey},key:{get(){let e=n.key;return 1===a?e[0]:e.slice(0,a)}},value:{get:()=>n.value}})):n.openCursor(t)}}}}}};function t5(e,t,n,r){return n=n||{},r=r||"",a(e).forEach(i=>{if(l(t,i)){var a=e[i],o=t[i];if("object"==typeof a&&"object"==typeof o&&a&&o){let e=I(a);e!==I(o)?n[r+i]=t[i]:"Object"===e?t5(a,o,n,r+i+"."):a!==o&&(n[r+i]=t[i])}else a!==o&&(n[r+i]=t[i])}else n[r+i]=void 0}),a(t).forEach(i=>{l(e,i)||(n[r+i]=t[i])}),n}let t3={stack:"dbcore",name:"HooksMiddleware",level:2,create:e=>({...e,table(t){let n=e.table(t),{primaryKey:r}=n.schema;return{...n,mutate(e){let i=ej.trans,{deleting:a,creating:o,updating:s}=i.table(t).hook;switch(e.type){case"add":if(o.fire===en)break;return i._promise("readwrite",()=>c(e),!0);case"put":if(o.fire===en&&s.fire===en)break;return i._promise("readwrite",()=>c(e),!0);case"delete":if(a.fire===en)break;return i._promise("readwrite",()=>c(e),!0);case"deleteRange":if(a.fire===en)break;return i._promise("readwrite",()=>(function e(t,i,a){return n.query({trans:t,values:!1,query:{index:r,range:i},limit:a}).then(({result:n})=>c({type:"delete",keys:n,trans:t}).then(r=>r.numFailures>0?Promise.reject(r.failures[0]):n.length<a?{failures:[],numFailures:0,lastResult:void 0}:e(t,{...i,lower:n[n.length-1],lowerOpen:!0},a)))})(e.trans,e.range,1e4),!0)}return n.mutate(e);function c(e){var t,i;let c=ej.trans,u=e.keys||("delete"===(t=e).type?t.keys:t.keys||t.values.map(r.extractKey));if(!u)throw Error("Keys missing");return"delete"!==(e="add"===e.type||"put"===e.type?{...e,keys:u}:{...e}).type&&(e.values=[...e.values]),e.keys&&(e.keys=[...e.keys]),("add"===(i=e).type?Promise.resolve([]):n.getMany({trans:i.trans,keys:u,cache:"immutable"})).then(t=>{let i=u.map((n,i)=>{let u=t[i],f={onerror:null,onsuccess:null};if("delete"===e.type)a.fire.call(f,n,u,c);else if("add"===e.type||void 0===u){let t=o.fire.call(f,n,e.values[i],c);null==n&&null!=t&&(n=t,e.keys[i]=n,r.outbound||S(e.values[i],r.keyPath,n))}else{let t=t5(u,e.values[i]),r=s.fire.call(f,t,n,u,c);if(r){let t=e.values[i];Object.keys(r).forEach(e=>{l(t,e)?t[e]=r[e]:S(t,e,r[e])})}}return f});return n.mutate(e).then(({failures:n,results:r,numFailures:a,lastResult:o})=>{for(let a=0;a<u.length;++a){let o=r?r[a]:u[a],s=i[a];null==o?s.onerror&&s.onerror(n[a]):s.onsuccess&&s.onsuccess("put"===e.type&&t[a]?e.values[a]:o)}return{failures:n,results:r,numFailures:a,lastResult:o}}).catch(e=>(i.forEach(t=>t.onerror&&t.onerror(e)),Promise.reject(e)))})}}}}})};function t7(e,t,n){try{if(!t||t.keys.length<e.length)return null;let r=[];for(let i=0,a=0;i<t.keys.length&&a<e.length;++i)0===tm(t.keys[i],e[a])&&(r.push(n?T(t.values[i]):t.values[i]),++a);return r.length===e.length?r:null}catch(e){return null}}let ne={stack:"dbcore",level:-1,create:e=>({table:t=>{let n=e.table(t);return{...n,getMany:e=>{if(!e.cache)return n.getMany(e);let t=t7(e.keys,e.trans._cache,"clone"===e.cache);return t?eT.resolve(t):n.getMany(e).then(t=>(e.trans._cache={keys:e.keys,values:"clone"===e.cache?T(t):t},t))},mutate:e=>("add"!==e.type&&(e.trans._cache=null),n.mutate(e))}}})};function nt(e){return!("from"in e)}let nn=function(e,t){if(!this){let t=new nn;return e&&"d"in e&&s(t,e),t}s(this,arguments.length?{d:1,from:e,to:arguments.length>1?t:e}:{d:0})};function nr(e,t,n){let r=tm(t,n);if(isNaN(r))return;if(r>0)throw RangeError();if(nt(e))return s(e,{from:t,to:n,d:1});let i=e.l,a=e.r;if(0>tm(n,e.from))return i?nr(i,t,n):e.l={from:t,to:n,d:1,l:null,r:null},no(e);if(tm(t,e.to)>0)return a?nr(a,t,n):e.r={from:t,to:n,d:1,l:null,r:null},no(e);0>tm(t,e.from)&&(e.from=t,e.l=null,e.d=a?a.d+1:1),tm(n,e.to)>0&&(e.to=n,e.r=null,e.d=e.l?e.l.d+1:1);let o=!e.r;i&&!e.l&&ni(e,i),a&&o&&ni(e,a)}function ni(e,t){nt(t)||function e(t,{from:n,to:r,l:i,r:a}){nr(t,n,r),i&&e(t,i),a&&e(t,a)}(e,t)}function na(e){let t=nt(e)?null:{s:0,n:e};return{next(e){let n=arguments.length>0;for(;t;)switch(t.s){case 0:if(t.s=1,n)for(;t.n.l&&0>tm(e,t.n.from);)t={up:t,n:t.n.l,s:1};else for(;t.n.l;)t={up:t,n:t.n.l,s:1};case 1:if(t.s=2,!n||0>=tm(e,t.n.to))return{value:t.n,done:!1};case 2:if(t.n.r){t.s=3,t={up:t,n:t.n.r,s:0};continue}case 3:t=t.up}return{done:!0}}}}function no(e){var t,n;let r=((null==(t=e.r)?void 0:t.d)||0)-((null==(n=e.l)?void 0:n.d)||0),i=r>1?"r":r<-1?"l":"";if(i){let t="r"===i?"l":"r",n={...e},r=e[i];e.from=r.from,e.to=r.to,e[i]=r[i],n[i]=r[t],e[t]=n,n.d=ns(n)}e.d=ns(e)}function ns({r:e,l:t}){return(e?t?Math.max(e.d,t.d):e.d:t?t.d:0)+1}f(nn.prototype,{add(e){return ni(this,e),this},addKey(e){return nr(this,e,e),this},addKeys(e){return e.forEach(e=>nr(this,e,e)),this},[N](){return na(this)}});let nc={stack:"dbcore",level:0,create:e=>{let t=e.schema.name,n=new nn(e.MIN_KEY,e.MAX_KEY);return{...e,table:r=>{let i=e.table(r),{schema:s}=i,{primaryKey:c}=s,{extractKey:u,outbound:l}=c,f={...i,mutate:e=>{let a=e.trans,c=a.mutatedParts||(a.mutatedParts={}),u=e=>{let n=`idb://${t}/${r}/${e}`;return c[n]||(c[n]=new nn)},l=u(""),f=u(":dels"),{type:h}=e,[d,p]="deleteRange"===e.type?[e.range]:"delete"===e.type?[e.keys]:e.values.length<50?[[],e.values]:[],y=e.trans._cache;return i.mutate(e).then(e=>{if(o(d)){"delete"!==h&&(d=e.results),l.addKeys(d);let t=t7(d,y);t||"add"===h||f.addKeys(d),(t||p)&&s.indexes.forEach(function(e){let n=u(e.name||"");function r(t){return null!=t?e.extractKey(t):null}let i=t=>e.multiEntry&&o(t)?t.forEach(e=>n.addKey(e)):n.addKey(t);(t||p).forEach((e,n)=>{let a=t&&r(t[n]),o=p&&r(p[n]);0!==tm(a,o)&&(null!=a&&i(a),null!=o&&i(o))})})}else if(d){let e={from:d.lower,to:d.upper};f.add(e),l.add(e)}else l.add(n),f.add(n),s.indexes.forEach(e=>u(e.name).add(n));return e})}},h=({query:{index:t,range:n}})=>{var r,i;return[t,new nn(null!=(r=n.lower)?r:e.MIN_KEY,null!=(i=n.upper)?i:e.MAX_KEY)]},d={get:e=>[c,new nn(e.key)],getMany:e=>[c,(new nn).addKeys(e.keys)],count:h,query:h,openCursor:h};return a(d).forEach(e=>{f[e]=function(a){let{subscr:o}=ej;if(o){let s=e=>{let n=`idb://${t}/${r}/${e}`;return o[n]||(o[n]=new nn)},c=s(""),f=s(":dels"),[h,p]=d[e](a);if(s(h.name||"").add(p),!h.isPrimaryKey){if("count"!==e){let t="query"===e&&l&&a.values&&i.query({...a,values:!1});return i[e].apply(this,arguments).then(n=>{if("query"===e){if(l&&a.values)return t.then(({result:e})=>(c.addKeys(e),n));let e=a.values?n.result.map(u):n.result;a.values?c.addKeys(e):f.addKeys(e)}else if("openCursor"===e){let e=a.values;return n&&Object.create(n,{key:{get:()=>(f.addKey(n.primaryKey),n.key)},primaryKey:{get(){let e=n.primaryKey;return f.addKey(e),e}},value:{get:()=>(e&&c.addKey(n.primaryKey),n.value)}})}return n})}f.add(n)}}return i[e].apply(this,arguments)}}),f}}}};class nu{constructor(e,t){var n,r,i,a,o;this._middlewares={},this.verno=0;let s=nu.dependencies;this._options=t={addons:nu.addons,autoOpen:!0,indexedDB:s.indexedDB,IDBKeyRange:s.IDBKeyRange,...t},this._deps={indexedDB:t.indexedDB,IDBKeyRange:t.IDBKeyRange};let{addons:c}=t;this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;let u={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:en,dbReadyPromise:null,cancelOpen:en,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3};u.dbReadyPromise=new eT(e=>{u.dbReadyResolve=e}),u.openCanceller=new eT((e,t)=>{u.cancelOpen=t}),this._state=u,this.name=e,this.on=tl(this,"populate","blocked","versionchange","close",{ready:[el,en]}),this.on.ready.subscribe=m(this.on.ready.subscribe,e=>(t,n)=>{nu.vip(()=>{let r=this._state;if(r.openComplete)r.dbOpenError||eT.resolve().then(t),n&&e(t);else if(r.onReadyBeingFired)r.onReadyBeingFired.push(t),n&&e(t);else{e(t);let r=this;n||e(function e(){r.on.ready.unsubscribe(t),r.on.ready.unsubscribe(e)})}})}),this.Collection=(n=this,tf(tE.prototype,function(e,t){this.db=n;let r=ts,i=null;if(t)try{r=t()}catch(e){i=e}let a=e._ctx,o=a.table,s=o.hook.reading.fire;this._ctx={table:o,index:a.index,isPrimKey:!a.index||o.schema.primKey.keyPath&&a.index===o.schema.primKey.name,range:r,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:i,or:a.or,valueMapper:s!==er?s:null}})),this.Table=(r=this,tf(tu.prototype,function(e,t,n){this.db=r,this._tx=n,this.name=e,this.schema=t,this.hook=r._allTables[e]?r._allTables[e].hook:tl(null,{creating:[eo,en],reading:[ei,er],updating:[ec,en],deleting:[es,en]})})),this.Transaction=(i=this,tf(tN.prototype,function(e,t,n,r,a){this.db=i,this.mode=e,this.storeNames=t,this.schema=n,this.chromeTransactionDurability=r,this.idbtrans=null,this.on=tl(this,"complete","error","abort"),this.parent=a||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new eT((e,t)=>{this._resolve=e,this._reject=t}),this._completion.then(()=>{this.active=!1,this.on.complete.fire()},e=>{var t=this.active;return this.active=!1,this.on.error.fire(e),this.parent?this.parent._reject(e):t&&this.idbtrans&&this.idbtrans.abort(),te(e)})})),this.Version=(a=this,tf(tQ.prototype,function(e){this.db=a,this._cfg={version:e,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})),this.WhereClause=(o=this,tf(tD.prototype,function(e,t,n){this.db=o,this._ctx={table:e,index:":id"===t?null:t,or:n};let r=o._deps.indexedDB;if(!r)throw new Q.MissingAPI;this._cmp=this._ascending=r.cmp.bind(r),this._descending=(e,t)=>r.cmp(t,e),this._max=(e,t)=>r.cmp(e,t)>0?e:t,this._min=(e,t)=>0>r.cmp(e,t)?e:t,this._IDBKeyRange=o._deps.IDBKeyRange})),this.on("versionchange",e=>{e.newVersion>0?console.warn(`Another connection wants to upgrade database '${this.name}'. Closing db now to resume the upgrade.`):console.warn(`Another connection wants to delete database '${this.name}'. Closing db now to resume the delete request.`),this.close()}),this.on("blocked",e=>{!e.newVersion||e.newVersion<e.oldVersion?console.warn(`Dexie.delete('${this.name}') was blocked`):console.warn(`Upgrade '${this.name}' blocked by other connection holding version ${e.oldVersion/10}`)}),this._maxKey=tM(t.IDBKeyRange),this._createTransaction=(e,t,n,r)=>new this.Transaction(e,t,n,this._options.chromeTransactionDurability,r),this._fireOnBlocked=e=>{this.on("blocked").fire(e),tr.filter(e=>e.name===this.name&&e!==this&&!e._state.vcFired).map(t=>t.on("versionchange").fire(e))},this.use(t4),this.use(t3),this.use(nc),this.use(ne),this.vip=Object.create(this,{_vip:{value:!0}}),c.forEach(e=>e(this))}version(e){if(isNaN(e)||e<.1)throw new Q.Type("Given version is not a positive number");if(e=Math.round(10*e)/10,this.idbdb||this._state.isBeingOpened)throw new Q.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,e);let t=this._versions;var n=t.filter(t=>t._cfg.version===e)[0];return n||(n=new this.Version(e),t.push(n),t.sort(tz),n.stores({}),this._state.autoSchema=!1,n)}_whenReady(e){return this.idbdb&&(this._state.openComplete||ej.letThrough||this._vip)?e():new eT((e,t)=>{if(this._state.openComplete)return t(new Q.DatabaseClosed(this._state.dbOpenError));if(!this._state.isBeingOpened){if(!this._options.autoOpen)return void t(new Q.DatabaseClosed);this.open().catch(en)}this._state.dbReadyPromise.then(e,t)}).then(e)}use({stack:e,create:t,level:n,name:r}){r&&this.unuse({stack:e,name:r});let i=this._middlewares[e]||(this._middlewares[e]=[]);return i.push({stack:e,create:t,level:null==n?10:n,name:r}),i.sort((e,t)=>e.level-t.level),this}unuse({stack:e,name:t,create:n}){return e&&this._middlewares[e]&&(this._middlewares[e]=this._middlewares[e].filter(e=>n?e.create!==n:!!t&&e.name!==t)),this}open(){return function(e){var t;let n=e._state,{indexedDB:r}=e._deps;if(n.isBeingOpened||e.idbdb)return n.dbReadyPromise.then(()=>n.dbOpenError?te(n.dbOpenError):e);K&&(n.openCanceller._stackHolder=V()),n.isBeingOpened=!0,n.dbOpenError=null,n.openComplete=!1;let i=n.openCanceller;function o(){if(n.openCanceller!==i)throw new Q.DatabaseClosed("db.open() was cancelled")}let s=n.dbReadyResolve,c=null,u=!1;return eT.race([i,("undefined"==typeof navigator?eT.resolve():!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise(function(e){var n=function(){return indexedDB.databases().finally(e)};t=setInterval(n,100),n()}).finally(function(){return clearInterval(t)}):Promise.resolve()).then(()=>new eT((t,i)=>{if(o(),!r)throw new Q.MissingAPI;let s=e.name,l=n.autoSchema?r.open(s):r.open(s,Math.round(10*e.verno));if(!l)throw new Q.MissingAPI;l.onerror=tT(i),l.onblocked=eq(e._fireOnBlocked),l.onupgradeneeded=eq(t=>{if(c=l.transaction,n.autoSchema&&!e._options.allowEmptyDB){l.onerror=tR,c.abort(),l.result.close();let e=r.deleteDatabase(s);e.onsuccess=e.onerror=eq(()=>{i(new Q.NoSuchDatabase(`Database ${s} doesnt exist`))})}else{c.onerror=tT(i);var o=t.oldVersion>0x4000000000000000?0:t.oldVersion;u=o<1,e._novip.idbdb=l.result,function(e,t,n,r){let i=e._dbSchema,o=e._createTransaction("readwrite",e._storeNames,i);o.create(n),o._completion.catch(r);let s=o._reject.bind(o),c=ej.transless||ej;eG(()=>{ej.trans=o,ej.transless=c,0===t?(a(i).forEach(e=>{tJ(n,e,i[e].primKey,i[e].indexes)}),t$(e,n),eT.follow(()=>e.on.populate.fire(o)).catch(s)):(function({_novip:e},t,n,r){let i=[],o=e._versions,s=e._dbSchema=tY(e,e.idbdb,r),c=!1;return o.filter(e=>e._cfg.version>=t).forEach(o=>{i.push(()=>{let i=s,u=o._cfg.dbschema;tG(e,i,r),tG(e,u,r),s=e._dbSchema=u;let l=tH(i,u);l.add.forEach(e=>{tJ(r,e[0],e[1].primKey,e[1].indexes)}),l.change.forEach(e=>{if(e.recreate)throw new Q.Upgrade("Not yet support for changing primary key");{let t=r.objectStore(e.name);e.add.forEach(e=>tX(t,e)),e.change.forEach(e=>{t.deleteIndex(e.name),tX(t,e)}),e.del.forEach(e=>t.deleteIndex(e))}});let f=o._cfg.contentUpgrade;if(f&&o._cfg.version>t){let t;t$(e,r),n._memoizedTables={},c=!0;let o=k(u);l.del.forEach(e=>{o[e]=i[e]}),tW(e,[e.Transaction.prototype]),tq(e,[e.Transaction.prototype],a(o),o),n.schema=o;let s=M(f);s&&eQ();let h=eT.follow(()=>{if((t=f(n))&&s){var e=e0.bind(null,null);t.then(e,e)}});return t&&"function"==typeof t.then?eT.resolve(t):h.then(()=>t)}}),i.push(t=>{var r;c&&ti||(r=o._cfg.dbschema,[].slice.call(t.db.objectStoreNames).forEach(e=>null==r[e]&&t.db.deleteObjectStore(e))),tW(e,[e.Transaction.prototype]),tq(e,[e.Transaction.prototype],e._storeNames,e._dbSchema),n.schema=e._dbSchema})}),(function e(){return i.length?eT.resolve(i.shift()(n.idbtrans)).then(e):eT.resolve()})().then(()=>{var e;a(e=s).forEach(t=>{r.db.objectStoreNames.contains(t)||tJ(r,t,e[t].primKey,e[t].indexes)})})})(e,t,o,n).catch(s)})}(e,o/10,c,i)}},i),l.onsuccess=eq(()=>{c=null;let r=e._novip.idbdb=l.result,i=b(r.objectStoreNames);if(i.length>0)try{let t=r.transaction(1===i.length?i[0]:i,"readonly");n.autoSchema?function({_novip:e},t,n){e.verno=t.version/10;let r=e._dbSchema=tY(0,t,n);e._storeNames=b(t.objectStoreNames,0),tq(e,[e._allTables],a(r),r)}(e,r,t):(tG(e,e._dbSchema,t),function(e,t){let n=tH(tY(0,e.idbdb,t),e._dbSchema);return!(n.add.length||n.change.some(e=>e.add.length||e.change.length))}(e,t)||console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Some queries may fail.")),t$(e,t)}catch(e){}tr.push(e),r.onversionchange=eq(t=>{n.vcFired=!0,e.on("versionchange").fire(t)}),r.onclose=eq(t=>{e.on("close").fire(t)}),u&&function({indexedDB:e,IDBKeyRange:t},n){t1(e)||"__dbnames"===n||t0(e,t).put({name:n}).catch(en)}(e._deps,s),t()},i)}))]).then(()=>(o(),n.onReadyBeingFired=[],eT.resolve(t2(()=>e.on.ready.fire(e.vip))).then(function t(){if(n.onReadyBeingFired.length>0){let r=n.onReadyBeingFired.reduce(el,en);return n.onReadyBeingFired=[],eT.resolve(t2(()=>r(e.vip))).then(t)}}))).finally(()=>{n.onReadyBeingFired=null,n.isBeingOpened=!1}).then(()=>e).catch(t=>{n.dbOpenError=t;try{c&&c.abort()}catch(e){}return i===n.openCanceller&&e._close(),te(t)}).finally(()=>{n.openComplete=!0,s()})}(this)}_close(){let e=this._state,t=tr.indexOf(this);if(t>=0&&tr.splice(t,1),this.idbdb){try{this.idbdb.close()}catch(e){}this._novip.idbdb=null}e.dbReadyPromise=new eT(t=>{e.dbReadyResolve=t}),e.openCanceller=new eT((t,n)=>{e.cancelOpen=n})}close(){this._close();let e=this._state;this._options.autoOpen=!1,e.dbOpenError=new Q.DatabaseClosed,e.isBeingOpened&&e.cancelOpen(e.dbOpenError)}delete(){let e=arguments.length>0,t=this._state;return new eT((n,r)=>{let i=()=>{this.close();var e=this._deps.indexedDB.deleteDatabase(this.name);e.onsuccess=eq(()=>{!function({indexedDB:e,IDBKeyRange:t},n){t1(e)||"__dbnames"===n||t0(e,t).delete(n).catch(en)}(this._deps,this.name),n()}),e.onerror=tT(r),e.onblocked=this._fireOnBlocked};if(e)throw new Q.InvalidArgument("Arguments not allowed in db.delete()");t.isBeingOpened?t.dbReadyPromise.then(i):i()})}backendDB(){return this.idbdb}isOpen(){return null!==this.idbdb}hasBeenClosed(){let e=this._state.dbOpenError;return e&&"DatabaseClosed"===e.name}hasFailed(){return null!==this._state.dbOpenError}dynamicallyOpened(){return this._state.autoSchema}get tables(){return a(this._allTables).map(e=>this._allTables[e])}transaction(){let e=t8.apply(this,arguments);return this._transaction.apply(this,e)}_transaction(e,t,n){let r,i,a=ej.trans;a&&a.db===this&&-1===e.indexOf("!")||(a=null);let o=-1!==e.indexOf("?");e=e.replace("!","").replace("?","");try{if(i=t.map(e=>{var t=e instanceof this.Table?e.name:e;if("string"!=typeof t)throw TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return t}),"r"==e||"readonly"===e)r="readonly";else{if("rw"!=e&&"readwrite"!=e)throw new Q.InvalidArgument("Invalid transaction mode: "+e);r="readwrite"}if(a){if("readonly"===a.mode&&"readwrite"===r){if(!o)throw new Q.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");a=null}a&&i.forEach(e=>{if(a&&-1===a.storeNames.indexOf(e)){if(!o)throw new Q.SubTransaction("Table "+e+" not included in parent transaction.");a=null}}),o&&a&&!a.active&&(a=null)}}catch(e){return a?a._promise(null,(t,n)=>{n(e)}):te(e)}let s=(function e(t,n,r,i,a){return eT.resolve().then(()=>{let o,s=ej.transless||ej,c=t._createTransaction(n,r,t._dbSchema,i);if(i)c.idbtrans=i.idbtrans;else try{c.create(),t._state.PR1398_maxLoop=3}catch(i){return i.name===G.InvalidState&&t.isOpen()&&--t._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),t._close(),t.open().then(()=>e(t,n,r,null,a))):te(i)}let u=M(a);u&&eQ();let l=eT.follow(()=>{if(o=a.call(c,c))if(u){var e=e0.bind(null,null);o.then(e,e)}else"function"==typeof o.next&&"function"==typeof o.throw&&(o=t6(o))},{trans:c,transless:s});return(o&&"function"==typeof o.then?eT.resolve(o).then(e=>c.active?e:te(new Q.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))):l.then(()=>o)).then(e=>(i&&c._resolve(),c._completion.then(()=>e))).catch(e=>(c._reject(e),te(e)))})}).bind(null,this,r,i,a,n);return a?a._promise(r,s,"lock"):ej.trans?e4(ej.transless,()=>this._whenReady(s)):this._whenReady(s)}table(e){if(!l(this._allTables,e))throw new Q.InvalidTable(`Table ${e} does not exist`);return this._allTables[e]}}let nl="undefined"!=typeof Symbol&&"observable"in Symbol?Symbol.observable:"@@observable";class nf{constructor(e){this._subscribe=e}subscribe(e,t,n){return this._subscribe(e&&"function"!=typeof e?e:{next:e,error:t,complete:n})}[nl](){return this}}function nh(e,t){return a(t).forEach(n=>{ni(e[n]||(e[n]=new nn),t[n])}),e}try{r={indexedDB:i.indexedDB||i.mozIndexedDB||i.webkitIndexedDB||i.msIndexedDB,IDBKeyRange:i.IDBKeyRange||i.webkitIDBKeyRange}}catch(e){r={indexedDB:null,IDBKeyRange:null}}function nd(e){let t=np;try{np=!0,tI.storagemutated.fire(e)}finally{np=t}}f(nu,{...et,delete:e=>new nu(e,{addons:[]}).delete(),exists:e=>new nu(e,{addons:[]}).open().then(e=>(e.close(),!0)).catch("NoSuchDatabaseError",()=>!1),getDatabaseNames(e){try{return(function({indexedDB:e,IDBKeyRange:t}){return t1(e)?Promise.resolve(e.databases()).then(e=>e.map(e=>e.name).filter(e=>"__dbnames"!==e)):t0(e,t).toCollection().primaryKeys()})(nu.dependencies).then(e)}catch(e){return te(new Q.MissingAPI)}},defineClass:()=>function(e){s(this,e)},ignoreTransaction:e=>ej.trans?e4(ej.transless,e):e(),vip:t2,async:function(e){return function(){try{var t=t6(e.apply(this,arguments));return t&&"function"==typeof t.then?t:eT.resolve(t)}catch(e){return te(e)}}},spawn:function(e,t,n){try{var r=t6(e.apply(n,t||[]));return r&&"function"==typeof r.then?r:eT.resolve(r)}catch(e){return te(e)}},currentTransaction:{get:()=>ej.trans||null},waitFor:function(e,t){let n=eT.resolve("function"==typeof e?nu.ignoreTransaction(e):e).timeout(t||6e4);return ej.trans?ej.trans.waitFor(n):n},Promise:eT,debug:{get:()=>K,set:e=>{K=e,F="dexie"===e?()=>!0:ta}},derive:p,extend:s,props:f,override:m,Events:tl,on:tI,liveQuery:function(e){return new nf(t=>{let n=M(e),r=!1,i={},o={},s={get closed(){return r},unsubscribe:()=>{r=!0,tI.storagemutated.unsubscribe(f)}};t.start&&t.start(s);let c=!1,u=!1;function l(){return a(o).some(e=>i[e]&&function(e,t){let n=na(t),r=n.next();if(r.done)return!1;let i=r.value,a=na(e),o=a.next(i.from),s=o.value;for(;!r.done&&!o.done;){if(0>=tm(s.from,i.to)&&tm(s.to,i.from)>=0)return!0;0>tm(i.from,s.from)?i=(r=n.next(s.from)).value:s=(o=a.next(i.from)).value}return!1}(i[e],o[e]))}let f=e=>{nh(i,e),l()&&h()},h=()=>{if(c||r)return;i={};let a={},d=function(t){n&&eQ();let r=()=>eG(e,{subscr:t,trans:null}),i=ej.trans?e4(ej.transless,r):r();return n&&i.then(e0,e0),i}(a);u||(tI("storagemutated",f),u=!0),c=!0,Promise.resolve(d).then(e=>{c=!1,r||(l()?h():(i={},o=a,t.next&&t.next(e)))},e=>{c=!1,t.error&&t.error(e),s.unsubscribe()})};return h(),s})},extendObservabilitySet:nh,getByKeyPath:O,setByKeyPath:S,delByKeyPath:function(e,t){"string"==typeof t?S(e,t,void 0):"length"in t&&[].map.call(t,function(t){S(e,t,void 0)})},shallowClone:k,deepClone:T,getObjectDiff:t5,cmp:tm,asap:E,minKey:-1/0,addons:[],connections:tr,errnames:G,dependencies:r,semVer:"3.2.3",version:"3.2.3".split(".").map(e=>parseInt(e)).reduce((e,t,n)=>e+t/Math.pow(10,2*n))}),nu.maxKey=tM(nu.dependencies.IDBKeyRange),"undefined"!=typeof dispatchEvent&&"undefined"!=typeof addEventListener&&(tI("storagemutated",e=>{if(!np){let t;ti?(t=document.createEvent("CustomEvent")).initCustomEvent("x-storagemutated-1",!0,!0,e):t=new CustomEvent("x-storagemutated-1",{detail:e}),np=!0,dispatchEvent(t),np=!1}}),addEventListener("x-storagemutated-1",({detail:e})=>{np||nd(e)}));let np=!1;if("undefined"!=typeof BroadcastChannel){let e=new BroadcastChannel("x-storagemutated-1");"function"==typeof e.unref&&e.unref(),tI("storagemutated",t=>{np||e.postMessage(t)}),e.onmessage=e=>{e.data&&nd(e.data)}}else if("undefined"!=typeof self&&"undefined"!=typeof navigator){tI("storagemutated",e=>{try{np||("undefined"!=typeof localStorage&&localStorage.setItem("x-storagemutated-1",JSON.stringify({trig:Math.random(),changedParts:e})),"object"==typeof self.clients&&[...self.clients.matchAll({includeUncontrolled:!0})].forEach(t=>t.postMessage({type:"x-storagemutated-1",changedParts:e})))}catch(e){}}),"undefined"!=typeof addEventListener&&addEventListener("storage",e=>{if("x-storagemutated-1"===e.key){let t=JSON.parse(e.newValue);t&&nd(t.changedParts)}});let e=self.document&&navigator.serviceWorker;e&&e.addEventListener("message",function({data:e}){e&&"x-storagemutated-1"===e.type&&nd(e.changedParts)})}eT.rejectionMapper=function(e,t){if(!e||e instanceof H||e instanceof TypeError||e instanceof SyntaxError||!e.name||!ee[e.name])return e;var n=new ee[e.name](t||e.message,e);return"stack"in e&&d(n,"stack",{get:function(){return this.inner.stack}}),n},F=ta},430:function(e,t,n){"use strict";n.d(t,{Z:()=>s});var r=n(8674);let i=function(e,t){for(var n=e.length;n--;)if((0,r.Z)(e[n][0],t))return n;return -1};var a=Array.prototype.splice;function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}o.prototype.clear=function(){this.__data__=[],this.size=0},o.prototype.delete=function(e){var t=this.__data__,n=i(t,e);return!(n<0)&&(n==t.length-1?t.pop():a.call(t,n,1),--this.size,!0)},o.prototype.get=function(e){var t=this.__data__,n=i(t,e);return n<0?void 0:t[n][1]},o.prototype.has=function(e){return i(this.__data__,e)>-1},o.prototype.set=function(e,t){var n=this.__data__,r=i(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};let s=o},4359:function(e,t,n){"use strict";n.d(t,{Z:()=>a});var r=n(3456),i=n(119);let a=(0,r.Z)(i.Z,"Map")},6389:function(e,t,n){"use strict";n.d(t,{Z:()=>h});var r=(0,n(3456).Z)(Object,"create"),i=Object.prototype.hasOwnProperty,a=Object.prototype.hasOwnProperty;function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}o.prototype.clear=function(){this.__data__=r?r(null):{},this.size=0},o.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t},o.prototype.get=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0},o.prototype.has=function(e){var t=this.__data__;return r?void 0!==t[e]:a.call(t,e)},o.prototype.set=function(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this};var s=n(430),c=n(4359);let u=function(e){var t=void 0===e?"undefined":e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},l=function(e,t){var n=e.__data__;return u(t)?n["string"==typeof t?"string":"hash"]:n.map};function f(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}f.prototype.clear=function(){this.size=0,this.__data__={hash:new o,map:new(c.Z||s.Z),string:new o}},f.prototype.delete=function(e){var t=l(this,e).delete(e);return this.size-=!!t,t},f.prototype.get=function(e){return l(this,e).get(e)},f.prototype.has=function(e){return l(this,e).has(e)},f.prototype.set=function(e,t){var n=l(this,e),r=n.size;return n.set(e,t),this.size+=+(n.size!=r),this};let h=f},8877:function(e,t,n){"use strict";n.d(t,{Z:()=>s});var r=n(430),i=n(4359),a=n(6389);function o(e){var t=this.__data__=new r.Z(e);this.size=t.size}o.prototype.clear=function(){this.__data__=new r.Z,this.size=0},o.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},o.prototype.get=function(e){return this.__data__.get(e)},o.prototype.has=function(e){return this.__data__.has(e)},o.prototype.set=function(e,t){var n,o,s=this.__data__;if(n=s,null!=(o=r.Z)&&"undefined"!=typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](n):n instanceof o){var c=s.__data__;if(!i.Z||c.length<199)return c.push([e,t]),this.size=++s.size,this;s=this.__data__=new a.Z(c)}return s.set(e,t),this.size=s.size,this};let s=o},9466:function(e,t,n){"use strict";n.d(t,{Z:()=>r});let r=n(119).Z.Symbol},5225:function(e,t,n){"use strict";n.d(t,{Z:()=>r});let r=n(119).Z.Uint8Array},659:function(e,t,n){"use strict";n.d(t,{Z:()=>l});let r=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r};var i=n(984),a=n(1919),o=n(8988),s=n(3422),c=n(2675),u=Object.prototype.hasOwnProperty;let l=function(e,t){var n=(0,a.Z)(e),l=!n&&(0,i.Z)(e),f=!n&&!l&&(0,o.Z)(e),h=!n&&!l&&!f&&(0,c.Z)(e),d=n||l||f||h,p=d?r(e.length,String):[],y=p.length;for(var v in e)(t||u.call(e,v))&&!(d&&("length"==v||f&&("offset"==v||"parent"==v)||h&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||(0,s.Z)(v,y)))&&p.push(v);return p}},9614:function(e,t,n){"use strict";n.d(t,{Z:()=>f});var r=n(9466),i=Object.prototype,a=i.hasOwnProperty,o=i.toString,s=r.Z?r.Z.toStringTag:void 0;let c=function(e){var t=a.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=o.call(e);return r&&(t?e[s]=n:delete e[s]),i};var u=Object.prototype.toString,l=r.Z?r.Z.toStringTag:void 0;let f=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":l&&l in Object(e)?c(e):u.call(e)}},7636:function(e,t,n){"use strict";var r;n.d(t,{Z:()=>i});let i=("undefined"==typeof global?"undefined":(r=global)&&"undefined"!=typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)=="object"&&global&&global.Object===Object&&global},3456:function(e,t,n){"use strict";n.d(t,{Z:()=>y});var r,i=n(9634),a=n(119).Z["__core-js_shared__"],o=(r=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",s=n(5074),c=n(4791),u=/^\[object .+?Constructor\]$/,l=Object.prototype,f=Function.prototype.toString,h=l.hasOwnProperty,d=RegExp("^"+f.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");let p=function(e){return!!(0,s.Z)(e)&&(!o||!(o in e))&&((0,i.Z)(e)?d:u).test((0,c.Z)(e))},y=function(e,t){var n=null==e?void 0:e[t];return p(n)?n:void 0}},3422:function(e,t,n){"use strict";n.d(t,{Z:()=>i});var r=/^(?:0|[1-9]\d*)$/;let i=function(e,t){var n=void 0===e?"undefined":e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e;return!!(t=null==t?0x1fffffffffffff:t)&&("number"==n||"symbol"!=n&&r.test(e))&&e>-1&&e%1==0&&e<t}},1700:function(e,t,n){"use strict";n.d(t,{Z:()=>i});var r=Object.prototype;let i=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||r)}},8660:function(e,t,n){"use strict";n.d(t,{Z:()=>r});let r=function(e,t){return function(n){return e(t(n))}}},119:function(e,t,n){"use strict";n.d(t,{Z:()=>o});var r,i=n(7636),a=("undefined"==typeof self?"undefined":(r=self)&&"undefined"!=typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)=="object"&&self&&self.Object===Object&&self;let o=i.Z||a||Function("return this")()},4791:function(e,t,n){"use strict";n.d(t,{Z:()=>i});var r=Function.prototype.toString;let i=function(e){if(null!=e){try{return r.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},8674:function(e,t,n){"use strict";n.d(t,{Z:()=>r});let r=function(e,t){return e===t||e!=e&&t!=t}},984:function(e,t,n){"use strict";n.d(t,{Z:()=>u});var r=n(9614),i=n(7422);let a=function(e){return(0,i.Z)(e)&&"[object Arguments]"==(0,r.Z)(e)};var o=Object.prototype,s=o.hasOwnProperty,c=o.propertyIsEnumerable;let u=a(function(){return arguments}())?a:function(e){return(0,i.Z)(e)&&s.call(e,"callee")&&!c.call(e,"callee")}},1919:function(e,t,n){"use strict";n.d(t,{Z:()=>r});let r=Array.isArray},4233:function(e,t,n){"use strict";n.d(t,{Z:()=>a});var r=n(9634),i=n(9008);let a=function(e){return null!=e&&(0,i.Z)(e.length)&&!(0,r.Z)(e)}},8988:function(e,t,n){"use strict";n.d(t,{Z:()=>c});var r=n(119);function i(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var a=("undefined"==typeof exports?"undefined":i(exports))=="object"&&exports&&!exports.nodeType&&exports,o=a&&("undefined"==typeof module?"undefined":i(module))=="object"&&module&&!module.nodeType&&module,s=o&&o.exports===a?r.Z.Buffer:void 0;let c=(s?s.isBuffer:void 0)||function(){return!1}},186:function(e,t,n){"use strict";n.d(t,{Z:()=>el});var r=n(8877),i=n(6389);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new i.Z;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},a.prototype.has=function(e){return this.__data__.has(e)};let o=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1},s=function(e,t,n,r,i,s){var c=1&n,u=e.length,l=t.length;if(u!=l&&!(c&&l>u))return!1;var f=s.get(e),h=s.get(t);if(f&&h)return f==t&&h==e;var d=-1,p=!0,y=2&n?new a:void 0;for(s.set(e,t),s.set(t,e);++d<u;){var v=e[d],g=t[d];if(r)var b=c?r(g,v,d,t,e,s):r(v,g,d,e,t,s);if(void 0!==b){if(b)continue;p=!1;break}if(y){if(!o(t,function(e,t){if(!y.has(t)&&(v===e||i(v,e,n,r,s)))return y.push(t)})){p=!1;break}}else if(!(v===g||i(v,g,n,r,s))){p=!1;break}}return s.delete(e),s.delete(t),p};var c=n(9466),u=n(5225),l=n(8674);let f=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n},h=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n};var d=c.Z?c.Z.prototype:void 0,p=d?d.valueOf:void 0;let y=function(e,t,n,r,i,a,o){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!a(new u.Z(e),new u.Z(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return(0,l.Z)(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var c=f;case"[object Set]":var d=1&r;if(c||(c=h),e.size!=t.size&&!d)break;var y=o.get(e);if(y)return y==t;r|=2,o.set(e,t);var v=s(c(e),c(t),r,i,a,o);return o.delete(e),v;case"[object Symbol]":if(p)return p.call(e)==p.call(t)}return!1},v=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e};var g=n(1919);let b=function(e,t,n){var r=t(e);return(0,g.Z)(e)?r:v(r,n(e))},m=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a};var w=Object.prototype.propertyIsEnumerable,E=Object.getOwnPropertySymbols,x=E?function(e){return null==e?[]:m(E(e=Object(e)),function(t){return w.call(e,t)})}:function(){return[]},O=n(659),S=n(1700),k=(0,n(8660).Z)(Object.keys,Object),A=Object.prototype.hasOwnProperty;let j=function(e){if(!(0,S.Z)(e))return k(e);var t=[];for(var n in Object(e))A.call(e,n)&&"constructor"!=n&&t.push(n);return t};var C=n(4233);let P=function(e){return(0,C.Z)(e)?(0,O.Z)(e):j(e)},D=function(e){return b(e,P,x)};function T(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}var R=Object.prototype.hasOwnProperty;let I=function(e,t,n,r,i,a){var o=1&n,s=D(e),c=s.length;if(c!=D(t).length&&!o)return!1;for(var u=c;u--;){var l=s[u];if(!(o?l in t:R.call(t,l)))return!1}var f=a.get(e),h=a.get(t);if(f&&h)return f==t&&h==e;var d=!0;a.set(e,t),a.set(t,e);for(var p=o;++u<c;){var y=e[l=s[u]],v=t[l];if(r)var g=o?r(v,y,l,t,e,a):r(y,v,l,e,t,a);if(!(void 0===g?y===v||i(y,v,n,r,a):g)){d=!1;break}p||(p="constructor"==l)}if(d&&!p){var b=e.constructor,m=t.constructor;b!=m&&"constructor"in e&&"constructor"in t&&!("function"==typeof b&&T(b,b)&&"function"==typeof m&&T(m,m))&&(d=!1)}return a.delete(e),a.delete(t),d};var N=n(3456),L=n(119),B=(0,N.Z)(L.Z,"DataView"),Z=n(4359),M=(0,N.Z)(L.Z,"Promise"),K=(0,N.Z)(L.Z,"Set"),F=(0,N.Z)(L.Z,"WeakMap"),U=n(9614),V=n(4791),$="[object Map]",q="[object Promise]",W="[object Set]",z="[object WeakMap]",H="[object DataView]",J=(0,V.Z)(B),X=(0,V.Z)(Z.Z),Y=(0,V.Z)(M),G=(0,V.Z)(K),Q=(0,V.Z)(F),ee=U.Z;(B&&ee(new B(new ArrayBuffer(1)))!=H||Z.Z&&ee(new Z.Z)!=$||M&&ee(M.resolve())!=q||K&&ee(new K)!=W||F&&ee(new F)!=z)&&(ee=function(e){var t=(0,U.Z)(e),n="[object Object]"==t?e.constructor:void 0,r=n?(0,V.Z)(n):"";if(r)switch(r){case J:return H;case X:return $;case Y:return q;case G:return W;case Q:return z}return t});let et=ee;var en=n(8988),er=n(2675),ei="[object Arguments]",ea="[object Array]",eo="[object Object]",es=Object.prototype.hasOwnProperty;let ec=function(e,t,n,i,a,o){var c=(0,g.Z)(e),u=(0,g.Z)(t),l=c?ea:et(e),f=u?ea:et(t);l=l==ei?eo:l,f=f==ei?eo:f;var h=l==eo,d=f==eo,p=l==f;if(p&&(0,en.Z)(e)){if(!(0,en.Z)(t))return!1;c=!0,h=!1}if(p&&!h)return o||(o=new r.Z),c||(0,er.Z)(e)?s(e,t,n,i,a,o):y(e,t,l,n,i,a,o);if(!(1&n)){var v=h&&es.call(e,"__wrapped__"),b=d&&es.call(t,"__wrapped__");if(v||b){var m=v?e.value():e,w=b?t.value():t;return o||(o=new r.Z),a(m,w,n,i,o)}}return!!p&&(o||(o=new r.Z),I(e,t,n,i,a,o))};var eu=n(7422);let el=function(e,t){return function e(t,n,r,i,a){return t===n||(null!=t&&null!=n&&((0,eu.Z)(t)||(0,eu.Z)(n))?ec(t,n,r,i,e,a):t!=t&&n!=n)}(e,t)}},9634:function(e,t,n){"use strict";n.d(t,{Z:()=>a});var r=n(9614),i=n(5074);let a=function(e){if(!(0,i.Z)(e))return!1;var t=(0,r.Z)(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},9008:function(e,t,n){"use strict";n.d(t,{Z:()=>r});let r=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}},5074:function(e,t,n){"use strict";n.d(t,{Z:()=>r});let r=function(e){var t=void 0===e?"undefined":e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e;return null!=e&&("object"==t||"function"==t)}},7422:function(e,t,n){"use strict";n.d(t,{Z:()=>r});let r=function(e){return null!=e&&(void 0===e?"undefined":e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)=="object"}},2675:function(e,t,n){"use strict";n.d(t,{Z:()=>p});var r=n(9614),i=n(9008),a=n(7422),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1;var s=n(7636);function c(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var u=("undefined"==typeof exports?"undefined":c(exports))=="object"&&exports&&!exports.nodeType&&exports,l=u&&("undefined"==typeof module?"undefined":c(module))=="object"&&module&&!module.nodeType&&module,f=l&&l.exports===u&&s.Z.process,h=function(){try{var e=l&&l.require&&l.require("util").types;if(e)return e;return f&&f.binding&&f.binding("util")}catch(e){}}(),d=h&&h.isTypedArray;let p=d?function(e){return d(e)}:function(e){return(0,a.Z)(e)&&(0,i.Z)(e.length)&&!!o[(0,r.Z)(e)]}},6058:function(e,t,n){"use strict";n.d(t,{Z:()=>r});let r=function(e){return void 0===e}},7830:function(e,t,n){"use strict";n.d(t,{Z:()=>ef});var r,i,a,o,s,c,u,l=n(8877),f=n(3456),h=function(){try{var e=(0,f.Z)(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();let d=function(e,t,n){"__proto__"==t&&h?h(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};var p=n(8674);let y=function(e,t,n){(void 0===n||(0,p.Z)(e[t],n))&&(void 0!==n||t in e)||d(e,t,n)},v=function(e,t,n){for(var r=-1,i=Object(e),a=n(e),o=a.length;o--;){var s=a[++r];if(!1===t(i[s],s,i))break}return e};var g=n(119);function b(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var m=("undefined"==typeof exports?"undefined":b(exports))=="object"&&exports&&!exports.nodeType&&exports,w=m&&("undefined"==typeof module?"undefined":b(module))=="object"&&module&&!module.nodeType&&module,E=w&&w.exports===m?g.Z.Buffer:void 0,x=E?E.allocUnsafe:void 0;let O=function(e,t){if(t)return e.slice();var n=e.length,r=x?x(n):new e.constructor(n);return e.copy(r),r};var S=n(5225);let k=function(e){var t=new e.constructor(e.byteLength);return new S.Z(t).set(new S.Z(e)),t},A=function(e,t){var n=t?k(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)},j=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t};var C=n(5074),P=Object.create,D=function(){function e(){}return function(t){if(!(0,C.Z)(t))return{};if(P)return P(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),T=(0,n(8660).Z)(Object.getPrototypeOf,Object),R=n(1700),I=n(984),N=n(1919),L=n(4233),B=n(7422),Z=n(8988),M=n(9634),K=n(9614),F=Object.prototype,U=Function.prototype.toString,V=F.hasOwnProperty,$=U.call(Object);let q=function(e){if(!(0,B.Z)(e)||"[object Object]"!=(0,K.Z)(e))return!1;var t=T(e);if(null===t)return!0;var n=V.call(t,"constructor")&&t.constructor;return"function"==typeof n&&(null!=n&&"undefined"!=typeof Symbol&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](n):n instanceof n)&&U.call(n)==$};var W=n(2675);let z=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]};var H=Object.prototype.hasOwnProperty;let J=function(e,t,n){var r=e[t];H.call(e,t)&&(0,p.Z)(r,n)&&(void 0!==n||t in e)||d(e,t,n)},X=function(e,t,n,r){var i=!n;n||(n={});for(var a=-1,o=t.length;++a<o;){var s=t[a],c=r?r(n[s],e[s],s,n,e):void 0;void 0===c&&(c=e[s]),i?d(n,s,c):J(n,s,c)}return n};var Y=n(659);let G=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t};var Q=Object.prototype.hasOwnProperty;let ee=function(e){if(!(0,C.Z)(e))return G(e);var t=(0,R.Z)(e),n=[];for(var r in e)"constructor"==r&&(t||!Q.call(e,r))||n.push(r);return n},et=function(e){return(0,L.Z)(e)?(0,Y.Z)(e,!0):ee(e)},en=function(e,t,n,r,i,a,o){var s=z(e,n),c=z(t,n),u=o.get(c);if(u)return void y(e,n,u);var l=a?a(s,c,n+"",e,t,o):void 0,f=void 0===l;if(f){var h=(0,N.Z)(c),d=!h&&(0,Z.Z)(c),p=!h&&!d&&(0,W.Z)(c);(l=c,h||d||p)?(0,N.Z)(s)?l=s:(0,B.Z)(s)&&(0,L.Z)(s)?l=j(s):d?(f=!1,l=O(c,!0)):p?(f=!1,l=A(c,!0)):l=[]:q(c)||(0,I.Z)(c)?(l=s,(0,I.Z)(s))?l=X(s,et(s)):(!(0,C.Z)(s)||(0,M.Z)(s))&&(l="function"!=typeof c.constructor||(0,R.Z)(c)?{}:D(T(c))):f=!1}f&&(o.set(c,l),i(l,c,r,a,o),o.delete(c)),y(e,n,l)},er=function e(t,n,r,i,a){t!==n&&v(n,function(o,s){if(a||(a=new l.Z),(0,C.Z)(o))en(t,n,s,r,e,i,a);else{var c=i?i(z(t,s),o,s+"",t,n,a):void 0;void 0===c&&(c=o),y(t,s,c)}},et)},ei=function(e){return e},ea=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)};var eo=Math.max,es=Date.now,ec=(o=h?function(e,t){return h(e,"toString",{configurable:!0,enumerable:!1,value:function(){return t},writable:!0})}:ei,s=0,c=0,function(){var e=es(),t=16-(e-c);if(c=e,t>0){if(++s>=800)return arguments[0]}else s=0;return o.apply(void 0,arguments)}),eu=n(3422);let el=function(e,t,n){if(!(0,C.Z)(n))return!1;var r=void 0===t?"undefined":t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t;return("number"==r?!!((0,L.Z)(n)&&(0,eu.Z)(t,n.length)):"string"==r&&t in n)&&(0,p.Z)(n[t],e)},ef=(u=function(e,t,n){er(e,t,n)},ec((r=function(e,t){var n=-1,r=t.length,i=r>1?t[r-1]:void 0,a=r>2?t[2]:void 0;for(i=u.length>3&&"function"==typeof i?(r--,i):void 0,a&&el(t[0],t[1],a)&&(i=r<3?void 0:i,r=1),e=Object(e);++n<r;){var o=t[n];o&&u(e,o,n,i)}return e},a=eo(void 0===(a=i)?r.length-1:a,0),function(){for(var e=arguments,t=-1,n=eo(e.length-a,0),i=Array(n);++t<n;)i[t]=e[a+t];t=-1;for(var o=Array(a+1);++t<a;)o[t]=e[t];return o[a]=ei(i),ea(r,this,o)}),r+""))},3518:function(e,t,n){"use strict";n.d(t,{Z:()=>a});var r=n(926),i=function(){function e(){this.map={},this.length=0}return e.prototype.set=function(e,t){var n=this.hash(e),r=this.map[n];r||(this.map[n]=r=[]),r.push([e,t]),this.length+=1},e.prototype.hash=function(e){var t=[];for(var n in e)t.push(Object.prototype.toString.call(e[n]));return t.join()},e.prototype.get=function(e){if(this.length<=180){for(var t in this.map)for(var n=this.map[t],r=0;r<n.length;r+=1){var i=n[r];if(i[0]===e)return i[1]}return}var a=this.hash(e),n=this.map[a];if(n)for(var r=0;r<n.length;r+=1){var i=n[r];if(i[0]===e)return i[1]}},e}();let a=(0,n(8658).Z)(function(e){return null!=e&&"function"==typeof e.clone?e.clone():function e(t,n,a){if(a||(a=new i),function(e){var t=void 0===e?"undefined":e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e;return null==e||"object"!=t&&"function"!=t}(t))return t;var o=function(r){var i=a.get(t);if(i)return i;for(var o in a.set(t,r),t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=n?e(t[o],!0,a):t[o]);return r};switch((0,r.Z)(t)){case"Object":return o(Object.create(Object.getPrototypeOf(t)));case"Array":return o(Array(t.length));case"Date":return new Date(t.valueOf());case"RegExp":return new RegExp(t.source,t.flags?t.flags:(t.global?"g":"")+(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.sticky?"y":"")+(t.unicode?"u":"")+(t.dotAll?"s":""));case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return t.slice();default:return t}}(e,!0)})},5747:function(e,t,n){"use strict";n.d(t,{Z:()=>w});var r=n(7637);function i(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function a(e,t,n){for(var r=0,i=n.length;r<i;){if(e(t,n[r]))return!0;r+=1}return!1}var o=n(7086);let s="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var c=n(8658),u=Object.prototype.toString,l=function(){return"[object Arguments]"===u.call(arguments)?function(e){return"[object Arguments]"===u.call(e)}:function(e){return(0,o.Z)("callee",e)}}(),f=!({toString:null}).propertyIsEnumerable("toString"),h=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],d=function(){return arguments.propertyIsEnumerable("length")}(),p=function(e,t){for(var n=0;n<e.length;){if(e[n]===t)return!0;n+=1}return!1},y="function"!=typeof Object.keys||d?(0,c.Z)(function(e){if(Object(e)!==e)return[];var t,n,r=[],i=d&&l(e);for(t in e)(0,o.Z)(t,e)&&(!i||"length"!==t)&&(r[r.length]=t);if(f)for(n=h.length-1;n>=0;)t=h[n],(0,o.Z)(t,e)&&!p(r,t)&&(r[r.length]=t),n-=1;return r}):(0,c.Z)(function(e){return Object(e)!==e?[]:Object.keys(e)}),v=n(926);function g(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function b(e,t,n,r){var o=i(e);function s(e,t){return m(e,t,n.slice(),r.slice())}return!a(function(e,t){return!a(s,t,e)},i(t),o)}function m(e,t,n,r){if(s(e,t))return!0;var i,a=(0,v.Z)(e);if(a!==(0,v.Z)(t))return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(a){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(null==(i=String(e.constructor).match(/^function (\w*)/))?"":i[1]))return e===t;break;case"Boolean":case"Number":case"String":if(!((void 0===e?"undefined":g(e))===(void 0===t?"undefined":g(t))&&s(e.valueOf(),t.valueOf())))return!1;break;case"Date":if(!s(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var c=n.length-1;c>=0;){if(n[c]===e)return r[c]===t;c-=1}switch(a){case"Map":if(e.size!==t.size)return!1;return b(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":if(e.size!==t.size)return!1;return b(e.values(),t.values(),n.concat([e]),r.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var u=y(e);if(u.length!==y(t).length)return!1;var l=n.concat([e]),f=r.concat([t]);for(c=u.length-1;c>=0;){var h=u[c];if(!((0,o.Z)(h,t)&&m(t[h],e[h],l,f)))return!1;c-=1}return!0}let w=(0,r.Z)(function(e,t){return m(e,t,[],[])})},8658:function(e,t,n){"use strict";n.d(t,{Z:()=>i});var r=n(75);function i(e){return function t(n){return 0==arguments.length||(0,r.Z)(n)?t:e.apply(this,arguments)}}},7637:function(e,t,n){"use strict";n.d(t,{Z:()=>a});var r=n(8658),i=n(75);function a(e){return function t(n,a){switch(arguments.length){case 0:return t;case 1:return(0,i.Z)(n)?t:(0,r.Z)(function(t){return e(n,t)});default:return(0,i.Z)(n)&&(0,i.Z)(a)?t:(0,i.Z)(n)?(0,r.Z)(function(t){return e(t,a)}):(0,i.Z)(a)?(0,r.Z)(function(t){return e(n,t)}):e(n,a)}}}},8830:function(e,t,n){"use strict";n.d(t,{Z:()=>o});var r=n(8658),i=n(7637),a=n(75);function o(e){return function t(n,o,s){switch(arguments.length){case 0:return t;case 1:return(0,a.Z)(n)?t:(0,i.Z)(function(t,r){return e(n,t,r)});case 2:return(0,a.Z)(n)&&(0,a.Z)(o)?t:(0,a.Z)(n)?(0,i.Z)(function(t,n){return e(t,o,n)}):(0,a.Z)(o)?(0,i.Z)(function(t,r){return e(n,t,r)}):(0,r.Z)(function(t){return e(n,o,t)});default:return(0,a.Z)(n)&&(0,a.Z)(o)&&(0,a.Z)(s)?t:(0,a.Z)(n)&&(0,a.Z)(o)?(0,i.Z)(function(t,n){return e(t,n,s)}):(0,a.Z)(n)&&(0,a.Z)(s)?(0,i.Z)(function(t,n){return e(t,o,n)}):(0,a.Z)(o)&&(0,a.Z)(s)?(0,i.Z)(function(t,r){return e(n,t,r)}):(0,a.Z)(n)?(0,r.Z)(function(t){return e(t,o,s)}):(0,a.Z)(o)?(0,r.Z)(function(t){return e(n,t,s)}):(0,a.Z)(s)?(0,r.Z)(function(t){return e(n,o,t)}):e(n,o,s)}}}},7086:function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(t,e)}n.d(t,{Z:()=>r})},75:function(e,t,n){"use strict";function r(e){return null!=e&&(void 0===e?"undefined":e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)=="object"&&!0===e["@@functional/placeholder"]}n.d(t,{Z:()=>r})},1802:function(e,t,n){"use strict";n.d(t,{Z:()=>u});var r=n(7637),i=n(8830);function a(e){return"[object Object]"===Object.prototype.toString.call(e)}var o=n(7086),s=(0,i.Z)(function(e,t,n){var r,i={};for(r in n=n||{},t=t||{})(0,o.Z)(r,t)&&(i[r]=(0,o.Z)(r,n)?e(r,t[r],n[r]):t[r]);for(r in n)(0,o.Z)(r,n)&&!(0,o.Z)(r,i)&&(i[r]=n[r]);return i}),c=(0,i.Z)(function e(t,n,r){return s(function(n,r,i){return a(r)&&a(i)?e(t,r,i):t(n,r,i)},n,r)});let u=(0,r.Z)(function(e,t){return c(function(e,t,n){return n},e,t)})},1748:function(e,t,n){"use strict";n.d(t,{Z:()=>p});var r,i,a,o=n(8830),s=n(8658);let c=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};var u=(0,s.Z)(function(e){return!!c(e)||!!e&&(void 0===e?"undefined":e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)=="object"&&"[object String]"!==Object.prototype.toString.call(e)&&(0===e.length||e.length>0&&e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1))}),l="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator",f=(0,n(7637).Z)(function(e,t){var n=e.length,r=function(){return e.apply(t,arguments)};switch(n){case 0:return function(){return r.apply(this,arguments)};case 1:return function(e){return r.apply(this,arguments)};case 2:return function(e,t){return r.apply(this,arguments)};case 3:return function(e,t,n){return r.apply(this,arguments)};case 4:return function(e,t,n,i){return r.apply(this,arguments)};case 5:return function(e,t,n,i,a){return r.apply(this,arguments)};case 6:return function(e,t,n,i,a,o){return r.apply(this,arguments)};case 7:return function(e,t,n,i,a,o,s){return r.apply(this,arguments)};case 8:return function(e,t,n,i,a,o,s,c){return r.apply(this,arguments)};case 9:return function(e,t,n,i,a,o,s,c,u){return r.apply(this,arguments)};case 10:return function(e,t,n,i,a,o,s,c,u,l){return r.apply(this,arguments)};default:throw Error("First argument to _arity must be a non-negative integer no greater than ten")}}),h=(r=function(e,t,n){for(var r=0,i=n.length;r<i;){if((t=e["@@transducer/step"](t,n[r]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)},i=function(e,t,n,r){return e["@@transducer/result"](n[r](f(e["@@transducer/step"],e),t))},a=function(e,t,n){for(var r=n.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=n.next()}return e["@@transducer/result"](t)},function(e,t,n){if(u(n))return r(e,t,n);if(null==n)return t;if("function"==typeof n["fantasy-land/reduce"])return i(e,t,n,"fantasy-land/reduce");if(null!=n[l])return a(e,t,n[l]());if("function"==typeof n.next)return a(e,t,n);if("function"==typeof n.reduce)return i(e,t,n,"reduce");throw TypeError("reduce: list must be array or iterable")}),d=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();let p=(0,o.Z)(function(e,t,n){return h("function"==typeof e?new d(e):e,t,n)})},926:function(e,t,n){"use strict";n.d(t,{Z:()=>r});let r=(0,n(8658).Z)(function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)})},620:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(3628),i=n(810),a=e([i]);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){u(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}i=(a.then?(await a)():a)[0];var d=function(e){var t=i.Component;if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");p.prototype=Object.create(t&&t.prototype,{constructor:{value:p,writable:!0,configurable:!0}}),t&&f(p,t);var n,a,o,d=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=l(p);if(n){var r=l(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);var i=e;if(i&&("object"==(void 0===i?"undefined":i&&"undefined"!=typeof Symbol&&i.constructor===Symbol?"symbol":typeof i)||"function"==typeof i))return i;if(void 0!==i)throw TypeError("Derived constructors may only return object or undefined");return h(this)});function p(e){var t;if(function(e,t){if(null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!t[Symbol.hasInstance](e):!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,p),u(h(t=d.call(this,e)),"handleRef",function(e){t.el=e}),u(h(t),"addThingToDo",function(e,n){t.state.hasError&&"unmount"!==e||(t.nextThingToDo=(t.nextThingToDo||Promise.resolve()).then(function(){if(!t.unmounted||"unmount"===e)return n.apply(void 0,arguments)}).catch(function(n){throw t.nextThingToDo=Promise.resolve(),t.setState({hasError:!0}),n&&n.message&&(n.message="During '".concat(e,"', parcel threw an error: ").concat(n.message)),t.props.handleError?t.props.handleError(n):setTimeout(function(){throw n}),n}))}),u(h(t),"getParcelProps",function(){var e=s(s({},t.props),{},{domElement:t.el});return delete e.mountParcel,delete e.config,delete e.wrapWith,delete e.wrapStyle,delete e.appendTo,delete e.handleError,delete e.parcelDidMount,e}),t.state={hasError:!1},!e.config)throw Error("single-spa-react's Parcel component requires the 'config' prop to either be a parcel config or a loading function that returns a promise. See https://github.com/single-spa/single-spa-react");return t}return a=[{key:"componentDidMount",value:function(){var e=this;this.unmounted=!1,this.addThingToDo("mount",function(){var t,n=e.props.mountParcel||e.mountParcel;if(!n)throw Error("\n <Parcel /> was not passed a mountParcel prop, nor is it rendered where mountParcel is within the React context.\n If you are using <Parcel /> within a module that is not a single-spa application, you will need to import mountRootParcel from single-spa and pass it into <Parcel /> as a mountParcel prop \n ");return e.el?t=e.el:(e.createdDomElement=t=document.createElement(e.props.wrapWith),Object.keys(e.props.wrapStyle).forEach(function(n){t.style[n]=e.props.wrapStyle[n]}),e.props.appendTo.appendChild(t)),e.parcel=n(e.props.config,s({domElement:t},e.getParcelProps())),e.parcel.mountPromise.then(e.props.parcelDidMount),e.parcel.mountPromise})}},{key:"componentDidUpdate",value:function(){var e=this;this.addThingToDo("update",function(){if(e.parcel&&e.parcel.update)return e.parcel.update(e.getParcelProps())})}},{key:"componentWillUnmount",value:function(){var e=this;this.addThingToDo("unmount",function(){if(e.parcel&&"MOUNTED"===e.parcel.getStatus())return e.parcel.unmount()}),this.createdDomElement&&this.createdDomElement.parentNode.removeChild(this.createdDomElement),this.unmounted=!0}},{key:"render",value:function(){var e=this;if(this.props.appendTo)return r.a&&r.a.Consumer?i.createElement(r.a.Consumer,null,function(t){return e.mountParcel=t?t.mountParcel:null,null}):null;var t=r.a&&r.a.Consumer?i.createElement(r.a.Consumer,null,function(t){return e.mountParcel=t?t.mountParcel:null,null}):void 0;return i.createElement(this.props.wrapWith,{ref:this.handleRef,style:this.props.wrapStyle,className:this.props.wrapClassName},t)}}],c(p.prototype,a),o&&c(p,o),p}();u(d,"defaultProps",{wrapWith:"div",wrapStyle:{},parcelDidMount:function(){}}),t()}catch(e){t(e)}})},3628:function(e,t,n){"use strict";n.d(t,{a:()=>r});var r=null;try{r=require("react").createContext()}catch(e){}},6113:function(e,t,n){"use strict";n.a(e,async function(e,r){try{n.d(t,{Qf:()=>l,y9:()=>u}),n(382);var i=n(7166),a=n(6058),o=n(8999),s=n(3203),c=e([o,s,i]);[o,s,i]=c.then?(await c)():c;let l=(0,i.jk)("session",{loaded:!1,session:null});function u(e,t){var n,r;if(void 0===t)return!!e;if(!e)return!0;return n=e,r=t,("string"==typeof n?!(0,a.Z)(r.privileges.find(e=>n===e.display)):Array.isArray(n)?n.every(e=>!(0,a.Z)(r.privileges.find(t=>e===t.display))):((0,a.Z)(n)||console.error(`Could not understand privileges "${n}"`),!0))||!(0,a.Z)(t.roles.find(e=>"System Developer"===e.display))}l.subscribe(e=>{var t;let n;e.loaded&&e.session&&(t=e.session,(n=t.user?.userProperties?.defaultLocale??t.locale)&&n.includes("_")&&(n=n.replaceAll("_","-")),function(e){if(void 0===e||"string"!=typeof e)return!1;try{new Intl.Locale(e)}catch(e){return!1}return!0}(n)&&n!==document.documentElement.getAttribute("lang")&&document.documentElement.setAttribute("lang",n))}),r()}catch(e){r(e)}})},5970:function(e,t,n){"use strict";n.a(e,async function(e,r){try{n.d(t,{Qf:()=>i.Qf,YC:()=>a.YC,y9:()=>i.y9});var i=n(6113),a=n(3203),o=n(3440),s=e([i,a,o]);[i,a,o]=s.then?(await s)():s,r()}catch(e){r(e)}})},3203:function(e,t,n){"use strict";n.a(e,async function(e,r){try{n.d(t,{YC:()=>c});var i=n(8999),a=n(6149),o=n(1946),s=e([i,a,o]);[i,a,o]=s.then?(await s)():s;let c="/ws/rest/v1";r()}catch(e){r(e)}})},9217:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(6113),i=n(3203),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},3440:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(6149),i=n(6113),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},6149:function(e,t,n){"use strict";n.a(e,async function(e,r){try{n.d(t,{$w:()=>a.$w,Dy:()=>s.D,Gr:()=>a.Gr,R2:()=>a.R2,_z:()=>a._z,getExtensionConfigFromStore:()=>a.sR,getExtensionSlotConfigFromStore:()=>a.eQ,z2:()=>o.z2});var i=n(568),a=n(3953),o=n(2051),s=n(7595),c=e([i,a]);[i,a]=c.then?(await c)():c,r()}catch(e){r(e)}})},568:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(5747),i=n(3518),a=n(1748),o=n(1802),s=n(7595),c=n(6543),u=n(5585),l=n(3953),f=e([l]);function h(e,t){for(let n of Object.keys(e.schemas)){let r=(0,l.pR)(n);if(e.moduleLoaded[n]){let i=function(e,t,n){let r=t.schemas[e],i=g(e,v(t,n));m(r,i,e);let a=A(r,i);return w(r,a,e),delete a.extensionSlots,a}(n,e,t);r.setState({translationOverridesLoaded:!0,loaded:!0,config:i})}else{let i=function(e,t,n){let r=g(e,v(t,n)),i=A(P,r);return w(P,i,e),delete i.extensionSlots,i}(n,e,t);r.setState({translationOverridesLoaded:!0,loaded:!1,config:i})}}}function d(e,t){let n=function(e,t){let n=b(v(e,t)),r=Object.keys(n).reduce((e,t)=>(n[t]?.extensionSlots&&(e[t]=n[t]?.extensionSlots),e),{});return function(e){for(let[i,a]of Object.entries(e))for(let[e,o]of Object.entries(a)){var t=o,n=i,r=e;let a=`${n}.extensionSlots.${r}`,s=`Extension slot config '${a}'`,c=Object.keys(t).filter(e=>!["add","remove","order","configure"].includes(e));c.length&&k(a,s+`' contains invalid keys '${c.join("', '")}'`),!t.add||Array.isArray(t.add)&&t.add.every(e=>"string"==typeof e)||k(a,s+".add' is invalid. Must be an array of strings (extension IDs)"),!t.remove||Array.isArray(t.remove)&&t.remove.every(e=>"string"==typeof e)||k(a,s+".remove' is invalid. Must be an array of strings (extension IDs)"),!t.order||Array.isArray(t.order)&&t.order.every(e=>"string"==typeof e)||k(a,s+".order' is invalid. Must be an array of strings (extension IDs)"),t.configure&&!S(t.configure)&&k(a,s+".configure' is invalid. Must be an object with extension IDs for keys")}}(r),Object.keys(r).reduce((e,t)=>e={...e,...r[t]},{})}(e,t),i=Object.fromEntries(Object.entries(n).map(([e,t])=>[e,{loaded:!0,config:t}])),a=(0,l.Gr)(),o=a.getState(),s={slots:{...o.slots,...i}};(0,r.Z)(o,s)||a.setState(s)}function p(e,t){let n=function(e,t){let n=function e(t){return t.hasOwnProperty("_default")?{...t,_value:t._default,_source:"default"}:S(t)?Object.keys(t).reduce((n,r)=>(n[r]=e(t[r]),n),{}):{}}((0,i.Z)(e.schemas));for(let[r,i]of[...e.providedConfigs.map(e=>[e.config,e.source]),[t.config,"temporary config"]])n=b([n,function e(t,n){return S(t)?Object.keys(t).reduce((r,i)=>(r[i]=e(t[i],n),r),{}):{_value:t,_source:n}}(r,i)]);return n}(e,t);l.HN.setState({config:n})}function y(e,t,n){let r={};for(let i of t.mountedExtensions){let t=function(e,t,n,r,i,a){let o=function(e){let[t]=e.split("#");return t}(r),s=i.schemas[o],c=s?o:t,u=v(i,a),l=g(e,u),f=l?.extensionSlots?.[n]?.configure?.[r]??{},h=g(c,u),d=b([h,f]),p=s??i.schemas[t];m(p,d,c);let y=A(p,d);return w(p,y,c),delete y.extensionSlots,y}(i.slotModuleName,i.extensionModuleName,i.slotName,i.extensionId,e,n);r[i.slotName]={...r[i.slotName],[i.extensionId]:{config:t,loaded:!0}}}(0,l._z)().setState({configs:r})}function v(e,t){return[...e.providedConfigs.map(e=>e.config),t.config]}function g(e,t){let n=t.map(({[e]:t})=>t).filter(e=>!!e);return b(n)}function b(e){return(0,a.Z)(o.Z)({},e)}function m(e,t,n=""){for(let r of Object.keys(t)){let i=t[r],a=n+"."+r,o=e[r];if(!e.hasOwnProperty(r)){("extensionSlots"!==r||""===n)&&k(a,`Unknown config key '${a}' provided. Ignoring.`);continue}(function e(t,n,r){E(r,t._type,n),S(n)?t._type===s.D.Object?function(t,n,r){if(t._elements)for(let i of Object.keys(n)){let a=n[i];e(t._elements,a,`${r}.${i}`)}}(t,n,r):t.hasOwnProperty("_default")||t.hasOwnProperty("_type")||m(t,n,r):t._type===s.D.Array&&function(t,n,r){if(E(r,s.D.Array,n)){if(O(t._elements))for(let i=0;i<n.length;i++)e(t._elements,n[i],`${r}[${i}]`);for(let e=0;e<n.length;e++)E(`${r}[${e}]`,t._elements?._type,n[e])}}(t,n,r)})(o,i,a)}}l=(f.then?(await f)():f)[0],h(l.hv.getState(),l.DK.getState()),l.hv.subscribe(e=>h(e,l.DK.getState())),l.DK.subscribe(e=>h(l.hv.getState(),e)),p(l.hv.getState(),l.DK.getState()),l.hv.subscribe(e=>p(e,l.DK.getState())),l.DK.subscribe(e=>p(l.hv.getState(),e)),d(l.hv.getState(),l.DK.getState()),l.hv.subscribe(e=>d(e,l.DK.getState())),l.DK.subscribe(e=>d(l.hv.getState(),e)),y(l.hv.getState(),l.R2.getState(),l.DK.getState()),l.hv.subscribe(e=>{y(e,l.R2.getState(),l.DK.getState())}),l.R2.subscribe(e=>{y(l.hv.getState(),e,l.DK.getState())}),l.DK.subscribe(e=>{y(l.hv.getState(),l.R2.getState(),e)});function w(e,t,n=""){if(e){if(t!==e._default&&x(n,e._validators,t),S(t))for(let r of Object.keys(t)){let i=t[r],a=n+"."+r,o=e[r];e._type===s.D.Object&&e._elements?w(e._elements,i,a):w(o,i,a)}else if(Array.isArray(t)&&e._elements)for(let r=0;r<t.length;r++)w(e._elements,t[r],`${n}[${r}]`)}}function E(e,t,n){if(t){let r={Array:c.kJ,Boolean:c.jn,ConceptUuid:c.K8,Number:c.hj,Object:c.Kn,String:c.HD,UUID:c.K8,PersonAttributeTypeUuid:c.K8,PatientIdentifierTypeUuid:c.K8};return x(e,[r[t]],n)}return!0}function x(e,t,n){let r=!0;if(t)try{for(let i of t){let t=i(n);if("string"==typeof t){let i="object"==typeof n?`Invalid configuration for ${e}: ${t}`:`Invalid configuration value ${n} for ${e}: ${t}`;k(e,i),r=!1}}}catch(t){console.error(`Skipping invalid validator at "${e}". Encountered error
2
+ ${t}`)}return r}let A=(e,t)=>{let n=(0,i.Z)(t);if(!e)return n;for(let t of Object.keys(e)){let r=n[t],i=e[t];if(i&&(i.hasOwnProperty("_type")||i.hasOwnProperty("_default"))){n.hasOwnProperty(t)||(n[t]=i._default);let e=i._elements;if(r&&O(e)){if(i._type===s.D.Array&&Array.isArray(r)){let i=r.map(t=>A(e,t));n[t]=i}else if(i._type===s.D.Object)for(let t of Object.keys(r))r[t]=A(e,r[t])}}else if(S(i)){let e=r??{};S(e)&&(n[t]=A(i,e))}}return n};function O(e){return!!e&&Object.keys(e).filter(e=>!["_default","_validators"].includes(e)).length>0}function S(e){return"object"==typeof e&&!Array.isArray(e)&&null!==e}let j=new Set;function k(e,t){let n=`${e}:::${t}`;j||(j=new Set),j.has(n)||(console.error(t),j.add(n))}let C={"Translation overrides":{_description:"Per-language overrides for frontend translations should be keyed by language code and each language dictionary contains the translation key and the display value",_type:s.D.Object,_default:{},_validators:[(0,u.s)(e=>Object.keys(e).every(e=>/^[a-z]{2,3}(-[A-Z]{2,3})?$/.test(e)),e=>{let t=Object.keys(e).filter(e=>!/^[a-z]{2,3}(-[A-Z]{2,3})?$/.test(e));return`The 'Translation overrides' object should have language codes for keys. Language codes must be in the form of a two-to-three letter language code optionally followed by a hyphen and a two-to-three letter country code. The following keys do not conform: ${t.join(", ")}.`})]}},P={"Display conditions":{privileges:{_description:"The privilege(s) the user must have to use this extension",_type:s.D.Array,_default:[]}},...C};t()}catch(e){t(e)}})},3953:function(e,t,n){"use strict";n.a(e,async function(e,r){try{n.d(t,{$w:()=>f,DK:()=>d,Gr:()=>s,HN:()=>y,R2:()=>p,_z:()=>u,eQ:()=>c,hv:()=>h,pR:()=>o,sR:()=>l});var i=n(7166),a=e([i]);i=(a.then?(await a)():a)[0];let h=(0,i.jk)("config-internal",{providedConfigs:[],schemas:{},moduleLoaded:{}}),d=(0,i.jk)("temporary-config",{config:function(){try{return JSON.parse(localStorage.getItem("openmrs:temporaryConfig")||"{}")}catch(e){return{}}}()});d.subscribe(e=>{var t;t=e.config,localStorage.setItem("openmrs:temporaryConfig",JSON.stringify(t))});let p=(0,i.jk)("config-store-of-extension-state",{mountedExtensions:[]});function o(e){return(0,i.zJ)(`config-module-${e}`,{config:null,loaded:!1,translationOverridesLoaded:!1})}function s(){return(0,i.zJ)("config-extension-slots",{slots:{}})}function c(e,t){return e.slots[t]??{loaded:!1,config:{}}}function u(){return(0,i.zJ)("config-extensions",{configs:{}})}function l(e,t,n){return e.configs[t]?.[n]??{loaded:!1,config:null}}function f(e,t,n){return e.configure?.[n]??null}let y=(0,i.jk)("config-implementer-tools",{config:{}});r()}catch(e){r(e)}})},1916:function(e,t,n){"use strict";n.a(e,async function(e,t){try{n(2051);var r=n(568),i=n(3953),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},7595:function(e,t,n){"use strict";n.d(t,{D:()=>i});var r,i=((r={}).Array="Array",r.Boolean="Boolean",r.ConceptUuid="ConceptUuid",r.Number="Number",r.Object="Object",r.String="String",r.UUID="UUID",r.PersonAttributeTypeUuid="PersonAttributeTypeUuid",r.PatientIdentifierTypeUuid="PatientIdentifierTypeUuid",r)},6543:function(e,t,n){"use strict";n.d(t,{HD:()=>s,K8:()=>u,Kn:()=>c,hj:()=>o,jn:()=>a,kJ:()=>i});var r=n(5585);let i=(0,r.s)(e=>Array.isArray(e),"must be an array"),a=(0,r.s)(e=>"boolean"==typeof e,"must be a boolean"),o=(0,r.s)(e=>"number"==typeof e,"must be a number"),s=(0,r.s)(e=>"string"==typeof e,"must be a string"),c=(0,r.s)(e=>"object"==typeof e&&!Array.isArray(e)&&null!==e,"must be an object (not an array or null)"),u=(0,r.s)(e=>/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(e)||/^[0-9a-f]{36}$/i.test(e),"must be a valid UUID or a 36-character hexadecimal string")},5585:function(e,t,n){"use strict";function r(e,t){return n=>{if(!e(n))if("function"==typeof t)return t(n);else return t}}n.d(t,{s:()=>r})},2051:function(e,t,n){"use strict";n.d(t,{z2:()=>a});var r=n(5585);let i=e=>{let t=e.concat(["openmrsBase","openmrsSpaBase"]);return(0,r.s)(e=>{if(!e||"string"!=typeof e)return!1;let n=/\${(.*?)}/g,r=n.exec(e);for(;r;){if(!t.includes(r[1]))return!1;r=n.exec(e)}return!0},"Should be a URL or path. The allowed template parameters are "+t.map(e=>"${"+e+"}").join(", "))},a={inRange:(e,t)=>(0,r.s)(n=>e<=n&&n<=t,`must be between ${e} and ${t}`),isUrl:i([]),isUrlWithTemplateParameters:i,oneOf:e=>(0,r.s)(t=>e.includes(t),`Must be one of the following: '${e.join("', '")}'.`)}},742:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(5970),i=e([r]);(r=(i.then?(await i)():i)[0]).YC,t()}catch(e){t(e)}})},2570:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(5970),i=n(4952),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},2639:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(742),i=n(2570),a=n(2947),o=n(4444),s=n(4994),c=e([r,i,a,o,s]);[r,i,a,o,s]=c.then?(await c)():c,t()}catch(e){t(e)}})},2947:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(5970),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},2151:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(742),i=n(2570),a=n(4994),o=n(4444),s=n(2947),c=e([r,i,a,o,s]);[r,i,a,o,s]=c.then?(await c)():c,t()}catch(e){t(e)}})},4444:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(5970),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},4994:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(5970),i=n(7166),a=n(8999),o=e([r,i,a]);[r,i,a]=o.then?(await o)():o;let s=function(){try{return JSON.parse(sessionStorage.getItem("openmrs:visitStoreState")||"null")}catch(e){return null}}()||{patientUuid:null,manuallySetVisitUuid:null,mutateVisitCallbacks:{}};(0,i.zJ)("visit",s).subscribe(e=>{var t;t=e,sessionStorage.setItem("openmrs:visitStoreState",JSON.stringify(t))}),new a.BehaviorSubject(null),t()}catch(e){t(e)}})},382:function(e,t,n){"use strict";var r=n(595);window.onerror=function(e){return console.error("Unexpected error: ",e),(0,r.dO)({description:e??"Oops! An unexpected error occurred.",kind:"error",title:"Error"}),!1},window.onunhandledrejection=function(e){console.error("Unhandled rejection: ",e.reason),(0,r.dO)({description:e.reason??"Oops! An unhandled promise rejection occurred.",kind:"error",title:"Error"})}},9753:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}n.d(t,{po:()=>v});var s=function(){function e(){i(this,e)}return o(e,[{key:"add",value:function(e,t,n){if("string"!=typeof arguments[0])for(var r in arguments[0])this.add(r,arguments[0][r],arguments[1]);else(Array.isArray(e)?e:[e]).forEach(function(e){this[e]=this[e]||[],t&&this[e][n?"unshift":"push"](t)},this)}},{key:"run",value:function(e,t){this[e]=this[e]||[],this[e].forEach(function(e){e.call(t&&t.context?t.context:t,t)})}}]),e}(),c=function(){function e(t){i(this,e),this.jsep=t,this.registered={}}return o(e,[{key:"register",value:function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];n.forEach(function(t){if((void 0===t?"undefined":t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)!="object"||!t.name||!t.init)throw Error("Invalid JSEP plugin format");e.registered[t.name]||(t.init(e.jsep),e.registered[t.name]=t)})}}]),e}(),u=function(){function e(t){i(this,e),this.expr=t,this.index=0}return o(e,[{key:"char",get:function(){return this.expr.charAt(this.index)}},{key:"code",get:function(){return this.expr.charCodeAt(this.index)}},{key:"throwError",value:function(e){var t=Error(e+" at character "+this.index);throw t.index=this.index,t.description=e,t}},{key:"runHook",value:function(t,n){if(e.hooks[t]){var r={context:this,node:n};return e.hooks.run(t,r),r.node}return n}},{key:"searchHook",value:function(t){if(e.hooks[t]){var n={context:this};return e.hooks[t].find(function(e){return e.call(n.context,n),n.node}),n.node}}},{key:"gobbleSpaces",value:function(){for(var t=this.code;t===e.SPACE_CODE||t===e.TAB_CODE||t===e.LF_CODE||t===e.CR_CODE;)t=this.expr.charCodeAt(++this.index);this.runHook("gobble-spaces")}},{key:"parse",value:function(){this.runHook("before-all");var t=this.gobbleExpressions(),n=1===t.length?t[0]:{type:e.COMPOUND,body:t};return this.runHook("after-all",n)}},{key:"gobbleExpressions",value:function(t){for(var n,r,i=[];this.index<this.expr.length;)if((n=this.code)===e.SEMCOL_CODE||n===e.COMMA_CODE)this.index++;else if(r=this.gobbleExpression())i.push(r);else if(this.index<this.expr.length){if(n===t)break;this.throwError('Unexpected "'+this.char+'"')}return i}},{key:"gobbleExpression",value:function(){var e=this.searchHook("gobble-expression")||this.gobbleBinaryExpression();return this.gobbleSpaces(),this.runHook("after-expression",e)}},{key:"gobbleBinaryOp",value:function(){this.gobbleSpaces();for(var t=this.expr.substr(this.index,e.max_binop_len),n=t.length;n>0;){if(e.binary_ops.hasOwnProperty(t)&&(!e.isIdentifierStart(this.code)||this.index+t.length<this.expr.length&&!e.isIdentifierPart(this.expr.charCodeAt(this.index+t.length))))return this.index+=n,t;t=t.substr(0,--n)}return!1}},{key:"gobbleBinaryExpression",value:function(){var t,n,r,i,a,o,s,c,u,l;if(!(o=this.gobbleToken())||!(n=this.gobbleBinaryOp()))return o;for(a={value:n,prec:e.binaryPrecedence(n),right_a:e.right_associative.has(n)},(s=this.gobbleToken())||this.throwError("Expected expression after "+n),i=[o,a,s];n=this.gobbleBinaryOp();){if(0===(r=e.binaryPrecedence(n))){this.index-=n.length;break}for(a={value:n,prec:r,right_a:e.right_associative.has(n)},u=n;i.length>2&&(l=i[i.length-2],a.right_a&&l.right_a?r>l.prec:r<=l.prec);)s=i.pop(),n=i.pop().value,o=i.pop(),t={type:e.BINARY_EXP,operator:n,left:o,right:s},i.push(t);(t=this.gobbleToken())||this.throwError("Expected expression after "+u),i.push(a,t)}for(c=i.length-1,t=i[c];c>1;)t={type:e.BINARY_EXP,operator:i[c-1].value,left:i[c-2],right:t},c-=2;return t}},{key:"gobbleToken",value:function(){var t,n,r,i;if(this.gobbleSpaces(),i=this.searchHook("gobble-token"))return this.runHook("after-token",i);if(t=this.code,e.isDecimalDigit(t)||t===e.PERIOD_CODE)return this.gobbleNumericLiteral();if(t===e.SQUOTE_CODE||t===e.DQUOTE_CODE)i=this.gobbleStringLiteral();else if(t===e.OBRACK_CODE)i=this.gobbleArray();else{for(r=(n=this.expr.substr(this.index,e.max_unop_len)).length;r>0;){if(e.unary_ops.hasOwnProperty(n)&&(!e.isIdentifierStart(this.code)||this.index+n.length<this.expr.length&&!e.isIdentifierPart(this.expr.charCodeAt(this.index+n.length)))){this.index+=r;var a=this.gobbleToken();return a||this.throwError("missing unaryOp argument"),this.runHook("after-token",{type:e.UNARY_EXP,operator:n,argument:a,prefix:!0})}n=n.substr(0,--r)}e.isIdentifierStart(t)?(i=this.gobbleIdentifier(),e.literals.hasOwnProperty(i.name)?i={type:e.LITERAL,value:e.literals[i.name],raw:i.name}:i.name===e.this_str&&(i={type:e.THIS_EXP})):t===e.OPAREN_CODE&&(i=this.gobbleGroup())}return i?(i=this.gobbleTokenProperty(i),this.runHook("after-token",i)):this.runHook("after-token",!1)}},{key:"gobbleTokenProperty",value:function(t){this.gobbleSpaces();for(var n=this.code;n===e.PERIOD_CODE||n===e.OBRACK_CODE||n===e.OPAREN_CODE||n===e.QUMARK_CODE;){var r=void 0;if(n===e.QUMARK_CODE){if(this.expr.charCodeAt(this.index+1)!==e.PERIOD_CODE)break;r=!0,this.index+=2,this.gobbleSpaces(),n=this.code}this.index++,n===e.OBRACK_CODE?((t={type:e.MEMBER_EXP,computed:!0,object:t,property:this.gobbleExpression()}).property||this.throwError('Unexpected "'+this.char+'"'),this.gobbleSpaces(),(n=this.code)!==e.CBRACK_CODE&&this.throwError("Unclosed ["),this.index++):n===e.OPAREN_CODE?t={type:e.CALL_EXP,arguments:this.gobbleArguments(e.CPAREN_CODE),callee:t}:(n===e.PERIOD_CODE||r)&&(r&&this.index--,this.gobbleSpaces(),t={type:e.MEMBER_EXP,computed:!1,object:t,property:this.gobbleIdentifier()}),r&&(t.optional=!0),this.gobbleSpaces(),n=this.code}return t}},{key:"gobbleNumericLiteral",value:function(){for(var t,n,r="";e.isDecimalDigit(this.code);)r+=this.expr.charAt(this.index++);if(this.code===e.PERIOD_CODE)for(r+=this.expr.charAt(this.index++);e.isDecimalDigit(this.code);)r+=this.expr.charAt(this.index++);if("e"===(t=this.char)||"E"===t){for(r+=this.expr.charAt(this.index++),("+"===(t=this.char)||"-"===t)&&(r+=this.expr.charAt(this.index++));e.isDecimalDigit(this.code);)r+=this.expr.charAt(this.index++);e.isDecimalDigit(this.expr.charCodeAt(this.index-1))||this.throwError("Expected exponent ("+r+this.char+")")}return n=this.code,e.isIdentifierStart(n)?this.throwError("Variable names cannot start with a number ("+r+this.char+")"):(n===e.PERIOD_CODE||1===r.length&&r.charCodeAt(0)===e.PERIOD_CODE)&&this.throwError("Unexpected period"),{type:e.LITERAL,value:parseFloat(r),raw:r}}},{key:"gobbleStringLiteral",value:function(){for(var t="",n=this.index,r=this.expr.charAt(this.index++),i=!1;this.index<this.expr.length;){var a=this.expr.charAt(this.index++);if(a===r){i=!0;break}if("\\"===a)switch(a=this.expr.charAt(this.index++)){case"n":t+="\n";break;case"r":t+="\r";break;case"t":t+=" ";break;case"b":t+="\b";break;case"f":t+="\f";break;case"v":t+="\v";break;default:t+=a}else t+=a}return i||this.throwError('Unclosed quote after "'+t+'"'),{type:e.LITERAL,value:t,raw:this.expr.substring(n,this.index)}}},{key:"gobbleIdentifier",value:function(){var t=this.code,n=this.index;for(e.isIdentifierStart(t)?this.index++:this.throwError("Unexpected "+this.char);this.index<this.expr.length;)if(t=this.code,e.isIdentifierPart(t))this.index++;else break;return{type:e.IDENTIFIER,name:this.expr.slice(n,this.index)}}},{key:"gobbleArguments",value:function(t){for(var n=[],r=!1,i=0;this.index<this.expr.length;){this.gobbleSpaces();var a=this.code;if(a===t){r=!0,this.index++,t===e.CPAREN_CODE&&i&&i>=n.length&&this.throwError("Unexpected token "+String.fromCharCode(t));break}if(a===e.COMMA_CODE){if(this.index++,++i!==n.length){if(t===e.CPAREN_CODE)this.throwError("Unexpected token ,");else if(t===e.CBRACK_CODE)for(var o=n.length;o<i;o++)n.push(null)}}else if(n.length!==i&&0!==i)this.throwError("Expected comma");else{var s=this.gobbleExpression();s&&s.type!==e.COMPOUND||this.throwError("Expected comma"),n.push(s)}}return r||this.throwError("Expected "+String.fromCharCode(t)),n}},{key:"gobbleGroup",value:function(){this.index++;var t=this.gobbleExpressions(e.CPAREN_CODE);if(this.code===e.CPAREN_CODE)return(this.index++,1===t.length)?t[0]:!!t.length&&{type:e.SEQUENCE_EXP,expressions:t};this.throwError("Unclosed (")}},{key:"gobbleArray",value:function(){return this.index++,{type:e.ARRAY_EXP,elements:this.gobbleArguments(e.CBRACK_CODE)}}}],[{key:"version",get:function(){return"1.4.0"}},{key:"toString",value:function(){return"JavaScript Expression Parser (JSEP) v"+e.version}},{key:"addUnaryOp",value:function(t){return e.max_unop_len=Math.max(t.length,e.max_unop_len),e.unary_ops[t]=1,e}},{key:"addBinaryOp",value:function(t,n,r){return e.max_binop_len=Math.max(t.length,e.max_binop_len),e.binary_ops[t]=n,r?e.right_associative.add(t):e.right_associative.delete(t),e}},{key:"addIdentifierChar",value:function(t){return e.additional_identifier_chars.add(t),e}},{key:"addLiteral",value:function(t,n){return e.literals[t]=n,e}},{key:"removeUnaryOp",value:function(t){return delete e.unary_ops[t],t.length===e.max_unop_len&&(e.max_unop_len=e.getMaxKeyLen(e.unary_ops)),e}},{key:"removeAllUnaryOps",value:function(){return e.unary_ops={},e.max_unop_len=0,e}},{key:"removeIdentifierChar",value:function(t){return e.additional_identifier_chars.delete(t),e}},{key:"removeBinaryOp",value:function(t){return delete e.binary_ops[t],t.length===e.max_binop_len&&(e.max_binop_len=e.getMaxKeyLen(e.binary_ops)),e.right_associative.delete(t),e}},{key:"removeAllBinaryOps",value:function(){return e.binary_ops={},e.max_binop_len=0,e}},{key:"removeLiteral",value:function(t){return delete e.literals[t],e}},{key:"removeAllLiterals",value:function(){return e.literals={},e}},{key:"parse",value:function(t){return new e(t).parse()}},{key:"getMaxKeyLen",value:function(e){var t,n;return(t=Math).max.apply(t,[0].concat(function(e){if(Array.isArray(e))return r(e)}(n=Object.keys(e).map(function(e){return e.length}))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return r(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}}(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))}},{key:"isDecimalDigit",value:function(e){return e>=48&&e<=57}},{key:"binaryPrecedence",value:function(t){return e.binary_ops[t]||0}},{key:"isIdentifierStart",value:function(t){return t>=65&&t<=90||t>=97&&t<=122||t>=128&&!e.binary_ops[String.fromCharCode(t)]||e.additional_identifier_chars.has(String.fromCharCode(t))}},{key:"isIdentifierPart",value:function(t){return e.isIdentifierStart(t)||e.isDecimalDigit(t)}}]),e}();Object.assign(u,{hooks:new s,plugins:new c(u),COMPOUND:"Compound",SEQUENCE_EXP:"SequenceExpression",IDENTIFIER:"Identifier",MEMBER_EXP:"MemberExpression",LITERAL:"Literal",THIS_EXP:"ThisExpression",CALL_EXP:"CallExpression",UNARY_EXP:"UnaryExpression",BINARY_EXP:"BinaryExpression",ARRAY_EXP:"ArrayExpression",TAB_CODE:9,LF_CODE:10,CR_CODE:13,SPACE_CODE:32,PERIOD_CODE:46,COMMA_CODE:44,SQUOTE_CODE:39,DQUOTE_CODE:34,OPAREN_CODE:40,CPAREN_CODE:41,OBRACK_CODE:91,CBRACK_CODE:93,QUMARK_CODE:63,SEMCOL_CODE:59,COLON_CODE:58,unary_ops:{"-":1,"!":1,"~":1,"+":1},binary_ops:{"||":1,"??":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":10,"/":10,"%":10,"**":11},right_associative:new Set(["**"]),additional_identifier_chars:new Set(["$","_"]),literals:{true:!0,false:!1,null:null},this_str:"this"}),u.max_unop_len=u.getMaxKeyLen(u.unary_ops),u.max_binop_len=u.getMaxKeyLen(u.binary_ops);var l=function(e){return new u(e).parse()},f=Object.getOwnPropertyNames(function e(){i(this,e)});Object.getOwnPropertyNames(u).filter(function(e){return!f.includes(e)&&void 0===l[e]}).forEach(function(e){l[e]=u[e]}),l.Jsep=u,l.plugins.register({name:"ternary",init:function(e){e.hooks.add("after-expression",function(t){if(t.node&&this.code===e.QUMARK_CODE){this.index++;var n=t.node,r=this.gobbleExpression();if(r||this.throwError("Expected expression"),this.gobbleSpaces(),this.code===e.COLON_CODE){this.index++;var i=this.gobbleExpression();if(i||this.throwError("Expected expression"),t.node={type:"ConditionalExpression",test:n,consequent:r,alternate:i},n.operator&&e.binary_ops[n.operator]<=.9){for(var a=n;a.right.operator&&e.binary_ops[a.right.operator]<=.9;)a=a.right;t.node.test=a.right,a.right=t.node,t.node=n}}else this.throwError("Expected :")}})}});var h="ArrowFunctionExpression";function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}let y={Array,Boolean,Symbol,Infinity,NaN,Math,Number,BigInt,String,RegExp,JSON,isFinite,isNaN,parseFloat,parseInt,decodeURI,encodeURI,encodeURIComponent,Object:{__proto__:void 0,assign:Object.assign.bind(null),fromEntries:Object.fromEntries.bind(null),hasOwn:Object.hasOwn.bind(null),keys:Object.keys.bind(null),is:Object.is.bind(null),values:Object.values.bind(null)}};function v(e,t={}){return function(e,t={},n){if("string"!=typeof e&&("object"!=typeof e||!e||!("type"in e)))throw`Unknown expression type ${e}. Expressions must either be a string or pre-compiled string.`;null==t&&(t={});let r=function(e){var t=e,n=y;let r={thisObj:void 0,variables:{...t},globals:{...n},addVariables(e){return this.variables={...this.variables,...e},this}};return r.addVariables.bind(r),r}(t),i=b("string"==typeof e?l(e):e,r);if(n(i))return i;throw{type:"Invalid result",message:"string"==typeof e?`The expression ${e} did not produce a valid result`:"The expression did not produce a valid result"}}(e,t,g)}function g(e){return"boolean"==typeof e}function b(e,t){switch(e.type){case"UnaryExpression":var n,r,i,a,o,s,c,u,l=e,f=t;let h=b(l.argument,f);switch(l.operator){case"+":return+h;case"-":return-h;case"~":return~h;case"!":return!h;default:throw`Expression evaluator does not support operator '${l.operator}''`}case"BinaryExpression":var d=e,p=t;let y=b(d.left,p),v=b(d.right,p);switch(d.operator){case"+":return y+v;case"-":return y-v;case"*":return y*v;case"/":return y/v;case"%":return y%v;case"**":return y**v;case"==":return y==v;case"===":return y===v;case"!=":return y!=v;case"!==":return y!==v;case">":return y>v;case">=":return y>=v;case"<":return y<v;case"<=":return y<=v;case"in":return y in v;case"&&":return y&&v;case"||":return y||v;case"??":return y??v;default:throw`Expression evaluator does not support operator '${d.operator}' operator`}case"ConditionalExpression":return n=e,r=t,b(n.test,r)?b(n.consequent,r):b(n.alternate,r);case"CallExpression":var g=e,O=t;let S=g.arguments?.map(w(O)),k=b(g.callee,O);if(k){if("function"!=typeof k)throw`${x(g.callee)} is not a function`}else throw`No function named ${x(g.callee)} is defined in this context`;return k(...S);case"ArrowFunctionExpression":var A=e,j=t;let C=A.params?.map(e=>{if("Identifier"===e.type)return e.name;throw`Cannot handle parameter of type ${e.type}`})??[];return(function(...e){if(e.length<C.length)throw`Required argument(s) ${C.slice(e.length,-1).join(", ")} were not provided`;let t=Object.fromEntries(C.reduce((t,n,r)=>{let i=e[r];return function e(t){if("string"==typeof t||"number"==typeof t||"boolean"==typeof t||"function"==typeof t||null===t||t instanceof RegExp)return!0;if("object"==typeof t){for(let n of Object.keys(t))if(!e(t[n]))return!1;return!0}if(Array.isArray(t)){for(let n of t)if(!e(n))break}return!1}(i)&&t.push([n,i]),t},[]));return b(A.body,j.addVariables(t))}).bind(j.thisObj??null);case"MemberExpression":return function(e,t){let n,r=b(e.object,t);if(void 0===r)switch(e.object.type){case"Identifier":{let n=m(e.object,t);throw ReferenceError(`ReferenceError: ${n} is not defined`)}case"MemberExpression":{let n=m(e.property,t);throw TypeError(`TypeError: cannot read properties of undefined (reading '${n}')`)}default:throw`VisitMemberExpression does not support operator '${e.object.type}' type`}let i=r;if("string"==typeof r)i=String.prototype;else if("number"==typeof r)i=Number.prototype;else if("function"==typeof r);else if("object"!=typeof r)throw`VisitMemberExpression does not support member access on type ${typeof r}`;switch(t.thisObj=i,e.property.type){case"Identifier":case"MemberExpression":n=b(e.property,t);break;default:{let i=b(e.property,t);if(void 0===i)throw{type:"Illegal property access",message:"No property was supplied to the property access"};E(i),n=r[i]}}return"function"==typeof n?n.bind(r):n}(e,t);case"ArrayExpression":return i=e,a=t,i.elements?.map(w(a));case"SequenceExpression":var P=e,D=t;let T=P.expressions.map(w(D));return T[T.length-1];case"NewExpression":var R=e,I=t;if(R.callee&&"Identifier"===R.callee.type){let e=R.arguments?.map(w(I));switch(R.callee.name){case"Date":return new Date(...e);case"RegExp":return new RegExp(...e);default:throw`Cannot instantiate object of type ${R.callee.name}`}}if(R.callee)throw"new must be called with either Date or RegExp";throw'Could not handle "new" without a specified class';case"Literal":return s=0,E((o=e).value),o.value;case"Identifier":var N=e,L=t;E(N.name);let B=L.thisObj;if(B&&("object"==typeof B||"function"==typeof B)&&N.name in B){let e=B[N.name];return E(e),e}if(L.variables&&N.name in L.variables){let e=L.variables[N.name];return E(e),e}return N.name in L.globals?L.globals[N.name]:void 0;case"TemplateLiteral":var Z=e,M=t;let K=Z.expressions?.map(w(M))??[],F=Z.quasis?.map(w(M))??[];return F.filter(e=>!e.tail).map(e=>e.value).join("")+K.join("")+F.filter(e=>e.tail).map(e=>e.value).join("");case"TemplateElement":return u=0,{value:(c=e).cooked,tail:c.tail};default:throw`Expression evaluator does not support expression of type '${e.type}'`}}function m(e,t){switch(e.type){case"Literal":return e.value;case"Identifier":return e.name;case"MemberExpression":return m(e.property,t);default:throw`VisitExpressionName does not support expression of type '${e.type}'`}}function w(e){return function(t){return null===t?null:b(t,e)}}function E(e){if("__proto__"===e||"prototype"===e||"constructor"===e)throw{type:"Illegal property access",message:`Cannot access the ${e} property of objects`}}function x(e){return e?"MemberExpression"===e.type?e.property?.name:e.name:null}l.plugins.register({name:"arrow",init:function(e){e.addBinaryOp("=>",.1,!0),e.hooks.add("gobble-expression",function(t){if(this.gobbleSpaces(),this.code===e.OPAREN_CODE){var n=this.index;if(this.index++,this.gobbleSpaces(),this.code===e.CPAREN_CODE){this.index++;var r=this.gobbleBinaryOp();if("=>"===r){var i=this.gobbleBinaryExpression();i||this.throwError("Expected expression after "+r),t.node={type:h,params:null,body:i};return}}this.index=n}}),e.hooks.add("after-expression",function(t){!function t(n){n&&(Object.values(n).forEach(function(e){e&&(void 0===e?"undefined":e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)=="object"&&t(e)}),"=>"===n.operator&&(n.type=h,n.params=n.left?[n.left]:null,n.body=n.right,n.params&&n.params[0].type===e.SEQUENCE_EXP&&(n.params=n.params[0].expressions),delete n.left,delete n.right,delete n.operator))}(t.node)})}}),l.plugins.register({name:"new",init:function(e){e.addUnaryOp("new"),e.hooks.add("after-token",function(t){var n=t.node;if(n&&"new"===n.operator){n.argument&&[e.CALL_EXP,e.MEMBER_EXP].includes(n.argument.type)||this.throwError("Expected new function()"),t.node=n.argument;for(var r=t.node;r.type===e.MEMBER_EXP||r.type===e.CALL_EXP&&r.callee.type===e.MEMBER_EXP;)r=r.type===e.MEMBER_EXP?r.object:r.callee.object;r.type="NewExpression"}})}}),l.plugins.register({name:"numbers",init:function(e){function t(e){return"x"===e||"X"===e?(this.index+=2,[[48,57],[65,70],[97,102]]):"b"===e||"B"===e?(this.index+=2,[[48,49]]):"o"===e||"O"===e||e>="0"&&e<="7"?(this.index+=e<="7"?1:2,[[48,55]]):null}function n(t){var n=this,r=this.index,i="",a=function(){for(;e.isDecimalDigit(n.code)||95===n.code;)95===n.code?n.index++:i+=n.expr.charAt(n.index++)};a(),this.code===e.PERIOD_CODE&&(i+=this.expr.charAt(this.index++),a());var o=this.char;("e"===o||"E"===o)&&(i+=this.expr.charAt(this.index++),("+"===(o=this.char)||"-"===o)&&(i+=this.expr.charAt(this.index++)),a(),e.isDecimalDigit(this.expr.charCodeAt(this.index-1))||this.throwError("Expected exponent ("+i+this.char+")"));var s=this.code;if(e.isIdentifierStart(s))this.throwError("Variable names cannot start with a number ("+i+this.char+")");else if(s===e.PERIOD_CODE){i.length>1&&this.throwError("Unexpected period ".concat(JSON.stringify({chCode:s,number:i},null,2))),this.index=r;return}t.node={type:e.LITERAL,value:parseFloat(i),raw:this.expr.substring(r,this.index)}}e.hooks.add("gobble-token",function(r){if(48===this.code){var i=this.index,a=this.expr.charAt(this.index+1),o=t.call(this,a);if(o){for(var s,c,u,l="";s=this.code,c=o,95===s||c.some(function(e){var t=function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(n=i.next()).done)&&(a.push(n.value),a.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw r}}return a}}(e,2)||function(e,t){if(e){if("string"==typeof e)return d(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(e,t)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=t[0],r=t[1];return s>=n&&s<=r});)95===this.code?this.index++:l+=this.expr.charAt(this.index++);if(e.isIdentifierPart(this.code)){if(e.isDecimalDigit(this.code)&&e.isDecimalDigit(a.charCodeAt(0))){this.index=i+1,n.call(this,r);return}this.throwError("unexpected char within number")}r.node={type:e.LITERAL,value:parseInt(l,"x"===(u=a)||"X"===u?16:"b"===u||"B"===u?2:8),raw:this.expr.substring(i,this.index)}}}else(e.isDecimalDigit(this.code)||this.code===e.PERIOD_CODE)&&n.call(this,r)})}}),l.plugins.register({name:"regex",init:function(e){e.hooks.add("gobble-token",function(t){if(47===this.code){for(var n=++this.index,r=!1;this.index<this.expr.length;){if(47===this.code&&!r){for(var i=this.expr.slice(n,this.index),a="";++this.index<this.expr.length;){var o=this.code;if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57)a+=this.char;else break}var s=void 0;try{s=new RegExp(i,a)}catch(e){this.throwError(e.message)}return t.node={type:e.LITERAL,value:s,raw:this.expr.slice(n-1,this.index)},t.node=this.gobbleTokenProperty(t.node),t.node}this.code===e.OBRACK_CODE?r=!0:r&&this.code===e.CBRACK_CODE&&(r=!1),this.index+=92===this.code?2:1}this.throwError("Unclosed Regex")}})}}),l.plugins.register({name:"ternary",init:function(e){e.hooks.add("after-expression",function(t){if(t.node&&this.code===e.QUMARK_CODE){this.index++;var n=t.node,r=this.gobbleExpression();if(r||this.throwError("Expected expression"),this.gobbleSpaces(),this.code===e.COLON_CODE){this.index++;var i=this.gobbleExpression();if(i||this.throwError("Expected expression"),t.node={type:"ConditionalExpression",test:n,consequent:r,alternate:i},n.operator&&e.binary_ops[n.operator]<=.9){for(var a=n;a.right.operator&&e.binary_ops[a.right.operator]<=.9;)a=a.right;t.node.test=a.right,a.right=t.node,t.node=n}}else this.throwError("Expected :")}})}}),l.plugins.register({name:"jsepTemplateLiteral",init:function(e){function t(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if(96===this.code){for(var n={type:"TemplateLiteral",quasis:[],expressions:[]},r="",i="",a=!1,o=this.expr.length,s=function(){return n.quasis.push({type:"TemplateElement",value:{raw:i,cooked:r},tail:a})};this.index<o;){var c,u,l=this.expr.charAt(++this.index);if("`"===l)return this.index+=1,a=!0,s(),e.node=n,t&&(e.node=this.gobbleTokenProperty(e.node)),e.node;if("$"===l&&"{"===this.expr.charAt(this.index+1))this.index+=2,s(),i="",r="",(u=n.expressions).push.apply(u,function(e){if(Array.isArray(e))return p(e)}(c=this.gobbleExpressions(125))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(c)||function(e,t){if(e){if("string"==typeof e)return p(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(e,t)}}(c)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),125!==this.code&&this.throwError("unclosed ${");else if("\\"===l)switch(i+=l,l=this.expr.charAt(++this.index),i+=l,l){case"n":r+="\n";break;case"r":r+="\r";break;case"t":r+=" ";break;case"b":r+="\b";break;case"f":r+="\f";break;case"v":r+="\v";break;default:r+=l}else r+=l,i+=l}this.throwError("Unclosed `")}}e.hooks.add("gobble-token",t),e.hooks.add("after-token",function(n){if((n.node.type===e.IDENTIFIER||n.node.type===e.MEMBER_EXP)&&96===this.code)return n.node={type:"TaggedTemplateExpression",tag:n.node,quasi:t.bind(this)(n,!1)},n.node=this.gobbleTokenProperty(n.node),n.node})}}),l.addBinaryOp("in",7),l.addBinaryOp("??",1)},2025:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(5970),i=n(6149),a=n(9753),o=n(2111),s=n(595),c=n(1465),u=n(186),l=n(7830),f=n(6920),h=n(7021),d=e([h,o,i,r,f]);[h,o,i,r,f]=d.then?(await d)():d;let b=(0,h.Co)(),m=(0,h.yw)(),w=(0,i.Gr)(),E=(0,i._z)();function p(e,t,n,o,s){let h={},d=(0,c.G)(),p=Object.entries(o.flags).filter(([,{enabled:e}])=>e).map(([e])=>e);for(let[o,c]of Object.entries(e.slots)){let{config:u}=(0,i.getExtensionSlotConfigFromStore)(t,c.name),y=function(e,t,n,o,s,c,u){let h=t.slots[e].attachedIds,d=function(e,t){let n=e.add||[],r=e.remove||[],i=e.order||[],{extensions:a}=b.getState();return[...t,...n].filter(e=>!r.includes(e)).sort((e,n)=>{let r=g(e,i,a[v(e)]?.order,t),o=g(n,i,a[v(n)]?.order,t);return -1===o?-1:-1===r?1:r-o})}(n,h),p=[];for(let h of d){let{config:d}=(0,i.getExtensionConfigFromStore)(o,e,h),y=(0,i.$w)(n,e,h),g=(0,l.Z)(d,y),b=v(h),m=t.extensions[b];if(m){let e=g?.["Display conditions"]?.privileges??m.privileges??[];if(e&&("string"==typeof e||Array.isArray(e)&&e.length>0)&&(!u?.user||!(0,r.y9)(e,u.user)))continue;let t=g?.["Display conditions"]?.expression??null;if(null!==t)try{if(!(0,a.po)(t,{session:u}))continue}catch(e){console.error(`Error while evaluating expression ${t}`,e);continue}if(m.featureFlag&&!s.includes(m.featureFlag)||window.offlineEnabled&&!(0,f.g)(c,m.online,m.offline))continue;p.push({id:h,name:b,moduleName:m.moduleName,config:g,featureFlag:m.featureFlag,meta:m.meta,online:g?.["Display conditions"]?.online??m.online??!0,offline:g?.["Display conditions"]?.offline??m.offline??!1})}}return p}(o,e,u,n,p,d,s.session);h[o]={moduleName:c.moduleName,assignedExtensions:y}}(0,u.Z)(m.getState().slots,h)||m.setState({slots:h})}function y(){p(b.getState(),w.getState(),E.getState(),o.Jg.getState(),r.Qf.getState())}function v(e){let[t]=e.split("#");return t}function g(e,t,n,r){let i=t.indexOf(e);if(-1!==i)return i;{if(void 0!==n)return 1e3+n;let t=r.indexOf(e);return -1!==t?2e3+t:-1}}b.subscribe(e=>{p(e,w.getState(),E.getState(),o.Jg.getState(),r.Qf.getState())}),w.subscribe(e=>{p(b.getState(),e,E.getState(),o.Jg.getState(),r.Qf.getState())}),E.subscribe(e=>{p(b.getState(),w.getState(),e,o.Jg.getState(),r.Qf.getState())}),o.Jg.subscribe(e=>{p(b.getState(),w.getState(),E.getState(),e,r.Qf.getState())}),r.Qf.subscribe(e=>{p(b.getState(),w.getState(),E.getState(),o.Jg.getState(),e)}),y(),(0,s.XS)(y),t()}catch(e){t(e)}})},6920:function(e,t,n){"use strict";n.a(e,async function(e,r){try{function i(e,t=!0,n=!1){return!!(e?t:n)}n.d(t,{g:()=>i}),r()}catch(e){r(e)}})},5911:function(e,t,n){"use strict";n.a(e,async function(e,r){try{n.d(t,{Co:()=>u.Co,yw:()=>u.yw});var i=n(2025),a=n(2485),o=n(4016),s=n(3789),c=n(2007),u=n(7021),l=e([i,a,o,s,c,u]);[i,a,o,s,c,u]=l.then?(await l)():l,r()}catch(e){r(e)}})},2485:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(7166),i=e([r]);r=(i.then?(await i)():i)[0],(0,r.jk)("left-nav",{slotName:null,basePath:window.spaBase,mode:"normal"}),t()}catch(e){t(e)}})},4016:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(7166),i=n(5911),a=e([i,r]);[i,r]=a.then?(await a)():a,(0,r.jk)("modalRegistry",{modals:{}}),t()}catch(e){t(e)}})},7282:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(2025),i=n(2485),a=n(2007),o=n(7021),s=e([r,i,a,o]);[r,i,a,o]=s.then?(await s)():s,t()}catch(e){t(e)}})},2007:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(7134),i=n(2025),a=n(7021),o=e([r,i,a]);[r,i,a]=o.then?(await o)():o,t()}catch(e){t(e)}})},7021:function(e,t,n){"use strict";n.a(e,async function(e,r){try{n.d(t,{Co:()=>l,yw:()=>f});var i=n(186),a=n(6149),o=n(7166),s=e([o,a]);[o,a]=s.then?(await s)():s;let u=(0,o.jk)("extensionsInternal",{slots:{},extensions:{}}),l=()=>(0,o.zJ)("extensionsInternal",{slots:{},extensions:{}}),f=()=>(0,o.zJ)("extensions",{slots:{}});function c(e){let t=[];for(let n of Object.values(e.extensions))for(let e of n.instances)t.push({slotModuleName:e.slotModuleName,extensionModuleName:n.moduleName,slotName:e.slotName,extensionId:e.id});(0,i.Z)(a.R2.getState().mountedExtensions,t)||a.R2.setState({mountedExtensions:t})}c(u.getState()),u.subscribe(c),r()}catch(e){r(e)}})},3789:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(5911),i=n(7166),a=n(9400),o=e([r,a,i]);[r,a,i]=o.then?(await o)():o,(0,i.jk)("workspaceRegistrations",{workspaces:{}}),(0,i.jk)("workspaceGroups",{workspaceGroups:{}}),t()}catch(e){t(e)}})},595:function(e,t,n){"use strict";n.d(t,{XS:()=>i,dO:()=>a});let r="openmrs:connectivity-changed";function i(e){if(!window.offlineEnabled)return()=>{};let t=t=>e(t.detail);return window.addEventListener(r,t),()=>window.removeEventListener(r,t)}function a(e){window.dispatchEvent(new CustomEvent("openmrs:toast-shown",{detail:e}))}},7005:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(7166),i=e([r]);r=(i.then?(await i)():i)[0],(0,r.jk)("breadcrumbs",[]),t()}catch(e){t(e)}})},97:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(7005),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},5061:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(4559),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},1946:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(7005),i=n(97),a=n(5061),o=n(4559),s=e([r,i,a,o]);[r,i,a,o]=s.then?(await s)():s,t()}catch(e){t(e)}})},4559:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(7134),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},8071:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(7005),i=n(97),a=n(5061),o=n(4559),s=e([r,i,a,o]);[r,i,a,o]=s.then?(await s)():s,t()}catch(e){t(e)}})},4957:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(5970);n(4197),n(8099);var i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},4952:function(e,t,n){"use strict";n.a(e,async function(e,t){try{n(4936),n(6514);var r=n(7041),i=n(3634),a=n(4957);n(8099);var o=e([r,i,a]);[r,i,a]=o.then?(await o)():o,t()}catch(e){t(e)}})},8099:function(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(4197);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class a extends r.ZP{constructor(){super("EsmOffline"),i(this,"syncQueue",void 0),i(this,"dynamicOfflineData",void 0),this.version(4).stores({syncQueue:"++id,userId,type,[userId+type]",dynamicOfflineData:"++id,type,identifier,*users,&[type+identifier]"}),this.syncQueue=this.table("syncQueue"),this.dynamicOfflineData=this.table("dynamicOfflineData")}}},3634:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(7166),i=n(4957),a=e([i,r]);[i,r]=a.then?(await a)():a,(0,r.jk)("offline-patients",{offlinePatientDataSyncState:{},handlers:{}}),t()}catch(e){t(e)}})},2363:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(3634);n(6514);var i=n(7041),a=n(4957);n(8099);var o=e([r,i,a]);[r,i,a]=o.then?(await o)():o,t()}catch(e){t(e)}})},6514:function(e,t,n){"use strict";n(4936)},4936:function(){"use strict";try{self["workbox:window:6.5.4"]&&_()}catch(e){}function e(e,t){return new Promise(function(n){var r=new MessageChannel;r.port1.onmessage=function(e){n(e.data)},e.postMessage(t,[r.port2])})}function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}try{self["workbox:core:6.5.4"]&&_()}catch(e){}var r=function(){var e=this;this.promise=new Promise(function(t,n){e.resolve=t,e.reject=n})};function i(e,t){var n=location.href;return new URL(e,n).href===new URL(t,n).href}var a=function(e,t){this.type=e,Object.assign(this,t)};function o(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}function s(){}var c={type:"SKIP_WAITING"};function u(e,t){if(!t)return e&&e.then?e.then(s):Promise.resolve()}!function(n){function s(e,t){var s,c;return void 0===t&&(t={}),(s=n.call(this)||this).nn={},s.tn=0,s.rn=new r,s.en=new r,s.on=new r,s.un=0,s.an=new Set,s.cn=function(){var e=s.fn,t=e.installing;s.tn>0||!i(t.scriptURL,s.sn.toString())||performance.now()>s.un+6e4?(s.vn=t,e.removeEventListener("updatefound",s.cn)):(s.hn=t,s.an.add(t),s.rn.resolve(t)),++s.tn,t.addEventListener("statechange",s.ln)},s.ln=function(e){var t=s.fn,n=e.target,r=n.state,i=n===s.vn,o={sw:n,isExternal:i,originalEvent:e};!i&&s.mn&&(o.isUpdate=!0),s.dispatchEvent(new a(r,o)),"installed"===r?s.wn=self.setTimeout(function(){"installed"===r&&t.waiting===n&&s.dispatchEvent(new a("waiting",o))},200):"activating"===r&&(clearTimeout(s.wn),i||s.en.resolve(n))},s.dn=function(e){var t=s.hn,n=t!==navigator.serviceWorker.controller;s.dispatchEvent(new a("controlling",{isExternal:n,originalEvent:e,sw:t,isUpdate:s.mn})),n||s.on.resolve(t)},c=function(e){var t=e.data,n=e.ports,r=e.source;return o(s.getSW(),function(){s.an.has(r)&&s.dispatchEvent(new a("message",{data:t,originalEvent:e,ports:n,sw:r}))})},s.gn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Promise.resolve(c.apply(this,e))}catch(e){return Promise.reject(e)}},s.sn=e,s.nn=t,navigator.serviceWorker.addEventListener("message",s.gn),s}s.prototype=Object.create(n.prototype),s.prototype.constructor=s,s.__proto__=n;var l,f=s.prototype;f.register=function(e){var t=(void 0===e?{}:e).immediate,n=void 0!==t&&t;try{var r,s,c,l=this;return r=function(){if(!n&&"complete"!==document.readyState)return u(new Promise(function(e){return window.addEventListener("load",e)}))},s=function(){return l.mn=!!navigator.serviceWorker.controller,l.yn=l.pn(),o(l.bn(),function(e){l.fn=e,l.yn&&(l.hn=l.yn,l.en.resolve(l.yn),l.on.resolve(l.yn),l.yn.addEventListener("statechange",l.ln,{once:!0}));var t=l.fn.waiting;return t&&i(t.scriptURL,l.sn.toString())&&(l.hn=t,Promise.resolve().then(function(){l.dispatchEvent(new a("waiting",{sw:t,wasWaitingBeforeRegister:!0}))}).then(function(){})),l.hn&&(l.rn.resolve(l.hn),l.an.add(l.hn)),l.fn.addEventListener("updatefound",l.cn),navigator.serviceWorker.addEventListener("controllerchange",l.dn),l.fn})},(c=r())&&c.then?c.then(s):s(c)}catch(e){return Promise.reject(e)}},f.update=function(){try{return this.fn?u(this.fn.update()):void 0}catch(e){return Promise.reject(e)}},f.getSW=function(){return void 0!==this.hn?Promise.resolve(this.hn):this.rn.promise},f.messageSW=function(t){try{return o(this.getSW(),function(n){return e(n,t)})}catch(e){return Promise.reject(e)}},f.messageSkipWaiting=function(){this.fn&&this.fn.waiting&&e(this.fn.waiting,c)},f.pn=function(){var e=navigator.serviceWorker.controller;return e&&i(e.scriptURL,this.sn.toString())?e:void 0},f.bn=function(){try{var e=this;return function(e,t){try{var n=e()}catch(e){return t(e)}return n&&n.then?n.then(void 0,t):n}(function(){return o(navigator.serviceWorker.register(e.sn,e.nn),function(t){return e.un=performance.now(),t})},function(e){throw e})}catch(e){return Promise.reject(e)}},t(s.prototype,[{key:"active",get:function(){return this.en.promise}},{key:"controlling",get:function(){return this.on.promise}}]),l&&t(s,l)}(function(){function e(){this.Pn=new Map}var t=e.prototype;return t.addEventListener=function(e,t){this.Sn(e).add(t)},t.removeEventListener=function(e,t){this.Sn(e).delete(t)},t.dispatchEvent=function(e){e.target=this;for(var t,r=function(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return n(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,void 0):void 0}}(e))){r&&(e=r);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(r=e[Symbol.iterator]()).next.bind(r)}(this.Sn(e.type));!(t=r()).done;)(0,t.value)(e)},t.Sn=function(e){return this.Pn.has(e)||this.Pn.set(e,new Set),this.Pn.get(e)},e}())},7041:function(e,t,n){"use strict";n.a(e,async function(e,t){try{n(4197);var r=n(5970),i=n(7166),a=n(8099),o=e([r,i]);[r,i]=o.then?(await o)():o,new a.A,(0,i.jk)("offline-synchronization",{}),t()}catch(e){t(e)}})},8147:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],(0,r.createContext)({moduleName:"",featureName:""}),t()}catch(e){t(e)}})},3637:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(1946),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},9579:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(5911),i=n(810),a=n(7974),o=e([r,i,a]);[r,i,a]=o.then?(await o)():o,t()}catch(e){t(e)}})},6858:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(8147),a=n(9579),o=n(2815),s=e([r,i,a,o]);[r,i,a,o]=s.then?(await s)():s,t()}catch(e){t(e)}})},1460:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(5601),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},1737:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},5611:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(5970),i=n(810),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},7554:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810);n(5631),n(3628);var i=n(5099),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},7974:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(8147),i=n(3637),a=n(9579),o=n(6858),s=n(1460),c=n(1737),u=n(5611),l=n(7554),f=n(5099),h=n(9438),d=n(3382),p=n(291),y=n(3374),v=n(1512),g=n(2913),b=n(6186),m=n(8629),w=n(6245),E=n(819),x=n(5601),O=n(2663),S=n(1528),k=n(2815),A=n(5482),j=n(4021),C=n(6924),P=n(7312),D=n(7283),T=n(7327),R=n(7501),I=n(6094),N=n(7853),L=n(2154),B=n(9835),Z=n(7105),M=n(3118),K=n(8989),F=n(8271),U=n(3903),V=n(4664),$=n(2741),q=n(7152),W=n(5169),z=n(1828),H=n(2163),J=n(2217),X=n(6711),Y=n(6760),G=n(7045),Q=n(6909),ee=e([r,i,a,o,s,c,u,l,f,h,d,p,y,v,g,b,m,w,E,x,O,S,k,A,j,C,P,D,T,R,I,N,L,B,Z,M,K,F,U,V,$,q,W,z,H,J,X,Y,G,Q]);[r,i,a,o,s,c,u,l,f,h,d,p,y,v,g,b,m,w,E,x,O,S,k,A,j,C,P,D,T,R,I,N,L,B,Z,M,K,F,U,V,$,q,W,z,H,J,X,Y,G,Q]=ee.then?(await ee)():ee,t()}catch(e){t(e)}})},5099:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(7987),a=n(5941),o=n(5970),s=n(8147),c=e([r,i,a,o,s]);[r,i,a,o,s]=c.then?(await c)():c,t()}catch(e){t(e)}})},1612:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(3637),i=n(9579),a=n(6858),o=n(5611),s=n(7554),c=n(1460),u=n(1737),l=n(9438),f=n(3382),h=n(3374),d=n(291),p=n(1512),y=n(2913),v=n(6186),g=n(8629),b=n(6245),m=n(819),w=n(5601),E=n(2663),x=n(5482),O=n(6924),S=n(4021),k=n(7312),A=n(7853),j=n(2154),C=n(9835),P=n(7105),D=n(3118),T=n(8989),R=n(8271),I=n(4664),N=n(7152),L=n(6909),B=n(5169),Z=n(1828),M=n(2163),K=n(2217),F=n(3903),U=n(2741),V=n(6094),$=n(7501),q=n(7327),W=n(7045),z=n(6760),H=n(6711),J=e([r,i,a,o,s,c,u,l,f,h,d,p,y,v,g,b,m,w,E,x,O,S,k,A,j,C,P,D,T,R,I,N,L,B,Z,M,K,F,U,V,$,q,W,z,H]);[r,i,a,o,s,c,u,l,f,h,d,p,y,v,g,b,m,w,E,x,O,S,k,A,j,C,P,D,T,R,I,N,L,B,Z,M,K,F,U,V,$,q,W,z,H]=J.then?(await J)():J,t()}catch(e){t(e)}})},9438:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},3382:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},291:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(5911),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},3374:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(4021),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},1512:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(5941),a=n(5970),o=n(2639),s=e([r,i,a,o]);[r,i,a,o]=s.then?(await s)():s,t()}catch(e){t(e)}})},2913:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},6186:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(6149),a=n(8147),o=e([r,i,a]);[r,i,a]=o.then?(await o)():o,t()}catch(e){t(e)}})},8629:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(3374),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},6245:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},819:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},5601:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},2663:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(6280),a=n(5970),o=e([r,i,a]);[r,i,a]=o.then?(await o)():o,[["admissionDecisionConcept","ref"],["admissionEncounterType","ref"],["admissionForm","ref"],["atFacilityVisitType","ref"],["bedAssignmentEncounterType","ref"],["cancelADTRequestEncounterType","ref"],["checkInClerkEncounterRole","ref"],["checkInEncounterType","ref"],["clinicianEncounterRole","ref"],["conceptSourcesForDiagnosisSearch","ref"],["consultEncounterType","ref"],["consultFreeTextCommentsConcept","ref"],["denyAdmissionConcept","ref"],["diagnosisMetadata","ref"],["diagnosisSets","ref"],["dischargeForm","ref"],["dispositionDescriptor","ref"],["dispositions","ref"],["emrApiConceptSource","ref"],["exitFromInpatientEncounterType","ref"],["extraPatientIdentifierTypes","ref"],["fullPrivilegeLevel","ref"],["highPrivilegeLevel","ref"],["identifierTypesToSearch","ref"],["inpatientNoteEncounterType","ref"],["lastViewedPatientSizeLimit","ref"],["metadataSourceName","ref"],["motherChildRelationshipType","ref"],["narrowerThanConceptMapType","ref"],["nonDiagnosisConceptSets","ref"],["orderingProviderEncounterRole","ref"],["patientDiedConcept","ref"],["personImageDirectory","ref"],["primaryIdentifierType","ref"],["sameAsConceptMapType","ref"],["suppressedDiagnosisConcepts","ref"],["supportsAdmissionLocationTag","(uuid,display,name,links)"],["supportsLoginLocationTag","(uuid,display,name,links)"],["supportsTransferLocationTag","(uuid,display,name,links)"],["supportsVisitsLocationTag","(uuid,display,name,links)"],["telephoneAttributeType","ref"],["testPatientPersonAttributeType","ref"],["transferForm","ref"],["transferRequestEncounterType","ref"],["transferWithinHospitalEncounterType","ref"],["unknownCauseOfDeathConcept","ref"],["unknownLocation","ref"],["unknownPatientPersonAttributeType","ref"],["unknownProvider","ref"],["visitAssignmentHandlerAdjustEncounterTimeOfDayIfNecessary","ref"],["visitExpireHours","ref"],["visitNoteEncounterType","ref"]].map(([e,t])=>`${e}:${t}`).join(","),t()}catch(e){t(e)}})},1528:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(5911),i=n(5169),a=e([i,r]);[i,r]=a.then?(await a)():a,(0,i.NV)((0,r.Co)()),t()}catch(e){t(e)}})},2815:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(5911),a=n(8147),o=n(3374),s=e([r,i,a,o]);[r,i,a,o]=s.then?(await s)():s,t()}catch(e){t(e)}})},5482:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(3374),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},4021:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(5911),i=n(5169),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},6924:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(5911),i=n(5169),a=e([i,r]);[i,r]=a.then?(await a)():a,(0,i.NV)((0,r.yw)()),t()}catch(e){t(e)}})},7312:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(5169),i=n(2111),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},7327:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(6094),i=n(6711),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},7501:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(6094),i=n(6760),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},6094:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(5970),i=n(7045),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},7283:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},7853:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},2154:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(5911),a=n(8147),o=e([r,i,a]);[r,i,a]=o.then?(await o)():o,t()}catch(e){t(e)}})},9835:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(5911),i=n(5169),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},7105:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(2639),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},3118:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},8989:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},6711:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(6760),a=n(7045),o=e([r,i,a]);[r,i,a]=o.then?(await o)():o,t()}catch(e){t(e)}})},6760:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(5970),i=n(810),a=n(2666),o=n(7045),s=e([r,i,a,o]);[r,i,a,o]=s.then?(await s)():s,t()}catch(e){t(e)}})},7045:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(5970),i=n(810),a=n(5941),o=n(6280),s=e([r,i,a,o]);[r,i,a,o]=s.then?(await s)():s,t()}catch(e){t(e)}})},8271:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(5941),a=n(5970),o=n(9438),s=e([r,i,a,o]);[r,i,a,o]=s.then?(await s)():s,t()}catch(e){t(e)}})},3903:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},4664:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(5941),a=n(2639),o=e([r,i,a]);[r,i,a]=o.then?(await o)():o,t()}catch(e){t(e)}})},2741:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(5941),a=n(5970),o=e([r,i,a]);[r,i,a]=o.then?(await o)():o,t()}catch(e){t(e)}})},7152:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(7974),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},6909:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(5970),i=n(810),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},5169:function(e,t,n){"use strict";n.a(e,async function(e,r){try{n.d(t,{NV:()=>s});var i=n(7166),a=n(810),o=e([i,a]);function s(e){return function(t){let[n,r]=(0,a.useState)(e.getState());(0,a.useEffect)(()=>e.subscribe(e=>r(e)),[]);let i=(0,a.useMemo)(()=>t?function(e,t){"function"==typeof t&&(t=t(e));let n={};for(let[r,i]of Object.entries(t)){let t=function(...t){e.setState(e=>i(e,...t))};n[r]=t}return n}(e,t):{},[t]);return{...n,...i}}}[i,a]=o.then?(await o)():o,r()}catch(e){r(e)}})},1828:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(5941),a=n(1338),o=n(2886),s=n(5970),c=n(2639),u=n(2163),l=e([r,i,s,c,u,a]);[r,i,s,c,u,a]=l.then?(await l)():l,a.default.extend(o),t()}catch(e){t(e)}})},2163:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(2639),a=n(5169),o=e([r,i,a]);[r,i,a]=o.then?(await o)():o,t()}catch(e){t(e)}})},2217:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(2639),i=n(810),a=e([r,i]);[r,i]=a.then?(await a)():a,t()}catch(e){t(e)}})},7166:function(e,t,n){"use strict";n.a(e,async function(e,r){try{n.d(t,{jk:()=>i.jk,zJ:()=>i.zJ});var i=n(3652),a=e([i]);i=(a.then?(await a)():a)[0],r()}catch(e){r(e)}})},4396:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(3652),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},3652:function(e,t,n){"use strict";n.a(e,async function(e,r){try{n.d(t,{jk:()=>a,zJ:()=>o});var i=n(1844);let e={};function a(t,n){let r=e[t];if(r)return r.active?console.error(`Attempted to override the existing store ${t}. Make sure that stores are only created once.`):r.value.setState(n,!0),r.active=!0,r.value;{let r=(0,i.M)()(()=>n);return e[t]={value:r,active:!0},r}}function o(t,n){let r=e[t];if(!r){let r=(0,i.M)()(()=>n??{});return e[t]={value:r,active:!1},r}return r.value}setTimeout(()=>{window&&"development"===window.spaEnv&&(window.stores=e)},1e3),r()}catch(e){r(e)}})},9400:function(e,t,n){"use strict";n.a(e,async function(e,t){try{n(648);var r=n(2021),i=e([r]);((r=(i.then?(await i)():i)[0]).default.default||r.default).on("initialized",function(){window.i18next.loadNamespaces(["core"])}),t()}catch(e){t(e)}})},3305:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(9400),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},648:function(){},1465:function(e,t,n){"use strict";function r(e){return!window.offlineEnabled||(e??navigator.onLine)}n.d(t,{G:()=>r})},8431:function(e,t,n){"use strict";n.a(e,async function(e,r){try{n.d(t,{$l:()=>l,BN:()=>s,DY:()=>b,Fs:()=>U,J$:()=>z,JN:()=>k,LI:()=>I,PM:()=>d,UG:()=>H,W6:()=>T,i_:()=>u,ko:()=>et,kw:()=>R,mf:()=>h,o8:()=>f,qC:()=>B,s6:()=>ee,sj:()=>o,u3:()=>M,u_:()=>$,w6:()=>D,xD:()=>en});var i=n(810),a=e([i]);i=(a.then?(await a)():a)[0];let c=()=>{},u=c(),l=Object,f=e=>e===u,h=e=>"function"==typeof e,d=(e,t)=>({...e,...t}),p=e=>h(e.then),y=new WeakMap,v=0,g=e=>{let t,n,r=typeof e,i=e&&e.constructor,a=i==Date;if(l(e)!==e||a||i==RegExp)t=a?e.toJSON():"symbol"==r?e.toString():"string"==r?JSON.stringify(e):""+e;else{if(t=y.get(e))return t;if(t=++v+"~",y.set(e,t),i==Array){for(n=0,t="@";n<e.length;n++)t+=g(e[n])+",";y.set(e,t)}if(i==l){t="#";let r=l.keys(e).sort();for(;!f(n=r.pop());)f(e[n])||(t+=n+":"+g(e[n])+",");y.set(e,t)}}return t},b=new WeakMap,m={},w={},E="undefined",x=typeof window!=E,O=typeof document!=E,S=()=>x&&typeof window.requestAnimationFrame!=E,k=(e,t)=>{let n=b.get(e);return[()=>!f(t)&&e.get(t)||m,r=>{if(!f(t)){let i=e.get(t);t in w||(w[t]=i),n[5](t,d(i,r),i||m)}},n[6],()=>!f(t)&&t in w?w[t]:!f(t)&&e.get(t)||m]},A=!0,[j,C]=x&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[c,c],P={initFocus:e=>(O&&document.addEventListener("visibilitychange",e),j("focus",e),()=>{O&&document.removeEventListener("visibilitychange",e),C("focus",e)}),initReconnect:e=>{let t=()=>{A=!0,e()},n=()=>{A=!1};return j("online",t),j("offline",n),()=>{C("online",t),C("offline",n)}}},D=!i.default.useId,T=!x||"Deno"in window,R=e=>S()?window.requestAnimationFrame(e):setTimeout(e,1),I=T?i.useEffect:i.useLayoutEffect,N="undefined"!=typeof navigator&&navigator.connection,L=!T&&N&&(["slow-2g","2g"].includes(N.effectiveType)||N.saveData),B=e=>{if(h(e))try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?g(e):"",t]},Z=0,M=()=>++Z;var o={__proto__:null,ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:0,MUTATE_EVENT:2,RECONNECT_EVENT:1};async function s(...e){let[t,n,r,i]=e,a=d({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{}),o=a.populateCache,c=a.rollbackOnError,l=a.optimisticData,y=e=>"function"==typeof c?c(e):!1!==c,v=a.throwOnError;if(h(n)){let e=[];for(let r of t.keys())!/^\$(inf|sub)\$/.test(r)&&n(t.get(r)._k)&&e.push(r);return Promise.all(e.map(g))}return g(n);async function g(n){let i,[s]=B(n);if(!s)return;let[c,d]=k(t,s),[g,m,w,E]=b.get(t),x=()=>{let e=g[s];return(h(a.revalidate)?a.revalidate(c().data,n):!1!==a.revalidate)&&(delete w[s],delete E[s],e&&e[0])?e[0](2).then(()=>c().data):c().data};if(e.length<3)return x();let O=r,S=M();m[s]=[S,0];let A=!f(l),j=c(),C=j.data,P=j._c,D=f(P)?C:P;if(A&&(l=h(l)?l(D,C):l,d({data:l,_c:D})),h(O))try{O=O(D)}catch(e){i=e}if(O&&p(O)){if(O=await O.catch(e=>{i=e}),S!==m[s][0]){if(i)throw i;return O}i&&A&&y(i)&&(o=!0,d({data:D,_c:u}))}if(o&&!i)if(h(o)){let e=o(O,D);d({data:e,error:u,_c:u})}else d({data:O,error:u,_c:u});if(m[s][1]=M(),Promise.resolve(x()).then(()=>{d({_c:u})}),i){if(v)throw i;return}return O}}let K=(e,t)=>{for(let n in e)e[n][0]&&e[n][0](t)},F=(e,t)=>{if(!b.has(e)){let n=d(P,t),r={},i=s.bind(u,e),a=c,o={},l=(e,t)=>{let n=o[e]||[];return o[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},f=(t,n,r)=>{e.set(t,n);let i=o[t];if(i)for(let e of i)e(n,r)},h=()=>{if(!b.has(e)&&(b.set(e,[r,{},{},{},i,f,l]),!T)){let t=n.initFocus(setTimeout.bind(u,K.bind(u,r,0))),i=n.initReconnect(setTimeout.bind(u,K.bind(u,r,1)));a=()=>{t&&t(),i&&i(),b.delete(e)}}};return h(),[e,i,h,a]}return[e,b.get(e)[4]]},[U,V]=F(new Map),$=d({onLoadingSlow:c,onSuccess:c,onError:c,onErrorRetry:(e,t,n,r,i)=>{let a=n.errorRetryCount,o=i.retryCount,s=~~((Math.random()+.5)*(1<<(o<8?o:8)))*n.errorRetryInterval;(f(a)||!(o>a))&&setTimeout(r,s,i)},onDiscarded:c,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:L?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:L?5e3:3e3,compare:(e,t)=>g(e)==g(t),isPaused:()=>!1,cache:U,mutate:V,fallback:{}},{isOnline:()=>A,isVisible:()=>{let e=O&&document.visibilityState;return f(e)||"hidden"!==e}}),q=(e,t)=>{let n=d(e,t);if(t){let{use:r,fallback:i}=e,{use:a,fallback:o}=t;r&&a&&(n.use=r.concat(a)),i&&o&&(n.fallback=d(i,o))}return n},W=(0,i.createContext)({}),z=e=>{let{value:t}=e,n=(0,i.useContext)(W),r=h(t),a=(0,i.useMemo)(()=>r?t(n):t,[r,n,t]),o=(0,i.useMemo)(()=>r?a:q(n,a),[r,n,a]),s=a&&a.provider,c=(0,i.useRef)(u);s&&!c.current&&(c.current=F(s(o.cache||U),a));let l=c.current;return l&&(o.cache=l[0],o.mutate=l[1]),I(()=>{if(l)return l[2]&&l[2](),l[3]},[]),(0,i.createElement)(W.Provider,d(e,{value:o}))},H="$inf$",J=x&&window.__SWR_DEVTOOLS_USE__,X=J?window.__SWR_DEVTOOLS_USE__:[],Y=e=>h(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],G=()=>d($,(0,i.useContext)(W)),Q=X.concat(e=>(t,n,r)=>{let i=n&&((...e)=>{let[r]=B(t),[,,,i]=b.get(U);if(r.startsWith(H))return n(...e);let a=i[r];return f(a)?n(...e):(delete i[r],a)});return e(t,i,r)}),ee=e=>function(...t){let n=G(),[r,i,a]=Y(t),o=q(n,a),s=e,{use:c}=o,u=(c||[]).concat(Q);for(let e=u.length;e--;)s=u[e](s);return s(r,i||o.fetcher||null,o)},et=(e,t,n)=>{let r=t[e]||(t[e]=[]);return r.push(n),()=>{let e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}},en=(e,t)=>(...n)=>{let[r,i,a]=Y(n),o=(a.use||[]).concat(t);return e(r,i,{...a,use:o})};J&&(window.__SWR_DEVTOOLS_REACT__=i.default),r()}catch(e){r(e)}})},6280:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(4273),a=n(8431),o=e([r,a]);[r,a]=o.then?(await o)():o;let s=r.default.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;if("rejected"===e.status)throw e.reason;throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}),c={dedupe:!0};a.$l.defineProperty(a.J$,"defaultValue",{value:a.u_});let u=(0,a.s6)((e,t,n)=>{let{cache:o,compare:u,suspense:l,fallbackData:f,revalidateOnMount:h,revalidateIfStale:d,refreshInterval:p,refreshWhenHidden:y,refreshWhenOffline:v,keepPreviousData:g}=n,[b,m,w,E]=a.DY.get(o),[x,O]=(0,a.qC)(e),S=(0,r.useRef)(!1),k=(0,r.useRef)(!1),A=(0,r.useRef)(x),j=(0,r.useRef)(t),C=(0,r.useRef)(n),P=()=>C.current,D=()=>P().isVisible()&&P().isOnline(),[T,R,I,N]=(0,a.JN)(o,x),L=(0,r.useRef)({}).current,B=(0,a.o8)(f)?n.fallback[x]:f,Z=(e,t)=>{for(let n in L)if("data"===n){if(!u(e[n],t[n])&&(!(0,a.o8)(e[n])||!u(z,t[n])))return!1}else if(t[n]!==e[n])return!1;return!0},M=(0,r.useMemo)(()=>{let e=!!x&&!!t&&((0,a.o8)(h)?!P().isPaused()&&!l&&(!!(0,a.o8)(d)||d):h),n=t=>{let n=(0,a.PM)(t);return(delete n._k,e)?{isValidating:!0,isLoading:!0,...n}:n},r=T(),i=N(),o=n(r),s=r===i?o:n(i),c=o;return[()=>{let e=n(T());return Z(e,c)?(c.data=e.data,c.isLoading=e.isLoading,c.isValidating=e.isValidating,c.error=e.error,c):(c=e,e)},()=>s]},[o,x]),K=(0,i.useSyncExternalStore)((0,r.useCallback)(e=>I(x,(t,n)=>{Z(n,t)||e()}),[o,x]),M[0],M[1]),F=!S.current,U=b[x]&&b[x].length>0,V=K.data,$=(0,a.o8)(V)?B:V,q=K.error,W=(0,r.useRef)($),z=g?(0,a.o8)(V)?W.current:V:$,H=(!U||!!(0,a.o8)(q))&&(F&&!(0,a.o8)(h)?h:!P().isPaused()&&(l?!(0,a.o8)($)&&d:(0,a.o8)($)||d)),J=!!(x&&t&&F&&H),X=(0,a.o8)(K.isValidating)?J:K.isValidating,Y=(0,a.o8)(K.isLoading)?J:K.isLoading,G=(0,r.useCallback)(async e=>{let t,r,i=j.current;if(!x||!i||k.current||P().isPaused())return!1;let o=!0,s=e||{},c=!w[x]||!s.dedupe,l=()=>a.w6?!k.current&&x===A.current&&S.current:x===A.current,f={isValidating:!1,isLoading:!1},h=()=>{R(f)},d=()=>{let e=w[x];e&&e[1]===r&&delete w[x]},p={isValidating:!0};(0,a.o8)(T().data)&&(p.isLoading=!0);try{if(c&&(R(p),n.loadingTimeout&&(0,a.o8)(T().data)&&setTimeout(()=>{o&&l()&&P().onLoadingSlow(x,n)},n.loadingTimeout),w[x]=[i(O),(0,a.u3)()]),[t,r]=w[x],t=await t,c&&setTimeout(d,n.dedupingInterval),!w[x]||w[x][1]!==r)return c&&l()&&P().onDiscarded(x),!1;f.error=a.i_;let e=m[x];if(!(0,a.o8)(e)&&(r<=e[0]||r<=e[1]||0===e[1]))return h(),c&&l()&&P().onDiscarded(x),!1;let s=T().data;f.data=u(s,t)?s:t,c&&l()&&P().onSuccess(t,x,n)}catch(n){d();let e=P(),{shouldRetryOnError:t}=e;!e.isPaused()&&(f.error=n,c&&l()&&(e.onError(n,x,e),(!0===t||(0,a.mf)(t)&&t(n))&&(!P().revalidateOnFocus||!P().revalidateOnReconnect||D())&&e.onErrorRetry(n,x,e,e=>{let t=b[x];t&&t[0]&&t[0](a.sj.ERROR_REVALIDATE_EVENT,e)},{retryCount:(s.retryCount||0)+1,dedupe:!0})))}return o=!1,h(),!0},[x,o]),Q=(0,r.useCallback)((...e)=>(0,a.BN)(o,A.current,...e),[]);if((0,a.LI)(()=>{j.current=t,C.current=n,(0,a.o8)(V)||(W.current=V)}),(0,a.LI)(()=>{if(!x)return;let e=G.bind(a.i_,c),t=0,n=(0,a.ko)(x,b,(n,r={})=>{if(n==a.sj.FOCUS_EVENT){let n=Date.now();P().revalidateOnFocus&&n>t&&D()&&(t=n+P().focusThrottleInterval,e())}else if(n==a.sj.RECONNECT_EVENT)P().revalidateOnReconnect&&D()&&e();else if(n==a.sj.MUTATE_EVENT)return G();else if(n==a.sj.ERROR_REVALIDATE_EVENT)return G(r)});return k.current=!1,A.current=x,S.current=!0,R({_k:O}),H&&((0,a.o8)($)||a.W6?e():(0,a.kw)(e)),()=>{k.current=!0,n()}},[x]),(0,a.LI)(()=>{let e;function t(){let t=(0,a.mf)(p)?p(T().data):p;t&&-1!==e&&(e=setTimeout(n,t))}function n(){!T().error&&(y||P().isVisible())&&(v||P().isOnline())?G(c).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[p,y,v,x]),(0,r.useDebugValue)(z),l&&(0,a.o8)($)&&x){if(!a.w6&&a.W6)throw Error("Fallback data is required when using suspense in SSR.");j.current=t,C.current=n,k.current=!1;let e=E[x];if(!(0,a.o8)(e)){let t=Q(e);s(t)}if((0,a.o8)(q)){let e=G(c);(0,a.o8)(z)||(e.status="fulfilled",e.value=!0),s(e)}else throw q}return{mutate:Q,get data(){return L.data=!0,z},get error(){return L.error=!0,q},get isValidating(){return L.isValidating=!0,X},get isLoading(){return L.isLoading=!0,Y}}});(0,a.xD)(u,e=>(t,n,r)=>(r.revalidateOnFocus=!1,r.revalidateIfStale=!1,r.revalidateOnReconnect=!1,e(t,n,r))),t()}catch(e){t(e)}})},2666:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(4273),a=n(8431),o=e([r,a]);[r,a]=o.then?(await o)():o;let s=r.default.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;if("rejected"===e.status)throw e.reason;throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}),c={dedupe:!0};a.$l.defineProperty(a.J$,"defaultValue",{value:a.u_});let u=(0,a.s6)((e,t,n)=>{let{cache:o,compare:u,suspense:l,fallbackData:f,revalidateOnMount:h,revalidateIfStale:d,refreshInterval:p,refreshWhenHidden:y,refreshWhenOffline:v,keepPreviousData:g}=n,[b,m,w,E]=a.DY.get(o),[x,O]=(0,a.qC)(e),S=(0,r.useRef)(!1),k=(0,r.useRef)(!1),A=(0,r.useRef)(x),j=(0,r.useRef)(t),C=(0,r.useRef)(n),P=()=>C.current,D=()=>P().isVisible()&&P().isOnline(),[T,R,I,N]=(0,a.JN)(o,x),L=(0,r.useRef)({}).current,B=(0,a.o8)(f)?n.fallback[x]:f,Z=(e,t)=>{for(let n in L)if("data"===n){if(!u(e[n],t[n])&&(!(0,a.o8)(e[n])||!u(z,t[n])))return!1}else if(t[n]!==e[n])return!1;return!0},M=(0,r.useMemo)(()=>{let e=!!x&&!!t&&((0,a.o8)(h)?!P().isPaused()&&!l&&(!!(0,a.o8)(d)||d):h),n=t=>{let n=(0,a.PM)(t);return(delete n._k,e)?{isValidating:!0,isLoading:!0,...n}:n},r=T(),i=N(),o=n(r),s=r===i?o:n(i),c=o;return[()=>{let e=n(T());return Z(e,c)?(c.data=e.data,c.isLoading=e.isLoading,c.isValidating=e.isValidating,c.error=e.error,c):(c=e,e)},()=>s]},[o,x]),K=(0,i.useSyncExternalStore)((0,r.useCallback)(e=>I(x,(t,n)=>{Z(n,t)||e()}),[o,x]),M[0],M[1]),F=!S.current,U=b[x]&&b[x].length>0,V=K.data,$=(0,a.o8)(V)?B:V,q=K.error,W=(0,r.useRef)($),z=g?(0,a.o8)(V)?W.current:V:$,H=(!U||!!(0,a.o8)(q))&&(F&&!(0,a.o8)(h)?h:!P().isPaused()&&(l?!(0,a.o8)($)&&d:(0,a.o8)($)||d)),J=!!(x&&t&&F&&H),X=(0,a.o8)(K.isValidating)?J:K.isValidating,Y=(0,a.o8)(K.isLoading)?J:K.isLoading,G=(0,r.useCallback)(async e=>{let t,r,i=j.current;if(!x||!i||k.current||P().isPaused())return!1;let o=!0,s=e||{},c=!w[x]||!s.dedupe,l=()=>a.w6?!k.current&&x===A.current&&S.current:x===A.current,f={isValidating:!1,isLoading:!1},h=()=>{R(f)},d=()=>{let e=w[x];e&&e[1]===r&&delete w[x]},p={isValidating:!0};(0,a.o8)(T().data)&&(p.isLoading=!0);try{if(c&&(R(p),n.loadingTimeout&&(0,a.o8)(T().data)&&setTimeout(()=>{o&&l()&&P().onLoadingSlow(x,n)},n.loadingTimeout),w[x]=[i(O),(0,a.u3)()]),[t,r]=w[x],t=await t,c&&setTimeout(d,n.dedupingInterval),!w[x]||w[x][1]!==r)return c&&l()&&P().onDiscarded(x),!1;f.error=a.i_;let e=m[x];if(!(0,a.o8)(e)&&(r<=e[0]||r<=e[1]||0===e[1]))return h(),c&&l()&&P().onDiscarded(x),!1;let s=T().data;f.data=u(s,t)?s:t,c&&l()&&P().onSuccess(t,x,n)}catch(n){d();let e=P(),{shouldRetryOnError:t}=e;!e.isPaused()&&(f.error=n,c&&l()&&(e.onError(n,x,e),(!0===t||(0,a.mf)(t)&&t(n))&&(!P().revalidateOnFocus||!P().revalidateOnReconnect||D())&&e.onErrorRetry(n,x,e,e=>{let t=b[x];t&&t[0]&&t[0](a.sj.ERROR_REVALIDATE_EVENT,e)},{retryCount:(s.retryCount||0)+1,dedupe:!0})))}return o=!1,h(),!0},[x,o]),Q=(0,r.useCallback)((...e)=>(0,a.BN)(o,A.current,...e),[]);if((0,a.LI)(()=>{j.current=t,C.current=n,(0,a.o8)(V)||(W.current=V)}),(0,a.LI)(()=>{if(!x)return;let e=G.bind(a.i_,c),t=0,n=(0,a.ko)(x,b,(n,r={})=>{if(n==a.sj.FOCUS_EVENT){let n=Date.now();P().revalidateOnFocus&&n>t&&D()&&(t=n+P().focusThrottleInterval,e())}else if(n==a.sj.RECONNECT_EVENT)P().revalidateOnReconnect&&D()&&e();else if(n==a.sj.MUTATE_EVENT)return G();else if(n==a.sj.ERROR_REVALIDATE_EVENT)return G(r)});return k.current=!1,A.current=x,S.current=!0,R({_k:O}),H&&((0,a.o8)($)||a.W6?e():(0,a.kw)(e)),()=>{k.current=!0,n()}},[x]),(0,a.LI)(()=>{let e;function t(){let t=(0,a.mf)(p)?p(T().data):p;t&&-1!==e&&(e=setTimeout(n,t))}function n(){!T().error&&(y||P().isVisible())&&(v||P().isOnline())?G(c).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[p,y,v,x]),(0,r.useDebugValue)(z),l&&(0,a.o8)($)&&x){if(!a.w6&&a.W6)throw Error("Fallback data is required when using suspense in SSR.");j.current=t,C.current=n,k.current=!1;let e=E[x];if(!(0,a.o8)(e)){let t=Q(e);s(t)}if((0,a.o8)(q)){let e=G(c);(0,a.o8)(z)||(e.status="fulfilled",e.value=!0),s(e)}else throw q}return{mutate:Q,get data(){return L.data=!0,z},get error(){return L.error=!0,q},get isValidating(){return L.isValidating=!0,X},get isLoading(){return L.isLoading=!0,Y}}}),l=e=>(0,a.qC)(e?e(0,null):null)[0],f=Promise.resolve();(0,a.xD)(u,e=>(t,n,o)=>{let s,c=(0,r.useRef)(!1),{cache:u,initialSize:h=1,revalidateAll:d=!1,persistSize:p=!1,revalidateFirstPage:y=!0,revalidateOnMount:v=!1,parallel:g=!1}=o,[,,,b]=a.DY.get(a.Fs);try{(s=l(t))&&(s=a.UG+s)}catch(e){}let[m,w,E]=(0,a.JN)(u,s),x=(0,r.useCallback)(()=>(0,a.o8)(m()._l)?h:m()._l,[u,s,h]);(0,i.useSyncExternalStore)((0,r.useCallback)(e=>s?E(s,()=>{e()}):()=>{},[u,s]),x,x);let O=(0,r.useCallback)(()=>{let e=m()._l;return(0,a.o8)(e)?h:e},[s,h]),S=(0,r.useRef)(O());(0,a.LI)(()=>{if(!c.current){c.current=!0;return}s&&w({_l:p?S.current:O()})},[s,u]);let k=v&&!c.current,A=e(s,async e=>{let r=m()._i,i=m()._r;w({_r:a.i_});let s=[],c=O(),[l]=(0,a.JN)(u,e),f=l().data,h=[],p=null;for(let e=0;e<c;++e){let[c,l]=(0,a.qC)(t(e,g?null:p));if(!c)break;let[v,m]=(0,a.JN)(u,c),w=v().data,E=d||r||(0,a.o8)(w)||y&&!e&&!(0,a.o8)(f)||k||f&&!(0,a.o8)(f[e])&&!o.compare(f[e],w);if(n&&("function"==typeof i?i(w,l):E)){let t=async()=>{if(c in b){let e=b[c];delete b[c],w=await e}else w=await n(l);m({data:w,_k:l}),s[e]=w};g?h.push(t):await t()}else s[e]=w;g||(p=w)}return g&&await Promise.all(h.map(e=>e())),w({_i:a.i_}),s},o),j=(0,r.useCallback)(function(e,t){let n="boolean"==typeof t?{revalidate:t}:t||{},r=!1!==n.revalidate;return s?(r&&((0,a.o8)(e)?w({_i:!0,_r:n.revalidate}):w({_i:!1,_r:n.revalidate})),arguments.length?A.mutate(e,{...n,revalidate:r}):A.mutate()):f},[s,u]),C=(0,r.useCallback)(e=>{let n;if(!s)return f;let[,r]=(0,a.JN)(u,s);if((0,a.mf)(e)?n=e(O()):"number"==typeof e&&(n=e),"number"!=typeof n)return f;r({_l:n}),S.current=n;let i=[],[o]=(0,a.JN)(u,s),c=null;for(let e=0;e<n;++e){let[n]=(0,a.qC)(t(e,c)),[r]=(0,a.JN)(u,n),s=n?r().data:a.i_;if((0,a.o8)(s))return j(o().data);i.push(s),c=s}return j(i)},[s,u,j,O]);return{size:O(),setSize:C,mutate:j,get data(){return A.data},get error(){return A.error},get isValidating(){return A.isValidating},get isLoading(){return A.isLoading}}}),t()}catch(e){t(e)}})},1844:function(e,t,n){"use strict";n.d(t,{M:()=>i});let r=e=>{let t,n=new Set,r=(e,r)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=r?r:"object"!=typeof i||null===i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>o,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},o=t=e(r,i,a);return a},i=e=>e?r(e):r}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}(()=>{var e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",r="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",i=e=>{e&&e.d<1&&(e.d=1,e.forEach(e=>e.r--),e.forEach(e=>e.r--?e.r++:e()))},a=n=>n.map(n=>{if(null!==n&&"object"==typeof n){if(n[e])return n;if(n.then){var a=[];a.d=0,n.then(e=>{o[t]=e,i(a)},e=>{o[r]=e,i(a)});var o={};return o[e]=e=>e(a),o}}var s={};return s[e]=function(){},s[t]=n,s});n.a=(n,o,s)=>{s&&((c=[]).d=-1);var c,u,l,f,h=new Set,d=n.exports,p=new Promise((e,t)=>{f=t,l=e});p[t]=d,p[e]=e=>{c&&e(c),h.forEach(e),p.catch(function(){})},n.exports=p,o(n=>{u=a(n);var i,o=()=>u.map(e=>{if(e[r])throw e[r];return e[t]}),s=new Promise(t=>{(i=()=>t(o)).r=0;var n=e=>e!==c&&!h.has(e)&&(h.add(e),e&&!e.d&&(i.r++,e.push(i)));u.map(t=>t[e](n))});return i.r?s:o()},e=>(e?f(p[r]=e):l(d),i(c))),c&&c.d<0&&(c.d=0)}})(),n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.rv=()=>"1.3.11",n.ruid="bundler=rspack@1.3.11",n(3184)})();
3
3
  //# sourceMappingURL=openmrs-esm-framework.js.map