pome-ui 2.0.0-preview49 → 2.0.0-preview50
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/package.json +1 -1
- package/pome-ui.dev.js +17 -2
- package/pome-ui.dev.min.js +1 -1
- package/pome-ui.js +17 -2
- package/pome-ui.min.js +3 -3
package/package.json
CHANGED
package/pome-ui.dev.js
CHANGED
|
@@ -18187,6 +18187,15 @@ function build(options, exports) {
|
|
|
18187
18187
|
document.head.appendChild(style);
|
|
18188
18188
|
}
|
|
18189
18189
|
|
|
18190
|
+
var _vueCloakInjected = false;
|
|
18191
|
+
function _ensureVueCloakStyle() {
|
|
18192
|
+
if (_vueCloakInjected) return;
|
|
18193
|
+
_vueCloakInjected = true;
|
|
18194
|
+
var style = document.createElement('style');
|
|
18195
|
+
style.textContent = '._pome-vue-cloak{display:none!important}';
|
|
18196
|
+
document.head.appendChild(style);
|
|
18197
|
+
}
|
|
18198
|
+
|
|
18190
18199
|
function _httpCached(url) {
|
|
18191
18200
|
return !!_cache[url];
|
|
18192
18201
|
}
|
|
@@ -18759,6 +18768,10 @@ function build(options, exports) {
|
|
|
18759
18768
|
|
|
18760
18769
|
_root = _app.mount(el);
|
|
18761
18770
|
_root.$.proxy = _root;
|
|
18771
|
+
var _mountEl = document.querySelector(el);
|
|
18772
|
+
if (_mountEl) {
|
|
18773
|
+
_mountEl.classList.remove('_pome-vue-cloak');
|
|
18774
|
+
}
|
|
18762
18775
|
});
|
|
18763
18776
|
});
|
|
18764
18777
|
}
|
|
@@ -18979,7 +18992,8 @@ function build(options, exports) {
|
|
|
18979
18992
|
|
|
18980
18993
|
var ticks = new Date().getTime();
|
|
18981
18994
|
var appId = 'pomelo-' + ticks;
|
|
18982
|
-
|
|
18995
|
+
_ensureVueCloakStyle();
|
|
18996
|
+
document.querySelector('body').innerHTML = '<div id="' + appId + '" class="_pome-vue-cloak">' + document.querySelector('body').innerHTML + '</div>';
|
|
18983
18997
|
|
|
18984
18998
|
return Promise.resolve(appId);
|
|
18985
18999
|
})
|
|
@@ -19389,7 +19403,8 @@ function build(options, exports) {
|
|
|
19389
19403
|
var appId = 'pomelo-' + ticks;
|
|
19390
19404
|
var containerId = 'container-' + ticks;
|
|
19391
19405
|
var body = document.querySelector('body').innerHTML.replace('<render-body></render-body>', '<div id="' + containerId + '"></div>');
|
|
19392
|
-
|
|
19406
|
+
_ensureVueCloakStyle();
|
|
19407
|
+
document.querySelector('body').innerHTML = '<div id="' + appId + '" class="_pome-vue-cloak">' + body + '</div>';
|
|
19393
19408
|
options.template = null;
|
|
19394
19409
|
// Hook mounted
|
|
19395
19410
|
if (!options.mounted) {
|
package/pome-ui.dev.min.js
CHANGED
|
@@ -27,4 +27,4 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
27
27
|
`,0);a()}if(!u){o(`return `)}if(t.codegenNode){Xh(t.codegenNode,n)}else{o(`null`)}if(d){l();o(`}`)}l();o(`}`);return{ast:t,code:n.code,preamble:``,map:n.map?n.map.toJSON():void 0}}function qh(e,t){const{ssr:n,prefixIdentifiers:s,push:o,newline:i,runtimeModuleName:r,runtimeGlobalName:l,ssrRuntimeModuleName:a}=t;const c=l;const u=Array.from(e.helpers);if(u.length>0){{o(`const _Vue = ${c}
|
|
28
28
|
`,-1);if(e.hoists.length){const f=[dp,hp,mp,gp,vp].filter(e=>u.includes(e)).map(Vh).join(", ");o(`const { ${f} } = _Vue
|
|
29
29
|
`,-1)}}}Wh(e.hoists,t);i();o(`return `)}function zh(n,s,{helper:e,push:o,newline:i,isTS:r}){const l=e(s==="component"?yp:_p);for(let t=0;t<n.length;t++){let e=n[t];const a=e.endsWith("__self");if(a){e=e.slice(0,-6)}o(`const ${Vd(e,s)} = ${l}(${JSON.stringify(e)}${a?`, true`:``})${r?`!`:``}`);if(t<n.length-1){i()}}}function Wh(t,n){if(!t.length){return}n.pure=true;const{push:s,newline:o}=n;o();for(let e=0;e<t.length;e++){const i=t[e];if(i){s(`const _hoisted_${e+1} = `);Xh(i,n);o()}}n.pure=false}function Kh(e){return k(e)||e.type===4||e.type===2||e.type===5||e.type===8}function Gh(e,t){const n=e.length>3||e.some(e=>H(e)||!Kh(e));t.push(`[`);n&&t.indent();Jh(e,t,n);n&&t.deindent();t.push(`]`)}function Jh(t,n,s=false,o=true){const{push:i,newline:r}=n;for(let e=0;e<t.length;e++){const l=t[e];if(k(l)){i(l,-3)}else if(H(l)){Gh(l,n)}else{Xh(l,n)}if(e<t.length-1){if(s){o&&i(",");r()}else{o&&i(", ")}}}}function Xh(e,t){if(k(e)){t.push(e,-3);return}if(oe(e)){t.push(t.helper(e));return}switch(e.type){case 1:case 9:case 11:$d(e.codegenNode!=null,`Codegen node is missing for element/if/for node. Apply appropriate transforms first.`);Xh(e.codegenNode,t);break;case 2:Yh(e,t);break;case 4:Qh(e,t);break;case 5:Zh(e,t);break;case 12:Xh(e.codegenNode,t);break;case 8:em(e,t);break;case 3:nm(e,t);break;case 13:sm(e,t);break;case 14:im(e,t);break;case 15:rm(e,t);break;case 17:lm(e,t);break;case 18:am(e,t);break;case 19:cm(e,t);break;case 20:um(e,t);break;case 21:Jh(e.body,t,true,false);break;case 22:break;case 23:break;case 24:break;case 25:break;case 26:break;case 10:break;default:{$d(false,`unhandled codegen node type: ${e.type}`);const n=e;return n}}}function Yh(e,t){t.push(JSON.stringify(e.content),-3,e)}function Qh(e,t){const{content:n,isStatic:s}=e;t.push(s?JSON.stringify(n):n,-3,e)}function Zh(e,t){const{push:n,helper:s,pure:o}=t;if(o)n(Uh);n(`${s(Tp)}(`);Xh(e.content,t);n(`)`)}function em(t,n){for(let e=0;e<t.children.length;e++){const s=t.children[e];if(k(s)){n.push(s,-3)}else{Xh(s,n)}}}function tm(e,t){const{push:n}=t;if(e.type===8){n(`[`);em(e,t);n(`]`)}else if(e.isStatic){const s=yd(e.content)?e.content:JSON.stringify(e.content);n(s,-2,e)}else{n(`[${e.content}]`,-3,e)}}function nm(e,t){const{push:n,helper:s,pure:o}=t;if(o){n(Uh)}n(`${s(mp)}(${JSON.stringify(e.content)})`,-3,e)}function sm(e,t){const{push:n,helper:s,pure:o}=t;const{tag:i,props:r,children:l,patchFlag:a,dynamicProps:c,directives:u,isBlock:f,disableTracking:p,isComponent:d}=e;let h;if(a){{if(a<0){h=a+` /* ${he[a]} */`}else{const g=Object.keys(he).map(Number).filter(e=>e>0&&a&e).map(e=>he[e]).join(`, `);h=a+` /* ${g} */`}}}if(u){n(s(wp)+`(`)}if(f){n(`(${s(up)}(${p?`true`:``}), `)}if(o){n(Uh)}const m=f?sd(t.inSSR,d):nd(t.inSSR,d);n(s(m)+`(`,-2,e);Jh(om([i,r,l,h,c]),t);n(`)`);if(f){n(`)`)}if(u){n(`, `);Xh(u,t);n(`)`)}}function om(e){let t=e.length;while(t--){if(e[t]!=null)break}return e.slice(0,t+1).map(e=>e||`null`)}function im(e,t){const{push:n,helper:s,pure:o}=t;const i=k(e.callee)?e.callee:s(e.callee);if(o){n(Uh)}n(i+`(`,-2,e);Jh(e.arguments,t);n(`)`)}function rm(e,t){const{push:n,indent:s,deindent:o,newline:i}=t;const{properties:r}=e;if(!r.length){n(`{}`,-2,e);return}const l=r.length>1||r.some(e=>e.value.type!==4);n(l?`{`:`{ `);l&&s();for(let e=0;e<r.length;e++){const{key:a,value:c}=r[e];tm(a,t);n(`: `);Xh(c,t);if(e<r.length-1){n(`,`);i()}}l&&o();n(l?`}`:` }`)}function lm(e,t){Gh(e.elements,t)}function am(e,t){const{push:n,indent:s,deindent:o}=t;const{params:i,returns:r,body:l,newline:a,isSlot:c}=e;if(c){n(`_${qp[Dp]}(`)}n(`(`,-2,e);if(H(i)){Jh(i,t)}else if(i){Xh(i,t)}n(`) => `);if(a||l){n(`{`);s()}if(r){if(a){n(`return `)}if(H(r)){Gh(r,t)}else{Xh(r,t)}}else if(l){Xh(l,t)}if(a||l){o();n(`}`)}if(c){n(`)`)}}function cm(e,t){const{test:n,consequent:s,alternate:o,newline:i}=e;const{push:r,indent:l,deindent:a,newline:c}=t;if(n.type===4){const f=!yd(n.content);f&&r(`(`);Qh(n,t);f&&r(`)`)}else{r(`(`);Xh(n,t);r(`)`)}i&&l();t.indentLevel++;i||r(` `);r(`? `);Xh(s,t);t.indentLevel--;i&&c();i||r(` `);r(`: `);const u=o.type===19;if(!u){t.indentLevel++}Xh(o,t);if(!u){t.indentLevel--}i&&a(true)}function um(e,t){const{push:n,helper:s,indent:o,deindent:i,newline:r}=t;const{needPauseTracking:l,needArraySpread:a}=e;if(a){n(`[...(`)}n(`_cache[${e.index}] || (`);if(l){o();n(`${s(Fp)}(-1`);if(e.inVOnce)n(`, true`);n(`),`);r();n(`(`)}n(`_cache[${e.index}] = `);Xh(e.value,t);if(l){n(`).cacheIndex = ${e.index},`);r();n(`${s(Fp)}(1),`);r();n(`_cache[${e.index}]`);i()}n(`)`);if(a){n(`)]`)}}const fm=new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const pm=/'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*\$\{|\}(?:[^`\\]|\\.)*`|`(?:[^`\\]|\\.)*`/g;function dm(n,s,e=false,t=false){const o=n.content;if(!o.trim()){return}try{new Function(t?` ${o} `:`return ${e?`(${o}) => {}`:`(${o})`}`)}catch(e){let t=e.message;const i=o.replace(pm,"").match(fm);if(i){t=`avoid using JavaScript keyword as property name: "${i[0]}"`}s.onError(G(45,n.loc,void 0,t))}}const hm=(t,n)=>{if(t.type===5){t.content=mm(t.content,n)}else if(t.type===1){const s=Ed(t,"memo");for(let e=0;e<t.props.length;e++){const o=t.props[e];if(o.type===7&&o.name!=="for"){const i=o.exp;const r=o.arg;if(i&&i.type===4&&!(o.name==="on"&&r)&&!(s&&r&&r.type===4&&r.content==="key")){o.exp=mm(i,n,o.name==="slot")}if(r&&r.type===4&&!r.isStatic){o.arg=mm(r,n)}}}}};function mm(e,t,n=false,s=false,o=Object.create(t.identifiers)){{{dm(e,t,n,s)}return e}}const gm=Dh(/^(if|else|else-if)$/,(e,t,l)=>{return vm(e,t,l,(t,n,s)=>{const e=l.parent.children;let o=e.indexOf(t);let i=0;while(o-- >=0){const r=e[o];if(r&&r.type===9){i+=r.branches.length}}return()=>{if(s){t.codegenNode=bm(n,i,l)}else{const e=wm(t.codegenNode);e.alternate=bm(n,i+t.branches.length-1,l)}}})});function vm(t,n,s,o){if(n.name!=="else"&&(!n.exp||!n.exp.content.trim())){const e=n.exp?n.exp.loc:t.loc;s.onError(G(28,n.loc));n.exp=W(`true`,false,e)}if(n.exp){dm(n.exp,s)}if(n.name==="if"){const i=ym(t,n);const r={type:9,loc:bh(t.loc),branches:[i]};s.replaceNode(r);if(o){return o(r,i,true)}}else{const l=s.parent.children;const a=[];let e=l.indexOf(t);while(e-- >=-1){const c=l[e];if(c&&c.type===3){s.removeNode(c);a.unshift(c);continue}if(c&&c.type===2&&!c.content.trim().length){s.removeNode(c);continue}if(c&&c.type===9){if(n.name==="else-if"&&c.branches[c.branches.length-1].condition===void 0){s.onError(G(30,t.loc))}s.removeNode();const i=ym(t,n);if(a.length&&!(s.parent&&s.parent.type===1&&(s.parent.tag==="transition"||s.parent.tag==="Transition"))){i.children=[...a,...i.children]}{const f=i.userKey;if(f){c.branches.forEach(({userKey:e})=>{if(xm(e,f)){s.onError(G(29,i.userKey.loc))}})}}c.branches.push(i);const u=o&&o(c,i,false);jh(i,s);if(u)u();s.currentNode=null}else{s.onError(G(30,t.loc))}break}}}function ym(e,t){const n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:n&&!Ed(e,"for")?e.children:[e],userKey:Nd(e,`key`),isTemplateIf:n}}function bm(e,t,n){if(e.condition){return Zp(e.condition,_m(e,t,n),K(n.helper(mp),['"v-if"',"true"]))}else{return _m(e,t,n)}}function _m(t,e,n){const{helper:s}=n;const o=B(`key`,W(`${e}`,false,Wp,2));const{children:i}=t;const r=i[0];const l=i.length!==1||r.type!==1;if(l){if(i.length===1&&r.type===11){const a=r.codegenNode;Dd(a,o,n);return a}else{let e=64;if(!t.isTemplateIf&&i.filter(e=>e.type!==3).length===1){e|=2048}return Gp(n,s(ip),Xp([o]),i,e,void 0,void 0,true,false,false,t.loc)}}else{const c=r.codegenNode;const a=Bd(c);if(a.type===13){od(a,n)}Dd(a,o,n);return c}}function xm(e,t){if(!e||e.type!==t.type){return false}if(e.type===6){if(e.value.content!==t.value.content){return false}}else{const n=e.exp;const s=t.exp;if(n.type!==s.type){return false}if(n.type!==4||n.isStatic!==s.isStatic||n.content!==s.content){return false}}return true}function wm(e){while(true){if(e.type===19){if(e.alternate.type===19){e=e.alternate}else{return e}}else if(e.type===20){e=e.value}}}const Sm=(e,t,n)=>{const{modifiers:s,loc:o}=e;const i=e.arg;let{exp:r}=e;if(r&&r.type===4&&!r.content.trim()){{r=void 0}}if(!r){if(i.type!==4||!i.isStatic){n.onError(G(52,i.loc));return{props:[B(i,W("",true,o))]}}Cm(e);r=e.exp}if(i.type!==4){i.children.unshift(`(`);i.children.push(`) || ""`)}else if(!i.isStatic){i.content=`${i.content} || ""`}if(s.some(e=>e.content==="camel")){if(i.type===4){if(i.isStatic){i.content=T(i.content)}else{i.content=`${n.helperString(Pp)}(${i.content})`}}else{i.children.unshift(`${n.helperString(Pp)}(`);i.children.push(`)`)}}if(!n.inSSR){if(s.some(e=>e.content==="prop")){km(i,".")}if(s.some(e=>e.content==="attr")){km(i,"^")}}return{props:[B(i,r)]}};const Cm=(e,t)=>{const n=e.arg;const s=T(n.content);e.exp=W(s,false,n.loc)};const km=(e,t)=>{if(e.type===4){if(e.isStatic){e.content=t+e.content}else{e.content=`\`${t}\${${e.content}}\``}}else{e.children.unshift(`'${t}' + (`);e.children.push(`)`)}};const Tm=Dh("for",(p,e,d)=>{const{helper:h,removeHelper:m}=d;return Am(p,e,d,i=>{const r=K(h(Sp),[i.source]);const l=Md(p);const a=Ed(p,"memo");const e=Nd(p,`key`,false,true);const t=e&&e.type===7;if(t&&!e.exp){Cm(e)}let c=e&&(e.type===6?e.value?W(e.value.content,true):void 0:e.exp);const u=e&&c?B(`key`,c):null;const f=i.source.type===4&&i.source.constType>0;const n=f?64:e?128:256;i.codegenNode=Gp(d,h(ip),void 0,r,n,void 0,void 0,true,!f,false,p.loc);return()=>{let e;const{children:t}=i;if(l){p.children.some(e=>{if(e.type===1){const t=Nd(e,"key");if(t){d.onError(G(33,t.loc));return true}}})}const n=t.length!==1||t[0].type!==1;const s=Fd(p)?p:l&&p.children.length===1&&Fd(p.children[0])?p.children[0]:null;if(s){e=s.codegenNode;if(l&&u){Dd(e,u,d)}}else if(n){e=Gp(d,h(ip),u?Xp([u]):void 0,p.children,64,void 0,void 0,true,void 0,false)}else{e=t[0].codegenNode;if(l&&u){Dd(e,u,d)}if(e.isBlock!==!f){if(e.isBlock){m(up);m(sd(d.inSSR,e.isComponent))}else{m(nd(d.inSSR,e.isComponent))}}e.isBlock=!f;if(e.isBlock){h(up);h(sd(d.inSSR,e.isComponent))}else{h(nd(d.inSSR,e.isComponent))}}if(a){const o=Qp(Em(i.parseResult,[W(`_cached`)]));o.body=td([Yp([`const _memo = (`,a.exp,`)`]),Yp([`if (_cached`,...c?[` && _cached.key === `,c]:[],` && ${d.helperString(Hp)}(_cached, _memo)) return _cached`]),Yp([`const _item = `,e]),W(`_item.memo = _memo`),W(`return _item`)]);r.arguments.push(o,W(`_cache`),W(String(d.cached.length)));d.cached.push(null)}else{r.arguments.push(Qp(Em(i.parseResult),e,true))}}})});function Am(e,t,n,s){if(!t.exp){n.onError(G(31,t.loc));return}const o=t.forParseResult;if(!o){n.onError(G(32,t.loc));return}$m(o,n);const{addIdentifiers:i,removeIdentifiers:r,scopes:l}=n;const{source:a,value:c,key:u,index:f}=o;const p={type:11,loc:t.loc,source:a,valueAlias:c,keyAlias:u,objectIndexAlias:f,parseResult:o,children:Md(e)?e.children:[e]};n.replaceNode(p);l.vFor++;const d=s&&s(p);return()=>{l.vFor--;if(d)d()}}function $m(e,t){if(e.finalized)return;{dm(e.source,t);if(e.key){dm(e.key,t,true)}if(e.index){dm(e.index,t,true)}if(e.value){dm(e.value,t,true)}}e.finalized=true}function Em({value:e,key:t,index:n},s=[]){return Nm([e,t,n,...s])}function Nm(e){let t=e.length;while(t--){if(e[t])break}return e.slice(0,t+1).map((e,t)=>e||W(`_`.repeat(t+1),false))}const Om=W(`undefined`,false);const Rm=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const n=Ed(e,"slot");if(n){n.exp;t.scopes.vSlot++;return()=>{t.scopes.vSlot--}}}};const Pm=(e,t,n,s)=>Qp(e,n,false,true,n.length?n[0].loc:s);function Im(e,i,r=Pm){i.helper(Dp);const{children:l,loc:s}=e;const a=[];const c=[];let u=i.scopes.vSlot>0||i.scopes.vFor>0;const f=Ed(e,"slot",true);if(f){const{arg:o,exp:v}=f;if(o&&!md(o)){u=true}a.push(B(o||W("default",true),r(v,void 0,l,s)))}let p=false;let d=false;const h=[];const m=new Set;let g=0;for(let o=0;o<l.length;o++){const y=l[o];let e;if(!Md(y)||!(e=Ed(y,"slot",true))){if(y.type!==3){h.push(y)}continue}if(f){i.onError(G(37,e.loc));break}p=true;const{children:b,loc:_}=y;const{arg:x=W(`default`,true),exp:w,loc:S}=e;let t;if(md(x)){t=x?x.content:`default`}else{u=true}const C=Ed(y,"for");const k=r(w,C,b,_);let n;let s;if(n=Ed(y,"if")){u=true;c.push(Zp(n.exp,Mm(x,k,g++),Om))}else if(s=Ed(y,/^else(-if)?$/,true)){let e=o;let t;while(e--){t=l[e];if(t.type!==3){break}}if(t&&Md(t)&&Ed(t,/^(else-)?if$/)){let e=c[c.length-1];while(e.alternate.type===19){e=e.alternate}e.alternate=s.exp?Zp(s.exp,Mm(x,k,g++),Om):Mm(x,k,g++)}else{i.onError(G(30,s.loc))}}else if(C){u=true;const T=C.forParseResult;if(T){$m(T,i);c.push(K(i.helper(Sp),[T.source,Qp(Em(T),Mm(x,k),true)]))}else{i.onError(G(32,C.loc))}}else{if(t){if(m.has(t)){i.onError(G(38,S));continue}m.add(t);if(t==="default"){d=true}}a.push(B(x,k))}}if(!f){const A=(e,t)=>{const n=r(e,void 0,t,s);return B(`default`,n)};if(!p){a.push(A(void 0,l))}else if(h.length&&h.some(e=>Lm(e))){if(d){i.onError(G(39,h[0].loc))}else{a.push(A(void 0,h))}}}const t=u?2:Fm(e.children)?3:1;let n=Xp(a.concat(B(`_`,W(t+` /* ${me[t]} */`,false))),s);if(c.length){n=K(i.helper(kp),[n,Jp(c)])}return{slots:n,hasDynamicSlots:u}}function Mm(e,t,n){const s=[B(`name`,e),B(`fn`,t)];if(n!=null){s.push(B(`key`,W(String(n),true)))}return Xp(s)}function Fm(t){for(let e=0;e<t.length;e++){const n=t[e];switch(n.type){case 1:if(n.tagType===2||Fm(n.children)){return true}break;case 9:if(Fm(n.branches))return true;break;case 10:case 11:if(Fm(n.children))return true;break}}return false}function Lm(e){if(e.type!==2&&e.type!==12)return true;return e.type===2?!!e.content.trim():Lm(e.content)}const jm=new WeakMap;const Dm=(x,w)=>{return function e(){x=w.currentNode;if(!(x.type===1&&(x.tagType===0||x.tagType===1))){return}const{tag:t,props:n}=x;const s=x.tagType===1;let o=s?Um(x,w):`"${t}"`;const i=z(o)&&o.callee===bp;let r;let l;let a=0;let c;let u;let f;let p=i||o===rp||o===lp||!s&&(t==="svg"||t==="foreignObject"||t==="math");if(n.length>0){const d=Vm(x,w,void 0,s,i);r=d.props;a=d.patchFlag;u=d.dynamicPropNames;const h=d.directives;f=h&&h.length?Jp(h.map(e=>qm(e,w))):void 0;if(d.shouldUseBlock){p=true}}if(x.children.length>0){if(o===ap){p=true;a|=1024;if(x.children.length>1){w.onError(G(46,{start:x.children[0].loc.start,end:x.children[x.children.length-1].loc.end,source:""}))}}const m=s&&o!==rp&&o!==ap;if(m){const{slots:g,hasDynamicSlots:v}=Im(x,w);l=g;if(v){a|=1024}}else if(x.children.length===1&&o!==rp){const y=x.children[0];const b=y.type;const _=b===5||b===8;if(_&&Eh(y,w)===0){a|=1}if(_||b===2){l=y}else{l=x.children}}else{l=x.children}}if(u&&u.length){c=zm(u)}x.codegenNode=Gp(w,o,r,l,a===0?void 0:a,c,f,!!p,false,s,x.loc)}};function Um(e,t,n=false){let{tag:s}=e;const o=Wm(s);const i=Nd(e,"is",false,true);if(i){if(o||false){let e;if(i.type===6){e=i.value&&W(i.value.content,true)}else{e=i.exp;if(!e){e=W(`is`,false,i.arg.loc)}}if(e){return K(t.helper(bp),[e])}}else if(i.type===6&&i.value.content.startsWith("vue:")){s=i.value.content.slice(4)}}const r=gd(s)||t.isBuiltInComponent(s);if(r){if(!n)t.helper(r);return r}t.helper(yp);t.components.add(s);return Vd(s,`component`)}function Vm(t,o,n=t.props,i,F,s=false){const{tag:r,loc:l,children:L}=t;let a=[];const c=[];const u=[];const f=L.length>0;let p=false;let d=0;let h=false;let m=false;let g=false;let v=false;let y=false;let j=false;const b=[];const _=e=>{if(a.length){c.push(Xp(Bm(a),l));a=[]}if(e)c.push(e)};const x=()=>{if(o.scopes.vFor>0){a.push(B(W("ref_for",true),W("true")))}};const D=({key:e,value:t})=>{if(md(e)){const n=e.content;const s=J(n);if(s&&(!i||F)&&n.toLowerCase()!=="onclick"&&n!=="onUpdate:modelValue"&&!re(n)){v=true}if(s&&re(n)){j=true}if(s&&t.type===14){t=t.arguments[0]}if(t.type===20||(t.type===4||t.type===8)&&Eh(t,o)>0){return}if(n==="ref"){h=true}else if(n==="class"){m=true}else if(n==="style"){g=true}else if(n!=="key"&&!b.includes(n)){b.push(n)}if(i&&(n==="class"||n==="style")&&!b.includes(n)){b.push(n)}}else{y=true}};for(let e=0;e<n.length;e++){const S=n[e];if(S.type===6){const{loc:C,name:k,nameLoc:U,value:T}=S;let e=true;if(k==="ref"){h=true;x()}if(k==="is"&&(Wm(r)||T&&T.content.startsWith("vue:")||false)){continue}a.push(B(W(k,true,U),W(T?T.content:"",e,T?T.loc:C)))}else{const{name:k,arg:A,exp:$,loc:C,modifiers:V}=S;const E=k==="bind";const N=k==="on";if(k==="slot"){if(!i){o.onError(G(40,C))}continue}if(k==="once"||k==="memo"){continue}if(k==="is"||E&&Od(A,"is")&&(Wm(r)||false)){continue}if(N&&s){continue}if(E&&Od(A,"key")||N&&f&&Od(A,"vue:before-update")){p=true}if(E&&Od(A,"ref")){x()}if(!A&&(E||N)){y=true;if($){if(E){x();_();c.push($)}else{_({type:14,loc:C,callee:o.helper(Rp),arguments:i?[$]:[$,`true`]})}}else{o.onError(G(E?34:35,C))}continue}if(E&&V.some(e=>e.content==="prop")){d|=32}const O=o.directiveTransforms[k];if(O){const{props:R,needRuntime:P}=O(S,t,o);!s&&R.forEach(D);if(N&&A&&!md(A)){_(Xp(R,l))}else{a.push(...R)}if(P){u.push(S);if(oe(P)){jm.set(S,P)}}}else if(!le(k)){u.push(S);if(f){p=true}}}}let w=void 0;if(c.length){_();if(c.length>1){w=K(o.helper(Ap),c,l)}else{w=c[0]}}else if(a.length){w=Xp(Bm(a),l)}if(y){d|=16}else{if(m&&!i){d|=2}if(g&&!i){d|=4}if(b.length){d|=8}if(v){d|=32}}if(!p&&(d===0||d===32)&&(h||j||u.length>0)){d|=512}if(!o.inSSR&&w){switch(w.type){case 15:let t=-1;let n=-1;let s=false;for(let e=0;e<w.properties.length;e++){const M=w.properties[e].key;if(md(M)){if(M.content==="class"){t=e}else if(M.content==="style"){n=e}}else if(!M.isHandlerKey){s=true}}const e=w.properties[t];const I=w.properties[n];if(!s){if(e&&!md(e.value)){e.value=K(o.helper($p),[e.value])}if(I&&(g||I.value.type===4&&I.value.content.trim()[0]===`[`||I.value.type===17)){I.value=K(o.helper(Ep),[I.value])}}else{w=K(o.helper(Np),[w])}break;case 14:break;default:w=K(o.helper(Np),[K(o.helper(Op),[w])]);break}}return{props:w,directives:u,patchFlag:d,dynamicPropNames:b,shouldUseBlock:p}}function Bm(t){const n=new Map;const s=[];for(let e=0;e<t.length;e++){const o=t[e];if(o.key.type===8||!o.key.isStatic){s.push(o);continue}const i=o.key.content;const r=n.get(i);if(r){if(i==="style"||i==="class"||J(i)){Hm(r,o)}}else{n.set(i,o);s.push(o)}}return s}function Hm(e,t){if(e.value.type===17){e.value.elements.push(t.value)}else{e.value=Jp([e.value,t.value],e.loc)}}function qm(e,t){const n=[];const s=jm.get(e);if(s){n.push(t.helperString(s))}else{{t.helper(_p);t.directives.add(e.name);n.push(Vd(e.name,`directive`))}}const{loc:o}=e;if(e.exp)n.push(e.exp);if(e.arg){if(!e.exp){n.push(`void 0`)}n.push(e.arg)}if(Object.keys(e.modifiers).length){if(!e.arg){if(!e.exp){n.push(`void 0`)}n.push(`void 0`)}const i=W(`true`,false,o);n.push(Xp(e.modifiers.map(e=>B(e,i)),o))}return Jp(n,e.loc)}function zm(n){let s=`[`;for(let e=0,t=n.length;e<t;e++){s+=JSON.stringify(n[e]);if(e<t-1)s+=", "}return s+`]`}function Wm(e){return e==="component"||e==="Component"}const Km=(t,n)=>{if(Fd(t)){const{children:s,loc:o}=t;const{slotName:i,slotProps:r}=Gm(t,n);const l=[n.prefixIdentifiers?`_ctx.$slots`:`$slots`,i,"{}","undefined","true"];let e=2;if(r){l[2]=r;e=3}if(s.length){l[3]=Qp([],s,false,false,o);e=4}if(n.scopeId&&!n.slotted){e=5}l.splice(e);t.codegenNode=K(n.helper(Cp),l,o)}};function Gm(n,e){let s=`"default"`;let t=void 0;const o=[];for(let t=0;t<n.props.length;t++){const e=n.props[t];if(e.type===6){if(e.value){if(e.name==="name"){s=JSON.stringify(e.value.content)}else{e.name=T(e.name);o.push(e)}}}else{if(e.name==="bind"&&Od(e.arg,"name")){if(e.exp){s=e.exp}else if(e.arg&&e.arg.type===4){const i=T(e.arg.content);s=e.exp=W(i,false,e.arg.loc)}}else{if(e.name==="bind"&&e.arg&&md(e.arg)){e.arg.content=T(e.arg.content)}o.push(e)}}}if(o.length>0){const{props:r,directives:l}=Vm(n,e,o,false,false);t=r;if(l.length){e.onError(G(36,l[0].loc))}}return{slotName:s,slotProps:t}}const Jm=(e,t,n,s)=>{const{loc:o,modifiers:i,arg:r}=e;if(!e.exp&&!i.length){n.onError(G(35,o))}let l;if(r.type===4){if(r.isStatic){let e=r.content;if(e.startsWith("vnode")){n.onError(G(51,r.loc))}if(e.startsWith("vue:")){e=`vnode-${e.slice(4)}`}const f=t.tagType!==0||e.startsWith("vnode")||!/[A-Z]/.test(e)?D(T(e)):`on:${e}`;l=W(f,true,r.loc)}else{l=Yp([`${n.helperString(Mp)}(`,r,`)`])}}else{l=r;l.children.unshift(`${n.helperString(Mp)}(`);l.children.push(`)`)}let a=e.exp;if(a&&!a.content.trim()){a=void 0}let c=n.cacheHandlers&&!a&&!n.inVOnce;if(a){const p=Cd(a);const d=!(p||Ad(a));const h=a.content.includes(`;`);{dm(a,n,false,h)}if(d||c&&p){a=Yp([`${d?`$event`:`${``}(...args)`} => ${h?`{`:`(`}`,a,h?`}`:`)`])}}let u={props:[B(l,a||W(`() => {}`,false,o))]};if(s){u=s(u)}if(c){u.props[0].value=n.cache(u.props[0].value)}u.props.forEach(e=>e.key.isHandlerKey=true);return u};const Xm=(r,l)=>{if(r.type===0||r.type===1||r.type===11||r.type===10){return()=>{const n=r.children;let s=void 0;let e=false;for(let t=0;t<n.length;t++){const o=n[t];if(Pd(o)){e=true;for(let e=t+1;e<n.length;e++){const i=n[e];if(Pd(i)){if(!s){s=n[t]=Yp([o],o.loc)}s.children.push(` + `,i);n.splice(e,1);e--}else{s=void 0;break}}}}if(!e||n.length===1&&(r.type===0||r.type===1&&r.tagType===0&&!r.props.find(e=>e.type===7&&!l.directiveTransforms[e.name])&&true)){return}for(let e=0;e<n.length;e++){const o=n[e];if(Pd(o)||o.type===8){const t=[];if(o.type!==2||o.content!==" "){t.push(o)}if(!l.ssr&&Eh(o,l)===0){t.push(1+` /* ${he[1]} */`)}n[e]={type:12,content:o,loc:o.loc,codegenNode:K(l.helper(gp),t)}}}}}};const Ym=new WeakSet;const Qm=(e,t)=>{if(e.type===1&&Ed(e,"once",true)){if(Ym.has(e)||t.inVOnce||t.inSSR){return}Ym.add(e);t.inVOnce=true;t.helper(Fp);return()=>{t.inVOnce=false;const e=t.currentNode;if(e.codegenNode){e.codegenNode=t.cache(e.codegenNode,true,true)}}}};const Zm=(e,t,n)=>{const{exp:s,arg:o}=e;if(!s){n.onError(G(41,e.loc));return eg()}const i=s.loc.source.trim();const r=s.type===4?s.content:i;const l=n.bindingMetadata[i];if(l==="props"||l==="props-aliased"){n.onError(G(44,s.loc));return eg()}const a=false;if(!r.trim()||!Cd(s)&&!a){n.onError(G(42,s.loc));return eg()}const c=o?o:W("modelValue",true);const u=o?md(o)?`onUpdate:${T(o.content)}`:Yp(['"onUpdate:" + ',o]):`onUpdate:modelValue`;let f;const p=n.isTS?`($event: any)`:`$event`;{f=Yp([`${p} => ((`,s,`) = $event)`])}const d=[B(c,e.exp),B(u,f)];if(e.modifiers.length&&t.tagType===1){const h=e.modifiers.map(e=>e.content).map(e=>(yd(e)?e:JSON.stringify(e))+`: true`).join(`, `);const m=o?md(o)?`${o.content}Modifiers`:Yp([o,' + "Modifiers"']):`modelModifiers`;d.push(B(m,W(`{ ${h} }`,false,e.loc,2)))}return eg(d)};function eg(e=[]){return{props:e}}const tg=new WeakSet;const ng=(t,n)=>{if(t.type===1){const s=Ed(t,"memo");if(!s||tg.has(t)){return}tg.add(t);return()=>{const e=t.codegenNode||n.currentNode.codegenNode;if(e&&e.type===13){if(t.tagType!==1){od(e,n)}t.codegenNode=K(n.helper(Bp),[s.exp,Qp(void 0,e),`_cache`,String(n.cached.length)]);n.cached.push(null)}}}};function sg(e){return[[Qm,gm,ng,Tm,...[],...[hm],Km,Dm,Rm,Xm],{on:Jm,bind:Sm,model:Zm}]}function og(e,t={}){const n=t.onError||pd;const s=t.mode==="module";{if(t.prefixIdentifiers===true){n(G(47))}else if(s){n(G(48))}}const o=false;if(t.cacheHandlers){n(G(49))}if(t.scopeId&&!s){n(G(50))}const i=E({},t,{prefixIdentifiers:o});const r=k(e)?kh(e,i):e;const[l,a]=sg();Mh(r,E({},i,{nodeTransforms:[...l,...t.nodeTransforms||[]],directiveTransforms:E({},a,t.directiveTransforms||{})}));return Hh(r,i)}const ig=()=>({props:[]});const rg=Symbol(`vModelRadio`);const lg=Symbol(`vModelCheckbox`);const ag=Symbol(`vModelText`);const cg=Symbol(`vModelSelect`);const ug=Symbol(`vModelDynamic`);const fg=Symbol(`vOnModifiersGuard`);const pg=Symbol(`vOnKeysGuard`);const dg=Symbol(`vShow`);const hg=Symbol(`Transition`);const mg=Symbol(`TransitionGroup`);zp({[rg]:`vModelRadio`,[lg]:`vModelCheckbox`,[ag]:`vModelText`,[cg]:`vModelSelect`,[ug]:`vModelDynamic`,[fg]:`withModifiers`,[pg]:`withKeys`,[dg]:`vShow`,[hg]:`Transition`,[mg]:`TransitionGroup`});let gg;function vg(e,t=false){if(!gg){gg=document.createElement("div")}if(t){gg.innerHTML=`<div foo="${e.replace(/"/g,""")}">`;return gg.children[0].getAttribute("foo")}else{gg.innerHTML=e;return gg.textContent}}const yg={parseMode:"html",isVoidTag:Me,isNativeTag:e=>Re(e)||Pe(e)||Ie(e),isPreTag:e=>e==="pre",isIgnoreNewlineTag:e=>e==="pre"||e==="textarea",decodeEntities:vg,isBuiltInComponent:e=>{if(e==="Transition"||e==="transition"){return hg}else if(e==="TransitionGroup"||e==="transition-group"){return mg}},getNamespace(e,t,n){let s=t?t.ns:n;if(t&&s===2){if(t.tag==="annotation-xml"){if(e==="svg"){return 1}if(t.props.some(e=>e.type===6&&e.name==="encoding"&&e.value!=null&&(e.value.content==="text/html"||e.value.content==="application/xhtml+xml"))){s=0}}else if(/^m(?:[ions]|text)$/.test(t.tag)&&e!=="mglyph"&&e!=="malignmark"){s=0}}else if(t&&s===1){if(t.tag==="foreignObject"||t.tag==="desc"||t.tag==="title"){s=0}}if(s===0){if(e==="svg"){return 1}if(e==="math"){return 2}}return s}};const bg=n=>{if(n.type===1){n.props.forEach((e,t)=>{if(e.type===6&&e.name==="style"&&e.value){n.props[t]={type:7,name:`bind`,arg:W(`style`,true,e.loc),exp:_g(e.value.content,e.loc),modifiers:[],loc:e.loc}}})}};const _g=(e,t)=>{const n=Ce(e);return W(JSON.stringify(n),false,t,3)};function xg(e,t){return G(e,t,wg)}const wg={[53]:`v-html is missing expression.`,[54]:`v-html will override element children.`,[55]:`v-text is missing expression.`,[56]:`v-text will override element children.`,[57]:`v-model can only be used on <input>, <textarea> and <select> elements.`,[58]:`v-model argument is not supported on plain elements.`,[59]:`v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.`,[60]:`Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.`,[61]:`v-show is missing expression.`,[62]:`<Transition> expects exactly one child element or component.`,[63]:`Tags with side effect (<script> and <style>) are ignored in client component templates.`};const Sg=(e,t,n)=>{const{exp:s,loc:o}=e;if(!s){n.onError(xg(53,o))}if(t.children.length){n.onError(xg(54,o));t.children.length=0}return{props:[B(W(`innerHTML`,true,o),s||W("",true))]}};const Cg=(e,t,n)=>{const{exp:s,loc:o}=e;if(!s){n.onError(xg(55,o))}if(t.children.length){n.onError(xg(56,o));t.children.length=0}return{props:[B(W(`textContent`,true),s?Eh(s,n)>0?s:K(n.helperString(Tp),[s],o):W("",true))]}};const kg=(n,s,o)=>{const i=Zm(n,s,o);if(!i.props.length||s.tagType===1){return i}if(n.arg){o.onError(xg(58,n.arg.loc))}function r(){const e=Ed(s,"bind");if(e&&Od(e.arg,"value")){o.onError(xg(60,e.loc))}}const{tag:l}=s;const a=o.isCustomElement(l);if(l==="input"||l==="textarea"||l==="select"||a){let e=ag;let t=false;if(l==="input"||a){const c=Nd(s,`type`);if(c){if(c.type===7){e=ug}else if(c.value){switch(c.value.content){case"radio":e=rg;break;case"checkbox":e=lg;break;case"file":t=true;o.onError(xg(59,n.loc));break;default:r();break}}}else if(Rd(s)){e=ug}else{r()}}else if(l==="select"){e=cg}else{r()}if(!t){i.needRuntime=o.helper(e)}}else{o.onError(xg(57,n.loc))}i.props=i.props.filter(e=>!(e.key.type===4&&e.key.content==="modelValue"));return i};const Tg=t(`passive,once,capture`);const Ag=t(`stop,prevent,self,ctrl,shift,alt,meta,exact,middle`);const $g=t("left,right");const Eg=t(`onkeyup,onkeydown,onkeypress`);const Ng=(t,n,e,s)=>{const o=[];const i=[];const r=[];for(let e=0;e<n.length;e++){const l=n[e].content;if(Tg(l)){r.push(l)}else{if($g(l)){if(md(t)){if(Eg(t.content.toLowerCase())){o.push(l)}else{i.push(l)}}else{o.push(l);i.push(l)}}else{if(Ag(l)){i.push(l)}else{o.push(l)}}}}return{keyModifiers:o,nonKeyModifiers:i,eventOptionModifiers:r}};const Og=(e,t)=>{const n=md(e)&&e.content.toLowerCase()==="onclick";return n?W(t,true):e.type!==4?Yp([`(`,e,`) === "onClick" ? "${t}" : (`,e,`)`]):e};const Rg=(a,e,c)=>{return Jm(a,e,c,e=>{const{modifiers:t}=a;if(!t.length)return e;let{key:n,value:s}=e.props[0];const{keyModifiers:o,nonKeyModifiers:i,eventOptionModifiers:r}=Ng(n,t,c,a.loc);if(i.includes("right")){n=Og(n,`onContextmenu`)}if(i.includes("middle")){n=Og(n,`onMouseup`)}if(i.length){s=K(c.helper(fg),[s,JSON.stringify(i)])}if(o.length&&(!md(n)||Eg(n.content.toLowerCase()))){s=K(c.helper(pg),[s,JSON.stringify(o)])}if(r.length){const l=r.map(j).join("");n=md(n)?W(`${n.content}${l}`,true):Yp([`(`,n,`) + "${l}"`])}return{props:[B(n,s)]}})};const Pg=(e,t,n)=>{const{exp:s,loc:o}=e;if(!s){n.onError(xg(61,o))}return{props:[],needRuntime:n.helper(dg)}};const Ig=(n,e)=>{if(n.type===1&&n.tagType===1){const t=e.isBuiltInComponent(n.tag);if(t===hg){return()=>{if(!n.children.length){return}if(Mg(n)){e.onError(xg(62,{start:n.children[0].loc.start,end:n.children[n.children.length-1].loc.end,source:""}))}const t=n.children[0];if(t.type===1){for(const e of t.props){if(e.type===7&&e.name==="show"){n.props.push({type:6,name:"persisted",nameLoc:n.loc,value:void 0,loc:n.loc})}}}}}}};function Mg(e){const t=e.children=e.children.filter(e=>e.type!==3&&!(e.type===2&&!e.content.trim()));const n=t[0];return t.length!==1||n.type===11||n.type===9&&n.branches.some(Mg)}const Fg=(e,t)=>{if(e.type===1&&e.tagType===0&&(e.tag==="script___"||e.tag==="style___")){t.onError(xg(63,e.loc));t.removeNode()}};function Lg(e,t){if(e in Ug){return Ug[e].has(t)}if(t in Vg){return Vg[t].has(e)}if(e in Bg){if(Bg[e].has(t))return false}if(t in Hg){if(Hg[t].has(e))return false}return true}const jg=new Set(["h1","h2","h3","h4","h5","h6"]);const Dg=new Set([]);const Ug={head:new Set(["base","basefront","bgsound","link","meta","title","noscript","noframes","style","script","template"]),optgroup:new Set(["option"]),select:new Set(["optgroup","option","hr"]),table:new Set(["caption","colgroup","tbody","tfoot","thead"]),tr:new Set(["td","th"]),colgroup:new Set(["col"]),tbody:new Set(["tr"]),thead:new Set(["tr"]),tfoot:new Set(["tr"]),script:Dg,iframe:Dg,option:Dg,textarea:Dg,style:Dg,title:Dg};const Vg={html:Dg,body:new Set(["html"]),head:new Set(["html"]),td:new Set(["tr"]),colgroup:new Set(["table"]),caption:new Set(["table"]),tbody:new Set(["table"]),tfoot:new Set(["table"]),col:new Set(["colgroup"]),th:new Set(["tr"]),thead:new Set(["table"]),tr:new Set(["tbody","thead","tfoot"]),dd:new Set(["dl","div"]),dt:new Set(["dl","div"]),figcaption:new Set(["figure"]),summary:new Set(["details"]),area:new Set(["map"])};const Bg={p:new Set(["address","article","aside","blockquote","center","details","dialog","dir","div","dl","fieldset","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","li","main","nav","menu","ol","p","pre","section","table","ul"]),svg:new Set(["b","blockquote","br","code","dd","div","dl","dt","em","embed","h1","h2","h3","h4","h5","h6","hr","i","img","li","menu","meta","ol","p","pre","ruby","s","small","span","strong","sub","sup","table","u","ul","var"])};const Hg={a:new Set(["a"]),button:new Set(["button"]),dd:new Set(["dd","dt"]),dt:new Set(["dd","dt"]),form:new Set(["form"]),li:new Set(["li"]),h1:jg,h2:jg,h3:jg,h4:jg,h5:jg,h6:jg};const qg=(e,t)=>{if(e.type===1&&e.tagType===0&&t.parent&&t.parent.type===1&&t.parent.tagType===0&&!Lg(t.parent.tag,e.tag)){const n=new SyntaxError(`<${e.tag}> cannot be child of <${t.parent.tag}>, according to HTML specifications. This can cause hydration errors or potentially disrupt future functionality.`);n.loc=e.loc;t.onWarn(n)}};const zg=[bg,...[Ig,qg]];const Wg={cloak:ig,html:Sg,text:Cg,model:kg,on:Rg,show:Pg};function Kg(e,t={}){return og(e,E({},yg,t,{nodeTransforms:[Fg,...zg,...t.nodeTransforms||[]],directiveTransforms:E({},Wg,t.directiveTransforms||{}),transformHoist:null}))}{op()}const Gg=Object.create(null);function Jg(o,e){if(!k(o)){if(o.nodeType){o=o.innerHTML}else{u(`invalid template option: `,o);return Y}}const t=de(o,e);const n=Gg[t];if(n){return n}if(o[0]==="#"){const a=document.querySelector(o);if(!a){u(`Template element not found or is empty: ${o}`)}o=a?a.innerHTML:``}const s=E({hoistStatic:true,onError:r,onWarn:e=>r(e,true)},e);if(!s.isCustomElement&&typeof customElements!=="undefined"){s.isCustomElement=e=>!!customElements.get(e)}const{code:i}=Kg(o,s);function r(e,t=false){const n=t?e.message:`Template compilation error: ${e.message}`;const s=e.loc&&be(o,e.loc.start.offset,e.loc.end.offset);u(s?`${n}
|
|
30
|
-
${s}`:n)}const l=new Function(i)();l._rc=true;return Gg[t]=l}Sc(Jg);e.BaseTransition=Do;e.BaseTransitionPropsValidators=Mo;e.Comment=te;e.DeprecationTypes=Kc;e.EffectScope=et;e.ErrorCodes=fs;e.ErrorTypeStrings=Vc;e.Fragment=ee;e.KeepAlive=Ai;e.ReactiveEffect=it;e.Static=Na;e.Suspense=va;e.Teleport=$o;e.Text=Ea;e.TrackOpTypes=Wn;e.Transition=au;e.TransitionGroup=bf;e.TriggerOpTypes=Kn;e.VueElement=cf;e.assertNumber=us;e.callWithAsyncErrorHandling=hs;e.callWithErrorHandling=ds;e.camelize=T;e.capitalize=j;e.cloneVNode=Xa;e.compatUtils=Wc;e.compile=Jg;e.computed=Mc;e.createApp=Yf;e.createBlock=Da;e.createCommentVNode=ec;e.createElementBlock=ja;e.createElementVNode=Ka;e.createHydrationRenderer=Il;e.createPropsRestProxy=Er;e.createRenderer=Pl;e.createSSRApp=Qf;e.createSlots=nr;e.createStaticVNode=Za;e.createTextVNode=Qa;e.createVNode=ne;e.customRef=jn;e.defineAsyncComponent=Si;e.defineComponent=Wo;e.defineCustomElement=rf;e.defineEmits=vr;e.defineExpose=yr;e.defineModel=xr;e.defineOptions=br;e.defineProps=gr;e.defineSSRCustomElement=lf;e.defineSlots=_r;e.devtools=Bc;e.effect=yt;e.effectScope=tt;e.getCurrentInstance=cc;e.getCurrentScope=nt;e.getCurrentWatcher=Yn;e.getTransitionRawChildren=zo;e.guardReactiveProps=Ja;e.h=Fc;e.handleError=ms;e.hasInjectionContext=Zr;e.hydrate=Xf;e.hydrateOnIdle=gi;e.hydrateOnInteraction=_i;e.hydrateOnMediaQuery=bi;e.hydrateOnVisible=yi;e.initCustomFormatter=Lc;e.initDirectivesForSSR=sp;e.inject=Qr;e.isMemoSame=Dc;e.isProxy=kn;e.isReactive=Sn;e.isReadonly=Cn;e.isRef=A;e.isRuntimeOnly=Cc;e.isShallow=C;e.isVNode=Ua;e.markRaw=Tn;e.mergeDefaults=Ar;e.mergeModels=$r;e.mergeProps=oc;e.nextTick=ks;e.normalizeClass=Te;e.normalizeProps=Ae;e.normalizeStyle=_e;e.onActivated=Ei;e.onBeforeMount=Li;e.onBeforeUnmount=Vi;e.onBeforeUpdate=Di;e.onDeactivated=Ni;e.onErrorCaptured=Wi;e.onMounted=ji;e.onRenderTracked=zi;e.onRenderTriggered=qi;e.onScopeDispose=st;e.onServerPrefetch=Hi;e.onUnmounted=Bi;e.onUpdated=Ui;e.onWatcherCleanup=Qn;e.openBlock=Pa;e.popScopeId=fo;e.provide=Yr;e.proxyRefs=Fn;e.pushScopeId=uo;e.queuePostFlushCb=Es;e.reactive=yn;e.readonly=_n;e.ref=$n;e.registerRuntimeCompiler=Sc;e.render=Jf;e.renderList=tr;e.renderSlot=sr;e.resolveComponent=Ji;e.resolveDirective=Qi;e.resolveDynamicComponent=Yi;e.resolveFilter=zc;e.resolveTransitionHooks=Vo;e.setBlockTracking=Fa;e.setDevtoolsHook=Hc;e.setTransitionHooks=qo;e.shallowReactive=bn;e.shallowReadonly=xn;e.shallowRef=En;e.ssrContextKey=Hl;e.ssrUtils=qc;e.stop=bt;e.toDisplayString=Je;e.toHandlerKey=D;e.toHandlers=ir;e.toRaw=v;e.toRef=Bn;e.toRefs=Dn;e.toValue=In;e.transformVNodeArgs=Ha;e.triggerRef=Rn;e.unref=Pn;e.useAttrs=Cr;e.useCssModule=pf;e.useCssVars=Eu;e.useHost=uf;e.useId=Ko;e.useModel=Ql;e.useSSRContext=ql;e.useShadowRoot=ff;e.useSlots=Sr;e.useTemplateRef=Xo;e.useTransitionState=Po;e.vModelCheckbox=Ef;e.vModelDynamic=Ff;e.vModelRadio=Of;e.vModelSelect=Rf;e.vModelText=$f;e.vShow=Tu;e.version=Uc;e.warn=u;e.watch=Gl;e.watchEffect=zl;e.watchPostEffect=Wl;e.watchSyncEffect=Kl;e.withAsyncContext=Nr;e.withCtx=ho;e.withDefaults=wr;e.withDirectives=go;e.withKeys=Hf;e.withMemo=jc;e.withModifiers=Vf;e.withScopeId=po;return e}({});window.Vue=Vue;function build(options,exports){if(typeof exports=="undefined"){exports={}}var _options={resolveModulesParallelly:true,removeStyleWhenUnmount:false,preloadCss:true,mobile:function(){return false},httpGet:function(e){return fetch(e)},httpGetSync:function(e){if(useRelativePath){if(e.length&&e[0]=="/"){e=e.substr(1)}}var t=new XMLHttpRequest;t.open("get",e,false);t.send();return t.responseText},onNotFound:function(e,t){if(e.indexOf("/404")==0){throw"No not-found template found"}if(t){return Redirect("/404?"+_serializeOptionsToUrl(t))}else{return Redirect("/404")}},reuseContainerActiveView(e){return true},callCreatedWhenReuseContainerActiveView(e){return true},callMountedWhenReuseContainerActiveView(e){return true},callUnmountedWhenReuseContainerActiveView(e){return true},resetDataWhenReuseContainerActiveView(e){return true},generateTitle(e){return e.join(" - ")}};_combineObject(options,_options);var _cache={};var _css={};var _cssCloakInjected=false;function _ensureCssCloakStyle(){if(_cssCloakInjected)return;_cssCloakInjected=true;var e=document.createElement("style");e.textContent="._pome-css-cloak{visibility:hidden!important}";document.head.appendChild(e)}function _httpCached(e){return!!_cache[e]}function _httpGet(n){if(_cache[n]){return Promise.resolve(_cache[n])}var e=n;if(_options.version){if(n.indexOf("?")>0){e+="&"}else{e+="?"}e+="v="+_options.version}return _options.httpGet(e).then(function(e){if(e.status>300||e.status<200){return Promise.reject(e)}var t=e.text();_cache[n]=t;return Promise.resolve(t)}).catch(function(e){Promise.reject(e)})}function _httpExist(e){return _httpGet(e).then(function(){return Promise.resolve(true)}).catch(function(){return Promise.resolve(false)})}function _serializeOptionsToUrl(e){var t=Object.getOwnPropertyNames(e);var n="";for(var s=0;s<t.length;++s){n+=encodeURIComponent(t[s])+"="+encodeURIComponent(e[t[s]])+"&"}if(n[n.length-1]==="&"){n=n.substr(0,n.length-1)}return n}function _addHyphenBeforeUppercase(e){var t=e.replace(/([A-Z])/g,"-$1").toLowerCase();while(t.length&&t[0]=="-"){t=t.substr(1)}return t}function _sanitizeTemplate(e){if(!e instanceof String){return e}var t=[...e.matchAll(/(?<=:)[a-zA-Z0-9-_]{1,}(?=\=")/g)];for(var n=0;n<t.length;++n){var s=t[n].toString();var o=_addHyphenBeforeUppercase(s);e=e.replaceAll(":"+s+"=",":"+o+"=")}t=[...e.matchAll(/(?<=@)[a-zA-Z0-9-_]{1,}(?=\=")/g)];for(var n=0;n<t.length;++n){var s=t[n].toString();var o=_addHyphenBeforeUppercase(s);e=e.replaceAll("@"+s+"=","@"+o+"=")}return e}var _root=null;function root(){return _root}function _findRoot(e){var t=exports.root();if(t)return t;if(!e)return null;var n=e;while(n.parent){n=n.parent}return n.proxy||n}exports._rules=[];function useRoutes(e){var t=_options.httpGetSync(e);t=JSON.parse(t);if(!exports._rules){exports._rules={}}_combineObject(t,exports._rules)}function _combineObject(e,t){if(!e){return}var n=Object.getOwnPropertyNames(e);for(var s=0;s<n.length;++s){t[n[s]]=e[n[s]]}}function _chainHook(e,t,s){var o=e[t]||function(){};e[t]=function(){var t=this;var e=o.call(t);var n=e&&e instanceof Promise?e:Promise.resolve();return n.then(function(){var e;try{e=s.call(t)}catch(e){console.error(e)}return e&&e instanceof Promise?e:Promise.resolve()})}}function _hookSetup(s,o){var i=s.setup||function(){};s.setup=function(e,t){i(e,t);var n=Vue.getCurrentInstance();n.$app=exports;if(o){o.call(this,n,s)}if(!n.$root){n.$root=_findRoot(n)}if(!n.$parent){n.$parent=n.parent&&n.parent.proxy||n.$root}}}function _hookData(e,t){var n=e.data||function(){return{}};e.data=function(){var e=n.call(this,exports);if(t){_combineObject(t,e);_parseQueryString(e)}return e}}function _createRequire(s){if(!PomeloModule)return undefined;return function(e,t,n){t=t||PomeloModule.getContainingFolder(s);return PomeloModule.require(e,t,n)}}function _getQueryString(){var e=window.location.search;if(window.location.hash.indexOf("?")>0){var t=window.location.hash.substr(window.location.hash.indexOf("?"));if(e){e+="&"+t.substr(1)}else{e=t}}return e}function _parseQueryString(e){var t=_getQueryString();if(!t){return}var n=t;if(n[0]=="?"){n=n.substr(1)}var s=n.split("&");for(var o=0;o<s.length;++o){var i=s[o].split("=");var r=decodeURIComponent(i[0]);var l=decodeURIComponent(i[1]);_fillObjectField(r,l,e)}}function _resolveModules(e,n){if(!e){return Promise.resolve()}if(_options.resolveModulesParallelly){var t=[];for(var s=0;s<e.length;++s){t.push(LoadScript(parseMacroPath(n,e[s])))}return Promise.all(t)}else{var o=Promise.resolve(null);var i=function(t){return function(e){return LoadScript(parseMacroPath(n,t))}};for(var s=0;s<e.length;++s){var r=e[s];o=o.then(i(r))}return o}}function _buildApp(url,params,mobile,parent){var componentObject={};return _httpGet(url+".js").then(function(js){var Page=function(e){componentObject=e};var require=_createRequire(url);eval(js+"\r\n//# sourceURL="+url+".js");hookMountedAndUnmounted(componentObject,url+(mobile?".m":""));return _resolveModules(componentObject.modules||[],url).then(function(){return Promise.resolve(componentObject)})}).then(function(i){var e=null;if(mobile){e=_httpExist(url+".m.html").then(function(e){return _httpGet(url+(e?".m.html":".html"))})}else{e=_httpGet(url+".html")}return e.then(function(e){if(!i.template){i.template=_sanitizeTemplate(e)}if(i.delayOpen){var t=(new DOMParser).parseFromString(i.template,"text/html");var n=t.querySelector("body").children;for(var s=0;s<n.length;++s){if(n[s].tagName.toUpperCase()!="DIV"){continue}if(n[s].getAttribute("v-if")!=null||n[s].getAttribute("v-else-if")||n[s].getAttribute("v-else")){continue}n[s].classList.add("_pome-ui-opened");n[s].classList.add("_pome-ui-opening")}var o=e.indexOf("<html")>=0?(new XMLSerializer).serializeToString(t):t.querySelector("body").innerHTML;i.template=o}_patchComponent(url,i);return Promise.resolve(i)})}).then(function(a){_hookSetup(a,function(e,t){e.$parent=parent||_findRoot(e);e.$root=_findRoot(e)||parent;e.$view=url;e.$data=t.data||function(){return{}};e.$created=t.created||function(){};e.$mounted=t.mounted||function(){};e.$unmounted=t.unmounted||function(){};e.$delayClose=t.delayClose||0;_attachContainer(e)});_hookData(a,params);return _resolveModules(a.modules,url).then(function(){var e=a.components||[];var r=a.directives||[];var l;var t=Promise.resolve();var n=url+(mobile?".m":"");if(_options.preloadCss&&a.style){t=appendCssReferenceAsync(n,a.style)}return Promise.all([t,_loadComponents(e,url)]).then(function(e){var t=e[1];var n=Vue.createApp(a);for(var s=0;s<t.length;++s){var o=t[s];n.component(o.name,o.options)}var i=n.mount||function(){};n.mount=function(e){n.proxy=i(e);return n.proxy};l=n;return _loadDirectives(r,url)}).then(function(e){for(var t=0;t<e.length;++t){var n=e[t];l.directive(n.name,n.options)}return Promise.resolve(l)})})})}function _replace(e,t,n){var s=e.indexOf(t);if(s<0){return e}var o=e.substr(0,s)+n+e.substr(s+t.length);return o}function sleep(t){return new Promise(function(e){setTimeout(function(){e()},t)})}function yield(){return sleep(0)}function _attachContainer(s){if(!s){console.warn("Invalid view model")}if(!s.$containers){s.$containers=[]}if(!s.$containers){s.$containers=[]}var n=s.$containers;s.$container=function(t){var e=n.filter(e=>e.selector==t)[0];if(!e){e={element:document.querySelector(t),selector:t,open:function(e,l){var t=_options.mobile();var a=null;if(s.proxy){a=s.proxy}if(s.$&&s.$.proxy){a=s.$.proxy}var n=Promise.resolve();if(!this.active||this.active.$view!=e||!_options.reuseContainerActiveView()){n=this.close()}var c=this;return n.then(function(){var n=Promise.resolve();l=generateParametersFromRoute(l);_parseQueryString(l);if(_options.reuseContainerActiveView()&&c.active?.$view==e){var s=function(t){if(!t||!t.active){return n}if(_options.callUnmountedWhenReuseContainerActiveView(t.active.$view)){n=n.then(function(){var e=t.active.$unmounted();if(e instanceof Promise){return e}else{return Promise.resolve()}})}n=n.then(function(){var e=t.active.$data();if(_options.resetDataWhenReuseContainerActiveView()){_combineObject(e,t.active)}_combineObject(l,t.active);return Promise.resolve()});if(_options.callCreatedWhenReuseContainerActiveView(t.active.$view)){n=n.then(function(){var e=t.active.$created();if(e instanceof Promise){return e}else{return Promise.resolve()}})}if(_options.callMountedWhenReuseContainerActiveView(t.active.$view)){n=n.then(function(){var e=t.active.$mounted();if(e instanceof Promise){return e}else{return Promise.resolve()}})}if(t.active.$containers&&t.active.$containers.length){for(var e=0;e<t.active.$containers.length;++e){s(t.active.$containers[e])}}return n.then(function(){t.active.$forceUpdate();return Promise.resolve(t.active)})};return Promise.resolve(s(c))}var o;var i=20;var r=function(){var e=new Promise(function(e,t){var n=o.mount(c.selector);if(n){c.active=n;return Promise.resolve(n)}if(--i>0){return sleep(50).then(function(){return r()})}else{return Promise.reject("Mount component to "+c.selector+" failed")}});return e};return _buildApp(e,l,t,a).then(function(e){o=e;return r()})})},close:async function(n=true){async function s(e){if(e.active&&e.active.$){if(n){for(var t=0;t<e.active.$containers.length;++t){s(e.active.$containers[t])}}if(e.active.$delayClose){try{if(e.active.$el){e.active.$el.classList?.add("_pome-ui-closing")}}catch(e){console.warn(e)}console.log(`sleeping ${e.active.$delayClose}ms...`);await sleep(e.active.$delayClose)}try{e.active.$.appContext.app.unmount()}catch(e){console.warn(e)}e.active=null}}await s(this)},active:null};n.push(e)}return e}}function Root(i,s,r){i=i||{};_hookSetup(i,function(e){e.$parent=parent||_findRoot(e);e.$root=_findRoot(e)||parent;e.$onUpdating=i.onUpdating;if(r){e.$layout=r;e.$view=r}_attachContainer(e)});return _resolveModules(i.modules,r).then(function(){var o;return _loadComponents(i.components||[],r).then(function(e){var t=Vue.createApp(i||{});for(var n=0;n<e.length;++n){var s=e[n];t.component(s.name,s.options)}o=t;return _loadDirectives(i.directives||[],r)}).then(function(e){for(var t=0;t<e.length;++t){var n=e[t];app.directive(n.name,n.options)}_root=o.mount(s);_root.$.proxy=_root})})}function mount(){function s(e){if(!e){return null}if(!e.getAttribute){return null}var t=e.getAttribute("target")||"_self";var n=e.getAttribute("static-link")||e.getAttribute("v-static")||e.getAttribute("pomelo-static");if(n==null&&t.toLowerCase()=="_self"&&e.tagName.toLowerCase()=="a"){return e.getAttribute("href")}return s(e.parentNode)}window.addEventListener("click",function(e){if(!e)return;var t=s(e.target);if(t){if(e.ctrlKey||e.metaKey){return}exports.redirect(t);e.preventDefault();return}});window.onpopstate=function(){UpdateLayout()};return UpdateLayout()}function UseConfig(e){_combineObject(e,_options)}function MapRoute(e,t){if(!exports._rules){exports._rules={}}exports._rules[e]=t}function ForceUpdate(e=exports.root()){if(!e)return;e.$forceUpdate();if(e.$containers){for(var t=0;t<e.$containers.length;++t){if(e.$containers[t].active){ForceUpdate(e.$containers[t].active)}}}}function MatchRoute(){function e(e,t,n){return e.replace(new RegExp(t,"g"),n)}function t(e){var t=[];if(!e){return t}var n=-1;var s=0;for(var o=0;o<e.length;++o){if(e[o]=="{"&&!s){n=o;s=0}else if(e[o]=="("){++s}else if(e[o]==")"){--s}else if(e[o]=="}"&&!s){t.push(e.substring(n,o+1))}}return t}function n(e){if(e[0]==="{"){return e.substr(1,e.length-2)}else{return e}}function s(e){return e.replace(/[-[\]{}()*+!<=:?.\/\\^$|#\s,]/g,"\\$&")}function o(e){var t=0;if(e){for(var n=0;n<e.length;++n){if(e[n]=="("){++t}if(e[n]=="?"&&n>0&&e[n-1]=="("){--t}}}return t}function i(){var e=window.location.hash;var t=e.indexOf("?");if(t==-1){return e}return e.substr(0,t)}var r=Object.getOwnPropertyNames(exports._rules);for(var l=0;l<r.length;++l){var a=r[l];var c=a[0]=="#";var u=exports._rules[r[l]];var f=t(a);var p=[];var d=[];for(var h=0;h<f.length;++h){var m=f[h];var g=n(m);regex="([^/]+)";if(g[0]=="*"){regex="(.*)";g=g.substr(1)}if(g.indexOf("=")>0){var v=g.substr(g.indexOf("=")+1);regex=`(${s(v)})`;p.push(g.substr(0,g.indexOf("=")))}else if(m.indexOf(":")>0){regex=m.substr(m.indexOf(":")+1);regex=regex.substr(0,regex.length-1);p.push(g.substr(0,g.indexOf(":")))}else{p.push(g)}d.push(o(regex));a=_replace(a,m,regex)}var y=new RegExp("^"+a+"$");var f=y.exec(c?i()||"#":window.location.pathname);if(f){var b={view:u,params:[]};var _=f;f=[];var x=0;for(var h=1;h<_.length;++h){f.push(_[h]);for(var g=0;g<d[x]-1;++g){++h}++x}var w=f.map(function(e){return decodeURIComponent(e)});for(var h=0;h<p.length;++h){b.params.push({key:p[h],value:w[h]})}return b}}return null}function _fillObjectField(e,t,n){if(!n){return}var s=e.split(".");for(var o=0;o<s.length-1;++o){if(!n[s[o]]){n[s[o]]={}}n=n[s[o]]}n[s[s.length-1]]=t}function _applyLayoutHtml(r){return _httpGet(r+(_options.mobile()?".m.html":".html")).then(function(e){var t=e.indexOf("<html");var n=e.indexOf(">",t);e=e.substr(n+1);var s=e.lastIndexOf("</html>");e=e.substr(0,s);e=_patchTemplate(r,e);document.querySelector("html").innerHTML=e;var o=(new Date).getTime();var i="pomelo-"+o;document.querySelector("body").innerHTML='<div id="'+i+'">'+document.querySelector("body").innerHTML+"</div>";return Promise.resolve(i)})}function generateParametersFromRoute(e={}){var t=null;t=MatchRoute();if(t==null){try{_options.onNotFound(window.location.pathname+window.location.search);return}catch(e){throw"No available route found."}}for(var n=0;n<t.params.length;++n){var s=t.params[n];_fillObjectField(s.key,s.value,e)}return e}function parseMacroPath(e,t){if(!t){t=""}if(t.indexOf("@")<0){return t}var n="/";var s=e.lastIndexOf("/");if(s>=0){n=e.substr(0,s)}t=t.replaceAll("@(view)",e).replaceAll("@(js)",e+".js").replaceAll("@(html)",e+".html").replaceAll("@(mobileHtml)",e+".m.html").replaceAll("@(css)",e+".css").replaceAll("@(mobileCss)",e+".m.css").replaceAll("@(less)",e+".less").replaceAll("@(mobileLess)",e+".m.less").replaceAll("@(mobileSass)",e+".m.sass").replaceAll("@(mobileScss)",e+".m.scss").replaceAll("@(containingFolder)",n);if(t.length&&t[0]!="/"&&t.indexOf("http")==-1){t=getContainingFolder(e)+t}return t}function appendCssReference(e,t){if(typeof t=="boolean"){var n=e+".css";if(_options.version){n+="?v="+_options.version}internalAppendCssReference(e,n)}else if(typeof t=="string"){var n=parseMacroPath(e,t);n=resolveRelativePath(n,getContainingFolder(e));if(_options.version){if(n.indexOf(">")<0){n+="?v="+_options.version}else{n+="&v="+_options.version}}internalAppendCssReference(e,n)}else if(t instanceof Array){for(var s=0;s<t.length;++s){if(typeof t[s]!="string"){continue}var n=parseMacroPath(e,t[s]);n=resolveRelativePath(n,getContainingFolder(e));if(_options.version){if(n.indexOf(">")<0){n+="?v="+_options.version}else{n+="&v="+_options.version}}internalAppendCssReference(e,n)}}else{throw"style type not supported"}}function getContainingFolder(e){if(!e){console.warn("getContainingFolder: absolutePath is invalid")}var t=e.lastIndexOf("/");if(t<0){return"/"}return e.substr(0,t)+"/"}function internalAppendCssReference(e,t){if(document.querySelectorAll('link[data-style="'+e+'"][href="'+t+'"]').length){return}var n=document.createElement("link");n.rel="stylesheet";n.type="text/"+getStyleSheetType(t);n.setAttribute("data-style",e);n.href=t;try{document.querySelector("head").appendChild(n)}catch(e){}}function internalAppendCssReferenceAsync(s,o){if(document.querySelectorAll('link[data-style="'+s+'"][href="'+o+'"]').length){return Promise.resolve()}return new Promise(function(t){var e=document.createElement("link");e.rel="stylesheet";e.type="text/"+getStyleSheetType(o);e.setAttribute("data-style",s);function n(){requestAnimationFrame(function(){t()})}e.onload=n;e.onerror=n;e.href=o;try{document.querySelector("head").appendChild(e)}catch(e){t()}})}function appendCssReferenceAsync(e,t){var n=[];if(typeof t=="boolean"){var s=e+".css";if(_options.version){s+="?v="+_options.version}n.push(internalAppendCssReferenceAsync(e,s))}else if(typeof t=="string"){var s=parseMacroPath(e,t);s=resolveRelativePath(s,getContainingFolder(e));if(_options.version){if(s.indexOf(">")<0){s+="?v="+_options.version}else{s+="&v="+_options.version}}n.push(internalAppendCssReferenceAsync(e,s))}else if(t instanceof Array){for(var o=0;o<t.length;++o){if(typeof t[o]!="string"){continue}var s=parseMacroPath(e,t[o]);s=resolveRelativePath(s,getContainingFolder(e));if(_options.version){if(s.indexOf(">")<0){s+="?v="+_options.version}else{s+="&v="+_options.version}}n.push(internalAppendCssReferenceAsync(e,s))}}return Promise.all(n)}function getStyleSheetType(e){var t=e.lastIndexOf("?");if(t>=0){e=e.substr(0,t)}var n=e.lastIndexOf(".");if(n<0){return null}return e.substr(n+1).toLowerCase()}function removeCssReference(e){if(!_options.removeStyleWhenUnmount){return}var t=document.querySelectorAll('link[data-style="'+e+'"]');if(t&&t.length){for(var n=0;n<t.length;++n){t[n].remove()}}}function hookMountedAndUnmounted(t,n){if(!t){return}if(!t.mounted){t.mounted=function(){}}if(!t.unmounted){t.unmounted=function(){}}if(!t.created){t.created=function(){}}if(t.style){var s=t.created;t.created=function(){if(!_css[n]){_css[n]=0}if(_css[n]==0){if(_options.preloadCss){this._cssLoadPromise=appendCssReferenceAsync(n,t.style)}else{appendCssReference(n,t.style)}}++_css[n];this.createdPromise=Promise.resolve();var e=s.call(this);if(e instanceof Promise){this.createdPromise=e}return e}}var o=t.mounted;t.mounted=function(){if(_options.preloadCss&&this._cssLoadPromise){_ensureCssCloakStyle();var e=this.$el;if(e&&e.nodeType===1){e.classList.add("_pome-css-cloak");this._cssLoadPromise.then(function(){e.classList.remove("_pome-css-cloak")})}}if(t.delayOpen){var n=this;(n.createdPromise||Promise.resolve()).then(function(){requestAnimationFrame(function(){requestAnimationFrame(function(){var e=n.$el.parentNode.querySelectorAll("._pome-ui-opening");for(var t=0;t<e.length;++t){e[t].classList.remove("_pome-ui-opening")}})});setTimeout(function(){var e=n.$el.parentNode.querySelectorAll("._pome-ui-opened");for(var t=0;t<e.length;++t){e[t].classList.remove("_pome-ui-opened")}},t.delayOpen)})}return o.call(this)};var e=t.unmounted;t.unmounted=function(){if(!_css[n]){return}--_css[n];if(_css[n]<=0){removeCssReference(n);delete _css[n]}return e.call(this)}}function pomeUiPassTitle(e){if(e){this.pomeUiSubTitles=e}var t=JSON.parse(JSON.stringify(this.pomeUiSubTitles));if(this.title){t.push(this.title)}if(this.$parent&&this.$parent!=window&&this.$parent.pomeUiPassTitle){this.$parent.pomeUiPassTitle(t)}else{document.querySelector("title").innerHTML=_options.generateTitle(t)}}function UpdateLayout(){var mobile=_options.mobile();var params={};var route=null;var layout=_options.layout;route=MatchRoute();params=generateParametersFromRoute();var _def;var viewName=route.view+(_options.mobile()?".m":"");return _httpGet(route.view+".js").then(function(def){_def=def;var modules=null;var _opt;var Page=function(e){_opt=e;layout=e.layout||layout;modules=e.modules};var require=_createRequire(route.view);def=eval(def+"\r\n//# sourceURL="+route.view+".js");hookMountedAndUnmounted(_opt,viewName);return _resolveModules(modules,viewName)}).then(function(){if(exports.root()&&exports.root().$layout){if(exports.root().$layout===layout){_parseQueryString(params);var fields=Object.getOwnPropertyNames(params);for(var i=0;i<fields.length;++i){var val=params[fields[i]];exports.root()[fields[i]]=val}return exports.root().$containers[0].open(route.view,params).then(function(){var e=Promise.resolve();if(typeof exports.root().$.$onUpdating=="function"){var t=exports.root().$.$onUpdating.call(exports.root());if(t instanceof Promise){e=e.then(()=>t)}}return e})}exports.root().$.appContext.app.unmount()}if(layout){var layoutName=layout+(mobile?".m":"");var _layoutHtml;return _httpGet(layoutName+".html").then(function(e){_layoutHtml=e;return _httpGet(layout+".js")}).then(function(js){var _opt=null;var Layout=function(e){_opt=e};var LayoutNext=function(e){_hookSetup(e);_opt.template=_sanitizeTemplate(_layoutHtml);_patchComponent(layout,_opt);_layoutHtml=_opt.template;var t=_layoutHtml.indexOf("<html");var n=_layoutHtml.indexOf(">",t);_layoutHtml=_layoutHtml.substr(n+1);var s=_layoutHtml.lastIndexOf("</html>");_layoutHtml=_layoutHtml.substr(0,s);document.querySelector("html").innerHTML=_layoutHtml;_hookData(e,params);var o=(new Date).getTime();var i="pomelo-"+o;var r="container-"+o;var l=document.querySelector("body").innerHTML.replace("<render-body></render-body>",'<div id="'+r+'"></div>');document.querySelector("body").innerHTML='<div id="'+i+'">'+l+"</div>";e.template=null;if(!e.mounted){e.mounted=function(){}}mountedFunc=e.mounted;e.mounted=function(){var e=this.$container("#"+r);e.open(route.view,params);return mountedFunc.call(this)};Root(e,"#"+i,layout)};var require=_createRequire(layout);eval(js+"\r\n//# sourceURL="+layout+".js");hookMountedAndUnmounted(_opt,layoutName);return _resolveModules(_opt.modules,layout).then(function(){LayoutNext(_opt);return Promise.resolve()})})}else{var viewName=route.view+(_options.mobile()?".m":"");return _applyLayoutHtml(route.view).then(function(appId){var _opt=null;var components=null;var Page=function(e){_opt=e};var PageNext=function(e){modules=e.modules;components=e.components||[];Root(e,"#"+appId,route.view)};var require=_createRequire(route.view);eval(_def+"\r\n//# sourceURL="+route.view+".js");if(!_opt){_opt={}}_hookData(_opt,params);hookMountedAndUnmounted(_opt,viewName);_patchComponent(viewName,_opt);return _resolveModules(_opt.modules,viewName).then(function(){PageNext(_opt);return Promise.resolve()})})}}).then(function(){ForceUpdate()}).catch(function(e){console.error(e)})}function Redirect(e){var t=null;var n=document.querySelector("title");if(n){t=n.innerText}window.history.pushState(null,t,e);UpdateLayout()}function Replace(e){var t=null;var n=document.querySelector("title");if(n){t=n.innerText}window.history.replaceState(null,t,e);UpdateLayout()}function LoadScript(url){if(_httpCached(url)){with(window){if(PomeloModule){var require=function(e,t,n){t=t||PomeloModule.getContainingFolder(url);return PomeloModule.require(e,t,n)}}eval(_cache[url]+"\r\n//# sourceURL="+url)}return Promise.resolve()}return _httpGet(url).then(function(js){with(window){if(PomeloModule){var require=function(e,t,n){t=t||PomeloModule.getContainingFolder(url);return PomeloModule.require(e,t,n)}}eval(js+"\r\n//# sourceURL="+url)}_cache[url]=js;return Promise.resolve()}).catch(e=>{console.error("Load module "+url+" failed.");console.error(e)})}function resolveRelativePathPlain(e){if(e.indexOf("./")==-1&&e.indexOf("../")==-1){return e}var t=e.lastIndexOf("../");if(t==0){return e}e=e.replaceAll("/./","/");if(e.indexOf("./")==0){e=e.substr(2)}if(t){var n=e.substr(0,t);var s=e.substr(t);return resolveRelativePath(s,n)}}function resolveRelativePath(e,t){if(e.length&&e[0]=="/"||e.indexOf("http")==0){return resolveRelativePathPlain(e)}if(e.length&&e[0]!="."){return resolveRelativePathPlain(t+e)}if(e.indexOf("./")==0){return resolveRelativePath(e.substr(2),t)}if(e.indexOf("../")==0){e=e.substr(3);t=getContainingFolder(t.substr(0,t.length-1));return resolveRelativePath(e,t)}}function _loadComponents(components,viewName){var ret=[];if(!components.length){return Promise.resolve(ret)}var workingDirectory=getContainingFolder(viewName||"/");return Promise.all(components.map(function(c){c=resolveRelativePath(parseMacroPath(viewName,c),workingDirectory);var componentPath=c;var _html;var _name;var _opt;return _httpGet(c+".html").then(function(e){_html=e;return _httpGet(c+".js")}).then(function(comJs){var Component=function(e,t){_opt=t;_name=e};var require=_createRequire(c);eval(comJs+"\r\n//# sourceURL="+c+".js");hookMountedAndUnmounted(_opt,c);if(!_opt.template){_opt.template=_sanitizeTemplate(_html)}_hookSetup(_opt);_patchComponent(c,_opt);_hookData(_opt);var cssPreloadPromise=Promise.resolve();if(_options.preloadCss&&_opt.style){cssPreloadPromise=appendCssReferenceAsync(c,_opt.style)}return Promise.all([cssPreloadPromise,_resolveModules(_opt.modules,c)])}).then(function(){var e=_opt.components||[];return _loadComponents(e,componentPath)}).then(function(t){ret.push({name:_name,options:_opt});for(var n=0;n<t.length;++n){if(!ret.some(function(e){return e.name==t[n].name})){ret.push(t[n])}}return Promise.resolve()})})).then(function(){return Promise.resolve(ret)})}function _loadDirectives(directives,viewName){var ret=[];if(!directives.length){return Promise.resolve(ret)}var workingDirectory=getContainingFolder(viewName||"/");var viewName;var subComponentRefs=[];return Promise.all(directives.map(function(c){c=resolveRelativePath(parseMacroPath(viewName,c),workingDirectory);viewName=c;var _name;var _opt;return _httpGet(c+".js").then(function(comJs){var Directive=function(e,t){_opt=t;_name=e};var require=_createRequire(c);eval(comJs+"\r\n//# sourceURL="+c+".js");ret.push({name:_name,options:_opt});return Promise.resolve()})})).then(function(){return Promise.resolve(ret)})}exports._addins=[];function _patchComponent(n,i){prepared=true;if(!i.data){i.data=function(){return{}}}if(!i.style){i.style=[]}if(!i.style instanceof Array){if(i.style instanceof String){i.style=[i.style]}else{i.style=["@(css)"]}}if(!i.components){i.components=[]}if(!i.created){i.created=function(){}}if(!i.mounted){i.mounted=function(){}}if(!i.unmounted){i.unmounted=function(){}}if(!i.destroyed){i.destroyed=function(){}}if(!i.watch){i.watch={}}if(!i.computed){i.computed={}}let s=i.data;i.data=function(e){var t=s.call(this,e);var n={pomeUiSubTitles:[]};_combineObject(n,t);return t};if(!i.methods){i.methods={}}i.methods.pomeUiPassTitle=pomeUiPassTitle;if(!i.watch){i.watch={}}if(!i.watch.title){i.watch.title=function(){}}_chainHook(i.watch,"title",function(){this.pomeUiPassTitle()});for(let t=0;t<exports._addins.length;++t){let e=exports._addins[t].view;let o=exports._addins[t].opt;if(e!="*"&&n!=e){continue}if(o.data){let s=i.data;i.data=function(e){var t=s.call(this,e);var n={};try{n=o.data.call(this,e)}catch(e){console.error(e)}_combineObject(n,t);return t}}if(o.style){if(o.style instanceof Boolean){o.style=["@(css)"]}if(o.style instanceof String){o.style=[o.style]}o.style.forEach(function(t){if(!i.style){i.style=[]}if(typeof i.style=="boolean"){i.style=["@(css)"]}if(!i.style.some(e=>e==t)){i.style.push(t)}})}if(o.components){o.components.forEach(function(t){if(!i.components.some(e=>e==t)){i.components.push(t)}})}if(o.layout){i.layout=o.layout}if(o.props){if(!i.props){i.props=[]}o.props.forEach(function(t){if(!i.props.some(e=>e==t)){i.props.push(t)}})}if(o.watch){var r=Object.getOwnPropertyNames(o.watch);r.forEach(function(n){var s=i.watch[n];i.watch[n]=function(e,t){s.invoke(this,e,t);try{o.watch[n].invoke(this,e,t)}catch(e){console.error(e)}}})}if(o.computed){var r=Object.getOwnPropertyNames(o.computed);r.forEach(function(e){i.computed[e]=o.computed[e]})}if(o.methods){var l=i.setup||function(e,t){};i.setup=function(e,t){l(e,t);var n={};var s=Object.getOwnPropertyNames(i.methods);s.forEach(function(e){n[e]=i.methods[e]});var o=Vue.getCurrentInstance();o.$baseMethods=n};var a=Object.getOwnPropertyNames(o.methods);a.forEach(function(e){i.methods[e]=o.methods[e]})}if(o.created){_chainHook(i,"created",o.created)}if(o.mounted){_chainHook(i,"mounted",o.mounted)}if(o.unmounted){_chainHook(i,"unmounted",o.unmounted)}if(o.destroyed){_chainHook(i,"destroyed",o.destroyed)}if(o.template){if(o.template instanceof Function){if(i.template){if(i.template.indexOf("<html")>=0){var c=(new DOMParser).parseFromString(_sanitizeTemplate(i.template),"text/html");o.template(c);i.template=(new XMLSerializer).serializeToString(c)}else{i.template=`<pome-ui-template>${i.template}</pome-ui-template>`;var c=(new DOMParser).parseFromString(_sanitizeTemplate(i.template),"text/html");o.template(c);i.template=(new XMLSerializer).serializeToString(c);i.template=i.template.substr(i.template.indexOf("<pome-ui-template>")+"<pome-ui-template>".length);i.template=i.template.substr(0,i.template.indexOf("</pome-ui-template>"))}}}else{i.template=o.template}}}_chainHook(i,"created",function(){this.pomeUiPassTitle()});_chainHook(i,"unmounted",function(){this.pomeUiPassTitle([])})}function _patchTemplate(s,o){for(let n=0;n<exports._addins.length;++n){let e=exports._addins[n].view;let t=exports._addins[n].opt;if(e!="*"&&s!=e){continue}if(t.template){if(t.template instanceof Function){if(o.indexOf("<html")>=0){var i=(new DOMParser).parseFromString(_sanitizeTemplate(o),"text/html");t.template(i);o=(new XMLSerializer).serializeToString(i)}else{o=`<pome-ui-template>${o}</pome-ui-template>`;var i=(new DOMParser).parseFromString(_sanitizeTemplate(o),"text/html");t.template(i);o=(new XMLSerializer).serializeToString(i);o=o.substr(o.indexOf("<pome-ui-template>")+"<pome-ui-template>".length);o=o.substr(0,o.indexOf("</pome-ui-template>"))}}else{o=t.template}}}return o}function UseAddin(addinUrl){var Addin=function(e,t){exports._addins.push({view:e,opt:t})};var js=_options.httpGetSync(addinUrl);eval(js)}function UseInlineAddin(script){var Addin=function(e,t){exports._addins.push({view:e,opt:t})};eval(script)}function Backward(){window.history.back()}exports.root=root;exports.useConfig=UseConfig;exports.mapRoute=MapRoute;exports.matchRoute=MatchRoute;exports.updateLayout=UpdateLayout;exports.redirect=Redirect;exports.replace=Replace;exports.backward=Backward;exports.loadScript=LoadScript;exports.forceUpdate=ForceUpdate;exports.mount=mount;exports.useRoutes=useRoutes;exports.useAddin=UseAddin;exports.useInlineAddin=UseInlineAddin;return exports}exports.build=build;
|
|
30
|
+
${s}`:n)}const l=new Function(i)();l._rc=true;return Gg[t]=l}Sc(Jg);e.BaseTransition=Do;e.BaseTransitionPropsValidators=Mo;e.Comment=te;e.DeprecationTypes=Kc;e.EffectScope=et;e.ErrorCodes=fs;e.ErrorTypeStrings=Vc;e.Fragment=ee;e.KeepAlive=Ai;e.ReactiveEffect=it;e.Static=Na;e.Suspense=va;e.Teleport=$o;e.Text=Ea;e.TrackOpTypes=Wn;e.Transition=au;e.TransitionGroup=bf;e.TriggerOpTypes=Kn;e.VueElement=cf;e.assertNumber=us;e.callWithAsyncErrorHandling=hs;e.callWithErrorHandling=ds;e.camelize=T;e.capitalize=j;e.cloneVNode=Xa;e.compatUtils=Wc;e.compile=Jg;e.computed=Mc;e.createApp=Yf;e.createBlock=Da;e.createCommentVNode=ec;e.createElementBlock=ja;e.createElementVNode=Ka;e.createHydrationRenderer=Il;e.createPropsRestProxy=Er;e.createRenderer=Pl;e.createSSRApp=Qf;e.createSlots=nr;e.createStaticVNode=Za;e.createTextVNode=Qa;e.createVNode=ne;e.customRef=jn;e.defineAsyncComponent=Si;e.defineComponent=Wo;e.defineCustomElement=rf;e.defineEmits=vr;e.defineExpose=yr;e.defineModel=xr;e.defineOptions=br;e.defineProps=gr;e.defineSSRCustomElement=lf;e.defineSlots=_r;e.devtools=Bc;e.effect=yt;e.effectScope=tt;e.getCurrentInstance=cc;e.getCurrentScope=nt;e.getCurrentWatcher=Yn;e.getTransitionRawChildren=zo;e.guardReactiveProps=Ja;e.h=Fc;e.handleError=ms;e.hasInjectionContext=Zr;e.hydrate=Xf;e.hydrateOnIdle=gi;e.hydrateOnInteraction=_i;e.hydrateOnMediaQuery=bi;e.hydrateOnVisible=yi;e.initCustomFormatter=Lc;e.initDirectivesForSSR=sp;e.inject=Qr;e.isMemoSame=Dc;e.isProxy=kn;e.isReactive=Sn;e.isReadonly=Cn;e.isRef=A;e.isRuntimeOnly=Cc;e.isShallow=C;e.isVNode=Ua;e.markRaw=Tn;e.mergeDefaults=Ar;e.mergeModels=$r;e.mergeProps=oc;e.nextTick=ks;e.normalizeClass=Te;e.normalizeProps=Ae;e.normalizeStyle=_e;e.onActivated=Ei;e.onBeforeMount=Li;e.onBeforeUnmount=Vi;e.onBeforeUpdate=Di;e.onDeactivated=Ni;e.onErrorCaptured=Wi;e.onMounted=ji;e.onRenderTracked=zi;e.onRenderTriggered=qi;e.onScopeDispose=st;e.onServerPrefetch=Hi;e.onUnmounted=Bi;e.onUpdated=Ui;e.onWatcherCleanup=Qn;e.openBlock=Pa;e.popScopeId=fo;e.provide=Yr;e.proxyRefs=Fn;e.pushScopeId=uo;e.queuePostFlushCb=Es;e.reactive=yn;e.readonly=_n;e.ref=$n;e.registerRuntimeCompiler=Sc;e.render=Jf;e.renderList=tr;e.renderSlot=sr;e.resolveComponent=Ji;e.resolveDirective=Qi;e.resolveDynamicComponent=Yi;e.resolveFilter=zc;e.resolveTransitionHooks=Vo;e.setBlockTracking=Fa;e.setDevtoolsHook=Hc;e.setTransitionHooks=qo;e.shallowReactive=bn;e.shallowReadonly=xn;e.shallowRef=En;e.ssrContextKey=Hl;e.ssrUtils=qc;e.stop=bt;e.toDisplayString=Je;e.toHandlerKey=D;e.toHandlers=ir;e.toRaw=v;e.toRef=Bn;e.toRefs=Dn;e.toValue=In;e.transformVNodeArgs=Ha;e.triggerRef=Rn;e.unref=Pn;e.useAttrs=Cr;e.useCssModule=pf;e.useCssVars=Eu;e.useHost=uf;e.useId=Ko;e.useModel=Ql;e.useSSRContext=ql;e.useShadowRoot=ff;e.useSlots=Sr;e.useTemplateRef=Xo;e.useTransitionState=Po;e.vModelCheckbox=Ef;e.vModelDynamic=Ff;e.vModelRadio=Of;e.vModelSelect=Rf;e.vModelText=$f;e.vShow=Tu;e.version=Uc;e.warn=u;e.watch=Gl;e.watchEffect=zl;e.watchPostEffect=Wl;e.watchSyncEffect=Kl;e.withAsyncContext=Nr;e.withCtx=ho;e.withDefaults=wr;e.withDirectives=go;e.withKeys=Hf;e.withMemo=jc;e.withModifiers=Vf;e.withScopeId=po;return e}({});window.Vue=Vue;function build(options,exports){if(typeof exports=="undefined"){exports={}}var _options={resolveModulesParallelly:true,removeStyleWhenUnmount:false,preloadCss:true,mobile:function(){return false},httpGet:function(e){return fetch(e)},httpGetSync:function(e){if(useRelativePath){if(e.length&&e[0]=="/"){e=e.substr(1)}}var t=new XMLHttpRequest;t.open("get",e,false);t.send();return t.responseText},onNotFound:function(e,t){if(e.indexOf("/404")==0){throw"No not-found template found"}if(t){return Redirect("/404?"+_serializeOptionsToUrl(t))}else{return Redirect("/404")}},reuseContainerActiveView(e){return true},callCreatedWhenReuseContainerActiveView(e){return true},callMountedWhenReuseContainerActiveView(e){return true},callUnmountedWhenReuseContainerActiveView(e){return true},resetDataWhenReuseContainerActiveView(e){return true},generateTitle(e){return e.join(" - ")}};_combineObject(options,_options);var _cache={};var _css={};var _cssCloakInjected=false;function _ensureCssCloakStyle(){if(_cssCloakInjected)return;_cssCloakInjected=true;var e=document.createElement("style");e.textContent="._pome-css-cloak{visibility:hidden!important}";document.head.appendChild(e)}var _vueCloakInjected=false;function _ensureVueCloakStyle(){if(_vueCloakInjected)return;_vueCloakInjected=true;var e=document.createElement("style");e.textContent="._pome-vue-cloak{display:none!important}";document.head.appendChild(e)}function _httpCached(e){return!!_cache[e]}function _httpGet(n){if(_cache[n]){return Promise.resolve(_cache[n])}var e=n;if(_options.version){if(n.indexOf("?")>0){e+="&"}else{e+="?"}e+="v="+_options.version}return _options.httpGet(e).then(function(e){if(e.status>300||e.status<200){return Promise.reject(e)}var t=e.text();_cache[n]=t;return Promise.resolve(t)}).catch(function(e){Promise.reject(e)})}function _httpExist(e){return _httpGet(e).then(function(){return Promise.resolve(true)}).catch(function(){return Promise.resolve(false)})}function _serializeOptionsToUrl(e){var t=Object.getOwnPropertyNames(e);var n="";for(var s=0;s<t.length;++s){n+=encodeURIComponent(t[s])+"="+encodeURIComponent(e[t[s]])+"&"}if(n[n.length-1]==="&"){n=n.substr(0,n.length-1)}return n}function _addHyphenBeforeUppercase(e){var t=e.replace(/([A-Z])/g,"-$1").toLowerCase();while(t.length&&t[0]=="-"){t=t.substr(1)}return t}function _sanitizeTemplate(e){if(!e instanceof String){return e}var t=[...e.matchAll(/(?<=:)[a-zA-Z0-9-_]{1,}(?=\=")/g)];for(var n=0;n<t.length;++n){var s=t[n].toString();var o=_addHyphenBeforeUppercase(s);e=e.replaceAll(":"+s+"=",":"+o+"=")}t=[...e.matchAll(/(?<=@)[a-zA-Z0-9-_]{1,}(?=\=")/g)];for(var n=0;n<t.length;++n){var s=t[n].toString();var o=_addHyphenBeforeUppercase(s);e=e.replaceAll("@"+s+"=","@"+o+"=")}return e}var _root=null;function root(){return _root}function _findRoot(e){var t=exports.root();if(t)return t;if(!e)return null;var n=e;while(n.parent){n=n.parent}return n.proxy||n}exports._rules=[];function useRoutes(e){var t=_options.httpGetSync(e);t=JSON.parse(t);if(!exports._rules){exports._rules={}}_combineObject(t,exports._rules)}function _combineObject(e,t){if(!e){return}var n=Object.getOwnPropertyNames(e);for(var s=0;s<n.length;++s){t[n[s]]=e[n[s]]}}function _chainHook(e,t,s){var o=e[t]||function(){};e[t]=function(){var t=this;var e=o.call(t);var n=e&&e instanceof Promise?e:Promise.resolve();return n.then(function(){var e;try{e=s.call(t)}catch(e){console.error(e)}return e&&e instanceof Promise?e:Promise.resolve()})}}function _hookSetup(s,o){var i=s.setup||function(){};s.setup=function(e,t){i(e,t);var n=Vue.getCurrentInstance();n.$app=exports;if(o){o.call(this,n,s)}if(!n.$root){n.$root=_findRoot(n)}if(!n.$parent){n.$parent=n.parent&&n.parent.proxy||n.$root}}}function _hookData(e,t){var n=e.data||function(){return{}};e.data=function(){var e=n.call(this,exports);if(t){_combineObject(t,e);_parseQueryString(e)}return e}}function _createRequire(s){if(!PomeloModule)return undefined;return function(e,t,n){t=t||PomeloModule.getContainingFolder(s);return PomeloModule.require(e,t,n)}}function _getQueryString(){var e=window.location.search;if(window.location.hash.indexOf("?")>0){var t=window.location.hash.substr(window.location.hash.indexOf("?"));if(e){e+="&"+t.substr(1)}else{e=t}}return e}function _parseQueryString(e){var t=_getQueryString();if(!t){return}var n=t;if(n[0]=="?"){n=n.substr(1)}var s=n.split("&");for(var o=0;o<s.length;++o){var i=s[o].split("=");var r=decodeURIComponent(i[0]);var l=decodeURIComponent(i[1]);_fillObjectField(r,l,e)}}function _resolveModules(e,n){if(!e){return Promise.resolve()}if(_options.resolveModulesParallelly){var t=[];for(var s=0;s<e.length;++s){t.push(LoadScript(parseMacroPath(n,e[s])))}return Promise.all(t)}else{var o=Promise.resolve(null);var i=function(t){return function(e){return LoadScript(parseMacroPath(n,t))}};for(var s=0;s<e.length;++s){var r=e[s];o=o.then(i(r))}return o}}function _buildApp(url,params,mobile,parent){var componentObject={};return _httpGet(url+".js").then(function(js){var Page=function(e){componentObject=e};var require=_createRequire(url);eval(js+"\r\n//# sourceURL="+url+".js");hookMountedAndUnmounted(componentObject,url+(mobile?".m":""));return _resolveModules(componentObject.modules||[],url).then(function(){return Promise.resolve(componentObject)})}).then(function(i){var e=null;if(mobile){e=_httpExist(url+".m.html").then(function(e){return _httpGet(url+(e?".m.html":".html"))})}else{e=_httpGet(url+".html")}return e.then(function(e){if(!i.template){i.template=_sanitizeTemplate(e)}if(i.delayOpen){var t=(new DOMParser).parseFromString(i.template,"text/html");var n=t.querySelector("body").children;for(var s=0;s<n.length;++s){if(n[s].tagName.toUpperCase()!="DIV"){continue}if(n[s].getAttribute("v-if")!=null||n[s].getAttribute("v-else-if")||n[s].getAttribute("v-else")){continue}n[s].classList.add("_pome-ui-opened");n[s].classList.add("_pome-ui-opening")}var o=e.indexOf("<html")>=0?(new XMLSerializer).serializeToString(t):t.querySelector("body").innerHTML;i.template=o}_patchComponent(url,i);return Promise.resolve(i)})}).then(function(a){_hookSetup(a,function(e,t){e.$parent=parent||_findRoot(e);e.$root=_findRoot(e)||parent;e.$view=url;e.$data=t.data||function(){return{}};e.$created=t.created||function(){};e.$mounted=t.mounted||function(){};e.$unmounted=t.unmounted||function(){};e.$delayClose=t.delayClose||0;_attachContainer(e)});_hookData(a,params);return _resolveModules(a.modules,url).then(function(){var e=a.components||[];var r=a.directives||[];var l;var t=Promise.resolve();var n=url+(mobile?".m":"");if(_options.preloadCss&&a.style){t=appendCssReferenceAsync(n,a.style)}return Promise.all([t,_loadComponents(e,url)]).then(function(e){var t=e[1];var n=Vue.createApp(a);for(var s=0;s<t.length;++s){var o=t[s];n.component(o.name,o.options)}var i=n.mount||function(){};n.mount=function(e){n.proxy=i(e);return n.proxy};l=n;return _loadDirectives(r,url)}).then(function(e){for(var t=0;t<e.length;++t){var n=e[t];l.directive(n.name,n.options)}return Promise.resolve(l)})})})}function _replace(e,t,n){var s=e.indexOf(t);if(s<0){return e}var o=e.substr(0,s)+n+e.substr(s+t.length);return o}function sleep(t){return new Promise(function(e){setTimeout(function(){e()},t)})}function yield(){return sleep(0)}function _attachContainer(s){if(!s){console.warn("Invalid view model")}if(!s.$containers){s.$containers=[]}if(!s.$containers){s.$containers=[]}var n=s.$containers;s.$container=function(t){var e=n.filter(e=>e.selector==t)[0];if(!e){e={element:document.querySelector(t),selector:t,open:function(e,l){var t=_options.mobile();var a=null;if(s.proxy){a=s.proxy}if(s.$&&s.$.proxy){a=s.$.proxy}var n=Promise.resolve();if(!this.active||this.active.$view!=e||!_options.reuseContainerActiveView()){n=this.close()}var c=this;return n.then(function(){var n=Promise.resolve();l=generateParametersFromRoute(l);_parseQueryString(l);if(_options.reuseContainerActiveView()&&c.active?.$view==e){var s=function(t){if(!t||!t.active){return n}if(_options.callUnmountedWhenReuseContainerActiveView(t.active.$view)){n=n.then(function(){var e=t.active.$unmounted();if(e instanceof Promise){return e}else{return Promise.resolve()}})}n=n.then(function(){var e=t.active.$data();if(_options.resetDataWhenReuseContainerActiveView()){_combineObject(e,t.active)}_combineObject(l,t.active);return Promise.resolve()});if(_options.callCreatedWhenReuseContainerActiveView(t.active.$view)){n=n.then(function(){var e=t.active.$created();if(e instanceof Promise){return e}else{return Promise.resolve()}})}if(_options.callMountedWhenReuseContainerActiveView(t.active.$view)){n=n.then(function(){var e=t.active.$mounted();if(e instanceof Promise){return e}else{return Promise.resolve()}})}if(t.active.$containers&&t.active.$containers.length){for(var e=0;e<t.active.$containers.length;++e){s(t.active.$containers[e])}}return n.then(function(){t.active.$forceUpdate();return Promise.resolve(t.active)})};return Promise.resolve(s(c))}var o;var i=20;var r=function(){var e=new Promise(function(e,t){var n=o.mount(c.selector);if(n){c.active=n;return Promise.resolve(n)}if(--i>0){return sleep(50).then(function(){return r()})}else{return Promise.reject("Mount component to "+c.selector+" failed")}});return e};return _buildApp(e,l,t,a).then(function(e){o=e;return r()})})},close:async function(n=true){async function s(e){if(e.active&&e.active.$){if(n){for(var t=0;t<e.active.$containers.length;++t){s(e.active.$containers[t])}}if(e.active.$delayClose){try{if(e.active.$el){e.active.$el.classList?.add("_pome-ui-closing")}}catch(e){console.warn(e)}console.log(`sleeping ${e.active.$delayClose}ms...`);await sleep(e.active.$delayClose)}try{e.active.$.appContext.app.unmount()}catch(e){console.warn(e)}e.active=null}}await s(this)},active:null};n.push(e)}return e}}function Root(i,r,l){i=i||{};_hookSetup(i,function(e){e.$parent=parent||_findRoot(e);e.$root=_findRoot(e)||parent;e.$onUpdating=i.onUpdating;if(l){e.$layout=l;e.$view=l}_attachContainer(e)});return _resolveModules(i.modules,l).then(function(){var o;return _loadComponents(i.components||[],l).then(function(e){var t=Vue.createApp(i||{});for(var n=0;n<e.length;++n){var s=e[n];t.component(s.name,s.options)}o=t;return _loadDirectives(i.directives||[],l)}).then(function(e){for(var t=0;t<e.length;++t){var n=e[t];app.directive(n.name,n.options)}_root=o.mount(r);_root.$.proxy=_root;var s=document.querySelector(r);if(s){s.classList.remove("_pome-vue-cloak")}})})}function mount(){function s(e){if(!e){return null}if(!e.getAttribute){return null}var t=e.getAttribute("target")||"_self";var n=e.getAttribute("static-link")||e.getAttribute("v-static")||e.getAttribute("pomelo-static");if(n==null&&t.toLowerCase()=="_self"&&e.tagName.toLowerCase()=="a"){return e.getAttribute("href")}return s(e.parentNode)}window.addEventListener("click",function(e){if(!e)return;var t=s(e.target);if(t){if(e.ctrlKey||e.metaKey){return}exports.redirect(t);e.preventDefault();return}});window.onpopstate=function(){UpdateLayout()};return UpdateLayout()}function UseConfig(e){_combineObject(e,_options)}function MapRoute(e,t){if(!exports._rules){exports._rules={}}exports._rules[e]=t}function ForceUpdate(e=exports.root()){if(!e)return;e.$forceUpdate();if(e.$containers){for(var t=0;t<e.$containers.length;++t){if(e.$containers[t].active){ForceUpdate(e.$containers[t].active)}}}}function MatchRoute(){function e(e,t,n){return e.replace(new RegExp(t,"g"),n)}function t(e){var t=[];if(!e){return t}var n=-1;var s=0;for(var o=0;o<e.length;++o){if(e[o]=="{"&&!s){n=o;s=0}else if(e[o]=="("){++s}else if(e[o]==")"){--s}else if(e[o]=="}"&&!s){t.push(e.substring(n,o+1))}}return t}function n(e){if(e[0]==="{"){return e.substr(1,e.length-2)}else{return e}}function s(e){return e.replace(/[-[\]{}()*+!<=:?.\/\\^$|#\s,]/g,"\\$&")}function o(e){var t=0;if(e){for(var n=0;n<e.length;++n){if(e[n]=="("){++t}if(e[n]=="?"&&n>0&&e[n-1]=="("){--t}}}return t}function i(){var e=window.location.hash;var t=e.indexOf("?");if(t==-1){return e}return e.substr(0,t)}var r=Object.getOwnPropertyNames(exports._rules);for(var l=0;l<r.length;++l){var a=r[l];var c=a[0]=="#";var u=exports._rules[r[l]];var f=t(a);var p=[];var d=[];for(var h=0;h<f.length;++h){var m=f[h];var g=n(m);regex="([^/]+)";if(g[0]=="*"){regex="(.*)";g=g.substr(1)}if(g.indexOf("=")>0){var v=g.substr(g.indexOf("=")+1);regex=`(${s(v)})`;p.push(g.substr(0,g.indexOf("=")))}else if(m.indexOf(":")>0){regex=m.substr(m.indexOf(":")+1);regex=regex.substr(0,regex.length-1);p.push(g.substr(0,g.indexOf(":")))}else{p.push(g)}d.push(o(regex));a=_replace(a,m,regex)}var y=new RegExp("^"+a+"$");var f=y.exec(c?i()||"#":window.location.pathname);if(f){var b={view:u,params:[]};var _=f;f=[];var x=0;for(var h=1;h<_.length;++h){f.push(_[h]);for(var g=0;g<d[x]-1;++g){++h}++x}var w=f.map(function(e){return decodeURIComponent(e)});for(var h=0;h<p.length;++h){b.params.push({key:p[h],value:w[h]})}return b}}return null}function _fillObjectField(e,t,n){if(!n){return}var s=e.split(".");for(var o=0;o<s.length-1;++o){if(!n[s[o]]){n[s[o]]={}}n=n[s[o]]}n[s[s.length-1]]=t}function _applyLayoutHtml(r){return _httpGet(r+(_options.mobile()?".m.html":".html")).then(function(e){var t=e.indexOf("<html");var n=e.indexOf(">",t);e=e.substr(n+1);var s=e.lastIndexOf("</html>");e=e.substr(0,s);e=_patchTemplate(r,e);document.querySelector("html").innerHTML=e;var o=(new Date).getTime();var i="pomelo-"+o;_ensureVueCloakStyle();document.querySelector("body").innerHTML='<div id="'+i+'" class="_pome-vue-cloak">'+document.querySelector("body").innerHTML+"</div>";return Promise.resolve(i)})}function generateParametersFromRoute(e={}){var t=null;t=MatchRoute();if(t==null){try{_options.onNotFound(window.location.pathname+window.location.search);return}catch(e){throw"No available route found."}}for(var n=0;n<t.params.length;++n){var s=t.params[n];_fillObjectField(s.key,s.value,e)}return e}function parseMacroPath(e,t){if(!t){t=""}if(t.indexOf("@")<0){return t}var n="/";var s=e.lastIndexOf("/");if(s>=0){n=e.substr(0,s)}t=t.replaceAll("@(view)",e).replaceAll("@(js)",e+".js").replaceAll("@(html)",e+".html").replaceAll("@(mobileHtml)",e+".m.html").replaceAll("@(css)",e+".css").replaceAll("@(mobileCss)",e+".m.css").replaceAll("@(less)",e+".less").replaceAll("@(mobileLess)",e+".m.less").replaceAll("@(mobileSass)",e+".m.sass").replaceAll("@(mobileScss)",e+".m.scss").replaceAll("@(containingFolder)",n);if(t.length&&t[0]!="/"&&t.indexOf("http")==-1){t=getContainingFolder(e)+t}return t}function appendCssReference(e,t){if(typeof t=="boolean"){var n=e+".css";if(_options.version){n+="?v="+_options.version}internalAppendCssReference(e,n)}else if(typeof t=="string"){var n=parseMacroPath(e,t);n=resolveRelativePath(n,getContainingFolder(e));if(_options.version){if(n.indexOf(">")<0){n+="?v="+_options.version}else{n+="&v="+_options.version}}internalAppendCssReference(e,n)}else if(t instanceof Array){for(var s=0;s<t.length;++s){if(typeof t[s]!="string"){continue}var n=parseMacroPath(e,t[s]);n=resolveRelativePath(n,getContainingFolder(e));if(_options.version){if(n.indexOf(">")<0){n+="?v="+_options.version}else{n+="&v="+_options.version}}internalAppendCssReference(e,n)}}else{throw"style type not supported"}}function getContainingFolder(e){if(!e){console.warn("getContainingFolder: absolutePath is invalid")}var t=e.lastIndexOf("/");if(t<0){return"/"}return e.substr(0,t)+"/"}function internalAppendCssReference(e,t){if(document.querySelectorAll('link[data-style="'+e+'"][href="'+t+'"]').length){return}var n=document.createElement("link");n.rel="stylesheet";n.type="text/"+getStyleSheetType(t);n.setAttribute("data-style",e);n.href=t;try{document.querySelector("head").appendChild(n)}catch(e){}}function internalAppendCssReferenceAsync(s,o){if(document.querySelectorAll('link[data-style="'+s+'"][href="'+o+'"]').length){return Promise.resolve()}return new Promise(function(t){var e=document.createElement("link");e.rel="stylesheet";e.type="text/"+getStyleSheetType(o);e.setAttribute("data-style",s);function n(){requestAnimationFrame(function(){t()})}e.onload=n;e.onerror=n;e.href=o;try{document.querySelector("head").appendChild(e)}catch(e){t()}})}function appendCssReferenceAsync(e,t){var n=[];if(typeof t=="boolean"){var s=e+".css";if(_options.version){s+="?v="+_options.version}n.push(internalAppendCssReferenceAsync(e,s))}else if(typeof t=="string"){var s=parseMacroPath(e,t);s=resolveRelativePath(s,getContainingFolder(e));if(_options.version){if(s.indexOf(">")<0){s+="?v="+_options.version}else{s+="&v="+_options.version}}n.push(internalAppendCssReferenceAsync(e,s))}else if(t instanceof Array){for(var o=0;o<t.length;++o){if(typeof t[o]!="string"){continue}var s=parseMacroPath(e,t[o]);s=resolveRelativePath(s,getContainingFolder(e));if(_options.version){if(s.indexOf(">")<0){s+="?v="+_options.version}else{s+="&v="+_options.version}}n.push(internalAppendCssReferenceAsync(e,s))}}return Promise.all(n)}function getStyleSheetType(e){var t=e.lastIndexOf("?");if(t>=0){e=e.substr(0,t)}var n=e.lastIndexOf(".");if(n<0){return null}return e.substr(n+1).toLowerCase()}function removeCssReference(e){if(!_options.removeStyleWhenUnmount){return}var t=document.querySelectorAll('link[data-style="'+e+'"]');if(t&&t.length){for(var n=0;n<t.length;++n){t[n].remove()}}}function hookMountedAndUnmounted(t,n){if(!t){return}if(!t.mounted){t.mounted=function(){}}if(!t.unmounted){t.unmounted=function(){}}if(!t.created){t.created=function(){}}if(t.style){var s=t.created;t.created=function(){if(!_css[n]){_css[n]=0}if(_css[n]==0){if(_options.preloadCss){this._cssLoadPromise=appendCssReferenceAsync(n,t.style)}else{appendCssReference(n,t.style)}}++_css[n];this.createdPromise=Promise.resolve();var e=s.call(this);if(e instanceof Promise){this.createdPromise=e}return e}}var o=t.mounted;t.mounted=function(){if(_options.preloadCss&&this._cssLoadPromise){_ensureCssCloakStyle();var e=this.$el;if(e&&e.nodeType===1){e.classList.add("_pome-css-cloak");this._cssLoadPromise.then(function(){e.classList.remove("_pome-css-cloak")})}}if(t.delayOpen){var n=this;(n.createdPromise||Promise.resolve()).then(function(){requestAnimationFrame(function(){requestAnimationFrame(function(){var e=n.$el.parentNode.querySelectorAll("._pome-ui-opening");for(var t=0;t<e.length;++t){e[t].classList.remove("_pome-ui-opening")}})});setTimeout(function(){var e=n.$el.parentNode.querySelectorAll("._pome-ui-opened");for(var t=0;t<e.length;++t){e[t].classList.remove("_pome-ui-opened")}},t.delayOpen)})}return o.call(this)};var e=t.unmounted;t.unmounted=function(){if(!_css[n]){return}--_css[n];if(_css[n]<=0){removeCssReference(n);delete _css[n]}return e.call(this)}}function pomeUiPassTitle(e){if(e){this.pomeUiSubTitles=e}var t=JSON.parse(JSON.stringify(this.pomeUiSubTitles));if(this.title){t.push(this.title)}if(this.$parent&&this.$parent!=window&&this.$parent.pomeUiPassTitle){this.$parent.pomeUiPassTitle(t)}else{document.querySelector("title").innerHTML=_options.generateTitle(t)}}function UpdateLayout(){var mobile=_options.mobile();var params={};var route=null;var layout=_options.layout;route=MatchRoute();params=generateParametersFromRoute();var _def;var viewName=route.view+(_options.mobile()?".m":"");return _httpGet(route.view+".js").then(function(def){_def=def;var modules=null;var _opt;var Page=function(e){_opt=e;layout=e.layout||layout;modules=e.modules};var require=_createRequire(route.view);def=eval(def+"\r\n//# sourceURL="+route.view+".js");hookMountedAndUnmounted(_opt,viewName);return _resolveModules(modules,viewName)}).then(function(){if(exports.root()&&exports.root().$layout){if(exports.root().$layout===layout){_parseQueryString(params);var fields=Object.getOwnPropertyNames(params);for(var i=0;i<fields.length;++i){var val=params[fields[i]];exports.root()[fields[i]]=val}return exports.root().$containers[0].open(route.view,params).then(function(){var e=Promise.resolve();if(typeof exports.root().$.$onUpdating=="function"){var t=exports.root().$.$onUpdating.call(exports.root());if(t instanceof Promise){e=e.then(()=>t)}}return e})}exports.root().$.appContext.app.unmount()}if(layout){var layoutName=layout+(mobile?".m":"");var _layoutHtml;return _httpGet(layoutName+".html").then(function(e){_layoutHtml=e;return _httpGet(layout+".js")}).then(function(js){var _opt=null;var Layout=function(e){_opt=e};var LayoutNext=function(e){_hookSetup(e);_opt.template=_sanitizeTemplate(_layoutHtml);_patchComponent(layout,_opt);_layoutHtml=_opt.template;var t=_layoutHtml.indexOf("<html");var n=_layoutHtml.indexOf(">",t);_layoutHtml=_layoutHtml.substr(n+1);var s=_layoutHtml.lastIndexOf("</html>");_layoutHtml=_layoutHtml.substr(0,s);document.querySelector("html").innerHTML=_layoutHtml;_hookData(e,params);var o=(new Date).getTime();var i="pomelo-"+o;var r="container-"+o;var l=document.querySelector("body").innerHTML.replace("<render-body></render-body>",'<div id="'+r+'"></div>');_ensureVueCloakStyle();document.querySelector("body").innerHTML='<div id="'+i+'" class="_pome-vue-cloak">'+l+"</div>";e.template=null;if(!e.mounted){e.mounted=function(){}}mountedFunc=e.mounted;e.mounted=function(){var e=this.$container("#"+r);e.open(route.view,params);return mountedFunc.call(this)};Root(e,"#"+i,layout)};var require=_createRequire(layout);eval(js+"\r\n//# sourceURL="+layout+".js");hookMountedAndUnmounted(_opt,layoutName);return _resolveModules(_opt.modules,layout).then(function(){LayoutNext(_opt);return Promise.resolve()})})}else{var viewName=route.view+(_options.mobile()?".m":"");return _applyLayoutHtml(route.view).then(function(appId){var _opt=null;var components=null;var Page=function(e){_opt=e};var PageNext=function(e){modules=e.modules;components=e.components||[];Root(e,"#"+appId,route.view)};var require=_createRequire(route.view);eval(_def+"\r\n//# sourceURL="+route.view+".js");if(!_opt){_opt={}}_hookData(_opt,params);hookMountedAndUnmounted(_opt,viewName);_patchComponent(viewName,_opt);return _resolveModules(_opt.modules,viewName).then(function(){PageNext(_opt);return Promise.resolve()})})}}).then(function(){ForceUpdate()}).catch(function(e){console.error(e)})}function Redirect(e){var t=null;var n=document.querySelector("title");if(n){t=n.innerText}window.history.pushState(null,t,e);UpdateLayout()}function Replace(e){var t=null;var n=document.querySelector("title");if(n){t=n.innerText}window.history.replaceState(null,t,e);UpdateLayout()}function LoadScript(url){if(_httpCached(url)){with(window){if(PomeloModule){var require=function(e,t,n){t=t||PomeloModule.getContainingFolder(url);return PomeloModule.require(e,t,n)}}eval(_cache[url]+"\r\n//# sourceURL="+url)}return Promise.resolve()}return _httpGet(url).then(function(js){with(window){if(PomeloModule){var require=function(e,t,n){t=t||PomeloModule.getContainingFolder(url);return PomeloModule.require(e,t,n)}}eval(js+"\r\n//# sourceURL="+url)}_cache[url]=js;return Promise.resolve()}).catch(e=>{console.error("Load module "+url+" failed.");console.error(e)})}function resolveRelativePathPlain(e){if(e.indexOf("./")==-1&&e.indexOf("../")==-1){return e}var t=e.lastIndexOf("../");if(t==0){return e}e=e.replaceAll("/./","/");if(e.indexOf("./")==0){e=e.substr(2)}if(t){var n=e.substr(0,t);var s=e.substr(t);return resolveRelativePath(s,n)}}function resolveRelativePath(e,t){if(e.length&&e[0]=="/"||e.indexOf("http")==0){return resolveRelativePathPlain(e)}if(e.length&&e[0]!="."){return resolveRelativePathPlain(t+e)}if(e.indexOf("./")==0){return resolveRelativePath(e.substr(2),t)}if(e.indexOf("../")==0){e=e.substr(3);t=getContainingFolder(t.substr(0,t.length-1));return resolveRelativePath(e,t)}}function _loadComponents(components,viewName){var ret=[];if(!components.length){return Promise.resolve(ret)}var workingDirectory=getContainingFolder(viewName||"/");return Promise.all(components.map(function(c){c=resolveRelativePath(parseMacroPath(viewName,c),workingDirectory);var componentPath=c;var _html;var _name;var _opt;return _httpGet(c+".html").then(function(e){_html=e;return _httpGet(c+".js")}).then(function(comJs){var Component=function(e,t){_opt=t;_name=e};var require=_createRequire(c);eval(comJs+"\r\n//# sourceURL="+c+".js");hookMountedAndUnmounted(_opt,c);if(!_opt.template){_opt.template=_sanitizeTemplate(_html)}_hookSetup(_opt);_patchComponent(c,_opt);_hookData(_opt);var cssPreloadPromise=Promise.resolve();if(_options.preloadCss&&_opt.style){cssPreloadPromise=appendCssReferenceAsync(c,_opt.style)}return Promise.all([cssPreloadPromise,_resolveModules(_opt.modules,c)])}).then(function(){var e=_opt.components||[];return _loadComponents(e,componentPath)}).then(function(t){ret.push({name:_name,options:_opt});for(var n=0;n<t.length;++n){if(!ret.some(function(e){return e.name==t[n].name})){ret.push(t[n])}}return Promise.resolve()})})).then(function(){return Promise.resolve(ret)})}function _loadDirectives(directives,viewName){var ret=[];if(!directives.length){return Promise.resolve(ret)}var workingDirectory=getContainingFolder(viewName||"/");var viewName;var subComponentRefs=[];return Promise.all(directives.map(function(c){c=resolveRelativePath(parseMacroPath(viewName,c),workingDirectory);viewName=c;var _name;var _opt;return _httpGet(c+".js").then(function(comJs){var Directive=function(e,t){_opt=t;_name=e};var require=_createRequire(c);eval(comJs+"\r\n//# sourceURL="+c+".js");ret.push({name:_name,options:_opt});return Promise.resolve()})})).then(function(){return Promise.resolve(ret)})}exports._addins=[];function _patchComponent(n,i){prepared=true;if(!i.data){i.data=function(){return{}}}if(!i.style){i.style=[]}if(!i.style instanceof Array){if(i.style instanceof String){i.style=[i.style]}else{i.style=["@(css)"]}}if(!i.components){i.components=[]}if(!i.created){i.created=function(){}}if(!i.mounted){i.mounted=function(){}}if(!i.unmounted){i.unmounted=function(){}}if(!i.destroyed){i.destroyed=function(){}}if(!i.watch){i.watch={}}if(!i.computed){i.computed={}}let s=i.data;i.data=function(e){var t=s.call(this,e);var n={pomeUiSubTitles:[]};_combineObject(n,t);return t};if(!i.methods){i.methods={}}i.methods.pomeUiPassTitle=pomeUiPassTitle;if(!i.watch){i.watch={}}if(!i.watch.title){i.watch.title=function(){}}_chainHook(i.watch,"title",function(){this.pomeUiPassTitle()});for(let t=0;t<exports._addins.length;++t){let e=exports._addins[t].view;let o=exports._addins[t].opt;if(e!="*"&&n!=e){continue}if(o.data){let s=i.data;i.data=function(e){var t=s.call(this,e);var n={};try{n=o.data.call(this,e)}catch(e){console.error(e)}_combineObject(n,t);return t}}if(o.style){if(o.style instanceof Boolean){o.style=["@(css)"]}if(o.style instanceof String){o.style=[o.style]}o.style.forEach(function(t){if(!i.style){i.style=[]}if(typeof i.style=="boolean"){i.style=["@(css)"]}if(!i.style.some(e=>e==t)){i.style.push(t)}})}if(o.components){o.components.forEach(function(t){if(!i.components.some(e=>e==t)){i.components.push(t)}})}if(o.layout){i.layout=o.layout}if(o.props){if(!i.props){i.props=[]}o.props.forEach(function(t){if(!i.props.some(e=>e==t)){i.props.push(t)}})}if(o.watch){var r=Object.getOwnPropertyNames(o.watch);r.forEach(function(n){var s=i.watch[n];i.watch[n]=function(e,t){s.invoke(this,e,t);try{o.watch[n].invoke(this,e,t)}catch(e){console.error(e)}}})}if(o.computed){var r=Object.getOwnPropertyNames(o.computed);r.forEach(function(e){i.computed[e]=o.computed[e]})}if(o.methods){var l=i.setup||function(e,t){};i.setup=function(e,t){l(e,t);var n={};var s=Object.getOwnPropertyNames(i.methods);s.forEach(function(e){n[e]=i.methods[e]});var o=Vue.getCurrentInstance();o.$baseMethods=n};var a=Object.getOwnPropertyNames(o.methods);a.forEach(function(e){i.methods[e]=o.methods[e]})}if(o.created){_chainHook(i,"created",o.created)}if(o.mounted){_chainHook(i,"mounted",o.mounted)}if(o.unmounted){_chainHook(i,"unmounted",o.unmounted)}if(o.destroyed){_chainHook(i,"destroyed",o.destroyed)}if(o.template){if(o.template instanceof Function){if(i.template){if(i.template.indexOf("<html")>=0){var c=(new DOMParser).parseFromString(_sanitizeTemplate(i.template),"text/html");o.template(c);i.template=(new XMLSerializer).serializeToString(c)}else{i.template=`<pome-ui-template>${i.template}</pome-ui-template>`;var c=(new DOMParser).parseFromString(_sanitizeTemplate(i.template),"text/html");o.template(c);i.template=(new XMLSerializer).serializeToString(c);i.template=i.template.substr(i.template.indexOf("<pome-ui-template>")+"<pome-ui-template>".length);i.template=i.template.substr(0,i.template.indexOf("</pome-ui-template>"))}}}else{i.template=o.template}}}_chainHook(i,"created",function(){this.pomeUiPassTitle()});_chainHook(i,"unmounted",function(){this.pomeUiPassTitle([])})}function _patchTemplate(s,o){for(let n=0;n<exports._addins.length;++n){let e=exports._addins[n].view;let t=exports._addins[n].opt;if(e!="*"&&s!=e){continue}if(t.template){if(t.template instanceof Function){if(o.indexOf("<html")>=0){var i=(new DOMParser).parseFromString(_sanitizeTemplate(o),"text/html");t.template(i);o=(new XMLSerializer).serializeToString(i)}else{o=`<pome-ui-template>${o}</pome-ui-template>`;var i=(new DOMParser).parseFromString(_sanitizeTemplate(o),"text/html");t.template(i);o=(new XMLSerializer).serializeToString(i);o=o.substr(o.indexOf("<pome-ui-template>")+"<pome-ui-template>".length);o=o.substr(0,o.indexOf("</pome-ui-template>"))}}else{o=t.template}}}return o}function UseAddin(addinUrl){var Addin=function(e,t){exports._addins.push({view:e,opt:t})};var js=_options.httpGetSync(addinUrl);eval(js)}function UseInlineAddin(script){var Addin=function(e,t){exports._addins.push({view:e,opt:t})};eval(script)}function Backward(){window.history.back()}exports.root=root;exports.useConfig=UseConfig;exports.mapRoute=MapRoute;exports.matchRoute=MatchRoute;exports.updateLayout=UpdateLayout;exports.redirect=Redirect;exports.replace=Replace;exports.backward=Backward;exports.loadScript=LoadScript;exports.forceUpdate=ForceUpdate;exports.mount=mount;exports.useRoutes=useRoutes;exports.useAddin=UseAddin;exports.useInlineAddin=UseInlineAddin;return exports}exports.build=build;
|
package/pome-ui.js
CHANGED
|
@@ -88,6 +88,15 @@ function build(options, exports) {
|
|
|
88
88
|
document.head.appendChild(style);
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
+
var _vueCloakInjected = false;
|
|
92
|
+
function _ensureVueCloakStyle() {
|
|
93
|
+
if (_vueCloakInjected) return;
|
|
94
|
+
_vueCloakInjected = true;
|
|
95
|
+
var style = document.createElement('style');
|
|
96
|
+
style.textContent = '._pome-vue-cloak{display:none!important}';
|
|
97
|
+
document.head.appendChild(style);
|
|
98
|
+
}
|
|
99
|
+
|
|
91
100
|
function _httpCached(url) {
|
|
92
101
|
return !!_cache[url];
|
|
93
102
|
}
|
|
@@ -660,6 +669,10 @@ function build(options, exports) {
|
|
|
660
669
|
|
|
661
670
|
_root = _app.mount(el);
|
|
662
671
|
_root.$.proxy = _root;
|
|
672
|
+
var _mountEl = document.querySelector(el);
|
|
673
|
+
if (_mountEl) {
|
|
674
|
+
_mountEl.classList.remove('_pome-vue-cloak');
|
|
675
|
+
}
|
|
663
676
|
});
|
|
664
677
|
});
|
|
665
678
|
}
|
|
@@ -880,7 +893,8 @@ function build(options, exports) {
|
|
|
880
893
|
|
|
881
894
|
var ticks = new Date().getTime();
|
|
882
895
|
var appId = 'pomelo-' + ticks;
|
|
883
|
-
|
|
896
|
+
_ensureVueCloakStyle();
|
|
897
|
+
document.querySelector('body').innerHTML = '<div id="' + appId + '" class="_pome-vue-cloak">' + document.querySelector('body').innerHTML + '</div>';
|
|
884
898
|
|
|
885
899
|
return Promise.resolve(appId);
|
|
886
900
|
})
|
|
@@ -1290,7 +1304,8 @@ function build(options, exports) {
|
|
|
1290
1304
|
var appId = 'pomelo-' + ticks;
|
|
1291
1305
|
var containerId = 'container-' + ticks;
|
|
1292
1306
|
var body = document.querySelector('body').innerHTML.replace('<render-body></render-body>', '<div id="' + containerId + '"></div>');
|
|
1293
|
-
|
|
1307
|
+
_ensureVueCloakStyle();
|
|
1308
|
+
document.querySelector('body').innerHTML = '<div id="' + appId + '" class="_pome-vue-cloak">' + body + '</div>';
|
|
1294
1309
|
options.template = null;
|
|
1295
1310
|
// Hook mounted
|
|
1296
1311
|
if (!options.mounted) {
|