iobroker.javascript 10.2.4 → 10.3.0
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 +10 -21
- package/admin/assets/AiChatPanel-CpY4Bun-.js +27 -0
- package/admin/assets/{AiChatService-Bsp_rhVx.js → AiChatService-QKcpW4jQ.js} +1 -1
- package/admin/assets/AiDiffView-DscPfZ38.js +1 -0
- package/admin/assets/{AiInlineProvider-BxOW88xU.js → AiInlineProvider-DTSPKoXG.js} +1 -1
- package/admin/assets/BlocklyEditor-BZyoN1JE.js +301 -0
- package/admin/assets/Compile-B0uHjrBE.css +1 -0
- package/admin/assets/Compile-Oss28m_f.js +165 -0
- package/admin/assets/Debugger-teJTIU-2.js +15 -0
- package/admin/assets/Documentation-uz4Ut9pT.js +4339 -0
- package/admin/assets/ExpandMore-V5Ix1QB1.js +1 -0
- package/admin/assets/FbEditor-B8S-mCvc.css +1 -0
- package/admin/assets/FbEditor-aOZ-RpPV.js +15 -0
- package/admin/assets/Import-BIC5Ee9z.js +1 -0
- package/admin/assets/NotificationsActive-BdzH44gp.js +1 -0
- package/admin/assets/RulesEditor-CcDVthPa.js +1 -0
- package/admin/assets/{ScriptEditor-BCGahS47.js → ScriptEditor-CviB6Hif.js} +2 -2
- package/admin/assets/ScriptEditorVanillaMonaco-ByuXwybM.js +3 -0
- package/admin/assets/Send-Mdo32jMb.js +1 -0
- package/admin/assets/_virtual_mf-localSharedImportMap___mfe_internal__iobroker_javascript__mf_owner__1-BnL93BgK.js +1 -0
- package/admin/assets/_virtual_mf___mfe_internal__iobroker_javascript__mf_owner__180366418666083__loadShare___mf_0_iobroker_mf_1_gui_mf_2_components__loadShare__.js-NI-3Uv4e.js +1217 -0
- package/admin/assets/_virtual_mf___mfe_internal__iobroker_javascript__mf_owner__180366418666083__loadShare__react_mf_2_dom_mf_1_client__loadShare__.js-DVaMIZyC.js +9 -0
- package/admin/assets/aiPromptBuilder-yTB6N2VT.js +1 -0
- package/admin/assets/blocklyTheme-CGhU3cEO.js +1 -0
- package/admin/assets/blocks_action-BQ4O7NRE.js +1 -0
- package/admin/assets/{blocks_convert-CLb0DLyc.js → blocks_convert-0VBjfhqQ.js} +1 -1
- package/admin/assets/blocks_logic-DAo99xDr.js +1 -0
- package/admin/assets/blocks_number-C--e19NU.js +1 -0
- package/admin/assets/blocks_object-D0TPhdzg.js +1 -0
- package/admin/assets/blocks_procedures-DgTxgXdB.js +3 -0
- package/admin/assets/{blocks_sendto-BxCMg9X4.js → blocks_sendto-CRIrtOUc.js} +1 -1
- package/admin/assets/blocks_switch-b_GYfF0n.js +2 -0
- package/admin/assets/blocks_system-BdkUdSsc.js +1 -0
- package/admin/assets/blocks_text-DSFhEVOf.js +1 -0
- package/admin/assets/blocks_time-CqALAiJp.js +1 -0
- package/admin/assets/blocks_timeout-yrOD2pZp.js +1 -0
- package/admin/assets/{blocks_trigger-XivsIDE5.js → blocks_trigger-DeAYXpSS.js} +1 -1
- package/admin/assets/{cronHoverProvider-BZMOFHO_.js → cronHoverProvider-DoO2_tpG.js} +1 -1
- package/admin/assets/{field_cron-CxKi__cX.js → field_cron-D3Ts_s9M.js} +1 -1
- package/admin/assets/{field_oid-CJIYiGxY.js → field_oid-BRNXredg.js} +1 -1
- package/admin/assets/{field_script-CehplM7L.js → field_script-3X6ousg7.js} +1 -1
- package/admin/assets/helpers-BTGaTdnT.js +1 -0
- package/admin/assets/{hostInit-Bs-bStPF.js → hostInit-2h2Cbsaw.js} +1 -1
- package/admin/assets/iconLibraryData-B5fiyl1C.js +1 -0
- package/admin/assets/index-BHhhebRG.css +1 -0
- package/admin/assets/index-CbQlIKB_.js +156 -0
- package/admin/assets/{inlineChatWidget-NIvdRGmU.js → inlineChatWidget-BwQVCPkx.js} +1 -1
- package/admin/assets/{inlineDiffController-Qh402KhK.js → inlineDiffController-BsDDsDHn.js} +1 -1
- package/admin/assets/loadBlocks-RpqM7PwO.js +117 -0
- package/admin/assets/loadMonaco-BVOEahNw.js +1 -0
- package/admin/assets/{mf-entry-bootstrap-0-019228a5.js → mf-entry-bootstrap-0-0deef484.js} +3 -3
- package/admin/assets/{pendingShares-B3t6ewri.js → pendingShares-BaAadIDv.js} +1 -1
- package/admin/assets/reactour.esm-DX9ZgYlx.js +137 -0
- package/admin/assets/stateHoverProvider-BEadnSXp.js +11 -0
- package/admin/assets/tileFbd-CWAy7R7m.svg +85 -0
- package/admin/custom/assets/Components-FkGDIlId.js +1 -0
- package/admin/custom/assets/_virtual_mf-localSharedImportMap___mfe_internal__ConfigCustomJavascriptSet__mf_owner__1-Cs88NUCd.js +1 -0
- package/admin/custom/assets/_virtual_mf___mfe_internal__ConfigCustomJavascriptSet__mf_owner__37453319418803__loadShare___mf_0_emotion_mf_1_react__loadShare__.js-P-8ffWXw.js +1 -0
- package/admin/custom/assets/_virtual_mf___mfe_internal__ConfigCustomJavascriptSet__mf_owner__37453319418803__loadShare___mf_0_emotion_mf_1_styled__loadShare__.js-ZVuRAEo5.js +1 -0
- package/admin/custom/assets/_virtual_mf___mfe_internal__ConfigCustomJavascriptSet__mf_owner__37453319418803__loadShare___mf_0_iobroker_mf_1_gui_mf_2_components__loadShare__.js-DVb0ZZ1Q.js +1217 -0
- package/admin/custom/assets/_virtual_mf___mfe_internal__ConfigCustomJavascriptSet__mf_owner__37453319418803__loadShare___mf_0_iobroker_mf_1_json_mf_2_config__loadShare__.js-Dna3WF04.js +1 -0
- package/admin/custom/assets/_virtual_mf___mfe_internal__ConfigCustomJavascriptSet__mf_owner__37453319418803__loadShare___mf_0_mui_mf_1_x_mf_2_date_mf_2_pickers__loadShare__.js-DcjdCGAx.js +1 -0
- package/admin/custom/assets/_virtual_mf___mfe_internal__ConfigCustomJavascriptSet__mf_owner__37453319418803__loadShare__date_mf_2_fns__loadShare__.js-CnhNjamd.js +1 -0
- package/admin/custom/assets/{_virtual_mf___mfe_internal__ConfigCustomJavascriptSet__mf_owner__136440932828998__loadShare__leaflet__loadShare__.js-im3edKNs.js → _virtual_mf___mfe_internal__ConfigCustomJavascriptSet__mf_owner__37453319418803__loadShare__leaflet__loadShare__.js-Dz7BFJqH.js} +1 -1
- package/admin/custom/assets/_virtual_mf___mfe_internal__ConfigCustomJavascriptSet__mf_owner__37453319418803__loadShare__react_mf_2_dom_mf_1_client__loadShare__.js-B0olko2J.js +1 -0
- package/admin/custom/assets/_virtual_mf___mfe_internal__ConfigCustomJavascriptSet__mf_owner__37453319418803__prebuild___mf_0_iobroker_mf_1_json_mf_2_config__prebuild__-CzN4reh_.js +122 -0
- package/admin/custom/assets/_virtual_mf___mfe_internal__ConfigCustomJavascriptSet__mf_owner__37453319418803__prebuild__leaflet__prebuild__-xPcBaiTQ.js +1 -0
- package/admin/custom/assets/{_virtual_mf___mfe_internal__ConfigCustomJavascriptSet__mf_owner__136440932828998__prebuild__react_mf_1_jsx_mf_2_runtime__prebuild__-Byvr2uOb.js → _virtual_mf___mfe_internal__ConfigCustomJavascriptSet__mf_owner__37453319418803__prebuild__react_mf_1_jsx_mf_2_runtime__prebuild__-CXpyx8Vy.js} +1 -1
- package/admin/custom/assets/_virtual_mf___mfe_internal__ConfigCustomJavascriptSet__mf_owner__37453319418803__prebuild__react_mf_2_dom_mf_1_client__prebuild__-DuFBE5fh.js +9 -0
- package/admin/custom/assets/{hostInit-IJMNq3h7.js → hostInit-6oh4UY2k.js} +1 -1
- package/admin/custom/assets/iconLibraryData-B5fiyl1C.js +1 -0
- package/admin/custom/assets/index-BrlyEy6J.js +1 -0
- package/admin/custom/assets/lib-BmDlTzq2.js +3 -0
- package/admin/custom/assets/{mf-entry-bootstrap-0-f149bc46.js → mf-entry-bootstrap-0-ad1cd7d0.js} +3 -3
- package/admin/custom/assets/pendingShares-kV2kwejX.js +1 -0
- package/admin/custom/assets/rolldown-runtime-Dqfqb5bO.js +1 -0
- package/admin/custom/customComponents.js +3 -2
- package/admin/custom/i18n/en.json +39 -39
- package/admin/custom/i18n/es.json +1 -1
- package/admin/custom/i18n/fr.json +2 -2
- package/admin/custom/i18n/it.json +1 -1
- package/admin/custom/i18n/nl.json +2 -2
- package/admin/custom/i18n/pt.json +2 -2
- package/admin/custom/i18n/ru.json +2 -2
- package/admin/custom/i18n/uk.json +1 -1
- package/admin/custom/i18n/zh-cn.json +1 -1
- package/admin/i18n/de.json +1 -1
- package/admin/i18n/en.json +115 -115
- package/admin/i18n/fr.json +115 -115
- package/admin/i18n/it.json +115 -115
- package/admin/i18n/nl.json +115 -115
- package/admin/i18n/pl.json +1 -1
- package/admin/i18n/pt.json +115 -115
- package/admin/i18n/ru.json +115 -115
- package/admin/i18n/uk.json +115 -115
- package/admin/i18n/zh-cn.json +115 -115
- package/admin/mf-manifest.json +1 -1
- package/admin/mf-stats.json +1 -1
- package/admin/remoteEntry.js +2 -2
- package/admin/tab.html +3 -7
- package/build/lib/fb/analyze.js +288 -0
- package/build/lib/fb/analyze.js.map +1 -0
- package/build/lib/fb/blocks.js +605 -0
- package/build/lib/fb/blocks.js.map +1 -0
- package/build/lib/fb/generate.js +326 -0
- package/build/lib/fb/generate.js.map +1 -0
- package/build/lib/fb/graph.js +240 -0
- package/build/lib/fb/graph.js.map +1 -0
- package/build/lib/fb/index.js +57 -0
- package/build/lib/fb/index.js.map +1 -0
- package/build/lib/fb/js.js +33 -0
- package/build/lib/fb/js.js.map +1 -0
- package/build/lib/fb/layout.js +205 -0
- package/build/lib/fb/layout.js.map +1 -0
- package/build/lib/fb/library.js +657 -0
- package/build/lib/fb/library.js.map +1 -0
- package/build/lib/fb/runtime.js +793 -0
- package/build/lib/fb/runtime.js.map +1 -0
- package/build/lib/fb/time.js +76 -0
- package/build/lib/fb/time.js.map +1 -0
- package/build/lib/fb/types.js +19 -0
- package/build/lib/fb/types.js.map +1 -0
- package/build/lib/fb/user.js +78 -0
- package/build/lib/fb/user.js.map +1 -0
- package/build/lib/javascript.d.ts +17 -17
- package/build/lib/mirror.js +4 -0
- package/build/lib/mirror.js.map +1 -1
- package/build/lib/sandbox.js +44 -0
- package/build/lib/sandbox.js.map +1 -1
- package/build/main.js +66 -1
- package/build/main.js.map +1 -1
- package/build/types.d.ts +9 -1
- package/docs/de/README.md +1 -1
- package/docs/de/fbd.md +274 -0
- package/docs/de/javascript.md +2167 -0
- package/docs/en/fbd.md +260 -0
- package/docs/en/javascript.md +28 -30
- package/io-package.json +52 -28
- package/package.json +8 -8
- package/admin/assets/AiChatPanel-AZko1BsN.js +0 -27
- package/admin/assets/AiDiffView-Cri2QFh1.js +0 -1
- package/admin/assets/Debugger-CVDh3kgz.js +0 -15
- package/admin/assets/Error-Ch2nx5uC.js +0 -1
- package/admin/assets/Import-XKVP-nRT.js +0 -1
- package/admin/assets/RulesEditor-DsO4cKIk.js +0 -1
- package/admin/assets/ScriptEditorVanillaMonaco-BDAw2Bw6.js +0 -3
- package/admin/assets/_virtual_mf-localSharedImportMap___mfe_internal__iobroker_javascript__mf_owner__1-BMAFQFoH.js +0 -1
- package/admin/assets/_virtual_mf___mfe_internal__iobroker_javascript__mf_owner__113183188387379__loadShare___mf_0_iobroker_mf_1_gui_mf_2_components__loadShare__.js-D-gi6Mty.js +0 -1217
- package/admin/assets/_virtual_mf___mfe_internal__iobroker_javascript__mf_owner__113183188387379__loadShare__react_mf_2_dom_mf_1_client__loadShare__.js-CDctpiPx.js +0 -9
- package/admin/assets/aiPromptBuilder-aJfHa-eU.js +0 -1
- package/admin/assets/blocks_action-DS28sNfo.js +0 -1
- package/admin/assets/blocks_logic-Dpp2fwlu.js +0 -1
- package/admin/assets/blocks_number-N4IfHvYD.js +0 -1
- package/admin/assets/blocks_object-uK7FHVhS.js +0 -1
- package/admin/assets/blocks_procedures-C_KD0Bm6.js +0 -3
- package/admin/assets/blocks_switch-C8Rls5pK.js +0 -2
- package/admin/assets/blocks_system-CEQnj5fY.js +0 -1
- package/admin/assets/blocks_text-BDEWxu0P.js +0 -1
- package/admin/assets/blocks_time-aHQQK1Uz.js +0 -1
- package/admin/assets/blocks_timeout-C2L93TLJ.js +0 -1
- package/admin/assets/helpers-DiwtLpXM.js +0 -1
- package/admin/assets/index-B0FfAYMN.js +0 -871
- package/admin/assets/index-CXaeqPRy.css +0 -1
- package/admin/assets/stateHoverProvider-BkW15VMN.js +0 -9
- package/admin/assets/virtualExposes-DgGB-18P.js +0 -1
- package/admin/assets/virtual_mf-REMOTE_ENTRY_ID___mfe_internal__iobroker_javascript__remoteEntry_js-CiidVc0O.js +0 -1
- package/admin/assets/virtual_mf-exposes___mfe_internal__iobroker_javascript__remoteEntry_js-ChiJXsfH.js +0 -1
- package/admin/custom/assets/Components-SGnA-3W_.js +0 -1
- package/admin/custom/assets/_virtual_mf-localSharedImportMap___mfe_internal__ConfigCustomJavascriptSet__mf_owner__1-Bx3X6TLB.js +0 -1
- package/admin/custom/assets/_virtual_mf___mfe_internal__ConfigCustomJavascriptSet__mf_owner__136440932828998__loadShare___mf_0_emotion_mf_1_react__loadShare__.js-Cc7MmJgr.js +0 -1
- package/admin/custom/assets/_virtual_mf___mfe_internal__ConfigCustomJavascriptSet__mf_owner__136440932828998__loadShare___mf_0_emotion_mf_1_styled__loadShare__.js-CdvEvX5z.js +0 -1
- package/admin/custom/assets/_virtual_mf___mfe_internal__ConfigCustomJavascriptSet__mf_owner__136440932828998__loadShare___mf_0_iobroker_mf_1_gui_mf_2_components__loadShare__.js-D5NaoeJi.js +0 -1217
- package/admin/custom/assets/_virtual_mf___mfe_internal__ConfigCustomJavascriptSet__mf_owner__136440932828998__loadShare___mf_0_iobroker_mf_1_json_mf_2_config__loadShare__.js-Cbgw_a3f.js +0 -1
- package/admin/custom/assets/_virtual_mf___mfe_internal__ConfigCustomJavascriptSet__mf_owner__136440932828998__loadShare___mf_0_mui_mf_1_x_mf_2_date_mf_2_pickers__loadShare__.js-CMr75K5w.js +0 -1
- package/admin/custom/assets/_virtual_mf___mfe_internal__ConfigCustomJavascriptSet__mf_owner__136440932828998__loadShare__date_mf_2_fns__loadShare__.js-DKIvPDPX.js +0 -1
- package/admin/custom/assets/_virtual_mf___mfe_internal__ConfigCustomJavascriptSet__mf_owner__136440932828998__loadShare__react_mf_2_dom_mf_1_client__loadShare__.js-D50aYKgD.js +0 -1
- package/admin/custom/assets/_virtual_mf___mfe_internal__ConfigCustomJavascriptSet__mf_owner__136440932828998__prebuild___mf_0_iobroker_mf_1_json_mf_2_config__prebuild__-CEzQFX7o.js +0 -122
- package/admin/custom/assets/_virtual_mf___mfe_internal__ConfigCustomJavascriptSet__mf_owner__136440932828998__prebuild__leaflet__prebuild__-BUDmnAcx.js +0 -1
- package/admin/custom/assets/_virtual_mf___mfe_internal__ConfigCustomJavascriptSet__mf_owner__136440932828998__prebuild__react_mf_2_dom_mf_1_client__prebuild__-D_1oh1WH.js +0 -9
- package/admin/custom/assets/index-7r4VklMp.js +0 -1
- package/admin/custom/assets/lib-DDU2Oe48.js +0 -3
- package/admin/custom/assets/pendingShares-DarGQhyO.js +0 -1
- package/admin/custom/assets/rolldown-runtime-BcKkbAw3.js +0 -1
- package/admin/custom/assets/virtualExposes-C0IqMANQ.js +0 -1
- package/admin/custom/assets/virtual_mf-REMOTE_ENTRY_ID___mfe_internal__ConfigCustomJavascriptSet__customComponents_js-CqKvh5Xu.js +0 -1
- package/admin/custom/assets/virtual_mf-exposes___mfe_internal__ConfigCustomJavascriptSet__customComponents_js-DrBN_S5o.js +0 -2
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import{o as e,t}from"./rolldown-runtime-C0FnF6B9.js";import{Ar as n,Cr as r,Er as i,Gn as a,Nr as o,Or as s,Sr as c,Tr as l,br as u,gr as d,hr as f,ir as p,kr as m,mr as h,nr as g,pr as _,ur as v,vr as y}from"./_virtual_mf___mfe_internal__iobroker_javascript__mf_owner__180366418666083__loadShare___mf_0_iobroker_mf_1_gui_mf_2_components__loadShare__.js-NI-3Uv4e.js";o();function b(e){"@babel/helpers - typeof";return b=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},b(e)}function x(e,t){if(b(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(b(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function S(e){var t=x(e,`string`);return b(t)==`symbol`?t:t+``}function C(e,t,n){return(t=S(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=`focus-outline-hidden`;function T(){var e=this;document.addEventListener(`keydown`,function(t){e.focusByKeyboard=!0},!0),document.addEventListener(`mousedown`,function(t){e.focusByKeyboard=!1},!0),document.addEventListener(`focus`,function(t){e.updateVisibility()},!0),document.addEventListener(`focusout`,function(t){window.setTimeout(function(){document.hasFocus()||(e.focusByKeyboard=!0,e.updateVisibility())},0)}),this.updateVisibility()}T.prototype={focusByKeyboard:!0,updateVisibility:function(){this.hidden=!this.focusByKeyboard},set hidden(e){document.documentElement.classList.toggle(w,e)},get hidden(){return document.documentElement.classList.contains(w)}},new T;var E=t(((e,t)=>{(function(){var e={}.hasOwnProperty;function n(){for(var t=[],r=0;r<arguments.length;r++){var i=arguments[r];if(i){var a=typeof i;if(a===`string`||a===`number`)t.push(i);else if(Array.isArray(i)){if(i.length){var o=n.apply(null,i);o&&t.push(o)}}else if(a===`object`){if(i.toString===Object.prototype.toString)for(var s in i)e.call(i,s)&&i[s]&&t.push(s);else t.push(i.toString())}}}return t.join(` `)}t!==void 0&&t.exports?(n.default=n,t.exports=n):window.classNames=n})()})),ee=t((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=e.easeFunctions={linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return e*(2-e)},easeInOutQuad:function(e){return e<.5?2*e*e:-1+(4-2*e)*e},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return--e*e*e+1},easeInOutCubic:function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return 1- --e*e*e*e},easeInOutQuart:function(e){return e<.5?8*e*e*e*e:1-8*--e*e*e*e},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return 1+--e*e*e*e*e},easeInOutQuint:function(e){return e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e}},n=e.isNumeric=function(e){return!isNaN(parseFloat(e))&&isFinite(e)};e.setPosition=function(e,n,r,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:`easeInOutCubic`;return r>i?n:e+(n-e)*t[a](r/i)},e.calcEndPoint=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:window,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(n(e))return parseInt(e)+r;var i=t===window||t===document.documentElement?window.pageYOffset:t.scrollTop-t.getBoundingClientRect().top;return(e.nodeName.toLowerCase()===`html`?-i:e.getBoundingClientRect().top+i)+r}})),D=t(((e,t)=>{Object.defineProperty(e,"__esModule",{value:!0});var n=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},r=ee();e.default=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=t.duration,a=i===void 0?500:i,o=t.context,s=o===void 0?window:o,c=t.offset,l=c===void 0?0:c,u=t.ease,d=u===void 0?`easeInOutCubic`:u,f=t.callback;if((typeof window>`u`?`undefined`:n(window))===`object`){var p=s.scrollTop!==null&&s.scrollTop!==void 0?s.scrollTop:window.pageYOffset,m=(0,r.calcEndPoint)(e,s,l),h=performance.now(),g=window.requestAnimationFrame;(function t(){var n=performance.now()-h,i=(0,r.setPosition)(p,m,n,a,d);s===window?window.scroll(0,i):s.scrollTop=i,n>a?typeof f==`function`&&f(e):g(t)})()}},t.exports=e.default})),te=t(((e,t)=>{Object.defineProperty(e,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r=i(D());function i(e){return e&&e.__esModule?e:{default:e}}e.default=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.query,i=t===void 0?`[href^="#"]:not([href="#"]`:t,a=e.match,o=a===void 0?function(e){return document.getElementById(e.hash.substring(1))}:a,s=e.hashChange,c=s===void 0||s,l=e.scrollSmoothConfig,u=document.querySelectorAll(i),d=function(e){e.preventDefault();var t=o(e.target);t&&(c&&history.replaceState(null,null,`#`+t.id),(0,r.default)(t,n({},l)))};Array.from(u).map(function(e){e.addEventListener(`click`,d,!1)})},t.exports=e.default})),O=t(((e,t)=>{Object.defineProperty(e,"__esModule",{value:!0});function n(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}e.default=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.activeClass,r=t===void 0?`active`:t,i=e.query,a=i===void 0?`[href^="#"]:not([href="#"]):not([href="#0"])`:i,o=e.threshold,s=o===void 0?[.25,.5,.75]:o,c=e.detectType,l=c===void 0?`max`:c,u={threshold:s},d=function(e){return e.classList.remove(r)},f=function(e){return e.classList.add(r)},p=function(){document.querySelectorAll(`.`+r).forEach(d)},m=function(e){p(),f(document.querySelector(`a[href="#`+e.id+`"]`))},h=function(e){e.forEach(function(e){e.intersectionRatio>=Math[l].apply(Math,n(s))&&m(e.target)})},g=document.querySelectorAll(a),_=new IntersectionObserver(h,u);g.forEach(function(e){var t=document.querySelector(`#`+e.hash.slice(1));_.observe(t)})},t.exports=e.default})),ne=t(((e,t)=>{Object.defineProperty(e,"__esModule",{value:!0});var n=o(D()),r=ee(),i=o(te()),a=o(O());function o(e){return e&&e.__esModule?e:{default:e}}e.default={to:n.default,calcEndPoint:r.calcEndPoint,anchorScroll:i.default,observe:a.default},t.exports=e.default})),re=t(((e,t)=>{(function(e,n){typeof t==`object`&&t.exports?t.exports=n():e.Scrollparent=n()})(e,function(){var e=/(auto|scroll)/,t=function(e,n){return e.parentNode===null?n:t(e.parentNode,n.concat([e]))},n=function(e,t){return getComputedStyle(e,null).getPropertyValue(t)},r=function(e){return n(e,`overflow`)+n(e,`overflow-y`)+n(e,`overflow-x`)},i=function(t){return e.test(r(t))};return function(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var n=t(e.parentNode,[]),r=0;r<n.length;r+=1)if(i(n[r]))return n[r];return document.scrollingElement||document.documentElement}}})})),ie=t(((e,t)=>{var n=NaN,r=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt,c=typeof global==`object`&&global&&global.Object===Object&&global,l=typeof self==`object`&&self&&self.Object===Object&&self,u=c||l||Function(`return this`)(),d=Object.prototype.toString,f=Math.max,p=Math.min,m=function(){return u.Date.now()};function h(e,t,n){var r,i,a,o,s,c,l=0,u=!1,d=!1,h=!0;if(typeof e!=`function`)throw TypeError(`Expected a function`);t=y(t)||0,g(n)&&(u=!!n.leading,d=`maxWait`in n,a=d?f(y(n.maxWait)||0,t):a,h=`trailing`in n?!!n.trailing:h);function _(t){var n=r,a=i;return r=i=void 0,l=t,o=e.apply(a,n),o}function v(e){return l=e,s=setTimeout(S,t),u?_(e):o}function b(e){var n=e-c,r=e-l,i=t-n;return d?p(i,a-r):i}function x(e){var n=e-c,r=e-l;return c===void 0||n>=t||n<0||d&&r>=a}function S(){var e=m();if(x(e))return C(e);s=setTimeout(S,b(e))}function C(e){return s=void 0,h&&r?_(e):(r=i=void 0,o)}function w(){s!==void 0&&clearTimeout(s),l=0,r=c=i=s=void 0}function T(){return s===void 0?o:C(m())}function E(){var e=m(),n=x(e);if(r=arguments,i=this,c=e,n){if(s===void 0)return v(c);if(d)return s=setTimeout(S,t),_(c)}return s===void 0&&(s=setTimeout(S,t)),o}return E.cancel=w,E.flush=T,E}function g(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function _(e){return!!e&&typeof e==`object`}function v(e){return typeof e==`symbol`||_(e)&&d.call(e)==`[object Symbol]`}function y(e){if(typeof e==`number`)return e;if(v(e))return n;if(g(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=g(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=e.replace(r,``);var c=a.test(e);return c||o.test(e)?s(e.slice(2),c?2:8):i.test(e)?n:+e}t.exports=h})),ae=e(E()),oe=e(ne()),se=e(re()),ce=e(ie());function le(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var ue=`data-focus-lock`,de=`data-focus-lock-disabled`,fe=`data-no-focus-lock`,pe=`data-autofocus-inside`,me=`data-no-autofocus`;function he(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function ge(e,t){var n=m(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}o();var _e=typeof window<`u`?l:r,ve=new WeakMap;function ye(e,t){var n=ge(t||null,function(t){return e.forEach(function(e){return he(e,t)})});return _e(function(){var t=ve.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||he(e,null)}),i.forEach(function(e){r.has(e)||he(e,a)})}ve.set(n,e)},[e]),n}o();var be={width:`1px`,height:`0px`,padding:0,overflow:`hidden`,position:`fixed`,top:`1px`,left:`1px`},xe=function(){return xe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},xe.apply(this,arguments)};function Se(e){return e}function Ce(e,t){t===void 0&&(t=Se);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function we(e,t){return t===void 0&&(t=Se),Ce(e,t)}function Te(e){e===void 0&&(e={});var t=Ce(null);return t.options=xe({async:!0,ssr:!1},e),t}var Ee=we({},function(e){return{target:e.target,currentTarget:e.currentTarget}}),De=we(),Oe=we(),ke=Te({async:!0,ssr:typeof document<`u`});o();var Ae=_(void 0);o();var je=[],Me=d(function(e,t){var n,r=m(),a=r[0],o=r[1],l=s(),d=s(!1),f=s(null),h=m({})[1],g=e.children,_=e.disabled,y=_!==void 0&&_,b=e.noFocusGuards,x=b!==void 0&&b,S=e.persistentFocus,C=S!==void 0&&S,w=e.crossFrame,T=w===void 0||w,E=e.autoFocus,ee=E===void 0||E;e.allowTextSelection;var D=e.group,te=e.className,O=e.whiteList,ne=e.hasPositiveIndices,re=e.shards,ie=re===void 0?je:re,ae=e.as,oe=ae===void 0?`div`:ae,se=e.lockProps,ce=se===void 0?{}:se,le=e.sideCar,fe=e.returnFocus,pe=fe!==void 0&&fe,me=e.focusOptions,he=e.onActivation,ge=e.onDeactivation,_e=m({})[0],ve=u(function(e){var t=e.captureFocusRestore;if(!f.current){var n,r=(n=document)==null?void 0:n.activeElement;f.current=r,r!==document.body&&(f.current=t(r))}l.current&&he&&he(l.current),d.current=!0,h()},[he]),xe=u(function(){d.current=!1,ge&&ge(l.current),h()},[ge]),Se=u(function(e){var t=f.current;if(t){var n=(typeof t==`function`?t():t)||document.body,r=typeof pe==`function`?pe(n):pe;if(r){var i=typeof r==`object`?r:void 0;f.current=null,e?Promise.resolve().then(function(){return n.focus(i)}):n.focus(i)}}},[pe]),Ce=u(function(e){d.current&&Ee.useMedium(e)},[]),we=De.useMedium,Te=u(function(e){l.current!==e&&(l.current=e,o(e))},[]),Oe=p((n={},n[de]=y&&`disabled`,n[ue]=D,n),ce),Me=x!==!0,Ne=Me&&x!==`tail`,Pe=ye([t,Te]),Fe=i(function(){return{observed:l,shards:ie,enabled:!y,active:d.current}},[y,d.current,ie,a]);return v.createElement(c,null,Me&&[v.createElement(`div`,{key:`guard-first`,"data-focus-guard":!0,tabIndex:y?-1:0,style:be}),ne?v.createElement(`div`,{key:`guard-nearest`,"data-focus-guard":!0,tabIndex:y?-1:1,style:be}):null],!y&&v.createElement(le,{id:_e,sideCar:ke,observed:a,disabled:y,persistentFocus:C,crossFrame:T,autoFocus:ee,whiteList:O,shards:ie,onActivation:ve,onDeactivation:xe,returnFocus:Se,focusOptions:me,noFocusGuards:x}),v.createElement(oe,p({ref:Pe},Oe,{className:te,onBlur:we,onFocus:Ce}),v.createElement(Ae.Provider,{value:Fe},g)),Ne&&v.createElement(`div`,{"data-focus-guard":!0,tabIndex:y?-1:0,style:be}))});Me.propTypes={};function Ne(e,t){return Ne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ne(e,t)}function Pe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ne(e,t)}o();function Fe(e,t){function r(e){return e.displayName||e.name||`Component`}return function(i){var a=[],o;function s(){o=e(a.map(function(e){return e.props})),t(o)}var c=function(e){Pe(t,e);function t(){return e.apply(this,arguments)||this}t.peek=function(){return o};var n=t.prototype;return n.componentDidMount=function(){a.push(this),s()},n.componentDidUpdate=function(){s()},n.componentWillUnmount=function(){var e=a.indexOf(this);a.splice(e,1),s()},n.render=function(){return v.createElement(i,this.props)},t}(n);return C(c,`displayName`,`SideEffect(`+r(i)+`)`),c}}var k=function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},A=function(e){return Array.isArray(e)?e:[e]},Ie=function(e){return Array.isArray(e)?e[0]:e},Le=function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!t||!t.getPropertyValue?!1:t.getPropertyValue(`display`)===`none`||t.getPropertyValue(`visibility`)===`hidden`},Re=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},ze=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},Be=function(e){return e.hasAttribute(`inert`)},Ve=function(e,t){return!e||ze(e)||!Le(e)&&!Be(e)&&t(Re(e))},He=function(e,t){var n=e.get(t);if(n!==void 0)return n;var r=Ve(t,He.bind(void 0,e));return e.set(t,r),r},Ue=function(e,t){return e&&!ze(e)?Xe(e)?t(Re(e)):!1:!0},We=function(e,t){var n=e.get(t);if(n!==void 0)return n;var r=Ue(t,We.bind(void 0,e));return e.set(t,r),r},Ge=function(e){return e.dataset},Ke=function(e){return e.tagName===`BUTTON`},qe=function(e){return e.tagName===`INPUT`},Je=function(e){return qe(e)&&e.type===`radio`},Ye=function(e){return!qe(e)&&!Ke(e)||e.type!==`hidden`&&!e.disabled},Xe=function(e){var t=e.getAttribute(me);return![!0,`true`,``].includes(t)},Ze=function(e){var t;return!!(e&&(t=Ge(e))!=null&&t.focusGuard)},Qe=function(e){return!Ze(e)},$e=function(e){return!!e},et=function(e,t){var n=Math.max(0,e.tabIndex),r=Math.max(0,t.tabIndex),i=n-r,a=e.index-t.index;if(i){if(!n)return 1;if(!r)return-1}return i||a},tt=function(e){return e.tabIndex<0&&!e.hasAttribute(`tabindex`)?0:e.tabIndex},nt=function(e,t,n){return k(e).map(function(e,t){var r=tt(e);return{node:e,index:t,tabIndex:n&&r===-1?(e.dataset||{}).focusGuard?0:-1:r}}).filter(function(e){return!t||e.tabIndex>=0}).sort(et)},rt=[`button:enabled`,`select:enabled`,`textarea:enabled`,`input:enabled`,`a[href]`,`area[href]`,`summary`,`iframe`,`object`,`embed`,`audio[controls]`,`video[controls]`,`[tabindex]`,`[contenteditable]`,`[autofocus]`].join(`,`),it=`${rt}, [data-focus-guard]`,at=function(e,t){return k((e.shadowRoot||e).children).reduce(function(e,n){return e.concat(n.matches(t?it:rt)?[n]:[],at(n))},[])},ot=function(e,t){var n;return e instanceof HTMLIFrameElement&&(n=e.contentDocument)!=null&&n.body?st([e.contentDocument.body],t):[e]},st=function(e,t){return e.reduce(function(e,n){var r,i=at(n,t),a=(r=[]).concat.apply(r,i.map(function(e){return ot(e,t)}));return e.concat(a,n.parentNode?k(n.parentNode.querySelectorAll(rt)).filter(function(e){return e===n}):[])},[])},ct=function(e){return k(e.querySelectorAll(`[${pe}]`)).map(function(e){return st([e])}).reduce(function(e,t){return e.concat(t)},[])},lt=function(e,t){return k(e).filter(function(e){return He(t,e)}).filter(function(e){return Ye(e)})},ut=function(e,t){return t===void 0&&(t=new Map),k(e).filter(function(e){return We(t,e)})},dt=function(e,t,n){return nt(lt(st(e,n),t),!0,n)},ft=function(e,t){return nt(lt(st(e),t),!1)},pt=function(e,t){return lt(ct(e),t)},j=function(e,t){return e.shadowRoot?j(e.shadowRoot,t):Object.getPrototypeOf(e).contains!==void 0&&Object.getPrototypeOf(e).contains.call(e,t)?!0:k(e.children).some(function(e){var n;if(e instanceof HTMLIFrameElement){var r=(n=e.contentDocument)==null?void 0:n.body;return r?j(r,t):!1}return j(e,t)})},mt=function(e){for(var t=new Set,n=e.length,r=0;r<n;r+=1)for(var i=r+1;i<n;i+=1){var a=e[r].compareDocumentPosition(e[i]);(a&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(i),(a&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter(function(e,n){return!t.has(n)})},ht=function(e){return e.parentNode?ht(e.parentNode):e},gt=function(e){return A(e).filter(Boolean).reduce(function(e,t){var n=t.getAttribute(ue);return e.push.apply(e,n?mt(k(ht(t).querySelectorAll(`[${ue}="${n}"]:not([${de}="disabled"])`))):[t]),e},[])},_t=function(e){try{return e()}catch{return}},vt=function(e){if(e===void 0&&(e=document),e&&e.activeElement){var t=e.activeElement;return t.shadowRoot?vt(t.shadowRoot):t instanceof HTMLIFrameElement&&_t(function(){return t.contentWindow.document})?vt(t.contentWindow.document):t}},yt=function(e,t){return e===t},bt=function(e,t){return!!k(e.querySelectorAll(`iframe`)).some(function(e){return yt(e,t)})},xt=function(e,t){return t===void 0&&(t=vt(Ie(e).ownerDocument)),!t||t.dataset&&t.dataset.focusGuard?!1:gt(e).some(function(e){return j(e,t)||bt(e,t)})},St=function(e){e===void 0&&(e=document);var t=vt(e);return t?k(e.querySelectorAll(`[${fe}]`)).some(function(e){return j(e,t)}):!1},Ct=function(e,t){return t.filter(Je).filter(function(t){return t.name===e.name}).filter(function(e){return e.checked})[0]||e},wt=function(e,t){return Je(e)&&e.name?Ct(e,t):e},Tt=function(e){var t=new Set;return e.forEach(function(n){return t.add(wt(n,e))}),e.filter(function(e){return t.has(e)})},Et=function(e){return e[0]&&e.length>1?wt(e[0],e):e[0]},Dt=function(e,t){return e.indexOf(wt(t,e))},Ot=`NEW_FOCUS`,kt=function(e,t,n,r,i){var a=e.length,o=e[0],s=e[a-1],c=Ze(r);if(!(r&&e.indexOf(r)>=0)){var l=r===void 0?-1:n.indexOf(r),u=i?n.indexOf(i):l,d=i?e.indexOf(i):-1;if(l===-1)return d===-1?Ot:d;if(d===-1)return Ot;var f=l-u,p=n.indexOf(o),m=n.indexOf(s),h=Tt(n),g=r===void 0?-1:h.indexOf(r),_=i?h.indexOf(i):g,v=h.filter(function(e){return e.tabIndex>=0}),y=r===void 0?-1:v.indexOf(r),b=i?v.indexOf(i):y,x=y>=0&&b>=0?b-y:_-g;if(!f&&d>=0||t.length===0)return d;var S=Dt(e,t[0]),C=Dt(e,t[t.length-1]);if(l<=p&&c&&Math.abs(f)>1)return C;if(l>=m&&c&&Math.abs(f)>1)return S;if(f&&Math.abs(x)>1)return d;if(l<=p)return C;if(l>m)return S;if(f)return Math.abs(f)>1?d:(a+d+f)%a}},At=function(e){return function(t){var n,r=(n=Ge(t))==null?void 0:n.autofocus;return t.autofocus||r!==void 0&&r!==`false`||e.indexOf(t)>=0}},jt=function(e,t,n){var r=ut(e.map(function(e){return e.node}).filter(At(n)));return r&&r.length?Et(r):Et(ut(t))},Mt=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&Mt(e.parentNode.host||e.parentNode,t),t},Nt=function(e,t){for(var n=Mt(e),r=Mt(t),i=0;i<n.length;i+=1){var a=n[i];if(r.indexOf(a)>=0)return a}return!1},Pt=function(e,t,n){var r=A(e),i=A(t),a=r[0],o=!1;return i.filter(Boolean).forEach(function(e){o=Nt(o||e,e)||o,n.filter(Boolean).forEach(function(e){var t=Nt(a,e);t&&(o=!o||j(t,o)?t:Nt(t,o))})}),o},Ft=function(e,t){return e.reduce(function(e,n){return e.concat(pt(n,t))},[])},It=function(e,t){var n=new Map;return t.forEach(function(e){return n.set(e.node,e)}),e.map(function(e){return n.get(e)}).filter($e)},Lt=function(e,t){var n=vt(A(e).length>0?document:Ie(e).ownerDocument),r=gt(e).filter(Qe),i=Pt(n||e,e,r),a=new Map,o=ft(r,a),s=o.filter(function(e){var t=e.node;return Qe(t)});if(s[0]){var c=ft([i],a).map(function(e){return e.node}),l=It(c,s),u=l.map(function(e){return e.node}),d=l.filter(function(e){return e.tabIndex>=0}).map(function(e){return e.node}),f=kt(u,d,c,n,t);if(f===`NEW_FOCUS`){var p=jt(o,d,Ft(r,a))||jt(o,u,Ft(r,a));if(p)return{node:p};console.warn(`focus-lock: cannot find any node to move focus into`);return}return f===void 0?f:l[f]}},Rt=function(e){var t=gt(e).filter(Qe),n=nt(st([Pt(e,e,t)],!0),!0,!0),r=st(t,!1);return n.map(function(e){var t=e.node;return{node:t,index:e.index,lockItem:r.indexOf(t)>=0,guard:Ze(t)}})},zt=function(e,t){e&&(`focus`in e&&e.focus(t),`contentWindow`in e&&e.contentWindow&&e.contentWindow.focus())},Bt=0,Vt=!1,Ht=function(e,t,n){n===void 0&&(n={});var r=Lt(e,t);if(!Vt&&r){if(Bt>2){console.error(`FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting`),Vt=!0,setTimeout(function(){Vt=!1},1);return}Bt++,zt(r.node,n.focusOptions),Bt--}};function Ut(e){if(!e)return null;if(typeof WeakRef>`u`)return function(){return e||null};var t=e?new WeakRef(e):null;return function(){return(t==null?void 0:t.deref())||null}}var Wt=function(e){if(!e)return null;for(var t=[],n=e;n&&n!==document.body;)t.push({current:Ut(n),parent:Ut(n.parentElement),left:Ut(n.previousElementSibling),right:Ut(n.nextElementSibling)}),n=n.parentElement;return{element:Ut(e),stack:t,ownerDocument:e.ownerDocument}},Gt=function(e){var t,n,r;if(e)for(var i=e.stack,a=e.ownerDocument,o=new Map,s=0,c=i;s<c.length;s++){var l=c[s],u=(t=l.parent)==null?void 0:t.call(l);if(u&&a.contains(u)){for(var d=(n=l.left)==null?void 0:n.call(l),f=l.current(),p=u.contains(f)?f:void 0,m=(r=l.right)==null?void 0:r.call(l),h=dt([u],o),g=p??(d==null?void 0:d.nextElementSibling)??m??d;g;){for(var _=0,v=h;_<v.length;_++){var y=v[_];if(g!=null&&g.contains(y.node))return y.node}g=g.nextElementSibling}if(h.length)return h[0].node}}},Kt=function(e){var t=Wt(e);return function(){return Gt(t)}},qt=function(e,t,n){if(!e||!t)return console.error(`no element or scope given`),{};var r=A(t);if(r.every(function(t){return!j(t,e)}))return console.error(`Active element is not contained in the scope`),{};var i=n?dt(r,new Map):ft(r,new Map),a=i.findIndex(function(t){return t.node===e});if(a!==-1)return{prev:i[a-1],next:i[a+1],first:i[0],last:i[i.length-1]}},Jt=function(e,t){var n=t?dt(A(e),new Map):ft(A(e),new Map);return{first:n[0],last:n[n.length-1]}},Yt=function(e){return Object.assign({scope:document.body,cycle:!0,onlyTabbable:!0},e)},Xt=function(e,t,n){t===void 0&&(t={});var r=Yt(t),i=qt(e,r.scope,r.onlyTabbable);if(i){var a=n(i,r.cycle);a&&zt(a.node,r.focusOptions)}},Zt=function(e,t){t===void 0&&(t={}),Xt(e,t,function(e,t){var n=e.next,r=e.first;return n||t&&r})},Qt=function(e,t){t===void 0&&(t={}),Xt(e,t,function(e,t){var n=e.prev,r=e.last;return n||t&&r})},$t=function(e,t,n){var r=Jt(e,t.onlyTabbable??!0)[n];r&&zt(r.node,t.focusOptions)},en=function(e,t){t===void 0&&(t={}),$t(e,t,`first`)},tn=function(e,t){t===void 0&&(t={}),$t(e,t,`last`)};function nn(e){setTimeout(e,1)}var rn=function(e){return e&&`current`in e?e.current:e};o();var an=function(){return document&&document.activeElement===document.body},on=function(){return an()||St()},sn=null,M=null,cn=function(){return null},N=null,ln=!1,un=!1,dn=function(){return!0},fn=function(e){return(sn.whiteList||dn)(e)},pn=function(e,t){N={observerNode:e,portaledElement:t}},mn=function(e){return N&&N.portaledElement===e};function hn(e,t,n,r){var i=null,a=e;do{var o=r[a];if(o.guard)o.node.dataset.focusAutoGuard&&(i=o);else if(o.lockItem){if(a!==e)return;i=null}else break}while((a+=n)!==t);i&&(i.node.tabIndex=0)}var gn=function(e){return e?!!ln:ln===`meanwhile`},_n=function e(t,n,r){return n&&(n.host===t&&(!n.activeElement||r.contains(n.activeElement))||n.parentNode&&e(t,n.parentNode,r))},vn=function(e,t){return t.some(function(t){return _n(e,t,t)})},yn=function(e){return ft(e,new Map)},bn=function(e){return!yn([e.parentNode]).some(function(t){return t.node===e})},xn=function(){var e=!1;if(sn){var t=sn,n=t.observed,r=t.persistentFocus,i=t.autoFocus,a=t.shards,o=t.crossFrame,s=t.focusOptions,c=t.noFocusGuards,l=n||N&&N.portaledElement;if(an()&&M&&M!==document.body&&(!document.body.contains(M)||bn(M))){var u=cn();u&&u.focus()}var d=document&&document.activeElement;if(l){var f=[l].concat(a.map(rn).filter(Boolean));if((!d||fn(d))&&(r||function(){if(!gn(o)||!c||!M||un)return!1;var e=yn(f),t=e.findIndex(function(e){return e.node===M});return t===0||t===e.length-1}()||!on()||!M&&i)&&(l&&!(xt(f)||d&&vn(d,f)||mn(d,l))&&(document&&!M&&d&&!i?(d.blur&&d.blur(),document.body.focus()):(e=Ht(f,M,{focusOptions:s}),N={})),M=document&&document.activeElement,M!==document.body&&(cn=Kt(M)),ln=!1),document&&d!==document.activeElement&&document.querySelector(`[data-focus-auto-guard]`)){var p=document&&document.activeElement,m=Rt(f),h=m.map(function(e){return e.node}).indexOf(p);h>-1&&(m.filter(function(e){var t=e.guard,n=e.node;return t&&n.dataset.focusAutoGuard}).forEach(function(e){return e.node.removeAttribute(`tabIndex`)}),hn(h,m.length,1,m),hn(h,-1,-1,m))}}}return e},Sn=function(e){xn()&&e&&(e.stopPropagation(),e.preventDefault())},Cn=function(){return nn(xn)},wn=function(e){var t=e.target,n=e.currentTarget;n.contains(t)||pn(n,t)},Tn=function(){return null},En=function(){un=!0},Dn=function(){un=!1,ln=`just`,nn(function(){ln=`meanwhile`})},On=function(){document.addEventListener(`focusin`,Sn),document.addEventListener(`focusout`,Cn),window.addEventListener(`focus`,En),window.addEventListener(`blur`,Dn)},kn=function(){document.removeEventListener(`focusin`,Sn),document.removeEventListener(`focusout`,Cn),window.removeEventListener(`focus`,En),window.removeEventListener(`blur`,Dn)};function An(e){return e.filter(function(e){return!e.disabled})}var jn={moveFocusInside:Ht,focusInside:xt,focusNextElement:Zt,focusPrevElement:Qt,focusFirstElement:en,focusLastElement:tn,captureFocusRestore:Kt};function Mn(e){var t=e.slice(-1)[0];t&&!sn&&On();var n=sn,r=n&&t&&t.id===n.id;sn=t,n&&!r&&(n.onDeactivation(),e.filter(function(e){return e.id===n.id}).length||n.returnFocus(!t)),t?(M=null,(!r||n.observed!==t.observed)&&t.onActivation(jn),xn(!0),nn(xn)):(kn(),M=null)}Ee.assignSyncMedium(wn),De.assignMedium(Cn),Oe.assignMedium(function(e){return e(jn)});var Nn=Fe(An,Mn)(Tn);o();var Pn=d(function(e,t){return v.createElement(Me,p({sideCar:Nn,ref:t},e))}),Fn=Me.propTypes||{};Fn.sideCar,le(Fn,[`sideCar`]),Pn.propTypes={};var In=Pn,P=`-ms-`,Ln=`-moz-`,F=`-webkit-`,Rn=`comm`,zn=`rule`,Bn=`decl`,Vn=`@import`,Hn=`@namespace`,Un=`@keyframes`,Wn=`@layer`,Gn=Math.abs,Kn=String.fromCharCode,qn=Object.assign;function Jn(e,t){return R(e,0)^45?(((t<<2^R(e,0))<<2^R(e,1))<<2^R(e,2))<<2^R(e,3):0}function Yn(e){return e.trim()}function I(e,t){return(e=t.exec(e))?e[0]:e}function L(e,t,n){return e.replace(t,n)}function Xn(e,t,n){return e.indexOf(t,n)}function R(e,t){return e.charCodeAt(t)|0}function z(e,t,n){return e.slice(t,n)}function B(e){return e.length}function Zn(e){return e.length}function Qn(e,t){return t.push(e),e}function $n(e,t){return e.map(t).join(``)}function er(e,t){return e.filter(function(e){return!I(e,t)})}var tr=1,nr=1,rr=0,V=0,H=0,ir=``;function ar(e,t,n,r,i,a,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:tr,column:nr,length:o,return:``,siblings:s}}function U(e,t){return qn(ar(``,null,null,``,null,null,0,e.siblings),e,{length:-e.length},t)}function or(e){for(;e.root;)e=U(e.root,{children:[e]});Qn(e,e.siblings)}function sr(){return H}function cr(){return H=V>0?R(ir,--V):0,nr--,H===10&&(nr=1,tr--),H}function W(){return H=V<rr?R(ir,V++):0,nr++,H===10&&(nr=1,tr++),H}function G(){return R(ir,V)}function lr(){return V}function ur(e,t){return z(ir,e,t)}function dr(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function fr(e){return tr=nr=1,rr=B(ir=e),V=0,[]}function pr(e){return ir=``,e}function mr(e){return Yn(ur(V-1,_r(e===91?e+2:e===40?e+1:e)))}function hr(e){for(;(H=G())&&H<33;)W();return dr(e)>2||dr(H)>3?``:` `}function gr(e,t){for(;--t&&W()&&!(H<48||H>102||H>57&&H<65||H>70&&H<97););return ur(e,lr()+(t<6&&G()==32&&W()==32))}function _r(e){for(;W();)switch(H){case e:return V;case 34:case 39:e!==34&&e!==39&&_r(H);break;case 40:e===41&&_r(e);break;case 92:W()}return V}function vr(e,t){for(;W()&&e+H!==57&&(e+H!==84||G()!==47););return`/*`+ur(t,V-1)+`*`+Kn(e===47?e:W())}function yr(e){for(;!dr(G());)W();return ur(e,V)}function br(e){return pr(xr(``,null,null,null,[``],e=fr(e),0,[0],e))}function xr(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=``,b=i,x=a,S=r,C=y;g;)switch(m=v,v=W()){case 40:if(m!=108&&R(C,d-1)==58){Xn(C+=L(mr(v),`&`,`&\f`),`&\f`,Gn(l?s[l-1]:0))!=-1&&(_=-1);break}case 34:case 39:case 91:C+=mr(v);break;case 9:case 10:case 13:case 32:C+=hr(m);break;case 92:C+=gr(lr()-1,7);continue;case 47:switch(G()){case 42:case 47:Qn(Cr(vr(W(),lr()),t,n,c),c),(dr(m||1)==5||dr(G()||1)==5)&&B(C)&&z(C,-1,void 0)!==` `&&(C+=` `);break;default:C+=`/`}break;case 123*h:s[l++]=B(C)*_;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:_==-1&&(C=L(C,/\f/g,``)),p>0&&(B(C)-d||h===0&&m===47)&&Qn(p>32?wr(C+`;`,r,n,d-1,c):wr(L(C,` `,``)+`;`,r,n,d-2,c),c);break;case 59:C+=`;`;default:if(Qn(S=Sr(C,t,n,l,u,i,s,y,b=[],x=[],d,a),a),v===123){if(u===0)xr(C,t,S,S,b,a,d,s,x);else{switch(f){case 99:if(R(C,3)===110)break;case 108:if(R(C,2)===97)break;default:u=0;case 100:case 109:case 115:}u?xr(e,S,S,r&&Qn(Sr(e,S,S,0,0,i,s,y,i,b=[],d,x),x),i,x,d,s,r?b:x):xr(C,S,S,S,[``],x,0,s,x)}}}l=u=p=0,h=_=1,y=C=``,d=o;break;case 58:d=1+B(C),p=m;default:if(h<1){if(v==123)--h;else if(v==125&&h++==0&&cr()==125)continue}switch(C+=Kn(v),v*h){case 38:_=u>0?1:(C+=`\f`,-1);break;case 44:s[l++]=(B(C)-1)*_,_=1;break;case 64:G()===45&&(C+=mr(W())),f=G(),u=d=B(y=C+=yr(lr())),v++;break;case 45:m===45&&B(C)==2&&(h=0)}}return a}function Sr(e,t,n,r,i,a,o,s,c,l,u,d){for(var f=i-1,p=i===0?a:[``],m=Zn(p),h=0,g=0,_=0;h<r;++h)for(var v=0,y=z(e,f+1,f=Gn(g=o[h])),b=e;v<m;++v)(b=Yn(g>0?p[v]+` `+y:L(y,/&\f/g,p[v])))&&(c[_++]=b);return ar(e,t,n,i===0?zn:s,c,l,u,d)}function Cr(e,t,n,r){return ar(e,t,n,Rn,Kn(sr()),z(e,2,-2),0,r)}function wr(e,t,n,r,i){return ar(e,t,n,Bn,z(e,0,r),z(e,r+1,-1),r,i)}function Tr(e,t,n){switch(Jn(e,t)){case 5103:return F+`print-`+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return F+e+e;case 4855:return F+e.replace(`add`,`source-over`).replace(`substract`,`source-out`).replace(`intersect`,`source-in`).replace(`exclude`,`xor`)+e;case 4789:return Ln+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return F+e+Ln+e+P+e+e;case 5936:switch(R(e,t+11)){case 114:return F+e+P+L(e,/[svh]\w+-[tblr]{2}/,`tb`)+e;case 108:return F+e+P+L(e,/[svh]\w+-[tblr]{2}/,`tb-rl`)+e;case 45:return F+e+P+L(e,/[svh]\w+-[tblr]{2}/,`lr`)+e}case 6828:case 4268:case 2903:return F+e+P+e+e;case 6165:return F+e+P+`flex-`+e+e;case 5187:return F+e+L(e,/(\w+).+(:[^]+)/,F+`box-$1$2`+P+`flex-$1$2`)+e;case 5443:return F+e+P+`flex-item-`+L(e,/flex-|-self/g,``)+(I(e,/flex-|baseline/)?``:P+`grid-row-`+L(e,/flex-|-self/g,``))+e;case 4675:return F+e+P+`flex-line-pack`+L(e,/align-content|flex-|-self/g,``)+e;case 5548:return F+e+P+L(e,`shrink`,`negative`)+e;case 5292:return F+e+P+L(e,`basis`,`preferred-size`)+e;case 6060:return F+`box-`+L(e,`-grow`,``)+F+e+P+L(e,`grow`,`positive`)+e;case 4554:return F+L(e,/([^-])(transform)/g,`$1`+F+`$2`)+e;case 6187:return L(L(L(e,/(zoom-|grab)/,F+`$1`),/(image-set)/,F+`$1`),e,``)+e;case 5495:case 3959:return L(e,/(image-set\([^]*)/,F+"$1$`$1");case 4968:return L(L(e,/(.+:)(flex-)?(.*)/,F+`box-pack:$3`+P+`flex-pack:$3`),/space-between/,`justify`)+F+e+e;case 4200:if(!I(e,/flex-|baseline/))return P+`grid-column-align`+z(e,t)+e;break;case 2592:case 3360:return P+L(e,`template-`,``)+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,I(e.props,/grid-\w+-end/)})?~Xn(e+(n=n[t].value),`span`,0)?e:P+L(e,`-start`,``)+e+P+`grid-row-span:`+(~Xn(n,`span`,0)?I(n,/\d+/):+I(n,/\d+/)-I(e,/\d+/))+`;`:P+L(e,`-start`,``)+e;case 4896:case 4128:return n&&n.some(function(e){return I(e.props,/grid-\w+-start/)})?e:P+L(L(e,`-end`,`-span`),`span `,``)+e;case 4095:case 3583:case 4068:case 2532:return L(e,/(.+)-inline(.+)/,F+`$1$2`)+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(B(e)-1-t>6)switch(R(e,t+1)){case 109:if(R(e,t+4)!==45)break;case 102:return L(e,/(.+:)(.+)-([^]+)/,`$1`+F+`$2-$3$1`+Ln+(R(e,t+3)==108?`$3`:`$2-$3`))+e;case 115:return~Xn(e,`stretch`,0)?Tr(L(e,`stretch`,`fill-available`),t,n)+e:e}break;case 5152:case 5920:return L(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,r,i,a,o,s){return P+n+`:`+r+s+(i?P+n+`-span:`+(a?o:+o-r)+s:``)+e});case 4949:if(R(e,t+6)===121)return L(e,`:`,`:`+F)+e;break;case 6444:switch(R(e,R(e,14)===45?18:11)){case 120:return L(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,`$1`+F+(R(e,14)===45?`inline-`:``)+`box$3$1`+F+`$2$3$1`+P+`$2box$3`)+e;case 100:return L(e,`:`,`:`+P)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return L(e,`scroll-`,`scroll-snap-`)+e}return e}function Er(e,t){for(var n=``,r=0;r<e.length;r++)n+=t(e[r],r,e,t)||``;return n}function Dr(e,t,n,r){switch(e.type){case Wn:if(e.children.length)break;case Vn:case Hn:case Bn:return e.return=e.return||e.value;case Rn:return``;case Un:return e.return=e.value+`{`+Er(e.children,r)+`}`;case zn:if(!B(e.value=e.props.join(`,`)))return``}return B(n=Er(e.children,r))?e.return=e.value+`{`+n+`}`:``}function Or(e){var t=Zn(e);return function(n,r,i,a){for(var o=``,s=0;s<t;s++)o+=e[s](n,r,i,a)||``;return o}}function kr(e){return function(t){t.root||(t=t.return)&&e(t)}}function Ar(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Bn:e.return=Tr(e.value,e.length,n);return;case Un:return Er([U(e,{value:L(e.value,`@`,`@`+F)})],r);case zn:if(e.length)return $n(n=e.props,function(t){switch(I(t,r=/(::plac\w+|:read-\w+)/)){case`:read-only`:case`:read-write`:or(U(e,{props:[L(t,/:(read-\w+)/,`:`+Ln+`$1`)]})),or(U(e,{props:[t]})),qn(e,{props:er(n,r)});break;case`::placeholder`:or(U(e,{props:[L(t,/:(plac\w+)/,`:`+F+`input-$1`)]})),or(U(e,{props:[L(t,/:(plac\w+)/,`:`+Ln+`$1`)]})),or(U(e,{props:[L(t,/:(plac\w+)/,P+`input-$1`)]})),or(U(e,{props:[t]})),qn(e,{props:er(n,r)})}return``})}}o();var K=typeof process<`u`&&({}.REACT_APP_SC_ATTR||{}.SC_ATTR)||`data-styled`,jr=`active`,Mr=`data-styled-version`,Nr=`6.5.3`,Pr=`/*!sc*/
|
|
2
|
+
`,Fr=typeof window<`u`&&typeof document<`u`;function Ir(e){if(typeof process<`u`){let t={}[e];if(t!==void 0&&t!==``)return t!==`false`}}var Lr=!!(typeof SC_DISABLE_SPEEDY==`boolean`?SC_DISABLE_SPEEDY:Ir(`REACT_APP_SC_DISABLE_SPEEDY`)??Ir(`SC_DISABLE_SPEEDY`)??(typeof process<`u`&&!1)),Rr=`sc-keyframes-`,zr={};function Br(e,...t){return Error(`An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#${e} for more information.${t.length>0?` Args: ${t.join(`, `)}`:``}`)}var Vr=new Map,Hr=new Map,Ur=1,Wr=e=>{if(Vr.has(e))return Vr.get(e);for(;Hr.has(Ur);)Ur++;let t=Ur++;return Vr.set(e,t),Hr.set(t,e),t},Gr=e=>Hr.get(e),Kr=(e,t)=>{Ur=t+1,Vr.set(e,t),Hr.set(t,e)},qr=Object.freeze([]),Jr=Object.freeze({});function Yr(e,t,n=Jr){return e.theme!==n.theme&&e.theme||t||n.theme}var Xr=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Zr=/(^-|-$)/g;function Qr(e){return e.replace(Xr,`-`).replace(Zr,``)}var $r=/(a)(d)/gi,ei=e=>String.fromCharCode(e+(e>25?39:97));function ti(e){let t,n=``;for(t=Math.abs(e);t>52;t=t/52|0)n=ei(t%52)+n;return(ei(t%52)+n).replace($r,`$1-$2`)}var ni=5381,q=(e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e},ri=e=>q(ni,e);function ii(e){return ti(ri(e)>>>0)}function ai(e){return e.displayName||e.name||`Component`}function oi(e){return typeof e==`string`&&!0}function si(e){return oi(e)?`styled.${e}`:`Styled(${ai(e)})`}var ci=Symbol.for(`react.memo`),li=Symbol.for(`react.forward_ref`),ui={contextType:!0,defaultProps:!0,displayName:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},di={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},fi={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},pi={[li]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[ci]:fi};function mi(e){return(`type`in(t=e)&&t.type.$$typeof)===ci?fi:`$$typeof`in e?pi[e.$$typeof]:ui;var t}var hi=Object.defineProperty,gi=Object.getOwnPropertyNames,_i=Object.getOwnPropertySymbols,vi=Object.getOwnPropertyDescriptor,yi=Object.getPrototypeOf,bi=Object.prototype;function xi(e,t,n){if(typeof t!=`string`){let r=yi(t);r&&r!==bi&&xi(e,r,n);let i=gi(t).concat(_i(t)),a=mi(e),o=mi(t);for(let r=0;r<i.length;++r){let s=i[r];if(!(s in di||n&&n[s]||o&&s in o||a&&s in a)){let n=vi(t,s);try{hi(e,s,n)}catch{}}}}return e}function Si(e){return typeof e==`function`}var Ci=Symbol.for(`react.forward_ref`);function wi(e){return e!=null&&(typeof e==`object`||typeof e==`function`)&&e.$$typeof===Ci&&`styledComponentId`in e}function Ti(e,t){return e&&t?e+` `+t:e||t||``}function Ei(e,t){return e.join(t||``)}function Di(e){return typeof e==`object`&&!!e&&e.constructor.name===Object.name&&!(`props`in e&&e.$$typeof)}function Oi(e,t,n=!1){if(!n&&!Di(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(let n=0;n<t.length;n++)e[n]=Oi(e[n],t[n]);else if(Di(t))for(let n in t)e[n]=Oi(e[n],t[n]);return e}function ki(e,t){Object.defineProperty(e,"toString",{value:t})}var Ai=class{constructor(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e,this._cGroup=0,this._cIndex=0}indexOfGroup(e){if(e===this._cGroup)return this._cIndex;let t=this._cIndex;if(e>this._cGroup)for(let n=this._cGroup;n<e;n++)t+=this.groupSizes[n];else for(let n=this._cGroup-1;n>=e;n--)t-=this.groupSizes[n];return this._cGroup=e,this._cIndex=t,t}insertRules(e,t){if(e>=this.groupSizes.length){let t=this.groupSizes,n=t.length,r=n;for(;e>=r;)if(r<<=1,r<0)throw Br(16,`${e}`);this.groupSizes=new Uint32Array(r),this.groupSizes.set(t),this.length=r;for(let e=n;e<r;e++)this.groupSizes[e]=0}let n=this.indexOfGroup(e+1),r=0;for(let i=0,a=t.length;i<a;i++)this.tag.insertRule(n,t[i])&&(this.groupSizes[e]++,n++,r++);r>0&&this._cGroup>e&&(this._cIndex+=r)}clearGroup(e){if(e<this.length){let t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(let e=n;e<r;e++)this.tag.deleteRule(n);t>0&&this._cGroup>e&&(this._cIndex-=t)}}getGroup(e){let t=``;if(e>=this.length||this.groupSizes[e]===0)return t;let n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n;for(let e=r;e<i;e++)t+=this.tag.getRule(e)+Pr;return t}},ji=`style[${K}][${Mr}="${Nr}"]`,Mi=RegExp(`^${K}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`),Ni=e=>typeof ShadowRoot<`u`&&e instanceof ShadowRoot||`host`in e&&e.nodeType===11,Pi=e=>{if(!e)return document;if(Ni(e))return e;if(`getRootNode`in e){let t=e.getRootNode();if(Ni(t))return t}return document},Fi=(e,t,n)=>{let r=n.split(`,`),i;for(let n=0,a=r.length;n<a;n++)(i=r[n])&&e.registerName(t,i)},Ii=(e,t)=>{let n=(t.textContent??``).split(Pr),r=[];for(let t=0,i=n.length;t<i;t++){let i=n[t].trim();if(!i)continue;let a=i.match(Mi);if(a){let t=0|parseInt(a[1],10),n=a[2];t!==0&&(Kr(n,t),Fi(e,n,a[3]),e.getTag().insertRules(t,r)),r.length=0}else r.push(i)}},Li=e=>{let t=Pi(e.options.target).querySelectorAll(ji);for(let n=0,r=t.length;n<r;n++){let r=t[n];r&&r.getAttribute(K)!==jr&&(Ii(e,r),r.parentNode&&r.parentNode.removeChild(r))}},Ri=!1;function zi(){if(!1!==Ri)return Ri;if(typeof document<`u`){let e=document.head.querySelector(`meta[property="csp-nonce"]`);if(e)return Ri=e.nonce||e.getAttribute(`content`)||void 0;let t=document.head.querySelector(`meta[name="sc-nonce"]`);if(t)return Ri=t.getAttribute(`content`)||void 0}return Ri=typeof __webpack_nonce__<`u`?__webpack_nonce__:void 0}var Bi=(e,t)=>{let n=document.head,r=e||n,i=document.createElement(`style`),a=(e=>{let t=Array.from(e.querySelectorAll(`style[${K}]`));return t[t.length-1]})(r),o=a===void 0?null:a.nextSibling;i.setAttribute(K,jr),i.setAttribute(Mr,Nr);let s=t||zi();return s&&i.setAttribute(`nonce`,s),r.insertBefore(i,o),i},Vi=class{constructor(e,t){this.element=Bi(e,t),this.element.appendChild(document.createTextNode(``)),this.sheet=(e=>{if(e.sheet)return e.sheet;let t=e.getRootNode().styleSheets??document.styleSheets;for(let n=0,r=t.length;n<r;n++){let r=t[n];if(r.ownerNode===e)return r}throw Br(17)})(this.element),this.length=0}insertRule(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch{return!1}}deleteRule(e){this.sheet.deleteRule(e),this.length--}getRule(e){let t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:``}},Hi=class{constructor(e,t){this.element=Bi(e,t),this.nodes=this.element.childNodes,this.length=0}insertRule(e,t){if(e<=this.length&&e>=0){let n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1}deleteRule(e){this.element.removeChild(this.nodes[e]),this.length--}getRule(e){return e<this.length?this.nodes[e].textContent:``}},Ui=Fr,Wi={isServer:!Fr,useCSSOMInjection:!Lr},Gi=class e{static registerId(e){return Wr(e)}constructor(e=Jr,t={},n){this.options=Object.assign(Object.assign({},Wi),e),this.gs=t,this.keyframeIds=new Set,this.names=new Map(n),this.server=!!e.isServer,!this.server&&Fr&&Ui&&(Ui=!1,Li(this)),ki(this,()=>(e=>{let t=e.getTag(),{length:n}=t,r=``;for(let i=0;i<n;i++){let n=Gr(i);if(n===void 0)continue;let a=e.names.get(n);if(a===void 0||!a.size)continue;let o=t.getGroup(i);if(o.length===0)continue;let s=K+`.g`+i+`[id="`+n+`"]`,c=``;for(let e of a)e.length>0&&(c+=e+`,`);r+=o+s+`{content:"`+c+`"}/*!sc*/
|
|
3
|
+
`}return r})(this))}rehydrate(){!this.server&&Fr&&Li(this)}reconstructWithOptions(t,n=!0){let r=new e(Object.assign(Object.assign({},this.options),t),this.gs,n&&this.names||void 0);return r.keyframeIds=new Set(this.keyframeIds),!this.server&&Fr&&t.target!==this.options.target&&Pi(this.options.target)!==Pi(t.target)&&Li(r),r}allocateGSInstance(e){return this.gs[e]=(this.gs[e]||0)+1}getTag(){return this.tag||=(e=(({useCSSOMInjection:e,target:t,nonce:n})=>e?new Vi(t,n):new Hi(t,n))(this.options),new Ai(e));var e}hasNameForId(e,t){var n,r;return(r=(n=this.names.get(e))==null?void 0:n.has(t))!=null&&r}registerName(e,t){Wr(e),e.startsWith(Rr)&&this.keyframeIds.add(e);let n=this.names.get(e);n?n.add(t):this.names.set(e,new Set([t]))}insertRules(e,t,n){this.registerName(e,t),this.getTag().insertRules(Wr(e),n)}clearNames(e){this.names.has(e)&&this.names.get(e).clear()}clearRules(e){this.getTag().clearGroup(Wr(e)),this.clearNames(e)}clearTag(){this.tag=void 0}},Ki=new WeakSet,qi={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexShrink:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Ji(e,t){return t==null||typeof t==`boolean`||t===``?``:typeof t!=`number`||t===0||e in qi||e.startsWith(`--`)?String(t).trim():t+`px`}var J=47;function Yi(e){if(e.charCodeAt(0)===45&&e.charCodeAt(1)===45)return e;let t=``;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);t+=r>=65&&r<=90?`-`+String.fromCharCode(r+32):e[n]}return t.startsWith(`ms-`)?`-`+t:t}var Xi=Symbol.for(`sc-keyframes`);function Zi(e){return typeof e==`object`&&!!e&&Xi in e}function Qi(e){return Si(e)&&!(e.prototype&&e.prototype.isReactComponent)}var $i=e=>e==null||!1===e||e===``,ea=Symbol.for(`react.client.reference`);function ta(e){return e.$$typeof===ea}function na(e,t){for(let n in e){let r=e[n];e.hasOwnProperty(n)&&!$i(r)&&(Array.isArray(r)&&Ki.has(r)||Si(r)?t.push(Yi(n)+`:`,r,`;`):Di(r)?(t.push(n+` {`),na(r,t),t.push(`}`)):t.push(Yi(n)+`: `+Ji(n,r)+`;`))}}function Y(e,t,n,r,i=[]){if($i(e))return i;let a=typeof e;if(a===`string`)return i.push(e),i;if(a===`function`)return ta(e)?i:Qi(e)&&t?Y(e(t),t,n,r,i):(i.push(e),i);if(Array.isArray(e)){for(let a=0;a<e.length;a++)Y(e[a],t,n,r,i);return i}return wi(e)?(i.push(`.${e.styledComponentId}`),i):Zi(e)?(n?(e.inject(n,r),i.push(e.getName(r))):i.push(e),i):ta(e)?i:Di(e)&&e.toString===Object.prototype.toString?(na(e,i),i):(i.push(e.toString()),i)}var ra=ri(Nr),ia=class{constructor(e,t,n){this.rules=e,this.componentId=t,this.baseHash=q(ra,t),this.baseStyle=n,Gi.registerId(t)}generateAndInjectStyles(e,t,n){let r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):``;{let i=``;for(let r=0;r<this.rules.length;r++){let a=this.rules[r];if(typeof a==`string`)i+=a;else if(a){if(Qi(a)){let r=a(e);typeof r==`string`?i+=r:r!=null&&!1!==r&&(i+=Ei(Y(r,e,t,n)))}else i+=Ei(Y(a,e,t,n))}}if(i){this.dynamicNameCache||=new Map;let e=n.hash?n.hash+i:i,a=this.dynamicNameCache.get(e);if(!a){if(a=ti(q(q(this.baseHash,n.hash),i)>>>0),this.dynamicNameCache.size>=200){let e=this.dynamicNameCache.keys().next().value;e!==void 0&&this.dynamicNameCache.delete(e)}this.dynamicNameCache.set(e,a)}if(!t.hasNameForId(this.componentId,a)){let e=n(i,`.`+a,void 0,this.componentId);t.insertRules(this.componentId,a,e)}r=Ti(r,a)}}return r}},aa=/&/g;function oa(e,t){let n=0;for(;--t>=0&&e.charCodeAt(t)===92;)n++;return!(1&~n)}function sa(e){let t=e.length,n=``,r=0,i=0,a=0,o=!1,s=!1;for(let c=0;c<t;c++){let l=e.charCodeAt(c);if(a!==0||o||l!==J||e.charCodeAt(c+1)!==42){if(o)l===42&&e.charCodeAt(c+1)===J&&(o=!1,c++);else if(l!==34&&l!==39||oa(e,c)){if(a===0){if(l===123)i++;else if(l===125){if(i--,i<0){s=!0;let n=c+1;for(;n<t;){let t=e.charCodeAt(n);if(t===59||t===10)break;n++}n<t&&e.charCodeAt(n)===59&&n++,i=0,c=n-1,r=n;continue}i===0&&(n+=e.substring(r,c+1),r=c+1)}else l===59&&i===0&&(n+=e.substring(r,c+1),r=c+1)}}else a===0?a=l:a===l&&(a=0)}else o=!0,c++}return s||i!==0||a!==0?(r<t&&i===0&&a===0&&(n+=e.substring(r)),n):e}function ca(e,t){let n=t+` `,r=`,`+n;for(let i=0;i<e.length;i++){let a=e[i];if(a.type===`rule`){a.value=(n+a.value).replaceAll(`,`,r);let e=a.props,t=[];for(let r=0;r<e.length;r++)t[r]=n+e[r];a.props=t}Array.isArray(a.children)&&a.type!==`@keyframes`&&ca(a.children,t)}return e}function la({options:e=Jr,plugins:t=qr}=Jr){let n,r,i,a=(e,t,i)=>i.startsWith(r)&&i.endsWith(r)&&i.replaceAll(r,``).length>0?`.${n}`:e,o=t.slice();o.push(e=>{e.type===`rule`&&e.value.includes(`&`)&&(i||=RegExp(`\\${r}\\b`,`g`),e.props[0]=e.props[0].replace(aa,r).replace(i,a))}),e.prefix&&o.push(Ar),o.push(Dr);let s=[],c=Or(o.concat(kr(e=>s.push(e)))),l=(t,a=``,o=``,l=`&`)=>{n=l,r=a,i=void 0;let u=function(e){let t=e.indexOf(`//`)!==-1,n=e.indexOf(`}`)!==-1;if(!t&&!n)return e;if(!t)return sa(e);let r=e.length,i=``,a=0,o=0,s=0,c=0,l=0,u=!1;for(;o<r;){let t=e.charCodeAt(o);if(t!==34&&t!==39||oa(e,o)){if(s===0){if(t===J&&o+1<r&&e.charCodeAt(o+1)===42){for(o+=2;o+1<r&&(e.charCodeAt(o)!==42||e.charCodeAt(o+1)!==J);)o++;o+=2}else if(t!==40){if(t!==41){if(c>0)o++;else if(t===42&&o+1<r&&e.charCodeAt(o+1)===J)i+=e.substring(a,o),o+=2,a=o,u=!0;else if(t===J&&o+1<r&&e.charCodeAt(o+1)===J){for(i+=e.substring(a,o);o<r&&e.charCodeAt(o)!==10;)o++;a=o,u=!0}else t===123?l++:t===125&&l--,o++}else c>0&&c--,o++}else c++,o++}else o++}else s===0?s=t:s===t&&(s=0),o++}return u?(a<r&&(i+=e.substring(a)),l===0?i:sa(i)):l===0?e:sa(e)}(t),d=br(o||a?o+` `+a+` { `+u+` }`:u);return e.namespace&&(d=ca(d,e.namespace)),s=[],Er(d,c),s},u=e,d=ni;for(let e=0;e<t.length;e++)t[e].name||Br(15),d=q(d,t[e].name);return u!=null&&u.namespace&&(d=q(d,u.namespace)),u!=null&&u.prefix&&(d=q(d,`p`)),l.hash=d===ni?``:d.toString(),l}var ua=new Gi,da=la(),fa=v.createContext({shouldForwardProp:void 0,styleSheet:ua,stylis:da,stylisPlugins:void 0});fa.Consumer;function pa(){return v.useContext(fa)}var ma=v.createContext(void 0);ma.Consumer;var ha=Object.prototype.hasOwnProperty,ga={};function _a(e,t){let n=typeof e==`string`?Qr(e):`sc`;ga[n]=(ga[n]||0)+1;let r=n+`-`+ii(Nr+n+ga[n]);return t?t+`-`+r:r}function va(e,t,n){let r=wi(e),i=e,a=!oi(e),{attrs:o=qr,componentId:s=_a(t.displayName,t.parentComponentId),displayName:c=si(e)}=t,l=t.displayName&&t.componentId?Qr(t.displayName)+`-`+t.componentId:t.componentId||s,u=r&&i.attrs?i.attrs.concat(o).filter(Boolean):o,{shouldForwardProp:d}=t;if(r&&i.shouldForwardProp){let e=i.shouldForwardProp;if(t.shouldForwardProp){let n=t.shouldForwardProp;d=(t,r)=>e(t,r)&&n(t,r)}else d=e}let f=new ia(n,l,r?i.componentStyle:void 0);function p(e,t){return function(e,t,n){let{attrs:r,componentStyle:i,defaultProps:a,foldedComponentIds:o,styledComponentId:s,target:c}=e,l=v.useContext(ma),u=pa(),d=e.shouldForwardProp||u.shouldForwardProp,f=Yr(t,l,a)||Jr,p,m;{let e=v.useRef(null),n=e.current;if(n!==null&&n[1]===f&&n[2]===u.styleSheet&&n[3]===u.stylis&&n[7]===i&&function(e,t,n){let r=e,i=t,a=0;for(let e in i)if(ha.call(i,e)&&(a++,r[e]!==i[e]))return!1;return a===n}(n[0],t,n[4]))p=n[5],m=n[6];else{p=function(e,t,n){let r=Object.assign(Object.assign({},t),{className:void 0,theme:n}),i=e.length>1;for(let n=0;n<e.length;n++){let a=e[n],o=Si(a)?a(i?Object.assign({},r):r):a;for(let e in o)e===`className`?r.className=Ti(r.className,o[e]):e===`style`?r.style=Object.assign(Object.assign({},r.style),o[e]):e in t&&t[e]===void 0||(r[e]=o[e])}return`className`in t&&typeof t.className==`string`&&(r.className=Ti(r.className,t.className)),r}(r,t,f),m=i.generateAndInjectStyles(p,u.styleSheet,u.stylis);let n=0;for(let e in t)ha.call(t,e)&&n++;e.current=[t,f,u.styleSheet,u.stylis,n,p,m,i]}}let g=p.as||c,_=function(e,t,n,r){let i={};for(let a in e)e[a]===void 0||a[0]===`$`||a===`as`||a===`theme`&&e.theme===n||(a===`forwardedAs`?i.as=e.forwardedAs:r&&!r(a,t)||(i[a]=e[a]));return i}(p,g,f,d),y=Ti(o,s);return m&&(y+=` `+m),p.className&&(y+=` `+p.className),_[oi(g)&&g.includes(`-`)?`class`:`className`]=y,n&&(_.ref=n),h(g,_)}(m,e,t)}p.displayName=c;let m=v.forwardRef(p);return m.attrs=u,m.componentStyle=f,m.displayName=c,m.shouldForwardProp=d,m.foldedComponentIds=r?Ti(i.foldedComponentIds,i.styledComponentId):``,m.styledComponentId=l,m.target=r?i.target:e,Object.defineProperty(m,"defaultProps",{get(){return this._foldedDefaultProps},set(e){this._foldedDefaultProps=r?function(e,...t){for(let n of t)Oi(e,n,!0);return e}({},i.defaultProps,e):e}}),ki(m,()=>`.${m.styledComponentId}`),a&&xi(m,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),m}var ya=new Set(`a.abbr.address.area.article.aside.audio.b.bdi.bdo.blockquote.body.button.br.canvas.caption.cite.code.col.colgroup.data.datalist.dd.del.details.dfn.dialog.div.dl.dt.em.embed.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.header.hgroup.hr.html.i.iframe.img.input.ins.kbd.label.legend.li.main.map.mark.menu.meter.nav.object.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.slot.small.span.strong.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.u.ul.var.video.wbr.circle.clipPath.defs.ellipse.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDistantLight.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.filter.foreignObject.g.image.line.linearGradient.marker.mask.path.pattern.polygon.polyline.radialGradient.rect.stop.svg.switch.symbol.text.textPath.tspan.use`.split(`.`));function ba(e,t){let n=[e[0]];for(let r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n}var xa=e=>(Ki.add(e),e);function Sa(e,...t){if(Si(e)||Di(e))return xa(Y(ba(qr,[e,...t])));let n=e;return t.length===0&&n.length===1&&typeof n[0]==`string`?Y(n):xa(Y(ba(n,t)))}function Ca(e,t,n=Jr){if(!t)throw Br(1,t);let r=(r,...i)=>e(t,n,Sa(r,...i));return r.attrs=r=>Ca(e,t,Object.assign(Object.assign({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)})),r.withConfig=r=>Ca(e,t,Object.assign(Object.assign({},n),r)),r}var wa=e=>Ca(va,e),X=wa;ya.forEach(e=>{X[e]=wa(e)});var Ta=class{constructor(e,t){this.instanceRules=new Map,this.rules=e,this.componentId=t,this.isStatic=function(e){for(let t=0;t<e.length;t+=1){let n=e[t];if(Si(n)&&!wi(n))return!1}return!0}(e),Gi.registerId(this.componentId)}removeStyles(e,t){this.instanceRules.delete(e),this.rebuildGroup(t)}renderStyles(e,t,n,r){let i=this.componentId;if(this.isStatic){if(n.hasNameForId(i,i+e))this.instanceRules.has(e)||this.computeRules(e,t,n,r);else{let a=this.computeRules(e,t,n,r);n.insertRules(i,a.name,a.rules)}return}let a=this.instanceRules.get(e);if(this.computeRules(e,t,n,r),!n.server&&a){let t=a.rules,n=this.instanceRules.get(e).rules;if(t.length===n.length){let e=!0;for(let r=0;r<t.length;r++)if(t[r]!==n[r]){e=!1;break}if(e)return}}this.rebuildGroup(n)}computeRules(e,t,n,r){let i=Ei(Y(this.rules,t,n,r)),a={name:this.componentId+e,rules:r(i,``)};return this.instanceRules.set(e,a),a}rebuildGroup(e){let t=this.componentId;e.clearRules(t);for(let n of this.instanceRules.values())e.insertRules(t,n.name,n.rules)}};function Ea(e,...t){let n=Sa(e,...t),r=`sc-global-${ii(JSON.stringify(n))}`,i=new Ta(n,r),a=e=>{let t=pa(),n=v.useContext(ma),a;{let e=v.useRef(null);e.current===null&&(e.current=t.styleSheet.allocateGSInstance(r)),a=e.current}t.styleSheet.server&&o(a,e,t.styleSheet,n,t.stylis);{let s=i.isStatic?[a,t.styleSheet,i]:[a,e,t.styleSheet,n,t.stylis,i],c=v.useRef(i);v.useLayoutEffect(()=>{t.styleSheet.server||(c.current!==i&&(t.styleSheet.clearRules(r),c.current=i),o(a,e,t.styleSheet,n,t.stylis))},s),v.useLayoutEffect(()=>()=>{t.styleSheet.server||i.removeStyles(a,t.styleSheet)},[a,t.styleSheet,i])}return t.styleSheet.server&&i.instanceRules.delete(a),null};function o(e,t,n,r,o){if(i.isStatic)i.renderStyles(e,zr,n,o);else{let s=Object.assign(Object.assign({},t),{theme:Yr(t,r,a.defaultProps)});i.renderStyles(e,s,n,o)}}return v.memo(a)}`${K}`,`${K}`,`${K}`,o();function Da(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Oa(e){if(Array.isArray(e))return e}function ka(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function Aa(e,t,n){return t=Fa(t),Ha(e,La()?Reflect.construct(t,n||[],Fa(e).constructor):t.apply(e,n))}function ja(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function Ma(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,Ka(r.key),r)}}function Na(e,t,n){return t&&Ma(e.prototype,t),n&&Ma(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Pa(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=qa(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
4
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function Z(e,t,n){return(t=Ka(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fa(e){return Fa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Fa(e)}function Ia(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ua(e,t)}function La(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(La=function(){return!!e})()}function Ra(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function za(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
5
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ba(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Va(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Ba(Object(n),!0).forEach(function(t){Z(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ba(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ha(e,t){if(t&&(typeof t==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return ka(e)}function Ua(e,t){return Ua=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ua(e,t)}function Wa(e,t){return Oa(e)||Ra(e,t)||qa(e,t)||za()}function Q(e,t){return t||=e.slice(0),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Ga(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Ka(e){var t=Ga(e,`string`);return typeof t==`symbol`?t:t+``}function qa(e,t){if(e){if(typeof e==`string`)return Da(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Da(e,t):void 0}}var Ja,Ya=Ea(Ja||=Q([`
|
|
6
|
+
.focus-outline-hidden :focus {
|
|
7
|
+
outline: none;
|
|
8
|
+
}
|
|
9
|
+
`])),Xa,Za=X.button(Xa||=Q([`
|
|
10
|
+
display: block;
|
|
11
|
+
padding: 0;
|
|
12
|
+
border: 0;
|
|
13
|
+
background: none;
|
|
14
|
+
font-size: 0;
|
|
15
|
+
cursor: `,`;
|
|
16
|
+
`]),function(e){return e.disabled?`not-allowed`:`pointer`}),Qa,$a,eo=X.span(Qa||=Q([`
|
|
17
|
+
font-size: 12px;
|
|
18
|
+
line-height: 1;
|
|
19
|
+
`]));function to(e){var t=e.className,n=e.onClick,r=e.inverted,i=e.label,a=e.disabled;return v.createElement(Za,{className:t,onClick:n,"data-tour-elem":`${r?`right`:`left`}-arrow`,disabled:a},i?v.createElement(eo,null,i):v.createElement(`svg`,{viewBox:`0 0 18.4 14.4`},v.createElement(`path`,{d:r?`M17 7.2H1M10.8 1L17 7.2l-6.2 6.2`:`M1.4 7.2h16M7.6 1L1.4 7.2l6.2 6.2`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeMiterlimit:`10`})))}to.propTypes={className:g.string.isRequired,onClick:g.func.isRequired,inverted:g.bool,label:g.node,disabled:g.bool};var no=X(to)($a||=Q([`
|
|
20
|
+
color: `,`;
|
|
21
|
+
|
|
22
|
+
`,`;
|
|
23
|
+
`,`;
|
|
24
|
+
|
|
25
|
+
&:hover {
|
|
26
|
+
color: `,`;
|
|
27
|
+
}
|
|
28
|
+
`]),function(e){return e.disabled?`#caccce`:`#646464`},function(e){return e.inverted?`margin-left: 24px;`:`margin-right: 24px;`},function(e){return!e.label&&`
|
|
29
|
+
width: 16px;
|
|
30
|
+
height: 12px;
|
|
31
|
+
flex: 0 0 16px;
|
|
32
|
+
`},function(e){return e.disabled?`#caccce`:`#000`}),ro;function io(e){var t=e.className,n=e.onClick,r=e.ariaLabel;return v.createElement(Za,{className:t,onClick:n,"aria-label":r},v.createElement(`svg`,{viewBox:`0 0 9.1 9.1`,"aria-hidden":!0,role:`presentation`},v.createElement(`path`,{fill:`currentColor`,d:`M5.9 4.5l2.8-2.8c.4-.4.4-1 0-1.4-.4-.4-1-.4-1.4 0L4.5 3.1 1.7.3C1.3-.1.7-.1.3.3c-.4.4-.4 1 0 1.4l2.8 2.8L.3 7.4c-.4.4-.4 1 0 1.4.2.2.4.3.7.3s.5-.1.7-.3L4.5 6l2.8 2.8c.3.2.5.3.8.3s.5-.1.7-.3c.4-.4.4-1 0-1.4L5.9 4.5z`})))}io.propTypes={className:g.string.isRequired,onClick:g.func.isRequired,ariaLabel:g.string};var ao=X(io)(ro||=Q([`
|
|
33
|
+
position: absolute;
|
|
34
|
+
top: 22px;
|
|
35
|
+
right: 22px;
|
|
36
|
+
width: 9px;
|
|
37
|
+
height: 9px;
|
|
38
|
+
color: #5e5e5e;
|
|
39
|
+
&:hover {
|
|
40
|
+
color: #000;
|
|
41
|
+
}
|
|
42
|
+
`]));function oo(e){var t=e.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height}}function so(e,t){if(!t.highlightedSelectors)return oo(e);var n=oo(e),r=Pa(t.highlightedSelectors),i;try{for(r.s();!(i=r.n()).done;){var a=i.value,o=document.querySelector(a);if(o&&o.style.display!==`none`&&o.style.visibility!==`hidden`){var s=oo(o);s.top<n.top&&(n.top=s.top),s.right>n.right&&(n.right=s.right),s.bottom>n.bottom&&(n.bottom=s.bottom),s.left<n.left&&(n.left=s.left)}}}catch(e){r.e(e)}finally{r.f()}return n.width=n.right-n.left,n.height=n.bottom-n.top,n}function co(e){var t=e.top,n=e.right,r=e.bottom,i=e.left,a=e.w,o=e.h,s=e.threshold,c=s===void 0?0:s;return t>=0+c&&i>=0+c&&r<=o-c&&n<=a-c}function lo(e){return e===document.querySelector(`body`)||e===document.querySelector(`html`)}var uo=function(e){return/(left|right)/.test(e)},fo=function(e,t){return e>t},po=function(e,t){return e>t},$=function(e){return e<0?0:e};function mo(e){return Object.keys(e).map(function(t){return{position:t,value:e[t]}}).sort(function(e,t){return t.value-e.value}).map(function(e){return e.position})}var ho,go=X.div(ho||=Q([`
|
|
43
|
+
--reactour-accent: `,`;
|
|
44
|
+
`,`
|
|
45
|
+
position: fixed;
|
|
46
|
+
transition: transform 0.3s;
|
|
47
|
+
top: 0;
|
|
48
|
+
left: 0;
|
|
49
|
+
z-index: 1000000;
|
|
50
|
+
|
|
51
|
+
transform: `,`;
|
|
52
|
+
`]),function(e){return e.accentColor},function(e){return e.defaultStyles?`
|
|
53
|
+
max-width: 331px;
|
|
54
|
+
min-width: 150px;
|
|
55
|
+
padding-right: 40px;
|
|
56
|
+
border-radius: ${e.rounded}px;
|
|
57
|
+
background-color: #fff;
|
|
58
|
+
padding: 24px 30px;
|
|
59
|
+
box-shadow: 0 0.5em 3em rgba(0, 0, 0, 0.3);
|
|
60
|
+
color: inherit;
|
|
61
|
+
`:``},function(e){var t=e.targetTop,n=e.targetRight,r=e.targetBottom,i=e.targetLeft,a=e.windowWidth,o=e.windowHeight,s=e.helperWidth,c=e.helperHeight,l=e.helperPosition,u=e.padding,d={left:i,right:a-n,top:t,bottom:o-r},f=function(e){return d[e]>(uo(e)?s+u*2:c+u*2)},p=function(e){for(var t=mo(d),n=0;n<t.length;n++)if(f(t[n]))return e[t[n]];return e.center},m=function(e){if(Array.isArray(e)){var l=fo(e[0],a),d=po(e[1],o),m=function(e,t){console.warn(`${e}:${t} is outside window, falling back to center`)};return l&&m(`x`,e[0]),d&&m(`y`,e[1]),[l?a/2-s/2:e[0],d?o/2-c/2:e[1]]}var h=fo(i+s,a)?fo(n+u,a)?n-s:n-s+u:i-u,g=h>u?h:u,_=po(t+c,o)?po(r+u,o)?r-c:r-c+u:t-u,v=_>u?_:u,y={top:[g,t-c-u*2],right:[n+u*2,v],bottom:[g,r+u*2],left:[i-s-u*2,v],center:[a/2-s/2,o/2-c/2]};return e===`center`||f(e)?y[e]:p(y)}(l);return`translate(${Math.round(m[0])}px, ${Math.round(m[1])}px)`}),_o,vo=X.span(_o||=Q([`
|
|
62
|
+
position: absolute;
|
|
63
|
+
font-family: monospace;
|
|
64
|
+
background: var(--reactour-accent);
|
|
65
|
+
background: `,`;
|
|
66
|
+
height: 1.875em;
|
|
67
|
+
line-height: 2;
|
|
68
|
+
padding-left: 0.8125em;
|
|
69
|
+
padding-right: 0.8125em;
|
|
70
|
+
font-size: 1em;
|
|
71
|
+
border-radius: 1.625em;
|
|
72
|
+
color: white;
|
|
73
|
+
text-align: center;
|
|
74
|
+
box-shadow: 0 0.25em 0.5em rgba(0, 0, 0, 0.3);
|
|
75
|
+
top: -0.8125em;
|
|
76
|
+
left: -0.8125em;
|
|
77
|
+
`]),function(e){return e.accentColor}),yo,bo=X.div(yo||=Q([`
|
|
78
|
+
display: flex;
|
|
79
|
+
margin-top: 24px;
|
|
80
|
+
align-items: center;
|
|
81
|
+
justify-content: center;
|
|
82
|
+
`])),xo,So=X.nav(xo||=Q([`
|
|
83
|
+
counter-reset: dot;
|
|
84
|
+
display: flex;
|
|
85
|
+
justify-content: center;
|
|
86
|
+
align-items: center;
|
|
87
|
+
flex-wrap: wrap;
|
|
88
|
+
`])),Co,wo=X.button(Co||=Q([`
|
|
89
|
+
counter-increment: dot;
|
|
90
|
+
width: 8px;
|
|
91
|
+
height: 8px;
|
|
92
|
+
border: `,`;
|
|
93
|
+
|
|
94
|
+
border-radius: 100%;
|
|
95
|
+
padding: 0;
|
|
96
|
+
display: block;
|
|
97
|
+
margin: 4px;
|
|
98
|
+
transition: opacity 0.3s, transform 0.3s;
|
|
99
|
+
cursor: `,`;
|
|
100
|
+
transform: scale(`,`);
|
|
101
|
+
|
|
102
|
+
color: `,`;
|
|
103
|
+
background: `,`;
|
|
104
|
+
|
|
105
|
+
color: `,`;
|
|
106
|
+
background: `,`;
|
|
107
|
+
|
|
108
|
+
&:before {
|
|
109
|
+
content: counter(dot);
|
|
110
|
+
position: absolute;
|
|
111
|
+
bottom: calc(100% + 0.25em);
|
|
112
|
+
left: 50%;
|
|
113
|
+
opacity: 0;
|
|
114
|
+
transform: translate(-50%, 1em);
|
|
115
|
+
transition: 0.3s;
|
|
116
|
+
display: `,`;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
&:hover {
|
|
120
|
+
background-color: currentColor;
|
|
121
|
+
|
|
122
|
+
&:before {
|
|
123
|
+
opacity: 0.5;
|
|
124
|
+
transform: translate(-50%, -2px);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
`]),function(e){return e.current===e.index?`0`:`1px solid #caccce`},function(e){return e.disabled?`not-allowed`:`pointer`},function(e){return e.current===e.index?1.25:1},function(e){return e.current===e.index?`var(--reactour-accent)`:`#caccce`},function(e){return e.current===e.index?`var(--reactour-accent)`:`none`},function(e){return e.current===e.index?e.accentColor:`#caccce`},function(e){return e.current===e.index?e.accentColor:`none`},function(e){return e.showNumber?`block`:`none`}),To,Eo=X.div(To||=Q([`
|
|
128
|
+
opacity: `,`;
|
|
129
|
+
color: `,`;
|
|
130
|
+
width: 100%;
|
|
131
|
+
left: 0;
|
|
132
|
+
top: 0;
|
|
133
|
+
height: 100%;
|
|
134
|
+
position: fixed;
|
|
135
|
+
z-index: 99999;
|
|
136
|
+
pointer-events: none;
|
|
137
|
+
`]),function(e){return!e.maskClassName&&.7},function(e){return!e.maskClassName&&`#000`});function Do(e){var t=e.windowWidth,n=e.windowHeight,r=e.targetWidth,i=e.targetHeight,a=e.targetTop,o=e.targetLeft,s=e.padding,c=e.rounded,l=e.roundedStep,u=e.disableInteraction,d=e.disableInteractionClassName,f=e.className,p=e.onClick,m=e.highlightedBorder,h=$(r+s*2),g=$(i+s*2),_=$(a-s),y=$(o-s),b=l?Math.min(h/2,g/2):c;return v.createElement(Eo,{onClick:p,maskClassName:f},v.createElement(`svg`,{width:t,height:n,xmlns:`http://www.w3.org/2000/svg`,className:f},v.createElement(`defs`,null,v.createElement(`mask`,{id:`mask-main`},v.createElement(`rect`,{x:0,y:0,width:t,height:n,fill:`white`}),v.createElement(`rect`,{x:y,y:_,width:h,height:g,fill:`black`}),v.createElement(`rect`,{x:y-1,y:_-1,width:b,height:b,fill:`white`}),v.createElement(`circle`,{cx:y+b,cy:_+b,r:b,fill:`black`}),v.createElement(`rect`,{x:y+h-b+1,y:_-1,width:b,height:b,fill:`white`}),v.createElement(`circle`,{cx:y+h-b,cy:_+b,r:b,fill:`black`}),v.createElement(`rect`,{x:y-1,y:_+g-b+1,width:b,height:b,fill:`white`}),v.createElement(`circle`,{cx:y+b,cy:_+g-b,r:b,fill:`black`}),v.createElement(`rect`,{x:y+h-b+1,y:_+g-b+1,width:b,height:b,fill:`white`}),v.createElement(`circle`,{cx:y+h-b,cy:_+g-b,r:b,fill:`black `})),v.createElement(`clipPath`,{id:`clip-path`},v.createElement(`rect`,{x:0,y:0,width:t,height:_}),v.createElement(`rect`,{x:0,y:_,width:y,height:g}),v.createElement(`rect`,{x:o+r+s,y:_,width:$(t-r-y),height:g}),v.createElement(`rect`,{x:0,y:a+i+s,width:t,height:$(n-i-_)}))),v.createElement(`rect`,{x:0,y:0,width:t,height:n,fill:`currentColor`,mask:`url(#mask-main)`}),v.createElement(`rect`,{x:0,y:0,width:t,height:n,fill:`currentColor`,clipPath:`url(#clip-path)`,pointerEvents:`auto`}),v.createElement(`rect`,{x:y,y:_,width:h,height:g,pointerEvents:`auto`,fill:`transparent`,display:u?`block`:`none`,className:d}),m&&v.createElement(`rect`,{x:$(y+m.width/2),y:$(_+m.width/2),width:$(h-m.width),height:$(g-m.width),pointerEvents:`auto`,fill:`none`,strokeWidth:m.width,stroke:m.color,rx:b-2})))}Do.propTypes={windowWidth:g.number.isRequired,windowHeight:g.number.isRequired,targetWidth:g.number.isRequired,targetHeight:g.number.isRequired,targetTop:g.number.isRequired,targetLeft:g.number.isRequired,padding:g.number.isRequired,rounded:g.number.isRequired,roundedStep:g.bool,disableInteraction:g.bool.isRequired,disableInteractionClassName:g.string.isRequired,highlightedBorder:g.shape({color:g.string.isRequired,width:g.number.isRequired})};var Oo=(function(e){var t=e.step,n=e.refresh,i=Wa(m(0),2),a=i[0],o=i[1];return r(function(){if(t.resizeObservables){var e=function(e){var n=Pa(e),r;try{var i=function(){var e=r.value;if(!e.attributes)return 1;t.resizeObservables.find(function(t){return e.matches(t)||e.querySelector(t)!=null})&&o(a+1)};for(n.s();!(r=n.n()).done;)if(i())continue}catch(e){n.e(e)}finally{n.f()}},n=new MutationObserver(function(t){var n=Pa(t),r;try{for(n.s();!(r=n.n()).done;){var i=r.value;i.addedNodes.length!==0&&e(i.addedNodes),i.removedNodes.length!==0&&e(i.removedNodes)}}catch(e){n.e(e)}finally{n.f()}}),r=document.documentElement||document.body;return n.observe(r,{childList:!0,subtree:!0}),function(){n.disconnect()}}},[t,a]),r(function(){if(t.resizeObservables){var e=new ResizeObserver(function(e){n()}),r=Pa(t.resizeObservables),i;try{for(r.s();!(i=r.n()).done;){var a=i.value,o=document.querySelector(a);o&&e.observe(o)}}catch(e){r.e(e)}finally{r.f()}return function(){e.disconnect()}}},[t,a]),null}),ko=(function(e){var t=e.step,n=e.refresh;return r(function(){if(t.mutationObservables){var e=function(e){var r=Pa(e),i;try{var a=function(){var e=i.value;if(!e.attributes)return 1;t.mutationObservables.find(function(t){return e.matches(t)||e.querySelector(t)!=null})&&n()};for(r.s();!(i=r.n()).done;)if(a())continue}catch(e){r.e(e)}finally{r.f()}},r=new MutationObserver(function(t){var n=Pa(t),r;try{for(n.s();!(r=n.n()).done;){var i=r.value;i.addedNodes.length!==0&&e(i.addedNodes),i.removedNodes.length!==0&&e(i.removedNodes)}}catch(e){n.e(e)}finally{n.f()}}),i=document.documentElement||document.body;return r.observe(i,{childList:!0,subtree:!0}),function(){r.disconnect()}}},[t]),null});function Ao(e){var t=e.children,n=s(null);return n.current===null&&(n.current=document.createElement(`div`),n.current.setAttribute(`id`,`___reactour`)),r(function(){return document.body.appendChild(n.current),function(){document.body.removeChild(n.current)}},[n]),a(t,n.current)}var jo={disableFocusLock:g.bool,badgeContent:g.func,highlightedMaskClassName:g.string,children:g.oneOfType([g.node,g.element]),className:g.string,closeButtonAriaLabel:g.string,closeWithMask:g.bool,inViewThreshold:g.number,isOpen:g.bool.isRequired,lastStepNextButton:g.node,maskClassName:g.string,maskSpace:g.number,nextButton:g.node,onAfterOpen:g.func,onBeforeClose:g.func,onRequestClose:g.func,prevButton:g.node,scrollDuration:g.number,scrollOffset:g.number,showButtons:g.bool,showCloseButton:g.bool,showNavigation:g.bool,showNavigationNumber:g.bool,showNumber:g.bool,startAt:g.number,goToStep:g.number,getCurrentStep:g.func,nextStep:g.func,prevStep:g.func,steps:g.arrayOf(g.shape({selector:g.string,content:g.oneOfType([g.node,g.element,g.func]).isRequired,position:g.oneOfType([g.arrayOf(g.number),g.oneOf([`top`,`right`,`bottom`,`left`,`center`])]),action:g.func,style:g.object,stepInteraction:g.bool,navDotAriaLabel:g.string,roundedStep:g.bool})),update:g.string,updateDelay:g.number,disableInteraction:g.bool,disableDotsNavigation:g.bool,disableKeyboardNavigation:g.oneOfType([g.arrayOf(g.oneOf([`esc`,`right`,`left`])),g.bool]),rounded:g.number,accentColor:g.string,highlightedBorder:g.shape({color:g.string.isRequired,width:g.number.isRequired})},Mo={disableFocusLock:!1,showNavigation:!0,showNavigationNumber:!0,showButtons:!0,showCloseButton:!0,closeButtonAriaLabel:`Close`,showNumber:!0,scrollDuration:1,maskSpace:10,updateDelay:1,disableInteraction:!1,rounded:0,accentColor:`#007aff`,closeWithMask:!0},No={mask:{base:`reactour__mask`,isOpen:`reactour__mask--is-open`,disableInteraction:`reactour__mask--disable-interaction`},helper:{base:`reactour__helper`,isOpen:`reactour__helper--is-open`},dot:{base:`reactour__dot`,active:`reactour__dot--is-active`}},Po=function(e){function t(){var e;return ja(this,t),e=Aa(this,t),Z(e,`unlockFocus`,function(t){e.setState({focusUnlocked:!0},t())}),Z(e,`showStep`,function(){if(e.helper&&e.helper.current){var t=e.props.steps,n=e.state,r=n.current;n.focusUnlocked&&e.setState({focusUnlocked:!1});var i=t[r],a=i.selector?document.querySelector(i.selector):null,o=function(t){i.action&&typeof i.action==`function`&&e.unlockFocus(function(){return i.action(t)})};if(i.observe){var s=document.querySelector(i.observe),c={attributes:!0,childList:!0,characterData:!0};e.setState(function(t){return t.observer&&setTimeout(function(){t.observer.disconnect()},0),{observer:new MutationObserver(function(t){t.forEach(function(t){if(t.type===`childList`&&t.addedNodes.length>0){var n=function(){return o(t.addedNodes[0])};setTimeout(function(){return e.calculateNode(t.addedNodes[0],i,n)},100)}else t.type===`childList`&&t.removedNodes.length>0&&e.calculateNode(a,i,function(){return o(a)})})})}},function(){return e.state.observer.observe(s,c)})}else e.state.observer&&(e.state.observer.disconnect(),e.setState({observer:null}));a?e.calculateNode(a,i,function(){return o(a)}):(e.setState(Fo(null,i,e.helper.current),o),i.selector&&console.warn(`Doesn't find a DOM node '${i.selector}'. Please check the 'steps' Tour prop Array at position ${r}.`))}}),Z(e,`calculateNode`,function(t,n,r){var i=e.props,a=i.scrollDuration,o=i.inViewThreshold,s=i.scrollOffset,c=so(t,n),l=Math.max(document.documentElement.clientWidth,window.innerWidth||0),u=Math.max(document.documentElement.clientHeight,window.innerHeight||0);if(co(Va(Va({},c),{},{w:l,h:u,threshold:o})))e.setState(Fo(t,n,e.helper.current),r);else{var d=(0,se.default)(t),f=s||(c.height>u?-25:-(u/2)+c.height/2);oe.default.to(t,{context:lo(d)?window:d,duration:a,offset:f,callback:function(t){e.setState(Fo(t,n,e.helper.current),r)}})}}),Z(e,`recalculateNode`,function(t){var n=document.querySelector(t.selector),r=function(n){t.action&&typeof t.action==`function`&&e.unlockFocus(function(){return t.action(n)})};e.calculateNode(n,t,function(){return r(n)})}),Z(e,`maskClickHandler`,function(t){var n=e.props,r=n.closeWithMask,i=n.onRequestClose;r&&!t.target.classList.contains(No.mask.disableInteraction)&&i(t)}),Z(e,`nextStep`,function(){var t=e.props,n=t.steps,r=t.getCurrentStep;e.setState(function(e){var t=e.current<n.length-1?e.current+1:e.current;return typeof r==`function`&&r(t),{current:t}},e.showStep)}),Z(e,`prevStep`,function(){var t=e.props.getCurrentStep;e.setState(function(e){var n=e.current>0?e.current-1:e.current;return typeof t==`function`&&t(n),{current:n}},e.showStep)}),Z(e,`gotoStep`,function(t){var n=e.props,r=n.steps,i=n.getCurrentStep;e.setState(function(e){var n=r[t]?t:e.current;return typeof i==`function`&&i(n),{current:n}},e.showStep)}),Z(e,`keyDownHandler`,function(t){var n=e.props,r=n.onRequestClose,i=n.nextStep,a=n.prevStep,o=n.disableKeyboardNavigation;if(t.stopPropagation(),o!==!0){var s,c,l;o&&(s=o.includes(`esc`),c=o.includes(`right`),l=o.includes(`left`)),t.keyCode===27&&!s&&(t.preventDefault(),r()),t.keyCode===39&&!c&&(t.preventDefault(),typeof i==`function`?i():e.nextStep()),t.keyCode===37&&!l&&(t.preventDefault(),typeof a==`function`?a():e.prevStep())}}),e.state={isOpen:!1,current:0,top:0,right:0,bottom:0,left:0,width:0,height:0,w:0,h:0,inDOM:!1,observer:null,focusUnlocked:!1},e.helper=f(),e.helperElement=null,e.debouncedShowStep=(0,ce.default)(e.showStep,70),e}return Ia(t,e),Na(t,[{key:`componentDidMount`,value:function(){var e=this.props,t=e.isOpen,n=e.startAt;t&&this.open(n)}},{key:`UNSAFE_componentWillReceiveProps`,value:function(e){var t=this.props,n=t.isOpen,r=t.update,i=t.updateDelay;!n&&e.isOpen?this.open(e.startAt):n&&!e.isOpen&&this.close(),n&&r!==e.update&&(e.steps[this.state.current]?setTimeout(this.showStep,i):this.props.onRequestClose()),n&&e.isOpen&&this.state.current!==e.goToStep&&this.gotoStep(e.goToStep)}},{key:`componentWillUnmount`,value:function(){this.props.isOpen&&this.close(),this.state.observer&&this.state.observer.disconnect()}},{key:`open`,value:function(e){var t=this,n=this.props.onAfterOpen;this.setState(function(t){return{isOpen:!0,current:e===void 0?t.current:e}},function(){setTimeout(t.showStep,1),t.helperElement=t.helper.current,t.props.disableFocusLock||t.helper.current.focus(),n&&n(t.helperElement)}),window.addEventListener(`resize`,this.debouncedShowStep,!1),window.addEventListener(`keydown`,this.keyDownHandler,!1)}},{key:`close`,value:function(){this.setState(function(e){return e.observer&&e.observer.disconnect(),{isOpen:!1,observer:null}},this.onBeforeClose),window.removeEventListener(`resize`,this.debouncedShowStep),window.removeEventListener(`keydown`,this.keyDownHandler)}},{key:`onBeforeClose`,value:function(){var e=this.props.onBeforeClose;e&&e(this.helperElement)}},{key:`render`,value:function(){var e=this,t=this.props,n=t.className,r=t.steps,i=t.maskClassName,a=t.showButtons,o=t.showCloseButton,s=t.closeButtonAriaLabel,c=t.showNavigation,l=t.showNavigationNumber,u=t.showNumber,d=t.onRequestClose,f=t.maskSpace,p=t.lastStepNextButton,m=t.nextButton,h=t.prevButton,g=t.badgeContent,_=t.highlightedMaskClassName,y=t.disableInteraction,b=t.disableDotsNavigation,x=t.nextStep,S=t.prevStep,C=t.rounded,w=t.accentColor,T=t.CustomHelper,E=t.disableFocusLock,ee=t.highlightedBorder,D=this.state,te=D.isOpen,O=D.current,ne=D.inDOM,re=D.top,ie=D.right,oe=D.bottom,se=D.left,ce=D.width,le=D.height,ue=D.w,de=D.h,fe=D.helperWidth,pe=D.helperHeight,me=D.helperPosition;return te?v.createElement(Ao,null,v.createElement(Ya,null),v.createElement(Oo,{step:r[O],refresh:function(){return e.recalculateNode(r[O])}}),v.createElement(ko,{step:r[O],refresh:function(){return e.recalculateNode(r[O])}}),v.createElement(Do,{onClick:this.maskClickHandler,forwardRef:function(t){return e.mask=t},windowWidth:ue,windowHeight:de,targetWidth:ce,targetHeight:le,targetTop:re,targetLeft:se,padding:f,rounded:C,roundedStep:r[O].roundedStep,className:i,disableInteraction:r[O].stepInteraction===!1||y?!r[O].stepInteraction:y,disableInteractionClassName:`${No.mask.disableInteraction} ${_}`,highlightedBorder:ee}),v.createElement(In,{disabled:E,autoFocus:!1},v.createElement(go,{ref:this.helper,targetHeight:le,targetWidth:ce,targetTop:re,targetRight:ie,targetBottom:oe,targetLeft:se,windowWidth:ue,windowHeight:de,helperWidth:fe,helperHeight:pe,helperPosition:me,padding:f,tabIndex:-1,current:O,style:r[O].style?r[O].style:{},rounded:C,className:(0,ae.default)(No.helper.base,n,Z({},No.helper.isOpen,te)),accentColor:w,defaultStyles:!T,role:`dialog`},T?v.createElement(T,{current:O,totalSteps:r.length,gotoStep:this.gotoStep,close:d,content:r[O]&&(typeof r[O].content==`function`?r[O].content({close:d,goTo:this.gotoStep,inDOM:ne,step:O+1}):r[O].content)},this.props.children):v.createElement(v.Fragment,null,this.props.children,r[O]&&(typeof r[O].content==`function`?r[O].content({close:d,goTo:this.gotoStep,inDOM:ne,step:O+1}):r[O].content),u&&v.createElement(vo,{"data-tour-elem":`badge`,accentColor:w},typeof g==`function`?g(O+1,r.length):O+1),(a||c)&&v.createElement(bo,{"data-tour-elem":`controls`},a&&v.createElement(no,{onClick:typeof S==`function`?S:this.prevStep,disabled:O===0,label:h||null}),c&&v.createElement(So,{"data-tour-elem":`navigation`},r.map(function(t,n){return v.createElement(wo,{key:`${t.selector?t.selector:`undef`}_${n}`,onClick:function(){return e.gotoStep(n)},current:O,index:n,accentColor:w,disabled:O===n||b,showNumber:l,"data-tour-elem":`dot`,className:(0,ae.default)(No.dot.base,Z({},No.dot.active,O===n)),"aria-label":t.navDotAriaLabel})})),a&&v.createElement(no,{onClick:O===r.length-1?p?d:function(){}:typeof x==`function`?x:this.nextStep,disabled:!p&&O===r.length-1,inverted:!0,label:p&&O===r.length-1?p:m||null})),o&&v.createElement(ao,{onClick:d,className:`reactour__close`,ariaLabel:s}))))):null}}])}(y),Fo=function(e,t,n){if(n){var r=Math.max(document.documentElement.clientWidth,window.innerWidth||0),i=Math.max(document.documentElement.clientHeight,window.innerHeight||0),a=oo(n),o=a.width,s=a.height,c={top:i+10,right:r/2+9,bottom:i/2+9,left:r/2-o/2,width:0,height:0,w:r,h:i,helperPosition:`center`};return e&&(c=so(e,t)),function(){return Va(Va({w:r,h:i,helperWidth:o,helperHeight:s,helperPosition:t.position},c),{},{inDOM:!!e})}}};Po.propTypes=jo,Po.defaultProps=Mo;export{no as Arrow,vo as Badge,ao as Close,bo as Controls,wo as Dot,So as Navigation,Po as default};
|