2022-09-15 19:59:19 +08:00

1 line
40 KiB
JavaScript

"use strict";(wx["webpackJsonp"]=wx["webpackJsonp"]||[]).push([[903],{903:function(t,e,n){n.d(e,{$j:function(){return hn},$n:function(){return ie},B3:function(){return Zt},BG:function(){return G},Bj:function(){return oe},Dx:function(){return fn},FN:function(){return he},GY:function(){return de},J6:function(){return X},Ny:function(){return kn},OZ:function(){return ae},Pr:function(){return En},Pz:function(){return yn},R0:function(){return gn},R4:function(){return Cn},VC:function(){return rt},W8:function(){return Kt},Wg:function(){return Vt},Xl:function(){return V},Y3:function(){return me},YM:function(){return kt},ZB:function(){return Be},bg:function(){return St},c8:function(){return Xt},iK:function(){return Nn},nY:function(){return vn},p_:function(){return bn},px:function(){return mn},qF:function(){return Ct},t_:function(){return ue},td:function(){return le},vR:function(){return qt},xt:function(){return xe},yM:function(){return dn},yS:function(){return ce},zO:function(){return se}});var i,s,r,o,a,l,c,u,d,h,p,f,m,g,v,b,y,x,T,w,S,C,k,N,E,_,P,A,B,O,L,$,I,j,D,R,U,M,F,z,W,q,H,V,G,J,Z,K,Y,X,Q,tt,et,nt,it,st,rt,ot,at,lt,ct,ut,dt,ht,pt,ft,mt,gt,vt,bt,yt,xt,Tt,wt,St,Ct,kt,Nt,Et,_t,Pt,At,Bt,Ot,Lt,$t,It,jt,Dt,Rt,Ut,Mt,Ft,zt,Wt,qt,Ht,Vt,Gt,Jt,Zt,Kt,Yt,Xt,Qt,te,ee,ne,ie,se,re,oe,ae,le,ce,ue,de,he,pe,fe,me,ge=n(31),ve=n(868),be=n(903)["Bj"],ye=n(903)["OZ"],xe={};function Te(t,e){t.records.push(e),H||(H=!0,Promise.resolve().then((()=>{H=!1,z.forEach((t=>t.callback(t.takeRecords())))})))}function we(t){z.forEach((e=>{const{options:n}=e;for(let i=t.target;i;i=i.parentNode){if(W(e.target,i)&&q(t,n)){Te(e,t);break}if(!n.subtree)break}}))}function Se(t){return 1===t.nodeType}function Ce(t){return 3===t.nodeType}function ke(t){return t.nodeName===$}function Ne(t){const e=Object.keys(t.props).find((t=>!(/^(class|style|id)$/.test(t)||t.startsWith("data-"))));return Boolean(e)}function Ee(t,e){var n;let i=!1;while((null===t||void 0===t?void 0:t.parentElement)&&t.parentElement._path!==r){if(null===(n=t.parentElement.__handlers[e])||void 0===n?void 0:n.length){i=!0;break}t=t.parentElement}return i}function _e(t){switch(t){case g:return"st";case p:return f;case m:return"cl";default:return t}}function Pe(t,e,n){(0,ge.mf)(n)&&(n={value:n}),Object.defineProperty(t.prototype,e,Object.assign({configurable:!0,enumerable:!0},n))}function Ae(){return Z||(Z=(0,ge.W)(ge.rD)),Z}function Be(t){et||(et=Ae()),tt||(tt=ge.PT.call("getSpecialNodes"));const e=t.nodeName;if(Ce(t))return{["v"]:t.nodeValue,["nn"]:et[e]._num};const n={["nn"]:e,sid:t.sid};t.uid!==t.sid&&(n.uid=t.uid),!t.isAnyEventBinded()&&tt.indexOf(e)>-1&&(n["nn"]=`static-${e}`,e!==b||Ne(t)||(n["nn"]=x));const{props:i}=t;for(const t in i){const s=(0,ge.CA)(t);t.startsWith("data-")||t===m||t===g||t===p||s===O||(n[s]=i[t]),e===b&&s===O&&!1!==i[t]&&(n["nn"]=L)}let{childNodes:s}=t;s=s.filter((t=>!ke(t))),s.length>0?n["cn"]=s.map(Be):n["cn"]=[],""!==t.className&&(n["cl"]=t.className);const r=t.cssText;""!==r&&"swiper-item"!==e&&(n["st"]=r),ge.PT.call("modifyHydrateData",n);const o=n["nn"],a=et[o];if(a){n["nn"]=a._num;for(const t in n)t in a&&(n[a[t]]=n[t],delete n[t])}return n}function Oe(t,e,n){!n&&at.push(t),e.forEach((e=>{at.push(t+e),t===ot&&at.push("Webkit"+e)}))}function Le(t){V.record({type:"attributes",target:t._element,attributeName:"style",oldValue:t.cssText})}function $e(t){const e=t._element;e._root&&e.enqueueUpdate({path:`${e._path}.st`,value:t.cssText})}function Ie(t,e){const n=this[e];n!==t&&(!this._pending&&Le(this),(0,ge.Ft)(t)||(0,ge.o8)(t)?(this._usedStyleProp.delete(e),delete this._value[e]):(this._usedStyleProp.add(e),this._value[e]=t),!this._pending&&$e(this))}function je(t){const e={};for(let t=0;t<at.length;t++){const n=at[t];e[n]={get(){const t=this._value[n];return(0,ge.Ft)(t)||(0,ge.o8)(t)?"":t},set(t){Ie.call(this,t,n)}}}Object.defineProperties(t.prototype,e)}function De(t){return/^--/.test(t)}function Re(){return!0}function Ue(t,e){const n=[],i=null!==e&&void 0!==e?e:Re;let s=t;while(s)1===s.nodeType&&i(s)&&n.push(s),s=Me(s,t);return n}function Me(t,e){const n=t.firstChild;if(n)return n;let i=t;do{if(i===e)return null;const t=i.nextSibling;if(t)return t;i=i.parentElement}while(i);return null}function Fe(){return{index:0,column:0,line:0}}function ze(t,e,n){const i=t.index,s=t.index=i+n;for(let n=i;n<s;n++){const i=e.charAt(n);"\n"===i?(t.line++,t.column=0):t.column++}}function We(t,e,n){const i=n-t.index;return ze(t,e,i)}function qe(t){return{index:t.index,line:t.line,column:t.column}}function He(t){return Nt.test(t)}function Ve(t){return Et.test(t)}function Ge(t){const e=t.toLowerCase();return!!kt.html.skipElements.has(e)}function Je(t,e){while(1){const n=t.indexOf("<",e);if(-1===n)return n;const i=t.charAt(n+1);if("/"===i||"!"===i||_t.test(i))return n;e=n+1}}function Ze(t,e,n){if(!He(n.charAt(t)))return!1;const i=n.length;for(let i=t-1;i>e;i--){const t=n.charAt(i);if(!He(t)){if(Ve(t))return!1;break}}for(let e=t+1;e<i;e++){const t=n.charAt(e);if(!He(t))return!Ve(t)}}function Ke(t){const e=t.charAt(0),n=t.length-1,i='"'===e||"'"===e;return i&&e===t.charAt(n)?t.slice(1,n):t}function Ye(t){const e=t.parentElement;if(!e)return null;const n=t.previousSibling;return n?1===n.nodeType?n:Ye(n):null}function Xe(t){return t.sort(((t,e)=>{const n=Qe(t.selectorList),i=Qe(e.selectorList);if(n!==i)return n-i;const s=tn(t.selectorList),r=tn(e.selectorList);if(s!==r)return s-r;const o=en(t.selectorList),a=en(e.selectorList);return o-a}))}function Qe(t){return t.reduce(((t,e)=>t+(e.id?1:0)),0)}function tn(t){return t.reduce(((t,e)=>t+e.class.length+e.attrs.length),0)}function en(t){return t.reduce(((t,e)=>t+(e.tag?1:0)),0)}function nn(t,e){const n=Object.create(null),i=t.split(",");for(let t=0;t<i.length;t++)n[i[t]]=!0;return e?t=>!!n[t.toLowerCase()]:t=>!!n[t]}function sn(t,e){const n=Wt[t];if(n){let i=e.length-1;while(i>=0){const s=e[i].tagName;if(s===t)break;if(n&&n.includes(s))return!0;i--}}return!1}function rn(t){return kt.html.renderHTMLTag?t:Rt[t]?Rt[t]:Mt(t)?t:zt(t)?"view":Ft(t)?"text":"view"}function on(t){const e="=",n=t.indexOf(e);if(-1===n)return[t];const i=t.slice(0,n).trim(),s=t.slice(n+e.length).trim();return[i,s]}function an(t,e,n,i){return t.filter((t=>"comment"!==t.type&&("text"!==t.type||""!==t.content))).map((t=>{if("text"===t.type){let n=e.createTextNode(t.content);return(0,ge.mf)(kt.html.transformText)&&(n=kt.html.transformText(n,t)),null===i||void 0===i||i.appendChild(n),n}const s=e.createElement(rn(t.tagName));s.h5tagName=t.tagName,null===i||void 0===i||i.appendChild(s),kt.html.renderHTMLTag||(s.className=`h5-${t.tagName}`);for(let e=0;e<t.attributes.length;e++){const n=t.attributes[e],[i,r]=on(n);if("class"===i)s.className+=" "+Ke(r);else{if("o"===i[0]&&"n"===i[1])continue;s.setAttribute(i,null==r||Ke(r))}}const{styleTagParser:r,descendantList:o}=n,a=o.slice(),l=r.matchStyle(t.tagName,s,a);return s.setAttribute("style",l+s.style.cssText),an(t.children,e,{styleTagParser:r,descendantList:a},s),(0,ge.mf)(kt.html.transformElement)?kt.html.transformElement(s,t):s}))}function ln(t,e){const n=new Dt;t=n.extractStyle(t);const i=new Pt(t).scan(),s={tagName:"",children:[],type:"element",attributes:[]},r={tokens:i,options:kt,cursor:0,stack:[s]};return cn(r),an(s.children,e,{styleTagParser:n,descendantList:Array(n.styles.length).fill(0)})}function cn(t){const{tokens:e,stack:n}=t;let{cursor:i}=t;const s=e.length;let r=n[n.length-1].children;while(i<s){const t=e[i];if("tag-start"!==t.type){r.push(t),i++;continue}const o=e[++i];i++;const a=o.content.toLowerCase();if(t.close){let t=n.length,r=!1;while(--t>-1)if(n[t].tagName===a){r=!0;break}while(i<s){const t=e[i];if("tag-end"!==t.type)break;i++}if(r){n.splice(t);break}continue}const l=kt.html.closingElements.has(a);let c=l;if(c&&(c=!sn(a,n)),c){let t=n.length-1;while(t>0){if(a===n[t].tagName){n.splice(t);const e=t-1;r=n[e].children;break}t-=1}}const u=[];let d;while(i<s){if(d=e[i],"tag-end"===d.type)break;u.push(d.content),i++}i++;const h=[],p={type:"element",tagName:o.content,attributes:u,children:h};r.push(p);const f=!(d.close||kt.html.voidElements.has(a));if(f){n.push({tagName:a,children:h});const t={tokens:e,cursor:i,stack:n};cn(t),i=t.cursor}}t.cursor=i}function un(t,e){while(t.firstChild)t.removeChild(t.firstChild);const n=ln(e,t.ownerDocument);for(let e=0;e<n.length;e++)t.appendChild(n[e])}function dn(t,e){if("string"===typeof t)return new qt(t,{bubbles:!0,cancelable:!0});const n=new qt(t.type,{bubbles:!0,cancelable:!0},t);for(const e in t)e!==N&&e!==k&&e!==E&&e!==P&&(n[e]=t[e]);return n.type===_&&(null===e||void 0===e?void 0:e.nodeName)===w&&(n[A]=13),n}function hn(t){var e;ge.PT.call("modifyMpEventImpl",t),t.currentTarget||(t.currentTarget=t.target);const n=t.currentTarget,i=(null===(e=n.dataset)||void 0===e?void 0:e.sid)||n.id||"",s=Q.document.getElementById(i);if(s){const e=()=>{const e=dn(t,s);ge.PT.call("modifyTaroEvent",e,s),s.dispatchEvent(e)};if(ge.PT.isExist("batchedEventUpdates")){const n=t.type;!ge.PT.call("isBubbleEvents",n)||!Ee(s,n)||n===B&&s.props.catchMove?ge.PT.call("batchedEventUpdates",(()=>{Ht[n]&&(Ht[n].forEach((t=>t())),delete Ht[n]),e()})):(Ht[n]||(Ht[n]=[])).push(e)}else e()}}function pn(t,e){const n=e.slice(1);let i,s=t,r="";if(n.some(((t,n)=>{const o=t.replace(/^\[(.+)\]$/,"$1").replace(/\bcn\b/g,"childNodes");if(s=s[o],(0,ge.o8)(s))return!0;if(s.nodeName===C){const t=J.get(s.sid);t&&(i=t,r=e.slice(n+2).join("."))}})),i)return{customWrapper:i,splitedPath:r}}function fn(t){return t.style}function mn(t,e){ge.PT.call("mergePageInstance",pe.get(e),t),pe.set(e,t)}function gn(t){return pe.get(t)}function vn(t){return null==t?"":"/"===t.charAt(0)?t:"/"+t}function bn(t,e,...n){const i=pe.get(t);if(null==i)return;const s=ge.PT.call("getLifecycle",i,e);if((0,ge.kJ)(s)){const t=s.map((t=>t.apply(i,n)));return t[0]}return(0,ge.mf)(s)?s.apply(i,n):void 0}function yn(t){if(null==t)return"";const e=Object.keys(t).map((e=>e+"="+t[e])).join("&");return""===e?e:"?"+e}function xn(t,e){const n=t.indexOf("?");return`${n>-1?t.substring(0,n):t}${yn(e)}`}function Tn(t){return t+"."+j}function wn(t){return t+"."+D}function Sn(t){return t+"."+R}function Cn(t,e,n,i){const r=null!==e&&void 0!==e?e:`taro_page_${fe()}`,[o,a,l,c,u,d,h]=ge.PT.call("getMiniLifecycleImpl").page;let p,f,m=null,g=!1,v=[];function b(t){const e=t.route||t.__route__||t.$taroPath;de.router={params:t.$taroParams,path:vn(e),$taroPath:t.$taroPath,onReady:Tn(r),onShow:wn(r),onHide:Sn(r)},(0,ge.o8)(t.exitState)||(de.router.exitState=t.exitState)}const y={[o](e={},n){f=new Promise((t=>{p=t})),Jt.start(s),de.page=this,this.config=i||{};const o=Object.assign({},e,{$taroTimestamp:Date.now()}),a=this.$taroPath=xn(r,o);null==this.$taroParams&&(this.$taroParams=o),b(this);const l=()=>{de.app.mount(t,a,(()=>{m=Q.document.getElementById(a),(0,ge.zx)(null!==m,"\u6ca1\u6709\u627e\u5230\u9875\u9762\u5b9e\u4f8b\u3002"),bn(a,I,this.$taroParams),p(),m.ctx=this,m.performUpdate(!0,n)}))};g?v.push(l):l()},[a](){const t=this.$taroPath;bn(t,a),g=!0,de.app.unmount(t,(()=>{g=!1,pe.delete(t),m&&(m.ctx=null,m=null),v.length&&(v.forEach((t=>t())),v=[])}))},[l](){bn(this.$taroPath,j),oe((()=>le.trigger(Tn(r)))),this.onReady.called=!0},[c](t={}){f.then((()=>{de.page=this,b(this),bn(this.$taroPath,D,t),oe((()=>le.trigger(wn(r))))}))},[u](){de.page===this&&(de.page=null,de.router=null),bn(this.$taroPath,R),le.trigger(Sn(r))}};return d.forEach((t=>{y[t]=function(){return bn(this.$taroPath,t,...arguments)}})),h.forEach((e=>{var n;(t[e]||(null===(n=t.prototype)||void 0===n?void 0:n[e])||t[e.replace(/^on/,"enable")])&&(y[e]=function(...t){var n;const i=null===(n=t[0])||void 0===n?void 0:n.target;if(null===i||void 0===i?void 0:i.id){const t=i.id,e=Q.document.getElementById(t);e&&(i.dataset=e.dataset)}return bn(this.$taroPath,e,...t)})})),y.eh=hn,(0,ge.o8)(n)||(y.data=n),ge.PT.call("modifyPageObject",y),y}function kn(t,e,n){const i=null!==e&&void 0!==e?e:`taro_component_${fe()}`;let r=null;const o={attached(){var e;Jt.start(s);const n=xn(i,{id:(null===(e=this.getPageId)||void 0===e?void 0:e.call(this))||fe()});de.app.mount(t,n,(()=>{r=Q.document.getElementById(n),(0,ge.zx)(null!==r,"\u6ca1\u6709\u627e\u5230\u7ec4\u4ef6\u5b9e\u4f8b\u3002"),this.$taroInstances=pe.get(n),bn(n,I),r.ctx=this,r.performUpdate(!0)}))},detached(){const t=xn(i,{id:this.getPageId()});de.app.unmount(t,(()=>{pe.delete(t),r&&(r.ctx=null)}))},methods:{eh:hn}};return(0,ge.o8)(n)||(o.data=n),[U,M,F].forEach((e=>{var n;o[e]=null!==(n=t[e])&&void 0!==n?n:ge.kT})),o}function Nn(t){const e=t===C,n=e?{attached(){var t;const e=null===(t=this.data.i)||void 0===t?void 0:t.sid;(0,ge.HD)(e)&&J.set(e,this)},detached(){var t;const e=null===(t=this.data.i)||void 0===t?void 0:t.sid;(0,ge.HD)(e)&&J.delete(e)}}:ge.kT;return Object.assign({properties:{i:{type:Object,value:{["nn"]:b}},l:{type:String,value:""}},options:{addGlobalClass:!0,virtualHost:!e},methods:{eh:hn}},n)}(0,ve.r2)(xe,{Current:()=>de,Events:()=>ge.zW,FormElement:()=>Vt,MutationObserver:()=>V,SVGElement:()=>ue,Style:()=>St,TaroElement:()=>Ct,TaroEvent:()=>qt,TaroNode:()=>rt,TaroRootElement:()=>Zt,TaroText:()=>Kt,addLeadingSlash:()=>vn,cancelAnimationFrame:()=>ae,createComponentConfig:()=>kn,createEvent:()=>dn,createPageConfig:()=>Cn,createRecursiveComponentConfig:()=>Nn,document:()=>Xt,eventCenter:()=>le,eventHandler:()=>hn,eventSource:()=>X,getComputedStyle:()=>fn,getCurrentInstance:()=>he,getPageInstance:()=>gn,hooks:()=>ge.PT,hydrate:()=>Be,incrementId:()=>G,injectPageInstance:()=>mn,navigator:()=>ie,nextTick:()=>me,now:()=>se,options:()=>kt,requestAnimationFrame:()=>oe,safeExecute:()=>bn,stringify:()=>yn,window:()=>ce});var En=(0,ve.vd)({"node_modules/@tarojs/runtime/dist/runtime.esm.js"(){(0,ge.dZ)(),(0,ge.dZ)(),i="\u5c0f\u7a0b\u5e8f setData",s="\u9875\u9762\u521d\u59cb\u5316",r="root",o="html",a="head",l="body",c="app",u="container",d="#document",h="document-fragment",p="id",f="uid",m="class",g="style",v="focus",b="view",y="static-view",x="pure-view",T="value",w="input",S="change",C="custom-wrapper",k="target",N="currentTarget",E="type",_="confirm",P="timeStamp",A="keyCode",B="touchmove",O="catchMove",L="catch-view",$="comment",I="onLoad",j="onReady",D="onShow",R="onHide",U="options",M="externalClasses",F="behaviors",z=[],W=(t,e)=>!!t&&t.sid===(null===e||void 0===e?void 0:e.sid),q=(t,e)=>{const{characterData:n,characterDataOldValue:i,attributes:s,attributeOldValue:r,childList:o}=e;switch(t.type){case"characterData":return!!n&&(i||(t.oldValue=null),!0);case"attributes":return!!s&&(r||(t.oldValue=null),!0);case"childList":return!!o}},H=!1,V=class{observe(...t){this.core.observe(...t)}disconnect(){this.core.disconnect()}takeRecords(){return this.core.takeRecords()}static record(t){we(t)}constructor(t){this.core={observe:ge.ZT,disconnect:ge.ZT,takeRecords:ge.ZT}}},G=()=>{const t=[];for(let e=65;e<=90;e++)t.push(e);for(let e=97;e<=122;e++)t.push(e);const e=t.length-1,n=[0,0];return()=>{const i=n.map((e=>t[e])),s=String.fromCharCode(...i);let r=n.length-1;n[r]++;while(n[r]>e){if(n[r]=0,r-=1,r<0){n.push(0);break}n[r]++}return s}},J=new Map,K=class extends Set{get value(){return[...this].filter((t=>""!==t)).join(" ")}add(t){return super.add(t),this._update(),this}get length(){return this.size}remove(t){super.delete(t),this._update()}toggle(t){super.has(t)?super.delete(t):super.add(t),this._update()}replace(t,e){super.delete(t),super.add(e),this._update()}contains(t){return super.has(t)}toString(){return this.value}_update(){this.el.className=this.value}constructor(t,e){super(),t.trim().split(/\s+/).forEach(super.add.bind(this)),this.el=e}},Y=class extends Map{removeNode(t){const{sid:e,uid:n}=t;this.delete(e),n!==e&&n&&this.delete(n)}removeNodeTree(t){this.removeNode(t);const{childNodes:e}=t;e.forEach((t=>this.removeNodeTree(t)))}},X=new Y,Q={window:ge.kT,document:ge.kT},nt=class{addEventListener(t,e,n){if(t=t.toLowerCase(),ge.PT.call("onAddEvent",t,e,n,this),"regionchange"===t)return this.addEventListener("begin",e,n),void this.addEventListener("end",e,n);let i=Boolean(n),s=!1;if((0,ge.Kn)(n)&&(i=Boolean(n.capture),s=Boolean(n.once)),s){const i=function(){e.apply(this,arguments),this.removeEventListener(t,i)};return void this.addEventListener(t,i,Object.assign(Object.assign({},n),{once:!1}))}const r=e;e=function(){r.apply(this,arguments)},e.oldHandler=r;const o=this.__handlers[t];(0,ge.kJ)(o)?o.push(e):this.__handlers[t]=[e]}removeEventListener(t,e){if(t=t.toLowerCase(),"regionchange"===t)return this.removeEventListener("begin",e),void this.removeEventListener("end",e);if(!e)return;const n=this.__handlers[t];if(!(0,ge.kJ)(n))return;const i=n.findIndex((t=>{if(t===e||t.oldHandler===e)return!0}));n.splice(i,1)}isAnyEventBinded(){const t=this.__handlers,e=Object.keys(t).find((e=>t[e].length));return Boolean(e)}constructor(){this.__handlers={}}},it="cn",st=G(),rt=class extends nt{updateChildNodes(t){const e=()=>[],n=()=>{const t=this.childNodes.filter((t=>!ke(t)));return t.map(Be)};this.enqueueUpdate({path:`${this._path}.${it}`,value:t?e:n})}get _root(){var t;return(null===(t=this.parentNode)||void 0===t?void 0:t._root)||null}findIndex(t){const e=this.childNodes.indexOf(t);return(0,ge.zx)(-1!==e,"The node to be replaced is not a child of this node."),e}get _path(){const t=this.parentNode;if(t){const e=t.childNodes.filter((t=>!ke(t))),n=e.indexOf(this),i=ge.PT.call("getPathIndex",n);return`${t._path}.${it}.${i}`}return""}get nextSibling(){const t=this.parentNode;return(null===t||void 0===t?void 0:t.childNodes[t.findIndex(this)+1])||null}get previousSibling(){const t=this.parentNode;return(null===t||void 0===t?void 0:t.childNodes[t.findIndex(this)-1])||null}get parentElement(){const t=this.parentNode;return 1===(null===t||void 0===t?void 0:t.nodeType)?t:null}get firstChild(){return this.childNodes[0]||null}get lastChild(){const t=this.childNodes;return t[t.length-1]||null}set textContent(t){const e=this.childNodes.slice(),n=[];while(this.firstChild)this.removeChild(this.firstChild,{doUpdate:!1});if(""===t)this.updateChildNodes(!0);else{const e=Q.document.createTextNode(t);n.push(e),this.appendChild(e),this.updateChildNodes()}V.record({type:"childList",target:this,removedNodes:e,addedNodes:n})}insertBefore(t,e,n){if(t.nodeName===h)return t.childNodes.reduceRight(((t,e)=>(this.insertBefore(e,t),e)),e),t;if(t.remove({cleanRef:!1}),t.parentNode=this,e){const n=this.findIndex(e);this.childNodes.splice(n,0,t)}else this.childNodes.push(t);if(this._root)if(e)n?this.enqueueUpdate({path:t._path,value:this.hydrate(t)}):this.updateChildNodes();else{const e=1===this.childNodes.length;e?this.updateChildNodes():this.enqueueUpdate({path:t._path,value:this.hydrate(t)})}return V.record({type:"childList",target:this,addedNodes:[t],removedNodes:n?[e]:[],nextSibling:n?e.nextSibling:e||null,previousSibling:t.previousSibling}),t}appendChild(t){return this.insertBefore(t)}replaceChild(t,e){if(e.parentNode===this)return this.insertBefore(t,e,!0),e.remove({doUpdate:!1}),e}removeChild(t,e={}){const{cleanRef:n,doUpdate:i}=e;!1!==n&&!1!==i&&V.record({type:"childList",target:this,removedNodes:[t],nextSibling:t.nextSibling,previousSibling:t.previousSibling});const s=this.findIndex(t);return this.childNodes.splice(s,1),t.parentNode=null,!1!==n&&X.removeNodeTree(t),this._root&&!1!==i&&this.updateChildNodes(),t}remove(t){var e;null===(e=this.parentNode)||void 0===e||e.removeChild(this,t)}hasChildNodes(){return this.childNodes.length>0}enqueueUpdate(t){var e;null===(e=this._root)||void 0===e||e.enqueueUpdate(t)}get ownerDocument(){return Q.document}static extend(t,e){Pe(rt,t,e)}constructor(){super(),this.parentNode=null,this.childNodes=[],this.hydrate=t=>()=>Be(t),this.uid="_"+st(),this.sid=this.uid,X.set(this.sid,this)}},ot="webkit",at=["all","appearance","blockOverflow","blockSize","bottom","clear","contain","content","continue","cursor","direction","display","filter","float","gap","height","inset","isolation","left","letterSpacing","lightingColor","markerSide","mixBlendMode","opacity","order","position","quotes","resize","right","rowGap","tabSize","tableLayout","top","userSelect","verticalAlign","visibility","voiceFamily","volume","whiteSpace","widows","width","zIndex","pointerEvents"],lt="Color",ct="Style",ut="Width",dt="Image",ht="Size",pt=[lt,ct,ut],ft=["FitLength","FitWidth",dt],mt=[...ft,"Radius"],gt=[...pt,...ft],vt=["EndRadius","StartRadius"],bt=["Bottom","Left","Right","Top"],yt=["End","Start"],xt=["Content","Items","Self"],Tt=["BlockSize","Height","InlineSize",ut],wt=["After","Before"],Oe("borderBlock",pt),Oe("borderBlockEnd",pt),Oe("borderBlockStart",pt),Oe("outline",[...pt,"Offset"]),Oe("border",[...pt,"Boundary","Break","Collapse","Radius","Spacing"]),Oe("borderFit",["Length",ut]),Oe("borderInline",pt),Oe("borderInlineEnd",pt),Oe("borderInlineStart",pt),Oe("borderLeft",gt),Oe("borderRight",gt),Oe("borderTop",gt),Oe("borderBottom",gt),Oe("textDecoration",[lt,ct,"Line"]),Oe("textEmphasis",[lt,ct,"Position"]),Oe("scrollMargin",bt),Oe("scrollPadding",bt),Oe("padding",bt),Oe("margin",[...bt,"Trim"]),Oe("scrollMarginBlock",yt),Oe("scrollMarginInline",yt),Oe("scrollPaddingBlock",yt),Oe("scrollPaddingInline",yt),Oe("gridColumn",yt),Oe("gridRow",yt),Oe("insetBlock",yt),Oe("insetInline",yt),Oe("marginBlock",yt),Oe("marginInline",yt),Oe("paddingBlock",yt),Oe("paddingInline",yt),Oe("pause",wt),Oe("cue",wt),Oe("mask",["Clip","Composite",dt,"Mode","Origin","Position","Repeat",ht,"Type"]),Oe("borderImage",["Outset","Repeat","Slice","Source","Transform",ut]),Oe("maskBorder",["Mode","Outset","Repeat","Slice","Source",ut]),Oe("font",["Family","FeatureSettings","Kerning","LanguageOverride","MaxSize","MinSize","OpticalSizing","Palette",ht,"SizeAdjust","Stretch",ct,"Weight","VariationSettings"]),Oe("transform",["Box","Origin",ct]),Oe("background",[lt,dt,"Attachment","BlendMode","Clip","Origin","Position","Repeat",ht]),Oe("listStyle",[dt,"Position","Type"]),Oe("scrollSnap",["Align","Stop","Type"]),Oe("grid",["Area","AutoColumns","AutoFlow","AutoRows"]),Oe("gridTemplate",["Areas","Columns","Rows"]),Oe("overflow",["Block","Inline","Wrap","X","Y"]),Oe("transition",["Delay","Duration","Property","TimingFunction"]),Oe("color",["Adjust","InterpolationFilters","Scheme"]),Oe("textAlign",["All","Last"]),Oe("page",["BreakAfter","BreakBefore","BreakInside"]),Oe("animation",["Delay","Direction","Duration","FillMode","IterationCount","Name","PlayState","TimingFunction"]),Oe("flex",["Basis","Direction","Flow","Grow","Shrink","Wrap"]),Oe("offset",[...wt,...yt,"Anchor","Distance","Path","Position","Rotate"]),Oe("perspective",["Origin"]),Oe("clip",["Path","Rule"]),Oe("flow",["From","Into"]),Oe("align",["Content","Items","Self"],!0),Oe("alignment",["Adjust","Baseline"],!0),Oe("borderStart",vt,!0),Oe("borderEnd",vt,!0),Oe("borderCorner",["Fit",dt,"ImageTransform"],!0),Oe("borderTopLeft",mt,!0),Oe("borderTopRight",mt,!0),Oe("borderBottomLeft",mt,!0),Oe("borderBottomRight",mt,!0),Oe("column",["s","Count","Fill","Gap","Rule","RuleColor","RuleStyle","RuleWidth","Span",ut],!0),Oe("break",[...wt,"Inside"],!0),Oe("wrap",[...wt,"Flow","Inside","Through"],!0),Oe("justify",xt,!0),Oe("place",xt,!0),Oe("max",[...Tt,"Lines"],!0),Oe("min",Tt,!0),Oe("line",["Break","Clamp","Grid","Height","Padding","Snap"],!0),Oe("inline",["BoxAlign",ht,"Sizing"],!0),Oe("text",["CombineUpright","GroupAlign","Height","Indent","Justify","Orientation","Overflow","Shadow","SpaceCollapse","SpaceTrim","Spacing","Transform","UnderlinePosition","Wrap"],!0),Oe("shape",["ImageThreshold","Inside","Margin","Outside"],!0),Oe("word",["Break","Spacing","Wrap"],!0),Oe("object",["Fit","Position"],!0),Oe("box",["DecorationBreak","Shadow","Sizing","Snap"],!0),Oe(ot,["LineClamp","BoxOrient","TextFillColor","TextStroke","TextStrokeColor","TextStrokeWidth"],!0),St=class{setCssVariables(t){this.hasOwnProperty(t)||Object.defineProperty(this,t,{enumerable:!0,configurable:!0,get:()=>this._value[t]||"",set:e=>{Ie.call(this,e,t)}})}get cssText(){if(!this._usedStyleProp.size)return"";const t=[];return this._usedStyleProp.forEach((e=>{const n=this[e];if((0,ge.Ft)(n)||(0,ge.o8)(n))return;let i=De(e)?e:(0,ge.eu)(e);0!==i.indexOf("webkit")&&0!==i.indexOf("Webkit")||(i=`-${i}`),t.push(`${i}: ${n};`)})),t.join(" ")}set cssText(t){if(this._pending=!0,Le(this),this._usedStyleProp.forEach((t=>{this.removeProperty(t)})),""===t||(0,ge.o8)(t)||(0,ge.Ft)(t))return this._pending=!1,void $e(this);const e=t.split(";");for(let t=0;t<e.length;t++){const n=e[t].trim();if(""===n)continue;const[i,...s]=n.split(":"),r=s.join(":");(0,ge.o8)(r)||this.setProperty(i.trim(),r.trim())}this._pending=!1,$e(this)}setProperty(t,e){"-"===t[0]?this.setCssVariables(t):t=(0,ge.CA)(t),(0,ge.Ft)(e)||(0,ge.o8)(e)?this.removeProperty(t):this[t]=e}removeProperty(t){if(t=(0,ge.CA)(t),!this._usedStyleProp.has(t))return"";const e=this[t];return this[t]=void 0,e}getPropertyValue(t){t=(0,ge.CA)(t);const e=this[t];return e||""}constructor(t){this._element=t,this._usedStyleProp=new Set,this._value={}}},je(St),Ct=class extends rt{_stopPropagation(t){let e=this;while(e=e.parentNode){const n=e.__handlers[t.type];if((0,ge.kJ)(n))for(let t=n.length;t--;){const e=n[t];e._stop=!0}}}get id(){return this.getAttribute(p)}set id(t){this.setAttribute(p,t)}get className(){return this.getAttribute(m)||""}set className(t){this.setAttribute(m,t)}get cssText(){return this.getAttribute(g)||""}get classList(){return new K(this.className,this)}get children(){return this.childNodes.filter(Se)}get attributes(){const t=this.props,e=Object.keys(t),n=this.style.cssText,i=e.map((e=>({name:e,value:t[e]})));return i.concat(n?{name:g,value:n}:[])}get textContent(){let t="";const e=this.childNodes;for(let n=0;n<e.length;n++)t+=e[n].textContent;return t}set textContent(t){super.textContent=t}hasAttribute(t){return!(0,ge.o8)(this.props[t])}hasAttributes(){return this.attributes.length>0}get focus(){return function(){this.setAttribute(v,!0)}}set focus(t){this.setAttribute(v,t)}blur(){this.setAttribute(v,!1)}setAttribute(t,e){const n=this.nodeName===b&&!Ne(this)&&!this.isAnyEventBinded();switch(t!==g&&V.record({target:this,type:"attributes",attributeName:t,oldValue:this.getAttribute(t)}),t){case g:this.style.cssText=e;break;case p:this.uid!==this.sid&&X.delete(this.uid),e=String(e),this.props[t]=this.uid=e,X.set(e,this);break;default:this.props[t]=e,t.startsWith("data-")&&(this.dataset===ge.kT&&(this.dataset=Object.create(null)),this.dataset[(0,ge.CA)(t.replace(/^data-/,""))]=e);break}if(!this._root)return;const i=Ae(),s=i[this.nodeName],r=i[b]._num,o=i[y]._num,a=i[L]._num,l=this._path;t=_e(t);const c=(0,ge.CA)(t),u={path:`${l}.${c}`,value:(0,ge.mf)(e)?()=>e:e};if(ge.PT.call("modifySetAttrPayload",this,t,u,i),s){const e=s[c]||t;u.path=`${l}.${(0,ge.CA)(e)}`}this.enqueueUpdate(u),this.nodeName===b&&(c===O?this.enqueueUpdate({path:`${l}.nn`,value:e?a:this.isAnyEventBinded()?r:o}):n&&Ne(this)&&this.enqueueUpdate({path:`${l}.nn`,value:o}))}removeAttribute(t){const e=this.nodeName===b&&Ne(this)&&!this.isAnyEventBinded();if(V.record({target:this,type:"attributes",attributeName:t,oldValue:this.getAttribute(t)}),t===g)this.style.cssText="";else{const e=ge.PT.call("onRemoveAttribute",this,t);if(e)return;if(!this.props.hasOwnProperty(t))return;delete this.props[t]}if(!this._root)return;const n=Ae(),i=n[this.nodeName],s=n[b]._num,r=n[y]._num,o=n[x]._num,a=this._path;t=_e(t);const l=(0,ge.CA)(t),c={path:`${a}.${l}`,value:""};if(ge.PT.call("modifyRmAttrPayload",this,t,c,n),i){const e=i[l]||t;c.path=`${a}.${(0,ge.CA)(e)}`}this.enqueueUpdate(c),this.nodeName===b&&(l===O?this.enqueueUpdate({path:`${a}.nn`,value:this.isAnyEventBinded()?s:Ne(this)?r:o}):e&&!Ne(this)&&this.enqueueUpdate({path:`${a}.nn`,value:o}))}getAttribute(t){const e=t===g?this.style.cssText:this.props[t];return null!==e&&void 0!==e?e:""}getElementsByTagName(t){return Ue(this,(e=>e.nodeName===t||"*"===t&&this!==e))}getElementsByClassName(t){return Ue(this,(e=>{const n=e.classList,i=t.trim().split(/\s+/);return i.every((t=>n.has(t)))}))}dispatchEvent(t){const e=t.cancelable,n=this.__handlers[t.type];if(!(0,ge.kJ)(n))return!1;for(let i=n.length;i--;){const s=n[i];let r;if(s._stop?s._stop=!1:(ge.PT.call("modifyDispatchEvent",t,this),r=s.call(this,t)),(!1===r||t._end)&&e&&(t.defaultPrevented=!0),t._end&&t._stop)break}return t._stop?this._stopPropagation(t):t._stop=!0,null!=n}addEventListener(t,e,n){const i=this.nodeName,s=ge.PT.call("getSpecialNodes");let r=!0;if((0,ge.Kn)(n)&&!1===n.sideEffect&&(r=!1,delete n.sideEffect),!1!==r&&!this.isAnyEventBinded()&&s.indexOf(i)>-1){const t=Ae(),e=t[i]._num;this.enqueueUpdate({path:`${this._path}.nn`,value:e})}super.addEventListener(t,e,n)}removeEventListener(t,e,n=!0){super.removeEventListener(t,e);const i=this.nodeName,s=ge.PT.call("getSpecialNodes");if(!1!==n&&!this.isAnyEventBinded()&&s.indexOf(i)>-1){const t=Ae(),e=Ne(this)?`static-${i}`:`pure-${i}`,n=t[e]._num;this.enqueueUpdate({path:`${this._path}.nn`,value:n})}}static extend(t,e){Pe(Ct,t,e)}constructor(){super(),this.props={},this.dataset=ge.kT,this.nodeType=1,this.style=new St(this),ge.PT.call("patchElement",this)}},kt={prerender:!0,debug:!1},Nt=/\s/,Et=/=/,_t=/[A-Za-z0-9]/,Pt=class{scan(){const{html:t,position:e}=this,n=t.length;while(e.index<n){const n=e.index;if(this.scanText(),e.index===n){const e=t.startsWith("!--",n+1);if(e)this.scanComment();else{const t=this.scanTag();Ge(t)&&this.scanSkipTag(t)}}}return this.tokens}scanText(){const t="text",{html:e,position:n}=this;let i=Je(e,n.index);if(i===n.index)return;-1===i&&(i=e.length);const s=qe(n),r=e.slice(n.index,i);We(n,e,i);const o=qe(n);this.tokens.push({type:t,content:r,position:{start:s,end:o}})}scanComment(){const t="comment",{html:e,position:n}=this,i=qe(n);ze(n,e,4);let s=e.indexOf("--\x3e",n.index),r=s+3;-1===s&&(s=r=e.length);const o=e.slice(n.index,s);We(n,e,r),this.tokens.push({type:t,content:o,position:{start:i,end:qe(n)}})}scanTag(){this.scanTagStart();const t=this.scanTagName();return this.scanAttrs(),this.scanTagEnd(),t}scanTagStart(){const t="tag-start",{html:e,position:n}=this,i=e.charAt(n.index+1),s="/"===i,r=qe(n);ze(n,e,s?2:1),this.tokens.push({type:t,close:s,position:{start:r}})}scanTagEnd(){const t="tag-end",{html:e,position:n}=this,i=e.charAt(n.index),s="/"===i;ze(n,e,s?2:1);const r=qe(n);this.tokens.push({type:t,close:s,position:{end:r}})}scanTagName(){const t="tag",{html:e,position:n}=this,i=e.length;let s=n.index;while(s<i){const t=e.charAt(s),n=!(He(t)||"/"===t||">"===t);if(n)break;s++}let r=s+1;while(r<i){const t=e.charAt(r),n=!(He(t)||"/"===t||">"===t);if(!n)break;r++}We(n,e,r);const o=e.slice(s,r);return this.tokens.push({type:t,content:o}),o}scanAttrs(){const{html:t,position:e,tokens:n}=this;let i=e.index,s=null,r=i;const o=[],a=t.length;while(i<a){const e=t.charAt(i);if(s){const t=e===s;t&&(s=null),i++;continue}const n="/"===e||">"===e;if(n){i!==r&&o.push(t.slice(r,i));break}if(Ze(i,r,t)){i!==r&&o.push(t.slice(r,i)),r=i+1,i++;continue}const a="'"===e||'"'===e;a?(s=e,i++):i++}We(e,t,i);const l=o.length,c="attribute";for(let t=0;t<l;t++){const e=o[t],i=e.includes("=");if(i){const i=o[t+1];if(i&&i.startsWith("=")){if(i.length>1){const s=e+i;n.push({type:c,content:s}),t+=1;continue}const s=o[t+2];if(t+=1,s){const i=e+"="+s;n.push({type:c,content:i}),t+=1;continue}}}if(e.endsWith("=")){const i=o[t+1];if(i&&!i.includes("=")){const s=e+i;n.push({type:c,content:s}),t+=1;continue}const s=e.slice(0,-1);n.push({type:c,content:s})}else n.push({type:c,content:e})}}scanSkipTag(t){const{html:e,position:n}=this,i=t.toLowerCase(),s=e.length;while(n.index<s){const t=e.indexOf("</",n.index);if(-1===t){this.scanText();break}We(n,e,t);const s=this.scanTag();if(i===s.toLowerCase())break}}constructor(t){this.tokens=[],this.position=Fe(),this.html=t}},At="{",Bt="}",Ot=".",Lt="#",$t=">",It="~",jt="+",Dt=class{extractStyle(t){const e=/<style\s?[^>]*>((.|\n|\s)+?)<\/style>/g;let n=t;return n=n.replace(e,((t,e)=>{const n=e.trim();return this.stringToSelector(n),""})),n.trim()}stringToSelector(t){let e=t.indexOf(At);while(e>-1){const n=t.indexOf(Bt),i=t.slice(0,e).trim();let s=t.slice(e+1,n);s=s.replace(/:(.*);/g,(function(t,e){const n=e.trim().replace(/ +/g,"+++");return`:${n};`})),s=s.replace(/ /g,""),s=s.replace(/\+\+\+/g," "),/;$/.test(s)||(s+=";"),i.split(",").forEach((t=>{const e=this.parseSelector(t);this.styles.push({content:s,selectorList:e})})),t=t.slice(n+1),e=t.indexOf(At)}}parseSelector(t){const e=t.trim().replace(/ *([>~+]) */g," $1").replace(/ +/g," ").replace(/\[\s*([^[\]=\s]+)\s*=\s*([^[\]=\s]+)\s*\]/g,"[$1=$2]").split(" "),n=e.map((t=>{const e=t.charAt(0),n={isChild:e===$t,isGeneralSibling:e===It,isAdjacentSibling:e===jt,tag:null,id:null,class:[],attrs:[]};return t=t.replace(/^[>~+]/,""),t=t.replace(/\[(.+?)\]/g,(function(t,e){const[i,s]=e.split("="),r=-1===e.indexOf("="),o={all:r,key:i,value:r?null:s};return n.attrs.push(o),""})),t=t.replace(/([.#][A-Za-z0-9-_]+)/g,(function(t,e){return e[0]===Lt?n.id=e.substr(1):e[0]===Ot&&n.class.push(e.substr(1)),""})),""!==t&&(n.tag=t),n}));return n}matchStyle(t,e,n){const i=Xe(this.styles).reduce(((i,{content:s,selectorList:r},o)=>{let a=n[o],l=r[a];const c=r[a+1];((null===c||void 0===c?void 0:c.isGeneralSibling)||(null===c||void 0===c?void 0:c.isAdjacentSibling))&&(l=c,a+=1,n[o]+=1);let u=this.matchCurrent(t,e,l);if(u&&l.isGeneralSibling){let t=Ye(e);while(t){if(t.h5tagName&&this.matchCurrent(t.h5tagName,t,r[a-1])){u=!0;break}t=Ye(t),u=!1}}if(u&&l.isAdjacentSibling){const t=Ye(e);if(t&&t.h5tagName){const e=this.matchCurrent(t.h5tagName,t,r[a-1]);e||(u=!1)}else u=!1}if(u){if(a===r.length-1)return i+s;a<r.length-1&&(n[o]+=1)}else l.isChild&&a>0&&(n[o]-=1,this.matchCurrent(t,e,r[n[o]])&&(n[o]+=1));return i}),"");return i}matchCurrent(t,e,n){if(n.tag&&n.tag!==t)return!1;if(n.id&&n.id!==e.id)return!1;if(n.class.length){const t=e.className.split(" ");for(let e=0;e<n.class.length;e++){const i=n.class[e];if(-1===t.indexOf(i))return!1}}if(n.attrs.length)for(let t=0;t<n.attrs.length;t++){const{all:i,key:s,value:r}=n.attrs[t];if(i&&!e.hasAttribute(s))return!1;{const t=e.getAttribute(s);if(t!==Ke(r||""))return!1}}return!0}constructor(){this.styles=[]}},Rt={img:"image",iframe:"web-view"},Ut=Object.keys(ge.rD).map((t=>t.toLowerCase())).join(","),Mt=nn(Ut,!0),Ft=nn("a,i,abbr,iframe,select,acronym,slot,small,span,bdi,kbd,strong,big,map,sub,sup,br,mark,mark,meter,template,canvas,textarea,cite,object,time,code,output,u,data,picture,tt,datalist,var,dfn,del,q,em,s,embed,samp,b",!0),zt=nn("address,fieldset,li,article,figcaption,main,aside,figure,nav,blockquote,footer,ol,details,form,p,dialog,h1,h2,h3,h4,h5,h6,pre,dd,header,section,div,hgroup,table,dl,hr,ul,dt",!0),Wt={li:["ul","ol","menu"],dt:["dl"],dd:["dl"],tbody:["table"],thead:["table"],tfoot:["table"],tr:["table"],td:["table"]},kt.html={skipElements:new Set(["style","script"]),voidElements:new Set(["!doctype","area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),closingElements:new Set(["html","head","body","p","dt","dd","li","option","thead","th","tbody","tr","td","tfoot","colgroup"]),renderHTMLTag:!1},rt.extend("innerHTML",{set(t){un.call(this,this,t)},get(){return""}}),qt=class{stopPropagation(){this._stop=!0}stopImmediatePropagation(){this._end=this._stop=!0}preventDefault(){this.defaultPrevented=!0}get target(){var t,e;const n=this.cacheTarget;if(n)return n;{const n=Object.create((null===(t=this.mpEvent)||void 0===t?void 0:t.target)||null),i=Q.document.getElementById(n.id);n.dataset=null!==i?i.dataset:ge.kT;for(const t in null===(e=this.mpEvent)||void 0===e?void 0:e.detail)n[t]=this.mpEvent.detail[t];return this.cacheTarget=n,n}}get currentTarget(){var t,e,n,i;const s=this.cacheCurrentTarget;if(s)return s;{const s=Q.document,r=Object.create((null===(t=this.mpEvent)||void 0===t?void 0:t.currentTarget)||null),o=s.getElementById(r.id),a=s.getElementById((null===(n=null===(e=this.mpEvent)||void 0===e?void 0:e.target)||void 0===n?void 0:n.id)||null);if(null===o||o&&o===a)return this.cacheCurrentTarget=this.target,this.target;r.dataset=o.dataset;for(const t in null===(i=this.mpEvent)||void 0===i?void 0:i.detail)r[t]=this.mpEvent.detail[t];return this.cacheCurrentTarget=r,r}}constructor(t,e,n){this._stop=!1,this._end=!1,this.defaultPrevented=!1,this.timeStamp=Date.now(),this.type=t.toLowerCase(),this.mpEvent=n,this.bubbles=Boolean(e&&e.bubbles),this.cancelable=Boolean(e&&e.cancelable)}},Ht={},Vt=class extends Ct{get value(){const t=this.props[T];return null==t?"":t}set value(t){this.setAttribute(T,t)}dispatchEvent(t){if(t.mpEvent){const e=t.mpEvent.detail.value;t.type===S?this.props.value=e:t.type===w&&(this.value=e)}return super.dispatchEvent(t)}},Gt=class{start(t){kt.debug&&this.recorder.set(t,Date.now())}stop(t){if(!kt.debug)return;const e=Date.now(),n=this.recorder.get(t),i=e-n;console.log(`${t} \u65f6\u957f\uff1a ${i}ms`)}constructor(){this.recorder=new Map}},Jt=new Gt,Zt=class extends Ct{get _path(){return r}get _root(){return this}enqueueUpdate(t){this.updatePayloads.push(t),!this.pendingUpdate&&this.ctx&&this.performUpdate()}performUpdate(t=!1,e){this.pendingUpdate=!0;const n=this.ctx;setTimeout((()=>{Jt.start(i);const r=Object.create(null),o=new Set(t?["root.cn.[0]","root.cn[0]"]:[]);while(this.updatePayloads.length>0){const{path:t,value:e}=this.updatePayloads.shift();t.endsWith("cn")&&o.add(t),r[t]=e}for(const t in r){o.forEach((e=>{t.includes(e)&&t!==e&&delete r[t]}));const e=r[t];(0,ge.mf)(e)&&(r[t]=e())}if((0,ge.mf)(e))return e(r);this.pendingUpdate=!1;let a={};const l=new Map;if(t)a=r;else for(const t in r){const e=t.split("."),n=pn(this,e);if(n){const{customWrapper:e,splitedPath:i}=n;l.set(e,Object.assign(Object.assign({},l.get(e)||{}),{[`i.${i}`]:r[t]}))}else a[t]=r[t]}const c=l.size,u=Object.keys(a).length>0,d=c+(u?1:0);let h=0;const p=()=>{++h===d&&(Jt.stop(i),this.flushUpdateCallback(),t&&Jt.stop(s))};c&&l.forEach(((t,e)=>{e.setData(t,p)})),u&&n.setData(a,p)}),0)}enqueueUpdateCallback(t,e){this.updateCallbacks.push((()=>{e?t.call(e):t()}))}flushUpdateCallback(){const t=this.updateCallbacks;if(!t.length)return;const e=t.slice(0);this.updateCallbacks.length=0;for(let t=0;t<e.length;t++)e[t]()}constructor(){super(),this.updatePayloads=[],this.updateCallbacks=[],this.pendingUpdate=!1,this.ctx=null,this.nodeName=r,this.tagName=r.toUpperCase()}},Kt=class extends rt{set textContent(t){V.record({target:this,type:"characterData",oldValue:this._value}),this._value=t,this.enqueueUpdate({path:`${this._path}.v`,value:t})}get textContent(){return this._value}set nodeValue(t){this.textContent=t}get nodeValue(){return this._value}set data(t){this.textContent=t}get data(){return this._value}constructor(t){super(),this.nodeType=3,this.nodeName="#text",this._value=t}},Yt=class extends Ct{createElement(t){if(t===r)return new Zt;const e=ge._c.has(t)?new Vt:new Ct;return e.nodeName=t,e.tagName=t.toUpperCase(),e}createElementNS(t,e){return this.createElement(e)}createTextNode(t){return new Kt(t)}getElementById(t){const e=X.get(t);return(0,ge.o8)(e)?null:e}querySelector(t){return/^#/.test(t)?this.getElementById(t.slice(1)):null}querySelectorAll(){return[]}createComment(){const t=new Kt("");return t.nodeName=$,t}get defaultView(){return Q.window}constructor(){super(),this.createEvent=dn,this.nodeType=9,this.nodeName=d}};{let t=function(){const t=new Yt,e=t.createElement.bind(t),n=e(o),i=e(a),s=e(l),r=e(c);r.id=c;const d=e(u);return t.appendChild(n),n.appendChild(i),n.appendChild(s),s.appendChild(d),d.appendChild(r),t.documentElement=n,t.head=i,t.body=s,t};Xt=Q.document=t()}Qt="Macintosh",te="Intel Mac OS X 10_14_5",ee="AppleWebKit/534.36 (KHTML, like Gecko) NodeJS/v4.1.0 Chrome/76.0.3809.132 Safari/534.36",ne="("+Qt+"; "+te+") "+ee,ie={appCodeName:"Mozilla",appName:"Netscape",appVersion:"5.0 "+ne,cookieEnabled:!0,mimeTypes:[],onLine:!0,platform:"MacIntel",plugins:[],product:"Taro",productSub:"20030107",userAgent:"Mozilla/5.0 "+ne,vendor:"Joyent",vendorSub:""},function(){let t;"undefined"!==typeof performance&&null!==performance&&performance.now?se=()=>performance.now():Date.now?(t=Date.now(),se=()=>Date.now()-t):(t=(new Date).getTime(),se=()=>(new Date).getTime()-t)}(),re=0,oe="undefined"!==typeof be&&null!==be?be:function(t){const e=se(),n=Math.max(re+16,e);return setTimeout((function(){t(re=n)}),n-e)},ae="undefined"!==typeof ye&&null!==ye?ye:function(t){clearTimeout(t)},le=ge.PT.call("getEventCenter",ge.zW);{class t extends ge.zW{get document(){return Q.document}addEventListener(t,e){(0,ge.HD)(t)&&this.on(t,e,null)}removeEventListener(t,e){(0,ge.HD)(t)&&this.off(t,e,null)}setTimeout(...t){return setTimeout(...t)}clearTimeout(...t){return clearTimeout(...t)}constructor(){super(),this.navigator=ie,this.requestAnimationFrame=oe,this.cancelAnimationFrame=ae,this.getComputedStyle=fn;const t=[...Object.getOwnPropertyNames(n.g||{}),...Object.getOwnPropertySymbols(n.g||{})];t.forEach((t=>{"atob"!==t&&"document"!==t&&(Object.prototype.hasOwnProperty.call(this,t)||(this[t]=n.g[t]))})),this.Date||(this.Date=Date)}}ce=Q.window=new t}ue=class extends Ct{},de={app:null,router:null,page:null},he=()=>de,pe=new Map,fe=G(),me=(t,e)=>{const n=de.router,i=()=>{setTimeout((function(){e?t.call(e):t()}),1)};if(null!==n){let s=null;const r=n.$taroPath;s=Q.document.getElementById(r),(null===s||void 0===s?void 0:s.pendingUpdate)?s.enqueueUpdateCallback(t,e):i()}else i()}}})}}]);