wikiparser-node 1.1.6-b → 1.2.0-b

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,36 +1,36 @@
1
- (()=>{(()=>{"use strict";var Vt={891:(Q,b,t)=>{t.d(b,{Z:()=>E});var P=t(223),N=t(444);const U=g=>g.replace(/[\0\x7F]/gu,""),M={i18n:void 0,getConfig(){return{...N.L,...this.config,excludes:[]}},msg(g,f=""){var a,l;return g&&((l=(a=this.i18n)==null?void 0:a[g])!=null?l:g).replace("$1",this.msg(f))},normalizeTitle(g,f=0,a=!1,l=M.getConfig(),h=!1,u=!1,p=!1){const{Title:i}=t(599);if(h)return new i(g,f,l,u,p);const{Token:o}=t(541),s=P.j.run(()=>new o(g,l).parseOnce(0,a).parseOnce());return new i(String(s),f,l,u,p)},parse(g,f,a=N.C,l=M.getConfig()){const{Token:h}=t(541);return P.j.run(()=>new h(U(g),l).parse(a,f))}},W={},D=new Set(["normalizeTitle","parse"]);for(const g in M)D.has(g)||(W[g]={enumerable:!1});Object.defineProperties(M,W),typeof self=="object"?Object.assign(self,{Parser:M}):typeof globalThis=="object"&&Object.assign(globalThis,{Parser:M});const E=M},599:(Q,b,t)=>{t.r(b),t.d(b,{Title:()=>D});var P=t(467),N=t(891),U=Object.defineProperty,M=(E,g,f)=>g in E?U(E,g,{enumerable:!0,configurable:!0,writable:!0,value:f}):E[g]=f,W=(E,g,f)=>(M(E,typeof g!="symbol"?g+"":g,f),f);class D{constructor(g,f=0,a=N.Z.getConfig(),l=!1,h=!1){W(this,"valid"),W(this,"ns"),W(this,"fragment"),W(this,"encoded",!1);const{nsid:u}=a;if(g=(0,P.m9)(g),l&&g.includes("%"))try{const s=/%(?!21|3[ce]|5[bd]|7[b-d])[\da-f]{2}/iu.test(g);g=decodeURIComponent(g),this.encoded=s}catch(s){}g=g.replace(/_/gu," ").trim();let p=f;g.startsWith(":")&&(p=0,g=g.slice(1).trim());const i=g.split(":");if(i.length>1){const s=u[i[0].trim().toLowerCase()];s!==void 0&&(p=s,g=i.slice(1).join(":").trim())}this.ns=p;const o=g.indexOf("#");if(o!==-1){let s=g.slice(o+1).trim();this.fragment=s,g=g.slice(0,o).trim()}this.valid=!!(g||h&&this.fragment!==void 0)&&!/\0\d+[eh!+-]\x7F|[<>[\]{}|]|%[\da-f]{2}/iu.test(g)}}},959:(Q,b,t)=>{t.d(b,{a:()=>M});var P=Object.defineProperty,N=(W,D,E)=>D in W?P(W,D,{enumerable:!0,configurable:!0,writable:!0,value:E}):W[D]=E,U=(W,D,E)=>(N(W,typeof D!="symbol"?D+"":D,E),E);const M=W=>{class D extends W{text(){return""}}return U(D,"hidden",!0),D}},313:(Q,b,t)=>{t.r(b),t.d(b,{parseBraces:()=>G});var P=t(467),N=t(891),U=t(485),M=t(169),W=t(541),D=Object.defineProperty,E=(n,e,r)=>e in n?D(n,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[e]=r,g=(n,e,r)=>(E(n,typeof e!="symbol"?e+"":e,r),r);const f=n=>n.toString(new Set(["comment","noinclude","include"])).replace(/^[ \t\n\0\v]+|([^ \t\n\0\v])[ \t\n\0\v]+$/gu,"$1");class a extends W.Token{constructor(e,r,F=N.Z.getConfig(),m=[]){super(void 0,F,m),g(this,"type","parameter");const w=new W.Token(typeof e=="number"?void 0:e,F,m,{}),O=new W.Token(r,F,m);w.type="parameter-key",O.type="parameter-value",O.setAttribute("stage",2),this.append(w,O)}get anon(){return this.firstChild.length===0}afterBuild(){if(!this.anon){const{parentNode:e,firstChild:r}=this,F=f(r);this.setAttribute("name",F),e&&e.getArgs(F,!1,!1).add(this)}}toString(e){return this.anon?this.lastChild.toString(e):super.toString(e,"=")}text(){return this.anon?this.lastChild.text():super.text("=")}getGaps(){return this.anon?0:1}lint(e=this.getAbsoluteIndex()){var r;const F=super.lint(e),{firstChild:m}=this,w=(r=new RegExp(`https?://${P._X}${P.Qk}$`,"iu").exec(m.toString(new Set(["comment","noinclude","include"]))))==null?void 0:r[0];if(w&&new URL(w).search){const O=(0,M.D)(m,{start:e},"unescaped query string in an anonymous parameter");F.push({...O,startIndex:O.endIndex,endIndex:O.endIndex+1,startLine:O.endLine,startCol:O.endCol,endCol:O.endCol+1})}return F}print(){return super.print({sep:this.anon?"":"="})}}var l=t(34),h=t(669),u=Object.defineProperty,p=(n,e,r)=>e in n?u(n,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[e]=r,i=(n,e,r)=>(p(n,typeof e!="symbol"?e+"":e,r),r),o=(n,e,r)=>{if(!e.has(n))throw TypeError("Cannot "+r)},s=(n,e,r)=>(o(n,e,"read from private field"),r?r.call(n):e.get(n)),d=(n,e,r)=>{if(e.has(n))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(n):e.set(n,r)},v=(n,e,r,F)=>(o(n,e,"write to private field"),F?F.call(n,r):e.set(n,r),r),x=(n,e,r)=>(o(n,e,"access private method"),r),C,I,B,H,Y,K;class S extends W.Token{constructor(e,r,F=N.Z.getConfig(),m=[]){var w,O;super(void 0,F,m,{}),d(this,B),d(this,Y),i(this,"type","template"),i(this,"modifier",""),d(this,C,!1),d(this,I,new Map);const{parserFunction:[Z,X]}=F,J=(w=/^(?:\s|\0\d+c\x7F)*\0\d+s\x7F/u.exec(e))==null?void 0:w[0];if(J)this.setAttribute("modifier",J),e=e.slice(J.length);else if(e.includes(":")){const[q,...tt]=e.split(":"),[at]=/^(?:\s|\0\d+c\x7F)*/u.exec((O=tt[0])!=null?O:"");this.setModifier(`${q}:${at}`)&&(e=tt.join(":").slice(at.length))}if(e.includes(":")||r.length===0&&!s(this,C)){const[q,...tt]=e.split(":"),at=(0,P.PN)(q),et=at.trim(),ct=X.includes(et),nt=Z[et.toLowerCase()];if(!(tt.length>0&&/\s$/u.test(at))&&(ct||nt)){this.setAttribute("name",nt!=null?nt:et.toLowerCase()),this.type="magic-word";const rt=new RegExp(`^\\s*${et}\\s*$`,ct?"u":"iu"),st=new h.SyntaxToken(q,rt,"magic-word-name",F,m,{});if(super.insertAt(st),tt.length>0&&r.unshift([tt.join(":")]),this.name==="invoke")for(let lt=0;lt<2;lt++){const dt=r.shift();if(!dt)break;const it=new l.D(dt.join("="),`invoke-${lt?"function":"module"}`,F,m);super.insertAt(it)}}}if(this.type==="template"){const q=(0,P.PN)((0,P.m9)(e)).split("#")[0].trim();if(!q||/\0\d+[eh!+-]\x7F|[<>[\]{}\n]|%[\da-f]{2}/u.test(q))throw m.pop(),new SyntaxError(`\u975E\u6CD5\u7684\u6A21\u677F\u540D\u79F0\uFF1A${(0,P.jq)(q)}`);const tt=new l.D(e,"template-name",F,m,{});super.insertAt(tt)}const V=this.isTemplate();let k=1;for(let q=0;q<r.length;q++){const tt=r[q];!V&&!(this.name==="switch"&&q>0)&&(tt[0]=tt.join("="),tt.length=1),tt.length===1&&(tt.unshift(k),k++),this.insertAt(new a(...tt,F,m))}}setModifier(e){const{parserFunction:[,,r,F]}=this.getAttribute("config"),m=(0,P.PN)(e).trim();if(e&&!m.endsWith(":"))return!1;const w=m.slice(0,-1).toLowerCase(),O=r.includes(w),Z=F.includes(w);return s(this,C)&&O||!s(this,C)&&(Z||e==="")||this.length>1&&(O||Z||e==="")?(this.setAttribute("modifier",e),v(this,C,O),!!e):!1}isTemplate(){return this.type==="template"||this.name==="invoke"}afterBuild(){this.modifier.includes("\0")&&this.setAttribute("modifier",this.buildFromStr(this.modifier,"string"))}toString(e){return`{{${this.modifier}${this.type==="magic-word"?`${this.firstChild.toString(e)}${this.length===1?"":":"}${this.childNodes.slice(1).map(r=>r.toString(e)).join("|")}`:super.toString(e,"|")}}}`}text(){const{childNodes:e,length:r,firstChild:F,modifier:m,type:w,name:O}=this;return w==="magic-word"&&O==="vardefine"?"":`{{${m}${w==="magic-word"?`${F.text()}${r===1?"":":"}${(0,P.fL)(e.slice(1),"|")}`:super.text("|")}}}`}getAttribute(e){switch(e){case"padding":return this.modifier.length+2;default:return super.getAttribute(e)}}getGaps(){return 1}lint(e=this.getAbsoluteIndex()){const r=super.lint(e),{type:F,childNodes:m,length:w}=this;let O;if(!this.isTemplate())return r;const Z=x(this,B,H).call(this);if(Z)Z.fragment!==void 0&&(O={start:e,...this.getRootNode().posFromIndex(e)},r.push((0,M.D)(m[F==="template"?0:1],O,"useless fragment")));else return O={start:e,...this.getRootNode().posFromIndex(e)},r.push((0,M.Y)(this,O,"missing module name")),r;if(Z.valid||(O!=null||(O={start:e,...this.getRootNode().posFromIndex(e)}),r.push((0,M.D)(m[1],O,"illegal module name"))),F==="magic-word"&&w===2)return O!=null||(O={start:e,...this.getRootNode().posFromIndex(e)}),r.push((0,M.Y)(this,O,"missing module function")),r;const X=this.getDuplicatedArgs();return X.length>0&&(O!=null||(O={start:e,...this.getRootNode().posFromIndex(e)}),r.push(...X.flatMap(([,J])=>J).map(J=>(0,M.D)(J,O,"duplicated parameter")))),r}insertAt(e,r=this.length){return super.insertAt(e,r),e.anon?x(this,Y,K).call(this,e):e.name&&this.getArgs(e.name,!1,!1).add(e),e}getAllArgs(){return this.childNodes.filter(e=>e.type==="parameter")}getAnonArgs(){return this.getAllArgs().filter(({anon:e})=>e)}getArgs(e,r=!1,F=!0){const m=String(e).replace(/^[ \t\n\0\v]+|([^ \t\n\0\v])[ \t\n\0\v]+$/gu,"$1");let w;return s(this,I).has(m)?w=s(this,I).get(m):(w=new Set(this.getAllArgs().filter(({name:O})=>m===O)),s(this,I).set(m,w)),w}getDuplicatedArgs(){return this.isTemplate()?[...s(this,I)].filter(([,{size:e}])=>e>1).map(([e,r])=>[e,[...r]]):[]}getPossibleValues(){const{type:e,name:r,childNodes:F,constructor:{name:m}}=this;if(e==="template")throw new Error(`${m}.getPossibleValues \u65B9\u6CD5\u4EC5\u4F9B\u7279\u5B9A\u9B54\u672F\u5B57\u4F7F\u7528\uFF01`);let w;switch(r){case"if":case"ifexist":case"ifexpr":case"iferror":w=2;break;case"ifeq":w=3;break;default:throw new Error(`${m}.getPossibleValues \u65B9\u6CD5\u4EC5\u4F9B\u7279\u5B9A\u9B54\u672F\u5B57\u4F7F\u7528\uFF01`)}const O=F.slice(w,w+2).map(({childNodes:[,Z]})=>Z);for(let Z=0;Z<O.length;){const{length:X,0:J}=O[Z].childNodes.filter(V=>V.text().trim());if(X===0)O.splice(Z,1);else if(X>1||J.type!=="magic-word")Z++;else try{const V=J.getPossibleValues();O.splice(Z,1,...V),Z+=V.length}catch(V){Z++}}return O}print(){const{childNodes:e,length:r,firstChild:F,modifier:m,type:w}=this;return`<span class="wpb-${w}">{{${m}${w==="magic-word"?`${F.print()}${r===1?"":":"}${(0,P.S0)(e.slice(1),{sep:"|"})}`:(0,P.S0)(e,{sep:"|"})}}}</span>`}}C=new WeakMap,I=new WeakMap,B=new WeakSet,H=function(){const n=this.type==="template",e=this.childNodes[n?0:1];return e&&this.normalizeTitle(e.text(),n?10:828)},Y=new WeakSet,K=function(n){const e=this.getAnonArgs(),r=typeof n!="number";for(let F=r?e.indexOf(n):n-1;F<e.length;F++){const m=e[F],{name:w}=m,O=String(F+1);w!==O&&(m.setAttribute("name",O),this.getArgs(O,!1,!1).add(m))}};var _=t(465),T=Object.defineProperty,$=(n,e,r)=>e in n?T(n,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[e]=r,y=(n,e,r)=>($(n,typeof e!="symbol"?e+"":e,r),r);class R extends W.Token{constructor(e,r=N.Z.getConfig(),F=[]){super(void 0,r,F,{}),y(this,"type","arg");for(let m=0;m<e.length;m++)if(m===0){const w=new l.D(e[m],"arg-name",r,F,{});super.insertAt(w)}else if(m>1){const w=new _.R(e[m],r,F,{});super.insertAt(w)}else{const w=new W.Token(e[m],r,F);w.type="arg-default",w.setAttribute("stage",2),super.insertAt(w)}}get default(){var e,r;return(r=(e=this.childNodes[1])==null?void 0:e.text())!=null?r:!1}toString(e){return`{{{${super.toString(e,"|")}}}}`}text(){return`{{{${(0,P.fL)(this.childNodes.slice(0,2),"|")}}}}`}getAttribute(e){return e==="padding"?3:super.getAttribute(e)}getGaps(){return 1}lint(e=this.getAbsoluteIndex()){if(!this.getAttribute("include"))return[(0,M.Y)(this,{start:e},"unexpected template argument")];const{childNodes:[r,F,...m]}=this,w=r.lint(e+3);if(F&&w.push(...F.lint(e+4+String(r).length)),m.length>0){const O={start:e,...this.getRootNode().posFromIndex(e)};w.push(...m.map(Z=>{const X=(0,M.D)(Z,O,"invisible content inside triple braces"),{startIndex:J,startCol:V}=X;return{...X,startIndex:J-1,startCol:V-1}}))}return w}print(){return super.print({pre:"{{{",post:"}}}",sep:"|"})}}const G=(n,e=N.Z.getConfig(),r=[])=>{var F,m,w,O,Z,X;const J=`${(F=e.excludes)!=null&&F.includes("heading")?"":"^(\0\\d+c\x7F)*={1,6}|"}\\[\\[|\\{{2,}|-\\{(?!\\{)`,{parserFunction:[,,,V]}=e,k=[],q={"=":`
2
- `,"{":"\\}{2,}|\\|","-":"\\}-","[":"\\]\\]"},tt=new Map([["!","!"],["!!","+"],["(!","{"],["!)","}"],["!-","-"],["=","~"]]);let at=new RegExp(J,"gmu"),et=at.exec(n),ct=n.includes("}}"),nt;for(;et||nt!==void 0&&nt<=n.length&&((w=(m=k[k.length-1])==null?void 0:m[0])!=null&&w.startsWith("="));){if(et!=null&&et[1]){const[,{length:gt}]=et;et[0]=et[0].slice(gt),et.index+=gt}const{0:rt,index:st}=et!=null?et:{0:`
3
- `,index:n.length},lt=(O=k.pop())!=null?O:{},{0:dt,index:it,parts:ht,findEqual:wt,pos:Tt}=lt,Ot=rt==="="&&wt;if(rt==="]]"||rt==="}-")nt=st+2;else if(rt===`
4
- `){nt=st+1;const{pos:gt,findEqual:ft}=(Z=k[k.length-1])!=null?Z:{};if(gt===void 0||ft||(0,P.PN)(n.slice(gt,it))!==""){const vt=/^(={1,6})(.+)\1((?:\s|\0\d+c\x7F)*)$/u.exec(n.slice(it,st));vt&&(n=`${n.slice(0,it)}\0${r.length}h\x7F${n.slice(st)}`,nt=it+4+String(r.length).length,new U.D(vt[1].length,vt.slice(2),e,r))}}else if(rt==="|"||Ot)nt=st+1,ht[ht.length-1].push(n.slice(Tt,st)),rt==="|"&&ht.push([]),lt.pos=nt,lt.findEqual=rt==="|",k.push(lt);else if(rt.startsWith("}}")){const gt=rt.slice(0,Math.min(dt.length,3)),ft=dt.length-gt.length,{length:vt}=r;nt=st+gt.length,ht[ht.length-1].push(n.slice(Tt,st));let Ct=!1,At="t";if(gt.length===3){const ut=ht.map(L=>L.join("=")),$t=ut.length>1&&(0,P.PN)(ut[1]).trim();new R(ut,e,r),$t&&$t.endsWith(":")&&V.includes($t.slice(0,-1).toLowerCase())&&(At="s")}else try{new S(ht[0][0],ht.slice(1),e,r);const ut=(0,P.PN)(ht[0][0]).trim();tt.has(ut)?At=tt.get(ut):/^(?:filepath|(?:full|canonical)urle?):.|^server$/iu.test(ut)?At="m":/^#vardefine:./iu.test(ut)&&(At="c")}catch(ut){if(ut instanceof SyntaxError&&ut.message.startsWith("\u975E\u6CD5\u7684\u6A21\u677F\u540D\u79F0\uFF1A"))nt=it+dt.length,Ct=!0;else throw ut}Ct||(n=`${n.slice(0,it+ft)}\0${vt}${At}\x7F${n.slice(nt)}`,nt=it+ft+3+String(vt).length,ft>1?k.push({0:dt.slice(0,ft),index:it,pos:it+ft,parts:[[]]}):ft===1&&n[it-1]==="-"&&k.push({0:"-{",index:it-1,pos:it+1,parts:[[]]}))}else nt=st+rt.length,rt.startsWith("{")&&(et.pos=nt,et.parts=[[]]),k.push(..."0"in lt?[lt]:[],et);ct&&(ct=n.slice(nt).includes("}}"));let xt=k[k.length-1];!ct&&((X=xt==null?void 0:xt[0])!=null&&X.startsWith("{"))&&(k.pop(),xt=k[k.length-1]),at=new RegExp(J+(xt?`|${q[xt[0][0]]}${xt.findEqual?"|=":""}`:""),"gmu"),at.lastIndex=nt,et=at.exec(n)}return n}},551:(Q,b,t)=>{t.r(b),t.d(b,{parseCommentAndExt:()=>o});var P=t(891),N=t(541),U=Object.defineProperty,M=(s,d,v)=>d in s?U(s,d,{enumerable:!0,configurable:!0,writable:!0,value:v}):s[d]=v,W=(s,d,v)=>(M(s,typeof d!="symbol"?d+"":d,v),v);class D extends N.Token{constructor(){super(...arguments),W(this,"type","onlyinclude")}toString(d){return`<onlyinclude>${super.toString()}</onlyinclude>`}getAttribute(d){return d==="padding"?13:d==="plain"||super.getAttribute(d)}print(){return super.print({pre:'<span class="wpb-ext">&lt;onlyinclude&gt;</span>',post:'<span class="wpb-ext">&lt;/onlyinclude&gt;</span>'})}}var E=t(826),g=t(959),f=t(415),a=Object.defineProperty,l=(s,d,v)=>d in s?a(s,d,{enumerable:!0,configurable:!0,writable:!0,value:v}):s[d]=v,h=(s,d,v)=>(l(s,typeof d!="symbol"?d+"":d,v),v);class u extends(0,g.a)(f.m){constructor(d,v="",x,C,I=P.Z.getConfig(),B=[]){super(d,v,x!=null?x:"",x===void 0||C!=null?C:"",I,B),h(this,"type","include")}}var p=t(895),i=t(976);const o=(s,d=P.Z.getConfig(),v=[],x=!1)=>{const C="<onlyinclude>",I="</onlyinclude>",{length:B}=C;if(x){let _=s.indexOf(C),T=s.indexOf(I,_+B);if(_!==-1&&T!==-1){let $="";for(;_!==-1&&T!==-1;){const y=`\0${v.length}e\x7F`;new D(s.slice(_+B,T),d,v),_>0?(new E.O(s.slice(0,_),d,v),$+=`\0${v.length-1}c\x7F${y}`):$+=y,s=s.slice(T+B+1),_=s.indexOf(C),T=s.indexOf(I,_+B)}return s&&(new E.O(s,d,v),$+=`\0${v.length-1}c\x7F`),$}}const H=d.ext.join("|"),Y=x?"includeonly":"(?:no|only)include",K=x?"noinclude":"includeonly",S=new RegExp(`<!--.*?(?:-->|$)|<${Y}(?:\\s[^>]*?)?>|</${Y}\\s*>|<(${H})(\\s[^>]*?)?(?:/>|>(.*?)</(\\1\\s*)>)|<(${K})(\\s[^>]*?)?(?:/>|>(.*?)(?:</(\\5\\s*)>|$))`,"gisu");return s.replace(S,(_,T,$,y,R,G,n,e,r)=>{const F=`\0${v.length}${T?"e":"c"}\x7F`;if(T)new p.$(T,$,y,R,d,v);else if(_.startsWith("<!--")){const m=_.endsWith("-->");new i.T(_.slice(4,m?-3:void 0),m,d,v)}else G?new u(G,n,e,r,d,v):new E.O(_,d,v);return F})}},370:(Q,b,t)=>{t.r(b),t.d(b,{parseConverter:()=>Y});var P=t(891),N=t(467);const U=K=>{class S extends K{}return S};var M=t(541),W=t(169),D=t(34),E=Object.defineProperty,g=(K,S,_)=>S in K?E(K,S,{enumerable:!0,configurable:!0,writable:!0,value:_}):K[S]=_,f=(K,S,_)=>(g(K,typeof S!="symbol"?S+"":S,_),_),a=(K,S,_)=>{if(!S.has(K))throw TypeError("Cannot "+_)},l=(K,S,_)=>(a(K,S,"read from private field"),_?_.call(K):S.get(K)),h=(K,S,_)=>{if(S.has(K))throw TypeError("Cannot add the same private member more than once");S instanceof WeakSet?S.add(K):S.set(K,_)},u=(K,S,_,T)=>(a(K,S,"write to private field"),T?T.call(K,_):S.set(K,_),_),p;const i=new Set(["A","T","R","D","-","H","N"]);class o extends M.Token{constructor(S,_=P.Z.getConfig(),T=[]){super(void 0,_,T,{}),f(this,"type","converter-flags"),h(this,p,void 0),this.append(...S.map($=>new D.D($,"converter-flag",_,T)))}afterBuild(){u(this,p,this.childNodes.map(S=>S.text().trim()))}toString(S){return super.toString(S,";")}text(){return super.text(";")}getGaps(){return 1}getUnknownFlags(){return new Set(l(this,p).filter(S=>/\{{3}[^{}]+\}{3}/u.test(S)))}getVariantFlags(){const S=new Set(this.getAttribute("config").variants);return new Set(l(this,p).filter(_=>S.has(_)))}lint(S=this.getAbsoluteIndex()){const _=this.getVariantFlags(),T=this.getUnknownFlags(),$=new Set(l(this,p).filter(F=>i.has(F))),{length:y}=l(this,p).filter(F=>!F),R=l(this,p).length-T.size-y,G=super.lint(S);if(_.size===R||$.size===R)return G;const n={start:S,...this.getRootNode().posFromIndex(S)},{childNodes:e,length:r}=this;for(let F=0;F<r;F++){const m=e[F],w=m.text().trim();if(w&&!_.has(w)&&!T.has(w)&&(_.size>0||!$.has(w))){const O=(0,W.D)(m,n,"invalid conversion flag");G.push(O)}}return G}print(){return super.print({sep:";"})}}p=new WeakMap;var s=Object.defineProperty,d=(K,S,_)=>S in K?s(K,S,{enumerable:!0,configurable:!0,writable:!0,value:_}):K[S]=_,v=(K,S,_)=>(d(K,typeof S!="symbol"?S+"":S,_),_);class x extends M.Token{constructor(S,_=!0,T=P.Z.getConfig(),$=[]){super(void 0,T,$),v(this,"type","converter-rule");const y=S.indexOf(":"),R=S.slice(0,y).indexOf("=>"),G=R===-1?S.slice(0,y):S.slice(R+2,y);_&&T.variants.includes(G.trim())?(super.insertAt(new D.D(G,"converter-rule-variant",T,$)),super.insertAt(new D.D(S.slice(y+1),"converter-rule-to",T,$)),R!==-1&&super.insertAt(new D.D(S.slice(0,R),"converter-rule-from",T,$),0)):super.insertAt(new D.D(S,"converter-rule-to",T,$))}toString(S){const{childNodes:_}=this;if(_.length===3){const[T,$,y]=_;return`${T.toString(S)}=>${$.toString(S)}:${y.toString(S)}`}return super.toString(S,":")}text(){const{childNodes:S}=this;if(S.length===3){const[_,T,$]=S;return`${_.text()}=>${T.text()}:${$.text()}`}return super.text(":")}getGaps(S){return S===0&&this.length===3?2:1}print(){const{childNodes:S}=this;if(S.length===3){const[_,T,$]=S;return`<span class="wpb-converter-rule">${_.print()}=>${T.print()}:${$.print()}</span>`}return super.print({sep:":"})}}var C=Object.defineProperty,I=(K,S,_)=>S in K?C(K,S,{enumerable:!0,configurable:!0,writable:!0,value:_}):K[S]=_,B=(K,S,_)=>(I(K,typeof S!="symbol"?S+"":S,_),_);class H extends U(M.Token){constructor(S,_,T=P.Z.getConfig(),$=[]){super(void 0,T,$),B(this,"type","converter"),this.append(new o(S,T,$));const[y]=_,R=y.includes(":"),G=new x(y,R,T,$);R&&G.length===1?this.insertAt(new x(_.join(";"),!1,T,$)):this.append(G,..._.slice(1).map(n=>new x(n,!0,T,$)))}toString(S){const{childNodes:[_,...T]}=this;return`-{${_.toString()}${_.length>0?"|":""}${T.map($=>$.toString()).join(";")}}-`}text(){const{childNodes:[S,..._]}=this;return`-{${S.text()}|${(0,N.fL)(_,";")}}-`}getAttribute(S){return S==="padding"?2:super.getAttribute(S)}getGaps(S){return S||this.firstChild.length>0?1:0}print(){const{childNodes:[S,..._]}=this;return`<span class="wpb-converter">-{${S.print()}${S.length>0?"|":""}${(0,N.S0)(_,{sep:";"})}}-</span>`}}const Y=(K,S=P.Z.getConfig(),_=[])=>{const T=/-\{/gu,$=/-\{|\}-/gu,y=[];let R=T,G=R.exec(K);for(;G;){const{0:n,index:e}=G;if(n==="}-"){const r=y.pop(),{length:F}=_,m=K.slice(r.index+2,e),w=m.indexOf("|"),[O,Z]=w===-1?[[],m]:[m.slice(0,w).split(";"),m.slice(w+1)],X=Z.replace(/(&[#a-z\d]+);/giu,"$1"),J=`(?:${S.variants.join("|")})`,V=X.split(new RegExp(`;(?=\\s*(?:${J}|[^;]*?=>\\s*${J})\\s*:)`,"u")).map(k=>k.replace(/\x01/gu,";"));new H(O,V,S,_),K=`${K.slice(0,r.index)}\0${F}v\x7F${K.slice(e+2)}`,y.length===0&&(R=T),R.lastIndex=r.index+3+String(F).length}else y.push(G),R=$,R.lastIndex=e+2;G=R.exec(K)}return K}},418:(Q,b,t)=>{t.r(b),t.d(b,{parseExternalLinks:()=>M});var P=t(467),N=t(891),U=t(876);const M=(W,D=N.Z.getConfig(),E=[])=>{const g=new RegExp(`\\[((?:(?:${D.protocol}|//)${P._X}|\0\\d+m\x7F)${P.Qk})(\\p{Zs}*)([^\\]-\b
5
- -\uFFFD]*)\\]`,"giu");return W.replace(g,(f,a,l,h)=>{const{length:u}=E,p=/&[lg]t;/u.exec(a);return p&&(a=a.slice(0,p.index),l="",h=`${a.slice(p.index)}${l}${h}`),new U.a(a,l,h,D,E),`\0${u}w\x7F`})}},362:(Q,b,t)=>{t.r(b),t.d(b,{parseHrAndDoubleUnderscore:()=>u});var P=t(891),N=t(439),U=Object.defineProperty,M=(p,i,o)=>i in p?U(p,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):p[i]=o,W=(p,i,o)=>(M(p,typeof i!="symbol"?i+"":i,o),o);class D extends N.h{constructor(){super(...arguments),W(this,"type","hr")}}var E=t(959),g=Object.defineProperty,f=(p,i,o)=>i in p?g(p,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):p[i]=o,a=(p,i,o)=>(f(p,typeof i!="symbol"?i+"":i,o),o);class l extends(0,E.a)(N.h){constructor(i,o,s=P.Z.getConfig(),d=[]){super(i,s,d),a(this,"type","double-underscore")}getAttribute(i){return i==="padding"?2:super.getAttribute(i)}toString(i){return`__${this.innerText}__`}print(){return super.print({pre:"__",post:"__"})}}var h=t(485);const u=({firstChild:{data:p},type:i,name:o},s=P.Z.getConfig(),d=[])=>{const{doubleUnderscore:v}=s,x=new Set(v[0]),C=new Set(v[1]);return i!=="root"&&(i!=="ext-inner"||o!=="poem")&&(p=`\0${p}`),p=p.replace(/^((?:\0\d+c\x7F)*)(-{4,})/gmu,(I,B,H)=>(new D(H,s,d),`${B}\0${d.length-1}r\x7F`)).replace(new RegExp(`__(${v.flat().join("|")})__`,"giu"),(I,B)=>{const H=C.has(B);return H||x.has(B.toLowerCase())?(new l(B,H,s,d),`\0${d.length-1}u\x7F`):I}).replace(/^((?:\0\d+c\x7F)*)(={1,6})(.+)\2((?:[^\S\n]|\0\d+c\x7F)*)$/gmu,(I,B,H,Y,K)=>{const S=`${B}\0${d.length}h\x7F`;return new h.D(H.length,[Y,K],s,d),S}),i==="root"||i==="ext-inner"&&o==="poem"?p:p.slice(1)}},980:(Q,b,t)=>{t.r(b),t.d(b,{parseHtml:()=>d});var P=t(891),N=t(83),U=t(169),M=t(467),W=t(541),D=Object.defineProperty,E=(v,x,C)=>x in v?D(v,x,{enumerable:!0,configurable:!0,writable:!0,value:C}):v[x]=C,g=(v,x,C)=>(E(v,typeof x!="symbol"?x+"":x,C),C),f=(v,x,C)=>{if(!x.has(v))throw TypeError("Cannot "+C)},a=(v,x,C)=>(f(v,x,"read from private field"),C?C.call(v):x.get(v)),l=(v,x,C)=>{if(x.has(v))throw TypeError("Cannot add the same private member more than once");x instanceof WeakSet?x.add(v):x.set(v,C)},h=(v,x,C,I)=>(f(v,x,"write to private field"),I?I.call(v,C):x.set(v,C),C),u,p,i;const o=new Set(["if","ifeq","ifexpr","ifexist","iferror","switch"]);class s extends W.Token{constructor(x,C,I,B,H=P.Z.getConfig(),Y=[]){super(void 0,H,Y),g(this,"type","html"),l(this,u,void 0),l(this,p,void 0),l(this,i,void 0),this.insertAt(C),this.setAttribute("name",x.toLowerCase()),h(this,u,I),h(this,p,B),h(this,i,x)}get closing(){return a(this,u)}toString(x){return`<${this.closing?"/":""}${a(this,i)}${super.toString()}${a(this,p)?"/":""}>`}text(){const{closing:x}=this;return`<${x?"/":""}${a(this,i)}${x?"":super.text()}${a(this,p)?"/":""}>`}getAttribute(x){return x==="padding"?a(this,i).length+(this.closing?2:1):super.getAttribute(x)}lint(x=this.getAbsoluteIndex()){const C=super.lint(x);let I;this.name==="h1"&&!this.closing&&(I=(0,U.Y)(this,{start:x},"<h1>"),C.push(I)),this.closest("table-attrs")&&(I!=null||(I=(0,U.Y)(this,{start:x},"")),C.push({...I,message:P.Z.msg("HTML tag in table attributes")}));try{this.findMatchingTag()}catch(B){if(B instanceof SyntaxError){const{message:H}=B;I!=null||(I=(0,U.Y)(this,{start:x},""));const[Y]=H.split(":"),K={...I,message:P.Z.msg(Y)};if(Y==="unclosed tag")K.severity="warning";else if(Y==="unmatched closing tag"){const S=this.closest("magic-word");S&&o.has(S.name)&&(K.severity="warning")}C.push(K)}}return C}findMatchingTag(){const{html:x}=this.getAttribute("config"),{name:C,parentNode:I,closing:B}=this,H=(0,M.jq)(String(this));if(B&&(a(this,p)||x[2].includes(C)))throw new SyntaxError(`tag that is both closing and self-closing: ${H}`);if(x[2].includes(C)||a(this,p)&&x[1].includes(C))return this;if(a(this,p)&&x[0].includes(C))throw new SyntaxError(`invalid self-closing tag: ${H}`);if(!I)return;const{childNodes:Y}=I,K=Y.indexOf(this),S=(B?Y.slice(0,K).reverse():Y.slice(K+1)).filter(T=>T.type==="html"&&T.name===C);let _=B?-1:1;for(const T of S)if(a(T,u)?_--:_++,_===0)return T;throw new SyntaxError(`${B?"unmatched closing":"unclosed"} tag: ${H}`)}print(){return super.print({pre:`&lt;${this.closing?"/":""}${a(this,i)}`,post:`${a(this,p)?"/":""}&gt;`})}}u=new WeakMap,p=new WeakMap,i=new WeakMap;const d=(v,x=P.Z.getConfig(),C=[])=>{const I=/^(\/?)([a-z][^\s/>]*)((?:\s|\/(?!>))[^>]*?)?(\/?>)([^<]*)$/iu,B=new Set(x.html.flat()),H=v.split("<");let Y=H.shift();for(const K of H){const S=I.exec(K),_=S==null?void 0:S[2],T=_==null?void 0:_.toLowerCase();if(!S||!B.has(T)){Y+=`<${K}`;continue}const[,$,,y="",R,G]=S,n=new N.x(y,"html-attrs",T,x,C),e=n.getAttr("itemprop");if(T==="meta"&&(e===void 0||n.getAttr("content")===void 0)||T==="link"&&(e===void 0||n.getAttr("href")===void 0)){Y+=`<${K}`,C.pop();continue}Y+=`\0${C.length}x\x7F${G}`,new s(_,n,$==="/",R==="/>",x,C)}return Y}},106:(Q,b,t)=>{t.r(b),t.d(b,{parseLinks:()=>f});var P=t(891),N=t(524),U=t(533),M=t(299),W=Object.defineProperty,D=(a,l,h)=>l in a?W(a,l,{enumerable:!0,configurable:!0,writable:!0,value:h}):a[l]=h,E=(a,l,h)=>(D(a,typeof l!="symbol"?l+"":l,h),h);class g extends M.o{constructor(){super(...arguments),E(this,"type","category")}}const f=(a,l=P.Z.getConfig(),h=[])=>{const{parseQuotes:u}=t(704),p=l.inExt?/^((?:(?!\0\d+!\x7F)[^\n<>[\]{}|])+)(?:(\||\0\d+!\x7F)(.*?[^\]]))?\]\](.*)$/su:/^((?:(?!\0\d+!\x7F)[^\n<>[\]{}|])+)(?:(\||\0\d+!\x7F)(.*?[^\]])?)?\]\](.*)$/su,i=/^((?:(?!\0\d+!\x7F)[^\n<>[\]{}|])+)(\||\0\d+!\x7F)(.*)$/su,o=new RegExp(`^\\s*(?:${l.protocol})`,"iu"),s=a.split("[[");let d=s.shift();for(let v=0;v<s.length;v++){let x=!1,C,I,B,H;const Y=s[v],K=p.exec(Y);if(K)[,C,I,B,H]=K,H.startsWith("]")&&(B!=null&&B.includes("["))&&(B+="]",H=H.slice(1));else{const R=i.exec(Y);R&&(x=!0,[,C,I,B]=R)}if(C===void 0||o.test(C)||/\0\d+[exhbru]\x7F/u.test(C)){d+=`[[${Y}`;continue}const S=C.trim().startsWith(":");if(S&&x){d+=`[[${Y}`;continue}const _=P.Z.normalizeTitle(C,0,!1,l,!0,!0,!0),{ns:T,valid:$}=_;if($){if(x){if(T!==6){d+=`[[${Y}`;continue}let R=!1;for(v++;v<s.length;v++){const G=s[v],n=G.split("]]");if(n.length>2){R=!0,B+=`[[${n[0]}]]${n[1]}`,H=n.slice(2).join("]]");break}else if(n.length===2)B+=`[[${n[0]}]]${n[1]}`;else{B+=`[[${G}`;break}}if(B=f(B,l,h),!R){d+=`[[${C}${I}${B}`;continue}}}else{d+=`[[${Y}`;continue}B&&(B=u(B,l,h)),d+=`\0${h.length}l\x7F${H}`;let y=N.h;S||(T===6?y=U.q:T===14&&(y=g)),B===void 0&&I&&(B=""),new y(C,B,l,h,I)}return d}},904:(Q,b,t)=>{t.r(b),t.d(b,{parseList:()=>g});var P=t(891),N=t(933),U=Object.defineProperty,M=(f,a,l)=>a in f?U(f,a,{enumerable:!0,configurable:!0,writable:!0,value:l}):f[a]=l,W=(f,a,l)=>(M(f,typeof a!="symbol"?a+"":a,l),l);class D extends N.T{constructor(){super(...arguments),W(this,"type","list")}}var E=t(461);const g=(f,a=P.Z.getConfig(),l=[])=>{const h=/^((?:\0\d+c\x7F)*)([;:*#]+)/u.exec(f);if(!h)return f;const[u,p,i]=h;let o=`${p}\0${l.length}d\x7F${f.slice(u.length)}`,s=i.split(";").length-1;if(new D(i,a,l),!s)return o;let d=/:+|-\{/gu,v=d.exec(o),x=0;for(;v&&s;){const{0:C,index:I}=v;if(C.startsWith(":")){if(C.length>=s)return new E.k(":".repeat(s),a,l),`${o.slice(0,I)}\0${l.length-1}d\x7F${o.slice(I+s)}`;o=`${o.slice(0,I)}\0${l.length}d\x7F${o.slice(d.lastIndex)}`,s-=C.length,d.lastIndex=I+4+String(l.length).length,new E.k(C,a,l)}else if(C==="-{"){if(!x){const{lastIndex:B}=d;d=/-\{|\}-/gu,d.lastIndex=B}x++}else if(x--,!x){const{lastIndex:B}=d;d=/:+|-\{/gu,d.lastIndex=B}v=d.exec(o)}return o}},311:(Q,b,t)=>{t.r(b),t.d(b,{parseMagicLinks:()=>M});var P=t(467),N=t(891),U=t(686);const M=(W,D=N.Z.getConfig(),E=[])=>{const g=new RegExp(`(^|[^\\p{L}\\d_])(?:${D.protocol})(${P._X}${P.Qk})`,"giu");return W.replace(g,(f,a,l)=>{let h="",u=a?f.slice(1):f;const p=/&(?:lt|gt|nbsp|#x0*(?:3[ce]|a0)|#0*(?:6[02]|160));/iu.exec(u);p&&(h=u.slice(p.index),u=u.slice(0,p.index));const i=new RegExp(`[,;.:!?${u.includes("(")?"":")"}]+$`,"u"),o=i.exec(u);if(o){let s=0;o[0].startsWith(";")&&/&(?:[a-z]+|#x[\da-f]+|#\d+)$/iu.test(u.slice(0,o.index))&&(s=1),h=`${u.slice(o.index+s)}${h}`,u=u.slice(0,o.index+s)}return h.length>=l.length?f:(new U.k(u,!1,D,E),`${a}\0${E.length-1}w\x7F${h}`)})}},704:(Q,b,t)=>{t.r(b),t.d(b,{parseQuotes:()=>g});var P=t(891),N=t(169),U=t(439),M=Object.defineProperty,W=(f,a,l)=>a in f?M(f,a,{enumerable:!0,configurable:!0,writable:!0,value:l}):f[a]=l,D=(f,a,l)=>(W(f,typeof a!="symbol"?a+"":a,l),l);class E extends U.h{constructor(){super(...arguments),D(this,"type","quote")}lint(a=this.getAbsoluteIndex()){const{previousSibling:l,nextSibling:h}=this,u=P.Z.msg('lonely "$1"',"'"),p=[];let i;if((l==null?void 0:l.type)==="text"&&l.data.endsWith("'")){i=(0,N.Y)(this,{start:a},u);const{startIndex:o,startLine:s,startCol:d}=i,[,{length:v}]=/(?:^|[^'])('+)$/u.exec(l.data),x=a-v;p.push({...i,startIndex:x,endIndex:o,startCol:d-v,endLine:s,endCol:d})}if((h==null?void 0:h.type)==="text"&&h.data.startsWith("'")){i!=null||(i=(0,N.Y)(this,{start:a},u));const{endIndex:o,endLine:s,endCol:d}=i,[{length:v}]=/^'+/u.exec(h.data),x=o+v;p.push({...i,startIndex:o,endIndex:x,startLine:s,startCol:d,endCol:d+v})}return p}}const g=(f,a=P.Z.getConfig(),l=[])=>{var h;const u=f.split(/('{2,})/u),{length:p}=u;if(p===1)return f;let i=0,o=0,s,d,v;for(let x=1;x<p;x+=2){const{length:C}=u[x];switch(C){case 2:o++;break;case 4:u[x-1]+="'",u[x]="'''";case 3:if(i++,s!==void 0)break;u[x-1].endsWith(" ")?d===void 0&&v===void 0&&(v=x):u[x-1].slice(-2,-1)===" "?s=x:d!=null||(d=x);break;default:u[x-1]+="'".repeat(C-5),u[x]="'''''",o++,i++}}if(o%2===1&&i%2===1){const x=(h=s!=null?s:d)!=null?h:v;x!==void 0&&(u[x]="''",u[x-1]+="'")}for(let x=1;x<p;x+=2)new E(u[x],a,l),u[x]=`\0${l.length-1}q\x7F`;return u.join("")}},508:(Q,b,t)=>{t.r(b),t.d(b,{parseTable:()=>G});var P=t(891),N=t(541),U=t(169),M=t(223),W=t(669),D=t(83);class E extends N.Token{constructor(e,r,F,m=P.Z.getConfig(),w=[],O={}){super(void 0,m,w,O),this.append(new W.SyntaxToken(r,e,"table-syntax",m,w,{}),new D.x(F,"table-attrs",this.type,m,w))}}class g extends E{lint(e=this.getAbsoluteIndex()){const r=super.lint(e),F=this.childNodes.find(({type:J})=>J==="table-inter");if(!F)return r;const m=F.childNodes.find(J=>J.text().trim()),w=/^\s*(?:!|\{\{\s*![!-]?\s*\}\})/u,O=J=>J.type==="arg",Z=J=>J.type==="magic-word";if(!m||w.test(String(m))||O(m)&&w.test(m.default||""))return r;if(Z(m))try{if(m.getPossibleValues().every(J=>w.test(J.text())))return r}catch(J){}const X=(0,U.D)(F,{start:e},"content to be moved out from the table");return r.push({...X,startIndex:X.startIndex+1,startLine:X.startLine+1,startCol:0}),r}}var f=Object.defineProperty,a=(n,e,r)=>e in n?f(n,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[e]=r,l=(n,e,r)=>(a(n,typeof e!="symbol"?e+"":e,r),r);const h=/^\n[^\S\n]*(?:\|\}|\{\{\s*!\s*\}\}\}|\{\{\s*!\)\s*\}\})$/u;class u extends g{constructor(e,r,F=P.Z.getConfig(),m=[]){super(/^(?:\{\||\{\{\{\s*!\s*\}\}|\{\{\s*\(!\s*\}\})$/u,e,r,F,m,{}),l(this,"type","table")}get closed(){return this.lastChild.type==="table-syntax"}lint(e=this.getAbsoluteIndex()){const r=super.lint(e);if(!this.closed){const{firstChild:F}=this,m=(0,U.D)(F,{start:e},"unclosed table");r.push(m)}return r}close(e=`
6
- |}`,r=!1){const F=this.getAttribute("config"),m=this.getAttribute("accum"),w=[e],O=M.j.run(()=>super.insertAt(new W.SyntaxToken(void 0,h,"table-syntax",F,m,{})));this.lastChild.replaceChildren(...w)}}var p=Object.defineProperty,i=(n,e,r)=>e in n?p(n,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[e]=r,o=(n,e,r)=>(i(n,typeof e!="symbol"?e+"":e,r),r);class s extends g{constructor(e,r,F=P.Z.getConfig(),m=[]){super(/^\n[^\S\n]*(?:\|-+|\{\{\s*!\s*\}\}-+|\{\{\s*!-\s*\}\}-*)$/u,e,r,F,m,{}),o(this,"type","tr")}}var d=Object.defineProperty,v=(n,e,r)=>e in n?d(n,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[e]=r,x=(n,e,r)=>(v(n,typeof e!="symbol"?e+"":e,r),r),C=(n,e,r)=>{if(!e.has(n))throw TypeError("Cannot "+r)},I=(n,e,r)=>(C(n,e,"read from private field"),r?r.call(n):e.get(n)),B=(n,e,r)=>{if(e.has(n))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(n):e.set(n,r)},H=(n,e,r,F)=>(C(n,e,"write to private field"),F?F.call(n,r):e.set(n,r),r),Y=(n,e,r,F)=>({set _(m){H(n,e,m,r)},get _(){return I(n,e,F)}}),K=(n,e,r)=>(C(n,e,"access private method"),r),S,_,T;class $ extends E{constructor(e,r,F=P.Z.getConfig(),m=[]){var w;let O=/\||\0\d+!\x7F/u.exec(r!=null?r:""),Z=O?r.slice(0,O.index):"";/\[\[|-\{/u.test(Z)&&(O=null,Z=""),super(/^(?:\n[^\S\n]*(?:[|!]|\|\+|\{\{\s*!\s*\}\}\+?)|(?:\||\{\{\s*!\s*\}\}){2}|!!|\{\{\s*!!\s*\}\})$/u,e,Z,F,m),B(this,_),x(this,"type","td"),B(this,S,""),O&&([Y(this,S)._]=O);const X=new N.Token(r==null?void 0:r.slice(((w=O==null?void 0:O.index)!=null?w:NaN)+I(this,S).length),F,m);X.type="td-inner",X.setAttribute("stage",4),this.insertAt(X)}get subtype(){return K(this,_,T).call(this).subtype}afterBuild(){I(this,S).includes("\0")&&H(this,S,this.buildFromStr(I(this,S),"string"))}toString(e){const{childNodes:[r,F,m]}=this;return`${r.toString()}${F.toString()}${I(this,S)}${m.toString()}`}text(){const{childNodes:[e,r,F]}=this;return`${e.text()}${r.text()}${I(this,S)}${F.text()}`}getGaps(e){return e===1?I(this,S).length:0}lint(e=this.getAbsoluteIndex()){const r=super.lint(e);e+=this.getRelativeIndex(this.length-1);for(const F of this.lastChild.childNodes)F.type==="text"&&F.data.includes("|")&&r.push((0,U.D)(F,{start:e},'additional "|" in a table cell',"warning"));return r}print(){const{childNodes:[e,r,F]}=this;return`<span class="wpb-td">${e.print()}${r.print()}${I(this,S)}${F.print()}</span>`}}S=new WeakMap,_=new WeakSet,T=function(){const n=this.firstChild.text(),e=n[n.length-1];let r="td";return e==="!"?r="th":e==="+"&&(r="caption"),{subtype:r}};var y=t(461);const R=n=>n.lastChild.constructor!==N.Token,G=({firstChild:{data:n},type:e,name:r},F=P.Z.getConfig(),m=[])=>{const w=[],O=n.split(`
7
- `);let Z=e==="root"||e==="parameter-value"||e==="ext-inner"&&r==="poem"?"":`
8
- ${O.shift()}`;const X=(J,V)=>{if(!V){Z+=J;return}const{lastChild:k}=V;if(R(V)){const q=new N.Token(J,F,m);q.type="table-inter",q.setAttribute("stage",3),V.insertAt(q)}else k.setText(String(k)+J)};for(const J of O){let V=w.pop();const[k]=/^(?:\s|\0\d+c\x7F)*/u.exec(J),q=J.slice(k.length),tt=/^(:*)((?:\s|\0\d+c\x7F)*)(\{\||\{(?:\0\d+c\x7F)*\0\d+!\x7F|\0\d+\{\x7F)(.*)$/u.exec(q);if(tt){for(;V&&V.type!=="td";)V=w.pop();const[,st,lt,dt,it]=tt;st&&new y.k(st,F,m),X(`
9
- ${k}${st&&`\0${m.length-1}d\x7F`}${lt}\0${m.length}b\x7F`,V),w.push(...V?[V]:[],new u(dt,it,F,m));continue}else if(!V){Z+=`
10
- ${J}`;continue}const at=/^(?:(\|\}|\0\d+!\x7F\}|\0\d+\}\x7F)|(\|-+|\0\d+!\x7F-+|\0\d+-\x7F-*)(?!-)|(!|(?:\||\0\d+!\x7F)\+?))(.*)$/u.exec(q);if(!at){X(`
11
- ${J}`,V),w.push(V);continue}const[,et,ct,nt,rt]=at;if(et){for(;V.type!=="table";)V=w.pop();V.close(`
12
- ${k}${et}`,!0),X(rt,w[w.length-1])}else if(ct){V.type==="td"&&(V=w.pop()),V.type==="tr"&&(V=w.pop());const st=new s(`
13
- ${k}${ct}`,rt,F,m);w.push(V,st),V.insertAt(st)}else{V.type==="td"&&(V=w.pop());const st=nt==="!"?/!!|(?:\||\0\d+!\x7F){2}|\0\d+\+\x7F/gu:/(?:\||\0\d+!\x7F){2}|\0\d+\+\x7F/gu;let lt=st.exec(rt),dt=0,it=`
14
- ${k}${nt}`;for(;lt;)V.insertAt(new $(it,rt.slice(dt,lt.index),F,m)),{lastIndex:dt}=st,[it]=lt,lt=st.exec(rt);const ht=new $(it,rt.slice(dt),F,m);w.push(V,ht),V.insertAt(ht)}}return Z.slice(1)}},34:(Q,b,t)=>{t.d(b,{D:()=>U});var P=t(891),N=t(541);class U extends N.Token{constructor(W,D,E=P.Z.getConfig(),g=[],f){super(W,E,g,f),this.type=D}}},83:(Q,b,t)=>{t.d(b,{x:()=>S});var P=t(169),N=t(467),U=t(891),M=t(541),W=t(34),D=t(444),E=(_,T,$)=>{if(!T.has(_))throw TypeError("Cannot "+$)},g=(_,T,$)=>(E(_,T,"read from private field"),$?$.call(_):T.get(_)),f=(_,T,$)=>{if(T.has(_))throw TypeError("Cannot add the same private member more than once");T instanceof WeakSet?T.add(_):T.set(_,$)},a=(_,T,$,y)=>(E(_,T,"write to private field"),y?y.call(_,$):T.set(_,$),$),l,h;const u=new Set(["id","class","style","lang","dir","title","tabindex","aria-describedby","aria-flowto","aria-hidden","aria-label","aria-labelledby","aria-owns","role","about","property","resource","datatype","typeof","itemid","itemprop","itemref","itemscope","itemtype"]),p=new Set(["align"]),i=new Set(["cite"]),o=new Set(["cite","datetime"]),s=new Set(["width"]),d=new Set(["align","valign","abbr","axis","headers","scope","rowspan","colspan","width","height","bgcolor"]),v=new Set(["type"]),x={div:p,h1:p,h2:p,h3:p,h4:p,h5:p,h6:p,blockquote:i,q:i,p,br:new Set(["clear"]),pre:s,ins:o,del:o,ul:v,ol:new Set(["type","start","reversed"]),li:new Set(["type","value"]),table:new Set(["summary","width","border","frame","rules","cellspacing","cellpadding","align","bgcolor"]),caption:p,tr:new Set(["bgcolor","align","valign"]),td:d,th:d,img:new Set(["alt","src","width","height","srcset"]),font:new Set(["size","color","face"]),hr:s,rt:new Set(["rbspan"]),data:new Set(["value"]),time:new Set(["datetime"]),meta:new Set(["itemprop","content"]),link:new Set(["itemprop","href","title"]),gallery:new Set(["mode","showfilename","caption","perrow","widths","heights","showthumbnails","type"]),poem:new Set(["compact","align"]),categorytree:new Set(["align","hideroot","onlyroot","depth","mode","hideprefix","namespaces","showcount","notranslations"]),combooption:new Set(["name","for","inline","align"])},C=new Set,I={nowiki:C,indicator:new Set(["name"]),langconvert:new Set(["from","to"]),ref:new Set(["group","name","extends","follow","dir"]),references:new Set(["group","responsive"]),charinsert:new Set(["label"]),choose:new Set(["uncached","before","after"]),option:new Set(["weight"]),imagemap:C,inputbox:C,templatestyles:new Set(["src","wrapper"]),dynamicpagelist:C,poll:new Set(["id","show-results-before-voting"]),sm2:v,flashmp3:v,tab:new Set(["nested","name","index","class","block","inline","openname","closename","collapsed","dropdown","style","bgcolor","container","id","title"]),tabs:new Set(["plain","class","container","id","title","style"]),combobox:new Set(["placeholder","value","id","class","text","dropdown","style"])},B=new RegExp("expression|(?:filter|accelerator|-o-link(?:-source)?|-o-replace)\\s*:|(?:url|image(?:-set)?)\\s*\\(|attr\\s*\\([^)]+[\\s,]url","u");class H extends M.Token{constructor(T,$,y,R="",G,n=[],e=U.Z.getConfig(),r=[]){const F=new W.D(y,"attr-key",e,r,{});let m;if(y==="title"||$==="img"&&y==="alt")m=new M.Token(G,e,r,{}),m.type="attr-value",m.setAttribute("stage",D.C-1);else if($==="gallery"&&y==="caption"){const w={...e,excludes:[...e.excludes,"quote","extLink","magicLink","list"]};m=new M.Token(G,w,r,{}),m.type="attr-value",m.setAttribute("stage",5)}else if($==="choose"&&(y==="before"||y==="after")){const w={...e,excludes:[...e.excludes,"heading","html","table","hr","list"]};m=new M.Token(G,w,r,{}),m.type="attr-value",m.setAttribute("stage",1)}else m=new W.D(G,"attr-value",e,r,{});super(void 0,e,r),f(this,l,void 0),f(this,h,void 0),this.type=T,this.append(F,m),a(this,l,R),a(this,h,[...n]),this.tag=$,this.setAttribute("name",(0,N.PN)(y).trim().toLowerCase())}get balanced(){return!g(this,l)||g(this,h)[0]===g(this,h)[1]}afterBuild(){g(this,l).includes("\0")&&a(this,l,this.buildFromStr(g(this,l),"string")),this.parentNode&&this.setAttribute("tag",this.parentNode.name),this.setAttribute("name",this.firstChild.text().trim().toLowerCase())}toString(T){const[$="",y=""]=g(this,h);return g(this,l)?`${super.toString(T,`${g(this,l)}${$}`)}${y}`:this.firstChild.toString(T)}text(){return g(this,l)?`${super.text(`${g(this,l).trim()}"`)}"`:this.firstChild.text()}getGaps(){var T,$;return g(this,l)?g(this,l).length+(($=(T=g(this,h)[0])==null?void 0:T.length)!=null?$:0):0}lint(T=this.getAbsoluteIndex()){var $;const y=super.lint(T),{balanced:R,firstChild:G,lastChild:n,type:e,name:r,tag:F}=this,m=this.getValue();let w;if(!R){const O=this.getRootNode();w={start:T,...O.posFromIndex(T)};const Z=(0,P.D)(n,w,"unclosed quotes","warning"),X=Z.startIndex-1;y.push({...Z,startIndex:X,startCol:Z.startCol-1})}return I[F]&&!I[F].has(r)||(e==="ext-attr"?F in x:!/\{\{[^{]+\}\}/u.test(r))&&!(($=x[F])!=null&&$.has(r))&&!/^(?:xmlns:[\w:.-]+|data-[^:]*)$/u.test(r)&&(F==="meta"||F==="link"||!u.has(r))?(w!=null||(w={start:T,...this.getRootNode().posFromIndex(T)}),y.push((0,P.D)(G,w,"illegal attribute name"))):r==="style"&&typeof m=="string"&&B.test(m)?(w!=null||(w={start:T,...this.getRootNode().posFromIndex(T)}),y.push((0,P.D)(n,w,"insecure style"))):r==="tabindex"&&typeof m=="string"&&m.trim()!=="0"&&(w!=null||(w={start:T,...this.getRootNode().posFromIndex(T)}),y.push((0,P.D)(n,w,"nonzero tabindex"))),y}getValue(){if(g(this,l)){const T=this.lastChild.text();return g(this,h)[1]?T:T.trim()}return this.type==="ext-attr"||""}print(){const[T="",$=""]=g(this,h);return g(this,l)?super.print({sep:`${g(this,l)}${T}`,post:$}):super.print()}}l=new WeakMap,h=new WeakMap;const Y=_=>_.slice(0,-1),K=_=>`${Y(_)}-dirty`;class S extends M.Token{constructor(T,$,y,R=U.Z.getConfig(),G=[]){if(super(void 0,R,G,{}),this.type=$,this.setAttribute("name",y),T){const n=new RegExp(`([^\\s/](?:(?!\0\\d+~\x7F)[^\\s/=])*)(?:((?:\\s|\0\\d+c\x7F)*(?:=|\0\\d+~\x7F)(?:\\s|\0\\d+c\x7F)*)(?:(["'])(.*?)(\\3|$)|(\\S*)))?`,"gsu");let e="",r=n.exec(T),F=0;const m=()=>{e&&(super.insertAt(new W.D(e,K($),R,G,{})),e="")};for(;r;){const{index:w,0:O,1:Z,2:X,3:J,4:V,5:k,6:q}=r;if(e+=T.slice(F,w),/^(?:[\w:]|\0\d+[t!~{}+-]\x7F)(?:[\w:.-]|\0\d+[t!~{}+-]\x7F)*$/u.test((0,N.PN)(Z).trim())){const tt=V!=null?V:q,at=[J,k],et=new H(Y($),y,Z,X,tt,at,R,G);m(),super.insertAt(et)}else e+=O;({lastIndex:F}=n),r=n.exec(T)}e+=T.slice(F),m()}}afterBuild(){if(this.type==="table-attrs"){const{parentNode:T}=this;this.setAttribute("name",(T==null?void 0:T.type)==="td"&&T.subtype==="caption"?"caption":T==null?void 0:T.type)}}getAttrTokens(T){return this.childNodes.filter($=>$ instanceof H&&(!T||$.name===T.toLowerCase().trim()))}getAttrToken(T){const $=this.getAttrTokens(T);return $[$.length-1]}getAttr(T){var $;return($=this.getAttrToken(T))==null?void 0:$.getValue()}lint(T=this.getAbsoluteIndex()){const $=super.lint(T),{parentNode:y,length:R,childNodes:G}=this,n=new Map,e=new Set;let r;(y==null?void 0:y.type)==="html"&&y.closing&&this.text().trim()&&(r={start:T,...this.getRootNode().posFromIndex(T)},$.push((0,P.Y)(this,r,"attributes of a closing tag")));for(let F=0;F<R;F++){const m=G[F];if(m instanceof W.D&&m.text().trim())r!=null||(r={start:T,...this.getRootNode().posFromIndex(T)}),$.push((0,P.D)(m,r,"containing invalid attribute"));else if(m instanceof H){const{name:w}=m;n.has(w)?(e.add(w),n.get(w).push(m)):w!=="class"&&n.set(w,[m])}}if(e.size>0){r!=null||(r={start:T,...this.getRootNode().posFromIndex(T)});for(const F of e)$.push(...n.get(F).map(m=>(0,P.D)(m,r,U.Z.msg("duplicated $1 attribute",F))))}return $}print(){return String(this)?`<span class="wpb-${this.type}">${this.childNodes.map(T=>T.print(T instanceof W.D&&T.text().trim()?{class:"hidden"}:void 0)).join("")}</span>`:""}}},876:(Q,b,t)=>{t.d(b,{a:()=>p});var P=t(444);const N=i=>{class o extends i{}return o};var U=t(891),M=t(541),W=t(686),D=Object.defineProperty,E=(i,o,s)=>o in i?D(i,o,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[o]=s,g=(i,o,s)=>(E(i,typeof o!="symbol"?o+"":o,s),s),f=(i,o,s)=>{if(!o.has(i))throw TypeError("Cannot "+s)},a=(i,o,s)=>(f(i,o,"read from private field"),s?s.call(i):o.get(i)),l=(i,o,s)=>{if(o.has(i))throw TypeError("Cannot add the same private member more than once");o instanceof WeakSet?o.add(i):o.set(i,s)},h=(i,o,s,d)=>(f(i,o,"write to private field"),d?d.call(i,s):o.set(i,s),s),u;class p extends N(M.Token){constructor(o,s="",d="",v=U.Z.getConfig(),x=[]){if(super(void 0,v,x,{}),g(this,"type","ext-link"),l(this,u,void 0),this.insertAt(new W.k(o,!0,v,x)),h(this,u,s),d){const C=new M.Token(d,v,x,{});C.type="ext-link-text",C.setAttribute("stage",P.C-1),this.insertAt(C)}}toString(o){return this.length===1?`[${super.toString(o)}${a(this,u)}]`:`[${super.toString(o,a(this,u))}]`}text(){return`[${super.text(" ")}]`}getAttribute(o){return o==="padding"?1:super.getAttribute(o)}getGaps(){return a(this,u).length}print(){return super.print(this.length===1?{pre:"[",post:`${a(this,u)}]`}:{pre:"[",sep:a(this,u),post:"]"})}}u=new WeakMap},420:(Q,b,t)=>{t.r(b),t.d(b,{GalleryToken:()=>u});var P=t(891),N=t(541),U=t(39),M=t(465),W=Object.defineProperty,D=(p,i,o)=>i in p?W(p,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):p[i]=o,E=(p,i,o)=>(D(p,typeof i!="symbol"?i+"":i,o),o),g=(p,i,o)=>{if(!i.has(p))throw TypeError("Cannot "+o)},f=(p,i,o)=>{if(i.has(p))throw TypeError("Cannot add the same private member more than once");i instanceof WeakSet?i.add(p):i.set(p,o)},a=(p,i,o)=>(g(p,i,"access private method"),o),l,h;class u extends N.Token{constructor(i,o=P.Z.getConfig(),s=[]){var d;super(void 0,o,s,{}),f(this,l),E(this,"type","ext-inner");for(const v of(d=i==null?void 0:i.split(`
15
- `))!=null?d:[]){const x=/^([^|]+)(?:\|(.*))?/u.exec(v);if(!x){super.insertAt(v.trim()?new M.R(v,o,[],{}):v);continue}const[,C,I]=x;a(this,l,h).call(this,C)?super.insertAt(new U._("gallery",C,I,o,s)):super.insertAt(new M.R(v,o,[],{}))}}toString(i){return super.toString(i,`
1
+ "use strict";(()=>{var ut=Object.defineProperty;var wi=Object.getOwnPropertyDescriptor;var Ci=Object.getOwnPropertyNames;var Ni=Object.prototype.hasOwnProperty;var Fi=(l,i,e)=>i in l?ut(l,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):l[i]=e;var b=(l,i)=>()=>(l&&(i=l(l=0)),i);var Ei=(l,i)=>()=>(i||l((i={exports:{}}).exports,i),i.exports),M=(l,i)=>{for(var e in i)ut(l,e,{get:i[e],enumerable:!0})},Li=(l,i,e,t)=>{if(i&&typeof i=="object"||typeof i=="function")for(let r of Ci(i))!Ni.call(l,r)&&r!==e&&ut(l,r,{get:()=>i[r],enumerable:!(t=wi(i,r))||t.enumerable});return l};var R=l=>Li(ut({},"__esModule",{value:!0}),l);var f=(l,i,e)=>(Fi(l,typeof i!="symbol"?i+"":i,e),e),sr=(l,i,e)=>{if(!i.has(l))throw TypeError("Cannot "+e)};var u=(l,i,e)=>(sr(l,i,"read from private field"),e?e.call(l):i.get(l)),k=(l,i,e)=>{if(i.has(l))throw TypeError("Cannot add the same private member more than once");i instanceof WeakSet?i.add(l):i.set(l,e)},$=(l,i,e,t)=>(sr(l,i,"write to private field"),t?t.call(l,e):i.set(l,e),e);var ht=(l,i,e,t)=>({set _(r){$(l,i,r,e)},get _(){return u(l,i,t)}}),E=(l,i,e)=>(sr(l,i,"access private method"),e);var tt,or=b(()=>{"use strict";tt={run(l){return l()}}});var Mr=Ei((os,Ii)=>{Ii.exports={ext:[],html:[["b","bdi","del","i","ins","u","font","big","small","sub","sup","h1","h2","h3","h4","h5","h6","cite","code","em","s","strike","strong","tt","var","div","center","blockquote","ol","ul","dl","table","caption","pre","ruby","rb","rp","rt","rtc","p","span","abbr","dfn","kbd","samp","data","time","mark","tr","td","th","q","bdo"],["li","dt","dd"],["br","wbr","hr","meta","link","img"]],namespaces:{},nsid:{file:6,category:14},parserFunction:[{"#language":"language","#special":"special","#speciale":"speciale","#tag":"tag","#formatdate":"formatdate","#invoke":"invoke","#while":"while","#dowhile":"dowhile","#loop":"loop","#forargs":"forargs","#fornumargs":"fornumargs","#if":"if","#ifeq":"ifeq","#switch":"switch","#ifexist":"ifexist","#ifexpr":"ifexpr","#iferror":"iferror","#time":"time","#timel":"timel","#expr":"expr","#rel2abs":"rel2abs","#titleparts":"titleparts","#categorytree":"categorytree","#urldecode":"urldecode","#choose":"choose","#var":"var","#varexists":"varexists","#var_final":"var_final","#vardefine":"vardefine","#vardefineecho":"vardefineecho","#widget":"widget","#regex":"regex","#related":"related","#cscore":"cscore"},["!","="],["msg","\u539F\u59CB","raw"],["\u66FF\u4EE3","subst","\u5B89\u5168\u66FF\u4EE3","safesubst"]],doubleUnderscore:[[],[]],protocol:"bitcoin:|ftp://|ftps://|geo:|git://|gopher://|http://|https://|irc://|ircs://|magnet:|mailto:|mms://|news:|nntp://|redis://|sftp://|sip:|sips:|sms:|ssh://|svn://|tel:|telnet://|urn:|worldwind://|xmpp:",interwiki:[],img:{},variants:[]}});var _r,ce=b(()=>{"use strict";_r=Mr()});var fe,xe,J,Ur,se,mt,ct,oe,H=b(()=>{"use strict";fe='(?:\\[[\\da-f:.]+\\]|[^[\\]<>"\\0-\\x1F\\x7F\\p{Zs}\\uFFFD])',xe='(?:[^[\\]<>"\\0-\\x1F\\x7F\\p{Zs}\\uFFFD]|\\0\\d+[c!~]\\x7F)*',J=l=>l.replace(/\0\d+c\x7F/gu,""),Ur=l=>l.replace(/[\\{}()|.?*+^$[\]]/gu,"\\$&"),se=(l,i="")=>l.map(e=>typeof e=="string"?e:e.text()).join(i),mt=l=>l.replace(/&#(\d+|x[\da-f]+);/giu,(i,e)=>String.fromCodePoint(+`${e.toLowerCase().startsWith("x")?"0":""}${e}`)),ct=l=>l.replace(/\n/gu,"\\n"),oe=(l,i={})=>{let{pre:e="",post:t="",sep:r=""}=i;return`${e}${l.map(n=>n.print()).join(r)}${t}`}});var Dr={};M(Dr,{Title:()=>ar});var ar,Hr=b(()=>{"use strict";H();y();ar=class{constructor(i,e=0,t=h.getConfig(),r=!1,n=!1){f(this,"valid");f(this,"ns");f(this,"fragment");f(this,"encoded",!1);let{nsid:s}=t;if(i=mt(i),r&&i.includes("%"))try{let g=/%(?!21|3[ce]|5[bd]|7[b-d])[\da-f]{2}/iu.test(i);i=decodeURIComponent(i),this.encoded=g}catch(g){}i=i.replace(/_/gu," ").trim();let o=e;i.startsWith(":")&&(o=0,i=i.slice(1).trim());let a=i.split(":");if(a.length>1){let g=s[a[0].trim().toLowerCase()];g!==void 0&&(o=g,i=a.slice(1).join(":").trim())}this.ns=o;let p=i.indexOf("#");if(p!==-1){let g=i.slice(p+1).trim();this.fragment=g,i=i.slice(0,p).trim()}this.valid=!!(i||n&&this.fragment!==void 0)&&!/\0\d+[eh!+-]\x7F|[<>[\]{}|]|%[\da-f]{2}/iu.test(i)}}});var rt,nt,lr,Re,dr=b(()=>{"use strict";Re=class{constructor(){k(this,nt);f(this,"childNodes",[]);k(this,rt,void 0)}get firstChild(){return this.childNodes[0]}get lastChild(){return this.childNodes[this.childNodes.length-1]}get parentNode(){return u(this,rt)}get nextSibling(){var e;let i=(e=this.parentNode)==null?void 0:e.childNodes;return i&&i[i.indexOf(this)+1]}get previousSibling(){var e;let i=(e=this.parentNode)==null?void 0:e.childNodes;return i&&i[i.indexOf(this)-1]}get offsetHeight(){return E(this,nt,lr).call(this).height}get offsetWidth(){return E(this,nt,lr).call(this).width}getAttribute(i){return i==="padding"?0:i in this?String(this[i]):void 0}setAttribute(i,e){i==="parentNode"?$(this,rt,e):this[i]=e}getRootNode(){let{parentNode:i}=this;for(;i!=null&&i.parentNode;)({parentNode:i}=i);return i!=null?i:this}posFromIndex(i){let e=String(this);if(i>=-e.length&&i<=e.length){let t=e.slice(0,i).split(`
2
+ `);return{top:t.length-1,left:t[t.length-1].length}}}getGaps(i){return 0}getRelativeIndex(i){let e,t=(r,n)=>e.slice(0,r).reduce((s,o,a)=>s+String(o).length+n.getGaps(a),0)+n.getAttribute("padding");if(i===void 0){let{parentNode:r}=this;return r?({childNodes:e}=r,t(e.indexOf(this),r)):0}return{childNodes:e}=this,t(i,this)}getAbsoluteIndex(){let{parentNode:i}=this;return i?i.getAbsoluteIndex()+this.getRelativeIndex():0}};rt=new WeakMap,nt=new WeakSet,lr=function(){let i=String(this).split(`
3
+ `);return{height:i.length,width:i[i.length-1].length}}});var Vr={};M(Vr,{SyntaxToken:()=>ee});var ee,Ge=b(()=>{"use strict";y();C();ee=class extends x{constructor(i,e,t="plain",r=h.getConfig(),n=[],s){super(i,r,n,s),this.type=t}}});var Pi,ft,Xr=b(()=>{"use strict";H();dr();Pi=new Set(["nowiki","pre","charinsert","score","syntaxhighlight","source","math","chem","ce","graph","mapframe","maplink","quiz","templatedata","timeline"]),ft=class extends Re{get length(){return this.childNodes.length}text(i){return se(this.childNodes,i)}normalize(){let{childNodes:i}=this;for(let e=i.length-1;e>=0;e--){let{type:t,data:r}=i[e],n=i[e-1];t!=="text"||this.getGaps(e-1)||(r===""?i.splice(e,1):(n==null?void 0:n.type)==="text"&&(n.setAttribute("data",n.data+r),i.splice(e,1)))}}removeAt(i){let{childNodes:e}=this,[t]=e.splice(i,1);return t}insertAt(i,e=this.length){let{childNodes:t}=this;return i.setAttribute("parentNode",this),t.splice(e,0,i),i}closest(i){let{parentNode:e}=this,t,r=new Set(i.split(",").map(n=>n.trim()));for(t=n=>r.has(n.type);e;){if(t(e))return e;({parentNode:e}=e)}}append(...i){for(let e of i)this.insertAt(e)}replaceChildren(...i){this.childNodes.length=0,this.append(...i)}setText(i,e=0){let t=this.childNodes[e],{data:r}=t;return t.replaceData(i),r}toString(i,e=""){return this.childNodes.map(t=>t.toString()).join(e)}lint(i=this.getAbsoluteIndex()){let{SyntaxToken:e}=(Ge(),R(Vr));if(this instanceof e||this.constructor.hidden||this.type==="ext-inner"&&Pi.has(this.name))return[];let t=[];for(let r=0,n=i+this.getAttribute("padding");r<this.length;r++){let s=this.childNodes[r];t.push(...s.lint(n)),n+=String(s).length+this.getGaps(r)}return t}print(i={}){var e;return String(this)?`<span class="wpb-${(e=i.class)!=null?e:this.type}">${oe(this.childNodes,i)}</span>`:""}}});var Ri,Gi,qi,xt,Qr,it,Kr=b(()=>{"use strict";y();dr();Ri=/https?:\/\/|\{+|\}+|\[{2,}|\[(?![^[]*\])|((?:^|\])[^[]*?)\]+|<\s*\/?([a-z]\w*)/giu,Gi=/\{+|\}+|\[{2,}|\[(?![^[]*\])|((?:^|\])[^[]*?)\]+|<\s*\/?([a-z]\w*)/giu,qi=["html","head","style","title","body","a","audio","img","video","embed","iframe","object","canvas","script","col","colgroup","tbody","tfoot","thead","button","input","label","option","select","textarea"],it=class extends Re{constructor(e){super();k(this,xt);f(this,"type","text");f(this,"data","");this.data=e}toString(){return this.data}text(){return this.data}lint(e=this.getAbsoluteIndex()){let{data:t,parentNode:r,nextSibling:n,previousSibling:s}=this,{type:o,name:a}=r,p=n==null?void 0:n.type,g=s==null?void 0:s.type,d=o==="free-ext-link"||o==="ext-link-url"||o==="image-parameter"&&a==="link"?Gi:Ri,c=[],{ext:m,html:T}=this.getRootNode().getAttribute("config");if(t.search(d)!==-1){d.lastIndex=0;let A=this.getRootNode(),{top:N,left:j}=A.posFromIndex(e),w=new Set([m,T,qi].flat(2));for(let S=d.exec(t);S;S=d.exec(t)){let[,I,P]=S,{0:F,index:B}=S;if(I&&I!=="]"){let{length:zr}=I;B+=zr,F=F.slice(zr)}let Q=e+B,ve=t.slice(0,B).split(`
4
+ `),gt=ve.length+N-1,ne=ve[ve.length-1],Z=ve.length===1?j+ne.length:ne.length,{0:W,length:ie}=F,et=Q+ie,me=String(A),_=me[et],Se=me[Q-1],ir=ie>1&&(W!=="<"||/[\s/>]/u.test(_!=null?_:""))||W==="{"&&(_===W||Se==="-")||W==="}"&&(Se===W||_==="-")||W==="["&&(_===W||o==="ext-link-text"||!t.slice(B+1).trim()&&p==="free-ext-link")||W==="]"&&(Se===W||!t.slice(0,B).trim()&&g==="free-ext-link")?"error":"warning";(W!=="h"||B>0)&&(W!=="<"||w.has(P.toLowerCase()))&&c.push({message:h.msg('lonely "$1"',W==="h"?F:W),severity:ir,startIndex:Q,endIndex:et,startLine:gt,endLine:gt,startCol:Z,endCol:Z+ie})}return c}return[]}replaceData(e){E(this,xt,Qr).call(this,e)}print(){let e={"&":"amp","<":"lt",">":"gt"};return this.data.replace(/[&<>]/gu,t=>`&${e[t]};`)}};xt=new WeakSet,Qr=function(e){this.setAttribute("data",e)}});var Tt,Zr=b(()=>{"use strict";C();Tt=class extends x{constructor(){super(...arguments);f(this,"type","onlyinclude")}toString(e){return`<onlyinclude>${super.toString()}</onlyinclude>`}getAttribute(e){return e==="padding"?13:e==="plain"||super.getAttribute(e)}print(){return super.print({pre:'<span class="wpb-ext">&lt;onlyinclude&gt;</span>',post:'<span class="wpb-ext">&lt;/onlyinclude&gt;</span>'})}}});var ae,qe=b(()=>{"use strict";ae=l=>{class i extends l{text(){return""}}return f(i,"hidden",!0),i}});var V,Te=b(()=>{"use strict";y();C();V=class extends x{get innerText(){return this.firstChild.data}constructor(i="",e=h.getConfig(),t=[]){super(i,e,t)}}});var U,$e=b(()=>{"use strict";qe();Te();U=class extends ae(V){constructor(){super(...arguments);f(this,"type","noinclude")}}});var we,st,be,Be,pr=b(()=>{"use strict";y();C();Be=class extends x{constructor(e,t,r,n,s=h.getConfig(),o=[]){super(void 0,s);k(this,we,void 0);k(this,st,void 0);k(this,be,void 0);this.setAttribute("name",e.toLowerCase()),$(this,be,[e,n||e]),$(this,we,n===void 0),$(this,st,n!==""),this.append(t,r);let a=typeof t=="string"?-1:o.indexOf(t);o.splice(a===-1?1/0:a,0,this)}get closed(){return u(this,st)}toString(e){let{firstChild:t,lastChild:r}=this,[n,s]=u(this,be);return u(this,we)?`<${n}${t.toString(e)}/>`:`<${n}${t.toString(e)}>${r.toString(e)}${this.closed?`</${s}>`:""}`}text(){let[e,t]=u(this,be);return u(this,we)?`<${e}${this.firstChild.text()}/>`:`<${e}${super.text(">")}${this.closed?`</${t}>`:""}`}getAttribute(e){return e==="padding"?u(this,be)[0].length+1:super.getAttribute(e)}getGaps(){return 1}print(){let[e,t]=u(this,be);return super.print(u(this,we)?{pre:`&lt;${e}`,post:"/&gt;"}:{pre:`&lt;${e}`,sep:"&gt;",post:this.closed?`&lt;/${t}&gt;`:""})}};we=new WeakMap,st=new WeakMap,be=new WeakMap});var bt,Jr=b(()=>{"use strict";qe();y();pr();bt=class extends ae(Be){constructor(e,t="",r,n,s=h.getConfig(),o=[]){super(e,t,r!=null?r:"",r===void 0||n!=null?n:"",s,o);f(this,"type","include")}}});var v,L,O=b(()=>{"use strict";y();v=(l,i,e,t="error")=>{let r=l.getRelativeIndex(),{offsetHeight:n,offsetWidth:s,parentNode:o}=l,{top:a,left:p}=o.posFromIndex(r),{start:g}=i,{top:d,left:c}="top"in i?i:l.getRootNode().posFromIndex(g),m=String(l),T=g+r,A=d+a,N=a?p:c+p;return{message:h.msg(e),severity:t,startIndex:T,endIndex:T+m.length,startLine:A,endLine:A+n-1,startCol:N,endCol:n===1?N+s:s}},L=(l,i,e,t="error")=>{let{start:r}=i,{offsetHeight:n,offsetWidth:s}=l,o=String(l),{top:a,left:p}="top"in i?i:l.getRootNode().posFromIndex(r);return{message:h.msg(e),severity:t,startIndex:r,endIndex:r+o.length,startLine:a,endLine:a+n-1,startCol:p,endCol:n===1?p+s:s}}});var G,pe=b(()=>{"use strict";y();C();G=class extends x{constructor(i,e,t=h.getConfig(),r=[],n){super(i,t,r,n),this.type=e}}});var Bi,ge,Yr,en,tn,rn,gr,nn,kt,sn,Oi,D,le,Oe,on=b(()=>{"use strict";O();H();ce();y();C();pe();Bi=new Set(["id","class","style","lang","dir","title","tabindex","aria-describedby","aria-flowto","aria-hidden","aria-label","aria-labelledby","aria-owns","role","about","property","resource","datatype","typeof","itemid","itemprop","itemref","itemscope","itemtype"]),ge=new Set(["align"]),Yr=new Set(["cite"]),en=new Set(["cite","datetime"]),tn=new Set(["width"]),rn=new Set(["align","valign","abbr","axis","headers","scope","rowspan","colspan","width","height","bgcolor"]),gr=new Set(["type"]),nn={div:ge,h1:ge,h2:ge,h3:ge,h4:ge,h5:ge,h6:ge,blockquote:Yr,q:Yr,p:ge,br:new Set(["clear"]),pre:tn,ins:en,del:en,ul:gr,ol:new Set(["type","start","reversed"]),li:new Set(["type","value"]),table:new Set(["summary","width","border","frame","rules","cellspacing","cellpadding","align","bgcolor"]),caption:ge,tr:new Set(["bgcolor","align","valign"]),td:rn,th:rn,img:new Set(["alt","src","width","height","srcset"]),font:new Set(["size","color","face"]),hr:tn,rt:new Set(["rbspan"]),data:new Set(["value"]),time:new Set(["datetime"]),meta:new Set(["itemprop","content"]),link:new Set(["itemprop","href","title"]),gallery:new Set(["mode","showfilename","caption","perrow","widths","heights","showthumbnails","type"]),poem:new Set(["compact","align"]),categorytree:new Set(["align","hideroot","onlyroot","depth","mode","hideprefix","namespaces","showcount","notranslations"]),combooption:new Set(["name","for","inline","align"])},kt=new Set,sn={nowiki:kt,indicator:new Set(["name"]),langconvert:new Set(["from","to"]),ref:new Set(["group","name","extends","follow","dir"]),references:new Set(["group","responsive"]),charinsert:new Set(["label"]),choose:new Set(["uncached","before","after"]),option:new Set(["weight"]),imagemap:kt,inputbox:kt,templatestyles:new Set(["src","wrapper"]),dynamicpagelist:kt,poll:new Set(["id","show-results-before-voting"]),sm2:gr,flashmp3:gr,tab:new Set(["nested","name","index","class","block","inline","openname","closename","collapsed","dropdown","style","bgcolor","container","id","title"]),tabs:new Set(["plain","class","container","id","title","style"]),combobox:new Set(["placeholder","value","id","class","text","dropdown","style"])},Oi=new RegExp("expression|(?:filter|accelerator|-o-link(?:-source)?|-o-replace)\\s*:|(?:url|image(?:-set)?)\\s*\\(|attr\\s*\\([^)]+[\\s,]url","u"),Oe=class extends x{constructor(e,t,r,n="",s,o=[],a=h.getConfig(),p=[]){let g=new G(r,"attr-key",a,p,{}),d;if(r==="title"||t==="img"&&r==="alt")d=new x(s,a,p,{}),d.type="attr-value",d.setAttribute("stage",10);else if(t==="gallery"&&r==="caption"){let c={...a,excludes:[...a.excludes,"quote","extLink","magicLink","list"]};d=new x(s,c,p,{}),d.type="attr-value",d.setAttribute("stage",5)}else if(t==="choose"&&(r==="before"||r==="after")){let c={...a,excludes:[...a.excludes,"heading","html","table","hr","list"]};d=new x(s,c,p,{}),d.type="attr-value",d.setAttribute("stage",1)}else d=new G(s,"attr-value",a,p,{});super(void 0,a,p);k(this,D,void 0);k(this,le,void 0);this.type=e,this.append(g,d),$(this,D,n),$(this,le,[...o]),this.tag=t,this.setAttribute("name",J(r).trim().toLowerCase())}get balanced(){return!u(this,D)||u(this,le)[0]===u(this,le)[1]}afterBuild(){u(this,D).includes("\0")&&$(this,D,this.buildFromStr(u(this,D),"string")),this.parentNode&&this.setAttribute("tag",this.parentNode.name),this.setAttribute("name",this.firstChild.text().trim().toLowerCase())}toString(e){let[t="",r=""]=u(this,le);return u(this,D)?`${super.toString(e,`${u(this,D)}${t}`)}${r}`:this.firstChild.toString(e)}text(){return u(this,D)?`${super.text(`${u(this,D).trim()}"`)}"`:this.firstChild.text()}getGaps(){var e,t;return u(this,D)?u(this,D).length+((t=(e=u(this,le)[0])==null?void 0:e.length)!=null?t:0):0}lint(e=this.getAbsoluteIndex()){var c;let t=super.lint(e),{balanced:r,firstChild:n,lastChild:s,type:o,name:a,tag:p}=this,g=this.getValue(),d;if(!r){let m=this.getRootNode();d={start:e,...m.posFromIndex(e)};let T=v(s,d,"unclosed quotes","warning"),A=T.startIndex-1;t.push({...T,startIndex:A,startCol:T.startCol-1})}return sn[p]&&!sn[p].has(a)||(o==="ext-attr"?p in nn:!/\{\{[^{]+\}\}/u.test(a))&&!((c=nn[p])!=null&&c.has(a))&&!/^(?:xmlns:[\w:.-]+|data-[^:]*)$/u.test(a)&&(p==="meta"||p==="link"||!Bi.has(a))?(d!=null||(d={start:e,...this.getRootNode().posFromIndex(e)}),t.push(v(n,d,"illegal attribute name"))):a==="style"&&typeof g=="string"&&Oi.test(g)?(d!=null||(d={start:e,...this.getRootNode().posFromIndex(e)}),t.push(v(s,d,"insecure style"))):a==="tabindex"&&typeof g=="string"&&g.trim()!=="0"&&(d!=null||(d={start:e,...this.getRootNode().posFromIndex(e)}),t.push(v(s,d,"nonzero tabindex"))),t}getValue(){if(u(this,D)){let e=this.lastChild.text();return u(this,le)[1]?e:e.trim()}return this.type==="ext-attr"||""}print(){let[e="",t=""]=u(this,le);return u(this,D)?super.print({sep:`${u(this,D)}${e}`,post:t}):super.print()}};D=new WeakMap,le=new WeakMap});var an,ji,ke,yt=b(()=>{"use strict";O();H();y();C();pe();on();an=l=>l.slice(0,-1),ji=l=>`${an(l)}-dirty`,ke=class extends x{constructor(i,e,t,r=h.getConfig(),n=[]){if(super(void 0,r,n,{}),this.type=e,this.setAttribute("name",t),i){let s=new RegExp(`([^\\s/](?:(?!\0\\d+~\x7F)[^\\s/=])*)(?:((?:\\s|\0\\d+c\x7F)*(?:=|\0\\d+~\x7F)(?:\\s|\0\\d+c\x7F)*)(?:(["'])(.*?)(\\3|$)|(\\S*)))?`,"gsu"),o="",a=s.exec(i),p=0,g=()=>{o&&(super.insertAt(new G(o,ji(e),r,n,{})),o="")};for(;a;){let{index:d,0:c,1:m,2:T,3:A,4:N,5:j,6:w}=a;if(o+=i.slice(p,d),/^(?:[\w:]|\0\d+[t!~{}+-]\x7F)(?:[\w:.-]|\0\d+[t!~{}+-]\x7F)*$/u.test(J(m).trim())){let S=N!=null?N:w,I=[A,j],P=new Oe(an(e),t,m,T,S,I,r,n);g(),super.insertAt(P)}else o+=c;({lastIndex:p}=s),a=s.exec(i)}o+=i.slice(p),g()}}afterBuild(){if(this.type==="table-attrs"){let{parentNode:i}=this;this.setAttribute("name",(i==null?void 0:i.type)==="td"&&i.subtype==="caption"?"caption":i==null?void 0:i.type)}}getAttrTokens(i){return this.childNodes.filter(e=>e instanceof Oe&&(!i||e.name===i.toLowerCase().trim()))}getAttrToken(i){let e=this.getAttrTokens(i);return e[e.length-1]}getAttr(i){var e;return(e=this.getAttrToken(i))==null?void 0:e.getValue()}lint(i=this.getAbsoluteIndex()){let e=super.lint(i),{parentNode:t,length:r,childNodes:n}=this,s=new Map,o=new Set,a;(t==null?void 0:t.type)==="html"&&t.closing&&this.text().trim()&&(a={start:i,...this.getRootNode().posFromIndex(i)},e.push(L(this,a,"attributes of a closing tag")));for(let p=0;p<r;p++){let g=n[p];if(g instanceof G&&g.text().trim())a!=null||(a={start:i,...this.getRootNode().posFromIndex(i)}),e.push(v(g,a,"containing invalid attribute"));else if(g instanceof Oe){let{name:d}=g;s.has(d)?(o.add(d),s.get(d).push(g)):d!=="class"&&s.set(d,[g])}}if(o.size>0){a!=null||(a={start:i,...this.getRootNode().posFromIndex(i)});for(let p of o)e.push(...s.get(p).map(g=>v(g,a,h.msg("duplicated $1 attribute",p))))}return e}print(){return String(this)?`<span class="wpb-${this.type}">${this.childNodes.map(i=>i.print(i instanceof G&&i.text().trim()?{class:"attr-dirty"}:void 0)).join("")}</span>`:""}}});var ln={};M(ln,{PreToken:()=>ur});var ur,dn=b(()=>{"use strict";ce();y();C();$e();ur=class extends x{constructor(e,t=h.getConfig(),r=[]){if(e){let n="<nowiki>",s="</nowiki>",{length:o}=n,a=e.indexOf(n),p=e.indexOf(s,a+o),g="";for(;a!==-1&&p!==-1;)new U(n,t,r),new U(s,t,r),g+=`${e.slice(0,a)}\0${r.length-1}c\x7F${e.slice(a+o,p)}\0${r.length}c\x7F`,e=e.slice(p+o+1),a=e.indexOf(n),p=e.indexOf(s,a+o);e=`${g}${e}`}super(e,t,r,{});f(this,"type","ext-inner");this.setAttribute("stage",10)}getAttribute(e){return e==="plain"||super.getAttribute(e)}}});var pn={};M(pn,{ParamTagToken:()=>ot});var ot,hr=b(()=>{"use strict";O();y();C();pe();ot=class extends x{constructor(e,t=h.getConfig(),r=[],n={}){super(void 0,t,r,{});f(this,"type","ext-inner");if(e){let s=G;this.append(...e.split(`
5
+ `).map(o=>new s(o,"param-line",t,r,{})))}}toString(e){return super.toString(e,`
6
+ `)}text(){return super.text(`
7
+ `)}getGaps(){return 1}lint(e=this.getAbsoluteIndex()){let t;return this.childNodes.filter(r=>{let{childNodes:n}=r,s=n.findIndex(({type:a})=>a!=="text"),o=(s>=0?n.slice(0,s).map(String).join(""):String(r)).trim();return o&&!(s>=0?/^[a-z]+(?:\[\])?\s*(?:=|$)/iu:/^[a-z]+(?:\[\])?\s*=/iu).test(o)}).map(r=>(t!=null||(t={start:e,...this.getRootNode().posFromIndex(e)}),v(r,t,h.msg("invalid parameter of $1",this.name))))}print(){return super.print({sep:`
8
+ `})}}});var at,je,At,We,mr=b(()=>{"use strict";O();y();C();Ge();We=class extends x{constructor(e,t,r=h.getConfig(),n=[]){super(void 0,r,n);k(this,je);f(this,"type","heading");k(this,at,void 0);$(this,at,e);let s=new x(t[0],r,n);s.type="heading-title",s.setAttribute("stage",2);let o=new ee(t[1],/^[^\S\n]*$/u,"heading-trail",r,n,{});this.append(s,o)}get level(){return u(this,at)}toString(e){let t=u(this,je,At);return`${t}${this.firstChild.toString()}${t}${this.lastChild.toString()}`}text(){let e=u(this,je,At);return`${e}${this.firstChild.text()}${e}`}getAttribute(e){return e==="padding"?super.getAttribute("padding")+this.level:super.getAttribute(e)}getGaps(){return this.level}lint(e=this.getAbsoluteIndex()){let t=super.lint(e),{firstChild:r}=this,n=String(r),s;return this.level===1&&(s=v(r,{start:e},"<h1>"),t.push(s)),(n.startsWith("=")||n.endsWith("="))&&(s!=null||(s=v(r,{start:e},"")),t.push({...s,message:h.msg('unbalanced "=" in a section header')})),this.closest("html-attrs, table-attrs")&&t.push({...L(this,{start:e},""),message:h.msg("section header in a HTML tag")}),t}print(){let e=u(this,je,At);return super.print({pre:e,sep:e})}};at=new WeakMap,je=new WeakSet,At=function(){return"=".repeat(this.level)}});var Wi,vt,gn=b(()=>{"use strict";H();O();y();C();Wi=l=>l.toString(new Set(["comment","noinclude","include"])).replace(/^[ \t\n\0\v]+|([^ \t\n\0\v])[ \t\n\0\v]+$/gu,"$1"),vt=class extends x{constructor(e,t,r=h.getConfig(),n=[]){super(void 0,r,n);f(this,"type","parameter");let s=new x(typeof e=="number"?void 0:e,r,n,{}),o=new x(t,r,n);s.type="parameter-key",o.type="parameter-value",o.setAttribute("stage",2),this.append(s,o)}get anon(){return this.firstChild.length===0}afterBuild(){if(!this.anon){let{parentNode:e,firstChild:t}=this,r=Wi(t);this.setAttribute("name",r),e&&e.getArgs(r,!1,!1).add(this)}}toString(e){return this.anon?this.lastChild.toString(e):super.toString(e,"=")}text(){return this.anon?this.lastChild.text():super.text("=")}getGaps(){return this.anon?0:1}lint(e=this.getAbsoluteIndex()){var s;let t=super.lint(e),{firstChild:r}=this,n=(s=new RegExp(`https?://${fe}${xe}$`,"iu").exec(r.toString(new Set(["comment","noinclude","include"]))))==null?void 0:s[0];if(n&&new URL(n).search){let o=v(r,{start:e},"unescaped query string in an anonymous parameter");t.push({...o,startIndex:o.endIndex,endIndex:o.endIndex+1,startLine:o.endLine,startCol:o.endCol,endCol:o.endCol+1})}return t}print(){return super.print({sep:this.anon?"":"="})}}});var Ce,Ne,$t,un,wt,hn,St,mn=b(()=>{"use strict";H();O();y();C();gn();pe();Ge();St=class extends x{constructor(e,t,r=h.getConfig(),n=[]){var d,c;super(void 0,r,n,{});k(this,$t);k(this,wt);f(this,"type","template");f(this,"modifier","");k(this,Ce,!1);k(this,Ne,new Map);let{parserFunction:[s,o]}=r,a=(d=/^(?:\s|\0\d+c\x7F)*\0\d+s\x7F/u.exec(e))==null?void 0:d[0];if(a)this.setAttribute("modifier",a),e=e.slice(a.length);else if(e.includes(":")){let[m,...T]=e.split(":"),[A]=/^(?:\s|\0\d+c\x7F)*/u.exec((c=T[0])!=null?c:"");this.setModifier(`${m}:${A}`)&&(e=T.join(":").slice(A.length))}if(e.includes(":")||t.length===0&&!u(this,Ce)){let[m,...T]=e.split(":"),A=J(m),N=A.trim(),j=o.includes(N),w=s[N.toLowerCase()];if(!(T.length>0&&/\s$/u.test(A))&&(j||w)){this.setAttribute("name",w!=null?w:N.toLowerCase()),this.type="magic-word";let S=new RegExp(`^\\s*${N}\\s*$`,j?"u":"iu"),I=new ee(m,S,"magic-word-name",r,n,{});if(super.insertAt(I),T.length>0&&t.unshift([T.join(":")]),this.name==="invoke")for(let P=0;P<2;P++){let F=t.shift();if(!F)break;let B=new G(F.join("="),`invoke-${P?"function":"module"}`,r,n);super.insertAt(B)}}}if(this.type==="template"){let m=J(mt(e)).split("#")[0].trim();if(!m||/\0\d+[eh!+-]\x7F|[<>[\]{}\n]|%[\da-f]{2}/u.test(m))throw n.pop(),new SyntaxError(`\u975E\u6CD5\u7684\u6A21\u677F\u540D\u79F0\uFF1A${ct(m)}`);let T=new G(e,"template-name",r,n,{});super.insertAt(T)}let p=this.isTemplate(),g=1;for(let m=0;m<t.length;m++){let T=t[m];!p&&!(this.name==="switch"&&m>0)&&(T[0]=T.join("="),T.length=1),T.length===1&&(T.unshift(g),g++),this.insertAt(new vt(...T,r,n))}}setModifier(e){let{parserFunction:[,,t,r]}=this.getAttribute("config"),n=J(e).trim();if(e&&!n.endsWith(":"))return!1;let s=n.slice(0,-1).toLowerCase(),o=t.includes(s),a=r.includes(s);return u(this,Ce)&&o||!u(this,Ce)&&(a||e==="")||this.length>1&&(o||a||e==="")?(this.setAttribute("modifier",e),$(this,Ce,o),!!e):!1}isTemplate(){return this.type==="template"||this.name==="invoke"}afterBuild(){this.modifier.includes("\0")&&this.setAttribute("modifier",this.buildFromStr(this.modifier,"string"))}toString(e){return`{{${this.modifier}${this.type==="magic-word"?`${this.firstChild.toString(e)}${this.length===1?"":":"}${this.childNodes.slice(1).map(t=>t.toString(e)).join("|")}`:super.toString(e,"|")}}}`}text(){let{childNodes:e,length:t,firstChild:r,modifier:n,type:s,name:o}=this;return s==="magic-word"&&o==="vardefine"?"":`{{${n}${s==="magic-word"?`${r.text()}${t===1?"":":"}${se(e.slice(1),"|")}`:super.text("|")}}}`}getAttribute(e){switch(e){case"padding":return this.modifier.length+2;default:return super.getAttribute(e)}}getGaps(){return 1}lint(e=this.getAbsoluteIndex()){let t=super.lint(e),{type:r,childNodes:n,length:s}=this,o;if(!this.isTemplate())return t;let a=E(this,$t,un).call(this);if(a)a.fragment!==void 0&&(o={start:e,...this.getRootNode().posFromIndex(e)},t.push(v(n[r==="template"?0:1],o,"useless fragment")));else return o={start:e,...this.getRootNode().posFromIndex(e)},t.push(L(this,o,"missing module name")),t;if(a.valid||(o!=null||(o={start:e,...this.getRootNode().posFromIndex(e)}),t.push(v(n[1],o,"illegal module name"))),r==="magic-word"&&s===2)return o!=null||(o={start:e,...this.getRootNode().posFromIndex(e)}),t.push(L(this,o,"missing module function")),t;let p=this.getDuplicatedArgs();return p.length>0&&(o!=null||(o={start:e,...this.getRootNode().posFromIndex(e)}),t.push(...p.flatMap(([,g])=>g).map(g=>v(g,o,"duplicated parameter")))),t}insertAt(e,t=this.length){return super.insertAt(e,t),e.anon?E(this,wt,hn).call(this,e):e.name&&this.getArgs(e.name,!1,!1).add(e),e}getAllArgs(){return this.childNodes.filter(e=>e.type==="parameter")}getAnonArgs(){return this.getAllArgs().filter(({anon:e})=>e)}getArgs(e,t=!1,r=!0){let n=String(e).replace(/^[ \t\n\0\v]+|([^ \t\n\0\v])[ \t\n\0\v]+$/gu,"$1"),s;return u(this,Ne).has(n)?s=u(this,Ne).get(n):(s=new Set(this.getAllArgs().filter(({name:o})=>n===o)),u(this,Ne).set(n,s)),s}getDuplicatedArgs(){return this.isTemplate()?[...u(this,Ne)].filter(([,{size:e}])=>e>1).map(([e,t])=>[e,[...t]]):[]}getPossibleValues(){let{type:e,name:t,childNodes:r,constructor:{name:n}}=this;if(e==="template")throw new Error(`${n}.getPossibleValues \u65B9\u6CD5\u4EC5\u4F9B\u7279\u5B9A\u9B54\u672F\u5B57\u4F7F\u7528\uFF01`);let s;switch(t){case"if":case"ifexist":case"ifexpr":case"iferror":s=2;break;case"ifeq":s=3;break;default:throw new Error(`${n}.getPossibleValues \u65B9\u6CD5\u4EC5\u4F9B\u7279\u5B9A\u9B54\u672F\u5B57\u4F7F\u7528\uFF01`)}let o=r.slice(s,s+2).map(({childNodes:[,a]})=>a);for(let a=0;a<o.length;){let{length:p,0:g}=o[a].childNodes.filter(d=>d.text().trim());if(p===0)o.splice(a,1);else if(p>1||g.type!=="magic-word")a++;else try{let d=g.getPossibleValues();o.splice(a,1,...d),a+=d.length}catch(d){a++}}return o}print(){let{childNodes:e,length:t,firstChild:r,modifier:n,type:s}=this;return`<span class="wpb-${s}">{{${n}${s==="magic-word"?`${r.print()}${t===1?"":":"}${oe(e.slice(1),{sep:"|"})}`:oe(e,{sep:"|"})}}}</span>`}};Ce=new WeakMap,Ne=new WeakMap,$t=new WeakSet,un=function(){let e=this.type==="template",t=this.childNodes[e?0:1];return t&&this.normalizeTitle(t.text(),e?10:828)},wt=new WeakSet,hn=function(e){let t=this.getAnonArgs(),r=typeof e!="number";for(let n=r?t.indexOf(e):e-1;n<t.length;n++){let s=t[n],{name:o}=s,a=String(n+1);o!==a&&(s.setAttribute("name",a),this.getArgs(a,!1,!1).add(s))}}});var Ct,cn=b(()=>{"use strict";qe();C();Ct=class extends ae(x){constructor(){super(...arguments);f(this,"type","hidden")}}});var Nt,fn=b(()=>{"use strict";H();O();y();C();pe();cn();Nt=class extends x{constructor(e,t=h.getConfig(),r=[]){super(void 0,t,r,{});f(this,"type","arg");for(let n=0;n<e.length;n++)if(n===0){let s=new G(e[n],"arg-name",t,r,{});super.insertAt(s)}else if(n>1){let s=new Ct(e[n],t,r,{});super.insertAt(s)}else{let s=new x(e[n],t,r);s.type="arg-default",s.setAttribute("stage",2),super.insertAt(s)}}get default(){var e,t;return(t=(e=this.childNodes[1])==null?void 0:e.text())!=null?t:!1}toString(e){return`{{{${super.toString(e,"|")}}}}`}text(){return`{{{${se(this.childNodes.slice(0,2),"|")}}}}`}getAttribute(e){return e==="padding"?3:super.getAttribute(e)}getGaps(){return 1}lint(e=this.getAbsoluteIndex()){if(!this.getAttribute("include"))return[L(this,{start:e},"unexpected template argument")];let{childNodes:[t,r,...n]}=this,s=t.lint(e+3);if(r&&s.push(...r.lint(e+4+String(t).length)),n.length>0){let o={start:e,...this.getRootNode().posFromIndex(e)};s.push(...n.map(a=>{let p=v(a,o,"invisible content inside triple braces"),{startIndex:g,startCol:d}=p;return{...p,startIndex:g-1,startCol:d-1}}))}return s}print(){return super.print({pre:"{{{",post:"}}}",sep:"|"})}}});var xn={};M(xn,{parseBraces:()=>cr});var cr,fr=b(()=>{"use strict";H();y();mr();mn();fn();cr=(l,i=h.getConfig(),e=[])=>{var c,m,T,A,N,j;let t=`${(c=i.excludes)!=null&&c.includes("heading")?"":"^(\0\\d+c\x7F)*={1,6}|"}\\[\\[|\\{{2,}|-\\{(?!\\{)`,{parserFunction:[,,,r]}=i,n=[],s={"=":`
9
+ `,"{":"\\}{2,}|\\|","-":"\\}-","[":"\\]\\]"},o=new Map([["!","!"],["!!","+"],["(!","{"],["!)","}"],["!-","-"],["=","~"]]),a=new RegExp(t,"gmu"),p=a.exec(l),g=l.includes("}}"),d;for(;p||d!==void 0&&d<=l.length&&((T=(m=n[n.length-1])==null?void 0:m[0])!=null&&T.startsWith("="));){if(p!=null&&p[1]){let[,{length:Z}]=p;p[0]=p[0].slice(Z),p.index+=Z}let{0:w,index:S}=p!=null?p:{0:`
10
+ `,index:l.length},I=(A=n.pop())!=null?A:{},{0:P,index:F,parts:B,findEqual:Q,pos:ve}=I,gt=w==="="&&Q;if(w==="]]"||w==="}-")d=S+2;else if(w===`
11
+ `){d=S+1;let{pos:Z,findEqual:W}=(N=n[n.length-1])!=null?N:{};if(Z===void 0||W||J(l.slice(Z,F))!==""){let ie=/^(={1,6})(.+)\1((?:\s|\0\d+c\x7F)*)$/u.exec(l.slice(F,S));ie&&(l=`${l.slice(0,F)}\0${e.length}h\x7F${l.slice(S)}`,d=F+4+String(e.length).length,new We(ie[1].length,ie.slice(2),i,e))}}else if(w==="|"||gt)d=S+1,B[B.length-1].push(l.slice(ve,S)),w==="|"&&B.push([]),I.pos=d,I.findEqual=w==="|",n.push(I);else if(w.startsWith("}}")){let Z=w.slice(0,Math.min(P.length,3)),W=P.length-Z.length,{length:ie}=e;d=S+Z.length,B[B.length-1].push(l.slice(ve,S));let et=!1,me="t";if(Z.length===3){let _=B.map(ir=>ir.join("=")),Se=_.length>1&&J(_[1]).trim();new Nt(_,i,e),Se&&Se.endsWith(":")&&r.includes(Se.slice(0,-1).toLowerCase())&&(me="s")}else try{new St(B[0][0],B.slice(1),i,e);let _=J(B[0][0]).trim();o.has(_)?me=o.get(_):/^(?:filepath|(?:full|canonical)urle?):.|^server$/iu.test(_)?me="m":/^#vardefine:./iu.test(_)&&(me="c")}catch(_){if(_ instanceof SyntaxError&&_.message.startsWith("\u975E\u6CD5\u7684\u6A21\u677F\u540D\u79F0\uFF1A"))d=F+P.length,et=!0;else throw _}et||(l=`${l.slice(0,F+W)}\0${ie}${me}\x7F${l.slice(d)}`,d=F+W+3+String(ie).length,W>1?n.push({0:P.slice(0,W),index:F,pos:F+W,parts:[[]]}):W===1&&l[F-1]==="-"&&n.push({0:"-{",index:F-1,pos:F+1,parts:[[]]}))}else d=S+w.length,w.startsWith("{")&&(p.pos=d,p.parts=[[]]),n.push(..."0"in I?[I]:[],p);g&&(g=l.slice(d).includes("}}"));let ne=n[n.length-1];!g&&((j=ne==null?void 0:ne[0])!=null&&j.startsWith("{"))&&(n.pop(),ne=n[n.length-1]),a=new RegExp(t+(ne?`|${s[ne[0][0]]}${ne.findEqual?"|=":""}`:""),"gmu"),a.lastIndex=d,p=a.exec(l)}return l}});var Tn={};M(Tn,{InputboxToken:()=>xr});var xr,bn=b(()=>{"use strict";fr();y();hr();xr=class extends ot{constructor(i,e=h.getConfig(),t=[]){let r=Symbol("InputboxToken");t.push(r),i&&(i=cr(i,e,t)),t.splice(t.indexOf(r),1),super(i,e,t,{})}}});var ze,Tr=b(()=>{"use strict";O();qe();y();Te();ze=class extends ae(V){constructor(e,t=!0,r=h.getConfig(),n=[]){super(e,r,n);f(this,"type","comment");f(this,"closed");this.closed=t}getAttribute(e){return e==="padding"?4:super.getAttribute(e)}lint(e=this.getAbsoluteIndex()){return this.closed?[]:[L(this,{start:e},"unclosed HTML comment")]}toString(e){return`<!--${this.innerText}${this.closed?"-->":""}`}print(){return super.print({pre:"&lt;!--",post:this.closed?"--&gt;":""})}}});var Ft={};M(Ft,{NestedToken:()=>br});var br,Et=b(()=>{"use strict";O();y();C();kr();$e();Tr();br=class extends x{constructor(e,t,r,n=h.getConfig(),s=[]){var o;e=(o=e==null?void 0:e.replace(t,(a,p,g,d,c)=>{let m=`\0${s.length+1}${p?"e":"c"}\x7F`;if(p)new Me(p,g,d,c,n,s);else{let T=a.endsWith("-->");new ze(a.slice(4,T?-3:void 0),T,n,s)}return m}))==null?void 0:o.replace(/(^|\0\d+[ce]\x7F)([^\0]+)(?=$|\0\d+[ce]\x7F)/gu,(a,p,g)=>(new U(g,n,s),`${p}\0${s.length}c\x7F`));super(e,n,s,{});f(this,"type","ext-inner")}lint(e=this.getAbsoluteIndex()){let t;return[...super.lint(e),...this.childNodes.filter(r=>{if(r.type==="ext"||r.type==="comment")return!1;let n=String(r).trim();return n&&!/^<!--.*-->$/su.test(n)}).map(r=>(t!=null||(t={start:e,...this.getRootNode().posFromIndex(e)}),v(r,t,h.msg("invalid content in <$1>",this.name))))]}}});var Fe,te,Ee,ye,Lt=b(()=>{"use strict";O();ce();y();C();pe();ye=class extends x{constructor(e,t,r=h.getConfig(),n=[],s="|"){super(void 0,r,n,{});k(this,Fe,!0);k(this,te,void 0);k(this,Ee,void 0);if(this.insertAt(new G(e,"link-target",r,n,{})),t!==void 0){let o=new x(t,r,n,{});o.type="link-text",o.setAttribute("stage",10),this.insertAt(o)}$(this,te,s)}afterBuild(){$(this,Ee,this.getTitle()),u(this,te).includes("\0")&&$(this,te,this.buildFromStr(u(this,te),"string"))}setAttribute(e,t){e==="bracket"?$(this,Fe,!!t):e==="title"?$(this,Ee,t):super.setAttribute(e,t)}toString(e){let t=super.toString(e,u(this,te));return u(this,Fe)?`[[${t}]]`:t}text(){let e=super.text("|");return u(this,Fe)?`[[${e}]]`:e}getAttribute(e){return e==="title"?u(this,Ee):e==="padding"?2:super.getAttribute(e)}getGaps(e){return e===0?u(this,te).length:1}lint(e=this.getAbsoluteIndex()){let t=super.lint(e),{childNodes:[r,n],type:s}=this,{encoded:o,fragment:a}=u(this,Ee),p;return s==="link"&&r.childNodes.some(({type:g})=>g==="template")&&(p={start:e,...this.getRootNode().posFromIndex(e)},t.push(v(r,p,"template in an internal link target","warning"))),o&&(p!=null||(p={start:e,...this.getRootNode().posFromIndex(e)}),t.push(v(r,p,"unnecessary URL encoding in an internal link"))),s==="link"&&(n!=null&&n.childNodes.some(({type:g,data:d})=>g==="text"&&d.includes("|")))?(p!=null||(p={start:e,...this.getRootNode().posFromIndex(e)}),t.push(v(n,p,'additional "|" in the link text',"warning"))):s!=="link"&&a!==void 0&&(p!=null||(p={start:e,...this.getRootNode().posFromIndex(e)}),t.push(v(r,p,"useless fragment"))),t}getTitle(){return this.normalizeTitle(this.firstChild.text(),0,!1,!0,!0)}print(){return super.print(u(this,Fe)?{pre:"[[",post:"]]",sep:u(this,te)}:{sep:u(this,te)})}};Fe=new WeakMap,te=new WeakMap,Ee=new WeakMap});function kn(l,i,e=h.getConfig(),t=!1){i=i.trim();let r=i.replace(/\0\d+t\x7F/gu,"").trim();switch(l){case"width":return!r||/^(?:\d+x?|\d*x\d+)$/u.test(r);case"link":{if(!r||new RegExp(`^(?:(?:${e.protocol}|//)${fe}|\0\\d+m\x7F)${xe}$`,"iu").test(r))return i;r.startsWith("[[")&&r.endsWith("]]")&&(r=r.slice(2,-2));let s=h.normalizeTitle(r,0,!1,e,t,!0,!0);return s.valid&&s}case"lang":return!r||e.variants.includes(r);case"alt":case"class":case"manualthumb":return!0;default:return!Number.isNaN(Number(r))}}var zi,K,It,yn=b(()=>{"use strict";H();O();y();C();zi=new Set(["alt","link","lang","page","caption"]);It=class extends x{constructor(e,t=h.getConfig(),r=[]){var i=(...args)=>{super(...args);f(this,"type","image-parameter");k(this,K,"")};var a;let n,s=Object.entries(t.img).map(([p,g])=>[p,g,new RegExp(`^(\\s*)${p.replace("$1","(.*)")}(\\s*)$`,"u")]),o=s.find(([,p,g])=>(n=g.exec(e),n&&(n.length!==4||kn(p,n[2],t,!0)!==!1)));if(o&&n){n.length===3?(i(void 0,t,r),$(this,K,e)):(i(n[2],t,r,{}),$(this,K,`${n[1]}${o[0]}${n[3]}`)),this.setAttribute("name",o[1]);return}i(e,{...t,excludes:[...(a=t.excludes)!=null?a:[],"list"]},r),this.setAttribute("name","caption"),this.setAttribute("stage",7)}get link(){return this.name==="link"?kn("link",super.text(),this.getAttribute("config")):void 0}afterBuild(){var e;((e=this.parentNode)==null?void 0:e.type)==="gallery-image"&&!zi.has(this.name)&&this.setAttribute("name","invalid")}toString(e){return u(this,K)?u(this,K).replace("$1",super.toString(e)):super.toString(e)}text(){return u(this,K)?u(this,K).replace("$1",super.text()).trim():super.text().trim()}getAttribute(e){return e==="plain"?this.name==="caption":e==="padding"?Math.max(0,u(this,K).indexOf("$1")):super.getAttribute(e)}lint(e=this.getAbsoluteIndex()){let t=super.lint(e),{link:r,name:n}=this;return n==="invalid"?t.push(L(this,{start:e},"invalid gallery image parameter")):typeof r=="object"&&r.encoded&&t.push(L(this,{start:e},"unnecessary URL encoding in an internal link")),t}print(){return u(this,K)?this.name==="invalid"?`<span class="wpb-image-invalid">${u(this,K).replace("$1",oe(this.childNodes))}</span>`:`<span class="wpb-image-parameter">${u(this,K).replace("$1",`<span class="wpb-image-caption">${oe(this.childNodes)}</span>`)}</span>`:super.print({class:"image-caption"})}};K=new WeakMap});var yr,Ar,vr,Mi,_e,Pt,Ue,Sr=b(()=>{"use strict";H();O();y();Lt();yn();yr=new Set(["manualthumb","frameless","framed","thumbnail"]),Ar=new Set(["left","right","center","none"]),vr=new Set(["baseline","sub","super","top","text-top","middle","bottom","text-bottom"]),Mi=(l,i,e,t)=>{if(t===void 0)return[];let r=new RegExp(`${[l,i,e].map(Ur).join("|")}`,"gu"),n=[],s=r.exec(t),o=0,a=0;for(;s;){let{0:p,index:g}=s;p!==e?o+=p===l?1:-1:o===0&&(n.push(t.slice(a,g)),{lastIndex:a}=r),s=r.exec(t)}return n.push(t.slice(a)),n},Ue=class extends ye{constructor(e,t,r=h.getConfig(),n=[],s="|"){super(e,void 0,r,n,s);k(this,_e);f(this,"type","file");this.append(...Mi("-{","}-","|",t).map(o=>new It(o,r,n)))}lint(e=this.getAbsoluteIndex()){let t=super.lint(e),r=this.getAllArgs().filter(({childNodes:d})=>{let c=d.filter(m=>m.text().trim());return c.length!==1||c[0].type!=="arg"}),n=[...new Set(r.map(({name:d})=>d))].filter(d=>d!=="invalid"),s=n.filter(d=>yr.has(d)),o=n.filter(d=>Ar.has(d)),a=n.filter(d=>vr.has(d));if(r.length===n.length&&s.length<2&&o.length<2&&a.length<2)return t;let p={start:e,...this.getRootNode().posFromIndex(e)},g=(d,c)=>m=>v(m,p,h.msg(`${d} image $1 parameter`,c));for(let d of n){let c=r.filter(({name:m})=>m===d);d==="caption"&&(c=[...c.slice(0,-1).filter(m=>m.text()),...c.slice(-1)]),c.length>1&&t.push(...c.map(g("duplicated",d)))}return s.length>1&&t.push(...r.filter(({name:d})=>yr.has(d)).map(g("conflicting","frame"))),o.length>1&&t.push(...r.filter(({name:d})=>Ar.has(d)).map(g("conflicting","horizontal-alignment"))),a.length>1&&t.push(...r.filter(({name:d})=>vr.has(d)).map(g("conflicting","vertical-alignment"))),t}getAllArgs(){return this.childNodes.slice(1)}getArgs(e){return this.getAllArgs().filter(({name:t})=>e===t)}getFrameArgs(){return E(this,_e,Pt).call(this,yr,"\u6846\u67B6")}getHorizAlignArgs(){return E(this,_e,Pt).call(this,Ar,"\u6C34\u5E73\u5BF9\u9F50")}getVertAlignArgs(){return E(this,_e,Pt).call(this,vr,"\u5782\u76F4\u5BF9\u9F50")}};_e=new WeakSet,Pt=function(e,t){return this.getAllArgs().filter(({name:n})=>e.has(n))}});var Rt,An,De,$r=b(()=>{"use strict";O();ce();y();C();Sr();De=class extends Ue{constructor(e,t,r,n=h.getConfig(),s=[]){let o;if(r!==void 0){o=new x(r,n,s),o.type="plain";for(let a=1;a<11;a++)o.parseOnce();s.splice(s.indexOf(o),1)}super(t,o==null?void 0:o.toString(),n,s);k(this,Rt);this.setAttribute("bracket",!1),this.type=`${e}-image`}getTitle(){let e=this.type==="imagemap-image";return this.normalizeTitle(String(this.firstChild),e?0:6,!0,!e)}getAttribute(e){return e==="padding"?0:super.getAttribute(e)}lint(e=this.getAbsoluteIndex()){let t=super.lint(e),{ns:r}=this.getAttribute("title");return r!==6&&t.push(L(this,{start:e},"invalid gallery image")),t}afterBuild(){E(this,Rt,An).call(this,this.getTitle())}};Rt=new WeakSet,An=function(e){this.setAttribute("title",e)}});var Sn={};M(Sn,{GalleryToken:()=>wr});var Gt,vn,wr,$n=b(()=>{"use strict";y();C();$r();$e();wr=class extends x{constructor(e,t=h.getConfig(),r=[]){var n;super(void 0,t,r,{});k(this,Gt);f(this,"type","ext-inner");for(let s of(n=e==null?void 0:e.split(`
12
+ `))!=null?n:[]){let o=/^([^|]+)(?:\|(.*))?/u.exec(s);if(!o){super.insertAt(s.trim()?new U(s,t):s);continue}let[,a,p]=o;E(this,Gt,vn).call(this,a)?super.insertAt(new De("gallery",a,p,t,r)):super.insertAt(new U(s,t))}}toString(e){return super.toString(e,`
16
13
  `)}text(){return super.text(`
17
14
  `).replace(/\n\s*\n/gu,`
18
- `)}getGaps(){return 1}lint(i=this.getAbsoluteIndex()){const{top:o,left:s}=this.getRootNode().posFromIndex(i),d=[];for(let v=0;v<this.length;v++){const x=this.childNodes[v],C=String(x),{length:I}=C,B=C.trim(),H=o+v,Y=v?0:s;x.type==="hidden"&&B&&!/^<!--.*-->$/u.test(B)?d.push({message:P.Z.msg("invalid content in <$1>","gallery"),severity:"error",startIndex:i,endIndex:i+I,startLine:H,endLine:H,startCol:Y,endCol:Y+I}):x.type!=="hidden"&&x.type!=="text"&&d.push(...x.lint(i)),i+=I+1}return d}print(){return super.print({sep:`
19
- `})}}l=new WeakSet,h=function(p){return this.normalizeTitle(p,6,!0,!0).valid}},485:(Q,b,t)=>{t.d(b,{D:()=>i});var P=t(169),N=t(891),U=t(541),M=t(669),W=Object.defineProperty,D=(o,s,d)=>s in o?W(o,s,{enumerable:!0,configurable:!0,writable:!0,value:d}):o[s]=d,E=(o,s,d)=>(D(o,typeof s!="symbol"?s+"":s,d),d),g=(o,s,d)=>{if(!s.has(o))throw TypeError("Cannot "+d)},f=(o,s,d)=>(g(o,s,"read from private field"),d?d.call(o):s.get(o)),a=(o,s,d)=>{if(s.has(o))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(o):s.set(o,d)},l=(o,s,d,v)=>(g(o,s,"write to private field"),v?v.call(o,d):s.set(o,d),d),h,u,p;class i extends U.Token{constructor(s,d,v=N.Z.getConfig(),x=[]){super(void 0,v,x),a(this,u),E(this,"type","heading"),a(this,h,void 0),l(this,h,s);const C=new U.Token(d[0],v,x);C.type="heading-title",C.setAttribute("stage",2);const I=new M.SyntaxToken(d[1],/^[^\S\n]*$/u,"heading-trail",v,x,{});this.append(C,I)}get level(){return f(this,h)}toString(s){const d=f(this,u,p);return`${d}${this.firstChild.toString()}${d}${this.lastChild.toString()}`}text(){const s=f(this,u,p);return`${s}${this.firstChild.text()}${s}`}getAttribute(s){return s==="padding"?super.getAttribute("padding")+this.level:super.getAttribute(s)}getGaps(){return this.level}lint(s=this.getAbsoluteIndex()){const d=super.lint(s),{firstChild:v}=this,x=String(v);let C;return this.level===1&&(C=(0,P.D)(v,{start:s},"<h1>"),d.push(C)),(x.startsWith("=")||x.endsWith("="))&&(C!=null||(C=(0,P.D)(v,{start:s},"")),d.push({...C,message:N.Z.msg('unbalanced "=" in a section header')})),this.closest("html-attrs, table-attrs")&&d.push({...(0,P.Y)(this,{start:s},""),message:N.Z.msg("section header in a HTML tag")}),d}print(){const s=f(this,u,p);return super.print({pre:s,sep:s})}}h=new WeakMap,u=new WeakSet,p=function(){return"=".repeat(this.level)}},465:(Q,b,t)=>{t.d(b,{R:()=>D});var P=t(959),N=t(541),U=Object.defineProperty,M=(E,g,f)=>g in E?U(E,g,{enumerable:!0,configurable:!0,writable:!0,value:f}):E[g]=f,W=(E,g,f)=>(M(E,typeof g!="symbol"?g+"":g,f),f);class D extends(0,P.a)(N.Token){constructor(){super(...arguments),W(this,"type","hidden")}}},842:(Q,b,t)=>{t.r(b),t.d(b,{ImagemapToken:()=>i});var P=t(169),N=t(891),U=t(541),M=t(826),W=t(39),D=t(524),E=t(876),g=Object.defineProperty,f=(o,s,d)=>s in o?g(o,s,{enumerable:!0,configurable:!0,writable:!0,value:d}):o[s]=d,a=(o,s,d)=>(f(o,typeof s!="symbol"?s+"":s,d),d);class l extends U.Token{constructor(s,d,v,x=N.Z.getConfig(),C=[]){super(void 0,x,C),a(this,"type","imagemap-link"),this.append(s,d.length===2?new D.h(...d,x,C):new E.a(...d,x,C),new M.O(v,x,C))}}var h=Object.defineProperty,u=(o,s,d)=>s in o?h(o,s,{enumerable:!0,configurable:!0,writable:!0,value:d}):o[s]=d,p=(o,s,d)=>(u(o,typeof s!="symbol"?s+"":s,d),d);class i extends U.Token{constructor(s,d=N.Z.getConfig(),v=[]){if(super(void 0,d,v,{}),p(this,"type","ext-inner"),!s)return;const x=s.split(`
20
- `),C=new Set(d.protocol.split("|")),I=M.O;let B=!0,H=!1;for(const Y of x){const K=Y.trim();if(!(H||!K||K.startsWith("#"))){if(B){const[S,..._]=Y.split("|"),T=this.normalizeTitle(S,0,!0);if(T.valid&&T.ns===6){const $=new W._("imagemap",S,_.length>0?_.join("|"):void 0,d,v);super.insertAt($),B=!1;continue}else H=!0}else if(Y.trim().split(/[\t ]/u)[0]==="desc"){super.insertAt(Y);continue}else if(Y.includes("[")){const S=Y.indexOf("["),_=Y.slice(S),T=/^\[{2}([^|]+)(?:\|([^\]]+))?\]{2}[\w\s]*$/u.exec(_);if(T){if(this.normalizeTitle(T[1],0,!0,!1,!0).valid){super.insertAt(new l(Y.slice(0,S),T.slice(1),_.slice(_.indexOf("]]")+2),d,v));continue}}else if(C.has(_.slice(1,_.indexOf(":")+1))||C.has(_.slice(1,_.indexOf("//")+2))){const $=/^\[([^\]\s]+)(?:(\s+)(\S[^\]]*)?)?\][\w\s]*$/u.exec(_);if($){super.insertAt(new l(Y.slice(0,S),$.slice(1),_.slice(_.indexOf("]")+1),d,v));continue}}}}super.insertAt(new I(Y,d,v))}}get image(){return this.childNodes.find(s=>s.type==="imagemap-image")}toString(s){return super.toString(s,`
15
+ `)}getGaps(){return 1}lint(e=this.getAbsoluteIndex()){let{top:t,left:r}=this.getRootNode().posFromIndex(e),n=[];for(let s=0;s<this.length;s++){let o=this.childNodes[s],a=String(o),{length:p}=a,g=a.trim(),d=t+s,c=s?0:r;o.type==="noinclude"&&g&&!/^<!--.*-->$/u.test(g)?n.push({message:h.msg("invalid content in <$1>","gallery"),severity:"error",startIndex:e,endIndex:e+p,startLine:d,endLine:d,startCol:c,endCol:c+p}):o.type!=="noinclude"&&o.type!=="text"&&n.push(...o.lint(e)),e+=p+1}return n}print(){return super.print({sep:`
16
+ `})}};Gt=new WeakSet,vn=function(e){return this.normalizeTitle(e,6,!0,!0).valid}});var He,Cr=b(()=>{"use strict";Lt();He=class extends ye{constructor(){super(...arguments);f(this,"type","link")}}});var wn,Cn=b(()=>{"use strict";wn=l=>{class i extends l{}return i}});var Ve,Nr=b(()=>{"use strict";O();y();C();Ve=class extends x{constructor(i,e=!1,t=h.getConfig(),r=[]){super(i,t,r,{}),this.type=e?"ext-link-url":"free-ext-link"}lint(i=this.getAbsoluteIndex()){let e=super.lint(i),t=`[\uFF0C\uFF1B\u3002\uFF1A\uFF01\uFF1F\uFF08\uFF09]+${this.type==="ext-link-url"?"|\\|+":""}`,r=new RegExp(t,"u"),n=new RegExp(t,"gu"),s;for(let o of this.childNodes){let{type:a,data:p}=o;if(a!=="text"||!r.test(p))continue;s!=null||(s={start:i,...this.getRootNode().posFromIndex(i)});let g=v(o,s,"","warning");n.lastIndex=0;for(let d=n.exec(p);d;d=n.exec(p)){let{index:c,0:m}=d,T=p.slice(0,c).split(`
17
+ `),{length:A}=T,{length:N}=T[T.length-1],j=i+c,w=g.startLine+A-1,S=A===1?g.startCol+N:N;e.push({...g,message:h.msg("$1 in URL",m.startsWith("|")?'"|"':h.msg("full-width punctuation")),startIndex:j,endIndex:j+m.length,startLine:w,endLine:w,startCol:S,endCol:S+m.length})}}return e}}});var ue,Xe,Fr=b(()=>{"use strict";ce();Cn();y();C();Nr();Xe=class extends wn(x){constructor(e,t="",r="",n=h.getConfig(),s=[]){super(void 0,n,s,{});f(this,"type","ext-link");k(this,ue,void 0);if(this.insertAt(new Ve(e,!0,n,s)),$(this,ue,t),r){let o=new x(r,n,s,{});o.type="ext-link-text",o.setAttribute("stage",10),this.insertAt(o)}}toString(e){return this.length===1?`[${super.toString(e)}${u(this,ue)}]`:`[${super.toString(e,u(this,ue))}]`}text(){return`[${super.text(" ")}]`}getAttribute(e){return e==="padding"?1:super.getAttribute(e)}getGaps(){return u(this,ue).length}print(){return super.print(this.length===1?{pre:"[",post:`${u(this,ue)}]`}:{pre:"[",sep:u(this,ue),post:"]"})}};ue=new WeakMap});var lt,Nn=b(()=>{"use strict";y();C();$e();Cr();Fr();lt=class extends x{constructor(e,t,r,n=h.getConfig(),s=[]){super(void 0,n,s);f(this,"type","imagemap-link");this.append(e,t.length===2?new He(...t,n,s):new Xe(...t,n,s),new U(r,n,s))}}});var Fn={};M(Fn,{ImagemapToken:()=>Er});var Er,En=b(()=>{"use strict";O();y();C();$e();$r();Nn();Er=class extends x{constructor(e,t=h.getConfig(),r=[]){super(void 0,t,r,{});f(this,"type","ext-inner");if(!e)return;let n=e.split(`
18
+ `),s=new Set(t.protocol.split("|")),o=U,a=!0,p=!1;for(let g of n){let d=g.trim();if(!(p||!d||d.startsWith("#"))){if(a){let[c,...m]=g.split("|"),T=this.normalizeTitle(c,0,!0);if(T.valid&&T.ns===6){let A=new De("imagemap",c,m.length>0?m.join("|"):void 0,t,r);super.insertAt(A),a=!1;continue}else p=!0}else if(g.trim().split(/[\t ]/u)[0]==="desc"){super.insertAt(g);continue}else if(g.includes("[")){let c=g.indexOf("["),m=g.slice(c),T=/^\[{2}([^|]+)(?:\|([^\]]+))?\]{2}[\w\s]*$/u.exec(m);if(T){if(this.normalizeTitle(T[1],0,!0,!1,!0).valid){super.insertAt(new lt(g.slice(0,c),T.slice(1),m.slice(m.indexOf("]]")+2),t,r));continue}}else if(s.has(m.slice(1,m.indexOf(":")+1))||s.has(m.slice(1,m.indexOf("//")+2))){let A=/^\[([^\]\s]+)(?:(\s+)(\S[^\]]*)?)?\][\w\s]*$/u.exec(m);if(A){super.insertAt(new lt(g.slice(0,c),A.slice(1),m.slice(m.indexOf("]")+1),t,r));continue}}}}super.insertAt(new o(g,t,r))}}get image(){return this.childNodes.find(e=>e.type==="imagemap-image")}toString(e){return super.toString(e,`
21
19
  `)}text(){return super.text(`
22
20
  `).replace(/\n{2,}/gu,`
23
- `)}getGaps(){return 1}lint(s=this.getAbsoluteIndex()){const d=super.lint(s),v={start:s,...this.getRootNode().posFromIndex(s)};return this.image?d.push(...this.childNodes.filter(x=>{const C=String(x).trim();return x.type==="noinclude"&&C&&!C.startsWith("#")}).map(x=>(0,P.D)(x,v,"invalid link in <imagemap>"))):d.push((0,P.Y)(this,v,"<imagemap> without an image")),d}print(){return super.print({sep:`
24
- `})}}},541:(Q,b,t)=>{t.r(b),t.d(b,{Token:()=>$t});var P=t(467),N=t(444),U=t(891),M=Object.defineProperty,W=(L,c,A)=>c in L?M(L,c,{enumerable:!0,configurable:!0,writable:!0,value:A}):L[c]=A,D=(L,c,A)=>(W(L,typeof c!="symbol"?c+"":c,A),A),E=(L,c,A)=>{if(!c.has(L))throw TypeError("Cannot "+A)},g=(L,c,A)=>(E(L,c,"read from private field"),A?A.call(L):c.get(L)),f=(L,c,A)=>{if(c.has(L))throw TypeError("Cannot add the same private member more than once");c instanceof WeakSet?c.add(L):c.set(L,A)},a=(L,c,A,z)=>(E(L,c,"write to private field"),z?z.call(L,A):c.set(L,A),A),l=(L,c,A)=>(E(L,c,"access private method"),A),h,u,p;class i{constructor(){f(this,u),D(this,"childNodes",[]),f(this,h,void 0)}get firstChild(){return this.childNodes[0]}get lastChild(){return this.childNodes[this.childNodes.length-1]}get parentNode(){return g(this,h)}get nextSibling(){var c;const A=(c=this.parentNode)==null?void 0:c.childNodes;return A&&A[A.indexOf(this)+1]}get previousSibling(){var c;const A=(c=this.parentNode)==null?void 0:c.childNodes;return A&&A[A.indexOf(this)-1]}get offsetHeight(){return l(this,u,p).call(this).height}get offsetWidth(){return l(this,u,p).call(this).width}getAttribute(c){return c==="padding"?0:c in this?String(this[c]):void 0}setAttribute(c,A){c==="parentNode"?a(this,h,A):this[c]=A}getRootNode(){let{parentNode:c}=this;for(;c!=null&&c.parentNode;)({parentNode:c}=c);return c!=null?c:this}posFromIndex(c){const A=String(this);if(c>=-A.length&&c<=A.length){const z=A.slice(0,c).split(`
25
- `);return{top:z.length-1,left:z[z.length-1].length}}}getGaps(c){return 0}getRelativeIndex(c){let A;const z=(j,ot)=>A.slice(0,j).reduce((mt,bt,Mt)=>mt+String(bt).length+ot.getGaps(Mt),0)+ot.getAttribute("padding");if(c===void 0){const{parentNode:j}=this;return j?({childNodes:A}=j,z(A.indexOf(this),j)):0}return{childNodes:A}=this,z(c,this)}getAbsoluteIndex(){const{parentNode:c}=this;return c?c.getAbsoluteIndex()+this.getRelativeIndex():0}}h=new WeakMap,u=new WeakSet,p=function(){const L=String(this).split(`
26
- `);return{height:L.length,width:L[L.length-1].length}};const o=new Set(["nowiki","pre","charinsert","score","syntaxhighlight","source","math","chem","ce","graph","mapframe","maplink","quiz","templatedata","timeline"]);class s extends i{get length(){return this.childNodes.length}text(c){return(0,P.fL)(this.childNodes,c)}normalize(){const{childNodes:c}=this;for(let A=c.length-1;A>=0;A--){const{type:z,data:j}=c[A],ot=c[A-1];z!=="text"||this.getGaps(A-1)||(j===""?c.splice(A,1):(ot==null?void 0:ot.type)==="text"&&(ot.setAttribute("data",ot.data+j),c.splice(A,1)))}}removeAt(c){const{childNodes:A}=this,[z]=A.splice(c,1);return z}insertAt(c,A=this.length){const{childNodes:z}=this;return c.setAttribute("parentNode",this),z.splice(A,0,c),c}closest(c){let{parentNode:A}=this,z;const j=new Set(c.split(",").map(ot=>ot.trim()));for(z=ot=>j.has(ot.type);A;){if(z(A))return A;({parentNode:A}=A)}}append(...c){for(const A of c)this.insertAt(A)}replaceChildren(...c){this.childNodes.length=0,this.append(...c)}setText(c,A=0){const z=this.childNodes[A],{data:j}=z;return z.replaceData(c),j}toString(c,A=""){return this.childNodes.map(z=>z.toString()).join(A)}lint(c=this.getAbsoluteIndex()){const{SyntaxToken:A}=t(669);if(this instanceof A||this.constructor.hidden||this.type==="ext-inner"&&o.has(this.name))return[];const z=[];for(let j=0,ot=c+this.getAttribute("padding");j<this.length;j++){const mt=this.childNodes[j];z.push(...mt.lint(ot)),ot+=String(mt).length+this.getGaps(j)}return z}print(c={}){var A;return String(this)?`<span class="wpb-${(A=c.class)!=null?A:this.type}">${(0,P.S0)(this.childNodes,c)}</span>`:""}}var d=Object.defineProperty,v=(L,c,A)=>c in L?d(L,c,{enumerable:!0,configurable:!0,writable:!0,value:A}):L[c]=A,x=(L,c,A)=>(v(L,typeof c!="symbol"?c+"":c,A),A),C=(L,c,A)=>{if(!c.has(L))throw TypeError("Cannot "+A)},I=(L,c,A)=>{if(c.has(L))throw TypeError("Cannot add the same private member more than once");c instanceof WeakSet?c.add(L):c.set(L,A)},B=(L,c,A)=>(C(L,c,"access private method"),A),H,Y;const K=/https?:\/\/|\{+|\}+|\[{2,}|\[(?![^[]*\])|((?:^|\])[^[]*?)\]+|<\s*\/?([a-z]\w*)/giu,S=/\{+|\}+|\[{2,}|\[(?![^[]*\])|((?:^|\])[^[]*?)\]+|<\s*\/?([a-z]\w*)/giu,_=["html","head","style","title","body","a","audio","img","video","embed","iframe","object","canvas","script","col","colgroup","tbody","tfoot","thead","button","input","label","option","select","textarea"];class T extends i{constructor(c){super(),I(this,H),x(this,"type","text"),x(this,"data",""),this.data=c}toString(){return this.data}text(){return this.data}lint(c=this.getAbsoluteIndex()){const{data:A,parentNode:z,nextSibling:j,previousSibling:ot}=this,{type:mt,name:bt}=z,Mt=j==null?void 0:j.type,Xt=ot==null?void 0:ot.type,yt=mt==="free-ext-link"||mt==="ext-link-url"||mt==="image-parameter"&&bt==="link"?S:K,Bt=[],{ext:Jt,html:kt}=this.getRootNode().getAttribute("config");if(A.search(yt)!==-1){yt.lastIndex=0;const Ut=this.getRootNode(),{top:jt,left:qt}=Ut.posFromIndex(c),te=new Set([Jt,kt,_].flat(2));for(let _t=yt.exec(A);_t;_t=yt.exec(A)){const[,It,ee]=_t;let{0:Ft,index:Pt}=_t;if(It&&It!=="]"){const{length:Yt}=It;Pt+=Yt,Ft=Ft.slice(Yt)}const Nt=c+Pt,Dt=A.slice(0,Pt).split(`
27
- `),Kt=Dt.length+jt-1,Zt=Dt[Dt.length-1],Gt=Dt.length===1?qt+Zt.length:Zt.length,{0:pt,length:Wt}=Ft,zt=Nt+Wt,Ht=String(Ut),St=Ht[zt],Lt=Ht[Nt-1],ne=Wt>1&&(pt!=="<"||/[\s/>]/u.test(St!=null?St:""))||pt==="{"&&(St===pt||Lt==="-")||pt==="}"&&(Lt===pt||St==="-")||pt==="["&&(St===pt||mt==="ext-link-text"||!A.slice(Pt+1).trim()&&Mt==="free-ext-link")||pt==="]"&&(Lt===pt||!A.slice(0,Pt).trim()&&Xt==="free-ext-link")?"error":"warning";(pt!=="h"||Pt>0)&&(pt!=="<"||te.has(ee.toLowerCase()))&&Bt.push({message:U.Z.msg('lonely "$1"',pt==="h"?Ft:pt),severity:ne,startIndex:Nt,endIndex:zt,startLine:Kt,endLine:Kt,startCol:Gt,endCol:Gt+Wt})}return Bt}return[]}replaceData(c){B(this,H,Y).call(this,c)}print(){const c={"&":"amp","<":"lt",">":"gt"};return this.data.replace(/[&<>]/gu,A=>`&${c[A]};`)}}H=new WeakSet,Y=function(L){this.setAttribute("data",L)};var $=Object.defineProperty,y=(L,c,A)=>c in L?$(L,c,{enumerable:!0,configurable:!0,writable:!0,value:A}):L[c]=A,R=(L,c,A)=>(y(L,typeof c!="symbol"?c+"":c,A),A),G=(L,c,A)=>{if(!c.has(L))throw TypeError("Cannot "+A)},n=(L,c,A)=>(G(L,c,"read from private field"),A?A.call(L):c.get(L)),e=(L,c,A)=>{if(c.has(L))throw TypeError("Cannot add the same private member more than once");c instanceof WeakSet?c.add(L):c.set(L,A)},r=(L,c,A,z)=>(G(L,c,"write to private field"),z?z.call(L,A):c.set(L,A),A),F=(L,c,A,z)=>({set _(j){r(L,c,j,A)},get _(){return n(L,c,z)}}),m=(L,c,A)=>(G(L,c,"access private method"),A),w,O,Z,X,J,V,k,q,tt,at,et,ct,nt,rt,st,lt,dt,it,ht,wt,Tt,Ot,xt,gt,ft,vt,Ct,At;const ut=class Qt extends s{constructor(c,A=U.Z.getConfig(),z=[],j){super(),e(this,J),e(this,k),e(this,tt),e(this,et),e(this,nt),e(this,st),e(this,dt),e(this,ht),e(this,Tt),e(this,xt),e(this,ft),e(this,Ct),R(this,"type","root"),e(this,w,0),e(this,O,void 0),e(this,Z,void 0),e(this,X,void 0),typeof c=="string"&&this.insertAt(c),r(this,O,A),r(this,Z,z),z.push(this)}parseOnce(c=n(this,w),A=!1){if(c<n(this,w)||!this.getAttribute("plain")||this.length===0)return this;switch(c){case 0:this.type==="root"&&n(this,Z).shift(),r(this,X,A),m(this,k,q).call(this,A);break;case 1:m(this,tt,at).call(this);break;case 2:m(this,et,ct).call(this);break;case 3:m(this,nt,rt).call(this);break;case 4:m(this,st,lt).call(this);break;case 5:m(this,dt,it).call(this);break;case 6:m(this,ht,wt).call(this);break;case 7:m(this,Tt,Ot).call(this);break;case 8:m(this,xt,gt).call(this);break;case 9:m(this,ft,vt).call(this);break;case 10:m(this,Ct,At).call(this)}if(this.type==="root")for(const z of n(this,Z))z.parseOnce(c,A);return F(this,w)._++,this}buildFromStr(c,A){const z=c.split(/[\0\x7F]/u).map((j,ot)=>{if(ot%2===0)return new T(j);if(Number.isNaN(Number(j[j.length-1])))return n(this,Z)[Number(j.slice(0,-1))];throw new Error(`\u89E3\u6790\u9519\u8BEF\uFF01\u672A\u6B63\u786E\u6807\u8BB0\u7684 Token\uFF1A${j}`)});return A==="string"?z.map(String).join(""):A==="text"?(0,P.fL)(z):z}afterBuild(){if(this.type==="root")for(const c of n(this,Z))c.afterBuild()}parse(c=N.C,A=!1){for(;n(this,w)<c;)this.parseOnce(n(this,w),A);return c&&(m(this,J,V).call(this),this.afterBuild()),this}getAttribute(c){switch(c){case"plain":return this.constructor===Qt;case"config":return JSON.parse(JSON.stringify(n(this,O)));case"accum":return n(this,Z);case"include":{if(n(this,X)!==void 0)return n(this,X);const A=this.getRootNode();return A!==this?A.getAttribute("include"):!1}default:return super.getAttribute(c)}}setAttribute(c,A){switch(c){case"stage":n(this,w)===0&&this.type==="root"&&n(this,Z).shift(),r(this,w,A);break;default:super.setAttribute(c,A)}}insertAt(c,A=this.length){const z=typeof c=="string"?new T(c):c;return super.insertAt(z,A),z.type==="root"&&(z.type="plain"),z}normalizeTitle(c,A=0,z=!1,j=!1,ot=!1){return U.Z.normalizeTitle(c,A,n(this,X),n(this,O),z,j,ot)}};w=new WeakMap,O=new WeakMap,Z=new WeakMap,X=new WeakMap,J=new WeakSet,V=function(){var L;r(this,w,N.C);const{length:c,firstChild:A}=this,z=String(A);if(c===1&&A.type==="text"&&z.includes("\0")&&(this.replaceChildren(...this.buildFromStr(z)),this.normalize(),this.type==="root"))for(const j of n(this,Z))m(L=j,J,V).call(L)},k=new WeakSet,q=function(L){const{parseCommentAndExt:c}=t(551);this.setText(c(String(this.firstChild),n(this,O),n(this,Z),L))},tt=new WeakSet,at=function(){const{parseBraces:L}=t(313),c=this.type==="root"?String(this.firstChild):`\0${String(this.firstChild)}`,A=L(c,n(this,O),n(this,Z));this.setText(this.type==="root"?A:A.slice(1))},et=new WeakSet,ct=function(){var L;if((L=n(this,O).excludes)!=null&&L.includes("html"))return;const{parseHtml:c}=t(980);this.setText(c(String(this.firstChild),n(this,O),n(this,Z)))},nt=new WeakSet,rt=function(){var L;if((L=n(this,O).excludes)!=null&&L.includes("table"))return;const{parseTable:c}=t(508);this.setText(c(this,n(this,O),n(this,Z)))},st=new WeakSet,lt=function(){var L;if((L=n(this,O).excludes)!=null&&L.includes("hr"))return;const{parseHrAndDoubleUnderscore:c}=t(362);this.setText(c(this,n(this,O),n(this,Z)))},dt=new WeakSet,it=function(){const{parseLinks:L}=t(106);this.setText(L(String(this.firstChild),n(this,O),n(this,Z)))},ht=new WeakSet,wt=function(){var L;if((L=n(this,O).excludes)!=null&&L.includes("quote"))return;const{parseQuotes:c}=t(704),A=String(this.firstChild).split(`
28
- `);for(let z=0;z<A.length;z++)A[z]=c(A[z],n(this,O),n(this,Z));this.setText(A.join(`
29
- `))},Tt=new WeakSet,Ot=function(){var L;if((L=n(this,O).excludes)!=null&&L.includes("extLink"))return;const{parseExternalLinks:c}=t(418);this.setText(c(String(this.firstChild),n(this,O),n(this,Z)))},xt=new WeakSet,gt=function(){var L;if((L=n(this,O).excludes)!=null&&L.includes("magicLink"))return;const{parseMagicLinks:c}=t(311);this.setText(c(String(this.firstChild),n(this,O),n(this,Z)))},ft=new WeakSet,vt=function(){var L;if((L=n(this,O).excludes)!=null&&L.includes("list"))return;const{parseList:c}=t(904),A=String(this.firstChild).split(`
30
- `);let z=this.type==="root"||this.type==="ext-inner"&&this.name==="poem"?0:1;for(;z<A.length;z++)A[z]=c(A[z],n(this,O),n(this,Z));this.setText(A.join(`
31
- `))},Ct=new WeakSet,At=function(){if(n(this,O).variants.length>0){const{parseConverter:L}=t(370);this.setText(L(String(this.firstChild),n(this,O),n(this,Z)))}};let $t=ut},299:(Q,b,t)=>{t.d(b,{o:()=>u});var P=t(169),N=t(444),U=t(891),M=t(541),W=t(34),D=(p,i,o)=>{if(!i.has(p))throw TypeError("Cannot "+o)},E=(p,i,o)=>(D(p,i,"read from private field"),o?o.call(p):i.get(p)),g=(p,i,o)=>{if(i.has(p))throw TypeError("Cannot add the same private member more than once");i instanceof WeakSet?i.add(p):i.set(p,o)},f=(p,i,o,s)=>(D(p,i,"write to private field"),s?s.call(p,o):i.set(p,o),o),a,l,h;class u extends M.Token{constructor(i,o,s=U.Z.getConfig(),d=[],v="|"){if(super(void 0,s,d,{}),g(this,a,!0),g(this,l,void 0),g(this,h,void 0),this.insertAt(new W.D(i,"link-target",s,d,{})),o!==void 0){const x=new M.Token(o,s,d,{});x.type="link-text",x.setAttribute("stage",N.C-1),this.insertAt(x)}f(this,l,v)}afterBuild(){f(this,h,this.getTitle()),E(this,l).includes("\0")&&f(this,l,this.buildFromStr(E(this,l),"string"))}setAttribute(i,o){i==="bracket"?f(this,a,!!o):i==="title"?f(this,h,o):super.setAttribute(i,o)}toString(i){const o=super.toString(i,E(this,l));return E(this,a)?`[[${o}]]`:o}text(){const i=super.text("|");return E(this,a)?`[[${i}]]`:i}getAttribute(i){return i==="title"?E(this,h):i==="padding"?2:super.getAttribute(i)}getGaps(i){return i===0?E(this,l).length:1}lint(i=this.getAbsoluteIndex()){const o=super.lint(i),{childNodes:[s,d],type:v}=this,{encoded:x,fragment:C}=E(this,h);let I;return v==="link"&&s.childNodes.some(({type:B})=>B==="template")&&(I={start:i,...this.getRootNode().posFromIndex(i)},o.push((0,P.D)(s,I,"template in an internal link target","warning"))),x&&(I!=null||(I={start:i,...this.getRootNode().posFromIndex(i)}),o.push((0,P.D)(s,I,"unnecessary URL encoding in an internal link"))),v==="link"&&(d!=null&&d.childNodes.some(({type:B,data:H})=>B==="text"&&H.includes("|")))?(I!=null||(I={start:i,...this.getRootNode().posFromIndex(i)}),o.push((0,P.D)(d,I,'additional "|" in the link text',"warning"))):v!=="link"&&C!==void 0&&(I!=null||(I={start:i,...this.getRootNode().posFromIndex(i)}),o.push((0,P.D)(s,I,"useless fragment"))),o}getTitle(){return this.normalizeTitle(this.firstChild.text(),0,!1,!0,!0)}print(){return super.print(E(this,a)?{pre:"[[",post:"]]",sep:E(this,l)}:{sep:E(this,l)})}}a=new WeakMap,l=new WeakMap,h=new WeakMap},533:(Q,b,t)=>{t.d(b,{q:()=>T});var P=t(467),N=t(169),U=t(891),M=t(299),W=t(541),D=Object.defineProperty,E=($,y,R)=>y in $?D($,y,{enumerable:!0,configurable:!0,writable:!0,value:R}):$[y]=R,g=($,y,R)=>(E($,typeof y!="symbol"?y+"":y,R),R),f=($,y,R)=>{if(!y.has($))throw TypeError("Cannot "+R)},a=($,y,R)=>(f($,y,"read from private field"),R?R.call($):y.get($)),l=($,y,R)=>{if(y.has($))throw TypeError("Cannot add the same private member more than once");y instanceof WeakSet?y.add($):y.set($,R)},h=($,y,R,G)=>(f($,y,"write to private field"),G?G.call($,R):y.set($,R),R),u;const p=new Set(["alt","link","lang","page","caption"]);function i($,y,R=U.Z.getConfig(),G=!1){y=y.trim();let n=y.replace(/\0\d+t\x7F/gu,"").trim();switch($){case"width":return!n||/^(?:\d+x?|\d*x\d+)$/u.test(n);case"link":{if(!n||new RegExp(`^(?:(?:${R.protocol}|//)${P._X}|\0\\d+m\x7F)${P.Qk}$`,"iu").test(n))return y;n.startsWith("[[")&&n.endsWith("]]")&&(n=n.slice(2,-2));const r=U.Z.normalizeTitle(n,0,!1,R,G,!0,!0);return r.valid&&r}case"lang":return!n||R.variants.includes(n);case"alt":case"class":case"manualthumb":return!0;default:return!Number.isNaN(Number(n))}}class o extends W.Token{constructor(y,R=U.Z.getConfig(),G=[]){var n=(...w)=>{super(...w),g(this,"type","image-parameter"),l(this,u,"")},e;let r;const F=Object.entries(R.img).map(([w,O])=>[w,O,new RegExp(`^(\\s*)${w.replace("$1","(.*)")}(\\s*)$`,"u")]),m=F.find(([,w,O])=>(r=O.exec(y),r&&(r.length!==4||i(w,r[2],R,!0)!==!1)));if(m&&r){r.length===3?(n(void 0,R,G),h(this,u,y)):(n(r[2],R,G,{}),h(this,u,`${r[1]}${m[0]}${r[3]}`)),this.setAttribute("name",m[1]);return}n(y,{...R,excludes:[...(e=R.excludes)!=null?e:[],"list"]},G),this.setAttribute("name","caption"),this.setAttribute("stage",7)}get link(){return this.name==="link"?i("link",super.text(),this.getAttribute("config")):void 0}afterBuild(){var y;((y=this.parentNode)==null?void 0:y.type)==="gallery-image"&&!p.has(this.name)&&this.setAttribute("name","invalid")}toString(y){return a(this,u)?a(this,u).replace("$1",super.toString(y)):super.toString(y)}text(){return a(this,u)?a(this,u).replace("$1",super.text()).trim():super.text().trim()}getAttribute(y){return y==="plain"?this.name==="caption":y==="padding"?Math.max(0,a(this,u).indexOf("$1")):super.getAttribute(y)}lint(y=this.getAbsoluteIndex()){const R=super.lint(y),{link:G,name:n}=this;return n==="invalid"?R.push((0,N.Y)(this,{start:y},"invalid gallery image parameter")):typeof G=="object"&&G.encoded&&R.push((0,N.Y)(this,{start:y},"unnecessary URL encoding in an internal link")),R}print(){return a(this,u)?`<span class="wpb-image-parameter">${a(this,u).replace("$1",`<span class="wpb-image-caption">${(0,P.S0)(this.childNodes)}</span>`)}</span>`:super.print({class:"image-caption"})}}u=new WeakMap;var s=Object.defineProperty,d=($,y,R)=>y in $?s($,y,{enumerable:!0,configurable:!0,writable:!0,value:R}):$[y]=R,v=($,y,R)=>(d($,typeof y!="symbol"?y+"":y,R),R),x=($,y,R)=>{if(!y.has($))throw TypeError("Cannot "+R)},C=($,y,R)=>{if(y.has($))throw TypeError("Cannot add the same private member more than once");y instanceof WeakSet?y.add($):y.set($,R)},I=($,y,R)=>(x($,y,"access private method"),R),B,H;const Y=new Set(["manualthumb","frameless","framed","thumbnail"]),K=new Set(["left","right","center","none"]),S=new Set(["baseline","sub","super","top","text-top","middle","bottom","text-bottom"]),_=($,y,R,G)=>{if(G===void 0)return[];const n=new RegExp(`${[$,y,R].map(P.hr).join("|")}`,"gu"),e=[];let r=n.exec(G),F=0,m=0;for(;r;){const{0:w,index:O}=r;w!==R?F+=w===$?1:-1:F===0&&(e.push(G.slice(m,O)),{lastIndex:m}=n),r=n.exec(G)}return e.push(G.slice(m)),e};class T extends M.o{constructor(y,R,G=U.Z.getConfig(),n=[],e="|"){super(y,void 0,G,n,e),C(this,B),v(this,"type","file"),this.append(..._("-{","}-","|",R).map(r=>new o(r,G,n)))}lint(y=this.getAbsoluteIndex()){const R=super.lint(y),G=this.getAllArgs().filter(({childNodes:O})=>{const Z=O.filter(X=>X.text().trim());return Z.length!==1||Z[0].type!=="arg"}),n=[...new Set(G.map(({name:O})=>O))].filter(O=>O!=="invalid"),e=n.filter(O=>Y.has(O)),r=n.filter(O=>K.has(O)),F=n.filter(O=>S.has(O));if(G.length===n.length&&e.length<2&&r.length<2&&F.length<2)return R;const m={start:y,...this.getRootNode().posFromIndex(y)},w=(O,Z)=>X=>(0,N.D)(X,m,U.Z.msg(`${O} image $1 parameter`,Z));for(const O of n){let Z=G.filter(({name:X})=>X===O);O==="caption"&&(Z=[...Z.slice(0,-1).filter(X=>X.text()),...Z.slice(-1)]),Z.length>1&&R.push(...Z.map(w("duplicated",O)))}return e.length>1&&R.push(...G.filter(({name:O})=>Y.has(O)).map(w("conflicting","frame"))),r.length>1&&R.push(...G.filter(({name:O})=>K.has(O)).map(w("conflicting","horizontal-alignment"))),F.length>1&&R.push(...G.filter(({name:O})=>S.has(O)).map(w("conflicting","vertical-alignment"))),R}getAllArgs(){return this.childNodes.slice(1)}getArgs(y){return this.getAllArgs().filter(({name:R})=>y===R)}getFrameArgs(){return I(this,B,H).call(this,Y,"\u6846\u67B6")}getHorizAlignArgs(){return I(this,B,H).call(this,K,"\u6C34\u5E73\u5BF9\u9F50")}getVertAlignArgs(){return I(this,B,H).call(this,S,"\u5782\u76F4\u5BF9\u9F50")}}B=new WeakSet,H=function($,y){return this.getAllArgs().filter(({name:G})=>$.has(G))}},39:(Q,b,t)=>{t.d(b,{_:()=>l});var P=t(169),N=t(444),U=t(891),M=t(541),W=t(533),D=(h,u,p)=>{if(!u.has(h))throw TypeError("Cannot "+p)},E=(h,u,p)=>{if(u.has(h))throw TypeError("Cannot add the same private member more than once");u instanceof WeakSet?u.add(h):u.set(h,p)},g=(h,u,p)=>(D(h,u,"access private method"),p),f,a;class l extends W.q{constructor(u,p,i,o=U.Z.getConfig(),s=[]){let d;if(i!==void 0){d=new M.Token(i,o,s),d.type="plain";for(let v=1;v<N.C;v++)d.parseOnce();s.splice(s.indexOf(d),1)}super(p,d==null?void 0:d.toString(),o,s),E(this,f),this.setAttribute("bracket",!1),this.type=`${u}-image`}getTitle(){const u=this.type==="imagemap-image";return this.normalizeTitle(String(this.firstChild),u?0:6,!0,!u)}getAttribute(u){return u==="padding"?0:super.getAttribute(u)}lint(u=this.getAbsoluteIndex()){const p=super.lint(u),{ns:i}=this.getAttribute("title");return i!==6&&p.push((0,P.Y)(this,{start:u},"invalid gallery image")),p}afterBuild(){g(this,f,a).call(this,this.getTitle())}}f=new WeakSet,a=function(h){this.setAttribute("title",h)}},524:(Q,b,t)=>{t.d(b,{h:()=>W});var P=t(299),N=Object.defineProperty,U=(D,E,g)=>E in D?N(D,E,{enumerable:!0,configurable:!0,writable:!0,value:g}):D[E]=g,M=(D,E,g)=>(U(D,typeof E!="symbol"?E+"":E,g),g);class W extends P.o{constructor(){super(...arguments),M(this,"type","link")}}},686:(Q,b,t)=>{t.d(b,{k:()=>M});var P=t(169),N=t(891),U=t(541);class M extends U.Token{constructor(D,E=!1,g=N.Z.getConfig(),f=[]){super(D,g,f,{}),this.type=E?"ext-link-url":"free-ext-link"}lint(D=this.getAbsoluteIndex()){const E=super.lint(D),g=`[\uFF0C\uFF1B\u3002\uFF1A\uFF01\uFF1F\uFF08\uFF09]+${this.type==="ext-link-url"?"|\\|+":""}`,f=new RegExp(g,"u"),a=new RegExp(g,"gu");let l;for(const h of this.childNodes){const{type:u,data:p}=h;if(u!=="text"||!f.test(p))continue;l!=null||(l={start:D,...this.getRootNode().posFromIndex(D)});const i=(0,P.D)(h,l,"","warning");a.lastIndex=0;for(let o=a.exec(p);o;o=a.exec(p)){const{index:s,0:d}=o,v=p.slice(0,s).split(`
32
- `),{length:x}=v,{length:C}=v[v.length-1],I=D+s,B=i.startLine+x-1,H=x===1?i.startCol+C:C;E.push({...i,message:N.Z.msg("$1 in URL",d.startsWith("|")?'"|"':N.Z.msg("full-width punctuation")),startIndex:I,endIndex:I+d.length,startLine:B,endLine:B,startCol:H,endCol:H+d.length})}}return E}}},57:(Q,b,t)=>{t.r(b),t.d(b,{NestedToken:()=>a});var P=t(169),N=t(891),U=t(541),M=t(895),W=t(826),D=t(976),E=Object.defineProperty,g=(l,h,u)=>h in l?E(l,h,{enumerable:!0,configurable:!0,writable:!0,value:u}):l[h]=u,f=(l,h,u)=>(g(l,typeof h!="symbol"?h+"":h,u),u);class a extends U.Token{constructor(h,u,p,i=N.Z.getConfig(),o=[]){var s;h=(s=h==null?void 0:h.replace(u,(d,v,x,C,I)=>{const B=`\0${o.length+1}${v?"e":"c"}\x7F`;if(v)new M.$(v,x,C,I,i,o);else{const H=d.endsWith("-->");new D.T(d.slice(4,H?-3:void 0),H,i,o)}return B}))==null?void 0:s.replace(/(^|\0\d+[ce]\x7F)([^\0]+)(?=$|\0\d+[ce]\x7F)/gu,(d,v,x)=>(new W.O(x,i,o),`${v}\0${o.length}c\x7F`)),super(h,i,o,{}),f(this,"type","ext-inner")}lint(h=this.getAbsoluteIndex()){let u;return[...super.lint(h),...this.childNodes.filter(p=>{if(p.type==="ext"||p.type==="comment")return!1;const i=String(p).trim();return i&&!/^<!--.*-->$/su.test(i)}).map(p=>(u!=null||(u={start:h,...this.getRootNode().posFromIndex(h)}),(0,P.D)(p,u,N.Z.msg("invalid content in <$1>",this.name))))]}}},439:(Q,b,t)=>{t.d(b,{h:()=>U});var P=t(891),N=t(541);class U extends N.Token{get innerText(){return this.firstChild.data}constructor(W="",D=P.Z.getConfig(),E=[]){super(W,D,E)}}},976:(Q,b,t)=>{t.d(b,{T:()=>g});var P=t(169),N=t(959),U=t(891),M=t(439),W=Object.defineProperty,D=(f,a,l)=>a in f?W(f,a,{enumerable:!0,configurable:!0,writable:!0,value:l}):f[a]=l,E=(f,a,l)=>(D(f,typeof a!="symbol"?a+"":a,l),l);class g extends(0,N.a)(M.h){constructor(a,l=!0,h=U.Z.getConfig(),u=[]){super(a,h,u),E(this,"type","comment"),E(this,"closed"),this.closed=l}getAttribute(a){return a==="padding"?4:super.getAttribute(a)}lint(a=this.getAbsoluteIndex()){return this.closed?[]:[(0,P.Y)(this,{start:a},"unclosed HTML comment")]}toString(a){return`<!--${this.innerText}${this.closed?"-->":""}`}print(){return super.print({pre:"&lt;!--",post:this.closed?"--&gt;":""})}}},461:(Q,b,t)=>{t.d(b,{k:()=>W});var P=t(933),N=Object.defineProperty,U=(D,E,g)=>E in D?N(D,E,{enumerable:!0,configurable:!0,writable:!0,value:g}):D[E]=g,M=(D,E,g)=>(U(D,typeof E!="symbol"?E+"":E,g),g);class W extends P.T{constructor(){super(...arguments),M(this,"type","dd")}}},491:(Q,b,t)=>{t.r(b),t.d(b,{NowikiToken:()=>E});var P=t(169),N=t(891),U=t(439),M=Object.defineProperty,W=(g,f,a)=>f in g?M(g,f,{enumerable:!0,configurable:!0,writable:!0,value:a}):g[f]=a,D=(g,f,a)=>(W(g,typeof f!="symbol"?f+"":f,a),a);class E extends U.h{constructor(){super(...arguments),D(this,"type","ext-inner")}lint(f=this.getAbsoluteIndex()){const{name:a,firstChild:{data:l}}=this;return(a==="templatestyles"||a==="section")&&l?[(0,P.Y)(this,{start:f},N.Z.msg("nothing should be in <$1>",a))]:super.lint(f)}}},933:(Q,b,t)=>{t.d(b,{T:()=>N});var P=t(439);class N extends P.h{}},826:(Q,b,t)=>{t.d(b,{O:()=>D});var P=t(959),N=t(439),U=Object.defineProperty,M=(E,g,f)=>g in E?U(E,g,{enumerable:!0,configurable:!0,writable:!0,value:f}):E[g]=f,W=(E,g,f)=>(M(E,typeof g!="symbol"?g+"":g,f),f);class D extends(0,P.a)(N.h){constructor(){super(...arguments),W(this,"type","noinclude")}}},160:(Q,b,t)=>{t.r(b),t.d(b,{ParamTagToken:()=>g});var P=t(169),N=t(891),U=t(541),M=t(34),W=Object.defineProperty,D=(f,a,l)=>a in f?W(f,a,{enumerable:!0,configurable:!0,writable:!0,value:l}):f[a]=l,E=(f,a,l)=>(D(f,typeof a!="symbol"?a+"":a,l),l);class g extends U.Token{constructor(a,l=N.Z.getConfig(),h=[],u={}){if(super(void 0,l,h,{}),E(this,"type","ext-inner"),a){const p=M.D;this.append(...a.split(`
33
- `).map(i=>new p(i,"param-line",l,h,{})))}}toString(a){return super.toString(a,`
34
- `)}text(){return super.text(`
35
- `)}getGaps(){return 1}lint(a=this.getAbsoluteIndex()){let l;return this.childNodes.filter(h=>{const{childNodes:u}=h,p=u.findIndex(({type:o})=>o!=="text"),i=(p>=0?u.slice(0,p).map(String).join(""):String(h)).trim();return i&&!(p>=0?/^[a-z]+(?:\[\])?\s*(?:=|$)/iu:/^[a-z]+(?:\[\])?\s*=/iu).test(i)}).map(h=>(l!=null||(l={start:a,...this.getRootNode().posFromIndex(a)}),(0,P.D)(h,l,N.Z.msg("invalid parameter of $1",this.name))))}print(){return super.print({sep:`
36
- `})}}},504:(Q,b,t)=>{t.r(b),t.d(b,{InputboxToken:()=>M});var P=t(313),N=t(891),U=t(160);class M extends U.ParamTagToken{constructor(D,E=N.Z.getConfig(),g=[]){const f=Symbol("InputboxToken");g.push(f),D&&(D=(0,P.parseBraces)(D,E,g)),g.splice(g.indexOf(f),1),super(D,E,g,{})}}},435:(Q,b,t)=>{t.r(b),t.d(b,{PreToken:()=>g});var P=t(444),N=t(891),U=t(541),M=t(826),W=Object.defineProperty,D=(f,a,l)=>a in f?W(f,a,{enumerable:!0,configurable:!0,writable:!0,value:l}):f[a]=l,E=(f,a,l)=>(D(f,typeof a!="symbol"?a+"":a,l),l);class g extends U.Token{constructor(a,l=N.Z.getConfig(),h=[]){if(a){const u="<nowiki>",p="</nowiki>",{length:i}=u;let o=a.indexOf(u),s=a.indexOf(p,o+i),d="";for(;o!==-1&&s!==-1;)new M.O(u,l,h),new M.O(p,l,h),d+=`${a.slice(0,o)}\0${h.length-1}c\x7F${a.slice(o+i,s)}\0${h.length}c\x7F`,a=a.slice(s+i+1),o=a.indexOf(u),s=a.indexOf(p,o+i);a=`${d}${a}`}super(a,l,h,{}),E(this,"type","ext-inner"),this.setAttribute("stage",P.C-1)}getAttribute(a){return a==="plain"||super.getAttribute(a)}}},669:(Q,b,t)=>{t.r(b),t.d(b,{SyntaxToken:()=>U});var P=t(891),N=t(541);class U extends N.Token{constructor(W,D,E="plain",g=P.Z.getConfig(),f=[],a){super(W,g,f,a),this.type=E}}},895:(Q,b,t)=>{t.d(b,{$:()=>a});var P=t(169),N=t(891),U=t(541),M=t(415),W=t(83),D=Object.defineProperty,E=(l,h,u)=>h in l?D(l,h,{enumerable:!0,configurable:!0,writable:!0,value:u}):l[h]=u,g=(l,h,u)=>(E(l,typeof h!="symbol"?h+"":h,u),u);const f=(l,h)=>{const u=new Set(l);return u.delete(h),[...u]};class a extends M.m{constructor(h,u,p,i,o=N.Z.getConfig(),s=[]){var d;const v=h.toLowerCase(),x=new W.x(!u||/^\s/u.test(u)?u:` ${u}`,"ext-attrs",v,o,s),C={...o,ext:f(o.ext,v),excludes:[...(d=o.excludes)!=null?d:[]]};let I;switch(C.inExt=!0,v){case"tab":C.ext=f(C.ext,"tabs");case"indicator":case"poem":case"ref":case"option":case"combooption":case"tabs":case"poll":case"seo":v==="poem"&&C.excludes.push("heading"),I=new U.Token(p,C,s);break;case"pre":{const{PreToken:B}=t(435);I=new B(p,C,s);break}case"dynamicpagelist":{const{ParamTagToken:B}=t(160);I=new B(p,C,s);break}case"inputbox":{C.excludes.push("heading");const{InputboxToken:B}=t(504);I=new B(p,C,s);break}case"references":{const{NestedToken:B}=t(57);I=new B(p,/<!--.*?(?:-->|$)|<(ref)(\s[^>]*)?>(.*?)<\/(ref\s*)>/gisu,["ref"],C,s);break}case"choose":{const{NestedToken:B}=t(57);I=new B(p,/<(option|choicetemplate)(\s[^>]*)?>(.*?)<\/(\1)>/gsu,["option","choicetemplate"],C,s);break}case"combobox":{const{NestedToken:B}=t(57);I=new B(p,/<(combooption)(\s[^>]*)?>(.*?)<\/(combooption\s*)>/gisu,["combooption"],C,s);break}case"gallery":{const{GalleryToken:B}=t(420);I=new B(p,C,s);break}case"imagemap":{const{ImagemapToken:B}=t(842);I=new B(p,C,s);break}default:{const{NowikiToken:B}=t(491);I=new B(p,C)}}I.setAttribute("name",v),I.type="ext-inner",super(h,x,I,i,o,s),g(this,"type","ext")}lint(h=this.getAbsoluteIndex()){const u=super.lint(h);if(this.name!=="nowiki"&&this.closest("html-attrs, table-attrs")){const p=this.getRootNode(),i={start:h,...p.posFromIndex(h)};u.push((0,P.Y)(this,i,"extension tag in HTML tag attributes"))}return u}}},415:(Q,b,t)=>{t.d(b,{m:()=>a});var P=t(891),N=t(541),U=(l,h,u)=>{if(!h.has(l))throw TypeError("Cannot "+u)},M=(l,h,u)=>(U(l,h,"read from private field"),u?u.call(l):h.get(l)),W=(l,h,u)=>{if(h.has(l))throw TypeError("Cannot add the same private member more than once");h instanceof WeakSet?h.add(l):h.set(l,u)},D=(l,h,u,p)=>(U(l,h,"write to private field"),p?p.call(l,u):h.set(l,u),u),E,g,f;class a extends N.Token{constructor(h,u,p,i,o=P.Z.getConfig(),s=[]){super(void 0,o),W(this,E,void 0),W(this,g,void 0),W(this,f,void 0),this.setAttribute("name",h.toLowerCase()),D(this,f,[h,i||h]),D(this,E,i===void 0),D(this,g,i!==""),this.append(u,p);const d=typeof u=="string"?-1:s.indexOf(u);s.splice(d===-1?1/0:d,0,this)}get closed(){return M(this,g)}toString(h){const{firstChild:u,lastChild:p}=this,[i,o]=M(this,f);return M(this,E)?`<${i}${u.toString(h)}/>`:`<${i}${u.toString(h)}>${p.toString(h)}${this.closed?`</${o}>`:""}`}text(){const[h,u]=M(this,f);return M(this,E)?`<${h}${this.firstChild.text()}/>`:`<${h}${super.text(">")}${this.closed?`</${u}>`:""}`}getAttribute(h){return h==="padding"?M(this,f)[0].length+1:super.getAttribute(h)}getGaps(){return 1}print(){const[h,u]=M(this,f);return super.print(M(this,E)?{pre:`&lt;${h}`,post:"/&gt;"}:{pre:`&lt;${h}`,sep:"&gt;",post:this.closed?`&lt;/${u}&gt;`:""})}}E=new WeakMap,g=new WeakMap,f=new WeakMap},444:(Q,b,t)=>{t.d(b,{C:()=>P,L:()=>N});const P=11,N=t(166)},223:(Q,b,t)=>{t.d(b,{j:()=>P});const P={run(N){return N()}}},169:(Q,b,t)=>{t.d(b,{D:()=>N,Y:()=>U});var P=t(891);const N=(M,W,D,E="error")=>{const g=M.getRelativeIndex(),{offsetHeight:f,offsetWidth:a,parentNode:l}=M,{top:h,left:u}=l.posFromIndex(g),{start:p}=W,{top:i,left:o}="top"in W?W:M.getRootNode().posFromIndex(p),s=String(M),d=p+g,v=i+h,x=h?u:o+u;return{message:P.Z.msg(D),severity:E,startIndex:d,endIndex:d+s.length,startLine:v,endLine:v+f-1,startCol:x,endCol:f===1?x+a:a}},U=(M,W,D,E="error")=>{const{start:g}=W,{offsetHeight:f,offsetWidth:a}=M,l=String(M),{top:h,left:u}="top"in W?W:M.getRootNode().posFromIndex(g);return{message:P.Z.msg(D),severity:E,startIndex:g,endIndex:g+l.length,startLine:h,endLine:h+f-1,startCol:u,endCol:f===1?u+a:a}}},467:(Q,b,t)=>{t.d(b,{PN:()=>U,Qk:()=>N,S0:()=>g,_X:()=>P,fL:()=>W,hr:()=>M,jq:()=>E,m9:()=>D});const P='(?:\\[[\\da-f:.]+\\]|[^[\\]<>"\\0-\\x1F\\x7F\\p{Zs}\\uFFFD])',N='(?:[^[\\]<>"\\0-\\x1F\\x7F\\p{Zs}\\uFFFD]|\\0\\d+[c!~]\\x7F)*',U=f=>f.replace(/\0\d+c\x7F/gu,""),M=f=>f.replace(/[\\{}()|.?*+^$[\]]/gu,"\\$&"),W=(f,a="")=>f.map(l=>typeof l=="string"?l:l.text()).join(a),D=f=>f.replace(/&#(\d+|x[\da-f]+);/giu,(a,l)=>String.fromCodePoint(+`${l.toLowerCase().startsWith("x")?"0":""}${l}`)),E=f=>f.replace(/\n/gu,"\\n"),g=(f,a={})=>{const{pre:l="",post:h="",sep:u=""}=a;return`${l}${f.map(p=>p.print()).join(u)}${h}`}},166:Q=>{Q.exports=JSON.parse('{"ext":[],"html":[["b","bdi","del","i","ins","u","font","big","small","sub","sup","h1","h2","h3","h4","h5","h6","cite","code","em","s","strike","strong","tt","var","div","center","blockquote","ol","ul","dl","table","caption","pre","ruby","rb","rp","rt","rtc","p","span","abbr","dfn","kbd","samp","data","time","mark","tr","td","th","q","bdo"],["li","dt","dd"],["br","wbr","hr","meta","link","img"]],"namespaces":{},"nsid":{"file":6,"category":14},"parserFunction":[{"#language":"language","#special":"special","#speciale":"speciale","#tag":"tag","#formatdate":"formatdate","#invoke":"invoke","#while":"while","#dowhile":"dowhile","#loop":"loop","#forargs":"forargs","#fornumargs":"fornumargs","#if":"if","#ifeq":"ifeq","#switch":"switch","#ifexist":"ifexist","#ifexpr":"ifexpr","#iferror":"iferror","#time":"time","#timel":"timel","#expr":"expr","#rel2abs":"rel2abs","#titleparts":"titleparts","#categorytree":"categorytree","#urldecode":"urldecode","#choose":"choose","#var":"var","#varexists":"varexists","#var_final":"var_final","#vardefine":"vardefine","#vardefineecho":"vardefineecho","#widget":"widget","#regex":"regex","#related":"related","#cscore":"cscore"},["!","="],["msg","\u539F\u59CB","raw"],["\u66FF\u4EE3","subst","\u5B89\u5168\u66FF\u4EE3","safesubst"]],"doubleUnderscore":[[],[]],"protocol":"bitcoin:|ftp://|ftps://|geo:|git://|gopher://|http://|https://|irc://|ircs://|magnet:|mailto:|mms://|news:|nntp://|redis://|sftp://|sip:|sips:|sms:|ssh://|svn://|tel:|telnet://|urn:|worldwind://|xmpp:","interwiki":[],"img":{},"variants":[]}')}},Rt={};function Et(Q){var b=Rt[Q];if(b!==void 0)return b.exports;var t=Rt[Q]={exports:{}};return Vt[Q](t,t.exports,Et),t.exports}Et.d=(Q,b)=>{for(var t in b)Et.o(b,t)&&!Et.o(Q,t)&&Object.defineProperty(Q,t,{enumerable:!0,get:b[t]})},Et.o=(Q,b)=>Object.prototype.hasOwnProperty.call(Q,b),Et.r=Q=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(Q,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(Q,"__esModule",{value:!0})};var se=Et(891)})();})();
21
+ `)}getGaps(){return 1}lint(e=this.getAbsoluteIndex()){let t=super.lint(e),r={start:e,...this.getRootNode().posFromIndex(e)};return this.image?t.push(...this.childNodes.filter(n=>{let s=String(n).trim();return n.type==="noinclude"&&s&&!s.startsWith("#")}).map(n=>v(n,r,"invalid link in <imagemap>"))):t.push(L(this,r,"<imagemap> without an image")),t}print(){return super.print({sep:`
22
+ `})}}});var Ln={};M(Ln,{NowikiToken:()=>Lr});var Lr,In=b(()=>{"use strict";O();y();Te();Lr=class extends V{constructor(){super(...arguments);f(this,"type","ext-inner")}lint(e=this.getAbsoluteIndex()){let{name:t,firstChild:{data:r}}=this;return(t==="templatestyles"||t==="section")&&r?[L(this,{start:e},h.msg("nothing should be in <$1>",t))]:super.lint(e)}}});var Pn,Me,kr=b(()=>{"use strict";O();y();C();pr();yt();Pn=(l,i)=>{let e=new Set(l);return e.delete(i),[...e]},Me=class extends Be{constructor(e,t,r,n,s=h.getConfig(),o=[]){var c;let a=e.toLowerCase(),p=new ke(!t||/^\s/u.test(t)?t:` ${t}`,"ext-attrs",a,s,o),g={...s,ext:Pn(s.ext,a),excludes:[...(c=s.excludes)!=null?c:[]]},d;switch(g.inExt=!0,a){case"tab":g.ext=Pn(g.ext,"tabs");case"indicator":case"poem":case"ref":case"option":case"combooption":case"tabs":case"poll":case"seo":a==="poem"&&g.excludes.push("heading"),d=new x(r,g,o);break;case"pre":{let{PreToken:m}=(dn(),R(ln));d=new m(r,g,o);break}case"dynamicpagelist":{let{ParamTagToken:m}=(hr(),R(pn));d=new m(r,g,o);break}case"inputbox":{g.excludes.push("heading");let{InputboxToken:m}=(bn(),R(Tn));d=new m(r,g,o);break}case"references":{let{NestedToken:m}=(Et(),R(Ft));d=new m(r,/<!--.*?(?:-->|$)|<(ref)(\s[^>]*)?>(.*?)<\/(ref\s*)>/gisu,["ref"],g,o);break}case"choose":{let{NestedToken:m}=(Et(),R(Ft));d=new m(r,/<(option|choicetemplate)(\s[^>]*)?>(.*?)<\/(\1)>/gsu,["option","choicetemplate"],g,o);break}case"combobox":{let{NestedToken:m}=(Et(),R(Ft));d=new m(r,/<(combooption)(\s[^>]*)?>(.*?)<\/(combooption\s*)>/gisu,["combooption"],g,o);break}case"gallery":{let{GalleryToken:m}=($n(),R(Sn));d=new m(r,g,o);break}case"imagemap":{let{ImagemapToken:m}=(En(),R(Fn));d=new m(r,g,o);break}default:{let{NowikiToken:m}=(In(),R(Ln));d=new m(r,g)}}d.setAttribute("name",a),d.type="ext-inner";super(e,p,d,n,s,o);f(this,"type","ext")}lint(e=this.getAbsoluteIndex()){let t=super.lint(e);if(this.name!=="nowiki"&&this.closest("html-attrs, table-attrs")){let r=this.getRootNode(),n={start:e,...r.posFromIndex(e)};t.push(L(this,n,"extension tag in HTML tag attributes"))}return t}}});var Rn={};M(Rn,{parseCommentAndExt:()=>_i});var _i,Gn=b(()=>{"use strict";y();Zr();$e();Jr();kr();Tr();_i=(l,i=h.getConfig(),e=[],t=!1)=>{let r="<onlyinclude>",n="</onlyinclude>",{length:s}=r;if(t){let d=l.indexOf(r),c=l.indexOf(n,d+s);if(d!==-1&&c!==-1){let m="";for(;d!==-1&&c!==-1;){let T=`\0${e.length}e\x7F`;new Tt(l.slice(d+s,c),i,e),d>0?(new U(l.slice(0,d),i,e),m+=`\0${e.length-1}c\x7F${T}`):m+=T,l=l.slice(c+s+1),d=l.indexOf(r),c=l.indexOf(n,d+s)}return l&&(new U(l,i,e),m+=`\0${e.length-1}c\x7F`),m}}let o=i.ext.join("|"),a=t?"includeonly":"(?:no|only)include",p=t?"noinclude":"includeonly",g=new RegExp(`<!--.*?(?:-->|$)|<${a}(?:\\s[^>]*?)?>|</${a}\\s*>|<(${o})(\\s[^>]*?)?(?:/>|>(.*?)</(\\1\\s*)>)|<(${p})(\\s[^>]*?)?(?:/>|>(.*?)(?:</(\\5\\s*)>|$))`,"gisu");return l.replace(g,(d,c,m,T,A,N,j,w,S)=>{let I=`\0${e.length}${c?"e":"c"}\x7F`;if(c)new Me(c,m,T,A,i,e);else if(d.startsWith("<!--")){let P=d.endsWith("-->");new ze(d.slice(4,P?-3:void 0),P,i,e)}else N?new bt(N,j,w,S,i,e):new U(d,i,e);return I})}});var Ui,Qe,de,Ae,qt,qn=b(()=>{"use strict";O();H();y();C();Ui=new Set(["if","ifeq","ifexpr","ifexist","iferror","switch"]),qt=class extends x{constructor(e,t,r,n,s=h.getConfig(),o=[]){super(void 0,s,o);f(this,"type","html");k(this,Qe,void 0);k(this,de,void 0);k(this,Ae,void 0);this.insertAt(t),this.setAttribute("name",e.toLowerCase()),$(this,Qe,r),$(this,de,n),$(this,Ae,e)}get closing(){return u(this,Qe)}toString(e){return`<${this.closing?"/":""}${u(this,Ae)}${super.toString()}${u(this,de)?"/":""}>`}text(){let{closing:e}=this;return`<${e?"/":""}${u(this,Ae)}${e?"":super.text()}${u(this,de)?"/":""}>`}getAttribute(e){return e==="padding"?u(this,Ae).length+(this.closing?2:1):super.getAttribute(e)}lint(e=this.getAbsoluteIndex()){let t=super.lint(e),r;this.name==="h1"&&!this.closing&&(r=L(this,{start:e},"<h1>"),t.push(r)),this.closest("table-attrs")&&(r!=null||(r=L(this,{start:e},"")),t.push({...r,message:h.msg("HTML tag in table attributes")}));try{this.findMatchingTag()}catch(n){if(n instanceof SyntaxError){let{message:s}=n;r!=null||(r=L(this,{start:e},""));let[o]=s.split(":"),a={...r,message:h.msg(o)};if(o==="unclosed tag")a.severity="warning";else if(o==="unmatched closing tag"){let p=this.closest("magic-word");p&&Ui.has(p.name)&&(a.severity="warning")}t.push(a)}}return t}findMatchingTag(){let{html:e}=this.getAttribute("config"),{name:t,parentNode:r,closing:n}=this,s=ct(String(this));if(n&&(u(this,de)||e[2].includes(t)))throw new SyntaxError(`tag that is both closing and self-closing: ${s}`);if(e[2].includes(t)||u(this,de)&&e[1].includes(t))return this;if(u(this,de)&&e[0].includes(t))throw new SyntaxError(`invalid self-closing tag: ${s}`);if(!r)return;let{childNodes:o}=r,a=o.indexOf(this),p=(n?o.slice(0,a).reverse():o.slice(a+1)).filter(d=>d.type==="html"&&d.name===t),g=n?-1:1;for(let d of p)if(u(d,Qe)?g--:g++,g===0)return d;throw new SyntaxError(`${n?"unmatched closing":"unclosed"} tag: ${s}`)}print(){return super.print({pre:`&lt;${this.closing?"/":""}${u(this,Ae)}`,post:`${u(this,de)?"/":""}&gt;`})}};Qe=new WeakMap,de=new WeakMap,Ae=new WeakMap});var Bn={};M(Bn,{parseHtml:()=>Di});var Di,On=b(()=>{"use strict";y();yt();qn();Di=(l,i=h.getConfig(),e=[])=>{let t=/^(\/?)([a-z][^\s/>]*)((?:\s|\/(?!>))[^>]*?)?(\/?>)([^<]*)$/iu,r=new Set(i.html.flat()),n=l.split("<"),s=n.shift();for(let o of n){let a=t.exec(o),p=a==null?void 0:a[2],g=p==null?void 0:p.toLowerCase();if(!a||!r.has(g)){s+=`<${o}`;continue}let[,d,,c="",m,T]=a,A=new ke(c,"html-attrs",g,i,e),N=A.getAttr("itemprop");if(g==="meta"&&(N===void 0||A.getAttr("content")===void 0)||g==="link"&&(N===void 0||A.getAttr("href")===void 0)){s+=`<${o}`,e.pop();continue}s+=`\0${e.length}x\x7F${T}`,new qt(p,A,d==="/",m==="/>",i,e)}return s}});var Ke,Ir=b(()=>{"use strict";y();C();Ge();yt();Ke=class extends x{constructor(i,e,t,r=h.getConfig(),n=[],s={}){super(void 0,r,n,s),this.append(new ee(e,i,"table-syntax",r,n,{}),new ke(t,"table-attrs",this.type,r,n))}}});var Ze,Pr=b(()=>{"use strict";O();Ir();Ze=class extends Ke{lint(i=this.getAbsoluteIndex()){let e=super.lint(i),t=this.childNodes.find(({type:p})=>p==="table-inter");if(!t)return e;let r=t.childNodes.find(p=>p.text().trim()),n=/^\s*(?:!|\{\{\s*![!-]?\s*\}\})/u,s=p=>p.type==="arg",o=p=>p.type==="magic-word";if(!r||n.test(String(r))||s(r)&&n.test(r.default||""))return e;if(o(r))try{if(r.getPossibleValues().every(p=>n.test(p.text())))return e}catch(p){}let a=v(t,{start:i},"content to be moved out from the table");return e.push({...a,startIndex:a.startIndex+1,startLine:a.startLine+1,startCol:0}),e}}});var Hi,Bt,jn=b(()=>{"use strict";O();or();y();Pr();Ge();Hi=/^\n[^\S\n]*(?:\|\}|\{\{\s*!\s*\}\}\}|\{\{\s*!\)\s*\}\})$/u,Bt=class extends Ze{constructor(e,t,r=h.getConfig(),n=[]){super(/^(?:\{\||\{\{\{\s*!\s*\}\}|\{\{\s*\(!\s*\}\})$/u,e,t,r,n,{});f(this,"type","table")}get closed(){return this.lastChild.type==="table-syntax"}lint(e=this.getAbsoluteIndex()){let t=super.lint(e);if(!this.closed){let{firstChild:r}=this,n=v(r,{start:e},"unclosed table");t.push(n)}return t}close(e=`
23
+ |}`,t=!1){let r=this.getAttribute("config"),n=this.getAttribute("accum"),s=[e],o=tt.run(()=>super.insertAt(new ee(void 0,Hi,"table-syntax",r,n,{})));this.lastChild.replaceChildren(...s)}}});var Ot,Wn=b(()=>{"use strict";y();Pr();Ot=class extends Ze{constructor(e,t,r=h.getConfig(),n=[]){super(/^\n[^\S\n]*(?:\|-+|\{\{\s*!\s*\}\}-+|\{\{\s*!-\s*\}\}-*)$/u,e,t,r,n,{});f(this,"type","tr")}}});var Y,jt,zn,dt,Mn=b(()=>{"use strict";O();y();C();Ir();dt=class extends Ke{constructor(e,t,r=h.getConfig(),n=[]){var p;let s=/\||\0\d+!\x7F/u.exec(t!=null?t:""),o=s?t.slice(0,s.index):"";/\[\[|-\{/u.test(o)&&(s=null,o="");super(/^(?:\n[^\S\n]*(?:[|!]|\|\+|\{\{\s*!\s*\}\}\+?)|(?:\||\{\{\s*!\s*\}\}){2}|!!|\{\{\s*!!\s*\}\})$/u,e,o,r,n);k(this,jt);f(this,"type","td");k(this,Y,"");s&&([ht(this,Y)._]=s);let a=new x(t==null?void 0:t.slice(((p=s==null?void 0:s.index)!=null?p:NaN)+u(this,Y).length),r,n);a.type="td-inner",a.setAttribute("stage",4),this.insertAt(a)}get subtype(){return E(this,jt,zn).call(this).subtype}afterBuild(){u(this,Y).includes("\0")&&$(this,Y,this.buildFromStr(u(this,Y),"string"))}toString(e){let{childNodes:[t,r,n]}=this;return`${t.toString()}${r.toString()}${u(this,Y)}${n.toString()}`}text(){let{childNodes:[e,t,r]}=this;return`${e.text()}${t.text()}${u(this,Y)}${r.text()}`}getGaps(e){return e===1?u(this,Y).length:0}lint(e=this.getAbsoluteIndex()){let t=super.lint(e);e+=this.getRelativeIndex(this.length-1);for(let r of this.lastChild.childNodes)r.type==="text"&&r.data.includes("|")&&t.push(v(r,{start:e},'additional "|" in a table cell',"warning"));return t}print(){let{childNodes:[e,t,r]}=this;return`<span class="wpb-td">${e.print()}${t.print()}${u(this,Y)}${r.print()}</span>`}};Y=new WeakMap,jt=new WeakSet,zn=function(){let e=this.firstChild.text(),t=e[e.length-1],r="td";return t==="!"?r="th":t==="+"&&(r="caption"),{subtype:r}}});var Je,Rr=b(()=>{"use strict";Te();Je=class extends V{}});var Le,Gr=b(()=>{"use strict";Rr();Le=class extends Je{constructor(){super(...arguments);f(this,"type","dd")}}});var _n={};M(_n,{parseTable:()=>Xi});var Vi,Xi,Un=b(()=>{"use strict";y();C();jn();Wn();Mn();Gr();Vi=l=>l.lastChild.constructor!==x,Xi=({firstChild:{data:l},type:i,name:e},t=h.getConfig(),r=[])=>{let n=[],s=l.split(`
24
+ `),o=i==="root"||i==="parameter-value"||i==="ext-inner"&&e==="poem"?"":`
25
+ ${s.shift()}`,a=(p,g)=>{if(!g){o+=p;return}let{lastChild:d}=g;if(Vi(g)){let c=new x(p,t,r);c.type="table-inter",c.setAttribute("stage",3),g.insertAt(c)}else d.setText(String(d)+p)};for(let p of s){let g=n.pop(),[d]=/^(?:\s|\0\d+c\x7F)*/u.exec(p),c=p.slice(d.length),m=/^(:*)((?:\s|\0\d+c\x7F)*)(\{\||\{(?:\0\d+c\x7F)*\0\d+!\x7F|\0\d+\{\x7F)(.*)$/u.exec(c);if(m){for(;g&&g.type!=="td";)g=n.pop();let[,S,I,P,F]=m;S&&new Le(S,t,r),a(`
26
+ ${d}${S&&`\0${r.length-1}d\x7F`}${I}\0${r.length}b\x7F`,g),n.push(...g?[g]:[],new Bt(P,F,t,r));continue}else if(!g){o+=`
27
+ ${p}`;continue}let T=/^(?:(\|\}|\0\d+!\x7F\}|\0\d+\}\x7F)|(\|-+|\0\d+!\x7F-+|\0\d+-\x7F-*)(?!-)|(!|(?:\||\0\d+!\x7F)\+?))(.*)$/u.exec(c);if(!T){a(`
28
+ ${p}`,g),n.push(g);continue}let[,A,N,j,w]=T;if(A){for(;g.type!=="table";)g=n.pop();g.close(`
29
+ ${d}${A}`,!0),a(w,n[n.length-1])}else if(N){g.type==="td"&&(g=n.pop()),g.type==="tr"&&(g=n.pop());let S=new Ot(`
30
+ ${d}${N}`,w,t,r);n.push(g,S),g.insertAt(S)}else{g.type==="td"&&(g=n.pop());let S=j==="!"?/!!|(?:\||\0\d+!\x7F){2}|\0\d+\+\x7F/gu:/(?:\||\0\d+!\x7F){2}|\0\d+\+\x7F/gu,I=S.exec(w),P=0,F=`
31
+ ${d}${j}`;for(;I;)g.insertAt(new dt(F,w.slice(P,I.index),t,r)),{lastIndex:P}=S,[F]=I,I=S.exec(w);let B=new dt(F,w.slice(P),t,r);n.push(g,B),g.insertAt(B)}}return o.slice(1)}});var Wt,Dn=b(()=>{"use strict";Te();Wt=class extends V{constructor(){super(...arguments);f(this,"type","hr")}}});var zt,Hn=b(()=>{"use strict";qe();y();Te();zt=class extends ae(V){constructor(e,t,r=h.getConfig(),n=[]){super(e,r,n);f(this,"type","double-underscore")}getAttribute(e){return e==="padding"?2:super.getAttribute(e)}toString(e){return`__${this.innerText}__`}print(){return super.print({pre:"__",post:"__"})}}});var Vn={};M(Vn,{parseHrAndDoubleUnderscore:()=>Qi});var Qi,Xn=b(()=>{"use strict";y();Dn();Hn();mr();Qi=({firstChild:{data:l},type:i,name:e},t=h.getConfig(),r=[])=>{let{doubleUnderscore:n}=t,s=new Set(n[0]),o=new Set(n[1]);return i!=="root"&&(i!=="ext-inner"||e!=="poem")&&(l=`\0${l}`),l=l.replace(/^((?:\0\d+c\x7F)*)(-{4,})/gmu,(a,p,g)=>(new Wt(g,t,r),`${p}\0${r.length-1}r\x7F`)).replace(new RegExp(`__(${n.flat().join("|")})__`,"giu"),(a,p)=>{let g=o.has(p);return g||s.has(p.toLowerCase())?(new zt(p,g,t,r),`\0${r.length-1}u\x7F`):a}).replace(/^((?:\0\d+c\x7F)*)(={1,6})(.+)\2((?:[^\S\n]|\0\d+c\x7F)*)$/gmu,(a,p,g,d,c)=>{let m=`${p}\0${r.length}h\x7F`;return new We(g.length,[d,c],t,r),m}),i==="root"||i==="ext-inner"&&e==="poem"?l:l.slice(1)}});var Mt,Qn=b(()=>{"use strict";Lt();Mt=class extends ye{constructor(){super(...arguments);f(this,"type","category")}}});var _t,Kn=b(()=>{"use strict";O();y();Te();_t=class extends V{constructor(){super(...arguments);f(this,"type","quote")}lint(e=this.getAbsoluteIndex()){let{previousSibling:t,nextSibling:r}=this,n=h.msg('lonely "$1"',"'"),s=[],o;if((t==null?void 0:t.type)==="text"&&t.data.endsWith("'")){o=L(this,{start:e},n);let{startIndex:a,startLine:p,startCol:g}=o,[,{length:d}]=/(?:^|[^'])('+)$/u.exec(t.data),c=e-d;s.push({...o,startIndex:c,endIndex:a,startCol:g-d,endLine:p,endCol:g})}if((r==null?void 0:r.type)==="text"&&r.data.startsWith("'")){o!=null||(o=L(this,{start:e},n));let{endIndex:a,endLine:p,endCol:g}=o,[{length:d}]=/^'+/u.exec(r.data),c=a+d;s.push({...o,startIndex:a,endIndex:c,startLine:p,startCol:g,endCol:g+d})}return s}}});var qr={};M(qr,{parseQuotes:()=>Ki});var Ki,Br=b(()=>{"use strict";y();Kn();Ki=(l,i=h.getConfig(),e=[])=>{var g;let t=l.split(/('{2,})/u),{length:r}=t;if(r===1)return l;let n=0,s=0,o,a,p;for(let d=1;d<r;d+=2){let{length:c}=t[d];switch(c){case 2:s++;break;case 4:t[d-1]+="'",t[d]="'''";case 3:if(n++,o!==void 0)break;t[d-1].endsWith(" ")?a===void 0&&p===void 0&&(p=d):t[d-1].slice(-2,-1)===" "?o=d:a!=null||(a=d);break;default:t[d-1]+="'".repeat(c-5),t[d]="'''''",s++,n++}}if(s%2===1&&n%2===1){let d=(g=o!=null?o:a)!=null?g:p;d!==void 0&&(t[d]="''",t[d-1]+="'")}for(let d=1;d<r;d+=2)new _t(t[d],i,e),t[d]=`\0${e.length-1}q\x7F`;return t.join("")}});var Jn={};M(Jn,{parseLinks:()=>Zn});var Zn,Yn=b(()=>{"use strict";y();Cr();Sr();Qn();Zn=(l,i=h.getConfig(),e=[])=>{let{parseQuotes:t}=(Br(),R(qr)),r=i.inExt?/^((?:(?!\0\d+!\x7F)[^\n[\]{}|])+)(?:(\||\0\d+!\x7F)(.*?[^\]]))?\]\](.*)$/su:/^((?:(?!\0\d+!\x7F)[^\n[\]{}|])+)(?:(\||\0\d+!\x7F)(.*?[^\]])?)?\]\](.*)$/su,n=/^((?:(?!\0\d+!\x7F)[^\n[\]{}|])+)(\||\0\d+!\x7F)(.*)$/su,s=new RegExp(`^\\s*(?:${i.protocol})`,"iu"),o=l.split("[["),a=o.shift();for(let p=0;p<o.length;p++){let g=!1,d,c,m,T,A=o[p],N=r.exec(A);if(N)[,d,c,m,T]=N,T.startsWith("]")&&(m!=null&&m.includes("["))&&(m+="]",T=T.slice(1));else{let F=n.exec(A);F&&(g=!0,[,d,c,m]=F)}if(d===void 0||s.test(d)||/\0\d+[exhbru]\x7F/u.test(d)){a+=`[[${A}`;continue}let j=d.trim().startsWith(":");if(j&&g){a+=`[[${A}`;continue}let w=h.normalizeTitle(d,0,!1,i,!0,!0,!0),{ns:S,valid:I}=w;if(I){if(g){if(S!==6){a+=`[[${A}`;continue}let F=!1;for(p++;p<o.length;p++){let B=o[p],Q=B.split("]]");if(Q.length>2){F=!0,m+=`[[${Q[0]}]]${Q[1]}`,T=Q.slice(2).join("]]");break}else if(Q.length===2)m+=`[[${Q[0]}]]${Q[1]}`;else{m+=`[[${B}`;break}}if(m=Zn(m,i,e),!F){a+=`[[${d}${c}${m}`;continue}}}else{a+=`[[${A}`;continue}m&&(m=t(m,i,e)),a+=`\0${e.length}l\x7F${T}`;let P=He;j||(S===6?P=Ue:S===14&&(P=Mt)),m===void 0&&c&&(m=""),new P(d,m,i,e,c)}return a}});var ei={};M(ei,{parseExternalLinks:()=>Zi});var Zi,ti=b(()=>{"use strict";H();y();Fr();Zi=(l,i=h.getConfig(),e=[])=>{let t=new RegExp(`\\[((?:(?:${i.protocol}|//)${fe}|\0\\d+m\x7F)${xe})(\\p{Zs}*)([^\\]-\b
32
+ -\uFFFD]*)\\]`,"giu");return l.replace(t,(r,n,s,o)=>{let{length:a}=e,p=/&[lg]t;/u.exec(n);return p&&(n=n.slice(0,p.index),s="",o=`${n.slice(p.index)}${s}${o}`),new Xe(n,s,o,i,e),`\0${a}w\x7F`})}});var ri={};M(ri,{parseMagicLinks:()=>Ji});var Ji,ni=b(()=>{"use strict";H();y();Nr();Ji=(l,i=h.getConfig(),e=[])=>{let t=new RegExp(`(^|[^\\p{L}\\d_])(?:${i.protocol})(${fe}${xe})`,"giu");return l.replace(t,(r,n,s)=>{let o="",a=n?r.slice(1):r,p=/&(?:lt|gt|nbsp|#x0*(?:3[ce]|a0)|#0*(?:6[02]|160));/iu.exec(a);p&&(o=a.slice(p.index),a=a.slice(0,p.index));let g=new RegExp(`[,;.:!?${a.includes("(")?"":")"}]+$`,"u"),d=g.exec(a);if(d){let c=0;d[0].startsWith(";")&&/&(?:[a-z]+|#x[\da-f]+|#\d+)$/iu.test(a.slice(0,d.index))&&(c=1),o=`${a.slice(d.index+c)}${o}`,a=a.slice(0,d.index+c)}return o.length>=s.length?r:(new Ve(a,!1,i,e),`${n}\0${e.length-1}w\x7F${o}`)})}});var Ut,ii=b(()=>{"use strict";Rr();Ut=class extends Je{constructor(){super(...arguments);f(this,"type","list")}}});var si={};M(si,{parseList:()=>Yi});var Yi,oi=b(()=>{"use strict";y();ii();Gr();Yi=(l,i=h.getConfig(),e=[])=>{let t=/^((?:\0\d+c\x7F)*)([;:*#]+)/u.exec(l);if(!t)return l;let[r,n,s]=t,o=`${n}\0${e.length}d\x7F${l.slice(r.length)}`,a=s.split(";").length-1;if(new Ut(s,i,e),!a)return o;let p=/:+|-\{/gu,g=p.exec(o),d=0;for(;g&&a;){let{0:c,index:m}=g;if(c.startsWith(":")){if(c.length>=a)return new Le(":".repeat(a),i,e),`${o.slice(0,m)}\0${e.length-1}d\x7F${o.slice(m+a)}`;o=`${o.slice(0,m)}\0${e.length}d\x7F${o.slice(p.lastIndex)}`,a-=c.length,p.lastIndex=m+4+String(e.length).length,new Le(c,i,e)}else if(c==="-{"){if(!d){let{lastIndex:T}=p;p=/-\{|\}-/gu,p.lastIndex=T}d++}else if(d--,!d){let{lastIndex:T}=p;p=/:+|-\{/gu,p.lastIndex=T}g=p.exec(o)}return o}});var ai,li=b(()=>{"use strict";ai=l=>{class i extends l{}return i}});var es,he,Dt,di=b(()=>{"use strict";O();y();C();pe();es=new Set(["A","T","R","D","-","H","N"]),Dt=class extends x{constructor(e,t=h.getConfig(),r=[]){super(void 0,t,r,{});f(this,"type","converter-flags");k(this,he,void 0);this.append(...e.map(n=>new G(n,"converter-flag",t,r)))}afterBuild(){$(this,he,this.childNodes.map(e=>e.text().trim()))}toString(e){return super.toString(e,";")}text(){return super.text(";")}getGaps(){return 1}getUnknownFlags(){return new Set(u(this,he).filter(e=>/\{{3}[^{}]+\}{3}/u.test(e)))}getVariantFlags(){let e=new Set(this.getAttribute("config").variants);return new Set(u(this,he).filter(t=>e.has(t)))}lint(e=this.getAbsoluteIndex()){let t=this.getVariantFlags(),r=this.getUnknownFlags(),n=new Set(u(this,he).filter(c=>es.has(c))),{length:s}=u(this,he).filter(c=>!c),o=u(this,he).length-r.size-s,a=super.lint(e);if(t.size===o||n.size===o)return a;let p={start:e,...this.getRootNode().posFromIndex(e)},{childNodes:g,length:d}=this;for(let c=0;c<d;c++){let m=g[c],T=m.text().trim();if(T&&!t.has(T)&&!r.has(T)&&(t.size>0||!n.has(T))){let A=v(m,p,"invalid conversion flag");a.push(A)}}return a}print(){return super.print({sep:";"})}};he=new WeakMap});var Ye,pi=b(()=>{"use strict";y();C();pe();Ye=class extends x{constructor(e,t=!0,r=h.getConfig(),n=[]){super(void 0,r,n);f(this,"type","converter-rule");let s=e.indexOf(":"),o=e.slice(0,s).indexOf("=>"),a=o===-1?e.slice(0,s):e.slice(o+2,s);t&&r.variants.includes(a.trim())?(super.insertAt(new G(a,"converter-rule-variant",r,n)),super.insertAt(new G(e.slice(s+1),"converter-rule-to",r,n)),o!==-1&&super.insertAt(new G(e.slice(0,o),"converter-rule-from",r,n),0)):super.insertAt(new G(e,"converter-rule-to",r,n))}toString(e){let{childNodes:t}=this;if(t.length===3){let[r,n,s]=t;return`${r.toString(e)}=>${n.toString(e)}:${s.toString(e)}`}return super.toString(e,":")}text(){let{childNodes:e}=this;if(e.length===3){let[t,r,n]=e;return`${t.text()}=>${r.text()}:${n.text()}`}return super.text(":")}getGaps(e){return e===0&&this.length===3?2:1}print(){let{childNodes:e}=this;if(e.length===3){let[t,r,n]=e;return`<span class="wpb-converter-rule">${t.print()}=>${r.print()}:${n.print()}</span>`}return super.print({sep:":"})}}});var Ht,gi=b(()=>{"use strict";H();li();y();C();di();pi();Ht=class extends ai(x){constructor(e,t,r=h.getConfig(),n=[]){super(void 0,r,n);f(this,"type","converter");this.append(new Dt(e,r,n));let[s]=t,o=s.includes(":"),a=new Ye(s,o,r,n);o&&a.length===1?this.insertAt(new Ye(t.join(";"),!1,r,n)):this.append(a,...t.slice(1).map(p=>new Ye(p,!0,r,n)))}toString(e){let{childNodes:[t,...r]}=this;return`-{${t.toString()}${t.length>0?"|":""}${r.map(n=>n.toString()).join(";")}}-`}text(){let{childNodes:[e,...t]}=this;return`-{${e.text()}|${se(t,";")}}-`}getAttribute(e){return e==="padding"?2:super.getAttribute(e)}getGaps(e){return e||this.firstChild.length>0?1:0}print(){let{childNodes:[e,...t]}=this;return`<span class="wpb-converter">-{${e.print()}${e.length>0?"|":""}${oe(t,{sep:";"})}}-</span>`}}});var ui={};M(ui,{parseConverter:()=>ts});var ts,hi=b(()=>{"use strict";y();gi();ts=(l,i=h.getConfig(),e=[])=>{let t=/-\{/gu,r=/-\{|\}-/gu,n=[],s=t,o=s.exec(l);for(;o;){let{0:a,index:p}=o;if(a==="}-"){let g=n.pop(),{length:d}=e,c=l.slice(g.index+2,p),m=c.indexOf("|"),[T,A]=m===-1?[[],c]:[c.slice(0,m).split(";"),c.slice(m+1)],N=A.replace(/(&[#a-z\d]+);/giu,"$1"),j=`(?:${i.variants.join("|")})`,w=N.split(new RegExp(`;(?=\\s*(?:${j}|[^;]*?=>\\s*${j})\\s*:)`,"u")).map(S=>S.replace(/\x01/gu,";"));new Ht(T,w,i,e),l=`${l.slice(0,g.index)}\0${d}v\x7F${l.slice(p+2)}`,n.length===0&&(s=t),s.lastIndex=g.index+3+String(d).length}else n.push(o),s=r,s.lastIndex=p+2;o=s.exec(l)}return l}});var jr={};M(jr,{Token:()=>x});var re,q,z,Ie,pt,Or,Vt,mi,Xt,ci,Qt,fi,Kt,xi,Zt,Ti,Jt,bi,Yt,ki,er,yi,tr,Ai,rr,vi,nr,Si,Wr,x,C=b(()=>{"use strict";H();ce();y();Xr();Kr();Wr=class Wr extends ft{constructor(e,t=h.getConfig(),r=[],n){super();k(this,pt);k(this,Vt);k(this,Xt);k(this,Qt);k(this,Kt);k(this,Zt);k(this,Jt);k(this,Yt);k(this,er);k(this,tr);k(this,rr);k(this,nr);f(this,"type","root");k(this,re,0);k(this,q,void 0);k(this,z,void 0);k(this,Ie,void 0);typeof e=="string"&&this.insertAt(e),$(this,q,t),$(this,z,r),r.push(this)}parseOnce(e=u(this,re),t=!1){if(e<u(this,re)||!this.getAttribute("plain")||this.length===0)return this;switch(e){case 0:this.type==="root"&&u(this,z).shift(),$(this,Ie,t),E(this,Vt,mi).call(this,t);break;case 1:E(this,Xt,ci).call(this);break;case 2:E(this,Qt,fi).call(this);break;case 3:E(this,Kt,xi).call(this);break;case 4:E(this,Zt,Ti).call(this);break;case 5:E(this,Jt,bi).call(this);break;case 6:E(this,Yt,ki).call(this);break;case 7:E(this,er,yi).call(this);break;case 8:E(this,tr,Ai).call(this);break;case 9:E(this,rr,vi).call(this);break;case 10:E(this,nr,Si).call(this)}if(this.type==="root")for(let r of u(this,z))r.parseOnce(e,t);return ht(this,re)._++,this}buildFromStr(e,t){let r=e.split(/[\0\x7F]/u).map((n,s)=>{if(s%2===0)return new it(n);if(Number.isNaN(Number(n[n.length-1])))return u(this,z)[Number(n.slice(0,-1))];throw new Error(`\u89E3\u6790\u9519\u8BEF\uFF01\u672A\u6B63\u786E\u6807\u8BB0\u7684 Token\uFF1A${n}`)});return t==="string"?r.map(String).join(""):t==="text"?se(r):r}afterBuild(){if(this.type==="root")for(let e of u(this,z))e.afterBuild()}parse(e=11,t=!1){for(;u(this,re)<e;)this.parseOnce(u(this,re),t);return e&&(E(this,pt,Or).call(this),this.afterBuild()),this}getAttribute(e){switch(e){case"plain":return this.constructor===Wr;case"config":return JSON.parse(JSON.stringify(u(this,q)));case"accum":return u(this,z);case"include":{if(u(this,Ie)!==void 0)return u(this,Ie);let t=this.getRootNode();return t!==this?t.getAttribute("include"):!1}default:return super.getAttribute(e)}}setAttribute(e,t){switch(e){case"stage":u(this,re)===0&&this.type==="root"&&u(this,z).shift(),$(this,re,t);break;default:super.setAttribute(e,t)}}insertAt(e,t=this.length){let r=typeof e=="string"?new it(e):e;return super.insertAt(r,t),r.type==="root"&&(r.type="plain"),r}normalizeTitle(e,t=0,r=!1,n=!1,s=!1){return h.normalizeTitle(e,t,u(this,Ie),u(this,q),r,n,s)}};re=new WeakMap,q=new WeakMap,z=new WeakMap,Ie=new WeakMap,pt=new WeakSet,Or=function(){var n;$(this,re,11);let{length:e,firstChild:t}=this,r=String(t);if(e===1&&t.type==="text"&&r.includes("\0")&&(this.replaceChildren(...this.buildFromStr(r)),this.normalize(),this.type==="root"))for(let s of u(this,z))E(n=s,pt,Or).call(n)},Vt=new WeakSet,mi=function(e){let{parseCommentAndExt:t}=(Gn(),R(Rn));this.setText(t(String(this.firstChild),u(this,q),u(this,z),e))},Xt=new WeakSet,ci=function(){let{parseBraces:e}=(fr(),R(xn)),t=this.type==="root"?String(this.firstChild):`\0${String(this.firstChild)}`,r=e(t,u(this,q),u(this,z));this.setText(this.type==="root"?r:r.slice(1))},Qt=new WeakSet,fi=function(){var t;if((t=u(this,q).excludes)!=null&&t.includes("html"))return;let{parseHtml:e}=(On(),R(Bn));this.setText(e(String(this.firstChild),u(this,q),u(this,z)))},Kt=new WeakSet,xi=function(){var t;if((t=u(this,q).excludes)!=null&&t.includes("table"))return;let{parseTable:e}=(Un(),R(_n));this.setText(e(this,u(this,q),u(this,z)))},Zt=new WeakSet,Ti=function(){var t;if((t=u(this,q).excludes)!=null&&t.includes("hr"))return;let{parseHrAndDoubleUnderscore:e}=(Xn(),R(Vn));this.setText(e(this,u(this,q),u(this,z)))},Jt=new WeakSet,bi=function(){let{parseLinks:e}=(Yn(),R(Jn));this.setText(e(String(this.firstChild),u(this,q),u(this,z)))},Yt=new WeakSet,ki=function(){var r;if((r=u(this,q).excludes)!=null&&r.includes("quote"))return;let{parseQuotes:e}=(Br(),R(qr)),t=String(this.firstChild).split(`
33
+ `);for(let n=0;n<t.length;n++)t[n]=e(t[n],u(this,q),u(this,z));this.setText(t.join(`
34
+ `))},er=new WeakSet,yi=function(){var t;if((t=u(this,q).excludes)!=null&&t.includes("extLink"))return;let{parseExternalLinks:e}=(ti(),R(ei));this.setText(e(String(this.firstChild),u(this,q),u(this,z)))},tr=new WeakSet,Ai=function(){var t;if((t=u(this,q).excludes)!=null&&t.includes("magicLink"))return;let{parseMagicLinks:e}=(ni(),R(ri));this.setText(e(String(this.firstChild),u(this,q),u(this,z)))},rr=new WeakSet,vi=function(){var n;if((n=u(this,q).excludes)!=null&&n.includes("list"))return;let{parseList:e}=(oi(),R(si)),t=String(this.firstChild).split(`
35
+ `),r=this.type==="root"||this.type==="ext-inner"&&this.name==="poem"?0:1;for(;r<t.length;r++)t[r]=e(t[r],u(this,q),u(this,z));this.setText(t.join(`
36
+ `))},nr=new WeakSet,Si=function(){if(u(this,q).variants.length>0){let{parseConverter:e}=(hi(),R(ui));this.setText(e(String(this.firstChild),u(this,q),u(this,z)))}};x=Wr});var rs,Pe,$i,ns,h,y=b(()=>{or();ce();rs=l=>l.replace(/[\0\x7F]/gu,""),Pe={i18n:void 0,getConfig(){return{..._r,...this.config,excludes:[]}},msg(l,i=""){var e,t;return l&&((t=(e=this.i18n)==null?void 0:e[l])!=null?t:l).replace("$1",this.msg(i))},normalizeTitle(l,i=0,e=!1,t=Pe.getConfig(),r=!1,n=!1,s=!1){let{Title:o}=(Hr(),R(Dr));if(r)return new o(l,i,t,n,s);let{Token:a}=(C(),R(jr)),p=tt.run(()=>new a(l,t).parseOnce(0,e).parseOnce());return new o(String(p),i,t,n,s)},parse(l,i,e=11,t=Pe.getConfig()){let{Token:r}=(C(),R(jr));return tt.run(()=>new r(rs(l),t).parse(e,i))}},$i={},ns=new Set(["normalizeTitle","parse"]);for(let l in Pe)ns.has(l)||($i[l]={enumerable:!1});Object.defineProperties(Pe,$i);typeof self=="object"?Object.assign(self,{Parser:Pe}):typeof globalThis=="object"&&Object.assign(globalThis,{Parser:Pe});h=Pe});y();})();
@@ -1,6 +1,6 @@
1
1
  (() => {
2
2
  const workerJS = () => {
3
- importScripts('https://testingcf.jsdelivr.net/npm/wikiparser-node@1.1.6-b/bundle/bundle.min.js');
3
+ importScripts('https://testingcf.jsdelivr.net/npm/wikiparser-node@1.2.0-b/bundle/bundle.min.js');
4
4
  const entities = { '&': 'amp', '<': 'lt', '>': 'gt' };
5
5
  self.onmessage = ({ data }) => {
6
6
  var _a;
@@ -42,8 +42,8 @@
42
42
  .wpb-converter {
43
43
  -webkit-text-stroke-width: .1ex;
44
44
  }
45
- .wpb-hidden, .wpb-table-inter, .wpb-table-inter span,
46
- .wpb-noinclude, .wpb-include, .wpb-comment,
45
+ .wpb-image-invalid, .wpb-table-inter,
46
+ .wpb-hidden, .wpb-noinclude, .wpb-include, .wpb-comment, .wpb-attr-dirty,
47
47
  .wpb-ext-attrs, .wpb-html-attrs,
48
48
  .wpb-ext-inner,
49
49
  .wpb-arg-default,
package/extensions/ui.css CHANGED
@@ -7,17 +7,15 @@
7
7
  .wpb-error {
8
8
  text-decoration: underline wavy #f00 1px;
9
9
  }
10
- .wpb-hidden, .wpb-table-inter, .wpb-table-inter span {
10
+ .wpb-image-invalid, .wpb-table-inter {
11
11
  color: #f00;
12
12
  font-weight: normal;
13
13
  text-decoration: underline wavy 1px;
14
14
  }
15
15
 
16
- .wpb-noinclude, .wpb-include, .wpb-comment {
16
+ .wpb-hidden, .wpb-noinclude, .wpb-include, .wpb-comment, .wpb-attr-dirty {
17
17
  color: #72777d;
18
18
  font-weight: normal;
19
- }
20
- .wpb-comment {
21
19
  font-style: italic;
22
20
  }
23
21
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wikiparser-node",
3
- "version": "1.1.6-b",
3
+ "version": "1.2.0-b",
4
4
  "description": "A Node.js parser for MediaWiki markup with AST",
5
5
  "keywords": [
6
6
  "mediawiki",
@@ -31,10 +31,12 @@
31
31
  "url": "git+https://github.com/bhsd-harry/wikiparser-node.git"
32
32
  },
33
33
  "scripts": {
34
- "prepublishOnly": "webpack build --mode production && npm run build:ext",
35
- "build:core": "rm bundle/*.js; webpack build --mode development; webpack build --mode production; eslint --no-eslintrc -c .eslintrc.browser.json bundle/",
34
+ "prepublishOnly": "npm run build:prod && npm run build:ext",
35
+ "build:dev": "esbuild index.ts --bundle --target=es2018 --outfile=bundle/bundle.js",
36
+ "build:prod": "esbuild index.ts --bundle --minify --target=es2018 --outfile=bundle/bundle.min.js",
37
+ "build:core": "rm bundle/*.js; npm run build:dev; npm run build:prod; eslint --no-eslintrc -c .eslintrc.browser.json bundle/",
36
38
  "build:ext": "bash build-ext.sh",
37
- "build:test": "rm -rf dist/; tsc; gsed -i 's|./config/minimum|../config/minimum|' dist/index.js",
39
+ "build:test": "rm -rf dist/; tsc; gsed -i 's|../config/minimum|../../config/minimum|' dist/util/constants.js",
38
40
  "build": "npm run build:core && npm run build:ext",
39
41
  "diff": "git diff --ignore-all-space --color-moved",
40
42
  "lint:ts": "tsc --noEmit && tsc --noEmit --project extensions/tsconfig.json && eslint --cache .",
@@ -57,7 +59,7 @@
57
59
  "@typescript-eslint/eslint-plugin": "^6.12.0",
58
60
  "@typescript-eslint/parser": "^6.12.0",
59
61
  "ajv-cli": "^5.0.0",
60
- "esbuild-loader": "^4.0.2",
62
+ "esbuild": "^0.19.7",
61
63
  "eslint": "^8.56.0",
62
64
  "eslint-plugin-es-x": "^7.3.0",
63
65
  "eslint-plugin-eslint-comments": "^3.2.0",
@@ -70,8 +72,6 @@
70
72
  "http-server": "^14.1.0",
71
73
  "stylelint": "^15.11.0",
72
74
  "stylelint-config-recommended": "^13.0.0",
73
- "webpack-cli": "^5.1.4",
74
- "webpack": "^5.89.0",
75
75
  "typescript": "^5.1.6"
76
76
  },
77
77
  "engines": {