@nocobase/app 2.0.0-alpha.6 → 2.0.0-alpha.8

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.
Files changed (99) hide show
  1. package/dist/client/113.736e29a0.async.js +7 -0
  2. package/dist/client/1145.0351040a.async.js +3 -0
  3. package/dist/client/1161.0b3b5766.async.js +40 -0
  4. package/dist/client/1442.be509f94.async.js +5 -0
  5. package/dist/client/1595.1827ce7f.async.js +45 -0
  6. package/dist/client/1758.eeeacf43.async.js +5 -0
  7. package/dist/client/1883.6ee256ab.async.js +17 -0
  8. package/dist/client/1905.ff0793ff.async.js +12 -0
  9. package/dist/client/2042.feb4b9ac.async.js +10 -0
  10. package/dist/client/2097.5a49892c.async.js +12 -0
  11. package/dist/client/{2190.90c718a9.async.js → 2190.4f5395e5.async.js} +1 -1
  12. package/dist/client/2380.900b7a22.async.js +15 -0
  13. package/dist/client/2612.0865e67e.async.js +19 -0
  14. package/dist/client/2775.455c3402.async.js +47 -0
  15. package/dist/client/2936.902710e4.async.js +28 -0
  16. package/dist/client/3357.be95167c.async.js +28 -0
  17. package/dist/client/341.fba65e23.async.js +28 -0
  18. package/dist/client/3451.a9466e73.async.js +24 -0
  19. package/dist/client/4327.68c0f17b.async.js +16 -0
  20. package/dist/client/4351.efe05af2.async.js +15 -0
  21. package/dist/client/4666.fb83d11a.async.js +9 -0
  22. package/dist/client/4727.0f6df8fb.async.js +1 -0
  23. package/dist/client/4750.044f647b.async.js +32 -0
  24. package/dist/client/4926.58238954.async.js +17 -0
  25. package/dist/client/5013.b14730ba.async.js +3 -0
  26. package/dist/client/5501.22d50b3a.async.js +23 -0
  27. package/dist/client/5662.8c643e63.async.js +26 -0
  28. package/dist/client/5950.179a885e.async.js +4 -0
  29. package/dist/client/6021.cdefa0d3.async.js +22 -0
  30. package/dist/client/645.ea6376fe.async.js +60 -0
  31. package/dist/client/6474.49632e37.async.js +21 -0
  32. package/dist/client/6534.6ea6468b.async.js +33 -0
  33. package/dist/client/6747.de538558.async.js +22 -0
  34. package/dist/client/689.4de33d65.async.js +3 -0
  35. package/dist/client/6920.497d7e80.async.js +59 -0
  36. package/dist/client/6996.ae27c9d6.async.js +9 -0
  37. package/dist/client/703.20003a5c.async.js +17 -0
  38. package/dist/client/7087.5646e199.async.js +6 -0
  39. package/dist/client/7197.35a4b316.async.js +35 -0
  40. package/dist/client/7483.546ddcb6.async.js +23 -0
  41. package/dist/client/7534.0d69e071.async.js +34 -0
  42. package/dist/client/8183.4c6f7e21.async.js +12 -0
  43. package/dist/client/8408.c0ef773c.async.js +84 -0
  44. package/dist/client/8805.819c4f44.async.js +20 -0
  45. package/dist/client/9017.4ae5c322.async.js +6 -0
  46. package/dist/client/9042.3d21f631.async.js +45 -0
  47. package/dist/client/908.0e8c8a54.async.js +14 -0
  48. package/dist/client/9317.fe6ffa9a.async.js +13 -0
  49. package/dist/client/935.97d45ffa.async.js +27 -0
  50. package/dist/client/95.24aa76c4.async.js +6 -0
  51. package/dist/client/9547.a442df93.async.js +25 -0
  52. package/dist/client/9801.34b13a74.async.js +9 -0
  53. package/dist/client/9844.6f484975.async.js +37 -0
  54. package/dist/client/index.html +1 -1
  55. package/dist/client/index.html.tpl +1 -1
  56. package/dist/client/{npm._at_umijs.47085d01.async.js → npm._at_umijs.f64c1387.async.js} +1 -1
  57. package/dist/client/{npm.highlight.js.c1f693ec.async.js → npm.highlight.js.d3beb708.async.js} +1 -1
  58. package/dist/client/{npm.htmlparser2.a2f8d64d.async.js → npm.htmlparser2.ee1fb042.async.js} +1 -1
  59. package/dist/client/p__index.25560ad9.async.js +2272 -0
  60. package/dist/client/{umi.b4472505.js → umi.103d7bb8.js} +2 -2
  61. package/package.json +6 -6
  62. package/dist/client/1145.4029b0be.async.js +0 -3
  63. package/dist/client/1617.dd671a87.async.js +0 -6
  64. package/dist/client/1833.82373d30.async.js +0 -6
  65. package/dist/client/2134.1d86e440.async.js +0 -5
  66. package/dist/client/2498.be8b1194.async.js +0 -7
  67. package/dist/client/260.5b02a0a5.async.js +0 -4
  68. package/dist/client/2953.2e77d77c.async.js +0 -24
  69. package/dist/client/3170.6147bd19.async.js +0 -24
  70. package/dist/client/3255.e6303833.async.js +0 -10
  71. package/dist/client/3520.81fd6362.async.js +0 -24
  72. package/dist/client/3522.674f2264.async.js +0 -4
  73. package/dist/client/4088.0568ef31.async.js +0 -5
  74. package/dist/client/4205.c3eac46d.async.js +0 -9
  75. package/dist/client/4644.ae01f8a6.async.js +0 -4
  76. package/dist/client/4666.d20ff352.async.js +0 -8
  77. package/dist/client/4840.477401f9.async.js +0 -8
  78. package/dist/client/5068.72e9d750.async.js +0 -5
  79. package/dist/client/5087.468f5500.async.js +0 -6
  80. package/dist/client/5950.b83f8586.async.js +0 -4
  81. package/dist/client/6416.361c93ff.async.js +0 -4
  82. package/dist/client/6472.ac05f778.async.js +0 -7
  83. package/dist/client/6779.47fc1971.async.js +0 -10
  84. package/dist/client/6816.1ff200ac.async.js +0 -5
  85. package/dist/client/6996.836a3f7f.async.js +0 -8
  86. package/dist/client/7463.70ca58ce.async.js +0 -20
  87. package/dist/client/7522.1f91be5c.async.js +0 -23
  88. package/dist/client/7596.232a7185.async.js +0 -10
  89. package/dist/client/7688.85d6d7bb.async.js +0 -4
  90. package/dist/client/8106.829fd6b5.async.js +0 -10
  91. package/dist/client/8541.e3110aaa.async.js +0 -8
  92. package/dist/client/9017.28eacc5a.async.js +0 -6
  93. package/dist/client/937.a55819ab.async.js +0 -5
  94. package/dist/client/9462.a7773548.async.js +0 -35
  95. package/dist/client/9489.25ca39a9.async.js +0 -7
  96. package/dist/client/9663.c04b2ad1.async.js +0 -5
  97. package/dist/client/9729.0d7a5c47.async.js +0 -8
  98. package/dist/client/9848.18f8d3db.async.js +0 -4
  99. package/dist/client/p__index.d82bc129.async.js +0 -2316
