@openmrs/esm-patient-programs-app 3.1.1-pre.1124 → 3.1.1-pre.1152

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.
Files changed (43) hide show
  1. package/dist/158.js +3 -0
  2. package/dist/{47.js.LICENSE.txt → 158.js.LICENSE.txt} +0 -0
  3. package/dist/158.js.map +1 -0
  4. package/dist/{313.js → 213.js} +2 -2
  5. package/dist/213.js.map +1 -0
  6. package/dist/339.js +1 -1
  7. package/dist/339.js.map +1 -1
  8. package/dist/429.js +2 -0
  9. package/dist/429.js.map +1 -0
  10. package/dist/527.js +2 -0
  11. package/dist/527.js.map +1 -0
  12. package/dist/655.js +2 -0
  13. package/dist/{600.js.map → 655.js.map} +1 -1
  14. package/dist/{539.js → 708.js} +2 -2
  15. package/dist/{539.js.map → 708.js.map} +1 -1
  16. package/dist/742.js +2 -0
  17. package/dist/742.js.map +1 -0
  18. package/dist/815.js +2 -0
  19. package/dist/815.js.map +1 -0
  20. package/dist/openmrs-esm-patient-programs-app.js +1 -2
  21. package/dist/openmrs-esm-patient-programs-app.js.buildmanifest.json +113 -133
  22. package/dist/openmrs-esm-patient-programs-app.js.map +1 -1
  23. package/dist/openmrs-esm-patient-programs-app.old +2 -0
  24. package/package.json +3 -3
  25. package/src/programs/programs-detailed-summary.component.tsx +0 -1
  26. package/src/programs/programs-detailed-summary.test.tsx +2 -9
  27. package/src/programs/programs-form.test.tsx +2 -7
  28. package/src/programs/programs-overview.component.tsx +0 -1
  29. package/src/programs/programs-overview.test.tsx +0 -2
  30. package/dist/119.js +0 -2
  31. package/dist/119.js.map +0 -1
  32. package/dist/313.js.map +0 -1
  33. package/dist/363.js +0 -2
  34. package/dist/363.js.map +0 -1
  35. package/dist/373.js +0 -2
  36. package/dist/373.js.map +0 -1
  37. package/dist/47.js +0 -3
  38. package/dist/47.js.map +0 -1
  39. package/dist/600.js +0 -2
  40. package/dist/678.js +0 -2
  41. package/dist/678.js.map +0 -1
  42. package/dist/932.js +0 -2
  43. package/dist/932.js.map +0 -1
