pushfeedback 0.1.33 → 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.
- package/dist/cjs/feedback-button_2.cjs.entry.js +8238 -1
- package/dist/cjs/index-d64bfb06.js +1547 -1
- package/dist/cjs/index.cjs.js +2 -1
- package/dist/cjs/loader.cjs.js +22 -1
- package/dist/cjs/pushfeedback.cjs.js +23 -1
- package/dist/collection/components/feedback-button/feedback-button.js +620 -1
- package/dist/collection/components/feedback-modal/feedback-modal.css +29 -4
- package/dist/collection/components/feedback-modal/feedback-modal.js +814 -1
- package/dist/collection/index.js +1 -1
- package/dist/components/feedback-button.js +160 -1
- package/dist/components/feedback-modal.js +6 -1
- package/dist/components/feedback-modal2.js +8183 -1
- package/dist/components/index.js +3 -1
- package/dist/esm/feedback-button_2.entry.js +8233 -1
- package/dist/esm/index-b07fba3a.js +1519 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +18 -1
- package/dist/esm/polyfills/core-js.js +11 -1
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/polyfills/dom.js +79 -1
- package/dist/esm/polyfills/es5-html-element.js +1 -1
- package/dist/esm/polyfills/index.js +34 -1
- package/dist/esm/polyfills/system.js +6 -1
- package/dist/esm/pushfeedback.js +18 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.js +1 -1
- package/dist/pushfeedback/p-a0681be3.js +2 -1
- package/dist/pushfeedback/p-ea59cbec.entry.js +22 -0
- package/dist/pushfeedback/pushfeedback.css +1 -1
- package/dist/pushfeedback/pushfeedback.esm.js +1 -1
- package/dist/types/components/feedback-button/feedback-button.d.ts +2 -0
- package/dist/types/components/feedback-modal/feedback-modal.d.ts +2 -0
- package/dist/types/components.d.ts +8 -0
- package/package.json +5 -4
- package/dist/pushfeedback/p-8cae1eb0.entry.js +0 -1
|
@@ -1 +1,1519 @@
|
|
|
1
|
-
const _0xc39acc=_0x63de;(function(_0x59b9a8,_0x51a5de){const _0x1dd3ea=_0x63de,_0x496300=_0x59b9a8();while(!![]){try{const _0x4d37a1=-parseInt(_0x1dd3ea(0x282))/0x1+-parseInt(_0x1dd3ea(0x264))/0x2*(-parseInt(_0x1dd3ea(0x1fb))/0x3)+parseInt(_0x1dd3ea(0x277))/0x4+-parseInt(_0x1dd3ea(0x203))/0x5*(-parseInt(_0x1dd3ea(0x2aa))/0x6)+-parseInt(_0x1dd3ea(0x20d))/0x7*(-parseInt(_0x1dd3ea(0x262))/0x8)+parseInt(_0x1dd3ea(0x250))/0x9*(parseInt(_0x1dd3ea(0x1e6))/0xa)+-parseInt(_0x1dd3ea(0x1de))/0xb*(parseInt(_0x1dd3ea(0x1fa))/0xc);if(_0x4d37a1===_0x51a5de)break;else _0x496300['push'](_0x496300['shift']());}catch(_0x4f2139){_0x496300['push'](_0x496300['shift']());}}}(_0x351c,0xbe55e));function _0x351c(){const _0x4c5577=['CUSkk','zdqqp','false','aToXa','BLVFZ','YkZWF','7763lqFrLR','bSoNb','YzWei','http://www.w3.org/2000/svg','auflR','dYXbH','$children$','nonce','tagName','qnTiS','resolve','vfWvA','cSiJE','cHpwo','jvGVI','slice','hydrated','disconnectedCallback','eftJg','className','componentDidLoad','parentNode','MpEKN','componentOnReady','ref','prototype','dqXpf','addEventListener','vWzlO','gPLVI','bwiun','meta[charset]','IrOSe','Fjtdm','s-p','head','YFNNc','$lazyInstance$','slot','vkKnF','resourcesUrl','NgHEa','http://www.w3.org/1999/xhtml','$onRenderResolve$','$instanceValues$','yGrFe','ZmFAc','uPzTV','zMQxA','defineProperty','$hostElement$','attachStyles','class','xCVxT','$tagName$','entries','querySelector','open','TkOsW','wFpUW','DxzOv','$lazyBundleId$','update','WkJZB','SaZks','ezDpf','jyOCJ','30060pXEbvv','connectedCallback','hNmGT','push','$flags$','yQUHF','rel','wiUSC','getAttribute','undefined','rrWIC','FQRhJ','DWlaT','function','render','data-styles','nodeType','innerHTML','8328cqtofa','rkIQi','2ZSWGaf','qYRrv','$nonce$','RSCKu','$ancestorComponent$','Iuzfm','xsGPl','aFJlW','LBgym','aDhIV','$onReadyPromise$','PjGso','jmp','isProxied','TQDnQ','TFmjU','{visibility:hidden}.hydrated{visibility:inherit}','set','OtVIs','902012gHFdVM','EffSE','removeProperty','qRuDL','JbEDr','DibzB','hmKiZ','GEJtO','UgMGz','icHgc','yOJGH','119598mRSXqm','gYUVs','crYBv','createElement','OAbrE','key','Msupq','UZiJx','WPHHy','pushfeedback','jEDDB','OudJM','href','IseHy','raf','HTCiE','jaDNn','PPwFx','$key$','0|1|4|2|6|3|5','mBUut','UnWnG','includes','yjtOP','insertBefore','sNASQ','VNuGV','keys','IjSXO','RcaCE','rBZcL','hasOwnProperty','isNaN','zKBwF','tjvUD','vzILT','iewdN','documentElement','length','UylCS','2116974rlxzvW','ael','filter','s-si','replace','otrLW','TnniB','BprHN','ETksf','textContent','ENYjm','add','baseURI','setAttribute','JVqic','ssqTB','SCvus','Bmwhl','BrVkQ','$text$','ZodhS','cErjd','xRElb','MUkzb','tpPKY','bhHRD','svg','QMzwV','content','now','customElements','all','remove','meta[name=\x22csp-nonce\x22]','$attrs$','UnrEb','createTextNode','map','jdoCz','ZQczl','getRootNode','object','data','XHNbn','postUpdate','BAkBs','classList','get','boolean','firstChild','hYRgu','sAdFk','shadowRoot','dispatchEvent','assign','hxKkS','CyJIK','UciGU','SSdvI','ekrhU','$attrsToReflect$','aVceV','rZGmW','IMXuP','AIUeO','split','YcSPg','kcKNr','$cmpMeta$','EMMub','registerStyles','has','TmHLJ','setProperty','shiuF','bJuXK','sc-','22fTNVhS','$tag$','FGsxD','appendChild','Hcjrr','ZetUS','cTkwt','then','3450Rnwiuj','.entry.js','nextSibling','VcpAY','replaceSync','nxqEZ','pjfnp','queVF','$members$','vmeaC','$onReadyResolve$','PEXzn','XcDVp','qMdwv','s-sc','OlHwv','lWqlY','iPGeZ','join','adoptedStyleSheets','12180348RdaAAc','132507ckYZMJ','$elm$','s-rc','observedAttributes','JBbSf','Alrmx','$vnode$','number','5SckBTn','foreignObject','style','bCEEp'];_0x351c=function(){return _0x4c5577;};return _0x351c();}function _0x63de(_0x1ef608,_0x4e13b0){const _0x351c20=_0x351c();return _0x63de=function(_0x63de33,_0x1a150e){_0x63de33=_0x63de33-0x1ad;let _0x3c8a49=_0x351c20[_0x63de33];return _0x3c8a49;},_0x63de(_0x1ef608,_0x4e13b0);}const NAMESPACE=_0xc39acc(0x28b);let scopeId,hostTagName,isSvgMode=![],queuePending=![];const createTime=(_0x371dee,_0x544cbd='')=>{{return()=>{return;};}},uniqueTime=(_0x1abce7,_0x23377d)=>{{return()=>{return;};}},HYDRATED_CSS=_0xc39acc(0x274),EMPTY_OBJ={},SVG_NS=_0xc39acc(0x210),HTML_NS=_0xc39acc(0x237),isDef=_0x134c5d=>_0x134c5d!=null,isComplexType=_0x5ee092=>{const _0x5e9940=_0xc39acc,_0x13601a={'shiuF':function(_0x7871b0,_0x2b92db){return _0x7871b0===_0x2b92db;},'BWcmT':function(_0x54fed5,_0x794c5a){return _0x54fed5===_0x794c5a;},'aDhIV':_0x5e9940(0x25d)};return _0x5ee092=typeof _0x5ee092,_0x13601a[_0x5e9940(0x1db)](_0x5ee092,_0x5e9940(0x1ba))||_0x13601a['BWcmT'](_0x5ee092,_0x13601a[_0x5e9940(0x26d)]);};function queryNonceMetaTagContent(_0x390838){const _0x3b23d3=_0xc39acc,_0x1f263c={'JbEDr':function(_0x1dc442,_0x366646){return _0x1dc442===_0x366646;},'queVF':_0x3b23d3(0x1b2),'Bmwhl':function(_0x50c2e5,_0x1b71de){return _0x50c2e5===_0x1b71de;},'auflR':_0x3b23d3(0x1ad),'sxBMl':function(_0x4b8d43,_0x56dea5){return _0x4b8d43!==_0x56dea5;}};var _0x5f22f3,_0x56d664,_0x24d334;return(_0x24d334=_0x1f263c['JbEDr'](_0x56d664=_0x1f263c[_0x3b23d3(0x27b)](_0x5f22f3=_0x390838[_0x3b23d3(0x230)],null)||_0x1f263c['JbEDr'](_0x5f22f3,void 0x0)?void 0x0:_0x5f22f3[_0x3b23d3(0x245)](_0x1f263c[_0x3b23d3(0x1ed)]),null)||_0x1f263c[_0x3b23d3(0x2bb)](_0x56d664,void 0x0)?void 0x0:_0x56d664[_0x3b23d3(0x258)](_0x1f263c[_0x3b23d3(0x211)]))!==null&&_0x1f263c['sxBMl'](_0x24d334,void 0x0)?_0x24d334:undefined;}const h=(_0x552387,_0x393469,..._0x49a018)=>{const _0x5a649d=_0xc39acc,_0x223a21={'UDzUS':function(_0x20000d,_0x33a967){return _0x20000d<_0x33a967;},'ZQczl':function(_0x9c7253,_0x26e575){return _0x9c7253!==_0x26e575;},'DlBZU':_0x5a649d(0x1c1),'Dxamz':'function','ETksf':function(_0x103583,_0x9e6ee1){return _0x103583(_0x9e6ee1);},'Fjtdm':function(_0x904997,_0xbbd48a){return _0x904997&&_0xbbd48a;},'JVqic':function(_0x4677b1,_0x54ae54){return _0x4677b1-_0x54ae54;},'NxepT':function(_0x244c24,_0x5afa51,_0x2ba71b){return _0x244c24(_0x5afa51,_0x2ba71b);},'zKBwF':function(_0x370b41,_0x205f8c){return _0x370b41(_0x205f8c);},'hYRgu':_0x5a649d(0x1ba),'ZetUS':function(_0x2cc1db,_0x176a23,_0x4df420){return _0x2cc1db(_0x176a23,_0x4df420);},'cTkwt':function(_0x180cca,_0x5689aa){return _0x180cca>_0x5689aa;}};let _0x527f0a=null,_0x3aaeec=null,_0x141e7e=![],_0x5870a0=![];const _0x5c3acd=[],_0x18904b=_0x2cd9f5=>{const _0x28f291=_0x5a649d;for(let _0x264c9d=0x0;_0x223a21['UDzUS'](_0x264c9d,_0x2cd9f5[_0x28f291(0x2a8)]);_0x264c9d++){_0x527f0a=_0x2cd9f5[_0x264c9d];if(Array['isArray'](_0x527f0a))_0x18904b(_0x527f0a);else _0x527f0a!=null&&_0x223a21[_0x28f291(0x1b8)](typeof _0x527f0a,_0x223a21['DlBZU'])&&((_0x141e7e=typeof _0x552387!==_0x223a21['Dxamz']&&!_0x223a21[_0x28f291(0x2b2)](isComplexType,_0x527f0a))&&(_0x527f0a=String(_0x527f0a)),_0x223a21[_0x28f291(0x22e)](_0x141e7e,_0x5870a0)?_0x5c3acd[_0x223a21[_0x28f291(0x2b8)](_0x5c3acd[_0x28f291(0x2a8)],0x1)][_0x28f291(0x2bd)]+=_0x527f0a:_0x5c3acd[_0x28f291(0x253)](_0x141e7e?_0x223a21['NxepT'](newVNode,null,_0x527f0a):_0x527f0a),_0x5870a0=_0x141e7e);}};_0x223a21[_0x5a649d(0x2a3)](_0x18904b,_0x49a018);if(_0x393469){_0x393469[_0x5a649d(0x287)]&&(_0x3aaeec=_0x393469[_0x5a649d(0x287)]);{const _0x1660cc=_0x393469[_0x5a649d(0x220)]||_0x393469[_0x5a649d(0x241)];_0x1660cc&&(_0x393469['class']=typeof _0x1660cc!==_0x223a21[_0x5a649d(0x1c3)]?_0x1660cc:Object[_0x5a649d(0x29d)](_0x1660cc)[_0x5a649d(0x2ac)](_0x48dcb4=>_0x1660cc[_0x48dcb4])[_0x5a649d(0x1f8)]('\x20'));}}const _0x176a3d=_0x223a21[_0x5a649d(0x1e3)](newVNode,_0x552387,null);_0x176a3d[_0x5a649d(0x1b3)]=_0x393469;_0x223a21[_0x5a649d(0x1e4)](_0x5c3acd[_0x5a649d(0x2a8)],0x0)&&(_0x176a3d[_0x5a649d(0x213)]=_0x5c3acd);{_0x176a3d[_0x5a649d(0x294)]=_0x3aaeec;}return _0x176a3d;},newVNode=(_0x241607,_0x35b16d)=>{const _0x34960c=_0xc39acc,_0x526a26={'$flags$':0x0,'$tag$':_0x241607,'$text$':_0x35b16d,'$elm$':null,'$children$':null};{_0x526a26[_0x34960c(0x1b3)]=null;}{_0x526a26[_0x34960c(0x294)]=null;}return _0x526a26;},Host={},isHost=_0x4f8f49=>_0x4f8f49&&_0x4f8f49[_0xc39acc(0x1df)]===Host,parsePropertyValue=(_0xc664b6,_0xf37463)=>{const _0x3e5bed=_0xc39acc,_0x1be132={'iPGeZ':function(_0x43b5f4,_0x333689){return _0x43b5f4!=_0x333689;},'aToXa':function(_0x28e370,_0x1966f4){return _0x28e370(_0x1966f4);},'RSCKu':function(_0x588ee9,_0xeb72ad){return _0x588ee9&_0xeb72ad;},'yOJGH':function(_0x385029,_0x48e4c9){return _0x385029===_0x48e4c9;},'XyLgu':_0x3e5bed(0x209),'EMMub':function(_0x317280,_0x2a2467){return _0x317280===_0x2a2467;}};if(_0x1be132[_0x3e5bed(0x1f7)](_0xc664b6,null)&&!_0x1be132[_0x3e5bed(0x20a)](isComplexType,_0xc664b6)){if(_0x1be132['RSCKu'](_0xf37463,0x4))return _0x1be132[_0x3e5bed(0x281)](_0xc664b6,_0x1be132['XyLgu'])?![]:_0x1be132[_0x3e5bed(0x1d6)](_0xc664b6,'')||!!_0xc664b6;if(_0x1be132[_0x3e5bed(0x267)](_0xf37463,0x1))return _0x1be132[_0x3e5bed(0x20a)](String,_0xc664b6);return _0xc664b6;}return _0xc664b6;},getElement=_0x3083e5=>getHostRef(_0x3083e5)[_0xc39acc(0x23f)],emitEvent=(_0x2f399d,_0x2b2930,_0x583d1d)=>{const _0xaa5e6f=_0xc39acc,_0x440cf9=plt['ce'](_0x2b2930,_0x583d1d);return _0x2f399d[_0xaa5e6f(0x1c6)](_0x440cf9),_0x440cf9;},rootAppliedStyles=new WeakMap(),registerStyle=(_0x15a725,_0x301e20,_0x467d9e)=>{const _0x4b8522=_0xc39acc,_0x57a767={'jdoCz':function(_0x2fc013,_0x4e74ce){return _0x2fc013===_0x4e74ce;},'oIDrT':'string'};let _0x2a398d=styles[_0x4b8522(0x1c0)](_0x15a725);supportsConstructableStylesheets&&_0x467d9e?(_0x2a398d=_0x2a398d||new CSSStyleSheet(),_0x57a767[_0x4b8522(0x1b7)](typeof _0x2a398d,_0x57a767['oIDrT'])?_0x2a398d=_0x301e20:_0x2a398d[_0x4b8522(0x1ea)](_0x301e20)):_0x2a398d=_0x301e20,styles[_0x4b8522(0x275)](_0x15a725,_0x2a398d);},addStyle=(_0x1c3380,_0x26342a,_0x2d9fc9,_0xf1421d)=>{const _0x2daed5=_0xc39acc,_0x69a742={'RcaCE':function(_0x597ac5,_0x2d2799){return _0x597ac5(_0x2d2799);},'TFmjU':function(_0x5766a8,_0x31b7e1){return _0x5766a8===_0x31b7e1;},'SSdvI':'string','XukQK':function(_0x344420,_0x3d5267){return _0x344420!==_0x3d5267;},'mBUut':function(_0x531ff7,_0x49a77d){return _0x531ff7!=_0x49a77d;},'OtVIs':_0x2daed5(0x214),'CyJIK':'link'};var _0x4b5559;let _0x269a16=_0x69a742[_0x2daed5(0x29f)](getScopeId,_0x26342a);const _0x5b9614=styles[_0x2daed5(0x1c0)](_0x269a16);_0x1c3380=_0x1c3380[_0x2daed5(0x260)]===0xb?_0x1c3380:doc;if(_0x5b9614){if(_0x69a742[_0x2daed5(0x273)](typeof _0x5b9614,_0x69a742[_0x2daed5(0x1cb)])){_0x1c3380=_0x1c3380[_0x2daed5(0x230)]||_0x1c3380;let _0xbdea83=rootAppliedStyles[_0x2daed5(0x1c0)](_0x1c3380),_0x4b79eb;!_0xbdea83&&rootAppliedStyles[_0x2daed5(0x275)](_0x1c3380,_0xbdea83=new Set());if(!_0xbdea83[_0x2daed5(0x1d8)](_0x269a16)){{{_0x4b79eb=doc[_0x2daed5(0x285)]('style'),_0x4b79eb[_0x2daed5(0x261)]=_0x5b9614;}const _0x158954=(_0x4b5559=plt[_0x2daed5(0x266)])!==null&&_0x69a742['XukQK'](_0x4b5559,void 0x0)?_0x4b5559:_0x69a742[_0x2daed5(0x29f)](queryNonceMetaTagContent,doc);_0x69a742[_0x2daed5(0x296)](_0x158954,null)&&_0x4b79eb[_0x2daed5(0x2b7)](_0x69a742[_0x2daed5(0x276)],_0x158954),_0x1c3380[_0x2daed5(0x29a)](_0x4b79eb,_0x1c3380[_0x2daed5(0x245)](_0x69a742[_0x2daed5(0x1c9)]));}_0xbdea83&&_0xbdea83[_0x2daed5(0x2b5)](_0x269a16);}}else!_0x1c3380[_0x2daed5(0x1f9)]['includes'](_0x5b9614)&&(_0x1c3380[_0x2daed5(0x1f9)]=[..._0x1c3380[_0x2daed5(0x1f9)],_0x5b9614]);}return _0x269a16;},attachStyles=_0x38eb45=>{const _0x23fc5a=_0xc39acc,_0x1f9bd4={'AIUeO':function(_0x4b3e2c,_0x21888c,_0x5d5a7d){return _0x4b3e2c(_0x21888c,_0x5d5a7d);},'nxqEZ':_0x23fc5a(0x240),'DOkjk':function(_0x2202fc,_0x51d044,_0x254f3a){return _0x2202fc(_0x51d044,_0x254f3a);},'UnWnG':function(_0x2e50b5,_0xcc67f6){return _0x2e50b5&_0xcc67f6;},'PjGso':function(_0x14af05){return _0x14af05();}},_0x5c633f=_0x38eb45[_0x23fc5a(0x1d5)],_0x50b46c=_0x38eb45[_0x23fc5a(0x23f)],_0x4e22a0=_0x5c633f['$flags$'],_0x22182c=_0x1f9bd4[_0x23fc5a(0x1d1)](createTime,_0x1f9bd4[_0x23fc5a(0x1eb)],_0x5c633f[_0x23fc5a(0x243)]),_0x57bcfd=_0x1f9bd4['DOkjk'](addStyle,_0x50b46c['shadowRoot']?_0x50b46c[_0x23fc5a(0x1c5)]:_0x50b46c[_0x23fc5a(0x1b9)](),_0x5c633f);_0x1f9bd4[_0x23fc5a(0x297)](_0x4e22a0,0xa)&&(_0x50b46c[_0x23fc5a(0x1f4)]=_0x57bcfd,_0x50b46c[_0x23fc5a(0x1bf)][_0x23fc5a(0x2b5)](_0x57bcfd+'-h')),_0x1f9bd4[_0x23fc5a(0x26f)](_0x22182c);},getScopeId=(_0x5f4536,_0x5b2357)=>_0xc39acc(0x1dd)+_0x5f4536[_0xc39acc(0x243)],setAccessor=(_0x526d6d,_0x1b96de,_0x156cec,_0x56a4d1,_0x485eeb,_0x2a9b6f)=>{const _0x124a89=_0xc39acc,_0xca8753={'GHjrm':function(_0x2a241b,_0x42bd1e){return _0x2a241b!==_0x42bd1e;},'ehliA':function(_0x180cb4,_0x4d595c,_0x5e954e){return _0x180cb4(_0x4d595c,_0x5e954e);},'SCvus':function(_0x790841,_0x3c6d8f){return _0x790841===_0x3c6d8f;},'vkVKP':_0x124a89(0x241),'nDdSf':function(_0x3eef6d,_0x314ef9){return _0x3eef6d(_0x314ef9);},'GEJtO':_0x124a89(0x205),'cErjd':'ref','bCEEp':function(_0x1b4a24,_0x5f3812){return _0x1b4a24(_0x5f3812);},'DibzB':function(_0x5290d8,_0x3eb3c1,_0x3ce87d){return _0x5290d8(_0x3eb3c1,_0x3ce87d);},'ZodhS':function(_0x585b96,_0x5a6a59){return _0x585b96!==_0x5a6a59;},'qYRrv':function(_0x46af49,_0x445786){return _0x46af49==_0x445786;},'TdDHD':function(_0x3d3d23,_0x57a08d){return _0x3d3d23===_0x57a08d;},'cdaUW':'list','dqXpf':function(_0x31e397,_0x354c85){return _0x31e397!=_0x354c85;},'NgHEa':function(_0x113efa,_0x5f19ee){return _0x113efa==_0x5f19ee;},'pdkSd':function(_0x4eb33e,_0x1bfec8){return _0x4eb33e===_0x1bfec8;},'IjSXO':function(_0x4ffb11,_0x8d8738){return _0x4ffb11&_0x8d8738;},'TkOsW':function(_0x5b4280,_0x3bd419){return _0x5b4280===_0x3bd419;}};if(_0xca8753['GHjrm'](_0x156cec,_0x56a4d1)){let _0x2de583=_0xca8753['ehliA'](isMemberInElement,_0x526d6d,_0x1b96de),_0x3d511a=_0x1b96de['toLowerCase']();if(_0xca8753['SCvus'](_0x1b96de,_0xca8753['vkVKP'])){const _0x431b82=_0x526d6d[_0x124a89(0x1bf)],_0x45a7c9=_0xca8753['nDdSf'](parseClassList,_0x156cec),_0x3e0fc3=parseClassList(_0x56a4d1);_0x431b82[_0x124a89(0x1b1)](..._0x45a7c9['filter'](_0x17a6f6=>_0x17a6f6&&!_0x3e0fc3[_0x124a89(0x298)](_0x17a6f6))),_0x431b82['add'](..._0x3e0fc3[_0x124a89(0x2ac)](_0x1a8e6e=>_0x1a8e6e&&!_0x45a7c9[_0x124a89(0x298)](_0x1a8e6e)));}else{if(_0xca8753[_0x124a89(0x2ba)](_0x1b96de,_0xca8753[_0x124a89(0x27e)])){{for(const _0x13bfde in _0x156cec){(!_0x56a4d1||_0x56a4d1[_0x13bfde]==null)&&(_0x13bfde[_0x124a89(0x298)]('-')?_0x526d6d[_0x124a89(0x205)][_0x124a89(0x279)](_0x13bfde):_0x526d6d[_0x124a89(0x205)][_0x13bfde]='');}}for(const _0x29da81 in _0x56a4d1){(!_0x156cec||_0xca8753['GHjrm'](_0x56a4d1[_0x29da81],_0x156cec[_0x29da81]))&&(_0x29da81['includes']('-')?_0x526d6d[_0x124a89(0x205)][_0x124a89(0x1da)](_0x29da81,_0x56a4d1[_0x29da81]):_0x526d6d[_0x124a89(0x205)][_0x29da81]=_0x56a4d1[_0x29da81]);}}else{if(_0xca8753['SCvus'](_0x1b96de,_0x124a89(0x287)));else{if(_0xca8753[_0x124a89(0x2ba)](_0x1b96de,_0xca8753[_0x124a89(0x2bf)]))_0x56a4d1&&_0xca8753[_0x124a89(0x206)](_0x56a4d1,_0x526d6d);else{if(!_0x2de583&&_0x1b96de[0x0]==='o'&&_0xca8753[_0x124a89(0x2ba)](_0x1b96de[0x1],'n')){if(_0xca8753[_0x124a89(0x2ba)](_0x1b96de[0x2],'-'))_0x1b96de=_0x1b96de[_0x124a89(0x21c)](0x3);else _0xca8753[_0x124a89(0x27c)](isMemberInElement,win,_0x3d511a)?_0x1b96de=_0x3d511a['slice'](0x2):_0x1b96de=_0x3d511a[0x2]+_0x1b96de[_0x124a89(0x21c)](0x3);_0x156cec&&plt[_0x124a89(0x256)](_0x526d6d,_0x1b96de,_0x156cec,![]),_0x56a4d1&&plt[_0x124a89(0x2ab)](_0x526d6d,_0x1b96de,_0x56a4d1,![]);}else{const _0x41cf6a=isComplexType(_0x56a4d1);if((_0x2de583||_0x41cf6a&&_0xca8753[_0x124a89(0x2be)](_0x56a4d1,null))&&!_0x485eeb)try{if(!_0x526d6d[_0x124a89(0x215)][_0x124a89(0x298)]('-')){const _0x42c78b=_0xca8753[_0x124a89(0x265)](_0x56a4d1,null)?'':_0x56a4d1;if(_0xca8753['TdDHD'](_0x1b96de,_0xca8753['cdaUW']))_0x2de583=![];else(_0xca8753[_0x124a89(0x265)](_0x156cec,null)||_0xca8753[_0x124a89(0x227)](_0x526d6d[_0x1b96de],_0x42c78b))&&(_0x526d6d[_0x1b96de]=_0x42c78b);}else _0x526d6d[_0x1b96de]=_0x56a4d1;}catch(_0x5cc295){}if(_0xca8753[_0x124a89(0x236)](_0x56a4d1,null)||_0xca8753['pdkSd'](_0x56a4d1,![])){if(_0x56a4d1!==![]||_0xca8753[_0x124a89(0x2ba)](_0x526d6d[_0x124a89(0x258)](_0x1b96de),'')){_0x526d6d['removeAttribute'](_0x1b96de);}}else{if((!_0x2de583||_0xca8753[_0x124a89(0x29e)](_0x2a9b6f,0x4)||_0x485eeb)&&!_0x41cf6a){_0x56a4d1=_0xca8753[_0x124a89(0x247)](_0x56a4d1,!![])?'':_0x56a4d1;{_0x526d6d[_0x124a89(0x2b7)](_0x1b96de,_0x56a4d1);}}}}}}}}}},parseClassListRegex=/\s/,parseClassList=_0xf95fd3=>!_0xf95fd3?[]:_0xf95fd3[_0xc39acc(0x1d2)](parseClassListRegex),updateElement=(_0x53f966,_0x35658f,_0x585227,_0x3469d7)=>{const _0x5416ff=_0xc39acc,_0x42236e={'tvluk':function(_0x306bc4,_0x2e04b9){return _0x306bc4===_0x2e04b9;},'bhHRD':function(_0x1f1e9a,_0x9e271f){return _0x1f1e9a in _0x9e271f;},'bjgBh':function(_0x1905d7,_0x37bfa8,_0x400e0,_0x5613e2,_0x43c087,_0xe831cb,_0x4da743){return _0x1905d7(_0x37bfa8,_0x400e0,_0x5613e2,_0x43c087,_0xe831cb,_0x4da743);}},_0x10fde1=_0x42236e['tvluk'](_0x35658f[_0x5416ff(0x1fc)][_0x5416ff(0x260)],0xb)&&_0x35658f['$elm$']['host']?_0x35658f[_0x5416ff(0x1fc)]['host']:_0x35658f[_0x5416ff(0x1fc)],_0x187ee3=_0x53f966&&_0x53f966[_0x5416ff(0x1b3)]||EMPTY_OBJ,_0x454bf7=_0x35658f[_0x5416ff(0x1b3)]||EMPTY_OBJ;{for(_0x3469d7 in _0x187ee3){!_0x42236e[_0x5416ff(0x2c3)](_0x3469d7,_0x454bf7)&&_0x42236e['bjgBh'](setAccessor,_0x10fde1,_0x3469d7,_0x187ee3[_0x3469d7],undefined,_0x585227,_0x35658f[_0x5416ff(0x254)]);}}for(_0x3469d7 in _0x454bf7){setAccessor(_0x10fde1,_0x3469d7,_0x187ee3[_0x3469d7],_0x454bf7[_0x3469d7],_0x585227,_0x35658f[_0x5416ff(0x254)]);}},createElm=(_0xe8be30,_0x5c7b38,_0x4a5b31,_0x12fd84)=>{const _0x439c9f=_0xc39acc,_0x1e3f9b={'ZmFAc':function(_0x275d0d,_0x330b0e){return _0x275d0d!==_0x330b0e;},'ENYjm':_0x439c9f(0x295),'XHNbn':function(_0x28887b,_0x31c107){return _0x28887b===_0x31c107;},'PEXzn':function(_0x7f4938,_0x245ba6,_0x17849c,_0x1d3591){return _0x7f4938(_0x245ba6,_0x17849c,_0x1d3591);},'tZFMo':function(_0x5e0a25,_0x330b81){return _0x5e0a25<_0x330b81;},'otrLW':_0x439c9f(0x204),'Iuzfm':function(_0x5662b4,_0x5c33b9){return _0x5662b4===_0x5c33b9;},'XwcJg':_0x439c9f(0x2c4),'Alrmx':function(_0x204bd2,_0x3f0ec5){return _0x204bd2(_0x3f0ec5);},'euzJn':'s-si'},_0x421ce0=_0x5c7b38['$children$'][_0x4a5b31];let _0x19741b=0x0,_0x4e5869,_0xdefd5;if(_0x1e3f9b[_0x439c9f(0x23b)](_0x421ce0[_0x439c9f(0x2bd)],null))_0x4e5869=_0x421ce0['$elm$']=doc[_0x439c9f(0x1b5)](_0x421ce0[_0x439c9f(0x2bd)]);else{const _0x591edf=_0x1e3f9b[_0x439c9f(0x2b4)][_0x439c9f(0x1d2)]('|');let _0x248819=0x0;while(!![]){switch(_0x591edf[_0x248819++]){case'0':!isSvgMode&&(isSvgMode=_0x1e3f9b[_0x439c9f(0x1bc)](_0x421ce0[_0x439c9f(0x1df)],_0x439c9f(0x2c4)));continue;case'1':_0x4e5869=_0x421ce0[_0x439c9f(0x1fc)]=doc['createElementNS'](isSvgMode?SVG_NS:HTML_NS,_0x421ce0[_0x439c9f(0x1df)]);continue;case'2':{_0x1e3f9b[_0x439c9f(0x1f1)](updateElement,null,_0x421ce0,isSvgMode);}continue;case'3':if(_0x421ce0[_0x439c9f(0x213)])for(_0x19741b=0x0;_0x1e3f9b['tZFMo'](_0x19741b,_0x421ce0['$children$'][_0x439c9f(0x2a8)]);++_0x19741b){_0xdefd5=createElm(_0xe8be30,_0x421ce0,_0x19741b),_0xdefd5&&_0x4e5869[_0x439c9f(0x1e1)](_0xdefd5);}continue;case'4':isSvgMode&&_0x1e3f9b['XHNbn'](_0x421ce0['$tag$'],_0x1e3f9b['otrLW'])&&(isSvgMode=![]);continue;case'5':{if(_0x1e3f9b[_0x439c9f(0x269)](_0x421ce0[_0x439c9f(0x1df)],_0x1e3f9b['XwcJg']))isSvgMode=![];else _0x1e3f9b[_0x439c9f(0x269)](_0x4e5869['tagName'],_0x1e3f9b[_0x439c9f(0x2af)])&&(isSvgMode=!![]);}continue;case'6':_0x1e3f9b[_0x439c9f(0x200)](isDef,scopeId)&&_0x1e3f9b['ZmFAc'](_0x4e5869[_0x1e3f9b['euzJn']],scopeId)&&_0x4e5869['classList']['add'](_0x4e5869[_0x439c9f(0x2ad)]=scopeId);continue;}break;}}return _0x4e5869;},addVnodes=(_0x3bf473,_0x5efb20,_0x8d398f,_0x826be8,_0x36b1b7,_0xec7607)=>{const _0x350b67=_0xc39acc,_0x2d0da6={'xpwIe':function(_0x1c5caf,_0x37caa5){return _0x1c5caf===_0x37caa5;},'FQRhJ':function(_0x381649,_0x326782){return _0x381649<=_0x326782;},'LBgym':function(_0x465d76,_0x4465e5,_0x41c2c5,_0x45a083){return _0x465d76(_0x4465e5,_0x41c2c5,_0x45a083);}};let _0x4ce69b=_0x3bf473,_0x5bbbb2;_0x4ce69b[_0x350b67(0x1c5)]&&_0x2d0da6['xpwIe'](_0x4ce69b[_0x350b67(0x215)],hostTagName)&&(_0x4ce69b=_0x4ce69b[_0x350b67(0x1c5)]);for(;_0x2d0da6[_0x350b67(0x25b)](_0x36b1b7,_0xec7607);++_0x36b1b7){_0x826be8[_0x36b1b7]&&(_0x5bbbb2=_0x2d0da6[_0x350b67(0x26c)](createElm,null,_0x8d398f,_0x36b1b7),_0x5bbbb2&&(_0x826be8[_0x36b1b7][_0x350b67(0x1fc)]=_0x5bbbb2,_0x4ce69b['insertBefore'](_0x5bbbb2,_0x5efb20)));}},removeVnodes=(_0x2d2cff,_0x19e473,_0x5ad02f,_0x2a628f,_0x2fa10c)=>{const _0x82e828=_0xc39acc,_0x5246be={'jaDNn':function(_0xb7d6e4,_0x22a37f){return _0xb7d6e4<=_0x22a37f;}};for(;_0x5246be[_0x82e828(0x292)](_0x19e473,_0x5ad02f);++_0x19e473){(_0x2a628f=_0x2d2cff[_0x19e473])&&(_0x2fa10c=_0x2a628f[_0x82e828(0x1fc)],callNodeRefs(_0x2a628f),_0x2fa10c['remove']());}},updateChildren=(_0x23bcc5,_0x69fe50,_0x524440,_0x531e32)=>{const _0x2b427b=_0xc39acc,_0x4b770f={'TmHLJ':function(_0x150050,_0x46a438){return _0x150050-_0x46a438;},'vkKnF':function(_0x42d2f0,_0x564ed7){return _0x42d2f0<=_0x564ed7;},'qPzdM':function(_0x554dce,_0x51dba0){return _0x554dce<=_0x51dba0;},'tjvUD':function(_0x57806a,_0x1a7933){return _0x57806a==_0x1a7933;},'Appem':function(_0x11367c,_0x575547){return _0x11367c==_0x575547;},'kcKNr':function(_0x4b2866,_0x1da66d,_0x115cd3){return _0x4b2866(_0x1da66d,_0x115cd3);},'XcDVp':function(_0x54d041,_0x5aadba,_0x447081){return _0x54d041(_0x5aadba,_0x447081);},'cSiJE':function(_0x1098a8,_0x4e171e,_0x2e2a70){return _0x1098a8(_0x4e171e,_0x2e2a70);},'IrOSe':function(_0x213b03,_0x5c2c47,_0x168dc5){return _0x213b03(_0x5c2c47,_0x168dc5);},'yGrFe':function(_0x4df4f3,_0x328297){return _0x4df4f3!==_0x328297;},'Msupq':function(_0x384fa8,_0x38c767){return _0x384fa8===_0x38c767;},'IhWSm':function(_0x538f62,_0x32b990){return _0x538f62>=_0x32b990;},'vfWvA':function(_0x207745,_0x19211f,_0x452687,_0x43f481){return _0x207745(_0x19211f,_0x452687,_0x43f481);},'bwiun':function(_0x5e5c5b,_0x41cd96,_0xf65f56){return _0x5e5c5b(_0x41cd96,_0xf65f56);},'xsGPl':function(_0x1bc69c,_0x419bb6){return _0x1bc69c>_0x419bb6;},'MpEKN':function(_0x22a00e,_0x3109bd,_0x34a5ac,_0x121e9c,_0x4e0711,_0x59f918,_0x91eb68){return _0x22a00e(_0x3109bd,_0x34a5ac,_0x121e9c,_0x4e0711,_0x59f918,_0x91eb68);},'yQUHF':function(_0x5293e5,_0x51f0ae){return _0x5293e5==_0x51f0ae;},'sAdFk':function(_0x49866a,_0x5208ad){return _0x49866a+_0x5208ad;},'tkGSD':function(_0x6695c6,_0x2bd356){return _0x6695c6+_0x2bd356;}};let _0xaa593b=0x0,_0x4f71a0=0x0,_0x3ff17d=0x0,_0x53b680=0x0,_0x586b72=_0x4b770f[_0x2b427b(0x1d9)](_0x69fe50[_0x2b427b(0x2a8)],0x1),_0x8eec1c=_0x69fe50[0x0],_0x3c8730=_0x69fe50[_0x586b72],_0x1c4f04=_0x4b770f[_0x2b427b(0x1d9)](_0x531e32[_0x2b427b(0x2a8)],0x1),_0x2507c6=_0x531e32[0x0],_0x3c06a3=_0x531e32[_0x1c4f04],_0x31ca9c,_0xc37b0d;while(_0x4b770f[_0x2b427b(0x234)](_0xaa593b,_0x586b72)&&_0x4b770f['qPzdM'](_0x4f71a0,_0x1c4f04)){if(_0x8eec1c==null)_0x8eec1c=_0x69fe50[++_0xaa593b];else{if(_0x4b770f[_0x2b427b(0x2a4)](_0x3c8730,null))_0x3c8730=_0x69fe50[--_0x586b72];else{if(_0x4b770f[_0x2b427b(0x2a4)](_0x2507c6,null))_0x2507c6=_0x531e32[++_0x4f71a0];else{if(_0x4b770f['Appem'](_0x3c06a3,null))_0x3c06a3=_0x531e32[--_0x1c4f04];else{if(_0x4b770f[_0x2b427b(0x1d4)](isSameVnode,_0x8eec1c,_0x2507c6))patch(_0x8eec1c,_0x2507c6),_0x8eec1c=_0x69fe50[++_0xaa593b],_0x2507c6=_0x531e32[++_0x4f71a0];else{if(_0x4b770f['XcDVp'](isSameVnode,_0x3c8730,_0x3c06a3))_0x4b770f['XcDVp'](patch,_0x3c8730,_0x3c06a3),_0x3c8730=_0x69fe50[--_0x586b72],_0x3c06a3=_0x531e32[--_0x1c4f04];else{if(_0x4b770f[_0x2b427b(0x219)](isSameVnode,_0x8eec1c,_0x3c06a3))_0x4b770f[_0x2b427b(0x219)](patch,_0x8eec1c,_0x3c06a3),_0x23bcc5[_0x2b427b(0x29a)](_0x8eec1c['$elm$'],_0x3c8730[_0x2b427b(0x1fc)]['nextSibling']),_0x8eec1c=_0x69fe50[++_0xaa593b],_0x3c06a3=_0x531e32[--_0x1c4f04];else{if(_0x4b770f[_0x2b427b(0x1f2)](isSameVnode,_0x3c8730,_0x2507c6))_0x4b770f[_0x2b427b(0x22d)](patch,_0x3c8730,_0x2507c6),_0x23bcc5[_0x2b427b(0x29a)](_0x3c8730['$elm$'],_0x8eec1c['$elm$']),_0x3c8730=_0x69fe50[--_0x586b72],_0x2507c6=_0x531e32[++_0x4f71a0];else{_0x3ff17d=-0x1;{for(_0x53b680=_0xaa593b;_0x4b770f[_0x2b427b(0x234)](_0x53b680,_0x586b72);++_0x53b680){if(_0x69fe50[_0x53b680]&&_0x4b770f[_0x2b427b(0x23a)](_0x69fe50[_0x53b680][_0x2b427b(0x294)],null)&&_0x4b770f[_0x2b427b(0x288)](_0x69fe50[_0x53b680][_0x2b427b(0x294)],_0x2507c6[_0x2b427b(0x294)])){_0x3ff17d=_0x53b680;break;}}}_0x4b770f['IhWSm'](_0x3ff17d,0x0)?(_0xc37b0d=_0x69fe50[_0x3ff17d],_0xc37b0d[_0x2b427b(0x1df)]!==_0x2507c6[_0x2b427b(0x1df)]?_0x31ca9c=_0x4b770f[_0x2b427b(0x218)](createElm,_0x69fe50&&_0x69fe50[_0x4f71a0],_0x524440,_0x3ff17d):(_0x4b770f[_0x2b427b(0x22b)](patch,_0xc37b0d,_0x2507c6),_0x69fe50[_0x3ff17d]=undefined,_0x31ca9c=_0xc37b0d[_0x2b427b(0x1fc)]),_0x2507c6=_0x531e32[++_0x4f71a0]):(_0x31ca9c=_0x4b770f[_0x2b427b(0x218)](createElm,_0x69fe50&&_0x69fe50[_0x4f71a0],_0x524440,_0x4f71a0),_0x2507c6=_0x531e32[++_0x4f71a0]);if(_0x31ca9c){_0x8eec1c[_0x2b427b(0x1fc)][_0x2b427b(0x222)][_0x2b427b(0x29a)](_0x31ca9c,_0x8eec1c['$elm$']);}}}}}}}}}}if(_0x4b770f[_0x2b427b(0x26a)](_0xaa593b,_0x586b72))_0x4b770f[_0x2b427b(0x223)](addVnodes,_0x23bcc5,_0x4b770f[_0x2b427b(0x255)](_0x531e32[_0x4b770f[_0x2b427b(0x1c4)](_0x1c4f04,0x1)],null)?null:_0x531e32[_0x4b770f['tkGSD'](_0x1c4f04,0x1)][_0x2b427b(0x1fc)],_0x524440,_0x531e32,_0x4f71a0,_0x1c4f04);else _0x4f71a0>_0x1c4f04&&_0x4b770f[_0x2b427b(0x218)](removeVnodes,_0x69fe50,_0xaa593b,_0x586b72);},isSameVnode=(_0x326958,_0x27e317)=>{const _0x4c84bf=_0xc39acc,_0x29158b={'UciGU':function(_0x46defc,_0x4467d9){return _0x46defc===_0x4467d9;}};if(_0x29158b[_0x4c84bf(0x1ca)](_0x326958['$tag$'],_0x27e317[_0x4c84bf(0x1df)])){return _0x326958['$key$']===_0x27e317['$key$'];}return![];},patch=(_0x1739e6,_0x5eef25)=>{const _0x3494cd=_0xc39acc,_0x1f2593={'aVceV':function(_0x54b47d,_0x293413){return _0x54b47d===_0x293413;},'jyOCJ':_0x3494cd(0x2c4),'rYRIw':_0x3494cd(0x233),'QMzwV':function(_0x177f8c,_0x162134,_0x25f582,_0x4eaf4f){return _0x177f8c(_0x162134,_0x25f582,_0x4eaf4f);},'wiUSC':function(_0x8c6d3b,_0x30762c){return _0x8c6d3b!==_0x30762c;},'TQDnQ':function(_0x5e297d,_0x3bc4a7,_0x279b67,_0x298a79,_0x459341){return _0x5e297d(_0x3bc4a7,_0x279b67,_0x298a79,_0x459341);},'bJuXK':function(_0x2f41dd,_0x593236){return _0x2f41dd-_0x593236;},'cHpwo':function(_0x2c5ccd,_0x3f7ad6,_0x8f0aec,_0x4e8a07){return _0x2c5ccd(_0x3f7ad6,_0x8f0aec,_0x4e8a07);},'PPwFx':function(_0x46117b,_0x42f0be){return _0x46117b===_0x42f0be;},'OAbrE':function(_0x1b78c5,_0x515c0b){return _0x1b78c5!==_0x515c0b;}},_0x5da4a3=_0x5eef25[_0x3494cd(0x1fc)]=_0x1739e6[_0x3494cd(0x1fc)],_0x1fc567=_0x1739e6['$children$'],_0x4a9f87=_0x5eef25[_0x3494cd(0x213)],_0x53d6c1=_0x5eef25[_0x3494cd(0x1df)],_0x2ce4ab=_0x5eef25[_0x3494cd(0x2bd)];if(_0x2ce4ab===null){{isSvgMode=_0x1f2593[_0x3494cd(0x1ce)](_0x53d6c1,_0x1f2593[_0x3494cd(0x24f)])?!![]:_0x1f2593[_0x3494cd(0x1ce)](_0x53d6c1,_0x3494cd(0x204))?![]:isSvgMode;}{if(_0x53d6c1===_0x1f2593['rYRIw']);else _0x1f2593[_0x3494cd(0x2c5)](updateElement,_0x1739e6,_0x5eef25,isSvgMode);}if(_0x1f2593[_0x3494cd(0x257)](_0x1fc567,null)&&_0x1f2593[_0x3494cd(0x257)](_0x4a9f87,null))_0x1f2593[_0x3494cd(0x272)](updateChildren,_0x5da4a3,_0x1fc567,_0x5eef25,_0x4a9f87);else{if(_0x1f2593[_0x3494cd(0x257)](_0x4a9f87,null))_0x1f2593[_0x3494cd(0x257)](_0x1739e6[_0x3494cd(0x2bd)],null)&&(_0x5da4a3[_0x3494cd(0x2b3)]=''),addVnodes(_0x5da4a3,null,_0x5eef25,_0x4a9f87,0x0,_0x1f2593[_0x3494cd(0x1dc)](_0x4a9f87[_0x3494cd(0x2a8)],0x1));else _0x1f2593[_0x3494cd(0x257)](_0x1fc567,null)&&_0x1f2593[_0x3494cd(0x21a)](removeVnodes,_0x1fc567,0x0,_0x1fc567[_0x3494cd(0x2a8)]-0x1);}isSvgMode&&_0x1f2593[_0x3494cd(0x293)](_0x53d6c1,_0x1f2593[_0x3494cd(0x24f)])&&(isSvgMode=![]);}else _0x1f2593[_0x3494cd(0x286)](_0x1739e6[_0x3494cd(0x2bd)],_0x2ce4ab)&&(_0x5da4a3[_0x3494cd(0x1bb)]=_0x2ce4ab);},callNodeRefs=_0x563236=>{const _0x2ff488=_0xc39acc;{_0x563236[_0x2ff488(0x1b3)]&&_0x563236[_0x2ff488(0x1b3)][_0x2ff488(0x225)]&&_0x563236['$attrs$']['ref'](null),_0x563236['$children$']&&_0x563236[_0x2ff488(0x213)][_0x2ff488(0x1b6)](callNodeRefs);}},renderVdom=(_0x59a509,_0x7f907f)=>{const _0x18a29a=_0xc39acc,_0x6d1abe={'UylCS':function(_0x15afc5,_0x344295,_0x36b40c){return _0x15afc5(_0x344295,_0x36b40c);},'qnTiS':function(_0x401264,_0x3b8d05,_0x3b8926,_0x5874e3){return _0x401264(_0x3b8d05,_0x3b8926,_0x5874e3);},'wFpUW':_0x18a29a(0x1f4)},_0x381fe8=_0x59a509[_0x18a29a(0x23f)],_0x1fad69=_0x59a509[_0x18a29a(0x1d5)],_0x57655b=_0x59a509[_0x18a29a(0x201)]||_0x6d1abe[_0x18a29a(0x2a9)](newVNode,null,null),_0x52b4a9=isHost(_0x7f907f)?_0x7f907f:_0x6d1abe[_0x18a29a(0x216)](h,null,null,_0x7f907f);hostTagName=_0x381fe8['tagName'];_0x1fad69['$attrsToReflect$']&&(_0x52b4a9['$attrs$']=_0x52b4a9[_0x18a29a(0x1b3)]||{},_0x1fad69[_0x18a29a(0x1cd)]['map'](([_0x2843e5,_0x45dc5b])=>_0x52b4a9[_0x18a29a(0x1b3)][_0x45dc5b]=_0x381fe8[_0x2843e5]));_0x52b4a9[_0x18a29a(0x1df)]=null,_0x52b4a9[_0x18a29a(0x254)]|=0x4,_0x59a509['$vnode$']=_0x52b4a9,_0x52b4a9[_0x18a29a(0x1fc)]=_0x57655b['$elm$']=_0x381fe8['shadowRoot']||_0x381fe8;{scopeId=_0x381fe8[_0x6d1abe[_0x18a29a(0x248)]];}_0x6d1abe[_0x18a29a(0x2a9)](patch,_0x57655b,_0x52b4a9);},attachToAncestor=(_0x35a197,_0x4051c2)=>{const _0x137961=_0xc39acc,_0x4a95ca={'rKQBo':'s-p'};_0x4051c2&&!_0x35a197[_0x137961(0x238)]&&_0x4051c2[_0x4a95ca['rKQBo']]&&_0x4051c2[_0x137961(0x22f)][_0x137961(0x253)](new Promise(_0x278af0=>_0x35a197['$onRenderResolve$']=_0x278af0));},scheduleUpdate=(_0x340df7,_0x4c0ba8)=>{const _0x405e51=_0xc39acc,_0x431dea={'OudJM':function(_0x4318cb,_0x502d6a){return _0x4318cb&_0x502d6a;},'hxKkS':function(_0xf83dbe,_0x5ad255,_0x3c5b30){return _0xf83dbe(_0x5ad255,_0x3c5b30);},'ezDpf':function(_0x44da2a,_0x15f62b){return _0x44da2a(_0x15f62b);}};{_0x340df7[_0x405e51(0x254)]|=0x10;}if(_0x431dea[_0x405e51(0x28d)](_0x340df7[_0x405e51(0x254)],0x4)){_0x340df7[_0x405e51(0x254)]|=0x200;return;}_0x431dea[_0x405e51(0x1c8)](attachToAncestor,_0x340df7,_0x340df7[_0x405e51(0x268)]);const _0x184eb5=()=>dispatchHooks(_0x340df7,_0x4c0ba8);return _0x431dea[_0x405e51(0x24e)](writeTask,_0x184eb5);},dispatchHooks=(_0x8f5174,_0x343e15)=>{const _0x42ded6=_0xc39acc,_0x1af0f9={'UnrEb':function(_0x39a1bd,_0x154197,_0x402bc5){return _0x39a1bd(_0x154197,_0x402bc5);},'kuXWe':'scheduleUpdate','DXhFr':function(_0x2a326e,_0x37a984,_0x31d04b){return _0x2a326e(_0x37a984,_0x31d04b);},'BdaXo':'componentWillLoad','MUkzb':function(_0x3c55eb){return _0x3c55eb();}},_0x531e1b=_0x1af0f9[_0x42ded6(0x1b4)](createTime,_0x1af0f9['kuXWe'],_0x8f5174[_0x42ded6(0x1d5)][_0x42ded6(0x243)]),_0x1fd777=_0x8f5174[_0x42ded6(0x232)];let _0x22fbc4;if(_0x343e15){_0x22fbc4=_0x1af0f9['DXhFr'](safeCall,_0x1fd777,_0x1af0f9['BdaXo']);}return _0x1af0f9[_0x42ded6(0x2c1)](_0x531e1b),_0x1af0f9[_0x42ded6(0x1b4)](then,_0x22fbc4,()=>updateComponent(_0x8f5174,_0x1fd777,_0x343e15));},updateComponent=async(_0x7c93c7,_0x1977eb,_0x4bf313)=>{const _0x4995c3=_0xc39acc,_0x42a3a3={'qMdwv':function(_0x210618,_0x3d0f8c,_0x47f7e5){return _0x210618(_0x3d0f8c,_0x47f7e5);},'yXpnE':_0x4995c3(0x24b),'VNuGV':'s-rc','WPHHy':function(_0x135773){return _0x135773();},'tJqOe':function(_0x2b1ccb){return _0x2b1ccb();},'CUSkk':_0x4995c3(0x22f),'vStJP':function(_0x4c17da){return _0x4c17da();}},_0x1c35ed=_0x7c93c7['$hostElement$'],_0x2b1a2c=_0x42a3a3['qMdwv'](createTime,_0x42a3a3['yXpnE'],_0x7c93c7[_0x4995c3(0x1d5)][_0x4995c3(0x243)]),_0x2f92d3=_0x1c35ed[_0x4995c3(0x1fd)];_0x4bf313&&attachStyles(_0x7c93c7);const _0x230f6d=_0x42a3a3[_0x4995c3(0x1f3)](createTime,_0x4995c3(0x25e),_0x7c93c7[_0x4995c3(0x1d5)][_0x4995c3(0x243)]);{_0x42a3a3[_0x4995c3(0x1f3)](callRender,_0x7c93c7,_0x1977eb);}_0x2f92d3&&(_0x2f92d3['map'](_0x319825=>_0x319825()),_0x1c35ed[_0x42a3a3[_0x4995c3(0x29c)]]=undefined);_0x42a3a3[_0x4995c3(0x28a)](_0x230f6d),_0x42a3a3['tJqOe'](_0x2b1a2c);{const _0x430140=_0x1c35ed[_0x42a3a3[_0x4995c3(0x207)]],_0x1002d7=()=>postUpdateComponent(_0x7c93c7);_0x430140[_0x4995c3(0x2a8)]===0x0?_0x42a3a3['vStJP'](_0x1002d7):(Promise[_0x4995c3(0x1b0)](_0x430140)[_0x4995c3(0x1e5)](_0x1002d7),_0x7c93c7[_0x4995c3(0x254)]|=0x4,_0x430140[_0x4995c3(0x2a8)]=0x0);}},callRender=(_0x304705,_0x45878c,_0x5ae885)=>{const _0x13f958=_0xc39acc,_0x20d0c2={'zMdRj':function(_0x2d73d0,_0x2b96a5,_0x280711){return _0x2d73d0(_0x2b96a5,_0x280711);}};try{_0x45878c=_0x45878c[_0x13f958(0x25e)]();{_0x304705[_0x13f958(0x254)]&=~0x10;}{_0x304705[_0x13f958(0x254)]|=0x2;}{{{renderVdom(_0x304705,_0x45878c);}}}}catch(_0x896cc2){_0x20d0c2['zMdRj'](consoleError,_0x896cc2,_0x304705[_0x13f958(0x23f)]);}return null;},postUpdateComponent=_0x52e325=>{const _0x5e611b=_0xc39acc,_0x54925e={'YcSPg':_0x5e611b(0x1bd),'KnVrV':function(_0x514270,_0x3d1051,_0x2d942c){return _0x514270(_0x3d1051,_0x2d942c);},'XnLrc':_0x5e611b(0x221),'Hcjrr':function(_0x35541f){return _0x35541f();},'ssqTB':function(_0x18fa67,_0x425acd){return _0x18fa67&_0x425acd;},'UZiJx':function(_0x2f806e,_0x20b46f){return _0x2f806e(_0x20b46f);},'dYXbH':function(_0x4cd91b,_0x39ee54){return _0x4cd91b|_0x39ee54;}},_0x5c63c2=_0x52e325[_0x5e611b(0x1d5)]['$tagName$'],_0x3a8393=_0x52e325[_0x5e611b(0x23f)],_0x5a227d=createTime(_0x54925e[_0x5e611b(0x1d3)],_0x5c63c2),_0x59743e=_0x52e325['$lazyInstance$'],_0x2125a2=_0x52e325['$ancestorComponent$'];if(!(_0x52e325['$flags$']&0x40)){_0x52e325[_0x5e611b(0x254)]|=0x40;{addHydratedFlag(_0x3a8393);}{_0x54925e['KnVrV'](safeCall,_0x59743e,_0x54925e['XnLrc']);}_0x5a227d();{_0x52e325[_0x5e611b(0x1f0)](_0x3a8393),!_0x2125a2&&_0x54925e[_0x5e611b(0x1e2)](appDidLoad);}}else _0x54925e[_0x5e611b(0x1e2)](_0x5a227d);{_0x52e325[_0x5e611b(0x238)]&&(_0x52e325['$onRenderResolve$'](),_0x52e325[_0x5e611b(0x238)]=undefined),_0x54925e[_0x5e611b(0x2b9)](_0x52e325['$flags$'],0x200)&&_0x54925e[_0x5e611b(0x289)](nextTick,()=>scheduleUpdate(_0x52e325,![])),_0x52e325['$flags$']&=~_0x54925e[_0x5e611b(0x212)](0x4,0x200);}},appDidLoad=_0x28dc1e=>{const _0x480519=_0xc39acc,_0x56185a={'OQRuW':function(_0x28f497,_0x300670){return _0x28f497(_0x300670);}};{addHydratedFlag(doc[_0x480519(0x2a7)]);}_0x56185a['OQRuW'](nextTick,()=>emitEvent(win,'appload',{'detail':{'namespace':NAMESPACE}}));},safeCall=(_0x30de5a,_0x241813,_0x4fbfa3)=>{const _0x152bab=_0xc39acc,_0x25a4cb={'BLVFZ':function(_0x41cfa7,_0x1a5d84){return _0x41cfa7(_0x1a5d84);}};if(_0x30de5a&&_0x30de5a[_0x241813])try{return _0x30de5a[_0x241813](_0x4fbfa3);}catch(_0x956acc){_0x25a4cb[_0x152bab(0x20b)](consoleError,_0x956acc);}return undefined;},then=(_0x4b0144,_0x3b4316)=>{const _0x144c17=_0xc39acc,_0x3901ea={'jvGVI':function(_0x4cfc60){return _0x4cfc60();}};return _0x4b0144&&_0x4b0144['then']?_0x4b0144['then'](_0x3b4316):_0x3901ea[_0x144c17(0x21b)](_0x3b4316);},addHydratedFlag=_0x501ebe=>_0x501ebe[_0xc39acc(0x1bf)][_0xc39acc(0x2b5)](_0xc39acc(0x21d)),getValue=(_0x2ca525,_0x57cc2f)=>getHostRef(_0x2ca525)[_0xc39acc(0x239)]['get'](_0x57cc2f),setValue=(_0x3b2ca2,_0xdcbbd8,_0x53a389,_0x272940)=>{const _0x58e50c=_0xc39acc,_0x57010f={'YFNNc':function(_0x4dd07d,_0x5c4dd4,_0x217983){return _0x4dd07d(_0x5c4dd4,_0x217983);},'xRElb':function(_0x46dcd9,_0x38c152){return _0x46dcd9!==_0x38c152;},'BprHN':function(_0x3259eb,_0x5131e4){return _0x3259eb&_0x5131e4;},'BrVkQ':function(_0x39b7ba,_0x5d4550){return _0x39b7ba===_0x5d4550;},'crYBv':function(_0x859444,_0x3133d1){return _0x859444|_0x3133d1;},'vmeaC':function(_0x180cf7,_0x25a2c5,_0x592dd5){return _0x180cf7(_0x25a2c5,_0x592dd5);}},_0x1ba2a3=getHostRef(_0x3b2ca2),_0x4de4ef=_0x1ba2a3[_0x58e50c(0x239)][_0x58e50c(0x1c0)](_0xdcbbd8),_0x1ffabd=_0x1ba2a3['$flags$'],_0x56165e=_0x1ba2a3[_0x58e50c(0x232)];_0x53a389=_0x57010f[_0x58e50c(0x231)](parsePropertyValue,_0x53a389,_0x272940['$members$'][_0xdcbbd8][0x0]);const _0x2f5d11=Number[_0x58e50c(0x2a2)](_0x4de4ef)&&Number[_0x58e50c(0x2a2)](_0x53a389),_0xd9b4ad=_0x57010f[_0x58e50c(0x2c0)](_0x53a389,_0x4de4ef)&&!_0x2f5d11;(!_0x57010f[_0x58e50c(0x2b1)](_0x1ffabd,0x8)||_0x57010f[_0x58e50c(0x2bc)](_0x4de4ef,undefined))&&_0xd9b4ad&&(_0x1ba2a3[_0x58e50c(0x239)]['set'](_0xdcbbd8,_0x53a389),_0x56165e&&(_0x57010f[_0x58e50c(0x2bc)](_0x57010f[_0x58e50c(0x2b1)](_0x1ffabd,_0x57010f[_0x58e50c(0x284)](0x2,0x10)),0x2)&&_0x57010f[_0x58e50c(0x1ef)](scheduleUpdate,_0x1ba2a3,![])));},proxyComponent=(_0xeda1a3,_0x5666f7,_0x1e7b7e)=>{const _0x2e4287=_0xc39acc,_0x517c88={'rkIQi':function(_0x32debd,_0x48e0e5,_0xea004c,_0x1febe6,_0x5bd5a9){return _0x32debd(_0x48e0e5,_0xea004c,_0x1febe6,_0x5bd5a9);},'DxzOv':function(_0xa89c22,_0xc0888d,_0x5d275e){return _0xa89c22(_0xc0888d,_0x5d275e);},'Grwxy':function(_0x29375d,_0xf88a10){return _0x29375d&_0xf88a10;},'yjtOP':function(_0xafdd4f,_0xf7412){return _0xafdd4f&_0xf7412;},'IseHy':function(_0x3564f2,_0x571b3a){return _0x3564f2===_0x571b3a;},'icHgc':_0x2e4287(0x202),'rrWIC':function(_0x3e9257,_0x2d8554){return _0x3e9257===_0x2d8554;},'HTCiE':_0x2e4287(0x1c1),'gPLVI':function(_0x8ab38,_0xe76d26){return _0x8ab38&_0xe76d26;}};if(_0x5666f7[_0x2e4287(0x1ee)]){const _0x532184=Object['entries'](_0x5666f7[_0x2e4287(0x1ee)]),_0x1570be=_0xeda1a3[_0x2e4287(0x226)];_0x532184[_0x2e4287(0x1b6)](([_0x3ed6f,[_0x2336d8]])=>{const _0x3db874=_0x2e4287,_0x4fb792={'UgMGz':function(_0x189e0a,_0x504e1b,_0x1addad){const _0x47fdb3=_0x63de;return _0x517c88[_0x47fdb3(0x249)](_0x189e0a,_0x504e1b,_0x1addad);}};(_0x517c88['Grwxy'](_0x2336d8,0x1f)||_0x1e7b7e&0x2&&_0x517c88[_0x3db874(0x299)](_0x2336d8,0x20))&&Object[_0x3db874(0x23e)](_0x1570be,_0x3ed6f,{'get'(){const _0x4e64c9=_0x3db874;return _0x4fb792[_0x4e64c9(0x27f)](getValue,this,_0x3ed6f);},'set'(_0x2c76df){const _0xe19602=_0x3db874;_0x517c88[_0xe19602(0x263)](setValue,this,_0x3ed6f,_0x2c76df,_0x5666f7);},'configurable':!![],'enumerable':!![]});});if(_0x517c88[_0x2e4287(0x22a)](_0x1e7b7e,0x1)){const _0x29df78=new Map();_0x1570be['attributeChangedCallback']=function(_0x40f6ac,_0x5cc289,_0x1f5c94){const _0xbc605c=_0x2e4287;plt[_0xbc605c(0x270)](()=>{const _0x43328a=_0xbc605c,_0x7ce86c=_0x29df78['get'](_0x40f6ac);if(this[_0x43328a(0x2a1)](_0x7ce86c))_0x1f5c94=this[_0x7ce86c],delete this[_0x7ce86c];else{if(_0x1570be[_0x43328a(0x2a1)](_0x7ce86c)&&_0x517c88[_0x43328a(0x28f)](typeof this[_0x7ce86c],_0x517c88[_0x43328a(0x280)])&&this[_0x7ce86c]==_0x1f5c94)return;}this[_0x7ce86c]=_0x517c88[_0x43328a(0x25a)](_0x1f5c94,null)&&_0x517c88[_0x43328a(0x28f)](typeof this[_0x7ce86c],_0x517c88[_0x43328a(0x291)])?![]:_0x1f5c94;});},_0xeda1a3[_0x2e4287(0x1fe)]=_0x532184['filter'](([_0x3a831e,_0x1ee6a5])=>_0x1ee6a5[0x0]&0xf)[_0x2e4287(0x1b6)](([_0x30d584,_0x20c00a])=>{const _0x521099=_0x2e4287,_0x5f4405=_0x20c00a[0x1]||_0x30d584;return _0x29df78[_0x521099(0x275)](_0x5f4405,_0x30d584),_0x20c00a[0x0]&0x200&&_0x5666f7[_0x521099(0x1cd)]['push']([_0x30d584,_0x5f4405]),_0x5f4405;});}}return _0xeda1a3;},initializeComponent=async(_0x4c995c,_0x42acd3,_0x1cd64c,_0x255cdf,_0x345a7e)=>{const _0x36668e=_0xc39acc,_0x228381={'DWlaT':function(_0x49900f,_0x104993){return _0x49900f&_0x104993;},'zMQxA':function(_0x489abd,_0x42620d){return _0x489abd(_0x42620d);},'zdqqp':function(_0x39099a){return _0x39099a();},'mlzol':function(_0x172756,_0x3aa2c5,_0x518a01,_0xafe8ac){return _0x172756(_0x3aa2c5,_0x518a01,_0xafe8ac);},'TnniB':function(_0x2fb884,_0x1497e1,_0x4f3fe4){return _0x2fb884(_0x1497e1,_0x4f3fe4);},'VcpAY':function(_0x2e848a,_0xc74add){return _0x2e848a(_0xc74add);},'hmKiZ':_0x36668e(0x1d7),'ekrhU':function(_0x7a01bb,_0x13d200,_0x110980,_0x2b2cc5){return _0x7a01bb(_0x13d200,_0x110980,_0x2b2cc5);},'bSoNb':function(_0x1e33b2,_0x382ca8){return _0x1e33b2&_0x382ca8;}};if(_0x228381[_0x36668e(0x25c)](_0x42acd3['$flags$'],0x20)===0x0){{_0x42acd3[_0x36668e(0x254)]|=0x20,_0x345a7e=_0x228381['zMQxA'](loadModule,_0x1cd64c);if(_0x345a7e[_0x36668e(0x1e5)]){const _0xb0c54b=uniqueTime();_0x345a7e=await _0x345a7e,_0x228381['zdqqp'](_0xb0c54b);}!_0x345a7e[_0x36668e(0x271)]&&(_0x228381['mlzol'](proxyComponent,_0x345a7e,_0x1cd64c,0x2),_0x345a7e['isProxied']=!![]);const _0xcd2efd=_0x228381[_0x36668e(0x2b0)](createTime,'createInstance',_0x1cd64c['$tagName$']);{_0x42acd3[_0x36668e(0x254)]|=0x8;}try{new _0x345a7e(_0x42acd3);}catch(_0x565c37){_0x228381[_0x36668e(0x1e9)](consoleError,_0x565c37);}{_0x42acd3[_0x36668e(0x254)]&=~0x8;}_0xcd2efd(),_0x228381[_0x36668e(0x23d)](fireConnectedCallback,_0x42acd3[_0x36668e(0x232)]);}if(_0x345a7e[_0x36668e(0x205)]){let _0x4d1e01=_0x345a7e[_0x36668e(0x205)];const _0x3865ee=getScopeId(_0x1cd64c);if(!styles[_0x36668e(0x1d8)](_0x3865ee)){const _0x1876aa=createTime(_0x228381[_0x36668e(0x27d)],_0x1cd64c['$tagName$']);_0x228381[_0x36668e(0x1cc)](registerStyle,_0x3865ee,_0x4d1e01,!!_0x228381[_0x36668e(0x20e)](_0x1cd64c[_0x36668e(0x254)],0x1)),_0x228381[_0x36668e(0x208)](_0x1876aa);}}}const _0x2fae16=_0x42acd3[_0x36668e(0x268)],_0x23a931=()=>scheduleUpdate(_0x42acd3,!![]);_0x2fae16&&_0x2fae16[_0x36668e(0x1fd)]?_0x2fae16['s-rc'][_0x36668e(0x253)](_0x23a931):_0x228381[_0x36668e(0x208)](_0x23a931);},fireConnectedCallback=_0x49bc22=>{const _0x291269=_0xc39acc,_0x2aa3a8={'eftJg':function(_0x27703f,_0x544c4b,_0x42a79c){return _0x27703f(_0x544c4b,_0x42a79c);},'vWzlO':_0x291269(0x251)};{_0x2aa3a8[_0x291269(0x21f)](safeCall,_0x49bc22,_0x2aa3a8[_0x291269(0x229)]);}},connectedCallback=_0x3fe96e=>{const _0x5bf496=_0xc39acc,_0x4fd9d1={'vzILT':function(_0x5f4062,_0x2bc3c7){return _0x5f4062&_0x2bc3c7;},'rBZcL':function(_0x12fb97,_0x1c774c){return _0x12fb97(_0x1c774c);},'tpPKY':function(_0x5a1e33,_0x145a3e,_0x139462){return _0x5a1e33(_0x145a3e,_0x139462);},'hNmGT':_0x5bf496(0x251),'qRuDL':function(_0x68d0b9,_0xeb35e2,_0x4b702f){return _0x68d0b9(_0xeb35e2,_0x4b702f);},'uPzTV':function(_0x3a56ca,_0x54621b,_0x3647e2,_0x2cf880){return _0x3a56ca(_0x54621b,_0x3647e2,_0x2cf880);},'IMXuP':function(_0x2e14da,_0x3b954e){return _0x2e14da(_0x3b954e);},'YkZWF':function(_0x5a4fbd){return _0x5a4fbd();}};if(_0x4fd9d1['vzILT'](plt[_0x5bf496(0x254)],0x1)===0x0){const _0x36c128=_0x4fd9d1[_0x5bf496(0x2a0)](getHostRef,_0x3fe96e),_0x3e2088=_0x36c128[_0x5bf496(0x1d5)],_0x54b943=_0x4fd9d1[_0x5bf496(0x2c2)](createTime,_0x4fd9d1[_0x5bf496(0x252)],_0x3e2088['$tagName$']);if(!(_0x36c128[_0x5bf496(0x254)]&0x1)){_0x36c128[_0x5bf496(0x254)]|=0x1;{let _0x1e0e86=_0x3fe96e;while(_0x1e0e86=_0x1e0e86[_0x5bf496(0x222)]||_0x1e0e86['host']){if(_0x1e0e86[_0x5bf496(0x22f)]){_0x4fd9d1[_0x5bf496(0x27a)](attachToAncestor,_0x36c128,_0x36c128[_0x5bf496(0x268)]=_0x1e0e86);break;}}}_0x3e2088[_0x5bf496(0x1ee)]&&Object[_0x5bf496(0x244)](_0x3e2088[_0x5bf496(0x1ee)])['map'](([_0x52df2d,[_0x1be8f3]])=>{const _0x177642=_0x5bf496;if(_0x4fd9d1[_0x177642(0x2a5)](_0x1be8f3,0x1f)&&_0x3fe96e[_0x177642(0x2a1)](_0x52df2d)){const _0x5b3cad=_0x3fe96e[_0x52df2d];delete _0x3fe96e[_0x52df2d],_0x3fe96e[_0x52df2d]=_0x5b3cad;}});{_0x4fd9d1[_0x5bf496(0x23c)](initializeComponent,_0x3fe96e,_0x36c128,_0x3e2088);}}else _0x4fd9d1[_0x5bf496(0x1d0)](fireConnectedCallback,_0x36c128[_0x5bf496(0x232)]);_0x4fd9d1[_0x5bf496(0x20c)](_0x54b943);}},disconnectedCallback=_0x2d6cf5=>{const _0x16fd81=_0xc39acc,_0x125b9c={'sNASQ':function(_0x18aded,_0x48f26c){return _0x18aded&_0x48f26c;},'YzWei':function(_0x4ad068,_0x9e259,_0x37db26){return _0x4ad068(_0x9e259,_0x37db26);},'BAkBs':'disconnectedCallback'};if(_0x125b9c[_0x16fd81(0x29b)](plt[_0x16fd81(0x254)],0x1)===0x0){const _0x24bc61=getHostRef(_0x2d6cf5),_0x340c97=_0x24bc61[_0x16fd81(0x232)];{_0x125b9c[_0x16fd81(0x20f)](safeCall,_0x340c97,_0x125b9c[_0x16fd81(0x1be)]);}}},bootstrapLazy=(_0xd4d560,_0x3b8fc0={})=>{const _0x1e8ecc=_0xc39acc,_0x4adfa3={'JBbSf':function(_0x21519f,_0x472d97){return _0x21519f(_0x472d97);},'aFJlW':function(_0x43671a,_0x1a63a9,_0x4e9376,_0x5d9f4c){return _0x43671a(_0x1a63a9,_0x4e9376,_0x5d9f4c);},'VhlZp':function(_0x4ca798){return _0x4ca798();},'SaZks':_0x1e8ecc(0x22c),'FGsxD':_0x1e8ecc(0x205),'gYUVs':function(_0x692f85,_0x52e907){return _0x692f85+_0x52e907;},'iewdN':_0x1e8ecc(0x25f),'PevIL':function(_0x4e4d07,_0x533d95){return _0x4e4d07!==_0x533d95;},'lWqlY':function(_0x40053f,_0x4ea6b1){return _0x40053f!=_0x4ea6b1;}};var _0x5c70c3;const _0x4898e4=_0x4adfa3['VhlZp'](createTime),_0x50a9f1=[],_0x3a2172=_0x3b8fc0['exclude']||[],_0x554fb3=win[_0x1e8ecc(0x1af)],_0x2ba0cf=doc[_0x1e8ecc(0x230)],_0x30df37=_0x2ba0cf[_0x1e8ecc(0x245)](_0x4adfa3[_0x1e8ecc(0x24d)]),_0xfe7230=doc[_0x1e8ecc(0x285)](_0x4adfa3[_0x1e8ecc(0x1e0)]),_0x314705=[];let _0x3b5c02,_0xbbbd45=!![];Object[_0x1e8ecc(0x1c7)](plt,_0x3b8fc0),plt['$resourcesUrl$']=new URL(_0x3b8fc0[_0x1e8ecc(0x235)]||'./',doc[_0x1e8ecc(0x2b6)])[_0x1e8ecc(0x28e)],_0xd4d560[_0x1e8ecc(0x1b6)](_0x5f9a75=>{const _0x369495=_0x1e8ecc;_0x5f9a75[0x1][_0x369495(0x1b6)](_0x1015c4=>{const _0x52f94b=_0x369495,_0x3f5972={'OlHwv':function(_0x37a49a,_0x16fb20){return _0x4adfa3['JBbSf'](_0x37a49a,_0x16fb20);}},_0x342ff9={'$flags$':_0x1015c4[0x0],'$tagName$':_0x1015c4[0x1],'$members$':_0x1015c4[0x2],'$listeners$':_0x1015c4[0x3]};{_0x342ff9[_0x52f94b(0x1ee)]=_0x1015c4[0x2];}{_0x342ff9['$attrsToReflect$']=[];}const _0x5a31b7=_0x342ff9[_0x52f94b(0x243)],_0x5e6f6c=class extends HTMLElement{constructor(_0x103e8d){const _0x452c1e=_0x52f94b;super(_0x103e8d),_0x103e8d=this,registerHost(_0x103e8d,_0x342ff9);if(_0x342ff9[_0x452c1e(0x254)]&0x1){{_0x103e8d['attachShadow']({'mode':_0x452c1e(0x246)});}}}[_0x52f94b(0x251)](){const _0x12c46a=_0x52f94b;_0x3b5c02&&(_0x3f5972[_0x12c46a(0x1f5)](clearTimeout,_0x3b5c02),_0x3b5c02=null),_0xbbbd45?_0x314705[_0x12c46a(0x253)](this):plt[_0x12c46a(0x270)](()=>connectedCallback(this));}[_0x52f94b(0x21e)](){const _0x4977ea=_0x52f94b;plt[_0x4977ea(0x270)](()=>disconnectedCallback(this));}[_0x52f94b(0x224)](){const _0x5e7878=_0x52f94b;return getHostRef(this)[_0x5e7878(0x26e)];}};_0x342ff9[_0x52f94b(0x24a)]=_0x5f9a75[0x0],!_0x3a2172[_0x52f94b(0x298)](_0x5a31b7)&&!_0x554fb3[_0x52f94b(0x1c0)](_0x5a31b7)&&(_0x50a9f1[_0x52f94b(0x253)](_0x5a31b7),_0x554fb3['define'](_0x5a31b7,_0x4adfa3[_0x52f94b(0x26b)](proxyComponent,_0x5e6f6c,_0x342ff9,0x1)));});});{_0xfe7230[_0x1e8ecc(0x261)]=_0x4adfa3[_0x1e8ecc(0x283)](_0x50a9f1,HYDRATED_CSS),_0xfe7230[_0x1e8ecc(0x2b7)](_0x4adfa3[_0x1e8ecc(0x2a6)],'');const _0x1cb5b7=(_0x5c70c3=plt['$nonce$'])!==null&&_0x4adfa3['PevIL'](_0x5c70c3,void 0x0)?_0x5c70c3:_0x4adfa3[_0x1e8ecc(0x1ff)](queryNonceMetaTagContent,doc);_0x4adfa3[_0x1e8ecc(0x1f6)](_0x1cb5b7,null)&&_0xfe7230[_0x1e8ecc(0x2b7)](_0x1e8ecc(0x214),_0x1cb5b7),_0x2ba0cf[_0x1e8ecc(0x29a)](_0xfe7230,_0x30df37?_0x30df37[_0x1e8ecc(0x1e8)]:_0x2ba0cf[_0x1e8ecc(0x1c2)]);}_0xbbbd45=![];if(_0x314705['length'])_0x314705[_0x1e8ecc(0x1b6)](_0x5ef1f8=>_0x5ef1f8[_0x1e8ecc(0x251)]());else{plt[_0x1e8ecc(0x270)](()=>_0x3b5c02=setTimeout(appDidLoad,0x1e));}_0x4adfa3['VhlZp'](_0x4898e4);},setNonce=_0xd3608c=>plt[_0xc39acc(0x266)]=_0xd3608c,hostRefs=new WeakMap(),getHostRef=_0x55f4d5=>hostRefs[_0xc39acc(0x1c0)](_0x55f4d5),registerInstance=(_0x37211d,_0x5eff5d)=>hostRefs[_0xc39acc(0x275)](_0x5eff5d[_0xc39acc(0x232)]=_0x37211d,_0x5eff5d),registerHost=(_0x386338,_0x2656a6)=>{const _0x52c5d2=_0xc39acc,_0x19ec5b={'EffSE':'s-p'},_0x372ea7={'$flags$':0x0,'$hostElement$':_0x386338,'$cmpMeta$':_0x2656a6,'$instanceValues$':new Map()};{_0x372ea7[_0x52c5d2(0x26e)]=new Promise(_0x24692d=>_0x372ea7[_0x52c5d2(0x1f0)]=_0x24692d),_0x386338[_0x19ec5b[_0x52c5d2(0x278)]]=[],_0x386338[_0x52c5d2(0x1fd)]=[];}return hostRefs[_0x52c5d2(0x275)](_0x386338,_0x372ea7);},isMemberInElement=(_0xca91ae,_0x46fe74)=>_0x46fe74 in _0xca91ae,consoleError=(_0x58bdee,_0xb52cad)=>(0x0,console['error'])(_0x58bdee,_0xb52cad),cmpModules=new Map(),loadModule=(_0x420287,_0x509a17,_0x35fe86)=>{const _0x90b275=_0xc39acc,_0x2e813b=_0x420287[_0x90b275(0x243)][_0x90b275(0x2ae)](/-/g,'_'),_0x107248=_0x420287[_0x90b275(0x24a)],_0x4a85fe=cmpModules[_0x90b275(0x1c0)](_0x107248);if(_0x4a85fe)return _0x4a85fe[_0x2e813b];return import('./'+_0x107248+_0x90b275(0x1e7))['then'](_0x45ad2f=>{const _0x112d90=_0x90b275;{cmpModules[_0x112d90(0x275)](_0x107248,_0x45ad2f);}return _0x45ad2f[_0x2e813b];},consoleError);},styles=new Map(),win=typeof window!==_0xc39acc(0x259)?window:{},doc=win['document']||{'head':{}},plt={'$flags$':0x0,'$resourcesUrl$':'','jmp':_0x9f2244=>_0x9f2244(),'raf':_0x4d04df=>requestAnimationFrame(_0x4d04df),'ael':(_0x56ca22,_0x208e9b,_0x391649,_0x3e15cc)=>_0x56ca22[_0xc39acc(0x228)](_0x208e9b,_0x391649,_0x3e15cc),'rel':(_0x1640b2,_0x2b0b32,_0x2486cc,_0x20b339)=>_0x1640b2['removeEventListener'](_0x2b0b32,_0x2486cc,_0x20b339),'ce':(_0x5bfe4b,_0x18bb63)=>new CustomEvent(_0x5bfe4b,_0x18bb63)},promiseResolve=_0x5ae259=>Promise[_0xc39acc(0x217)](_0x5ae259),supportsConstructableStylesheets=((()=>{const _0xc21e12=_0xc39acc,_0x20d4c8={'LZYLW':function(_0x59c050,_0x2f0e66){return _0x59c050===_0x2f0e66;},'xCVxT':_0xc21e12(0x25d)};try{return new CSSStyleSheet(),_0x20d4c8['LZYLW'](typeof new CSSStyleSheet()['replaceSync'],_0x20d4c8[_0xc21e12(0x242)]);}catch(_0x3633df){}return![];})()),queueDomReads=[],queueDomWrites=[],queueTask=(_0x1ef79a,_0x325600)=>_0x20c717=>{const _0x28b360=_0xc39acc,_0x4a3938={'GsSCU':function(_0x4d0e72,_0x3cb168){return _0x4d0e72&_0x3cb168;},'rZGmW':function(_0x3a4080,_0x3574de){return _0x3a4080(_0x3574de);}};_0x1ef79a[_0x28b360(0x253)](_0x20c717),!queuePending&&(queuePending=!![],_0x325600&&_0x4a3938['GsSCU'](plt[_0x28b360(0x254)],0x4)?_0x4a3938[_0x28b360(0x1cf)](nextTick,flush):plt[_0x28b360(0x290)](flush));},consume=_0x4df48d=>{const _0x4791ec=_0xc39acc,_0xc46944={'nWAKg':function(_0x1d67b8,_0x154e84){return _0x1d67b8<_0x154e84;},'pjfnp':function(_0x24475a,_0x109b70){return _0x24475a(_0x109b70);}};for(let _0x474ccb=0x0;_0xc46944['nWAKg'](_0x474ccb,_0x4df48d[_0x4791ec(0x2a8)]);_0x474ccb++){try{_0x4df48d[_0x474ccb](performance[_0x4791ec(0x1ae)]());}catch(_0x445aa5){_0xc46944[_0x4791ec(0x1ec)](consoleError,_0x445aa5);}}_0x4df48d[_0x4791ec(0x2a8)]=0x0;},flush=()=>{const _0x46be48=_0xc39acc,_0x23dee1={'jEDDB':function(_0x5bc4ef,_0x3a79b1){return _0x5bc4ef(_0x3a79b1);},'WkJZB':function(_0x124393,_0x1c3974){return _0x124393>_0x1c3974;}};_0x23dee1[_0x46be48(0x28c)](consume,queueDomReads);{consume(queueDomWrites),(queuePending=_0x23dee1[_0x46be48(0x24c)](queueDomReads[_0x46be48(0x2a8)],0x0))&&plt[_0x46be48(0x290)](flush);}},nextTick=_0x1da568=>promiseResolve()['then'](_0x1da568),writeTask=queueTask(queueDomWrites,!![]);export{Host as H,bootstrapLazy as b,getElement as g,h,promiseResolve as p,registerInstance as r,setNonce as s};
|
|
1
|
+
const NAMESPACE = 'pushfeedback';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Virtual DOM patching algorithm based on Snabbdom by
|
|
5
|
+
* Simon Friis Vindum (@paldepind)
|
|
6
|
+
* Licensed under the MIT License
|
|
7
|
+
* https://github.com/snabbdom/snabbdom/blob/master/LICENSE
|
|
8
|
+
*
|
|
9
|
+
* Modified for Stencil's renderer and slot projection
|
|
10
|
+
*/
|
|
11
|
+
let scopeId;
|
|
12
|
+
let hostTagName;
|
|
13
|
+
let isSvgMode = false;
|
|
14
|
+
let queuePending = false;
|
|
15
|
+
const createTime = (fnName, tagName = '') => {
|
|
16
|
+
{
|
|
17
|
+
return () => {
|
|
18
|
+
return;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
const uniqueTime = (key, measureText) => {
|
|
23
|
+
{
|
|
24
|
+
return () => {
|
|
25
|
+
return;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
|
|
30
|
+
/**
|
|
31
|
+
* Default style mode id
|
|
32
|
+
*/
|
|
33
|
+
/**
|
|
34
|
+
* Reusable empty obj/array
|
|
35
|
+
* Don't add values to these!!
|
|
36
|
+
*/
|
|
37
|
+
const EMPTY_OBJ = {};
|
|
38
|
+
/**
|
|
39
|
+
* Namespaces
|
|
40
|
+
*/
|
|
41
|
+
const SVG_NS = 'http://www.w3.org/2000/svg';
|
|
42
|
+
const HTML_NS = 'http://www.w3.org/1999/xhtml';
|
|
43
|
+
const isDef = (v) => v != null;
|
|
44
|
+
const isComplexType = (o) => {
|
|
45
|
+
// https://jsperf.com/typeof-fn-object/5
|
|
46
|
+
o = typeof o;
|
|
47
|
+
return o === 'object' || o === 'function';
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Helper method for querying a `meta` tag that contains a nonce value
|
|
51
|
+
* out of a DOM's head.
|
|
52
|
+
*
|
|
53
|
+
* @param doc The DOM containing the `head` to query against
|
|
54
|
+
* @returns The content of the meta tag representing the nonce value, or `undefined` if no tag
|
|
55
|
+
* exists or the tag has no content.
|
|
56
|
+
*/
|
|
57
|
+
function queryNonceMetaTagContent(doc) {
|
|
58
|
+
var _a, _b, _c;
|
|
59
|
+
return (_c = (_b = (_a = doc.head) === null || _a === void 0 ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) === null || _b === void 0 ? void 0 : _b.getAttribute('content')) !== null && _c !== void 0 ? _c : undefined;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Production h() function based on Preact by
|
|
63
|
+
* Jason Miller (@developit)
|
|
64
|
+
* Licensed under the MIT License
|
|
65
|
+
* https://github.com/developit/preact/blob/master/LICENSE
|
|
66
|
+
*
|
|
67
|
+
* Modified for Stencil's compiler and vdom
|
|
68
|
+
*/
|
|
69
|
+
// export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, child?: d.ChildType): d.VNode;
|
|
70
|
+
// export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
|
|
71
|
+
const h = (nodeName, vnodeData, ...children) => {
|
|
72
|
+
let child = null;
|
|
73
|
+
let key = null;
|
|
74
|
+
let simple = false;
|
|
75
|
+
let lastSimple = false;
|
|
76
|
+
const vNodeChildren = [];
|
|
77
|
+
const walk = (c) => {
|
|
78
|
+
for (let i = 0; i < c.length; i++) {
|
|
79
|
+
child = c[i];
|
|
80
|
+
if (Array.isArray(child)) {
|
|
81
|
+
walk(child);
|
|
82
|
+
}
|
|
83
|
+
else if (child != null && typeof child !== 'boolean') {
|
|
84
|
+
if ((simple = typeof nodeName !== 'function' && !isComplexType(child))) {
|
|
85
|
+
child = String(child);
|
|
86
|
+
}
|
|
87
|
+
if (simple && lastSimple) {
|
|
88
|
+
// If the previous child was simple (string), we merge both
|
|
89
|
+
vNodeChildren[vNodeChildren.length - 1].$text$ += child;
|
|
90
|
+
}
|
|
91
|
+
else {
|
|
92
|
+
// Append a new vNode, if it's text, we create a text vNode
|
|
93
|
+
vNodeChildren.push(simple ? newVNode(null, child) : child);
|
|
94
|
+
}
|
|
95
|
+
lastSimple = simple;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
walk(children);
|
|
100
|
+
if (vnodeData) {
|
|
101
|
+
// normalize class / classname attributes
|
|
102
|
+
if (vnodeData.key) {
|
|
103
|
+
key = vnodeData.key;
|
|
104
|
+
}
|
|
105
|
+
{
|
|
106
|
+
const classData = vnodeData.className || vnodeData.class;
|
|
107
|
+
if (classData) {
|
|
108
|
+
vnodeData.class =
|
|
109
|
+
typeof classData !== 'object'
|
|
110
|
+
? classData
|
|
111
|
+
: Object.keys(classData)
|
|
112
|
+
.filter((k) => classData[k])
|
|
113
|
+
.join(' ');
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
const vnode = newVNode(nodeName, null);
|
|
118
|
+
vnode.$attrs$ = vnodeData;
|
|
119
|
+
if (vNodeChildren.length > 0) {
|
|
120
|
+
vnode.$children$ = vNodeChildren;
|
|
121
|
+
}
|
|
122
|
+
{
|
|
123
|
+
vnode.$key$ = key;
|
|
124
|
+
}
|
|
125
|
+
return vnode;
|
|
126
|
+
};
|
|
127
|
+
/**
|
|
128
|
+
* A utility function for creating a virtual DOM node from a tag and some
|
|
129
|
+
* possible text content.
|
|
130
|
+
*
|
|
131
|
+
* @param tag the tag for this element
|
|
132
|
+
* @param text possible text content for the node
|
|
133
|
+
* @returns a newly-minted virtual DOM node
|
|
134
|
+
*/
|
|
135
|
+
const newVNode = (tag, text) => {
|
|
136
|
+
const vnode = {
|
|
137
|
+
$flags$: 0,
|
|
138
|
+
$tag$: tag,
|
|
139
|
+
$text$: text,
|
|
140
|
+
$elm$: null,
|
|
141
|
+
$children$: null,
|
|
142
|
+
};
|
|
143
|
+
{
|
|
144
|
+
vnode.$attrs$ = null;
|
|
145
|
+
}
|
|
146
|
+
{
|
|
147
|
+
vnode.$key$ = null;
|
|
148
|
+
}
|
|
149
|
+
return vnode;
|
|
150
|
+
};
|
|
151
|
+
const Host = {};
|
|
152
|
+
/**
|
|
153
|
+
* Check whether a given node is a Host node or not
|
|
154
|
+
*
|
|
155
|
+
* @param node the virtual DOM node to check
|
|
156
|
+
* @returns whether it's a Host node or not
|
|
157
|
+
*/
|
|
158
|
+
const isHost = (node) => node && node.$tag$ === Host;
|
|
159
|
+
/**
|
|
160
|
+
* Parse a new property value for a given property type.
|
|
161
|
+
*
|
|
162
|
+
* While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
|
|
163
|
+
* it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
|
|
164
|
+
* 1. `any`, the type given to `propValue` in the function signature
|
|
165
|
+
* 2. the type stored from `propType`.
|
|
166
|
+
*
|
|
167
|
+
* This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
|
|
168
|
+
*
|
|
169
|
+
* Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
|
|
170
|
+
* a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
|
|
171
|
+
* based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
|
|
172
|
+
* ```tsx
|
|
173
|
+
* <my-cmp prop-val={0}></my-cmp>
|
|
174
|
+
* ```
|
|
175
|
+
*
|
|
176
|
+
* HTML prop values on the other hand, will always a string
|
|
177
|
+
*
|
|
178
|
+
* @param propValue the new value to coerce to some type
|
|
179
|
+
* @param propType the type of the prop, expressed as a binary number
|
|
180
|
+
* @returns the parsed/coerced value
|
|
181
|
+
*/
|
|
182
|
+
const parsePropertyValue = (propValue, propType) => {
|
|
183
|
+
// ensure this value is of the correct prop type
|
|
184
|
+
if (propValue != null && !isComplexType(propValue)) {
|
|
185
|
+
if (propType & 4 /* MEMBER_FLAGS.Boolean */) {
|
|
186
|
+
// per the HTML spec, any string value means it is a boolean true value
|
|
187
|
+
// but we'll cheat here and say that the string "false" is the boolean false
|
|
188
|
+
return propValue === 'false' ? false : propValue === '' || !!propValue;
|
|
189
|
+
}
|
|
190
|
+
if (propType & 1 /* MEMBER_FLAGS.String */) {
|
|
191
|
+
// could have been passed as a number or boolean
|
|
192
|
+
// but we still want it as a string
|
|
193
|
+
return String(propValue);
|
|
194
|
+
}
|
|
195
|
+
// redundant return here for better minification
|
|
196
|
+
return propValue;
|
|
197
|
+
}
|
|
198
|
+
// not sure exactly what type we want
|
|
199
|
+
// so no need to change to a different type
|
|
200
|
+
return propValue;
|
|
201
|
+
};
|
|
202
|
+
const getElement = (ref) => (getHostRef(ref).$hostElement$ );
|
|
203
|
+
/**
|
|
204
|
+
* Helper function to create & dispatch a custom Event on a provided target
|
|
205
|
+
* @param elm the target of the Event
|
|
206
|
+
* @param name the name to give the custom Event
|
|
207
|
+
* @param opts options for configuring a custom Event
|
|
208
|
+
* @returns the custom Event
|
|
209
|
+
*/
|
|
210
|
+
const emitEvent = (elm, name, opts) => {
|
|
211
|
+
const ev = plt.ce(name, opts);
|
|
212
|
+
elm.dispatchEvent(ev);
|
|
213
|
+
return ev;
|
|
214
|
+
};
|
|
215
|
+
const rootAppliedStyles = /*@__PURE__*/ new WeakMap();
|
|
216
|
+
const registerStyle = (scopeId, cssText, allowCS) => {
|
|
217
|
+
let style = styles.get(scopeId);
|
|
218
|
+
if (supportsConstructableStylesheets && allowCS) {
|
|
219
|
+
style = (style || new CSSStyleSheet());
|
|
220
|
+
if (typeof style === 'string') {
|
|
221
|
+
style = cssText;
|
|
222
|
+
}
|
|
223
|
+
else {
|
|
224
|
+
style.replaceSync(cssText);
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
else {
|
|
228
|
+
style = cssText;
|
|
229
|
+
}
|
|
230
|
+
styles.set(scopeId, style);
|
|
231
|
+
};
|
|
232
|
+
const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
|
233
|
+
var _a;
|
|
234
|
+
let scopeId = getScopeId(cmpMeta);
|
|
235
|
+
const style = styles.get(scopeId);
|
|
236
|
+
// if an element is NOT connected then getRootNode() will return the wrong root node
|
|
237
|
+
// so the fallback is to always use the document for the root node in those cases
|
|
238
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* NODE_TYPE.DocumentFragment */ ? styleContainerNode : doc;
|
|
239
|
+
if (style) {
|
|
240
|
+
if (typeof style === 'string') {
|
|
241
|
+
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
242
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
243
|
+
let styleElm;
|
|
244
|
+
if (!appliedStyles) {
|
|
245
|
+
rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
|
|
246
|
+
}
|
|
247
|
+
if (!appliedStyles.has(scopeId)) {
|
|
248
|
+
{
|
|
249
|
+
{
|
|
250
|
+
styleElm = doc.createElement('style');
|
|
251
|
+
styleElm.innerHTML = style;
|
|
252
|
+
}
|
|
253
|
+
// Apply CSP nonce to the style tag if it exists
|
|
254
|
+
const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
|
|
255
|
+
if (nonce != null) {
|
|
256
|
+
styleElm.setAttribute('nonce', nonce);
|
|
257
|
+
}
|
|
258
|
+
styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
|
|
259
|
+
}
|
|
260
|
+
if (appliedStyles) {
|
|
261
|
+
appliedStyles.add(scopeId);
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
266
|
+
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
return scopeId;
|
|
270
|
+
};
|
|
271
|
+
const attachStyles = (hostRef) => {
|
|
272
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
273
|
+
const elm = hostRef.$hostElement$;
|
|
274
|
+
const flags = cmpMeta.$flags$;
|
|
275
|
+
const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
|
|
276
|
+
const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
|
|
277
|
+
if (flags & 10 /* CMP_FLAGS.needsScopedEncapsulation */) {
|
|
278
|
+
// only required when we're NOT using native shadow dom (slot)
|
|
279
|
+
// or this browser doesn't support native shadow dom
|
|
280
|
+
// and this host element was NOT created with SSR
|
|
281
|
+
// let's pick out the inner content for slot projection
|
|
282
|
+
// create a node to represent where the original
|
|
283
|
+
// content was first placed, which is useful later on
|
|
284
|
+
// DOM WRITE!!
|
|
285
|
+
elm['s-sc'] = scopeId;
|
|
286
|
+
elm.classList.add(scopeId + '-h');
|
|
287
|
+
}
|
|
288
|
+
endAttachStyles();
|
|
289
|
+
};
|
|
290
|
+
const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
|
|
291
|
+
/**
|
|
292
|
+
* Production setAccessor() function based on Preact by
|
|
293
|
+
* Jason Miller (@developit)
|
|
294
|
+
* Licensed under the MIT License
|
|
295
|
+
* https://github.com/developit/preact/blob/master/LICENSE
|
|
296
|
+
*
|
|
297
|
+
* Modified for Stencil's compiler and vdom
|
|
298
|
+
*/
|
|
299
|
+
const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
300
|
+
if (oldValue !== newValue) {
|
|
301
|
+
let isProp = isMemberInElement(elm, memberName);
|
|
302
|
+
let ln = memberName.toLowerCase();
|
|
303
|
+
if (memberName === 'class') {
|
|
304
|
+
const classList = elm.classList;
|
|
305
|
+
const oldClasses = parseClassList(oldValue);
|
|
306
|
+
const newClasses = parseClassList(newValue);
|
|
307
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
308
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
309
|
+
}
|
|
310
|
+
else if (memberName === 'style') {
|
|
311
|
+
// update style attribute, css properties and values
|
|
312
|
+
{
|
|
313
|
+
for (const prop in oldValue) {
|
|
314
|
+
if (!newValue || newValue[prop] == null) {
|
|
315
|
+
if (prop.includes('-')) {
|
|
316
|
+
elm.style.removeProperty(prop);
|
|
317
|
+
}
|
|
318
|
+
else {
|
|
319
|
+
elm.style[prop] = '';
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
for (const prop in newValue) {
|
|
325
|
+
if (!oldValue || newValue[prop] !== oldValue[prop]) {
|
|
326
|
+
if (prop.includes('-')) {
|
|
327
|
+
elm.style.setProperty(prop, newValue[prop]);
|
|
328
|
+
}
|
|
329
|
+
else {
|
|
330
|
+
elm.style[prop] = newValue[prop];
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
else if (memberName === 'key')
|
|
336
|
+
;
|
|
337
|
+
else if (memberName === 'ref') {
|
|
338
|
+
// minifier will clean this up
|
|
339
|
+
if (newValue) {
|
|
340
|
+
newValue(elm);
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
else if ((!isProp ) &&
|
|
344
|
+
memberName[0] === 'o' &&
|
|
345
|
+
memberName[1] === 'n') {
|
|
346
|
+
// Event Handlers
|
|
347
|
+
// so if the member name starts with "on" and the 3rd characters is
|
|
348
|
+
// a capital letter, and it's not already a member on the element,
|
|
349
|
+
// then we're assuming it's an event listener
|
|
350
|
+
if (memberName[2] === '-') {
|
|
351
|
+
// on- prefixed events
|
|
352
|
+
// allows to be explicit about the dom event to listen without any magic
|
|
353
|
+
// under the hood:
|
|
354
|
+
// <my-cmp on-click> // listens for "click"
|
|
355
|
+
// <my-cmp on-Click> // listens for "Click"
|
|
356
|
+
// <my-cmp on-ionChange> // listens for "ionChange"
|
|
357
|
+
// <my-cmp on-EVENTS> // listens for "EVENTS"
|
|
358
|
+
memberName = memberName.slice(3);
|
|
359
|
+
}
|
|
360
|
+
else if (isMemberInElement(win, ln)) {
|
|
361
|
+
// standard event
|
|
362
|
+
// the JSX attribute could have been "onMouseOver" and the
|
|
363
|
+
// member name "onmouseover" is on the window's prototype
|
|
364
|
+
// so let's add the listener "mouseover", which is all lowercased
|
|
365
|
+
memberName = ln.slice(2);
|
|
366
|
+
}
|
|
367
|
+
else {
|
|
368
|
+
// custom event
|
|
369
|
+
// the JSX attribute could have been "onMyCustomEvent"
|
|
370
|
+
// so let's trim off the "on" prefix and lowercase the first character
|
|
371
|
+
// and add the listener "myCustomEvent"
|
|
372
|
+
// except for the first character, we keep the event name case
|
|
373
|
+
memberName = ln[2] + memberName.slice(3);
|
|
374
|
+
}
|
|
375
|
+
if (oldValue) {
|
|
376
|
+
plt.rel(elm, memberName, oldValue, false);
|
|
377
|
+
}
|
|
378
|
+
if (newValue) {
|
|
379
|
+
plt.ael(elm, memberName, newValue, false);
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
else {
|
|
383
|
+
// Set property if it exists and it's not a SVG
|
|
384
|
+
const isComplex = isComplexType(newValue);
|
|
385
|
+
if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
|
|
386
|
+
try {
|
|
387
|
+
if (!elm.tagName.includes('-')) {
|
|
388
|
+
const n = newValue == null ? '' : newValue;
|
|
389
|
+
// Workaround for Safari, moving the <input> caret when re-assigning the same valued
|
|
390
|
+
if (memberName === 'list') {
|
|
391
|
+
isProp = false;
|
|
392
|
+
}
|
|
393
|
+
else if (oldValue == null || elm[memberName] != n) {
|
|
394
|
+
elm[memberName] = n;
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
else {
|
|
398
|
+
elm[memberName] = newValue;
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
catch (e) { }
|
|
402
|
+
}
|
|
403
|
+
if (newValue == null || newValue === false) {
|
|
404
|
+
if (newValue !== false || elm.getAttribute(memberName) === '') {
|
|
405
|
+
{
|
|
406
|
+
elm.removeAttribute(memberName);
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
else if ((!isProp || flags & 4 /* VNODE_FLAGS.isHost */ || isSvg) && !isComplex) {
|
|
411
|
+
newValue = newValue === true ? '' : newValue;
|
|
412
|
+
{
|
|
413
|
+
elm.setAttribute(memberName, newValue);
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
};
|
|
419
|
+
const parseClassListRegex = /\s/;
|
|
420
|
+
const parseClassList = (value) => (!value ? [] : value.split(parseClassListRegex));
|
|
421
|
+
const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
|
|
422
|
+
// if the element passed in is a shadow root, which is a document fragment
|
|
423
|
+
// then we want to be adding attrs/props to the shadow root's "host" element
|
|
424
|
+
// if it's not a shadow root, then we add attrs/props to the same element
|
|
425
|
+
const elm = newVnode.$elm$.nodeType === 11 /* NODE_TYPE.DocumentFragment */ && newVnode.$elm$.host
|
|
426
|
+
? newVnode.$elm$.host
|
|
427
|
+
: newVnode.$elm$;
|
|
428
|
+
const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ;
|
|
429
|
+
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
430
|
+
{
|
|
431
|
+
// remove attributes no longer present on the vnode by setting them to undefined
|
|
432
|
+
for (memberName in oldVnodeAttrs) {
|
|
433
|
+
if (!(memberName in newVnodeAttrs)) {
|
|
434
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], undefined, isSvgMode, newVnode.$flags$);
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
// add new & update changed attributes
|
|
439
|
+
for (memberName in newVnodeAttrs) {
|
|
440
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode, newVnode.$flags$);
|
|
441
|
+
}
|
|
442
|
+
};
|
|
443
|
+
/**
|
|
444
|
+
* Create a DOM Node corresponding to one of the children of a given VNode.
|
|
445
|
+
*
|
|
446
|
+
* @param oldParentVNode the parent VNode from the previous render
|
|
447
|
+
* @param newParentVNode the parent VNode from the current render
|
|
448
|
+
* @param childIndex the index of the VNode, in the _new_ parent node's
|
|
449
|
+
* children, for which we will create a new DOM node
|
|
450
|
+
* @param parentElm the parent DOM node which our new node will be a child of
|
|
451
|
+
* @returns the newly created node
|
|
452
|
+
*/
|
|
453
|
+
const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
454
|
+
// tslint:disable-next-line: prefer-const
|
|
455
|
+
const newVNode = newParentVNode.$children$[childIndex];
|
|
456
|
+
let i = 0;
|
|
457
|
+
let elm;
|
|
458
|
+
let childNode;
|
|
459
|
+
if (newVNode.$text$ !== null) {
|
|
460
|
+
// create text node
|
|
461
|
+
elm = newVNode.$elm$ = doc.createTextNode(newVNode.$text$);
|
|
462
|
+
}
|
|
463
|
+
else {
|
|
464
|
+
if (!isSvgMode) {
|
|
465
|
+
isSvgMode = newVNode.$tag$ === 'svg';
|
|
466
|
+
}
|
|
467
|
+
// create element
|
|
468
|
+
elm = newVNode.$elm$ = (doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$tag$)
|
|
469
|
+
);
|
|
470
|
+
if (isSvgMode && newVNode.$tag$ === 'foreignObject') {
|
|
471
|
+
isSvgMode = false;
|
|
472
|
+
}
|
|
473
|
+
// add css classes, attrs, props, listeners, etc.
|
|
474
|
+
{
|
|
475
|
+
updateElement(null, newVNode, isSvgMode);
|
|
476
|
+
}
|
|
477
|
+
if (isDef(scopeId) && elm['s-si'] !== scopeId) {
|
|
478
|
+
// if there is a scopeId and this is the initial render
|
|
479
|
+
// then let's add the scopeId as a css class
|
|
480
|
+
elm.classList.add((elm['s-si'] = scopeId));
|
|
481
|
+
}
|
|
482
|
+
if (newVNode.$children$) {
|
|
483
|
+
for (i = 0; i < newVNode.$children$.length; ++i) {
|
|
484
|
+
// create the node
|
|
485
|
+
childNode = createElm(oldParentVNode, newVNode, i);
|
|
486
|
+
// return node could have been null
|
|
487
|
+
if (childNode) {
|
|
488
|
+
// append our new node
|
|
489
|
+
elm.appendChild(childNode);
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
{
|
|
494
|
+
if (newVNode.$tag$ === 'svg') {
|
|
495
|
+
// Only reset the SVG context when we're exiting <svg> element
|
|
496
|
+
isSvgMode = false;
|
|
497
|
+
}
|
|
498
|
+
else if (elm.tagName === 'foreignObject') {
|
|
499
|
+
// Reenter SVG context when we're exiting <foreignObject> element
|
|
500
|
+
isSvgMode = true;
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
return elm;
|
|
505
|
+
};
|
|
506
|
+
/**
|
|
507
|
+
* Create DOM nodes corresponding to a list of {@link d.Vnode} objects and
|
|
508
|
+
* add them to the DOM in the appropriate place.
|
|
509
|
+
*
|
|
510
|
+
* @param parentElm the DOM node which should be used as a parent for the new
|
|
511
|
+
* DOM nodes
|
|
512
|
+
* @param before a child of the `parentElm` which the new children should be
|
|
513
|
+
* inserted before (optional)
|
|
514
|
+
* @param parentVNode the parent virtual DOM node
|
|
515
|
+
* @param vnodes the new child virtual DOM nodes to produce DOM nodes for
|
|
516
|
+
* @param startIdx the index in the child virtual DOM nodes at which to start
|
|
517
|
+
* creating DOM nodes (inclusive)
|
|
518
|
+
* @param endIdx the index in the child virtual DOM nodes at which to stop
|
|
519
|
+
* creating DOM nodes (inclusive)
|
|
520
|
+
*/
|
|
521
|
+
const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
522
|
+
let containerElm = (parentElm);
|
|
523
|
+
let childNode;
|
|
524
|
+
if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
|
|
525
|
+
containerElm = containerElm.shadowRoot;
|
|
526
|
+
}
|
|
527
|
+
for (; startIdx <= endIdx; ++startIdx) {
|
|
528
|
+
if (vnodes[startIdx]) {
|
|
529
|
+
childNode = createElm(null, parentVNode, startIdx);
|
|
530
|
+
if (childNode) {
|
|
531
|
+
vnodes[startIdx].$elm$ = childNode;
|
|
532
|
+
containerElm.insertBefore(childNode, before);
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
};
|
|
537
|
+
/**
|
|
538
|
+
* Remove the DOM elements corresponding to a list of {@link d.VNode} objects.
|
|
539
|
+
* This can be used to, for instance, clean up after a list of children which
|
|
540
|
+
* should no longer be shown.
|
|
541
|
+
*
|
|
542
|
+
* This function also handles some of Stencil's slot relocation logic.
|
|
543
|
+
*
|
|
544
|
+
* @param vnodes a list of virtual DOM nodes to remove
|
|
545
|
+
* @param startIdx the index at which to start removing nodes (inclusive)
|
|
546
|
+
* @param endIdx the index at which to stop removing nodes (inclusive)
|
|
547
|
+
* @param vnode a VNode
|
|
548
|
+
* @param elm an element
|
|
549
|
+
*/
|
|
550
|
+
const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
|
|
551
|
+
for (; startIdx <= endIdx; ++startIdx) {
|
|
552
|
+
if ((vnode = vnodes[startIdx])) {
|
|
553
|
+
elm = vnode.$elm$;
|
|
554
|
+
callNodeRefs(vnode);
|
|
555
|
+
// remove the vnode's element from the dom
|
|
556
|
+
elm.remove();
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
};
|
|
560
|
+
/**
|
|
561
|
+
* Reconcile the children of a new VNode with the children of an old VNode by
|
|
562
|
+
* traversing the two collections of children, identifying nodes that are
|
|
563
|
+
* conserved or changed, calling out to `patch` to make any necessary
|
|
564
|
+
* updates to the DOM, and rearranging DOM nodes as needed.
|
|
565
|
+
*
|
|
566
|
+
* The algorithm for reconciling children works by analyzing two 'windows' onto
|
|
567
|
+
* the two arrays of children (`oldCh` and `newCh`). We keep track of the
|
|
568
|
+
* 'windows' by storing start and end indices and references to the
|
|
569
|
+
* corresponding array entries. Initially the two 'windows' are basically equal
|
|
570
|
+
* to the entire array, but we progressively narrow the windows until there are
|
|
571
|
+
* no children left to update by doing the following:
|
|
572
|
+
*
|
|
573
|
+
* 1. Skip any `null` entries at the beginning or end of the two arrays, so
|
|
574
|
+
* that if we have an initial array like the following we'll end up dealing
|
|
575
|
+
* only with a window bounded by the highlighted elements:
|
|
576
|
+
*
|
|
577
|
+
* [null, null, VNode1 , ... , VNode2, null, null]
|
|
578
|
+
* ^^^^^^ ^^^^^^
|
|
579
|
+
*
|
|
580
|
+
* 2. Check to see if the elements at the head and tail positions are equal
|
|
581
|
+
* across the windows. This will basically detect elements which haven't
|
|
582
|
+
* been added, removed, or changed position, i.e. if you had the following
|
|
583
|
+
* VNode elements (represented as HTML):
|
|
584
|
+
*
|
|
585
|
+
* oldVNode: `<div><p><span>HEY</span></p></div>`
|
|
586
|
+
* newVNode: `<div><p><span>THERE</span></p></div>`
|
|
587
|
+
*
|
|
588
|
+
* Then when comparing the children of the `<div>` tag we check the equality
|
|
589
|
+
* of the VNodes corresponding to the `<p>` tags and, since they are the
|
|
590
|
+
* same tag in the same position, we'd be able to avoid completely
|
|
591
|
+
* re-rendering the subtree under them with a new DOM element and would just
|
|
592
|
+
* call out to `patch` to handle reconciling their children and so on.
|
|
593
|
+
*
|
|
594
|
+
* 3. Check, for both windows, to see if the element at the beginning of the
|
|
595
|
+
* window corresponds to the element at the end of the other window. This is
|
|
596
|
+
* a heuristic which will let us identify _some_ situations in which
|
|
597
|
+
* elements have changed position, for instance it _should_ detect that the
|
|
598
|
+
* children nodes themselves have not changed but merely moved in the
|
|
599
|
+
* following example:
|
|
600
|
+
*
|
|
601
|
+
* oldVNode: `<div><element-one /><element-two /></div>`
|
|
602
|
+
* newVNode: `<div><element-two /><element-one /></div>`
|
|
603
|
+
*
|
|
604
|
+
* If we find cases like this then we also need to move the concrete DOM
|
|
605
|
+
* elements corresponding to the moved children to write the re-order to the
|
|
606
|
+
* DOM.
|
|
607
|
+
*
|
|
608
|
+
* 4. Finally, if VNodes have the `key` attribute set on them we check for any
|
|
609
|
+
* nodes in the old children which have the same key as the first element in
|
|
610
|
+
* our window on the new children. If we find such a node we handle calling
|
|
611
|
+
* out to `patch`, moving relevant DOM nodes, and so on, in accordance with
|
|
612
|
+
* what we find.
|
|
613
|
+
*
|
|
614
|
+
* Finally, once we've narrowed our 'windows' to the point that either of them
|
|
615
|
+
* collapse (i.e. they have length 0) we then handle any remaining VNode
|
|
616
|
+
* insertion or deletion that needs to happen to get a DOM state that correctly
|
|
617
|
+
* reflects the new child VNodes. If, for instance, after our window on the old
|
|
618
|
+
* children has collapsed we still have more nodes on the new children that
|
|
619
|
+
* we haven't dealt with yet then we need to add them, or if the new children
|
|
620
|
+
* collapse but we still have unhandled _old_ children then we need to make
|
|
621
|
+
* sure the corresponding DOM nodes are removed.
|
|
622
|
+
*
|
|
623
|
+
* @param parentElm the node into which the parent VNode is rendered
|
|
624
|
+
* @param oldCh the old children of the parent node
|
|
625
|
+
* @param newVNode the new VNode which will replace the parent
|
|
626
|
+
* @param newCh the new children of the parent node
|
|
627
|
+
*/
|
|
628
|
+
const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
629
|
+
let oldStartIdx = 0;
|
|
630
|
+
let newStartIdx = 0;
|
|
631
|
+
let idxInOld = 0;
|
|
632
|
+
let i = 0;
|
|
633
|
+
let oldEndIdx = oldCh.length - 1;
|
|
634
|
+
let oldStartVnode = oldCh[0];
|
|
635
|
+
let oldEndVnode = oldCh[oldEndIdx];
|
|
636
|
+
let newEndIdx = newCh.length - 1;
|
|
637
|
+
let newStartVnode = newCh[0];
|
|
638
|
+
let newEndVnode = newCh[newEndIdx];
|
|
639
|
+
let node;
|
|
640
|
+
let elmToMove;
|
|
641
|
+
while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
|
|
642
|
+
if (oldStartVnode == null) {
|
|
643
|
+
// VNode might have been moved left
|
|
644
|
+
oldStartVnode = oldCh[++oldStartIdx];
|
|
645
|
+
}
|
|
646
|
+
else if (oldEndVnode == null) {
|
|
647
|
+
oldEndVnode = oldCh[--oldEndIdx];
|
|
648
|
+
}
|
|
649
|
+
else if (newStartVnode == null) {
|
|
650
|
+
newStartVnode = newCh[++newStartIdx];
|
|
651
|
+
}
|
|
652
|
+
else if (newEndVnode == null) {
|
|
653
|
+
newEndVnode = newCh[--newEndIdx];
|
|
654
|
+
}
|
|
655
|
+
else if (isSameVnode(oldStartVnode, newStartVnode)) {
|
|
656
|
+
// if the start nodes are the same then we should patch the new VNode
|
|
657
|
+
// onto the old one, and increment our `newStartIdx` and `oldStartIdx`
|
|
658
|
+
// indices to reflect that. We don't need to move any DOM Nodes around
|
|
659
|
+
// since things are matched up in order.
|
|
660
|
+
patch(oldStartVnode, newStartVnode);
|
|
661
|
+
oldStartVnode = oldCh[++oldStartIdx];
|
|
662
|
+
newStartVnode = newCh[++newStartIdx];
|
|
663
|
+
}
|
|
664
|
+
else if (isSameVnode(oldEndVnode, newEndVnode)) {
|
|
665
|
+
// likewise, if the end nodes are the same we patch new onto old and
|
|
666
|
+
// decrement our end indices, and also likewise in this case we don't
|
|
667
|
+
// need to move any DOM Nodes.
|
|
668
|
+
patch(oldEndVnode, newEndVnode);
|
|
669
|
+
oldEndVnode = oldCh[--oldEndIdx];
|
|
670
|
+
newEndVnode = newCh[--newEndIdx];
|
|
671
|
+
}
|
|
672
|
+
else if (isSameVnode(oldStartVnode, newEndVnode)) {
|
|
673
|
+
patch(oldStartVnode, newEndVnode);
|
|
674
|
+
// We need to move the element for `oldStartVnode` into a position which
|
|
675
|
+
// will be appropriate for `newEndVnode`. For this we can use
|
|
676
|
+
// `.insertBefore` and `oldEndVnode.$elm$.nextSibling`. If there is a
|
|
677
|
+
// sibling for `oldEndVnode.$elm$` then we want to move the DOM node for
|
|
678
|
+
// `oldStartVnode` between `oldEndVnode` and it's sibling, like so:
|
|
679
|
+
//
|
|
680
|
+
// <old-start-node />
|
|
681
|
+
// <some-intervening-node />
|
|
682
|
+
// <old-end-node />
|
|
683
|
+
// <!-- -> <-- `oldStartVnode.$elm$` should be inserted here
|
|
684
|
+
// <next-sibling />
|
|
685
|
+
//
|
|
686
|
+
// If instead `oldEndVnode.$elm$` has no sibling then we just want to put
|
|
687
|
+
// the node for `oldStartVnode` at the end of the children of
|
|
688
|
+
// `parentElm`. Luckily, `Node.nextSibling` will return `null` if there
|
|
689
|
+
// aren't any siblings, and passing `null` to `Node.insertBefore` will
|
|
690
|
+
// append it to the children of the parent element.
|
|
691
|
+
parentElm.insertBefore(oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
|
|
692
|
+
oldStartVnode = oldCh[++oldStartIdx];
|
|
693
|
+
newEndVnode = newCh[--newEndIdx];
|
|
694
|
+
}
|
|
695
|
+
else if (isSameVnode(oldEndVnode, newStartVnode)) {
|
|
696
|
+
patch(oldEndVnode, newStartVnode);
|
|
697
|
+
// We've already checked above if `oldStartVnode` and `newStartVnode` are
|
|
698
|
+
// the same node, so since we're here we know that they are not. Thus we
|
|
699
|
+
// can move the element for `oldEndVnode` _before_ the element for
|
|
700
|
+
// `oldStartVnode`, leaving `oldStartVnode` to be reconciled in the
|
|
701
|
+
// future.
|
|
702
|
+
parentElm.insertBefore(oldEndVnode.$elm$, oldStartVnode.$elm$);
|
|
703
|
+
oldEndVnode = oldCh[--oldEndIdx];
|
|
704
|
+
newStartVnode = newCh[++newStartIdx];
|
|
705
|
+
}
|
|
706
|
+
else {
|
|
707
|
+
// Here we do some checks to match up old and new nodes based on the
|
|
708
|
+
// `$key$` attribute, which is set by putting a `key="my-key"` attribute
|
|
709
|
+
// in the JSX for a DOM element in the implementation of a Stencil
|
|
710
|
+
// component.
|
|
711
|
+
//
|
|
712
|
+
// First we check to see if there are any nodes in the array of old
|
|
713
|
+
// children which have the same key as the first node in the new
|
|
714
|
+
// children.
|
|
715
|
+
idxInOld = -1;
|
|
716
|
+
{
|
|
717
|
+
for (i = oldStartIdx; i <= oldEndIdx; ++i) {
|
|
718
|
+
if (oldCh[i] && oldCh[i].$key$ !== null && oldCh[i].$key$ === newStartVnode.$key$) {
|
|
719
|
+
idxInOld = i;
|
|
720
|
+
break;
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
if (idxInOld >= 0) {
|
|
725
|
+
// We found a node in the old children which matches up with the first
|
|
726
|
+
// node in the new children! So let's deal with that
|
|
727
|
+
elmToMove = oldCh[idxInOld];
|
|
728
|
+
if (elmToMove.$tag$ !== newStartVnode.$tag$) {
|
|
729
|
+
// the tag doesn't match so we'll need a new DOM element
|
|
730
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld);
|
|
731
|
+
}
|
|
732
|
+
else {
|
|
733
|
+
patch(elmToMove, newStartVnode);
|
|
734
|
+
// invalidate the matching old node so that we won't try to update it
|
|
735
|
+
// again later on
|
|
736
|
+
oldCh[idxInOld] = undefined;
|
|
737
|
+
node = elmToMove.$elm$;
|
|
738
|
+
}
|
|
739
|
+
newStartVnode = newCh[++newStartIdx];
|
|
740
|
+
}
|
|
741
|
+
else {
|
|
742
|
+
// We either didn't find an element in the old children that matches
|
|
743
|
+
// the key of the first new child OR the build is not using `key`
|
|
744
|
+
// attributes at all. In either case we need to create a new element
|
|
745
|
+
// for the new node.
|
|
746
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx);
|
|
747
|
+
newStartVnode = newCh[++newStartIdx];
|
|
748
|
+
}
|
|
749
|
+
if (node) {
|
|
750
|
+
// if we created a new node then handle inserting it to the DOM
|
|
751
|
+
{
|
|
752
|
+
oldStartVnode.$elm$.parentNode.insertBefore(node, oldStartVnode.$elm$);
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
if (oldStartIdx > oldEndIdx) {
|
|
758
|
+
// we have some more new nodes to add which don't match up with old nodes
|
|
759
|
+
addVnodes(parentElm, newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$, newVNode, newCh, newStartIdx, newEndIdx);
|
|
760
|
+
}
|
|
761
|
+
else if (newStartIdx > newEndIdx) {
|
|
762
|
+
// there are nodes in the `oldCh` array which no longer correspond to nodes
|
|
763
|
+
// in the new array, so lets remove them (which entails cleaning up the
|
|
764
|
+
// relevant DOM nodes)
|
|
765
|
+
removeVnodes(oldCh, oldStartIdx, oldEndIdx);
|
|
766
|
+
}
|
|
767
|
+
};
|
|
768
|
+
/**
|
|
769
|
+
* Compare two VNodes to determine if they are the same
|
|
770
|
+
*
|
|
771
|
+
* **NB**: This function is an equality _heuristic_ based on the available
|
|
772
|
+
* information set on the two VNodes and can be misleading under certain
|
|
773
|
+
* circumstances. In particular, if the two nodes do not have `key` attrs
|
|
774
|
+
* (available under `$key$` on VNodes) then the function falls back on merely
|
|
775
|
+
* checking that they have the same tag.
|
|
776
|
+
*
|
|
777
|
+
* So, in other words, if `key` attrs are not set on VNodes which may be
|
|
778
|
+
* changing order within a `children` array or something along those lines then
|
|
779
|
+
* we could obtain a false negative and then have to do needless re-rendering
|
|
780
|
+
* (i.e. we'd say two VNodes aren't equal when in fact they should be).
|
|
781
|
+
*
|
|
782
|
+
* @param leftVNode the first VNode to check
|
|
783
|
+
* @param rightVNode the second VNode to check
|
|
784
|
+
* @returns whether they're equal or not
|
|
785
|
+
*/
|
|
786
|
+
const isSameVnode = (leftVNode, rightVNode) => {
|
|
787
|
+
// compare if two vnode to see if they're "technically" the same
|
|
788
|
+
// need to have the same element tag, and same key to be the same
|
|
789
|
+
if (leftVNode.$tag$ === rightVNode.$tag$) {
|
|
790
|
+
// this will be set if components in the build have `key` attrs set on them
|
|
791
|
+
{
|
|
792
|
+
return leftVNode.$key$ === rightVNode.$key$;
|
|
793
|
+
}
|
|
794
|
+
}
|
|
795
|
+
return false;
|
|
796
|
+
};
|
|
797
|
+
/**
|
|
798
|
+
* Handle reconciling an outdated VNode with a new one which corresponds to
|
|
799
|
+
* it. This function handles flushing updates to the DOM and reconciling the
|
|
800
|
+
* children of the two nodes (if any).
|
|
801
|
+
*
|
|
802
|
+
* @param oldVNode an old VNode whose DOM element and children we want to update
|
|
803
|
+
* @param newVNode a new VNode representing an updated version of the old one
|
|
804
|
+
*/
|
|
805
|
+
const patch = (oldVNode, newVNode) => {
|
|
806
|
+
const elm = (newVNode.$elm$ = oldVNode.$elm$);
|
|
807
|
+
const oldChildren = oldVNode.$children$;
|
|
808
|
+
const newChildren = newVNode.$children$;
|
|
809
|
+
const tag = newVNode.$tag$;
|
|
810
|
+
const text = newVNode.$text$;
|
|
811
|
+
if (text === null) {
|
|
812
|
+
{
|
|
813
|
+
// test if we're rendering an svg element, or still rendering nodes inside of one
|
|
814
|
+
// only add this to the when the compiler sees we're using an svg somewhere
|
|
815
|
+
isSvgMode = tag === 'svg' ? true : tag === 'foreignObject' ? false : isSvgMode;
|
|
816
|
+
}
|
|
817
|
+
{
|
|
818
|
+
if (tag === 'slot')
|
|
819
|
+
;
|
|
820
|
+
else {
|
|
821
|
+
// either this is the first render of an element OR it's an update
|
|
822
|
+
// AND we already know it's possible it could have changed
|
|
823
|
+
// this updates the element's css classes, attrs, props, listeners, etc.
|
|
824
|
+
updateElement(oldVNode, newVNode, isSvgMode);
|
|
825
|
+
}
|
|
826
|
+
}
|
|
827
|
+
if (oldChildren !== null && newChildren !== null) {
|
|
828
|
+
// looks like there's child vnodes for both the old and new vnodes
|
|
829
|
+
// so we need to call `updateChildren` to reconcile them
|
|
830
|
+
updateChildren(elm, oldChildren, newVNode, newChildren);
|
|
831
|
+
}
|
|
832
|
+
else if (newChildren !== null) {
|
|
833
|
+
// no old child vnodes, but there are new child vnodes to add
|
|
834
|
+
if (oldVNode.$text$ !== null) {
|
|
835
|
+
// the old vnode was text, so be sure to clear it out
|
|
836
|
+
elm.textContent = '';
|
|
837
|
+
}
|
|
838
|
+
// add the new vnode children
|
|
839
|
+
addVnodes(elm, null, newVNode, newChildren, 0, newChildren.length - 1);
|
|
840
|
+
}
|
|
841
|
+
else if (oldChildren !== null) {
|
|
842
|
+
// no new child vnodes, but there are old child vnodes to remove
|
|
843
|
+
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
844
|
+
}
|
|
845
|
+
if (isSvgMode && tag === 'svg') {
|
|
846
|
+
isSvgMode = false;
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
else if (oldVNode.$text$ !== text) {
|
|
850
|
+
// update the text content for the text only vnode
|
|
851
|
+
// and also only if the text is different than before
|
|
852
|
+
elm.data = text;
|
|
853
|
+
}
|
|
854
|
+
};
|
|
855
|
+
const callNodeRefs = (vNode) => {
|
|
856
|
+
{
|
|
857
|
+
vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
|
|
858
|
+
vNode.$children$ && vNode.$children$.map(callNodeRefs);
|
|
859
|
+
}
|
|
860
|
+
};
|
|
861
|
+
/**
|
|
862
|
+
* The main entry point for Stencil's virtual DOM-based rendering engine
|
|
863
|
+
*
|
|
864
|
+
* Given a {@link d.HostRef} container and some virtual DOM nodes, this
|
|
865
|
+
* function will handle creating a virtual DOM tree with a single root, patching
|
|
866
|
+
* the current virtual DOM tree onto an old one (if any), dealing with slot
|
|
867
|
+
* relocation, and reflecting attributes.
|
|
868
|
+
*
|
|
869
|
+
* @param hostRef data needed to root and render the virtual DOM tree, such as
|
|
870
|
+
* the DOM node into which it should be rendered.
|
|
871
|
+
* @param renderFnResults the virtual DOM nodes to be rendered
|
|
872
|
+
*/
|
|
873
|
+
const renderVdom = (hostRef, renderFnResults) => {
|
|
874
|
+
const hostElm = hostRef.$hostElement$;
|
|
875
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
876
|
+
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
877
|
+
const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
|
|
878
|
+
hostTagName = hostElm.tagName;
|
|
879
|
+
if (cmpMeta.$attrsToReflect$) {
|
|
880
|
+
rootVnode.$attrs$ = rootVnode.$attrs$ || {};
|
|
881
|
+
cmpMeta.$attrsToReflect$.map(([propName, attribute]) => (rootVnode.$attrs$[attribute] = hostElm[propName]));
|
|
882
|
+
}
|
|
883
|
+
rootVnode.$tag$ = null;
|
|
884
|
+
rootVnode.$flags$ |= 4 /* VNODE_FLAGS.isHost */;
|
|
885
|
+
hostRef.$vnode$ = rootVnode;
|
|
886
|
+
rootVnode.$elm$ = oldVNode.$elm$ = (hostElm.shadowRoot || hostElm );
|
|
887
|
+
{
|
|
888
|
+
scopeId = hostElm['s-sc'];
|
|
889
|
+
}
|
|
890
|
+
// synchronous patch
|
|
891
|
+
patch(oldVNode, rootVnode);
|
|
892
|
+
};
|
|
893
|
+
const attachToAncestor = (hostRef, ancestorComponent) => {
|
|
894
|
+
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
|
|
895
|
+
ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
|
|
896
|
+
}
|
|
897
|
+
};
|
|
898
|
+
const scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
899
|
+
{
|
|
900
|
+
hostRef.$flags$ |= 16 /* HOST_FLAGS.isQueuedForUpdate */;
|
|
901
|
+
}
|
|
902
|
+
if (hostRef.$flags$ & 4 /* HOST_FLAGS.isWaitingForChildren */) {
|
|
903
|
+
hostRef.$flags$ |= 512 /* HOST_FLAGS.needsRerender */;
|
|
904
|
+
return;
|
|
905
|
+
}
|
|
906
|
+
attachToAncestor(hostRef, hostRef.$ancestorComponent$);
|
|
907
|
+
// there is no ancestor component or the ancestor component
|
|
908
|
+
// has already fired off its lifecycle update then
|
|
909
|
+
// fire off the initial update
|
|
910
|
+
const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
|
|
911
|
+
return writeTask(dispatch) ;
|
|
912
|
+
};
|
|
913
|
+
const dispatchHooks = (hostRef, isInitialLoad) => {
|
|
914
|
+
const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
|
|
915
|
+
const instance = hostRef.$lazyInstance$ ;
|
|
916
|
+
let promise;
|
|
917
|
+
if (isInitialLoad) {
|
|
918
|
+
{
|
|
919
|
+
promise = safeCall(instance, 'componentWillLoad');
|
|
920
|
+
}
|
|
921
|
+
}
|
|
922
|
+
endSchedule();
|
|
923
|
+
return then(promise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
924
|
+
};
|
|
925
|
+
const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
926
|
+
// updateComponent
|
|
927
|
+
const elm = hostRef.$hostElement$;
|
|
928
|
+
const endUpdate = createTime('update', hostRef.$cmpMeta$.$tagName$);
|
|
929
|
+
const rc = elm['s-rc'];
|
|
930
|
+
if (isInitialLoad) {
|
|
931
|
+
// DOM WRITE!
|
|
932
|
+
attachStyles(hostRef);
|
|
933
|
+
}
|
|
934
|
+
const endRender = createTime('render', hostRef.$cmpMeta$.$tagName$);
|
|
935
|
+
{
|
|
936
|
+
callRender(hostRef, instance);
|
|
937
|
+
}
|
|
938
|
+
if (rc) {
|
|
939
|
+
// ok, so turns out there are some child host elements
|
|
940
|
+
// waiting on this parent element to load
|
|
941
|
+
// let's fire off all update callbacks waiting
|
|
942
|
+
rc.map((cb) => cb());
|
|
943
|
+
elm['s-rc'] = undefined;
|
|
944
|
+
}
|
|
945
|
+
endRender();
|
|
946
|
+
endUpdate();
|
|
947
|
+
{
|
|
948
|
+
const childrenPromises = elm['s-p'];
|
|
949
|
+
const postUpdate = () => postUpdateComponent(hostRef);
|
|
950
|
+
if (childrenPromises.length === 0) {
|
|
951
|
+
postUpdate();
|
|
952
|
+
}
|
|
953
|
+
else {
|
|
954
|
+
Promise.all(childrenPromises).then(postUpdate);
|
|
955
|
+
hostRef.$flags$ |= 4 /* HOST_FLAGS.isWaitingForChildren */;
|
|
956
|
+
childrenPromises.length = 0;
|
|
957
|
+
}
|
|
958
|
+
}
|
|
959
|
+
};
|
|
960
|
+
const callRender = (hostRef, instance, elm) => {
|
|
961
|
+
try {
|
|
962
|
+
instance = instance.render() ;
|
|
963
|
+
{
|
|
964
|
+
hostRef.$flags$ &= ~16 /* HOST_FLAGS.isQueuedForUpdate */;
|
|
965
|
+
}
|
|
966
|
+
{
|
|
967
|
+
hostRef.$flags$ |= 2 /* HOST_FLAGS.hasRendered */;
|
|
968
|
+
}
|
|
969
|
+
{
|
|
970
|
+
{
|
|
971
|
+
// looks like we've got child nodes to render into this host element
|
|
972
|
+
// or we need to update the css class/attrs on the host element
|
|
973
|
+
// DOM WRITE!
|
|
974
|
+
{
|
|
975
|
+
renderVdom(hostRef, instance);
|
|
976
|
+
}
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
}
|
|
980
|
+
catch (e) {
|
|
981
|
+
consoleError(e, hostRef.$hostElement$);
|
|
982
|
+
}
|
|
983
|
+
return null;
|
|
984
|
+
};
|
|
985
|
+
const postUpdateComponent = (hostRef) => {
|
|
986
|
+
const tagName = hostRef.$cmpMeta$.$tagName$;
|
|
987
|
+
const elm = hostRef.$hostElement$;
|
|
988
|
+
const endPostUpdate = createTime('postUpdate', tagName);
|
|
989
|
+
const instance = hostRef.$lazyInstance$ ;
|
|
990
|
+
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
991
|
+
if (!(hostRef.$flags$ & 64 /* HOST_FLAGS.hasLoadedComponent */)) {
|
|
992
|
+
hostRef.$flags$ |= 64 /* HOST_FLAGS.hasLoadedComponent */;
|
|
993
|
+
{
|
|
994
|
+
// DOM WRITE!
|
|
995
|
+
addHydratedFlag(elm);
|
|
996
|
+
}
|
|
997
|
+
{
|
|
998
|
+
safeCall(instance, 'componentDidLoad');
|
|
999
|
+
}
|
|
1000
|
+
endPostUpdate();
|
|
1001
|
+
{
|
|
1002
|
+
hostRef.$onReadyResolve$(elm);
|
|
1003
|
+
if (!ancestorComponent) {
|
|
1004
|
+
appDidLoad();
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
else {
|
|
1009
|
+
endPostUpdate();
|
|
1010
|
+
}
|
|
1011
|
+
// load events fire from bottom to top
|
|
1012
|
+
// the deepest elements load first then bubbles up
|
|
1013
|
+
{
|
|
1014
|
+
if (hostRef.$onRenderResolve$) {
|
|
1015
|
+
hostRef.$onRenderResolve$();
|
|
1016
|
+
hostRef.$onRenderResolve$ = undefined;
|
|
1017
|
+
}
|
|
1018
|
+
if (hostRef.$flags$ & 512 /* HOST_FLAGS.needsRerender */) {
|
|
1019
|
+
nextTick(() => scheduleUpdate(hostRef, false));
|
|
1020
|
+
}
|
|
1021
|
+
hostRef.$flags$ &= ~(4 /* HOST_FLAGS.isWaitingForChildren */ | 512 /* HOST_FLAGS.needsRerender */);
|
|
1022
|
+
}
|
|
1023
|
+
// ( •_•)
|
|
1024
|
+
// ( •_•)>⌐■-■
|
|
1025
|
+
// (⌐■_■)
|
|
1026
|
+
};
|
|
1027
|
+
const appDidLoad = (who) => {
|
|
1028
|
+
// on appload
|
|
1029
|
+
// we have finish the first big initial render
|
|
1030
|
+
{
|
|
1031
|
+
addHydratedFlag(doc.documentElement);
|
|
1032
|
+
}
|
|
1033
|
+
nextTick(() => emitEvent(win, 'appload', { detail: { namespace: NAMESPACE } }));
|
|
1034
|
+
};
|
|
1035
|
+
const safeCall = (instance, method, arg) => {
|
|
1036
|
+
if (instance && instance[method]) {
|
|
1037
|
+
try {
|
|
1038
|
+
return instance[method](arg);
|
|
1039
|
+
}
|
|
1040
|
+
catch (e) {
|
|
1041
|
+
consoleError(e);
|
|
1042
|
+
}
|
|
1043
|
+
}
|
|
1044
|
+
return undefined;
|
|
1045
|
+
};
|
|
1046
|
+
const then = (promise, thenFn) => {
|
|
1047
|
+
return promise && promise.then ? promise.then(thenFn) : thenFn();
|
|
1048
|
+
};
|
|
1049
|
+
const addHydratedFlag = (elm) => elm.classList.add('hydrated')
|
|
1050
|
+
;
|
|
1051
|
+
const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
|
|
1052
|
+
const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
1053
|
+
// check our new property value against our internal value
|
|
1054
|
+
const hostRef = getHostRef(ref);
|
|
1055
|
+
const oldVal = hostRef.$instanceValues$.get(propName);
|
|
1056
|
+
const flags = hostRef.$flags$;
|
|
1057
|
+
const instance = hostRef.$lazyInstance$ ;
|
|
1058
|
+
newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
|
|
1059
|
+
// explicitly check for NaN on both sides, as `NaN === NaN` is always false
|
|
1060
|
+
const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
|
|
1061
|
+
const didValueChange = newVal !== oldVal && !areBothNaN;
|
|
1062
|
+
if ((!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) || oldVal === undefined) && didValueChange) {
|
|
1063
|
+
// gadzooks! the property's value has changed!!
|
|
1064
|
+
// set our new value!
|
|
1065
|
+
hostRef.$instanceValues$.set(propName, newVal);
|
|
1066
|
+
if (instance) {
|
|
1067
|
+
if ((flags & (2 /* HOST_FLAGS.hasRendered */ | 16 /* HOST_FLAGS.isQueuedForUpdate */)) === 2 /* HOST_FLAGS.hasRendered */) {
|
|
1068
|
+
// looks like this value actually changed, so we've got work to do!
|
|
1069
|
+
// but only if we've already rendered, otherwise just chill out
|
|
1070
|
+
// queue that we need to do an update, but don't worry about queuing
|
|
1071
|
+
// up millions cuz this function ensures it only runs once
|
|
1072
|
+
scheduleUpdate(hostRef, false);
|
|
1073
|
+
}
|
|
1074
|
+
}
|
|
1075
|
+
}
|
|
1076
|
+
};
|
|
1077
|
+
/**
|
|
1078
|
+
* Attach a series of runtime constructs to a compiled Stencil component
|
|
1079
|
+
* constructor, including getters and setters for the `@Prop` and `@State`
|
|
1080
|
+
* decorators, callbacks for when attributes change, and so on.
|
|
1081
|
+
*
|
|
1082
|
+
* @param Cstr the constructor for a component that we need to process
|
|
1083
|
+
* @param cmpMeta metadata collected previously about the component
|
|
1084
|
+
* @param flags a number used to store a series of bit flags
|
|
1085
|
+
* @returns a reference to the same constructor passed in (but now mutated)
|
|
1086
|
+
*/
|
|
1087
|
+
const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
1088
|
+
if (cmpMeta.$members$) {
|
|
1089
|
+
// It's better to have a const than two Object.entries()
|
|
1090
|
+
const members = Object.entries(cmpMeta.$members$);
|
|
1091
|
+
const prototype = Cstr.prototype;
|
|
1092
|
+
members.map(([memberName, [memberFlags]]) => {
|
|
1093
|
+
if ((memberFlags & 31 /* MEMBER_FLAGS.Prop */ ||
|
|
1094
|
+
((flags & 2 /* PROXY_FLAGS.proxyState */) && memberFlags & 32 /* MEMBER_FLAGS.State */))) {
|
|
1095
|
+
// proxyComponent - prop
|
|
1096
|
+
Object.defineProperty(prototype, memberName, {
|
|
1097
|
+
get() {
|
|
1098
|
+
// proxyComponent, get value
|
|
1099
|
+
return getValue(this, memberName);
|
|
1100
|
+
},
|
|
1101
|
+
set(newValue) {
|
|
1102
|
+
// proxyComponent, set value
|
|
1103
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
1104
|
+
},
|
|
1105
|
+
configurable: true,
|
|
1106
|
+
enumerable: true,
|
|
1107
|
+
});
|
|
1108
|
+
}
|
|
1109
|
+
});
|
|
1110
|
+
if ((flags & 1 /* PROXY_FLAGS.isElementConstructor */)) {
|
|
1111
|
+
const attrNameToPropName = new Map();
|
|
1112
|
+
prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
|
|
1113
|
+
plt.jmp(() => {
|
|
1114
|
+
const propName = attrNameToPropName.get(attrName);
|
|
1115
|
+
// In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
|
|
1116
|
+
// in the case where an attribute was set inline.
|
|
1117
|
+
// ```html
|
|
1118
|
+
// <my-component some-attribute="some-value"></my-component>
|
|
1119
|
+
// ```
|
|
1120
|
+
//
|
|
1121
|
+
// There is an edge case where a developer sets the attribute inline on a custom element and then
|
|
1122
|
+
// programmatically changes it before it has been upgraded as shown below:
|
|
1123
|
+
//
|
|
1124
|
+
// ```html
|
|
1125
|
+
// <!-- this component has _not_ been upgraded yet -->
|
|
1126
|
+
// <my-component id="test" some-attribute="some-value"></my-component>
|
|
1127
|
+
// <script>
|
|
1128
|
+
// // grab non-upgraded component
|
|
1129
|
+
// el = document.querySelector("#test");
|
|
1130
|
+
// el.someAttribute = "another-value";
|
|
1131
|
+
// // upgrade component
|
|
1132
|
+
// customElements.define('my-component', MyComponent);
|
|
1133
|
+
// </script>
|
|
1134
|
+
// ```
|
|
1135
|
+
// In this case if we do not unshadow here and use the value of the shadowing property, attributeChangedCallback
|
|
1136
|
+
// will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
|
|
1137
|
+
// to the value that was set inline i.e. "some-value" from above example. When
|
|
1138
|
+
// the connectedCallback attempts to unshadow it will use "some-value" as the initial value rather than "another-value"
|
|
1139
|
+
//
|
|
1140
|
+
// The case where the attribute was NOT set inline but was not set programmatically shall be handled/unshadowed
|
|
1141
|
+
// by connectedCallback as this attributeChangedCallback will not fire.
|
|
1142
|
+
//
|
|
1143
|
+
// https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
|
|
1144
|
+
//
|
|
1145
|
+
// TODO(STENCIL-16) we should think about whether or not we actually want to be reflecting the attributes to
|
|
1146
|
+
// properties here given that this goes against best practices outlined here
|
|
1147
|
+
// https://developers.google.com/web/fundamentals/web-components/best-practices#avoid-reentrancy
|
|
1148
|
+
if (this.hasOwnProperty(propName)) {
|
|
1149
|
+
newValue = this[propName];
|
|
1150
|
+
delete this[propName];
|
|
1151
|
+
}
|
|
1152
|
+
else if (prototype.hasOwnProperty(propName) &&
|
|
1153
|
+
typeof this[propName] === 'number' &&
|
|
1154
|
+
this[propName] == newValue) {
|
|
1155
|
+
// if the propName exists on the prototype of `Cstr`, this update may be a result of Stencil using native
|
|
1156
|
+
// APIs to reflect props as attributes. Calls to `setAttribute(someElement, propName)` will result in
|
|
1157
|
+
// `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
|
|
1158
|
+
return;
|
|
1159
|
+
}
|
|
1160
|
+
this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
|
|
1161
|
+
});
|
|
1162
|
+
};
|
|
1163
|
+
// create an array of attributes to observe
|
|
1164
|
+
// and also create a map of html attribute name to js property name
|
|
1165
|
+
Cstr.observedAttributes = members
|
|
1166
|
+
.filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */) // filter to only keep props that should match attributes
|
|
1167
|
+
.map(([propName, m]) => {
|
|
1168
|
+
const attrName = m[1] || propName;
|
|
1169
|
+
attrNameToPropName.set(attrName, propName);
|
|
1170
|
+
if (m[0] & 512 /* MEMBER_FLAGS.ReflectAttr */) {
|
|
1171
|
+
cmpMeta.$attrsToReflect$.push([propName, attrName]);
|
|
1172
|
+
}
|
|
1173
|
+
return attrName;
|
|
1174
|
+
});
|
|
1175
|
+
}
|
|
1176
|
+
}
|
|
1177
|
+
return Cstr;
|
|
1178
|
+
};
|
|
1179
|
+
const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
|
|
1180
|
+
// initializeComponent
|
|
1181
|
+
if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
|
|
1182
|
+
{
|
|
1183
|
+
// we haven't initialized this element yet
|
|
1184
|
+
hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
|
|
1185
|
+
// lazy loaded components
|
|
1186
|
+
// request the component's implementation to be
|
|
1187
|
+
// wired up with the host element
|
|
1188
|
+
Cstr = loadModule(cmpMeta);
|
|
1189
|
+
if (Cstr.then) {
|
|
1190
|
+
// Await creates a micro-task avoid if possible
|
|
1191
|
+
const endLoad = uniqueTime();
|
|
1192
|
+
Cstr = await Cstr;
|
|
1193
|
+
endLoad();
|
|
1194
|
+
}
|
|
1195
|
+
if (!Cstr.isProxied) {
|
|
1196
|
+
proxyComponent(Cstr, cmpMeta, 2 /* PROXY_FLAGS.proxyState */);
|
|
1197
|
+
Cstr.isProxied = true;
|
|
1198
|
+
}
|
|
1199
|
+
const endNewInstance = createTime('createInstance', cmpMeta.$tagName$);
|
|
1200
|
+
// ok, time to construct the instance
|
|
1201
|
+
// but let's keep track of when we start and stop
|
|
1202
|
+
// so that the getters/setters don't incorrectly step on data
|
|
1203
|
+
{
|
|
1204
|
+
hostRef.$flags$ |= 8 /* HOST_FLAGS.isConstructingInstance */;
|
|
1205
|
+
}
|
|
1206
|
+
// construct the lazy-loaded component implementation
|
|
1207
|
+
// passing the hostRef is very important during
|
|
1208
|
+
// construction in order to directly wire together the
|
|
1209
|
+
// host element and the lazy-loaded instance
|
|
1210
|
+
try {
|
|
1211
|
+
new Cstr(hostRef);
|
|
1212
|
+
}
|
|
1213
|
+
catch (e) {
|
|
1214
|
+
consoleError(e);
|
|
1215
|
+
}
|
|
1216
|
+
{
|
|
1217
|
+
hostRef.$flags$ &= ~8 /* HOST_FLAGS.isConstructingInstance */;
|
|
1218
|
+
}
|
|
1219
|
+
endNewInstance();
|
|
1220
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
1221
|
+
}
|
|
1222
|
+
if (Cstr.style) {
|
|
1223
|
+
// this component has styles but we haven't registered them yet
|
|
1224
|
+
let style = Cstr.style;
|
|
1225
|
+
const scopeId = getScopeId(cmpMeta);
|
|
1226
|
+
if (!styles.has(scopeId)) {
|
|
1227
|
+
const endRegisterStyles = createTime('registerStyles', cmpMeta.$tagName$);
|
|
1228
|
+
registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */));
|
|
1229
|
+
endRegisterStyles();
|
|
1230
|
+
}
|
|
1231
|
+
}
|
|
1232
|
+
}
|
|
1233
|
+
// we've successfully created a lazy instance
|
|
1234
|
+
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1235
|
+
const schedule = () => scheduleUpdate(hostRef, true);
|
|
1236
|
+
if (ancestorComponent && ancestorComponent['s-rc']) {
|
|
1237
|
+
// this is the initial load and this component it has an ancestor component
|
|
1238
|
+
// but the ancestor component has NOT fired its will update lifecycle yet
|
|
1239
|
+
// so let's just cool our jets and wait for the ancestor to continue first
|
|
1240
|
+
// this will get fired off when the ancestor component
|
|
1241
|
+
// finally gets around to rendering its lazy self
|
|
1242
|
+
// fire off the initial update
|
|
1243
|
+
ancestorComponent['s-rc'].push(schedule);
|
|
1244
|
+
}
|
|
1245
|
+
else {
|
|
1246
|
+
schedule();
|
|
1247
|
+
}
|
|
1248
|
+
};
|
|
1249
|
+
const fireConnectedCallback = (instance) => {
|
|
1250
|
+
{
|
|
1251
|
+
safeCall(instance, 'connectedCallback');
|
|
1252
|
+
}
|
|
1253
|
+
};
|
|
1254
|
+
const connectedCallback = (elm) => {
|
|
1255
|
+
if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
|
|
1256
|
+
const hostRef = getHostRef(elm);
|
|
1257
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
1258
|
+
const endConnected = createTime('connectedCallback', cmpMeta.$tagName$);
|
|
1259
|
+
if (!(hostRef.$flags$ & 1 /* HOST_FLAGS.hasConnected */)) {
|
|
1260
|
+
// first time this component has connected
|
|
1261
|
+
hostRef.$flags$ |= 1 /* HOST_FLAGS.hasConnected */;
|
|
1262
|
+
{
|
|
1263
|
+
// find the first ancestor component (if there is one) and register
|
|
1264
|
+
// this component as one of the actively loading child components for its ancestor
|
|
1265
|
+
let ancestorComponent = elm;
|
|
1266
|
+
while ((ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host)) {
|
|
1267
|
+
// climb up the ancestors looking for the first
|
|
1268
|
+
// component that hasn't finished its lifecycle update yet
|
|
1269
|
+
if (ancestorComponent['s-p']) {
|
|
1270
|
+
// we found this components first ancestor component
|
|
1271
|
+
// keep a reference to this component's ancestor component
|
|
1272
|
+
attachToAncestor(hostRef, (hostRef.$ancestorComponent$ = ancestorComponent));
|
|
1273
|
+
break;
|
|
1274
|
+
}
|
|
1275
|
+
}
|
|
1276
|
+
}
|
|
1277
|
+
// Lazy properties
|
|
1278
|
+
// https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
|
|
1279
|
+
if (cmpMeta.$members$) {
|
|
1280
|
+
Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
|
|
1281
|
+
if (memberFlags & 31 /* MEMBER_FLAGS.Prop */ && elm.hasOwnProperty(memberName)) {
|
|
1282
|
+
const value = elm[memberName];
|
|
1283
|
+
delete elm[memberName];
|
|
1284
|
+
elm[memberName] = value;
|
|
1285
|
+
}
|
|
1286
|
+
});
|
|
1287
|
+
}
|
|
1288
|
+
{
|
|
1289
|
+
initializeComponent(elm, hostRef, cmpMeta);
|
|
1290
|
+
}
|
|
1291
|
+
}
|
|
1292
|
+
else {
|
|
1293
|
+
// fire off connectedCallback() on component instance
|
|
1294
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
1295
|
+
}
|
|
1296
|
+
endConnected();
|
|
1297
|
+
}
|
|
1298
|
+
};
|
|
1299
|
+
const disconnectedCallback = (elm) => {
|
|
1300
|
+
if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
|
|
1301
|
+
const hostRef = getHostRef(elm);
|
|
1302
|
+
const instance = hostRef.$lazyInstance$ ;
|
|
1303
|
+
{
|
|
1304
|
+
safeCall(instance, 'disconnectedCallback');
|
|
1305
|
+
}
|
|
1306
|
+
}
|
|
1307
|
+
};
|
|
1308
|
+
const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
1309
|
+
var _a;
|
|
1310
|
+
const endBootstrap = createTime();
|
|
1311
|
+
const cmpTags = [];
|
|
1312
|
+
const exclude = options.exclude || [];
|
|
1313
|
+
const customElements = win.customElements;
|
|
1314
|
+
const head = doc.head;
|
|
1315
|
+
const metaCharset = /*@__PURE__*/ head.querySelector('meta[charset]');
|
|
1316
|
+
const visibilityStyle = /*@__PURE__*/ doc.createElement('style');
|
|
1317
|
+
const deferredConnectedCallbacks = [];
|
|
1318
|
+
let appLoadFallback;
|
|
1319
|
+
let isBootstrapping = true;
|
|
1320
|
+
Object.assign(plt, options);
|
|
1321
|
+
plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
|
|
1322
|
+
lazyBundles.map((lazyBundle) => {
|
|
1323
|
+
lazyBundle[1].map((compactMeta) => {
|
|
1324
|
+
const cmpMeta = {
|
|
1325
|
+
$flags$: compactMeta[0],
|
|
1326
|
+
$tagName$: compactMeta[1],
|
|
1327
|
+
$members$: compactMeta[2],
|
|
1328
|
+
$listeners$: compactMeta[3],
|
|
1329
|
+
};
|
|
1330
|
+
{
|
|
1331
|
+
cmpMeta.$members$ = compactMeta[2];
|
|
1332
|
+
}
|
|
1333
|
+
{
|
|
1334
|
+
cmpMeta.$attrsToReflect$ = [];
|
|
1335
|
+
}
|
|
1336
|
+
const tagName = cmpMeta.$tagName$;
|
|
1337
|
+
const HostElement = class extends HTMLElement {
|
|
1338
|
+
// StencilLazyHost
|
|
1339
|
+
constructor(self) {
|
|
1340
|
+
// @ts-ignore
|
|
1341
|
+
super(self);
|
|
1342
|
+
self = this;
|
|
1343
|
+
registerHost(self, cmpMeta);
|
|
1344
|
+
if (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) {
|
|
1345
|
+
// this component is using shadow dom
|
|
1346
|
+
// and this browser supports shadow dom
|
|
1347
|
+
// add the read-only property "shadowRoot" to the host element
|
|
1348
|
+
// adding the shadow root build conditionals to minimize runtime
|
|
1349
|
+
{
|
|
1350
|
+
{
|
|
1351
|
+
self.attachShadow({ mode: 'open' });
|
|
1352
|
+
}
|
|
1353
|
+
}
|
|
1354
|
+
}
|
|
1355
|
+
}
|
|
1356
|
+
connectedCallback() {
|
|
1357
|
+
if (appLoadFallback) {
|
|
1358
|
+
clearTimeout(appLoadFallback);
|
|
1359
|
+
appLoadFallback = null;
|
|
1360
|
+
}
|
|
1361
|
+
if (isBootstrapping) {
|
|
1362
|
+
// connectedCallback will be processed once all components have been registered
|
|
1363
|
+
deferredConnectedCallbacks.push(this);
|
|
1364
|
+
}
|
|
1365
|
+
else {
|
|
1366
|
+
plt.jmp(() => connectedCallback(this));
|
|
1367
|
+
}
|
|
1368
|
+
}
|
|
1369
|
+
disconnectedCallback() {
|
|
1370
|
+
plt.jmp(() => disconnectedCallback(this));
|
|
1371
|
+
}
|
|
1372
|
+
componentOnReady() {
|
|
1373
|
+
return getHostRef(this).$onReadyPromise$;
|
|
1374
|
+
}
|
|
1375
|
+
};
|
|
1376
|
+
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
1377
|
+
if (!exclude.includes(tagName) && !customElements.get(tagName)) {
|
|
1378
|
+
cmpTags.push(tagName);
|
|
1379
|
+
customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* PROXY_FLAGS.isElementConstructor */));
|
|
1380
|
+
}
|
|
1381
|
+
});
|
|
1382
|
+
});
|
|
1383
|
+
{
|
|
1384
|
+
visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
|
|
1385
|
+
visibilityStyle.setAttribute('data-styles', '');
|
|
1386
|
+
// Apply CSP nonce to the style tag if it exists
|
|
1387
|
+
const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
|
|
1388
|
+
if (nonce != null) {
|
|
1389
|
+
visibilityStyle.setAttribute('nonce', nonce);
|
|
1390
|
+
}
|
|
1391
|
+
head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
|
|
1392
|
+
}
|
|
1393
|
+
// Process deferred connectedCallbacks now all components have been registered
|
|
1394
|
+
isBootstrapping = false;
|
|
1395
|
+
if (deferredConnectedCallbacks.length) {
|
|
1396
|
+
deferredConnectedCallbacks.map((host) => host.connectedCallback());
|
|
1397
|
+
}
|
|
1398
|
+
else {
|
|
1399
|
+
{
|
|
1400
|
+
plt.jmp(() => (appLoadFallback = setTimeout(appDidLoad, 30)));
|
|
1401
|
+
}
|
|
1402
|
+
}
|
|
1403
|
+
// Fallback appLoad event
|
|
1404
|
+
endBootstrap();
|
|
1405
|
+
};
|
|
1406
|
+
/**
|
|
1407
|
+
* Assigns the given value to the nonce property on the runtime platform object.
|
|
1408
|
+
* During runtime, this value is used to set the nonce attribute on all dynamically created script and style tags.
|
|
1409
|
+
* @param nonce The value to be assigned to the platform nonce property.
|
|
1410
|
+
* @returns void
|
|
1411
|
+
*/
|
|
1412
|
+
const setNonce = (nonce) => (plt.$nonce$ = nonce);
|
|
1413
|
+
const hostRefs = /*@__PURE__*/ new WeakMap();
|
|
1414
|
+
const getHostRef = (ref) => hostRefs.get(ref);
|
|
1415
|
+
const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
|
|
1416
|
+
const registerHost = (elm, cmpMeta) => {
|
|
1417
|
+
const hostRef = {
|
|
1418
|
+
$flags$: 0,
|
|
1419
|
+
$hostElement$: elm,
|
|
1420
|
+
$cmpMeta$: cmpMeta,
|
|
1421
|
+
$instanceValues$: new Map(),
|
|
1422
|
+
};
|
|
1423
|
+
{
|
|
1424
|
+
hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
|
|
1425
|
+
elm['s-p'] = [];
|
|
1426
|
+
elm['s-rc'] = [];
|
|
1427
|
+
}
|
|
1428
|
+
return hostRefs.set(elm, hostRef);
|
|
1429
|
+
};
|
|
1430
|
+
const isMemberInElement = (elm, memberName) => memberName in elm;
|
|
1431
|
+
const consoleError = (e, el) => (0, console.error)(e, el);
|
|
1432
|
+
const cmpModules = /*@__PURE__*/ new Map();
|
|
1433
|
+
const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
1434
|
+
// loadModuleImport
|
|
1435
|
+
const exportName = cmpMeta.$tagName$.replace(/-/g, '_');
|
|
1436
|
+
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1437
|
+
const module = cmpModules.get(bundleId) ;
|
|
1438
|
+
if (module) {
|
|
1439
|
+
return module[exportName];
|
|
1440
|
+
}
|
|
1441
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/
|
|
1442
|
+
return import(
|
|
1443
|
+
/* @vite-ignore */
|
|
1444
|
+
/* webpackInclude: /\.entry\.js$/ */
|
|
1445
|
+
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
1446
|
+
/* webpackMode: "lazy" */
|
|
1447
|
+
`./${bundleId}.entry.js${''}`).then((importedModule) => {
|
|
1448
|
+
{
|
|
1449
|
+
cmpModules.set(bundleId, importedModule);
|
|
1450
|
+
}
|
|
1451
|
+
return importedModule[exportName];
|
|
1452
|
+
}, consoleError);
|
|
1453
|
+
};
|
|
1454
|
+
const styles = /*@__PURE__*/ new Map();
|
|
1455
|
+
const win = typeof window !== 'undefined' ? window : {};
|
|
1456
|
+
const doc = win.document || { head: {} };
|
|
1457
|
+
const plt = {
|
|
1458
|
+
$flags$: 0,
|
|
1459
|
+
$resourcesUrl$: '',
|
|
1460
|
+
jmp: (h) => h(),
|
|
1461
|
+
raf: (h) => requestAnimationFrame(h),
|
|
1462
|
+
ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
|
|
1463
|
+
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
1464
|
+
ce: (eventName, opts) => new CustomEvent(eventName, opts),
|
|
1465
|
+
};
|
|
1466
|
+
const promiseResolve = (v) => Promise.resolve(v);
|
|
1467
|
+
const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
|
|
1468
|
+
try {
|
|
1469
|
+
new CSSStyleSheet();
|
|
1470
|
+
return typeof new CSSStyleSheet().replaceSync === 'function';
|
|
1471
|
+
}
|
|
1472
|
+
catch (e) { }
|
|
1473
|
+
return false;
|
|
1474
|
+
})()
|
|
1475
|
+
;
|
|
1476
|
+
const queueDomReads = [];
|
|
1477
|
+
const queueDomWrites = [];
|
|
1478
|
+
const queueTask = (queue, write) => (cb) => {
|
|
1479
|
+
queue.push(cb);
|
|
1480
|
+
if (!queuePending) {
|
|
1481
|
+
queuePending = true;
|
|
1482
|
+
if (write && plt.$flags$ & 4 /* PLATFORM_FLAGS.queueSync */) {
|
|
1483
|
+
nextTick(flush);
|
|
1484
|
+
}
|
|
1485
|
+
else {
|
|
1486
|
+
plt.raf(flush);
|
|
1487
|
+
}
|
|
1488
|
+
}
|
|
1489
|
+
};
|
|
1490
|
+
const consume = (queue) => {
|
|
1491
|
+
for (let i = 0; i < queue.length; i++) {
|
|
1492
|
+
try {
|
|
1493
|
+
queue[i](performance.now());
|
|
1494
|
+
}
|
|
1495
|
+
catch (e) {
|
|
1496
|
+
consoleError(e);
|
|
1497
|
+
}
|
|
1498
|
+
}
|
|
1499
|
+
queue.length = 0;
|
|
1500
|
+
};
|
|
1501
|
+
const flush = () => {
|
|
1502
|
+
// always force a bunch of medium callbacks to run, but still have
|
|
1503
|
+
// a throttle on how many can run in a certain time
|
|
1504
|
+
// DOM READS!!!
|
|
1505
|
+
consume(queueDomReads);
|
|
1506
|
+
// DOM WRITES!!!
|
|
1507
|
+
{
|
|
1508
|
+
consume(queueDomWrites);
|
|
1509
|
+
if ((queuePending = queueDomReads.length > 0)) {
|
|
1510
|
+
// still more to do yet, but we've run out of time
|
|
1511
|
+
// let's let this thing cool off and try again in the next tick
|
|
1512
|
+
plt.raf(flush);
|
|
1513
|
+
}
|
|
1514
|
+
}
|
|
1515
|
+
};
|
|
1516
|
+
const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
|
|
1517
|
+
const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
|
|
1518
|
+
|
|
1519
|
+
export { Host as H, bootstrapLazy as b, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
|