@openmrs/esm-utils 3.2.1-pre.1104 → 3.2.1-pre.1111
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/openmrs-esm-utils.js +1 -1
- package/dist/openmrs-esm-utils.js.map +1 -1
- package/jest.config.js +1 -1
- package/package.json +2 -2
- package/webpack.config.js +1 -1
- package/.babelrc +0 -7
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
System.register(["dayjs","i18next"],(function(e,t){var r={},s={};return{setters:[function(e){r.default=e.default},function(e){s.default=e.default}],execute:function(){e((()=>{var e={4332:function(e){e.exports=function(){"use strict";return function(e,t,r){t.prototype.isToday=function(){var e="YYYY-MM-DD",t=r();return this.format(e)===t.format(e)}}}()},9014:function(e){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(s,n,i){var o=n.prototype;i.utc=function(e){return new n({date:e,utc:!0,args:arguments})},o.utc=function(t){var r=i(this.toDate(),{locale:this.$L,utc:!0});return t?r.add(this.utcOffset(),e):r},o.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var a=o.parse;o.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),a.call(this,e)};var l=o.init;o.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else l.call(this)};var h=o.utcOffset;o.utcOffset=function(s,n){var i=this.$utils().u;if(i(s))return this.$u?0:i(this.$offset)?h.call(this):this.$offset;if("string"==typeof s&&(s=function(e){void 0===e&&(e="");var s=e.match(t);if(!s)return null;var n=(""+s[0]).match(r)||["-",0,0],i=n[0],o=60*+n[1]+ +n[2];return 0===o?0:"+"===i?o:-o}(s),null===s))return this;var o=Math.abs(s)<=16?60*s:s,a=this;if(n)return a.$offset=o,a.$u=0===s,a;if(0!==s){var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(a=this.local().add(o+l,e)).$offset=o,a.$x.$localOffset=l}else a=this.utc();return a};var u=o.format;o.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return u.call(this,t)},o.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||(new Date).getTimezoneOffset());return this.$d.valueOf()-6e4*e},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var c=o.toDate;o.toDate=function(e){return"s"===e&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():c.call(this)};var p=o.diff;o.diff=function(e,t,r){if(e&&this.$u===e.$u)return p.call(this,e,t,r);var s=this.local(),n=i(e).local();return p.call(s,n,t,r)}}}()},5923:(e,t,r)=>{"use strict";const s=r(2138),n=Symbol("max"),i=Symbol("length"),o=Symbol("lengthCalculator"),a=Symbol("allowStale"),l=Symbol("maxAge"),h=Symbol("dispose"),u=Symbol("noDisposeOnSet"),c=Symbol("lruList"),p=Symbol("cache"),f=Symbol("updateAgeOnGet"),m=()=>1,E=(e,t,r)=>{const s=e[p].get(t);if(s){const t=s.value;if(v(e,t)){if(d(e,s),!e[a])return}else r&&(e[f]&&(s.value.now=Date.now()),e[c].unshiftNode(s));return t.value}},v=(e,t)=>{if(!t||!t.maxAge&&!e[l])return!1;const r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[l]&&r>e[l]},$=e=>{if(e[i]>e[n])for(let t=e[c].tail;e[i]>e[n]&&null!==t;){const r=t.prev;d(e,t),t=r}},d=(e,t)=>{if(t){const r=t.value;e[h]&&e[h](r.key,r.value),e[i]-=r.length,e[p].delete(r.key),e[c].removeNode(t)}};class g{constructor(e,t,r,s,n){this.key=e,this.value=t,this.length=r,this.now=s,this.maxAge=n||0}}const I=(e,t,r,s)=>{let n=r.value;v(e,n)&&(d(e,r),e[a]||(n=void 0)),n&&t.call(s,n.value,n.key,e)};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[n]=e.max||1/0;const t=e.length||m;if(this[o]="function"!=typeof t?m:t,this[a]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[l]=e.maxAge||0,this[h]=e.dispose,this[u]=e.noDisposeOnSet||!1,this[f]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[n]=e||1/0,$(this)}get max(){return this[n]}set allowStale(e){this[a]=!!e}get allowStale(){return this[a]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[l]=e,$(this)}get maxAge(){return this[l]}set lengthCalculator(e){"function"!=typeof e&&(e=m),e!==this[o]&&(this[o]=e,this[i]=0,this[c].forEach((e=>{e.length=this[o](e.value,e.key),this[i]+=e.length}))),$(this)}get lengthCalculator(){return this[o]}get length(){return this[i]}get itemCount(){return this[c].length}rforEach(e,t){t=t||this;for(let r=this[c].tail;null!==r;){const s=r.prev;I(this,e,r,t),r=s}}forEach(e,t){t=t||this;for(let r=this[c].head;null!==r;){const s=r.next;I(this,e,r,t),r=s}}keys(){return this[c].toArray().map((e=>e.key))}values(){return this[c].toArray().map((e=>e.value))}reset(){this[h]&&this[c]&&this[c].length&&this[c].forEach((e=>this[h](e.key,e.value))),this[p]=new Map,this[c]=new s,this[i]=0}dump(){return this[c].map((e=>!v(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[c]}set(e,t,r){if((r=r||this[l])&&"number"!=typeof r)throw new TypeError("maxAge must be a number");const s=r?Date.now():0,a=this[o](t,e);if(this[p].has(e)){if(a>this[n])return d(this,this[p].get(e)),!1;const o=this[p].get(e).value;return this[h]&&(this[u]||this[h](e,o.value)),o.now=s,o.maxAge=r,o.value=t,this[i]+=a-o.length,o.length=a,this.get(e),$(this),!0}const f=new g(e,t,a,s,r);return f.length>this[n]?(this[h]&&this[h](e,t),!1):(this[i]+=f.length,this[c].unshift(f),this[p].set(e,this[c].head),$(this),!0)}has(e){if(!this[p].has(e))return!1;const t=this[p].get(e).value;return!v(this,t)}get(e){return E(this,e,!0)}peek(e){return E(this,e,!1)}pop(){const e=this[c].tail;return e?(d(this,e),e.value):null}del(e){d(this,this[p].get(e))}load(e){this.reset();const t=Date.now();for(let r=e.length-1;r>=0;r--){const s=e[r],n=s.e||0;if(0===n)this.set(s.k,s.v);else{const e=n-t;e>0&&this.set(s.k,s.v,e)}}}prune(){this[p].forEach(((e,t)=>E(this,t,!1)))}}},4074:(e,t,r)=>{const s=Symbol("SemVer ANY");class n{static get ANY(){return s}constructor(e,t){if(t=i(t),e instanceof n){if(e.loose===!!t.loose)return e;e=e.value}h("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===s?this.value="":this.value=this.operator+this.semver.version,h("comp",this)}parse(e){const t=this.options.loose?o[a.COMPARATORLOOSE]:o[a.COMPARATOR],r=e.match(t);if(!r)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new u(r[2],this.options.loose):this.semver=s}toString(){return this.value}test(e){if(h("Comparator.test",e,this.options.loose),this.semver===s||e===s)return!0;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}return l(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof n))throw new TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||new c(e.value,t).test(this.value);if(""===e.operator)return""===e.value||new c(this.value,t).test(e.semver);const r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),s=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),i=this.semver.version===e.semver.version,o=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=l(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),h=l(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||s||i&&o||a||h}}e.exports=n;const i=r(156),{re:o,t:a}=r(887),l=r(2401),h=r(3843),u=r(9405),c=r(4355)},4355:(e,t,r)=>{class s{constructor(e,t){if(t=i(t),e instanceof s)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new s(e.raw,t);if(e instanceof o)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${e}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!m(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&E(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();const t=`parseRange:${Object.keys(this.options).join(",")}:${e}`,r=n.get(t);if(r)return r;const s=this.options.loose,i=s?h[u.HYPHENRANGELOOSE]:h[u.HYPHENRANGE];e=e.replace(i,S(this.options.includePrerelease)),a("hyphen replace",e),e=e.replace(h[u.COMPARATORTRIM],c),a("comparator trim",e,h[u.COMPARATORTRIM]),e=(e=(e=e.replace(h[u.TILDETRIM],p)).replace(h[u.CARETTRIM],f)).split(/\s+/).join(" ");const l=s?h[u.COMPARATORLOOSE]:h[u.COMPARATOR],E=e.split(" ").map((e=>$(e,this.options))).join(" ").split(/\s+/).map((e=>N(e,this.options))).filter(this.options.loose?e=>!!e.match(l):()=>!0).map((e=>new o(e,this.options))),v=(E.length,new Map);for(const e of E){if(m(e))return[e];v.set(e.value,e)}v.size>1&&v.has("")&&v.delete("");const d=[...v.values()];return n.set(t,d),d}intersects(e,t){if(!(e instanceof s))throw new TypeError("a Range is required");return this.set.some((r=>v(r,t)&&e.set.some((e=>v(e,t)&&r.every((r=>e.every((e=>r.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new l(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(A(this.set[t],e,this.options))return!0;return!1}}e.exports=s;const n=new(r(5923))({max:1e3}),i=r(156),o=r(4074),a=r(3843),l=r(9405),{re:h,t:u,comparatorTrimReplace:c,tildeTrimReplace:p,caretTrimReplace:f}=r(887),m=e=>"<0.0.0-0"===e.value,E=e=>""===e.value,v=(e,t)=>{let r=!0;const s=e.slice();let n=s.pop();for(;r&&s.length;)r=s.every((e=>n.intersects(e,t))),n=s.pop();return r},$=(e,t)=>(a("comp",e,t),e=R(e,t),a("caret",e),e=g(e,t),a("tildes",e),e=y(e,t),a("xrange",e),e=w(e,t),a("stars",e),e),d=e=>!e||"x"===e.toLowerCase()||"*"===e,g=(e,t)=>e.trim().split(/\s+/).map((e=>I(e,t))).join(" "),I=(e,t)=>{const r=t.loose?h[u.TILDELOOSE]:h[u.TILDE];return e.replace(r,((t,r,s,n,i)=>{let o;return a("tilde",e,t,r,s,n,i),d(r)?o="":d(s)?o=`>=${r}.0.0 <${+r+1}.0.0-0`:d(n)?o=`>=${r}.${s}.0 <${r}.${+s+1}.0-0`:i?(a("replaceTilde pr",i),o=`>=${r}.${s}.${n}-${i} <${r}.${+s+1}.0-0`):o=`>=${r}.${s}.${n} <${r}.${+s+1}.0-0`,a("tilde return",o),o}))},R=(e,t)=>e.trim().split(/\s+/).map((e=>T(e,t))).join(" "),T=(e,t)=>{a("caret",e,t);const r=t.loose?h[u.CARETLOOSE]:h[u.CARET],s=t.includePrerelease?"-0":"";return e.replace(r,((t,r,n,i,o)=>{let l;return a("caret",e,t,r,n,i,o),d(r)?l="":d(n)?l=`>=${r}.0.0${s} <${+r+1}.0.0-0`:d(i)?l="0"===r?`>=${r}.${n}.0${s} <${r}.${+n+1}.0-0`:`>=${r}.${n}.0${s} <${+r+1}.0.0-0`:o?(a("replaceCaret pr",o),l="0"===r?"0"===n?`>=${r}.${n}.${i}-${o} <${r}.${n}.${+i+1}-0`:`>=${r}.${n}.${i}-${o} <${r}.${+n+1}.0-0`:`>=${r}.${n}.${i}-${o} <${+r+1}.0.0-0`):(a("no pr"),l="0"===r?"0"===n?`>=${r}.${n}.${i}${s} <${r}.${n}.${+i+1}-0`:`>=${r}.${n}.${i}${s} <${r}.${+n+1}.0-0`:`>=${r}.${n}.${i} <${+r+1}.0.0-0`),a("caret return",l),l}))},y=(e,t)=>(a("replaceXRanges",e,t),e.split(/\s+/).map((e=>O(e,t))).join(" ")),O=(e,t)=>{e=e.trim();const r=t.loose?h[u.XRANGELOOSE]:h[u.XRANGE];return e.replace(r,((r,s,n,i,o,l)=>{a("xRange",e,r,s,n,i,o,l);const h=d(n),u=h||d(i),c=u||d(o),p=c;return"="===s&&p&&(s=""),l=t.includePrerelease?"-0":"",h?r=">"===s||"<"===s?"<0.0.0-0":"*":s&&p?(u&&(i=0),o=0,">"===s?(s=">=",u?(n=+n+1,i=0,o=0):(i=+i+1,o=0)):"<="===s&&(s="<",u?n=+n+1:i=+i+1),"<"===s&&(l="-0"),r=`${s+n}.${i}.${o}${l}`):u?r=`>=${n}.0.0${l} <${+n+1}.0.0-0`:c&&(r=`>=${n}.${i}.0${l} <${n}.${+i+1}.0-0`),a("xRange return",r),r}))},w=(e,t)=>(a("replaceStars",e,t),e.trim().replace(h[u.STAR],"")),N=(e,t)=>(a("replaceGTE0",e,t),e.trim().replace(h[t.includePrerelease?u.GTE0PRE:u.GTE0],"")),S=e=>(t,r,s,n,i,o,a,l,h,u,c,p,f)=>`${r=d(s)?"":d(n)?`>=${s}.0.0${e?"-0":""}`:d(i)?`>=${s}.${n}.0${e?"-0":""}`:o?`>=${r}`:`>=${r}${e?"-0":""}`} ${l=d(h)?"":d(u)?`<${+h+1}.0.0-0`:d(c)?`<${h}.${+u+1}.0-0`:p?`<=${h}.${u}.${c}-${p}`:e?`<${h}.${u}.${+c+1}-0`:`<=${l}`}`.trim(),A=(e,t,r)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let r=0;r<e.length;r++)if(a(e[r].semver),e[r].semver!==o.ANY&&e[r].semver.prerelease.length>0){const s=e[r].semver;if(s.major===t.major&&s.minor===t.minor&&s.patch===t.patch)return!0}return!1}return!0}},9405:(e,t,r)=>{const s=r(3843),{MAX_LENGTH:n,MAX_SAFE_INTEGER:i}=r(8202),{re:o,t:a}=r(887),l=r(156),{compareIdentifiers:h}=r(1630);class u{constructor(e,t){if(t=l(t),e instanceof u){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid Version: ${e}`);if(e.length>n)throw new TypeError(`version is longer than ${n} characters`);s("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?o[a.LOOSE]:o[a.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<i)return t}return e})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(s("SemVer.compare",this.version,this.options,e),!(e instanceof u)){if("string"==typeof e&&e===this.version)return 0;e=new u(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof u||(e=new u(e,this.options)),h(this.major,e.major)||h(this.minor,e.minor)||h(this.patch,e.patch)}comparePre(e){if(e instanceof u||(e=new u(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const r=this.prerelease[t],n=e.prerelease[t];if(s("prerelease compare",t,r,n),void 0===r&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===r)return-1;if(r!==n)return h(r,n)}while(++t)}compareBuild(e){e instanceof u||(e=new u(e,this.options));let t=0;do{const r=this.build[t],n=e.build[t];if(s("prerelease compare",t,r,n),void 0===r&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===r)return-1;if(r!==n)return h(r,n)}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{let e=this.prerelease.length;for(;--e>=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}}e.exports=u},953:(e,t,r)=>{const s=r(5497);e.exports=(e,t)=>{const r=s(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}},2401:(e,t,r)=>{const s=r(8896),n=r(8378),i=r(9261),o=r(6647),a=r(3433),l=r(4622);e.exports=(e,t,r,h)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return s(e,r,h);case"!=":return n(e,r,h);case">":return i(e,r,h);case">=":return o(e,r,h);case"<":return a(e,r,h);case"<=":return l(e,r,h);default:throw new TypeError(`Invalid operator: ${t}`)}}},6839:(e,t,r)=>{const s=r(9405),n=r(5497),{re:i,t:o}=r(887);e.exports=(e,t)=>{if(e instanceof s)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let r=null;if((t=t||{}).rtl){let t;for(;(t=i[o.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&t.index+t[0].length===r.index+r[0].length||(r=t),i[o.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;i[o.COERCERTL].lastIndex=-1}else r=e.match(i[o.COERCE]);return null===r?null:n(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)}},6218:(e,t,r)=>{const s=r(9405);e.exports=(e,t,r)=>{const n=new s(e,r),i=new s(t,r);return n.compare(i)||n.compareBuild(i)}},9643:(e,t,r)=>{const s=r(3308);e.exports=(e,t)=>s(e,t,!0)},3308:(e,t,r)=>{const s=r(9405);e.exports=(e,t,r)=>new s(e,r).compare(new s(t,r))},3948:(e,t,r)=>{const s=r(5497),n=r(8896);e.exports=(e,t)=>{if(n(e,t))return null;{const r=s(e),n=s(t),i=r.prerelease.length||n.prerelease.length,o=i?"pre":"",a=i?"prerelease":"";for(const e in r)if(("major"===e||"minor"===e||"patch"===e)&&r[e]!==n[e])return o+e;return a}}},8896:(e,t,r)=>{const s=r(3308);e.exports=(e,t,r)=>0===s(e,t,r)},9261:(e,t,r)=>{const s=r(3308);e.exports=(e,t,r)=>s(e,t,r)>0},6647:(e,t,r)=>{const s=r(3308);e.exports=(e,t,r)=>s(e,t,r)>=0},5791:(e,t,r)=>{const s=r(9405);e.exports=(e,t,r,n)=>{"string"==typeof r&&(n=r,r=void 0);try{return new s(e,r).inc(t,n).version}catch(e){return null}}},3433:(e,t,r)=>{const s=r(3308);e.exports=(e,t,r)=>s(e,t,r)<0},4622:(e,t,r)=>{const s=r(3308);e.exports=(e,t,r)=>s(e,t,r)<=0},629:(e,t,r)=>{const s=r(9405);e.exports=(e,t)=>new s(e,t).major},9986:(e,t,r)=>{const s=r(9405);e.exports=(e,t)=>new s(e,t).minor},8378:(e,t,r)=>{const s=r(3308);e.exports=(e,t,r)=>0!==s(e,t,r)},5497:(e,t,r)=>{const{MAX_LENGTH:s}=r(8202),{re:n,t:i}=r(887),o=r(9405),a=r(156);e.exports=(e,t)=>{if(t=a(t),e instanceof o)return e;if("string"!=typeof e)return null;if(e.length>s)return null;if(!(t.loose?n[i.LOOSE]:n[i.FULL]).test(e))return null;try{return new o(e,t)}catch(e){return null}}},9800:(e,t,r)=>{const s=r(9405);e.exports=(e,t)=>new s(e,t).patch},4408:(e,t,r)=>{const s=r(5497);e.exports=(e,t)=>{const r=s(e,t);return r&&r.prerelease.length?r.prerelease:null}},762:(e,t,r)=>{const s=r(3308);e.exports=(e,t,r)=>s(t,e,r)},2743:(e,t,r)=>{const s=r(6218);e.exports=(e,t)=>e.sort(((e,r)=>s(r,e,t)))},5312:(e,t,r)=>{const s=r(4355);e.exports=(e,t,r)=>{try{t=new s(t,r)}catch(e){return!1}return t.test(e)}},2354:(e,t,r)=>{const s=r(6218);e.exports=(e,t)=>e.sort(((e,r)=>s(e,r,t)))},4512:(e,t,r)=>{const s=r(5497);e.exports=(e,t)=>{const r=s(e,t);return r?r.version:null}},4770:(e,t,r)=>{const s=r(887);e.exports={re:s.re,src:s.src,tokens:s.t,SEMVER_SPEC_VERSION:r(8202).SEMVER_SPEC_VERSION,SemVer:r(9405),compareIdentifiers:r(1630).compareIdentifiers,rcompareIdentifiers:r(1630).rcompareIdentifiers,parse:r(5497),valid:r(4512),clean:r(953),inc:r(5791),diff:r(3948),major:r(629),minor:r(9986),patch:r(9800),prerelease:r(4408),compare:r(3308),rcompare:r(762),compareLoose:r(9643),compareBuild:r(6218),sort:r(2354),rsort:r(2743),gt:r(9261),lt:r(3433),eq:r(8896),neq:r(8378),gte:r(6647),lte:r(4622),cmp:r(2401),coerce:r(6839),Comparator:r(4074),Range:r(4355),satisfies:r(5312),toComparators:r(9663),maxSatisfying:r(4931),minSatisfying:r(5891),minVersion:r(4925),validRange:r(9965),outside:r(3260),gtr:r(715),ltr:r(6),intersects:r(9560),simplifyRange:r(7795),subset:r(7732)}},8202:e=>{const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:t,MAX_SAFE_COMPONENT_LENGTH:16}},3843:e=>{const t="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},1630:e=>{const t=/^[0-9]+$/,r=(e,r)=>{const s=t.test(e),n=t.test(r);return s&&n&&(e=+e,r=+r),e===r?0:s&&!n?-1:n&&!s?1:e<r?-1:1};e.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)}},156:e=>{const t=["includePrerelease","loose","rtl"];e.exports=e=>e?"object"!=typeof e?{loose:!0}:t.filter((t=>e[t])).reduce(((e,t)=>(e[t]=!0,e)),{}):{}},887:(e,t,r)=>{const{MAX_SAFE_COMPONENT_LENGTH:s}=r(8202),n=r(3843),i=(t=e.exports={}).re=[],o=t.src=[],a=t.t={};let l=0;const h=(e,t,r)=>{const s=l++;n(s,t),a[e]=s,o[s]=t,i[s]=new RegExp(t,r?"g":void 0)};h("NUMERICIDENTIFIER","0|[1-9]\\d*"),h("NUMERICIDENTIFIERLOOSE","[0-9]+"),h("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),h("MAINVERSION",`(${o[a.NUMERICIDENTIFIER]})\\.(${o[a.NUMERICIDENTIFIER]})\\.(${o[a.NUMERICIDENTIFIER]})`),h("MAINVERSIONLOOSE",`(${o[a.NUMERICIDENTIFIERLOOSE]})\\.(${o[a.NUMERICIDENTIFIERLOOSE]})\\.(${o[a.NUMERICIDENTIFIERLOOSE]})`),h("PRERELEASEIDENTIFIER",`(?:${o[a.NUMERICIDENTIFIER]}|${o[a.NONNUMERICIDENTIFIER]})`),h("PRERELEASEIDENTIFIERLOOSE",`(?:${o[a.NUMERICIDENTIFIERLOOSE]}|${o[a.NONNUMERICIDENTIFIER]})`),h("PRERELEASE",`(?:-(${o[a.PRERELEASEIDENTIFIER]}(?:\\.${o[a.PRERELEASEIDENTIFIER]})*))`),h("PRERELEASELOOSE",`(?:-?(${o[a.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${o[a.PRERELEASEIDENTIFIERLOOSE]})*))`),h("BUILDIDENTIFIER","[0-9A-Za-z-]+"),h("BUILD",`(?:\\+(${o[a.BUILDIDENTIFIER]}(?:\\.${o[a.BUILDIDENTIFIER]})*))`),h("FULLPLAIN",`v?${o[a.MAINVERSION]}${o[a.PRERELEASE]}?${o[a.BUILD]}?`),h("FULL",`^${o[a.FULLPLAIN]}$`),h("LOOSEPLAIN",`[v=\\s]*${o[a.MAINVERSIONLOOSE]}${o[a.PRERELEASELOOSE]}?${o[a.BUILD]}?`),h("LOOSE",`^${o[a.LOOSEPLAIN]}$`),h("GTLT","((?:<|>)?=?)"),h("XRANGEIDENTIFIERLOOSE",`${o[a.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),h("XRANGEIDENTIFIER",`${o[a.NUMERICIDENTIFIER]}|x|X|\\*`),h("XRANGEPLAIN",`[v=\\s]*(${o[a.XRANGEIDENTIFIER]})(?:\\.(${o[a.XRANGEIDENTIFIER]})(?:\\.(${o[a.XRANGEIDENTIFIER]})(?:${o[a.PRERELEASE]})?${o[a.BUILD]}?)?)?`),h("XRANGEPLAINLOOSE",`[v=\\s]*(${o[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[a.XRANGEIDENTIFIERLOOSE]})(?:${o[a.PRERELEASELOOSE]})?${o[a.BUILD]}?)?)?`),h("XRANGE",`^${o[a.GTLT]}\\s*${o[a.XRANGEPLAIN]}$`),h("XRANGELOOSE",`^${o[a.GTLT]}\\s*${o[a.XRANGEPLAINLOOSE]}$`),h("COERCE",`(^|[^\\d])(\\d{1,${s}})(?:\\.(\\d{1,${s}}))?(?:\\.(\\d{1,${s}}))?(?:$|[^\\d])`),h("COERCERTL",o[a.COERCE],!0),h("LONETILDE","(?:~>?)"),h("TILDETRIM",`(\\s*)${o[a.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",h("TILDE",`^${o[a.LONETILDE]}${o[a.XRANGEPLAIN]}$`),h("TILDELOOSE",`^${o[a.LONETILDE]}${o[a.XRANGEPLAINLOOSE]}$`),h("LONECARET","(?:\\^)"),h("CARETTRIM",`(\\s*)${o[a.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",h("CARET",`^${o[a.LONECARET]}${o[a.XRANGEPLAIN]}$`),h("CARETLOOSE",`^${o[a.LONECARET]}${o[a.XRANGEPLAINLOOSE]}$`),h("COMPARATORLOOSE",`^${o[a.GTLT]}\\s*(${o[a.LOOSEPLAIN]})$|^$`),h("COMPARATOR",`^${o[a.GTLT]}\\s*(${o[a.FULLPLAIN]})$|^$`),h("COMPARATORTRIM",`(\\s*)${o[a.GTLT]}\\s*(${o[a.LOOSEPLAIN]}|${o[a.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",h("HYPHENRANGE",`^\\s*(${o[a.XRANGEPLAIN]})\\s+-\\s+(${o[a.XRANGEPLAIN]})\\s*$`),h("HYPHENRANGELOOSE",`^\\s*(${o[a.XRANGEPLAINLOOSE]})\\s+-\\s+(${o[a.XRANGEPLAINLOOSE]})\\s*$`),h("STAR","(<|>)?=?\\s*\\*"),h("GTE0","^\\s*>=\\s*0.0.0\\s*$"),h("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")},715:(e,t,r)=>{const s=r(3260);e.exports=(e,t,r)=>s(e,t,">",r)},9560:(e,t,r)=>{const s=r(4355);e.exports=(e,t,r)=>(e=new s(e,r),t=new s(t,r),e.intersects(t))},6:(e,t,r)=>{const s=r(3260);e.exports=(e,t,r)=>s(e,t,"<",r)},4931:(e,t,r)=>{const s=r(9405),n=r(4355);e.exports=(e,t,r)=>{let i=null,o=null,a=null;try{a=new n(t,r)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(i&&-1!==o.compare(e)||(i=e,o=new s(i,r)))})),i}},5891:(e,t,r)=>{const s=r(9405),n=r(4355);e.exports=(e,t,r)=>{let i=null,o=null,a=null;try{a=new n(t,r)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(i&&1!==o.compare(e)||(i=e,o=new s(i,r)))})),i}},4925:(e,t,r)=>{const s=r(9405),n=r(4355),i=r(9261);e.exports=(e,t)=>{e=new n(e,t);let r=new s("0.0.0");if(e.test(r))return r;if(r=new s("0.0.0-0"),e.test(r))return r;r=null;for(let t=0;t<e.set.length;++t){const n=e.set[t];let o=null;n.forEach((e=>{const t=new s(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":o&&!i(t,o)||(o=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!o||r&&!i(r,o)||(r=o)}return r&&e.test(r)?r:null}},3260:(e,t,r)=>{const s=r(9405),n=r(4074),{ANY:i}=n,o=r(4355),a=r(5312),l=r(9261),h=r(3433),u=r(4622),c=r(6647);e.exports=(e,t,r,p)=>{let f,m,E,v,$;switch(e=new s(e,p),t=new o(t,p),r){case">":f=l,m=u,E=h,v=">",$=">=";break;case"<":f=h,m=c,E=l,v="<",$="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(a(e,t,p))return!1;for(let r=0;r<t.set.length;++r){const s=t.set[r];let o=null,a=null;if(s.forEach((e=>{e.semver===i&&(e=new n(">=0.0.0")),o=o||e,a=a||e,f(e.semver,o.semver,p)?o=e:E(e.semver,a.semver,p)&&(a=e)})),o.operator===v||o.operator===$)return!1;if((!a.operator||a.operator===v)&&m(e,a.semver))return!1;if(a.operator===$&&E(e,a.semver))return!1}return!0}},7795:(e,t,r)=>{const s=r(5312),n=r(3308);e.exports=(e,t,r)=>{const i=[];let o=null,a=null;const l=e.sort(((e,t)=>n(e,t,r)));for(const e of l)s(e,t,r)?(a=e,o||(o=e)):(a&&i.push([o,a]),a=null,o=null);o&&i.push([o,null]);const h=[];for(const[e,t]of i)e===t?h.push(e):t||e!==l[0]?t?e===l[0]?h.push(`<=${t}`):h.push(`${e} - ${t}`):h.push(`>=${e}`):h.push("*");const u=h.join(" || "),c="string"==typeof t.raw?t.raw:String(t);return u.length<c.length?u:t}},7732:(e,t,r)=>{const s=r(4355),n=r(4074),{ANY:i}=n,o=r(5312),a=r(3308),l=(e,t,r)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===i){if(1===t.length&&t[0].semver===i)return!0;e=r.includePrerelease?[new n(">=0.0.0-0")]:[new n(">=0.0.0")]}if(1===t.length&&t[0].semver===i){if(r.includePrerelease)return!0;t=[new n(">=0.0.0")]}const s=new Set;let l,c,p,f,m,E,v;for(const t of e)">"===t.operator||">="===t.operator?l=h(l,t,r):"<"===t.operator||"<="===t.operator?c=u(c,t,r):s.add(t.semver);if(s.size>1)return null;if(l&&c){if(p=a(l.semver,c.semver,r),p>0)return null;if(0===p&&(">="!==l.operator||"<="!==c.operator))return null}for(const e of s){if(l&&!o(e,String(l),r))return null;if(c&&!o(e,String(c),r))return null;for(const s of t)if(!o(e,String(s),r))return!1;return!0}let $=!(!c||r.includePrerelease||!c.semver.prerelease.length)&&c.semver,d=!(!l||r.includePrerelease||!l.semver.prerelease.length)&&l.semver;$&&1===$.prerelease.length&&"<"===c.operator&&0===$.prerelease[0]&&($=!1);for(const e of t){if(v=v||">"===e.operator||">="===e.operator,E=E||"<"===e.operator||"<="===e.operator,l)if(d&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===d.major&&e.semver.minor===d.minor&&e.semver.patch===d.patch&&(d=!1),">"===e.operator||">="===e.operator){if(f=h(l,e,r),f===e&&f!==l)return!1}else if(">="===l.operator&&!o(l.semver,String(e),r))return!1;if(c)if($&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===$.major&&e.semver.minor===$.minor&&e.semver.patch===$.patch&&($=!1),"<"===e.operator||"<="===e.operator){if(m=u(c,e,r),m===e&&m!==c)return!1}else if("<="===c.operator&&!o(c.semver,String(e),r))return!1;if(!e.operator&&(c||l)&&0!==p)return!1}return!(l&&E&&!c&&0!==p||c&&v&&!l&&0!==p||d||$)},h=(e,t,r)=>{if(!e)return t;const s=a(e.semver,t.semver,r);return s>0?e:s<0||">"===t.operator&&">="===e.operator?t:e},u=(e,t,r)=>{if(!e)return t;const s=a(e.semver,t.semver,r);return s<0?e:s>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,r={})=>{if(e===t)return!0;e=new s(e,r),t=new s(t,r);let n=!1;e:for(const s of e.set){for(const e of t.set){const t=l(s,e,r);if(n=n||null!==t,t)continue e}if(n)return!1}return!0}},9663:(e,t,r)=>{const s=r(4355);e.exports=(e,t)=>new s(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))},9965:(e,t,r)=>{const s=r(4355);e.exports=(e,t)=>{try{return new s(e,t).range||"*"}catch(e){return null}}},7968:(e,t,r)=>{const s=r(1577).R;t.s=function(e){if(e||(e=1),!r.y.meta||!r.y.meta.url)throw console.error("__system_context__",r.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");r.p=s(r.y.meta.url,e)}},1577:(e,t,r)=>{t.R=function(e,t){var r=document.createElement("a");r.href=e;for(var s="/"===r.pathname[0]?r.pathname:"/"+r.pathname,n=0,i=s.length;n!==t&&i>=0;)"/"===s[--i]&&n++;if(n!==t)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+t+") is greater than the number of directories ("+n+") in the URL path "+e);var o=s.slice(0,i+1);return r.protocol+"//"+r.host+o};Number.isInteger},9961:e=>{"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},2138:(e,t,r)=>{"use strict";function s(e){var t=this;if(t instanceof s||(t=new s),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var r=0,n=arguments.length;r<n;r++)t.push(arguments[r]);return t}function n(e,t){e.tail=new o(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function i(e,t){e.head=new o(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function o(e,t,r,s){if(!(this instanceof o))return new o(e,t,r,s);this.list=s,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}e.exports=s,s.Node=o,s.create=s,s.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t},s.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},s.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},s.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)n(this,arguments[e]);return this.length},s.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)i(this,arguments[e]);return this.length},s.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},s.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},s.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,s=0;null!==r;s++)e.call(t,r.value,s,this),r=r.next},s.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,s=this.length-1;null!==r;s--)e.call(t,r.value,s,this),r=r.prev},s.prototype.get=function(e){for(var t=0,r=this.head;null!==r&&t<e;t++)r=r.next;if(t===e&&null!==r)return r.value},s.prototype.getReverse=function(e){for(var t=0,r=this.tail;null!==r&&t<e;t++)r=r.prev;if(t===e&&null!==r)return r.value},s.prototype.map=function(e,t){t=t||this;for(var r=new s,n=this.head;null!==n;)r.push(e.call(t,n.value,this)),n=n.next;return r},s.prototype.mapReverse=function(e,t){t=t||this;for(var r=new s,n=this.tail;null!==n;)r.push(e.call(t,n.value,this)),n=n.prev;return r},s.prototype.reduce=function(e,t){var r,s=this.head;if(arguments.length>1)r=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");s=this.head.next,r=this.head.value}for(var n=0;null!==s;n++)r=e(r,s.value,n),s=s.next;return r},s.prototype.reduceReverse=function(e,t){var r,s=this.tail;if(arguments.length>1)r=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");s=this.tail.prev,r=this.tail.value}for(var n=this.length-1;null!==s;n--)r=e(r,s.value,n),s=s.prev;return r},s.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;null!==r;t++)e[t]=r.value,r=r.next;return e},s.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;null!==r;t++)e[t]=r.value,r=r.prev;return e},s.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new s;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var n=0,i=this.head;null!==i&&n<e;n++)i=i.next;for(;null!==i&&n<t;n++,i=i.next)r.push(i.value);return r},s.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new s;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var n=this.length,i=this.tail;null!==i&&n>t;n--)i=i.prev;for(;null!==i&&n>e;n--,i=i.prev)r.push(i.value);return r},s.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var s=0,n=this.head;null!==n&&s<e;s++)n=n.next;var i,a,l,h,u=[];for(s=0;n&&s<t;s++)u.push(n.value),n=this.removeNode(n);for(null===n&&(n=this.tail),n!==this.head&&n!==this.tail&&(n=n.prev),s=0;s<r.length;s++)i=this,a=n,l=r[s],h=void 0,null===(h=a===i.head?new o(l,null,a,i):new o(l,a,a.next,i)).next&&(i.tail=h),null===h.prev&&(i.head=h),i.length++,n=h;return u},s.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;null!==r;r=r.prev){var s=r.prev;r.prev=r.next,r.next=s}return this.head=t,this.tail=e,this};try{r(9961)(s)}catch(e){}},9688:e=>{"use strict";e.exports=r},7064:e=>{"use strict";e.exports=s}},n={};function i(t){var r=n[t];if(void 0!==r)return r.exports;var s=n[t]={exports:{}};return e[t].call(s.exports,s,s.exports,i),s.exports}i.y=t,i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;i.g.importScripts&&(e=i.g.location+"");var t=i.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");r.length&&(e=r[r.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i.p=e})();var o={};return(0,i(7968).s)(1),(()=>{"use strict";function e(e){return(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate())-Date.UTC(e.getUTCFullYear(),0,0))/24/60/60/1e3}function t(e,t){const r=e.toISOString(),s=t.toISOString();return r.slice(0,r.indexOf("T"))===s.slice(0,s.indexOf("T"))}function r(r){const s=new Date,n=new Date(r),i=s.getUTCMonth()-n.getUTCMonth(),o=s.getUTCDate()-n.getUTCDate();let a=s.getUTCFullYear()-n.getUTCFullYear();(i<0||0===i&&o<0)&&a--;let l=i>=0?i:i+12;o<0&&l--;const h=l>0?`${l} mo`:"";let u=e(s)-e(n);u<0&&(u+=365);const c=Math.floor(u/7),p=u-7*c;return 0===a?t(s,n)?"Today":c<4||0===c?`${u} day`:p>0?`${c} wk ${p} d`:`${c} week`:a<2?`${h} ${a} yr`.trim():a<18?`${a} yr ${h}`.trim():`${a} years`}i.r(o),i.d(o,{age:()=>r,daysIntoYear:()=>e,formatDate:()=>T,formatDatetime:()=>O,formatTime:()=>y,isOmrsDateStrict:()=>c,isOmrsDateToday:()=>p,isSameDay:()=>t,isVersionSatisfied:()=>x,parseDate:()=>I,retry:()=>D,toDateObjectStrict:()=>f,toOmrsDateFormat:()=>g,toOmrsDayDateFormat:()=>$,toOmrsIsoString:()=>m,toOmrsTimeString:()=>v,toOmrsTimeString24:()=>E,toOmrsYearlessDateFormat:()=>d,translateFrom:()=>S});var s=i(9688),n=i(9014),a=i.n(n),l=i(4332),h=i.n(l);s.default.extend(a()),s.default.extend(h());const u="YYYY-MM-DDTHH:mm:ss.SSSZZ";function c(e){return null!=e&&28===e.trim().length&&"T"===(e=e.trim())[10]&&":"===e[13]&&":"===e[16]&&"."===e[19]&&"+"===e[23]&&":"!==e[26]&&(0,s.default)(e,u).isValid()}function p(e){return(0,s.default)(e).isToday()}function f(e){return c(e)?(0,s.default)(e,u).toDate():null}function m(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=(0,s.default)(e);return t&&(r=r.utc()),r.format(u)}function E(e){return(0,s.default)(e).format("HH:mm")}function v(e){return s.default.utc(e).format("HH:mm A")}function $(e){return g(e,"DD - MMM - YYYY")}function d(e){return g(e,"DD-MMM")}function g(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MMM-DD";return(0,s.default)(e).format(t)}function I(e){return(0,s.default)(e).toDate()}const R={mode:"standard",time:"for today",day:!0,year:!0};function T(e,t){const{mode:r,time:n,day:i,year:o}={...R,...t},a={year:o?"numeric":void 0,month:"short",day:i?"2-digit":void 0};let l,h=w();const u=(0,s.default)(e).isToday();if(u)l=new Intl.RelativeTimeFormat(h,{numeric:"auto"}).format(0,"day"),l=l[0].toLocaleUpperCase(h)+l.slice(1);else if("en"==h&&(h="en-GB"),l=e.toLocaleDateString(h,a),"en-GB"==h&&"standard"==r&&o&&i&&(l=l.replace(/ /g,"-")),"wide"==r&&(l=l.replace(/ /g," — "),/ru.*/.test(h))){const e=l.length;l=l.slice(0,e-5)+l.slice(e-5).replace(" — "," ")}return(!0===n||u&&"for today"===n)&&(l+=`, ${y(e)}`),l}function y(e){return e.toLocaleTimeString(w(),{hour:"2-digit",minute:"2-digit"})}function O(e,t){return T(e,{...t,time:!0})}function w(){let e=window.i18next.language;return e=e.replace("_","-"),"ht"===e&&(e="fr-HT"),e}var N=i(7064);function S(e,t,r,s){return(N.default.default||N.default).t(t,{ns:e,defaultValue:r,...s})}var A=i(4770);function L(e){const[t,r,s]=e.split(".");return`${t}.${r}.${s}`}function x(e,t){const r=function(e){const t=e.indexOf("-");return t>=0?`${L(e.slice(0,t))}-${e.slice(t+1)}`:L(e)}(t);return A.satisfies(r,e,{includePrerelease:!0})}async function D(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{shouldRetry:r,getDelay:s,onError:n}=t;r=r??(e=>C(e,5)),s=s??(e=>M(e,1e3));let i,o=0;do{try{return await b(s(o)),await e()}catch(e){n?.(e,o),i=e}}while(r(o++));throw i}function C(e,t){return e<=t}function M(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const s=r?e+1:e;return t*Math.pow(2,s)}async function b(e){if(!(e<=0))return new Promise((t=>setTimeout(t,e)))}})(),o})())}}}));
|
|
1
|
+
System.register(["dayjs","i18next"],(function(t,e){var r={},n={};return{setters:[function(t){r.default=t.default},function(t){n.default=t.default}],execute:function(){t((()=>{var t={4332:function(t){t.exports=function(){"use strict";return function(t,e,r){e.prototype.isToday=function(){var t="YYYY-MM-DD",e=r();return this.format(t)===e.format(t)}}}()},9014:function(t){t.exports=function(){"use strict";var t="minute",e=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(n,o,i){var s=o.prototype;i.utc=function(t){return new o({date:t,utc:!0,args:arguments})},s.utc=function(e){var r=i(this.toDate(),{locale:this.$L,utc:!0});return e?r.add(this.utcOffset(),t):r},s.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var a=s.parse;s.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),a.call(this,t)};var l=s.init;s.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else l.call(this)};var u=s.utcOffset;s.utcOffset=function(n,o){var i=this.$utils().u;if(i(n))return this.$u?0:i(this.$offset)?u.call(this):this.$offset;if("string"==typeof n&&(n=function(t){void 0===t&&(t="");var n=t.match(e);if(!n)return null;var o=(""+n[0]).match(r)||["-",0,0],i=o[0],s=60*+o[1]+ +o[2];return 0===s?0:"+"===i?s:-s}(n),null===n))return this;var s=Math.abs(n)<=16?60*n:n,a=this;if(o)return a.$offset=s,a.$u=0===n,a;if(0!==n){var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(a=this.local().add(s+l,t)).$offset=s,a.$x.$localOffset=l}else a=this.utc();return a};var h=s.format;s.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return h.call(this,e)},s.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||(new Date).getTimezoneOffset());return this.$d.valueOf()-6e4*t},s.isUTC=function(){return!!this.$u},s.toISOString=function(){return this.toDate().toISOString()},s.toString=function(){return this.toDate().toUTCString()};var c=s.toDate;s.toDate=function(t){return"s"===t&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():c.call(this)};var p=s.diff;s.diff=function(t,e,r){if(t&&this.$u===t.$u)return p.call(this,t,e,r);var n=this.local(),o=i(t).local();return p.call(n,o,e,r)}}}()},5923:(t,e,r)=>{"use strict";const n=r(2138),o=Symbol("max"),i=Symbol("length"),s=Symbol("lengthCalculator"),a=Symbol("allowStale"),l=Symbol("maxAge"),u=Symbol("dispose"),h=Symbol("noDisposeOnSet"),c=Symbol("lruList"),p=Symbol("cache"),f=Symbol("updateAgeOnGet"),m=()=>1,v=(t,e,r)=>{const n=t[p].get(e);if(n){const e=n.value;if(E(t,e)){if(d(t,n),!t[a])return}else r&&(t[f]&&(n.value.now=Date.now()),t[c].unshiftNode(n));return e.value}},E=(t,e)=>{if(!e||!e.maxAge&&!t[l])return!1;const r=Date.now()-e.now;return e.maxAge?r>e.maxAge:t[l]&&r>t[l]},g=t=>{if(t[i]>t[o])for(let e=t[c].tail;t[i]>t[o]&&null!==e;){const r=e.prev;d(t,e),e=r}},d=(t,e)=>{if(e){const r=e.value;t[u]&&t[u](r.key,r.value),t[i]-=r.length,t[p].delete(r.key),t[c].removeNode(e)}};class y{constructor(t,e,r,n,o){this.key=t,this.value=e,this.length=r,this.now=n,this.maxAge=o||0}}const $=(t,e,r,n)=>{let o=r.value;E(t,o)&&(d(t,r),t[a]||(o=void 0)),o&&e.call(n,o.value,o.key,t)};t.exports=class{constructor(t){if("number"==typeof t&&(t={max:t}),t||(t={}),t.max&&("number"!=typeof t.max||t.max<0))throw new TypeError("max must be a non-negative number");this[o]=t.max||1/0;const e=t.length||m;if(this[s]="function"!=typeof e?m:e,this[a]=t.stale||!1,t.maxAge&&"number"!=typeof t.maxAge)throw new TypeError("maxAge must be a number");this[l]=t.maxAge||0,this[u]=t.dispose,this[h]=t.noDisposeOnSet||!1,this[f]=t.updateAgeOnGet||!1,this.reset()}set max(t){if("number"!=typeof t||t<0)throw new TypeError("max must be a non-negative number");this[o]=t||1/0,g(this)}get max(){return this[o]}set allowStale(t){this[a]=!!t}get allowStale(){return this[a]}set maxAge(t){if("number"!=typeof t)throw new TypeError("maxAge must be a non-negative number");this[l]=t,g(this)}get maxAge(){return this[l]}set lengthCalculator(t){"function"!=typeof t&&(t=m),t!==this[s]&&(this[s]=t,this[i]=0,this[c].forEach((t=>{t.length=this[s](t.value,t.key),this[i]+=t.length}))),g(this)}get lengthCalculator(){return this[s]}get length(){return this[i]}get itemCount(){return this[c].length}rforEach(t,e){e=e||this;for(let r=this[c].tail;null!==r;){const n=r.prev;$(this,t,r,e),r=n}}forEach(t,e){e=e||this;for(let r=this[c].head;null!==r;){const n=r.next;$(this,t,r,e),r=n}}keys(){return this[c].toArray().map((t=>t.key))}values(){return this[c].toArray().map((t=>t.value))}reset(){this[u]&&this[c]&&this[c].length&&this[c].forEach((t=>this[u](t.key,t.value))),this[p]=new Map,this[c]=new n,this[i]=0}dump(){return this[c].map((t=>!E(this,t)&&{k:t.key,v:t.value,e:t.now+(t.maxAge||0)})).toArray().filter((t=>t))}dumpLru(){return this[c]}set(t,e,r){if((r=r||this[l])&&"number"!=typeof r)throw new TypeError("maxAge must be a number");const n=r?Date.now():0,a=this[s](e,t);if(this[p].has(t)){if(a>this[o])return d(this,this[p].get(t)),!1;const s=this[p].get(t).value;return this[u]&&(this[h]||this[u](t,s.value)),s.now=n,s.maxAge=r,s.value=e,this[i]+=a-s.length,s.length=a,this.get(t),g(this),!0}const f=new y(t,e,a,n,r);return f.length>this[o]?(this[u]&&this[u](t,e),!1):(this[i]+=f.length,this[c].unshift(f),this[p].set(t,this[c].head),g(this),!0)}has(t){if(!this[p].has(t))return!1;const e=this[p].get(t).value;return!E(this,e)}get(t){return v(this,t,!0)}peek(t){return v(this,t,!1)}pop(){const t=this[c].tail;return t?(d(this,t),t.value):null}del(t){d(this,this[p].get(t))}load(t){this.reset();const e=Date.now();for(let r=t.length-1;r>=0;r--){const n=t[r],o=n.e||0;if(0===o)this.set(n.k,n.v);else{const t=o-e;t>0&&this.set(n.k,n.v,t)}}}prune(){this[p].forEach(((t,e)=>v(this,e,!1)))}}},1602:t=>{var e=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var o=e&&e.prototype instanceof E?e:E,i=Object.create(o.prototype),s=new N(n||[]);return i._invoke=function(t,e,r){var n=c;return function(o,i){if(n===f)throw new Error("Generator is already running");if(n===m){if("throw"===o)throw i;return A()}for(r.method=o,r.arg=i;;){var s=r.delegate;if(s){var a=T(s,r);if(a){if(a===v)continue;return a}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===c)throw n=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=f;var l=h(t,e,r);if("normal"===l.type){if(n=r.done?m:p,l.arg===v)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n=m,r.method="throw",r.arg=l.arg)}}}(t,r,s),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var c="suspendedStart",p="suspendedYield",f="executing",m="completed",v={};function E(){}function g(){}function d(){}var y={};l(y,i,(function(){return this}));var $=Object.getPrototypeOf,w=$&&$($(S([])));w&&w!==r&&n.call(w,i)&&(y=w);var I=d.prototype=E.prototype=Object.create(y);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function R(t,e){function r(o,i,s,a){var l=h(t[o],t,i);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==typeof c&&n.call(c,"__await")?e.resolve(c.__await).then((function(t){r("next",t,s,a)}),(function(t){r("throw",t,s,a)})):e.resolve(c).then((function(t){u.value=t,s(u)}),(function(t){return r("throw",t,s,a)}))}a(l.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function T(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,T(t,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=h(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function S(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,s=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return s.next=s}}return{next:A}}function A(){return{value:e,done:!0}}return g.prototype=d,l(I,"constructor",d),l(d,"constructor",g),g.displayName=l(d,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,a,"GeneratorFunction")),t.prototype=Object.create(I),t},t.awrap=function(t){return{__await:t}},O(R.prototype),l(R.prototype,s,(function(){return this})),t.AsyncIterator=R,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var s=new R(u(e,r,n,o),i);return t.isGeneratorFunction(r)?s:s.next().then((function(t){return t.done?t.value:s.next()}))},O(I),l(I,a,"Generator"),l(I,i,(function(){return this})),l(I,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=S,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(L),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return a.type="throw",a.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var s=this.tryEntries[i],a=s.completion;if("root"===s.tryLoc)return o("end");if(s.tryLoc<=this.prev){var l=n.call(s,"catchLoc"),u=n.call(s,"finallyLoc");if(l&&u){if(this.prev<s.catchLoc)return o(s.catchLoc,!0);if(this.prev<s.finallyLoc)return o(s.finallyLoc)}else if(l){if(this.prev<s.catchLoc)return o(s.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return o(s.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var s=i?i.completion:{};return s.type=t,s.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(s)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:S(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},4074:(t,e,r)=>{const n=Symbol("SemVer ANY");class o{static get ANY(){return n}constructor(t,e){if(e=i(e),t instanceof o){if(t.loose===!!e.loose)return t;t=t.value}u("comparator",t,e),this.options=e,this.loose=!!e.loose,this.parse(t),this.semver===n?this.value="":this.value=this.operator+this.semver.version,u("comp",this)}parse(t){const e=this.options.loose?s[a.COMPARATORLOOSE]:s[a.COMPARATOR],r=t.match(e);if(!r)throw new TypeError(`Invalid comparator: ${t}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new h(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(t){if(u("Comparator.test",t,this.options.loose),this.semver===n||t===n)return!0;if("string"==typeof t)try{t=new h(t,this.options)}catch(t){return!1}return l(t,this.operator,this.semver,this.options)}intersects(t,e){if(!(t instanceof o))throw new TypeError("a Comparator is required");if(e&&"object"==typeof e||(e={loose:!!e,includePrerelease:!1}),""===this.operator)return""===this.value||new c(t.value,e).test(this.value);if(""===t.operator)return""===t.value||new c(this.value,e).test(t.semver);const r=!(">="!==this.operator&&">"!==this.operator||">="!==t.operator&&">"!==t.operator),n=!("<="!==this.operator&&"<"!==this.operator||"<="!==t.operator&&"<"!==t.operator),i=this.semver.version===t.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==t.operator&&"<="!==t.operator),a=l(this.semver,"<",t.semver,e)&&(">="===this.operator||">"===this.operator)&&("<="===t.operator||"<"===t.operator),u=l(this.semver,">",t.semver,e)&&("<="===this.operator||"<"===this.operator)&&(">="===t.operator||">"===t.operator);return r||n||i&&s||a||u}}t.exports=o;const i=r(156),{re:s,t:a}=r(887),l=r(2401),u=r(3843),h=r(9405),c=r(4355)},4355:(t,e,r)=>{class n{constructor(t,e){if(e=i(e),t instanceof n)return t.loose===!!e.loose&&t.includePrerelease===!!e.includePrerelease?t:new n(t.raw,e);if(t instanceof s)return this.raw=t.value,this.set=[[t]],this.format(),this;if(this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease,this.raw=t,this.set=t.split(/\s*\|\|\s*/).map((t=>this.parseRange(t.trim()))).filter((t=>t.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${t}`);if(this.set.length>1){const t=this.set[0];if(this.set=this.set.filter((t=>!m(t[0]))),0===this.set.length)this.set=[t];else if(this.set.length>1)for(const t of this.set)if(1===t.length&&v(t[0])){this.set=[t];break}}this.format()}format(){return this.range=this.set.map((t=>t.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(t){t=t.trim();const e=`parseRange:${Object.keys(this.options).join(",")}:${t}`,r=o.get(e);if(r)return r;const n=this.options.loose,i=n?u[h.HYPHENRANGELOOSE]:u[h.HYPHENRANGE];t=t.replace(i,L(this.options.includePrerelease)),a("hyphen replace",t),t=t.replace(u[h.COMPARATORTRIM],c),a("comparator trim",t,u[h.COMPARATORTRIM]),t=(t=(t=t.replace(u[h.TILDETRIM],p)).replace(u[h.CARETTRIM],f)).split(/\s+/).join(" ");const l=n?u[h.COMPARATORLOOSE]:u[h.COMPARATOR],v=t.split(" ").map((t=>g(t,this.options))).join(" ").split(/\s+/).map((t=>x(t,this.options))).filter(this.options.loose?t=>!!t.match(l):()=>!0).map((t=>new s(t,this.options))),E=(v.length,new Map);for(const t of v){if(m(t))return[t];E.set(t.value,t)}E.size>1&&E.has("")&&E.delete("");const d=[...E.values()];return o.set(e,d),d}intersects(t,e){if(!(t instanceof n))throw new TypeError("a Range is required");return this.set.some((r=>E(r,e)&&t.set.some((t=>E(t,e)&&r.every((r=>t.every((t=>r.intersects(t,e)))))))))}test(t){if(!t)return!1;if("string"==typeof t)try{t=new l(t,this.options)}catch(t){return!1}for(let e=0;e<this.set.length;e++)if(N(this.set[e],t,this.options))return!0;return!1}}t.exports=n;const o=new(r(5923))({max:1e3}),i=r(156),s=r(4074),a=r(3843),l=r(9405),{re:u,t:h,comparatorTrimReplace:c,tildeTrimReplace:p,caretTrimReplace:f}=r(887),m=t=>"<0.0.0-0"===t.value,v=t=>""===t.value,E=(t,e)=>{let r=!0;const n=t.slice();let o=n.pop();for(;r&&n.length;)r=n.every((t=>o.intersects(t,e))),o=n.pop();return r},g=(t,e)=>(a("comp",t,e),t=w(t,e),a("caret",t),t=y(t,e),a("tildes",t),t=O(t,e),a("xrange",t),t=T(t,e),a("stars",t),t),d=t=>!t||"x"===t.toLowerCase()||"*"===t,y=(t,e)=>t.trim().split(/\s+/).map((t=>$(t,e))).join(" "),$=(t,e)=>{const r=e.loose?u[h.TILDELOOSE]:u[h.TILDE];return t.replace(r,((e,r,n,o,i)=>{let s;return a("tilde",t,e,r,n,o,i),d(r)?s="":d(n)?s=`>=${r}.0.0 <${+r+1}.0.0-0`:d(o)?s=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:i?(a("replaceTilde pr",i),s=`>=${r}.${n}.${o}-${i} <${r}.${+n+1}.0-0`):s=`>=${r}.${n}.${o} <${r}.${+n+1}.0-0`,a("tilde return",s),s}))},w=(t,e)=>t.trim().split(/\s+/).map((t=>I(t,e))).join(" "),I=(t,e)=>{a("caret",t,e);const r=e.loose?u[h.CARETLOOSE]:u[h.CARET],n=e.includePrerelease?"-0":"";return t.replace(r,((e,r,o,i,s)=>{let l;return a("caret",t,e,r,o,i,s),d(r)?l="":d(o)?l=`>=${r}.0.0${n} <${+r+1}.0.0-0`:d(i)?l="0"===r?`>=${r}.${o}.0${n} <${r}.${+o+1}.0-0`:`>=${r}.${o}.0${n} <${+r+1}.0.0-0`:s?(a("replaceCaret pr",s),l="0"===r?"0"===o?`>=${r}.${o}.${i}-${s} <${r}.${o}.${+i+1}-0`:`>=${r}.${o}.${i}-${s} <${r}.${+o+1}.0-0`:`>=${r}.${o}.${i}-${s} <${+r+1}.0.0-0`):(a("no pr"),l="0"===r?"0"===o?`>=${r}.${o}.${i}${n} <${r}.${o}.${+i+1}-0`:`>=${r}.${o}.${i}${n} <${r}.${+o+1}.0-0`:`>=${r}.${o}.${i} <${+r+1}.0.0-0`),a("caret return",l),l}))},O=(t,e)=>(a("replaceXRanges",t,e),t.split(/\s+/).map((t=>R(t,e))).join(" ")),R=(t,e)=>{t=t.trim();const r=e.loose?u[h.XRANGELOOSE]:u[h.XRANGE];return t.replace(r,((r,n,o,i,s,l)=>{a("xRange",t,r,n,o,i,s,l);const u=d(o),h=u||d(i),c=h||d(s),p=c;return"="===n&&p&&(n=""),l=e.includePrerelease?"-0":"",u?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&p?(h&&(i=0),s=0,">"===n?(n=">=",h?(o=+o+1,i=0,s=0):(i=+i+1,s=0)):"<="===n&&(n="<",h?o=+o+1:i=+i+1),"<"===n&&(l="-0"),r=`${n+o}.${i}.${s}${l}`):h?r=`>=${o}.0.0${l} <${+o+1}.0.0-0`:c&&(r=`>=${o}.${i}.0${l} <${o}.${+i+1}.0-0`),a("xRange return",r),r}))},T=(t,e)=>(a("replaceStars",t,e),t.trim().replace(u[h.STAR],"")),x=(t,e)=>(a("replaceGTE0",t,e),t.trim().replace(u[e.includePrerelease?h.GTE0PRE:h.GTE0],"")),L=t=>(e,r,n,o,i,s,a,l,u,h,c,p,f)=>`${r=d(n)?"":d(o)?`>=${n}.0.0${t?"-0":""}`:d(i)?`>=${n}.${o}.0${t?"-0":""}`:s?`>=${r}`:`>=${r}${t?"-0":""}`} ${l=d(u)?"":d(h)?`<${+u+1}.0.0-0`:d(c)?`<${u}.${+h+1}.0-0`:p?`<=${u}.${h}.${c}-${p}`:t?`<${u}.${h}.${+c+1}-0`:`<=${l}`}`.trim(),N=(t,e,r)=>{for(let r=0;r<t.length;r++)if(!t[r].test(e))return!1;if(e.prerelease.length&&!r.includePrerelease){for(let r=0;r<t.length;r++)if(a(t[r].semver),t[r].semver!==s.ANY&&t[r].semver.prerelease.length>0){const n=t[r].semver;if(n.major===e.major&&n.minor===e.minor&&n.patch===e.patch)return!0}return!1}return!0}},9405:(t,e,r)=>{const n=r(3843),{MAX_LENGTH:o,MAX_SAFE_INTEGER:i}=r(8202),{re:s,t:a}=r(887),l=r(156),{compareIdentifiers:u}=r(1630);class h{constructor(t,e){if(e=l(e),t instanceof h){if(t.loose===!!e.loose&&t.includePrerelease===!!e.includePrerelease)return t;t=t.version}else if("string"!=typeof t)throw new TypeError(`Invalid Version: ${t}`);if(t.length>o)throw new TypeError(`version is longer than ${o} characters`);n("SemVer",t,e),this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease;const r=t.trim().match(e.loose?s[a.LOOSE]:s[a.FULL]);if(!r)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((t=>{if(/^[0-9]+$/.test(t)){const e=+t;if(e>=0&&e<i)return e}return t})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(n("SemVer.compare",this.version,this.options,t),!(t instanceof h)){if("string"==typeof t&&t===this.version)return 0;t=new h(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof h||(t=new h(t,this.options)),u(this.major,t.major)||u(this.minor,t.minor)||u(this.patch,t.patch)}comparePre(t){if(t instanceof h||(t=new h(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let e=0;do{const r=this.prerelease[e],o=t.prerelease[e];if(n("prerelease compare",e,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return u(r,o)}while(++e)}compareBuild(t){t instanceof h||(t=new h(t,this.options));let e=0;do{const r=this.build[e],o=t.build[e];if(n("prerelease compare",e,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return u(r,o)}while(++e)}inc(t,e){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",e);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",e);break;case"prepatch":this.prerelease.length=0,this.inc("patch",e),this.inc("pre",e);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",e),this.inc("pre",e);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{let t=this.prerelease.length;for(;--t>=0;)"number"==typeof this.prerelease[t]&&(this.prerelease[t]++,t=-2);-1===t&&this.prerelease.push(0)}e&&(this.prerelease[0]===e?isNaN(this.prerelease[1])&&(this.prerelease=[e,0]):this.prerelease=[e,0]);break;default:throw new Error(`invalid increment argument: ${t}`)}return this.format(),this.raw=this.version,this}}t.exports=h},953:(t,e,r)=>{const n=r(5497);t.exports=(t,e)=>{const r=n(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null}},2401:(t,e,r)=>{const n=r(8896),o=r(8378),i=r(9261),s=r(6647),a=r(3433),l=r(4622);t.exports=(t,e,r,u)=>{switch(e){case"===":return"object"==typeof t&&(t=t.version),"object"==typeof r&&(r=r.version),t===r;case"!==":return"object"==typeof t&&(t=t.version),"object"==typeof r&&(r=r.version),t!==r;case"":case"=":case"==":return n(t,r,u);case"!=":return o(t,r,u);case">":return i(t,r,u);case">=":return s(t,r,u);case"<":return a(t,r,u);case"<=":return l(t,r,u);default:throw new TypeError(`Invalid operator: ${e}`)}}},6839:(t,e,r)=>{const n=r(9405),o=r(5497),{re:i,t:s}=r(887);t.exports=(t,e)=>{if(t instanceof n)return t;if("number"==typeof t&&(t=String(t)),"string"!=typeof t)return null;let r=null;if((e=e||{}).rtl){let e;for(;(e=i[s.COERCERTL].exec(t))&&(!r||r.index+r[0].length!==t.length);)r&&e.index+e[0].length===r.index+r[0].length||(r=e),i[s.COERCERTL].lastIndex=e.index+e[1].length+e[2].length;i[s.COERCERTL].lastIndex=-1}else r=t.match(i[s.COERCE]);return null===r?null:o(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,e)}},6218:(t,e,r)=>{const n=r(9405);t.exports=(t,e,r)=>{const o=new n(t,r),i=new n(e,r);return o.compare(i)||o.compareBuild(i)}},9643:(t,e,r)=>{const n=r(3308);t.exports=(t,e)=>n(t,e,!0)},3308:(t,e,r)=>{const n=r(9405);t.exports=(t,e,r)=>new n(t,r).compare(new n(e,r))},3948:(t,e,r)=>{const n=r(5497),o=r(8896);t.exports=(t,e)=>{if(o(t,e))return null;{const r=n(t),o=n(e),i=r.prerelease.length||o.prerelease.length,s=i?"pre":"",a=i?"prerelease":"";for(const t in r)if(("major"===t||"minor"===t||"patch"===t)&&r[t]!==o[t])return s+t;return a}}},8896:(t,e,r)=>{const n=r(3308);t.exports=(t,e,r)=>0===n(t,e,r)},9261:(t,e,r)=>{const n=r(3308);t.exports=(t,e,r)=>n(t,e,r)>0},6647:(t,e,r)=>{const n=r(3308);t.exports=(t,e,r)=>n(t,e,r)>=0},5791:(t,e,r)=>{const n=r(9405);t.exports=(t,e,r,o)=>{"string"==typeof r&&(o=r,r=void 0);try{return new n(t,r).inc(e,o).version}catch(t){return null}}},3433:(t,e,r)=>{const n=r(3308);t.exports=(t,e,r)=>n(t,e,r)<0},4622:(t,e,r)=>{const n=r(3308);t.exports=(t,e,r)=>n(t,e,r)<=0},629:(t,e,r)=>{const n=r(9405);t.exports=(t,e)=>new n(t,e).major},9986:(t,e,r)=>{const n=r(9405);t.exports=(t,e)=>new n(t,e).minor},8378:(t,e,r)=>{const n=r(3308);t.exports=(t,e,r)=>0!==n(t,e,r)},5497:(t,e,r)=>{const{MAX_LENGTH:n}=r(8202),{re:o,t:i}=r(887),s=r(9405),a=r(156);t.exports=(t,e)=>{if(e=a(e),t instanceof s)return t;if("string"!=typeof t)return null;if(t.length>n)return null;if(!(e.loose?o[i.LOOSE]:o[i.FULL]).test(t))return null;try{return new s(t,e)}catch(t){return null}}},9800:(t,e,r)=>{const n=r(9405);t.exports=(t,e)=>new n(t,e).patch},4408:(t,e,r)=>{const n=r(5497);t.exports=(t,e)=>{const r=n(t,e);return r&&r.prerelease.length?r.prerelease:null}},762:(t,e,r)=>{const n=r(3308);t.exports=(t,e,r)=>n(e,t,r)},2743:(t,e,r)=>{const n=r(6218);t.exports=(t,e)=>t.sort(((t,r)=>n(r,t,e)))},5312:(t,e,r)=>{const n=r(4355);t.exports=(t,e,r)=>{try{e=new n(e,r)}catch(t){return!1}return e.test(t)}},2354:(t,e,r)=>{const n=r(6218);t.exports=(t,e)=>t.sort(((t,r)=>n(t,r,e)))},4512:(t,e,r)=>{const n=r(5497);t.exports=(t,e)=>{const r=n(t,e);return r?r.version:null}},4770:(t,e,r)=>{const n=r(887);t.exports={re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:r(8202).SEMVER_SPEC_VERSION,SemVer:r(9405),compareIdentifiers:r(1630).compareIdentifiers,rcompareIdentifiers:r(1630).rcompareIdentifiers,parse:r(5497),valid:r(4512),clean:r(953),inc:r(5791),diff:r(3948),major:r(629),minor:r(9986),patch:r(9800),prerelease:r(4408),compare:r(3308),rcompare:r(762),compareLoose:r(9643),compareBuild:r(6218),sort:r(2354),rsort:r(2743),gt:r(9261),lt:r(3433),eq:r(8896),neq:r(8378),gte:r(6647),lte:r(4622),cmp:r(2401),coerce:r(6839),Comparator:r(4074),Range:r(4355),satisfies:r(5312),toComparators:r(9663),maxSatisfying:r(4931),minSatisfying:r(5891),minVersion:r(4925),validRange:r(9965),outside:r(3260),gtr:r(715),ltr:r(6),intersects:r(9560),simplifyRange:r(7795),subset:r(7732)}},8202:t=>{const e=Number.MAX_SAFE_INTEGER||9007199254740991;t.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:e,MAX_SAFE_COMPONENT_LENGTH:16}},3843:t=>{const e="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};t.exports=e},1630:t=>{const e=/^[0-9]+$/,r=(t,r)=>{const n=e.test(t),o=e.test(r);return n&&o&&(t=+t,r=+r),t===r?0:n&&!o?-1:o&&!n?1:t<r?-1:1};t.exports={compareIdentifiers:r,rcompareIdentifiers:(t,e)=>r(e,t)}},156:t=>{const e=["includePrerelease","loose","rtl"];t.exports=t=>t?"object"!=typeof t?{loose:!0}:e.filter((e=>t[e])).reduce(((t,e)=>(t[e]=!0,t)),{}):{}},887:(t,e,r)=>{const{MAX_SAFE_COMPONENT_LENGTH:n}=r(8202),o=r(3843),i=(e=t.exports={}).re=[],s=e.src=[],a=e.t={};let l=0;const u=(t,e,r)=>{const n=l++;o(n,e),a[t]=n,s[n]=e,i[n]=new RegExp(e,r?"g":void 0)};u("NUMERICIDENTIFIER","0|[1-9]\\d*"),u("NUMERICIDENTIFIERLOOSE","[0-9]+"),u("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),u("MAINVERSION",`(${s[a.NUMERICIDENTIFIER]})\\.(${s[a.NUMERICIDENTIFIER]})\\.(${s[a.NUMERICIDENTIFIER]})`),u("MAINVERSIONLOOSE",`(${s[a.NUMERICIDENTIFIERLOOSE]})\\.(${s[a.NUMERICIDENTIFIERLOOSE]})\\.(${s[a.NUMERICIDENTIFIERLOOSE]})`),u("PRERELEASEIDENTIFIER",`(?:${s[a.NUMERICIDENTIFIER]}|${s[a.NONNUMERICIDENTIFIER]})`),u("PRERELEASEIDENTIFIERLOOSE",`(?:${s[a.NUMERICIDENTIFIERLOOSE]}|${s[a.NONNUMERICIDENTIFIER]})`),u("PRERELEASE",`(?:-(${s[a.PRERELEASEIDENTIFIER]}(?:\\.${s[a.PRERELEASEIDENTIFIER]})*))`),u("PRERELEASELOOSE",`(?:-?(${s[a.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${s[a.PRERELEASEIDENTIFIERLOOSE]})*))`),u("BUILDIDENTIFIER","[0-9A-Za-z-]+"),u("BUILD",`(?:\\+(${s[a.BUILDIDENTIFIER]}(?:\\.${s[a.BUILDIDENTIFIER]})*))`),u("FULLPLAIN",`v?${s[a.MAINVERSION]}${s[a.PRERELEASE]}?${s[a.BUILD]}?`),u("FULL",`^${s[a.FULLPLAIN]}$`),u("LOOSEPLAIN",`[v=\\s]*${s[a.MAINVERSIONLOOSE]}${s[a.PRERELEASELOOSE]}?${s[a.BUILD]}?`),u("LOOSE",`^${s[a.LOOSEPLAIN]}$`),u("GTLT","((?:<|>)?=?)"),u("XRANGEIDENTIFIERLOOSE",`${s[a.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),u("XRANGEIDENTIFIER",`${s[a.NUMERICIDENTIFIER]}|x|X|\\*`),u("XRANGEPLAIN",`[v=\\s]*(${s[a.XRANGEIDENTIFIER]})(?:\\.(${s[a.XRANGEIDENTIFIER]})(?:\\.(${s[a.XRANGEIDENTIFIER]})(?:${s[a.PRERELEASE]})?${s[a.BUILD]}?)?)?`),u("XRANGEPLAINLOOSE",`[v=\\s]*(${s[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[a.XRANGEIDENTIFIERLOOSE]})(?:${s[a.PRERELEASELOOSE]})?${s[a.BUILD]}?)?)?`),u("XRANGE",`^${s[a.GTLT]}\\s*${s[a.XRANGEPLAIN]}$`),u("XRANGELOOSE",`^${s[a.GTLT]}\\s*${s[a.XRANGEPLAINLOOSE]}$`),u("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),u("COERCERTL",s[a.COERCE],!0),u("LONETILDE","(?:~>?)"),u("TILDETRIM",`(\\s*)${s[a.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",u("TILDE",`^${s[a.LONETILDE]}${s[a.XRANGEPLAIN]}$`),u("TILDELOOSE",`^${s[a.LONETILDE]}${s[a.XRANGEPLAINLOOSE]}$`),u("LONECARET","(?:\\^)"),u("CARETTRIM",`(\\s*)${s[a.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",u("CARET",`^${s[a.LONECARET]}${s[a.XRANGEPLAIN]}$`),u("CARETLOOSE",`^${s[a.LONECARET]}${s[a.XRANGEPLAINLOOSE]}$`),u("COMPARATORLOOSE",`^${s[a.GTLT]}\\s*(${s[a.LOOSEPLAIN]})$|^$`),u("COMPARATOR",`^${s[a.GTLT]}\\s*(${s[a.FULLPLAIN]})$|^$`),u("COMPARATORTRIM",`(\\s*)${s[a.GTLT]}\\s*(${s[a.LOOSEPLAIN]}|${s[a.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",u("HYPHENRANGE",`^\\s*(${s[a.XRANGEPLAIN]})\\s+-\\s+(${s[a.XRANGEPLAIN]})\\s*$`),u("HYPHENRANGELOOSE",`^\\s*(${s[a.XRANGEPLAINLOOSE]})\\s+-\\s+(${s[a.XRANGEPLAINLOOSE]})\\s*$`),u("STAR","(<|>)?=?\\s*\\*"),u("GTE0","^\\s*>=\\s*0.0.0\\s*$"),u("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")},715:(t,e,r)=>{const n=r(3260);t.exports=(t,e,r)=>n(t,e,">",r)},9560:(t,e,r)=>{const n=r(4355);t.exports=(t,e,r)=>(t=new n(t,r),e=new n(e,r),t.intersects(e))},6:(t,e,r)=>{const n=r(3260);t.exports=(t,e,r)=>n(t,e,"<",r)},4931:(t,e,r)=>{const n=r(9405),o=r(4355);t.exports=(t,e,r)=>{let i=null,s=null,a=null;try{a=new o(e,r)}catch(t){return null}return t.forEach((t=>{a.test(t)&&(i&&-1!==s.compare(t)||(i=t,s=new n(i,r)))})),i}},5891:(t,e,r)=>{const n=r(9405),o=r(4355);t.exports=(t,e,r)=>{let i=null,s=null,a=null;try{a=new o(e,r)}catch(t){return null}return t.forEach((t=>{a.test(t)&&(i&&1!==s.compare(t)||(i=t,s=new n(i,r)))})),i}},4925:(t,e,r)=>{const n=r(9405),o=r(4355),i=r(9261);t.exports=(t,e)=>{t=new o(t,e);let r=new n("0.0.0");if(t.test(r))return r;if(r=new n("0.0.0-0"),t.test(r))return r;r=null;for(let e=0;e<t.set.length;++e){const o=t.set[e];let s=null;o.forEach((t=>{const e=new n(t.semver.version);switch(t.operator){case">":0===e.prerelease.length?e.patch++:e.prerelease.push(0),e.raw=e.format();case"":case">=":s&&!i(e,s)||(s=e);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${t.operator}`)}})),!s||r&&!i(r,s)||(r=s)}return r&&t.test(r)?r:null}},3260:(t,e,r)=>{const n=r(9405),o=r(4074),{ANY:i}=o,s=r(4355),a=r(5312),l=r(9261),u=r(3433),h=r(4622),c=r(6647);t.exports=(t,e,r,p)=>{let f,m,v,E,g;switch(t=new n(t,p),e=new s(e,p),r){case">":f=l,m=h,v=u,E=">",g=">=";break;case"<":f=u,m=c,v=l,E="<",g="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(a(t,e,p))return!1;for(let r=0;r<e.set.length;++r){const n=e.set[r];let s=null,a=null;if(n.forEach((t=>{t.semver===i&&(t=new o(">=0.0.0")),s=s||t,a=a||t,f(t.semver,s.semver,p)?s=t:v(t.semver,a.semver,p)&&(a=t)})),s.operator===E||s.operator===g)return!1;if((!a.operator||a.operator===E)&&m(t,a.semver))return!1;if(a.operator===g&&v(t,a.semver))return!1}return!0}},7795:(t,e,r)=>{const n=r(5312),o=r(3308);t.exports=(t,e,r)=>{const i=[];let s=null,a=null;const l=t.sort(((t,e)=>o(t,e,r)));for(const t of l)n(t,e,r)?(a=t,s||(s=t)):(a&&i.push([s,a]),a=null,s=null);s&&i.push([s,null]);const u=[];for(const[t,e]of i)t===e?u.push(t):e||t!==l[0]?e?t===l[0]?u.push(`<=${e}`):u.push(`${t} - ${e}`):u.push(`>=${t}`):u.push("*");const h=u.join(" || "),c="string"==typeof e.raw?e.raw:String(e);return h.length<c.length?h:e}},7732:(t,e,r)=>{const n=r(4355),o=r(4074),{ANY:i}=o,s=r(5312),a=r(3308),l=(t,e,r)=>{if(t===e)return!0;if(1===t.length&&t[0].semver===i){if(1===e.length&&e[0].semver===i)return!0;t=r.includePrerelease?[new o(">=0.0.0-0")]:[new o(">=0.0.0")]}if(1===e.length&&e[0].semver===i){if(r.includePrerelease)return!0;e=[new o(">=0.0.0")]}const n=new Set;let l,c,p,f,m,v,E;for(const e of t)">"===e.operator||">="===e.operator?l=u(l,e,r):"<"===e.operator||"<="===e.operator?c=h(c,e,r):n.add(e.semver);if(n.size>1)return null;if(l&&c){if(p=a(l.semver,c.semver,r),p>0)return null;if(0===p&&(">="!==l.operator||"<="!==c.operator))return null}for(const t of n){if(l&&!s(t,String(l),r))return null;if(c&&!s(t,String(c),r))return null;for(const n of e)if(!s(t,String(n),r))return!1;return!0}let g=!(!c||r.includePrerelease||!c.semver.prerelease.length)&&c.semver,d=!(!l||r.includePrerelease||!l.semver.prerelease.length)&&l.semver;g&&1===g.prerelease.length&&"<"===c.operator&&0===g.prerelease[0]&&(g=!1);for(const t of e){if(E=E||">"===t.operator||">="===t.operator,v=v||"<"===t.operator||"<="===t.operator,l)if(d&&t.semver.prerelease&&t.semver.prerelease.length&&t.semver.major===d.major&&t.semver.minor===d.minor&&t.semver.patch===d.patch&&(d=!1),">"===t.operator||">="===t.operator){if(f=u(l,t,r),f===t&&f!==l)return!1}else if(">="===l.operator&&!s(l.semver,String(t),r))return!1;if(c)if(g&&t.semver.prerelease&&t.semver.prerelease.length&&t.semver.major===g.major&&t.semver.minor===g.minor&&t.semver.patch===g.patch&&(g=!1),"<"===t.operator||"<="===t.operator){if(m=h(c,t,r),m===t&&m!==c)return!1}else if("<="===c.operator&&!s(c.semver,String(t),r))return!1;if(!t.operator&&(c||l)&&0!==p)return!1}return!(l&&v&&!c&&0!==p||c&&E&&!l&&0!==p||d||g)},u=(t,e,r)=>{if(!t)return e;const n=a(t.semver,e.semver,r);return n>0?t:n<0||">"===e.operator&&">="===t.operator?e:t},h=(t,e,r)=>{if(!t)return e;const n=a(t.semver,e.semver,r);return n<0?t:n>0||"<"===e.operator&&"<="===t.operator?e:t};t.exports=(t,e,r={})=>{if(t===e)return!0;t=new n(t,r),e=new n(e,r);let o=!1;t:for(const n of t.set){for(const t of e.set){const e=l(n,t,r);if(o=o||null!==e,e)continue t}if(o)return!1}return!0}},9663:(t,e,r)=>{const n=r(4355);t.exports=(t,e)=>new n(t,e).set.map((t=>t.map((t=>t.value)).join(" ").trim().split(" ")))},9965:(t,e,r)=>{const n=r(4355);t.exports=(t,e)=>{try{return new n(t,e).range||"*"}catch(t){return null}}},7968:(t,e,r)=>{const n=r(1577).R;e.s=function(t){if(t||(t=1),!r.y.meta||!r.y.meta.url)throw console.error("__system_context__",r.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");r.p=n(r.y.meta.url,t)}},1577:(t,e,r)=>{e.R=function(t,e){var r=document.createElement("a");r.href=t;for(var n="/"===r.pathname[0]?r.pathname:"/"+r.pathname,o=0,i=n.length;o!==e&&i>=0;)"/"===n[--i]&&o++;if(o!==e)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+e+") is greater than the number of directories ("+o+") in the URL path "+t);var s=n.slice(0,i+1);return r.protocol+"//"+r.host+s};Number.isInteger},9961:t=>{"use strict";t.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}},2138:(t,e,r)=>{"use strict";function n(t){var e=this;if(e instanceof n||(e=new n),e.tail=null,e.head=null,e.length=0,t&&"function"==typeof t.forEach)t.forEach((function(t){e.push(t)}));else if(arguments.length>0)for(var r=0,o=arguments.length;r<o;r++)e.push(arguments[r]);return e}function o(t,e){t.tail=new s(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function i(t,e){t.head=new s(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function s(t,e,r,n){if(!(this instanceof s))return new s(t,e,r,n);this.list=n,this.value=t,e?(e.next=this,this.prev=e):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}t.exports=n,n.Node=s,n.create=n,n.prototype.removeNode=function(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");var e=t.next,r=t.prev;return e&&(e.prev=r),r&&(r.next=e),t===this.head&&(this.head=e),t===this.tail&&(this.tail=r),t.list.length--,t.next=null,t.prev=null,t.list=null,e},n.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var e=this.head;t.list=this,t.next=e,e&&(e.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}},n.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var e=this.tail;t.list=this,t.prev=e,e&&(e.next=t),this.tail=t,this.head||(this.head=t),this.length++}},n.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)o(this,arguments[t]);return this.length},n.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)i(this,arguments[t]);return this.length},n.prototype.pop=function(){if(this.tail){var t=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,t}},n.prototype.shift=function(){if(this.head){var t=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,t}},n.prototype.forEach=function(t,e){e=e||this;for(var r=this.head,n=0;null!==r;n++)t.call(e,r.value,n,this),r=r.next},n.prototype.forEachReverse=function(t,e){e=e||this;for(var r=this.tail,n=this.length-1;null!==r;n--)t.call(e,r.value,n,this),r=r.prev},n.prototype.get=function(t){for(var e=0,r=this.head;null!==r&&e<t;e++)r=r.next;if(e===t&&null!==r)return r.value},n.prototype.getReverse=function(t){for(var e=0,r=this.tail;null!==r&&e<t;e++)r=r.prev;if(e===t&&null!==r)return r.value},n.prototype.map=function(t,e){e=e||this;for(var r=new n,o=this.head;null!==o;)r.push(t.call(e,o.value,this)),o=o.next;return r},n.prototype.mapReverse=function(t,e){e=e||this;for(var r=new n,o=this.tail;null!==o;)r.push(t.call(e,o.value,this)),o=o.prev;return r},n.prototype.reduce=function(t,e){var r,n=this.head;if(arguments.length>1)r=e;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");n=this.head.next,r=this.head.value}for(var o=0;null!==n;o++)r=t(r,n.value,o),n=n.next;return r},n.prototype.reduceReverse=function(t,e){var r,n=this.tail;if(arguments.length>1)r=e;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");n=this.tail.prev,r=this.tail.value}for(var o=this.length-1;null!==n;o--)r=t(r,n.value,o),n=n.prev;return r},n.prototype.toArray=function(){for(var t=new Array(this.length),e=0,r=this.head;null!==r;e++)t[e]=r.value,r=r.next;return t},n.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,r=this.tail;null!==r;e++)t[e]=r.value,r=r.prev;return t},n.prototype.slice=function(t,e){(e=e||this.length)<0&&(e+=this.length),(t=t||0)<0&&(t+=this.length);var r=new n;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var o=0,i=this.head;null!==i&&o<t;o++)i=i.next;for(;null!==i&&o<e;o++,i=i.next)r.push(i.value);return r},n.prototype.sliceReverse=function(t,e){(e=e||this.length)<0&&(e+=this.length),(t=t||0)<0&&(t+=this.length);var r=new n;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var o=this.length,i=this.tail;null!==i&&o>e;o--)i=i.prev;for(;null!==i&&o>t;o--,i=i.prev)r.push(i.value);return r},n.prototype.splice=function(t,e,...r){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var n=0,o=this.head;null!==o&&n<t;n++)o=o.next;var i,a,l,u,h=[];for(n=0;o&&n<e;n++)h.push(o.value),o=this.removeNode(o);for(null===o&&(o=this.tail),o!==this.head&&o!==this.tail&&(o=o.prev),n=0;n<r.length;n++)i=this,a=o,l=r[n],u=void 0,null===(u=a===i.head?new s(l,null,a,i):new s(l,a,a.next,i)).next&&(i.tail=u),null===u.prev&&(i.head=u),i.length++,o=u;return h},n.prototype.reverse=function(){for(var t=this.head,e=this.tail,r=t;null!==r;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=e,this.tail=t,this};try{r(9961)(n)}catch(t){}},9688:t=>{"use strict";t.exports=r},7064:t=>{"use strict";t.exports=n}},o={};function i(e){var r=o[e];if(void 0!==r)return r.exports;var n=o[e]={exports:{}};return t[e].call(n.exports,n,n.exports,i),n.exports}i.y=e,i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var r in e)i.o(e,r)&&!i.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t;i.g.importScripts&&(t=i.g.location+"");var e=i.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var r=e.getElementsByTagName("script");r.length&&(t=r[r.length-1].src)}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i.p=t})();var s={};return(0,i(7968).s)(1),(()=>{"use strict";function t(t){return(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate())-Date.UTC(t.getUTCFullYear(),0,0))/24/60/60/1e3}function e(t,e){var r=t.toISOString(),n=e.toISOString();return r.slice(0,r.indexOf("T"))===n.slice(0,n.indexOf("T"))}function r(r){var n=new Date,o=new Date(r),i=n.getUTCMonth()-o.getUTCMonth(),s=n.getUTCDate()-o.getUTCDate(),a=n.getUTCFullYear()-o.getUTCFullYear();(i<0||0===i&&s<0)&&a--;var l=i>=0?i:i+12;s<0&&l--;var u=l>0?"".concat(l," mo"):"",h=t(n)-t(o);h<0&&(h+=365);var c=Math.floor(h/7),p=h-7*c;return 0===a?e(n,o)?"Today":c<4||0===c?"".concat(h," day"):p>0?"".concat(c," wk ").concat(p," d"):"".concat(c," week"):a<2?"".concat(u," ").concat(a," yr").trim():a<18?"".concat(a," yr ").concat(u).trim():"".concat(a," years")}i.r(s),i.d(s,{age:()=>r,daysIntoYear:()=>t,formatDate:()=>R,formatDatetime:()=>x,formatTime:()=>T,isOmrsDateStrict:()=>f,isOmrsDateToday:()=>m,isSameDay:()=>e,isVersionSatisfied:()=>C,parseDate:()=>I,retry:()=>U,toDateObjectStrict:()=>v,toOmrsDateFormat:()=>w,toOmrsDayDateFormat:()=>y,toOmrsIsoString:()=>E,toOmrsTimeString:()=>d,toOmrsTimeString24:()=>g,toOmrsYearlessDateFormat:()=>$,translateFrom:()=>A});var n=i(9688),o=i(9014),a=i.n(o),l=i(4332),u=i.n(l);function h(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function c(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),n.forEach((function(e){h(t,e,r[e])}))}return t}n.default.extend(a()),n.default.extend(u());var p="YYYY-MM-DDTHH:mm:ss.SSSZZ";function f(t){return null!=t&&28===t.trim().length&&"T"===(t=t.trim())[10]&&":"===t[13]&&":"===t[16]&&"."===t[19]&&"+"===t[23]&&":"!==t[26]&&(0,n.default)(t,p).isValid()}function m(t){return(0,n.default)(t).isToday()}function v(t){return f(t)?(0,n.default)(t,p).toDate():null}function E(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=(0,n.default)(t);return e&&(r=r.utc()),r.format(p)}function g(t){return(0,n.default)(t).format("HH:mm")}function d(t){return n.default.utc(t).format("HH:mm A")}function y(t){return w(t,"DD - MMM - YYYY")}function $(t){return w(t,"DD-MMM")}function w(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MMM-DD";return(0,n.default)(t).format(e)}function I(t){return(0,n.default)(t).toDate()}var O={mode:"standard",time:"for today",day:!0,year:!0};function R(t,e){var r,o=c({},O,e),i=o.mode,s=o.time,a=o.day,l=o.year,u={year:l?"numeric":void 0,month:"short",day:a?"2-digit":void 0},h=L(),p=(0,n.default)(t).isToday();if(p)r=(r=new Intl.RelativeTimeFormat(h,{numeric:"auto"}).format(0,"day"))[0].toLocaleUpperCase(h)+r.slice(1);else if("en"==h&&(h="en-GB"),r=t.toLocaleDateString(h,u),"en-GB"==h&&"standard"==i&&l&&a&&(r=r.replace(/ /g,"-")),"wide"==i&&(r=r.replace(/ /g," — "),/ru.*/.test(h))){var f=r.length;r=r.slice(0,f-5)+r.slice(f-5).replace(" — "," ")}return(!0===s||p&&"for today"===s)&&(r+=", ".concat(T(t))),r}function T(t){return t.toLocaleTimeString(L(),{hour:"2-digit",minute:"2-digit"})}function x(t,e){return R(t,c({},e,{time:!0}))}function L(){var t=window.i18next.language;return"ht"===(t=t.replace("_","-"))&&(t="fr-HT"),t}var N=i(7064);function S(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function A(t,e,r,n){return(N.default.default||N.default).t(e,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),n.forEach((function(e){S(t,e,r[e])}))}return t}({ns:t,defaultValue:r},n))}var b=i(4770);function D(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function P(t){var e,r,n=(e=t.split("."),r=3,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i=[],s=!0,a=!1;try{for(r=r.call(t);!(s=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);s=!0);}catch(t){a=!0,o=t}finally{try{s||null==r.return||r.return()}finally{if(a)throw o}}return i}}(e,r)||function(t,e){if(t){if("string"==typeof t)return D(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?D(t,e):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=n[0],i=n[1],s=n[2];return"".concat(o,".").concat(i,".").concat(s)}function C(t,e){var r=function(t){var e=t.indexOf("-");if(e>=0){var r=P(t.slice(0,e)),n=t.slice(e+1);return"".concat(r,"-").concat(n)}return P(t)}(e);return b.satisfies(r,t,{includePrerelease:!0})}var M=i(1602),j=i.n(M);function G(t,e,r,n,o,i,s){try{var a=t[i](s),l=a.value}catch(t){return void r(t)}a.done?e(l):Promise.resolve(l).then(n,o)}function F(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function s(t){G(i,n,o,s,a,"next",t)}function a(t){G(i,n,o,s,a,"throw",t)}s(void 0)}))}}function U(t){return _.apply(this,arguments)}function _(){return _=F(j().mark((function t(e){var r,n,o,i,s,a,l=arguments;return j().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=l.length>1&&void 0!==l[1]?l[1]:{},n=r.shouldRetry,o=r.getDelay,i=r.onError,n=null!=n?n:function(t){return k(t,5)},o=null!=o?o:function(t){return Y(t,1e3)},s=0,a=void 0;case 6:return t.prev=6,t.next=9,X(o(s));case 9:return t.next=11,e();case 11:return t.abrupt("return",t.sent);case 14:t.prev=14,t.t0=t.catch(6),null==i||i(t.t0,s),a=t.t0;case 18:if(n(s++)){t.next=6;break}case 19:throw a;case 20:case"end":return t.stop()}}),t,null,[[6,14]])}))),_.apply(this,arguments)}function k(t,e){return t<=e}function Y(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=r?t+1:t;return e*Math.pow(2,n)}function X(t){return H.apply(this,arguments)}function H(){return(H=F(j().mark((function t(e){return j().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e<=0)){t.next=2;break}return t.abrupt("return");case 2:return t.abrupt("return",new Promise((function(t){return setTimeout(t,e)})));case 3:case"end":return t.stop()}}),t)})))).apply(this,arguments)}})(),s})())}}}));
|
|
2
2
|
//# sourceMappingURL=openmrs-esm-utils.js.map
|