package/dist/158.js ADDED
@@ -0,0 +1,3 @@
1
+ /*! For license information please see 158.js.LICENSE.txt */
2
+ (self.webpackChunk_openmrs_esm_patient_programs_app=self.webpackChunk_openmrs_esm_patient_programs_app||[]).push([[158],{145:(e,t,r)=>{"use strict";r.d(t,{TP:()=>l,tp:()=>p,am:()=>h});var n={};try{process.env.CARBON_ENABLE_CSS_CUSTOM_PROPERTIES&&"true"===process.env.CARBON_ENABLE_CSS_CUSTOM_PROPERTIES?n.enableCssCustomProperties=!0:n.enableCssCustomProperties=!1,process.env.CARBON_ENABLE_USE_CONTROLLED_STATE_WITH_VALUE&&"true"===process.env.CARBON_ENABLE_USE_CONTROLLED_STATE_WITH_VALUE?n.enableUseControlledStateWithValue=!0:n.enableUseControlledStateWithValue=!1,process.env.CARBON_ENABLE_CSS_GRID&&"true"===process.env.CARBON_ENABLE_CSS_GRID?n.enableCssGrid=!0:n.enableCssGrid=!1,process.env.CARBON_ENABLE_V11_RELEASE&&"true"===process.env.CARBON_ENABLE_V11_RELEASE?n.enableV11Release=!0:n.enableV11Release=!1}catch(e){n.enableCssCustomProperties=!1,n.enableUseControlledStateWithValue=!1,n.enableCssGrid=!1,n.enableV11Release=!1}var o=[{name:"enable-css-custom-properties",description:"Describe what the flag does",enabled:n.enableCssCustomProperties},{name:"enable-use-controlled-state-with-value",description:"Enable components to be created in either a controlled or uncontrolled mode\n",enabled:n.enableUseControlledStateWithValue},{name:"enable-css-grid",description:"Enable CSS Grid Layout in the Grid and Column React components\n",enabled:n.enableCssGrid},{name:"enable-v11-release",description:"Enable the features and functionality for the v11 Release\n",enabled:n.enableV11Release}];function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,c=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}}(e,t)||c(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}for(var s=function(){function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.flags=new Map,t&&Object.keys(t).forEach((function(e){r.flags.set(e,t[e])}))}var t,r;return t=e,r=[{key:"checkForFlag",value:function(e){if(!this.flags.has(e))throw new Error("Unable to find a feature flag with the name: `".concat(e,"`"))}},{key:"add",value:function(e,t){if(this.flags.has(e))throw new Error("The feature flag: ".concat(e," already exists"));this.flags.set(e,t)}},{key:"enable",value:function(e){this.checkForFlag(e),this.flags.set(e,!0)}},{key:"disable",value:function(e){this.checkForFlag(e),this.flags.set(e,!1)}},{key:"merge",value:function(e){var t=this;Object.keys(e).forEach((function(r){t.flags.set(r,e[r])}))}},{key:"mergeWithScope",value:function(e){var t,r=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=c(e))){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}(e.flags);try{for(r.s();!(t=r.n()).done;){var n=a(t.value,2),o=n[0],i=n[1];this.flags.has(o)||this.flags.set(o,i)}}catch(e){r.e(e)}finally{r.f()}}},{key:"enabled",value:function(e){return this.checkForFlag(e),this.flags.get(e)}}],r&&i(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),l=p(),f=0;f<o.length;f++){var d=o[f];l.add(d.name,d.enabled)}function p(e){return new s(e)}function h(){return l.enabled.apply(l,arguments)}},5495:(e,t,r)=>{"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}r.d(t,{I:()=>O,_:()=>g,a:()=>b});var c=["width","height","viewBox"],u=["tabindex"],s={focusable:"false",preserveAspectRatio:"xMidYMid meet"};var l=r(3980),f=r.n(l),d=r(9902),p=r.n(d);function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){v(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b(){return b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},b.apply(this,arguments)}function g(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var m=["className","children","tabIndex"],w=["tabindex"],O=p().forwardRef((function(e,t){var r=e.className,n=e.children,i=e.tabIndex,l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.width,r=e.height,n=e.viewBox,i=void 0===n?"0 0 ".concat(t," ").concat(r):n,l=a(e,c),f=l.tabindex,d=a(l,u),p=o(o(o({},s),d),{},{width:t,height:r,viewBox:i});return p["aria-label"]||p["aria-labelledby"]||p.title?(p.role="img",null!=f&&(p.focusable="true",p.tabindex=f)):p["aria-hidden"]=!0,p}(y(y({},g(e,m)),{},{tabindex:i})),f=l.tabindex,d=g(l,w);return r&&(d.className=r),null!=f&&(d.tabIndex=f),t&&(d.ref=t),p().createElement("svg",d,n)}));O.displayName="Icon",O.propTypes={"aria-hidden":f().string,"aria-label":f().string,"aria-labelledby":f().string,children:f().node,className:f().string,height:f().oneOfType([f().number,f().string]),preserveAspectRatio:f().string,tabIndex:f().string,viewBox:f().string,width:f().oneOfType([f().number,f().string]),xmlns:f().string},O.defaultProps={xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid meet"}},3131:(e,t,r)=>{"use strict";r.d(t,{sKV:()=>O,mhO:()=>w,Gu6:()=>S,s$s:()=>E});var n,o,i,a,c,u,s,l,f,d,p=r(5495),h=r(9902),y=r.n(h),v=["children"],b=["children"],g=["children"],m=["children"],w=y().forwardRef((function(e,t){var r=e.children,a=(0,p._)(e,v);return y().createElement(p.I,(0,p.a)({width:20,height:20,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},a),n||(n=y().createElement("path",{fill:"none",d:"M16,26a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,26Zm-1.125-5h2.25V12h-2.25Z","data-icon-path":"inner-path"})),o||(o=y().createElement("path",{d:"M16.002,6.1714h-.004L4.6487,27.9966,4.6506,28H27.3494l.0019-.0034ZM14.875,12h2.25v9h-2.25ZM16,26a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,26Z"})),i||(i=y().createElement("path",{d:"M29,30H3a1,1,0,0,1-.8872-1.4614l13-25a1,1,0,0,1,1.7744,0l13,25A1,1,0,0,1,29,30ZM4.6507,28H27.3493l.002-.0033L16.002,6.1714h-.004L4.6487,27.9967Z"})),r)})),O=y().forwardRef((function(e,t){var r=e.children,n=(0,p._)(e,b);return y().createElement(p.I,(0,p.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),a||(a=y().createElement("path",{fill:"none",d:"M16,26a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,26Zm-1.125-5h2.25V12h-2.25Z","data-icon-path":"inner-path"})),c||(c=y().createElement("path",{d:"M16.002,6.1714h-.004L4.6487,27.9966,4.6506,28H27.3494l.0019-.0034ZM14.875,12h2.25v9h-2.25ZM16,26a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,26Z"})),u||(u=y().createElement("path",{d:"M29,30H3a1,1,0,0,1-.8872-1.4614l13-25a1,1,0,0,1,1.7744,0l13,25A1,1,0,0,1,29,30ZM4.6507,28H27.3493l.002-.0033L16.002,6.1714h-.004L4.6487,27.9967Z"})),r)})),E=y().forwardRef((function(e,t){var r=e.children,n=(0,p._)(e,g);return y().createElement(p.I,(0,p.a)({width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),s||(s=y().createElement("path",{d:"M10,1c-5,0-9,4-9,9s4,9,9,9s9-4,9-9S15,1,10,1z M9.2,5h1.5v7H9.2V5z M10,16c-0.6,0-1-0.4-1-1s0.4-1,1-1\ts1,0.4,1,1S10.6,16,10,16z"})),l||(l=y().createElement("path",{d:"M9.2,5h1.5v7H9.2V5z M10,16c-0.6,0-1-0.4-1-1s0.4-1,1-1s1,0.4,1,1S10.6,16,10,16z","data-icon-path":"inner-path",opacity:"0"})),r)})),S=y().forwardRef((function(e,t){var r=e.children,n=(0,p._)(e,m);return y().createElement(p.I,(0,p.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),f||(f=y().createElement("path",{d:"M8,1C4.2,1,1,4.2,1,8s3.2,7,7,7s7-3.1,7-7S11.9,1,8,1z M7.5,4h1v5h-1C7.5,9,7.5,4,7.5,4z M8,12.2\tc-0.4,0-0.8-0.4-0.8-0.8s0.3-0.8,0.8-0.8c0.4,0,0.8,0.4,0.8,0.8S8.4,12.2,8,12.2z"})),d||(d=y().createElement("path",{d:"M7.5,4h1v5h-1C7.5,9,7.5,4,7.5,4z M8,12.2c-0.4,0-0.8-0.4-0.8-0.8s0.3-0.8,0.8-0.8\tc0.4,0,0.8,0.4,0.8,0.8S8.4,12.2,8,12.2z","data-icon-path":"inner-path",opacity:"0"})),r)}))},3346:(e,t,r)=>{"use strict";r.d(t,{OB5:()=>O,DI$:()=>E,NlZ:()=>S,Y3p:()=>C,dmA:()=>x,cRw:()=>j});var n,o,i,a,c,u,s,l,f,d=r(5495),p=r(9902),h=r.n(p),y=["children"],v=["children"],b=["children"],g=["children"],m=["children"],w=["children"],O=h().forwardRef((function(e,t){var r=e.children,o=(0,d._)(e,y);return h().createElement(d.I,(0,d.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},o),n||(n=h().createElement("path",{d:"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM6,26V6H26V26Z"})),r)})),E=h().forwardRef((function(e,t){var r=e.children,n=(0,d._)(e,v);return h().createElement(d.I,(0,d.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),o||(o=h().createElement("path",{d:"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM14,21.5,9,16.5427,10.5908,15,14,18.3456,21.4087,11l1.5918,1.5772Z"})),i||(i=h().createElement("path",{fill:"none",d:"M14,21.5,9,16.5427,10.5908,15,14,18.3456,21.4087,11l1.5918,1.5772Z","data-icon-path":"inner-path"})),r)})),S=h().forwardRef((function(e,t){var r=e.children,n=(0,d._)(e,b);return h().createElement(d.I,(0,d.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),a||(a=h().createElement("path",{d:"M13 24L4 15 5.414 13.586 13 21.171 26.586 7.586 28 9 13 24z"})),r)})),x=h().forwardRef((function(e,t){var r=e.children,n=(0,d._)(e,g);return h().createElement(d.I,(0,d.a)({width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),c||(c=h().createElement("path",{d:"M10,1c-4.9,0-9,4.1-9,9s4.1,9,9,9s9-4,9-9S15,1,10,1z M8.7,13.5l-3.2-3.2l1-1l2.2,2.2l4.8-4.8l1,1L8.7,13.5z"})),u||(u=h().createElement("path",{fill:"none",d:"M8.7,13.5l-3.2-3.2l1-1l2.2,2.2l4.8-4.8l1,1L8.7,13.5z","data-icon-path":"inner-path",opacity:"0"})),r)})),C=h().forwardRef((function(e,t){var r=e.children,n=(0,d._)(e,m);return h().createElement(d.I,(0,d.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),s||(s=h().createElement("path",{d:"M8,1C4.1,1,1,4.1,1,8c0,3.9,3.1,7,7,7s7-3.1,7-7C15,4.1,11.9,1,8,1z M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z"})),l||(l=h().createElement("path",{d:"M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z","data-icon-path":"inner-path",opacity:"0"})),r)})),j=h().forwardRef((function(e,t){var r=e.children,n=(0,d._)(e,w);return h().createElement(d.I,(0,d.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),f||(f=h().createElement("path",{d:"M8 11L3 6 3.7 5.3 8 9.6 12.3 5.3 13 6z"})),r)}))},7030:(e,t,r)=>{"use strict";r.d(t,{Z:()=>x});var n=r(6666),o=r(8777),i=r(2867),a=r(2159),c=r(3980),u=r.n(c),s=r(9902),l=r.n(s),f=r(2779),d=r.n(f),p=r(3597),h=r(3834),y=r(4509),v=r(4817),b=r(330),g=r(7304),m=r(309),w=["children","as","className","disabled","small","size","kind","href","isExpressive","isSelected","tabIndex","type","renderIcon","dangerDescription","iconDescription","hasIconOnly","tooltipPosition","tooltipAlignment","onClick","onBlur","onFocus","onMouseEnter","onMouseLeave"];function O(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function E(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?O(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var S=l().forwardRef((function(e,t){var r,c=e.children,u=e.as,f=e.className,p=e.disabled,O=e.small,S=e.size,x=e.kind,C=e.href,j=e.isExpressive,P=e.isSelected,k=e.tabIndex,A=e.type,M=e.renderIcon,R=e.dangerDescription,_=e.iconDescription,Z=e.hasIconOnly,T=e.tooltipPosition,I=e.tooltipAlignment,L=e.onClick,D=e.onBlur,B=e.onFocus,N=e.onMouseEnter,V=e.onMouseLeave,z=(0,a.Z)(e,w),F=(0,s.useState)(!1),U=(0,i.Z)(F,2),H=U[0],W=U[1],G=(0,s.useState)(!1),q=(0,i.Z)(G,2),$=q[0],J=q[1],Y=(0,s.useState)(!1),K=(0,i.Z)(Y,2),Q=K[0],X=K[1],ee=(0,s.useRef)(null),te=(0,s.useRef)(null),re=(0,b.A)(),ne=function(e){var t,r=null===(t=document)||void 0===t?void 0:t.querySelectorAll(".".concat(re,"--tooltip--a11y"));(0,o.Z)(r).map((function(t){var r,n,o;r=t,n="".concat(re,"--tooltip--hidden"),o=t!==e.currentTarget,r.classList.contains(n)===!o&&r.classList[o?"add":"remove"](n)}))},oe=function(e){if(Z){if(te.current&&clearTimeout(te.current),e.target===ee.current)return void W(!0);ne(e),W(!0)}};(0,s.useEffect)((function(){var e=function(e){(0,y.wB)(e,[v.L1])&&(W(!1),J(!1))};return document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}}),[]);var ie,ae=(0,m.ye)("enable-v11-release"),ce={tabIndex:k,className:d()(f,(r={},(0,n.Z)(r,"".concat(re,"--btn"),!0),(0,n.Z)(r,"".concat(re,"--btn--sm"),"small"===S&&!j||"sm"===S&&!j||O&&!j),(0,n.Z)(r,"".concat(re,"--btn--md"),"field"===S&&!j||"md"===S&&!j),(0,n.Z)(r,"".concat(re,"--btn--lg"),ae?"xl"===S:"lg"===S),(0,n.Z)(r,"".concat(re,"--btn--xl"),ae?"2xl"===S:"xl"===S),(0,n.Z)(r,"".concat(re,"--btn--").concat(x),x),(0,n.Z)(r,"".concat(re,"--btn--disabled"),p),(0,n.Z)(r,"".concat(re,"--btn--expressive"),j),(0,n.Z)(r,"".concat(re,"--tooltip--visible"),!ae&&$),(0,n.Z)(r,"".concat(re,"--tooltip--hidden"),!ae&&Z&&!H),(0,n.Z)(r,"".concat(re,"--btn--icon-only"),Z),(0,n.Z)(r,"".concat(re,"--btn--selected"),Z&&P&&"ghost"===x),(0,n.Z)(r,"".concat(re,"--tooltip__trigger"),!ae&&Z),(0,n.Z)(r,"".concat(re,"--tooltip--a11y"),!ae&&Z),(0,n.Z)(r,"".concat(re,"--btn--icon-only--").concat(T),!ae&&Z&&T),(0,n.Z)(r,"".concat(re,"--tooltip--align-").concat(I),!ae&&Z&&I),r)),ref:t},ue=M?l().createElement(M,{"aria-label":_,className:"".concat(re,"--btn__icon"),"aria-hidden":"true"}):null,se=["danger","danger--tertiary","danger--ghost"],le="button",fe=(0,g.M)("danger-description"),de={disabled:p,type:A,"aria-describedby":se.includes(x)?fe:null,"aria-pressed":Z&&"ghost"===x?P:null},pe={href:C};return ie=Z?l().createElement("div",{ref:ee,onMouseEnter:oe,className:"".concat(re,"--assistive-text")},_):se.includes(x)?l().createElement("span",{id:fe,className:"".concat(re,"--visually-hidden")},R):null,u?(le=u,de=E(E({},de),pe)):C&&!p&&(le="a",de=pe),ae?(delete de["aria-describedby"],l().createElement(le,E(E(E({onMouseEnter:N,onMouseLeave:V,onFocus:B,onBlur:D,onClick:L,type:A},z),ce),de),c)):l().createElement(le,E(E(E({onMouseEnter:(0,h.M)([N,oe]),onMouseLeave:(0,h.M)([V,function(){!Q&&Z&&(te.current=setTimeout((function(){W(!1),J(!1)}),100))}]),onFocus:(0,h.M)([B,function(e){Z&&(ne(e),X(!0),W(!0))}]),onBlur:(0,h.M)([D,function(){Z&&(J(!1),X(!1),W(!1))}]),onClick:(0,h.M)([L,function(e){W(!1),e.target!==ee.current||e.preventDefault()}])},z),ce),de),ie,c,ue)}));S.displayName="Button",S.propTypes={as:u().oneOfType([u().func,u().string,u().elementType]),children:u().node,className:u().string,dangerDescription:u().string,disabled:u().bool,hasIconOnly:u().bool,href:u().string,iconDescription:function(e){if(e.renderIcon&&!e.children&&!e.iconDescription)return new Error("renderIcon property specified without also providing an iconDescription property.")},isExpressive:u().bool,isSelected:u().bool,kind:u().oneOf(["primary","secondary","danger","ghost","danger--primary","danger--ghost","danger--tertiary","tertiary"]).isRequired,onBlur:u().func,onClick:u().func,onFocus:u().func,onMouseEnter:u().func,onMouseLeave:u().func,renderIcon:u().oneOfType([u().func,u().object]),role:u().string,size:u().oneOf(["default","field","small","sm","md","lg","xl","2xl"]),small:(0,p.Z)(u().bool,'\nThe prop `small` for Button has been deprecated in favor of `size`. Please use `size="sm"` instead.'),tabIndex:u().number,tooltipAlignment:u().oneOf(["start","center","end"]),tooltipPosition:u().oneOf(["top","right","bottom","left"]),type:u().oneOf(["button","reset","submit"])},S.defaultProps={tabIndex:0,type:"button",disabled:!1,kind:"primary",size:"default",dangerDescription:"danger",tooltipAlignment:"center",tooltipPosition:"top",isExpressive:!1};const x=S},309:(e,t,r)=>{"use strict";r.d(t,{pG:()=>c,ye:()=>u}),r(2867);var n=r(145),o=r(3980),i=r.n(o),a=r(9902),c=(0,a.createContext)(n.TP);function u(e){return(0,a.useContext)(c).enabled(e)}i().node,i().objectOf(i().bool)},4817:(e,t,r)=>{"use strict";r.d(t,{OK:()=>n,Ce:()=>o,L1:()=>i,T:()=>a,Xd:()=>c,a2:()=>u,ol:()=>s,K5:()=>l});var n={key:"Tab",which:9,keyCode:9},o={key:"Enter",which:13,keyCode:13},i={key:["Escape","Esc"],which:27,keyCode:27},a={key:" ",which:32,keyCode:32},c={key:"ArrowLeft",which:37,keyCode:37},u={key:"ArrowUp",which:38,keyCode:38},s={key:"ArrowRight",which:39,keyCode:39},l={key:"ArrowDown",which:40,keyCode:40}},4509:(e,t,r)=>{"use strict";function n(e,t){for(var r=0;r<t.length;r++)if(o(e,t[r]))return!0;return!1}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.key,n=t.which,o=t.keyCode;return"string"==typeof e?e===r:"number"==typeof e?e===n||e===o:e.key&&Array.isArray(r)?-1!==r.indexOf(e.key):e.key===r||e.which===n||e.keyCode===o}r.d(t,{wB:()=>n,EQ:()=>o})},7304:(e,t,r)=>{"use strict";r.d(t,{E:()=>f,M:()=>l});var n=r(2867),o=r(9902),i=r(3182),a=!("undefined"==typeof window||!window.document||!window.document.createElement),c=(0,i.Z)(),u=a?o.useLayoutEffect:o.useEffect,s=!1;function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"id",t=(0,o.useState)((function(){return s?"".concat(e,"-").concat(c()):null})),r=(0,n.Z)(t,2),i=r[0],a=r[1];return u((function(){null===i&&a("".concat(e,"-").concat(c()))}),[c]),(0,o.useEffect)((function(){!1===s&&(s=!0)}),[]),i}function f(e){var t=l();return null!=e?e:t}},330:(e,t,r)=>{"use strict";r.d(t,{T:()=>a,A:()=>c});var n=r(8479),o=r(9902),i=r.n(o),a=i().createContext(n.settings.prefix);function c(){return i().useContext(a)}},3597:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var n=r(6666);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var a={};function c(e,t){return function(t,r,o){if(void 0!==t[r]){a[o]&&a[o][r]||(a[o]=i(i({},a[o]),{},(0,n.Z)({},r,!0)));for(var c=arguments.length,u=new Array(c>3?c-3:0),s=3;s<c;s++)u[s-3]=arguments[s];return e.apply(void 0,[t,r,o].concat(u))}}}},3834:(e,t,r)=>{"use strict";r.d(t,{M:()=>n});var n=function(e){return function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];for(var i=0;i<e.length&&!t.defaultPrevented;i++)"function"==typeof e[i]&&e[i].apply(e,[t].concat(n))}}},3182:(e,t,r)=>{"use strict";function n(){var e=0;return function(){return++e}}r.d(t,{Z:()=>n})},2779:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)){if(r.length){var a=o.apply(null,r);a&&e.push(a)}}else if("object"===i)if(r.toString===Object.prototype.toString)for(var c in r)n.call(r,c)&&r[c]&&e.push(c);else e.push(r.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},2609:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r="",n=void 0!==t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),n&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),n&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r})).join("")},t.i=function(e,r,n,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(n)for(var c=0;c<this.length;c++){var u=this[c][0];null!=u&&(a[u]=!0)}for(var s=0;s<e.length;s++){var l=[].concat(e[s]);n&&a[l[0]]||(void 0!==i&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=i),r&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=r):l[2]=r),o&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=o):l[4]="".concat(o)),t.push(l))}},t}},272:e=>{"use strict";e.exports=function(e){var t=e[1],r=e[3];if(!r)return t;if("function"==typeof btoa){var n=btoa(unescape(encodeURIComponent(JSON.stringify(r)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(n),i="/*# ".concat(o," */"),a=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[t].concat(a).concat([i]).join("\n")}return[t].join("\n")}},1354:e=>{"use strict";var t=[];function r(e){for(var r=-1,n=0;n<t.length;n++)if(t[n].identifier===e){r=n;break}return r}function n(e,n){for(var i={},a=[],c=0;c<e.length;c++){var u=e[c],s=n.base?u[0]+n.base:u[0],l=i[s]||0,f="".concat(s," ").concat(l);i[s]=l+1;var d=r(f),p={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==d)t[d].references++,t[d].updater(p);else{var h=o(p,n);n.byIndex=c,t.splice(c,0,{identifier:f,updater:h,references:1})}a.push(f)}return a}function o(e,t){var r=t.domAPI(t);return r.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;r.update(e=t)}else r.remove()}}e.exports=function(e,o){var i=n(e=e||[],o=o||{});return function(e){e=e||[];for(var a=0;a<i.length;a++){var c=r(i[a]);t[c].references--}for(var u=n(e,o),s=0;s<i.length;s++){var l=r(i[s]);0===t[l].references&&(t[l].updater(),t.splice(l,1))}i=u}}},7378:e=>{"use strict";var t={};e.exports=function(e,r){var n=function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(r)}},4154:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},5993:(e,t,r)=>{"use strict";e.exports=function(e){var t=r.nc;t&&e.setAttribute("nonce",t)}},1583:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(r){!function(e,t,r){var n="";r.supports&&(n+="@supports (".concat(r.supports,") {")),r.media&&(n+="@media ".concat(r.media," {"));var o=void 0!==r.layer;o&&(n+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),n+=r.css,o&&(n+="}"),r.media&&(n+="}"),r.supports&&(n+="}");var i=r.sourceMap;i&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,r)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},8141:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},8262:(e,t,r)=>{"use strict";var n=r(3586);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,i,a){if(a!==n){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},3980:(e,t,r)=>{e.exports=r(8262)()},3586:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},926:(e,t,r)=>{"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,{Z:()=>n})},753:(e,t,r)=>{"use strict";function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r.d(t,{Z:()=>n})},9249:(e,t,r)=>{"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}r.d(t,{Z:()=>n})},7371:(e,t,r)=>{"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}r.d(t,{Z:()=>o})},6666:(e,t,r)=>{"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,{Z:()=>n})},7896:(e,t,r)=>{"use strict";function n(){return n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(this,arguments)}r.d(t,{Z:()=>n})},5058:(e,t,r)=>{"use strict";function n(e){return n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(e)}r.d(t,{Z:()=>n})},8106:(e,t,r)=>{"use strict";function n(e,t){return n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(e,t)}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&n(e,t)}r.d(t,{Z:()=>o})},2159:(e,t,r)=>{"use strict";function n(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}r.d(t,{Z:()=>n})},1987:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(6522),o=r(753);function i(e,t){if(t&&("object"===(0,n.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.Z)(e)}},2867:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(9147);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,c=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}}(e,t)||(0,n.Z)(e,t)||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.")}()}},8777:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(926),o=r(9147);function i(e){return function(e){if(Array.isArray(e))return(0,n.Z)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,o.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},6522:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r.d(t,{Z:()=>n})},9147:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(926);function o(e,t){if(e){if("string"==typeof e)return(0,n.Z)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?(0,n.Z)(e,t):void 0}}},9857:(e,t,r)=>{"use strict";r.d(t,{ZP:()=>J,JG:()=>z});var n=r(9902);function o(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{u(n.next(e))}catch(e){i(e)}}function c(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,c)}u((n=n.apply(e,t||[])).next())}))}function i(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}var a,c=function(){},u=c(),s=Object,l=function(e){return e===u},f=function(e){return"function"==typeof e},d=function(e,t){return s.assign({},e,t)},p="undefined",h=function(){return typeof window!=p},y=new WeakMap,v=0,b=function(e){var t,r,n=typeof e,o=e&&e.constructor,i=o==Date;if(s(e)!==e||i||o==RegExp)t=i?e.toJSON():"symbol"==n?e.toString():"string"==n?JSON.stringify(e):""+e;else{if(t=y.get(e))return t;if(t=++v+"~",y.set(e,t),o==Array){for(t="@",r=0;r<e.length;r++)t+=b(e[r])+",";y.set(e,t)}if(o==s){t="#";for(var a=s.keys(e).sort();!l(r=a.pop());)l(e[r])||(t+=r+":"+b(e[r])+",");y.set(e,t)}}return t},g=!0,m=h(),w=typeof document!=p,O=m&&window.addEventListener?window.addEventListener.bind(window):c,E=w?document.addEventListener.bind(document):c,S=m&&window.removeEventListener?window.removeEventListener.bind(window):c,x=w?document.removeEventListener.bind(document):c,C={isOnline:function(){return g},isVisible:function(){var e=w&&document.visibilityState;return l(e)||"hidden"!==e}},j={initFocus:function(e){return E("visibilitychange",e),O("focus",e),function(){x("visibilitychange",e),S("focus",e)}},initReconnect:function(e){var t=function(){g=!0,e()},r=function(){g=!1};return O("online",t),O("offline",r),function(){S("online",t),S("offline",r)}}},P=!h()||"Deno"in window,k=P?n.useEffect:n.useLayoutEffect,A="undefined"!=typeof navigator&&navigator.connection,M=!P&&A&&(["slow-2g","2g"].includes(A.effectiveType)||A.saveData),R=function(e){if(f(e))try{e=e()}catch(t){e=""}var t=[].concat(e);return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?b(e):"",t,e?"$swr$"+e:""]},_=new WeakMap,Z=function(e,t,r,n,o,i,a){void 0===a&&(a=!0);var c=_.get(e),u=c[0],s=c[1],l=c[3],f=u[t],d=s[t];if(a&&d)for(var p=0;p<d.length;++p)d[p](r,n,o);return i&&(delete l[t],f&&f[0])?f[0](2).then((function(){return e.get(t)})):e.get(t)},T=0,I=function(){return++T},L=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o(void 0,void 0,void 0,(function(){var t,r,n,o,a,c,s,p,h,y,v,b,g,m,w,O,E,S,x,C;return i(this,(function(i){switch(i.label){case 0:if(t=e[0],r=e[1],n=e[2],o=e[3],c=!1!==(a="boolean"==typeof o?{revalidate:o}:o||{}).populateCache,s=!1!==a.revalidate,p=!1!==a.rollbackOnError,h=a.optimisticData,y=R(r),v=y[0],b=y[2],!v)return[2];if(g=_.get(t),m=g[2],e.length<3)return[2,Z(t,v,t.get(v),u,u,s,c)];if(w=n,E=I(),m[v]=[E,0],S=!l(h),x=t.get(v),S&&(t.set(v,h),Z(t,v,h)),f(w))try{w=w(t.get(v))}catch(e){O=e}return w&&f(w.then)?[4,w.catch((function(e){O=e}))]:[3,2];case 1:if(w=i.sent(),E!==m[v][0]){if(O)throw O;return[2,w]}O&&S&&p&&(c=!0,w=x,t.set(v,x)),i.label=2;case 2:return c&&(O||t.set(v,w),t.set(b,d(t.get(b),{error:O}))),m[v][1]=I(),[4,Z(t,v,w,O,u,s,c)];case 3:if(C=i.sent(),O)throw O;return[2,c?C:w]}}))}))},D=function(e,t){for(var r in e)e[r][0]&&e[r][0](t)},B=function(e,t){if(!_.has(e)){var r=d(j,t),n={},o=L.bind(u,e),i=c;if(_.set(e,[n,{},{},{},o]),!P){var a=r.initFocus(setTimeout.bind(u,D.bind(u,n,0))),s=r.initReconnect(setTimeout.bind(u,D.bind(u,n,1)));i=function(){a&&a(),s&&s(),_.delete(e)}}return[e,o,i]}return[e,_.get(e)[4]]},N=B(new Map),V=N[0],z=N[1],F=d({onLoadingSlow:c,onSuccess:c,onError:c,onErrorRetry:function(e,t,r,n,o){var i=r.errorRetryCount,a=o.retryCount,c=~~((Math.random()+.5)*(1<<(a<8?a:8)))*r.errorRetryInterval;!l(i)&&a>i||setTimeout(n,c,o)},onDiscarded:c,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:M?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:M?5e3:3e3,compare:function(e,t){return b(e)==b(t)},isPaused:function(){return!1},cache:V,mutate:z,fallback:{}},C),U=function(e,t){var r=d(e,t);if(t){var n=e.use,o=e.fallback,i=t.use,a=t.fallback;n&&i&&(r.use=n.concat(i)),o&&a&&(r.fallback=d(o,a))}return r},H=(0,n.createContext)({}),W=function(e){return f(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}]},G=function(){return d(F,(0,n.useContext)(H))},q=function(e,t,r){var n=t[e]||(t[e]=[]);return n.push(r),function(){var e=n.indexOf(r);e>=0&&(n[e]=n[n.length-1],n.pop())}},$={dedupe:!0},J=(s.defineProperty((function(e){var t=e.value,r=U((0,n.useContext)(H),t),o=t&&t.provider,i=(0,n.useState)((function(){return o?B(o(r.cache||V),t):u}))[0];return i&&(r.cache=i[0],r.mutate=i[1]),k((function(){return i?i[2]:u}),[]),(0,n.createElement)(H.Provider,d(e,{value:r}))}),"default",{value:F}),a=function(e,t,r){var a=r.cache,c=r.compare,s=r.fallbackData,y=r.suspense,v=r.revalidateOnMount,b=r.refreshInterval,g=r.refreshWhenHidden,m=r.refreshWhenOffline,w=_.get(a),O=w[0],E=w[1],S=w[2],x=w[3],C=R(e),j=C[0],A=C[1],M=C[2],T=(0,n.useRef)(!1),D=(0,n.useRef)(!1),B=(0,n.useRef)(j),N=(0,n.useRef)(t),V=(0,n.useRef)(r),z=function(){return V.current},F=function(){return z().isVisible()&&z().isOnline()},U=function(e){return a.set(M,d(a.get(M),e))},H=a.get(j),W=l(s)?r.fallback[j]:s,G=l(H)?W:H,J=a.get(M)||{},Y=J.error,K=function(){return l(v)?!z().isPaused()&&(y?!l(G):l(G)||r.revalidateIfStale):v},Q=!(!j||!t)&&(!!J.isValidating||!T.current&&K()),X=function(e,t){var r=(0,n.useState)({})[1],o=(0,n.useRef)(e),i=(0,n.useRef)({data:!1,error:!1,isValidating:!1}),a=(0,n.useCallback)((function(e){var n=!1,a=o.current;for(var c in e){var u=c;a[u]!==e[u]&&(a[u]=e[u],i.current[u]&&(n=!0))}n&&!t.current&&r({})}),[]);return k((function(){o.current=e})),[o,i.current,a]}({data:G,error:Y,isValidating:Q},D),ee=X[0],te=X[1],re=X[2],ne=(0,n.useCallback)((function(e){return o(void 0,void 0,void 0,(function(){var t,n,o,s,f,d,p,h,y,v,b,g,m;return i(this,(function(i){switch(i.label){case 0:if(t=N.current,!j||!t||D.current||z().isPaused())return[2,!1];s=!0,f=e||{},d=!x[j]||!f.dedupe,p=function(){return!D.current&&j===B.current&&T.current},h=function(){var e=x[j];e&&e[1]===o&&delete x[j]},y={isValidating:!1},v=function(){U({isValidating:!1}),p()&&re(y)},U({isValidating:!0}),re({isValidating:!0}),i.label=1;case 1:return i.trys.push([1,3,,4]),d&&(Z(a,j,ee.current.data,ee.current.error,!0),r.loadingTimeout&&!a.get(j)&&setTimeout((function(){s&&p()&&z().onLoadingSlow(j,r)}),r.loadingTimeout),x[j]=[t.apply(void 0,A),I()]),m=x[j],n=m[0],o=m[1],[4,n];case 2:return n=i.sent(),d&&setTimeout(h,r.dedupingInterval),x[j]&&x[j][1]===o?(U({error:u}),y.error=u,b=S[j],!l(b)&&(o<=b[0]||o<=b[1]||0===b[1])?(v(),d&&p()&&z().onDiscarded(j),[2,!1]):(c(ee.current.data,n)?y.data=ee.current.data:y.data=n,c(a.get(j),n)||a.set(j,n),d&&p()&&z().onSuccess(n,j,r),[3,4])):(d&&p()&&z().onDiscarded(j),[2,!1]);case 3:return g=i.sent(),h(),z().isPaused()||(U({error:g}),y.error=g,d&&p()&&(z().onError(g,j,r),r.shouldRetryOnError&&F()&&z().onErrorRetry(g,j,r,ne,{retryCount:(f.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return s=!1,v(),p()&&d&&Z(a,j,y.data,y.error,!1),[2,!0]}}))}))}),[j]),oe=(0,n.useCallback)(L.bind(u,a,(function(){return B.current})),[]);if(k((function(){N.current=t,V.current=r})),k((function(){if(j){var e=T.current,t=ne.bind(u,$),r=0,n=q(j,E,(function(e,t,r){re(d({error:t,isValidating:r},c(ee.current.data,e)?u:{data:e}))})),o=q(j,O,(function(e){if(0==e){var n=Date.now();z().revalidateOnFocus&&n>r&&F()&&(r=n+z().focusThrottleInterval,t())}else if(1==e)z().revalidateOnReconnect&&F()&&t();else if(2==e)return ne()}));return D.current=!1,B.current=j,T.current=!0,e&&re({data:G,error:Y,isValidating:Q}),K()&&(l(G)||P?t():(i=t,h()&&typeof window.requestAnimationFrame!=p?window.requestAnimationFrame(i):setTimeout(i,1))),function(){D.current=!0,n(),o()}}var i}),[j,ne]),k((function(){var e;function t(){var t=f(b)?b(G):b;t&&-1!==e&&(e=setTimeout(r,t))}function r(){ee.current.error||!g&&!z().isVisible()||!m&&!z().isOnline()?t():ne($).then(t)}return t(),function(){e&&(clearTimeout(e),e=-1)}}),[b,g,m,ne]),(0,n.useDebugValue)(G),y&&l(G)&&j)throw N.current=t,V.current=r,l(Y)?ne($):Y;return{mutate:oe,get data(){return te.data=!0,G},get error(){return te.error=!0,Y},get isValidating(){return te.isValidating=!0,Q}}},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=G(),n=W(e),o=n[0],i=n[1],c=n[2],u=U(r,c),s=a,l=u.use;if(l)for(var f=l.length;f-- >0;)s=l[f](s);return s(o,i||u.fetcher,u)})}}]);
3
+ //# sourceMappingURL=158.js.map
File without changes