text: (()=>{"use strict";var e={811:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(n(468));t.default=function(e){var t=e.children,n=e.channel;return t?t((function(e){a.default.emit(n,e)})):null}},443:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(427),u=r(n(468));t.default=function(e){var t=e.children,n=e.channel,r=a.useState(null),o=r[0],i=r[1];return a.useEffect((function(){var e=u.default.subscribe(n,(function(e){i(e)}));return function(){e()}}),[]),t?t(o):null}},875:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.broadcastChannelListener=t.emitMessageFromChannel=t.createNewBroadcastChannel=void 0,t.createNewBroadcastChannel=function(e){return new BroadcastChannel(e)},t.emitMessageFromChannel=function(e){return{send:function(t){e.postMessage(t)}}},t.broadcastChannelListener=function(e,t){return e.addEventListener("message",t),function(){e.removeEventListener("message",t)}}},468:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(n(197)),u=n(875),o={},i={subscribe:function(e,t){var n;if(void 0===e&&(e=""),!a.default(e)){(null===(n=o[e])||void 0===n?void 0:n.broadcastChannel)?o[e].callbacks.push(t):o[e]={broadcastChannel:u.createNewBroadcastChannel(e),callbacks:[t]},o[e].broadcastChannel.onmessage=function(t){o[e].callbacks.forEach((function(e){e(t.data)}))};var r=o[e],i=r.broadcastChannel,s=r.callbacks,c=function(e){s.forEach((function(t){"function"==typeof t&&t(e.data)}))};return i.addEventListener("message",c),function(){i.removeEventListener("message",c)}}return function(){return null}},emit:function(e,t){void 0===e&&(e="");var n=o[e];if(n||null!==n){var r=n.callbacks,a=n.broadcastChannel;a.postMessage(t),u.emitMessageFromChannel(a).send(t),r.forEach((function(e){e(t)}))}},exists:function(e){return Object.keys(o).includes(e)}};t.default=i},370:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.BroadcastEmiter=t.BroadcastSubscriber=t.useBroadcastSubscriber=t.useBroadcastEmitter=void 0;var a=n(604);Object.defineProperty(t,"useBroadcastEmitter",{enumerable:!0,get:function(){return r(a).default}});var u=n(340);Object.defineProperty(t,"useBroadcastSubscriber",{enumerable:!0,get:function(){return r(u).default}});var o=n(443);Object.defineProperty(t,"BroadcastSubscriber",{enumerable:!0,get:function(){return r(o).default}});var i=n(811);Object.defineProperty(t,"BroadcastEmiter",{enumerable:!0,get:function(){return r(i).default}})},604:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(427),u=r(n(468));t.default=function(e){var t=a.useState(null),n=t[0],r=t[1];return{emit:function(t){r(t),u.default.emit(e,t)},data:n}}},340:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(427),u=r(n(468));t.default=function(e){var t=a.useState(null),n=t[0],r=t[1];return a.useEffect((function(){var t=u.default.subscribe(e,(function(e){r(e)}));return function(){t()}}),[]),{data:n}}},197:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return void 0===e&&(e=""),""===e.trim()}},427:e=>{e.exports=require("react")}},t={},n=function n(r){var a=t[r];if(void 0!==a)return a.exports;var u=t[r]={exports:{}};return e[r].call(u.exports,u,u.exports,n),u.exports}(370),r=exports;for(var a in n)r[a]=n[a];n.__esModule&&Object.defineProperty(r,"__esModule",{value:!0})})();