pushfeedback 0.0.8 → 0.0.10

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.
@@ -1 +1,1441 @@
1
- const _0x1e5fcc=_0x5bb7;(function(_0x1161fd,_0x3e3f57){const _0xbe303a=_0x5bb7,_0xa26a1f=_0x1161fd();while(!![]){try{const _0x17e9c2=-parseInt(_0xbe303a(0x1aa))/0x1*(-parseInt(_0xbe303a(0x2a5))/0x2)+parseInt(_0xbe303a(0x1d8))/0x3+-parseInt(_0xbe303a(0x229))/0x4+parseInt(_0xbe303a(0x1e9))/0x5+parseInt(_0xbe303a(0x277))/0x6+-parseInt(_0xbe303a(0x260))/0x7*(parseInt(_0xbe303a(0x1c3))/0x8)+-parseInt(_0xbe303a(0x234))/0x9;if(_0x17e9c2===_0x3e3f57)break;else _0xa26a1f['push'](_0xa26a1f['shift']());}catch(_0x2df907){_0xa26a1f['push'](_0xa26a1f['shift']());}}}(_0x373a,0x4a58c));const NAMESPACE=_0x1e5fcc(0x1dc);let scopeId,hostTagName,isSvgMode=![],queuePending=![];function _0x373a(){const _0x1614aa=['VehXE','wDqXJ','isNaN','isArray','fAOQg','wqrUa','ZYCjO','OUDel','WkhFl','ebFHU','tTagj','AKuzM','MIUmN','s-p','set','getAttribute','fLFGQ','Wflxg','ael','TXptv','innerHTML','function','number','render','wBdgE','ehMse','JxiIO','createInstance','open','hDveJ','HStLF','1395748YMzhAM','ZOMQO','yaUls','YCgex','oGchz','sc-','EyxMZ','fBdjT','meta[name=\x22csp-nonce\x22]','slot','$members$','4007295WDLbaw','has','LpSdX','vGKxH','mvdiM','svg','appload','undefined','link','filter','sqwJT','XVTRx','HFgGv','componentDidLoad','update','XDTqY','$ancestorComponent$','eYKcq','hydrated','sCzaU','head','$lazyBundleId$','join','nextSibling','QidUx','$tagName$','xWLxC','NCTlE','SDCMf','documentElement','UUTJT','zEyaB','exclude','includes','jZYwA','KMyEP','pMYjo','add','entries','seXQD','resolve','teckQ','textContent','defineProperty','427iCaHWi','attachStyles','$lazyInstance$','adoptedStyleSheets','prototype','TuInc','kSZZS','tCVEb','mrFLu','evfWo','boolean','kAVuU','createTextNode','zNldb','otMfO','lKfEL','removeAttribute','RNIss','ciKnW','uxSdW','GWDde','hasOwnProperty','$onRenderResolve$','3166686EkfLBa','wEDot','content','xiZzp','$text$','$attrsToReflect$','rWShv','nodeType','removeEventListener','VSpUd','vKOvW','MUdbU','tIYAj','replaceSync','getRootNode','remove','parentNode','ULBWg','jrDlc','now','HEePX','NaruI','LiCda','APnvO','class','$resourcesUrl$','nnJeP','qTGkQ','lotWT','uPEuY','FGZxV','push','define','addEventListener','$hostElement$','VCNxd','$cmpMeta$','attachShadow','uVBwn','VSQcx','error','jmp','vtnGS','YLjIR','raf','href','16mRdNzz','firstChild','qvRkj','Rkgjn','object','classList','IrLkI','get','length','nQYEv','insertBefore','klrKu','shadowRoot','isProxied','style','NlGpf','arrKR','YNXCG','$nonce$','sdUiU','zRylp','ZnsUx','14593shpJwh','$vnode$','false','nTZOP','MrkiP','$elm$','nonce','rel','className','split','appendChild','CSqFY','bdmEz','TWGFY','Fyhnv','slice','xgGxh','WYMnR','setAttribute','createElement','GOdaj','registerStyles','DBfcw','nbArg','ytLUD','29752qOxkla','MFAsN','s-rc','observedAttributes','ZoSVr','wRVpr','lJgiW','disconnectedCallback','qbfKO','host','replace','$children$','uLwmg','$onReadyResolve$','connectedCallback','$flags$','createElementNS','http://www.w3.org/2000/svg','YUhXA','SXsbR','LKrtt','1241988KUzNOA','RdPUc','Auzhj','$attrs$','pushfeedback','toLowerCase','yYwSh','aXoWy','tagName','scheduleUpdate','string','NVxvf','llIEE','hVvei','list','LuabZ','NcdcB','1335270MuLdWG','$onReadyPromise$','map','JABxD','$instanceValues$','klbyw','data','xKyJd','lzFqV','CxaZK','dispatchEvent','DHNtL','s-si','zVmfZ','YOpOl','ogJcs','HEMaL','then','componentWillLoad','postUpdate','DFQtP','upPdb','nCQZu','KGHxF','keys','TazpT','querySelector','lsJQG','$tag$','ref','Trkji','bLiPx','TohdY'];_0x373a=function(){return _0x1614aa;};return _0x373a();}const createTime=(_0x491fa7,_0x3ea3dd='')=>{{return()=>{return;};}},uniqueTime=(_0x2f2298,_0x1ac7c3)=>{{return()=>{return;};}},HYDRATED_CSS='{visibility:hidden}.hydrated{visibility:inherit}',EMPTY_OBJ={},SVG_NS=_0x1e5fcc(0x1d4),HTML_NS='http://www.w3.org/1999/xhtml',isDef=_0x9dbec=>_0x9dbec!=null,isComplexType=_0x3d3813=>{const _0x21a262=_0x1e5fcc,_0x5c5f1f={'seXQD':function(_0x30d861,_0x4215d8){return _0x30d861===_0x4215d8;},'LiCda':'object','nbArg':function(_0x47ef3d,_0x37c237){return _0x47ef3d===_0x37c237;},'arrKR':'function'};return _0x3d3813=typeof _0x3d3813,_0x5c5f1f[_0x21a262(0x25b)](_0x3d3813,_0x5c5f1f[_0x21a262(0x28d)])||_0x5c5f1f[_0x21a262(0x1c1)](_0x3d3813,_0x5c5f1f[_0x21a262(0x1a4)]);};function queryNonceMetaTagContent(_0x3dc780){const _0x147270=_0x1e5fcc,_0x176b1e={'VSQcx':function(_0x38e2d2,_0x37add2){return _0x38e2d2!==_0x37add2;},'zVsBC':function(_0x555c61,_0x39a988){return _0x555c61===_0x39a988;},'zEyaB':_0x147270(0x231)};var _0x11456d,_0x17f43f,_0x4a0008;return _0x176b1e[_0x147270(0x29e)](_0x4a0008=(_0x17f43f=_0x176b1e['zVsBC'](_0x11456d=_0x3dc780[_0x147270(0x248)],null)||_0x176b1e['zVsBC'](_0x11456d,void 0x0)?void 0x0:_0x11456d['querySelector'](_0x176b1e[_0x147270(0x253)]))===null||_0x17f43f===void 0x0?void 0x0:_0x17f43f[_0x147270(0x219)](_0x147270(0x279)),null)&&_0x176b1e[_0x147270(0x29e)](_0x4a0008,void 0x0)?_0x4a0008:undefined;}const h=(_0x291cb6,_0xd40ddd,..._0x429d71)=>{const _0x50173c=_0x1e5fcc,_0x3d1116={'QGWJq':function(_0x1d6da,_0x421211){return _0x1d6da<_0x421211;},'WYMnR':function(_0x3eda53,_0x53812d){return _0x3eda53!=_0x53812d;},'MrkiP':function(_0x894e2f,_0x773638){return _0x894e2f!==_0x773638;},'HFgGv':_0x50173c(0x26a),'Rkgjn':function(_0x1fba01,_0x4269d8){return _0x1fba01(_0x4269d8);},'vtnGS':function(_0xe8bb2b,_0x24aca5){return _0xe8bb2b(_0x24aca5);},'HEMaL':function(_0xabcafe,_0x494947){return _0xabcafe&&_0x494947;},'CxaZK':function(_0x541d36,_0x42cd89,_0x59678a){return _0x541d36(_0x42cd89,_0x59678a);},'LuabZ':function(_0x2ec529,_0x4f8fe7){return _0x2ec529(_0x4f8fe7);},'JvVZV':_0x50173c(0x198),'dkgzu':function(_0x475908,_0x40bee7){return _0x475908>_0x40bee7;}};let _0x17b683=null,_0x542a03=![],_0x3df92a=![];const _0x4b4741=[],_0x2597ce=_0x4061f9=>{const _0x3bacc0=_0x50173c;for(let _0x51c8f1=0x0;_0x3d1116['QGWJq'](_0x51c8f1,_0x4061f9[_0x3bacc0(0x19c)]);_0x51c8f1++){_0x17b683=_0x4061f9[_0x51c8f1];if(Array[_0x3bacc0(0x20d)](_0x17b683))_0x2597ce(_0x17b683);else _0x3d1116[_0x3bacc0(0x1bb)](_0x17b683,null)&&_0x3d1116[_0x3bacc0(0x1ae)](typeof _0x17b683,_0x3d1116[_0x3bacc0(0x240)])&&((_0x542a03=_0x3d1116['MrkiP'](typeof _0x291cb6,_0x3bacc0(0x21f))&&!_0x3d1116[_0x3bacc0(0x197)](isComplexType,_0x17b683))&&(_0x17b683=_0x3d1116[_0x3bacc0(0x2a1)](String,_0x17b683)),_0x3d1116[_0x3bacc0(0x1f9)](_0x542a03,_0x3df92a)?_0x4b4741[_0x4b4741[_0x3bacc0(0x19c)]-0x1][_0x3bacc0(0x27b)]+=_0x17b683:_0x4b4741[_0x3bacc0(0x296)](_0x542a03?_0x3d1116['CxaZK'](newVNode,null,_0x17b683):_0x17b683),_0x3df92a=_0x542a03);}};_0x3d1116[_0x50173c(0x1e7)](_0x2597ce,_0x429d71);if(_0xd40ddd){const _0x9081fd=_0xd40ddd[_0x50173c(0x1b2)]||_0xd40ddd[_0x50173c(0x28f)];_0x9081fd&&(_0xd40ddd[_0x50173c(0x28f)]=typeof _0x9081fd!==_0x3d1116['JvVZV']?_0x9081fd:Object[_0x50173c(0x201)](_0x9081fd)[_0x50173c(0x23d)](_0x4481ce=>_0x9081fd[_0x4481ce])[_0x50173c(0x24a)]('\x20'));}const _0x43cc62=_0x3d1116[_0x50173c(0x1f2)](newVNode,_0x291cb6,null);return _0x43cc62[_0x50173c(0x1db)]=_0xd40ddd,_0x3d1116['dkgzu'](_0x4b4741[_0x50173c(0x19c)],0x0)&&(_0x43cc62[_0x50173c(0x1ce)]=_0x4b4741),_0x43cc62;},newVNode=(_0x593e7f,_0x20790f)=>{const _0x7c77ff={'$flags$':0x0,'$tag$':_0x593e7f,'$text$':_0x20790f,'$elm$':null,'$children$':null};{_0x7c77ff['$attrs$']=null;}return _0x7c77ff;},Host={},isHost=_0x1fe6f1=>_0x1fe6f1&&_0x1fe6f1[_0x1e5fcc(0x205)]===Host,parsePropertyValue=(_0x345574,_0x2fd458)=>{const _0x41af1b=_0x1e5fcc,_0x1ed2ed={'dUoLZ':function(_0x197099,_0x389291){return _0x197099!=_0x389291;},'uLwmg':function(_0x10272d,_0x57226a){return _0x10272d(_0x57226a);},'ULBWg':function(_0x2afa5c,_0x46489f){return _0x2afa5c&_0x46489f;},'wqrUa':function(_0x49a135,_0x2a291d){return _0x49a135===_0x2a291d;},'zRylp':function(_0x24fe27,_0x1ab126){return _0x24fe27&_0x1ab126;}};if(_0x1ed2ed['dUoLZ'](_0x345574,null)&&!_0x1ed2ed['uLwmg'](isComplexType,_0x345574)){if(_0x1ed2ed[_0x41af1b(0x288)](_0x2fd458,0x4))return _0x345574===_0x41af1b(0x1ac)?![]:_0x1ed2ed[_0x41af1b(0x20f)](_0x345574,'')||!!_0x345574;if(_0x1ed2ed[_0x41af1b(0x1a8)](_0x2fd458,0x1))return _0x1ed2ed[_0x41af1b(0x1cf)](String,_0x345574);return _0x345574;}return _0x345574;},getElement=_0x474f56=>getHostRef(_0x474f56)[_0x1e5fcc(0x299)],emitEvent=(_0x34770d,_0x36b412,_0x134205)=>{const _0x14ceaf=_0x1e5fcc,_0x5e1fa7=plt['ce'](_0x36b412,_0x134205);return _0x34770d[_0x14ceaf(0x1f3)](_0x5e1fa7),_0x5e1fa7;},rootAppliedStyles=new WeakMap(),registerStyle=(_0x3dec2e,_0x5e0993,_0x510292)=>{const _0x41c2fc=_0x1e5fcc,_0x411b7d={'LpSdX':function(_0x2c90f9,_0x47e94e){return _0x2c90f9===_0x47e94e;}};let _0x259042=styles[_0x41c2fc(0x19b)](_0x3dec2e);supportsConstructableStylesheets&&_0x510292?(_0x259042=_0x259042||new CSSStyleSheet(),_0x411b7d[_0x41c2fc(0x236)](typeof _0x259042,_0x41c2fc(0x1e2))?_0x259042=_0x5e0993:_0x259042[_0x41c2fc(0x284)](_0x5e0993)):_0x259042=_0x5e0993,styles[_0x41c2fc(0x218)](_0x3dec2e,_0x259042);},addStyle=(_0x502afa,_0x3d7aa2,_0x24e607,_0x44e372)=>{const _0x3dddb2=_0x1e5fcc,_0x54d84e={'kSZZS':function(_0x552773,_0x18004a){return _0x552773===_0x18004a;},'VCNxd':_0x3dddb2(0x1e2),'evfWo':_0x3dddb2(0x1a2),'XDTqY':function(_0x428d18,_0x2ac02c){return _0x428d18!==_0x2ac02c;},'GOdaj':function(_0x5336dc,_0x2c44c1){return _0x5336dc!=_0x2c44c1;},'qTGkQ':_0x3dddb2(0x1b0),'RdPUc':_0x3dddb2(0x23c)};var _0x3aaf79;let _0x19be59=getScopeId(_0x3d7aa2);const _0x580b70=styles[_0x3dddb2(0x19b)](_0x19be59);_0x502afa=_0x54d84e[_0x3dddb2(0x266)](_0x502afa['nodeType'],0xb)?_0x502afa:doc;if(_0x580b70){if(typeof _0x580b70===_0x54d84e[_0x3dddb2(0x29a)]){_0x502afa=_0x502afa[_0x3dddb2(0x248)]||_0x502afa;let _0x443a27=rootAppliedStyles[_0x3dddb2(0x19b)](_0x502afa),_0xeedf5d;!_0x443a27&&rootAppliedStyles[_0x3dddb2(0x218)](_0x502afa,_0x443a27=new Set());if(!_0x443a27['has'](_0x19be59)){{{_0xeedf5d=doc[_0x3dddb2(0x1bd)](_0x54d84e[_0x3dddb2(0x269)]),_0xeedf5d['innerHTML']=_0x580b70;}const _0x2a13fc=(_0x3aaf79=plt[_0x3dddb2(0x1a6)])!==null&&_0x54d84e[_0x3dddb2(0x243)](_0x3aaf79,void 0x0)?_0x3aaf79:queryNonceMetaTagContent(doc);_0x54d84e[_0x3dddb2(0x1be)](_0x2a13fc,null)&&_0xeedf5d[_0x3dddb2(0x1bc)](_0x54d84e[_0x3dddb2(0x292)],_0x2a13fc),_0x502afa[_0x3dddb2(0x19e)](_0xeedf5d,_0x502afa[_0x3dddb2(0x203)](_0x54d84e[_0x3dddb2(0x1d9)]));}_0x443a27&&_0x443a27[_0x3dddb2(0x259)](_0x19be59);}}else!_0x502afa[_0x3dddb2(0x263)][_0x3dddb2(0x255)](_0x580b70)&&(_0x502afa[_0x3dddb2(0x263)]=[..._0x502afa['adoptedStyleSheets'],_0x580b70]);}return _0x19be59;},attachStyles=_0x45270e=>{const _0x2a7e01=_0x1e5fcc,_0x218f57={'sCzaU':function(_0xb3fab7,_0x4ea3a2,_0x13d848){return _0xb3fab7(_0x4ea3a2,_0x13d848);},'vGKxH':_0x2a7e01(0x261),'iHtjk':function(_0x5d0c2f,_0x4a012b){return _0x5d0c2f+_0x4a012b;},'CxQiu':function(_0x80206){return _0x80206();}},_0x3d3120=_0x45270e['$cmpMeta$'],_0x5355b3=_0x45270e[_0x2a7e01(0x299)],_0x22ed2b=_0x3d3120[_0x2a7e01(0x1d2)],_0x230075=_0x218f57[_0x2a7e01(0x247)](createTime,_0x218f57[_0x2a7e01(0x237)],_0x3d3120['$tagName$']),_0x1fac5d=addStyle(_0x5355b3[_0x2a7e01(0x1a0)]?_0x5355b3[_0x2a7e01(0x1a0)]:_0x5355b3[_0x2a7e01(0x285)](),_0x3d3120);_0x22ed2b&0xa&&(_0x5355b3['s-sc']=_0x1fac5d,_0x5355b3['classList'][_0x2a7e01(0x259)](_0x218f57['iHtjk'](_0x1fac5d,'-h'))),_0x218f57['CxQiu'](_0x230075);},getScopeId=(_0x55895d,_0x582ffc)=>_0x1e5fcc(0x22e)+_0x55895d[_0x1e5fcc(0x24d)],setAccessor=(_0x2fa836,_0x4a30dd,_0x336a53,_0xd8324a,_0x269638,_0x6402a9)=>{const _0x20006b=_0x1e5fcc,_0x104872={'RNIss':'class','Wflxg':function(_0x24cb77,_0x3d412e){return _0x24cb77===_0x3d412e;},'YCgex':_0x20006b(0x206),'ebFHU':function(_0x484236,_0xa5d3f9){return _0x484236(_0xa5d3f9);},'fBdjT':function(_0x28f2ab,_0x424753){return _0x28f2ab===_0x424753;},'xgGxh':function(_0x223370,_0x435858,_0x17ad4e){return _0x223370(_0x435858,_0x17ad4e);},'bLiPx':function(_0x44d3de,_0x58b0b1){return _0x44d3de+_0x58b0b1;},'qwJie':function(_0x117cf8,_0x263f40){return _0x117cf8!==_0x263f40;},'tTagj':function(_0x5da76d,_0x5f16bf){return _0x5da76d==_0x5f16bf;},'JymyQ':_0x20006b(0x1e6),'rWShv':function(_0x2b289b,_0x4a3fb8){return _0x2b289b!=_0x4a3fb8;},'CSqFY':function(_0x4cb93d,_0x433caf){return _0x4cb93d==_0x433caf;},'JxiIO':function(_0x19e896,_0x262361){return _0x19e896!==_0x262361;},'nCQZu':function(_0x5bd953,_0x44e679){return _0x5bd953&_0x44e679;}};if(_0x336a53!==_0xd8324a){let _0x37e5a8=isMemberInElement(_0x2fa836,_0x4a30dd),_0x59ff99=_0x4a30dd[_0x20006b(0x1dd)]();if(_0x4a30dd===_0x104872[_0x20006b(0x271)]){const _0x5ad235=_0x2fa836['classList'],_0x33cd0a=parseClassList(_0x336a53),_0x5813c6=parseClassList(_0xd8324a);_0x5ad235['remove'](..._0x33cd0a['filter'](_0x18ee6d=>_0x18ee6d&&!_0x5813c6[_0x20006b(0x255)](_0x18ee6d))),_0x5ad235['add'](..._0x5813c6['filter'](_0x133d20=>_0x133d20&&!_0x33cd0a[_0x20006b(0x255)](_0x133d20)));}else{if(_0x104872['Wflxg'](_0x4a30dd,_0x104872[_0x20006b(0x22c)]))_0xd8324a&&_0x104872[_0x20006b(0x213)](_0xd8324a,_0x2fa836);else{if(!_0x37e5a8&&_0x104872[_0x20006b(0x21b)](_0x4a30dd[0x0],'o')&&_0x104872[_0x20006b(0x21b)](_0x4a30dd[0x1],'n')){if(_0x104872[_0x20006b(0x230)](_0x4a30dd[0x2],'-'))_0x4a30dd=_0x4a30dd[_0x20006b(0x1b9)](0x3);else _0x104872[_0x20006b(0x1ba)](isMemberInElement,win,_0x59ff99)?_0x4a30dd=_0x59ff99[_0x20006b(0x1b9)](0x2):_0x4a30dd=_0x104872[_0x20006b(0x208)](_0x59ff99[0x2],_0x4a30dd[_0x20006b(0x1b9)](0x3));_0x336a53&&plt[_0x20006b(0x1b1)](_0x2fa836,_0x4a30dd,_0x336a53,![]),_0xd8324a&&plt[_0x20006b(0x21c)](_0x2fa836,_0x4a30dd,_0xd8324a,![]);}else{const _0xda5927=_0x104872[_0x20006b(0x213)](isComplexType,_0xd8324a);if((_0x37e5a8||_0xda5927&&_0x104872['qwJie'](_0xd8324a,null))&&!_0x269638)try{if(!_0x2fa836[_0x20006b(0x1e0)]['includes']('-')){const _0x5c4b7c=_0x104872[_0x20006b(0x214)](_0xd8324a,null)?'':_0xd8324a;if(_0x104872[_0x20006b(0x21b)](_0x4a30dd,_0x104872['JymyQ']))_0x37e5a8=![];else(_0x336a53==null||_0x104872[_0x20006b(0x27d)](_0x2fa836[_0x4a30dd],_0x5c4b7c))&&(_0x2fa836[_0x4a30dd]=_0x5c4b7c);}else _0x2fa836[_0x4a30dd]=_0xd8324a;}catch(_0x198e94){}if(_0x104872[_0x20006b(0x1b5)](_0xd8324a,null)||_0xd8324a===![]){if(_0x104872[_0x20006b(0x224)](_0xd8324a,![])||_0x2fa836[_0x20006b(0x219)](_0x4a30dd)===''){_0x2fa836[_0x20006b(0x270)](_0x4a30dd);}}else{if((!_0x37e5a8||_0x104872[_0x20006b(0x1ff)](_0x6402a9,0x4)||_0x269638)&&!_0xda5927){_0xd8324a=_0x104872[_0x20006b(0x21b)](_0xd8324a,!![])?'':_0xd8324a;{_0x2fa836[_0x20006b(0x1bc)](_0x4a30dd,_0xd8324a);}}}}}}}},parseClassListRegex=/\s/,parseClassList=_0x2e156a=>!_0x2e156a?[]:_0x2e156a[_0x1e5fcc(0x1b3)](parseClassListRegex),updateElement=(_0x94a8a9,_0x4ce71e,_0x567147,_0x4edb53)=>{const _0x49ac2=_0x1e5fcc,_0x422eb5={'qWyIT':function(_0x5144a8,_0x534a94){return _0x5144a8 in _0x534a94;},'uVBwn':function(_0x3b7a56,_0x49cfed,_0x10b2c9,_0x3a5324,_0x5c2e8b,_0xb03600,_0x1aef2a){return _0x3b7a56(_0x49cfed,_0x10b2c9,_0x3a5324,_0x5c2e8b,_0xb03600,_0x1aef2a);},'lotWT':function(_0x1d8f4e,_0x1b31e2,_0x2b240e,_0x34bf5c,_0x1582d4,_0x555bd8,_0x2d20c2){return _0x1d8f4e(_0x1b31e2,_0x2b240e,_0x34bf5c,_0x1582d4,_0x555bd8,_0x2d20c2);}},_0x5cce04=_0x4ce71e['$elm$'][_0x49ac2(0x27e)]===0xb&&_0x4ce71e[_0x49ac2(0x1af)][_0x49ac2(0x1cc)]?_0x4ce71e[_0x49ac2(0x1af)]['host']:_0x4ce71e[_0x49ac2(0x1af)],_0x2661cf=_0x94a8a9&&_0x94a8a9['$attrs$']||EMPTY_OBJ,_0x2f8f9b=_0x4ce71e[_0x49ac2(0x1db)]||EMPTY_OBJ;{for(_0x4edb53 in _0x2661cf){!_0x422eb5['qWyIT'](_0x4edb53,_0x2f8f9b)&&_0x422eb5[_0x49ac2(0x29d)](setAccessor,_0x5cce04,_0x4edb53,_0x2661cf[_0x4edb53],undefined,_0x567147,_0x4ce71e['$flags$']);}}for(_0x4edb53 in _0x2f8f9b){_0x422eb5[_0x49ac2(0x293)](setAccessor,_0x5cce04,_0x4edb53,_0x2661cf[_0x4edb53],_0x2f8f9b[_0x4edb53],_0x567147,_0x4ce71e[_0x49ac2(0x1d2)]);}},createElm=(_0x3d275f,_0x51bdc3,_0x217db6,_0x39c3f5)=>{const _0x4ef56e=_0x1e5fcc,_0x2febd5={'OArdG':function(_0x173962,_0x4e4caa){return _0x173962!==_0x4e4caa;},'Fyhnv':function(_0x2a1c5e,_0x23b8d2){return _0x2a1c5e===_0x23b8d2;},'liccr':'foreignObject','APnvO':function(_0x4d7e2c,_0x20ddd2,_0x4cdd48,_0x1289b5){return _0x4d7e2c(_0x20ddd2,_0x4cdd48,_0x1289b5);},'YOpOl':function(_0x38fde0,_0x7401d){return _0x38fde0(_0x7401d);},'LKrtt':_0x4ef56e(0x1f5),'mKhnT':function(_0x215b3f,_0xa9dc1c){return _0x215b3f<_0xa9dc1c;},'LSRmC':function(_0x339eaa,_0x3ac24d,_0x2ad31c,_0x129a8d){return _0x339eaa(_0x3ac24d,_0x2ad31c,_0x129a8d);},'aXoWy':function(_0x59bed8,_0x10846a){return _0x59bed8===_0x10846a;}},_0x5a4d60=_0x51bdc3[_0x4ef56e(0x1ce)][_0x217db6];let _0x314d5a=0x0,_0x29c7ad,_0x58f0dc;if(_0x2febd5['OArdG'](_0x5a4d60[_0x4ef56e(0x27b)],null))_0x29c7ad=_0x5a4d60['$elm$']=doc[_0x4ef56e(0x26c)](_0x5a4d60[_0x4ef56e(0x27b)]);else{!isSvgMode&&(isSvgMode=_0x5a4d60[_0x4ef56e(0x205)]===_0x4ef56e(0x239));_0x29c7ad=_0x5a4d60[_0x4ef56e(0x1af)]=doc[_0x4ef56e(0x1d3)](isSvgMode?SVG_NS:HTML_NS,_0x5a4d60[_0x4ef56e(0x205)]);isSvgMode&&_0x2febd5[_0x4ef56e(0x1b8)](_0x5a4d60['$tag$'],_0x2febd5['liccr'])&&(isSvgMode=![]);{_0x2febd5[_0x4ef56e(0x28e)](updateElement,null,_0x5a4d60,isSvgMode);}_0x2febd5[_0x4ef56e(0x1f7)](isDef,scopeId)&&_0x29c7ad[_0x2febd5[_0x4ef56e(0x1d7)]]!==scopeId&&_0x29c7ad['classList'][_0x4ef56e(0x259)](_0x29c7ad[_0x2febd5['LKrtt']]=scopeId);if(_0x5a4d60[_0x4ef56e(0x1ce)])for(_0x314d5a=0x0;_0x2febd5['mKhnT'](_0x314d5a,_0x5a4d60['$children$'][_0x4ef56e(0x19c)]);++_0x314d5a){_0x58f0dc=_0x2febd5['LSRmC'](createElm,_0x3d275f,_0x5a4d60,_0x314d5a),_0x58f0dc&&_0x29c7ad[_0x4ef56e(0x1b4)](_0x58f0dc);}{if(_0x5a4d60[_0x4ef56e(0x205)]===_0x4ef56e(0x239))isSvgMode=![];else _0x2febd5[_0x4ef56e(0x1df)](_0x29c7ad[_0x4ef56e(0x1e0)],_0x2febd5['liccr'])&&(isSvgMode=!![]);}}return _0x29c7ad;},addVnodes=(_0x434a12,_0x1bd1f9,_0x56269c,_0x352d76,_0x3cee39,_0x4f784c)=>{const _0x727ee=_0x1e5fcc,_0x51925f={'jrDlc':function(_0x40fafc,_0x353fa9){return _0x40fafc===_0x353fa9;},'FGZxV':function(_0x295f1b,_0x2615f2){return _0x295f1b<=_0x2615f2;},'bJyAo':function(_0x19b635,_0x117905,_0x481ee2,_0x139aea){return _0x19b635(_0x117905,_0x481ee2,_0x139aea);}};let _0x539728=_0x434a12,_0x4ba579;_0x539728[_0x727ee(0x1a0)]&&_0x51925f[_0x727ee(0x289)](_0x539728[_0x727ee(0x1e0)],hostTagName)&&(_0x539728=_0x539728[_0x727ee(0x1a0)]);for(;_0x51925f[_0x727ee(0x295)](_0x3cee39,_0x4f784c);++_0x3cee39){_0x352d76[_0x3cee39]&&(_0x4ba579=_0x51925f['bJyAo'](createElm,null,_0x56269c,_0x3cee39),_0x4ba579&&(_0x352d76[_0x3cee39][_0x727ee(0x1af)]=_0x4ba579,_0x539728[_0x727ee(0x19e)](_0x4ba579,_0x1bd1f9)));}},removeVnodes=(_0x133ef4,_0x583fc2,_0x58bf91,_0x6e8ac4,_0x86ee48)=>{const _0x4a6aa2=_0x1e5fcc,_0x523dbe={'YUhXA':function(_0xd13519,_0x4cbb85){return _0xd13519<=_0x4cbb85;},'ZoSVr':function(_0x1b3542,_0x5878e9){return _0x1b3542(_0x5878e9);}};for(;_0x523dbe[_0x4a6aa2(0x1d5)](_0x583fc2,_0x58bf91);++_0x583fc2){(_0x6e8ac4=_0x133ef4[_0x583fc2])&&(_0x86ee48=_0x6e8ac4[_0x4a6aa2(0x1af)],_0x523dbe[_0x4a6aa2(0x1c7)](callNodeRefs,_0x6e8ac4),_0x86ee48[_0x4a6aa2(0x286)]());}},updateChildren=(_0x4f628a,_0x102563,_0x100882,_0x88d597)=>{const _0x2cdc00=_0x1e5fcc,_0x3c9ba4={'lsJQG':function(_0x43dc7d,_0x9cee29){return _0x43dc7d-_0x9cee29;},'lzFqV':function(_0x22a4ed,_0xd87c60){return _0x22a4ed==_0xd87c60;},'nQYEv':function(_0x554243,_0x360a3b,_0x5402d0){return _0x554243(_0x360a3b,_0x5402d0);},'yNkwz':function(_0xb4dc8,_0xad4ffb,_0x4e133e){return _0xb4dc8(_0xad4ffb,_0x4e133e);},'nVONe':function(_0x2629d9,_0x117590){return _0x2629d9>_0x117590;},'Auzhj':function(_0x566179,_0x3849e9,_0x4f06a7,_0x110ec9,_0x4c9015,_0x325381,_0x4a380c){return _0x566179(_0x3849e9,_0x4f06a7,_0x110ec9,_0x4c9015,_0x325381,_0x4a380c);},'YNXCG':function(_0x5e4ccc,_0x507fea){return _0x5e4ccc+_0x507fea;},'lCHgE':function(_0x4f0071,_0x411b0a,_0x4cbd92,_0x2a1b90){return _0x4f0071(_0x411b0a,_0x4cbd92,_0x2a1b90);}};let _0x3b042f=0x0,_0x40a7a4=0x0,_0x627fcb=_0x102563[_0x2cdc00(0x19c)]-0x1,_0x2ebafd=_0x102563[0x0],_0x15550c=_0x102563[_0x627fcb],_0x52be44=_0x3c9ba4[_0x2cdc00(0x204)](_0x88d597[_0x2cdc00(0x19c)],0x1),_0x384b07=_0x88d597[0x0],_0x3fd553=_0x88d597[_0x52be44],_0x1bdf6a;while(_0x3b042f<=_0x627fcb&&_0x40a7a4<=_0x52be44){if(_0x3c9ba4[_0x2cdc00(0x1f1)](_0x2ebafd,null))_0x2ebafd=_0x102563[++_0x3b042f];else{if(_0x3c9ba4[_0x2cdc00(0x1f1)](_0x15550c,null))_0x15550c=_0x102563[--_0x627fcb];else{if(_0x384b07==null)_0x384b07=_0x88d597[++_0x40a7a4];else{if(_0x3c9ba4[_0x2cdc00(0x1f1)](_0x3fd553,null))_0x3fd553=_0x88d597[--_0x52be44];else{if(_0x3c9ba4[_0x2cdc00(0x19d)](isSameVnode,_0x2ebafd,_0x384b07))_0x3c9ba4[_0x2cdc00(0x19d)](patch,_0x2ebafd,_0x384b07),_0x2ebafd=_0x102563[++_0x3b042f],_0x384b07=_0x88d597[++_0x40a7a4];else{if(_0x3c9ba4[_0x2cdc00(0x19d)](isSameVnode,_0x15550c,_0x3fd553))patch(_0x15550c,_0x3fd553),_0x15550c=_0x102563[--_0x627fcb],_0x3fd553=_0x88d597[--_0x52be44];else{if(_0x3c9ba4['nQYEv'](isSameVnode,_0x2ebafd,_0x3fd553))_0x3c9ba4['nQYEv'](patch,_0x2ebafd,_0x3fd553),_0x4f628a[_0x2cdc00(0x19e)](_0x2ebafd['$elm$'],_0x15550c[_0x2cdc00(0x1af)]['nextSibling']),_0x2ebafd=_0x102563[++_0x3b042f],_0x3fd553=_0x88d597[--_0x52be44];else{if(_0x3c9ba4['nQYEv'](isSameVnode,_0x15550c,_0x384b07))_0x3c9ba4['yNkwz'](patch,_0x15550c,_0x384b07),_0x4f628a[_0x2cdc00(0x19e)](_0x15550c['$elm$'],_0x2ebafd[_0x2cdc00(0x1af)]),_0x15550c=_0x102563[--_0x627fcb],_0x384b07=_0x88d597[++_0x40a7a4];else{{_0x1bdf6a=createElm(_0x102563&&_0x102563[_0x40a7a4],_0x100882,_0x40a7a4),_0x384b07=_0x88d597[++_0x40a7a4];}if(_0x1bdf6a){_0x2ebafd['$elm$'][_0x2cdc00(0x287)][_0x2cdc00(0x19e)](_0x1bdf6a,_0x2ebafd[_0x2cdc00(0x1af)]);}}}}}}}}}}if(_0x3c9ba4['nVONe'](_0x3b042f,_0x627fcb))_0x3c9ba4[_0x2cdc00(0x1da)](addVnodes,_0x4f628a,_0x3c9ba4['lzFqV'](_0x88d597[_0x52be44+0x1],null)?null:_0x88d597[_0x3c9ba4[_0x2cdc00(0x1a5)](_0x52be44,0x1)][_0x2cdc00(0x1af)],_0x100882,_0x88d597,_0x40a7a4,_0x52be44);else _0x40a7a4>_0x52be44&&_0x3c9ba4['lCHgE'](removeVnodes,_0x102563,_0x3b042f,_0x627fcb);},isSameVnode=(_0x4b8ba5,_0x564336)=>{const _0x108178=_0x1e5fcc,_0x3b5192={'AugQX':function(_0xdc8497,_0x22fded){return _0xdc8497===_0x22fded;}};if(_0x3b5192['AugQX'](_0x4b8ba5['$tag$'],_0x564336[_0x108178(0x205)]))return!![];return![];},patch=(_0x21ffcb,_0x3bcd67)=>{const _0x49a5fc=_0x1e5fcc,_0x49aa7f={'NlGpf':function(_0x2e001a,_0x3df289){return _0x2e001a===_0x3df289;},'klbyw':function(_0x5317c8,_0x33265e){return _0x5317c8===_0x33265e;},'BdmKx':_0x49a5fc(0x239),'NcdcB':function(_0x1dde3f,_0x412635){return _0x1dde3f===_0x412635;},'ZnsUx':'foreignObject','DHNtL':function(_0x2f5c62,_0x3a5004,_0x5677ab,_0x27ddcf){return _0x2f5c62(_0x3a5004,_0x5677ab,_0x27ddcf);},'QidUx':function(_0x4fd0d6,_0x477e38){return _0x4fd0d6!==_0x477e38;},'UDocc':function(_0x3dbadc,_0x5779ef,_0x1886fc,_0x11d7c9,_0xd1d5ec){return _0x3dbadc(_0x5779ef,_0x1886fc,_0x11d7c9,_0xd1d5ec);},'MUdbU':function(_0x1e9a30,_0x2ee343){return _0x1e9a30!==_0x2ee343;},'ZOMQO':function(_0x3bb325,_0x36e5b0,_0xe11e6d,_0x37d69b,_0x290744,_0x140466,_0xd9f403){return _0x3bb325(_0x36e5b0,_0xe11e6d,_0x37d69b,_0x290744,_0x140466,_0xd9f403);},'UUTJT':function(_0x4470d3,_0x104f52){return _0x4470d3!==_0x104f52;}},_0x213b79=_0x3bcd67['$elm$']=_0x21ffcb[_0x49a5fc(0x1af)],_0x48905c=_0x21ffcb[_0x49a5fc(0x1ce)],_0x2b0759=_0x3bcd67[_0x49a5fc(0x1ce)],_0x3413dc=_0x3bcd67[_0x49a5fc(0x205)],_0x2ade8d=_0x3bcd67[_0x49a5fc(0x27b)];if(_0x49aa7f[_0x49a5fc(0x1a3)](_0x2ade8d,null)){{isSvgMode=_0x49aa7f[_0x49a5fc(0x1ee)](_0x3413dc,_0x49aa7f['BdmKx'])?!![]:_0x49aa7f[_0x49a5fc(0x1e8)](_0x3413dc,_0x49aa7f[_0x49a5fc(0x1a9)])?![]:isSvgMode;}{if(_0x3413dc===_0x49a5fc(0x232));else _0x49aa7f['DHNtL'](updateElement,_0x21ffcb,_0x3bcd67,isSvgMode);}if(_0x48905c!==null&&_0x49aa7f['QidUx'](_0x2b0759,null))_0x49aa7f['UDocc'](updateChildren,_0x213b79,_0x48905c,_0x3bcd67,_0x2b0759);else{if(_0x49aa7f[_0x49a5fc(0x282)](_0x2b0759,null))_0x49aa7f[_0x49a5fc(0x24c)](_0x21ffcb[_0x49a5fc(0x27b)],null)&&(_0x213b79[_0x49a5fc(0x25e)]=''),_0x49aa7f[_0x49a5fc(0x22a)](addVnodes,_0x213b79,null,_0x3bcd67,_0x2b0759,0x0,_0x2b0759['length']-0x1);else _0x49aa7f['UUTJT'](_0x48905c,null)&&_0x49aa7f[_0x49a5fc(0x1f4)](removeVnodes,_0x48905c,0x0,_0x48905c[_0x49a5fc(0x19c)]-0x1);}isSvgMode&&_0x3413dc===_0x49a5fc(0x239)&&(isSvgMode=![]);}else _0x49aa7f[_0x49a5fc(0x252)](_0x21ffcb[_0x49a5fc(0x27b)],_0x2ade8d)&&(_0x213b79[_0x49a5fc(0x1ef)]=_0x2ade8d);},callNodeRefs=_0x5b5349=>{const _0x32d785=_0x1e5fcc;{_0x5b5349[_0x32d785(0x1db)]&&_0x5b5349['$attrs$'][_0x32d785(0x206)]&&_0x5b5349[_0x32d785(0x1db)]['ref'](null),_0x5b5349['$children$']&&_0x5b5349[_0x32d785(0x1ce)]['map'](callNodeRefs);}},renderVdom=(_0x526964,_0x4e9092)=>{const _0x6d00fd=_0x1e5fcc,_0x4830b3={'SQBXF':function(_0x5e6dbe,_0x542e17,_0x5a114e,_0x4f4d60){return _0x5e6dbe(_0x542e17,_0x5a114e,_0x4f4d60);},'XVTRx':'s-sc','tCVEb':function(_0x1311c5,_0x4b4484,_0x2f73da){return _0x1311c5(_0x4b4484,_0x2f73da);}},_0x493863=_0x526964[_0x6d00fd(0x299)],_0x3b0cb3=_0x526964[_0x6d00fd(0x29b)],_0x2ce426=_0x526964[_0x6d00fd(0x1ab)]||newVNode(null,null),_0x3ffa15=isHost(_0x4e9092)?_0x4e9092:_0x4830b3['SQBXF'](h,null,null,_0x4e9092);hostTagName=_0x493863[_0x6d00fd(0x1e0)];_0x3b0cb3[_0x6d00fd(0x27c)]&&(_0x3ffa15[_0x6d00fd(0x1db)]=_0x3ffa15[_0x6d00fd(0x1db)]||{},_0x3b0cb3[_0x6d00fd(0x27c)][_0x6d00fd(0x1eb)](([_0x52cb89,_0xbd2d87])=>_0x3ffa15['$attrs$'][_0xbd2d87]=_0x493863[_0x52cb89]));_0x3ffa15['$tag$']=null,_0x3ffa15['$flags$']|=0x4,_0x526964[_0x6d00fd(0x1ab)]=_0x3ffa15,_0x3ffa15[_0x6d00fd(0x1af)]=_0x2ce426[_0x6d00fd(0x1af)]=_0x493863[_0x6d00fd(0x1a0)]||_0x493863;{scopeId=_0x493863[_0x4830b3[_0x6d00fd(0x23f)]];}_0x4830b3[_0x6d00fd(0x267)](patch,_0x2ce426,_0x3ffa15);},attachToAncestor=(_0x5d044e,_0x1ecae0)=>{const _0x14992b=_0x1e5fcc,_0x49fbea={'uPEuY':_0x14992b(0x217)};_0x1ecae0&&!_0x5d044e['$onRenderResolve$']&&_0x1ecae0[_0x49fbea[_0x14992b(0x294)]]&&_0x1ecae0[_0x49fbea[_0x14992b(0x294)]]['push'](new Promise(_0x503ef8=>_0x5d044e[_0x14992b(0x276)]=_0x503ef8));},scheduleUpdate=(_0x2ca52c,_0x1e7d5a)=>{const _0x4b44c6=_0x1e5fcc,_0x590d95={'nTZOP':function(_0x389523,_0x2303b4){return _0x389523&_0x2303b4;},'GWDde':function(_0x2722f7,_0x3b4268){return _0x2722f7(_0x3b4268);}};{_0x2ca52c[_0x4b44c6(0x1d2)]|=0x10;}if(_0x590d95[_0x4b44c6(0x1ad)](_0x2ca52c[_0x4b44c6(0x1d2)],0x4)){_0x2ca52c['$flags$']|=0x200;return;}attachToAncestor(_0x2ca52c,_0x2ca52c['$ancestorComponent$']);const _0x1c0886=()=>dispatchHooks(_0x2ca52c,_0x1e7d5a);return _0x590d95[_0x4b44c6(0x274)](writeTask,_0x1c0886);},dispatchHooks=(_0x421613,_0x54922e)=>{const _0x5c3e00=_0x1e5fcc,_0x9227f3={'VehXE':function(_0xea4c56,_0x354113,_0x4ba114){return _0xea4c56(_0x354113,_0x4ba114);},'qvRkj':_0x5c3e00(0x1e1),'yYwSh':_0x5c3e00(0x1fb),'xiZzp':function(_0xd0b9f9){return _0xd0b9f9();},'KGHxF':function(_0x4f5a47,_0x3ce198,_0x20fee7){return _0x4f5a47(_0x3ce198,_0x20fee7);}},_0x441659=_0x9227f3[_0x5c3e00(0x20a)](createTime,_0x9227f3[_0x5c3e00(0x196)],_0x421613[_0x5c3e00(0x29b)]['$tagName$']),_0xa570a8=_0x421613[_0x5c3e00(0x262)];let _0x5d0452;if(_0x54922e){_0x5d0452=_0x9227f3[_0x5c3e00(0x20a)](safeCall,_0xa570a8,_0x9227f3[_0x5c3e00(0x1de)]);}return _0x9227f3[_0x5c3e00(0x27a)](_0x441659),_0x9227f3[_0x5c3e00(0x200)](then,_0x5d0452,()=>updateComponent(_0x421613,_0xa570a8,_0x54922e));},updateComponent=async(_0x1d9d27,_0x276a25,_0x54cea6)=>{const _0x31aa4e=_0x1e5fcc,_0x381acb={'NVxvf':_0x31aa4e(0x242),'yaUls':_0x31aa4e(0x1c5),'EyxMZ':function(_0x2ee983,_0x3a7893,_0x297d3b){return _0x2ee983(_0x3a7893,_0x297d3b);},'hVvei':function(_0x3452b0){return _0x3452b0();},'vKOvW':function(_0x1ec421){return _0x1ec421();},'xWLxC':_0x31aa4e(0x217),'MTUht':function(_0x516277,_0x317152){return _0x516277===_0x317152;},'KMyEP':function(_0x23eb9d){return _0x23eb9d();}},_0x559707=_0x1d9d27['$hostElement$'],_0x5e364b=createTime(_0x381acb[_0x31aa4e(0x1e3)],_0x1d9d27[_0x31aa4e(0x29b)][_0x31aa4e(0x24d)]),_0x417693=_0x559707[_0x381acb[_0x31aa4e(0x22b)]];_0x54cea6&&attachStyles(_0x1d9d27);const _0x298646=_0x381acb['EyxMZ'](createTime,'render',_0x1d9d27[_0x31aa4e(0x29b)][_0x31aa4e(0x24d)]);{_0x381acb[_0x31aa4e(0x22f)](callRender,_0x1d9d27,_0x276a25);}_0x417693&&(_0x417693[_0x31aa4e(0x1eb)](_0xc76d0a=>_0xc76d0a()),_0x559707['s-rc']=undefined);_0x381acb[_0x31aa4e(0x1e5)](_0x298646),_0x381acb[_0x31aa4e(0x281)](_0x5e364b);{const _0x228897=_0x559707[_0x381acb[_0x31aa4e(0x24e)]],_0x2bea5e=()=>postUpdateComponent(_0x1d9d27);_0x381acb['MTUht'](_0x228897[_0x31aa4e(0x19c)],0x0)?_0x381acb[_0x31aa4e(0x257)](_0x2bea5e):(Promise['all'](_0x228897)['then'](_0x2bea5e),_0x1d9d27['$flags$']|=0x4,_0x228897[_0x31aa4e(0x19c)]=0x0);}},callRender=(_0x2858d6,_0x9ccbf,_0x39c674)=>{const _0x35fa45=_0x1e5fcc,_0x37e9ff={'JABxD':function(_0x1169f1,_0x3de0b8,_0x504eb5){return _0x1169f1(_0x3de0b8,_0x504eb5);}};try{_0x9ccbf=_0x9ccbf[_0x35fa45(0x221)]();{_0x2858d6[_0x35fa45(0x1d2)]&=~0x10;}{_0x2858d6[_0x35fa45(0x1d2)]|=0x2;}{{{_0x37e9ff[_0x35fa45(0x1ec)](renderVdom,_0x2858d6,_0x9ccbf);}}}}catch(_0x34be4e){_0x37e9ff['JABxD'](consoleError,_0x34be4e,_0x2858d6[_0x35fa45(0x299)]);}return null;},postUpdateComponent=_0x3dc0c9=>{const _0x407fa8=_0x1e5fcc,_0x11fbc1={'lKfEL':function(_0x212cb6,_0xe6f9b7,_0xf493bd){return _0x212cb6(_0xe6f9b7,_0xf493bd);},'ciKnW':_0x407fa8(0x1fc),'WlcwU':function(_0x23e36c,_0x49185f){return _0x23e36c&_0x49185f;},'WkhFl':function(_0x4cabc1){return _0x4cabc1();},'ntcyX':_0x407fa8(0x241),'ZYCjO':function(_0x47f6ed){return _0x47f6ed();},'sqwJT':function(_0x410809,_0x91eaaf){return _0x410809&_0x91eaaf;},'oGchz':function(_0x3a9083,_0x2bd778){return _0x3a9083(_0x2bd778);},'eYKcq':function(_0x43c4e2,_0x58caab){return _0x43c4e2|_0x58caab;}},_0x109482=_0x3dc0c9[_0x407fa8(0x29b)][_0x407fa8(0x24d)],_0x217ed6=_0x3dc0c9[_0x407fa8(0x299)],_0x24eb75=_0x11fbc1['lKfEL'](createTime,_0x11fbc1[_0x407fa8(0x272)],_0x109482),_0x422542=_0x3dc0c9[_0x407fa8(0x262)],_0x1386c4=_0x3dc0c9[_0x407fa8(0x244)];if(!_0x11fbc1['WlcwU'](_0x3dc0c9[_0x407fa8(0x1d2)],0x40)){const _0x4c95ef='3|0|2|4|1'[_0x407fa8(0x1b3)]('|');let _0x5a148f=0x0;while(!![]){switch(_0x4c95ef[_0x5a148f++]){case'0':{addHydratedFlag(_0x217ed6);}continue;case'1':{_0x3dc0c9[_0x407fa8(0x1d0)](_0x217ed6),!_0x1386c4&&_0x11fbc1[_0x407fa8(0x212)](appDidLoad);}continue;case'2':{_0x11fbc1[_0x407fa8(0x26f)](safeCall,_0x422542,_0x11fbc1['ntcyX']);}continue;case'3':_0x3dc0c9[_0x407fa8(0x1d2)]|=0x40;continue;case'4':_0x11fbc1[_0x407fa8(0x210)](_0x24eb75);continue;}break;}}else _0x24eb75();{_0x3dc0c9[_0x407fa8(0x276)]&&(_0x3dc0c9[_0x407fa8(0x276)](),_0x3dc0c9['$onRenderResolve$']=undefined),_0x11fbc1[_0x407fa8(0x23e)](_0x3dc0c9[_0x407fa8(0x1d2)],0x200)&&_0x11fbc1[_0x407fa8(0x22d)](nextTick,()=>scheduleUpdate(_0x3dc0c9,![])),_0x3dc0c9['$flags$']&=~_0x11fbc1[_0x407fa8(0x245)](0x4,0x200);}},appDidLoad=_0x543dcc=>{const _0x51a81b=_0x1e5fcc,_0x3348f7={'LjLJR':function(_0x9e3d44,_0x1abbaa){return _0x9e3d44(_0x1abbaa);},'nnJeP':function(_0x30ba73,_0x5aedcd){return _0x30ba73(_0x5aedcd);}};{_0x3348f7['LjLJR'](addHydratedFlag,doc[_0x51a81b(0x251)]);}_0x3348f7[_0x51a81b(0x291)](nextTick,()=>emitEvent(win,_0x51a81b(0x23a),{'detail':{'namespace':NAMESPACE}}));},safeCall=(_0x1f20a1,_0x4e5cad,_0x38fef9)=>{if(_0x1f20a1&&_0x1f20a1[_0x4e5cad])try{return _0x1f20a1[_0x4e5cad](_0x38fef9);}catch(_0x4560ca){consoleError(_0x4560ca);}return undefined;},then=(_0x9fe806,_0x2ee32d)=>{const _0x470044=_0x1e5fcc,_0x4d3158={'HEePX':function(_0xce67c5){return _0xce67c5();}};return _0x9fe806&&_0x9fe806[_0x470044(0x1fa)]?_0x9fe806[_0x470044(0x1fa)](_0x2ee32d):_0x4d3158[_0x470044(0x28b)](_0x2ee32d);},addHydratedFlag=_0x1d1e1a=>_0x1d1e1a[_0x1e5fcc(0x199)][_0x1e5fcc(0x259)](_0x1e5fcc(0x246)),getValue=(_0xca67d8,_0x358ee0)=>getHostRef(_0xca67d8)[_0x1e5fcc(0x1ed)][_0x1e5fcc(0x19b)](_0x358ee0),setValue=(_0x1a9eff,_0x1aa8bd,_0x55d6a3,_0x5170af)=>{const _0x5f4ecc=_0x1e5fcc,_0xe016e4={'qlBaU':function(_0x521642,_0x3634aa){return _0x521642(_0x3634aa);},'teckQ':function(_0x226b85,_0x25d649,_0x4b32d1){return _0x226b85(_0x25d649,_0x4b32d1);},'AcJWa':function(_0x52998d,_0x217814){return _0x52998d===_0x217814;},'bwJOI':function(_0x10d84c,_0x22338f){return _0x10d84c===_0x22338f;},'qbfKO':function(_0x1c0933,_0xd7a9cb){return _0x1c0933|_0xd7a9cb;},'TohdY':function(_0x1226cd,_0x51236e,_0x260516){return _0x1226cd(_0x51236e,_0x260516);}},_0x522a7a=_0xe016e4['qlBaU'](getHostRef,_0x1a9eff),_0x199254=_0x522a7a[_0x5f4ecc(0x1ed)][_0x5f4ecc(0x19b)](_0x1aa8bd),_0x188a4f=_0x522a7a[_0x5f4ecc(0x1d2)],_0x27306e=_0x522a7a[_0x5f4ecc(0x262)];_0x55d6a3=_0xe016e4[_0x5f4ecc(0x25d)](parsePropertyValue,_0x55d6a3,_0x5170af[_0x5f4ecc(0x233)][_0x1aa8bd][0x0]);const _0x5826f2=Number['isNaN'](_0x199254)&&Number[_0x5f4ecc(0x20c)](_0x55d6a3),_0x508c5b=_0x55d6a3!==_0x199254&&!_0x5826f2;(!(_0x188a4f&0x8)||_0xe016e4['AcJWa'](_0x199254,undefined))&&_0x508c5b&&(_0x522a7a[_0x5f4ecc(0x1ed)]['set'](_0x1aa8bd,_0x55d6a3),_0x27306e&&(_0xe016e4['bwJOI'](_0x188a4f&_0xe016e4[_0x5f4ecc(0x1cb)](0x2,0x10),0x2)&&_0xe016e4[_0x5f4ecc(0x209)](scheduleUpdate,_0x522a7a,![])));},proxyComponent=(_0x11e2a9,_0x4d801e,_0x340f9e)=>{const _0x5b1344=_0x1e5fcc,_0xe0ba8e={'xKyJd':function(_0x2ef9e8,_0x5b820b){return _0x2ef9e8&_0x5b820b;},'mvdiM':function(_0x150bea,_0x3a8bc1){return _0x150bea&_0x3a8bc1;},'NaruI':_0x5b1344(0x220),'MFAsN':function(_0x1ffb4d,_0x1cad82){return _0x1ffb4d==_0x1cad82;},'fLFGQ':function(_0x2551e9,_0x23da67){return _0x2551e9===_0x23da67;},'IrLkI':_0x5b1344(0x26a),'zVmfZ':function(_0x4ce418,_0x24f8fe){return _0x4ce418&_0x24f8fe;}};if(_0x4d801e['$members$']){const _0xb7ecb5=Object[_0x5b1344(0x25a)](_0x4d801e[_0x5b1344(0x233)]),_0x5cab8e=_0x11e2a9[_0x5b1344(0x264)];_0xb7ecb5[_0x5b1344(0x1eb)](([_0x30d72b,[_0x1c92d2]])=>{const _0xe53025=_0x5b1344;(_0xe0ba8e['xKyJd'](_0x1c92d2,0x1f)||_0xe0ba8e[_0xe53025(0x1f0)](_0x340f9e,0x2)&&_0xe0ba8e[_0xe53025(0x238)](_0x1c92d2,0x20))&&Object[_0xe53025(0x25f)](_0x5cab8e,_0x30d72b,{'get'(){return getValue(this,_0x30d72b);},'set'(_0x4977a2){setValue(this,_0x30d72b,_0x4977a2,_0x4d801e);},'configurable':!![],'enumerable':!![]});});if(_0x340f9e&0x1){const _0x4f30c7=new Map();_0x5cab8e['attributeChangedCallback']=function(_0x555d89,_0x10507d,_0x1734a1){const _0x2a282a=_0x5b1344;plt[_0x2a282a(0x2a0)](()=>{const _0x4faeab=_0x2a282a,_0x469060=_0x4f30c7[_0x4faeab(0x19b)](_0x555d89);if(this[_0x4faeab(0x275)](_0x469060))_0x1734a1=this[_0x469060],delete this[_0x469060];else{if(_0x5cab8e[_0x4faeab(0x275)](_0x469060)&&typeof this[_0x469060]===_0xe0ba8e[_0x4faeab(0x28c)]&&_0xe0ba8e[_0x4faeab(0x1c4)](this[_0x469060],_0x1734a1))return;}this[_0x469060]=_0xe0ba8e['fLFGQ'](_0x1734a1,null)&&_0xe0ba8e[_0x4faeab(0x21a)](typeof this[_0x469060],_0xe0ba8e[_0x4faeab(0x19a)])?![]:_0x1734a1;});},_0x11e2a9[_0x5b1344(0x1c6)]=_0xb7ecb5[_0x5b1344(0x23d)](([_0x22402a,_0x3528fa])=>_0x3528fa[0x0]&0xf)[_0x5b1344(0x1eb)](([_0x1d33c0,_0x589de8])=>{const _0x1b026f=_0x5b1344,_0x2a9a4e=_0x589de8[0x1]||_0x1d33c0;return _0x4f30c7[_0x1b026f(0x218)](_0x2a9a4e,_0x1d33c0),_0xe0ba8e[_0x1b026f(0x1f6)](_0x589de8[0x0],0x200)&&_0x4d801e[_0x1b026f(0x27c)][_0x1b026f(0x296)]([_0x1d33c0,_0x2a9a4e]),_0x2a9a4e;});}}return _0x11e2a9;},initializeComponent=async(_0x29b516,_0xd381fb,_0x750a92,_0xb303e,_0x5d8114)=>{const _0x332f5a=_0x1e5fcc,_0x324383={'wRVpr':function(_0x22de6d,_0x302114){return _0x22de6d===_0x302114;},'hDveJ':function(_0x154fd6,_0x27bda0){return _0x154fd6(_0x27bda0);},'TWGFY':function(_0x3cd150){return _0x3cd150();},'ehMse':function(_0x1d26fc,_0x402c59,_0x21306,_0x3745fe){return _0x1d26fc(_0x402c59,_0x21306,_0x3745fe);},'BJMHI':function(_0x27915b,_0x52915c,_0x21623b){return _0x27915b(_0x52915c,_0x21623b);},'SXsbR':_0x332f5a(0x225),'mrFLu':function(_0x2dbd4f){return _0x2dbd4f();},'DBfcw':_0x332f5a(0x1bf),'jZYwA':_0x332f5a(0x1c5)};if(_0x324383[_0x332f5a(0x1c8)](_0xd381fb[_0x332f5a(0x1d2)]&0x20,0x0)){{_0xd381fb['$flags$']|=0x20,_0x5d8114=_0x324383[_0x332f5a(0x227)](loadModule,_0x750a92);if(_0x5d8114[_0x332f5a(0x1fa)]){const _0x1e7b37=_0x324383['TWGFY'](uniqueTime);_0x5d8114=await _0x5d8114,_0x324383[_0x332f5a(0x1b7)](_0x1e7b37);}!_0x5d8114[_0x332f5a(0x1a1)]&&(_0x324383[_0x332f5a(0x223)](proxyComponent,_0x5d8114,_0x750a92,0x2),_0x5d8114[_0x332f5a(0x1a1)]=!![]);const _0x33a340=_0x324383['BJMHI'](createTime,_0x324383[_0x332f5a(0x1d6)],_0x750a92['$tagName$']);{_0xd381fb[_0x332f5a(0x1d2)]|=0x8;}try{new _0x5d8114(_0xd381fb);}catch(_0x18f42c){_0x324383['hDveJ'](consoleError,_0x18f42c);}{_0xd381fb[_0x332f5a(0x1d2)]&=~0x8;}_0x324383[_0x332f5a(0x268)](_0x33a340),fireConnectedCallback(_0xd381fb[_0x332f5a(0x262)]);}if(_0x5d8114['style']){let _0x298d9d=_0x5d8114[_0x332f5a(0x1a2)];const _0x402894=_0x324383[_0x332f5a(0x227)](getScopeId,_0x750a92);if(!styles[_0x332f5a(0x235)](_0x402894)){const _0x5389eb=createTime(_0x324383[_0x332f5a(0x1c0)],_0x750a92[_0x332f5a(0x24d)]);registerStyle(_0x402894,_0x298d9d,!!(_0x750a92[_0x332f5a(0x1d2)]&0x1)),_0x5389eb();}}}const _0x59c90d=_0xd381fb[_0x332f5a(0x244)],_0xd7c214=()=>scheduleUpdate(_0xd381fb,!![]);_0x59c90d&&_0x59c90d[_0x324383[_0x332f5a(0x256)]]?_0x59c90d[_0x324383[_0x332f5a(0x256)]][_0x332f5a(0x296)](_0xd7c214):_0x324383[_0x332f5a(0x1b7)](_0xd7c214);},fireConnectedCallback=_0x2115fd=>{const _0x4d42c1=_0x1e5fcc,_0x401a3c={'DFQtP':function(_0x1557a3,_0x12172b,_0x1364aa){return _0x1557a3(_0x12172b,_0x1364aa);},'wDqXJ':'connectedCallback'};{_0x401a3c[_0x4d42c1(0x1fd)](safeCall,_0x2115fd,_0x401a3c[_0x4d42c1(0x20b)]);}},connectedCallback=_0x717a0d=>{const _0x1d2258=_0x1e5fcc,_0x49427d={'xZBfS':function(_0x5365de,_0x8f6522){return _0x5365de&_0x8f6522;},'klrKu':function(_0x37c971,_0x20aa2d){return _0x37c971===_0x20aa2d;},'tIYAj':function(_0x4f69bc,_0x389c6f){return _0x4f69bc&_0x389c6f;},'AKuzM':function(_0x5bd393,_0x15e8de){return _0x5bd393(_0x15e8de);},'ytLUD':function(_0x3953bb,_0x5e926e,_0x1fc568){return _0x3953bb(_0x5e926e,_0x1fc568);},'upPdb':'connectedCallback','TazpT':function(_0x5d2482,_0x389661,_0x2d2b1a){return _0x5d2482(_0x389661,_0x2d2b1a);},'wBdgE':function(_0x28a29d,_0x1a9ce1,_0x6fe0fe,_0x54649b){return _0x28a29d(_0x1a9ce1,_0x6fe0fe,_0x54649b);},'zNldb':function(_0x56f1af){return _0x56f1af();}};if(_0x49427d[_0x1d2258(0x19f)](_0x49427d[_0x1d2258(0x283)](plt['$flags$'],0x1),0x0)){const _0xa1b3c6=_0x49427d[_0x1d2258(0x215)](getHostRef,_0x717a0d),_0x239598=_0xa1b3c6['$cmpMeta$'],_0xc8025b=_0x49427d[_0x1d2258(0x1c2)](createTime,_0x49427d[_0x1d2258(0x1fe)],_0x239598['$tagName$']);if(!_0x49427d[_0x1d2258(0x283)](_0xa1b3c6[_0x1d2258(0x1d2)],0x1)){_0xa1b3c6['$flags$']|=0x1;{let _0x4f043a=_0x717a0d;while(_0x4f043a=_0x4f043a[_0x1d2258(0x287)]||_0x4f043a[_0x1d2258(0x1cc)]){if(_0x4f043a[_0x1d2258(0x217)]){_0x49427d[_0x1d2258(0x202)](attachToAncestor,_0xa1b3c6,_0xa1b3c6[_0x1d2258(0x244)]=_0x4f043a);break;}}}_0x239598[_0x1d2258(0x233)]&&Object[_0x1d2258(0x25a)](_0x239598[_0x1d2258(0x233)])['map'](([_0x263734,[_0x54f5fc]])=>{const _0x21c3c0=_0x1d2258;if(_0x49427d['xZBfS'](_0x54f5fc,0x1f)&&_0x717a0d[_0x21c3c0(0x275)](_0x263734)){const _0x1d4cf2=_0x717a0d[_0x263734];delete _0x717a0d[_0x263734],_0x717a0d[_0x263734]=_0x1d4cf2;}});{_0x49427d[_0x1d2258(0x222)](initializeComponent,_0x717a0d,_0xa1b3c6,_0x239598);}}else _0x49427d[_0x1d2258(0x215)](fireConnectedCallback,_0xa1b3c6['$lazyInstance$']);_0x49427d[_0x1d2258(0x26d)](_0xc8025b);}},disconnectedCallback=_0x38dc9c=>{const _0x4604af=_0x1e5fcc,_0x5aba79={'ogJcs':function(_0x94a6e8,_0x4e50ef){return _0x94a6e8===_0x4e50ef;},'TdcCo':function(_0x5d6c28,_0x3579bf){return _0x5d6c28&_0x3579bf;},'lJgiW':function(_0x160296,_0x4c2c52){return _0x160296(_0x4c2c52);},'Trkji':function(_0x53d839,_0x44c244,_0x5ab589){return _0x53d839(_0x44c244,_0x5ab589);},'kAVuU':_0x4604af(0x1ca)};if(_0x5aba79[_0x4604af(0x1f8)](_0x5aba79['TdcCo'](plt[_0x4604af(0x1d2)],0x1),0x0)){const _0x49e77e=_0x5aba79[_0x4604af(0x1c9)](getHostRef,_0x38dc9c),_0x5ce4d1=_0x49e77e[_0x4604af(0x262)];{_0x5aba79[_0x4604af(0x207)](safeCall,_0x5ce4d1,_0x5aba79[_0x4604af(0x26b)]);}}},bootstrapLazy=(_0xd9f82e,_0x2548cf={})=>{const _0x367950=_0x1e5fcc,_0x37066d={'wEDot':function(_0x1d8c6b,_0x369b45){return _0x1d8c6b(_0x369b45);},'bdmEz':function(_0x129113,_0x2be895){return _0x129113&_0x2be895;},'YLjIR':_0x367950(0x226),'DWGCJ':function(_0x38817f,_0x440952,_0x5e90bf,_0x24ea45){return _0x38817f(_0x440952,_0x5e90bf,_0x24ea45);},'pMYjo':function(_0x11c9ea){return _0x11c9ea();},'TXptv':'meta[charset]','NCTlE':function(_0x218306,_0x47a4cf){return _0x218306+_0x47a4cf;},'TuInc':function(_0x3cdd0f,_0x252432){return _0x3cdd0f!==_0x252432;},'ynyAu':function(_0xf58a68){return _0xf58a68();}};var _0x1053f7;const _0x44400a=_0x37066d[_0x367950(0x258)](createTime),_0x13f513=[],_0x2d4fc1=_0x2548cf[_0x367950(0x254)]||[],_0x21c7be=win['customElements'],_0x239dc1=doc[_0x367950(0x248)],_0x59f5db=_0x239dc1[_0x367950(0x203)](_0x37066d[_0x367950(0x21d)]),_0x51517c=doc[_0x367950(0x1bd)](_0x367950(0x1a2)),_0x5311e0=[];let _0x47248c,_0x2b2fa2=!![];Object['assign'](plt,_0x2548cf),plt[_0x367950(0x290)]=new URL(_0x2548cf['resourcesUrl']||'./',doc['baseURI'])[_0x367950(0x2a4)],_0xd9f82e[_0x367950(0x1eb)](_0x3c67e8=>{const _0x34ba70=_0x367950,_0x55e58e={'SDCMf':function(_0x487b93,_0x4d9f98){const _0x12d137=_0x5bb7;return _0x37066d[_0x12d137(0x278)](_0x487b93,_0x4d9f98);},'uxSdW':function(_0x376cc9,_0x529a9c){const _0x201a5f=_0x5bb7;return _0x37066d[_0x201a5f(0x1b6)](_0x376cc9,_0x529a9c);},'VSpUd':_0x37066d[_0x34ba70(0x2a2)],'yBWiC':function(_0x2482a9,_0xc15ff8,_0x43a82c,_0x56db56){return _0x37066d['DWGCJ'](_0x2482a9,_0xc15ff8,_0x43a82c,_0x56db56);}};_0x3c67e8[0x1]['map'](_0x475865=>{const _0x1e8a29=_0x34ba70,_0x53a72e={'otMfO':function(_0x33f89e,_0x299234){const _0x3e282f=_0x5bb7;return _0x55e58e[_0x3e282f(0x273)](_0x33f89e,_0x299234);},'CWybx':_0x55e58e[_0x1e8a29(0x280)],'llIEE':function(_0x5ef55a,_0x286230){const _0x569db7=_0x1e8a29;return _0x55e58e[_0x569db7(0x250)](_0x5ef55a,_0x286230);}},_0x5a2da0={'$flags$':_0x475865[0x0],'$tagName$':_0x475865[0x1],'$members$':_0x475865[0x2],'$listeners$':_0x475865[0x3]};{_0x5a2da0[_0x1e8a29(0x233)]=_0x475865[0x2];}{_0x5a2da0[_0x1e8a29(0x27c)]=[];}const _0x566aab=_0x5a2da0[_0x1e8a29(0x24d)],_0x3690d5=class extends HTMLElement{constructor(_0x7c66d5){const _0x1486fa=_0x1e8a29;super(_0x7c66d5),_0x7c66d5=this,registerHost(_0x7c66d5,_0x5a2da0);if(_0x53a72e[_0x1486fa(0x26e)](_0x5a2da0['$flags$'],0x1)){{_0x7c66d5[_0x1486fa(0x29c)]({'mode':_0x53a72e['CWybx']});}}}[_0x1e8a29(0x1d1)](){const _0x3a4192=_0x1e8a29;_0x47248c&&(_0x53a72e[_0x3a4192(0x1e4)](clearTimeout,_0x47248c),_0x47248c=null),_0x2b2fa2?_0x5311e0['push'](this):plt[_0x3a4192(0x2a0)](()=>connectedCallback(this));}[_0x1e8a29(0x1ca)](){const _0x4cea82=_0x1e8a29;plt[_0x4cea82(0x2a0)](()=>disconnectedCallback(this));}['componentOnReady'](){const _0x66fc6b=_0x1e8a29;return _0x55e58e[_0x66fc6b(0x250)](getHostRef,this)['$onReadyPromise$'];}};_0x5a2da0[_0x1e8a29(0x249)]=_0x3c67e8[0x0],!_0x2d4fc1[_0x1e8a29(0x255)](_0x566aab)&&!_0x21c7be[_0x1e8a29(0x19b)](_0x566aab)&&(_0x13f513[_0x1e8a29(0x296)](_0x566aab),_0x21c7be[_0x1e8a29(0x297)](_0x566aab,_0x55e58e['yBWiC'](proxyComponent,_0x3690d5,_0x5a2da0,0x1)));});});{_0x51517c[_0x367950(0x21e)]=_0x37066d[_0x367950(0x24f)](_0x13f513,HYDRATED_CSS),_0x51517c[_0x367950(0x1bc)]('data-styles','');const _0x47f63b=(_0x1053f7=plt[_0x367950(0x1a6)])!==null&&_0x37066d[_0x367950(0x265)](_0x1053f7,void 0x0)?_0x1053f7:queryNonceMetaTagContent(doc);_0x47f63b!=null&&_0x51517c['setAttribute'](_0x367950(0x1b0),_0x47f63b),_0x239dc1[_0x367950(0x19e)](_0x51517c,_0x59f5db?_0x59f5db[_0x367950(0x24b)]:_0x239dc1[_0x367950(0x2a6)]);}_0x2b2fa2=![];if(_0x5311e0['length'])_0x5311e0[_0x367950(0x1eb)](_0x3fe2a6=>_0x3fe2a6[_0x367950(0x1d1)]());else{plt[_0x367950(0x2a0)](()=>_0x47248c=setTimeout(appDidLoad,0x1e));}_0x37066d['ynyAu'](_0x44400a);},setNonce=_0x3695dd=>plt[_0x1e5fcc(0x1a6)]=_0x3695dd,hostRefs=new WeakMap(),getHostRef=_0x1beed5=>hostRefs['get'](_0x1beed5),registerInstance=(_0x59c174,_0x552bfa)=>hostRefs[_0x1e5fcc(0x218)](_0x552bfa[_0x1e5fcc(0x262)]=_0x59c174,_0x552bfa),registerHost=(_0x49e8ec,_0xa16802)=>{const _0x1b5fce=_0x1e5fcc,_0x381ff9={'MIUmN':_0x1b5fce(0x217)},_0x53b235={'$flags$':0x0,'$hostElement$':_0x49e8ec,'$cmpMeta$':_0xa16802,'$instanceValues$':new Map()};{_0x53b235[_0x1b5fce(0x1ea)]=new Promise(_0x461948=>_0x53b235[_0x1b5fce(0x1d0)]=_0x461948),_0x49e8ec[_0x381ff9[_0x1b5fce(0x216)]]=[],_0x49e8ec[_0x1b5fce(0x1c5)]=[];}return hostRefs[_0x1b5fce(0x218)](_0x49e8ec,_0x53b235);},isMemberInElement=(_0x16b50f,_0x386e70)=>_0x386e70 in _0x16b50f,consoleError=(_0x362c2c,_0xe83289)=>(0x0,console[_0x1e5fcc(0x29f)])(_0x362c2c,_0xe83289),cmpModules=new Map(),loadModule=(_0x331b9a,_0x3d634e,_0xd52eba)=>{const _0x5b286c=_0x1e5fcc,_0x38d0ad=_0x331b9a[_0x5b286c(0x24d)][_0x5b286c(0x1cd)](/-/g,'_'),_0x4b347c=_0x331b9a[_0x5b286c(0x249)],_0x6dd816=cmpModules[_0x5b286c(0x19b)](_0x4b347c);if(_0x6dd816)return _0x6dd816[_0x38d0ad];return import('./'+_0x4b347c+'.entry.js')[_0x5b286c(0x1fa)](_0x1fd940=>{const _0x45fe1f=_0x5b286c;{cmpModules[_0x45fe1f(0x218)](_0x4b347c,_0x1fd940);}return _0x1fd940[_0x38d0ad];},consoleError);},styles=new Map(),win=typeof window!==_0x1e5fcc(0x23b)?window:{},doc=win['document']||{'head':{}},plt={'$flags$':0x0,'$resourcesUrl$':'','jmp':_0x55a245=>_0x55a245(),'raf':_0x43eedb=>requestAnimationFrame(_0x43eedb),'ael':(_0x54f94d,_0x19c323,_0x25d706,_0x128efd)=>_0x54f94d[_0x1e5fcc(0x298)](_0x19c323,_0x25d706,_0x128efd),'rel':(_0x61af9a,_0x5e0fdc,_0x252535,_0x4be385)=>_0x61af9a[_0x1e5fcc(0x27f)](_0x5e0fdc,_0x252535,_0x4be385),'ce':(_0x823ac5,_0x32fe13)=>new CustomEvent(_0x823ac5,_0x32fe13)},promiseResolve=_0x482dac=>Promise[_0x1e5fcc(0x25c)](_0x482dac),supportsConstructableStylesheets=((()=>{const _0x111c08=_0x1e5fcc,_0x23ab2b={'sdUiU':function(_0x526fa0,_0x66fba6){return _0x526fa0===_0x66fba6;}};try{return new CSSStyleSheet(),_0x23ab2b[_0x111c08(0x1a7)](typeof new CSSStyleSheet()['replaceSync'],'function');}catch(_0x43b733){}return![];})()),queueDomReads=[],queueDomWrites=[],queueTask=(_0x20b2ac,_0x4e6e6c)=>_0x3005a7=>{const _0x309b0f=_0x1e5fcc;_0x20b2ac[_0x309b0f(0x296)](_0x3005a7),!queuePending&&(queuePending=!![],_0x4e6e6c&&plt[_0x309b0f(0x1d2)]&0x4?nextTick(flush):plt['raf'](flush));},consume=_0x3bbea9=>{const _0x5f08dc=_0x1e5fcc,_0x72f150={'fAOQg':function(_0x2c79ac,_0x56ddf2){return _0x2c79ac<_0x56ddf2;}};for(let _0x451860=0x0;_0x72f150[_0x5f08dc(0x20e)](_0x451860,_0x3bbea9[_0x5f08dc(0x19c)]);_0x451860++){try{_0x3bbea9[_0x451860](performance[_0x5f08dc(0x28a)]());}catch(_0x1c19ee){consoleError(_0x1c19ee);}}_0x3bbea9[_0x5f08dc(0x19c)]=0x0;},flush=()=>{const _0x42be65=_0x1e5fcc,_0x5d2e7f={'HStLF':function(_0x529d95,_0x1b4e25){return _0x529d95(_0x1b4e25);},'OUDel':function(_0x17a4e2,_0x46771c){return _0x17a4e2>_0x46771c;}};_0x5d2e7f[_0x42be65(0x228)](consume,queueDomReads);{_0x5d2e7f[_0x42be65(0x228)](consume,queueDomWrites),(queuePending=_0x5d2e7f[_0x42be65(0x211)](queueDomReads[_0x42be65(0x19c)],0x0))&&plt[_0x42be65(0x2a3)](flush);}},nextTick=_0xd92832=>promiseResolve()[_0x1e5fcc(0x1fa)](_0xd92832),writeTask=queueTask(queueDomWrites,!![]);function _0x5bb7(_0x1db06d,_0x9b4afb){const _0x373a0a=_0x373a();return _0x5bb7=function(_0x5bb763,_0x1b44de){_0x5bb763=_0x5bb763-0x196;let _0x1d1527=_0x373a0a[_0x5bb763];return _0x1d1527;},_0x5bb7(_0x1db06d,_0x9b4afb);}export{Host as H,bootstrapLazy as b,getElement as g,h,promiseResolve as p,registerInstance as r,setNonce as s};
1
+ const NAMESPACE = 'pushfeedback';
2
+
3
+ /**
4
+ * Virtual DOM patching algorithm based on Snabbdom by
5
+ * Simon Friis Vindum (@paldepind)
6
+ * Licensed under the MIT License
7
+ * https://github.com/snabbdom/snabbdom/blob/master/LICENSE
8
+ *
9
+ * Modified for Stencil's renderer and slot projection
10
+ */
11
+ let scopeId;
12
+ let hostTagName;
13
+ let isSvgMode = false;
14
+ let queuePending = false;
15
+ const createTime = (fnName, tagName = '') => {
16
+ {
17
+ return () => {
18
+ return;
19
+ };
20
+ }
21
+ };
22
+ const uniqueTime = (key, measureText) => {
23
+ {
24
+ return () => {
25
+ return;
26
+ };
27
+ }
28
+ };
29
+ const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
30
+ /**
31
+ * Default style mode id
32
+ */
33
+ /**
34
+ * Reusable empty obj/array
35
+ * Don't add values to these!!
36
+ */
37
+ const EMPTY_OBJ = {};
38
+ /**
39
+ * Namespaces
40
+ */
41
+ const SVG_NS = 'http://www.w3.org/2000/svg';
42
+ const HTML_NS = 'http://www.w3.org/1999/xhtml';
43
+ const isDef = (v) => v != null;
44
+ const isComplexType = (o) => {
45
+ // https://jsperf.com/typeof-fn-object/5
46
+ o = typeof o;
47
+ return o === 'object' || o === 'function';
48
+ };
49
+ /**
50
+ * Helper method for querying a `meta` tag that contains a nonce value
51
+ * out of a DOM's head.
52
+ *
53
+ * @param doc The DOM containing the `head` to query against
54
+ * @returns The content of the meta tag representing the nonce value, or `undefined` if no tag
55
+ * exists or the tag has no content.
56
+ */
57
+ function queryNonceMetaTagContent(doc) {
58
+ var _a, _b, _c;
59
+ return (_c = (_b = (_a = doc.head) === null || _a === void 0 ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) === null || _b === void 0 ? void 0 : _b.getAttribute('content')) !== null && _c !== void 0 ? _c : undefined;
60
+ }
61
+ /**
62
+ * Production h() function based on Preact by
63
+ * Jason Miller (@developit)
64
+ * Licensed under the MIT License
65
+ * https://github.com/developit/preact/blob/master/LICENSE
66
+ *
67
+ * Modified for Stencil's compiler and vdom
68
+ */
69
+ // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, child?: d.ChildType): d.VNode;
70
+ // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
71
+ const h = (nodeName, vnodeData, ...children) => {
72
+ let child = null;
73
+ let simple = false;
74
+ let lastSimple = false;
75
+ const vNodeChildren = [];
76
+ const walk = (c) => {
77
+ for (let i = 0; i < c.length; i++) {
78
+ child = c[i];
79
+ if (Array.isArray(child)) {
80
+ walk(child);
81
+ }
82
+ else if (child != null && typeof child !== 'boolean') {
83
+ if ((simple = typeof nodeName !== 'function' && !isComplexType(child))) {
84
+ child = String(child);
85
+ }
86
+ if (simple && lastSimple) {
87
+ // If the previous child was simple (string), we merge both
88
+ vNodeChildren[vNodeChildren.length - 1].$text$ += child;
89
+ }
90
+ else {
91
+ // Append a new vNode, if it's text, we create a text vNode
92
+ vNodeChildren.push(simple ? newVNode(null, child) : child);
93
+ }
94
+ lastSimple = simple;
95
+ }
96
+ }
97
+ };
98
+ walk(children);
99
+ if (vnodeData) {
100
+ {
101
+ const classData = vnodeData.className || vnodeData.class;
102
+ if (classData) {
103
+ vnodeData.class =
104
+ typeof classData !== 'object'
105
+ ? classData
106
+ : Object.keys(classData)
107
+ .filter((k) => classData[k])
108
+ .join(' ');
109
+ }
110
+ }
111
+ }
112
+ const vnode = newVNode(nodeName, null);
113
+ vnode.$attrs$ = vnodeData;
114
+ if (vNodeChildren.length > 0) {
115
+ vnode.$children$ = vNodeChildren;
116
+ }
117
+ return vnode;
118
+ };
119
+ /**
120
+ * A utility function for creating a virtual DOM node from a tag and some
121
+ * possible text content.
122
+ *
123
+ * @param tag the tag for this element
124
+ * @param text possible text content for the node
125
+ * @returns a newly-minted virtual DOM node
126
+ */
127
+ const newVNode = (tag, text) => {
128
+ const vnode = {
129
+ $flags$: 0,
130
+ $tag$: tag,
131
+ $text$: text,
132
+ $elm$: null,
133
+ $children$: null,
134
+ };
135
+ {
136
+ vnode.$attrs$ = null;
137
+ }
138
+ return vnode;
139
+ };
140
+ const Host = {};
141
+ /**
142
+ * Check whether a given node is a Host node or not
143
+ *
144
+ * @param node the virtual DOM node to check
145
+ * @returns whether it's a Host node or not
146
+ */
147
+ const isHost = (node) => node && node.$tag$ === Host;
148
+ /**
149
+ * Parse a new property value for a given property type.
150
+ *
151
+ * While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
152
+ * it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
153
+ * 1. `any`, the type given to `propValue` in the function signature
154
+ * 2. the type stored from `propType`.
155
+ *
156
+ * This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
157
+ *
158
+ * Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
159
+ * a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
160
+ * based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
161
+ * ```tsx
162
+ * <my-cmp prop-val={0}></my-cmp>
163
+ * ```
164
+ *
165
+ * HTML prop values on the other hand, will always a string
166
+ *
167
+ * @param propValue the new value to coerce to some type
168
+ * @param propType the type of the prop, expressed as a binary number
169
+ * @returns the parsed/coerced value
170
+ */
171
+ const parsePropertyValue = (propValue, propType) => {
172
+ // ensure this value is of the correct prop type
173
+ if (propValue != null && !isComplexType(propValue)) {
174
+ if (propType & 4 /* MEMBER_FLAGS.Boolean */) {
175
+ // per the HTML spec, any string value means it is a boolean true value
176
+ // but we'll cheat here and say that the string "false" is the boolean false
177
+ return propValue === 'false' ? false : propValue === '' || !!propValue;
178
+ }
179
+ if (propType & 1 /* MEMBER_FLAGS.String */) {
180
+ // could have been passed as a number or boolean
181
+ // but we still want it as a string
182
+ return String(propValue);
183
+ }
184
+ // redundant return here for better minification
185
+ return propValue;
186
+ }
187
+ // not sure exactly what type we want
188
+ // so no need to change to a different type
189
+ return propValue;
190
+ };
191
+ const getElement = (ref) => (getHostRef(ref).$hostElement$ );
192
+ /**
193
+ * Helper function to create & dispatch a custom Event on a provided target
194
+ * @param elm the target of the Event
195
+ * @param name the name to give the custom Event
196
+ * @param opts options for configuring a custom Event
197
+ * @returns the custom Event
198
+ */
199
+ const emitEvent = (elm, name, opts) => {
200
+ const ev = plt.ce(name, opts);
201
+ elm.dispatchEvent(ev);
202
+ return ev;
203
+ };
204
+ const rootAppliedStyles = /*@__PURE__*/ new WeakMap();
205
+ const registerStyle = (scopeId, cssText, allowCS) => {
206
+ let style = styles.get(scopeId);
207
+ if (supportsConstructableStylesheets && allowCS) {
208
+ style = (style || new CSSStyleSheet());
209
+ if (typeof style === 'string') {
210
+ style = cssText;
211
+ }
212
+ else {
213
+ style.replaceSync(cssText);
214
+ }
215
+ }
216
+ else {
217
+ style = cssText;
218
+ }
219
+ styles.set(scopeId, style);
220
+ };
221
+ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
222
+ var _a;
223
+ let scopeId = getScopeId(cmpMeta);
224
+ const style = styles.get(scopeId);
225
+ // if an element is NOT connected then getRootNode() will return the wrong root node
226
+ // so the fallback is to always use the document for the root node in those cases
227
+ styleContainerNode = styleContainerNode.nodeType === 11 /* NODE_TYPE.DocumentFragment */ ? styleContainerNode : doc;
228
+ if (style) {
229
+ if (typeof style === 'string') {
230
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
231
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
232
+ let styleElm;
233
+ if (!appliedStyles) {
234
+ rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
235
+ }
236
+ if (!appliedStyles.has(scopeId)) {
237
+ {
238
+ {
239
+ styleElm = doc.createElement('style');
240
+ styleElm.innerHTML = style;
241
+ }
242
+ // Apply CSP nonce to the style tag if it exists
243
+ const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
244
+ if (nonce != null) {
245
+ styleElm.setAttribute('nonce', nonce);
246
+ }
247
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
248
+ }
249
+ if (appliedStyles) {
250
+ appliedStyles.add(scopeId);
251
+ }
252
+ }
253
+ }
254
+ else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
255
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
256
+ }
257
+ }
258
+ return scopeId;
259
+ };
260
+ const attachStyles = (hostRef) => {
261
+ const cmpMeta = hostRef.$cmpMeta$;
262
+ const elm = hostRef.$hostElement$;
263
+ const flags = cmpMeta.$flags$;
264
+ const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
265
+ const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
266
+ if (flags & 10 /* CMP_FLAGS.needsScopedEncapsulation */) {
267
+ // only required when we're NOT using native shadow dom (slot)
268
+ // or this browser doesn't support native shadow dom
269
+ // and this host element was NOT created with SSR
270
+ // let's pick out the inner content for slot projection
271
+ // create a node to represent where the original
272
+ // content was first placed, which is useful later on
273
+ // DOM WRITE!!
274
+ elm['s-sc'] = scopeId;
275
+ elm.classList.add(scopeId + '-h');
276
+ }
277
+ endAttachStyles();
278
+ };
279
+ const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
280
+ /**
281
+ * Production setAccessor() function based on Preact by
282
+ * Jason Miller (@developit)
283
+ * Licensed under the MIT License
284
+ * https://github.com/developit/preact/blob/master/LICENSE
285
+ *
286
+ * Modified for Stencil's compiler and vdom
287
+ */
288
+ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
289
+ if (oldValue !== newValue) {
290
+ let isProp = isMemberInElement(elm, memberName);
291
+ let ln = memberName.toLowerCase();
292
+ if (memberName === 'class') {
293
+ const classList = elm.classList;
294
+ const oldClasses = parseClassList(oldValue);
295
+ const newClasses = parseClassList(newValue);
296
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
297
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
298
+ }
299
+ else if (memberName === 'ref') {
300
+ // minifier will clean this up
301
+ if (newValue) {
302
+ newValue(elm);
303
+ }
304
+ }
305
+ else if ((!isProp ) &&
306
+ memberName[0] === 'o' &&
307
+ memberName[1] === 'n') {
308
+ // Event Handlers
309
+ // so if the member name starts with "on" and the 3rd characters is
310
+ // a capital letter, and it's not already a member on the element,
311
+ // then we're assuming it's an event listener
312
+ if (memberName[2] === '-') {
313
+ // on- prefixed events
314
+ // allows to be explicit about the dom event to listen without any magic
315
+ // under the hood:
316
+ // <my-cmp on-click> // listens for "click"
317
+ // <my-cmp on-Click> // listens for "Click"
318
+ // <my-cmp on-ionChange> // listens for "ionChange"
319
+ // <my-cmp on-EVENTS> // listens for "EVENTS"
320
+ memberName = memberName.slice(3);
321
+ }
322
+ else if (isMemberInElement(win, ln)) {
323
+ // standard event
324
+ // the JSX attribute could have been "onMouseOver" and the
325
+ // member name "onmouseover" is on the window's prototype
326
+ // so let's add the listener "mouseover", which is all lowercased
327
+ memberName = ln.slice(2);
328
+ }
329
+ else {
330
+ // custom event
331
+ // the JSX attribute could have been "onMyCustomEvent"
332
+ // so let's trim off the "on" prefix and lowercase the first character
333
+ // and add the listener "myCustomEvent"
334
+ // except for the first character, we keep the event name case
335
+ memberName = ln[2] + memberName.slice(3);
336
+ }
337
+ if (oldValue) {
338
+ plt.rel(elm, memberName, oldValue, false);
339
+ }
340
+ if (newValue) {
341
+ plt.ael(elm, memberName, newValue, false);
342
+ }
343
+ }
344
+ else {
345
+ // Set property if it exists and it's not a SVG
346
+ const isComplex = isComplexType(newValue);
347
+ if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
348
+ try {
349
+ if (!elm.tagName.includes('-')) {
350
+ const n = newValue == null ? '' : newValue;
351
+ // Workaround for Safari, moving the <input> caret when re-assigning the same valued
352
+ if (memberName === 'list') {
353
+ isProp = false;
354
+ }
355
+ else if (oldValue == null || elm[memberName] != n) {
356
+ elm[memberName] = n;
357
+ }
358
+ }
359
+ else {
360
+ elm[memberName] = newValue;
361
+ }
362
+ }
363
+ catch (e) { }
364
+ }
365
+ if (newValue == null || newValue === false) {
366
+ if (newValue !== false || elm.getAttribute(memberName) === '') {
367
+ {
368
+ elm.removeAttribute(memberName);
369
+ }
370
+ }
371
+ }
372
+ else if ((!isProp || flags & 4 /* VNODE_FLAGS.isHost */ || isSvg) && !isComplex) {
373
+ newValue = newValue === true ? '' : newValue;
374
+ {
375
+ elm.setAttribute(memberName, newValue);
376
+ }
377
+ }
378
+ }
379
+ }
380
+ };
381
+ const parseClassListRegex = /\s/;
382
+ const parseClassList = (value) => (!value ? [] : value.split(parseClassListRegex));
383
+ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
384
+ // if the element passed in is a shadow root, which is a document fragment
385
+ // then we want to be adding attrs/props to the shadow root's "host" element
386
+ // if it's not a shadow root, then we add attrs/props to the same element
387
+ const elm = newVnode.$elm$.nodeType === 11 /* NODE_TYPE.DocumentFragment */ && newVnode.$elm$.host
388
+ ? newVnode.$elm$.host
389
+ : newVnode.$elm$;
390
+ const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ;
391
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
392
+ {
393
+ // remove attributes no longer present on the vnode by setting them to undefined
394
+ for (memberName in oldVnodeAttrs) {
395
+ if (!(memberName in newVnodeAttrs)) {
396
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], undefined, isSvgMode, newVnode.$flags$);
397
+ }
398
+ }
399
+ }
400
+ // add new & update changed attributes
401
+ for (memberName in newVnodeAttrs) {
402
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode, newVnode.$flags$);
403
+ }
404
+ };
405
+ /**
406
+ * Create a DOM Node corresponding to one of the children of a given VNode.
407
+ *
408
+ * @param oldParentVNode the parent VNode from the previous render
409
+ * @param newParentVNode the parent VNode from the current render
410
+ * @param childIndex the index of the VNode, in the _new_ parent node's
411
+ * children, for which we will create a new DOM node
412
+ * @param parentElm the parent DOM node which our new node will be a child of
413
+ * @returns the newly created node
414
+ */
415
+ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
416
+ // tslint:disable-next-line: prefer-const
417
+ const newVNode = newParentVNode.$children$[childIndex];
418
+ let i = 0;
419
+ let elm;
420
+ let childNode;
421
+ if (newVNode.$text$ !== null) {
422
+ // create text node
423
+ elm = newVNode.$elm$ = doc.createTextNode(newVNode.$text$);
424
+ }
425
+ else {
426
+ if (!isSvgMode) {
427
+ isSvgMode = newVNode.$tag$ === 'svg';
428
+ }
429
+ // create element
430
+ elm = newVNode.$elm$ = (doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$tag$)
431
+ );
432
+ if (isSvgMode && newVNode.$tag$ === 'foreignObject') {
433
+ isSvgMode = false;
434
+ }
435
+ // add css classes, attrs, props, listeners, etc.
436
+ {
437
+ updateElement(null, newVNode, isSvgMode);
438
+ }
439
+ if (isDef(scopeId) && elm['s-si'] !== scopeId) {
440
+ // if there is a scopeId and this is the initial render
441
+ // then let's add the scopeId as a css class
442
+ elm.classList.add((elm['s-si'] = scopeId));
443
+ }
444
+ if (newVNode.$children$) {
445
+ for (i = 0; i < newVNode.$children$.length; ++i) {
446
+ // create the node
447
+ childNode = createElm(oldParentVNode, newVNode, i);
448
+ // return node could have been null
449
+ if (childNode) {
450
+ // append our new node
451
+ elm.appendChild(childNode);
452
+ }
453
+ }
454
+ }
455
+ {
456
+ if (newVNode.$tag$ === 'svg') {
457
+ // Only reset the SVG context when we're exiting <svg> element
458
+ isSvgMode = false;
459
+ }
460
+ else if (elm.tagName === 'foreignObject') {
461
+ // Reenter SVG context when we're exiting <foreignObject> element
462
+ isSvgMode = true;
463
+ }
464
+ }
465
+ }
466
+ return elm;
467
+ };
468
+ /**
469
+ * Create DOM nodes corresponding to a list of {@link d.Vnode} objects and
470
+ * add them to the DOM in the appropriate place.
471
+ *
472
+ * @param parentElm the DOM node which should be used as a parent for the new
473
+ * DOM nodes
474
+ * @param before a child of the `parentElm` which the new children should be
475
+ * inserted before (optional)
476
+ * @param parentVNode the parent virtual DOM node
477
+ * @param vnodes the new child virtual DOM nodes to produce DOM nodes for
478
+ * @param startIdx the index in the child virtual DOM nodes at which to start
479
+ * creating DOM nodes (inclusive)
480
+ * @param endIdx the index in the child virtual DOM nodes at which to stop
481
+ * creating DOM nodes (inclusive)
482
+ */
483
+ const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
484
+ let containerElm = (parentElm);
485
+ let childNode;
486
+ if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
487
+ containerElm = containerElm.shadowRoot;
488
+ }
489
+ for (; startIdx <= endIdx; ++startIdx) {
490
+ if (vnodes[startIdx]) {
491
+ childNode = createElm(null, parentVNode, startIdx);
492
+ if (childNode) {
493
+ vnodes[startIdx].$elm$ = childNode;
494
+ containerElm.insertBefore(childNode, before);
495
+ }
496
+ }
497
+ }
498
+ };
499
+ /**
500
+ * Remove the DOM elements corresponding to a list of {@link d.VNode} objects.
501
+ * This can be used to, for instance, clean up after a list of children which
502
+ * should no longer be shown.
503
+ *
504
+ * This function also handles some of Stencil's slot relocation logic.
505
+ *
506
+ * @param vnodes a list of virtual DOM nodes to remove
507
+ * @param startIdx the index at which to start removing nodes (inclusive)
508
+ * @param endIdx the index at which to stop removing nodes (inclusive)
509
+ * @param vnode a VNode
510
+ * @param elm an element
511
+ */
512
+ const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
513
+ for (; startIdx <= endIdx; ++startIdx) {
514
+ if ((vnode = vnodes[startIdx])) {
515
+ elm = vnode.$elm$;
516
+ callNodeRefs(vnode);
517
+ // remove the vnode's element from the dom
518
+ elm.remove();
519
+ }
520
+ }
521
+ };
522
+ /**
523
+ * Reconcile the children of a new VNode with the children of an old VNode by
524
+ * traversing the two collections of children, identifying nodes that are
525
+ * conserved or changed, calling out to `patch` to make any necessary
526
+ * updates to the DOM, and rearranging DOM nodes as needed.
527
+ *
528
+ * The algorithm for reconciling children works by analyzing two 'windows' onto
529
+ * the two arrays of children (`oldCh` and `newCh`). We keep track of the
530
+ * 'windows' by storing start and end indices and references to the
531
+ * corresponding array entries. Initially the two 'windows' are basically equal
532
+ * to the entire array, but we progressively narrow the windows until there are
533
+ * no children left to update by doing the following:
534
+ *
535
+ * 1. Skip any `null` entries at the beginning or end of the two arrays, so
536
+ * that if we have an initial array like the following we'll end up dealing
537
+ * only with a window bounded by the highlighted elements:
538
+ *
539
+ * [null, null, VNode1 , ... , VNode2, null, null]
540
+ * ^^^^^^ ^^^^^^
541
+ *
542
+ * 2. Check to see if the elements at the head and tail positions are equal
543
+ * across the windows. This will basically detect elements which haven't
544
+ * been added, removed, or changed position, i.e. if you had the following
545
+ * VNode elements (represented as HTML):
546
+ *
547
+ * oldVNode: `<div><p><span>HEY</span></p></div>`
548
+ * newVNode: `<div><p><span>THERE</span></p></div>`
549
+ *
550
+ * Then when comparing the children of the `<div>` tag we check the equality
551
+ * of the VNodes corresponding to the `<p>` tags and, since they are the
552
+ * same tag in the same position, we'd be able to avoid completely
553
+ * re-rendering the subtree under them with a new DOM element and would just
554
+ * call out to `patch` to handle reconciling their children and so on.
555
+ *
556
+ * 3. Check, for both windows, to see if the element at the beginning of the
557
+ * window corresponds to the element at the end of the other window. This is
558
+ * a heuristic which will let us identify _some_ situations in which
559
+ * elements have changed position, for instance it _should_ detect that the
560
+ * children nodes themselves have not changed but merely moved in the
561
+ * following example:
562
+ *
563
+ * oldVNode: `<div><element-one /><element-two /></div>`
564
+ * newVNode: `<div><element-two /><element-one /></div>`
565
+ *
566
+ * If we find cases like this then we also need to move the concrete DOM
567
+ * elements corresponding to the moved children to write the re-order to the
568
+ * DOM.
569
+ *
570
+ * 4. Finally, if VNodes have the `key` attribute set on them we check for any
571
+ * nodes in the old children which have the same key as the first element in
572
+ * our window on the new children. If we find such a node we handle calling
573
+ * out to `patch`, moving relevant DOM nodes, and so on, in accordance with
574
+ * what we find.
575
+ *
576
+ * Finally, once we've narrowed our 'windows' to the point that either of them
577
+ * collapse (i.e. they have length 0) we then handle any remaining VNode
578
+ * insertion or deletion that needs to happen to get a DOM state that correctly
579
+ * reflects the new child VNodes. If, for instance, after our window on the old
580
+ * children has collapsed we still have more nodes on the new children that
581
+ * we haven't dealt with yet then we need to add them, or if the new children
582
+ * collapse but we still have unhandled _old_ children then we need to make
583
+ * sure the corresponding DOM nodes are removed.
584
+ *
585
+ * @param parentElm the node into which the parent VNode is rendered
586
+ * @param oldCh the old children of the parent node
587
+ * @param newVNode the new VNode which will replace the parent
588
+ * @param newCh the new children of the parent node
589
+ */
590
+ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
591
+ let oldStartIdx = 0;
592
+ let newStartIdx = 0;
593
+ let oldEndIdx = oldCh.length - 1;
594
+ let oldStartVnode = oldCh[0];
595
+ let oldEndVnode = oldCh[oldEndIdx];
596
+ let newEndIdx = newCh.length - 1;
597
+ let newStartVnode = newCh[0];
598
+ let newEndVnode = newCh[newEndIdx];
599
+ let node;
600
+ while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
601
+ if (oldStartVnode == null) {
602
+ // VNode might have been moved left
603
+ oldStartVnode = oldCh[++oldStartIdx];
604
+ }
605
+ else if (oldEndVnode == null) {
606
+ oldEndVnode = oldCh[--oldEndIdx];
607
+ }
608
+ else if (newStartVnode == null) {
609
+ newStartVnode = newCh[++newStartIdx];
610
+ }
611
+ else if (newEndVnode == null) {
612
+ newEndVnode = newCh[--newEndIdx];
613
+ }
614
+ else if (isSameVnode(oldStartVnode, newStartVnode)) {
615
+ // if the start nodes are the same then we should patch the new VNode
616
+ // onto the old one, and increment our `newStartIdx` and `oldStartIdx`
617
+ // indices to reflect that. We don't need to move any DOM Nodes around
618
+ // since things are matched up in order.
619
+ patch(oldStartVnode, newStartVnode);
620
+ oldStartVnode = oldCh[++oldStartIdx];
621
+ newStartVnode = newCh[++newStartIdx];
622
+ }
623
+ else if (isSameVnode(oldEndVnode, newEndVnode)) {
624
+ // likewise, if the end nodes are the same we patch new onto old and
625
+ // decrement our end indices, and also likewise in this case we don't
626
+ // need to move any DOM Nodes.
627
+ patch(oldEndVnode, newEndVnode);
628
+ oldEndVnode = oldCh[--oldEndIdx];
629
+ newEndVnode = newCh[--newEndIdx];
630
+ }
631
+ else if (isSameVnode(oldStartVnode, newEndVnode)) {
632
+ patch(oldStartVnode, newEndVnode);
633
+ // We need to move the element for `oldStartVnode` into a position which
634
+ // will be appropriate for `newEndVnode`. For this we can use
635
+ // `.insertBefore` and `oldEndVnode.$elm$.nextSibling`. If there is a
636
+ // sibling for `oldEndVnode.$elm$` then we want to move the DOM node for
637
+ // `oldStartVnode` between `oldEndVnode` and it's sibling, like so:
638
+ //
639
+ // <old-start-node />
640
+ // <some-intervening-node />
641
+ // <old-end-node />
642
+ // <!-- -> <-- `oldStartVnode.$elm$` should be inserted here
643
+ // <next-sibling />
644
+ //
645
+ // If instead `oldEndVnode.$elm$` has no sibling then we just want to put
646
+ // the node for `oldStartVnode` at the end of the children of
647
+ // `parentElm`. Luckily, `Node.nextSibling` will return `null` if there
648
+ // aren't any siblings, and passing `null` to `Node.insertBefore` will
649
+ // append it to the children of the parent element.
650
+ parentElm.insertBefore(oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
651
+ oldStartVnode = oldCh[++oldStartIdx];
652
+ newEndVnode = newCh[--newEndIdx];
653
+ }
654
+ else if (isSameVnode(oldEndVnode, newStartVnode)) {
655
+ patch(oldEndVnode, newStartVnode);
656
+ // We've already checked above if `oldStartVnode` and `newStartVnode` are
657
+ // the same node, so since we're here we know that they are not. Thus we
658
+ // can move the element for `oldEndVnode` _before_ the element for
659
+ // `oldStartVnode`, leaving `oldStartVnode` to be reconciled in the
660
+ // future.
661
+ parentElm.insertBefore(oldEndVnode.$elm$, oldStartVnode.$elm$);
662
+ oldEndVnode = oldCh[--oldEndIdx];
663
+ newStartVnode = newCh[++newStartIdx];
664
+ }
665
+ else {
666
+ {
667
+ // We either didn't find an element in the old children that matches
668
+ // the key of the first new child OR the build is not using `key`
669
+ // attributes at all. In either case we need to create a new element
670
+ // for the new node.
671
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx);
672
+ newStartVnode = newCh[++newStartIdx];
673
+ }
674
+ if (node) {
675
+ // if we created a new node then handle inserting it to the DOM
676
+ {
677
+ oldStartVnode.$elm$.parentNode.insertBefore(node, oldStartVnode.$elm$);
678
+ }
679
+ }
680
+ }
681
+ }
682
+ if (oldStartIdx > oldEndIdx) {
683
+ // we have some more new nodes to add which don't match up with old nodes
684
+ addVnodes(parentElm, newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$, newVNode, newCh, newStartIdx, newEndIdx);
685
+ }
686
+ else if (newStartIdx > newEndIdx) {
687
+ // there are nodes in the `oldCh` array which no longer correspond to nodes
688
+ // in the new array, so lets remove them (which entails cleaning up the
689
+ // relevant DOM nodes)
690
+ removeVnodes(oldCh, oldStartIdx, oldEndIdx);
691
+ }
692
+ };
693
+ /**
694
+ * Compare two VNodes to determine if they are the same
695
+ *
696
+ * **NB**: This function is an equality _heuristic_ based on the available
697
+ * information set on the two VNodes and can be misleading under certain
698
+ * circumstances. In particular, if the two nodes do not have `key` attrs
699
+ * (available under `$key$` on VNodes) then the function falls back on merely
700
+ * checking that they have the same tag.
701
+ *
702
+ * So, in other words, if `key` attrs are not set on VNodes which may be
703
+ * changing order within a `children` array or something along those lines then
704
+ * we could obtain a false negative and then have to do needless re-rendering
705
+ * (i.e. we'd say two VNodes aren't equal when in fact they should be).
706
+ *
707
+ * @param leftVNode the first VNode to check
708
+ * @param rightVNode the second VNode to check
709
+ * @returns whether they're equal or not
710
+ */
711
+ const isSameVnode = (leftVNode, rightVNode) => {
712
+ // compare if two vnode to see if they're "technically" the same
713
+ // need to have the same element tag, and same key to be the same
714
+ if (leftVNode.$tag$ === rightVNode.$tag$) {
715
+ return true;
716
+ }
717
+ return false;
718
+ };
719
+ /**
720
+ * Handle reconciling an outdated VNode with a new one which corresponds to
721
+ * it. This function handles flushing updates to the DOM and reconciling the
722
+ * children of the two nodes (if any).
723
+ *
724
+ * @param oldVNode an old VNode whose DOM element and children we want to update
725
+ * @param newVNode a new VNode representing an updated version of the old one
726
+ */
727
+ const patch = (oldVNode, newVNode) => {
728
+ const elm = (newVNode.$elm$ = oldVNode.$elm$);
729
+ const oldChildren = oldVNode.$children$;
730
+ const newChildren = newVNode.$children$;
731
+ const tag = newVNode.$tag$;
732
+ const text = newVNode.$text$;
733
+ if (text === null) {
734
+ {
735
+ // test if we're rendering an svg element, or still rendering nodes inside of one
736
+ // only add this to the when the compiler sees we're using an svg somewhere
737
+ isSvgMode = tag === 'svg' ? true : tag === 'foreignObject' ? false : isSvgMode;
738
+ }
739
+ {
740
+ if (tag === 'slot')
741
+ ;
742
+ else {
743
+ // either this is the first render of an element OR it's an update
744
+ // AND we already know it's possible it could have changed
745
+ // this updates the element's css classes, attrs, props, listeners, etc.
746
+ updateElement(oldVNode, newVNode, isSvgMode);
747
+ }
748
+ }
749
+ if (oldChildren !== null && newChildren !== null) {
750
+ // looks like there's child vnodes for both the old and new vnodes
751
+ // so we need to call `updateChildren` to reconcile them
752
+ updateChildren(elm, oldChildren, newVNode, newChildren);
753
+ }
754
+ else if (newChildren !== null) {
755
+ // no old child vnodes, but there are new child vnodes to add
756
+ if (oldVNode.$text$ !== null) {
757
+ // the old vnode was text, so be sure to clear it out
758
+ elm.textContent = '';
759
+ }
760
+ // add the new vnode children
761
+ addVnodes(elm, null, newVNode, newChildren, 0, newChildren.length - 1);
762
+ }
763
+ else if (oldChildren !== null) {
764
+ // no new child vnodes, but there are old child vnodes to remove
765
+ removeVnodes(oldChildren, 0, oldChildren.length - 1);
766
+ }
767
+ if (isSvgMode && tag === 'svg') {
768
+ isSvgMode = false;
769
+ }
770
+ }
771
+ else if (oldVNode.$text$ !== text) {
772
+ // update the text content for the text only vnode
773
+ // and also only if the text is different than before
774
+ elm.data = text;
775
+ }
776
+ };
777
+ const callNodeRefs = (vNode) => {
778
+ {
779
+ vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
780
+ vNode.$children$ && vNode.$children$.map(callNodeRefs);
781
+ }
782
+ };
783
+ /**
784
+ * The main entry point for Stencil's virtual DOM-based rendering engine
785
+ *
786
+ * Given a {@link d.HostRef} container and some virtual DOM nodes, this
787
+ * function will handle creating a virtual DOM tree with a single root, patching
788
+ * the current virtual DOM tree onto an old one (if any), dealing with slot
789
+ * relocation, and reflecting attributes.
790
+ *
791
+ * @param hostRef data needed to root and render the virtual DOM tree, such as
792
+ * the DOM node into which it should be rendered.
793
+ * @param renderFnResults the virtual DOM nodes to be rendered
794
+ */
795
+ const renderVdom = (hostRef, renderFnResults) => {
796
+ const hostElm = hostRef.$hostElement$;
797
+ const cmpMeta = hostRef.$cmpMeta$;
798
+ const oldVNode = hostRef.$vnode$ || newVNode(null, null);
799
+ const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
800
+ hostTagName = hostElm.tagName;
801
+ if (cmpMeta.$attrsToReflect$) {
802
+ rootVnode.$attrs$ = rootVnode.$attrs$ || {};
803
+ cmpMeta.$attrsToReflect$.map(([propName, attribute]) => (rootVnode.$attrs$[attribute] = hostElm[propName]));
804
+ }
805
+ rootVnode.$tag$ = null;
806
+ rootVnode.$flags$ |= 4 /* VNODE_FLAGS.isHost */;
807
+ hostRef.$vnode$ = rootVnode;
808
+ rootVnode.$elm$ = oldVNode.$elm$ = (hostElm.shadowRoot || hostElm );
809
+ {
810
+ scopeId = hostElm['s-sc'];
811
+ }
812
+ // synchronous patch
813
+ patch(oldVNode, rootVnode);
814
+ };
815
+ const attachToAncestor = (hostRef, ancestorComponent) => {
816
+ if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
817
+ ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
818
+ }
819
+ };
820
+ const scheduleUpdate = (hostRef, isInitialLoad) => {
821
+ {
822
+ hostRef.$flags$ |= 16 /* HOST_FLAGS.isQueuedForUpdate */;
823
+ }
824
+ if (hostRef.$flags$ & 4 /* HOST_FLAGS.isWaitingForChildren */) {
825
+ hostRef.$flags$ |= 512 /* HOST_FLAGS.needsRerender */;
826
+ return;
827
+ }
828
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$);
829
+ // there is no ancestor component or the ancestor component
830
+ // has already fired off its lifecycle update then
831
+ // fire off the initial update
832
+ const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
833
+ return writeTask(dispatch) ;
834
+ };
835
+ const dispatchHooks = (hostRef, isInitialLoad) => {
836
+ const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
837
+ const instance = hostRef.$lazyInstance$ ;
838
+ let promise;
839
+ if (isInitialLoad) {
840
+ {
841
+ promise = safeCall(instance, 'componentWillLoad');
842
+ }
843
+ }
844
+ endSchedule();
845
+ return then(promise, () => updateComponent(hostRef, instance, isInitialLoad));
846
+ };
847
+ const updateComponent = async (hostRef, instance, isInitialLoad) => {
848
+ // updateComponent
849
+ const elm = hostRef.$hostElement$;
850
+ const endUpdate = createTime('update', hostRef.$cmpMeta$.$tagName$);
851
+ const rc = elm['s-rc'];
852
+ if (isInitialLoad) {
853
+ // DOM WRITE!
854
+ attachStyles(hostRef);
855
+ }
856
+ const endRender = createTime('render', hostRef.$cmpMeta$.$tagName$);
857
+ {
858
+ callRender(hostRef, instance);
859
+ }
860
+ if (rc) {
861
+ // ok, so turns out there are some child host elements
862
+ // waiting on this parent element to load
863
+ // let's fire off all update callbacks waiting
864
+ rc.map((cb) => cb());
865
+ elm['s-rc'] = undefined;
866
+ }
867
+ endRender();
868
+ endUpdate();
869
+ {
870
+ const childrenPromises = elm['s-p'];
871
+ const postUpdate = () => postUpdateComponent(hostRef);
872
+ if (childrenPromises.length === 0) {
873
+ postUpdate();
874
+ }
875
+ else {
876
+ Promise.all(childrenPromises).then(postUpdate);
877
+ hostRef.$flags$ |= 4 /* HOST_FLAGS.isWaitingForChildren */;
878
+ childrenPromises.length = 0;
879
+ }
880
+ }
881
+ };
882
+ const callRender = (hostRef, instance, elm) => {
883
+ try {
884
+ instance = instance.render() ;
885
+ {
886
+ hostRef.$flags$ &= ~16 /* HOST_FLAGS.isQueuedForUpdate */;
887
+ }
888
+ {
889
+ hostRef.$flags$ |= 2 /* HOST_FLAGS.hasRendered */;
890
+ }
891
+ {
892
+ {
893
+ // looks like we've got child nodes to render into this host element
894
+ // or we need to update the css class/attrs on the host element
895
+ // DOM WRITE!
896
+ {
897
+ renderVdom(hostRef, instance);
898
+ }
899
+ }
900
+ }
901
+ }
902
+ catch (e) {
903
+ consoleError(e, hostRef.$hostElement$);
904
+ }
905
+ return null;
906
+ };
907
+ const postUpdateComponent = (hostRef) => {
908
+ const tagName = hostRef.$cmpMeta$.$tagName$;
909
+ const elm = hostRef.$hostElement$;
910
+ const endPostUpdate = createTime('postUpdate', tagName);
911
+ const instance = hostRef.$lazyInstance$ ;
912
+ const ancestorComponent = hostRef.$ancestorComponent$;
913
+ if (!(hostRef.$flags$ & 64 /* HOST_FLAGS.hasLoadedComponent */)) {
914
+ hostRef.$flags$ |= 64 /* HOST_FLAGS.hasLoadedComponent */;
915
+ {
916
+ // DOM WRITE!
917
+ addHydratedFlag(elm);
918
+ }
919
+ {
920
+ safeCall(instance, 'componentDidLoad');
921
+ }
922
+ endPostUpdate();
923
+ {
924
+ hostRef.$onReadyResolve$(elm);
925
+ if (!ancestorComponent) {
926
+ appDidLoad();
927
+ }
928
+ }
929
+ }
930
+ else {
931
+ endPostUpdate();
932
+ }
933
+ // load events fire from bottom to top
934
+ // the deepest elements load first then bubbles up
935
+ {
936
+ if (hostRef.$onRenderResolve$) {
937
+ hostRef.$onRenderResolve$();
938
+ hostRef.$onRenderResolve$ = undefined;
939
+ }
940
+ if (hostRef.$flags$ & 512 /* HOST_FLAGS.needsRerender */) {
941
+ nextTick(() => scheduleUpdate(hostRef, false));
942
+ }
943
+ hostRef.$flags$ &= ~(4 /* HOST_FLAGS.isWaitingForChildren */ | 512 /* HOST_FLAGS.needsRerender */);
944
+ }
945
+ // ( •_•)
946
+ // ( •_•)>⌐■-■
947
+ // (⌐■_■)
948
+ };
949
+ const appDidLoad = (who) => {
950
+ // on appload
951
+ // we have finish the first big initial render
952
+ {
953
+ addHydratedFlag(doc.documentElement);
954
+ }
955
+ nextTick(() => emitEvent(win, 'appload', { detail: { namespace: NAMESPACE } }));
956
+ };
957
+ const safeCall = (instance, method, arg) => {
958
+ if (instance && instance[method]) {
959
+ try {
960
+ return instance[method](arg);
961
+ }
962
+ catch (e) {
963
+ consoleError(e);
964
+ }
965
+ }
966
+ return undefined;
967
+ };
968
+ const then = (promise, thenFn) => {
969
+ return promise && promise.then ? promise.then(thenFn) : thenFn();
970
+ };
971
+ const addHydratedFlag = (elm) => elm.classList.add('hydrated')
972
+ ;
973
+ const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
974
+ const setValue = (ref, propName, newVal, cmpMeta) => {
975
+ // check our new property value against our internal value
976
+ const hostRef = getHostRef(ref);
977
+ const oldVal = hostRef.$instanceValues$.get(propName);
978
+ const flags = hostRef.$flags$;
979
+ const instance = hostRef.$lazyInstance$ ;
980
+ newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
981
+ // explicitly check for NaN on both sides, as `NaN === NaN` is always false
982
+ const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
983
+ const didValueChange = newVal !== oldVal && !areBothNaN;
984
+ if ((!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) || oldVal === undefined) && didValueChange) {
985
+ // gadzooks! the property's value has changed!!
986
+ // set our new value!
987
+ hostRef.$instanceValues$.set(propName, newVal);
988
+ if (instance) {
989
+ if ((flags & (2 /* HOST_FLAGS.hasRendered */ | 16 /* HOST_FLAGS.isQueuedForUpdate */)) === 2 /* HOST_FLAGS.hasRendered */) {
990
+ // looks like this value actually changed, so we've got work to do!
991
+ // but only if we've already rendered, otherwise just chill out
992
+ // queue that we need to do an update, but don't worry about queuing
993
+ // up millions cuz this function ensures it only runs once
994
+ scheduleUpdate(hostRef, false);
995
+ }
996
+ }
997
+ }
998
+ };
999
+ /**
1000
+ * Attach a series of runtime constructs to a compiled Stencil component
1001
+ * constructor, including getters and setters for the `@Prop` and `@State`
1002
+ * decorators, callbacks for when attributes change, and so on.
1003
+ *
1004
+ * @param Cstr the constructor for a component that we need to process
1005
+ * @param cmpMeta metadata collected previously about the component
1006
+ * @param flags a number used to store a series of bit flags
1007
+ * @returns a reference to the same constructor passed in (but now mutated)
1008
+ */
1009
+ const proxyComponent = (Cstr, cmpMeta, flags) => {
1010
+ if (cmpMeta.$members$) {
1011
+ // It's better to have a const than two Object.entries()
1012
+ const members = Object.entries(cmpMeta.$members$);
1013
+ const prototype = Cstr.prototype;
1014
+ members.map(([memberName, [memberFlags]]) => {
1015
+ if ((memberFlags & 31 /* MEMBER_FLAGS.Prop */ ||
1016
+ ((flags & 2 /* PROXY_FLAGS.proxyState */) && memberFlags & 32 /* MEMBER_FLAGS.State */))) {
1017
+ // proxyComponent - prop
1018
+ Object.defineProperty(prototype, memberName, {
1019
+ get() {
1020
+ // proxyComponent, get value
1021
+ return getValue(this, memberName);
1022
+ },
1023
+ set(newValue) {
1024
+ // proxyComponent, set value
1025
+ setValue(this, memberName, newValue, cmpMeta);
1026
+ },
1027
+ configurable: true,
1028
+ enumerable: true,
1029
+ });
1030
+ }
1031
+ });
1032
+ if ((flags & 1 /* PROXY_FLAGS.isElementConstructor */)) {
1033
+ const attrNameToPropName = new Map();
1034
+ prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
1035
+ plt.jmp(() => {
1036
+ const propName = attrNameToPropName.get(attrName);
1037
+ // In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
1038
+ // in the case where an attribute was set inline.
1039
+ // ```html
1040
+ // <my-component some-attribute="some-value"></my-component>
1041
+ // ```
1042
+ //
1043
+ // There is an edge case where a developer sets the attribute inline on a custom element and then
1044
+ // programmatically changes it before it has been upgraded as shown below:
1045
+ //
1046
+ // ```html
1047
+ // <!-- this component has _not_ been upgraded yet -->
1048
+ // <my-component id="test" some-attribute="some-value"></my-component>
1049
+ // <script>
1050
+ // // grab non-upgraded component
1051
+ // el = document.querySelector("#test");
1052
+ // el.someAttribute = "another-value";
1053
+ // // upgrade component
1054
+ // customElements.define('my-component', MyComponent);
1055
+ // </script>
1056
+ // ```
1057
+ // In this case if we do not unshadow here and use the value of the shadowing property, attributeChangedCallback
1058
+ // will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
1059
+ // to the value that was set inline i.e. "some-value" from above example. When
1060
+ // the connectedCallback attempts to unshadow it will use "some-value" as the initial value rather than "another-value"
1061
+ //
1062
+ // The case where the attribute was NOT set inline but was not set programmatically shall be handled/unshadowed
1063
+ // by connectedCallback as this attributeChangedCallback will not fire.
1064
+ //
1065
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1066
+ //
1067
+ // TODO(STENCIL-16) we should think about whether or not we actually want to be reflecting the attributes to
1068
+ // properties here given that this goes against best practices outlined here
1069
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#avoid-reentrancy
1070
+ if (this.hasOwnProperty(propName)) {
1071
+ newValue = this[propName];
1072
+ delete this[propName];
1073
+ }
1074
+ else if (prototype.hasOwnProperty(propName) &&
1075
+ typeof this[propName] === 'number' &&
1076
+ this[propName] == newValue) {
1077
+ // if the propName exists on the prototype of `Cstr`, this update may be a result of Stencil using native
1078
+ // APIs to reflect props as attributes. Calls to `setAttribute(someElement, propName)` will result in
1079
+ // `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
1080
+ return;
1081
+ }
1082
+ this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
1083
+ });
1084
+ };
1085
+ // create an array of attributes to observe
1086
+ // and also create a map of html attribute name to js property name
1087
+ Cstr.observedAttributes = members
1088
+ .filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */) // filter to only keep props that should match attributes
1089
+ .map(([propName, m]) => {
1090
+ const attrName = m[1] || propName;
1091
+ attrNameToPropName.set(attrName, propName);
1092
+ if (m[0] & 512 /* MEMBER_FLAGS.ReflectAttr */) {
1093
+ cmpMeta.$attrsToReflect$.push([propName, attrName]);
1094
+ }
1095
+ return attrName;
1096
+ });
1097
+ }
1098
+ }
1099
+ return Cstr;
1100
+ };
1101
+ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
1102
+ // initializeComponent
1103
+ if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
1104
+ {
1105
+ // we haven't initialized this element yet
1106
+ hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
1107
+ // lazy loaded components
1108
+ // request the component's implementation to be
1109
+ // wired up with the host element
1110
+ Cstr = loadModule(cmpMeta);
1111
+ if (Cstr.then) {
1112
+ // Await creates a micro-task avoid if possible
1113
+ const endLoad = uniqueTime();
1114
+ Cstr = await Cstr;
1115
+ endLoad();
1116
+ }
1117
+ if (!Cstr.isProxied) {
1118
+ proxyComponent(Cstr, cmpMeta, 2 /* PROXY_FLAGS.proxyState */);
1119
+ Cstr.isProxied = true;
1120
+ }
1121
+ const endNewInstance = createTime('createInstance', cmpMeta.$tagName$);
1122
+ // ok, time to construct the instance
1123
+ // but let's keep track of when we start and stop
1124
+ // so that the getters/setters don't incorrectly step on data
1125
+ {
1126
+ hostRef.$flags$ |= 8 /* HOST_FLAGS.isConstructingInstance */;
1127
+ }
1128
+ // construct the lazy-loaded component implementation
1129
+ // passing the hostRef is very important during
1130
+ // construction in order to directly wire together the
1131
+ // host element and the lazy-loaded instance
1132
+ try {
1133
+ new Cstr(hostRef);
1134
+ }
1135
+ catch (e) {
1136
+ consoleError(e);
1137
+ }
1138
+ {
1139
+ hostRef.$flags$ &= ~8 /* HOST_FLAGS.isConstructingInstance */;
1140
+ }
1141
+ endNewInstance();
1142
+ fireConnectedCallback(hostRef.$lazyInstance$);
1143
+ }
1144
+ if (Cstr.style) {
1145
+ // this component has styles but we haven't registered them yet
1146
+ let style = Cstr.style;
1147
+ const scopeId = getScopeId(cmpMeta);
1148
+ if (!styles.has(scopeId)) {
1149
+ const endRegisterStyles = createTime('registerStyles', cmpMeta.$tagName$);
1150
+ registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */));
1151
+ endRegisterStyles();
1152
+ }
1153
+ }
1154
+ }
1155
+ // we've successfully created a lazy instance
1156
+ const ancestorComponent = hostRef.$ancestorComponent$;
1157
+ const schedule = () => scheduleUpdate(hostRef, true);
1158
+ if (ancestorComponent && ancestorComponent['s-rc']) {
1159
+ // this is the initial load and this component it has an ancestor component
1160
+ // but the ancestor component has NOT fired its will update lifecycle yet
1161
+ // so let's just cool our jets and wait for the ancestor to continue first
1162
+ // this will get fired off when the ancestor component
1163
+ // finally gets around to rendering its lazy self
1164
+ // fire off the initial update
1165
+ ancestorComponent['s-rc'].push(schedule);
1166
+ }
1167
+ else {
1168
+ schedule();
1169
+ }
1170
+ };
1171
+ const fireConnectedCallback = (instance) => {
1172
+ {
1173
+ safeCall(instance, 'connectedCallback');
1174
+ }
1175
+ };
1176
+ const connectedCallback = (elm) => {
1177
+ if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1178
+ const hostRef = getHostRef(elm);
1179
+ const cmpMeta = hostRef.$cmpMeta$;
1180
+ const endConnected = createTime('connectedCallback', cmpMeta.$tagName$);
1181
+ if (!(hostRef.$flags$ & 1 /* HOST_FLAGS.hasConnected */)) {
1182
+ // first time this component has connected
1183
+ hostRef.$flags$ |= 1 /* HOST_FLAGS.hasConnected */;
1184
+ {
1185
+ // find the first ancestor component (if there is one) and register
1186
+ // this component as one of the actively loading child components for its ancestor
1187
+ let ancestorComponent = elm;
1188
+ while ((ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host)) {
1189
+ // climb up the ancestors looking for the first
1190
+ // component that hasn't finished its lifecycle update yet
1191
+ if (ancestorComponent['s-p']) {
1192
+ // we found this components first ancestor component
1193
+ // keep a reference to this component's ancestor component
1194
+ attachToAncestor(hostRef, (hostRef.$ancestorComponent$ = ancestorComponent));
1195
+ break;
1196
+ }
1197
+ }
1198
+ }
1199
+ // Lazy properties
1200
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1201
+ if (cmpMeta.$members$) {
1202
+ Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1203
+ if (memberFlags & 31 /* MEMBER_FLAGS.Prop */ && elm.hasOwnProperty(memberName)) {
1204
+ const value = elm[memberName];
1205
+ delete elm[memberName];
1206
+ elm[memberName] = value;
1207
+ }
1208
+ });
1209
+ }
1210
+ {
1211
+ initializeComponent(elm, hostRef, cmpMeta);
1212
+ }
1213
+ }
1214
+ else {
1215
+ // fire off connectedCallback() on component instance
1216
+ fireConnectedCallback(hostRef.$lazyInstance$);
1217
+ }
1218
+ endConnected();
1219
+ }
1220
+ };
1221
+ const disconnectedCallback = (elm) => {
1222
+ if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1223
+ const hostRef = getHostRef(elm);
1224
+ const instance = hostRef.$lazyInstance$ ;
1225
+ {
1226
+ safeCall(instance, 'disconnectedCallback');
1227
+ }
1228
+ }
1229
+ };
1230
+ const bootstrapLazy = (lazyBundles, options = {}) => {
1231
+ var _a;
1232
+ const endBootstrap = createTime();
1233
+ const cmpTags = [];
1234
+ const exclude = options.exclude || [];
1235
+ const customElements = win.customElements;
1236
+ const head = doc.head;
1237
+ const metaCharset = /*@__PURE__*/ head.querySelector('meta[charset]');
1238
+ const visibilityStyle = /*@__PURE__*/ doc.createElement('style');
1239
+ const deferredConnectedCallbacks = [];
1240
+ let appLoadFallback;
1241
+ let isBootstrapping = true;
1242
+ Object.assign(plt, options);
1243
+ plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
1244
+ lazyBundles.map((lazyBundle) => {
1245
+ lazyBundle[1].map((compactMeta) => {
1246
+ const cmpMeta = {
1247
+ $flags$: compactMeta[0],
1248
+ $tagName$: compactMeta[1],
1249
+ $members$: compactMeta[2],
1250
+ $listeners$: compactMeta[3],
1251
+ };
1252
+ {
1253
+ cmpMeta.$members$ = compactMeta[2];
1254
+ }
1255
+ {
1256
+ cmpMeta.$attrsToReflect$ = [];
1257
+ }
1258
+ const tagName = cmpMeta.$tagName$;
1259
+ const HostElement = class extends HTMLElement {
1260
+ // StencilLazyHost
1261
+ constructor(self) {
1262
+ // @ts-ignore
1263
+ super(self);
1264
+ self = this;
1265
+ registerHost(self, cmpMeta);
1266
+ if (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) {
1267
+ // this component is using shadow dom
1268
+ // and this browser supports shadow dom
1269
+ // add the read-only property "shadowRoot" to the host element
1270
+ // adding the shadow root build conditionals to minimize runtime
1271
+ {
1272
+ {
1273
+ self.attachShadow({ mode: 'open' });
1274
+ }
1275
+ }
1276
+ }
1277
+ }
1278
+ connectedCallback() {
1279
+ if (appLoadFallback) {
1280
+ clearTimeout(appLoadFallback);
1281
+ appLoadFallback = null;
1282
+ }
1283
+ if (isBootstrapping) {
1284
+ // connectedCallback will be processed once all components have been registered
1285
+ deferredConnectedCallbacks.push(this);
1286
+ }
1287
+ else {
1288
+ plt.jmp(() => connectedCallback(this));
1289
+ }
1290
+ }
1291
+ disconnectedCallback() {
1292
+ plt.jmp(() => disconnectedCallback(this));
1293
+ }
1294
+ componentOnReady() {
1295
+ return getHostRef(this).$onReadyPromise$;
1296
+ }
1297
+ };
1298
+ cmpMeta.$lazyBundleId$ = lazyBundle[0];
1299
+ if (!exclude.includes(tagName) && !customElements.get(tagName)) {
1300
+ cmpTags.push(tagName);
1301
+ customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* PROXY_FLAGS.isElementConstructor */));
1302
+ }
1303
+ });
1304
+ });
1305
+ {
1306
+ visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
1307
+ visibilityStyle.setAttribute('data-styles', '');
1308
+ // Apply CSP nonce to the style tag if it exists
1309
+ const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
1310
+ if (nonce != null) {
1311
+ visibilityStyle.setAttribute('nonce', nonce);
1312
+ }
1313
+ head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
1314
+ }
1315
+ // Process deferred connectedCallbacks now all components have been registered
1316
+ isBootstrapping = false;
1317
+ if (deferredConnectedCallbacks.length) {
1318
+ deferredConnectedCallbacks.map((host) => host.connectedCallback());
1319
+ }
1320
+ else {
1321
+ {
1322
+ plt.jmp(() => (appLoadFallback = setTimeout(appDidLoad, 30)));
1323
+ }
1324
+ }
1325
+ // Fallback appLoad event
1326
+ endBootstrap();
1327
+ };
1328
+ /**
1329
+ * Assigns the given value to the nonce property on the runtime platform object.
1330
+ * During runtime, this value is used to set the nonce attribute on all dynamically created script and style tags.
1331
+ * @param nonce The value to be assigned to the platform nonce property.
1332
+ * @returns void
1333
+ */
1334
+ const setNonce = (nonce) => (plt.$nonce$ = nonce);
1335
+ const hostRefs = /*@__PURE__*/ new WeakMap();
1336
+ const getHostRef = (ref) => hostRefs.get(ref);
1337
+ const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
1338
+ const registerHost = (elm, cmpMeta) => {
1339
+ const hostRef = {
1340
+ $flags$: 0,
1341
+ $hostElement$: elm,
1342
+ $cmpMeta$: cmpMeta,
1343
+ $instanceValues$: new Map(),
1344
+ };
1345
+ {
1346
+ hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
1347
+ elm['s-p'] = [];
1348
+ elm['s-rc'] = [];
1349
+ }
1350
+ return hostRefs.set(elm, hostRef);
1351
+ };
1352
+ const isMemberInElement = (elm, memberName) => memberName in elm;
1353
+ const consoleError = (e, el) => (0, console.error)(e, el);
1354
+ const cmpModules = /*@__PURE__*/ new Map();
1355
+ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1356
+ // loadModuleImport
1357
+ const exportName = cmpMeta.$tagName$.replace(/-/g, '_');
1358
+ const bundleId = cmpMeta.$lazyBundleId$;
1359
+ const module = cmpModules.get(bundleId) ;
1360
+ if (module) {
1361
+ return module[exportName];
1362
+ }
1363
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
1364
+ return import(
1365
+ /* @vite-ignore */
1366
+ /* webpackInclude: /\.entry\.js$/ */
1367
+ /* webpackExclude: /\.system\.entry\.js$/ */
1368
+ /* webpackMode: "lazy" */
1369
+ `./${bundleId}.entry.js${''}`).then((importedModule) => {
1370
+ {
1371
+ cmpModules.set(bundleId, importedModule);
1372
+ }
1373
+ return importedModule[exportName];
1374
+ }, consoleError);
1375
+ };
1376
+ const styles = /*@__PURE__*/ new Map();
1377
+ const win = typeof window !== 'undefined' ? window : {};
1378
+ const doc = win.document || { head: {} };
1379
+ const plt = {
1380
+ $flags$: 0,
1381
+ $resourcesUrl$: '',
1382
+ jmp: (h) => h(),
1383
+ raf: (h) => requestAnimationFrame(h),
1384
+ ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
1385
+ rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
1386
+ ce: (eventName, opts) => new CustomEvent(eventName, opts),
1387
+ };
1388
+ const promiseResolve = (v) => Promise.resolve(v);
1389
+ const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
1390
+ try {
1391
+ new CSSStyleSheet();
1392
+ return typeof new CSSStyleSheet().replaceSync === 'function';
1393
+ }
1394
+ catch (e) { }
1395
+ return false;
1396
+ })()
1397
+ ;
1398
+ const queueDomReads = [];
1399
+ const queueDomWrites = [];
1400
+ const queueTask = (queue, write) => (cb) => {
1401
+ queue.push(cb);
1402
+ if (!queuePending) {
1403
+ queuePending = true;
1404
+ if (write && plt.$flags$ & 4 /* PLATFORM_FLAGS.queueSync */) {
1405
+ nextTick(flush);
1406
+ }
1407
+ else {
1408
+ plt.raf(flush);
1409
+ }
1410
+ }
1411
+ };
1412
+ const consume = (queue) => {
1413
+ for (let i = 0; i < queue.length; i++) {
1414
+ try {
1415
+ queue[i](performance.now());
1416
+ }
1417
+ catch (e) {
1418
+ consoleError(e);
1419
+ }
1420
+ }
1421
+ queue.length = 0;
1422
+ };
1423
+ const flush = () => {
1424
+ // always force a bunch of medium callbacks to run, but still have
1425
+ // a throttle on how many can run in a certain time
1426
+ // DOM READS!!!
1427
+ consume(queueDomReads);
1428
+ // DOM WRITES!!!
1429
+ {
1430
+ consume(queueDomWrites);
1431
+ if ((queuePending = queueDomReads.length > 0)) {
1432
+ // still more to do yet, but we've run out of time
1433
+ // let's let this thing cool off and try again in the next tick
1434
+ plt.raf(flush);
1435
+ }
1436
+ }
1437
+ };
1438
+ const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
1439
+ const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
1440
+
1441
+ export { Host as H, bootstrapLazy as b, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };