@openmrs/esm-patient-registration-app 4.0.2-pre.693 → 4.0.2-pre.697
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +7 -7
- package/dist/470.js +1 -1
- package/dist/{101.js → 504.js} +1 -1
- package/dist/658.js +1 -1
- package/dist/686.js +1 -1
- package/dist/858.js +1 -1
- package/dist/main.js +1 -1
- package/dist/openmrs-esm-patient-registration-app.js.buildmanifest.json +36 -36
- package/package.json +2 -2
- package/src/config-schema.ts +5 -0
- package/src/patient-registration/field/address/address-hierarchy.component.tsx +6 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
assets by chunk
|
|
1
|
+
assets by chunk 919 KiB (id hint: vendors)
|
|
2
2
|
assets by status [1m[33m652 KiB[39m[22m [1m[33m[big][39m[22m
|
|
3
3
|
asset [1m[33m858.js[39m[22m [1m[33m407 KiB[39m[22m [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m [1m[33m[big][39m[22m (id hint: vendors) 1 related asset
|
|
4
4
|
asset [1m[33m430.js[39m[22m [1m[33m244 KiB[39m[22m [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m [1m[33m[big][39m[22m (id hint: vendors) 1 related asset
|
|
5
|
-
asset [1m[
|
|
5
|
+
asset [1m[32m504.js[39m[22m 91.5 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (id hint: vendors)
|
|
6
6
|
asset [1m[32m854.js[39m[22m 70.1 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (id hint: vendors) 1 related asset
|
|
7
7
|
asset [1m[32m34.js[39m[22m 49.6 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (id hint: vendors) 1 related asset
|
|
8
|
-
asset [1m[32m470.js[39m[22m 32.
|
|
8
|
+
asset [1m[32m470.js[39m[22m 32.5 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (id hint: vendors) 1 related asset
|
|
9
9
|
asset [1m[32m100.js[39m[22m 19.7 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (id hint: vendors)
|
|
10
10
|
asset [1m[32m375.js[39m[22m 3.93 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (id hint: vendors)
|
|
11
11
|
+ 12 assets
|
|
12
|
-
orphan modules 3.86 MiB [1m[33m[orphan][39m[22m
|
|
12
|
+
orphan modules 3.86 MiB [1m[33m[orphan][39m[22m 620 modules
|
|
13
13
|
runtime modules 38 KiB 28 modules
|
|
14
14
|
built modules 3.56 MiB (javascript) 168 bytes (share-init) 168 bytes (consume-shared) [1m[33m[built][39m[22m
|
|
15
|
-
modules by path [1m../../node_modules/[39m[22m 3.
|
|
16
|
-
modules by path [1m./[39m[22m
|
|
15
|
+
modules by path [1m../../node_modules/[39m[22m 3.22 MiB 406 modules
|
|
16
|
+
modules by path [1m./[39m[22m 357 KiB
|
|
17
17
|
modules by path [1m./src/[39m[22m 353 KiB 24 modules
|
|
18
18
|
modules by path [1m./translations/[39m[22m 3.32 KiB 2 modules
|
|
19
19
|
provide-module modules 168 bytes
|
|
@@ -31,4 +31,4 @@ Assets:
|
|
|
31
31
|
858.js (407 KiB)
|
|
32
32
|
430.js (244 KiB)[39m[22m
|
|
33
33
|
|
|
34
|
-
webpack 5.74.0 compiled with [1m[33m1 warning[39m[22m in
|
|
34
|
+
webpack 5.74.0 compiled with [1m[33m1 warning[39m[22m in 169530 ms
|
package/dist/470.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see 470.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_openmrs_esm_patient_registration_app=self.webpackChunk_openmrs_esm_patient_registration_app||[]).push([[470],{4649:(t,e,r)=>{r.d(e,{Z:()=>i});var n=r(8804);const o=function(t,e){for(var r=t.length;r--;)if((0,n.Z)(t[r][0],e))return r;return-1};var u=Array.prototype.splice;function a(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}a.prototype.clear=function(){this.__data__=[],this.size=0},a.prototype.delete=function(t){var e=this.__data__,r=o(e,t);return!(r<0||(r==e.length-1?e.pop():u.call(e,r,1),--this.size,0))},a.prototype.get=function(t){var e=this.__data__,r=o(e,t);return r<0?void 0:e[r][1]},a.prototype.has=function(t){return o(this.__data__,t)>-1},a.prototype.set=function(t,e){var r=this.__data__,n=o(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};const i=a},8896:(t,e,r)=>{r.d(e,{Z:()=>u});var n=r(5546),o=r(3221);const u=(0,n.Z)(o.Z,"Map")},3703:(t,e,r)=>{r.d(e,{Z:()=>d});const n=(0,r(5546).Z)(Object,"create");var o=Object.prototype.hasOwnProperty;var u=Object.prototype.hasOwnProperty;function a(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}a.prototype.clear=function(){this.__data__=n?n(null):{},this.size=0},a.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},a.prototype.get=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(e,t)?e[t]:void 0},a.prototype.has=function(t){var e=this.__data__;return n?void 0!==e[t]:u.call(e,t)},a.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this};const i=a;var c=r(4649),f=r(8896);const s=function(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map};function l(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}l.prototype.clear=function(){this.size=0,this.__data__={hash:new i,map:new(f.Z||c.Z),string:new i}},l.prototype.delete=function(t){var e=s(this,t).delete(t);return this.size-=e?1:0,e},l.prototype.get=function(t){return s(this,t).get(t)},l.prototype.has=function(t){return s(this,t).has(t)},l.prototype.set=function(t,e){var r=s(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};const d=l},6218:(t,e,r)=>{r.d(e,{Z:()=>i});var n=r(4649);var o=r(8896),u=r(3703);function a(t){var e=this.__data__=new n.Z(t);this.size=e.size}a.prototype.clear=function(){this.__data__=new n.Z,this.size=0},a.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},a.prototype.get=function(t){return this.__data__.get(t)},a.prototype.has=function(t){return this.__data__.has(t)},a.prototype.set=function(t,e){var r=this.__data__;if(r instanceof n.Z){var a=r.__data__;if(!o.Z||a.length<199)return a.push([t,e]),this.size=++r.size,this;r=this.__data__=new u.Z(a)}return r.set(t,e),this.size=r.size,this};const i=a},187:(t,e,r)=>{r.d(e,{Z:()=>n});const n=r(3221).Z.Symbol},8282:(t,e,r)=>{r.d(e,{Z:()=>n});const n=r(3221).Z.Uint8Array},848:(t,e,r)=>{r.d(e,{Z:()=>f});var n=r(4248),o=r(7885),u=r(4975),a=r(6401),i=r(8127),c=Object.prototype.hasOwnProperty;const f=function(t,e){var r=(0,o.Z)(t),f=!r&&(0,n.Z)(t),s=!r&&!f&&(0,u.Z)(t),l=!r&&!f&&!s&&(0,i.Z)(t),d=r||f||s||l,v=d?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],p=v.length;for(var h in t)!e&&!c.call(t,h)||d&&("length"==h||s&&("offset"==h||"parent"==h)||l&&("buffer"==h||"byteLength"==h||"byteOffset"==h)||(0,a.Z)(h,p))||v.push(h);return v}},5598:(t,e,r)=>{r.d(e,{Z:()=>n});const n=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}},5810:(t,e,r)=>{r.d(e,{Z:()=>n});const n=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}},2938:(t,e,r)=>{r.d(e,{Z:()=>u});var n=r(5810),o=r(7885);const u=function(t,e,r){var u=e(t);return(0,o.Z)(t)?u:(0,n.Z)(u,r(t))}},9001:(t,e,r)=>{r.d(e,{Z:()=>s});var n=r(187),o=Object.prototype,u=o.hasOwnProperty,a=o.toString,i=n.Z?n.Z.toStringTag:void 0;var c=Object.prototype.toString;var f=n.Z?n.Z.toStringTag:void 0;const s=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":f&&f in Object(t)?function(t){var e=u.call(t,i),r=t[i];try{t[i]=void 0;var n=!0}catch(t){}var o=a.call(t);return n&&(e?t[i]=r:delete t[i]),o}(t):function(t){return c.call(t)}(t)}},2342:(t,e,r)=>{r.d(e,{Z:()=>M});var n=r(6218),o=r(3703);function u(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new o.Z;++e<r;)this.add(t[e])}u.prototype.add=u.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},u.prototype.has=function(t){return this.__data__.has(t)};const a=u,i=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1},c=function(t,e,r,n,o,u){var c=1&r,f=t.length,s=e.length;if(f!=s&&!(c&&s>f))return!1;var l=u.get(t),d=u.get(e);if(l&&d)return l==e&&d==t;var v=-1,p=!0,h=2&r?new a:void 0;for(u.set(t,e),u.set(e,t);++v<f;){var Z=t[v],b=e[v];if(n)var y=c?n(b,Z,v,e,t,u):n(Z,b,v,t,e,u);if(void 0!==y){if(y)continue;p=!1;break}if(h){if(!i(e,(function(t,e){if(a=e,!h.has(a)&&(Z===t||o(Z,t,r,n,u)))return h.push(e);var a}))){p=!1;break}}else if(Z!==b&&!o(Z,b,r,n,u)){p=!1;break}}return u.delete(t),u.delete(e),p};var f=r(187),s=r(8282),l=r(8804),d=r(5500),v=r(3249),p=f.Z?f.Z.prototype:void 0,h=p?p.valueOf:void 0;var Z=r(7245),b=Object.prototype.hasOwnProperty;var y=r(8649),g=r(7885),_=r(4975),j=r(8127),w="[object Arguments]",m="[object Array]",O="[object Object]",x=Object.prototype.hasOwnProperty;const A=function(t,e,r,o,u,a){var i=(0,g.Z)(t),f=(0,g.Z)(e),p=i?m:(0,y.Z)(t),A=f?m:(0,y.Z)(e),E=(p=p==w?O:p)==O,S=(A=A==w?O:A)==O,R=p==A;if(R&&(0,_.Z)(t)){if(!(0,_.Z)(e))return!1;i=!0,E=!1}if(R&&!E)return a||(a=new n.Z),i||(0,j.Z)(t)?c(t,e,r,o,u,a):function(t,e,r,n,o,u,a){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!u(new s.Z(t),new s.Z(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return(0,l.Z)(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var i=d.Z;case"[object Set]":var f=1&n;if(i||(i=v.Z),t.size!=e.size&&!f)return!1;var p=a.get(t);if(p)return p==e;n|=2,a.set(t,e);var Z=c(i(t),i(e),n,o,u,a);return a.delete(t),Z;case"[object Symbol]":if(h)return h.call(t)==h.call(e)}return!1}(t,e,p,r,o,u,a);if(!(1&r)){var z=E&&x.call(t,"__wrapped__"),k=S&&x.call(e,"__wrapped__");if(z||k){var T=z?t.value():t,I=k?e.value():e;return a||(a=new n.Z),u(T,I,r,o,a)}}return!!R&&(a||(a=new n.Z),function(t,e,r,n,o,u){var a=1&r,i=(0,Z.Z)(t),c=i.length;if(c!=(0,Z.Z)(e).length&&!a)return!1;for(var f=c;f--;){var s=i[f];if(!(a?s in e:b.call(e,s)))return!1}var l=u.get(t),d=u.get(e);if(l&&d)return l==e&&d==t;var v=!0;u.set(t,e),u.set(e,t);for(var p=a;++f<c;){var h=t[s=i[f]],y=e[s];if(n)var g=a?n(y,h,s,e,t,u):n(h,y,s,t,e,u);if(!(void 0===g?h===y||o(h,y,r,n,u):g)){v=!1;break}p||(p="constructor"==s)}if(v&&!p){var _=t.constructor,j=e.constructor;_==j||!("constructor"in t)||!("constructor"in e)||"function"==typeof _&&_ instanceof _&&"function"==typeof j&&j instanceof j||(v=!1)}return u.delete(t),u.delete(e),v}(t,e,r,o,u,a))};var E=r(3391);const S=function t(e,r,n,o,u){return e===r||(null==e||null==r||!(0,E.Z)(e)&&!(0,E.Z)(r)?e!=e&&r!=r:A(e,r,n,o,t,u))};var R=r(3122);const z=function(t){return t==t&&!(0,R.Z)(t)};var k=r(298);const T=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}},I=function(t){var e=function(t){for(var e=(0,k.Z)(t),r=e.length;r--;){var n=e[r],o=t[n];e[r]=[n,o,z(o)]}return e}(t);return 1==e.length&&e[0][2]?T(e[0][0],e[0][1]):function(r){return r===t||function(t,e,r,o){var u=r.length,a=u,i=!o;if(null==t)return!a;for(t=Object(t);u--;){var c=r[u];if(i&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++u<a;){var f=(c=r[u])[0],s=t[f],l=c[1];if(i&&c[2]){if(void 0===s&&!(f in t))return!1}else{var d=new n.Z;if(o)var v=o(s,l,f,t,e,d);if(!(void 0===v?S(l,s,3,o,d):v))return!1}}return!0}(r,t,e)}};var C=r(2082),P=r(7969);const L=function(t,e){for(var r=0,n=(e=(0,C.Z)(e,t)).length;null!=t&&r<n;)t=t[(0,P.Z)(e[r++])];return r&&r==n?t:void 0},D=function(t,e){return null!=t&&e in Object(t)};var V=r(8693);var $=r(3502);const U=function(t,e){return(0,$.Z)(t)&&z(e)?T((0,P.Z)(t),e):function(r){var n=function(t,e,r){var n=null==t?void 0:L(t,e);return void 0===n?r:n}(r,t);return void 0===n&&n===e?function(t,e){return null!=t&&(0,V.Z)(t,e,D)}(r,t):S(e,n,3)}},F=function(t){return t},N=function(t){return(0,$.Z)(t)?(e=(0,P.Z)(t),function(t){return null==t?void 0:t[e]}):function(t){return function(e){return L(e,t)}}(t);var e},M=function(t){return"function"==typeof t?t:null==t?F:"object"==typeof t?(0,g.Z)(t)?U(t[0],t[1]):I(t):N(t)}},3225:(t,e,r)=>{r.d(e,{Z:()=>n});const n=function(t){return function(e){return t(e)}}},2082:(t,e,r)=>{r.d(e,{Z:()=>i});var n=r(7885),o=r(3502),u=r(2540),a=r(3523);const i=function(t,e){return(0,n.Z)(t)?t:(0,o.Z)(t,e)?[t]:(0,u.Z)((0,a.Z)(t))}},4724:(t,e,r)=>{r.d(e,{Z:()=>k});const n=(o={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},function(t){return null==o?void 0:o[t]});var o,u=r(3523),a=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,i=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");var c=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var f=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var s="a-z\\xdf-\\xf6\\xf8-\\xff",l="A-Z\\xc0-\\xd6\\xd8-\\xde",d="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",v="["+d+"]",p="\\d+",h="["+s+"]",Z="[^\\ud800-\\udfff"+d+p+"\\u2700-\\u27bf"+s+l+"]",b="(?:\\ud83c[\\udde6-\\uddff]){2}",y="[\\ud800-\\udbff][\\udc00-\\udfff]",g="["+l+"]",_="(?:"+h+"|"+Z+")",j="(?:"+g+"|"+Z+")",w="(?:['’](?:d|ll|m|re|s|t|ve))?",m="(?:['’](?:D|LL|M|RE|S|T|VE))?",O="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",x="[\\ufe0e\\ufe0f]?",A=x+O+"(?:\\u200d(?:"+["[^\\ud800-\\udfff]",b,y].join("|")+")"+x+O+")*",E="(?:"+["[\\u2700-\\u27bf]",b,y].join("|")+")"+A,S=RegExp([g+"?"+h+"+"+w+"(?="+[v,g,"$"].join("|")+")",j+"+"+m+"(?="+[v,g+_,"$"].join("|")+")",g+"?"+_+"+"+w,g+"+"+m,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",p,E].join("|"),"g");const R=function(t,e,r){return t=(0,u.Z)(t),void 0===(e=r?void 0:e)?function(t){return f.test(t)}(t)?function(t){return t.match(S)||[]}(t):function(t){return t.match(c)||[]}(t):t.match(e)||[]};var z=RegExp("['’]","g");const k=function(t){return function(e){return function(t,e,r,n){var o=-1,u=null==t?0:t.length;for(n&&u&&(r=t[++o]);++o<u;)r=e(r,t[o],o,t);return r}(R(function(t){return(t=(0,u.Z)(t))&&t.replace(a,n).replace(i,"")}(e).replace(z,"")),t,"")}}},2168:(t,e,r)=>{r.d(e,{Z:()=>n});const n="object"==typeof global&&global&&global.Object===Object&&global},7245:(t,e,r)=>{r.d(e,{Z:()=>a});var n=r(2938),o=r(6808),u=r(298);const a=function(t){return(0,n.Z)(t,u.Z,o.Z)}},5546:(t,e,r)=>{r.d(e,{Z:()=>Z});var n=r(8936);const o=r(3221).Z["__core-js_shared__"];var u,a=(u=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+u:"";var i=r(3122),c=r(6682),f=/^\[object .+?Constructor\]$/,s=Function.prototype,l=Object.prototype,d=s.toString,v=l.hasOwnProperty,p=RegExp("^"+d.call(v).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const h=function(t){return!(!(0,i.Z)(t)||(e=t,a&&a in e))&&((0,n.Z)(t)?p:f).test((0,c.Z)(t));var e},Z=function(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return h(r)?r:void 0}},6808:(t,e,r)=>{r.d(e,{Z:()=>a});var n=r(813),o=Object.prototype.propertyIsEnumerable,u=Object.getOwnPropertySymbols;const a=u?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,u=[];++r<n;){var a=t[r];e(a,r,t)&&(u[o++]=a)}return u}(u(t),(function(e){return o.call(t,e)})))}:n.Z},8649:(t,e,r)=>{r.d(e,{Z:()=>m});var n=r(5546),o=r(3221);const u=(0,n.Z)(o.Z,"DataView");var a=r(8896);const i=(0,n.Z)(o.Z,"Promise"),c=(0,n.Z)(o.Z,"Set"),f=(0,n.Z)(o.Z,"WeakMap");var s=r(9001),l=r(6682),d="[object Map]",v="[object Promise]",p="[object Set]",h="[object WeakMap]",Z="[object DataView]",b=(0,l.Z)(u),y=(0,l.Z)(a.Z),g=(0,l.Z)(i),_=(0,l.Z)(c),j=(0,l.Z)(f),w=s.Z;(u&&w(new u(new ArrayBuffer(1)))!=Z||a.Z&&w(new a.Z)!=d||i&&w(i.resolve())!=v||c&&w(new c)!=p||f&&w(new f)!=h)&&(w=function(t){var e=(0,s.Z)(t),r="[object Object]"==e?t.constructor:void 0,n=r?(0,l.Z)(r):"";if(n)switch(n){case b:return Z;case y:return d;case g:return v;case _:return p;case j:return h}return e});const m=w},8693:(t,e,r)=>{r.d(e,{Z:()=>f});var n=r(2082),o=r(4248),u=r(7885),a=r(6401),i=r(1164),c=r(7969);const f=function(t,e,r){for(var f=-1,s=(e=(0,n.Z)(e,t)).length,l=!1;++f<s;){var d=(0,c.Z)(e[f]);if(!(l=null!=t&&r(t,d)))break;t=t[d]}return l||++f!=s?l:!!(s=null==t?0:t.length)&&(0,i.Z)(s)&&(0,a.Z)(d,s)&&((0,u.Z)(t)||(0,o.Z)(t))}},2690:(t,e,r)=>{r.d(e,{Z:()=>o});var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");const o=function(t){return n.test(t)}},6401:(t,e,r)=>{r.d(e,{Z:()=>o});var n=/^(?:0|[1-9]\d*)$/;const o=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&n.test(t))&&t>-1&&t%1==0&&t<e}},3502:(t,e,r)=>{r.d(e,{Z:()=>i});var n=r(7885),o=r(2758),u=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;const i=function(t,e){if((0,n.Z)(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!(0,o.Z)(t))||a.test(t)||!u.test(t)||null!=e&&t in Object(e)}},5441:(t,e,r)=>{r.d(e,{Z:()=>o});var n=Object.prototype;const o=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},5500:(t,e,r)=>{r.d(e,{Z:()=>n});const n=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}},7755:(t,e,r)=>{r.d(e,{Z:()=>i});var n=r(2168),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,u=o&&"object"==typeof module&&module&&!module.nodeType&&module,a=u&&u.exports===o&&n.Z.process;const i=function(){try{return u&&u.require&&u.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}()},6048:(t,e,r)=>{r.d(e,{Z:()=>n});const n=function(t,e){return function(r){return t(e(r))}}},3221:(t,e,r)=>{r.d(e,{Z:()=>u});var n=r(2168),o="object"==typeof self&&self&&self.Object===Object&&self;const u=n.Z||o||Function("return this")()},3249:(t,e,r)=>{r.d(e,{Z:()=>n});const n=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}},222:(t,e,r)=>{r.d(e,{Z:()=>p});var n=r(2690),o="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",u="\\ud83c[\\udffb-\\udfff]",a="[^\\ud800-\\udfff]",i="(?:\\ud83c[\\udde6-\\uddff]){2}",c="[\\ud800-\\udbff][\\udc00-\\udfff]",f="(?:"+o+"|"+u+")?",s="[\\ufe0e\\ufe0f]?",l=s+f+"(?:\\u200d(?:"+[a,i,c].join("|")+")"+s+f+")*",d="(?:"+[a+o+"?",o,i,c,"[\\ud800-\\udfff]"].join("|")+")",v=RegExp(u+"(?="+u+")|"+d+l,"g");const p=function(t){return(0,n.Z)(t)?function(t){return t.match(v)||[]}(t):function(t){return t.split("")}(t)}},2540:(t,e,r)=>{r.d(e,{Z:()=>i});var n=r(3703);function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],u=r.cache;if(u.has(o))return u.get(o);var a=t.apply(this,n);return r.cache=u.set(o,a)||u,a};return r.cache=new(o.Cache||n.Z),r}o.Cache=n.Z;var u=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g;const i=(c=o((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(u,(function(t,r,n,o){e.push(n?o.replace(a,"$1"):r||t)})),e}),(function(t){return 500===f.size&&f.clear(),t})),f=c.cache,c);var c,f},7969:(t,e,r)=>{r.d(e,{Z:()=>o});var n=r(2758);const o=function(t){if("string"==typeof t||(0,n.Z)(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},6682:(t,e,r)=>{r.d(e,{Z:()=>o});var n=Function.prototype.toString;const o=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},2777:(t,e,r)=>{r.d(e,{Z:()=>o});var n=r(1525);const o=(0,r(4724).Z)((function(t,e,r){return e=e.toLowerCase(),t+(r?(0,n.Z)(e):e)}))},1525:(t,e,r)=>{r.d(e,{Z:()=>c});var n=r(3523);const o=function(t,e,r){var n=t.length;return r=void 0===r?n:r,!e&&r>=n?t:function(t,e,r){var n=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(r=r>o?o:r)<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var u=Array(o);++n<o;)u[n]=t[n+e];return u}(t,e,r)};var u=r(2690),a=r(222);const i=function(t){t=(0,n.Z)(t);var e=(0,u.Z)(t)?(0,a.Z)(t):void 0,r=e?e[0]:t.charAt(0),i=e?o(e,1).join(""):t.slice(1);return r.toUpperCase()+i},c=function(t){return i((0,n.Z)(t).toLowerCase())}},8804:(t,e,r)=>{r.d(e,{Z:()=>n});const n=function(t,e){return t===e||t!=t&&e!=e}},8407:(t,e,r)=>{r.d(e,{Z:()=>a});var n=r(3523),o=/[\\^$.*+?()[\]{}|]/g,u=RegExp(o.source);const a=function(t){return(t=(0,n.Z)(t))&&u.test(t)?t.replace(o,"\\$&"):t}},3662:(t,e,r)=>{r.d(e,{Z:()=>b});var n=r(2342),o=r(3282),u=r(298);var a=/\s/;var i=/^\s+/;const c=function(t){return t?t.slice(0,function(t){for(var e=t.length;e--&&a.test(t.charAt(e)););return e}(t)+1).replace(i,""):t};var f=r(3122),s=r(2758),l=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,v=/^0o[0-7]+$/i,p=parseInt;const h=function(t){return t?Infinity===(t=function(t){if("number"==typeof t)return t;if((0,s.Z)(t))return NaN;if((0,f.Z)(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=(0,f.Z)(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=c(t);var r=d.test(t);return r||v.test(t)?p(t.slice(2),r?2:8):l.test(t)?NaN:+t}(t))||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0};var Z=Math.max;const b=(y=function(t,e,r){var o=null==t?0:t.length;if(!o)return-1;var u,a,i=null==r?0:(u=h(r),a=u%1,u==u?a?u-a:u:0);return i<0&&(i=Z(o+i,0)),function(t,e,r,n){for(var o=t.length,u=r+(n?1:-1);n?u--:++u<o;)if(e(t[u],u,t))return u;return-1}(t,(0,n.Z)(e,3),i)},function(t,e,r){var a=Object(t);if(!(0,o.Z)(t)){var i=(0,n.Z)(e,3);t=(0,u.Z)(t),e=function(t){return i(a[t],t,a)}}var c=y(t,e,r);return c>-1?a[i?t[c]:c]:void 0});var y},4248:(t,e,r)=>{r.d(e,{Z:()=>f});var n=r(9001),o=r(3391);const u=function(t){return(0,o.Z)(t)&&"[object Arguments]"==(0,n.Z)(t)};var a=Object.prototype,i=a.hasOwnProperty,c=a.propertyIsEnumerable;const f=u(function(){return arguments}())?u:function(t){return(0,o.Z)(t)&&i.call(t,"callee")&&!c.call(t,"callee")}},7885:(t,e,r)=>{r.d(e,{Z:()=>n});const n=Array.isArray},3282:(t,e,r)=>{r.d(e,{Z:()=>u});var n=r(8936),o=r(1164);const u=function(t){return null!=t&&(0,o.Z)(t.length)&&!(0,n.Z)(t)}},4975:(t,e,r)=>{r.d(e,{Z:()=>i});var n=r(3221);var o="object"==typeof exports&&exports&&!exports.nodeType&&exports,u=o&&"object"==typeof module&&module&&!module.nodeType&&module,a=u&&u.exports===o?n.Z.Buffer:void 0;const i=(a?a.isBuffer:void 0)||function(){return!1}},8936:(t,e,r)=>{r.d(e,{Z:()=>u});var n=r(9001),o=r(3122);const u=function(t){if(!(0,o.Z)(t))return!1;var e=(0,n.Z)(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},1164:(t,e,r)=>{r.d(e,{Z:()=>n});const n=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},3122:(t,e,r)=>{r.d(e,{Z:()=>n});const n=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},3391:(t,e,r)=>{r.d(e,{Z:()=>n});const n=function(t){return null!=t&&"object"==typeof t}},2758:(t,e,r)=>{r.d(e,{Z:()=>u});var n=r(9001),o=r(3391);const u=function(t){return"symbol"==typeof t||(0,o.Z)(t)&&"[object Symbol]"==(0,n.Z)(t)}},8127:(t,e,r)=>{r.d(e,{Z:()=>s});var n=r(9001),o=r(1164),u=r(3391),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1;var i=r(3225),c=r(7755),f=c.Z&&c.Z.isTypedArray;const s=f?(0,i.Z)(f):function(t){return(0,u.Z)(t)&&(0,o.Z)(t.length)&&!!a[(0,n.Z)(t)]}},298:(t,e,r)=>{r.d(e,{Z:()=>c});var n=r(848),o=r(5441);const u=(0,r(6048).Z)(Object.keys,Object);var a=Object.prototype.hasOwnProperty;var i=r(3282);const c=function(t){return(0,i.Z)(t)?(0,n.Z)(t):function(t){if(!(0,o.Z)(t))return u(t);var e=[];for(var r in Object(t))a.call(t,r)&&"constructor"!=r&&e.push(r);return e}(t)}},813:(t,e,r)=>{r.d(e,{Z:()=>n});const n=function(){return[]}},3523:(t,e,r)=>{r.d(e,{Z:()=>s});var n=r(187),o=r(5598),u=r(7885),a=r(2758),i=n.Z?n.Z.prototype:void 0,c=i?i.toString:void 0;const f=function t(e){if("string"==typeof e)return e;if((0,u.Z)(e))return(0,o.Z)(e,t)+"";if((0,a.Z)(e))return c?c.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r},s=function(t){return null==t?"":f(t)}},9857:(t,e,r)=>{r.d(e,{ZP:()=>J});var n=r(268);function o(t,e,r,n){return new(r||(r=Promise))((function(o,u){function a(t){try{c(n.next(t))}catch(t){u(t)}}function i(t){try{c(n.throw(t))}catch(t){u(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,i)}c((n=n.apply(t,e||[])).next())}))}function u(t,e){var r,n,o,u,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return u={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function i(u){return function(i){return function(u){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&u[0]?n.return:u[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,u[1])).done)return o;switch(n=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=e.call(t,a)}catch(t){u=[6,t],n=0}finally{r=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,i])}}}var a,i=function(){},c=i(),f=Object,s=function(t){return t===c},l=function(t){return"function"==typeof t},d=function(t,e){return f.assign({},t,e)},v="undefined",p=function(){return typeof window!=v},h=new WeakMap,Z=0,b=function(t){var e,r,n=typeof t,o=t&&t.constructor,u=o==Date;if(f(t)!==t||u||o==RegExp)e=u?t.toJSON():"symbol"==n?t.toString():"string"==n?JSON.stringify(t):""+t;else{if(e=h.get(t))return e;if(e=++Z+"~",h.set(t,e),o==Array){for(e="@",r=0;r<t.length;r++)e+=b(t[r])+",";h.set(t,e)}if(o==f){e="#";for(var a=f.keys(t).sort();!s(r=a.pop());)s(t[r])||(e+=r+":"+b(t[r])+",");h.set(t,e)}}return e},y=!0,g=p(),_=typeof document!=v,j=g&&window.addEventListener?window.addEventListener.bind(window):i,w=_?document.addEventListener.bind(document):i,m=g&&window.removeEventListener?window.removeEventListener.bind(window):i,O=_?document.removeEventListener.bind(document):i,x={isOnline:function(){return y},isVisible:function(){var t=_&&document.visibilityState;return s(t)||"hidden"!==t}},A={initFocus:function(t){return w("visibilitychange",t),j("focus",t),function(){O("visibilitychange",t),m("focus",t)}},initReconnect:function(t){var e=function(){y=!0,t()},r=function(){y=!1};return j("online",e),j("offline",r),function(){m("online",e),m("offline",r)}}},E=!p()||"Deno"in window,S=E?n.useEffect:n.useLayoutEffect,R="undefined"!=typeof navigator&&navigator.connection,z=!E&&R&&(["slow-2g","2g"].includes(R.effectiveType)||R.saveData),k=function(t){if(l(t))try{t=t()}catch(e){t=""}var e=[].concat(t);return[t="string"==typeof t?t:(Array.isArray(t)?t.length:t)?b(t):"",e,t?"$swr$"+t:""]},T=new WeakMap,I=function(t,e,r,n,o,u,a){void 0===a&&(a=!0);var i=T.get(t),c=i[0],f=i[1],s=i[3],l=c[e],d=f[e];if(a&&d)for(var v=0;v<d.length;++v)d[v](r,n,o);return u&&(delete s[e],l&&l[0])?l[0](2).then((function(){return t.get(e)})):t.get(e)},C=0,P=function(){return++C},L=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return o(void 0,void 0,void 0,(function(){var e,r,n,o,a,i,f,v,p,h,Z,b,y,g,_,j,w,m,O,x,A;return u(this,(function(u){switch(u.label){case 0:if(e=t[0],r=t[1],n=t[2],o=t[3],i=!!s((a="boolean"==typeof o?{revalidate:o}:o||{}).populateCache)||a.populateCache,f=!1!==a.revalidate,v=!1!==a.rollbackOnError,p=a.optimisticData,h=k(r),Z=h[0],b=h[2],!Z)return[2];if(y=T.get(e),g=y[2],t.length<3)return[2,I(e,Z,e.get(Z),c,c,f,!0)];if(_=n,w=P(),g[Z]=[w,0],m=!s(p),O=e.get(Z),m&&(x=l(p)?p(O):p,e.set(Z,x),I(e,Z,x)),l(_))try{_=_(e.get(Z))}catch(t){j=t}return _&&l(_.then)?[4,_.catch((function(t){j=t}))]:[3,2];case 1:if(_=u.sent(),w!==g[Z][0]){if(j)throw j;return[2,_]}j&&m&&v&&(i=!0,_=O,e.set(Z,O)),u.label=2;case 2:return i&&(j||(l(i)&&(_=i(_,O)),e.set(Z,_)),e.set(b,d(e.get(b),{error:j}))),g[Z][1]=P(),[4,I(e,Z,_,j,c,f,!!i)];case 3:if(A=u.sent(),j)throw j;return[2,i?A:_]}}))}))},D=function(t,e){for(var r in t)t[r][0]&&t[r][0](e)},V=function(t,e){if(!T.has(t)){var r=d(A,e),n={},o=L.bind(c,t),u=i;if(T.set(t,[n,{},{},{},o]),!E){var a=r.initFocus(setTimeout.bind(c,D.bind(c,n,0))),f=r.initReconnect(setTimeout.bind(c,D.bind(c,n,1)));u=function(){a&&a(),f&&f(),T.delete(t)}}return[t,o,u]}return[t,T.get(t)[4]]},$=V(new Map),U=$[0],F=$[1],N=d({onLoadingSlow:i,onSuccess:i,onError:i,onErrorRetry:function(t,e,r,n,o){var u=r.errorRetryCount,a=o.retryCount,i=~~((Math.random()+.5)*(1<<(a<8?a:8)))*r.errorRetryInterval;!s(u)&&a>u||setTimeout(n,i,o)},onDiscarded:i,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:z?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:z?5e3:3e3,compare:function(t,e){return b(t)==b(e)},isPaused:function(){return!1},cache:U,mutate:F,fallback:{}},x),M=function(t,e){var r=d(t,e);if(e){var n=t.use,o=t.fallback,u=e.use,a=e.fallback;n&&u&&(r.use=n.concat(u)),o&&a&&(r.fallback=d(o,a))}return r},W=(0,n.createContext)({}),B=function(t){return l(t[1])?[t[0],t[1],t[2]||{}]:[t[0],null,(null===t[1]?t[2]:t[1])||{}]},G=function(){return d(N,(0,n.useContext)(W))},q=function(t,e,r){var n=e[t]||(e[t]=[]);return n.push(r),function(){var t=n.indexOf(r);t>=0&&(n[t]=n[n.length-1],n.pop())}},H={dedupe:!0},J=(f.defineProperty((function(t){var e=t.value,r=M((0,n.useContext)(W),e),o=e&&e.provider,u=(0,n.useState)((function(){return o?V(o(r.cache||U),e):c}))[0];return u&&(r.cache=u[0],r.mutate=u[1]),S((function(){return u?u[2]:c}),[]),(0,n.createElement)(W.Provider,d(t,{value:r}))}),"default",{value:N}),a=function(t,e,r){var a=r.cache,i=r.compare,f=r.fallbackData,h=r.suspense,Z=r.revalidateOnMount,b=r.refreshInterval,y=r.refreshWhenHidden,g=r.refreshWhenOffline,_=T.get(a),j=_[0],w=_[1],m=_[2],O=_[3],x=k(t),A=x[0],R=x[1],z=x[2],C=(0,n.useRef)(!1),D=(0,n.useRef)(!1),V=(0,n.useRef)(A),$=(0,n.useRef)(e),U=(0,n.useRef)(r),F=function(){return U.current},N=function(){return F().isVisible()&&F().isOnline()},M=function(t){return a.set(z,d(a.get(z),t))},W=a.get(A),B=s(f)?r.fallback[A]:f,G=s(W)?B:W,J=a.get(z)||{},Y=J.error,K=!C.current,Q=function(){return K&&!s(Z)?Z:!F().isPaused()&&(h?!s(G)&&r.revalidateIfStale:s(G)||r.revalidateIfStale)},X=!(!A||!e)&&(!!J.isValidating||K&&Q()),tt=function(t,e){var r=(0,n.useState)({})[1],o=(0,n.useRef)(t),u=(0,n.useRef)({data:!1,error:!1,isValidating:!1}),a=(0,n.useCallback)((function(t){var n=!1,a=o.current;for(var i in t){var c=i;a[c]!==t[c]&&(a[c]=t[c],u.current[c]&&(n=!0))}n&&!e.current&&r({})}),[]);return S((function(){o.current=t})),[o,u.current,a]}({data:G,error:Y,isValidating:X},D),et=tt[0],rt=tt[1],nt=tt[2],ot=(0,n.useCallback)((function(t){return o(void 0,void 0,void 0,(function(){var e,n,o,f,d,v,p,h,Z,b,y,g,_;return u(this,(function(u){switch(u.label){case 0:if(e=$.current,!A||!e||D.current||F().isPaused())return[2,!1];f=!0,d=t||{},v=!O[A]||!d.dedupe,p=function(){return!D.current&&A===V.current&&C.current},h=function(){var t=O[A];t&&t[1]===o&&delete O[A]},Z={isValidating:!1},b=function(){M({isValidating:!1}),p()&&nt(Z)},M({isValidating:!0}),nt({isValidating:!0}),u.label=1;case 1:return u.trys.push([1,3,,4]),v&&(I(a,A,et.current.data,et.current.error,!0),r.loadingTimeout&&!a.get(A)&&setTimeout((function(){f&&p()&&F().onLoadingSlow(A,r)}),r.loadingTimeout),O[A]=[e.apply(void 0,R),P()]),_=O[A],n=_[0],o=_[1],[4,n];case 2:return n=u.sent(),v&&setTimeout(h,r.dedupingInterval),O[A]&&O[A][1]===o?(M({error:c}),Z.error=c,y=m[A],!s(y)&&(o<=y[0]||o<=y[1]||0===y[1])?(b(),v&&p()&&F().onDiscarded(A),[2,!1]):(i(et.current.data,n)?Z.data=et.current.data:Z.data=n,i(a.get(A),n)||a.set(A,n),v&&p()&&F().onSuccess(n,A,r),[3,4])):(v&&p()&&F().onDiscarded(A),[2,!1]);case 3:return g=u.sent(),h(),F().isPaused()||(M({error:g}),Z.error=g,v&&p()&&(F().onError(g,A,r),("boolean"==typeof r.shouldRetryOnError&&r.shouldRetryOnError||l(r.shouldRetryOnError)&&r.shouldRetryOnError(g))&&N()&&F().onErrorRetry(g,A,r,ot,{retryCount:(d.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return f=!1,b(),p()&&v&&I(a,A,Z.data,Z.error,!1),[2,!0]}}))}))}),[A]),ut=(0,n.useCallback)(L.bind(c,a,(function(){return V.current})),[]);if(S((function(){$.current=e,U.current=r})),S((function(){if(A){var t=A!==V.current,e=ot.bind(c,H),r=0,n=q(A,w,(function(t,e,r){nt(d({error:e,isValidating:r},i(et.current.data,t)?c:{data:t}))})),o=q(A,j,(function(t){if(0==t){var n=Date.now();F().revalidateOnFocus&&n>r&&N()&&(r=n+F().focusThrottleInterval,e())}else if(1==t)F().revalidateOnReconnect&&N()&&e();else if(2==t)return ot()}));return D.current=!1,V.current=A,C.current=!0,t&&nt({data:G,error:Y,isValidating:X}),Q()&&(s(G)||E?e():(u=e,p()&&typeof window.requestAnimationFrame!=v?window.requestAnimationFrame(u):setTimeout(u,1))),function(){D.current=!0,n(),o()}}var u}),[A,ot]),S((function(){var t;function e(){var e=l(b)?b(G):b;e&&-1!==t&&(t=setTimeout(r,e))}function r(){et.current.error||!y&&!F().isVisible()||!g&&!F().isOnline()?e():ot(H).then(e)}return e(),function(){t&&(clearTimeout(t),t=-1)}}),[b,y,g,ot]),(0,n.useDebugValue)(G),h&&s(G)&&A)throw $.current=e,U.current=r,D.current=!1,s(Y)?ot(H):Y;return{mutate:ut,get data(){return rt.data=!0,G},get error(){return rt.error=!0,Y},get isValidating(){return rt.isValidating=!0,X}}},function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=G(),n=B(t),o=n[0],u=n[1],i=n[2],c=M(r,i),f=a,s=c.use;if(s)for(var l=s.length;l-- >0;)f=s[l](f);return f(o,u||c.fetcher,c)})},2303:(t,e,r)=>{r.d(e,{Z:()=>c});var n,o,u=r(9857),a=function(){return a=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},a.apply(this,arguments)},i=function(t){return"function"==typeof t[1]?[t[0],t[1],t[2]||{}]:[t[0],null,(null===t[1]?t[2]:t[1])||{}]},c=(n=u.ZP,o=function(t){return function(e,r,n){return n.revalidateOnFocus=!1,n.revalidateIfStale=!1,n.revalidateOnReconnect=!1,t(e,r,n)}},function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=i(t),u=r[0],c=r[1],f=r[2],s=(f.use||[]).concat(o);return n(u,c,a(a({},f),{use:s}))})}}]);
|
|
2
|
+
"use strict";(self.webpackChunk_openmrs_esm_patient_registration_app=self.webpackChunk_openmrs_esm_patient_registration_app||[]).push([[470],{4649:(t,e,r)=>{r.d(e,{Z:()=>i});var n=r(8804);const o=function(t,e){for(var r=t.length;r--;)if((0,n.Z)(t[r][0],e))return r;return-1};var u=Array.prototype.splice;function a(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}a.prototype.clear=function(){this.__data__=[],this.size=0},a.prototype.delete=function(t){var e=this.__data__,r=o(e,t);return!(r<0||(r==e.length-1?e.pop():u.call(e,r,1),--this.size,0))},a.prototype.get=function(t){var e=this.__data__,r=o(e,t);return r<0?void 0:e[r][1]},a.prototype.has=function(t){return o(this.__data__,t)>-1},a.prototype.set=function(t,e){var r=this.__data__,n=o(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};const i=a},8896:(t,e,r)=>{r.d(e,{Z:()=>u});var n=r(5546),o=r(3221);const u=(0,n.Z)(o.Z,"Map")},3703:(t,e,r)=>{r.d(e,{Z:()=>d});const n=(0,r(5546).Z)(Object,"create");var o=Object.prototype.hasOwnProperty;var u=Object.prototype.hasOwnProperty;function a(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}a.prototype.clear=function(){this.__data__=n?n(null):{},this.size=0},a.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},a.prototype.get=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(e,t)?e[t]:void 0},a.prototype.has=function(t){var e=this.__data__;return n?void 0!==e[t]:u.call(e,t)},a.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this};const i=a;var c=r(4649),f=r(8896);const s=function(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map};function l(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}l.prototype.clear=function(){this.size=0,this.__data__={hash:new i,map:new(f.Z||c.Z),string:new i}},l.prototype.delete=function(t){var e=s(this,t).delete(t);return this.size-=e?1:0,e},l.prototype.get=function(t){return s(this,t).get(t)},l.prototype.has=function(t){return s(this,t).has(t)},l.prototype.set=function(t,e){var r=s(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};const d=l},6218:(t,e,r)=>{r.d(e,{Z:()=>i});var n=r(4649);var o=r(8896),u=r(3703);function a(t){var e=this.__data__=new n.Z(t);this.size=e.size}a.prototype.clear=function(){this.__data__=new n.Z,this.size=0},a.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},a.prototype.get=function(t){return this.__data__.get(t)},a.prototype.has=function(t){return this.__data__.has(t)},a.prototype.set=function(t,e){var r=this.__data__;if(r instanceof n.Z){var a=r.__data__;if(!o.Z||a.length<199)return a.push([t,e]),this.size=++r.size,this;r=this.__data__=new u.Z(a)}return r.set(t,e),this.size=r.size,this};const i=a},187:(t,e,r)=>{r.d(e,{Z:()=>n});const n=r(3221).Z.Symbol},8282:(t,e,r)=>{r.d(e,{Z:()=>n});const n=r(3221).Z.Uint8Array},848:(t,e,r)=>{r.d(e,{Z:()=>f});var n=r(4248),o=r(7885),u=r(4975),a=r(6401),i=r(8127),c=Object.prototype.hasOwnProperty;const f=function(t,e){var r=(0,o.Z)(t),f=!r&&(0,n.Z)(t),s=!r&&!f&&(0,u.Z)(t),l=!r&&!f&&!s&&(0,i.Z)(t),d=r||f||s||l,v=d?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],p=v.length;for(var h in t)!e&&!c.call(t,h)||d&&("length"==h||s&&("offset"==h||"parent"==h)||l&&("buffer"==h||"byteLength"==h||"byteOffset"==h)||(0,a.Z)(h,p))||v.push(h);return v}},5598:(t,e,r)=>{r.d(e,{Z:()=>n});const n=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}},5810:(t,e,r)=>{r.d(e,{Z:()=>n});const n=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}},2938:(t,e,r)=>{r.d(e,{Z:()=>u});var n=r(5810),o=r(7885);const u=function(t,e,r){var u=e(t);return(0,o.Z)(t)?u:(0,n.Z)(u,r(t))}},9001:(t,e,r)=>{r.d(e,{Z:()=>s});var n=r(187),o=Object.prototype,u=o.hasOwnProperty,a=o.toString,i=n.Z?n.Z.toStringTag:void 0;var c=Object.prototype.toString;var f=n.Z?n.Z.toStringTag:void 0;const s=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":f&&f in Object(t)?function(t){var e=u.call(t,i),r=t[i];try{t[i]=void 0;var n=!0}catch(t){}var o=a.call(t);return n&&(e?t[i]=r:delete t[i]),o}(t):function(t){return c.call(t)}(t)}},2342:(t,e,r)=>{r.d(e,{Z:()=>M});var n=r(6218),o=r(3703);function u(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new o.Z;++e<r;)this.add(t[e])}u.prototype.add=u.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},u.prototype.has=function(t){return this.__data__.has(t)};const a=u,i=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1},c=function(t,e,r,n,o,u){var c=1&r,f=t.length,s=e.length;if(f!=s&&!(c&&s>f))return!1;var l=u.get(t),d=u.get(e);if(l&&d)return l==e&&d==t;var v=-1,p=!0,h=2&r?new a:void 0;for(u.set(t,e),u.set(e,t);++v<f;){var Z=t[v],b=e[v];if(n)var y=c?n(b,Z,v,e,t,u):n(Z,b,v,t,e,u);if(void 0!==y){if(y)continue;p=!1;break}if(h){if(!i(e,(function(t,e){if(a=e,!h.has(a)&&(Z===t||o(Z,t,r,n,u)))return h.push(e);var a}))){p=!1;break}}else if(Z!==b&&!o(Z,b,r,n,u)){p=!1;break}}return u.delete(t),u.delete(e),p};var f=r(187),s=r(8282),l=r(8804),d=r(5500),v=r(3249),p=f.Z?f.Z.prototype:void 0,h=p?p.valueOf:void 0;var Z=r(7245),b=Object.prototype.hasOwnProperty;var y=r(8649),g=r(7885),_=r(4975),j=r(8127),w="[object Arguments]",m="[object Array]",O="[object Object]",x=Object.prototype.hasOwnProperty;const A=function(t,e,r,o,u,a){var i=(0,g.Z)(t),f=(0,g.Z)(e),p=i?m:(0,y.Z)(t),A=f?m:(0,y.Z)(e),E=(p=p==w?O:p)==O,S=(A=A==w?O:A)==O,R=p==A;if(R&&(0,_.Z)(t)){if(!(0,_.Z)(e))return!1;i=!0,E=!1}if(R&&!E)return a||(a=new n.Z),i||(0,j.Z)(t)?c(t,e,r,o,u,a):function(t,e,r,n,o,u,a){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!u(new s.Z(t),new s.Z(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return(0,l.Z)(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var i=d.Z;case"[object Set]":var f=1&n;if(i||(i=v.Z),t.size!=e.size&&!f)return!1;var p=a.get(t);if(p)return p==e;n|=2,a.set(t,e);var Z=c(i(t),i(e),n,o,u,a);return a.delete(t),Z;case"[object Symbol]":if(h)return h.call(t)==h.call(e)}return!1}(t,e,p,r,o,u,a);if(!(1&r)){var z=E&&x.call(t,"__wrapped__"),k=S&&x.call(e,"__wrapped__");if(z||k){var T=z?t.value():t,I=k?e.value():e;return a||(a=new n.Z),u(T,I,r,o,a)}}return!!R&&(a||(a=new n.Z),function(t,e,r,n,o,u){var a=1&r,i=(0,Z.Z)(t),c=i.length;if(c!=(0,Z.Z)(e).length&&!a)return!1;for(var f=c;f--;){var s=i[f];if(!(a?s in e:b.call(e,s)))return!1}var l=u.get(t),d=u.get(e);if(l&&d)return l==e&&d==t;var v=!0;u.set(t,e),u.set(e,t);for(var p=a;++f<c;){var h=t[s=i[f]],y=e[s];if(n)var g=a?n(y,h,s,e,t,u):n(h,y,s,t,e,u);if(!(void 0===g?h===y||o(h,y,r,n,u):g)){v=!1;break}p||(p="constructor"==s)}if(v&&!p){var _=t.constructor,j=e.constructor;_==j||!("constructor"in t)||!("constructor"in e)||"function"==typeof _&&_ instanceof _&&"function"==typeof j&&j instanceof j||(v=!1)}return u.delete(t),u.delete(e),v}(t,e,r,o,u,a))};var E=r(3391);const S=function t(e,r,n,o,u){return e===r||(null==e||null==r||!(0,E.Z)(e)&&!(0,E.Z)(r)?e!=e&&r!=r:A(e,r,n,o,t,u))};var R=r(3122);const z=function(t){return t==t&&!(0,R.Z)(t)};var k=r(649);const T=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}},I=function(t){var e=function(t){for(var e=(0,k.Z)(t),r=e.length;r--;){var n=e[r],o=t[n];e[r]=[n,o,z(o)]}return e}(t);return 1==e.length&&e[0][2]?T(e[0][0],e[0][1]):function(r){return r===t||function(t,e,r,o){var u=r.length,a=u,i=!o;if(null==t)return!a;for(t=Object(t);u--;){var c=r[u];if(i&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++u<a;){var f=(c=r[u])[0],s=t[f],l=c[1];if(i&&c[2]){if(void 0===s&&!(f in t))return!1}else{var d=new n.Z;if(o)var v=o(s,l,f,t,e,d);if(!(void 0===v?S(l,s,3,o,d):v))return!1}}return!0}(r,t,e)}};var C=r(2082),P=r(7969);const L=function(t,e){for(var r=0,n=(e=(0,C.Z)(e,t)).length;null!=t&&r<n;)t=t[(0,P.Z)(e[r++])];return r&&r==n?t:void 0},D=function(t,e){return null!=t&&e in Object(t)};var V=r(8693);var $=r(3502);const U=function(t,e){return(0,$.Z)(t)&&z(e)?T((0,P.Z)(t),e):function(r){var n=function(t,e,r){var n=null==t?void 0:L(t,e);return void 0===n?r:n}(r,t);return void 0===n&&n===e?function(t,e){return null!=t&&(0,V.Z)(t,e,D)}(r,t):S(e,n,3)}},F=function(t){return t},N=function(t){return(0,$.Z)(t)?(e=(0,P.Z)(t),function(t){return null==t?void 0:t[e]}):function(t){return function(e){return L(e,t)}}(t);var e},M=function(t){return"function"==typeof t?t:null==t?F:"object"==typeof t?(0,g.Z)(t)?U(t[0],t[1]):I(t):N(t)}},3917:(t,e,r)=>{r.d(e,{Z:()=>a});var n=r(5441);const o=(0,r(6048).Z)(Object.keys,Object);var u=Object.prototype.hasOwnProperty;const a=function(t){if(!(0,n.Z)(t))return o(t);var e=[];for(var r in Object(t))u.call(t,r)&&"constructor"!=r&&e.push(r);return e}},3225:(t,e,r)=>{r.d(e,{Z:()=>n});const n=function(t){return function(e){return t(e)}}},2082:(t,e,r)=>{r.d(e,{Z:()=>i});var n=r(7885),o=r(3502),u=r(2540),a=r(3523);const i=function(t,e){return(0,n.Z)(t)?t:(0,o.Z)(t,e)?[t]:(0,u.Z)((0,a.Z)(t))}},4724:(t,e,r)=>{r.d(e,{Z:()=>k});const n=(o={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},function(t){return null==o?void 0:o[t]});var o,u=r(3523),a=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,i=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");var c=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var f=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var s="a-z\\xdf-\\xf6\\xf8-\\xff",l="A-Z\\xc0-\\xd6\\xd8-\\xde",d="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",v="["+d+"]",p="\\d+",h="["+s+"]",Z="[^\\ud800-\\udfff"+d+p+"\\u2700-\\u27bf"+s+l+"]",b="(?:\\ud83c[\\udde6-\\uddff]){2}",y="[\\ud800-\\udbff][\\udc00-\\udfff]",g="["+l+"]",_="(?:"+h+"|"+Z+")",j="(?:"+g+"|"+Z+")",w="(?:['’](?:d|ll|m|re|s|t|ve))?",m="(?:['’](?:D|LL|M|RE|S|T|VE))?",O="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",x="[\\ufe0e\\ufe0f]?",A=x+O+"(?:\\u200d(?:"+["[^\\ud800-\\udfff]",b,y].join("|")+")"+x+O+")*",E="(?:"+["[\\u2700-\\u27bf]",b,y].join("|")+")"+A,S=RegExp([g+"?"+h+"+"+w+"(?="+[v,g,"$"].join("|")+")",j+"+"+m+"(?="+[v,g+_,"$"].join("|")+")",g+"?"+_+"+"+w,g+"+"+m,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",p,E].join("|"),"g");const R=function(t,e,r){return t=(0,u.Z)(t),void 0===(e=r?void 0:e)?function(t){return f.test(t)}(t)?function(t){return t.match(S)||[]}(t):function(t){return t.match(c)||[]}(t):t.match(e)||[]};var z=RegExp("['’]","g");const k=function(t){return function(e){return function(t,e,r,n){var o=-1,u=null==t?0:t.length;for(n&&u&&(r=t[++o]);++o<u;)r=e(r,t[o],o,t);return r}(R(function(t){return(t=(0,u.Z)(t))&&t.replace(a,n).replace(i,"")}(e).replace(z,"")),t,"")}}},2168:(t,e,r)=>{r.d(e,{Z:()=>n});const n="object"==typeof global&&global&&global.Object===Object&&global},7245:(t,e,r)=>{r.d(e,{Z:()=>a});var n=r(2938),o=r(6808),u=r(649);const a=function(t){return(0,n.Z)(t,u.Z,o.Z)}},5546:(t,e,r)=>{r.d(e,{Z:()=>Z});var n=r(8936);const o=r(3221).Z["__core-js_shared__"];var u,a=(u=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+u:"";var i=r(3122),c=r(6682),f=/^\[object .+?Constructor\]$/,s=Function.prototype,l=Object.prototype,d=s.toString,v=l.hasOwnProperty,p=RegExp("^"+d.call(v).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const h=function(t){return!(!(0,i.Z)(t)||(e=t,a&&a in e))&&((0,n.Z)(t)?p:f).test((0,c.Z)(t));var e},Z=function(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return h(r)?r:void 0}},6808:(t,e,r)=>{r.d(e,{Z:()=>a});var n=r(813),o=Object.prototype.propertyIsEnumerable,u=Object.getOwnPropertySymbols;const a=u?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,u=[];++r<n;){var a=t[r];e(a,r,t)&&(u[o++]=a)}return u}(u(t),(function(e){return o.call(t,e)})))}:n.Z},8649:(t,e,r)=>{r.d(e,{Z:()=>m});var n=r(5546),o=r(3221);const u=(0,n.Z)(o.Z,"DataView");var a=r(8896);const i=(0,n.Z)(o.Z,"Promise"),c=(0,n.Z)(o.Z,"Set"),f=(0,n.Z)(o.Z,"WeakMap");var s=r(9001),l=r(6682),d="[object Map]",v="[object Promise]",p="[object Set]",h="[object WeakMap]",Z="[object DataView]",b=(0,l.Z)(u),y=(0,l.Z)(a.Z),g=(0,l.Z)(i),_=(0,l.Z)(c),j=(0,l.Z)(f),w=s.Z;(u&&w(new u(new ArrayBuffer(1)))!=Z||a.Z&&w(new a.Z)!=d||i&&w(i.resolve())!=v||c&&w(new c)!=p||f&&w(new f)!=h)&&(w=function(t){var e=(0,s.Z)(t),r="[object Object]"==e?t.constructor:void 0,n=r?(0,l.Z)(r):"";if(n)switch(n){case b:return Z;case y:return d;case g:return v;case _:return p;case j:return h}return e});const m=w},8693:(t,e,r)=>{r.d(e,{Z:()=>f});var n=r(2082),o=r(4248),u=r(7885),a=r(6401),i=r(1164),c=r(7969);const f=function(t,e,r){for(var f=-1,s=(e=(0,n.Z)(e,t)).length,l=!1;++f<s;){var d=(0,c.Z)(e[f]);if(!(l=null!=t&&r(t,d)))break;t=t[d]}return l||++f!=s?l:!!(s=null==t?0:t.length)&&(0,i.Z)(s)&&(0,a.Z)(d,s)&&((0,u.Z)(t)||(0,o.Z)(t))}},2690:(t,e,r)=>{r.d(e,{Z:()=>o});var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");const o=function(t){return n.test(t)}},6401:(t,e,r)=>{r.d(e,{Z:()=>o});var n=/^(?:0|[1-9]\d*)$/;const o=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&n.test(t))&&t>-1&&t%1==0&&t<e}},3502:(t,e,r)=>{r.d(e,{Z:()=>i});var n=r(7885),o=r(2758),u=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;const i=function(t,e){if((0,n.Z)(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!(0,o.Z)(t))||a.test(t)||!u.test(t)||null!=e&&t in Object(e)}},5441:(t,e,r)=>{r.d(e,{Z:()=>o});var n=Object.prototype;const o=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},5500:(t,e,r)=>{r.d(e,{Z:()=>n});const n=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}},7755:(t,e,r)=>{r.d(e,{Z:()=>i});var n=r(2168),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,u=o&&"object"==typeof module&&module&&!module.nodeType&&module,a=u&&u.exports===o&&n.Z.process;const i=function(){try{return u&&u.require&&u.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}()},6048:(t,e,r)=>{r.d(e,{Z:()=>n});const n=function(t,e){return function(r){return t(e(r))}}},3221:(t,e,r)=>{r.d(e,{Z:()=>u});var n=r(2168),o="object"==typeof self&&self&&self.Object===Object&&self;const u=n.Z||o||Function("return this")()},3249:(t,e,r)=>{r.d(e,{Z:()=>n});const n=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}},222:(t,e,r)=>{r.d(e,{Z:()=>p});var n=r(2690),o="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",u="\\ud83c[\\udffb-\\udfff]",a="[^\\ud800-\\udfff]",i="(?:\\ud83c[\\udde6-\\uddff]){2}",c="[\\ud800-\\udbff][\\udc00-\\udfff]",f="(?:"+o+"|"+u+")?",s="[\\ufe0e\\ufe0f]?",l=s+f+"(?:\\u200d(?:"+[a,i,c].join("|")+")"+s+f+")*",d="(?:"+[a+o+"?",o,i,c,"[\\ud800-\\udfff]"].join("|")+")",v=RegExp(u+"(?="+u+")|"+d+l,"g");const p=function(t){return(0,n.Z)(t)?function(t){return t.match(v)||[]}(t):function(t){return t.split("")}(t)}},2540:(t,e,r)=>{r.d(e,{Z:()=>i});var n=r(3703);function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],u=r.cache;if(u.has(o))return u.get(o);var a=t.apply(this,n);return r.cache=u.set(o,a)||u,a};return r.cache=new(o.Cache||n.Z),r}o.Cache=n.Z;var u=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g;const i=(c=o((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(u,(function(t,r,n,o){e.push(n?o.replace(a,"$1"):r||t)})),e}),(function(t){return 500===f.size&&f.clear(),t})),f=c.cache,c);var c,f},7969:(t,e,r)=>{r.d(e,{Z:()=>o});var n=r(2758);const o=function(t){if("string"==typeof t||(0,n.Z)(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},6682:(t,e,r)=>{r.d(e,{Z:()=>o});var n=Function.prototype.toString;const o=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},2777:(t,e,r)=>{r.d(e,{Z:()=>o});var n=r(1525);const o=(0,r(4724).Z)((function(t,e,r){return e=e.toLowerCase(),t+(r?(0,n.Z)(e):e)}))},1525:(t,e,r)=>{r.d(e,{Z:()=>c});var n=r(3523);const o=function(t,e,r){var n=t.length;return r=void 0===r?n:r,!e&&r>=n?t:function(t,e,r){var n=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(r=r>o?o:r)<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var u=Array(o);++n<o;)u[n]=t[n+e];return u}(t,e,r)};var u=r(2690),a=r(222);const i=function(t){t=(0,n.Z)(t);var e=(0,u.Z)(t)?(0,a.Z)(t):void 0,r=e?e[0]:t.charAt(0),i=e?o(e,1).join(""):t.slice(1);return r.toUpperCase()+i},c=function(t){return i((0,n.Z)(t).toLowerCase())}},8804:(t,e,r)=>{r.d(e,{Z:()=>n});const n=function(t,e){return t===e||t!=t&&e!=e}},8407:(t,e,r)=>{r.d(e,{Z:()=>a});var n=r(3523),o=/[\\^$.*+?()[\]{}|]/g,u=RegExp(o.source);const a=function(t){return(t=(0,n.Z)(t))&&u.test(t)?t.replace(o,"\\$&"):t}},3662:(t,e,r)=>{r.d(e,{Z:()=>b});var n=r(2342),o=r(3282),u=r(649);var a=/\s/;var i=/^\s+/;const c=function(t){return t?t.slice(0,function(t){for(var e=t.length;e--&&a.test(t.charAt(e)););return e}(t)+1).replace(i,""):t};var f=r(3122),s=r(2758),l=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,v=/^0o[0-7]+$/i,p=parseInt;const h=function(t){return t?Infinity===(t=function(t){if("number"==typeof t)return t;if((0,s.Z)(t))return NaN;if((0,f.Z)(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=(0,f.Z)(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=c(t);var r=d.test(t);return r||v.test(t)?p(t.slice(2),r?2:8):l.test(t)?NaN:+t}(t))||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0};var Z=Math.max;const b=(y=function(t,e,r){var o=null==t?0:t.length;if(!o)return-1;var u,a,i=null==r?0:(u=h(r),a=u%1,u==u?a?u-a:u:0);return i<0&&(i=Z(o+i,0)),function(t,e,r,n){for(var o=t.length,u=r+(n?1:-1);n?u--:++u<o;)if(e(t[u],u,t))return u;return-1}(t,(0,n.Z)(e,3),i)},function(t,e,r){var a=Object(t);if(!(0,o.Z)(t)){var i=(0,n.Z)(e,3);t=(0,u.Z)(t),e=function(t){return i(a[t],t,a)}}var c=y(t,e,r);return c>-1?a[i?t[c]:c]:void 0});var y},4248:(t,e,r)=>{r.d(e,{Z:()=>f});var n=r(9001),o=r(3391);const u=function(t){return(0,o.Z)(t)&&"[object Arguments]"==(0,n.Z)(t)};var a=Object.prototype,i=a.hasOwnProperty,c=a.propertyIsEnumerable;const f=u(function(){return arguments}())?u:function(t){return(0,o.Z)(t)&&i.call(t,"callee")&&!c.call(t,"callee")}},7885:(t,e,r)=>{r.d(e,{Z:()=>n});const n=Array.isArray},3282:(t,e,r)=>{r.d(e,{Z:()=>u});var n=r(8936),o=r(1164);const u=function(t){return null!=t&&(0,o.Z)(t.length)&&!(0,n.Z)(t)}},4975:(t,e,r)=>{r.d(e,{Z:()=>i});var n=r(3221);var o="object"==typeof exports&&exports&&!exports.nodeType&&exports,u=o&&"object"==typeof module&&module&&!module.nodeType&&module,a=u&&u.exports===o?n.Z.Buffer:void 0;const i=(a?a.isBuffer:void 0)||function(){return!1}},8936:(t,e,r)=>{r.d(e,{Z:()=>u});var n=r(9001),o=r(3122);const u=function(t){if(!(0,o.Z)(t))return!1;var e=(0,n.Z)(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},1164:(t,e,r)=>{r.d(e,{Z:()=>n});const n=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},3122:(t,e,r)=>{r.d(e,{Z:()=>n});const n=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},3391:(t,e,r)=>{r.d(e,{Z:()=>n});const n=function(t){return null!=t&&"object"==typeof t}},2758:(t,e,r)=>{r.d(e,{Z:()=>u});var n=r(9001),o=r(3391);const u=function(t){return"symbol"==typeof t||(0,o.Z)(t)&&"[object Symbol]"==(0,n.Z)(t)}},8127:(t,e,r)=>{r.d(e,{Z:()=>s});var n=r(9001),o=r(1164),u=r(3391),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1;var i=r(3225),c=r(7755),f=c.Z&&c.Z.isTypedArray;const s=f?(0,i.Z)(f):function(t){return(0,u.Z)(t)&&(0,o.Z)(t.length)&&!!a[(0,n.Z)(t)]}},649:(t,e,r)=>{r.d(e,{Z:()=>a});var n=r(848),o=r(3917),u=r(3282);const a=function(t){return(0,u.Z)(t)?(0,n.Z)(t):(0,o.Z)(t)}},813:(t,e,r)=>{r.d(e,{Z:()=>n});const n=function(){return[]}},3523:(t,e,r)=>{r.d(e,{Z:()=>s});var n=r(187),o=r(5598),u=r(7885),a=r(2758),i=n.Z?n.Z.prototype:void 0,c=i?i.toString:void 0;const f=function t(e){if("string"==typeof e)return e;if((0,u.Z)(e))return(0,o.Z)(e,t)+"";if((0,a.Z)(e))return c?c.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r},s=function(t){return null==t?"":f(t)}},9857:(t,e,r)=>{r.d(e,{ZP:()=>J});var n=r(268);function o(t,e,r,n){return new(r||(r=Promise))((function(o,u){function a(t){try{c(n.next(t))}catch(t){u(t)}}function i(t){try{c(n.throw(t))}catch(t){u(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,i)}c((n=n.apply(t,e||[])).next())}))}function u(t,e){var r,n,o,u,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return u={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function i(u){return function(i){return function(u){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&u[0]?n.return:u[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,u[1])).done)return o;switch(n=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=e.call(t,a)}catch(t){u=[6,t],n=0}finally{r=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,i])}}}var a,i=function(){},c=i(),f=Object,s=function(t){return t===c},l=function(t){return"function"==typeof t},d=function(t,e){return f.assign({},t,e)},v="undefined",p=function(){return typeof window!=v},h=new WeakMap,Z=0,b=function(t){var e,r,n=typeof t,o=t&&t.constructor,u=o==Date;if(f(t)!==t||u||o==RegExp)e=u?t.toJSON():"symbol"==n?t.toString():"string"==n?JSON.stringify(t):""+t;else{if(e=h.get(t))return e;if(e=++Z+"~",h.set(t,e),o==Array){for(e="@",r=0;r<t.length;r++)e+=b(t[r])+",";h.set(t,e)}if(o==f){e="#";for(var a=f.keys(t).sort();!s(r=a.pop());)s(t[r])||(e+=r+":"+b(t[r])+",");h.set(t,e)}}return e},y=!0,g=p(),_=typeof document!=v,j=g&&window.addEventListener?window.addEventListener.bind(window):i,w=_?document.addEventListener.bind(document):i,m=g&&window.removeEventListener?window.removeEventListener.bind(window):i,O=_?document.removeEventListener.bind(document):i,x={isOnline:function(){return y},isVisible:function(){var t=_&&document.visibilityState;return s(t)||"hidden"!==t}},A={initFocus:function(t){return w("visibilitychange",t),j("focus",t),function(){O("visibilitychange",t),m("focus",t)}},initReconnect:function(t){var e=function(){y=!0,t()},r=function(){y=!1};return j("online",e),j("offline",r),function(){m("online",e),m("offline",r)}}},E=!p()||"Deno"in window,S=E?n.useEffect:n.useLayoutEffect,R="undefined"!=typeof navigator&&navigator.connection,z=!E&&R&&(["slow-2g","2g"].includes(R.effectiveType)||R.saveData),k=function(t){if(l(t))try{t=t()}catch(e){t=""}var e=[].concat(t);return[t="string"==typeof t?t:(Array.isArray(t)?t.length:t)?b(t):"",e,t?"$swr$"+t:""]},T=new WeakMap,I=function(t,e,r,n,o,u,a){void 0===a&&(a=!0);var i=T.get(t),c=i[0],f=i[1],s=i[3],l=c[e],d=f[e];if(a&&d)for(var v=0;v<d.length;++v)d[v](r,n,o);return u&&(delete s[e],l&&l[0])?l[0](2).then((function(){return t.get(e)})):t.get(e)},C=0,P=function(){return++C},L=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return o(void 0,void 0,void 0,(function(){var e,r,n,o,a,i,f,v,p,h,Z,b,y,g,_,j,w,m,O,x,A;return u(this,(function(u){switch(u.label){case 0:if(e=t[0],r=t[1],n=t[2],o=t[3],i=!!s((a="boolean"==typeof o?{revalidate:o}:o||{}).populateCache)||a.populateCache,f=!1!==a.revalidate,v=!1!==a.rollbackOnError,p=a.optimisticData,h=k(r),Z=h[0],b=h[2],!Z)return[2];if(y=T.get(e),g=y[2],t.length<3)return[2,I(e,Z,e.get(Z),c,c,f,!0)];if(_=n,w=P(),g[Z]=[w,0],m=!s(p),O=e.get(Z),m&&(x=l(p)?p(O):p,e.set(Z,x),I(e,Z,x)),l(_))try{_=_(e.get(Z))}catch(t){j=t}return _&&l(_.then)?[4,_.catch((function(t){j=t}))]:[3,2];case 1:if(_=u.sent(),w!==g[Z][0]){if(j)throw j;return[2,_]}j&&m&&v&&(i=!0,_=O,e.set(Z,O)),u.label=2;case 2:return i&&(j||(l(i)&&(_=i(_,O)),e.set(Z,_)),e.set(b,d(e.get(b),{error:j}))),g[Z][1]=P(),[4,I(e,Z,_,j,c,f,!!i)];case 3:if(A=u.sent(),j)throw j;return[2,i?A:_]}}))}))},D=function(t,e){for(var r in t)t[r][0]&&t[r][0](e)},V=function(t,e){if(!T.has(t)){var r=d(A,e),n={},o=L.bind(c,t),u=i;if(T.set(t,[n,{},{},{},o]),!E){var a=r.initFocus(setTimeout.bind(c,D.bind(c,n,0))),f=r.initReconnect(setTimeout.bind(c,D.bind(c,n,1)));u=function(){a&&a(),f&&f(),T.delete(t)}}return[t,o,u]}return[t,T.get(t)[4]]},$=V(new Map),U=$[0],F=$[1],N=d({onLoadingSlow:i,onSuccess:i,onError:i,onErrorRetry:function(t,e,r,n,o){var u=r.errorRetryCount,a=o.retryCount,i=~~((Math.random()+.5)*(1<<(a<8?a:8)))*r.errorRetryInterval;!s(u)&&a>u||setTimeout(n,i,o)},onDiscarded:i,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:z?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:z?5e3:3e3,compare:function(t,e){return b(t)==b(e)},isPaused:function(){return!1},cache:U,mutate:F,fallback:{}},x),M=function(t,e){var r=d(t,e);if(e){var n=t.use,o=t.fallback,u=e.use,a=e.fallback;n&&u&&(r.use=n.concat(u)),o&&a&&(r.fallback=d(o,a))}return r},W=(0,n.createContext)({}),B=function(t){return l(t[1])?[t[0],t[1],t[2]||{}]:[t[0],null,(null===t[1]?t[2]:t[1])||{}]},G=function(){return d(N,(0,n.useContext)(W))},q=function(t,e,r){var n=e[t]||(e[t]=[]);return n.push(r),function(){var t=n.indexOf(r);t>=0&&(n[t]=n[n.length-1],n.pop())}},H={dedupe:!0},J=(f.defineProperty((function(t){var e=t.value,r=M((0,n.useContext)(W),e),o=e&&e.provider,u=(0,n.useState)((function(){return o?V(o(r.cache||U),e):c}))[0];return u&&(r.cache=u[0],r.mutate=u[1]),S((function(){return u?u[2]:c}),[]),(0,n.createElement)(W.Provider,d(t,{value:r}))}),"default",{value:N}),a=function(t,e,r){var a=r.cache,i=r.compare,f=r.fallbackData,h=r.suspense,Z=r.revalidateOnMount,b=r.refreshInterval,y=r.refreshWhenHidden,g=r.refreshWhenOffline,_=T.get(a),j=_[0],w=_[1],m=_[2],O=_[3],x=k(t),A=x[0],R=x[1],z=x[2],C=(0,n.useRef)(!1),D=(0,n.useRef)(!1),V=(0,n.useRef)(A),$=(0,n.useRef)(e),U=(0,n.useRef)(r),F=function(){return U.current},N=function(){return F().isVisible()&&F().isOnline()},M=function(t){return a.set(z,d(a.get(z),t))},W=a.get(A),B=s(f)?r.fallback[A]:f,G=s(W)?B:W,J=a.get(z)||{},Y=J.error,K=!C.current,Q=function(){return K&&!s(Z)?Z:!F().isPaused()&&(h?!s(G)&&r.revalidateIfStale:s(G)||r.revalidateIfStale)},X=!(!A||!e)&&(!!J.isValidating||K&&Q()),tt=function(t,e){var r=(0,n.useState)({})[1],o=(0,n.useRef)(t),u=(0,n.useRef)({data:!1,error:!1,isValidating:!1}),a=(0,n.useCallback)((function(t){var n=!1,a=o.current;for(var i in t){var c=i;a[c]!==t[c]&&(a[c]=t[c],u.current[c]&&(n=!0))}n&&!e.current&&r({})}),[]);return S((function(){o.current=t})),[o,u.current,a]}({data:G,error:Y,isValidating:X},D),et=tt[0],rt=tt[1],nt=tt[2],ot=(0,n.useCallback)((function(t){return o(void 0,void 0,void 0,(function(){var e,n,o,f,d,v,p,h,Z,b,y,g,_;return u(this,(function(u){switch(u.label){case 0:if(e=$.current,!A||!e||D.current||F().isPaused())return[2,!1];f=!0,d=t||{},v=!O[A]||!d.dedupe,p=function(){return!D.current&&A===V.current&&C.current},h=function(){var t=O[A];t&&t[1]===o&&delete O[A]},Z={isValidating:!1},b=function(){M({isValidating:!1}),p()&&nt(Z)},M({isValidating:!0}),nt({isValidating:!0}),u.label=1;case 1:return u.trys.push([1,3,,4]),v&&(I(a,A,et.current.data,et.current.error,!0),r.loadingTimeout&&!a.get(A)&&setTimeout((function(){f&&p()&&F().onLoadingSlow(A,r)}),r.loadingTimeout),O[A]=[e.apply(void 0,R),P()]),_=O[A],n=_[0],o=_[1],[4,n];case 2:return n=u.sent(),v&&setTimeout(h,r.dedupingInterval),O[A]&&O[A][1]===o?(M({error:c}),Z.error=c,y=m[A],!s(y)&&(o<=y[0]||o<=y[1]||0===y[1])?(b(),v&&p()&&F().onDiscarded(A),[2,!1]):(i(et.current.data,n)?Z.data=et.current.data:Z.data=n,i(a.get(A),n)||a.set(A,n),v&&p()&&F().onSuccess(n,A,r),[3,4])):(v&&p()&&F().onDiscarded(A),[2,!1]);case 3:return g=u.sent(),h(),F().isPaused()||(M({error:g}),Z.error=g,v&&p()&&(F().onError(g,A,r),("boolean"==typeof r.shouldRetryOnError&&r.shouldRetryOnError||l(r.shouldRetryOnError)&&r.shouldRetryOnError(g))&&N()&&F().onErrorRetry(g,A,r,ot,{retryCount:(d.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return f=!1,b(),p()&&v&&I(a,A,Z.data,Z.error,!1),[2,!0]}}))}))}),[A]),ut=(0,n.useCallback)(L.bind(c,a,(function(){return V.current})),[]);if(S((function(){$.current=e,U.current=r})),S((function(){if(A){var t=A!==V.current,e=ot.bind(c,H),r=0,n=q(A,w,(function(t,e,r){nt(d({error:e,isValidating:r},i(et.current.data,t)?c:{data:t}))})),o=q(A,j,(function(t){if(0==t){var n=Date.now();F().revalidateOnFocus&&n>r&&N()&&(r=n+F().focusThrottleInterval,e())}else if(1==t)F().revalidateOnReconnect&&N()&&e();else if(2==t)return ot()}));return D.current=!1,V.current=A,C.current=!0,t&&nt({data:G,error:Y,isValidating:X}),Q()&&(s(G)||E?e():(u=e,p()&&typeof window.requestAnimationFrame!=v?window.requestAnimationFrame(u):setTimeout(u,1))),function(){D.current=!0,n(),o()}}var u}),[A,ot]),S((function(){var t;function e(){var e=l(b)?b(G):b;e&&-1!==t&&(t=setTimeout(r,e))}function r(){et.current.error||!y&&!F().isVisible()||!g&&!F().isOnline()?e():ot(H).then(e)}return e(),function(){t&&(clearTimeout(t),t=-1)}}),[b,y,g,ot]),(0,n.useDebugValue)(G),h&&s(G)&&A)throw $.current=e,U.current=r,D.current=!1,s(Y)?ot(H):Y;return{mutate:ut,get data(){return rt.data=!0,G},get error(){return rt.error=!0,Y},get isValidating(){return rt.isValidating=!0,X}}},function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=G(),n=B(t),o=n[0],u=n[1],i=n[2],c=M(r,i),f=a,s=c.use;if(s)for(var l=s.length;l-- >0;)f=s[l](f);return f(o,u||c.fetcher,c)})},2303:(t,e,r)=>{r.d(e,{Z:()=>c});var n,o,u=r(9857),a=function(){return a=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},a.apply(this,arguments)},i=function(t){return"function"==typeof t[1]?[t[0],t[1],t[2]||{}]:[t[0],null,(null===t[1]?t[2]:t[1])||{}]},c=(n=u.ZP,o=function(t){return function(e,r,n){return n.revalidateOnFocus=!1,n.revalidateIfStale=!1,n.revalidateOnReconnect=!1,t(e,r,n)}},function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=i(t),u=r[0],c=r[1],f=r[2],s=(f.use||[]).concat(o);return n(u,c,a(a({},f),{use:s}))})}}]);
|