pushfeedback 0.1.36 → 0.1.37

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,1547 @@
1
- 'use strict';const _0x211960=_0xfc52;(function(_0x34a961,_0x3a65af){const _0x481da0=_0xfc52,_0x3bd5a0=_0x34a961();while(!![]){try{const _0x26f40b=-parseInt(_0x481da0(0x28c))/0x1*(parseInt(_0x481da0(0x265))/0x2)+-parseInt(_0x481da0(0x267))/0x3*(-parseInt(_0x481da0(0x1f9))/0x4)+-parseInt(_0x481da0(0x19e))/0x5*(parseInt(_0x481da0(0x1ff))/0x6)+-parseInt(_0x481da0(0x232))/0x7*(parseInt(_0x481da0(0x1b7))/0x8)+parseInt(_0x481da0(0x20c))/0x9*(-parseInt(_0x481da0(0x237))/0xa)+-parseInt(_0x481da0(0x27b))/0xb*(parseInt(_0x481da0(0x271))/0xc)+-parseInt(_0x481da0(0x2a8))/0xd*(-parseInt(_0x481da0(0x211))/0xe);if(_0x26f40b===_0x3a65af)break;else _0x3bd5a0['push'](_0x3bd5a0['shift']());}catch(_0x3683c3){_0x3bd5a0['push'](_0x3bd5a0['shift']());}}}(_0x3cc7,0x63040));function _interopNamespace(_0x4973db){const _0x1e301a=_0xfc52,_0x3c01ab={'Zmatc':function(_0x121e69,_0x1802ca){return _0x121e69!==_0x1802ca;},'LTZnF':_0x1e301a(0x25e)};if(_0x4973db&&_0x4973db[_0x1e301a(0x282)])return _0x4973db;var _0x24c06f=Object[_0x1e301a(0x1fb)](null);return _0x4973db&&Object[_0x1e301a(0x259)](_0x4973db)[_0x1e301a(0x2ba)](function(_0x721771){const _0xadd856=_0x1e301a;if(_0x3c01ab[_0xadd856(0x1c1)](_0x721771,_0x3c01ab['LTZnF'])){var _0x436507=Object['getOwnPropertyDescriptor'](_0x4973db,_0x721771);Object[_0xadd856(0x1da)](_0x24c06f,_0x721771,_0x436507[_0xadd856(0x1be)]?_0x436507:{'enumerable':!![],'get':function(){return _0x4973db[_0x721771];}});}}),_0x24c06f[_0x3c01ab[_0x1e301a(0x2a0)]]=_0x4973db,Object[_0x1e301a(0x1cf)](_0x24c06f);}const NAMESPACE=_0x211960(0x1f3);let scopeId,hostTagName,isSvgMode=![],queuePending=![];const createTime=(_0xeb62a5,_0x5730af='')=>{{return()=>{return;};}},uniqueTime=(_0x83a0ad,_0x30f7e5)=>{{return()=>{return;};}},HYDRATED_CSS='{visibility:hidden}.hydrated{visibility:inherit}',EMPTY_OBJ={},SVG_NS='http://www.w3.org/2000/svg',HTML_NS=_0x211960(0x26f),isDef=_0x466014=>_0x466014!=null,isComplexType=_0x32eaff=>{const _0x130eda=_0x211960,_0x46d9e2={'iLAZP':function(_0x5a124b,_0x2f02fb){return _0x5a124b===_0x2f02fb;},'ONNAA':'object','JCsnm':function(_0x1d4ff2,_0x1a43b0){return _0x1d4ff2===_0x1a43b0;},'VCAvP':_0x130eda(0x250)};return _0x32eaff=typeof _0x32eaff,_0x46d9e2['iLAZP'](_0x32eaff,_0x46d9e2[_0x130eda(0x276)])||_0x46d9e2[_0x130eda(0x2a1)](_0x32eaff,_0x46d9e2[_0x130eda(0x251)]);};function queryNonceMetaTagContent(_0x5dbb2c){const _0x4332c5=_0x211960,_0xaf29f2={'Jrsgu':function(_0x34fe17,_0x53aac2){return _0x34fe17!==_0x53aac2;},'ceRqG':_0x4332c5(0x19d),'zRDDk':function(_0x2ad87b,_0xdc59f){return _0x2ad87b===_0xdc59f;},'ODLLI':_0x4332c5(0x19b),'cloez':function(_0x214d6e,_0x35a9b1){return _0x214d6e!==_0x35a9b1;}};var _0x36a9c1,_0x46782b,_0x2bde5a;return _0xaf29f2['Jrsgu'](_0x2bde5a=(_0x46782b=(_0x36a9c1=_0x5dbb2c[_0x4332c5(0x29c)])===null||_0x36a9c1===void 0x0?void 0x0:_0x36a9c1['querySelector'](_0xaf29f2[_0x4332c5(0x218)]))===null||_0xaf29f2['zRDDk'](_0x46782b,void 0x0)?void 0x0:_0x46782b[_0x4332c5(0x226)](_0xaf29f2[_0x4332c5(0x195)]),null)&&_0xaf29f2[_0x4332c5(0x221)](_0x2bde5a,void 0x0)?_0x2bde5a:undefined;}function _0xfc52(_0x5273c7,_0x69745e){const _0x3cc781=_0x3cc7();return _0xfc52=function(_0xfc522f,_0x3eccfe){_0xfc522f=_0xfc522f-0x195;let _0x1dc411=_0x3cc781[_0xfc522f];return _0x1dc411;},_0xfc52(_0x5273c7,_0x69745e);}const h=(_0x131f1b,_0x399c98,..._0x346a9e)=>{const _0x4b915d=_0x211960,_0x125fb3={'gzcHs':function(_0xb656db,_0x3ebb51){return _0xb656db(_0x3ebb51);},'xIxel':function(_0x46dc63,_0x445039){return _0x46dc63!=_0x445039;},'zfStu':function(_0x494dad,_0x46bac4){return _0x494dad!==_0x46bac4;},'EyrOu':_0x4b915d(0x1c9),'PVFZD':function(_0x1a3669,_0x167898){return _0x1a3669!==_0x167898;},'jTMIt':_0x4b915d(0x250),'DNdip':function(_0x5ef1d1,_0x9f748){return _0x5ef1d1(_0x9f748);},'NjvvL':function(_0x8066aa,_0x3923d2){return _0x8066aa&&_0x3923d2;},'GcfPd':function(_0xb7a891,_0x543b12){return _0xb7a891-_0x543b12;},'rhJVp':function(_0x4737b4,_0x563782,_0xe2e82e){return _0x4737b4(_0x563782,_0xe2e82e);},'idkox':_0x4b915d(0x198),'KMPtA':function(_0x422aa1,_0x4f1b64){return _0x422aa1>_0x4f1b64;}};let _0x4d4fac=null,_0x32658e=null,_0x2ad03c=![],_0x91a691=![];const _0x3c05d5=[],_0x300788=_0x3f923c=>{const _0xadbf78=_0x4b915d;for(let _0x38be88=0x0;_0x38be88<_0x3f923c['length'];_0x38be88++){_0x4d4fac=_0x3f923c[_0x38be88];if(Array[_0xadbf78(0x2a3)](_0x4d4fac))_0x125fb3[_0xadbf78(0x1d4)](_0x300788,_0x4d4fac);else _0x125fb3[_0xadbf78(0x29b)](_0x4d4fac,null)&&_0x125fb3['zfStu'](typeof _0x4d4fac,_0x125fb3[_0xadbf78(0x20d)])&&((_0x2ad03c=_0x125fb3['PVFZD'](typeof _0x131f1b,_0x125fb3[_0xadbf78(0x1ed)])&&!_0x125fb3[_0xadbf78(0x1dd)](isComplexType,_0x4d4fac))&&(_0x4d4fac=_0x125fb3[_0xadbf78(0x1d4)](String,_0x4d4fac)),_0x125fb3[_0xadbf78(0x1e9)](_0x2ad03c,_0x91a691)?_0x3c05d5[_0x125fb3['GcfPd'](_0x3c05d5[_0xadbf78(0x1fd)],0x1)]['$text$']+=_0x4d4fac:_0x3c05d5[_0xadbf78(0x228)](_0x2ad03c?_0x125fb3[_0xadbf78(0x2b2)](newVNode,null,_0x4d4fac):_0x4d4fac),_0x91a691=_0x2ad03c);}};_0x125fb3[_0x4b915d(0x1dd)](_0x300788,_0x346a9e);if(_0x399c98){_0x399c98[_0x4b915d(0x269)]&&(_0x32658e=_0x399c98['key']);{const _0x4fcb9e=_0x399c98[_0x4b915d(0x292)]||_0x399c98[_0x4b915d(0x260)];_0x4fcb9e&&(_0x399c98[_0x4b915d(0x260)]=_0x125fb3[_0x4b915d(0x28f)](typeof _0x4fcb9e,_0x125fb3[_0x4b915d(0x24c)])?_0x4fcb9e:Object['keys'](_0x4fcb9e)[_0x4b915d(0x1c6)](_0x1f257f=>_0x4fcb9e[_0x1f257f])[_0x4b915d(0x1f6)]('\x20'));}}const _0x5070ff=_0x125fb3[_0x4b915d(0x2b2)](newVNode,_0x131f1b,null);_0x5070ff[_0x4b915d(0x286)]=_0x399c98;_0x125fb3[_0x4b915d(0x2bd)](_0x3c05d5[_0x4b915d(0x1fd)],0x0)&&(_0x5070ff['$children$']=_0x3c05d5);{_0x5070ff[_0x4b915d(0x1bb)]=_0x32658e;}return _0x5070ff;},newVNode=(_0x45d6e0,_0x13f571)=>{const _0x1ffec6=_0x211960,_0x5b66ff={'$flags$':0x0,'$tag$':_0x45d6e0,'$text$':_0x13f571,'$elm$':null,'$children$':null};{_0x5b66ff[_0x1ffec6(0x286)]=null;}{_0x5b66ff[_0x1ffec6(0x1bb)]=null;}return _0x5b66ff;},Host={},isHost=_0x80735f=>_0x80735f&&_0x80735f[_0x211960(0x205)]===Host,parsePropertyValue=(_0x12789e,_0x3c2037)=>{const _0x38f611=_0x211960,_0x3b6486={'IgYYD':function(_0x3dc214,_0x70d824){return _0x3dc214!=_0x70d824;},'OvBFj':function(_0x31cc2f,_0x4f5d6b){return _0x31cc2f(_0x4f5d6b);},'XYQDQ':function(_0x3dd908,_0x598848){return _0x3dd908&_0x598848;},'IvsIK':function(_0x5e3cfb,_0x15e56a){return _0x5e3cfb===_0x15e56a;},'wYpDn':_0x38f611(0x27a),'neZkt':function(_0x5a2bdb,_0x25f861){return _0x5a2bdb===_0x25f861;}};if(_0x3b6486['IgYYD'](_0x12789e,null)&&!_0x3b6486[_0x38f611(0x289)](isComplexType,_0x12789e)){if(_0x3b6486[_0x38f611(0x284)](_0x3c2037,0x4))return _0x3b6486[_0x38f611(0x261)](_0x12789e,_0x3b6486[_0x38f611(0x242)])?![]:_0x3b6486['neZkt'](_0x12789e,'')||!!_0x12789e;if(_0x3b6486[_0x38f611(0x284)](_0x3c2037,0x1))return _0x3b6486[_0x38f611(0x289)](String,_0x12789e);return _0x12789e;}return _0x12789e;},getElement=_0x3e04f4=>getHostRef(_0x3e04f4)[_0x211960(0x229)],emitEvent=(_0x53cae1,_0x35481a,_0x41274a)=>{const _0x1b584a=_0x211960,_0x3545f2=plt['ce'](_0x35481a,_0x41274a);return _0x53cae1[_0x1b584a(0x1df)](_0x3545f2),_0x3545f2;},rootAppliedStyles=new WeakMap(),registerStyle=(_0x4dd65c,_0x23f15a,_0x26eb78)=>{const _0x587e11=_0x211960,_0x38180f={'mcXKO':function(_0xbdcedb,_0x33c772){return _0xbdcedb&&_0x33c772;},'oesXW':function(_0x379687,_0x56a183){return _0x379687===_0x56a183;},'ewIKT':_0x587e11(0x273)};let _0x52861e=styles[_0x587e11(0x1be)](_0x4dd65c);_0x38180f[_0x587e11(0x285)](supportsConstructableStylesheets,_0x26eb78)?(_0x52861e=_0x52861e||new CSSStyleSheet(),_0x38180f[_0x587e11(0x1a2)](typeof _0x52861e,_0x38180f[_0x587e11(0x268)])?_0x52861e=_0x23f15a:_0x52861e[_0x587e11(0x1d7)](_0x23f15a)):_0x52861e=_0x23f15a,styles[_0x587e11(0x1ba)](_0x4dd65c,_0x52861e);},addStyle=(_0x5703ae,_0x263496,_0x322a8f,_0x1f113a)=>{const _0x3edeca=_0x211960,_0x5501e7={'MFscq':function(_0x107c34,_0x454848){return _0x107c34===_0x454848;},'AwhVg':function(_0x21e511,_0x4e707){return _0x21e511===_0x4e707;},'EdCuP':_0x3edeca(0x273),'gYUqR':function(_0x53b81b,_0x22211b){return _0x53b81b!==_0x22211b;},'bqpeg':function(_0x36f995,_0x7e2e61){return _0x36f995(_0x7e2e61);},'tBKnX':function(_0x88e049,_0x4ff159){return _0x88e049!=_0x4ff159;},'cnxUL':_0x3edeca(0x219),'mFmyG':'link'};var _0x18f9a2;let _0x3d8e39=getScopeId(_0x263496);const _0x5d796f=styles[_0x3edeca(0x1be)](_0x3d8e39);_0x5703ae=_0x5501e7[_0x3edeca(0x1dc)](_0x5703ae['nodeType'],0xb)?_0x5703ae:doc;if(_0x5d796f){if(_0x5501e7['AwhVg'](typeof _0x5d796f,_0x5501e7[_0x3edeca(0x1e2)])){_0x5703ae=_0x5703ae['head']||_0x5703ae;let _0x3eb9cc=rootAppliedStyles['get'](_0x5703ae),_0x3f2c24;!_0x3eb9cc&&rootAppliedStyles['set'](_0x5703ae,_0x3eb9cc=new Set());if(!_0x3eb9cc['has'](_0x3d8e39)){{{_0x3f2c24=doc[_0x3edeca(0x222)]('style'),_0x3f2c24['innerHTML']=_0x5d796f;}const _0x49190a=_0x5501e7[_0x3edeca(0x1e4)](_0x18f9a2=plt['$nonce$'],null)&&_0x18f9a2!==void 0x0?_0x18f9a2:_0x5501e7[_0x3edeca(0x266)](queryNonceMetaTagContent,doc);_0x5501e7['tBKnX'](_0x49190a,null)&&_0x3f2c24[_0x3edeca(0x203)](_0x5501e7[_0x3edeca(0x1a0)],_0x49190a),_0x5703ae[_0x3edeca(0x27c)](_0x3f2c24,_0x5703ae[_0x3edeca(0x204)](_0x5501e7[_0x3edeca(0x288)]));}_0x3eb9cc&&_0x3eb9cc[_0x3edeca(0x254)](_0x3d8e39);}}else!_0x5703ae[_0x3edeca(0x235)]['includes'](_0x5d796f)&&(_0x5703ae[_0x3edeca(0x235)]=[..._0x5703ae[_0x3edeca(0x235)],_0x5d796f]);}return _0x3d8e39;},attachStyles=_0x24018a=>{const _0x202002=_0x211960,_0x58c113={'aXNug':function(_0x549dcc,_0x3fa964,_0x52bdfc){return _0x549dcc(_0x3fa964,_0x52bdfc);},'Euldz':'s-sc','DWypF':function(_0x31eb4a,_0x39a2a7){return _0x31eb4a+_0x39a2a7;},'LBURl':function(_0x43d51e){return _0x43d51e();}},_0x249011=_0x24018a[_0x202002(0x1aa)],_0x5d45c1=_0x24018a[_0x202002(0x229)],_0x310dd9=_0x249011['$flags$'],_0x376fa8=_0x58c113['aXNug'](createTime,_0x202002(0x233),_0x249011[_0x202002(0x1d6)]),_0x43d605=_0x58c113['aXNug'](addStyle,_0x5d45c1['shadowRoot']?_0x5d45c1['shadowRoot']:_0x5d45c1['getRootNode'](),_0x249011);_0x310dd9&0xa&&(_0x5d45c1[_0x58c113[_0x202002(0x1fe)]]=_0x43d605,_0x5d45c1['classList'][_0x202002(0x254)](_0x58c113[_0x202002(0x1e1)](_0x43d605,'-h'))),_0x58c113[_0x202002(0x19f)](_0x376fa8);},getScopeId=(_0x427a23,_0x44ae10)=>_0x211960(0x234)+_0x427a23[_0x211960(0x1d6)],setAccessor=(_0x1db603,_0xfaec8d,_0xfc9cf8,_0x1a84b7,_0x3219a4,_0x5dcc93)=>{const _0x249348=_0x211960,_0x4a8603={'gZtJa':function(_0x46f2ae,_0x4825a6){return _0x46f2ae!==_0x4825a6;},'mFiKd':function(_0x5d9064,_0x2aadd1,_0x3642da){return _0x5d9064(_0x2aadd1,_0x3642da);},'lNPtH':_0x249348(0x260),'wzcmg':function(_0x4edc1c,_0x3df4a1){return _0x4edc1c(_0x3df4a1);},'GmKMQ':function(_0x5bbc6c,_0x4c5c34){return _0x5bbc6c===_0x4c5c34;},'GULQC':_0x249348(0x209),'eNftC':function(_0x3ec6d5,_0x3ea031){return _0x3ec6d5!==_0x3ea031;},'eCces':function(_0x5e7d1e,_0x29791b){return _0x5e7d1e===_0x29791b;},'kaphD':_0x249348(0x269),'umDZS':_0x249348(0x1a8),'XxEWd':function(_0x4eac0b,_0x41b1a0){return _0x4eac0b(_0x41b1a0);},'goIAr':function(_0x5be48b,_0x467238){return _0x5be48b===_0x467238;},'rLnbr':function(_0x38f6ca,_0xc2d35d){return _0x38f6ca===_0xc2d35d;},'lfGNP':function(_0x2d3ab,_0x432b30){return _0x2d3ab+_0x432b30;},'XyBNR':function(_0x2552ae,_0x1c09d2){return _0x2552ae==_0x1c09d2;},'DhTSI':_0x249348(0x2b5),'AcpUT':function(_0x5001d4,_0x44eda1){return _0x5001d4==_0x44eda1;},'mbgNy':function(_0x4d966e,_0x37ac1d){return _0x4d966e!=_0x37ac1d;},'teQVb':function(_0x2169a5,_0x35e76f){return _0x2169a5==_0x35e76f;},'nMpZG':function(_0x40616d,_0x311a83){return _0x40616d===_0x311a83;},'LFQWF':function(_0x260427,_0x1d0f44){return _0x260427&_0x1d0f44;},'oLVig':function(_0x40693a,_0x418efe){return _0x40693a===_0x418efe;}};if(_0x4a8603[_0x249348(0x298)](_0xfc9cf8,_0x1a84b7)){let _0x47b6f2=_0x4a8603[_0x249348(0x24b)](isMemberInElement,_0x1db603,_0xfaec8d),_0x26fb0a=_0xfaec8d[_0x249348(0x262)]();if(_0xfaec8d===_0x4a8603[_0x249348(0x1c3)]){const _0x236114=_0x1db603[_0x249348(0x299)],_0x25f9a1=_0x4a8603[_0x249348(0x225)](parseClassList,_0xfc9cf8),_0x351da1=_0x4a8603[_0x249348(0x225)](parseClassList,_0x1a84b7);_0x236114[_0x249348(0x2c4)](..._0x25f9a1[_0x249348(0x1c6)](_0xb8bc9c=>_0xb8bc9c&&!_0x351da1['includes'](_0xb8bc9c))),_0x236114['add'](..._0x351da1[_0x249348(0x1c6)](_0x104777=>_0x104777&&!_0x25f9a1[_0x249348(0x2a5)](_0x104777)));}else{if(_0x4a8603[_0x249348(0x199)](_0xfaec8d,_0x4a8603['GULQC'])){{for(const _0xd10413 in _0xfc9cf8){(!_0x1a84b7||_0x1a84b7[_0xd10413]==null)&&(_0xd10413[_0x249348(0x2a5)]('-')?_0x1db603[_0x249348(0x209)][_0x249348(0x1d0)](_0xd10413):_0x1db603[_0x249348(0x209)][_0xd10413]='');}}for(const _0x4f2c34 in _0x1a84b7){(!_0xfc9cf8||_0x4a8603[_0x249348(0x1a7)](_0x1a84b7[_0x4f2c34],_0xfc9cf8[_0x4f2c34]))&&(_0x4f2c34[_0x249348(0x2a5)]('-')?_0x1db603[_0x249348(0x209)][_0x249348(0x253)](_0x4f2c34,_0x1a84b7[_0x4f2c34]):_0x1db603['style'][_0x4f2c34]=_0x1a84b7[_0x4f2c34]);}}else{if(_0x4a8603[_0x249348(0x2bf)](_0xfaec8d,_0x4a8603[_0x249348(0x224)]));else{if(_0x4a8603['GmKMQ'](_0xfaec8d,_0x4a8603[_0x249348(0x20e)]))_0x1a84b7&&_0x4a8603[_0x249348(0x26c)](_0x1a84b7,_0x1db603);else{if(!_0x47b6f2&&_0x4a8603['goIAr'](_0xfaec8d[0x0],'o')&&_0xfaec8d[0x1]==='n'){if(_0x4a8603[_0x249348(0x2b6)](_0xfaec8d[0x2],'-'))_0xfaec8d=_0xfaec8d[_0x249348(0x28e)](0x3);else _0x4a8603[_0x249348(0x24b)](isMemberInElement,win,_0x26fb0a)?_0xfaec8d=_0x26fb0a[_0x249348(0x28e)](0x2):_0xfaec8d=_0x4a8603[_0x249348(0x1c8)](_0x26fb0a[0x2],_0xfaec8d['slice'](0x3));_0xfc9cf8&&plt['rel'](_0x1db603,_0xfaec8d,_0xfc9cf8,![]),_0x1a84b7&&plt[_0x249348(0x1c0)](_0x1db603,_0xfaec8d,_0x1a84b7,![]);}else{const _0x1b5592=_0x4a8603['XxEWd'](isComplexType,_0x1a84b7);if((_0x47b6f2||_0x1b5592&&_0x4a8603[_0x249348(0x1a7)](_0x1a84b7,null))&&!_0x3219a4)try{if(!_0x1db603[_0x249348(0x26e)][_0x249348(0x2a5)]('-')){const _0x305d7f=_0x4a8603[_0x249348(0x1b8)](_0x1a84b7,null)?'':_0x1a84b7;if(_0xfaec8d===_0x4a8603[_0x249348(0x1ef)])_0x47b6f2=![];else(_0x4a8603[_0x249348(0x21b)](_0xfc9cf8,null)||_0x4a8603['mbgNy'](_0x1db603[_0xfaec8d],_0x305d7f))&&(_0x1db603[_0xfaec8d]=_0x305d7f);}else _0x1db603[_0xfaec8d]=_0x1a84b7;}catch(_0x81f98b){}if(_0x4a8603[_0x249348(0x19a)](_0x1a84b7,null)||_0x4a8603[_0x249348(0x2b6)](_0x1a84b7,![])){if(_0x1a84b7!==![]||_0x4a8603[_0x249348(0x24e)](_0x1db603[_0x249348(0x226)](_0xfaec8d),'')){_0x1db603[_0x249348(0x1b2)](_0xfaec8d);}}else{if((!_0x47b6f2||_0x4a8603[_0x249348(0x297)](_0x5dcc93,0x4)||_0x3219a4)&&!_0x1b5592){_0x1a84b7=_0x4a8603['oLVig'](_0x1a84b7,!![])?'':_0x1a84b7;{_0x1db603[_0x249348(0x203)](_0xfaec8d,_0x1a84b7);}}}}}}}}}},parseClassListRegex=/\s/,parseClassList=_0x38aaba=>!_0x38aaba?[]:_0x38aaba[_0x211960(0x1d8)](parseClassListRegex),updateElement=(_0x398b9d,_0x35d463,_0x246de1,_0x238cc6)=>{const _0x3f5126=_0x211960,_0x39cc91={'ocDRl':function(_0x25b8ee,_0x75a285){return _0x25b8ee===_0x75a285;},'dwjcv':function(_0x402c4f,_0x43378c){return _0x402c4f in _0x43378c;}},_0x189e48=_0x39cc91['ocDRl'](_0x35d463[_0x3f5126(0x26b)][_0x3f5126(0x1a9)],0xb)&&_0x35d463[_0x3f5126(0x26b)][_0x3f5126(0x1cd)]?_0x35d463['$elm$'][_0x3f5126(0x1cd)]:_0x35d463['$elm$'],_0x865826=_0x398b9d&&_0x398b9d['$attrs$']||EMPTY_OBJ,_0x3efb5f=_0x35d463[_0x3f5126(0x286)]||EMPTY_OBJ;{for(_0x238cc6 in _0x865826){!_0x39cc91['dwjcv'](_0x238cc6,_0x3efb5f)&&setAccessor(_0x189e48,_0x238cc6,_0x865826[_0x238cc6],undefined,_0x246de1,_0x35d463[_0x3f5126(0x2b4)]);}}for(_0x238cc6 in _0x3efb5f){setAccessor(_0x189e48,_0x238cc6,_0x865826[_0x238cc6],_0x3efb5f[_0x238cc6],_0x246de1,_0x35d463[_0x3f5126(0x2b4)]);}},createElm=(_0x9cabef,_0x59c2e3,_0x13a693,_0x5c42b4)=>{const _0x29d38a=_0x211960,_0x20f7e9={'nPCSi':function(_0x1cd11b,_0x1509a9){return _0x1cd11b!==_0x1509a9;},'YPNfh':function(_0x1fdf9a,_0x199c9d){return _0x1fdf9a===_0x199c9d;},'eVQYI':_0x29d38a(0x1e6),'moNJs':function(_0x3919ec,_0x5061df){return _0x3919ec===_0x5061df;},'dgrYr':_0x29d38a(0x1f8),'EUTSV':function(_0x20b796,_0x28201a){return _0x20b796(_0x28201a);},'KAXUj':_0x29d38a(0x1db),'bJvEB':function(_0x11a381,_0x160bb1){return _0x11a381<_0x160bb1;},'FpSNv':function(_0x58cbeb,_0x3da559,_0x2c015c,_0x30da42){return _0x58cbeb(_0x3da559,_0x2c015c,_0x30da42);},'stiMk':function(_0x3693b3,_0x19a43f,_0x5dff2a,_0x289eed){return _0x3693b3(_0x19a43f,_0x5dff2a,_0x289eed);}},_0xfa7d5a=_0x59c2e3[_0x29d38a(0x1cc)][_0x13a693];let _0x5517c8=0x0,_0x1f7f38,_0x35a4bf;if(_0x20f7e9[_0x29d38a(0x248)](_0xfa7d5a['$text$'],null))_0x1f7f38=_0xfa7d5a[_0x29d38a(0x26b)]=doc[_0x29d38a(0x29d)](_0xfa7d5a[_0x29d38a(0x1c7)]);else{const _0x42aa8a='4|3|6|5|1|2|0'['split']('|');let _0x227966=0x0;while(!![]){switch(_0x42aa8a[_0x227966++]){case'0':{if(_0x20f7e9[_0x29d38a(0x1e8)](_0xfa7d5a[_0x29d38a(0x205)],_0x20f7e9['eVQYI']))isSvgMode=![];else _0x20f7e9[_0x29d38a(0x1e3)](_0x1f7f38[_0x29d38a(0x26e)],_0x20f7e9[_0x29d38a(0x23e)])&&(isSvgMode=!![]);}continue;case'1':_0x20f7e9[_0x29d38a(0x1a3)](isDef,scopeId)&&_0x1f7f38[_0x20f7e9[_0x29d38a(0x258)]]!==scopeId&&_0x1f7f38['classList'][_0x29d38a(0x254)](_0x1f7f38[_0x20f7e9[_0x29d38a(0x258)]]=scopeId);continue;case'2':if(_0xfa7d5a[_0x29d38a(0x1cc)])for(_0x5517c8=0x0;_0x20f7e9[_0x29d38a(0x1de)](_0x5517c8,_0xfa7d5a['$children$']['length']);++_0x5517c8){_0x35a4bf=_0x20f7e9[_0x29d38a(0x290)](createElm,_0x9cabef,_0xfa7d5a,_0x5517c8),_0x35a4bf&&_0x1f7f38[_0x29d38a(0x287)](_0x35a4bf);}continue;case'3':_0x1f7f38=_0xfa7d5a['$elm$']=doc[_0x29d38a(0x1af)](isSvgMode?SVG_NS:HTML_NS,_0xfa7d5a[_0x29d38a(0x205)]);continue;case'4':!isSvgMode&&(isSvgMode=_0x20f7e9[_0x29d38a(0x1e3)](_0xfa7d5a[_0x29d38a(0x205)],_0x20f7e9['eVQYI']));continue;case'5':{_0x20f7e9['stiMk'](updateElement,null,_0xfa7d5a,isSvgMode);}continue;case'6':isSvgMode&&_0x20f7e9['YPNfh'](_0xfa7d5a[_0x29d38a(0x205)],'foreignObject')&&(isSvgMode=![]);continue;}break;}}return _0x1f7f38;},addVnodes=(_0x1f5953,_0x470a14,_0x4da5a2,_0x2c0656,_0x2843bf,_0x2df708)=>{const _0x35b8f2=_0x211960,_0x273ce2={'baaDQ':function(_0x3a5e3b,_0x393447){return _0x3a5e3b===_0x393447;},'wSSfp':function(_0x42cde5,_0x5cf59c){return _0x42cde5<=_0x5cf59c;},'cTKDL':function(_0x53a691,_0x3a0c60,_0x5b559e,_0x1fe272){return _0x53a691(_0x3a0c60,_0x5b559e,_0x1fe272);}};let _0x447786=_0x1f5953,_0x352a95;_0x447786[_0x35b8f2(0x2ab)]&&_0x273ce2['baaDQ'](_0x447786[_0x35b8f2(0x26e)],hostTagName)&&(_0x447786=_0x447786[_0x35b8f2(0x2ab)]);for(;_0x273ce2[_0x35b8f2(0x1d9)](_0x2843bf,_0x2df708);++_0x2843bf){_0x2c0656[_0x2843bf]&&(_0x352a95=_0x273ce2['cTKDL'](createElm,null,_0x4da5a2,_0x2843bf),_0x352a95&&(_0x2c0656[_0x2843bf][_0x35b8f2(0x26b)]=_0x352a95,_0x447786[_0x35b8f2(0x27c)](_0x352a95,_0x470a14)));}},removeVnodes=(_0xa775e,_0x9989cc,_0x1dde5a,_0xfa5ee3,_0x282608)=>{const _0xc9c163=_0x211960,_0x5afbd2={'GMXtt':function(_0x134dc6,_0x1f8fda){return _0x134dc6<=_0x1f8fda;},'bwEaJ':function(_0x484987,_0x536ea3){return _0x484987(_0x536ea3);}};for(;_0x5afbd2[_0xc9c163(0x277)](_0x9989cc,_0x1dde5a);++_0x9989cc){(_0xfa5ee3=_0xa775e[_0x9989cc])&&(_0x282608=_0xfa5ee3['$elm$'],_0x5afbd2[_0xc9c163(0x296)](callNodeRefs,_0xfa5ee3),_0x282608['remove']());}},updateChildren=(_0x28c722,_0x184519,_0x1edb04,_0x239f13)=>{const _0x549e7c=_0x211960,_0x32b3aa={'KgrKC':function(_0xa6302a,_0x57dfb0){return _0xa6302a-_0x57dfb0;},'OcBRk':function(_0x22c3a3,_0x3ee152){return _0x22c3a3<=_0x3ee152;},'VfogC':function(_0x18df91,_0x531c49){return _0x18df91<=_0x531c49;},'yiJaP':function(_0x34c3b3,_0x54994d){return _0x34c3b3==_0x54994d;},'kHMOE':function(_0x47c6de,_0x2acb7e){return _0x47c6de==_0x2acb7e;},'eVtBx':function(_0x2f23c3,_0x172e58,_0xc0e433){return _0x2f23c3(_0x172e58,_0xc0e433);},'HrHct':function(_0x148dc3,_0x2ff7c9,_0x15f646){return _0x148dc3(_0x2ff7c9,_0x15f646);},'wngjo':function(_0x227439,_0x33f2e7,_0x54a2e5){return _0x227439(_0x33f2e7,_0x54a2e5);},'DsWts':function(_0x65b809,_0x3760b1,_0x471d85){return _0x65b809(_0x3760b1,_0x471d85);},'duPzv':function(_0x57d045,_0x1aaa42){return _0x57d045!==_0x1aaa42;},'kBfiy':function(_0x3f1111,_0x1d0c69){return _0x3f1111>=_0x1d0c69;},'fBJmO':function(_0x181ecb,_0x47cde4,_0x5071e2,_0x20eab5){return _0x181ecb(_0x47cde4,_0x5071e2,_0x20eab5);},'zegDC':function(_0x54d971,_0x3bb615,_0x4efb44,_0x48b98e){return _0x54d971(_0x3bb615,_0x4efb44,_0x48b98e);},'KYpFF':function(_0x1c7718,_0x3b30ce){return _0x1c7718>_0x3b30ce;},'kBGNn':function(_0x517356,_0x342c59,_0x1e952a,_0x1fb3c0,_0x538cfb,_0x3457aa,_0x2d5e6c){return _0x517356(_0x342c59,_0x1e952a,_0x1fb3c0,_0x538cfb,_0x3457aa,_0x2d5e6c);},'VjABK':function(_0x4020e6,_0x4cd3b5){return _0x4020e6+_0x4cd3b5;},'VjKZI':function(_0x48c088,_0x79d647){return _0x48c088>_0x79d647;}};let _0xce5eed=0x0,_0x514d63=0x0,_0x36168a=0x0,_0x4d8a97=0x0,_0x1603f1=_0x32b3aa[_0x549e7c(0x2c3)](_0x184519[_0x549e7c(0x1fd)],0x1),_0x369a0c=_0x184519[0x0],_0x2bdf64=_0x184519[_0x1603f1],_0x133387=_0x239f13[_0x549e7c(0x1fd)]-0x1,_0x276eb9=_0x239f13[0x0],_0x23d9d9=_0x239f13[_0x133387],_0x4f8352,_0x3a3060;while(_0x32b3aa[_0x549e7c(0x200)](_0xce5eed,_0x1603f1)&&_0x32b3aa[_0x549e7c(0x2a4)](_0x514d63,_0x133387)){if(_0x32b3aa['yiJaP'](_0x369a0c,null))_0x369a0c=_0x184519[++_0xce5eed];else{if(_0x2bdf64==null)_0x2bdf64=_0x184519[--_0x1603f1];else{if(_0x32b3aa[_0x549e7c(0x1e0)](_0x276eb9,null))_0x276eb9=_0x239f13[++_0x514d63];else{if(_0x32b3aa[_0x549e7c(0x25a)](_0x23d9d9,null))_0x23d9d9=_0x239f13[--_0x133387];else{if(_0x32b3aa[_0x549e7c(0x244)](isSameVnode,_0x369a0c,_0x276eb9))patch(_0x369a0c,_0x276eb9),_0x369a0c=_0x184519[++_0xce5eed],_0x276eb9=_0x239f13[++_0x514d63];else{if(_0x32b3aa['eVtBx'](isSameVnode,_0x2bdf64,_0x23d9d9))_0x32b3aa[_0x549e7c(0x27f)](patch,_0x2bdf64,_0x23d9d9),_0x2bdf64=_0x184519[--_0x1603f1],_0x23d9d9=_0x239f13[--_0x133387];else{if(isSameVnode(_0x369a0c,_0x23d9d9))_0x32b3aa[_0x549e7c(0x244)](patch,_0x369a0c,_0x23d9d9),_0x28c722[_0x549e7c(0x27c)](_0x369a0c[_0x549e7c(0x26b)],_0x2bdf64[_0x549e7c(0x26b)][_0x549e7c(0x2be)]),_0x369a0c=_0x184519[++_0xce5eed],_0x23d9d9=_0x239f13[--_0x133387];else{if(_0x32b3aa['wngjo'](isSameVnode,_0x2bdf64,_0x276eb9))_0x32b3aa[_0x549e7c(0x272)](patch,_0x2bdf64,_0x276eb9),_0x28c722[_0x549e7c(0x27c)](_0x2bdf64['$elm$'],_0x369a0c['$elm$']),_0x2bdf64=_0x184519[--_0x1603f1],_0x276eb9=_0x239f13[++_0x514d63];else{_0x36168a=-0x1;{for(_0x4d8a97=_0xce5eed;_0x32b3aa[_0x549e7c(0x2a4)](_0x4d8a97,_0x1603f1);++_0x4d8a97){if(_0x184519[_0x4d8a97]&&_0x32b3aa['duPzv'](_0x184519[_0x4d8a97][_0x549e7c(0x1bb)],null)&&_0x184519[_0x4d8a97][_0x549e7c(0x1bb)]===_0x276eb9['$key$']){_0x36168a=_0x4d8a97;break;}}}_0x32b3aa['kBfiy'](_0x36168a,0x0)?(_0x3a3060=_0x184519[_0x36168a],_0x3a3060[_0x549e7c(0x205)]!==_0x276eb9['$tag$']?_0x4f8352=_0x32b3aa[_0x549e7c(0x1b4)](createElm,_0x184519&&_0x184519[_0x514d63],_0x1edb04,_0x36168a):(patch(_0x3a3060,_0x276eb9),_0x184519[_0x36168a]=undefined,_0x4f8352=_0x3a3060[_0x549e7c(0x26b)]),_0x276eb9=_0x239f13[++_0x514d63]):(_0x4f8352=_0x32b3aa[_0x549e7c(0x22c)](createElm,_0x184519&&_0x184519[_0x514d63],_0x1edb04,_0x514d63),_0x276eb9=_0x239f13[++_0x514d63]);if(_0x4f8352){_0x369a0c[_0x549e7c(0x26b)][_0x549e7c(0x212)][_0x549e7c(0x27c)](_0x4f8352,_0x369a0c['$elm$']);}}}}}}}}}}if(_0x32b3aa[_0x549e7c(0x28b)](_0xce5eed,_0x1603f1))_0x32b3aa[_0x549e7c(0x23d)](addVnodes,_0x28c722,_0x32b3aa['yiJaP'](_0x239f13[_0x133387+0x1],null)?null:_0x239f13[_0x32b3aa['VjABK'](_0x133387,0x1)][_0x549e7c(0x26b)],_0x1edb04,_0x239f13,_0x514d63,_0x133387);else _0x32b3aa[_0x549e7c(0x1ae)](_0x514d63,_0x133387)&&_0x32b3aa['fBJmO'](removeVnodes,_0x184519,_0xce5eed,_0x1603f1);},isSameVnode=(_0x480b40,_0x2c8973)=>{const _0x5cdce9=_0x211960,_0x4aaec7={'Eklyt':function(_0xd6b7bc,_0x2c5275){return _0xd6b7bc===_0x2c5275;}};if(_0x4aaec7[_0x5cdce9(0x1f1)](_0x480b40[_0x5cdce9(0x205)],_0x2c8973[_0x5cdce9(0x205)])){return _0x480b40['$key$']===_0x2c8973[_0x5cdce9(0x1bb)];}return![];},patch=(_0x1fb041,_0x103271)=>{const _0xcbd783=_0x211960,_0x1b3c2d={'oiaej':function(_0x5cfa59,_0x230bb8){return _0x5cfa59===_0x230bb8;},'GCgWN':_0xcbd783(0x1e6),'ydvUy':function(_0x3b53a5,_0x702c64){return _0x3b53a5===_0x702c64;},'SovOZ':'foreignObject','uLzec':'slot','NxnBe':function(_0x523866,_0x22b42c,_0x1ccc7e,_0x220756){return _0x523866(_0x22b42c,_0x1ccc7e,_0x220756);},'tJtPC':function(_0x529233,_0x3dc9fc){return _0x529233!==_0x3dc9fc;},'GWHRA':function(_0x311591,_0x5cf9d3,_0x2ff0c2,_0x2caba4,_0x100d0f,_0x45d4bd,_0x133191){return _0x311591(_0x5cf9d3,_0x2ff0c2,_0x2caba4,_0x100d0f,_0x45d4bd,_0x133191);},'KuUmX':function(_0x2b5302,_0x261400){return _0x2b5302-_0x261400;}},_0x2b289c=_0x103271[_0xcbd783(0x26b)]=_0x1fb041[_0xcbd783(0x26b)],_0x4038a5=_0x1fb041['$children$'],_0x2e6ab1=_0x103271[_0xcbd783(0x1cc)],_0x252665=_0x103271[_0xcbd783(0x205)],_0xc67a08=_0x103271[_0xcbd783(0x1c7)];if(_0x1b3c2d[_0xcbd783(0x1eb)](_0xc67a08,null)){{isSvgMode=_0x1b3c2d['oiaej'](_0x252665,_0x1b3c2d['GCgWN'])?!![]:_0x1b3c2d['ydvUy'](_0x252665,_0x1b3c2d[_0xcbd783(0x1c2)])?![]:isSvgMode;}{if(_0x252665===_0x1b3c2d[_0xcbd783(0x246)]);else _0x1b3c2d[_0xcbd783(0x238)](updateElement,_0x1fb041,_0x103271,isSvgMode);}if(_0x1b3c2d[_0xcbd783(0x255)](_0x4038a5,null)&&_0x2e6ab1!==null)updateChildren(_0x2b289c,_0x4038a5,_0x103271,_0x2e6ab1);else{if(_0x1b3c2d['tJtPC'](_0x2e6ab1,null))_0x1b3c2d['tJtPC'](_0x1fb041[_0xcbd783(0x1c7)],null)&&(_0x2b289c[_0xcbd783(0x23a)]=''),_0x1b3c2d['GWHRA'](addVnodes,_0x2b289c,null,_0x103271,_0x2e6ab1,0x0,_0x2e6ab1[_0xcbd783(0x1fd)]-0x1);else _0x1b3c2d[_0xcbd783(0x255)](_0x4038a5,null)&&_0x1b3c2d[_0xcbd783(0x238)](removeVnodes,_0x4038a5,0x0,_0x1b3c2d['KuUmX'](_0x4038a5['length'],0x1));}isSvgMode&&_0x252665===_0x1b3c2d[_0xcbd783(0x2aa)]&&(isSvgMode=![]);}else _0x1b3c2d['tJtPC'](_0x1fb041[_0xcbd783(0x1c7)],_0xc67a08)&&(_0x2b289c['data']=_0xc67a08);},callNodeRefs=_0x4c4740=>{const _0x10f88f=_0x211960;{_0x4c4740[_0x10f88f(0x286)]&&_0x4c4740[_0x10f88f(0x286)]['ref']&&_0x4c4740[_0x10f88f(0x286)][_0x10f88f(0x1a8)](null),_0x4c4740[_0x10f88f(0x1cc)]&&_0x4c4740[_0x10f88f(0x1cc)][_0x10f88f(0x1b9)](callNodeRefs);}},renderVdom=(_0x51f8d2,_0x366314)=>{const _0xbfee83=_0x211960,_0x490e11={'TXLEN':function(_0x34b6a7,_0x497651,_0x150fab){return _0x34b6a7(_0x497651,_0x150fab);},'jRpto':function(_0x5ae7cc,_0x4bf413){return _0x5ae7cc(_0x4bf413);},'WDruR':function(_0x1c5c10,_0x51b77a,_0x495b7b,_0x59648f){return _0x1c5c10(_0x51b77a,_0x495b7b,_0x59648f);}},_0x2c3af5=_0x51f8d2[_0xbfee83(0x229)],_0x24c6d3=_0x51f8d2[_0xbfee83(0x1aa)],_0x25165b=_0x51f8d2[_0xbfee83(0x217)]||_0x490e11[_0xbfee83(0x2c5)](newVNode,null,null),_0x2de3fc=_0x490e11[_0xbfee83(0x23f)](isHost,_0x366314)?_0x366314:_0x490e11[_0xbfee83(0x2bc)](h,null,null,_0x366314);hostTagName=_0x2c3af5['tagName'];_0x24c6d3['$attrsToReflect$']&&(_0x2de3fc['$attrs$']=_0x2de3fc[_0xbfee83(0x286)]||{},_0x24c6d3[_0xbfee83(0x1bd)][_0xbfee83(0x1b9)](([_0x2c6109,_0x550b9c])=>_0x2de3fc[_0xbfee83(0x286)][_0x550b9c]=_0x2c3af5[_0x2c6109]));_0x2de3fc[_0xbfee83(0x205)]=null,_0x2de3fc[_0xbfee83(0x2b4)]|=0x4,_0x51f8d2['$vnode$']=_0x2de3fc,_0x2de3fc[_0xbfee83(0x26b)]=_0x25165b[_0xbfee83(0x26b)]=_0x2c3af5[_0xbfee83(0x2ab)]||_0x2c3af5;{scopeId=_0x2c3af5[_0xbfee83(0x2b8)];}patch(_0x25165b,_0x2de3fc);},attachToAncestor=(_0x26fb89,_0x521110)=>{const _0x259090=_0x211960,_0x1d644f={'Gfbka':'s-p'};_0x521110&&!_0x26fb89[_0x259090(0x1f7)]&&_0x521110[_0x259090(0x1ce)]&&_0x521110[_0x1d644f['Gfbka']][_0x259090(0x228)](new Promise(_0x4655a6=>_0x26fb89[_0x259090(0x1f7)]=_0x4655a6));},scheduleUpdate=(_0x455703,_0x23bf20)=>{const _0x284ef1=_0x211960,_0x3c148f={'AuyBR':function(_0x27a27e,_0x337db5){return _0x27a27e&_0x337db5;},'WGeTa':function(_0x5b84d7,_0x540b2a,_0x5f4f7b){return _0x5b84d7(_0x540b2a,_0x5f4f7b);},'PVPjX':function(_0x344d94,_0x4c59d9){return _0x344d94(_0x4c59d9);}};{_0x455703[_0x284ef1(0x2b4)]|=0x10;}if(_0x3c148f[_0x284ef1(0x27e)](_0x455703[_0x284ef1(0x2b4)],0x4)){_0x455703['$flags$']|=0x200;return;}_0x3c148f[_0x284ef1(0x207)](attachToAncestor,_0x455703,_0x455703['$ancestorComponent$']);const _0x28c3c9=()=>dispatchHooks(_0x455703,_0x23bf20);return _0x3c148f[_0x284ef1(0x29a)](writeTask,_0x28c3c9);},dispatchHooks=(_0x5a3414,_0x41dc01)=>{const _0x414b9a=_0x211960,_0x1a9920={'LmFsu':function(_0x1b7c0f,_0x2637cd,_0x4ce3c4){return _0x1b7c0f(_0x2637cd,_0x4ce3c4);},'frvad':'scheduleUpdate','nbDph':function(_0x4512dd,_0x2683e2,_0x2a9608){return _0x4512dd(_0x2683e2,_0x2a9608);},'luxdW':'componentWillLoad','qtINl':function(_0x2b0a05){return _0x2b0a05();}},_0x4122e0=_0x1a9920[_0x414b9a(0x293)](createTime,_0x1a9920[_0x414b9a(0x2a6)],_0x5a3414[_0x414b9a(0x1aa)][_0x414b9a(0x1d6)]),_0x221194=_0x5a3414[_0x414b9a(0x2c2)];let _0x479837;if(_0x41dc01){_0x479837=_0x1a9920[_0x414b9a(0x2b9)](safeCall,_0x221194,_0x1a9920['luxdW']);}return _0x1a9920['qtINl'](_0x4122e0),_0x1a9920[_0x414b9a(0x2b9)](then,_0x479837,()=>updateComponent(_0x5a3414,_0x221194,_0x41dc01));},updateComponent=async(_0x5a62ce,_0x225939,_0x4b45a8)=>{const _0x3bc25a=_0x211960,_0x2156f5={'fBLvH':function(_0x15d8fc,_0x244911,_0x3389fe){return _0x15d8fc(_0x244911,_0x3389fe);},'TVVEq':_0x3bc25a(0x201),'apHNO':function(_0x580eeb,_0x171164){return _0x580eeb(_0x171164);},'KTyJn':function(_0x1f5487,_0xc28049,_0x1a0b6e){return _0x1f5487(_0xc28049,_0x1a0b6e);},'DGQjd':_0x3bc25a(0x2af),'KCskX':function(_0x437bda,_0x42dd4a,_0x19e072){return _0x437bda(_0x42dd4a,_0x19e072);},'LJogm':function(_0x73f078){return _0x73f078();},'oLnNq':_0x3bc25a(0x1ce)},_0x7e7f12=_0x5a62ce['$hostElement$'],_0x3162b6=_0x2156f5[_0x3bc25a(0x231)](createTime,'update',_0x5a62ce[_0x3bc25a(0x1aa)][_0x3bc25a(0x1d6)]),_0x23516f=_0x7e7f12[_0x2156f5['TVVEq']];_0x4b45a8&&_0x2156f5[_0x3bc25a(0x1f5)](attachStyles,_0x5a62ce);const _0x14021c=_0x2156f5['KTyJn'](createTime,_0x2156f5[_0x3bc25a(0x227)],_0x5a62ce[_0x3bc25a(0x1aa)][_0x3bc25a(0x1d6)]);{_0x2156f5[_0x3bc25a(0x1c4)](callRender,_0x5a62ce,_0x225939);}_0x23516f&&(_0x23516f['map'](_0xb4019a=>_0xb4019a()),_0x7e7f12[_0x2156f5[_0x3bc25a(0x196)]]=undefined);_0x2156f5['LJogm'](_0x14021c),_0x2156f5[_0x3bc25a(0x1b1)](_0x3162b6);{const _0x151fde=_0x7e7f12[_0x2156f5[_0x3bc25a(0x20a)]],_0x2bcace=()=>postUpdateComponent(_0x5a62ce);_0x151fde['length']===0x0?_0x2bcace():(Promise[_0x3bc25a(0x23b)](_0x151fde)[_0x3bc25a(0x236)](_0x2bcace),_0x5a62ce[_0x3bc25a(0x2b4)]|=0x4,_0x151fde[_0x3bc25a(0x1fd)]=0x0);}},callRender=(_0x84cfb1,_0x3f95a7,_0x21fdc3)=>{const _0x48e9ca=_0x211960,_0x208ad4={'eqURJ':function(_0x45427b,_0x35aad0,_0x48f0c8){return _0x45427b(_0x35aad0,_0x48f0c8);}};try{_0x3f95a7=_0x3f95a7[_0x48e9ca(0x2af)]();{_0x84cfb1[_0x48e9ca(0x2b4)]&=~0x10;}{_0x84cfb1[_0x48e9ca(0x2b4)]|=0x2;}{{{renderVdom(_0x84cfb1,_0x3f95a7);}}}}catch(_0x40764f){_0x208ad4[_0x48e9ca(0x1d5)](consoleError,_0x40764f,_0x84cfb1[_0x48e9ca(0x229)]);}return null;},postUpdateComponent=_0xafeefb=>{const _0x5daf38=_0x211960,_0x1d91d0={'pJxrJ':_0x5daf38(0x20f),'MjvQP':function(_0x27ba0c,_0xbcbb12){return _0x27ba0c&_0xbcbb12;},'qoVkg':function(_0x8aa127,_0x1c7620){return _0x8aa127(_0x1c7620);},'ZuWqK':'componentDidLoad','Cylwl':function(_0x389291){return _0x389291();}},_0x31dc5e=_0xafeefb['$cmpMeta$'][_0x5daf38(0x1d6)],_0x116f60=_0xafeefb[_0x5daf38(0x229)],_0x15c4cc=createTime(_0x1d91d0[_0x5daf38(0x240)],_0x31dc5e),_0x5adb9e=_0xafeefb[_0x5daf38(0x2c2)],_0x453911=_0xafeefb[_0x5daf38(0x24f)];if(!_0x1d91d0[_0x5daf38(0x26a)](_0xafeefb[_0x5daf38(0x2b4)],0x40)){_0xafeefb[_0x5daf38(0x2b4)]|=0x40;{_0x1d91d0[_0x5daf38(0x230)](addHydratedFlag,_0x116f60);}{safeCall(_0x5adb9e,_0x1d91d0[_0x5daf38(0x223)]);}_0x1d91d0[_0x5daf38(0x1ee)](_0x15c4cc);{_0xafeefb['$onReadyResolve$'](_0x116f60),!_0x453911&&appDidLoad();}}else _0x15c4cc();{_0xafeefb['$onRenderResolve$']&&(_0xafeefb[_0x5daf38(0x1f7)](),_0xafeefb[_0x5daf38(0x1f7)]=undefined),_0xafeefb[_0x5daf38(0x2b4)]&0x200&&_0x1d91d0['qoVkg'](nextTick,()=>scheduleUpdate(_0xafeefb,![])),_0xafeefb[_0x5daf38(0x2b4)]&=~(0x4|0x200);}},appDidLoad=_0x48a716=>{const _0xb9cda6=_0x211960,_0x287298={'SOJqK':function(_0x43da4f,_0x454e6c){return _0x43da4f(_0x454e6c);}};{_0x287298[_0xb9cda6(0x291)](addHydratedFlag,doc[_0xb9cda6(0x206)]);}nextTick(()=>emitEvent(win,'appload',{'detail':{'namespace':NAMESPACE}}));},safeCall=(_0x5b1872,_0x4d5ff1,_0x2e9f31)=>{const _0x3a86a0=_0x211960,_0x5b4812={'KMZkU':function(_0x5b42ab,_0x382868){return _0x5b42ab(_0x382868);}};if(_0x5b1872&&_0x5b1872[_0x4d5ff1])try{return _0x5b1872[_0x4d5ff1](_0x2e9f31);}catch(_0x50f2aa){_0x5b4812[_0x3a86a0(0x1d3)](consoleError,_0x50f2aa);}return undefined;},then=(_0x2c7822,_0x9c19fe)=>{const _0xfbfa2=_0x211960,_0x145ae4={'EpQJc':function(_0x4a8561){return _0x4a8561();}};return _0x2c7822&&_0x2c7822[_0xfbfa2(0x236)]?_0x2c7822[_0xfbfa2(0x236)](_0x9c19fe):_0x145ae4[_0xfbfa2(0x29f)](_0x9c19fe);},addHydratedFlag=_0x243932=>_0x243932[_0x211960(0x299)][_0x211960(0x254)](_0x211960(0x243)),getValue=(_0x56054c,_0x1d1fec)=>getHostRef(_0x56054c)[_0x211960(0x281)][_0x211960(0x1be)](_0x1d1fec),setValue=(_0x1fdbb1,_0x4c9859,_0x14ac0a,_0x1c9860)=>{const _0x34ef08=_0x211960,_0x50701f={'qlRdO':function(_0x47642e,_0x259748,_0x556f65){return _0x47642e(_0x259748,_0x556f65);},'EgrLF':function(_0x325782,_0x251b3a){return _0x325782!==_0x251b3a;},'VnCkf':function(_0x2b8e05,_0x3cb9c9){return _0x2b8e05===_0x3cb9c9;},'WLarU':function(_0x49d476,_0xa72fed){return _0x49d476===_0xa72fed;},'PDcPN':function(_0x547558,_0x44e62d){return _0x547558|_0x44e62d;}},_0x3886ff=getHostRef(_0x1fdbb1),_0x53e7a8=_0x3886ff[_0x34ef08(0x281)][_0x34ef08(0x1be)](_0x4c9859),_0x31a679=_0x3886ff[_0x34ef08(0x2b4)],_0x4991ce=_0x3886ff[_0x34ef08(0x2c2)];_0x14ac0a=_0x50701f[_0x34ef08(0x23c)](parsePropertyValue,_0x14ac0a,_0x1c9860[_0x34ef08(0x202)][_0x4c9859][0x0]);const _0x1b6059=Number[_0x34ef08(0x2ad)](_0x53e7a8)&&Number[_0x34ef08(0x2ad)](_0x14ac0a),_0x1520bf=_0x50701f['EgrLF'](_0x14ac0a,_0x53e7a8)&&!_0x1b6059;(!(_0x31a679&0x8)||_0x50701f[_0x34ef08(0x247)](_0x53e7a8,undefined))&&_0x1520bf&&(_0x3886ff[_0x34ef08(0x281)][_0x34ef08(0x1ba)](_0x4c9859,_0x14ac0a),_0x4991ce&&(_0x50701f['WLarU'](_0x31a679&_0x50701f['PDcPN'](0x2,0x10),0x2)&&_0x50701f[_0x34ef08(0x23c)](scheduleUpdate,_0x3886ff,![])));},proxyComponent=(_0x440c1c,_0x114446,_0x44ebed)=>{const _0x397c50=_0x211960,_0x7463={'RCtnr':function(_0x1ea4d0,_0x4851b8,_0x18e23f,_0x3455a4,_0x270ee4){return _0x1ea4d0(_0x4851b8,_0x18e23f,_0x3455a4,_0x270ee4);},'ZnDhT':function(_0x1a7838,_0x3c6ac5){return _0x1a7838&_0x3c6ac5;},'HISkz':_0x397c50(0x19c),'AlfwF':function(_0x218c7e,_0x5cab25){return _0x218c7e===_0x5cab25;},'Bhzrd':_0x397c50(0x1c9)};if(_0x114446[_0x397c50(0x202)]){const _0x47961e=Object[_0x397c50(0x21f)](_0x114446['$members$']),_0x1cd96d=_0x440c1c[_0x397c50(0x1a6)];_0x47961e[_0x397c50(0x1b9)](([_0x1e44f7,[_0x55fda6]])=>{const _0x496841=_0x397c50,_0x3ce7d4={'DoutI':function(_0x33285f,_0x21b662,_0x5eeeb4){return _0x33285f(_0x21b662,_0x5eeeb4);}};(_0x7463[_0x496841(0x1a4)](_0x55fda6,0x1f)||_0x7463[_0x496841(0x1a4)](_0x44ebed,0x2)&&_0x7463[_0x496841(0x1a4)](_0x55fda6,0x20))&&Object[_0x496841(0x1da)](_0x1cd96d,_0x1e44f7,{'get'(){const _0x830dbe=_0x496841;return _0x3ce7d4[_0x830dbe(0x21a)](getValue,this,_0x1e44f7);},'set'(_0x4d48fd){_0x7463['RCtnr'](setValue,this,_0x1e44f7,_0x4d48fd,_0x114446);},'configurable':!![],'enumerable':!![]});});if(_0x7463[_0x397c50(0x1a4)](_0x44ebed,0x1)){const _0xe7da4c=new Map();_0x1cd96d['attributeChangedCallback']=function(_0x3c509b,_0x28c4e1,_0x51b39c){const _0x1d0687=_0x397c50,_0x47c8ac={'dMbYo':function(_0x239c00,_0x45c044){return _0x239c00===_0x45c044;},'SmqUz':_0x7463[_0x1d0687(0x1ab)],'IEznd':function(_0x3f9b33,_0x3537b6){return _0x7463['AlfwF'](_0x3f9b33,_0x3537b6);},'PFBsJ':_0x7463[_0x1d0687(0x283)]};plt[_0x1d0687(0x1b5)](()=>{const _0x680cc7=_0x1d0687,_0x2d9a45=_0xe7da4c[_0x680cc7(0x1be)](_0x3c509b);if(this['hasOwnProperty'](_0x2d9a45))_0x51b39c=this[_0x2d9a45],delete this[_0x2d9a45];else{if(_0x1cd96d[_0x680cc7(0x257)](_0x2d9a45)&&_0x47c8ac[_0x680cc7(0x2ae)](typeof this[_0x2d9a45],_0x47c8ac['SmqUz'])&&this[_0x2d9a45]==_0x51b39c)return;}this[_0x2d9a45]=_0x47c8ac['dMbYo'](_0x51b39c,null)&&_0x47c8ac['IEznd'](typeof this[_0x2d9a45],_0x47c8ac[_0x680cc7(0x2a7)])?![]:_0x51b39c;});},_0x440c1c['observedAttributes']=_0x47961e[_0x397c50(0x1c6)](([_0x54acc6,_0x4a06dd])=>_0x4a06dd[0x0]&0xf)[_0x397c50(0x1b9)](([_0x4110cd,_0x555e32])=>{const _0xe6bdc4=_0x397c50,_0xa00df9=_0x555e32[0x1]||_0x4110cd;return _0xe7da4c[_0xe6bdc4(0x1ba)](_0xa00df9,_0x4110cd),_0x7463[_0xe6bdc4(0x1a4)](_0x555e32[0x0],0x200)&&_0x114446[_0xe6bdc4(0x1bd)][_0xe6bdc4(0x228)]([_0x4110cd,_0xa00df9]),_0xa00df9;});}}return _0x440c1c;},initializeComponent=async(_0x56aa45,_0x355e59,_0x35a956,_0x2200c3,_0x560be0)=>{const _0x3e33d3=_0x211960,_0x46203d={'nWIPg':function(_0x1b737a,_0x56cd9f){return _0x1b737a===_0x56cd9f;},'pgYvw':function(_0xfa5144,_0x478daf){return _0xfa5144&_0x478daf;},'Cvzqw':function(_0x99091a,_0x36878a){return _0x99091a(_0x36878a);},'jdwys':function(_0x30abe7){return _0x30abe7();},'cEKgA':function(_0x46672f){return _0x46672f();},'LaVRd':function(_0x1d0207,_0x5ab21e,_0x37bcb6){return _0x1d0207(_0x5ab21e,_0x37bcb6);},'ubEPg':_0x3e33d3(0x2b3),'hIgyK':function(_0x5994e7,_0x44cb1a){return _0x5994e7(_0x44cb1a);},'ssetN':function(_0x20de37,_0x91031,_0x592679){return _0x20de37(_0x91031,_0x592679);},'CbIaU':function(_0x2785c5,_0x5eb343,_0x4416aa,_0x35cd66){return _0x2785c5(_0x5eb343,_0x4416aa,_0x35cd66);},'rTToj':function(_0x5f3884){return _0x5f3884();},'iltxJ':_0x3e33d3(0x201)};if(_0x46203d[_0x3e33d3(0x245)](_0x46203d[_0x3e33d3(0x239)](_0x355e59[_0x3e33d3(0x2b4)],0x20),0x0)){{_0x355e59[_0x3e33d3(0x2b4)]|=0x20,_0x560be0=_0x46203d[_0x3e33d3(0x279)](loadModule,_0x35a956);if(_0x560be0[_0x3e33d3(0x236)]){const _0x3014d7=_0x46203d[_0x3e33d3(0x1bc)](uniqueTime);_0x560be0=await _0x560be0,_0x46203d[_0x3e33d3(0x2c1)](_0x3014d7);}!_0x560be0[_0x3e33d3(0x25d)]&&(proxyComponent(_0x560be0,_0x35a956,0x2),_0x560be0[_0x3e33d3(0x25d)]=!![]);const _0x27d7ef=_0x46203d[_0x3e33d3(0x1d2)](createTime,_0x46203d[_0x3e33d3(0x1cb)],_0x35a956[_0x3e33d3(0x1d6)]);{_0x355e59[_0x3e33d3(0x2b4)]|=0x8;}try{new _0x560be0(_0x355e59);}catch(_0x5b67eb){_0x46203d[_0x3e33d3(0x25c)](consoleError,_0x5b67eb);}{_0x355e59[_0x3e33d3(0x2b4)]&=~0x8;}_0x27d7ef(),fireConnectedCallback(_0x355e59[_0x3e33d3(0x2c2)]);}if(_0x560be0[_0x3e33d3(0x209)]){let _0x281c46=_0x560be0[_0x3e33d3(0x209)];const _0x1ca7b4=getScopeId(_0x35a956);if(!styles[_0x3e33d3(0x1ec)](_0x1ca7b4)){const _0x1c0335=_0x46203d[_0x3e33d3(0x1a1)](createTime,_0x3e33d3(0x249),_0x35a956['$tagName$']);_0x46203d[_0x3e33d3(0x2c0)](registerStyle,_0x1ca7b4,_0x281c46,!!_0x46203d[_0x3e33d3(0x239)](_0x35a956[_0x3e33d3(0x2b4)],0x1)),_0x46203d['rTToj'](_0x1c0335);}}}const _0x5a9350=_0x355e59[_0x3e33d3(0x24f)],_0x563339=()=>scheduleUpdate(_0x355e59,!![]);_0x5a9350&&_0x5a9350[_0x46203d[_0x3e33d3(0x213)]]?_0x5a9350[_0x46203d['iltxJ']][_0x3e33d3(0x228)](_0x563339):_0x46203d[_0x3e33d3(0x2c1)](_0x563339);},fireConnectedCallback=_0x212f71=>{const _0x2211ce=_0x211960,_0x34baf6={'kIiWw':function(_0xe3b5e9,_0x2c1d9c,_0x4b0617){return _0xe3b5e9(_0x2c1d9c,_0x4b0617);}};{_0x34baf6[_0x2211ce(0x22e)](safeCall,_0x212f71,_0x2211ce(0x2a2));}},connectedCallback=_0x325f5c=>{const _0xfd3003=_0x211960,_0x1f578b={'HiWoa':function(_0x13064f,_0x18bcd4){return _0x13064f&_0x18bcd4;},'lvUvN':function(_0x3576ca,_0x537f9f){return _0x3576ca===_0x537f9f;},'zrQdX':function(_0x462af3,_0x3e86a6){return _0x462af3(_0x3e86a6);},'YpGJf':function(_0x5e9f15,_0x587df7,_0x5f1b3b){return _0x5e9f15(_0x587df7,_0x5f1b3b);},'Xfuzj':_0xfd3003(0x2a2),'vJoPC':_0xfd3003(0x1ce),'nlLDk':function(_0x9045fa,_0x478352,_0x2b1644){return _0x9045fa(_0x478352,_0x2b1644);},'ObiSx':function(_0x4fc450,_0xf62ae2,_0x4b7435,_0xb6df40){return _0x4fc450(_0xf62ae2,_0x4b7435,_0xb6df40);},'xjNGA':function(_0x3592a7,_0x39213e){return _0x3592a7(_0x39213e);}};if(_0x1f578b['lvUvN'](plt[_0xfd3003(0x2b4)]&0x1,0x0)){const _0x4d860a=_0x1f578b[_0xfd3003(0x24a)](getHostRef,_0x325f5c),_0x5df879=_0x4d860a[_0xfd3003(0x1aa)],_0x324650=_0x1f578b['YpGJf'](createTime,_0x1f578b[_0xfd3003(0x29e)],_0x5df879[_0xfd3003(0x1d6)]);if(!(_0x4d860a[_0xfd3003(0x2b4)]&0x1)){_0x4d860a['$flags$']|=0x1;{let _0x2fd078=_0x325f5c;while(_0x2fd078=_0x2fd078[_0xfd3003(0x212)]||_0x2fd078['host']){if(_0x2fd078[_0x1f578b[_0xfd3003(0x2bb)]]){_0x1f578b[_0xfd3003(0x1e7)](attachToAncestor,_0x4d860a,_0x4d860a[_0xfd3003(0x24f)]=_0x2fd078);break;}}}_0x5df879['$members$']&&Object[_0xfd3003(0x21f)](_0x5df879[_0xfd3003(0x202)])[_0xfd3003(0x1b9)](([_0x22c248,[_0x15653a]])=>{const _0x20d2fb=_0xfd3003;if(_0x1f578b[_0x20d2fb(0x1f0)](_0x15653a,0x1f)&&_0x325f5c['hasOwnProperty'](_0x22c248)){const _0x560a01=_0x325f5c[_0x22c248];delete _0x325f5c[_0x22c248],_0x325f5c[_0x22c248]=_0x560a01;}});{_0x1f578b[_0xfd3003(0x21c)](initializeComponent,_0x325f5c,_0x4d860a,_0x5df879);}}else _0x1f578b[_0xfd3003(0x1fc)](fireConnectedCallback,_0x4d860a[_0xfd3003(0x2c2)]);_0x324650();}},disconnectedCallback=_0x1d9f29=>{const _0x2a8291=_0x211960,_0x4be861={'DXcRM':function(_0x5d6223,_0x3eecc2){return _0x5d6223===_0x3eecc2;},'yBanl':function(_0x3fca8d,_0xc1d2cc){return _0x3fca8d(_0xc1d2cc);},'nBSzZ':function(_0x28e720,_0x1b4071,_0x399da9){return _0x28e720(_0x1b4071,_0x399da9);},'dxSpx':_0x2a8291(0x1f4)};if(_0x4be861[_0x2a8291(0x1f2)](plt[_0x2a8291(0x2b4)]&0x1,0x0)){const _0x116ced=_0x4be861[_0x2a8291(0x295)](getHostRef,_0x1d9f29),_0x38aa0e=_0x116ced['$lazyInstance$'];{_0x4be861[_0x2a8291(0x25f)](safeCall,_0x38aa0e,_0x4be861[_0x2a8291(0x278)]);}}},bootstrapLazy=(_0x2343c5,_0x3356aa={})=>{const _0xed04a8=_0x211960,_0x103d55={'mpHaL':function(_0xc69d79,_0x3deb5b){return _0xc69d79(_0x3deb5b);},'AgXDm':function(_0x28c687,_0x4c4593){return _0x28c687&_0x4c4593;},'SOsyW':function(_0x11619c){return _0x11619c();},'lrYPM':_0xed04a8(0x1ea),'nNcfQ':_0xed04a8(0x209),'kbQEq':_0xed04a8(0x197),'FwfYo':function(_0x2aba4d,_0x14ce29){return _0x2aba4d!==_0x14ce29;},'yMnIb':function(_0x13c863,_0x2bffb3){return _0x13c863!==_0x2bffb3;},'fCnvd':function(_0x5ecee9,_0x8eaa79){return _0x5ecee9!=_0x8eaa79;},'GYwzI':'nonce','xFdRH':function(_0x141d06){return _0x141d06();}};var _0x33b05b;const _0x41e2be=_0x103d55['SOsyW'](createTime),_0xaacd27=[],_0x55143f=_0x3356aa[_0xed04a8(0x21d)]||[],_0x1d9ba1=win[_0xed04a8(0x1ac)],_0x2e2be7=doc['head'],_0x5a06af=_0x2e2be7['querySelector'](_0x103d55[_0xed04a8(0x1ad)]),_0xa6df38=doc[_0xed04a8(0x222)](_0x103d55[_0xed04a8(0x220)]),_0x414e94=[];let _0xa68078,_0x54d57b=!![];Object['assign'](plt,_0x3356aa),plt[_0xed04a8(0x1e5)]=new URL(_0x3356aa[_0xed04a8(0x264)]||'./',doc[_0xed04a8(0x208)])[_0xed04a8(0x22f)],_0x2343c5['map'](_0x6cc76a=>{const _0x51ee8f=_0xed04a8,_0x5eb422={'UTmVQ':function(_0x3d1be2,_0x2d4ee3,_0x409ad6){return _0x3d1be2(_0x2d4ee3,_0x409ad6);},'RjmCC':function(_0x3af308,_0x5d03a3){return _0x103d55['AgXDm'](_0x3af308,_0x5d03a3);},'rwTmX':function(_0x17f3fd,_0x28850d){return _0x103d55['mpHaL'](_0x17f3fd,_0x28850d);}};_0x6cc76a[0x1][_0x51ee8f(0x1b9)](_0x36dfed=>{const _0x302705=_0x51ee8f,_0x16570f={'uQGDa':function(_0x440ac7,_0x3ce607){const _0x10cd0b=_0xfc52;return _0x103d55[_0x10cd0b(0x24d)](_0x440ac7,_0x3ce607);}},_0x30eff0={'$flags$':_0x36dfed[0x0],'$tagName$':_0x36dfed[0x1],'$members$':_0x36dfed[0x2],'$listeners$':_0x36dfed[0x3]};{_0x30eff0[_0x302705(0x202)]=_0x36dfed[0x2];}{_0x30eff0[_0x302705(0x1bd)]=[];}const _0x47bd13=_0x30eff0['$tagName$'],_0x20cf64=class extends HTMLElement{constructor(_0x1505fc){const _0x26d03e=_0x302705;super(_0x1505fc),_0x1505fc=this,_0x5eb422[_0x26d03e(0x275)](registerHost,_0x1505fc,_0x30eff0);if(_0x5eb422[_0x26d03e(0x28d)](_0x30eff0['$flags$'],0x1)){{_0x1505fc[_0x26d03e(0x25b)]({'mode':_0x26d03e(0x252)});}}}[_0x302705(0x2a2)](){const _0x12287a=_0x302705;_0xa68078&&(_0x16570f[_0x12287a(0x1b6)](clearTimeout,_0xa68078),_0xa68078=null),_0x54d57b?_0x414e94[_0x12287a(0x228)](this):plt['jmp'](()=>connectedCallback(this));}[_0x302705(0x1f4)](){const _0x26800e=_0x302705;plt[_0x26800e(0x1b5)](()=>disconnectedCallback(this));}[_0x302705(0x1d1)](){const _0x3aa241=_0x302705;return _0x5eb422['rwTmX'](getHostRef,this)[_0x3aa241(0x294)];}};_0x30eff0[_0x302705(0x2ac)]=_0x6cc76a[0x0],!_0x55143f[_0x302705(0x2a5)](_0x47bd13)&&!_0x1d9ba1[_0x302705(0x1be)](_0x47bd13)&&(_0xaacd27[_0x302705(0x228)](_0x47bd13),_0x1d9ba1[_0x302705(0x26d)](_0x47bd13,proxyComponent(_0x20cf64,_0x30eff0,0x1)));});});{_0xa6df38[_0xed04a8(0x263)]=_0xaacd27+HYDRATED_CSS,_0xa6df38['setAttribute'](_0x103d55[_0xed04a8(0x1fa)],'');const _0x5530d3=_0x103d55[_0xed04a8(0x2b7)](_0x33b05b=plt['$nonce$'],null)&&_0x103d55[_0xed04a8(0x270)](_0x33b05b,void 0x0)?_0x33b05b:queryNonceMetaTagContent(doc);_0x103d55[_0xed04a8(0x241)](_0x5530d3,null)&&_0xa6df38[_0xed04a8(0x203)](_0x103d55[_0xed04a8(0x22d)],_0x5530d3),_0x2e2be7['insertBefore'](_0xa6df38,_0x5a06af?_0x5a06af[_0xed04a8(0x2be)]:_0x2e2be7[_0xed04a8(0x280)]);}_0x54d57b=![];if(_0x414e94['length'])_0x414e94[_0xed04a8(0x1b9)](_0x529d94=>_0x529d94['connectedCallback']());else{plt['jmp'](()=>_0xa68078=setTimeout(appDidLoad,0x1e));}_0x103d55[_0xed04a8(0x216)](_0x41e2be);},setNonce=_0x53260d=>plt[_0x211960(0x1a5)]=_0x53260d,hostRefs=new WeakMap(),getHostRef=_0x11ec23=>hostRefs[_0x211960(0x1be)](_0x11ec23),registerInstance=(_0x39666b,_0x5afbb4)=>hostRefs['set'](_0x5afbb4[_0x211960(0x2c2)]=_0x39666b,_0x5afbb4),registerHost=(_0x2e8e1a,_0x387151)=>{const _0x393d45=_0x211960,_0x4cb801={'DzKtq':_0x393d45(0x1ce),'dSBwT':_0x393d45(0x201)},_0x5dc3cf={'$flags$':0x0,'$hostElement$':_0x2e8e1a,'$cmpMeta$':_0x387151,'$instanceValues$':new Map()};{_0x5dc3cf[_0x393d45(0x294)]=new Promise(_0x1cf88a=>_0x5dc3cf[_0x393d45(0x20b)]=_0x1cf88a),_0x2e8e1a[_0x4cb801[_0x393d45(0x2b1)]]=[],_0x2e8e1a[_0x4cb801['dSBwT']]=[];}return hostRefs[_0x393d45(0x1ba)](_0x2e8e1a,_0x5dc3cf);},isMemberInElement=(_0x4799e4,_0x9ef6bd)=>_0x9ef6bd in _0x4799e4,consoleError=(_0x2be2b6,_0x4378c0)=>(0x0,console[_0x211960(0x1c5)])(_0x2be2b6,_0x4378c0),cmpModules=new Map(),loadModule=(_0x237a60,_0x5e3e90,_0x58607a)=>{const _0x341d8c=_0x211960,_0xbb6981={'yUkIM':function(_0x52e2cc,_0x13d2dd){return _0x52e2cc(_0x13d2dd);},'scXkQ':function(_0x11e9a5,_0x17cc11){return _0x11e9a5(_0x17cc11);}},_0x2c4696=_0x237a60[_0x341d8c(0x1d6)]['replace'](/-/g,'_'),_0x1c83c5=_0x237a60[_0x341d8c(0x2ac)],_0x238d89=cmpModules['get'](_0x1c83c5);if(_0x238d89)return _0x238d89[_0x2c4696];return Promise['resolve']()['then'](function(){const _0x37b1d8=_0x341d8c;return _0xbb6981[_0x37b1d8(0x2a9)](_interopNamespace,_0xbb6981['scXkQ'](require,'./'+_0x1c83c5+'.entry.js'));})[_0x341d8c(0x236)](_0x523c1e=>{{cmpModules['set'](_0x1c83c5,_0x523c1e);}return _0x523c1e[_0x2c4696];},consoleError);},styles=new Map(),win=typeof window!=='undefined'?window:{},doc=win['document']||{'head':{}},plt={'$flags$':0x0,'$resourcesUrl$':'','jmp':_0x39a8cd=>_0x39a8cd(),'raf':_0x43a332=>requestAnimationFrame(_0x43a332),'ael':(_0x15c7ff,_0x1fa79c,_0x1507a7,_0x3634b0)=>_0x15c7ff[_0x211960(0x1bf)](_0x1fa79c,_0x1507a7,_0x3634b0),'rel':(_0x4869e6,_0x79de78,_0x144f4a,_0x5b1c01)=>_0x4869e6[_0x211960(0x274)](_0x79de78,_0x144f4a,_0x5b1c01),'ce':(_0x2c7d2d,_0xa09a94)=>new CustomEvent(_0x2c7d2d,_0xa09a94)},promiseResolve=_0x3d01aa=>Promise['resolve'](_0x3d01aa),supportsConstructableStylesheets=((()=>{const _0x33c363=_0x211960,_0x109221={'GROOp':function(_0x3a42e,_0x3ebed0){return _0x3a42e===_0x3ebed0;}};try{return new CSSStyleSheet(),_0x109221['GROOp'](typeof new CSSStyleSheet()[_0x33c363(0x1d7)],_0x33c363(0x250));}catch(_0x17e15f){}return![];})()),queueDomReads=[],queueDomWrites=[],queueTask=(_0xf7c9bd,_0x3a22ba)=>_0x46a0ab=>{const _0x18c696=_0x211960,_0x51cfda={'sYgsm':function(_0x162b4a,_0x23ca6a){return _0x162b4a&_0x23ca6a;},'LOYDh':function(_0x1976ec,_0x3c380f){return _0x1976ec(_0x3c380f);}};_0xf7c9bd['push'](_0x46a0ab),!queuePending&&(queuePending=!![],_0x3a22ba&&_0x51cfda[_0x18c696(0x27d)](plt['$flags$'],0x4)?_0x51cfda[_0x18c696(0x1b3)](nextTick,flush):plt[_0x18c696(0x22a)](flush));},consume=_0x1ac4ed=>{const _0xd1c9cd=_0x211960,_0x21d6fe={'vxDGa':function(_0x14689b,_0x4bf2e8){return _0x14689b(_0x4bf2e8);}};for(let _0x2e08f4=0x0;_0x2e08f4<_0x1ac4ed['length'];_0x2e08f4++){try{_0x1ac4ed[_0x2e08f4](performance[_0xd1c9cd(0x215)]());}catch(_0x490523){_0x21d6fe[_0xd1c9cd(0x21e)](consoleError,_0x490523);}}_0x1ac4ed['length']=0x0;},flush=()=>{const _0x38b1b7=_0x211960,_0x3527fb={'ZEZeK':function(_0x44b6a0,_0x41a4bc){return _0x44b6a0(_0x41a4bc);},'ROQey':function(_0x280f43,_0x23445b){return _0x280f43>_0x23445b;}};_0x3527fb[_0x38b1b7(0x22b)](consume,queueDomReads);{_0x3527fb['ZEZeK'](consume,queueDomWrites),(queuePending=_0x3527fb[_0x38b1b7(0x210)](queueDomReads[_0x38b1b7(0x1fd)],0x0))&&plt[_0x38b1b7(0x22a)](flush);}},nextTick=_0x2d62ee=>promiseResolve()[_0x211960(0x236)](_0x2d62ee),writeTask=queueTask(queueDomWrites,!![]);exports[_0x211960(0x256)]=Host,exports[_0x211960(0x214)]=bootstrapLazy,exports[_0x211960(0x2b0)]=getElement,exports['h']=h,exports[_0x211960(0x28a)]=promiseResolve,exports[_0x211960(0x1b0)]=registerInstance,exports[_0x211960(0x1ca)]=setNonce;function _0x3cc7(){const _0x4e33eb=['exclude','vxDGa','entries','nNcfQ','cloez','createElement','ZuWqK','kaphD','wzcmg','getAttribute','DGQjd','push','$hostElement$','raf','ZEZeK','zegDC','GYwzI','kIiWw','href','qoVkg','fBLvH','259ARJdGF','attachStyles','sc-','adoptedStyleSheets','then','2985170GkwsTX','NxnBe','pgYvw','textContent','all','qlRdO','kBGNn','dgrYr','jRpto','pJxrJ','fCnvd','wYpDn','hydrated','eVtBx','nWIPg','uLzec','VnCkf','nPCSi','registerStyles','zrQdX','mFiKd','idkox','mpHaL','nMpZG','$ancestorComponent$','function','VCAvP','open','setProperty','add','tJtPC','Host','hasOwnProperty','KAXUj','keys','kHMOE','attachShadow','hIgyK','isProxied','default','nBSzZ','class','IvsIK','toLowerCase','innerHTML','resourcesUrl','2uqLhak','bqpeg','1132605fkSEyy','ewIKT','key','MjvQP','$elm$','XxEWd','define','tagName','http://www.w3.org/1999/xhtml','yMnIb','53400bIwtsN','DsWts','string','removeEventListener','UTmVQ','ONNAA','GMXtt','dxSpx','Cvzqw','false','77wBxHQG','insertBefore','sYgsm','AuyBR','HrHct','firstChild','$instanceValues$','__esModule','Bhzrd','XYQDQ','mcXKO','$attrs$','appendChild','mFmyG','OvBFj','promiseResolve','KYpFF','462029WKZeCQ','RjmCC','slice','PVFZD','FpSNv','SOJqK','className','LmFsu','$onReadyPromise$','yBanl','bwEaJ','LFQWF','gZtJa','classList','PVPjX','xIxel','head','createTextNode','Xfuzj','EpQJc','LTZnF','JCsnm','connectedCallback','isArray','VfogC','includes','frvad','PFBsJ','1565759oHvtrX','yUkIM','GCgWN','shadowRoot','$lazyBundleId$','isNaN','dMbYo','render','getElement','DzKtq','rhJVp','createInstance','$flags$','list','rLnbr','FwfYo','s-sc','nbDph','forEach','vJoPC','WDruR','KMPtA','nextSibling','eCces','CbIaU','cEKgA','$lazyInstance$','KgrKC','remove','TXLEN','ODLLI','TVVEq','data-styles','object','GmKMQ','teQVb','content','number','meta[name=\x22csp-nonce\x22]','17965QqZeUq','LBURl','cnxUL','ssetN','oesXW','EUTSV','ZnDhT','$nonce$','prototype','eNftC','ref','nodeType','$cmpMeta$','HISkz','customElements','lrYPM','VjKZI','createElementNS','registerInstance','LJogm','removeAttribute','LOYDh','fBJmO','jmp','uQGDa','154312dcoFdK','XyBNR','map','set','$key$','jdwys','$attrsToReflect$','get','addEventListener','ael','Zmatc','SovOZ','lNPtH','KCskX','error','filter','$text$','lfGNP','boolean','setNonce','ubEPg','$children$','host','s-p','freeze','removeProperty','componentOnReady','LaVRd','KMZkU','gzcHs','eqURJ','$tagName$','replaceSync','split','wSSfp','defineProperty','s-si','MFscq','DNdip','bJvEB','dispatchEvent','yiJaP','DWypF','EdCuP','moNJs','gYUqR','$resourcesUrl$','svg','nlLDk','YPNfh','NjvvL','meta[charset]','oiaej','has','jTMIt','Cylwl','DhTSI','HiWoa','Eklyt','DXcRM','pushfeedback','disconnectedCallback','apHNO','join','$onRenderResolve$','foreignObject','4LAnjYe','kbQEq','create','xjNGA','length','Euldz','54bajHie','OcBRk','s-rc','$members$','setAttribute','querySelector','$tag$','documentElement','WGeTa','baseURI','style','oLnNq','$onReadyResolve$','9vtkrkt','EyrOu','umDZS','postUpdate','ROQey','182TMesGY','parentNode','iltxJ','bootstrapLazy','now','xFdRH','$vnode$','ceRqG','nonce','DoutI','AcpUT','ObiSx'];_0x3cc7=function(){return _0x4e33eb;};return _0x3cc7();}
1
+ 'use strict';
2
+
3
+ function _interopNamespace(e) {
4
+ if (e && e.__esModule) return e;
5
+ var n = Object.create(null);
6
+ if (e) {
7
+ Object.keys(e).forEach(function (k) {
8
+ if (k !== 'default') {
9
+ var d = Object.getOwnPropertyDescriptor(e, k);
10
+ Object.defineProperty(n, k, d.get ? d : {
11
+ enumerable: true,
12
+ get: function () {
13
+ return e[k];
14
+ }
15
+ });
16
+ }
17
+ });
18
+ }
19
+ n['default'] = e;
20
+ return Object.freeze(n);
21
+ }
22
+
23
+ const NAMESPACE = 'pushfeedback';
24
+
25
+ /**
26
+ * Virtual DOM patching algorithm based on Snabbdom by
27
+ * Simon Friis Vindum (@paldepind)
28
+ * Licensed under the MIT License
29
+ * https://github.com/snabbdom/snabbdom/blob/master/LICENSE
30
+ *
31
+ * Modified for Stencil's renderer and slot projection
32
+ */
33
+ let scopeId;
34
+ let hostTagName;
35
+ let isSvgMode = false;
36
+ let queuePending = false;
37
+ const createTime = (fnName, tagName = '') => {
38
+ {
39
+ return () => {
40
+ return;
41
+ };
42
+ }
43
+ };
44
+ const uniqueTime = (key, measureText) => {
45
+ {
46
+ return () => {
47
+ return;
48
+ };
49
+ }
50
+ };
51
+ const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
52
+ /**
53
+ * Default style mode id
54
+ */
55
+ /**
56
+ * Reusable empty obj/array
57
+ * Don't add values to these!!
58
+ */
59
+ const EMPTY_OBJ = {};
60
+ /**
61
+ * Namespaces
62
+ */
63
+ const SVG_NS = 'http://www.w3.org/2000/svg';
64
+ const HTML_NS = 'http://www.w3.org/1999/xhtml';
65
+ const isDef = (v) => v != null;
66
+ const isComplexType = (o) => {
67
+ // https://jsperf.com/typeof-fn-object/5
68
+ o = typeof o;
69
+ return o === 'object' || o === 'function';
70
+ };
71
+ /**
72
+ * Helper method for querying a `meta` tag that contains a nonce value
73
+ * out of a DOM's head.
74
+ *
75
+ * @param doc The DOM containing the `head` to query against
76
+ * @returns The content of the meta tag representing the nonce value, or `undefined` if no tag
77
+ * exists or the tag has no content.
78
+ */
79
+ function queryNonceMetaTagContent(doc) {
80
+ var _a, _b, _c;
81
+ 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;
82
+ }
83
+ /**
84
+ * Production h() function based on Preact by
85
+ * Jason Miller (@developit)
86
+ * Licensed under the MIT License
87
+ * https://github.com/developit/preact/blob/master/LICENSE
88
+ *
89
+ * Modified for Stencil's compiler and vdom
90
+ */
91
+ // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, child?: d.ChildType): d.VNode;
92
+ // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
93
+ const h = (nodeName, vnodeData, ...children) => {
94
+ let child = null;
95
+ let key = null;
96
+ let simple = false;
97
+ let lastSimple = false;
98
+ const vNodeChildren = [];
99
+ const walk = (c) => {
100
+ for (let i = 0; i < c.length; i++) {
101
+ child = c[i];
102
+ if (Array.isArray(child)) {
103
+ walk(child);
104
+ }
105
+ else if (child != null && typeof child !== 'boolean') {
106
+ if ((simple = typeof nodeName !== 'function' && !isComplexType(child))) {
107
+ child = String(child);
108
+ }
109
+ if (simple && lastSimple) {
110
+ // If the previous child was simple (string), we merge both
111
+ vNodeChildren[vNodeChildren.length - 1].$text$ += child;
112
+ }
113
+ else {
114
+ // Append a new vNode, if it's text, we create a text vNode
115
+ vNodeChildren.push(simple ? newVNode(null, child) : child);
116
+ }
117
+ lastSimple = simple;
118
+ }
119
+ }
120
+ };
121
+ walk(children);
122
+ if (vnodeData) {
123
+ // normalize class / classname attributes
124
+ if (vnodeData.key) {
125
+ key = vnodeData.key;
126
+ }
127
+ {
128
+ const classData = vnodeData.className || vnodeData.class;
129
+ if (classData) {
130
+ vnodeData.class =
131
+ typeof classData !== 'object'
132
+ ? classData
133
+ : Object.keys(classData)
134
+ .filter((k) => classData[k])
135
+ .join(' ');
136
+ }
137
+ }
138
+ }
139
+ const vnode = newVNode(nodeName, null);
140
+ vnode.$attrs$ = vnodeData;
141
+ if (vNodeChildren.length > 0) {
142
+ vnode.$children$ = vNodeChildren;
143
+ }
144
+ {
145
+ vnode.$key$ = key;
146
+ }
147
+ return vnode;
148
+ };
149
+ /**
150
+ * A utility function for creating a virtual DOM node from a tag and some
151
+ * possible text content.
152
+ *
153
+ * @param tag the tag for this element
154
+ * @param text possible text content for the node
155
+ * @returns a newly-minted virtual DOM node
156
+ */
157
+ const newVNode = (tag, text) => {
158
+ const vnode = {
159
+ $flags$: 0,
160
+ $tag$: tag,
161
+ $text$: text,
162
+ $elm$: null,
163
+ $children$: null,
164
+ };
165
+ {
166
+ vnode.$attrs$ = null;
167
+ }
168
+ {
169
+ vnode.$key$ = null;
170
+ }
171
+ return vnode;
172
+ };
173
+ const Host = {};
174
+ /**
175
+ * Check whether a given node is a Host node or not
176
+ *
177
+ * @param node the virtual DOM node to check
178
+ * @returns whether it's a Host node or not
179
+ */
180
+ const isHost = (node) => node && node.$tag$ === Host;
181
+ /**
182
+ * Parse a new property value for a given property type.
183
+ *
184
+ * While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
185
+ * it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
186
+ * 1. `any`, the type given to `propValue` in the function signature
187
+ * 2. the type stored from `propType`.
188
+ *
189
+ * This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
190
+ *
191
+ * Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
192
+ * a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
193
+ * based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
194
+ * ```tsx
195
+ * <my-cmp prop-val={0}></my-cmp>
196
+ * ```
197
+ *
198
+ * HTML prop values on the other hand, will always a string
199
+ *
200
+ * @param propValue the new value to coerce to some type
201
+ * @param propType the type of the prop, expressed as a binary number
202
+ * @returns the parsed/coerced value
203
+ */
204
+ const parsePropertyValue = (propValue, propType) => {
205
+ // ensure this value is of the correct prop type
206
+ if (propValue != null && !isComplexType(propValue)) {
207
+ if (propType & 4 /* MEMBER_FLAGS.Boolean */) {
208
+ // per the HTML spec, any string value means it is a boolean true value
209
+ // but we'll cheat here and say that the string "false" is the boolean false
210
+ return propValue === 'false' ? false : propValue === '' || !!propValue;
211
+ }
212
+ if (propType & 1 /* MEMBER_FLAGS.String */) {
213
+ // could have been passed as a number or boolean
214
+ // but we still want it as a string
215
+ return String(propValue);
216
+ }
217
+ // redundant return here for better minification
218
+ return propValue;
219
+ }
220
+ // not sure exactly what type we want
221
+ // so no need to change to a different type
222
+ return propValue;
223
+ };
224
+ const getElement = (ref) => (getHostRef(ref).$hostElement$ );
225
+ /**
226
+ * Helper function to create & dispatch a custom Event on a provided target
227
+ * @param elm the target of the Event
228
+ * @param name the name to give the custom Event
229
+ * @param opts options for configuring a custom Event
230
+ * @returns the custom Event
231
+ */
232
+ const emitEvent = (elm, name, opts) => {
233
+ const ev = plt.ce(name, opts);
234
+ elm.dispatchEvent(ev);
235
+ return ev;
236
+ };
237
+ const rootAppliedStyles = /*@__PURE__*/ new WeakMap();
238
+ const registerStyle = (scopeId, cssText, allowCS) => {
239
+ let style = styles.get(scopeId);
240
+ if (supportsConstructableStylesheets && allowCS) {
241
+ style = (style || new CSSStyleSheet());
242
+ if (typeof style === 'string') {
243
+ style = cssText;
244
+ }
245
+ else {
246
+ style.replaceSync(cssText);
247
+ }
248
+ }
249
+ else {
250
+ style = cssText;
251
+ }
252
+ styles.set(scopeId, style);
253
+ };
254
+ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
255
+ var _a;
256
+ let scopeId = getScopeId(cmpMeta);
257
+ const style = styles.get(scopeId);
258
+ // if an element is NOT connected then getRootNode() will return the wrong root node
259
+ // so the fallback is to always use the document for the root node in those cases
260
+ styleContainerNode = styleContainerNode.nodeType === 11 /* NODE_TYPE.DocumentFragment */ ? styleContainerNode : doc;
261
+ if (style) {
262
+ if (typeof style === 'string') {
263
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
264
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
265
+ let styleElm;
266
+ if (!appliedStyles) {
267
+ rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
268
+ }
269
+ if (!appliedStyles.has(scopeId)) {
270
+ {
271
+ {
272
+ styleElm = doc.createElement('style');
273
+ styleElm.innerHTML = style;
274
+ }
275
+ // Apply CSP nonce to the style tag if it exists
276
+ const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
277
+ if (nonce != null) {
278
+ styleElm.setAttribute('nonce', nonce);
279
+ }
280
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
281
+ }
282
+ if (appliedStyles) {
283
+ appliedStyles.add(scopeId);
284
+ }
285
+ }
286
+ }
287
+ else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
288
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
289
+ }
290
+ }
291
+ return scopeId;
292
+ };
293
+ const attachStyles = (hostRef) => {
294
+ const cmpMeta = hostRef.$cmpMeta$;
295
+ const elm = hostRef.$hostElement$;
296
+ const flags = cmpMeta.$flags$;
297
+ const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
298
+ const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
299
+ if (flags & 10 /* CMP_FLAGS.needsScopedEncapsulation */) {
300
+ // only required when we're NOT using native shadow dom (slot)
301
+ // or this browser doesn't support native shadow dom
302
+ // and this host element was NOT created with SSR
303
+ // let's pick out the inner content for slot projection
304
+ // create a node to represent where the original
305
+ // content was first placed, which is useful later on
306
+ // DOM WRITE!!
307
+ elm['s-sc'] = scopeId;
308
+ elm.classList.add(scopeId + '-h');
309
+ }
310
+ endAttachStyles();
311
+ };
312
+ const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
313
+ /**
314
+ * Production setAccessor() function based on Preact by
315
+ * Jason Miller (@developit)
316
+ * Licensed under the MIT License
317
+ * https://github.com/developit/preact/blob/master/LICENSE
318
+ *
319
+ * Modified for Stencil's compiler and vdom
320
+ */
321
+ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
322
+ if (oldValue !== newValue) {
323
+ let isProp = isMemberInElement(elm, memberName);
324
+ let ln = memberName.toLowerCase();
325
+ if (memberName === 'class') {
326
+ const classList = elm.classList;
327
+ const oldClasses = parseClassList(oldValue);
328
+ const newClasses = parseClassList(newValue);
329
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
330
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
331
+ }
332
+ else if (memberName === 'style') {
333
+ // update style attribute, css properties and values
334
+ {
335
+ for (const prop in oldValue) {
336
+ if (!newValue || newValue[prop] == null) {
337
+ if (prop.includes('-')) {
338
+ elm.style.removeProperty(prop);
339
+ }
340
+ else {
341
+ elm.style[prop] = '';
342
+ }
343
+ }
344
+ }
345
+ }
346
+ for (const prop in newValue) {
347
+ if (!oldValue || newValue[prop] !== oldValue[prop]) {
348
+ if (prop.includes('-')) {
349
+ elm.style.setProperty(prop, newValue[prop]);
350
+ }
351
+ else {
352
+ elm.style[prop] = newValue[prop];
353
+ }
354
+ }
355
+ }
356
+ }
357
+ else if (memberName === 'key')
358
+ ;
359
+ else if (memberName === 'ref') {
360
+ // minifier will clean this up
361
+ if (newValue) {
362
+ newValue(elm);
363
+ }
364
+ }
365
+ else if ((!isProp ) &&
366
+ memberName[0] === 'o' &&
367
+ memberName[1] === 'n') {
368
+ // Event Handlers
369
+ // so if the member name starts with "on" and the 3rd characters is
370
+ // a capital letter, and it's not already a member on the element,
371
+ // then we're assuming it's an event listener
372
+ if (memberName[2] === '-') {
373
+ // on- prefixed events
374
+ // allows to be explicit about the dom event to listen without any magic
375
+ // under the hood:
376
+ // <my-cmp on-click> // listens for "click"
377
+ // <my-cmp on-Click> // listens for "Click"
378
+ // <my-cmp on-ionChange> // listens for "ionChange"
379
+ // <my-cmp on-EVENTS> // listens for "EVENTS"
380
+ memberName = memberName.slice(3);
381
+ }
382
+ else if (isMemberInElement(win, ln)) {
383
+ // standard event
384
+ // the JSX attribute could have been "onMouseOver" and the
385
+ // member name "onmouseover" is on the window's prototype
386
+ // so let's add the listener "mouseover", which is all lowercased
387
+ memberName = ln.slice(2);
388
+ }
389
+ else {
390
+ // custom event
391
+ // the JSX attribute could have been "onMyCustomEvent"
392
+ // so let's trim off the "on" prefix and lowercase the first character
393
+ // and add the listener "myCustomEvent"
394
+ // except for the first character, we keep the event name case
395
+ memberName = ln[2] + memberName.slice(3);
396
+ }
397
+ if (oldValue) {
398
+ plt.rel(elm, memberName, oldValue, false);
399
+ }
400
+ if (newValue) {
401
+ plt.ael(elm, memberName, newValue, false);
402
+ }
403
+ }
404
+ else {
405
+ // Set property if it exists and it's not a SVG
406
+ const isComplex = isComplexType(newValue);
407
+ if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
408
+ try {
409
+ if (!elm.tagName.includes('-')) {
410
+ const n = newValue == null ? '' : newValue;
411
+ // Workaround for Safari, moving the <input> caret when re-assigning the same valued
412
+ if (memberName === 'list') {
413
+ isProp = false;
414
+ }
415
+ else if (oldValue == null || elm[memberName] != n) {
416
+ elm[memberName] = n;
417
+ }
418
+ }
419
+ else {
420
+ elm[memberName] = newValue;
421
+ }
422
+ }
423
+ catch (e) { }
424
+ }
425
+ if (newValue == null || newValue === false) {
426
+ if (newValue !== false || elm.getAttribute(memberName) === '') {
427
+ {
428
+ elm.removeAttribute(memberName);
429
+ }
430
+ }
431
+ }
432
+ else if ((!isProp || flags & 4 /* VNODE_FLAGS.isHost */ || isSvg) && !isComplex) {
433
+ newValue = newValue === true ? '' : newValue;
434
+ {
435
+ elm.setAttribute(memberName, newValue);
436
+ }
437
+ }
438
+ }
439
+ }
440
+ };
441
+ const parseClassListRegex = /\s/;
442
+ const parseClassList = (value) => (!value ? [] : value.split(parseClassListRegex));
443
+ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
444
+ // if the element passed in is a shadow root, which is a document fragment
445
+ // then we want to be adding attrs/props to the shadow root's "host" element
446
+ // if it's not a shadow root, then we add attrs/props to the same element
447
+ const elm = newVnode.$elm$.nodeType === 11 /* NODE_TYPE.DocumentFragment */ && newVnode.$elm$.host
448
+ ? newVnode.$elm$.host
449
+ : newVnode.$elm$;
450
+ const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ;
451
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
452
+ {
453
+ // remove attributes no longer present on the vnode by setting them to undefined
454
+ for (memberName in oldVnodeAttrs) {
455
+ if (!(memberName in newVnodeAttrs)) {
456
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], undefined, isSvgMode, newVnode.$flags$);
457
+ }
458
+ }
459
+ }
460
+ // add new & update changed attributes
461
+ for (memberName in newVnodeAttrs) {
462
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode, newVnode.$flags$);
463
+ }
464
+ };
465
+ /**
466
+ * Create a DOM Node corresponding to one of the children of a given VNode.
467
+ *
468
+ * @param oldParentVNode the parent VNode from the previous render
469
+ * @param newParentVNode the parent VNode from the current render
470
+ * @param childIndex the index of the VNode, in the _new_ parent node's
471
+ * children, for which we will create a new DOM node
472
+ * @param parentElm the parent DOM node which our new node will be a child of
473
+ * @returns the newly created node
474
+ */
475
+ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
476
+ // tslint:disable-next-line: prefer-const
477
+ const newVNode = newParentVNode.$children$[childIndex];
478
+ let i = 0;
479
+ let elm;
480
+ let childNode;
481
+ if (newVNode.$text$ !== null) {
482
+ // create text node
483
+ elm = newVNode.$elm$ = doc.createTextNode(newVNode.$text$);
484
+ }
485
+ else {
486
+ if (!isSvgMode) {
487
+ isSvgMode = newVNode.$tag$ === 'svg';
488
+ }
489
+ // create element
490
+ elm = newVNode.$elm$ = (doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$tag$)
491
+ );
492
+ if (isSvgMode && newVNode.$tag$ === 'foreignObject') {
493
+ isSvgMode = false;
494
+ }
495
+ // add css classes, attrs, props, listeners, etc.
496
+ {
497
+ updateElement(null, newVNode, isSvgMode);
498
+ }
499
+ if (isDef(scopeId) && elm['s-si'] !== scopeId) {
500
+ // if there is a scopeId and this is the initial render
501
+ // then let's add the scopeId as a css class
502
+ elm.classList.add((elm['s-si'] = scopeId));
503
+ }
504
+ if (newVNode.$children$) {
505
+ for (i = 0; i < newVNode.$children$.length; ++i) {
506
+ // create the node
507
+ childNode = createElm(oldParentVNode, newVNode, i);
508
+ // return node could have been null
509
+ if (childNode) {
510
+ // append our new node
511
+ elm.appendChild(childNode);
512
+ }
513
+ }
514
+ }
515
+ {
516
+ if (newVNode.$tag$ === 'svg') {
517
+ // Only reset the SVG context when we're exiting <svg> element
518
+ isSvgMode = false;
519
+ }
520
+ else if (elm.tagName === 'foreignObject') {
521
+ // Reenter SVG context when we're exiting <foreignObject> element
522
+ isSvgMode = true;
523
+ }
524
+ }
525
+ }
526
+ return elm;
527
+ };
528
+ /**
529
+ * Create DOM nodes corresponding to a list of {@link d.Vnode} objects and
530
+ * add them to the DOM in the appropriate place.
531
+ *
532
+ * @param parentElm the DOM node which should be used as a parent for the new
533
+ * DOM nodes
534
+ * @param before a child of the `parentElm` which the new children should be
535
+ * inserted before (optional)
536
+ * @param parentVNode the parent virtual DOM node
537
+ * @param vnodes the new child virtual DOM nodes to produce DOM nodes for
538
+ * @param startIdx the index in the child virtual DOM nodes at which to start
539
+ * creating DOM nodes (inclusive)
540
+ * @param endIdx the index in the child virtual DOM nodes at which to stop
541
+ * creating DOM nodes (inclusive)
542
+ */
543
+ const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
544
+ let containerElm = (parentElm);
545
+ let childNode;
546
+ if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
547
+ containerElm = containerElm.shadowRoot;
548
+ }
549
+ for (; startIdx <= endIdx; ++startIdx) {
550
+ if (vnodes[startIdx]) {
551
+ childNode = createElm(null, parentVNode, startIdx);
552
+ if (childNode) {
553
+ vnodes[startIdx].$elm$ = childNode;
554
+ containerElm.insertBefore(childNode, before);
555
+ }
556
+ }
557
+ }
558
+ };
559
+ /**
560
+ * Remove the DOM elements corresponding to a list of {@link d.VNode} objects.
561
+ * This can be used to, for instance, clean up after a list of children which
562
+ * should no longer be shown.
563
+ *
564
+ * This function also handles some of Stencil's slot relocation logic.
565
+ *
566
+ * @param vnodes a list of virtual DOM nodes to remove
567
+ * @param startIdx the index at which to start removing nodes (inclusive)
568
+ * @param endIdx the index at which to stop removing nodes (inclusive)
569
+ * @param vnode a VNode
570
+ * @param elm an element
571
+ */
572
+ const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
573
+ for (; startIdx <= endIdx; ++startIdx) {
574
+ if ((vnode = vnodes[startIdx])) {
575
+ elm = vnode.$elm$;
576
+ callNodeRefs(vnode);
577
+ // remove the vnode's element from the dom
578
+ elm.remove();
579
+ }
580
+ }
581
+ };
582
+ /**
583
+ * Reconcile the children of a new VNode with the children of an old VNode by
584
+ * traversing the two collections of children, identifying nodes that are
585
+ * conserved or changed, calling out to `patch` to make any necessary
586
+ * updates to the DOM, and rearranging DOM nodes as needed.
587
+ *
588
+ * The algorithm for reconciling children works by analyzing two 'windows' onto
589
+ * the two arrays of children (`oldCh` and `newCh`). We keep track of the
590
+ * 'windows' by storing start and end indices and references to the
591
+ * corresponding array entries. Initially the two 'windows' are basically equal
592
+ * to the entire array, but we progressively narrow the windows until there are
593
+ * no children left to update by doing the following:
594
+ *
595
+ * 1. Skip any `null` entries at the beginning or end of the two arrays, so
596
+ * that if we have an initial array like the following we'll end up dealing
597
+ * only with a window bounded by the highlighted elements:
598
+ *
599
+ * [null, null, VNode1 , ... , VNode2, null, null]
600
+ * ^^^^^^ ^^^^^^
601
+ *
602
+ * 2. Check to see if the elements at the head and tail positions are equal
603
+ * across the windows. This will basically detect elements which haven't
604
+ * been added, removed, or changed position, i.e. if you had the following
605
+ * VNode elements (represented as HTML):
606
+ *
607
+ * oldVNode: `<div><p><span>HEY</span></p></div>`
608
+ * newVNode: `<div><p><span>THERE</span></p></div>`
609
+ *
610
+ * Then when comparing the children of the `<div>` tag we check the equality
611
+ * of the VNodes corresponding to the `<p>` tags and, since they are the
612
+ * same tag in the same position, we'd be able to avoid completely
613
+ * re-rendering the subtree under them with a new DOM element and would just
614
+ * call out to `patch` to handle reconciling their children and so on.
615
+ *
616
+ * 3. Check, for both windows, to see if the element at the beginning of the
617
+ * window corresponds to the element at the end of the other window. This is
618
+ * a heuristic which will let us identify _some_ situations in which
619
+ * elements have changed position, for instance it _should_ detect that the
620
+ * children nodes themselves have not changed but merely moved in the
621
+ * following example:
622
+ *
623
+ * oldVNode: `<div><element-one /><element-two /></div>`
624
+ * newVNode: `<div><element-two /><element-one /></div>`
625
+ *
626
+ * If we find cases like this then we also need to move the concrete DOM
627
+ * elements corresponding to the moved children to write the re-order to the
628
+ * DOM.
629
+ *
630
+ * 4. Finally, if VNodes have the `key` attribute set on them we check for any
631
+ * nodes in the old children which have the same key as the first element in
632
+ * our window on the new children. If we find such a node we handle calling
633
+ * out to `patch`, moving relevant DOM nodes, and so on, in accordance with
634
+ * what we find.
635
+ *
636
+ * Finally, once we've narrowed our 'windows' to the point that either of them
637
+ * collapse (i.e. they have length 0) we then handle any remaining VNode
638
+ * insertion or deletion that needs to happen to get a DOM state that correctly
639
+ * reflects the new child VNodes. If, for instance, after our window on the old
640
+ * children has collapsed we still have more nodes on the new children that
641
+ * we haven't dealt with yet then we need to add them, or if the new children
642
+ * collapse but we still have unhandled _old_ children then we need to make
643
+ * sure the corresponding DOM nodes are removed.
644
+ *
645
+ * @param parentElm the node into which the parent VNode is rendered
646
+ * @param oldCh the old children of the parent node
647
+ * @param newVNode the new VNode which will replace the parent
648
+ * @param newCh the new children of the parent node
649
+ */
650
+ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
651
+ let oldStartIdx = 0;
652
+ let newStartIdx = 0;
653
+ let idxInOld = 0;
654
+ let i = 0;
655
+ let oldEndIdx = oldCh.length - 1;
656
+ let oldStartVnode = oldCh[0];
657
+ let oldEndVnode = oldCh[oldEndIdx];
658
+ let newEndIdx = newCh.length - 1;
659
+ let newStartVnode = newCh[0];
660
+ let newEndVnode = newCh[newEndIdx];
661
+ let node;
662
+ let elmToMove;
663
+ while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
664
+ if (oldStartVnode == null) {
665
+ // VNode might have been moved left
666
+ oldStartVnode = oldCh[++oldStartIdx];
667
+ }
668
+ else if (oldEndVnode == null) {
669
+ oldEndVnode = oldCh[--oldEndIdx];
670
+ }
671
+ else if (newStartVnode == null) {
672
+ newStartVnode = newCh[++newStartIdx];
673
+ }
674
+ else if (newEndVnode == null) {
675
+ newEndVnode = newCh[--newEndIdx];
676
+ }
677
+ else if (isSameVnode(oldStartVnode, newStartVnode)) {
678
+ // if the start nodes are the same then we should patch the new VNode
679
+ // onto the old one, and increment our `newStartIdx` and `oldStartIdx`
680
+ // indices to reflect that. We don't need to move any DOM Nodes around
681
+ // since things are matched up in order.
682
+ patch(oldStartVnode, newStartVnode);
683
+ oldStartVnode = oldCh[++oldStartIdx];
684
+ newStartVnode = newCh[++newStartIdx];
685
+ }
686
+ else if (isSameVnode(oldEndVnode, newEndVnode)) {
687
+ // likewise, if the end nodes are the same we patch new onto old and
688
+ // decrement our end indices, and also likewise in this case we don't
689
+ // need to move any DOM Nodes.
690
+ patch(oldEndVnode, newEndVnode);
691
+ oldEndVnode = oldCh[--oldEndIdx];
692
+ newEndVnode = newCh[--newEndIdx];
693
+ }
694
+ else if (isSameVnode(oldStartVnode, newEndVnode)) {
695
+ patch(oldStartVnode, newEndVnode);
696
+ // We need to move the element for `oldStartVnode` into a position which
697
+ // will be appropriate for `newEndVnode`. For this we can use
698
+ // `.insertBefore` and `oldEndVnode.$elm$.nextSibling`. If there is a
699
+ // sibling for `oldEndVnode.$elm$` then we want to move the DOM node for
700
+ // `oldStartVnode` between `oldEndVnode` and it's sibling, like so:
701
+ //
702
+ // <old-start-node />
703
+ // <some-intervening-node />
704
+ // <old-end-node />
705
+ // <!-- -> <-- `oldStartVnode.$elm$` should be inserted here
706
+ // <next-sibling />
707
+ //
708
+ // If instead `oldEndVnode.$elm$` has no sibling then we just want to put
709
+ // the node for `oldStartVnode` at the end of the children of
710
+ // `parentElm`. Luckily, `Node.nextSibling` will return `null` if there
711
+ // aren't any siblings, and passing `null` to `Node.insertBefore` will
712
+ // append it to the children of the parent element.
713
+ parentElm.insertBefore(oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
714
+ oldStartVnode = oldCh[++oldStartIdx];
715
+ newEndVnode = newCh[--newEndIdx];
716
+ }
717
+ else if (isSameVnode(oldEndVnode, newStartVnode)) {
718
+ patch(oldEndVnode, newStartVnode);
719
+ // We've already checked above if `oldStartVnode` and `newStartVnode` are
720
+ // the same node, so since we're here we know that they are not. Thus we
721
+ // can move the element for `oldEndVnode` _before_ the element for
722
+ // `oldStartVnode`, leaving `oldStartVnode` to be reconciled in the
723
+ // future.
724
+ parentElm.insertBefore(oldEndVnode.$elm$, oldStartVnode.$elm$);
725
+ oldEndVnode = oldCh[--oldEndIdx];
726
+ newStartVnode = newCh[++newStartIdx];
727
+ }
728
+ else {
729
+ // Here we do some checks to match up old and new nodes based on the
730
+ // `$key$` attribute, which is set by putting a `key="my-key"` attribute
731
+ // in the JSX for a DOM element in the implementation of a Stencil
732
+ // component.
733
+ //
734
+ // First we check to see if there are any nodes in the array of old
735
+ // children which have the same key as the first node in the new
736
+ // children.
737
+ idxInOld = -1;
738
+ {
739
+ for (i = oldStartIdx; i <= oldEndIdx; ++i) {
740
+ if (oldCh[i] && oldCh[i].$key$ !== null && oldCh[i].$key$ === newStartVnode.$key$) {
741
+ idxInOld = i;
742
+ break;
743
+ }
744
+ }
745
+ }
746
+ if (idxInOld >= 0) {
747
+ // We found a node in the old children which matches up with the first
748
+ // node in the new children! So let's deal with that
749
+ elmToMove = oldCh[idxInOld];
750
+ if (elmToMove.$tag$ !== newStartVnode.$tag$) {
751
+ // the tag doesn't match so we'll need a new DOM element
752
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld);
753
+ }
754
+ else {
755
+ patch(elmToMove, newStartVnode);
756
+ // invalidate the matching old node so that we won't try to update it
757
+ // again later on
758
+ oldCh[idxInOld] = undefined;
759
+ node = elmToMove.$elm$;
760
+ }
761
+ newStartVnode = newCh[++newStartIdx];
762
+ }
763
+ else {
764
+ // We either didn't find an element in the old children that matches
765
+ // the key of the first new child OR the build is not using `key`
766
+ // attributes at all. In either case we need to create a new element
767
+ // for the new node.
768
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx);
769
+ newStartVnode = newCh[++newStartIdx];
770
+ }
771
+ if (node) {
772
+ // if we created a new node then handle inserting it to the DOM
773
+ {
774
+ oldStartVnode.$elm$.parentNode.insertBefore(node, oldStartVnode.$elm$);
775
+ }
776
+ }
777
+ }
778
+ }
779
+ if (oldStartIdx > oldEndIdx) {
780
+ // we have some more new nodes to add which don't match up with old nodes
781
+ addVnodes(parentElm, newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$, newVNode, newCh, newStartIdx, newEndIdx);
782
+ }
783
+ else if (newStartIdx > newEndIdx) {
784
+ // there are nodes in the `oldCh` array which no longer correspond to nodes
785
+ // in the new array, so lets remove them (which entails cleaning up the
786
+ // relevant DOM nodes)
787
+ removeVnodes(oldCh, oldStartIdx, oldEndIdx);
788
+ }
789
+ };
790
+ /**
791
+ * Compare two VNodes to determine if they are the same
792
+ *
793
+ * **NB**: This function is an equality _heuristic_ based on the available
794
+ * information set on the two VNodes and can be misleading under certain
795
+ * circumstances. In particular, if the two nodes do not have `key` attrs
796
+ * (available under `$key$` on VNodes) then the function falls back on merely
797
+ * checking that they have the same tag.
798
+ *
799
+ * So, in other words, if `key` attrs are not set on VNodes which may be
800
+ * changing order within a `children` array or something along those lines then
801
+ * we could obtain a false negative and then have to do needless re-rendering
802
+ * (i.e. we'd say two VNodes aren't equal when in fact they should be).
803
+ *
804
+ * @param leftVNode the first VNode to check
805
+ * @param rightVNode the second VNode to check
806
+ * @returns whether they're equal or not
807
+ */
808
+ const isSameVnode = (leftVNode, rightVNode) => {
809
+ // compare if two vnode to see if they're "technically" the same
810
+ // need to have the same element tag, and same key to be the same
811
+ if (leftVNode.$tag$ === rightVNode.$tag$) {
812
+ // this will be set if components in the build have `key` attrs set on them
813
+ {
814
+ return leftVNode.$key$ === rightVNode.$key$;
815
+ }
816
+ }
817
+ return false;
818
+ };
819
+ /**
820
+ * Handle reconciling an outdated VNode with a new one which corresponds to
821
+ * it. This function handles flushing updates to the DOM and reconciling the
822
+ * children of the two nodes (if any).
823
+ *
824
+ * @param oldVNode an old VNode whose DOM element and children we want to update
825
+ * @param newVNode a new VNode representing an updated version of the old one
826
+ */
827
+ const patch = (oldVNode, newVNode) => {
828
+ const elm = (newVNode.$elm$ = oldVNode.$elm$);
829
+ const oldChildren = oldVNode.$children$;
830
+ const newChildren = newVNode.$children$;
831
+ const tag = newVNode.$tag$;
832
+ const text = newVNode.$text$;
833
+ if (text === null) {
834
+ {
835
+ // test if we're rendering an svg element, or still rendering nodes inside of one
836
+ // only add this to the when the compiler sees we're using an svg somewhere
837
+ isSvgMode = tag === 'svg' ? true : tag === 'foreignObject' ? false : isSvgMode;
838
+ }
839
+ {
840
+ if (tag === 'slot')
841
+ ;
842
+ else {
843
+ // either this is the first render of an element OR it's an update
844
+ // AND we already know it's possible it could have changed
845
+ // this updates the element's css classes, attrs, props, listeners, etc.
846
+ updateElement(oldVNode, newVNode, isSvgMode);
847
+ }
848
+ }
849
+ if (oldChildren !== null && newChildren !== null) {
850
+ // looks like there's child vnodes for both the old and new vnodes
851
+ // so we need to call `updateChildren` to reconcile them
852
+ updateChildren(elm, oldChildren, newVNode, newChildren);
853
+ }
854
+ else if (newChildren !== null) {
855
+ // no old child vnodes, but there are new child vnodes to add
856
+ if (oldVNode.$text$ !== null) {
857
+ // the old vnode was text, so be sure to clear it out
858
+ elm.textContent = '';
859
+ }
860
+ // add the new vnode children
861
+ addVnodes(elm, null, newVNode, newChildren, 0, newChildren.length - 1);
862
+ }
863
+ else if (oldChildren !== null) {
864
+ // no new child vnodes, but there are old child vnodes to remove
865
+ removeVnodes(oldChildren, 0, oldChildren.length - 1);
866
+ }
867
+ if (isSvgMode && tag === 'svg') {
868
+ isSvgMode = false;
869
+ }
870
+ }
871
+ else if (oldVNode.$text$ !== text) {
872
+ // update the text content for the text only vnode
873
+ // and also only if the text is different than before
874
+ elm.data = text;
875
+ }
876
+ };
877
+ const callNodeRefs = (vNode) => {
878
+ {
879
+ vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
880
+ vNode.$children$ && vNode.$children$.map(callNodeRefs);
881
+ }
882
+ };
883
+ /**
884
+ * The main entry point for Stencil's virtual DOM-based rendering engine
885
+ *
886
+ * Given a {@link d.HostRef} container and some virtual DOM nodes, this
887
+ * function will handle creating a virtual DOM tree with a single root, patching
888
+ * the current virtual DOM tree onto an old one (if any), dealing with slot
889
+ * relocation, and reflecting attributes.
890
+ *
891
+ * @param hostRef data needed to root and render the virtual DOM tree, such as
892
+ * the DOM node into which it should be rendered.
893
+ * @param renderFnResults the virtual DOM nodes to be rendered
894
+ */
895
+ const renderVdom = (hostRef, renderFnResults) => {
896
+ const hostElm = hostRef.$hostElement$;
897
+ const cmpMeta = hostRef.$cmpMeta$;
898
+ const oldVNode = hostRef.$vnode$ || newVNode(null, null);
899
+ const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
900
+ hostTagName = hostElm.tagName;
901
+ if (cmpMeta.$attrsToReflect$) {
902
+ rootVnode.$attrs$ = rootVnode.$attrs$ || {};
903
+ cmpMeta.$attrsToReflect$.map(([propName, attribute]) => (rootVnode.$attrs$[attribute] = hostElm[propName]));
904
+ }
905
+ rootVnode.$tag$ = null;
906
+ rootVnode.$flags$ |= 4 /* VNODE_FLAGS.isHost */;
907
+ hostRef.$vnode$ = rootVnode;
908
+ rootVnode.$elm$ = oldVNode.$elm$ = (hostElm.shadowRoot || hostElm );
909
+ {
910
+ scopeId = hostElm['s-sc'];
911
+ }
912
+ // synchronous patch
913
+ patch(oldVNode, rootVnode);
914
+ };
915
+ const attachToAncestor = (hostRef, ancestorComponent) => {
916
+ if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
917
+ ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
918
+ }
919
+ };
920
+ const scheduleUpdate = (hostRef, isInitialLoad) => {
921
+ {
922
+ hostRef.$flags$ |= 16 /* HOST_FLAGS.isQueuedForUpdate */;
923
+ }
924
+ if (hostRef.$flags$ & 4 /* HOST_FLAGS.isWaitingForChildren */) {
925
+ hostRef.$flags$ |= 512 /* HOST_FLAGS.needsRerender */;
926
+ return;
927
+ }
928
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$);
929
+ // there is no ancestor component or the ancestor component
930
+ // has already fired off its lifecycle update then
931
+ // fire off the initial update
932
+ const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
933
+ return writeTask(dispatch) ;
934
+ };
935
+ const dispatchHooks = (hostRef, isInitialLoad) => {
936
+ const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
937
+ const instance = hostRef.$lazyInstance$ ;
938
+ let promise;
939
+ if (isInitialLoad) {
940
+ {
941
+ promise = safeCall(instance, 'componentWillLoad');
942
+ }
943
+ }
944
+ endSchedule();
945
+ return then(promise, () => updateComponent(hostRef, instance, isInitialLoad));
946
+ };
947
+ const updateComponent = async (hostRef, instance, isInitialLoad) => {
948
+ // updateComponent
949
+ const elm = hostRef.$hostElement$;
950
+ const endUpdate = createTime('update', hostRef.$cmpMeta$.$tagName$);
951
+ const rc = elm['s-rc'];
952
+ if (isInitialLoad) {
953
+ // DOM WRITE!
954
+ attachStyles(hostRef);
955
+ }
956
+ const endRender = createTime('render', hostRef.$cmpMeta$.$tagName$);
957
+ {
958
+ callRender(hostRef, instance);
959
+ }
960
+ if (rc) {
961
+ // ok, so turns out there are some child host elements
962
+ // waiting on this parent element to load
963
+ // let's fire off all update callbacks waiting
964
+ rc.map((cb) => cb());
965
+ elm['s-rc'] = undefined;
966
+ }
967
+ endRender();
968
+ endUpdate();
969
+ {
970
+ const childrenPromises = elm['s-p'];
971
+ const postUpdate = () => postUpdateComponent(hostRef);
972
+ if (childrenPromises.length === 0) {
973
+ postUpdate();
974
+ }
975
+ else {
976
+ Promise.all(childrenPromises).then(postUpdate);
977
+ hostRef.$flags$ |= 4 /* HOST_FLAGS.isWaitingForChildren */;
978
+ childrenPromises.length = 0;
979
+ }
980
+ }
981
+ };
982
+ const callRender = (hostRef, instance, elm) => {
983
+ try {
984
+ instance = instance.render() ;
985
+ {
986
+ hostRef.$flags$ &= ~16 /* HOST_FLAGS.isQueuedForUpdate */;
987
+ }
988
+ {
989
+ hostRef.$flags$ |= 2 /* HOST_FLAGS.hasRendered */;
990
+ }
991
+ {
992
+ {
993
+ // looks like we've got child nodes to render into this host element
994
+ // or we need to update the css class/attrs on the host element
995
+ // DOM WRITE!
996
+ {
997
+ renderVdom(hostRef, instance);
998
+ }
999
+ }
1000
+ }
1001
+ }
1002
+ catch (e) {
1003
+ consoleError(e, hostRef.$hostElement$);
1004
+ }
1005
+ return null;
1006
+ };
1007
+ const postUpdateComponent = (hostRef) => {
1008
+ const tagName = hostRef.$cmpMeta$.$tagName$;
1009
+ const elm = hostRef.$hostElement$;
1010
+ const endPostUpdate = createTime('postUpdate', tagName);
1011
+ const instance = hostRef.$lazyInstance$ ;
1012
+ const ancestorComponent = hostRef.$ancestorComponent$;
1013
+ if (!(hostRef.$flags$ & 64 /* HOST_FLAGS.hasLoadedComponent */)) {
1014
+ hostRef.$flags$ |= 64 /* HOST_FLAGS.hasLoadedComponent */;
1015
+ {
1016
+ // DOM WRITE!
1017
+ addHydratedFlag(elm);
1018
+ }
1019
+ {
1020
+ safeCall(instance, 'componentDidLoad');
1021
+ }
1022
+ endPostUpdate();
1023
+ {
1024
+ hostRef.$onReadyResolve$(elm);
1025
+ if (!ancestorComponent) {
1026
+ appDidLoad();
1027
+ }
1028
+ }
1029
+ }
1030
+ else {
1031
+ endPostUpdate();
1032
+ }
1033
+ // load events fire from bottom to top
1034
+ // the deepest elements load first then bubbles up
1035
+ {
1036
+ if (hostRef.$onRenderResolve$) {
1037
+ hostRef.$onRenderResolve$();
1038
+ hostRef.$onRenderResolve$ = undefined;
1039
+ }
1040
+ if (hostRef.$flags$ & 512 /* HOST_FLAGS.needsRerender */) {
1041
+ nextTick(() => scheduleUpdate(hostRef, false));
1042
+ }
1043
+ hostRef.$flags$ &= ~(4 /* HOST_FLAGS.isWaitingForChildren */ | 512 /* HOST_FLAGS.needsRerender */);
1044
+ }
1045
+ // ( •_•)
1046
+ // ( •_•)>⌐■-■
1047
+ // (⌐■_■)
1048
+ };
1049
+ const appDidLoad = (who) => {
1050
+ // on appload
1051
+ // we have finish the first big initial render
1052
+ {
1053
+ addHydratedFlag(doc.documentElement);
1054
+ }
1055
+ nextTick(() => emitEvent(win, 'appload', { detail: { namespace: NAMESPACE } }));
1056
+ };
1057
+ const safeCall = (instance, method, arg) => {
1058
+ if (instance && instance[method]) {
1059
+ try {
1060
+ return instance[method](arg);
1061
+ }
1062
+ catch (e) {
1063
+ consoleError(e);
1064
+ }
1065
+ }
1066
+ return undefined;
1067
+ };
1068
+ const then = (promise, thenFn) => {
1069
+ return promise && promise.then ? promise.then(thenFn) : thenFn();
1070
+ };
1071
+ const addHydratedFlag = (elm) => elm.classList.add('hydrated')
1072
+ ;
1073
+ const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1074
+ const setValue = (ref, propName, newVal, cmpMeta) => {
1075
+ // check our new property value against our internal value
1076
+ const hostRef = getHostRef(ref);
1077
+ const oldVal = hostRef.$instanceValues$.get(propName);
1078
+ const flags = hostRef.$flags$;
1079
+ const instance = hostRef.$lazyInstance$ ;
1080
+ newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
1081
+ // explicitly check for NaN on both sides, as `NaN === NaN` is always false
1082
+ const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
1083
+ const didValueChange = newVal !== oldVal && !areBothNaN;
1084
+ if ((!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) || oldVal === undefined) && didValueChange) {
1085
+ // gadzooks! the property's value has changed!!
1086
+ // set our new value!
1087
+ hostRef.$instanceValues$.set(propName, newVal);
1088
+ if (instance) {
1089
+ if ((flags & (2 /* HOST_FLAGS.hasRendered */ | 16 /* HOST_FLAGS.isQueuedForUpdate */)) === 2 /* HOST_FLAGS.hasRendered */) {
1090
+ // looks like this value actually changed, so we've got work to do!
1091
+ // but only if we've already rendered, otherwise just chill out
1092
+ // queue that we need to do an update, but don't worry about queuing
1093
+ // up millions cuz this function ensures it only runs once
1094
+ scheduleUpdate(hostRef, false);
1095
+ }
1096
+ }
1097
+ }
1098
+ };
1099
+ /**
1100
+ * Attach a series of runtime constructs to a compiled Stencil component
1101
+ * constructor, including getters and setters for the `@Prop` and `@State`
1102
+ * decorators, callbacks for when attributes change, and so on.
1103
+ *
1104
+ * @param Cstr the constructor for a component that we need to process
1105
+ * @param cmpMeta metadata collected previously about the component
1106
+ * @param flags a number used to store a series of bit flags
1107
+ * @returns a reference to the same constructor passed in (but now mutated)
1108
+ */
1109
+ const proxyComponent = (Cstr, cmpMeta, flags) => {
1110
+ if (cmpMeta.$members$) {
1111
+ // It's better to have a const than two Object.entries()
1112
+ const members = Object.entries(cmpMeta.$members$);
1113
+ const prototype = Cstr.prototype;
1114
+ members.map(([memberName, [memberFlags]]) => {
1115
+ if ((memberFlags & 31 /* MEMBER_FLAGS.Prop */ ||
1116
+ ((flags & 2 /* PROXY_FLAGS.proxyState */) && memberFlags & 32 /* MEMBER_FLAGS.State */))) {
1117
+ // proxyComponent - prop
1118
+ Object.defineProperty(prototype, memberName, {
1119
+ get() {
1120
+ // proxyComponent, get value
1121
+ return getValue(this, memberName);
1122
+ },
1123
+ set(newValue) {
1124
+ // proxyComponent, set value
1125
+ setValue(this, memberName, newValue, cmpMeta);
1126
+ },
1127
+ configurable: true,
1128
+ enumerable: true,
1129
+ });
1130
+ }
1131
+ });
1132
+ if ((flags & 1 /* PROXY_FLAGS.isElementConstructor */)) {
1133
+ const attrNameToPropName = new Map();
1134
+ prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
1135
+ plt.jmp(() => {
1136
+ const propName = attrNameToPropName.get(attrName);
1137
+ // In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
1138
+ // in the case where an attribute was set inline.
1139
+ // ```html
1140
+ // <my-component some-attribute="some-value"></my-component>
1141
+ // ```
1142
+ //
1143
+ // There is an edge case where a developer sets the attribute inline on a custom element and then
1144
+ // programmatically changes it before it has been upgraded as shown below:
1145
+ //
1146
+ // ```html
1147
+ // <!-- this component has _not_ been upgraded yet -->
1148
+ // <my-component id="test" some-attribute="some-value"></my-component>
1149
+ // <script>
1150
+ // // grab non-upgraded component
1151
+ // el = document.querySelector("#test");
1152
+ // el.someAttribute = "another-value";
1153
+ // // upgrade component
1154
+ // customElements.define('my-component', MyComponent);
1155
+ // </script>
1156
+ // ```
1157
+ // In this case if we do not unshadow here and use the value of the shadowing property, attributeChangedCallback
1158
+ // will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
1159
+ // to the value that was set inline i.e. "some-value" from above example. When
1160
+ // the connectedCallback attempts to unshadow it will use "some-value" as the initial value rather than "another-value"
1161
+ //
1162
+ // The case where the attribute was NOT set inline but was not set programmatically shall be handled/unshadowed
1163
+ // by connectedCallback as this attributeChangedCallback will not fire.
1164
+ //
1165
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1166
+ //
1167
+ // TODO(STENCIL-16) we should think about whether or not we actually want to be reflecting the attributes to
1168
+ // properties here given that this goes against best practices outlined here
1169
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#avoid-reentrancy
1170
+ if (this.hasOwnProperty(propName)) {
1171
+ newValue = this[propName];
1172
+ delete this[propName];
1173
+ }
1174
+ else if (prototype.hasOwnProperty(propName) &&
1175
+ typeof this[propName] === 'number' &&
1176
+ this[propName] == newValue) {
1177
+ // if the propName exists on the prototype of `Cstr`, this update may be a result of Stencil using native
1178
+ // APIs to reflect props as attributes. Calls to `setAttribute(someElement, propName)` will result in
1179
+ // `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
1180
+ return;
1181
+ }
1182
+ this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
1183
+ });
1184
+ };
1185
+ // create an array of attributes to observe
1186
+ // and also create a map of html attribute name to js property name
1187
+ Cstr.observedAttributes = members
1188
+ .filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */) // filter to only keep props that should match attributes
1189
+ .map(([propName, m]) => {
1190
+ const attrName = m[1] || propName;
1191
+ attrNameToPropName.set(attrName, propName);
1192
+ if (m[0] & 512 /* MEMBER_FLAGS.ReflectAttr */) {
1193
+ cmpMeta.$attrsToReflect$.push([propName, attrName]);
1194
+ }
1195
+ return attrName;
1196
+ });
1197
+ }
1198
+ }
1199
+ return Cstr;
1200
+ };
1201
+ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
1202
+ // initializeComponent
1203
+ if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
1204
+ {
1205
+ // we haven't initialized this element yet
1206
+ hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
1207
+ // lazy loaded components
1208
+ // request the component's implementation to be
1209
+ // wired up with the host element
1210
+ Cstr = loadModule(cmpMeta);
1211
+ if (Cstr.then) {
1212
+ // Await creates a micro-task avoid if possible
1213
+ const endLoad = uniqueTime();
1214
+ Cstr = await Cstr;
1215
+ endLoad();
1216
+ }
1217
+ if (!Cstr.isProxied) {
1218
+ proxyComponent(Cstr, cmpMeta, 2 /* PROXY_FLAGS.proxyState */);
1219
+ Cstr.isProxied = true;
1220
+ }
1221
+ const endNewInstance = createTime('createInstance', cmpMeta.$tagName$);
1222
+ // ok, time to construct the instance
1223
+ // but let's keep track of when we start and stop
1224
+ // so that the getters/setters don't incorrectly step on data
1225
+ {
1226
+ hostRef.$flags$ |= 8 /* HOST_FLAGS.isConstructingInstance */;
1227
+ }
1228
+ // construct the lazy-loaded component implementation
1229
+ // passing the hostRef is very important during
1230
+ // construction in order to directly wire together the
1231
+ // host element and the lazy-loaded instance
1232
+ try {
1233
+ new Cstr(hostRef);
1234
+ }
1235
+ catch (e) {
1236
+ consoleError(e);
1237
+ }
1238
+ {
1239
+ hostRef.$flags$ &= ~8 /* HOST_FLAGS.isConstructingInstance */;
1240
+ }
1241
+ endNewInstance();
1242
+ fireConnectedCallback(hostRef.$lazyInstance$);
1243
+ }
1244
+ if (Cstr.style) {
1245
+ // this component has styles but we haven't registered them yet
1246
+ let style = Cstr.style;
1247
+ const scopeId = getScopeId(cmpMeta);
1248
+ if (!styles.has(scopeId)) {
1249
+ const endRegisterStyles = createTime('registerStyles', cmpMeta.$tagName$);
1250
+ registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */));
1251
+ endRegisterStyles();
1252
+ }
1253
+ }
1254
+ }
1255
+ // we've successfully created a lazy instance
1256
+ const ancestorComponent = hostRef.$ancestorComponent$;
1257
+ const schedule = () => scheduleUpdate(hostRef, true);
1258
+ if (ancestorComponent && ancestorComponent['s-rc']) {
1259
+ // this is the initial load and this component it has an ancestor component
1260
+ // but the ancestor component has NOT fired its will update lifecycle yet
1261
+ // so let's just cool our jets and wait for the ancestor to continue first
1262
+ // this will get fired off when the ancestor component
1263
+ // finally gets around to rendering its lazy self
1264
+ // fire off the initial update
1265
+ ancestorComponent['s-rc'].push(schedule);
1266
+ }
1267
+ else {
1268
+ schedule();
1269
+ }
1270
+ };
1271
+ const fireConnectedCallback = (instance) => {
1272
+ {
1273
+ safeCall(instance, 'connectedCallback');
1274
+ }
1275
+ };
1276
+ const connectedCallback = (elm) => {
1277
+ if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1278
+ const hostRef = getHostRef(elm);
1279
+ const cmpMeta = hostRef.$cmpMeta$;
1280
+ const endConnected = createTime('connectedCallback', cmpMeta.$tagName$);
1281
+ if (!(hostRef.$flags$ & 1 /* HOST_FLAGS.hasConnected */)) {
1282
+ // first time this component has connected
1283
+ hostRef.$flags$ |= 1 /* HOST_FLAGS.hasConnected */;
1284
+ {
1285
+ // find the first ancestor component (if there is one) and register
1286
+ // this component as one of the actively loading child components for its ancestor
1287
+ let ancestorComponent = elm;
1288
+ while ((ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host)) {
1289
+ // climb up the ancestors looking for the first
1290
+ // component that hasn't finished its lifecycle update yet
1291
+ if (ancestorComponent['s-p']) {
1292
+ // we found this components first ancestor component
1293
+ // keep a reference to this component's ancestor component
1294
+ attachToAncestor(hostRef, (hostRef.$ancestorComponent$ = ancestorComponent));
1295
+ break;
1296
+ }
1297
+ }
1298
+ }
1299
+ // Lazy properties
1300
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1301
+ if (cmpMeta.$members$) {
1302
+ Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1303
+ if (memberFlags & 31 /* MEMBER_FLAGS.Prop */ && elm.hasOwnProperty(memberName)) {
1304
+ const value = elm[memberName];
1305
+ delete elm[memberName];
1306
+ elm[memberName] = value;
1307
+ }
1308
+ });
1309
+ }
1310
+ {
1311
+ initializeComponent(elm, hostRef, cmpMeta);
1312
+ }
1313
+ }
1314
+ else {
1315
+ // fire off connectedCallback() on component instance
1316
+ fireConnectedCallback(hostRef.$lazyInstance$);
1317
+ }
1318
+ endConnected();
1319
+ }
1320
+ };
1321
+ const disconnectedCallback = (elm) => {
1322
+ if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1323
+ const hostRef = getHostRef(elm);
1324
+ const instance = hostRef.$lazyInstance$ ;
1325
+ {
1326
+ safeCall(instance, 'disconnectedCallback');
1327
+ }
1328
+ }
1329
+ };
1330
+ const bootstrapLazy = (lazyBundles, options = {}) => {
1331
+ var _a;
1332
+ const endBootstrap = createTime();
1333
+ const cmpTags = [];
1334
+ const exclude = options.exclude || [];
1335
+ const customElements = win.customElements;
1336
+ const head = doc.head;
1337
+ const metaCharset = /*@__PURE__*/ head.querySelector('meta[charset]');
1338
+ const visibilityStyle = /*@__PURE__*/ doc.createElement('style');
1339
+ const deferredConnectedCallbacks = [];
1340
+ let appLoadFallback;
1341
+ let isBootstrapping = true;
1342
+ Object.assign(plt, options);
1343
+ plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
1344
+ lazyBundles.map((lazyBundle) => {
1345
+ lazyBundle[1].map((compactMeta) => {
1346
+ const cmpMeta = {
1347
+ $flags$: compactMeta[0],
1348
+ $tagName$: compactMeta[1],
1349
+ $members$: compactMeta[2],
1350
+ $listeners$: compactMeta[3],
1351
+ };
1352
+ {
1353
+ cmpMeta.$members$ = compactMeta[2];
1354
+ }
1355
+ {
1356
+ cmpMeta.$attrsToReflect$ = [];
1357
+ }
1358
+ const tagName = cmpMeta.$tagName$;
1359
+ const HostElement = class extends HTMLElement {
1360
+ // StencilLazyHost
1361
+ constructor(self) {
1362
+ // @ts-ignore
1363
+ super(self);
1364
+ self = this;
1365
+ registerHost(self, cmpMeta);
1366
+ if (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) {
1367
+ // this component is using shadow dom
1368
+ // and this browser supports shadow dom
1369
+ // add the read-only property "shadowRoot" to the host element
1370
+ // adding the shadow root build conditionals to minimize runtime
1371
+ {
1372
+ {
1373
+ self.attachShadow({ mode: 'open' });
1374
+ }
1375
+ }
1376
+ }
1377
+ }
1378
+ connectedCallback() {
1379
+ if (appLoadFallback) {
1380
+ clearTimeout(appLoadFallback);
1381
+ appLoadFallback = null;
1382
+ }
1383
+ if (isBootstrapping) {
1384
+ // connectedCallback will be processed once all components have been registered
1385
+ deferredConnectedCallbacks.push(this);
1386
+ }
1387
+ else {
1388
+ plt.jmp(() => connectedCallback(this));
1389
+ }
1390
+ }
1391
+ disconnectedCallback() {
1392
+ plt.jmp(() => disconnectedCallback(this));
1393
+ }
1394
+ componentOnReady() {
1395
+ return getHostRef(this).$onReadyPromise$;
1396
+ }
1397
+ };
1398
+ cmpMeta.$lazyBundleId$ = lazyBundle[0];
1399
+ if (!exclude.includes(tagName) && !customElements.get(tagName)) {
1400
+ cmpTags.push(tagName);
1401
+ customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* PROXY_FLAGS.isElementConstructor */));
1402
+ }
1403
+ });
1404
+ });
1405
+ {
1406
+ visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
1407
+ visibilityStyle.setAttribute('data-styles', '');
1408
+ // Apply CSP nonce to the style tag if it exists
1409
+ const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
1410
+ if (nonce != null) {
1411
+ visibilityStyle.setAttribute('nonce', nonce);
1412
+ }
1413
+ head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
1414
+ }
1415
+ // Process deferred connectedCallbacks now all components have been registered
1416
+ isBootstrapping = false;
1417
+ if (deferredConnectedCallbacks.length) {
1418
+ deferredConnectedCallbacks.map((host) => host.connectedCallback());
1419
+ }
1420
+ else {
1421
+ {
1422
+ plt.jmp(() => (appLoadFallback = setTimeout(appDidLoad, 30)));
1423
+ }
1424
+ }
1425
+ // Fallback appLoad event
1426
+ endBootstrap();
1427
+ };
1428
+ /**
1429
+ * Assigns the given value to the nonce property on the runtime platform object.
1430
+ * During runtime, this value is used to set the nonce attribute on all dynamically created script and style tags.
1431
+ * @param nonce The value to be assigned to the platform nonce property.
1432
+ * @returns void
1433
+ */
1434
+ const setNonce = (nonce) => (plt.$nonce$ = nonce);
1435
+ const hostRefs = /*@__PURE__*/ new WeakMap();
1436
+ const getHostRef = (ref) => hostRefs.get(ref);
1437
+ const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
1438
+ const registerHost = (elm, cmpMeta) => {
1439
+ const hostRef = {
1440
+ $flags$: 0,
1441
+ $hostElement$: elm,
1442
+ $cmpMeta$: cmpMeta,
1443
+ $instanceValues$: new Map(),
1444
+ };
1445
+ {
1446
+ hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
1447
+ elm['s-p'] = [];
1448
+ elm['s-rc'] = [];
1449
+ }
1450
+ return hostRefs.set(elm, hostRef);
1451
+ };
1452
+ const isMemberInElement = (elm, memberName) => memberName in elm;
1453
+ const consoleError = (e, el) => (0, console.error)(e, el);
1454
+ const cmpModules = /*@__PURE__*/ new Map();
1455
+ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1456
+ // loadModuleImport
1457
+ const exportName = cmpMeta.$tagName$.replace(/-/g, '_');
1458
+ const bundleId = cmpMeta.$lazyBundleId$;
1459
+ const module = cmpModules.get(bundleId) ;
1460
+ if (module) {
1461
+ return module[exportName];
1462
+ }
1463
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
1464
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
1465
+ /* @vite-ignore */
1466
+ /* webpackInclude: /\.entry\.js$/ */
1467
+ /* webpackExclude: /\.system\.entry\.js$/ */
1468
+ /* webpackMode: "lazy" */
1469
+ `./${bundleId}.entry.js${''}`)); }).then((importedModule) => {
1470
+ {
1471
+ cmpModules.set(bundleId, importedModule);
1472
+ }
1473
+ return importedModule[exportName];
1474
+ }, consoleError);
1475
+ };
1476
+ const styles = /*@__PURE__*/ new Map();
1477
+ const win = typeof window !== 'undefined' ? window : {};
1478
+ const doc = win.document || { head: {} };
1479
+ const plt = {
1480
+ $flags$: 0,
1481
+ $resourcesUrl$: '',
1482
+ jmp: (h) => h(),
1483
+ raf: (h) => requestAnimationFrame(h),
1484
+ ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
1485
+ rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
1486
+ ce: (eventName, opts) => new CustomEvent(eventName, opts),
1487
+ };
1488
+ const promiseResolve = (v) => Promise.resolve(v);
1489
+ const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
1490
+ try {
1491
+ new CSSStyleSheet();
1492
+ return typeof new CSSStyleSheet().replaceSync === 'function';
1493
+ }
1494
+ catch (e) { }
1495
+ return false;
1496
+ })()
1497
+ ;
1498
+ const queueDomReads = [];
1499
+ const queueDomWrites = [];
1500
+ const queueTask = (queue, write) => (cb) => {
1501
+ queue.push(cb);
1502
+ if (!queuePending) {
1503
+ queuePending = true;
1504
+ if (write && plt.$flags$ & 4 /* PLATFORM_FLAGS.queueSync */) {
1505
+ nextTick(flush);
1506
+ }
1507
+ else {
1508
+ plt.raf(flush);
1509
+ }
1510
+ }
1511
+ };
1512
+ const consume = (queue) => {
1513
+ for (let i = 0; i < queue.length; i++) {
1514
+ try {
1515
+ queue[i](performance.now());
1516
+ }
1517
+ catch (e) {
1518
+ consoleError(e);
1519
+ }
1520
+ }
1521
+ queue.length = 0;
1522
+ };
1523
+ const flush = () => {
1524
+ // always force a bunch of medium callbacks to run, but still have
1525
+ // a throttle on how many can run in a certain time
1526
+ // DOM READS!!!
1527
+ consume(queueDomReads);
1528
+ // DOM WRITES!!!
1529
+ {
1530
+ consume(queueDomWrites);
1531
+ if ((queuePending = queueDomReads.length > 0)) {
1532
+ // still more to do yet, but we've run out of time
1533
+ // let's let this thing cool off and try again in the next tick
1534
+ plt.raf(flush);
1535
+ }
1536
+ }
1537
+ };
1538
+ const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
1539
+ const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
1540
+
1541
+ exports.Host = Host;
1542
+ exports.bootstrapLazy = bootstrapLazy;
1543
+ exports.getElement = getElement;
1544
+ exports.h = h;
1545
+ exports.promiseResolve = promiseResolve;
1546
+ exports.registerInstance = registerInstance;
1547
+ exports.setNonce = setNonce;