@worktango/ai-assistant 0.0.105 → 0.0.106
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/README.md +41 -0
- package/dist/{Absenteeism-vN3dczpk.mjs → Absenteeism-BSkoRzJx.mjs} +1 -1
- package/dist/{ActivityFeed-BP2T7qB8.mjs → ActivityFeed-clffD7nc.mjs} +1 -1
- package/dist/{AddUser-yaaOR4Gl.mjs → AddUser-Cv_IDb_b.mjs} +1 -1
- package/dist/{Admin-TUo7ZFYb.mjs → Admin-DWH5k64Y.mjs} +1 -1
- package/dist/{Admin-DhtkOjyJ.mjs → Admin-Z7R_uaGz.mjs} +1 -1
- package/dist/{AiGeneral-Co7bSAKP.mjs → AiGeneral-D-aWPBH_.mjs} +1 -1
- package/dist/{AiScoring-CSc4RlU6.mjs → AiScoring-pQjUcLAZ.mjs} +1 -1
- package/dist/{AiText-CXOb2P9v.mjs → AiText-C1G7FAox.mjs} +1 -1
- package/dist/{Anniversary-_bkDYwVC.mjs → Anniversary-C_P7JSo4.mjs} +1 -1
- package/dist/{Appreciation-D8naFIhP.mjs → Appreciation-CkbkHihC.mjs} +1 -1
- package/dist/{ArrowDown-C0HHs0pc.mjs → ArrowDown-CHdEdq3B.mjs} +1 -1
- package/dist/{ArrowLeft-CsiCR6lG.mjs → ArrowLeft-ay1OpzH_.mjs} +1 -1
- package/dist/{ArrowRight-DGt0bXg5.mjs → ArrowRight-C7BFro_3.mjs} +1 -1
- package/dist/{ArrowUp-BqYiMrAW.mjs → ArrowUp-DVLr2Wa7.mjs} +1 -1
- package/dist/{Attachment-B44Th4u-.mjs → Attachment-CJm3iwWG.mjs} +1 -1
- package/dist/{BeQuickDontHurry-dw56U3kA.mjs → BeQuickDontHurry-CLcrpI6P.mjs} +1 -1
- package/dist/{Birthday-h-Pn9OrU.mjs → Birthday-7Pt1rwYB.mjs} +1 -1
- package/dist/{BrandPromise-CjaAMXzf.mjs → BrandPromise-DGQTlW5f.mjs} +1 -1
- package/dist/{BrandVision-DQB3yq7v.mjs → BrandVision-B9GWWUqX.mjs} +1 -1
- package/dist/{Calendar-CTUeAM4S.mjs → Calendar-D2JFoIKn.mjs} +1 -1
- package/dist/{CaretDn-SI6rl-jR.mjs → CaretDn-BN_BtftL.mjs} +1 -1
- package/dist/{CaretDown-DTMOm8Xk.mjs → CaretDown-CWz4ZwoC.mjs} +1 -1
- package/dist/{CaretLeft-GP_niTPu.mjs → CaretLeft-7BftEv9x.mjs} +1 -1
- package/dist/{CaretRight-8kL0e94S.mjs → CaretRight-Hj16_R23.mjs} +1 -1
- package/dist/{CaretUp-ChbxgeuF.mjs → CaretUp-BrDS-bvL.mjs} +1 -1
- package/dist/{ChallengeAccepted-CY8XRve5.mjs → ChallengeAccepted-Zjodpasl.mjs} +1 -1
- package/dist/{CheckIn-DcS885j0.mjs → CheckIn-b-hbRkzU.mjs} +1 -1
- package/dist/{CheckIns-Bm89hpwo.mjs → CheckIns-BHZzHiKi.mjs} +1 -1
- package/dist/{CheckSeal-CgywOKVg.mjs → CheckSeal-D5rssnFa.mjs} +1 -1
- package/dist/{Checkmark-DKjVxb2Q.mjs → Checkmark-cScBzOku.mjs} +1 -1
- package/dist/{Clock-CZLQaczF.mjs → Clock-EmmfgeXW.mjs} +1 -1
- package/dist/{Close-BF3-6viD.mjs → Close-Cx5B03-O.mjs} +1 -1
- package/dist/{CloudDownload-Vj69VxMN.mjs → CloudDownload-CLmn9uCJ.mjs} +1 -1
- package/dist/{Comment-CuassOG8.mjs → Comment-D_tOwfgY.mjs} +1 -1
- package/dist/{Comments-D4NQqdw9.mjs → Comments-BQgFtm5m.mjs} +1 -1
- package/dist/{Connections-9NIdMV_U.mjs → Connections-wavfJfON.mjs} +1 -1
- package/dist/{Copy-Dw6SIcVv.mjs → Copy-BFQz1TsC.mjs} +1 -1
- package/dist/{CustomQuestion-CZef32xQ.mjs → CustomQuestion-DH9tlLq0.mjs} +1 -1
- package/dist/{CustomerSuccess-gPjpKJnh.mjs → CustomerSuccess-DDnimu6X.mjs} +1 -1
- package/dist/{DatePicker-DVD9fFOG.mjs → DatePicker-BdxkpZdw.mjs} +1 -1
- package/dist/{Dot-CmoxuuH6.mjs → Dot-ByCvMvRs.mjs} +1 -1
- package/dist/{Download-Dlvdx3i2.mjs → Download-BpI13NML.mjs} +1 -1
- package/dist/{Drag-CCLGunXK.mjs → Drag-BZZ1UEVW.mjs} +1 -1
- package/dist/{Earn-CradVaJ1.mjs → Earn-DHkCK8pH.mjs} +1 -1
- package/dist/{Email-B47QKqMM.mjs → Email-D2fqiSaZ.mjs} +1 -1
- package/dist/{EmojiDisplay-4IXqO1gn.mjs → EmojiDisplay-COyxT50q.mjs} +2 -2
- package/dist/{EmojiPicker-5Zi1xUVI.mjs → EmojiPicker-BmW_23rb.mjs} +2 -2
- package/dist/{EnpsSurvey-CB_Lwv5y.mjs → EnpsSurvey-kdAojUlE.mjs} +1 -1
- package/dist/{Expired-CBDGf_71.mjs → Expired-BlqSFpg0.mjs} +1 -1
- package/dist/{Eye-Cemhs7Lc.mjs → Eye-T6khJu4n.mjs} +1 -1
- package/dist/{Feedback-D-qFgwwY.mjs → Feedback-CeAY-4S8.mjs} +1 -1
- package/dist/{Feedback-Ccy_EovP.mjs → Feedback-DQ0auy8x.mjs} +1 -1
- package/dist/{Filter-TAlCbaCZ.mjs → Filter-pwb6pi2x.mjs} +1 -1
- package/dist/{Flag-CRl9LgyR.mjs → Flag-BxpswTRb.mjs} +1 -1
- package/dist/{Giphy-Dj7LubqY.mjs → Giphy-3VW06GkN.mjs} +1 -1
- package/dist/{GoalCount-DQPGJ0L3.mjs → GoalCount-UYyh-Q_f.mjs} +1 -1
- package/dist/{GoalPercent-BAFTY5G6.mjs → GoalPercent-Cz80xDXH.mjs} +1 -1
- package/dist/{GoalTask-CQGe4PAL.mjs → GoalTask-BXGfvQ1i.mjs} +1 -1
- package/dist/{GoalTask-D1vq5M-x.mjs → GoalTask-ZN5Kd6dP.mjs} +1 -1
- package/dist/{Goals-B46Db01K.mjs → Goals-BYGavoyF.mjs} +1 -1
- package/dist/{Goals-Ck76n8ta.mjs → Goals-DwHOFjx9.mjs} +1 -1
- package/dist/{Growth-ClcYCfdG.mjs → Growth-BmJ0spe8.mjs} +1 -1
- package/dist/{Hamburger-DWZTx-qI.mjs → Hamburger-DfJ95EBO.mjs} +1 -1
- package/dist/{Help-DhJzYqX1.mjs → Help-etUgO5Bb.mjs} +1 -1
- package/dist/{HighFive-d5ACTyxW.mjs → HighFive-Dp2NQlMK.mjs} +1 -1
- package/dist/{HighFive-C5jVZXrG.mjs → HighFive-orCVH7tZ.mjs} +1 -1
- package/dist/{Home-DVxP0ItD.mjs → Home-DWhEGSJW.mjs} +1 -1
- package/dist/{Home-DSm0Auoo.mjs → Home-RIcKMhx8.mjs} +1 -1
- package/dist/{HorizontalLine-C3crLT9L.mjs → HorizontalLine-RDXOELfY.mjs} +1 -1
- package/dist/{Hourglass-Bvqg0jYR.mjs → Hourglass-DFI_uktS.mjs} +1 -1
- package/dist/{Image-BPzxGFVQ.mjs → Image-B2lTOFQV.mjs} +1 -1
- package/dist/{ImageFile-ciFTkBa3.mjs → ImageFile-CXewA-IP.mjs} +1 -1
- package/dist/{InGoodCompany-NnWffHSB.mjs → InGoodCompany-w8LX93U7.mjs} +1 -1
- package/dist/{Incentives-DP0i6yLk.mjs → Incentives-DbttQZw9.mjs} +1 -1
- package/dist/{Info-DuK1aCtW.mjs → Info-CDb8ZfD-.mjs} +1 -1
- package/dist/{Insights-RWfmcE0y.mjs → Insights-0kENcXoM.mjs} +1 -1
- package/dist/{Insights-ABzj6s8z.mjs → Insights-DDKxfP36.mjs} +1 -1
- package/dist/{Integrations-DVslQ8G0.mjs → Integrations-Ck_6gRmx.mjs} +1 -1
- package/dist/{KazooLogo-BmSiIpMv.mjs → KazooLogo-BF7fSs3v.mjs} +1 -1
- package/dist/{KnowYourAudience-BO7-AYom.mjs → KnowYourAudience-UjeVQaqo.mjs} +1 -1
- package/dist/{Launch-CrmZe7MA.mjs → Launch-c800vmSV.mjs} +1 -1
- package/dist/{Link-d0imuk81.mjs → Link-CuZ6BpZi.mjs} +1 -1
- package/dist/{LinkArrow-Dwb3mPyU.mjs → LinkArrow-CP0kBYoA.mjs} +1 -1
- package/dist/{Loading-CuWPqGsj.mjs → Loading-DXhcnL-L.mjs} +1 -1
- package/dist/{Lock-hi82OzZa.mjs → Lock-C5NdEcGi.mjs} +1 -1
- package/dist/{Management-BEWvTosz.mjs → Management-eqInJfMr.mjs} +1 -1
- package/dist/{MeatballMenu-ChF4akqq.mjs → MeatballMenu-rNtUmBY4.mjs} +1 -1
- package/dist/{Messages-CqByMptt.mjs → Messages-BfweRIM2.mjs} +1 -1
- package/dist/{Microphone-D0JAWwpN.mjs → Microphone-Co-QRg-m.mjs} +1 -1
- package/dist/{Mobile-7e6IWA-i.mjs → Mobile-CV-rQKzx.mjs} +1 -1
- package/dist/{Nomination-CPtg3CD9.mjs → Nomination-DUsx-Rca.mjs} +1 -1
- package/dist/{NominationsAndAwards-BO4gtNaO.mjs → NominationsAndAwards-D6-5edDc.mjs} +1 -1
- package/dist/{Notification-DJGSBIFw.mjs → Notification-DjVRcJwU.mjs} +1 -1
- package/dist/{Okrs-ubrP8dSR.mjs → Okrs-8txrOiJA.mjs} +1 -1
- package/dist/{Pause-0JIqNbyR.mjs → Pause-YZlKhr4I.mjs} +1 -1
- package/dist/{PeerToPeer-KAemVcyV.mjs → PeerToPeer-DvwhOr4C.mjs} +1 -1
- package/dist/{Pencil-6BFfkOpi.mjs → Pencil-s_g0aXkp.mjs} +1 -1
- package/dist/{People-DJGo8C60.mjs → People-BqADw5ox.mjs} +1 -1
- package/dist/{PerformanceManagement-BdCWJyzB.mjs → PerformanceManagement-BZw5CQe-.mjs} +1 -1
- package/dist/{Pin-C-3A-UZT.mjs → Pin-BQ9wiCVU.mjs} +1 -1
- package/dist/{PinnedIconAward-Bzw0tMw0.mjs → PinnedIconAward-DMbiVZT9.mjs} +1 -1
- package/dist/{PinnedIconBrightIdea-DQWSIu2s.mjs → PinnedIconBrightIdea-C9D4RHom.mjs} +1 -1
- package/dist/{PinnedIconBullseye-ClnPFpwq.mjs → PinnedIconBullseye-Cj34FSUk.mjs} +1 -1
- package/dist/{PinnedIconChampagne-BVrNU_Y9.mjs → PinnedIconChampagne-B8DvX1YA.mjs} +1 -1
- package/dist/{PinnedIconCheer-Drs7o9CW.mjs → PinnedIconCheer-DG72GOoL.mjs} +1 -1
- package/dist/{PinnedIconCrown-CAwk1F6H.mjs → PinnedIconCrown-C0z4Nvln.mjs} +1 -1
- package/dist/{PinnedIconDiamond-B-bVEGR1.mjs → PinnedIconDiamond-DcUCHTVu.mjs} +1 -1
- package/dist/{PinnedIconHoleInOne-BZx2scWX.mjs → PinnedIconHoleInOne-Dj55Wp6x.mjs} +1 -1
- package/dist/{PinnedIconMedal-Dv3G1jT3.mjs → PinnedIconMedal-BS5EIacZ.mjs} +1 -1
- package/dist/{PinnedIconMetrics-DauHJoD2.mjs → PinnedIconMetrics-DneODiZH.mjs} +1 -1
- package/dist/{PinnedIconPin-BIAxeaf8.mjs → PinnedIconPin-BhdPp2oZ.mjs} +1 -1
- package/dist/{PinnedIconRockAndRoll-Bn8v76lW.mjs → PinnedIconRockAndRoll-CGqaluUe.mjs} +1 -1
- package/dist/{PinnedIconRocket-DA_1t7qK.mjs → PinnedIconRocket-CvwKX3Aw.mjs} +1 -1
- package/dist/{PinnedIconStrength-Btf0f0eg.mjs → PinnedIconStrength-CdIxjA8L.mjs} +1 -1
- package/dist/{PinnedIconTeddyBear-DKiaX_sM.mjs → PinnedIconTeddyBear-C0zUi2BN.mjs} +1 -1
- package/dist/{PlatformLogo-DwRp94-4.mjs → PlatformLogo-CtBzTGCP.mjs} +1 -1
- package/dist/{Plus-Di6zqPST.mjs → Plus-Cxl9W0O_.mjs} +1 -1
- package/dist/{Popper-BlHAQoEY.mjs → Popper-BfuoZXrI.mjs} +1 -1
- package/dist/{PrivateEye-DzwKGeDy.mjs → PrivateEye-DFIRfhcJ.mjs} +1 -1
- package/dist/{PrivatePushPin-CZUUSV12.mjs → PrivatePushPin-CnYu0-0u.mjs} +1 -1
- package/dist/{Processing-Co-okzXH.mjs → Processing-CkX-4Z3N.mjs} +1 -1
- package/dist/{Productivity-BkXBwb_G.mjs → Productivity-PPAm4YUG.mjs} +1 -1
- package/dist/{ProgressCircle-DscFCf38.mjs → ProgressCircle-wjRT0fKY.mjs} +1 -1
- package/dist/{PulseSurvey-4hZEHLAI.mjs → PulseSurvey-1a8Uf5gm.mjs} +1 -1
- package/dist/{PushPin-BjD3oEJZ.mjs → PushPin-CzOrN3QC.mjs} +1 -1
- package/dist/{QuotesLeft-EP4HEx2t.mjs → QuotesLeft-DlyHWrKm.mjs} +1 -1
- package/dist/{QuotesRight-RlpRJwl9.mjs → QuotesRight-BBgA0YNz.mjs} +1 -1
- package/dist/{Recognition-4YO9ysy-.mjs → Recognition-DAf1nQGi.mjs} +1 -1
- package/dist/{Recognition-BFIfxYfn.mjs → Recognition-DXC2qQnH.mjs} +1 -1
- package/dist/{Retention-B6WYgfQi.mjs → Retention-BmC-NyTd.mjs} +1 -1
- package/dist/{Rewards-DuDg8mpU.mjs → Rewards-BAJLIYnI.mjs} +1 -1
- package/dist/{Rewards-anl8krTo.mjs → Rewards-C4T9Cl_Z.mjs} +1 -1
- package/dist/{RewardsCatalog-Dnu5p6nu.mjs → RewardsCatalog-ZkCmsFJH.mjs} +1 -1
- package/dist/{Roadmap-_b06LVG1.mjs → Roadmap-_uVLpXcn.mjs} +1 -1
- package/dist/{Search-BOFl4mUG.mjs → Search-BH_VIouS.mjs} +1 -1
- package/dist/{Security-DCl46_2M.mjs → Security-BCToeog-.mjs} +1 -1
- package/dist/{SendRecognition-zBAPUblE.mjs → SendRecognition-B3Epzcy-.mjs} +1 -1
- package/dist/{ShareLink-DvLwGJjN.mjs → ShareLink-CHRkXyYi.mjs} +1 -1
- package/dist/{SidebarCollapse-CthDG1FC.mjs → SidebarCollapse-BvnLbUtc.mjs} +1 -1
- package/dist/{Skill-CO7jdSB0.mjs → Skill-Dc35nwK1.mjs} +1 -1
- package/dist/{Skills-BhwP7C4n.mjs → Skills-DTwXmnTz.mjs} +1 -1
- package/dist/{Smiley-CH7-53oU.mjs → Smiley-D0IXLh0c.mjs} +1 -1
- package/dist/{Stop-7-qI3fO4.mjs → Stop-B20D-rl1.mjs} +1 -1
- package/dist/{Survey-jIyinddO.mjs → Survey-C-Jsk51t.mjs} +1 -1
- package/dist/{Surveys-CshU35Vk.mjs → Surveys-CXoYCeZD.mjs} +1 -1
- package/dist/{SyncUps-8mUQUswj.mjs → SyncUps-CRFLvsF5.mjs} +1 -1
- package/dist/{Syncs-D4NkX8hP.mjs → Syncs-BsMg45qe.mjs} +1 -1
- package/dist/{TalentReview-BmG6Up94.mjs → TalentReview-C2OyqAhi.mjs} +1 -1
- package/dist/{TalentReview-BM9HpEKJ.mjs → TalentReview-Cycp9omP.mjs} +1 -1
- package/dist/{TalentReviewInsights-CC3r4NSV.mjs → TalentReviewInsights-J8M-i2H0.mjs} +1 -1
- package/dist/{TaskCompleted-B-diUk50.mjs → TaskCompleted-xeJLecX9.mjs} +1 -1
- package/dist/{Team-DLD9MA5O.mjs → Team-DG7AFOsi.mjs} +1 -1
- package/dist/{Teams-bRXEIT88.mjs → Teams-CPP69q5q.mjs} +1 -1
- package/dist/{TextBold-DyWRL7n1.mjs → TextBold-BJW7PywG.mjs} +1 -1
- package/dist/{TextBulletList-CP4HERhx.mjs → TextBulletList-DQxNdAqK.mjs} +1 -1
- package/dist/{TextInput-gVEaIgBV.mjs → TextInput-CFOtPW3q.mjs} +1 -1
- package/dist/{TextItalic-CWG720LM.mjs → TextItalic-OqDIbzvy.mjs} +1 -1
- package/dist/{TextNumberList-_-6DjXo0.mjs → TextNumberList-BdOiSQRW.mjs} +1 -1
- package/dist/{TextUnderline-BCOodYc6.mjs → TextUnderline-DriAalE7.mjs} +1 -1
- package/dist/{Toggle-jcDDkCKL.mjs → Toggle-CBbWHEJc.mjs} +1 -1
- package/dist/{Translate-Ca7AOkqN.mjs → Translate-Bx2imP3c.mjs} +1 -1
- package/dist/{Trash-BxhjQ2nC.mjs → Trash-CoSTymt8.mjs} +1 -1
- package/dist/{TrendDown-L29yM8Hz.mjs → TrendDown-CL39PEr2.mjs} +1 -1
- package/dist/{TrendUp-DidCarHp.mjs → TrendUp-BN2L_LXw.mjs} +1 -1
- package/dist/{Undo-DjaGUApO.mjs → Undo-0qoDNTAn.mjs} +1 -1
- package/dist/{Unplugged-CiKayUCX.mjs → Unplugged-4iYZ9UBx.mjs} +1 -1
- package/dist/{UpDownCaret-DulvxjtL.mjs → UpDownCaret-DNI9ZDEw.mjs} +1 -1
- package/dist/{VerticalLine-DeaDdcr4.mjs → VerticalLine-DIQ6Dos_.mjs} +1 -1
- package/dist/{Warning-DDrTU6HN.mjs → Warning-DksHjHJs.mjs} +1 -1
- package/dist/{WarningNoOutline-B3hCQJlI.mjs → WarningNoOutline-CLBs4lxn.mjs} +1 -1
- package/dist/{YesAnd-COJ8lQ6Q.mjs → YesAnd-BzX3MoHa.mjs} +1 -1
- package/dist/{emoji-Cxlu8ki4.mjs → emoji-Dl39mbAY.mjs} +1 -1
- package/dist/express.js +277 -3
- package/dist/{react-apexcharts.min-WUYkLvUY.mjs → react-apexcharts.min-CyapRKVu.mjs} +1 -1
- package/dist/react.es.js +1 -1
- package/dist/react.umd.js +2 -2
- package/dist/{reactComponent-C28s58wH.mjs → reactComponent-DMmMkRID.mjs} +225 -221
- package/express.d.ts +33 -0
- package/package.json +1 -1
package/dist/react.umd.js
CHANGED
|
@@ -82,13 +82,13 @@ doc.body (`+s+`):
|
|
|
82
82
|
The above lifecycles should be removed. Learn more about this warning here:
|
|
83
83
|
https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof t.getDerivedStateFromProps=="function"&&(e.componentWillMount=X6,e.componentWillReceiveProps=Y6),typeof e.getSnapshotBeforeUpdate=="function"){if(typeof e.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");e.componentWillUpdate=Z6;var s=e.componentDidUpdate;e.componentDidUpdate=function(u,f,d){var h=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:d;s.call(this,u,f,h)}}return t}const eL=zr(Object.freeze(Object.defineProperty({__proto__:null,polyfill:Jj},Symbol.toStringTag,{value:"Module"})));var J6;function tL(){if(J6)return as;J6=1,Object.defineProperty(as,"__esModule",{value:!0}),as.bodyOpenClassName=as.portalClassName=void 0;var t=Object.assign||function(D){for(var S=1;S<arguments.length;S++){var P=arguments[S];for(var U in P)Object.prototype.hasOwnProperty.call(P,U)&&(D[U]=P[U])}return D},e=function(){function D(S,P){for(var U=0;U<P.length;U++){var I=P[U];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(S,I.key,I)}}return function(S,P,U){return P&&D(S.prototype,P),U&&D(S,U),S}}(),i=M,a=m(i),r=Yo,n=m(r),o=O6(),s=m(o),l=Zj(),u=m(l),f=N6(),d=c(f),h=Qc(),_=m(h),F=eL;function c(D){if(D&&D.__esModule)return D;var S={};if(D!=null)for(var P in D)Object.prototype.hasOwnProperty.call(D,P)&&(S[P]=D[P]);return S.default=D,S}function m(D){return D&&D.__esModule?D:{default:D}}function A(D,S){if(!(D instanceof S))throw new TypeError("Cannot call a class as a function")}function p(D,S){if(!D)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S&&(typeof S=="object"||typeof S=="function")?S:D}function w(D,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof S);D.prototype=Object.create(S&&S.prototype,{constructor:{value:D,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(D,S):D.__proto__=S)}var b=as.portalClassName="ReactModalPortal",y=as.bodyOpenClassName="ReactModal__Body--open",k=n.default.createPortal!==void 0,C=function(){return k?n.default.createPortal:n.default.unstable_renderSubtreeIntoContainer};function v(D){return D()}var E=function(D){w(S,D);function S(){var P,U,I,q;A(this,S);for(var T=arguments.length,N=Array(T),H=0;H<T;H++)N[H]=arguments[H];return q=(U=(I=p(this,(P=S.__proto__||Object.getPrototypeOf(S)).call.apply(P,[this].concat(N))),I),I.removePortal=function(){!k&&n.default.unmountComponentAtNode(I.node);var $=v(I.props.parentSelector);$?$.removeChild(I.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},I.portalRef=function($){I.portal=$},I.renderPortal=function($){var x=C(),L=x(I,a.default.createElement(u.default,t({defaultStyles:S.defaultStyles},$)),I.node);I.portalRef(L)},U),p(I,q)}return e(S,[{key:"componentDidMount",value:function(){if(h.canUseDOM){k||(this.node=document.createElement("div")),this.node.className=this.props.portalClassName;var U=v(this.props.parentSelector);U.appendChild(this.node),!k&&this.renderPortal(this.props)}}},{key:"getSnapshotBeforeUpdate",value:function(U){var I=v(U.parentSelector),q=v(this.props.parentSelector);return{prevParent:I,nextParent:q}}},{key:"componentDidUpdate",value:function(U,I,q){if(h.canUseDOM){var T=this.props,N=T.isOpen,H=T.portalClassName;U.portalClassName!==H&&(this.node.className=H);var $=q.prevParent,x=q.nextParent;x!==$&&($.removeChild(this.node),x.appendChild(this.node)),!(!U.isOpen&&!N)&&!k&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(!(!h.canUseDOM||!this.node||!this.portal)){var U=this.portal.state,I=Date.now(),q=U.isOpen&&this.props.closeTimeoutMS&&(U.closesAt||I+this.props.closeTimeoutMS);q?(U.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,q-I)):this.removePortal()}}},{key:"render",value:function(){if(!h.canUseDOM||!k)return null;!this.node&&k&&(this.node=document.createElement("div"));var U=C();return U(a.default.createElement(u.default,t({ref:this.portalRef,defaultStyles:S.defaultStyles},this.props)),this.node)}}],[{key:"setAppElement",value:function(U){d.setElement(U)}}]),S}(i.Component);return E.propTypes={isOpen:s.default.bool.isRequired,style:s.default.shape({content:s.default.object,overlay:s.default.object}),portalClassName:s.default.string,bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,className:s.default.oneOfType([s.default.string,s.default.shape({base:s.default.string.isRequired,afterOpen:s.default.string.isRequired,beforeClose:s.default.string.isRequired})]),overlayClassName:s.default.oneOfType([s.default.string,s.default.shape({base:s.default.string.isRequired,afterOpen:s.default.string.isRequired,beforeClose:s.default.string.isRequired})]),appElement:s.default.instanceOf(_.default),onAfterOpen:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,ariaHideApp:s.default.bool,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,parentSelector:s.default.func,aria:s.default.object,data:s.default.object,role:s.default.string,contentLabel:s.default.string,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func},E.defaultProps={isOpen:!1,portalClassName:b,bodyOpenClassName:y,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,parentSelector:function(){return document.body}},E.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,F.polyfill)(E),as.default=E,as}var e5;function iL(){return e5||(e5=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=tL(),a=r(i);function r(n){return n&&n.__esModule?n:{default:n}}e.default=a.default,t.exports=e.default}(yh,yh.exports)),yh.exports}var aL=iL();const rL=Ni(aL);function Dh(){const t=M.useRef([]),e=M.useCallback(()=>t.current.some(Boolean),[]);return M.useEffect(()=>{const i=t.current.length;return t.current.push(!0),()=>{t.current[i]=!1}},[]),e}const Lr={overlay:"Modal-module_overlay_nK6rb",navigation:"Modal-module_navigation_10iFR","modal-small":"Modal-module_modal-small_eaOUh","modal-medium-deprecated":"Modal-module_modal-medium-deprecated_22BlI","modal-medium":"Modal-module_modal-medium_oKK5A","close-button-underlay":"Modal-module_close-button-underlay_EiRUb","close-button":"Modal-module_close-button_Lqeko",modal:"Modal-module_modal_m9BCW","modal-large":"Modal-module_modal-large_H3Cxg","modal-full":"Modal-module_modal-full_nQFTD","full-width-header":"Modal-module_full-width-header_WenWb","content-wrapper":"Modal-module_content-wrapper_pwqLo"},nL={small:Lr["modal-small"],medium_deprecated:Lr["modal-medium-deprecated"],medium:Lr["modal-medium"],large:Lr["modal-large"],full:Lr["modal-full"]};function Nc({children:t,isOpen:e,onClose:i,fullWidthHeader:a=null,className:r,closeButtonUnderlayClass:n="",modalTitle:o,size:s="medium",shouldCloseOnOverlayClick:l=!0,hideTitleSpacing:u=!1}){const f=pe(Lr.modal,nL[s]),d=pe(Lr["content-container"],r),h=M.useRef(null),[_,F]=M.useState({}),c=Dh();M.useEffect(()=>{F($c(h));const p=setInterval(()=>{c()&&F($c(h))},200);return()=>clearInterval(p)},[]);const m=()=>{i==null||i()},A=()=>{F($c(h))};return g.jsxs(rL,{className:f,isOpen:!!e,onRequestClose:m,onAfterOpen:A,overlayClassName:Lr.overlay,shouldCloseOnOverlayClick:l,ariaHideApp:!1,style:{overlay:_},contentRef:p=>h.current=p,children:[g.jsx(oL,{onClose:m}),a&&g.jsx("div",{className:Lr["full-width-header"],children:a}),g.jsxs("div",{className:pe(Lr["content-wrapper"],d),children:[g.jsx("div",{"data-testid":"close-button-underlay",className:pe(Lr["close-button-underlay"],n)}),g.jsx(sL,{modalTitle:o,hideTitleSpacing:u}),t]})]})}function $c(t){if(!t.current)return{};const i=t.current.offsetHeight,r=document.documentElement.clientHeight-i;if(r<20)return{};const o=`${Math.floor(r/2)}px`;return{paddingTop:o,paddingBottom:o}}function oL({onClose:t}){return g.jsx("div",{className:Lr.navigation,children:g.jsx($i,{variant:"transparent",onClick:t,className:Lr["close-button"],"data-testid":"close-modal-button",children:g.jsx(Ut,{icon:"close"})})})}function sL({modalTitle:t,hideTitleSpacing:e}){return t?g.jsxs(g.Fragment,{children:[g.jsx(va,{size:"h3",level:"2",children:t}),!e&&g.jsx(x6,{})]}):null}function yn(){return typeof window=="object"}const wn={wrapper:"ProfilePic-module_wrapper_5WmGZ","wrapper--small":"ProfilePic-module_wrapper--small_aoBkW","wrapper--medium":"ProfilePic-module_wrapper--medium_AY9gL","wrapper--large":"ProfilePic-module_wrapper--large_wmjLT","wrapper--fluid":"ProfilePic-module_wrapper--fluid_7wZYq","pic-wrapper":"ProfilePic-module_pic-wrapper_pG71d",initials:"ProfilePic-module_initials_6FDeI",pic:"ProfilePic-module_pic_oyt-o",grayscale:"ProfilePic-module_grayscale_FoDc-"};function Eh({className:t,dimensions:e,user:i,size:a="large",icon:r,grayscale:n=!1}){const o=M.useRef(null),s=r?void 0:lL(i),l=fL(o,s),u=e&&a!=="fluid"?{height:e,width:e}:{},f=s?{backgroundImage:`url(${s})`}:{},d={};a!=="fluid"&&e?d.fontSize=e/2:a==="fluid"&&!s&&l.width!==0&&(d.fontSize=l.width/2);const h=pe(wn.wrapper,{[wn.initials]:!s,[uL(a)]:!e||a==="fluid",[wn["wrapper--hover"]]:!!(t!=null&&t.includes("withHover"))},t),_=pe(wn["pic-wrapper"],{[wn.pic]:s,[wn.initials]:!s,[wn.grayscale]:n}),F=r?g.jsx(Ut,{icon:r,color:"white"}):g.jsx(g.Fragment,{children:i.initials});return g.jsx("div",{"data-testid":`profile-pic-${s?"image":"default"}`,className:h,style:u,ref:o,"data-grayscale":n,children:s?g.jsx("div",{className:_,style:f,"data-testid":"profile-pic-child"}):g.jsx("div",{className:_,style:d,"data-testid":"profile-pic-child-initials",children:F})})}function lL({avatarUrl:t,avatar:e,image160:i,image70:a,image30:r,profileImage:n}){return Ze(t,e,i,a,r,n)}function uL(t){switch(t){case"small":return wn["wrapper--small"];case"medium":return wn["wrapper--medium"];case"fluid":return wn["wrapper--fluid"];case"large":default:return wn["wrapper--large"]}}function fL(t,e){const i={width:!e&&t.current?t.current.offsetWidth:0,height:!e&&t.current?t.current.offsetHeight:0},[a,r]=M.useState(i),n=()=>{r(i)};return M.useEffect(()=>{if(yn()&&!e)return window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)},[e]),M.useEffect(()=>{e||n()},[e]),a}function dL(t){if(Array.isArray(t)){for(var e=0,i=new Array(t.length);e<t.length;e++)i[e]=t[e];return i}}function hL(t){if(Symbol.iterator in Object(t)||Object.prototype.toString.call(t)==="[object Arguments]")return Array.from(t)}function gL(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function Bh(t){return dL(t)||hL(t)||gL()}function Xr(){return Xr=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(t[a]=i[a])}return t},Xr.apply(this,arguments)}function _L(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function cL(t,e){for(var i=0;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function FL(t,e,i){return e&&cL(t.prototype,e),t}function jt(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function zc(t,e){return zc=Object.setPrototypeOf||function(a,r){return a.__proto__=r,a},zc(t,e)}function mL(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&zc(t,e)}function ru(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ru=function(i){return typeof i}:ru=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},ru(t)}function Sh(t){return typeof Symbol=="function"&&ru(Symbol.iterator)==="symbol"?Sh=function(i){return ru(i)}:Sh=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":ru(i)},Sh(t)}function AL(t,e){return e&&(Sh(e)==="object"||typeof e=="function")?e:jt(t)}function jh(t){return jh=Object.setPrototypeOf?Object.getPrototypeOf:function(i){return i.__proto__||Object.getPrototypeOf(i)},jh(t)}function Bt(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var Wc,t5;function pL(){if(t5)return Wc;t5=1;var t=function(e,i,a,r,n,o,s,l){if(process.env.NODE_ENV!=="production"&&i===void 0)throw new Error("invariant requires an error message argument");if(!e){var u;if(i===void 0)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var f=[a,r,n,o,s,l],d=0;u=new Error(i.replace(/%s/g,function(){return f[d++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}};return Wc=t,Wc}var bL=pL();const nu=Ni(bL);function yL(t){if(Array.isArray(t))return t}function wL(t,e){var i=[],a=!0,r=!1,n=void 0;try{for(var o=t[Symbol.iterator](),s;!(a=(s=o.next()).done)&&(i.push(s.value),!(e&&i.length===e));a=!0);}catch(l){r=!0,n=l}finally{try{!a&&o.return!=null&&o.return()}finally{if(r)throw n}}return i}function kL(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function Lh(t,e){return yL(t)||wL(t,e)||kL()}function xL(t,e){if(t==null)return{};var i={},a=Object.keys(t),r,n;for(n=0;n<a.length;n++)r=a[n],!(e.indexOf(r)>=0)&&(i[r]=t[r]);return i}function CL(t,e){if(t==null)return{};var i=xL(t,e),a,r;if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);for(r=0;r<n.length;r++)a=n[r],!(e.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(i[a]=t[a])}return i}function Q1(t){"@babel/helpers - typeof";return Q1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Q1(t)}function vL(t,e){if(Q1(t)!="object"||!t)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var a=i.call(t,e);if(Q1(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function DL(t){var e=vL(t,"string");return Q1(e)=="symbol"?e:e+""}function N1(t,e,i){return(e=DL(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Gc(t,e){(e==null||e>t.length)&&(e=t.length);for(var i=0,a=Array(e);i<e;i++)a[i]=t[i];return a}function EL(t){if(Array.isArray(t))return Gc(t)}function BL(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function SL(t,e){if(t){if(typeof t=="string")return Gc(t,e);var i={}.toString.call(t).slice(8,-1);return i==="Object"&&t.constructor&&(i=t.constructor.name),i==="Map"||i==="Set"?Array.from(t):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Gc(t,e):void 0}}function jL(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
84
84
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ao(t){return EL(t)||BL(t)||SL(t)||jL()}var ou=function(e){return e===Object(e)?Object.keys(e):[]},i5=function(e){return e===Object(e)?Object.values(e):[]};function a5(t,e){var i=Object.assign({},t);return Mh(t)&&Mh(e)&&ou(e).forEach(function(a){Mh(e[a])?a in t?i[a]=a5(t[a],e[a]):Object.assign(i,N1({},a,e[a])):Object.assign(i,N1({},a,e[a]))}),i}var Vc=function(e){for(var i=arguments.length,a=new Array(i>1?i-1:0),r=1;r<i;r++)a[r-1]=arguments[r];return a.reduce(function(n,o){return a5(n,o)},e)},LL=function(e,i){var a=Object.assign({},e);if(i)for(var r=0;r<i.length;r++)delete a[i[r]];return a},Mh=function(e){return e===Object(e)&&!(e instanceof Date)&&!Array.isArray(e)},ML=function(e){return(e||[]).filter(Boolean)},Kc=function(e){return e[0]==="&"},OL=function(e){return!Kc(e)},r5=function(e){return e.replace(/-(\w)/g,function(i,a){return a.toUpperCase()})},qL=function(e){for(var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=ou(e),r={},n=0,o=a.length;n<o;n+=1){var s=a[n],l=Object.prototype.toString.call(e[s])!=="[object Object]"||s[0]===":"||s[0]==="@"||i.indexOf(s)>=0;l&&(r[s]=e[s])}return r},n5=function(e,i){for(var a=i.map(r5),r=ou(e),n={},o=0,s=r.length;o<s;o+=1){var l=r[o];(i.indexOf(l)>=0||a.indexOf(r5(l))>=0)&&(n[l]=e[l])}return n},TL=function t(e,i){for(var a=Vc.apply(void 0,[{},LL(e,i)].concat(Ao(i5(n5(e,i))))),r=ou(a).filter(Kc),n=0,o=r.length;n<o;n+=1){var s=r[n],l=t(a[s],i);i.indexOf(s)>=0?(delete a[s],a=Vc({},a,l)):a[s]=l}return a};function o5(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),i.push.apply(i,a)}return i}function s5(t){for(var e=1;e<arguments.length;e++){var i=arguments[e]!=null?arguments[e]:{};e%2?o5(Object(i),!0).forEach(function(a){N1(t,a,i[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):o5(Object(i)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(i,a))})}return t}var IL=["animationName"],l5=function(e){var i=e.style,a=e.className;return s5(s5({},i?{style:qL(i,IL)}:{}),a?{className:a}:{})},u5=M.createContext(l5);u5.Provider;var f5=function(e){if(e){if(typeof e=="string")return[e];if(!Array.isArray(e)){var i=e;return ou(e).reduce(function(a,r){return a.concat(i[r]?[r]:[])},[])}}else return[];return e},PL={},HL=function(e){return function(i,a){var r=a||PL;e.memoize=e.memoize||new WeakMap;var n;e.memoize.has(r)?n=e.memoize.get(r):(n={},e.memoize.set(r,n));var o=f5(i).join(" ");return o in n?n[o]:n[o]=e(i||[],a)}};function d5(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),i.push.apply(i,a)}return i}function su(t){for(var e=1;e<arguments.length;e++){var i=arguments[e]!=null?arguments[e]:{};e%2?d5(Object(i),!0).forEach(function(a){N1(t,a,i[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):d5(Object(i)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(i,a))})}return t}var UL=function(e){var i=e&&ou(e)[0];return i&&i.split("__")[0].split("--")[0]},RL=function(e,i,a){if(e){var r=e.split(" ")[0],n=[].concat(Ao(i.length===0?a.map(function(o){return"".concat(r,"--").concat(o.substring(1))}):[]),Ao(i.map(function(o){return"".concat(r,"__").concat(o)})));return i.length===0?[e].concat(Ao(n)):n}};function h5(t){var e=t.style,i=t.className,a=t.classNames,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:l5,n=i||UL(a)||(e==null?void 0:e.className),o=typeof e=="function"?e:HL(function(d,h){var _=f5(d);nu(Array.isArray(_),"First parameter must be a string, an array of strings, a plain object with boolean values, or a falsy value."),nu(!h||Mh(h),"Optional second parameter must be a plain object.");var F=_.filter(Kc),c=_.filter(OL),m=c.length>0?function(w){return i5(n5(w,c))}:function(w){return[w]},A=function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return m(TL(b,F))},p=RL(n,c,F);return h5(su(su(su({},(e||h)&&{style:Vc.apply(void 0,[{}].concat(Ao(A(h)),Ao(A(e))))}),p&&{className:p.join(" ")}),a&&{classNames:a}),r)}),s=su({},typeof e=="function"?e:{style:e}),l=Ao(new Set([].concat(Ao(s.className?s.className.split(" "):[]),Ao(n?n.split(" "):[])))),u=a?ML(l.map(function(d){return a[d]})):l,f=r(su(su({},s),u.length>0?{className:u.join(" ")}:{}));return Object.assign(o,f),o}function g5(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),i.push.apply(i,a)}return i}function $1(t){for(var e=1;e<arguments.length;e++){var i=arguments[e]!=null?arguments[e]:{};e%2?g5(Object(i),!0).forEach(function(a){N1(t,a,i[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):g5(Object(i)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(i,a))})}return t}var QL=function(){for(var e=arguments.length,i=new Array(e),a=0;a<e;a++)i[a]=arguments[a];return i.reduce(function(r,n){return $1($1($1({},r),typeof n=="function"?n:{}),{},{style:$1($1({},r.style),typeof n=="function"?n.style:n)})},{})},Xc=function(e,i,a){var r=i.style,n=i.className,o=i.classNames,s=M.useContext(u5),l=M.useMemo(function(){return h5({style:r,className:n,classNames:o},s)},[r,n,o,s]);return l(a,e)},Oh={exports:{}},Yc,_5;function Zc(){if(_5)return Yc;_5=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Yc=t,Yc}var Jc,c5;function F5(){return c5||(c5=1,Jc=Function.call.bind(Object.prototype.hasOwnProperty)),Jc}var e2,m5;function NL(){if(m5)return e2;m5=1;var t=function(){};if(process.env.NODE_ENV!=="production"){var e=Zc(),i={},a=F5();t=function(n){var o="Warning: "+n;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function r(n,o,s,l,u){if(process.env.NODE_ENV!=="production"){for(var f in n)if(a(n,f)){var d;try{if(typeof n[f]!="function"){var h=Error((l||"React class")+": "+s+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof n[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}d=n[f](o,f,l,s,null,e)}catch(F){d=F}if(d&&!(d instanceof Error)&&t((l||"React class")+": type specification of "+s+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in i)){i[d.message]=!0;var _=u?u():"";t("Failed "+s+" type: "+d.message+(_??""))}}}}return r.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(i={})},e2=r,e2}var t2,A5;function $L(){if(A5)return t2;A5=1;var t=Gr(),e=R1(),i=Zc(),a=F5(),r=NL(),n=function(){};process.env.NODE_ENV!=="production"&&(n=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function o(){return null}return t2=function(s,l){var u=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function d(x){var L=x&&(u&&x[u]||x[f]);if(typeof L=="function")return L}var h="<<anonymous>>",_={array:A("array"),bigint:A("bigint"),bool:A("boolean"),func:A("function"),number:A("number"),object:A("object"),string:A("string"),symbol:A("symbol"),any:p(),arrayOf:w,element:b(),elementType:y(),instanceOf:k,node:D(),objectOf:v,oneOf:C,oneOfType:E,shape:P,exact:U};function F(x,L){return x===L?x!==0||1/x===1/L:x!==x&&L!==L}function c(x,L){this.message=x,this.data=L&&typeof L=="object"?L:{},this.stack=""}c.prototype=Error.prototype;function m(x){if(process.env.NODE_ENV!=="production")var L={},Q=0;function B(ee,V,X,J,re,O,ne){if(J=J||h,O=O||X,ne!==i){if(l){var W=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 W.name="Invariant Violation",W}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var de=J+":"+X;!L[de]&&Q<3&&(n("You are manually calling a React.PropTypes validation function for the `"+O+"` prop on `"+J+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),L[de]=!0,Q++)}}return V[X]==null?ee?V[X]===null?new c("The "+re+" `"+O+"` is marked as required "+("in `"+J+"`, but its value is `null`.")):new c("The "+re+" `"+O+"` is marked as required in "+("`"+J+"`, but its value is `undefined`.")):null:x(V,X,J,re,O)}var G=B.bind(null,!1);return G.isRequired=B.bind(null,!0),G}function A(x){function L(Q,B,G,ee,V,X){var J=Q[B],re=T(J);if(re!==x){var O=N(J);return new c("Invalid "+ee+" `"+V+"` of type "+("`"+O+"` supplied to `"+G+"`, expected ")+("`"+x+"`."),{expectedType:x})}return null}return m(L)}function p(){return m(o)}function w(x){function L(Q,B,G,ee,V){if(typeof x!="function")return new c("Property `"+V+"` of component `"+G+"` has invalid PropType notation inside arrayOf.");var X=Q[B];if(!Array.isArray(X)){var J=T(X);return new c("Invalid "+ee+" `"+V+"` of type "+("`"+J+"` supplied to `"+G+"`, expected an array."))}for(var re=0;re<X.length;re++){var O=x(X,re,G,ee,V+"["+re+"]",i);if(O instanceof Error)return O}return null}return m(L)}function b(){function x(L,Q,B,G,ee){var V=L[Q];if(!s(V)){var X=T(V);return new c("Invalid "+G+" `"+ee+"` of type "+("`"+X+"` supplied to `"+B+"`, expected a single ReactElement."))}return null}return m(x)}function y(){function x(L,Q,B,G,ee){var V=L[Q];if(!t.isValidElementType(V)){var X=T(V);return new c("Invalid "+G+" `"+ee+"` of type "+("`"+X+"` supplied to `"+B+"`, expected a single ReactElement type."))}return null}return m(x)}function k(x){function L(Q,B,G,ee,V){if(!(Q[B]instanceof x)){var X=x.name||h,J=$(Q[B]);return new c("Invalid "+ee+" `"+V+"` of type "+("`"+J+"` supplied to `"+G+"`, expected ")+("instance of `"+X+"`."))}return null}return m(L)}function C(x){if(!Array.isArray(x))return process.env.NODE_ENV!=="production"&&(arguments.length>1?n("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):n("Invalid argument supplied to oneOf, expected an array.")),o;function L(Q,B,G,ee,V){for(var X=Q[B],J=0;J<x.length;J++)if(F(X,x[J]))return null;var re=JSON.stringify(x,function(ne,W){var de=N(W);return de==="symbol"?String(W):W});return new c("Invalid "+ee+" `"+V+"` of value `"+String(X)+"` "+("supplied to `"+G+"`, expected one of "+re+"."))}return m(L)}function v(x){function L(Q,B,G,ee,V){if(typeof x!="function")return new c("Property `"+V+"` of component `"+G+"` has invalid PropType notation inside objectOf.");var X=Q[B],J=T(X);if(J!=="object")return new c("Invalid "+ee+" `"+V+"` of type "+("`"+J+"` supplied to `"+G+"`, expected an object."));for(var re in X)if(a(X,re)){var O=x(X,re,G,ee,V+"."+re,i);if(O instanceof Error)return O}return null}return m(L)}function E(x){if(!Array.isArray(x))return process.env.NODE_ENV!=="production"&&n("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var L=0;L<x.length;L++){var Q=x[L];if(typeof Q!="function")return n("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+H(Q)+" at index "+L+"."),o}function B(G,ee,V,X,J){for(var re=[],O=0;O<x.length;O++){var ne=x[O],W=ne(G,ee,V,X,J,i);if(W==null)return null;W.data&&a(W.data,"expectedType")&&re.push(W.data.expectedType)}var de=re.length>0?", expected one of type ["+re.join(", ")+"]":"";return new c("Invalid "+X+" `"+J+"` supplied to "+("`"+V+"`"+de+"."))}return m(B)}function D(){function x(L,Q,B,G,ee){return I(L[Q])?null:new c("Invalid "+G+" `"+ee+"` supplied to "+("`"+B+"`, expected a ReactNode."))}return m(x)}function S(x,L,Q,B,G){return new c((x||"React class")+": "+L+" type `"+Q+"."+B+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+G+"`.")}function P(x){function L(Q,B,G,ee,V){var X=Q[B],J=T(X);if(J!=="object")return new c("Invalid "+ee+" `"+V+"` of type `"+J+"` "+("supplied to `"+G+"`, expected `object`."));for(var re in x){var O=x[re];if(typeof O!="function")return S(G,ee,V,re,N(O));var ne=O(X,re,G,ee,V+"."+re,i);if(ne)return ne}return null}return m(L)}function U(x){function L(Q,B,G,ee,V){var X=Q[B],J=T(X);if(J!=="object")return new c("Invalid "+ee+" `"+V+"` of type `"+J+"` "+("supplied to `"+G+"`, expected `object`."));var re=e({},Q[B],x);for(var O in re){var ne=x[O];if(a(x,O)&&typeof ne!="function")return S(G,ee,V,O,N(ne));if(!ne)return new c("Invalid "+ee+" `"+V+"` key `"+O+"` supplied to `"+G+"`.\nBad object: "+JSON.stringify(Q[B],null," ")+`
|
|
85
|
-
Valid keys: `+JSON.stringify(Object.keys(x),null," "));var W=ne(X,O,G,ee,V+"."+O,i);if(W)return W}return null}return m(L)}function I(x){switch(typeof x){case"number":case"string":case"undefined":return!0;case"boolean":return!x;case"object":if(Array.isArray(x))return x.every(I);if(x===null||s(x))return!0;var L=d(x);if(L){var Q=L.call(x),B;if(L!==x.entries){for(;!(B=Q.next()).done;)if(!I(B.value))return!1}else for(;!(B=Q.next()).done;){var G=B.value;if(G&&!I(G[1]))return!1}}else return!1;return!0;default:return!1}}function q(x,L){return x==="symbol"?!0:L?L["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&L instanceof Symbol:!1}function T(x){var L=typeof x;return Array.isArray(x)?"array":x instanceof RegExp?"object":q(L,x)?"symbol":L}function N(x){if(typeof x>"u"||x===null)return""+x;var L=T(x);if(L==="object"){if(x instanceof Date)return"date";if(x instanceof RegExp)return"regexp"}return L}function H(x){var L=N(x);switch(L){case"array":case"object":return"an "+L;case"boolean":case"date":case"regexp":return"a "+L;default:return L}}function $(x){return!x.constructor||!x.constructor.name?h:x.constructor.name}return _.checkPropTypes=r,_.resetWarningCache=r.resetWarningCache,_.PropTypes=_,_},t2}var i2,p5;function zL(){if(p5)return i2;p5=1;var t=Zc();function e(){}function i(){}return i.resetWarningCache=e,i2=function(){function a(o,s,l,u,f,d){if(d!==t){var h=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 h.name="Invariant Violation",h}}a.isRequired=a;function r(){return a}var n={array:a,bigint:a,bool:a,func:a,number:a,object:a,string:a,symbol:a,any:a,arrayOf:r,element:a,elementType:a,instanceOf:r,node:a,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:i,resetWarningCache:e};return n.PropTypes=n,n},i2}var b5;function WL(){if(b5)return Oh.exports;if(b5=1,process.env.NODE_ENV!=="production"){var t=Gr(),e=!0;Oh.exports=$L()(t.isElement,e)}else Oh.exports=zL()();return Oh.exports}var GL=WL();const Pe=Ni(GL);var qh=function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},Xn={id:"__id__",display:"__display__"},y5=function(e,i){nu(i==="id"||i==="display",'Second arg must be either "id" or "display", got: "'.concat(i,'"'));var a=e.indexOf(Xn.display),r=e.indexOf(Xn.id);return a<0&&(a=null),r<0&&(r=null),nu(a!==null||r!==null,"The markup '".concat(e,"' does not contain either of the placeholders '__id__' or '__display__'")),a!==null&&r!==null?i==="id"&&r<=a||i==="display"&&a<=r?0:1:0},VL=function(e){var i=/^\/(.+)\/(\w+)?$/;return new RegExp(e.map(function(a){var r=i.exec(a.toString()),n=Lh(r,3),o=n[1],s=n[2];return nu(!s,"RegExp flags are not supported. Change /".concat(o,"/").concat(s," into /").concat(o,"/")),"(".concat(o,")")}).join("|"),"g")},w5=function(e){var i=0;return e.indexOf("__id__")>=0&&i++,e.indexOf("__display__")>=0&&i++,i},KL=function(){},z1=function(e,i,a){for(var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:KL,n=VL(i.map(function(y){return y.regex})),o=2,s=i.map(function(y){var k=y.markup,C=o;return o+=w5(k)+1,C}),l,u=0,f=0;(l=n.exec(e))!==null;){var d=s.find(function(y){return!!l[y]}),h=s.indexOf(d),_=i[h],F=_.markup,c=_.displayTransform,m=d+y5(F,"id"),A=d+y5(F,"display"),p=l[m],w=c(p,l[A]),b=e.substring(u,l.index);r(b,u,f),f+=b.length,a(l[0],l.index,f,p,w,h,u),f+=w.length,u=n.lastIndex}u<e.length&&r(e.substring(u),u,f)},Gs=function(e,i){var a="";return z1(e,i,function(r,n,o,s,l){a+=l},function(r){a+=r}),a},or=function(e,i,a){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"START";if(typeof a!="number")return a;var n,o=function(u,f,d){n===void 0&&d+u.length>=a&&(n=f+a-d)},s=function(u,f,d,h,_,F,c){n===void 0&&d+_.length>a&&(r==="NULL"?n=null:n=f+(r==="END"?u.length:0))};return z1(e,i,s,o),n===void 0?e.length:n},W1=function(e,i,a,r){return e.substring(0,i)+r+e.substring(a)},XL=function(e,i,a,r){var n=a.selectionStartBefore,o=a.selectionEndBefore,s=a.selectionEndAfter,l=Gs(e,r),u=l.length-i.length;n==="undefined"&&(n=s+u),o==="undefined"&&(o=n),n===o&&o===s&&l.length===i.length&&(n=n-1);var f=i.slice(n,s),d=Math.min(n,s),h=o;n===s&&(h=Math.max(o,n+u));var _=or(e,r,d,"START"),F=or(e,r,h,"END"),c=or(e,r,d,"NULL"),m=or(e,r,h,"NULL"),A=c===null||m===null,p=W1(e,_,F,f);if(!A){var w=Gs(p,r);if(w!==i){for(d=0;i[d]===w[d];)d++;f=i.slice(d,s),h=l.lastIndexOf(i.substring(s)),_=or(e,r,d,"START"),F=or(e,r,h,"END"),p=W1(e,_,F,f)}}return p},k5=function(e,i,a){var r=a,n=!1,o=function(l,u,f,d,h,_,F){f<=a&&f+h.length>a&&(r=f,n=!0)};if(z1(e,i,o),n)return r},G1=function(e,i){var a=[];return z1(e,i,function(r,n,o,s,l,u,f){a.push({id:s,display:l,childIndex:u,index:n,plainTextIndex:o})}),a},x5=function(e,i){return"".concat(e,"-").concat(i)},Th=function(e){return Object.values(e).reduce(function(i,a){var r=a.results;return i+r.length},0)},YL=function(e,i){var a=G1(e,i),r=a[a.length-1];return r?r.plainTextIndex+r.display.length:0},ZL=function(e){var i=qh(e),a=e[e.indexOf(Xn.display)+Xn.display.length],r=e[e.indexOf(Xn.id)+Xn.id.length];return new RegExp(i.replace(Xn.display,"([^".concat(qh(a||""),"]+?)")).replace(Xn.id,"([^".concat(qh(r||""),"]+?)")))},rs=function(e){return M.Children.toArray(e).map(function(i){var a=i.props,r=a.markup,n=a.regex,o=a.displayTransform;return{markup:r,regex:n?JL(n,r):ZL(r),displayTransform:o||function(s,l){return l||s}}})},JL=function(e,i){var a=new RegExp(e.toString()+"|").exec("").length-1,r=w5(i);return nu(a===r,"Number of capturing groups in RegExp ".concat(e.toString()," (").concat(a,") does not match the number of placeholders in the markup '").concat(i,"' (").concat(r,")")),e},eM=function(e,i,a){return e.replace(Xn.id,i).replace(Xn.display,a)},tM=[{base:"A",letters:/(A|Ⓐ|A|À|Á|Â|Ầ|Ấ|Ẫ|Ẩ|Ã|Ā|Ă|Ằ|Ắ|Ẵ|Ẳ|Ȧ|Ǡ|Ä|Ǟ|Ả|Å|Ǻ|Ǎ|Ȁ|Ȃ|Ạ|Ậ|Ặ|Ḁ|Ą|Ⱥ|Ɐ|[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F])/g},{base:"AA",letters:/(Ꜳ|[\uA732])/g},{base:"AE",letters:/(Æ|Ǽ|Ǣ|[\u00C6\u01FC\u01E2])/g},{base:"AO",letters:/(Ꜵ|[\uA734])/g},{base:"AU",letters:/(Ꜷ|[\uA736])/g},{base:"AV",letters:/(Ꜹ|Ꜻ|[\uA738\uA73A])/g},{base:"AY",letters:/(Ꜽ|[\uA73C])/g},{base:"B",letters:/(B|Ⓑ|B|Ḃ|Ḅ|Ḇ|Ƀ|Ƃ|Ɓ|[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181])/g},{base:"C",letters:/(C|Ⓒ|C|Ć|Ĉ|Ċ|Č|Ç|Ḉ|Ƈ|Ȼ|Ꜿ|[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E])/g},{base:"D",letters:/(D|Ⓓ|D|Ḋ|Ď|Ḍ|Ḑ|Ḓ|Ḏ|Đ|Ƌ|Ɗ|Ɖ|Ꝺ|Ð|[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779\u00D0])/g},{base:"DZ",letters:/(DZ|DŽ|[\u01F1\u01C4])/g},{base:"Dz",letters:/(Dz|Dž|[\u01F2\u01C5])/g},{base:"E",letters:/(E|Ⓔ|E|È|É|Ê|Ề|Ế|Ễ|Ể|Ẽ|Ē|Ḕ|Ḗ|Ĕ|Ė|Ë|Ẻ|Ě|Ȅ|Ȇ|Ẹ|Ệ|Ȩ|Ḝ|Ę|Ḙ|Ḛ|Ɛ|Ǝ|[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E])/g},{base:"F",letters:/(F|Ⓕ|F|Ḟ|Ƒ|Ꝼ|[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B])/g},{base:"G",letters:/(G|Ⓖ|G|Ǵ|Ĝ|Ḡ|Ğ|Ġ|Ǧ|Ģ|Ǥ|Ɠ|Ꞡ|Ᵹ|Ꝿ|[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E])/g},{base:"H",letters:/(H|Ⓗ|H|Ĥ|Ḣ|Ḧ|Ȟ|Ḥ|Ḩ|Ḫ|Ħ|Ⱨ|Ⱶ|Ɥ|[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D])/g},{base:"I",letters:/(I|Ⓘ|I|Ì|Í|Î|Ĩ|Ī|Ĭ|İ|Ï|Ḯ|Ỉ|Ǐ|Ȉ|Ȋ|Ị|Į|Ḭ|Ɨ|[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197])/g},{base:"J",letters:/(J|Ⓙ|J|Ĵ|Ɉ|[\u004A\u24BF\uFF2A\u0134\u0248])/g},{base:"K",letters:/(K|Ⓚ|K|Ḱ|Ǩ|Ḳ|Ķ|Ḵ|Ƙ|Ⱪ|Ꝁ|Ꝃ|Ꝅ|Ꞣ|[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2])/g},{base:"L",letters:/(L|Ⓛ|L|Ŀ|Ĺ|Ľ|Ḷ|Ḹ|Ļ|Ḽ|Ḻ|Ł|Ƚ|Ɫ|Ⱡ|Ꝉ|Ꝇ|Ꞁ|[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780])/g},{base:"LJ",letters:/(LJ|[\u01C7])/g},{base:"Lj",letters:/(Lj|[\u01C8])/g},{base:"M",letters:/(M|Ⓜ|M|Ḿ|Ṁ|Ṃ|Ɱ|Ɯ|[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C])/g},{base:"N",letters:/(N|Ⓝ|N|Ǹ|Ń|Ñ|Ṅ|Ň|Ṇ|Ņ|Ṋ|Ṉ|Ƞ|Ɲ|Ꞑ|Ꞥ|Ŋ|[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4\u014A])/g},{base:"NJ",letters:/(NJ|[\u01CA])/g},{base:"Nj",letters:/(Nj|[\u01CB])/g},{base:"O",letters:/(O|Ⓞ|O|Ò|Ó|Ô|Ồ|Ố|Ỗ|Ổ|Õ|Ṍ|Ȭ|Ṏ|Ō|Ṑ|Ṓ|Ŏ|Ȯ|Ȱ|Ö|Ȫ|Ỏ|Ő|Ǒ|Ȍ|Ȏ|Ơ|Ờ|Ớ|Ỡ|Ở|Ợ|Ọ|Ộ|Ǫ|Ǭ|Ø|Ǿ|Ɔ|Ɵ|Ꝋ|Ꝍ|[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C])/g},{base:"OE",letters:/(Œ|[\u0152])/g},{base:"OI",letters:/(Ƣ|[\u01A2])/g},{base:"OO",letters:/(Ꝏ|[\uA74E])/g},{base:"OU",letters:/(Ȣ|[\u0222])/g},{base:"P",letters:/(P|Ⓟ|P|Ṕ|Ṗ|Ƥ|Ᵽ|Ꝑ|Ꝓ|Ꝕ|[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754])/g},{base:"Q",letters:/(Q|Ⓠ|Q|Ꝗ|Ꝙ|Ɋ|[\u0051\u24C6\uFF31\uA756\uA758\u024A])/g},{base:"R",letters:/(R|Ⓡ|R|Ŕ|Ṙ|Ř|Ȑ|Ȓ|Ṛ|Ṝ|Ŗ|Ṟ|Ɍ|Ɽ|Ꝛ|Ꞧ|Ꞃ|[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782])/g},{base:"S",letters:/(S|Ⓢ|S|ẞ|Ś|Ṥ|Ŝ|Ṡ|Š|Ṧ|Ṣ|Ṩ|Ș|Ş|Ȿ|Ꞩ|Ꞅ|[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784])/g},{base:"T",letters:/(T|Ⓣ|T|Ṫ|Ť|Ṭ|Ț|Ţ|Ṱ|Ṯ|Ŧ|Ƭ|Ʈ|Ⱦ|Ꞇ|[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786])/g},{base:"TH",letters:/(Þ|[\u00DE])/g},{base:"TZ",letters:/(Ꜩ|[\uA728])/g},{base:"U",letters:/(U|Ⓤ|U|Ù|Ú|Û|Ũ|Ṹ|Ū|Ṻ|Ŭ|Ü|Ǜ|Ǘ|Ǖ|Ǚ|Ủ|Ů|Ű|Ǔ|Ȕ|Ȗ|Ư|Ừ|Ứ|Ữ|Ử|Ự|Ụ|Ṳ|Ų|Ṷ|Ṵ|Ʉ|[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244])/g},{base:"V",letters:/(V|Ⓥ|V|Ṽ|Ṿ|Ʋ|Ꝟ|Ʌ|[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245])/g},{base:"VY",letters:/(Ꝡ|[\uA760])/g},{base:"W",letters:/(W|Ⓦ|W|Ẁ|Ẃ|Ŵ|Ẇ|Ẅ|Ẉ|Ⱳ|[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72])/g},{base:"X",letters:/(X|Ⓧ|X|Ẋ|Ẍ|[\u0058\u24CD\uFF38\u1E8A\u1E8C])/g},{base:"Y",letters:/(Y|Ⓨ|Y|Ỳ|Ý|Ŷ|Ỹ|Ȳ|Ẏ|Ÿ|Ỷ|Ỵ|Ƴ|Ɏ|Ỿ|[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE])/g},{base:"Z",letters:/(Z|Ⓩ|Z|Ź|Ẑ|Ż|Ž|Ẓ|Ẕ|Ƶ|Ȥ|Ɀ|Ⱬ|Ꝣ|[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762])/g},{base:"a",letters:/(a|ⓐ|a|ẚ|à|á|â|ầ|ấ|ẫ|ẩ|ã|ā|ă|ằ|ắ|ẵ|ẳ|ȧ|ǡ|ä|ǟ|ả|å|ǻ|ǎ|ȁ|ȃ|ạ|ậ|ặ|ḁ|ą|ⱥ|ɐ|[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250])/g},{base:"aa",letters:/(ꜳ|[\uA733])/g},{base:"ae",letters:/(æ|ǽ|ǣ|[\u00E6\u01FD\u01E3])/g},{base:"ao",letters:/(ꜵ|[\uA735])/g},{base:"au",letters:/(ꜷ|[\uA737])/g},{base:"av",letters:/(ꜹ|ꜻ|[\uA739\uA73B])/g},{base:"ay",letters:/(ꜽ|[\uA73D])/g},{base:"b",letters:/(b|ⓑ|b|ḃ|ḅ|ḇ|ƀ|ƃ|ɓ|[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253])/g},{base:"c",letters:/(c|ⓒ|c|ć|ĉ|ċ|č|ç|ḉ|ƈ|ȼ|ꜿ|ↄ|[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184])/g},{base:"d",letters:/(d|ⓓ|d|ḋ|ď|ḍ|ḑ|ḓ|ḏ|đ|ƌ|ɖ|ɗ|ꝺ|ð|[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A\u00F0])/g},{base:"dz",letters:/(dz|dž|[\u01F3\u01C6])/g},{base:"e",letters:/(e|ⓔ|e|è|é|ê|ề|ế|ễ|ể|ẽ|ē|ḕ|ḗ|ĕ|ė|ë|ẻ|ě|ȅ|ȇ|ẹ|ệ|ȩ|ḝ|ę|ḙ|ḛ|ɇ|ɛ|ǝ|[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD])/g},{base:"f",letters:/(f|ⓕ|f|ḟ|ƒ|ꝼ|[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C])/g},{base:"g",letters:/(g|ⓖ|g|ǵ|ĝ|ḡ|ğ|ġ|ǧ|ģ|ǥ|ɠ|ꞡ|ᵹ|ꝿ|[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F])/g},{base:"h",letters:/(h|ⓗ|h|ĥ|ḣ|ḧ|ȟ|ḥ|ḩ|ḫ|ẖ|ħ|ⱨ|ⱶ|ɥ|[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265])/g},{base:"hv",letters:/(ƕ|[\u0195])/g},{base:"i",letters:/(i|ⓘ|i|ì|í|î|ĩ|ī|ĭ|ï|ḯ|ỉ|ǐ|ȉ|ȋ|ị|į|ḭ|ɨ|ı|[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131])/g},{base:"ij",letters:/(ij|[\u0133])/g},{base:"j",letters:/(j|ⓙ|j|ĵ|ǰ|ɉ|[\u006A\u24D9\uFF4A\u0135\u01F0\u0249])/g},{base:"k",letters:/(k|ⓚ|k|ḱ|ǩ|ḳ|ķ|ḵ|ƙ|ⱪ|ꝁ|ꝃ|ꝅ|ꞣ|[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3])/g},{base:"l",letters:/(l|ⓛ|l|ŀ|ĺ|ľ|ḷ|ḹ|ļ|ḽ|ḻ|ł|ƚ|ɫ|ⱡ|ꝉ|ꞁ|ꝇ|[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u0142\u019A\u026B\u2C61\uA749\uA781\uA747])/g},{base:"lj",letters:/(lj|[\u01C9])/g},{base:"m",letters:/(m|ⓜ|m|ḿ|ṁ|ṃ|ɱ|ɯ|[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F])/g},{base:"n",letters:/(n|ⓝ|n|ǹ|ń|ñ|ṅ|ň|ṇ|ņ|ṋ|ṉ|ƞ|ɲ|ʼn|ꞑ|ꞥ|ŋ|[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5\u014B])/g},{base:"nj",letters:/(nj|[\u01CC])/g},{base:"o",letters:/(o|ⓞ|o|ò|ó|ô|ồ|ố|ỗ|ổ|õ|ṍ|ȭ|ṏ|ō|ṑ|ṓ|ŏ|ȯ|ȱ|ö|ȫ|ỏ|ő|ǒ|ȍ|ȏ|ơ|ờ|ớ|ỡ|ở|ợ|ọ|ộ|ǫ|ǭ|ø|ǿ|ɔ|ꝋ|ꝍ|ɵ|[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275])/g},{base:"oe",letters:/(œ|[\u0153])/g},{base:"oi",letters:/(ƣ|[\u01A3])/g},{base:"ou",letters:/(ȣ|[\u0223])/g},{base:"oo",letters:/(ꝏ|[\uA74F])/g},{base:"p",letters:/(p|ⓟ|p|ṕ|ṗ|ƥ|ᵽ|ꝑ|ꝓ|ꝕ|[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755])/g},{base:"q",letters:/(q|ⓠ|q|ɋ|ꝗ|ꝙ|[\u0071\u24E0\uFF51\u024B\uA757\uA759])/g},{base:"r",letters:/(r|ⓡ|r|ŕ|ṙ|ř|ȑ|ȓ|ṛ|ṝ|ŗ|ṟ|ɍ|ɽ|ꝛ|ꞧ|ꞃ|[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783])/g},{base:"s",letters:/(s|ⓢ|s|ś|ṥ|ŝ|ṡ|š|ṧ|ṣ|ṩ|ș|ş|ȿ|ꞩ|ꞅ|ẛ|ſ|[\u0073\u24E2\uFF53\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B\u017F])/g},{base:"ss",letters:/(ß|[\u00DF])/g},{base:"t",letters:/(t|ⓣ|t|ṫ|ẗ|ť|ṭ|ț|ţ|ṱ|ṯ|ŧ|ƭ|ʈ|ⱦ|ꞇ|[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787])/g},{base:"th",letters:/(þ|[\u00FE])/g},{base:"tz",letters:/(ꜩ|[\uA729])/g},{base:"u",letters:/(u|ⓤ|u|ù|ú|û|ũ|ṹ|ū|ṻ|ŭ|ü|ǜ|ǘ|ǖ|ǚ|ủ|ů|ű|ǔ|ȕ|ȗ|ư|ừ|ứ|ữ|ử|ự|ụ|ṳ|ų|ṷ|ṵ|ʉ|[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289])/g},{base:"v",letters:/(v|ⓥ|v|ṽ|ṿ|ʋ|ꝟ|ʌ|[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C])/g},{base:"vy",letters:/(ꝡ|[\uA761])/g},{base:"w",letters:/(w|ⓦ|w|ẁ|ẃ|ŵ|ẇ|ẅ|ẘ|ẉ|ⱳ|[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73])/g},{base:"x",letters:/(x|ⓧ|x|ẋ|ẍ|[\u0078\u24E7\uFF58\u1E8B\u1E8D])/g},{base:"y",letters:/(y|ⓨ|y|ỳ|ý|ŷ|ỹ|ȳ|ẏ|ÿ|ỷ|ẙ|ỵ|ƴ|ɏ|ỿ|[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF])/g},{base:"z",letters:/(z|ⓩ|z|ź|ẑ|ż|ž|ẓ|ẕ|ƶ|ȥ|ɀ|ⱬ|ꝣ|[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763])/g}],iM=function(e){var i=e;return tM.forEach(function(a){i=i.replace(a.letters,a.base)}),i},C5=function(e){return iM(e).toLowerCase()},v5=function(e,i,a){return a?C5(e).indexOf(C5(i)):e.toLowerCase().indexOf(i.toLowerCase())},aM=function(){return!!document.documentMode},a2=function(e){return typeof e=="number"},rM=function(e){return e===Object(e)?Object.keys(e):[]},nM=function(e){for(var i,a=arguments.length,r=new Array(a>1?a-1:0),n=1;n<a;n++)r[n-1]=arguments[n];var o=(i=[]).concat.apply(i,r);return Object.keys(e).reduce(function(s,l){return e.hasOwnProperty(l)&&!o.includes(l)&&e[l]!==void 0&&(s[l]=e[l]),s},{})},oM=["style","className","classNames"];function D5(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),i.push.apply(i,a)}return i}function E5(t){for(var e=1;e<arguments.length;e++){var i=arguments[e]!=null?arguments[e]:{};e%2?D5(Object(i),!0).forEach(function(a){Bt(t,a,i[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):D5(Object(i)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(i,a))})}return t}function Ih(t,e){var i=function(r){var n=function(l){var u=l.style,f=l.className,d=l.classNames,h=CL(l,oM),_=e?e(h):void 0,F=Xc(t,{style:u,className:f,classNames:d},_);return M.createElement(r,Xr({},h,{style:F}))},o=r.displayName||r.name||"Component";return n.displayName="defaultStyle(".concat(o,")"),M.forwardRef(function(s,l){return n(E5(E5({},s),{},{ref:l}))})};return i}var sM=function(e,i){return e.hasOwnProperty(i)?e[i]++:e[i]=0,i+"_"+e[i]};function B5(t){var e=t.selectionStart,i=t.selectionEnd,a=t.value,r=a===void 0?"":a,n=t.onCaretPositionChange,o=t.containerRef,s=t.children;t.singleLine;var l=t.style,u=M.useState({left:void 0,top:void 0}),f=Lh(u,2),d=f[0],h=f[1],_=M.useState(),F=Lh(_,2),c=F[0],m=F[1];M.useEffect(function(){A()});var A=function(){if(c){var I=c.offsetLeft,q=c.offsetTop;if(!(d.left===I&&d.top===q)){var T={left:I,top:q};h(T),n(T)}}},p=rs(s),w;i===e&&(w=or(r,p,e,"START"));var b=[],y={},k=b,C=0,v=function(I,q,T){if(a2(w)&&w>=q&&w<=q+I.length){var N=w-q;k.push(D(I.substring(0,N),C)),k=[D(I.substring(N),C)]}else k.push(D(I,C));C++},E=function(I,q,T,N,H,$,x){var L=sM(y,N);k.push(S(N,H,$,L))},D=function(I,q){return M.createElement("span",Xr({},l("substring"),{key:q}),I)},S=function(I,q,T,N){var H={id:I,display:q,key:N},$=M.Children.toArray(s)[T];return M.cloneElement($,H)},P=function(I){return M.createElement("span",Xr({},l("caret"),{ref:m,key:"caret"}),I)};return z1(r,p,E,v),k.push(" "),k!==b&&b.push(P(k)),M.createElement("div",Xr({},l,{ref:o}),b)}B5.propTypes={selectionStart:Pe.number,selectionEnd:Pe.number,value:Pe.string.isRequired,onCaretPositionChange:Pe.func.isRequired,containerRef:Pe.oneOfType([Pe.func,Pe.shape({current:typeof Element>"u"?Pe.any:Pe.instanceOf(Element)})]),children:Pe.oneOfType([Pe.element,Pe.arrayOf(Pe.element)]).isRequired};var lM=Ih({position:"relative",boxSizing:"border-box",width:"100%",color:"transparent",overflow:"hidden",whiteSpace:"pre-wrap",wordWrap:"break-word",border:"1px solid transparent",textAlign:"start","&singleLine":{whiteSpace:"pre",wordWrap:null},substring:{visibility:"hidden"}},function(t){return{"&singleLine":t.singleLine}}),uM=lM(B5);function S5(t){var e=t.id,i=t.focused,a=t.ignoreAccents,r=t.index,n=t.onClick,o=t.onMouseEnter,s=t.query,l=t.renderSuggestion,u=t.suggestion,f=t.style;t.className,t.classNames;var d={onClick:n,onMouseEnter:o},h=function(){var m=_(),A=F(m);return l?l(u,s,A,r,i):A},_=function(){if(typeof u=="string")return u;var m=u.id,A=u.display;return m===void 0||!A?m:A},F=function(m){var A=v5(m,s,a);return A===-1?M.createElement("span",f("display"),m):M.createElement("span",f("display"),m.substring(0,A),M.createElement("b",f("highlight"),m.substring(A,A+s.length)),m.substring(A+s.length))};return M.createElement("li",Xr({id:e,role:"option","aria-selected":i},d,f),h())}S5.propTypes={id:Pe.string.isRequired,query:Pe.string.isRequired,index:Pe.number.isRequired,ignoreAccents:Pe.bool,suggestion:Pe.oneOfType([Pe.string,Pe.shape({id:Pe.oneOfType([Pe.string,Pe.number]).isRequired,display:Pe.string})]).isRequired,renderSuggestion:Pe.func,focused:Pe.bool};var fM=Ih({cursor:"pointer"},function(t){return{"&focused":t.focused}}),dM=fM(S5);function hM(t){var e=t.style,i=t.className,a=t.classNames,r=Xc(gM,{style:e,className:i,classNames:a}),n=r("spinner");return M.createElement("div",r,M.createElement("div",n,M.createElement("div",n(["element","element1"])),M.createElement("div",n(["element","element2"])),M.createElement("div",n(["element","element3"])),M.createElement("div",n(["element","element4"])),M.createElement("div",n(["element","element5"]))))}var gM={};function j5(t){var e=t.id,i=t.suggestions,a=i===void 0?{}:i,r=t.a11ySuggestionsListLabel,n=t.focusIndex,o=t.position,s=t.left,l=t.right,u=t.top,f=t.scrollFocusedIntoView,d=t.isLoading,h=t.isOpened,_=t.onSelect,F=_===void 0?function(){return null}:_,c=t.ignoreAccents,m=t.containerRef,A=t.children,p=t.style,w=t.customSuggestionsContainer,b=t.onMouseDown,y=t.onMouseEnter,k=M.useState(void 0),C=Lh(k,2),v=C[0],E=C[1];M.useEffect(function(){if(!(!v||v.offsetHeight>=v.scrollHeight||!f)){var T=v.scrollTop,N=v.children[n].getBoundingClientRect(),H=N.top,$=N.bottom,x=v.getBoundingClientRect(),L=x.top;H=H-L+T,$=$-L+T,H<T?v.scrollTop=H:$>v.offsetHeight&&(v.scrollTop=$-v.offsetHeight)}},[n,f,v]);var D=function(){var N=M.createElement("ul",Xr({ref:E,id:e,role:"listbox","aria-label":r},p("list")),Object.values(a).reduce(function(H,$){var x=$.results,L=$.queryInfo;return[].concat(Bh(H),Bh(x.map(function(Q,B){return S(Q,L,H.length+B)})))},[]));return w?w(N):N},S=function(N,H,$){var x=$===n,L=H.childIndex,Q=H.query,B=M.Children.toArray(A)[L].props.renderSuggestion;return M.createElement(dM,{style:p("item"),key:"".concat(L,"-").concat(q(N)),id:x5(e,$),query:Q,index:$,ignoreAccents:c,renderSuggestion:B,suggestion:N,focused:x,onClick:function(){return I(N,H)},onMouseEnter:function(){return U($)}})},P=function(){if(d)return M.createElement(hM,{style:p("loadingIndicator")})},U=function(N,H){y&&y(N)},I=function(N,H){F(N,H)},q=function(N){return typeof N=="string"?N:N.id};return h?M.createElement("div",Xr({},QL({position:o||"absolute",left:s,right:l,top:u},p),{onMouseDown:b,ref:m}),D(),P()):null}j5.propTypes={id:Pe.string.isRequired,suggestions:Pe.object.isRequired,a11ySuggestionsListLabel:Pe.string,focusIndex:Pe.number,position:Pe.string,left:Pe.number,right:Pe.number,top:Pe.number,scrollFocusedIntoView:Pe.bool,isLoading:Pe.bool,isOpened:Pe.bool.isRequired,onSelect:Pe.func,ignoreAccents:Pe.bool,customSuggestionsContainer:Pe.func,containerRef:Pe.oneOfType([Pe.func,Pe.shape({current:typeof Element>"u"?Pe.any:Pe.instanceOf(Element)})])};var _M=Ih({zIndex:1,backgroundColor:"white",marginTop:14,minWidth:100,list:{margin:0,padding:0,listStyleType:"none"}}),cM=_M(j5);function L5(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),i.push.apply(i,a)}return i}function kn(t){for(var e=1;e<arguments.length;e++){var i=arguments[e]!=null?arguments[e]:{};e%2?L5(Object(i),!0).forEach(function(a){Bt(t,a,i[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):L5(Object(i)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(i,a))})}return t}function FM(t){var e=mM();return function(){var a=jh(t),r;if(e){var n=jh(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return AL(this,r)}}function mM(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var AM=function(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(e instanceof RegExp)return e;var a=i.allowSpaceInQuery,r=qh(e);return new RegExp("(?:^|\\s)(".concat(r,"([^").concat(a?"":"\\s").concat(r,"]*))$"))},pM=function(e,i){return e instanceof Array?function(a,r){for(var n=[],o=0,s=e.length;o<s;++o){var l=e[o].display||e[o].id;v5(l,a,i)>=0&&n.push(e[o])}return n}:e},lu={TAB:9,RETURN:13,ESC:27,UP:38,DOWN:40},Ph=!1,M5={singleLine:Pe.bool,allowSpaceInQuery:Pe.bool,allowSuggestionsAboveCursor:Pe.bool,forceSuggestionsAboveCursor:Pe.bool,ignoreAccents:Pe.bool,a11ySuggestionsListLabel:Pe.string,value:Pe.string,onKeyDown:Pe.func,customSuggestionsContainer:Pe.func,onSelect:Pe.func,onBlur:Pe.func,onChange:Pe.func,suggestionsPortalHost:typeof Element>"u"?Pe.any:Pe.PropTypes.instanceOf(Element),inputRef:Pe.oneOfType([Pe.func,Pe.shape({current:typeof Element>"u"?Pe.any:Pe.instanceOf(Element)})]),children:Pe.oneOfType([Pe.element,Pe.arrayOf(Pe.element)]).isRequired},r2=function(t){mL(i,t);var e=FM(i);function i(a){var r;return _L(this,i),r=e.call(this,a),Bt(jt(r),"setContainerElement",function(n){r.containerElement=n}),Bt(jt(r),"getInputProps",function(){var n=r.props,o=n.readOnly,s=n.disabled,l=n.style,u=nM(r.props,["style","classNames","className"],rM(M5));return kn(kn(kn(kn({},u),l("input")),{},{value:r.getPlainText(),onScroll:r.updateHighlighterScroll},!o&&!s&&{onChange:r.handleChange,onSelect:r.handleSelect,onKeyDown:r.handleKeyDown,onBlur:r.handleBlur,onCompositionStart:r.handleCompositionStart,onCompositionEnd:r.handleCompositionEnd}),r.isOpened()&&{role:"combobox","aria-controls":r.uuidSuggestionsOverlay,"aria-expanded":!0,"aria-autocomplete":"list","aria-haspopup":"listbox","aria-activedescendant":x5(r.uuidSuggestionsOverlay,r.state.focusIndex)})}),Bt(jt(r),"renderControl",function(){var n=r.props,o=n.singleLine,s=n.style,l=r.getInputProps();return M.createElement("div",s("control"),r.renderHighlighter(),o?r.renderInput(l):r.renderTextarea(l))}),Bt(jt(r),"renderInput",function(n){return M.createElement("input",Xr({type:"text",ref:r.setInputRef},n))}),Bt(jt(r),"renderTextarea",function(n){return M.createElement("textarea",Xr({ref:r.setInputRef},n))}),Bt(jt(r),"setInputRef",function(n){r.inputElement=n;var o=r.props.inputRef;typeof o=="function"?o(n):o&&(o.current=n)}),Bt(jt(r),"setSuggestionsElement",function(n){r.suggestionsElement=n}),Bt(jt(r),"renderSuggestionsOverlay",function(){if(!a2(r.state.selectionStart))return null;var n=r.state.suggestionsPosition,o=n.position,s=n.left,l=n.top,u=n.right,f=M.createElement(cM,{id:r.uuidSuggestionsOverlay,style:r.props.style("suggestions"),position:o,left:s,top:l,right:u,focusIndex:r.state.focusIndex,scrollFocusedIntoView:r.state.scrollFocusedIntoView,containerRef:r.setSuggestionsElement,suggestions:r.state.suggestions,customSuggestionsContainer:r.props.customSuggestionsContainer,onSelect:r.addMention,onMouseDown:r.handleSuggestionsMouseDown,onMouseEnter:r.handleSuggestionsMouseEnter,isLoading:r.isLoading(),isOpened:r.isOpened(),ignoreAccents:r.props.ignoreAccents,a11ySuggestionsListLabel:r.props.a11ySuggestionsListLabel},r.props.children);return r.props.suggestionsPortalHost?Yo.createPortal(f,r.props.suggestionsPortalHost):f}),Bt(jt(r),"renderHighlighter",function(){var n=r.state,o=n.selectionStart,s=n.selectionEnd,l=r.props,u=l.singleLine,f=l.children,d=l.value,h=l.style;return M.createElement(uM,{containerRef:r.setHighlighterElement,style:h("highlighter"),value:d,singleLine:u,selectionStart:o,selectionEnd:s,onCaretPositionChange:r.handleCaretPositionChange},f)}),Bt(jt(r),"setHighlighterElement",function(n){r.highlighterElement=n}),Bt(jt(r),"handleCaretPositionChange",function(n){r.setState({caretPosition:n})}),Bt(jt(r),"getPlainText",function(){return Gs(r.props.value||"",rs(r.props.children))}),Bt(jt(r),"executeOnChange",function(n){for(var o=arguments.length,s=new Array(o>1?o-1:0),l=1;l<o;l++)s[l-1]=arguments[l];if(r.props.onChange){var u;return(u=r.props).onChange.apply(u,[n].concat(s))}if(r.props.valueLink){var f;return(f=r.props.valueLink).requestChange.apply(f,[n.target.value].concat(s))}}),Bt(jt(r),"handleChange",function(n){if(Ph=!1,aM()){var o=document.activeElement&&document.activeElement.contentDocument||document;if(o.activeElement!==n.target)return}var s=r.props.value||"",l=rs(r.props.children),u=n.target.value,f=r.state.selectionStart;f==null&&(f=n.target.selectionStart);var d=r.state.selectionEnd;d==null&&(d=n.target.selectionEnd);var h=XL(s,u,{selectionStartBefore:f,selectionEndBefore:d,selectionEndAfter:n.target.selectionEnd},l);u=Gs(h,l);var _=n.target.selectionStart,F=n.target.selectionEnd,c=!1,m=k5(s,l,_);m!==void 0&&r.state.selectionEnd>m&&(_=m+(n.nativeEvent.data?n.nativeEvent.data.length:0),F=_,c=!0),r.setState({selectionStart:_,selectionEnd:F,setSelectionAfterMentionChange:c});var A=G1(h,l);n.nativeEvent.isComposing&&_===F&&r.updateMentionsQueries(r.inputElement.value,_);var p={target:{value:h}};r.executeOnChange(p,h,u,A)}),Bt(jt(r),"handleSelect",function(n){if(r.setState({selectionStart:n.target.selectionStart,selectionEnd:n.target.selectionEnd}),!Ph){var o=r.inputElement;n.target.selectionStart===n.target.selectionEnd?r.updateMentionsQueries(o.value,n.target.selectionStart):r.clearSuggestions(),r.updateHighlighterScroll(),r.props.onSelect(n)}}),Bt(jt(r),"handleKeyDown",function(n){var o=Th(r.state.suggestions);if(o===0||!r.suggestionsElement){r.props.onKeyDown(n);return}switch(Object.values(lu).indexOf(n.keyCode)>=0&&(n.preventDefault(),n.stopPropagation()),n.keyCode){case lu.ESC:{r.clearSuggestions();return}case lu.DOWN:{r.shiftFocus(1);return}case lu.UP:{r.shiftFocus(-1);return}case lu.RETURN:{r.selectFocused();return}case lu.TAB:{r.selectFocused();return}default:return}}),Bt(jt(r),"shiftFocus",function(n){var o=Th(r.state.suggestions);r.setState({focusIndex:(o+r.state.focusIndex+n)%o,scrollFocusedIntoView:!0})}),Bt(jt(r),"selectFocused",function(){var n=r.state,o=n.suggestions,s=n.focusIndex,l=Object.values(o).reduce(function(d,h){var _=h.results,F=h.queryInfo;return[].concat(Bh(d),Bh(_.map(function(c){return{result:c,queryInfo:F}})))},[])[s],u=l.result,f=l.queryInfo;r.addMention(u,f),r.setState({focusIndex:0})}),Bt(jt(r),"handleBlur",function(n){var o=r._suggestionsMouseDown;r._suggestionsMouseDown=!1,o||r.setState({selectionStart:null,selectionEnd:null}),window.setTimeout(function(){r.updateHighlighterScroll()},1),r.props.onBlur(n,o)}),Bt(jt(r),"handleSuggestionsMouseDown",function(n){r._suggestionsMouseDown=!0}),Bt(jt(r),"handleSuggestionsMouseEnter",function(n){r.setState({focusIndex:n,scrollFocusedIntoView:!1})}),Bt(jt(r),"updateSuggestionsPosition",function(){var n=r.state.caretPosition,o=r.props,s=o.suggestionsPortalHost,l=o.allowSuggestionsAboveCursor,u=o.forceSuggestionsAboveCursor;if(!(!n||!r.suggestionsElement)){var f=r.suggestionsElement,d=r.highlighterElement,h=d.getBoundingClientRect(),_=n2(d,"font-size"),F={left:h.left+n.left,top:h.top+n.top+_},c=Math.max(document.documentElement.clientHeight,window.innerHeight||0);if(f){var m={};if(s){m.position="fixed";var A=F.left,p=F.top;A-=n2(f,"margin-left"),p-=n2(f,"margin-top"),A-=d.scrollLeft,p-=d.scrollTop;var w=Math.max(document.documentElement.clientWidth,window.innerWidth||0);A+f.offsetWidth>w?m.left=Math.max(0,w-f.offsetWidth):m.left=A,l&&p+f.offsetHeight>c&&f.offsetHeight<p-_||u?m.top=Math.max(0,p-f.offsetHeight-_):m.top=p}else{var b=n.left-d.scrollLeft,y=n.top-d.scrollTop;b+f.offsetWidth>r.containerElement.offsetWidth?m.right=0:m.left=b,l&&F.top-d.scrollTop+f.offsetHeight>c&&f.offsetHeight<h.top-_-d.scrollTop||u?m.top=y-f.offsetHeight-_:m.top=y}m.left===r.state.suggestionsPosition.left&&m.top===r.state.suggestionsPosition.top&&m.position===r.state.suggestionsPosition.position||r.setState({suggestionsPosition:m})}}}),Bt(jt(r),"updateHighlighterScroll",function(){var n=r.inputElement,o=r.highlighterElement;!n||!o||(o.scrollLeft=n.scrollLeft,o.scrollTop=n.scrollTop,o.height=n.height)}),Bt(jt(r),"handleCompositionStart",function(){Ph=!0}),Bt(jt(r),"handleCompositionEnd",function(){Ph=!1}),Bt(jt(r),"setSelection",function(n,o){if(!(n===null||o===null)){var s=r.inputElement;if(s.setSelectionRange)s.setSelectionRange(n,o);else if(s.createTextRange){var l=s.createTextRange();l.collapse(!0),l.moveEnd("character",o),l.moveStart("character",n),l.select()}}}),Bt(jt(r),"updateMentionsQueries",function(n,o){r._queryId++,r.suggestions={},r.setState({suggestions:{}});var s=r.props.value||"",l=r.props.children,u=rs(l),f=or(s,u,o,"NULL");if(f!==null){var d=YL(s.substring(0,f),u),h=n.substring(d,o);M.Children.forEach(l,function(_,F){if(_){var c=AM(_.props.trigger,r.props),m=h.match(c);if(m){var A=d+h.indexOf(m[1],m.index);r.queryData(m[2],F,A,A+m[1].length,n)}}})}}),Bt(jt(r),"clearSuggestions",function(){r._queryId++,r.suggestions={},r.setState({suggestions:{},focusIndex:0})}),Bt(jt(r),"queryData",function(n,o,s,l,u){var f=r.props,d=f.children,h=f.ignoreAccents,_=M.Children.toArray(d)[o],F=pM(_.props.data,h),c=F(n,r.updateSuggestions.bind(null,r._queryId,o,n,s,l,u));c instanceof Array&&r.updateSuggestions(r._queryId,o,n,s,l,u,c)}),Bt(jt(r),"updateSuggestions",function(n,o,s,l,u,f,d){if(n===r._queryId){r.suggestions=kn(kn({},r.suggestions),{},Bt({},o,{queryInfo:{childIndex:o,query:s,querySequenceStart:l,querySequenceEnd:u,plainTextValue:f},results:d}));var h=r.state.focusIndex,_=Th(r.suggestions);r.setState({suggestions:r.suggestions,focusIndex:h>=_?Math.max(_-1,0):h})}}),Bt(jt(r),"addMention",function(n,o){var s=n.id,l=n.display,u=o.childIndex,f=o.querySequenceStart,d=o.querySequenceEnd,h=o.plainTextValue,_=r.props.value||"",F=rs(r.props.children),c=M.Children.toArray(r.props.children)[u],m=c.props,A=m.markup,p=m.displayTransform,w=m.appendSpaceOnAdd,b=m.onAdd,y=or(_,F,f,"START"),k=y+d-f,C=eM(A,s,l);w&&(C+=" ");var v=W1(_,y,k,C);r.inputElement.focus();var E=p(s,l);w&&(E+=" ");var D=f+E.length;r.setState({selectionStart:D,selectionEnd:D,setSelectionAfterMentionChange:!0});var S={target:{value:v}},P=G1(v,F),U=W1(h,f,d,E);r.executeOnChange(S,v,U,P),b&&b(s,l,y,k),r.clearSuggestions()}),Bt(jt(r),"isLoading",function(){var n=!1;return M.Children.forEach(r.props.children,function(o){n=n||o&&o.props.isLoading}),n}),Bt(jt(r),"isOpened",function(){return a2(r.state.selectionStart)&&(Th(r.state.suggestions)!==0||r.isLoading())}),Bt(jt(r),"_queryId",0),r.suggestions={},r.uuidSuggestionsOverlay=Math.random().toString(16).substring(2),r.handleCopy=r.handleCopy.bind(jt(r)),r.handleCut=r.handleCut.bind(jt(r)),r.handlePaste=r.handlePaste.bind(jt(r)),r.state={focusIndex:0,selectionStart:null,selectionEnd:null,suggestions:{},caretPosition:null,suggestionsPosition:{},setSelectionAfterHandlePaste:!1},r}return FL(i,[{key:"componentDidMount",value:function(){document.addEventListener("copy",this.handleCopy),document.addEventListener("cut",this.handleCut),document.addEventListener("paste",this.handlePaste),this.updateSuggestionsPosition()}},{key:"componentDidUpdate",value:function(r,n){n.suggestionsPosition===this.state.suggestionsPosition&&this.updateSuggestionsPosition(),this.state.setSelectionAfterMentionChange&&(this.setState({setSelectionAfterMentionChange:!1}),this.setSelection(this.state.selectionStart,this.state.selectionEnd)),this.state.setSelectionAfterHandlePaste&&(this.setState({setSelectionAfterHandlePaste:!1}),this.setSelection(this.state.selectionStart,this.state.selectionEnd))}},{key:"componentWillUnmount",value:function(){document.removeEventListener("copy",this.handleCopy),document.removeEventListener("cut",this.handleCut),document.removeEventListener("paste",this.handlePaste)}},{key:"render",value:function(){return M.createElement("div",Xr({ref:this.setContainerElement},this.props.style),this.renderControl(),this.renderSuggestionsOverlay())}},{key:"handlePaste",value:function(r){if(r.target===this.inputElement&&this.supportsClipboardActions(r)){r.preventDefault();var n=this.state,o=n.selectionStart,s=n.selectionEnd,l=this.props,u=l.value,f=l.children,d=rs(f),h=or(u,d,o,"START"),_=or(u,d,s,"END"),F=r.clipboardData.getData("text/react-mentions"),c=r.clipboardData.getData("text/plain"),m=W1(u,h,_,F||c).replace(/\r/g,""),A=Gs(m,d),p={target:kn(kn({},r.target),{},{value:m})};this.executeOnChange(p,m,A,G1(m,d));var w=k5(u,d,o),b=(w||o)+Gs(F||c,d).length;this.setState({selectionStart:b,selectionEnd:b,setSelectionAfterHandlePaste:!0})}}},{key:"saveSelectionToClipboard",value:function(r){var n=this.inputElement.selectionStart,o=this.inputElement.selectionEnd,s=this.props,l=s.children,u=s.value,f=rs(l),d=or(u,f,n,"START"),h=or(u,f,o,"END");r.clipboardData.setData("text/plain",r.target.value.slice(n,o)),r.clipboardData.setData("text/react-mentions",u.slice(d,h))}},{key:"supportsClipboardActions",value:function(r){return!!r.clipboardData}},{key:"handleCopy",value:function(r){r.target===this.inputElement&&this.supportsClipboardActions(r)&&(r.preventDefault(),this.saveSelectionToClipboard(r))}},{key:"handleCut",value:function(r){if(r.target===this.inputElement&&this.supportsClipboardActions(r)){r.preventDefault(),this.saveSelectionToClipboard(r);var n=this.state,o=n.selectionStart,s=n.selectionEnd,l=this.props,u=l.children,f=l.value,d=rs(u),h=or(f,d,o,"START"),_=or(f,d,s,"END"),F=[f.slice(0,h),f.slice(_)].join(""),c=Gs(F,d),m={target:kn(kn({},r.target),{},{value:c})};this.executeOnChange(m,F,c,G1(f,d))}}}]),i}(M.Component);Bt(r2,"propTypes",M5),Bt(r2,"defaultProps",{ignoreAccents:!1,singleLine:!1,allowSuggestionsAboveCursor:!1,onKeyDown:function(){return null},onSelect:function(){return null},onBlur:function(){return null}});var n2=function(e,i){var a=parseFloat(window.getComputedStyle(e,null).getPropertyValue(i));return isFinite(a)?a:0},bM=typeof navigator<"u"&&/iPhone|iPad|iPod/i.test(navigator.userAgent),yM=Ih({position:"relative",overflowY:"visible",input:{display:"block",width:"100%",position:"absolute",margin:0,top:0,left:0,boxSizing:"border-box",backgroundColor:"transparent",fontFamily:"inherit",fontSize:"inherit",letterSpacing:"inherit"},"&multiLine":{input:kn({height:"100%",bottom:0,overflow:"hidden",resize:"none"},bM?{marginTop:1,marginLeft:-3}:null)}},function(t){var e=t.singleLine;return{"&singleLine":e,"&multiLine":!e}}),wM=yM(r2),kM={fontWeight:"inherit"},Hh=function(e){var i=e.display,a=e.style,r=e.className,n=e.classNames,o=Xc(kM,{style:a,className:r,classNames:n});return M.createElement("strong",o,i)};Hh.propTypes={onAdd:Pe.func,onRemove:Pe.func,renderSuggestion:Pe.func,trigger:Pe.oneOfType([Pe.string,Pe.instanceOf(RegExp)]),markup:Pe.string,displayTransform:Pe.func,allowSpaceInQuery:Pe.bool,isLoading:Pe.bool},Hh.defaultProps={trigger:"@",markup:"@[__display__](__id__)",displayTransform:function(e,i){return i||e},onAdd:function(){return null},onRemove:function(){return null},renderSuggestion:null,isLoading:!1,appendSpaceOnAdd:!1};const uu={defaultText:"#333",asphalt:"#727272",night:"#333",brandSecondary:"#22abf3",pool:"#22abf3",lemon:"#f8f042",spinach:"#227c31",frost:"#a8f1f3",systemRed:"#f3224d",systemGreen:"#00a861",systemYellow:"#ffc20e",systemDefault:"#2a5cdb",snow:"#fff",transparentBlack:"rgba(0, 0, 0, 0.65)",brandPrimary:"#227c31",KWBrandPrimary:"#227c31",kwBrandPrimary:"#227c31",KWBrandSecondary:"#22abf3",kwBrandSecondary:"#22abf3",KWBrandSalmon:"#ff9676",kwBrandSalmon:"#ff9676",KWBrandFrost:"#a7f1f3",kwBrandFrost:"#a7f1f3",KWBrandPlum:"#702278",kwBrandPlum:"#702278",KWBrandLemon:"#f8f042",kwBrandLemon:"#f8f042",KWBrandSunrise:"#ffb400",kwBrandSunrise:"#ffb400",KWBrandLatte:"#d5b591",kwBrandLatte:"#d5b591",systemBlue:"#2a5cdb",systemBlueLight:"#eef2fc",systemBlueLightest:"#f4f7fd",systemBlueDark:"#1b409e",systemWarning:"#f3224d",systemWarningLight:"#fee9ed",systemWarningDark:"#d61e44",systemSuccess:"#00a861",systemSuccessLight:"#e6f6ef",systemSuccessDark:"#027946",systemInfo:"#863dff",systemInfoLight:"white",systemInfoDark:"#4700bd",systemWarn:"#f6be45",systemWarnLight:"white",systemWarnDark:"#b37d09",systemOptimistic:"#fd5d4b",systemOptimisticLight:"white",systemOptimisticDark:"#c61602",systemNavGray:"#191919",systemGray1:"#333",systemGray2:"#666",systemGray3:"#949494",systemGray4:"#aaaaaa",systemGray5:"#c6c6c6",systemGray6:"#f1f1f1",white:"#fff",workTangoPurple:"#524fef",workTangoLightPurple:"#c3d4ff",workTangoLightAqua:"#a5fcec",bodyScrollbarDisplayNone:"bodyScrollbarDisplayNone",container:"TextArea-module_container_VSGZv","label-wrapper":"TextArea-module_label-wrapper_vB6KA",labelWrapper:"TextArea-module_label-wrapper_vB6KA",label:"TextArea-module_label_9mcL7",textarea:"TextArea-module_textarea_fqLrA",textarea__control:"TextArea-module_textarea__control_skFso",textareaControl:"TextArea-module_textarea__control_skFso",textarea__input:"TextArea-module_textarea__input_tcCX5",textareaInput:"TextArea-module_textarea__input_tcCX5",textarea__highlighter:"TextArea-module_textarea__highlighter_WtdTU",textareaHighlighter:"TextArea-module_textarea__highlighter_WtdTU",textarea__suggestions:"TextArea-module_textarea__suggestions_-vDFP",textareaSuggestions:"TextArea-module_textarea__suggestions_-vDFP",textarea__suggestions__list:"TextArea-module_textarea__suggestions__list_k-u0G",textareaSuggestionsList:"TextArea-module_textarea__suggestions__list_k-u0G",textarea__suggestions__item:"TextArea-module_textarea__suggestions__item_ACkrT",textareaSuggestionsItem:"TextArea-module_textarea__suggestions__item_ACkrT","textarea__suggestions__item--focused":"TextArea-module_textarea__suggestions__item--focused_xP49q",textareaSuggestionsItemFocused:"TextArea-module_textarea__suggestions__item--focused_xP49q","suggestion-pic":"TextArea-module_suggestion-pic_zkvGE",suggestionPic:"TextArea-module_suggestion-pic_zkvGE","suggestion-info":"TextArea-module_suggestion-info_bvoTH",suggestionInfo:"TextArea-module_suggestion-info_bvoTH","suggestion-info__title":"TextArea-module_suggestion-info__title_GE4Lf",suggestionInfoTitle:"TextArea-module_suggestion-info__title_GE4Lf",speechBubble:"TextArea-module_speechBubble_xYnsk",error:"TextArea-module_error_DT5cA"};function xM({id:t,name:e,userProfile:i}){return g.jsxs(M.Fragment,{children:[g.jsx(Eh,{size:"medium",user:i,className:uu["suggestion-pic"]}),g.jsxs("div",{"data-testid":"mention-suggestion",className:uu["suggestion-info"],children:[e,g.jsx("span",{className:uu["suggestion-info__title"],children:i.jobTitle})]})]},t)}const CM=20;function vM({className:t,disabled:e,error:i="",helperText:a="",id:r,label:n,maxLength:o,minRows:s,onMention:l,onChange:u,placeholder:f,required:d,optionalLabelText:h,speechBubble:_=!1,tabIndex:F,fullWidth:c=!1,value:m="",mentionsPlaceholder:A="Mention others with @name",inputRef:p,maxLengthAbove:w=!1,tooltip:b,maxHeight:y,...k}){const C=RegExp('<a\\s+href="/users/([0-9a-f]+)">@([^<]+)</a>',"gi"),E=(P=>P.replace(C,"@[$2]($1)"))(m),D=()=>{const P=pe("textarea",{error:!!i,speechBubble:_}),U=l?A:"";return g.jsx(wM,{className:P,classNames:uu,id:r.toString(),value:E,placeholder:f||U,maxLength:o,tabIndex:F,rows:s,disabled:e||!1,onChange:I=>u(I.target.value),allowSpaceInQuery:!0,inputRef:p,style:{maxHeight:y},...k,children:l?g.jsx(Hh,{trigger:"@",className:uu.suggestion,renderSuggestion:BM,displayTransform:(I,q)=>`@${q}`,data:DM(l)}):g.jsx(Hh,{trigger:"@",data:[]})})},S={value:m,label:n,inputId:r,disabled:e,helperText:a,required:d,optionalLabelText:h,fullWidth:c,error:i,charactersRemaining:m?m.length:0,maxLength:o,renderControl:D,maxLengthAbove:w,tooltip:b};return g.jsx("div",{"data-testid":"textarea-container",className:pe(uu.container,t),children:g.jsx(H1,{...S})})}function DM(t){return(e,i)=>{if(e.length>CM){i([]);return}t(e,a=>{i(EM(a))})}}function EM(t){return t.map(e=>({...e,display:e.name}))}function BM(t,e,i){return g.jsx(xM,{id:t.id,name:i,userProfile:t})}const Mr={wrapper:"Checkbox-module_wrapper_kx6SI",wrapperDisabledState:"Checkbox-module_wrapperDisabledState_IoECY",label:"Checkbox-module_label_x0GHJ",input:"Checkbox-module_input_1hQG5","wrapper--small":"Checkbox-module_wrapper--small_ihirE","wrapper--xsmall":"Checkbox-module_wrapper--xsmall_ZvRAf","helper-row":"Checkbox-module_helper-row_9ltTW","helper-text":"Checkbox-module_helper-text_XFnwY",checkbox:"Checkbox-module_checkbox_fUcFx","checkbox-indeterminate":"Checkbox-module_checkbox-indeterminate_VS9ZA",error:"Checkbox-module_error_9b7ms"};function Vs({checked:t,className:e,disabled:i,helperText:a,id:r,label:n,name:o,onChange:s,onIndeterminateChange:l,ariaLabel:u,size:f="regular",indeterminate:d=!1,user:h,hasError:_,...F}){const c=pe(Mr.wrapper,{[Mr.wrapperDisabledState]:i},{[Mr["wrapper--xsmall"]]:f==="extra-small",[Mr["wrapper--small"]]:f==="small"},e),m=pe(Mr.input,{[Mr["checkbox-indeterminate"]]:d}),A=pe(Mr.checkbox,{[Mr.error]:_}),p=d&&l||s;return g.jsx("div",{"data-testid":h?"user-checkbox":"checkbox",children:g.jsxs("label",{className:c,htmlFor:String(r),children:[g.jsx("input",{type:"checkbox","aria-label":u,className:m,checked:t,disabled:i,id:String(r),name:o,"data-indeterminate":d,onChange:p,...F}),g.jsx("span",{className:A}),h&&g.jsx(Eh,{user:h}),g.jsxs("div",{className:Mr["label-container"],children:[g.jsx("span",{className:Mr.label,children:n}),(a||(h==null?void 0:h.jobTitle))&&g.jsxs("div",{className:Mr["helper-row"],children:[(h==null?void 0:h.jobTitle)&&g.jsx("div",{className:Mr["helper-text"],children:h.jobTitle}),a&&g.jsx("div",{className:Mr["helper-text"],children:a})]})]})]})})}const xn={systemRed:"#f3224d",fieldset:"Fieldset-module_fieldset_I-qpH",legend:"Fieldset-module_legend_-dFIh","helper-text":"Fieldset-module_helper-text_VLPdd","helper-text-before-children":"Fieldset-module_helper-text-before-children_RL-4Z","helper-text-after-children":"Fieldset-module_helper-text-after-children_FI6TP",highlighted:"Fieldset-module_highlighted_W36bT","fieldset-optional-label":"Fieldset-module_fieldset-optional-label_lEJ0B","fieldset-upper-right-label":"Fieldset-module_fieldset-upper-right-label_9dmVE",error:"Fieldset-module_error_-TkVr"};function SM(t){switch(t){case"radiogroup":return xn["radio-fieldset-legend"];default:return null}}function jM({children:t,error:e,label:i,formId:a,optionalLabelText:r,upperRightLabelText:n,tooltip:o,className:s,disabled:l,helperText:u,helperTextPosition:f="beforeChildren","data-testid":d,legendType:h="basic",legendNode:_,variant:F="transparent"}){const c=pe(s,[xn.fieldset]),m=M.useMemo(()=>pe(xn["helper-text"],{[xn["helper-text-before-children"]]:f==="beforeChildren",[xn["helper-text-after-children"]]:f!=="beforeChildren"}),[f]),A=pe(xn.legend,SM(h)),p=u?g.jsx("p",{className:m,children:u}):null,w=f==="beforeChildren"?g.jsxs(g.Fragment,{children:[p,t]}):g.jsxs(g.Fragment,{children:[t,p]}),b=e?g.jsxs(ot,{alignItems:"center",children:[g.jsxs(T1,{children:[g.jsx(qt,{size:"tiny"}),g.jsx(Ut,{icon:"warning",size:12,color:xn.systemRed})]}),g.jsx(qt,{size:"tiny",orientation:"horizontal"}),g.jsx("span",{className:xn.error,children:e})]}):null,y=F==="transparent"?g.jsxs(g.Fragment,{children:[w,b]}):g.jsxs("div",{className:xn.highlighted,children:[w,b]});return g.jsxs("fieldset",{disabled:l,"data-testid":d,className:c,form:a||void 0,children:[_||g.jsx("legend",{"data-testid":d?`${d}-legend`:void 0,className:A,children:g.jsxs(ot,{alignItems:"center",children:[i,o&&g.jsxs(g.Fragment,{children:[g.jsx(qt,{orientation:"horizontal",size:"small"}),g.jsx(bh,{onClick:k=>k.preventDefault(),icon:!0,content:o})]}),r&&g.jsx(g.Fragment,{children:g.jsx("span",{className:xn["fieldset-optional-label"],children:r})}),n&&g.jsxs(g.Fragment,{children:[g.jsx(T1,{grow:1}),g.jsx("span",{className:xn["fieldset-upper-right-label"],children:n})]})]})}),y]})}function LM(){function t(){return yn()?{width:window.innerWidth,height:window.innerHeight}:{width:void 0,height:void 0}}const[e,i]=M.useState(t);return M.useEffect(()=>{if(!yn())return;let a;function r(){clearTimeout(a),a=setTimeout(()=>i(t()),100)}return window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[]),e}var V1={exports:{}};V1.exports;var O5;function MM(){return O5||(O5=1,function(t,e){var i=9007199254740991,a="[object Arguments]",r="[object Function]",n="[object GeneratorFunction]",o="[object Map]",s="[object Object]",l="[object Promise]",u="[object Set]",f="[object WeakMap]",d="[object DataView]",h=/[\\^$.*+?()[\]{}|]/g,_=/^\[object .+?Constructor\]$/,F=typeof Qi=="object"&&Qi&&Qi.Object===Object&&Qi,c=typeof self=="object"&&self&&self.Object===Object&&self,m=F||c||Function("return this")(),A=e&&!e.nodeType&&e,p=A&&!0&&t&&!t.nodeType&&t,w=p&&p.exports===A;function b(Be,lt){return Be==null?void 0:Be[lt]}function y(Be){var lt=!1;if(Be!=null&&typeof Be.toString!="function")try{lt=!!(Be+"")}catch{}return lt}function k(Be,lt){return function($t){return Be(lt($t))}}var C=Function.prototype,v=Object.prototype,E=m["__core-js_shared__"],D=function(){var Be=/[^.]+$/.exec(E&&E.keys&&E.keys.IE_PROTO||"");return Be?"Symbol(src)_1."+Be:""}(),S=C.toString,P=v.hasOwnProperty,U=v.toString,I=RegExp("^"+S.call(P).replace(h,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),q=w?m.Buffer:void 0,T=v.propertyIsEnumerable,N=q?q.isBuffer:void 0,H=k(Object.keys,Object),$=W(m,"DataView"),x=W(m,"Map"),L=W(m,"Promise"),Q=W(m,"Set"),B=W(m,"WeakMap"),G=!T.call({valueOf:1},"valueOf"),ee=Te($),V=Te(x),X=Te(L),J=Te(Q),re=Te(B);function O(Be){return U.call(Be)}function ne(Be){if(!ht(Be)||Ae(Be))return!1;var lt=tt(Be)||y(Be)?I:_;return lt.test(Te(Be))}function W(Be,lt){var $t=b(Be,lt);return ne($t)?$t:void 0}var de=O;($&&de(new $(new ArrayBuffer(1)))!=d||x&&de(new x)!=o||L&&de(L.resolve())!=l||Q&&de(new Q)!=u||B&&de(new B)!=f)&&(de=function(Be){var lt=U.call(Be),$t=lt==s?Be.constructor:void 0,Ti=$t?Te($t):void 0;if(Ti)switch(Ti){case ee:return d;case V:return o;case X:return l;case J:return u;case re:return f}return lt});function Ae(Be){return!!D&&D in Be}function be(Be){var lt=Be&&Be.constructor,$t=typeof lt=="function"&<.prototype||v;return Be===$t}function Te(Be){if(Be!=null){try{return S.call(Be)}catch{}try{return Be+""}catch{}}return""}function ye(Be){return me(Be)&&P.call(Be,"callee")&&(!T.call(Be,"callee")||U.call(Be)==a)}var je=Array.isArray;function Oe(Be){return Be!=null&&st(Be.length)&&!tt(Be)}function me(Be){return Di(Be)&&Oe(Be)}var We=N||Nt;function rt(Be){if(Oe(Be)&&(je(Be)||typeof Be=="string"||typeof Be.splice=="function"||We(Be)||ye(Be)))return!Be.length;var lt=de(Be);if(lt==o||lt==u)return!Be.size;if(G||be(Be))return!H(Be).length;for(var $t in Be)if(P.call(Be,$t))return!1;return!0}function tt(Be){var lt=ht(Be)?U.call(Be):"";return lt==r||lt==n}function st(Be){return typeof Be=="number"&&Be>-1&&Be%1==0&&Be<=i}function ht(Be){var lt=typeof Be;return!!Be&&(lt=="object"||lt=="function")}function Di(Be){return!!Be&&typeof Be=="object"}function Nt(){return!1}t.exports=rt}(V1,V1.exports)),V1.exports}var OM=MM();const qM=Ni(OM);function q5({closeMenu:t,focusOnTrigger:e,openMenu:i,options:a,toggleMenu:r}){const[n,o]=M.useState(0),s=TM(a),l=IM(a);return{highlightedIndex:n,triggerClickHandler:()=>{r(),o(-1)},triggerKeyDownHandler:_=>{_.key==="ArrowDown"?(_.preventDefault(),i(),o(s())):_.key==="ArrowUp"?(_.preventDefault(),i(),o(l())):(_.key==="Enter"||_.key===" ")&&(_.preventDefault(),r(),o(s()))},menuKeyDownHandler:_=>{var F,c;switch(_.preventDefault(),_.key){case"Escape":{t(),e();break}case"Enter":{_.target&&((c=(F=_.target)==null?void 0:F.click)==null||c.call(F));break}case"Tab":{_.persist();const m=_.shiftKey?l(n):s(n);o(m);break}case"ArrowDown":{o(s(n));break}case"ArrowUp":{o(l(n));break}case"Home":{o(s());break}case"End":{o(l());break}}},menuMouseEnterHandler:()=>{o(-1),e()}}}function TM(t){return e=>t.length===0?-1:typeof e>"u"?0:(e+1)%t.length}function IM(t){return e=>{if(t.length===0)return-1;if(typeof e>"u")return t.length-1;let i=e-1;return i<0&&(i=t.length-1),i}}const Da={defaultText:"#333",asphalt:"#727272",night:"#333",brandSecondary:"#22abf3",pool:"#22abf3",lemon:"#f8f042",spinach:"#227c31",frost:"#a8f1f3",systemRed:"#f3224d",systemGreen:"#00a861",systemYellow:"#ffc20e",systemDefault:"#2a5cdb",snow:"#fff",transparentBlack:"rgba(0, 0, 0, 0.65)",brandPrimary:"#227c31",KWBrandPrimary:"#227c31",kwBrandPrimary:"#227c31",KWBrandSecondary:"#22abf3",kwBrandSecondary:"#22abf3",KWBrandSalmon:"#ff9676",kwBrandSalmon:"#ff9676",KWBrandFrost:"#a7f1f3",kwBrandFrost:"#a7f1f3",KWBrandPlum:"#702278",kwBrandPlum:"#702278",KWBrandLemon:"#f8f042",kwBrandLemon:"#f8f042",KWBrandSunrise:"#ffb400",kwBrandSunrise:"#ffb400",KWBrandLatte:"#d5b591",kwBrandLatte:"#d5b591",systemBlue:"#2a5cdb",systemBlueLight:"#eef2fc",systemBlueLightest:"#f4f7fd",systemBlueDark:"#1b409e",systemWarning:"#f3224d",systemWarningLight:"#fee9ed",systemWarningDark:"#d61e44",systemSuccess:"#00a861",systemSuccessLight:"#e6f6ef",systemSuccessDark:"#027946",systemInfo:"#863dff",systemInfoLight:"white",systemInfoDark:"#4700bd",systemWarn:"#f6be45",systemWarnLight:"white",systemWarnDark:"#b37d09",systemOptimistic:"#fd5d4b",systemOptimisticLight:"white",systemOptimisticDark:"#c61602",systemNavGray:"#191919",systemGray1:"#333",systemGray2:"#666",systemGray3:"#949494",systemGray4:"#aaaaaa",systemGray5:"#c6c6c6",systemGray6:"#f1f1f1",white:"#fff",workTangoPurple:"#524fef",workTangoLightPurple:"#c3d4ff",workTangoLightAqua:"#a5fcec",bodyScrollbarDisplayNone:"bodyScrollbarDisplayNone",select:"Select-module_select_HBxy-","trigger-button-label":"Select-module_trigger-button-label_O-vox",triggerButtonLabel:"Select-module_trigger-button-label_O-vox","trigger-button-label-selected":"Select-module_trigger-button-label-selected_TzGpa",triggerButtonLabelSelected:"Select-module_trigger-button-label-selected_TzGpa","trigger-button-label-with-decorator":"Select-module_trigger-button-label-with-decorator_1uqa8",triggerButtonLabelWithDecorator:"Select-module_trigger-button-label-with-decorator_1uqa8","trigger-button-icon":"Select-module_trigger-button-icon_jROmK",triggerButtonIcon:"Select-module_trigger-button-icon_jROmK","trigger-button-icon-opened":"Select-module_trigger-button-icon-opened_ofcp-",triggerButtonIconOpened:"Select-module_trigger-button-icon-opened_ofcp-","select-trigger":"Select-module_select-trigger_vgkm6",selectTrigger:"Select-module_select-trigger_vgkm6",compact:"Select-module_compact_2Xhco",error:"Select-module_error_Ddi8s","select-menu":"Select-module_select-menu_caVyT",selectMenu:"Select-module_select-menu_caVyT","select-option":"Select-module_select-option_Qh4Ug",selectOption:"Select-module_select-option_Qh4Ug",disabled:"Select-module_disabled_wJHr6",highlighted:"Select-module_highlighted_5yBiX","label-decorator":"Select-module_label-decorator_d4bKf",labelDecorator:"Select-module_label-decorator_d4bKf",popover:"Select-module_popover_og--8","popover-wrapper":"Select-module_popover-wrapper_1yM-V",popoverWrapper:"Select-module_popover-wrapper_1yM-V"};function PM({option:t,selected:e,compact:i,disabledLabel:a="",highlighted:r,onSelect:n}){const o=pe(Da["select-option"],{[Da.compact]:i,[Da.disabled]:t.disabled,[Da.highlighted]:r,[Da["label-decorator"]]:t.labelDecorator});return g.jsxs("button",{ref:s=>{s&&r&&s.focus()},className:o,onClick:s=>{s.preventDefault(),t.disabled||n==null||n(t)},role:"option",tabIndex:-1,"aria-selected":e,children:[t.labelDecorator&&t.labelDecorator,t.labelDecorator&&g.jsx(qt,{size:"small",orientation:"horizontal"}),t.label||t.value,t.disabled&&g.jsx("span",{className:"screen-reader-only",children:a})]})}function HM({ariaLabelledby:t,ariaDescribedby:e,compact:i,dataTestId:a,disabledLabel:r,disabled:n,error:o,id:s,options:l,selectedOptionValue:u,onChange:f,defaultText:d,isOpen:h,setOpen:_,triggerClassName:F,menuClassName:c,renderPopoverInPortal:m}){const A=M.useRef(null),p=zs(s,c),w=Wr(_,!0),b=Wr(_,!1),y=()=>{A.current&&A.current.focus()},k=q5({focusOnTrigger:y,options:l,openMenu:w,closeMenu:b,toggleMenu:()=>{y(),_(!h)}}),{highlightedIndex:C,triggerClickHandler:v,triggerKeyDownHandler:E,menuKeyDownHandler:D,menuMouseEnterHandler:S}=k,P=B=>{f==null||f(B),b(),y()},U=pe(Da["select-trigger"],{[Da.compact]:i,[Da.error]:o},F),I=pe(Da["select-menu"],{[Da.compact]:i},c),q=s||p("select-trigger"),T=`inner-${q}-label`,N=s?`select-menu-${s}`:p("select-menu"),H=[t,T].filter(B=>B).join(" "),$=Ze(l.find(({value:B})=>u===B),{}),x=!qM($),L=g.jsxs("button",{type:"button",id:q,className:U,disabled:n,onClick:v,ref:A,"aria-haspopup":"listbox","aria-controls":N,"aria-expanded":h,"aria-labelledby":H,"aria-describedby":e,onKeyDown:E,"data-testid":a,children:[g.jsxs("span",{id:T,className:pe(Da["trigger-button-label"],{[Da["trigger-button-label-selected"]]:x,[Da["trigger-button-label-with-decorator"]]:$.labelDecorator}),children:[$.labelDecorator&&$.labelDecorator,$.labelDecorator&&g.jsx(qt,{size:"small",orientation:"horizontal"}),$.label||$.value||d]}),g.jsx(Ut,{icon:"caret_dn",size:yc.Medium,className:Da[`trigger-button-icon${h?"-opened":""}`],color:"#666"})]}),Q=g.jsx("ul",{id:N,className:I,role:"listbox",onKeyDown:D,onMouseEnter:S,children:l.map((B,G)=>g.jsx("li",{role:"none",children:g.jsx(PM,{compact:i,disabledLabel:r,option:B,selected:u===B.value,highlighted:C===G,onSelect:P})},B.value))});return g.jsx("div",{role:"presentation",className:Da.select,children:g.jsx(mo,{isOpen:h,onSetOpen:_,parent:L,popoverComponent:Q,className:Da.popover,position:"bottom","data-testid":"meatBallMenu-popover",renderInPortal:m,popperProps:{className:Da["popover-wrapper"],sameWidth:!0}})})}function T5(t){const[e,i]=M.useState(!1),a=zs(t.id,t.label),{disabled:r,disabledLabel:n,error:o,helperText:s,helperButtonLabel:l,helperButtonClick:u,id:f,"data-testid":d,label:h,required:_,optionalLabelText:F,defaultText:c,tooltip:m,fullWidth:A,helperButtonPosition:p="bottom",renderPopoverInPortal:w=!0,...b}=t,y=f||a("select-id");return g.jsx(H1,{fullWidth:A,tooltip:m,disabled:r,error:o,helperText:s,helperButtonLabel:UM(l),helperButtonClick:u,helperButtonPosition:p,inputId:y,label:h,required:_,optionalLabelText:F,outsideClick:e?()=>i(!1):null,renderControl:({labelId:k,helperTextId:C,errorId:v})=>g.jsx(HM,{ariaLabelledby:k,ariaDescribedby:`${v} ${C}`,disabled:r,disabledLabel:n,error:o,id:y,dataTestId:d,defaultText:c,isOpen:e,setOpen:i,renderPopoverInPortal:w,...b})})}function UM(t){return t===!1?void 0:t}const ns={asphalt:"#727272",wrapper:"Pagination-module_wrapper_hPMsX",select:"Pagination-module_select_-fvf8",buttonGroup:"Pagination-module_buttonGroup_cRbfF",buttons:"Pagination-module_buttons_h-Xw3",controls:"Pagination-module_controls_w3sk-",text:"Pagination-module_text_lcPme"},I5=[{label:"50",value:"50"},{label:"100",value:"100"},{label:"200",value:"200"}];function RM({current:t,total:e=1,onPage:i,className:a="",onPageCountChange:r,pageCountOptions:n=I5,selectedPageQuantity:o=I5[0].value,paginationLabelLeft:s,paginationLabelRight:l,foggyPagination:u=!1,id:f,showPageCount:d,"data-testid":h=""}){const _=pe(a,ns.wrapper),F=pe(ns.controls,ns.buttons),c=u?"-":e.toString(),m=()=>{},A=()=>{},p=Ra(i,m),w=Ra(r,A);return g.jsxs("div",{className:_,id:f,"data-testid":h,children:[d&&g.jsxs(ot,{alignItems:"center",justifyContent:"center",children:[g.jsx("div",{className:ns.select,"data-testid":"pagination-quantity-selector",children:g.jsx(T5,{compact:!0,onChange:b=>w(b.value),options:n,selectedOptionValue:o,id:`${f}-select`,renderPopoverInPortal:!1})}),s&&g.jsx(Dt,{className:ns.text,size:"small",children:s})]}),g.jsxs("div",{className:ns.buttonGroup,children:[l&&g.jsx(U1,{size:"small",children:l}),g.jsx(ma,{icon:"caret_left",variant:"transparent",className:F,size:"extra_small",onClick:()=>p(t-1),disabled:t<=1,"data-testid":"pagination-previous-page-button"}),g.jsx(Dt,{"data-testid":"pagination-text",size:"small",color:ns.asphalt,className:ns.controls,children:`${t} / ${c}`}),g.jsx(ma,{icon:"caret_right",variant:"transparent",className:F,size:"extra_small",onClick:()=>p(t+1),disabled:e<=t,"data-testid":"pagination-next-page-button"})]})]})}const yt={defaultText:"#333",asphalt:"#727272",night:"#333",brandSecondary:"#22abf3",pool:"#22abf3",lemon:"#f8f042",spinach:"#227c31",frost:"#a8f1f3",systemRed:"#f3224d",systemGreen:"#00a861",systemYellow:"#ffc20e",systemDefault:"#2a5cdb",snow:"#fff",transparentBlack:"rgba(0, 0, 0, 0.65)",brandPrimary:"#227c31",KWBrandPrimary:"#227c31",kwBrandPrimary:"#227c31",KWBrandSecondary:"#22abf3",kwBrandSecondary:"#22abf3",KWBrandSalmon:"#ff9676",kwBrandSalmon:"#ff9676",KWBrandFrost:"#a7f1f3",kwBrandFrost:"#a7f1f3",KWBrandPlum:"#702278",kwBrandPlum:"#702278",KWBrandLemon:"#f8f042",kwBrandLemon:"#f8f042",KWBrandSunrise:"#ffb400",kwBrandSunrise:"#ffb400",KWBrandLatte:"#d5b591",kwBrandLatte:"#d5b591",systemBlue:"#2a5cdb",systemBlueLight:"#eef2fc",systemBlueLightest:"#f4f7fd",systemBlueDark:"#1b409e",systemWarning:"#f3224d",systemWarningLight:"#fee9ed",systemWarningDark:"#d61e44",systemSuccess:"#00a861",systemSuccessLight:"#e6f6ef",systemSuccessDark:"#027946",systemInfo:"#863dff",systemInfoLight:"white",systemInfoDark:"#4700bd",systemWarn:"#f6be45",systemWarnLight:"white",systemWarnDark:"#b37d09",systemOptimistic:"#fd5d4b",systemOptimisticLight:"white",systemOptimisticDark:"#c61602",systemNavGray:"#191919",systemGray1:"#333",systemGray2:"#666",systemGray3:"#949494",systemGray4:"#aaaaaa",systemGray5:"#c6c6c6",systemGray6:"#f1f1f1",white:"#fff",workTangoPurple:"#524fef",workTangoLightPurple:"#c3d4ff",workTangoLightAqua:"#a5fcec",bodyScrollbarDisplayNone:"bodyScrollbarDisplayNone",container:"DataTable-module_container_dlcZz","container-loading":"DataTable-module_container-loading_gYMZl",containerLoading:"DataTable-module_container-loading_gYMZl",loader:"DataTable-module_loader_pyZta","container-responsive":"DataTable-module_container-responsive_MPGAq",containerResponsive:"DataTable-module_container-responsive_MPGAq",withoutShadows:"DataTable-module_withoutShadows_asUQJ",sortableHeader:"DataTable-module_sortableHeader_6-gin",overflow:"DataTable-module_overflow_rQHrX","overflow-loading":"DataTable-module_overflow-loading_ykLln",overflowLoading:"DataTable-module_overflow-loading_ykLln","overflow-mobile":"DataTable-module_overflow-mobile_IXSaX",overflowMobile:"DataTable-module_overflow-mobile_IXSaX",table:"DataTable-module_table_nrbCN",table_body:"DataTable-module_table_body_o9lWL",tableBody:"DataTable-module_table_body_o9lWL",alternate_rows:"DataTable-module_alternate_rows_7NFA0",alternateRows:"DataTable-module_alternate_rows_7NFA0",header_row:"DataTable-module_header_row_Kje-v",headerRow:"DataTable-module_header_row_Kje-v",header_cell:"DataTable-module_header_cell_ySEn0",headerCell:"DataTable-module_header_cell_ySEn0",header_cell_padding:"DataTable-module_header_cell_padding_FLn9l",headerCellPadding:"DataTable-module_header_cell_padding_FLn9l",row:"DataTable-module_row_C5ZD8","row--underlined":"DataTable-module_row--underlined_kK1jI",rowUnderlined:"DataTable-module_row--underlined_kK1jI",expanded_row:"DataTable-module_expanded_row_FVNP9",expandedRow:"DataTable-module_expanded_row_FVNP9",expanded_row_content:"DataTable-module_expanded_row_content_21VIX",expandedRowContent:"DataTable-module_expanded_row_content_21VIX",cell:"DataTable-module_cell_t7AoP",nestedCellContainer:"DataTable-module_nestedCellContainer_NgkBa",align_left:"DataTable-module_align_left_BnNVn",alignLeft:"DataTable-module_align_left_BnNVn",align_center:"DataTable-module_align_center_lLhWz",alignCenter:"DataTable-module_align_center_lLhWz",align_right:"DataTable-module_align_right_irVEQ",alignRight:"DataTable-module_align_right_irVEQ",align_justify:"DataTable-module_align_justify_e-W2D",alignJustify:"DataTable-module_align_justify_e-W2D","mobile-table-wrapper":"DataTable-module_mobile-table-wrapper_ApOjL",mobileTableWrapper:"DataTable-module_mobile-table-wrapper_ApOjL","mobile-table-controls":"DataTable-module_mobile-table-controls_GdE-p",mobileTableControls:"DataTable-module_mobile-table-controls_GdE-p","mobile-table":"DataTable-module_mobile-table_OOeHu",mobileTable:"DataTable-module_mobile-table_OOeHu","mobile-table-row":"DataTable-module_mobile-table-row_lj-mv",mobileTableRow:"DataTable-module_mobile-table-row_lj-mv","mobile-checkbox":"DataTable-module_mobile-checkbox_2-4iP",mobileCheckbox:"DataTable-module_mobile-checkbox_2-4iP","toggle-mobile-content-button":"DataTable-module_toggle-mobile-content-button_sRllu",toggleMobileContentButton:"DataTable-module_toggle-mobile-content-button_sRllu","mobile-table-content":"DataTable-module_mobile-table-content_Vx9Vw",mobileTableContent:"DataTable-module_mobile-table-content_Vx9Vw","text-with-action-button":"DataTable-module_text-with-action-button_pxs6v",textWithActionButton:"DataTable-module_text-with-action-button_pxs6v","action-button":"DataTable-module_action-button_OGmux",actionButton:"DataTable-module_action-button_OGmux","pagination-buttons":"DataTable-module_pagination-buttons_61Kdc",paginationButtons:"DataTable-module_pagination-buttons_61Kdc","pair-data":"DataTable-module_pair-data_oclNx",pairData:"DataTable-module_pair-data_oclNx",data:"DataTable-module_data_flafp","nested-checkbox-header":"DataTable-module_nested-checkbox-header_8b15m",nestedCheckboxHeader:"DataTable-module_nested-checkbox-header_8b15m","nested-cell-chevron":"DataTable-module_nested-cell-chevron_JdFwA",nestedCellChevron:"DataTable-module_nested-cell-chevron_JdFwA",nestedCellWithChevron:"DataTable-module_nestedCellWithChevron_XkHAk",nestedCellOverflow:"DataTable-module_nestedCellOverflow_r4tVU",zeroStateContainer:"DataTable-module_zeroStateContainer_c6ZCI","nestedCell-0":"DataTable-module_nestedCell-0_aoxc6",nestedCell0:"DataTable-module_nestedCell-0_aoxc6","nestedCell-1":"DataTable-module_nestedCell-1_rlKKj",nestedCell1:"DataTable-module_nestedCell-1_rlKKj","nestedCell-2":"DataTable-module_nestedCell-2_iRvyW",nestedCell2:"DataTable-module_nestedCell-2_iRvyW","nestedCell-3":"DataTable-module_nestedCell-3_2ic7E",nestedCell3:"DataTable-module_nestedCell-3_2ic7E","nestedCell-4":"DataTable-module_nestedCell-4_47oJH",nestedCell4:"DataTable-module_nestedCell-4_47oJH","nestedCell-5":"DataTable-module_nestedCell-5_bzQZX",nestedCell5:"DataTable-module_nestedCell-5_bzQZX","nestedCell-6":"DataTable-module_nestedCell-6_krHly",nestedCell6:"DataTable-module_nestedCell-6_krHly","nestedCell-7":"DataTable-module_nestedCell-7_6Snth",nestedCell7:"DataTable-module_nestedCell-7_6Snth","nestedCell-8":"DataTable-module_nestedCell-8_uIB-S",nestedCell8:"DataTable-module_nestedCell-8_uIB-S","nestedCell-9":"DataTable-module_nestedCell-9_VDJZX",nestedCell9:"DataTable-module_nestedCell-9_VDJZX","nestedCell-10":"DataTable-module_nestedCell-10_3sYKs",nestedCell10:"DataTable-module_nestedCell-10_3sYKs","nestedCell-11":"DataTable-module_nestedCell-11_qr9hX",nestedCell11:"DataTable-module_nestedCell-11_qr9hX","nestedCell-12":"DataTable-module_nestedCell-12_xMEIK",nestedCell12:"DataTable-module_nestedCell-12_xMEIK","nestedCell-13":"DataTable-module_nestedCell-13_ILUcl",nestedCell13:"DataTable-module_nestedCell-13_ILUcl","nestedCell-14":"DataTable-module_nestedCell-14_eCNFe",nestedCell14:"DataTable-module_nestedCell-14_eCNFe","nestedCell-15":"DataTable-module_nestedCell-15_gYhqF",nestedCell15:"DataTable-module_nestedCell-15_gYhqF","nestedCell-16":"DataTable-module_nestedCell-16_-YU8p",nestedCell16:"DataTable-module_nestedCell-16_-YU8p","nestedCell-17":"DataTable-module_nestedCell-17_-BNBl",nestedCell17:"DataTable-module_nestedCell-17_-BNBl","nestedCell-18":"DataTable-module_nestedCell-18_p-ndq",nestedCell18:"DataTable-module_nestedCell-18_p-ndq","nestedCell-19":"DataTable-module_nestedCell-19_bY9Cy",nestedCell19:"DataTable-module_nestedCell-19_bY9Cy","top-pagination":"DataTable-module_top-pagination_0jiBg",topPagination:"DataTable-module_top-pagination_0jiBg","top-component":"DataTable-module_top-component_GbZQZ",topComponent:"DataTable-module_top-component_GbZQZ"};function QM({toggle:t,onClick:e}){return g.jsx(ma,{icon:t?"caret_up":"caret_dn",size:"small",iconSize:8,onClick:e,className:yt["toggle-mobile-content-button"],"data-testid":"toggle-data-button"})}function NM({showCheckboxes:t=!1,columns:e=[],dataItem:i,selectedRowIds:a=[],onToggleSelectOne:r=Ei}){const[n,o]=M.useState(!1),s=e.every(u=>!u.hideOnResponsivePreview),l=()=>{const u=e.filter(f=>!f.hideOnResponsive);return n?u:u.filter(f=>!f.hideOnResponsivePreview)};return g.jsxs("div",{className:yt["mobile-table-row"],children:[t&&g.jsx("div",{className:yt["mobile-checkbox"],children:g.jsx(Vs,{id:i.id,checked:a.includes(i.id),onChange:Xt(r,i.id),"data-testid":"mobile-item-checkbox"})}),!s&&g.jsx(QM,{toggle:n,onClick:Xt(o,!n)}),g.jsx("div",{className:yt["mobile-table-content"],children:l().map((u,f)=>g.jsxs("div",{className:yt["pair-data"],children:[g.jsx("div",{className:yt["text-with-action-button"],children:g.jsx(U1,{size:"small",children:typeof u.header=="function"?u.header():u.header})}),g.jsx("div",{className:yt.data,children:u.renderCell(i)})]},`${f}`))})]})}function P5({alignment:t,dataItem:e,renderCell:i,nestedLevel:a=0,withCheckbox:r,onToggleSelectOne:n,firstColumn:o=!1,onToggleExpansionOne:s,hasChildren:l,isExpanded:u,checkState:f,dataKey:d,width:h}){const _=pe(yt.cell,{[yt[`align_${t}`]]:!!t,[yt.nestedCellContainer]:o,[yt[`nestedCell-${a}`]]:o,[yt.nestedCellWithChevron]:o&&r&&l}),F=d(e);return g.jsxs("td",{className:_,width:h,children:[r&&g.jsx(Vs,{id:F,checked:f==="half-checked"||f==="checked",indeterminate:f==="half-checked",onChange:n,"data-testid":`nested-cell-checkbox-${F}`}),g.jsx("div",{className:yt.nestedCellOverflow,children:i(e)}),o&&l&&g.jsx(ma,{icon:u?"caret_up":"caret_dn",iconSize:8,size:"small",onClick:Jo(s,F),"data-testid":"expand-row-button"})]},F)}function o2({checkState:t,columns:e,dataItem:i,dataKey:a,defaultAlignment:r,hasChildren:n,isExpanded:o=!1,nestedLevel:s=0,onToggleExpansionOne:l,onToggleSelectOne:u,showCheckboxes:f=!1}){const d=pe(yt.row),h=a(i);return g.jsx("tr",{className:d,children:e.map(({header:_,alignment:F,renderCell:c},m)=>{const A=`${_}-${h}`;return g.jsx(P5,{alignment:F||r,renderCell:c,dataItem:i,nestedLevel:m===0?s:0,onToggleSelectOne:u,withCheckbox:f&&m===0,isExpanded:o,firstColumn:m===0,onToggleExpansionOne:l,hasChildren:n,checkState:t,dataKey:a},A)})})}function H5(t){var m,A;const{dataItem:e,nestedLevel:i,expandedRowIds:a,nestedField:r,getChildrenIds:n,onToggleSelectOne:o,dataKey:s,columns:l=[],alignment:u,showCheckboxes:f,onToggleExpansionOne:d,getCheckState:h}=t,_=(m=e[r])==null?void 0:m.map(p=>{const w=s(p);return a.includes(w)?M.createElement(H5,{...t,key:`generator-${w}`,dataItem:p,nestedLevel:Ze(i,0)+1}):g.jsx(o2,{columns:l,dataItem:p,defaultAlignment:u,nestedLevel:Ze(i,0)+1,onToggleSelectOne:Jo(o,w),showCheckboxes:f,onToggleExpansionOne:d,hasChildren:!!(p[r]||[]).length,isExpanded:a.includes(w),checkState:h(p),dataKey:s},w)}),F=s(e),c=n(e);return g.jsxs(M.Fragment,{children:[g.jsx(o2,{columns:l,dataItem:e,defaultAlignment:u,nestedLevel:i,onToggleSelectOne:()=>{c.forEach(p=>o==null?void 0:o(p)),o==null||o(F)},showCheckboxes:f,onToggleExpansionOne:d,hasChildren:!!((A=e==null?void 0:e[r])!=null&&A.length),isExpanded:a.includes(F),checkState:h(e),dataKey:s},F),_]})}const $M={neutral:"up_down_caret",asc:"caret_up",des:"caret_dn"};function s2({column:t,onClick:e,sort:i}){const a=i&&$M[i],r=typeof t.header=="function"?t.header():t.header,n=String(r),o=Jo(e,n);return g.jsx("div",{className:yt.sortableHeader,children:a?g.jsxs(ot,{alignItems:"center",justifyContent:"center",children:[g.jsx(U1,{size:"small",children:r})," ",g.jsx("span",{children:g.jsx(ma,{iconSize:8,icon:a,variant:"subtle",onClick:o})})]}):g.jsx(U1,{size:"small",children:r})})}function zM({columns:t,isSelectAllChecked:e,onClick:i,onToggleSelectAll:a,defaultAlignment:r,enableNestedRows:n,showCheckboxes:o,selectAllStatus:s}){const u=t.find(d=>d.sort!==void 0)?"header_cell":"header_cell_padding";function f(d,h){if(n){if(h!==0)return g.jsx(s2,{column:d,onClick:i,sort:d.sort});{const _=es(s==="checked",s==="half-checked",e);return g.jsxs("div",{className:yt["nested-checkbox-header"],children:[o&&g.jsx(Vs,{id:"select-all","data-testid":"table-select-all-checkbox",checked:_,indeterminate:s==="half-checked",onChange:a}),g.jsx(s2,{column:d,onClick:i,sort:d.sort})]})}}else return d.isCheckBox?g.jsx(Vs,{id:"select-all","data-testid":"table-select-all-checkbox",checked:e,onChange:a}):g.jsx(s2,{column:d,onClick:i,sort:d.sort})}return g.jsx("tr",{className:yt.header_row,children:t.map((d,h)=>{const _=pe(yt[u],yt[`align_${d.alignment||r}`]),F=`${d.header}-header-cell-${h}`;return g.jsx("td",{className:_,children:f(d,h)},F)})})}function WM({alignment:t,dataItem:e,renderCell:i,width:a}){const r=pe(yt.cell,{[yt[`align_${t}`]]:!!t});return g.jsx("td",{width:a,className:r,children:i(e)})}function GM({columns:t,dataItem:e,defaultAlignment:i,isExpanded:a,renderExpandedRowContent:r,rowNumber:n,enableNestedRows:o,nestedLevel:s,showCheckboxes:l,onToggleSelectOne:u,dataKey:f}){const d=pe(yt.row,{[yt["row--underlined"]]:!a});return g.jsxs(g.Fragment,{children:[g.jsx("tr",{className:d,children:t.map(({header:h,alignment:_,renderCell:F,width:c},m)=>{const A=`${h}-row-${n}-cell-${m}`;return!o||m!==0?g.jsx(WM,{alignment:_||i,renderCell:F,dataItem:e,width:c},A):g.jsx(P5,{alignment:_||i,renderCell:F,dataItem:e,nestedLevel:s,onToggleSelectOne:u,withCheckbox:l,width:c,dataKey:f},A)})}),!o&&a&&r&&g.jsx(VM,{colSpan:t.length,children:r()})]})}function VM(t){const{children:e,colSpan:i}=t;return g.jsx("tr",{className:yt.expanded_row,children:g.jsx("td",{colSpan:i,children:g.jsx("div",{className:yt.expanded_row_content,children:e})})})}function KM({alignment:t="left",columns:e=[],data:i=[],dataKey:a,showCheckboxes:r=!1,showExpansionToggles:n=!1,selectedRowIds:o=[],onClick:s=Ei,onToggleExpansionOne:l,onToggleSelectAll:u,onToggleSelectOne:f,isSelectAllChecked:d,expandedRowTemplateComponent:h,expandedRowIds:_=[],className:F,withoutShadows:c,alternateRows:m,mobileHeader:A,withoutPagination:p=!0,loading:w=!1,paginationOptions:b=[],paginationSize:y,onPageChange:k,onPaginationSizeChange:C,currentPage:v=1,totalPages:E=1,enableNestedRows:D=!1,nestedField:S="children",withResponsiveLayout:P=!1,selectAllStatus:U,responsiveBreakpoint:I=600,bottomComponent:q,topComponent:T,bulkActionBar:N,paginationLabelLeft:H,paginationLabelRight:$,zeroState:x=null,disabledRowIds:L=[],withTopPagination:Q=!1,foggyPagination:B=!1,...G}){const{width:ee}=LM(),V=P&&Ze(ee,0)<=I,X=pe(yt.table,yt[`align_${t}`]),J=pe(yt.overflow,{[yt["overflow-mobile"]]:V,[yt["overflow-loading"]]:w}),re=pe(yt.table_body,{[yt.alternate_rows]:m}),O={isCheckBox:!0,header:"checkbox",renderCell:me=>{const We=L.includes(me.id),rt=o.includes(me.id);return g.jsx(Vs,{id:me.id,checked:rt,onChange:Jo(f,me.id),disabled:We})}},ne={isCheckBox:!1,isExpansionToggle:!0,header:"",renderCell:me=>{const{id:We}=me,rt=_.includes(We),tt=rt?"caret_up":"caret_dn";return g.jsx(ma,{className:"expansion-toggle",icon:tt,"data-testid":rt?"expanded":"unexpanded",size:"extra_small",variant:"transparent",onClick:Jo(l,We)})}};let W=e;r&&n?W=[O,ne,...e]:r?W=[O,...e]:n&&(W=[ne,...e]);const de=pe(yt.container,{[yt["container-loading"]]:w,[yt.withoutShadows]:c,[yt["container-responsive"]]:V},F);function Ae(me){var rt;const We=a(me);if((me[S]||[]).length){const tt=(rt=me[S])==null?void 0:rt.map(st=>Ae(st));return tt.every(st=>st==="checked")?"checked":tt.every(st=>st==="unchecked")?"unchecked":"half-checked"}return o.includes(We)?"checked":"unchecked"}function be(me){const We=a(me),rt=Ze(me[S],[]).reduce((tt,st)=>st[S]?[...be(st),...tt]:[a(st),...tt],[]);return[We,...rt]}const Te=i&&i.length>0||!x,ye=B||v>0&&i.length>0?v:1,je=B||E>0&&i.length>0?E:1;function Oe(me,We=!0,rt=""){return g.jsx(RM,{onPage:Ra(k,Ei),current:ye,total:je,pageCountOptions:b.map(tt=>({label:tt.text,value:tt.value})),selectedPageQuantity:y,onPageCountChange:C,paginationLabelLeft:H,paginationLabelRight:$,foggyPagination:B,className:rt,showPageCount:We,"data-testid":me})}return g.jsxs("div",{className:de,children:[w?g.jsx("div",{className:yt.loader,"data-testid":"data-table-loader",children:g.jsx(Wn,{})}):null,g.jsxs("div",{className:J,children:[g.jsxs(ot,{children:[g.jsx("div",{className:yt["top-component"],children:T}),!p&&Q&&Oe("top-pagination",!1,yt["top-pagination"])]}),N,!V&&g.jsxs(g.Fragment,{children:[g.jsxs("table",{className:X,...G,children:[g.jsx("thead",{children:g.jsx(zM,{columns:W,isSelectAllChecked:d,onToggleSelectAll:Jo(u,i.map(a)),showCheckboxes:r,enableNestedRows:D,defaultAlignment:t,onClick:s,selectAllStatus:U})}),Te?g.jsx("tbody",{className:re,children:i.map((me,We)=>{var ht;const rt=a(me),tt=_.includes(rt),st=n&&tt;return D?tt?g.jsx(H5,{dataItem:me,nestedLevel:0,expandedRowIds:_,nestedField:S,getChildrenIds:be,onToggleSelectOne:f,dataKey:a,columns:e,alignment:t,showCheckboxes:r,onToggleExpansionOne:l,getCheckState:Ae},`generator-${rt}`):g.jsx(o2,{columns:e,dataItem:me,defaultAlignment:t,nestedLevel:0,onToggleSelectOne:Jo(f,rt),showCheckboxes:r,onToggleExpansionOne:l,hasChildren:!!((ht=me==null?void 0:me[S])!=null&&ht.length),isExpanded:!1,checkState:Ae(me),dataKey:a},rt):g.jsx(GM,{columns:W,dataItem:me,defaultAlignment:t,showCheckboxes:r,isExpanded:st,renderExpandedRowContent:()=>st&&(h==null?void 0:h(me)),rowNumber:We,dataKey:a,onToggleSelectOne:Jo(f,rt)},rt)})}):g.jsx("tbody",{children:g.jsx("tr",{children:g.jsx("td",{"data-testid":"dataTable-zeroState",className:yt.zeroStateContainer,colSpan:e.length+(r?1:0),children:g.jsx(ot,{justifyContent:"center",alignItems:"center",children:g.jsx("div",{children:x})})})})})]}),!p&&Oe("bottom-pagination")]}),q]}),V&&g.jsxs("div",{className:yt["mobile-table-wrapper"],"data-testid":"responsive-layout",children:[g.jsx("div",{className:yt["mobile-table-controls"],children:A}),g.jsx("div",{className:yt["mobile-table"],children:Te?i.map(me=>{const We=a(me);return g.jsx(NM,{columns:e,dataItem:me,showCheckboxes:r,selectedRowIds:o,onToggleSelectOne:f},We)}):g.jsx(ot,{className:yt.zeroStateContainer,justifyContent:"center",alignItems:"center",children:g.jsx("div",{children:x})})})]})]})}const Ks={"divider-nav-gray":"Divider-module_divider-nav-gray_wiJwk","divider-gray-1":"Divider-module_divider-gray-1_UVQoP","divider-gray-2":"Divider-module_divider-gray-2_EGXBM","divider-gray-3":"Divider-module_divider-gray-3_kFbIw","divider-gray-4":"Divider-module_divider-gray-4_duUVN","divider-gray-5":"Divider-module_divider-gray-5_42f6K","divider-gray-6":"Divider-module_divider-gray-6_jZM--"},XM={"nav-gray":Ks["divider-nav-gray"],"gray-1":Ks["divider-gray-1"],"gray-2":Ks["divider-gray-2"],"gray-3":Ks["divider-gray-3"],"gray-4":Ks["divider-gray-4"],"gray-5":Ks["divider-gray-5"],"gray-6":Ks["divider-gray-6"]};function l2({className:t,style:e,color:i="gray-5"}){const a=pe(XM[i],t);return g.jsx("div",{className:a,style:e})}const sr={systemDefault:"#2a5cdb","selected-option":"Dropdown-module_selected-option_V4w8M",dropdown:"Dropdown-module_dropdown_YK-v5","dropdown-button":"Dropdown-module_dropdown-button_BlsY-","trigger-button-icon":"Dropdown-module_trigger-button-icon_DKyQH","trigger-button-menu-icon":"Dropdown-module_trigger-button-menu-icon_D-sxH","dropdown-list":"Dropdown-module_dropdown-list_HOEEx","dropdown-option":"Dropdown-module_dropdown-option_YEJxk",disabled:"Dropdown-module_disabled_iL0Wh",highlighted:"Dropdown-module_highlighted_f2Ku6",selected:"Dropdown-module_selected_erVAp","selected-option-icon":"Dropdown-module_selected-option-icon_L-fWY"},YM={defaultText:"#333",asphalt:"#727272",night:"#333",brandSecondary:"#22abf3",pool:"#22abf3",lemon:"#f8f042",spinach:"#227c31",frost:"#a8f1f3",systemRed:"#f3224d",systemGreen:"#00a861",systemYellow:"#ffc20e",systemDefault:"#2a5cdb",snow:"#fff",transparentBlack:"rgba(0, 0, 0, 0.65)",brandPrimary:"#227c31",KWBrandPrimary:"#227c31",kwBrandPrimary:"#227c31",KWBrandSecondary:"#22abf3",kwBrandSecondary:"#22abf3",KWBrandSalmon:"#ff9676",kwBrandSalmon:"#ff9676",KWBrandFrost:"#a7f1f3",kwBrandFrost:"#a7f1f3",KWBrandPlum:"#702278",kwBrandPlum:"#702278",KWBrandLemon:"#f8f042",kwBrandLemon:"#f8f042",KWBrandSunrise:"#ffb400",kwBrandSunrise:"#ffb400",KWBrandLatte:"#d5b591",kwBrandLatte:"#d5b591",systemBlue:"#2a5cdb",systemBlueLight:"#eef2fc",systemBlueLightest:"#f4f7fd",systemBlueDark:"#1b409e",systemWarning:"#f3224d",systemWarningLight:"#fee9ed",systemWarningDark:"#d61e44",systemSuccess:"#00a861",systemSuccessLight:"#e6f6ef",systemSuccessDark:"#027946",systemInfo:"#863dff",systemInfoLight:"white",systemInfoDark:"#4700bd",systemWarn:"#f6be45",systemWarnLight:"white",systemWarnDark:"#b37d09",systemOptimistic:"#fd5d4b",systemOptimisticLight:"white",systemOptimisticDark:"#c61602",systemNavGray:"#191919",systemGray1:"#333",systemGray2:"#666",systemGray3:"#949494",systemGray4:"#aaaaaa",systemGray5:"#c6c6c6",systemGray6:"#f1f1f1",white:"#fff",workTangoPurple:"#524fef",workTangoLightPurple:"#c3d4ff",workTangoLightAqua:"#a5fcec",bodyScrollbarDisplayNone:"bodyScrollbarDisplayNone","fill-asphalt":"SvgIcon-module_fill-asphalt_U9w5d",fillAsphalt:"SvgIcon-module_fill-asphalt_U9w5d","fill-gray":"SvgIcon-module_fill-gray_AvEbr",fillGray:"SvgIcon-module_fill-gray_AvEbr","fill-transparent-black":"SvgIcon-module_fill-transparent-black_43dZh",fillTransparentBlack:"SvgIcon-module_fill-transparent-black_43dZh","fill-snow":"SvgIcon-module_fill-snow_jGtkF",fillSnow:"SvgIcon-module_fill-snow_jGtkF","fill-dove":"SvgIcon-module_fill-dove_XDz-w",fillDove:"SvgIcon-module_fill-dove_XDz-w","fill-system-green":"SvgIcon-module_fill-system-green_ocS42",fillSystemGreen:"SvgIcon-module_fill-system-green_ocS42","fill-spinach":"SvgIcon-module_fill-spinach_k3myq",fillSpinach:"SvgIcon-module_fill-spinach_k3myq","fill-pool":"SvgIcon-module_fill-pool_zZaw2",fillPool:"SvgIcon-module_fill-pool_zZaw2"};function ZM({color:t,icon:e,className:i}){const a=pe(YM[t],i),r=ch[e];return g.jsx("svg",{className:a,viewBox:"0 0 18 18","aria-hidden":"true","data-testid":"svg-icon",children:g.jsx("g",{children:r&&g.jsx(r,{})})})}const JM={DOVE:"fill-dove"};function eO({option:t,selected:e,highlighted:i,onSelect:a,selectedLabel:r=""}){const n=t.href&&!t.disabled?"a":"button",o=pe(sr["dropdown-option"],{[sr.selected]:e,[sr.disabled]:t.disabled,[sr.highlighted]:i});return g.jsxs(n,{ref:s=>{s&&i&&s.focus()},className:o,href:t.href,onClick:s=>{n!=="a"&&s.preventDefault(),t.disabled||a(t)},role:"option","aria-selected":e,children:[t.label||t.value,e&&g.jsxs(g.Fragment,{children:[g.jsx(ZM,{icon:"check",color:JM.DOVE,className:sr["selected-option-icon"]}),g.jsx("span",{className:sr["selected-option"],children:r})]})]})}function tO({dropdownMenuId:t,dropdownTriggerId:e,menuKeyDownHandler:i,menuMouseEnterHandler:a,options:r,selectedOptionValue:n,highlightedIndex:o,onOptionSelect:s,selectedLabel:l,isOpen:u,listContainerClassname:f}){const d=pe(sr["dropdown-list"],f);return g.jsx("ul",{id:t,className:d,role:"listbox","aria-labelledby":e,onKeyDown:i,onMouseEnter:a,"data-testid":"dropdown-list","aria-expanded":u,children:r.map((h,_)=>g.jsx("li",{role:"none","data-testid":`dropdown-list-option-${_}`,children:g.jsx(eO,{option:h,selected:n===h.value,highlighted:o===_,onSelect:s,selectedLabel:l})},String(h.value)))})}const iO=sr.systemDefault;function aO({ariaLabelledby:t,buttonSize:e="default",buttonIcon:i,buttonVariant:a="transparentDark","data-testid":r,hideLabel:n,icon:o="caret_dn",iconSize:s=yc.ExtraSmall,id:l,label:u="",onChange:f,options:d,selectedLabel:h,selectedOptionValue:_,className:F,keepOpenOnSelect:c=!1,listContainerClassname:m,...A}){const p=zs(l,u,t),w=M.useRef(null),[b,y]=M.useState(!1),k=()=>{var x;(x=w.current)==null||x.focus()},C=q5({closeMenu:Xt(y,!1),focusOnTrigger:k,openMenu:Xt(y,!0),options:d,toggleMenu:Xt(y,!b)}),{highlightedIndex:v,triggerClickHandler:E,triggerKeyDownHandler:D,menuKeyDownHandler:S,menuMouseEnterHandler:P}=C,U=x=>{f==null||f(x),c||y(!1),k()},I=l||p("dropdown-trigger"),q=`inner-${I}-label`,T=l?`dropdown-menu-${l}`:p("dropdown-menu"),N=[t,q].filter(x=>x).join(" "),H=pe(sr.dropdown,F,{[sr["dropdown-button"]]:a=="secondary"&&!e}),$=a==="pill"||a==="primary"?"currentColor":void 0;return g.jsx("div",{role:"presentation",className:H,children:g.jsx(wc,{isOpen:b,onSetOpen:y,closeOnClickAway:!0,popupElement:g.jsx(tO,{dropdownMenuId:T,dropdownTriggerId:I,menuKeyDownHandler:S,menuMouseEnterHandler:P,options:d,selectedOptionValue:_,highlightedIndex:v,onOptionSelect:U,selectedLabel:h||"Selected",isOpen:b,listContainerClassname:m}),children:g.jsx($i,{...A,id:I,className:sr["dropdown-trigger"],size:e,variant:a,onClick:E,innerRef:w,"aria-haspopup":"listbox","aria-controls":T,"aria-expanded":b,"aria-labelledby":N,onKeyDown:D,"data-testid":r||"dropdown-button",icon:n?void 0:i,children:n?g.jsxs(g.Fragment,{children:[g.jsx("span",{id:q,className:"screen-reader-only",children:u}),g.jsx(Ut,{icon:"meatball_menu",variant:"filled",className:sr["trigger-button-menu-icon"],color:$??iO})]}):g.jsxs(g.Fragment,{children:[g.jsx("span",{id:q,className:sr["trigger-button-label"],children:u}),i&&g.jsx(Ut,{icon:i,size:s,className:sr["trigger-button-icon"],color:$}),!i&&g.jsx(Ut,{icon:o,size:s,className:sr["trigger-button-icon"],color:$})]})})})})}le({module:()=>Promise.resolve().then(()=>C1e),component:t=>t.EmojiPicker}),le({module:()=>Promise.resolve().then(()=>E1e),component:t=>t.EmojiDisplay});const po={employees:"EmployeeList-module_employees_bZhaP","list-item":"EmployeeList-module_list-item_RLaIO","employee-container":"EmployeeList-module_employee-container_it6T7","text-container":"EmployeeList-module_text-container_dURpv","secondary-text":"EmployeeList-module_secondary-text_c2ijl","height-limited":"EmployeeList-module_height-limited_WcxJF","list-profile-pic":"EmployeeList-module_list-profile-pic_MkLFo"};function rO({employees:t,showTitles:e=!1,showSecondaryText:i=!1,showDivider:a=!1,heightLimited:r=!1,openProfileInNewTab:n=!1,disableProfileLink:o=!1,profilePicIconOverride:s,footerComponent:l=null}){const u=pe({[po["height-limited"]]:r});function f({children:d,employee:h}){return o?g.jsx("div",{className:pe(po["text-container"],po["text-container-disabled"]),style:{cursor:"default"},children:d}):g.jsx("a",{className:po["text-container"],href:h.profileUrl,target:n?"_blank":"_self",rel:"noopener noreferrer",children:d})}return g.jsx("div",{"data-testid":"employee-list-container",className:u,children:g.jsxs("ul",{className:po.employees,"data-testid":"employee-list",children:[t.map((d,h)=>g.jsxs(M.Fragment,{children:[a&&h>0&&g.jsx("li",{children:g.jsx(l2,{})}),g.jsx("li",{className:po["list-item"],"data-testid":"employee-list-item",children:g.jsxs("div",{className:po["employee-container"],children:[g.jsx(Eh,{user:d,size:"medium",className:po["list-profile-pic"],icon:s}),g.jsxs(f,{employee:d,children:[g.jsx(Dt,{size:"paragraph",children:d.fullName||d.name}),e&&g.jsx(Dt,{size:"small","data-testid":"employee-job-title",children:d.jobTitle}),i&&d.featuredGroup&&g.jsx(Dt,{size:"paragraphSmall","data-testid":"employee-secondary-text",className:po["secondary-text"],children:d.featuredGroup})]})]})})]},d.id)),l]})})}function nO(t){let e;return yn()?[()=>{e=setTimeout(t)},()=>{clearTimeout(e)}]:[Ei,Ei]}function oO({elementRefs:t=[],dependencies:e=[],ignoreEffect:i=!1,handler:a=Ei}){M.useEffect(()=>{if(i||!yn())return;Qh()[Rh]||(Qh()[Rh]=new Map);const r=Qh()[Rh];return r==null||r.set(t,a),document.addEventListener("click",Uh,!0),document.addEventListener("tap",Uh,!0),()=>{r==null||r.delete(t),document.removeEventListener("click",Uh,!0),document.removeEventListener("tap",Uh,!0)}},[i,...e])}function Uh(t){if(!yn())return;const e=t&&typeof t=="object"&&"target"in t&&t.target?t.target:null,i=Ze(Qh()[Rh],[]);for(const[a,r]of i)!a.some(o=>o.current&&e&&o.current.contains(e))&&r&&r()}const Rh="$confettiClickAwayNodes";function Qh(){return window}var Nh={exports:{}},sO=Nh.exports,U5;function lO(){return U5||(U5=1,function(t,e){(function(i,a){t.exports=a(M)})(sO,function(i){return function(a){function r(o){if(n[o])return n[o].exports;var s=n[o]={exports:{},id:o,loaded:!1};return a[o].call(s.exports,s,s.exports,r),s.loaded=!0,s.exports}var n={};return r.m=a,r.c=n,r.p="",r(0)}([function(a,r,n){function o(k){return k&&k.__esModule?k:{default:k}}function s(k,C){var v={};for(var E in k)C.indexOf(E)>=0||Object.prototype.hasOwnProperty.call(k,E)&&(v[E]=k[E]);return v}function l(k,C){if(!(k instanceof C))throw new TypeError("Cannot call a class as a function")}function u(k,C){if(!k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!C||typeof C!="object"&&typeof C!="function"?k:C}function f(k,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);k.prototype=Object.create(C&&C.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(k,C):k.__proto__=C)}Object.defineProperty(r,"__esModule",{value:!0}),r.conformToMask=void 0;var d=Object.assign||function(k){for(var C=1;C<arguments.length;C++){var v=arguments[C];for(var E in v)Object.prototype.hasOwnProperty.call(v,E)&&(k[E]=v[E])}return k},h=function(){function k(C,v){for(var E=0;E<v.length;E++){var D=v[E];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(C,D.key,D)}}return function(C,v,E){return v&&k(C.prototype,v),E&&k(C,E),C}}(),_=n(3);Object.defineProperty(r,"conformToMask",{enumerable:!0,get:function(){return o(_).default}});var F=n(11),c=o(F),m=n(9),A=o(m),p=n(5),w=o(p),b=n(2),y=function(k){function C(){var v;l(this,C);for(var E=arguments.length,D=Array(E),S=0;S<E;S++)D[S]=arguments[S];var P=u(this,(v=C.__proto__||Object.getPrototypeOf(C)).call.apply(v,[this].concat(D)));return P.setRef=P.setRef.bind(P),P.onBlur=P.onBlur.bind(P),P.onChange=P.onChange.bind(P),P}return f(C,k),h(C,[{key:"setRef",value:function(v){this.inputElement=v}},{key:"initTextMask",value:function(){var v=this.props,E=this.props.value;this.textMaskInputElement=(0,w.default)(d({inputElement:this.inputElement},v)),this.textMaskInputElement.update(E)}},{key:"componentDidMount",value:function(){this.initTextMask()}},{key:"componentDidUpdate",value:function(v){var E=this.props,D=E.value,S=E.pipe,P=E.mask,U=E.guide,I=E.placeholderChar,q=E.showMask,T={guide:U,placeholderChar:I,showMask:q},N=typeof S=="function"&&typeof v.pipe=="function"?S.toString()!==v.pipe.toString():(0,b.isNil)(S)&&!(0,b.isNil)(v.pipe)||!(0,b.isNil)(S)&&(0,b.isNil)(v.pipe),H=P.toString()!==v.mask.toString(),$=Object.keys(T).some(function(L){return T[L]!==v[L]})||H||N,x=D!==this.inputElement.value;(x||$)&&this.initTextMask()}},{key:"render",value:function(){var E=this.props,D=E.render,S=s(E,["render"]);return delete S.mask,delete S.guide,delete S.pipe,delete S.placeholderChar,delete S.keepCharPositions,delete S.value,delete S.onBlur,delete S.onChange,delete S.showMask,D(this.setRef,d({onBlur:this.onBlur,onChange:this.onChange,defaultValue:this.props.value},S))}},{key:"onChange",value:function(v){this.textMaskInputElement.update(),typeof this.props.onChange=="function"&&this.props.onChange(v)}},{key:"onBlur",value:function(v){typeof this.props.onBlur=="function"&&this.props.onBlur(v)}}]),C}(c.default.PureComponent);r.default=y,y.propTypes={mask:A.default.oneOfType([A.default.array,A.default.func,A.default.bool,A.default.shape({mask:A.default.oneOfType([A.default.array,A.default.func]),pipe:A.default.func})]).isRequired,guide:A.default.bool,value:A.default.oneOfType([A.default.string,A.default.number]),pipe:A.default.func,placeholderChar:A.default.string,keepCharPositions:A.default.bool,showMask:A.default.bool},y.defaultProps={render:function(k,C){return c.default.createElement("input",d({ref:k},C))}}},function(a,r){Object.defineProperty(r,"__esModule",{value:!0}),r.placeholderChar="_",r.strFunction="function"},function(a,r,n){function o(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_,m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h.placeholderChar;if(!s(c))throw new Error("Text-mask:convertMaskToPlaceholder; The mask property must be an array.");if(c.indexOf(m)!==-1)throw new Error(`Placeholder character must not be used as part of the mask. Please specify a character that is not present in your mask as your placeholder character.
|
|
85
|
+
Valid keys: `+JSON.stringify(Object.keys(x),null," "));var W=ne(X,O,G,ee,V+"."+O,i);if(W)return W}return null}return m(L)}function I(x){switch(typeof x){case"number":case"string":case"undefined":return!0;case"boolean":return!x;case"object":if(Array.isArray(x))return x.every(I);if(x===null||s(x))return!0;var L=d(x);if(L){var Q=L.call(x),B;if(L!==x.entries){for(;!(B=Q.next()).done;)if(!I(B.value))return!1}else for(;!(B=Q.next()).done;){var G=B.value;if(G&&!I(G[1]))return!1}}else return!1;return!0;default:return!1}}function q(x,L){return x==="symbol"?!0:L?L["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&L instanceof Symbol:!1}function T(x){var L=typeof x;return Array.isArray(x)?"array":x instanceof RegExp?"object":q(L,x)?"symbol":L}function N(x){if(typeof x>"u"||x===null)return""+x;var L=T(x);if(L==="object"){if(x instanceof Date)return"date";if(x instanceof RegExp)return"regexp"}return L}function H(x){var L=N(x);switch(L){case"array":case"object":return"an "+L;case"boolean":case"date":case"regexp":return"a "+L;default:return L}}function $(x){return!x.constructor||!x.constructor.name?h:x.constructor.name}return _.checkPropTypes=r,_.resetWarningCache=r.resetWarningCache,_.PropTypes=_,_},t2}var i2,p5;function zL(){if(p5)return i2;p5=1;var t=Zc();function e(){}function i(){}return i.resetWarningCache=e,i2=function(){function a(o,s,l,u,f,d){if(d!==t){var h=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 h.name="Invariant Violation",h}}a.isRequired=a;function r(){return a}var n={array:a,bigint:a,bool:a,func:a,number:a,object:a,string:a,symbol:a,any:a,arrayOf:r,element:a,elementType:a,instanceOf:r,node:a,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:i,resetWarningCache:e};return n.PropTypes=n,n},i2}var b5;function WL(){if(b5)return Oh.exports;if(b5=1,process.env.NODE_ENV!=="production"){var t=Gr(),e=!0;Oh.exports=$L()(t.isElement,e)}else Oh.exports=zL()();return Oh.exports}var GL=WL();const Pe=Ni(GL);var qh=function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},Xn={id:"__id__",display:"__display__"},y5=function(e,i){nu(i==="id"||i==="display",'Second arg must be either "id" or "display", got: "'.concat(i,'"'));var a=e.indexOf(Xn.display),r=e.indexOf(Xn.id);return a<0&&(a=null),r<0&&(r=null),nu(a!==null||r!==null,"The markup '".concat(e,"' does not contain either of the placeholders '__id__' or '__display__'")),a!==null&&r!==null?i==="id"&&r<=a||i==="display"&&a<=r?0:1:0},VL=function(e){var i=/^\/(.+)\/(\w+)?$/;return new RegExp(e.map(function(a){var r=i.exec(a.toString()),n=Lh(r,3),o=n[1],s=n[2];return nu(!s,"RegExp flags are not supported. Change /".concat(o,"/").concat(s," into /").concat(o,"/")),"(".concat(o,")")}).join("|"),"g")},w5=function(e){var i=0;return e.indexOf("__id__")>=0&&i++,e.indexOf("__display__")>=0&&i++,i},KL=function(){},z1=function(e,i,a){for(var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:KL,n=VL(i.map(function(y){return y.regex})),o=2,s=i.map(function(y){var k=y.markup,C=o;return o+=w5(k)+1,C}),l,u=0,f=0;(l=n.exec(e))!==null;){var d=s.find(function(y){return!!l[y]}),h=s.indexOf(d),_=i[h],F=_.markup,c=_.displayTransform,m=d+y5(F,"id"),A=d+y5(F,"display"),p=l[m],w=c(p,l[A]),b=e.substring(u,l.index);r(b,u,f),f+=b.length,a(l[0],l.index,f,p,w,h,u),f+=w.length,u=n.lastIndex}u<e.length&&r(e.substring(u),u,f)},Gs=function(e,i){var a="";return z1(e,i,function(r,n,o,s,l){a+=l},function(r){a+=r}),a},or=function(e,i,a){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"START";if(typeof a!="number")return a;var n,o=function(u,f,d){n===void 0&&d+u.length>=a&&(n=f+a-d)},s=function(u,f,d,h,_,F,c){n===void 0&&d+_.length>a&&(r==="NULL"?n=null:n=f+(r==="END"?u.length:0))};return z1(e,i,s,o),n===void 0?e.length:n},W1=function(e,i,a,r){return e.substring(0,i)+r+e.substring(a)},XL=function(e,i,a,r){var n=a.selectionStartBefore,o=a.selectionEndBefore,s=a.selectionEndAfter,l=Gs(e,r),u=l.length-i.length;n==="undefined"&&(n=s+u),o==="undefined"&&(o=n),n===o&&o===s&&l.length===i.length&&(n=n-1);var f=i.slice(n,s),d=Math.min(n,s),h=o;n===s&&(h=Math.max(o,n+u));var _=or(e,r,d,"START"),F=or(e,r,h,"END"),c=or(e,r,d,"NULL"),m=or(e,r,h,"NULL"),A=c===null||m===null,p=W1(e,_,F,f);if(!A){var w=Gs(p,r);if(w!==i){for(d=0;i[d]===w[d];)d++;f=i.slice(d,s),h=l.lastIndexOf(i.substring(s)),_=or(e,r,d,"START"),F=or(e,r,h,"END"),p=W1(e,_,F,f)}}return p},k5=function(e,i,a){var r=a,n=!1,o=function(l,u,f,d,h,_,F){f<=a&&f+h.length>a&&(r=f,n=!0)};if(z1(e,i,o),n)return r},G1=function(e,i){var a=[];return z1(e,i,function(r,n,o,s,l,u,f){a.push({id:s,display:l,childIndex:u,index:n,plainTextIndex:o})}),a},x5=function(e,i){return"".concat(e,"-").concat(i)},Th=function(e){return Object.values(e).reduce(function(i,a){var r=a.results;return i+r.length},0)},YL=function(e,i){var a=G1(e,i),r=a[a.length-1];return r?r.plainTextIndex+r.display.length:0},ZL=function(e){var i=qh(e),a=e[e.indexOf(Xn.display)+Xn.display.length],r=e[e.indexOf(Xn.id)+Xn.id.length];return new RegExp(i.replace(Xn.display,"([^".concat(qh(a||""),"]+?)")).replace(Xn.id,"([^".concat(qh(r||""),"]+?)")))},rs=function(e){return M.Children.toArray(e).map(function(i){var a=i.props,r=a.markup,n=a.regex,o=a.displayTransform;return{markup:r,regex:n?JL(n,r):ZL(r),displayTransform:o||function(s,l){return l||s}}})},JL=function(e,i){var a=new RegExp(e.toString()+"|").exec("").length-1,r=w5(i);return nu(a===r,"Number of capturing groups in RegExp ".concat(e.toString()," (").concat(a,") does not match the number of placeholders in the markup '").concat(i,"' (").concat(r,")")),e},eM=function(e,i,a){return e.replace(Xn.id,i).replace(Xn.display,a)},tM=[{base:"A",letters:/(A|Ⓐ|A|À|Á|Â|Ầ|Ấ|Ẫ|Ẩ|Ã|Ā|Ă|Ằ|Ắ|Ẵ|Ẳ|Ȧ|Ǡ|Ä|Ǟ|Ả|Å|Ǻ|Ǎ|Ȁ|Ȃ|Ạ|Ậ|Ặ|Ḁ|Ą|Ⱥ|Ɐ|[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F])/g},{base:"AA",letters:/(Ꜳ|[\uA732])/g},{base:"AE",letters:/(Æ|Ǽ|Ǣ|[\u00C6\u01FC\u01E2])/g},{base:"AO",letters:/(Ꜵ|[\uA734])/g},{base:"AU",letters:/(Ꜷ|[\uA736])/g},{base:"AV",letters:/(Ꜹ|Ꜻ|[\uA738\uA73A])/g},{base:"AY",letters:/(Ꜽ|[\uA73C])/g},{base:"B",letters:/(B|Ⓑ|B|Ḃ|Ḅ|Ḇ|Ƀ|Ƃ|Ɓ|[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181])/g},{base:"C",letters:/(C|Ⓒ|C|Ć|Ĉ|Ċ|Č|Ç|Ḉ|Ƈ|Ȼ|Ꜿ|[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E])/g},{base:"D",letters:/(D|Ⓓ|D|Ḋ|Ď|Ḍ|Ḑ|Ḓ|Ḏ|Đ|Ƌ|Ɗ|Ɖ|Ꝺ|Ð|[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779\u00D0])/g},{base:"DZ",letters:/(DZ|DŽ|[\u01F1\u01C4])/g},{base:"Dz",letters:/(Dz|Dž|[\u01F2\u01C5])/g},{base:"E",letters:/(E|Ⓔ|E|È|É|Ê|Ề|Ế|Ễ|Ể|Ẽ|Ē|Ḕ|Ḗ|Ĕ|Ė|Ë|Ẻ|Ě|Ȅ|Ȇ|Ẹ|Ệ|Ȩ|Ḝ|Ę|Ḙ|Ḛ|Ɛ|Ǝ|[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E])/g},{base:"F",letters:/(F|Ⓕ|F|Ḟ|Ƒ|Ꝼ|[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B])/g},{base:"G",letters:/(G|Ⓖ|G|Ǵ|Ĝ|Ḡ|Ğ|Ġ|Ǧ|Ģ|Ǥ|Ɠ|Ꞡ|Ᵹ|Ꝿ|[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E])/g},{base:"H",letters:/(H|Ⓗ|H|Ĥ|Ḣ|Ḧ|Ȟ|Ḥ|Ḩ|Ḫ|Ħ|Ⱨ|Ⱶ|Ɥ|[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D])/g},{base:"I",letters:/(I|Ⓘ|I|Ì|Í|Î|Ĩ|Ī|Ĭ|İ|Ï|Ḯ|Ỉ|Ǐ|Ȉ|Ȋ|Ị|Į|Ḭ|Ɨ|[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197])/g},{base:"J",letters:/(J|Ⓙ|J|Ĵ|Ɉ|[\u004A\u24BF\uFF2A\u0134\u0248])/g},{base:"K",letters:/(K|Ⓚ|K|Ḱ|Ǩ|Ḳ|Ķ|Ḵ|Ƙ|Ⱪ|Ꝁ|Ꝃ|Ꝅ|Ꞣ|[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2])/g},{base:"L",letters:/(L|Ⓛ|L|Ŀ|Ĺ|Ľ|Ḷ|Ḹ|Ļ|Ḽ|Ḻ|Ł|Ƚ|Ɫ|Ⱡ|Ꝉ|Ꝇ|Ꞁ|[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780])/g},{base:"LJ",letters:/(LJ|[\u01C7])/g},{base:"Lj",letters:/(Lj|[\u01C8])/g},{base:"M",letters:/(M|Ⓜ|M|Ḿ|Ṁ|Ṃ|Ɱ|Ɯ|[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C])/g},{base:"N",letters:/(N|Ⓝ|N|Ǹ|Ń|Ñ|Ṅ|Ň|Ṇ|Ņ|Ṋ|Ṉ|Ƞ|Ɲ|Ꞑ|Ꞥ|Ŋ|[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4\u014A])/g},{base:"NJ",letters:/(NJ|[\u01CA])/g},{base:"Nj",letters:/(Nj|[\u01CB])/g},{base:"O",letters:/(O|Ⓞ|O|Ò|Ó|Ô|Ồ|Ố|Ỗ|Ổ|Õ|Ṍ|Ȭ|Ṏ|Ō|Ṑ|Ṓ|Ŏ|Ȯ|Ȱ|Ö|Ȫ|Ỏ|Ő|Ǒ|Ȍ|Ȏ|Ơ|Ờ|Ớ|Ỡ|Ở|Ợ|Ọ|Ộ|Ǫ|Ǭ|Ø|Ǿ|Ɔ|Ɵ|Ꝋ|Ꝍ|[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C])/g},{base:"OE",letters:/(Œ|[\u0152])/g},{base:"OI",letters:/(Ƣ|[\u01A2])/g},{base:"OO",letters:/(Ꝏ|[\uA74E])/g},{base:"OU",letters:/(Ȣ|[\u0222])/g},{base:"P",letters:/(P|Ⓟ|P|Ṕ|Ṗ|Ƥ|Ᵽ|Ꝑ|Ꝓ|Ꝕ|[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754])/g},{base:"Q",letters:/(Q|Ⓠ|Q|Ꝗ|Ꝙ|Ɋ|[\u0051\u24C6\uFF31\uA756\uA758\u024A])/g},{base:"R",letters:/(R|Ⓡ|R|Ŕ|Ṙ|Ř|Ȑ|Ȓ|Ṛ|Ṝ|Ŗ|Ṟ|Ɍ|Ɽ|Ꝛ|Ꞧ|Ꞃ|[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782])/g},{base:"S",letters:/(S|Ⓢ|S|ẞ|Ś|Ṥ|Ŝ|Ṡ|Š|Ṧ|Ṣ|Ṩ|Ș|Ş|Ȿ|Ꞩ|Ꞅ|[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784])/g},{base:"T",letters:/(T|Ⓣ|T|Ṫ|Ť|Ṭ|Ț|Ţ|Ṱ|Ṯ|Ŧ|Ƭ|Ʈ|Ⱦ|Ꞇ|[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786])/g},{base:"TH",letters:/(Þ|[\u00DE])/g},{base:"TZ",letters:/(Ꜩ|[\uA728])/g},{base:"U",letters:/(U|Ⓤ|U|Ù|Ú|Û|Ũ|Ṹ|Ū|Ṻ|Ŭ|Ü|Ǜ|Ǘ|Ǖ|Ǚ|Ủ|Ů|Ű|Ǔ|Ȕ|Ȗ|Ư|Ừ|Ứ|Ữ|Ử|Ự|Ụ|Ṳ|Ų|Ṷ|Ṵ|Ʉ|[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244])/g},{base:"V",letters:/(V|Ⓥ|V|Ṽ|Ṿ|Ʋ|Ꝟ|Ʌ|[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245])/g},{base:"VY",letters:/(Ꝡ|[\uA760])/g},{base:"W",letters:/(W|Ⓦ|W|Ẁ|Ẃ|Ŵ|Ẇ|Ẅ|Ẉ|Ⱳ|[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72])/g},{base:"X",letters:/(X|Ⓧ|X|Ẋ|Ẍ|[\u0058\u24CD\uFF38\u1E8A\u1E8C])/g},{base:"Y",letters:/(Y|Ⓨ|Y|Ỳ|Ý|Ŷ|Ỹ|Ȳ|Ẏ|Ÿ|Ỷ|Ỵ|Ƴ|Ɏ|Ỿ|[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE])/g},{base:"Z",letters:/(Z|Ⓩ|Z|Ź|Ẑ|Ż|Ž|Ẓ|Ẕ|Ƶ|Ȥ|Ɀ|Ⱬ|Ꝣ|[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762])/g},{base:"a",letters:/(a|ⓐ|a|ẚ|à|á|â|ầ|ấ|ẫ|ẩ|ã|ā|ă|ằ|ắ|ẵ|ẳ|ȧ|ǡ|ä|ǟ|ả|å|ǻ|ǎ|ȁ|ȃ|ạ|ậ|ặ|ḁ|ą|ⱥ|ɐ|[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250])/g},{base:"aa",letters:/(ꜳ|[\uA733])/g},{base:"ae",letters:/(æ|ǽ|ǣ|[\u00E6\u01FD\u01E3])/g},{base:"ao",letters:/(ꜵ|[\uA735])/g},{base:"au",letters:/(ꜷ|[\uA737])/g},{base:"av",letters:/(ꜹ|ꜻ|[\uA739\uA73B])/g},{base:"ay",letters:/(ꜽ|[\uA73D])/g},{base:"b",letters:/(b|ⓑ|b|ḃ|ḅ|ḇ|ƀ|ƃ|ɓ|[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253])/g},{base:"c",letters:/(c|ⓒ|c|ć|ĉ|ċ|č|ç|ḉ|ƈ|ȼ|ꜿ|ↄ|[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184])/g},{base:"d",letters:/(d|ⓓ|d|ḋ|ď|ḍ|ḑ|ḓ|ḏ|đ|ƌ|ɖ|ɗ|ꝺ|ð|[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A\u00F0])/g},{base:"dz",letters:/(dz|dž|[\u01F3\u01C6])/g},{base:"e",letters:/(e|ⓔ|e|è|é|ê|ề|ế|ễ|ể|ẽ|ē|ḕ|ḗ|ĕ|ė|ë|ẻ|ě|ȅ|ȇ|ẹ|ệ|ȩ|ḝ|ę|ḙ|ḛ|ɇ|ɛ|ǝ|[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD])/g},{base:"f",letters:/(f|ⓕ|f|ḟ|ƒ|ꝼ|[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C])/g},{base:"g",letters:/(g|ⓖ|g|ǵ|ĝ|ḡ|ğ|ġ|ǧ|ģ|ǥ|ɠ|ꞡ|ᵹ|ꝿ|[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F])/g},{base:"h",letters:/(h|ⓗ|h|ĥ|ḣ|ḧ|ȟ|ḥ|ḩ|ḫ|ẖ|ħ|ⱨ|ⱶ|ɥ|[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265])/g},{base:"hv",letters:/(ƕ|[\u0195])/g},{base:"i",letters:/(i|ⓘ|i|ì|í|î|ĩ|ī|ĭ|ï|ḯ|ỉ|ǐ|ȉ|ȋ|ị|į|ḭ|ɨ|ı|[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131])/g},{base:"ij",letters:/(ij|[\u0133])/g},{base:"j",letters:/(j|ⓙ|j|ĵ|ǰ|ɉ|[\u006A\u24D9\uFF4A\u0135\u01F0\u0249])/g},{base:"k",letters:/(k|ⓚ|k|ḱ|ǩ|ḳ|ķ|ḵ|ƙ|ⱪ|ꝁ|ꝃ|ꝅ|ꞣ|[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3])/g},{base:"l",letters:/(l|ⓛ|l|ŀ|ĺ|ľ|ḷ|ḹ|ļ|ḽ|ḻ|ł|ƚ|ɫ|ⱡ|ꝉ|ꞁ|ꝇ|[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u0142\u019A\u026B\u2C61\uA749\uA781\uA747])/g},{base:"lj",letters:/(lj|[\u01C9])/g},{base:"m",letters:/(m|ⓜ|m|ḿ|ṁ|ṃ|ɱ|ɯ|[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F])/g},{base:"n",letters:/(n|ⓝ|n|ǹ|ń|ñ|ṅ|ň|ṇ|ņ|ṋ|ṉ|ƞ|ɲ|ʼn|ꞑ|ꞥ|ŋ|[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5\u014B])/g},{base:"nj",letters:/(nj|[\u01CC])/g},{base:"o",letters:/(o|ⓞ|o|ò|ó|ô|ồ|ố|ỗ|ổ|õ|ṍ|ȭ|ṏ|ō|ṑ|ṓ|ŏ|ȯ|ȱ|ö|ȫ|ỏ|ő|ǒ|ȍ|ȏ|ơ|ờ|ớ|ỡ|ở|ợ|ọ|ộ|ǫ|ǭ|ø|ǿ|ɔ|ꝋ|ꝍ|ɵ|[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275])/g},{base:"oe",letters:/(œ|[\u0153])/g},{base:"oi",letters:/(ƣ|[\u01A3])/g},{base:"ou",letters:/(ȣ|[\u0223])/g},{base:"oo",letters:/(ꝏ|[\uA74F])/g},{base:"p",letters:/(p|ⓟ|p|ṕ|ṗ|ƥ|ᵽ|ꝑ|ꝓ|ꝕ|[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755])/g},{base:"q",letters:/(q|ⓠ|q|ɋ|ꝗ|ꝙ|[\u0071\u24E0\uFF51\u024B\uA757\uA759])/g},{base:"r",letters:/(r|ⓡ|r|ŕ|ṙ|ř|ȑ|ȓ|ṛ|ṝ|ŗ|ṟ|ɍ|ɽ|ꝛ|ꞧ|ꞃ|[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783])/g},{base:"s",letters:/(s|ⓢ|s|ś|ṥ|ŝ|ṡ|š|ṧ|ṣ|ṩ|ș|ş|ȿ|ꞩ|ꞅ|ẛ|ſ|[\u0073\u24E2\uFF53\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B\u017F])/g},{base:"ss",letters:/(ß|[\u00DF])/g},{base:"t",letters:/(t|ⓣ|t|ṫ|ẗ|ť|ṭ|ț|ţ|ṱ|ṯ|ŧ|ƭ|ʈ|ⱦ|ꞇ|[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787])/g},{base:"th",letters:/(þ|[\u00FE])/g},{base:"tz",letters:/(ꜩ|[\uA729])/g},{base:"u",letters:/(u|ⓤ|u|ù|ú|û|ũ|ṹ|ū|ṻ|ŭ|ü|ǜ|ǘ|ǖ|ǚ|ủ|ů|ű|ǔ|ȕ|ȗ|ư|ừ|ứ|ữ|ử|ự|ụ|ṳ|ų|ṷ|ṵ|ʉ|[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289])/g},{base:"v",letters:/(v|ⓥ|v|ṽ|ṿ|ʋ|ꝟ|ʌ|[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C])/g},{base:"vy",letters:/(ꝡ|[\uA761])/g},{base:"w",letters:/(w|ⓦ|w|ẁ|ẃ|ŵ|ẇ|ẅ|ẘ|ẉ|ⱳ|[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73])/g},{base:"x",letters:/(x|ⓧ|x|ẋ|ẍ|[\u0078\u24E7\uFF58\u1E8B\u1E8D])/g},{base:"y",letters:/(y|ⓨ|y|ỳ|ý|ŷ|ỹ|ȳ|ẏ|ÿ|ỷ|ẙ|ỵ|ƴ|ɏ|ỿ|[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF])/g},{base:"z",letters:/(z|ⓩ|z|ź|ẑ|ż|ž|ẓ|ẕ|ƶ|ȥ|ɀ|ⱬ|ꝣ|[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763])/g}],iM=function(e){var i=e;return tM.forEach(function(a){i=i.replace(a.letters,a.base)}),i},C5=function(e){return iM(e).toLowerCase()},v5=function(e,i,a){return a?C5(e).indexOf(C5(i)):e.toLowerCase().indexOf(i.toLowerCase())},aM=function(){return!!document.documentMode},a2=function(e){return typeof e=="number"},rM=function(e){return e===Object(e)?Object.keys(e):[]},nM=function(e){for(var i,a=arguments.length,r=new Array(a>1?a-1:0),n=1;n<a;n++)r[n-1]=arguments[n];var o=(i=[]).concat.apply(i,r);return Object.keys(e).reduce(function(s,l){return e.hasOwnProperty(l)&&!o.includes(l)&&e[l]!==void 0&&(s[l]=e[l]),s},{})},oM=["style","className","classNames"];function D5(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),i.push.apply(i,a)}return i}function E5(t){for(var e=1;e<arguments.length;e++){var i=arguments[e]!=null?arguments[e]:{};e%2?D5(Object(i),!0).forEach(function(a){Bt(t,a,i[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):D5(Object(i)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(i,a))})}return t}function Ih(t,e){var i=function(r){var n=function(l){var u=l.style,f=l.className,d=l.classNames,h=CL(l,oM),_=e?e(h):void 0,F=Xc(t,{style:u,className:f,classNames:d},_);return M.createElement(r,Xr({},h,{style:F}))},o=r.displayName||r.name||"Component";return n.displayName="defaultStyle(".concat(o,")"),M.forwardRef(function(s,l){return n(E5(E5({},s),{},{ref:l}))})};return i}var sM=function(e,i){return e.hasOwnProperty(i)?e[i]++:e[i]=0,i+"_"+e[i]};function B5(t){var e=t.selectionStart,i=t.selectionEnd,a=t.value,r=a===void 0?"":a,n=t.onCaretPositionChange,o=t.containerRef,s=t.children;t.singleLine;var l=t.style,u=M.useState({left:void 0,top:void 0}),f=Lh(u,2),d=f[0],h=f[1],_=M.useState(),F=Lh(_,2),c=F[0],m=F[1];M.useEffect(function(){A()});var A=function(){if(c){var I=c.offsetLeft,q=c.offsetTop;if(!(d.left===I&&d.top===q)){var T={left:I,top:q};h(T),n(T)}}},p=rs(s),w;i===e&&(w=or(r,p,e,"START"));var b=[],y={},k=b,C=0,v=function(I,q,T){if(a2(w)&&w>=q&&w<=q+I.length){var N=w-q;k.push(D(I.substring(0,N),C)),k=[D(I.substring(N),C)]}else k.push(D(I,C));C++},E=function(I,q,T,N,H,$,x){var L=sM(y,N);k.push(S(N,H,$,L))},D=function(I,q){return M.createElement("span",Xr({},l("substring"),{key:q}),I)},S=function(I,q,T,N){var H={id:I,display:q,key:N},$=M.Children.toArray(s)[T];return M.cloneElement($,H)},P=function(I){return M.createElement("span",Xr({},l("caret"),{ref:m,key:"caret"}),I)};return z1(r,p,E,v),k.push(" "),k!==b&&b.push(P(k)),M.createElement("div",Xr({},l,{ref:o}),b)}B5.propTypes={selectionStart:Pe.number,selectionEnd:Pe.number,value:Pe.string.isRequired,onCaretPositionChange:Pe.func.isRequired,containerRef:Pe.oneOfType([Pe.func,Pe.shape({current:typeof Element>"u"?Pe.any:Pe.instanceOf(Element)})]),children:Pe.oneOfType([Pe.element,Pe.arrayOf(Pe.element)]).isRequired};var lM=Ih({position:"relative",boxSizing:"border-box",width:"100%",color:"transparent",overflow:"hidden",whiteSpace:"pre-wrap",wordWrap:"break-word",border:"1px solid transparent",textAlign:"start","&singleLine":{whiteSpace:"pre",wordWrap:null},substring:{visibility:"hidden"}},function(t){return{"&singleLine":t.singleLine}}),uM=lM(B5);function S5(t){var e=t.id,i=t.focused,a=t.ignoreAccents,r=t.index,n=t.onClick,o=t.onMouseEnter,s=t.query,l=t.renderSuggestion,u=t.suggestion,f=t.style;t.className,t.classNames;var d={onClick:n,onMouseEnter:o},h=function(){var m=_(),A=F(m);return l?l(u,s,A,r,i):A},_=function(){if(typeof u=="string")return u;var m=u.id,A=u.display;return m===void 0||!A?m:A},F=function(m){var A=v5(m,s,a);return A===-1?M.createElement("span",f("display"),m):M.createElement("span",f("display"),m.substring(0,A),M.createElement("b",f("highlight"),m.substring(A,A+s.length)),m.substring(A+s.length))};return M.createElement("li",Xr({id:e,role:"option","aria-selected":i},d,f),h())}S5.propTypes={id:Pe.string.isRequired,query:Pe.string.isRequired,index:Pe.number.isRequired,ignoreAccents:Pe.bool,suggestion:Pe.oneOfType([Pe.string,Pe.shape({id:Pe.oneOfType([Pe.string,Pe.number]).isRequired,display:Pe.string})]).isRequired,renderSuggestion:Pe.func,focused:Pe.bool};var fM=Ih({cursor:"pointer"},function(t){return{"&focused":t.focused}}),dM=fM(S5);function hM(t){var e=t.style,i=t.className,a=t.classNames,r=Xc(gM,{style:e,className:i,classNames:a}),n=r("spinner");return M.createElement("div",r,M.createElement("div",n,M.createElement("div",n(["element","element1"])),M.createElement("div",n(["element","element2"])),M.createElement("div",n(["element","element3"])),M.createElement("div",n(["element","element4"])),M.createElement("div",n(["element","element5"]))))}var gM={};function j5(t){var e=t.id,i=t.suggestions,a=i===void 0?{}:i,r=t.a11ySuggestionsListLabel,n=t.focusIndex,o=t.position,s=t.left,l=t.right,u=t.top,f=t.scrollFocusedIntoView,d=t.isLoading,h=t.isOpened,_=t.onSelect,F=_===void 0?function(){return null}:_,c=t.ignoreAccents,m=t.containerRef,A=t.children,p=t.style,w=t.customSuggestionsContainer,b=t.onMouseDown,y=t.onMouseEnter,k=M.useState(void 0),C=Lh(k,2),v=C[0],E=C[1];M.useEffect(function(){if(!(!v||v.offsetHeight>=v.scrollHeight||!f)){var T=v.scrollTop,N=v.children[n].getBoundingClientRect(),H=N.top,$=N.bottom,x=v.getBoundingClientRect(),L=x.top;H=H-L+T,$=$-L+T,H<T?v.scrollTop=H:$>v.offsetHeight&&(v.scrollTop=$-v.offsetHeight)}},[n,f,v]);var D=function(){var N=M.createElement("ul",Xr({ref:E,id:e,role:"listbox","aria-label":r},p("list")),Object.values(a).reduce(function(H,$){var x=$.results,L=$.queryInfo;return[].concat(Bh(H),Bh(x.map(function(Q,B){return S(Q,L,H.length+B)})))},[]));return w?w(N):N},S=function(N,H,$){var x=$===n,L=H.childIndex,Q=H.query,B=M.Children.toArray(A)[L].props.renderSuggestion;return M.createElement(dM,{style:p("item"),key:"".concat(L,"-").concat(q(N)),id:x5(e,$),query:Q,index:$,ignoreAccents:c,renderSuggestion:B,suggestion:N,focused:x,onClick:function(){return I(N,H)},onMouseEnter:function(){return U($)}})},P=function(){if(d)return M.createElement(hM,{style:p("loadingIndicator")})},U=function(N,H){y&&y(N)},I=function(N,H){F(N,H)},q=function(N){return typeof N=="string"?N:N.id};return h?M.createElement("div",Xr({},QL({position:o||"absolute",left:s,right:l,top:u},p),{onMouseDown:b,ref:m}),D(),P()):null}j5.propTypes={id:Pe.string.isRequired,suggestions:Pe.object.isRequired,a11ySuggestionsListLabel:Pe.string,focusIndex:Pe.number,position:Pe.string,left:Pe.number,right:Pe.number,top:Pe.number,scrollFocusedIntoView:Pe.bool,isLoading:Pe.bool,isOpened:Pe.bool.isRequired,onSelect:Pe.func,ignoreAccents:Pe.bool,customSuggestionsContainer:Pe.func,containerRef:Pe.oneOfType([Pe.func,Pe.shape({current:typeof Element>"u"?Pe.any:Pe.instanceOf(Element)})])};var _M=Ih({zIndex:1,backgroundColor:"white",marginTop:14,minWidth:100,list:{margin:0,padding:0,listStyleType:"none"}}),cM=_M(j5);function L5(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),i.push.apply(i,a)}return i}function kn(t){for(var e=1;e<arguments.length;e++){var i=arguments[e]!=null?arguments[e]:{};e%2?L5(Object(i),!0).forEach(function(a){Bt(t,a,i[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):L5(Object(i)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(i,a))})}return t}function FM(t){var e=mM();return function(){var a=jh(t),r;if(e){var n=jh(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return AL(this,r)}}function mM(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var AM=function(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(e instanceof RegExp)return e;var a=i.allowSpaceInQuery,r=qh(e);return new RegExp("(?:^|\\s)(".concat(r,"([^").concat(a?"":"\\s").concat(r,"]*))$"))},pM=function(e,i){return e instanceof Array?function(a,r){for(var n=[],o=0,s=e.length;o<s;++o){var l=e[o].display||e[o].id;v5(l,a,i)>=0&&n.push(e[o])}return n}:e},lu={TAB:9,RETURN:13,ESC:27,UP:38,DOWN:40},Ph=!1,M5={singleLine:Pe.bool,allowSpaceInQuery:Pe.bool,allowSuggestionsAboveCursor:Pe.bool,forceSuggestionsAboveCursor:Pe.bool,ignoreAccents:Pe.bool,a11ySuggestionsListLabel:Pe.string,value:Pe.string,onKeyDown:Pe.func,customSuggestionsContainer:Pe.func,onSelect:Pe.func,onBlur:Pe.func,onChange:Pe.func,suggestionsPortalHost:typeof Element>"u"?Pe.any:Pe.PropTypes.instanceOf(Element),inputRef:Pe.oneOfType([Pe.func,Pe.shape({current:typeof Element>"u"?Pe.any:Pe.instanceOf(Element)})]),children:Pe.oneOfType([Pe.element,Pe.arrayOf(Pe.element)]).isRequired},r2=function(t){mL(i,t);var e=FM(i);function i(a){var r;return _L(this,i),r=e.call(this,a),Bt(jt(r),"setContainerElement",function(n){r.containerElement=n}),Bt(jt(r),"getInputProps",function(){var n=r.props,o=n.readOnly,s=n.disabled,l=n.style,u=nM(r.props,["style","classNames","className"],rM(M5));return kn(kn(kn(kn({},u),l("input")),{},{value:r.getPlainText(),onScroll:r.updateHighlighterScroll},!o&&!s&&{onChange:r.handleChange,onSelect:r.handleSelect,onKeyDown:r.handleKeyDown,onBlur:r.handleBlur,onCompositionStart:r.handleCompositionStart,onCompositionEnd:r.handleCompositionEnd}),r.isOpened()&&{role:"combobox","aria-controls":r.uuidSuggestionsOverlay,"aria-expanded":!0,"aria-autocomplete":"list","aria-haspopup":"listbox","aria-activedescendant":x5(r.uuidSuggestionsOverlay,r.state.focusIndex)})}),Bt(jt(r),"renderControl",function(){var n=r.props,o=n.singleLine,s=n.style,l=r.getInputProps();return M.createElement("div",s("control"),r.renderHighlighter(),o?r.renderInput(l):r.renderTextarea(l))}),Bt(jt(r),"renderInput",function(n){return M.createElement("input",Xr({type:"text",ref:r.setInputRef},n))}),Bt(jt(r),"renderTextarea",function(n){return M.createElement("textarea",Xr({ref:r.setInputRef},n))}),Bt(jt(r),"setInputRef",function(n){r.inputElement=n;var o=r.props.inputRef;typeof o=="function"?o(n):o&&(o.current=n)}),Bt(jt(r),"setSuggestionsElement",function(n){r.suggestionsElement=n}),Bt(jt(r),"renderSuggestionsOverlay",function(){if(!a2(r.state.selectionStart))return null;var n=r.state.suggestionsPosition,o=n.position,s=n.left,l=n.top,u=n.right,f=M.createElement(cM,{id:r.uuidSuggestionsOverlay,style:r.props.style("suggestions"),position:o,left:s,top:l,right:u,focusIndex:r.state.focusIndex,scrollFocusedIntoView:r.state.scrollFocusedIntoView,containerRef:r.setSuggestionsElement,suggestions:r.state.suggestions,customSuggestionsContainer:r.props.customSuggestionsContainer,onSelect:r.addMention,onMouseDown:r.handleSuggestionsMouseDown,onMouseEnter:r.handleSuggestionsMouseEnter,isLoading:r.isLoading(),isOpened:r.isOpened(),ignoreAccents:r.props.ignoreAccents,a11ySuggestionsListLabel:r.props.a11ySuggestionsListLabel},r.props.children);return r.props.suggestionsPortalHost?Yo.createPortal(f,r.props.suggestionsPortalHost):f}),Bt(jt(r),"renderHighlighter",function(){var n=r.state,o=n.selectionStart,s=n.selectionEnd,l=r.props,u=l.singleLine,f=l.children,d=l.value,h=l.style;return M.createElement(uM,{containerRef:r.setHighlighterElement,style:h("highlighter"),value:d,singleLine:u,selectionStart:o,selectionEnd:s,onCaretPositionChange:r.handleCaretPositionChange},f)}),Bt(jt(r),"setHighlighterElement",function(n){r.highlighterElement=n}),Bt(jt(r),"handleCaretPositionChange",function(n){r.setState({caretPosition:n})}),Bt(jt(r),"getPlainText",function(){return Gs(r.props.value||"",rs(r.props.children))}),Bt(jt(r),"executeOnChange",function(n){for(var o=arguments.length,s=new Array(o>1?o-1:0),l=1;l<o;l++)s[l-1]=arguments[l];if(r.props.onChange){var u;return(u=r.props).onChange.apply(u,[n].concat(s))}if(r.props.valueLink){var f;return(f=r.props.valueLink).requestChange.apply(f,[n.target.value].concat(s))}}),Bt(jt(r),"handleChange",function(n){if(Ph=!1,aM()){var o=document.activeElement&&document.activeElement.contentDocument||document;if(o.activeElement!==n.target)return}var s=r.props.value||"",l=rs(r.props.children),u=n.target.value,f=r.state.selectionStart;f==null&&(f=n.target.selectionStart);var d=r.state.selectionEnd;d==null&&(d=n.target.selectionEnd);var h=XL(s,u,{selectionStartBefore:f,selectionEndBefore:d,selectionEndAfter:n.target.selectionEnd},l);u=Gs(h,l);var _=n.target.selectionStart,F=n.target.selectionEnd,c=!1,m=k5(s,l,_);m!==void 0&&r.state.selectionEnd>m&&(_=m+(n.nativeEvent.data?n.nativeEvent.data.length:0),F=_,c=!0),r.setState({selectionStart:_,selectionEnd:F,setSelectionAfterMentionChange:c});var A=G1(h,l);n.nativeEvent.isComposing&&_===F&&r.updateMentionsQueries(r.inputElement.value,_);var p={target:{value:h}};r.executeOnChange(p,h,u,A)}),Bt(jt(r),"handleSelect",function(n){if(r.setState({selectionStart:n.target.selectionStart,selectionEnd:n.target.selectionEnd}),!Ph){var o=r.inputElement;n.target.selectionStart===n.target.selectionEnd?r.updateMentionsQueries(o.value,n.target.selectionStart):r.clearSuggestions(),r.updateHighlighterScroll(),r.props.onSelect(n)}}),Bt(jt(r),"handleKeyDown",function(n){var o=Th(r.state.suggestions);if(o===0||!r.suggestionsElement){r.props.onKeyDown(n);return}switch(Object.values(lu).indexOf(n.keyCode)>=0&&(n.preventDefault(),n.stopPropagation()),n.keyCode){case lu.ESC:{r.clearSuggestions();return}case lu.DOWN:{r.shiftFocus(1);return}case lu.UP:{r.shiftFocus(-1);return}case lu.RETURN:{r.selectFocused();return}case lu.TAB:{r.selectFocused();return}default:return}}),Bt(jt(r),"shiftFocus",function(n){var o=Th(r.state.suggestions);r.setState({focusIndex:(o+r.state.focusIndex+n)%o,scrollFocusedIntoView:!0})}),Bt(jt(r),"selectFocused",function(){var n=r.state,o=n.suggestions,s=n.focusIndex,l=Object.values(o).reduce(function(d,h){var _=h.results,F=h.queryInfo;return[].concat(Bh(d),Bh(_.map(function(c){return{result:c,queryInfo:F}})))},[])[s],u=l.result,f=l.queryInfo;r.addMention(u,f),r.setState({focusIndex:0})}),Bt(jt(r),"handleBlur",function(n){var o=r._suggestionsMouseDown;r._suggestionsMouseDown=!1,o||r.setState({selectionStart:null,selectionEnd:null}),window.setTimeout(function(){r.updateHighlighterScroll()},1),r.props.onBlur(n,o)}),Bt(jt(r),"handleSuggestionsMouseDown",function(n){r._suggestionsMouseDown=!0}),Bt(jt(r),"handleSuggestionsMouseEnter",function(n){r.setState({focusIndex:n,scrollFocusedIntoView:!1})}),Bt(jt(r),"updateSuggestionsPosition",function(){var n=r.state.caretPosition,o=r.props,s=o.suggestionsPortalHost,l=o.allowSuggestionsAboveCursor,u=o.forceSuggestionsAboveCursor;if(!(!n||!r.suggestionsElement)){var f=r.suggestionsElement,d=r.highlighterElement,h=d.getBoundingClientRect(),_=n2(d,"font-size"),F={left:h.left+n.left,top:h.top+n.top+_},c=Math.max(document.documentElement.clientHeight,window.innerHeight||0);if(f){var m={};if(s){m.position="fixed";var A=F.left,p=F.top;A-=n2(f,"margin-left"),p-=n2(f,"margin-top"),A-=d.scrollLeft,p-=d.scrollTop;var w=Math.max(document.documentElement.clientWidth,window.innerWidth||0);A+f.offsetWidth>w?m.left=Math.max(0,w-f.offsetWidth):m.left=A,l&&p+f.offsetHeight>c&&f.offsetHeight<p-_||u?m.top=Math.max(0,p-f.offsetHeight-_):m.top=p}else{var b=n.left-d.scrollLeft,y=n.top-d.scrollTop;b+f.offsetWidth>r.containerElement.offsetWidth?m.right=0:m.left=b,l&&F.top-d.scrollTop+f.offsetHeight>c&&f.offsetHeight<h.top-_-d.scrollTop||u?m.top=y-f.offsetHeight-_:m.top=y}m.left===r.state.suggestionsPosition.left&&m.top===r.state.suggestionsPosition.top&&m.position===r.state.suggestionsPosition.position||r.setState({suggestionsPosition:m})}}}),Bt(jt(r),"updateHighlighterScroll",function(){var n=r.inputElement,o=r.highlighterElement;!n||!o||(o.scrollLeft=n.scrollLeft,o.scrollTop=n.scrollTop,o.height=n.height)}),Bt(jt(r),"handleCompositionStart",function(){Ph=!0}),Bt(jt(r),"handleCompositionEnd",function(){Ph=!1}),Bt(jt(r),"setSelection",function(n,o){if(!(n===null||o===null)){var s=r.inputElement;if(s.setSelectionRange)s.setSelectionRange(n,o);else if(s.createTextRange){var l=s.createTextRange();l.collapse(!0),l.moveEnd("character",o),l.moveStart("character",n),l.select()}}}),Bt(jt(r),"updateMentionsQueries",function(n,o){r._queryId++,r.suggestions={},r.setState({suggestions:{}});var s=r.props.value||"",l=r.props.children,u=rs(l),f=or(s,u,o,"NULL");if(f!==null){var d=YL(s.substring(0,f),u),h=n.substring(d,o);M.Children.forEach(l,function(_,F){if(_){var c=AM(_.props.trigger,r.props),m=h.match(c);if(m){var A=d+h.indexOf(m[1],m.index);r.queryData(m[2],F,A,A+m[1].length,n)}}})}}),Bt(jt(r),"clearSuggestions",function(){r._queryId++,r.suggestions={},r.setState({suggestions:{},focusIndex:0})}),Bt(jt(r),"queryData",function(n,o,s,l,u){var f=r.props,d=f.children,h=f.ignoreAccents,_=M.Children.toArray(d)[o],F=pM(_.props.data,h),c=F(n,r.updateSuggestions.bind(null,r._queryId,o,n,s,l,u));c instanceof Array&&r.updateSuggestions(r._queryId,o,n,s,l,u,c)}),Bt(jt(r),"updateSuggestions",function(n,o,s,l,u,f,d){if(n===r._queryId){r.suggestions=kn(kn({},r.suggestions),{},Bt({},o,{queryInfo:{childIndex:o,query:s,querySequenceStart:l,querySequenceEnd:u,plainTextValue:f},results:d}));var h=r.state.focusIndex,_=Th(r.suggestions);r.setState({suggestions:r.suggestions,focusIndex:h>=_?Math.max(_-1,0):h})}}),Bt(jt(r),"addMention",function(n,o){var s=n.id,l=n.display,u=o.childIndex,f=o.querySequenceStart,d=o.querySequenceEnd,h=o.plainTextValue,_=r.props.value||"",F=rs(r.props.children),c=M.Children.toArray(r.props.children)[u],m=c.props,A=m.markup,p=m.displayTransform,w=m.appendSpaceOnAdd,b=m.onAdd,y=or(_,F,f,"START"),k=y+d-f,C=eM(A,s,l);w&&(C+=" ");var v=W1(_,y,k,C);r.inputElement.focus();var E=p(s,l);w&&(E+=" ");var D=f+E.length;r.setState({selectionStart:D,selectionEnd:D,setSelectionAfterMentionChange:!0});var S={target:{value:v}},P=G1(v,F),U=W1(h,f,d,E);r.executeOnChange(S,v,U,P),b&&b(s,l,y,k),r.clearSuggestions()}),Bt(jt(r),"isLoading",function(){var n=!1;return M.Children.forEach(r.props.children,function(o){n=n||o&&o.props.isLoading}),n}),Bt(jt(r),"isOpened",function(){return a2(r.state.selectionStart)&&(Th(r.state.suggestions)!==0||r.isLoading())}),Bt(jt(r),"_queryId",0),r.suggestions={},r.uuidSuggestionsOverlay=Math.random().toString(16).substring(2),r.handleCopy=r.handleCopy.bind(jt(r)),r.handleCut=r.handleCut.bind(jt(r)),r.handlePaste=r.handlePaste.bind(jt(r)),r.state={focusIndex:0,selectionStart:null,selectionEnd:null,suggestions:{},caretPosition:null,suggestionsPosition:{},setSelectionAfterHandlePaste:!1},r}return FL(i,[{key:"componentDidMount",value:function(){document.addEventListener("copy",this.handleCopy),document.addEventListener("cut",this.handleCut),document.addEventListener("paste",this.handlePaste),this.updateSuggestionsPosition()}},{key:"componentDidUpdate",value:function(r,n){n.suggestionsPosition===this.state.suggestionsPosition&&this.updateSuggestionsPosition(),this.state.setSelectionAfterMentionChange&&(this.setState({setSelectionAfterMentionChange:!1}),this.setSelection(this.state.selectionStart,this.state.selectionEnd)),this.state.setSelectionAfterHandlePaste&&(this.setState({setSelectionAfterHandlePaste:!1}),this.setSelection(this.state.selectionStart,this.state.selectionEnd))}},{key:"componentWillUnmount",value:function(){document.removeEventListener("copy",this.handleCopy),document.removeEventListener("cut",this.handleCut),document.removeEventListener("paste",this.handlePaste)}},{key:"render",value:function(){return M.createElement("div",Xr({ref:this.setContainerElement},this.props.style),this.renderControl(),this.renderSuggestionsOverlay())}},{key:"handlePaste",value:function(r){if(r.target===this.inputElement&&this.supportsClipboardActions(r)){r.preventDefault();var n=this.state,o=n.selectionStart,s=n.selectionEnd,l=this.props,u=l.value,f=l.children,d=rs(f),h=or(u,d,o,"START"),_=or(u,d,s,"END"),F=r.clipboardData.getData("text/react-mentions"),c=r.clipboardData.getData("text/plain"),m=W1(u,h,_,F||c).replace(/\r/g,""),A=Gs(m,d),p={target:kn(kn({},r.target),{},{value:m})};this.executeOnChange(p,m,A,G1(m,d));var w=k5(u,d,o),b=(w||o)+Gs(F||c,d).length;this.setState({selectionStart:b,selectionEnd:b,setSelectionAfterHandlePaste:!0})}}},{key:"saveSelectionToClipboard",value:function(r){var n=this.inputElement.selectionStart,o=this.inputElement.selectionEnd,s=this.props,l=s.children,u=s.value,f=rs(l),d=or(u,f,n,"START"),h=or(u,f,o,"END");r.clipboardData.setData("text/plain",r.target.value.slice(n,o)),r.clipboardData.setData("text/react-mentions",u.slice(d,h))}},{key:"supportsClipboardActions",value:function(r){return!!r.clipboardData}},{key:"handleCopy",value:function(r){r.target===this.inputElement&&this.supportsClipboardActions(r)&&(r.preventDefault(),this.saveSelectionToClipboard(r))}},{key:"handleCut",value:function(r){if(r.target===this.inputElement&&this.supportsClipboardActions(r)){r.preventDefault(),this.saveSelectionToClipboard(r);var n=this.state,o=n.selectionStart,s=n.selectionEnd,l=this.props,u=l.children,f=l.value,d=rs(u),h=or(f,d,o,"START"),_=or(f,d,s,"END"),F=[f.slice(0,h),f.slice(_)].join(""),c=Gs(F,d),m={target:kn(kn({},r.target),{},{value:c})};this.executeOnChange(m,F,c,G1(f,d))}}}]),i}(M.Component);Bt(r2,"propTypes",M5),Bt(r2,"defaultProps",{ignoreAccents:!1,singleLine:!1,allowSuggestionsAboveCursor:!1,onKeyDown:function(){return null},onSelect:function(){return null},onBlur:function(){return null}});var n2=function(e,i){var a=parseFloat(window.getComputedStyle(e,null).getPropertyValue(i));return isFinite(a)?a:0},bM=typeof navigator<"u"&&/iPhone|iPad|iPod/i.test(navigator.userAgent),yM=Ih({position:"relative",overflowY:"visible",input:{display:"block",width:"100%",position:"absolute",margin:0,top:0,left:0,boxSizing:"border-box",backgroundColor:"transparent",fontFamily:"inherit",fontSize:"inherit",letterSpacing:"inherit"},"&multiLine":{input:kn({height:"100%",bottom:0,overflow:"hidden",resize:"none"},bM?{marginTop:1,marginLeft:-3}:null)}},function(t){var e=t.singleLine;return{"&singleLine":e,"&multiLine":!e}}),wM=yM(r2),kM={fontWeight:"inherit"},Hh=function(e){var i=e.display,a=e.style,r=e.className,n=e.classNames,o=Xc(kM,{style:a,className:r,classNames:n});return M.createElement("strong",o,i)};Hh.propTypes={onAdd:Pe.func,onRemove:Pe.func,renderSuggestion:Pe.func,trigger:Pe.oneOfType([Pe.string,Pe.instanceOf(RegExp)]),markup:Pe.string,displayTransform:Pe.func,allowSpaceInQuery:Pe.bool,isLoading:Pe.bool},Hh.defaultProps={trigger:"@",markup:"@[__display__](__id__)",displayTransform:function(e,i){return i||e},onAdd:function(){return null},onRemove:function(){return null},renderSuggestion:null,isLoading:!1,appendSpaceOnAdd:!1};const uu={defaultText:"#333",asphalt:"#727272",night:"#333",brandSecondary:"#22abf3",pool:"#22abf3",lemon:"#f8f042",spinach:"#227c31",frost:"#a8f1f3",systemRed:"#f3224d",systemGreen:"#00a861",systemYellow:"#ffc20e",systemDefault:"#2a5cdb",snow:"#fff",transparentBlack:"rgba(0, 0, 0, 0.65)",brandPrimary:"#227c31",KWBrandPrimary:"#227c31",kwBrandPrimary:"#227c31",KWBrandSecondary:"#22abf3",kwBrandSecondary:"#22abf3",KWBrandSalmon:"#ff9676",kwBrandSalmon:"#ff9676",KWBrandFrost:"#a7f1f3",kwBrandFrost:"#a7f1f3",KWBrandPlum:"#702278",kwBrandPlum:"#702278",KWBrandLemon:"#f8f042",kwBrandLemon:"#f8f042",KWBrandSunrise:"#ffb400",kwBrandSunrise:"#ffb400",KWBrandLatte:"#d5b591",kwBrandLatte:"#d5b591",systemBlue:"#2a5cdb",systemBlueLight:"#eef2fc",systemBlueLightest:"#f4f7fd",systemBlueDark:"#1b409e",systemWarning:"#f3224d",systemWarningLight:"#fee9ed",systemWarningDark:"#d61e44",systemSuccess:"#00a861",systemSuccessLight:"#e6f6ef",systemSuccessDark:"#027946",systemInfo:"#863dff",systemInfoLight:"white",systemInfoDark:"#4700bd",systemWarn:"#f6be45",systemWarnLight:"white",systemWarnDark:"#b37d09",systemOptimistic:"#fd5d4b",systemOptimisticLight:"white",systemOptimisticDark:"#c61602",systemNavGray:"#191919",systemGray1:"#333",systemGray2:"#666",systemGray3:"#949494",systemGray4:"#aaaaaa",systemGray5:"#c6c6c6",systemGray6:"#f1f1f1",white:"#fff",workTangoPurple:"#524fef",workTangoLightPurple:"#c3d4ff",workTangoLightAqua:"#a5fcec",bodyScrollbarDisplayNone:"bodyScrollbarDisplayNone",container:"TextArea-module_container_VSGZv","label-wrapper":"TextArea-module_label-wrapper_vB6KA",labelWrapper:"TextArea-module_label-wrapper_vB6KA",label:"TextArea-module_label_9mcL7",textarea:"TextArea-module_textarea_fqLrA",textarea__control:"TextArea-module_textarea__control_skFso",textareaControl:"TextArea-module_textarea__control_skFso",textarea__input:"TextArea-module_textarea__input_tcCX5",textareaInput:"TextArea-module_textarea__input_tcCX5",textarea__highlighter:"TextArea-module_textarea__highlighter_WtdTU",textareaHighlighter:"TextArea-module_textarea__highlighter_WtdTU",textarea__suggestions:"TextArea-module_textarea__suggestions_-vDFP",textareaSuggestions:"TextArea-module_textarea__suggestions_-vDFP",textarea__suggestions__list:"TextArea-module_textarea__suggestions__list_k-u0G",textareaSuggestionsList:"TextArea-module_textarea__suggestions__list_k-u0G",textarea__suggestions__item:"TextArea-module_textarea__suggestions__item_ACkrT",textareaSuggestionsItem:"TextArea-module_textarea__suggestions__item_ACkrT","textarea__suggestions__item--focused":"TextArea-module_textarea__suggestions__item--focused_xP49q",textareaSuggestionsItemFocused:"TextArea-module_textarea__suggestions__item--focused_xP49q","suggestion-pic":"TextArea-module_suggestion-pic_zkvGE",suggestionPic:"TextArea-module_suggestion-pic_zkvGE","suggestion-info":"TextArea-module_suggestion-info_bvoTH",suggestionInfo:"TextArea-module_suggestion-info_bvoTH","suggestion-info__title":"TextArea-module_suggestion-info__title_GE4Lf",suggestionInfoTitle:"TextArea-module_suggestion-info__title_GE4Lf",speechBubble:"TextArea-module_speechBubble_xYnsk",error:"TextArea-module_error_DT5cA"};function xM({id:t,name:e,userProfile:i}){return g.jsxs(M.Fragment,{children:[g.jsx(Eh,{size:"medium",user:i,className:uu["suggestion-pic"]}),g.jsxs("div",{"data-testid":"mention-suggestion",className:uu["suggestion-info"],children:[e,g.jsx("span",{className:uu["suggestion-info__title"],children:i.jobTitle})]})]},t)}const CM=20;function vM({className:t,disabled:e,error:i="",helperText:a="",id:r,label:n,maxLength:o,minRows:s,onMention:l,onChange:u,placeholder:f,required:d,optionalLabelText:h,speechBubble:_=!1,tabIndex:F,fullWidth:c=!1,value:m="",mentionsPlaceholder:A="Mention others with @name",inputRef:p,maxLengthAbove:w=!1,tooltip:b,minHeight:y,maxHeight:k,...C}){const v=RegExp('<a\\s+href="/users/([0-9a-f]+)">@([^<]+)</a>',"gi"),D=(U=>U.replace(v,"@[$2]($1)"))(m),S=()=>{const U=pe("textarea",{error:!!i,speechBubble:_}),I=l?A:"";return g.jsx(wM,{className:U,classNames:uu,id:r.toString(),value:D,placeholder:f||I,maxLength:o,tabIndex:F,rows:s,disabled:e||!1,onChange:q=>u(q.target.value),allowSpaceInQuery:!0,inputRef:p,style:{maxHeight:k,minHeight:y},...C,children:l?g.jsx(Hh,{trigger:"@",className:uu.suggestion,renderSuggestion:BM,displayTransform:(q,T)=>`@${T}`,data:DM(l)}):g.jsx(Hh,{trigger:"@",data:[]})})},P={value:m,label:n,inputId:r,disabled:e,helperText:a,required:d,optionalLabelText:h,fullWidth:c,error:i,charactersRemaining:m?m.length:0,maxLength:o,renderControl:S,maxLengthAbove:w,tooltip:b};return g.jsx("div",{"data-testid":"textarea-container",className:pe(uu.container,t),children:g.jsx(H1,{...P})})}function DM(t){return(e,i)=>{if(e.length>CM){i([]);return}t(e,a=>{i(EM(a))})}}function EM(t){return t.map(e=>({...e,display:e.name}))}function BM(t,e,i){return g.jsx(xM,{id:t.id,name:i,userProfile:t})}const Mr={wrapper:"Checkbox-module_wrapper_kx6SI",wrapperDisabledState:"Checkbox-module_wrapperDisabledState_IoECY",label:"Checkbox-module_label_x0GHJ",input:"Checkbox-module_input_1hQG5","wrapper--small":"Checkbox-module_wrapper--small_ihirE","wrapper--xsmall":"Checkbox-module_wrapper--xsmall_ZvRAf","helper-row":"Checkbox-module_helper-row_9ltTW","helper-text":"Checkbox-module_helper-text_XFnwY",checkbox:"Checkbox-module_checkbox_fUcFx","checkbox-indeterminate":"Checkbox-module_checkbox-indeterminate_VS9ZA",error:"Checkbox-module_error_9b7ms"};function Vs({checked:t,className:e,disabled:i,helperText:a,id:r,label:n,name:o,onChange:s,onIndeterminateChange:l,ariaLabel:u,size:f="regular",indeterminate:d=!1,user:h,hasError:_,...F}){const c=pe(Mr.wrapper,{[Mr.wrapperDisabledState]:i},{[Mr["wrapper--xsmall"]]:f==="extra-small",[Mr["wrapper--small"]]:f==="small"},e),m=pe(Mr.input,{[Mr["checkbox-indeterminate"]]:d}),A=pe(Mr.checkbox,{[Mr.error]:_}),p=d&&l||s;return g.jsx("div",{"data-testid":h?"user-checkbox":"checkbox",children:g.jsxs("label",{className:c,htmlFor:String(r),children:[g.jsx("input",{type:"checkbox","aria-label":u,className:m,checked:t,disabled:i,id:String(r),name:o,"data-indeterminate":d,onChange:p,...F}),g.jsx("span",{className:A}),h&&g.jsx(Eh,{user:h}),g.jsxs("div",{className:Mr["label-container"],children:[g.jsx("span",{className:Mr.label,children:n}),(a||(h==null?void 0:h.jobTitle))&&g.jsxs("div",{className:Mr["helper-row"],children:[(h==null?void 0:h.jobTitle)&&g.jsx("div",{className:Mr["helper-text"],children:h.jobTitle}),a&&g.jsx("div",{className:Mr["helper-text"],children:a})]})]})]})})}const xn={systemRed:"#f3224d",fieldset:"Fieldset-module_fieldset_I-qpH",legend:"Fieldset-module_legend_-dFIh","helper-text":"Fieldset-module_helper-text_VLPdd","helper-text-before-children":"Fieldset-module_helper-text-before-children_RL-4Z","helper-text-after-children":"Fieldset-module_helper-text-after-children_FI6TP",highlighted:"Fieldset-module_highlighted_W36bT","fieldset-optional-label":"Fieldset-module_fieldset-optional-label_lEJ0B","fieldset-upper-right-label":"Fieldset-module_fieldset-upper-right-label_9dmVE",error:"Fieldset-module_error_-TkVr"};function SM(t){switch(t){case"radiogroup":return xn["radio-fieldset-legend"];default:return null}}function jM({children:t,error:e,label:i,formId:a,optionalLabelText:r,upperRightLabelText:n,tooltip:o,className:s,disabled:l,helperText:u,helperTextPosition:f="beforeChildren","data-testid":d,legendType:h="basic",legendNode:_,variant:F="transparent"}){const c=pe(s,[xn.fieldset]),m=M.useMemo(()=>pe(xn["helper-text"],{[xn["helper-text-before-children"]]:f==="beforeChildren",[xn["helper-text-after-children"]]:f!=="beforeChildren"}),[f]),A=pe(xn.legend,SM(h)),p=u?g.jsx("p",{className:m,children:u}):null,w=f==="beforeChildren"?g.jsxs(g.Fragment,{children:[p,t]}):g.jsxs(g.Fragment,{children:[t,p]}),b=e?g.jsxs(ot,{alignItems:"center",children:[g.jsxs(T1,{children:[g.jsx(qt,{size:"tiny"}),g.jsx(Ut,{icon:"warning",size:12,color:xn.systemRed})]}),g.jsx(qt,{size:"tiny",orientation:"horizontal"}),g.jsx("span",{className:xn.error,children:e})]}):null,y=F==="transparent"?g.jsxs(g.Fragment,{children:[w,b]}):g.jsxs("div",{className:xn.highlighted,children:[w,b]});return g.jsxs("fieldset",{disabled:l,"data-testid":d,className:c,form:a||void 0,children:[_||g.jsx("legend",{"data-testid":d?`${d}-legend`:void 0,className:A,children:g.jsxs(ot,{alignItems:"center",children:[i,o&&g.jsxs(g.Fragment,{children:[g.jsx(qt,{orientation:"horizontal",size:"small"}),g.jsx(bh,{onClick:k=>k.preventDefault(),icon:!0,content:o})]}),r&&g.jsx(g.Fragment,{children:g.jsx("span",{className:xn["fieldset-optional-label"],children:r})}),n&&g.jsxs(g.Fragment,{children:[g.jsx(T1,{grow:1}),g.jsx("span",{className:xn["fieldset-upper-right-label"],children:n})]})]})}),y]})}function LM(){function t(){return yn()?{width:window.innerWidth,height:window.innerHeight}:{width:void 0,height:void 0}}const[e,i]=M.useState(t);return M.useEffect(()=>{if(!yn())return;let a;function r(){clearTimeout(a),a=setTimeout(()=>i(t()),100)}return window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[]),e}var V1={exports:{}};V1.exports;var O5;function MM(){return O5||(O5=1,function(t,e){var i=9007199254740991,a="[object Arguments]",r="[object Function]",n="[object GeneratorFunction]",o="[object Map]",s="[object Object]",l="[object Promise]",u="[object Set]",f="[object WeakMap]",d="[object DataView]",h=/[\\^$.*+?()[\]{}|]/g,_=/^\[object .+?Constructor\]$/,F=typeof Qi=="object"&&Qi&&Qi.Object===Object&&Qi,c=typeof self=="object"&&self&&self.Object===Object&&self,m=F||c||Function("return this")(),A=e&&!e.nodeType&&e,p=A&&!0&&t&&!t.nodeType&&t,w=p&&p.exports===A;function b(Be,lt){return Be==null?void 0:Be[lt]}function y(Be){var lt=!1;if(Be!=null&&typeof Be.toString!="function")try{lt=!!(Be+"")}catch{}return lt}function k(Be,lt){return function($t){return Be(lt($t))}}var C=Function.prototype,v=Object.prototype,E=m["__core-js_shared__"],D=function(){var Be=/[^.]+$/.exec(E&&E.keys&&E.keys.IE_PROTO||"");return Be?"Symbol(src)_1."+Be:""}(),S=C.toString,P=v.hasOwnProperty,U=v.toString,I=RegExp("^"+S.call(P).replace(h,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),q=w?m.Buffer:void 0,T=v.propertyIsEnumerable,N=q?q.isBuffer:void 0,H=k(Object.keys,Object),$=W(m,"DataView"),x=W(m,"Map"),L=W(m,"Promise"),Q=W(m,"Set"),B=W(m,"WeakMap"),G=!T.call({valueOf:1},"valueOf"),ee=Te($),V=Te(x),X=Te(L),J=Te(Q),re=Te(B);function O(Be){return U.call(Be)}function ne(Be){if(!ht(Be)||Ae(Be))return!1;var lt=tt(Be)||y(Be)?I:_;return lt.test(Te(Be))}function W(Be,lt){var $t=b(Be,lt);return ne($t)?$t:void 0}var de=O;($&&de(new $(new ArrayBuffer(1)))!=d||x&&de(new x)!=o||L&&de(L.resolve())!=l||Q&&de(new Q)!=u||B&&de(new B)!=f)&&(de=function(Be){var lt=U.call(Be),$t=lt==s?Be.constructor:void 0,Ti=$t?Te($t):void 0;if(Ti)switch(Ti){case ee:return d;case V:return o;case X:return l;case J:return u;case re:return f}return lt});function Ae(Be){return!!D&&D in Be}function be(Be){var lt=Be&&Be.constructor,$t=typeof lt=="function"&<.prototype||v;return Be===$t}function Te(Be){if(Be!=null){try{return S.call(Be)}catch{}try{return Be+""}catch{}}return""}function ye(Be){return me(Be)&&P.call(Be,"callee")&&(!T.call(Be,"callee")||U.call(Be)==a)}var je=Array.isArray;function Oe(Be){return Be!=null&&st(Be.length)&&!tt(Be)}function me(Be){return Di(Be)&&Oe(Be)}var We=N||Nt;function rt(Be){if(Oe(Be)&&(je(Be)||typeof Be=="string"||typeof Be.splice=="function"||We(Be)||ye(Be)))return!Be.length;var lt=de(Be);if(lt==o||lt==u)return!Be.size;if(G||be(Be))return!H(Be).length;for(var $t in Be)if(P.call(Be,$t))return!1;return!0}function tt(Be){var lt=ht(Be)?U.call(Be):"";return lt==r||lt==n}function st(Be){return typeof Be=="number"&&Be>-1&&Be%1==0&&Be<=i}function ht(Be){var lt=typeof Be;return!!Be&&(lt=="object"||lt=="function")}function Di(Be){return!!Be&&typeof Be=="object"}function Nt(){return!1}t.exports=rt}(V1,V1.exports)),V1.exports}var OM=MM();const qM=Ni(OM);function q5({closeMenu:t,focusOnTrigger:e,openMenu:i,options:a,toggleMenu:r}){const[n,o]=M.useState(0),s=TM(a),l=IM(a);return{highlightedIndex:n,triggerClickHandler:()=>{r(),o(-1)},triggerKeyDownHandler:_=>{_.key==="ArrowDown"?(_.preventDefault(),i(),o(s())):_.key==="ArrowUp"?(_.preventDefault(),i(),o(l())):(_.key==="Enter"||_.key===" ")&&(_.preventDefault(),r(),o(s()))},menuKeyDownHandler:_=>{var F,c;switch(_.preventDefault(),_.key){case"Escape":{t(),e();break}case"Enter":{_.target&&((c=(F=_.target)==null?void 0:F.click)==null||c.call(F));break}case"Tab":{_.persist();const m=_.shiftKey?l(n):s(n);o(m);break}case"ArrowDown":{o(s(n));break}case"ArrowUp":{o(l(n));break}case"Home":{o(s());break}case"End":{o(l());break}}},menuMouseEnterHandler:()=>{o(-1),e()}}}function TM(t){return e=>t.length===0?-1:typeof e>"u"?0:(e+1)%t.length}function IM(t){return e=>{if(t.length===0)return-1;if(typeof e>"u")return t.length-1;let i=e-1;return i<0&&(i=t.length-1),i}}const Da={defaultText:"#333",asphalt:"#727272",night:"#333",brandSecondary:"#22abf3",pool:"#22abf3",lemon:"#f8f042",spinach:"#227c31",frost:"#a8f1f3",systemRed:"#f3224d",systemGreen:"#00a861",systemYellow:"#ffc20e",systemDefault:"#2a5cdb",snow:"#fff",transparentBlack:"rgba(0, 0, 0, 0.65)",brandPrimary:"#227c31",KWBrandPrimary:"#227c31",kwBrandPrimary:"#227c31",KWBrandSecondary:"#22abf3",kwBrandSecondary:"#22abf3",KWBrandSalmon:"#ff9676",kwBrandSalmon:"#ff9676",KWBrandFrost:"#a7f1f3",kwBrandFrost:"#a7f1f3",KWBrandPlum:"#702278",kwBrandPlum:"#702278",KWBrandLemon:"#f8f042",kwBrandLemon:"#f8f042",KWBrandSunrise:"#ffb400",kwBrandSunrise:"#ffb400",KWBrandLatte:"#d5b591",kwBrandLatte:"#d5b591",systemBlue:"#2a5cdb",systemBlueLight:"#eef2fc",systemBlueLightest:"#f4f7fd",systemBlueDark:"#1b409e",systemWarning:"#f3224d",systemWarningLight:"#fee9ed",systemWarningDark:"#d61e44",systemSuccess:"#00a861",systemSuccessLight:"#e6f6ef",systemSuccessDark:"#027946",systemInfo:"#863dff",systemInfoLight:"white",systemInfoDark:"#4700bd",systemWarn:"#f6be45",systemWarnLight:"white",systemWarnDark:"#b37d09",systemOptimistic:"#fd5d4b",systemOptimisticLight:"white",systemOptimisticDark:"#c61602",systemNavGray:"#191919",systemGray1:"#333",systemGray2:"#666",systemGray3:"#949494",systemGray4:"#aaaaaa",systemGray5:"#c6c6c6",systemGray6:"#f1f1f1",white:"#fff",workTangoPurple:"#524fef",workTangoLightPurple:"#c3d4ff",workTangoLightAqua:"#a5fcec",bodyScrollbarDisplayNone:"bodyScrollbarDisplayNone",select:"Select-module_select_HBxy-","trigger-button-label":"Select-module_trigger-button-label_O-vox",triggerButtonLabel:"Select-module_trigger-button-label_O-vox","trigger-button-label-selected":"Select-module_trigger-button-label-selected_TzGpa",triggerButtonLabelSelected:"Select-module_trigger-button-label-selected_TzGpa","trigger-button-label-with-decorator":"Select-module_trigger-button-label-with-decorator_1uqa8",triggerButtonLabelWithDecorator:"Select-module_trigger-button-label-with-decorator_1uqa8","trigger-button-icon":"Select-module_trigger-button-icon_jROmK",triggerButtonIcon:"Select-module_trigger-button-icon_jROmK","trigger-button-icon-opened":"Select-module_trigger-button-icon-opened_ofcp-",triggerButtonIconOpened:"Select-module_trigger-button-icon-opened_ofcp-","select-trigger":"Select-module_select-trigger_vgkm6",selectTrigger:"Select-module_select-trigger_vgkm6",compact:"Select-module_compact_2Xhco",error:"Select-module_error_Ddi8s","select-menu":"Select-module_select-menu_caVyT",selectMenu:"Select-module_select-menu_caVyT","select-option":"Select-module_select-option_Qh4Ug",selectOption:"Select-module_select-option_Qh4Ug",disabled:"Select-module_disabled_wJHr6",highlighted:"Select-module_highlighted_5yBiX","label-decorator":"Select-module_label-decorator_d4bKf",labelDecorator:"Select-module_label-decorator_d4bKf",popover:"Select-module_popover_og--8","popover-wrapper":"Select-module_popover-wrapper_1yM-V",popoverWrapper:"Select-module_popover-wrapper_1yM-V"};function PM({option:t,selected:e,compact:i,disabledLabel:a="",highlighted:r,onSelect:n}){const o=pe(Da["select-option"],{[Da.compact]:i,[Da.disabled]:t.disabled,[Da.highlighted]:r,[Da["label-decorator"]]:t.labelDecorator});return g.jsxs("button",{ref:s=>{s&&r&&s.focus()},className:o,onClick:s=>{s.preventDefault(),t.disabled||n==null||n(t)},role:"option",tabIndex:-1,"aria-selected":e,children:[t.labelDecorator&&t.labelDecorator,t.labelDecorator&&g.jsx(qt,{size:"small",orientation:"horizontal"}),t.label||t.value,t.disabled&&g.jsx("span",{className:"screen-reader-only",children:a})]})}function HM({ariaLabelledby:t,ariaDescribedby:e,compact:i,dataTestId:a,disabledLabel:r,disabled:n,error:o,id:s,options:l,selectedOptionValue:u,onChange:f,defaultText:d,isOpen:h,setOpen:_,triggerClassName:F,menuClassName:c,renderPopoverInPortal:m}){const A=M.useRef(null),p=zs(s,c),w=Wr(_,!0),b=Wr(_,!1),y=()=>{A.current&&A.current.focus()},k=q5({focusOnTrigger:y,options:l,openMenu:w,closeMenu:b,toggleMenu:()=>{y(),_(!h)}}),{highlightedIndex:C,triggerClickHandler:v,triggerKeyDownHandler:E,menuKeyDownHandler:D,menuMouseEnterHandler:S}=k,P=B=>{f==null||f(B),b(),y()},U=pe(Da["select-trigger"],{[Da.compact]:i,[Da.error]:o},F),I=pe(Da["select-menu"],{[Da.compact]:i},c),q=s||p("select-trigger"),T=`inner-${q}-label`,N=s?`select-menu-${s}`:p("select-menu"),H=[t,T].filter(B=>B).join(" "),$=Ze(l.find(({value:B})=>u===B),{}),x=!qM($),L=g.jsxs("button",{type:"button",id:q,className:U,disabled:n,onClick:v,ref:A,"aria-haspopup":"listbox","aria-controls":N,"aria-expanded":h,"aria-labelledby":H,"aria-describedby":e,onKeyDown:E,"data-testid":a,children:[g.jsxs("span",{id:T,className:pe(Da["trigger-button-label"],{[Da["trigger-button-label-selected"]]:x,[Da["trigger-button-label-with-decorator"]]:$.labelDecorator}),children:[$.labelDecorator&&$.labelDecorator,$.labelDecorator&&g.jsx(qt,{size:"small",orientation:"horizontal"}),$.label||$.value||d]}),g.jsx(Ut,{icon:"caret_dn",size:yc.Medium,className:Da[`trigger-button-icon${h?"-opened":""}`],color:"#666"})]}),Q=g.jsx("ul",{id:N,className:I,role:"listbox",onKeyDown:D,onMouseEnter:S,children:l.map((B,G)=>g.jsx("li",{role:"none",children:g.jsx(PM,{compact:i,disabledLabel:r,option:B,selected:u===B.value,highlighted:C===G,onSelect:P})},B.value))});return g.jsx("div",{role:"presentation",className:Da.select,children:g.jsx(mo,{isOpen:h,onSetOpen:_,parent:L,popoverComponent:Q,className:Da.popover,position:"bottom","data-testid":"meatBallMenu-popover",renderInPortal:m,popperProps:{className:Da["popover-wrapper"],sameWidth:!0}})})}function T5(t){const[e,i]=M.useState(!1),a=zs(t.id,t.label),{disabled:r,disabledLabel:n,error:o,helperText:s,helperButtonLabel:l,helperButtonClick:u,id:f,"data-testid":d,label:h,required:_,optionalLabelText:F,defaultText:c,tooltip:m,fullWidth:A,helperButtonPosition:p="bottom",renderPopoverInPortal:w=!0,...b}=t,y=f||a("select-id");return g.jsx(H1,{fullWidth:A,tooltip:m,disabled:r,error:o,helperText:s,helperButtonLabel:UM(l),helperButtonClick:u,helperButtonPosition:p,inputId:y,label:h,required:_,optionalLabelText:F,outsideClick:e?()=>i(!1):null,renderControl:({labelId:k,helperTextId:C,errorId:v})=>g.jsx(HM,{ariaLabelledby:k,ariaDescribedby:`${v} ${C}`,disabled:r,disabledLabel:n,error:o,id:y,dataTestId:d,defaultText:c,isOpen:e,setOpen:i,renderPopoverInPortal:w,...b})})}function UM(t){return t===!1?void 0:t}const ns={asphalt:"#727272",wrapper:"Pagination-module_wrapper_hPMsX",select:"Pagination-module_select_-fvf8",buttonGroup:"Pagination-module_buttonGroup_cRbfF",buttons:"Pagination-module_buttons_h-Xw3",controls:"Pagination-module_controls_w3sk-",text:"Pagination-module_text_lcPme"},I5=[{label:"50",value:"50"},{label:"100",value:"100"},{label:"200",value:"200"}];function RM({current:t,total:e=1,onPage:i,className:a="",onPageCountChange:r,pageCountOptions:n=I5,selectedPageQuantity:o=I5[0].value,paginationLabelLeft:s,paginationLabelRight:l,foggyPagination:u=!1,id:f,showPageCount:d,"data-testid":h=""}){const _=pe(a,ns.wrapper),F=pe(ns.controls,ns.buttons),c=u?"-":e.toString(),m=()=>{},A=()=>{},p=Ra(i,m),w=Ra(r,A);return g.jsxs("div",{className:_,id:f,"data-testid":h,children:[d&&g.jsxs(ot,{alignItems:"center",justifyContent:"center",children:[g.jsx("div",{className:ns.select,"data-testid":"pagination-quantity-selector",children:g.jsx(T5,{compact:!0,onChange:b=>w(b.value),options:n,selectedOptionValue:o,id:`${f}-select`,renderPopoverInPortal:!1})}),s&&g.jsx(Dt,{className:ns.text,size:"small",children:s})]}),g.jsxs("div",{className:ns.buttonGroup,children:[l&&g.jsx(U1,{size:"small",children:l}),g.jsx(ma,{icon:"caret_left",variant:"transparent",className:F,size:"extra_small",onClick:()=>p(t-1),disabled:t<=1,"data-testid":"pagination-previous-page-button"}),g.jsx(Dt,{"data-testid":"pagination-text",size:"small",color:ns.asphalt,className:ns.controls,children:`${t} / ${c}`}),g.jsx(ma,{icon:"caret_right",variant:"transparent",className:F,size:"extra_small",onClick:()=>p(t+1),disabled:e<=t,"data-testid":"pagination-next-page-button"})]})]})}const yt={defaultText:"#333",asphalt:"#727272",night:"#333",brandSecondary:"#22abf3",pool:"#22abf3",lemon:"#f8f042",spinach:"#227c31",frost:"#a8f1f3",systemRed:"#f3224d",systemGreen:"#00a861",systemYellow:"#ffc20e",systemDefault:"#2a5cdb",snow:"#fff",transparentBlack:"rgba(0, 0, 0, 0.65)",brandPrimary:"#227c31",KWBrandPrimary:"#227c31",kwBrandPrimary:"#227c31",KWBrandSecondary:"#22abf3",kwBrandSecondary:"#22abf3",KWBrandSalmon:"#ff9676",kwBrandSalmon:"#ff9676",KWBrandFrost:"#a7f1f3",kwBrandFrost:"#a7f1f3",KWBrandPlum:"#702278",kwBrandPlum:"#702278",KWBrandLemon:"#f8f042",kwBrandLemon:"#f8f042",KWBrandSunrise:"#ffb400",kwBrandSunrise:"#ffb400",KWBrandLatte:"#d5b591",kwBrandLatte:"#d5b591",systemBlue:"#2a5cdb",systemBlueLight:"#eef2fc",systemBlueLightest:"#f4f7fd",systemBlueDark:"#1b409e",systemWarning:"#f3224d",systemWarningLight:"#fee9ed",systemWarningDark:"#d61e44",systemSuccess:"#00a861",systemSuccessLight:"#e6f6ef",systemSuccessDark:"#027946",systemInfo:"#863dff",systemInfoLight:"white",systemInfoDark:"#4700bd",systemWarn:"#f6be45",systemWarnLight:"white",systemWarnDark:"#b37d09",systemOptimistic:"#fd5d4b",systemOptimisticLight:"white",systemOptimisticDark:"#c61602",systemNavGray:"#191919",systemGray1:"#333",systemGray2:"#666",systemGray3:"#949494",systemGray4:"#aaaaaa",systemGray5:"#c6c6c6",systemGray6:"#f1f1f1",white:"#fff",workTangoPurple:"#524fef",workTangoLightPurple:"#c3d4ff",workTangoLightAqua:"#a5fcec",bodyScrollbarDisplayNone:"bodyScrollbarDisplayNone",container:"DataTable-module_container_dlcZz","container-loading":"DataTable-module_container-loading_gYMZl",containerLoading:"DataTable-module_container-loading_gYMZl",loader:"DataTable-module_loader_pyZta","container-responsive":"DataTable-module_container-responsive_MPGAq",containerResponsive:"DataTable-module_container-responsive_MPGAq",withoutShadows:"DataTable-module_withoutShadows_asUQJ",sortableHeader:"DataTable-module_sortableHeader_6-gin",overflow:"DataTable-module_overflow_rQHrX","overflow-loading":"DataTable-module_overflow-loading_ykLln",overflowLoading:"DataTable-module_overflow-loading_ykLln","overflow-mobile":"DataTable-module_overflow-mobile_IXSaX",overflowMobile:"DataTable-module_overflow-mobile_IXSaX",table:"DataTable-module_table_nrbCN",table_body:"DataTable-module_table_body_o9lWL",tableBody:"DataTable-module_table_body_o9lWL",alternate_rows:"DataTable-module_alternate_rows_7NFA0",alternateRows:"DataTable-module_alternate_rows_7NFA0",header_row:"DataTable-module_header_row_Kje-v",headerRow:"DataTable-module_header_row_Kje-v",header_cell:"DataTable-module_header_cell_ySEn0",headerCell:"DataTable-module_header_cell_ySEn0",header_cell_padding:"DataTable-module_header_cell_padding_FLn9l",headerCellPadding:"DataTable-module_header_cell_padding_FLn9l",row:"DataTable-module_row_C5ZD8","row--underlined":"DataTable-module_row--underlined_kK1jI",rowUnderlined:"DataTable-module_row--underlined_kK1jI",expanded_row:"DataTable-module_expanded_row_FVNP9",expandedRow:"DataTable-module_expanded_row_FVNP9",expanded_row_content:"DataTable-module_expanded_row_content_21VIX",expandedRowContent:"DataTable-module_expanded_row_content_21VIX",cell:"DataTable-module_cell_t7AoP",nestedCellContainer:"DataTable-module_nestedCellContainer_NgkBa",align_left:"DataTable-module_align_left_BnNVn",alignLeft:"DataTable-module_align_left_BnNVn",align_center:"DataTable-module_align_center_lLhWz",alignCenter:"DataTable-module_align_center_lLhWz",align_right:"DataTable-module_align_right_irVEQ",alignRight:"DataTable-module_align_right_irVEQ",align_justify:"DataTable-module_align_justify_e-W2D",alignJustify:"DataTable-module_align_justify_e-W2D","mobile-table-wrapper":"DataTable-module_mobile-table-wrapper_ApOjL",mobileTableWrapper:"DataTable-module_mobile-table-wrapper_ApOjL","mobile-table-controls":"DataTable-module_mobile-table-controls_GdE-p",mobileTableControls:"DataTable-module_mobile-table-controls_GdE-p","mobile-table":"DataTable-module_mobile-table_OOeHu",mobileTable:"DataTable-module_mobile-table_OOeHu","mobile-table-row":"DataTable-module_mobile-table-row_lj-mv",mobileTableRow:"DataTable-module_mobile-table-row_lj-mv","mobile-checkbox":"DataTable-module_mobile-checkbox_2-4iP",mobileCheckbox:"DataTable-module_mobile-checkbox_2-4iP","toggle-mobile-content-button":"DataTable-module_toggle-mobile-content-button_sRllu",toggleMobileContentButton:"DataTable-module_toggle-mobile-content-button_sRllu","mobile-table-content":"DataTable-module_mobile-table-content_Vx9Vw",mobileTableContent:"DataTable-module_mobile-table-content_Vx9Vw","text-with-action-button":"DataTable-module_text-with-action-button_pxs6v",textWithActionButton:"DataTable-module_text-with-action-button_pxs6v","action-button":"DataTable-module_action-button_OGmux",actionButton:"DataTable-module_action-button_OGmux","pagination-buttons":"DataTable-module_pagination-buttons_61Kdc",paginationButtons:"DataTable-module_pagination-buttons_61Kdc","pair-data":"DataTable-module_pair-data_oclNx",pairData:"DataTable-module_pair-data_oclNx",data:"DataTable-module_data_flafp","nested-checkbox-header":"DataTable-module_nested-checkbox-header_8b15m",nestedCheckboxHeader:"DataTable-module_nested-checkbox-header_8b15m","nested-cell-chevron":"DataTable-module_nested-cell-chevron_JdFwA",nestedCellChevron:"DataTable-module_nested-cell-chevron_JdFwA",nestedCellWithChevron:"DataTable-module_nestedCellWithChevron_XkHAk",nestedCellOverflow:"DataTable-module_nestedCellOverflow_r4tVU",zeroStateContainer:"DataTable-module_zeroStateContainer_c6ZCI","nestedCell-0":"DataTable-module_nestedCell-0_aoxc6",nestedCell0:"DataTable-module_nestedCell-0_aoxc6","nestedCell-1":"DataTable-module_nestedCell-1_rlKKj",nestedCell1:"DataTable-module_nestedCell-1_rlKKj","nestedCell-2":"DataTable-module_nestedCell-2_iRvyW",nestedCell2:"DataTable-module_nestedCell-2_iRvyW","nestedCell-3":"DataTable-module_nestedCell-3_2ic7E",nestedCell3:"DataTable-module_nestedCell-3_2ic7E","nestedCell-4":"DataTable-module_nestedCell-4_47oJH",nestedCell4:"DataTable-module_nestedCell-4_47oJH","nestedCell-5":"DataTable-module_nestedCell-5_bzQZX",nestedCell5:"DataTable-module_nestedCell-5_bzQZX","nestedCell-6":"DataTable-module_nestedCell-6_krHly",nestedCell6:"DataTable-module_nestedCell-6_krHly","nestedCell-7":"DataTable-module_nestedCell-7_6Snth",nestedCell7:"DataTable-module_nestedCell-7_6Snth","nestedCell-8":"DataTable-module_nestedCell-8_uIB-S",nestedCell8:"DataTable-module_nestedCell-8_uIB-S","nestedCell-9":"DataTable-module_nestedCell-9_VDJZX",nestedCell9:"DataTable-module_nestedCell-9_VDJZX","nestedCell-10":"DataTable-module_nestedCell-10_3sYKs",nestedCell10:"DataTable-module_nestedCell-10_3sYKs","nestedCell-11":"DataTable-module_nestedCell-11_qr9hX",nestedCell11:"DataTable-module_nestedCell-11_qr9hX","nestedCell-12":"DataTable-module_nestedCell-12_xMEIK",nestedCell12:"DataTable-module_nestedCell-12_xMEIK","nestedCell-13":"DataTable-module_nestedCell-13_ILUcl",nestedCell13:"DataTable-module_nestedCell-13_ILUcl","nestedCell-14":"DataTable-module_nestedCell-14_eCNFe",nestedCell14:"DataTable-module_nestedCell-14_eCNFe","nestedCell-15":"DataTable-module_nestedCell-15_gYhqF",nestedCell15:"DataTable-module_nestedCell-15_gYhqF","nestedCell-16":"DataTable-module_nestedCell-16_-YU8p",nestedCell16:"DataTable-module_nestedCell-16_-YU8p","nestedCell-17":"DataTable-module_nestedCell-17_-BNBl",nestedCell17:"DataTable-module_nestedCell-17_-BNBl","nestedCell-18":"DataTable-module_nestedCell-18_p-ndq",nestedCell18:"DataTable-module_nestedCell-18_p-ndq","nestedCell-19":"DataTable-module_nestedCell-19_bY9Cy",nestedCell19:"DataTable-module_nestedCell-19_bY9Cy","top-pagination":"DataTable-module_top-pagination_0jiBg",topPagination:"DataTable-module_top-pagination_0jiBg","top-component":"DataTable-module_top-component_GbZQZ",topComponent:"DataTable-module_top-component_GbZQZ"};function QM({toggle:t,onClick:e}){return g.jsx(ma,{icon:t?"caret_up":"caret_dn",size:"small",iconSize:8,onClick:e,className:yt["toggle-mobile-content-button"],"data-testid":"toggle-data-button"})}function NM({showCheckboxes:t=!1,columns:e=[],dataItem:i,selectedRowIds:a=[],onToggleSelectOne:r=Ei}){const[n,o]=M.useState(!1),s=e.every(u=>!u.hideOnResponsivePreview),l=()=>{const u=e.filter(f=>!f.hideOnResponsive);return n?u:u.filter(f=>!f.hideOnResponsivePreview)};return g.jsxs("div",{className:yt["mobile-table-row"],children:[t&&g.jsx("div",{className:yt["mobile-checkbox"],children:g.jsx(Vs,{id:i.id,checked:a.includes(i.id),onChange:Xt(r,i.id),"data-testid":"mobile-item-checkbox"})}),!s&&g.jsx(QM,{toggle:n,onClick:Xt(o,!n)}),g.jsx("div",{className:yt["mobile-table-content"],children:l().map((u,f)=>g.jsxs("div",{className:yt["pair-data"],children:[g.jsx("div",{className:yt["text-with-action-button"],children:g.jsx(U1,{size:"small",children:typeof u.header=="function"?u.header():u.header})}),g.jsx("div",{className:yt.data,children:u.renderCell(i)})]},`${f}`))})]})}function P5({alignment:t,dataItem:e,renderCell:i,nestedLevel:a=0,withCheckbox:r,onToggleSelectOne:n,firstColumn:o=!1,onToggleExpansionOne:s,hasChildren:l,isExpanded:u,checkState:f,dataKey:d,width:h}){const _=pe(yt.cell,{[yt[`align_${t}`]]:!!t,[yt.nestedCellContainer]:o,[yt[`nestedCell-${a}`]]:o,[yt.nestedCellWithChevron]:o&&r&&l}),F=d(e);return g.jsxs("td",{className:_,width:h,children:[r&&g.jsx(Vs,{id:F,checked:f==="half-checked"||f==="checked",indeterminate:f==="half-checked",onChange:n,"data-testid":`nested-cell-checkbox-${F}`}),g.jsx("div",{className:yt.nestedCellOverflow,children:i(e)}),o&&l&&g.jsx(ma,{icon:u?"caret_up":"caret_dn",iconSize:8,size:"small",onClick:Jo(s,F),"data-testid":"expand-row-button"})]},F)}function o2({checkState:t,columns:e,dataItem:i,dataKey:a,defaultAlignment:r,hasChildren:n,isExpanded:o=!1,nestedLevel:s=0,onToggleExpansionOne:l,onToggleSelectOne:u,showCheckboxes:f=!1}){const d=pe(yt.row),h=a(i);return g.jsx("tr",{className:d,children:e.map(({header:_,alignment:F,renderCell:c},m)=>{const A=`${_}-${h}`;return g.jsx(P5,{alignment:F||r,renderCell:c,dataItem:i,nestedLevel:m===0?s:0,onToggleSelectOne:u,withCheckbox:f&&m===0,isExpanded:o,firstColumn:m===0,onToggleExpansionOne:l,hasChildren:n,checkState:t,dataKey:a},A)})})}function H5(t){var m,A;const{dataItem:e,nestedLevel:i,expandedRowIds:a,nestedField:r,getChildrenIds:n,onToggleSelectOne:o,dataKey:s,columns:l=[],alignment:u,showCheckboxes:f,onToggleExpansionOne:d,getCheckState:h}=t,_=(m=e[r])==null?void 0:m.map(p=>{const w=s(p);return a.includes(w)?M.createElement(H5,{...t,key:`generator-${w}`,dataItem:p,nestedLevel:Ze(i,0)+1}):g.jsx(o2,{columns:l,dataItem:p,defaultAlignment:u,nestedLevel:Ze(i,0)+1,onToggleSelectOne:Jo(o,w),showCheckboxes:f,onToggleExpansionOne:d,hasChildren:!!(p[r]||[]).length,isExpanded:a.includes(w),checkState:h(p),dataKey:s},w)}),F=s(e),c=n(e);return g.jsxs(M.Fragment,{children:[g.jsx(o2,{columns:l,dataItem:e,defaultAlignment:u,nestedLevel:i,onToggleSelectOne:()=>{c.forEach(p=>o==null?void 0:o(p)),o==null||o(F)},showCheckboxes:f,onToggleExpansionOne:d,hasChildren:!!((A=e==null?void 0:e[r])!=null&&A.length),isExpanded:a.includes(F),checkState:h(e),dataKey:s},F),_]})}const $M={neutral:"up_down_caret",asc:"caret_up",des:"caret_dn"};function s2({column:t,onClick:e,sort:i}){const a=i&&$M[i],r=typeof t.header=="function"?t.header():t.header,n=String(r),o=Jo(e,n);return g.jsx("div",{className:yt.sortableHeader,children:a?g.jsxs(ot,{alignItems:"center",justifyContent:"center",children:[g.jsx(U1,{size:"small",children:r})," ",g.jsx("span",{children:g.jsx(ma,{iconSize:8,icon:a,variant:"subtle",onClick:o})})]}):g.jsx(U1,{size:"small",children:r})})}function zM({columns:t,isSelectAllChecked:e,onClick:i,onToggleSelectAll:a,defaultAlignment:r,enableNestedRows:n,showCheckboxes:o,selectAllStatus:s}){const u=t.find(d=>d.sort!==void 0)?"header_cell":"header_cell_padding";function f(d,h){if(n){if(h!==0)return g.jsx(s2,{column:d,onClick:i,sort:d.sort});{const _=es(s==="checked",s==="half-checked",e);return g.jsxs("div",{className:yt["nested-checkbox-header"],children:[o&&g.jsx(Vs,{id:"select-all","data-testid":"table-select-all-checkbox",checked:_,indeterminate:s==="half-checked",onChange:a}),g.jsx(s2,{column:d,onClick:i,sort:d.sort})]})}}else return d.isCheckBox?g.jsx(Vs,{id:"select-all","data-testid":"table-select-all-checkbox",checked:e,onChange:a}):g.jsx(s2,{column:d,onClick:i,sort:d.sort})}return g.jsx("tr",{className:yt.header_row,children:t.map((d,h)=>{const _=pe(yt[u],yt[`align_${d.alignment||r}`]),F=`${d.header}-header-cell-${h}`;return g.jsx("td",{className:_,children:f(d,h)},F)})})}function WM({alignment:t,dataItem:e,renderCell:i,width:a}){const r=pe(yt.cell,{[yt[`align_${t}`]]:!!t});return g.jsx("td",{width:a,className:r,children:i(e)})}function GM({columns:t,dataItem:e,defaultAlignment:i,isExpanded:a,renderExpandedRowContent:r,rowNumber:n,enableNestedRows:o,nestedLevel:s,showCheckboxes:l,onToggleSelectOne:u,dataKey:f}){const d=pe(yt.row,{[yt["row--underlined"]]:!a});return g.jsxs(g.Fragment,{children:[g.jsx("tr",{className:d,children:t.map(({header:h,alignment:_,renderCell:F,width:c},m)=>{const A=`${h}-row-${n}-cell-${m}`;return!o||m!==0?g.jsx(WM,{alignment:_||i,renderCell:F,dataItem:e,width:c},A):g.jsx(P5,{alignment:_||i,renderCell:F,dataItem:e,nestedLevel:s,onToggleSelectOne:u,withCheckbox:l,width:c,dataKey:f},A)})}),!o&&a&&r&&g.jsx(VM,{colSpan:t.length,children:r()})]})}function VM(t){const{children:e,colSpan:i}=t;return g.jsx("tr",{className:yt.expanded_row,children:g.jsx("td",{colSpan:i,children:g.jsx("div",{className:yt.expanded_row_content,children:e})})})}function KM({alignment:t="left",columns:e=[],data:i=[],dataKey:a,showCheckboxes:r=!1,showExpansionToggles:n=!1,selectedRowIds:o=[],onClick:s=Ei,onToggleExpansionOne:l,onToggleSelectAll:u,onToggleSelectOne:f,isSelectAllChecked:d,expandedRowTemplateComponent:h,expandedRowIds:_=[],className:F,withoutShadows:c,alternateRows:m,mobileHeader:A,withoutPagination:p=!0,loading:w=!1,paginationOptions:b=[],paginationSize:y,onPageChange:k,onPaginationSizeChange:C,currentPage:v=1,totalPages:E=1,enableNestedRows:D=!1,nestedField:S="children",withResponsiveLayout:P=!1,selectAllStatus:U,responsiveBreakpoint:I=600,bottomComponent:q,topComponent:T,bulkActionBar:N,paginationLabelLeft:H,paginationLabelRight:$,zeroState:x=null,disabledRowIds:L=[],withTopPagination:Q=!1,foggyPagination:B=!1,...G}){const{width:ee}=LM(),V=P&&Ze(ee,0)<=I,X=pe(yt.table,yt[`align_${t}`]),J=pe(yt.overflow,{[yt["overflow-mobile"]]:V,[yt["overflow-loading"]]:w}),re=pe(yt.table_body,{[yt.alternate_rows]:m}),O={isCheckBox:!0,header:"checkbox",renderCell:me=>{const We=L.includes(me.id),rt=o.includes(me.id);return g.jsx(Vs,{id:me.id,checked:rt,onChange:Jo(f,me.id),disabled:We})}},ne={isCheckBox:!1,isExpansionToggle:!0,header:"",renderCell:me=>{const{id:We}=me,rt=_.includes(We),tt=rt?"caret_up":"caret_dn";return g.jsx(ma,{className:"expansion-toggle",icon:tt,"data-testid":rt?"expanded":"unexpanded",size:"extra_small",variant:"transparent",onClick:Jo(l,We)})}};let W=e;r&&n?W=[O,ne,...e]:r?W=[O,...e]:n&&(W=[ne,...e]);const de=pe(yt.container,{[yt["container-loading"]]:w,[yt.withoutShadows]:c,[yt["container-responsive"]]:V},F);function Ae(me){var rt;const We=a(me);if((me[S]||[]).length){const tt=(rt=me[S])==null?void 0:rt.map(st=>Ae(st));return tt.every(st=>st==="checked")?"checked":tt.every(st=>st==="unchecked")?"unchecked":"half-checked"}return o.includes(We)?"checked":"unchecked"}function be(me){const We=a(me),rt=Ze(me[S],[]).reduce((tt,st)=>st[S]?[...be(st),...tt]:[a(st),...tt],[]);return[We,...rt]}const Te=i&&i.length>0||!x,ye=B||v>0&&i.length>0?v:1,je=B||E>0&&i.length>0?E:1;function Oe(me,We=!0,rt=""){return g.jsx(RM,{onPage:Ra(k,Ei),current:ye,total:je,pageCountOptions:b.map(tt=>({label:tt.text,value:tt.value})),selectedPageQuantity:y,onPageCountChange:C,paginationLabelLeft:H,paginationLabelRight:$,foggyPagination:B,className:rt,showPageCount:We,"data-testid":me})}return g.jsxs("div",{className:de,children:[w?g.jsx("div",{className:yt.loader,"data-testid":"data-table-loader",children:g.jsx(Wn,{})}):null,g.jsxs("div",{className:J,children:[g.jsxs(ot,{children:[g.jsx("div",{className:yt["top-component"],children:T}),!p&&Q&&Oe("top-pagination",!1,yt["top-pagination"])]}),N,!V&&g.jsxs(g.Fragment,{children:[g.jsxs("table",{className:X,...G,children:[g.jsx("thead",{children:g.jsx(zM,{columns:W,isSelectAllChecked:d,onToggleSelectAll:Jo(u,i.map(a)),showCheckboxes:r,enableNestedRows:D,defaultAlignment:t,onClick:s,selectAllStatus:U})}),Te?g.jsx("tbody",{className:re,children:i.map((me,We)=>{var ht;const rt=a(me),tt=_.includes(rt),st=n&&tt;return D?tt?g.jsx(H5,{dataItem:me,nestedLevel:0,expandedRowIds:_,nestedField:S,getChildrenIds:be,onToggleSelectOne:f,dataKey:a,columns:e,alignment:t,showCheckboxes:r,onToggleExpansionOne:l,getCheckState:Ae},`generator-${rt}`):g.jsx(o2,{columns:e,dataItem:me,defaultAlignment:t,nestedLevel:0,onToggleSelectOne:Jo(f,rt),showCheckboxes:r,onToggleExpansionOne:l,hasChildren:!!((ht=me==null?void 0:me[S])!=null&&ht.length),isExpanded:!1,checkState:Ae(me),dataKey:a},rt):g.jsx(GM,{columns:W,dataItem:me,defaultAlignment:t,showCheckboxes:r,isExpanded:st,renderExpandedRowContent:()=>st&&(h==null?void 0:h(me)),rowNumber:We,dataKey:a,onToggleSelectOne:Jo(f,rt)},rt)})}):g.jsx("tbody",{children:g.jsx("tr",{children:g.jsx("td",{"data-testid":"dataTable-zeroState",className:yt.zeroStateContainer,colSpan:e.length+(r?1:0),children:g.jsx(ot,{justifyContent:"center",alignItems:"center",children:g.jsx("div",{children:x})})})})})]}),!p&&Oe("bottom-pagination")]}),q]}),V&&g.jsxs("div",{className:yt["mobile-table-wrapper"],"data-testid":"responsive-layout",children:[g.jsx("div",{className:yt["mobile-table-controls"],children:A}),g.jsx("div",{className:yt["mobile-table"],children:Te?i.map(me=>{const We=a(me);return g.jsx(NM,{columns:e,dataItem:me,showCheckboxes:r,selectedRowIds:o,onToggleSelectOne:f},We)}):g.jsx(ot,{className:yt.zeroStateContainer,justifyContent:"center",alignItems:"center",children:g.jsx("div",{children:x})})})]})]})}const Ks={"divider-nav-gray":"Divider-module_divider-nav-gray_wiJwk","divider-gray-1":"Divider-module_divider-gray-1_UVQoP","divider-gray-2":"Divider-module_divider-gray-2_EGXBM","divider-gray-3":"Divider-module_divider-gray-3_kFbIw","divider-gray-4":"Divider-module_divider-gray-4_duUVN","divider-gray-5":"Divider-module_divider-gray-5_42f6K","divider-gray-6":"Divider-module_divider-gray-6_jZM--"},XM={"nav-gray":Ks["divider-nav-gray"],"gray-1":Ks["divider-gray-1"],"gray-2":Ks["divider-gray-2"],"gray-3":Ks["divider-gray-3"],"gray-4":Ks["divider-gray-4"],"gray-5":Ks["divider-gray-5"],"gray-6":Ks["divider-gray-6"]};function l2({className:t,style:e,color:i="gray-5"}){const a=pe(XM[i],t);return g.jsx("div",{className:a,style:e})}const sr={systemDefault:"#2a5cdb","selected-option":"Dropdown-module_selected-option_V4w8M",dropdown:"Dropdown-module_dropdown_YK-v5","dropdown-button":"Dropdown-module_dropdown-button_BlsY-","trigger-button-icon":"Dropdown-module_trigger-button-icon_DKyQH","trigger-button-menu-icon":"Dropdown-module_trigger-button-menu-icon_D-sxH","dropdown-list":"Dropdown-module_dropdown-list_HOEEx","dropdown-option":"Dropdown-module_dropdown-option_YEJxk",disabled:"Dropdown-module_disabled_iL0Wh",highlighted:"Dropdown-module_highlighted_f2Ku6",selected:"Dropdown-module_selected_erVAp","selected-option-icon":"Dropdown-module_selected-option-icon_L-fWY"},YM={defaultText:"#333",asphalt:"#727272",night:"#333",brandSecondary:"#22abf3",pool:"#22abf3",lemon:"#f8f042",spinach:"#227c31",frost:"#a8f1f3",systemRed:"#f3224d",systemGreen:"#00a861",systemYellow:"#ffc20e",systemDefault:"#2a5cdb",snow:"#fff",transparentBlack:"rgba(0, 0, 0, 0.65)",brandPrimary:"#227c31",KWBrandPrimary:"#227c31",kwBrandPrimary:"#227c31",KWBrandSecondary:"#22abf3",kwBrandSecondary:"#22abf3",KWBrandSalmon:"#ff9676",kwBrandSalmon:"#ff9676",KWBrandFrost:"#a7f1f3",kwBrandFrost:"#a7f1f3",KWBrandPlum:"#702278",kwBrandPlum:"#702278",KWBrandLemon:"#f8f042",kwBrandLemon:"#f8f042",KWBrandSunrise:"#ffb400",kwBrandSunrise:"#ffb400",KWBrandLatte:"#d5b591",kwBrandLatte:"#d5b591",systemBlue:"#2a5cdb",systemBlueLight:"#eef2fc",systemBlueLightest:"#f4f7fd",systemBlueDark:"#1b409e",systemWarning:"#f3224d",systemWarningLight:"#fee9ed",systemWarningDark:"#d61e44",systemSuccess:"#00a861",systemSuccessLight:"#e6f6ef",systemSuccessDark:"#027946",systemInfo:"#863dff",systemInfoLight:"white",systemInfoDark:"#4700bd",systemWarn:"#f6be45",systemWarnLight:"white",systemWarnDark:"#b37d09",systemOptimistic:"#fd5d4b",systemOptimisticLight:"white",systemOptimisticDark:"#c61602",systemNavGray:"#191919",systemGray1:"#333",systemGray2:"#666",systemGray3:"#949494",systemGray4:"#aaaaaa",systemGray5:"#c6c6c6",systemGray6:"#f1f1f1",white:"#fff",workTangoPurple:"#524fef",workTangoLightPurple:"#c3d4ff",workTangoLightAqua:"#a5fcec",bodyScrollbarDisplayNone:"bodyScrollbarDisplayNone","fill-asphalt":"SvgIcon-module_fill-asphalt_U9w5d",fillAsphalt:"SvgIcon-module_fill-asphalt_U9w5d","fill-gray":"SvgIcon-module_fill-gray_AvEbr",fillGray:"SvgIcon-module_fill-gray_AvEbr","fill-transparent-black":"SvgIcon-module_fill-transparent-black_43dZh",fillTransparentBlack:"SvgIcon-module_fill-transparent-black_43dZh","fill-snow":"SvgIcon-module_fill-snow_jGtkF",fillSnow:"SvgIcon-module_fill-snow_jGtkF","fill-dove":"SvgIcon-module_fill-dove_XDz-w",fillDove:"SvgIcon-module_fill-dove_XDz-w","fill-system-green":"SvgIcon-module_fill-system-green_ocS42",fillSystemGreen:"SvgIcon-module_fill-system-green_ocS42","fill-spinach":"SvgIcon-module_fill-spinach_k3myq",fillSpinach:"SvgIcon-module_fill-spinach_k3myq","fill-pool":"SvgIcon-module_fill-pool_zZaw2",fillPool:"SvgIcon-module_fill-pool_zZaw2"};function ZM({color:t,icon:e,className:i}){const a=pe(YM[t],i),r=ch[e];return g.jsx("svg",{className:a,viewBox:"0 0 18 18","aria-hidden":"true","data-testid":"svg-icon",children:g.jsx("g",{children:r&&g.jsx(r,{})})})}const JM={DOVE:"fill-dove"};function eO({option:t,selected:e,highlighted:i,onSelect:a,selectedLabel:r=""}){const n=t.href&&!t.disabled?"a":"button",o=pe(sr["dropdown-option"],{[sr.selected]:e,[sr.disabled]:t.disabled,[sr.highlighted]:i});return g.jsxs(n,{ref:s=>{s&&i&&s.focus()},className:o,href:t.href,onClick:s=>{n!=="a"&&s.preventDefault(),t.disabled||a(t)},role:"option","aria-selected":e,children:[t.label||t.value,e&&g.jsxs(g.Fragment,{children:[g.jsx(ZM,{icon:"check",color:JM.DOVE,className:sr["selected-option-icon"]}),g.jsx("span",{className:sr["selected-option"],children:r})]})]})}function tO({dropdownMenuId:t,dropdownTriggerId:e,menuKeyDownHandler:i,menuMouseEnterHandler:a,options:r,selectedOptionValue:n,highlightedIndex:o,onOptionSelect:s,selectedLabel:l,isOpen:u,listContainerClassname:f}){const d=pe(sr["dropdown-list"],f);return g.jsx("ul",{id:t,className:d,role:"listbox","aria-labelledby":e,onKeyDown:i,onMouseEnter:a,"data-testid":"dropdown-list","aria-expanded":u,children:r.map((h,_)=>g.jsx("li",{role:"none","data-testid":`dropdown-list-option-${_}`,children:g.jsx(eO,{option:h,selected:n===h.value,highlighted:o===_,onSelect:s,selectedLabel:l})},String(h.value)))})}const iO=sr.systemDefault;function aO({ariaLabelledby:t,buttonSize:e="default",buttonIcon:i,buttonVariant:a="transparentDark","data-testid":r,hideLabel:n,icon:o="caret_dn",iconSize:s=yc.ExtraSmall,id:l,label:u="",onChange:f,options:d,selectedLabel:h,selectedOptionValue:_,className:F,keepOpenOnSelect:c=!1,listContainerClassname:m,...A}){const p=zs(l,u,t),w=M.useRef(null),[b,y]=M.useState(!1),k=()=>{var x;(x=w.current)==null||x.focus()},C=q5({closeMenu:Xt(y,!1),focusOnTrigger:k,openMenu:Xt(y,!0),options:d,toggleMenu:Xt(y,!b)}),{highlightedIndex:v,triggerClickHandler:E,triggerKeyDownHandler:D,menuKeyDownHandler:S,menuMouseEnterHandler:P}=C,U=x=>{f==null||f(x),c||y(!1),k()},I=l||p("dropdown-trigger"),q=`inner-${I}-label`,T=l?`dropdown-menu-${l}`:p("dropdown-menu"),N=[t,q].filter(x=>x).join(" "),H=pe(sr.dropdown,F,{[sr["dropdown-button"]]:a=="secondary"&&!e}),$=a==="pill"||a==="primary"?"currentColor":void 0;return g.jsx("div",{role:"presentation",className:H,children:g.jsx(wc,{isOpen:b,onSetOpen:y,closeOnClickAway:!0,popupElement:g.jsx(tO,{dropdownMenuId:T,dropdownTriggerId:I,menuKeyDownHandler:S,menuMouseEnterHandler:P,options:d,selectedOptionValue:_,highlightedIndex:v,onOptionSelect:U,selectedLabel:h||"Selected",isOpen:b,listContainerClassname:m}),children:g.jsx($i,{...A,id:I,className:sr["dropdown-trigger"],size:e,variant:a,onClick:E,innerRef:w,"aria-haspopup":"listbox","aria-controls":T,"aria-expanded":b,"aria-labelledby":N,onKeyDown:D,"data-testid":r||"dropdown-button",icon:n?void 0:i,children:n?g.jsxs(g.Fragment,{children:[g.jsx("span",{id:q,className:"screen-reader-only",children:u}),g.jsx(Ut,{icon:"meatball_menu",variant:"filled",className:sr["trigger-button-menu-icon"],color:$??iO})]}):g.jsxs(g.Fragment,{children:[g.jsx("span",{id:q,className:sr["trigger-button-label"],children:u}),i&&g.jsx(Ut,{icon:i,size:s,className:sr["trigger-button-icon"],color:$}),!i&&g.jsx(Ut,{icon:o,size:s,className:sr["trigger-button-icon"],color:$})]})})})})}le({module:()=>Promise.resolve().then(()=>C1e),component:t=>t.EmojiPicker}),le({module:()=>Promise.resolve().then(()=>E1e),component:t=>t.EmojiDisplay});const po={employees:"EmployeeList-module_employees_bZhaP","list-item":"EmployeeList-module_list-item_RLaIO","employee-container":"EmployeeList-module_employee-container_it6T7","text-container":"EmployeeList-module_text-container_dURpv","secondary-text":"EmployeeList-module_secondary-text_c2ijl","height-limited":"EmployeeList-module_height-limited_WcxJF","list-profile-pic":"EmployeeList-module_list-profile-pic_MkLFo"};function rO({employees:t,showTitles:e=!1,showSecondaryText:i=!1,showDivider:a=!1,heightLimited:r=!1,openProfileInNewTab:n=!1,disableProfileLink:o=!1,profilePicIconOverride:s,footerComponent:l=null}){const u=pe({[po["height-limited"]]:r});function f({children:d,employee:h}){return o?g.jsx("div",{className:pe(po["text-container"],po["text-container-disabled"]),style:{cursor:"default"},children:d}):g.jsx("a",{className:po["text-container"],href:h.profileUrl,target:n?"_blank":"_self",rel:"noopener noreferrer",children:d})}return g.jsx("div",{"data-testid":"employee-list-container",className:u,children:g.jsxs("ul",{className:po.employees,"data-testid":"employee-list",children:[t.map((d,h)=>g.jsxs(M.Fragment,{children:[a&&h>0&&g.jsx("li",{children:g.jsx(l2,{})}),g.jsx("li",{className:po["list-item"],"data-testid":"employee-list-item",children:g.jsxs("div",{className:po["employee-container"],children:[g.jsx(Eh,{user:d,size:"medium",className:po["list-profile-pic"],icon:s}),g.jsxs(f,{employee:d,children:[g.jsx(Dt,{size:"paragraph",children:d.fullName||d.name}),e&&g.jsx(Dt,{size:"small","data-testid":"employee-job-title",children:d.jobTitle}),i&&d.featuredGroup&&g.jsx(Dt,{size:"paragraphSmall","data-testid":"employee-secondary-text",className:po["secondary-text"],children:d.featuredGroup})]})]})})]},d.id)),l]})})}function nO(t){let e;return yn()?[()=>{e=setTimeout(t)},()=>{clearTimeout(e)}]:[Ei,Ei]}function oO({elementRefs:t=[],dependencies:e=[],ignoreEffect:i=!1,handler:a=Ei}){M.useEffect(()=>{if(i||!yn())return;Qh()[Rh]||(Qh()[Rh]=new Map);const r=Qh()[Rh];return r==null||r.set(t,a),document.addEventListener("click",Uh,!0),document.addEventListener("tap",Uh,!0),()=>{r==null||r.delete(t),document.removeEventListener("click",Uh,!0),document.removeEventListener("tap",Uh,!0)}},[i,...e])}function Uh(t){if(!yn())return;const e=t&&typeof t=="object"&&"target"in t&&t.target?t.target:null,i=Ze(Qh()[Rh],[]);for(const[a,r]of i)!a.some(o=>o.current&&e&&o.current.contains(e))&&r&&r()}const Rh="$confettiClickAwayNodes";function Qh(){return window}var Nh={exports:{}},sO=Nh.exports,U5;function lO(){return U5||(U5=1,function(t,e){(function(i,a){t.exports=a(M)})(sO,function(i){return function(a){function r(o){if(n[o])return n[o].exports;var s=n[o]={exports:{},id:o,loaded:!1};return a[o].call(s.exports,s,s.exports,r),s.loaded=!0,s.exports}var n={};return r.m=a,r.c=n,r.p="",r(0)}([function(a,r,n){function o(k){return k&&k.__esModule?k:{default:k}}function s(k,C){var v={};for(var E in k)C.indexOf(E)>=0||Object.prototype.hasOwnProperty.call(k,E)&&(v[E]=k[E]);return v}function l(k,C){if(!(k instanceof C))throw new TypeError("Cannot call a class as a function")}function u(k,C){if(!k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!C||typeof C!="object"&&typeof C!="function"?k:C}function f(k,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);k.prototype=Object.create(C&&C.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(k,C):k.__proto__=C)}Object.defineProperty(r,"__esModule",{value:!0}),r.conformToMask=void 0;var d=Object.assign||function(k){for(var C=1;C<arguments.length;C++){var v=arguments[C];for(var E in v)Object.prototype.hasOwnProperty.call(v,E)&&(k[E]=v[E])}return k},h=function(){function k(C,v){for(var E=0;E<v.length;E++){var D=v[E];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(C,D.key,D)}}return function(C,v,E){return v&&k(C.prototype,v),E&&k(C,E),C}}(),_=n(3);Object.defineProperty(r,"conformToMask",{enumerable:!0,get:function(){return o(_).default}});var F=n(11),c=o(F),m=n(9),A=o(m),p=n(5),w=o(p),b=n(2),y=function(k){function C(){var v;l(this,C);for(var E=arguments.length,D=Array(E),S=0;S<E;S++)D[S]=arguments[S];var P=u(this,(v=C.__proto__||Object.getPrototypeOf(C)).call.apply(v,[this].concat(D)));return P.setRef=P.setRef.bind(P),P.onBlur=P.onBlur.bind(P),P.onChange=P.onChange.bind(P),P}return f(C,k),h(C,[{key:"setRef",value:function(v){this.inputElement=v}},{key:"initTextMask",value:function(){var v=this.props,E=this.props.value;this.textMaskInputElement=(0,w.default)(d({inputElement:this.inputElement},v)),this.textMaskInputElement.update(E)}},{key:"componentDidMount",value:function(){this.initTextMask()}},{key:"componentDidUpdate",value:function(v){var E=this.props,D=E.value,S=E.pipe,P=E.mask,U=E.guide,I=E.placeholderChar,q=E.showMask,T={guide:U,placeholderChar:I,showMask:q},N=typeof S=="function"&&typeof v.pipe=="function"?S.toString()!==v.pipe.toString():(0,b.isNil)(S)&&!(0,b.isNil)(v.pipe)||!(0,b.isNil)(S)&&(0,b.isNil)(v.pipe),H=P.toString()!==v.mask.toString(),$=Object.keys(T).some(function(L){return T[L]!==v[L]})||H||N,x=D!==this.inputElement.value;(x||$)&&this.initTextMask()}},{key:"render",value:function(){var E=this.props,D=E.render,S=s(E,["render"]);return delete S.mask,delete S.guide,delete S.pipe,delete S.placeholderChar,delete S.keepCharPositions,delete S.value,delete S.onBlur,delete S.onChange,delete S.showMask,D(this.setRef,d({onBlur:this.onBlur,onChange:this.onChange,defaultValue:this.props.value},S))}},{key:"onChange",value:function(v){this.textMaskInputElement.update(),typeof this.props.onChange=="function"&&this.props.onChange(v)}},{key:"onBlur",value:function(v){typeof this.props.onBlur=="function"&&this.props.onBlur(v)}}]),C}(c.default.PureComponent);r.default=y,y.propTypes={mask:A.default.oneOfType([A.default.array,A.default.func,A.default.bool,A.default.shape({mask:A.default.oneOfType([A.default.array,A.default.func]),pipe:A.default.func})]).isRequired,guide:A.default.bool,value:A.default.oneOfType([A.default.string,A.default.number]),pipe:A.default.func,placeholderChar:A.default.string,keepCharPositions:A.default.bool,showMask:A.default.bool},y.defaultProps={render:function(k,C){return c.default.createElement("input",d({ref:k},C))}}},function(a,r){Object.defineProperty(r,"__esModule",{value:!0}),r.placeholderChar="_",r.strFunction="function"},function(a,r,n){function o(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_,m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h.placeholderChar;if(!s(c))throw new Error("Text-mask:convertMaskToPlaceholder; The mask property must be an array.");if(c.indexOf(m)!==-1)throw new Error(`Placeholder character must not be used as part of the mask. Please specify a character that is not present in your mask as your placeholder character.
|
|
86
86
|
|
|
87
87
|
`+("The placeholder character that was received is: "+JSON.stringify(m)+`
|
|
88
88
|
|
|
89
89
|
`)+("The mask that was received is: "+JSON.stringify(c)));return c.map(function(A){return A instanceof RegExp?m:A}).join("")}function s(c){return Array.isArray&&Array.isArray(c)||c instanceof Array}function l(c){return typeof c=="string"||c instanceof String}function u(c){return typeof c=="number"&&c.length===void 0&&!isNaN(c)}function f(c){return typeof c>"u"||c===null}function d(c){for(var m=[],A=void 0;A=c.indexOf(F),A!==-1;)m.push(A),c.splice(A,1);return{maskWithoutCaretTraps:c,indexes:m}}Object.defineProperty(r,"__esModule",{value:!0}),r.convertMaskToPlaceholder=o,r.isArray=s,r.isString=l,r.isNumber=u,r.isNil=f,r.processCaretTraps=d;var h=n(1),_=[],F="[]"},function(a,r,n){function o(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:d,_=arguments.length>1&&arguments[1]!==void 0?arguments[1]:f,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!(0,l.isArray)(_)){if((typeof _>"u"?"undefined":s(_))!==u.strFunction)throw new Error("Text-mask:conformToMask; The mask property must be an array.");_=_(h,F),_=(0,l.processCaretTraps)(_).maskWithoutCaretTraps}var c=F.guide,m=c===void 0||c,A=F.previousConformedValue,p=A===void 0?d:A,w=F.placeholderChar,b=w===void 0?u.placeholderChar:w,y=F.placeholder,k=y===void 0?(0,l.convertMaskToPlaceholder)(_,b):y,C=F.currentCaretPosition,v=F.keepCharPositions,E=m===!1&&p!==void 0,D=h.length,S=p.length,P=k.length,U=_.length,I=D-S,q=I>0,T=C+(q?-I:0),N=T+Math.abs(I);if(v===!0&&!q){for(var H=d,$=T;$<N;$++)k[$]===b&&(H+=b);h=h.slice(0,T)+H+h.slice(T,D)}for(var x=h.split(d).map(function(ye,je){return{char:ye,isNew:je>=T&&je<N}}),L=D-1;L>=0;L--){var Q=x[L].char;if(Q!==b){var B=L>=T&&S===U;Q===k[B?L-I:L]&&x.splice(L,1)}}var G=d,ee=!1;e:for(var V=0;V<P;V++){var X=k[V];if(X===b){if(x.length>0)for(;x.length>0;){var J=x.shift(),re=J.char,O=J.isNew;if(re===b&&E!==!0){G+=b;continue e}if(_[V].test(re)){if(v===!0&&O!==!1&&p!==d&&m!==!1&&q){for(var ne=x.length,W=null,de=0;de<ne;de++){var Ae=x[de];if(Ae.char!==b&&Ae.isNew===!1)break;if(Ae.char===b){W=de;break}}W!==null?(G+=re,x.splice(W,1)):V--}else G+=re;continue e}ee=!0}E===!1&&(G+=k.substr(V,P));break}G+=X}if(E&&q===!1){for(var be=null,Te=0;Te<G.length;Te++)k[Te]===b&&(be=Te);G=be!==null?G.substr(0,be+1):d}return{conformedValue:G,meta:{someCharsRejected:ee}}}Object.defineProperty(r,"__esModule",{value:!0});var s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h};r.default=o;var l=n(2),u=n(1),f=[],d=""},function(a,r){function n(l){var u=l.previousConformedValue,f=u===void 0?s:u,d=l.previousPlaceholder,h=d===void 0?s:d,_=l.currentCaretPosition,F=_===void 0?0:_,c=l.conformedValue,m=l.rawValue,A=l.placeholderChar,p=l.placeholder,w=l.indexesOfPipedChars,b=w===void 0?o:w,y=l.caretTrapIndexes,k=y===void 0?o:y;if(F===0||!m.length)return 0;var C=m.length,v=f.length,E=p.length,D=c.length,S=C-v,P=S>0,U=v===0,I=S>1&&!P&&!U;if(I)return F;var q=P&&(f===c||c===p),T=0,N=void 0,H=void 0;if(q)T=F-S;else{var $=c.toLowerCase(),x=m.toLowerCase(),L=x.substr(0,F).split(s),Q=L.filter(function(Oe){return $.indexOf(Oe)!==-1});H=Q[Q.length-1];var B=h.substr(0,Q.length).split(s).filter(function(Oe){return Oe!==A}).length,G=p.substr(0,Q.length).split(s).filter(function(Oe){return Oe!==A}).length,ee=G!==B,V=h[Q.length-1]!==void 0&&p[Q.length-2]!==void 0&&h[Q.length-1]!==A&&h[Q.length-1]!==p[Q.length-1]&&h[Q.length-1]===p[Q.length-2];!P&&(ee||V)&&B>0&&p.indexOf(H)>-1&&m[F]!==void 0&&(N=!0,H=m[F]);for(var X=b.map(function(Oe){return $[Oe]}),J=X.filter(function(Oe){return Oe===H}).length,re=Q.filter(function(Oe){return Oe===H}).length,O=p.substr(0,p.indexOf(A)).split(s).filter(function(Oe,me){return Oe===H&&m[me]!==Oe}).length,ne=O+re+J+(N?1:0),W=0,de=0;de<D;de++){var Ae=$[de];if(T=de+1,Ae===H&&W++,W>=ne)break}}if(P){for(var be=T,Te=T;Te<=E;Te++)if(p[Te]===A&&(be=Te),p[Te]===A||k.indexOf(Te)!==-1||Te===E)return be}else if(N){for(var ye=T-1;ye>=0;ye--)if(c[ye]===H||k.indexOf(ye)!==-1||ye===0)return ye}else for(var je=T;je>=0;je--)if(p[je-1]===A||k.indexOf(je)!==-1||je===0)return je}Object.defineProperty(r,"__esModule",{value:!0}),r.default=n;var o=[],s=""},function(a,r,n){function o(C){return C&&C.__esModule?C:{default:C}}function s(C){var v={previousConformedValue:void 0,previousPlaceholder:void 0};return{state:v,update:function(E){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:C,S=D.inputElement,P=D.mask,U=D.guide,I=D.pipe,q=D.placeholderChar,T=q===void 0?A.placeholderChar:q,N=D.keepCharPositions,H=N!==void 0&&N,$=D.showMask,x=$!==void 0&&$;if(typeof E>"u"&&(E=S.value),E!==v.previousConformedValue){(typeof P>"u"?"undefined":d(P))===b&&P.pipe!==void 0&&P.mask!==void 0&&(I=P.pipe,P=P.mask);var L=void 0,Q=void 0;if(P instanceof Array&&(L=(0,m.convertMaskToPlaceholder)(P,T)),P!==!1){var B=u(E),G=S.selectionEnd,ee=v.previousConformedValue,V=v.previousPlaceholder,X=void 0;if((typeof P>"u"?"undefined":d(P))===A.strFunction){if(Q=P(B,{currentCaretPosition:G,previousConformedValue:ee,placeholderChar:T}),Q===!1)return;var J=(0,m.processCaretTraps)(Q),re=J.maskWithoutCaretTraps,O=J.indexes;Q=re,X=O,L=(0,m.convertMaskToPlaceholder)(Q,T)}else Q=P;var ne={previousConformedValue:ee,guide:U,placeholderChar:T,pipe:I,placeholder:L,currentCaretPosition:G,keepCharPositions:H},W=(0,c.default)(B,Q,ne),de=W.conformedValue,Ae=(typeof I>"u"?"undefined":d(I))===A.strFunction,be={};Ae&&(be=I(de,f({rawValue:B},ne)),be===!1?be={value:ee,rejected:!0}:(0,m.isString)(be)&&(be={value:be}));var Te=Ae?be.value:de,ye=(0,_.default)({previousConformedValue:ee,previousPlaceholder:V,conformedValue:Te,placeholder:L,rawValue:B,currentCaretPosition:G,placeholderChar:T,indexesOfPipedChars:be.indexesOfPipedChars,caretTrapIndexes:X}),je=Te===L&&ye===0,Oe=x?L:p,me=je?Oe:Te;v.previousConformedValue=me,v.previousPlaceholder=L,S.value!==me&&(S.value=me,l(S,ye))}}}}}function l(C,v){document.activeElement===C&&(y?k(function(){return C.setSelectionRange(v,v,w)},0):C.setSelectionRange(v,v,w))}function u(C){if((0,m.isString)(C))return C;if((0,m.isNumber)(C))return String(C);if(C==null)return p;throw new Error(`The 'value' provided to Text Mask needs to be a string or a number. The value received was:
|
|
90
90
|
|
|
91
|
-
`+JSON.stringify(C))}Object.defineProperty(r,"__esModule",{value:!0});var f=Object.assign||function(C){for(var v=1;v<arguments.length;v++){var E=arguments[v];for(var D in E)Object.prototype.hasOwnProperty.call(E,D)&&(C[D]=E[D])}return C},d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(C){return typeof C}:function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C};r.default=s;var h=n(4),_=o(h),F=n(3),c=o(F),m=n(2),A=n(1),p="",w="none",b="object",y=typeof navigator<"u"&&/Android/i.test(navigator.userAgent),k=typeof requestAnimationFrame<"u"?requestAnimationFrame:setTimeout},function(a,r){function n(s){return function(){return s}}var o=function(){};o.thatReturns=n,o.thatReturnsFalse=n(!1),o.thatReturnsTrue=n(!0),o.thatReturnsNull=n(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(s){return s},a.exports=o},function(a,r,n){function o(s,l,u,f,d,h,_,F){if(!s){var c;if(l===void 0)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var m=[u,f,d,h,_,F],A=0;c=new Error(l.replace(/%s/g,function(){return m[A++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}}a.exports=o},function(a,r,n){var o=n(6),s=n(7),l=n(10);a.exports=function(){function u(h,_,F,c,m,A){A!==l&&s(!1,"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")}function f(){return u}u.isRequired=u;var d={array:u,bool:u,func:u,number:u,object:u,string:u,symbol:u,any:u,arrayOf:f,element:u,instanceOf:f,node:u,objectOf:f,oneOf:f,oneOfType:f,shape:f,exact:f};return d.checkPropTypes=o,d.PropTypes=d,d}},function(a,r,n){a.exports=n(8)()},function(a,r){var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";a.exports=n},function(a,r){a.exports=i}])})}(Nh)),Nh.exports}var uO=lO();const fO=Ni(uO);function dO({onBlur:t,setSaved:e,className:i,compact:a,disabled:r,error:n,fullWidth:o=!0,inputOnly:s,keepCharPositions:l,mask:u,placeholderChar:f,onChange:d,type:h,rightSideText:_,removeNonNumCharacters:F=!1,...c}){const m=b=>{let y=b.target.value;if(h==="number"){const k=Number(y);if(!y||isNaN(k)||c.value===y)return;d(k)}else F&&y&&(y=_S(y)),d(y)},A=pe(Ci.input,i,{[Ci["input--compact"]]:a,[Ci["input--disabled"]]:r,[Ci["input--error"]]:n,[Ci["input--full-width"]]:o,[Ci["input--input-only"]]:s,[Ci["input--right-side-text"]]:_}),p=F?Ze(c.value,"").toString():c.value,w={...c,value:p,type:h,className:_?Ci["input-right-side-text-input"]:A,disabled:r,onChange:m,onBlur:async b=>{t&&await t(b),e(!0)}};return _?g.jsxs("div",{className:A,children:[g.jsx(R5,{...w,placeholderChar:f,keepCharPositions:l,mask:u}),g.jsx("span",{className:Ci["input-right-side-text"],children:_})]}):g.jsx(R5,{...w,placeholderChar:f,keepCharPositions:l,mask:u})}function R5({placeholderChar:t,keepCharPositions:e,mask:i,...a}){return i?g.jsx(fO,{...a,placeholderChar:t,keepCharPositions:e,mask:i}):g.jsx("input",{...a})}function K1({autoSave:t=!1,savedLabel:e="SAVED",onBlur:i,disabled:a,error:r,fullWidth:n,helperText:o,id:s,label:l,required:u,optionalLabelText:f,maxLengthAbove:d,maxLengthText:h,numeric:_,numericText:F,icon:c,iconPosition:m="left",iconColor:A="#949494",iconSize:p=16,className:w,tooltip:b,rightSideText:y,type:k,value:C,onChange:v,...E}){const[D,S]=M.useState(!1);M.useEffect(()=>{const q=setTimeout(()=>{D&&S(!1)},2e3);return()=>clearTimeout(q)},[D]);const P=pe({[Ci["with-icon"]]:!!c}),U=pe(Ci["icon-wrapper"],{[Ci["icon-left"]]:!!c&&m==="left"}),I=pe(w,{[Ci["with-icon--left"]]:c&&m==="left",[Ci["with-icon--right"]]:c&&m==="right"});return g.jsx(H1,{tooltip:b,numeric:_,numericText:F,disabled:a,maxLengthAbove:d,error:r,helperText:o,inputId:s,fullWidth:n,value:C,label:t?D?g.jsx("span",{className:pe([Ci.bubble,Ci.bubbleBackground]),children:e}):g.jsx("span",{className:Ci.bubble}):l,maxLengthText:h,required:u,optionalLabelText:f,className:w,...E,renderControl:()=>g.jsxs("div",{className:P,children:[c&&g.jsx("div",{className:U,children:g.jsx(Ut,{icon:c,size:p,className:Ci["icon-button"],color:A})}),g.jsx(dO,{className:I,disabled:a,error:r,id:s,required:u,onBlur:i,setSaved:S,rightSideText:y,type:k,onChange:v,value:C,...k==="number"&&{onWheel:q=>q.currentTarget.blur()},...E})]})})}const $h={"popper-wrapper":"Autocomplete-module_popper-wrapper_YE8zw","relative-wrapper":"Autocomplete-module_relative-wrapper_A73-W","full-width":"Autocomplete-module_full-width_Le2Fg","trigger-button-icon":"Autocomplete-module_trigger-button-icon_-UYTC"};function hO(){return{x:window.scrollX,y:window.scrollY}}const zo=class zo extends M.Component{constructor(e){super(e),this._refs={},this._ignoreBlur=!1,this._ignoreFocus=!1,this._scrollOffset=null,this._scrollTimer=null,this._actionButtonEnabled=!0,this.handleMenuTouchStart=()=>{this._ignoreBlur=!0},this.handleMenuMouseEnter=()=>{this._ignoreBlur=!0},this.handleMenuMouseLeave=()=>{this._ignoreBlur=!1},this.state={isOpen:!1,highlightedIndex:e.defaultHighlightedIndex||null},this.ensureHighlightedIndex=this.ensureHighlightedIndex.bind(this),this.exposeAPI=this.exposeAPI.bind(this),this.handleInputFocus=this.handleInputFocus.bind(this),this.handleInputBlur=this.handleInputBlur.bind(this),this.handleChange=this.handleChange.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleInputClick=this.handleInputClick.bind(this),this.maybeHighlightClosestMatch=this.maybeHighlightClosestMatch.bind(this)}componentWillUnmount(){this._scrollTimer&&(clearTimeout(this._scrollTimer),this._scrollTimer=null)}componentDidMount(){this.isOpen()&&this.setMenuPositions()}componentDidUpdate(e,i){var a,r;(this.state.isOpen&&!i.isOpen||"open"in this.props&&this.props.open&&!e.open)&&this.setMenuPositions(),i.isOpen!==this.state.isOpen&&((r=(a=this.props).onMenuVisibilityChange)==null||r.call(a,this.state.isOpen),this.maybeHighlightClosestMatch()),this.ensureHighlightedIndex()}exposeAPI(e){this._refs.input=e,e&&(typeof e.blur=="function"&&(this.blur=e.blur.bind(e)),typeof e.checkValidity=="function"&&(this.checkValidity=e.checkValidity.bind(e)),typeof e.click=="function"&&(this.click=e.click.bind(e)),typeof e.focus=="function"&&(this.focus=e.focus.bind(e)),typeof e.select=="function"&&(this.select=e.select.bind(e)),typeof e.setCustomValidity=="function"&&(this.setCustomValidity=e.setCustomValidity.bind(e)),typeof e.setSelectionRange=="function"&&(this.setSelectionRange=e.setSelectionRange.bind(e)),typeof e.setRangeText=="function"&&(this.setRangeText=e.setRangeText.bind(e)))}handleKeyDown(e){if((a=>a in zo.keyDownHandlers)(e.key)){this._ignoreBlur=!0,zo.keyDownHandlers[e.key].call(this,e);return}this.isOpen()||this.setState({isOpen:!0}),this.maybeHighlightClosestMatch(),this.ensureHighlightedIndex()}handleChange(e){var i,a;(a=(i=this.props).onChange)==null||a.call(i,e,e.target.value)}scrollNodeIntoView(e){const i=this._refs.menu;if(!i)return;const a=i.scrollTop+i.clientHeight;if(e.offsetTop>=a){const r=e.offsetTop+e.offsetHeight;i.scrollTop+=r-a}e.offsetTop<i.scrollTop&&(i.scrollTop=e.offsetTop)}getFilteredItems(){let e=this.props.items;return this.props.shouldItemRender&&(e=e.filter(i=>{var a,r;return Ze((r=(a=this.props).shouldItemRender)==null?void 0:r.call(a,i,Ze(this.props.value,"")),!0)})),this.props.sortItems&&e.sort((i,a)=>{var r,n;return Ze((n=(r=this.props).sortItems)==null?void 0:n.call(r,i,a,this.props.value||""),0)}),e}maybeHighlightClosestMatch(){var o,s;const{highlightedIndex:e}=this.state,{value:i,getItemValue:a}=this.props,r=this.getFilteredItems();if(i==="")return;let n=e;for(let l=0;l<r.length;l++){if(!((s=(o=this.props).isItemSelectable)!=null&&s.call(o,r[l])))continue;if(a(r[l]).toLowerCase().indexOf(Ze(i,"").toLowerCase())===0){n=l;break}}return this.setState({highlightedIndex:n})}ensureHighlightedIndex(){this.state.highlightedIndex&&this.state.highlightedIndex>=this.getFilteredItems().length&&this.setState({highlightedIndex:null})}setMenuPositions(){const e=this._refs.input;if(!e)return;const i=e.getBoundingClientRect(),a=window.getComputedStyle(e),r=parseInt(a.marginBottom,10)||0,n=parseInt(a.marginLeft,10)||0,o=parseInt(a.marginRight,10)||0;this.setState({menuTop:i.bottom+r,menuLeft:i.left+n,menuWidth:i.width+n+o})}highlightItemFromMouse(e){this.setState({highlightedIndex:e})}selectItemFromMouse(e){const i=this.props.getItemValue(e);this._ignoreBlur=this.props.keepInputAfterSelection||!1,this.setState({isOpen:this.props.keepInputAfterSelection||!1,highlightedIndex:null},()=>{var a,r;(r=(a=this.props).onSelect)==null||r.call(a,i,e)})}renderMenu(){var r,n;const e=this.getFilteredItems().map((o,s)=>{var f,d,h,_;const l=this.props.renderItem(o,this.state.highlightedIndex===s,{cursor:"default",currentInputValue:this.props.value||""},s);if(!l||!M.isValidElement(l))return null;let u={};return this.props.skipEventHandlers||(u={onMouseEnter:(d=(f=this.props).isItemSelectable)!=null&&d.call(f,o)?()=>this.highlightItemFromMouse(s):null,onClick:(_=(h=this.props).isItemSelectable)!=null&&_.call(h,o)?()=>this.selectItemFromMouse(o):null}),M.cloneElement(l,{...u,ref:F=>this._refs[`item-${s}`]=F})}).filter(o=>o!==null),i={left:this.state.menuLeft,top:this.state.menuTop,minWidth:this.state.menuWidth},a=Ze((n=(r=this.props).renderMenu)==null?void 0:n.call(r,e,Ze(this.props.value,""),i),zo.defaultProps.renderMenu(e,this.props.value||"",i));return M.cloneElement(a,{ref:o=>this._refs.menu=o,onTouchStart:this.handleMenuTouchStart,onMouseEnter:this.handleMenuMouseEnter,onMouseLeave:this.handleMenuMouseLeave})}handleInputBlur(e){var n;if(this._scrollTimer&&clearTimeout(this._scrollTimer),this._ignoreBlur){this._ignoreFocus=!0,this._scrollOffset=hO(),(n=this._refs.input)==null||n.focus();return}document.getElementById("multiselect-caret-btn")===(e==null?void 0:e.relatedTarget)&&(this._actionButtonEnabled=!1);let i;const{highlightedIndex:a}=this.state;if(this.props.selectOnBlur&&a!==null){const s=this.getFilteredItems()[a],l=this.props.getItemValue(s);i=()=>{var u,f;return(f=(u=this.props).onSelect)==null?void 0:f.call(u,l,s)}}this.setState({isOpen:!1,highlightedIndex:null},i);const{onBlur:r}=Ze(this.props.inputProps,{});r&&r(e)}handleInputFocus(e){if(this._ignoreFocus){this._ignoreFocus=!1;const{x:a,y:r}=this._scrollOffset||{x:0,y:0};this._scrollOffset=null,window.scrollTo(a,r),this._scrollTimer&&clearTimeout(this._scrollTimer),this._scrollTimer=setTimeout(()=>{this._scrollTimer=null,window.scrollTo(a,r)},0);return}this.setState({isOpen:!0});const{onFocus:i}=Ze(this.props.inputProps,{});i&&i(e)}isInputFocused(){const e=this._refs.input;return!!(e!=null&&e.ownerDocument&&e===e.ownerDocument.activeElement)}handleInputClick(){this.isInputFocused()&&!this.isOpen()&&this.setState({isOpen:!0})}composeEventHandlers(e,i){return i?a=>{e(a),a.defaultPrevented||i(a)}:e}isOpen(){return"open"in this.props?!!this.props.open:this.state.isOpen}renderButton(){const{isMultiSelect:e,buttonOpenLabel:i,buttonClosedLabel:a}=this.props;if(!e||this.props.hideInputCaret)return null;const r=this.isOpen()?"caret_up":"caret_dn",n=()=>{var o;this._actionButtonEnabled?(o=this._refs.input)==null||o.focus():this._actionButtonEnabled=!0};return g.jsx($i,{id:"multiselect-caret-btn","data-testid":"multiselect-caret-btn-test",type:"button",icon:r,size:"default",className:$h["trigger-button-icon"],color:"#666",onClick:n,"aria-label":this.isOpen()?i:a,title:this.isOpen()?i:a})}render(){const{inputProps:e,renderInput:i,value:a,popperEnabled:r,wrapperStyle:n,wrapperProps:o}=this.props,s=this.isOpen();!s&&this._ignoreBlur&&(this._ignoreBlur=!1);const u=(i||zo.defaultProps.renderInput)({...e,"aria-autocomplete":"list",autoComplete:"off",ref:this.exposeAPI,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur,onChange:this.handleChange,onKeyDown:this.composeEventHandlers(this.handleKeyDown,e==null?void 0:e.onKeyDown),onClick:this.composeEventHandlers(this.handleInputClick,e==null?void 0:e.onClick),highlightedIndex:this.state.highlightedIndex,value:a||""});if(!u)return g.jsx("input",{...e,value:a||""});const f=pe(n,o,{[$h["popper-wrapper"]]:r,[$h["relative-wrapper"]]:!r});return r?g.jsx(g.Fragment,{children:g.jsx(mo,{isOpen:s,parent:u,popoverComponent:this.renderMenu(),className:f,position:"bottom","data-testid":"meatBallMenu-popover",popperProps:{className:$h["full-width"],sameWidth:!0}})}):g.jsxs("div",{className:f,children:[u,this.renderButton(),s&&this.renderMenu()]})}};zo.displayName="Autocomplete",zo.defaultProps={value:"",wrapperProps:{},wrapperStyle:{display:"inline-block"},inputProps:{},renderInput({highlightedIndex:e,...i}){return g.jsx("input",{...i})},onChange(){},isItemSelectable(){return!0},renderMenu(e,i,a){return g.jsx("div",{style:{...a,...this.menuStyle},"data-testid":"autocomplete-menu",children:e})},menuStyle:{borderRadius:"3px",boxShadow:"0 2px 12px rgba(0, 0, 0, 0.1)",background:"rgba(255, 255, 255, 0.9)",padding:"2px 0",fontSize:"90%",position:"fixed",overflow:"auto",maxHeight:"50%"},selectOnBlur:!1,onMenuVisibilityChange(){},keepInputAfterSelection:!1,skipEventHandlers:!1,popperEnabled:!1,hideInputCaret:!1,buttonOpenLabel:"Open",buttonClosedLabel:"Closed"},zo.keyDownHandlers={ArrowDown(e){var n,o;e.preventDefault();const i=this.getFilteredItems();if(!i.length)return;const{highlightedIndex:a}=this.state;let r=a===null?-1:a;for(let s=0;s<i.length;s++){const l=(r+s+1)%i.length;if((o=(n=this.props).isItemSelectable)!=null&&o.call(n,i[l])){r=l;break}}if(r>-1&&r!==a){const s=this._refs[`item-${r}`];s&&this.scrollNodeIntoView(s),this.setState({highlightedIndex:r,isOpen:!0})}},ArrowUp(e){var n,o;e.preventDefault();const i=this.getFilteredItems();if(!i.length)return;const{highlightedIndex:a}=this.state;if(a===0){this.setState({highlightedIndex:null});return}let r=a===null?i.length:a;for(let s=0;s<i.length;s++){const l=(r-(1+s)+i.length)%i.length;if((o=(n=this.props).isItemSelectable)!=null&&o.call(n,i[l])){r=l;break}}if(r!==i.length){const s=this._refs[`item-${r}`];s&&this.scrollNodeIntoView(s),this.setState({highlightedIndex:r,isOpen:!0})}},Enter(e){const i=e.nativeEvent;if(i&&"keyCode"in i&&i.keyCode!==13){this._ignoreBlur=!1;return}if(this._ignoreBlur=!1,this.isOpen())if(this.state.highlightedIndex==null)this.setState({isOpen:!1},()=>{var a;(a=this._refs.input)==null||a.select()});else{e.preventDefault();const a=this.getFilteredItems()[this.state.highlightedIndex],r=this.props.getItemValue(a);this.setState({isOpen:this.props.keepInputAfterSelection||!1,highlightedIndex:null},()=>{var n,o,s,l;(n=this._refs.input)==null||n.focus(),(o=this._refs.input)==null||o.setSelectionRange(r.length,r.length),(l=(s=this.props).onSelect)==null||l.call(s,r,a)})}else return},Escape(){this._ignoreBlur=!1,this.setState({highlightedIndex:null,isOpen:!1})},Tab(){this._ignoreBlur=!1}};let u2=zo;var f2=new Map,zh=new Map,Q5=0;function gO(t){return t?(zh.has(t)||(Q5+=1,zh.set(t,Q5.toString())),zh.get(t)):"0"}function _O(t){return Object.keys(t).sort().filter(function(e){return t[e]!==void 0}).map(function(e){return e+"_"+(e==="root"?gO(t.root):t[e])}).toString()}function cO(t){var e=_O(t),i=f2.get(e);if(!i){var a=new Map,r,n=new IntersectionObserver(function(o){o.forEach(function(s){var l,u=s.isIntersecting&&r.some(function(f){return s.intersectionRatio>=f});t.trackVisibility&&typeof s.isVisible>"u"&&(s.isVisible=u),(l=a.get(s.target))==null||l.forEach(function(f){f(u,s)})})},t);r=n.thresholds||(Array.isArray(t.threshold)?t.threshold:[t.threshold||0]),i={id:e,observer:n,elements:a},f2.set(e,i)}return i}function FO(t,e,i){if(i===void 0&&(i={}),!t)return function(){};var a=cO(i),r=a.id,n=a.observer,o=a.elements,s=o.get(t)||[];return o.has(t)||o.set(t,s),s.push(e),n.observe(t),function(){s.splice(s.indexOf(e),1),s.length===0&&(o.delete(t),n.unobserve(t)),o.size===0&&(n.disconnect(),f2.delete(r))}}function mO(t){var e={},i=e.threshold,a=e.delay,r=e.trackVisibility,n=e.rootMargin,o=e.root,s=e.triggerOnce,l=e.skip,u=e.initialInView,f=M.useRef(),d=M.useState({inView:!!u}),h=d[0],_=d[1],F=M.useCallback(function(m){f.current!==void 0&&(f.current(),f.current=void 0),!l&&m&&(f.current=FO(m,function(A,p){_({inView:A,entry:p}),p.isIntersecting&&s&&f.current&&(f.current(),f.current=void 0)},{root:o,rootMargin:n,threshold:i,trackVisibility:r,delay:a}))},[Array.isArray(i)?i.toString():i,o,n,s,l,r,a]);M.useEffect(function(){!f.current&&h.entry&&!s&&!l&&_({inView:!!u})});var c=[F,h.inView,h.entry];return c.ref=c[0],c.inView=c[1],c.entry=c[2],c}function N5({hasNextPage:t,fetchMoreResults:e,loading:i,spacerSize:a="medium",minimumTime:r=2e3}){const[n,o]=mO(),s=M.useRef(o);return s.current=o,M.useEffect(()=>{let l;return o&&t&&!i&&(l=setTimeout(async()=>{s.current&&e()},r)),()=>{l&&clearTimeout(l)}},[o,t,i,e,r]),!t||i?g.jsx(g.Fragment,{}):g.jsx("div",{ref:n,children:g.jsxs("div",{role:"progressbar","aria-valuetext":"Loading more items...",style:{visibility:"initial"},children:[g.jsx(qt,{size:a,orientation:"vertical"}),g.jsx(Wn,{horizontallyCentered:!0}),g.jsx(qt,{size:a,orientation:"vertical"})]})})}const zt={defaultText:"#333",asphalt:"#727272",night:"#333",brandSecondary:"#22abf3",pool:"#22abf3",lemon:"#f8f042",spinach:"#227c31",frost:"#a8f1f3",systemRed:"#f3224d",systemGreen:"#00a861",systemYellow:"#ffc20e",systemDefault:"#2a5cdb",snow:"#fff",transparentBlack:"rgba(0, 0, 0, 0.65)",brandPrimary:"#227c31",KWBrandPrimary:"#227c31",kwBrandPrimary:"#227c31",KWBrandSecondary:"#22abf3",kwBrandSecondary:"#22abf3",KWBrandSalmon:"#ff9676",kwBrandSalmon:"#ff9676",KWBrandFrost:"#a7f1f3",kwBrandFrost:"#a7f1f3",KWBrandPlum:"#702278",kwBrandPlum:"#702278",KWBrandLemon:"#f8f042",kwBrandLemon:"#f8f042",KWBrandSunrise:"#ffb400",kwBrandSunrise:"#ffb400",KWBrandLatte:"#d5b591",kwBrandLatte:"#d5b591",systemBlue:"#2a5cdb",systemBlueLight:"#eef2fc",systemBlueLightest:"#f4f7fd",systemBlueDark:"#1b409e",systemWarning:"#f3224d",systemWarningLight:"#fee9ed",systemWarningDark:"#d61e44",systemSuccess:"#00a861",systemSuccessLight:"#e6f6ef",systemSuccessDark:"#027946",systemInfo:"#863dff",systemInfoLight:"white",systemInfoDark:"#4700bd",systemWarn:"#f6be45",systemWarnLight:"white",systemWarnDark:"#b37d09",systemOptimistic:"#fd5d4b",systemOptimisticLight:"white",systemOptimisticDark:"#c61602",systemNavGray:"#191919",systemGray1:"#333",systemGray2:"#666",systemGray3:"#949494",systemGray4:"#aaaaaa",systemGray5:"#c6c6c6",systemGray6:"#f1f1f1",white:"#fff",workTangoPurple:"#524fef",workTangoLightPurple:"#c3d4ff",workTangoLightAqua:"#a5fcec",bodyScrollbarDisplayNone:"bodyScrollbarDisplayNone","input-wrapper":"MultiSelect-module_input-wrapper_ktN7O",inputWrapper:"MultiSelect-module_input-wrapper_ktN7O","input-hide-wrapper":"MultiSelect-module_input-hide-wrapper_cREhN",inputHideWrapper:"MultiSelect-module_input-hide-wrapper_cREhN",input:"MultiSelect-module_input_HRN3s","input--active":"MultiSelect-module_input--active_-DAAO",inputActive:"MultiSelect-module_input--active_-DAAO","input--hide":"MultiSelect-module_input--hide_4BXLm",inputHide:"MultiSelect-module_input--hide_4BXLm","suggestions-box":"MultiSelect-module_suggestions-box_Ik08S",suggestionsBox:"MultiSelect-module_suggestions-box_Ik08S","suggestions-list":"MultiSelect-module_suggestions-list_vTD8S",suggestionsList:"MultiSelect-module_suggestions-list_vTD8S","checkbox-divider":"MultiSelect-module_checkbox-divider_2-Cda",checkboxDivider:"MultiSelect-module_checkbox-divider_2-Cda","suggestions-box--with-items":"MultiSelect-module_suggestions-box--with-items_xFqRh",suggestionsBoxWithItems:"MultiSelect-module_suggestions-box--with-items_xFqRh","suggestions-box--hide-search":"MultiSelect-module_suggestions-box--hide-search_hcQxZ",suggestionsBoxHideSearch:"MultiSelect-module_suggestions-box--hide-search_hcQxZ","suggestions-box--no-popper":"MultiSelect-module_suggestions-box--no-popper_AJVyN",suggestionsBoxNoPopper:"MultiSelect-module_suggestions-box--no-popper_AJVyN","suggestions-box--nested":"MultiSelect-module_suggestions-box--nested_fw7X5",suggestionsBoxNested:"MultiSelect-module_suggestions-box--nested_fw7X5","suggestion-row":"MultiSelect-module_suggestion-row_J4flX",suggestionRow:"MultiSelect-module_suggestion-row_J4flX","suggestion-row--highlighted":"MultiSelect-module_suggestion-row--highlighted_HALBl",suggestionRowHighlighted:"MultiSelect-module_suggestion-row--highlighted_HALBl","suggestion-row--checkbox":"MultiSelect-module_suggestion-row--checkbox_0yRpl",suggestionRowCheckbox:"MultiSelect-module_suggestion-row--checkbox_0yRpl","suggestion-row--border-bottom":"MultiSelect-module_suggestion-row--border-bottom_FnBAf",suggestionRowBorderBottom:"MultiSelect-module_suggestion-row--border-bottom_FnBAf","selection-container":"MultiSelect-module_selection-container_KnZMo",selectionContainer:"MultiSelect-module_selection-container_KnZMo","selection-input-container":"MultiSelect-module_selection-input-container_03fpy",selectionInputContainer:"MultiSelect-module_selection-input-container_03fpy","selection-items-container":"MultiSelect-module_selection-items-container_T45PP",selectionItemsContainer:"MultiSelect-module_selection-items-container_T45PP",selection:"MultiSelect-module_selection_kOXfx","selection-remove-button":"MultiSelect-module_selection-remove-button_j-lNu",selectionRemoveButton:"MultiSelect-module_selection-remove-button_j-lNu","selection__close-button__icon":"MultiSelect-module_selection__close-button__icon_rtcPb",selectionCloseButtonIcon:"MultiSelect-module_selection__close-button__icon_rtcPb","default-selection-pill":"MultiSelect-module_default-selection-pill_sfN4W",defaultSelectionPill:"MultiSelect-module_default-selection-pill_sfN4W","checkbox-wrapper":"MultiSelect-module_checkbox-wrapper_KjJSO",checkboxWrapper:"MultiSelect-module_checkbox-wrapper_KjJSO","person-checkbox-wrapper":"MultiSelect-module_person-checkbox-wrapper_EeXPP",personCheckboxWrapper:"MultiSelect-module_person-checkbox-wrapper_EeXPP","checkbox-pill":"MultiSelect-module_checkbox-pill_KCchB",checkboxPill:"MultiSelect-module_checkbox-pill_KCchB","list-caret":"MultiSelect-module_list-caret_UBdYz",listCaret:"MultiSelect-module_list-caret_UBdYz","check-box-disabled":"MultiSelect-module_check-box-disabled_-0Mfp",checkBoxDisabled:"MultiSelect-module_check-box-disabled_-0Mfp","disabled-pill":"MultiSelect-module_disabled-pill_Meew1",disabledPill:"MultiSelect-module_disabled-pill_Meew1","suggestion-container":"MultiSelect-module_suggestion-container_k6AtW",suggestionContainer:"MultiSelect-module_suggestion-container_k6AtW","suggestion-text":"MultiSelect-module_suggestion-text_DPeu4",suggestionText:"MultiSelect-module_suggestion-text_DPeu4","suggestion-helper-text":"MultiSelect-module_suggestion-helper-text_gnWBG",suggestionHelperText:"MultiSelect-module_suggestion-helper-text_gnWBG",actions:"MultiSelect-module_actions_1Es8A"};var d2,$5;function AO(){if($5)return d2;$5=1;var t=200,e="__lodash_hash_undefined__",i=9007199254740991,a="[object Arguments]",r="[object Function]",n="[object GeneratorFunction]",o="[object Symbol]",s=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,u=/^(?:0|[1-9]\d*)$/,f=typeof Qi=="object"&&Qi&&Qi.Object===Object&&Qi,d=typeof self=="object"&&self&&self.Object===Object&&self,h=f||d||Function("return this")();function _(te,fe,we){switch(we.length){case 0:return te.call(fe);case 1:return te.call(fe,we[0]);case 2:return te.call(fe,we[0],we[1]);case 3:return te.call(fe,we[0],we[1],we[2])}return te.apply(fe,we)}function F(te,fe){var we=te?te.length:0;return!!we&&p(te,fe,0)>-1}function c(te,fe){for(var we=-1,Ke=te?te.length:0,bt=Array(Ke);++we<Ke;)bt[we]=fe(te[we],we,te);return bt}function m(te,fe){for(var we=-1,Ke=fe.length,bt=te.length;++we<Ke;)te[bt+we]=fe[we];return te}function A(te,fe,we,Ke){for(var bt=te.length,hi=we+-1;++hi<bt;)if(fe(te[hi],hi,te))return hi;return-1}function p(te,fe,we){if(fe!==fe)return A(te,w,we);for(var Ke=we-1,bt=te.length;++Ke<bt;)if(te[Ke]===fe)return Ke;return-1}function w(te){return te!==te}function b(te,fe){for(var we=-1,Ke=Array(te);++we<te;)Ke[we]=fe(we);return Ke}function y(te,fe){return te.has(fe)}function k(te,fe){return te==null?void 0:te[fe]}function C(te){var fe=!1;if(te!=null&&typeof te.toString!="function")try{fe=!!(te+"")}catch{}return fe}function v(te,fe){return function(we){return te(fe(we))}}var E=Array.prototype,D=Function.prototype,S=Object.prototype,P=h["__core-js_shared__"],U=function(){var te=/[^.]+$/.exec(P&&P.keys&&P.keys.IE_PROTO||"");return te?"Symbol(src)_1."+te:""}(),I=D.toString,q=S.hasOwnProperty,T=S.toString,N=RegExp("^"+I.call(q).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),H=h.Symbol,$=v(Object.getPrototypeOf,Object),x=S.propertyIsEnumerable,L=E.splice,Q=H?H.isConcatSpreadable:void 0,B=Object.getOwnPropertySymbols,G=Math.max,ee=si(h,"Map"),V=si(Object,"create");function X(te){var fe=-1,we=te?te.length:0;for(this.clear();++fe<we;){var Ke=te[fe];this.set(Ke[0],Ke[1])}}function J(){this.__data__=V?V(null):{}}function re(te){return this.has(te)&&delete this.__data__[te]}function O(te){var fe=this.__data__;if(V){var we=fe[te];return we===e?void 0:we}return q.call(fe,te)?fe[te]:void 0}function ne(te){var fe=this.__data__;return V?fe[te]!==void 0:q.call(fe,te)}function W(te,fe){var we=this.__data__;return we[te]=V&&fe===void 0?e:fe,this}X.prototype.clear=J,X.prototype.delete=re,X.prototype.get=O,X.prototype.has=ne,X.prototype.set=W;function de(te){var fe=-1,we=te?te.length:0;for(this.clear();++fe<we;){var Ke=te[fe];this.set(Ke[0],Ke[1])}}function Ae(){this.__data__=[]}function be(te){var fe=this.__data__,we=lt(fe,te);if(we<0)return!1;var Ke=fe.length-1;return we==Ke?fe.pop():L.call(fe,we,1),!0}function Te(te){var fe=this.__data__,we=lt(fe,te);return we<0?void 0:fe[we][1]}function ye(te){return lt(this.__data__,te)>-1}function je(te,fe){var we=this.__data__,Ke=lt(we,te);return Ke<0?we.push([te,fe]):we[Ke][1]=fe,this}de.prototype.clear=Ae,de.prototype.delete=be,de.prototype.get=Te,de.prototype.has=ye,de.prototype.set=je;function Oe(te){var fe=-1,we=te?te.length:0;for(this.clear();++fe<we;){var Ke=te[fe];this.set(Ke[0],Ke[1])}}function me(){this.__data__={hash:new X,map:new(ee||de),string:new X}}function We(te){return ct(this,te).delete(te)}function rt(te){return ct(this,te).get(te)}function tt(te){return ct(this,te).has(te)}function st(te,fe){return ct(this,te).set(te,fe),this}Oe.prototype.clear=me,Oe.prototype.delete=We,Oe.prototype.get=rt,Oe.prototype.has=tt,Oe.prototype.set=st;function ht(te){var fe=-1,we=te?te.length:0;for(this.__data__=new Oe;++fe<we;)this.add(te[fe])}function Di(te){return this.__data__.set(te,e),this}function Nt(te){return this.__data__.has(te)}ht.prototype.add=ht.prototype.push=Di,ht.prototype.has=Nt;function Be(te,fe){var we=He(te)||ut(te)?b(te.length,String):[],Ke=we.length,bt=!!Ke;for(var hi in te)bt&&(hi=="length"||K(hi,Ke))||we.push(hi);return we}function lt(te,fe){for(var we=te.length;we--;)if(qe(te[we][0],fe))return we;return-1}function $t(te,fe,we,Ke){var bt=-1,hi=F,gi=!0,gr=te.length,Is=[],Ps=fe.length;if(!gr)return Is;fe.length>=t&&(hi=y,gi=!1,fe=new ht(fe));e:for(;++bt<gr;){var Nn=te[bt],Wo=Nn;if(Nn=Nn!==0?Nn:0,gi&&Wo===Wo){for(var Go=Ps;Go--;)if(fe[Go]===Wo)continue e;Is.push(Nn)}else hi(fe,Wo,Ke)||Is.push(Nn)}return Is}function Ti(te,fe,we,Ke,bt){var hi=-1,gi=te.length;for(we||(we=da),bt||(bt=[]);++hi<gi;){var gr=te[hi];we(gr)?m(bt,gr):bt[bt.length]=gr}return bt}function Ki(te,fe,we){var Ke=fe(te);return He(te)?Ke:m(Ke,we(te))}function Fa(te){if(!ce(te)||ae(te))return!1;var fe=ie(te)||C(te)?N:l;return fe.test(Ye(te))}function ir(te){if(!ce(te))return De(te);var fe=he(te),we=[];for(var Ke in te)Ke=="constructor"&&(fe||!q.call(te,Ke))||we.push(Ke);return we}function xt(te,fe){return te=Object(te),ge(te,fe,function(we,Ke){return Ke in te})}function ge(te,fe,we){for(var Ke=-1,bt=fe.length,hi={};++Ke<bt;){var gi=fe[Ke],gr=te[gi];we(gr,gi)&&(hi[gi]=gr)}return hi}function ve(te,fe){return fe=G(fe===void 0?te.length-1:fe,0),function(){for(var we=arguments,Ke=-1,bt=G(we.length-fe,0),hi=Array(bt);++Ke<bt;)hi[Ke]=we[fe+Ke];Ke=-1;for(var gi=Array(fe+1);++Ke<fe;)gi[Ke]=we[Ke];return gi[fe]=hi,_(te,this,gi)}}function Ve(te){return Ki(te,mt,Xi)}function ct(te,fe){var we=te.__data__;return z(fe)?we[typeof fe=="string"?"string":"hash"]:we.map}function si(te,fe){var we=k(te,fe);return Fa(we)?we:void 0}var Ht=B?v(B,Object):gt,Xi=B?function(te){for(var fe=[];te;)m(fe,Ht(te)),te=$(te);return fe}:gt;function da(te){return He(te)||ut(te)||!!(Q&&te&&te[Q])}function K(te,fe){return fe=fe??i,!!fe&&(typeof te=="number"||u.test(te))&&te>-1&&te%1==0&&te<fe}function z(te){var fe=typeof te;return fe=="string"||fe=="number"||fe=="symbol"||fe=="boolean"?te!=="__proto__":te===null}function ae(te){return!!U&&U in te}function he(te){var fe=te&&te.constructor,we=typeof fe=="function"&&fe.prototype||S;return te===we}function De(te){var fe=[];if(te!=null)for(var we in Object(te))fe.push(we);return fe}function Ee(te){if(typeof te=="string"||kt(te))return te;var fe=te+"";return fe=="0"&&1/te==-1/0?"-0":fe}function Ye(te){if(te!=null){try{return I.call(te)}catch{}try{return te+""}catch{}}return""}function qe(te,fe){return te===fe||te!==te&&fe!==fe}function ut(te){return Ct(te)&&q.call(te,"callee")&&(!x.call(te,"callee")||T.call(te)==a)}var He=Array.isArray;function it(te){return te!=null&&ke(te.length)&&!ie(te)}function Ct(te){return Ie(te)&&it(te)}function ie(te){var fe=ce(te)?T.call(te):"";return fe==r||fe==n}function ke(te){return typeof te=="number"&&te>-1&&te%1==0&&te<=i}function ce(te){var fe=typeof te;return!!te&&(fe=="object"||fe=="function")}function Ie(te){return!!te&&typeof te=="object"}function kt(te){return typeof te=="symbol"||Ie(te)&&T.call(te)==o}function mt(te){return it(te)?Be(te):ir(te)}var nt=ve(function(te,fe){return te==null?{}:(fe=c(Ti(fe),Ee),xt(te,$t(Ve(te),fe)))});function gt(){return[]}return d2=nt,d2}var pO=AO();const bO=Ni(pO);function yO({inputRef:t,containerRef:e,inputProps:{error:i,disabled:a,placeholder:r,...n},maxSelections:o=0,selectedItems:s,renderSelection:l,onRemoveSelection:u,suggestionsOpen:f,hideSearchInput:d,alwaysDisplayInput:h,ariaDescribedBy:_,listId:F,highlightedIndex:c}){const m=zs(F),A=c!==null,p=A?m(c):null,w={...A&&p?{"aria-activedescendant":p}:null},b=f||!s.length?"input-wrapper":"input-hide-wrapper",k=pe(zt[h?"input-wrapper":b],Ci.input,{[Ci["input--disabled"]]:a,[Ci["input--error"]]:i,[zt["input--hide"]]:d,[zt["input--active"]]:f}),v=o!==0&&s.length>=o?{display:"none"}:{};return g.jsx("div",{className:k,"data-testid":"multiselect-input-test",children:g.jsxs("div",{ref:e,className:zt["selection-container"],children:[s.map((E,D)=>g.jsx("div",{className:zt["selection-items-container"],children:l({tabIndex:D,item:E,onRemoveSelection:u})},wO("dropdown",E.id))),g.jsx("div",{className:zt["selection-input-container"],children:g.jsx("input",{style:v,ref:t,disabled:a,className:zt.input,placeholder:r,...bO(n,"onTextChange"),"aria-describedby":_,role:"combobox","aria-autocomplete":"both","aria-controls":F,"aria-expanded":f,...w})})]})})}function wO(t,e){return t+"-"+e.replace(/ /g,"-")}function Wh({icon:t,className:e="",variant:i="gray",size:a="large",text:r,listShowable:n,hoverContent:o,users:s=[],onClose:l,onClick:u,avatarUser:f,tabIndex:d,onKeyPress:h,onMouseEnter:_,onMouseLeave:F,...c}){const[m,A]=M.useState(!1),p=c["data-testid"],w=`pill--${i}`,b=!!(n||u),y=Ze(Na[w],w),k=Ze(Na[`${w}-has-hover`],`${w}-has-hover`),C=pe(e,{[Na.pill]:!0,[y]:!0,[Na[a]]:!0,[Na["has-hover"]]:b,[`${w}-has-hover`]:b,[k]:b}),E=i==="primary"||i==="secondary"?`${w}-color`:w,[D,S]=M.useState(!1),[P,U]=nO(()=>{S(!1),T(!1)}),I=()=>{S(!0),U()},[q,T]=M.useState(!1),N=Q=>{Q.key==="Enter"&&T(!q)};let H={onClick:u};const $=()=>{A(!0),_==null||_()},x=()=>{A(!1),F==null||F()};n&&(H={role:"button",tabIndex:0,onClick:()=>T(!q),onKeyDown:N,onFocus:I,onBlur:P});const L=g.jsxs("div",{role:u?"button":"",tabIndex:d,onKeyPress:h,"data-testid":p,className:C,onMouseEnter:$,onMouseLeave:x,...H,children:[f&&g.jsx("div",{"data-testid":"pill-avatar",className:Na["pill-avatar"],children:g.jsx(Eh,{dimensions:24,size:"small",user:f})}),t&&g.jsx("div",{"data-testid":`${Ze(p,"pill")}-icon-wrapper`,className:Na.icon,children:g.jsx(Ut,{icon:t,size:12,className:E,variant:"thin"})}),g.jsx("div",{"data-testid":"pill-text",children:r}),l&&g.jsx("div",{"data-testid":"pill-close-icon",className:Na["pill-close"],children:g.jsx("div",{onClick:Q=>{Q.stopPropagation(),l()},children:g.jsx(Ut,{className:E,size:8,icon:"close",variant:"thin"})})})]});return g.jsxs(g.Fragment,{children:[!!n&&g.jsx(mo,{parent:L,isOpen:q&&D,popoverComponent:g.jsx(rO,{employees:s}),position:"bottom-start",className:Na["list-card"]}),!!o&&g.jsx(mo,{parent:L,isOpen:m,popoverComponent:o,position:"top-start",className:Na["pill-hover-content"]}),!n&&!o&&L]})}const kO=({tabIndex:t,item:e,onRemoveSelection:i})=>g.jsx(Wh,{tabIndex:t,onKeyPress:()=>i(e),"data-testid":"tag-selector-pill",text:e.text,onClick:()=>i(e),size:"large",className:zt["default-selection-pill"],onClose:()=>i(e)}),xO=({tabIndex:t,item:e,onRemoveSelection:i})=>g.jsx(kO,{tabIndex:t,item:e,onRemoveSelection:()=>i(e)},e.id);function CO(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const z5=M.forwardRef(({item:t,originalItems:e,selectedItems:i,onSelectionChange:a,expandedItems:r,onItemExpanded:n,isParentSelected:o,nestedData:s,behaveAsAFilter:l,...u},f)=>{var P;const d=U=>U._parent===void 0?void 0:e[U._parent],h=U=>c(U).some(q=>i.some(T=>T.id===q.id)),_=U=>{let I=d(U);for(;I!==void 0&&!i.some(q=>q.id===(I==null?void 0:I.id));)I=d(I);return I},F=U=>{const I=[];let q=U;do q._parent!==void 0&&I.push(q._parent),q=d(q)??q;while((q==null?void 0:q._parent)!==void 0);return I},c=U=>{let I=[],q=[];for(q.push(U);q.length>0;){const T=q.pop();T!=null&&T.children&&(q=[...q,...T.children],I=[...I,...T.children])}return I},m=()=>{var U,I,q,T;if(p){if(D&&l){c(A).filter(H=>i.map($=>$.id).includes(H.id)).forEach(H=>{a(H)}),a(A);return}if(y&&l){const N=_(A),H=[...F(A)];if(N){let L=!1;a(N);for(let Q=H.length-1;Q>=0;Q--){const B=H[Q];if(N.id===e[B].id||L){L=!0;const G=Q===0?A.id:e[H[Q-1]].id;(U=e[B].children)==null||U.filter(ee=>ee.id!==G).forEach(ee=>a(ee))}}return}const $=[];let x=[];for(let L=0;L<H.length;L++){const Q=H[L],B=e[Q],G=L===0?A.id:e[H[L-1]].id;if((((I=B.children)==null?void 0:I.filter(V=>i.some(X=>X.id===V.id)))||[]).length+1===(((q=B.children)==null?void 0:q.length)||0)&&!i.some(V=>V.id===A.id))$.push(...((T=B.children)==null?void 0:T.filter(V=>V.id!==G))||[]),x=[B];else break}if($.length>0||x.length>0){$.forEach(L=>a(L)),x.forEach(L=>a(L));return}}a(A)}},A=s?e.filter(U=>U.id===t.id)[0]:t,p=A._isItemSelectable!==void 0?A._isItemSelectable:!0;if(!s||A._parent===void 0&&A.children===void 0){const U=i.some(I=>I.id===A.id);return M.createElement(G5,{...u,onChange:()=>a(A),key:A.id,item:A,isSelected:U,isItemSelectable:p,hasChildren:!1,ref:f})}const w=()=>{var U;return!k||E&&!l?!1:v<(((U=A.children)==null?void 0:U.length)||0)&&v>0?!0:h(A)},b=()=>{var U;return i.some(I=>I.id===A.id)?!0:l?k&&((U=A.children)==null?void 0:U.length)===v?!0:!!o:!1},y=d(A),k=A.children&&A.children.length>0,C=k?r.some(U=>U===t.id):!1,v=k?(((P=A.children)==null?void 0:P.filter(U=>i.some(I=>I.id===U.id)))||[]).length:0,E=b(),D=w();let S;return C&&t.children&&(S=t.children.map(U=>M.createElement(z5,{...u,key:U.id,item:U,originalItems:e,selectedItems:i,onSelectionChange:a,expandedItems:r,onItemExpanded:n,isParentSelected:E,nestedData:s,behaveAsAFilter:l}))),g.jsxs("div",{children:[M.createElement(G5,{...u,item:A,isSelected:E,key:t.id,isIndeterminate:D,isItemSelectable:p,displayChildren:C,hasChildren:k,onDisplayChildrenChange:n,onChange:m,nestedData:s}),S]})});function Xs(t,e){if(!t)return"";const i=new RegExp(CO(e),"ig"),a=t.match(i);let r=-1;return!e||!(a!=null&&a.length)?t:t.split(i).reduce((n,o)=>{r++;const s=a[r]?g.jsx("b",{children:a[r]},`multi-select-${r}`):"";return[...n,o,s]},[])}const W5={BASIC:"basic"},G5=M.forwardRef(({item:t,isHighlighted:e,isSelected:i,currentInputValue:a="",indeterminate:r,displayChildren:n,isItemSelectable:o,checkbox:s,onDisplayChildrenChange:l,onChange:u,hasChildren:f,isIndeterminate:d,nestedData:h,variant:_=W5.BASIC,listId:F,index:c,...m},A)=>{const w=zs(F)((c==null?void 0:c.toString())??""),b=pe(zt["checkbox-pill"],{[zt["disabled-pill"]]:!o});function y(C){return g.jsxs(g.Fragment,{children:[g.jsx(l2,{className:zt["checkbox-divider"]}),g.jsxs("div",{className:t.user?zt["person-checkbox-wrapper"]:zt["checkbox-wrapper"],style:{marginLeft:`${(t._treeLevel||0)*7}px`},children:[C,t.pillText&&g.jsxs(g.Fragment,{children:[g.jsx("span",{className:"screen-reader-only",children:","}),g.jsx(Wh,{"data-testid":"checkbox-pill",text:t.pillText,size:"small",className:b})]})]})]})}const k=()=>{if(_==="system")return g.jsx(M.Fragment,{children:g.jsxs("div",{className:zt["suggestion-container"],children:[g.jsx("div",{className:zt["suggestion-text"],children:g.jsxs("span",{children:[" ",Xs(t.text,a)]})}),g.jsxs("div",{className:zt["suggestion-helper-text"],children:[g.jsx("span",{className:"screen-reader-only",children:","}),g.jsxs("span",{children:[" ",Xs(t.helperText||"",a)]})]})]})});if(!s&&!h)return t.pillText?Xs(t.pillText,a):Xs(t.text,a);let C;const v=g.jsx(ma,{"data-testid":"multiselect-item-caret-test",className:zt["list-caret"],icon:n?"caret_up":"caret_dn",iconVariant:"regular",onClick:E=>{E.stopPropagation(),o&&l&&l(t)},system:!1,type:"button"},`Icon-${t.id}`);return!s&&h?C=g.jsxs("div",{children:[Xs(t.text,a),f&&v]}):C=g.jsx(Vs,{id:t.id,indeterminate:d,onIndeterminateChange:u,"data-testid":"multiselect-checkbox-item-test",checked:i,disabled:!o,className:o?"":zt["check-box-disabled"],label:[Xs(t.text,a),f&&v],helperText:g.jsxs(g.Fragment,{children:[g.jsx("span",{className:"screen-reader-only",children:","}),Xs(t.helperText||" ",a)]}),onChange:u,user:t.user}),y(C)};return g.jsx("li",{className:pe(zt["suggestion-row"],{[zt["suggestion-row--highlighted"]]:e,[zt["suggestion-row--checkbox"]]:s,[zt["suggestion-row--border-bottom"]]:_==="system"}),id:w,role:"option","aria-selected":e,ref:A,onClick:o&&!r?u:void 0,onKeyDown:()=>{},"data-testid":"multiselect-list-item-test",...m,children:k()},t.id)}),vO=({item:t,...e})=>g.jsx(z5,{item:t,...e},t.id),DO=({emptySuggestionsComponent:t,listId:e,popperEnabled:i})=>g.jsx("div",{className:pe(zt["suggestions-box"],zt["suggestions-box--with-items"],{[zt["suggestions-box--no-popper"]]:!i}),children:g.jsx("ul",{className:zt["suggestions-list"],"data-testid":"multiselect-suggestions-empty",role:"listbox",id:e,children:g.jsx("li",{className:zt["suggestion-row"],role:"option",children:t})})}),EO=/[,]/g,BO=t=>t.replace(EO,"").trim(),SO=t=>{const e=[];let i=0;const a=(r,n)=>{for(const o of r){const l={...o,_parent:i===0?void 0:n,_treeLevel:i};e.push(l),o.children&&o.children.length>0&&(i++,a(o.children,e.length-1),i--)}};return a(t,void 0),e};function jO({items:t=[],selectedItems:e=[],suggestionsOpen:i=!1,setSuggestionsOpen:a=()=>{},emptySuggestionsComponent:r=null,inputText:n="",setInputText:o=()=>{},onTextChange:s=()=>{},onSelectionChange:l,onBackspaceRemoval:u=()=>{},allowFreeformInput:f,maxSelections:d=0,renderSelection:h=xO,renderSuggestion:_=vO,id:F,checkbox:c=!1,expandedItems:m=[],onItemExpanded:A=()=>{},nestedData:p=!1,captureTextOnBlur:w=!1,popperEnabled:b=!1,behaveAs:y="select",suggestionsTestId:k="multiselect-listbox-test",variant:C=W5.BASIC,hideSearchInput:v=!1,hideInputCaret:E=!1,alwaysDisplayInput:D=!1,actions:S,infiniteLoaderProps:P,ariaDescribedBy:U,buttonOpenLabel:I,buttonClosedLabel:q,...T}){const N=zs(F,k,y),H=N("listbox");M.useEffect(()=>s(n),[n]);const $=M.useMemo(()=>SO(t),[t]),x=()=>{const B=BO(n);if(!(!f||!B)){if(f){const G={id:N(B),text:B};l(G)}o("")}},L=B=>{switch(B.key){case"Enter":case",":{x(),B.preventDefault();break}case"Backspace":if(B.target instanceof HTMLInputElement&&B.target.selectionEnd)return;u();break}},Q=S&&g.jsx("div",{className:zt.actions,children:S});return g.jsx(H1,{...T,label:T.label||" ",inputId:F,tooltipId:U,renderControl:({labelId:B,errorId:G,helperTextId:ee,...V})=>g.jsx(u2,{hideInputCaret:E,isMultiSelect:!0,popperEnabled:b,skipEventHandlers:!!p,wrapperStyle:{position:"relative"},items:t,value:n||"",getItemValue:({text:X})=>X,"aria-labelledby":B,"aria-describedby":`${G} ${ee}`,buttonOpenLabel:I,buttonClosedLabel:q,inputProps:{...V,onKeyDown:L,onFocus:()=>a(!0),onBlur:()=>{w&&x(),a(!1)}},onChange:(X,J)=>o(J),onSelect:(X,J)=>l(J),renderInput:({ref:X,highlightedIndex:J,...re})=>g.jsx(yO,{inputRef:X,hideSearchInput:v,selectedItems:e,maxSelections:d,inputProps:re,onRemoveSelection:O=>l(O),renderSelection:h,suggestionsOpen:i,alwaysDisplayInput:D,ariaDescribedBy:U,listId:H,highlightedIndex:J}),renderItem:(X,J,re,O)=>_({item:X,isHighlighted:J,currentInputValue:n,isItemSelectable:!0,checkbox:c,originalItems:$,expandedItems:m,onItemExpanded:A,selectedItems:e,onSelectionChange:ne=>{l(ne),o("")},nestedData:p,behaveAsAFilter:y==="filter",variant:C,listId:H,index:O}),renderMenu:X=>X.length===0&&r?g.jsx(DO,{emptySuggestionsComponent:r,listId:H,popperEnabled:b}):g.jsxs("div",{className:pe(zt["suggestions-box"],{[zt["suggestions-box--hide-search"]]:v,[zt["suggestions-box--with-items"]]:!!t.length,[zt["suggestions-box--nested"]]:p,[zt["suggestions-box--no-popper"]]:!b}),children:[g.jsxs("ul",{className:zt["suggestions-list"],"data-testid":k,role:"listbox",id:H,children:[X,!!P&&g.jsx(N5,{...P})]}),Q]}),keepInputAfterSelection:!0,open:i&&(t.length>0||r)&&(d?e.length<d:!0)})})}const Aa={defaultText:"#333",asphalt:"#727272",night:"#333",brandSecondary:"#22abf3",pool:"#22abf3",lemon:"#f8f042",spinach:"#227c31",frost:"#a8f1f3",systemRed:"#f3224d",systemGreen:"#00a861",systemYellow:"#ffc20e",systemDefault:"#2a5cdb",snow:"#fff",transparentBlack:"rgba(0, 0, 0, 0.65)",brandPrimary:"#227c31",KWBrandPrimary:"#227c31",kwBrandPrimary:"#227c31",KWBrandSecondary:"#22abf3",kwBrandSecondary:"#22abf3",KWBrandSalmon:"#ff9676",kwBrandSalmon:"#ff9676",KWBrandFrost:"#a7f1f3",kwBrandFrost:"#a7f1f3",KWBrandPlum:"#702278",kwBrandPlum:"#702278",KWBrandLemon:"#f8f042",kwBrandLemon:"#f8f042",KWBrandSunrise:"#ffb400",kwBrandSunrise:"#ffb400",KWBrandLatte:"#d5b591",kwBrandLatte:"#d5b591",systemBlue:"#2a5cdb",systemBlueLight:"#eef2fc",systemBlueLightest:"#f4f7fd",systemBlueDark:"#1b409e",systemWarning:"#f3224d",systemWarningLight:"#fee9ed",systemWarningDark:"#d61e44",systemSuccess:"#00a861",systemSuccessLight:"#e6f6ef",systemSuccessDark:"#027946",systemInfo:"#863dff",systemInfoLight:"white",systemInfoDark:"#4700bd",systemWarn:"#f6be45",systemWarnLight:"white",systemWarnDark:"#b37d09",systemOptimistic:"#fd5d4b",systemOptimisticLight:"white",systemOptimisticDark:"#c61602",systemNavGray:"#191919",systemGray1:"#333",systemGray2:"#666",systemGray3:"#949494",systemGray4:"#aaaaaa",systemGray5:"#c6c6c6",systemGray6:"#f1f1f1",white:"#fff",workTangoPurple:"#524fef",workTangoLightPurple:"#c3d4ff",workTangoLightAqua:"#a5fcec",bodyScrollbarDisplayNone:"bodyScrollbarDisplayNone",wrapper:"Radio-module_wrapper_TwD4L",wrapperOthers:"Radio-module_wrapperOthers_mKjMh",wrapperInput:"Radio-module_wrapperInput_Ce8D4",wrapperText:"Radio-module_wrapperText_4HCUu",label:"Radio-module_label_HBbTD","radio-isgrouped":"Radio-module_radio-isgrouped_YzURm",radioIsgrouped:"Radio-module_radio-isgrouped_YzURm",input:"Radio-module_input_qMA8v","wrapper--small":"Radio-module_wrapper--small_ko45q",wrapperSmall:"Radio-module_wrapper--small_ko45q","wrapper--xsmall":"Radio-module_wrapper--xsmall_A9ZJC",wrapperXsmall:"Radio-module_wrapper--xsmall_A9ZJC","helper-row":"Radio-module_helper-row_DkotE",helperRow:"Radio-module_helper-row_DkotE","helper-text":"Radio-module_helper-text_MqVAa",helperText:"Radio-module_helper-text_MqVAa","helper-text-disabled":"Radio-module_helper-text-disabled_Pn-pQ",helperTextDisabled:"Radio-module_helper-text-disabled_Pn-pQ",radioSpace:"Radio-module_radioSpace_srE11",radio:"Radio-module_radio_7QXpU",radioContent:"Radio-module_radioContent_dCCDc",horizontal:"Radio-module_horizontal_9nrw2","group-of-radios":"Radio-module_group-of-radios_LQopG",groupOfRadios:"Radio-module_group-of-radios_LQopG","group-helper-text":"Radio-module_group-helper-text_t8yKS",groupHelperText:"Radio-module_group-helper-text_t8yKS","group-helper-text--error":"Radio-module_group-helper-text--error_Va-UH",groupHelperTextError:"Radio-module_group-helper-text--error_Va-UH",error:"Radio-module_error_MSJfL"},Gh={XSMALL:"extra-small",SMALL:"small",REGULAR:"regular"};function Cn({checked:t,className:e,disabled:i,helperText:a,id:r,label:n,name:o,onChange:s=Ei,size:l=Gh.SMALL,hasError:u,"data-testid":f}){const d=typeof n=="string",h=pe({[Aa.wrapperText]:d,[Aa.wrapperOthers]:!d},{[Aa["wrapper--xsmall"]]:l===Gh.XSMALL,[Aa["wrapper--small"]]:l===Gh.SMALL},e),_=Aa.wrapperInput,F=pe({[Aa.error]:u},Aa.radio);return g.jsxs("div",{"data-testid":"wrapper-label",className:h,children:[g.jsxs("div",{className:_,children:[g.jsx("input",{type:"radio",className:Aa.input,checked:t,disabled:i,id:String(r),"data-testid":f,name:o,onChange:()=>s(r)}),g.jsx("span",{className:F}),g.jsx("label",{"data-testid":"radio-label",className:Aa.label,htmlFor:String(r),children:n})]}),a&&g.jsx("div",{className:pe(Aa["helper-row"],{[Aa["helper-text-disabled"]]:i}),"data-testid":"radio-helper-text",children:a})]})}Cn.displayName="Radio",Cn.SIZES=Gh;function Vh({content:t,classNameString:e}){return t?g.jsx(Dt,{size:"paragraphXsmall",paragraph:!0,className:Aa[e],children:t}):null}function Kh({children:t,error:e,selected:i,onChange:a,horizontal:r,label:n,disabled:o,helperText:s,"data-testid":l="confetti-radio-group",optionalLabelText:u,fieldsetVariant:f,tooltip:d}){const h=M.Children.count(t)-1,_=pe({[Aa.horizontal]:r,[Aa["group-of-radios"]]:n}),F=()=>M.Children.map(t,(p,w)=>{if(!M.isValidElement(p))return p;const b=!!p.props.helperText,y=w===h,k=pe(p.props.className,{[Aa.radioSpace]:!y&&!b},Aa["radio-isgrouped"]),C=p.props["data-testid"]?p.props["data-testid"]:`${l}-${w}`,v=p.type;return!v.displayName||v.displayName!=="Radio"?M.cloneElement(p):M.cloneElement(p,{disabled:o,checked:p.props.id===i,onChange:E=>E!==i&&a(E),className:k,"data-testid":C,hasError:e?String(e).trim()!=="":!1})}),c=e?String(e):void 0,m=d||void 0,A=u&&typeof u=="string"?u:void 0;return n?g.jsxs(jM,{"data-testid":l,label:n,disabled:o,legendType:"radiogroup",optionalLabelText:A,variant:f,tooltip:m,children:[g.jsxs(ot,{alignItems:"center",children:[e&&g.jsxs(g.Fragment,{children:[g.jsxs(T1,{children:[g.jsx(Ut,{icon:"warning",size:12,color:Aa.systemRed}),g.jsx(qt,{size:"small"})]}),g.jsx(qt,{size:"tiny",orientation:"horizontal"})]}),g.jsx(Vh,{content:c,classNameString:"group-helper-text--error"})]}),g.jsx(Vh,{content:s,classNameString:"group-helper-text"}),g.jsx("div",{className:_,children:F()})]}):g.jsxs("div",{"data-testid":l,children:[g.jsxs(ot,{alignItems:"center",children:[e&&g.jsxs(g.Fragment,{children:[g.jsxs(T1,{children:[g.jsx(Ut,{icon:"warning",size:12,color:Aa.systemRed}),g.jsx(qt,{size:"small"})]}),g.jsx(qt,{size:"tiny",orientation:"horizontal"})]}),g.jsx(Vh,{content:c,classNameString:"group-helper-text--error"})]}),g.jsx(Vh,{content:s,classNameString:"group-helper-text"}),g.jsx("div",{className:_,children:F()})]})}var Xh={exports:{}},LO=Xh.exports,V5;function MO(){return V5||(V5=1,function(t,e){(function(i,a){t.exports=a()})(LO,function(){return function(i,a,r){a.prototype.isToday=function(){var n="YYYY-MM-DD",o=r();return this.format(n)===o.format(n)}}})}(Xh)),Xh.exports}var OO=MO();const qO=Ni(OO);At.extend(mc),At.extend(qO),At.extend(dh);function TO({amLabel:t,pmLabel:e}){const a=new Date;a.setMinutes(a.getMinutes()+30);const r=new Date(Math.round(a.getTime()/18e5)*18e5);let n=r.getHours(),o=r.getMinutes(),s=t;return n>12&&(n-=12,s=e),n===0&&(n=12),o=o<=9?`0${o}`:o,n=n<=9?`0${n}`:n,`${n}:${o} ${s}`}TO({amLabel:"AM",pmLabel:"PM"});const h2={toastOverlay:"Toast-module_toastOverlay_lb2Vi",toast:"Toast-module_toast_KdaTa",going:"Toast-module_going_rPoCP"};function Yh({variant:t="info",text:e,content:i,className:a,dismiss:r,going:n=!1,...o}){return g.jsx("div",{"data-testid":"toast",role:"status",className:pe(h2.toast,a,{[h2.going]:n}),...o,children:g.jsx(Pj,{variant:t,onDismiss:r,text:e,children:i})})}function IO(t){return g.jsx("div",{...t,id:"toast-overlay","data-testid":"toast-overlay",className:h2.toastOverlay})}let PO=0;const HO=5e3,Ys={ERROR:0,INFO:1,SUCCESS:2,WARNING:3};function UO(){const t=document.querySelectorAll(":hover");for(let e=0;e<t.length;e++)if(t[e].getAttribute("id")==="toast-overlay")return!0;return!1}function RO(t){if(!yn())return M.createContext(t);window.kazoo||(window.kazoo={});const e=window.kazoo.toastContext;return e||(window.kazoo.toastContext=M.createContext(t),window.kazoo.toastContext)}const Zh=()=>{throw new Error("You tried to call a Toast placeholder function, meaning the Toast hasn't been set in the context. Did you forget to setup the Toast provider? Or maybe you meant to mock this function?")},K5=RO({error:Zh,info:Zh,success:Zh,warning:Zh}),g2=()=>M.useContext(K5);function Jh(t,e,i,a){e(r=>[...r,{id:PO++,type:t,content:i,timeout:a,going:!1,shownTime:Date.now()}])}function QO(t,e){t(i=>i.filter(a=>a.id!==e))}function NO(t,e,i){Jh(Ys.SUCCESS,t,e,i)}function $O(t,e){Jh(Ys.WARNING,t,e)}function zO(t,e){Jh(Ys.ERROR,t,e)}function WO(t,e,i){Jh(Ys.INFO,t,e,i)}function GO({children:t,defaultTimeout:e=HO,text:i=void 0}){const[a,r]=M.useState([]);M.useEffect(()=>{if(!yn())return;const f=setInterval(()=>{const d=Date.now(),h=UO();let _=!1;const F=a.filter(c=>!c.going).map(c=>(h||c.timeout&&d-c.shownTime>c.timeout&&(c.going=!0,_=!0),c));h&&F.forEach((c,m)=>F[m].shownTime+=600),(_||F.length!==a.length)&&r(F)},500);return()=>{clearInterval(f)}},[a]);const n=M.useCallback(f=>zO(r,f),[r]),o=M.useCallback((f,d=e)=>WO(r,f,d),[r,e]),s=M.useCallback((f,d=e)=>NO(r,f,d),[r,e]),l=M.useCallback(f=>$O(r,f),[r]),u=M.useMemo(()=>({error:n,info:o,success:s,warning:l}),[n,o,s,l]);return g.jsxs(K5.Provider,{value:u,children:[g.jsx(IO,{children:a.map(f=>{const d={content:f.content,text:i,dismiss:()=>QO(r,f.id),going:f.going,key:f.id,timeout:f.timeout,type:f.type};switch(f.type){case Ys.ERROR:return g.jsx(Yh,{variant:"warning",...d});case Ys.SUCCESS:return g.jsx(Yh,{variant:"success",...d});case Ys.WARNING:return g.jsx(Yh,{variant:"warning",...d});default:return g.jsx(Yh,{variant:"info",...d})}})}),t]})}const Zs={wrapper:"Toggle-module_wrapper_vJZtf",toggle:"Toggle-module_toggle_FfRqj",iconToggle:"Toggle-module_iconToggle_q7snx",onIcon:"Toggle-module_onIcon_H3o6M",offIcon:"Toggle-module_offIcon_f-JIQ",bubble:"Toggle-module_bubble_sOF6n"};function X5({id:t="",label:e="",onChange:i,onToggleChange:a,autoSave:r=!1,disabled:n=!1,checked:o=!1,savedLabel:s="Saved",statusOn:l=void 0,statusOff:u=void 0,"data-testid":f,inert:d=!1}){const h=Dh(),[_,F]=M.useState(!1),c=M.useCallback(p=>{const w=p.currentTarget;if(p.key==="Enter"||p.key==="Space"){w.checked=!w.checked;const b={...p,target:w};m(b)}},[]),m=M.useCallback(p=>{const w=i(p);typeof w=="object"&&"then"in w&&w.then(()=>{!h()||!r||F(!0)}),a&&a(p.target.checked)},[r,i,a]);M.useEffect(()=>{if(!_)return;const p=setInterval(Wr(F,!1),1e3);return()=>clearInterval(p)},[_]);const A=o?l:u;return d===!0?g.jsx("div",{className:pe(Zs.wrapper),"data-testid":`${f}-disabled`,children:g.jsxs(ot,{children:[g.jsx(Ut,{icon:"lock",size:16,variant:"filled",color:"#949494"}),g.jsx(Dt,{size:"small","data-testid":`${f}-icon-text`,children:o?"ON":"OFF"})]})}):g.jsxs("div",{className:pe(Zs.wrapper,{[Zs.onIcon]:o,[Zs.offIcon]:!o,[Zs.iconToggle]:A}),children:[g.jsxs("label",{"data-testid":`${f}-lbl`,htmlFor:t,children:[g.jsx("span",{className:"screen-reader-only",children:e}),A,g.jsx("input",{id:t,"data-testid":`${f}-chk`,className:Zs.toggle,type:"checkbox",tabIndex:0,checked:o,disabled:n,onChange:m,onKeyUp:c})]}),r&&_?g.jsx("span",{className:Zs.bubble,"data-testid":`${f}-bubble`,children:s}):null]})}M.createContext(null);var _2="http://www.w3.org/1999/xhtml";const Y5={svg:"http://www.w3.org/2000/svg",xhtml:_2,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function eg(t){var e=t+="",i=e.indexOf(":");return i>=0&&(e=t.slice(0,i))!=="xmlns"&&(t=t.slice(i+1)),Y5.hasOwnProperty(e)?{space:Y5[e],local:t}:t}function VO(t){return function(){var e=this.ownerDocument,i=this.namespaceURI;return i===_2&&e.documentElement.namespaceURI===_2?e.createElement(t):e.createElementNS(i,t)}}function KO(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Z5(t){var e=eg(t);return(e.local?KO:VO)(e)}function XO(){}function c2(t){return t==null?XO:function(){return this.querySelector(t)}}function YO(t){typeof t!="function"&&(t=c2(t));for(var e=this._groups,i=e.length,a=new Array(i),r=0;r<i;++r)for(var n=e[r],o=n.length,s=a[r]=new Array(o),l,u,f=0;f<o;++f)(l=n[f])&&(u=t.call(l,l.__data__,f,n))&&("__data__"in l&&(u.__data__=l.__data__),s[f]=u);return new Yr(a,this._parents)}function J5(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function ZO(){return[]}function e9(t){return t==null?ZO:function(){return this.querySelectorAll(t)}}function JO(t){return function(){var e=t.apply(this,arguments);return e==null?[]:J5(e)}}function eq(t){typeof t=="function"?t=JO(t):t=e9(t);for(var e=this._groups,i=e.length,a=[],r=[],n=0;n<i;++n)for(var o=e[n],s=o.length,l,u=0;u<s;++u)(l=o[u])&&(a.push(t.call(l,l.__data__,u,o)),r.push(l));return new Yr(a,r)}function t9(t){return function(){return this.matches(t)}}function i9(t){return function(e){return e.matches(t)}}var tq=Array.prototype.find;function iq(t){return function(){return tq.call(this.children,t)}}function aq(){return this.firstElementChild}function rq(t){return this.select(t==null?aq:iq(typeof t=="function"?t:i9(t)))}var nq=Array.prototype.filter;function oq(){return this.children}function sq(t){return function(){return nq.call(this.children,t)}}function lq(t){return this.selectAll(t==null?oq:sq(typeof t=="function"?t:i9(t)))}function uq(t){typeof t!="function"&&(t=t9(t));for(var e=this._groups,i=e.length,a=new Array(i),r=0;r<i;++r)for(var n=e[r],o=n.length,s=a[r]=[],l,u=0;u<o;++u)(l=n[u])&&t.call(l,l.__data__,u,n)&&s.push(l);return new Yr(a,this._parents)}function a9(t){return new Array(t.length)}function fq(){return new Yr(this._enter||this._groups.map(a9),this._parents)}function tg(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}tg.prototype={constructor:tg,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function dq(t){return function(){return t}}function hq(t,e,i,a,r,n){for(var o=0,s,l=e.length,u=n.length;o<u;++o)(s=e[o])?(s.__data__=n[o],a[o]=s):i[o]=new tg(t,n[o]);for(;o<l;++o)(s=e[o])&&(r[o]=s)}function gq(t,e,i,a,r,n,o){var s,l,u=new Map,f=e.length,d=n.length,h=new Array(f),_;for(s=0;s<f;++s)(l=e[s])&&(h[s]=_=o.call(l,l.__data__,s,e)+"",u.has(_)?r[s]=l:u.set(_,l));for(s=0;s<d;++s)_=o.call(t,n[s],s,n)+"",(l=u.get(_))?(a[s]=l,l.__data__=n[s],u.delete(_)):i[s]=new tg(t,n[s]);for(s=0;s<f;++s)(l=e[s])&&u.get(h[s])===l&&(r[s]=l)}function _q(t){return t.__data__}function cq(t,e){if(!arguments.length)return Array.from(this,_q);var i=e?gq:hq,a=this._parents,r=this._groups;typeof t!="function"&&(t=dq(t));for(var n=r.length,o=new Array(n),s=new Array(n),l=new Array(n),u=0;u<n;++u){var f=a[u],d=r[u],h=d.length,_=J5(t.call(f,f&&f.__data__,u,a)),F=_.length,c=s[u]=new Array(F),m=o[u]=new Array(F),A=l[u]=new Array(h);i(f,d,c,m,A,_,e);for(var p=0,w=0,b,y;p<F;++p)if(b=c[p]){for(p>=w&&(w=p+1);!(y=m[w])&&++w<F;);b._next=y||null}}return o=new Yr(o,a),o._enter=s,o._exit=l,o}function Fq(){return new Yr(this._exit||this._groups.map(a9),this._parents)}function mq(t,e,i){var a=this.enter(),r=this,n=this.exit();return a=typeof t=="function"?t(a):a.append(t+""),e!=null&&(r=e(r)),i==null?n.remove():i(n),a&&r?a.merge(r).order():r}function Aq(t){if(!(t instanceof Yr))throw new Error("invalid merge");for(var e=this._groups,i=t._groups,a=e.length,r=i.length,n=Math.min(a,r),o=new Array(a),s=0;s<n;++s)for(var l=e[s],u=i[s],f=l.length,d=o[s]=new Array(f),h,_=0;_<f;++_)(h=l[_]||u[_])&&(d[_]=h);for(;s<a;++s)o[s]=e[s];return new Yr(o,this._parents)}function pq(){for(var t=this._groups,e=-1,i=t.length;++e<i;)for(var a=t[e],r=a.length-1,n=a[r],o;--r>=0;)(o=a[r])&&(n&&o.compareDocumentPosition(n)^4&&n.parentNode.insertBefore(o,n),n=o);return this}function bq(t){t||(t=yq);function e(d,h){return d&&h?t(d.__data__,h.__data__):!d-!h}for(var i=this._groups,a=i.length,r=new Array(a),n=0;n<a;++n){for(var o=i[n],s=o.length,l=r[n]=new Array(s),u,f=0;f<s;++f)(u=o[f])&&(l[f]=u);l.sort(e)}return new Yr(r,this._parents).order()}function yq(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function wq(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function kq(){return Array.from(this)}function xq(){for(var t=this._groups,e=0,i=t.length;e<i;++e)for(var a=t[e],r=0,n=a.length;r<n;++r){var o=a[r];if(o)return o}return null}function Cq(){let t=0;for(const e of this)++t;return t}function vq(){return!this.node()}function Dq(t){for(var e=this._groups,i=0,a=e.length;i<a;++i)for(var r=e[i],n=0,o=r.length,s;n<o;++n)(s=r[n])&&t.call(s,s.__data__,n,r);return this}function Eq(t){return function(){this.removeAttribute(t)}}function Bq(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Sq(t,e){return function(){this.setAttribute(t,e)}}function jq(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Lq(t,e){return function(){var i=e.apply(this,arguments);i==null?this.removeAttribute(t):this.setAttribute(t,i)}}function Mq(t,e){return function(){var i=e.apply(this,arguments);i==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,i)}}function Oq(t,e){var i=eg(t);if(arguments.length<2){var a=this.node();return i.local?a.getAttributeNS(i.space,i.local):a.getAttribute(i)}return this.each((e==null?i.local?Bq:Eq:typeof e=="function"?i.local?Mq:Lq:i.local?jq:Sq)(i,e))}function r9(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function qq(t){return function(){this.style.removeProperty(t)}}function Tq(t,e,i){return function(){this.style.setProperty(t,e,i)}}function Iq(t,e,i){return function(){var a=e.apply(this,arguments);a==null?this.style.removeProperty(t):this.style.setProperty(t,a,i)}}function Pq(t,e,i){return arguments.length>1?this.each((e==null?qq:typeof e=="function"?Iq:Tq)(t,e,i??"")):fu(this.node(),t)}function fu(t,e){return t.style.getPropertyValue(e)||r9(t).getComputedStyle(t,null).getPropertyValue(e)}function Hq(t){return function(){delete this[t]}}function Uq(t,e){return function(){this[t]=e}}function Rq(t,e){return function(){var i=e.apply(this,arguments);i==null?delete this[t]:this[t]=i}}function Qq(t,e){return arguments.length>1?this.each((e==null?Hq:typeof e=="function"?Rq:Uq)(t,e)):this.node()[t]}function n9(t){return t.trim().split(/^|\s+/)}function F2(t){return t.classList||new o9(t)}function o9(t){this._node=t,this._names=n9(t.getAttribute("class")||"")}o9.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function s9(t,e){for(var i=F2(t),a=-1,r=e.length;++a<r;)i.add(e[a])}function l9(t,e){for(var i=F2(t),a=-1,r=e.length;++a<r;)i.remove(e[a])}function Nq(t){return function(){s9(this,t)}}function $q(t){return function(){l9(this,t)}}function zq(t,e){return function(){(e.apply(this,arguments)?s9:l9)(this,t)}}function Wq(t,e){var i=n9(t+"");if(arguments.length<2){for(var a=F2(this.node()),r=-1,n=i.length;++r<n;)if(!a.contains(i[r]))return!1;return!0}return this.each((typeof e=="function"?zq:e?Nq:$q)(i,e))}function Gq(){this.textContent=""}function Vq(t){return function(){this.textContent=t}}function Kq(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function Xq(t){return arguments.length?this.each(t==null?Gq:(typeof t=="function"?Kq:Vq)(t)):this.node().textContent}function Yq(){this.innerHTML=""}function Zq(t){return function(){this.innerHTML=t}}function Jq(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function eT(t){return arguments.length?this.each(t==null?Yq:(typeof t=="function"?Jq:Zq)(t)):this.node().innerHTML}function tT(){this.nextSibling&&this.parentNode.appendChild(this)}function iT(){return this.each(tT)}function aT(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function rT(){return this.each(aT)}function nT(t){var e=typeof t=="function"?t:Z5(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function oT(){return null}function sT(t,e){var i=typeof t=="function"?t:Z5(t),a=e==null?oT:typeof e=="function"?e:c2(e);return this.select(function(){return this.insertBefore(i.apply(this,arguments),a.apply(this,arguments)||null)})}function lT(){var t=this.parentNode;t&&t.removeChild(this)}function uT(){return this.each(lT)}function fT(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function dT(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function hT(t){return this.select(t?dT:fT)}function gT(t){return arguments.length?this.property("__data__",t):this.node().__data__}function _T(t){return function(e){t.call(this,e,this.__data__)}}function cT(t){return t.trim().split(/^|\s+/).map(function(e){var i="",a=e.indexOf(".");return a>=0&&(i=e.slice(a+1),e=e.slice(0,a)),{type:e,name:i}})}function FT(t){return function(){var e=this.__on;if(e){for(var i=0,a=-1,r=e.length,n;i<r;++i)n=e[i],(!t.type||n.type===t.type)&&n.name===t.name?this.removeEventListener(n.type,n.listener,n.options):e[++a]=n;++a?e.length=a:delete this.__on}}}function mT(t,e,i){return function(){var a=this.__on,r,n=_T(e);if(a){for(var o=0,s=a.length;o<s;++o)if((r=a[o]).type===t.type&&r.name===t.name){this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=n,r.options=i),r.value=e;return}}this.addEventListener(t.type,n,i),r={type:t.type,name:t.name,value:e,listener:n,options:i},a?a.push(r):this.__on=[r]}}function AT(t,e,i){var a=cT(t+""),r,n=a.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var l=0,u=s.length,f;l<u;++l)for(r=0,f=s[l];r<n;++r)if((o=a[r]).type===f.type&&o.name===f.name)return f.value}return}for(s=e?mT:FT,r=0;r<n;++r)this.each(s(a[r],e,i));return this}function u9(t,e,i){var a=r9(t),r=a.CustomEvent;typeof r=="function"?r=new r(e,i):(r=a.document.createEvent("Event"),i?(r.initEvent(e,i.bubbles,i.cancelable),r.detail=i.detail):r.initEvent(e,!1,!1)),t.dispatchEvent(r)}function pT(t,e){return function(){return u9(this,t,e)}}function bT(t,e){return function(){return u9(this,t,e.apply(this,arguments))}}function yT(t,e){return this.each((typeof e=="function"?bT:pT)(t,e))}function*wT(){for(var t=this._groups,e=0,i=t.length;e<i;++e)for(var a=t[e],r=0,n=a.length,o;r<n;++r)(o=a[r])&&(yield o)}var kT=[null];function Yr(t,e){this._groups=t,this._parents=e}function X1(){return new Yr([[document.documentElement]],kT)}function xT(){return this}Yr.prototype=X1.prototype={constructor:Yr,select:YO,selectAll:eq,selectChild:rq,selectChildren:lq,filter:uq,data:cq,enter:fq,exit:Fq,join:mq,merge:Aq,selection:xT,order:pq,sort:bq,call:wq,nodes:kq,node:xq,size:Cq,empty:vq,each:Dq,attr:Oq,style:Pq,property:Qq,classed:Wq,text:Xq,html:eT,raise:iT,lower:rT,append:nT,insert:sT,remove:uT,clone:hT,datum:gT,on:AT,dispatch:yT,[Symbol.iterator]:wT};var CT={value:()=>{}};function f9(){for(var t=0,e=arguments.length,i={},a;t<e;++t){if(!(a=arguments[t]+"")||a in i||/[\s.]/.test(a))throw new Error("illegal type: "+a);i[a]=[]}return new ig(i)}function ig(t){this._=t}function vT(t,e){return t.trim().split(/^|\s+/).map(function(i){var a="",r=i.indexOf(".");if(r>=0&&(a=i.slice(r+1),i=i.slice(0,r)),i&&!e.hasOwnProperty(i))throw new Error("unknown type: "+i);return{type:i,name:a}})}ig.prototype=f9.prototype={constructor:ig,on:function(t,e){var i=this._,a=vT(t+"",i),r,n=-1,o=a.length;if(arguments.length<2){for(;++n<o;)if((r=(t=a[n]).type)&&(r=DT(i[r],t.name)))return r;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++n<o;)if(r=(t=a[n]).type)i[r]=d9(i[r],t.name,e);else if(e==null)for(r in i)i[r]=d9(i[r],t.name,null);return this},copy:function(){var t={},e=this._;for(var i in e)t[i]=e[i].slice();return new ig(t)},call:function(t,e){if((r=arguments.length-2)>0)for(var i=new Array(r),a=0,r,n;a<r;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(n=this._[t],a=0,r=n.length;a<r;++a)n[a].value.apply(e,i)},apply:function(t,e,i){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var a=this._[t],r=0,n=a.length;r<n;++r)a[r].value.apply(e,i)}};function DT(t,e){for(var i=0,a=t.length,r;i<a;++i)if((r=t[i]).name===e)return r.value}function d9(t,e,i){for(var a=0,r=t.length;a<r;++a)if(t[a].name===e){t[a]=CT,t=t.slice(0,a).concat(t.slice(a+1));break}return i!=null&&t.push({name:e,value:i}),t}var du=0,Y1=0,Z1=0,h9=1e3,ag,J1,rg=0,Js=0,ng=0,ef=typeof performance=="object"&&performance.now?performance:Date,g9=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function m2(){return Js||(g9(ET),Js=ef.now()+ng)}function ET(){Js=0}function og(){this._call=this._time=this._next=null}og.prototype=_9.prototype={constructor:og,restart:function(t,e,i){if(typeof t!="function")throw new TypeError("callback is not a function");i=(i==null?m2():+i)+(e==null?0:+e),!this._next&&J1!==this&&(J1?J1._next=this:ag=this,J1=this),this._call=t,this._time=i,A2()},stop:function(){this._call&&(this._call=null,this._time=1/0,A2())}};function _9(t,e,i){var a=new og;return a.restart(t,e,i),a}function BT(){m2(),++du;for(var t=ag,e;t;)(e=Js-t._time)>=0&&t._call.call(null,e),t=t._next;--du}function c9(){Js=(rg=ef.now())+ng,du=Y1=0;try{BT()}finally{du=0,jT(),Js=0}}function ST(){var t=ef.now(),e=t-rg;e>h9&&(ng-=e,rg=t)}function jT(){for(var t,e=ag,i,a=1/0;e;)e._call?(a>e._time&&(a=e._time),t=e,e=e._next):(i=e._next,e._next=null,e=t?t._next=i:ag=i);J1=t,A2(a)}function A2(t){if(!du){Y1&&(Y1=clearTimeout(Y1));var e=t-Js;e>24?(t<1/0&&(Y1=setTimeout(c9,t-ef.now()-ng)),Z1&&(Z1=clearInterval(Z1))):(Z1||(rg=ef.now(),Z1=setInterval(ST,h9)),du=1,g9(c9))}}function F9(t,e,i){var a=new og;return e=e==null?0:+e,a.restart(r=>{a.stop(),t(r+e)},e,i),a}var LT=f9("start","end","cancel","interrupt"),MT=[],m9=0,A9=1,p2=2,sg=3,p9=4,b2=5,lg=6;function ug(t,e,i,a,r,n){var o=t.__transition;if(!o)t.__transition={};else if(i in o)return;OT(t,i,{name:e,index:a,group:r,on:LT,tween:MT,time:n.time,delay:n.delay,duration:n.duration,ease:n.ease,timer:null,state:m9})}function y2(t,e){var i=vn(t,e);if(i.state>m9)throw new Error("too late; already scheduled");return i}function Yn(t,e){var i=vn(t,e);if(i.state>sg)throw new Error("too late; already running");return i}function vn(t,e){var i=t.__transition;if(!i||!(i=i[e]))throw new Error("transition not found");return i}function OT(t,e,i){var a=t.__transition,r;a[e]=i,i.timer=_9(n,0,i.time);function n(u){i.state=A9,i.timer.restart(o,i.delay,i.time),i.delay<=u&&o(u-i.delay)}function o(u){var f,d,h,_;if(i.state!==A9)return l();for(f in a)if(_=a[f],_.name===i.name){if(_.state===sg)return F9(o);_.state===p9?(_.state=lg,_.timer.stop(),_.on.call("interrupt",t,t.__data__,_.index,_.group),delete a[f]):+f<e&&(_.state=lg,_.timer.stop(),_.on.call("cancel",t,t.__data__,_.index,_.group),delete a[f])}if(F9(function(){i.state===sg&&(i.state=p9,i.timer.restart(s,i.delay,i.time),s(u))}),i.state=p2,i.on.call("start",t,t.__data__,i.index,i.group),i.state===p2){for(i.state=sg,r=new Array(h=i.tween.length),f=0,d=-1;f<h;++f)(_=i.tween[f].value.call(t,t.__data__,i.index,i.group))&&(r[++d]=_);r.length=d+1}}function s(u){for(var f=u<i.duration?i.ease.call(null,u/i.duration):(i.timer.restart(l),i.state=b2,1),d=-1,h=r.length;++d<h;)r[d].call(t,f);i.state===b2&&(i.on.call("end",t,t.__data__,i.index,i.group),l())}function l(){i.state=lg,i.timer.stop(),delete a[e];for(var u in a)return;delete t.__transition}}function qT(t,e){var i=t.__transition,a,r,n=!0,o;if(i){e=e==null?null:e+"";for(o in i){if((a=i[o]).name!==e){n=!1;continue}r=a.state>p2&&a.state<b2,a.state=lg,a.timer.stop(),a.on.call(r?"interrupt":"cancel",t,t.__data__,a.index,a.group),delete i[o]}n&&delete t.__transition}}function TT(t){return this.each(function(){qT(this,t)})}function w2(t,e,i){t.prototype=e.prototype=i,i.constructor=t}function b9(t,e){var i=Object.create(t.prototype);for(var a in e)i[a]=e[a];return i}function tf(){}var af=.7,fg=1/af,hu="\\s*([+-]?\\d+)\\s*",rf="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Zn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",IT=/^#([0-9a-f]{3,8})$/,PT=new RegExp("^rgb\\("+[hu,hu,hu]+"\\)$"),HT=new RegExp("^rgb\\("+[Zn,Zn,Zn]+"\\)$"),UT=new RegExp("^rgba\\("+[hu,hu,hu,rf]+"\\)$"),RT=new RegExp("^rgba\\("+[Zn,Zn,Zn,rf]+"\\)$"),QT=new RegExp("^hsl\\("+[rf,Zn,Zn]+"\\)$"),NT=new RegExp("^hsla\\("+[rf,Zn,Zn,rf]+"\\)$"),y9={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};w2(tf,nf,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:w9,formatHex:w9,formatHsl:$T,formatRgb:k9,toString:k9});function w9(){return this.rgb().formatHex()}function $T(){return E9(this).formatHsl()}function k9(){return this.rgb().formatRgb()}function nf(t){var e,i;return t=(t+"").trim().toLowerCase(),(e=IT.exec(t))?(i=e[1].length,e=parseInt(e[1],16),i===6?x9(e):i===3?new Or(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):i===8?dg(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):i===4?dg(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=PT.exec(t))?new Or(e[1],e[2],e[3],1):(e=HT.exec(t))?new Or(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=UT.exec(t))?dg(e[1],e[2],e[3],e[4]):(e=RT.exec(t))?dg(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=QT.exec(t))?D9(e[1],e[2]/100,e[3]/100,1):(e=NT.exec(t))?D9(e[1],e[2]/100,e[3]/100,e[4]):y9.hasOwnProperty(t)?x9(y9[t]):t==="transparent"?new Or(NaN,NaN,NaN,0):null}function x9(t){return new Or(t>>16&255,t>>8&255,t&255,1)}function dg(t,e,i,a){return a<=0&&(t=e=i=NaN),new Or(t,e,i,a)}function zT(t){return t instanceof tf||(t=nf(t)),t?(t=t.rgb(),new Or(t.r,t.g,t.b,t.opacity)):new Or}function k2(t,e,i,a){return arguments.length===1?zT(t):new Or(t,e,i,a??1)}function Or(t,e,i,a){this.r=+t,this.g=+e,this.b=+i,this.opacity=+a}w2(Or,k2,b9(tf,{brighter:function(t){return t=t==null?fg:Math.pow(fg,t),new Or(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=t==null?af:Math.pow(af,t),new Or(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:C9,formatHex:C9,formatRgb:v9,toString:v9}));function C9(){return"#"+x2(this.r)+x2(this.g)+x2(this.b)}function v9(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(t===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(t===1?")":", "+t+")")}function x2(t){return t=Math.max(0,Math.min(255,Math.round(t)||0)),(t<16?"0":"")+t.toString(16)}function D9(t,e,i,a){return a<=0?t=e=i=NaN:i<=0||i>=1?t=e=NaN:e<=0&&(t=NaN),new Jn(t,e,i,a)}function E9(t){if(t instanceof Jn)return new Jn(t.h,t.s,t.l,t.opacity);if(t instanceof tf||(t=nf(t)),!t)return new Jn;if(t instanceof Jn)return t;t=t.rgb();var e=t.r/255,i=t.g/255,a=t.b/255,r=Math.min(e,i,a),n=Math.max(e,i,a),o=NaN,s=n-r,l=(n+r)/2;return s?(e===n?o=(i-a)/s+(i<a)*6:i===n?o=(a-e)/s+2:o=(e-i)/s+4,s/=l<.5?n+r:2-n-r,o*=60):s=l>0&&l<1?0:o,new Jn(o,s,l,t.opacity)}function WT(t,e,i,a){return arguments.length===1?E9(t):new Jn(t,e,i,a??1)}function Jn(t,e,i,a){this.h=+t,this.s=+e,this.l=+i,this.opacity=+a}w2(Jn,WT,b9(tf,{brighter:function(t){return t=t==null?fg:Math.pow(fg,t),new Jn(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=t==null?af:Math.pow(af,t),new Jn(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,a=i+(i<.5?i:1-i)*e,r=2*i-a;return new Or(C2(t>=240?t-240:t+120,r,a),C2(t,r,a),C2(t<120?t+240:t-120,r,a),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(t===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(t===1?")":", "+t+")")}}));function C2(t,e,i){return(t<60?e+(i-e)*t/60:t<180?i:t<240?e+(i-e)*(240-t)/60:e)*255}const B9=t=>()=>t;function GT(t,e){return function(i){return t+i*e}}function VT(t,e,i){return t=Math.pow(t,i),e=Math.pow(e,i)-t,i=1/i,function(a){return Math.pow(t+a*e,i)}}function KT(t){return(t=+t)==1?S9:function(e,i){return i-e?VT(e,i,t):B9(isNaN(e)?i:e)}}function S9(t,e){var i=e-t;return i?GT(t,i):B9(isNaN(t)?e:t)}const j9=function t(e){var i=KT(e);function a(r,n){var o=i((r=k2(r)).r,(n=k2(n)).r),s=i(r.g,n.g),l=i(r.b,n.b),u=S9(r.opacity,n.opacity);return function(f){return r.r=o(f),r.g=s(f),r.b=l(f),r.opacity=u(f),r+""}}return a.gamma=t,a}(1);function os(t,e){return t=+t,e=+e,function(i){return t*(1-i)+e*i}}var v2=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,D2=new RegExp(v2.source,"g");function XT(t){return function(){return t}}function YT(t){return function(e){return t(e)+""}}function ZT(t,e){var i=v2.lastIndex=D2.lastIndex=0,a,r,n,o=-1,s=[],l=[];for(t=t+"",e=e+"";(a=v2.exec(t))&&(r=D2.exec(e));)(n=r.index)>i&&(n=e.slice(i,n),s[o]?s[o]+=n:s[++o]=n),(a=a[0])===(r=r[0])?s[o]?s[o]+=r:s[++o]=r:(s[++o]=null,l.push({i:o,x:os(a,r)})),i=D2.lastIndex;return i<e.length&&(n=e.slice(i),s[o]?s[o]+=n:s[++o]=n),s.length<2?l[0]?YT(l[0].x):XT(e):(e=l.length,function(u){for(var f=0,d;f<e;++f)s[(d=l[f]).i]=d.x(u);return s.join("")})}var L9=180/Math.PI,E2={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function M9(t,e,i,a,r,n){var o,s,l;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(l=t*i+e*a)&&(i-=t*l,a-=e*l),(s=Math.sqrt(i*i+a*a))&&(i/=s,a/=s,l/=s),t*a<e*i&&(t=-t,e=-e,l=-l,o=-o),{translateX:r,translateY:n,rotate:Math.atan2(e,t)*L9,skewX:Math.atan(l)*L9,scaleX:o,scaleY:s}}var hg;function JT(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?E2:M9(e.a,e.b,e.c,e.d,e.e,e.f)}function eI(t){return t==null||(hg||(hg=document.createElementNS("http://www.w3.org/2000/svg","g")),hg.setAttribute("transform",t),!(t=hg.transform.baseVal.consolidate()))?E2:(t=t.matrix,M9(t.a,t.b,t.c,t.d,t.e,t.f))}function O9(t,e,i,a){function r(u){return u.length?u.pop()+" ":""}function n(u,f,d,h,_,F){if(u!==d||f!==h){var c=_.push("translate(",null,e,null,i);F.push({i:c-4,x:os(u,d)},{i:c-2,x:os(f,h)})}else(d||h)&&_.push("translate("+d+e+h+i)}function o(u,f,d,h){u!==f?(u-f>180?f+=360:f-u>180&&(u+=360),h.push({i:d.push(r(d)+"rotate(",null,a)-2,x:os(u,f)})):f&&d.push(r(d)+"rotate("+f+a)}function s(u,f,d,h){u!==f?h.push({i:d.push(r(d)+"skewX(",null,a)-2,x:os(u,f)}):f&&d.push(r(d)+"skewX("+f+a)}function l(u,f,d,h,_,F){if(u!==d||f!==h){var c=_.push(r(_)+"scale(",null,",",null,")");F.push({i:c-4,x:os(u,d)},{i:c-2,x:os(f,h)})}else(d!==1||h!==1)&&_.push(r(_)+"scale("+d+","+h+")")}return function(u,f){var d=[],h=[];return u=t(u),f=t(f),n(u.translateX,u.translateY,f.translateX,f.translateY,d,h),o(u.rotate,f.rotate,d,h),s(u.skewX,f.skewX,d,h),l(u.scaleX,u.scaleY,f.scaleX,f.scaleY,d,h),u=f=null,function(_){for(var F=-1,c=h.length,m;++F<c;)d[(m=h[F]).i]=m.x(_);return d.join("")}}}var tI=O9(JT,"px, ","px)","deg)"),iI=O9(eI,", ",")",")");function aI(t,e){var i,a;return function(){var r=Yn(this,t),n=r.tween;if(n!==i){a=i=n;for(var o=0,s=a.length;o<s;++o)if(a[o].name===e){a=a.slice(),a.splice(o,1);break}}r.tween=a}}function rI(t,e,i){var a,r;if(typeof i!="function")throw new Error;return function(){var n=Yn(this,t),o=n.tween;if(o!==a){r=(a=o).slice();for(var s={name:e,value:i},l=0,u=r.length;l<u;++l)if(r[l].name===e){r[l]=s;break}l===u&&r.push(s)}n.tween=r}}function nI(t,e){var i=this._id;if(t+="",arguments.length<2){for(var a=vn(this.node(),i).tween,r=0,n=a.length,o;r<n;++r)if((o=a[r]).name===t)return o.value;return null}return this.each((e==null?aI:rI)(i,t,e))}function B2(t,e,i){var a=t._id;return t.each(function(){var r=Yn(this,a);(r.value||(r.value={}))[e]=i.apply(this,arguments)}),function(r){return vn(r,a).value[e]}}function q9(t,e){var i;return(typeof e=="number"?os:e instanceof nf?j9:(i=nf(e))?(e=i,j9):ZT)(t,e)}function oI(t){return function(){this.removeAttribute(t)}}function sI(t){return function(){this.removeAttributeNS(t.space,t.local)}}function lI(t,e,i){var a,r=i+"",n;return function(){var o=this.getAttribute(t);return o===r?null:o===a?n:n=e(a=o,i)}}function uI(t,e,i){var a,r=i+"",n;return function(){var o=this.getAttributeNS(t.space,t.local);return o===r?null:o===a?n:n=e(a=o,i)}}function fI(t,e,i){var a,r,n;return function(){var o,s=i(this),l;return s==null?void this.removeAttribute(t):(o=this.getAttribute(t),l=s+"",o===l?null:o===a&&l===r?n:(r=l,n=e(a=o,s)))}}function dI(t,e,i){var a,r,n;return function(){var o,s=i(this),l;return s==null?void this.removeAttributeNS(t.space,t.local):(o=this.getAttributeNS(t.space,t.local),l=s+"",o===l?null:o===a&&l===r?n:(r=l,n=e(a=o,s)))}}function hI(t,e){var i=eg(t),a=i==="transform"?iI:q9;return this.attrTween(t,typeof e=="function"?(i.local?dI:fI)(i,a,B2(this,"attr."+t,e)):e==null?(i.local?sI:oI)(i):(i.local?uI:lI)(i,a,e))}function gI(t,e){return function(i){this.setAttribute(t,e.call(this,i))}}function _I(t,e){return function(i){this.setAttributeNS(t.space,t.local,e.call(this,i))}}function cI(t,e){var i,a;function r(){var n=e.apply(this,arguments);return n!==a&&(i=(a=n)&&_I(t,n)),i}return r._value=e,r}function FI(t,e){var i,a;function r(){var n=e.apply(this,arguments);return n!==a&&(i=(a=n)&&gI(t,n)),i}return r._value=e,r}function mI(t,e){var i="attr."+t;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(e==null)return this.tween(i,null);if(typeof e!="function")throw new Error;var a=eg(t);return this.tween(i,(a.local?cI:FI)(a,e))}function AI(t,e){return function(){y2(this,t).delay=+e.apply(this,arguments)}}function pI(t,e){return e=+e,function(){y2(this,t).delay=e}}function bI(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?AI:pI)(e,t)):vn(this.node(),e).delay}function yI(t,e){return function(){Yn(this,t).duration=+e.apply(this,arguments)}}function wI(t,e){return e=+e,function(){Yn(this,t).duration=e}}function kI(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?yI:wI)(e,t)):vn(this.node(),e).duration}function xI(t,e){if(typeof e!="function")throw new Error;return function(){Yn(this,t).ease=e}}function CI(t){var e=this._id;return arguments.length?this.each(xI(e,t)):vn(this.node(),e).ease}function vI(t,e){return function(){var i=e.apply(this,arguments);if(typeof i!="function")throw new Error;Yn(this,t).ease=i}}function DI(t){if(typeof t!="function")throw new Error;return this.each(vI(this._id,t))}function EI(t){typeof t!="function"&&(t=t9(t));for(var e=this._groups,i=e.length,a=new Array(i),r=0;r<i;++r)for(var n=e[r],o=n.length,s=a[r]=[],l,u=0;u<o;++u)(l=n[u])&&t.call(l,l.__data__,u,n)&&s.push(l);return new bo(a,this._parents,this._name,this._id)}function BI(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,i=t._groups,a=e.length,r=i.length,n=Math.min(a,r),o=new Array(a),s=0;s<n;++s)for(var l=e[s],u=i[s],f=l.length,d=o[s]=new Array(f),h,_=0;_<f;++_)(h=l[_]||u[_])&&(d[_]=h);for(;s<a;++s)o[s]=e[s];return new bo(o,this._parents,this._name,this._id)}function SI(t){return(t+"").trim().split(/^|\s+/).every(function(e){var i=e.indexOf(".");return i>=0&&(e=e.slice(0,i)),!e||e==="start"})}function jI(t,e,i){var a,r,n=SI(e)?y2:Yn;return function(){var o=n(this,t),s=o.on;s!==a&&(r=(a=s).copy()).on(e,i),o.on=r}}function LI(t,e){var i=this._id;return arguments.length<2?vn(this.node(),i).on.on(t):this.each(jI(i,t,e))}function MI(t){return function(){var e=this.parentNode;for(var i in this.__transition)if(+i!==t)return;e&&e.removeChild(this)}}function OI(){return this.on("end.remove",MI(this._id))}function qI(t){var e=this._name,i=this._id;typeof t!="function"&&(t=c2(t));for(var a=this._groups,r=a.length,n=new Array(r),o=0;o<r;++o)for(var s=a[o],l=s.length,u=n[o]=new Array(l),f,d,h=0;h<l;++h)(f=s[h])&&(d=t.call(f,f.__data__,h,s))&&("__data__"in f&&(d.__data__=f.__data__),u[h]=d,ug(u[h],e,i,h,u,vn(f,i)));return new bo(n,this._parents,e,i)}function TI(t){var e=this._name,i=this._id;typeof t!="function"&&(t=e9(t));for(var a=this._groups,r=a.length,n=[],o=[],s=0;s<r;++s)for(var l=a[s],u=l.length,f,d=0;d<u;++d)if(f=l[d]){for(var h=t.call(f,f.__data__,d,l),_,F=vn(f,i),c=0,m=h.length;c<m;++c)(_=h[c])&&ug(_,e,i,c,h,F);n.push(h),o.push(f)}return new bo(n,o,e,i)}var II=X1.prototype.constructor;function PI(){return new II(this._groups,this._parents)}function HI(t,e){var i,a,r;return function(){var n=fu(this,t),o=(this.style.removeProperty(t),fu(this,t));return n===o?null:n===i&&o===a?r:r=e(i=n,a=o)}}function T9(t){return function(){this.style.removeProperty(t)}}function UI(t,e,i){var a,r=i+"",n;return function(){var o=fu(this,t);return o===r?null:o===a?n:n=e(a=o,i)}}function RI(t,e,i){var a,r,n;return function(){var o=fu(this,t),s=i(this),l=s+"";return s==null&&(l=s=(this.style.removeProperty(t),fu(this,t))),o===l?null:o===a&&l===r?n:(r=l,n=e(a=o,s))}}function QI(t,e){var i,a,r,n="style."+e,o="end."+n,s;return function(){var l=Yn(this,t),u=l.on,f=l.value[n]==null?s||(s=T9(e)):void 0;(u!==i||r!==f)&&(a=(i=u).copy()).on(o,r=f),l.on=a}}function NI(t,e,i){var a=(t+="")=="transform"?tI:q9;return e==null?this.styleTween(t,HI(t,a)).on("end.style."+t,T9(t)):typeof e=="function"?this.styleTween(t,RI(t,a,B2(this,"style."+t,e))).each(QI(this._id,t)):this.styleTween(t,UI(t,a,e),i).on("end.style."+t,null)}function $I(t,e,i){return function(a){this.style.setProperty(t,e.call(this,a),i)}}function zI(t,e,i){var a,r;function n(){var o=e.apply(this,arguments);return o!==r&&(a=(r=o)&&$I(t,o,i)),a}return n._value=e,n}function WI(t,e,i){var a="style."+(t+="");if(arguments.length<2)return(a=this.tween(a))&&a._value;if(e==null)return this.tween(a,null);if(typeof e!="function")throw new Error;return this.tween(a,zI(t,e,i??""))}function GI(t){return function(){this.textContent=t}}function VI(t){return function(){var e=t(this);this.textContent=e??""}}function KI(t){return this.tween("text",typeof t=="function"?VI(B2(this,"text",t)):GI(t==null?"":t+""))}function XI(t){return function(e){this.textContent=t.call(this,e)}}function YI(t){var e,i;function a(){var r=t.apply(this,arguments);return r!==i&&(e=(i=r)&&XI(r)),e}return a._value=t,a}function ZI(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,YI(t))}function JI(){for(var t=this._name,e=this._id,i=I9(),a=this._groups,r=a.length,n=0;n<r;++n)for(var o=a[n],s=o.length,l,u=0;u<s;++u)if(l=o[u]){var f=vn(l,e);ug(l,t,i,u,o,{time:f.time+f.delay+f.duration,delay:0,duration:f.duration,ease:f.ease})}return new bo(a,this._parents,t,i)}function eP(){var t,e,i=this,a=i._id,r=i.size();return new Promise(function(n,o){var s={value:o},l={value:function(){--r===0&&n()}};i.each(function(){var u=Yn(this,a),f=u.on;f!==t&&(e=(t=f).copy(),e._.cancel.push(s),e._.interrupt.push(s),e._.end.push(l)),u.on=e}),r===0&&n()})}var tP=0;function bo(t,e,i,a){this._groups=t,this._parents=e,this._name=i,this._id=a}function I9(){return++tP}var el=X1.prototype;bo.prototype={constructor:bo,select:qI,selectAll:TI,filter:EI,merge:BI,selection:PI,transition:JI,call:el.call,nodes:el.nodes,node:el.node,size:el.size,empty:el.empty,each:el.each,on:LI,attr:hI,attrTween:mI,style:NI,styleTween:WI,text:KI,textTween:ZI,remove:OI,tween:nI,delay:bI,duration:kI,ease:CI,easeVarying:DI,end:eP,[Symbol.iterator]:el[Symbol.iterator]};function iP(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var aP={time:null,delay:0,duration:250,ease:iP};function rP(t,e){for(var i;!(i=t.__transition)||!(i=i[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return i}function nP(t){var e,i;t instanceof bo?(e=t._id,t=t._name):(e=I9(),(i=aP).time=m2(),t=t==null?null:t+"");for(var a=this._groups,r=a.length,n=0;n<r;++n)for(var o=a[n],s=o.length,l,u=0;u<s;++u)(l=o[u])&&ug(l,t,e,u,o,i||rP(l,e));return new bo(a,this._parents,t,e)}X1.prototype.interrupt=TT,X1.prototype.transition=nP,M.createContext({data:[],chartDescription:"",yAxisLabel:"",margin:{top:0,right:0,bottom:0,left:0},dimensions:{width:0,height:0},svgRef:{current:null}});const tl={tabs:"Tabs-module_tabs_kOc8X","tabs-filled":"Tabs-module_tabs-filled_FSlrb",enableResponsiveSelect:"Tabs-module_enableResponsiveSelect_ujx-m",embeddedInCard:"Tabs-module_embeddedInCard_THXGW",tabs_select:"Tabs-module_tabs_select_V0sry",tabs_select_trigger:"Tabs-module_tabs_select_trigger_TY1OK",tabs_select_menu:"Tabs-module_tabs_select_menu_Guz9G"};function oP({children:t,value:e,className:i,responsiveDropdown:a=!0,responsiveDropdownClassName:r,style:n="default",embeddedInCard:o=!1,onChange:s}){const l=m=>{s==null||s(m)},u=({value:m})=>{s==null||s(m)},f=pe(i,{[tl.tabs]:n==="compact"||n==="default",[tl["tabs-filled"]]:n==="filled",[tl.enableResponsiveSelect]:a}),d=pe(i,{[tl.tabs_select]:!0,[tl.embeddedInCard]:o}),h=pe(i,tl.tabs_select_trigger,r),_=pe(i,tl.tabs_select_menu),F=M.Children.map(t,m=>{if(M.isValidElement(m))return M.cloneElement(m,{onClick:l,active:e===m.props.value,style:n})}),c=M.Children.map(t,m=>{if(M.isValidElement(m)){const{children:A,value:p,disabled:w}=m.props;return{label:A,value:p,disabled:w}}});return g.jsxs(g.Fragment,{children:[g.jsx("div",{className:f,role:"tablist","aria-orientation":"horizontal",children:F}),a&&g.jsx("div",{className:d,role:"tablist",children:g.jsx(T5,{"data-testid":"tabs-select",options:Ze(c,[]),onChange:u,selectedOptionValue:e,triggerClassName:h,menuClassName:_})})]})}const of={tab:"Tab-module_tab_Gs-G1","tab--compact":"Tab-module_tab--compact_KFjXU","tab--active":"Tab-module_tab--active_4hYQV","tab-filled":"Tab-module_tab-filled_PQeOI","tab-filled--active":"Tab-module_tab-filled--active_tsKdF"};function P9({active:t=!1,children:e,disabled:i=!1,href:a,onClick:r=Ei,value:n,style:o="default","data-testid":s}){const l=()=>{r(n)},u=a&&!i?"a":"button",f=o==="compact"||o==="default"?pe(of.tab,{[of["tab--active"]]:t,[of["tab--compact"]]:o==="compact"}):pe(of["tab-filled"],{[of["tab-filled--active"]]:t});return g.jsx(u,{"aria-selected":t,className:f,disabled:i,href:a,onClick:l,role:"tab","data-testid":s,type:"button",children:e})}function il(t){"@babel/helpers - typeof";return il=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},il(t)}function sP(t,e){if(il(t)!=="object"||t===null)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var a=i.call(t,e);if(il(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function H9(t){var e=sP(t,"string");return il(e)==="symbol"?e:String(e)}function al(t,e,i){return e=H9(e),e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var S2="Invariant Violation",U9=Object.setPrototypeOf,lP=U9===void 0?function(t,e){return t.__proto__=e,t}:U9,Jt=function(t){Dr(e,t);function e(i){i===void 0&&(i=S2);var a=t.call(this,typeof i=="number"?S2+": "+i+" (see https://github.com/apollographql/invariant-packages)":i)||this;return a.framesToPop=1,a.name=S2,lP(a,e.prototype),a}return e}(Error);function Le(t,e){if(!t)throw new Jt(e)}var R9=["debug","log","warn","error","silent"],uP=R9.indexOf("log");function gg(t){return function(){if(R9.indexOf(t)>=uP){var e=console[t]||console.log;return e.apply(console,arguments)}}}(function(t){t.debug=gg("debug"),t.log=gg("log"),t.warn=gg("warn"),t.error=gg("error")})(Le||(Le={}));function Zr(t){try{return t()}catch{}}const Q9=Zr(function(){return globalThis})||Zr(function(){return window})||Zr(function(){return self})||Zr(function(){return global})||Zr(function(){return Zr.constructor("return this")()});var N9="__",$9=[N9,N9].join("DEV");function fP(){try{return!!__DEV__}catch{return Object.defineProperty(Q9,$9,{value:Zr(function(){return process.env.NODE_ENV})!=="production",enumerable:!1,configurable:!0,writable:!0}),Q9[$9]}}const j2=fP();function ss(t){try{return t()}catch{}}var L2=ss(function(){return globalThis})||ss(function(){return window})||ss(function(){return self})||ss(function(){return global})||ss(function(){return ss.constructor("return this")()}),M2=!1;function dP(){L2&&!ss(function(){return process.env.NODE_ENV})&&!ss(function(){return process})&&(Object.defineProperty(L2,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),M2=!0)}dP();function z9(){M2&&(delete L2.process,M2=!1)}function _g(t,e){if(!!!t)throw new Error(e)}function hP(t){return typeof t=="object"&&t!==null}function gP(t,e){if(!!!t)throw new Error("Unexpected invariant triggered.")}const _P=/\r\n|[\n\r]/g;function O2(t,e){let i=0,a=1;for(const r of t.body.matchAll(_P)){if(typeof r.index=="number"||gP(!1),r.index>=e)break;i=r.index+r[0].length,a+=1}return{line:a,column:e+1-i}}function cP(t){return W9(t.source,O2(t.source,t.start))}function W9(t,e){const i=t.locationOffset.column-1,a="".padStart(i)+t.body,r=e.line-1,n=t.locationOffset.line-1,o=e.line+n,s=e.line===1?i:0,l=e.column+s,u=`${t.name}:${o}:${l}
|
|
91
|
+
`+JSON.stringify(C))}Object.defineProperty(r,"__esModule",{value:!0});var f=Object.assign||function(C){for(var v=1;v<arguments.length;v++){var E=arguments[v];for(var D in E)Object.prototype.hasOwnProperty.call(E,D)&&(C[D]=E[D])}return C},d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(C){return typeof C}:function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C};r.default=s;var h=n(4),_=o(h),F=n(3),c=o(F),m=n(2),A=n(1),p="",w="none",b="object",y=typeof navigator<"u"&&/Android/i.test(navigator.userAgent),k=typeof requestAnimationFrame<"u"?requestAnimationFrame:setTimeout},function(a,r){function n(s){return function(){return s}}var o=function(){};o.thatReturns=n,o.thatReturnsFalse=n(!1),o.thatReturnsTrue=n(!0),o.thatReturnsNull=n(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(s){return s},a.exports=o},function(a,r,n){function o(s,l,u,f,d,h,_,F){if(!s){var c;if(l===void 0)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var m=[u,f,d,h,_,F],A=0;c=new Error(l.replace(/%s/g,function(){return m[A++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}}a.exports=o},function(a,r,n){var o=n(6),s=n(7),l=n(10);a.exports=function(){function u(h,_,F,c,m,A){A!==l&&s(!1,"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")}function f(){return u}u.isRequired=u;var d={array:u,bool:u,func:u,number:u,object:u,string:u,symbol:u,any:u,arrayOf:f,element:u,instanceOf:f,node:u,objectOf:f,oneOf:f,oneOfType:f,shape:f,exact:f};return d.checkPropTypes=o,d.PropTypes=d,d}},function(a,r,n){a.exports=n(8)()},function(a,r){var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";a.exports=n},function(a,r){a.exports=i}])})}(Nh)),Nh.exports}var uO=lO();const fO=Ni(uO);function dO({onBlur:t,setSaved:e,className:i,compact:a,disabled:r,error:n,fullWidth:o=!0,inputOnly:s,keepCharPositions:l,mask:u,placeholderChar:f,onChange:d,type:h,rightSideText:_,removeNonNumCharacters:F=!1,...c}){const m=b=>{let y=b.target.value;if(h==="number"){const k=Number(y);if(!y||isNaN(k)||c.value===y)return;d(k)}else F&&y&&(y=_S(y)),d(y)},A=pe(Ci.input,i,{[Ci["input--compact"]]:a,[Ci["input--disabled"]]:r,[Ci["input--error"]]:n,[Ci["input--full-width"]]:o,[Ci["input--input-only"]]:s,[Ci["input--right-side-text"]]:_}),p=F?Ze(c.value,"").toString():c.value,w={...c,value:p,type:h,className:_?Ci["input-right-side-text-input"]:A,disabled:r,onChange:m,onBlur:async b=>{t&&await t(b),e(!0)}};return _?g.jsxs("div",{className:A,children:[g.jsx(R5,{...w,placeholderChar:f,keepCharPositions:l,mask:u}),g.jsx("span",{className:Ci["input-right-side-text"],children:_})]}):g.jsx(R5,{...w,placeholderChar:f,keepCharPositions:l,mask:u})}function R5({placeholderChar:t,keepCharPositions:e,mask:i,...a}){return i?g.jsx(fO,{...a,placeholderChar:t,keepCharPositions:e,mask:i}):g.jsx("input",{...a})}function K1({autoSave:t=!1,savedLabel:e="SAVED",onBlur:i,disabled:a,error:r,fullWidth:n,helperText:o,id:s,label:l,required:u,optionalLabelText:f,maxLengthAbove:d,maxLengthText:h,numeric:_,numericText:F,icon:c,iconPosition:m="left",iconColor:A="#949494",iconSize:p=16,className:w,tooltip:b,rightSideText:y,type:k,value:C,onChange:v,...E}){const[D,S]=M.useState(!1);M.useEffect(()=>{const q=setTimeout(()=>{D&&S(!1)},2e3);return()=>clearTimeout(q)},[D]);const P=pe({[Ci["with-icon"]]:!!c}),U=pe(Ci["icon-wrapper"],{[Ci["icon-left"]]:!!c&&m==="left"}),I=pe(w,{[Ci["with-icon--left"]]:c&&m==="left",[Ci["with-icon--right"]]:c&&m==="right"});return g.jsx(H1,{tooltip:b,numeric:_,numericText:F,disabled:a,maxLengthAbove:d,error:r,helperText:o,inputId:s,fullWidth:n,value:C,label:t?D?g.jsx("span",{className:pe([Ci.bubble,Ci.bubbleBackground]),children:e}):g.jsx("span",{className:Ci.bubble}):l,maxLengthText:h,required:u,optionalLabelText:f,className:w,...E,renderControl:()=>g.jsxs("div",{className:P,children:[c&&g.jsx("div",{className:U,children:g.jsx(Ut,{icon:c,size:p,className:Ci["icon-button"],color:A})}),g.jsx(dO,{className:I,disabled:a,error:r,id:s,required:u,onBlur:i,setSaved:S,rightSideText:y,type:k,onChange:v,value:C,...k==="number"&&{onWheel:q=>q.currentTarget.blur()},...E})]})})}const $h={"popper-wrapper":"Autocomplete-module_popper-wrapper_YE8zw","relative-wrapper":"Autocomplete-module_relative-wrapper_A73-W","full-width":"Autocomplete-module_full-width_Le2Fg","trigger-button-icon":"Autocomplete-module_trigger-button-icon_-UYTC"};function hO(){return{x:window.scrollX,y:window.scrollY}}const zo=class zo extends M.Component{constructor(e){super(e),this._refs={},this._ignoreBlur=!1,this._ignoreFocus=!1,this._scrollOffset=null,this._scrollTimer=null,this._actionButtonEnabled=!0,this.handleMenuTouchStart=()=>{this._ignoreBlur=!0},this.handleMenuMouseEnter=()=>{this._ignoreBlur=!0},this.handleMenuMouseLeave=()=>{this._ignoreBlur=!1},this.state={isOpen:!1,highlightedIndex:e.defaultHighlightedIndex||null},this.ensureHighlightedIndex=this.ensureHighlightedIndex.bind(this),this.exposeAPI=this.exposeAPI.bind(this),this.handleInputFocus=this.handleInputFocus.bind(this),this.handleInputBlur=this.handleInputBlur.bind(this),this.handleChange=this.handleChange.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleInputClick=this.handleInputClick.bind(this),this.maybeHighlightClosestMatch=this.maybeHighlightClosestMatch.bind(this)}componentWillUnmount(){this._scrollTimer&&(clearTimeout(this._scrollTimer),this._scrollTimer=null)}componentDidMount(){this.isOpen()&&this.setMenuPositions()}componentDidUpdate(e,i){var a,r;(this.state.isOpen&&!i.isOpen||"open"in this.props&&this.props.open&&!e.open)&&this.setMenuPositions(),i.isOpen!==this.state.isOpen&&((r=(a=this.props).onMenuVisibilityChange)==null||r.call(a,this.state.isOpen),this.maybeHighlightClosestMatch()),this.ensureHighlightedIndex()}exposeAPI(e){this._refs.input=e,e&&(typeof e.blur=="function"&&(this.blur=e.blur.bind(e)),typeof e.checkValidity=="function"&&(this.checkValidity=e.checkValidity.bind(e)),typeof e.click=="function"&&(this.click=e.click.bind(e)),typeof e.focus=="function"&&(this.focus=e.focus.bind(e)),typeof e.select=="function"&&(this.select=e.select.bind(e)),typeof e.setCustomValidity=="function"&&(this.setCustomValidity=e.setCustomValidity.bind(e)),typeof e.setSelectionRange=="function"&&(this.setSelectionRange=e.setSelectionRange.bind(e)),typeof e.setRangeText=="function"&&(this.setRangeText=e.setRangeText.bind(e)))}handleKeyDown(e){if((a=>a in zo.keyDownHandlers)(e.key)){this._ignoreBlur=!0,zo.keyDownHandlers[e.key].call(this,e);return}this.isOpen()||this.setState({isOpen:!0}),this.maybeHighlightClosestMatch(),this.ensureHighlightedIndex()}handleChange(e){var i,a;(a=(i=this.props).onChange)==null||a.call(i,e,e.target.value)}scrollNodeIntoView(e){const i=this._refs.menu;if(!i)return;const a=i.scrollTop+i.clientHeight;if(e.offsetTop>=a){const r=e.offsetTop+e.offsetHeight;i.scrollTop+=r-a}e.offsetTop<i.scrollTop&&(i.scrollTop=e.offsetTop)}getFilteredItems(){let e=this.props.items;return this.props.shouldItemRender&&(e=e.filter(i=>{var a,r;return Ze((r=(a=this.props).shouldItemRender)==null?void 0:r.call(a,i,Ze(this.props.value,"")),!0)})),this.props.sortItems&&e.sort((i,a)=>{var r,n;return Ze((n=(r=this.props).sortItems)==null?void 0:n.call(r,i,a,this.props.value||""),0)}),e}maybeHighlightClosestMatch(){var o,s;const{highlightedIndex:e}=this.state,{value:i,getItemValue:a}=this.props,r=this.getFilteredItems();if(i==="")return;let n=e;for(let l=0;l<r.length;l++){if(!((s=(o=this.props).isItemSelectable)!=null&&s.call(o,r[l])))continue;if(a(r[l]).toLowerCase().indexOf(Ze(i,"").toLowerCase())===0){n=l;break}}return this.setState({highlightedIndex:n})}ensureHighlightedIndex(){this.state.highlightedIndex&&this.state.highlightedIndex>=this.getFilteredItems().length&&this.setState({highlightedIndex:null})}setMenuPositions(){const e=this._refs.input;if(!e)return;const i=e.getBoundingClientRect(),a=window.getComputedStyle(e),r=parseInt(a.marginBottom,10)||0,n=parseInt(a.marginLeft,10)||0,o=parseInt(a.marginRight,10)||0;this.setState({menuTop:i.bottom+r,menuLeft:i.left+n,menuWidth:i.width+n+o})}highlightItemFromMouse(e){this.setState({highlightedIndex:e})}selectItemFromMouse(e){const i=this.props.getItemValue(e);this._ignoreBlur=this.props.keepInputAfterSelection||!1,this.setState({isOpen:this.props.keepInputAfterSelection||!1,highlightedIndex:null},()=>{var a,r;(r=(a=this.props).onSelect)==null||r.call(a,i,e)})}renderMenu(){var r,n;const e=this.getFilteredItems().map((o,s)=>{var f,d,h,_;const l=this.props.renderItem(o,this.state.highlightedIndex===s,{cursor:"default",currentInputValue:this.props.value||""},s);if(!l||!M.isValidElement(l))return null;let u={};return this.props.skipEventHandlers||(u={onMouseEnter:(d=(f=this.props).isItemSelectable)!=null&&d.call(f,o)?()=>this.highlightItemFromMouse(s):null,onClick:(_=(h=this.props).isItemSelectable)!=null&&_.call(h,o)?()=>this.selectItemFromMouse(o):null}),M.cloneElement(l,{...u,ref:F=>this._refs[`item-${s}`]=F})}).filter(o=>o!==null),i={left:this.state.menuLeft,top:this.state.menuTop,minWidth:this.state.menuWidth},a=Ze((n=(r=this.props).renderMenu)==null?void 0:n.call(r,e,Ze(this.props.value,""),i),zo.defaultProps.renderMenu(e,this.props.value||"",i));return M.cloneElement(a,{ref:o=>this._refs.menu=o,onTouchStart:this.handleMenuTouchStart,onMouseEnter:this.handleMenuMouseEnter,onMouseLeave:this.handleMenuMouseLeave})}handleInputBlur(e){var n;if(this._scrollTimer&&clearTimeout(this._scrollTimer),this._ignoreBlur){this._ignoreFocus=!0,this._scrollOffset=hO(),(n=this._refs.input)==null||n.focus();return}document.getElementById("multiselect-caret-btn")===(e==null?void 0:e.relatedTarget)&&(this._actionButtonEnabled=!1);let i;const{highlightedIndex:a}=this.state;if(this.props.selectOnBlur&&a!==null){const s=this.getFilteredItems()[a],l=this.props.getItemValue(s);i=()=>{var u,f;return(f=(u=this.props).onSelect)==null?void 0:f.call(u,l,s)}}this.setState({isOpen:!1,highlightedIndex:null},i);const{onBlur:r}=Ze(this.props.inputProps,{});r&&r(e)}handleInputFocus(e){if(this._ignoreFocus){this._ignoreFocus=!1;const{x:a,y:r}=this._scrollOffset||{x:0,y:0};this._scrollOffset=null,window.scrollTo(a,r),this._scrollTimer&&clearTimeout(this._scrollTimer),this._scrollTimer=setTimeout(()=>{this._scrollTimer=null,window.scrollTo(a,r)},0);return}this.setState({isOpen:!0});const{onFocus:i}=Ze(this.props.inputProps,{});i&&i(e)}isInputFocused(){const e=this._refs.input;return!!(e!=null&&e.ownerDocument&&e===e.ownerDocument.activeElement)}handleInputClick(){this.isInputFocused()&&!this.isOpen()&&this.setState({isOpen:!0})}composeEventHandlers(e,i){return i?a=>{e(a),a.defaultPrevented||i(a)}:e}isOpen(){return"open"in this.props?!!this.props.open:this.state.isOpen}renderButton(){const{isMultiSelect:e,buttonOpenLabel:i,buttonClosedLabel:a}=this.props;if(!e||this.props.hideInputCaret)return null;const r=this.isOpen()?"caret_up":"caret_dn",n=()=>{var o;this._actionButtonEnabled?(o=this._refs.input)==null||o.focus():this._actionButtonEnabled=!0};return g.jsx($i,{id:"multiselect-caret-btn","data-testid":"multiselect-caret-btn-test",type:"button",icon:r,size:"default",className:$h["trigger-button-icon"],color:"#666",onClick:n,"aria-label":this.isOpen()?i:a,title:this.isOpen()?i:a})}render(){const{inputProps:e,renderInput:i,value:a,popperEnabled:r,wrapperStyle:n,wrapperProps:o,renderInPortal:s}=this.props,l=this.isOpen();!l&&this._ignoreBlur&&(this._ignoreBlur=!1);const f=(i||zo.defaultProps.renderInput)({...e,"aria-autocomplete":"list",autoComplete:"off",ref:this.exposeAPI,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur,onChange:this.handleChange,onKeyDown:this.composeEventHandlers(this.handleKeyDown,e==null?void 0:e.onKeyDown),onClick:this.composeEventHandlers(this.handleInputClick,e==null?void 0:e.onClick),highlightedIndex:this.state.highlightedIndex,value:a||""});if(!f)return g.jsx("input",{...e,value:a||""});const d=pe(n,o,{[$h["popper-wrapper"]]:r,[$h["relative-wrapper"]]:!r});return r?g.jsx(g.Fragment,{children:g.jsx(mo,{isOpen:l,parent:f,popoverComponent:this.renderMenu(),className:d,position:"bottom","data-testid":"meatBallMenu-popover",popperProps:{className:$h["full-width"],sameWidth:!0,renderInPortal:s}})}):g.jsxs("div",{className:d,children:[f,this.renderButton(),l&&this.renderMenu()]})}};zo.displayName="Autocomplete",zo.defaultProps={value:"",wrapperProps:{},wrapperStyle:{display:"inline-block"},inputProps:{},renderInput({highlightedIndex:e,...i}){return g.jsx("input",{...i})},onChange(){},isItemSelectable(){return!0},renderMenu(e,i,a){return g.jsx("div",{style:{...a,...this.menuStyle},"data-testid":"autocomplete-menu",children:e})},menuStyle:{borderRadius:"3px",boxShadow:"0 2px 12px rgba(0, 0, 0, 0.1)",background:"rgba(255, 255, 255, 0.9)",padding:"2px 0",fontSize:"90%",position:"fixed",overflow:"auto",maxHeight:"50%"},selectOnBlur:!1,onMenuVisibilityChange(){},keepInputAfterSelection:!1,skipEventHandlers:!1,popperEnabled:!1,hideInputCaret:!1,buttonOpenLabel:"Open",buttonClosedLabel:"Closed",renderInPortal:!0},zo.keyDownHandlers={ArrowDown(e){var n,o;e.preventDefault();const i=this.getFilteredItems();if(!i.length)return;const{highlightedIndex:a}=this.state;let r=a===null?-1:a;for(let s=0;s<i.length;s++){const l=(r+s+1)%i.length;if((o=(n=this.props).isItemSelectable)!=null&&o.call(n,i[l])){r=l;break}}if(r>-1&&r!==a){const s=this._refs[`item-${r}`];s&&this.scrollNodeIntoView(s),this.setState({highlightedIndex:r,isOpen:!0})}},ArrowUp(e){var n,o;e.preventDefault();const i=this.getFilteredItems();if(!i.length)return;const{highlightedIndex:a}=this.state;if(a===0){this.setState({highlightedIndex:null});return}let r=a===null?i.length:a;for(let s=0;s<i.length;s++){const l=(r-(1+s)+i.length)%i.length;if((o=(n=this.props).isItemSelectable)!=null&&o.call(n,i[l])){r=l;break}}if(r!==i.length){const s=this._refs[`item-${r}`];s&&this.scrollNodeIntoView(s),this.setState({highlightedIndex:r,isOpen:!0})}},Enter(e){const i=e.nativeEvent;if(i&&"keyCode"in i&&i.keyCode!==13){this._ignoreBlur=!1;return}if(this._ignoreBlur=!1,this.isOpen())if(this.state.highlightedIndex==null)this.setState({isOpen:!1},()=>{var a;(a=this._refs.input)==null||a.select()});else{e.preventDefault();const a=this.getFilteredItems()[this.state.highlightedIndex],r=this.props.getItemValue(a);this.setState({isOpen:this.props.keepInputAfterSelection||!1,highlightedIndex:null},()=>{var n,o,s,l;(n=this._refs.input)==null||n.focus(),(o=this._refs.input)==null||o.setSelectionRange(r.length,r.length),(l=(s=this.props).onSelect)==null||l.call(s,r,a)})}else return},Escape(){this._ignoreBlur=!1,this.setState({highlightedIndex:null,isOpen:!1})},Tab(){this._ignoreBlur=!1}};let u2=zo;var f2=new Map,zh=new Map,Q5=0;function gO(t){return t?(zh.has(t)||(Q5+=1,zh.set(t,Q5.toString())),zh.get(t)):"0"}function _O(t){return Object.keys(t).sort().filter(function(e){return t[e]!==void 0}).map(function(e){return e+"_"+(e==="root"?gO(t.root):t[e])}).toString()}function cO(t){var e=_O(t),i=f2.get(e);if(!i){var a=new Map,r,n=new IntersectionObserver(function(o){o.forEach(function(s){var l,u=s.isIntersecting&&r.some(function(f){return s.intersectionRatio>=f});t.trackVisibility&&typeof s.isVisible>"u"&&(s.isVisible=u),(l=a.get(s.target))==null||l.forEach(function(f){f(u,s)})})},t);r=n.thresholds||(Array.isArray(t.threshold)?t.threshold:[t.threshold||0]),i={id:e,observer:n,elements:a},f2.set(e,i)}return i}function FO(t,e,i){if(i===void 0&&(i={}),!t)return function(){};var a=cO(i),r=a.id,n=a.observer,o=a.elements,s=o.get(t)||[];return o.has(t)||o.set(t,s),s.push(e),n.observe(t),function(){s.splice(s.indexOf(e),1),s.length===0&&(o.delete(t),n.unobserve(t)),o.size===0&&(n.disconnect(),f2.delete(r))}}function mO(t){var e={},i=e.threshold,a=e.delay,r=e.trackVisibility,n=e.rootMargin,o=e.root,s=e.triggerOnce,l=e.skip,u=e.initialInView,f=M.useRef(),d=M.useState({inView:!!u}),h=d[0],_=d[1],F=M.useCallback(function(m){f.current!==void 0&&(f.current(),f.current=void 0),!l&&m&&(f.current=FO(m,function(A,p){_({inView:A,entry:p}),p.isIntersecting&&s&&f.current&&(f.current(),f.current=void 0)},{root:o,rootMargin:n,threshold:i,trackVisibility:r,delay:a}))},[Array.isArray(i)?i.toString():i,o,n,s,l,r,a]);M.useEffect(function(){!f.current&&h.entry&&!s&&!l&&_({inView:!!u})});var c=[F,h.inView,h.entry];return c.ref=c[0],c.inView=c[1],c.entry=c[2],c}function N5({hasNextPage:t,fetchMoreResults:e,loading:i,spacerSize:a="medium",minimumTime:r=2e3}){const[n,o]=mO(),s=M.useRef(o);return s.current=o,M.useEffect(()=>{let l;return o&&t&&!i&&(l=setTimeout(async()=>{s.current&&e()},r)),()=>{l&&clearTimeout(l)}},[o,t,i,e,r]),!t||i?g.jsx(g.Fragment,{}):g.jsx("div",{ref:n,children:g.jsxs("div",{role:"progressbar","aria-valuetext":"Loading more items...",style:{visibility:"initial"},children:[g.jsx(qt,{size:a,orientation:"vertical"}),g.jsx(Wn,{horizontallyCentered:!0}),g.jsx(qt,{size:a,orientation:"vertical"})]})})}const zt={defaultText:"#333",asphalt:"#727272",night:"#333",brandSecondary:"#22abf3",pool:"#22abf3",lemon:"#f8f042",spinach:"#227c31",frost:"#a8f1f3",systemRed:"#f3224d",systemGreen:"#00a861",systemYellow:"#ffc20e",systemDefault:"#2a5cdb",snow:"#fff",transparentBlack:"rgba(0, 0, 0, 0.65)",brandPrimary:"#227c31",KWBrandPrimary:"#227c31",kwBrandPrimary:"#227c31",KWBrandSecondary:"#22abf3",kwBrandSecondary:"#22abf3",KWBrandSalmon:"#ff9676",kwBrandSalmon:"#ff9676",KWBrandFrost:"#a7f1f3",kwBrandFrost:"#a7f1f3",KWBrandPlum:"#702278",kwBrandPlum:"#702278",KWBrandLemon:"#f8f042",kwBrandLemon:"#f8f042",KWBrandSunrise:"#ffb400",kwBrandSunrise:"#ffb400",KWBrandLatte:"#d5b591",kwBrandLatte:"#d5b591",systemBlue:"#2a5cdb",systemBlueLight:"#eef2fc",systemBlueLightest:"#f4f7fd",systemBlueDark:"#1b409e",systemWarning:"#f3224d",systemWarningLight:"#fee9ed",systemWarningDark:"#d61e44",systemSuccess:"#00a861",systemSuccessLight:"#e6f6ef",systemSuccessDark:"#027946",systemInfo:"#863dff",systemInfoLight:"white",systemInfoDark:"#4700bd",systemWarn:"#f6be45",systemWarnLight:"white",systemWarnDark:"#b37d09",systemOptimistic:"#fd5d4b",systemOptimisticLight:"white",systemOptimisticDark:"#c61602",systemNavGray:"#191919",systemGray1:"#333",systemGray2:"#666",systemGray3:"#949494",systemGray4:"#aaaaaa",systemGray5:"#c6c6c6",systemGray6:"#f1f1f1",white:"#fff",workTangoPurple:"#524fef",workTangoLightPurple:"#c3d4ff",workTangoLightAqua:"#a5fcec",bodyScrollbarDisplayNone:"bodyScrollbarDisplayNone","input-wrapper":"MultiSelect-module_input-wrapper_ktN7O",inputWrapper:"MultiSelect-module_input-wrapper_ktN7O","input-hide-wrapper":"MultiSelect-module_input-hide-wrapper_cREhN",inputHideWrapper:"MultiSelect-module_input-hide-wrapper_cREhN",input:"MultiSelect-module_input_HRN3s","input--active":"MultiSelect-module_input--active_-DAAO",inputActive:"MultiSelect-module_input--active_-DAAO","input--hide":"MultiSelect-module_input--hide_4BXLm",inputHide:"MultiSelect-module_input--hide_4BXLm","suggestions-box":"MultiSelect-module_suggestions-box_Ik08S",suggestionsBox:"MultiSelect-module_suggestions-box_Ik08S","suggestions-list":"MultiSelect-module_suggestions-list_vTD8S",suggestionsList:"MultiSelect-module_suggestions-list_vTD8S","checkbox-divider":"MultiSelect-module_checkbox-divider_2-Cda",checkboxDivider:"MultiSelect-module_checkbox-divider_2-Cda","suggestions-box--with-items":"MultiSelect-module_suggestions-box--with-items_xFqRh",suggestionsBoxWithItems:"MultiSelect-module_suggestions-box--with-items_xFqRh","suggestions-box--hide-search":"MultiSelect-module_suggestions-box--hide-search_hcQxZ",suggestionsBoxHideSearch:"MultiSelect-module_suggestions-box--hide-search_hcQxZ","suggestions-box--no-popper":"MultiSelect-module_suggestions-box--no-popper_AJVyN",suggestionsBoxNoPopper:"MultiSelect-module_suggestions-box--no-popper_AJVyN","suggestions-box--nested":"MultiSelect-module_suggestions-box--nested_fw7X5",suggestionsBoxNested:"MultiSelect-module_suggestions-box--nested_fw7X5","suggestion-row":"MultiSelect-module_suggestion-row_J4flX",suggestionRow:"MultiSelect-module_suggestion-row_J4flX","suggestion-row--highlighted":"MultiSelect-module_suggestion-row--highlighted_HALBl",suggestionRowHighlighted:"MultiSelect-module_suggestion-row--highlighted_HALBl","suggestion-row--checkbox":"MultiSelect-module_suggestion-row--checkbox_0yRpl",suggestionRowCheckbox:"MultiSelect-module_suggestion-row--checkbox_0yRpl","suggestion-row--border-bottom":"MultiSelect-module_suggestion-row--border-bottom_FnBAf",suggestionRowBorderBottom:"MultiSelect-module_suggestion-row--border-bottom_FnBAf","selection-container":"MultiSelect-module_selection-container_KnZMo",selectionContainer:"MultiSelect-module_selection-container_KnZMo","selection-input-container":"MultiSelect-module_selection-input-container_03fpy",selectionInputContainer:"MultiSelect-module_selection-input-container_03fpy","selection-items-container":"MultiSelect-module_selection-items-container_T45PP",selectionItemsContainer:"MultiSelect-module_selection-items-container_T45PP",selection:"MultiSelect-module_selection_kOXfx","selection-remove-button":"MultiSelect-module_selection-remove-button_j-lNu",selectionRemoveButton:"MultiSelect-module_selection-remove-button_j-lNu","selection__close-button__icon":"MultiSelect-module_selection__close-button__icon_rtcPb",selectionCloseButtonIcon:"MultiSelect-module_selection__close-button__icon_rtcPb","default-selection-pill":"MultiSelect-module_default-selection-pill_sfN4W",defaultSelectionPill:"MultiSelect-module_default-selection-pill_sfN4W","checkbox-wrapper":"MultiSelect-module_checkbox-wrapper_KjJSO",checkboxWrapper:"MultiSelect-module_checkbox-wrapper_KjJSO","person-checkbox-wrapper":"MultiSelect-module_person-checkbox-wrapper_EeXPP",personCheckboxWrapper:"MultiSelect-module_person-checkbox-wrapper_EeXPP","checkbox-pill":"MultiSelect-module_checkbox-pill_KCchB",checkboxPill:"MultiSelect-module_checkbox-pill_KCchB","list-caret":"MultiSelect-module_list-caret_UBdYz",listCaret:"MultiSelect-module_list-caret_UBdYz","check-box-disabled":"MultiSelect-module_check-box-disabled_-0Mfp",checkBoxDisabled:"MultiSelect-module_check-box-disabled_-0Mfp","disabled-pill":"MultiSelect-module_disabled-pill_Meew1",disabledPill:"MultiSelect-module_disabled-pill_Meew1","suggestion-container":"MultiSelect-module_suggestion-container_k6AtW",suggestionContainer:"MultiSelect-module_suggestion-container_k6AtW","suggestion-text":"MultiSelect-module_suggestion-text_DPeu4",suggestionText:"MultiSelect-module_suggestion-text_DPeu4","suggestion-helper-text":"MultiSelect-module_suggestion-helper-text_gnWBG",suggestionHelperText:"MultiSelect-module_suggestion-helper-text_gnWBG",actions:"MultiSelect-module_actions_1Es8A"};var d2,$5;function AO(){if($5)return d2;$5=1;var t=200,e="__lodash_hash_undefined__",i=9007199254740991,a="[object Arguments]",r="[object Function]",n="[object GeneratorFunction]",o="[object Symbol]",s=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,u=/^(?:0|[1-9]\d*)$/,f=typeof Qi=="object"&&Qi&&Qi.Object===Object&&Qi,d=typeof self=="object"&&self&&self.Object===Object&&self,h=f||d||Function("return this")();function _(te,fe,we){switch(we.length){case 0:return te.call(fe);case 1:return te.call(fe,we[0]);case 2:return te.call(fe,we[0],we[1]);case 3:return te.call(fe,we[0],we[1],we[2])}return te.apply(fe,we)}function F(te,fe){var we=te?te.length:0;return!!we&&p(te,fe,0)>-1}function c(te,fe){for(var we=-1,Ke=te?te.length:0,bt=Array(Ke);++we<Ke;)bt[we]=fe(te[we],we,te);return bt}function m(te,fe){for(var we=-1,Ke=fe.length,bt=te.length;++we<Ke;)te[bt+we]=fe[we];return te}function A(te,fe,we,Ke){for(var bt=te.length,hi=we+-1;++hi<bt;)if(fe(te[hi],hi,te))return hi;return-1}function p(te,fe,we){if(fe!==fe)return A(te,w,we);for(var Ke=we-1,bt=te.length;++Ke<bt;)if(te[Ke]===fe)return Ke;return-1}function w(te){return te!==te}function b(te,fe){for(var we=-1,Ke=Array(te);++we<te;)Ke[we]=fe(we);return Ke}function y(te,fe){return te.has(fe)}function k(te,fe){return te==null?void 0:te[fe]}function C(te){var fe=!1;if(te!=null&&typeof te.toString!="function")try{fe=!!(te+"")}catch{}return fe}function v(te,fe){return function(we){return te(fe(we))}}var E=Array.prototype,D=Function.prototype,S=Object.prototype,P=h["__core-js_shared__"],U=function(){var te=/[^.]+$/.exec(P&&P.keys&&P.keys.IE_PROTO||"");return te?"Symbol(src)_1."+te:""}(),I=D.toString,q=S.hasOwnProperty,T=S.toString,N=RegExp("^"+I.call(q).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),H=h.Symbol,$=v(Object.getPrototypeOf,Object),x=S.propertyIsEnumerable,L=E.splice,Q=H?H.isConcatSpreadable:void 0,B=Object.getOwnPropertySymbols,G=Math.max,ee=si(h,"Map"),V=si(Object,"create");function X(te){var fe=-1,we=te?te.length:0;for(this.clear();++fe<we;){var Ke=te[fe];this.set(Ke[0],Ke[1])}}function J(){this.__data__=V?V(null):{}}function re(te){return this.has(te)&&delete this.__data__[te]}function O(te){var fe=this.__data__;if(V){var we=fe[te];return we===e?void 0:we}return q.call(fe,te)?fe[te]:void 0}function ne(te){var fe=this.__data__;return V?fe[te]!==void 0:q.call(fe,te)}function W(te,fe){var we=this.__data__;return we[te]=V&&fe===void 0?e:fe,this}X.prototype.clear=J,X.prototype.delete=re,X.prototype.get=O,X.prototype.has=ne,X.prototype.set=W;function de(te){var fe=-1,we=te?te.length:0;for(this.clear();++fe<we;){var Ke=te[fe];this.set(Ke[0],Ke[1])}}function Ae(){this.__data__=[]}function be(te){var fe=this.__data__,we=lt(fe,te);if(we<0)return!1;var Ke=fe.length-1;return we==Ke?fe.pop():L.call(fe,we,1),!0}function Te(te){var fe=this.__data__,we=lt(fe,te);return we<0?void 0:fe[we][1]}function ye(te){return lt(this.__data__,te)>-1}function je(te,fe){var we=this.__data__,Ke=lt(we,te);return Ke<0?we.push([te,fe]):we[Ke][1]=fe,this}de.prototype.clear=Ae,de.prototype.delete=be,de.prototype.get=Te,de.prototype.has=ye,de.prototype.set=je;function Oe(te){var fe=-1,we=te?te.length:0;for(this.clear();++fe<we;){var Ke=te[fe];this.set(Ke[0],Ke[1])}}function me(){this.__data__={hash:new X,map:new(ee||de),string:new X}}function We(te){return ct(this,te).delete(te)}function rt(te){return ct(this,te).get(te)}function tt(te){return ct(this,te).has(te)}function st(te,fe){return ct(this,te).set(te,fe),this}Oe.prototype.clear=me,Oe.prototype.delete=We,Oe.prototype.get=rt,Oe.prototype.has=tt,Oe.prototype.set=st;function ht(te){var fe=-1,we=te?te.length:0;for(this.__data__=new Oe;++fe<we;)this.add(te[fe])}function Di(te){return this.__data__.set(te,e),this}function Nt(te){return this.__data__.has(te)}ht.prototype.add=ht.prototype.push=Di,ht.prototype.has=Nt;function Be(te,fe){var we=He(te)||ut(te)?b(te.length,String):[],Ke=we.length,bt=!!Ke;for(var hi in te)bt&&(hi=="length"||K(hi,Ke))||we.push(hi);return we}function lt(te,fe){for(var we=te.length;we--;)if(qe(te[we][0],fe))return we;return-1}function $t(te,fe,we,Ke){var bt=-1,hi=F,gi=!0,gr=te.length,Is=[],Ps=fe.length;if(!gr)return Is;fe.length>=t&&(hi=y,gi=!1,fe=new ht(fe));e:for(;++bt<gr;){var Nn=te[bt],Wo=Nn;if(Nn=Nn!==0?Nn:0,gi&&Wo===Wo){for(var Go=Ps;Go--;)if(fe[Go]===Wo)continue e;Is.push(Nn)}else hi(fe,Wo,Ke)||Is.push(Nn)}return Is}function Ti(te,fe,we,Ke,bt){var hi=-1,gi=te.length;for(we||(we=da),bt||(bt=[]);++hi<gi;){var gr=te[hi];we(gr)?m(bt,gr):bt[bt.length]=gr}return bt}function Ki(te,fe,we){var Ke=fe(te);return He(te)?Ke:m(Ke,we(te))}function Fa(te){if(!ce(te)||ae(te))return!1;var fe=ie(te)||C(te)?N:l;return fe.test(Ye(te))}function ir(te){if(!ce(te))return De(te);var fe=he(te),we=[];for(var Ke in te)Ke=="constructor"&&(fe||!q.call(te,Ke))||we.push(Ke);return we}function xt(te,fe){return te=Object(te),ge(te,fe,function(we,Ke){return Ke in te})}function ge(te,fe,we){for(var Ke=-1,bt=fe.length,hi={};++Ke<bt;){var gi=fe[Ke],gr=te[gi];we(gr,gi)&&(hi[gi]=gr)}return hi}function ve(te,fe){return fe=G(fe===void 0?te.length-1:fe,0),function(){for(var we=arguments,Ke=-1,bt=G(we.length-fe,0),hi=Array(bt);++Ke<bt;)hi[Ke]=we[fe+Ke];Ke=-1;for(var gi=Array(fe+1);++Ke<fe;)gi[Ke]=we[Ke];return gi[fe]=hi,_(te,this,gi)}}function Ve(te){return Ki(te,mt,Xi)}function ct(te,fe){var we=te.__data__;return z(fe)?we[typeof fe=="string"?"string":"hash"]:we.map}function si(te,fe){var we=k(te,fe);return Fa(we)?we:void 0}var Ht=B?v(B,Object):gt,Xi=B?function(te){for(var fe=[];te;)m(fe,Ht(te)),te=$(te);return fe}:gt;function da(te){return He(te)||ut(te)||!!(Q&&te&&te[Q])}function K(te,fe){return fe=fe??i,!!fe&&(typeof te=="number"||u.test(te))&&te>-1&&te%1==0&&te<fe}function z(te){var fe=typeof te;return fe=="string"||fe=="number"||fe=="symbol"||fe=="boolean"?te!=="__proto__":te===null}function ae(te){return!!U&&U in te}function he(te){var fe=te&&te.constructor,we=typeof fe=="function"&&fe.prototype||S;return te===we}function De(te){var fe=[];if(te!=null)for(var we in Object(te))fe.push(we);return fe}function Ee(te){if(typeof te=="string"||kt(te))return te;var fe=te+"";return fe=="0"&&1/te==-1/0?"-0":fe}function Ye(te){if(te!=null){try{return I.call(te)}catch{}try{return te+""}catch{}}return""}function qe(te,fe){return te===fe||te!==te&&fe!==fe}function ut(te){return Ct(te)&&q.call(te,"callee")&&(!x.call(te,"callee")||T.call(te)==a)}var He=Array.isArray;function it(te){return te!=null&&ke(te.length)&&!ie(te)}function Ct(te){return Ie(te)&&it(te)}function ie(te){var fe=ce(te)?T.call(te):"";return fe==r||fe==n}function ke(te){return typeof te=="number"&&te>-1&&te%1==0&&te<=i}function ce(te){var fe=typeof te;return!!te&&(fe=="object"||fe=="function")}function Ie(te){return!!te&&typeof te=="object"}function kt(te){return typeof te=="symbol"||Ie(te)&&T.call(te)==o}function mt(te){return it(te)?Be(te):ir(te)}var nt=ve(function(te,fe){return te==null?{}:(fe=c(Ti(fe),Ee),xt(te,$t(Ve(te),fe)))});function gt(){return[]}return d2=nt,d2}var pO=AO();const bO=Ni(pO);function yO({inputRef:t,containerRef:e,inputProps:{error:i,disabled:a,placeholder:r,...n},maxSelections:o=0,selectedItems:s,renderSelection:l,onRemoveSelection:u,suggestionsOpen:f,hideSearchInput:d,alwaysDisplayInput:h,ariaDescribedBy:_,listId:F,highlightedIndex:c}){const m=zs(F),A=c!==null,p=A?m(c):null,w={...A&&p?{"aria-activedescendant":p}:null},b=f||!s.length?"input-wrapper":"input-hide-wrapper",k=pe(zt[h?"input-wrapper":b],Ci.input,{[Ci["input--disabled"]]:a,[Ci["input--error"]]:i,[zt["input--hide"]]:d,[zt["input--active"]]:f}),v=o!==0&&s.length>=o?{display:"none"}:{};return g.jsx("div",{className:k,"data-testid":"multiselect-input-test",children:g.jsxs("div",{ref:e,className:zt["selection-container"],children:[s.map((E,D)=>g.jsx("div",{className:zt["selection-items-container"],children:l({tabIndex:D,item:E,onRemoveSelection:u})},wO("dropdown",E.id))),g.jsx("div",{className:zt["selection-input-container"],children:g.jsx("input",{style:v,ref:t,disabled:a,className:zt.input,placeholder:r,...bO(n,"onTextChange"),"aria-describedby":_,role:"combobox","aria-autocomplete":"both","aria-controls":F,"aria-expanded":f,...w})})]})})}function wO(t,e){return t+"-"+e.replace(/ /g,"-")}function Wh({icon:t,className:e="",variant:i="gray",size:a="large",text:r,listShowable:n,hoverContent:o,users:s=[],onClose:l,onClick:u,avatarUser:f,tabIndex:d,onKeyPress:h,onMouseEnter:_,onMouseLeave:F,...c}){const[m,A]=M.useState(!1),p=c["data-testid"],w=`pill--${i}`,b=!!(n||u),y=Ze(Na[w],w),k=Ze(Na[`${w}-has-hover`],`${w}-has-hover`),C=pe(e,{[Na.pill]:!0,[y]:!0,[Na[a]]:!0,[Na["has-hover"]]:b,[`${w}-has-hover`]:b,[k]:b}),E=i==="primary"||i==="secondary"?`${w}-color`:w,[D,S]=M.useState(!1),[P,U]=nO(()=>{S(!1),T(!1)}),I=()=>{S(!0),U()},[q,T]=M.useState(!1),N=Q=>{Q.key==="Enter"&&T(!q)};let H={onClick:u};const $=()=>{A(!0),_==null||_()},x=()=>{A(!1),F==null||F()};n&&(H={role:"button",tabIndex:0,onClick:()=>T(!q),onKeyDown:N,onFocus:I,onBlur:P});const L=g.jsxs("div",{role:u?"button":"",tabIndex:d,onKeyPress:h,"data-testid":p,className:C,onMouseEnter:$,onMouseLeave:x,...H,children:[f&&g.jsx("div",{"data-testid":"pill-avatar",className:Na["pill-avatar"],children:g.jsx(Eh,{dimensions:24,size:"small",user:f})}),t&&g.jsx("div",{"data-testid":`${Ze(p,"pill")}-icon-wrapper`,className:Na.icon,children:g.jsx(Ut,{icon:t,size:12,className:E,variant:"thin"})}),g.jsx("div",{"data-testid":"pill-text",children:r}),l&&g.jsx("div",{"data-testid":"pill-close-icon",className:Na["pill-close"],children:g.jsx("div",{onClick:Q=>{Q.stopPropagation(),l()},children:g.jsx(Ut,{className:E,size:8,icon:"close",variant:"thin"})})})]});return g.jsxs(g.Fragment,{children:[!!n&&g.jsx(mo,{parent:L,isOpen:q&&D,popoverComponent:g.jsx(rO,{employees:s}),position:"bottom-start",className:Na["list-card"]}),!!o&&g.jsx(mo,{parent:L,isOpen:m,popoverComponent:o,position:"top-start",className:Na["pill-hover-content"]}),!n&&!o&&L]})}const kO=({tabIndex:t,item:e,onRemoveSelection:i})=>g.jsx(Wh,{tabIndex:t,onKeyPress:()=>i(e),"data-testid":"tag-selector-pill",text:e.text,onClick:()=>i(e),size:"large",className:zt["default-selection-pill"],onClose:()=>i(e)}),xO=({tabIndex:t,item:e,onRemoveSelection:i})=>g.jsx(kO,{tabIndex:t,item:e,onRemoveSelection:()=>i(e)},e.id);function CO(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const z5=M.forwardRef(({item:t,originalItems:e,selectedItems:i,onSelectionChange:a,expandedItems:r,onItemExpanded:n,isParentSelected:o,nestedData:s,behaveAsAFilter:l,...u},f)=>{var P;const d=U=>U._parent===void 0?void 0:e[U._parent],h=U=>c(U).some(q=>i.some(T=>T.id===q.id)),_=U=>{let I=d(U);for(;I!==void 0&&!i.some(q=>q.id===(I==null?void 0:I.id));)I=d(I);return I},F=U=>{const I=[];let q=U;do q._parent!==void 0&&I.push(q._parent),q=d(q)??q;while((q==null?void 0:q._parent)!==void 0);return I},c=U=>{let I=[],q=[];for(q.push(U);q.length>0;){const T=q.pop();T!=null&&T.children&&(q=[...q,...T.children],I=[...I,...T.children])}return I},m=()=>{var U,I,q,T;if(p){if(D&&l){c(A).filter(H=>i.map($=>$.id).includes(H.id)).forEach(H=>{a(H)}),a(A);return}if(y&&l){const N=_(A),H=[...F(A)];if(N){let L=!1;a(N);for(let Q=H.length-1;Q>=0;Q--){const B=H[Q];if(N.id===e[B].id||L){L=!0;const G=Q===0?A.id:e[H[Q-1]].id;(U=e[B].children)==null||U.filter(ee=>ee.id!==G).forEach(ee=>a(ee))}}return}const $=[];let x=[];for(let L=0;L<H.length;L++){const Q=H[L],B=e[Q],G=L===0?A.id:e[H[L-1]].id;if((((I=B.children)==null?void 0:I.filter(V=>i.some(X=>X.id===V.id)))||[]).length+1===(((q=B.children)==null?void 0:q.length)||0)&&!i.some(V=>V.id===A.id))$.push(...((T=B.children)==null?void 0:T.filter(V=>V.id!==G))||[]),x=[B];else break}if($.length>0||x.length>0){$.forEach(L=>a(L)),x.forEach(L=>a(L));return}}a(A)}},A=s?e.filter(U=>U.id===t.id)[0]:t,p=A._isItemSelectable!==void 0?A._isItemSelectable:!0;if(!s||A._parent===void 0&&A.children===void 0){const U=i.some(I=>I.id===A.id);return M.createElement(G5,{...u,onChange:()=>a(A),key:A.id,item:A,isSelected:U,isItemSelectable:p,hasChildren:!1,ref:f})}const w=()=>{var U;return!k||E&&!l?!1:v<(((U=A.children)==null?void 0:U.length)||0)&&v>0?!0:h(A)},b=()=>{var U;return i.some(I=>I.id===A.id)?!0:l?k&&((U=A.children)==null?void 0:U.length)===v?!0:!!o:!1},y=d(A),k=A.children&&A.children.length>0,C=k?r.some(U=>U===t.id):!1,v=k?(((P=A.children)==null?void 0:P.filter(U=>i.some(I=>I.id===U.id)))||[]).length:0,E=b(),D=w();let S;return C&&t.children&&(S=t.children.map(U=>M.createElement(z5,{...u,key:U.id,item:U,originalItems:e,selectedItems:i,onSelectionChange:a,expandedItems:r,onItemExpanded:n,isParentSelected:E,nestedData:s,behaveAsAFilter:l}))),g.jsxs("div",{children:[M.createElement(G5,{...u,item:A,isSelected:E,key:t.id,isIndeterminate:D,isItemSelectable:p,displayChildren:C,hasChildren:k,onDisplayChildrenChange:n,onChange:m,nestedData:s}),S]})});function Xs(t,e){if(!t)return"";const i=new RegExp(CO(e),"ig"),a=t.match(i);let r=-1;return!e||!(a!=null&&a.length)?t:t.split(i).reduce((n,o)=>{r++;const s=a[r]?g.jsx("b",{children:a[r]},`multi-select-${r}`):"";return[...n,o,s]},[])}const W5={BASIC:"basic"},G5=M.forwardRef(({item:t,isHighlighted:e,isSelected:i,currentInputValue:a="",indeterminate:r,displayChildren:n,isItemSelectable:o,checkbox:s,onDisplayChildrenChange:l,onChange:u,hasChildren:f,isIndeterminate:d,nestedData:h,variant:_=W5.BASIC,listId:F,index:c,...m},A)=>{const w=zs(F)((c==null?void 0:c.toString())??""),b=pe(zt["checkbox-pill"],{[zt["disabled-pill"]]:!o});function y(C){return g.jsxs(g.Fragment,{children:[g.jsx(l2,{className:zt["checkbox-divider"]}),g.jsxs("div",{className:t.user?zt["person-checkbox-wrapper"]:zt["checkbox-wrapper"],style:{marginLeft:`${(t._treeLevel||0)*7}px`},children:[C,t.pillText&&g.jsxs(g.Fragment,{children:[g.jsx("span",{className:"screen-reader-only",children:","}),g.jsx(Wh,{"data-testid":"checkbox-pill",text:t.pillText,size:"small",className:b})]})]})]})}const k=()=>{if(_==="system")return g.jsx(M.Fragment,{children:g.jsxs("div",{className:zt["suggestion-container"],children:[g.jsx("div",{className:zt["suggestion-text"],children:g.jsxs("span",{children:[" ",Xs(t.text,a)]})}),g.jsxs("div",{className:zt["suggestion-helper-text"],children:[g.jsx("span",{className:"screen-reader-only",children:","}),g.jsxs("span",{children:[" ",Xs(t.helperText||"",a)]})]})]})});if(!s&&!h)return t.pillText?Xs(t.pillText,a):Xs(t.text,a);let C;const v=g.jsx(ma,{"data-testid":"multiselect-item-caret-test",className:zt["list-caret"],icon:n?"caret_up":"caret_dn",iconVariant:"regular",onClick:E=>{E.stopPropagation(),o&&l&&l(t)},system:!1,type:"button"},`Icon-${t.id}`);return!s&&h?C=g.jsxs("div",{children:[Xs(t.text,a),f&&v]}):C=g.jsx(Vs,{id:t.id,indeterminate:d,onIndeterminateChange:u,"data-testid":"multiselect-checkbox-item-test",checked:i,disabled:!o,className:o?"":zt["check-box-disabled"],label:[Xs(t.text,a),f&&v],helperText:g.jsxs(g.Fragment,{children:[g.jsx("span",{className:"screen-reader-only",children:","}),Xs(t.helperText||" ",a)]}),onChange:u,user:t.user}),y(C)};return g.jsx("li",{className:pe(zt["suggestion-row"],{[zt["suggestion-row--highlighted"]]:e,[zt["suggestion-row--checkbox"]]:s,[zt["suggestion-row--border-bottom"]]:_==="system"}),id:w,role:"option","aria-selected":e,ref:A,onClick:o&&!r?u:void 0,onKeyDown:()=>{},"data-testid":"multiselect-list-item-test",...m,children:k()},t.id)}),vO=({item:t,...e})=>g.jsx(z5,{item:t,...e},t.id),DO=({emptySuggestionsComponent:t,listId:e,popperEnabled:i})=>g.jsx("div",{className:pe(zt["suggestions-box"],zt["suggestions-box--with-items"],{[zt["suggestions-box--no-popper"]]:!i}),children:g.jsx("ul",{className:zt["suggestions-list"],"data-testid":"multiselect-suggestions-empty",role:"listbox",id:e,children:g.jsx("li",{className:zt["suggestion-row"],role:"option",children:t})})}),EO=/[,]/g,BO=t=>t.replace(EO,"").trim(),SO=t=>{const e=[];let i=0;const a=(r,n)=>{for(const o of r){const l={...o,_parent:i===0?void 0:n,_treeLevel:i};e.push(l),o.children&&o.children.length>0&&(i++,a(o.children,e.length-1),i--)}};return a(t,void 0),e};function jO({items:t=[],selectedItems:e=[],suggestionsOpen:i=!1,setSuggestionsOpen:a=()=>{},emptySuggestionsComponent:r=null,inputText:n="",setInputText:o=()=>{},onTextChange:s=()=>{},onSelectionChange:l,onBackspaceRemoval:u=()=>{},allowFreeformInput:f,maxSelections:d=0,renderSelection:h=xO,renderSuggestion:_=vO,id:F,checkbox:c=!1,expandedItems:m=[],onItemExpanded:A=()=>{},nestedData:p=!1,captureTextOnBlur:w=!1,popperEnabled:b=!1,behaveAs:y="select",suggestionsTestId:k="multiselect-listbox-test",variant:C=W5.BASIC,hideSearchInput:v=!1,hideInputCaret:E=!1,alwaysDisplayInput:D=!1,actions:S,infiniteLoaderProps:P,ariaDescribedBy:U,buttonOpenLabel:I,buttonClosedLabel:q,...T}){const N=zs(F,k,y),H=N("listbox");M.useEffect(()=>s(n),[n]);const $=M.useMemo(()=>SO(t),[t]),x=()=>{const B=BO(n);if(!(!f||!B)){if(f){const G={id:N(B),text:B};l(G)}o("")}},L=B=>{switch(B.key){case"Enter":case",":{x(),B.preventDefault();break}case"Backspace":if(B.target instanceof HTMLInputElement&&B.target.selectionEnd)return;u();break}},Q=S&&g.jsx("div",{className:zt.actions,children:S});return g.jsx(H1,{...T,label:T.label||" ",inputId:F,tooltipId:U,renderControl:({labelId:B,errorId:G,helperTextId:ee,...V})=>g.jsx(u2,{hideInputCaret:E,isMultiSelect:!0,popperEnabled:b,skipEventHandlers:!!p,wrapperStyle:{position:"relative"},items:t,value:n||"",getItemValue:({text:X})=>X,"aria-labelledby":B,"aria-describedby":`${G} ${ee}`,buttonOpenLabel:I,buttonClosedLabel:q,inputProps:{...V,onKeyDown:L,onFocus:()=>a(!0),onBlur:()=>{w&&x(),a(!1)}},onChange:(X,J)=>o(J),onSelect:(X,J)=>l(J),renderInput:({ref:X,highlightedIndex:J,...re})=>g.jsx(yO,{inputRef:X,hideSearchInput:v,selectedItems:e,maxSelections:d,inputProps:re,onRemoveSelection:O=>l(O),renderSelection:h,suggestionsOpen:i,alwaysDisplayInput:D,ariaDescribedBy:U,listId:H,highlightedIndex:J}),renderItem:(X,J,re,O)=>_({item:X,isHighlighted:J,currentInputValue:n,isItemSelectable:!0,checkbox:c,originalItems:$,expandedItems:m,onItemExpanded:A,selectedItems:e,onSelectionChange:ne=>{l(ne),o("")},nestedData:p,behaveAsAFilter:y==="filter",variant:C,listId:H,index:O}),renderMenu:X=>X.length===0&&r?g.jsx(DO,{emptySuggestionsComponent:r,listId:H,popperEnabled:b}):g.jsxs("div",{className:pe(zt["suggestions-box"],{[zt["suggestions-box--hide-search"]]:v,[zt["suggestions-box--with-items"]]:!!t.length,[zt["suggestions-box--nested"]]:p,[zt["suggestions-box--no-popper"]]:!b}),children:[g.jsxs("ul",{className:zt["suggestions-list"],"data-testid":k,role:"listbox",id:H,children:[X,!!P&&g.jsx(N5,{...P})]}),Q]}),keepInputAfterSelection:!0,open:i&&(t.length>0||r)&&(d?e.length<d:!0)})})}const Aa={defaultText:"#333",asphalt:"#727272",night:"#333",brandSecondary:"#22abf3",pool:"#22abf3",lemon:"#f8f042",spinach:"#227c31",frost:"#a8f1f3",systemRed:"#f3224d",systemGreen:"#00a861",systemYellow:"#ffc20e",systemDefault:"#2a5cdb",snow:"#fff",transparentBlack:"rgba(0, 0, 0, 0.65)",brandPrimary:"#227c31",KWBrandPrimary:"#227c31",kwBrandPrimary:"#227c31",KWBrandSecondary:"#22abf3",kwBrandSecondary:"#22abf3",KWBrandSalmon:"#ff9676",kwBrandSalmon:"#ff9676",KWBrandFrost:"#a7f1f3",kwBrandFrost:"#a7f1f3",KWBrandPlum:"#702278",kwBrandPlum:"#702278",KWBrandLemon:"#f8f042",kwBrandLemon:"#f8f042",KWBrandSunrise:"#ffb400",kwBrandSunrise:"#ffb400",KWBrandLatte:"#d5b591",kwBrandLatte:"#d5b591",systemBlue:"#2a5cdb",systemBlueLight:"#eef2fc",systemBlueLightest:"#f4f7fd",systemBlueDark:"#1b409e",systemWarning:"#f3224d",systemWarningLight:"#fee9ed",systemWarningDark:"#d61e44",systemSuccess:"#00a861",systemSuccessLight:"#e6f6ef",systemSuccessDark:"#027946",systemInfo:"#863dff",systemInfoLight:"white",systemInfoDark:"#4700bd",systemWarn:"#f6be45",systemWarnLight:"white",systemWarnDark:"#b37d09",systemOptimistic:"#fd5d4b",systemOptimisticLight:"white",systemOptimisticDark:"#c61602",systemNavGray:"#191919",systemGray1:"#333",systemGray2:"#666",systemGray3:"#949494",systemGray4:"#aaaaaa",systemGray5:"#c6c6c6",systemGray6:"#f1f1f1",white:"#fff",workTangoPurple:"#524fef",workTangoLightPurple:"#c3d4ff",workTangoLightAqua:"#a5fcec",bodyScrollbarDisplayNone:"bodyScrollbarDisplayNone",wrapper:"Radio-module_wrapper_TwD4L",wrapperOthers:"Radio-module_wrapperOthers_mKjMh",wrapperInput:"Radio-module_wrapperInput_Ce8D4",wrapperText:"Radio-module_wrapperText_4HCUu",label:"Radio-module_label_HBbTD","radio-isgrouped":"Radio-module_radio-isgrouped_YzURm",radioIsgrouped:"Radio-module_radio-isgrouped_YzURm",input:"Radio-module_input_qMA8v","wrapper--small":"Radio-module_wrapper--small_ko45q",wrapperSmall:"Radio-module_wrapper--small_ko45q","wrapper--xsmall":"Radio-module_wrapper--xsmall_A9ZJC",wrapperXsmall:"Radio-module_wrapper--xsmall_A9ZJC","helper-row":"Radio-module_helper-row_DkotE",helperRow:"Radio-module_helper-row_DkotE","helper-text":"Radio-module_helper-text_MqVAa",helperText:"Radio-module_helper-text_MqVAa","helper-text-disabled":"Radio-module_helper-text-disabled_Pn-pQ",helperTextDisabled:"Radio-module_helper-text-disabled_Pn-pQ",radioSpace:"Radio-module_radioSpace_srE11",radio:"Radio-module_radio_7QXpU",radioContent:"Radio-module_radioContent_dCCDc",horizontal:"Radio-module_horizontal_9nrw2","group-of-radios":"Radio-module_group-of-radios_LQopG",groupOfRadios:"Radio-module_group-of-radios_LQopG","group-helper-text":"Radio-module_group-helper-text_t8yKS",groupHelperText:"Radio-module_group-helper-text_t8yKS","group-helper-text--error":"Radio-module_group-helper-text--error_Va-UH",groupHelperTextError:"Radio-module_group-helper-text--error_Va-UH",error:"Radio-module_error_MSJfL"},Gh={XSMALL:"extra-small",SMALL:"small",REGULAR:"regular"};function Cn({checked:t,className:e,disabled:i,helperText:a,id:r,label:n,name:o,onChange:s=Ei,size:l=Gh.SMALL,hasError:u,"data-testid":f}){const d=typeof n=="string",h=pe({[Aa.wrapperText]:d,[Aa.wrapperOthers]:!d},{[Aa["wrapper--xsmall"]]:l===Gh.XSMALL,[Aa["wrapper--small"]]:l===Gh.SMALL},e),_=Aa.wrapperInput,F=pe({[Aa.error]:u},Aa.radio);return g.jsxs("div",{"data-testid":"wrapper-label",className:h,children:[g.jsxs("div",{className:_,children:[g.jsx("input",{type:"radio",className:Aa.input,checked:t,disabled:i,id:String(r),"data-testid":f,name:o,onChange:()=>s(r)}),g.jsx("span",{className:F}),g.jsx("label",{"data-testid":"radio-label",className:Aa.label,htmlFor:String(r),children:n})]}),a&&g.jsx("div",{className:pe(Aa["helper-row"],{[Aa["helper-text-disabled"]]:i}),"data-testid":"radio-helper-text",children:a})]})}Cn.displayName="Radio",Cn.SIZES=Gh;function Vh({content:t,classNameString:e}){return t?g.jsx(Dt,{size:"paragraphXsmall",paragraph:!0,className:Aa[e],children:t}):null}function Kh({children:t,error:e,selected:i,onChange:a,horizontal:r,label:n,disabled:o,helperText:s,"data-testid":l="confetti-radio-group",optionalLabelText:u,fieldsetVariant:f,tooltip:d}){const h=M.Children.count(t)-1,_=pe({[Aa.horizontal]:r,[Aa["group-of-radios"]]:n}),F=()=>M.Children.map(t,(p,w)=>{if(!M.isValidElement(p))return p;const b=!!p.props.helperText,y=w===h,k=pe(p.props.className,{[Aa.radioSpace]:!y&&!b},Aa["radio-isgrouped"]),C=p.props["data-testid"]?p.props["data-testid"]:`${l}-${w}`,v=p.type;return!v.displayName||v.displayName!=="Radio"?M.cloneElement(p):M.cloneElement(p,{disabled:o,checked:p.props.id===i,onChange:E=>E!==i&&a(E),className:k,"data-testid":C,hasError:e?String(e).trim()!=="":!1})}),c=e?String(e):void 0,m=d||void 0,A=u&&typeof u=="string"?u:void 0;return n?g.jsxs(jM,{"data-testid":l,label:n,disabled:o,legendType:"radiogroup",optionalLabelText:A,variant:f,tooltip:m,children:[g.jsxs(ot,{alignItems:"center",children:[e&&g.jsxs(g.Fragment,{children:[g.jsxs(T1,{children:[g.jsx(Ut,{icon:"warning",size:12,color:Aa.systemRed}),g.jsx(qt,{size:"small"})]}),g.jsx(qt,{size:"tiny",orientation:"horizontal"})]}),g.jsx(Vh,{content:c,classNameString:"group-helper-text--error"})]}),g.jsx(Vh,{content:s,classNameString:"group-helper-text"}),g.jsx("div",{className:_,children:F()})]}):g.jsxs("div",{"data-testid":l,children:[g.jsxs(ot,{alignItems:"center",children:[e&&g.jsxs(g.Fragment,{children:[g.jsxs(T1,{children:[g.jsx(Ut,{icon:"warning",size:12,color:Aa.systemRed}),g.jsx(qt,{size:"small"})]}),g.jsx(qt,{size:"tiny",orientation:"horizontal"})]}),g.jsx(Vh,{content:c,classNameString:"group-helper-text--error"})]}),g.jsx(Vh,{content:s,classNameString:"group-helper-text"}),g.jsx("div",{className:_,children:F()})]})}var Xh={exports:{}},LO=Xh.exports,V5;function MO(){return V5||(V5=1,function(t,e){(function(i,a){t.exports=a()})(LO,function(){return function(i,a,r){a.prototype.isToday=function(){var n="YYYY-MM-DD",o=r();return this.format(n)===o.format(n)}}})}(Xh)),Xh.exports}var OO=MO();const qO=Ni(OO);At.extend(mc),At.extend(qO),At.extend(dh);function TO({amLabel:t,pmLabel:e}){const a=new Date;a.setMinutes(a.getMinutes()+30);const r=new Date(Math.round(a.getTime()/18e5)*18e5);let n=r.getHours(),o=r.getMinutes(),s=t;return n>12&&(n-=12,s=e),n===0&&(n=12),o=o<=9?`0${o}`:o,n=n<=9?`0${n}`:n,`${n}:${o} ${s}`}TO({amLabel:"AM",pmLabel:"PM"});const h2={toastOverlay:"Toast-module_toastOverlay_lb2Vi",toast:"Toast-module_toast_KdaTa",going:"Toast-module_going_rPoCP"};function Yh({variant:t="info",text:e,content:i,className:a,dismiss:r,going:n=!1,...o}){return g.jsx("div",{"data-testid":"toast",role:"status",className:pe(h2.toast,a,{[h2.going]:n}),...o,children:g.jsx(Pj,{variant:t,onDismiss:r,text:e,children:i})})}function IO(t){return g.jsx("div",{...t,id:"toast-overlay","data-testid":"toast-overlay",className:h2.toastOverlay})}let PO=0;const HO=5e3,Ys={ERROR:0,INFO:1,SUCCESS:2,WARNING:3};function UO(){const t=document.querySelectorAll(":hover");for(let e=0;e<t.length;e++)if(t[e].getAttribute("id")==="toast-overlay")return!0;return!1}function RO(t){if(!yn())return M.createContext(t);window.kazoo||(window.kazoo={});const e=window.kazoo.toastContext;return e||(window.kazoo.toastContext=M.createContext(t),window.kazoo.toastContext)}const Zh=()=>{throw new Error("You tried to call a Toast placeholder function, meaning the Toast hasn't been set in the context. Did you forget to setup the Toast provider? Or maybe you meant to mock this function?")},K5=RO({error:Zh,info:Zh,success:Zh,warning:Zh}),g2=()=>M.useContext(K5);function Jh(t,e,i,a){e(r=>[...r,{id:PO++,type:t,content:i,timeout:a,going:!1,shownTime:Date.now()}])}function QO(t,e){t(i=>i.filter(a=>a.id!==e))}function NO(t,e,i){Jh(Ys.SUCCESS,t,e,i)}function $O(t,e){Jh(Ys.WARNING,t,e)}function zO(t,e){Jh(Ys.ERROR,t,e)}function WO(t,e,i){Jh(Ys.INFO,t,e,i)}function GO({children:t,defaultTimeout:e=HO,text:i=void 0}){const[a,r]=M.useState([]);M.useEffect(()=>{if(!yn())return;const f=setInterval(()=>{const d=Date.now(),h=UO();let _=!1;const F=a.filter(c=>!c.going).map(c=>(h||c.timeout&&d-c.shownTime>c.timeout&&(c.going=!0,_=!0),c));h&&F.forEach((c,m)=>F[m].shownTime+=600),(_||F.length!==a.length)&&r(F)},500);return()=>{clearInterval(f)}},[a]);const n=M.useCallback(f=>zO(r,f),[r]),o=M.useCallback((f,d=e)=>WO(r,f,d),[r,e]),s=M.useCallback((f,d=e)=>NO(r,f,d),[r,e]),l=M.useCallback(f=>$O(r,f),[r]),u=M.useMemo(()=>({error:n,info:o,success:s,warning:l}),[n,o,s,l]);return g.jsxs(K5.Provider,{value:u,children:[g.jsx(IO,{children:a.map(f=>{const d={content:f.content,text:i,dismiss:()=>QO(r,f.id),going:f.going,key:f.id,timeout:f.timeout,type:f.type};switch(f.type){case Ys.ERROR:return g.jsx(Yh,{variant:"warning",...d});case Ys.SUCCESS:return g.jsx(Yh,{variant:"success",...d});case Ys.WARNING:return g.jsx(Yh,{variant:"warning",...d});default:return g.jsx(Yh,{variant:"info",...d})}})}),t]})}const Zs={wrapper:"Toggle-module_wrapper_vJZtf",toggle:"Toggle-module_toggle_FfRqj",iconToggle:"Toggle-module_iconToggle_q7snx",onIcon:"Toggle-module_onIcon_H3o6M",offIcon:"Toggle-module_offIcon_f-JIQ",bubble:"Toggle-module_bubble_sOF6n"};function X5({id:t="",label:e="",onChange:i,onToggleChange:a,autoSave:r=!1,disabled:n=!1,checked:o=!1,savedLabel:s="Saved",statusOn:l=void 0,statusOff:u=void 0,"data-testid":f,inert:d=!1}){const h=Dh(),[_,F]=M.useState(!1),c=M.useCallback(p=>{const w=p.currentTarget;if(p.key==="Enter"||p.key==="Space"){w.checked=!w.checked;const b={...p,target:w};m(b)}},[]),m=M.useCallback(p=>{const w=i(p);typeof w=="object"&&"then"in w&&w.then(()=>{!h()||!r||F(!0)}),a&&a(p.target.checked)},[r,i,a]);M.useEffect(()=>{if(!_)return;const p=setInterval(Wr(F,!1),1e3);return()=>clearInterval(p)},[_]);const A=o?l:u;return d===!0?g.jsx("div",{className:pe(Zs.wrapper),"data-testid":`${f}-disabled`,children:g.jsxs(ot,{children:[g.jsx(Ut,{icon:"lock",size:16,variant:"filled",color:"#949494"}),g.jsx(Dt,{size:"small","data-testid":`${f}-icon-text`,children:o?"ON":"OFF"})]})}):g.jsxs("div",{className:pe(Zs.wrapper,{[Zs.onIcon]:o,[Zs.offIcon]:!o,[Zs.iconToggle]:A}),children:[g.jsxs("label",{"data-testid":`${f}-lbl`,htmlFor:t,children:[g.jsx("span",{className:"screen-reader-only",children:e}),A,g.jsx("input",{id:t,"data-testid":`${f}-chk`,className:Zs.toggle,type:"checkbox",tabIndex:0,checked:o,disabled:n,onChange:m,onKeyUp:c})]}),r&&_?g.jsx("span",{className:Zs.bubble,"data-testid":`${f}-bubble`,children:s}):null]})}M.createContext(null);var _2="http://www.w3.org/1999/xhtml";const Y5={svg:"http://www.w3.org/2000/svg",xhtml:_2,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function eg(t){var e=t+="",i=e.indexOf(":");return i>=0&&(e=t.slice(0,i))!=="xmlns"&&(t=t.slice(i+1)),Y5.hasOwnProperty(e)?{space:Y5[e],local:t}:t}function VO(t){return function(){var e=this.ownerDocument,i=this.namespaceURI;return i===_2&&e.documentElement.namespaceURI===_2?e.createElement(t):e.createElementNS(i,t)}}function KO(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Z5(t){var e=eg(t);return(e.local?KO:VO)(e)}function XO(){}function c2(t){return t==null?XO:function(){return this.querySelector(t)}}function YO(t){typeof t!="function"&&(t=c2(t));for(var e=this._groups,i=e.length,a=new Array(i),r=0;r<i;++r)for(var n=e[r],o=n.length,s=a[r]=new Array(o),l,u,f=0;f<o;++f)(l=n[f])&&(u=t.call(l,l.__data__,f,n))&&("__data__"in l&&(u.__data__=l.__data__),s[f]=u);return new Yr(a,this._parents)}function J5(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function ZO(){return[]}function e9(t){return t==null?ZO:function(){return this.querySelectorAll(t)}}function JO(t){return function(){var e=t.apply(this,arguments);return e==null?[]:J5(e)}}function eq(t){typeof t=="function"?t=JO(t):t=e9(t);for(var e=this._groups,i=e.length,a=[],r=[],n=0;n<i;++n)for(var o=e[n],s=o.length,l,u=0;u<s;++u)(l=o[u])&&(a.push(t.call(l,l.__data__,u,o)),r.push(l));return new Yr(a,r)}function t9(t){return function(){return this.matches(t)}}function i9(t){return function(e){return e.matches(t)}}var tq=Array.prototype.find;function iq(t){return function(){return tq.call(this.children,t)}}function aq(){return this.firstElementChild}function rq(t){return this.select(t==null?aq:iq(typeof t=="function"?t:i9(t)))}var nq=Array.prototype.filter;function oq(){return this.children}function sq(t){return function(){return nq.call(this.children,t)}}function lq(t){return this.selectAll(t==null?oq:sq(typeof t=="function"?t:i9(t)))}function uq(t){typeof t!="function"&&(t=t9(t));for(var e=this._groups,i=e.length,a=new Array(i),r=0;r<i;++r)for(var n=e[r],o=n.length,s=a[r]=[],l,u=0;u<o;++u)(l=n[u])&&t.call(l,l.__data__,u,n)&&s.push(l);return new Yr(a,this._parents)}function a9(t){return new Array(t.length)}function fq(){return new Yr(this._enter||this._groups.map(a9),this._parents)}function tg(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}tg.prototype={constructor:tg,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function dq(t){return function(){return t}}function hq(t,e,i,a,r,n){for(var o=0,s,l=e.length,u=n.length;o<u;++o)(s=e[o])?(s.__data__=n[o],a[o]=s):i[o]=new tg(t,n[o]);for(;o<l;++o)(s=e[o])&&(r[o]=s)}function gq(t,e,i,a,r,n,o){var s,l,u=new Map,f=e.length,d=n.length,h=new Array(f),_;for(s=0;s<f;++s)(l=e[s])&&(h[s]=_=o.call(l,l.__data__,s,e)+"",u.has(_)?r[s]=l:u.set(_,l));for(s=0;s<d;++s)_=o.call(t,n[s],s,n)+"",(l=u.get(_))?(a[s]=l,l.__data__=n[s],u.delete(_)):i[s]=new tg(t,n[s]);for(s=0;s<f;++s)(l=e[s])&&u.get(h[s])===l&&(r[s]=l)}function _q(t){return t.__data__}function cq(t,e){if(!arguments.length)return Array.from(this,_q);var i=e?gq:hq,a=this._parents,r=this._groups;typeof t!="function"&&(t=dq(t));for(var n=r.length,o=new Array(n),s=new Array(n),l=new Array(n),u=0;u<n;++u){var f=a[u],d=r[u],h=d.length,_=J5(t.call(f,f&&f.__data__,u,a)),F=_.length,c=s[u]=new Array(F),m=o[u]=new Array(F),A=l[u]=new Array(h);i(f,d,c,m,A,_,e);for(var p=0,w=0,b,y;p<F;++p)if(b=c[p]){for(p>=w&&(w=p+1);!(y=m[w])&&++w<F;);b._next=y||null}}return o=new Yr(o,a),o._enter=s,o._exit=l,o}function Fq(){return new Yr(this._exit||this._groups.map(a9),this._parents)}function mq(t,e,i){var a=this.enter(),r=this,n=this.exit();return a=typeof t=="function"?t(a):a.append(t+""),e!=null&&(r=e(r)),i==null?n.remove():i(n),a&&r?a.merge(r).order():r}function Aq(t){if(!(t instanceof Yr))throw new Error("invalid merge");for(var e=this._groups,i=t._groups,a=e.length,r=i.length,n=Math.min(a,r),o=new Array(a),s=0;s<n;++s)for(var l=e[s],u=i[s],f=l.length,d=o[s]=new Array(f),h,_=0;_<f;++_)(h=l[_]||u[_])&&(d[_]=h);for(;s<a;++s)o[s]=e[s];return new Yr(o,this._parents)}function pq(){for(var t=this._groups,e=-1,i=t.length;++e<i;)for(var a=t[e],r=a.length-1,n=a[r],o;--r>=0;)(o=a[r])&&(n&&o.compareDocumentPosition(n)^4&&n.parentNode.insertBefore(o,n),n=o);return this}function bq(t){t||(t=yq);function e(d,h){return d&&h?t(d.__data__,h.__data__):!d-!h}for(var i=this._groups,a=i.length,r=new Array(a),n=0;n<a;++n){for(var o=i[n],s=o.length,l=r[n]=new Array(s),u,f=0;f<s;++f)(u=o[f])&&(l[f]=u);l.sort(e)}return new Yr(r,this._parents).order()}function yq(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function wq(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function kq(){return Array.from(this)}function xq(){for(var t=this._groups,e=0,i=t.length;e<i;++e)for(var a=t[e],r=0,n=a.length;r<n;++r){var o=a[r];if(o)return o}return null}function Cq(){let t=0;for(const e of this)++t;return t}function vq(){return!this.node()}function Dq(t){for(var e=this._groups,i=0,a=e.length;i<a;++i)for(var r=e[i],n=0,o=r.length,s;n<o;++n)(s=r[n])&&t.call(s,s.__data__,n,r);return this}function Eq(t){return function(){this.removeAttribute(t)}}function Bq(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Sq(t,e){return function(){this.setAttribute(t,e)}}function jq(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Lq(t,e){return function(){var i=e.apply(this,arguments);i==null?this.removeAttribute(t):this.setAttribute(t,i)}}function Mq(t,e){return function(){var i=e.apply(this,arguments);i==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,i)}}function Oq(t,e){var i=eg(t);if(arguments.length<2){var a=this.node();return i.local?a.getAttributeNS(i.space,i.local):a.getAttribute(i)}return this.each((e==null?i.local?Bq:Eq:typeof e=="function"?i.local?Mq:Lq:i.local?jq:Sq)(i,e))}function r9(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function qq(t){return function(){this.style.removeProperty(t)}}function Tq(t,e,i){return function(){this.style.setProperty(t,e,i)}}function Iq(t,e,i){return function(){var a=e.apply(this,arguments);a==null?this.style.removeProperty(t):this.style.setProperty(t,a,i)}}function Pq(t,e,i){return arguments.length>1?this.each((e==null?qq:typeof e=="function"?Iq:Tq)(t,e,i??"")):fu(this.node(),t)}function fu(t,e){return t.style.getPropertyValue(e)||r9(t).getComputedStyle(t,null).getPropertyValue(e)}function Hq(t){return function(){delete this[t]}}function Uq(t,e){return function(){this[t]=e}}function Rq(t,e){return function(){var i=e.apply(this,arguments);i==null?delete this[t]:this[t]=i}}function Qq(t,e){return arguments.length>1?this.each((e==null?Hq:typeof e=="function"?Rq:Uq)(t,e)):this.node()[t]}function n9(t){return t.trim().split(/^|\s+/)}function F2(t){return t.classList||new o9(t)}function o9(t){this._node=t,this._names=n9(t.getAttribute("class")||"")}o9.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function s9(t,e){for(var i=F2(t),a=-1,r=e.length;++a<r;)i.add(e[a])}function l9(t,e){for(var i=F2(t),a=-1,r=e.length;++a<r;)i.remove(e[a])}function Nq(t){return function(){s9(this,t)}}function $q(t){return function(){l9(this,t)}}function zq(t,e){return function(){(e.apply(this,arguments)?s9:l9)(this,t)}}function Wq(t,e){var i=n9(t+"");if(arguments.length<2){for(var a=F2(this.node()),r=-1,n=i.length;++r<n;)if(!a.contains(i[r]))return!1;return!0}return this.each((typeof e=="function"?zq:e?Nq:$q)(i,e))}function Gq(){this.textContent=""}function Vq(t){return function(){this.textContent=t}}function Kq(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function Xq(t){return arguments.length?this.each(t==null?Gq:(typeof t=="function"?Kq:Vq)(t)):this.node().textContent}function Yq(){this.innerHTML=""}function Zq(t){return function(){this.innerHTML=t}}function Jq(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function eT(t){return arguments.length?this.each(t==null?Yq:(typeof t=="function"?Jq:Zq)(t)):this.node().innerHTML}function tT(){this.nextSibling&&this.parentNode.appendChild(this)}function iT(){return this.each(tT)}function aT(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function rT(){return this.each(aT)}function nT(t){var e=typeof t=="function"?t:Z5(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function oT(){return null}function sT(t,e){var i=typeof t=="function"?t:Z5(t),a=e==null?oT:typeof e=="function"?e:c2(e);return this.select(function(){return this.insertBefore(i.apply(this,arguments),a.apply(this,arguments)||null)})}function lT(){var t=this.parentNode;t&&t.removeChild(this)}function uT(){return this.each(lT)}function fT(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function dT(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function hT(t){return this.select(t?dT:fT)}function gT(t){return arguments.length?this.property("__data__",t):this.node().__data__}function _T(t){return function(e){t.call(this,e,this.__data__)}}function cT(t){return t.trim().split(/^|\s+/).map(function(e){var i="",a=e.indexOf(".");return a>=0&&(i=e.slice(a+1),e=e.slice(0,a)),{type:e,name:i}})}function FT(t){return function(){var e=this.__on;if(e){for(var i=0,a=-1,r=e.length,n;i<r;++i)n=e[i],(!t.type||n.type===t.type)&&n.name===t.name?this.removeEventListener(n.type,n.listener,n.options):e[++a]=n;++a?e.length=a:delete this.__on}}}function mT(t,e,i){return function(){var a=this.__on,r,n=_T(e);if(a){for(var o=0,s=a.length;o<s;++o)if((r=a[o]).type===t.type&&r.name===t.name){this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=n,r.options=i),r.value=e;return}}this.addEventListener(t.type,n,i),r={type:t.type,name:t.name,value:e,listener:n,options:i},a?a.push(r):this.__on=[r]}}function AT(t,e,i){var a=cT(t+""),r,n=a.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var l=0,u=s.length,f;l<u;++l)for(r=0,f=s[l];r<n;++r)if((o=a[r]).type===f.type&&o.name===f.name)return f.value}return}for(s=e?mT:FT,r=0;r<n;++r)this.each(s(a[r],e,i));return this}function u9(t,e,i){var a=r9(t),r=a.CustomEvent;typeof r=="function"?r=new r(e,i):(r=a.document.createEvent("Event"),i?(r.initEvent(e,i.bubbles,i.cancelable),r.detail=i.detail):r.initEvent(e,!1,!1)),t.dispatchEvent(r)}function pT(t,e){return function(){return u9(this,t,e)}}function bT(t,e){return function(){return u9(this,t,e.apply(this,arguments))}}function yT(t,e){return this.each((typeof e=="function"?bT:pT)(t,e))}function*wT(){for(var t=this._groups,e=0,i=t.length;e<i;++e)for(var a=t[e],r=0,n=a.length,o;r<n;++r)(o=a[r])&&(yield o)}var kT=[null];function Yr(t,e){this._groups=t,this._parents=e}function X1(){return new Yr([[document.documentElement]],kT)}function xT(){return this}Yr.prototype=X1.prototype={constructor:Yr,select:YO,selectAll:eq,selectChild:rq,selectChildren:lq,filter:uq,data:cq,enter:fq,exit:Fq,join:mq,merge:Aq,selection:xT,order:pq,sort:bq,call:wq,nodes:kq,node:xq,size:Cq,empty:vq,each:Dq,attr:Oq,style:Pq,property:Qq,classed:Wq,text:Xq,html:eT,raise:iT,lower:rT,append:nT,insert:sT,remove:uT,clone:hT,datum:gT,on:AT,dispatch:yT,[Symbol.iterator]:wT};var CT={value:()=>{}};function f9(){for(var t=0,e=arguments.length,i={},a;t<e;++t){if(!(a=arguments[t]+"")||a in i||/[\s.]/.test(a))throw new Error("illegal type: "+a);i[a]=[]}return new ig(i)}function ig(t){this._=t}function vT(t,e){return t.trim().split(/^|\s+/).map(function(i){var a="",r=i.indexOf(".");if(r>=0&&(a=i.slice(r+1),i=i.slice(0,r)),i&&!e.hasOwnProperty(i))throw new Error("unknown type: "+i);return{type:i,name:a}})}ig.prototype=f9.prototype={constructor:ig,on:function(t,e){var i=this._,a=vT(t+"",i),r,n=-1,o=a.length;if(arguments.length<2){for(;++n<o;)if((r=(t=a[n]).type)&&(r=DT(i[r],t.name)))return r;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++n<o;)if(r=(t=a[n]).type)i[r]=d9(i[r],t.name,e);else if(e==null)for(r in i)i[r]=d9(i[r],t.name,null);return this},copy:function(){var t={},e=this._;for(var i in e)t[i]=e[i].slice();return new ig(t)},call:function(t,e){if((r=arguments.length-2)>0)for(var i=new Array(r),a=0,r,n;a<r;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(n=this._[t],a=0,r=n.length;a<r;++a)n[a].value.apply(e,i)},apply:function(t,e,i){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var a=this._[t],r=0,n=a.length;r<n;++r)a[r].value.apply(e,i)}};function DT(t,e){for(var i=0,a=t.length,r;i<a;++i)if((r=t[i]).name===e)return r.value}function d9(t,e,i){for(var a=0,r=t.length;a<r;++a)if(t[a].name===e){t[a]=CT,t=t.slice(0,a).concat(t.slice(a+1));break}return i!=null&&t.push({name:e,value:i}),t}var du=0,Y1=0,Z1=0,h9=1e3,ag,J1,rg=0,Js=0,ng=0,ef=typeof performance=="object"&&performance.now?performance:Date,g9=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function m2(){return Js||(g9(ET),Js=ef.now()+ng)}function ET(){Js=0}function og(){this._call=this._time=this._next=null}og.prototype=_9.prototype={constructor:og,restart:function(t,e,i){if(typeof t!="function")throw new TypeError("callback is not a function");i=(i==null?m2():+i)+(e==null?0:+e),!this._next&&J1!==this&&(J1?J1._next=this:ag=this,J1=this),this._call=t,this._time=i,A2()},stop:function(){this._call&&(this._call=null,this._time=1/0,A2())}};function _9(t,e,i){var a=new og;return a.restart(t,e,i),a}function BT(){m2(),++du;for(var t=ag,e;t;)(e=Js-t._time)>=0&&t._call.call(null,e),t=t._next;--du}function c9(){Js=(rg=ef.now())+ng,du=Y1=0;try{BT()}finally{du=0,jT(),Js=0}}function ST(){var t=ef.now(),e=t-rg;e>h9&&(ng-=e,rg=t)}function jT(){for(var t,e=ag,i,a=1/0;e;)e._call?(a>e._time&&(a=e._time),t=e,e=e._next):(i=e._next,e._next=null,e=t?t._next=i:ag=i);J1=t,A2(a)}function A2(t){if(!du){Y1&&(Y1=clearTimeout(Y1));var e=t-Js;e>24?(t<1/0&&(Y1=setTimeout(c9,t-ef.now()-ng)),Z1&&(Z1=clearInterval(Z1))):(Z1||(rg=ef.now(),Z1=setInterval(ST,h9)),du=1,g9(c9))}}function F9(t,e,i){var a=new og;return e=e==null?0:+e,a.restart(r=>{a.stop(),t(r+e)},e,i),a}var LT=f9("start","end","cancel","interrupt"),MT=[],m9=0,A9=1,p2=2,sg=3,p9=4,b2=5,lg=6;function ug(t,e,i,a,r,n){var o=t.__transition;if(!o)t.__transition={};else if(i in o)return;OT(t,i,{name:e,index:a,group:r,on:LT,tween:MT,time:n.time,delay:n.delay,duration:n.duration,ease:n.ease,timer:null,state:m9})}function y2(t,e){var i=vn(t,e);if(i.state>m9)throw new Error("too late; already scheduled");return i}function Yn(t,e){var i=vn(t,e);if(i.state>sg)throw new Error("too late; already running");return i}function vn(t,e){var i=t.__transition;if(!i||!(i=i[e]))throw new Error("transition not found");return i}function OT(t,e,i){var a=t.__transition,r;a[e]=i,i.timer=_9(n,0,i.time);function n(u){i.state=A9,i.timer.restart(o,i.delay,i.time),i.delay<=u&&o(u-i.delay)}function o(u){var f,d,h,_;if(i.state!==A9)return l();for(f in a)if(_=a[f],_.name===i.name){if(_.state===sg)return F9(o);_.state===p9?(_.state=lg,_.timer.stop(),_.on.call("interrupt",t,t.__data__,_.index,_.group),delete a[f]):+f<e&&(_.state=lg,_.timer.stop(),_.on.call("cancel",t,t.__data__,_.index,_.group),delete a[f])}if(F9(function(){i.state===sg&&(i.state=p9,i.timer.restart(s,i.delay,i.time),s(u))}),i.state=p2,i.on.call("start",t,t.__data__,i.index,i.group),i.state===p2){for(i.state=sg,r=new Array(h=i.tween.length),f=0,d=-1;f<h;++f)(_=i.tween[f].value.call(t,t.__data__,i.index,i.group))&&(r[++d]=_);r.length=d+1}}function s(u){for(var f=u<i.duration?i.ease.call(null,u/i.duration):(i.timer.restart(l),i.state=b2,1),d=-1,h=r.length;++d<h;)r[d].call(t,f);i.state===b2&&(i.on.call("end",t,t.__data__,i.index,i.group),l())}function l(){i.state=lg,i.timer.stop(),delete a[e];for(var u in a)return;delete t.__transition}}function qT(t,e){var i=t.__transition,a,r,n=!0,o;if(i){e=e==null?null:e+"";for(o in i){if((a=i[o]).name!==e){n=!1;continue}r=a.state>p2&&a.state<b2,a.state=lg,a.timer.stop(),a.on.call(r?"interrupt":"cancel",t,t.__data__,a.index,a.group),delete i[o]}n&&delete t.__transition}}function TT(t){return this.each(function(){qT(this,t)})}function w2(t,e,i){t.prototype=e.prototype=i,i.constructor=t}function b9(t,e){var i=Object.create(t.prototype);for(var a in e)i[a]=e[a];return i}function tf(){}var af=.7,fg=1/af,hu="\\s*([+-]?\\d+)\\s*",rf="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Zn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",IT=/^#([0-9a-f]{3,8})$/,PT=new RegExp("^rgb\\("+[hu,hu,hu]+"\\)$"),HT=new RegExp("^rgb\\("+[Zn,Zn,Zn]+"\\)$"),UT=new RegExp("^rgba\\("+[hu,hu,hu,rf]+"\\)$"),RT=new RegExp("^rgba\\("+[Zn,Zn,Zn,rf]+"\\)$"),QT=new RegExp("^hsl\\("+[rf,Zn,Zn]+"\\)$"),NT=new RegExp("^hsla\\("+[rf,Zn,Zn,rf]+"\\)$"),y9={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};w2(tf,nf,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:w9,formatHex:w9,formatHsl:$T,formatRgb:k9,toString:k9});function w9(){return this.rgb().formatHex()}function $T(){return E9(this).formatHsl()}function k9(){return this.rgb().formatRgb()}function nf(t){var e,i;return t=(t+"").trim().toLowerCase(),(e=IT.exec(t))?(i=e[1].length,e=parseInt(e[1],16),i===6?x9(e):i===3?new Or(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):i===8?dg(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):i===4?dg(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=PT.exec(t))?new Or(e[1],e[2],e[3],1):(e=HT.exec(t))?new Or(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=UT.exec(t))?dg(e[1],e[2],e[3],e[4]):(e=RT.exec(t))?dg(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=QT.exec(t))?D9(e[1],e[2]/100,e[3]/100,1):(e=NT.exec(t))?D9(e[1],e[2]/100,e[3]/100,e[4]):y9.hasOwnProperty(t)?x9(y9[t]):t==="transparent"?new Or(NaN,NaN,NaN,0):null}function x9(t){return new Or(t>>16&255,t>>8&255,t&255,1)}function dg(t,e,i,a){return a<=0&&(t=e=i=NaN),new Or(t,e,i,a)}function zT(t){return t instanceof tf||(t=nf(t)),t?(t=t.rgb(),new Or(t.r,t.g,t.b,t.opacity)):new Or}function k2(t,e,i,a){return arguments.length===1?zT(t):new Or(t,e,i,a??1)}function Or(t,e,i,a){this.r=+t,this.g=+e,this.b=+i,this.opacity=+a}w2(Or,k2,b9(tf,{brighter:function(t){return t=t==null?fg:Math.pow(fg,t),new Or(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=t==null?af:Math.pow(af,t),new Or(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:C9,formatHex:C9,formatRgb:v9,toString:v9}));function C9(){return"#"+x2(this.r)+x2(this.g)+x2(this.b)}function v9(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(t===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(t===1?")":", "+t+")")}function x2(t){return t=Math.max(0,Math.min(255,Math.round(t)||0)),(t<16?"0":"")+t.toString(16)}function D9(t,e,i,a){return a<=0?t=e=i=NaN:i<=0||i>=1?t=e=NaN:e<=0&&(t=NaN),new Jn(t,e,i,a)}function E9(t){if(t instanceof Jn)return new Jn(t.h,t.s,t.l,t.opacity);if(t instanceof tf||(t=nf(t)),!t)return new Jn;if(t instanceof Jn)return t;t=t.rgb();var e=t.r/255,i=t.g/255,a=t.b/255,r=Math.min(e,i,a),n=Math.max(e,i,a),o=NaN,s=n-r,l=(n+r)/2;return s?(e===n?o=(i-a)/s+(i<a)*6:i===n?o=(a-e)/s+2:o=(e-i)/s+4,s/=l<.5?n+r:2-n-r,o*=60):s=l>0&&l<1?0:o,new Jn(o,s,l,t.opacity)}function WT(t,e,i,a){return arguments.length===1?E9(t):new Jn(t,e,i,a??1)}function Jn(t,e,i,a){this.h=+t,this.s=+e,this.l=+i,this.opacity=+a}w2(Jn,WT,b9(tf,{brighter:function(t){return t=t==null?fg:Math.pow(fg,t),new Jn(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=t==null?af:Math.pow(af,t),new Jn(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,a=i+(i<.5?i:1-i)*e,r=2*i-a;return new Or(C2(t>=240?t-240:t+120,r,a),C2(t,r,a),C2(t<120?t+240:t-120,r,a),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(t===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(t===1?")":", "+t+")")}}));function C2(t,e,i){return(t<60?e+(i-e)*t/60:t<180?i:t<240?e+(i-e)*(240-t)/60:e)*255}const B9=t=>()=>t;function GT(t,e){return function(i){return t+i*e}}function VT(t,e,i){return t=Math.pow(t,i),e=Math.pow(e,i)-t,i=1/i,function(a){return Math.pow(t+a*e,i)}}function KT(t){return(t=+t)==1?S9:function(e,i){return i-e?VT(e,i,t):B9(isNaN(e)?i:e)}}function S9(t,e){var i=e-t;return i?GT(t,i):B9(isNaN(t)?e:t)}const j9=function t(e){var i=KT(e);function a(r,n){var o=i((r=k2(r)).r,(n=k2(n)).r),s=i(r.g,n.g),l=i(r.b,n.b),u=S9(r.opacity,n.opacity);return function(f){return r.r=o(f),r.g=s(f),r.b=l(f),r.opacity=u(f),r+""}}return a.gamma=t,a}(1);function os(t,e){return t=+t,e=+e,function(i){return t*(1-i)+e*i}}var v2=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,D2=new RegExp(v2.source,"g");function XT(t){return function(){return t}}function YT(t){return function(e){return t(e)+""}}function ZT(t,e){var i=v2.lastIndex=D2.lastIndex=0,a,r,n,o=-1,s=[],l=[];for(t=t+"",e=e+"";(a=v2.exec(t))&&(r=D2.exec(e));)(n=r.index)>i&&(n=e.slice(i,n),s[o]?s[o]+=n:s[++o]=n),(a=a[0])===(r=r[0])?s[o]?s[o]+=r:s[++o]=r:(s[++o]=null,l.push({i:o,x:os(a,r)})),i=D2.lastIndex;return i<e.length&&(n=e.slice(i),s[o]?s[o]+=n:s[++o]=n),s.length<2?l[0]?YT(l[0].x):XT(e):(e=l.length,function(u){for(var f=0,d;f<e;++f)s[(d=l[f]).i]=d.x(u);return s.join("")})}var L9=180/Math.PI,E2={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function M9(t,e,i,a,r,n){var o,s,l;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(l=t*i+e*a)&&(i-=t*l,a-=e*l),(s=Math.sqrt(i*i+a*a))&&(i/=s,a/=s,l/=s),t*a<e*i&&(t=-t,e=-e,l=-l,o=-o),{translateX:r,translateY:n,rotate:Math.atan2(e,t)*L9,skewX:Math.atan(l)*L9,scaleX:o,scaleY:s}}var hg;function JT(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?E2:M9(e.a,e.b,e.c,e.d,e.e,e.f)}function eI(t){return t==null||(hg||(hg=document.createElementNS("http://www.w3.org/2000/svg","g")),hg.setAttribute("transform",t),!(t=hg.transform.baseVal.consolidate()))?E2:(t=t.matrix,M9(t.a,t.b,t.c,t.d,t.e,t.f))}function O9(t,e,i,a){function r(u){return u.length?u.pop()+" ":""}function n(u,f,d,h,_,F){if(u!==d||f!==h){var c=_.push("translate(",null,e,null,i);F.push({i:c-4,x:os(u,d)},{i:c-2,x:os(f,h)})}else(d||h)&&_.push("translate("+d+e+h+i)}function o(u,f,d,h){u!==f?(u-f>180?f+=360:f-u>180&&(u+=360),h.push({i:d.push(r(d)+"rotate(",null,a)-2,x:os(u,f)})):f&&d.push(r(d)+"rotate("+f+a)}function s(u,f,d,h){u!==f?h.push({i:d.push(r(d)+"skewX(",null,a)-2,x:os(u,f)}):f&&d.push(r(d)+"skewX("+f+a)}function l(u,f,d,h,_,F){if(u!==d||f!==h){var c=_.push(r(_)+"scale(",null,",",null,")");F.push({i:c-4,x:os(u,d)},{i:c-2,x:os(f,h)})}else(d!==1||h!==1)&&_.push(r(_)+"scale("+d+","+h+")")}return function(u,f){var d=[],h=[];return u=t(u),f=t(f),n(u.translateX,u.translateY,f.translateX,f.translateY,d,h),o(u.rotate,f.rotate,d,h),s(u.skewX,f.skewX,d,h),l(u.scaleX,u.scaleY,f.scaleX,f.scaleY,d,h),u=f=null,function(_){for(var F=-1,c=h.length,m;++F<c;)d[(m=h[F]).i]=m.x(_);return d.join("")}}}var tI=O9(JT,"px, ","px)","deg)"),iI=O9(eI,", ",")",")");function aI(t,e){var i,a;return function(){var r=Yn(this,t),n=r.tween;if(n!==i){a=i=n;for(var o=0,s=a.length;o<s;++o)if(a[o].name===e){a=a.slice(),a.splice(o,1);break}}r.tween=a}}function rI(t,e,i){var a,r;if(typeof i!="function")throw new Error;return function(){var n=Yn(this,t),o=n.tween;if(o!==a){r=(a=o).slice();for(var s={name:e,value:i},l=0,u=r.length;l<u;++l)if(r[l].name===e){r[l]=s;break}l===u&&r.push(s)}n.tween=r}}function nI(t,e){var i=this._id;if(t+="",arguments.length<2){for(var a=vn(this.node(),i).tween,r=0,n=a.length,o;r<n;++r)if((o=a[r]).name===t)return o.value;return null}return this.each((e==null?aI:rI)(i,t,e))}function B2(t,e,i){var a=t._id;return t.each(function(){var r=Yn(this,a);(r.value||(r.value={}))[e]=i.apply(this,arguments)}),function(r){return vn(r,a).value[e]}}function q9(t,e){var i;return(typeof e=="number"?os:e instanceof nf?j9:(i=nf(e))?(e=i,j9):ZT)(t,e)}function oI(t){return function(){this.removeAttribute(t)}}function sI(t){return function(){this.removeAttributeNS(t.space,t.local)}}function lI(t,e,i){var a,r=i+"",n;return function(){var o=this.getAttribute(t);return o===r?null:o===a?n:n=e(a=o,i)}}function uI(t,e,i){var a,r=i+"",n;return function(){var o=this.getAttributeNS(t.space,t.local);return o===r?null:o===a?n:n=e(a=o,i)}}function fI(t,e,i){var a,r,n;return function(){var o,s=i(this),l;return s==null?void this.removeAttribute(t):(o=this.getAttribute(t),l=s+"",o===l?null:o===a&&l===r?n:(r=l,n=e(a=o,s)))}}function dI(t,e,i){var a,r,n;return function(){var o,s=i(this),l;return s==null?void this.removeAttributeNS(t.space,t.local):(o=this.getAttributeNS(t.space,t.local),l=s+"",o===l?null:o===a&&l===r?n:(r=l,n=e(a=o,s)))}}function hI(t,e){var i=eg(t),a=i==="transform"?iI:q9;return this.attrTween(t,typeof e=="function"?(i.local?dI:fI)(i,a,B2(this,"attr."+t,e)):e==null?(i.local?sI:oI)(i):(i.local?uI:lI)(i,a,e))}function gI(t,e){return function(i){this.setAttribute(t,e.call(this,i))}}function _I(t,e){return function(i){this.setAttributeNS(t.space,t.local,e.call(this,i))}}function cI(t,e){var i,a;function r(){var n=e.apply(this,arguments);return n!==a&&(i=(a=n)&&_I(t,n)),i}return r._value=e,r}function FI(t,e){var i,a;function r(){var n=e.apply(this,arguments);return n!==a&&(i=(a=n)&&gI(t,n)),i}return r._value=e,r}function mI(t,e){var i="attr."+t;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(e==null)return this.tween(i,null);if(typeof e!="function")throw new Error;var a=eg(t);return this.tween(i,(a.local?cI:FI)(a,e))}function AI(t,e){return function(){y2(this,t).delay=+e.apply(this,arguments)}}function pI(t,e){return e=+e,function(){y2(this,t).delay=e}}function bI(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?AI:pI)(e,t)):vn(this.node(),e).delay}function yI(t,e){return function(){Yn(this,t).duration=+e.apply(this,arguments)}}function wI(t,e){return e=+e,function(){Yn(this,t).duration=e}}function kI(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?yI:wI)(e,t)):vn(this.node(),e).duration}function xI(t,e){if(typeof e!="function")throw new Error;return function(){Yn(this,t).ease=e}}function CI(t){var e=this._id;return arguments.length?this.each(xI(e,t)):vn(this.node(),e).ease}function vI(t,e){return function(){var i=e.apply(this,arguments);if(typeof i!="function")throw new Error;Yn(this,t).ease=i}}function DI(t){if(typeof t!="function")throw new Error;return this.each(vI(this._id,t))}function EI(t){typeof t!="function"&&(t=t9(t));for(var e=this._groups,i=e.length,a=new Array(i),r=0;r<i;++r)for(var n=e[r],o=n.length,s=a[r]=[],l,u=0;u<o;++u)(l=n[u])&&t.call(l,l.__data__,u,n)&&s.push(l);return new bo(a,this._parents,this._name,this._id)}function BI(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,i=t._groups,a=e.length,r=i.length,n=Math.min(a,r),o=new Array(a),s=0;s<n;++s)for(var l=e[s],u=i[s],f=l.length,d=o[s]=new Array(f),h,_=0;_<f;++_)(h=l[_]||u[_])&&(d[_]=h);for(;s<a;++s)o[s]=e[s];return new bo(o,this._parents,this._name,this._id)}function SI(t){return(t+"").trim().split(/^|\s+/).every(function(e){var i=e.indexOf(".");return i>=0&&(e=e.slice(0,i)),!e||e==="start"})}function jI(t,e,i){var a,r,n=SI(e)?y2:Yn;return function(){var o=n(this,t),s=o.on;s!==a&&(r=(a=s).copy()).on(e,i),o.on=r}}function LI(t,e){var i=this._id;return arguments.length<2?vn(this.node(),i).on.on(t):this.each(jI(i,t,e))}function MI(t){return function(){var e=this.parentNode;for(var i in this.__transition)if(+i!==t)return;e&&e.removeChild(this)}}function OI(){return this.on("end.remove",MI(this._id))}function qI(t){var e=this._name,i=this._id;typeof t!="function"&&(t=c2(t));for(var a=this._groups,r=a.length,n=new Array(r),o=0;o<r;++o)for(var s=a[o],l=s.length,u=n[o]=new Array(l),f,d,h=0;h<l;++h)(f=s[h])&&(d=t.call(f,f.__data__,h,s))&&("__data__"in f&&(d.__data__=f.__data__),u[h]=d,ug(u[h],e,i,h,u,vn(f,i)));return new bo(n,this._parents,e,i)}function TI(t){var e=this._name,i=this._id;typeof t!="function"&&(t=e9(t));for(var a=this._groups,r=a.length,n=[],o=[],s=0;s<r;++s)for(var l=a[s],u=l.length,f,d=0;d<u;++d)if(f=l[d]){for(var h=t.call(f,f.__data__,d,l),_,F=vn(f,i),c=0,m=h.length;c<m;++c)(_=h[c])&&ug(_,e,i,c,h,F);n.push(h),o.push(f)}return new bo(n,o,e,i)}var II=X1.prototype.constructor;function PI(){return new II(this._groups,this._parents)}function HI(t,e){var i,a,r;return function(){var n=fu(this,t),o=(this.style.removeProperty(t),fu(this,t));return n===o?null:n===i&&o===a?r:r=e(i=n,a=o)}}function T9(t){return function(){this.style.removeProperty(t)}}function UI(t,e,i){var a,r=i+"",n;return function(){var o=fu(this,t);return o===r?null:o===a?n:n=e(a=o,i)}}function RI(t,e,i){var a,r,n;return function(){var o=fu(this,t),s=i(this),l=s+"";return s==null&&(l=s=(this.style.removeProperty(t),fu(this,t))),o===l?null:o===a&&l===r?n:(r=l,n=e(a=o,s))}}function QI(t,e){var i,a,r,n="style."+e,o="end."+n,s;return function(){var l=Yn(this,t),u=l.on,f=l.value[n]==null?s||(s=T9(e)):void 0;(u!==i||r!==f)&&(a=(i=u).copy()).on(o,r=f),l.on=a}}function NI(t,e,i){var a=(t+="")=="transform"?tI:q9;return e==null?this.styleTween(t,HI(t,a)).on("end.style."+t,T9(t)):typeof e=="function"?this.styleTween(t,RI(t,a,B2(this,"style."+t,e))).each(QI(this._id,t)):this.styleTween(t,UI(t,a,e),i).on("end.style."+t,null)}function $I(t,e,i){return function(a){this.style.setProperty(t,e.call(this,a),i)}}function zI(t,e,i){var a,r;function n(){var o=e.apply(this,arguments);return o!==r&&(a=(r=o)&&$I(t,o,i)),a}return n._value=e,n}function WI(t,e,i){var a="style."+(t+="");if(arguments.length<2)return(a=this.tween(a))&&a._value;if(e==null)return this.tween(a,null);if(typeof e!="function")throw new Error;return this.tween(a,zI(t,e,i??""))}function GI(t){return function(){this.textContent=t}}function VI(t){return function(){var e=t(this);this.textContent=e??""}}function KI(t){return this.tween("text",typeof t=="function"?VI(B2(this,"text",t)):GI(t==null?"":t+""))}function XI(t){return function(e){this.textContent=t.call(this,e)}}function YI(t){var e,i;function a(){var r=t.apply(this,arguments);return r!==i&&(e=(i=r)&&XI(r)),e}return a._value=t,a}function ZI(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,YI(t))}function JI(){for(var t=this._name,e=this._id,i=I9(),a=this._groups,r=a.length,n=0;n<r;++n)for(var o=a[n],s=o.length,l,u=0;u<s;++u)if(l=o[u]){var f=vn(l,e);ug(l,t,i,u,o,{time:f.time+f.delay+f.duration,delay:0,duration:f.duration,ease:f.ease})}return new bo(a,this._parents,t,i)}function eP(){var t,e,i=this,a=i._id,r=i.size();return new Promise(function(n,o){var s={value:o},l={value:function(){--r===0&&n()}};i.each(function(){var u=Yn(this,a),f=u.on;f!==t&&(e=(t=f).copy(),e._.cancel.push(s),e._.interrupt.push(s),e._.end.push(l)),u.on=e}),r===0&&n()})}var tP=0;function bo(t,e,i,a){this._groups=t,this._parents=e,this._name=i,this._id=a}function I9(){return++tP}var el=X1.prototype;bo.prototype={constructor:bo,select:qI,selectAll:TI,filter:EI,merge:BI,selection:PI,transition:JI,call:el.call,nodes:el.nodes,node:el.node,size:el.size,empty:el.empty,each:el.each,on:LI,attr:hI,attrTween:mI,style:NI,styleTween:WI,text:KI,textTween:ZI,remove:OI,tween:nI,delay:bI,duration:kI,ease:CI,easeVarying:DI,end:eP,[Symbol.iterator]:el[Symbol.iterator]};function iP(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var aP={time:null,delay:0,duration:250,ease:iP};function rP(t,e){for(var i;!(i=t.__transition)||!(i=i[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return i}function nP(t){var e,i;t instanceof bo?(e=t._id,t=t._name):(e=I9(),(i=aP).time=m2(),t=t==null?null:t+"");for(var a=this._groups,r=a.length,n=0;n<r;++n)for(var o=a[n],s=o.length,l,u=0;u<s;++u)(l=o[u])&&ug(l,t,e,u,o,i||rP(l,e));return new bo(a,this._parents,t,e)}X1.prototype.interrupt=TT,X1.prototype.transition=nP,M.createContext({data:[],chartDescription:"",yAxisLabel:"",margin:{top:0,right:0,bottom:0,left:0},dimensions:{width:0,height:0},svgRef:{current:null}});const tl={tabs:"Tabs-module_tabs_kOc8X","tabs-filled":"Tabs-module_tabs-filled_FSlrb",enableResponsiveSelect:"Tabs-module_enableResponsiveSelect_ujx-m",embeddedInCard:"Tabs-module_embeddedInCard_THXGW",tabs_select:"Tabs-module_tabs_select_V0sry",tabs_select_trigger:"Tabs-module_tabs_select_trigger_TY1OK",tabs_select_menu:"Tabs-module_tabs_select_menu_Guz9G"};function oP({children:t,value:e,className:i,responsiveDropdown:a=!0,responsiveDropdownClassName:r,style:n="default",embeddedInCard:o=!1,onChange:s}){const l=m=>{s==null||s(m)},u=({value:m})=>{s==null||s(m)},f=pe(i,{[tl.tabs]:n==="compact"||n==="default",[tl["tabs-filled"]]:n==="filled",[tl.enableResponsiveSelect]:a}),d=pe(i,{[tl.tabs_select]:!0,[tl.embeddedInCard]:o}),h=pe(i,tl.tabs_select_trigger,r),_=pe(i,tl.tabs_select_menu),F=M.Children.map(t,m=>{if(M.isValidElement(m))return M.cloneElement(m,{onClick:l,active:e===m.props.value,style:n})}),c=M.Children.map(t,m=>{if(M.isValidElement(m)){const{children:A,value:p,disabled:w}=m.props;return{label:A,value:p,disabled:w}}});return g.jsxs(g.Fragment,{children:[g.jsx("div",{className:f,role:"tablist","aria-orientation":"horizontal",children:F}),a&&g.jsx("div",{className:d,role:"tablist",children:g.jsx(T5,{"data-testid":"tabs-select",options:Ze(c,[]),onChange:u,selectedOptionValue:e,triggerClassName:h,menuClassName:_})})]})}const of={tab:"Tab-module_tab_Gs-G1","tab--compact":"Tab-module_tab--compact_KFjXU","tab--active":"Tab-module_tab--active_4hYQV","tab-filled":"Tab-module_tab-filled_PQeOI","tab-filled--active":"Tab-module_tab-filled--active_tsKdF"};function P9({active:t=!1,children:e,disabled:i=!1,href:a,onClick:r=Ei,value:n,style:o="default","data-testid":s}){const l=()=>{r(n)},u=a&&!i?"a":"button",f=o==="compact"||o==="default"?pe(of.tab,{[of["tab--active"]]:t,[of["tab--compact"]]:o==="compact"}):pe(of["tab-filled"],{[of["tab-filled--active"]]:t});return g.jsx(u,{"aria-selected":t,className:f,disabled:i,href:a,onClick:l,role:"tab","data-testid":s,type:"button",children:e})}function il(t){"@babel/helpers - typeof";return il=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},il(t)}function sP(t,e){if(il(t)!=="object"||t===null)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var a=i.call(t,e);if(il(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function H9(t){var e=sP(t,"string");return il(e)==="symbol"?e:String(e)}function al(t,e,i){return e=H9(e),e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var S2="Invariant Violation",U9=Object.setPrototypeOf,lP=U9===void 0?function(t,e){return t.__proto__=e,t}:U9,Jt=function(t){Dr(e,t);function e(i){i===void 0&&(i=S2);var a=t.call(this,typeof i=="number"?S2+": "+i+" (see https://github.com/apollographql/invariant-packages)":i)||this;return a.framesToPop=1,a.name=S2,lP(a,e.prototype),a}return e}(Error);function Le(t,e){if(!t)throw new Jt(e)}var R9=["debug","log","warn","error","silent"],uP=R9.indexOf("log");function gg(t){return function(){if(R9.indexOf(t)>=uP){var e=console[t]||console.log;return e.apply(console,arguments)}}}(function(t){t.debug=gg("debug"),t.log=gg("log"),t.warn=gg("warn"),t.error=gg("error")})(Le||(Le={}));function Zr(t){try{return t()}catch{}}const Q9=Zr(function(){return globalThis})||Zr(function(){return window})||Zr(function(){return self})||Zr(function(){return global})||Zr(function(){return Zr.constructor("return this")()});var N9="__",$9=[N9,N9].join("DEV");function fP(){try{return!!__DEV__}catch{return Object.defineProperty(Q9,$9,{value:Zr(function(){return process.env.NODE_ENV})!=="production",enumerable:!1,configurable:!0,writable:!0}),Q9[$9]}}const j2=fP();function ss(t){try{return t()}catch{}}var L2=ss(function(){return globalThis})||ss(function(){return window})||ss(function(){return self})||ss(function(){return global})||ss(function(){return ss.constructor("return this")()}),M2=!1;function dP(){L2&&!ss(function(){return process.env.NODE_ENV})&&!ss(function(){return process})&&(Object.defineProperty(L2,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),M2=!0)}dP();function z9(){M2&&(delete L2.process,M2=!1)}function _g(t,e){if(!!!t)throw new Error(e)}function hP(t){return typeof t=="object"&&t!==null}function gP(t,e){if(!!!t)throw new Error("Unexpected invariant triggered.")}const _P=/\r\n|[\n\r]/g;function O2(t,e){let i=0,a=1;for(const r of t.body.matchAll(_P)){if(typeof r.index=="number"||gP(!1),r.index>=e)break;i=r.index+r[0].length,a+=1}return{line:a,column:e+1-i}}function cP(t){return W9(t.source,O2(t.source,t.start))}function W9(t,e){const i=t.locationOffset.column-1,a="".padStart(i)+t.body,r=e.line-1,n=t.locationOffset.line-1,o=e.line+n,s=e.line===1?i:0,l=e.column+s,u=`${t.name}:${o}:${l}
|
|
92
92
|
`,f=a.split(/\r\n|[\n\r]/g),d=f[r];if(d.length>120){const h=Math.floor(l/80),_=l%80,F=[];for(let c=0;c<d.length;c+=80)F.push(d.slice(c,c+80));return u+G9([[`${o} |`,F[0]],...F.slice(1,h+1).map(c=>["|",c]),["|","^".padStart(_)],["|",F[h+1]]])}return u+G9([[`${o-1} |`,f[r-1]],[`${o} |`,d],["|","^".padStart(l)],[`${o+1} |`,f[r+1]]])}function G9(t){const e=t.filter(([a,r])=>r!==void 0),i=Math.max(...e.map(([a])=>a.length));return e.map(([a,r])=>a.padStart(i)+(r?" "+r:"")).join(`
|
|
93
93
|
`)}function FP(t){const e=t[0];return e==null||"kind"in e||"length"in e?{nodes:e,source:t[1],positions:t[2],path:t[3],originalError:t[4],extensions:t[5]}:e}class q2 extends Error{constructor(e,...i){var a,r,n;const{nodes:o,source:s,positions:l,path:u,originalError:f,extensions:d}=FP(i);super(e),this.name="GraphQLError",this.path=u??void 0,this.originalError=f??void 0,this.nodes=V9(Array.isArray(o)?o:o?[o]:void 0);const h=V9((a=this.nodes)===null||a===void 0?void 0:a.map(F=>F.loc).filter(F=>F!=null));this.source=s??(h==null||(r=h[0])===null||r===void 0?void 0:r.source),this.positions=l??(h==null?void 0:h.map(F=>F.start)),this.locations=l&&s?l.map(F=>O2(s,F)):h==null?void 0:h.map(F=>O2(F.source,F.start));const _=hP(f==null?void 0:f.extensions)?f==null?void 0:f.extensions:void 0;this.extensions=(n=d??_)!==null&&n!==void 0?n:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),f!=null&&f.stack?Object.defineProperty(this,"stack",{value:f.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,q2):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const i of this.nodes)i.loc&&(e+=`
|
|
94
94
|
|