@icanbwell/composite-v1
Advanced tools
Comparing version 0.2.46 to 0.2.47
@@ -75,4 +75,4 @@ (()=>{"use strict";var oe={7917:(u,_,r)=>{var e=r(3180);class L extends HTMLElement{addEventListener(y,O,P){super.addEventListener(y,O,P)}}var f=r(7634),t=r(2683),i,l;class h{constructor(y){i.set(this,void 0),l.set(this,void 0),(0,e.YH)(this,i,y,"f"),(0,e.YH)(this,l,f.EventBus.getInstance(t.k8).channel((0,e.Q_)(this,i,"f")),"f")}registerDispatcher(y){(0,e.Q_)(this,l,"f").addListener(O=>{var{topic:P}=O,W=O.payload,D=(0,e._T)(W,["name"]);y(new CustomEvent(P,{detail:D}))})}deregister(){f.EventBus.getInstance().removeChannel((0,e.Q_)(this,i,"f"))}}i=new WeakMap,l=new WeakMap;let s=A=>crypto.getRandomValues(new Uint8Array(A)),w=(A,y,O)=>{let P=(2<<Math.log(A.length-1)/Math.LN2)-1,W=-~(1.6*P*y/A.length);return(D=y)=>{let V="";for(;;){let z=O(W),te=W;for(;te--;)if(V+=A[z[te]&P]||"",V.length===D)return V}}},S=(A,y=21)=>w(A,y,s),R=(A=21)=>crypto.getRandomValues(new Uint8Array(A)).reduce((y,O)=>(O&=63,O<36?y+=O.toString(36):O<62?y+=(O-26).toString(36).toUpperCase():O>62?y+="-":y+="_",y),"");var B,Q,C,H,U,X,Z;class p{constructor(){B.add(this),Q.set(this,void 0),C.set(this,{}),H.set(this,void 0),U.set(this,void 0),(0,e.YH)(this,U,(0,e.Q_)(this,B,"m",Z).bind(this),"f"),(0,e.YH)(this,H,new MutationObserver((0,e.Q_)(this,U,"f")),"f")}bindTo(y){return(0,e.YH)(this,Q,y,"f"),this}addChangeListener(y,O){(0,e.Q_)(this,C,"f")[y]=[...(0,e.Q_)(this,C,"f")[y]||[],O],(0,e.Q_)(this,H,"f").observe((0,e.Q_)(this,B,"m",X).call(this),{attributes:!0})}removeChangeListener(y,O){var P,W;(0,e.Q_)(this,C,"f")[y]=(P=(0,e.Q_)(this,C,"f")[y])===null||P===void 0?void 0:P.filter(D=>D!==O),!((W=(0,e.Q_)(this,C,"f")[y])===null||W===void 0)&&W.length||delete(0,e.Q_)(this,C,"f")[y],Object.keys((0,e.Q_)(this,C,"f"))||(0,e.Q_)(this,H,"f").disconnect()}get(y){return(0,e.Q_)(this,B,"m",X).call(this).getAttribute(y)}}Q=new WeakMap,C=new WeakMap,H=new WeakMap,U=new WeakMap,B=new WeakSet,X=function(){if(!(0,e.Q_)(this,Q,"f"))throw new Error("ElementAttributeManager must be bound to an element.");return(0,e.Q_)(this,Q,"f")},Z=function(y){!Object.keys((0,e.Q_)(this,C,"f")).length||y.forEach(O=>{var P;if(O.type==="attributes"){const W=O.attributeName;(P=(0,e.Q_)(this,C,"f")[W])===null||P===void 0||P.forEach(D=>D(O.target.getAttribute(W)))}})};var c=r(2699),v,g,M,j,T,N;const I=(A=!0)=>` | ||
</div> | ||
`}}customElements.get(o)===void 0&&customElements.define(o,a);var n,d,m,E,x,k,Y;class F{constructor(){n.add(this),d.set(this,void 0),m.set(this,void 0),E.set(this,[]),(0,e.Q_)(this,n,"m",x).call(this)}get isInitialized(){return(0,e.Q_)(this,m,"f")?(0,e.Q_)(this,m,"f").isInitialized:!1}validateLoad(){return(0,e.mG)(this,void 0,void 0,function*(){yield(0,e.Q_)(this,d,"f")})}init(...y){return(0,e.mG)(this,void 0,void 0,function*(){try{return yield(0,e.Q_)(this,d,"f"),(0,e.Q_)(this,n,"a",k).init(...y)}catch(O){}})}setUserToken(...y){return(0,e.Q_)(this,n,"a",k).setUserToken(...y)}getUser(...y){return(0,e.Q_)(this,n,"a",k).getUser(...y)}getToken(...y){return(0,e.Q_)(this,n,"a",k).getToken(...y)}getUserId(...y){return(0,e.Q_)(this,n,"a",k).getUserId(...y)}on(...y){(0,e.Q_)(this,n,"m",Y).call(this,()=>(0,e.Q_)(this,n,"a",k).on(...y))}once(...y){(0,e.Q_)(this,n,"m",Y).call(this,()=>(0,e.Q_)(this,n,"a",k).once(...y))}off(...y){(0,e.Q_)(this,n,"m",Y).call(this,()=>(0,e.Q_)(this,n,"a",k).off(...y))}}d=new WeakMap,m=new WeakMap,E=new WeakMap,n=new WeakSet,x=function(){return(0,e.mG)(this,void 0,void 0,function*(){try{(0,e.YH)(this,d,Promise.all([r.e(797),r.e(98),r.e(260)]).then(r.bind(r,8098)),"f"),(0,e.YH)(this,m,new(yield(0,e.Q_)(this,d,"f")).Bwell,"f"),(0,e.Q_)(this,E,"f").forEach(y=>y())}catch(y){const O="There was an error loading core Bwell script. Please contact support.";(yield Promise.all([r.e(797),r.e(193)]).then(r.bind(r,7193))).default().fatal(y,O)}})},k=function(){if(!(0,e.Q_)(this,m,"f"))throw new Error("Bwell must be initialized.");return(0,e.Q_)(this,m,"f")},Y=function(y){(0,e.Q_)(this,m,"f")?y():(0,e.Q_)(this,E,"f").push(y)};const q=[{name:"loader",defaultElement:document.createElement(K)},{name:"error",defaultElement:document.createElement(o)}];(({src:A,elementNameSuffix:y})=>(0,e.mG)(void 0,void 0,void 0,function*(){var O,P,W,D,V,z,te;window.bwell||(window.bwell=new F);const re=`bwell-${y}`;if(customElements.get(re)!==void 0)return;class se extends L{constructor(){super(),O.add(this),P.set(this,R()),W.set(this,void 0),D.set(this,document.createElement("feature-app-loader")),V.set(this,void 0),z.set(this,void 0),this.attachShadow({mode:"open"});const $=new G(q).attachToShadowRoot(this.shadowRoot);$.addEventListener("visibilitychange",({visibility:le})=>(0,e.Q_)(this,D,"f").style.display=le==="hidden"?"unset":"hidden"),(0,e.YH)(this,z,{slots:$,attributes:new p().bindTo(this)},"f"),(0,e.YH)(this,V,(0,e.Q_)(this,O,"m",te).bind(this),"f")}connectedCallback(){return(0,e.mG)(this,void 0,void 0,function*(){(0,e.Q_)(this,z,"f").slots.showSlot("loader");try{yield window.bwell.validateLoad()}catch($){(0,e.Q_)(this,z,"f").slots.showSlot("error")}(0,e.YH)(this,P,this.id||(0,e.Q_)(this,P,"f"),"f"),(0,e.YH)(this,W,new h((0,e.Q_)(this,P,"f")),"f"),(0,e.Q_)(this,W,"f").registerDispatcher($=>this.dispatchEvent($)),window.bwell.isInitialized?(0,e.Q_)(this,V,"f").call(this):window.bwell.once("initialized",(0,e.Q_)(this,V,"f"))})}detachedCallback(){var $;($=(0,e.Q_)(this,W,"f"))===null||$===void 0||$.deregister()}}P=new WeakMap,W=new WeakMap,D=new WeakMap,V=new WeakMap,z=new WeakMap,O=new WeakSet,te=function(){(0,e.Q_)(this,D,"f").setAttribute("featureAppId",`bwell-embeddable:${re}`),(0,e.Q_)(this,D,"f").setAttribute("src",A),(0,e.Q_)(this,D,"f").config={id:(0,e.Q_)(this,P,"f"),name:y,elementName:re,utils:(0,e.Q_)(this,z,"f")},this.shadowRoot.appendChild((0,e.Q_)(this,D,"f"))},customElements.define(re,se)}))({src:`https://embeddables.prod.icanbwell.com/composite-v1/${{i8:"0.2.46"}.i8}/scripts/embeddable.federated.js`,elementNameSuffix:"composite-v1"})},4719:(u,_,r)=>{Object.defineProperty(_,"__esModule",{value:!0}),_.Broadcaster=void 0;var e=r(2699),L=function(){function f(t,i){if(i===void 0&&(i=0),this.emitter=new e.EventEmitter,typeof t=="undefined"||t.length===0)throw new Error("Broadcaster must have a name");this._name=t,this.emitter.setMaxListeners(i)}return Object.defineProperty(f.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),f.prototype.emit=function(t){this.emitter.emit(this._name,t)},f.prototype.addListener=function(t){return this._addListener("addListener",t)},f.prototype.on=function(t){return this.addListener(t)},f.prototype.prependListener=function(t){return this._addListener("prependListener",t)},f.prototype.once=function(t){return this._addListener("once",t)},f.prototype.prependOnceListener=function(t){return this._addListener("prependOnceListener",t)},f.prototype.removeListener=function(t){this._proxyListener("removeListener",t)},f.prototype.off=function(t){this.removeListener(t)},f.prototype.removeAllListeners=function(){this.emitter.removeAllListeners(this._name)},f.prototype.getMaxListeners=function(){return this.emitter.getMaxListeners()},f.prototype.setMaxListeners=function(t){this.emitter.setMaxListeners(t)},f.prototype.getEventEmitter=function(){return this.emitter},f.prototype.listeners=function(){return this.emitter.listeners(this._name)},f.prototype.rawListeners=function(){return this.emitter.rawListeners(this._name)},f.prototype.listenerCount=function(){return this.emitter.listenerCount(this._name)},f.prototype._proxyListener=function(t,i){this.emitter[t](this._name,i)},f.prototype._createUnsubscribe=function(t){var i=this;return function(){i.emitter.removeListener(i._name,t)}},f.prototype._addListener=function(t,i){return this._proxyListener(t,i),this._createUnsubscribe(i)},f.prototype.destroy=function(){this.emitter.removeAllListeners()},f}();_.Broadcaster=L},7706:function(u,_,r){var e=this&&this.__extends||function(){var i=function(l,h){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,w){s.__proto__=w}||function(s,w){for(var S in w)Object.prototype.hasOwnProperty.call(w,S)&&(s[S]=w[S])},i(l,h)};return function(l,h){if(typeof h!="function"&&h!==null)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");i(l,h);function s(){this.constructor=l}l.prototype=h===null?Object.create(h):(s.prototype=h.prototype,new s)}}();Object.defineProperty(_,"__esModule",{value:!0}),_.Channel=void 0;var L=r(4719),f=r(4683),t=function(i){e(l,i);function l(h,s){s===void 0&&(s=0);var w=i.call(this,h,s)||this;return w.topics={},w._onTopicDestroyed=w._onTopicDestroyed.bind(w),w._onTopicEmit=w._onTopicEmit.bind(w),w}return l.prototype.emit=function(h){var s={channel:this.name,topic:"*",payload:h};i.prototype.emit.call(this,s)},l.prototype.topic=function(h){var s=this.topics[h];return typeof s=="undefined"&&(s=this.topics[h]=new f.Topic(h,this.name,this.getMaxListeners()),s.getEventEmitter().on("topic_destroyed",this._onTopicDestroyed),s.on(this._onTopicEmit)),s},l.prototype.hasTopic=function(h){return Boolean(this.topics[h])},l.prototype.removeTopic=function(h){var s=this.topics[h];return typeof s!="undefined"?(delete this.topics[h],s.destroy(),!0):!1},l.prototype.getAllTopics=function(){return Object.values(this.topics)},l.prototype._onTopicEmit=function(h){i.prototype.emit.call(this,h)},l.prototype._onTopicDestroyed=function(h){delete this.topics[h]},l.prototype.destroy=function(){for(var h in this.topics)this.removeTopic(h);this.emitter.emit("channel_destroyed",this.name),i.prototype.destroy.call(this)},l}(L.Broadcaster);_.Channel=t},6206:(u,_,r)=>{Object.defineProperty(_,"__esModule",{value:!0}),_.EventBus=void 0;var e=r(7706),L=function(){function f(t){this.channels={},t=typeof t=="undefined"?{}:t,this._maxListeners=t.maxListeners===void 0?0:t.maxListeners,this.onChannelDestroyed=this.onChannelDestroyed.bind(this),this.createMainChannel(),this.onChannelEmit=this.onChannelEmit.bind(this)}return f.prototype.createMainChannel=function(){var t=this;this.defaultChannel=new e.Channel("*",this._maxListeners),this.channels["*"]=this.defaultChannel,this.defaultChannel.getEventEmitter().on("channel_destroyed",function(){t.createMainChannel()})},f.prototype.mainChannel=function(){return this.defaultChannel},f.prototype.allChannels=function(){return this.mainChannel()},f.prototype.channel=function(t){var i=this.channels[t];return typeof i=="undefined"&&(i=this.channels[t]=new e.Channel(t,this._maxListeners),i.on(this.onChannelEmit),i.getEventEmitter().on("channel_destroyed",this.onChannelDestroyed)),i},f.prototype.hasChannel=function(t){return Boolean(this.channels[t])},f.prototype.removeChannel=function(t){if(t==="*")throw new Error("Can't remove default channel");var i=this.channels[t];return typeof i!="undefined"?(i.destroy(),!0):!1},f.prototype.onChannelEmit=function(t){var i=t.topic;if(this.defaultChannel.hasTopic(i)){var l={topic:t.topic,channel:t.channel,payload:t.payload};this.defaultChannel.topic(i).getEventEmitter().emit(i,l)}this.defaultChannel.getEventEmitter().emit(this.defaultChannel.name,t)},f.prototype.onChannelDestroyed=function(t){delete this.channels[t]},f.prototype.getAllChannels=function(){return Object.values(this.channels)},f.prototype.destroy=function(){for(var t in this.channels)this.channels[t].destroy()},f}();_.EventBus=L},3534:function(u,_,r){var e=this&&this.__createBinding||(Object.create?function(f,t,i,l){l===void 0&&(l=i),Object.defineProperty(f,l,{enumerable:!0,get:function(){return t[i]}})}:function(f,t,i,l){l===void 0&&(l=i),f[l]=t[i]}),L=this&&this.__exportStar||function(f,t){for(var i in f)i!=="default"&&!Object.prototype.hasOwnProperty.call(t,i)&&e(t,f,i)};Object.defineProperty(_,"__esModule",{value:!0}),L(r(4719),_),L(r(6206),_),L(r(7706),_),L(r(4683),_)},4683:function(u,_,r){var e=this&&this.__extends||function(){var t=function(i,l){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,s){h.__proto__=s}||function(h,s){for(var w in s)Object.prototype.hasOwnProperty.call(s,w)&&(h[w]=s[w])},t(i,l)};return function(i,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");t(i,l);function h(){this.constructor=i}i.prototype=l===null?Object.create(l):(h.prototype=l.prototype,new h)}}();Object.defineProperty(_,"__esModule",{value:!0}),_.Topic=void 0;var L=r(4719),f=function(t){e(i,t);function i(l,h,s){s===void 0&&(s=0);var w=t.call(this,l,s)||this;return w.channel=h,w}return i.prototype.emit=function(l){var h={channel:this.channel,topic:this.name,payload:l};t.prototype.emit.call(this,h)},i.prototype.destroy=function(){this.emitter.emit("topic_destroyed",this.name),t.prototype.destroy.call(this)},i}(L.Broadcaster);_.Topic=f},2699:u=>{var _=typeof Reflect=="object"?Reflect:null,r=_&&typeof _.apply=="function"?_.apply:function(c,v,g){return Function.prototype.apply.call(c,v,g)},e;_&&typeof _.ownKeys=="function"?e=_.ownKeys:Object.getOwnPropertySymbols?e=function(c){return Object.getOwnPropertyNames(c).concat(Object.getOwnPropertySymbols(c))}:e=function(c){return Object.getOwnPropertyNames(c)};function L(p){console&&console.warn&&console.warn(p)}var f=Number.isNaN||function(c){return c!==c};function t(){t.init.call(this)}u.exports=t,u.exports.once=U,t.EventEmitter=t,t.prototype._events=void 0,t.prototype._eventsCount=0,t.prototype._maxListeners=void 0;var i=10;function l(p){if(typeof p!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof p)}Object.defineProperty(t,"defaultMaxListeners",{enumerable:!0,get:function(){return i},set:function(p){if(typeof p!="number"||p<0||f(p))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+p+".");i=p}}),t.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},t.prototype.setMaxListeners=function(c){if(typeof c!="number"||c<0||f(c))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+c+".");return this._maxListeners=c,this};function h(p){return p._maxListeners===void 0?t.defaultMaxListeners:p._maxListeners}t.prototype.getMaxListeners=function(){return h(this)},t.prototype.emit=function(c){for(var v=[],g=1;g<arguments.length;g++)v.push(arguments[g]);var M=c==="error",j=this._events;if(j!==void 0)M=M&&j.error===void 0;else if(!M)return!1;if(M){var T;if(v.length>0&&(T=v[0]),T instanceof Error)throw T;var N=new Error("Unhandled error."+(T?" ("+T.message+")":""));throw N.context=T,N}var I=j[c];if(I===void 0)return!1;if(typeof I=="function")r(I,this,v);else for(var G=I.length,K=Q(I,G),g=0;g<G;++g)r(K[g],this,v);return!0};function s(p,c,v,g){var M,j,T;if(l(v),j=p._events,j===void 0?(j=p._events=Object.create(null),p._eventsCount=0):(j.newListener!==void 0&&(p.emit("newListener",c,v.listener?v.listener:v),j=p._events),T=j[c]),T===void 0)T=j[c]=v,++p._eventsCount;else if(typeof T=="function"?T=j[c]=g?[v,T]:[T,v]:g?T.unshift(v):T.push(v),M=h(p),M>0&&T.length>M&&!T.warned){T.warned=!0;var N=new Error("Possible EventEmitter memory leak detected. "+T.length+" "+String(c)+" listeners added. Use emitter.setMaxListeners() to increase limit");N.name="MaxListenersExceededWarning",N.emitter=p,N.type=c,N.count=T.length,L(N)}return p}t.prototype.addListener=function(c,v){return s(this,c,v,!1)},t.prototype.on=t.prototype.addListener,t.prototype.prependListener=function(c,v){return s(this,c,v,!0)};function w(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function S(p,c,v){var g={fired:!1,wrapFn:void 0,target:p,type:c,listener:v},M=w.bind(g);return M.listener=v,g.wrapFn=M,M}t.prototype.once=function(c,v){return l(v),this.on(c,S(this,c,v)),this},t.prototype.prependOnceListener=function(c,v){return l(v),this.prependListener(c,S(this,c,v)),this},t.prototype.removeListener=function(c,v){var g,M,j,T,N;if(l(v),M=this._events,M===void 0)return this;if(g=M[c],g===void 0)return this;if(g===v||g.listener===v)--this._eventsCount===0?this._events=Object.create(null):(delete M[c],M.removeListener&&this.emit("removeListener",c,g.listener||v));else if(typeof g!="function"){for(j=-1,T=g.length-1;T>=0;T--)if(g[T]===v||g[T].listener===v){N=g[T].listener,j=T;break}if(j<0)return this;j===0?g.shift():C(g,j),g.length===1&&(M[c]=g[0]),M.removeListener!==void 0&&this.emit("removeListener",c,N||v)}return this},t.prototype.off=t.prototype.removeListener,t.prototype.removeAllListeners=function(c){var v,g,M;if(g=this._events,g===void 0)return this;if(g.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):g[c]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete g[c]),this;if(arguments.length===0){var j=Object.keys(g),T;for(M=0;M<j.length;++M)T=j[M],T!=="removeListener"&&this.removeAllListeners(T);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(v=g[c],typeof v=="function")this.removeListener(c,v);else if(v!==void 0)for(M=v.length-1;M>=0;M--)this.removeListener(c,v[M]);return this};function R(p,c,v){var g=p._events;if(g===void 0)return[];var M=g[c];return M===void 0?[]:typeof M=="function"?v?[M.listener||M]:[M]:v?H(M):Q(M,M.length)}t.prototype.listeners=function(c){return R(this,c,!0)},t.prototype.rawListeners=function(c){return R(this,c,!1)},t.listenerCount=function(p,c){return typeof p.listenerCount=="function"?p.listenerCount(c):B.call(p,c)},t.prototype.listenerCount=B;function B(p){var c=this._events;if(c!==void 0){var v=c[p];if(typeof v=="function")return 1;if(v!==void 0)return v.length}return 0}t.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]};function Q(p,c){for(var v=new Array(c),g=0;g<c;++g)v[g]=p[g];return v}function C(p,c){for(;c+1<p.length;c++)p[c]=p[c+1];p.pop()}function H(p){for(var c=new Array(p.length),v=0;v<c.length;++v)c[v]=p[v].listener||p[v];return c}function U(p,c){return new Promise(function(v,g){function M(T){p.removeListener(c,j),g(T)}function j(){typeof p.removeListener=="function"&&p.removeListener("error",M),v([].slice.call(arguments))}Z(p,c,j,{once:!0}),c!=="error"&&X(p,M,{once:!0})})}function X(p,c,v){typeof p.on=="function"&&Z(p,"error",c,v)}function Z(p,c,v,g){if(typeof p.on=="function")g.once?p.once(c,v):p.on(c,v);else if(typeof p.addEventListener=="function")p.addEventListener(c,function M(j){g.once&&p.removeEventListener(c,M),v(j)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof p)}},3180:(u,_,r)=>{r.d(_,{Q_:()=>f,YH:()=>t,_T:()=>e,mG:()=>L});function e(i,l){var h={};for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&l.indexOf(s)<0&&(h[s]=i[s]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var w=0,s=Object.getOwnPropertySymbols(i);w<s.length;w++)l.indexOf(s[w])<0&&Object.prototype.propertyIsEnumerable.call(i,s[w])&&(h[s[w]]=i[s[w]]);return h}function L(i,l,h,s){function w(S){return S instanceof h?S:new h(function(R){R(S)})}return new(h||(h=Promise))(function(S,R){function B(H){try{C(s.next(H))}catch(U){R(U)}}function Q(H){try{C(s.throw(H))}catch(U){R(U)}}function C(H){H.done?S(H.value):w(H.value).then(B,Q)}C((s=s.apply(i,l||[])).next())})}function f(i,l,h,s){if(h==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof l=="function"?i!==l||!s:!l.has(i))throw new TypeError("Cannot read private member from an object whose class did not declare it");return h==="m"?s:h==="a"?s.call(i):s?s.value:l.get(i)}function t(i,l,h,s,w){if(s==="m")throw new TypeError("Private method is not writable");if(s==="a"&&!w)throw new TypeError("Private accessor was defined without a setter");if(typeof l=="function"?i!==l||!w:!l.has(i))throw new TypeError("Cannot write private member to an object whose class did not declare it");return s==="a"?w.call(i,h):w?w.value=h:l.set(i,h),h}},2683:(u,_,r)=>{r.d(_,{k8:()=>e,oJ:()=>f});const e="embeddable-event-bus-key",L=1e5,f={rest:{endpoints:{big:"https://big.prod.icanbwell.com"}}}},9642:(u,_,r)=>{r.r(_),r.d(_,{EventBus:()=>l});var e=r(3534);function L(h,s,w,S){if(w==="a"&&!S)throw new TypeError("Private accessor was defined without a getter");if(typeof s=="function"?h!==s||!S:!s.has(h))throw new TypeError("Cannot read private member from an object whose class did not declare it");return w==="m"?S:w==="a"?S.call(h):S?S.value:s.get(h)}var f,t;const i="default";class l{static getInstance(s){let w=s?L(this,f,"f",t)[s]:L(this,f,"f",t)[i];return w||(w=L(this,f,"f",t)[s||i]=new e.EventBus),w}}f=l,t={value:{}}}},ie={};function b(u){var _=ie[u];if(_!==void 0)return _.exports;var r=ie[u]={id:u,loaded:!1,exports:{}};return oe[u].call(r.exports,r,r.exports,b),r.loaded=!0,r.exports}b.m=oe,b.c=ie,b.n=u=>{var _=u&&u.__esModule?()=>u.default:()=>u;return b.d(_,{a:_}),_},(()=>{var u=Object.getPrototypeOf?r=>Object.getPrototypeOf(r):r=>r.__proto__,_;b.t=function(r,e){if(e&1&&(r=this(r)),e&8||typeof r=="object"&&r&&(e&4&&r.__esModule||e&16&&typeof r.then=="function"))return r;var L=Object.create(null);b.r(L);var f={};_=_||[null,u({}),u([]),u(u)];for(var t=e&2&&r;typeof t=="object"&&!~_.indexOf(t);t=u(t))Object.getOwnPropertyNames(t).forEach(i=>f[i]=()=>r[i]);return f.default=()=>r,b.d(L,f),L}})(),b.d=(u,_)=>{for(var r in _)b.o(_,r)&&!b.o(u,r)&&Object.defineProperty(u,r,{enumerable:!0,get:_[r]})},b.f={},b.e=u=>Promise.all(Object.keys(b.f).reduce((_,r)=>(b.f[r](u,_),_),[])),b.u=u=>""+u+".index.js",b.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(u){if(typeof window=="object")return window}}(),b.hmd=u=>(u=Object.create(u),u.children||(u.children=[]),Object.defineProperty(u,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+u.id)}}),u),b.o=(u,_)=>Object.prototype.hasOwnProperty.call(u,_),(()=>{var u={},_="@icanbwell/composite-v1:";b.l=(r,e,L,f)=>{if(u[r]){u[r].push(e);return}var t,i;if(L!==void 0)for(var l=document.getElementsByTagName("script"),h=0;h<l.length;h++){var s=l[h];if(s.getAttribute("src")==r||s.getAttribute("data-webpack")==_+L){t=s;break}}t||(i=!0,t=document.createElement("script"),t.charset="utf-8",t.timeout=120,b.nc&&t.setAttribute("nonce",b.nc),t.setAttribute("data-webpack",_+L),t.src=r),u[r]=[e];var w=(R,B)=>{t.onerror=t.onload=null,clearTimeout(S);var Q=u[r];if(delete u[r],t.parentNode&&t.parentNode.removeChild(t),Q&&Q.forEach(C=>C(B)),R)return R(B)},S=setTimeout(w.bind(null,void 0,{type:"timeout",target:t}),12e4);t.onerror=w.bind(null,t.onerror),t.onload=w.bind(null,t.onload),i&&document.head.appendChild(t)}})(),b.r=u=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})},(()=>{b.S={};var u={},_={};b.I=(r,e)=>{e||(e=[]);var L=_[r];if(L||(L=_[r]={}),!(e.indexOf(L)>=0)){if(e.push(L),u[r])return u[r];b.o(b.S,r)||(b.S[r]={});var f=b.S[r],t=w=>typeof console!="undefined"&&console.warn&&console.warn(w),i="@icanbwell/composite-v1",l=(w,S,R,B)=>{var Q=f[w]=f[w]||{},C=Q[S];(!C||!C.loaded&&(!B!=!C.eager?B:i>C.from))&&(Q[S]={get:R,from:i,eager:!!B})},h=w=>{var S=C=>t("Initialization of sharing external failed: "+C);try{var R=b(w);if(!R)return;var B=C=>C&&C.init&&C.init(b.S[r],e);if(R.then)return s.push(R.then(B,S));var Q=B(R);if(Q&&Q.then)return s.push(Q.catch(S))}catch(C){S(C)}},s=[];switch(r){case"default":l("@icanbwell/events","0.21.1",()=>()=>b(9642),1);break}return s.length?u[r]=Promise.all(s).then(()=>u[r]=1):u[r]=1}}})(),(()=>{var u;b.g.importScripts&&(u=b.g.location+"");var _=b.g.document;if(!u&&_&&(_.currentScript&&(u=_.currentScript.src),!u)){var r=_.getElementsByTagName("script");r.length&&(u=r[r.length-1].src)}if(!u)throw new Error("Automatic publicPath is not supported in this browser");u=u.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),b.p=u})(),(()=>{var u=o=>{var a=m=>m.split(".").map(E=>+E==E?+E:E),n=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(o),d=n[1]?a(n[1]):[];return n[2]&&(d.length++,d.push.apply(d,a(n[2]))),n[3]&&(d.push([]),d.push.apply(d,a(n[3]))),d},_=(o,a)=>{o=u(o),a=u(a);for(var n=0;;){if(n>=o.length)return n<a.length&&(typeof a[n])[0]!="u";var d=o[n],m=(typeof d)[0];if(n>=a.length)return m=="u";var E=a[n],x=(typeof E)[0];if(m!=x)return m=="o"&&x=="n"||x=="s"||m=="u";if(m!="o"&&m!="u"&&d!=E)return d<E;n++}},r=o=>{var a=o[0],n="";if(o.length===1)return"*";if(a+.5){n+=a==0?">=":a==-1?"<":a==1?"^":a==2?"~":a>0?"=":"!=";for(var d=1,m=1;m<o.length;m++)d--,n+=(typeof(x=o[m]))[0]=="u"?"-":(d>0?".":"")+(d=2,x);return n}var E=[];for(m=1;m<o.length;m++){var x=o[m];E.push(x===0?"not("+k()+")":x===1?"("+k()+" || "+k()+")":x===2?E.pop()+" "+E.pop():r(x))}return k();function k(){return E.pop().replace(/^\((.+)\)$/,"$1")}},e=(o,a)=>{if(0 in o){a=u(a);var n=o[0],d=n<0;d&&(n=-n-1);for(var m=0,E=1,x=!0;;E++,m++){var k,Y,F=E<o.length?(typeof o[E])[0]:"";if(m>=a.length||(Y=(typeof(k=a[m]))[0])=="o")return!x||(F=="u"?E>n&&!d:F==""!=d);if(Y=="u"){if(!x||F!="u")return!1}else if(x)if(F==Y)if(E<=n){if(k!=o[E])return!1}else{if(d?k>o[E]:k<o[E])return!1;k!=o[E]&&(x=!1)}else if(F!="s"&&F!="n"){if(d||E<=n)return!1;x=!1,E--}else{if(E<=n||Y<F!=d)return!1;x=!1}else F!="s"&&F!="n"&&(x=!1,E--)}}var q=[],J=q.pop.bind(q);for(m=1;m<o.length;m++){var ee=o[m];q.push(ee==1?J()|J():ee==2?J()&J():ee?e(ee,a):!J())}return!!J()},L=(o,a)=>{var n=b.S[o];if(!n||!b.o(n,a))throw new Error("Shared module "+a+" doesn't exist in shared scope "+o);return n},f=(o,d)=>{var n=o[d],d=Object.keys(n).reduce((m,E)=>!m||_(m,E)?E:m,0);return d&&n[d]},t=(o,a)=>{var n=o[a];return Object.keys(n).reduce((d,m)=>!d||!n[d].loaded&&_(d,m)?m:d,0)},i=(o,a,n,d)=>"Unsatisfied version "+n+" from "+(n&&o[a][n].from)+" of shared singleton module "+a+" (required "+r(d)+")",l=(o,a,n,d)=>{var m=t(o,n);return Q(o[n][m])},h=(o,a,n,d)=>{var m=t(o,n);return e(d,m)||typeof console!="undefined"&&console.warn&&console.warn(i(o,n,m,d)),Q(o[n][m])},s=(o,a,n,d)=>{var m=t(o,n);if(!e(d,m))throw new Error(i(o,n,m,d));return Q(o[n][m])},w=(o,m,n)=>{var d=o[m],m=Object.keys(d).reduce((E,x)=>e(n,x)&&(!E||_(E,x))?x:E,0);return m&&d[m]},S=(o,a,n,d)=>{var m=o[n];return"No satisfying version ("+r(d)+") of shared module "+n+" found in shared scope "+a+`. | ||
`}}customElements.get(o)===void 0&&customElements.define(o,a);var n,d,m,E,x,k,Y;class F{constructor(){n.add(this),d.set(this,void 0),m.set(this,void 0),E.set(this,[]),(0,e.Q_)(this,n,"m",x).call(this)}get isInitialized(){return(0,e.Q_)(this,m,"f")?(0,e.Q_)(this,m,"f").isInitialized:!1}validateLoad(){return(0,e.mG)(this,void 0,void 0,function*(){yield(0,e.Q_)(this,d,"f")})}init(...y){return(0,e.mG)(this,void 0,void 0,function*(){try{return yield(0,e.Q_)(this,d,"f"),(0,e.Q_)(this,n,"a",k).init(...y)}catch(O){}})}setUserToken(...y){return(0,e.Q_)(this,n,"a",k).setUserToken(...y)}getUser(...y){return(0,e.Q_)(this,n,"a",k).getUser(...y)}getToken(...y){return(0,e.Q_)(this,n,"a",k).getToken(...y)}getUserId(...y){return(0,e.Q_)(this,n,"a",k).getUserId(...y)}on(...y){(0,e.Q_)(this,n,"m",Y).call(this,()=>(0,e.Q_)(this,n,"a",k).on(...y))}once(...y){(0,e.Q_)(this,n,"m",Y).call(this,()=>(0,e.Q_)(this,n,"a",k).once(...y))}off(...y){(0,e.Q_)(this,n,"m",Y).call(this,()=>(0,e.Q_)(this,n,"a",k).off(...y))}}d=new WeakMap,m=new WeakMap,E=new WeakMap,n=new WeakSet,x=function(){return(0,e.mG)(this,void 0,void 0,function*(){try{(0,e.YH)(this,d,Promise.all([r.e(797),r.e(98),r.e(260)]).then(r.bind(r,8098)),"f"),(0,e.YH)(this,m,new(yield(0,e.Q_)(this,d,"f")).Bwell,"f"),(0,e.Q_)(this,E,"f").forEach(y=>y())}catch(y){const O="There was an error loading core Bwell script. Please contact support.";(yield Promise.all([r.e(797),r.e(193)]).then(r.bind(r,7193))).default().fatal(y,O)}})},k=function(){if(!(0,e.Q_)(this,m,"f"))throw new Error("Bwell must be initialized.");return(0,e.Q_)(this,m,"f")},Y=function(y){(0,e.Q_)(this,m,"f")?y():(0,e.Q_)(this,E,"f").push(y)};const q=[{name:"loader",defaultElement:document.createElement(K)},{name:"error",defaultElement:document.createElement(o)}];(({src:A,elementNameSuffix:y})=>(0,e.mG)(void 0,void 0,void 0,function*(){var O,P,W,D,V,z,te;window.bwell||(window.bwell=new F);const re=`bwell-${y}`;if(customElements.get(re)!==void 0)return;class se extends L{constructor(){super(),O.add(this),P.set(this,R()),W.set(this,void 0),D.set(this,document.createElement("feature-app-loader")),V.set(this,void 0),z.set(this,void 0),this.attachShadow({mode:"open"});const $=new G(q).attachToShadowRoot(this.shadowRoot);$.addEventListener("visibilitychange",({visibility:le})=>(0,e.Q_)(this,D,"f").style.display=le==="hidden"?"unset":"hidden"),(0,e.YH)(this,z,{slots:$,attributes:new p().bindTo(this)},"f"),(0,e.YH)(this,V,(0,e.Q_)(this,O,"m",te).bind(this),"f")}connectedCallback(){return(0,e.mG)(this,void 0,void 0,function*(){(0,e.Q_)(this,z,"f").slots.showSlot("loader");try{yield window.bwell.validateLoad()}catch($){(0,e.Q_)(this,z,"f").slots.showSlot("error")}(0,e.YH)(this,P,this.id||(0,e.Q_)(this,P,"f"),"f"),(0,e.YH)(this,W,new h((0,e.Q_)(this,P,"f")),"f"),(0,e.Q_)(this,W,"f").registerDispatcher($=>this.dispatchEvent($)),window.bwell.isInitialized?(0,e.Q_)(this,V,"f").call(this):window.bwell.once("initialized",(0,e.Q_)(this,V,"f"))})}detachedCallback(){var $;($=(0,e.Q_)(this,W,"f"))===null||$===void 0||$.deregister()}}P=new WeakMap,W=new WeakMap,D=new WeakMap,V=new WeakMap,z=new WeakMap,O=new WeakSet,te=function(){(0,e.Q_)(this,D,"f").setAttribute("featureAppId",`bwell-embeddable:${re}`),(0,e.Q_)(this,D,"f").setAttribute("src",A),(0,e.Q_)(this,D,"f").config={id:(0,e.Q_)(this,P,"f"),name:y,elementName:re,utils:(0,e.Q_)(this,z,"f")},this.shadowRoot.appendChild((0,e.Q_)(this,D,"f"))},customElements.define(re,se)}))({src:`https://embeddables.prod.icanbwell.com/composite-v1/${{i8:"0.2.47"}.i8}/scripts/embeddable.federated.js`,elementNameSuffix:"composite-v1"})},4719:(u,_,r)=>{Object.defineProperty(_,"__esModule",{value:!0}),_.Broadcaster=void 0;var e=r(2699),L=function(){function f(t,i){if(i===void 0&&(i=0),this.emitter=new e.EventEmitter,typeof t=="undefined"||t.length===0)throw new Error("Broadcaster must have a name");this._name=t,this.emitter.setMaxListeners(i)}return Object.defineProperty(f.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),f.prototype.emit=function(t){this.emitter.emit(this._name,t)},f.prototype.addListener=function(t){return this._addListener("addListener",t)},f.prototype.on=function(t){return this.addListener(t)},f.prototype.prependListener=function(t){return this._addListener("prependListener",t)},f.prototype.once=function(t){return this._addListener("once",t)},f.prototype.prependOnceListener=function(t){return this._addListener("prependOnceListener",t)},f.prototype.removeListener=function(t){this._proxyListener("removeListener",t)},f.prototype.off=function(t){this.removeListener(t)},f.prototype.removeAllListeners=function(){this.emitter.removeAllListeners(this._name)},f.prototype.getMaxListeners=function(){return this.emitter.getMaxListeners()},f.prototype.setMaxListeners=function(t){this.emitter.setMaxListeners(t)},f.prototype.getEventEmitter=function(){return this.emitter},f.prototype.listeners=function(){return this.emitter.listeners(this._name)},f.prototype.rawListeners=function(){return this.emitter.rawListeners(this._name)},f.prototype.listenerCount=function(){return this.emitter.listenerCount(this._name)},f.prototype._proxyListener=function(t,i){this.emitter[t](this._name,i)},f.prototype._createUnsubscribe=function(t){var i=this;return function(){i.emitter.removeListener(i._name,t)}},f.prototype._addListener=function(t,i){return this._proxyListener(t,i),this._createUnsubscribe(i)},f.prototype.destroy=function(){this.emitter.removeAllListeners()},f}();_.Broadcaster=L},7706:function(u,_,r){var e=this&&this.__extends||function(){var i=function(l,h){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,w){s.__proto__=w}||function(s,w){for(var S in w)Object.prototype.hasOwnProperty.call(w,S)&&(s[S]=w[S])},i(l,h)};return function(l,h){if(typeof h!="function"&&h!==null)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");i(l,h);function s(){this.constructor=l}l.prototype=h===null?Object.create(h):(s.prototype=h.prototype,new s)}}();Object.defineProperty(_,"__esModule",{value:!0}),_.Channel=void 0;var L=r(4719),f=r(4683),t=function(i){e(l,i);function l(h,s){s===void 0&&(s=0);var w=i.call(this,h,s)||this;return w.topics={},w._onTopicDestroyed=w._onTopicDestroyed.bind(w),w._onTopicEmit=w._onTopicEmit.bind(w),w}return l.prototype.emit=function(h){var s={channel:this.name,topic:"*",payload:h};i.prototype.emit.call(this,s)},l.prototype.topic=function(h){var s=this.topics[h];return typeof s=="undefined"&&(s=this.topics[h]=new f.Topic(h,this.name,this.getMaxListeners()),s.getEventEmitter().on("topic_destroyed",this._onTopicDestroyed),s.on(this._onTopicEmit)),s},l.prototype.hasTopic=function(h){return Boolean(this.topics[h])},l.prototype.removeTopic=function(h){var s=this.topics[h];return typeof s!="undefined"?(delete this.topics[h],s.destroy(),!0):!1},l.prototype.getAllTopics=function(){return Object.values(this.topics)},l.prototype._onTopicEmit=function(h){i.prototype.emit.call(this,h)},l.prototype._onTopicDestroyed=function(h){delete this.topics[h]},l.prototype.destroy=function(){for(var h in this.topics)this.removeTopic(h);this.emitter.emit("channel_destroyed",this.name),i.prototype.destroy.call(this)},l}(L.Broadcaster);_.Channel=t},6206:(u,_,r)=>{Object.defineProperty(_,"__esModule",{value:!0}),_.EventBus=void 0;var e=r(7706),L=function(){function f(t){this.channels={},t=typeof t=="undefined"?{}:t,this._maxListeners=t.maxListeners===void 0?0:t.maxListeners,this.onChannelDestroyed=this.onChannelDestroyed.bind(this),this.createMainChannel(),this.onChannelEmit=this.onChannelEmit.bind(this)}return f.prototype.createMainChannel=function(){var t=this;this.defaultChannel=new e.Channel("*",this._maxListeners),this.channels["*"]=this.defaultChannel,this.defaultChannel.getEventEmitter().on("channel_destroyed",function(){t.createMainChannel()})},f.prototype.mainChannel=function(){return this.defaultChannel},f.prototype.allChannels=function(){return this.mainChannel()},f.prototype.channel=function(t){var i=this.channels[t];return typeof i=="undefined"&&(i=this.channels[t]=new e.Channel(t,this._maxListeners),i.on(this.onChannelEmit),i.getEventEmitter().on("channel_destroyed",this.onChannelDestroyed)),i},f.prototype.hasChannel=function(t){return Boolean(this.channels[t])},f.prototype.removeChannel=function(t){if(t==="*")throw new Error("Can't remove default channel");var i=this.channels[t];return typeof i!="undefined"?(i.destroy(),!0):!1},f.prototype.onChannelEmit=function(t){var i=t.topic;if(this.defaultChannel.hasTopic(i)){var l={topic:t.topic,channel:t.channel,payload:t.payload};this.defaultChannel.topic(i).getEventEmitter().emit(i,l)}this.defaultChannel.getEventEmitter().emit(this.defaultChannel.name,t)},f.prototype.onChannelDestroyed=function(t){delete this.channels[t]},f.prototype.getAllChannels=function(){return Object.values(this.channels)},f.prototype.destroy=function(){for(var t in this.channels)this.channels[t].destroy()},f}();_.EventBus=L},3534:function(u,_,r){var e=this&&this.__createBinding||(Object.create?function(f,t,i,l){l===void 0&&(l=i),Object.defineProperty(f,l,{enumerable:!0,get:function(){return t[i]}})}:function(f,t,i,l){l===void 0&&(l=i),f[l]=t[i]}),L=this&&this.__exportStar||function(f,t){for(var i in f)i!=="default"&&!Object.prototype.hasOwnProperty.call(t,i)&&e(t,f,i)};Object.defineProperty(_,"__esModule",{value:!0}),L(r(4719),_),L(r(6206),_),L(r(7706),_),L(r(4683),_)},4683:function(u,_,r){var e=this&&this.__extends||function(){var t=function(i,l){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,s){h.__proto__=s}||function(h,s){for(var w in s)Object.prototype.hasOwnProperty.call(s,w)&&(h[w]=s[w])},t(i,l)};return function(i,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");t(i,l);function h(){this.constructor=i}i.prototype=l===null?Object.create(l):(h.prototype=l.prototype,new h)}}();Object.defineProperty(_,"__esModule",{value:!0}),_.Topic=void 0;var L=r(4719),f=function(t){e(i,t);function i(l,h,s){s===void 0&&(s=0);var w=t.call(this,l,s)||this;return w.channel=h,w}return i.prototype.emit=function(l){var h={channel:this.channel,topic:this.name,payload:l};t.prototype.emit.call(this,h)},i.prototype.destroy=function(){this.emitter.emit("topic_destroyed",this.name),t.prototype.destroy.call(this)},i}(L.Broadcaster);_.Topic=f},2699:u=>{var _=typeof Reflect=="object"?Reflect:null,r=_&&typeof _.apply=="function"?_.apply:function(c,v,g){return Function.prototype.apply.call(c,v,g)},e;_&&typeof _.ownKeys=="function"?e=_.ownKeys:Object.getOwnPropertySymbols?e=function(c){return Object.getOwnPropertyNames(c).concat(Object.getOwnPropertySymbols(c))}:e=function(c){return Object.getOwnPropertyNames(c)};function L(p){console&&console.warn&&console.warn(p)}var f=Number.isNaN||function(c){return c!==c};function t(){t.init.call(this)}u.exports=t,u.exports.once=U,t.EventEmitter=t,t.prototype._events=void 0,t.prototype._eventsCount=0,t.prototype._maxListeners=void 0;var i=10;function l(p){if(typeof p!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof p)}Object.defineProperty(t,"defaultMaxListeners",{enumerable:!0,get:function(){return i},set:function(p){if(typeof p!="number"||p<0||f(p))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+p+".");i=p}}),t.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},t.prototype.setMaxListeners=function(c){if(typeof c!="number"||c<0||f(c))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+c+".");return this._maxListeners=c,this};function h(p){return p._maxListeners===void 0?t.defaultMaxListeners:p._maxListeners}t.prototype.getMaxListeners=function(){return h(this)},t.prototype.emit=function(c){for(var v=[],g=1;g<arguments.length;g++)v.push(arguments[g]);var M=c==="error",j=this._events;if(j!==void 0)M=M&&j.error===void 0;else if(!M)return!1;if(M){var T;if(v.length>0&&(T=v[0]),T instanceof Error)throw T;var N=new Error("Unhandled error."+(T?" ("+T.message+")":""));throw N.context=T,N}var I=j[c];if(I===void 0)return!1;if(typeof I=="function")r(I,this,v);else for(var G=I.length,K=Q(I,G),g=0;g<G;++g)r(K[g],this,v);return!0};function s(p,c,v,g){var M,j,T;if(l(v),j=p._events,j===void 0?(j=p._events=Object.create(null),p._eventsCount=0):(j.newListener!==void 0&&(p.emit("newListener",c,v.listener?v.listener:v),j=p._events),T=j[c]),T===void 0)T=j[c]=v,++p._eventsCount;else if(typeof T=="function"?T=j[c]=g?[v,T]:[T,v]:g?T.unshift(v):T.push(v),M=h(p),M>0&&T.length>M&&!T.warned){T.warned=!0;var N=new Error("Possible EventEmitter memory leak detected. "+T.length+" "+String(c)+" listeners added. Use emitter.setMaxListeners() to increase limit");N.name="MaxListenersExceededWarning",N.emitter=p,N.type=c,N.count=T.length,L(N)}return p}t.prototype.addListener=function(c,v){return s(this,c,v,!1)},t.prototype.on=t.prototype.addListener,t.prototype.prependListener=function(c,v){return s(this,c,v,!0)};function w(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function S(p,c,v){var g={fired:!1,wrapFn:void 0,target:p,type:c,listener:v},M=w.bind(g);return M.listener=v,g.wrapFn=M,M}t.prototype.once=function(c,v){return l(v),this.on(c,S(this,c,v)),this},t.prototype.prependOnceListener=function(c,v){return l(v),this.prependListener(c,S(this,c,v)),this},t.prototype.removeListener=function(c,v){var g,M,j,T,N;if(l(v),M=this._events,M===void 0)return this;if(g=M[c],g===void 0)return this;if(g===v||g.listener===v)--this._eventsCount===0?this._events=Object.create(null):(delete M[c],M.removeListener&&this.emit("removeListener",c,g.listener||v));else if(typeof g!="function"){for(j=-1,T=g.length-1;T>=0;T--)if(g[T]===v||g[T].listener===v){N=g[T].listener,j=T;break}if(j<0)return this;j===0?g.shift():C(g,j),g.length===1&&(M[c]=g[0]),M.removeListener!==void 0&&this.emit("removeListener",c,N||v)}return this},t.prototype.off=t.prototype.removeListener,t.prototype.removeAllListeners=function(c){var v,g,M;if(g=this._events,g===void 0)return this;if(g.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):g[c]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete g[c]),this;if(arguments.length===0){var j=Object.keys(g),T;for(M=0;M<j.length;++M)T=j[M],T!=="removeListener"&&this.removeAllListeners(T);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(v=g[c],typeof v=="function")this.removeListener(c,v);else if(v!==void 0)for(M=v.length-1;M>=0;M--)this.removeListener(c,v[M]);return this};function R(p,c,v){var g=p._events;if(g===void 0)return[];var M=g[c];return M===void 0?[]:typeof M=="function"?v?[M.listener||M]:[M]:v?H(M):Q(M,M.length)}t.prototype.listeners=function(c){return R(this,c,!0)},t.prototype.rawListeners=function(c){return R(this,c,!1)},t.listenerCount=function(p,c){return typeof p.listenerCount=="function"?p.listenerCount(c):B.call(p,c)},t.prototype.listenerCount=B;function B(p){var c=this._events;if(c!==void 0){var v=c[p];if(typeof v=="function")return 1;if(v!==void 0)return v.length}return 0}t.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]};function Q(p,c){for(var v=new Array(c),g=0;g<c;++g)v[g]=p[g];return v}function C(p,c){for(;c+1<p.length;c++)p[c]=p[c+1];p.pop()}function H(p){for(var c=new Array(p.length),v=0;v<c.length;++v)c[v]=p[v].listener||p[v];return c}function U(p,c){return new Promise(function(v,g){function M(T){p.removeListener(c,j),g(T)}function j(){typeof p.removeListener=="function"&&p.removeListener("error",M),v([].slice.call(arguments))}Z(p,c,j,{once:!0}),c!=="error"&&X(p,M,{once:!0})})}function X(p,c,v){typeof p.on=="function"&&Z(p,"error",c,v)}function Z(p,c,v,g){if(typeof p.on=="function")g.once?p.once(c,v):p.on(c,v);else if(typeof p.addEventListener=="function")p.addEventListener(c,function M(j){g.once&&p.removeEventListener(c,M),v(j)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof p)}},3180:(u,_,r)=>{r.d(_,{Q_:()=>f,YH:()=>t,_T:()=>e,mG:()=>L});function e(i,l){var h={};for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&l.indexOf(s)<0&&(h[s]=i[s]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var w=0,s=Object.getOwnPropertySymbols(i);w<s.length;w++)l.indexOf(s[w])<0&&Object.prototype.propertyIsEnumerable.call(i,s[w])&&(h[s[w]]=i[s[w]]);return h}function L(i,l,h,s){function w(S){return S instanceof h?S:new h(function(R){R(S)})}return new(h||(h=Promise))(function(S,R){function B(H){try{C(s.next(H))}catch(U){R(U)}}function Q(H){try{C(s.throw(H))}catch(U){R(U)}}function C(H){H.done?S(H.value):w(H.value).then(B,Q)}C((s=s.apply(i,l||[])).next())})}function f(i,l,h,s){if(h==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof l=="function"?i!==l||!s:!l.has(i))throw new TypeError("Cannot read private member from an object whose class did not declare it");return h==="m"?s:h==="a"?s.call(i):s?s.value:l.get(i)}function t(i,l,h,s,w){if(s==="m")throw new TypeError("Private method is not writable");if(s==="a"&&!w)throw new TypeError("Private accessor was defined without a setter");if(typeof l=="function"?i!==l||!w:!l.has(i))throw new TypeError("Cannot write private member to an object whose class did not declare it");return s==="a"?w.call(i,h):w?w.value=h:l.set(i,h),h}},2683:(u,_,r)=>{r.d(_,{k8:()=>e,oJ:()=>f});const e="embeddable-event-bus-key",L=1e5,f={rest:{endpoints:{big:"https://big.prod.icanbwell.com"}}}},9642:(u,_,r)=>{r.r(_),r.d(_,{EventBus:()=>l});var e=r(3534);function L(h,s,w,S){if(w==="a"&&!S)throw new TypeError("Private accessor was defined without a getter");if(typeof s=="function"?h!==s||!S:!s.has(h))throw new TypeError("Cannot read private member from an object whose class did not declare it");return w==="m"?S:w==="a"?S.call(h):S?S.value:s.get(h)}var f,t;const i="default";class l{static getInstance(s){let w=s?L(this,f,"f",t)[s]:L(this,f,"f",t)[i];return w||(w=L(this,f,"f",t)[s||i]=new e.EventBus),w}}f=l,t={value:{}}}},ie={};function b(u){var _=ie[u];if(_!==void 0)return _.exports;var r=ie[u]={id:u,loaded:!1,exports:{}};return oe[u].call(r.exports,r,r.exports,b),r.loaded=!0,r.exports}b.m=oe,b.c=ie,b.n=u=>{var _=u&&u.__esModule?()=>u.default:()=>u;return b.d(_,{a:_}),_},(()=>{var u=Object.getPrototypeOf?r=>Object.getPrototypeOf(r):r=>r.__proto__,_;b.t=function(r,e){if(e&1&&(r=this(r)),e&8||typeof r=="object"&&r&&(e&4&&r.__esModule||e&16&&typeof r.then=="function"))return r;var L=Object.create(null);b.r(L);var f={};_=_||[null,u({}),u([]),u(u)];for(var t=e&2&&r;typeof t=="object"&&!~_.indexOf(t);t=u(t))Object.getOwnPropertyNames(t).forEach(i=>f[i]=()=>r[i]);return f.default=()=>r,b.d(L,f),L}})(),b.d=(u,_)=>{for(var r in _)b.o(_,r)&&!b.o(u,r)&&Object.defineProperty(u,r,{enumerable:!0,get:_[r]})},b.f={},b.e=u=>Promise.all(Object.keys(b.f).reduce((_,r)=>(b.f[r](u,_),_),[])),b.u=u=>""+u+".index.js",b.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(u){if(typeof window=="object")return window}}(),b.hmd=u=>(u=Object.create(u),u.children||(u.children=[]),Object.defineProperty(u,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+u.id)}}),u),b.o=(u,_)=>Object.prototype.hasOwnProperty.call(u,_),(()=>{var u={},_="@icanbwell/composite-v1:";b.l=(r,e,L,f)=>{if(u[r]){u[r].push(e);return}var t,i;if(L!==void 0)for(var l=document.getElementsByTagName("script"),h=0;h<l.length;h++){var s=l[h];if(s.getAttribute("src")==r||s.getAttribute("data-webpack")==_+L){t=s;break}}t||(i=!0,t=document.createElement("script"),t.charset="utf-8",t.timeout=120,b.nc&&t.setAttribute("nonce",b.nc),t.setAttribute("data-webpack",_+L),t.src=r),u[r]=[e];var w=(R,B)=>{t.onerror=t.onload=null,clearTimeout(S);var Q=u[r];if(delete u[r],t.parentNode&&t.parentNode.removeChild(t),Q&&Q.forEach(C=>C(B)),R)return R(B)},S=setTimeout(w.bind(null,void 0,{type:"timeout",target:t}),12e4);t.onerror=w.bind(null,t.onerror),t.onload=w.bind(null,t.onload),i&&document.head.appendChild(t)}})(),b.r=u=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})},(()=>{b.S={};var u={},_={};b.I=(r,e)=>{e||(e=[]);var L=_[r];if(L||(L=_[r]={}),!(e.indexOf(L)>=0)){if(e.push(L),u[r])return u[r];b.o(b.S,r)||(b.S[r]={});var f=b.S[r],t=w=>typeof console!="undefined"&&console.warn&&console.warn(w),i="@icanbwell/composite-v1",l=(w,S,R,B)=>{var Q=f[w]=f[w]||{},C=Q[S];(!C||!C.loaded&&(!B!=!C.eager?B:i>C.from))&&(Q[S]={get:R,from:i,eager:!!B})},h=w=>{var S=C=>t("Initialization of sharing external failed: "+C);try{var R=b(w);if(!R)return;var B=C=>C&&C.init&&C.init(b.S[r],e);if(R.then)return s.push(R.then(B,S));var Q=B(R);if(Q&&Q.then)return s.push(Q.catch(S))}catch(C){S(C)}},s=[];switch(r){case"default":l("@icanbwell/events","0.21.1",()=>()=>b(9642),1);break}return s.length?u[r]=Promise.all(s).then(()=>u[r]=1):u[r]=1}}})(),(()=>{var u;b.g.importScripts&&(u=b.g.location+"");var _=b.g.document;if(!u&&_&&(_.currentScript&&(u=_.currentScript.src),!u)){var r=_.getElementsByTagName("script");r.length&&(u=r[r.length-1].src)}if(!u)throw new Error("Automatic publicPath is not supported in this browser");u=u.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),b.p=u})(),(()=>{var u=o=>{var a=m=>m.split(".").map(E=>+E==E?+E:E),n=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(o),d=n[1]?a(n[1]):[];return n[2]&&(d.length++,d.push.apply(d,a(n[2]))),n[3]&&(d.push([]),d.push.apply(d,a(n[3]))),d},_=(o,a)=>{o=u(o),a=u(a);for(var n=0;;){if(n>=o.length)return n<a.length&&(typeof a[n])[0]!="u";var d=o[n],m=(typeof d)[0];if(n>=a.length)return m=="u";var E=a[n],x=(typeof E)[0];if(m!=x)return m=="o"&&x=="n"||x=="s"||m=="u";if(m!="o"&&m!="u"&&d!=E)return d<E;n++}},r=o=>{var a=o[0],n="";if(o.length===1)return"*";if(a+.5){n+=a==0?">=":a==-1?"<":a==1?"^":a==2?"~":a>0?"=":"!=";for(var d=1,m=1;m<o.length;m++)d--,n+=(typeof(x=o[m]))[0]=="u"?"-":(d>0?".":"")+(d=2,x);return n}var E=[];for(m=1;m<o.length;m++){var x=o[m];E.push(x===0?"not("+k()+")":x===1?"("+k()+" || "+k()+")":x===2?E.pop()+" "+E.pop():r(x))}return k();function k(){return E.pop().replace(/^\((.+)\)$/,"$1")}},e=(o,a)=>{if(0 in o){a=u(a);var n=o[0],d=n<0;d&&(n=-n-1);for(var m=0,E=1,x=!0;;E++,m++){var k,Y,F=E<o.length?(typeof o[E])[0]:"";if(m>=a.length||(Y=(typeof(k=a[m]))[0])=="o")return!x||(F=="u"?E>n&&!d:F==""!=d);if(Y=="u"){if(!x||F!="u")return!1}else if(x)if(F==Y)if(E<=n){if(k!=o[E])return!1}else{if(d?k>o[E]:k<o[E])return!1;k!=o[E]&&(x=!1)}else if(F!="s"&&F!="n"){if(d||E<=n)return!1;x=!1,E--}else{if(E<=n||Y<F!=d)return!1;x=!1}else F!="s"&&F!="n"&&(x=!1,E--)}}var q=[],J=q.pop.bind(q);for(m=1;m<o.length;m++){var ee=o[m];q.push(ee==1?J()|J():ee==2?J()&J():ee?e(ee,a):!J())}return!!J()},L=(o,a)=>{var n=b.S[o];if(!n||!b.o(n,a))throw new Error("Shared module "+a+" doesn't exist in shared scope "+o);return n},f=(o,d)=>{var n=o[d],d=Object.keys(n).reduce((m,E)=>!m||_(m,E)?E:m,0);return d&&n[d]},t=(o,a)=>{var n=o[a];return Object.keys(n).reduce((d,m)=>!d||!n[d].loaded&&_(d,m)?m:d,0)},i=(o,a,n,d)=>"Unsatisfied version "+n+" from "+(n&&o[a][n].from)+" of shared singleton module "+a+" (required "+r(d)+")",l=(o,a,n,d)=>{var m=t(o,n);return Q(o[n][m])},h=(o,a,n,d)=>{var m=t(o,n);return e(d,m)||typeof console!="undefined"&&console.warn&&console.warn(i(o,n,m,d)),Q(o[n][m])},s=(o,a,n,d)=>{var m=t(o,n);if(!e(d,m))throw new Error(i(o,n,m,d));return Q(o[n][m])},w=(o,m,n)=>{var d=o[m],m=Object.keys(d).reduce((E,x)=>e(n,x)&&(!E||_(E,x))?x:E,0);return m&&d[m]},S=(o,a,n,d)=>{var m=o[n];return"No satisfying version ("+r(d)+") of shared module "+n+" found in shared scope "+a+`. | ||
Available versions: `+Object.keys(m).map(E=>E+" from "+m[E].from).join(", ")},R=(o,a,n,d)=>{var m=w(o,n,d);if(m)return Q(m);throw new Error(S(o,a,n,d))},B=(o,a,n,d)=>{typeof console!="undefined"&&console.warn&&console.warn(S(o,a,n,d))},Q=o=>(o.loaded=1,o.get()),C=o=>function(a,n,d,m){var E=b.I(a);return E&&E.then?E.then(o.bind(o,a,b.S[a],n,d,m)):o(a,b.S[a],n,d,m)},H=C((o,a,n)=>(L(o,n),Q(f(a,n)))),U=C((o,a,n,d)=>a&&b.o(a,n)?Q(f(a,n)):d()),X=C((o,a,n,d)=>(L(o,n),Q(w(a,n,d)||B(a,o,n,d)||f(a,n)))),Z=C((o,a,n)=>(L(o,n),l(a,o,n))),p=C((o,a,n,d)=>(L(o,n),h(a,o,n,d))),c=C((o,a,n,d)=>(L(o,n),R(a,o,n,d))),v=C((o,a,n,d)=>(L(o,n),s(a,o,n,d))),g=C((o,a,n,d,m)=>!a||!b.o(a,n)?m():Q(w(a,n,d)||B(a,o,n,d)||f(a,n))),M=C((o,a,n,d)=>!a||!b.o(a,n)?d():l(a,o,n)),j=C((o,a,n,d,m)=>!a||!b.o(a,n)?m():h(a,o,n,d)),T=C((o,a,n,d,m)=>{var E=a&&b.o(a,n)&&w(a,n,d);return E?Q(E):m()}),N=C((o,a,n,d,m)=>!a||!b.o(a,n)?m():s(a,o,n,d)),I={},G={7634:()=>j("default","@icanbwell/events",[3,0,0,1],()=>()=>b(9642))},K=[7634];K.forEach(o=>{b.m[o]=a=>{I[o]=0,delete b.c[o];var n=G[o]();if(typeof n!="function")throw new Error("Shared module is not available for eager consumption: "+o);a.exports=n()}});var ne={};b.f.consumes=(o,a)=>{b.o(ne,o)&&ne[o].forEach(n=>{if(b.o(I,n))return a.push(I[n]);var d=x=>{I[n]=0,b.m[n]=k=>{delete b.c[n],k.exports=x()}},m=x=>{delete I[n],b.m[n]=k=>{throw delete b.c[n],x}};try{var E=G[n]();E.then?a.push(I[n]=E.then(d).catch(m)):d(E)}catch(x){m(x)}})}})(),(()=>{var u={179:0};b.f.j=(e,L)=>{var f=b.o(u,e)?u[e]:void 0;if(f!==0)if(f)L.push(f[2]);else{var t=new Promise((s,w)=>f=u[e]=[s,w]);L.push(f[2]=t);var i=b.p+b.u(e),l=new Error,h=s=>{if(b.o(u,e)&&(f=u[e],f!==0&&(u[e]=void 0),f)){var w=s&&(s.type==="load"?"missing":s.type),S=s&&s.target&&s.target.src;l.message="Loading chunk "+e+` failed. | ||
(`+w+": "+S+")",l.name="ChunkLoadError",l.type=w,l.request=S,f[1](l)}};b.l(i,h,"chunk-"+e,e)}};var _=(e,L)=>{var[f,t,i]=L,l,h,s=0;if(f.some(S=>u[S]!==0)){for(l in t)b.o(t,l)&&(b.m[l]=t[l]);if(i)var w=i(b)}for(e&&e(L);s<f.length;s++)h=f[s],b.o(u,h)&&u[h]&&u[h][0](),u[h]=0},r=self.webpackChunk_icanbwell_composite_v1=self.webpackChunk_icanbwell_composite_v1||[];r.forEach(_.bind(null,0)),r.push=_.bind(null,r.push.bind(r))})();var ce=b(7917)})(); |
{ | ||
"name": "@icanbwell/composite-v1", | ||
"version": "0.2.46", | ||
"version": "0.2.47", | ||
"author": "icanbwell", | ||
@@ -5,0 +5,0 @@ "type": "commonjs", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package