@@ -1,2 +1,2 @@
1
- "use strict";(self.webpackChunknocobase=self.webpackChunknocobase||[]).push([[7513],{50763:function(_,n,v){var I=this&&this.__createBinding||(Object.create?function(c,s,o,f){f===void 0&&(f=o);var g=Object.getOwnPropertyDescriptor(s,o);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[o]}}),Object.defineProperty(c,f,g)}:function(c,s,o,f){f===void 0&&(f=o),c[f]=s[o]}),u=this&&this.__setModuleDefault||(Object.create?function(c,s){Object.defineProperty(c,"default",{enumerable:!0,value:s})}:function(c,s){c.default=s}),i=this&&this.__importStar||function(c){if(c&&c.__esModule)return c;var s={};if(c!=null)for(var o in c)o!=="default"&&Object.prototype.hasOwnProperty.call(c,o)&&I(s,c,o);return u(s,c),s};Object.defineProperty(n,"__esModule",{value:!0}),n.Parser=void 0;var S=i(v(39889)),T=v(52194),h=new Set(["input","option","optgroup","select","button","datalist","textarea"]),a=new Set(["p"]),d=new Set(["thead","tbody"]),p=new Set(["dd","dt"]),r=new Set(["rt","rp"]),m=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",a],["h1",a],["h2",a],["h3",a],["h4",a],["h5",a],["h6",a],["select",h],["input",h],["output",h],["button",h],["datalist",h],["textarea",h],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",p],["dt",p],["address",a],["article",a],["aside",a],["blockquote",a],["details",a],["div",a],["dl",a],["fieldset",a],["figcaption",a],["figure",a],["footer",a],["form",a],["header",a],["hr",a],["main",a],["nav",a],["ol",a],["pre",a],["section",a],["table",a],["ul",a],["rt",r],["rp",r],["tbody",d],["tfoot",d]]),t=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),e=new Set(["math","svg"]),l=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),b=/\s|\//,y=function(){function c(s,o){o===void 0&&(o={});var f,g,x,E,N;this.options=o,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=s??{},this.lowerCaseTagNames=(f=o.lowerCaseTags)!==null&&f!==void 0?f:!o.xmlMode,this.lowerCaseAttributeNames=(g=o.lowerCaseAttributeNames)!==null&&g!==void 0?g:!o.xmlMode,this.tokenizer=new((x=o.Tokenizer)!==null&&x!==void 0?x:S.default)(this.options,this),(N=(E=this.cbs).onparserinit)===null||N===void 0||N.call(E,this)}return c.prototype.ontext=function(s,o){var f,g,x=this.getSlice(s,o);this.endIndex=o-1,(g=(f=this.cbs).ontext)===null||g===void 0||g.call(f,x),this.startIndex=o},c.prototype.ontextentity=function(s){var o,f,g=this.tokenizer.getSectionStart();this.endIndex=g-1,(f=(o=this.cbs).ontext)===null||f===void 0||f.call(o,(0,T.fromCodePoint)(s)),this.startIndex=g},c.prototype.isVoidElement=function(s){return!this.options.xmlMode&&t.has(s)},c.prototype.onopentagname=function(s,o){this.endIndex=o;var f=this.getSlice(s,o);this.lowerCaseTagNames&&(f=f.toLowerCase()),this.emitOpenTag(f)},c.prototype.emitOpenTag=function(s){var o,f,g,x;this.openTagStart=this.startIndex,this.tagname=s;var E=!this.options.xmlMode&&m.get(s);if(E)for(;this.stack.length>0&&E.has(this.stack[this.stack.length-1]);){var N=this.stack.pop();(f=(o=this.cbs).onclosetag)===null||f===void 0||f.call(o,N,!0)}this.isVoidElement(s)||(this.stack.push(s),e.has(s)?this.foreignContext.push(!0):l.has(s)&&this.foreignContext.push(!1)),(x=(g=this.cbs).onopentagname)===null||x===void 0||x.call(g,s),this.cbs.onopentag&&(this.attribs={})},c.prototype.endOpenTag=function(s){var o,f;this.startIndex=this.openTagStart,this.attribs&&((f=(o=this.cbs).onopentag)===null||f===void 0||f.call(o,this.tagname,this.attribs,s),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},c.prototype.onopentagend=function(s){this.endIndex=s,this.endOpenTag(!1),this.startIndex=s+1},c.prototype.onclosetag=function(s,o){var f,g,x,E,N,w;this.endIndex=o;var A=this.getSlice(s,o);if(this.lowerCaseTagNames&&(A=A.toLowerCase()),(e.has(A)||l.has(A))&&this.foreignContext.pop(),this.isVoidElement(A))!this.options.xmlMode&&A==="br"&&((g=(f=this.cbs).onopentagname)===null||g===void 0||g.call(f,"br"),(E=(x=this.cbs).onopentag)===null||E===void 0||E.call(x,"br",{},!0),(w=(N=this.cbs).onclosetag)===null||w===void 0||w.call(N,"br",!1));else{var D=this.stack.lastIndexOf(A);if(D!==-1)if(this.cbs.onclosetag)for(var O=this.stack.length-D;O--;)this.cbs.onclosetag(this.stack.pop(),O!==0);else this.stack.length=D;else!this.options.xmlMode&&A==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=o+1},c.prototype.onselfclosingtag=function(s){this.endIndex=s,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=s+1):this.onopentagend(s)},c.prototype.closeCurrentTag=function(s){var o,f,g=this.tagname;this.endOpenTag(s),this.stack[this.stack.length-1]===g&&((f=(o=this.cbs).onclosetag)===null||f===void 0||f.call(o,g,!s),this.stack.pop())},c.prototype.onattribname=function(s,o){this.startIndex=s;var f=this.getSlice(s,o);this.attribname=this.lowerCaseAttributeNames?f.toLowerCase():f},c.prototype.onattribdata=function(s,o){this.attribvalue+=this.getSlice(s,o)},c.prototype.onattribentity=function(s){this.attribvalue+=(0,T.fromCodePoint)(s)},c.prototype.onattribend=function(s,o){var f,g;this.endIndex=o,(g=(f=this.cbs).onattribute)===null||g===void 0||g.call(f,this.attribname,this.attribvalue,s===S.QuoteType.Double?'"':s===S.QuoteType.Single?"'":s===S.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},c.prototype.getInstructionName=function(s){var o=s.search(b),f=o<0?s:s.substr(0,o);return this.lowerCaseTagNames&&(f=f.toLowerCase()),f},c.prototype.ondeclaration=function(s,o){this.endIndex=o;var f=this.getSlice(s,o);if(this.cbs.onprocessinginstruction){var g=this.getInstructionName(f);this.cbs.onprocessinginstruction("!".concat(g),"!".concat(f))}this.startIndex=o+1},c.prototype.onprocessinginstruction=function(s,o){this.endIndex=o;var f=this.getSlice(s,o);if(this.cbs.onprocessinginstruction){var g=this.getInstructionName(f);this.cbs.onprocessinginstruction("?".concat(g),"?".concat(f))}this.startIndex=o+1},c.prototype.oncomment=function(s,o,f){var g,x,E,N;this.endIndex=o,(x=(g=this.cbs).oncomment)===null||x===void 0||x.call(g,this.getSlice(s,o-f)),(N=(E=this.cbs).oncommentend)===null||N===void 0||N.call(E),this.startIndex=o+1},c.prototype.oncdata=function(s,o,f){var g,x,E,N,w,A,D,O,P,B;this.endIndex=o;var C=this.getSlice(s,o-f);this.options.xmlMode||this.options.recognizeCDATA?((x=(g=this.cbs).oncdatastart)===null||x===void 0||x.call(g),(N=(E=this.cbs).ontext)===null||N===void 0||N.call(E,C),(A=(w=this.cbs).oncdataend)===null||A===void 0||A.call(w)):((O=(D=this.cbs).oncomment)===null||O===void 0||O.call(D,"[CDATA[".concat(C,"]]")),(B=(P=this.cbs).oncommentend)===null||B===void 0||B.call(P)),this.startIndex=o+1},c.prototype.onend=function(){var s,o;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var f=this.stack.length;f>0;this.cbs.onclosetag(this.stack[--f],!0));}(o=(s=this.cbs).onend)===null||o===void 0||o.call(s)},c.prototype.reset=function(){var s,o,f,g;(o=(s=this.cbs).onreset)===null||o===void 0||o.call(s),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(g=(f=this.cbs).onparserinit)===null||g===void 0||g.call(f,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},c.prototype.parseComplete=function(s){this.reset(),this.end(s)},c.prototype.getSlice=function(s,o){for(;s-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var f=this.buffers[0].slice(s-this.bufferOffset,o-this.bufferOffset);o-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),f+=this.buffers[0].slice(0,o-this.bufferOffset);return f},c.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},c.prototype.write=function(s){var o,f;if(this.ended){(f=(o=this.cbs).onerror)===null||f===void 0||f.call(o,new Error(".write() after done!"));return}this.buffers.push(s),this.tokenizer.running&&(this.tokenizer.write(s),this.writeIndex++)},c.prototype.end=function(s){var o,f;if(this.ended){(f=(o=this.cbs).onerror)===null||f===void 0||f.call(o,new Error(".end() after done!"));return}s&&this.write(s),this.ended=!0,this.tokenizer.end()},c.prototype.pause=function(){this.tokenizer.pause()},c.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()},c.prototype.parseChunk=function(s){this.write(s)},c.prototype.done=function(s){this.end(s)},c}();n.Parser=y},39889:function(_,n,v){Object.defineProperty(n,"__esModule",{value:!0}),n.QuoteType=void 0;var I=v(52194),u;(function(t){t[t.Tab=9]="Tab",t[t.NewLine=10]="NewLine",t[t.FormFeed=12]="FormFeed",t[t.CarriageReturn=13]="CarriageReturn",t[t.Space=32]="Space",t[t.ExclamationMark=33]="ExclamationMark",t[t.Number=35]="Number",t[t.Amp=38]="Amp",t[t.SingleQuote=39]="SingleQuote",t[t.DoubleQuote=34]="DoubleQuote",t[t.Dash=45]="Dash",t[t.Slash=47]="Slash",t[t.Zero=48]="Zero",t[t.Nine=57]="Nine",t[t.Semi=59]="Semi",t[t.Lt=60]="Lt",t[t.Eq=61]="Eq",t[t.Gt=62]="Gt",t[t.Questionmark=63]="Questionmark",t[t.UpperA=65]="UpperA",t[t.LowerA=97]="LowerA",t[t.UpperF=70]="UpperF",t[t.LowerF=102]="LowerF",t[t.UpperZ=90]="UpperZ",t[t.LowerZ=122]="LowerZ",t[t.LowerX=120]="LowerX",t[t.OpeningSquareBracket=91]="OpeningSquareBracket"})(u||(u={}));var i;(function(t){t[t.Text=1]="Text",t[t.BeforeTagName=2]="BeforeTagName",t[t.InTagName=3]="InTagName",t[t.InSelfClosingTag=4]="InSelfClosingTag",t[t.BeforeClosingTagName=5]="BeforeClosingTagName",t[t.InClosingTagName=6]="InClosingTagName",t[t.AfterClosingTagName=7]="AfterClosingTagName",t[t.BeforeAttributeName=8]="BeforeAttributeName",t[t.InAttributeName=9]="InAttributeName",t[t.AfterAttributeName=10]="AfterAttributeName",t[t.BeforeAttributeValue=11]="BeforeAttributeValue",t[t.InAttributeValueDq=12]="InAttributeValueDq",t[t.InAttributeValueSq=13]="InAttributeValueSq",t[t.InAttributeValueNq=14]="InAttributeValueNq",t[t.BeforeDeclaration=15]="BeforeDeclaration",t[t.InDeclaration=16]="InDeclaration",t[t.InProcessingInstruction=17]="InProcessingInstruction",t[t.BeforeComment=18]="BeforeComment",t[t.CDATASequence=19]="CDATASequence",t[t.InSpecialComment=20]="InSpecialComment",t[t.InCommentLike=21]="InCommentLike",t[t.BeforeSpecialS=22]="BeforeSpecialS",t[t.SpecialStartSequence=23]="SpecialStartSequence",t[t.InSpecialTag=24]="InSpecialTag",t[t.BeforeEntity=25]="BeforeEntity",t[t.BeforeNumericEntity=26]="BeforeNumericEntity",t[t.InNamedEntity=27]="InNamedEntity",t[t.InNumericEntity=28]="InNumericEntity",t[t.InHexEntity=29]="InHexEntity"})(i||(i={}));function S(t){return t===u.Space||t===u.NewLine||t===u.Tab||t===u.FormFeed||t===u.CarriageReturn}function T(t){return t===u.Slash||t===u.Gt||S(t)}function h(t){return t>=u.Zero&&t<=u.Nine}function a(t){return t>=u.LowerA&&t<=u.LowerZ||t>=u.UpperA&&t<=u.UpperZ}function d(t){return t>=u.UpperA&&t<=u.UpperF||t>=u.LowerA&&t<=u.LowerF}var p;(function(t){t[t.NoValue=0]="NoValue",t[t.Unquoted=1]="Unquoted",t[t.Single=2]="Single",t[t.Double=3]="Double"})(p=n.QuoteType||(n.QuoteType={}));var r={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},m=function(){function t(e,l){var b=e.xmlMode,y=b===void 0?!1:b,c=e.decodeEntities,s=c===void 0?!0:c;this.cbs=l,this.state=i.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=i.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=y,this.decodeEntities=s,this.entityTrie=y?I.xmlDecodeTree:I.htmlDecodeTree}return t.prototype.reset=function(){this.state=i.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=i.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},t.prototype.write=function(e){this.offset+=this.buffer.length,this.buffer=e,this.parse()},t.prototype.end=function(){this.running&&this.finish()},t.prototype.pause=function(){this.running=!1},t.prototype.resume=function(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()},t.prototype.getIndex=function(){return this.index},t.prototype.getSectionStart=function(){return this.sectionStart},t.prototype.stateText=function(e){e===u.Lt||!this.decodeEntities&&this.fastForwardTo(u.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=i.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&e===u.Amp&&(this.state=i.BeforeEntity)},t.prototype.stateSpecialStartSequence=function(e){var l=this.sequenceIndex===this.currentSequence.length,b=l?T(e):(e|32)===this.currentSequence[this.sequenceIndex];if(!b)this.isSpecial=!1;else if(!l){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=i.InTagName,this.stateInTagName(e)},t.prototype.stateInSpecialTag=function(e){if(this.sequenceIndex===this.currentSequence.length){if(e===u.Gt||S(e)){var l=this.index-this.currentSequence.length;if(this.sectionStart<l){var b=this.index;this.index=l,this.cbs.ontext(this.sectionStart,l),this.index=b}this.isSpecial=!1,this.sectionStart=l+2,this.stateInClosingTagName(e);return}this.sequenceIndex=0}(e|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===r.TitleEnd?this.decodeEntities&&e===u.Amp&&(this.state=i.BeforeEntity):this.fastForwardTo(u.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=+(e===u.Lt)},t.prototype.stateCDATASequence=function(e){e===r.Cdata[this.sequenceIndex]?++this.sequenceIndex===r.Cdata.length&&(this.state=i.InCommentLike,this.currentSequence=r.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=i.InDeclaration,this.stateInDeclaration(e))},t.prototype.fastForwardTo=function(e){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===e)return!0;return this.index=this.buffer.length+this.offset-1,!1},t.prototype.stateInCommentLike=function(e){e===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===r.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=i.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):e!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)},t.prototype.isTagStartChar=function(e){return this.xmlMode?!T(e):a(e)},t.prototype.startSpecial=function(e,l){this.isSpecial=!0,this.currentSequence=e,this.sequenceIndex=l,this.state=i.SpecialStartSequence},t.prototype.stateBeforeTagName=function(e){if(e===u.ExclamationMark)this.state=i.BeforeDeclaration,this.sectionStart=this.index+1;else if(e===u.Questionmark)this.state=i.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(e)){var l=e|32;this.sectionStart=this.index,!this.xmlMode&&l===r.TitleEnd[2]?this.startSpecial(r.TitleEnd,3):this.state=!this.xmlMode&&l===r.ScriptEnd[2]?i.BeforeSpecialS:i.InTagName}else e===u.Slash?this.state=i.BeforeClosingTagName:(this.state=i.Text,this.stateText(e))},t.prototype.stateInTagName=function(e){T(e)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=i.BeforeAttributeName,this.stateBeforeAttributeName(e))},t.prototype.stateBeforeClosingTagName=function(e){S(e)||(e===u.Gt?this.state=i.Text:(this.state=this.isTagStartChar(e)?i.InClosingTagName:i.InSpecialComment,this.sectionStart=this.index))},t.prototype.stateInClosingTagName=function(e){(e===u.Gt||S(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=i.AfterClosingTagName,this.stateAfterClosingTagName(e))},t.prototype.stateAfterClosingTagName=function(e){(e===u.Gt||this.fastForwardTo(u.Gt))&&(this.state=i.Text,this.baseState=i.Text,this.sectionStart=this.index+1)},t.prototype.stateBeforeAttributeName=function(e){e===u.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=i.InSpecialTag,this.sequenceIndex=0):this.state=i.Text,this.baseState=this.state,this.sectionStart=this.index+1):e===u.Slash?this.state=i.InSelfClosingTag:S(e)||(this.state=i.InAttributeName,this.sectionStart=this.index)},t.prototype.stateInSelfClosingTag=function(e){e===u.Gt?(this.cbs.onselfclosingtag(this.index),this.state=i.Text,this.baseState=i.Text,this.sectionStart=this.index+1,this.isSpecial=!1):S(e)||(this.state=i.BeforeAttributeName,this.stateBeforeAttributeName(e))},t.prototype.stateInAttributeName=function(e){(e===u.Eq||T(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=i.AfterAttributeName,this.stateAfterAttributeName(e))},t.prototype.stateAfterAttributeName=function(e){e===u.Eq?this.state=i.BeforeAttributeValue:e===u.Slash||e===u.Gt?(this.cbs.onattribend(p.NoValue,this.index),this.state=i.BeforeAttributeName,this.stateBeforeAttributeName(e)):S(e)||(this.cbs.onattribend(p.NoValue,this.index),this.state=i.InAttributeName,this.sectionStart=this.index)},t.prototype.stateBeforeAttributeValue=function(e){e===u.DoubleQuote?(this.state=i.InAttributeValueDq,this.sectionStart=this.index+1):e===u.SingleQuote?(this.state=i.InAttributeValueSq,this.sectionStart=this.index+1):S(e)||(this.sectionStart=this.index,this.state=i.InAttributeValueNq,this.stateInAttributeValueNoQuotes(e))},t.prototype.handleInAttributeValue=function(e,l){e===l||!this.decodeEntities&&this.fastForwardTo(l)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(l===u.DoubleQuote?p.Double:p.Single,this.index),this.state=i.BeforeAttributeName):this.decodeEntities&&e===u.Amp&&(this.baseState=this.state,this.state=i.BeforeEntity)},t.prototype.stateInAttributeValueDoubleQuotes=function(e){this.handleInAttributeValue(e,u.DoubleQuote)},t.prototype.stateInAttributeValueSingleQuotes=function(e){this.handleInAttributeValue(e,u.SingleQuote)},t.prototype.stateInAttributeValueNoQuotes=function(e){S(e)||e===u.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(p.Unquoted,this.index),this.state=i.BeforeAttributeName,this.stateBeforeAttributeName(e)):this.decodeEntities&&e===u.Amp&&(this.baseState=this.state,this.state=i.BeforeEntity)},t.prototype.stateBeforeDeclaration=function(e){e===u.OpeningSquareBracket?(this.state=i.CDATASequence,this.sequenceIndex=0):this.state=e===u.Dash?i.BeforeComment:i.InDeclaration},t.prototype.stateInDeclaration=function(e){(e===u.Gt||this.fastForwardTo(u.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=i.Text,this.sectionStart=this.index+1)},t.prototype.stateInProcessingInstruction=function(e){(e===u.Gt||this.fastForwardTo(u.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=i.Text,this.sectionStart=this.index+1)},t.prototype.stateBeforeComment=function(e){e===u.Dash?(this.state=i.InCommentLike,this.currentSequence=r.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=i.InDeclaration},t.prototype.stateInSpecialComment=function(e){(e===u.Gt||this.fastForwardTo(u.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=i.Text,this.sectionStart=this.index+1)},t.prototype.stateBeforeSpecialS=function(e){var l=e|32;l===r.ScriptEnd[3]?this.startSpecial(r.ScriptEnd,4):l===r.StyleEnd[3]?this.startSpecial(r.StyleEnd,4):(this.state=i.InTagName,this.stateInTagName(e))},t.prototype.stateBeforeEntity=function(e){this.entityExcess=1,this.entityResult=0,e===u.Number?this.state=i.BeforeNumericEntity:e===u.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=i.InNamedEntity,this.stateInNamedEntity(e))},t.prototype.stateInNamedEntity=function(e){if(this.entityExcess+=1,this.trieIndex=(0,I.determineBranch)(this.entityTrie,this.trieCurrent,this.trieIndex+1,e),this.trieIndex<0){this.emitNamedEntity(),this.index--;return}this.trieCurrent=this.entityTrie[this.trieIndex];var l=this.trieCurrent&I.BinTrieFlags.VALUE_LENGTH;if(l){var b=(l>>14)-1;if(!this.allowLegacyEntity()&&e!==u.Semi)this.trieIndex+=b;else{var y=this.index-this.entityExcess+1;y>this.sectionStart&&this.emitPartial(this.sectionStart,y),this.entityResult=this.trieIndex,this.trieIndex+=b,this.entityExcess=0,this.sectionStart=this.index+1,b===0&&this.emitNamedEntity()}}},t.prototype.emitNamedEntity=function(){if(this.state=this.baseState,this.entityResult!==0){var e=(this.entityTrie[this.entityResult]&I.BinTrieFlags.VALUE_LENGTH)>>14;switch(e){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~I.BinTrieFlags.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}},t.prototype.stateBeforeNumericEntity=function(e){(e|32)===u.LowerX?(this.entityExcess++,this.state=i.InHexEntity):(this.state=i.InNumericEntity,this.stateInNumericEntity(e))},t.prototype.emitNumericEntity=function(e){var l=this.index-this.entityExcess-1,b=l+2+ +(this.state===i.InHexEntity);b!==this.index&&(l>this.sectionStart&&this.emitPartial(this.sectionStart,l),this.sectionStart=this.index+Number(e),this.emitCodePoint((0,I.replaceCodePoint)(this.entityResult))),this.state=this.baseState},t.prototype.stateInNumericEntity=function(e){e===u.Semi?this.emitNumericEntity(!0):h(e)?(this.entityResult=this.entityResult*10+(e-u.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},t.prototype.stateInHexEntity=function(e){e===u.Semi?this.emitNumericEntity(!0):h(e)?(this.entityResult=this.entityResult*16+(e-u.Zero),this.entityExcess++):d(e)?(this.entityResult=this.entityResult*16+((e|32)-u.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},t.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===i.Text||this.baseState===i.InSpecialTag)},t.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===i.Text||this.state===i.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===i.InAttributeValueDq||this.state===i.InAttributeValueSq||this.state===i.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},t.prototype.shouldContinue=function(){return this.index<this.buffer.length+this.offset&&this.running},t.prototype.parse=function(){for(;this.shouldContinue();){var e=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case i.Text:{this.stateText(e);break}case i.SpecialStartSequence:{this.stateSpecialStartSequence(e);break}case i.InSpecialTag:{this.stateInSpecialTag(e);break}case i.CDATASequence:{this.stateCDATASequence(e);break}case i.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(e);break}case i.InAttributeName:{this.stateInAttributeName(e);break}case i.InCommentLike:{this.stateInCommentLike(e);break}case i.InSpecialComment:{this.stateInSpecialComment(e);break}case i.BeforeAttributeName:{this.stateBeforeAttributeName(e);break}case i.InTagName:{this.stateInTagName(e);break}case i.InClosingTagName:{this.stateInClosingTagName(e);break}case i.BeforeTagName:{this.stateBeforeTagName(e);break}case i.AfterAttributeName:{this.stateAfterAttributeName(e);break}case i.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(e);break}case i.BeforeAttributeValue:{this.stateBeforeAttributeValue(e);break}case i.BeforeClosingTagName:{this.stateBeforeClosingTagName(e);break}case i.AfterClosingTagName:{this.stateAfterClosingTagName(e);break}case i.BeforeSpecialS:{this.stateBeforeSpecialS(e);break}case i.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(e);break}case i.InSelfClosingTag:{this.stateInSelfClosingTag(e);break}case i.InDeclaration:{this.stateInDeclaration(e);break}case i.BeforeDeclaration:{this.stateBeforeDeclaration(e);break}case i.BeforeComment:{this.stateBeforeComment(e);break}case i.InProcessingInstruction:{this.stateInProcessingInstruction(e);break}case i.InNamedEntity:{this.stateInNamedEntity(e);break}case i.BeforeEntity:{this.stateBeforeEntity(e);break}case i.InHexEntity:{this.stateInHexEntity(e);break}case i.InNumericEntity:{this.stateInNumericEntity(e);break}default:this.stateBeforeNumericEntity(e)}this.index++}this.cleanup()},t.prototype.finish=function(){this.state===i.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()},t.prototype.handleTrailingData=function(){var e=this.buffer.length+this.offset;this.state===i.InCommentLike?this.currentSequence===r.CdataEnd?this.cbs.oncdata(this.sectionStart,e,0):this.cbs.oncomment(this.sectionStart,e,0):this.state===i.InNumericEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===i.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===i.InTagName||this.state===i.BeforeAttributeName||this.state===i.BeforeAttributeValue||this.state===i.AfterAttributeName||this.state===i.InAttributeName||this.state===i.InAttributeValueSq||this.state===i.InAttributeValueDq||this.state===i.InAttributeValueNq||this.state===i.InClosingTagName||this.cbs.ontext(this.sectionStart,e)},t.prototype.emitPartial=function(e,l){this.baseState!==i.Text&&this.baseState!==i.InSpecialTag?this.cbs.onattribdata(e,l):this.cbs.ontext(e,l)},t.prototype.emitCodePoint=function(e){this.baseState!==i.Text&&this.baseState!==i.InSpecialTag?this.cbs.onattribentity(e):this.cbs.ontextentity(e)},t}();n.default=m},23719:function(_,n,v){var I=this&&this.__createBinding||(Object.create?function(c,s,o,f){f===void 0&&(f=o);var g=Object.getOwnPropertyDescriptor(s,o);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[o]}}),Object.defineProperty(c,f,g)}:function(c,s,o,f){f===void 0&&(f=o),c[f]=s[o]}),u=this&&this.__setModuleDefault||(Object.create?function(c,s){Object.defineProperty(c,"default",{enumerable:!0,value:s})}:function(c,s){c.default=s}),i=this&&this.__importStar||function(c){if(c&&c.__esModule)return c;var s={};if(c!=null)for(var o in c)o!=="default"&&Object.prototype.hasOwnProperty.call(c,o)&&I(s,c,o);return u(s,c),s},S=this&&this.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(n,"__esModule",{value:!0}),n.DomUtils=n.parseFeed=n.getFeed=n.ElementType=n.Tokenizer=n.createDomStream=n.parseDOM=n.parseDocument=n.DefaultHandler=n.DomHandler=n.Parser=void 0;var T=v(50763),h=v(50763);Object.defineProperty(n,"Parser",{enumerable:!0,get:function(){return h.Parser}});var a=v(47915),d=v(47915);Object.defineProperty(n,"DomHandler",{enumerable:!0,get:function(){return d.DomHandler}}),Object.defineProperty(n,"DefaultHandler",{enumerable:!0,get:function(){return d.DomHandler}});function p(c,s){var o=new a.DomHandler(void 0,s);return new T.Parser(o,s).end(c),o.root}n.parseDocument=p;function r(c,s){return p(c,s).children}n.parseDOM=r;function m(c,s,o){var f=new a.DomHandler(c,s,o);return new T.Parser(f,s)}n.createDomStream=m;var t=v(39889);Object.defineProperty(n,"Tokenizer",{enumerable:!0,get:function(){return S(t).default}}),n.ElementType=i(v(99960));var e=v(43992),l=v(43992);Object.defineProperty(n,"getFeed",{enumerable:!0,get:function(){return l.getFeed}});var b={xmlMode:!0};function y(c,s){return s===void 0&&(s=b),(0,e.getFeed)(r(c,s))}n.parseFeed=y,n.DomUtils=i(v(43992))},34921:function(_,n,v){Object.defineProperty(n,"__esModule",{value:!0}),n.getFeed=void 0;var I=v(72178),u=v(55355);function i(e){var l=p(t,e);return l?l.name==="feed"?S(l):T(l):null}n.getFeed=i;function S(e){var l,b=e.children,y={type:"atom",items:(0,u.getElementsByTagName)("entry",b).map(function(o){var f,g=o.children,x={media:d(g)};m(x,"id","id",g),m(x,"title","title",g);var E=(f=p("link",g))===null||f===void 0?void 0:f.attribs.href;E&&(x.link=E);var N=r("summary",g)||r("content",g);N&&(x.description=N);var w=r("updated",g);return w&&(x.pubDate=new Date(w)),x})};m(y,"id","id",b),m(y,"title","title",b);var c=(l=p("link",b))===null||l===void 0?void 0:l.attribs.href;c&&(y.link=c),m(y,"description","subtitle",b);var s=r("updated",b);return s&&(y.updated=new Date(s)),m(y,"author","email",b,!0),y}function T(e){var l,b,y=(b=(l=p("channel",e.children))===null||l===void 0?void 0:l.children)!==null&&b!==void 0?b:[],c={type:e.name.substr(0,3),id:"",items:(0,u.getElementsByTagName)("item",e.children).map(function(o){var f=o.children,g={media:d(f)};m(g,"id","guid",f),m(g,"title","title",f),m(g,"link","link",f),m(g,"description","description",f);var x=r("pubDate",f)||r("dc:date",f);return x&&(g.pubDate=new Date(x)),g})};m(c,"title","title",y),m(c,"link","link",y),m(c,"description","description",y);var s=r("lastBuildDate",y);return s&&(c.updated=new Date(s)),m(c,"author","managingEditor",y,!0),c}var h=["url","type","lang"],a=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function d(e){return(0,u.getElementsByTagName)("media:content",e).map(function(l){for(var b=l.attribs,y={medium:b.medium,isDefault:!!b.isDefault},c=0,s=h;c<s.length;c++){var o=s[c];b[o]&&(y[o]=b[o])}for(var f=0,g=a;f<g.length;f++){var o=g[f];b[o]&&(y[o]=parseInt(b[o],10))}return b.expression&&(y.expression=b.expression),y})}function p(e,l){return(0,u.getElementsByTagName)(e,l,!0,1)[0]}function r(e,l,b){return b===void 0&&(b=!1),(0,I.textContent)((0,u.getElementsByTagName)(e,l,b,1)).trim()}function m(e,l,b,y,c){c===void 0&&(c=!1);var s=r(b,y,c);s&&(e[l]=s)}function t(e){return e==="rss"||e==="feed"||e==="rdf:RDF"}},99256:function(_,n,v){Object.defineProperty(n,"__esModule",{value:!0}),n.uniqueSort=n.compareDocumentPosition=n.DocumentPosition=n.removeSubsets=void 0;var I=v(47915);function u(h){for(var a=h.length;--a>=0;){var d=h[a];if(a>0&&h.lastIndexOf(d,a-1)>=0){h.splice(a,1);continue}for(var p=d.parent;p;p=p.parent)if(h.includes(p)){h.splice(a,1);break}}return h}n.removeSubsets=u;var i;(function(h){h[h.DISCONNECTED=1]="DISCONNECTED",h[h.PRECEDING=2]="PRECEDING",h[h.FOLLOWING=4]="FOLLOWING",h[h.CONTAINS=8]="CONTAINS",h[h.CONTAINED_BY=16]="CONTAINED_BY"})(i=n.DocumentPosition||(n.DocumentPosition={}));function S(h,a){var d=[],p=[];if(h===a)return 0;for(var r=(0,I.hasChildren)(h)?h:h.parent;r;)d.unshift(r),r=r.parent;for(r=(0,I.hasChildren)(a)?a:a.parent;r;)p.unshift(r),r=r.parent;for(var m=Math.min(d.length,p.length),t=0;t<m&&d[t]===p[t];)t++;if(t===0)return i.DISCONNECTED;var e=d[t-1],l=e.children,b=d[t],y=p[t];return l.indexOf(b)>l.indexOf(y)?e===a?i.FOLLOWING|i.CONTAINED_BY:i.FOLLOWING:e===h?i.PRECEDING|i.CONTAINS:i.PRECEDING}n.compareDocumentPosition=S;function T(h){return h=h.filter(function(a,d,p){return!p.includes(a,d+1)}),h.sort(function(a,d){var p=S(a,d);return p&i.PRECEDING?-1:p&i.FOLLOWING?1:0}),h}n.uniqueSort=T},43992:function(_,n,v){var I=this&&this.__createBinding||(Object.create?function(S,T,h,a){a===void 0&&(a=h);var d=Object.getOwnPropertyDescriptor(T,h);(!d||("get"in d?!T.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return T[h]}}),Object.defineProperty(S,a,d)}:function(S,T,h,a){a===void 0&&(a=h),S[a]=T[h]}),u=this&&this.__exportStar||function(S,T){for(var h in S)h!=="default"&&!Object.prototype.hasOwnProperty.call(T,h)&&I(T,S,h)};Object.defineProperty(n,"__esModule",{value:!0}),n.hasChildren=n.isDocument=n.isComment=n.isText=n.isCDATA=n.isTag=void 0,u(v(72178),n),u(v(61699),n),u(v(26167),n),u(v(46754),n),u(v(55355),n),u(v(99256),n),u(v(34921),n);var i=v(47915);Object.defineProperty(n,"isTag",{enumerable:!0,get:function(){return i.isTag}}),Object.defineProperty(n,"isCDATA",{enumerable:!0,get:function(){return i.isCDATA}}),Object.defineProperty(n,"isText",{enumerable:!0,get:function(){return i.isText}}),Object.defineProperty(n,"isComment",{enumerable:!0,get:function(){return i.isComment}}),Object.defineProperty(n,"isDocument",{enumerable:!0,get:function(){return i.isDocument}}),Object.defineProperty(n,"hasChildren",{enumerable:!0,get:function(){return i.hasChildren}})},55355:function(_,n,v){Object.defineProperty(n,"__esModule",{value:!0}),n.getElementsByTagType=n.getElementsByTagName=n.getElementById=n.getElements=n.testElement=void 0;var I=v(47915),u=v(46754),i={tag_name:function(t){return typeof t=="function"?function(e){return(0,I.isTag)(e)&&t(e.name)}:t==="*"?I.isTag:function(e){return(0,I.isTag)(e)&&e.name===t}},tag_type:function(t){return typeof t=="function"?function(e){return t(e.type)}:function(e){return e.type===t}},tag_contains:function(t){return typeof t=="function"?function(e){return(0,I.isText)(e)&&t(e.data)}:function(e){return(0,I.isText)(e)&&e.data===t}}};function S(t,e){return typeof e=="function"?function(l){return(0,I.isTag)(l)&&e(l.attribs[t])}:function(l){return(0,I.isTag)(l)&&l.attribs[t]===e}}function T(t,e){return function(l){return t(l)||e(l)}}function h(t){var e=Object.keys(t).map(function(l){var b=t[l];return Object.prototype.hasOwnProperty.call(i,l)?i[l](b):S(l,b)});return e.length===0?null:e.reduce(T)}function a(t,e){var l=h(t);return l?l(e):!0}n.testElement=a;function d(t,e,l,b){b===void 0&&(b=1/0);var y=h(t);return y?(0,u.filter)(y,e,l,b):[]}n.getElements=d;function p(t,e,l){return l===void 0&&(l=!0),Array.isArray(e)||(e=[e]),(0,u.findOne)(S("id",t),e,l)}n.getElementById=p;function r(t,e,l,b){return l===void 0&&(l=!0),b===void 0&&(b=1/0),(0,u.filter)(i.tag_name(t),e,l,b)}n.getElementsByTagName=r;function m(t,e,l,b){return l===void 0&&(l=!0),b===void 0&&(b=1/0),(0,u.filter)(i.tag_type(t),e,l,b)}n.getElementsByTagType=m},26167:function(_,n){Object.defineProperty(n,"__esModule",{value:!0}),n.prepend=n.prependChild=n.append=n.appendChild=n.replaceElement=n.removeElement=void 0;function v(h){if(h.prev&&(h.prev.next=h.next),h.next&&(h.next.prev=h.prev),h.parent){var a=h.parent.children,d=a.lastIndexOf(h);d>=0&&a.splice(d,1)}h.next=null,h.prev=null,h.parent=null}n.removeElement=v;function I(h,a){var d=a.prev=h.prev;d&&(d.next=a);var p=a.next=h.next;p&&(p.prev=a);var r=a.parent=h.parent;if(r){var m=r.children;m[m.lastIndexOf(h)]=a,h.parent=null}}n.replaceElement=I;function u(h,a){if(v(a),a.next=null,a.parent=h,h.children.push(a)>1){var d=h.children[h.children.length-2];d.next=a,a.prev=d}else a.prev=null}n.appendChild=u;function i(h,a){v(a);var d=h.parent,p=h.next;if(a.next=p,a.prev=h,h.next=a,a.parent=d,p){if(p.prev=a,d){var r=d.children;r.splice(r.lastIndexOf(p),0,a)}}else d&&d.children.push(a)}n.append=i;function S(h,a){if(v(a),a.parent=h,a.prev=null,h.children.unshift(a)!==1){var d=h.children[1];d.prev=a,a.next=d}else a.next=null}n.prependChild=S;function T(h,a){v(a);var d=h.parent;if(d){var p=d.children;p.splice(p.indexOf(h),0,a)}h.prev&&(h.prev.next=a),a.parent=d,a.prev=h.prev,a.next=h,h.prev=a}n.prepend=T},46754:function(_,n,v){Object.defineProperty(n,"__esModule",{value:!0}),n.findAll=n.existsOne=n.findOne=n.findOneChild=n.find=n.filter=void 0;var I=v(47915);function u(d,p,r,m){return r===void 0&&(r=!0),m===void 0&&(m=1/0),i(d,Array.isArray(p)?p:[p],r,m)}n.filter=u;function i(d,p,r,m){for(var t=[],e=[p],l=[0];;){if(l[0]>=e[0].length){if(l.length===1)return t;e.shift(),l.shift();continue}var b=e[0][l[0]++];if(d(b)&&(t.push(b),--m<=0))return t;r&&(0,I.hasChildren)(b)&&b.children.length>0&&(l.unshift(0),e.unshift(b.children))}}n.find=i;function S(d,p){return p.find(d)}n.findOneChild=S;function T(d,p,r){r===void 0&&(r=!0);for(var m=null,t=0;t<p.length&&!m;t++){var e=p[t];if((0,I.isTag)(e))d(e)?m=e:r&&e.children.length>0&&(m=T(d,e.children,!0));else continue}return m}n.findOne=T;function h(d,p){return p.some(function(r){return(0,I.isTag)(r)&&(d(r)||h(d,r.children))})}n.existsOne=h;function a(d,p){for(var r=[],m=[p],t=[0];;){if(t[0]>=m[0].length){if(m.length===1)return r;m.shift(),t.shift();continue}var e=m[0][t[0]++];(0,I.isTag)(e)&&(d(e)&&r.push(e),e.children.length>0&&(t.unshift(0),m.unshift(e.children)))}}n.findAll=a},72178:function(_,n,v){var I=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(n,"__esModule",{value:!0}),n.innerText=n.textContent=n.getText=n.getInnerHTML=n.getOuterHTML=void 0;var u=v(47915),i=I(v(97220)),S=v(99960);function T(r,m){return(0,i.default)(r,m)}n.getOuterHTML=T;function h(r,m){return(0,u.hasChildren)(r)?r.children.map(function(t){return T(t,m)}).join(""):""}n.getInnerHTML=h;function a(r){return Array.isArray(r)?r.map(a).join(""):(0,u.isTag)(r)?r.name==="br"?`
1
+ "use strict";(self.webpackChunknocobase=self.webpackChunknocobase||[]).push([[7513],{50763:function(_,n,v){var I=this&&this.__createBinding||(Object.create?function(c,s,o,f){f===void 0&&(f=o);var g=Object.getOwnPropertyDescriptor(s,o);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[o]}}),Object.defineProperty(c,f,g)}:function(c,s,o,f){f===void 0&&(f=o),c[f]=s[o]}),u=this&&this.__setModuleDefault||(Object.create?function(c,s){Object.defineProperty(c,"default",{enumerable:!0,value:s})}:function(c,s){c.default=s}),i=this&&this.__importStar||function(c){if(c&&c.__esModule)return c;var s={};if(c!=null)for(var o in c)o!=="default"&&Object.prototype.hasOwnProperty.call(c,o)&&I(s,c,o);return u(s,c),s};Object.defineProperty(n,"__esModule",{value:!0}),n.Parser=void 0;var S=i(v(39889)),T=v(52194),h=new Set(["input","option","optgroup","select","button","datalist","textarea"]),a=new Set(["p"]),d=new Set(["thead","tbody"]),p=new Set(["dd","dt"]),r=new Set(["rt","rp"]),m=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",a],["h1",a],["h2",a],["h3",a],["h4",a],["h5",a],["h6",a],["select",h],["input",h],["output",h],["button",h],["datalist",h],["textarea",h],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",p],["dt",p],["address",a],["article",a],["aside",a],["blockquote",a],["details",a],["div",a],["dl",a],["fieldset",a],["figcaption",a],["figure",a],["footer",a],["form",a],["header",a],["hr",a],["main",a],["nav",a],["ol",a],["pre",a],["section",a],["table",a],["ul",a],["rt",r],["rp",r],["tbody",d],["tfoot",d]]),t=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),e=new Set(["math","svg"]),l=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),b=/\s|\//,y=function(){function c(s,o){o===void 0&&(o={});var f,g,x,E,N;this.options=o,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=s??{},this.lowerCaseTagNames=(f=o.lowerCaseTags)!==null&&f!==void 0?f:!o.xmlMode,this.lowerCaseAttributeNames=(g=o.lowerCaseAttributeNames)!==null&&g!==void 0?g:!o.xmlMode,this.tokenizer=new((x=o.Tokenizer)!==null&&x!==void 0?x:S.default)(this.options,this),(N=(E=this.cbs).onparserinit)===null||N===void 0||N.call(E,this)}return c.prototype.ontext=function(s,o){var f,g,x=this.getSlice(s,o);this.endIndex=o-1,(g=(f=this.cbs).ontext)===null||g===void 0||g.call(f,x),this.startIndex=o},c.prototype.ontextentity=function(s){var o,f,g=this.tokenizer.getSectionStart();this.endIndex=g-1,(f=(o=this.cbs).ontext)===null||f===void 0||f.call(o,(0,T.fromCodePoint)(s)),this.startIndex=g},c.prototype.isVoidElement=function(s){return!this.options.xmlMode&&t.has(s)},c.prototype.onopentagname=function(s,o){this.endIndex=o;var f=this.getSlice(s,o);this.lowerCaseTagNames&&(f=f.toLowerCase()),this.emitOpenTag(f)},c.prototype.emitOpenTag=function(s){var o,f,g,x;this.openTagStart=this.startIndex,this.tagname=s;var E=!this.options.xmlMode&&m.get(s);if(E)for(;this.stack.length>0&&E.has(this.stack[this.stack.length-1]);){var N=this.stack.pop();(f=(o=this.cbs).onclosetag)===null||f===void 0||f.call(o,N,!0)}this.isVoidElement(s)||(this.stack.push(s),e.has(s)?this.foreignContext.push(!0):l.has(s)&&this.foreignContext.push(!1)),(x=(g=this.cbs).onopentagname)===null||x===void 0||x.call(g,s),this.cbs.onopentag&&(this.attribs={})},c.prototype.endOpenTag=function(s){var o,f;this.startIndex=this.openTagStart,this.attribs&&((f=(o=this.cbs).onopentag)===null||f===void 0||f.call(o,this.tagname,this.attribs,s),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},c.prototype.onopentagend=function(s){this.endIndex=s,this.endOpenTag(!1),this.startIndex=s+1},c.prototype.onclosetag=function(s,o){var f,g,x,E,N,w;this.endIndex=o;var A=this.getSlice(s,o);if(this.lowerCaseTagNames&&(A=A.toLowerCase()),(e.has(A)||l.has(A))&&this.foreignContext.pop(),this.isVoidElement(A))!this.options.xmlMode&&A==="br"&&((g=(f=this.cbs).onopentagname)===null||g===void 0||g.call(f,"br"),(E=(x=this.cbs).onopentag)===null||E===void 0||E.call(x,"br",{},!0),(w=(N=this.cbs).onclosetag)===null||w===void 0||w.call(N,"br",!1));else{var D=this.stack.lastIndexOf(A);if(D!==-1)if(this.cbs.onclosetag)for(var O=this.stack.length-D;O--;)this.cbs.onclosetag(this.stack.pop(),O!==0);else this.stack.length=D;else!this.options.xmlMode&&A==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=o+1},c.prototype.onselfclosingtag=function(s){this.endIndex=s,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=s+1):this.onopentagend(s)},c.prototype.closeCurrentTag=function(s){var o,f,g=this.tagname;this.endOpenTag(s),this.stack[this.stack.length-1]===g&&((f=(o=this.cbs).onclosetag)===null||f===void 0||f.call(o,g,!s),this.stack.pop())},c.prototype.onattribname=function(s,o){this.startIndex=s;var f=this.getSlice(s,o);this.attribname=this.lowerCaseAttributeNames?f.toLowerCase():f},c.prototype.onattribdata=function(s,o){this.attribvalue+=this.getSlice(s,o)},c.prototype.onattribentity=function(s){this.attribvalue+=(0,T.fromCodePoint)(s)},c.prototype.onattribend=function(s,o){var f,g;this.endIndex=o,(g=(f=this.cbs).onattribute)===null||g===void 0||g.call(f,this.attribname,this.attribvalue,s===S.QuoteType.Double?'"':s===S.QuoteType.Single?"'":s===S.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},c.prototype.getInstructionName=function(s){var o=s.search(b),f=o<0?s:s.substr(0,o);return this.lowerCaseTagNames&&(f=f.toLowerCase()),f},c.prototype.ondeclaration=function(s,o){this.endIndex=o;var f=this.getSlice(s,o);if(this.cbs.onprocessinginstruction){var g=this.getInstructionName(f);this.cbs.onprocessinginstruction("!".concat(g),"!".concat(f))}this.startIndex=o+1},c.prototype.onprocessinginstruction=function(s,o){this.endIndex=o;var f=this.getSlice(s,o);if(this.cbs.onprocessinginstruction){var g=this.getInstructionName(f);this.cbs.onprocessinginstruction("?".concat(g),"?".concat(f))}this.startIndex=o+1},c.prototype.oncomment=function(s,o,f){var g,x,E,N;this.endIndex=o,(x=(g=this.cbs).oncomment)===null||x===void 0||x.call(g,this.getSlice(s,o-f)),(N=(E=this.cbs).oncommentend)===null||N===void 0||N.call(E),this.startIndex=o+1},c.prototype.oncdata=function(s,o,f){var g,x,E,N,w,A,D,O,P,B;this.endIndex=o;var C=this.getSlice(s,o-f);this.options.xmlMode||this.options.recognizeCDATA?((x=(g=this.cbs).oncdatastart)===null||x===void 0||x.call(g),(N=(E=this.cbs).ontext)===null||N===void 0||N.call(E,C),(A=(w=this.cbs).oncdataend)===null||A===void 0||A.call(w)):((O=(D=this.cbs).oncomment)===null||O===void 0||O.call(D,"[CDATA[".concat(C,"]]")),(B=(P=this.cbs).oncommentend)===null||B===void 0||B.call(P)),this.startIndex=o+1},c.prototype.onend=function(){var s,o;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var f=this.stack.length;f>0;this.cbs.onclosetag(this.stack[--f],!0));}(o=(s=this.cbs).onend)===null||o===void 0||o.call(s)},c.prototype.reset=function(){var s,o,f,g;(o=(s=this.cbs).onreset)===null||o===void 0||o.call(s),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(g=(f=this.cbs).onparserinit)===null||g===void 0||g.call(f,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},c.prototype.parseComplete=function(s){this.reset(),this.end(s)},c.prototype.getSlice=function(s,o){for(;s-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var f=this.buffers[0].slice(s-this.bufferOffset,o-this.bufferOffset);o-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),f+=this.buffers[0].slice(0,o-this.bufferOffset);return f},c.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},c.prototype.write=function(s){var o,f;if(this.ended){(f=(o=this.cbs).onerror)===null||f===void 0||f.call(o,new Error(".write() after done!"));return}this.buffers.push(s),this.tokenizer.running&&(this.tokenizer.write(s),this.writeIndex++)},c.prototype.end=function(s){var o,f;if(this.ended){(f=(o=this.cbs).onerror)===null||f===void 0||f.call(o,new Error(".end() after done!"));return}s&&this.write(s),this.ended=!0,this.tokenizer.end()},c.prototype.pause=function(){this.tokenizer.pause()},c.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()},c.prototype.parseChunk=function(s){this.write(s)},c.prototype.done=function(s){this.end(s)},c}();n.Parser=y},39889:function(_,n,v){Object.defineProperty(n,"__esModule",{value:!0}),n.QuoteType=void 0;var I=v(52194),u;(function(t){t[t.Tab=9]="Tab",t[t.NewLine=10]="NewLine",t[t.FormFeed=12]="FormFeed",t[t.CarriageReturn=13]="CarriageReturn",t[t.Space=32]="Space",t[t.ExclamationMark=33]="ExclamationMark",t[t.Number=35]="Number",t[t.Amp=38]="Amp",t[t.SingleQuote=39]="SingleQuote",t[t.DoubleQuote=34]="DoubleQuote",t[t.Dash=45]="Dash",t[t.Slash=47]="Slash",t[t.Zero=48]="Zero",t[t.Nine=57]="Nine",t[t.Semi=59]="Semi",t[t.Lt=60]="Lt",t[t.Eq=61]="Eq",t[t.Gt=62]="Gt",t[t.Questionmark=63]="Questionmark",t[t.UpperA=65]="UpperA",t[t.LowerA=97]="LowerA",t[t.UpperF=70]="UpperF",t[t.LowerF=102]="LowerF",t[t.UpperZ=90]="UpperZ",t[t.LowerZ=122]="LowerZ",t[t.LowerX=120]="LowerX",t[t.OpeningSquareBracket=91]="OpeningSquareBracket"})(u||(u={}));var i;(function(t){t[t.Text=1]="Text",t[t.BeforeTagName=2]="BeforeTagName",t[t.InTagName=3]="InTagName",t[t.InSelfClosingTag=4]="InSelfClosingTag",t[t.BeforeClosingTagName=5]="BeforeClosingTagName",t[t.InClosingTagName=6]="InClosingTagName",t[t.AfterClosingTagName=7]="AfterClosingTagName",t[t.BeforeAttributeName=8]="BeforeAttributeName",t[t.InAttributeName=9]="InAttributeName",t[t.AfterAttributeName=10]="AfterAttributeName",t[t.BeforeAttributeValue=11]="BeforeAttributeValue",t[t.InAttributeValueDq=12]="InAttributeValueDq",t[t.InAttributeValueSq=13]="InAttributeValueSq",t[t.InAttributeValueNq=14]="InAttributeValueNq",t[t.BeforeDeclaration=15]="BeforeDeclaration",t[t.InDeclaration=16]="InDeclaration",t[t.InProcessingInstruction=17]="InProcessingInstruction",t[t.BeforeComment=18]="BeforeComment",t[t.CDATASequence=19]="CDATASequence",t[t.InSpecialComment=20]="InSpecialComment",t[t.InCommentLike=21]="InCommentLike",t[t.BeforeSpecialS=22]="BeforeSpecialS",t[t.SpecialStartSequence=23]="SpecialStartSequence",t[t.InSpecialTag=24]="InSpecialTag",t[t.BeforeEntity=25]="BeforeEntity",t[t.BeforeNumericEntity=26]="BeforeNumericEntity",t[t.InNamedEntity=27]="InNamedEntity",t[t.InNumericEntity=28]="InNumericEntity",t[t.InHexEntity=29]="InHexEntity"})(i||(i={}));function S(t){return t===u.Space||t===u.NewLine||t===u.Tab||t===u.FormFeed||t===u.CarriageReturn}function T(t){return t===u.Slash||t===u.Gt||S(t)}function h(t){return t>=u.Zero&&t<=u.Nine}function a(t){return t>=u.LowerA&&t<=u.LowerZ||t>=u.UpperA&&t<=u.UpperZ}function d(t){return t>=u.UpperA&&t<=u.UpperF||t>=u.LowerA&&t<=u.LowerF}var p;(function(t){t[t.NoValue=0]="NoValue",t[t.Unquoted=1]="Unquoted",t[t.Single=2]="Single",t[t.Double=3]="Double"})(p=n.QuoteType||(n.QuoteType={}));var r={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},m=function(){function t(e,l){var b=e.xmlMode,y=b===void 0?!1:b,c=e.decodeEntities,s=c===void 0?!0:c;this.cbs=l,this.state=i.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=i.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=y,this.decodeEntities=s,this.entityTrie=y?I.xmlDecodeTree:I.htmlDecodeTree}return t.prototype.reset=function(){this.state=i.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=i.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},t.prototype.write=function(e){this.offset+=this.buffer.length,this.buffer=e,this.parse()},t.prototype.end=function(){this.running&&this.finish()},t.prototype.pause=function(){this.running=!1},t.prototype.resume=function(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()},t.prototype.getIndex=function(){return this.index},t.prototype.getSectionStart=function(){return this.sectionStart},t.prototype.stateText=function(e){e===u.Lt||!this.decodeEntities&&this.fastForwardTo(u.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=i.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&e===u.Amp&&(this.state=i.BeforeEntity)},t.prototype.stateSpecialStartSequence=function(e){var l=this.sequenceIndex===this.currentSequence.length,b=l?T(e):(e|32)===this.currentSequence[this.sequenceIndex];if(!b)this.isSpecial=!1;else if(!l){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=i.InTagName,this.stateInTagName(e)},t.prototype.stateInSpecialTag=function(e){if(this.sequenceIndex===this.currentSequence.length){if(e===u.Gt||S(e)){var l=this.index-this.currentSequence.length;if(this.sectionStart<l){var b=this.index;this.index=l,this.cbs.ontext(this.sectionStart,l),this.index=b}this.isSpecial=!1,this.sectionStart=l+2,this.stateInClosingTagName(e);return}this.sequenceIndex=0}(e|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===r.TitleEnd?this.decodeEntities&&e===u.Amp&&(this.state=i.BeforeEntity):this.fastForwardTo(u.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=+(e===u.Lt)},t.prototype.stateCDATASequence=function(e){e===r.Cdata[this.sequenceIndex]?++this.sequenceIndex===r.Cdata.length&&(this.state=i.InCommentLike,this.currentSequence=r.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=i.InDeclaration,this.stateInDeclaration(e))},t.prototype.fastForwardTo=function(e){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===e)return!0;return this.index=this.buffer.length+this.offset-1,!1},t.prototype.stateInCommentLike=function(e){e===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===r.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=i.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):e!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)},t.prototype.isTagStartChar=function(e){return this.xmlMode?!T(e):a(e)},t.prototype.startSpecial=function(e,l){this.isSpecial=!0,this.currentSequence=e,this.sequenceIndex=l,this.state=i.SpecialStartSequence},t.prototype.stateBeforeTagName=function(e){if(e===u.ExclamationMark)this.state=i.BeforeDeclaration,this.sectionStart=this.index+1;else if(e===u.Questionmark)this.state=i.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(e)){var l=e|32;this.sectionStart=this.index,!this.xmlMode&&l===r.TitleEnd[2]?this.startSpecial(r.TitleEnd,3):this.state=!this.xmlMode&&l===r.ScriptEnd[2]?i.BeforeSpecialS:i.InTagName}else e===u.Slash?this.state=i.BeforeClosingTagName:(this.state=i.Text,this.stateText(e))},t.prototype.stateInTagName=function(e){T(e)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=i.BeforeAttributeName,this.stateBeforeAttributeName(e))},t.prototype.stateBeforeClosingTagName=function(e){S(e)||(e===u.Gt?this.state=i.Text:(this.state=this.isTagStartChar(e)?i.InClosingTagName:i.InSpecialComment,this.sectionStart=this.index))},t.prototype.stateInClosingTagName=function(e){(e===u.Gt||S(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=i.AfterClosingTagName,this.stateAfterClosingTagName(e))},t.prototype.stateAfterClosingTagName=function(e){(e===u.Gt||this.fastForwardTo(u.Gt))&&(this.state=i.Text,this.baseState=i.Text,this.sectionStart=this.index+1)},t.prototype.stateBeforeAttributeName=function(e){e===u.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=i.InSpecialTag,this.sequenceIndex=0):this.state=i.Text,this.baseState=this.state,this.sectionStart=this.index+1):e===u.Slash?this.state=i.InSelfClosingTag:S(e)||(this.state=i.InAttributeName,this.sectionStart=this.index)},t.prototype.stateInSelfClosingTag=function(e){e===u.Gt?(this.cbs.onselfclosingtag(this.index),this.state=i.Text,this.baseState=i.Text,this.sectionStart=this.index+1,this.isSpecial=!1):S(e)||(this.state=i.BeforeAttributeName,this.stateBeforeAttributeName(e))},t.prototype.stateInAttributeName=function(e){(e===u.Eq||T(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=i.AfterAttributeName,this.stateAfterAttributeName(e))},t.prototype.stateAfterAttributeName=function(e){e===u.Eq?this.state=i.BeforeAttributeValue:e===u.Slash||e===u.Gt?(this.cbs.onattribend(p.NoValue,this.index),this.state=i.BeforeAttributeName,this.stateBeforeAttributeName(e)):S(e)||(this.cbs.onattribend(p.NoValue,this.index),this.state=i.InAttributeName,this.sectionStart=this.index)},t.prototype.stateBeforeAttributeValue=function(e){e===u.DoubleQuote?(this.state=i.InAttributeValueDq,this.sectionStart=this.index+1):e===u.SingleQuote?(this.state=i.InAttributeValueSq,this.sectionStart=this.index+1):S(e)||(this.sectionStart=this.index,this.state=i.InAttributeValueNq,this.stateInAttributeValueNoQuotes(e))},t.prototype.handleInAttributeValue=function(e,l){e===l||!this.decodeEntities&&this.fastForwardTo(l)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(l===u.DoubleQuote?p.Double:p.Single,this.index),this.state=i.BeforeAttributeName):this.decodeEntities&&e===u.Amp&&(this.baseState=this.state,this.state=i.BeforeEntity)},t.prototype.stateInAttributeValueDoubleQuotes=function(e){this.handleInAttributeValue(e,u.DoubleQuote)},t.prototype.stateInAttributeValueSingleQuotes=function(e){this.handleInAttributeValue(e,u.SingleQuote)},t.prototype.stateInAttributeValueNoQuotes=function(e){S(e)||e===u.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(p.Unquoted,this.index),this.state=i.BeforeAttributeName,this.stateBeforeAttributeName(e)):this.decodeEntities&&e===u.Amp&&(this.baseState=this.state,this.state=i.BeforeEntity)},t.prototype.stateBeforeDeclaration=function(e){e===u.OpeningSquareBracket?(this.state=i.CDATASequence,this.sequenceIndex=0):this.state=e===u.Dash?i.BeforeComment:i.InDeclaration},t.prototype.stateInDeclaration=function(e){(e===u.Gt||this.fastForwardTo(u.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=i.Text,this.sectionStart=this.index+1)},t.prototype.stateInProcessingInstruction=function(e){(e===u.Gt||this.fastForwardTo(u.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=i.Text,this.sectionStart=this.index+1)},t.prototype.stateBeforeComment=function(e){e===u.Dash?(this.state=i.InCommentLike,this.currentSequence=r.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=i.InDeclaration},t.prototype.stateInSpecialComment=function(e){(e===u.Gt||this.fastForwardTo(u.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=i.Text,this.sectionStart=this.index+1)},t.prototype.stateBeforeSpecialS=function(e){var l=e|32;l===r.ScriptEnd[3]?this.startSpecial(r.ScriptEnd,4):l===r.StyleEnd[3]?this.startSpecial(r.StyleEnd,4):(this.state=i.InTagName,this.stateInTagName(e))},t.prototype.stateBeforeEntity=function(e){this.entityExcess=1,this.entityResult=0,e===u.Number?this.state=i.BeforeNumericEntity:e===u.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=i.InNamedEntity,this.stateInNamedEntity(e))},t.prototype.stateInNamedEntity=function(e){if(this.entityExcess+=1,this.trieIndex=(0,I.determineBranch)(this.entityTrie,this.trieCurrent,this.trieIndex+1,e),this.trieIndex<0){this.emitNamedEntity(),this.index--;return}this.trieCurrent=this.entityTrie[this.trieIndex];var l=this.trieCurrent&I.BinTrieFlags.VALUE_LENGTH;if(l){var b=(l>>14)-1;if(!this.allowLegacyEntity()&&e!==u.Semi)this.trieIndex+=b;else{var y=this.index-this.entityExcess+1;y>this.sectionStart&&this.emitPartial(this.sectionStart,y),this.entityResult=this.trieIndex,this.trieIndex+=b,this.entityExcess=0,this.sectionStart=this.index+1,b===0&&this.emitNamedEntity()}}},t.prototype.emitNamedEntity=function(){if(this.state=this.baseState,this.entityResult!==0){var e=(this.entityTrie[this.entityResult]&I.BinTrieFlags.VALUE_LENGTH)>>14;switch(e){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~I.BinTrieFlags.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}},t.prototype.stateBeforeNumericEntity=function(e){(e|32)===u.LowerX?(this.entityExcess++,this.state=i.InHexEntity):(this.state=i.InNumericEntity,this.stateInNumericEntity(e))},t.prototype.emitNumericEntity=function(e){var l=this.index-this.entityExcess-1,b=l+2+ +(this.state===i.InHexEntity);b!==this.index&&(l>this.sectionStart&&this.emitPartial(this.sectionStart,l),this.sectionStart=this.index+Number(e),this.emitCodePoint((0,I.replaceCodePoint)(this.entityResult))),this.state=this.baseState},t.prototype.stateInNumericEntity=function(e){e===u.Semi?this.emitNumericEntity(!0):h(e)?(this.entityResult=this.entityResult*10+(e-u.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},t.prototype.stateInHexEntity=function(e){e===u.Semi?this.emitNumericEntity(!0):h(e)?(this.entityResult=this.entityResult*16+(e-u.Zero),this.entityExcess++):d(e)?(this.entityResult=this.entityResult*16+((e|32)-u.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},t.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===i.Text||this.baseState===i.InSpecialTag)},t.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===i.Text||this.state===i.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===i.InAttributeValueDq||this.state===i.InAttributeValueSq||this.state===i.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},t.prototype.shouldContinue=function(){return this.index<this.buffer.length+this.offset&&this.running},t.prototype.parse=function(){for(;this.shouldContinue();){var e=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case i.Text:{this.stateText(e);break}case i.SpecialStartSequence:{this.stateSpecialStartSequence(e);break}case i.InSpecialTag:{this.stateInSpecialTag(e);break}case i.CDATASequence:{this.stateCDATASequence(e);break}case i.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(e);break}case i.InAttributeName:{this.stateInAttributeName(e);break}case i.InCommentLike:{this.stateInCommentLike(e);break}case i.InSpecialComment:{this.stateInSpecialComment(e);break}case i.BeforeAttributeName:{this.stateBeforeAttributeName(e);break}case i.InTagName:{this.stateInTagName(e);break}case i.InClosingTagName:{this.stateInClosingTagName(e);break}case i.BeforeTagName:{this.stateBeforeTagName(e);break}case i.AfterAttributeName:{this.stateAfterAttributeName(e);break}case i.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(e);break}case i.BeforeAttributeValue:{this.stateBeforeAttributeValue(e);break}case i.BeforeClosingTagName:{this.stateBeforeClosingTagName(e);break}case i.AfterClosingTagName:{this.stateAfterClosingTagName(e);break}case i.BeforeSpecialS:{this.stateBeforeSpecialS(e);break}case i.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(e);break}case i.InSelfClosingTag:{this.stateInSelfClosingTag(e);break}case i.InDeclaration:{this.stateInDeclaration(e);break}case i.BeforeDeclaration:{this.stateBeforeDeclaration(e);break}case i.BeforeComment:{this.stateBeforeComment(e);break}case i.InProcessingInstruction:{this.stateInProcessingInstruction(e);break}case i.InNamedEntity:{this.stateInNamedEntity(e);break}case i.BeforeEntity:{this.stateBeforeEntity(e);break}case i.InHexEntity:{this.stateInHexEntity(e);break}case i.InNumericEntity:{this.stateInNumericEntity(e);break}default:this.stateBeforeNumericEntity(e)}this.index++}this.cleanup()},t.prototype.finish=function(){this.state===i.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()},t.prototype.handleTrailingData=function(){var e=this.buffer.length+this.offset;this.state===i.InCommentLike?this.currentSequence===r.CdataEnd?this.cbs.oncdata(this.sectionStart,e,0):this.cbs.oncomment(this.sectionStart,e,0):this.state===i.InNumericEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===i.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===i.InTagName||this.state===i.BeforeAttributeName||this.state===i.BeforeAttributeValue||this.state===i.AfterAttributeName||this.state===i.InAttributeName||this.state===i.InAttributeValueSq||this.state===i.InAttributeValueDq||this.state===i.InAttributeValueNq||this.state===i.InClosingTagName||this.cbs.ontext(this.sectionStart,e)},t.prototype.emitPartial=function(e,l){this.baseState!==i.Text&&this.baseState!==i.InSpecialTag?this.cbs.onattribdata(e,l):this.cbs.ontext(e,l)},t.prototype.emitCodePoint=function(e){this.baseState!==i.Text&&this.baseState!==i.InSpecialTag?this.cbs.onattribentity(e):this.cbs.ontextentity(e)},t}();n.default=m},23719:function(_,n,v){var I=this&&this.__createBinding||(Object.create?function(c,s,o,f){f===void 0&&(f=o);var g=Object.getOwnPropertyDescriptor(s,o);(!g||("get"in g?!s.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return s[o]}}),Object.defineProperty(c,f,g)}:function(c,s,o,f){f===void 0&&(f=o),c[f]=s[o]}),u=this&&this.__setModuleDefault||(Object.create?function(c,s){Object.defineProperty(c,"default",{enumerable:!0,value:s})}:function(c,s){c.default=s}),i=this&&this.__importStar||function(c){if(c&&c.__esModule)return c;var s={};if(c!=null)for(var o in c)o!=="default"&&Object.prototype.hasOwnProperty.call(c,o)&&I(s,c,o);return u(s,c),s},S=this&&this.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(n,"__esModule",{value:!0}),n.DomUtils=n.parseFeed=n.getFeed=n.ElementType=n.Tokenizer=n.createDomStream=n.parseDOM=n.parseDocument=n.DefaultHandler=n.DomHandler=n.Parser=void 0;var T=v(50763),h=v(50763);Object.defineProperty(n,"Parser",{enumerable:!0,get:function(){return h.Parser}});var a=v(47915),d=v(47915);Object.defineProperty(n,"DomHandler",{enumerable:!0,get:function(){return d.DomHandler}}),Object.defineProperty(n,"DefaultHandler",{enumerable:!0,get:function(){return d.DomHandler}});function p(c,s){var o=new a.DomHandler(void 0,s);return new T.Parser(o,s).end(c),o.root}n.parseDocument=p;function r(c,s){return p(c,s).children}n.parseDOM=r;function m(c,s,o){var f=new a.DomHandler(c,s,o);return new T.Parser(f,s)}n.createDomStream=m;var t=v(39889);Object.defineProperty(n,"Tokenizer",{enumerable:!0,get:function(){return S(t).default}}),n.ElementType=i(v(99960));var e=v(40998),l=v(40998);Object.defineProperty(n,"getFeed",{enumerable:!0,get:function(){return l.getFeed}});var b={xmlMode:!0};function y(c,s){return s===void 0&&(s=b),(0,e.getFeed)(r(c,s))}n.parseFeed=y,n.DomUtils=i(v(40998))},34921:function(_,n,v){Object.defineProperty(n,"__esModule",{value:!0}),n.getFeed=void 0;var I=v(72178),u=v(55355);function i(e){var l=p(t,e);return l?l.name==="feed"?S(l):T(l):null}n.getFeed=i;function S(e){var l,b=e.children,y={type:"atom",items:(0,u.getElementsByTagName)("entry",b).map(function(o){var f,g=o.children,x={media:d(g)};m(x,"id","id",g),m(x,"title","title",g);var E=(f=p("link",g))===null||f===void 0?void 0:f.attribs.href;E&&(x.link=E);var N=r("summary",g)||r("content",g);N&&(x.description=N);var w=r("updated",g);return w&&(x.pubDate=new Date(w)),x})};m(y,"id","id",b),m(y,"title","title",b);var c=(l=p("link",b))===null||l===void 0?void 0:l.attribs.href;c&&(y.link=c),m(y,"description","subtitle",b);var s=r("updated",b);return s&&(y.updated=new Date(s)),m(y,"author","email",b,!0),y}function T(e){var l,b,y=(b=(l=p("channel",e.children))===null||l===void 0?void 0:l.children)!==null&&b!==void 0?b:[],c={type:e.name.substr(0,3),id:"",items:(0,u.getElementsByTagName)("item",e.children).map(function(o){var f=o.children,g={media:d(f)};m(g,"id","guid",f),m(g,"title","title",f),m(g,"link","link",f),m(g,"description","description",f);var x=r("pubDate",f)||r("dc:date",f);return x&&(g.pubDate=new Date(x)),g})};m(c,"title","title",y),m(c,"link","link",y),m(c,"description","description",y);var s=r("lastBuildDate",y);return s&&(c.updated=new Date(s)),m(c,"author","managingEditor",y,!0),c}var h=["url","type","lang"],a=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function d(e){return(0,u.getElementsByTagName)("media:content",e).map(function(l){for(var b=l.attribs,y={medium:b.medium,isDefault:!!b.isDefault},c=0,s=h;c<s.length;c++){var o=s[c];b[o]&&(y[o]=b[o])}for(var f=0,g=a;f<g.length;f++){var o=g[f];b[o]&&(y[o]=parseInt(b[o],10))}return b.expression&&(y.expression=b.expression),y})}function p(e,l){return(0,u.getElementsByTagName)(e,l,!0,1)[0]}function r(e,l,b){return b===void 0&&(b=!1),(0,I.textContent)((0,u.getElementsByTagName)(e,l,b,1)).trim()}function m(e,l,b,y,c){c===void 0&&(c=!1);var s=r(b,y,c);s&&(e[l]=s)}function t(e){return e==="rss"||e==="feed"||e==="rdf:RDF"}},99256:function(_,n,v){Object.defineProperty(n,"__esModule",{value:!0}),n.uniqueSort=n.compareDocumentPosition=n.DocumentPosition=n.removeSubsets=void 0;var I=v(47915);function u(h){for(var a=h.length;--a>=0;){var d=h[a];if(a>0&&h.lastIndexOf(d,a-1)>=0){h.splice(a,1);continue}for(var p=d.parent;p;p=p.parent)if(h.includes(p)){h.splice(a,1);break}}return h}n.removeSubsets=u;var i;(function(h){h[h.DISCONNECTED=1]="DISCONNECTED",h[h.PRECEDING=2]="PRECEDING",h[h.FOLLOWING=4]="FOLLOWING",h[h.CONTAINS=8]="CONTAINS",h[h.CONTAINED_BY=16]="CONTAINED_BY"})(i=n.DocumentPosition||(n.DocumentPosition={}));function S(h,a){var d=[],p=[];if(h===a)return 0;for(var r=(0,I.hasChildren)(h)?h:h.parent;r;)d.unshift(r),r=r.parent;for(r=(0,I.hasChildren)(a)?a:a.parent;r;)p.unshift(r),r=r.parent;for(var m=Math.min(d.length,p.length),t=0;t<m&&d[t]===p[t];)t++;if(t===0)return i.DISCONNECTED;var e=d[t-1],l=e.children,b=d[t],y=p[t];return l.indexOf(b)>l.indexOf(y)?e===a?i.FOLLOWING|i.CONTAINED_BY:i.FOLLOWING:e===h?i.PRECEDING|i.CONTAINS:i.PRECEDING}n.compareDocumentPosition=S;function T(h){return h=h.filter(function(a,d,p){return!p.includes(a,d+1)}),h.sort(function(a,d){var p=S(a,d);return p&i.PRECEDING?-1:p&i.FOLLOWING?1:0}),h}n.uniqueSort=T},40998:function(_,n,v){var I=this&&this.__createBinding||(Object.create?function(S,T,h,a){a===void 0&&(a=h);var d=Object.getOwnPropertyDescriptor(T,h);(!d||("get"in d?!T.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return T[h]}}),Object.defineProperty(S,a,d)}:function(S,T,h,a){a===void 0&&(a=h),S[a]=T[h]}),u=this&&this.__exportStar||function(S,T){for(var h in S)h!=="default"&&!Object.prototype.hasOwnProperty.call(T,h)&&I(T,S,h)};Object.defineProperty(n,"__esModule",{value:!0}),n.hasChildren=n.isDocument=n.isComment=n.isText=n.isCDATA=n.isTag=void 0,u(v(72178),n),u(v(61699),n),u(v(26167),n),u(v(46754),n),u(v(55355),n),u(v(99256),n),u(v(34921),n);var i=v(47915);Object.defineProperty(n,"isTag",{enumerable:!0,get:function(){return i.isTag}}),Object.defineProperty(n,"isCDATA",{enumerable:!0,get:function(){return i.isCDATA}}),Object.defineProperty(n,"isText",{enumerable:!0,get:function(){return i.isText}}),Object.defineProperty(n,"isComment",{enumerable:!0,get:function(){return i.isComment}}),Object.defineProperty(n,"isDocument",{enumerable:!0,get:function(){return i.isDocument}}),Object.defineProperty(n,"hasChildren",{enumerable:!0,get:function(){return i.hasChildren}})},55355:function(_,n,v){Object.defineProperty(n,"__esModule",{value:!0}),n.getElementsByTagType=n.getElementsByTagName=n.getElementById=n.getElements=n.testElement=void 0;var I=v(47915),u=v(46754),i={tag_name:function(t){return typeof t=="function"?function(e){return(0,I.isTag)(e)&&t(e.name)}:t==="*"?I.isTag:function(e){return(0,I.isTag)(e)&&e.name===t}},tag_type:function(t){return typeof t=="function"?function(e){return t(e.type)}:function(e){return e.type===t}},tag_contains:function(t){return typeof t=="function"?function(e){return(0,I.isText)(e)&&t(e.data)}:function(e){return(0,I.isText)(e)&&e.data===t}}};function S(t,e){return typeof e=="function"?function(l){return(0,I.isTag)(l)&&e(l.attribs[t])}:function(l){return(0,I.isTag)(l)&&l.attribs[t]===e}}function T(t,e){return function(l){return t(l)||e(l)}}function h(t){var e=Object.keys(t).map(function(l){var b=t[l];return Object.prototype.hasOwnProperty.call(i,l)?i[l](b):S(l,b)});return e.length===0?null:e.reduce(T)}function a(t,e){var l=h(t);return l?l(e):!0}n.testElement=a;function d(t,e,l,b){b===void 0&&(b=1/0);var y=h(t);return y?(0,u.filter)(y,e,l,b):[]}n.getElements=d;function p(t,e,l){return l===void 0&&(l=!0),Array.isArray(e)||(e=[e]),(0,u.findOne)(S("id",t),e,l)}n.getElementById=p;function r(t,e,l,b){return l===void 0&&(l=!0),b===void 0&&(b=1/0),(0,u.filter)(i.tag_name(t),e,l,b)}n.getElementsByTagName=r;function m(t,e,l,b){return l===void 0&&(l=!0),b===void 0&&(b=1/0),(0,u.filter)(i.tag_type(t),e,l,b)}n.getElementsByTagType=m},26167:function(_,n){Object.defineProperty(n,"__esModule",{value:!0}),n.prepend=n.prependChild=n.append=n.appendChild=n.replaceElement=n.removeElement=void 0;function v(h){if(h.prev&&(h.prev.next=h.next),h.next&&(h.next.prev=h.prev),h.parent){var a=h.parent.children,d=a.lastIndexOf(h);d>=0&&a.splice(d,1)}h.next=null,h.prev=null,h.parent=null}n.removeElement=v;function I(h,a){var d=a.prev=h.prev;d&&(d.next=a);var p=a.next=h.next;p&&(p.prev=a);var r=a.parent=h.parent;if(r){var m=r.children;m[m.lastIndexOf(h)]=a,h.parent=null}}n.replaceElement=I;function u(h,a){if(v(a),a.next=null,a.parent=h,h.children.push(a)>1){var d=h.children[h.children.length-2];d.next=a,a.prev=d}else a.prev=null}n.appendChild=u;function i(h,a){v(a);var d=h.parent,p=h.next;if(a.next=p,a.prev=h,h.next=a,a.parent=d,p){if(p.prev=a,d){var r=d.children;r.splice(r.lastIndexOf(p),0,a)}}else d&&d.children.push(a)}n.append=i;function S(h,a){if(v(a),a.parent=h,a.prev=null,h.children.unshift(a)!==1){var d=h.children[1];d.prev=a,a.next=d}else a.next=null}n.prependChild=S;function T(h,a){v(a);var d=h.parent;if(d){var p=d.children;p.splice(p.indexOf(h),0,a)}h.prev&&(h.prev.next=a),a.parent=d,a.prev=h.prev,a.next=h,h.prev=a}n.prepend=T},46754:function(_,n,v){Object.defineProperty(n,"__esModule",{value:!0}),n.findAll=n.existsOne=n.findOne=n.findOneChild=n.find=n.filter=void 0;var I=v(47915);function u(d,p,r,m){return r===void 0&&(r=!0),m===void 0&&(m=1/0),i(d,Array.isArray(p)?p:[p],r,m)}n.filter=u;function i(d,p,r,m){for(var t=[],e=[p],l=[0];;){if(l[0]>=e[0].length){if(l.length===1)return t;e.shift(),l.shift();continue}var b=e[0][l[0]++];if(d(b)&&(t.push(b),--m<=0))return t;r&&(0,I.hasChildren)(b)&&b.children.length>0&&(l.unshift(0),e.unshift(b.children))}}n.find=i;function S(d,p){return p.find(d)}n.findOneChild=S;function T(d,p,r){r===void 0&&(r=!0);for(var m=null,t=0;t<p.length&&!m;t++){var e=p[t];if((0,I.isTag)(e))d(e)?m=e:r&&e.children.length>0&&(m=T(d,e.children,!0));else continue}return m}n.findOne=T;function h(d,p){return p.some(function(r){return(0,I.isTag)(r)&&(d(r)||h(d,r.children))})}n.existsOne=h;function a(d,p){for(var r=[],m=[p],t=[0];;){if(t[0]>=m[0].length){if(m.length===1)return r;m.shift(),t.shift();continue}var e=m[0][t[0]++];(0,I.isTag)(e)&&(d(e)&&r.push(e),e.children.length>0&&(t.unshift(0),m.unshift(e.children)))}}n.findAll=a},72178:function(_,n,v){var I=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(n,"__esModule",{value:!0}),n.innerText=n.textContent=n.getText=n.getInnerHTML=n.getOuterHTML=void 0;var u=v(47915),i=I(v(97220)),S=v(99960);function T(r,m){return(0,i.default)(r,m)}n.getOuterHTML=T;function h(r,m){return(0,u.hasChildren)(r)?r.children.map(function(t){return T(t,m)}).join(""):""}n.getInnerHTML=h;function a(r){return Array.isArray(r)?r.map(a).join(""):(0,u.isTag)(r)?r.name==="br"?`
2
2
  `:a(r.children):(0,u.isCDATA)(r)?a(r.children):(0,u.isText)(r)?r.data:""}n.getText=a;function d(r){return Array.isArray(r)?r.map(d).join(""):(0,u.hasChildren)(r)&&!(0,u.isComment)(r)?d(r.children):(0,u.isText)(r)?r.data:""}n.textContent=d;function p(r){return Array.isArray(r)?r.map(p).join(""):(0,u.hasChildren)(r)&&(r.type===S.ElementType.Tag||(0,u.isCDATA)(r))?p(r.children):(0,u.isText)(r)?r.data:""}n.innerText=p},61699:function(_,n,v){Object.defineProperty(n,"__esModule",{value:!0}),n.prevElementSibling=n.nextElementSibling=n.getName=n.hasAttrib=n.getAttributeValue=n.getSiblings=n.getParent=n.getChildren=void 0;var I=v(47915);function u(r){return(0,I.hasChildren)(r)?r.children:[]}n.getChildren=u;function i(r){return r.parent||null}n.getParent=i;function S(r){var m,t,e=i(r);if(e!=null)return u(e);for(var l=[r],b=r.prev,y=r.next;b!=null;)l.unshift(b),m=b,b=m.prev;for(;y!=null;)l.push(y),t=y,y=t.next;return l}n.getSiblings=S;function T(r,m){var t;return(t=r.attribs)===null||t===void 0?void 0:t[m]}n.getAttributeValue=T;function h(r,m){return r.attribs!=null&&Object.prototype.hasOwnProperty.call(r.attribs,m)&&r.attribs[m]!=null}n.hasAttrib=h;function a(r){return r.name}n.getName=a;function d(r){for(var m,t=r.next;t!==null&&!(0,I.isTag)(t);)m=t,t=m.next;return t}n.nextElementSibling=d;function p(r){for(var m,t=r.prev;t!==null&&!(0,I.isTag)(t);)m=t,t=m.prev;return t}n.prevElementSibling=p}}]);