otomate 0.0.10 → 0.2.0

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,16 +1,16 @@
1
- (function(le,Ae){typeof exports=="object"&&typeof module<"u"?Ae(exports):typeof define=="function"&&define.amd?define(["exports"],Ae):(le=typeof globalThis<"u"?globalThis:le||self,Ae(le.otomate={}))})(this,(function(le){"use strict";function Ae(e){return"children"in e&&Array.isArray(e.children)}function On(e){return"value"in e&&typeof e.value=="string"}function Zt(e){return e.type==="text"}function Cd(...e){return{type:"root",children:e}}function xd(...e){return{type:"paragraph",children:e}}function Nd(e,...t){return{type:"heading",depth:e,children:t}}function Id(...e){return{type:"blockquote",children:e}}function vd(e,...t){return{type:"list",ordered:e,children:t}}function Od(...e){return{type:"listItem",children:e}}function Ld(e,t){return{type:"codeBlock",value:e,lang:t}}function Rd(...e){return{type:"table",children:e}}function Pd(e,...t){return{type:"tableRow",isHeader:e||void 0,children:t}}function Dd(...e){return{type:"tableCell",children:e}}function Md(){return{type:"thematicBreak"}}function Bd(...e){return{type:"div",children:e}}function Fd(e,t){const n={type:"text",value:e};return t&&t.length>0&&(n.marks=t),n}function Ud(){return{type:"break"}}function Hd(e,t,n){const r={type:"image",url:e};return t!==void 0&&(r.alt=t),n!==void 0&&(r.title=n),r}function zd(){return{type:"strong"}}function $d(){return{type:"emphasis"}}function jd(){return{type:"strikethrough"}}function qd(){return{type:"underline"}}function Yd(){return{type:"code"}}function Wd(e,t){const n={url:e};return t!==void 0&&(n.title=t),{type:"link",attrs:n}}function Gd(e){return e?{type:"highlight",attrs:{color:e}}:{type:"highlight"}}function Vd(e,...t){return e.classes=t,e}function Kd(e,t){return e.data={...e.data,...t},e}function Xd(e,t){return e.id=t,e}function fi(e,t,n=null,r=0){if(t(e,n,r)!==!1&&Ae(e))for(let s=0;s<e.children.length;s++)fi(e.children[s],t,e,s)}function pi(e){let t=1;if(Ae(e))for(const n of e.children)t+=pi(n);return t}function Qd(e){const t=[];return fi(e,n=>{t.push(n)}),t}function dn(e,t){if(e===t)return[];if(!Ae(e))return null;for(let n=0;n<e.children.length;n++){const r=dn(e.children[n],t);if(r!==null)return[n,...r]}return null}function Zd(e,t){let n=e;for(const r of t){if(!Ae(n)||r<0||r>=n.children.length)return null;n=n.children[r]}return n}const Jd=2166136261,eh=16777619;function lr(e){let t=Jd;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=Math.imul(t,eh)>>>0;return t}function th(e){return!e||e.length===0?"":[...e].sort((n,r)=>n.type.localeCompare(r.type)).map(n=>n.attrs?`${n.type}:${JSON.stringify(n.attrs,Object.keys(n.attrs).sort())}`:n.type).join("|")}const mi=new WeakMap;function gi(e){const t=mi.get(e);if(t!==void 0)return t;let n;const r=rh(e);if(Zt(e)){const i=e;n=lr(`text:${i.value}:${th(i.marks)}:${r}`)}else if(On(e)){const i=ih(e);n=lr(`${e.type}:${i}:${r}`)}else if(Ae(e)){const i=e.children.map(gi),s=sh(e);n=lr(`${e.type}:${s}:${r}:[${i.join(",")}]`)}else n=lr(`${e.type}:${ah(e)}:${r}`);return mi.set(e,n),n}function nh(e){mi.delete(e)}function rh(e){return!e.classes||e.classes.length===0?"":`cls:${[...e.classes].sort().join(",")}`}function ih(e){const t=[e.value];return"lang"in e&&e.lang&&t.push(`lang:${e.lang}`),"meta"in e&&e.meta&&t.push(`meta:${e.meta}`),"displayMode"in e&&t.push(`dm:${e.displayMode}`),"identifier"in e&&t.push(`id:${e.identifier}`),t.join(";")}function sh(e){const t=[];return"depth"in e&&t.push(`d:${e.depth}`),"ordered"in e&&t.push(`o:${e.ordered}`),"start"in e&&e.start!==void 0&&t.push(`s:${e.start}`),"checked"in e&&e.checked!==void 0&&t.push(`c:${e.checked}`),"isHeader"in e&&e.isHeader&&t.push("h"),"colspan"in e&&e.colspan&&t.push(`cs:${e.colspan}`),"rowspan"in e&&e.rowspan&&t.push(`rs:${e.rowspan}`),"align"in e&&e.align&&t.push(`a:${e.align}`),t.join(";")}function ah(e){const t=[];return"url"in e&&t.push(`u:${e.url}`),"alt"in e&&e.alt&&t.push(`a:${e.alt}`),"title"in e&&e.title&&t.push(`t:${e.title}`),"identifier"in e&&t.push(`id:${e.identifier}`),t.join(";")}function Aa(e){const t=new Map;function n(r){const i=gi(r),s=pi(r),o={node:r,hash:i,size:s},a=t.get(i);if(a?a.push(o):t.set(i,[o]),Ae(r))for(const u of r.children)n(u)}return n(e),t}function Sa(e,t,n,r){if(n.set(e,t),r.set(t,e),Ae(e)&&Ae(t)){const i=e,s=t;for(let o=0;o<i.children.length&&o<s.children.length;o++)Sa(i.children[o],s.children[o],n,r)}}function oh(e,t){const n=new Map,r=new Map,i=Aa(e),s=Aa(t),o=[];for(const[a,u]of i){const c=s.get(a);if(c)if(u.length===1&&c.length===1)o.push({oldNode:u[0].node,newNode:c[0].node,size:u[0].size});else for(const d of u)for(const h of c)o.push({oldNode:d.node,newNode:h.node,size:d.size})}o.sort((a,u)=>u.size-a.size);for(const{oldNode:a,newNode:u}of o)n.has(a)||r.has(u)||Sa(a,u,n,r);return{forward:n,reverse:r}}function uh(e,t,n){const r=bi(e),i=new Set(bi(t));let s=0;for(const a of r){const u=n.get(a);u&&i.has(u)&&s++}const o=r.length+i.size;return o===0?1:2*s/o}function bi(e){const t=[];if(Ae(e))for(const n of e.children)t.push(n),t.push(...bi(n));return t}function lh(e){const t=new Map;function n(r,i){if(i&&t.set(r,i),Ae(r))for(const s of r.children)n(s,r)}return n(e,null),t}function ch(e,t){const n=[];function r(i){if(Ae(i)){for(const s of i.children)r(s);t.has(i)||n.push(i)}}return r(e),n}function dh(e,t){const n=new Map;function r(i){if(!t.has(i)){const s=n.get(i.type);s?s.push(i):n.set(i.type,[i])}if(Ae(i))for(const s of i.children)r(s)}return r(e),n}function hh(e,t,n,r,i=.5){const s=lh(t),o=dh(t,r),a=ch(e,n);for(const u of a){if(n.has(u))continue;const c=o.get(u.type);if(!c||c.length===0)continue;let d=null,h=-1;for(const b of c){if(r.has(b)||!Ae(b))continue;const f=uh(u,b,n);let m=0;const g=fh(u,e,n);g&&s.get(b)===g&&(m=.3);const _=f+m;_>h&&(h=_,d=b)}d&&h>=i&&(n.set(u,d),r.set(d,u),xa(o,u.type,d))}ph(e,n,r,o)}function fh(e,t,n){const r=Ca(t,e);if(r)return n.get(r)}function Ca(e,t){if(!Ae(e))return null;const n=e;for(const r of n.children){if(r===t)return e;const i=Ca(r,t);if(i)return i}return null}function ph(e,t,n,r){for(const[i,s]of t){if(!Ae(i)||!Ae(s))continue;const o=i,a=s,u=[],c=[];for(let h=0;h<o.children.length;h++)t.has(o.children[h])||u.push({node:o.children[h],index:h});for(let h=0;h<a.children.length;h++)n.has(a.children[h])||c.push({node:a.children[h],index:h});const d=new Set;for(const h of u){const b=c.find(g=>g.index===h.index&&g.node.type===h.node.type&&!d.has(g.index));if(b){Ei(h.node,b.node,t,n,r),d.add(b.index);continue}let f=1/0,m=null;for(const g of c){if(d.has(g.index)||g.node.type!==h.node.type)continue;const _=Math.abs(g.index-h.index);_<f&&(f=_,m=g)}m&&(Ei(h.node,m.node,t,n,r),d.add(m.index))}}}function Ei(e,t,n,r,i){if(n.set(e,t),r.set(t,e),xa(i,t.type,t),Ae(e)&&Ae(t)){const s=e,o=t,a=new Set;for(let u=0;u<s.children.length;u++){if(n.has(s.children[u]))continue;!a.has(u)&&u<o.children.length&&!r.has(o.children[u])&&o.children[u].type===s.children[u].type&&(Ei(s.children[u],o.children[u],n,r,i),a.add(u))}}}function xa(e,t,n){const r=e.get(t);if(r){const i=r.indexOf(n);i!==-1&&r.splice(i,1)}}function mh(e){if(e.length===0)return[];const t=e.match(/\S+\s*/g);if(!t)return[e];const n=e.search(/\S/);return n>0?[e.slice(0,n),...t]:t}function gh(e){return[...e]}function bh(e,t){const n=e.length,r=t.length;if(n===0&&r===0)return[];if(n===0)return t.map(b=>({type:"insert",value:b}));if(r===0)return e.map(b=>({type:"delete",value:b}));const i=n+r,s=2*i+1,o=[],a=new Array(s).fill(0);let u=-1;for(let b=0;b<=i;b++){o.push([...a]);for(let f=-b;f<=b;f+=2){const m=f+i;let g;f===-b||f!==b&&a[m-1]<a[m+1]?g=a[m+1]:g=a[m-1]+1;let _=g-f;for(;g<n&&_<r&&e[g]===t[_];)g++,_++;if(a[m]=g,g>=n&&_>=r){u=b;break}}if(u>=0)break}const c=[];let d=n,h=r;for(let b=u;b>0;b--){const f=o[b],m=d-h,g=m+i;let _;m===-b||m!==b&&f[g-1]<f[g+1]?_=m+1:_=m-1;const p=_+i,y=f[p],C=y-_;for(;d>y&&h>C;)d--,h--,c.push({type:"equal",value:e[d]});m>_?(d--,c.push({type:"delete",value:e[d]})):(h--,c.push({type:"insert",value:t[h]}))}for(;d>0&&h>0;)d--,h--,c.push({type:"equal",value:e[d]});return c.reverse(),c}function yi(e,t,n="word"){if(e===t)return[{type:"equal",value:e,offset:0}];const r=n==="word"?mh:gh,i=r(e),s=r(t),o=bh(i,s),a=[];let u=0,c=0,d=0;for(;d<o.length;){const h=o[d].type;let b="";for(;d<o.length&&o[d].type===h;)b+=o[d].value,d++;switch(h){case"equal":a.push({type:"equal",value:b,offset:u}),u+=b.length,c+=b.length;break;case"delete":a.push({type:"delete",value:b,offset:u}),u+=b.length;break;case"insert":a.push({type:"insert",value:b,offset:c}),c+=b.length;break}}return a}function Eh(e,t){const n=e??[],r=t??[];if(n.length!==r.length)return!1;const i=[...n].sort((o,a)=>o.type.localeCompare(a.type)),s=[...r].sort((o,a)=>o.type.localeCompare(a.type));for(let o=0;o<i.length;o++)if(i[o].type!==s[o].type||JSON.stringify(i[o].attrs)!==JSON.stringify(s[o].attrs))return!1;return!0}function Na(e){const t={};for(const[n,r]of Object.entries(e))["type","children","value","data","position","id","marks"].includes(n)||r!==void 0&&(t[n]=r);return t}function yh(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n)if(JSON.stringify(e[i])!==JSON.stringify(t[i]))return!1;return!0}function Th(e,t,n,r,i={}){const s=[],o=i.textGranularity??"word";for(const[u,c]of n){if(u===e&&c===t)continue;const d=dn(e,u),h=dn(t,c);if(!d||!h)continue;const b=Na(u),f=Na(c);if(yh(b,f)||s.push({type:"update",path:h,properties:{old:b,new:f}}),Zt(u)&&Zt(c)){const m=u,g=c;if(!Eh(m.marks,g.marks)){const _=m.marks??[],p=g.marks??[];s.push({type:"update",path:h,properties:{old:{marks:_},new:{marks:p}}})}}if(Zt(u)&&Zt(c)){const m=u,g=c;m.value!==g.value&&s.push({type:"updateText",path:h,changes:yi(m.value,g.value,o)})}else if(On(u)&&On(c)){const m=u.value,g=c.value;m!==g&&s.push({type:"updateText",path:h,changes:yi(m,g,o)})}if(d.length>0&&h.length>0){const m=d.slice(0,-1),g=h.slice(0,-1),_=va(e,m),p=va(t,g);if(_&&p){const y=n.get(_);if(y&&y!==p)s.push({type:"move",from:d,to:h});else if(y===p){const C=d[d.length-1],O=h[h.length-1];C!==O&&s.push({type:"move",from:d,to:h})}}}}Ia(e,n,u=>{const c=dn(e,u);c&&s.push({type:"delete",path:c,node:Ti(u)})}),Ia(t,r,u=>{const c=dn(t,u);c&&s.push({type:"insert",path:c,node:Ti(u)})});const a={nodesAdded:s.filter(u=>u.type==="insert").length,nodesDeleted:s.filter(u=>u.type==="delete").length,nodesMoved:s.filter(u=>u.type==="move").length,nodesModified:s.filter(u=>u.type==="update").length,textChanges:s.filter(u=>u.type==="updateText").length};return{version:1,operations:s,stats:a}}function Ia(e,t,n){function r(i){if(!t.has(i)){n(i);return}if(Ae(i))for(const s of i.children)r(s)}if(Ae(e))for(const i of e.children)r(i)}function va(e,t){let n=e;for(const r of t){if(!Ae(n))return null;const i=n;if(r<0||r>=i.children.length)return null;n=i.children[r]}return n}function Ti(e){const t={};for(const[n,r]of Object.entries(e))n==="position"||n==="id"||(n==="children"&&Array.isArray(r)?t.children=r.map(Ti):t[n]=r);return t}function _h(e,t,n={}){const{diceThreshold:r=.5}=n,{forward:i,reverse:s}=oh(e,t);return i.has(e)||(i.set(e,t),s.set(t,e)),hh(e,t,i,s,r),Th(e,t,i,s,n)}function $k(){}class Ln{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Ln.prototype.normal={},Ln.prototype.property={},Ln.prototype.space=void 0;function Oa(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Ln(n,r,t)}function Rn(e){return e.toLowerCase()}class Je{constructor(t,n){this.attribute=n,this.property=t}}Je.prototype.attribute="",Je.prototype.booleanish=!1,Je.prototype.boolean=!1,Je.prototype.commaOrSpaceSeparated=!1,Je.prototype.commaSeparated=!1,Je.prototype.defined=!1,Je.prototype.mustUseProperty=!1,Je.prototype.number=!1,Je.prototype.overloadedBoolean=!1,Je.prototype.property="",Je.prototype.spaceSeparated=!1,Je.prototype.space=void 0;let kh=0;const me=Jt(),Me=Jt(),_i=Jt(),ee=Jt(),Ce=Jt(),hn=Jt(),st=Jt();function Jt(){return 2**++kh}const ki=Object.freeze(Object.defineProperty({__proto__:null,boolean:me,booleanish:Me,commaOrSpaceSeparated:st,commaSeparated:hn,number:ee,overloadedBoolean:_i,spaceSeparated:Ce},Symbol.toStringTag,{value:"Module"})),wi=Object.keys(ki);class Ai extends Je{constructor(t,n,r,i){let s=-1;if(super(t,n),La(this,"space",i),typeof r=="number")for(;++s<wi.length;){const o=wi[s];La(this,wi[s],(r&ki[o])===ki[o])}}}Ai.prototype.defined=!0;function La(e,t,n){n&&(e[t]=n)}function fn(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const s=new Ai(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(s.mustUseProperty=!0),t[r]=s,n[Rn(r)]=r,n[Rn(s.attribute)]=r}return new Ln(t,n,e.space)}const Ra=fn({properties:{ariaActiveDescendant:null,ariaAtomic:Me,ariaAutoComplete:null,ariaBusy:Me,ariaChecked:Me,ariaColCount:ee,ariaColIndex:ee,ariaColSpan:ee,ariaControls:Ce,ariaCurrent:null,ariaDescribedBy:Ce,ariaDetails:null,ariaDisabled:Me,ariaDropEffect:Ce,ariaErrorMessage:null,ariaExpanded:Me,ariaFlowTo:Ce,ariaGrabbed:Me,ariaHasPopup:null,ariaHidden:Me,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ce,ariaLevel:ee,ariaLive:null,ariaModal:Me,ariaMultiLine:Me,ariaMultiSelectable:Me,ariaOrientation:null,ariaOwns:Ce,ariaPlaceholder:null,ariaPosInSet:ee,ariaPressed:Me,ariaReadOnly:Me,ariaRelevant:null,ariaRequired:Me,ariaRoleDescription:Ce,ariaRowCount:ee,ariaRowIndex:ee,ariaRowSpan:ee,ariaSelected:Me,ariaSetSize:ee,ariaSort:null,ariaValueMax:ee,ariaValueMin:ee,ariaValueNow:ee,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Pa(e,t){return t in e?e[t]:t}function Da(e,t){return Pa(e,t.toLowerCase())}const wh=fn({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:hn,acceptCharset:Ce,accessKey:Ce,action:null,allow:null,allowFullScreen:me,allowPaymentRequest:me,allowUserMedia:me,alt:null,as:null,async:me,autoCapitalize:null,autoComplete:Ce,autoFocus:me,autoPlay:me,blocking:Ce,capture:null,charSet:null,checked:me,cite:null,className:Ce,cols:ee,colSpan:null,content:null,contentEditable:Me,controls:me,controlsList:Ce,coords:ee|hn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:me,defer:me,dir:null,dirName:null,disabled:me,download:_i,draggable:Me,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:me,formTarget:null,headers:Ce,height:ee,hidden:_i,high:ee,href:null,hrefLang:null,htmlFor:Ce,httpEquiv:Ce,id:null,imageSizes:null,imageSrcSet:null,inert:me,inputMode:null,integrity:null,is:null,isMap:me,itemId:null,itemProp:Ce,itemRef:Ce,itemScope:me,itemType:Ce,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:me,low:ee,manifest:null,max:null,maxLength:ee,media:null,method:null,min:null,minLength:ee,multiple:me,muted:me,name:null,nonce:null,noModule:me,noValidate:me,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:me,optimum:ee,pattern:null,ping:Ce,placeholder:null,playsInline:me,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:me,referrerPolicy:null,rel:Ce,required:me,reversed:me,rows:ee,rowSpan:ee,sandbox:Ce,scope:null,scoped:me,seamless:me,selected:me,shadowRootClonable:me,shadowRootDelegatesFocus:me,shadowRootMode:null,shape:null,size:ee,sizes:null,slot:null,span:ee,spellCheck:Me,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ee,step:null,style:null,tabIndex:ee,target:null,title:null,translate:null,type:null,typeMustMatch:me,useMap:null,value:Me,width:ee,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ce,axis:null,background:null,bgColor:null,border:ee,borderColor:null,bottomMargin:ee,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:me,declare:me,event:null,face:null,frame:null,frameBorder:null,hSpace:ee,leftMargin:ee,link:null,longDesc:null,lowSrc:null,marginHeight:ee,marginWidth:ee,noResize:me,noHref:me,noShade:me,noWrap:me,object:null,profile:null,prompt:null,rev:null,rightMargin:ee,rules:null,scheme:null,scrolling:Me,standby:null,summary:null,text:null,topMargin:ee,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ee,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:me,disableRemotePlayback:me,prefix:null,property:null,results:ee,security:null,unselectable:null},space:"html",transform:Da}),Ah=fn({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:st,accentHeight:ee,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ee,amplitude:ee,arabicForm:null,ascent:ee,attributeName:null,attributeType:null,azimuth:ee,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ee,by:null,calcMode:null,capHeight:ee,className:Ce,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ee,diffuseConstant:ee,direction:null,display:null,dur:null,divisor:ee,dominantBaseline:null,download:me,dx:null,dy:null,edgeMode:null,editable:null,elevation:ee,enableBackground:null,end:null,event:null,exponent:ee,externalResourcesRequired:null,fill:null,fillOpacity:ee,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:hn,g2:hn,glyphName:hn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ee,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ee,horizOriginX:ee,horizOriginY:ee,id:null,ideographic:ee,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ee,k:ee,k1:ee,k2:ee,k3:ee,k4:ee,kernelMatrix:st,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ee,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ee,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ee,overlineThickness:ee,paintOrder:null,panose1:null,path:null,pathLength:ee,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ce,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ee,pointsAtY:ee,pointsAtZ:ee,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:st,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:st,rev:st,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:st,requiredFeatures:st,requiredFonts:st,requiredFormats:st,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ee,specularExponent:ee,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ee,strikethroughThickness:ee,string:null,stroke:null,strokeDashArray:st,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ee,strokeOpacity:ee,strokeWidth:null,style:null,surfaceScale:ee,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:st,tabIndex:ee,tableValues:null,target:null,targetX:ee,targetY:ee,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:st,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ee,underlineThickness:ee,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ee,values:null,vAlphabetic:ee,vMathematical:ee,vectorEffect:null,vHanging:ee,vIdeographic:ee,version:null,vertAdvY:ee,vertOriginX:ee,vertOriginY:ee,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ee,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Pa}),Ma=fn({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Ba=fn({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Da}),Fa=fn({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Sh=/[A-Z]/g,Ua=/-[a-z]/g,Ch=/^data[-\w.:]+$/i;function Si(e,t){const n=Rn(t);let r=t,i=Je;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Ch.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(Ua,Nh);r="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!Ua.test(s)){let o=s.replace(Sh,xh);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=Ai}return new i(r,t)}function xh(e){return"-"+e.toLowerCase()}function Nh(e){return e.charAt(1).toUpperCase()}const cr=Oa([Ra,wh,Ma,Ba,Fa],"html"),Pn=Oa([Ra,Ah,Ma,Ba,Fa],"svg");function Ha(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,s=!1;for(;!s;){r===-1&&(r=n.length,s=!0);const o=n.slice(i,r).trim();(o||!s)&&t.push(o),i=r+1,r=n.indexOf(",",i)}return t}function Ih(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const za=/[#.]/g;function vh(e,t){const n=e||"",r={};let i=0,s,o;for(;i<n.length;){za.lastIndex=i;const a=za.exec(n),u=n.slice(i,a?a.index:n.length);u&&(s?s==="#"?r.id=u:Array.isArray(r.className)?r.className.push(u):r.className=[u]:o=u,i+=u.length),a&&(s=a[0],i++)}return{type:"element",tagName:o||t||"div",properties:r,children:[]}}function $a(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Oh(e){return e.join(" ").trim()}function ja(e,t,n){const r=n?Dh(n):void 0;function i(s,o,...a){let u;if(s==null){u={type:"root",children:[]};const c=o;a.unshift(c)}else{u=vh(s,t);const c=u.tagName.toLowerCase(),d=r?r.get(c):void 0;if(u.tagName=d||c,Lh(o))a.unshift(o);else for(const[h,b]of Object.entries(o))Rh(e,u.properties,h,b)}for(const c of a)Ci(u.children,c);return u.type==="element"&&u.tagName==="template"&&(u.content={type:"root",children:u.children},u.children=[]),u}return i}function Lh(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const i=t[r];if(i&&typeof i=="object"){if(!Array.isArray(i))return!0;const s=i;for(const o of s)if(typeof o!="number"&&typeof o!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function Rh(e,t,n,r){const i=Si(e,n);let s;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;s=r}else typeof r=="boolean"?s=r:typeof r=="string"?i.spaceSeparated?s=$a(r):i.commaSeparated?s=Ha(r):i.commaOrSpaceSeparated?s=$a(Ha(r).join(" ")):s=qa(i,i.property,r):Array.isArray(r)?s=[...r]:s=i.property==="style"?Ph(r):String(r);if(Array.isArray(s)){const o=[];for(const a of s)o.push(qa(i,i.property,a));s=o}i.property==="className"&&Array.isArray(t.className)&&(s=t.className.concat(s)),t[i.property]=s}}function Ci(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)Ci(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?Ci(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function qa(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Rn(n)===Rn(t)))return!0}return n}function Ph(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function Dh(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const Mh=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],Bh=ja(cr,"div"),Fh=ja(Pn,"g",Mh);function Uh(e){const t=String(e),n=[];return{toOffset:i,toPoint:r};function r(s){if(typeof s=="number"&&s>-1&&s<=t.length){let o=0;for(;;){let a=n[o];if(a===void 0){const u=Ya(t,n[o-1]);a=u===-1?t.length+1:u+1,n[o]=a}if(a>s)return{line:o+1,column:s-(o>0?n[o-1]:0)+1,offset:s};o++}}}function i(s){if(s&&typeof s.line=="number"&&typeof s.column=="number"&&!Number.isNaN(s.line)&&!Number.isNaN(s.column)){for(;n.length<s.line;){const a=n[n.length-1],u=Ya(t,a),c=u===-1?t.length+1:u+1;if(a===c)break;n.push(c)}const o=(s.line>1?n[s.line-2]:0)+s.column-1;if(o<n[s.line-1])return o}}}function Ya(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
2
- `,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const Hh={svg:"http://www.w3.org/2000/svg"},Wa={}.hasOwnProperty,zh=Object.prototype;function $h(e,t){const n=t||{};return xi({file:n.file||void 0,location:!1,schema:n.space==="svg"?Pn:cr,verbose:n.verbose||!1},e)}function xi(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},dr(e,r,n),n}case"#document":case"#document-fragment":{const r=t,i="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:Ga(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){const s=String(e.file),o=Uh(s),a=o.toPoint(0),u=o.toPoint(s.length);n.position={start:a,end:u}}return n}case"#documentType":{const r=t;return n={type:"doctype"},dr(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},dr(e,r,n),n}default:return n=jh(e,t),n}}function Ga(e,t){let n=-1;const r=[];for(;++n<t.length;){const i=xi(e,t[n]);r.push(i)}return r}function jh(e,t){const n=e.schema;e.schema=t.namespaceURI===Hh.svg?Pn:cr;let r=-1;const i={};for(;++r<t.attrs.length;){const a=t.attrs[r],u=(a.prefix?a.prefix+":":"")+a.name;Wa.call(zh,u)||(i[u]=a.value)}const o=(e.schema.space==="svg"?Fh:Bh)(t.tagName,i,Ga(e,t.childNodes));if(dr(e,t,o),o.tagName==="template"){const a=t,u=a.sourceCodeLocation,c=u&&u.startTag&&pn(u.startTag),d=u&&u.endTag&&pn(u.endTag),h=xi(e,a.content);c&&d&&e.file&&(h.position={start:c.end,end:d.start}),o.content=h}return e.schema=n,o}function dr(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=qh(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function qh(e,t,n){const r=pn(n);if(t.type==="element"){const i=t.children[t.children.length-1];if(r&&!n.endTag&&i&&i.position&&i.position.end&&(r.end=Object.assign({},i.position.end)),e.verbose){const s={};let o;if(n.attrs)for(o in n.attrs)Wa.call(n.attrs,o)&&(s[Si(e.schema,o).property]=pn(n.attrs[o]));n.startTag;const a=pn(n.startTag),u=n.endTag?pn(n.endTag):void 0,c={opening:a};u&&(c.closing=u),c.properties=s,t.data={position:c}}}return r}function pn(e){const t=Va({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=Va({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function Va(e){return e.line&&e.column?e:void 0}const Yh=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),ve="�";var w;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(w||(w={}));const et={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Ka(e){return e>=55296&&e<=57343}function Wh(e){return e>=56320&&e<=57343}function Gh(e,t){return(e-55296)*1024+9216+t}function Xa(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function Qa(e){return e>=64976&&e<=65007||Yh.has(e)}var q;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(q||(q={}));const Vh=65536;class Kh{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=Vh,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:i,offset:s}=this,o=i+n,a=s+n;return{code:t,startLine:r,endLine:r,startCol:o,endCol:o,startOffset:a,endOffset:a}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(Wh(n))return this.pos++,this._addGap(),Gh(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,w.EOF;return this._err(q.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,w.EOF;const r=this.html.charCodeAt(n);return r===w.CARRIAGE_RETURN?w.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,w.EOF;let t=this.html.charCodeAt(this.pos);return t===w.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,w.LINE_FEED):t===w.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Ka(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===w.LINE_FEED||t===w.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Xa(t)?this._err(q.controlCharacterInInputStream):Qa(t)&&this._err(q.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var Te;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(Te||(Te={}));function Za(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const Xh=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),Qh=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function Zh(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=Qh.get(e))!==null&&t!==void 0?t:e}var Ue;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Ue||(Ue={}));const Jh=32;var zt;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(zt||(zt={}));function Ni(e){return e>=Ue.ZERO&&e<=Ue.NINE}function ef(e){return e>=Ue.UPPER_A&&e<=Ue.UPPER_F||e>=Ue.LOWER_A&&e<=Ue.LOWER_F}function tf(e){return e>=Ue.UPPER_A&&e<=Ue.UPPER_Z||e>=Ue.LOWER_A&&e<=Ue.LOWER_Z||Ni(e)}function nf(e){return e===Ue.EQUALS||tf(e)}var He;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(He||(He={}));var Lt;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Lt||(Lt={}));class rf{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=He.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Lt.Strict}startEntity(t){this.decodeMode=t,this.state=He.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case He.EntityStart:return t.charCodeAt(n)===Ue.NUM?(this.state=He.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=He.NamedEntity,this.stateNamedEntity(t,n));case He.NumericStart:return this.stateNumericStart(t,n);case He.NumericDecimal:return this.stateNumericDecimal(t,n);case He.NumericHex:return this.stateNumericHex(t,n);case He.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|Jh)===Ue.LOWER_X?(this.state=He.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=He.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,i){if(n!==r){const s=r-n;this.result=this.result*Math.pow(i,s)+Number.parseInt(t.substr(n,s),i),this.consumed+=s}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(Ni(i)||ef(i))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(i,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(Ni(i))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(i,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Ue.SEMI)this.consumed+=1;else if(this.decodeMode===Lt.Strict)return 0;return this.emitCodePoint(Zh(this.result),this.consumed),this.errors&&(t!==Ue.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let i=r[this.treeIndex],s=(i&zt.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const o=t.charCodeAt(n);if(this.treeIndex=sf(r,i,this.treeIndex+Math.max(1,s),o),this.treeIndex<0)return this.result===0||this.decodeMode===Lt.Attribute&&(s===0||nf(o))?0:this.emitNotTerminatedNamedEntity();if(i=r[this.treeIndex],s=(i&zt.VALUE_LENGTH)>>14,s!==0){if(o===Ue.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);this.decodeMode!==Lt.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,i=(r[n]&zt.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:i}=this;return this.emitCodePoint(n===1?i[t]&~zt.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case He.NamedEntity:return this.result!==0&&(this.decodeMode!==Lt.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case He.NumericDecimal:return this.emitNumericEntity(0,2);case He.NumericHex:return this.emitNumericEntity(0,3);case He.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case He.EntityStart:return 0}}}function sf(e,t,n,r){const i=(t&zt.BRANCH_LENGTH)>>7,s=t&zt.JUMP_TABLE;if(i===0)return s!==0&&r===s?n:-1;if(s){const u=r-s;return u<0||u>=i?-1:e[n+u]-1}let o=n,a=o+i-1;for(;o<=a;){const u=o+a>>>1,c=e[u];if(c<r)o=u+1;else if(c>r)a=u-1;else return e[u+i]}return-1}var X;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(X||(X={}));var en;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(en||(en={}));var ct;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(ct||(ct={}));var H;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(H||(H={}));var l;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(l||(l={}));const af=new Map([[H.A,l.A],[H.ADDRESS,l.ADDRESS],[H.ANNOTATION_XML,l.ANNOTATION_XML],[H.APPLET,l.APPLET],[H.AREA,l.AREA],[H.ARTICLE,l.ARTICLE],[H.ASIDE,l.ASIDE],[H.B,l.B],[H.BASE,l.BASE],[H.BASEFONT,l.BASEFONT],[H.BGSOUND,l.BGSOUND],[H.BIG,l.BIG],[H.BLOCKQUOTE,l.BLOCKQUOTE],[H.BODY,l.BODY],[H.BR,l.BR],[H.BUTTON,l.BUTTON],[H.CAPTION,l.CAPTION],[H.CENTER,l.CENTER],[H.CODE,l.CODE],[H.COL,l.COL],[H.COLGROUP,l.COLGROUP],[H.DD,l.DD],[H.DESC,l.DESC],[H.DETAILS,l.DETAILS],[H.DIALOG,l.DIALOG],[H.DIR,l.DIR],[H.DIV,l.DIV],[H.DL,l.DL],[H.DT,l.DT],[H.EM,l.EM],[H.EMBED,l.EMBED],[H.FIELDSET,l.FIELDSET],[H.FIGCAPTION,l.FIGCAPTION],[H.FIGURE,l.FIGURE],[H.FONT,l.FONT],[H.FOOTER,l.FOOTER],[H.FOREIGN_OBJECT,l.FOREIGN_OBJECT],[H.FORM,l.FORM],[H.FRAME,l.FRAME],[H.FRAMESET,l.FRAMESET],[H.H1,l.H1],[H.H2,l.H2],[H.H3,l.H3],[H.H4,l.H4],[H.H5,l.H5],[H.H6,l.H6],[H.HEAD,l.HEAD],[H.HEADER,l.HEADER],[H.HGROUP,l.HGROUP],[H.HR,l.HR],[H.HTML,l.HTML],[H.I,l.I],[H.IMG,l.IMG],[H.IMAGE,l.IMAGE],[H.INPUT,l.INPUT],[H.IFRAME,l.IFRAME],[H.KEYGEN,l.KEYGEN],[H.LABEL,l.LABEL],[H.LI,l.LI],[H.LINK,l.LINK],[H.LISTING,l.LISTING],[H.MAIN,l.MAIN],[H.MALIGNMARK,l.MALIGNMARK],[H.MARQUEE,l.MARQUEE],[H.MATH,l.MATH],[H.MENU,l.MENU],[H.META,l.META],[H.MGLYPH,l.MGLYPH],[H.MI,l.MI],[H.MO,l.MO],[H.MN,l.MN],[H.MS,l.MS],[H.MTEXT,l.MTEXT],[H.NAV,l.NAV],[H.NOBR,l.NOBR],[H.NOFRAMES,l.NOFRAMES],[H.NOEMBED,l.NOEMBED],[H.NOSCRIPT,l.NOSCRIPT],[H.OBJECT,l.OBJECT],[H.OL,l.OL],[H.OPTGROUP,l.OPTGROUP],[H.OPTION,l.OPTION],[H.P,l.P],[H.PARAM,l.PARAM],[H.PLAINTEXT,l.PLAINTEXT],[H.PRE,l.PRE],[H.RB,l.RB],[H.RP,l.RP],[H.RT,l.RT],[H.RTC,l.RTC],[H.RUBY,l.RUBY],[H.S,l.S],[H.SCRIPT,l.SCRIPT],[H.SEARCH,l.SEARCH],[H.SECTION,l.SECTION],[H.SELECT,l.SELECT],[H.SOURCE,l.SOURCE],[H.SMALL,l.SMALL],[H.SPAN,l.SPAN],[H.STRIKE,l.STRIKE],[H.STRONG,l.STRONG],[H.STYLE,l.STYLE],[H.SUB,l.SUB],[H.SUMMARY,l.SUMMARY],[H.SUP,l.SUP],[H.TABLE,l.TABLE],[H.TBODY,l.TBODY],[H.TEMPLATE,l.TEMPLATE],[H.TEXTAREA,l.TEXTAREA],[H.TFOOT,l.TFOOT],[H.TD,l.TD],[H.TH,l.TH],[H.THEAD,l.THEAD],[H.TITLE,l.TITLE],[H.TR,l.TR],[H.TRACK,l.TRACK],[H.TT,l.TT],[H.U,l.U],[H.UL,l.UL],[H.SVG,l.SVG],[H.VAR,l.VAR],[H.WBR,l.WBR],[H.XMP,l.XMP]]);function hr(e){var t;return(t=af.get(e))!==null&&t!==void 0?t:l.UNKNOWN}const J=l,of={[X.HTML]:new Set([J.ADDRESS,J.APPLET,J.AREA,J.ARTICLE,J.ASIDE,J.BASE,J.BASEFONT,J.BGSOUND,J.BLOCKQUOTE,J.BODY,J.BR,J.BUTTON,J.CAPTION,J.CENTER,J.COL,J.COLGROUP,J.DD,J.DETAILS,J.DIR,J.DIV,J.DL,J.DT,J.EMBED,J.FIELDSET,J.FIGCAPTION,J.FIGURE,J.FOOTER,J.FORM,J.FRAME,J.FRAMESET,J.H1,J.H2,J.H3,J.H4,J.H5,J.H6,J.HEAD,J.HEADER,J.HGROUP,J.HR,J.HTML,J.IFRAME,J.IMG,J.INPUT,J.LI,J.LINK,J.LISTING,J.MAIN,J.MARQUEE,J.MENU,J.META,J.NAV,J.NOEMBED,J.NOFRAMES,J.NOSCRIPT,J.OBJECT,J.OL,J.P,J.PARAM,J.PLAINTEXT,J.PRE,J.SCRIPT,J.SECTION,J.SELECT,J.SOURCE,J.STYLE,J.SUMMARY,J.TABLE,J.TBODY,J.TD,J.TEMPLATE,J.TEXTAREA,J.TFOOT,J.TH,J.THEAD,J.TITLE,J.TR,J.TRACK,J.UL,J.WBR,J.XMP]),[X.MATHML]:new Set([J.MI,J.MO,J.MN,J.MS,J.MTEXT,J.ANNOTATION_XML]),[X.SVG]:new Set([J.TITLE,J.FOREIGN_OBJECT,J.DESC]),[X.XLINK]:new Set,[X.XML]:new Set,[X.XMLNS]:new Set},Ii=new Set([J.H1,J.H2,J.H3,J.H4,J.H5,J.H6]);H.STYLE,H.SCRIPT,H.XMP,H.IFRAME,H.NOEMBED,H.NOFRAMES,H.PLAINTEXT;var N;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(N||(N={}));const tt={DATA:N.DATA,RCDATA:N.RCDATA,RAWTEXT:N.RAWTEXT,SCRIPT_DATA:N.SCRIPT_DATA,PLAINTEXT:N.PLAINTEXT,CDATA_SECTION:N.CDATA_SECTION};function uf(e){return e>=w.DIGIT_0&&e<=w.DIGIT_9}function Dn(e){return e>=w.LATIN_CAPITAL_A&&e<=w.LATIN_CAPITAL_Z}function lf(e){return e>=w.LATIN_SMALL_A&&e<=w.LATIN_SMALL_Z}function $t(e){return lf(e)||Dn(e)}function Ja(e){return $t(e)||uf(e)}function fr(e){return e+32}function eo(e){return e===w.SPACE||e===w.LINE_FEED||e===w.TABULATION||e===w.FORM_FEED}function to(e){return eo(e)||e===w.SOLIDUS||e===w.GREATER_THAN_SIGN}function cf(e){return e===w.NULL?q.nullCharacterReference:e>1114111?q.characterReferenceOutsideUnicodeRange:Ka(e)?q.surrogateCharacterReference:Qa(e)?q.noncharacterCharacterReference:Xa(e)||e===w.CARRIAGE_RETURN?q.controlCharacterReference:null}class df{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=N.DATA,this.returnState=N.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Kh(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new rf(Xh,(r,i)=>{this.preprocessor.pos=this.entityStartPos+i-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(q.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(q.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const i=cf(r);i&&this._err(i,1)}}:void 0)}_err(t,n=0){var r,i;(i=(r=this.handler).onParseError)===null||i===void 0||i.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t==null||t())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r==null||r()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:Te.START_TAG,tagName:"",tagID:l.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Te.END_TAG,tagName:"",tagID:l.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:Te.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:Te.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(Za(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const i=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);i[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(q.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=hr(t.tagName),t.type===Te.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(q.endTagWithAttributes),t.selfClosing&&this._err(q.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case Te.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Te.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Te.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:Te.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=eo(t)?Te.WHITESPACE_CHARACTER:t===w.NULL?Te.NULL_CHARACTER:Te.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Te.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=N.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Lt.Attribute:Lt.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===N.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===N.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===N.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case N.DATA:{this._stateData(t);break}case N.RCDATA:{this._stateRcdata(t);break}case N.RAWTEXT:{this._stateRawtext(t);break}case N.SCRIPT_DATA:{this._stateScriptData(t);break}case N.PLAINTEXT:{this._statePlaintext(t);break}case N.TAG_OPEN:{this._stateTagOpen(t);break}case N.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case N.TAG_NAME:{this._stateTagName(t);break}case N.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case N.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case N.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case N.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case N.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case N.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case N.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case N.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case N.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case N.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case N.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case N.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case N.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case N.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case N.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case N.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case N.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case N.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case N.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case N.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case N.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case N.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case N.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case N.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case N.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case N.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case N.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case N.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case N.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case N.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case N.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case N.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case N.BOGUS_COMMENT:{this._stateBogusComment(t);break}case N.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case N.COMMENT_START:{this._stateCommentStart(t);break}case N.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case N.COMMENT:{this._stateComment(t);break}case N.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case N.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case N.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case N.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case N.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case N.COMMENT_END:{this._stateCommentEnd(t);break}case N.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case N.DOCTYPE:{this._stateDoctype(t);break}case N.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case N.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case N.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case N.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case N.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case N.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case N.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case N.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case N.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case N.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case N.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case N.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case N.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case N.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case N.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case N.CDATA_SECTION:{this._stateCdataSection(t);break}case N.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case N.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case N.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case N.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case w.LESS_THAN_SIGN:{this.state=N.TAG_OPEN;break}case w.AMPERSAND:{this._startCharacterReference();break}case w.NULL:{this._err(q.unexpectedNullCharacter),this._emitCodePoint(t);break}case w.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case w.AMPERSAND:{this._startCharacterReference();break}case w.LESS_THAN_SIGN:{this.state=N.RCDATA_LESS_THAN_SIGN;break}case w.NULL:{this._err(q.unexpectedNullCharacter),this._emitChars(ve);break}case w.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case w.LESS_THAN_SIGN:{this.state=N.RAWTEXT_LESS_THAN_SIGN;break}case w.NULL:{this._err(q.unexpectedNullCharacter),this._emitChars(ve);break}case w.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case w.LESS_THAN_SIGN:{this.state=N.SCRIPT_DATA_LESS_THAN_SIGN;break}case w.NULL:{this._err(q.unexpectedNullCharacter),this._emitChars(ve);break}case w.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case w.NULL:{this._err(q.unexpectedNullCharacter),this._emitChars(ve);break}case w.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if($t(t))this._createStartTagToken(),this.state=N.TAG_NAME,this._stateTagName(t);else switch(t){case w.EXCLAMATION_MARK:{this.state=N.MARKUP_DECLARATION_OPEN;break}case w.SOLIDUS:{this.state=N.END_TAG_OPEN;break}case w.QUESTION_MARK:{this._err(q.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=N.BOGUS_COMMENT,this._stateBogusComment(t);break}case w.EOF:{this._err(q.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(q.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=N.DATA,this._stateData(t)}}_stateEndTagOpen(t){if($t(t))this._createEndTagToken(),this.state=N.TAG_NAME,this._stateTagName(t);else switch(t){case w.GREATER_THAN_SIGN:{this._err(q.missingEndTagName),this.state=N.DATA;break}case w.EOF:{this._err(q.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(q.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=N.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:{this.state=N.BEFORE_ATTRIBUTE_NAME;break}case w.SOLIDUS:{this.state=N.SELF_CLOSING_START_TAG;break}case w.GREATER_THAN_SIGN:{this.state=N.DATA,this.emitCurrentTagToken();break}case w.NULL:{this._err(q.unexpectedNullCharacter),n.tagName+=ve;break}case w.EOF:{this._err(q.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(Dn(t)?fr(t):t)}}_stateRcdataLessThanSign(t){t===w.SOLIDUS?this.state=N.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=N.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){$t(t)?(this.state=N.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=N.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=N.BEFORE_ATTRIBUTE_NAME,!1;case w.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=N.SELF_CLOSING_START_TAG,!1;case w.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=N.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=N.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===w.SOLIDUS?this.state=N.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=N.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){$t(t)?(this.state=N.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=N.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=N.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case w.SOLIDUS:{this.state=N.SCRIPT_DATA_END_TAG_OPEN;break}case w.EXCLAMATION_MARK:{this.state=N.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=N.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){$t(t)?(this.state=N.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=N.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=N.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===w.HYPHEN_MINUS?(this.state=N.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=N.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===w.HYPHEN_MINUS?(this.state=N.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=N.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case w.HYPHEN_MINUS:{this.state=N.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case w.LESS_THAN_SIGN:{this.state=N.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case w.NULL:{this._err(q.unexpectedNullCharacter),this._emitChars(ve);break}case w.EOF:{this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case w.HYPHEN_MINUS:{this.state=N.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case w.LESS_THAN_SIGN:{this.state=N.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case w.NULL:{this._err(q.unexpectedNullCharacter),this.state=N.SCRIPT_DATA_ESCAPED,this._emitChars(ve);break}case w.EOF:{this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=N.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case w.HYPHEN_MINUS:{this._emitChars("-");break}case w.LESS_THAN_SIGN:{this.state=N.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case w.GREATER_THAN_SIGN:{this.state=N.SCRIPT_DATA,this._emitChars(">");break}case w.NULL:{this._err(q.unexpectedNullCharacter),this.state=N.SCRIPT_DATA_ESCAPED,this._emitChars(ve);break}case w.EOF:{this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=N.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===w.SOLIDUS?this.state=N.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:$t(t)?(this._emitChars("<"),this.state=N.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=N.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){$t(t)?(this.state=N.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=N.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=N.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(et.SCRIPT,!1)&&to(this.preprocessor.peek(et.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<et.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=N.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case w.HYPHEN_MINUS:{this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case w.LESS_THAN_SIGN:{this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case w.NULL:{this._err(q.unexpectedNullCharacter),this._emitChars(ve);break}case w.EOF:{this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case w.HYPHEN_MINUS:{this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case w.LESS_THAN_SIGN:{this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case w.NULL:{this._err(q.unexpectedNullCharacter),this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(ve);break}case w.EOF:{this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case w.HYPHEN_MINUS:{this._emitChars("-");break}case w.LESS_THAN_SIGN:{this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case w.GREATER_THAN_SIGN:{this.state=N.SCRIPT_DATA,this._emitChars(">");break}case w.NULL:{this._err(q.unexpectedNullCharacter),this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(ve);break}case w.EOF:{this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===w.SOLIDUS?(this.state=N.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(et.SCRIPT,!1)&&to(this.preprocessor.peek(et.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<et.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=N.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:break;case w.SOLIDUS:case w.GREATER_THAN_SIGN:case w.EOF:{this.state=N.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case w.EQUALS_SIGN:{this._err(q.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=N.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=N.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:case w.SOLIDUS:case w.GREATER_THAN_SIGN:case w.EOF:{this._leaveAttrName(),this.state=N.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case w.EQUALS_SIGN:{this._leaveAttrName(),this.state=N.BEFORE_ATTRIBUTE_VALUE;break}case w.QUOTATION_MARK:case w.APOSTROPHE:case w.LESS_THAN_SIGN:{this._err(q.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case w.NULL:{this._err(q.unexpectedNullCharacter),this.currentAttr.name+=ve;break}default:this.currentAttr.name+=String.fromCodePoint(Dn(t)?fr(t):t)}}_stateAfterAttributeName(t){switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:break;case w.SOLIDUS:{this.state=N.SELF_CLOSING_START_TAG;break}case w.EQUALS_SIGN:{this.state=N.BEFORE_ATTRIBUTE_VALUE;break}case w.GREATER_THAN_SIGN:{this.state=N.DATA,this.emitCurrentTagToken();break}case w.EOF:{this._err(q.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=N.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:break;case w.QUOTATION_MARK:{this.state=N.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case w.APOSTROPHE:{this.state=N.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case w.GREATER_THAN_SIGN:{this._err(q.missingAttributeValue),this.state=N.DATA,this.emitCurrentTagToken();break}default:this.state=N.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case w.QUOTATION_MARK:{this.state=N.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case w.AMPERSAND:{this._startCharacterReference();break}case w.NULL:{this._err(q.unexpectedNullCharacter),this.currentAttr.value+=ve;break}case w.EOF:{this._err(q.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case w.APOSTROPHE:{this.state=N.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case w.AMPERSAND:{this._startCharacterReference();break}case w.NULL:{this._err(q.unexpectedNullCharacter),this.currentAttr.value+=ve;break}case w.EOF:{this._err(q.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:{this._leaveAttrValue(),this.state=N.BEFORE_ATTRIBUTE_NAME;break}case w.AMPERSAND:{this._startCharacterReference();break}case w.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=N.DATA,this.emitCurrentTagToken();break}case w.NULL:{this._err(q.unexpectedNullCharacter),this.currentAttr.value+=ve;break}case w.QUOTATION_MARK:case w.APOSTROPHE:case w.LESS_THAN_SIGN:case w.EQUALS_SIGN:case w.GRAVE_ACCENT:{this._err(q.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case w.EOF:{this._err(q.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:{this._leaveAttrValue(),this.state=N.BEFORE_ATTRIBUTE_NAME;break}case w.SOLIDUS:{this._leaveAttrValue(),this.state=N.SELF_CLOSING_START_TAG;break}case w.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=N.DATA,this.emitCurrentTagToken();break}case w.EOF:{this._err(q.eofInTag),this._emitEOFToken();break}default:this._err(q.missingWhitespaceBetweenAttributes),this.state=N.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case w.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=N.DATA,this.emitCurrentTagToken();break}case w.EOF:{this._err(q.eofInTag),this._emitEOFToken();break}default:this._err(q.unexpectedSolidusInTag),this.state=N.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case w.GREATER_THAN_SIGN:{this.state=N.DATA,this.emitCurrentComment(n);break}case w.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case w.NULL:{this._err(q.unexpectedNullCharacter),n.data+=ve;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(et.DASH_DASH,!0)?(this._createCommentToken(et.DASH_DASH.length+1),this.state=N.COMMENT_START):this._consumeSequenceIfMatch(et.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(et.DOCTYPE.length+1),this.state=N.DOCTYPE):this._consumeSequenceIfMatch(et.CDATA_START,!0)?this.inForeignNode?this.state=N.CDATA_SECTION:(this._err(q.cdataInHtmlContent),this._createCommentToken(et.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=N.BOGUS_COMMENT):this._ensureHibernation()||(this._err(q.incorrectlyOpenedComment),this._createCommentToken(2),this.state=N.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case w.HYPHEN_MINUS:{this.state=N.COMMENT_START_DASH;break}case w.GREATER_THAN_SIGN:{this._err(q.abruptClosingOfEmptyComment),this.state=N.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=N.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case w.HYPHEN_MINUS:{this.state=N.COMMENT_END;break}case w.GREATER_THAN_SIGN:{this._err(q.abruptClosingOfEmptyComment),this.state=N.DATA,this.emitCurrentComment(n);break}case w.EOF:{this._err(q.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=N.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case w.HYPHEN_MINUS:{this.state=N.COMMENT_END_DASH;break}case w.LESS_THAN_SIGN:{n.data+="<",this.state=N.COMMENT_LESS_THAN_SIGN;break}case w.NULL:{this._err(q.unexpectedNullCharacter),n.data+=ve;break}case w.EOF:{this._err(q.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case w.EXCLAMATION_MARK:{n.data+="!",this.state=N.COMMENT_LESS_THAN_SIGN_BANG;break}case w.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=N.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===w.HYPHEN_MINUS?this.state=N.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=N.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===w.HYPHEN_MINUS?this.state=N.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=N.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==w.GREATER_THAN_SIGN&&t!==w.EOF&&this._err(q.nestedComment),this.state=N.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case w.HYPHEN_MINUS:{this.state=N.COMMENT_END;break}case w.EOF:{this._err(q.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=N.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case w.GREATER_THAN_SIGN:{this.state=N.DATA,this.emitCurrentComment(n);break}case w.EXCLAMATION_MARK:{this.state=N.COMMENT_END_BANG;break}case w.HYPHEN_MINUS:{n.data+="-";break}case w.EOF:{this._err(q.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=N.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case w.HYPHEN_MINUS:{n.data+="--!",this.state=N.COMMENT_END_DASH;break}case w.GREATER_THAN_SIGN:{this._err(q.incorrectlyClosedComment),this.state=N.DATA,this.emitCurrentComment(n);break}case w.EOF:{this._err(q.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=N.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:{this.state=N.BEFORE_DOCTYPE_NAME;break}case w.GREATER_THAN_SIGN:{this.state=N.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case w.EOF:{this._err(q.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(q.missingWhitespaceBeforeDoctypeName),this.state=N.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(Dn(t))this._createDoctypeToken(String.fromCharCode(fr(t))),this.state=N.DOCTYPE_NAME;else switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:break;case w.NULL:{this._err(q.unexpectedNullCharacter),this._createDoctypeToken(ve),this.state=N.DOCTYPE_NAME;break}case w.GREATER_THAN_SIGN:{this._err(q.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=N.DATA;break}case w.EOF:{this._err(q.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=N.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:{this.state=N.AFTER_DOCTYPE_NAME;break}case w.GREATER_THAN_SIGN:{this.state=N.DATA,this.emitCurrentDoctype(n);break}case w.NULL:{this._err(q.unexpectedNullCharacter),n.name+=ve;break}case w.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(Dn(t)?fr(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:break;case w.GREATER_THAN_SIGN:{this.state=N.DATA,this.emitCurrentDoctype(n);break}case w.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(et.PUBLIC,!1)?this.state=N.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(et.SYSTEM,!1)?this.state=N.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(q.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=N.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:{this.state=N.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case w.QUOTATION_MARK:{this._err(q.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=N.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case w.APOSTROPHE:{this._err(q.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=N.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case w.GREATER_THAN_SIGN:{this._err(q.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=N.DATA,this.emitCurrentDoctype(n);break}case w.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(q.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=N.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:break;case w.QUOTATION_MARK:{n.publicId="",this.state=N.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case w.APOSTROPHE:{n.publicId="",this.state=N.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case w.GREATER_THAN_SIGN:{this._err(q.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=N.DATA,this.emitCurrentDoctype(n);break}case w.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(q.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=N.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case w.QUOTATION_MARK:{this.state=N.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case w.NULL:{this._err(q.unexpectedNullCharacter),n.publicId+=ve;break}case w.GREATER_THAN_SIGN:{this._err(q.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=N.DATA;break}case w.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case w.APOSTROPHE:{this.state=N.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case w.NULL:{this._err(q.unexpectedNullCharacter),n.publicId+=ve;break}case w.GREATER_THAN_SIGN:{this._err(q.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=N.DATA;break}case w.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:{this.state=N.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case w.GREATER_THAN_SIGN:{this.state=N.DATA,this.emitCurrentDoctype(n);break}case w.QUOTATION_MARK:{this._err(q.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case w.APOSTROPHE:{this._err(q.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case w.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(q.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=N.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:break;case w.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=N.DATA;break}case w.QUOTATION_MARK:{n.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case w.APOSTROPHE:{n.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case w.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(q.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=N.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:{this.state=N.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case w.QUOTATION_MARK:{this._err(q.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case w.APOSTROPHE:{this._err(q.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case w.GREATER_THAN_SIGN:{this._err(q.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=N.DATA,this.emitCurrentDoctype(n);break}case w.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(q.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=N.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:break;case w.QUOTATION_MARK:{n.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case w.APOSTROPHE:{n.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case w.GREATER_THAN_SIGN:{this._err(q.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=N.DATA,this.emitCurrentDoctype(n);break}case w.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(q.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=N.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case w.QUOTATION_MARK:{this.state=N.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case w.NULL:{this._err(q.unexpectedNullCharacter),n.systemId+=ve;break}case w.GREATER_THAN_SIGN:{this._err(q.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=N.DATA;break}case w.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case w.APOSTROPHE:{this.state=N.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case w.NULL:{this._err(q.unexpectedNullCharacter),n.systemId+=ve;break}case w.GREATER_THAN_SIGN:{this._err(q.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=N.DATA;break}case w.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:break;case w.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=N.DATA;break}case w.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(q.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=N.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case w.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=N.DATA;break}case w.NULL:{this._err(q.unexpectedNullCharacter);break}case w.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case w.RIGHT_SQUARE_BRACKET:{this.state=N.CDATA_SECTION_BRACKET;break}case w.EOF:{this._err(q.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===w.RIGHT_SQUARE_BRACKET?this.state=N.CDATA_SECTION_END:(this._emitChars("]"),this.state=N.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case w.GREATER_THAN_SIGN:{this.state=N.DATA;break}case w.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=N.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(w.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&Ja(this.preprocessor.peek(1))?N.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){Ja(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===w.SEMICOLON&&this._err(q.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const no=new Set([l.DD,l.DT,l.LI,l.OPTGROUP,l.OPTION,l.P,l.RB,l.RP,l.RT,l.RTC]),ro=new Set([...no,l.CAPTION,l.COLGROUP,l.TBODY,l.TD,l.TFOOT,l.TH,l.THEAD,l.TR]),pr=new Set([l.APPLET,l.CAPTION,l.HTML,l.MARQUEE,l.OBJECT,l.TABLE,l.TD,l.TEMPLATE,l.TH]),hf=new Set([...pr,l.OL,l.UL]),ff=new Set([...pr,l.BUTTON]),io=new Set([l.ANNOTATION_XML,l.MI,l.MN,l.MO,l.MS,l.MTEXT]),so=new Set([l.DESC,l.FOREIGN_OBJECT,l.TITLE]),pf=new Set([l.TR,l.TEMPLATE,l.HTML]),mf=new Set([l.TBODY,l.TFOOT,l.THEAD,l.TEMPLATE,l.HTML]),gf=new Set([l.TABLE,l.TEMPLATE,l.HTML]),bf=new Set([l.TD,l.TH]);class Ef{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=l.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===l.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===X.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const i=this._indexOf(t)+1;this.items.splice(i,0,n),this.tagIDs.splice(i,0,r),this.stackTop++,i===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,i===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==X.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(Ii,X.HTML)}popUntilTableCellPopped(){this.popUntilPopped(bf,X.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(gf,X.HTML)}clearBackToTableBodyContext(){this.clearBackTo(mf,X.HTML)}clearBackToTableRowContext(){this.clearBackTo(pf,X.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===l.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===l.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const i=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case X.HTML:{if(i===t)return!0;if(n.has(i))return!1;break}case X.SVG:{if(so.has(i))return!1;break}case X.MATHML:{if(io.has(i))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,pr)}hasInListItemScope(t){return this.hasInDynamicScope(t,hf)}hasInButtonScope(t){return this.hasInDynamicScope(t,ff)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case X.HTML:{if(Ii.has(n))return!0;if(pr.has(n))return!1;break}case X.SVG:{if(so.has(n))return!1;break}case X.MATHML:{if(io.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===X.HTML)switch(this.tagIDs[n]){case t:return!0;case l.TABLE:case l.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===X.HTML)switch(this.tagIDs[t]){case l.TBODY:case l.THEAD:case l.TFOOT:return!0;case l.TABLE:case l.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===X.HTML)switch(this.tagIDs[n]){case t:return!0;case l.OPTION:case l.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&no.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&ro.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&ro.has(this.currentTagId);)this.pop()}}const vi=3;var wt;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(wt||(wt={}));const ao={type:wt.Marker};class yf{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],i=n.length,s=this.treeAdapter.getTagName(t),o=this.treeAdapter.getNamespaceURI(t);for(let a=0;a<this.entries.length;a++){const u=this.entries[a];if(u.type===wt.Marker)break;const{element:c}=u;if(this.treeAdapter.getTagName(c)===s&&this.treeAdapter.getNamespaceURI(c)===o){const d=this.treeAdapter.getAttrList(c);d.length===i&&r.push({idx:a,attrs:d})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<vi)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<vi)return;const i=new Map(n.map(o=>[o.name,o.value]));let s=0;for(let o=0;o<r.length;o++){const a=r[o];a.attrs.every(u=>i.get(u.name)===u.value)&&(s+=1,s>=vi&&this.entries.splice(a.idx,1))}}insertMarker(){this.entries.unshift(ao)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:wt.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:wt.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(ao);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===wt.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===wt.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===wt.Element&&n.element===t)}}const jt={createDocument(){return{nodeName:"#document",mode:ct.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const i=e.childNodes.find(s=>s.nodeName==="#documentType");if(i)i.name=t,i.publicId=n,i.systemId=r;else{const s={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};jt.appendChild(e,s)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(jt.isTextNode(n)){n.value+=t;return}}jt.appendChild(e,jt.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&jt.isTextNode(r)?r.value+=t:jt.insertBefore(e,jt.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},oo="html",Tf="about:legacy-compat",_f="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",uo=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],kf=[...uo,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],wf=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),lo=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Af=[...lo,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function co(e,t){return t.some(n=>e.startsWith(n))}function Sf(e){return e.name===oo&&e.publicId===null&&(e.systemId===null||e.systemId===Tf)}function Cf(e){if(e.name!==oo)return ct.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===_f)return ct.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),wf.has(n))return ct.QUIRKS;let r=t===null?kf:uo;if(co(n,r))return ct.QUIRKS;if(r=t===null?lo:Af,co(n,r))return ct.LIMITED_QUIRKS}return ct.NO_QUIRKS}const ho={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},xf="definitionurl",Nf="definitionURL",If=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),vf=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:X.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:X.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:X.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:X.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:X.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:X.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:X.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:X.XML}],["xml:space",{prefix:"xml",name:"space",namespace:X.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:X.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:X.XMLNS}]]),Of=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),Lf=new Set([l.B,l.BIG,l.BLOCKQUOTE,l.BODY,l.BR,l.CENTER,l.CODE,l.DD,l.DIV,l.DL,l.DT,l.EM,l.EMBED,l.H1,l.H2,l.H3,l.H4,l.H5,l.H6,l.HEAD,l.HR,l.I,l.IMG,l.LI,l.LISTING,l.MENU,l.META,l.NOBR,l.OL,l.P,l.PRE,l.RUBY,l.S,l.SMALL,l.SPAN,l.STRONG,l.STRIKE,l.SUB,l.SUP,l.TABLE,l.TT,l.U,l.UL,l.VAR]);function Rf(e){const t=e.tagID;return t===l.FONT&&e.attrs.some(({name:r})=>r===en.COLOR||r===en.SIZE||r===en.FACE)||Lf.has(t)}function fo(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===xf){e.attrs[t].name=Nf;break}}function po(e){for(let t=0;t<e.attrs.length;t++){const n=If.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function Oi(e){for(let t=0;t<e.attrs.length;t++){const n=vf.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function Pf(e){const t=Of.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=hr(e.tagName))}function Df(e,t){return t===X.MATHML&&(e===l.MI||e===l.MO||e===l.MN||e===l.MS||e===l.MTEXT)}function Mf(e,t,n){if(t===X.MATHML&&e===l.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===en.ENCODING){const i=n[r].value.toLowerCase();return i===ho.TEXT_HTML||i===ho.APPLICATION_XML}}return t===X.SVG&&(e===l.FOREIGN_OBJECT||e===l.DESC||e===l.TITLE)}function Bf(e,t,n,r){return(!r||r===X.HTML)&&Mf(e,t,n)||(!r||r===X.MATHML)&&Df(e,t)}const Ff="hidden",Uf=8,Hf=3;var L;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(L||(L={}));const zf={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},mo=new Set([l.TABLE,l.TBODY,l.TFOOT,l.THEAD,l.TR]),go={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:jt,onParseError:null};class bo{constructor(t,n,r=null,i=null){this.fragmentContext=r,this.scriptHandler=i,this.currentToken=null,this.stopped=!1,this.insertionMode=L.INITIAL,this.originalInsertionMode=L.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...go,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new df(this.options,this),this.activeFormattingElements=new yf(this.treeAdapter),this.fragmentContextID=r?hr(this.treeAdapter.getTagName(r)):l.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new Ef(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r={...go,...n};t??(t=r.treeAdapter.createElement(H.TEMPLATE,X.HTML,[]));const i=r.treeAdapter.createElement("documentmock",X.HTML,[]),s=new this(r,i,t);return s.fragmentContextID===l.TEMPLATE&&s.tmplInsertionModeStack.unshift(L.IN_TEMPLATE),s._initTokenizerForFragmentParsing(),s._insertFakeRootElement(),s._resetInsertionMode(),s._findFormInFragmentContext(),s}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var i;if(!this.onParseError)return;const s=(i=t.location)!==null&&i!==void 0?i:zf,o={code:n,startLine:s.startLine,startCol:s.startCol,startOffset:s.startOffset,endLine:r?s.startLine:s.endLine,endCol:r?s.startCol:s.endCol,endOffset:r?s.startOffset:s.endOffset};this.onParseError(o)}onItemPush(t,n,r){var i,s;(s=(i=this.treeAdapter).onItemPush)===null||s===void 0||s.call(i,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(i=(r=this.treeAdapter).onItemPop)===null||i===void 0||i.call(r,t,this.openElements.current),n){let s,o;this.openElements.stackTop===0&&this.fragmentContext?(s=this.fragmentContext,o=this.fragmentContextID):{current:s,currentTagId:o}=this.openElements,this._setContextModes(s,o)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===X.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,X.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=L.TEXT}switchToPlaintextParsing(){this.insertionMode=L.TEXT,this.originalInsertionMode=L.IN_BODY,this.tokenizer.state=tt.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===H.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==X.HTML))switch(this.fragmentContextID){case l.TITLE:case l.TEXTAREA:{this.tokenizer.state=tt.RCDATA;break}case l.STYLE:case l.XMP:case l.IFRAME:case l.NOEMBED:case l.NOFRAMES:case l.NOSCRIPT:{this.tokenizer.state=tt.RAWTEXT;break}case l.SCRIPT:{this.tokenizer.state=tt.SCRIPT_DATA;break}case l.PLAINTEXT:{this.tokenizer.state=tt.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",i=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,i),t.location){const o=this.treeAdapter.getChildNodes(this.document).find(a=>this.treeAdapter.isDocumentTypeNode(a));o&&this.treeAdapter.setNodeSourceCodeLocation(o,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r??this.document,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,X.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,X.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(H.HTML,X.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,l.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const i=this.treeAdapter.getChildNodes(n),s=r?i.lastIndexOf(r):i.length,o=i[s-1];if(this.treeAdapter.getNodeSourceCodeLocation(o)){const{endLine:u,endCol:c,endOffset:d}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(o,{endLine:u,endCol:c,endOffset:d})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(o,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,i=this.treeAdapter.getTagName(t),s=n.type===Te.END_TAG&&i===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,s)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===l.SVG&&this.treeAdapter.getTagName(n)===H.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===X.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===l.MGLYPH||t.tagID===l.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,X.HTML)}_processToken(t){switch(t.type){case Te.CHARACTER:{this.onCharacter(t);break}case Te.NULL_CHARACTER:{this.onNullCharacter(t);break}case Te.COMMENT:{this.onComment(t);break}case Te.DOCTYPE:{this.onDoctype(t);break}case Te.START_TAG:{this._processStartTag(t);break}case Te.END_TAG:{this.onEndTag(t);break}case Te.EOF:{this.onEof(t);break}case Te.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const i=this.treeAdapter.getNamespaceURI(n),s=this.treeAdapter.getAttrList(n);return Bf(t,i,s,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(i=>i.type===wt.Marker||this.openElements.contains(i.element)),r=n===-1?t-1:n-1;for(let i=r;i>=0;i--){const s=this.activeFormattingElements.entries[i];this._insertElement(s.token,this.treeAdapter.getNamespaceURI(s.element)),s.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=L.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(l.P),this.openElements.popUntilTagNamePopped(l.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case l.TR:{this.insertionMode=L.IN_ROW;return}case l.TBODY:case l.THEAD:case l.TFOOT:{this.insertionMode=L.IN_TABLE_BODY;return}case l.CAPTION:{this.insertionMode=L.IN_CAPTION;return}case l.COLGROUP:{this.insertionMode=L.IN_COLUMN_GROUP;return}case l.TABLE:{this.insertionMode=L.IN_TABLE;return}case l.BODY:{this.insertionMode=L.IN_BODY;return}case l.FRAMESET:{this.insertionMode=L.IN_FRAMESET;return}case l.SELECT:{this._resetInsertionModeForSelect(t);return}case l.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case l.HTML:{this.insertionMode=this.headElement?L.AFTER_HEAD:L.BEFORE_HEAD;return}case l.TD:case l.TH:{if(t>0){this.insertionMode=L.IN_CELL;return}break}case l.HEAD:{if(t>0){this.insertionMode=L.IN_HEAD;return}break}}this.insertionMode=L.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===l.TEMPLATE)break;if(r===l.TABLE){this.insertionMode=L.IN_SELECT_IN_TABLE;return}}this.insertionMode=L.IN_SELECT}_isElementCausesFosterParenting(t){return mo.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case l.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===X.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case l.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return of[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){b0(this,t);return}switch(this.insertionMode){case L.INITIAL:{Mn(this,t);break}case L.BEFORE_HTML:{Bn(this,t);break}case L.BEFORE_HEAD:{Fn(this,t);break}case L.IN_HEAD:{Un(this,t);break}case L.IN_HEAD_NO_SCRIPT:{Hn(this,t);break}case L.AFTER_HEAD:{zn(this,t);break}case L.IN_BODY:case L.IN_CAPTION:case L.IN_CELL:case L.IN_TEMPLATE:{yo(this,t);break}case L.TEXT:case L.IN_SELECT:case L.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case L.IN_TABLE:case L.IN_TABLE_BODY:case L.IN_ROW:{Di(this,t);break}case L.IN_TABLE_TEXT:{xo(this,t);break}case L.IN_COLUMN_GROUP:{br(this,t);break}case L.AFTER_BODY:{Tr(this,t);break}case L.AFTER_AFTER_BODY:{_r(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){g0(this,t);return}switch(this.insertionMode){case L.INITIAL:{Mn(this,t);break}case L.BEFORE_HTML:{Bn(this,t);break}case L.BEFORE_HEAD:{Fn(this,t);break}case L.IN_HEAD:{Un(this,t);break}case L.IN_HEAD_NO_SCRIPT:{Hn(this,t);break}case L.AFTER_HEAD:{zn(this,t);break}case L.TEXT:{this._insertCharacters(t);break}case L.IN_TABLE:case L.IN_TABLE_BODY:case L.IN_ROW:{Di(this,t);break}case L.IN_COLUMN_GROUP:{br(this,t);break}case L.AFTER_BODY:{Tr(this,t);break}case L.AFTER_AFTER_BODY:{_r(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Ri(this,t);return}switch(this.insertionMode){case L.INITIAL:case L.BEFORE_HTML:case L.BEFORE_HEAD:case L.IN_HEAD:case L.IN_HEAD_NO_SCRIPT:case L.AFTER_HEAD:case L.IN_BODY:case L.IN_TABLE:case L.IN_CAPTION:case L.IN_COLUMN_GROUP:case L.IN_TABLE_BODY:case L.IN_ROW:case L.IN_CELL:case L.IN_SELECT:case L.IN_SELECT_IN_TABLE:case L.IN_TEMPLATE:case L.IN_FRAMESET:case L.AFTER_FRAMESET:{Ri(this,t);break}case L.IN_TABLE_TEXT:{qn(this,t);break}case L.AFTER_BODY:{Vf(this,t);break}case L.AFTER_AFTER_BODY:case L.AFTER_AFTER_FRAMESET:{Kf(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case L.INITIAL:{Xf(this,t);break}case L.BEFORE_HEAD:case L.IN_HEAD:case L.IN_HEAD_NO_SCRIPT:case L.AFTER_HEAD:{this._err(t,q.misplacedDoctype);break}case L.IN_TABLE_TEXT:{qn(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,q.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?E0(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case L.INITIAL:{Mn(this,t);break}case L.BEFORE_HTML:{Qf(this,t);break}case L.BEFORE_HEAD:{Jf(this,t);break}case L.IN_HEAD:{mt(this,t);break}case L.IN_HEAD_NO_SCRIPT:{np(this,t);break}case L.AFTER_HEAD:{ip(this,t);break}case L.IN_BODY:{We(this,t);break}case L.IN_TABLE:{mn(this,t);break}case L.IN_TABLE_TEXT:{qn(this,t);break}case L.IN_CAPTION:{e0(this,t);break}case L.IN_COLUMN_GROUP:{Mi(this,t);break}case L.IN_TABLE_BODY:{Er(this,t);break}case L.IN_ROW:{yr(this,t);break}case L.IN_CELL:{r0(this,t);break}case L.IN_SELECT:{vo(this,t);break}case L.IN_SELECT_IN_TABLE:{s0(this,t);break}case L.IN_TEMPLATE:{o0(this,t);break}case L.AFTER_BODY:{l0(this,t);break}case L.IN_FRAMESET:{c0(this,t);break}case L.AFTER_FRAMESET:{h0(this,t);break}case L.AFTER_AFTER_BODY:{p0(this,t);break}case L.AFTER_AFTER_FRAMESET:{m0(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?y0(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case L.INITIAL:{Mn(this,t);break}case L.BEFORE_HTML:{Zf(this,t);break}case L.BEFORE_HEAD:{ep(this,t);break}case L.IN_HEAD:{tp(this,t);break}case L.IN_HEAD_NO_SCRIPT:{rp(this,t);break}case L.AFTER_HEAD:{sp(this,t);break}case L.IN_BODY:{gr(this,t);break}case L.TEXT:{qp(this,t);break}case L.IN_TABLE:{$n(this,t);break}case L.IN_TABLE_TEXT:{qn(this,t);break}case L.IN_CAPTION:{t0(this,t);break}case L.IN_COLUMN_GROUP:{n0(this,t);break}case L.IN_TABLE_BODY:{Bi(this,t);break}case L.IN_ROW:{Io(this,t);break}case L.IN_CELL:{i0(this,t);break}case L.IN_SELECT:{Oo(this,t);break}case L.IN_SELECT_IN_TABLE:{a0(this,t);break}case L.IN_TEMPLATE:{u0(this,t);break}case L.AFTER_BODY:{Ro(this,t);break}case L.IN_FRAMESET:{d0(this,t);break}case L.AFTER_FRAMESET:{f0(this,t);break}case L.AFTER_AFTER_BODY:{_r(this,t);break}}}onEof(t){switch(this.insertionMode){case L.INITIAL:{Mn(this,t);break}case L.BEFORE_HTML:{Bn(this,t);break}case L.BEFORE_HEAD:{Fn(this,t);break}case L.IN_HEAD:{Un(this,t);break}case L.IN_HEAD_NO_SCRIPT:{Hn(this,t);break}case L.AFTER_HEAD:{zn(this,t);break}case L.IN_BODY:case L.IN_TABLE:case L.IN_CAPTION:case L.IN_COLUMN_GROUP:case L.IN_TABLE_BODY:case L.IN_ROW:case L.IN_CELL:case L.IN_SELECT:case L.IN_SELECT_IN_TABLE:{So(this,t);break}case L.TEXT:{Yp(this,t);break}case L.IN_TABLE_TEXT:{qn(this,t);break}case L.IN_TEMPLATE:{Lo(this,t);break}case L.AFTER_BODY:case L.IN_FRAMESET:case L.AFTER_FRAMESET:case L.AFTER_AFTER_BODY:case L.AFTER_AFTER_FRAMESET:{Pi(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===w.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case L.IN_HEAD:case L.IN_HEAD_NO_SCRIPT:case L.AFTER_HEAD:case L.TEXT:case L.IN_COLUMN_GROUP:case L.IN_SELECT:case L.IN_SELECT_IN_TABLE:case L.IN_FRAMESET:case L.AFTER_FRAMESET:{this._insertCharacters(t);break}case L.IN_BODY:case L.IN_CAPTION:case L.IN_CELL:case L.IN_TEMPLATE:case L.AFTER_BODY:case L.AFTER_AFTER_BODY:case L.AFTER_AFTER_FRAMESET:{Eo(this,t);break}case L.IN_TABLE:case L.IN_TABLE_BODY:case L.IN_ROW:{Di(this,t);break}case L.IN_TABLE_TEXT:{Co(this,t);break}}}}function $f(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):Ao(e,t),n}function jf(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function qf(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let s=0,o=i;o!==n;s++,o=i){i=e.openElements.getCommonAncestor(o);const a=e.activeFormattingElements.getElementEntry(o),u=a&&s>=Hf;!a||u?(u&&e.activeFormattingElements.removeEntry(a),e.openElements.remove(o)):(o=Yf(e,a),r===t&&(e.activeFormattingElements.bookmark=a),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(o,r),r=o)}return r}function Yf(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function Wf(e,t,n){const r=e.treeAdapter.getTagName(t),i=hr(r);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(n);else{const s=e.treeAdapter.getNamespaceURI(t);i===l.TEMPLATE&&s===X.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function Gf(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,s=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,s),e.treeAdapter.appendChild(t,s),e.activeFormattingElements.insertElementAfterBookmark(s,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,s,i.tagID)}function Li(e,t){for(let n=0;n<Uf;n++){const r=$f(e,t);if(!r)break;const i=jf(e,r);if(!i)break;e.activeFormattingElements.bookmark=r;const s=qf(e,i,r.element),o=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(s),o&&Wf(e,o,s),Gf(e,i,r)}}function Ri(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function Vf(e,t){e._appendCommentNode(t,e.openElements.items[0])}function Kf(e,t){e._appendCommentNode(t,e.document)}function Pi(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(r);if(i&&!i.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const s=e.openElements.items[1],o=e.treeAdapter.getNodeSourceCodeLocation(s);o&&!o.endTag&&e._setEndLocation(s,t)}}}}function Xf(e,t){e._setDocumentType(t);const n=t.forceQuirks?ct.QUIRKS:Cf(t);Sf(t)||e._err(t,q.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=L.BEFORE_HTML}function Mn(e,t){e._err(t,q.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,ct.QUIRKS),e.insertionMode=L.BEFORE_HTML,e._processToken(t)}function Qf(e,t){t.tagID===l.HTML?(e._insertElement(t,X.HTML),e.insertionMode=L.BEFORE_HEAD):Bn(e,t)}function Zf(e,t){const n=t.tagID;(n===l.HTML||n===l.HEAD||n===l.BODY||n===l.BR)&&Bn(e,t)}function Bn(e,t){e._insertFakeRootElement(),e.insertionMode=L.BEFORE_HEAD,e._processToken(t)}function Jf(e,t){switch(t.tagID){case l.HTML:{We(e,t);break}case l.HEAD:{e._insertElement(t,X.HTML),e.headElement=e.openElements.current,e.insertionMode=L.IN_HEAD;break}default:Fn(e,t)}}function ep(e,t){const n=t.tagID;n===l.HEAD||n===l.BODY||n===l.HTML||n===l.BR?Fn(e,t):e._err(t,q.endTagWithoutMatchingOpenElement)}function Fn(e,t){e._insertFakeElement(H.HEAD,l.HEAD),e.headElement=e.openElements.current,e.insertionMode=L.IN_HEAD,e._processToken(t)}function mt(e,t){switch(t.tagID){case l.HTML:{We(e,t);break}case l.BASE:case l.BASEFONT:case l.BGSOUND:case l.LINK:case l.META:{e._appendElement(t,X.HTML),t.ackSelfClosing=!0;break}case l.TITLE:{e._switchToTextParsing(t,tt.RCDATA);break}case l.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,tt.RAWTEXT):(e._insertElement(t,X.HTML),e.insertionMode=L.IN_HEAD_NO_SCRIPT);break}case l.NOFRAMES:case l.STYLE:{e._switchToTextParsing(t,tt.RAWTEXT);break}case l.SCRIPT:{e._switchToTextParsing(t,tt.SCRIPT_DATA);break}case l.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=L.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(L.IN_TEMPLATE);break}case l.HEAD:{e._err(t,q.misplacedStartTagForHeadElement);break}default:Un(e,t)}}function tp(e,t){switch(t.tagID){case l.HEAD:{e.openElements.pop(),e.insertionMode=L.AFTER_HEAD;break}case l.BODY:case l.BR:case l.HTML:{Un(e,t);break}case l.TEMPLATE:{tn(e,t);break}default:e._err(t,q.endTagWithoutMatchingOpenElement)}}function tn(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==l.TEMPLATE&&e._err(t,q.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(l.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,q.endTagWithoutMatchingOpenElement)}function Un(e,t){e.openElements.pop(),e.insertionMode=L.AFTER_HEAD,e._processToken(t)}function np(e,t){switch(t.tagID){case l.HTML:{We(e,t);break}case l.BASEFONT:case l.BGSOUND:case l.HEAD:case l.LINK:case l.META:case l.NOFRAMES:case l.STYLE:{mt(e,t);break}case l.NOSCRIPT:{e._err(t,q.nestedNoscriptInHead);break}default:Hn(e,t)}}function rp(e,t){switch(t.tagID){case l.NOSCRIPT:{e.openElements.pop(),e.insertionMode=L.IN_HEAD;break}case l.BR:{Hn(e,t);break}default:e._err(t,q.endTagWithoutMatchingOpenElement)}}function Hn(e,t){const n=t.type===Te.EOF?q.openElementsLeftAfterEof:q.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=L.IN_HEAD,e._processToken(t)}function ip(e,t){switch(t.tagID){case l.HTML:{We(e,t);break}case l.BODY:{e._insertElement(t,X.HTML),e.framesetOk=!1,e.insertionMode=L.IN_BODY;break}case l.FRAMESET:{e._insertElement(t,X.HTML),e.insertionMode=L.IN_FRAMESET;break}case l.BASE:case l.BASEFONT:case l.BGSOUND:case l.LINK:case l.META:case l.NOFRAMES:case l.SCRIPT:case l.STYLE:case l.TEMPLATE:case l.TITLE:{e._err(t,q.abandonedHeadElementChild),e.openElements.push(e.headElement,l.HEAD),mt(e,t),e.openElements.remove(e.headElement);break}case l.HEAD:{e._err(t,q.misplacedStartTagForHeadElement);break}default:zn(e,t)}}function sp(e,t){switch(t.tagID){case l.BODY:case l.HTML:case l.BR:{zn(e,t);break}case l.TEMPLATE:{tn(e,t);break}default:e._err(t,q.endTagWithoutMatchingOpenElement)}}function zn(e,t){e._insertFakeElement(H.BODY,l.BODY),e.insertionMode=L.IN_BODY,mr(e,t)}function mr(e,t){switch(t.type){case Te.CHARACTER:{yo(e,t);break}case Te.WHITESPACE_CHARACTER:{Eo(e,t);break}case Te.COMMENT:{Ri(e,t);break}case Te.START_TAG:{We(e,t);break}case Te.END_TAG:{gr(e,t);break}case Te.EOF:{So(e,t);break}}}function Eo(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function yo(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function ap(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function op(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function up(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,X.HTML),e.insertionMode=L.IN_FRAMESET)}function lp(e,t){e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._insertElement(t,X.HTML)}function cp(e,t){e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&Ii.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,X.HTML)}function dp(e,t){e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._insertElement(t,X.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function hp(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._insertElement(t,X.HTML),n||(e.formElement=e.openElements.current))}function fp(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.tagIDs[r];if(n===l.LI&&i===l.LI||(n===l.DD||n===l.DT)&&(i===l.DD||i===l.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==l.ADDRESS&&i!==l.DIV&&i!==l.P&&e._isSpecialElement(e.openElements.items[r],i))break}e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._insertElement(t,X.HTML)}function pp(e,t){e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._insertElement(t,X.HTML),e.tokenizer.state=tt.PLAINTEXT}function mp(e,t){e.openElements.hasInScope(l.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(l.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,X.HTML),e.framesetOk=!1}function gp(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(H.A);n&&(Li(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,X.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function bp(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,X.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Ep(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(l.NOBR)&&(Li(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,X.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function yp(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,X.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Tp(e,t){e.treeAdapter.getDocumentMode(e.document)!==ct.QUIRKS&&e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._insertElement(t,X.HTML),e.framesetOk=!1,e.insertionMode=L.IN_TABLE}function To(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,X.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function _o(e){const t=Za(e,en.TYPE);return t!=null&&t.toLowerCase()===Ff}function _p(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,X.HTML),_o(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function kp(e,t){e._appendElement(t,X.HTML),t.ackSelfClosing=!0}function wp(e,t){e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._appendElement(t,X.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Ap(e,t){t.tagName=H.IMG,t.tagID=l.IMG,To(e,t)}function Sp(e,t){e._insertElement(t,X.HTML),e.skipNextNewLine=!0,e.tokenizer.state=tt.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=L.TEXT}function Cp(e,t){e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,tt.RAWTEXT)}function xp(e,t){e.framesetOk=!1,e._switchToTextParsing(t,tt.RAWTEXT)}function ko(e,t){e._switchToTextParsing(t,tt.RAWTEXT)}function Np(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,X.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===L.IN_TABLE||e.insertionMode===L.IN_CAPTION||e.insertionMode===L.IN_TABLE_BODY||e.insertionMode===L.IN_ROW||e.insertionMode===L.IN_CELL?L.IN_SELECT_IN_TABLE:L.IN_SELECT}function Ip(e,t){e.openElements.currentTagId===l.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,X.HTML)}function vp(e,t){e.openElements.hasInScope(l.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,X.HTML)}function Op(e,t){e.openElements.hasInScope(l.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(l.RTC),e._insertElement(t,X.HTML)}function Lp(e,t){e._reconstructActiveFormattingElements(),fo(t),Oi(t),t.selfClosing?e._appendElement(t,X.MATHML):e._insertElement(t,X.MATHML),t.ackSelfClosing=!0}function Rp(e,t){e._reconstructActiveFormattingElements(),po(t),Oi(t),t.selfClosing?e._appendElement(t,X.SVG):e._insertElement(t,X.SVG),t.ackSelfClosing=!0}function wo(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,X.HTML)}function We(e,t){switch(t.tagID){case l.I:case l.S:case l.B:case l.U:case l.EM:case l.TT:case l.BIG:case l.CODE:case l.FONT:case l.SMALL:case l.STRIKE:case l.STRONG:{bp(e,t);break}case l.A:{gp(e,t);break}case l.H1:case l.H2:case l.H3:case l.H4:case l.H5:case l.H6:{cp(e,t);break}case l.P:case l.DL:case l.OL:case l.UL:case l.DIV:case l.DIR:case l.NAV:case l.MAIN:case l.MENU:case l.ASIDE:case l.CENTER:case l.FIGURE:case l.FOOTER:case l.HEADER:case l.HGROUP:case l.DIALOG:case l.DETAILS:case l.ADDRESS:case l.ARTICLE:case l.SEARCH:case l.SECTION:case l.SUMMARY:case l.FIELDSET:case l.BLOCKQUOTE:case l.FIGCAPTION:{lp(e,t);break}case l.LI:case l.DD:case l.DT:{fp(e,t);break}case l.BR:case l.IMG:case l.WBR:case l.AREA:case l.EMBED:case l.KEYGEN:{To(e,t);break}case l.HR:{wp(e,t);break}case l.RB:case l.RTC:{vp(e,t);break}case l.RT:case l.RP:{Op(e,t);break}case l.PRE:case l.LISTING:{dp(e,t);break}case l.XMP:{Cp(e,t);break}case l.SVG:{Rp(e,t);break}case l.HTML:{ap(e,t);break}case l.BASE:case l.LINK:case l.META:case l.STYLE:case l.TITLE:case l.SCRIPT:case l.BGSOUND:case l.BASEFONT:case l.TEMPLATE:{mt(e,t);break}case l.BODY:{op(e,t);break}case l.FORM:{hp(e,t);break}case l.NOBR:{Ep(e,t);break}case l.MATH:{Lp(e,t);break}case l.TABLE:{Tp(e,t);break}case l.INPUT:{_p(e,t);break}case l.PARAM:case l.TRACK:case l.SOURCE:{kp(e,t);break}case l.IMAGE:{Ap(e,t);break}case l.BUTTON:{mp(e,t);break}case l.APPLET:case l.OBJECT:case l.MARQUEE:{yp(e,t);break}case l.IFRAME:{xp(e,t);break}case l.SELECT:{Np(e,t);break}case l.OPTION:case l.OPTGROUP:{Ip(e,t);break}case l.NOEMBED:case l.NOFRAMES:{ko(e,t);break}case l.FRAMESET:{up(e,t);break}case l.TEXTAREA:{Sp(e,t);break}case l.NOSCRIPT:{e.options.scriptingEnabled?ko(e,t):wo(e,t);break}case l.PLAINTEXT:{pp(e,t);break}case l.COL:case l.TH:case l.TD:case l.TR:case l.HEAD:case l.FRAME:case l.TBODY:case l.TFOOT:case l.THEAD:case l.CAPTION:case l.COLGROUP:break;default:wo(e,t)}}function Pp(e,t){if(e.openElements.hasInScope(l.BODY)&&(e.insertionMode=L.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function Dp(e,t){e.openElements.hasInScope(l.BODY)&&(e.insertionMode=L.AFTER_BODY,Ro(e,t))}function Mp(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function Bp(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(l.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(l.FORM):n&&e.openElements.remove(n))}function Fp(e){e.openElements.hasInButtonScope(l.P)||e._insertFakeElement(H.P,l.P),e._closePElement()}function Up(e){e.openElements.hasInListItemScope(l.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(l.LI),e.openElements.popUntilTagNamePopped(l.LI))}function Hp(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function zp(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function $p(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function jp(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(H.BR,l.BR),e.openElements.pop(),e.framesetOk=!1}function Ao(e,t){const n=t.tagName,r=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const s=e.openElements.items[i],o=e.openElements.tagIDs[i];if(r===o&&(r!==l.UNKNOWN||e.treeAdapter.getTagName(s)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(s,o))break}}function gr(e,t){switch(t.tagID){case l.A:case l.B:case l.I:case l.S:case l.U:case l.EM:case l.TT:case l.BIG:case l.CODE:case l.FONT:case l.NOBR:case l.SMALL:case l.STRIKE:case l.STRONG:{Li(e,t);break}case l.P:{Fp(e);break}case l.DL:case l.UL:case l.OL:case l.DIR:case l.DIV:case l.NAV:case l.PRE:case l.MAIN:case l.MENU:case l.ASIDE:case l.BUTTON:case l.CENTER:case l.FIGURE:case l.FOOTER:case l.HEADER:case l.HGROUP:case l.DIALOG:case l.ADDRESS:case l.ARTICLE:case l.DETAILS:case l.SEARCH:case l.SECTION:case l.SUMMARY:case l.LISTING:case l.FIELDSET:case l.BLOCKQUOTE:case l.FIGCAPTION:{Mp(e,t);break}case l.LI:{Up(e);break}case l.DD:case l.DT:{Hp(e,t);break}case l.H1:case l.H2:case l.H3:case l.H4:case l.H5:case l.H6:{zp(e);break}case l.BR:{jp(e);break}case l.BODY:{Pp(e,t);break}case l.HTML:{Dp(e,t);break}case l.FORM:{Bp(e);break}case l.APPLET:case l.OBJECT:case l.MARQUEE:{$p(e,t);break}case l.TEMPLATE:{tn(e,t);break}default:Ao(e,t)}}function So(e,t){e.tmplInsertionModeStack.length>0?Lo(e,t):Pi(e,t)}function qp(e,t){var n;t.tagID===l.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function Yp(e,t){e._err(t,q.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Di(e,t){if(e.openElements.currentTagId!==void 0&&mo.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=L.IN_TABLE_TEXT,t.type){case Te.CHARACTER:{xo(e,t);break}case Te.WHITESPACE_CHARACTER:{Co(e,t);break}}else jn(e,t)}function Wp(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,X.HTML),e.insertionMode=L.IN_CAPTION}function Gp(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,X.HTML),e.insertionMode=L.IN_COLUMN_GROUP}function Vp(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(H.COLGROUP,l.COLGROUP),e.insertionMode=L.IN_COLUMN_GROUP,Mi(e,t)}function Kp(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,X.HTML),e.insertionMode=L.IN_TABLE_BODY}function Xp(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(H.TBODY,l.TBODY),e.insertionMode=L.IN_TABLE_BODY,Er(e,t)}function Qp(e,t){e.openElements.hasInTableScope(l.TABLE)&&(e.openElements.popUntilTagNamePopped(l.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function Zp(e,t){_o(t)?e._appendElement(t,X.HTML):jn(e,t),t.ackSelfClosing=!0}function Jp(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,X.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function mn(e,t){switch(t.tagID){case l.TD:case l.TH:case l.TR:{Xp(e,t);break}case l.STYLE:case l.SCRIPT:case l.TEMPLATE:{mt(e,t);break}case l.COL:{Vp(e,t);break}case l.FORM:{Jp(e,t);break}case l.TABLE:{Qp(e,t);break}case l.TBODY:case l.TFOOT:case l.THEAD:{Kp(e,t);break}case l.INPUT:{Zp(e,t);break}case l.CAPTION:{Wp(e,t);break}case l.COLGROUP:{Gp(e,t);break}default:jn(e,t)}}function $n(e,t){switch(t.tagID){case l.TABLE:{e.openElements.hasInTableScope(l.TABLE)&&(e.openElements.popUntilTagNamePopped(l.TABLE),e._resetInsertionMode());break}case l.TEMPLATE:{tn(e,t);break}case l.BODY:case l.CAPTION:case l.COL:case l.COLGROUP:case l.HTML:case l.TBODY:case l.TD:case l.TFOOT:case l.TH:case l.THEAD:case l.TR:break;default:jn(e,t)}}function jn(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,mr(e,t),e.fosterParentingEnabled=n}function Co(e,t){e.pendingCharacterTokens.push(t)}function xo(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function qn(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)jn(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const No=new Set([l.CAPTION,l.COL,l.COLGROUP,l.TBODY,l.TD,l.TFOOT,l.TH,l.THEAD,l.TR]);function e0(e,t){const n=t.tagID;No.has(n)?e.openElements.hasInTableScope(l.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(l.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=L.IN_TABLE,mn(e,t)):We(e,t)}function t0(e,t){const n=t.tagID;switch(n){case l.CAPTION:case l.TABLE:{e.openElements.hasInTableScope(l.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(l.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=L.IN_TABLE,n===l.TABLE&&$n(e,t));break}case l.BODY:case l.COL:case l.COLGROUP:case l.HTML:case l.TBODY:case l.TD:case l.TFOOT:case l.TH:case l.THEAD:case l.TR:break;default:gr(e,t)}}function Mi(e,t){switch(t.tagID){case l.HTML:{We(e,t);break}case l.COL:{e._appendElement(t,X.HTML),t.ackSelfClosing=!0;break}case l.TEMPLATE:{mt(e,t);break}default:br(e,t)}}function n0(e,t){switch(t.tagID){case l.COLGROUP:{e.openElements.currentTagId===l.COLGROUP&&(e.openElements.pop(),e.insertionMode=L.IN_TABLE);break}case l.TEMPLATE:{tn(e,t);break}case l.COL:break;default:br(e,t)}}function br(e,t){e.openElements.currentTagId===l.COLGROUP&&(e.openElements.pop(),e.insertionMode=L.IN_TABLE,e._processToken(t))}function Er(e,t){switch(t.tagID){case l.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,X.HTML),e.insertionMode=L.IN_ROW;break}case l.TH:case l.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(H.TR,l.TR),e.insertionMode=L.IN_ROW,yr(e,t);break}case l.CAPTION:case l.COL:case l.COLGROUP:case l.TBODY:case l.TFOOT:case l.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=L.IN_TABLE,mn(e,t));break}default:mn(e,t)}}function Bi(e,t){const n=t.tagID;switch(t.tagID){case l.TBODY:case l.TFOOT:case l.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=L.IN_TABLE);break}case l.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=L.IN_TABLE,$n(e,t));break}case l.BODY:case l.CAPTION:case l.COL:case l.COLGROUP:case l.HTML:case l.TD:case l.TH:case l.TR:break;default:$n(e,t)}}function yr(e,t){switch(t.tagID){case l.TH:case l.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,X.HTML),e.insertionMode=L.IN_CELL,e.activeFormattingElements.insertMarker();break}case l.CAPTION:case l.COL:case l.COLGROUP:case l.TBODY:case l.TFOOT:case l.THEAD:case l.TR:{e.openElements.hasInTableScope(l.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=L.IN_TABLE_BODY,Er(e,t));break}default:mn(e,t)}}function Io(e,t){switch(t.tagID){case l.TR:{e.openElements.hasInTableScope(l.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=L.IN_TABLE_BODY);break}case l.TABLE:{e.openElements.hasInTableScope(l.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=L.IN_TABLE_BODY,Bi(e,t));break}case l.TBODY:case l.TFOOT:case l.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(l.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=L.IN_TABLE_BODY,Bi(e,t));break}case l.BODY:case l.CAPTION:case l.COL:case l.COLGROUP:case l.HTML:case l.TD:case l.TH:break;default:$n(e,t)}}function r0(e,t){const n=t.tagID;No.has(n)?(e.openElements.hasInTableScope(l.TD)||e.openElements.hasInTableScope(l.TH))&&(e._closeTableCell(),yr(e,t)):We(e,t)}function i0(e,t){const n=t.tagID;switch(n){case l.TD:case l.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=L.IN_ROW);break}case l.TABLE:case l.TBODY:case l.TFOOT:case l.THEAD:case l.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),Io(e,t));break}case l.BODY:case l.CAPTION:case l.COL:case l.COLGROUP:case l.HTML:break;default:gr(e,t)}}function vo(e,t){switch(t.tagID){case l.HTML:{We(e,t);break}case l.OPTION:{e.openElements.currentTagId===l.OPTION&&e.openElements.pop(),e._insertElement(t,X.HTML);break}case l.OPTGROUP:{e.openElements.currentTagId===l.OPTION&&e.openElements.pop(),e.openElements.currentTagId===l.OPTGROUP&&e.openElements.pop(),e._insertElement(t,X.HTML);break}case l.HR:{e.openElements.currentTagId===l.OPTION&&e.openElements.pop(),e.openElements.currentTagId===l.OPTGROUP&&e.openElements.pop(),e._appendElement(t,X.HTML),t.ackSelfClosing=!0;break}case l.INPUT:case l.KEYGEN:case l.TEXTAREA:case l.SELECT:{e.openElements.hasInSelectScope(l.SELECT)&&(e.openElements.popUntilTagNamePopped(l.SELECT),e._resetInsertionMode(),t.tagID!==l.SELECT&&e._processStartTag(t));break}case l.SCRIPT:case l.TEMPLATE:{mt(e,t);break}}}function Oo(e,t){switch(t.tagID){case l.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===l.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===l.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===l.OPTGROUP&&e.openElements.pop();break}case l.OPTION:{e.openElements.currentTagId===l.OPTION&&e.openElements.pop();break}case l.SELECT:{e.openElements.hasInSelectScope(l.SELECT)&&(e.openElements.popUntilTagNamePopped(l.SELECT),e._resetInsertionMode());break}case l.TEMPLATE:{tn(e,t);break}}}function s0(e,t){const n=t.tagID;n===l.CAPTION||n===l.TABLE||n===l.TBODY||n===l.TFOOT||n===l.THEAD||n===l.TR||n===l.TD||n===l.TH?(e.openElements.popUntilTagNamePopped(l.SELECT),e._resetInsertionMode(),e._processStartTag(t)):vo(e,t)}function a0(e,t){const n=t.tagID;n===l.CAPTION||n===l.TABLE||n===l.TBODY||n===l.TFOOT||n===l.THEAD||n===l.TR||n===l.TD||n===l.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(l.SELECT),e._resetInsertionMode(),e.onEndTag(t)):Oo(e,t)}function o0(e,t){switch(t.tagID){case l.BASE:case l.BASEFONT:case l.BGSOUND:case l.LINK:case l.META:case l.NOFRAMES:case l.SCRIPT:case l.STYLE:case l.TEMPLATE:case l.TITLE:{mt(e,t);break}case l.CAPTION:case l.COLGROUP:case l.TBODY:case l.TFOOT:case l.THEAD:{e.tmplInsertionModeStack[0]=L.IN_TABLE,e.insertionMode=L.IN_TABLE,mn(e,t);break}case l.COL:{e.tmplInsertionModeStack[0]=L.IN_COLUMN_GROUP,e.insertionMode=L.IN_COLUMN_GROUP,Mi(e,t);break}case l.TR:{e.tmplInsertionModeStack[0]=L.IN_TABLE_BODY,e.insertionMode=L.IN_TABLE_BODY,Er(e,t);break}case l.TD:case l.TH:{e.tmplInsertionModeStack[0]=L.IN_ROW,e.insertionMode=L.IN_ROW,yr(e,t);break}default:e.tmplInsertionModeStack[0]=L.IN_BODY,e.insertionMode=L.IN_BODY,We(e,t)}}function u0(e,t){t.tagID===l.TEMPLATE&&tn(e,t)}function Lo(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(l.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Pi(e,t)}function l0(e,t){t.tagID===l.HTML?We(e,t):Tr(e,t)}function Ro(e,t){var n;if(t.tagID===l.HTML){if(e.fragmentContext||(e.insertionMode=L.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===l.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else Tr(e,t)}function Tr(e,t){e.insertionMode=L.IN_BODY,mr(e,t)}function c0(e,t){switch(t.tagID){case l.HTML:{We(e,t);break}case l.FRAMESET:{e._insertElement(t,X.HTML);break}case l.FRAME:{e._appendElement(t,X.HTML),t.ackSelfClosing=!0;break}case l.NOFRAMES:{mt(e,t);break}}}function d0(e,t){t.tagID===l.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==l.FRAMESET&&(e.insertionMode=L.AFTER_FRAMESET))}function h0(e,t){switch(t.tagID){case l.HTML:{We(e,t);break}case l.NOFRAMES:{mt(e,t);break}}}function f0(e,t){t.tagID===l.HTML&&(e.insertionMode=L.AFTER_AFTER_FRAMESET)}function p0(e,t){t.tagID===l.HTML?We(e,t):_r(e,t)}function _r(e,t){e.insertionMode=L.IN_BODY,mr(e,t)}function m0(e,t){switch(t.tagID){case l.HTML:{We(e,t);break}case l.NOFRAMES:{mt(e,t);break}}}function g0(e,t){t.chars=ve,e._insertCharacters(t)}function b0(e,t){e._insertCharacters(t),e.framesetOk=!1}function Po(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==X.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function E0(e,t){if(Rf(t))Po(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===X.MATHML?fo(t):r===X.SVG&&(Pf(t),po(t)),Oi(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function y0(e,t){if(t.tagID===l.P||t.tagID===l.BR){Po(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===X.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}H.AREA,H.BASE,H.BASEFONT,H.BGSOUND,H.BR,H.COL,H.EMBED,H.FRAME,H.HR,H.IMG,H.INPUT,H.KEYGEN,H.LINK,H.META,H.PARAM,H.SOURCE,H.TRACK,H.WBR;function T0(e,t){return bo.parse(e,t)}function _0(e,t,n){typeof e=="string"&&(n=t,t=e,e=null);const r=bo.getFragmentParser(e,n);return r.tokenizer.write(t,!0),r.getFragment()}function k0(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Do(e.position):"start"in e||"end"in e?Do(e):"line"in e||"column"in e?Fi(e):""}function Fi(e){return Mo(e&&e.line)+":"+Mo(e&&e.column)}function Do(e){return Fi(e&&e.start)+"-"+Fi(e&&e.end)}function Mo(e){return e&&typeof e=="number"?e:1}class Ze extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",s={},o=!1;if(n&&("line"in n&&"column"in n?s={place:n}:"start"in n&&"end"in n?s={place:n}:"type"in n?s={ancestors:[n],place:n.position}:s={...n}),typeof t=="string"?i=t:!s.cause&&t&&(o=!0,i=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?s.ruleId=r:(s.source=r.slice(0,u),s.ruleId=r.slice(u+1))}if(!s.place&&s.ancestors&&s.ancestors){const u=s.ancestors[s.ancestors.length-1];u&&(s.place=u.position)}const a=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=k0(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=o&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Ze.prototype.file="",Ze.prototype.name="",Ze.prototype.reason="",Ze.prototype.message="",Ze.prototype.stack="",Ze.prototype.column=void 0,Ze.prototype.line=void 0,Ze.prototype.ancestors=void 0,Ze.prototype.cause=void 0,Ze.prototype.fatal=void 0,Ze.prototype.place=void 0,Ze.prototype.ruleId=void 0,Ze.prototype.source=void 0;const At={basename:w0,dirname:A0,extname:S0,join:C0,sep:"/"};function w0(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Yn(e);let n=0,r=-1,i=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(s){n=i+1;break}}else r<0&&(s=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,a=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(s){n=i+1;break}}else o<0&&(s=!0,o=i+1),a>-1&&(e.codePointAt(i)===t.codePointAt(a--)?a<0&&(r=i):(a=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function A0(e){if(Yn(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function S0(e){Yn(e);let t=e.length,n=-1,r=0,i=-1,s=0,o;for(;t--;){const a=e.codePointAt(t);if(a===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),a===46?i<0?i=t:s!==1&&(s=1):i>-1&&(s=-1)}return i<0||n<0||s===0||s===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function C0(...e){let t=-1,n;for(;++t<e.length;)Yn(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":x0(n)}function x0(e){Yn(e);const t=e.codePointAt(0)===47;let n=N0(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function N0(e,t){let n="",r=0,i=-1,s=0,o=-1,a,u;for(;++o<=e.length;){if(o<e.length)a=e.codePointAt(o);else{if(a===47)break;a=47}if(a===47){if(!(i===o-1||s===1))if(i!==o-1&&s===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),i=o,s=0;continue}}else if(n.length>0){n="",r=0,i=o,s=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,s=0}else a===46&&s>-1?s++:s=-1}return n}function Yn(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const I0={cwd:v0};function v0(){return"/"}function Ui(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function O0(e){if(typeof e=="string")e=new URL(e);else if(!Ui(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return L0(e)}function L0(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Hi=["history","path","basename","stem","extname","dirname"];class Bo{constructor(t){let n;t?Ui(t)?n={path:t}:typeof t=="string"||R0(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":I0.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Hi.length;){const s=Hi[r];s in n&&n[s]!==void 0&&n[s]!==null&&(this[s]=s==="history"?[...n[s]]:n[s])}let i;for(i in n)Hi.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?At.basename(this.path):void 0}set basename(t){$i(t,"basename"),zi(t,"basename"),this.path=At.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?At.dirname(this.path):void 0}set dirname(t){Fo(this.basename,"dirname"),this.path=At.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?At.extname(this.path):void 0}set extname(t){if(zi(t,"extname"),Fo(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=At.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Ui(t)&&(t=O0(t)),$i(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?At.basename(this.path,this.extname):void 0}set stem(t){$i(t,"stem"),zi(t,"stem"),this.path=At.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new Ze(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function zi(e,t){if(e&&e.includes(At.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+At.sep+"`")}function $i(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Fo(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function R0(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const P0={abandonedHeadElementChild:{reason:"Unexpected metadata element after head",description:"Unexpected element after head. Expected the element before `</head>`",url:!1},abruptClosingOfEmptyComment:{reason:"Unexpected abruptly closed empty comment",description:"Unexpected `>` or `->`. Expected `-->` to close comments"},abruptDoctypePublicIdentifier:{reason:"Unexpected abruptly closed public identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the public identifier"},abruptDoctypeSystemIdentifier:{reason:"Unexpected abruptly closed system identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the identifier identifier"},absenceOfDigitsInNumericCharacterReference:{reason:"Unexpected non-digit at start of numeric character reference",description:"Unexpected `%c`. Expected `[0-9]` for decimal references or `[0-9a-fA-F]` for hexadecimal references"},cdataInHtmlContent:{reason:"Unexpected CDATA section in HTML",description:"Unexpected `<![CDATA[` in HTML. Remove it, use a comment, or encode special characters instead"},characterReferenceOutsideUnicodeRange:{reason:"Unexpected too big numeric character reference",description:"Unexpectedly high character reference. Expected character references to be at most hexadecimal 10ffff (or decimal 1114111)"},closingOfElementWithOpenChildElements:{reason:"Unexpected closing tag with open child elements",description:"Unexpectedly closing tag. Expected other tags to be closed first",url:!1},controlCharacterInInputStream:{reason:"Unexpected control character",description:"Unexpected control character `%x`. Expected a non-control code point, 0x00, or ASCII whitespace"},controlCharacterReference:{reason:"Unexpected control character reference",description:"Unexpectedly control character in reference. Expected a non-control code point, 0x00, or ASCII whitespace"},disallowedContentInNoscriptInHead:{reason:"Disallowed content inside `<noscript>` in `<head>`",description:"Unexpected text character `%c`. Only use text in `<noscript>`s in `<body>`",url:!1},duplicateAttribute:{reason:"Unexpected duplicate attribute",description:"Unexpectedly double attribute. Expected attributes to occur only once"},endTagWithAttributes:{reason:"Unexpected attribute on closing tag",description:"Unexpected attribute. Expected `>` instead"},endTagWithTrailingSolidus:{reason:"Unexpected slash at end of closing tag",description:"Unexpected `%c-1`. Expected `>` instead"},endTagWithoutMatchingOpenElement:{reason:"Unexpected unopened end tag",description:"Unexpected end tag. Expected no end tag or another end tag",url:!1},eofBeforeTagName:{reason:"Unexpected end of file",description:"Unexpected end of file. Expected tag name instead"},eofInCdata:{reason:"Unexpected end of file in CDATA",description:"Unexpected end of file. Expected `]]>` to close the CDATA"},eofInComment:{reason:"Unexpected end of file in comment",description:"Unexpected end of file. Expected `-->` to close the comment"},eofInDoctype:{reason:"Unexpected end of file in doctype",description:"Unexpected end of file. Expected a valid doctype (such as `<!doctype html>`)"},eofInElementThatCanContainOnlyText:{reason:"Unexpected end of file in element that can only contain text",description:"Unexpected end of file. Expected text or a closing tag",url:!1},eofInScriptHtmlCommentLikeText:{reason:"Unexpected end of file in comment inside script",description:"Unexpected end of file. Expected `-->` to close the comment"},eofInTag:{reason:"Unexpected end of file in tag",description:"Unexpected end of file. Expected `>` to close the tag"},incorrectlyClosedComment:{reason:"Incorrectly closed comment",description:"Unexpected `%c-1`. Expected `-->` to close the comment"},incorrectlyOpenedComment:{reason:"Incorrectly opened comment",description:"Unexpected `%c`. Expected `<!--` to open the comment"},invalidCharacterSequenceAfterDoctypeName:{reason:"Invalid sequence after doctype name",description:"Unexpected sequence at `%c`. Expected `public` or `system`"},invalidFirstCharacterOfTagName:{reason:"Invalid first character in tag name",description:"Unexpected `%c`. Expected an ASCII letter instead"},misplacedDoctype:{reason:"Misplaced doctype",description:"Unexpected doctype. Expected doctype before head",url:!1},misplacedStartTagForHeadElement:{reason:"Misplaced `<head>` start tag",description:"Unexpected start tag `<head>`. Expected `<head>` directly after doctype",url:!1},missingAttributeValue:{reason:"Missing attribute value",description:"Unexpected `%c-1`. Expected an attribute value or no `%c-1` instead"},missingDoctype:{reason:"Missing doctype before other content",description:"Expected a `<!doctype html>` before anything else",url:!1},missingDoctypeName:{reason:"Missing doctype name",description:"Unexpected doctype end at `%c`. Expected `html` instead"},missingDoctypePublicIdentifier:{reason:"Missing public identifier in doctype",description:"Unexpected `%c`. Expected identifier for `public` instead"},missingDoctypeSystemIdentifier:{reason:"Missing system identifier in doctype",description:'Unexpected `%c`. Expected identifier for `system` instead (suggested: `"about:legacy-compat"`)'},missingEndTagName:{reason:"Missing name in end tag",description:"Unexpected `%c`. Expected an ASCII letter instead"},missingQuoteBeforeDoctypePublicIdentifier:{reason:"Missing quote before public identifier in doctype",description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingQuoteBeforeDoctypeSystemIdentifier:{reason:"Missing quote before system identifier in doctype",description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingSemicolonAfterCharacterReference:{reason:"Missing semicolon after character reference",description:"Unexpected `%c`. Expected `;` instead"},missingWhitespaceAfterDoctypePublicKeyword:{reason:"Missing whitespace after public identifier in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceAfterDoctypeSystemKeyword:{reason:"Missing whitespace after system identifier in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBeforeDoctypeName:{reason:"Missing whitespace before doctype name",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenAttributes:{reason:"Missing whitespace between attributes",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:{reason:"Missing whitespace between public and system identifiers in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},nestedComment:{reason:"Unexpected nested comment",description:"Unexpected `<!--`. Expected `-->`"},nestedNoscriptInHead:{reason:"Unexpected nested `<noscript>` in `<head>`",description:"Unexpected `<noscript>`. Expected a closing tag or a meta element",url:!1},nonConformingDoctype:{reason:"Unexpected non-conforming doctype declaration",description:'Expected `<!doctype html>` or `<!doctype html system "about:legacy-compat">`',url:!1},nonVoidHtmlElementStartTagWithTrailingSolidus:{reason:"Unexpected trailing slash on start tag of non-void element",description:"Unexpected `/`. Expected `>` instead"},noncharacterCharacterReference:{reason:"Unexpected noncharacter code point referenced by character reference",description:"Unexpected code point. Do not use noncharacters in HTML"},noncharacterInInputStream:{reason:"Unexpected noncharacter character",description:"Unexpected code point `%x`. Do not use noncharacters in HTML"},nullCharacterReference:{reason:"Unexpected NULL character referenced by character reference",description:"Unexpected code point. Do not use NULL characters in HTML"},openElementsLeftAfterEof:{reason:"Unexpected end of file",description:"Unexpected end of file. Expected closing tag instead",url:!1},surrogateCharacterReference:{reason:"Unexpected surrogate character referenced by character reference",description:"Unexpected code point. Do not use lone surrogate characters in HTML"},surrogateInInputStream:{reason:"Unexpected surrogate character",description:"Unexpected code point `%x`. Do not use lone surrogate characters in HTML"},unexpectedCharacterAfterDoctypeSystemIdentifier:{reason:"Invalid character after system identifier in doctype",description:"Unexpected character at `%c`. Expected `>`"},unexpectedCharacterInAttributeName:{reason:"Unexpected character in attribute name",description:"Unexpected `%c`. Expected whitespace, `/`, `>`, `=`, or probably an ASCII letter"},unexpectedCharacterInUnquotedAttributeValue:{reason:"Unexpected character in unquoted attribute value",description:"Unexpected `%c`. Quote the attribute value to include it"},unexpectedEqualsSignBeforeAttributeName:{reason:"Unexpected equals sign before attribute name",description:"Unexpected `%c`. Add an attribute name before it"},unexpectedNullCharacter:{reason:"Unexpected NULL character",description:"Unexpected code point `%x`. Do not use NULL characters in HTML"},unexpectedQuestionMarkInsteadOfTagName:{reason:"Unexpected question mark instead of tag name",description:"Unexpected `%c`. Expected an ASCII letter instead"},unexpectedSolidusInTag:{reason:"Unexpected slash in tag",description:"Unexpected `%c-1`. Expected it followed by `>` or in a quoted attribute value"},unknownNamedCharacterReference:{reason:"Unexpected unknown named character reference",description:"Unexpected character reference. Expected known named character references"}},D0="https://html.spec.whatwg.org/multipage/parsing.html#parse-error-",M0=/-[a-z]/g,B0=/%c(?:([-+])(\d+))?/g,F0=/%x/g,U0={2:!0,1:!1,0:null},H0={};function z0(e,t){const n=t||H0,r=n.onerror,i=e instanceof Bo?e:new Bo(e),s=n.fragment?_0:T0,o=String(i),a=s(o,{sourceCodeLocationInfo:!0,onParseError:n.onerror?u:null,scriptingEnabled:!1});return $h(a,{file:i,space:n.space,verbose:n.verbose});function u(c){const d=c.code,h=$0(d),b=n[h],f=b??!0,m=typeof f=="number"?f:f?1:0;if(m){const _=P0[h],p=new Ze(g(_.reason),{place:{start:{line:c.startLine,column:c.startCol,offset:c.startOffset},end:{line:c.endLine,column:c.endCol,offset:c.endOffset}},ruleId:d,source:"hast-util-from-html"});i.path&&(p.file=i.path,p.name=i.path+":"+p.name),p.fatal=U0[m],p.note=g(_.description),p.url=_.url===!1?void 0:D0+d,r(p)}function g(_){return _.replace(B0,p).replace(F0,y);function p(C,O,D){const B=(D?Number.parseInt(D,10):0)*(O==="-"?-1:1),A=o.charAt(c.startOffset+B);return q0(A)}function y(){return Y0(o.charCodeAt(c.startOffset))}}}}function $0(e){return e.replace(M0,j0)}function j0(e){return e.charAt(1).toUpperCase()}function q0(e){return e==="`"?"` ` `":e}function Y0(e){return"0x"+e.toString(16).toUpperCase()}const qt=0,ne=1,pe=2,Be=3,xe=4,gt=5,kr=6,Ge=7,nt=8,ge=9,fe=10,Oe=11,be=12,Le=13,Wn=14,rt=15,Ve=16,Ke=17,it=18,at=19,dt=20,_e=21,de=22,ze=23,ot=24,qe=25,W0=0;function Ye(e){return e>=48&&e<=57}function Yt(e){return Ye(e)||e>=65&&e<=70||e>=97&&e<=102}function ji(e){return e>=65&&e<=90}function G0(e){return e>=97&&e<=122}function V0(e){return ji(e)||G0(e)}function K0(e){return e>=128}function wr(e){return V0(e)||K0(e)||e===95}function Uo(e){return wr(e)||Ye(e)||e===45}function X0(e){return e>=0&&e<=8||e===11||e>=14&&e<=31||e===127}function Ar(e){return e===10||e===13||e===12}function nn(e){return Ar(e)||e===32||e===9}function St(e,t){return!(e!==92||Ar(t)||t===W0)}function Sr(e,t,n){return e===45?wr(t)||t===45||St(t,n):wr(e)?!0:e===92?St(e,t):!1}function qi(e,t,n){return e===43||e===45?Ye(t)?2:t===46&&Ye(n)?3:0:e===46?Ye(t)?2:0:Ye(e)?1:0}function Ho(e){return e===65279||e===65534?1:0}const Yi=new Array(128),Q0=128,Cr=130,zo=131,Wi=132,$o=133;for(let e=0;e<Yi.length;e++)Yi[e]=nn(e)&&Cr||Ye(e)&&zo||wr(e)&&Wi||X0(e)&&$o||e||Q0;function Gi(e){return e<128?Yi[e]:Wi}function gn(e,t){return t<e.length?e.charCodeAt(t):0}function Vi(e,t,n){return n===13&&gn(e,t+1)===10?2:1}function bn(e,t,n){let r=e.charCodeAt(t);return ji(r)&&(r=r|32),r===n}function Gn(e,t,n,r){if(n-t!==r.length||t<0||n>e.length)return!1;for(let i=t;i<n;i++){const s=r.charCodeAt(i-t);let o=e.charCodeAt(i);if(ji(o)&&(o=o|32),o!==s)return!1}return!0}function Z0(e,t){for(;t>=0&&nn(e.charCodeAt(t));t--);return t+1}function xr(e,t){for(;t<e.length&&nn(e.charCodeAt(t));t++);return t}function Ki(e,t){for(;t<e.length&&Ye(e.charCodeAt(t));t++);return t}function En(e,t){if(t+=2,Yt(gn(e,t-1))){for(const r=Math.min(e.length,t+5);t<r&&Yt(gn(e,t));t++);const n=gn(e,t);nn(n)&&(t+=Vi(e,t,n))}return t}function Nr(e,t){for(;t<e.length;t++){const n=e.charCodeAt(t);if(!Uo(n)){if(St(n,gn(e,t+1))){t=En(e,t)-1;continue}break}}return t}function Ir(e,t){let n=e.charCodeAt(t);if((n===43||n===45)&&(n=e.charCodeAt(t+=1)),Ye(n)&&(t=Ki(e,t+1),n=e.charCodeAt(t)),n===46&&Ye(e.charCodeAt(t+1))&&(t+=2,t=Ki(e,t)),bn(e,t,101)){let r=0;n=e.charCodeAt(t+1),(n===45||n===43)&&(r=1,n=e.charCodeAt(t+2)),Ye(n)&&(t=Ki(e,t+1+r+1))}return t}function Xi(e,t){for(;t<e.length;t++){const n=e.charCodeAt(t);if(n===41){t++;break}St(n,gn(e,t+1))&&(t=En(e,t))}return t}function jo(e){if(e.length===1&&!Yt(e.charCodeAt(0)))return e[0];let t=parseInt(e,16);return(t===0||t>=55296&&t<=57343||t>1114111)&&(t=65533),String.fromCodePoint(t)}const Qi=["EOF-token","ident-token","function-token","at-keyword-token","hash-token","string-token","bad-string-token","url-token","bad-url-token","delim-token","number-token","percentage-token","dimension-token","whitespace-token","CDO-token","CDC-token","colon-token","semicolon-token","comma-token","[-token","]-token","(-token",")-token","{-token","}-token","comment-token"],J0=16*1024;function vr(e=null,t){return e===null||e.length<t?new Uint32Array(Math.max(t+1024,J0)):e}const qo=10,em=12,Yo=13;function Wo(e){const t=e.source,n=t.length,r=t.length>0?Ho(t.charCodeAt(0)):0,i=vr(e.lines,n),s=vr(e.columns,n);let o=e.startLine,a=e.startColumn;for(let u=r;u<n;u++){const c=t.charCodeAt(u);i[u]=o,s[u]=a++,(c===qo||c===Yo||c===em)&&(c===Yo&&u+1<n&&t.charCodeAt(u+1)===qo&&(u++,i[u]=o,s[u]=a),o++,a=1)}i[n]=o,s[n]=a,e.lines=i,e.columns=s,e.computed=!0}class tm{constructor(t,n,r,i){this.setSource(t,n,r,i),this.lines=null,this.columns=null}setSource(t="",n=0,r=1,i=1){this.source=t,this.startOffset=n,this.startLine=r,this.startColumn=i,this.computed=!1}getLocation(t,n){return this.computed||Wo(this),{source:n,offset:this.startOffset+t,line:this.lines[t],column:this.columns[t]}}getLocationRange(t,n,r){return this.computed||Wo(this),{source:r,start:{offset:this.startOffset+t,line:this.lines[t],column:this.columns[t]},end:{offset:this.startOffset+n,line:this.lines[n],column:this.columns[n]}}}}const bt=16777215,Et=24,Vn=1,Or=2,Wt=new Uint8Array(32);Wt[pe]=de,Wt[_e]=de,Wt[at]=dt,Wt[ze]=ot;const yt=new Uint8Array(32);yt[pe]=Vn,yt[_e]=Vn,yt[at]=Vn,yt[ze]=Vn,yt[de]=Or,yt[dt]=Or,yt[ot]=Or;function Go(e,t,n){return e<t?t:e>n?n:e}class nm{constructor(t,n){this.setSource(t,n)}reset(){this.eof=!1,this.tokenIndex=-1,this.tokenType=0,this.tokenStart=this.firstCharOffset,this.tokenEnd=this.firstCharOffset}setSource(t="",n=()=>{}){t=String(t||"");const r=t.length,i=vr(this.offsetAndType,t.length+1),s=vr(this.balance,t.length+1);let o=0,a=-1,u=0,c=t.length;this.offsetAndType=null,this.balance=null,s.fill(0),n(t,(d,h,b)=>{const f=o++;if(i[f]=d<<Et|b,a===-1&&(a=h),s[f]=c,d===u){const m=s[c];s[c]=f,c=m,u=Wt[i[m]>>Et]}else this.isBlockOpenerTokenType(d)&&(c=f,u=Wt[d])}),i[o]=qt<<Et|r,s[o]=o;for(let d=0;d<o;d++){const h=s[d];if(h<=d){const b=s[h];b!==d&&(s[d]=b)}else h>o&&(s[d]=o)}this.source=t,this.firstCharOffset=a===-1?0:a,this.tokenCount=o,this.offsetAndType=i,this.balance=s,this.reset(),this.next()}lookupType(t){return t+=this.tokenIndex,t<this.tokenCount?this.offsetAndType[t]>>Et:qt}lookupTypeNonSC(t){for(let n=this.tokenIndex;n<this.tokenCount;n++){const r=this.offsetAndType[n]>>Et;if(r!==Le&&r!==qe&&t--===0)return r}return qt}lookupOffset(t){return t+=this.tokenIndex,t<this.tokenCount?this.offsetAndType[t-1]&bt:this.source.length}lookupOffsetNonSC(t){for(let n=this.tokenIndex;n<this.tokenCount;n++){const r=this.offsetAndType[n]>>Et;if(r!==Le&&r!==qe&&t--===0)return n-this.tokenIndex}return qt}lookupValue(t,n){return t+=this.tokenIndex,t<this.tokenCount?Gn(this.source,this.offsetAndType[t-1]&bt,this.offsetAndType[t]&bt,n):!1}getTokenStart(t){return t===this.tokenIndex?this.tokenStart:t>0?t<this.tokenCount?this.offsetAndType[t-1]&bt:this.offsetAndType[this.tokenCount]&bt:this.firstCharOffset}getTokenEnd(t){return t===this.tokenIndex?this.tokenEnd:this.offsetAndType[Go(t,0,this.tokenCount)]&bt}getTokenType(t){return t===this.tokenIndex?this.tokenType:this.offsetAndType[Go(t,0,this.tokenCount)]>>Et}substrToCursor(t){return this.source.substring(t,this.tokenStart)}isBlockOpenerTokenType(t){return yt[t]===Vn}isBlockCloserTokenType(t){return yt[t]===Or}getBlockTokenPairIndex(t){const n=this.getTokenType(t);if(yt[n]===1){const r=this.balance[t],i=this.getTokenType(r);return Wt[n]===i?r:-1}else if(yt[n]===2){const r=this.balance[t],i=this.getTokenType(r);return Wt[i]===n?r:-1}return-1}isBalanceEdge(t){return this.balance[this.tokenIndex]<t}isDelim(t,n){return n?this.lookupType(n)===ge&&this.source.charCodeAt(this.lookupOffset(n))===t:this.tokenType===ge&&this.source.charCodeAt(this.tokenStart)===t}skip(t){let n=this.tokenIndex+t;n<this.tokenCount?(this.tokenIndex=n,this.tokenStart=this.offsetAndType[n-1]&bt,n=this.offsetAndType[n],this.tokenType=n>>Et,this.tokenEnd=n&bt):(this.tokenIndex=this.tokenCount,this.next())}next(){let t=this.tokenIndex+1;t<this.tokenCount?(this.tokenIndex=t,this.tokenStart=this.tokenEnd,t=this.offsetAndType[t],this.tokenType=t>>Et,this.tokenEnd=t&bt):(this.eof=!0,this.tokenIndex=this.tokenCount,this.tokenType=qt,this.tokenStart=this.tokenEnd=this.source.length)}skipSC(){for(;this.tokenType===Le||this.tokenType===qe;)this.next()}skipUntilBalanced(t,n){let r=t,i=0,s=0;e:for(;r<this.tokenCount;r++){if(i=this.balance[r],i<t)break e;switch(s=r>0?this.offsetAndType[r-1]&bt:this.firstCharOffset,n(this.source.charCodeAt(s))){case 1:break e;case 2:r++;break e;default:this.isBlockOpenerTokenType(this.offsetAndType[r]>>Et)&&(r=i)}}this.skip(r-this.tokenIndex)}forEachToken(t){for(let n=0,r=this.firstCharOffset;n<this.tokenCount;n++){const i=r,s=this.offsetAndType[n],o=s&bt,a=s>>Et;r=o,t(a,i,o,n)}}dump(){const t=new Array(this.tokenCount);return this.forEachToken((n,r,i,s)=>{t[s]={idx:s,type:Qi[n],chunk:this.source.substring(r,i),balance:this.balance[s]}}),t}}function Lr(e,t){function n(h){return h<a?e.charCodeAt(h):0}function r(){if(c=Ir(e,c),Sr(n(c),n(c+1),n(c+2))){d=be,c=Nr(e,c);return}if(n(c)===37){d=Oe,c++;return}d=fe}function i(){const h=c;if(c=Nr(e,c),Gn(e,h,c,"url")&&n(c)===40){if(c=xr(e,c+1),n(c)===34||n(c)===39){d=pe,c=h+4;return}o();return}if(n(c)===40){d=pe,c++;return}d=ne}function s(h){for(h||(h=n(c++)),d=gt;c<e.length;c++){const b=e.charCodeAt(c);switch(Gi(b)){case h:c++;return;case Cr:if(Ar(b)){c+=Vi(e,c,b),d=kr;return}break;case 92:if(c===e.length-1)break;const f=n(c+1);Ar(f)?c+=Vi(e,c+1,f):St(b,f)&&(c=En(e,c)-1);break}}}function o(){for(d=Ge,c=xr(e,c);c<e.length;c++){const h=e.charCodeAt(c);switch(Gi(h)){case 41:c++;return;case Cr:if(c=xr(e,c),n(c)===41||c>=e.length){c<e.length&&c++;return}c=Xi(e,c),d=nt;return;case 34:case 39:case 40:case $o:c=Xi(e,c),d=nt;return;case 92:if(St(h,n(c+1))){c=En(e,c)-1;break}c=Xi(e,c),d=nt;return}}}e=String(e||"");const a=e.length;let u=Ho(n(0)),c=u,d;for(;c<a;){const h=e.charCodeAt(c);switch(Gi(h)){case Cr:d=Le,c=xr(e,c+1);break;case 34:s();break;case 35:Uo(n(c+1))||St(n(c+1),n(c+2))?(d=xe,c=Nr(e,c+1)):(d=ge,c++);break;case 39:s();break;case 40:d=_e,c++;break;case 41:d=de,c++;break;case 43:qi(h,n(c+1),n(c+2))?r():(d=ge,c++);break;case 44:d=it,c++;break;case 45:qi(h,n(c+1),n(c+2))?r():n(c+1)===45&&n(c+2)===62?(d=rt,c=c+3):Sr(h,n(c+1),n(c+2))?i():(d=ge,c++);break;case 46:qi(h,n(c+1),n(c+2))?r():(d=ge,c++);break;case 47:n(c+1)===42?(d=qe,c=e.indexOf("*/",c+2),c=c===-1?e.length:c+2):(d=ge,c++);break;case 58:d=Ve,c++;break;case 59:d=Ke,c++;break;case 60:n(c+1)===33&&n(c+2)===45&&n(c+3)===45?(d=Wn,c=c+4):(d=ge,c++);break;case 64:Sr(n(c+1),n(c+2),n(c+3))?(d=Be,c=Nr(e,c+1)):(d=ge,c++);break;case 91:d=at,c++;break;case 92:St(h,n(c+1))?i():(d=ge,c++);break;case 93:d=dt,c++;break;case 123:d=ze,c++;break;case 125:d=ot,c++;break;case zo:r();break;case Wi:i();break;default:d=ge,c++}t(d,u,u=c)}}let yn=null;class $e{static createItem(t){return{prev:null,next:null,data:t}}constructor(){this.head=null,this.tail=null,this.cursor=null}createItem(t){return $e.createItem(t)}allocateCursor(t,n){let r;return yn!==null?(r=yn,yn=yn.cursor,r.prev=t,r.next=n,r.cursor=this.cursor):r={prev:t,next:n,cursor:this.cursor},this.cursor=r,r}releaseCursor(){const{cursor:t}=this;this.cursor=t.cursor,t.prev=null,t.next=null,t.cursor=yn,yn=t}updateCursors(t,n,r,i){let{cursor:s}=this;for(;s!==null;)s.prev===t&&(s.prev=n),s.next===r&&(s.next=i),s=s.cursor}*[Symbol.iterator](){for(let t=this.head;t!==null;t=t.next)yield t.data}get size(){let t=0;for(let n=this.head;n!==null;n=n.next)t++;return t}get isEmpty(){return this.head===null}get first(){return this.head&&this.head.data}get last(){return this.tail&&this.tail.data}fromArray(t){let n=null;this.head=null;for(let r of t){const i=$e.createItem(r);n!==null?n.next=i:this.head=i,i.prev=n,n=i}return this.tail=n,this}toArray(){return[...this]}toJSON(){return[...this]}forEach(t,n=this){const r=this.allocateCursor(null,this.head);for(;r.next!==null;){const i=r.next;r.next=i.next,t.call(n,i.data,i,this)}this.releaseCursor()}forEachRight(t,n=this){const r=this.allocateCursor(this.tail,null);for(;r.prev!==null;){const i=r.prev;r.prev=i.prev,t.call(n,i.data,i,this)}this.releaseCursor()}reduce(t,n,r=this){let i=this.allocateCursor(null,this.head),s=n,o;for(;i.next!==null;)o=i.next,i.next=o.next,s=t.call(r,s,o.data,o,this);return this.releaseCursor(),s}reduceRight(t,n,r=this){let i=this.allocateCursor(this.tail,null),s=n,o;for(;i.prev!==null;)o=i.prev,i.prev=o.prev,s=t.call(r,s,o.data,o,this);return this.releaseCursor(),s}some(t,n=this){for(let r=this.head;r!==null;r=r.next)if(t.call(n,r.data,r,this))return!0;return!1}map(t,n=this){const r=new $e;for(let i=this.head;i!==null;i=i.next)r.appendData(t.call(n,i.data,i,this));return r}filter(t,n=this){const r=new $e;for(let i=this.head;i!==null;i=i.next)t.call(n,i.data,i,this)&&r.appendData(i.data);return r}nextUntil(t,n,r=this){if(t===null)return;const i=this.allocateCursor(null,t);for(;i.next!==null;){const s=i.next;if(i.next=s.next,n.call(r,s.data,s,this))break}this.releaseCursor()}prevUntil(t,n,r=this){if(t===null)return;const i=this.allocateCursor(t,null);for(;i.prev!==null;){const s=i.prev;if(i.prev=s.prev,n.call(r,s.data,s,this))break}this.releaseCursor()}clear(){this.head=null,this.tail=null}copy(){const t=new $e;for(let n of this)t.appendData(n);return t}prepend(t){return this.updateCursors(null,t,this.head,t),this.head!==null?(this.head.prev=t,t.next=this.head):this.tail=t,this.head=t,this}prependData(t){return this.prepend($e.createItem(t))}append(t){return this.insert(t)}appendData(t){return this.insert($e.createItem(t))}insert(t,n=null){if(n!==null)if(this.updateCursors(n.prev,t,n,t),n.prev===null){if(this.head!==n)throw new Error("before doesn't belong to list");this.head=t,n.prev=t,t.next=n,this.updateCursors(null,t)}else n.prev.next=t,t.prev=n.prev,n.prev=t,t.next=n;else this.updateCursors(this.tail,t,null,t),this.tail!==null?(this.tail.next=t,t.prev=this.tail):this.head=t,this.tail=t;return this}insertData(t,n){return this.insert($e.createItem(t),n)}remove(t){if(this.updateCursors(t,t.prev,t,t.next),t.prev!==null)t.prev.next=t.next;else{if(this.head!==t)throw new Error("item doesn't belong to list");this.head=t.next}if(t.next!==null)t.next.prev=t.prev;else{if(this.tail!==t)throw new Error("item doesn't belong to list");this.tail=t.prev}return t.prev=null,t.next=null,t}push(t){this.insert($e.createItem(t))}pop(){return this.tail!==null?this.remove(this.tail):null}unshift(t){this.prepend($e.createItem(t))}shift(){return this.head!==null?this.remove(this.head):null}prependList(t){return this.insertList(t,this.head)}appendList(t){return this.insertList(t)}insertList(t,n){return t.head===null?this:(n!=null?(this.updateCursors(n.prev,t.tail,n,t.head),n.prev!==null?(n.prev.next=t.head,t.head.prev=n.prev):this.head=t.head,n.prev=t.tail,t.tail.next=n):(this.updateCursors(this.tail,t.tail,null,t.head),this.tail!==null?(this.tail.next=t.head,t.head.prev=this.tail):this.head=t.head,this.tail=t.tail),t.head=null,t.tail=null,this)}replace(t,n){"head"in n?this.insertList(n,t):this.insert(n,t),this.remove(t)}}function Rr(e,t){const n=Object.create(SyntaxError.prototype),r=new Error;return Object.assign(n,{name:e,message:t,get stack(){return(r.stack||"").replace(/^(.+\n){1,3}/,`${e}: ${t}
3
- `)}})}const Zi=100,Vo=60,Ko=" ";function Xo({source:e,line:t,column:n,baseLine:r,baseColumn:i},s){function o(m,g){return c.slice(m,g).map((_,p)=>String(m+p+1).padStart(b)+" |"+_).join(`
1
+ (function(le,Te){typeof exports=="object"&&typeof module<"u"?Te(exports):typeof define=="function"&&define.amd?define(["exports"],Te):(le=typeof globalThis<"u"?globalThis:le||self,Te(le.otomate={}))})(this,(function(le){"use strict";function Te(e){return"children"in e&&Array.isArray(e.children)}function Dn(e){return"value"in e&&typeof e.value=="string"}function dt(e){return e.type==="text"}function Yd(...e){return{type:"root",children:e}}function Wd(...e){return{type:"paragraph",children:e}}function Gd(e,...t){return{type:"heading",depth:e,children:t}}function Vd(...e){return{type:"blockquote",children:e}}function Kd(e,...t){return{type:"list",ordered:e,children:t}}function Xd(...e){return{type:"listItem",children:e}}function Qd(e,t){return{type:"codeBlock",value:e,lang:t}}function Zd(...e){return{type:"table",children:e}}function Jd(e,...t){return{type:"tableRow",isHeader:e||void 0,children:t}}function eh(...e){return{type:"tableCell",children:e}}function th(){return{type:"thematicBreak"}}function nh(...e){return{type:"div",children:e}}function rh(e,t){const n={type:"text",value:e};return t&&t.length>0&&(n.marks=t),n}function ih(){return{type:"break"}}function sh(e,t,n){const r={type:"image",url:e};return t!==void 0&&(r.alt=t),n!==void 0&&(r.title=n),r}function ah(){return{type:"strong"}}function oh(){return{type:"emphasis"}}function uh(){return{type:"strikethrough"}}function lh(){return{type:"underline"}}function ch(){return{type:"code"}}function dh(e,t){const n={url:e};return t!==void 0&&(n.title=t),{type:"link",attrs:n}}function hh(e){return e?{type:"highlight",attrs:{color:e}}:{type:"highlight"}}function fh(e,...t){return e.classes=t,e}function ph(e,t){return e.data={...e.data,...t},e}function mh(e,t){return e.id=t,e}function wi(e,t,n=null,r=0){if(t(e,n,r)!==!1&&Te(e))for(let s=0;s<e.children.length;s++)wi(e.children[s],t,e,s)}function ki(e){let t=1;if(Te(e))for(const n of e.children)t+=ki(n);return t}function gh(e){const t=[];return wi(e,n=>{t.push(n)}),t}function dn(e,t){if(e===t)return[];if(!Te(e))return null;for(let n=0;n<e.children.length;n++){const r=dn(e.children[n],t);if(r!==null)return[n,...r]}return null}function bh(e,t){let n=e;for(const r of t){if(!Te(n)||r<0||r>=n.children.length)return null;n=n.children[r]}return n}const Eh=2166136261,yh=16777619;function pr(e){let t=Eh;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=Math.imul(t,yh)>>>0;return t}function Th(e){return!e||e.length===0?"":[...e].sort((n,r)=>n.type.localeCompare(r.type)).map(n=>n.attrs?`${n.type}:${JSON.stringify(n.attrs,Object.keys(n.attrs).sort())}`:n.type).join("|")}const Ai=new WeakMap;function Si(e){const t=Ai.get(e);if(t!==void 0)return t;let n;const r=wh(e);if(dt(e)){const i=e;n=pr(`text:${i.value}:${Th(i.marks)}:${r}`)}else if(Dn(e)){const i=kh(e);n=pr(`${e.type}:${i}:${r}`)}else if(Te(e)){const i=e.children.map(Si),s=Ah(e);n=pr(`${e.type}:${s}:${r}:[${i.join(",")}]`)}else n=pr(`${e.type}:${Sh(e)}:${r}`);return Ai.set(e,n),n}function _h(e){Ai.delete(e)}function wh(e){return!e.classes||e.classes.length===0?"":`cls:${[...e.classes].sort().join(",")}`}function kh(e){const t=[e.value];return"lang"in e&&e.lang&&t.push(`lang:${e.lang}`),"meta"in e&&e.meta&&t.push(`meta:${e.meta}`),"displayMode"in e&&t.push(`dm:${e.displayMode}`),"identifier"in e&&t.push(`id:${e.identifier}`),t.join(";")}function Ah(e){const t=[];return"depth"in e&&t.push(`d:${e.depth}`),"ordered"in e&&t.push(`o:${e.ordered}`),"start"in e&&e.start!==void 0&&t.push(`s:${e.start}`),"checked"in e&&e.checked!==void 0&&t.push(`c:${e.checked}`),"isHeader"in e&&e.isHeader&&t.push("h"),"colspan"in e&&e.colspan&&t.push(`cs:${e.colspan}`),"rowspan"in e&&e.rowspan&&t.push(`rs:${e.rowspan}`),"align"in e&&e.align&&t.push(`a:${e.align}`),t.join(";")}function Sh(e){const t=[];return"url"in e&&t.push(`u:${e.url}`),"alt"in e&&e.alt&&t.push(`a:${e.alt}`),"title"in e&&e.title&&t.push(`t:${e.title}`),"identifier"in e&&t.push(`id:${e.identifier}`),t.join(";")}function Ra(e){const t=new Map;function n(r){const i=Si(r),s=ki(r),o={node:r,hash:i,size:s},a=t.get(i);if(a?a.push(o):t.set(i,[o]),Te(r))for(const u of r.children)n(u)}return n(e),t}function Da(e,t,n,r){if(n.set(e,t),r.set(t,e),Te(e)&&Te(t)){const i=e,s=t;for(let o=0;o<i.children.length&&o<s.children.length;o++)Da(i.children[o],s.children[o],n,r)}}function Ch(e,t){const n=new Map,r=new Map,i=Ra(e),s=Ra(t),o=[];for(const[a,u]of i){const c=s.get(a);if(c)if(u.length===1&&c.length===1)o.push({oldNode:u[0].node,newNode:c[0].node,size:u[0].size});else for(const d of u)for(const h of c)o.push({oldNode:d.node,newNode:h.node,size:d.size})}o.sort((a,u)=>u.size-a.size);for(const{oldNode:a,newNode:u}of o)n.has(a)||r.has(u)||Da(a,u,n,r);return{forward:n,reverse:r}}function xh(e,t,n){const r=Ci(e),i=new Set(Ci(t));let s=0;for(const a of r){const u=n.get(a);u&&i.has(u)&&s++}const o=r.length+i.size;return o===0?1:2*s/o}function Ci(e){const t=[];if(Te(e))for(const n of e.children)t.push(n),t.push(...Ci(n));return t}function Nh(e){const t=new Map;function n(r,i){if(i&&t.set(r,i),Te(r))for(const s of r.children)n(s,r)}return n(e,null),t}function vh(e,t){const n=[];function r(i){if(Te(i)){for(const s of i.children)r(s);t.has(i)||n.push(i)}}return r(e),n}function Ih(e,t){const n=new Map;function r(i){if(!t.has(i)){const s=n.get(i.type);s?s.push(i):n.set(i.type,[i])}if(Te(i))for(const s of i.children)r(s)}return r(e),n}function Oh(e,t,n,r,i=.5){const s=Nh(t),o=Ih(t,r),a=vh(e,n);for(const u of a){if(n.has(u))continue;const c=o.get(u.type);if(!c||c.length===0)continue;let d=null,h=-1;for(const m of c){if(r.has(m)||!Te(m))continue;const f=xh(u,m,n);let b=0;const g=Lh(u,e,n);g&&s.get(m)===g&&(b=.3);const _=f+b;_>h&&(h=_,d=m)}d&&h>=i&&(n.set(u,d),r.set(d,u),Ba(o,u.type,d))}Ph(e,n,r,o)}function Lh(e,t,n){const r=Ma(t,e);if(r)return n.get(r)}function Ma(e,t){if(!Te(e))return null;const n=e;for(const r of n.children){if(r===t)return e;const i=Ma(r,t);if(i)return i}return null}function Ph(e,t,n,r){for(const[i,s]of t){if(!Te(i)||!Te(s))continue;const o=i,a=s,u=[],c=[];for(let h=0;h<o.children.length;h++)t.has(o.children[h])||u.push({node:o.children[h],index:h});for(let h=0;h<a.children.length;h++)n.has(a.children[h])||c.push({node:a.children[h],index:h});const d=new Set;for(const h of u){const m=c.find(g=>g.index===h.index&&g.node.type===h.node.type&&!d.has(g.index));if(m){xi(h.node,m.node,t,n,r),d.add(m.index);continue}let f=1/0,b=null;for(const g of c){if(d.has(g.index)||g.node.type!==h.node.type)continue;const _=Math.abs(g.index-h.index);_<f&&(f=_,b=g)}b&&(xi(h.node,b.node,t,n,r),d.add(b.index))}}}function xi(e,t,n,r,i){if(n.set(e,t),r.set(t,e),Ba(i,t.type,t),Te(e)&&Te(t)){const s=e,o=t,a=new Set;for(let u=0;u<s.children.length;u++){if(n.has(s.children[u]))continue;!a.has(u)&&u<o.children.length&&!r.has(o.children[u])&&o.children[u].type===s.children[u].type&&(xi(s.children[u],o.children[u],n,r,i),a.add(u))}}}function Ba(e,t,n){const r=e.get(t);if(r){const i=r.indexOf(n);i!==-1&&r.splice(i,1)}}function Rh(e){if(e.length===0)return[];const t=e.match(/\S+\s*/g);if(!t)return[e];const n=e.search(/\S/);return n>0?[e.slice(0,n),...t]:t}function Dh(e){return[...e]}function Mh(e,t){const n=e.length,r=t.length;if(n===0&&r===0)return[];if(n===0)return t.map(m=>({type:"insert",value:m}));if(r===0)return e.map(m=>({type:"delete",value:m}));const i=n+r,s=2*i+1,o=[],a=new Array(s).fill(0);let u=-1;for(let m=0;m<=i;m++){o.push([...a]);for(let f=-m;f<=m;f+=2){const b=f+i;let g;f===-m||f!==m&&a[b-1]<a[b+1]?g=a[b+1]:g=a[b-1]+1;let _=g-f;for(;g<n&&_<r&&e[g]===t[_];)g++,_++;if(a[b]=g,g>=n&&_>=r){u=m;break}}if(u>=0)break}const c=[];let d=n,h=r;for(let m=u;m>0;m--){const f=o[m],b=d-h,g=b+i;let _;b===-m||b!==m&&f[g-1]<f[g+1]?_=b+1:_=b-1;const p=_+i,y=f[p],C=y-_;for(;d>y&&h>C;)d--,h--,c.push({type:"equal",value:e[d]});b>_?(d--,c.push({type:"delete",value:e[d]})):(h--,c.push({type:"insert",value:t[h]}))}for(;d>0&&h>0;)d--,h--,c.push({type:"equal",value:e[d]});return c.reverse(),c}function Ni(e,t,n="word"){if(e===t)return[{type:"equal",value:e,offset:0}];const r=n==="word"?Rh:Dh,i=r(e),s=r(t),o=Mh(i,s),a=[];let u=0,c=0,d=0;for(;d<o.length;){const h=o[d].type;let m="";for(;d<o.length&&o[d].type===h;)m+=o[d].value,d++;switch(h){case"equal":a.push({type:"equal",value:m,offset:u}),u+=m.length,c+=m.length;break;case"delete":a.push({type:"delete",value:m,offset:u}),u+=m.length;break;case"insert":a.push({type:"insert",value:m,offset:c}),c+=m.length;break}}return a}function Bh(e,t){const n=e??[],r=t??[];if(n.length!==r.length)return!1;const i=[...n].sort((o,a)=>o.type.localeCompare(a.type)),s=[...r].sort((o,a)=>o.type.localeCompare(a.type));for(let o=0;o<i.length;o++)if(i[o].type!==s[o].type||JSON.stringify(i[o].attrs)!==JSON.stringify(s[o].attrs))return!1;return!0}function Fa(e){const t={};for(const[n,r]of Object.entries(e))["type","children","value","data","position","id","marks"].includes(n)||r!==void 0&&(t[n]=r);return t}function Fh(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n)if(JSON.stringify(e[i])!==JSON.stringify(t[i]))return!1;return!0}function Uh(e,t,n,r,i={}){const s=[],o=i.textGranularity??"word";for(const[u,c]of n){if(u===e&&c===t)continue;const d=dn(e,u),h=dn(t,c);if(!d||!h)continue;const m=Fa(u),f=Fa(c);if(Fh(m,f)||s.push({type:"update",path:h,properties:{old:m,new:f}}),dt(u)&&dt(c)){const b=u,g=c;if(!Bh(b.marks,g.marks)){const _=b.marks??[],p=g.marks??[];s.push({type:"update",path:h,properties:{old:{marks:_},new:{marks:p}}})}}if(dt(u)&&dt(c)){const b=u,g=c;b.value!==g.value&&s.push({type:"updateText",path:h,changes:Ni(b.value,g.value,o)})}else if(Dn(u)&&Dn(c)){const b=u.value,g=c.value;b!==g&&s.push({type:"updateText",path:h,changes:Ni(b,g,o)})}if(d.length>0&&h.length>0){const b=d.slice(0,-1),g=h.slice(0,-1),_=Ha(e,b),p=Ha(t,g);if(_&&p){const y=n.get(_);if(y&&y!==p)s.push({type:"move",from:d,to:h});else if(y===p){const C=d[d.length-1],I=h[h.length-1];C!==I&&s.push({type:"move",from:d,to:h})}}}}Ua(e,n,u=>{const c=dn(e,u);c&&s.push({type:"delete",path:c,node:vi(u)})}),Ua(t,r,u=>{const c=dn(t,u);c&&s.push({type:"insert",path:c,node:vi(u)})});const a={nodesAdded:s.filter(u=>u.type==="insert").length,nodesDeleted:s.filter(u=>u.type==="delete").length,nodesMoved:s.filter(u=>u.type==="move").length,nodesModified:s.filter(u=>u.type==="update").length,textChanges:s.filter(u=>u.type==="updateText").length};return{version:1,operations:s,stats:a}}function Ua(e,t,n){function r(i){if(!t.has(i)){n(i);return}if(Te(i))for(const s of i.children)r(s)}if(Te(e))for(const i of e.children)r(i)}function Ha(e,t){let n=e;for(const r of t){if(!Te(n))return null;const i=n;if(r<0||r>=i.children.length)return null;n=i.children[r]}return n}function vi(e){const t={};for(const[n,r]of Object.entries(e))n==="position"||n==="id"||(n==="children"&&Array.isArray(r)?t.children=r.map(vi):t[n]=r);return t}function Hh(e,t,n={}){const{diceThreshold:r=.5}=n,{forward:i,reverse:s}=Ch(e,t);return i.has(e)||(i.set(e,t),s.set(t,e)),Oh(e,t,i,s,r),Uh(e,t,i,s,n)}function Tk(){}class Mn{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Mn.prototype.normal={},Mn.prototype.property={},Mn.prototype.space=void 0;function za(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Mn(n,r,t)}function Bn(e){return e.toLowerCase()}class et{constructor(t,n){this.attribute=n,this.property=t}}et.prototype.attribute="",et.prototype.booleanish=!1,et.prototype.boolean=!1,et.prototype.commaOrSpaceSeparated=!1,et.prototype.commaSeparated=!1,et.prototype.defined=!1,et.prototype.mustUseProperty=!1,et.prototype.number=!1,et.prototype.overloadedBoolean=!1,et.prototype.property="",et.prototype.spaceSeparated=!1,et.prototype.space=void 0;let zh=0;const me=en(),Me=en(),Ii=en(),ee=en(),Ce=en(),hn=en(),at=en();function en(){return 2**++zh}const Oi=Object.freeze(Object.defineProperty({__proto__:null,boolean:me,booleanish:Me,commaOrSpaceSeparated:at,commaSeparated:hn,number:ee,overloadedBoolean:Ii,spaceSeparated:Ce},Symbol.toStringTag,{value:"Module"})),Li=Object.keys(Oi);class Pi extends et{constructor(t,n,r,i){let s=-1;if(super(t,n),$a(this,"space",i),typeof r=="number")for(;++s<Li.length;){const o=Li[s];$a(this,Li[s],(r&Oi[o])===Oi[o])}}}Pi.prototype.defined=!0;function $a(e,t,n){n&&(e[t]=n)}function fn(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const s=new Pi(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(s.mustUseProperty=!0),t[r]=s,n[Bn(r)]=r,n[Bn(s.attribute)]=r}return new Mn(t,n,e.space)}const ja=fn({properties:{ariaActiveDescendant:null,ariaAtomic:Me,ariaAutoComplete:null,ariaBusy:Me,ariaChecked:Me,ariaColCount:ee,ariaColIndex:ee,ariaColSpan:ee,ariaControls:Ce,ariaCurrent:null,ariaDescribedBy:Ce,ariaDetails:null,ariaDisabled:Me,ariaDropEffect:Ce,ariaErrorMessage:null,ariaExpanded:Me,ariaFlowTo:Ce,ariaGrabbed:Me,ariaHasPopup:null,ariaHidden:Me,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ce,ariaLevel:ee,ariaLive:null,ariaModal:Me,ariaMultiLine:Me,ariaMultiSelectable:Me,ariaOrientation:null,ariaOwns:Ce,ariaPlaceholder:null,ariaPosInSet:ee,ariaPressed:Me,ariaReadOnly:Me,ariaRelevant:null,ariaRequired:Me,ariaRoleDescription:Ce,ariaRowCount:ee,ariaRowIndex:ee,ariaRowSpan:ee,ariaSelected:Me,ariaSetSize:ee,ariaSort:null,ariaValueMax:ee,ariaValueMin:ee,ariaValueNow:ee,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function qa(e,t){return t in e?e[t]:t}function Ya(e,t){return qa(e,t.toLowerCase())}const $h=fn({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:hn,acceptCharset:Ce,accessKey:Ce,action:null,allow:null,allowFullScreen:me,allowPaymentRequest:me,allowUserMedia:me,alt:null,as:null,async:me,autoCapitalize:null,autoComplete:Ce,autoFocus:me,autoPlay:me,blocking:Ce,capture:null,charSet:null,checked:me,cite:null,className:Ce,cols:ee,colSpan:null,content:null,contentEditable:Me,controls:me,controlsList:Ce,coords:ee|hn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:me,defer:me,dir:null,dirName:null,disabled:me,download:Ii,draggable:Me,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:me,formTarget:null,headers:Ce,height:ee,hidden:Ii,high:ee,href:null,hrefLang:null,htmlFor:Ce,httpEquiv:Ce,id:null,imageSizes:null,imageSrcSet:null,inert:me,inputMode:null,integrity:null,is:null,isMap:me,itemId:null,itemProp:Ce,itemRef:Ce,itemScope:me,itemType:Ce,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:me,low:ee,manifest:null,max:null,maxLength:ee,media:null,method:null,min:null,minLength:ee,multiple:me,muted:me,name:null,nonce:null,noModule:me,noValidate:me,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:me,optimum:ee,pattern:null,ping:Ce,placeholder:null,playsInline:me,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:me,referrerPolicy:null,rel:Ce,required:me,reversed:me,rows:ee,rowSpan:ee,sandbox:Ce,scope:null,scoped:me,seamless:me,selected:me,shadowRootClonable:me,shadowRootDelegatesFocus:me,shadowRootMode:null,shape:null,size:ee,sizes:null,slot:null,span:ee,spellCheck:Me,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ee,step:null,style:null,tabIndex:ee,target:null,title:null,translate:null,type:null,typeMustMatch:me,useMap:null,value:Me,width:ee,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ce,axis:null,background:null,bgColor:null,border:ee,borderColor:null,bottomMargin:ee,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:me,declare:me,event:null,face:null,frame:null,frameBorder:null,hSpace:ee,leftMargin:ee,link:null,longDesc:null,lowSrc:null,marginHeight:ee,marginWidth:ee,noResize:me,noHref:me,noShade:me,noWrap:me,object:null,profile:null,prompt:null,rev:null,rightMargin:ee,rules:null,scheme:null,scrolling:Me,standby:null,summary:null,text:null,topMargin:ee,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ee,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:me,disableRemotePlayback:me,prefix:null,property:null,results:ee,security:null,unselectable:null},space:"html",transform:Ya}),jh=fn({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:at,accentHeight:ee,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ee,amplitude:ee,arabicForm:null,ascent:ee,attributeName:null,attributeType:null,azimuth:ee,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ee,by:null,calcMode:null,capHeight:ee,className:Ce,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ee,diffuseConstant:ee,direction:null,display:null,dur:null,divisor:ee,dominantBaseline:null,download:me,dx:null,dy:null,edgeMode:null,editable:null,elevation:ee,enableBackground:null,end:null,event:null,exponent:ee,externalResourcesRequired:null,fill:null,fillOpacity:ee,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:hn,g2:hn,glyphName:hn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ee,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ee,horizOriginX:ee,horizOriginY:ee,id:null,ideographic:ee,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ee,k:ee,k1:ee,k2:ee,k3:ee,k4:ee,kernelMatrix:at,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ee,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ee,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ee,overlineThickness:ee,paintOrder:null,panose1:null,path:null,pathLength:ee,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ce,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ee,pointsAtY:ee,pointsAtZ:ee,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:at,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:at,rev:at,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:at,requiredFeatures:at,requiredFonts:at,requiredFormats:at,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ee,specularExponent:ee,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ee,strikethroughThickness:ee,string:null,stroke:null,strokeDashArray:at,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ee,strokeOpacity:ee,strokeWidth:null,style:null,surfaceScale:ee,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:at,tabIndex:ee,tableValues:null,target:null,targetX:ee,targetY:ee,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:at,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ee,underlineThickness:ee,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ee,values:null,vAlphabetic:ee,vMathematical:ee,vectorEffect:null,vHanging:ee,vIdeographic:ee,version:null,vertAdvY:ee,vertOriginX:ee,vertOriginY:ee,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ee,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:qa}),Wa=fn({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Ga=fn({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Ya}),Va=fn({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),qh=/[A-Z]/g,Ka=/-[a-z]/g,Yh=/^data[-\w.:]+$/i;function Ri(e,t){const n=Bn(t);let r=t,i=et;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Yh.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(Ka,Gh);r="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!Ka.test(s)){let o=s.replace(qh,Wh);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=Pi}return new i(r,t)}function Wh(e){return"-"+e.toLowerCase()}function Gh(e){return e.charAt(1).toUpperCase()}const mr=za([ja,$h,Wa,Ga,Va],"html"),Fn=za([ja,jh,Wa,Ga,Va],"svg");function Xa(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,s=!1;for(;!s;){r===-1&&(r=n.length,s=!0);const o=n.slice(i,r).trim();(o||!s)&&t.push(o),i=r+1,r=n.indexOf(",",i)}return t}function Vh(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Qa=/[#.]/g;function Kh(e,t){const n=e||"",r={};let i=0,s,o;for(;i<n.length;){Qa.lastIndex=i;const a=Qa.exec(n),u=n.slice(i,a?a.index:n.length);u&&(s?s==="#"?r.id=u:Array.isArray(r.className)?r.className.push(u):r.className=[u]:o=u,i+=u.length),a&&(s=a[0],i++)}return{type:"element",tagName:o||t||"div",properties:r,children:[]}}function Za(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Xh(e){return e.join(" ").trim()}function Ja(e,t,n){const r=n?ef(n):void 0;function i(s,o,...a){let u;if(s==null){u={type:"root",children:[]};const c=o;a.unshift(c)}else{u=Kh(s,t);const c=u.tagName.toLowerCase(),d=r?r.get(c):void 0;if(u.tagName=d||c,Qh(o))a.unshift(o);else for(const[h,m]of Object.entries(o))Zh(e,u.properties,h,m)}for(const c of a)Di(u.children,c);return u.type==="element"&&u.tagName==="template"&&(u.content={type:"root",children:u.children},u.children=[]),u}return i}function Qh(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const i=t[r];if(i&&typeof i=="object"){if(!Array.isArray(i))return!0;const s=i;for(const o of s)if(typeof o!="number"&&typeof o!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function Zh(e,t,n,r){const i=Ri(e,n);let s;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;s=r}else typeof r=="boolean"?s=r:typeof r=="string"?i.spaceSeparated?s=Za(r):i.commaSeparated?s=Xa(r):i.commaOrSpaceSeparated?s=Za(Xa(r).join(" ")):s=eo(i,i.property,r):Array.isArray(r)?s=[...r]:s=i.property==="style"?Jh(r):String(r);if(Array.isArray(s)){const o=[];for(const a of s)o.push(eo(i,i.property,a));s=o}i.property==="className"&&Array.isArray(t.className)&&(s=t.className.concat(s)),t[i.property]=s}}function Di(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)Di(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?Di(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function eo(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Bn(n)===Bn(t)))return!0}return n}function Jh(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function ef(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const tf=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],nf=Ja(mr,"div"),rf=Ja(Fn,"g",tf);function sf(e){const t=String(e),n=[];return{toOffset:i,toPoint:r};function r(s){if(typeof s=="number"&&s>-1&&s<=t.length){let o=0;for(;;){let a=n[o];if(a===void 0){const u=to(t,n[o-1]);a=u===-1?t.length+1:u+1,n[o]=a}if(a>s)return{line:o+1,column:s-(o>0?n[o-1]:0)+1,offset:s};o++}}}function i(s){if(s&&typeof s.line=="number"&&typeof s.column=="number"&&!Number.isNaN(s.line)&&!Number.isNaN(s.column)){for(;n.length<s.line;){const a=n[n.length-1],u=to(t,a),c=u===-1?t.length+1:u+1;if(a===c)break;n.push(c)}const o=(s.line>1?n[s.line-2]:0)+s.column-1;if(o<n[s.line-1])return o}}}function to(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
2
+ `,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const af={svg:"http://www.w3.org/2000/svg"},no={}.hasOwnProperty,of=Object.prototype;function uf(e,t){const n=t||{};return Mi({file:n.file||void 0,location:!1,schema:n.space==="svg"?Fn:mr,verbose:n.verbose||!1},e)}function Mi(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},gr(e,r,n),n}case"#document":case"#document-fragment":{const r=t,i="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:ro(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){const s=String(e.file),o=sf(s),a=o.toPoint(0),u=o.toPoint(s.length);n.position={start:a,end:u}}return n}case"#documentType":{const r=t;return n={type:"doctype"},gr(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},gr(e,r,n),n}default:return n=lf(e,t),n}}function ro(e,t){let n=-1;const r=[];for(;++n<t.length;){const i=Mi(e,t[n]);r.push(i)}return r}function lf(e,t){const n=e.schema;e.schema=t.namespaceURI===af.svg?Fn:mr;let r=-1;const i={};for(;++r<t.attrs.length;){const a=t.attrs[r],u=(a.prefix?a.prefix+":":"")+a.name;no.call(of,u)||(i[u]=a.value)}const o=(e.schema.space==="svg"?rf:nf)(t.tagName,i,ro(e,t.childNodes));if(gr(e,t,o),o.tagName==="template"){const a=t,u=a.sourceCodeLocation,c=u&&u.startTag&&pn(u.startTag),d=u&&u.endTag&&pn(u.endTag),h=Mi(e,a.content);c&&d&&e.file&&(h.position={start:c.end,end:d.start}),o.content=h}return e.schema=n,o}function gr(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=cf(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function cf(e,t,n){const r=pn(n);if(t.type==="element"){const i=t.children[t.children.length-1];if(r&&!n.endTag&&i&&i.position&&i.position.end&&(r.end=Object.assign({},i.position.end)),e.verbose){const s={};let o;if(n.attrs)for(o in n.attrs)no.call(n.attrs,o)&&(s[Ri(e.schema,o).property]=pn(n.attrs[o]));n.startTag;const a=pn(n.startTag),u=n.endTag?pn(n.endTag):void 0,c={opening:a};u&&(c.closing=u),c.properties=s,t.data={position:c}}}return r}function pn(e){const t=io({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=io({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function io(e){return e.line&&e.column?e:void 0}const df=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Ie="�";var k;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(k||(k={}));const tt={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function so(e){return e>=55296&&e<=57343}function hf(e){return e>=56320&&e<=57343}function ff(e,t){return(e-55296)*1024+9216+t}function ao(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function oo(e){return e>=64976&&e<=65007||df.has(e)}var q;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(q||(q={}));const pf=65536;class mf{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=pf,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:i,offset:s}=this,o=i+n,a=s+n;return{code:t,startLine:r,endLine:r,startCol:o,endCol:o,startOffset:a,endOffset:a}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(hf(n))return this.pos++,this._addGap(),ff(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,k.EOF;return this._err(q.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,k.EOF;const r=this.html.charCodeAt(n);return r===k.CARRIAGE_RETURN?k.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,k.EOF;let t=this.html.charCodeAt(this.pos);return t===k.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,k.LINE_FEED):t===k.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,so(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===k.LINE_FEED||t===k.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){ao(t)?this._err(q.controlCharacterInInputStream):oo(t)&&this._err(q.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var _e;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(_e||(_e={}));function uo(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const gf=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),bf=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function Ef(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=bf.get(e))!==null&&t!==void 0?t:e}var Ue;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Ue||(Ue={}));const yf=32;var $t;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})($t||($t={}));function Bi(e){return e>=Ue.ZERO&&e<=Ue.NINE}function Tf(e){return e>=Ue.UPPER_A&&e<=Ue.UPPER_F||e>=Ue.LOWER_A&&e<=Ue.LOWER_F}function _f(e){return e>=Ue.UPPER_A&&e<=Ue.UPPER_Z||e>=Ue.LOWER_A&&e<=Ue.LOWER_Z||Bi(e)}function wf(e){return e===Ue.EQUALS||_f(e)}var He;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(He||(He={}));var Rt;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Rt||(Rt={}));class kf{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=He.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Rt.Strict}startEntity(t){this.decodeMode=t,this.state=He.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case He.EntityStart:return t.charCodeAt(n)===Ue.NUM?(this.state=He.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=He.NamedEntity,this.stateNamedEntity(t,n));case He.NumericStart:return this.stateNumericStart(t,n);case He.NumericDecimal:return this.stateNumericDecimal(t,n);case He.NumericHex:return this.stateNumericHex(t,n);case He.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|yf)===Ue.LOWER_X?(this.state=He.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=He.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,i){if(n!==r){const s=r-n;this.result=this.result*Math.pow(i,s)+Number.parseInt(t.substr(n,s),i),this.consumed+=s}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(Bi(i)||Tf(i))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(i,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(Bi(i))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(i,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Ue.SEMI)this.consumed+=1;else if(this.decodeMode===Rt.Strict)return 0;return this.emitCodePoint(Ef(this.result),this.consumed),this.errors&&(t!==Ue.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let i=r[this.treeIndex],s=(i&$t.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const o=t.charCodeAt(n);if(this.treeIndex=Af(r,i,this.treeIndex+Math.max(1,s),o),this.treeIndex<0)return this.result===0||this.decodeMode===Rt.Attribute&&(s===0||wf(o))?0:this.emitNotTerminatedNamedEntity();if(i=r[this.treeIndex],s=(i&$t.VALUE_LENGTH)>>14,s!==0){if(o===Ue.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);this.decodeMode!==Rt.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,i=(r[n]&$t.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:i}=this;return this.emitCodePoint(n===1?i[t]&~$t.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case He.NamedEntity:return this.result!==0&&(this.decodeMode!==Rt.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case He.NumericDecimal:return this.emitNumericEntity(0,2);case He.NumericHex:return this.emitNumericEntity(0,3);case He.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case He.EntityStart:return 0}}}function Af(e,t,n,r){const i=(t&$t.BRANCH_LENGTH)>>7,s=t&$t.JUMP_TABLE;if(i===0)return s!==0&&r===s?n:-1;if(s){const u=r-s;return u<0||u>=i?-1:e[n+u]-1}let o=n,a=o+i-1;for(;o<=a;){const u=o+a>>>1,c=e[u];if(c<r)o=u+1;else if(c>r)a=u-1;else return e[u+i]}return-1}var X;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(X||(X={}));var tn;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(tn||(tn={}));var ht;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(ht||(ht={}));var H;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(H||(H={}));var l;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(l||(l={}));const Sf=new Map([[H.A,l.A],[H.ADDRESS,l.ADDRESS],[H.ANNOTATION_XML,l.ANNOTATION_XML],[H.APPLET,l.APPLET],[H.AREA,l.AREA],[H.ARTICLE,l.ARTICLE],[H.ASIDE,l.ASIDE],[H.B,l.B],[H.BASE,l.BASE],[H.BASEFONT,l.BASEFONT],[H.BGSOUND,l.BGSOUND],[H.BIG,l.BIG],[H.BLOCKQUOTE,l.BLOCKQUOTE],[H.BODY,l.BODY],[H.BR,l.BR],[H.BUTTON,l.BUTTON],[H.CAPTION,l.CAPTION],[H.CENTER,l.CENTER],[H.CODE,l.CODE],[H.COL,l.COL],[H.COLGROUP,l.COLGROUP],[H.DD,l.DD],[H.DESC,l.DESC],[H.DETAILS,l.DETAILS],[H.DIALOG,l.DIALOG],[H.DIR,l.DIR],[H.DIV,l.DIV],[H.DL,l.DL],[H.DT,l.DT],[H.EM,l.EM],[H.EMBED,l.EMBED],[H.FIELDSET,l.FIELDSET],[H.FIGCAPTION,l.FIGCAPTION],[H.FIGURE,l.FIGURE],[H.FONT,l.FONT],[H.FOOTER,l.FOOTER],[H.FOREIGN_OBJECT,l.FOREIGN_OBJECT],[H.FORM,l.FORM],[H.FRAME,l.FRAME],[H.FRAMESET,l.FRAMESET],[H.H1,l.H1],[H.H2,l.H2],[H.H3,l.H3],[H.H4,l.H4],[H.H5,l.H5],[H.H6,l.H6],[H.HEAD,l.HEAD],[H.HEADER,l.HEADER],[H.HGROUP,l.HGROUP],[H.HR,l.HR],[H.HTML,l.HTML],[H.I,l.I],[H.IMG,l.IMG],[H.IMAGE,l.IMAGE],[H.INPUT,l.INPUT],[H.IFRAME,l.IFRAME],[H.KEYGEN,l.KEYGEN],[H.LABEL,l.LABEL],[H.LI,l.LI],[H.LINK,l.LINK],[H.LISTING,l.LISTING],[H.MAIN,l.MAIN],[H.MALIGNMARK,l.MALIGNMARK],[H.MARQUEE,l.MARQUEE],[H.MATH,l.MATH],[H.MENU,l.MENU],[H.META,l.META],[H.MGLYPH,l.MGLYPH],[H.MI,l.MI],[H.MO,l.MO],[H.MN,l.MN],[H.MS,l.MS],[H.MTEXT,l.MTEXT],[H.NAV,l.NAV],[H.NOBR,l.NOBR],[H.NOFRAMES,l.NOFRAMES],[H.NOEMBED,l.NOEMBED],[H.NOSCRIPT,l.NOSCRIPT],[H.OBJECT,l.OBJECT],[H.OL,l.OL],[H.OPTGROUP,l.OPTGROUP],[H.OPTION,l.OPTION],[H.P,l.P],[H.PARAM,l.PARAM],[H.PLAINTEXT,l.PLAINTEXT],[H.PRE,l.PRE],[H.RB,l.RB],[H.RP,l.RP],[H.RT,l.RT],[H.RTC,l.RTC],[H.RUBY,l.RUBY],[H.S,l.S],[H.SCRIPT,l.SCRIPT],[H.SEARCH,l.SEARCH],[H.SECTION,l.SECTION],[H.SELECT,l.SELECT],[H.SOURCE,l.SOURCE],[H.SMALL,l.SMALL],[H.SPAN,l.SPAN],[H.STRIKE,l.STRIKE],[H.STRONG,l.STRONG],[H.STYLE,l.STYLE],[H.SUB,l.SUB],[H.SUMMARY,l.SUMMARY],[H.SUP,l.SUP],[H.TABLE,l.TABLE],[H.TBODY,l.TBODY],[H.TEMPLATE,l.TEMPLATE],[H.TEXTAREA,l.TEXTAREA],[H.TFOOT,l.TFOOT],[H.TD,l.TD],[H.TH,l.TH],[H.THEAD,l.THEAD],[H.TITLE,l.TITLE],[H.TR,l.TR],[H.TRACK,l.TRACK],[H.TT,l.TT],[H.U,l.U],[H.UL,l.UL],[H.SVG,l.SVG],[H.VAR,l.VAR],[H.WBR,l.WBR],[H.XMP,l.XMP]]);function br(e){var t;return(t=Sf.get(e))!==null&&t!==void 0?t:l.UNKNOWN}const J=l,Cf={[X.HTML]:new Set([J.ADDRESS,J.APPLET,J.AREA,J.ARTICLE,J.ASIDE,J.BASE,J.BASEFONT,J.BGSOUND,J.BLOCKQUOTE,J.BODY,J.BR,J.BUTTON,J.CAPTION,J.CENTER,J.COL,J.COLGROUP,J.DD,J.DETAILS,J.DIR,J.DIV,J.DL,J.DT,J.EMBED,J.FIELDSET,J.FIGCAPTION,J.FIGURE,J.FOOTER,J.FORM,J.FRAME,J.FRAMESET,J.H1,J.H2,J.H3,J.H4,J.H5,J.H6,J.HEAD,J.HEADER,J.HGROUP,J.HR,J.HTML,J.IFRAME,J.IMG,J.INPUT,J.LI,J.LINK,J.LISTING,J.MAIN,J.MARQUEE,J.MENU,J.META,J.NAV,J.NOEMBED,J.NOFRAMES,J.NOSCRIPT,J.OBJECT,J.OL,J.P,J.PARAM,J.PLAINTEXT,J.PRE,J.SCRIPT,J.SECTION,J.SELECT,J.SOURCE,J.STYLE,J.SUMMARY,J.TABLE,J.TBODY,J.TD,J.TEMPLATE,J.TEXTAREA,J.TFOOT,J.TH,J.THEAD,J.TITLE,J.TR,J.TRACK,J.UL,J.WBR,J.XMP]),[X.MATHML]:new Set([J.MI,J.MO,J.MN,J.MS,J.MTEXT,J.ANNOTATION_XML]),[X.SVG]:new Set([J.TITLE,J.FOREIGN_OBJECT,J.DESC]),[X.XLINK]:new Set,[X.XML]:new Set,[X.XMLNS]:new Set},Fi=new Set([J.H1,J.H2,J.H3,J.H4,J.H5,J.H6]);H.STYLE,H.SCRIPT,H.XMP,H.IFRAME,H.NOEMBED,H.NOFRAMES,H.PLAINTEXT;var N;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(N||(N={}));const nt={DATA:N.DATA,RCDATA:N.RCDATA,RAWTEXT:N.RAWTEXT,SCRIPT_DATA:N.SCRIPT_DATA,PLAINTEXT:N.PLAINTEXT,CDATA_SECTION:N.CDATA_SECTION};function xf(e){return e>=k.DIGIT_0&&e<=k.DIGIT_9}function Un(e){return e>=k.LATIN_CAPITAL_A&&e<=k.LATIN_CAPITAL_Z}function Nf(e){return e>=k.LATIN_SMALL_A&&e<=k.LATIN_SMALL_Z}function jt(e){return Nf(e)||Un(e)}function lo(e){return jt(e)||xf(e)}function Er(e){return e+32}function co(e){return e===k.SPACE||e===k.LINE_FEED||e===k.TABULATION||e===k.FORM_FEED}function ho(e){return co(e)||e===k.SOLIDUS||e===k.GREATER_THAN_SIGN}function vf(e){return e===k.NULL?q.nullCharacterReference:e>1114111?q.characterReferenceOutsideUnicodeRange:so(e)?q.surrogateCharacterReference:oo(e)?q.noncharacterCharacterReference:ao(e)||e===k.CARRIAGE_RETURN?q.controlCharacterReference:null}class If{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=N.DATA,this.returnState=N.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new mf(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new kf(gf,(r,i)=>{this.preprocessor.pos=this.entityStartPos+i-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(q.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(q.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const i=vf(r);i&&this._err(i,1)}}:void 0)}_err(t,n=0){var r,i;(i=(r=this.handler).onParseError)===null||i===void 0||i.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t==null||t())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r==null||r()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:_e.START_TAG,tagName:"",tagID:l.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:_e.END_TAG,tagName:"",tagID:l.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:_e.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:_e.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(uo(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const i=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);i[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(q.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=br(t.tagName),t.type===_e.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(q.endTagWithAttributes),t.selfClosing&&this._err(q.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case _e.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case _e.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case _e.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:_e.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=co(t)?_e.WHITESPACE_CHARACTER:t===k.NULL?_e.NULL_CHARACTER:_e.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(_e.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=N.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Rt.Attribute:Rt.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===N.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===N.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===N.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case N.DATA:{this._stateData(t);break}case N.RCDATA:{this._stateRcdata(t);break}case N.RAWTEXT:{this._stateRawtext(t);break}case N.SCRIPT_DATA:{this._stateScriptData(t);break}case N.PLAINTEXT:{this._statePlaintext(t);break}case N.TAG_OPEN:{this._stateTagOpen(t);break}case N.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case N.TAG_NAME:{this._stateTagName(t);break}case N.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case N.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case N.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case N.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case N.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case N.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case N.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case N.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case N.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case N.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case N.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case N.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case N.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case N.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case N.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case N.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case N.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case N.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case N.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case N.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case N.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case N.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case N.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case N.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case N.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case N.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case N.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case N.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case N.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case N.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case N.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case N.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case N.BOGUS_COMMENT:{this._stateBogusComment(t);break}case N.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case N.COMMENT_START:{this._stateCommentStart(t);break}case N.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case N.COMMENT:{this._stateComment(t);break}case N.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case N.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case N.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case N.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case N.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case N.COMMENT_END:{this._stateCommentEnd(t);break}case N.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case N.DOCTYPE:{this._stateDoctype(t);break}case N.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case N.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case N.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case N.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case N.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case N.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case N.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case N.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case N.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case N.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case N.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case N.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case N.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case N.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case N.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case N.CDATA_SECTION:{this._stateCdataSection(t);break}case N.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case N.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case N.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case N.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case k.LESS_THAN_SIGN:{this.state=N.TAG_OPEN;break}case k.AMPERSAND:{this._startCharacterReference();break}case k.NULL:{this._err(q.unexpectedNullCharacter),this._emitCodePoint(t);break}case k.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case k.AMPERSAND:{this._startCharacterReference();break}case k.LESS_THAN_SIGN:{this.state=N.RCDATA_LESS_THAN_SIGN;break}case k.NULL:{this._err(q.unexpectedNullCharacter),this._emitChars(Ie);break}case k.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case k.LESS_THAN_SIGN:{this.state=N.RAWTEXT_LESS_THAN_SIGN;break}case k.NULL:{this._err(q.unexpectedNullCharacter),this._emitChars(Ie);break}case k.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case k.LESS_THAN_SIGN:{this.state=N.SCRIPT_DATA_LESS_THAN_SIGN;break}case k.NULL:{this._err(q.unexpectedNullCharacter),this._emitChars(Ie);break}case k.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case k.NULL:{this._err(q.unexpectedNullCharacter),this._emitChars(Ie);break}case k.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(jt(t))this._createStartTagToken(),this.state=N.TAG_NAME,this._stateTagName(t);else switch(t){case k.EXCLAMATION_MARK:{this.state=N.MARKUP_DECLARATION_OPEN;break}case k.SOLIDUS:{this.state=N.END_TAG_OPEN;break}case k.QUESTION_MARK:{this._err(q.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=N.BOGUS_COMMENT,this._stateBogusComment(t);break}case k.EOF:{this._err(q.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(q.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=N.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(jt(t))this._createEndTagToken(),this.state=N.TAG_NAME,this._stateTagName(t);else switch(t){case k.GREATER_THAN_SIGN:{this._err(q.missingEndTagName),this.state=N.DATA;break}case k.EOF:{this._err(q.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(q.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=N.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this.state=N.BEFORE_ATTRIBUTE_NAME;break}case k.SOLIDUS:{this.state=N.SELF_CLOSING_START_TAG;break}case k.GREATER_THAN_SIGN:{this.state=N.DATA,this.emitCurrentTagToken();break}case k.NULL:{this._err(q.unexpectedNullCharacter),n.tagName+=Ie;break}case k.EOF:{this._err(q.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(Un(t)?Er(t):t)}}_stateRcdataLessThanSign(t){t===k.SOLIDUS?this.state=N.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=N.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){jt(t)?(this.state=N.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=N.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=N.BEFORE_ATTRIBUTE_NAME,!1;case k.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=N.SELF_CLOSING_START_TAG,!1;case k.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=N.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=N.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===k.SOLIDUS?this.state=N.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=N.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){jt(t)?(this.state=N.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=N.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=N.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case k.SOLIDUS:{this.state=N.SCRIPT_DATA_END_TAG_OPEN;break}case k.EXCLAMATION_MARK:{this.state=N.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=N.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){jt(t)?(this.state=N.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=N.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=N.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===k.HYPHEN_MINUS?(this.state=N.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=N.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===k.HYPHEN_MINUS?(this.state=N.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=N.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case k.HYPHEN_MINUS:{this.state=N.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case k.LESS_THAN_SIGN:{this.state=N.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case k.NULL:{this._err(q.unexpectedNullCharacter),this._emitChars(Ie);break}case k.EOF:{this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case k.HYPHEN_MINUS:{this.state=N.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case k.LESS_THAN_SIGN:{this.state=N.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case k.NULL:{this._err(q.unexpectedNullCharacter),this.state=N.SCRIPT_DATA_ESCAPED,this._emitChars(Ie);break}case k.EOF:{this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=N.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case k.HYPHEN_MINUS:{this._emitChars("-");break}case k.LESS_THAN_SIGN:{this.state=N.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case k.GREATER_THAN_SIGN:{this.state=N.SCRIPT_DATA,this._emitChars(">");break}case k.NULL:{this._err(q.unexpectedNullCharacter),this.state=N.SCRIPT_DATA_ESCAPED,this._emitChars(Ie);break}case k.EOF:{this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=N.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===k.SOLIDUS?this.state=N.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:jt(t)?(this._emitChars("<"),this.state=N.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=N.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){jt(t)?(this.state=N.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=N.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=N.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(tt.SCRIPT,!1)&&ho(this.preprocessor.peek(tt.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<tt.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=N.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case k.HYPHEN_MINUS:{this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case k.LESS_THAN_SIGN:{this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case k.NULL:{this._err(q.unexpectedNullCharacter),this._emitChars(Ie);break}case k.EOF:{this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case k.HYPHEN_MINUS:{this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case k.LESS_THAN_SIGN:{this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case k.NULL:{this._err(q.unexpectedNullCharacter),this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ie);break}case k.EOF:{this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case k.HYPHEN_MINUS:{this._emitChars("-");break}case k.LESS_THAN_SIGN:{this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case k.GREATER_THAN_SIGN:{this.state=N.SCRIPT_DATA,this._emitChars(">");break}case k.NULL:{this._err(q.unexpectedNullCharacter),this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ie);break}case k.EOF:{this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===k.SOLIDUS?(this.state=N.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(tt.SCRIPT,!1)&&ho(this.preprocessor.peek(tt.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<tt.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=N.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.SOLIDUS:case k.GREATER_THAN_SIGN:case k.EOF:{this.state=N.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case k.EQUALS_SIGN:{this._err(q.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=N.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=N.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:case k.SOLIDUS:case k.GREATER_THAN_SIGN:case k.EOF:{this._leaveAttrName(),this.state=N.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case k.EQUALS_SIGN:{this._leaveAttrName(),this.state=N.BEFORE_ATTRIBUTE_VALUE;break}case k.QUOTATION_MARK:case k.APOSTROPHE:case k.LESS_THAN_SIGN:{this._err(q.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case k.NULL:{this._err(q.unexpectedNullCharacter),this.currentAttr.name+=Ie;break}default:this.currentAttr.name+=String.fromCodePoint(Un(t)?Er(t):t)}}_stateAfterAttributeName(t){switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.SOLIDUS:{this.state=N.SELF_CLOSING_START_TAG;break}case k.EQUALS_SIGN:{this.state=N.BEFORE_ATTRIBUTE_VALUE;break}case k.GREATER_THAN_SIGN:{this.state=N.DATA,this.emitCurrentTagToken();break}case k.EOF:{this._err(q.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=N.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.QUOTATION_MARK:{this.state=N.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case k.APOSTROPHE:{this.state=N.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case k.GREATER_THAN_SIGN:{this._err(q.missingAttributeValue),this.state=N.DATA,this.emitCurrentTagToken();break}default:this.state=N.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case k.QUOTATION_MARK:{this.state=N.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case k.AMPERSAND:{this._startCharacterReference();break}case k.NULL:{this._err(q.unexpectedNullCharacter),this.currentAttr.value+=Ie;break}case k.EOF:{this._err(q.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case k.APOSTROPHE:{this.state=N.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case k.AMPERSAND:{this._startCharacterReference();break}case k.NULL:{this._err(q.unexpectedNullCharacter),this.currentAttr.value+=Ie;break}case k.EOF:{this._err(q.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this._leaveAttrValue(),this.state=N.BEFORE_ATTRIBUTE_NAME;break}case k.AMPERSAND:{this._startCharacterReference();break}case k.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=N.DATA,this.emitCurrentTagToken();break}case k.NULL:{this._err(q.unexpectedNullCharacter),this.currentAttr.value+=Ie;break}case k.QUOTATION_MARK:case k.APOSTROPHE:case k.LESS_THAN_SIGN:case k.EQUALS_SIGN:case k.GRAVE_ACCENT:{this._err(q.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case k.EOF:{this._err(q.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this._leaveAttrValue(),this.state=N.BEFORE_ATTRIBUTE_NAME;break}case k.SOLIDUS:{this._leaveAttrValue(),this.state=N.SELF_CLOSING_START_TAG;break}case k.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=N.DATA,this.emitCurrentTagToken();break}case k.EOF:{this._err(q.eofInTag),this._emitEOFToken();break}default:this._err(q.missingWhitespaceBetweenAttributes),this.state=N.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case k.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=N.DATA,this.emitCurrentTagToken();break}case k.EOF:{this._err(q.eofInTag),this._emitEOFToken();break}default:this._err(q.unexpectedSolidusInTag),this.state=N.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case k.GREATER_THAN_SIGN:{this.state=N.DATA,this.emitCurrentComment(n);break}case k.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case k.NULL:{this._err(q.unexpectedNullCharacter),n.data+=Ie;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(tt.DASH_DASH,!0)?(this._createCommentToken(tt.DASH_DASH.length+1),this.state=N.COMMENT_START):this._consumeSequenceIfMatch(tt.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(tt.DOCTYPE.length+1),this.state=N.DOCTYPE):this._consumeSequenceIfMatch(tt.CDATA_START,!0)?this.inForeignNode?this.state=N.CDATA_SECTION:(this._err(q.cdataInHtmlContent),this._createCommentToken(tt.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=N.BOGUS_COMMENT):this._ensureHibernation()||(this._err(q.incorrectlyOpenedComment),this._createCommentToken(2),this.state=N.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case k.HYPHEN_MINUS:{this.state=N.COMMENT_START_DASH;break}case k.GREATER_THAN_SIGN:{this._err(q.abruptClosingOfEmptyComment),this.state=N.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=N.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case k.HYPHEN_MINUS:{this.state=N.COMMENT_END;break}case k.GREATER_THAN_SIGN:{this._err(q.abruptClosingOfEmptyComment),this.state=N.DATA,this.emitCurrentComment(n);break}case k.EOF:{this._err(q.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=N.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case k.HYPHEN_MINUS:{this.state=N.COMMENT_END_DASH;break}case k.LESS_THAN_SIGN:{n.data+="<",this.state=N.COMMENT_LESS_THAN_SIGN;break}case k.NULL:{this._err(q.unexpectedNullCharacter),n.data+=Ie;break}case k.EOF:{this._err(q.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case k.EXCLAMATION_MARK:{n.data+="!",this.state=N.COMMENT_LESS_THAN_SIGN_BANG;break}case k.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=N.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===k.HYPHEN_MINUS?this.state=N.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=N.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===k.HYPHEN_MINUS?this.state=N.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=N.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==k.GREATER_THAN_SIGN&&t!==k.EOF&&this._err(q.nestedComment),this.state=N.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case k.HYPHEN_MINUS:{this.state=N.COMMENT_END;break}case k.EOF:{this._err(q.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=N.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case k.GREATER_THAN_SIGN:{this.state=N.DATA,this.emitCurrentComment(n);break}case k.EXCLAMATION_MARK:{this.state=N.COMMENT_END_BANG;break}case k.HYPHEN_MINUS:{n.data+="-";break}case k.EOF:{this._err(q.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=N.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case k.HYPHEN_MINUS:{n.data+="--!",this.state=N.COMMENT_END_DASH;break}case k.GREATER_THAN_SIGN:{this._err(q.incorrectlyClosedComment),this.state=N.DATA,this.emitCurrentComment(n);break}case k.EOF:{this._err(q.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=N.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this.state=N.BEFORE_DOCTYPE_NAME;break}case k.GREATER_THAN_SIGN:{this.state=N.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case k.EOF:{this._err(q.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(q.missingWhitespaceBeforeDoctypeName),this.state=N.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(Un(t))this._createDoctypeToken(String.fromCharCode(Er(t))),this.state=N.DOCTYPE_NAME;else switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.NULL:{this._err(q.unexpectedNullCharacter),this._createDoctypeToken(Ie),this.state=N.DOCTYPE_NAME;break}case k.GREATER_THAN_SIGN:{this._err(q.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=N.DATA;break}case k.EOF:{this._err(q.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=N.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this.state=N.AFTER_DOCTYPE_NAME;break}case k.GREATER_THAN_SIGN:{this.state=N.DATA,this.emitCurrentDoctype(n);break}case k.NULL:{this._err(q.unexpectedNullCharacter),n.name+=Ie;break}case k.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(Un(t)?Er(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.GREATER_THAN_SIGN:{this.state=N.DATA,this.emitCurrentDoctype(n);break}case k.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(tt.PUBLIC,!1)?this.state=N.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(tt.SYSTEM,!1)?this.state=N.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(q.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=N.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this.state=N.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case k.QUOTATION_MARK:{this._err(q.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=N.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case k.APOSTROPHE:{this._err(q.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=N.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case k.GREATER_THAN_SIGN:{this._err(q.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=N.DATA,this.emitCurrentDoctype(n);break}case k.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(q.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=N.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.QUOTATION_MARK:{n.publicId="",this.state=N.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case k.APOSTROPHE:{n.publicId="",this.state=N.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case k.GREATER_THAN_SIGN:{this._err(q.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=N.DATA,this.emitCurrentDoctype(n);break}case k.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(q.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=N.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case k.QUOTATION_MARK:{this.state=N.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case k.NULL:{this._err(q.unexpectedNullCharacter),n.publicId+=Ie;break}case k.GREATER_THAN_SIGN:{this._err(q.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=N.DATA;break}case k.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case k.APOSTROPHE:{this.state=N.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case k.NULL:{this._err(q.unexpectedNullCharacter),n.publicId+=Ie;break}case k.GREATER_THAN_SIGN:{this._err(q.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=N.DATA;break}case k.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this.state=N.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case k.GREATER_THAN_SIGN:{this.state=N.DATA,this.emitCurrentDoctype(n);break}case k.QUOTATION_MARK:{this._err(q.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case k.APOSTROPHE:{this._err(q.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case k.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(q.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=N.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=N.DATA;break}case k.QUOTATION_MARK:{n.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case k.APOSTROPHE:{n.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case k.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(q.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=N.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this.state=N.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case k.QUOTATION_MARK:{this._err(q.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case k.APOSTROPHE:{this._err(q.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case k.GREATER_THAN_SIGN:{this._err(q.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=N.DATA,this.emitCurrentDoctype(n);break}case k.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(q.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=N.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.QUOTATION_MARK:{n.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case k.APOSTROPHE:{n.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case k.GREATER_THAN_SIGN:{this._err(q.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=N.DATA,this.emitCurrentDoctype(n);break}case k.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(q.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=N.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case k.QUOTATION_MARK:{this.state=N.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case k.NULL:{this._err(q.unexpectedNullCharacter),n.systemId+=Ie;break}case k.GREATER_THAN_SIGN:{this._err(q.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=N.DATA;break}case k.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case k.APOSTROPHE:{this.state=N.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case k.NULL:{this._err(q.unexpectedNullCharacter),n.systemId+=Ie;break}case k.GREATER_THAN_SIGN:{this._err(q.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=N.DATA;break}case k.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=N.DATA;break}case k.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(q.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=N.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case k.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=N.DATA;break}case k.NULL:{this._err(q.unexpectedNullCharacter);break}case k.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case k.RIGHT_SQUARE_BRACKET:{this.state=N.CDATA_SECTION_BRACKET;break}case k.EOF:{this._err(q.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===k.RIGHT_SQUARE_BRACKET?this.state=N.CDATA_SECTION_END:(this._emitChars("]"),this.state=N.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case k.GREATER_THAN_SIGN:{this.state=N.DATA;break}case k.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=N.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(k.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&lo(this.preprocessor.peek(1))?N.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){lo(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===k.SEMICOLON&&this._err(q.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const fo=new Set([l.DD,l.DT,l.LI,l.OPTGROUP,l.OPTION,l.P,l.RB,l.RP,l.RT,l.RTC]),po=new Set([...fo,l.CAPTION,l.COLGROUP,l.TBODY,l.TD,l.TFOOT,l.TH,l.THEAD,l.TR]),yr=new Set([l.APPLET,l.CAPTION,l.HTML,l.MARQUEE,l.OBJECT,l.TABLE,l.TD,l.TEMPLATE,l.TH]),Of=new Set([...yr,l.OL,l.UL]),Lf=new Set([...yr,l.BUTTON]),mo=new Set([l.ANNOTATION_XML,l.MI,l.MN,l.MO,l.MS,l.MTEXT]),go=new Set([l.DESC,l.FOREIGN_OBJECT,l.TITLE]),Pf=new Set([l.TR,l.TEMPLATE,l.HTML]),Rf=new Set([l.TBODY,l.TFOOT,l.THEAD,l.TEMPLATE,l.HTML]),Df=new Set([l.TABLE,l.TEMPLATE,l.HTML]),Mf=new Set([l.TD,l.TH]);class Bf{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=l.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===l.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===X.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const i=this._indexOf(t)+1;this.items.splice(i,0,n),this.tagIDs.splice(i,0,r),this.stackTop++,i===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,i===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==X.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(Fi,X.HTML)}popUntilTableCellPopped(){this.popUntilPopped(Mf,X.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(Df,X.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Rf,X.HTML)}clearBackToTableRowContext(){this.clearBackTo(Pf,X.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===l.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===l.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const i=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case X.HTML:{if(i===t)return!0;if(n.has(i))return!1;break}case X.SVG:{if(go.has(i))return!1;break}case X.MATHML:{if(mo.has(i))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,yr)}hasInListItemScope(t){return this.hasInDynamicScope(t,Of)}hasInButtonScope(t){return this.hasInDynamicScope(t,Lf)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case X.HTML:{if(Fi.has(n))return!0;if(yr.has(n))return!1;break}case X.SVG:{if(go.has(n))return!1;break}case X.MATHML:{if(mo.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===X.HTML)switch(this.tagIDs[n]){case t:return!0;case l.TABLE:case l.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===X.HTML)switch(this.tagIDs[t]){case l.TBODY:case l.THEAD:case l.TFOOT:return!0;case l.TABLE:case l.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===X.HTML)switch(this.tagIDs[n]){case t:return!0;case l.OPTION:case l.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&fo.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&po.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&po.has(this.currentTagId);)this.pop()}}const Ui=3;var St;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(St||(St={}));const bo={type:St.Marker};class Ff{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],i=n.length,s=this.treeAdapter.getTagName(t),o=this.treeAdapter.getNamespaceURI(t);for(let a=0;a<this.entries.length;a++){const u=this.entries[a];if(u.type===St.Marker)break;const{element:c}=u;if(this.treeAdapter.getTagName(c)===s&&this.treeAdapter.getNamespaceURI(c)===o){const d=this.treeAdapter.getAttrList(c);d.length===i&&r.push({idx:a,attrs:d})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<Ui)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<Ui)return;const i=new Map(n.map(o=>[o.name,o.value]));let s=0;for(let o=0;o<r.length;o++){const a=r[o];a.attrs.every(u=>i.get(u.name)===u.value)&&(s+=1,s>=Ui&&this.entries.splice(a.idx,1))}}insertMarker(){this.entries.unshift(bo)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:St.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:St.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(bo);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===St.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===St.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===St.Element&&n.element===t)}}const qt={createDocument(){return{nodeName:"#document",mode:ht.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const i=e.childNodes.find(s=>s.nodeName==="#documentType");if(i)i.name=t,i.publicId=n,i.systemId=r;else{const s={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};qt.appendChild(e,s)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(qt.isTextNode(n)){n.value+=t;return}}qt.appendChild(e,qt.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&qt.isTextNode(r)?r.value+=t:qt.insertBefore(e,qt.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},Eo="html",Uf="about:legacy-compat",Hf="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",yo=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],zf=[...yo,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],$f=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),To=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],jf=[...To,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function _o(e,t){return t.some(n=>e.startsWith(n))}function qf(e){return e.name===Eo&&e.publicId===null&&(e.systemId===null||e.systemId===Uf)}function Yf(e){if(e.name!==Eo)return ht.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===Hf)return ht.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),$f.has(n))return ht.QUIRKS;let r=t===null?zf:yo;if(_o(n,r))return ht.QUIRKS;if(r=t===null?To:jf,_o(n,r))return ht.LIMITED_QUIRKS}return ht.NO_QUIRKS}const wo={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Wf="definitionurl",Gf="definitionURL",Vf=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),Kf=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:X.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:X.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:X.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:X.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:X.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:X.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:X.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:X.XML}],["xml:space",{prefix:"xml",name:"space",namespace:X.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:X.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:X.XMLNS}]]),Xf=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),Qf=new Set([l.B,l.BIG,l.BLOCKQUOTE,l.BODY,l.BR,l.CENTER,l.CODE,l.DD,l.DIV,l.DL,l.DT,l.EM,l.EMBED,l.H1,l.H2,l.H3,l.H4,l.H5,l.H6,l.HEAD,l.HR,l.I,l.IMG,l.LI,l.LISTING,l.MENU,l.META,l.NOBR,l.OL,l.P,l.PRE,l.RUBY,l.S,l.SMALL,l.SPAN,l.STRONG,l.STRIKE,l.SUB,l.SUP,l.TABLE,l.TT,l.U,l.UL,l.VAR]);function Zf(e){const t=e.tagID;return t===l.FONT&&e.attrs.some(({name:r})=>r===tn.COLOR||r===tn.SIZE||r===tn.FACE)||Qf.has(t)}function ko(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===Wf){e.attrs[t].name=Gf;break}}function Ao(e){for(let t=0;t<e.attrs.length;t++){const n=Vf.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function Hi(e){for(let t=0;t<e.attrs.length;t++){const n=Kf.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function Jf(e){const t=Xf.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=br(e.tagName))}function ep(e,t){return t===X.MATHML&&(e===l.MI||e===l.MO||e===l.MN||e===l.MS||e===l.MTEXT)}function tp(e,t,n){if(t===X.MATHML&&e===l.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===tn.ENCODING){const i=n[r].value.toLowerCase();return i===wo.TEXT_HTML||i===wo.APPLICATION_XML}}return t===X.SVG&&(e===l.FOREIGN_OBJECT||e===l.DESC||e===l.TITLE)}function np(e,t,n,r){return(!r||r===X.HTML)&&tp(e,t,n)||(!r||r===X.MATHML)&&ep(e,t)}const rp="hidden",ip=8,sp=3;var L;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(L||(L={}));const ap={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},So=new Set([l.TABLE,l.TBODY,l.TFOOT,l.THEAD,l.TR]),Co={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:qt,onParseError:null};class xo{constructor(t,n,r=null,i=null){this.fragmentContext=r,this.scriptHandler=i,this.currentToken=null,this.stopped=!1,this.insertionMode=L.INITIAL,this.originalInsertionMode=L.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...Co,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new If(this.options,this),this.activeFormattingElements=new Ff(this.treeAdapter),this.fragmentContextID=r?br(this.treeAdapter.getTagName(r)):l.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new Bf(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r={...Co,...n};t??(t=r.treeAdapter.createElement(H.TEMPLATE,X.HTML,[]));const i=r.treeAdapter.createElement("documentmock",X.HTML,[]),s=new this(r,i,t);return s.fragmentContextID===l.TEMPLATE&&s.tmplInsertionModeStack.unshift(L.IN_TEMPLATE),s._initTokenizerForFragmentParsing(),s._insertFakeRootElement(),s._resetInsertionMode(),s._findFormInFragmentContext(),s}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var i;if(!this.onParseError)return;const s=(i=t.location)!==null&&i!==void 0?i:ap,o={code:n,startLine:s.startLine,startCol:s.startCol,startOffset:s.startOffset,endLine:r?s.startLine:s.endLine,endCol:r?s.startCol:s.endCol,endOffset:r?s.startOffset:s.endOffset};this.onParseError(o)}onItemPush(t,n,r){var i,s;(s=(i=this.treeAdapter).onItemPush)===null||s===void 0||s.call(i,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(i=(r=this.treeAdapter).onItemPop)===null||i===void 0||i.call(r,t,this.openElements.current),n){let s,o;this.openElements.stackTop===0&&this.fragmentContext?(s=this.fragmentContext,o=this.fragmentContextID):{current:s,currentTagId:o}=this.openElements,this._setContextModes(s,o)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===X.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,X.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=L.TEXT}switchToPlaintextParsing(){this.insertionMode=L.TEXT,this.originalInsertionMode=L.IN_BODY,this.tokenizer.state=nt.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===H.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==X.HTML))switch(this.fragmentContextID){case l.TITLE:case l.TEXTAREA:{this.tokenizer.state=nt.RCDATA;break}case l.STYLE:case l.XMP:case l.IFRAME:case l.NOEMBED:case l.NOFRAMES:case l.NOSCRIPT:{this.tokenizer.state=nt.RAWTEXT;break}case l.SCRIPT:{this.tokenizer.state=nt.SCRIPT_DATA;break}case l.PLAINTEXT:{this.tokenizer.state=nt.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",i=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,i),t.location){const o=this.treeAdapter.getChildNodes(this.document).find(a=>this.treeAdapter.isDocumentTypeNode(a));o&&this.treeAdapter.setNodeSourceCodeLocation(o,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r??this.document,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,X.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,X.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(H.HTML,X.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,l.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const i=this.treeAdapter.getChildNodes(n),s=r?i.lastIndexOf(r):i.length,o=i[s-1];if(this.treeAdapter.getNodeSourceCodeLocation(o)){const{endLine:u,endCol:c,endOffset:d}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(o,{endLine:u,endCol:c,endOffset:d})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(o,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,i=this.treeAdapter.getTagName(t),s=n.type===_e.END_TAG&&i===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,s)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===l.SVG&&this.treeAdapter.getTagName(n)===H.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===X.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===l.MGLYPH||t.tagID===l.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,X.HTML)}_processToken(t){switch(t.type){case _e.CHARACTER:{this.onCharacter(t);break}case _e.NULL_CHARACTER:{this.onNullCharacter(t);break}case _e.COMMENT:{this.onComment(t);break}case _e.DOCTYPE:{this.onDoctype(t);break}case _e.START_TAG:{this._processStartTag(t);break}case _e.END_TAG:{this.onEndTag(t);break}case _e.EOF:{this.onEof(t);break}case _e.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const i=this.treeAdapter.getNamespaceURI(n),s=this.treeAdapter.getAttrList(n);return np(t,i,s,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(i=>i.type===St.Marker||this.openElements.contains(i.element)),r=n===-1?t-1:n-1;for(let i=r;i>=0;i--){const s=this.activeFormattingElements.entries[i];this._insertElement(s.token,this.treeAdapter.getNamespaceURI(s.element)),s.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=L.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(l.P),this.openElements.popUntilTagNamePopped(l.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case l.TR:{this.insertionMode=L.IN_ROW;return}case l.TBODY:case l.THEAD:case l.TFOOT:{this.insertionMode=L.IN_TABLE_BODY;return}case l.CAPTION:{this.insertionMode=L.IN_CAPTION;return}case l.COLGROUP:{this.insertionMode=L.IN_COLUMN_GROUP;return}case l.TABLE:{this.insertionMode=L.IN_TABLE;return}case l.BODY:{this.insertionMode=L.IN_BODY;return}case l.FRAMESET:{this.insertionMode=L.IN_FRAMESET;return}case l.SELECT:{this._resetInsertionModeForSelect(t);return}case l.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case l.HTML:{this.insertionMode=this.headElement?L.AFTER_HEAD:L.BEFORE_HEAD;return}case l.TD:case l.TH:{if(t>0){this.insertionMode=L.IN_CELL;return}break}case l.HEAD:{if(t>0){this.insertionMode=L.IN_HEAD;return}break}}this.insertionMode=L.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===l.TEMPLATE)break;if(r===l.TABLE){this.insertionMode=L.IN_SELECT_IN_TABLE;return}}this.insertionMode=L.IN_SELECT}_isElementCausesFosterParenting(t){return So.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case l.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===X.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case l.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return Cf[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){M0(this,t);return}switch(this.insertionMode){case L.INITIAL:{Hn(this,t);break}case L.BEFORE_HTML:{zn(this,t);break}case L.BEFORE_HEAD:{$n(this,t);break}case L.IN_HEAD:{jn(this,t);break}case L.IN_HEAD_NO_SCRIPT:{qn(this,t);break}case L.AFTER_HEAD:{Yn(this,t);break}case L.IN_BODY:case L.IN_CAPTION:case L.IN_CELL:case L.IN_TEMPLATE:{vo(this,t);break}case L.TEXT:case L.IN_SELECT:case L.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case L.IN_TABLE:case L.IN_TABLE_BODY:case L.IN_ROW:{qi(this,t);break}case L.IN_TABLE_TEXT:{Bo(this,t);break}case L.IN_COLUMN_GROUP:{wr(this,t);break}case L.AFTER_BODY:{Sr(this,t);break}case L.AFTER_AFTER_BODY:{Cr(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){D0(this,t);return}switch(this.insertionMode){case L.INITIAL:{Hn(this,t);break}case L.BEFORE_HTML:{zn(this,t);break}case L.BEFORE_HEAD:{$n(this,t);break}case L.IN_HEAD:{jn(this,t);break}case L.IN_HEAD_NO_SCRIPT:{qn(this,t);break}case L.AFTER_HEAD:{Yn(this,t);break}case L.TEXT:{this._insertCharacters(t);break}case L.IN_TABLE:case L.IN_TABLE_BODY:case L.IN_ROW:{qi(this,t);break}case L.IN_COLUMN_GROUP:{wr(this,t);break}case L.AFTER_BODY:{Sr(this,t);break}case L.AFTER_AFTER_BODY:{Cr(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){$i(this,t);return}switch(this.insertionMode){case L.INITIAL:case L.BEFORE_HTML:case L.BEFORE_HEAD:case L.IN_HEAD:case L.IN_HEAD_NO_SCRIPT:case L.AFTER_HEAD:case L.IN_BODY:case L.IN_TABLE:case L.IN_CAPTION:case L.IN_COLUMN_GROUP:case L.IN_TABLE_BODY:case L.IN_ROW:case L.IN_CELL:case L.IN_SELECT:case L.IN_SELECT_IN_TABLE:case L.IN_TEMPLATE:case L.IN_FRAMESET:case L.AFTER_FRAMESET:{$i(this,t);break}case L.IN_TABLE_TEXT:{Vn(this,t);break}case L.AFTER_BODY:{fp(this,t);break}case L.AFTER_AFTER_BODY:case L.AFTER_AFTER_FRAMESET:{pp(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case L.INITIAL:{mp(this,t);break}case L.BEFORE_HEAD:case L.IN_HEAD:case L.IN_HEAD_NO_SCRIPT:case L.AFTER_HEAD:{this._err(t,q.misplacedDoctype);break}case L.IN_TABLE_TEXT:{Vn(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,q.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?B0(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case L.INITIAL:{Hn(this,t);break}case L.BEFORE_HTML:{gp(this,t);break}case L.BEFORE_HEAD:{Ep(this,t);break}case L.IN_HEAD:{bt(this,t);break}case L.IN_HEAD_NO_SCRIPT:{_p(this,t);break}case L.AFTER_HEAD:{kp(this,t);break}case L.IN_BODY:{We(this,t);break}case L.IN_TABLE:{mn(this,t);break}case L.IN_TABLE_TEXT:{Vn(this,t);break}case L.IN_CAPTION:{y0(this,t);break}case L.IN_COLUMN_GROUP:{Yi(this,t);break}case L.IN_TABLE_BODY:{kr(this,t);break}case L.IN_ROW:{Ar(this,t);break}case L.IN_CELL:{w0(this,t);break}case L.IN_SELECT:{Ho(this,t);break}case L.IN_SELECT_IN_TABLE:{A0(this,t);break}case L.IN_TEMPLATE:{C0(this,t);break}case L.AFTER_BODY:{N0(this,t);break}case L.IN_FRAMESET:{v0(this,t);break}case L.AFTER_FRAMESET:{O0(this,t);break}case L.AFTER_AFTER_BODY:{P0(this,t);break}case L.AFTER_AFTER_FRAMESET:{R0(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?F0(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case L.INITIAL:{Hn(this,t);break}case L.BEFORE_HTML:{bp(this,t);break}case L.BEFORE_HEAD:{yp(this,t);break}case L.IN_HEAD:{Tp(this,t);break}case L.IN_HEAD_NO_SCRIPT:{wp(this,t);break}case L.AFTER_HEAD:{Ap(this,t);break}case L.IN_BODY:{_r(this,t);break}case L.TEXT:{l0(this,t);break}case L.IN_TABLE:{Wn(this,t);break}case L.IN_TABLE_TEXT:{Vn(this,t);break}case L.IN_CAPTION:{T0(this,t);break}case L.IN_COLUMN_GROUP:{_0(this,t);break}case L.IN_TABLE_BODY:{Wi(this,t);break}case L.IN_ROW:{Uo(this,t);break}case L.IN_CELL:{k0(this,t);break}case L.IN_SELECT:{zo(this,t);break}case L.IN_SELECT_IN_TABLE:{S0(this,t);break}case L.IN_TEMPLATE:{x0(this,t);break}case L.AFTER_BODY:{jo(this,t);break}case L.IN_FRAMESET:{I0(this,t);break}case L.AFTER_FRAMESET:{L0(this,t);break}case L.AFTER_AFTER_BODY:{Cr(this,t);break}}}onEof(t){switch(this.insertionMode){case L.INITIAL:{Hn(this,t);break}case L.BEFORE_HTML:{zn(this,t);break}case L.BEFORE_HEAD:{$n(this,t);break}case L.IN_HEAD:{jn(this,t);break}case L.IN_HEAD_NO_SCRIPT:{qn(this,t);break}case L.AFTER_HEAD:{Yn(this,t);break}case L.IN_BODY:case L.IN_TABLE:case L.IN_CAPTION:case L.IN_COLUMN_GROUP:case L.IN_TABLE_BODY:case L.IN_ROW:case L.IN_CELL:case L.IN_SELECT:case L.IN_SELECT_IN_TABLE:{Do(this,t);break}case L.TEXT:{c0(this,t);break}case L.IN_TABLE_TEXT:{Vn(this,t);break}case L.IN_TEMPLATE:{$o(this,t);break}case L.AFTER_BODY:case L.IN_FRAMESET:case L.AFTER_FRAMESET:case L.AFTER_AFTER_BODY:case L.AFTER_AFTER_FRAMESET:{ji(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===k.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case L.IN_HEAD:case L.IN_HEAD_NO_SCRIPT:case L.AFTER_HEAD:case L.TEXT:case L.IN_COLUMN_GROUP:case L.IN_SELECT:case L.IN_SELECT_IN_TABLE:case L.IN_FRAMESET:case L.AFTER_FRAMESET:{this._insertCharacters(t);break}case L.IN_BODY:case L.IN_CAPTION:case L.IN_CELL:case L.IN_TEMPLATE:case L.AFTER_BODY:case L.AFTER_AFTER_BODY:case L.AFTER_AFTER_FRAMESET:{No(this,t);break}case L.IN_TABLE:case L.IN_TABLE_BODY:case L.IN_ROW:{qi(this,t);break}case L.IN_TABLE_TEXT:{Mo(this,t);break}}}}function op(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):Ro(e,t),n}function up(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function lp(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let s=0,o=i;o!==n;s++,o=i){i=e.openElements.getCommonAncestor(o);const a=e.activeFormattingElements.getElementEntry(o),u=a&&s>=sp;!a||u?(u&&e.activeFormattingElements.removeEntry(a),e.openElements.remove(o)):(o=cp(e,a),r===t&&(e.activeFormattingElements.bookmark=a),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(o,r),r=o)}return r}function cp(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function dp(e,t,n){const r=e.treeAdapter.getTagName(t),i=br(r);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(n);else{const s=e.treeAdapter.getNamespaceURI(t);i===l.TEMPLATE&&s===X.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function hp(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,s=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,s),e.treeAdapter.appendChild(t,s),e.activeFormattingElements.insertElementAfterBookmark(s,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,s,i.tagID)}function zi(e,t){for(let n=0;n<ip;n++){const r=op(e,t);if(!r)break;const i=up(e,r);if(!i)break;e.activeFormattingElements.bookmark=r;const s=lp(e,i,r.element),o=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(s),o&&dp(e,o,s),hp(e,i,r)}}function $i(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function fp(e,t){e._appendCommentNode(t,e.openElements.items[0])}function pp(e,t){e._appendCommentNode(t,e.document)}function ji(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(r);if(i&&!i.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const s=e.openElements.items[1],o=e.treeAdapter.getNodeSourceCodeLocation(s);o&&!o.endTag&&e._setEndLocation(s,t)}}}}function mp(e,t){e._setDocumentType(t);const n=t.forceQuirks?ht.QUIRKS:Yf(t);qf(t)||e._err(t,q.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=L.BEFORE_HTML}function Hn(e,t){e._err(t,q.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,ht.QUIRKS),e.insertionMode=L.BEFORE_HTML,e._processToken(t)}function gp(e,t){t.tagID===l.HTML?(e._insertElement(t,X.HTML),e.insertionMode=L.BEFORE_HEAD):zn(e,t)}function bp(e,t){const n=t.tagID;(n===l.HTML||n===l.HEAD||n===l.BODY||n===l.BR)&&zn(e,t)}function zn(e,t){e._insertFakeRootElement(),e.insertionMode=L.BEFORE_HEAD,e._processToken(t)}function Ep(e,t){switch(t.tagID){case l.HTML:{We(e,t);break}case l.HEAD:{e._insertElement(t,X.HTML),e.headElement=e.openElements.current,e.insertionMode=L.IN_HEAD;break}default:$n(e,t)}}function yp(e,t){const n=t.tagID;n===l.HEAD||n===l.BODY||n===l.HTML||n===l.BR?$n(e,t):e._err(t,q.endTagWithoutMatchingOpenElement)}function $n(e,t){e._insertFakeElement(H.HEAD,l.HEAD),e.headElement=e.openElements.current,e.insertionMode=L.IN_HEAD,e._processToken(t)}function bt(e,t){switch(t.tagID){case l.HTML:{We(e,t);break}case l.BASE:case l.BASEFONT:case l.BGSOUND:case l.LINK:case l.META:{e._appendElement(t,X.HTML),t.ackSelfClosing=!0;break}case l.TITLE:{e._switchToTextParsing(t,nt.RCDATA);break}case l.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,nt.RAWTEXT):(e._insertElement(t,X.HTML),e.insertionMode=L.IN_HEAD_NO_SCRIPT);break}case l.NOFRAMES:case l.STYLE:{e._switchToTextParsing(t,nt.RAWTEXT);break}case l.SCRIPT:{e._switchToTextParsing(t,nt.SCRIPT_DATA);break}case l.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=L.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(L.IN_TEMPLATE);break}case l.HEAD:{e._err(t,q.misplacedStartTagForHeadElement);break}default:jn(e,t)}}function Tp(e,t){switch(t.tagID){case l.HEAD:{e.openElements.pop(),e.insertionMode=L.AFTER_HEAD;break}case l.BODY:case l.BR:case l.HTML:{jn(e,t);break}case l.TEMPLATE:{nn(e,t);break}default:e._err(t,q.endTagWithoutMatchingOpenElement)}}function nn(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==l.TEMPLATE&&e._err(t,q.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(l.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,q.endTagWithoutMatchingOpenElement)}function jn(e,t){e.openElements.pop(),e.insertionMode=L.AFTER_HEAD,e._processToken(t)}function _p(e,t){switch(t.tagID){case l.HTML:{We(e,t);break}case l.BASEFONT:case l.BGSOUND:case l.HEAD:case l.LINK:case l.META:case l.NOFRAMES:case l.STYLE:{bt(e,t);break}case l.NOSCRIPT:{e._err(t,q.nestedNoscriptInHead);break}default:qn(e,t)}}function wp(e,t){switch(t.tagID){case l.NOSCRIPT:{e.openElements.pop(),e.insertionMode=L.IN_HEAD;break}case l.BR:{qn(e,t);break}default:e._err(t,q.endTagWithoutMatchingOpenElement)}}function qn(e,t){const n=t.type===_e.EOF?q.openElementsLeftAfterEof:q.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=L.IN_HEAD,e._processToken(t)}function kp(e,t){switch(t.tagID){case l.HTML:{We(e,t);break}case l.BODY:{e._insertElement(t,X.HTML),e.framesetOk=!1,e.insertionMode=L.IN_BODY;break}case l.FRAMESET:{e._insertElement(t,X.HTML),e.insertionMode=L.IN_FRAMESET;break}case l.BASE:case l.BASEFONT:case l.BGSOUND:case l.LINK:case l.META:case l.NOFRAMES:case l.SCRIPT:case l.STYLE:case l.TEMPLATE:case l.TITLE:{e._err(t,q.abandonedHeadElementChild),e.openElements.push(e.headElement,l.HEAD),bt(e,t),e.openElements.remove(e.headElement);break}case l.HEAD:{e._err(t,q.misplacedStartTagForHeadElement);break}default:Yn(e,t)}}function Ap(e,t){switch(t.tagID){case l.BODY:case l.HTML:case l.BR:{Yn(e,t);break}case l.TEMPLATE:{nn(e,t);break}default:e._err(t,q.endTagWithoutMatchingOpenElement)}}function Yn(e,t){e._insertFakeElement(H.BODY,l.BODY),e.insertionMode=L.IN_BODY,Tr(e,t)}function Tr(e,t){switch(t.type){case _e.CHARACTER:{vo(e,t);break}case _e.WHITESPACE_CHARACTER:{No(e,t);break}case _e.COMMENT:{$i(e,t);break}case _e.START_TAG:{We(e,t);break}case _e.END_TAG:{_r(e,t);break}case _e.EOF:{Do(e,t);break}}}function No(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function vo(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Sp(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function Cp(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function xp(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,X.HTML),e.insertionMode=L.IN_FRAMESET)}function Np(e,t){e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._insertElement(t,X.HTML)}function vp(e,t){e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&Fi.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,X.HTML)}function Ip(e,t){e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._insertElement(t,X.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Op(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._insertElement(t,X.HTML),n||(e.formElement=e.openElements.current))}function Lp(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.tagIDs[r];if(n===l.LI&&i===l.LI||(n===l.DD||n===l.DT)&&(i===l.DD||i===l.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==l.ADDRESS&&i!==l.DIV&&i!==l.P&&e._isSpecialElement(e.openElements.items[r],i))break}e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._insertElement(t,X.HTML)}function Pp(e,t){e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._insertElement(t,X.HTML),e.tokenizer.state=nt.PLAINTEXT}function Rp(e,t){e.openElements.hasInScope(l.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(l.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,X.HTML),e.framesetOk=!1}function Dp(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(H.A);n&&(zi(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,X.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Mp(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,X.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Bp(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(l.NOBR)&&(zi(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,X.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Fp(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,X.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Up(e,t){e.treeAdapter.getDocumentMode(e.document)!==ht.QUIRKS&&e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._insertElement(t,X.HTML),e.framesetOk=!1,e.insertionMode=L.IN_TABLE}function Io(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,X.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Oo(e){const t=uo(e,tn.TYPE);return t!=null&&t.toLowerCase()===rp}function Hp(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,X.HTML),Oo(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function zp(e,t){e._appendElement(t,X.HTML),t.ackSelfClosing=!0}function $p(e,t){e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._appendElement(t,X.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function jp(e,t){t.tagName=H.IMG,t.tagID=l.IMG,Io(e,t)}function qp(e,t){e._insertElement(t,X.HTML),e.skipNextNewLine=!0,e.tokenizer.state=nt.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=L.TEXT}function Yp(e,t){e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,nt.RAWTEXT)}function Wp(e,t){e.framesetOk=!1,e._switchToTextParsing(t,nt.RAWTEXT)}function Lo(e,t){e._switchToTextParsing(t,nt.RAWTEXT)}function Gp(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,X.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===L.IN_TABLE||e.insertionMode===L.IN_CAPTION||e.insertionMode===L.IN_TABLE_BODY||e.insertionMode===L.IN_ROW||e.insertionMode===L.IN_CELL?L.IN_SELECT_IN_TABLE:L.IN_SELECT}function Vp(e,t){e.openElements.currentTagId===l.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,X.HTML)}function Kp(e,t){e.openElements.hasInScope(l.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,X.HTML)}function Xp(e,t){e.openElements.hasInScope(l.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(l.RTC),e._insertElement(t,X.HTML)}function Qp(e,t){e._reconstructActiveFormattingElements(),ko(t),Hi(t),t.selfClosing?e._appendElement(t,X.MATHML):e._insertElement(t,X.MATHML),t.ackSelfClosing=!0}function Zp(e,t){e._reconstructActiveFormattingElements(),Ao(t),Hi(t),t.selfClosing?e._appendElement(t,X.SVG):e._insertElement(t,X.SVG),t.ackSelfClosing=!0}function Po(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,X.HTML)}function We(e,t){switch(t.tagID){case l.I:case l.S:case l.B:case l.U:case l.EM:case l.TT:case l.BIG:case l.CODE:case l.FONT:case l.SMALL:case l.STRIKE:case l.STRONG:{Mp(e,t);break}case l.A:{Dp(e,t);break}case l.H1:case l.H2:case l.H3:case l.H4:case l.H5:case l.H6:{vp(e,t);break}case l.P:case l.DL:case l.OL:case l.UL:case l.DIV:case l.DIR:case l.NAV:case l.MAIN:case l.MENU:case l.ASIDE:case l.CENTER:case l.FIGURE:case l.FOOTER:case l.HEADER:case l.HGROUP:case l.DIALOG:case l.DETAILS:case l.ADDRESS:case l.ARTICLE:case l.SEARCH:case l.SECTION:case l.SUMMARY:case l.FIELDSET:case l.BLOCKQUOTE:case l.FIGCAPTION:{Np(e,t);break}case l.LI:case l.DD:case l.DT:{Lp(e,t);break}case l.BR:case l.IMG:case l.WBR:case l.AREA:case l.EMBED:case l.KEYGEN:{Io(e,t);break}case l.HR:{$p(e,t);break}case l.RB:case l.RTC:{Kp(e,t);break}case l.RT:case l.RP:{Xp(e,t);break}case l.PRE:case l.LISTING:{Ip(e,t);break}case l.XMP:{Yp(e,t);break}case l.SVG:{Zp(e,t);break}case l.HTML:{Sp(e,t);break}case l.BASE:case l.LINK:case l.META:case l.STYLE:case l.TITLE:case l.SCRIPT:case l.BGSOUND:case l.BASEFONT:case l.TEMPLATE:{bt(e,t);break}case l.BODY:{Cp(e,t);break}case l.FORM:{Op(e,t);break}case l.NOBR:{Bp(e,t);break}case l.MATH:{Qp(e,t);break}case l.TABLE:{Up(e,t);break}case l.INPUT:{Hp(e,t);break}case l.PARAM:case l.TRACK:case l.SOURCE:{zp(e,t);break}case l.IMAGE:{jp(e,t);break}case l.BUTTON:{Rp(e,t);break}case l.APPLET:case l.OBJECT:case l.MARQUEE:{Fp(e,t);break}case l.IFRAME:{Wp(e,t);break}case l.SELECT:{Gp(e,t);break}case l.OPTION:case l.OPTGROUP:{Vp(e,t);break}case l.NOEMBED:case l.NOFRAMES:{Lo(e,t);break}case l.FRAMESET:{xp(e,t);break}case l.TEXTAREA:{qp(e,t);break}case l.NOSCRIPT:{e.options.scriptingEnabled?Lo(e,t):Po(e,t);break}case l.PLAINTEXT:{Pp(e,t);break}case l.COL:case l.TH:case l.TD:case l.TR:case l.HEAD:case l.FRAME:case l.TBODY:case l.TFOOT:case l.THEAD:case l.CAPTION:case l.COLGROUP:break;default:Po(e,t)}}function Jp(e,t){if(e.openElements.hasInScope(l.BODY)&&(e.insertionMode=L.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function e0(e,t){e.openElements.hasInScope(l.BODY)&&(e.insertionMode=L.AFTER_BODY,jo(e,t))}function t0(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function n0(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(l.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(l.FORM):n&&e.openElements.remove(n))}function r0(e){e.openElements.hasInButtonScope(l.P)||e._insertFakeElement(H.P,l.P),e._closePElement()}function i0(e){e.openElements.hasInListItemScope(l.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(l.LI),e.openElements.popUntilTagNamePopped(l.LI))}function s0(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function a0(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function o0(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function u0(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(H.BR,l.BR),e.openElements.pop(),e.framesetOk=!1}function Ro(e,t){const n=t.tagName,r=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const s=e.openElements.items[i],o=e.openElements.tagIDs[i];if(r===o&&(r!==l.UNKNOWN||e.treeAdapter.getTagName(s)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(s,o))break}}function _r(e,t){switch(t.tagID){case l.A:case l.B:case l.I:case l.S:case l.U:case l.EM:case l.TT:case l.BIG:case l.CODE:case l.FONT:case l.NOBR:case l.SMALL:case l.STRIKE:case l.STRONG:{zi(e,t);break}case l.P:{r0(e);break}case l.DL:case l.UL:case l.OL:case l.DIR:case l.DIV:case l.NAV:case l.PRE:case l.MAIN:case l.MENU:case l.ASIDE:case l.BUTTON:case l.CENTER:case l.FIGURE:case l.FOOTER:case l.HEADER:case l.HGROUP:case l.DIALOG:case l.ADDRESS:case l.ARTICLE:case l.DETAILS:case l.SEARCH:case l.SECTION:case l.SUMMARY:case l.LISTING:case l.FIELDSET:case l.BLOCKQUOTE:case l.FIGCAPTION:{t0(e,t);break}case l.LI:{i0(e);break}case l.DD:case l.DT:{s0(e,t);break}case l.H1:case l.H2:case l.H3:case l.H4:case l.H5:case l.H6:{a0(e);break}case l.BR:{u0(e);break}case l.BODY:{Jp(e,t);break}case l.HTML:{e0(e,t);break}case l.FORM:{n0(e);break}case l.APPLET:case l.OBJECT:case l.MARQUEE:{o0(e,t);break}case l.TEMPLATE:{nn(e,t);break}default:Ro(e,t)}}function Do(e,t){e.tmplInsertionModeStack.length>0?$o(e,t):ji(e,t)}function l0(e,t){var n;t.tagID===l.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function c0(e,t){e._err(t,q.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function qi(e,t){if(e.openElements.currentTagId!==void 0&&So.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=L.IN_TABLE_TEXT,t.type){case _e.CHARACTER:{Bo(e,t);break}case _e.WHITESPACE_CHARACTER:{Mo(e,t);break}}else Gn(e,t)}function d0(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,X.HTML),e.insertionMode=L.IN_CAPTION}function h0(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,X.HTML),e.insertionMode=L.IN_COLUMN_GROUP}function f0(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(H.COLGROUP,l.COLGROUP),e.insertionMode=L.IN_COLUMN_GROUP,Yi(e,t)}function p0(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,X.HTML),e.insertionMode=L.IN_TABLE_BODY}function m0(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(H.TBODY,l.TBODY),e.insertionMode=L.IN_TABLE_BODY,kr(e,t)}function g0(e,t){e.openElements.hasInTableScope(l.TABLE)&&(e.openElements.popUntilTagNamePopped(l.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function b0(e,t){Oo(t)?e._appendElement(t,X.HTML):Gn(e,t),t.ackSelfClosing=!0}function E0(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,X.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function mn(e,t){switch(t.tagID){case l.TD:case l.TH:case l.TR:{m0(e,t);break}case l.STYLE:case l.SCRIPT:case l.TEMPLATE:{bt(e,t);break}case l.COL:{f0(e,t);break}case l.FORM:{E0(e,t);break}case l.TABLE:{g0(e,t);break}case l.TBODY:case l.TFOOT:case l.THEAD:{p0(e,t);break}case l.INPUT:{b0(e,t);break}case l.CAPTION:{d0(e,t);break}case l.COLGROUP:{h0(e,t);break}default:Gn(e,t)}}function Wn(e,t){switch(t.tagID){case l.TABLE:{e.openElements.hasInTableScope(l.TABLE)&&(e.openElements.popUntilTagNamePopped(l.TABLE),e._resetInsertionMode());break}case l.TEMPLATE:{nn(e,t);break}case l.BODY:case l.CAPTION:case l.COL:case l.COLGROUP:case l.HTML:case l.TBODY:case l.TD:case l.TFOOT:case l.TH:case l.THEAD:case l.TR:break;default:Gn(e,t)}}function Gn(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Tr(e,t),e.fosterParentingEnabled=n}function Mo(e,t){e.pendingCharacterTokens.push(t)}function Bo(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Vn(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)Gn(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const Fo=new Set([l.CAPTION,l.COL,l.COLGROUP,l.TBODY,l.TD,l.TFOOT,l.TH,l.THEAD,l.TR]);function y0(e,t){const n=t.tagID;Fo.has(n)?e.openElements.hasInTableScope(l.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(l.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=L.IN_TABLE,mn(e,t)):We(e,t)}function T0(e,t){const n=t.tagID;switch(n){case l.CAPTION:case l.TABLE:{e.openElements.hasInTableScope(l.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(l.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=L.IN_TABLE,n===l.TABLE&&Wn(e,t));break}case l.BODY:case l.COL:case l.COLGROUP:case l.HTML:case l.TBODY:case l.TD:case l.TFOOT:case l.TH:case l.THEAD:case l.TR:break;default:_r(e,t)}}function Yi(e,t){switch(t.tagID){case l.HTML:{We(e,t);break}case l.COL:{e._appendElement(t,X.HTML),t.ackSelfClosing=!0;break}case l.TEMPLATE:{bt(e,t);break}default:wr(e,t)}}function _0(e,t){switch(t.tagID){case l.COLGROUP:{e.openElements.currentTagId===l.COLGROUP&&(e.openElements.pop(),e.insertionMode=L.IN_TABLE);break}case l.TEMPLATE:{nn(e,t);break}case l.COL:break;default:wr(e,t)}}function wr(e,t){e.openElements.currentTagId===l.COLGROUP&&(e.openElements.pop(),e.insertionMode=L.IN_TABLE,e._processToken(t))}function kr(e,t){switch(t.tagID){case l.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,X.HTML),e.insertionMode=L.IN_ROW;break}case l.TH:case l.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(H.TR,l.TR),e.insertionMode=L.IN_ROW,Ar(e,t);break}case l.CAPTION:case l.COL:case l.COLGROUP:case l.TBODY:case l.TFOOT:case l.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=L.IN_TABLE,mn(e,t));break}default:mn(e,t)}}function Wi(e,t){const n=t.tagID;switch(t.tagID){case l.TBODY:case l.TFOOT:case l.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=L.IN_TABLE);break}case l.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=L.IN_TABLE,Wn(e,t));break}case l.BODY:case l.CAPTION:case l.COL:case l.COLGROUP:case l.HTML:case l.TD:case l.TH:case l.TR:break;default:Wn(e,t)}}function Ar(e,t){switch(t.tagID){case l.TH:case l.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,X.HTML),e.insertionMode=L.IN_CELL,e.activeFormattingElements.insertMarker();break}case l.CAPTION:case l.COL:case l.COLGROUP:case l.TBODY:case l.TFOOT:case l.THEAD:case l.TR:{e.openElements.hasInTableScope(l.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=L.IN_TABLE_BODY,kr(e,t));break}default:mn(e,t)}}function Uo(e,t){switch(t.tagID){case l.TR:{e.openElements.hasInTableScope(l.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=L.IN_TABLE_BODY);break}case l.TABLE:{e.openElements.hasInTableScope(l.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=L.IN_TABLE_BODY,Wi(e,t));break}case l.TBODY:case l.TFOOT:case l.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(l.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=L.IN_TABLE_BODY,Wi(e,t));break}case l.BODY:case l.CAPTION:case l.COL:case l.COLGROUP:case l.HTML:case l.TD:case l.TH:break;default:Wn(e,t)}}function w0(e,t){const n=t.tagID;Fo.has(n)?(e.openElements.hasInTableScope(l.TD)||e.openElements.hasInTableScope(l.TH))&&(e._closeTableCell(),Ar(e,t)):We(e,t)}function k0(e,t){const n=t.tagID;switch(n){case l.TD:case l.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=L.IN_ROW);break}case l.TABLE:case l.TBODY:case l.TFOOT:case l.THEAD:case l.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),Uo(e,t));break}case l.BODY:case l.CAPTION:case l.COL:case l.COLGROUP:case l.HTML:break;default:_r(e,t)}}function Ho(e,t){switch(t.tagID){case l.HTML:{We(e,t);break}case l.OPTION:{e.openElements.currentTagId===l.OPTION&&e.openElements.pop(),e._insertElement(t,X.HTML);break}case l.OPTGROUP:{e.openElements.currentTagId===l.OPTION&&e.openElements.pop(),e.openElements.currentTagId===l.OPTGROUP&&e.openElements.pop(),e._insertElement(t,X.HTML);break}case l.HR:{e.openElements.currentTagId===l.OPTION&&e.openElements.pop(),e.openElements.currentTagId===l.OPTGROUP&&e.openElements.pop(),e._appendElement(t,X.HTML),t.ackSelfClosing=!0;break}case l.INPUT:case l.KEYGEN:case l.TEXTAREA:case l.SELECT:{e.openElements.hasInSelectScope(l.SELECT)&&(e.openElements.popUntilTagNamePopped(l.SELECT),e._resetInsertionMode(),t.tagID!==l.SELECT&&e._processStartTag(t));break}case l.SCRIPT:case l.TEMPLATE:{bt(e,t);break}}}function zo(e,t){switch(t.tagID){case l.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===l.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===l.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===l.OPTGROUP&&e.openElements.pop();break}case l.OPTION:{e.openElements.currentTagId===l.OPTION&&e.openElements.pop();break}case l.SELECT:{e.openElements.hasInSelectScope(l.SELECT)&&(e.openElements.popUntilTagNamePopped(l.SELECT),e._resetInsertionMode());break}case l.TEMPLATE:{nn(e,t);break}}}function A0(e,t){const n=t.tagID;n===l.CAPTION||n===l.TABLE||n===l.TBODY||n===l.TFOOT||n===l.THEAD||n===l.TR||n===l.TD||n===l.TH?(e.openElements.popUntilTagNamePopped(l.SELECT),e._resetInsertionMode(),e._processStartTag(t)):Ho(e,t)}function S0(e,t){const n=t.tagID;n===l.CAPTION||n===l.TABLE||n===l.TBODY||n===l.TFOOT||n===l.THEAD||n===l.TR||n===l.TD||n===l.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(l.SELECT),e._resetInsertionMode(),e.onEndTag(t)):zo(e,t)}function C0(e,t){switch(t.tagID){case l.BASE:case l.BASEFONT:case l.BGSOUND:case l.LINK:case l.META:case l.NOFRAMES:case l.SCRIPT:case l.STYLE:case l.TEMPLATE:case l.TITLE:{bt(e,t);break}case l.CAPTION:case l.COLGROUP:case l.TBODY:case l.TFOOT:case l.THEAD:{e.tmplInsertionModeStack[0]=L.IN_TABLE,e.insertionMode=L.IN_TABLE,mn(e,t);break}case l.COL:{e.tmplInsertionModeStack[0]=L.IN_COLUMN_GROUP,e.insertionMode=L.IN_COLUMN_GROUP,Yi(e,t);break}case l.TR:{e.tmplInsertionModeStack[0]=L.IN_TABLE_BODY,e.insertionMode=L.IN_TABLE_BODY,kr(e,t);break}case l.TD:case l.TH:{e.tmplInsertionModeStack[0]=L.IN_ROW,e.insertionMode=L.IN_ROW,Ar(e,t);break}default:e.tmplInsertionModeStack[0]=L.IN_BODY,e.insertionMode=L.IN_BODY,We(e,t)}}function x0(e,t){t.tagID===l.TEMPLATE&&nn(e,t)}function $o(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(l.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):ji(e,t)}function N0(e,t){t.tagID===l.HTML?We(e,t):Sr(e,t)}function jo(e,t){var n;if(t.tagID===l.HTML){if(e.fragmentContext||(e.insertionMode=L.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===l.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else Sr(e,t)}function Sr(e,t){e.insertionMode=L.IN_BODY,Tr(e,t)}function v0(e,t){switch(t.tagID){case l.HTML:{We(e,t);break}case l.FRAMESET:{e._insertElement(t,X.HTML);break}case l.FRAME:{e._appendElement(t,X.HTML),t.ackSelfClosing=!0;break}case l.NOFRAMES:{bt(e,t);break}}}function I0(e,t){t.tagID===l.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==l.FRAMESET&&(e.insertionMode=L.AFTER_FRAMESET))}function O0(e,t){switch(t.tagID){case l.HTML:{We(e,t);break}case l.NOFRAMES:{bt(e,t);break}}}function L0(e,t){t.tagID===l.HTML&&(e.insertionMode=L.AFTER_AFTER_FRAMESET)}function P0(e,t){t.tagID===l.HTML?We(e,t):Cr(e,t)}function Cr(e,t){e.insertionMode=L.IN_BODY,Tr(e,t)}function R0(e,t){switch(t.tagID){case l.HTML:{We(e,t);break}case l.NOFRAMES:{bt(e,t);break}}}function D0(e,t){t.chars=Ie,e._insertCharacters(t)}function M0(e,t){e._insertCharacters(t),e.framesetOk=!1}function qo(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==X.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function B0(e,t){if(Zf(t))qo(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===X.MATHML?ko(t):r===X.SVG&&(Jf(t),Ao(t)),Hi(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function F0(e,t){if(t.tagID===l.P||t.tagID===l.BR){qo(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===X.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}H.AREA,H.BASE,H.BASEFONT,H.BGSOUND,H.BR,H.COL,H.EMBED,H.FRAME,H.HR,H.IMG,H.INPUT,H.KEYGEN,H.LINK,H.META,H.PARAM,H.SOURCE,H.TRACK,H.WBR;function U0(e,t){return xo.parse(e,t)}function H0(e,t,n){typeof e=="string"&&(n=t,t=e,e=null);const r=xo.getFragmentParser(e,n);return r.tokenizer.write(t,!0),r.getFragment()}function z0(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Yo(e.position):"start"in e||"end"in e?Yo(e):"line"in e||"column"in e?Gi(e):""}function Gi(e){return Wo(e&&e.line)+":"+Wo(e&&e.column)}function Yo(e){return Gi(e&&e.start)+"-"+Gi(e&&e.end)}function Wo(e){return e&&typeof e=="number"?e:1}class Ze extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",s={},o=!1;if(n&&("line"in n&&"column"in n?s={place:n}:"start"in n&&"end"in n?s={place:n}:"type"in n?s={ancestors:[n],place:n.position}:s={...n}),typeof t=="string"?i=t:!s.cause&&t&&(o=!0,i=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?s.ruleId=r:(s.source=r.slice(0,u),s.ruleId=r.slice(u+1))}if(!s.place&&s.ancestors&&s.ancestors){const u=s.ancestors[s.ancestors.length-1];u&&(s.place=u.position)}const a=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=z0(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=o&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Ze.prototype.file="",Ze.prototype.name="",Ze.prototype.reason="",Ze.prototype.message="",Ze.prototype.stack="",Ze.prototype.column=void 0,Ze.prototype.line=void 0,Ze.prototype.ancestors=void 0,Ze.prototype.cause=void 0,Ze.prototype.fatal=void 0,Ze.prototype.place=void 0,Ze.prototype.ruleId=void 0,Ze.prototype.source=void 0;const Ct={basename:$0,dirname:j0,extname:q0,join:Y0,sep:"/"};function $0(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Kn(e);let n=0,r=-1,i=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(s){n=i+1;break}}else r<0&&(s=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,a=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(s){n=i+1;break}}else o<0&&(s=!0,o=i+1),a>-1&&(e.codePointAt(i)===t.codePointAt(a--)?a<0&&(r=i):(a=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function j0(e){if(Kn(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function q0(e){Kn(e);let t=e.length,n=-1,r=0,i=-1,s=0,o;for(;t--;){const a=e.codePointAt(t);if(a===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),a===46?i<0?i=t:s!==1&&(s=1):i>-1&&(s=-1)}return i<0||n<0||s===0||s===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function Y0(...e){let t=-1,n;for(;++t<e.length;)Kn(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":W0(n)}function W0(e){Kn(e);const t=e.codePointAt(0)===47;let n=G0(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function G0(e,t){let n="",r=0,i=-1,s=0,o=-1,a,u;for(;++o<=e.length;){if(o<e.length)a=e.codePointAt(o);else{if(a===47)break;a=47}if(a===47){if(!(i===o-1||s===1))if(i!==o-1&&s===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),i=o,s=0;continue}}else if(n.length>0){n="",r=0,i=o,s=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,s=0}else a===46&&s>-1?s++:s=-1}return n}function Kn(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const V0={cwd:K0};function K0(){return"/"}function Vi(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function X0(e){if(typeof e=="string")e=new URL(e);else if(!Vi(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Q0(e)}function Q0(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Ki=["history","path","basename","stem","extname","dirname"];class Go{constructor(t){let n;t?Vi(t)?n={path:t}:typeof t=="string"||Z0(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":V0.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Ki.length;){const s=Ki[r];s in n&&n[s]!==void 0&&n[s]!==null&&(this[s]=s==="history"?[...n[s]]:n[s])}let i;for(i in n)Ki.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?Ct.basename(this.path):void 0}set basename(t){Qi(t,"basename"),Xi(t,"basename"),this.path=Ct.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Ct.dirname(this.path):void 0}set dirname(t){Vo(this.basename,"dirname"),this.path=Ct.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Ct.extname(this.path):void 0}set extname(t){if(Xi(t,"extname"),Vo(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Ct.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Vi(t)&&(t=X0(t)),Qi(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Ct.basename(this.path,this.extname):void 0}set stem(t){Qi(t,"stem"),Xi(t,"stem"),this.path=Ct.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new Ze(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Xi(e,t){if(e&&e.includes(Ct.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Ct.sep+"`")}function Qi(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Vo(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Z0(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const J0={abandonedHeadElementChild:{reason:"Unexpected metadata element after head",description:"Unexpected element after head. Expected the element before `</head>`",url:!1},abruptClosingOfEmptyComment:{reason:"Unexpected abruptly closed empty comment",description:"Unexpected `>` or `->`. Expected `-->` to close comments"},abruptDoctypePublicIdentifier:{reason:"Unexpected abruptly closed public identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the public identifier"},abruptDoctypeSystemIdentifier:{reason:"Unexpected abruptly closed system identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the identifier identifier"},absenceOfDigitsInNumericCharacterReference:{reason:"Unexpected non-digit at start of numeric character reference",description:"Unexpected `%c`. Expected `[0-9]` for decimal references or `[0-9a-fA-F]` for hexadecimal references"},cdataInHtmlContent:{reason:"Unexpected CDATA section in HTML",description:"Unexpected `<![CDATA[` in HTML. Remove it, use a comment, or encode special characters instead"},characterReferenceOutsideUnicodeRange:{reason:"Unexpected too big numeric character reference",description:"Unexpectedly high character reference. Expected character references to be at most hexadecimal 10ffff (or decimal 1114111)"},closingOfElementWithOpenChildElements:{reason:"Unexpected closing tag with open child elements",description:"Unexpectedly closing tag. Expected other tags to be closed first",url:!1},controlCharacterInInputStream:{reason:"Unexpected control character",description:"Unexpected control character `%x`. Expected a non-control code point, 0x00, or ASCII whitespace"},controlCharacterReference:{reason:"Unexpected control character reference",description:"Unexpectedly control character in reference. Expected a non-control code point, 0x00, or ASCII whitespace"},disallowedContentInNoscriptInHead:{reason:"Disallowed content inside `<noscript>` in `<head>`",description:"Unexpected text character `%c`. Only use text in `<noscript>`s in `<body>`",url:!1},duplicateAttribute:{reason:"Unexpected duplicate attribute",description:"Unexpectedly double attribute. Expected attributes to occur only once"},endTagWithAttributes:{reason:"Unexpected attribute on closing tag",description:"Unexpected attribute. Expected `>` instead"},endTagWithTrailingSolidus:{reason:"Unexpected slash at end of closing tag",description:"Unexpected `%c-1`. Expected `>` instead"},endTagWithoutMatchingOpenElement:{reason:"Unexpected unopened end tag",description:"Unexpected end tag. Expected no end tag or another end tag",url:!1},eofBeforeTagName:{reason:"Unexpected end of file",description:"Unexpected end of file. Expected tag name instead"},eofInCdata:{reason:"Unexpected end of file in CDATA",description:"Unexpected end of file. Expected `]]>` to close the CDATA"},eofInComment:{reason:"Unexpected end of file in comment",description:"Unexpected end of file. Expected `-->` to close the comment"},eofInDoctype:{reason:"Unexpected end of file in doctype",description:"Unexpected end of file. Expected a valid doctype (such as `<!doctype html>`)"},eofInElementThatCanContainOnlyText:{reason:"Unexpected end of file in element that can only contain text",description:"Unexpected end of file. Expected text or a closing tag",url:!1},eofInScriptHtmlCommentLikeText:{reason:"Unexpected end of file in comment inside script",description:"Unexpected end of file. Expected `-->` to close the comment"},eofInTag:{reason:"Unexpected end of file in tag",description:"Unexpected end of file. Expected `>` to close the tag"},incorrectlyClosedComment:{reason:"Incorrectly closed comment",description:"Unexpected `%c-1`. Expected `-->` to close the comment"},incorrectlyOpenedComment:{reason:"Incorrectly opened comment",description:"Unexpected `%c`. Expected `<!--` to open the comment"},invalidCharacterSequenceAfterDoctypeName:{reason:"Invalid sequence after doctype name",description:"Unexpected sequence at `%c`. Expected `public` or `system`"},invalidFirstCharacterOfTagName:{reason:"Invalid first character in tag name",description:"Unexpected `%c`. Expected an ASCII letter instead"},misplacedDoctype:{reason:"Misplaced doctype",description:"Unexpected doctype. Expected doctype before head",url:!1},misplacedStartTagForHeadElement:{reason:"Misplaced `<head>` start tag",description:"Unexpected start tag `<head>`. Expected `<head>` directly after doctype",url:!1},missingAttributeValue:{reason:"Missing attribute value",description:"Unexpected `%c-1`. Expected an attribute value or no `%c-1` instead"},missingDoctype:{reason:"Missing doctype before other content",description:"Expected a `<!doctype html>` before anything else",url:!1},missingDoctypeName:{reason:"Missing doctype name",description:"Unexpected doctype end at `%c`. Expected `html` instead"},missingDoctypePublicIdentifier:{reason:"Missing public identifier in doctype",description:"Unexpected `%c`. Expected identifier for `public` instead"},missingDoctypeSystemIdentifier:{reason:"Missing system identifier in doctype",description:'Unexpected `%c`. Expected identifier for `system` instead (suggested: `"about:legacy-compat"`)'},missingEndTagName:{reason:"Missing name in end tag",description:"Unexpected `%c`. Expected an ASCII letter instead"},missingQuoteBeforeDoctypePublicIdentifier:{reason:"Missing quote before public identifier in doctype",description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingQuoteBeforeDoctypeSystemIdentifier:{reason:"Missing quote before system identifier in doctype",description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingSemicolonAfterCharacterReference:{reason:"Missing semicolon after character reference",description:"Unexpected `%c`. Expected `;` instead"},missingWhitespaceAfterDoctypePublicKeyword:{reason:"Missing whitespace after public identifier in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceAfterDoctypeSystemKeyword:{reason:"Missing whitespace after system identifier in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBeforeDoctypeName:{reason:"Missing whitespace before doctype name",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenAttributes:{reason:"Missing whitespace between attributes",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:{reason:"Missing whitespace between public and system identifiers in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},nestedComment:{reason:"Unexpected nested comment",description:"Unexpected `<!--`. Expected `-->`"},nestedNoscriptInHead:{reason:"Unexpected nested `<noscript>` in `<head>`",description:"Unexpected `<noscript>`. Expected a closing tag or a meta element",url:!1},nonConformingDoctype:{reason:"Unexpected non-conforming doctype declaration",description:'Expected `<!doctype html>` or `<!doctype html system "about:legacy-compat">`',url:!1},nonVoidHtmlElementStartTagWithTrailingSolidus:{reason:"Unexpected trailing slash on start tag of non-void element",description:"Unexpected `/`. Expected `>` instead"},noncharacterCharacterReference:{reason:"Unexpected noncharacter code point referenced by character reference",description:"Unexpected code point. Do not use noncharacters in HTML"},noncharacterInInputStream:{reason:"Unexpected noncharacter character",description:"Unexpected code point `%x`. Do not use noncharacters in HTML"},nullCharacterReference:{reason:"Unexpected NULL character referenced by character reference",description:"Unexpected code point. Do not use NULL characters in HTML"},openElementsLeftAfterEof:{reason:"Unexpected end of file",description:"Unexpected end of file. Expected closing tag instead",url:!1},surrogateCharacterReference:{reason:"Unexpected surrogate character referenced by character reference",description:"Unexpected code point. Do not use lone surrogate characters in HTML"},surrogateInInputStream:{reason:"Unexpected surrogate character",description:"Unexpected code point `%x`. Do not use lone surrogate characters in HTML"},unexpectedCharacterAfterDoctypeSystemIdentifier:{reason:"Invalid character after system identifier in doctype",description:"Unexpected character at `%c`. Expected `>`"},unexpectedCharacterInAttributeName:{reason:"Unexpected character in attribute name",description:"Unexpected `%c`. Expected whitespace, `/`, `>`, `=`, or probably an ASCII letter"},unexpectedCharacterInUnquotedAttributeValue:{reason:"Unexpected character in unquoted attribute value",description:"Unexpected `%c`. Quote the attribute value to include it"},unexpectedEqualsSignBeforeAttributeName:{reason:"Unexpected equals sign before attribute name",description:"Unexpected `%c`. Add an attribute name before it"},unexpectedNullCharacter:{reason:"Unexpected NULL character",description:"Unexpected code point `%x`. Do not use NULL characters in HTML"},unexpectedQuestionMarkInsteadOfTagName:{reason:"Unexpected question mark instead of tag name",description:"Unexpected `%c`. Expected an ASCII letter instead"},unexpectedSolidusInTag:{reason:"Unexpected slash in tag",description:"Unexpected `%c-1`. Expected it followed by `>` or in a quoted attribute value"},unknownNamedCharacterReference:{reason:"Unexpected unknown named character reference",description:"Unexpected character reference. Expected known named character references"}},em="https://html.spec.whatwg.org/multipage/parsing.html#parse-error-",tm=/-[a-z]/g,nm=/%c(?:([-+])(\d+))?/g,rm=/%x/g,im={2:!0,1:!1,0:null},sm={};function am(e,t){const n=t||sm,r=n.onerror,i=e instanceof Go?e:new Go(e),s=n.fragment?H0:U0,o=String(i),a=s(o,{sourceCodeLocationInfo:!0,onParseError:n.onerror?u:null,scriptingEnabled:!1});return uf(a,{file:i,space:n.space,verbose:n.verbose});function u(c){const d=c.code,h=om(d),m=n[h],f=m??!0,b=typeof f=="number"?f:f?1:0;if(b){const _=J0[h],p=new Ze(g(_.reason),{place:{start:{line:c.startLine,column:c.startCol,offset:c.startOffset},end:{line:c.endLine,column:c.endCol,offset:c.endOffset}},ruleId:d,source:"hast-util-from-html"});i.path&&(p.file=i.path,p.name=i.path+":"+p.name),p.fatal=im[b],p.note=g(_.description),p.url=_.url===!1?void 0:em+d,r(p)}function g(_){return _.replace(nm,p).replace(rm,y);function p(C,I,D){const B=(D?Number.parseInt(D,10):0)*(I==="-"?-1:1),A=o.charAt(c.startOffset+B);return lm(A)}function y(){return cm(o.charCodeAt(c.startOffset))}}}}function om(e){return e.replace(tm,um)}function um(e){return e.charAt(1).toUpperCase()}function lm(e){return e==="`"?"` ` `":e}function cm(e){return"0x"+e.toString(16).toUpperCase()}const Yt=0,ne=1,pe=2,Be=3,xe=4,Et=5,xr=6,Ge=7,rt=8,ge=9,fe=10,Oe=11,be=12,Le=13,Xn=14,it=15,Ve=16,Ke=17,st=18,ot=19,ft=20,we=21,de=22,ze=23,ut=24,qe=25,dm=0;function Ye(e){return e>=48&&e<=57}function Wt(e){return Ye(e)||e>=65&&e<=70||e>=97&&e<=102}function Zi(e){return e>=65&&e<=90}function hm(e){return e>=97&&e<=122}function fm(e){return Zi(e)||hm(e)}function pm(e){return e>=128}function Nr(e){return fm(e)||pm(e)||e===95}function Ko(e){return Nr(e)||Ye(e)||e===45}function mm(e){return e>=0&&e<=8||e===11||e>=14&&e<=31||e===127}function vr(e){return e===10||e===13||e===12}function rn(e){return vr(e)||e===32||e===9}function xt(e,t){return!(e!==92||vr(t)||t===dm)}function Ir(e,t,n){return e===45?Nr(t)||t===45||xt(t,n):Nr(e)?!0:e===92?xt(e,t):!1}function Ji(e,t,n){return e===43||e===45?Ye(t)?2:t===46&&Ye(n)?3:0:e===46?Ye(t)?2:0:Ye(e)?1:0}function Xo(e){return e===65279||e===65534?1:0}const es=new Array(128),gm=128,Or=130,Qo=131,ts=132,Zo=133;for(let e=0;e<es.length;e++)es[e]=rn(e)&&Or||Ye(e)&&Qo||Nr(e)&&ts||mm(e)&&Zo||e||gm;function ns(e){return e<128?es[e]:ts}function gn(e,t){return t<e.length?e.charCodeAt(t):0}function rs(e,t,n){return n===13&&gn(e,t+1)===10?2:1}function bn(e,t,n){let r=e.charCodeAt(t);return Zi(r)&&(r=r|32),r===n}function Qn(e,t,n,r){if(n-t!==r.length||t<0||n>e.length)return!1;for(let i=t;i<n;i++){const s=r.charCodeAt(i-t);let o=e.charCodeAt(i);if(Zi(o)&&(o=o|32),o!==s)return!1}return!0}function bm(e,t){for(;t>=0&&rn(e.charCodeAt(t));t--);return t+1}function Lr(e,t){for(;t<e.length&&rn(e.charCodeAt(t));t++);return t}function is(e,t){for(;t<e.length&&Ye(e.charCodeAt(t));t++);return t}function En(e,t){if(t+=2,Wt(gn(e,t-1))){for(const r=Math.min(e.length,t+5);t<r&&Wt(gn(e,t));t++);const n=gn(e,t);rn(n)&&(t+=rs(e,t,n))}return t}function Pr(e,t){for(;t<e.length;t++){const n=e.charCodeAt(t);if(!Ko(n)){if(xt(n,gn(e,t+1))){t=En(e,t)-1;continue}break}}return t}function Rr(e,t){let n=e.charCodeAt(t);if((n===43||n===45)&&(n=e.charCodeAt(t+=1)),Ye(n)&&(t=is(e,t+1),n=e.charCodeAt(t)),n===46&&Ye(e.charCodeAt(t+1))&&(t+=2,t=is(e,t)),bn(e,t,101)){let r=0;n=e.charCodeAt(t+1),(n===45||n===43)&&(r=1,n=e.charCodeAt(t+2)),Ye(n)&&(t=is(e,t+1+r+1))}return t}function ss(e,t){for(;t<e.length;t++){const n=e.charCodeAt(t);if(n===41){t++;break}xt(n,gn(e,t+1))&&(t=En(e,t))}return t}function Jo(e){if(e.length===1&&!Wt(e.charCodeAt(0)))return e[0];let t=parseInt(e,16);return(t===0||t>=55296&&t<=57343||t>1114111)&&(t=65533),String.fromCodePoint(t)}const as=["EOF-token","ident-token","function-token","at-keyword-token","hash-token","string-token","bad-string-token","url-token","bad-url-token","delim-token","number-token","percentage-token","dimension-token","whitespace-token","CDO-token","CDC-token","colon-token","semicolon-token","comma-token","[-token","]-token","(-token",")-token","{-token","}-token","comment-token"],Em=16*1024;function Dr(e=null,t){return e===null||e.length<t?new Uint32Array(Math.max(t+1024,Em)):e}const eu=10,ym=12,tu=13;function nu(e){const t=e.source,n=t.length,r=t.length>0?Xo(t.charCodeAt(0)):0,i=Dr(e.lines,n),s=Dr(e.columns,n);let o=e.startLine,a=e.startColumn;for(let u=r;u<n;u++){const c=t.charCodeAt(u);i[u]=o,s[u]=a++,(c===eu||c===tu||c===ym)&&(c===tu&&u+1<n&&t.charCodeAt(u+1)===eu&&(u++,i[u]=o,s[u]=a),o++,a=1)}i[n]=o,s[n]=a,e.lines=i,e.columns=s,e.computed=!0}class Tm{constructor(t,n,r,i){this.setSource(t,n,r,i),this.lines=null,this.columns=null}setSource(t="",n=0,r=1,i=1){this.source=t,this.startOffset=n,this.startLine=r,this.startColumn=i,this.computed=!1}getLocation(t,n){return this.computed||nu(this),{source:n,offset:this.startOffset+t,line:this.lines[t],column:this.columns[t]}}getLocationRange(t,n,r){return this.computed||nu(this),{source:r,start:{offset:this.startOffset+t,line:this.lines[t],column:this.columns[t]},end:{offset:this.startOffset+n,line:this.lines[n],column:this.columns[n]}}}}const yt=16777215,Tt=24,Zn=1,Mr=2,Gt=new Uint8Array(32);Gt[pe]=de,Gt[we]=de,Gt[ot]=ft,Gt[ze]=ut;const _t=new Uint8Array(32);_t[pe]=Zn,_t[we]=Zn,_t[ot]=Zn,_t[ze]=Zn,_t[de]=Mr,_t[ft]=Mr,_t[ut]=Mr;function ru(e,t,n){return e<t?t:e>n?n:e}class _m{constructor(t,n){this.setSource(t,n)}reset(){this.eof=!1,this.tokenIndex=-1,this.tokenType=0,this.tokenStart=this.firstCharOffset,this.tokenEnd=this.firstCharOffset}setSource(t="",n=()=>{}){t=String(t||"");const r=t.length,i=Dr(this.offsetAndType,t.length+1),s=Dr(this.balance,t.length+1);let o=0,a=-1,u=0,c=t.length;this.offsetAndType=null,this.balance=null,s.fill(0),n(t,(d,h,m)=>{const f=o++;if(i[f]=d<<Tt|m,a===-1&&(a=h),s[f]=c,d===u){const b=s[c];s[c]=f,c=b,u=Gt[i[b]>>Tt]}else this.isBlockOpenerTokenType(d)&&(c=f,u=Gt[d])}),i[o]=Yt<<Tt|r,s[o]=o;for(let d=0;d<o;d++){const h=s[d];if(h<=d){const m=s[h];m!==d&&(s[d]=m)}else h>o&&(s[d]=o)}this.source=t,this.firstCharOffset=a===-1?0:a,this.tokenCount=o,this.offsetAndType=i,this.balance=s,this.reset(),this.next()}lookupType(t){return t+=this.tokenIndex,t<this.tokenCount?this.offsetAndType[t]>>Tt:Yt}lookupTypeNonSC(t){for(let n=this.tokenIndex;n<this.tokenCount;n++){const r=this.offsetAndType[n]>>Tt;if(r!==Le&&r!==qe&&t--===0)return r}return Yt}lookupOffset(t){return t+=this.tokenIndex,t<this.tokenCount?this.offsetAndType[t-1]&yt:this.source.length}lookupOffsetNonSC(t){for(let n=this.tokenIndex;n<this.tokenCount;n++){const r=this.offsetAndType[n]>>Tt;if(r!==Le&&r!==qe&&t--===0)return n-this.tokenIndex}return Yt}lookupValue(t,n){return t+=this.tokenIndex,t<this.tokenCount?Qn(this.source,this.offsetAndType[t-1]&yt,this.offsetAndType[t]&yt,n):!1}getTokenStart(t){return t===this.tokenIndex?this.tokenStart:t>0?t<this.tokenCount?this.offsetAndType[t-1]&yt:this.offsetAndType[this.tokenCount]&yt:this.firstCharOffset}getTokenEnd(t){return t===this.tokenIndex?this.tokenEnd:this.offsetAndType[ru(t,0,this.tokenCount)]&yt}getTokenType(t){return t===this.tokenIndex?this.tokenType:this.offsetAndType[ru(t,0,this.tokenCount)]>>Tt}substrToCursor(t){return this.source.substring(t,this.tokenStart)}isBlockOpenerTokenType(t){return _t[t]===Zn}isBlockCloserTokenType(t){return _t[t]===Mr}getBlockTokenPairIndex(t){const n=this.getTokenType(t);if(_t[n]===1){const r=this.balance[t],i=this.getTokenType(r);return Gt[n]===i?r:-1}else if(_t[n]===2){const r=this.balance[t],i=this.getTokenType(r);return Gt[i]===n?r:-1}return-1}isBalanceEdge(t){return this.balance[this.tokenIndex]<t}isDelim(t,n){return n?this.lookupType(n)===ge&&this.source.charCodeAt(this.lookupOffset(n))===t:this.tokenType===ge&&this.source.charCodeAt(this.tokenStart)===t}skip(t){let n=this.tokenIndex+t;n<this.tokenCount?(this.tokenIndex=n,this.tokenStart=this.offsetAndType[n-1]&yt,n=this.offsetAndType[n],this.tokenType=n>>Tt,this.tokenEnd=n&yt):(this.tokenIndex=this.tokenCount,this.next())}next(){let t=this.tokenIndex+1;t<this.tokenCount?(this.tokenIndex=t,this.tokenStart=this.tokenEnd,t=this.offsetAndType[t],this.tokenType=t>>Tt,this.tokenEnd=t&yt):(this.eof=!0,this.tokenIndex=this.tokenCount,this.tokenType=Yt,this.tokenStart=this.tokenEnd=this.source.length)}skipSC(){for(;this.tokenType===Le||this.tokenType===qe;)this.next()}skipUntilBalanced(t,n){let r=t,i=0,s=0;e:for(;r<this.tokenCount;r++){if(i=this.balance[r],i<t)break e;switch(s=r>0?this.offsetAndType[r-1]&yt:this.firstCharOffset,n(this.source.charCodeAt(s))){case 1:break e;case 2:r++;break e;default:this.isBlockOpenerTokenType(this.offsetAndType[r]>>Tt)&&(r=i)}}this.skip(r-this.tokenIndex)}forEachToken(t){for(let n=0,r=this.firstCharOffset;n<this.tokenCount;n++){const i=r,s=this.offsetAndType[n],o=s&yt,a=s>>Tt;r=o,t(a,i,o,n)}}dump(){const t=new Array(this.tokenCount);return this.forEachToken((n,r,i,s)=>{t[s]={idx:s,type:as[n],chunk:this.source.substring(r,i),balance:this.balance[s]}}),t}}function Br(e,t){function n(h){return h<a?e.charCodeAt(h):0}function r(){if(c=Rr(e,c),Ir(n(c),n(c+1),n(c+2))){d=be,c=Pr(e,c);return}if(n(c)===37){d=Oe,c++;return}d=fe}function i(){const h=c;if(c=Pr(e,c),Qn(e,h,c,"url")&&n(c)===40){if(c=Lr(e,c+1),n(c)===34||n(c)===39){d=pe,c=h+4;return}o();return}if(n(c)===40){d=pe,c++;return}d=ne}function s(h){for(h||(h=n(c++)),d=Et;c<e.length;c++){const m=e.charCodeAt(c);switch(ns(m)){case h:c++;return;case Or:if(vr(m)){c+=rs(e,c,m),d=xr;return}break;case 92:if(c===e.length-1)break;const f=n(c+1);vr(f)?c+=rs(e,c+1,f):xt(m,f)&&(c=En(e,c)-1);break}}}function o(){for(d=Ge,c=Lr(e,c);c<e.length;c++){const h=e.charCodeAt(c);switch(ns(h)){case 41:c++;return;case Or:if(c=Lr(e,c),n(c)===41||c>=e.length){c<e.length&&c++;return}c=ss(e,c),d=rt;return;case 34:case 39:case 40:case Zo:c=ss(e,c),d=rt;return;case 92:if(xt(h,n(c+1))){c=En(e,c)-1;break}c=ss(e,c),d=rt;return}}}e=String(e||"");const a=e.length;let u=Xo(n(0)),c=u,d;for(;c<a;){const h=e.charCodeAt(c);switch(ns(h)){case Or:d=Le,c=Lr(e,c+1);break;case 34:s();break;case 35:Ko(n(c+1))||xt(n(c+1),n(c+2))?(d=xe,c=Pr(e,c+1)):(d=ge,c++);break;case 39:s();break;case 40:d=we,c++;break;case 41:d=de,c++;break;case 43:Ji(h,n(c+1),n(c+2))?r():(d=ge,c++);break;case 44:d=st,c++;break;case 45:Ji(h,n(c+1),n(c+2))?r():n(c+1)===45&&n(c+2)===62?(d=it,c=c+3):Ir(h,n(c+1),n(c+2))?i():(d=ge,c++);break;case 46:Ji(h,n(c+1),n(c+2))?r():(d=ge,c++);break;case 47:n(c+1)===42?(d=qe,c=e.indexOf("*/",c+2),c=c===-1?e.length:c+2):(d=ge,c++);break;case 58:d=Ve,c++;break;case 59:d=Ke,c++;break;case 60:n(c+1)===33&&n(c+2)===45&&n(c+3)===45?(d=Xn,c=c+4):(d=ge,c++);break;case 64:Ir(n(c+1),n(c+2),n(c+3))?(d=Be,c=Pr(e,c+1)):(d=ge,c++);break;case 91:d=ot,c++;break;case 92:xt(h,n(c+1))?i():(d=ge,c++);break;case 93:d=ft,c++;break;case 123:d=ze,c++;break;case 125:d=ut,c++;break;case Qo:r();break;case ts:i();break;default:d=ge,c++}t(d,u,u=c)}}let yn=null;class $e{static createItem(t){return{prev:null,next:null,data:t}}constructor(){this.head=null,this.tail=null,this.cursor=null}createItem(t){return $e.createItem(t)}allocateCursor(t,n){let r;return yn!==null?(r=yn,yn=yn.cursor,r.prev=t,r.next=n,r.cursor=this.cursor):r={prev:t,next:n,cursor:this.cursor},this.cursor=r,r}releaseCursor(){const{cursor:t}=this;this.cursor=t.cursor,t.prev=null,t.next=null,t.cursor=yn,yn=t}updateCursors(t,n,r,i){let{cursor:s}=this;for(;s!==null;)s.prev===t&&(s.prev=n),s.next===r&&(s.next=i),s=s.cursor}*[Symbol.iterator](){for(let t=this.head;t!==null;t=t.next)yield t.data}get size(){let t=0;for(let n=this.head;n!==null;n=n.next)t++;return t}get isEmpty(){return this.head===null}get first(){return this.head&&this.head.data}get last(){return this.tail&&this.tail.data}fromArray(t){let n=null;this.head=null;for(let r of t){const i=$e.createItem(r);n!==null?n.next=i:this.head=i,i.prev=n,n=i}return this.tail=n,this}toArray(){return[...this]}toJSON(){return[...this]}forEach(t,n=this){const r=this.allocateCursor(null,this.head);for(;r.next!==null;){const i=r.next;r.next=i.next,t.call(n,i.data,i,this)}this.releaseCursor()}forEachRight(t,n=this){const r=this.allocateCursor(this.tail,null);for(;r.prev!==null;){const i=r.prev;r.prev=i.prev,t.call(n,i.data,i,this)}this.releaseCursor()}reduce(t,n,r=this){let i=this.allocateCursor(null,this.head),s=n,o;for(;i.next!==null;)o=i.next,i.next=o.next,s=t.call(r,s,o.data,o,this);return this.releaseCursor(),s}reduceRight(t,n,r=this){let i=this.allocateCursor(this.tail,null),s=n,o;for(;i.prev!==null;)o=i.prev,i.prev=o.prev,s=t.call(r,s,o.data,o,this);return this.releaseCursor(),s}some(t,n=this){for(let r=this.head;r!==null;r=r.next)if(t.call(n,r.data,r,this))return!0;return!1}map(t,n=this){const r=new $e;for(let i=this.head;i!==null;i=i.next)r.appendData(t.call(n,i.data,i,this));return r}filter(t,n=this){const r=new $e;for(let i=this.head;i!==null;i=i.next)t.call(n,i.data,i,this)&&r.appendData(i.data);return r}nextUntil(t,n,r=this){if(t===null)return;const i=this.allocateCursor(null,t);for(;i.next!==null;){const s=i.next;if(i.next=s.next,n.call(r,s.data,s,this))break}this.releaseCursor()}prevUntil(t,n,r=this){if(t===null)return;const i=this.allocateCursor(t,null);for(;i.prev!==null;){const s=i.prev;if(i.prev=s.prev,n.call(r,s.data,s,this))break}this.releaseCursor()}clear(){this.head=null,this.tail=null}copy(){const t=new $e;for(let n of this)t.appendData(n);return t}prepend(t){return this.updateCursors(null,t,this.head,t),this.head!==null?(this.head.prev=t,t.next=this.head):this.tail=t,this.head=t,this}prependData(t){return this.prepend($e.createItem(t))}append(t){return this.insert(t)}appendData(t){return this.insert($e.createItem(t))}insert(t,n=null){if(n!==null)if(this.updateCursors(n.prev,t,n,t),n.prev===null){if(this.head!==n)throw new Error("before doesn't belong to list");this.head=t,n.prev=t,t.next=n,this.updateCursors(null,t)}else n.prev.next=t,t.prev=n.prev,n.prev=t,t.next=n;else this.updateCursors(this.tail,t,null,t),this.tail!==null?(this.tail.next=t,t.prev=this.tail):this.head=t,this.tail=t;return this}insertData(t,n){return this.insert($e.createItem(t),n)}remove(t){if(this.updateCursors(t,t.prev,t,t.next),t.prev!==null)t.prev.next=t.next;else{if(this.head!==t)throw new Error("item doesn't belong to list");this.head=t.next}if(t.next!==null)t.next.prev=t.prev;else{if(this.tail!==t)throw new Error("item doesn't belong to list");this.tail=t.prev}return t.prev=null,t.next=null,t}push(t){this.insert($e.createItem(t))}pop(){return this.tail!==null?this.remove(this.tail):null}unshift(t){this.prepend($e.createItem(t))}shift(){return this.head!==null?this.remove(this.head):null}prependList(t){return this.insertList(t,this.head)}appendList(t){return this.insertList(t)}insertList(t,n){return t.head===null?this:(n!=null?(this.updateCursors(n.prev,t.tail,n,t.head),n.prev!==null?(n.prev.next=t.head,t.head.prev=n.prev):this.head=t.head,n.prev=t.tail,t.tail.next=n):(this.updateCursors(this.tail,t.tail,null,t.head),this.tail!==null?(this.tail.next=t.head,t.head.prev=this.tail):this.head=t.head,this.tail=t.tail),t.head=null,t.tail=null,this)}replace(t,n){"head"in n?this.insertList(n,t):this.insert(n,t),this.remove(t)}}function Fr(e,t){const n=Object.create(SyntaxError.prototype),r=new Error;return Object.assign(n,{name:e,message:t,get stack(){return(r.stack||"").replace(/^(.+\n){1,3}/,`${e}: ${t}
3
+ `)}})}const os=100,iu=60,su=" ";function au({source:e,line:t,column:n,baseLine:r,baseColumn:i},s){function o(b,g){return c.slice(b,g).map((_,p)=>String(b+p+1).padStart(m)+" |"+_).join(`
4
4
  `)}const a=`
5
- `.repeat(Math.max(r-1,0)),u=" ".repeat(Math.max(i-1,0)),c=(a+u+e).split(/\r\n?|\n|\f/),d=Math.max(1,t-s)-1,h=Math.min(t+s,c.length+1),b=Math.max(4,String(h).length)+1;let f=0;n+=(Ko.length-1)*(c[t-1].substr(0,n-1).match(/\t/g)||[]).length,n>Zi&&(f=n-Vo+3,n=Vo-2);for(let m=d;m<=h;m++)m>=0&&m<c.length&&(c[m]=c[m].replace(/\t/g,Ko),c[m]=(f>0&&c[m].length>f?"…":"")+c[m].substr(f,Zi-2)+(c[m].length>f+Zi-1?"…":""));return[o(d,t),new Array(n+b+2).join("-")+"^",o(t,h)].filter(Boolean).join(`
6
- `).replace(/^(\s+\d+\s+\|\n)+/,"").replace(/\n(\s+\d+\s+\|)+$/,"")}function Qo(e,t,n,r,i,s=1,o=1){return Object.assign(Rr("SyntaxError",e),{source:t,offset:n,line:r,column:i,sourceFragment(u){return Xo({source:t,line:r,column:i,baseLine:s,baseColumn:o},isNaN(u)?0:u)},get formattedMessage(){return`Parse error: ${e}
7
- `+Xo({source:t,line:r,column:i,baseLine:s,baseColumn:o},2)}})}function rm(e){const t=this.createList();let n=!1;const r={recognizer:e};for(;!this.eof;){switch(this.tokenType){case qe:this.next();continue;case Le:n=!0,this.next();continue}let i=e.getNode.call(this,r);if(i===void 0)break;n&&(e.onWhiteSpace&&e.onWhiteSpace.call(this,i,t,r),n=!1),t.push(i)}return n&&e.onWhiteSpace&&e.onWhiteSpace.call(this,null,t,r),t}const Tn=()=>{},im=33,sm=35,Ji=59,Zo=123,Jo=0,am={createList(){return[]},createSingleNodeList(e){return[e]},getFirstListNode(e){return e&&e[0]||null},getLastListNode(e){return e&&e.length>0?e[e.length-1]:null}},om={createList(){return new $e},createSingleNodeList(e){return new $e().appendData(e)},getFirstListNode(e){return e&&e.first},getLastListNode(e){return e&&e.last}};function um(e){return function(){return this[e]()}}function es(e){const t=Object.create(null);for(const n of Object.keys(e)){const r=e[n],i=r.parse||r;i&&(t[n]=i)}return t}function lm(e){const t={context:Object.create(null),features:Object.assign(Object.create(null),e.features),scope:Object.assign(Object.create(null),e.scope),atrule:es(e.atrule),pseudo:es(e.pseudo),node:es(e.node)};for(const[n,r]of Object.entries(e.parseContext))switch(typeof r){case"function":t.context[n]=r;break;case"string":t.context[n]=um(r);break}return{config:t,...t,...t.node}}function cm(e){let t="",n="<unknown>",r=!1,i=Tn,s=!1;const o=new tm,a=Object.assign(new nm,lm(e||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:rm,consumeUntilBalanceEnd:()=>0,consumeUntilLeftCurlyBracket(d){return d===Zo?1:0},consumeUntilLeftCurlyBracketOrSemicolon(d){return d===Zo||d===Ji?1:0},consumeUntilExclamationMarkOrSemicolon(d){return d===im||d===Ji?1:0},consumeUntilSemicolonIncluded(d){return d===Ji?2:0},createList:Tn,createSingleNodeList:Tn,getFirstListNode:Tn,getLastListNode:Tn,parseWithFallback(d,h){const b=this.tokenIndex;try{return d.call(this)}catch(f){if(s)throw f;this.skip(b-this.tokenIndex);const m=h.call(this);return s=!0,i(f,m),s=!1,m}},lookupNonWSType(d){let h;do if(h=this.lookupType(d++),h!==Le&&h!==qe)return h;while(h!==Jo);return Jo},charCodeAt(d){return d>=0&&d<t.length?t.charCodeAt(d):0},substring(d,h){return t.substring(d,h)},substrToCursor(d){return this.source.substring(d,this.tokenStart)},cmpChar(d,h){return bn(t,d,h)},cmpStr(d,h,b){return Gn(t,d,h,b)},consume(d){const h=this.tokenStart;return this.eat(d),this.substrToCursor(h)},consumeFunctionName(){const d=t.substring(this.tokenStart,this.tokenEnd-1);return this.eat(pe),d},consumeNumber(d){const h=t.substring(this.tokenStart,Ir(t,this.tokenStart));return this.eat(d),h},eat(d){if(this.tokenType!==d){const h=Qi[d].slice(0,-6).replace(/-/g," ").replace(/^./,m=>m.toUpperCase());let b=`${/[[\](){}]/.test(h)?`"${h}"`:h} is expected`,f=this.tokenStart;switch(d){case ne:this.tokenType===pe||this.tokenType===Ge?(f=this.tokenEnd-1,b="Identifier is expected but function found"):b="Identifier is expected";break;case xe:this.isDelim(sm)&&(this.next(),f++,b="Name is expected");break;case Oe:this.tokenType===fe&&(f=this.tokenEnd,b="Percent sign is expected");break}this.error(b,f)}this.next()},eatIdent(d){(this.tokenType!==ne||this.lookupValue(0,d)===!1)&&this.error(`Identifier "${d}" is expected`),this.next()},eatDelim(d){this.isDelim(d)||this.error(`Delim "${String.fromCharCode(d)}" is expected`),this.next()},getLocation(d,h){return r?o.getLocationRange(d,h,n):null},getLocationFromList(d){if(r){const h=this.getFirstListNode(d),b=this.getLastListNode(d);return o.getLocationRange(h!==null?h.loc.start.offset-o.startOffset:this.tokenStart,b!==null?b.loc.end.offset-o.startOffset:this.tokenStart,n)}return null},error(d,h){const b=typeof h<"u"&&h<t.length?o.getLocation(h):this.eof?o.getLocation(Z0(t,t.length-1)):o.getLocation(this.tokenStart);throw new Qo(d||"Unexpected input",t,b.offset,b.line,b.column,o.startLine,o.startColumn)}}),u=()=>({filename:n,source:t,tokenCount:a.tokenCount,getTokenType:d=>a.getTokenType(d),getTokenTypeName:d=>Qi[a.getTokenType(d)],getTokenStart:d=>a.getTokenStart(d),getTokenEnd:d=>a.getTokenEnd(d),getTokenValue:d=>a.source.substring(a.getTokenStart(d),a.getTokenEnd(d)),substring:(d,h)=>a.source.substring(d,h),balance:a.balance.subarray(0,a.tokenCount+1),isBlockOpenerTokenType:a.isBlockOpenerTokenType,isBlockCloserTokenType:a.isBlockCloserTokenType,getBlockTokenPairIndex:d=>a.getBlockTokenPairIndex(d),getLocation:d=>o.getLocation(d,n),getRangeLocation:(d,h)=>o.getLocationRange(d,h,n)});return Object.assign(function(d,h){t=d,h=h||{},a.setSource(t,Lr),o.setSource(t,h.offset,h.line,h.column),n=h.filename||"<unknown>",r=!!h.positions,i=typeof h.onParseError=="function"?h.onParseError:Tn,s=!1,a.parseAtrulePrelude="parseAtrulePrelude"in h?!!h.parseAtrulePrelude:!0,a.parseRulePrelude="parseRulePrelude"in h?!!h.parseRulePrelude:!0,a.parseValue="parseValue"in h?!!h.parseValue:!0,a.parseCustomProperty="parseCustomProperty"in h?!!h.parseCustomProperty:!1;const{context:b="default",list:f=!0,onComment:m,onToken:g}=h;if(!(b in a.context))throw new Error("Unknown context `"+b+"`");Object.assign(a,f?om:am),Array.isArray(g)?a.forEachToken((p,y,C)=>{g.push({type:p,start:y,end:C})}):typeof g=="function"&&a.forEachToken(g.bind(u())),typeof m=="function"&&a.forEachToken((p,y,C)=>{if(p===qe){const O=a.getLocation(y,C),D=Gn(t,C-2,C,"*/")?t.slice(y+2,C-2):t.slice(y+2,C);m(D,O)}});const _=a.context[b].call(a,h);return a.eof||a.error(),_},{SyntaxError:Qo,config:a.config})}var Pr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function dm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ts={},Dr={},Mr={},eu;function hm(){if(eu)return Mr;eu=1;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return Mr.encode=function(t){if(0<=t&&t<e.length)return e[t];throw new TypeError("Must be between 0 and 63: "+t)},Mr.decode=function(t){var n=65,r=90,i=97,s=122,o=48,a=57,u=43,c=47,d=26,h=52;return n<=t&&t<=r?t-n:i<=t&&t<=s?t-i+d:o<=t&&t<=a?t-o+h:t==u?62:t==c?63:-1},Mr}var tu;function fm(){if(tu)return Dr;tu=1;var e=hm(),t=5,n=1<<t,r=n-1,i=n;function s(a){return a<0?(-a<<1)+1:(a<<1)+0}function o(a){var u=(a&1)===1,c=a>>1;return u?-c:c}return Dr.encode=function(u){var c="",d,h=s(u);do d=h&r,h>>>=t,h>0&&(d|=i),c+=e.encode(d);while(h>0);return c},Dr.decode=function(u,c,d){var h=u.length,b=0,f=0,m,g;do{if(c>=h)throw new Error("Expected more digits in base 64 VLQ value.");if(g=e.decode(u.charCodeAt(c++)),g===-1)throw new Error("Invalid base64 digit: "+u.charAt(c-1));m=!!(g&i),g&=r,b=b+(g<<f),f+=t}while(m);d.value=o(b),d.rest=c},Dr}var ns={},nu;function rs(){return nu||(nu=1,(function(e){function t(S,k,P){if(k in S)return S[k];if(arguments.length===3)return P;throw new Error('"'+k+'" is a required argument.')}e.getArg=t;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function i(S){var k=S.match(n);return k?{scheme:k[1],auth:k[2],host:k[3],port:k[4],path:k[5]}:null}e.urlParse=i;function s(S){var k="";return S.scheme&&(k+=S.scheme+":"),k+="//",S.auth&&(k+=S.auth+"@"),S.host&&(k+=S.host),S.port&&(k+=":"+S.port),S.path&&(k+=S.path),k}e.urlGenerate=s;var o=32;function a(S){var k=[];return function(P){for(var R=0;R<k.length;R++)if(k[R].input===P){var x=k[0];return k[0]=k[R],k[R]=x,k[0].result}var M=S(P);return k.unshift({input:P,result:M}),k.length>o&&k.pop(),M}}var u=a(function(k){var P=k,R=i(k);if(R){if(!R.path)return k;P=R.path}for(var x=e.isAbsolute(P),M=[],T=0,U=0;;)if(T=U,U=P.indexOf("/",T),U===-1){M.push(P.slice(T));break}else for(M.push(P.slice(T,U));U<P.length&&P[U]==="/";)U++;for(var W,G=0,U=M.length-1;U>=0;U--)W=M[U],W==="."?M.splice(U,1):W===".."?G++:G>0&&(W===""?(M.splice(U+1,G),G=0):(M.splice(U,2),G--));return P=M.join("/"),P===""&&(P=x?"/":"."),R?(R.path=P,s(R)):P});e.normalize=u;function c(S,k){S===""&&(S="."),k===""&&(k=".");var P=i(k),R=i(S);if(R&&(S=R.path||"/"),P&&!P.scheme)return R&&(P.scheme=R.scheme),s(P);if(P||k.match(r))return k;if(R&&!R.host&&!R.path)return R.host=k,s(R);var x=k.charAt(0)==="/"?k:u(S.replace(/\/+$/,"")+"/"+k);return R?(R.path=x,s(R)):x}e.join=c,e.isAbsolute=function(S){return S.charAt(0)==="/"||n.test(S)};function d(S,k){S===""&&(S="."),S=S.replace(/\/$/,"");for(var P=0;k.indexOf(S+"/")!==0;){var R=S.lastIndexOf("/");if(R<0||(S=S.slice(0,R),S.match(/^([^\/]+:\/)?\/*$/)))return k;++P}return Array(P+1).join("../")+k.substr(S.length+1)}e.relative=d;var h=(function(){var S=Object.create(null);return!("__proto__"in S)})();function b(S){return S}function f(S){return g(S)?"$"+S:S}e.toSetString=h?b:f;function m(S){return g(S)?S.slice(1):S}e.fromSetString=h?b:m;function g(S){if(!S)return!1;var k=S.length;if(k<9||S.charCodeAt(k-1)!==95||S.charCodeAt(k-2)!==95||S.charCodeAt(k-3)!==111||S.charCodeAt(k-4)!==116||S.charCodeAt(k-5)!==111||S.charCodeAt(k-6)!==114||S.charCodeAt(k-7)!==112||S.charCodeAt(k-8)!==95||S.charCodeAt(k-9)!==95)return!1;for(var P=k-10;P>=0;P--)if(S.charCodeAt(P)!==36)return!1;return!0}function _(S,k,P){var R=O(S.source,k.source);return R!==0||(R=S.originalLine-k.originalLine,R!==0)||(R=S.originalColumn-k.originalColumn,R!==0||P)||(R=S.generatedColumn-k.generatedColumn,R!==0)||(R=S.generatedLine-k.generatedLine,R!==0)?R:O(S.name,k.name)}e.compareByOriginalPositions=_;function p(S,k,P){var R;return R=S.originalLine-k.originalLine,R!==0||(R=S.originalColumn-k.originalColumn,R!==0||P)||(R=S.generatedColumn-k.generatedColumn,R!==0)||(R=S.generatedLine-k.generatedLine,R!==0)?R:O(S.name,k.name)}e.compareByOriginalPositionsNoSource=p;function y(S,k,P){var R=S.generatedLine-k.generatedLine;return R!==0||(R=S.generatedColumn-k.generatedColumn,R!==0||P)||(R=O(S.source,k.source),R!==0)||(R=S.originalLine-k.originalLine,R!==0)||(R=S.originalColumn-k.originalColumn,R!==0)?R:O(S.name,k.name)}e.compareByGeneratedPositionsDeflated=y;function C(S,k,P){var R=S.generatedColumn-k.generatedColumn;return R!==0||P||(R=O(S.source,k.source),R!==0)||(R=S.originalLine-k.originalLine,R!==0)||(R=S.originalColumn-k.originalColumn,R!==0)?R:O(S.name,k.name)}e.compareByGeneratedPositionsDeflatedNoLine=C;function O(S,k){return S===k?0:S===null?1:k===null?-1:S>k?1:-1}function D(S,k){var P=S.generatedLine-k.generatedLine;return P!==0||(P=S.generatedColumn-k.generatedColumn,P!==0)||(P=O(S.source,k.source),P!==0)||(P=S.originalLine-k.originalLine,P!==0)||(P=S.originalColumn-k.originalColumn,P!==0)?P:O(S.name,k.name)}e.compareByGeneratedPositionsInflated=D;function B(S){return JSON.parse(S.replace(/^\)]}'[^\n]*\n/,""))}e.parseSourceMapInput=B;function A(S,k,P){if(k=k||"",S&&(S[S.length-1]!=="/"&&k[0]!=="/"&&(S+="/"),k=S+k),P){var R=i(P);if(!R)throw new Error("sourceMapURL could not be parsed");if(R.path){var x=R.path.lastIndexOf("/");x>=0&&(R.path=R.path.substring(0,x+1))}k=c(s(R),k)}return u(k)}e.computeSourceURL=A})(ns)),ns}var is={},ru;function pm(){if(ru)return is;ru=1;var e=rs(),t=Object.prototype.hasOwnProperty,n=typeof Map<"u";function r(){this._array=[],this._set=n?new Map:Object.create(null)}return r.fromArray=function(s,o){for(var a=new r,u=0,c=s.length;u<c;u++)a.add(s[u],o);return a},r.prototype.size=function(){return n?this._set.size:Object.getOwnPropertyNames(this._set).length},r.prototype.add=function(s,o){var a=n?s:e.toSetString(s),u=n?this.has(s):t.call(this._set,a),c=this._array.length;(!u||o)&&this._array.push(s),u||(n?this._set.set(s,c):this._set[a]=c)},r.prototype.has=function(s){if(n)return this._set.has(s);var o=e.toSetString(s);return t.call(this._set,o)},r.prototype.indexOf=function(s){if(n){var o=this._set.get(s);if(o>=0)return o}else{var a=e.toSetString(s);if(t.call(this._set,a))return this._set[a]}throw new Error('"'+s+'" is not in the set.')},r.prototype.at=function(s){if(s>=0&&s<this._array.length)return this._array[s];throw new Error("No element indexed by "+s)},r.prototype.toArray=function(){return this._array.slice()},is.ArraySet=r,is}var ss={},iu;function mm(){if(iu)return ss;iu=1;var e=rs();function t(r,i){var s=r.generatedLine,o=i.generatedLine,a=r.generatedColumn,u=i.generatedColumn;return o>s||o==s&&u>=a||e.compareByGeneratedPositionsInflated(r,i)<=0}function n(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}return n.prototype.unsortedForEach=function(i,s){this._array.forEach(i,s)},n.prototype.add=function(i){t(this._last,i)?(this._last=i,this._array.push(i)):(this._sorted=!1,this._array.push(i))},n.prototype.toArray=function(){return this._sorted||(this._array.sort(e.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},ss.MappingList=n,ss}var su;function gm(){if(su)return ts;su=1;var e=fm(),t=rs(),n=pm().ArraySet,r=mm().MappingList;function i(s){s||(s={}),this._file=t.getArg(s,"file",null),this._sourceRoot=t.getArg(s,"sourceRoot",null),this._skipValidation=t.getArg(s,"skipValidation",!1),this._ignoreInvalidMapping=t.getArg(s,"ignoreInvalidMapping",!1),this._sources=new n,this._names=new n,this._mappings=new r,this._sourcesContents=null}return i.prototype._version=3,i.fromSourceMap=function(o,a){var u=o.sourceRoot,c=new i(Object.assign(a||{},{file:o.file,sourceRoot:u}));return o.eachMapping(function(d){var h={generated:{line:d.generatedLine,column:d.generatedColumn}};d.source!=null&&(h.source=d.source,u!=null&&(h.source=t.relative(u,h.source)),h.original={line:d.originalLine,column:d.originalColumn},d.name!=null&&(h.name=d.name)),c.addMapping(h)}),o.sources.forEach(function(d){var h=d;u!==null&&(h=t.relative(u,d)),c._sources.has(h)||c._sources.add(h);var b=o.sourceContentFor(d);b!=null&&c.setSourceContent(d,b)}),c},i.prototype.addMapping=function(o){var a=t.getArg(o,"generated"),u=t.getArg(o,"original",null),c=t.getArg(o,"source",null),d=t.getArg(o,"name",null);!this._skipValidation&&this._validateMapping(a,u,c,d)===!1||(c!=null&&(c=String(c),this._sources.has(c)||this._sources.add(c)),d!=null&&(d=String(d),this._names.has(d)||this._names.add(d)),this._mappings.add({generatedLine:a.line,generatedColumn:a.column,originalLine:u!=null&&u.line,originalColumn:u!=null&&u.column,source:c,name:d}))},i.prototype.setSourceContent=function(o,a){var u=o;this._sourceRoot!=null&&(u=t.relative(this._sourceRoot,u)),a!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[t.toSetString(u)]=a):this._sourcesContents&&(delete this._sourcesContents[t.toSetString(u)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},i.prototype.applySourceMap=function(o,a,u){var c=a;if(a==null){if(o.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);c=o.file}var d=this._sourceRoot;d!=null&&(c=t.relative(d,c));var h=new n,b=new n;this._mappings.unsortedForEach(function(f){if(f.source===c&&f.originalLine!=null){var m=o.originalPositionFor({line:f.originalLine,column:f.originalColumn});m.source!=null&&(f.source=m.source,u!=null&&(f.source=t.join(u,f.source)),d!=null&&(f.source=t.relative(d,f.source)),f.originalLine=m.line,f.originalColumn=m.column,m.name!=null&&(f.name=m.name))}var g=f.source;g!=null&&!h.has(g)&&h.add(g);var _=f.name;_!=null&&!b.has(_)&&b.add(_)},this),this._sources=h,this._names=b,o.sources.forEach(function(f){var m=o.sourceContentFor(f);m!=null&&(u!=null&&(f=t.join(u,f)),d!=null&&(f=t.relative(d,f)),this.setSourceContent(f,m))},this)},i.prototype._validateMapping=function(o,a,u,c){if(a&&typeof a.line!="number"&&typeof a.column!="number"){var d="original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.";if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(d),!1;throw new Error(d)}if(!(o&&"line"in o&&"column"in o&&o.line>0&&o.column>=0&&!a&&!u&&!c)){if(o&&"line"in o&&"column"in o&&a&&"line"in a&&"column"in a&&o.line>0&&o.column>=0&&a.line>0&&a.column>=0&&u)return;var d="Invalid mapping: "+JSON.stringify({generated:o,source:u,original:a,name:c});if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(d),!1;throw new Error(d)}},i.prototype._serializeMappings=function(){for(var o=0,a=1,u=0,c=0,d=0,h=0,b="",f,m,g,_,p=this._mappings.toArray(),y=0,C=p.length;y<C;y++){if(m=p[y],f="",m.generatedLine!==a)for(o=0;m.generatedLine!==a;)f+=";",a++;else if(y>0){if(!t.compareByGeneratedPositionsInflated(m,p[y-1]))continue;f+=","}f+=e.encode(m.generatedColumn-o),o=m.generatedColumn,m.source!=null&&(_=this._sources.indexOf(m.source),f+=e.encode(_-h),h=_,f+=e.encode(m.originalLine-1-c),c=m.originalLine-1,f+=e.encode(m.originalColumn-u),u=m.originalColumn,m.name!=null&&(g=this._names.indexOf(m.name),f+=e.encode(g-d),d=g)),b+=f}return b},i.prototype._generateSourcesContent=function(o,a){return o.map(function(u){if(!this._sourcesContents)return null;a!=null&&(u=t.relative(a,u));var c=t.toSetString(u);return Object.prototype.hasOwnProperty.call(this._sourcesContents,c)?this._sourcesContents[c]:null},this)},i.prototype.toJSON=function(){var o={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(o.file=this._file),this._sourceRoot!=null&&(o.sourceRoot=this._sourceRoot),this._sourcesContents&&(o.sourcesContent=this._generateSourcesContent(o.sources,o.sourceRoot)),o},i.prototype.toString=function(){return JSON.stringify(this.toJSON())},ts.SourceMapGenerator=i,ts}var bm=gm();const au=new Set(["Atrule","Selector","Declaration"]);function Em(e){const t=new bm.SourceMapGenerator,n={line:1,column:0},r={line:0,column:0},i={line:1,column:0},s={generated:i};let o=1,a=0,u=!1;const c=e.node;e.node=function(b){if(b.loc&&b.loc.start&&au.has(b.type)){const f=b.loc.start.line,m=b.loc.start.column-1;(r.line!==f||r.column!==m)&&(r.line=f,r.column=m,n.line=o,n.column=a,u&&(u=!1,(n.line!==i.line||n.column!==i.column)&&t.addMapping(s)),u=!0,t.addMapping({source:b.loc.source,original:r,generated:n}))}c.call(this,b),u&&au.has(b.type)&&(i.line=o,i.column=a)};const d=e.emit;e.emit=function(b,f,m){for(let g=0;g<b.length;g++)b.charCodeAt(g)===10?(o++,a=0):a++;d(b,f,m)};const h=e.result;return e.result=function(){return u&&t.addMapping(s),{css:h(),map:t}},e}const ym=43,Tm=45,as=(e,t)=>(e===ge&&(e=t),typeof e=="string"&&(e=Math.min(e.charCodeAt(0),128)<<6),e<<1),ou=[[ne,ne],[ne,pe],[ne,Ge],[ne,nt],[ne,"-"],[ne,fe],[ne,Oe],[ne,be],[ne,rt],[ne,_e],[Be,ne],[Be,pe],[Be,Ge],[Be,nt],[Be,"-"],[Be,fe],[Be,Oe],[Be,be],[Be,rt],[xe,ne],[xe,pe],[xe,Ge],[xe,nt],[xe,"-"],[xe,fe],[xe,Oe],[xe,be],[xe,rt],[be,ne],[be,pe],[be,Ge],[be,nt],[be,"-"],[be,fe],[be,Oe],[be,be],[be,rt],["#",ne],["#",pe],["#",Ge],["#",nt],["#","-"],["#",fe],["#",Oe],["#",be],["#",rt],["-",ne],["-",pe],["-",Ge],["-",nt],["-","-"],["-",fe],["-",Oe],["-",be],["-",rt],[fe,ne],[fe,pe],[fe,Ge],[fe,nt],[fe,fe],[fe,Oe],[fe,be],[fe,"%"],[fe,rt],["@",ne],["@",pe],["@",Ge],["@",nt],["@","-"],["@",rt],[".",fe],[".",Oe],[".",be],["+",fe],["+",Oe],["+",be],["/","*"]],_m=ou.concat([[ne,xe],[be,xe],[xe,xe],[Be,_e],[Be,gt],[Be,Ve],[Oe,Oe],[Oe,be],[Oe,pe],[Oe,"-"],[de,ne],[de,pe],[de,Oe],[de,be],[de,xe],[de,"-"]]);function uu(e){const t=new Set(e.map(([n,r])=>as(n)<<16|as(r)));return function(n,r,i){const s=as(r,i),o=i.charCodeAt(0),a=o===Tm&&r!==ne&&r!==pe&&r!==rt||o===ym?t.has((n&65534)<<16|o<<7):t.has((n&65534)<<16|s);return s|a}}const km=uu(ou),lu=uu(_m),cu=Object.freeze(Object.defineProperty({__proto__:null,safe:lu,spec:km},Symbol.toStringTag,{value:"Module"})),wm=92;function Am(e,t){if(typeof t=="function"){let n=null;e.children.forEach(r=>{n!==null&&t.call(this,n),this.node(r),n=r});return}e.children.forEach(this.node,this)}function Sm(e){const t=new Map;for(let[n,r]of Object.entries(e.node))typeof(r.generate||r)=="function"&&t.set(n,r.generate||r);return function(n,r){let i="",s=0,o={node(u){if(t.has(u.type))t.get(u.type).call(a,u);else throw new Error("Unknown node type: "+u.type)},tokenBefore:lu,token(u,c,d){s=this.tokenBefore(s,u,c),!d&&s&1&&this.emit(" ",Le,!0),this.emit(c,u,!1),u===ge&&c.charCodeAt(0)===wm&&this.emit(`
8
- `,Le,!0)},emit(u){i+=u},result(){return i}};r&&(typeof r.decorator=="function"&&(o=r.decorator(o)),r.sourceMap&&(o=Em(o)),r.mode in cu&&(o.tokenBefore=cu[r.mode]));const a={node:u=>o.node(u),children:Am,token:(u,c)=>o.token(u,c),tokenize:u=>Lr(u,(c,d,h)=>{o.token(c,u.slice(d,h),d!==0)})};return o.node(n),o.result()}}function Cm(e){return{fromPlainObject(t){return e(t,{enter(n){n.children&&!(n.children instanceof $e)&&(n.children=new $e().fromArray(n.children))}}),t},toPlainObject(t){return e(t,{leave(n){n.children&&n.children instanceof $e&&(n.children=n.children.toArray())}}),t}}}const{hasOwnProperty:os}=Object.prototype,Kn=function(){};function du(e){return typeof e=="function"?e:Kn}function hu(e,t){return function(n,r,i){n.type===t&&e.call(this,n,r,i)}}function xm(e,t){const n=t.structure,r=[];for(const i in n){if(os.call(n,i)===!1)continue;let s=n[i];const o={name:i,type:!1,nullable:!1};Array.isArray(s)||(s=[s]);for(const a of s)a===null?o.nullable=!0:typeof a=="string"?o.type="node":Array.isArray(a)&&(o.type="list");o.type&&r.push(o)}return r.length?{context:t.walkContext,fields:r}:null}function Nm(e){const t={};for(const n in e.node)if(os.call(e.node,n)){const r=e.node[n];if(!r.structure)throw new Error("Missed `structure` field in `"+n+"` node type definition");t[n]=xm(n,r)}return t}function fu(e,t){const n=e.fields.slice(),r=e.context,i=typeof r=="string";return t&&n.reverse(),function(s,o,a,u){let c;i&&(c=o[r],o[r]=s);for(const d of n){const h=s[d.name];if(!d.nullable||h){if(d.type==="list"){if(t?h.reduceRight(u,!1):h.reduce(u,!1))return!0}else if(a(h))return!0}}i&&(o[r]=c)}}function pu({StyleSheet:e,Atrule:t,Rule:n,Block:r,DeclarationList:i}){return{Atrule:{StyleSheet:e,Atrule:t,Rule:n,Block:r},Rule:{StyleSheet:e,Atrule:t,Rule:n,Block:r},Declaration:{StyleSheet:e,Atrule:t,Rule:n,Block:r,DeclarationList:i}}}function Im(e){const t=Nm(e),n={},r={},i=Symbol("break-walk"),s=Symbol("skip-node");for(const c in t)os.call(t,c)&&t[c]!==null&&(n[c]=fu(t[c],!1),r[c]=fu(t[c],!0));const o=pu(n),a=pu(r),u=function(c,d){function h(p,y,C){const O=b.call(_,p,y,C);return O===i?!0:O===s?!1:!!(m.hasOwnProperty(p.type)&&m[p.type](p,_,h,g)||f.call(_,p,y,C)===i)}let b=Kn,f=Kn,m=n,g=(p,y,C,O)=>p||h(y,C,O);const _={break:i,skip:s,root:c,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null};if(typeof d=="function")b=d;else if(d&&(b=du(d.enter),f=du(d.leave),d.reverse&&(m=r),d.visit)){if(o.hasOwnProperty(d.visit))m=d.reverse?a[d.visit]:o[d.visit];else if(!t.hasOwnProperty(d.visit))throw new Error("Bad value `"+d.visit+"` for `visit` option (should be: "+Object.keys(t).sort().join(", ")+")");b=hu(b,d.visit),f=hu(f,d.visit)}if(b===Kn&&f===Kn)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");h(c)};return u.break=i,u.skip=s,u.find=function(c,d){let h=null;return u(c,function(b,f,m){if(d.call(this,b,f,m))return h=b,i}),h},u.findLast=function(c,d){let h=null;return u(c,{reverse:!0,enter(b,f,m){if(d.call(this,b,f,m))return h=b,i}}),h},u.findAll=function(c,d){const h=[];return u(c,function(b,f,m){d.call(this,b,f,m)&&h.push(b)}),h},u}function vm(e){return e}function Om(e){const{min:t,max:n,comma:r}=e;return t===0&&n===0?r?"#?":"*":t===0&&n===1?"?":t===1&&n===0?r?"#":"+":t===1&&n===1?"":(r?"#":"")+(t===n?"{"+t+"}":"{"+t+","+(n!==0?n:"")+"}")}function Lm(e){switch(e.type){case"Range":return" ["+(e.min===null?"-∞":e.min)+","+(e.max===null?"∞":e.max)+"]";default:throw new Error("Unknown node type `"+e.type+"`")}}function Rm(e,t,n,r){const i=e.combinator===" "||r?e.combinator:" "+e.combinator+" ",s=e.terms.map(o=>Br(o,t,n,r)).join(i);return e.explicit||n?(r||s[0]===","?"[":"[ ")+s+(r?"]":" ]"):s}function Br(e,t,n,r){let i;switch(e.type){case"Group":i=Rm(e,t,n,r)+(e.disallowEmpty?"!":"");break;case"Multiplier":return Br(e.term,t,n,r)+t(Om(e),e);case"Boolean":i="<boolean-expr["+Br(e.term,t,n,r)+"]>";break;case"Type":i="<"+e.name+(e.opts?t(Lm(e.opts),e.opts):"")+">";break;case"Property":i="<'"+e.name+"'>";break;case"Keyword":i=e.name;break;case"AtKeyword":i="@"+e.name;break;case"Function":i=e.name+"(";break;case"String":case"Token":i=e.value;break;case"Comma":i=",";break;default:throw new Error("Unknown node type `"+e.type+"`")}return t(i,e)}function us(e,t){let n=vm,r=!1,i=!1;return typeof t=="function"?n=t:t&&(r=!!t.forceBraces,i=!!t.compact,typeof t.decorate=="function"&&(n=t.decorate)),Br(e,n,r,i)}const mu={offset:0,line:1,column:1};function Pm(e,t){const n=e.tokens,r=e.longestMatch,i=r<n.length&&n[r].node||null,s=i!==t?i:null;let o=0,a=0,u=0,c="",d,h;for(let b=0;b<n.length;b++){const f=n[b].value;b===r&&(a=f.length,o=c.length),s!==null&&n[b].node===s&&(b<=r?u++:u=0),c+=f}return r===n.length||u>1?(d=Fr(s||t,"end")||Xn(mu,c),h=Xn(d)):(d=Fr(s,"start")||Xn(Fr(t,"start")||mu,c.slice(0,o)),h=Fr(s,"end")||Xn(d,c.substr(o,a))),{css:c,mismatchOffset:o,mismatchLength:a,start:d,end:h}}function Fr(e,t){const n=e&&e.loc&&e.loc[t];return n?"line"in n?Xn(n):n:null}function Xn({offset:e,line:t,column:n},r){const i={offset:e,line:t,column:n};if(r){const s=r.split(/\n|\r\n?|\f/);i.offset+=r.length,i.line+=s.length-1,i.column=s.length===1?i.column+r.length:s.pop().length+1}return i}const Qn=function(e,t){const n=Rr("SyntaxReferenceError",e+(t?" `"+t+"`":""));return n.reference=t,n},Dm=function(e,t,n,r){const i=Rr("SyntaxMatchError",e),{css:s,mismatchOffset:o,mismatchLength:a,start:u,end:c}=Pm(r,n);return i.rawMessage=e,i.syntax=t?us(t):"<generic>",i.css=s,i.mismatchOffset=o,i.mismatchLength=a,i.message=e+`
5
+ `.repeat(Math.max(r-1,0)),u=" ".repeat(Math.max(i-1,0)),c=(a+u+e).split(/\r\n?|\n|\f/),d=Math.max(1,t-s)-1,h=Math.min(t+s,c.length+1),m=Math.max(4,String(h).length)+1;let f=0;n+=(su.length-1)*(c[t-1].substr(0,n-1).match(/\t/g)||[]).length,n>os&&(f=n-iu+3,n=iu-2);for(let b=d;b<=h;b++)b>=0&&b<c.length&&(c[b]=c[b].replace(/\t/g,su),c[b]=(f>0&&c[b].length>f?"…":"")+c[b].substr(f,os-2)+(c[b].length>f+os-1?"…":""));return[o(d,t),new Array(n+m+2).join("-")+"^",o(t,h)].filter(Boolean).join(`
6
+ `).replace(/^(\s+\d+\s+\|\n)+/,"").replace(/\n(\s+\d+\s+\|)+$/,"")}function ou(e,t,n,r,i,s=1,o=1){return Object.assign(Fr("SyntaxError",e),{source:t,offset:n,line:r,column:i,sourceFragment(u){return au({source:t,line:r,column:i,baseLine:s,baseColumn:o},isNaN(u)?0:u)},get formattedMessage(){return`Parse error: ${e}
7
+ `+au({source:t,line:r,column:i,baseLine:s,baseColumn:o},2)}})}function wm(e){const t=this.createList();let n=!1;const r={recognizer:e};for(;!this.eof;){switch(this.tokenType){case qe:this.next();continue;case Le:n=!0,this.next();continue}let i=e.getNode.call(this,r);if(i===void 0)break;n&&(e.onWhiteSpace&&e.onWhiteSpace.call(this,i,t,r),n=!1),t.push(i)}return n&&e.onWhiteSpace&&e.onWhiteSpace.call(this,null,t,r),t}const Tn=()=>{},km=33,Am=35,us=59,uu=123,lu=0,Sm={createList(){return[]},createSingleNodeList(e){return[e]},getFirstListNode(e){return e&&e[0]||null},getLastListNode(e){return e&&e.length>0?e[e.length-1]:null}},Cm={createList(){return new $e},createSingleNodeList(e){return new $e().appendData(e)},getFirstListNode(e){return e&&e.first},getLastListNode(e){return e&&e.last}};function xm(e){return function(){return this[e]()}}function ls(e){const t=Object.create(null);for(const n of Object.keys(e)){const r=e[n],i=r.parse||r;i&&(t[n]=i)}return t}function Nm(e){const t={context:Object.create(null),features:Object.assign(Object.create(null),e.features),scope:Object.assign(Object.create(null),e.scope),atrule:ls(e.atrule),pseudo:ls(e.pseudo),node:ls(e.node)};for(const[n,r]of Object.entries(e.parseContext))switch(typeof r){case"function":t.context[n]=r;break;case"string":t.context[n]=xm(r);break}return{config:t,...t,...t.node}}function vm(e){let t="",n="<unknown>",r=!1,i=Tn,s=!1;const o=new Tm,a=Object.assign(new _m,Nm(e||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:wm,consumeUntilBalanceEnd:()=>0,consumeUntilLeftCurlyBracket(d){return d===uu?1:0},consumeUntilLeftCurlyBracketOrSemicolon(d){return d===uu||d===us?1:0},consumeUntilExclamationMarkOrSemicolon(d){return d===km||d===us?1:0},consumeUntilSemicolonIncluded(d){return d===us?2:0},createList:Tn,createSingleNodeList:Tn,getFirstListNode:Tn,getLastListNode:Tn,parseWithFallback(d,h){const m=this.tokenIndex;try{return d.call(this)}catch(f){if(s)throw f;this.skip(m-this.tokenIndex);const b=h.call(this);return s=!0,i(f,b),s=!1,b}},lookupNonWSType(d){let h;do if(h=this.lookupType(d++),h!==Le&&h!==qe)return h;while(h!==lu);return lu},charCodeAt(d){return d>=0&&d<t.length?t.charCodeAt(d):0},substring(d,h){return t.substring(d,h)},substrToCursor(d){return this.source.substring(d,this.tokenStart)},cmpChar(d,h){return bn(t,d,h)},cmpStr(d,h,m){return Qn(t,d,h,m)},consume(d){const h=this.tokenStart;return this.eat(d),this.substrToCursor(h)},consumeFunctionName(){const d=t.substring(this.tokenStart,this.tokenEnd-1);return this.eat(pe),d},consumeNumber(d){const h=t.substring(this.tokenStart,Rr(t,this.tokenStart));return this.eat(d),h},eat(d){if(this.tokenType!==d){const h=as[d].slice(0,-6).replace(/-/g," ").replace(/^./,b=>b.toUpperCase());let m=`${/[[\](){}]/.test(h)?`"${h}"`:h} is expected`,f=this.tokenStart;switch(d){case ne:this.tokenType===pe||this.tokenType===Ge?(f=this.tokenEnd-1,m="Identifier is expected but function found"):m="Identifier is expected";break;case xe:this.isDelim(Am)&&(this.next(),f++,m="Name is expected");break;case Oe:this.tokenType===fe&&(f=this.tokenEnd,m="Percent sign is expected");break}this.error(m,f)}this.next()},eatIdent(d){(this.tokenType!==ne||this.lookupValue(0,d)===!1)&&this.error(`Identifier "${d}" is expected`),this.next()},eatDelim(d){this.isDelim(d)||this.error(`Delim "${String.fromCharCode(d)}" is expected`),this.next()},getLocation(d,h){return r?o.getLocationRange(d,h,n):null},getLocationFromList(d){if(r){const h=this.getFirstListNode(d),m=this.getLastListNode(d);return o.getLocationRange(h!==null?h.loc.start.offset-o.startOffset:this.tokenStart,m!==null?m.loc.end.offset-o.startOffset:this.tokenStart,n)}return null},error(d,h){const m=typeof h<"u"&&h<t.length?o.getLocation(h):this.eof?o.getLocation(bm(t,t.length-1)):o.getLocation(this.tokenStart);throw new ou(d||"Unexpected input",t,m.offset,m.line,m.column,o.startLine,o.startColumn)}}),u=()=>({filename:n,source:t,tokenCount:a.tokenCount,getTokenType:d=>a.getTokenType(d),getTokenTypeName:d=>as[a.getTokenType(d)],getTokenStart:d=>a.getTokenStart(d),getTokenEnd:d=>a.getTokenEnd(d),getTokenValue:d=>a.source.substring(a.getTokenStart(d),a.getTokenEnd(d)),substring:(d,h)=>a.source.substring(d,h),balance:a.balance.subarray(0,a.tokenCount+1),isBlockOpenerTokenType:a.isBlockOpenerTokenType,isBlockCloserTokenType:a.isBlockCloserTokenType,getBlockTokenPairIndex:d=>a.getBlockTokenPairIndex(d),getLocation:d=>o.getLocation(d,n),getRangeLocation:(d,h)=>o.getLocationRange(d,h,n)});return Object.assign(function(d,h){t=d,h=h||{},a.setSource(t,Br),o.setSource(t,h.offset,h.line,h.column),n=h.filename||"<unknown>",r=!!h.positions,i=typeof h.onParseError=="function"?h.onParseError:Tn,s=!1,a.parseAtrulePrelude="parseAtrulePrelude"in h?!!h.parseAtrulePrelude:!0,a.parseRulePrelude="parseRulePrelude"in h?!!h.parseRulePrelude:!0,a.parseValue="parseValue"in h?!!h.parseValue:!0,a.parseCustomProperty="parseCustomProperty"in h?!!h.parseCustomProperty:!1;const{context:m="default",list:f=!0,onComment:b,onToken:g}=h;if(!(m in a.context))throw new Error("Unknown context `"+m+"`");Object.assign(a,f?Cm:Sm),Array.isArray(g)?a.forEachToken((p,y,C)=>{g.push({type:p,start:y,end:C})}):typeof g=="function"&&a.forEachToken(g.bind(u())),typeof b=="function"&&a.forEachToken((p,y,C)=>{if(p===qe){const I=a.getLocation(y,C),D=Qn(t,C-2,C,"*/")?t.slice(y+2,C-2):t.slice(y+2,C);b(D,I)}});const _=a.context[m].call(a,h);return a.eof||a.error(),_},{SyntaxError:ou,config:a.config})}var Ur=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Im(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var cs={},Hr={},zr={},cu;function Om(){if(cu)return zr;cu=1;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return zr.encode=function(t){if(0<=t&&t<e.length)return e[t];throw new TypeError("Must be between 0 and 63: "+t)},zr.decode=function(t){var n=65,r=90,i=97,s=122,o=48,a=57,u=43,c=47,d=26,h=52;return n<=t&&t<=r?t-n:i<=t&&t<=s?t-i+d:o<=t&&t<=a?t-o+h:t==u?62:t==c?63:-1},zr}var du;function Lm(){if(du)return Hr;du=1;var e=Om(),t=5,n=1<<t,r=n-1,i=n;function s(a){return a<0?(-a<<1)+1:(a<<1)+0}function o(a){var u=(a&1)===1,c=a>>1;return u?-c:c}return Hr.encode=function(u){var c="",d,h=s(u);do d=h&r,h>>>=t,h>0&&(d|=i),c+=e.encode(d);while(h>0);return c},Hr.decode=function(u,c,d){var h=u.length,m=0,f=0,b,g;do{if(c>=h)throw new Error("Expected more digits in base 64 VLQ value.");if(g=e.decode(u.charCodeAt(c++)),g===-1)throw new Error("Invalid base64 digit: "+u.charAt(c-1));b=!!(g&i),g&=r,m=m+(g<<f),f+=t}while(b);d.value=o(m),d.rest=c},Hr}var ds={},hu;function hs(){return hu||(hu=1,(function(e){function t(S,w,R){if(w in S)return S[w];if(arguments.length===3)return R;throw new Error('"'+w+'" is a required argument.')}e.getArg=t;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function i(S){var w=S.match(n);return w?{scheme:w[1],auth:w[2],host:w[3],port:w[4],path:w[5]}:null}e.urlParse=i;function s(S){var w="";return S.scheme&&(w+=S.scheme+":"),w+="//",S.auth&&(w+=S.auth+"@"),S.host&&(w+=S.host),S.port&&(w+=":"+S.port),S.path&&(w+=S.path),w}e.urlGenerate=s;var o=32;function a(S){var w=[];return function(R){for(var P=0;P<w.length;P++)if(w[P].input===R){var x=w[0];return w[0]=w[P],w[P]=x,w[0].result}var M=S(R);return w.unshift({input:R,result:M}),w.length>o&&w.pop(),M}}var u=a(function(w){var R=w,P=i(w);if(P){if(!P.path)return w;R=P.path}for(var x=e.isAbsolute(R),M=[],T=0,U=0;;)if(T=U,U=R.indexOf("/",T),U===-1){M.push(R.slice(T));break}else for(M.push(R.slice(T,U));U<R.length&&R[U]==="/";)U++;for(var W,G=0,U=M.length-1;U>=0;U--)W=M[U],W==="."?M.splice(U,1):W===".."?G++:G>0&&(W===""?(M.splice(U+1,G),G=0):(M.splice(U,2),G--));return R=M.join("/"),R===""&&(R=x?"/":"."),P?(P.path=R,s(P)):R});e.normalize=u;function c(S,w){S===""&&(S="."),w===""&&(w=".");var R=i(w),P=i(S);if(P&&(S=P.path||"/"),R&&!R.scheme)return P&&(R.scheme=P.scheme),s(R);if(R||w.match(r))return w;if(P&&!P.host&&!P.path)return P.host=w,s(P);var x=w.charAt(0)==="/"?w:u(S.replace(/\/+$/,"")+"/"+w);return P?(P.path=x,s(P)):x}e.join=c,e.isAbsolute=function(S){return S.charAt(0)==="/"||n.test(S)};function d(S,w){S===""&&(S="."),S=S.replace(/\/$/,"");for(var R=0;w.indexOf(S+"/")!==0;){var P=S.lastIndexOf("/");if(P<0||(S=S.slice(0,P),S.match(/^([^\/]+:\/)?\/*$/)))return w;++R}return Array(R+1).join("../")+w.substr(S.length+1)}e.relative=d;var h=(function(){var S=Object.create(null);return!("__proto__"in S)})();function m(S){return S}function f(S){return g(S)?"$"+S:S}e.toSetString=h?m:f;function b(S){return g(S)?S.slice(1):S}e.fromSetString=h?m:b;function g(S){if(!S)return!1;var w=S.length;if(w<9||S.charCodeAt(w-1)!==95||S.charCodeAt(w-2)!==95||S.charCodeAt(w-3)!==111||S.charCodeAt(w-4)!==116||S.charCodeAt(w-5)!==111||S.charCodeAt(w-6)!==114||S.charCodeAt(w-7)!==112||S.charCodeAt(w-8)!==95||S.charCodeAt(w-9)!==95)return!1;for(var R=w-10;R>=0;R--)if(S.charCodeAt(R)!==36)return!1;return!0}function _(S,w,R){var P=I(S.source,w.source);return P!==0||(P=S.originalLine-w.originalLine,P!==0)||(P=S.originalColumn-w.originalColumn,P!==0||R)||(P=S.generatedColumn-w.generatedColumn,P!==0)||(P=S.generatedLine-w.generatedLine,P!==0)?P:I(S.name,w.name)}e.compareByOriginalPositions=_;function p(S,w,R){var P;return P=S.originalLine-w.originalLine,P!==0||(P=S.originalColumn-w.originalColumn,P!==0||R)||(P=S.generatedColumn-w.generatedColumn,P!==0)||(P=S.generatedLine-w.generatedLine,P!==0)?P:I(S.name,w.name)}e.compareByOriginalPositionsNoSource=p;function y(S,w,R){var P=S.generatedLine-w.generatedLine;return P!==0||(P=S.generatedColumn-w.generatedColumn,P!==0||R)||(P=I(S.source,w.source),P!==0)||(P=S.originalLine-w.originalLine,P!==0)||(P=S.originalColumn-w.originalColumn,P!==0)?P:I(S.name,w.name)}e.compareByGeneratedPositionsDeflated=y;function C(S,w,R){var P=S.generatedColumn-w.generatedColumn;return P!==0||R||(P=I(S.source,w.source),P!==0)||(P=S.originalLine-w.originalLine,P!==0)||(P=S.originalColumn-w.originalColumn,P!==0)?P:I(S.name,w.name)}e.compareByGeneratedPositionsDeflatedNoLine=C;function I(S,w){return S===w?0:S===null?1:w===null?-1:S>w?1:-1}function D(S,w){var R=S.generatedLine-w.generatedLine;return R!==0||(R=S.generatedColumn-w.generatedColumn,R!==0)||(R=I(S.source,w.source),R!==0)||(R=S.originalLine-w.originalLine,R!==0)||(R=S.originalColumn-w.originalColumn,R!==0)?R:I(S.name,w.name)}e.compareByGeneratedPositionsInflated=D;function B(S){return JSON.parse(S.replace(/^\)]}'[^\n]*\n/,""))}e.parseSourceMapInput=B;function A(S,w,R){if(w=w||"",S&&(S[S.length-1]!=="/"&&w[0]!=="/"&&(S+="/"),w=S+w),R){var P=i(R);if(!P)throw new Error("sourceMapURL could not be parsed");if(P.path){var x=P.path.lastIndexOf("/");x>=0&&(P.path=P.path.substring(0,x+1))}w=c(s(P),w)}return u(w)}e.computeSourceURL=A})(ds)),ds}var fs={},fu;function Pm(){if(fu)return fs;fu=1;var e=hs(),t=Object.prototype.hasOwnProperty,n=typeof Map<"u";function r(){this._array=[],this._set=n?new Map:Object.create(null)}return r.fromArray=function(s,o){for(var a=new r,u=0,c=s.length;u<c;u++)a.add(s[u],o);return a},r.prototype.size=function(){return n?this._set.size:Object.getOwnPropertyNames(this._set).length},r.prototype.add=function(s,o){var a=n?s:e.toSetString(s),u=n?this.has(s):t.call(this._set,a),c=this._array.length;(!u||o)&&this._array.push(s),u||(n?this._set.set(s,c):this._set[a]=c)},r.prototype.has=function(s){if(n)return this._set.has(s);var o=e.toSetString(s);return t.call(this._set,o)},r.prototype.indexOf=function(s){if(n){var o=this._set.get(s);if(o>=0)return o}else{var a=e.toSetString(s);if(t.call(this._set,a))return this._set[a]}throw new Error('"'+s+'" is not in the set.')},r.prototype.at=function(s){if(s>=0&&s<this._array.length)return this._array[s];throw new Error("No element indexed by "+s)},r.prototype.toArray=function(){return this._array.slice()},fs.ArraySet=r,fs}var ps={},pu;function Rm(){if(pu)return ps;pu=1;var e=hs();function t(r,i){var s=r.generatedLine,o=i.generatedLine,a=r.generatedColumn,u=i.generatedColumn;return o>s||o==s&&u>=a||e.compareByGeneratedPositionsInflated(r,i)<=0}function n(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}return n.prototype.unsortedForEach=function(i,s){this._array.forEach(i,s)},n.prototype.add=function(i){t(this._last,i)?(this._last=i,this._array.push(i)):(this._sorted=!1,this._array.push(i))},n.prototype.toArray=function(){return this._sorted||(this._array.sort(e.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},ps.MappingList=n,ps}var mu;function Dm(){if(mu)return cs;mu=1;var e=Lm(),t=hs(),n=Pm().ArraySet,r=Rm().MappingList;function i(s){s||(s={}),this._file=t.getArg(s,"file",null),this._sourceRoot=t.getArg(s,"sourceRoot",null),this._skipValidation=t.getArg(s,"skipValidation",!1),this._ignoreInvalidMapping=t.getArg(s,"ignoreInvalidMapping",!1),this._sources=new n,this._names=new n,this._mappings=new r,this._sourcesContents=null}return i.prototype._version=3,i.fromSourceMap=function(o,a){var u=o.sourceRoot,c=new i(Object.assign(a||{},{file:o.file,sourceRoot:u}));return o.eachMapping(function(d){var h={generated:{line:d.generatedLine,column:d.generatedColumn}};d.source!=null&&(h.source=d.source,u!=null&&(h.source=t.relative(u,h.source)),h.original={line:d.originalLine,column:d.originalColumn},d.name!=null&&(h.name=d.name)),c.addMapping(h)}),o.sources.forEach(function(d){var h=d;u!==null&&(h=t.relative(u,d)),c._sources.has(h)||c._sources.add(h);var m=o.sourceContentFor(d);m!=null&&c.setSourceContent(d,m)}),c},i.prototype.addMapping=function(o){var a=t.getArg(o,"generated"),u=t.getArg(o,"original",null),c=t.getArg(o,"source",null),d=t.getArg(o,"name",null);!this._skipValidation&&this._validateMapping(a,u,c,d)===!1||(c!=null&&(c=String(c),this._sources.has(c)||this._sources.add(c)),d!=null&&(d=String(d),this._names.has(d)||this._names.add(d)),this._mappings.add({generatedLine:a.line,generatedColumn:a.column,originalLine:u!=null&&u.line,originalColumn:u!=null&&u.column,source:c,name:d}))},i.prototype.setSourceContent=function(o,a){var u=o;this._sourceRoot!=null&&(u=t.relative(this._sourceRoot,u)),a!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[t.toSetString(u)]=a):this._sourcesContents&&(delete this._sourcesContents[t.toSetString(u)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},i.prototype.applySourceMap=function(o,a,u){var c=a;if(a==null){if(o.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);c=o.file}var d=this._sourceRoot;d!=null&&(c=t.relative(d,c));var h=new n,m=new n;this._mappings.unsortedForEach(function(f){if(f.source===c&&f.originalLine!=null){var b=o.originalPositionFor({line:f.originalLine,column:f.originalColumn});b.source!=null&&(f.source=b.source,u!=null&&(f.source=t.join(u,f.source)),d!=null&&(f.source=t.relative(d,f.source)),f.originalLine=b.line,f.originalColumn=b.column,b.name!=null&&(f.name=b.name))}var g=f.source;g!=null&&!h.has(g)&&h.add(g);var _=f.name;_!=null&&!m.has(_)&&m.add(_)},this),this._sources=h,this._names=m,o.sources.forEach(function(f){var b=o.sourceContentFor(f);b!=null&&(u!=null&&(f=t.join(u,f)),d!=null&&(f=t.relative(d,f)),this.setSourceContent(f,b))},this)},i.prototype._validateMapping=function(o,a,u,c){if(a&&typeof a.line!="number"&&typeof a.column!="number"){var d="original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.";if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(d),!1;throw new Error(d)}if(!(o&&"line"in o&&"column"in o&&o.line>0&&o.column>=0&&!a&&!u&&!c)){if(o&&"line"in o&&"column"in o&&a&&"line"in a&&"column"in a&&o.line>0&&o.column>=0&&a.line>0&&a.column>=0&&u)return;var d="Invalid mapping: "+JSON.stringify({generated:o,source:u,original:a,name:c});if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(d),!1;throw new Error(d)}},i.prototype._serializeMappings=function(){for(var o=0,a=1,u=0,c=0,d=0,h=0,m="",f,b,g,_,p=this._mappings.toArray(),y=0,C=p.length;y<C;y++){if(b=p[y],f="",b.generatedLine!==a)for(o=0;b.generatedLine!==a;)f+=";",a++;else if(y>0){if(!t.compareByGeneratedPositionsInflated(b,p[y-1]))continue;f+=","}f+=e.encode(b.generatedColumn-o),o=b.generatedColumn,b.source!=null&&(_=this._sources.indexOf(b.source),f+=e.encode(_-h),h=_,f+=e.encode(b.originalLine-1-c),c=b.originalLine-1,f+=e.encode(b.originalColumn-u),u=b.originalColumn,b.name!=null&&(g=this._names.indexOf(b.name),f+=e.encode(g-d),d=g)),m+=f}return m},i.prototype._generateSourcesContent=function(o,a){return o.map(function(u){if(!this._sourcesContents)return null;a!=null&&(u=t.relative(a,u));var c=t.toSetString(u);return Object.prototype.hasOwnProperty.call(this._sourcesContents,c)?this._sourcesContents[c]:null},this)},i.prototype.toJSON=function(){var o={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(o.file=this._file),this._sourceRoot!=null&&(o.sourceRoot=this._sourceRoot),this._sourcesContents&&(o.sourcesContent=this._generateSourcesContent(o.sources,o.sourceRoot)),o},i.prototype.toString=function(){return JSON.stringify(this.toJSON())},cs.SourceMapGenerator=i,cs}var Mm=Dm();const gu=new Set(["Atrule","Selector","Declaration"]);function Bm(e){const t=new Mm.SourceMapGenerator,n={line:1,column:0},r={line:0,column:0},i={line:1,column:0},s={generated:i};let o=1,a=0,u=!1;const c=e.node;e.node=function(m){if(m.loc&&m.loc.start&&gu.has(m.type)){const f=m.loc.start.line,b=m.loc.start.column-1;(r.line!==f||r.column!==b)&&(r.line=f,r.column=b,n.line=o,n.column=a,u&&(u=!1,(n.line!==i.line||n.column!==i.column)&&t.addMapping(s)),u=!0,t.addMapping({source:m.loc.source,original:r,generated:n}))}c.call(this,m),u&&gu.has(m.type)&&(i.line=o,i.column=a)};const d=e.emit;e.emit=function(m,f,b){for(let g=0;g<m.length;g++)m.charCodeAt(g)===10?(o++,a=0):a++;d(m,f,b)};const h=e.result;return e.result=function(){return u&&t.addMapping(s),{css:h(),map:t}},e}const Fm=43,Um=45,ms=(e,t)=>(e===ge&&(e=t),typeof e=="string"&&(e=Math.min(e.charCodeAt(0),128)<<6),e<<1),bu=[[ne,ne],[ne,pe],[ne,Ge],[ne,rt],[ne,"-"],[ne,fe],[ne,Oe],[ne,be],[ne,it],[ne,we],[Be,ne],[Be,pe],[Be,Ge],[Be,rt],[Be,"-"],[Be,fe],[Be,Oe],[Be,be],[Be,it],[xe,ne],[xe,pe],[xe,Ge],[xe,rt],[xe,"-"],[xe,fe],[xe,Oe],[xe,be],[xe,it],[be,ne],[be,pe],[be,Ge],[be,rt],[be,"-"],[be,fe],[be,Oe],[be,be],[be,it],["#",ne],["#",pe],["#",Ge],["#",rt],["#","-"],["#",fe],["#",Oe],["#",be],["#",it],["-",ne],["-",pe],["-",Ge],["-",rt],["-","-"],["-",fe],["-",Oe],["-",be],["-",it],[fe,ne],[fe,pe],[fe,Ge],[fe,rt],[fe,fe],[fe,Oe],[fe,be],[fe,"%"],[fe,it],["@",ne],["@",pe],["@",Ge],["@",rt],["@","-"],["@",it],[".",fe],[".",Oe],[".",be],["+",fe],["+",Oe],["+",be],["/","*"]],Hm=bu.concat([[ne,xe],[be,xe],[xe,xe],[Be,we],[Be,Et],[Be,Ve],[Oe,Oe],[Oe,be],[Oe,pe],[Oe,"-"],[de,ne],[de,pe],[de,Oe],[de,be],[de,xe],[de,"-"]]);function Eu(e){const t=new Set(e.map(([n,r])=>ms(n)<<16|ms(r)));return function(n,r,i){const s=ms(r,i),o=i.charCodeAt(0),a=o===Um&&r!==ne&&r!==pe&&r!==it||o===Fm?t.has((n&65534)<<16|o<<7):t.has((n&65534)<<16|s);return s|a}}const zm=Eu(bu),yu=Eu(Hm),Tu=Object.freeze(Object.defineProperty({__proto__:null,safe:yu,spec:zm},Symbol.toStringTag,{value:"Module"})),$m=92;function jm(e,t){if(typeof t=="function"){let n=null;e.children.forEach(r=>{n!==null&&t.call(this,n),this.node(r),n=r});return}e.children.forEach(this.node,this)}function qm(e){const t=new Map;for(let[n,r]of Object.entries(e.node))typeof(r.generate||r)=="function"&&t.set(n,r.generate||r);return function(n,r){let i="",s=0,o={node(u){if(t.has(u.type))t.get(u.type).call(a,u);else throw new Error("Unknown node type: "+u.type)},tokenBefore:yu,token(u,c,d){s=this.tokenBefore(s,u,c),!d&&s&1&&this.emit(" ",Le,!0),this.emit(c,u,!1),u===ge&&c.charCodeAt(0)===$m&&this.emit(`
8
+ `,Le,!0)},emit(u){i+=u},result(){return i}};r&&(typeof r.decorator=="function"&&(o=r.decorator(o)),r.sourceMap&&(o=Bm(o)),r.mode in Tu&&(o.tokenBefore=Tu[r.mode]));const a={node:u=>o.node(u),children:jm,token:(u,c)=>o.token(u,c),tokenize:u=>Br(u,(c,d,h)=>{o.token(c,u.slice(d,h),d!==0)})};return o.node(n),o.result()}}function Ym(e){return{fromPlainObject(t){return e(t,{enter(n){n.children&&!(n.children instanceof $e)&&(n.children=new $e().fromArray(n.children))}}),t},toPlainObject(t){return e(t,{leave(n){n.children&&n.children instanceof $e&&(n.children=n.children.toArray())}}),t}}}const{hasOwnProperty:gs}=Object.prototype,Jn=function(){};function _u(e){return typeof e=="function"?e:Jn}function wu(e,t){return function(n,r,i){n.type===t&&e.call(this,n,r,i)}}function Wm(e,t){const n=t.structure,r=[];for(const i in n){if(gs.call(n,i)===!1)continue;let s=n[i];const o={name:i,type:!1,nullable:!1};Array.isArray(s)||(s=[s]);for(const a of s)a===null?o.nullable=!0:typeof a=="string"?o.type="node":Array.isArray(a)&&(o.type="list");o.type&&r.push(o)}return r.length?{context:t.walkContext,fields:r}:null}function Gm(e){const t={};for(const n in e.node)if(gs.call(e.node,n)){const r=e.node[n];if(!r.structure)throw new Error("Missed `structure` field in `"+n+"` node type definition");t[n]=Wm(n,r)}return t}function ku(e,t){const n=e.fields.slice(),r=e.context,i=typeof r=="string";return t&&n.reverse(),function(s,o,a,u){let c;i&&(c=o[r],o[r]=s);for(const d of n){const h=s[d.name];if(!d.nullable||h){if(d.type==="list"){if(t?h.reduceRight(u,!1):h.reduce(u,!1))return!0}else if(a(h))return!0}}i&&(o[r]=c)}}function Au({StyleSheet:e,Atrule:t,Rule:n,Block:r,DeclarationList:i}){return{Atrule:{StyleSheet:e,Atrule:t,Rule:n,Block:r},Rule:{StyleSheet:e,Atrule:t,Rule:n,Block:r},Declaration:{StyleSheet:e,Atrule:t,Rule:n,Block:r,DeclarationList:i}}}function Vm(e){const t=Gm(e),n={},r={},i=Symbol("break-walk"),s=Symbol("skip-node");for(const c in t)gs.call(t,c)&&t[c]!==null&&(n[c]=ku(t[c],!1),r[c]=ku(t[c],!0));const o=Au(n),a=Au(r),u=function(c,d){function h(p,y,C){const I=m.call(_,p,y,C);return I===i?!0:I===s?!1:!!(b.hasOwnProperty(p.type)&&b[p.type](p,_,h,g)||f.call(_,p,y,C)===i)}let m=Jn,f=Jn,b=n,g=(p,y,C,I)=>p||h(y,C,I);const _={break:i,skip:s,root:c,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null};if(typeof d=="function")m=d;else if(d&&(m=_u(d.enter),f=_u(d.leave),d.reverse&&(b=r),d.visit)){if(o.hasOwnProperty(d.visit))b=d.reverse?a[d.visit]:o[d.visit];else if(!t.hasOwnProperty(d.visit))throw new Error("Bad value `"+d.visit+"` for `visit` option (should be: "+Object.keys(t).sort().join(", ")+")");m=wu(m,d.visit),f=wu(f,d.visit)}if(m===Jn&&f===Jn)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");h(c)};return u.break=i,u.skip=s,u.find=function(c,d){let h=null;return u(c,function(m,f,b){if(d.call(this,m,f,b))return h=m,i}),h},u.findLast=function(c,d){let h=null;return u(c,{reverse:!0,enter(m,f,b){if(d.call(this,m,f,b))return h=m,i}}),h},u.findAll=function(c,d){const h=[];return u(c,function(m,f,b){d.call(this,m,f,b)&&h.push(m)}),h},u}function Km(e){return e}function Xm(e){const{min:t,max:n,comma:r}=e;return t===0&&n===0?r?"#?":"*":t===0&&n===1?"?":t===1&&n===0?r?"#":"+":t===1&&n===1?"":(r?"#":"")+(t===n?"{"+t+"}":"{"+t+","+(n!==0?n:"")+"}")}function Qm(e){switch(e.type){case"Range":return" ["+(e.min===null?"-∞":e.min)+","+(e.max===null?"∞":e.max)+"]";default:throw new Error("Unknown node type `"+e.type+"`")}}function Zm(e,t,n,r){const i=e.combinator===" "||r?e.combinator:" "+e.combinator+" ",s=e.terms.map(o=>$r(o,t,n,r)).join(i);return e.explicit||n?(r||s[0]===","?"[":"[ ")+s+(r?"]":" ]"):s}function $r(e,t,n,r){let i;switch(e.type){case"Group":i=Zm(e,t,n,r)+(e.disallowEmpty?"!":"");break;case"Multiplier":return $r(e.term,t,n,r)+t(Xm(e),e);case"Boolean":i="<boolean-expr["+$r(e.term,t,n,r)+"]>";break;case"Type":i="<"+e.name+(e.opts?t(Qm(e.opts),e.opts):"")+">";break;case"Property":i="<'"+e.name+"'>";break;case"Keyword":i=e.name;break;case"AtKeyword":i="@"+e.name;break;case"Function":i=e.name+"(";break;case"String":case"Token":i=e.value;break;case"Comma":i=",";break;default:throw new Error("Unknown node type `"+e.type+"`")}return t(i,e)}function bs(e,t){let n=Km,r=!1,i=!1;return typeof t=="function"?n=t:t&&(r=!!t.forceBraces,i=!!t.compact,typeof t.decorate=="function"&&(n=t.decorate)),$r(e,n,r,i)}const Su={offset:0,line:1,column:1};function Jm(e,t){const n=e.tokens,r=e.longestMatch,i=r<n.length&&n[r].node||null,s=i!==t?i:null;let o=0,a=0,u=0,c="",d,h;for(let m=0;m<n.length;m++){const f=n[m].value;m===r&&(a=f.length,o=c.length),s!==null&&n[m].node===s&&(m<=r?u++:u=0),c+=f}return r===n.length||u>1?(d=jr(s||t,"end")||er(Su,c),h=er(d)):(d=jr(s,"start")||er(jr(t,"start")||Su,c.slice(0,o)),h=jr(s,"end")||er(d,c.substr(o,a))),{css:c,mismatchOffset:o,mismatchLength:a,start:d,end:h}}function jr(e,t){const n=e&&e.loc&&e.loc[t];return n?"line"in n?er(n):n:null}function er({offset:e,line:t,column:n},r){const i={offset:e,line:t,column:n};if(r){const s=r.split(/\n|\r\n?|\f/);i.offset+=r.length,i.line+=s.length-1,i.column=s.length===1?i.column+r.length:s.pop().length+1}return i}const tr=function(e,t){const n=Fr("SyntaxReferenceError",e+(t?" `"+t+"`":""));return n.reference=t,n},eg=function(e,t,n,r){const i=Fr("SyntaxMatchError",e),{css:s,mismatchOffset:o,mismatchLength:a,start:u,end:c}=Jm(r,n);return i.rawMessage=e,i.syntax=t?bs(t):"<generic>",i.css=s,i.mismatchOffset=o,i.mismatchLength=a,i.message=e+`
9
9
  syntax: `+i.syntax+`
10
10
  value: `+(s||"<empty string>")+`
11
- --------`+new Array(i.mismatchOffset+1).join("-")+"^",Object.assign(i,u),i.loc={source:n&&n.loc&&n.loc.source||"<unknown>",start:u,end:c},i},Ur=new Map,_n=new Map,Hr=45,ls=Mm,gu=Bm;function cs(e,t){return t=t||0,e.length-t>=2&&e.charCodeAt(t)===Hr&&e.charCodeAt(t+1)===Hr}function bu(e,t){if(t=t||0,e.length-t>=3&&e.charCodeAt(t)===Hr&&e.charCodeAt(t+1)!==Hr){const n=e.indexOf("-",t+2);if(n!==-1)return e.substring(t,n+1)}return""}function Mm(e){if(Ur.has(e))return Ur.get(e);const t=e.toLowerCase();let n=Ur.get(t);if(n===void 0){const r=cs(t,0),i=r?"":bu(t,0);n=Object.freeze({basename:t.substr(i.length),name:t,prefix:i,vendor:i,custom:r})}return Ur.set(e,n),n}function Bm(e){if(_n.has(e))return _n.get(e);let t=e,n=e[0];n==="/"?n=e[1]==="/"?"//":"/":n!=="_"&&n!=="*"&&n!=="$"&&n!=="#"&&n!=="+"&&n!=="&"&&(n="");const r=cs(t,n.length);if(!r&&(t=t.toLowerCase(),_n.has(t))){const a=_n.get(t);return _n.set(e,a),a}const i=r?"":bu(t,n.length),s=t.substr(0,n.length+i.length),o=Object.freeze({basename:t.substr(s.length),name:t.substr(n.length),hack:n,vendor:i,prefix:s,custom:r});return _n.set(e,o),o}const ds=["initial","inherit","unset","revert","revert-layer"],Zn=43,Ct=45,hs=110,kn=!0,Fm=!1;function fs(e,t){return e!==null&&e.type===ge&&e.value.charCodeAt(0)===t}function Jn(e,t,n){for(;e!==null&&(e.type===Le||e.type===qe);)e=n(++t);return t}function Gt(e,t,n,r){if(!e)return 0;const i=e.value.charCodeAt(t);if(i===Zn||i===Ct){if(n)return 0;t++}for(;t<e.value.length;t++)if(!Ye(e.value.charCodeAt(t)))return 0;return r+1}function ps(e,t,n){let r=!1,i=Jn(e,t,n);if(e=n(i),e===null)return t;if(e.type!==fe)if(fs(e,Zn)||fs(e,Ct)){if(r=!0,i=Jn(n(++i),i,n),e=n(i),e===null||e.type!==fe)return 0}else return t;if(!r){const s=e.value.charCodeAt(0);if(s!==Zn&&s!==Ct)return 0}return Gt(e,r?0:1,r,i)}function Um(e,t){let n=0;if(!e)return 0;if(e.type===fe)return Gt(e,0,Fm,n);if(e.type===ne&&e.value.charCodeAt(0)===Ct){if(!bn(e.value,1,hs))return 0;switch(e.value.length){case 2:return ps(t(++n),n,t);case 3:return e.value.charCodeAt(2)!==Ct?0:(n=Jn(t(++n),n,t),e=t(n),Gt(e,0,kn,n));default:return e.value.charCodeAt(2)!==Ct?0:Gt(e,3,kn,n)}}else if(e.type===ne||fs(e,Zn)&&t(n+1).type===ne){if(e.type!==ne&&(e=t(++n)),e===null||!bn(e.value,0,hs))return 0;switch(e.value.length){case 1:return ps(t(++n),n,t);case 2:return e.value.charCodeAt(1)!==Ct?0:(n=Jn(t(++n),n,t),e=t(n),Gt(e,0,kn,n));default:return e.value.charCodeAt(1)!==Ct?0:Gt(e,2,kn,n)}}else if(e.type===be){let r=e.value.charCodeAt(0),i=r===Zn||r===Ct?1:0,s=i;for(;s<e.value.length&&Ye(e.value.charCodeAt(s));s++);return s===i||!bn(e.value,s,hs)?0:s+1===e.value.length?ps(t(++n),n,t):e.value.charCodeAt(s+1)!==Ct?0:s+2===e.value.length?(n=Jn(t(++n),n,t),e=t(n),Gt(e,0,kn,n)):Gt(e,s+2,kn,n)}return 0}const Hm=43,Eu=45,yu=63,zm=117;function ms(e,t){return e!==null&&e.type===ge&&e.value.charCodeAt(0)===t}function $m(e,t){return e.value.charCodeAt(0)===t}function er(e,t,n){let r=0;for(let i=t;i<e.value.length;i++){const s=e.value.charCodeAt(i);if(s===Eu&&n&&r!==0)return er(e,t+r+1,!1),6;if(!Yt(s)||++r>6)return 0}return r}function zr(e,t,n){if(!e)return 0;for(;ms(n(t),yu);){if(++e>6)return 0;t++}return t}function jm(e,t){let n=0;if(e===null||e.type!==ne||!bn(e.value,0,zm)||(e=t(++n),e===null))return 0;if(ms(e,Hm))return e=t(++n),e===null?0:e.type===ne?zr(er(e,0,!0),++n,t):ms(e,yu)?zr(1,++n,t):0;if(e.type===fe){const r=er(e,1,!0);return r===0?0:(e=t(++n),e===null?n:e.type===be||e.type===fe?!$m(e,Eu)||!er(e,1,!1)?0:n+1:zr(r,n,t))}return e.type===be?zr(er(e,1,!0),++n,t):0}const gs=["calc(","-moz-calc(","-webkit-calc("],bs=["min(","max(","clamp("],Es=["round(","mod(","rem("],qm=["sin(","cos(","tan("],Ym=["asin(","acos(","atan(","atan2("],Wm=["pow(","sqrt(","log(","exp(","sign("],ys=["hypot("],Ts=["abs("],Tu=[...gs,...bs,...Es,...qm,...Wm,...ys,...Ts],Gm=[...gs,...bs,...Es,...ys,...Ts],Rt=[...gs,...bs,...Es,...Ym,...ys,...Ts],_s=new Map([[pe,de],[_e,de],[at,dt],[ze,ot]]);function Tt(e,t){return t<e.length?e.charCodeAt(t):0}function _u(e,t){return Gn(e,0,e.length,t)}function ku(e,t){for(let n=0;n<t.length;n++)if(_u(e,t[n]))return!0;return!1}function wu(e,t){return t!==e.length-2?!1:Tt(e,t)===92&&Ye(Tt(e,t+1))}function $r(e,t,n){if(e&&e.type==="Range"){const r=Number(n!==void 0&&n!==t.length?t.substr(0,n):t);if(isNaN(r)||e.min!==null&&r<e.min&&typeof e.min!="string"||e.max!==null&&r>e.max&&typeof e.max!="string")return!0}return!1}function Vm(e,t){let n=0,r=[],i=0;e:do{switch(e.type){case ot:case de:case dt:if(e.type!==n)break e;if(n=r.pop(),r.length===0){i++;break e}break;case pe:case _e:case at:case ze:r.push(n),n=_s.get(e.type);break}i++}while(e=t(i));return i}function ht(e,t){return function(n,r,i){return n===null?0:n.type===pe&&ku(n.value,t)?Vm(n,r):e(n,r,i)}}function Ne(e){return function(t){return t===null||t.type!==e?0:1}}function Km(e){if(e===null||e.type!==ne)return 0;const t=e.value.toLowerCase();return ku(t,ds)||_u(t,"default")?0:1}function Au(e){return e===null||e.type!==ne||Tt(e.value,0)!==45||Tt(e.value,1)!==45?0:1}function Xm(e){return!Au(e)||e.value==="--"?0:1}function Qm(e){if(e===null||e.type!==xe)return 0;const t=e.value.length;if(t!==4&&t!==5&&t!==7&&t!==9)return 0;for(let n=1;n<t;n++)if(!Yt(Tt(e.value,n)))return 0;return 1}function Zm(e){return e===null||e.type!==xe||!Sr(Tt(e.value,1),Tt(e.value,2),Tt(e.value,3))?0:1}function Jm(e,t){if(!e)return 0;let n=0,r=[],i=0;e:do{switch(e.type){case kr:case nt:break e;case ot:case de:case dt:if(e.type!==n)break e;n=r.pop();break;case Ke:if(n===0)break e;break;case ge:if(n===0&&e.value==="!")break e;break;case pe:case _e:case at:case ze:r.push(n),n=_s.get(e.type);break}i++}while(e=t(i));return i}function eg(e,t){if(!e)return 0;let n=0,r=[],i=0;e:do{switch(e.type){case kr:case nt:break e;case ot:case de:case dt:if(e.type!==n)break e;n=r.pop();break;case pe:case _e:case at:case ze:r.push(n),n=_s.get(e.type);break}i++}while(e=t(i));return i}function Pt(e){return e&&(e=new Set(e)),function(t,n,r){if(t===null||t.type!==be)return 0;const i=Ir(t.value,0);if(e!==null){const s=t.value.indexOf("\\",i),o=s===-1||!wu(t.value,s)?t.value.substr(i):t.value.substring(i,s);if(e.has(o.toLowerCase())===!1)return 0}return $r(r,t.value,i)?0:1}}function tg(e,t,n){return e===null||e.type!==Oe||$r(n,e.value,e.value.length-1)?0:1}function Su(e){return typeof e!="function"&&(e=function(){return 0}),function(t,n,r){return t!==null&&t.type===fe&&Number(t.value)===0?1:e(t,n,r)}}function ng(e,t,n){if(e===null)return 0;const r=Ir(e.value,0);return!(r===e.value.length)&&!wu(e.value,r)||$r(n,e.value,r)?0:1}function rg(e,t,n){if(e===null||e.type!==fe)return 0;let r=Tt(e.value,0)===43||Tt(e.value,0)===45?1:0;for(;r<e.value.length;r++)if(!Ye(Tt(e.value,r)))return 0;return $r(n,e.value,r)?0:1}const ig={"ident-token":Ne(ne),"function-token":Ne(pe),"at-keyword-token":Ne(Be),"hash-token":Ne(xe),"string-token":Ne(gt),"bad-string-token":Ne(kr),"url-token":Ne(Ge),"bad-url-token":Ne(nt),"delim-token":Ne(ge),"number-token":Ne(fe),"percentage-token":Ne(Oe),"dimension-token":Ne(be),"whitespace-token":Ne(Le),"CDO-token":Ne(Wn),"CDC-token":Ne(rt),"colon-token":Ne(Ve),"semicolon-token":Ne(Ke),"comma-token":Ne(it),"[-token":Ne(at),"]-token":Ne(dt),"(-token":Ne(_e),")-token":Ne(de),"{-token":Ne(ze),"}-token":Ne(ot)},sg={string:Ne(gt),ident:Ne(ne),percentage:ht(tg,Gm),zero:Su(),number:ht(ng,Tu),integer:ht(rg,Tu),"custom-ident":Km,"dashed-ident":Au,"custom-property-name":Xm,"hex-color":Qm,"id-selector":Zm,"an-plus-b":Um,urange:jm,"declaration-value":Jm,"any-value":eg},ag=["length","angle","time","frequency","resolution","flex","decibel","semitones"];function og(e){const{angle:t,decibel:n,frequency:r,flex:i,length:s,resolution:o,semitones:a,time:u}=e||{};return{dimension:ht(Pt(null),Rt),angle:ht(Pt(t),Rt),decibel:ht(Pt(n),Rt),frequency:ht(Pt(r),Rt),flex:ht(Pt(i),Rt),length:ht(Su(Pt(s)),Rt),resolution:ht(Pt(o),Rt),semitones:ht(Pt(a),Rt),time:ht(Pt(u),Rt)}}function ug(e){const t=new Set;for(const n of ag)if(Array.isArray(e[n]))for(const r of e[n])t.add(r.toLowerCase());return function(r){return r===null?0:r.type===ge&&r.value==="%"||r.type===ne&&t.has(r.value.toLowerCase())?1:0}}function lg(e){return{...ig,...sg,...og(e),"attr-unit":ug(e)}}const Cu=Object.freeze(Object.defineProperty({__proto__:null,angle:["deg","grad","rad","turn"],decibel:["db"],flex:["fr"],frequency:["hz","khz"],length:["cm","mm","q","in","pt","pc","px","em","rem","ex","rex","cap","rcap","ch","rch","ic","ric","lh","rlh","vw","svw","lvw","dvw","vh","svh","lvh","dvh","vi","svi","lvi","dvi","vb","svb","lvb","dvb","vmin","svmin","lvmin","dvmin","vmax","svmax","lvmax","dvmax","cqw","cqh","cqi","cqb","cqmin","cqmax"],resolution:["dpi","dpcm","dppx","x"],semitones:["st"],time:["s","ms"]},Symbol.toStringTag,{value:"Module"}));function cg(e,t,n){return Object.assign(Rr("SyntaxError",e),{input:t,offset:n,rawMessage:e,message:e+`
11
+ --------`+new Array(i.mismatchOffset+1).join("-")+"^",Object.assign(i,u),i.loc={source:n&&n.loc&&n.loc.source||"<unknown>",start:u,end:c},i},qr=new Map,_n=new Map,Yr=45,Es=tg,Cu=ng;function ys(e,t){return t=t||0,e.length-t>=2&&e.charCodeAt(t)===Yr&&e.charCodeAt(t+1)===Yr}function xu(e,t){if(t=t||0,e.length-t>=3&&e.charCodeAt(t)===Yr&&e.charCodeAt(t+1)!==Yr){const n=e.indexOf("-",t+2);if(n!==-1)return e.substring(t,n+1)}return""}function tg(e){if(qr.has(e))return qr.get(e);const t=e.toLowerCase();let n=qr.get(t);if(n===void 0){const r=ys(t,0),i=r?"":xu(t,0);n=Object.freeze({basename:t.substr(i.length),name:t,prefix:i,vendor:i,custom:r})}return qr.set(e,n),n}function ng(e){if(_n.has(e))return _n.get(e);let t=e,n=e[0];n==="/"?n=e[1]==="/"?"//":"/":n!=="_"&&n!=="*"&&n!=="$"&&n!=="#"&&n!=="+"&&n!=="&"&&(n="");const r=ys(t,n.length);if(!r&&(t=t.toLowerCase(),_n.has(t))){const a=_n.get(t);return _n.set(e,a),a}const i=r?"":xu(t,n.length),s=t.substr(0,n.length+i.length),o=Object.freeze({basename:t.substr(s.length),name:t.substr(n.length),hack:n,vendor:i,prefix:s,custom:r});return _n.set(e,o),o}const Ts=["initial","inherit","unset","revert","revert-layer"],nr=43,Nt=45,_s=110,wn=!0,rg=!1;function ws(e,t){return e!==null&&e.type===ge&&e.value.charCodeAt(0)===t}function rr(e,t,n){for(;e!==null&&(e.type===Le||e.type===qe);)e=n(++t);return t}function Vt(e,t,n,r){if(!e)return 0;const i=e.value.charCodeAt(t);if(i===nr||i===Nt){if(n)return 0;t++}for(;t<e.value.length;t++)if(!Ye(e.value.charCodeAt(t)))return 0;return r+1}function ks(e,t,n){let r=!1,i=rr(e,t,n);if(e=n(i),e===null)return t;if(e.type!==fe)if(ws(e,nr)||ws(e,Nt)){if(r=!0,i=rr(n(++i),i,n),e=n(i),e===null||e.type!==fe)return 0}else return t;if(!r){const s=e.value.charCodeAt(0);if(s!==nr&&s!==Nt)return 0}return Vt(e,r?0:1,r,i)}function ig(e,t){let n=0;if(!e)return 0;if(e.type===fe)return Vt(e,0,rg,n);if(e.type===ne&&e.value.charCodeAt(0)===Nt){if(!bn(e.value,1,_s))return 0;switch(e.value.length){case 2:return ks(t(++n),n,t);case 3:return e.value.charCodeAt(2)!==Nt?0:(n=rr(t(++n),n,t),e=t(n),Vt(e,0,wn,n));default:return e.value.charCodeAt(2)!==Nt?0:Vt(e,3,wn,n)}}else if(e.type===ne||ws(e,nr)&&t(n+1).type===ne){if(e.type!==ne&&(e=t(++n)),e===null||!bn(e.value,0,_s))return 0;switch(e.value.length){case 1:return ks(t(++n),n,t);case 2:return e.value.charCodeAt(1)!==Nt?0:(n=rr(t(++n),n,t),e=t(n),Vt(e,0,wn,n));default:return e.value.charCodeAt(1)!==Nt?0:Vt(e,2,wn,n)}}else if(e.type===be){let r=e.value.charCodeAt(0),i=r===nr||r===Nt?1:0,s=i;for(;s<e.value.length&&Ye(e.value.charCodeAt(s));s++);return s===i||!bn(e.value,s,_s)?0:s+1===e.value.length?ks(t(++n),n,t):e.value.charCodeAt(s+1)!==Nt?0:s+2===e.value.length?(n=rr(t(++n),n,t),e=t(n),Vt(e,0,wn,n)):Vt(e,s+2,wn,n)}return 0}const sg=43,Nu=45,vu=63,ag=117;function As(e,t){return e!==null&&e.type===ge&&e.value.charCodeAt(0)===t}function og(e,t){return e.value.charCodeAt(0)===t}function ir(e,t,n){let r=0;for(let i=t;i<e.value.length;i++){const s=e.value.charCodeAt(i);if(s===Nu&&n&&r!==0)return ir(e,t+r+1,!1),6;if(!Wt(s)||++r>6)return 0}return r}function Wr(e,t,n){if(!e)return 0;for(;As(n(t),vu);){if(++e>6)return 0;t++}return t}function ug(e,t){let n=0;if(e===null||e.type!==ne||!bn(e.value,0,ag)||(e=t(++n),e===null))return 0;if(As(e,sg))return e=t(++n),e===null?0:e.type===ne?Wr(ir(e,0,!0),++n,t):As(e,vu)?Wr(1,++n,t):0;if(e.type===fe){const r=ir(e,1,!0);return r===0?0:(e=t(++n),e===null?n:e.type===be||e.type===fe?!og(e,Nu)||!ir(e,1,!1)?0:n+1:Wr(r,n,t))}return e.type===be?Wr(ir(e,1,!0),++n,t):0}const Ss=["calc(","-moz-calc(","-webkit-calc("],Cs=["min(","max(","clamp("],xs=["round(","mod(","rem("],lg=["sin(","cos(","tan("],cg=["asin(","acos(","atan(","atan2("],dg=["pow(","sqrt(","log(","exp(","sign("],Ns=["hypot("],vs=["abs("],Iu=[...Ss,...Cs,...xs,...lg,...dg,...Ns,...vs],hg=[...Ss,...Cs,...xs,...Ns,...vs],Dt=[...Ss,...Cs,...xs,...cg,...Ns,...vs],Is=new Map([[pe,de],[we,de],[ot,ft],[ze,ut]]);function wt(e,t){return t<e.length?e.charCodeAt(t):0}function Ou(e,t){return Qn(e,0,e.length,t)}function Lu(e,t){for(let n=0;n<t.length;n++)if(Ou(e,t[n]))return!0;return!1}function Pu(e,t){return t!==e.length-2?!1:wt(e,t)===92&&Ye(wt(e,t+1))}function Gr(e,t,n){if(e&&e.type==="Range"){const r=Number(n!==void 0&&n!==t.length?t.substr(0,n):t);if(isNaN(r)||e.min!==null&&r<e.min&&typeof e.min!="string"||e.max!==null&&r>e.max&&typeof e.max!="string")return!0}return!1}function fg(e,t){let n=0,r=[],i=0;e:do{switch(e.type){case ut:case de:case ft:if(e.type!==n)break e;if(n=r.pop(),r.length===0){i++;break e}break;case pe:case we:case ot:case ze:r.push(n),n=Is.get(e.type);break}i++}while(e=t(i));return i}function pt(e,t){return function(n,r,i){return n===null?0:n.type===pe&&Lu(n.value,t)?fg(n,r):e(n,r,i)}}function Ne(e){return function(t){return t===null||t.type!==e?0:1}}function pg(e){if(e===null||e.type!==ne)return 0;const t=e.value.toLowerCase();return Lu(t,Ts)||Ou(t,"default")?0:1}function Ru(e){return e===null||e.type!==ne||wt(e.value,0)!==45||wt(e.value,1)!==45?0:1}function mg(e){return!Ru(e)||e.value==="--"?0:1}function gg(e){if(e===null||e.type!==xe)return 0;const t=e.value.length;if(t!==4&&t!==5&&t!==7&&t!==9)return 0;for(let n=1;n<t;n++)if(!Wt(wt(e.value,n)))return 0;return 1}function bg(e){return e===null||e.type!==xe||!Ir(wt(e.value,1),wt(e.value,2),wt(e.value,3))?0:1}function Eg(e,t){if(!e)return 0;let n=0,r=[],i=0;e:do{switch(e.type){case xr:case rt:break e;case ut:case de:case ft:if(e.type!==n)break e;n=r.pop();break;case Ke:if(n===0)break e;break;case ge:if(n===0&&e.value==="!")break e;break;case pe:case we:case ot:case ze:r.push(n),n=Is.get(e.type);break}i++}while(e=t(i));return i}function yg(e,t){if(!e)return 0;let n=0,r=[],i=0;e:do{switch(e.type){case xr:case rt:break e;case ut:case de:case ft:if(e.type!==n)break e;n=r.pop();break;case pe:case we:case ot:case ze:r.push(n),n=Is.get(e.type);break}i++}while(e=t(i));return i}function Mt(e){return e&&(e=new Set(e)),function(t,n,r){if(t===null||t.type!==be)return 0;const i=Rr(t.value,0);if(e!==null){const s=t.value.indexOf("\\",i),o=s===-1||!Pu(t.value,s)?t.value.substr(i):t.value.substring(i,s);if(e.has(o.toLowerCase())===!1)return 0}return Gr(r,t.value,i)?0:1}}function Tg(e,t,n){return e===null||e.type!==Oe||Gr(n,e.value,e.value.length-1)?0:1}function Du(e){return typeof e!="function"&&(e=function(){return 0}),function(t,n,r){return t!==null&&t.type===fe&&Number(t.value)===0?1:e(t,n,r)}}function _g(e,t,n){if(e===null)return 0;const r=Rr(e.value,0);return!(r===e.value.length)&&!Pu(e.value,r)||Gr(n,e.value,r)?0:1}function wg(e,t,n){if(e===null||e.type!==fe)return 0;let r=wt(e.value,0)===43||wt(e.value,0)===45?1:0;for(;r<e.value.length;r++)if(!Ye(wt(e.value,r)))return 0;return Gr(n,e.value,r)?0:1}const kg={"ident-token":Ne(ne),"function-token":Ne(pe),"at-keyword-token":Ne(Be),"hash-token":Ne(xe),"string-token":Ne(Et),"bad-string-token":Ne(xr),"url-token":Ne(Ge),"bad-url-token":Ne(rt),"delim-token":Ne(ge),"number-token":Ne(fe),"percentage-token":Ne(Oe),"dimension-token":Ne(be),"whitespace-token":Ne(Le),"CDO-token":Ne(Xn),"CDC-token":Ne(it),"colon-token":Ne(Ve),"semicolon-token":Ne(Ke),"comma-token":Ne(st),"[-token":Ne(ot),"]-token":Ne(ft),"(-token":Ne(we),")-token":Ne(de),"{-token":Ne(ze),"}-token":Ne(ut)},Ag={string:Ne(Et),ident:Ne(ne),percentage:pt(Tg,hg),zero:Du(),number:pt(_g,Iu),integer:pt(wg,Iu),"custom-ident":pg,"dashed-ident":Ru,"custom-property-name":mg,"hex-color":gg,"id-selector":bg,"an-plus-b":ig,urange:ug,"declaration-value":Eg,"any-value":yg},Sg=["length","angle","time","frequency","resolution","flex","decibel","semitones"];function Cg(e){const{angle:t,decibel:n,frequency:r,flex:i,length:s,resolution:o,semitones:a,time:u}=e||{};return{dimension:pt(Mt(null),Dt),angle:pt(Mt(t),Dt),decibel:pt(Mt(n),Dt),frequency:pt(Mt(r),Dt),flex:pt(Mt(i),Dt),length:pt(Du(Mt(s)),Dt),resolution:pt(Mt(o),Dt),semitones:pt(Mt(a),Dt),time:pt(Mt(u),Dt)}}function xg(e){const t=new Set;for(const n of Sg)if(Array.isArray(e[n]))for(const r of e[n])t.add(r.toLowerCase());return function(r){return r===null?0:r.type===ge&&r.value==="%"||r.type===ne&&t.has(r.value.toLowerCase())?1:0}}function Ng(e){return{...kg,...Ag,...Cg(e),"attr-unit":xg(e)}}const Mu=Object.freeze(Object.defineProperty({__proto__:null,angle:["deg","grad","rad","turn"],decibel:["db"],flex:["fr"],frequency:["hz","khz"],length:["cm","mm","q","in","pt","pc","px","em","rem","ex","rex","cap","rcap","ch","rch","ic","ric","lh","rlh","vw","svw","lvw","dvw","vh","svh","lvh","dvh","vi","svi","lvi","dvi","vb","svb","lvb","dvb","vmin","svmin","lvmin","dvmin","vmax","svmax","lvmax","dvmax","cqw","cqh","cqi","cqb","cqmin","cqmax"],resolution:["dpi","dpcm","dppx","x"],semitones:["st"],time:["s","ms"]},Symbol.toStringTag,{value:"Module"}));function vg(e,t,n){return Object.assign(Fr("SyntaxError",e),{input:t,offset:n,rawMessage:e,message:e+`
12
12
  `+t+`
13
- --`+new Array((n||t.length)+1).join("-")+"^"})}const dg=9,hg=10,fg=12,pg=13,mg=32,xu=new Uint8Array(128).map((e,t)=>/[a-zA-Z0-9\-]/.test(String.fromCharCode(t))?1:0);class gg{constructor(t){this.str=t,this.pos=0}charCodeAt(t){return t<this.str.length?this.str.charCodeAt(t):0}charCode(){return this.charCodeAt(this.pos)}isNameCharCode(t=this.charCode()){return t<128&&xu[t]===1}nextCharCode(){return this.charCodeAt(this.pos+1)}nextNonWsCode(t){return this.charCodeAt(this.findWsEnd(t))}skipWs(){this.pos=this.findWsEnd(this.pos)}findWsEnd(t){for(;t<this.str.length;t++){const n=this.str.charCodeAt(t);if(n!==pg&&n!==hg&&n!==fg&&n!==mg&&n!==dg)break}return t}substringToPos(t){return this.str.substring(this.pos,this.pos=t)}eat(t){this.charCode()!==t&&this.error("Expect `"+String.fromCharCode(t)+"`"),this.pos++}peek(){return this.pos<this.str.length?this.str.charAt(this.pos++):""}error(t){throw new cg(t,this.str,this.pos)}scanSpaces(){return this.substringToPos(this.findWsEnd(this.pos))}scanWord(){let t=this.pos;for(;t<this.str.length;t++){const n=this.str.charCodeAt(t);if(n>=128||xu[n]===0)break}return this.pos===t&&this.error("Expect a keyword"),this.substringToPos(t)}scanNumber(){let t=this.pos;for(;t<this.str.length;t++){const n=this.str.charCodeAt(t);if(n<48||n>57)break}return this.pos===t&&this.error("Expect a number"),this.substringToPos(t)}scanString(){const t=this.str.indexOf("'",this.pos+1);return t===-1&&(this.pos=this.str.length,this.error("Expect an apostrophe")),this.substringToPos(t+1)}}const bg=9,Eg=10,yg=12,Tg=13,_g=32,Nu=33,ks=35,Iu=38,jr=39,vu=40,Ou=41,Lu=42,ws=43,As=44,Ru=45,Ss=60,Cs=62,qr=63,kg=64,tr=91,wn=93,Yr=123,Pu=124,xs=125,Du=8734,Mu={" ":1,"&&":2,"||":3,"|":4};function Bu(e){let t=null,n=null;return e.eat(Yr),e.skipWs(),t=e.scanNumber(e),e.skipWs(),e.charCode()===As?(e.pos++,e.skipWs(),e.charCode()!==xs&&(n=e.scanNumber(e),e.skipWs())):n=t,e.eat(xs),{min:Number(t),max:n?Number(n):0}}function wg(e){let t=null,n=!1;switch(e.charCode()){case Lu:e.pos++,t={min:0,max:0};break;case ws:e.pos++,t={min:1,max:0};break;case qr:e.pos++,t={min:0,max:1};break;case ks:e.pos++,n=!0,e.charCode()===Yr?t=Bu(e):e.charCode()===qr?(e.pos++,t={min:0,max:0}):t={min:1,max:0};break;case Yr:t=Bu(e);break;default:return null}return{type:"Multiplier",comma:n,min:t.min,max:t.max,term:null}}function Dt(e,t){const n=wg(e);return n!==null?(n.term=t,e.charCode()===ks&&e.charCodeAt(e.pos-1)===ws||e.charCode()===qr&&e.charCodeAt(e.pos-1)===xs?Dt(e,n):n):t}function Ns(e){const t=e.peek();return t===""?null:Dt(e,{type:"Token",value:t})}function Ag(e){let t;return e.eat(Ss),e.eat(jr),t=e.scanWord(),e.eat(jr),e.eat(Cs),Dt(e,{type:"Property",name:t})}function Sg(e){let t=null,n=null,r=1;return e.eat(tr),e.charCode()===Ru&&(e.peek(),r=-1),r==-1&&e.charCode()===Du?e.peek():(t=r*Number(e.scanNumber(e)),e.isNameCharCode()&&(t+=e.scanWord())),e.skipWs(),e.eat(As),e.skipWs(),e.charCode()===Du?e.peek():(r=1,e.charCode()===Ru&&(e.peek(),r=-1),n=r*Number(e.scanNumber(e)),e.isNameCharCode()&&(n+=e.scanWord())),e.eat(wn),{type:"Range",min:t,max:n}}function Cg(e){let t,n=null;if(e.eat(Ss),t=e.scanWord(),t==="boolean-expr"){e.eat(tr);const r=Wr(e,wn);return e.eat(wn),e.eat(Cs),Dt(e,{type:"Boolean",term:r.terms.length===1?r.terms[0]:r})}return e.charCode()===vu&&e.nextCharCode()===Ou&&(e.pos+=2,t+="()"),e.charCodeAt(e.findWsEnd(e.pos))===tr&&(e.skipWs(),n=Sg(e)),e.eat(Cs),Dt(e,{type:"Type",name:t,opts:n})}function xg(e){const t=e.scanWord();return e.charCode()===vu?(e.pos++,{type:"Function",name:t}):Dt(e,{type:"Keyword",name:t})}function Ng(e,t){function n(i,s){return{type:"Group",terms:i,combinator:s,disallowEmpty:!1,explicit:!1}}let r;for(t=Object.keys(t).sort((i,s)=>Mu[i]-Mu[s]);t.length>0;){r=t.shift();let i=0,s=0;for(;i<e.length;i++){const o=e[i];o.type==="Combinator"&&(o.value===r?(s===-1&&(s=i-1),e.splice(i,1),i--):(s!==-1&&i-s>1&&(e.splice(s,i-s,n(e.slice(s,i),r)),i=s+1),s=-1))}s!==-1&&t.length&&e.splice(s,i-s,n(e.slice(s,i),r))}return r}function Wr(e,t=-1){const n=Object.create(null),r=[];let i=null,s=e.pos,o=!1;for(;e.charCode()!==t;){let a=o?Wr(e,Ou):vg(e);if(!a)break;if(a.type!=="Spaces"){if(o){if(a.terms.length===0){o=!1;continue}if(a.combinator===" "){for(;a.terms.length>1;)n[" "]=!0,r.push({type:"Combinator",value:" "},a.terms.shift());a=a.terms[0]}}a.type==="Combinator"?((i===null||i.type==="Combinator")&&(e.pos=s,e.error("Unexpected combinator")),n[a.value]=!0):i!==null&&i.type!=="Combinator"&&(n[" "]=!0,r.push({type:"Combinator",value:" "})),r.push(a),i=a,s=e.pos,o=a.type==="Function"}}return i!==null&&i.type==="Combinator"&&(e.pos-=s,e.error("Unexpected combinator")),{type:"Group",terms:r,combinator:Ng(r,n)||" ",disallowEmpty:!1,explicit:!1}}function Ig(e){let t;return e.eat(tr),t=Wr(e,wn),e.eat(wn),t.explicit=!0,e.charCode()===Nu&&(e.pos++,t.disallowEmpty=!0),t}function vg(e){let t=e.charCode();switch(t){case wn:break;case tr:return Dt(e,Ig(e));case Ss:return e.nextCharCode()===jr?Ag(e):Cg(e);case Pu:return{type:"Combinator",value:e.substringToPos(e.pos+(e.nextCharCode()===Pu?2:1))};case Iu:return e.pos++,e.eat(Iu),{type:"Combinator",value:"&&"};case As:return e.pos++,{type:"Comma"};case jr:return Dt(e,{type:"String",value:e.scanString()});case _g:case bg:case Eg:case Tg:case yg:return{type:"Spaces",value:e.scanSpaces()};case kg:return t=e.nextCharCode(),e.isNameCharCode(t)?(e.pos++,{type:"AtKeyword",name:e.scanWord()}):Ns(e);case Lu:case ws:case qr:case ks:case Nu:break;case Yr:if(t=e.nextCharCode(),t<48||t>57)return Ns(e);break;default:return e.isNameCharCode(t)?xg(e):Ns(e)}}function Fu(e){const t=new gg(e),n=Wr(t);return t.pos!==e.length&&t.error("Unexpected input"),n.terms.length===1&&n.terms[0].type==="Group"?n.terms[0]:n}const nr=function(){};function Uu(e){return typeof e=="function"?e:nr}function Og(e,t,n){function r(o){switch(i.call(n,o),o.type){case"Group":o.terms.forEach(r);break;case"Multiplier":case"Boolean":r(o.term);break;case"Type":case"Property":case"Keyword":case"AtKeyword":case"Function":case"String":case"Token":case"Comma":break;default:throw new Error("Unknown type: "+o.type)}s.call(n,o)}let i=nr,s=nr;if(typeof t=="function"?i=t:t&&(i=Uu(t.enter),s=Uu(t.leave)),i===nr&&s===nr)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");r(e)}const Lg={decorator(e){const t=[];let n=null;return{...e,node(r){const i=n;n=r,e.node.call(this,r),n=i},emit(r,i,s){t.push({type:i,value:r,node:s?null:n})},result(){return t}}}};function Rg(e){const t=[];return Lr(e,(n,r,i)=>t.push({type:n,value:e.slice(r,i),node:null})),t}function Pg(e,t){return typeof e=="string"?Rg(e):t.generate(e,Lg)}const ke={type:"Match"},Se={type:"Mismatch"},Is={type:"DisallowEmpty"},Dg=40,Mg=41;function Xe(e,t,n){return t===ke&&n===Se||e===ke&&t===ke&&n===ke?e:(e.type==="If"&&e.else===Se&&t===ke&&(t=e.then,e=e.match),{type:"If",match:e,then:t,else:n})}function Hu(e){return e.length>2&&e.charCodeAt(e.length-2)===Dg&&e.charCodeAt(e.length-1)===Mg}function zu(e){return e.type==="Keyword"||e.type==="AtKeyword"||e.type==="Function"||e.type==="Type"&&Hu(e.name)}function Vt(e,t=" ",n=!1){return{type:"Group",terms:e,combinator:t,disallowEmpty:!1,explicit:n}}function rr(e,t,n=new Set){if(!n.has(e))switch(n.add(e),e.type){case"If":e.match=rr(e.match,t,n),e.then=rr(e.then,t,n),e.else=rr(e.else,t,n);break;case"Type":return t[e.name]||e}return e}function vs(e,t,n){switch(e){case" ":{let r=ke;for(let i=t.length-1;i>=0;i--){const s=t[i];r=Xe(s,r,Se)}return r}case"|":{let r=Se,i=null;for(let s=t.length-1;s>=0;s--){let o=t[s];if(zu(o)&&(i===null&&s>0&&zu(t[s-1])&&(i=Object.create(null),r=Xe({type:"Enum",map:i},ke,r)),i!==null)){const a=(Hu(o.name)?o.name.slice(0,-1):o.name).toLowerCase();if(!(a in i)){i[a]=o;continue}}i=null,r=Xe(o,ke,r)}return r}case"&&":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!0};let r=Se;for(let i=t.length-1;i>=0;i--){const s=t[i];let o;t.length>1?o=vs(e,t.filter(function(a){return a!==s}),!1):o=ke,r=Xe(s,o,r)}return r}case"||":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!1};let r=n?ke:Se;for(let i=t.length-1;i>=0;i--){const s=t[i];let o;t.length>1?o=vs(e,t.filter(function(a){return a!==s}),!0):o=ke,r=Xe(s,o,r)}return r}}}function Bg(e){let t=ke,n=An(e.term);if(e.max===0)n=Xe(n,Is,Se),t=Xe(n,null,Se),t.then=Xe(ke,ke,t),e.comma&&(t.then.else=Xe({type:"Comma",syntax:e},t,Se));else for(let r=e.min||1;r<=e.max;r++)e.comma&&t!==ke&&(t=Xe({type:"Comma",syntax:e},t,Se)),t=Xe(n,Xe(ke,ke,t),Se);if(e.min===0)t=Xe(ke,ke,t);else for(let r=0;r<e.min-1;r++)e.comma&&t!==ke&&(t=Xe({type:"Comma",syntax:e},t,Se)),t=Xe(n,t,Se);return t}function An(e){if(typeof e=="function")return{type:"Generic",fn:e};switch(e.type){case"Group":{let t=vs(e.combinator,e.terms.map(An),!1);return e.disallowEmpty&&(t=Xe(t,Is,Se)),t}case"Multiplier":return Bg(e);case"Boolean":{const t=An(e.term),n=An(Vt([Vt([{type:"Keyword",name:"not"},{type:"Type",name:"!boolean-group"}]),Vt([{type:"Type",name:"!boolean-group"},Vt([{type:"Multiplier",comma:!1,min:0,max:0,term:Vt([{type:"Keyword",name:"and"},{type:"Type",name:"!boolean-group"}])},{type:"Multiplier",comma:!1,min:0,max:0,term:Vt([{type:"Keyword",name:"or"},{type:"Type",name:"!boolean-group"}])}],"|")])],"|")),r=An(Vt([{type:"Type",name:"!term"},Vt([{type:"Token",value:"("},{type:"Type",name:"!self"},{type:"Token",value:")"}]),{type:"Type",name:"general-enclosed"}],"|"));return rr(r,{"!term":t,"!self":n}),rr(n,{"!boolean-group":r}),n}case"Type":case"Property":return{type:e.type,name:e.name,syntax:e};case"Keyword":return{type:e.type,name:e.name.toLowerCase(),syntax:e};case"AtKeyword":return{type:e.type,name:"@"+e.name.toLowerCase(),syntax:e};case"Function":return{type:e.type,name:e.name.toLowerCase()+"(",syntax:e};case"String":return e.value.length===3?{type:"Token",value:e.value.charAt(1),syntax:e}:{type:e.type,value:e.value.substr(1,e.value.length-2).replace(/\\'/g,"'"),syntax:e};case"Token":return{type:e.type,value:e.value,syntax:e};case"Comma":return{type:e.type,syntax:e};default:throw new Error("Unknown node type:",e.type)}}function Gr(e,t){return typeof e=="string"&&(e=Fu(e)),{type:"MatchGraph",match:An(e),syntax:t||null,source:e}}const{hasOwnProperty:$u}=Object.prototype,Fg=0,Ug=1,Os=2,ju=3,qu="Match",Hg="Mismatch",zg="Maximum iteration number exceeded (please fill an issue on https://github.com/csstree/csstree/issues)",Yu=15e3;function $g(e){let t=null,n=null,r=e;for(;r!==null;)n=r.prev,r.prev=t,t=r,r=n;return t}function Ls(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++){const r=t.charCodeAt(n);let i=e.charCodeAt(n);if(i>=65&&i<=90&&(i=i|32),i!==r)return!1}return!0}function jg(e){return e.type!==ge?!1:e.value!=="?"}function Wu(e){return e===null?!0:e.type===it||e.type===pe||e.type===_e||e.type===at||e.type===ze||jg(e)}function Gu(e){return e===null?!0:e.type===de||e.type===dt||e.type===ot||e.type===ge&&e.value==="/"}function qg(e,t,n){function r(){do y++,p=y<e.length?e[y]:null;while(p!==null&&(p.type===Le||p.type===qe))}function i(D){const B=y+D;return B<e.length?e[B]:null}function s(D,B){return{nextState:D,matchStack:O,syntaxStack:h,thenStack:b,tokenIndex:y,prev:B}}function o(D){b={nextState:D,matchStack:O,syntaxStack:h,prev:b}}function a(D){f=s(D,f)}function u(){O={type:Ug,syntax:t.syntax,token:p,prev:O},r(),m=null,y>C&&(C=y)}function c(){h={syntax:t.syntax,opts:t.syntax.opts||h!==null&&h.opts||null,prev:h},O={type:Os,syntax:t.syntax,token:O.token,prev:O}}function d(){O.type===Os?O=O.prev:O={type:ju,syntax:h.syntax,token:O.token,prev:O},h=h.prev}let h=null,b=null,f=null,m=null,g=0,_=null,p=null,y=-1,C=0,O={type:Fg,syntax:null,token:null,prev:null};for(r();_===null&&++g<Yu;)switch(t.type){case"Match":if(b===null){if(p!==null&&(y!==e.length-1||p.value!=="\\0"&&p.value!=="\\9")){t=Se;break}_=qu;break}if(t=b.nextState,t===Is)if(b.matchStack===O){t=Se;break}else t=ke;for(;b.syntaxStack!==h;)d();b=b.prev;break;case"Mismatch":if(m!==null&&m!==!1)(f===null||y>f.tokenIndex)&&(f=m,m=!1);else if(f===null){_=Hg;break}t=f.nextState,b=f.thenStack,h=f.syntaxStack,O=f.matchStack,y=f.tokenIndex,p=y<e.length?e[y]:null,f=f.prev;break;case"MatchGraph":t=t.match;break;case"If":t.else!==Se&&a(t.else),t.then!==ke&&o(t.then),t=t.match;break;case"MatchOnce":t={type:"MatchOnceBuffer",syntax:t,index:0,mask:0};break;case"MatchOnceBuffer":{const A=t.syntax.terms;if(t.index===A.length){if(t.mask===0||t.syntax.all){t=Se;break}t=ke;break}if(t.mask===(1<<A.length)-1){t=ke;break}for(;t.index<A.length;t.index++){const S=1<<t.index;if((t.mask&S)===0){a(t),o({type:"AddMatchOnce",syntax:t.syntax,mask:t.mask|S}),t=A[t.index++];break}}break}case"AddMatchOnce":t={type:"MatchOnceBuffer",syntax:t.syntax,index:0,mask:t.mask};break;case"Enum":if(p!==null){let A=p.value.toLowerCase();if(A.indexOf("\\")!==-1&&(A=A.replace(/\\[09].*$/,"")),$u.call(t.map,A)){t=t.map[A];break}}t=Se;break;case"Generic":{const A=h!==null?h.opts:null,S=y+Math.floor(t.fn(p,i,A));if(!isNaN(S)&&S>y){for(;y<S;)u();t=ke}else t=Se;break}case"Type":case"Property":{const A=t.type==="Type"?"types":"properties",S=$u.call(n,A)?n[A][t.name]:null;if(!S||!S.match)throw new Error("Bad syntax reference: "+(t.type==="Type"?"<"+t.name+">":"<'"+t.name+"'>"));if(m!==!1&&p!==null&&t.type==="Type"&&(t.name==="custom-ident"&&p.type===ne||t.name==="length"&&p.value==="0")){m===null&&(m=s(t,f)),t=Se;break}c(),t=S.matchRef||S.match;break}case"Keyword":{const A=t.name;if(p!==null){let S=p.value;if(S.indexOf("\\")!==-1&&(S=S.replace(/\\[09].*$/,"")),Ls(S,A)){u(),t=ke;break}}t=Se;break}case"AtKeyword":case"Function":if(p!==null&&Ls(p.value,t.name)){u(),t=ke;break}t=Se;break;case"Token":if(p!==null&&p.value===t.value){u(),t=ke;break}t=Se;break;case"Comma":p!==null&&p.type===it?Wu(O.token)?t=Se:(u(),t=Gu(p)?Se:ke):t=Wu(O.token)||Gu(p)?ke:Se;break;case"String":let D="",B=y;for(;B<e.length&&D.length<t.value.length;B++)D+=e[B].value;if(Ls(D,t.value)){for(;y<B;)u();t=ke}else t=Se;break;default:throw new Error("Unknown node type: "+t.type)}switch(_){case null:console.warn("[csstree-match] BREAK after "+Yu+" iterations"),_=zg,O=null;break;case qu:for(;h!==null;)d();break;default:O=null}return{tokens:e,reason:_,iterations:g,match:O,longestMatch:C}}function Vu(e,t,n){const r=qg(e,t,n||{});if(r.match===null)return r;let i=r.match,s=r.match={syntax:t.syntax||null,match:[]};const o=[s];for(i=$g(i).prev;i!==null;){switch(i.type){case Os:s.match.push(s={syntax:i.syntax,match:[]}),o.push(s);break;case ju:o.pop(),s=o[o.length-1];break;default:s.match.push({syntax:i.syntax||null,token:i.token.value,node:i.token.node})}i=i.prev}return r}function Ku(e){function t(i){return i===null?!1:i.type==="Type"||i.type==="Property"||i.type==="Keyword"}function n(i){if(Array.isArray(i.match)){for(let s=0;s<i.match.length;s++)if(n(i.match[s]))return t(i.syntax)&&r.unshift(i.syntax),!0}else if(i.node===e)return r=t(i.syntax)?[i.syntax]:[],!0;return!1}let r=null;return this.matched!==null&&n(this.matched),r}function Yg(e,t){return Rs(this,e,n=>n.type==="Type"&&n.name===t)}function Wg(e,t){return Rs(this,e,n=>n.type==="Property"&&n.name===t)}function Gg(e){return Rs(this,e,t=>t.type==="Keyword")}function Rs(e,t,n){const r=Ku.call(e,t);return r===null?!1:r.some(n)}const Vg=Object.freeze(Object.defineProperty({__proto__:null,getTrace:Ku,isKeyword:Gg,isProperty:Wg,isType:Yg},Symbol.toStringTag,{value:"Module"}));function Xu(e){return"node"in e?e.node:Xu(e.match[0])}function Qu(e){return"node"in e?e.node:Qu(e.match[e.match.length-1])}function Zu(e,t,n,r,i){function s(a){if(a.syntax!==null&&a.syntax.type===r&&a.syntax.name===i){const u=Xu(a),c=Qu(a);e.syntax.walk(t,function(d,h,b){if(d===u){const f=new $e;do{if(f.appendData(h.data),h.data===c)break;h=h.next}while(h!==null);o.push({parent:b,nodes:f})}})}Array.isArray(a.match)&&a.match.forEach(s)}const o=[];return n.matched!==null&&s(n.matched),o}const{hasOwnProperty:ir}=Object.prototype;function Ps(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&e>=0}function Ju(e){return!!e&&Ps(e.offset)&&Ps(e.line)&&Ps(e.column)}function Kg(e,t){return function(r,i){if(!r||r.constructor!==Object)return i(r,"Type of node should be an Object");for(let s in r){let o=!0;if(ir.call(r,s)!==!1){if(s==="type")r.type!==e&&i(r,"Wrong node type `"+r.type+"`, expected `"+e+"`");else if(s==="loc"){if(r.loc===null)continue;if(r.loc&&r.loc.constructor===Object)if(typeof r.loc.source!="string")s+=".source";else if(!Ju(r.loc.start))s+=".start";else if(!Ju(r.loc.end))s+=".end";else continue;o=!1}else if(t.hasOwnProperty(s)){o=!1;for(let a=0;!o&&a<t[s].length;a++){const u=t[s][a];switch(u){case String:o=typeof r[s]=="string";break;case Boolean:o=typeof r[s]=="boolean";break;case null:o=r[s]===null;break;default:typeof u=="string"?o=r[s]&&r[s].type===u:Array.isArray(u)&&(o=r[s]instanceof $e)}}}else i(r,"Unknown field `"+s+"` for "+e+" node type");o||i(r,"Bad value for `"+e+"."+s+"`")}}for(const s in t)ir.call(t,s)&&ir.call(r,s)===!1&&i(r,"Field `"+e+"."+s+"` is missed")}}function el(e,t){const n=[];for(let r=0;r<e.length;r++){const i=e[r];if(i===String||i===Boolean)n.push(i.name.toLowerCase());else if(i===null)n.push("null");else if(typeof i=="string")n.push(i);else if(Array.isArray(i))n.push("List<"+(el(i,t)||"any")+">");else throw new Error("Wrong value `"+i+"` in `"+t+"` structure definition")}return n.join(" | ")}function Xg(e,t){const n=t.structure,r={type:String,loc:!0},i={type:'"'+e+'"'};for(const s in n){if(ir.call(n,s)===!1)continue;const o=r[s]=Array.isArray(n[s])?n[s].slice():[n[s]];i[s]=el(o,e+"."+s)}return{docs:i,check:Kg(e,r)}}function Qg(e){const t={};if(e.node){for(const n in e.node)if(ir.call(e.node,n)){const r=e.node[n];if(r.structure)t[n]=Xg(n,r);else throw new Error("Missed `structure` field in `"+n+"` node type definition")}}return t}function Ds(e,t,n){const r={};for(const i in e)e[i].syntax&&(r[i]=n?e[i].syntax:us(e[i].syntax,{compact:t}));return r}function Zg(e,t,n){const r={};for(const[i,s]of Object.entries(e))r[i]={prelude:s.prelude&&(n?s.prelude.syntax:us(s.prelude.syntax,{compact:t})),descriptors:s.descriptors&&Ds(s.descriptors,t,n)};return r}function Jg(e){for(let t=0;t<e.length;t++)if(e[t].value.toLowerCase()==="var(")return!0;return!1}function eb(e){const t=e.terms[0];return e.explicit===!1&&e.terms.length===1&&t.type==="Multiplier"&&t.comma===!0}function _t(e,t,n){return{matched:e,iterations:n,error:t,...Vg}}function Sn(e,t,n,r){const i=Pg(n,e.syntax);let s;return Jg(i)?_t(null,new Error("Matching for a tree with var() is not supported")):(r&&(s=Vu(i,e.cssWideKeywordsSyntax,e)),(!r||!s.match)&&(s=Vu(i,t.match,e),!s.match)?_t(null,new Dm(s.reason,t.syntax,n,s),s.iterations):_t(s.match,null,s.iterations))}class tl{constructor(t,n,r){if(this.cssWideKeywords=ds,this.syntax=n,this.generic=!1,this.units={...Cu},this.atrules=Object.create(null),this.properties=Object.create(null),this.types=Object.create(null),this.structure=r||Qg(t),t){if(t.cssWideKeywords&&(this.cssWideKeywords=t.cssWideKeywords),t.units)for(const i of Object.keys(Cu))Array.isArray(t.units[i])&&(this.units[i]=t.units[i]);if(t.types)for(const[i,s]of Object.entries(t.types))this.addType_(i,s);if(t.generic){this.generic=!0;for(const[i,s]of Object.entries(lg(this.units)))this.addType_(i,s)}if(t.atrules)for(const[i,s]of Object.entries(t.atrules))this.addAtrule_(i,s);if(t.properties)for(const[i,s]of Object.entries(t.properties))this.addProperty_(i,s)}this.cssWideKeywordsSyntax=Gr(this.cssWideKeywords.join(" | "))}checkStructure(t){function n(s,o){i.push({node:s,message:o})}const r=this.structure,i=[];return this.syntax.walk(t,function(s){r.hasOwnProperty(s.type)?r[s.type].check(s,n):n(s,"Unknown node type `"+s.type+"`")}),i.length?i:!1}createDescriptor(t,n,r,i=null){const s={type:n,name:r},o={type:n,name:r,parent:i,serializable:typeof t=="string"||t&&typeof t.type=="string",syntax:null,match:null,matchRef:null};return typeof t=="function"?o.match=Gr(t,s):(typeof t=="string"?Object.defineProperty(o,"syntax",{get(){return Object.defineProperty(o,"syntax",{value:Fu(t)}),o.syntax}}):o.syntax=t,Object.defineProperty(o,"match",{get(){return Object.defineProperty(o,"match",{value:Gr(o.syntax,s)}),o.match}}),n==="Property"&&Object.defineProperty(o,"matchRef",{get(){const a=o.syntax,u=eb(a)?Gr({...a,terms:[a.terms[0].term]},s):null;return Object.defineProperty(o,"matchRef",{value:u}),u}})),o}addAtrule_(t,n){n&&(this.atrules[t]={type:"Atrule",name:t,prelude:n.prelude?this.createDescriptor(n.prelude,"AtrulePrelude",t):null,descriptors:n.descriptors?Object.keys(n.descriptors).reduce((r,i)=>(r[i]=this.createDescriptor(n.descriptors[i],"AtruleDescriptor",i,t),r),Object.create(null)):null})}addProperty_(t,n){n&&(this.properties[t]=this.createDescriptor(n,"Property",t))}addType_(t,n){n&&(this.types[t]=this.createDescriptor(n,"Type",t))}checkAtruleName(t){if(!this.getAtrule(t))return new Qn("Unknown at-rule","@"+t)}checkAtrulePrelude(t,n){const r=this.checkAtruleName(t);if(r)return r;const i=this.getAtrule(t);if(!i.prelude&&n)return new SyntaxError("At-rule `@"+t+"` should not contain a prelude");if(i.prelude&&!n&&!Sn(this,i.prelude,"",!1).matched)return new SyntaxError("At-rule `@"+t+"` should contain a prelude")}checkAtruleDescriptorName(t,n){const r=this.checkAtruleName(t);if(r)return r;const i=this.getAtrule(t),s=ls(n);if(!i.descriptors)return new SyntaxError("At-rule `@"+t+"` has no known descriptors");if(!i.descriptors[s.name]&&!i.descriptors[s.basename])return new Qn("Unknown at-rule descriptor",n)}checkPropertyName(t){if(!this.getProperty(t))return new Qn("Unknown property",t)}matchAtrulePrelude(t,n){const r=this.checkAtrulePrelude(t,n);if(r)return _t(null,r);const i=this.getAtrule(t);return i.prelude?Sn(this,i.prelude,n||"",!1):_t(null,null)}matchAtruleDescriptor(t,n,r){const i=this.checkAtruleDescriptorName(t,n);if(i)return _t(null,i);const s=this.getAtrule(t),o=ls(n);return Sn(this,s.descriptors[o.name]||s.descriptors[o.basename],r,!1)}matchDeclaration(t){return t.type!=="Declaration"?_t(null,new Error("Not a Declaration node")):this.matchProperty(t.property,t.value)}matchProperty(t,n){if(gu(t).custom)return _t(null,new Error("Lexer matching doesn't applicable for custom properties"));const r=this.checkPropertyName(t);return r?_t(null,r):Sn(this,this.getProperty(t),n,!0)}matchType(t,n){const r=this.getType(t);return r?Sn(this,r,n,!1):_t(null,new Qn("Unknown type",t))}match(t,n){return typeof t!="string"&&(!t||!t.type)?_t(null,new Qn("Bad syntax")):((typeof t=="string"||!t.match)&&(t=this.createDescriptor(t,"Type","anonymous")),Sn(this,t,n,!1))}findValueFragments(t,n,r,i){return Zu(this,n,this.matchProperty(t,n),r,i)}findDeclarationValueFragments(t,n,r){return Zu(this,t.value,this.matchDeclaration(t),n,r)}findAllFragments(t,n,r){const i=[];return this.syntax.walk(t,{visit:"Declaration",enter:s=>{i.push.apply(i,this.findDeclarationValueFragments(s,n,r))}}),i}getAtrule(t,n=!0){const r=ls(t);return(r.vendor&&n?this.atrules[r.name]||this.atrules[r.basename]:this.atrules[r.name])||null}getAtrulePrelude(t,n=!0){const r=this.getAtrule(t,n);return r&&r.prelude||null}getAtruleDescriptor(t,n){return this.atrules.hasOwnProperty(t)&&this.atrules.declarators&&this.atrules[t].declarators[n]||null}getProperty(t,n=!0){const r=gu(t);return(r.vendor&&n?this.properties[r.name]||this.properties[r.basename]:this.properties[r.name])||null}getType(t){return hasOwnProperty.call(this.types,t)?this.types[t]:null}validate(){function t(u,c){return c?`<${u}>`:`<'${u}'>`}function n(u,c,d,h){if(d.has(c))return d.get(c);d.set(c,!1),h.syntax!==null&&Og(h.syntax,function(b){if(b.type!=="Type"&&b.type!=="Property")return;const f=b.type==="Type"?u.types:u.properties,m=b.type==="Type"?i:s;hasOwnProperty.call(f,b.name)?n(u,b.name,m,f[b.name])&&(r.push(`${t(c,d===i)} used broken syntax definition ${t(b.name,b.type==="Type")}`),d.set(c,!0)):(r.push(`${t(c,d===i)} used missed syntax definition ${t(b.name,b.type==="Type")}`),d.set(c,!0))},this)}const r=[];let i=new Map,s=new Map;for(const u in this.types)n(this,u,i,this.types[u]);for(const u in this.properties)n(this,u,s,this.properties[u]);const o=[...i.keys()].filter(u=>i.get(u)),a=[...s.keys()].filter(u=>s.get(u));return o.length||a.length?{errors:r,types:o,properties:a}:null}dump(t,n){return{generic:this.generic,cssWideKeywords:this.cssWideKeywords,units:this.units,types:Ds(this.types,!n,t),properties:Ds(this.properties,!n,t),atrules:Zg(this.atrules,!n,t)}}toString(){return JSON.stringify(this.dump())}}function Ms(e,t){return typeof t=="string"&&/^\s*\|/.test(t)?typeof e=="string"?e+t:t.replace(/^\s*\|\s*/,""):t||null}function tb(e,t){const n=Object.create(null);for(const r of Object.keys(e))t.includes(r)&&(n[r]=e[r]);return n}function Bs(e,t,n){const r={...e};for(const[i,s]of Object.entries(t))r[i]={...r[i],...n?tb(s,n):s};return r}function Fs(e,t){const n={...e};for(const[r,i]of Object.entries(t))switch(r){case"generic":n[r]=!!i;break;case"cssWideKeywords":n[r]=e[r]?[...e[r],...i]:i||[];break;case"units":n[r]={...e[r]};for(const[s,o]of Object.entries(i))n[r][s]=Array.isArray(o)?o:[];break;case"atrules":n[r]={...e[r]};for(const[s,o]of Object.entries(i)){const a=n[r][s]||{},u=n[r][s]={prelude:a.prelude||null,descriptors:{...a.descriptors}};if(o){u.prelude=o.prelude?Ms(u.prelude,o.prelude):u.prelude||null;for(const[c,d]of Object.entries(o.descriptors||{}))u.descriptors[c]=d?Ms(u.descriptors[c],d):null;Object.keys(u.descriptors).length||(u.descriptors=null)}}break;case"types":case"properties":n[r]={...e[r]};for(const[s,o]of Object.entries(i))n[r][s]=Ms(n[r][s],o);break;case"parseContext":n[r]={...e[r],...i};break;case"scope":case"features":n[r]=Bs(e[r],i);break;case"atrule":case"pseudo":n[r]=Bs(e[r],i,["parse"]);break;case"node":n[r]=Bs(e[r],i,["name","structure","parse","generate","walkContext"]);break}return n}function nl(e){const t=cm(e),n=Im(e),r=Sm(e),{fromPlainObject:i,toPlainObject:s}=Cm(n),o={lexer:null,createLexer:a=>new tl(a,o,o.lexer.structure),tokenize:Lr,parse:t,generate:r,walk:n,find:n.find,findLast:n.findLast,findAll:n.findAll,fromPlainObject:i,toPlainObject:s,fork(a){const u=Fs({},e);return nl(typeof a=="function"?a(u):Fs(u,a))}};return o.lexer=new tl({generic:e.generic,cssWideKeywords:e.cssWideKeywords,units:e.units,types:e.types,atrules:e.atrules,properties:e.properties,node:e.node},o),o}const nb=e=>nl(Fs({},e)),rb={generic:!0,cssWideKeywords:["initial","inherit","unset","revert","revert-layer"],units:{angle:["deg","grad","rad","turn"],decibel:["db"],flex:["fr"],frequency:["hz","khz"],length:["cm","mm","q","in","pt","pc","px","em","rem","ex","rex","cap","rcap","ch","rch","ic","ric","lh","rlh","vw","svw","lvw","dvw","vh","svh","lvh","dvh","vi","svi","lvi","dvi","vb","svb","lvb","dvb","vmin","svmin","lvmin","dvmin","vmax","svmax","lvmax","dvmax","cqw","cqh","cqi","cqb","cqmin","cqmax"],resolution:["dpi","dpcm","dppx","x"],semitones:["st"],time:["s","ms"]},types:{"abs()":"abs( <calc-sum> )","absolute-size":"xx-small|x-small|small|medium|large|x-large|xx-large|xxx-large","acos()":"acos( <calc-sum> )","alpha-value":"<number>|<percentage>","an+b":"odd|even|<integer>|<n-dimension>|'+'? † n|-n|<ndashdigit-dimension>|'+'? † <ndashdigit-ident>|<dashndashdigit-ident>|<n-dimension> <signed-integer>|'+'? † n <signed-integer>|-n <signed-integer>|<ndash-dimension> <signless-integer>|'+'? † n- <signless-integer>|-n- <signless-integer>|<n-dimension> ['+'|'-'] <signless-integer>|'+'? † n ['+'|'-'] <signless-integer>|-n ['+'|'-'] <signless-integer>","anchor()":"anchor( <anchor-name>?&&<anchor-side> , <length-percentage>? )","anchor-name":"<dashed-ident>","anchor-side":"inside|outside|top|left|right|bottom|start|end|self-start|self-end|<percentage>|center","anchor-size":"width|height|block|inline|self-block|self-inline","anchor-size()":"anchor-size( [<anchor-name>||<anchor-size>]? , <length-percentage>? )","angle-percentage":"<angle>|<percentage>","angular-color-hint":"<angle-percentage>|<zero>","angular-color-stop":"<color> <color-stop-angle>?","angular-color-stop-list":"<angular-color-stop> , [<angular-color-hint>? , <angular-color-stop>]#?","animateable-feature":"scroll-position|contents|<custom-ident>","animation-action":"none|play|play-once|play-forwards|play-backwards|pause|reset|replay","asin()":"asin( <calc-sum> )","atan()":"atan( <calc-sum> )","atan2()":"atan2( <calc-sum> , <calc-sum> )",attachment:"scroll|fixed|local","attr()":"attr( <attr-name> <attr-type>? , <declaration-value>? )","attr-matcher":"['~'|'|'|'^'|'$'|'*']? '='","attr-modifier":"i|s","attr-type":"type( <syntax> )|raw-string|number|<attr-unit>","attribute-selector":"'[' <wq-name> ']'|'[' <wq-name> <attr-matcher> [<string-token>|<ident-token>] <attr-modifier>? ']'","auto-repeat":"repeat( [auto-fill|auto-fit] , [<line-names>? <fixed-size>]+ <line-names>? )","auto-track-list":"[<line-names>? [<fixed-size>|<fixed-repeat>]]* <line-names>? <auto-repeat> [<line-names>? [<fixed-size>|<fixed-repeat>]]* <line-names>?",axis:"block|inline|x|y","baseline-position":"[first|last]? baseline","basic-shape":"<inset()>|<xywh()>|<rect()>|<circle()>|<ellipse()>|<polygon()>|<path()>","basic-shape-rect":"<inset()>|<rect()>|<xywh()>","bg-clip":"<visual-box>|border-area|text","bg-image":"<image>|none","bg-layer":"<bg-image>||<bg-position> [/ <bg-size>]?||<repeat-style>||<attachment>||<visual-box>||<visual-box>","bg-position":"[[left|center|right|top|bottom|<length-percentage>]|[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]|[center|[left|right] <length-percentage>?]&&[center|[top|bottom] <length-percentage>?]]","bg-size":"[<length-percentage [0,∞]>|auto]{1,2}|cover|contain","blend-mode":"normal|multiply|screen|overlay|darken|lighten|color-dodge|color-burn|hard-light|soft-light|difference|exclusion|hue|saturation|color|luminosity","blur()":"blur( <length>? )","brightness()":"brightness( [<number>|<percentage>]? )","calc()":"calc( <calc-sum> )","calc-constant":"e|pi|infinity|-infinity|NaN","calc-product":"<calc-value> ['*' <calc-value>|'/' <number>]*","calc-size()":"calc-size( <calc-size-basis> , <calc-sum> )","calc-size-basis":"<intrinsic-size-keyword>|<calc-size()>|any|<calc-sum>","calc-sum":"<calc-product> [['+'|'-'] <calc-product>]*","calc-value":"<number>|<dimension>|<percentage>|<calc-constant>|( <calc-sum> )","cf-final-image":"<image>|<color>","cf-mixing-image":"<percentage>?&&<image>","circle()":"circle( <radial-size>? [at <position>]? )","clamp()":"clamp( <calc-sum>#{3} )","class-selector":"'.' <ident-token>","clip-source":"<url>",color:"<color-base>|currentColor|<system-color>|<device-cmyk()>|<light-dark()>|<-non-standard-color>","color()":"color( <colorspace-params> [/ [<alpha-value>|none]]? )","color-base":"<hex-color>|<color-function>|<named-color>|<color-mix()>|transparent","color-function":"<rgb()>|<rgba()>|<hsl()>|<hsla()>|<hwb()>|<lab()>|<lch()>|<oklab()>|<oklch()>|<color()>","color-interpolation-method":"in [<rectangular-color-space>|<polar-color-space> <hue-interpolation-method>?|<custom-color-space>]","color-mix()":"color-mix( <color-interpolation-method> , [<color>&&<percentage [0,100]>?]#{2} )","color-stop":"<color-stop-length>|<color-stop-angle>","color-stop-angle":"[<angle-percentage>|<zero>]{1,2}","color-stop-length":"<length-percentage>{1,2}","color-stop-list":"<linear-color-stop> , [<linear-color-hint>? , <linear-color-stop>]#?","colorspace-params":"[<predefined-rgb-params>|<xyz-params>]",combinator:"'>'|'+'|'~'|['|' '|']","common-lig-values":"[common-ligatures|no-common-ligatures]","compat-auto":"searchfield|textarea|checkbox|radio|menulist|listbox|meter|progress-bar|button","compat-special":"textfield|menulist-button","complex-selector":"<complex-selector-unit> [<combinator>? <complex-selector-unit>]*","complex-selector-list":"<complex-selector>#","composite-style":"clear|copy|source-over|source-in|source-out|source-atop|destination-over|destination-in|destination-out|destination-atop|xor","compositing-operator":"add|subtract|intersect|exclude","compound-selector":"[<type-selector>? <subclass-selector>*]!","compound-selector-list":"<compound-selector>#","conic-gradient()":"conic-gradient( [<conic-gradient-syntax>] )","conic-gradient-syntax":"[[[from [<angle>|<zero>]]? [at <position>]?]||<color-interpolation-method>]? , <angular-color-stop-list>","container-condition":"not <query-in-parens>|<query-in-parens> [[and <query-in-parens>]*|[or <query-in-parens>]*]","container-name":"<custom-ident>","container-query":"not <query-in-parens>|<query-in-parens> [[and <query-in-parens>]*|[or <query-in-parens>]*]","content-distribution":"space-between|space-around|space-evenly|stretch","content-list":"[<string>|contents|<image>|<counter>|<quote>|<target>|<leader()>|<attr()>]+","content-position":"center|start|end|flex-start|flex-end","content-replacement":"<image>","contextual-alt-values":"[contextual|no-contextual]","contrast()":"contrast( [<number>|<percentage>]? )","coord-box":"content-box|padding-box|border-box|fill-box|stroke-box|view-box","corner-shape-value":"round|scoop|bevel|notch|square|squircle|<superellipse()>","cos()":"cos( <calc-sum> )",counter:"<counter()>|<counters()>","counter()":"counter( <counter-name> , <counter-style>? )","counter-name":"<custom-ident>","counter-style":"<counter-style-name>|symbols( )","counter-style-name":"<custom-ident>","counters()":"counters( <counter-name> , <string> , <counter-style>? )","cross-fade()":"cross-fade( <cf-mixing-image> , <cf-final-image>? )","cubic-bezier()":"cubic-bezier( [<number [0,1]> , <number>]#{2} )","cubic-bezier-easing-function":"ease|ease-in|ease-out|ease-in-out|cubic-bezier( <number [0,1]> , <number> , <number [0,1]> , <number> )","cursor-predefined":"auto|default|none|context-menu|help|pointer|progress|wait|cell|crosshair|text|vertical-text|alias|copy|move|no-drop|not-allowed|e-resize|n-resize|ne-resize|nw-resize|s-resize|se-resize|sw-resize|w-resize|ew-resize|ns-resize|nesw-resize|nwse-resize|col-resize|row-resize|all-scroll|zoom-in|zoom-out|grab|grabbing","custom-color-space":"<dashed-ident>","custom-params":"<dashed-ident> [<number>|<percentage>|none]+",dasharray:"[[<length-percentage>|<number>]+]#","dashndashdigit-ident":"<ident-token>","deprecated-system-color":"ActiveBorder|ActiveCaption|AppWorkspace|Background|ButtonHighlight|ButtonShadow|CaptionText|InactiveBorder|InactiveCaption|InactiveCaptionText|InfoBackground|InfoText|Menu|MenuText|Scrollbar|ThreeDDarkShadow|ThreeDFace|ThreeDHighlight|ThreeDLightShadow|ThreeDShadow|Window|WindowFrame|WindowText","discretionary-lig-values":"[discretionary-ligatures|no-discretionary-ligatures]","display-box":"contents|none","display-inside":"flow|flow-root|table|flex|grid|ruby","display-internal":"table-row-group|table-header-group|table-footer-group|table-row|table-cell|table-column-group|table-column|table-caption|ruby-base|ruby-text|ruby-base-container|ruby-text-container","display-legacy":"inline-block|inline-list-item|inline-table|inline-flex|inline-grid","display-listitem":"<display-outside>?&&[flow|flow-root]?&&list-item","display-outside":"block|inline|run-in","drop-shadow()":"drop-shadow( [<color>?&&<length>{2,3}] )","dynamic-range-limit-mix()":"dynamic-range-limit-mix( [<'dynamic-range-limit'>&&<percentage [0,100]>]#{2,} )","easing-function":"<linear-easing-function>|<cubic-bezier-easing-function>|<step-easing-function>","east-asian-variant-values":"[jis78|jis83|jis90|jis04|simplified|traditional]","east-asian-width-values":"[full-width|proportional-width]","element()":"element( <custom-ident> , [first|start|last|first-except]? )|element( <id-selector> )","ellipse()":"ellipse( <radial-size>? [at <position>]? )","env()":"env( <custom-ident> , <declaration-value>? )","exp()":"exp( <calc-sum> )","explicit-track-list":"[<line-names>? <track-size>]+ <line-names>?","family-name":"<string>|<custom-ident>+","feature-tag-value":"<string> [<integer>|on|off]?","feature-type":"@stylistic|@historical-forms|@styleset|@character-variant|@swash|@ornaments|@annotation","feature-value-block":"<feature-type> '{' <feature-value-declaration-list> '}'","feature-value-block-list":"<feature-value-block>+","feature-value-declaration":"<custom-ident> : <integer>+ ;","feature-value-declaration-list":"<feature-value-declaration>","feature-value-name":"<custom-ident>","filter-function":"<blur()>|<brightness()>|<contrast()>|<drop-shadow()>|<grayscale()>|<hue-rotate()>|<invert()>|<opacity()>|<saturate()>|<sepia()>","filter-value-list":"[<filter-function>|<url>]+","final-bg-layer":"<bg-image>||<bg-position> [/ <bg-size>]?||<repeat-style>||<attachment>||<visual-box>||<visual-box>||<'background-color'>","fit-content()":"fit-content( <length-percentage [0,∞]> )","fixed-breadth":"<length-percentage>","fixed-repeat":"repeat( [<integer [1,∞]>] , [<line-names>? <fixed-size>]+ <line-names>? )","fixed-size":"<fixed-breadth>|minmax( <fixed-breadth> , <track-breadth> )|minmax( <inflexible-breadth> , <fixed-breadth> )","font-stretch-absolute":"normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded|<percentage>","font-variant-css2":"normal|small-caps","font-weight-absolute":"normal|bold|<number [1,1000]>","font-width-css3":"normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded","form-control-identifier":"select","frequency-percentage":"<frequency>|<percentage>","generic-complete":"serif|sans-serif|system-ui|cursive|fantasy|math|monospace","general-enclosed":"[<function-token> <any-value>? )]|[( <any-value>? )]","generic-family":"<generic-script-specific>|<generic-complete>|<generic-incomplete>|<-non-standard-generic-family>","generic-incomplete":"ui-serif|ui-sans-serif|ui-monospace|ui-rounded","geometry-box":"<shape-box>|fill-box|stroke-box|view-box",gradient:"<linear-gradient()>|<repeating-linear-gradient()>|<radial-gradient()>|<repeating-radial-gradient()>|<conic-gradient()>|<repeating-conic-gradient()>|<-legacy-gradient>","grayscale()":"grayscale( [<number>|<percentage>]? )","grid-line":"auto|<custom-ident>|[<integer>&&<custom-ident>?]|[span&&[<integer>||<custom-ident>]]","historical-lig-values":"[historical-ligatures|no-historical-ligatures]","hsl()":"hsl( <hue> , <percentage> , <percentage> , <alpha-value>? )|hsl( [<hue>|none] [<percentage>|<number>|none] [<percentage>|<number>|none] [/ [<alpha-value>|none]]? )","hsla()":"hsla( <hue> , <percentage> , <percentage> , <alpha-value>? )|hsla( [<hue>|none] [<percentage>|<number>|none] [<percentage>|<number>|none] [/ [<alpha-value>|none]]? )",hue:"<number>|<angle>","hue-interpolation-method":"[shorter|longer|increasing|decreasing] hue","hue-rotate()":"hue-rotate( [<angle>|<zero>]? )","hwb()":"hwb( [<hue>|none] [<percentage>|<number>|none] [<percentage>|<number>|none] [/ [<alpha-value>|none]]? )","hypot()":"hypot( <calc-sum># )",image:"<url>|<image()>|<image-set()>|<element()>|<paint()>|<cross-fade()>|<gradient>","image()":"image( <image-tags>? [<image-src>? , <color>?]! )","image-set()":"image-set( <image-set-option># )","image-set-option":"[<image>|<string>] [<resolution>||type( <string> )]","image-src":"<url>|<string>","image-tags":"ltr|rtl","inflexible-breadth":"<length-percentage>|min-content|max-content|auto","inset()":"inset( <length-percentage>{1,4} [round <'border-radius'>]? )","invert()":"invert( [<number>|<percentage>]? )","keyframe-block":"<keyframe-selector># { <declaration-list> }","keyframe-selector":"from|to|<percentage [0,100]>|<timeline-range-name> <percentage>","keyframes-name":"<custom-ident>|<string>","lab()":"lab( [<percentage>|<number>|none] [<percentage>|<number>|none] [<percentage>|<number>|none] [/ [<alpha-value>|none]]? )","layer()":"layer( <layer-name> )","layer-name":"<ident> ['.' <ident>]*","lch()":"lch( [<percentage>|<number>|none] [<percentage>|<number>|none] [<hue>|none] [/ [<alpha-value>|none]]? )","leader()":"leader( <leader-type> )","leader-type":"dotted|solid|space|<string>","length-percentage":"<length>|<percentage>","light-dark()":"light-dark( <color> , <color> )","line-name-list":"[<line-names>|<name-repeat>]+","line-names":"'[' <custom-ident>* ']'","line-style":"none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset","line-width":"<length>|thin|medium|thick","linear()":"linear( [<number>&&<percentage>{0,2}]# )","linear-color-hint":"<length-percentage>","linear-color-stop":"<color> <color-stop-length>?","linear-easing-function":"linear|<linear()>","linear-gradient()":"linear-gradient( [<linear-gradient-syntax>] )","linear-gradient-syntax":"[[<angle>|<zero>|to <side-or-corner>]||<color-interpolation-method>]? , <color-stop-list>","log()":"log( <calc-sum> , <calc-sum>? )","mask-layer":"<mask-reference>||<position> [/ <bg-size>]?||<repeat-style>||<geometry-box>||[<geometry-box>|no-clip]||<compositing-operator>||<masking-mode>","mask-position":"[<length-percentage>|left|center|right] [<length-percentage>|top|center|bottom]?","mask-reference":"none|<image>|<mask-source>","mask-source":"<url>","masking-mode":"alpha|luminance|match-source","matrix()":"matrix( <number>#{6} )","matrix3d()":"matrix3d( <number>#{16} )","max()":"max( <calc-sum># )","media-and":"<media-in-parens> [and <media-in-parens>]+","media-condition":"<media-not>|<media-and>|<media-or>|<media-in-parens>","media-condition-without-or":"<media-not>|<media-and>|<media-in-parens>","media-feature":"( [<mf-plain>|<mf-boolean>|<mf-range>] )","media-in-parens":"( <media-condition> )|<media-feature>|<general-enclosed>","media-not":"not <media-in-parens>","media-or":"<media-in-parens> [or <media-in-parens>]+","media-query":"<media-condition>|[not|only]? <media-type> [and <media-condition-without-or>]?","media-query-list":"<media-query>#","media-type":"<ident>","mf-boolean":"<mf-name>","mf-name":"<ident>","mf-plain":"<mf-name> : <mf-value>","mf-range":"<mf-name> ['<'|'>']? '='? <mf-value>|<mf-value> ['<'|'>']? '='? <mf-name>|<mf-value> '<' '='? <mf-name> '<' '='? <mf-value>|<mf-value> '>' '='? <mf-name> '>' '='? <mf-value>","mf-value":"<number>|<dimension>|<ident>|<ratio>","min()":"min( <calc-sum># )","minmax()":"minmax( [<length-percentage>|min-content|max-content|auto] , [<length-percentage>|<flex>|min-content|max-content|auto] )","mod()":"mod( <calc-sum> , <calc-sum> )","n-dimension":"<dimension-token>","name-repeat":"repeat( [<integer [1,∞]>|auto-fill] , <line-names>+ )","named-color":"aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen","namespace-prefix":"<ident>","ndash-dimension":"<dimension-token>","ndashdigit-dimension":"<dimension-token>","ndashdigit-ident":"<ident-token>","ns-prefix":"[<ident-token>|'*']? '|'","number-percentage":"<number>|<percentage>","numeric-figure-values":"[lining-nums|oldstyle-nums]","numeric-fraction-values":"[diagonal-fractions|stacked-fractions]","numeric-spacing-values":"[proportional-nums|tabular-nums]","offset-path":"<ray()>|<url>|<basic-shape>","oklab()":"oklab( [<percentage>|<number>|none] [<percentage>|<number>|none] [<percentage>|<number>|none] [/ [<alpha-value>|none]]? )","oklch()":"oklch( [<percentage>|<number>|none] [<percentage>|<number>|none] [<hue>|none] [/ [<alpha-value>|none]]? )","opacity()":"opacity( [<number>|<percentage>]? )","opacity-value":"<number>|<percentage>","outline-line-style":"none|dotted|dashed|solid|double|groove|ridge|inset|outset","outline-radius":"<length>|<percentage>","overflow-position":"unsafe|safe","page-body":"<declaration>? [; <page-body>]?|<page-margin-box> <page-body>","page-margin-box":"<page-margin-box-type> '{' <declaration-list> '}'","page-margin-box-type":"@top-left-corner|@top-left|@top-center|@top-right|@top-right-corner|@bottom-left-corner|@bottom-left|@bottom-center|@bottom-right|@bottom-right-corner|@left-top|@left-middle|@left-bottom|@right-top|@right-middle|@right-bottom","page-selector":"<pseudo-page>+|<ident> <pseudo-page>*","page-selector-list":"[<page-selector>#]?","page-size":"A5|A4|A3|B5|B4|JIS-B5|JIS-B4|letter|legal|ledger",paint:"none|<color>|<url> [none|<color>]?|context-fill|context-stroke","paint()":"paint( <ident> , <declaration-value>? )","paint-box":"<visual-box>|fill-box|stroke-box","palette-identifier":"<dashed-ident>","palette-mix()":"palette-mix( <color-interpolation-method> , [[normal|light|dark|<palette-identifier>|<palette-mix()>]&&<percentage [0,100]>?]#{2} )","path()":"path( <'fill-rule'>? , <string> )","perspective()":"perspective( [<length [0,∞]>|none] )","polar-color-space":"hsl|hwb|lch|oklch","polygon()":"polygon( <'fill-rule'>? , [<length-percentage> <length-percentage>]# )",position:"[[left|center|right]||[top|center|bottom]|[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]?|[[left|right] <length-percentage>]&&[[top|bottom] <length-percentage>]]","position-area":"[[left|center|right|span-left|span-right|x-start|x-end|span-x-start|span-x-end|x-self-start|x-self-end|span-x-self-start|span-x-self-end|span-all]||[top|center|bottom|span-top|span-bottom|y-start|y-end|span-y-start|span-y-end|y-self-start|y-self-end|span-y-self-start|span-y-self-end|span-all]|[block-start|center|block-end|span-block-start|span-block-end|span-all]||[inline-start|center|inline-end|span-inline-start|span-inline-end|span-all]|[self-block-start|center|self-block-end|span-self-block-start|span-self-block-end|span-all]||[self-inline-start|center|self-inline-end|span-self-inline-start|span-self-inline-end|span-all]|[start|center|end|span-start|span-end|span-all]{1,2}|[self-start|center|self-end|span-self-start|span-self-end|span-all]{1,2}]","pow()":"pow( <calc-sum> , <calc-sum> )","predefined-rgb":"srgb|srgb-linear|display-p3|display-p3-linear|a98-rgb|prophoto-rgb|rec2020","predefined-rgb-params":"<predefined-rgb> [<number>|<percentage>|none]{3}","pseudo-class-selector":"':' <ident-token>|':' <function-token> <any-value> ')'","pseudo-element-selector":"':' <pseudo-class-selector>|<legacy-pseudo-element-selector>","pseudo-page":": [left|right|first|blank]","query-in-parens":"( <container-condition> )|( <size-feature> )|style( <style-query> )|<general-enclosed>",quote:"open-quote|close-quote|no-open-quote|no-close-quote","radial-extent":"closest-corner|closest-side|farthest-corner|farthest-side","radial-gradient()":"radial-gradient( [<radial-gradient-syntax>] )","radial-gradient-syntax":"[[[<radial-shape>||<radial-size>]? [at <position>]?]||<color-interpolation-method>]? , <color-stop-list>","radial-shape":"circle|ellipse","radial-size":"<radial-extent>|<length [0,∞]>|<length-percentage [0,∞]>{2}",ratio:"<number [0,∞]> [/ <number [0,∞]>]?","ray()":"ray( <angle>&&<ray-size>?&&contain?&&[at <position>]? )","ray-size":"closest-side|closest-corner|farthest-side|farthest-corner|sides","rect()":"rect( [<length-percentage>|auto]{4} [round <'border-radius'>]? )","rectangular-color-space":"srgb|srgb-linear|display-p3|display-p3-linear|a98-rgb|prophoto-rgb|rec2020|lab|oklab|xyz|xyz-d50|xyz-d65","relative-selector":"<combinator>? <complex-selector>","relative-selector-list":"<relative-selector>#","relative-size":"larger|smaller","rem()":"rem( <calc-sum> , <calc-sum> )","repeat-style":"repeat-x|repeat-y|[repeat|space|round|no-repeat]{1,2}","repeating-conic-gradient()":"repeating-conic-gradient( [<conic-gradient-syntax>] )","repeating-linear-gradient()":"repeating-linear-gradient( [<linear-gradient-syntax>] )","repeating-radial-gradient()":"repeating-radial-gradient( [<radial-gradient-syntax>] )","reversed-counter-name":"reversed( <counter-name> )","rgb()":"rgb( <percentage>#{3} , <alpha-value>? )|rgb( <number>#{3} , <alpha-value>? )|rgb( [<number>|<percentage>|none]{3} [/ [<alpha-value>|none]]? )","rgba()":"rgba( <percentage>#{3} , <alpha-value>? )|rgba( <number>#{3} , <alpha-value>? )|rgba( [<number>|<percentage>|none]{3} [/ [<alpha-value>|none]]? )","rotate()":"rotate( [<angle>|<zero>] )","rotate3d()":"rotate3d( <number> , <number> , <number> , [<angle>|<zero>] )","rotateX()":"rotateX( [<angle>|<zero>] )","rotateY()":"rotateY( [<angle>|<zero>] )","rotateZ()":"rotateZ( [<angle>|<zero>] )","round()":"round( <rounding-strategy>? , <calc-sum> , <calc-sum> )","rounding-strategy":"nearest|up|down|to-zero","saturate()":"saturate( [<number>|<percentage>]? )","scale()":"scale( [<number>|<percentage>]#{1,2} )","scale3d()":"scale3d( [<number>|<percentage>]#{3} )","scaleX()":"scaleX( [<number>|<percentage>] )","scaleY()":"scaleY( [<number>|<percentage>] )","scaleZ()":"scaleZ( [<number>|<percentage>] )","scope-end":"<forgiving-selector-list>","scope-start":"<forgiving-selector-list>","scroll()":"scroll( [<scroller>||<axis>]? )",scroller:"root|nearest|self","scroll-state-feature":"<media-query-list>","scroll-state-in-parens":"( <scroll-state-query> )|( <scroll-state-feature> )|<general-enclosed>","scroll-state-query":"not <scroll-state-in-parens>|<scroll-state-in-parens> [[and <scroll-state-in-parens>]*|[or <scroll-state-in-parens>]*]|<scroll-state-feature>","selector-list":"<complex-selector-list>","self-position":"center|start|end|self-start|self-end|flex-start|flex-end","sepia()":"sepia( [<number>|<percentage>]? )",shadow:"inset?&&<length>{2,4}&&<color>?","shadow-t":"[<length>{2,3}&&<color>?]",shape:"rect( <top> , <right> , <bottom> , <left> )|rect( <top> <right> <bottom> <left> )","shape-box":"<visual-box>|margin-box","side-or-corner":"[left|right]||[top|bottom]","sign()":"sign( <calc-sum> )","signed-integer":"<number-token>","signless-integer":"<number-token>","sin()":"sin( <calc-sum> )","single-animation":"<'animation-duration'>||<easing-function>||<'animation-delay'>||<single-animation-iteration-count>||<single-animation-direction>||<single-animation-fill-mode>||<single-animation-play-state>||[none|<keyframes-name>]||<single-animation-timeline>","single-animation-composition":"replace|add|accumulate","single-animation-direction":"normal|reverse|alternate|alternate-reverse","single-animation-fill-mode":"none|forwards|backwards|both","single-animation-iteration-count":"infinite|<number>","single-animation-play-state":"running|paused","single-animation-timeline":"auto|none|<dashed-ident>|<scroll()>|<view()>","single-transition":"[none|<single-transition-property>]||<time>||<easing-function>||<time>||<transition-behavior-value>","single-transition-property":"all|<custom-ident>",size:"closest-side|farthest-side|closest-corner|farthest-corner|<length>|<length-percentage>{2}","size-feature":"<mf-plain>|<mf-boolean>|<mf-range>","skew()":"skew( [<angle>|<zero>] , [<angle>|<zero>]? )","skewX()":"skewX( [<angle>|<zero>] )","skewY()":"skewY( [<angle>|<zero>] )","sqrt()":"sqrt( <calc-sum> )","step-position":"jump-start|jump-end|jump-none|jump-both|start|end","step-easing-function":"step-start|step-end|<steps()>","steps()":"steps( <integer> , <step-position>? )","style-feature":"<declaration>","style-in-parens":"( <style-condition> )|( <style-feature> )|<general-enclosed>","style-query":"<style-condition>|<style-feature>","subclass-selector":"<id-selector>|<class-selector>|<attribute-selector>|<pseudo-class-selector>","superellipse()":"superellipse( [<number>|infinity|-infinity] )","supports-condition":"not <supports-in-parens>|<supports-in-parens> [and <supports-in-parens>]*|<supports-in-parens> [or <supports-in-parens>]*","supports-decl":"( <declaration> )","supports-feature":"<supports-decl>|<supports-selector-fn>","supports-in-parens":"( <supports-condition> )|<supports-feature>|<general-enclosed>","supports-selector-fn":"selector( <complex-selector> )",symbol:"<string>|<image>|<custom-ident>","symbols()":"symbols( <symbols-type>? [<string>|<image>]+ )","symbols-type":"cyclic|numeric|alphabetic|symbolic|fixed","system-color":"AccentColor|AccentColorText|ActiveText|ButtonBorder|ButtonFace|ButtonText|Canvas|CanvasText|Field|FieldText|GrayText|Highlight|HighlightText|LinkText|Mark|MarkText|SelectedItem|SelectedItemText|VisitedText","system-family-name":"caption|icon|menu|message-box|small-caption|status-bar","tan()":"tan( <calc-sum> )",target:"<target-counter()>|<target-counters()>|<target-text()>","target-counter()":"target-counter( [<string>|<url>] , <custom-ident> , <counter-style>? )","target-counters()":"target-counters( [<string>|<url>] , <custom-ident> , <string> , <counter-style>? )","target-text()":"target-text( [<string>|<url>] , [content|before|after|first-letter]? )","text-edge":"[text|cap|ex|ideographic|ideographic-ink] [text|alphabetic|ideographic|ideographic-ink]?","time-percentage":"<time>|<percentage>","timeline-range-name":"cover|contain|entry|exit|entry-crossing|exit-crossing","track-breadth":"<length-percentage>|<flex>|min-content|max-content|auto","track-list":"[<line-names>? [<track-size>|<track-repeat>]]+ <line-names>?","track-repeat":"repeat( [<integer [1,∞]>] , [<line-names>? <track-size>]+ <line-names>? )","track-size":"<track-breadth>|minmax( <inflexible-breadth> , <track-breadth> )|fit-content( <length-percentage> )","transform-function":"<matrix()>|<translate()>|<translateX()>|<translateY()>|<scale()>|<scaleX()>|<scaleY()>|<rotate()>|<skew()>|<skewX()>|<skewY()>|<matrix3d()>|<translate3d()>|<translateZ()>|<scale3d()>|<scaleZ()>|<rotate3d()>|<rotateX()>|<rotateY()>|<rotateZ()>|<perspective()>","transform-list":"<transform-function>+","transition-behavior-value":"normal|allow-discrete","translate()":"translate( <length-percentage> , <length-percentage>? )","translate3d()":"translate3d( <length-percentage> , <length-percentage> , <length> )","translateX()":"translateX( <length-percentage> )","translateY()":"translateY( <length-percentage> )","translateZ()":"translateZ( <length> )","try-size":"most-width|most-height|most-block-size|most-inline-size","try-tactic":"flip-block||flip-inline||flip-start","type-or-unit":"string|color|url|integer|number|length|angle|time|frequency|cap|ch|em|ex|ic|lh|rlh|rem|vb|vi|vw|vh|vmin|vmax|mm|Q|cm|in|pt|pc|px|deg|grad|rad|turn|ms|s|Hz|kHz|%","type-selector":"<wq-name>|<ns-prefix>? '*'","var()":"var( <custom-property-name> , <declaration-value>? )","view()":"view( [<axis>||<'view-timeline-inset'>]? )","viewport-length":"auto|<length-percentage>","visual-box":"content-box|padding-box|border-box","wq-name":"<ns-prefix>? <ident-token>","xywh()":"xywh( <length-percentage>{2} <length-percentage [0,∞]>{2} [round <'border-radius'>]? )",xyz:"xyz|xyz-d50|xyz-d65","xyz-params":"<xyz-space> [<number>|<percentage>|none]{3}","-legacy-gradient":"<-webkit-gradient()>|<-legacy-linear-gradient>|<-legacy-repeating-linear-gradient>|<-legacy-radial-gradient>|<-legacy-repeating-radial-gradient>","-legacy-linear-gradient":"-moz-linear-gradient( <-legacy-linear-gradient-arguments> )|-webkit-linear-gradient( <-legacy-linear-gradient-arguments> )|-o-linear-gradient( <-legacy-linear-gradient-arguments> )","-legacy-repeating-linear-gradient":"-moz-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )|-webkit-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )|-o-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )","-legacy-linear-gradient-arguments":"[<angle>|<side-or-corner>]? , <color-stop-list>","-legacy-radial-gradient":"-moz-radial-gradient( <-legacy-radial-gradient-arguments> )|-webkit-radial-gradient( <-legacy-radial-gradient-arguments> )|-o-radial-gradient( <-legacy-radial-gradient-arguments> )","-legacy-repeating-radial-gradient":"-moz-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )|-webkit-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )|-o-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )","-legacy-radial-gradient-arguments":"[<position> ,]? [[[<-legacy-radial-gradient-shape>||<-legacy-radial-gradient-size>]|[<length>|<percentage>]{2}] ,]? <color-stop-list>","-legacy-radial-gradient-size":"closest-side|closest-corner|farthest-side|farthest-corner|contain|cover","-legacy-radial-gradient-shape":"circle|ellipse","-non-standard-font":"-apple-system-body|-apple-system-headline|-apple-system-subheadline|-apple-system-caption1|-apple-system-caption2|-apple-system-footnote|-apple-system-short-body|-apple-system-short-headline|-apple-system-short-subheadline|-apple-system-short-caption1|-apple-system-short-footnote|-apple-system-tall-body","-non-standard-color":"-moz-ButtonDefault|-moz-ButtonHoverFace|-moz-ButtonHoverText|-moz-CellHighlight|-moz-CellHighlightText|-moz-Combobox|-moz-ComboboxText|-moz-Dialog|-moz-DialogText|-moz-dragtargetzone|-moz-EvenTreeRow|-moz-Field|-moz-FieldText|-moz-html-CellHighlight|-moz-html-CellHighlightText|-moz-mac-accentdarkestshadow|-moz-mac-accentdarkshadow|-moz-mac-accentface|-moz-mac-accentlightesthighlight|-moz-mac-accentlightshadow|-moz-mac-accentregularhighlight|-moz-mac-accentregularshadow|-moz-mac-chrome-active|-moz-mac-chrome-inactive|-moz-mac-focusring|-moz-mac-menuselect|-moz-mac-menushadow|-moz-mac-menutextselect|-moz-MenuHover|-moz-MenuHoverText|-moz-MenuBarText|-moz-MenuBarHoverText|-moz-nativehyperlinktext|-moz-OddTreeRow|-moz-win-communicationstext|-moz-win-mediatext|-moz-activehyperlinktext|-moz-default-background-color|-moz-default-color|-moz-hyperlinktext|-moz-visitedhyperlinktext|-webkit-activelink|-webkit-focus-ring-color|-webkit-link|-webkit-text","-non-standard-image-rendering":"optimize-contrast|-moz-crisp-edges|-o-crisp-edges|-webkit-optimize-contrast","-non-standard-overflow":"overlay|-moz-scrollbars-none|-moz-scrollbars-horizontal|-moz-scrollbars-vertical|-moz-hidden-unscrollable","-non-standard-size":"intrinsic|min-intrinsic|-webkit-fill-available|-webkit-fit-content|-webkit-min-content|-webkit-max-content|-moz-available|-moz-fit-content|-moz-min-content|-moz-max-content","-webkit-gradient()":"-webkit-gradient( <-webkit-gradient-type> , <-webkit-gradient-point> [, <-webkit-gradient-point>|, <-webkit-gradient-radius> , <-webkit-gradient-point>] [, <-webkit-gradient-radius>]? [, <-webkit-gradient-color-stop>]* )","-webkit-gradient-color-stop":"from( <color> )|color-stop( [<number-zero-one>|<percentage>] , <color> )|to( <color> )","-webkit-gradient-point":"[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]","-webkit-gradient-radius":"<length>|<percentage>","-webkit-gradient-type":"linear|radial","-webkit-mask-box-repeat":"repeat|stretch|round","-ms-filter-function-list":"<-ms-filter-function>+","-ms-filter-function":"<-ms-filter-function-progid>|<-ms-filter-function-legacy>","-ms-filter-function-progid":"'progid:' [<ident-token> '.']* [<ident-token>|<function-token> <any-value>? )]","-ms-filter-function-legacy":"<ident-token>|<function-token> <any-value>? )",age:"child|young|old","attr-name":"<wq-name>","attr-fallback":"<any-value>",autospace:"no-autospace|[ideograph-alpha||ideograph-numeric||punctuation]||[insert|replace]",bottom:"<length>|auto","generic-voice":"[<age>? <gender> <integer>?]",gender:"male|female|neutral","generic-script-specific":"generic( kai )|generic( fangsong )|generic( nastaliq )","-non-standard-generic-family":"-apple-system|BlinkMacSystemFont","intrinsic-size-keyword":"min-content|max-content|fit-content",left:"<length>|auto","device-cmyk()":"<legacy-device-cmyk-syntax>|<modern-device-cmyk-syntax>","legacy-device-cmyk-syntax":"device-cmyk( <number>#{4} )","modern-device-cmyk-syntax":"device-cmyk( <cmyk-component>{4} [/ [<alpha-value>|none]]? )","cmyk-component":"<number>|<percentage>|none","color-space":"<rectangular-color-space>|<polar-color-space>|<custom-color-space>",right:"<length>|auto","forgiving-selector-list":"<complex-real-selector-list>","forgiving-relative-selector-list":"<relative-real-selector-list>","complex-real-selector-list":"<complex-real-selector>#","simple-selector-list":"<simple-selector>#","relative-real-selector-list":"<relative-real-selector>#","complex-selector-unit":"[<compound-selector>? <pseudo-compound-selector>*]!","complex-real-selector":"<compound-selector> [<combinator>? <compound-selector>]*","relative-real-selector":"<combinator>? <complex-real-selector>","pseudo-compound-selector":"<pseudo-element-selector> <pseudo-class-selector>*","simple-selector":"<type-selector>|<subclass-selector>","legacy-pseudo-element-selector":"':' [before|after|first-line|first-letter]","svg-length":"<percentage>|<length>|<number>","svg-writing-mode":"lr-tb|rl-tb|tb-rl|lr|rl|tb",top:"<length>|auto",x:"<number>",y:"<number>",declaration:"<ident-token> : <declaration-value>? ['!' important]?","declaration-list":"[<declaration>? ';']* <declaration>?",url:"url( <string> <url-modifier>* )|<url-token>","url-modifier":"<ident>|<function-token> <any-value> )","number-zero-one":"<number [0,1]>","number-one-or-greater":"<number [1,∞]>","xyz-space":"xyz|xyz-d50|xyz-d65","style-condition":"not <style-in-parens>|<style-in-parens> [[and <style-in-parens>]*|[or <style-in-parens>]*]","-non-standard-display":"-ms-inline-flexbox|-ms-grid|-ms-inline-grid|-webkit-flex|-webkit-inline-flex|-webkit-box|-webkit-inline-box|-moz-inline-stack|-moz-box|-moz-inline-box","inset-area":"[[left|center|right|span-left|span-right|x-start|x-end|span-x-start|span-x-end|x-self-start|x-self-end|span-x-self-start|span-x-self-end|span-all]||[top|center|bottom|span-top|span-bottom|y-start|y-end|span-y-start|span-y-end|y-self-start|y-self-end|span-y-self-start|span-y-self-end|span-all]|[block-start|center|block-end|span-block-start|span-block-end|span-all]||[inline-start|center|inline-end|span-inline-start|span-inline-end|span-all]|[self-block-start|self-block-end|span-self-block-start|span-self-block-end|span-all]||[self-inline-start|self-inline-end|span-self-inline-start|span-self-inline-end|span-all]|[start|center|end|span-start|span-end|span-all]{1,2}|[self-start|center|self-end|span-self-start|span-self-end|span-all]{1,2}]",syntax:"'*'|<syntax-component> [<syntax-combinator> <syntax-component>]*|<syntax-string>","syntax-component":"<syntax-single-component> <syntax-multiplier>?|'<' transform-list '>'","syntax-single-component":"'<' <syntax-type-name> '>'|<ident>","syntax-type-name":"angle|color|custom-ident|image|integer|length|length-percentage|number|percentage|resolution|string|time|url|transform-function","syntax-combinator":"'|'","syntax-multiplier":"'#'|'+'","syntax-string":"<string>"},properties:{"--*":"<declaration-value>","-ms-accelerator":"false|true","-ms-block-progression":"tb|rl|bt|lr","-ms-content-zoom-chaining":"none|chained","-ms-content-zoom-limit":"<'-ms-content-zoom-limit-min'> <'-ms-content-zoom-limit-max'>","-ms-content-zoom-limit-max":"<percentage>","-ms-content-zoom-limit-min":"<percentage>","-ms-content-zoom-snap":"<'-ms-content-zoom-snap-type'>||<'-ms-content-zoom-snap-points'>","-ms-content-zoom-snap-points":"snapInterval( <percentage> , <percentage> )|snapList( <percentage># )","-ms-content-zoom-snap-type":"none|proximity|mandatory","-ms-content-zooming":"none|zoom","-ms-filter":"<string>","-ms-flow-from":"[none|<custom-ident>]#","-ms-flow-into":"[none|<custom-ident>]#","-ms-grid-columns":"none|<track-list>|<auto-track-list>","-ms-grid-rows":"none|<track-list>|<auto-track-list>","-ms-high-contrast-adjust":"auto|none","-ms-hyphenate-limit-chars":"auto|<integer>{1,3}","-ms-hyphenate-limit-lines":"no-limit|<integer>","-ms-hyphenate-limit-zone":"<percentage>|<length>","-ms-ime-align":"auto|after","-ms-overflow-style":"auto|none|scrollbar|-ms-autohiding-scrollbar","-ms-scroll-chaining":"chained|none","-ms-scroll-limit":"<'-ms-scroll-limit-x-min'> <'-ms-scroll-limit-y-min'> <'-ms-scroll-limit-x-max'> <'-ms-scroll-limit-y-max'>","-ms-scroll-limit-x-max":"auto|<length>","-ms-scroll-limit-x-min":"<length>","-ms-scroll-limit-y-max":"auto|<length>","-ms-scroll-limit-y-min":"<length>","-ms-scroll-rails":"none|railed","-ms-scroll-snap-points-x":"snapInterval( <length-percentage> , <length-percentage> )|snapList( <length-percentage># )","-ms-scroll-snap-points-y":"snapInterval( <length-percentage> , <length-percentage> )|snapList( <length-percentage># )","-ms-scroll-snap-type":"none|proximity|mandatory","-ms-scroll-snap-x":"<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-x'>","-ms-scroll-snap-y":"<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-y'>","-ms-scroll-translation":"none|vertical-to-horizontal","-ms-scrollbar-3dlight-color":"<color>","-ms-scrollbar-arrow-color":"<color>","-ms-scrollbar-base-color":"<color>","-ms-scrollbar-darkshadow-color":"<color>","-ms-scrollbar-face-color":"<color>","-ms-scrollbar-highlight-color":"<color>","-ms-scrollbar-shadow-color":"<color>","-ms-scrollbar-track-color":"<color>","-ms-text-autospace":"none|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space","-ms-touch-select":"grippers|none","-ms-user-select":"none|element|text","-ms-wrap-flow":"auto|both|start|end|maximum|clear","-ms-wrap-margin":"<length>","-ms-wrap-through":"wrap|none","-moz-appearance":"none|button|button-arrow-down|button-arrow-next|button-arrow-previous|button-arrow-up|button-bevel|button-focus|caret|checkbox|checkbox-container|checkbox-label|checkmenuitem|dualbutton|groupbox|listbox|listitem|menuarrow|menubar|menucheckbox|menuimage|menuitem|menuitemtext|menulist|menulist-button|menulist-text|menulist-textfield|menupopup|menuradio|menuseparator|meterbar|meterchunk|progressbar|progressbar-vertical|progresschunk|progresschunk-vertical|radio|radio-container|radio-label|radiomenuitem|range|range-thumb|resizer|resizerpanel|scale-horizontal|scalethumbend|scalethumb-horizontal|scalethumbstart|scalethumbtick|scalethumb-vertical|scale-vertical|scrollbarbutton-down|scrollbarbutton-left|scrollbarbutton-right|scrollbarbutton-up|scrollbarthumb-horizontal|scrollbarthumb-vertical|scrollbartrack-horizontal|scrollbartrack-vertical|searchfield|separator|sheet|spinner|spinner-downbutton|spinner-textfield|spinner-upbutton|splitter|statusbar|statusbarpanel|tab|tabpanel|tabpanels|tab-scroll-arrow-back|tab-scroll-arrow-forward|textfield|textfield-multiline|toolbar|toolbarbutton|toolbarbutton-dropdown|toolbargripper|toolbox|tooltip|treeheader|treeheadercell|treeheadersortarrow|treeitem|treeline|treetwisty|treetwistyopen|treeview|-moz-mac-unified-toolbar|-moz-win-borderless-glass|-moz-win-browsertabbar-toolbox|-moz-win-communicationstext|-moz-win-communications-toolbox|-moz-win-exclude-glass|-moz-win-glass|-moz-win-mediatext|-moz-win-media-toolbox|-moz-window-button-box|-moz-window-button-box-maximized|-moz-window-button-close|-moz-window-button-maximize|-moz-window-button-minimize|-moz-window-button-restore|-moz-window-frame-bottom|-moz-window-frame-left|-moz-window-frame-right|-moz-window-titlebar|-moz-window-titlebar-maximized","-moz-binding":"<url>|none","-moz-border-bottom-colors":"<color>+|none","-moz-border-left-colors":"<color>+|none","-moz-border-right-colors":"<color>+|none","-moz-border-top-colors":"<color>+|none","-moz-context-properties":"none|[fill|fill-opacity|stroke|stroke-opacity]#","-moz-float-edge":"border-box|content-box|margin-box|padding-box","-moz-force-broken-image-icon":"0|1","-moz-orient":"inline|block|horizontal|vertical","-moz-outline-radius":"<outline-radius>{1,4} [/ <outline-radius>{1,4}]?","-moz-outline-radius-bottomleft":"<outline-radius>","-moz-outline-radius-bottomright":"<outline-radius>","-moz-outline-radius-topleft":"<outline-radius>","-moz-outline-radius-topright":"<outline-radius>","-moz-stack-sizing":"ignore|stretch-to-fit","-moz-text-blink":"none|blink","-moz-user-focus":"ignore|normal|select-after|select-before|select-menu|select-same|select-all|none","-moz-user-input":"auto|none|enabled|disabled","-moz-user-modify":"read-only|read-write|write-only","-moz-window-dragging":"drag|no-drag","-moz-window-shadow":"default|menu|tooltip|sheet|none","-webkit-appearance":"none|button|button-bevel|caps-lock-indicator|caret|checkbox|default-button|inner-spin-button|listbox|listitem|media-controls-background|media-controls-fullscreen-background|media-current-time-display|media-enter-fullscreen-button|media-exit-fullscreen-button|media-fullscreen-button|media-mute-button|media-overlay-play-button|media-play-button|media-seek-back-button|media-seek-forward-button|media-slider|media-sliderthumb|media-time-remaining-display|media-toggle-closed-captions-button|media-volume-slider|media-volume-slider-container|media-volume-sliderthumb|menulist|menulist-button|menulist-text|menulist-textfield|meter|progress-bar|progress-bar-value|push-button|radio|scrollbarbutton-down|scrollbarbutton-left|scrollbarbutton-right|scrollbarbutton-up|scrollbargripper-horizontal|scrollbargripper-vertical|scrollbarthumb-horizontal|scrollbarthumb-vertical|scrollbartrack-horizontal|scrollbartrack-vertical|searchfield|searchfield-cancel-button|searchfield-decoration|searchfield-results-button|searchfield-results-decoration|slider-horizontal|slider-vertical|sliderthumb-horizontal|sliderthumb-vertical|square-button|textarea|textfield|-apple-pay-button","-webkit-border-before":"<'border-width'>||<'border-style'>||<color>","-webkit-border-before-color":"<color>","-webkit-border-before-style":"<'border-style'>","-webkit-border-before-width":"<'border-width'>","-webkit-box-reflect":"[above|below|right|left]? <length>? <image>?","-webkit-line-clamp":"none|<integer>","-webkit-mask":"[<mask-reference>||<position> [/ <bg-size>]?||<repeat-style>||[<visual-box>|border|padding|content|text]||[<visual-box>|border|padding|content]]#","-webkit-mask-attachment":"<attachment>#","-webkit-mask-clip":"[<coord-box>|no-clip|border|padding|content|text]#","-webkit-mask-composite":"<composite-style>#","-webkit-mask-image":"<mask-reference>#","-webkit-mask-origin":"[<coord-box>|border|padding|content]#","-webkit-mask-position":"<position>#","-webkit-mask-position-x":"[<length-percentage>|left|center|right]#","-webkit-mask-position-y":"[<length-percentage>|top|center|bottom]#","-webkit-mask-repeat":"<repeat-style>#","-webkit-mask-repeat-x":"repeat|no-repeat|space|round","-webkit-mask-repeat-y":"repeat|no-repeat|space|round","-webkit-mask-size":"<bg-size>#","-webkit-overflow-scrolling":"auto|touch","-webkit-tap-highlight-color":"<color>","-webkit-text-fill-color":"<color>","-webkit-text-stroke":"<length>||<color>","-webkit-text-stroke-color":"<color>","-webkit-text-stroke-width":"<length>","-webkit-touch-callout":"default|none","-webkit-user-modify":"read-only|read-write|read-write-plaintext-only","-webkit-user-select":"auto|none|text|all","accent-color":"auto|<color>","align-content":"normal|<baseline-position>|<content-distribution>|<overflow-position>? <content-position>","align-items":"normal|stretch|<baseline-position>|[<overflow-position>? <self-position>]|anchor-center","align-self":"auto|normal|stretch|<baseline-position>|<overflow-position>? <self-position>|anchor-center","align-tracks":"[normal|<baseline-position>|<content-distribution>|<overflow-position>? <content-position>]#","alignment-baseline":"auto|baseline|before-edge|text-before-edge|middle|central|after-edge|text-after-edge|ideographic|alphabetic|hanging|mathematical",all:"initial|inherit|unset|revert|revert-layer","anchor-name":"none|<dashed-ident>#","anchor-scope":"none|all|<dashed-ident>#",animation:"<single-animation>#","animation-composition":"<single-animation-composition>#","animation-delay":"<time>#","animation-direction":"<single-animation-direction>#","animation-duration":"[auto|<time [0s,∞]>]#","animation-fill-mode":"<single-animation-fill-mode>#","animation-iteration-count":"<single-animation-iteration-count>#","animation-name":"[none|<keyframes-name>]#","animation-play-state":"<single-animation-play-state>#","animation-range":"[<'animation-range-start'> <'animation-range-end'>?]#","animation-range-end":"[normal|<length-percentage>|<timeline-range-name> <length-percentage>?]#","animation-range-start":"[normal|<length-percentage>|<timeline-range-name> <length-percentage>?]#","animation-timeline":"<single-animation-timeline>#","animation-timing-function":"<easing-function>#","animation-trigger":"[none|[<dashed-ident> <animation-action>+]+]#",appearance:"none|auto|<compat-auto>|<compat-special>","aspect-ratio":"auto||<ratio>","backdrop-filter":"none|<filter-value-list>","backface-visibility":"visible|hidden",background:"<bg-layer>#? , <final-bg-layer>","background-attachment":"<attachment>#","background-blend-mode":"<blend-mode>#","background-clip":"<bg-clip>#","background-color":"<color>","background-image":"<bg-image>#","background-origin":"<visual-box>#","background-position":"<bg-position>#","background-position-x":"[center|[[left|right|x-start|x-end]? <length-percentage>?]!]#","background-position-y":"[center|[[top|bottom|y-start|y-end]? <length-percentage>?]!]#","background-repeat":"<repeat-style>#","background-size":"<bg-size>#","baseline-shift":"baseline|sub|super|<svg-length>","baseline-source":"auto|first|last","block-size":"<'width'>",border:"<line-width>||<line-style>||<color>","border-block":"<'border-block-start'>","border-block-color":"<'border-top-color'>{1,2}","border-block-end":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-end-color":"<'border-top-color'>","border-block-end-style":"<'border-top-style'>","border-block-end-width":"<'border-top-width'>","border-block-start":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-start-color":"<'border-top-color'>","border-block-start-style":"<'border-top-style'>","border-block-start-width":"<'border-top-width'>","border-block-style":"<'border-top-style'>{1,2}","border-block-width":"<'border-top-width'>{1,2}","border-bottom":"<line-width>||<line-style>||<color>","border-bottom-color":"<'border-top-color'>","border-bottom-left-radius":"<length-percentage [0,∞]>{1,2}","border-bottom-right-radius":"<length-percentage [0,∞]>{1,2}","border-bottom-style":"<line-style>","border-bottom-width":"<line-width>","border-collapse":"separate|collapse","border-color":"<color>{1,4}","border-end-end-radius":"<'border-top-left-radius'>","border-end-start-radius":"<'border-top-left-radius'>","border-image":"<'border-image-source'>||<'border-image-slice'> [/ <'border-image-width'>|/ <'border-image-width'>? / <'border-image-outset'>]?||<'border-image-repeat'>","border-image-outset":"[<length [0,∞]>|<number [0,∞]>]{1,4}","border-image-repeat":"[stretch|repeat|round|space]{1,2}","border-image-slice":"[<number [0,∞]>|<percentage [0,∞]>]{1,4}&&fill?","border-image-source":"none|<image>","border-image-width":"[<length-percentage [0,∞]>|<number [0,∞]>|auto]{1,4}","border-inline":"<'border-block-start'>","border-inline-color":"<'border-top-color'>{1,2}","border-inline-end":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-end-color":"<'border-top-color'>","border-inline-end-style":"<'border-top-style'>","border-inline-end-width":"<'border-top-width'>","border-inline-start":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-start-color":"<'border-top-color'>","border-inline-start-style":"<'border-top-style'>","border-inline-start-width":"<'border-top-width'>","border-inline-style":"<'border-top-style'>{1,2}","border-inline-width":"<'border-top-width'>{1,2}","border-left":"<line-width>||<line-style>||<color>","border-left-color":"<color>","border-left-style":"<line-style>","border-left-width":"<line-width>","border-radius":"<length-percentage [0,∞]>{1,4} [/ <length-percentage [0,∞]>{1,4}]?","border-right":"<line-width>||<line-style>||<color>","border-right-color":"<color>","border-right-style":"<line-style>","border-right-width":"<line-width>","border-spacing":"<length>{1,2}","border-start-end-radius":"<'border-top-left-radius'>","border-start-start-radius":"<'border-top-left-radius'>","border-style":"<line-style>{1,4}","border-top":"<line-width>||<line-style>||<color>","border-top-color":"<color>","border-top-left-radius":"<length-percentage [0,∞]>{1,2}","border-top-right-radius":"<length-percentage [0,∞]>{1,2}","border-top-style":"<line-style>","border-top-width":"<line-width>","border-width":"<line-width>{1,4}",bottom:"auto|<length-percentage>|<anchor()>|<anchor-size()>","box-align":"start|center|end|baseline|stretch","box-decoration-break":"slice|clone","box-direction":"normal|reverse|inherit","box-flex":"<number>","box-flex-group":"<integer>","box-lines":"single|multiple","box-ordinal-group":"<integer>","box-orient":"horizontal|vertical|inline-axis|block-axis|inherit","box-pack":"start|center|end|justify","box-shadow":"none|<shadow>#","box-sizing":"content-box|border-box","break-after":"auto|avoid|always|all|avoid-page|page|left|right|recto|verso|avoid-column|column|avoid-region|region","break-before":"auto|avoid|always|all|avoid-page|page|left|right|recto|verso|avoid-column|column|avoid-region|region","break-inside":"auto|avoid|avoid-page|avoid-column|avoid-region","caption-side":"top|bottom",caret:"<'caret-color'>||<'caret-animation'>||<'caret-shape'>","caret-animation":"auto|manual","caret-color":"auto|<color>","caret-shape":"auto|bar|block|underscore",clear:"none|left|right|both|inline-start|inline-end",clip:"<shape>|auto","clip-path":"<clip-source>|[<basic-shape>||<geometry-box>]|none","clip-rule":"nonzero|evenodd",color:"<color>","color-interpolation-filters":"auto|sRGB|linearRGB","color-scheme":"normal|[light|dark|<custom-ident>]+&&only?","column-count":"<integer>|auto","column-fill":"auto|balance","column-gap":"normal|<length-percentage>","column-height":"auto|<length [0,∞]>","column-rule":"<'column-rule-width'>||<'column-rule-style'>||<'column-rule-color'>","column-rule-color":"<color>","column-rule-style":"<'border-style'>","column-rule-width":"<'border-width'>","column-span":"none|all","column-width":"auto|<length [0,∞]>","column-wrap":"auto|nowrap|wrap",columns:"[<'column-width'>||<'column-count'>] [/ <'column-height'>]?",contain:"none|strict|content|[[size||inline-size]||layout||style||paint]","contain-intrinsic-block-size":"auto? [none|<length>]","contain-intrinsic-height":"auto? [none|<length>]","contain-intrinsic-inline-size":"auto? [none|<length>]","contain-intrinsic-size":"[auto? [none|<length>]]{1,2}","contain-intrinsic-width":"auto? [none|<length>]",container:"<'container-name'> [/ <'container-type'>]?","container-name":"none|<custom-ident>+","container-type":"normal||[size|inline-size]",content:"normal|none|[<content-replacement>|<content-list>] [/ [<string>|<counter>|<attr()>]+]?","content-visibility":"visible|auto|hidden","corner-block-end-shape":"<corner-shape-value>{1,2}","corner-block-start-shape":"<corner-shape-value>{1,2}","corner-bottom-shape":"<corner-shape-value>{1,2}","corner-bottom-left-shape":"<corner-shape-value>","corner-bottom-right-shape":"<corner-shape-value>","corner-end-end-shape":"<corner-shape-value>","corner-end-start-shape":"<corner-shape-value>","corner-inline-end-shape":"<corner-shape-value>{1,2}","corner-inline-start-shape":"<corner-shape-value>{1,2}","corner-left-shape":"<corner-shape-value>{1,2}","corner-right-shape":"<corner-shape-value>{1,2}","corner-shape":"<corner-shape-value>{1,4}","corner-start-start-shape":"<corner-shape-value>","corner-start-end-shape":"<corner-shape-value>","corner-top-shape":"<corner-shape-value>{1,2}","corner-top-left-shape":"<corner-shape-value>","corner-top-right-shape":"<corner-shape-value>","counter-increment":"[<counter-name> <integer>?]+|none","counter-reset":"[<counter-name> <integer>?|<reversed-counter-name> <integer>?]+|none","counter-set":"[<counter-name> <integer>?]+|none",cursor:"[[<url> [<x> <y>]? ,]* [auto|default|none|context-menu|help|pointer|progress|wait|cell|crosshair|text|vertical-text|alias|copy|move|no-drop|not-allowed|e-resize|n-resize|ne-resize|nw-resize|s-resize|se-resize|sw-resize|w-resize|ew-resize|ns-resize|nesw-resize|nwse-resize|col-resize|row-resize|all-scroll|zoom-in|zoom-out|grab|grabbing|hand|-webkit-grab|-webkit-grabbing|-webkit-zoom-in|-webkit-zoom-out|-moz-grab|-moz-grabbing|-moz-zoom-in|-moz-zoom-out]]",cx:"<length>|<percentage>",cy:"<length>|<percentage>",d:"none|path( <string> )",direction:"ltr|rtl",display:"[<display-outside>||<display-inside>]|<display-listitem>|<display-internal>|<display-box>|<display-legacy>|<-non-standard-display>","dominant-baseline":"auto|use-script|no-change|reset-size|ideographic|alphabetic|hanging|mathematical|central|middle|text-after-edge|text-before-edge","dynamic-range-limit":"standard|no-limit|constrained|<dynamic-range-limit-mix()>","empty-cells":"show|hide","field-sizing":"content|fixed",fill:"<paint>","fill-opacity":"<number-zero-one>|<percentage>","fill-rule":"nonzero|evenodd",filter:"none|<filter-value-list>|<-ms-filter-function-list>",flex:"none|[<'flex-grow'> <'flex-shrink'>?||<'flex-basis'>]","flex-basis":"content|<'width'>","flex-direction":"row|row-reverse|column|column-reverse","flex-flow":"<'flex-direction'>||<'flex-wrap'>","flex-grow":"<number>","flex-shrink":"<number>","flex-wrap":"nowrap|wrap|wrap-reverse",float:"left|right|none|inline-start|inline-end","flood-color":"<color>","flood-opacity":"<'opacity'>",font:"[[<'font-style'>||<font-variant-css2>||<'font-weight'>||<font-width-css3>]? <'font-size'> [/ <'line-height'>]? <'font-family'>#]|<system-family-name>|<-non-standard-font>","font-family":"[<family-name>|<generic-family>]#","font-feature-settings":"normal|<feature-tag-value>#","font-kerning":"auto|normal|none","font-language-override":"normal|<string>","font-optical-sizing":"auto|none","font-palette":"normal|light|dark|<palette-identifier>|<palette-mix()>","font-size":"<absolute-size>|<relative-size>|<length-percentage [0,∞]>|math","font-size-adjust":"none|[ex-height|cap-height|ch-width|ic-width|ic-height]? [from-font|<number>]","font-smooth":"auto|never|always|<absolute-size>|<length>","font-stretch":"<font-stretch-absolute>","font-style":"normal|italic|oblique <angle>?","font-synthesis":"none|[weight||style||small-caps||position]","font-synthesis-position":"auto|none","font-synthesis-small-caps":"auto|none","font-synthesis-style":"auto|none","font-synthesis-weight":"auto|none","font-variant":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>||stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )||[small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps]||<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero||<east-asian-variant-values>||<east-asian-width-values>||ruby]","font-variant-alternates":"normal|[stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )]","font-variant-caps":"normal|small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps","font-variant-east-asian":"normal|[<east-asian-variant-values>||<east-asian-width-values>||ruby]","font-variant-emoji":"normal|text|emoji|unicode","font-variant-ligatures":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>]","font-variant-numeric":"normal|[<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero]","font-variant-position":"normal|sub|super","font-variation-settings":"normal|[<string> <number>]#","font-weight":"<font-weight-absolute>|bolder|lighter","font-width":"normal|<percentage [0,∞]>|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded","forced-color-adjust":"auto|none|preserve-parent-color",gap:"<'row-gap'> <'column-gap'>?",grid:"<'grid-template'>|<'grid-template-rows'> / [auto-flow&&dense?] <'grid-auto-columns'>?|[auto-flow&&dense?] <'grid-auto-rows'>? / <'grid-template-columns'>","grid-area":"<grid-line> [/ <grid-line>]{0,3}","grid-auto-columns":"<track-size>+","grid-auto-flow":"[row|column]||dense","grid-auto-rows":"<track-size>+","grid-column":"<grid-line> [/ <grid-line>]?","grid-column-end":"<grid-line>","grid-column-gap":"<length-percentage>","grid-column-start":"<grid-line>","grid-gap":"<'grid-row-gap'> <'grid-column-gap'>?","grid-row":"<grid-line> [/ <grid-line>]?","grid-row-end":"<grid-line>","grid-row-gap":"<length-percentage>","grid-row-start":"<grid-line>","grid-template":"none|[<'grid-template-rows'> / <'grid-template-columns'>]|[<line-names>? <string> <track-size>? <line-names>?]+ [/ <explicit-track-list>]?","grid-template-areas":"none|<string>+","grid-template-columns":"none|<track-list>|<auto-track-list>|subgrid <line-name-list>?","grid-template-rows":"none|<track-list>|<auto-track-list>|subgrid <line-name-list>?","hanging-punctuation":"none|[first||[force-end|allow-end]||last]",height:"auto|<length-percentage [0,∞]>|min-content|max-content|fit-content|fit-content( <length-percentage [0,∞]> )|<calc-size()>|<anchor-size()>|stretch|<-non-standard-size>","hyphenate-character":"auto|<string>","hyphenate-limit-chars":"[auto|<integer>]{1,3}",hyphens:"none|manual|auto","image-orientation":"from-image|<angle>|[<angle>? flip]","image-rendering":"auto|crisp-edges|pixelated|smooth|optimizeSpeed|optimizeQuality|<-non-standard-image-rendering>","image-resolution":"[from-image||<resolution>]&&snap?","ime-mode":"auto|normal|active|inactive|disabled","initial-letter":"normal|[<number> <integer>?]","initial-letter-align":"[auto|alphabetic|hanging|ideographic]","inline-size":"<'width'>",inset:"<'top'>{1,4}","inset-block":"<'top'>{1,2}","inset-block-end":"<'top'>","inset-block-start":"<'top'>","inset-inline":"<'top'>{1,2}","inset-inline-end":"<'top'>","inset-inline-start":"<'top'>","interpolate-size":"numeric-only|allow-keywords",isolation:"auto|isolate",interactivity:"auto|inert","interest-delay":"<'interest-delay-start'>{1,2}","interest-delay-end":"normal|<time>","interest-delay-start":"normal|<time>","justify-content":"normal|<content-distribution>|<overflow-position>? [<content-position>|left|right]","justify-items":"normal|stretch|<baseline-position>|<overflow-position>? [<self-position>|left|right]|legacy|legacy&&[left|right|center]|anchor-center","justify-self":"auto|normal|stretch|<baseline-position>|<overflow-position>? [<self-position>|left|right]|anchor-center","justify-tracks":"[normal|<content-distribution>|<overflow-position>? [<content-position>|left|right]]#",left:"auto|<length-percentage>|<anchor()>|<anchor-size()>","letter-spacing":"normal|<length-percentage>","lighting-color":"<color>","line-break":"auto|loose|normal|strict|anywhere","line-clamp":"none|<integer>","line-height":"normal|<number>|<length>|<percentage>","line-height-step":"<length>","list-style":"<'list-style-type'>||<'list-style-position'>||<'list-style-image'>","list-style-image":"<image>|none","list-style-position":"inside|outside","list-style-type":"<counter-style>|<string>|none",margin:"<'margin-top'>{1,4}","margin-block":"<'margin-top'>{1,2}","margin-block-end":"<'margin-top'>","margin-block-start":"<'margin-top'>","margin-bottom":"<length-percentage>|auto|<anchor-size()>","margin-inline":"<'margin-top'>{1,2}","margin-inline-end":"<'margin-top'>","margin-inline-start":"<'margin-top'>","margin-left":"<length-percentage>|auto|<anchor-size()>","margin-right":"<length-percentage>|auto|<anchor-size()>","margin-top":"<length-percentage>|auto|<anchor-size()>","margin-trim":"none|in-flow|all",marker:"none|<url>","marker-end":"none|<url>","marker-mid":"none|<url>","marker-start":"none|<url>",mask:"<mask-layer>#","mask-border":"<'mask-border-source'>||<'mask-border-slice'> [/ <'mask-border-width'>? [/ <'mask-border-outset'>]?]?||<'mask-border-repeat'>||<'mask-border-mode'>","mask-border-mode":"luminance|alpha","mask-border-outset":"[<length>|<number>]{1,4}","mask-border-repeat":"[stretch|repeat|round|space]{1,2}","mask-border-slice":"<number-percentage>{1,4} fill?","mask-border-source":"none|<image>","mask-border-width":"[<length-percentage>|<number>|auto]{1,4}","mask-clip":"[<coord-box>|no-clip]#","mask-composite":"<compositing-operator>#","mask-image":"<mask-reference>#","mask-mode":"<masking-mode>#","mask-origin":"<coord-box>#","mask-position":"<position>#","mask-repeat":"<repeat-style>#","mask-size":"<bg-size>#","mask-type":"luminance|alpha","masonry-auto-flow":"[pack|next]||[definite-first|ordered]","math-depth":"auto-add|add( <integer> )|<integer>","math-shift":"normal|compact","math-style":"normal|compact","max-block-size":"<'max-width'>","max-height":"none|<length-percentage [0,∞]>|min-content|max-content|fit-content|fit-content( <length-percentage [0,∞]> )|<calc-size()>|<anchor-size()>|stretch|<-non-standard-size>","max-inline-size":"<'max-width'>","max-lines":"none|<integer>","max-width":"none|<length-percentage [0,∞]>|min-content|max-content|fit-content|fit-content( <length-percentage [0,∞]> )|<calc-size()>|<anchor-size()>|stretch|<-non-standard-size>","min-block-size":"<'min-width'>","min-height":"auto|<length-percentage [0,∞]>|min-content|max-content|fit-content|fit-content( <length-percentage [0,∞]> )|<calc-size()>|<anchor-size()>|stretch|<-non-standard-size>","min-inline-size":"<'min-width'>","min-width":"auto|<length-percentage [0,∞]>|min-content|max-content|fit-content|fit-content( <length-percentage [0,∞]> )|<calc-size()>|<anchor-size()>|stretch|<-non-standard-size>","mix-blend-mode":"<blend-mode>|plus-darker|plus-lighter","object-fit":"fill|contain|cover|none|scale-down","object-position":"<position>","object-view-box":"none|<basic-shape-rect>",offset:"[<'offset-position'>? [<'offset-path'> [<'offset-distance'>||<'offset-rotate'>]?]?]! [/ <'offset-anchor'>]?","offset-anchor":"auto|<position>","offset-distance":"<length-percentage>","offset-path":"none|<offset-path>||<coord-box>","offset-position":"normal|auto|<position>","offset-rotate":"[auto|reverse]||<angle>",opacity:"<opacity-value>",order:"<integer>",orphans:"<integer>",outline:"<'outline-width'>||<'outline-style'>||<'outline-color'>","outline-color":"auto|<color>","outline-offset":"<length>","outline-style":"auto|<outline-line-style>","outline-width":"<line-width>",overflow:"[visible|hidden|clip|scroll|auto]{1,2}|<-non-standard-overflow>","overflow-anchor":"auto|none","overflow-block":"visible|hidden|clip|scroll|auto|<-non-standard-overflow>","overflow-clip-box":"padding-box|content-box","overflow-clip-margin":"<visual-box>||<length [0,∞]>","overflow-inline":"visible|hidden|clip|scroll|auto|<-non-standard-overflow>","overflow-wrap":"normal|break-word|anywhere","overflow-x":"visible|hidden|clip|scroll|auto|<-non-standard-overflow>","overflow-y":"visible|hidden|clip|scroll|auto|<-non-standard-overflow>",overlay:"none|auto","overscroll-behavior":"[contain|none|auto]{1,2}","overscroll-behavior-block":"contain|none|auto","overscroll-behavior-inline":"contain|none|auto","overscroll-behavior-x":"contain|none|auto","overscroll-behavior-y":"contain|none|auto",padding:"<'padding-top'>{1,4}","padding-block":"<'padding-top'>{1,2}","padding-block-end":"<'padding-top'>","padding-block-start":"<'padding-top'>","padding-bottom":"<length-percentage [0,∞]>","padding-inline":"<'padding-top'>{1,2}","padding-inline-end":"<'padding-top'>","padding-inline-start":"<'padding-top'>","padding-left":"<length-percentage [0,∞]>","padding-right":"<length-percentage [0,∞]>","padding-top":"<length-percentage [0,∞]>",page:"auto|<custom-ident>","page-break-after":"auto|always|avoid|left|right|recto|verso","page-break-before":"auto|always|avoid|left|right|recto|verso","page-break-inside":"auto|avoid","paint-order":"normal|[fill||stroke||markers]",perspective:"none|<length>","perspective-origin":"<position>","place-content":"<'align-content'> <'justify-content'>?","place-items":"<'align-items'> <'justify-items'>?","place-self":"<'align-self'> <'justify-self'>?","pointer-events":"auto|none|visiblePainted|visibleFill|visibleStroke|visible|painted|fill|stroke|all|inherit",position:"static|relative|absolute|sticky|fixed|-webkit-sticky","position-anchor":"auto|none|<anchor-name>","position-area":"none|<position-area>","position-try":"<'position-try-order'>? <'position-try-fallbacks'>","position-try-fallbacks":"none|[[<dashed-ident>||<try-tactic>]|<'position-area'>]#","position-try-order":"normal|<try-size>","position-visibility":"always|[anchors-valid||anchors-visible||no-overflow]","print-color-adjust":"economy|exact",quotes:"none|auto|[<string> <string>]+",r:"<length>|<percentage>","reading-flow":"normal|source-order|flex-visual|flex-flow|grid-rows|grid-columns|grid-order","reading-order":"<integer>",resize:"none|both|horizontal|vertical|block|inline",right:"auto|<length-percentage>|<anchor()>|<anchor-size()>",rotate:"none|<angle>|[x|y|z|<number>{3}]&&<angle>","row-gap":"normal|<length-percentage>","ruby-align":"start|center|space-between|space-around","ruby-merge":"separate|collapse|auto","ruby-overhang":"auto|none","ruby-position":"[alternate||[over|under]]|inter-character",rx:"<length>|<percentage>",ry:"<length>|<percentage>",scale:"none|[<number>|<percentage>]{1,3}","scroll-behavior":"auto|smooth","scroll-initial-target":"none|nearest","scroll-margin":"<length>{1,4}","scroll-margin-block":"<length>{1,2}","scroll-margin-block-end":"<length>","scroll-margin-block-start":"<length>","scroll-margin-bottom":"<length>","scroll-margin-inline":"<length>{1,2}","scroll-margin-inline-end":"<length>","scroll-margin-inline-start":"<length>","scroll-margin-left":"<length>","scroll-margin-right":"<length>","scroll-margin-top":"<length>","scroll-marker-group":"none|before|after","scroll-padding":"[auto|<length-percentage>]{1,4}","scroll-padding-block":"[auto|<length-percentage>]{1,2}","scroll-padding-block-end":"auto|<length-percentage>","scroll-padding-block-start":"auto|<length-percentage>","scroll-padding-bottom":"auto|<length-percentage>","scroll-padding-inline":"[auto|<length-percentage>]{1,2}","scroll-padding-inline-end":"auto|<length-percentage>","scroll-padding-inline-start":"auto|<length-percentage>","scroll-padding-left":"auto|<length-percentage>","scroll-padding-right":"auto|<length-percentage>","scroll-padding-top":"auto|<length-percentage>","scroll-snap-align":"[none|start|end|center]{1,2}","scroll-snap-coordinate":"none|<position>#","scroll-snap-destination":"<position>","scroll-snap-points-x":"none|repeat( <length-percentage> )","scroll-snap-points-y":"none|repeat( <length-percentage> )","scroll-snap-stop":"normal|always","scroll-snap-type":"none|[x|y|block|inline|both] [mandatory|proximity]?","scroll-snap-type-x":"none|mandatory|proximity","scroll-snap-type-y":"none|mandatory|proximity","scroll-target-group":"none|auto","scroll-timeline":"[<'scroll-timeline-name'> <'scroll-timeline-axis'>?]#","scroll-timeline-axis":"[block|inline|x|y]#","scroll-timeline-name":"[none|<dashed-ident>]#","scrollbar-color":"auto|<color>{2}","scrollbar-gutter":"auto|stable&&both-edges?","scrollbar-width":"auto|thin|none","shape-image-threshold":"<opacity-value>","shape-margin":"<length-percentage>","shape-outside":"none|[<shape-box>||<basic-shape>]|<image>","shape-rendering":"auto|optimizeSpeed|crispEdges|geometricPrecision","speak-as":"normal|spell-out||digits||[literal-punctuation|no-punctuation]","stop-color":"<'color'>","stop-opacity":"<'opacity'>",stroke:"<paint>","stroke-color":"<color>","stroke-dasharray":"none|[<svg-length>+]#","stroke-dashoffset":"<svg-length>","stroke-linecap":"butt|round|square","stroke-linejoin":"miter|round|bevel","stroke-miterlimit":"<number-one-or-greater>","stroke-opacity":"<'opacity'>","stroke-width":"<svg-length>","tab-size":"<integer>|<length>","table-layout":"auto|fixed","text-align":"start|end|left|right|center|justify|match-parent","text-align-last":"auto|start|end|left|right|center|justify","text-anchor":"start|middle|end","text-autospace":"normal|<autospace>|auto","text-box":"normal|<'text-box-trim'>||<'text-box-edge'>","text-box-edge":"auto|<text-edge>","text-box-trim":"none|trim-start|trim-end|trim-both","text-combine-upright":"none|all|[digits <integer>?]","text-decoration":"<'text-decoration-line'>||<'text-decoration-style'>||<'text-decoration-color'>||<'text-decoration-thickness'>","text-decoration-color":"<color>","text-decoration-inset":"<length>{1,2}|auto","text-decoration-line":"none|[underline||overline||line-through||blink]|spelling-error|grammar-error","text-decoration-skip":"none|[objects||[spaces|[leading-spaces||trailing-spaces]]||edges||box-decoration]","text-decoration-skip-ink":"auto|all|none","text-decoration-style":"solid|double|dotted|dashed|wavy","text-decoration-thickness":"auto|from-font|<length>|<percentage>","text-emphasis":"<'text-emphasis-style'>||<'text-emphasis-color'>","text-emphasis-color":"<color>","text-emphasis-position":"auto|[over|under]&&[right|left]?","text-emphasis-style":"none|[[filled|open]||[dot|circle|double-circle|triangle|sesame]]|<string>","text-indent":"<length-percentage>&&hanging?&&each-line?","text-justify":"auto|inter-character|inter-word|none","text-orientation":"mixed|upright|sideways","text-overflow":"[clip|ellipsis|<string>]{1,2}","text-rendering":"auto|optimizeSpeed|optimizeLegibility|geometricPrecision","text-shadow":"none|<shadow-t>#","text-size-adjust":"none|auto|<percentage>","text-spacing-trim":"space-all|normal|space-first|trim-start","text-transform":"none|[capitalize|uppercase|lowercase]||full-width||full-size-kana|math-auto","text-underline-offset":"auto|<length>|<percentage>","text-underline-position":"auto|from-font|[under||[left|right]]","text-wrap":"<'text-wrap-mode'>||<'text-wrap-style'>","text-wrap-mode":"wrap|nowrap","text-wrap-style":"auto|balance|stable|pretty","timeline-scope":"none|<dashed-ident>#","timeline-trigger":"none|[<'timeline-trigger-name'> <'timeline-trigger-source'> <'timeline-trigger-range'> ['/' <'timeline-trigger-exit-range'>]?]#","timeline-trigger-name":"none|<dashed-ident>#","timeline-trigger-exit-range":"[<'timeline-trigger-exit-range-start'> <'timeline-trigger-exit-range-end'>?]#","timeline-trigger-exit-range-end":"[auto|normal|<length-percentage>|<timeline-range-name> <length-percentage>?]#","timeline-trigger-exit-range-start":"[auto|normal|<length-percentage>|<timeline-range-name> <length-percentage>?]#","timeline-trigger-range":"[<'timeline-trigger-range-start'> <'timeline-trigger-range-end'>?]#","timeline-trigger-range-end":"[normal|<length-percentage>|<timeline-range-name> <length-percentage>?]#","timeline-trigger-range-start":"[normal|<length-percentage>|<timeline-range-name> <length-percentage>?]#","timeline-trigger-source":"<single-animation-timeline>#",top:"auto|<length-percentage>|<anchor()>|<anchor-size()>","touch-action":"auto|none|[[pan-x|pan-left|pan-right]||[pan-y|pan-up|pan-down]||pinch-zoom]|manipulation",transform:"none|<transform-list>","transform-box":"content-box|border-box|fill-box|stroke-box|view-box","transform-origin":"[<length-percentage>|left|center|right|top|bottom]|[[<length-percentage>|left|center|right]&&[<length-percentage>|top|center|bottom]] <length>?","transform-style":"flat|preserve-3d",transition:"<single-transition>#","transition-behavior":"<transition-behavior-value>#","transition-delay":"<time>#","transition-duration":"<time>#","transition-property":"none|<single-transition-property>#","transition-timing-function":"<easing-function>#",translate:"none|<length-percentage> [<length-percentage> <length>?]?","trigger-scope":"none|all|<dashed-ident>#","unicode-bidi":"normal|embed|isolate|bidi-override|isolate-override|plaintext|-moz-isolate|-moz-isolate-override|-moz-plaintext|-webkit-isolate|-webkit-isolate-override|-webkit-plaintext","user-select":"auto|text|none|all","vector-effect":"none|non-scaling-stroke|non-scaling-size|non-rotation|fixed-position","vertical-align":"baseline|sub|super|text-top|text-bottom|middle|top|bottom|<percentage>|<length>","view-timeline":"[<'view-timeline-name'> [<'view-timeline-axis'>||<'view-timeline-inset'>]?]#","view-timeline-axis":"[block|inline|x|y]#","view-timeline-inset":"[[auto|<length-percentage>]{1,2}]#","view-timeline-name":"[none|<dashed-ident>]#","view-transition-class":"none|<custom-ident>+","view-transition-name":"none|<custom-ident>|match-element",visibility:"visible|hidden|collapse","white-space":"normal|pre|pre-wrap|pre-line|<'white-space-collapse'>||<'text-wrap-mode'>","white-space-collapse":"collapse|preserve|preserve-breaks|preserve-spaces|break-spaces",widows:"<integer>",width:"auto|<length-percentage [0,∞]>|min-content|max-content|fit-content|fit-content( <length-percentage [0,∞]> )|<calc-size()>|<anchor-size()>|stretch|<-non-standard-size>","will-change":"auto|<animateable-feature>#","word-break":"normal|break-all|keep-all|break-word|auto-phrase","word-spacing":"normal|<length>","word-wrap":"normal|break-word","writing-mode":"horizontal-tb|vertical-rl|vertical-lr|sideways-rl|sideways-lr|<svg-writing-mode>",x:"<length>|<percentage>",y:"<length>|<percentage>","z-index":"auto|<integer>",zoom:"normal|reset|<number [0,∞]>||<percentage [0,∞]>","-moz-background-clip":"padding|border","-moz-border-radius-bottomleft":"<'border-bottom-left-radius'>","-moz-border-radius-bottomright":"<'border-bottom-right-radius'>","-moz-border-radius-topleft":"<'border-top-left-radius'>","-moz-border-radius-topright":"<'border-bottom-right-radius'>","-moz-control-character-visibility":"visible|hidden","-moz-osx-font-smoothing":"auto|grayscale","-moz-user-select":"none|text|all|-moz-none","-ms-flex-align":"start|end|center|baseline|stretch","-ms-flex-item-align":"auto|start|end|center|baseline|stretch","-ms-flex-line-pack":"start|end|center|justify|distribute|stretch","-ms-flex-negative":"<'flex-shrink'>","-ms-flex-pack":"start|end|center|justify|distribute","-ms-flex-order":"<integer>","-ms-flex-positive":"<'flex-grow'>","-ms-flex-preferred-size":"<'flex-basis'>","-ms-interpolation-mode":"nearest-neighbor|bicubic","-ms-grid-column-align":"start|end|center|stretch","-ms-grid-row-align":"start|end|center|stretch","-ms-hyphenate-limit-last":"none|always|column|page|spread","-webkit-background-clip":"[<visual-box>|border|padding|content|text]#","-webkit-column-break-after":"always|auto|avoid","-webkit-column-break-before":"always|auto|avoid","-webkit-column-break-inside":"always|auto|avoid","-webkit-font-smoothing":"auto|none|antialiased|subpixel-antialiased","-webkit-mask-box-image":"[<url>|<gradient>|none] [<length-percentage>{4} <-webkit-mask-box-repeat>{2}]?","-webkit-print-color-adjust":"economy|exact","-webkit-text-security":"none|circle|disc|square","-webkit-user-drag":"none|element|auto",behavior:"<url>+",cue:"<'cue-before'> <'cue-after'>?","cue-after":"<url> <decibel>?|none","cue-before":"<url> <decibel>?|none","glyph-orientation-horizontal":"<angle>","glyph-orientation-vertical":"<angle>",kerning:"auto|<svg-length>",pause:"<'pause-before'> <'pause-after'>?","pause-after":"<time>|none|x-weak|weak|medium|strong|x-strong","pause-before":"<time>|none|x-weak|weak|medium|strong|x-strong","position-try-options":"<'position-try-fallbacks'>",rest:"<'rest-before'> <'rest-after'>?","rest-after":"<time>|none|x-weak|weak|medium|strong|x-strong","rest-before":"<time>|none|x-weak|weak|medium|strong|x-strong",speak:"auto|never|always","voice-balance":"<number>|left|center|right|leftwards|rightwards","voice-duration":"auto|<time>","voice-family":"[[<family-name>|<generic-voice>] ,]* [<family-name>|<generic-voice>]|preserve","voice-pitch":"<frequency>&&absolute|[[x-low|low|medium|high|x-high]||[<frequency>|<semitones>|<percentage>]]","voice-range":"<frequency>&&absolute|[[x-low|low|medium|high|x-high]||[<frequency>|<semitones>|<percentage>]]","voice-rate":"[normal|x-slow|slow|medium|fast|x-fast]||<percentage>","voice-stress":"normal|strong|moderate|none|reduced","voice-volume":"silent|[[x-soft|soft|medium|loud|x-loud]||<decibel>]","white-space-trim":"none|discard-before||discard-after||discard-inner"},atrules:{charset:{prelude:"<string>",descriptors:null},"counter-style":{prelude:"<counter-style-name>",descriptors:{"additive-symbols":"[<integer [0,∞]>&&<symbol>]#",fallback:"<counter-style-name>",negative:"<symbol> <symbol>?",pad:"<integer [0,∞]>&&<symbol>",prefix:"<symbol>",range:"[[<integer>|infinite]{2}]#|auto","speak-as":"auto|bullets|numbers|words|spell-out|<counter-style-name>",suffix:"<symbol>",symbols:"<symbol>+",system:"cyclic|numeric|alphabetic|symbolic|additive|[fixed <integer>?]|[extends <counter-style-name>]"}},container:{prelude:"[<container-name>]? <container-condition>",descriptors:null},document:{prelude:"[<url>|url-prefix( <string> )|domain( <string> )|media-document( <string> )|regexp( <string> )]#",descriptors:null},"font-face":{prelude:null,descriptors:{"ascent-override":"normal|<percentage>","descent-override":"normal|<percentage>","font-display":"auto|block|swap|fallback|optional","font-family":"<family-name>","font-feature-settings":"normal|<feature-tag-value>#","font-stretch":"<font-stretch-absolute>{1,2}","font-style":"normal|italic|oblique <angle>{0,2}","font-variation-settings":"normal|[<string> <number>]#","font-weight":"<font-weight-absolute>{1,2}","line-gap-override":"normal|<percentage>","size-adjust":"<percentage>",src:"[<url> [format( <string># )]?|local( <family-name> )]#","unicode-range":"<urange>#"}},"font-feature-values":{prelude:"<family-name>#",descriptors:null},"font-palette-values":{prelude:"<dashed-ident>",descriptors:{"base-palette":"light|dark|<integer [0,∞]>","font-family":"<family-name>#","override-colors":"[<integer [0,∞]> <color>]#"}},import:{prelude:"[<string>|<url>] [layer|layer( <layer-name> )]? [supports( [<supports-condition>|<declaration>] )]? <media-query-list>?",descriptors:null},keyframes:{prelude:"<keyframes-name>",descriptors:null},layer:{prelude:"[<layer-name>#|<layer-name>?]",descriptors:null},media:{prelude:"<media-query-list>",descriptors:null},namespace:{prelude:"<namespace-prefix>? [<string>|<url>]",descriptors:null},page:{prelude:"<page-selector-list>",descriptors:{bleed:"auto|<length>",marks:"none|[crop||cross]","page-orientation":"upright|rotate-left|rotate-right",size:"<length [0,∞]>{1,2}|auto|[<page-size>||[portrait|landscape]]"}},"position-try":{prelude:"<dashed-ident>",descriptors:{top:"<'top'>",left:"<'left'>",bottom:"<'bottom'>",right:"<'right'>","inset-block-start":"<'inset-block-start'>","inset-block-end":"<'inset-block-end'>","inset-inline-start":"<'inset-inline-start'>","inset-inline-end":"<'inset-inline-end'>","inset-block":"<'inset-block'>","inset-inline":"<'inset-inline'>",inset:"<'inset'>","margin-top":"<'margin-top'>","margin-left":"<'margin-left'>","margin-bottom":"<'margin-bottom'>","margin-right":"<'margin-right'>","margin-block-start":"<'margin-block-start'>","margin-block-end":"<'margin-block-end'>","margin-inline-start":"<'margin-inline-start'>","margin-inline-end":"<'margin-inline-end'>",margin:"<'margin'>","margin-block":"<'margin-block'>","margin-inline":"<'margin-inline'>",width:"<'width'>",height:"<'height'>","min-width":"<'min-width'>","min-height":"<'min-height'>","max-width":"<'max-width'>","max-height":"<'max-height'>","block-size":"<'block-size'>","inline-size":"<'inline-size'>","min-block-size":"<'min-block-size'>","min-inline-size":"<'min-inline-size'>","max-block-size":"<'max-block-size'>","max-inline-size":"<'max-inline-size'>","align-self":"<'align-self'>|anchor-center","justify-self":"<'justify-self'>|anchor-center"}},property:{prelude:"<custom-property-name>",descriptors:{inherits:"true|false","initial-value":"<declaration-value>?",syntax:"<string>"}},scope:{prelude:"[( <scope-start> )]? [to ( <scope-end> )]?",descriptors:null},"starting-style":{prelude:null,descriptors:null},supports:{prelude:"<supports-condition>",descriptors:null},"view-transition":{prelude:null,descriptors:{navigation:"auto|none",types:"none|<custom-ident>+"}},"font-features-values":{prelude:"[<string>|<custom-ident>]+",descriptors:{"font-display":"auto|block|swap|fallback|optional"}}}},xt=43,ut=45,Vr=110,rn=!0,ib=!1;function Kr(e,t){let n=this.tokenStart+e;const r=this.charCodeAt(n);for((r===xt||r===ut)&&(t&&this.error("Number sign is not allowed"),n++);n<this.tokenEnd;n++)Ye(this.charCodeAt(n))||this.error("Integer is expected",n)}function Cn(e){return Kr.call(this,0,e)}function Kt(e,t){if(!this.cmpChar(this.tokenStart+e,t)){let n="";switch(t){case Vr:n="N is expected";break;case ut:n="HyphenMinus is expected";break}this.error(n,this.tokenStart+e)}}function Us(){let e=0,t=0,n=this.tokenType;for(;n===Le||n===qe;)n=this.lookupType(++e);if(n!==fe)if(this.isDelim(xt,e)||this.isDelim(ut,e)){t=this.isDelim(xt,e)?xt:ut;do n=this.lookupType(++e);while(n===Le||n===qe);n!==fe&&(this.skip(e),Cn.call(this,rn))}else return null;return e>0&&this.skip(e),t===0&&(n=this.charCodeAt(this.tokenStart),n!==xt&&n!==ut&&this.error("Number sign is expected")),Cn.call(this,t!==0),t===ut?"-"+this.consume(fe):this.consume(fe)}const sb="AnPlusB",ab={a:[String,null],b:[String,null]};function rl(){const e=this.tokenStart;let t=null,n=null;if(this.tokenType===fe)Cn.call(this,ib),n=this.consume(fe);else if(this.tokenType===ne&&this.cmpChar(this.tokenStart,ut))switch(t="-1",Kt.call(this,1,Vr),this.tokenEnd-this.tokenStart){case 2:this.next(),n=Us.call(this);break;case 3:Kt.call(this,2,ut),this.next(),this.skipSC(),Cn.call(this,rn),n="-"+this.consume(fe);break;default:Kt.call(this,2,ut),Kr.call(this,3,rn),this.next(),n=this.substrToCursor(e+2)}else if(this.tokenType===ne||this.isDelim(xt)&&this.lookupType(1)===ne){let r=0;switch(t="1",this.isDelim(xt)&&(r=1,this.next()),Kt.call(this,0,Vr),this.tokenEnd-this.tokenStart){case 1:this.next(),n=Us.call(this);break;case 2:Kt.call(this,1,ut),this.next(),this.skipSC(),Cn.call(this,rn),n="-"+this.consume(fe);break;default:Kt.call(this,1,ut),Kr.call(this,2,rn),this.next(),n=this.substrToCursor(e+r+1)}}else if(this.tokenType===be){const r=this.charCodeAt(this.tokenStart),i=r===xt||r===ut;let s=this.tokenStart+i;for(;s<this.tokenEnd&&Ye(this.charCodeAt(s));s++);s===this.tokenStart+i&&this.error("Integer is expected",this.tokenStart+i),Kt.call(this,s-this.tokenStart,Vr),t=this.substring(e,s),s+1===this.tokenEnd?(this.next(),n=Us.call(this)):(Kt.call(this,s-this.tokenStart+1,ut),s+2===this.tokenEnd?(this.next(),this.skipSC(),Cn.call(this,rn),n="-"+this.consume(fe)):(Kr.call(this,s-this.tokenStart+2,rn),this.next(),n=this.substrToCursor(s+1)))}else this.error();return t!==null&&t.charCodeAt(0)===xt&&(t=t.substr(1)),n!==null&&n.charCodeAt(0)===xt&&(n=n.substr(1)),{type:"AnPlusB",loc:this.getLocation(e,this.tokenStart),a:t,b:n}}function ob(e){if(e.a){const t=e.a==="+1"&&"n"||e.a==="1"&&"n"||e.a==="-1"&&"-n"||e.a+"n";if(e.b){const n=e.b[0]==="-"||e.b[0]==="+"?e.b:"+"+e.b;this.tokenize(t+n)}else this.tokenize(t)}else this.tokenize(e.b)}const ub=Object.freeze(Object.defineProperty({__proto__:null,generate:ob,name:sb,parse:rl,structure:ab},Symbol.toStringTag,{value:"Module"}));function il(){return this.Raw(this.consumeUntilLeftCurlyBracketOrSemicolon,!0)}function lb(){for(let e=1,t;t=this.lookupType(e);e++){if(t===ot)return!0;if(t===ze||t===Be)return!1}return!1}const cb="Atrule",db="atrule",hb={name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]};function sl(e=!1){const t=this.tokenStart;let n,r,i=null,s=null;switch(this.eat(Be),n=this.substrToCursor(t+1),r=n.toLowerCase(),this.skipSC(),this.eof===!1&&this.tokenType!==ze&&this.tokenType!==Ke&&(this.parseAtrulePrelude?i=this.parseWithFallback(this.AtrulePrelude.bind(this,n,e),il):i=il.call(this,this.tokenIndex),this.skipSC()),this.tokenType){case Ke:this.next();break;case ze:hasOwnProperty.call(this.atrule,r)&&typeof this.atrule[r].block=="function"?s=this.atrule[r].block.call(this,e):s=this.Block(lb.call(this));break}return{type:"Atrule",loc:this.getLocation(t,this.tokenStart),name:n,prelude:i,block:s}}function fb(e){this.token(Be,"@"+e.name),e.prelude!==null&&this.node(e.prelude),e.block?this.node(e.block):this.token(Ke,";")}const pb=Object.freeze(Object.defineProperty({__proto__:null,generate:fb,name:cb,parse:sl,structure:hb,walkContext:db},Symbol.toStringTag,{value:"Module"})),mb="AtrulePrelude",gb="atrulePrelude",bb={children:[[]]};function al(e){let t=null;return e!==null&&(e=e.toLowerCase()),this.skipSC(),hasOwnProperty.call(this.atrule,e)&&typeof this.atrule[e].prelude=="function"?t=this.atrule[e].prelude.call(this):t=this.readSequence(this.scope.AtrulePrelude),this.skipSC(),this.eof!==!0&&this.tokenType!==ze&&this.tokenType!==Ke&&this.error("Semicolon or block is expected"),{type:"AtrulePrelude",loc:this.getLocationFromList(t),children:t}}function Eb(e){this.children(e)}const yb=Object.freeze(Object.defineProperty({__proto__:null,generate:Eb,name:mb,parse:al,structure:bb,walkContext:gb},Symbol.toStringTag,{value:"Module"})),Tb=36,ol=42,Xr=61,_b=94,Hs=124,kb=126;function wb(){this.eof&&this.error("Unexpected end of input");const e=this.tokenStart;let t=!1;return this.isDelim(ol)?(t=!0,this.next()):this.isDelim(Hs)||this.eat(ne),this.isDelim(Hs)?this.charCodeAt(this.tokenStart+1)!==Xr?(this.next(),this.eat(ne)):t&&this.error("Identifier is expected",this.tokenEnd):t&&this.error("Vertical line is expected"),{type:"Identifier",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}}function Ab(){const e=this.tokenStart,t=this.charCodeAt(e);return t!==Xr&&t!==kb&&t!==_b&&t!==Tb&&t!==ol&&t!==Hs&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.next(),t!==Xr&&(this.isDelim(Xr)||this.error("Equal sign is expected"),this.next()),this.substrToCursor(e)}const Sb="AttributeSelector",Cb={name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]};function ul(){const e=this.tokenStart;let t,n=null,r=null,i=null;return this.eat(at),this.skipSC(),t=wb.call(this),this.skipSC(),this.tokenType!==dt&&(this.tokenType!==ne&&(n=Ab.call(this),this.skipSC(),r=this.tokenType===gt?this.String():this.Identifier(),this.skipSC()),this.tokenType===ne&&(i=this.consume(ne),this.skipSC())),this.eat(dt),{type:"AttributeSelector",loc:this.getLocation(e,this.tokenStart),name:t,matcher:n,value:r,flags:i}}function xb(e){this.token(ge,"["),this.node(e.name),e.matcher!==null&&(this.tokenize(e.matcher),this.node(e.value)),e.flags!==null&&this.token(ne,e.flags),this.token(ge,"]")}const Nb=Object.freeze(Object.defineProperty({__proto__:null,generate:xb,name:Sb,parse:ul,structure:Cb},Symbol.toStringTag,{value:"Module"})),Ib=38;function ll(){return this.Raw(null,!0)}function cl(){return this.parseWithFallback(this.Rule,ll)}function dl(){return this.Raw(this.consumeUntilSemicolonIncluded,!0)}function vb(){if(this.tokenType===Ke)return dl.call(this,this.tokenIndex);const e=this.parseWithFallback(this.Declaration,dl);return this.tokenType===Ke&&this.next(),e}const Ob="Block",Lb="block",Rb={children:[["Atrule","Rule","Declaration"]]};function hl(e){const t=e?vb:cl,n=this.tokenStart;let r=this.createList();this.eat(ze);e:for(;!this.eof;)switch(this.tokenType){case ot:break e;case Le:case qe:this.next();break;case Be:r.push(this.parseWithFallback(this.Atrule.bind(this,e),ll));break;default:e&&this.isDelim(Ib)?r.push(cl.call(this)):r.push(t.call(this))}return this.eof||this.eat(ot),{type:"Block",loc:this.getLocation(n,this.tokenStart),children:r}}function Pb(e){this.token(ze,"{"),this.children(e,t=>{t.type==="Declaration"&&this.token(Ke,";")}),this.token(ot,"}")}const Db=Object.freeze(Object.defineProperty({__proto__:null,generate:Pb,name:Ob,parse:hl,structure:Rb,walkContext:Lb},Symbol.toStringTag,{value:"Module"})),Mb="Brackets",Bb={children:[[]]};function fl(e,t){const n=this.tokenStart;let r=null;return this.eat(at),r=e.call(this,t),this.eof||this.eat(dt),{type:"Brackets",loc:this.getLocation(n,this.tokenStart),children:r}}function Fb(e){this.token(ge,"["),this.children(e),this.token(ge,"]")}const Ub=Object.freeze(Object.defineProperty({__proto__:null,generate:Fb,name:Mb,parse:fl,structure:Bb},Symbol.toStringTag,{value:"Module"})),Hb="CDC",zb=[];function pl(){const e=this.tokenStart;return this.eat(rt),{type:"CDC",loc:this.getLocation(e,this.tokenStart)}}function $b(){this.token(rt,"-->")}const jb=Object.freeze(Object.defineProperty({__proto__:null,generate:$b,name:Hb,parse:pl,structure:zb},Symbol.toStringTag,{value:"Module"})),qb="CDO",Yb=[];function ml(){const e=this.tokenStart;return this.eat(Wn),{type:"CDO",loc:this.getLocation(e,this.tokenStart)}}function Wb(){this.token(Wn,"<!--")}const Gb=Object.freeze(Object.defineProperty({__proto__:null,generate:Wb,name:qb,parse:ml,structure:Yb},Symbol.toStringTag,{value:"Module"})),Vb=46,Kb="ClassSelector",Xb={name:String};function gl(){return this.eatDelim(Vb),{type:"ClassSelector",loc:this.getLocation(this.tokenStart-1,this.tokenEnd),name:this.consume(ne)}}function Qb(e){this.token(ge,"."),this.token(ne,e.name)}const Zb=Object.freeze(Object.defineProperty({__proto__:null,generate:Qb,name:Kb,parse:gl,structure:Xb},Symbol.toStringTag,{value:"Module"})),Jb=43,bl=47,e1=62,t1=126,n1="Combinator",r1={name:String};function El(){const e=this.tokenStart;let t;switch(this.tokenType){case Le:t=" ";break;case ge:switch(this.charCodeAt(this.tokenStart)){case e1:case Jb:case t1:this.next();break;case bl:this.next(),this.eatIdent("deep"),this.eatDelim(bl);break;default:this.error("Combinator is expected")}t=this.substrToCursor(e);break}return{type:"Combinator",loc:this.getLocation(e,this.tokenStart),name:t}}function i1(e){this.tokenize(e.name)}const s1=Object.freeze(Object.defineProperty({__proto__:null,generate:i1,name:n1,parse:El,structure:r1},Symbol.toStringTag,{value:"Module"})),a1=42,o1=47,u1="Comment",l1={value:String};function yl(){const e=this.tokenStart;let t=this.tokenEnd;return this.eat(qe),t-e+2>=2&&this.charCodeAt(t-2)===a1&&this.charCodeAt(t-1)===o1&&(t-=2),{type:"Comment",loc:this.getLocation(e,this.tokenStart),value:this.substring(e+2,t)}}function c1(e){this.token(qe,"/*"+e.value+"*/")}const d1=Object.freeze(Object.defineProperty({__proto__:null,generate:c1,name:u1,parse:yl,structure:l1},Symbol.toStringTag,{value:"Module"})),h1=new Set([Ve,de,qt]),f1="Condition",p1={kind:String,children:[["Identifier","Feature","FeatureFunction","FeatureRange","SupportsDeclaration"]]};function Tl(e){return this.lookupTypeNonSC(1)===ne&&h1.has(this.lookupTypeNonSC(2))?this.Feature(e):this.FeatureRange(e)}const m1={media:Tl,container:Tl,supports(){return this.SupportsDeclaration()}};function _l(e="media"){const t=this.createList();e:for(;!this.eof;)switch(this.tokenType){case qe:case Le:this.next();continue;case ne:t.push(this.Identifier());break;case _e:{let n=this.parseWithFallback(()=>m1[e].call(this,e),()=>null);n||(n=this.parseWithFallback(()=>{this.eat(_e);const r=this.Condition(e);return this.eat(de),r},()=>this.GeneralEnclosed(e))),t.push(n);break}case pe:{let n=this.parseWithFallback(()=>this.FeatureFunction(e),()=>null);n||(n=this.GeneralEnclosed(e)),t.push(n);break}default:break e}return t.isEmpty&&this.error("Condition is expected"),{type:"Condition",loc:this.getLocationFromList(t),kind:e,children:t}}function g1(e){e.children.forEach(t=>{t.type==="Condition"?(this.token(_e,"("),this.node(t),this.token(de,")")):this.node(t)})}const b1=Object.freeze(Object.defineProperty({__proto__:null,generate:g1,name:f1,parse:_l,structure:p1},Symbol.toStringTag,{value:"Module"})),kl=33,E1=35,y1=36,T1=38,_1=42,k1=43,wl=47;function w1(){return this.Raw(this.consumeUntilExclamationMarkOrSemicolon,!0)}function A1(){return this.Raw(this.consumeUntilExclamationMarkOrSemicolon,!1)}function S1(){const e=this.tokenIndex,t=this.Value();return t.type!=="Raw"&&this.eof===!1&&this.tokenType!==Ke&&this.isDelim(kl)===!1&&this.isBalanceEdge(e)===!1&&this.error(),t}const C1="Declaration",x1="declaration",N1={important:[Boolean,String],property:String,value:["Value","Raw"]};function Al(){const e=this.tokenStart,t=this.tokenIndex,n=v1.call(this),r=cs(n),i=r?this.parseCustomProperty:this.parseValue,s=r?A1:w1;let o=!1,a;this.skipSC(),this.eat(Ve);const u=this.tokenIndex;if(r||this.skipSC(),i?a=this.parseWithFallback(S1,s):a=s.call(this,this.tokenIndex),r&&a.type==="Value"&&a.children.isEmpty){for(let c=u-this.tokenIndex;c<=0;c++)if(this.lookupType(c)===Le){a.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}return this.isDelim(kl)&&(o=O1.call(this),this.skipSC()),this.eof===!1&&this.tokenType!==Ke&&this.isBalanceEdge(t)===!1&&this.error(),{type:"Declaration",loc:this.getLocation(e,this.tokenStart),important:o,property:n,value:a}}function I1(e){this.token(ne,e.property),this.token(Ve,":"),this.node(e.value),e.important&&(this.token(ge,"!"),this.token(ne,e.important===!0?"important":e.important))}function v1(){const e=this.tokenStart;if(this.tokenType===ge)switch(this.charCodeAt(this.tokenStart)){case _1:case y1:case k1:case E1:case T1:this.next();break;case wl:this.next(),this.isDelim(wl)&&this.next();break}return this.tokenType===xe?this.eat(xe):this.eat(ne),this.substrToCursor(e)}function O1(){this.eat(ge),this.skipSC();const e=this.consume(ne);return e==="important"?!0:e}const L1=Object.freeze(Object.defineProperty({__proto__:null,generate:I1,name:C1,parse:Al,structure:N1,walkContext:x1},Symbol.toStringTag,{value:"Module"})),R1=38;function zs(){return this.Raw(this.consumeUntilSemicolonIncluded,!0)}const P1="DeclarationList",D1={children:[["Declaration","Atrule","Rule"]]};function Sl(){const e=this.createList();for(;!this.eof;)switch(this.tokenType){case Le:case qe:case Ke:this.next();break;case Be:e.push(this.parseWithFallback(this.Atrule.bind(this,!0),zs));break;default:this.isDelim(R1)?e.push(this.parseWithFallback(this.Rule,zs)):e.push(this.parseWithFallback(this.Declaration,zs))}return{type:"DeclarationList",loc:this.getLocationFromList(e),children:e}}function M1(e){this.children(e,t=>{t.type==="Declaration"&&this.token(Ke,";")})}const B1=Object.freeze(Object.defineProperty({__proto__:null,generate:M1,name:P1,parse:Sl,structure:D1},Symbol.toStringTag,{value:"Module"})),F1="Dimension",U1={value:String,unit:String};function Cl(){const e=this.tokenStart,t=this.consumeNumber(be);return{type:"Dimension",loc:this.getLocation(e,this.tokenStart),value:t,unit:this.substring(e+t.length,this.tokenStart)}}function H1(e){this.token(be,e.value+e.unit)}const z1=Object.freeze(Object.defineProperty({__proto__:null,generate:H1,name:F1,parse:Cl,structure:U1},Symbol.toStringTag,{value:"Module"})),$1=47,j1="Feature",q1={kind:String,name:String,value:["Identifier","Number","Dimension","Ratio","Function",null]};function xl(e){const t=this.tokenStart;let n,r=null;if(this.eat(_e),this.skipSC(),n=this.consume(ne),this.skipSC(),this.tokenType!==de){switch(this.eat(Ve),this.skipSC(),this.tokenType){case fe:this.lookupNonWSType(1)===ge?r=this.Ratio():r=this.Number();break;case be:r=this.Dimension();break;case ne:r=this.Identifier();break;case pe:r=this.parseWithFallback(()=>{const i=this.Function(this.readSequence,this.scope.Value);return this.skipSC(),this.isDelim($1)&&this.error(),i},()=>this.Ratio());break;default:this.error("Number, dimension, ratio or identifier is expected")}this.skipSC()}return this.eof||this.eat(de),{type:"Feature",loc:this.getLocation(t,this.tokenStart),kind:e,name:n,value:r}}function Y1(e){this.token(_e,"("),this.token(ne,e.name),e.value!==null&&(this.token(Ve,":"),this.node(e.value)),this.token(de,")")}const W1=Object.freeze(Object.defineProperty({__proto__:null,generate:Y1,name:j1,parse:xl,structure:q1},Symbol.toStringTag,{value:"Module"})),G1="FeatureFunction",V1={kind:String,feature:String,value:["Declaration","Selector"]};function K1(e,t){const r=(this.features[e]||{})[t];return typeof r!="function"&&this.error(`Unknown feature ${t}()`),r}function Nl(e="unknown"){const t=this.tokenStart,n=this.consumeFunctionName(),r=K1.call(this,e,n.toLowerCase());this.skipSC();const i=this.parseWithFallback(()=>{const s=this.tokenIndex,o=r.call(this);return this.eof===!1&&this.isBalanceEdge(s)===!1&&this.error(),o},()=>this.Raw(null,!1));return this.eof||this.eat(de),{type:"FeatureFunction",loc:this.getLocation(t,this.tokenStart),kind:e,feature:n,value:i}}function X1(e){this.token(pe,e.feature+"("),this.node(e.value),this.token(de,")")}const Q1=Object.freeze(Object.defineProperty({__proto__:null,generate:X1,name:G1,parse:Nl,structure:V1},Symbol.toStringTag,{value:"Module"})),Il=47,Z1=60,vl=61,J1=62,eE="FeatureRange",tE={kind:String,left:["Identifier","Number","Dimension","Ratio","Function"],leftComparison:String,middle:["Identifier","Number","Dimension","Ratio","Function"],rightComparison:[String,null],right:["Identifier","Number","Dimension","Ratio","Function",null]};function $s(){switch(this.skipSC(),this.tokenType){case fe:return this.isDelim(Il,this.lookupOffsetNonSC(1))?this.Ratio():this.Number();case be:return this.Dimension();case ne:return this.Identifier();case pe:return this.parseWithFallback(()=>{const e=this.Function(this.readSequence,this.scope.Value);return this.skipSC(),this.isDelim(Il)&&this.error(),e},()=>this.Ratio());default:this.error("Number, dimension, ratio or identifier is expected")}}function Ol(e){if(this.skipSC(),this.isDelim(Z1)||this.isDelim(J1)){const t=this.source[this.tokenStart];return this.next(),this.isDelim(vl)?(this.next(),t+"="):t}if(this.isDelim(vl))return"=";this.error(`Expected ${e?'":", ':""}"<", ">", "=" or ")"`)}function Ll(e="unknown"){const t=this.tokenStart;this.skipSC(),this.eat(_e);const n=$s.call(this),r=Ol.call(this,n.type==="Identifier"),i=$s.call(this);let s=null,o=null;return this.lookupNonWSType(0)!==de&&(s=Ol.call(this),o=$s.call(this)),this.skipSC(),this.eat(de),{type:"FeatureRange",loc:this.getLocation(t,this.tokenStart),kind:e,left:n,leftComparison:r,middle:i,rightComparison:s,right:o}}function nE(e){this.token(_e,"("),this.node(e.left),this.tokenize(e.leftComparison),this.node(e.middle),e.right&&(this.tokenize(e.rightComparison),this.node(e.right)),this.token(de,")")}const rE=Object.freeze(Object.defineProperty({__proto__:null,generate:nE,name:eE,parse:Ll,structure:tE},Symbol.toStringTag,{value:"Module"})),iE="Function",sE="function",aE={name:String,children:[[]]};function Rl(e,t){const n=this.tokenStart,r=this.consumeFunctionName(),i=r.toLowerCase();let s;return s=t.hasOwnProperty(i)?t[i].call(this,t):e.call(this,t),this.eof||this.eat(de),{type:"Function",loc:this.getLocation(n,this.tokenStart),name:r,children:s}}function oE(e){this.token(pe,e.name+"("),this.children(e),this.token(de,")")}const uE=Object.freeze(Object.defineProperty({__proto__:null,generate:oE,name:iE,parse:Rl,structure:aE,walkContext:sE},Symbol.toStringTag,{value:"Module"})),lE="GeneralEnclosed",cE={kind:String,function:[String,null],children:[[]]};function Pl(e){const t=this.tokenStart;let n=null;this.tokenType===pe?n=this.consumeFunctionName():this.eat(_e);const r=this.parseWithFallback(()=>{const i=this.tokenIndex,s=this.readSequence(this.scope.Value);return this.eof===!1&&this.isBalanceEdge(i)===!1&&this.error(),s},()=>this.createSingleNodeList(this.Raw(null,!1)));return this.eof||this.eat(de),{type:"GeneralEnclosed",loc:this.getLocation(t,this.tokenStart),kind:e,function:n,children:r}}function dE(e){e.function?this.token(pe,e.function+"("):this.token(_e,"("),this.children(e),this.token(de,")")}const hE=Object.freeze(Object.defineProperty({__proto__:null,generate:dE,name:lE,parse:Pl,structure:cE},Symbol.toStringTag,{value:"Module"})),fE="XXX",pE="Hash",mE={value:String};function Dl(){const e=this.tokenStart;return this.eat(xe),{type:"Hash",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e+1)}}function gE(e){this.token(xe,"#"+e.value)}const bE=Object.freeze(Object.defineProperty({__proto__:null,generate:gE,name:pE,parse:Dl,structure:mE,xxx:fE},Symbol.toStringTag,{value:"Module"})),EE="Identifier",yE={name:String};function Ml(){return{type:"Identifier",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:this.consume(ne)}}function TE(e){this.token(ne,e.name)}const _E=Object.freeze(Object.defineProperty({__proto__:null,generate:TE,name:EE,parse:Ml,structure:yE},Symbol.toStringTag,{value:"Module"})),kE="IdSelector",wE={name:String};function Bl(){const e=this.tokenStart;return this.eat(xe),{type:"IdSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e+1)}}function AE(e){this.token(ge,"#"+e.name)}const SE=Object.freeze(Object.defineProperty({__proto__:null,generate:AE,name:kE,parse:Bl,structure:wE},Symbol.toStringTag,{value:"Module"})),CE=46,xE="Layer",NE={name:String};function Fl(){let e=this.tokenStart,t=this.consume(ne);for(;this.isDelim(CE);)this.eat(ge),t+="."+this.consume(ne);return{type:"Layer",loc:this.getLocation(e,this.tokenStart),name:t}}function IE(e){this.tokenize(e.name)}const vE=Object.freeze(Object.defineProperty({__proto__:null,generate:IE,name:xE,parse:Fl,structure:NE},Symbol.toStringTag,{value:"Module"})),OE="LayerList",LE={children:[["Layer"]]};function Ul(){const e=this.createList();for(this.skipSC();!this.eof&&(e.push(this.Layer()),this.lookupTypeNonSC(0)===it);)this.skipSC(),this.next(),this.skipSC();return{type:"LayerList",loc:this.getLocationFromList(e),children:e}}function RE(e){this.children(e,()=>this.token(it,","))}const PE=Object.freeze(Object.defineProperty({__proto__:null,generate:RE,name:OE,parse:Ul,structure:LE},Symbol.toStringTag,{value:"Module"})),DE="MediaQuery",ME={modifier:[String,null],mediaType:[String,null],condition:["Condition",null]};function Hl(){const e=this.tokenStart;let t=null,n=null,r=null;if(this.skipSC(),this.tokenType===ne&&this.lookupTypeNonSC(1)!==_e){const i=this.consume(ne),s=i.toLowerCase();switch(s==="not"||s==="only"?(this.skipSC(),t=s,n=this.consume(ne)):n=i,this.lookupTypeNonSC(0)){case ne:{this.skipSC(),this.eatIdent("and"),r=this.Condition("media");break}case ze:case Ke:case it:case qt:break;default:this.error("Identifier or parenthesis is expected")}}else switch(this.tokenType){case ne:case _e:case pe:{r=this.Condition("media");break}case ze:case Ke:case qt:break;default:this.error("Identifier or parenthesis is expected")}return{type:"MediaQuery",loc:this.getLocation(e,this.tokenStart),modifier:t,mediaType:n,condition:r}}function BE(e){e.mediaType?(e.modifier&&this.token(ne,e.modifier),this.token(ne,e.mediaType),e.condition&&(this.token(ne,"and"),this.node(e.condition))):e.condition&&this.node(e.condition)}const FE=Object.freeze(Object.defineProperty({__proto__:null,generate:BE,name:DE,parse:Hl,structure:ME},Symbol.toStringTag,{value:"Module"})),UE="MediaQueryList",HE={children:[["MediaQuery"]]};function zl(){const e=this.createList();for(this.skipSC();!this.eof&&(e.push(this.MediaQuery()),this.tokenType===it);)this.next();return{type:"MediaQueryList",loc:this.getLocationFromList(e),children:e}}function zE(e){this.children(e,()=>this.token(it,","))}const $E=Object.freeze(Object.defineProperty({__proto__:null,generate:zE,name:UE,parse:zl,structure:HE},Symbol.toStringTag,{value:"Module"})),jE=38,qE="NestingSelector",YE={};function $l(){const e=this.tokenStart;return this.eatDelim(jE),{type:"NestingSelector",loc:this.getLocation(e,this.tokenStart)}}function WE(){this.token(ge,"&")}const GE=Object.freeze(Object.defineProperty({__proto__:null,generate:WE,name:qE,parse:$l,structure:YE},Symbol.toStringTag,{value:"Module"})),VE="Nth",KE={nth:["AnPlusB","Identifier"],selector:["SelectorList",null]};function jl(){this.skipSC();const e=this.tokenStart;let t=e,n=null,r;return this.lookupValue(0,"odd")||this.lookupValue(0,"even")?r=this.Identifier():r=this.AnPlusB(),t=this.tokenStart,this.skipSC(),this.lookupValue(0,"of")&&(this.next(),n=this.SelectorList(),t=this.tokenStart),{type:"Nth",loc:this.getLocation(e,t),nth:r,selector:n}}function XE(e){this.node(e.nth),e.selector!==null&&(this.token(ne,"of"),this.node(e.selector))}const QE=Object.freeze(Object.defineProperty({__proto__:null,generate:XE,name:VE,parse:jl,structure:KE},Symbol.toStringTag,{value:"Module"})),ZE="Number",JE={value:String};function ql(){return{type:"Number",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume(fe)}}function ey(e){this.token(fe,e.value)}const ty=Object.freeze(Object.defineProperty({__proto__:null,generate:ey,name:ZE,parse:ql,structure:JE},Symbol.toStringTag,{value:"Module"})),ny="Operator",ry={value:String};function Yl(){const e=this.tokenStart;return this.next(),{type:"Operator",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function iy(e){this.tokenize(e.value)}const sy=Object.freeze(Object.defineProperty({__proto__:null,generate:iy,name:ny,parse:Yl,structure:ry},Symbol.toStringTag,{value:"Module"})),ay="Parentheses",oy={children:[[]]};function Wl(e,t){const n=this.tokenStart;let r=null;return this.eat(_e),r=e.call(this,t),this.eof||this.eat(de),{type:"Parentheses",loc:this.getLocation(n,this.tokenStart),children:r}}function uy(e){this.token(_e,"("),this.children(e),this.token(de,")")}const ly=Object.freeze(Object.defineProperty({__proto__:null,generate:uy,name:ay,parse:Wl,structure:oy},Symbol.toStringTag,{value:"Module"})),cy="Percentage",dy={value:String};function Gl(){return{type:"Percentage",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(Oe)}}function hy(e){this.token(Oe,e.value+"%")}const fy=Object.freeze(Object.defineProperty({__proto__:null,generate:hy,name:cy,parse:Gl,structure:dy},Symbol.toStringTag,{value:"Module"})),py="PseudoClassSelector",my="function",gy={name:String,children:[["Raw"],null]};function Vl(){const e=this.tokenStart;let t=null,n,r;return this.eat(Ve),this.tokenType===pe?(n=this.consumeFunctionName(),r=n.toLowerCase(),this.lookupNonWSType(0)==de?t=this.createList():hasOwnProperty.call(this.pseudo,r)?(this.skipSC(),t=this.pseudo[r].call(this),this.skipSC()):(t=this.createList(),t.push(this.Raw(null,!1))),this.eat(de)):n=this.consume(ne),{type:"PseudoClassSelector",loc:this.getLocation(e,this.tokenStart),name:n,children:t}}function by(e){this.token(Ve,":"),e.children===null?this.token(ne,e.name):(this.token(pe,e.name+"("),this.children(e),this.token(de,")"))}const Ey=Object.freeze(Object.defineProperty({__proto__:null,generate:by,name:py,parse:Vl,structure:gy,walkContext:my},Symbol.toStringTag,{value:"Module"})),yy="PseudoElementSelector",Ty="function",_y={name:String,children:[["Raw"],null]};function Kl(){const e=this.tokenStart;let t=null,n,r;return this.eat(Ve),this.eat(Ve),this.tokenType===pe?(n=this.consumeFunctionName(),r=n.toLowerCase(),this.lookupNonWSType(0)==de?t=this.createList():hasOwnProperty.call(this.pseudo,r)?(this.skipSC(),t=this.pseudo[r].call(this),this.skipSC()):(t=this.createList(),t.push(this.Raw(null,!1))),this.eat(de)):n=this.consume(ne),{type:"PseudoElementSelector",loc:this.getLocation(e,this.tokenStart),name:n,children:t}}function ky(e){this.token(Ve,":"),this.token(Ve,":"),e.children===null?this.token(ne,e.name):(this.token(pe,e.name+"("),this.children(e),this.token(de,")"))}const wy=Object.freeze(Object.defineProperty({__proto__:null,generate:ky,name:yy,parse:Kl,structure:_y,walkContext:Ty},Symbol.toStringTag,{value:"Module"})),Xl=47;function Ql(){switch(this.skipSC(),this.tokenType){case fe:return this.Number();case pe:return this.Function(this.readSequence,this.scope.Value);default:this.error("Number of function is expected")}}const Ay="Ratio",Sy={left:["Number","Function"],right:["Number","Function",null]};function Zl(){const e=this.tokenStart,t=Ql.call(this);let n=null;return this.skipSC(),this.isDelim(Xl)&&(this.eatDelim(Xl),n=Ql.call(this)),{type:"Ratio",loc:this.getLocation(e,this.tokenStart),left:t,right:n}}function Cy(e){this.node(e.left),this.token(ge,"/"),e.right?this.node(e.right):this.node(fe,1)}const xy=Object.freeze(Object.defineProperty({__proto__:null,generate:Cy,name:Ay,parse:Zl,structure:Sy},Symbol.toStringTag,{value:"Module"}));function Ny(){return this.tokenIndex>0&&this.lookupType(-1)===Le?this.tokenIndex>1?this.getTokenStart(this.tokenIndex-1):this.firstCharOffset:this.tokenStart}const Iy="Raw",vy={value:String};function Jl(e,t){const n=this.getTokenStart(this.tokenIndex);let r;return this.skipUntilBalanced(this.tokenIndex,e||this.consumeUntilBalanceEnd),t&&this.tokenStart>n?r=Ny.call(this):r=this.tokenStart,{type:"Raw",loc:this.getLocation(n,r),value:this.substring(n,r)}}function Oy(e){this.tokenize(e.value)}const Ly=Object.freeze(Object.defineProperty({__proto__:null,generate:Oy,name:Iy,parse:Jl,structure:vy},Symbol.toStringTag,{value:"Module"}));function ec(){return this.Raw(this.consumeUntilLeftCurlyBracket,!0)}function Ry(){const e=this.SelectorList();return e.type!=="Raw"&&this.eof===!1&&this.tokenType!==ze&&this.error(),e}const Py="Rule",Dy="rule",My={prelude:["SelectorList","Raw"],block:["Block"]};function tc(){const e=this.tokenIndex,t=this.tokenStart;let n,r;return this.parseRulePrelude?n=this.parseWithFallback(Ry,ec):n=ec.call(this,e),r=this.Block(!0),{type:"Rule",loc:this.getLocation(t,this.tokenStart),prelude:n,block:r}}function By(e){this.node(e.prelude),this.node(e.block)}const Fy=Object.freeze(Object.defineProperty({__proto__:null,generate:By,name:Py,parse:tc,structure:My,walkContext:Dy},Symbol.toStringTag,{value:"Module"})),Uy="Scope",Hy={root:["SelectorList","Raw",null],limit:["SelectorList","Raw",null]};function nc(){let e=null,t=null;this.skipSC();const n=this.tokenStart;return this.tokenType===_e&&(this.next(),this.skipSC(),e=this.parseWithFallback(this.SelectorList,()=>this.Raw(!1,!0)),this.skipSC(),this.eat(de)),this.lookupNonWSType(0)===ne&&(this.skipSC(),this.eatIdent("to"),this.skipSC(),this.eat(_e),this.skipSC(),t=this.parseWithFallback(this.SelectorList,()=>this.Raw(!1,!0)),this.skipSC(),this.eat(de)),{type:"Scope",loc:this.getLocation(n,this.tokenStart),root:e,limit:t}}function zy(e){e.root&&(this.token(_e,"("),this.node(e.root),this.token(de,")")),e.limit&&(this.token(ne,"to"),this.token(_e,"("),this.node(e.limit),this.token(de,")"))}const $y=Object.freeze(Object.defineProperty({__proto__:null,generate:zy,name:Uy,parse:nc,structure:Hy},Symbol.toStringTag,{value:"Module"})),jy="Selector",qy={children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator"]]};function rc(){const e=this.readSequence(this.scope.Selector);return this.getFirstListNode(e)===null&&this.error("Selector is expected"),{type:"Selector",loc:this.getLocationFromList(e),children:e}}function Yy(e){this.children(e)}const Wy=Object.freeze(Object.defineProperty({__proto__:null,generate:Yy,name:jy,parse:rc,structure:qy},Symbol.toStringTag,{value:"Module"})),Gy="SelectorList",Vy="selector",Ky={children:[["Selector","Raw"]]};function ic(){const e=this.createList();for(;!this.eof;){if(e.push(this.Selector()),this.tokenType===it){this.next();continue}break}return{type:"SelectorList",loc:this.getLocationFromList(e),children:e}}function Xy(e){this.children(e,()=>this.token(it,","))}const Qy=Object.freeze(Object.defineProperty({__proto__:null,generate:Xy,name:Gy,parse:ic,structure:Ky,walkContext:Vy},Symbol.toStringTag,{value:"Module"})),js=92,sc=34,Zy=39;function ac(e){const t=e.length,n=e.charCodeAt(0),r=n===sc||n===Zy?1:0,i=r===1&&t>1&&e.charCodeAt(t-1)===n?t-2:t-1;let s="";for(let o=r;o<=i;o++){let a=e.charCodeAt(o);if(a===js){if(o===i){o!==t-1&&(s=e.substr(o+1));break}if(a=e.charCodeAt(++o),St(js,a)){const u=o-1,c=En(e,u);o=c-1,s+=jo(e.substring(u+1,c))}else a===13&&e.charCodeAt(o+1)===10&&o++}else s+=e[o]}return s}function Jy(e,t){const r=sc;let i="",s=!1;for(let o=0;o<e.length;o++){const a=e.charCodeAt(o);if(a===0){i+="�";continue}if(a<=31||a===127){i+="\\"+a.toString(16),s=!0;continue}a===r||a===js?(i+="\\"+e.charAt(o),s=!1):(s&&(Yt(a)||nn(a))&&(i+=" "),i+=e.charAt(o),s=!1)}return'"'+i+'"'}const eT="String",tT={value:String};function oc(){return{type:"String",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:ac(this.consume(gt))}}function nT(e){this.token(gt,Jy(e.value))}const rT=Object.freeze(Object.defineProperty({__proto__:null,generate:nT,name:eT,parse:oc,structure:tT},Symbol.toStringTag,{value:"Module"})),iT=33;function uc(){return this.Raw(null,!1)}const sT="StyleSheet",aT="stylesheet",oT={children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]};function lc(){const e=this.tokenStart,t=this.createList();let n;for(;!this.eof;){switch(this.tokenType){case Le:this.next();continue;case qe:if(this.charCodeAt(this.tokenStart+2)!==iT){this.next();continue}n=this.Comment();break;case Wn:n=this.CDO();break;case rt:n=this.CDC();break;case Be:n=this.parseWithFallback(this.Atrule,uc);break;default:n=this.parseWithFallback(this.Rule,uc)}t.push(n)}return{type:"StyleSheet",loc:this.getLocation(e,this.tokenStart),children:t}}function uT(e){this.children(e)}const lT=Object.freeze(Object.defineProperty({__proto__:null,generate:uT,name:sT,parse:lc,structure:oT,walkContext:aT},Symbol.toStringTag,{value:"Module"})),cT="SupportsDeclaration",dT={declaration:"Declaration"};function cc(){const e=this.tokenStart;this.eat(_e),this.skipSC();const t=this.Declaration();return this.eof||this.eat(de),{type:"SupportsDeclaration",loc:this.getLocation(e,this.tokenStart),declaration:t}}function hT(e){this.token(_e,"("),this.node(e.declaration),this.token(de,")")}const fT=Object.freeze(Object.defineProperty({__proto__:null,generate:hT,name:cT,parse:cc,structure:dT},Symbol.toStringTag,{value:"Module"})),pT=42,dc=124;function qs(){this.tokenType!==ne&&this.isDelim(pT)===!1&&this.error("Identifier or asterisk is expected"),this.next()}const mT="TypeSelector",gT={name:String};function hc(){const e=this.tokenStart;return this.isDelim(dc)?(this.next(),qs.call(this)):(qs.call(this),this.isDelim(dc)&&(this.next(),qs.call(this))),{type:"TypeSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}}function bT(e){this.tokenize(e.name)}const ET=Object.freeze(Object.defineProperty({__proto__:null,generate:bT,name:mT,parse:hc,structure:gT},Symbol.toStringTag,{value:"Module"})),fc=43,pc=45,Ys=63;function sr(e,t){let n=0;for(let r=this.tokenStart+e;r<this.tokenEnd;r++){const i=this.charCodeAt(r);if(i===pc&&t&&n!==0)return sr.call(this,e+n+1,!1),-1;Yt(i)||this.error(t&&n!==0?"Hyphen minus"+(n<6?" or hex digit":"")+" is expected":n<6?"Hex digit is expected":"Unexpected input",r),++n>6&&this.error("Too many hex digits",r)}return this.next(),n}function Qr(e){let t=0;for(;this.isDelim(Ys);)++t>e&&this.error("Too many question marks"),this.next()}function yT(e){this.charCodeAt(this.tokenStart)!==e&&this.error((e===fc?"Plus sign":"Hyphen minus")+" is expected")}function TT(){let e=0;switch(this.tokenType){case fe:if(e=sr.call(this,1,!0),this.isDelim(Ys)){Qr.call(this,6-e);break}if(this.tokenType===be||this.tokenType===fe){yT.call(this,pc),sr.call(this,1,!1);break}break;case be:e=sr.call(this,1,!0),e>0&&Qr.call(this,6-e);break;default:if(this.eatDelim(fc),this.tokenType===ne){e=sr.call(this,0,!0),e>0&&Qr.call(this,6-e);break}if(this.isDelim(Ys)){this.next(),Qr.call(this,5);break}this.error("Hex digit or question mark is expected")}}const _T="UnicodeRange",kT={value:String};function mc(){const e=this.tokenStart;return this.eatIdent("u"),TT.call(this),{type:"UnicodeRange",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function wT(e){this.tokenize(e.value)}const AT=Object.freeze(Object.defineProperty({__proto__:null,generate:wT,name:_T,parse:mc,structure:kT},Symbol.toStringTag,{value:"Module"})),ST=32,Ws=92,CT=34,xT=39,NT=40,gc=41;function IT(e){const t=e.length;let n=4,r=e.charCodeAt(t-1)===gc?t-2:t-1,i="";for(;n<r&&nn(e.charCodeAt(n));)n++;for(;n<r&&nn(e.charCodeAt(r));)r--;for(let s=n;s<=r;s++){let o=e.charCodeAt(s);if(o===Ws){if(s===r){s!==t-1&&(i=e.substr(s+1));break}if(o=e.charCodeAt(++s),St(Ws,o)){const a=s-1,u=En(e,a);s=u-1,i+=jo(e.substring(a+1,u))}else o===13&&e.charCodeAt(s+1)===10&&s++}else i+=e[s]}return i}function vT(e){let t="",n=!1;for(let r=0;r<e.length;r++){const i=e.charCodeAt(r);if(i===0){t+="�";continue}if(i<=31||i===127){t+="\\"+i.toString(16),n=!0;continue}i===ST||i===Ws||i===CT||i===xT||i===NT||i===gc?(t+="\\"+e.charAt(r),n=!1):(n&&Yt(i)&&(t+=" "),t+=e.charAt(r),n=!1)}return"url("+t+")"}const OT="Url",LT={value:String};function bc(){const e=this.tokenStart;let t;switch(this.tokenType){case Ge:t=IT(this.consume(Ge));break;case pe:this.cmpStr(this.tokenStart,this.tokenEnd,"url(")||this.error("Function name must be `url`"),this.eat(pe),this.skipSC(),t=ac(this.consume(gt)),this.skipSC(),this.eof||this.eat(de);break;default:this.error("Url or Function is expected")}return{type:"Url",loc:this.getLocation(e,this.tokenStart),value:t}}function RT(e){this.token(Ge,vT(e.value))}const PT=Object.freeze(Object.defineProperty({__proto__:null,generate:RT,name:OT,parse:bc,structure:LT},Symbol.toStringTag,{value:"Module"})),DT="Value",MT={children:[[]]};function Ec(){const e=this.tokenStart,t=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(e,this.tokenStart),children:t}}function BT(e){this.children(e)}const FT=Object.freeze(Object.defineProperty({__proto__:null,generate:BT,name:DT,parse:Ec,structure:MT},Symbol.toStringTag,{value:"Module"})),UT=Object.freeze({type:"WhiteSpace",loc:null,value:" "}),HT="WhiteSpace",zT={value:String};function yc(){return this.eat(Le),UT}function $T(e){this.token(Le,e.value)}const Tc=Object.freeze(Object.defineProperty({__proto__:null,AnPlusB:ub,Atrule:pb,AtrulePrelude:yb,AttributeSelector:Nb,Block:Db,Brackets:Ub,CDC:jb,CDO:Gb,ClassSelector:Zb,Combinator:s1,Comment:d1,Condition:b1,Declaration:L1,DeclarationList:B1,Dimension:z1,Feature:W1,FeatureFunction:Q1,FeatureRange:rE,Function:uE,GeneralEnclosed:hE,Hash:bE,IdSelector:SE,Identifier:_E,Layer:vE,LayerList:PE,MediaQuery:FE,MediaQueryList:$E,NestingSelector:GE,Nth:QE,Number:ty,Operator:sy,Parentheses:ly,Percentage:fy,PseudoClassSelector:Ey,PseudoElementSelector:wy,Ratio:xy,Raw:Ly,Rule:Fy,Scope:$y,Selector:Wy,SelectorList:Qy,String:rT,StyleSheet:lT,SupportsDeclaration:fT,TypeSelector:ET,UnicodeRange:AT,Url:PT,Value:FT,WhiteSpace:Object.freeze(Object.defineProperty({__proto__:null,generate:$T,name:HT,parse:yc,structure:zT},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"})),jT={generic:!0,cssWideKeywords:ds,...rb,node:Tc},qT=35,YT=42,_c=43,WT=45,GT=47,VT=117;function kc(e){switch(this.tokenType){case xe:return this.Hash();case it:return this.Operator();case _e:return this.Parentheses(this.readSequence,e.recognizer);case at:return this.Brackets(this.readSequence,e.recognizer);case gt:return this.String();case be:return this.Dimension();case Oe:return this.Percentage();case fe:return this.Number();case pe:return this.cmpStr(this.tokenStart,this.tokenEnd,"url(")?this.Url():this.Function(this.readSequence,e.recognizer);case Ge:return this.Url();case ne:return this.cmpChar(this.tokenStart,VT)&&this.cmpChar(this.tokenStart+1,_c)?this.UnicodeRange():this.Identifier();case ge:{const t=this.charCodeAt(this.tokenStart);if(t===GT||t===YT||t===_c||t===WT)return this.Operator();t===qT&&this.error("Hex or identifier is expected",this.tokenStart+1);break}}}const KT={getNode:kc},XT=35,QT=38,ZT=42,JT=43,e2=47,wc=46,t2=62,n2=124,r2=126;function i2(e,t){t.last!==null&&t.last.type!=="Combinator"&&e!==null&&e.type!=="Combinator"&&t.push({type:"Combinator",loc:null,name:" "})}function s2(){switch(this.tokenType){case at:return this.AttributeSelector();case xe:return this.IdSelector();case Ve:return this.lookupType(1)===Ve?this.PseudoElementSelector():this.PseudoClassSelector();case ne:return this.TypeSelector();case fe:case Oe:return this.Percentage();case be:this.charCodeAt(this.tokenStart)===wc&&this.error("Identifier is expected",this.tokenStart+1);break;case ge:{switch(this.charCodeAt(this.tokenStart)){case JT:case t2:case r2:case e2:return this.Combinator();case wc:return this.ClassSelector();case ZT:case n2:return this.TypeSelector();case XT:return this.IdSelector();case QT:return this.NestingSelector()}break}}}const a2={onWhiteSpace:i2,getNode:s2};function o2(){return this.createSingleNodeList(this.Raw(null,!1))}function u2(){const e=this.createList();if(this.skipSC(),e.push(this.Identifier()),this.skipSC(),this.tokenType===it){e.push(this.Operator());const t=this.tokenIndex,n=this.parseCustomProperty?this.Value(null):this.Raw(this.consumeUntilExclamationMarkOrSemicolon,!1);if(n.type==="Value"&&n.children.isEmpty){for(let r=t-this.tokenIndex;r<=0;r++)if(this.lookupType(r)===Le){n.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}e.push(n)}return e}function Ac(e){return e!==null&&e.type==="Operator"&&(e.value[e.value.length-1]==="-"||e.value[e.value.length-1]==="+")}const l2=Object.freeze(Object.defineProperty({__proto__:null,AtrulePrelude:KT,Selector:a2,Value:{getNode:kc,onWhiteSpace(e,t){Ac(e)&&(e.value=" "+e.value),Ac(t.last)&&(t.last.value+=" ")},expression:o2,var:u2}},Symbol.toStringTag,{value:"Module"})),c2=new Set(["none","and","not","or"]),d2={parse:{prelude(){const e=this.createList();if(this.tokenType===ne){const t=this.substring(this.tokenStart,this.tokenEnd);c2.has(t.toLowerCase())||e.push(this.Identifier())}return e.push(this.Condition("container")),e},block(e=!1){return this.Block(e)}}},h2={parse:{prelude:null,block(){return this.Block(!0)}}};function Gs(e,t){return this.parseWithFallback(()=>{try{return e.call(this)}finally{this.skipSC(),this.lookupNonWSType(0)!==de&&this.error()}},t||(()=>this.Raw(null,!0)))}const Sc={layer(){this.skipSC();const e=this.createList(),t=Gs.call(this,this.Layer);return(t.type!=="Raw"||t.value!=="")&&e.push(t),e},supports(){this.skipSC();const e=this.createList(),t=Gs.call(this,this.Declaration,()=>Gs.call(this,()=>this.Condition("supports")));return(t.type!=="Raw"||t.value!=="")&&e.push(t),e}},f2={container:d2,"font-face":h2,import:{parse:{prelude(){const e=this.createList();switch(this.tokenType){case gt:e.push(this.String());break;case Ge:case pe:e.push(this.Url());break;default:this.error("String or url() is expected")}return this.skipSC(),this.tokenType===ne&&this.cmpStr(this.tokenStart,this.tokenEnd,"layer")?e.push(this.Identifier()):this.tokenType===pe&&this.cmpStr(this.tokenStart,this.tokenEnd,"layer(")&&e.push(this.Function(null,Sc)),this.skipSC(),this.tokenType===pe&&this.cmpStr(this.tokenStart,this.tokenEnd,"supports(")&&e.push(this.Function(null,Sc)),(this.lookupNonWSType(0)===ne||this.lookupNonWSType(0)===_e)&&e.push(this.MediaQueryList()),e},block:null}},layer:{parse:{prelude(){return this.createSingleNodeList(this.LayerList())},block(){return this.Block(!1)}}},media:{parse:{prelude(){return this.createSingleNodeList(this.MediaQueryList())},block(e=!1){return this.Block(e)}}},nest:{parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}},page:{parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}},scope:{parse:{prelude(){return this.createSingleNodeList(this.Scope())},block(e=!1){return this.Block(e)}}},"starting-style":{parse:{prelude:null,block(e=!1){return this.Block(e)}}},supports:{parse:{prelude(){return this.createSingleNodeList(this.Condition("supports"))},block(e=!1){return this.Block(e)}}}};function p2(){const e=this.createList();this.skipSC();e:for(;!this.eof;){switch(this.tokenType){case ne:e.push(this.Identifier());break;case gt:e.push(this.String());break;case it:e.push(this.Operator());break;case de:break e;default:this.error("Identifier, string or comma is expected")}this.skipSC()}return e}const sn={parse(){return this.createSingleNodeList(this.SelectorList())}},Vs={parse(){return this.createSingleNodeList(this.Selector())}},m2={parse(){return this.createSingleNodeList(this.Identifier())}},g2={parse:p2},Zr={parse(){return this.createSingleNodeList(this.Nth())}},b2=nb({...jT,...{parseContext:{default:"StyleSheet",stylesheet:"StyleSheet",atrule:"Atrule",atrulePrelude(e){return this.AtrulePrelude(e.atrule?String(e.atrule):null)},mediaQueryList:"MediaQueryList",mediaQuery:"MediaQuery",condition(e){return this.Condition(e.kind)},rule:"Rule",selectorList:"SelectorList",selector:"Selector",block(){return this.Block(!0)},declarationList:"DeclarationList",declaration:"Declaration",value:"Value"},features:{supports:{selector(){return this.Selector()}},container:{style(){return this.Declaration()}}},scope:l2,atrule:f2,pseudo:{dir:m2,has:sn,lang:g2,matches:sn,is:sn,"-moz-any":sn,"-webkit-any":sn,where:sn,not:sn,"nth-child":Zr,"nth-last-child":Zr,"nth-last-of-type":Zr,"nth-of-type":Zr,slotted:Vs,host:Vs,"host-context":Vs},node:Object.freeze(Object.defineProperty({__proto__:null,AnPlusB:rl,Atrule:sl,AtrulePrelude:al,AttributeSelector:ul,Block:hl,Brackets:fl,CDC:pl,CDO:ml,ClassSelector:gl,Combinator:El,Comment:yl,Condition:_l,Declaration:Al,DeclarationList:Sl,Dimension:Cl,Feature:xl,FeatureFunction:Nl,FeatureRange:Ll,Function:Rl,GeneralEnclosed:Pl,Hash:Dl,IdSelector:Bl,Identifier:Ml,Layer:Fl,LayerList:Ul,MediaQuery:Hl,MediaQueryList:zl,NestingSelector:$l,Nth:jl,Number:ql,Operator:Yl,Parentheses:Wl,Percentage:Gl,PseudoClassSelector:Vl,PseudoElementSelector:Kl,Ratio:Zl,Raw:Jl,Rule:tc,Scope:nc,Selector:rc,SelectorList:ic,String:oc,StyleSheet:lc,SupportsDeclaration:cc,TypeSelector:hc,UnicodeRange:mc,Url:bc,Value:Ec,WhiteSpace:yc},Symbol.toStringTag,{value:"Module"}))},...{node:Tc}}),{tokenize:dw,parse:E2,generate:y2,lexer:hw,createLexer:fw,walk:Jr,find:pw,findLast:mw,findAll:gw,toPlainObject:bw,fromPlainObject:Ew,fork:yw}=b2;function T2(e){return Ks(e).classRules}function Ks(e){const t={},n={},r=E2(e,{parseCustomProperty:!0});return Jr(r,{visit:"Rule",enter(i){if(i.type!=="Rule"||!i.prelude||!i.block)return;const s={};if(Jr(i.block,{visit:"Declaration",enter(a){const u=a.property,c=y2(a.value);s[u]=c}}),Object.keys(s).length===0)return;const o=_2(i.prelude);for(const a of o.classes)t[a]={...t[a],...s};for(const a of o.elements)n[a]={...n[a],...s}}}),{classRules:t,elementRules:n}}function _2(e){const t=[],n=[];return Jr(e,{visit:"ClassSelector",enter(r){r.type==="ClassSelector"&&r.name&&t.push(r.name)}}),Jr(e,{visit:"TypeSelector",enter(r){r.type==="TypeSelector"&&r.name&&n.push(r.name.toLowerCase())}}),{classes:t,elements:n}}function k2(e,t){const n=z0(e,{fragment:!0}),i={type:"root",children:Mt(n.children,"block")};if(t!=null&&t.css){const s=Ks(t.css),o=Object.keys(s.classRules).length>0,a=Object.keys(s.elementRules).length>0;(o||a)&&(i.data={...i.data,css:s})}return i}function Mt(e,t){const n=[];for(const r of e)if(r.type==="text"){const i=r.value;(t==="inline"||i.trim())&&n.push({type:"text",value:i})}else if(r.type==="element"){const i=Cc(r,t);i&&(Array.isArray(i)?n.push(...i):n.push(i))}return n}function Cc(e,t){const n=e.tagName.toLowerCase();switch(n){case"p":return ei("paragraph",e);case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return w2(e,Number(n[1]));case"blockquote":return ei("blockquote",e);case"ul":return xc(e,!1);case"ol":return xc(e,!0);case"li":return Nc(e);case"pre":return A2(e);case"table":return S2(e);case"thead":case"tbody":case"tfoot":return Mt(e.children,"block");case"tr":return Ic(e);case"td":case"th":return vc(e);case"hr":{const r={type:"thematicBreak"};return Nt(e,r),r}case"br":return{type:"break"};case"img":return C2(e);case"div":case"section":case"article":case"main":case"header":case"footer":case"nav":case"aside":return ei("div",e);case"figure":return ei("figure",e);case"figcaption":return x2(e)}if(N2(n)||n==="a")return ti(e);if(n==="code")return{type:"inlineCode",value:ni(e)};if(n==="span")return ti(e);if(t==="block"){const r=Mt(e.children,"block");return r.length===0?null:r.length===1?r[0]:r}else return ti(e)}function ei(e,t){const r=e==="paragraph"?"inline":"block",i=Mt(t.children,r),s={type:e,children:i};return an(t,s),Nt(t,s),s}function w2(e,t){const n=Mt(e.children,"inline"),r={type:"heading",depth:t,children:n};return an(e,r),Nt(e,r),r}function xc(e,t){var i,s,o;const n=[];for(const a of e.children)if(a.type==="element"&&a.tagName.toLowerCase()==="li")n.push(Nc(a));else{const u=a.type==="element"?Cc(a,"block"):a.type==="text"&&a.value.trim()?[{type:"text",value:a.value}]:null;if(u){const c=[],d=Array.isArray(u)?u:[u];for(const h of d)Qs(h.type)?c.push({type:"paragraph",children:[h]}):c.push(h);if(c.length>0){const h={type:"listItem",children:c};h.data={html:{escapeHatch:!0}},n.push(h)}}}const r={type:"list",ordered:t,children:n};return t&&((i=e.properties)==null?void 0:i.start)!==void 0&&(r.start=Number(e.properties.start)),(s=e.properties)!=null&&s.type&&(r.data={...r.data,html:{...((o=r.data)==null?void 0:o.html)??{},type:String(e.properties.type)}}),an(e,r),Nt(e,r),r}function Nc(e){const t=Mt(e.children,"block"),n=[];let r=[];const i=()=>{r.length>0&&(n.push({type:"paragraph",children:r}),r=[])};for(const o of t)Qs(o.type)?r.push(o):(i(),n.push(o));i();const s={type:"listItem",children:n};return an(e,s),Nt(e,s),s}function A2(e){var o;const t=e.children.find(a=>a.type==="element"&&a.tagName.toLowerCase()==="code"),n=ni(t||e);let r;if((o=t==null?void 0:t.properties)!=null&&o.className){const a=Array.isArray(t.properties.className)?t.properties.className:[t.properties.className];for(const u of a){const c=String(u).match(/^language-(.+)$/);if(c){r=c[1];break}}}const i={type:"codeBlock",value:n};r&&(i.lang=r);const s=i;return an(e,s),Nt(e,s),s}function S2(e){const t=[];function n(i){for(const s of i){if(s.type!=="element")continue;const o=s.tagName.toLowerCase();o==="tr"?t.push(Ic(s)):(o==="thead"||o==="tbody"||o==="tfoot")&&n(s.children)}}n(e.children),t.length>0&&!t[0].isHeader&&e.children.find(s=>s.type==="element"&&s.tagName.toLowerCase()==="thead")&&(t[0].isHeader=!0);const r={type:"table",children:t};return an(e,r),Nt(e,r),r}function Ic(e){const t=[];let n=!0;for(const i of e.children)if(i.type==="element"){const s=i.tagName.toLowerCase();(s==="td"||s==="th")&&(t.push(vc(i)),s!=="th"&&(n=!1))}const r={type:"tableRow",children:t};return n&&(r.isHeader=!0),Nt(e,r),r}function vc(e,t){var a,u;const n=Mt(e.children,"block"),r=[];let i=[];const s=()=>{i.length>0&&(r.push({type:"paragraph",children:i}),i=[])};for(const c of n)Qs(c.type)?i.push(c):(s(),r.push(c));s();const o={type:"tableCell",children:r};return(a=e.properties)!=null&&a.colSpan&&Number(e.properties.colSpan)>1&&(o.colspan=Number(e.properties.colSpan)),(u=e.properties)!=null&&u.rowSpan&&Number(e.properties.rowSpan)>1&&(o.rowspan=Number(e.properties.rowSpan)),Nt(e,o),o}function C2(e){var n,r,i;const t={type:"image",url:String(((n=e.properties)==null?void 0:n.src)??"")};return(r=e.properties)!=null&&r.alt&&(t.alt=String(e.properties.alt)),(i=e.properties)!=null&&i.title&&(t.title=String(e.properties.title)),an(e,t),Nt(e,t),t}function x2(e){return{type:"figCaption",children:Mt(e.children,"inline")}}const Xs={strong:()=>({type:"strong"}),b:()=>({type:"strong"}),em:()=>({type:"emphasis"}),i:()=>({type:"emphasis"}),u:()=>({type:"underline"}),del:()=>({type:"strikethrough"}),s:()=>({type:"strikethrough"}),sup:()=>({type:"superscript"}),sub:()=>({type:"subscript"}),mark:()=>({type:"highlight"})};function N2(e){return e in Xs}function ti(e){var i,s,o,a,u,c,d,h;const t=e.tagName.toLowerCase();let n;if(t==="a"){const b={url:String(((i=e.properties)==null?void 0:i.href)??"")};if((s=e.properties)!=null&&s.title&&(b.title=String(e.properties.title)),(o=e.properties)!=null&&o.id&&(b.id=String(e.properties.id)),(a=e.properties)!=null&&a.name&&(b.name=String(e.properties.name)),(u=e.properties)!=null&&u.className){const f=Array.isArray(e.properties.className)?e.properties.className.map(String):[String(e.properties.className)];f.length>0&&(b.className=f)}for(const[f,m]of Object.entries(e.properties??{}))f.startsWith("data")&&f!=="data"&&!(f in b)&&(b[f]=m);n={type:"link",attrs:b}}else if(Xs[t])n=Xs[t]();else if(t==="span"){const b=(c=e.properties)!=null&&c.className?Array.isArray(e.properties.className)?e.properties.className.map(String):[String(e.properties.className)]:[],f=(d=e.properties)!=null&&d.style?String(e.properties.style):void 0,m=(h=e.properties)!=null&&h.id?String(e.properties.id):void 0;if(b.length>0||f||m){const g={};b.length>0&&(g.className=b),f&&(g.style=f),m&&(g.id=m);for(const[_,p]of Object.entries(e.properties??{}))_.startsWith("data")&&_!=="data"&&(g[_]=p);n={type:"custom",attrs:g}}}const r=Mt(e.children,"inline");return n?r.map(b=>I2(b,n)):r}function I2(e,t){if(e.type==="text"){const n=e,r=n.marks??[];return{...n,marks:[...r,t]}}return e}function ni(e){let t="";for(const n of e.children)n.type==="text"?t+=n.value:n.type==="element"&&(t+=ni(n));return t}function Qs(e){return["text","break","image","footnoteReference","inlineCode","inlineMath"].includes(e)}function an(e,t){var n;if((n=e.properties)!=null&&n.className){const r=Array.isArray(e.properties.className)?e.properties.className.map(String):[String(e.properties.className)];r.length>0&&(t.classes=r)}}function Nt(e,t){const n={};if(e.properties){for(const[r,i]of Object.entries(e.properties))["className","src","href","alt","title","colSpan","rowSpan","start"].includes(r)||(r==="id"||r.startsWith("data")||r==="style"||r.startsWith("aria")||r==="role")&&(n[r]=i);Object.keys(n).length>0&&(t.data={...t.data,html:n})}}const v2=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],Oc={}.hasOwnProperty;function O2(e,t){const n=t||{};function r(i,...s){let o=r.invalid;const a=r.handlers;if(i&&Oc.call(i,e)){const u=String(i[e]);o=Oc.call(a,u)?a[u]:r.unknown}if(o)return o.call(this,i,...s)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const L2=/["&'<>`]/g,R2=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,P2=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,D2=/[|\\{}()[\]^$+*?.]/g,Lc=new WeakMap;function M2(e,t){if(e=e.replace(t.subset?B2(t.subset):L2,r),t.subset||t.escapeOnly)return e;return e.replace(R2,n).replace(P2,r);function n(i,s,o){return t.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,o.charCodeAt(s+2),t)}function r(i,s,o){return t.format(i.charCodeAt(0),o.charCodeAt(s+1),t)}}function B2(e){let t=Lc.get(e);return t||(t=F2(e),Lc.set(e,t)),t}function F2(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(D2,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const U2=/[\dA-Fa-f]/;function H2(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!U2.test(String.fromCharCode(t))?r:r+";"}const z2=/\d/;function $2(e,t,n){const r="&#"+String(e);return n&&t&&!z2.test(String.fromCharCode(t))?r:r+";"}const j2=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Zs={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},q2=["cent","copy","divide","gt","lt","not","para","times"],Rc={}.hasOwnProperty,Js={};let ri;for(ri in Zs)Rc.call(Zs,ri)&&(Js[Zs[ri]]=ri);const Y2=/[^\dA-Za-z]/;function W2(e,t,n,r){const i=String.fromCharCode(e);if(Rc.call(Js,i)){const s=Js[i],o="&"+s;return n&&j2.includes(s)&&!q2.includes(s)&&(!r||t&&t!==61&&Y2.test(String.fromCharCode(t)))?o:o+";"}return""}function G2(e,t,n){let r=H2(e,t,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=W2(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){const s=$2(e,t,n.omitOptionalSemicolons);s.length<r.length&&(r=s)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}function xn(e,t){return M2(e,Object.assign({format:G2},t))}const V2=/^>|^->|<!--|-->|--!>|<!-$/g,K2=[">"],X2=["<",">"];function Q2(e,t,n,r){return r.settings.bogusComments?"<?"+xn(e.value,Object.assign({},r.settings.characterReferences,{subset:K2}))+">":"<!--"+e.value.replace(V2,i)+"-->";function i(s){return xn(s,Object.assign({},r.settings.characterReferences,{subset:X2}))}}function Z2(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function Pc(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}const J2=/[ \t\n\f\r]/g;function ea(e){return typeof e=="object"?e.type==="text"?Dc(e.value):!1:Dc(e)}function Dc(e){return e.replace(J2,"")===""}const Fe=Bc(1),Mc=Bc(-1),e_=[];function Bc(e){return t;function t(n,r,i){const s=n?n.children:e_;let o=(r||0)+e,a=s[o];if(!i)for(;a&&ea(a);)o+=e,a=s[o];return a}}const t_={}.hasOwnProperty;function Fc(e){return t;function t(n,r,i){return t_.call(e,n.tagName)&&e[n.tagName](n,r,i)}}const ta=Fc({body:r_,caption:na,colgroup:na,dd:o_,dt:a_,head:na,html:n_,li:s_,optgroup:u_,option:l_,p:i_,rp:Uc,rt:Uc,tbody:d_,td:Hc,tfoot:h_,th:Hc,thead:c_,tr:f_});function na(e,t,n){const r=Fe(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&ea(r.value.charAt(0)))}function n_(e,t,n){const r=Fe(n,t);return!r||r.type!=="comment"}function r_(e,t,n){const r=Fe(n,t);return!r||r.type!=="comment"}function i_(e,t,n){const r=Fe(n,t);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function s_(e,t,n){const r=Fe(n,t);return!r||r.type==="element"&&r.tagName==="li"}function a_(e,t,n){const r=Fe(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function o_(e,t,n){const r=Fe(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function Uc(e,t,n){const r=Fe(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function u_(e,t,n){const r=Fe(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function l_(e,t,n){const r=Fe(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function c_(e,t,n){const r=Fe(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function d_(e,t,n){const r=Fe(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function h_(e,t,n){return!Fe(n,t)}function f_(e,t,n){const r=Fe(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function Hc(e,t,n){const r=Fe(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const p_=Fc({body:b_,colgroup:E_,head:g_,html:m_,tbody:y_});function m_(e){const t=Fe(e,-1);return!t||t.type!=="comment"}function g_(e){const t=new Set;for(const r of e.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(t.has(r.tagName))return!1;t.add(r.tagName)}const n=e.children[0];return!n||n.type==="element"}function b_(e){const t=Fe(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&ea(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function E_(e,t,n){const r=Mc(n,t),i=Fe(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&ta(r,n.children.indexOf(r),n)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function y_(e,t,n){const r=Mc(n,t),i=Fe(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&ta(r,n.children.indexOf(r),n)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const ii={name:[[`
13
+ --`+new Array((n||t.length)+1).join("-")+"^"})}const Ig=9,Og=10,Lg=12,Pg=13,Rg=32,Bu=new Uint8Array(128).map((e,t)=>/[a-zA-Z0-9\-]/.test(String.fromCharCode(t))?1:0);class Dg{constructor(t){this.str=t,this.pos=0}charCodeAt(t){return t<this.str.length?this.str.charCodeAt(t):0}charCode(){return this.charCodeAt(this.pos)}isNameCharCode(t=this.charCode()){return t<128&&Bu[t]===1}nextCharCode(){return this.charCodeAt(this.pos+1)}nextNonWsCode(t){return this.charCodeAt(this.findWsEnd(t))}skipWs(){this.pos=this.findWsEnd(this.pos)}findWsEnd(t){for(;t<this.str.length;t++){const n=this.str.charCodeAt(t);if(n!==Pg&&n!==Og&&n!==Lg&&n!==Rg&&n!==Ig)break}return t}substringToPos(t){return this.str.substring(this.pos,this.pos=t)}eat(t){this.charCode()!==t&&this.error("Expect `"+String.fromCharCode(t)+"`"),this.pos++}peek(){return this.pos<this.str.length?this.str.charAt(this.pos++):""}error(t){throw new vg(t,this.str,this.pos)}scanSpaces(){return this.substringToPos(this.findWsEnd(this.pos))}scanWord(){let t=this.pos;for(;t<this.str.length;t++){const n=this.str.charCodeAt(t);if(n>=128||Bu[n]===0)break}return this.pos===t&&this.error("Expect a keyword"),this.substringToPos(t)}scanNumber(){let t=this.pos;for(;t<this.str.length;t++){const n=this.str.charCodeAt(t);if(n<48||n>57)break}return this.pos===t&&this.error("Expect a number"),this.substringToPos(t)}scanString(){const t=this.str.indexOf("'",this.pos+1);return t===-1&&(this.pos=this.str.length,this.error("Expect an apostrophe")),this.substringToPos(t+1)}}const Mg=9,Bg=10,Fg=12,Ug=13,Hg=32,Fu=33,Os=35,Uu=38,Vr=39,Hu=40,zu=41,$u=42,Ls=43,Ps=44,ju=45,Rs=60,Ds=62,Kr=63,zg=64,sr=91,kn=93,Xr=123,qu=124,Ms=125,Yu=8734,Wu={" ":1,"&&":2,"||":3,"|":4};function Gu(e){let t=null,n=null;return e.eat(Xr),e.skipWs(),t=e.scanNumber(e),e.skipWs(),e.charCode()===Ps?(e.pos++,e.skipWs(),e.charCode()!==Ms&&(n=e.scanNumber(e),e.skipWs())):n=t,e.eat(Ms),{min:Number(t),max:n?Number(n):0}}function $g(e){let t=null,n=!1;switch(e.charCode()){case $u:e.pos++,t={min:0,max:0};break;case Ls:e.pos++,t={min:1,max:0};break;case Kr:e.pos++,t={min:0,max:1};break;case Os:e.pos++,n=!0,e.charCode()===Xr?t=Gu(e):e.charCode()===Kr?(e.pos++,t={min:0,max:0}):t={min:1,max:0};break;case Xr:t=Gu(e);break;default:return null}return{type:"Multiplier",comma:n,min:t.min,max:t.max,term:null}}function Bt(e,t){const n=$g(e);return n!==null?(n.term=t,e.charCode()===Os&&e.charCodeAt(e.pos-1)===Ls||e.charCode()===Kr&&e.charCodeAt(e.pos-1)===Ms?Bt(e,n):n):t}function Bs(e){const t=e.peek();return t===""?null:Bt(e,{type:"Token",value:t})}function jg(e){let t;return e.eat(Rs),e.eat(Vr),t=e.scanWord(),e.eat(Vr),e.eat(Ds),Bt(e,{type:"Property",name:t})}function qg(e){let t=null,n=null,r=1;return e.eat(sr),e.charCode()===ju&&(e.peek(),r=-1),r==-1&&e.charCode()===Yu?e.peek():(t=r*Number(e.scanNumber(e)),e.isNameCharCode()&&(t+=e.scanWord())),e.skipWs(),e.eat(Ps),e.skipWs(),e.charCode()===Yu?e.peek():(r=1,e.charCode()===ju&&(e.peek(),r=-1),n=r*Number(e.scanNumber(e)),e.isNameCharCode()&&(n+=e.scanWord())),e.eat(kn),{type:"Range",min:t,max:n}}function Yg(e){let t,n=null;if(e.eat(Rs),t=e.scanWord(),t==="boolean-expr"){e.eat(sr);const r=Qr(e,kn);return e.eat(kn),e.eat(Ds),Bt(e,{type:"Boolean",term:r.terms.length===1?r.terms[0]:r})}return e.charCode()===Hu&&e.nextCharCode()===zu&&(e.pos+=2,t+="()"),e.charCodeAt(e.findWsEnd(e.pos))===sr&&(e.skipWs(),n=qg(e)),e.eat(Ds),Bt(e,{type:"Type",name:t,opts:n})}function Wg(e){const t=e.scanWord();return e.charCode()===Hu?(e.pos++,{type:"Function",name:t}):Bt(e,{type:"Keyword",name:t})}function Gg(e,t){function n(i,s){return{type:"Group",terms:i,combinator:s,disallowEmpty:!1,explicit:!1}}let r;for(t=Object.keys(t).sort((i,s)=>Wu[i]-Wu[s]);t.length>0;){r=t.shift();let i=0,s=0;for(;i<e.length;i++){const o=e[i];o.type==="Combinator"&&(o.value===r?(s===-1&&(s=i-1),e.splice(i,1),i--):(s!==-1&&i-s>1&&(e.splice(s,i-s,n(e.slice(s,i),r)),i=s+1),s=-1))}s!==-1&&t.length&&e.splice(s,i-s,n(e.slice(s,i),r))}return r}function Qr(e,t=-1){const n=Object.create(null),r=[];let i=null,s=e.pos,o=!1;for(;e.charCode()!==t;){let a=o?Qr(e,zu):Kg(e);if(!a)break;if(a.type!=="Spaces"){if(o){if(a.terms.length===0){o=!1;continue}if(a.combinator===" "){for(;a.terms.length>1;)n[" "]=!0,r.push({type:"Combinator",value:" "},a.terms.shift());a=a.terms[0]}}a.type==="Combinator"?((i===null||i.type==="Combinator")&&(e.pos=s,e.error("Unexpected combinator")),n[a.value]=!0):i!==null&&i.type!=="Combinator"&&(n[" "]=!0,r.push({type:"Combinator",value:" "})),r.push(a),i=a,s=e.pos,o=a.type==="Function"}}return i!==null&&i.type==="Combinator"&&(e.pos-=s,e.error("Unexpected combinator")),{type:"Group",terms:r,combinator:Gg(r,n)||" ",disallowEmpty:!1,explicit:!1}}function Vg(e){let t;return e.eat(sr),t=Qr(e,kn),e.eat(kn),t.explicit=!0,e.charCode()===Fu&&(e.pos++,t.disallowEmpty=!0),t}function Kg(e){let t=e.charCode();switch(t){case kn:break;case sr:return Bt(e,Vg(e));case Rs:return e.nextCharCode()===Vr?jg(e):Yg(e);case qu:return{type:"Combinator",value:e.substringToPos(e.pos+(e.nextCharCode()===qu?2:1))};case Uu:return e.pos++,e.eat(Uu),{type:"Combinator",value:"&&"};case Ps:return e.pos++,{type:"Comma"};case Vr:return Bt(e,{type:"String",value:e.scanString()});case Hg:case Mg:case Bg:case Ug:case Fg:return{type:"Spaces",value:e.scanSpaces()};case zg:return t=e.nextCharCode(),e.isNameCharCode(t)?(e.pos++,{type:"AtKeyword",name:e.scanWord()}):Bs(e);case $u:case Ls:case Kr:case Os:case Fu:break;case Xr:if(t=e.nextCharCode(),t<48||t>57)return Bs(e);break;default:return e.isNameCharCode(t)?Wg(e):Bs(e)}}function Vu(e){const t=new Dg(e),n=Qr(t);return t.pos!==e.length&&t.error("Unexpected input"),n.terms.length===1&&n.terms[0].type==="Group"?n.terms[0]:n}const ar=function(){};function Ku(e){return typeof e=="function"?e:ar}function Xg(e,t,n){function r(o){switch(i.call(n,o),o.type){case"Group":o.terms.forEach(r);break;case"Multiplier":case"Boolean":r(o.term);break;case"Type":case"Property":case"Keyword":case"AtKeyword":case"Function":case"String":case"Token":case"Comma":break;default:throw new Error("Unknown type: "+o.type)}s.call(n,o)}let i=ar,s=ar;if(typeof t=="function"?i=t:t&&(i=Ku(t.enter),s=Ku(t.leave)),i===ar&&s===ar)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");r(e)}const Qg={decorator(e){const t=[];let n=null;return{...e,node(r){const i=n;n=r,e.node.call(this,r),n=i},emit(r,i,s){t.push({type:i,value:r,node:s?null:n})},result(){return t}}}};function Zg(e){const t=[];return Br(e,(n,r,i)=>t.push({type:n,value:e.slice(r,i),node:null})),t}function Jg(e,t){return typeof e=="string"?Zg(e):t.generate(e,Qg)}const ke={type:"Match"},Se={type:"Mismatch"},Fs={type:"DisallowEmpty"},eb=40,tb=41;function Xe(e,t,n){return t===ke&&n===Se||e===ke&&t===ke&&n===ke?e:(e.type==="If"&&e.else===Se&&t===ke&&(t=e.then,e=e.match),{type:"If",match:e,then:t,else:n})}function Xu(e){return e.length>2&&e.charCodeAt(e.length-2)===eb&&e.charCodeAt(e.length-1)===tb}function Qu(e){return e.type==="Keyword"||e.type==="AtKeyword"||e.type==="Function"||e.type==="Type"&&Xu(e.name)}function Kt(e,t=" ",n=!1){return{type:"Group",terms:e,combinator:t,disallowEmpty:!1,explicit:n}}function or(e,t,n=new Set){if(!n.has(e))switch(n.add(e),e.type){case"If":e.match=or(e.match,t,n),e.then=or(e.then,t,n),e.else=or(e.else,t,n);break;case"Type":return t[e.name]||e}return e}function Us(e,t,n){switch(e){case" ":{let r=ke;for(let i=t.length-1;i>=0;i--){const s=t[i];r=Xe(s,r,Se)}return r}case"|":{let r=Se,i=null;for(let s=t.length-1;s>=0;s--){let o=t[s];if(Qu(o)&&(i===null&&s>0&&Qu(t[s-1])&&(i=Object.create(null),r=Xe({type:"Enum",map:i},ke,r)),i!==null)){const a=(Xu(o.name)?o.name.slice(0,-1):o.name).toLowerCase();if(!(a in i)){i[a]=o;continue}}i=null,r=Xe(o,ke,r)}return r}case"&&":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!0};let r=Se;for(let i=t.length-1;i>=0;i--){const s=t[i];let o;t.length>1?o=Us(e,t.filter(function(a){return a!==s}),!1):o=ke,r=Xe(s,o,r)}return r}case"||":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!1};let r=n?ke:Se;for(let i=t.length-1;i>=0;i--){const s=t[i];let o;t.length>1?o=Us(e,t.filter(function(a){return a!==s}),!0):o=ke,r=Xe(s,o,r)}return r}}}function nb(e){let t=ke,n=An(e.term);if(e.max===0)n=Xe(n,Fs,Se),t=Xe(n,null,Se),t.then=Xe(ke,ke,t),e.comma&&(t.then.else=Xe({type:"Comma",syntax:e},t,Se));else for(let r=e.min||1;r<=e.max;r++)e.comma&&t!==ke&&(t=Xe({type:"Comma",syntax:e},t,Se)),t=Xe(n,Xe(ke,ke,t),Se);if(e.min===0)t=Xe(ke,ke,t);else for(let r=0;r<e.min-1;r++)e.comma&&t!==ke&&(t=Xe({type:"Comma",syntax:e},t,Se)),t=Xe(n,t,Se);return t}function An(e){if(typeof e=="function")return{type:"Generic",fn:e};switch(e.type){case"Group":{let t=Us(e.combinator,e.terms.map(An),!1);return e.disallowEmpty&&(t=Xe(t,Fs,Se)),t}case"Multiplier":return nb(e);case"Boolean":{const t=An(e.term),n=An(Kt([Kt([{type:"Keyword",name:"not"},{type:"Type",name:"!boolean-group"}]),Kt([{type:"Type",name:"!boolean-group"},Kt([{type:"Multiplier",comma:!1,min:0,max:0,term:Kt([{type:"Keyword",name:"and"},{type:"Type",name:"!boolean-group"}])},{type:"Multiplier",comma:!1,min:0,max:0,term:Kt([{type:"Keyword",name:"or"},{type:"Type",name:"!boolean-group"}])}],"|")])],"|")),r=An(Kt([{type:"Type",name:"!term"},Kt([{type:"Token",value:"("},{type:"Type",name:"!self"},{type:"Token",value:")"}]),{type:"Type",name:"general-enclosed"}],"|"));return or(r,{"!term":t,"!self":n}),or(n,{"!boolean-group":r}),n}case"Type":case"Property":return{type:e.type,name:e.name,syntax:e};case"Keyword":return{type:e.type,name:e.name.toLowerCase(),syntax:e};case"AtKeyword":return{type:e.type,name:"@"+e.name.toLowerCase(),syntax:e};case"Function":return{type:e.type,name:e.name.toLowerCase()+"(",syntax:e};case"String":return e.value.length===3?{type:"Token",value:e.value.charAt(1),syntax:e}:{type:e.type,value:e.value.substr(1,e.value.length-2).replace(/\\'/g,"'"),syntax:e};case"Token":return{type:e.type,value:e.value,syntax:e};case"Comma":return{type:e.type,syntax:e};default:throw new Error("Unknown node type:",e.type)}}function Zr(e,t){return typeof e=="string"&&(e=Vu(e)),{type:"MatchGraph",match:An(e),syntax:t||null,source:e}}const{hasOwnProperty:Zu}=Object.prototype,rb=0,ib=1,Hs=2,Ju=3,el="Match",sb="Mismatch",ab="Maximum iteration number exceeded (please fill an issue on https://github.com/csstree/csstree/issues)",tl=15e3;function ob(e){let t=null,n=null,r=e;for(;r!==null;)n=r.prev,r.prev=t,t=r,r=n;return t}function zs(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++){const r=t.charCodeAt(n);let i=e.charCodeAt(n);if(i>=65&&i<=90&&(i=i|32),i!==r)return!1}return!0}function ub(e){return e.type!==ge?!1:e.value!=="?"}function nl(e){return e===null?!0:e.type===st||e.type===pe||e.type===we||e.type===ot||e.type===ze||ub(e)}function rl(e){return e===null?!0:e.type===de||e.type===ft||e.type===ut||e.type===ge&&e.value==="/"}function lb(e,t,n){function r(){do y++,p=y<e.length?e[y]:null;while(p!==null&&(p.type===Le||p.type===qe))}function i(D){const B=y+D;return B<e.length?e[B]:null}function s(D,B){return{nextState:D,matchStack:I,syntaxStack:h,thenStack:m,tokenIndex:y,prev:B}}function o(D){m={nextState:D,matchStack:I,syntaxStack:h,prev:m}}function a(D){f=s(D,f)}function u(){I={type:ib,syntax:t.syntax,token:p,prev:I},r(),b=null,y>C&&(C=y)}function c(){h={syntax:t.syntax,opts:t.syntax.opts||h!==null&&h.opts||null,prev:h},I={type:Hs,syntax:t.syntax,token:I.token,prev:I}}function d(){I.type===Hs?I=I.prev:I={type:Ju,syntax:h.syntax,token:I.token,prev:I},h=h.prev}let h=null,m=null,f=null,b=null,g=0,_=null,p=null,y=-1,C=0,I={type:rb,syntax:null,token:null,prev:null};for(r();_===null&&++g<tl;)switch(t.type){case"Match":if(m===null){if(p!==null&&(y!==e.length-1||p.value!=="\\0"&&p.value!=="\\9")){t=Se;break}_=el;break}if(t=m.nextState,t===Fs)if(m.matchStack===I){t=Se;break}else t=ke;for(;m.syntaxStack!==h;)d();m=m.prev;break;case"Mismatch":if(b!==null&&b!==!1)(f===null||y>f.tokenIndex)&&(f=b,b=!1);else if(f===null){_=sb;break}t=f.nextState,m=f.thenStack,h=f.syntaxStack,I=f.matchStack,y=f.tokenIndex,p=y<e.length?e[y]:null,f=f.prev;break;case"MatchGraph":t=t.match;break;case"If":t.else!==Se&&a(t.else),t.then!==ke&&o(t.then),t=t.match;break;case"MatchOnce":t={type:"MatchOnceBuffer",syntax:t,index:0,mask:0};break;case"MatchOnceBuffer":{const A=t.syntax.terms;if(t.index===A.length){if(t.mask===0||t.syntax.all){t=Se;break}t=ke;break}if(t.mask===(1<<A.length)-1){t=ke;break}for(;t.index<A.length;t.index++){const S=1<<t.index;if((t.mask&S)===0){a(t),o({type:"AddMatchOnce",syntax:t.syntax,mask:t.mask|S}),t=A[t.index++];break}}break}case"AddMatchOnce":t={type:"MatchOnceBuffer",syntax:t.syntax,index:0,mask:t.mask};break;case"Enum":if(p!==null){let A=p.value.toLowerCase();if(A.indexOf("\\")!==-1&&(A=A.replace(/\\[09].*$/,"")),Zu.call(t.map,A)){t=t.map[A];break}}t=Se;break;case"Generic":{const A=h!==null?h.opts:null,S=y+Math.floor(t.fn(p,i,A));if(!isNaN(S)&&S>y){for(;y<S;)u();t=ke}else t=Se;break}case"Type":case"Property":{const A=t.type==="Type"?"types":"properties",S=Zu.call(n,A)?n[A][t.name]:null;if(!S||!S.match)throw new Error("Bad syntax reference: "+(t.type==="Type"?"<"+t.name+">":"<'"+t.name+"'>"));if(b!==!1&&p!==null&&t.type==="Type"&&(t.name==="custom-ident"&&p.type===ne||t.name==="length"&&p.value==="0")){b===null&&(b=s(t,f)),t=Se;break}c(),t=S.matchRef||S.match;break}case"Keyword":{const A=t.name;if(p!==null){let S=p.value;if(S.indexOf("\\")!==-1&&(S=S.replace(/\\[09].*$/,"")),zs(S,A)){u(),t=ke;break}}t=Se;break}case"AtKeyword":case"Function":if(p!==null&&zs(p.value,t.name)){u(),t=ke;break}t=Se;break;case"Token":if(p!==null&&p.value===t.value){u(),t=ke;break}t=Se;break;case"Comma":p!==null&&p.type===st?nl(I.token)?t=Se:(u(),t=rl(p)?Se:ke):t=nl(I.token)||rl(p)?ke:Se;break;case"String":let D="",B=y;for(;B<e.length&&D.length<t.value.length;B++)D+=e[B].value;if(zs(D,t.value)){for(;y<B;)u();t=ke}else t=Se;break;default:throw new Error("Unknown node type: "+t.type)}switch(_){case null:console.warn("[csstree-match] BREAK after "+tl+" iterations"),_=ab,I=null;break;case el:for(;h!==null;)d();break;default:I=null}return{tokens:e,reason:_,iterations:g,match:I,longestMatch:C}}function il(e,t,n){const r=lb(e,t,n||{});if(r.match===null)return r;let i=r.match,s=r.match={syntax:t.syntax||null,match:[]};const o=[s];for(i=ob(i).prev;i!==null;){switch(i.type){case Hs:s.match.push(s={syntax:i.syntax,match:[]}),o.push(s);break;case Ju:o.pop(),s=o[o.length-1];break;default:s.match.push({syntax:i.syntax||null,token:i.token.value,node:i.token.node})}i=i.prev}return r}function sl(e){function t(i){return i===null?!1:i.type==="Type"||i.type==="Property"||i.type==="Keyword"}function n(i){if(Array.isArray(i.match)){for(let s=0;s<i.match.length;s++)if(n(i.match[s]))return t(i.syntax)&&r.unshift(i.syntax),!0}else if(i.node===e)return r=t(i.syntax)?[i.syntax]:[],!0;return!1}let r=null;return this.matched!==null&&n(this.matched),r}function cb(e,t){return $s(this,e,n=>n.type==="Type"&&n.name===t)}function db(e,t){return $s(this,e,n=>n.type==="Property"&&n.name===t)}function hb(e){return $s(this,e,t=>t.type==="Keyword")}function $s(e,t,n){const r=sl.call(e,t);return r===null?!1:r.some(n)}const fb=Object.freeze(Object.defineProperty({__proto__:null,getTrace:sl,isKeyword:hb,isProperty:db,isType:cb},Symbol.toStringTag,{value:"Module"}));function al(e){return"node"in e?e.node:al(e.match[0])}function ol(e){return"node"in e?e.node:ol(e.match[e.match.length-1])}function ul(e,t,n,r,i){function s(a){if(a.syntax!==null&&a.syntax.type===r&&a.syntax.name===i){const u=al(a),c=ol(a);e.syntax.walk(t,function(d,h,m){if(d===u){const f=new $e;do{if(f.appendData(h.data),h.data===c)break;h=h.next}while(h!==null);o.push({parent:m,nodes:f})}})}Array.isArray(a.match)&&a.match.forEach(s)}const o=[];return n.matched!==null&&s(n.matched),o}const{hasOwnProperty:ur}=Object.prototype;function js(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&e>=0}function ll(e){return!!e&&js(e.offset)&&js(e.line)&&js(e.column)}function pb(e,t){return function(r,i){if(!r||r.constructor!==Object)return i(r,"Type of node should be an Object");for(let s in r){let o=!0;if(ur.call(r,s)!==!1){if(s==="type")r.type!==e&&i(r,"Wrong node type `"+r.type+"`, expected `"+e+"`");else if(s==="loc"){if(r.loc===null)continue;if(r.loc&&r.loc.constructor===Object)if(typeof r.loc.source!="string")s+=".source";else if(!ll(r.loc.start))s+=".start";else if(!ll(r.loc.end))s+=".end";else continue;o=!1}else if(t.hasOwnProperty(s)){o=!1;for(let a=0;!o&&a<t[s].length;a++){const u=t[s][a];switch(u){case String:o=typeof r[s]=="string";break;case Boolean:o=typeof r[s]=="boolean";break;case null:o=r[s]===null;break;default:typeof u=="string"?o=r[s]&&r[s].type===u:Array.isArray(u)&&(o=r[s]instanceof $e)}}}else i(r,"Unknown field `"+s+"` for "+e+" node type");o||i(r,"Bad value for `"+e+"."+s+"`")}}for(const s in t)ur.call(t,s)&&ur.call(r,s)===!1&&i(r,"Field `"+e+"."+s+"` is missed")}}function cl(e,t){const n=[];for(let r=0;r<e.length;r++){const i=e[r];if(i===String||i===Boolean)n.push(i.name.toLowerCase());else if(i===null)n.push("null");else if(typeof i=="string")n.push(i);else if(Array.isArray(i))n.push("List<"+(cl(i,t)||"any")+">");else throw new Error("Wrong value `"+i+"` in `"+t+"` structure definition")}return n.join(" | ")}function mb(e,t){const n=t.structure,r={type:String,loc:!0},i={type:'"'+e+'"'};for(const s in n){if(ur.call(n,s)===!1)continue;const o=r[s]=Array.isArray(n[s])?n[s].slice():[n[s]];i[s]=cl(o,e+"."+s)}return{docs:i,check:pb(e,r)}}function gb(e){const t={};if(e.node){for(const n in e.node)if(ur.call(e.node,n)){const r=e.node[n];if(r.structure)t[n]=mb(n,r);else throw new Error("Missed `structure` field in `"+n+"` node type definition")}}return t}function qs(e,t,n){const r={};for(const i in e)e[i].syntax&&(r[i]=n?e[i].syntax:bs(e[i].syntax,{compact:t}));return r}function bb(e,t,n){const r={};for(const[i,s]of Object.entries(e))r[i]={prelude:s.prelude&&(n?s.prelude.syntax:bs(s.prelude.syntax,{compact:t})),descriptors:s.descriptors&&qs(s.descriptors,t,n)};return r}function Eb(e){for(let t=0;t<e.length;t++)if(e[t].value.toLowerCase()==="var(")return!0;return!1}function yb(e){const t=e.terms[0];return e.explicit===!1&&e.terms.length===1&&t.type==="Multiplier"&&t.comma===!0}function kt(e,t,n){return{matched:e,iterations:n,error:t,...fb}}function Sn(e,t,n,r){const i=Jg(n,e.syntax);let s;return Eb(i)?kt(null,new Error("Matching for a tree with var() is not supported")):(r&&(s=il(i,e.cssWideKeywordsSyntax,e)),(!r||!s.match)&&(s=il(i,t.match,e),!s.match)?kt(null,new eg(s.reason,t.syntax,n,s),s.iterations):kt(s.match,null,s.iterations))}class dl{constructor(t,n,r){if(this.cssWideKeywords=Ts,this.syntax=n,this.generic=!1,this.units={...Mu},this.atrules=Object.create(null),this.properties=Object.create(null),this.types=Object.create(null),this.structure=r||gb(t),t){if(t.cssWideKeywords&&(this.cssWideKeywords=t.cssWideKeywords),t.units)for(const i of Object.keys(Mu))Array.isArray(t.units[i])&&(this.units[i]=t.units[i]);if(t.types)for(const[i,s]of Object.entries(t.types))this.addType_(i,s);if(t.generic){this.generic=!0;for(const[i,s]of Object.entries(Ng(this.units)))this.addType_(i,s)}if(t.atrules)for(const[i,s]of Object.entries(t.atrules))this.addAtrule_(i,s);if(t.properties)for(const[i,s]of Object.entries(t.properties))this.addProperty_(i,s)}this.cssWideKeywordsSyntax=Zr(this.cssWideKeywords.join(" | "))}checkStructure(t){function n(s,o){i.push({node:s,message:o})}const r=this.structure,i=[];return this.syntax.walk(t,function(s){r.hasOwnProperty(s.type)?r[s.type].check(s,n):n(s,"Unknown node type `"+s.type+"`")}),i.length?i:!1}createDescriptor(t,n,r,i=null){const s={type:n,name:r},o={type:n,name:r,parent:i,serializable:typeof t=="string"||t&&typeof t.type=="string",syntax:null,match:null,matchRef:null};return typeof t=="function"?o.match=Zr(t,s):(typeof t=="string"?Object.defineProperty(o,"syntax",{get(){return Object.defineProperty(o,"syntax",{value:Vu(t)}),o.syntax}}):o.syntax=t,Object.defineProperty(o,"match",{get(){return Object.defineProperty(o,"match",{value:Zr(o.syntax,s)}),o.match}}),n==="Property"&&Object.defineProperty(o,"matchRef",{get(){const a=o.syntax,u=yb(a)?Zr({...a,terms:[a.terms[0].term]},s):null;return Object.defineProperty(o,"matchRef",{value:u}),u}})),o}addAtrule_(t,n){n&&(this.atrules[t]={type:"Atrule",name:t,prelude:n.prelude?this.createDescriptor(n.prelude,"AtrulePrelude",t):null,descriptors:n.descriptors?Object.keys(n.descriptors).reduce((r,i)=>(r[i]=this.createDescriptor(n.descriptors[i],"AtruleDescriptor",i,t),r),Object.create(null)):null})}addProperty_(t,n){n&&(this.properties[t]=this.createDescriptor(n,"Property",t))}addType_(t,n){n&&(this.types[t]=this.createDescriptor(n,"Type",t))}checkAtruleName(t){if(!this.getAtrule(t))return new tr("Unknown at-rule","@"+t)}checkAtrulePrelude(t,n){const r=this.checkAtruleName(t);if(r)return r;const i=this.getAtrule(t);if(!i.prelude&&n)return new SyntaxError("At-rule `@"+t+"` should not contain a prelude");if(i.prelude&&!n&&!Sn(this,i.prelude,"",!1).matched)return new SyntaxError("At-rule `@"+t+"` should contain a prelude")}checkAtruleDescriptorName(t,n){const r=this.checkAtruleName(t);if(r)return r;const i=this.getAtrule(t),s=Es(n);if(!i.descriptors)return new SyntaxError("At-rule `@"+t+"` has no known descriptors");if(!i.descriptors[s.name]&&!i.descriptors[s.basename])return new tr("Unknown at-rule descriptor",n)}checkPropertyName(t){if(!this.getProperty(t))return new tr("Unknown property",t)}matchAtrulePrelude(t,n){const r=this.checkAtrulePrelude(t,n);if(r)return kt(null,r);const i=this.getAtrule(t);return i.prelude?Sn(this,i.prelude,n||"",!1):kt(null,null)}matchAtruleDescriptor(t,n,r){const i=this.checkAtruleDescriptorName(t,n);if(i)return kt(null,i);const s=this.getAtrule(t),o=Es(n);return Sn(this,s.descriptors[o.name]||s.descriptors[o.basename],r,!1)}matchDeclaration(t){return t.type!=="Declaration"?kt(null,new Error("Not a Declaration node")):this.matchProperty(t.property,t.value)}matchProperty(t,n){if(Cu(t).custom)return kt(null,new Error("Lexer matching doesn't applicable for custom properties"));const r=this.checkPropertyName(t);return r?kt(null,r):Sn(this,this.getProperty(t),n,!0)}matchType(t,n){const r=this.getType(t);return r?Sn(this,r,n,!1):kt(null,new tr("Unknown type",t))}match(t,n){return typeof t!="string"&&(!t||!t.type)?kt(null,new tr("Bad syntax")):((typeof t=="string"||!t.match)&&(t=this.createDescriptor(t,"Type","anonymous")),Sn(this,t,n,!1))}findValueFragments(t,n,r,i){return ul(this,n,this.matchProperty(t,n),r,i)}findDeclarationValueFragments(t,n,r){return ul(this,t.value,this.matchDeclaration(t),n,r)}findAllFragments(t,n,r){const i=[];return this.syntax.walk(t,{visit:"Declaration",enter:s=>{i.push.apply(i,this.findDeclarationValueFragments(s,n,r))}}),i}getAtrule(t,n=!0){const r=Es(t);return(r.vendor&&n?this.atrules[r.name]||this.atrules[r.basename]:this.atrules[r.name])||null}getAtrulePrelude(t,n=!0){const r=this.getAtrule(t,n);return r&&r.prelude||null}getAtruleDescriptor(t,n){return this.atrules.hasOwnProperty(t)&&this.atrules.declarators&&this.atrules[t].declarators[n]||null}getProperty(t,n=!0){const r=Cu(t);return(r.vendor&&n?this.properties[r.name]||this.properties[r.basename]:this.properties[r.name])||null}getType(t){return hasOwnProperty.call(this.types,t)?this.types[t]:null}validate(){function t(u,c){return c?`<${u}>`:`<'${u}'>`}function n(u,c,d,h){if(d.has(c))return d.get(c);d.set(c,!1),h.syntax!==null&&Xg(h.syntax,function(m){if(m.type!=="Type"&&m.type!=="Property")return;const f=m.type==="Type"?u.types:u.properties,b=m.type==="Type"?i:s;hasOwnProperty.call(f,m.name)?n(u,m.name,b,f[m.name])&&(r.push(`${t(c,d===i)} used broken syntax definition ${t(m.name,m.type==="Type")}`),d.set(c,!0)):(r.push(`${t(c,d===i)} used missed syntax definition ${t(m.name,m.type==="Type")}`),d.set(c,!0))},this)}const r=[];let i=new Map,s=new Map;for(const u in this.types)n(this,u,i,this.types[u]);for(const u in this.properties)n(this,u,s,this.properties[u]);const o=[...i.keys()].filter(u=>i.get(u)),a=[...s.keys()].filter(u=>s.get(u));return o.length||a.length?{errors:r,types:o,properties:a}:null}dump(t,n){return{generic:this.generic,cssWideKeywords:this.cssWideKeywords,units:this.units,types:qs(this.types,!n,t),properties:qs(this.properties,!n,t),atrules:bb(this.atrules,!n,t)}}toString(){return JSON.stringify(this.dump())}}function Ys(e,t){return typeof t=="string"&&/^\s*\|/.test(t)?typeof e=="string"?e+t:t.replace(/^\s*\|\s*/,""):t||null}function Tb(e,t){const n=Object.create(null);for(const r of Object.keys(e))t.includes(r)&&(n[r]=e[r]);return n}function Ws(e,t,n){const r={...e};for(const[i,s]of Object.entries(t))r[i]={...r[i],...n?Tb(s,n):s};return r}function Gs(e,t){const n={...e};for(const[r,i]of Object.entries(t))switch(r){case"generic":n[r]=!!i;break;case"cssWideKeywords":n[r]=e[r]?[...e[r],...i]:i||[];break;case"units":n[r]={...e[r]};for(const[s,o]of Object.entries(i))n[r][s]=Array.isArray(o)?o:[];break;case"atrules":n[r]={...e[r]};for(const[s,o]of Object.entries(i)){const a=n[r][s]||{},u=n[r][s]={prelude:a.prelude||null,descriptors:{...a.descriptors}};if(o){u.prelude=o.prelude?Ys(u.prelude,o.prelude):u.prelude||null;for(const[c,d]of Object.entries(o.descriptors||{}))u.descriptors[c]=d?Ys(u.descriptors[c],d):null;Object.keys(u.descriptors).length||(u.descriptors=null)}}break;case"types":case"properties":n[r]={...e[r]};for(const[s,o]of Object.entries(i))n[r][s]=Ys(n[r][s],o);break;case"parseContext":n[r]={...e[r],...i};break;case"scope":case"features":n[r]=Ws(e[r],i);break;case"atrule":case"pseudo":n[r]=Ws(e[r],i,["parse"]);break;case"node":n[r]=Ws(e[r],i,["name","structure","parse","generate","walkContext"]);break}return n}function hl(e){const t=vm(e),n=Vm(e),r=qm(e),{fromPlainObject:i,toPlainObject:s}=Ym(n),o={lexer:null,createLexer:a=>new dl(a,o,o.lexer.structure),tokenize:Br,parse:t,generate:r,walk:n,find:n.find,findLast:n.findLast,findAll:n.findAll,fromPlainObject:i,toPlainObject:s,fork(a){const u=Gs({},e);return hl(typeof a=="function"?a(u):Gs(u,a))}};return o.lexer=new dl({generic:e.generic,cssWideKeywords:e.cssWideKeywords,units:e.units,types:e.types,atrules:e.atrules,properties:e.properties,node:e.node},o),o}const _b=e=>hl(Gs({},e)),wb={generic:!0,cssWideKeywords:["initial","inherit","unset","revert","revert-layer"],units:{angle:["deg","grad","rad","turn"],decibel:["db"],flex:["fr"],frequency:["hz","khz"],length:["cm","mm","q","in","pt","pc","px","em","rem","ex","rex","cap","rcap","ch","rch","ic","ric","lh","rlh","vw","svw","lvw","dvw","vh","svh","lvh","dvh","vi","svi","lvi","dvi","vb","svb","lvb","dvb","vmin","svmin","lvmin","dvmin","vmax","svmax","lvmax","dvmax","cqw","cqh","cqi","cqb","cqmin","cqmax"],resolution:["dpi","dpcm","dppx","x"],semitones:["st"],time:["s","ms"]},types:{"abs()":"abs( <calc-sum> )","absolute-size":"xx-small|x-small|small|medium|large|x-large|xx-large|xxx-large","acos()":"acos( <calc-sum> )","alpha-value":"<number>|<percentage>","an+b":"odd|even|<integer>|<n-dimension>|'+'? † n|-n|<ndashdigit-dimension>|'+'? † <ndashdigit-ident>|<dashndashdigit-ident>|<n-dimension> <signed-integer>|'+'? † n <signed-integer>|-n <signed-integer>|<ndash-dimension> <signless-integer>|'+'? † n- <signless-integer>|-n- <signless-integer>|<n-dimension> ['+'|'-'] <signless-integer>|'+'? † n ['+'|'-'] <signless-integer>|-n ['+'|'-'] <signless-integer>","anchor()":"anchor( <anchor-name>?&&<anchor-side> , <length-percentage>? )","anchor-name":"<dashed-ident>","anchor-side":"inside|outside|top|left|right|bottom|start|end|self-start|self-end|<percentage>|center","anchor-size":"width|height|block|inline|self-block|self-inline","anchor-size()":"anchor-size( [<anchor-name>||<anchor-size>]? , <length-percentage>? )","angle-percentage":"<angle>|<percentage>","angular-color-hint":"<angle-percentage>|<zero>","angular-color-stop":"<color> <color-stop-angle>?","angular-color-stop-list":"<angular-color-stop> , [<angular-color-hint>? , <angular-color-stop>]#?","animateable-feature":"scroll-position|contents|<custom-ident>","animation-action":"none|play|play-once|play-forwards|play-backwards|pause|reset|replay","asin()":"asin( <calc-sum> )","atan()":"atan( <calc-sum> )","atan2()":"atan2( <calc-sum> , <calc-sum> )",attachment:"scroll|fixed|local","attr()":"attr( <attr-name> <attr-type>? , <declaration-value>? )","attr-matcher":"['~'|'|'|'^'|'$'|'*']? '='","attr-modifier":"i|s","attr-type":"type( <syntax> )|raw-string|number|<attr-unit>","attribute-selector":"'[' <wq-name> ']'|'[' <wq-name> <attr-matcher> [<string-token>|<ident-token>] <attr-modifier>? ']'","auto-repeat":"repeat( [auto-fill|auto-fit] , [<line-names>? <fixed-size>]+ <line-names>? )","auto-track-list":"[<line-names>? [<fixed-size>|<fixed-repeat>]]* <line-names>? <auto-repeat> [<line-names>? [<fixed-size>|<fixed-repeat>]]* <line-names>?",axis:"block|inline|x|y","baseline-position":"[first|last]? baseline","basic-shape":"<inset()>|<xywh()>|<rect()>|<circle()>|<ellipse()>|<polygon()>|<path()>","basic-shape-rect":"<inset()>|<rect()>|<xywh()>","bg-clip":"<visual-box>|border-area|text","bg-image":"<image>|none","bg-layer":"<bg-image>||<bg-position> [/ <bg-size>]?||<repeat-style>||<attachment>||<visual-box>||<visual-box>","bg-position":"[[left|center|right|top|bottom|<length-percentage>]|[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]|[center|[left|right] <length-percentage>?]&&[center|[top|bottom] <length-percentage>?]]","bg-size":"[<length-percentage [0,∞]>|auto]{1,2}|cover|contain","blend-mode":"normal|multiply|screen|overlay|darken|lighten|color-dodge|color-burn|hard-light|soft-light|difference|exclusion|hue|saturation|color|luminosity","blur()":"blur( <length>? )","brightness()":"brightness( [<number>|<percentage>]? )","calc()":"calc( <calc-sum> )","calc-constant":"e|pi|infinity|-infinity|NaN","calc-product":"<calc-value> ['*' <calc-value>|'/' <number>]*","calc-size()":"calc-size( <calc-size-basis> , <calc-sum> )","calc-size-basis":"<intrinsic-size-keyword>|<calc-size()>|any|<calc-sum>","calc-sum":"<calc-product> [['+'|'-'] <calc-product>]*","calc-value":"<number>|<dimension>|<percentage>|<calc-constant>|( <calc-sum> )","cf-final-image":"<image>|<color>","cf-mixing-image":"<percentage>?&&<image>","circle()":"circle( <radial-size>? [at <position>]? )","clamp()":"clamp( <calc-sum>#{3} )","class-selector":"'.' <ident-token>","clip-source":"<url>",color:"<color-base>|currentColor|<system-color>|<device-cmyk()>|<light-dark()>|<-non-standard-color>","color()":"color( <colorspace-params> [/ [<alpha-value>|none]]? )","color-base":"<hex-color>|<color-function>|<named-color>|<color-mix()>|transparent","color-function":"<rgb()>|<rgba()>|<hsl()>|<hsla()>|<hwb()>|<lab()>|<lch()>|<oklab()>|<oklch()>|<color()>","color-interpolation-method":"in [<rectangular-color-space>|<polar-color-space> <hue-interpolation-method>?|<custom-color-space>]","color-mix()":"color-mix( <color-interpolation-method> , [<color>&&<percentage [0,100]>?]#{2} )","color-stop":"<color-stop-length>|<color-stop-angle>","color-stop-angle":"[<angle-percentage>|<zero>]{1,2}","color-stop-length":"<length-percentage>{1,2}","color-stop-list":"<linear-color-stop> , [<linear-color-hint>? , <linear-color-stop>]#?","colorspace-params":"[<predefined-rgb-params>|<xyz-params>]",combinator:"'>'|'+'|'~'|['|' '|']","common-lig-values":"[common-ligatures|no-common-ligatures]","compat-auto":"searchfield|textarea|checkbox|radio|menulist|listbox|meter|progress-bar|button","compat-special":"textfield|menulist-button","complex-selector":"<complex-selector-unit> [<combinator>? <complex-selector-unit>]*","complex-selector-list":"<complex-selector>#","composite-style":"clear|copy|source-over|source-in|source-out|source-atop|destination-over|destination-in|destination-out|destination-atop|xor","compositing-operator":"add|subtract|intersect|exclude","compound-selector":"[<type-selector>? <subclass-selector>*]!","compound-selector-list":"<compound-selector>#","conic-gradient()":"conic-gradient( [<conic-gradient-syntax>] )","conic-gradient-syntax":"[[[from [<angle>|<zero>]]? [at <position>]?]||<color-interpolation-method>]? , <angular-color-stop-list>","container-condition":"not <query-in-parens>|<query-in-parens> [[and <query-in-parens>]*|[or <query-in-parens>]*]","container-name":"<custom-ident>","container-query":"not <query-in-parens>|<query-in-parens> [[and <query-in-parens>]*|[or <query-in-parens>]*]","content-distribution":"space-between|space-around|space-evenly|stretch","content-list":"[<string>|contents|<image>|<counter>|<quote>|<target>|<leader()>|<attr()>]+","content-position":"center|start|end|flex-start|flex-end","content-replacement":"<image>","contextual-alt-values":"[contextual|no-contextual]","contrast()":"contrast( [<number>|<percentage>]? )","coord-box":"content-box|padding-box|border-box|fill-box|stroke-box|view-box","corner-shape-value":"round|scoop|bevel|notch|square|squircle|<superellipse()>","cos()":"cos( <calc-sum> )",counter:"<counter()>|<counters()>","counter()":"counter( <counter-name> , <counter-style>? )","counter-name":"<custom-ident>","counter-style":"<counter-style-name>|symbols( )","counter-style-name":"<custom-ident>","counters()":"counters( <counter-name> , <string> , <counter-style>? )","cross-fade()":"cross-fade( <cf-mixing-image> , <cf-final-image>? )","cubic-bezier()":"cubic-bezier( [<number [0,1]> , <number>]#{2} )","cubic-bezier-easing-function":"ease|ease-in|ease-out|ease-in-out|cubic-bezier( <number [0,1]> , <number> , <number [0,1]> , <number> )","cursor-predefined":"auto|default|none|context-menu|help|pointer|progress|wait|cell|crosshair|text|vertical-text|alias|copy|move|no-drop|not-allowed|e-resize|n-resize|ne-resize|nw-resize|s-resize|se-resize|sw-resize|w-resize|ew-resize|ns-resize|nesw-resize|nwse-resize|col-resize|row-resize|all-scroll|zoom-in|zoom-out|grab|grabbing","custom-color-space":"<dashed-ident>","custom-params":"<dashed-ident> [<number>|<percentage>|none]+",dasharray:"[[<length-percentage>|<number>]+]#","dashndashdigit-ident":"<ident-token>","deprecated-system-color":"ActiveBorder|ActiveCaption|AppWorkspace|Background|ButtonHighlight|ButtonShadow|CaptionText|InactiveBorder|InactiveCaption|InactiveCaptionText|InfoBackground|InfoText|Menu|MenuText|Scrollbar|ThreeDDarkShadow|ThreeDFace|ThreeDHighlight|ThreeDLightShadow|ThreeDShadow|Window|WindowFrame|WindowText","discretionary-lig-values":"[discretionary-ligatures|no-discretionary-ligatures]","display-box":"contents|none","display-inside":"flow|flow-root|table|flex|grid|ruby","display-internal":"table-row-group|table-header-group|table-footer-group|table-row|table-cell|table-column-group|table-column|table-caption|ruby-base|ruby-text|ruby-base-container|ruby-text-container","display-legacy":"inline-block|inline-list-item|inline-table|inline-flex|inline-grid","display-listitem":"<display-outside>?&&[flow|flow-root]?&&list-item","display-outside":"block|inline|run-in","drop-shadow()":"drop-shadow( [<color>?&&<length>{2,3}] )","dynamic-range-limit-mix()":"dynamic-range-limit-mix( [<'dynamic-range-limit'>&&<percentage [0,100]>]#{2,} )","easing-function":"<linear-easing-function>|<cubic-bezier-easing-function>|<step-easing-function>","east-asian-variant-values":"[jis78|jis83|jis90|jis04|simplified|traditional]","east-asian-width-values":"[full-width|proportional-width]","element()":"element( <custom-ident> , [first|start|last|first-except]? )|element( <id-selector> )","ellipse()":"ellipse( <radial-size>? [at <position>]? )","env()":"env( <custom-ident> , <declaration-value>? )","exp()":"exp( <calc-sum> )","explicit-track-list":"[<line-names>? <track-size>]+ <line-names>?","family-name":"<string>|<custom-ident>+","feature-tag-value":"<string> [<integer>|on|off]?","feature-type":"@stylistic|@historical-forms|@styleset|@character-variant|@swash|@ornaments|@annotation","feature-value-block":"<feature-type> '{' <feature-value-declaration-list> '}'","feature-value-block-list":"<feature-value-block>+","feature-value-declaration":"<custom-ident> : <integer>+ ;","feature-value-declaration-list":"<feature-value-declaration>","feature-value-name":"<custom-ident>","filter-function":"<blur()>|<brightness()>|<contrast()>|<drop-shadow()>|<grayscale()>|<hue-rotate()>|<invert()>|<opacity()>|<saturate()>|<sepia()>","filter-value-list":"[<filter-function>|<url>]+","final-bg-layer":"<bg-image>||<bg-position> [/ <bg-size>]?||<repeat-style>||<attachment>||<visual-box>||<visual-box>||<'background-color'>","fit-content()":"fit-content( <length-percentage [0,∞]> )","fixed-breadth":"<length-percentage>","fixed-repeat":"repeat( [<integer [1,∞]>] , [<line-names>? <fixed-size>]+ <line-names>? )","fixed-size":"<fixed-breadth>|minmax( <fixed-breadth> , <track-breadth> )|minmax( <inflexible-breadth> , <fixed-breadth> )","font-stretch-absolute":"normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded|<percentage>","font-variant-css2":"normal|small-caps","font-weight-absolute":"normal|bold|<number [1,1000]>","font-width-css3":"normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded","form-control-identifier":"select","frequency-percentage":"<frequency>|<percentage>","generic-complete":"serif|sans-serif|system-ui|cursive|fantasy|math|monospace","general-enclosed":"[<function-token> <any-value>? )]|[( <any-value>? )]","generic-family":"<generic-script-specific>|<generic-complete>|<generic-incomplete>|<-non-standard-generic-family>","generic-incomplete":"ui-serif|ui-sans-serif|ui-monospace|ui-rounded","geometry-box":"<shape-box>|fill-box|stroke-box|view-box",gradient:"<linear-gradient()>|<repeating-linear-gradient()>|<radial-gradient()>|<repeating-radial-gradient()>|<conic-gradient()>|<repeating-conic-gradient()>|<-legacy-gradient>","grayscale()":"grayscale( [<number>|<percentage>]? )","grid-line":"auto|<custom-ident>|[<integer>&&<custom-ident>?]|[span&&[<integer>||<custom-ident>]]","historical-lig-values":"[historical-ligatures|no-historical-ligatures]","hsl()":"hsl( <hue> , <percentage> , <percentage> , <alpha-value>? )|hsl( [<hue>|none] [<percentage>|<number>|none] [<percentage>|<number>|none] [/ [<alpha-value>|none]]? )","hsla()":"hsla( <hue> , <percentage> , <percentage> , <alpha-value>? )|hsla( [<hue>|none] [<percentage>|<number>|none] [<percentage>|<number>|none] [/ [<alpha-value>|none]]? )",hue:"<number>|<angle>","hue-interpolation-method":"[shorter|longer|increasing|decreasing] hue","hue-rotate()":"hue-rotate( [<angle>|<zero>]? )","hwb()":"hwb( [<hue>|none] [<percentage>|<number>|none] [<percentage>|<number>|none] [/ [<alpha-value>|none]]? )","hypot()":"hypot( <calc-sum># )",image:"<url>|<image()>|<image-set()>|<element()>|<paint()>|<cross-fade()>|<gradient>","image()":"image( <image-tags>? [<image-src>? , <color>?]! )","image-set()":"image-set( <image-set-option># )","image-set-option":"[<image>|<string>] [<resolution>||type( <string> )]","image-src":"<url>|<string>","image-tags":"ltr|rtl","inflexible-breadth":"<length-percentage>|min-content|max-content|auto","inset()":"inset( <length-percentage>{1,4} [round <'border-radius'>]? )","invert()":"invert( [<number>|<percentage>]? )","keyframe-block":"<keyframe-selector># { <declaration-list> }","keyframe-selector":"from|to|<percentage [0,100]>|<timeline-range-name> <percentage>","keyframes-name":"<custom-ident>|<string>","lab()":"lab( [<percentage>|<number>|none] [<percentage>|<number>|none] [<percentage>|<number>|none] [/ [<alpha-value>|none]]? )","layer()":"layer( <layer-name> )","layer-name":"<ident> ['.' <ident>]*","lch()":"lch( [<percentage>|<number>|none] [<percentage>|<number>|none] [<hue>|none] [/ [<alpha-value>|none]]? )","leader()":"leader( <leader-type> )","leader-type":"dotted|solid|space|<string>","length-percentage":"<length>|<percentage>","light-dark()":"light-dark( <color> , <color> )","line-name-list":"[<line-names>|<name-repeat>]+","line-names":"'[' <custom-ident>* ']'","line-style":"none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset","line-width":"<length>|thin|medium|thick","linear()":"linear( [<number>&&<percentage>{0,2}]# )","linear-color-hint":"<length-percentage>","linear-color-stop":"<color> <color-stop-length>?","linear-easing-function":"linear|<linear()>","linear-gradient()":"linear-gradient( [<linear-gradient-syntax>] )","linear-gradient-syntax":"[[<angle>|<zero>|to <side-or-corner>]||<color-interpolation-method>]? , <color-stop-list>","log()":"log( <calc-sum> , <calc-sum>? )","mask-layer":"<mask-reference>||<position> [/ <bg-size>]?||<repeat-style>||<geometry-box>||[<geometry-box>|no-clip]||<compositing-operator>||<masking-mode>","mask-position":"[<length-percentage>|left|center|right] [<length-percentage>|top|center|bottom]?","mask-reference":"none|<image>|<mask-source>","mask-source":"<url>","masking-mode":"alpha|luminance|match-source","matrix()":"matrix( <number>#{6} )","matrix3d()":"matrix3d( <number>#{16} )","max()":"max( <calc-sum># )","media-and":"<media-in-parens> [and <media-in-parens>]+","media-condition":"<media-not>|<media-and>|<media-or>|<media-in-parens>","media-condition-without-or":"<media-not>|<media-and>|<media-in-parens>","media-feature":"( [<mf-plain>|<mf-boolean>|<mf-range>] )","media-in-parens":"( <media-condition> )|<media-feature>|<general-enclosed>","media-not":"not <media-in-parens>","media-or":"<media-in-parens> [or <media-in-parens>]+","media-query":"<media-condition>|[not|only]? <media-type> [and <media-condition-without-or>]?","media-query-list":"<media-query>#","media-type":"<ident>","mf-boolean":"<mf-name>","mf-name":"<ident>","mf-plain":"<mf-name> : <mf-value>","mf-range":"<mf-name> ['<'|'>']? '='? <mf-value>|<mf-value> ['<'|'>']? '='? <mf-name>|<mf-value> '<' '='? <mf-name> '<' '='? <mf-value>|<mf-value> '>' '='? <mf-name> '>' '='? <mf-value>","mf-value":"<number>|<dimension>|<ident>|<ratio>","min()":"min( <calc-sum># )","minmax()":"minmax( [<length-percentage>|min-content|max-content|auto] , [<length-percentage>|<flex>|min-content|max-content|auto] )","mod()":"mod( <calc-sum> , <calc-sum> )","n-dimension":"<dimension-token>","name-repeat":"repeat( [<integer [1,∞]>|auto-fill] , <line-names>+ )","named-color":"aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen","namespace-prefix":"<ident>","ndash-dimension":"<dimension-token>","ndashdigit-dimension":"<dimension-token>","ndashdigit-ident":"<ident-token>","ns-prefix":"[<ident-token>|'*']? '|'","number-percentage":"<number>|<percentage>","numeric-figure-values":"[lining-nums|oldstyle-nums]","numeric-fraction-values":"[diagonal-fractions|stacked-fractions]","numeric-spacing-values":"[proportional-nums|tabular-nums]","offset-path":"<ray()>|<url>|<basic-shape>","oklab()":"oklab( [<percentage>|<number>|none] [<percentage>|<number>|none] [<percentage>|<number>|none] [/ [<alpha-value>|none]]? )","oklch()":"oklch( [<percentage>|<number>|none] [<percentage>|<number>|none] [<hue>|none] [/ [<alpha-value>|none]]? )","opacity()":"opacity( [<number>|<percentage>]? )","opacity-value":"<number>|<percentage>","outline-line-style":"none|dotted|dashed|solid|double|groove|ridge|inset|outset","outline-radius":"<length>|<percentage>","overflow-position":"unsafe|safe","page-body":"<declaration>? [; <page-body>]?|<page-margin-box> <page-body>","page-margin-box":"<page-margin-box-type> '{' <declaration-list> '}'","page-margin-box-type":"@top-left-corner|@top-left|@top-center|@top-right|@top-right-corner|@bottom-left-corner|@bottom-left|@bottom-center|@bottom-right|@bottom-right-corner|@left-top|@left-middle|@left-bottom|@right-top|@right-middle|@right-bottom","page-selector":"<pseudo-page>+|<ident> <pseudo-page>*","page-selector-list":"[<page-selector>#]?","page-size":"A5|A4|A3|B5|B4|JIS-B5|JIS-B4|letter|legal|ledger",paint:"none|<color>|<url> [none|<color>]?|context-fill|context-stroke","paint()":"paint( <ident> , <declaration-value>? )","paint-box":"<visual-box>|fill-box|stroke-box","palette-identifier":"<dashed-ident>","palette-mix()":"palette-mix( <color-interpolation-method> , [[normal|light|dark|<palette-identifier>|<palette-mix()>]&&<percentage [0,100]>?]#{2} )","path()":"path( <'fill-rule'>? , <string> )","perspective()":"perspective( [<length [0,∞]>|none] )","polar-color-space":"hsl|hwb|lch|oklch","polygon()":"polygon( <'fill-rule'>? , [<length-percentage> <length-percentage>]# )",position:"[[left|center|right]||[top|center|bottom]|[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]?|[[left|right] <length-percentage>]&&[[top|bottom] <length-percentage>]]","position-area":"[[left|center|right|span-left|span-right|x-start|x-end|span-x-start|span-x-end|x-self-start|x-self-end|span-x-self-start|span-x-self-end|span-all]||[top|center|bottom|span-top|span-bottom|y-start|y-end|span-y-start|span-y-end|y-self-start|y-self-end|span-y-self-start|span-y-self-end|span-all]|[block-start|center|block-end|span-block-start|span-block-end|span-all]||[inline-start|center|inline-end|span-inline-start|span-inline-end|span-all]|[self-block-start|center|self-block-end|span-self-block-start|span-self-block-end|span-all]||[self-inline-start|center|self-inline-end|span-self-inline-start|span-self-inline-end|span-all]|[start|center|end|span-start|span-end|span-all]{1,2}|[self-start|center|self-end|span-self-start|span-self-end|span-all]{1,2}]","pow()":"pow( <calc-sum> , <calc-sum> )","predefined-rgb":"srgb|srgb-linear|display-p3|display-p3-linear|a98-rgb|prophoto-rgb|rec2020","predefined-rgb-params":"<predefined-rgb> [<number>|<percentage>|none]{3}","pseudo-class-selector":"':' <ident-token>|':' <function-token> <any-value> ')'","pseudo-element-selector":"':' <pseudo-class-selector>|<legacy-pseudo-element-selector>","pseudo-page":": [left|right|first|blank]","query-in-parens":"( <container-condition> )|( <size-feature> )|style( <style-query> )|<general-enclosed>",quote:"open-quote|close-quote|no-open-quote|no-close-quote","radial-extent":"closest-corner|closest-side|farthest-corner|farthest-side","radial-gradient()":"radial-gradient( [<radial-gradient-syntax>] )","radial-gradient-syntax":"[[[<radial-shape>||<radial-size>]? [at <position>]?]||<color-interpolation-method>]? , <color-stop-list>","radial-shape":"circle|ellipse","radial-size":"<radial-extent>|<length [0,∞]>|<length-percentage [0,∞]>{2}",ratio:"<number [0,∞]> [/ <number [0,∞]>]?","ray()":"ray( <angle>&&<ray-size>?&&contain?&&[at <position>]? )","ray-size":"closest-side|closest-corner|farthest-side|farthest-corner|sides","rect()":"rect( [<length-percentage>|auto]{4} [round <'border-radius'>]? )","rectangular-color-space":"srgb|srgb-linear|display-p3|display-p3-linear|a98-rgb|prophoto-rgb|rec2020|lab|oklab|xyz|xyz-d50|xyz-d65","relative-selector":"<combinator>? <complex-selector>","relative-selector-list":"<relative-selector>#","relative-size":"larger|smaller","rem()":"rem( <calc-sum> , <calc-sum> )","repeat-style":"repeat-x|repeat-y|[repeat|space|round|no-repeat]{1,2}","repeating-conic-gradient()":"repeating-conic-gradient( [<conic-gradient-syntax>] )","repeating-linear-gradient()":"repeating-linear-gradient( [<linear-gradient-syntax>] )","repeating-radial-gradient()":"repeating-radial-gradient( [<radial-gradient-syntax>] )","reversed-counter-name":"reversed( <counter-name> )","rgb()":"rgb( <percentage>#{3} , <alpha-value>? )|rgb( <number>#{3} , <alpha-value>? )|rgb( [<number>|<percentage>|none]{3} [/ [<alpha-value>|none]]? )","rgba()":"rgba( <percentage>#{3} , <alpha-value>? )|rgba( <number>#{3} , <alpha-value>? )|rgba( [<number>|<percentage>|none]{3} [/ [<alpha-value>|none]]? )","rotate()":"rotate( [<angle>|<zero>] )","rotate3d()":"rotate3d( <number> , <number> , <number> , [<angle>|<zero>] )","rotateX()":"rotateX( [<angle>|<zero>] )","rotateY()":"rotateY( [<angle>|<zero>] )","rotateZ()":"rotateZ( [<angle>|<zero>] )","round()":"round( <rounding-strategy>? , <calc-sum> , <calc-sum> )","rounding-strategy":"nearest|up|down|to-zero","saturate()":"saturate( [<number>|<percentage>]? )","scale()":"scale( [<number>|<percentage>]#{1,2} )","scale3d()":"scale3d( [<number>|<percentage>]#{3} )","scaleX()":"scaleX( [<number>|<percentage>] )","scaleY()":"scaleY( [<number>|<percentage>] )","scaleZ()":"scaleZ( [<number>|<percentage>] )","scope-end":"<forgiving-selector-list>","scope-start":"<forgiving-selector-list>","scroll()":"scroll( [<scroller>||<axis>]? )",scroller:"root|nearest|self","scroll-state-feature":"<media-query-list>","scroll-state-in-parens":"( <scroll-state-query> )|( <scroll-state-feature> )|<general-enclosed>","scroll-state-query":"not <scroll-state-in-parens>|<scroll-state-in-parens> [[and <scroll-state-in-parens>]*|[or <scroll-state-in-parens>]*]|<scroll-state-feature>","selector-list":"<complex-selector-list>","self-position":"center|start|end|self-start|self-end|flex-start|flex-end","sepia()":"sepia( [<number>|<percentage>]? )",shadow:"inset?&&<length>{2,4}&&<color>?","shadow-t":"[<length>{2,3}&&<color>?]",shape:"rect( <top> , <right> , <bottom> , <left> )|rect( <top> <right> <bottom> <left> )","shape-box":"<visual-box>|margin-box","side-or-corner":"[left|right]||[top|bottom]","sign()":"sign( <calc-sum> )","signed-integer":"<number-token>","signless-integer":"<number-token>","sin()":"sin( <calc-sum> )","single-animation":"<'animation-duration'>||<easing-function>||<'animation-delay'>||<single-animation-iteration-count>||<single-animation-direction>||<single-animation-fill-mode>||<single-animation-play-state>||[none|<keyframes-name>]||<single-animation-timeline>","single-animation-composition":"replace|add|accumulate","single-animation-direction":"normal|reverse|alternate|alternate-reverse","single-animation-fill-mode":"none|forwards|backwards|both","single-animation-iteration-count":"infinite|<number>","single-animation-play-state":"running|paused","single-animation-timeline":"auto|none|<dashed-ident>|<scroll()>|<view()>","single-transition":"[none|<single-transition-property>]||<time>||<easing-function>||<time>||<transition-behavior-value>","single-transition-property":"all|<custom-ident>",size:"closest-side|farthest-side|closest-corner|farthest-corner|<length>|<length-percentage>{2}","size-feature":"<mf-plain>|<mf-boolean>|<mf-range>","skew()":"skew( [<angle>|<zero>] , [<angle>|<zero>]? )","skewX()":"skewX( [<angle>|<zero>] )","skewY()":"skewY( [<angle>|<zero>] )","sqrt()":"sqrt( <calc-sum> )","step-position":"jump-start|jump-end|jump-none|jump-both|start|end","step-easing-function":"step-start|step-end|<steps()>","steps()":"steps( <integer> , <step-position>? )","style-feature":"<declaration>","style-in-parens":"( <style-condition> )|( <style-feature> )|<general-enclosed>","style-query":"<style-condition>|<style-feature>","subclass-selector":"<id-selector>|<class-selector>|<attribute-selector>|<pseudo-class-selector>","superellipse()":"superellipse( [<number>|infinity|-infinity] )","supports-condition":"not <supports-in-parens>|<supports-in-parens> [and <supports-in-parens>]*|<supports-in-parens> [or <supports-in-parens>]*","supports-decl":"( <declaration> )","supports-feature":"<supports-decl>|<supports-selector-fn>","supports-in-parens":"( <supports-condition> )|<supports-feature>|<general-enclosed>","supports-selector-fn":"selector( <complex-selector> )",symbol:"<string>|<image>|<custom-ident>","symbols()":"symbols( <symbols-type>? [<string>|<image>]+ )","symbols-type":"cyclic|numeric|alphabetic|symbolic|fixed","system-color":"AccentColor|AccentColorText|ActiveText|ButtonBorder|ButtonFace|ButtonText|Canvas|CanvasText|Field|FieldText|GrayText|Highlight|HighlightText|LinkText|Mark|MarkText|SelectedItem|SelectedItemText|VisitedText","system-family-name":"caption|icon|menu|message-box|small-caption|status-bar","tan()":"tan( <calc-sum> )",target:"<target-counter()>|<target-counters()>|<target-text()>","target-counter()":"target-counter( [<string>|<url>] , <custom-ident> , <counter-style>? )","target-counters()":"target-counters( [<string>|<url>] , <custom-ident> , <string> , <counter-style>? )","target-text()":"target-text( [<string>|<url>] , [content|before|after|first-letter]? )","text-edge":"[text|cap|ex|ideographic|ideographic-ink] [text|alphabetic|ideographic|ideographic-ink]?","time-percentage":"<time>|<percentage>","timeline-range-name":"cover|contain|entry|exit|entry-crossing|exit-crossing","track-breadth":"<length-percentage>|<flex>|min-content|max-content|auto","track-list":"[<line-names>? [<track-size>|<track-repeat>]]+ <line-names>?","track-repeat":"repeat( [<integer [1,∞]>] , [<line-names>? <track-size>]+ <line-names>? )","track-size":"<track-breadth>|minmax( <inflexible-breadth> , <track-breadth> )|fit-content( <length-percentage> )","transform-function":"<matrix()>|<translate()>|<translateX()>|<translateY()>|<scale()>|<scaleX()>|<scaleY()>|<rotate()>|<skew()>|<skewX()>|<skewY()>|<matrix3d()>|<translate3d()>|<translateZ()>|<scale3d()>|<scaleZ()>|<rotate3d()>|<rotateX()>|<rotateY()>|<rotateZ()>|<perspective()>","transform-list":"<transform-function>+","transition-behavior-value":"normal|allow-discrete","translate()":"translate( <length-percentage> , <length-percentage>? )","translate3d()":"translate3d( <length-percentage> , <length-percentage> , <length> )","translateX()":"translateX( <length-percentage> )","translateY()":"translateY( <length-percentage> )","translateZ()":"translateZ( <length> )","try-size":"most-width|most-height|most-block-size|most-inline-size","try-tactic":"flip-block||flip-inline||flip-start","type-or-unit":"string|color|url|integer|number|length|angle|time|frequency|cap|ch|em|ex|ic|lh|rlh|rem|vb|vi|vw|vh|vmin|vmax|mm|Q|cm|in|pt|pc|px|deg|grad|rad|turn|ms|s|Hz|kHz|%","type-selector":"<wq-name>|<ns-prefix>? '*'","var()":"var( <custom-property-name> , <declaration-value>? )","view()":"view( [<axis>||<'view-timeline-inset'>]? )","viewport-length":"auto|<length-percentage>","visual-box":"content-box|padding-box|border-box","wq-name":"<ns-prefix>? <ident-token>","xywh()":"xywh( <length-percentage>{2} <length-percentage [0,∞]>{2} [round <'border-radius'>]? )",xyz:"xyz|xyz-d50|xyz-d65","xyz-params":"<xyz-space> [<number>|<percentage>|none]{3}","-legacy-gradient":"<-webkit-gradient()>|<-legacy-linear-gradient>|<-legacy-repeating-linear-gradient>|<-legacy-radial-gradient>|<-legacy-repeating-radial-gradient>","-legacy-linear-gradient":"-moz-linear-gradient( <-legacy-linear-gradient-arguments> )|-webkit-linear-gradient( <-legacy-linear-gradient-arguments> )|-o-linear-gradient( <-legacy-linear-gradient-arguments> )","-legacy-repeating-linear-gradient":"-moz-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )|-webkit-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )|-o-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )","-legacy-linear-gradient-arguments":"[<angle>|<side-or-corner>]? , <color-stop-list>","-legacy-radial-gradient":"-moz-radial-gradient( <-legacy-radial-gradient-arguments> )|-webkit-radial-gradient( <-legacy-radial-gradient-arguments> )|-o-radial-gradient( <-legacy-radial-gradient-arguments> )","-legacy-repeating-radial-gradient":"-moz-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )|-webkit-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )|-o-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )","-legacy-radial-gradient-arguments":"[<position> ,]? [[[<-legacy-radial-gradient-shape>||<-legacy-radial-gradient-size>]|[<length>|<percentage>]{2}] ,]? <color-stop-list>","-legacy-radial-gradient-size":"closest-side|closest-corner|farthest-side|farthest-corner|contain|cover","-legacy-radial-gradient-shape":"circle|ellipse","-non-standard-font":"-apple-system-body|-apple-system-headline|-apple-system-subheadline|-apple-system-caption1|-apple-system-caption2|-apple-system-footnote|-apple-system-short-body|-apple-system-short-headline|-apple-system-short-subheadline|-apple-system-short-caption1|-apple-system-short-footnote|-apple-system-tall-body","-non-standard-color":"-moz-ButtonDefault|-moz-ButtonHoverFace|-moz-ButtonHoverText|-moz-CellHighlight|-moz-CellHighlightText|-moz-Combobox|-moz-ComboboxText|-moz-Dialog|-moz-DialogText|-moz-dragtargetzone|-moz-EvenTreeRow|-moz-Field|-moz-FieldText|-moz-html-CellHighlight|-moz-html-CellHighlightText|-moz-mac-accentdarkestshadow|-moz-mac-accentdarkshadow|-moz-mac-accentface|-moz-mac-accentlightesthighlight|-moz-mac-accentlightshadow|-moz-mac-accentregularhighlight|-moz-mac-accentregularshadow|-moz-mac-chrome-active|-moz-mac-chrome-inactive|-moz-mac-focusring|-moz-mac-menuselect|-moz-mac-menushadow|-moz-mac-menutextselect|-moz-MenuHover|-moz-MenuHoverText|-moz-MenuBarText|-moz-MenuBarHoverText|-moz-nativehyperlinktext|-moz-OddTreeRow|-moz-win-communicationstext|-moz-win-mediatext|-moz-activehyperlinktext|-moz-default-background-color|-moz-default-color|-moz-hyperlinktext|-moz-visitedhyperlinktext|-webkit-activelink|-webkit-focus-ring-color|-webkit-link|-webkit-text","-non-standard-image-rendering":"optimize-contrast|-moz-crisp-edges|-o-crisp-edges|-webkit-optimize-contrast","-non-standard-overflow":"overlay|-moz-scrollbars-none|-moz-scrollbars-horizontal|-moz-scrollbars-vertical|-moz-hidden-unscrollable","-non-standard-size":"intrinsic|min-intrinsic|-webkit-fill-available|-webkit-fit-content|-webkit-min-content|-webkit-max-content|-moz-available|-moz-fit-content|-moz-min-content|-moz-max-content","-webkit-gradient()":"-webkit-gradient( <-webkit-gradient-type> , <-webkit-gradient-point> [, <-webkit-gradient-point>|, <-webkit-gradient-radius> , <-webkit-gradient-point>] [, <-webkit-gradient-radius>]? [, <-webkit-gradient-color-stop>]* )","-webkit-gradient-color-stop":"from( <color> )|color-stop( [<number-zero-one>|<percentage>] , <color> )|to( <color> )","-webkit-gradient-point":"[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]","-webkit-gradient-radius":"<length>|<percentage>","-webkit-gradient-type":"linear|radial","-webkit-mask-box-repeat":"repeat|stretch|round","-ms-filter-function-list":"<-ms-filter-function>+","-ms-filter-function":"<-ms-filter-function-progid>|<-ms-filter-function-legacy>","-ms-filter-function-progid":"'progid:' [<ident-token> '.']* [<ident-token>|<function-token> <any-value>? )]","-ms-filter-function-legacy":"<ident-token>|<function-token> <any-value>? )",age:"child|young|old","attr-name":"<wq-name>","attr-fallback":"<any-value>",autospace:"no-autospace|[ideograph-alpha||ideograph-numeric||punctuation]||[insert|replace]",bottom:"<length>|auto","generic-voice":"[<age>? <gender> <integer>?]",gender:"male|female|neutral","generic-script-specific":"generic( kai )|generic( fangsong )|generic( nastaliq )","-non-standard-generic-family":"-apple-system|BlinkMacSystemFont","intrinsic-size-keyword":"min-content|max-content|fit-content",left:"<length>|auto","device-cmyk()":"<legacy-device-cmyk-syntax>|<modern-device-cmyk-syntax>","legacy-device-cmyk-syntax":"device-cmyk( <number>#{4} )","modern-device-cmyk-syntax":"device-cmyk( <cmyk-component>{4} [/ [<alpha-value>|none]]? )","cmyk-component":"<number>|<percentage>|none","color-space":"<rectangular-color-space>|<polar-color-space>|<custom-color-space>",right:"<length>|auto","forgiving-selector-list":"<complex-real-selector-list>","forgiving-relative-selector-list":"<relative-real-selector-list>","complex-real-selector-list":"<complex-real-selector>#","simple-selector-list":"<simple-selector>#","relative-real-selector-list":"<relative-real-selector>#","complex-selector-unit":"[<compound-selector>? <pseudo-compound-selector>*]!","complex-real-selector":"<compound-selector> [<combinator>? <compound-selector>]*","relative-real-selector":"<combinator>? <complex-real-selector>","pseudo-compound-selector":"<pseudo-element-selector> <pseudo-class-selector>*","simple-selector":"<type-selector>|<subclass-selector>","legacy-pseudo-element-selector":"':' [before|after|first-line|first-letter]","svg-length":"<percentage>|<length>|<number>","svg-writing-mode":"lr-tb|rl-tb|tb-rl|lr|rl|tb",top:"<length>|auto",x:"<number>",y:"<number>",declaration:"<ident-token> : <declaration-value>? ['!' important]?","declaration-list":"[<declaration>? ';']* <declaration>?",url:"url( <string> <url-modifier>* )|<url-token>","url-modifier":"<ident>|<function-token> <any-value> )","number-zero-one":"<number [0,1]>","number-one-or-greater":"<number [1,∞]>","xyz-space":"xyz|xyz-d50|xyz-d65","style-condition":"not <style-in-parens>|<style-in-parens> [[and <style-in-parens>]*|[or <style-in-parens>]*]","-non-standard-display":"-ms-inline-flexbox|-ms-grid|-ms-inline-grid|-webkit-flex|-webkit-inline-flex|-webkit-box|-webkit-inline-box|-moz-inline-stack|-moz-box|-moz-inline-box","inset-area":"[[left|center|right|span-left|span-right|x-start|x-end|span-x-start|span-x-end|x-self-start|x-self-end|span-x-self-start|span-x-self-end|span-all]||[top|center|bottom|span-top|span-bottom|y-start|y-end|span-y-start|span-y-end|y-self-start|y-self-end|span-y-self-start|span-y-self-end|span-all]|[block-start|center|block-end|span-block-start|span-block-end|span-all]||[inline-start|center|inline-end|span-inline-start|span-inline-end|span-all]|[self-block-start|self-block-end|span-self-block-start|span-self-block-end|span-all]||[self-inline-start|self-inline-end|span-self-inline-start|span-self-inline-end|span-all]|[start|center|end|span-start|span-end|span-all]{1,2}|[self-start|center|self-end|span-self-start|span-self-end|span-all]{1,2}]",syntax:"'*'|<syntax-component> [<syntax-combinator> <syntax-component>]*|<syntax-string>","syntax-component":"<syntax-single-component> <syntax-multiplier>?|'<' transform-list '>'","syntax-single-component":"'<' <syntax-type-name> '>'|<ident>","syntax-type-name":"angle|color|custom-ident|image|integer|length|length-percentage|number|percentage|resolution|string|time|url|transform-function","syntax-combinator":"'|'","syntax-multiplier":"'#'|'+'","syntax-string":"<string>"},properties:{"--*":"<declaration-value>","-ms-accelerator":"false|true","-ms-block-progression":"tb|rl|bt|lr","-ms-content-zoom-chaining":"none|chained","-ms-content-zoom-limit":"<'-ms-content-zoom-limit-min'> <'-ms-content-zoom-limit-max'>","-ms-content-zoom-limit-max":"<percentage>","-ms-content-zoom-limit-min":"<percentage>","-ms-content-zoom-snap":"<'-ms-content-zoom-snap-type'>||<'-ms-content-zoom-snap-points'>","-ms-content-zoom-snap-points":"snapInterval( <percentage> , <percentage> )|snapList( <percentage># )","-ms-content-zoom-snap-type":"none|proximity|mandatory","-ms-content-zooming":"none|zoom","-ms-filter":"<string>","-ms-flow-from":"[none|<custom-ident>]#","-ms-flow-into":"[none|<custom-ident>]#","-ms-grid-columns":"none|<track-list>|<auto-track-list>","-ms-grid-rows":"none|<track-list>|<auto-track-list>","-ms-high-contrast-adjust":"auto|none","-ms-hyphenate-limit-chars":"auto|<integer>{1,3}","-ms-hyphenate-limit-lines":"no-limit|<integer>","-ms-hyphenate-limit-zone":"<percentage>|<length>","-ms-ime-align":"auto|after","-ms-overflow-style":"auto|none|scrollbar|-ms-autohiding-scrollbar","-ms-scroll-chaining":"chained|none","-ms-scroll-limit":"<'-ms-scroll-limit-x-min'> <'-ms-scroll-limit-y-min'> <'-ms-scroll-limit-x-max'> <'-ms-scroll-limit-y-max'>","-ms-scroll-limit-x-max":"auto|<length>","-ms-scroll-limit-x-min":"<length>","-ms-scroll-limit-y-max":"auto|<length>","-ms-scroll-limit-y-min":"<length>","-ms-scroll-rails":"none|railed","-ms-scroll-snap-points-x":"snapInterval( <length-percentage> , <length-percentage> )|snapList( <length-percentage># )","-ms-scroll-snap-points-y":"snapInterval( <length-percentage> , <length-percentage> )|snapList( <length-percentage># )","-ms-scroll-snap-type":"none|proximity|mandatory","-ms-scroll-snap-x":"<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-x'>","-ms-scroll-snap-y":"<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-y'>","-ms-scroll-translation":"none|vertical-to-horizontal","-ms-scrollbar-3dlight-color":"<color>","-ms-scrollbar-arrow-color":"<color>","-ms-scrollbar-base-color":"<color>","-ms-scrollbar-darkshadow-color":"<color>","-ms-scrollbar-face-color":"<color>","-ms-scrollbar-highlight-color":"<color>","-ms-scrollbar-shadow-color":"<color>","-ms-scrollbar-track-color":"<color>","-ms-text-autospace":"none|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space","-ms-touch-select":"grippers|none","-ms-user-select":"none|element|text","-ms-wrap-flow":"auto|both|start|end|maximum|clear","-ms-wrap-margin":"<length>","-ms-wrap-through":"wrap|none","-moz-appearance":"none|button|button-arrow-down|button-arrow-next|button-arrow-previous|button-arrow-up|button-bevel|button-focus|caret|checkbox|checkbox-container|checkbox-label|checkmenuitem|dualbutton|groupbox|listbox|listitem|menuarrow|menubar|menucheckbox|menuimage|menuitem|menuitemtext|menulist|menulist-button|menulist-text|menulist-textfield|menupopup|menuradio|menuseparator|meterbar|meterchunk|progressbar|progressbar-vertical|progresschunk|progresschunk-vertical|radio|radio-container|radio-label|radiomenuitem|range|range-thumb|resizer|resizerpanel|scale-horizontal|scalethumbend|scalethumb-horizontal|scalethumbstart|scalethumbtick|scalethumb-vertical|scale-vertical|scrollbarbutton-down|scrollbarbutton-left|scrollbarbutton-right|scrollbarbutton-up|scrollbarthumb-horizontal|scrollbarthumb-vertical|scrollbartrack-horizontal|scrollbartrack-vertical|searchfield|separator|sheet|spinner|spinner-downbutton|spinner-textfield|spinner-upbutton|splitter|statusbar|statusbarpanel|tab|tabpanel|tabpanels|tab-scroll-arrow-back|tab-scroll-arrow-forward|textfield|textfield-multiline|toolbar|toolbarbutton|toolbarbutton-dropdown|toolbargripper|toolbox|tooltip|treeheader|treeheadercell|treeheadersortarrow|treeitem|treeline|treetwisty|treetwistyopen|treeview|-moz-mac-unified-toolbar|-moz-win-borderless-glass|-moz-win-browsertabbar-toolbox|-moz-win-communicationstext|-moz-win-communications-toolbox|-moz-win-exclude-glass|-moz-win-glass|-moz-win-mediatext|-moz-win-media-toolbox|-moz-window-button-box|-moz-window-button-box-maximized|-moz-window-button-close|-moz-window-button-maximize|-moz-window-button-minimize|-moz-window-button-restore|-moz-window-frame-bottom|-moz-window-frame-left|-moz-window-frame-right|-moz-window-titlebar|-moz-window-titlebar-maximized","-moz-binding":"<url>|none","-moz-border-bottom-colors":"<color>+|none","-moz-border-left-colors":"<color>+|none","-moz-border-right-colors":"<color>+|none","-moz-border-top-colors":"<color>+|none","-moz-context-properties":"none|[fill|fill-opacity|stroke|stroke-opacity]#","-moz-float-edge":"border-box|content-box|margin-box|padding-box","-moz-force-broken-image-icon":"0|1","-moz-orient":"inline|block|horizontal|vertical","-moz-outline-radius":"<outline-radius>{1,4} [/ <outline-radius>{1,4}]?","-moz-outline-radius-bottomleft":"<outline-radius>","-moz-outline-radius-bottomright":"<outline-radius>","-moz-outline-radius-topleft":"<outline-radius>","-moz-outline-radius-topright":"<outline-radius>","-moz-stack-sizing":"ignore|stretch-to-fit","-moz-text-blink":"none|blink","-moz-user-focus":"ignore|normal|select-after|select-before|select-menu|select-same|select-all|none","-moz-user-input":"auto|none|enabled|disabled","-moz-user-modify":"read-only|read-write|write-only","-moz-window-dragging":"drag|no-drag","-moz-window-shadow":"default|menu|tooltip|sheet|none","-webkit-appearance":"none|button|button-bevel|caps-lock-indicator|caret|checkbox|default-button|inner-spin-button|listbox|listitem|media-controls-background|media-controls-fullscreen-background|media-current-time-display|media-enter-fullscreen-button|media-exit-fullscreen-button|media-fullscreen-button|media-mute-button|media-overlay-play-button|media-play-button|media-seek-back-button|media-seek-forward-button|media-slider|media-sliderthumb|media-time-remaining-display|media-toggle-closed-captions-button|media-volume-slider|media-volume-slider-container|media-volume-sliderthumb|menulist|menulist-button|menulist-text|menulist-textfield|meter|progress-bar|progress-bar-value|push-button|radio|scrollbarbutton-down|scrollbarbutton-left|scrollbarbutton-right|scrollbarbutton-up|scrollbargripper-horizontal|scrollbargripper-vertical|scrollbarthumb-horizontal|scrollbarthumb-vertical|scrollbartrack-horizontal|scrollbartrack-vertical|searchfield|searchfield-cancel-button|searchfield-decoration|searchfield-results-button|searchfield-results-decoration|slider-horizontal|slider-vertical|sliderthumb-horizontal|sliderthumb-vertical|square-button|textarea|textfield|-apple-pay-button","-webkit-border-before":"<'border-width'>||<'border-style'>||<color>","-webkit-border-before-color":"<color>","-webkit-border-before-style":"<'border-style'>","-webkit-border-before-width":"<'border-width'>","-webkit-box-reflect":"[above|below|right|left]? <length>? <image>?","-webkit-line-clamp":"none|<integer>","-webkit-mask":"[<mask-reference>||<position> [/ <bg-size>]?||<repeat-style>||[<visual-box>|border|padding|content|text]||[<visual-box>|border|padding|content]]#","-webkit-mask-attachment":"<attachment>#","-webkit-mask-clip":"[<coord-box>|no-clip|border|padding|content|text]#","-webkit-mask-composite":"<composite-style>#","-webkit-mask-image":"<mask-reference>#","-webkit-mask-origin":"[<coord-box>|border|padding|content]#","-webkit-mask-position":"<position>#","-webkit-mask-position-x":"[<length-percentage>|left|center|right]#","-webkit-mask-position-y":"[<length-percentage>|top|center|bottom]#","-webkit-mask-repeat":"<repeat-style>#","-webkit-mask-repeat-x":"repeat|no-repeat|space|round","-webkit-mask-repeat-y":"repeat|no-repeat|space|round","-webkit-mask-size":"<bg-size>#","-webkit-overflow-scrolling":"auto|touch","-webkit-tap-highlight-color":"<color>","-webkit-text-fill-color":"<color>","-webkit-text-stroke":"<length>||<color>","-webkit-text-stroke-color":"<color>","-webkit-text-stroke-width":"<length>","-webkit-touch-callout":"default|none","-webkit-user-modify":"read-only|read-write|read-write-plaintext-only","-webkit-user-select":"auto|none|text|all","accent-color":"auto|<color>","align-content":"normal|<baseline-position>|<content-distribution>|<overflow-position>? <content-position>","align-items":"normal|stretch|<baseline-position>|[<overflow-position>? <self-position>]|anchor-center","align-self":"auto|normal|stretch|<baseline-position>|<overflow-position>? <self-position>|anchor-center","align-tracks":"[normal|<baseline-position>|<content-distribution>|<overflow-position>? <content-position>]#","alignment-baseline":"auto|baseline|before-edge|text-before-edge|middle|central|after-edge|text-after-edge|ideographic|alphabetic|hanging|mathematical",all:"initial|inherit|unset|revert|revert-layer","anchor-name":"none|<dashed-ident>#","anchor-scope":"none|all|<dashed-ident>#",animation:"<single-animation>#","animation-composition":"<single-animation-composition>#","animation-delay":"<time>#","animation-direction":"<single-animation-direction>#","animation-duration":"[auto|<time [0s,∞]>]#","animation-fill-mode":"<single-animation-fill-mode>#","animation-iteration-count":"<single-animation-iteration-count>#","animation-name":"[none|<keyframes-name>]#","animation-play-state":"<single-animation-play-state>#","animation-range":"[<'animation-range-start'> <'animation-range-end'>?]#","animation-range-end":"[normal|<length-percentage>|<timeline-range-name> <length-percentage>?]#","animation-range-start":"[normal|<length-percentage>|<timeline-range-name> <length-percentage>?]#","animation-timeline":"<single-animation-timeline>#","animation-timing-function":"<easing-function>#","animation-trigger":"[none|[<dashed-ident> <animation-action>+]+]#",appearance:"none|auto|<compat-auto>|<compat-special>","aspect-ratio":"auto||<ratio>","backdrop-filter":"none|<filter-value-list>","backface-visibility":"visible|hidden",background:"<bg-layer>#? , <final-bg-layer>","background-attachment":"<attachment>#","background-blend-mode":"<blend-mode>#","background-clip":"<bg-clip>#","background-color":"<color>","background-image":"<bg-image>#","background-origin":"<visual-box>#","background-position":"<bg-position>#","background-position-x":"[center|[[left|right|x-start|x-end]? <length-percentage>?]!]#","background-position-y":"[center|[[top|bottom|y-start|y-end]? <length-percentage>?]!]#","background-repeat":"<repeat-style>#","background-size":"<bg-size>#","baseline-shift":"baseline|sub|super|<svg-length>","baseline-source":"auto|first|last","block-size":"<'width'>",border:"<line-width>||<line-style>||<color>","border-block":"<'border-block-start'>","border-block-color":"<'border-top-color'>{1,2}","border-block-end":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-end-color":"<'border-top-color'>","border-block-end-style":"<'border-top-style'>","border-block-end-width":"<'border-top-width'>","border-block-start":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-start-color":"<'border-top-color'>","border-block-start-style":"<'border-top-style'>","border-block-start-width":"<'border-top-width'>","border-block-style":"<'border-top-style'>{1,2}","border-block-width":"<'border-top-width'>{1,2}","border-bottom":"<line-width>||<line-style>||<color>","border-bottom-color":"<'border-top-color'>","border-bottom-left-radius":"<length-percentage [0,∞]>{1,2}","border-bottom-right-radius":"<length-percentage [0,∞]>{1,2}","border-bottom-style":"<line-style>","border-bottom-width":"<line-width>","border-collapse":"separate|collapse","border-color":"<color>{1,4}","border-end-end-radius":"<'border-top-left-radius'>","border-end-start-radius":"<'border-top-left-radius'>","border-image":"<'border-image-source'>||<'border-image-slice'> [/ <'border-image-width'>|/ <'border-image-width'>? / <'border-image-outset'>]?||<'border-image-repeat'>","border-image-outset":"[<length [0,∞]>|<number [0,∞]>]{1,4}","border-image-repeat":"[stretch|repeat|round|space]{1,2}","border-image-slice":"[<number [0,∞]>|<percentage [0,∞]>]{1,4}&&fill?","border-image-source":"none|<image>","border-image-width":"[<length-percentage [0,∞]>|<number [0,∞]>|auto]{1,4}","border-inline":"<'border-block-start'>","border-inline-color":"<'border-top-color'>{1,2}","border-inline-end":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-end-color":"<'border-top-color'>","border-inline-end-style":"<'border-top-style'>","border-inline-end-width":"<'border-top-width'>","border-inline-start":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-start-color":"<'border-top-color'>","border-inline-start-style":"<'border-top-style'>","border-inline-start-width":"<'border-top-width'>","border-inline-style":"<'border-top-style'>{1,2}","border-inline-width":"<'border-top-width'>{1,2}","border-left":"<line-width>||<line-style>||<color>","border-left-color":"<color>","border-left-style":"<line-style>","border-left-width":"<line-width>","border-radius":"<length-percentage [0,∞]>{1,4} [/ <length-percentage [0,∞]>{1,4}]?","border-right":"<line-width>||<line-style>||<color>","border-right-color":"<color>","border-right-style":"<line-style>","border-right-width":"<line-width>","border-spacing":"<length>{1,2}","border-start-end-radius":"<'border-top-left-radius'>","border-start-start-radius":"<'border-top-left-radius'>","border-style":"<line-style>{1,4}","border-top":"<line-width>||<line-style>||<color>","border-top-color":"<color>","border-top-left-radius":"<length-percentage [0,∞]>{1,2}","border-top-right-radius":"<length-percentage [0,∞]>{1,2}","border-top-style":"<line-style>","border-top-width":"<line-width>","border-width":"<line-width>{1,4}",bottom:"auto|<length-percentage>|<anchor()>|<anchor-size()>","box-align":"start|center|end|baseline|stretch","box-decoration-break":"slice|clone","box-direction":"normal|reverse|inherit","box-flex":"<number>","box-flex-group":"<integer>","box-lines":"single|multiple","box-ordinal-group":"<integer>","box-orient":"horizontal|vertical|inline-axis|block-axis|inherit","box-pack":"start|center|end|justify","box-shadow":"none|<shadow>#","box-sizing":"content-box|border-box","break-after":"auto|avoid|always|all|avoid-page|page|left|right|recto|verso|avoid-column|column|avoid-region|region","break-before":"auto|avoid|always|all|avoid-page|page|left|right|recto|verso|avoid-column|column|avoid-region|region","break-inside":"auto|avoid|avoid-page|avoid-column|avoid-region","caption-side":"top|bottom",caret:"<'caret-color'>||<'caret-animation'>||<'caret-shape'>","caret-animation":"auto|manual","caret-color":"auto|<color>","caret-shape":"auto|bar|block|underscore",clear:"none|left|right|both|inline-start|inline-end",clip:"<shape>|auto","clip-path":"<clip-source>|[<basic-shape>||<geometry-box>]|none","clip-rule":"nonzero|evenodd",color:"<color>","color-interpolation-filters":"auto|sRGB|linearRGB","color-scheme":"normal|[light|dark|<custom-ident>]+&&only?","column-count":"<integer>|auto","column-fill":"auto|balance","column-gap":"normal|<length-percentage>","column-height":"auto|<length [0,∞]>","column-rule":"<'column-rule-width'>||<'column-rule-style'>||<'column-rule-color'>","column-rule-color":"<color>","column-rule-style":"<'border-style'>","column-rule-width":"<'border-width'>","column-span":"none|all","column-width":"auto|<length [0,∞]>","column-wrap":"auto|nowrap|wrap",columns:"[<'column-width'>||<'column-count'>] [/ <'column-height'>]?",contain:"none|strict|content|[[size||inline-size]||layout||style||paint]","contain-intrinsic-block-size":"auto? [none|<length>]","contain-intrinsic-height":"auto? [none|<length>]","contain-intrinsic-inline-size":"auto? [none|<length>]","contain-intrinsic-size":"[auto? [none|<length>]]{1,2}","contain-intrinsic-width":"auto? [none|<length>]",container:"<'container-name'> [/ <'container-type'>]?","container-name":"none|<custom-ident>+","container-type":"normal||[size|inline-size]",content:"normal|none|[<content-replacement>|<content-list>] [/ [<string>|<counter>|<attr()>]+]?","content-visibility":"visible|auto|hidden","corner-block-end-shape":"<corner-shape-value>{1,2}","corner-block-start-shape":"<corner-shape-value>{1,2}","corner-bottom-shape":"<corner-shape-value>{1,2}","corner-bottom-left-shape":"<corner-shape-value>","corner-bottom-right-shape":"<corner-shape-value>","corner-end-end-shape":"<corner-shape-value>","corner-end-start-shape":"<corner-shape-value>","corner-inline-end-shape":"<corner-shape-value>{1,2}","corner-inline-start-shape":"<corner-shape-value>{1,2}","corner-left-shape":"<corner-shape-value>{1,2}","corner-right-shape":"<corner-shape-value>{1,2}","corner-shape":"<corner-shape-value>{1,4}","corner-start-start-shape":"<corner-shape-value>","corner-start-end-shape":"<corner-shape-value>","corner-top-shape":"<corner-shape-value>{1,2}","corner-top-left-shape":"<corner-shape-value>","corner-top-right-shape":"<corner-shape-value>","counter-increment":"[<counter-name> <integer>?]+|none","counter-reset":"[<counter-name> <integer>?|<reversed-counter-name> <integer>?]+|none","counter-set":"[<counter-name> <integer>?]+|none",cursor:"[[<url> [<x> <y>]? ,]* [auto|default|none|context-menu|help|pointer|progress|wait|cell|crosshair|text|vertical-text|alias|copy|move|no-drop|not-allowed|e-resize|n-resize|ne-resize|nw-resize|s-resize|se-resize|sw-resize|w-resize|ew-resize|ns-resize|nesw-resize|nwse-resize|col-resize|row-resize|all-scroll|zoom-in|zoom-out|grab|grabbing|hand|-webkit-grab|-webkit-grabbing|-webkit-zoom-in|-webkit-zoom-out|-moz-grab|-moz-grabbing|-moz-zoom-in|-moz-zoom-out]]",cx:"<length>|<percentage>",cy:"<length>|<percentage>",d:"none|path( <string> )",direction:"ltr|rtl",display:"[<display-outside>||<display-inside>]|<display-listitem>|<display-internal>|<display-box>|<display-legacy>|<-non-standard-display>","dominant-baseline":"auto|use-script|no-change|reset-size|ideographic|alphabetic|hanging|mathematical|central|middle|text-after-edge|text-before-edge","dynamic-range-limit":"standard|no-limit|constrained|<dynamic-range-limit-mix()>","empty-cells":"show|hide","field-sizing":"content|fixed",fill:"<paint>","fill-opacity":"<number-zero-one>|<percentage>","fill-rule":"nonzero|evenodd",filter:"none|<filter-value-list>|<-ms-filter-function-list>",flex:"none|[<'flex-grow'> <'flex-shrink'>?||<'flex-basis'>]","flex-basis":"content|<'width'>","flex-direction":"row|row-reverse|column|column-reverse","flex-flow":"<'flex-direction'>||<'flex-wrap'>","flex-grow":"<number>","flex-shrink":"<number>","flex-wrap":"nowrap|wrap|wrap-reverse",float:"left|right|none|inline-start|inline-end","flood-color":"<color>","flood-opacity":"<'opacity'>",font:"[[<'font-style'>||<font-variant-css2>||<'font-weight'>||<font-width-css3>]? <'font-size'> [/ <'line-height'>]? <'font-family'>#]|<system-family-name>|<-non-standard-font>","font-family":"[<family-name>|<generic-family>]#","font-feature-settings":"normal|<feature-tag-value>#","font-kerning":"auto|normal|none","font-language-override":"normal|<string>","font-optical-sizing":"auto|none","font-palette":"normal|light|dark|<palette-identifier>|<palette-mix()>","font-size":"<absolute-size>|<relative-size>|<length-percentage [0,∞]>|math","font-size-adjust":"none|[ex-height|cap-height|ch-width|ic-width|ic-height]? [from-font|<number>]","font-smooth":"auto|never|always|<absolute-size>|<length>","font-stretch":"<font-stretch-absolute>","font-style":"normal|italic|oblique <angle>?","font-synthesis":"none|[weight||style||small-caps||position]","font-synthesis-position":"auto|none","font-synthesis-small-caps":"auto|none","font-synthesis-style":"auto|none","font-synthesis-weight":"auto|none","font-variant":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>||stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )||[small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps]||<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero||<east-asian-variant-values>||<east-asian-width-values>||ruby]","font-variant-alternates":"normal|[stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )]","font-variant-caps":"normal|small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps","font-variant-east-asian":"normal|[<east-asian-variant-values>||<east-asian-width-values>||ruby]","font-variant-emoji":"normal|text|emoji|unicode","font-variant-ligatures":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>]","font-variant-numeric":"normal|[<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero]","font-variant-position":"normal|sub|super","font-variation-settings":"normal|[<string> <number>]#","font-weight":"<font-weight-absolute>|bolder|lighter","font-width":"normal|<percentage [0,∞]>|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded","forced-color-adjust":"auto|none|preserve-parent-color",gap:"<'row-gap'> <'column-gap'>?",grid:"<'grid-template'>|<'grid-template-rows'> / [auto-flow&&dense?] <'grid-auto-columns'>?|[auto-flow&&dense?] <'grid-auto-rows'>? / <'grid-template-columns'>","grid-area":"<grid-line> [/ <grid-line>]{0,3}","grid-auto-columns":"<track-size>+","grid-auto-flow":"[row|column]||dense","grid-auto-rows":"<track-size>+","grid-column":"<grid-line> [/ <grid-line>]?","grid-column-end":"<grid-line>","grid-column-gap":"<length-percentage>","grid-column-start":"<grid-line>","grid-gap":"<'grid-row-gap'> <'grid-column-gap'>?","grid-row":"<grid-line> [/ <grid-line>]?","grid-row-end":"<grid-line>","grid-row-gap":"<length-percentage>","grid-row-start":"<grid-line>","grid-template":"none|[<'grid-template-rows'> / <'grid-template-columns'>]|[<line-names>? <string> <track-size>? <line-names>?]+ [/ <explicit-track-list>]?","grid-template-areas":"none|<string>+","grid-template-columns":"none|<track-list>|<auto-track-list>|subgrid <line-name-list>?","grid-template-rows":"none|<track-list>|<auto-track-list>|subgrid <line-name-list>?","hanging-punctuation":"none|[first||[force-end|allow-end]||last]",height:"auto|<length-percentage [0,∞]>|min-content|max-content|fit-content|fit-content( <length-percentage [0,∞]> )|<calc-size()>|<anchor-size()>|stretch|<-non-standard-size>","hyphenate-character":"auto|<string>","hyphenate-limit-chars":"[auto|<integer>]{1,3}",hyphens:"none|manual|auto","image-orientation":"from-image|<angle>|[<angle>? flip]","image-rendering":"auto|crisp-edges|pixelated|smooth|optimizeSpeed|optimizeQuality|<-non-standard-image-rendering>","image-resolution":"[from-image||<resolution>]&&snap?","ime-mode":"auto|normal|active|inactive|disabled","initial-letter":"normal|[<number> <integer>?]","initial-letter-align":"[auto|alphabetic|hanging|ideographic]","inline-size":"<'width'>",inset:"<'top'>{1,4}","inset-block":"<'top'>{1,2}","inset-block-end":"<'top'>","inset-block-start":"<'top'>","inset-inline":"<'top'>{1,2}","inset-inline-end":"<'top'>","inset-inline-start":"<'top'>","interpolate-size":"numeric-only|allow-keywords",isolation:"auto|isolate",interactivity:"auto|inert","interest-delay":"<'interest-delay-start'>{1,2}","interest-delay-end":"normal|<time>","interest-delay-start":"normal|<time>","justify-content":"normal|<content-distribution>|<overflow-position>? [<content-position>|left|right]","justify-items":"normal|stretch|<baseline-position>|<overflow-position>? [<self-position>|left|right]|legacy|legacy&&[left|right|center]|anchor-center","justify-self":"auto|normal|stretch|<baseline-position>|<overflow-position>? [<self-position>|left|right]|anchor-center","justify-tracks":"[normal|<content-distribution>|<overflow-position>? [<content-position>|left|right]]#",left:"auto|<length-percentage>|<anchor()>|<anchor-size()>","letter-spacing":"normal|<length-percentage>","lighting-color":"<color>","line-break":"auto|loose|normal|strict|anywhere","line-clamp":"none|<integer>","line-height":"normal|<number>|<length>|<percentage>","line-height-step":"<length>","list-style":"<'list-style-type'>||<'list-style-position'>||<'list-style-image'>","list-style-image":"<image>|none","list-style-position":"inside|outside","list-style-type":"<counter-style>|<string>|none",margin:"<'margin-top'>{1,4}","margin-block":"<'margin-top'>{1,2}","margin-block-end":"<'margin-top'>","margin-block-start":"<'margin-top'>","margin-bottom":"<length-percentage>|auto|<anchor-size()>","margin-inline":"<'margin-top'>{1,2}","margin-inline-end":"<'margin-top'>","margin-inline-start":"<'margin-top'>","margin-left":"<length-percentage>|auto|<anchor-size()>","margin-right":"<length-percentage>|auto|<anchor-size()>","margin-top":"<length-percentage>|auto|<anchor-size()>","margin-trim":"none|in-flow|all",marker:"none|<url>","marker-end":"none|<url>","marker-mid":"none|<url>","marker-start":"none|<url>",mask:"<mask-layer>#","mask-border":"<'mask-border-source'>||<'mask-border-slice'> [/ <'mask-border-width'>? [/ <'mask-border-outset'>]?]?||<'mask-border-repeat'>||<'mask-border-mode'>","mask-border-mode":"luminance|alpha","mask-border-outset":"[<length>|<number>]{1,4}","mask-border-repeat":"[stretch|repeat|round|space]{1,2}","mask-border-slice":"<number-percentage>{1,4} fill?","mask-border-source":"none|<image>","mask-border-width":"[<length-percentage>|<number>|auto]{1,4}","mask-clip":"[<coord-box>|no-clip]#","mask-composite":"<compositing-operator>#","mask-image":"<mask-reference>#","mask-mode":"<masking-mode>#","mask-origin":"<coord-box>#","mask-position":"<position>#","mask-repeat":"<repeat-style>#","mask-size":"<bg-size>#","mask-type":"luminance|alpha","masonry-auto-flow":"[pack|next]||[definite-first|ordered]","math-depth":"auto-add|add( <integer> )|<integer>","math-shift":"normal|compact","math-style":"normal|compact","max-block-size":"<'max-width'>","max-height":"none|<length-percentage [0,∞]>|min-content|max-content|fit-content|fit-content( <length-percentage [0,∞]> )|<calc-size()>|<anchor-size()>|stretch|<-non-standard-size>","max-inline-size":"<'max-width'>","max-lines":"none|<integer>","max-width":"none|<length-percentage [0,∞]>|min-content|max-content|fit-content|fit-content( <length-percentage [0,∞]> )|<calc-size()>|<anchor-size()>|stretch|<-non-standard-size>","min-block-size":"<'min-width'>","min-height":"auto|<length-percentage [0,∞]>|min-content|max-content|fit-content|fit-content( <length-percentage [0,∞]> )|<calc-size()>|<anchor-size()>|stretch|<-non-standard-size>","min-inline-size":"<'min-width'>","min-width":"auto|<length-percentage [0,∞]>|min-content|max-content|fit-content|fit-content( <length-percentage [0,∞]> )|<calc-size()>|<anchor-size()>|stretch|<-non-standard-size>","mix-blend-mode":"<blend-mode>|plus-darker|plus-lighter","object-fit":"fill|contain|cover|none|scale-down","object-position":"<position>","object-view-box":"none|<basic-shape-rect>",offset:"[<'offset-position'>? [<'offset-path'> [<'offset-distance'>||<'offset-rotate'>]?]?]! [/ <'offset-anchor'>]?","offset-anchor":"auto|<position>","offset-distance":"<length-percentage>","offset-path":"none|<offset-path>||<coord-box>","offset-position":"normal|auto|<position>","offset-rotate":"[auto|reverse]||<angle>",opacity:"<opacity-value>",order:"<integer>",orphans:"<integer>",outline:"<'outline-width'>||<'outline-style'>||<'outline-color'>","outline-color":"auto|<color>","outline-offset":"<length>","outline-style":"auto|<outline-line-style>","outline-width":"<line-width>",overflow:"[visible|hidden|clip|scroll|auto]{1,2}|<-non-standard-overflow>","overflow-anchor":"auto|none","overflow-block":"visible|hidden|clip|scroll|auto|<-non-standard-overflow>","overflow-clip-box":"padding-box|content-box","overflow-clip-margin":"<visual-box>||<length [0,∞]>","overflow-inline":"visible|hidden|clip|scroll|auto|<-non-standard-overflow>","overflow-wrap":"normal|break-word|anywhere","overflow-x":"visible|hidden|clip|scroll|auto|<-non-standard-overflow>","overflow-y":"visible|hidden|clip|scroll|auto|<-non-standard-overflow>",overlay:"none|auto","overscroll-behavior":"[contain|none|auto]{1,2}","overscroll-behavior-block":"contain|none|auto","overscroll-behavior-inline":"contain|none|auto","overscroll-behavior-x":"contain|none|auto","overscroll-behavior-y":"contain|none|auto",padding:"<'padding-top'>{1,4}","padding-block":"<'padding-top'>{1,2}","padding-block-end":"<'padding-top'>","padding-block-start":"<'padding-top'>","padding-bottom":"<length-percentage [0,∞]>","padding-inline":"<'padding-top'>{1,2}","padding-inline-end":"<'padding-top'>","padding-inline-start":"<'padding-top'>","padding-left":"<length-percentage [0,∞]>","padding-right":"<length-percentage [0,∞]>","padding-top":"<length-percentage [0,∞]>",page:"auto|<custom-ident>","page-break-after":"auto|always|avoid|left|right|recto|verso","page-break-before":"auto|always|avoid|left|right|recto|verso","page-break-inside":"auto|avoid","paint-order":"normal|[fill||stroke||markers]",perspective:"none|<length>","perspective-origin":"<position>","place-content":"<'align-content'> <'justify-content'>?","place-items":"<'align-items'> <'justify-items'>?","place-self":"<'align-self'> <'justify-self'>?","pointer-events":"auto|none|visiblePainted|visibleFill|visibleStroke|visible|painted|fill|stroke|all|inherit",position:"static|relative|absolute|sticky|fixed|-webkit-sticky","position-anchor":"auto|none|<anchor-name>","position-area":"none|<position-area>","position-try":"<'position-try-order'>? <'position-try-fallbacks'>","position-try-fallbacks":"none|[[<dashed-ident>||<try-tactic>]|<'position-area'>]#","position-try-order":"normal|<try-size>","position-visibility":"always|[anchors-valid||anchors-visible||no-overflow]","print-color-adjust":"economy|exact",quotes:"none|auto|[<string> <string>]+",r:"<length>|<percentage>","reading-flow":"normal|source-order|flex-visual|flex-flow|grid-rows|grid-columns|grid-order","reading-order":"<integer>",resize:"none|both|horizontal|vertical|block|inline",right:"auto|<length-percentage>|<anchor()>|<anchor-size()>",rotate:"none|<angle>|[x|y|z|<number>{3}]&&<angle>","row-gap":"normal|<length-percentage>","ruby-align":"start|center|space-between|space-around","ruby-merge":"separate|collapse|auto","ruby-overhang":"auto|none","ruby-position":"[alternate||[over|under]]|inter-character",rx:"<length>|<percentage>",ry:"<length>|<percentage>",scale:"none|[<number>|<percentage>]{1,3}","scroll-behavior":"auto|smooth","scroll-initial-target":"none|nearest","scroll-margin":"<length>{1,4}","scroll-margin-block":"<length>{1,2}","scroll-margin-block-end":"<length>","scroll-margin-block-start":"<length>","scroll-margin-bottom":"<length>","scroll-margin-inline":"<length>{1,2}","scroll-margin-inline-end":"<length>","scroll-margin-inline-start":"<length>","scroll-margin-left":"<length>","scroll-margin-right":"<length>","scroll-margin-top":"<length>","scroll-marker-group":"none|before|after","scroll-padding":"[auto|<length-percentage>]{1,4}","scroll-padding-block":"[auto|<length-percentage>]{1,2}","scroll-padding-block-end":"auto|<length-percentage>","scroll-padding-block-start":"auto|<length-percentage>","scroll-padding-bottom":"auto|<length-percentage>","scroll-padding-inline":"[auto|<length-percentage>]{1,2}","scroll-padding-inline-end":"auto|<length-percentage>","scroll-padding-inline-start":"auto|<length-percentage>","scroll-padding-left":"auto|<length-percentage>","scroll-padding-right":"auto|<length-percentage>","scroll-padding-top":"auto|<length-percentage>","scroll-snap-align":"[none|start|end|center]{1,2}","scroll-snap-coordinate":"none|<position>#","scroll-snap-destination":"<position>","scroll-snap-points-x":"none|repeat( <length-percentage> )","scroll-snap-points-y":"none|repeat( <length-percentage> )","scroll-snap-stop":"normal|always","scroll-snap-type":"none|[x|y|block|inline|both] [mandatory|proximity]?","scroll-snap-type-x":"none|mandatory|proximity","scroll-snap-type-y":"none|mandatory|proximity","scroll-target-group":"none|auto","scroll-timeline":"[<'scroll-timeline-name'> <'scroll-timeline-axis'>?]#","scroll-timeline-axis":"[block|inline|x|y]#","scroll-timeline-name":"[none|<dashed-ident>]#","scrollbar-color":"auto|<color>{2}","scrollbar-gutter":"auto|stable&&both-edges?","scrollbar-width":"auto|thin|none","shape-image-threshold":"<opacity-value>","shape-margin":"<length-percentage>","shape-outside":"none|[<shape-box>||<basic-shape>]|<image>","shape-rendering":"auto|optimizeSpeed|crispEdges|geometricPrecision","speak-as":"normal|spell-out||digits||[literal-punctuation|no-punctuation]","stop-color":"<'color'>","stop-opacity":"<'opacity'>",stroke:"<paint>","stroke-color":"<color>","stroke-dasharray":"none|[<svg-length>+]#","stroke-dashoffset":"<svg-length>","stroke-linecap":"butt|round|square","stroke-linejoin":"miter|round|bevel","stroke-miterlimit":"<number-one-or-greater>","stroke-opacity":"<'opacity'>","stroke-width":"<svg-length>","tab-size":"<integer>|<length>","table-layout":"auto|fixed","text-align":"start|end|left|right|center|justify|match-parent","text-align-last":"auto|start|end|left|right|center|justify","text-anchor":"start|middle|end","text-autospace":"normal|<autospace>|auto","text-box":"normal|<'text-box-trim'>||<'text-box-edge'>","text-box-edge":"auto|<text-edge>","text-box-trim":"none|trim-start|trim-end|trim-both","text-combine-upright":"none|all|[digits <integer>?]","text-decoration":"<'text-decoration-line'>||<'text-decoration-style'>||<'text-decoration-color'>||<'text-decoration-thickness'>","text-decoration-color":"<color>","text-decoration-inset":"<length>{1,2}|auto","text-decoration-line":"none|[underline||overline||line-through||blink]|spelling-error|grammar-error","text-decoration-skip":"none|[objects||[spaces|[leading-spaces||trailing-spaces]]||edges||box-decoration]","text-decoration-skip-ink":"auto|all|none","text-decoration-style":"solid|double|dotted|dashed|wavy","text-decoration-thickness":"auto|from-font|<length>|<percentage>","text-emphasis":"<'text-emphasis-style'>||<'text-emphasis-color'>","text-emphasis-color":"<color>","text-emphasis-position":"auto|[over|under]&&[right|left]?","text-emphasis-style":"none|[[filled|open]||[dot|circle|double-circle|triangle|sesame]]|<string>","text-indent":"<length-percentage>&&hanging?&&each-line?","text-justify":"auto|inter-character|inter-word|none","text-orientation":"mixed|upright|sideways","text-overflow":"[clip|ellipsis|<string>]{1,2}","text-rendering":"auto|optimizeSpeed|optimizeLegibility|geometricPrecision","text-shadow":"none|<shadow-t>#","text-size-adjust":"none|auto|<percentage>","text-spacing-trim":"space-all|normal|space-first|trim-start","text-transform":"none|[capitalize|uppercase|lowercase]||full-width||full-size-kana|math-auto","text-underline-offset":"auto|<length>|<percentage>","text-underline-position":"auto|from-font|[under||[left|right]]","text-wrap":"<'text-wrap-mode'>||<'text-wrap-style'>","text-wrap-mode":"wrap|nowrap","text-wrap-style":"auto|balance|stable|pretty","timeline-scope":"none|<dashed-ident>#","timeline-trigger":"none|[<'timeline-trigger-name'> <'timeline-trigger-source'> <'timeline-trigger-range'> ['/' <'timeline-trigger-exit-range'>]?]#","timeline-trigger-name":"none|<dashed-ident>#","timeline-trigger-exit-range":"[<'timeline-trigger-exit-range-start'> <'timeline-trigger-exit-range-end'>?]#","timeline-trigger-exit-range-end":"[auto|normal|<length-percentage>|<timeline-range-name> <length-percentage>?]#","timeline-trigger-exit-range-start":"[auto|normal|<length-percentage>|<timeline-range-name> <length-percentage>?]#","timeline-trigger-range":"[<'timeline-trigger-range-start'> <'timeline-trigger-range-end'>?]#","timeline-trigger-range-end":"[normal|<length-percentage>|<timeline-range-name> <length-percentage>?]#","timeline-trigger-range-start":"[normal|<length-percentage>|<timeline-range-name> <length-percentage>?]#","timeline-trigger-source":"<single-animation-timeline>#",top:"auto|<length-percentage>|<anchor()>|<anchor-size()>","touch-action":"auto|none|[[pan-x|pan-left|pan-right]||[pan-y|pan-up|pan-down]||pinch-zoom]|manipulation",transform:"none|<transform-list>","transform-box":"content-box|border-box|fill-box|stroke-box|view-box","transform-origin":"[<length-percentage>|left|center|right|top|bottom]|[[<length-percentage>|left|center|right]&&[<length-percentage>|top|center|bottom]] <length>?","transform-style":"flat|preserve-3d",transition:"<single-transition>#","transition-behavior":"<transition-behavior-value>#","transition-delay":"<time>#","transition-duration":"<time>#","transition-property":"none|<single-transition-property>#","transition-timing-function":"<easing-function>#",translate:"none|<length-percentage> [<length-percentage> <length>?]?","trigger-scope":"none|all|<dashed-ident>#","unicode-bidi":"normal|embed|isolate|bidi-override|isolate-override|plaintext|-moz-isolate|-moz-isolate-override|-moz-plaintext|-webkit-isolate|-webkit-isolate-override|-webkit-plaintext","user-select":"auto|text|none|all","vector-effect":"none|non-scaling-stroke|non-scaling-size|non-rotation|fixed-position","vertical-align":"baseline|sub|super|text-top|text-bottom|middle|top|bottom|<percentage>|<length>","view-timeline":"[<'view-timeline-name'> [<'view-timeline-axis'>||<'view-timeline-inset'>]?]#","view-timeline-axis":"[block|inline|x|y]#","view-timeline-inset":"[[auto|<length-percentage>]{1,2}]#","view-timeline-name":"[none|<dashed-ident>]#","view-transition-class":"none|<custom-ident>+","view-transition-name":"none|<custom-ident>|match-element",visibility:"visible|hidden|collapse","white-space":"normal|pre|pre-wrap|pre-line|<'white-space-collapse'>||<'text-wrap-mode'>","white-space-collapse":"collapse|preserve|preserve-breaks|preserve-spaces|break-spaces",widows:"<integer>",width:"auto|<length-percentage [0,∞]>|min-content|max-content|fit-content|fit-content( <length-percentage [0,∞]> )|<calc-size()>|<anchor-size()>|stretch|<-non-standard-size>","will-change":"auto|<animateable-feature>#","word-break":"normal|break-all|keep-all|break-word|auto-phrase","word-spacing":"normal|<length>","word-wrap":"normal|break-word","writing-mode":"horizontal-tb|vertical-rl|vertical-lr|sideways-rl|sideways-lr|<svg-writing-mode>",x:"<length>|<percentage>",y:"<length>|<percentage>","z-index":"auto|<integer>",zoom:"normal|reset|<number [0,∞]>||<percentage [0,∞]>","-moz-background-clip":"padding|border","-moz-border-radius-bottomleft":"<'border-bottom-left-radius'>","-moz-border-radius-bottomright":"<'border-bottom-right-radius'>","-moz-border-radius-topleft":"<'border-top-left-radius'>","-moz-border-radius-topright":"<'border-bottom-right-radius'>","-moz-control-character-visibility":"visible|hidden","-moz-osx-font-smoothing":"auto|grayscale","-moz-user-select":"none|text|all|-moz-none","-ms-flex-align":"start|end|center|baseline|stretch","-ms-flex-item-align":"auto|start|end|center|baseline|stretch","-ms-flex-line-pack":"start|end|center|justify|distribute|stretch","-ms-flex-negative":"<'flex-shrink'>","-ms-flex-pack":"start|end|center|justify|distribute","-ms-flex-order":"<integer>","-ms-flex-positive":"<'flex-grow'>","-ms-flex-preferred-size":"<'flex-basis'>","-ms-interpolation-mode":"nearest-neighbor|bicubic","-ms-grid-column-align":"start|end|center|stretch","-ms-grid-row-align":"start|end|center|stretch","-ms-hyphenate-limit-last":"none|always|column|page|spread","-webkit-background-clip":"[<visual-box>|border|padding|content|text]#","-webkit-column-break-after":"always|auto|avoid","-webkit-column-break-before":"always|auto|avoid","-webkit-column-break-inside":"always|auto|avoid","-webkit-font-smoothing":"auto|none|antialiased|subpixel-antialiased","-webkit-mask-box-image":"[<url>|<gradient>|none] [<length-percentage>{4} <-webkit-mask-box-repeat>{2}]?","-webkit-print-color-adjust":"economy|exact","-webkit-text-security":"none|circle|disc|square","-webkit-user-drag":"none|element|auto",behavior:"<url>+",cue:"<'cue-before'> <'cue-after'>?","cue-after":"<url> <decibel>?|none","cue-before":"<url> <decibel>?|none","glyph-orientation-horizontal":"<angle>","glyph-orientation-vertical":"<angle>",kerning:"auto|<svg-length>",pause:"<'pause-before'> <'pause-after'>?","pause-after":"<time>|none|x-weak|weak|medium|strong|x-strong","pause-before":"<time>|none|x-weak|weak|medium|strong|x-strong","position-try-options":"<'position-try-fallbacks'>",rest:"<'rest-before'> <'rest-after'>?","rest-after":"<time>|none|x-weak|weak|medium|strong|x-strong","rest-before":"<time>|none|x-weak|weak|medium|strong|x-strong",speak:"auto|never|always","voice-balance":"<number>|left|center|right|leftwards|rightwards","voice-duration":"auto|<time>","voice-family":"[[<family-name>|<generic-voice>] ,]* [<family-name>|<generic-voice>]|preserve","voice-pitch":"<frequency>&&absolute|[[x-low|low|medium|high|x-high]||[<frequency>|<semitones>|<percentage>]]","voice-range":"<frequency>&&absolute|[[x-low|low|medium|high|x-high]||[<frequency>|<semitones>|<percentage>]]","voice-rate":"[normal|x-slow|slow|medium|fast|x-fast]||<percentage>","voice-stress":"normal|strong|moderate|none|reduced","voice-volume":"silent|[[x-soft|soft|medium|loud|x-loud]||<decibel>]","white-space-trim":"none|discard-before||discard-after||discard-inner"},atrules:{charset:{prelude:"<string>",descriptors:null},"counter-style":{prelude:"<counter-style-name>",descriptors:{"additive-symbols":"[<integer [0,∞]>&&<symbol>]#",fallback:"<counter-style-name>",negative:"<symbol> <symbol>?",pad:"<integer [0,∞]>&&<symbol>",prefix:"<symbol>",range:"[[<integer>|infinite]{2}]#|auto","speak-as":"auto|bullets|numbers|words|spell-out|<counter-style-name>",suffix:"<symbol>",symbols:"<symbol>+",system:"cyclic|numeric|alphabetic|symbolic|additive|[fixed <integer>?]|[extends <counter-style-name>]"}},container:{prelude:"[<container-name>]? <container-condition>",descriptors:null},document:{prelude:"[<url>|url-prefix( <string> )|domain( <string> )|media-document( <string> )|regexp( <string> )]#",descriptors:null},"font-face":{prelude:null,descriptors:{"ascent-override":"normal|<percentage>","descent-override":"normal|<percentage>","font-display":"auto|block|swap|fallback|optional","font-family":"<family-name>","font-feature-settings":"normal|<feature-tag-value>#","font-stretch":"<font-stretch-absolute>{1,2}","font-style":"normal|italic|oblique <angle>{0,2}","font-variation-settings":"normal|[<string> <number>]#","font-weight":"<font-weight-absolute>{1,2}","line-gap-override":"normal|<percentage>","size-adjust":"<percentage>",src:"[<url> [format( <string># )]?|local( <family-name> )]#","unicode-range":"<urange>#"}},"font-feature-values":{prelude:"<family-name>#",descriptors:null},"font-palette-values":{prelude:"<dashed-ident>",descriptors:{"base-palette":"light|dark|<integer [0,∞]>","font-family":"<family-name>#","override-colors":"[<integer [0,∞]> <color>]#"}},import:{prelude:"[<string>|<url>] [layer|layer( <layer-name> )]? [supports( [<supports-condition>|<declaration>] )]? <media-query-list>?",descriptors:null},keyframes:{prelude:"<keyframes-name>",descriptors:null},layer:{prelude:"[<layer-name>#|<layer-name>?]",descriptors:null},media:{prelude:"<media-query-list>",descriptors:null},namespace:{prelude:"<namespace-prefix>? [<string>|<url>]",descriptors:null},page:{prelude:"<page-selector-list>",descriptors:{bleed:"auto|<length>",marks:"none|[crop||cross]","page-orientation":"upright|rotate-left|rotate-right",size:"<length [0,∞]>{1,2}|auto|[<page-size>||[portrait|landscape]]"}},"position-try":{prelude:"<dashed-ident>",descriptors:{top:"<'top'>",left:"<'left'>",bottom:"<'bottom'>",right:"<'right'>","inset-block-start":"<'inset-block-start'>","inset-block-end":"<'inset-block-end'>","inset-inline-start":"<'inset-inline-start'>","inset-inline-end":"<'inset-inline-end'>","inset-block":"<'inset-block'>","inset-inline":"<'inset-inline'>",inset:"<'inset'>","margin-top":"<'margin-top'>","margin-left":"<'margin-left'>","margin-bottom":"<'margin-bottom'>","margin-right":"<'margin-right'>","margin-block-start":"<'margin-block-start'>","margin-block-end":"<'margin-block-end'>","margin-inline-start":"<'margin-inline-start'>","margin-inline-end":"<'margin-inline-end'>",margin:"<'margin'>","margin-block":"<'margin-block'>","margin-inline":"<'margin-inline'>",width:"<'width'>",height:"<'height'>","min-width":"<'min-width'>","min-height":"<'min-height'>","max-width":"<'max-width'>","max-height":"<'max-height'>","block-size":"<'block-size'>","inline-size":"<'inline-size'>","min-block-size":"<'min-block-size'>","min-inline-size":"<'min-inline-size'>","max-block-size":"<'max-block-size'>","max-inline-size":"<'max-inline-size'>","align-self":"<'align-self'>|anchor-center","justify-self":"<'justify-self'>|anchor-center"}},property:{prelude:"<custom-property-name>",descriptors:{inherits:"true|false","initial-value":"<declaration-value>?",syntax:"<string>"}},scope:{prelude:"[( <scope-start> )]? [to ( <scope-end> )]?",descriptors:null},"starting-style":{prelude:null,descriptors:null},supports:{prelude:"<supports-condition>",descriptors:null},"view-transition":{prelude:null,descriptors:{navigation:"auto|none",types:"none|<custom-ident>+"}},"font-features-values":{prelude:"[<string>|<custom-ident>]+",descriptors:{"font-display":"auto|block|swap|fallback|optional"}}}},vt=43,lt=45,Jr=110,sn=!0,kb=!1;function ei(e,t){let n=this.tokenStart+e;const r=this.charCodeAt(n);for((r===vt||r===lt)&&(t&&this.error("Number sign is not allowed"),n++);n<this.tokenEnd;n++)Ye(this.charCodeAt(n))||this.error("Integer is expected",n)}function Cn(e){return ei.call(this,0,e)}function Xt(e,t){if(!this.cmpChar(this.tokenStart+e,t)){let n="";switch(t){case Jr:n="N is expected";break;case lt:n="HyphenMinus is expected";break}this.error(n,this.tokenStart+e)}}function Vs(){let e=0,t=0,n=this.tokenType;for(;n===Le||n===qe;)n=this.lookupType(++e);if(n!==fe)if(this.isDelim(vt,e)||this.isDelim(lt,e)){t=this.isDelim(vt,e)?vt:lt;do n=this.lookupType(++e);while(n===Le||n===qe);n!==fe&&(this.skip(e),Cn.call(this,sn))}else return null;return e>0&&this.skip(e),t===0&&(n=this.charCodeAt(this.tokenStart),n!==vt&&n!==lt&&this.error("Number sign is expected")),Cn.call(this,t!==0),t===lt?"-"+this.consume(fe):this.consume(fe)}const Ab="AnPlusB",Sb={a:[String,null],b:[String,null]};function fl(){const e=this.tokenStart;let t=null,n=null;if(this.tokenType===fe)Cn.call(this,kb),n=this.consume(fe);else if(this.tokenType===ne&&this.cmpChar(this.tokenStart,lt))switch(t="-1",Xt.call(this,1,Jr),this.tokenEnd-this.tokenStart){case 2:this.next(),n=Vs.call(this);break;case 3:Xt.call(this,2,lt),this.next(),this.skipSC(),Cn.call(this,sn),n="-"+this.consume(fe);break;default:Xt.call(this,2,lt),ei.call(this,3,sn),this.next(),n=this.substrToCursor(e+2)}else if(this.tokenType===ne||this.isDelim(vt)&&this.lookupType(1)===ne){let r=0;switch(t="1",this.isDelim(vt)&&(r=1,this.next()),Xt.call(this,0,Jr),this.tokenEnd-this.tokenStart){case 1:this.next(),n=Vs.call(this);break;case 2:Xt.call(this,1,lt),this.next(),this.skipSC(),Cn.call(this,sn),n="-"+this.consume(fe);break;default:Xt.call(this,1,lt),ei.call(this,2,sn),this.next(),n=this.substrToCursor(e+r+1)}}else if(this.tokenType===be){const r=this.charCodeAt(this.tokenStart),i=r===vt||r===lt;let s=this.tokenStart+i;for(;s<this.tokenEnd&&Ye(this.charCodeAt(s));s++);s===this.tokenStart+i&&this.error("Integer is expected",this.tokenStart+i),Xt.call(this,s-this.tokenStart,Jr),t=this.substring(e,s),s+1===this.tokenEnd?(this.next(),n=Vs.call(this)):(Xt.call(this,s-this.tokenStart+1,lt),s+2===this.tokenEnd?(this.next(),this.skipSC(),Cn.call(this,sn),n="-"+this.consume(fe)):(ei.call(this,s-this.tokenStart+2,sn),this.next(),n=this.substrToCursor(s+1)))}else this.error();return t!==null&&t.charCodeAt(0)===vt&&(t=t.substr(1)),n!==null&&n.charCodeAt(0)===vt&&(n=n.substr(1)),{type:"AnPlusB",loc:this.getLocation(e,this.tokenStart),a:t,b:n}}function Cb(e){if(e.a){const t=e.a==="+1"&&"n"||e.a==="1"&&"n"||e.a==="-1"&&"-n"||e.a+"n";if(e.b){const n=e.b[0]==="-"||e.b[0]==="+"?e.b:"+"+e.b;this.tokenize(t+n)}else this.tokenize(t)}else this.tokenize(e.b)}const xb=Object.freeze(Object.defineProperty({__proto__:null,generate:Cb,name:Ab,parse:fl,structure:Sb},Symbol.toStringTag,{value:"Module"}));function pl(){return this.Raw(this.consumeUntilLeftCurlyBracketOrSemicolon,!0)}function Nb(){for(let e=1,t;t=this.lookupType(e);e++){if(t===ut)return!0;if(t===ze||t===Be)return!1}return!1}const vb="Atrule",Ib="atrule",Ob={name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]};function ml(e=!1){const t=this.tokenStart;let n,r,i=null,s=null;switch(this.eat(Be),n=this.substrToCursor(t+1),r=n.toLowerCase(),this.skipSC(),this.eof===!1&&this.tokenType!==ze&&this.tokenType!==Ke&&(this.parseAtrulePrelude?i=this.parseWithFallback(this.AtrulePrelude.bind(this,n,e),pl):i=pl.call(this,this.tokenIndex),this.skipSC()),this.tokenType){case Ke:this.next();break;case ze:hasOwnProperty.call(this.atrule,r)&&typeof this.atrule[r].block=="function"?s=this.atrule[r].block.call(this,e):s=this.Block(Nb.call(this));break}return{type:"Atrule",loc:this.getLocation(t,this.tokenStart),name:n,prelude:i,block:s}}function Lb(e){this.token(Be,"@"+e.name),e.prelude!==null&&this.node(e.prelude),e.block?this.node(e.block):this.token(Ke,";")}const Pb=Object.freeze(Object.defineProperty({__proto__:null,generate:Lb,name:vb,parse:ml,structure:Ob,walkContext:Ib},Symbol.toStringTag,{value:"Module"})),Rb="AtrulePrelude",Db="atrulePrelude",Mb={children:[[]]};function gl(e){let t=null;return e!==null&&(e=e.toLowerCase()),this.skipSC(),hasOwnProperty.call(this.atrule,e)&&typeof this.atrule[e].prelude=="function"?t=this.atrule[e].prelude.call(this):t=this.readSequence(this.scope.AtrulePrelude),this.skipSC(),this.eof!==!0&&this.tokenType!==ze&&this.tokenType!==Ke&&this.error("Semicolon or block is expected"),{type:"AtrulePrelude",loc:this.getLocationFromList(t),children:t}}function Bb(e){this.children(e)}const Fb=Object.freeze(Object.defineProperty({__proto__:null,generate:Bb,name:Rb,parse:gl,structure:Mb,walkContext:Db},Symbol.toStringTag,{value:"Module"})),Ub=36,bl=42,ti=61,Hb=94,Ks=124,zb=126;function $b(){this.eof&&this.error("Unexpected end of input");const e=this.tokenStart;let t=!1;return this.isDelim(bl)?(t=!0,this.next()):this.isDelim(Ks)||this.eat(ne),this.isDelim(Ks)?this.charCodeAt(this.tokenStart+1)!==ti?(this.next(),this.eat(ne)):t&&this.error("Identifier is expected",this.tokenEnd):t&&this.error("Vertical line is expected"),{type:"Identifier",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}}function jb(){const e=this.tokenStart,t=this.charCodeAt(e);return t!==ti&&t!==zb&&t!==Hb&&t!==Ub&&t!==bl&&t!==Ks&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.next(),t!==ti&&(this.isDelim(ti)||this.error("Equal sign is expected"),this.next()),this.substrToCursor(e)}const qb="AttributeSelector",Yb={name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]};function El(){const e=this.tokenStart;let t,n=null,r=null,i=null;return this.eat(ot),this.skipSC(),t=$b.call(this),this.skipSC(),this.tokenType!==ft&&(this.tokenType!==ne&&(n=jb.call(this),this.skipSC(),r=this.tokenType===Et?this.String():this.Identifier(),this.skipSC()),this.tokenType===ne&&(i=this.consume(ne),this.skipSC())),this.eat(ft),{type:"AttributeSelector",loc:this.getLocation(e,this.tokenStart),name:t,matcher:n,value:r,flags:i}}function Wb(e){this.token(ge,"["),this.node(e.name),e.matcher!==null&&(this.tokenize(e.matcher),this.node(e.value)),e.flags!==null&&this.token(ne,e.flags),this.token(ge,"]")}const Gb=Object.freeze(Object.defineProperty({__proto__:null,generate:Wb,name:qb,parse:El,structure:Yb},Symbol.toStringTag,{value:"Module"})),Vb=38;function yl(){return this.Raw(null,!0)}function Tl(){return this.parseWithFallback(this.Rule,yl)}function _l(){return this.Raw(this.consumeUntilSemicolonIncluded,!0)}function Kb(){if(this.tokenType===Ke)return _l.call(this,this.tokenIndex);const e=this.parseWithFallback(this.Declaration,_l);return this.tokenType===Ke&&this.next(),e}const Xb="Block",Qb="block",Zb={children:[["Atrule","Rule","Declaration"]]};function wl(e){const t=e?Kb:Tl,n=this.tokenStart;let r=this.createList();this.eat(ze);e:for(;!this.eof;)switch(this.tokenType){case ut:break e;case Le:case qe:this.next();break;case Be:r.push(this.parseWithFallback(this.Atrule.bind(this,e),yl));break;default:e&&this.isDelim(Vb)?r.push(Tl.call(this)):r.push(t.call(this))}return this.eof||this.eat(ut),{type:"Block",loc:this.getLocation(n,this.tokenStart),children:r}}function Jb(e){this.token(ze,"{"),this.children(e,t=>{t.type==="Declaration"&&this.token(Ke,";")}),this.token(ut,"}")}const e1=Object.freeze(Object.defineProperty({__proto__:null,generate:Jb,name:Xb,parse:wl,structure:Zb,walkContext:Qb},Symbol.toStringTag,{value:"Module"})),t1="Brackets",n1={children:[[]]};function kl(e,t){const n=this.tokenStart;let r=null;return this.eat(ot),r=e.call(this,t),this.eof||this.eat(ft),{type:"Brackets",loc:this.getLocation(n,this.tokenStart),children:r}}function r1(e){this.token(ge,"["),this.children(e),this.token(ge,"]")}const i1=Object.freeze(Object.defineProperty({__proto__:null,generate:r1,name:t1,parse:kl,structure:n1},Symbol.toStringTag,{value:"Module"})),s1="CDC",a1=[];function Al(){const e=this.tokenStart;return this.eat(it),{type:"CDC",loc:this.getLocation(e,this.tokenStart)}}function o1(){this.token(it,"-->")}const u1=Object.freeze(Object.defineProperty({__proto__:null,generate:o1,name:s1,parse:Al,structure:a1},Symbol.toStringTag,{value:"Module"})),l1="CDO",c1=[];function Sl(){const e=this.tokenStart;return this.eat(Xn),{type:"CDO",loc:this.getLocation(e,this.tokenStart)}}function d1(){this.token(Xn,"<!--")}const h1=Object.freeze(Object.defineProperty({__proto__:null,generate:d1,name:l1,parse:Sl,structure:c1},Symbol.toStringTag,{value:"Module"})),f1=46,p1="ClassSelector",m1={name:String};function Cl(){return this.eatDelim(f1),{type:"ClassSelector",loc:this.getLocation(this.tokenStart-1,this.tokenEnd),name:this.consume(ne)}}function g1(e){this.token(ge,"."),this.token(ne,e.name)}const b1=Object.freeze(Object.defineProperty({__proto__:null,generate:g1,name:p1,parse:Cl,structure:m1},Symbol.toStringTag,{value:"Module"})),E1=43,xl=47,y1=62,T1=126,_1="Combinator",w1={name:String};function Nl(){const e=this.tokenStart;let t;switch(this.tokenType){case Le:t=" ";break;case ge:switch(this.charCodeAt(this.tokenStart)){case y1:case E1:case T1:this.next();break;case xl:this.next(),this.eatIdent("deep"),this.eatDelim(xl);break;default:this.error("Combinator is expected")}t=this.substrToCursor(e);break}return{type:"Combinator",loc:this.getLocation(e,this.tokenStart),name:t}}function k1(e){this.tokenize(e.name)}const A1=Object.freeze(Object.defineProperty({__proto__:null,generate:k1,name:_1,parse:Nl,structure:w1},Symbol.toStringTag,{value:"Module"})),S1=42,C1=47,x1="Comment",N1={value:String};function vl(){const e=this.tokenStart;let t=this.tokenEnd;return this.eat(qe),t-e+2>=2&&this.charCodeAt(t-2)===S1&&this.charCodeAt(t-1)===C1&&(t-=2),{type:"Comment",loc:this.getLocation(e,this.tokenStart),value:this.substring(e+2,t)}}function v1(e){this.token(qe,"/*"+e.value+"*/")}const I1=Object.freeze(Object.defineProperty({__proto__:null,generate:v1,name:x1,parse:vl,structure:N1},Symbol.toStringTag,{value:"Module"})),O1=new Set([Ve,de,Yt]),L1="Condition",P1={kind:String,children:[["Identifier","Feature","FeatureFunction","FeatureRange","SupportsDeclaration"]]};function Il(e){return this.lookupTypeNonSC(1)===ne&&O1.has(this.lookupTypeNonSC(2))?this.Feature(e):this.FeatureRange(e)}const R1={media:Il,container:Il,supports(){return this.SupportsDeclaration()}};function Ol(e="media"){const t=this.createList();e:for(;!this.eof;)switch(this.tokenType){case qe:case Le:this.next();continue;case ne:t.push(this.Identifier());break;case we:{let n=this.parseWithFallback(()=>R1[e].call(this,e),()=>null);n||(n=this.parseWithFallback(()=>{this.eat(we);const r=this.Condition(e);return this.eat(de),r},()=>this.GeneralEnclosed(e))),t.push(n);break}case pe:{let n=this.parseWithFallback(()=>this.FeatureFunction(e),()=>null);n||(n=this.GeneralEnclosed(e)),t.push(n);break}default:break e}return t.isEmpty&&this.error("Condition is expected"),{type:"Condition",loc:this.getLocationFromList(t),kind:e,children:t}}function D1(e){e.children.forEach(t=>{t.type==="Condition"?(this.token(we,"("),this.node(t),this.token(de,")")):this.node(t)})}const M1=Object.freeze(Object.defineProperty({__proto__:null,generate:D1,name:L1,parse:Ol,structure:P1},Symbol.toStringTag,{value:"Module"})),Ll=33,B1=35,F1=36,U1=38,H1=42,z1=43,Pl=47;function $1(){return this.Raw(this.consumeUntilExclamationMarkOrSemicolon,!0)}function j1(){return this.Raw(this.consumeUntilExclamationMarkOrSemicolon,!1)}function q1(){const e=this.tokenIndex,t=this.Value();return t.type!=="Raw"&&this.eof===!1&&this.tokenType!==Ke&&this.isDelim(Ll)===!1&&this.isBalanceEdge(e)===!1&&this.error(),t}const Y1="Declaration",W1="declaration",G1={important:[Boolean,String],property:String,value:["Value","Raw"]};function Rl(){const e=this.tokenStart,t=this.tokenIndex,n=K1.call(this),r=ys(n),i=r?this.parseCustomProperty:this.parseValue,s=r?j1:$1;let o=!1,a;this.skipSC(),this.eat(Ve);const u=this.tokenIndex;if(r||this.skipSC(),i?a=this.parseWithFallback(q1,s):a=s.call(this,this.tokenIndex),r&&a.type==="Value"&&a.children.isEmpty){for(let c=u-this.tokenIndex;c<=0;c++)if(this.lookupType(c)===Le){a.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}return this.isDelim(Ll)&&(o=X1.call(this),this.skipSC()),this.eof===!1&&this.tokenType!==Ke&&this.isBalanceEdge(t)===!1&&this.error(),{type:"Declaration",loc:this.getLocation(e,this.tokenStart),important:o,property:n,value:a}}function V1(e){this.token(ne,e.property),this.token(Ve,":"),this.node(e.value),e.important&&(this.token(ge,"!"),this.token(ne,e.important===!0?"important":e.important))}function K1(){const e=this.tokenStart;if(this.tokenType===ge)switch(this.charCodeAt(this.tokenStart)){case H1:case F1:case z1:case B1:case U1:this.next();break;case Pl:this.next(),this.isDelim(Pl)&&this.next();break}return this.tokenType===xe?this.eat(xe):this.eat(ne),this.substrToCursor(e)}function X1(){this.eat(ge),this.skipSC();const e=this.consume(ne);return e==="important"?!0:e}const Q1=Object.freeze(Object.defineProperty({__proto__:null,generate:V1,name:Y1,parse:Rl,structure:G1,walkContext:W1},Symbol.toStringTag,{value:"Module"})),Z1=38;function Xs(){return this.Raw(this.consumeUntilSemicolonIncluded,!0)}const J1="DeclarationList",eE={children:[["Declaration","Atrule","Rule"]]};function Dl(){const e=this.createList();for(;!this.eof;)switch(this.tokenType){case Le:case qe:case Ke:this.next();break;case Be:e.push(this.parseWithFallback(this.Atrule.bind(this,!0),Xs));break;default:this.isDelim(Z1)?e.push(this.parseWithFallback(this.Rule,Xs)):e.push(this.parseWithFallback(this.Declaration,Xs))}return{type:"DeclarationList",loc:this.getLocationFromList(e),children:e}}function tE(e){this.children(e,t=>{t.type==="Declaration"&&this.token(Ke,";")})}const nE=Object.freeze(Object.defineProperty({__proto__:null,generate:tE,name:J1,parse:Dl,structure:eE},Symbol.toStringTag,{value:"Module"})),rE="Dimension",iE={value:String,unit:String};function Ml(){const e=this.tokenStart,t=this.consumeNumber(be);return{type:"Dimension",loc:this.getLocation(e,this.tokenStart),value:t,unit:this.substring(e+t.length,this.tokenStart)}}function sE(e){this.token(be,e.value+e.unit)}const aE=Object.freeze(Object.defineProperty({__proto__:null,generate:sE,name:rE,parse:Ml,structure:iE},Symbol.toStringTag,{value:"Module"})),oE=47,uE="Feature",lE={kind:String,name:String,value:["Identifier","Number","Dimension","Ratio","Function",null]};function Bl(e){const t=this.tokenStart;let n,r=null;if(this.eat(we),this.skipSC(),n=this.consume(ne),this.skipSC(),this.tokenType!==de){switch(this.eat(Ve),this.skipSC(),this.tokenType){case fe:this.lookupNonWSType(1)===ge?r=this.Ratio():r=this.Number();break;case be:r=this.Dimension();break;case ne:r=this.Identifier();break;case pe:r=this.parseWithFallback(()=>{const i=this.Function(this.readSequence,this.scope.Value);return this.skipSC(),this.isDelim(oE)&&this.error(),i},()=>this.Ratio());break;default:this.error("Number, dimension, ratio or identifier is expected")}this.skipSC()}return this.eof||this.eat(de),{type:"Feature",loc:this.getLocation(t,this.tokenStart),kind:e,name:n,value:r}}function cE(e){this.token(we,"("),this.token(ne,e.name),e.value!==null&&(this.token(Ve,":"),this.node(e.value)),this.token(de,")")}const dE=Object.freeze(Object.defineProperty({__proto__:null,generate:cE,name:uE,parse:Bl,structure:lE},Symbol.toStringTag,{value:"Module"})),hE="FeatureFunction",fE={kind:String,feature:String,value:["Declaration","Selector"]};function pE(e,t){const r=(this.features[e]||{})[t];return typeof r!="function"&&this.error(`Unknown feature ${t}()`),r}function Fl(e="unknown"){const t=this.tokenStart,n=this.consumeFunctionName(),r=pE.call(this,e,n.toLowerCase());this.skipSC();const i=this.parseWithFallback(()=>{const s=this.tokenIndex,o=r.call(this);return this.eof===!1&&this.isBalanceEdge(s)===!1&&this.error(),o},()=>this.Raw(null,!1));return this.eof||this.eat(de),{type:"FeatureFunction",loc:this.getLocation(t,this.tokenStart),kind:e,feature:n,value:i}}function mE(e){this.token(pe,e.feature+"("),this.node(e.value),this.token(de,")")}const gE=Object.freeze(Object.defineProperty({__proto__:null,generate:mE,name:hE,parse:Fl,structure:fE},Symbol.toStringTag,{value:"Module"})),Ul=47,bE=60,Hl=61,EE=62,yE="FeatureRange",TE={kind:String,left:["Identifier","Number","Dimension","Ratio","Function"],leftComparison:String,middle:["Identifier","Number","Dimension","Ratio","Function"],rightComparison:[String,null],right:["Identifier","Number","Dimension","Ratio","Function",null]};function Qs(){switch(this.skipSC(),this.tokenType){case fe:return this.isDelim(Ul,this.lookupOffsetNonSC(1))?this.Ratio():this.Number();case be:return this.Dimension();case ne:return this.Identifier();case pe:return this.parseWithFallback(()=>{const e=this.Function(this.readSequence,this.scope.Value);return this.skipSC(),this.isDelim(Ul)&&this.error(),e},()=>this.Ratio());default:this.error("Number, dimension, ratio or identifier is expected")}}function zl(e){if(this.skipSC(),this.isDelim(bE)||this.isDelim(EE)){const t=this.source[this.tokenStart];return this.next(),this.isDelim(Hl)?(this.next(),t+"="):t}if(this.isDelim(Hl))return"=";this.error(`Expected ${e?'":", ':""}"<", ">", "=" or ")"`)}function $l(e="unknown"){const t=this.tokenStart;this.skipSC(),this.eat(we);const n=Qs.call(this),r=zl.call(this,n.type==="Identifier"),i=Qs.call(this);let s=null,o=null;return this.lookupNonWSType(0)!==de&&(s=zl.call(this),o=Qs.call(this)),this.skipSC(),this.eat(de),{type:"FeatureRange",loc:this.getLocation(t,this.tokenStart),kind:e,left:n,leftComparison:r,middle:i,rightComparison:s,right:o}}function _E(e){this.token(we,"("),this.node(e.left),this.tokenize(e.leftComparison),this.node(e.middle),e.right&&(this.tokenize(e.rightComparison),this.node(e.right)),this.token(de,")")}const wE=Object.freeze(Object.defineProperty({__proto__:null,generate:_E,name:yE,parse:$l,structure:TE},Symbol.toStringTag,{value:"Module"})),kE="Function",AE="function",SE={name:String,children:[[]]};function jl(e,t){const n=this.tokenStart,r=this.consumeFunctionName(),i=r.toLowerCase();let s;return s=t.hasOwnProperty(i)?t[i].call(this,t):e.call(this,t),this.eof||this.eat(de),{type:"Function",loc:this.getLocation(n,this.tokenStart),name:r,children:s}}function CE(e){this.token(pe,e.name+"("),this.children(e),this.token(de,")")}const xE=Object.freeze(Object.defineProperty({__proto__:null,generate:CE,name:kE,parse:jl,structure:SE,walkContext:AE},Symbol.toStringTag,{value:"Module"})),NE="GeneralEnclosed",vE={kind:String,function:[String,null],children:[[]]};function ql(e){const t=this.tokenStart;let n=null;this.tokenType===pe?n=this.consumeFunctionName():this.eat(we);const r=this.parseWithFallback(()=>{const i=this.tokenIndex,s=this.readSequence(this.scope.Value);return this.eof===!1&&this.isBalanceEdge(i)===!1&&this.error(),s},()=>this.createSingleNodeList(this.Raw(null,!1)));return this.eof||this.eat(de),{type:"GeneralEnclosed",loc:this.getLocation(t,this.tokenStart),kind:e,function:n,children:r}}function IE(e){e.function?this.token(pe,e.function+"("):this.token(we,"("),this.children(e),this.token(de,")")}const OE=Object.freeze(Object.defineProperty({__proto__:null,generate:IE,name:NE,parse:ql,structure:vE},Symbol.toStringTag,{value:"Module"})),LE="XXX",PE="Hash",RE={value:String};function Yl(){const e=this.tokenStart;return this.eat(xe),{type:"Hash",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e+1)}}function DE(e){this.token(xe,"#"+e.value)}const ME=Object.freeze(Object.defineProperty({__proto__:null,generate:DE,name:PE,parse:Yl,structure:RE,xxx:LE},Symbol.toStringTag,{value:"Module"})),BE="Identifier",FE={name:String};function Wl(){return{type:"Identifier",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:this.consume(ne)}}function UE(e){this.token(ne,e.name)}const HE=Object.freeze(Object.defineProperty({__proto__:null,generate:UE,name:BE,parse:Wl,structure:FE},Symbol.toStringTag,{value:"Module"})),zE="IdSelector",$E={name:String};function Gl(){const e=this.tokenStart;return this.eat(xe),{type:"IdSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e+1)}}function jE(e){this.token(ge,"#"+e.name)}const qE=Object.freeze(Object.defineProperty({__proto__:null,generate:jE,name:zE,parse:Gl,structure:$E},Symbol.toStringTag,{value:"Module"})),YE=46,WE="Layer",GE={name:String};function Vl(){let e=this.tokenStart,t=this.consume(ne);for(;this.isDelim(YE);)this.eat(ge),t+="."+this.consume(ne);return{type:"Layer",loc:this.getLocation(e,this.tokenStart),name:t}}function VE(e){this.tokenize(e.name)}const KE=Object.freeze(Object.defineProperty({__proto__:null,generate:VE,name:WE,parse:Vl,structure:GE},Symbol.toStringTag,{value:"Module"})),XE="LayerList",QE={children:[["Layer"]]};function Kl(){const e=this.createList();for(this.skipSC();!this.eof&&(e.push(this.Layer()),this.lookupTypeNonSC(0)===st);)this.skipSC(),this.next(),this.skipSC();return{type:"LayerList",loc:this.getLocationFromList(e),children:e}}function ZE(e){this.children(e,()=>this.token(st,","))}const JE=Object.freeze(Object.defineProperty({__proto__:null,generate:ZE,name:XE,parse:Kl,structure:QE},Symbol.toStringTag,{value:"Module"})),ey="MediaQuery",ty={modifier:[String,null],mediaType:[String,null],condition:["Condition",null]};function Xl(){const e=this.tokenStart;let t=null,n=null,r=null;if(this.skipSC(),this.tokenType===ne&&this.lookupTypeNonSC(1)!==we){const i=this.consume(ne),s=i.toLowerCase();switch(s==="not"||s==="only"?(this.skipSC(),t=s,n=this.consume(ne)):n=i,this.lookupTypeNonSC(0)){case ne:{this.skipSC(),this.eatIdent("and"),r=this.Condition("media");break}case ze:case Ke:case st:case Yt:break;default:this.error("Identifier or parenthesis is expected")}}else switch(this.tokenType){case ne:case we:case pe:{r=this.Condition("media");break}case ze:case Ke:case Yt:break;default:this.error("Identifier or parenthesis is expected")}return{type:"MediaQuery",loc:this.getLocation(e,this.tokenStart),modifier:t,mediaType:n,condition:r}}function ny(e){e.mediaType?(e.modifier&&this.token(ne,e.modifier),this.token(ne,e.mediaType),e.condition&&(this.token(ne,"and"),this.node(e.condition))):e.condition&&this.node(e.condition)}const ry=Object.freeze(Object.defineProperty({__proto__:null,generate:ny,name:ey,parse:Xl,structure:ty},Symbol.toStringTag,{value:"Module"})),iy="MediaQueryList",sy={children:[["MediaQuery"]]};function Ql(){const e=this.createList();for(this.skipSC();!this.eof&&(e.push(this.MediaQuery()),this.tokenType===st);)this.next();return{type:"MediaQueryList",loc:this.getLocationFromList(e),children:e}}function ay(e){this.children(e,()=>this.token(st,","))}const oy=Object.freeze(Object.defineProperty({__proto__:null,generate:ay,name:iy,parse:Ql,structure:sy},Symbol.toStringTag,{value:"Module"})),uy=38,ly="NestingSelector",cy={};function Zl(){const e=this.tokenStart;return this.eatDelim(uy),{type:"NestingSelector",loc:this.getLocation(e,this.tokenStart)}}function dy(){this.token(ge,"&")}const hy=Object.freeze(Object.defineProperty({__proto__:null,generate:dy,name:ly,parse:Zl,structure:cy},Symbol.toStringTag,{value:"Module"})),fy="Nth",py={nth:["AnPlusB","Identifier"],selector:["SelectorList",null]};function Jl(){this.skipSC();const e=this.tokenStart;let t=e,n=null,r;return this.lookupValue(0,"odd")||this.lookupValue(0,"even")?r=this.Identifier():r=this.AnPlusB(),t=this.tokenStart,this.skipSC(),this.lookupValue(0,"of")&&(this.next(),n=this.SelectorList(),t=this.tokenStart),{type:"Nth",loc:this.getLocation(e,t),nth:r,selector:n}}function my(e){this.node(e.nth),e.selector!==null&&(this.token(ne,"of"),this.node(e.selector))}const gy=Object.freeze(Object.defineProperty({__proto__:null,generate:my,name:fy,parse:Jl,structure:py},Symbol.toStringTag,{value:"Module"})),by="Number",Ey={value:String};function ec(){return{type:"Number",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume(fe)}}function yy(e){this.token(fe,e.value)}const Ty=Object.freeze(Object.defineProperty({__proto__:null,generate:yy,name:by,parse:ec,structure:Ey},Symbol.toStringTag,{value:"Module"})),_y="Operator",wy={value:String};function tc(){const e=this.tokenStart;return this.next(),{type:"Operator",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function ky(e){this.tokenize(e.value)}const Ay=Object.freeze(Object.defineProperty({__proto__:null,generate:ky,name:_y,parse:tc,structure:wy},Symbol.toStringTag,{value:"Module"})),Sy="Parentheses",Cy={children:[[]]};function nc(e,t){const n=this.tokenStart;let r=null;return this.eat(we),r=e.call(this,t),this.eof||this.eat(de),{type:"Parentheses",loc:this.getLocation(n,this.tokenStart),children:r}}function xy(e){this.token(we,"("),this.children(e),this.token(de,")")}const Ny=Object.freeze(Object.defineProperty({__proto__:null,generate:xy,name:Sy,parse:nc,structure:Cy},Symbol.toStringTag,{value:"Module"})),vy="Percentage",Iy={value:String};function rc(){return{type:"Percentage",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(Oe)}}function Oy(e){this.token(Oe,e.value+"%")}const Ly=Object.freeze(Object.defineProperty({__proto__:null,generate:Oy,name:vy,parse:rc,structure:Iy},Symbol.toStringTag,{value:"Module"})),Py="PseudoClassSelector",Ry="function",Dy={name:String,children:[["Raw"],null]};function ic(){const e=this.tokenStart;let t=null,n,r;return this.eat(Ve),this.tokenType===pe?(n=this.consumeFunctionName(),r=n.toLowerCase(),this.lookupNonWSType(0)==de?t=this.createList():hasOwnProperty.call(this.pseudo,r)?(this.skipSC(),t=this.pseudo[r].call(this),this.skipSC()):(t=this.createList(),t.push(this.Raw(null,!1))),this.eat(de)):n=this.consume(ne),{type:"PseudoClassSelector",loc:this.getLocation(e,this.tokenStart),name:n,children:t}}function My(e){this.token(Ve,":"),e.children===null?this.token(ne,e.name):(this.token(pe,e.name+"("),this.children(e),this.token(de,")"))}const By=Object.freeze(Object.defineProperty({__proto__:null,generate:My,name:Py,parse:ic,structure:Dy,walkContext:Ry},Symbol.toStringTag,{value:"Module"})),Fy="PseudoElementSelector",Uy="function",Hy={name:String,children:[["Raw"],null]};function sc(){const e=this.tokenStart;let t=null,n,r;return this.eat(Ve),this.eat(Ve),this.tokenType===pe?(n=this.consumeFunctionName(),r=n.toLowerCase(),this.lookupNonWSType(0)==de?t=this.createList():hasOwnProperty.call(this.pseudo,r)?(this.skipSC(),t=this.pseudo[r].call(this),this.skipSC()):(t=this.createList(),t.push(this.Raw(null,!1))),this.eat(de)):n=this.consume(ne),{type:"PseudoElementSelector",loc:this.getLocation(e,this.tokenStart),name:n,children:t}}function zy(e){this.token(Ve,":"),this.token(Ve,":"),e.children===null?this.token(ne,e.name):(this.token(pe,e.name+"("),this.children(e),this.token(de,")"))}const $y=Object.freeze(Object.defineProperty({__proto__:null,generate:zy,name:Fy,parse:sc,structure:Hy,walkContext:Uy},Symbol.toStringTag,{value:"Module"})),ac=47;function oc(){switch(this.skipSC(),this.tokenType){case fe:return this.Number();case pe:return this.Function(this.readSequence,this.scope.Value);default:this.error("Number of function is expected")}}const jy="Ratio",qy={left:["Number","Function"],right:["Number","Function",null]};function uc(){const e=this.tokenStart,t=oc.call(this);let n=null;return this.skipSC(),this.isDelim(ac)&&(this.eatDelim(ac),n=oc.call(this)),{type:"Ratio",loc:this.getLocation(e,this.tokenStart),left:t,right:n}}function Yy(e){this.node(e.left),this.token(ge,"/"),e.right?this.node(e.right):this.node(fe,1)}const Wy=Object.freeze(Object.defineProperty({__proto__:null,generate:Yy,name:jy,parse:uc,structure:qy},Symbol.toStringTag,{value:"Module"}));function Gy(){return this.tokenIndex>0&&this.lookupType(-1)===Le?this.tokenIndex>1?this.getTokenStart(this.tokenIndex-1):this.firstCharOffset:this.tokenStart}const Vy="Raw",Ky={value:String};function lc(e,t){const n=this.getTokenStart(this.tokenIndex);let r;return this.skipUntilBalanced(this.tokenIndex,e||this.consumeUntilBalanceEnd),t&&this.tokenStart>n?r=Gy.call(this):r=this.tokenStart,{type:"Raw",loc:this.getLocation(n,r),value:this.substring(n,r)}}function Xy(e){this.tokenize(e.value)}const Qy=Object.freeze(Object.defineProperty({__proto__:null,generate:Xy,name:Vy,parse:lc,structure:Ky},Symbol.toStringTag,{value:"Module"}));function cc(){return this.Raw(this.consumeUntilLeftCurlyBracket,!0)}function Zy(){const e=this.SelectorList();return e.type!=="Raw"&&this.eof===!1&&this.tokenType!==ze&&this.error(),e}const Jy="Rule",eT="rule",tT={prelude:["SelectorList","Raw"],block:["Block"]};function dc(){const e=this.tokenIndex,t=this.tokenStart;let n,r;return this.parseRulePrelude?n=this.parseWithFallback(Zy,cc):n=cc.call(this,e),r=this.Block(!0),{type:"Rule",loc:this.getLocation(t,this.tokenStart),prelude:n,block:r}}function nT(e){this.node(e.prelude),this.node(e.block)}const rT=Object.freeze(Object.defineProperty({__proto__:null,generate:nT,name:Jy,parse:dc,structure:tT,walkContext:eT},Symbol.toStringTag,{value:"Module"})),iT="Scope",sT={root:["SelectorList","Raw",null],limit:["SelectorList","Raw",null]};function hc(){let e=null,t=null;this.skipSC();const n=this.tokenStart;return this.tokenType===we&&(this.next(),this.skipSC(),e=this.parseWithFallback(this.SelectorList,()=>this.Raw(!1,!0)),this.skipSC(),this.eat(de)),this.lookupNonWSType(0)===ne&&(this.skipSC(),this.eatIdent("to"),this.skipSC(),this.eat(we),this.skipSC(),t=this.parseWithFallback(this.SelectorList,()=>this.Raw(!1,!0)),this.skipSC(),this.eat(de)),{type:"Scope",loc:this.getLocation(n,this.tokenStart),root:e,limit:t}}function aT(e){e.root&&(this.token(we,"("),this.node(e.root),this.token(de,")")),e.limit&&(this.token(ne,"to"),this.token(we,"("),this.node(e.limit),this.token(de,")"))}const oT=Object.freeze(Object.defineProperty({__proto__:null,generate:aT,name:iT,parse:hc,structure:sT},Symbol.toStringTag,{value:"Module"})),uT="Selector",lT={children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator"]]};function fc(){const e=this.readSequence(this.scope.Selector);return this.getFirstListNode(e)===null&&this.error("Selector is expected"),{type:"Selector",loc:this.getLocationFromList(e),children:e}}function cT(e){this.children(e)}const dT=Object.freeze(Object.defineProperty({__proto__:null,generate:cT,name:uT,parse:fc,structure:lT},Symbol.toStringTag,{value:"Module"})),hT="SelectorList",fT="selector",pT={children:[["Selector","Raw"]]};function pc(){const e=this.createList();for(;!this.eof;){if(e.push(this.Selector()),this.tokenType===st){this.next();continue}break}return{type:"SelectorList",loc:this.getLocationFromList(e),children:e}}function mT(e){this.children(e,()=>this.token(st,","))}const gT=Object.freeze(Object.defineProperty({__proto__:null,generate:mT,name:hT,parse:pc,structure:pT,walkContext:fT},Symbol.toStringTag,{value:"Module"})),Zs=92,mc=34,bT=39;function gc(e){const t=e.length,n=e.charCodeAt(0),r=n===mc||n===bT?1:0,i=r===1&&t>1&&e.charCodeAt(t-1)===n?t-2:t-1;let s="";for(let o=r;o<=i;o++){let a=e.charCodeAt(o);if(a===Zs){if(o===i){o!==t-1&&(s=e.substr(o+1));break}if(a=e.charCodeAt(++o),xt(Zs,a)){const u=o-1,c=En(e,u);o=c-1,s+=Jo(e.substring(u+1,c))}else a===13&&e.charCodeAt(o+1)===10&&o++}else s+=e[o]}return s}function ET(e,t){const r=mc;let i="",s=!1;for(let o=0;o<e.length;o++){const a=e.charCodeAt(o);if(a===0){i+="�";continue}if(a<=31||a===127){i+="\\"+a.toString(16),s=!0;continue}a===r||a===Zs?(i+="\\"+e.charAt(o),s=!1):(s&&(Wt(a)||rn(a))&&(i+=" "),i+=e.charAt(o),s=!1)}return'"'+i+'"'}const yT="String",TT={value:String};function bc(){return{type:"String",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:gc(this.consume(Et))}}function _T(e){this.token(Et,ET(e.value))}const wT=Object.freeze(Object.defineProperty({__proto__:null,generate:_T,name:yT,parse:bc,structure:TT},Symbol.toStringTag,{value:"Module"})),kT=33;function Ec(){return this.Raw(null,!1)}const AT="StyleSheet",ST="stylesheet",CT={children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]};function yc(){const e=this.tokenStart,t=this.createList();let n;for(;!this.eof;){switch(this.tokenType){case Le:this.next();continue;case qe:if(this.charCodeAt(this.tokenStart+2)!==kT){this.next();continue}n=this.Comment();break;case Xn:n=this.CDO();break;case it:n=this.CDC();break;case Be:n=this.parseWithFallback(this.Atrule,Ec);break;default:n=this.parseWithFallback(this.Rule,Ec)}t.push(n)}return{type:"StyleSheet",loc:this.getLocation(e,this.tokenStart),children:t}}function xT(e){this.children(e)}const NT=Object.freeze(Object.defineProperty({__proto__:null,generate:xT,name:AT,parse:yc,structure:CT,walkContext:ST},Symbol.toStringTag,{value:"Module"})),vT="SupportsDeclaration",IT={declaration:"Declaration"};function Tc(){const e=this.tokenStart;this.eat(we),this.skipSC();const t=this.Declaration();return this.eof||this.eat(de),{type:"SupportsDeclaration",loc:this.getLocation(e,this.tokenStart),declaration:t}}function OT(e){this.token(we,"("),this.node(e.declaration),this.token(de,")")}const LT=Object.freeze(Object.defineProperty({__proto__:null,generate:OT,name:vT,parse:Tc,structure:IT},Symbol.toStringTag,{value:"Module"})),PT=42,_c=124;function Js(){this.tokenType!==ne&&this.isDelim(PT)===!1&&this.error("Identifier or asterisk is expected"),this.next()}const RT="TypeSelector",DT={name:String};function wc(){const e=this.tokenStart;return this.isDelim(_c)?(this.next(),Js.call(this)):(Js.call(this),this.isDelim(_c)&&(this.next(),Js.call(this))),{type:"TypeSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}}function MT(e){this.tokenize(e.name)}const BT=Object.freeze(Object.defineProperty({__proto__:null,generate:MT,name:RT,parse:wc,structure:DT},Symbol.toStringTag,{value:"Module"})),kc=43,Ac=45,ea=63;function lr(e,t){let n=0;for(let r=this.tokenStart+e;r<this.tokenEnd;r++){const i=this.charCodeAt(r);if(i===Ac&&t&&n!==0)return lr.call(this,e+n+1,!1),-1;Wt(i)||this.error(t&&n!==0?"Hyphen minus"+(n<6?" or hex digit":"")+" is expected":n<6?"Hex digit is expected":"Unexpected input",r),++n>6&&this.error("Too many hex digits",r)}return this.next(),n}function ni(e){let t=0;for(;this.isDelim(ea);)++t>e&&this.error("Too many question marks"),this.next()}function FT(e){this.charCodeAt(this.tokenStart)!==e&&this.error((e===kc?"Plus sign":"Hyphen minus")+" is expected")}function UT(){let e=0;switch(this.tokenType){case fe:if(e=lr.call(this,1,!0),this.isDelim(ea)){ni.call(this,6-e);break}if(this.tokenType===be||this.tokenType===fe){FT.call(this,Ac),lr.call(this,1,!1);break}break;case be:e=lr.call(this,1,!0),e>0&&ni.call(this,6-e);break;default:if(this.eatDelim(kc),this.tokenType===ne){e=lr.call(this,0,!0),e>0&&ni.call(this,6-e);break}if(this.isDelim(ea)){this.next(),ni.call(this,5);break}this.error("Hex digit or question mark is expected")}}const HT="UnicodeRange",zT={value:String};function Sc(){const e=this.tokenStart;return this.eatIdent("u"),UT.call(this),{type:"UnicodeRange",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function $T(e){this.tokenize(e.value)}const jT=Object.freeze(Object.defineProperty({__proto__:null,generate:$T,name:HT,parse:Sc,structure:zT},Symbol.toStringTag,{value:"Module"})),qT=32,ta=92,YT=34,WT=39,GT=40,Cc=41;function VT(e){const t=e.length;let n=4,r=e.charCodeAt(t-1)===Cc?t-2:t-1,i="";for(;n<r&&rn(e.charCodeAt(n));)n++;for(;n<r&&rn(e.charCodeAt(r));)r--;for(let s=n;s<=r;s++){let o=e.charCodeAt(s);if(o===ta){if(s===r){s!==t-1&&(i=e.substr(s+1));break}if(o=e.charCodeAt(++s),xt(ta,o)){const a=s-1,u=En(e,a);s=u-1,i+=Jo(e.substring(a+1,u))}else o===13&&e.charCodeAt(s+1)===10&&s++}else i+=e[s]}return i}function KT(e){let t="",n=!1;for(let r=0;r<e.length;r++){const i=e.charCodeAt(r);if(i===0){t+="�";continue}if(i<=31||i===127){t+="\\"+i.toString(16),n=!0;continue}i===qT||i===ta||i===YT||i===WT||i===GT||i===Cc?(t+="\\"+e.charAt(r),n=!1):(n&&Wt(i)&&(t+=" "),t+=e.charAt(r),n=!1)}return"url("+t+")"}const XT="Url",QT={value:String};function xc(){const e=this.tokenStart;let t;switch(this.tokenType){case Ge:t=VT(this.consume(Ge));break;case pe:this.cmpStr(this.tokenStart,this.tokenEnd,"url(")||this.error("Function name must be `url`"),this.eat(pe),this.skipSC(),t=gc(this.consume(Et)),this.skipSC(),this.eof||this.eat(de);break;default:this.error("Url or Function is expected")}return{type:"Url",loc:this.getLocation(e,this.tokenStart),value:t}}function ZT(e){this.token(Ge,KT(e.value))}const JT=Object.freeze(Object.defineProperty({__proto__:null,generate:ZT,name:XT,parse:xc,structure:QT},Symbol.toStringTag,{value:"Module"})),e2="Value",t2={children:[[]]};function Nc(){const e=this.tokenStart,t=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(e,this.tokenStart),children:t}}function n2(e){this.children(e)}const r2=Object.freeze(Object.defineProperty({__proto__:null,generate:n2,name:e2,parse:Nc,structure:t2},Symbol.toStringTag,{value:"Module"})),i2=Object.freeze({type:"WhiteSpace",loc:null,value:" "}),s2="WhiteSpace",a2={value:String};function vc(){return this.eat(Le),i2}function o2(e){this.token(Le,e.value)}const Ic=Object.freeze(Object.defineProperty({__proto__:null,AnPlusB:xb,Atrule:Pb,AtrulePrelude:Fb,AttributeSelector:Gb,Block:e1,Brackets:i1,CDC:u1,CDO:h1,ClassSelector:b1,Combinator:A1,Comment:I1,Condition:M1,Declaration:Q1,DeclarationList:nE,Dimension:aE,Feature:dE,FeatureFunction:gE,FeatureRange:wE,Function:xE,GeneralEnclosed:OE,Hash:ME,IdSelector:qE,Identifier:HE,Layer:KE,LayerList:JE,MediaQuery:ry,MediaQueryList:oy,NestingSelector:hy,Nth:gy,Number:Ty,Operator:Ay,Parentheses:Ny,Percentage:Ly,PseudoClassSelector:By,PseudoElementSelector:$y,Ratio:Wy,Raw:Qy,Rule:rT,Scope:oT,Selector:dT,SelectorList:gT,String:wT,StyleSheet:NT,SupportsDeclaration:LT,TypeSelector:BT,UnicodeRange:jT,Url:JT,Value:r2,WhiteSpace:Object.freeze(Object.defineProperty({__proto__:null,generate:o2,name:s2,parse:vc,structure:a2},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"})),u2={generic:!0,cssWideKeywords:Ts,...wb,node:Ic},l2=35,c2=42,Oc=43,d2=45,h2=47,f2=117;function Lc(e){switch(this.tokenType){case xe:return this.Hash();case st:return this.Operator();case we:return this.Parentheses(this.readSequence,e.recognizer);case ot:return this.Brackets(this.readSequence,e.recognizer);case Et:return this.String();case be:return this.Dimension();case Oe:return this.Percentage();case fe:return this.Number();case pe:return this.cmpStr(this.tokenStart,this.tokenEnd,"url(")?this.Url():this.Function(this.readSequence,e.recognizer);case Ge:return this.Url();case ne:return this.cmpChar(this.tokenStart,f2)&&this.cmpChar(this.tokenStart+1,Oc)?this.UnicodeRange():this.Identifier();case ge:{const t=this.charCodeAt(this.tokenStart);if(t===h2||t===c2||t===Oc||t===d2)return this.Operator();t===l2&&this.error("Hex or identifier is expected",this.tokenStart+1);break}}}const p2={getNode:Lc},m2=35,g2=38,b2=42,E2=43,y2=47,Pc=46,T2=62,_2=124,w2=126;function k2(e,t){t.last!==null&&t.last.type!=="Combinator"&&e!==null&&e.type!=="Combinator"&&t.push({type:"Combinator",loc:null,name:" "})}function A2(){switch(this.tokenType){case ot:return this.AttributeSelector();case xe:return this.IdSelector();case Ve:return this.lookupType(1)===Ve?this.PseudoElementSelector():this.PseudoClassSelector();case ne:return this.TypeSelector();case fe:case Oe:return this.Percentage();case be:this.charCodeAt(this.tokenStart)===Pc&&this.error("Identifier is expected",this.tokenStart+1);break;case ge:{switch(this.charCodeAt(this.tokenStart)){case E2:case T2:case w2:case y2:return this.Combinator();case Pc:return this.ClassSelector();case b2:case _2:return this.TypeSelector();case m2:return this.IdSelector();case g2:return this.NestingSelector()}break}}}const S2={onWhiteSpace:k2,getNode:A2};function C2(){return this.createSingleNodeList(this.Raw(null,!1))}function x2(){const e=this.createList();if(this.skipSC(),e.push(this.Identifier()),this.skipSC(),this.tokenType===st){e.push(this.Operator());const t=this.tokenIndex,n=this.parseCustomProperty?this.Value(null):this.Raw(this.consumeUntilExclamationMarkOrSemicolon,!1);if(n.type==="Value"&&n.children.isEmpty){for(let r=t-this.tokenIndex;r<=0;r++)if(this.lookupType(r)===Le){n.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}e.push(n)}return e}function Rc(e){return e!==null&&e.type==="Operator"&&(e.value[e.value.length-1]==="-"||e.value[e.value.length-1]==="+")}const N2=Object.freeze(Object.defineProperty({__proto__:null,AtrulePrelude:p2,Selector:S2,Value:{getNode:Lc,onWhiteSpace(e,t){Rc(e)&&(e.value=" "+e.value),Rc(t.last)&&(t.last.value+=" ")},expression:C2,var:x2}},Symbol.toStringTag,{value:"Module"})),v2=new Set(["none","and","not","or"]),I2={parse:{prelude(){const e=this.createList();if(this.tokenType===ne){const t=this.substring(this.tokenStart,this.tokenEnd);v2.has(t.toLowerCase())||e.push(this.Identifier())}return e.push(this.Condition("container")),e},block(e=!1){return this.Block(e)}}},O2={parse:{prelude:null,block(){return this.Block(!0)}}};function na(e,t){return this.parseWithFallback(()=>{try{return e.call(this)}finally{this.skipSC(),this.lookupNonWSType(0)!==de&&this.error()}},t||(()=>this.Raw(null,!0)))}const Dc={layer(){this.skipSC();const e=this.createList(),t=na.call(this,this.Layer);return(t.type!=="Raw"||t.value!=="")&&e.push(t),e},supports(){this.skipSC();const e=this.createList(),t=na.call(this,this.Declaration,()=>na.call(this,()=>this.Condition("supports")));return(t.type!=="Raw"||t.value!=="")&&e.push(t),e}},L2={container:I2,"font-face":O2,import:{parse:{prelude(){const e=this.createList();switch(this.tokenType){case Et:e.push(this.String());break;case Ge:case pe:e.push(this.Url());break;default:this.error("String or url() is expected")}return this.skipSC(),this.tokenType===ne&&this.cmpStr(this.tokenStart,this.tokenEnd,"layer")?e.push(this.Identifier()):this.tokenType===pe&&this.cmpStr(this.tokenStart,this.tokenEnd,"layer(")&&e.push(this.Function(null,Dc)),this.skipSC(),this.tokenType===pe&&this.cmpStr(this.tokenStart,this.tokenEnd,"supports(")&&e.push(this.Function(null,Dc)),(this.lookupNonWSType(0)===ne||this.lookupNonWSType(0)===we)&&e.push(this.MediaQueryList()),e},block:null}},layer:{parse:{prelude(){return this.createSingleNodeList(this.LayerList())},block(){return this.Block(!1)}}},media:{parse:{prelude(){return this.createSingleNodeList(this.MediaQueryList())},block(e=!1){return this.Block(e)}}},nest:{parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}},page:{parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}},scope:{parse:{prelude(){return this.createSingleNodeList(this.Scope())},block(e=!1){return this.Block(e)}}},"starting-style":{parse:{prelude:null,block(e=!1){return this.Block(e)}}},supports:{parse:{prelude(){return this.createSingleNodeList(this.Condition("supports"))},block(e=!1){return this.Block(e)}}}};function P2(){const e=this.createList();this.skipSC();e:for(;!this.eof;){switch(this.tokenType){case ne:e.push(this.Identifier());break;case Et:e.push(this.String());break;case st:e.push(this.Operator());break;case de:break e;default:this.error("Identifier, string or comma is expected")}this.skipSC()}return e}const an={parse(){return this.createSingleNodeList(this.SelectorList())}},ra={parse(){return this.createSingleNodeList(this.Selector())}},R2={parse(){return this.createSingleNodeList(this.Identifier())}},D2={parse:P2},ri={parse(){return this.createSingleNodeList(this.Nth())}},M2=_b({...u2,...{parseContext:{default:"StyleSheet",stylesheet:"StyleSheet",atrule:"Atrule",atrulePrelude(e){return this.AtrulePrelude(e.atrule?String(e.atrule):null)},mediaQueryList:"MediaQueryList",mediaQuery:"MediaQuery",condition(e){return this.Condition(e.kind)},rule:"Rule",selectorList:"SelectorList",selector:"Selector",block(){return this.Block(!0)},declarationList:"DeclarationList",declaration:"Declaration",value:"Value"},features:{supports:{selector(){return this.Selector()}},container:{style(){return this.Declaration()}}},scope:N2,atrule:L2,pseudo:{dir:R2,has:an,lang:D2,matches:an,is:an,"-moz-any":an,"-webkit-any":an,where:an,not:an,"nth-child":ri,"nth-last-child":ri,"nth-last-of-type":ri,"nth-of-type":ri,slotted:ra,host:ra,"host-context":ra},node:Object.freeze(Object.defineProperty({__proto__:null,AnPlusB:fl,Atrule:ml,AtrulePrelude:gl,AttributeSelector:El,Block:wl,Brackets:kl,CDC:Al,CDO:Sl,ClassSelector:Cl,Combinator:Nl,Comment:vl,Condition:Ol,Declaration:Rl,DeclarationList:Dl,Dimension:Ml,Feature:Bl,FeatureFunction:Fl,FeatureRange:$l,Function:jl,GeneralEnclosed:ql,Hash:Yl,IdSelector:Gl,Identifier:Wl,Layer:Vl,LayerList:Kl,MediaQuery:Xl,MediaQueryList:Ql,NestingSelector:Zl,Nth:Jl,Number:ec,Operator:tc,Parentheses:nc,Percentage:rc,PseudoClassSelector:ic,PseudoElementSelector:sc,Ratio:uc,Raw:lc,Rule:dc,Scope:hc,Selector:fc,SelectorList:pc,String:bc,StyleSheet:yc,SupportsDeclaration:Tc,TypeSelector:wc,UnicodeRange:Sc,Url:xc,Value:Nc,WhiteSpace:vc},Symbol.toStringTag,{value:"Module"}))},...{node:Ic}}),{tokenize:jk,parse:B2,generate:F2,lexer:qk,createLexer:Yk,walk:ii,find:Wk,findLast:Gk,findAll:Vk,toPlainObject:Kk,fromPlainObject:Xk,fork:Qk}=M2;function U2(e){return ia(e).classRules}function ia(e){const t={},n={},r=B2(e,{parseCustomProperty:!0});return ii(r,{visit:"Rule",enter(i){if(i.type!=="Rule"||!i.prelude||!i.block)return;const s={};if(ii(i.block,{visit:"Declaration",enter(a){const u=a.property,c=F2(a.value);s[u]=c}}),Object.keys(s).length===0)return;const o=H2(i.prelude);for(const a of o.classes)t[a]={...t[a],...s};for(const a of o.elements)n[a]={...n[a],...s}}}),{classRules:t,elementRules:n}}function H2(e){const t=[],n=[];return ii(e,{visit:"ClassSelector",enter(r){r.type==="ClassSelector"&&r.name&&t.push(r.name)}}),ii(e,{visit:"TypeSelector",enter(r){r.type==="TypeSelector"&&r.name&&n.push(r.name.toLowerCase())}}),{classes:t,elements:n}}function z2(e,t){const n=am(e,{fragment:!0}),i={type:"root",children:Ft(n.children,"block")};if(t!=null&&t.css){const s=ia(t.css),o=Object.keys(s.classRules).length>0,a=Object.keys(s.elementRules).length>0;(o||a)&&(i.data={...i.data,css:s})}return i}function Ft(e,t){const n=[];for(const r of e)if(r.type==="text"){const i=r.value;(t==="inline"||i.trim())&&n.push({type:"text",value:i})}else if(r.type==="element"){const i=Mc(r,t);i&&(Array.isArray(i)?n.push(...i):n.push(i))}return n}function Mc(e,t){const n=e.tagName.toLowerCase();switch(n){case"p":return si("paragraph",e);case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return $2(e,Number(n[1]));case"blockquote":return si("blockquote",e);case"ul":return Bc(e,!1);case"ol":return Bc(e,!0);case"li":return Fc(e);case"pre":return j2(e);case"table":return q2(e);case"thead":case"tbody":case"tfoot":return Ft(e.children,"block");case"tr":return Uc(e);case"td":case"th":return Hc(e);case"hr":{const r={type:"thematicBreak"};return It(e,r),r}case"br":return{type:"break"};case"img":return Y2(e);case"div":case"section":case"article":case"main":case"header":case"footer":case"nav":case"aside":return si("div",e);case"figure":return si("figure",e);case"figcaption":return W2(e)}if(G2(n)||n==="a")return ai(e);if(n==="code")return{type:"inlineCode",value:oi(e)};if(n==="span")return ai(e);if(t==="block"){const r=Ft(e.children,"block");return r.length===0?null:r.length===1?r[0]:r}else return ai(e)}function si(e,t){const r=e==="paragraph"?"inline":"block",i=Ft(t.children,r),s={type:e,children:i};return on(t,s),It(t,s),s}function $2(e,t){const n=Ft(e.children,"inline"),r={type:"heading",depth:t,children:n};return on(e,r),It(e,r),r}function Bc(e,t){var i,s,o;const n=[];for(const a of e.children)if(a.type==="element"&&a.tagName.toLowerCase()==="li")n.push(Fc(a));else{const u=a.type==="element"?Mc(a,"block"):a.type==="text"&&a.value.trim()?[{type:"text",value:a.value}]:null;if(u){const c=[],d=Array.isArray(u)?u:[u];for(const h of d)aa(h.type)?c.push({type:"paragraph",children:[h]}):c.push(h);if(c.length>0){const h={type:"listItem",children:c};h.data={html:{escapeHatch:!0}},n.push(h)}}}const r={type:"list",ordered:t,children:n};return t&&((i=e.properties)==null?void 0:i.start)!==void 0&&(r.start=Number(e.properties.start)),(s=e.properties)!=null&&s.type&&(r.data={...r.data,html:{...((o=r.data)==null?void 0:o.html)??{},type:String(e.properties.type)}}),on(e,r),It(e,r),r}function Fc(e){const t=Ft(e.children,"block"),n=[];let r=[];const i=()=>{r.length>0&&(n.push({type:"paragraph",children:r}),r=[])};for(const o of t)aa(o.type)?r.push(o):(i(),n.push(o));i();const s={type:"listItem",children:n};return on(e,s),It(e,s),s}function j2(e){var o;const t=e.children.find(a=>a.type==="element"&&a.tagName.toLowerCase()==="code"),n=oi(t||e);let r;if((o=t==null?void 0:t.properties)!=null&&o.className){const a=Array.isArray(t.properties.className)?t.properties.className:[t.properties.className];for(const u of a){const c=String(u).match(/^language-(.+)$/);if(c){r=c[1];break}}}const i={type:"codeBlock",value:n};r&&(i.lang=r);const s=i;return on(e,s),It(e,s),s}function q2(e){const t=[];function n(i){for(const s of i){if(s.type!=="element")continue;const o=s.tagName.toLowerCase();o==="tr"?t.push(Uc(s)):(o==="thead"||o==="tbody"||o==="tfoot")&&n(s.children)}}n(e.children),t.length>0&&!t[0].isHeader&&e.children.find(s=>s.type==="element"&&s.tagName.toLowerCase()==="thead")&&(t[0].isHeader=!0);const r={type:"table",children:t};return on(e,r),It(e,r),r}function Uc(e){const t=[];let n=!0;for(const i of e.children)if(i.type==="element"){const s=i.tagName.toLowerCase();(s==="td"||s==="th")&&(t.push(Hc(i)),s!=="th"&&(n=!1))}const r={type:"tableRow",children:t};return n&&(r.isHeader=!0),It(e,r),r}function Hc(e,t){var a,u;const n=Ft(e.children,"block"),r=[];let i=[];const s=()=>{i.length>0&&(r.push({type:"paragraph",children:i}),i=[])};for(const c of n)aa(c.type)?i.push(c):(s(),r.push(c));s();const o={type:"tableCell",children:r};return(a=e.properties)!=null&&a.colSpan&&Number(e.properties.colSpan)>1&&(o.colspan=Number(e.properties.colSpan)),(u=e.properties)!=null&&u.rowSpan&&Number(e.properties.rowSpan)>1&&(o.rowspan=Number(e.properties.rowSpan)),It(e,o),o}function Y2(e){var n,r,i;const t={type:"image",url:String(((n=e.properties)==null?void 0:n.src)??"")};return(r=e.properties)!=null&&r.alt&&(t.alt=String(e.properties.alt)),(i=e.properties)!=null&&i.title&&(t.title=String(e.properties.title)),on(e,t),It(e,t),t}function W2(e){return{type:"figCaption",children:Ft(e.children,"inline")}}const sa={strong:()=>({type:"strong"}),b:()=>({type:"strong"}),em:()=>({type:"emphasis"}),i:()=>({type:"emphasis"}),u:()=>({type:"underline"}),del:()=>({type:"strikethrough"}),s:()=>({type:"strikethrough"}),sup:()=>({type:"superscript"}),sub:()=>({type:"subscript"}),mark:()=>({type:"highlight"})};function G2(e){return e in sa}function ai(e){var i,s,o,a,u,c,d,h;const t=e.tagName.toLowerCase();let n;if(t==="a"){const m={url:String(((i=e.properties)==null?void 0:i.href)??"")};if((s=e.properties)!=null&&s.title&&(m.title=String(e.properties.title)),(o=e.properties)!=null&&o.id&&(m.id=String(e.properties.id)),(a=e.properties)!=null&&a.name&&(m.name=String(e.properties.name)),(u=e.properties)!=null&&u.className){const f=Array.isArray(e.properties.className)?e.properties.className.map(String):[String(e.properties.className)];f.length>0&&(m.className=f)}for(const[f,b]of Object.entries(e.properties??{}))f.startsWith("data")&&f!=="data"&&!(f in m)&&(m[f]=b);n={type:"link",attrs:m}}else if(sa[t])n=sa[t]();else if(t==="span"){const m=(c=e.properties)!=null&&c.className?Array.isArray(e.properties.className)?e.properties.className.map(String):[String(e.properties.className)]:[],f=(d=e.properties)!=null&&d.style?String(e.properties.style):void 0,b=(h=e.properties)!=null&&h.id?String(e.properties.id):void 0;if(m.length>0||f||b){const g={};m.length>0&&(g.className=m),f&&(g.style=f),b&&(g.id=b);for(const[_,p]of Object.entries(e.properties??{}))_.startsWith("data")&&_!=="data"&&(g[_]=p);n={type:"custom",attrs:g}}}const r=Ft(e.children,"inline");return n?r.map(m=>V2(m,n)):r}function V2(e,t){if(e.type==="text"){const n=e,r=n.marks??[];return{...n,marks:[...r,t]}}return e}function oi(e){let t="";for(const n of e.children)n.type==="text"?t+=n.value:n.type==="element"&&(t+=oi(n));return t}function aa(e){return["text","break","image","footnoteReference","inlineCode","inlineMath"].includes(e)}function on(e,t){var n;if((n=e.properties)!=null&&n.className){const r=Array.isArray(e.properties.className)?e.properties.className.map(String):[String(e.properties.className)];r.length>0&&(t.classes=r)}}function It(e,t){const n={};if(e.properties){for(const[r,i]of Object.entries(e.properties))["className","src","href","alt","title","colSpan","rowSpan","start"].includes(r)||(r==="id"||r.startsWith("data")||r==="style"||r.startsWith("aria")||r==="role")&&(n[r]=i);Object.keys(n).length>0&&(t.data={...t.data,html:n})}}const K2=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],zc={}.hasOwnProperty;function X2(e,t){const n=t||{};function r(i,...s){let o=r.invalid;const a=r.handlers;if(i&&zc.call(i,e)){const u=String(i[e]);o=zc.call(a,u)?a[u]:r.unknown}if(o)return o.call(this,i,...s)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const Q2=/["&'<>`]/g,Z2=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,J2=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,e_=/[|\\{}()[\]^$+*?.]/g,$c=new WeakMap;function t_(e,t){if(e=e.replace(t.subset?n_(t.subset):Q2,r),t.subset||t.escapeOnly)return e;return e.replace(Z2,n).replace(J2,r);function n(i,s,o){return t.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,o.charCodeAt(s+2),t)}function r(i,s,o){return t.format(i.charCodeAt(0),o.charCodeAt(s+1),t)}}function n_(e){let t=$c.get(e);return t||(t=r_(e),$c.set(e,t)),t}function r_(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(e_,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const i_=/[\dA-Fa-f]/;function s_(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!i_.test(String.fromCharCode(t))?r:r+";"}const a_=/\d/;function o_(e,t,n){const r="&#"+String(e);return n&&t&&!a_.test(String.fromCharCode(t))?r:r+";"}const u_=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],oa={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},l_=["cent","copy","divide","gt","lt","not","para","times"],jc={}.hasOwnProperty,ua={};let ui;for(ui in oa)jc.call(oa,ui)&&(ua[oa[ui]]=ui);const c_=/[^\dA-Za-z]/;function d_(e,t,n,r){const i=String.fromCharCode(e);if(jc.call(ua,i)){const s=ua[i],o="&"+s;return n&&u_.includes(s)&&!l_.includes(s)&&(!r||t&&t!==61&&c_.test(String.fromCharCode(t)))?o:o+";"}return""}function h_(e,t,n){let r=s_(e,t,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=d_(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){const s=o_(e,t,n.omitOptionalSemicolons);s.length<r.length&&(r=s)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}function xn(e,t){return t_(e,Object.assign({format:h_},t))}const f_=/^>|^->|<!--|-->|--!>|<!-$/g,p_=[">"],m_=["<",">"];function g_(e,t,n,r){return r.settings.bogusComments?"<?"+xn(e.value,Object.assign({},r.settings.characterReferences,{subset:p_}))+">":"<!--"+e.value.replace(f_,i)+"-->";function i(s){return xn(s,Object.assign({},r.settings.characterReferences,{subset:m_}))}}function b_(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function qc(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}const E_=/[ \t\n\f\r]/g;function la(e){return typeof e=="object"?e.type==="text"?Yc(e.value):!1:Yc(e)}function Yc(e){return e.replace(E_,"")===""}const Fe=Gc(1),Wc=Gc(-1),y_=[];function Gc(e){return t;function t(n,r,i){const s=n?n.children:y_;let o=(r||0)+e,a=s[o];if(!i)for(;a&&la(a);)o+=e,a=s[o];return a}}const T_={}.hasOwnProperty;function Vc(e){return t;function t(n,r,i){return T_.call(e,n.tagName)&&e[n.tagName](n,r,i)}}const ca=Vc({body:w_,caption:da,colgroup:da,dd:C_,dt:S_,head:da,html:__,li:A_,optgroup:x_,option:N_,p:k_,rp:Kc,rt:Kc,tbody:I_,td:Xc,tfoot:O_,th:Xc,thead:v_,tr:L_});function da(e,t,n){const r=Fe(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&la(r.value.charAt(0)))}function __(e,t,n){const r=Fe(n,t);return!r||r.type!=="comment"}function w_(e,t,n){const r=Fe(n,t);return!r||r.type!=="comment"}function k_(e,t,n){const r=Fe(n,t);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function A_(e,t,n){const r=Fe(n,t);return!r||r.type==="element"&&r.tagName==="li"}function S_(e,t,n){const r=Fe(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function C_(e,t,n){const r=Fe(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function Kc(e,t,n){const r=Fe(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function x_(e,t,n){const r=Fe(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function N_(e,t,n){const r=Fe(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function v_(e,t,n){const r=Fe(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function I_(e,t,n){const r=Fe(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function O_(e,t,n){return!Fe(n,t)}function L_(e,t,n){const r=Fe(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function Xc(e,t,n){const r=Fe(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const P_=Vc({body:M_,colgroup:B_,head:D_,html:R_,tbody:F_});function R_(e){const t=Fe(e,-1);return!t||t.type!=="comment"}function D_(e){const t=new Set;for(const r of e.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(t.has(r.tagName))return!1;t.add(r.tagName)}const n=e.children[0];return!n||n.type==="element"}function M_(e){const t=Fe(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&la(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function B_(e,t,n){const r=Wc(n,t),i=Fe(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&ca(r,n.children.indexOf(r),n)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function F_(e,t,n){const r=Wc(n,t),i=Fe(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&ca(r,n.children.indexOf(r),n)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const li={name:[[`
14
14
  \f\r &/=>`.split(""),`
15
15
  \f\r "&'/=>\``.split("")],[`\0
16
16
  \f\r "&'/<=>`.split(""),`\0
@@ -18,11 +18,11 @@
18
18
  \f\r &>`.split(""),`\0
19
19
  \f\r "&'<=>\``.split("")],[`\0
20
20
  \f\r "&'<=>\``.split(""),`\0
21
- \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function T_(e,t,n,r){const i=r.schema,s=i.space==="svg"?!1:r.settings.omitOptionalTags;let o=i.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const a=[];let u;i.space==="html"&&e.tagName==="svg"&&(r.schema=Pn);const c=__(r,e.properties),d=r.all(i.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=i,d&&(o=!1),(c||!s||!p_(e,t,n))&&(a.push("<",e.tagName,c?" "+c:""),o&&(i.space==="svg"||r.settings.closeSelfClosing)&&(u=c.charAt(c.length-1),(!r.settings.tightSelfClosing||u==="/"||u&&u!=='"'&&u!=="'")&&a.push(" "),a.push("/")),a.push(">")),a.push(d),!o&&(!s||!ta(e,t,n))&&a.push("</"+e.tagName+">"),a.join("")}function __(e,t){const n=[];let r=-1,i;if(t){for(i in t)if(t[i]!==null&&t[i]!==void 0){const s=k_(e,i,t[i]);s&&n.push(s)}}for(;++r<n.length;){const s=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&s!=='"'&&s!=="'"&&(n[r]+=" ")}return n.join("")}function k_(e,t,n){const r=Si(e.schema,t),i=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,s=e.settings.allowDangerousCharacters?0:1;let o=e.quote,a;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!="string"||n===r.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const u=xn(r.attribute,Object.assign({},e.settings.characterReferences,{subset:ii.name[i][s]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?Ih:Oh)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?u:(e.settings.preferUnquoted&&(a=xn(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:ii.unquoted[i][s]}))),a!==n&&(e.settings.quoteSmart&&Pc(n,o)>Pc(n,e.alternative)&&(o=e.alternative),a=o+xn(n,Object.assign({},e.settings.characterReferences,{subset:(o==="'"?ii.single:ii.double)[i][s],attribute:!0}))+o),u+(a&&"="+a))}const w_=["<","&"];function zc(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:xn(e.value,Object.assign({},r.settings.characterReferences,{subset:w_}))}function A_(e,t,n,r){return r.settings.allowDangerousHtml?e.value:zc(e,t,n,r)}function S_(e,t,n,r){return r.all(e)}const C_=O2("type",{invalid:x_,unknown:N_,handlers:{comment:Q2,doctype:Z2,element:T_,raw:A_,root:S_,text:zc}});function x_(e){throw new Error("Expected node, not `"+e+"`")}function N_(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const I_={},v_={},O_=[];function L_(e,t){const n=I_,r=n.quote||'"',i=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:R_,all:P_,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||v2,characterReferences:n.characterReferences||v_,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?Pn:cr,quote:r,alternative:i}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function R_(e,t,n){return C_(e,t,n,this)}function P_(e){const t=[],n=e&&e.children||O_;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function Bt(e,t){const n=(t==null?void 0:t.restoreAttributes)!==!1,r={type:"root",children:e.children.map(s=>It(s,n))},i=L_(r);return t!=null&&t.prettyPrint?D_(i):i}function D_(e){const t=new Set(["html","head","body","div","section","article","nav","aside","header","footer","main","ul","ol","table","thead","tbody","tfoot","tr","blockquote","figure"]),n=new Set(["p","h1","h2","h3","h4","h5","h6","li","td","th","figcaption","pre"]),r=new Set(["hr","br","img","input","meta","link"]);let i=0,s="",o=0;for(;o<e.length;)if(e[o]==="<"){const a=e.indexOf(">",o);if(a===-1){s+=e.slice(o);break}const u=e.slice(o,a+1),c=u[1]==="/",d=u[a-o-1]==="/",h=u.match(/^<\/?([a-zA-Z][a-zA-Z0-9]*)/),b=h?h[1].toLowerCase():"";t.has(b)?c?(i=Math.max(0,i-1),s+=`
21
+ \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function U_(e,t,n,r){const i=r.schema,s=i.space==="svg"?!1:r.settings.omitOptionalTags;let o=i.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const a=[];let u;i.space==="html"&&e.tagName==="svg"&&(r.schema=Fn);const c=H_(r,e.properties),d=r.all(i.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=i,d&&(o=!1),(c||!s||!P_(e,t,n))&&(a.push("<",e.tagName,c?" "+c:""),o&&(i.space==="svg"||r.settings.closeSelfClosing)&&(u=c.charAt(c.length-1),(!r.settings.tightSelfClosing||u==="/"||u&&u!=='"'&&u!=="'")&&a.push(" "),a.push("/")),a.push(">")),a.push(d),!o&&(!s||!ca(e,t,n))&&a.push("</"+e.tagName+">"),a.join("")}function H_(e,t){const n=[];let r=-1,i;if(t){for(i in t)if(t[i]!==null&&t[i]!==void 0){const s=z_(e,i,t[i]);s&&n.push(s)}}for(;++r<n.length;){const s=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&s!=='"'&&s!=="'"&&(n[r]+=" ")}return n.join("")}function z_(e,t,n){const r=Ri(e.schema,t),i=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,s=e.settings.allowDangerousCharacters?0:1;let o=e.quote,a;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!="string"||n===r.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const u=xn(r.attribute,Object.assign({},e.settings.characterReferences,{subset:li.name[i][s]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?Vh:Xh)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?u:(e.settings.preferUnquoted&&(a=xn(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:li.unquoted[i][s]}))),a!==n&&(e.settings.quoteSmart&&qc(n,o)>qc(n,e.alternative)&&(o=e.alternative),a=o+xn(n,Object.assign({},e.settings.characterReferences,{subset:(o==="'"?li.single:li.double)[i][s],attribute:!0}))+o),u+(a&&"="+a))}const $_=["<","&"];function Qc(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:xn(e.value,Object.assign({},r.settings.characterReferences,{subset:$_}))}function j_(e,t,n,r){return r.settings.allowDangerousHtml?e.value:Qc(e,t,n,r)}function q_(e,t,n,r){return r.all(e)}const Y_=X2("type",{invalid:W_,unknown:G_,handlers:{comment:g_,doctype:b_,element:U_,raw:j_,root:q_,text:Qc}});function W_(e){throw new Error("Expected node, not `"+e+"`")}function G_(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const V_={},K_={},X_=[];function Q_(e,t){const n=V_,r=n.quote||'"',i=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:Z_,all:J_,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||K2,characterReferences:n.characterReferences||K_,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?Fn:mr,quote:r,alternative:i}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function Z_(e,t,n){return Y_(e,t,n,this)}function J_(e){const t=[],n=e&&e.children||X_;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function Ut(e,t){const n=(t==null?void 0:t.restoreAttributes)!==!1,r={type:"root",children:e.children.map(s=>Ot(s,n))},i=Q_(r);return t!=null&&t.prettyPrint?ew(i):i}function ew(e){const t=new Set(["html","head","body","div","section","article","nav","aside","header","footer","main","ul","ol","table","thead","tbody","tfoot","tr","blockquote","figure"]),n=new Set(["p","h1","h2","h3","h4","h5","h6","li","td","th","figcaption","pre"]),r=new Set(["hr","br","img","input","meta","link"]);let i=0,s="",o=0;for(;o<e.length;)if(e[o]==="<"){const a=e.indexOf(">",o);if(a===-1){s+=e.slice(o);break}const u=e.slice(o,a+1),c=u[1]==="/",d=u[a-o-1]==="/",h=u.match(/^<\/?([a-zA-Z][a-zA-Z0-9]*)/),m=h?h[1].toLowerCase():"";t.has(m)?c?(i=Math.max(0,i-1),s+=`
22
22
  `+" ".repeat(i)+u):(s+=`
23
- `+" ".repeat(i)+u,d||i++):n.has(b)?c?s+=u:s+=`
24
- `+" ".repeat(i)+u:r.has(b)?s+=`
25
- `+" ".repeat(i)+u:s+=u,o=a+1}else{const a=e.indexOf("<",o),u=a===-1?e.slice(o):e.slice(o,a);u.trim()&&(s+=u),o=a===-1?e.length:a}return s.trim()}function It(e,t){switch(e.type){case"paragraph":return on("p",e,t);case"heading":return M_(e,t);case"blockquote":return on("blockquote",e,t);case"list":return B_(e,t);case"listItem":return F_(e,t);case"codeBlock":return U_(e,t);case"table":return on("table",e,t);case"tableRow":return H_(e,t);case"tableCell":return $c(e,t);case"thematicBreak":{const n={type:"element",tagName:"hr",properties:{},children:[]};return Ft(e,n,t),n}case"break":return{type:"element",tagName:"br",properties:{},children:[]};case"image":return z_(e,t);case"div":return on("div",e,t);case"figure":return on("figure",e,t);case"figCaption":return on("figcaption",e,t);case"html":return{type:"text",value:e.value};case"text":return q_(e);case"inlineCode":return $_(e);default:return On(e)?{type:"text",value:e.value}:Ae(e)?on("div",e,t):{type:"text",value:""}}}function on(e,t,n,r){const i={type:"element",tagName:e,properties:{},children:t.children.map(s=>It(s,n))};return Ft(t,i,n),i}function M_(e,t){const n={type:"element",tagName:`h${e.depth}`,properties:{},children:e.children.map(r=>It(r,t))};return Ft(e,n,t),n}function B_(e,t){var s;const n=e.ordered?"ol":"ul",r=[];for(const o of e.children)if(o.type==="listItem"&&((s=o.data)!=null&&s.html)&&o.data.html.escapeHatch)for(const a of o.children)r.push(It(a,t));else r.push(It(o,t));const i={type:"element",tagName:n,properties:{},children:r};return e.ordered&&e.start!==void 0&&e.start!==1&&(i.properties.start=e.start),Ft(e,i,t),i}function F_(e,t){let n;e.children.length===1&&e.children[0].type==="paragraph"?n=e.children[0].children.map(s=>It(s,t)):n=e.children.map(i=>It(i,t));const r={type:"element",tagName:"li",properties:{},children:n};return Ft(e,r,t),r}function U_(e,t){const n={};e.lang&&(n.className=[`language-${e.lang}`]);const r={type:"element",tagName:"code",properties:n,children:[{type:"text",value:e.value}]},i={type:"element",tagName:"pre",properties:{},children:[r]};return Ft(e,i,t),i}function H_(e,t){const n=e.isHeader===!0,r={type:"element",tagName:"tr",properties:{},children:e.children.map(i=>i.type==="tableCell"?$c(i,t,n):It(i,t))};return Ft(e,r,t),r}function $c(e,t,n=!1){const r=n?"th":"td",i={};e.colspan&&e.colspan>1&&(i.colSpan=e.colspan),e.rowspan&&e.rowspan>1&&(i.rowSpan=e.rowspan);let s;e.children.length===1&&e.children[0].type==="paragraph"?s=e.children[0].children.map(u=>It(u,t)):s=e.children.map(a=>It(a,t));const o={type:"element",tagName:r,properties:i,children:s};return Ft(e,o,t),o}function z_(e,t){const n={src:e.url};e.alt&&(n.alt=e.alt),e.title&&(n.title=e.title);const r={type:"element",tagName:"img",properties:n,children:[]};return Ft(e,r,t),r}function $_(e,t){return{type:"element",tagName:"code",properties:{},children:[{type:"text",value:e.value}]}}const j_={strong:"strong",emphasis:"em",underline:"u",strikethrough:"del",superscript:"sup",subscript:"sub",highlight:"mark",code:"code"};function q_(e,t){var s,o,a,u,c,d,h,b;const n={type:"text",value:e.value};if(!e.marks||e.marks.length===0)return n;let r=n;const i=[...e.marks].sort((f,m)=>f.type==="link"?1:m.type==="link"?-1:0);for(const f of i)if(f.type==="link"){const m={};(s=f.attrs)!=null&&s.url&&(m.href=String(f.attrs.url)),(o=f.attrs)!=null&&o.title&&(m.title=String(f.attrs.title)),(a=f.attrs)!=null&&a.id&&(m.id=String(f.attrs.id)),(u=f.attrs)!=null&&u.name&&(m.name=String(f.attrs.name)),(c=f.attrs)!=null&&c.className&&(m.className=f.attrs.className);for(const[g,_]of Object.entries(f.attrs??{}))g.startsWith("data")&&g!=="data"&&(m[g]=_);r={type:"element",tagName:"a",properties:m,children:[r]}}else if(f.type==="custom"){const m={};(d=f.attrs)!=null&&d.className&&(m.className=f.attrs.className),(h=f.attrs)!=null&&h.style&&(m.style=String(f.attrs.style)),(b=f.attrs)!=null&&b.id&&(m.id=String(f.attrs.id));for(const[g,_]of Object.entries(f.attrs??{}))g.startsWith("data")&&g!=="data"&&(m[g]=_);r={type:"element",tagName:"span",properties:m,children:[r]}}else{const m=j_[f.type];m&&(r={type:"element",tagName:m,properties:{},children:[r]})}return r}function Ft(e,t,n){var r,i;if((r=e.classes)!=null&&r.length&&(t.properties.className=e.classes),n&&((i=e.data)!=null&&i.html)){const s=e.data.html;for(const[o,a]of Object.entries(s))t.properties[o]=a}}const Xt={ins:"background-color: #d4edda; text-decoration: none;",del:"background-color: #f8d7da; text-decoration: line-through;",mod:"background-color: #fff3cd;",move:"background-color: #d1ecf1;"};function Y_(e,t,n,r){const i=(r==null?void 0:r.side)??"merged",s=(r==null?void 0:r.inlineStyles)!==!1,o=(r==null?void 0:r.insClass)??"diff-ins",a=(r==null?void 0:r.delClass)??"diff-del",u=(r==null?void 0:r.modClass)??"diff-mod",c=(r==null?void 0:r.moveClass)??"diff-move",d=new Map;for(const m of n.operations){const g="path"in m?lt(m.path):"to"in m?lt(m.to):null;if(g){const _=d.get(g)??[];_.push(m),d.set(g,_)}if(m.type==="delete"){const _=lt(m.path),p=d.get(_)??[];p.push(m),d.set(_,p)}if(m.type==="move"){const _=lt(m.from),p=d.get(_)??[];p.push(m),d.set(_,p)}}const h=[],b=n.operations.filter(m=>m.type==="delete"),f=n.operations.filter(m=>m.type==="insert");return(i==="old"||i==="merged")&&h.push(jc(e,[],d,{role:"old",inlineStyles:s,insClass:o,delClass:a})),i==="merged"&&(b.length>0||f.length>0||n.operations.some(m=>m.type==="updateText"))&&(h.length=0,h.push(W_(e,t,n,{inlineStyles:s,insClass:o,delClass:a,modClass:u,moveClass:c}))),i==="new"&&(h.length=0,h.push(jc(t,[],d,{role:"new",inlineStyles:s,insClass:o,delClass:a}))),h.join("")}function W_(e,t,n,r){const i=new Map,s=new Set,o=new Set,a=new Set,u=new Set,c=new Map;for(const m of n.operations)switch(m.type){case"updateText":i.set(lt(m.path),m.changes);break;case"insert":s.add(lt(m.path));break;case"delete":o.add(lt(m.path));break;case"move":a.add(lt(m.to)),u.add(lt(m.from));break;case"update":c.set(lt(m.path),m.properties.new);break}function d(m,g,_=!1){const p=lt(g);if(s.has(p)){const y=Bt({children:[m]});return Nn("ins",y,r.insClass,r.inlineStyles?Xt.ins:void 0,{"data-diff":"insert","data-path":p})}if(a.has(p)){const y=Bt({children:[m]});return Nn("span",y,r.moveClass,r.inlineStyles?Xt.move:void 0,{"data-diff":"move","data-path":p,title:"Moved"})}if(c.has(p)){const y=Bt({children:[m]});return Nn("span",y,r.modClass,r.inlineStyles?Xt.mod:void 0,{"data-diff":"update","data-path":p})}if(Zt(m)&&i.has(p)){const y=i.get(p);return qc(y,r)}if(Ae(m)){let y=Yc(m);const C=Wc(m);m.type==="tableCell"&&_&&(y="th");const O=m.type==="tableRow"&&m.isHeader===!0,D=(m.type==="listItem"||m.type==="tableCell")&&m.children.length===1&&m.children[0].type==="paragraph";let B;if(D?B=m.children[0].children.map((S,k)=>d(S,[...g,0,k],O)).join(""):B=m.children.map((A,S)=>d(A,[...g,S],O)).join(""),y){const A=Object.entries(C).map(([S,k])=>` ${S}="${ia(String(k))}"`).join("");return G_(y)?`<${y}${A}>`:`<${y}${A}>${B}</${y}>`}return B}return Bt({children:[m]})}function h(){const m=[];for(const g of n.operations)if(g.type==="delete"){const _=Bt({children:[g.node]});m.push(Nn("del",_,r.delClass,r.inlineStyles?Xt.del:void 0,{"data-diff":"delete","data-path":lt(g.path)}))}return m.join("")}let b=t.children.map((m,g)=>d(m,[g])).join("");const f=h();return f&&(b+=f),b}function jc(e,t,n,r){function i(s,o){const a=lt(o),u=n.get(a)??[];for(const c of u){if(c.type==="delete"&&r.role==="old"){const d=Bt({children:[s]});return Nn("del",d,r.delClass,r.inlineStyles?Xt.del:void 0,{"data-diff":"delete"})}if(c.type==="insert"&&r.role==="new"){const d=Bt({children:[s]});return Nn("ins",d,r.insClass,r.inlineStyles?Xt.ins:void 0,{"data-diff":"insert"})}if(c.type==="updateText")return qc(c.changes,r)}if(Ae(s)){const c=s.children.map((h,b)=>i(h,[...o,b])).join(""),d=Yc(s);if(d){const h=Wc(s),b=Object.entries(h).map(([f,m])=>` ${f}="${ia(String(m))}"`).join("");return`<${d}${b}>${c}</${d}>`}return c}return Bt({children:[s]})}return e.children.map((s,o)=>i(s,[o])).join("")}function qc(e,t){return e.map(n=>{switch(n.type){case"equal":return ra(n.value);case"delete":return`<del class="${t.delClass}"${t.inlineStyles?` style="${Xt.del}"`:""}>${ra(n.value)}</del>`;case"insert":return`<ins class="${t.insClass}"${t.inlineStyles?` style="${Xt.ins}"`:""}>${ra(n.value)}</ins>`}}).join("")}function lt(e){return e.join(",")}function Nn(e,t,n,r,i){let s=` class="${n}"`;if(r&&(s+=` style="${r}"`),i)for(const[o,a]of Object.entries(i))s+=` ${o}="${ia(a)}"`;return`<${e}${s}>${t}</${e}>`}function ra(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function ia(e){return e.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function G_(e){return["hr","br","img","input"].includes(e)}function Yc(e){switch(e.type){case"root":return null;case"paragraph":return"p";case"heading":return`h${e.depth}`;case"blockquote":return"blockquote";case"list":return e.ordered?"ol":"ul";case"listItem":return"li";case"codeBlock":return"pre";case"table":return"table";case"tableRow":return"tr";case"tableCell":return"td";case"thematicBreak":return"hr";case"div":return"div";case"figure":return"figure";case"figCaption":return"figcaption";case"break":return"br";case"image":return"img";default:return null}}function Wc(e){var n,r;const t={};if((n=e.classes)!=null&&n.length&&(t.class=e.classes.join(" ")),e.type==="image"&&(t.src=e.url??"",e.alt&&(t.alt=e.alt)),e.type==="list"&&e.ordered&&e.start&&(t.start=String(e.start)),(r=e.data)!=null&&r.html){const i=e.data.html;i.id&&(t.id=String(i.id))}return t}function si(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var sa={exports:{}};/*!
23
+ `+" ".repeat(i)+u,d||i++):n.has(m)?c?s+=u:s+=`
24
+ `+" ".repeat(i)+u:r.has(m)?s+=`
25
+ `+" ".repeat(i)+u:s+=u,o=a+1}else{const a=e.indexOf("<",o),u=a===-1?e.slice(o):e.slice(o,a);u.trim()&&(s+=u),o=a===-1?e.length:a}return s.trim()}function Ot(e,t){switch(e.type){case"paragraph":return un("p",e,t);case"heading":return tw(e,t);case"blockquote":return un("blockquote",e,t);case"list":return nw(e,t);case"listItem":return rw(e,t);case"codeBlock":return iw(e,t);case"table":return un("table",e,t);case"tableRow":return sw(e,t);case"tableCell":return Zc(e,t);case"thematicBreak":{const n={type:"element",tagName:"hr",properties:{},children:[]};return Ht(e,n,t),n}case"break":return{type:"element",tagName:"br",properties:{},children:[]};case"image":return aw(e,t);case"div":return un("div",e,t);case"figure":return un("figure",e,t);case"figCaption":return un("figcaption",e,t);case"html":return{type:"text",value:e.value};case"text":return lw(e);case"inlineCode":return ow(e);default:return Dn(e)?{type:"text",value:e.value}:Te(e)?un("div",e,t):{type:"text",value:""}}}function un(e,t,n,r){const i={type:"element",tagName:e,properties:{},children:t.children.map(s=>Ot(s,n))};return Ht(t,i,n),i}function tw(e,t){const n={type:"element",tagName:`h${e.depth}`,properties:{},children:e.children.map(r=>Ot(r,t))};return Ht(e,n,t),n}function nw(e,t){var s;const n=e.ordered?"ol":"ul",r=[];for(const o of e.children)if(o.type==="listItem"&&((s=o.data)!=null&&s.html)&&o.data.html.escapeHatch)for(const a of o.children)r.push(Ot(a,t));else r.push(Ot(o,t));const i={type:"element",tagName:n,properties:{},children:r};return e.ordered&&e.start!==void 0&&e.start!==1&&(i.properties.start=e.start),Ht(e,i,t),i}function rw(e,t){let n;e.children.length===1&&e.children[0].type==="paragraph"?n=e.children[0].children.map(s=>Ot(s,t)):n=e.children.map(i=>Ot(i,t));const r={type:"element",tagName:"li",properties:{},children:n};return Ht(e,r,t),r}function iw(e,t){const n={};e.lang&&(n.className=[`language-${e.lang}`]);const r={type:"element",tagName:"code",properties:n,children:[{type:"text",value:e.value}]},i={type:"element",tagName:"pre",properties:{},children:[r]};return Ht(e,i,t),i}function sw(e,t){const n=e.isHeader===!0,r={type:"element",tagName:"tr",properties:{},children:e.children.map(i=>i.type==="tableCell"?Zc(i,t,n):Ot(i,t))};return Ht(e,r,t),r}function Zc(e,t,n=!1){const r=n?"th":"td",i={};e.colspan&&e.colspan>1&&(i.colSpan=e.colspan),e.rowspan&&e.rowspan>1&&(i.rowSpan=e.rowspan);let s;e.children.length===1&&e.children[0].type==="paragraph"?s=e.children[0].children.map(u=>Ot(u,t)):s=e.children.map(a=>Ot(a,t));const o={type:"element",tagName:r,properties:i,children:s};return Ht(e,o,t),o}function aw(e,t){const n={src:e.url};e.alt&&(n.alt=e.alt),e.title&&(n.title=e.title);const r={type:"element",tagName:"img",properties:n,children:[]};return Ht(e,r,t),r}function ow(e,t){return{type:"element",tagName:"code",properties:{},children:[{type:"text",value:e.value}]}}const uw={strong:"strong",emphasis:"em",underline:"u",strikethrough:"del",superscript:"sup",subscript:"sub",highlight:"mark",code:"code"};function lw(e,t){var s,o,a,u,c,d,h,m;const n={type:"text",value:e.value};if(!e.marks||e.marks.length===0)return n;let r=n;const i=[...e.marks].sort((f,b)=>f.type==="link"?1:b.type==="link"?-1:0);for(const f of i)if(f.type==="link"){const b={};(s=f.attrs)!=null&&s.url&&(b.href=String(f.attrs.url)),(o=f.attrs)!=null&&o.title&&(b.title=String(f.attrs.title)),(a=f.attrs)!=null&&a.id&&(b.id=String(f.attrs.id)),(u=f.attrs)!=null&&u.name&&(b.name=String(f.attrs.name)),(c=f.attrs)!=null&&c.className&&(b.className=f.attrs.className);for(const[g,_]of Object.entries(f.attrs??{}))g.startsWith("data")&&g!=="data"&&(b[g]=_);r={type:"element",tagName:"a",properties:b,children:[r]}}else if(f.type==="custom"){const b={};(d=f.attrs)!=null&&d.className&&(b.className=f.attrs.className),(h=f.attrs)!=null&&h.style&&(b.style=String(f.attrs.style)),(m=f.attrs)!=null&&m.id&&(b.id=String(f.attrs.id));for(const[g,_]of Object.entries(f.attrs??{}))g.startsWith("data")&&g!=="data"&&(b[g]=_);r={type:"element",tagName:"span",properties:b,children:[r]}}else{const b=uw[f.type];b&&(r={type:"element",tagName:b,properties:{},children:[r]})}return r}function Ht(e,t,n){var r,i;if((r=e.classes)!=null&&r.length&&(t.properties.className=e.classes),n&&((i=e.data)!=null&&i.html)){const s=e.data.html;for(const[o,a]of Object.entries(s))t.properties[o]=a}}const Qt={ins:"background-color: #d4edda; text-decoration: none;",del:"background-color: #f8d7da; text-decoration: line-through;",mod:"background-color: #fff3cd;",move:"background-color: #d1ecf1;"};function cw(e,t,n,r){const i=(r==null?void 0:r.side)??"merged",s=(r==null?void 0:r.inlineStyles)!==!1,o=(r==null?void 0:r.insClass)??"diff-ins",a=(r==null?void 0:r.delClass)??"diff-del",u=(r==null?void 0:r.modClass)??"diff-mod",c=(r==null?void 0:r.moveClass)??"diff-move",d=new Map;for(const b of n.operations){const g="path"in b?ct(b.path):"to"in b?ct(b.to):null;if(g){const _=d.get(g)??[];_.push(b),d.set(g,_)}if(b.type==="delete"){const _=ct(b.path),p=d.get(_)??[];p.push(b),d.set(_,p)}if(b.type==="move"){const _=ct(b.from),p=d.get(_)??[];p.push(b),d.set(_,p)}}const h=[],m=n.operations.filter(b=>b.type==="delete"),f=n.operations.filter(b=>b.type==="insert");return(i==="old"||i==="merged")&&h.push(Jc(e,[],d,{role:"old",inlineStyles:s,insClass:o,delClass:a})),i==="merged"&&(m.length>0||f.length>0||n.operations.some(b=>b.type==="updateText"))&&(h.length=0,h.push(dw(e,t,n,{inlineStyles:s,insClass:o,delClass:a,modClass:u,moveClass:c}))),i==="new"&&(h.length=0,h.push(Jc(t,[],d,{role:"new",inlineStyles:s,insClass:o,delClass:a}))),h.join("")}function dw(e,t,n,r){const i=new Map,s=new Set,o=new Set,a=new Set,u=new Set,c=new Map;for(const b of n.operations)switch(b.type){case"updateText":i.set(ct(b.path),b.changes);break;case"insert":s.add(ct(b.path));break;case"delete":o.add(ct(b.path));break;case"move":a.add(ct(b.to)),u.add(ct(b.from));break;case"update":c.set(ct(b.path),b.properties.new);break}function d(b,g,_=!1){const p=ct(g);if(s.has(p)){const y=Ut({children:[b]});return Nn("ins",y,r.insClass,r.inlineStyles?Qt.ins:void 0,{"data-diff":"insert","data-path":p})}if(a.has(p)){const y=Ut({children:[b]});return Nn("span",y,r.moveClass,r.inlineStyles?Qt.move:void 0,{"data-diff":"move","data-path":p,title:"Moved"})}if(c.has(p)){const y=Ut({children:[b]});return Nn("span",y,r.modClass,r.inlineStyles?Qt.mod:void 0,{"data-diff":"update","data-path":p})}if(dt(b)&&i.has(p)){const y=i.get(p);return ed(y,r)}if(Te(b)){let y=td(b);const C=nd(b);b.type==="tableCell"&&_&&(y="th");const I=b.type==="tableRow"&&b.isHeader===!0,D=(b.type==="listItem"||b.type==="tableCell")&&b.children.length===1&&b.children[0].type==="paragraph";let B;if(D?B=b.children[0].children.map((S,w)=>d(S,[...g,0,w],I)).join(""):B=b.children.map((A,S)=>d(A,[...g,S],I)).join(""),y){const A=Object.entries(C).map(([S,w])=>` ${S}="${fa(String(w))}"`).join("");return hw(y)?`<${y}${A}>`:`<${y}${A}>${B}</${y}>`}return B}return Ut({children:[b]})}function h(){const b=[];for(const g of n.operations)if(g.type==="delete"){const _=Ut({children:[g.node]});b.push(Nn("del",_,r.delClass,r.inlineStyles?Qt.del:void 0,{"data-diff":"delete","data-path":ct(g.path)}))}return b.join("")}let m=t.children.map((b,g)=>d(b,[g])).join("");const f=h();return f&&(m+=f),m}function Jc(e,t,n,r){function i(s,o){const a=ct(o),u=n.get(a)??[];for(const c of u){if(c.type==="delete"&&r.role==="old"){const d=Ut({children:[s]});return Nn("del",d,r.delClass,r.inlineStyles?Qt.del:void 0,{"data-diff":"delete"})}if(c.type==="insert"&&r.role==="new"){const d=Ut({children:[s]});return Nn("ins",d,r.insClass,r.inlineStyles?Qt.ins:void 0,{"data-diff":"insert"})}if(c.type==="updateText")return ed(c.changes,r)}if(Te(s)){const c=s.children.map((h,m)=>i(h,[...o,m])).join(""),d=td(s);if(d){const h=nd(s),m=Object.entries(h).map(([f,b])=>` ${f}="${fa(String(b))}"`).join("");return`<${d}${m}>${c}</${d}>`}return c}return Ut({children:[s]})}return e.children.map((s,o)=>i(s,[o])).join("")}function ed(e,t){return e.map(n=>{switch(n.type){case"equal":return ha(n.value);case"delete":return`<del class="${t.delClass}"${t.inlineStyles?` style="${Qt.del}"`:""}>${ha(n.value)}</del>`;case"insert":return`<ins class="${t.insClass}"${t.inlineStyles?` style="${Qt.ins}"`:""}>${ha(n.value)}</ins>`}}).join("")}function ct(e){return e.join(",")}function Nn(e,t,n,r,i){let s=` class="${n}"`;if(r&&(s+=` style="${r}"`),i)for(const[o,a]of Object.entries(i))s+=` ${o}="${fa(a)}"`;return`<${e}${s}>${t}</${e}>`}function ha(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function fa(e){return e.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function hw(e){return["hr","br","img","input"].includes(e)}function td(e){switch(e.type){case"root":return null;case"paragraph":return"p";case"heading":return`h${e.depth}`;case"blockquote":return"blockquote";case"list":return e.ordered?"ol":"ul";case"listItem":return"li";case"codeBlock":return"pre";case"table":return"table";case"tableRow":return"tr";case"tableCell":return"td";case"thematicBreak":return"hr";case"div":return"div";case"figure":return"figure";case"figCaption":return"figcaption";case"break":return"br";case"image":return"img";default:return null}}function nd(e){var n,r;const t={};if((n=e.classes)!=null&&n.length&&(t.class=e.classes.join(" ")),e.type==="image"&&(t.src=e.url??"",e.alt&&(t.alt=e.alt)),e.type==="list"&&e.ordered&&e.start&&(t.start=String(e.start)),(r=e.data)!=null&&r.html){const i=e.data.html;i.id&&(t.id=String(i.id))}return t}function ci(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var pa={exports:{}};/*!
26
26
 
27
27
  JSZip v3.10.1 - A JavaScript class for generating and reading zip files
28
28
  <http://stuartk.com/jszip>
@@ -32,8 +32,8 @@
32
32
 
33
33
  JSZip uses the library pako released under the MIT license :
34
34
  https://github.com/nodeca/pako/blob/main/LICENSE
35
- */var Gc;function V_(){return Gc||(Gc=1,(function(e,t){(function(n){e.exports=n()})(function(){return(function n(r,i,s){function o(c,d){if(!i[c]){if(!r[c]){var h=typeof si=="function"&&si;if(!d&&h)return h(c,!0);if(a)return a(c,!0);var b=new Error("Cannot find module '"+c+"'");throw b.code="MODULE_NOT_FOUND",b}var f=i[c]={exports:{}};r[c][0].call(f.exports,function(m){var g=r[c][1][m];return o(g||m)},f,f.exports,n,r,i,s)}return i[c].exports}for(var a=typeof si=="function"&&si,u=0;u<s.length;u++)o(s[u]);return o})({1:[function(n,r,i){var s=n("./utils"),o=n("./support"),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";i.encode=function(u){for(var c,d,h,b,f,m,g,_=[],p=0,y=u.length,C=y,O=s.getTypeOf(u)!=="string";p<u.length;)C=y-p,h=O?(c=u[p++],d=p<y?u[p++]:0,p<y?u[p++]:0):(c=u.charCodeAt(p++),d=p<y?u.charCodeAt(p++):0,p<y?u.charCodeAt(p++):0),b=c>>2,f=(3&c)<<4|d>>4,m=1<C?(15&d)<<2|h>>6:64,g=2<C?63&h:64,_.push(a.charAt(b)+a.charAt(f)+a.charAt(m)+a.charAt(g));return _.join("")},i.decode=function(u){var c,d,h,b,f,m,g=0,_=0,p="data:";if(u.substr(0,p.length)===p)throw new Error("Invalid base64 input, it looks like a data url.");var y,C=3*(u=u.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(u.charAt(u.length-1)===a.charAt(64)&&C--,u.charAt(u.length-2)===a.charAt(64)&&C--,C%1!=0)throw new Error("Invalid base64 input, bad content length.");for(y=o.uint8array?new Uint8Array(0|C):new Array(0|C);g<u.length;)c=a.indexOf(u.charAt(g++))<<2|(b=a.indexOf(u.charAt(g++)))>>4,d=(15&b)<<4|(f=a.indexOf(u.charAt(g++)))>>2,h=(3&f)<<6|(m=a.indexOf(u.charAt(g++))),y[_++]=c,f!==64&&(y[_++]=d),m!==64&&(y[_++]=h);return y}},{"./support":30,"./utils":32}],2:[function(n,r,i){var s=n("./external"),o=n("./stream/DataWorker"),a=n("./stream/Crc32Probe"),u=n("./stream/DataLengthProbe");function c(d,h,b,f,m){this.compressedSize=d,this.uncompressedSize=h,this.crc32=b,this.compression=f,this.compressedContent=m}c.prototype={getContentWorker:function(){var d=new o(s.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new u("data_length")),h=this;return d.on("end",function(){if(this.streamInfo.data_length!==h.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),d},getCompressedWorker:function(){return new o(s.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},c.createWorkerFrom=function(d,h,b){return d.pipe(new a).pipe(new u("uncompressedSize")).pipe(h.compressWorker(b)).pipe(new u("compressedSize")).withStreamInfo("compression",h)},r.exports=c},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(n,r,i){var s=n("./stream/GenericWorker");i.STORE={magic:"\0\0",compressWorker:function(){return new s("STORE compression")},uncompressWorker:function(){return new s("STORE decompression")}},i.DEFLATE=n("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(n,r,i){var s=n("./utils"),o=(function(){for(var a,u=[],c=0;c<256;c++){a=c;for(var d=0;d<8;d++)a=1&a?3988292384^a>>>1:a>>>1;u[c]=a}return u})();r.exports=function(a,u){return a!==void 0&&a.length?s.getTypeOf(a)!=="string"?(function(c,d,h,b){var f=o,m=b+h;c^=-1;for(var g=b;g<m;g++)c=c>>>8^f[255&(c^d[g])];return-1^c})(0|u,a,a.length,0):(function(c,d,h,b){var f=o,m=b+h;c^=-1;for(var g=b;g<m;g++)c=c>>>8^f[255&(c^d.charCodeAt(g))];return-1^c})(0|u,a,a.length,0):0}},{"./utils":32}],5:[function(n,r,i){i.base64=!1,i.binary=!1,i.dir=!1,i.createFolders=!0,i.date=null,i.compression=null,i.compressionOptions=null,i.comment=null,i.unixPermissions=null,i.dosPermissions=null},{}],6:[function(n,r,i){var s=null;s=typeof Promise<"u"?Promise:n("lie"),r.exports={Promise:s}},{lie:37}],7:[function(n,r,i){var s=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",o=n("pako"),a=n("./utils"),u=n("./stream/GenericWorker"),c=s?"uint8array":"array";function d(h,b){u.call(this,"FlateWorker/"+h),this._pako=null,this._pakoAction=h,this._pakoOptions=b,this.meta={}}i.magic="\b\0",a.inherits(d,u),d.prototype.processChunk=function(h){this.meta=h.meta,this._pako===null&&this._createPako(),this._pako.push(a.transformTo(c,h.data),!1)},d.prototype.flush=function(){u.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},d.prototype.cleanUp=function(){u.prototype.cleanUp.call(this),this._pako=null},d.prototype._createPako=function(){this._pako=new o[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var h=this;this._pako.onData=function(b){h.push({data:b,meta:h.meta})}},i.compressWorker=function(h){return new d("Deflate",h)},i.uncompressWorker=function(){return new d("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(n,r,i){function s(f,m){var g,_="";for(g=0;g<m;g++)_+=String.fromCharCode(255&f),f>>>=8;return _}function o(f,m,g,_,p,y){var C,O,D=f.file,B=f.compression,A=y!==c.utf8encode,S=a.transformTo("string",y(D.name)),k=a.transformTo("string",c.utf8encode(D.name)),P=D.comment,R=a.transformTo("string",y(P)),x=a.transformTo("string",c.utf8encode(P)),M=k.length!==D.name.length,T=x.length!==P.length,U="",W="",G="",se=D.dir,Z=D.date,he={crc32:0,compressedSize:0,uncompressedSize:0};m&&!g||(he.crc32=f.crc32,he.compressedSize=f.compressedSize,he.uncompressedSize=f.uncompressedSize);var j=0;m&&(j|=8),A||!M&&!T||(j|=2048);var $=0,oe=0;se&&($|=16),p==="UNIX"?(oe=798,$|=(function(ie,Re){var Qe=ie;return ie||(Qe=Re?16893:33204),(65535&Qe)<<16})(D.unixPermissions,se)):(oe=20,$|=(function(ie){return 63&(ie||0)})(D.dosPermissions)),C=Z.getUTCHours(),C<<=6,C|=Z.getUTCMinutes(),C<<=5,C|=Z.getUTCSeconds()/2,O=Z.getUTCFullYear()-1980,O<<=4,O|=Z.getUTCMonth()+1,O<<=5,O|=Z.getUTCDate(),M&&(W=s(1,1)+s(d(S),4)+k,U+="up"+s(W.length,2)+W),T&&(G=s(1,1)+s(d(R),4)+x,U+="uc"+s(G.length,2)+G);var ae="";return ae+=`
36
- \0`,ae+=s(j,2),ae+=B.magic,ae+=s(C,2),ae+=s(O,2),ae+=s(he.crc32,4),ae+=s(he.compressedSize,4),ae+=s(he.uncompressedSize,4),ae+=s(S.length,2),ae+=s(U.length,2),{fileRecord:h.LOCAL_FILE_HEADER+ae+S+U,dirRecord:h.CENTRAL_FILE_HEADER+s(oe,2)+ae+s(R.length,2)+"\0\0\0\0"+s($,4)+s(_,4)+S+U+R}}var a=n("../utils"),u=n("../stream/GenericWorker"),c=n("../utf8"),d=n("../crc32"),h=n("../signature");function b(f,m,g,_){u.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=m,this.zipPlatform=g,this.encodeFileName=_,this.streamFiles=f,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(b,u),b.prototype.push=function(f){var m=f.meta.percent||0,g=this.entriesCount,_=this._sources.length;this.accumulate?this.contentBuffer.push(f):(this.bytesWritten+=f.data.length,u.prototype.push.call(this,{data:f.data,meta:{currentFile:this.currentFile,percent:g?(m+100*(g-_-1))/g:100}}))},b.prototype.openedSource=function(f){this.currentSourceOffset=this.bytesWritten,this.currentFile=f.file.name;var m=this.streamFiles&&!f.file.dir;if(m){var g=o(f,m,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:g.fileRecord,meta:{percent:0}})}else this.accumulate=!0},b.prototype.closedSource=function(f){this.accumulate=!1;var m=this.streamFiles&&!f.file.dir,g=o(f,m,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(g.dirRecord),m)this.push({data:(function(_){return h.DATA_DESCRIPTOR+s(_.crc32,4)+s(_.compressedSize,4)+s(_.uncompressedSize,4)})(f),meta:{percent:100}});else for(this.push({data:g.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},b.prototype.flush=function(){for(var f=this.bytesWritten,m=0;m<this.dirRecords.length;m++)this.push({data:this.dirRecords[m],meta:{percent:100}});var g=this.bytesWritten-f,_=(function(p,y,C,O,D){var B=a.transformTo("string",D(O));return h.CENTRAL_DIRECTORY_END+"\0\0\0\0"+s(p,2)+s(p,2)+s(y,4)+s(C,4)+s(B.length,2)+B})(this.dirRecords.length,g,f,this.zipComment,this.encodeFileName);this.push({data:_,meta:{percent:100}})},b.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},b.prototype.registerPrevious=function(f){this._sources.push(f);var m=this;return f.on("data",function(g){m.processChunk(g)}),f.on("end",function(){m.closedSource(m.previous.streamInfo),m._sources.length?m.prepareNextSource():m.end()}),f.on("error",function(g){m.error(g)}),this},b.prototype.resume=function(){return!!u.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},b.prototype.error=function(f){var m=this._sources;if(!u.prototype.error.call(this,f))return!1;for(var g=0;g<m.length;g++)try{m[g].error(f)}catch{}return!0},b.prototype.lock=function(){u.prototype.lock.call(this);for(var f=this._sources,m=0;m<f.length;m++)f[m].lock()},r.exports=b},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(n,r,i){var s=n("../compressions"),o=n("./ZipFileWorker");i.generateWorker=function(a,u,c){var d=new o(u.streamFiles,c,u.platform,u.encodeFileName),h=0;try{a.forEach(function(b,f){h++;var m=(function(y,C){var O=y||C,D=s[O];if(!D)throw new Error(O+" is not a valid compression method !");return D})(f.options.compression,u.compression),g=f.options.compressionOptions||u.compressionOptions||{},_=f.dir,p=f.date;f._compressWorker(m,g).withStreamInfo("file",{name:b,dir:_,date:p,comment:f.comment||"",unixPermissions:f.unixPermissions,dosPermissions:f.dosPermissions}).pipe(d)}),d.entriesCount=h}catch(b){d.error(b)}return d}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(n,r,i){function s(){if(!(this instanceof s))return new s;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var o=new s;for(var a in this)typeof this[a]!="function"&&(o[a]=this[a]);return o}}(s.prototype=n("./object")).loadAsync=n("./load"),s.support=n("./support"),s.defaults=n("./defaults"),s.version="3.10.1",s.loadAsync=function(o,a){return new s().loadAsync(o,a)},s.external=n("./external"),r.exports=s},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(n,r,i){var s=n("./utils"),o=n("./external"),a=n("./utf8"),u=n("./zipEntries"),c=n("./stream/Crc32Probe"),d=n("./nodejsUtils");function h(b){return new o.Promise(function(f,m){var g=b.decompressed.getContentWorker().pipe(new c);g.on("error",function(_){m(_)}).on("end",function(){g.streamInfo.crc32!==b.decompressed.crc32?m(new Error("Corrupted zip : CRC32 mismatch")):f()}).resume()})}r.exports=function(b,f){var m=this;return f=s.extend(f||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:a.utf8decode}),d.isNode&&d.isStream(b)?o.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):s.prepareContent("the loaded zip file",b,!0,f.optimizedBinaryString,f.base64).then(function(g){var _=new u(f);return _.load(g),_}).then(function(g){var _=[o.Promise.resolve(g)],p=g.files;if(f.checkCRC32)for(var y=0;y<p.length;y++)_.push(h(p[y]));return o.Promise.all(_)}).then(function(g){for(var _=g.shift(),p=_.files,y=0;y<p.length;y++){var C=p[y],O=C.fileNameStr,D=s.resolve(C.fileNameStr);m.file(D,C.decompressed,{binary:!0,optimizedBinaryString:!0,date:C.date,dir:C.dir,comment:C.fileCommentStr.length?C.fileCommentStr:null,unixPermissions:C.unixPermissions,dosPermissions:C.dosPermissions,createFolders:f.createFolders}),C.dir||(m.file(D).unsafeOriginalName=O)}return _.zipComment.length&&(m.comment=_.zipComment),m})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(n,r,i){var s=n("../utils"),o=n("../stream/GenericWorker");function a(u,c){o.call(this,"Nodejs stream input adapter for "+u),this._upstreamEnded=!1,this._bindStream(c)}s.inherits(a,o),a.prototype._bindStream=function(u){var c=this;(this._stream=u).pause(),u.on("data",function(d){c.push({data:d,meta:{percent:0}})}).on("error",function(d){c.isPaused?this.generatedError=d:c.error(d)}).on("end",function(){c.isPaused?c._upstreamEnded=!0:c.end()})},a.prototype.pause=function(){return!!o.prototype.pause.call(this)&&(this._stream.pause(),!0)},a.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},r.exports=a},{"../stream/GenericWorker":28,"../utils":32}],13:[function(n,r,i){var s=n("readable-stream").Readable;function o(a,u,c){s.call(this,u),this._helper=a;var d=this;a.on("data",function(h,b){d.push(h)||d._helper.pause(),c&&c(b)}).on("error",function(h){d.emit("error",h)}).on("end",function(){d.push(null)})}n("../utils").inherits(o,s),o.prototype._read=function(){this._helper.resume()},r.exports=o},{"../utils":32,"readable-stream":16}],14:[function(n,r,i){r.exports={isNode:typeof Buffer<"u",newBufferFrom:function(s,o){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(s,o);if(typeof s=="number")throw new Error('The "data" argument must not be a number');return new Buffer(s,o)},allocBuffer:function(s){if(Buffer.alloc)return Buffer.alloc(s);var o=new Buffer(s);return o.fill(0),o},isBuffer:function(s){return Buffer.isBuffer(s)},isStream:function(s){return s&&typeof s.on=="function"&&typeof s.pause=="function"&&typeof s.resume=="function"}}},{}],15:[function(n,r,i){function s(D,B,A){var S,k=a.getTypeOf(B),P=a.extend(A||{},d);P.date=P.date||new Date,P.compression!==null&&(P.compression=P.compression.toUpperCase()),typeof P.unixPermissions=="string"&&(P.unixPermissions=parseInt(P.unixPermissions,8)),P.unixPermissions&&16384&P.unixPermissions&&(P.dir=!0),P.dosPermissions&&16&P.dosPermissions&&(P.dir=!0),P.dir&&(D=p(D)),P.createFolders&&(S=_(D))&&y.call(this,S,!0);var R=k==="string"&&P.binary===!1&&P.base64===!1;A&&A.binary!==void 0||(P.binary=!R),(B instanceof h&&B.uncompressedSize===0||P.dir||!B||B.length===0)&&(P.base64=!1,P.binary=!0,B="",P.compression="STORE",k="string");var x=null;x=B instanceof h||B instanceof u?B:m.isNode&&m.isStream(B)?new g(D,B):a.prepareContent(D,B,P.binary,P.optimizedBinaryString,P.base64);var M=new b(D,x,P);this.files[D]=M}var o=n("./utf8"),a=n("./utils"),u=n("./stream/GenericWorker"),c=n("./stream/StreamHelper"),d=n("./defaults"),h=n("./compressedObject"),b=n("./zipObject"),f=n("./generate"),m=n("./nodejsUtils"),g=n("./nodejs/NodejsStreamInputAdapter"),_=function(D){D.slice(-1)==="/"&&(D=D.substring(0,D.length-1));var B=D.lastIndexOf("/");return 0<B?D.substring(0,B):""},p=function(D){return D.slice(-1)!=="/"&&(D+="/"),D},y=function(D,B){return B=B!==void 0?B:d.createFolders,D=p(D),this.files[D]||s.call(this,D,null,{dir:!0,createFolders:B}),this.files[D]};function C(D){return Object.prototype.toString.call(D)==="[object RegExp]"}var O={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(D){var B,A,S;for(B in this.files)S=this.files[B],(A=B.slice(this.root.length,B.length))&&B.slice(0,this.root.length)===this.root&&D(A,S)},filter:function(D){var B=[];return this.forEach(function(A,S){D(A,S)&&B.push(S)}),B},file:function(D,B,A){if(arguments.length!==1)return D=this.root+D,s.call(this,D,B,A),this;if(C(D)){var S=D;return this.filter(function(P,R){return!R.dir&&S.test(P)})}var k=this.files[this.root+D];return k&&!k.dir?k:null},folder:function(D){if(!D)return this;if(C(D))return this.filter(function(k,P){return P.dir&&D.test(k)});var B=this.root+D,A=y.call(this,B),S=this.clone();return S.root=A.name,S},remove:function(D){D=this.root+D;var B=this.files[D];if(B||(D.slice(-1)!=="/"&&(D+="/"),B=this.files[D]),B&&!B.dir)delete this.files[D];else for(var A=this.filter(function(k,P){return P.name.slice(0,D.length)===D}),S=0;S<A.length;S++)delete this.files[A[S].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(D){var B,A={};try{if((A=a.extend(D||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:o.utf8encode})).type=A.type.toLowerCase(),A.compression=A.compression.toUpperCase(),A.type==="binarystring"&&(A.type="string"),!A.type)throw new Error("No output type specified.");a.checkSupport(A.type),A.platform!=="darwin"&&A.platform!=="freebsd"&&A.platform!=="linux"&&A.platform!=="sunos"||(A.platform="UNIX"),A.platform==="win32"&&(A.platform="DOS");var S=A.comment||this.comment||"";B=f.generateWorker(this,A,S)}catch(k){(B=new u("error")).error(k)}return new c(B,A.type||"string",A.mimeType)},generateAsync:function(D,B){return this.generateInternalStream(D).accumulate(B)},generateNodeStream:function(D,B){return(D=D||{}).type||(D.type="nodebuffer"),this.generateInternalStream(D).toNodejsStream(B)}};r.exports=O},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(n,r,i){r.exports=n("stream")},{stream:void 0}],17:[function(n,r,i){var s=n("./DataReader");function o(a){s.call(this,a);for(var u=0;u<this.data.length;u++)a[u]=255&a[u]}n("../utils").inherits(o,s),o.prototype.byteAt=function(a){return this.data[this.zero+a]},o.prototype.lastIndexOfSignature=function(a){for(var u=a.charCodeAt(0),c=a.charCodeAt(1),d=a.charCodeAt(2),h=a.charCodeAt(3),b=this.length-4;0<=b;--b)if(this.data[b]===u&&this.data[b+1]===c&&this.data[b+2]===d&&this.data[b+3]===h)return b-this.zero;return-1},o.prototype.readAndCheckSignature=function(a){var u=a.charCodeAt(0),c=a.charCodeAt(1),d=a.charCodeAt(2),h=a.charCodeAt(3),b=this.readData(4);return u===b[0]&&c===b[1]&&d===b[2]&&h===b[3]},o.prototype.readData=function(a){if(this.checkOffset(a),a===0)return[];var u=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,u},r.exports=o},{"../utils":32,"./DataReader":18}],18:[function(n,r,i){var s=n("../utils");function o(a){this.data=a,this.length=a.length,this.index=0,this.zero=0}o.prototype={checkOffset:function(a){this.checkIndex(this.index+a)},checkIndex:function(a){if(this.length<this.zero+a||a<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+a+"). Corrupted zip ?")},setIndex:function(a){this.checkIndex(a),this.index=a},skip:function(a){this.setIndex(this.index+a)},byteAt:function(){},readInt:function(a){var u,c=0;for(this.checkOffset(a),u=this.index+a-1;u>=this.index;u--)c=(c<<8)+this.byteAt(u);return this.index+=a,c},readString:function(a){return s.transformTo("string",this.readData(a))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var a=this.readInt(4);return new Date(Date.UTC(1980+(a>>25&127),(a>>21&15)-1,a>>16&31,a>>11&31,a>>5&63,(31&a)<<1))}},r.exports=o},{"../utils":32}],19:[function(n,r,i){var s=n("./Uint8ArrayReader");function o(a){s.call(this,a)}n("../utils").inherits(o,s),o.prototype.readData=function(a){this.checkOffset(a);var u=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,u},r.exports=o},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(n,r,i){var s=n("./DataReader");function o(a){s.call(this,a)}n("../utils").inherits(o,s),o.prototype.byteAt=function(a){return this.data.charCodeAt(this.zero+a)},o.prototype.lastIndexOfSignature=function(a){return this.data.lastIndexOf(a)-this.zero},o.prototype.readAndCheckSignature=function(a){return a===this.readData(4)},o.prototype.readData=function(a){this.checkOffset(a);var u=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,u},r.exports=o},{"../utils":32,"./DataReader":18}],21:[function(n,r,i){var s=n("./ArrayReader");function o(a){s.call(this,a)}n("../utils").inherits(o,s),o.prototype.readData=function(a){if(this.checkOffset(a),a===0)return new Uint8Array(0);var u=this.data.subarray(this.zero+this.index,this.zero+this.index+a);return this.index+=a,u},r.exports=o},{"../utils":32,"./ArrayReader":17}],22:[function(n,r,i){var s=n("../utils"),o=n("../support"),a=n("./ArrayReader"),u=n("./StringReader"),c=n("./NodeBufferReader"),d=n("./Uint8ArrayReader");r.exports=function(h){var b=s.getTypeOf(h);return s.checkSupport(b),b!=="string"||o.uint8array?b==="nodebuffer"?new c(h):o.uint8array?new d(s.transformTo("uint8array",h)):new a(s.transformTo("array",h)):new u(h)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(n,r,i){i.LOCAL_FILE_HEADER="PK",i.CENTRAL_FILE_HEADER="PK",i.CENTRAL_DIRECTORY_END="PK",i.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",i.ZIP64_CENTRAL_DIRECTORY_END="PK",i.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(n,r,i){var s=n("./GenericWorker"),o=n("../utils");function a(u){s.call(this,"ConvertWorker to "+u),this.destType=u}o.inherits(a,s),a.prototype.processChunk=function(u){this.push({data:o.transformTo(this.destType,u.data),meta:u.meta})},r.exports=a},{"../utils":32,"./GenericWorker":28}],25:[function(n,r,i){var s=n("./GenericWorker"),o=n("../crc32");function a(){s.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}n("../utils").inherits(a,s),a.prototype.processChunk=function(u){this.streamInfo.crc32=o(u.data,this.streamInfo.crc32||0),this.push(u)},r.exports=a},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(n,r,i){var s=n("../utils"),o=n("./GenericWorker");function a(u){o.call(this,"DataLengthProbe for "+u),this.propName=u,this.withStreamInfo(u,0)}s.inherits(a,o),a.prototype.processChunk=function(u){if(u){var c=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=c+u.data.length}o.prototype.processChunk.call(this,u)},r.exports=a},{"../utils":32,"./GenericWorker":28}],27:[function(n,r,i){var s=n("../utils"),o=n("./GenericWorker");function a(u){o.call(this,"DataWorker");var c=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,u.then(function(d){c.dataIsReady=!0,c.data=d,c.max=d&&d.length||0,c.type=s.getTypeOf(d),c.isPaused||c._tickAndRepeat()},function(d){c.error(d)})}s.inherits(a,o),a.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this.data=null},a.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,s.delay(this._tickAndRepeat,[],this)),!0)},a.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(s.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var u=null,c=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":u=this.data.substring(this.index,c);break;case"uint8array":u=this.data.subarray(this.index,c);break;case"array":case"nodebuffer":u=this.data.slice(this.index,c)}return this.index=c,this.push({data:u,meta:{percent:this.max?this.index/this.max*100:0}})},r.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(n,r,i){function s(o){this.name=o||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}s.prototype={push:function(o){this.emit("data",o)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(o){this.emit("error",o)}return!0},error:function(o){return!this.isFinished&&(this.isPaused?this.generatedError=o:(this.isFinished=!0,this.emit("error",o),this.previous&&this.previous.error(o),this.cleanUp()),!0)},on:function(o,a){return this._listeners[o].push(a),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(o,a){if(this._listeners[o])for(var u=0;u<this._listeners[o].length;u++)this._listeners[o][u].call(this,a)},pipe:function(o){return o.registerPrevious(this)},registerPrevious:function(o){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=o.streamInfo,this.mergeStreamInfo(),this.previous=o;var a=this;return o.on("data",function(u){a.processChunk(u)}),o.on("end",function(){a.end()}),o.on("error",function(u){a.error(u)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var o=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),o=!0),this.previous&&this.previous.resume(),!o},flush:function(){},processChunk:function(o){this.push(o)},withStreamInfo:function(o,a){return this.extraStreamInfo[o]=a,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var o in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,o)&&(this.streamInfo[o]=this.extraStreamInfo[o])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var o="Worker "+this.name;return this.previous?this.previous+" -> "+o:o}},r.exports=s},{}],29:[function(n,r,i){var s=n("../utils"),o=n("./ConvertWorker"),a=n("./GenericWorker"),u=n("../base64"),c=n("../support"),d=n("../external"),h=null;if(c.nodestream)try{h=n("../nodejs/NodejsStreamOutputAdapter")}catch{}function b(m,g){return new d.Promise(function(_,p){var y=[],C=m._internalType,O=m._outputType,D=m._mimeType;m.on("data",function(B,A){y.push(B),g&&g(A)}).on("error",function(B){y=[],p(B)}).on("end",function(){try{var B=(function(A,S,k){switch(A){case"blob":return s.newBlob(s.transformTo("arraybuffer",S),k);case"base64":return u.encode(S);default:return s.transformTo(A,S)}})(O,(function(A,S){var k,P=0,R=null,x=0;for(k=0;k<S.length;k++)x+=S[k].length;switch(A){case"string":return S.join("");case"array":return Array.prototype.concat.apply([],S);case"uint8array":for(R=new Uint8Array(x),k=0;k<S.length;k++)R.set(S[k],P),P+=S[k].length;return R;case"nodebuffer":return Buffer.concat(S);default:throw new Error("concat : unsupported type '"+A+"'")}})(C,y),D);_(B)}catch(A){p(A)}y=[]}).resume()})}function f(m,g,_){var p=g;switch(g){case"blob":case"arraybuffer":p="uint8array";break;case"base64":p="string"}try{this._internalType=p,this._outputType=g,this._mimeType=_,s.checkSupport(p),this._worker=m.pipe(new o(p)),m.lock()}catch(y){this._worker=new a("error"),this._worker.error(y)}}f.prototype={accumulate:function(m){return b(this,m)},on:function(m,g){var _=this;return m==="data"?this._worker.on(m,function(p){g.call(_,p.data,p.meta)}):this._worker.on(m,function(){s.delay(g,arguments,_)}),this},resume:function(){return s.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(m){if(s.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new h(this,{objectMode:this._outputType!=="nodebuffer"},m)}},r.exports=f},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(n,r,i){if(i.base64=!0,i.array=!0,i.string=!0,i.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",i.nodebuffer=typeof Buffer<"u",i.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")i.blob=!1;else{var s=new ArrayBuffer(0);try{i.blob=new Blob([s],{type:"application/zip"}).size===0}catch{try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);o.append(s),i.blob=o.getBlob("application/zip").size===0}catch{i.blob=!1}}}try{i.nodestream=!!n("readable-stream").Readable}catch{i.nodestream=!1}},{"readable-stream":16}],31:[function(n,r,i){for(var s=n("./utils"),o=n("./support"),a=n("./nodejsUtils"),u=n("./stream/GenericWorker"),c=new Array(256),d=0;d<256;d++)c[d]=252<=d?6:248<=d?5:240<=d?4:224<=d?3:192<=d?2:1;c[254]=c[254]=1;function h(){u.call(this,"utf-8 decode"),this.leftOver=null}function b(){u.call(this,"utf-8 encode")}i.utf8encode=function(f){return o.nodebuffer?a.newBufferFrom(f,"utf-8"):(function(m){var g,_,p,y,C,O=m.length,D=0;for(y=0;y<O;y++)(64512&(_=m.charCodeAt(y)))==55296&&y+1<O&&(64512&(p=m.charCodeAt(y+1)))==56320&&(_=65536+(_-55296<<10)+(p-56320),y++),D+=_<128?1:_<2048?2:_<65536?3:4;for(g=o.uint8array?new Uint8Array(D):new Array(D),y=C=0;C<D;y++)(64512&(_=m.charCodeAt(y)))==55296&&y+1<O&&(64512&(p=m.charCodeAt(y+1)))==56320&&(_=65536+(_-55296<<10)+(p-56320),y++),_<128?g[C++]=_:(_<2048?g[C++]=192|_>>>6:(_<65536?g[C++]=224|_>>>12:(g[C++]=240|_>>>18,g[C++]=128|_>>>12&63),g[C++]=128|_>>>6&63),g[C++]=128|63&_);return g})(f)},i.utf8decode=function(f){return o.nodebuffer?s.transformTo("nodebuffer",f).toString("utf-8"):(function(m){var g,_,p,y,C=m.length,O=new Array(2*C);for(g=_=0;g<C;)if((p=m[g++])<128)O[_++]=p;else if(4<(y=c[p]))O[_++]=65533,g+=y-1;else{for(p&=y===2?31:y===3?15:7;1<y&&g<C;)p=p<<6|63&m[g++],y--;1<y?O[_++]=65533:p<65536?O[_++]=p:(p-=65536,O[_++]=55296|p>>10&1023,O[_++]=56320|1023&p)}return O.length!==_&&(O.subarray?O=O.subarray(0,_):O.length=_),s.applyFromCharCode(O)})(f=s.transformTo(o.uint8array?"uint8array":"array",f))},s.inherits(h,u),h.prototype.processChunk=function(f){var m=s.transformTo(o.uint8array?"uint8array":"array",f.data);if(this.leftOver&&this.leftOver.length){if(o.uint8array){var g=m;(m=new Uint8Array(g.length+this.leftOver.length)).set(this.leftOver,0),m.set(g,this.leftOver.length)}else m=this.leftOver.concat(m);this.leftOver=null}var _=(function(y,C){var O;for((C=C||y.length)>y.length&&(C=y.length),O=C-1;0<=O&&(192&y[O])==128;)O--;return O<0||O===0?C:O+c[y[O]]>C?O:C})(m),p=m;_!==m.length&&(o.uint8array?(p=m.subarray(0,_),this.leftOver=m.subarray(_,m.length)):(p=m.slice(0,_),this.leftOver=m.slice(_,m.length))),this.push({data:i.utf8decode(p),meta:f.meta})},h.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:i.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},i.Utf8DecodeWorker=h,s.inherits(b,u),b.prototype.processChunk=function(f){this.push({data:i.utf8encode(f.data),meta:f.meta})},i.Utf8EncodeWorker=b},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(n,r,i){var s=n("./support"),o=n("./base64"),a=n("./nodejsUtils"),u=n("./external");function c(g){return g}function d(g,_){for(var p=0;p<g.length;++p)_[p]=255&g.charCodeAt(p);return _}n("setimmediate"),i.newBlob=function(g,_){i.checkSupport("blob");try{return new Blob([g],{type:_})}catch{try{var p=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return p.append(g),p.getBlob(_)}catch{throw new Error("Bug : can't construct the Blob.")}}};var h={stringifyByChunk:function(g,_,p){var y=[],C=0,O=g.length;if(O<=p)return String.fromCharCode.apply(null,g);for(;C<O;)_==="array"||_==="nodebuffer"?y.push(String.fromCharCode.apply(null,g.slice(C,Math.min(C+p,O)))):y.push(String.fromCharCode.apply(null,g.subarray(C,Math.min(C+p,O)))),C+=p;return y.join("")},stringifyByChar:function(g){for(var _="",p=0;p<g.length;p++)_+=String.fromCharCode(g[p]);return _},applyCanBeUsed:{uint8array:(function(){try{return s.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}})(),nodebuffer:(function(){try{return s.nodebuffer&&String.fromCharCode.apply(null,a.allocBuffer(1)).length===1}catch{return!1}})()}};function b(g){var _=65536,p=i.getTypeOf(g),y=!0;if(p==="uint8array"?y=h.applyCanBeUsed.uint8array:p==="nodebuffer"&&(y=h.applyCanBeUsed.nodebuffer),y)for(;1<_;)try{return h.stringifyByChunk(g,p,_)}catch{_=Math.floor(_/2)}return h.stringifyByChar(g)}function f(g,_){for(var p=0;p<g.length;p++)_[p]=g[p];return _}i.applyFromCharCode=b;var m={};m.string={string:c,array:function(g){return d(g,new Array(g.length))},arraybuffer:function(g){return m.string.uint8array(g).buffer},uint8array:function(g){return d(g,new Uint8Array(g.length))},nodebuffer:function(g){return d(g,a.allocBuffer(g.length))}},m.array={string:b,array:c,arraybuffer:function(g){return new Uint8Array(g).buffer},uint8array:function(g){return new Uint8Array(g)},nodebuffer:function(g){return a.newBufferFrom(g)}},m.arraybuffer={string:function(g){return b(new Uint8Array(g))},array:function(g){return f(new Uint8Array(g),new Array(g.byteLength))},arraybuffer:c,uint8array:function(g){return new Uint8Array(g)},nodebuffer:function(g){return a.newBufferFrom(new Uint8Array(g))}},m.uint8array={string:b,array:function(g){return f(g,new Array(g.length))},arraybuffer:function(g){return g.buffer},uint8array:c,nodebuffer:function(g){return a.newBufferFrom(g)}},m.nodebuffer={string:b,array:function(g){return f(g,new Array(g.length))},arraybuffer:function(g){return m.nodebuffer.uint8array(g).buffer},uint8array:function(g){return f(g,new Uint8Array(g.length))},nodebuffer:c},i.transformTo=function(g,_){if(_=_||"",!g)return _;i.checkSupport(g);var p=i.getTypeOf(_);return m[p][g](_)},i.resolve=function(g){for(var _=g.split("/"),p=[],y=0;y<_.length;y++){var C=_[y];C==="."||C===""&&y!==0&&y!==_.length-1||(C===".."?p.pop():p.push(C))}return p.join("/")},i.getTypeOf=function(g){return typeof g=="string"?"string":Object.prototype.toString.call(g)==="[object Array]"?"array":s.nodebuffer&&a.isBuffer(g)?"nodebuffer":s.uint8array&&g instanceof Uint8Array?"uint8array":s.arraybuffer&&g instanceof ArrayBuffer?"arraybuffer":void 0},i.checkSupport=function(g){if(!s[g.toLowerCase()])throw new Error(g+" is not supported by this platform")},i.MAX_VALUE_16BITS=65535,i.MAX_VALUE_32BITS=-1,i.pretty=function(g){var _,p,y="";for(p=0;p<(g||"").length;p++)y+="\\x"+((_=g.charCodeAt(p))<16?"0":"")+_.toString(16).toUpperCase();return y},i.delay=function(g,_,p){setImmediate(function(){g.apply(p||null,_||[])})},i.inherits=function(g,_){function p(){}p.prototype=_.prototype,g.prototype=new p},i.extend=function(){var g,_,p={};for(g=0;g<arguments.length;g++)for(_ in arguments[g])Object.prototype.hasOwnProperty.call(arguments[g],_)&&p[_]===void 0&&(p[_]=arguments[g][_]);return p},i.prepareContent=function(g,_,p,y,C){return u.Promise.resolve(_).then(function(O){return s.blob&&(O instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(O))!==-1)&&typeof FileReader<"u"?new u.Promise(function(D,B){var A=new FileReader;A.onload=function(S){D(S.target.result)},A.onerror=function(S){B(S.target.error)},A.readAsArrayBuffer(O)}):O}).then(function(O){var D=i.getTypeOf(O);return D?(D==="arraybuffer"?O=i.transformTo("uint8array",O):D==="string"&&(C?O=o.decode(O):p&&y!==!0&&(O=(function(B){return d(B,s.uint8array?new Uint8Array(B.length):new Array(B.length))})(O))),O):u.Promise.reject(new Error("Can't read the data of '"+g+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(n,r,i){var s=n("./reader/readerFor"),o=n("./utils"),a=n("./signature"),u=n("./zipEntry"),c=n("./support");function d(h){this.files=[],this.loadOptions=h}d.prototype={checkSignature:function(h){if(!this.reader.readAndCheckSignature(h)){this.reader.index-=4;var b=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+o.pretty(b)+", expected "+o.pretty(h)+")")}},isSignature:function(h,b){var f=this.reader.index;this.reader.setIndex(h);var m=this.reader.readString(4)===b;return this.reader.setIndex(f),m},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var h=this.reader.readData(this.zipCommentLength),b=c.uint8array?"uint8array":"array",f=o.transformTo(b,h);this.zipComment=this.loadOptions.decodeFileName(f)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var h,b,f,m=this.zip64EndOfCentralSize-44;0<m;)h=this.reader.readInt(2),b=this.reader.readInt(4),f=this.reader.readData(b),this.zip64ExtensibleData[h]={id:h,length:b,value:f}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var h,b;for(h=0;h<this.files.length;h++)b=this.files[h],this.reader.setIndex(b.localHeaderOffset),this.checkSignature(a.LOCAL_FILE_HEADER),b.readLocalPart(this.reader),b.handleUTF8(),b.processAttributes()},readCentralDir:function(){var h;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(a.CENTRAL_FILE_HEADER);)(h=new u({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(h);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var h=this.reader.lastIndexOfSignature(a.CENTRAL_DIRECTORY_END);if(h<0)throw this.isSignature(0,a.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(h);var b=h;if(this.checkSignature(a.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===o.MAX_VALUE_16BITS||this.diskWithCentralDirStart===o.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===o.MAX_VALUE_16BITS||this.centralDirRecords===o.MAX_VALUE_16BITS||this.centralDirSize===o.MAX_VALUE_32BITS||this.centralDirOffset===o.MAX_VALUE_32BITS){if(this.zip64=!0,(h=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(h),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,a.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var f=this.centralDirOffset+this.centralDirSize;this.zip64&&(f+=20,f+=12+this.zip64EndOfCentralSize);var m=b-f;if(0<m)this.isSignature(b,a.CENTRAL_FILE_HEADER)||(this.reader.zero=m);else if(m<0)throw new Error("Corrupted zip: missing "+Math.abs(m)+" bytes.")},prepareReader:function(h){this.reader=s(h)},load:function(h){this.prepareReader(h),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},r.exports=d},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(n,r,i){var s=n("./reader/readerFor"),o=n("./utils"),a=n("./compressedObject"),u=n("./crc32"),c=n("./utf8"),d=n("./compressions"),h=n("./support");function b(f,m){this.options=f,this.loadOptions=m}b.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(f){var m,g;if(f.skip(22),this.fileNameLength=f.readInt(2),g=f.readInt(2),this.fileName=f.readData(this.fileNameLength),f.skip(g),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((m=(function(_){for(var p in d)if(Object.prototype.hasOwnProperty.call(d,p)&&d[p].magic===_)return d[p];return null})(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+o.pretty(this.compressionMethod)+" unknown (inner file : "+o.transformTo("string",this.fileName)+")");this.decompressed=new a(this.compressedSize,this.uncompressedSize,this.crc32,m,f.readData(this.compressedSize))},readCentralPart:function(f){this.versionMadeBy=f.readInt(2),f.skip(2),this.bitFlag=f.readInt(2),this.compressionMethod=f.readString(2),this.date=f.readDate(),this.crc32=f.readInt(4),this.compressedSize=f.readInt(4),this.uncompressedSize=f.readInt(4);var m=f.readInt(2);if(this.extraFieldsLength=f.readInt(2),this.fileCommentLength=f.readInt(2),this.diskNumberStart=f.readInt(2),this.internalFileAttributes=f.readInt(2),this.externalFileAttributes=f.readInt(4),this.localHeaderOffset=f.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");f.skip(m),this.readExtraFields(f),this.parseZIP64ExtraField(f),this.fileComment=f.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var f=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),f==0&&(this.dosPermissions=63&this.externalFileAttributes),f==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var f=s(this.extraFields[1].value);this.uncompressedSize===o.MAX_VALUE_32BITS&&(this.uncompressedSize=f.readInt(8)),this.compressedSize===o.MAX_VALUE_32BITS&&(this.compressedSize=f.readInt(8)),this.localHeaderOffset===o.MAX_VALUE_32BITS&&(this.localHeaderOffset=f.readInt(8)),this.diskNumberStart===o.MAX_VALUE_32BITS&&(this.diskNumberStart=f.readInt(4))}},readExtraFields:function(f){var m,g,_,p=f.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});f.index+4<p;)m=f.readInt(2),g=f.readInt(2),_=f.readData(g),this.extraFields[m]={id:m,length:g,value:_};f.setIndex(p)},handleUTF8:function(){var f=h.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=c.utf8decode(this.fileName),this.fileCommentStr=c.utf8decode(this.fileComment);else{var m=this.findExtraFieldUnicodePath();if(m!==null)this.fileNameStr=m;else{var g=o.transformTo(f,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(g)}var _=this.findExtraFieldUnicodeComment();if(_!==null)this.fileCommentStr=_;else{var p=o.transformTo(f,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(p)}}},findExtraFieldUnicodePath:function(){var f=this.extraFields[28789];if(f){var m=s(f.value);return m.readInt(1)!==1||u(this.fileName)!==m.readInt(4)?null:c.utf8decode(m.readData(f.length-5))}return null},findExtraFieldUnicodeComment:function(){var f=this.extraFields[25461];if(f){var m=s(f.value);return m.readInt(1)!==1||u(this.fileComment)!==m.readInt(4)?null:c.utf8decode(m.readData(f.length-5))}return null}},r.exports=b},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(n,r,i){function s(m,g,_){this.name=m,this.dir=_.dir,this.date=_.date,this.comment=_.comment,this.unixPermissions=_.unixPermissions,this.dosPermissions=_.dosPermissions,this._data=g,this._dataBinary=_.binary,this.options={compression:_.compression,compressionOptions:_.compressionOptions}}var o=n("./stream/StreamHelper"),a=n("./stream/DataWorker"),u=n("./utf8"),c=n("./compressedObject"),d=n("./stream/GenericWorker");s.prototype={internalStream:function(m){var g=null,_="string";try{if(!m)throw new Error("No output type specified.");var p=(_=m.toLowerCase())==="string"||_==="text";_!=="binarystring"&&_!=="text"||(_="string"),g=this._decompressWorker();var y=!this._dataBinary;y&&!p&&(g=g.pipe(new u.Utf8EncodeWorker)),!y&&p&&(g=g.pipe(new u.Utf8DecodeWorker))}catch(C){(g=new d("error")).error(C)}return new o(g,_,"")},async:function(m,g){return this.internalStream(m).accumulate(g)},nodeStream:function(m,g){return this.internalStream(m||"nodebuffer").toNodejsStream(g)},_compressWorker:function(m,g){if(this._data instanceof c&&this._data.compression.magic===m.magic)return this._data.getCompressedWorker();var _=this._decompressWorker();return this._dataBinary||(_=_.pipe(new u.Utf8EncodeWorker)),c.createWorkerFrom(_,m,g)},_decompressWorker:function(){return this._data instanceof c?this._data.getContentWorker():this._data instanceof d?this._data:new a(this._data)}};for(var h=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],b=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},f=0;f<h.length;f++)s.prototype[h[f]]=b;r.exports=s},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(n,r,i){(function(s){var o,a,u=s.MutationObserver||s.WebKitMutationObserver;if(u){var c=0,d=new u(m),h=s.document.createTextNode("");d.observe(h,{characterData:!0}),o=function(){h.data=c=++c%2}}else if(s.setImmediate||s.MessageChannel===void 0)o="document"in s&&"onreadystatechange"in s.document.createElement("script")?function(){var g=s.document.createElement("script");g.onreadystatechange=function(){m(),g.onreadystatechange=null,g.parentNode.removeChild(g),g=null},s.document.documentElement.appendChild(g)}:function(){setTimeout(m,0)};else{var b=new s.MessageChannel;b.port1.onmessage=m,o=function(){b.port2.postMessage(0)}}var f=[];function m(){var g,_;a=!0;for(var p=f.length;p;){for(_=f,f=[],g=-1;++g<p;)_[g]();p=f.length}a=!1}r.exports=function(g){f.push(g)!==1||a||o()}}).call(this,typeof Pr<"u"?Pr:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(n,r,i){var s=n("immediate");function o(){}var a={},u=["REJECTED"],c=["FULFILLED"],d=["PENDING"];function h(p){if(typeof p!="function")throw new TypeError("resolver must be a function");this.state=d,this.queue=[],this.outcome=void 0,p!==o&&g(this,p)}function b(p,y,C){this.promise=p,typeof y=="function"&&(this.onFulfilled=y,this.callFulfilled=this.otherCallFulfilled),typeof C=="function"&&(this.onRejected=C,this.callRejected=this.otherCallRejected)}function f(p,y,C){s(function(){var O;try{O=y(C)}catch(D){return a.reject(p,D)}O===p?a.reject(p,new TypeError("Cannot resolve promise with itself")):a.resolve(p,O)})}function m(p){var y=p&&p.then;if(p&&(typeof p=="object"||typeof p=="function")&&typeof y=="function")return function(){y.apply(p,arguments)}}function g(p,y){var C=!1;function O(A){C||(C=!0,a.reject(p,A))}function D(A){C||(C=!0,a.resolve(p,A))}var B=_(function(){y(D,O)});B.status==="error"&&O(B.value)}function _(p,y){var C={};try{C.value=p(y),C.status="success"}catch(O){C.status="error",C.value=O}return C}(r.exports=h).prototype.finally=function(p){if(typeof p!="function")return this;var y=this.constructor;return this.then(function(C){return y.resolve(p()).then(function(){return C})},function(C){return y.resolve(p()).then(function(){throw C})})},h.prototype.catch=function(p){return this.then(null,p)},h.prototype.then=function(p,y){if(typeof p!="function"&&this.state===c||typeof y!="function"&&this.state===u)return this;var C=new this.constructor(o);return this.state!==d?f(C,this.state===c?p:y,this.outcome):this.queue.push(new b(C,p,y)),C},b.prototype.callFulfilled=function(p){a.resolve(this.promise,p)},b.prototype.otherCallFulfilled=function(p){f(this.promise,this.onFulfilled,p)},b.prototype.callRejected=function(p){a.reject(this.promise,p)},b.prototype.otherCallRejected=function(p){f(this.promise,this.onRejected,p)},a.resolve=function(p,y){var C=_(m,y);if(C.status==="error")return a.reject(p,C.value);var O=C.value;if(O)g(p,O);else{p.state=c,p.outcome=y;for(var D=-1,B=p.queue.length;++D<B;)p.queue[D].callFulfilled(y)}return p},a.reject=function(p,y){p.state=u,p.outcome=y;for(var C=-1,O=p.queue.length;++C<O;)p.queue[C].callRejected(y);return p},h.resolve=function(p){return p instanceof this?p:a.resolve(new this(o),p)},h.reject=function(p){var y=new this(o);return a.reject(y,p)},h.all=function(p){var y=this;if(Object.prototype.toString.call(p)!=="[object Array]")return this.reject(new TypeError("must be an array"));var C=p.length,O=!1;if(!C)return this.resolve([]);for(var D=new Array(C),B=0,A=-1,S=new this(o);++A<C;)k(p[A],A);return S;function k(P,R){y.resolve(P).then(function(x){D[R]=x,++B!==C||O||(O=!0,a.resolve(S,D))},function(x){O||(O=!0,a.reject(S,x))})}},h.race=function(p){var y=this;if(Object.prototype.toString.call(p)!=="[object Array]")return this.reject(new TypeError("must be an array"));var C=p.length,O=!1;if(!C)return this.resolve([]);for(var D=-1,B=new this(o);++D<C;)A=p[D],y.resolve(A).then(function(S){O||(O=!0,a.resolve(B,S))},function(S){O||(O=!0,a.reject(B,S))});var A;return B}},{immediate:36}],38:[function(n,r,i){var s={};(0,n("./lib/utils/common").assign)(s,n("./lib/deflate"),n("./lib/inflate"),n("./lib/zlib/constants")),r.exports=s},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(n,r,i){var s=n("./zlib/deflate"),o=n("./utils/common"),a=n("./utils/strings"),u=n("./zlib/messages"),c=n("./zlib/zstream"),d=Object.prototype.toString,h=0,b=-1,f=0,m=8;function g(p){if(!(this instanceof g))return new g(p);this.options=o.assign({level:b,method:m,chunkSize:16384,windowBits:15,memLevel:8,strategy:f,to:""},p||{});var y=this.options;y.raw&&0<y.windowBits?y.windowBits=-y.windowBits:y.gzip&&0<y.windowBits&&y.windowBits<16&&(y.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var C=s.deflateInit2(this.strm,y.level,y.method,y.windowBits,y.memLevel,y.strategy);if(C!==h)throw new Error(u[C]);if(y.header&&s.deflateSetHeader(this.strm,y.header),y.dictionary){var O;if(O=typeof y.dictionary=="string"?a.string2buf(y.dictionary):d.call(y.dictionary)==="[object ArrayBuffer]"?new Uint8Array(y.dictionary):y.dictionary,(C=s.deflateSetDictionary(this.strm,O))!==h)throw new Error(u[C]);this._dict_set=!0}}function _(p,y){var C=new g(y);if(C.push(p,!0),C.err)throw C.msg||u[C.err];return C.result}g.prototype.push=function(p,y){var C,O,D=this.strm,B=this.options.chunkSize;if(this.ended)return!1;O=y===~~y?y:y===!0?4:0,typeof p=="string"?D.input=a.string2buf(p):d.call(p)==="[object ArrayBuffer]"?D.input=new Uint8Array(p):D.input=p,D.next_in=0,D.avail_in=D.input.length;do{if(D.avail_out===0&&(D.output=new o.Buf8(B),D.next_out=0,D.avail_out=B),(C=s.deflate(D,O))!==1&&C!==h)return this.onEnd(C),!(this.ended=!0);D.avail_out!==0&&(D.avail_in!==0||O!==4&&O!==2)||(this.options.to==="string"?this.onData(a.buf2binstring(o.shrinkBuf(D.output,D.next_out))):this.onData(o.shrinkBuf(D.output,D.next_out)))}while((0<D.avail_in||D.avail_out===0)&&C!==1);return O===4?(C=s.deflateEnd(this.strm),this.onEnd(C),this.ended=!0,C===h):O!==2||(this.onEnd(h),!(D.avail_out=0))},g.prototype.onData=function(p){this.chunks.push(p)},g.prototype.onEnd=function(p){p===h&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=p,this.msg=this.strm.msg},i.Deflate=g,i.deflate=_,i.deflateRaw=function(p,y){return(y=y||{}).raw=!0,_(p,y)},i.gzip=function(p,y){return(y=y||{}).gzip=!0,_(p,y)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(n,r,i){var s=n("./zlib/inflate"),o=n("./utils/common"),a=n("./utils/strings"),u=n("./zlib/constants"),c=n("./zlib/messages"),d=n("./zlib/zstream"),h=n("./zlib/gzheader"),b=Object.prototype.toString;function f(g){if(!(this instanceof f))return new f(g);this.options=o.assign({chunkSize:16384,windowBits:0,to:""},g||{});var _=this.options;_.raw&&0<=_.windowBits&&_.windowBits<16&&(_.windowBits=-_.windowBits,_.windowBits===0&&(_.windowBits=-15)),!(0<=_.windowBits&&_.windowBits<16)||g&&g.windowBits||(_.windowBits+=32),15<_.windowBits&&_.windowBits<48&&(15&_.windowBits)==0&&(_.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new d,this.strm.avail_out=0;var p=s.inflateInit2(this.strm,_.windowBits);if(p!==u.Z_OK)throw new Error(c[p]);this.header=new h,s.inflateGetHeader(this.strm,this.header)}function m(g,_){var p=new f(_);if(p.push(g,!0),p.err)throw p.msg||c[p.err];return p.result}f.prototype.push=function(g,_){var p,y,C,O,D,B,A=this.strm,S=this.options.chunkSize,k=this.options.dictionary,P=!1;if(this.ended)return!1;y=_===~~_?_:_===!0?u.Z_FINISH:u.Z_NO_FLUSH,typeof g=="string"?A.input=a.binstring2buf(g):b.call(g)==="[object ArrayBuffer]"?A.input=new Uint8Array(g):A.input=g,A.next_in=0,A.avail_in=A.input.length;do{if(A.avail_out===0&&(A.output=new o.Buf8(S),A.next_out=0,A.avail_out=S),(p=s.inflate(A,u.Z_NO_FLUSH))===u.Z_NEED_DICT&&k&&(B=typeof k=="string"?a.string2buf(k):b.call(k)==="[object ArrayBuffer]"?new Uint8Array(k):k,p=s.inflateSetDictionary(this.strm,B)),p===u.Z_BUF_ERROR&&P===!0&&(p=u.Z_OK,P=!1),p!==u.Z_STREAM_END&&p!==u.Z_OK)return this.onEnd(p),!(this.ended=!0);A.next_out&&(A.avail_out!==0&&p!==u.Z_STREAM_END&&(A.avail_in!==0||y!==u.Z_FINISH&&y!==u.Z_SYNC_FLUSH)||(this.options.to==="string"?(C=a.utf8border(A.output,A.next_out),O=A.next_out-C,D=a.buf2string(A.output,C),A.next_out=O,A.avail_out=S-O,O&&o.arraySet(A.output,A.output,C,O,0),this.onData(D)):this.onData(o.shrinkBuf(A.output,A.next_out)))),A.avail_in===0&&A.avail_out===0&&(P=!0)}while((0<A.avail_in||A.avail_out===0)&&p!==u.Z_STREAM_END);return p===u.Z_STREAM_END&&(y=u.Z_FINISH),y===u.Z_FINISH?(p=s.inflateEnd(this.strm),this.onEnd(p),this.ended=!0,p===u.Z_OK):y!==u.Z_SYNC_FLUSH||(this.onEnd(u.Z_OK),!(A.avail_out=0))},f.prototype.onData=function(g){this.chunks.push(g)},f.prototype.onEnd=function(g){g===u.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=g,this.msg=this.strm.msg},i.Inflate=f,i.inflate=m,i.inflateRaw=function(g,_){return(_=_||{}).raw=!0,m(g,_)},i.ungzip=m},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(n,r,i){var s=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";i.assign=function(u){for(var c=Array.prototype.slice.call(arguments,1);c.length;){var d=c.shift();if(d){if(typeof d!="object")throw new TypeError(d+"must be non-object");for(var h in d)d.hasOwnProperty(h)&&(u[h]=d[h])}}return u},i.shrinkBuf=function(u,c){return u.length===c?u:u.subarray?u.subarray(0,c):(u.length=c,u)};var o={arraySet:function(u,c,d,h,b){if(c.subarray&&u.subarray)u.set(c.subarray(d,d+h),b);else for(var f=0;f<h;f++)u[b+f]=c[d+f]},flattenChunks:function(u){var c,d,h,b,f,m;for(c=h=0,d=u.length;c<d;c++)h+=u[c].length;for(m=new Uint8Array(h),c=b=0,d=u.length;c<d;c++)f=u[c],m.set(f,b),b+=f.length;return m}},a={arraySet:function(u,c,d,h,b){for(var f=0;f<h;f++)u[b+f]=c[d+f]},flattenChunks:function(u){return[].concat.apply([],u)}};i.setTyped=function(u){u?(i.Buf8=Uint8Array,i.Buf16=Uint16Array,i.Buf32=Int32Array,i.assign(i,o)):(i.Buf8=Array,i.Buf16=Array,i.Buf32=Array,i.assign(i,a))},i.setTyped(s)},{}],42:[function(n,r,i){var s=n("./common"),o=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch{o=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{a=!1}for(var u=new s.Buf8(256),c=0;c<256;c++)u[c]=252<=c?6:248<=c?5:240<=c?4:224<=c?3:192<=c?2:1;function d(h,b){if(b<65537&&(h.subarray&&a||!h.subarray&&o))return String.fromCharCode.apply(null,s.shrinkBuf(h,b));for(var f="",m=0;m<b;m++)f+=String.fromCharCode(h[m]);return f}u[254]=u[254]=1,i.string2buf=function(h){var b,f,m,g,_,p=h.length,y=0;for(g=0;g<p;g++)(64512&(f=h.charCodeAt(g)))==55296&&g+1<p&&(64512&(m=h.charCodeAt(g+1)))==56320&&(f=65536+(f-55296<<10)+(m-56320),g++),y+=f<128?1:f<2048?2:f<65536?3:4;for(b=new s.Buf8(y),g=_=0;_<y;g++)(64512&(f=h.charCodeAt(g)))==55296&&g+1<p&&(64512&(m=h.charCodeAt(g+1)))==56320&&(f=65536+(f-55296<<10)+(m-56320),g++),f<128?b[_++]=f:(f<2048?b[_++]=192|f>>>6:(f<65536?b[_++]=224|f>>>12:(b[_++]=240|f>>>18,b[_++]=128|f>>>12&63),b[_++]=128|f>>>6&63),b[_++]=128|63&f);return b},i.buf2binstring=function(h){return d(h,h.length)},i.binstring2buf=function(h){for(var b=new s.Buf8(h.length),f=0,m=b.length;f<m;f++)b[f]=h.charCodeAt(f);return b},i.buf2string=function(h,b){var f,m,g,_,p=b||h.length,y=new Array(2*p);for(f=m=0;f<p;)if((g=h[f++])<128)y[m++]=g;else if(4<(_=u[g]))y[m++]=65533,f+=_-1;else{for(g&=_===2?31:_===3?15:7;1<_&&f<p;)g=g<<6|63&h[f++],_--;1<_?y[m++]=65533:g<65536?y[m++]=g:(g-=65536,y[m++]=55296|g>>10&1023,y[m++]=56320|1023&g)}return d(y,m)},i.utf8border=function(h,b){var f;for((b=b||h.length)>h.length&&(b=h.length),f=b-1;0<=f&&(192&h[f])==128;)f--;return f<0||f===0?b:f+u[h[f]]>b?f:b}},{"./common":41}],43:[function(n,r,i){r.exports=function(s,o,a,u){for(var c=65535&s|0,d=s>>>16&65535|0,h=0;a!==0;){for(a-=h=2e3<a?2e3:a;d=d+(c=c+o[u++]|0)|0,--h;);c%=65521,d%=65521}return c|d<<16|0}},{}],44:[function(n,r,i){r.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(n,r,i){var s=(function(){for(var o,a=[],u=0;u<256;u++){o=u;for(var c=0;c<8;c++)o=1&o?3988292384^o>>>1:o>>>1;a[u]=o}return a})();r.exports=function(o,a,u,c){var d=s,h=c+u;o^=-1;for(var b=c;b<h;b++)o=o>>>8^d[255&(o^a[b])];return-1^o}},{}],46:[function(n,r,i){var s,o=n("../utils/common"),a=n("./trees"),u=n("./adler32"),c=n("./crc32"),d=n("./messages"),h=0,b=4,f=0,m=-2,g=-1,_=4,p=2,y=8,C=9,O=286,D=30,B=19,A=2*O+1,S=15,k=3,P=258,R=P+k+1,x=42,M=113,T=1,U=2,W=3,G=4;function se(E,V){return E.msg=d[V],V}function Z(E){return(E<<1)-(4<E?9:0)}function he(E){for(var V=E.length;0<=--V;)E[V]=0}function j(E){var V=E.state,Y=V.pending;Y>E.avail_out&&(Y=E.avail_out),Y!==0&&(o.arraySet(E.output,V.pending_buf,V.pending_out,Y,E.next_out),E.next_out+=Y,V.pending_out+=Y,E.total_out+=Y,E.avail_out-=Y,V.pending-=Y,V.pending===0&&(V.pending_out=0))}function $(E,V){a._tr_flush_block(E,0<=E.block_start?E.block_start:-1,E.strstart-E.block_start,V),E.block_start=E.strstart,j(E.strm)}function oe(E,V){E.pending_buf[E.pending++]=V}function ae(E,V){E.pending_buf[E.pending++]=V>>>8&255,E.pending_buf[E.pending++]=255&V}function ie(E,V){var Y,v,I=E.max_chain_length,F=E.strstart,K=E.prev_length,Q=E.nice_match,z=E.strstart>E.w_size-R?E.strstart-(E.w_size-R):0,te=E.window,ue=E.w_mask,re=E.prev,ce=E.strstart+P,Ie=te[F+K-1],ye=te[F+K];E.prev_length>=E.good_match&&(I>>=2),Q>E.lookahead&&(Q=E.lookahead);do if(te[(Y=V)+K]===ye&&te[Y+K-1]===Ie&&te[Y]===te[F]&&te[++Y]===te[F+1]){F+=2,Y++;do;while(te[++F]===te[++Y]&&te[++F]===te[++Y]&&te[++F]===te[++Y]&&te[++F]===te[++Y]&&te[++F]===te[++Y]&&te[++F]===te[++Y]&&te[++F]===te[++Y]&&te[++F]===te[++Y]&&F<ce);if(v=P-(ce-F),F=ce-P,K<v){if(E.match_start=V,Q<=(K=v))break;Ie=te[F+K-1],ye=te[F+K]}}while((V=re[V&ue])>z&&--I!=0);return K<=E.lookahead?K:E.lookahead}function Re(E){var V,Y,v,I,F,K,Q,z,te,ue,re=E.w_size;do{if(I=E.window_size-E.lookahead-E.strstart,E.strstart>=re+(re-R)){for(o.arraySet(E.window,E.window,re,re,0),E.match_start-=re,E.strstart-=re,E.block_start-=re,V=Y=E.hash_size;v=E.head[--V],E.head[V]=re<=v?v-re:0,--Y;);for(V=Y=re;v=E.prev[--V],E.prev[V]=re<=v?v-re:0,--Y;);I+=re}if(E.strm.avail_in===0)break;if(K=E.strm,Q=E.window,z=E.strstart+E.lookahead,te=I,ue=void 0,ue=K.avail_in,te<ue&&(ue=te),Y=ue===0?0:(K.avail_in-=ue,o.arraySet(Q,K.input,K.next_in,ue,z),K.state.wrap===1?K.adler=u(K.adler,Q,ue,z):K.state.wrap===2&&(K.adler=c(K.adler,Q,ue,z)),K.next_in+=ue,K.total_in+=ue,ue),E.lookahead+=Y,E.lookahead+E.insert>=k)for(F=E.strstart-E.insert,E.ins_h=E.window[F],E.ins_h=(E.ins_h<<E.hash_shift^E.window[F+1])&E.hash_mask;E.insert&&(E.ins_h=(E.ins_h<<E.hash_shift^E.window[F+k-1])&E.hash_mask,E.prev[F&E.w_mask]=E.head[E.ins_h],E.head[E.ins_h]=F,F++,E.insert--,!(E.lookahead+E.insert<k)););}while(E.lookahead<R&&E.strm.avail_in!==0)}function Qe(E,V){for(var Y,v;;){if(E.lookahead<R){if(Re(E),E.lookahead<R&&V===h)return T;if(E.lookahead===0)break}if(Y=0,E.lookahead>=k&&(E.ins_h=(E.ins_h<<E.hash_shift^E.window[E.strstart+k-1])&E.hash_mask,Y=E.prev[E.strstart&E.w_mask]=E.head[E.ins_h],E.head[E.ins_h]=E.strstart),Y!==0&&E.strstart-Y<=E.w_size-R&&(E.match_length=ie(E,Y)),E.match_length>=k)if(v=a._tr_tally(E,E.strstart-E.match_start,E.match_length-k),E.lookahead-=E.match_length,E.match_length<=E.max_lazy_match&&E.lookahead>=k){for(E.match_length--;E.strstart++,E.ins_h=(E.ins_h<<E.hash_shift^E.window[E.strstart+k-1])&E.hash_mask,Y=E.prev[E.strstart&E.w_mask]=E.head[E.ins_h],E.head[E.ins_h]=E.strstart,--E.match_length!=0;);E.strstart++}else E.strstart+=E.match_length,E.match_length=0,E.ins_h=E.window[E.strstart],E.ins_h=(E.ins_h<<E.hash_shift^E.window[E.strstart+1])&E.hash_mask;else v=a._tr_tally(E,0,E.window[E.strstart]),E.lookahead--,E.strstart++;if(v&&($(E,!1),E.strm.avail_out===0))return T}return E.insert=E.strstart<k-1?E.strstart:k-1,V===b?($(E,!0),E.strm.avail_out===0?W:G):E.last_lit&&($(E,!1),E.strm.avail_out===0)?T:U}function Ee(E,V){for(var Y,v,I;;){if(E.lookahead<R){if(Re(E),E.lookahead<R&&V===h)return T;if(E.lookahead===0)break}if(Y=0,E.lookahead>=k&&(E.ins_h=(E.ins_h<<E.hash_shift^E.window[E.strstart+k-1])&E.hash_mask,Y=E.prev[E.strstart&E.w_mask]=E.head[E.ins_h],E.head[E.ins_h]=E.strstart),E.prev_length=E.match_length,E.prev_match=E.match_start,E.match_length=k-1,Y!==0&&E.prev_length<E.max_lazy_match&&E.strstart-Y<=E.w_size-R&&(E.match_length=ie(E,Y),E.match_length<=5&&(E.strategy===1||E.match_length===k&&4096<E.strstart-E.match_start)&&(E.match_length=k-1)),E.prev_length>=k&&E.match_length<=E.prev_length){for(I=E.strstart+E.lookahead-k,v=a._tr_tally(E,E.strstart-1-E.prev_match,E.prev_length-k),E.lookahead-=E.prev_length-1,E.prev_length-=2;++E.strstart<=I&&(E.ins_h=(E.ins_h<<E.hash_shift^E.window[E.strstart+k-1])&E.hash_mask,Y=E.prev[E.strstart&E.w_mask]=E.head[E.ins_h],E.head[E.ins_h]=E.strstart),--E.prev_length!=0;);if(E.match_available=0,E.match_length=k-1,E.strstart++,v&&($(E,!1),E.strm.avail_out===0))return T}else if(E.match_available){if((v=a._tr_tally(E,0,E.window[E.strstart-1]))&&$(E,!1),E.strstart++,E.lookahead--,E.strm.avail_out===0)return T}else E.match_available=1,E.strstart++,E.lookahead--}return E.match_available&&(v=a._tr_tally(E,0,E.window[E.strstart-1]),E.match_available=0),E.insert=E.strstart<k-1?E.strstart:k-1,V===b?($(E,!0),E.strm.avail_out===0?W:G):E.last_lit&&($(E,!1),E.strm.avail_out===0)?T:U}function we(E,V,Y,v,I){this.good_length=E,this.max_lazy=V,this.nice_length=Y,this.max_chain=v,this.func=I}function je(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=y,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new o.Buf16(2*A),this.dyn_dtree=new o.Buf16(2*(2*D+1)),this.bl_tree=new o.Buf16(2*(2*B+1)),he(this.dyn_ltree),he(this.dyn_dtree),he(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new o.Buf16(S+1),this.heap=new o.Buf16(2*O+1),he(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new o.Buf16(2*O+1),he(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Pe(E){var V;return E&&E.state?(E.total_in=E.total_out=0,E.data_type=p,(V=E.state).pending=0,V.pending_out=0,V.wrap<0&&(V.wrap=-V.wrap),V.status=V.wrap?x:M,E.adler=V.wrap===2?0:1,V.last_flush=h,a._tr_init(V),f):se(E,m)}function vt(E){var V=Pe(E);return V===f&&(function(Y){Y.window_size=2*Y.w_size,he(Y.head),Y.max_lazy_match=s[Y.level].max_lazy,Y.good_match=s[Y.level].good_length,Y.nice_match=s[Y.level].nice_length,Y.max_chain_length=s[Y.level].max_chain,Y.strstart=0,Y.block_start=0,Y.lookahead=0,Y.insert=0,Y.match_length=Y.prev_length=k-1,Y.match_available=0,Y.ins_h=0})(E.state),V}function kt(E,V,Y,v,I,F){if(!E)return m;var K=1;if(V===g&&(V=6),v<0?(K=0,v=-v):15<v&&(K=2,v-=16),I<1||C<I||Y!==y||v<8||15<v||V<0||9<V||F<0||_<F)return se(E,m);v===8&&(v=9);var Q=new je;return(E.state=Q).strm=E,Q.wrap=K,Q.gzhead=null,Q.w_bits=v,Q.w_size=1<<Q.w_bits,Q.w_mask=Q.w_size-1,Q.hash_bits=I+7,Q.hash_size=1<<Q.hash_bits,Q.hash_mask=Q.hash_size-1,Q.hash_shift=~~((Q.hash_bits+k-1)/k),Q.window=new o.Buf8(2*Q.w_size),Q.head=new o.Buf16(Q.hash_size),Q.prev=new o.Buf16(Q.w_size),Q.lit_bufsize=1<<I+6,Q.pending_buf_size=4*Q.lit_bufsize,Q.pending_buf=new o.Buf8(Q.pending_buf_size),Q.d_buf=1*Q.lit_bufsize,Q.l_buf=3*Q.lit_bufsize,Q.level=V,Q.strategy=F,Q.method=Y,vt(E)}s=[new we(0,0,0,0,function(E,V){var Y=65535;for(Y>E.pending_buf_size-5&&(Y=E.pending_buf_size-5);;){if(E.lookahead<=1){if(Re(E),E.lookahead===0&&V===h)return T;if(E.lookahead===0)break}E.strstart+=E.lookahead,E.lookahead=0;var v=E.block_start+Y;if((E.strstart===0||E.strstart>=v)&&(E.lookahead=E.strstart-v,E.strstart=v,$(E,!1),E.strm.avail_out===0)||E.strstart-E.block_start>=E.w_size-R&&($(E,!1),E.strm.avail_out===0))return T}return E.insert=0,V===b?($(E,!0),E.strm.avail_out===0?W:G):(E.strstart>E.block_start&&($(E,!1),E.strm.avail_out),T)}),new we(4,4,8,4,Qe),new we(4,5,16,8,Qe),new we(4,6,32,32,Qe),new we(4,4,16,16,Ee),new we(8,16,32,32,Ee),new we(8,16,128,128,Ee),new we(8,32,128,256,Ee),new we(32,128,258,1024,Ee),new we(32,258,258,4096,Ee)],i.deflateInit=function(E,V){return kt(E,V,y,15,8,0)},i.deflateInit2=kt,i.deflateReset=vt,i.deflateResetKeep=Pe,i.deflateSetHeader=function(E,V){return E&&E.state?E.state.wrap!==2?m:(E.state.gzhead=V,f):m},i.deflate=function(E,V){var Y,v,I,F;if(!E||!E.state||5<V||V<0)return E?se(E,m):m;if(v=E.state,!E.output||!E.input&&E.avail_in!==0||v.status===666&&V!==b)return se(E,E.avail_out===0?-5:m);if(v.strm=E,Y=v.last_flush,v.last_flush=V,v.status===x)if(v.wrap===2)E.adler=0,oe(v,31),oe(v,139),oe(v,8),v.gzhead?(oe(v,(v.gzhead.text?1:0)+(v.gzhead.hcrc?2:0)+(v.gzhead.extra?4:0)+(v.gzhead.name?8:0)+(v.gzhead.comment?16:0)),oe(v,255&v.gzhead.time),oe(v,v.gzhead.time>>8&255),oe(v,v.gzhead.time>>16&255),oe(v,v.gzhead.time>>24&255),oe(v,v.level===9?2:2<=v.strategy||v.level<2?4:0),oe(v,255&v.gzhead.os),v.gzhead.extra&&v.gzhead.extra.length&&(oe(v,255&v.gzhead.extra.length),oe(v,v.gzhead.extra.length>>8&255)),v.gzhead.hcrc&&(E.adler=c(E.adler,v.pending_buf,v.pending,0)),v.gzindex=0,v.status=69):(oe(v,0),oe(v,0),oe(v,0),oe(v,0),oe(v,0),oe(v,v.level===9?2:2<=v.strategy||v.level<2?4:0),oe(v,3),v.status=M);else{var K=y+(v.w_bits-8<<4)<<8;K|=(2<=v.strategy||v.level<2?0:v.level<6?1:v.level===6?2:3)<<6,v.strstart!==0&&(K|=32),K+=31-K%31,v.status=M,ae(v,K),v.strstart!==0&&(ae(v,E.adler>>>16),ae(v,65535&E.adler)),E.adler=1}if(v.status===69)if(v.gzhead.extra){for(I=v.pending;v.gzindex<(65535&v.gzhead.extra.length)&&(v.pending!==v.pending_buf_size||(v.gzhead.hcrc&&v.pending>I&&(E.adler=c(E.adler,v.pending_buf,v.pending-I,I)),j(E),I=v.pending,v.pending!==v.pending_buf_size));)oe(v,255&v.gzhead.extra[v.gzindex]),v.gzindex++;v.gzhead.hcrc&&v.pending>I&&(E.adler=c(E.adler,v.pending_buf,v.pending-I,I)),v.gzindex===v.gzhead.extra.length&&(v.gzindex=0,v.status=73)}else v.status=73;if(v.status===73)if(v.gzhead.name){I=v.pending;do{if(v.pending===v.pending_buf_size&&(v.gzhead.hcrc&&v.pending>I&&(E.adler=c(E.adler,v.pending_buf,v.pending-I,I)),j(E),I=v.pending,v.pending===v.pending_buf_size)){F=1;break}F=v.gzindex<v.gzhead.name.length?255&v.gzhead.name.charCodeAt(v.gzindex++):0,oe(v,F)}while(F!==0);v.gzhead.hcrc&&v.pending>I&&(E.adler=c(E.adler,v.pending_buf,v.pending-I,I)),F===0&&(v.gzindex=0,v.status=91)}else v.status=91;if(v.status===91)if(v.gzhead.comment){I=v.pending;do{if(v.pending===v.pending_buf_size&&(v.gzhead.hcrc&&v.pending>I&&(E.adler=c(E.adler,v.pending_buf,v.pending-I,I)),j(E),I=v.pending,v.pending===v.pending_buf_size)){F=1;break}F=v.gzindex<v.gzhead.comment.length?255&v.gzhead.comment.charCodeAt(v.gzindex++):0,oe(v,F)}while(F!==0);v.gzhead.hcrc&&v.pending>I&&(E.adler=c(E.adler,v.pending_buf,v.pending-I,I)),F===0&&(v.status=103)}else v.status=103;if(v.status===103&&(v.gzhead.hcrc?(v.pending+2>v.pending_buf_size&&j(E),v.pending+2<=v.pending_buf_size&&(oe(v,255&E.adler),oe(v,E.adler>>8&255),E.adler=0,v.status=M)):v.status=M),v.pending!==0){if(j(E),E.avail_out===0)return v.last_flush=-1,f}else if(E.avail_in===0&&Z(V)<=Z(Y)&&V!==b)return se(E,-5);if(v.status===666&&E.avail_in!==0)return se(E,-5);if(E.avail_in!==0||v.lookahead!==0||V!==h&&v.status!==666){var Q=v.strategy===2?(function(z,te){for(var ue;;){if(z.lookahead===0&&(Re(z),z.lookahead===0)){if(te===h)return T;break}if(z.match_length=0,ue=a._tr_tally(z,0,z.window[z.strstart]),z.lookahead--,z.strstart++,ue&&($(z,!1),z.strm.avail_out===0))return T}return z.insert=0,te===b?($(z,!0),z.strm.avail_out===0?W:G):z.last_lit&&($(z,!1),z.strm.avail_out===0)?T:U})(v,V):v.strategy===3?(function(z,te){for(var ue,re,ce,Ie,ye=z.window;;){if(z.lookahead<=P){if(Re(z),z.lookahead<=P&&te===h)return T;if(z.lookahead===0)break}if(z.match_length=0,z.lookahead>=k&&0<z.strstart&&(re=ye[ce=z.strstart-1])===ye[++ce]&&re===ye[++ce]&&re===ye[++ce]){Ie=z.strstart+P;do;while(re===ye[++ce]&&re===ye[++ce]&&re===ye[++ce]&&re===ye[++ce]&&re===ye[++ce]&&re===ye[++ce]&&re===ye[++ce]&&re===ye[++ce]&&ce<Ie);z.match_length=P-(Ie-ce),z.match_length>z.lookahead&&(z.match_length=z.lookahead)}if(z.match_length>=k?(ue=a._tr_tally(z,1,z.match_length-k),z.lookahead-=z.match_length,z.strstart+=z.match_length,z.match_length=0):(ue=a._tr_tally(z,0,z.window[z.strstart]),z.lookahead--,z.strstart++),ue&&($(z,!1),z.strm.avail_out===0))return T}return z.insert=0,te===b?($(z,!0),z.strm.avail_out===0?W:G):z.last_lit&&($(z,!1),z.strm.avail_out===0)?T:U})(v,V):s[v.level].func(v,V);if(Q!==W&&Q!==G||(v.status=666),Q===T||Q===W)return E.avail_out===0&&(v.last_flush=-1),f;if(Q===U&&(V===1?a._tr_align(v):V!==5&&(a._tr_stored_block(v,0,0,!1),V===3&&(he(v.head),v.lookahead===0&&(v.strstart=0,v.block_start=0,v.insert=0))),j(E),E.avail_out===0))return v.last_flush=-1,f}return V!==b?f:v.wrap<=0?1:(v.wrap===2?(oe(v,255&E.adler),oe(v,E.adler>>8&255),oe(v,E.adler>>16&255),oe(v,E.adler>>24&255),oe(v,255&E.total_in),oe(v,E.total_in>>8&255),oe(v,E.total_in>>16&255),oe(v,E.total_in>>24&255)):(ae(v,E.adler>>>16),ae(v,65535&E.adler)),j(E),0<v.wrap&&(v.wrap=-v.wrap),v.pending!==0?f:1)},i.deflateEnd=function(E){var V;return E&&E.state?(V=E.state.status)!==x&&V!==69&&V!==73&&V!==91&&V!==103&&V!==M&&V!==666?se(E,m):(E.state=null,V===M?se(E,-3):f):m},i.deflateSetDictionary=function(E,V){var Y,v,I,F,K,Q,z,te,ue=V.length;if(!E||!E.state||(F=(Y=E.state).wrap)===2||F===1&&Y.status!==x||Y.lookahead)return m;for(F===1&&(E.adler=u(E.adler,V,ue,0)),Y.wrap=0,ue>=Y.w_size&&(F===0&&(he(Y.head),Y.strstart=0,Y.block_start=0,Y.insert=0),te=new o.Buf8(Y.w_size),o.arraySet(te,V,ue-Y.w_size,Y.w_size,0),V=te,ue=Y.w_size),K=E.avail_in,Q=E.next_in,z=E.input,E.avail_in=ue,E.next_in=0,E.input=V,Re(Y);Y.lookahead>=k;){for(v=Y.strstart,I=Y.lookahead-(k-1);Y.ins_h=(Y.ins_h<<Y.hash_shift^Y.window[v+k-1])&Y.hash_mask,Y.prev[v&Y.w_mask]=Y.head[Y.ins_h],Y.head[Y.ins_h]=v,v++,--I;);Y.strstart=v,Y.lookahead=k-1,Re(Y)}return Y.strstart+=Y.lookahead,Y.block_start=Y.strstart,Y.insert=Y.lookahead,Y.lookahead=0,Y.match_length=Y.prev_length=k-1,Y.match_available=0,E.next_in=Q,E.input=z,E.avail_in=K,Y.wrap=F,f},i.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(n,r,i){r.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(n,r,i){r.exports=function(s,o){var a,u,c,d,h,b,f,m,g,_,p,y,C,O,D,B,A,S,k,P,R,x,M,T,U;a=s.state,u=s.next_in,T=s.input,c=u+(s.avail_in-5),d=s.next_out,U=s.output,h=d-(o-s.avail_out),b=d+(s.avail_out-257),f=a.dmax,m=a.wsize,g=a.whave,_=a.wnext,p=a.window,y=a.hold,C=a.bits,O=a.lencode,D=a.distcode,B=(1<<a.lenbits)-1,A=(1<<a.distbits)-1;e:do{C<15&&(y+=T[u++]<<C,C+=8,y+=T[u++]<<C,C+=8),S=O[y&B];t:for(;;){if(y>>>=k=S>>>24,C-=k,(k=S>>>16&255)===0)U[d++]=65535&S;else{if(!(16&k)){if((64&k)==0){S=O[(65535&S)+(y&(1<<k)-1)];continue t}if(32&k){a.mode=12;break e}s.msg="invalid literal/length code",a.mode=30;break e}P=65535&S,(k&=15)&&(C<k&&(y+=T[u++]<<C,C+=8),P+=y&(1<<k)-1,y>>>=k,C-=k),C<15&&(y+=T[u++]<<C,C+=8,y+=T[u++]<<C,C+=8),S=D[y&A];n:for(;;){if(y>>>=k=S>>>24,C-=k,!(16&(k=S>>>16&255))){if((64&k)==0){S=D[(65535&S)+(y&(1<<k)-1)];continue n}s.msg="invalid distance code",a.mode=30;break e}if(R=65535&S,C<(k&=15)&&(y+=T[u++]<<C,(C+=8)<k&&(y+=T[u++]<<C,C+=8)),f<(R+=y&(1<<k)-1)){s.msg="invalid distance too far back",a.mode=30;break e}if(y>>>=k,C-=k,(k=d-h)<R){if(g<(k=R-k)&&a.sane){s.msg="invalid distance too far back",a.mode=30;break e}if(M=p,(x=0)===_){if(x+=m-k,k<P){for(P-=k;U[d++]=p[x++],--k;);x=d-R,M=U}}else if(_<k){if(x+=m+_-k,(k-=_)<P){for(P-=k;U[d++]=p[x++],--k;);if(x=0,_<P){for(P-=k=_;U[d++]=p[x++],--k;);x=d-R,M=U}}}else if(x+=_-k,k<P){for(P-=k;U[d++]=p[x++],--k;);x=d-R,M=U}for(;2<P;)U[d++]=M[x++],U[d++]=M[x++],U[d++]=M[x++],P-=3;P&&(U[d++]=M[x++],1<P&&(U[d++]=M[x++]))}else{for(x=d-R;U[d++]=U[x++],U[d++]=U[x++],U[d++]=U[x++],2<(P-=3););P&&(U[d++]=U[x++],1<P&&(U[d++]=U[x++]))}break}}break}}while(u<c&&d<b);u-=P=C>>3,y&=(1<<(C-=P<<3))-1,s.next_in=u,s.next_out=d,s.avail_in=u<c?c-u+5:5-(u-c),s.avail_out=d<b?b-d+257:257-(d-b),a.hold=y,a.bits=C}},{}],49:[function(n,r,i){var s=n("../utils/common"),o=n("./adler32"),a=n("./crc32"),u=n("./inffast"),c=n("./inftrees"),d=1,h=2,b=0,f=-2,m=1,g=852,_=592;function p(x){return(x>>>24&255)+(x>>>8&65280)+((65280&x)<<8)+((255&x)<<24)}function y(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new s.Buf16(320),this.work=new s.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function C(x){var M;return x&&x.state?(M=x.state,x.total_in=x.total_out=M.total=0,x.msg="",M.wrap&&(x.adler=1&M.wrap),M.mode=m,M.last=0,M.havedict=0,M.dmax=32768,M.head=null,M.hold=0,M.bits=0,M.lencode=M.lendyn=new s.Buf32(g),M.distcode=M.distdyn=new s.Buf32(_),M.sane=1,M.back=-1,b):f}function O(x){var M;return x&&x.state?((M=x.state).wsize=0,M.whave=0,M.wnext=0,C(x)):f}function D(x,M){var T,U;return x&&x.state?(U=x.state,M<0?(T=0,M=-M):(T=1+(M>>4),M<48&&(M&=15)),M&&(M<8||15<M)?f:(U.window!==null&&U.wbits!==M&&(U.window=null),U.wrap=T,U.wbits=M,O(x))):f}function B(x,M){var T,U;return x?(U=new y,(x.state=U).window=null,(T=D(x,M))!==b&&(x.state=null),T):f}var A,S,k=!0;function P(x){if(k){var M;for(A=new s.Buf32(512),S=new s.Buf32(32),M=0;M<144;)x.lens[M++]=8;for(;M<256;)x.lens[M++]=9;for(;M<280;)x.lens[M++]=7;for(;M<288;)x.lens[M++]=8;for(c(d,x.lens,0,288,A,0,x.work,{bits:9}),M=0;M<32;)x.lens[M++]=5;c(h,x.lens,0,32,S,0,x.work,{bits:5}),k=!1}x.lencode=A,x.lenbits=9,x.distcode=S,x.distbits=5}function R(x,M,T,U){var W,G=x.state;return G.window===null&&(G.wsize=1<<G.wbits,G.wnext=0,G.whave=0,G.window=new s.Buf8(G.wsize)),U>=G.wsize?(s.arraySet(G.window,M,T-G.wsize,G.wsize,0),G.wnext=0,G.whave=G.wsize):(U<(W=G.wsize-G.wnext)&&(W=U),s.arraySet(G.window,M,T-U,W,G.wnext),(U-=W)?(s.arraySet(G.window,M,T-U,U,0),G.wnext=U,G.whave=G.wsize):(G.wnext+=W,G.wnext===G.wsize&&(G.wnext=0),G.whave<G.wsize&&(G.whave+=W))),0}i.inflateReset=O,i.inflateReset2=D,i.inflateResetKeep=C,i.inflateInit=function(x){return B(x,15)},i.inflateInit2=B,i.inflate=function(x,M){var T,U,W,G,se,Z,he,j,$,oe,ae,ie,Re,Qe,Ee,we,je,Pe,vt,kt,E,V,Y,v,I=0,F=new s.Buf8(4),K=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!x||!x.state||!x.output||!x.input&&x.avail_in!==0)return f;(T=x.state).mode===12&&(T.mode=13),se=x.next_out,W=x.output,he=x.avail_out,G=x.next_in,U=x.input,Z=x.avail_in,j=T.hold,$=T.bits,oe=Z,ae=he,V=b;e:for(;;)switch(T.mode){case m:if(T.wrap===0){T.mode=13;break}for(;$<16;){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}if(2&T.wrap&&j===35615){F[T.check=0]=255&j,F[1]=j>>>8&255,T.check=a(T.check,F,2,0),$=j=0,T.mode=2;break}if(T.flags=0,T.head&&(T.head.done=!1),!(1&T.wrap)||(((255&j)<<8)+(j>>8))%31){x.msg="incorrect header check",T.mode=30;break}if((15&j)!=8){x.msg="unknown compression method",T.mode=30;break}if($-=4,E=8+(15&(j>>>=4)),T.wbits===0)T.wbits=E;else if(E>T.wbits){x.msg="invalid window size",T.mode=30;break}T.dmax=1<<E,x.adler=T.check=1,T.mode=512&j?10:12,$=j=0;break;case 2:for(;$<16;){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}if(T.flags=j,(255&T.flags)!=8){x.msg="unknown compression method",T.mode=30;break}if(57344&T.flags){x.msg="unknown header flags set",T.mode=30;break}T.head&&(T.head.text=j>>8&1),512&T.flags&&(F[0]=255&j,F[1]=j>>>8&255,T.check=a(T.check,F,2,0)),$=j=0,T.mode=3;case 3:for(;$<32;){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}T.head&&(T.head.time=j),512&T.flags&&(F[0]=255&j,F[1]=j>>>8&255,F[2]=j>>>16&255,F[3]=j>>>24&255,T.check=a(T.check,F,4,0)),$=j=0,T.mode=4;case 4:for(;$<16;){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}T.head&&(T.head.xflags=255&j,T.head.os=j>>8),512&T.flags&&(F[0]=255&j,F[1]=j>>>8&255,T.check=a(T.check,F,2,0)),$=j=0,T.mode=5;case 5:if(1024&T.flags){for(;$<16;){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}T.length=j,T.head&&(T.head.extra_len=j),512&T.flags&&(F[0]=255&j,F[1]=j>>>8&255,T.check=a(T.check,F,2,0)),$=j=0}else T.head&&(T.head.extra=null);T.mode=6;case 6:if(1024&T.flags&&(Z<(ie=T.length)&&(ie=Z),ie&&(T.head&&(E=T.head.extra_len-T.length,T.head.extra||(T.head.extra=new Array(T.head.extra_len)),s.arraySet(T.head.extra,U,G,ie,E)),512&T.flags&&(T.check=a(T.check,U,ie,G)),Z-=ie,G+=ie,T.length-=ie),T.length))break e;T.length=0,T.mode=7;case 7:if(2048&T.flags){if(Z===0)break e;for(ie=0;E=U[G+ie++],T.head&&E&&T.length<65536&&(T.head.name+=String.fromCharCode(E)),E&&ie<Z;);if(512&T.flags&&(T.check=a(T.check,U,ie,G)),Z-=ie,G+=ie,E)break e}else T.head&&(T.head.name=null);T.length=0,T.mode=8;case 8:if(4096&T.flags){if(Z===0)break e;for(ie=0;E=U[G+ie++],T.head&&E&&T.length<65536&&(T.head.comment+=String.fromCharCode(E)),E&&ie<Z;);if(512&T.flags&&(T.check=a(T.check,U,ie,G)),Z-=ie,G+=ie,E)break e}else T.head&&(T.head.comment=null);T.mode=9;case 9:if(512&T.flags){for(;$<16;){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}if(j!==(65535&T.check)){x.msg="header crc mismatch",T.mode=30;break}$=j=0}T.head&&(T.head.hcrc=T.flags>>9&1,T.head.done=!0),x.adler=T.check=0,T.mode=12;break;case 10:for(;$<32;){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}x.adler=T.check=p(j),$=j=0,T.mode=11;case 11:if(T.havedict===0)return x.next_out=se,x.avail_out=he,x.next_in=G,x.avail_in=Z,T.hold=j,T.bits=$,2;x.adler=T.check=1,T.mode=12;case 12:if(M===5||M===6)break e;case 13:if(T.last){j>>>=7&$,$-=7&$,T.mode=27;break}for(;$<3;){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}switch(T.last=1&j,$-=1,3&(j>>>=1)){case 0:T.mode=14;break;case 1:if(P(T),T.mode=20,M!==6)break;j>>>=2,$-=2;break e;case 2:T.mode=17;break;case 3:x.msg="invalid block type",T.mode=30}j>>>=2,$-=2;break;case 14:for(j>>>=7&$,$-=7&$;$<32;){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}if((65535&j)!=(j>>>16^65535)){x.msg="invalid stored block lengths",T.mode=30;break}if(T.length=65535&j,$=j=0,T.mode=15,M===6)break e;case 15:T.mode=16;case 16:if(ie=T.length){if(Z<ie&&(ie=Z),he<ie&&(ie=he),ie===0)break e;s.arraySet(W,U,G,ie,se),Z-=ie,G+=ie,he-=ie,se+=ie,T.length-=ie;break}T.mode=12;break;case 17:for(;$<14;){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}if(T.nlen=257+(31&j),j>>>=5,$-=5,T.ndist=1+(31&j),j>>>=5,$-=5,T.ncode=4+(15&j),j>>>=4,$-=4,286<T.nlen||30<T.ndist){x.msg="too many length or distance symbols",T.mode=30;break}T.have=0,T.mode=18;case 18:for(;T.have<T.ncode;){for(;$<3;){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}T.lens[K[T.have++]]=7&j,j>>>=3,$-=3}for(;T.have<19;)T.lens[K[T.have++]]=0;if(T.lencode=T.lendyn,T.lenbits=7,Y={bits:T.lenbits},V=c(0,T.lens,0,19,T.lencode,0,T.work,Y),T.lenbits=Y.bits,V){x.msg="invalid code lengths set",T.mode=30;break}T.have=0,T.mode=19;case 19:for(;T.have<T.nlen+T.ndist;){for(;we=(I=T.lencode[j&(1<<T.lenbits)-1])>>>16&255,je=65535&I,!((Ee=I>>>24)<=$);){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}if(je<16)j>>>=Ee,$-=Ee,T.lens[T.have++]=je;else{if(je===16){for(v=Ee+2;$<v;){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}if(j>>>=Ee,$-=Ee,T.have===0){x.msg="invalid bit length repeat",T.mode=30;break}E=T.lens[T.have-1],ie=3+(3&j),j>>>=2,$-=2}else if(je===17){for(v=Ee+3;$<v;){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}$-=Ee,E=0,ie=3+(7&(j>>>=Ee)),j>>>=3,$-=3}else{for(v=Ee+7;$<v;){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}$-=Ee,E=0,ie=11+(127&(j>>>=Ee)),j>>>=7,$-=7}if(T.have+ie>T.nlen+T.ndist){x.msg="invalid bit length repeat",T.mode=30;break}for(;ie--;)T.lens[T.have++]=E}}if(T.mode===30)break;if(T.lens[256]===0){x.msg="invalid code -- missing end-of-block",T.mode=30;break}if(T.lenbits=9,Y={bits:T.lenbits},V=c(d,T.lens,0,T.nlen,T.lencode,0,T.work,Y),T.lenbits=Y.bits,V){x.msg="invalid literal/lengths set",T.mode=30;break}if(T.distbits=6,T.distcode=T.distdyn,Y={bits:T.distbits},V=c(h,T.lens,T.nlen,T.ndist,T.distcode,0,T.work,Y),T.distbits=Y.bits,V){x.msg="invalid distances set",T.mode=30;break}if(T.mode=20,M===6)break e;case 20:T.mode=21;case 21:if(6<=Z&&258<=he){x.next_out=se,x.avail_out=he,x.next_in=G,x.avail_in=Z,T.hold=j,T.bits=$,u(x,ae),se=x.next_out,W=x.output,he=x.avail_out,G=x.next_in,U=x.input,Z=x.avail_in,j=T.hold,$=T.bits,T.mode===12&&(T.back=-1);break}for(T.back=0;we=(I=T.lencode[j&(1<<T.lenbits)-1])>>>16&255,je=65535&I,!((Ee=I>>>24)<=$);){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}if(we&&(240&we)==0){for(Pe=Ee,vt=we,kt=je;we=(I=T.lencode[kt+((j&(1<<Pe+vt)-1)>>Pe)])>>>16&255,je=65535&I,!(Pe+(Ee=I>>>24)<=$);){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}j>>>=Pe,$-=Pe,T.back+=Pe}if(j>>>=Ee,$-=Ee,T.back+=Ee,T.length=je,we===0){T.mode=26;break}if(32&we){T.back=-1,T.mode=12;break}if(64&we){x.msg="invalid literal/length code",T.mode=30;break}T.extra=15&we,T.mode=22;case 22:if(T.extra){for(v=T.extra;$<v;){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}T.length+=j&(1<<T.extra)-1,j>>>=T.extra,$-=T.extra,T.back+=T.extra}T.was=T.length,T.mode=23;case 23:for(;we=(I=T.distcode[j&(1<<T.distbits)-1])>>>16&255,je=65535&I,!((Ee=I>>>24)<=$);){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}if((240&we)==0){for(Pe=Ee,vt=we,kt=je;we=(I=T.distcode[kt+((j&(1<<Pe+vt)-1)>>Pe)])>>>16&255,je=65535&I,!(Pe+(Ee=I>>>24)<=$);){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}j>>>=Pe,$-=Pe,T.back+=Pe}if(j>>>=Ee,$-=Ee,T.back+=Ee,64&we){x.msg="invalid distance code",T.mode=30;break}T.offset=je,T.extra=15&we,T.mode=24;case 24:if(T.extra){for(v=T.extra;$<v;){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}T.offset+=j&(1<<T.extra)-1,j>>>=T.extra,$-=T.extra,T.back+=T.extra}if(T.offset>T.dmax){x.msg="invalid distance too far back",T.mode=30;break}T.mode=25;case 25:if(he===0)break e;if(ie=ae-he,T.offset>ie){if((ie=T.offset-ie)>T.whave&&T.sane){x.msg="invalid distance too far back",T.mode=30;break}Re=ie>T.wnext?(ie-=T.wnext,T.wsize-ie):T.wnext-ie,ie>T.length&&(ie=T.length),Qe=T.window}else Qe=W,Re=se-T.offset,ie=T.length;for(he<ie&&(ie=he),he-=ie,T.length-=ie;W[se++]=Qe[Re++],--ie;);T.length===0&&(T.mode=21);break;case 26:if(he===0)break e;W[se++]=T.length,he--,T.mode=21;break;case 27:if(T.wrap){for(;$<32;){if(Z===0)break e;Z--,j|=U[G++]<<$,$+=8}if(ae-=he,x.total_out+=ae,T.total+=ae,ae&&(x.adler=T.check=T.flags?a(T.check,W,ae,se-ae):o(T.check,W,ae,se-ae)),ae=he,(T.flags?j:p(j))!==T.check){x.msg="incorrect data check",T.mode=30;break}$=j=0}T.mode=28;case 28:if(T.wrap&&T.flags){for(;$<32;){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}if(j!==(4294967295&T.total)){x.msg="incorrect length check",T.mode=30;break}$=j=0}T.mode=29;case 29:V=1;break e;case 30:V=-3;break e;case 31:return-4;case 32:default:return f}return x.next_out=se,x.avail_out=he,x.next_in=G,x.avail_in=Z,T.hold=j,T.bits=$,(T.wsize||ae!==x.avail_out&&T.mode<30&&(T.mode<27||M!==4))&&R(x,x.output,x.next_out,ae-x.avail_out)?(T.mode=31,-4):(oe-=x.avail_in,ae-=x.avail_out,x.total_in+=oe,x.total_out+=ae,T.total+=ae,T.wrap&&ae&&(x.adler=T.check=T.flags?a(T.check,W,ae,x.next_out-ae):o(T.check,W,ae,x.next_out-ae)),x.data_type=T.bits+(T.last?64:0)+(T.mode===12?128:0)+(T.mode===20||T.mode===15?256:0),(oe==0&&ae===0||M===4)&&V===b&&(V=-5),V)},i.inflateEnd=function(x){if(!x||!x.state)return f;var M=x.state;return M.window&&(M.window=null),x.state=null,b},i.inflateGetHeader=function(x,M){var T;return x&&x.state?(2&(T=x.state).wrap)==0?f:((T.head=M).done=!1,b):f},i.inflateSetDictionary=function(x,M){var T,U=M.length;return x&&x.state?(T=x.state).wrap!==0&&T.mode!==11?f:T.mode===11&&o(1,M,U,0)!==T.check?-3:R(x,M,U,U)?(T.mode=31,-4):(T.havedict=1,b):f},i.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(n,r,i){var s=n("../utils/common"),o=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],u=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],c=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];r.exports=function(d,h,b,f,m,g,_,p){var y,C,O,D,B,A,S,k,P,R=p.bits,x=0,M=0,T=0,U=0,W=0,G=0,se=0,Z=0,he=0,j=0,$=null,oe=0,ae=new s.Buf16(16),ie=new s.Buf16(16),Re=null,Qe=0;for(x=0;x<=15;x++)ae[x]=0;for(M=0;M<f;M++)ae[h[b+M]]++;for(W=R,U=15;1<=U&&ae[U]===0;U--);if(U<W&&(W=U),U===0)return m[g++]=20971520,m[g++]=20971520,p.bits=1,0;for(T=1;T<U&&ae[T]===0;T++);for(W<T&&(W=T),x=Z=1;x<=15;x++)if(Z<<=1,(Z-=ae[x])<0)return-1;if(0<Z&&(d===0||U!==1))return-1;for(ie[1]=0,x=1;x<15;x++)ie[x+1]=ie[x]+ae[x];for(M=0;M<f;M++)h[b+M]!==0&&(_[ie[h[b+M]]++]=M);if(A=d===0?($=Re=_,19):d===1?($=o,oe-=257,Re=a,Qe-=257,256):($=u,Re=c,-1),x=T,B=g,se=M=j=0,O=-1,D=(he=1<<(G=W))-1,d===1&&852<he||d===2&&592<he)return 1;for(;;){for(S=x-se,P=_[M]<A?(k=0,_[M]):_[M]>A?(k=Re[Qe+_[M]],$[oe+_[M]]):(k=96,0),y=1<<x-se,T=C=1<<G;m[B+(j>>se)+(C-=y)]=S<<24|k<<16|P|0,C!==0;);for(y=1<<x-1;j&y;)y>>=1;if(y!==0?(j&=y-1,j+=y):j=0,M++,--ae[x]==0){if(x===U)break;x=h[b+_[M]]}if(W<x&&(j&D)!==O){for(se===0&&(se=W),B+=T,Z=1<<(G=x-se);G+se<U&&!((Z-=ae[G+se])<=0);)G++,Z<<=1;if(he+=1<<G,d===1&&852<he||d===2&&592<he)return 1;m[O=j&D]=W<<24|G<<16|B-g|0}}return j!==0&&(m[B+j]=x-se<<24|64<<16|0),p.bits=W,0}},{"../utils/common":41}],51:[function(n,r,i){r.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(n,r,i){var s=n("../utils/common"),o=0,a=1;function u(I){for(var F=I.length;0<=--F;)I[F]=0}var c=0,d=29,h=256,b=h+1+d,f=30,m=19,g=2*b+1,_=15,p=16,y=7,C=256,O=16,D=17,B=18,A=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],S=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],k=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],P=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],R=new Array(2*(b+2));u(R);var x=new Array(2*f);u(x);var M=new Array(512);u(M);var T=new Array(256);u(T);var U=new Array(d);u(U);var W,G,se,Z=new Array(f);function he(I,F,K,Q,z){this.static_tree=I,this.extra_bits=F,this.extra_base=K,this.elems=Q,this.max_length=z,this.has_stree=I&&I.length}function j(I,F){this.dyn_tree=I,this.max_code=0,this.stat_desc=F}function $(I){return I<256?M[I]:M[256+(I>>>7)]}function oe(I,F){I.pending_buf[I.pending++]=255&F,I.pending_buf[I.pending++]=F>>>8&255}function ae(I,F,K){I.bi_valid>p-K?(I.bi_buf|=F<<I.bi_valid&65535,oe(I,I.bi_buf),I.bi_buf=F>>p-I.bi_valid,I.bi_valid+=K-p):(I.bi_buf|=F<<I.bi_valid&65535,I.bi_valid+=K)}function ie(I,F,K){ae(I,K[2*F],K[2*F+1])}function Re(I,F){for(var K=0;K|=1&I,I>>>=1,K<<=1,0<--F;);return K>>>1}function Qe(I,F,K){var Q,z,te=new Array(_+1),ue=0;for(Q=1;Q<=_;Q++)te[Q]=ue=ue+K[Q-1]<<1;for(z=0;z<=F;z++){var re=I[2*z+1];re!==0&&(I[2*z]=Re(te[re]++,re))}}function Ee(I){var F;for(F=0;F<b;F++)I.dyn_ltree[2*F]=0;for(F=0;F<f;F++)I.dyn_dtree[2*F]=0;for(F=0;F<m;F++)I.bl_tree[2*F]=0;I.dyn_ltree[2*C]=1,I.opt_len=I.static_len=0,I.last_lit=I.matches=0}function we(I){8<I.bi_valid?oe(I,I.bi_buf):0<I.bi_valid&&(I.pending_buf[I.pending++]=I.bi_buf),I.bi_buf=0,I.bi_valid=0}function je(I,F,K,Q){var z=2*F,te=2*K;return I[z]<I[te]||I[z]===I[te]&&Q[F]<=Q[K]}function Pe(I,F,K){for(var Q=I.heap[K],z=K<<1;z<=I.heap_len&&(z<I.heap_len&&je(F,I.heap[z+1],I.heap[z],I.depth)&&z++,!je(F,Q,I.heap[z],I.depth));)I.heap[K]=I.heap[z],K=z,z<<=1;I.heap[K]=Q}function vt(I,F,K){var Q,z,te,ue,re=0;if(I.last_lit!==0)for(;Q=I.pending_buf[I.d_buf+2*re]<<8|I.pending_buf[I.d_buf+2*re+1],z=I.pending_buf[I.l_buf+re],re++,Q===0?ie(I,z,F):(ie(I,(te=T[z])+h+1,F),(ue=A[te])!==0&&ae(I,z-=U[te],ue),ie(I,te=$(--Q),K),(ue=S[te])!==0&&ae(I,Q-=Z[te],ue)),re<I.last_lit;);ie(I,C,F)}function kt(I,F){var K,Q,z,te=F.dyn_tree,ue=F.stat_desc.static_tree,re=F.stat_desc.has_stree,ce=F.stat_desc.elems,Ie=-1;for(I.heap_len=0,I.heap_max=g,K=0;K<ce;K++)te[2*K]!==0?(I.heap[++I.heap_len]=Ie=K,I.depth[K]=0):te[2*K+1]=0;for(;I.heap_len<2;)te[2*(z=I.heap[++I.heap_len]=Ie<2?++Ie:0)]=1,I.depth[z]=0,I.opt_len--,re&&(I.static_len-=ue[2*z+1]);for(F.max_code=Ie,K=I.heap_len>>1;1<=K;K--)Pe(I,te,K);for(z=ce;K=I.heap[1],I.heap[1]=I.heap[I.heap_len--],Pe(I,te,1),Q=I.heap[1],I.heap[--I.heap_max]=K,I.heap[--I.heap_max]=Q,te[2*z]=te[2*K]+te[2*Q],I.depth[z]=(I.depth[K]>=I.depth[Q]?I.depth[K]:I.depth[Q])+1,te[2*K+1]=te[2*Q+1]=z,I.heap[1]=z++,Pe(I,te,1),2<=I.heap_len;);I.heap[--I.heap_max]=I.heap[1],(function(ye,pt){var ar,Ot,or,De,di,wa,Ht=pt.dyn_tree,Ad=pt.max_code,Uk=pt.stat_desc.static_tree,Hk=pt.stat_desc.has_stree,zk=pt.stat_desc.extra_bits,Sd=pt.stat_desc.extra_base,ur=pt.stat_desc.max_length,hi=0;for(De=0;De<=_;De++)ye.bl_count[De]=0;for(Ht[2*ye.heap[ye.heap_max]+1]=0,ar=ye.heap_max+1;ar<g;ar++)ur<(De=Ht[2*Ht[2*(Ot=ye.heap[ar])+1]+1]+1)&&(De=ur,hi++),Ht[2*Ot+1]=De,Ad<Ot||(ye.bl_count[De]++,di=0,Sd<=Ot&&(di=zk[Ot-Sd]),wa=Ht[2*Ot],ye.opt_len+=wa*(De+di),Hk&&(ye.static_len+=wa*(Uk[2*Ot+1]+di)));if(hi!==0){do{for(De=ur-1;ye.bl_count[De]===0;)De--;ye.bl_count[De]--,ye.bl_count[De+1]+=2,ye.bl_count[ur]--,hi-=2}while(0<hi);for(De=ur;De!==0;De--)for(Ot=ye.bl_count[De];Ot!==0;)Ad<(or=ye.heap[--ar])||(Ht[2*or+1]!==De&&(ye.opt_len+=(De-Ht[2*or+1])*Ht[2*or],Ht[2*or+1]=De),Ot--)}})(I,F),Qe(te,Ie,I.bl_count)}function E(I,F,K){var Q,z,te=-1,ue=F[1],re=0,ce=7,Ie=4;for(ue===0&&(ce=138,Ie=3),F[2*(K+1)+1]=65535,Q=0;Q<=K;Q++)z=ue,ue=F[2*(Q+1)+1],++re<ce&&z===ue||(re<Ie?I.bl_tree[2*z]+=re:z!==0?(z!==te&&I.bl_tree[2*z]++,I.bl_tree[2*O]++):re<=10?I.bl_tree[2*D]++:I.bl_tree[2*B]++,te=z,Ie=(re=0)===ue?(ce=138,3):z===ue?(ce=6,3):(ce=7,4))}function V(I,F,K){var Q,z,te=-1,ue=F[1],re=0,ce=7,Ie=4;for(ue===0&&(ce=138,Ie=3),Q=0;Q<=K;Q++)if(z=ue,ue=F[2*(Q+1)+1],!(++re<ce&&z===ue)){if(re<Ie)for(;ie(I,z,I.bl_tree),--re!=0;);else z!==0?(z!==te&&(ie(I,z,I.bl_tree),re--),ie(I,O,I.bl_tree),ae(I,re-3,2)):re<=10?(ie(I,D,I.bl_tree),ae(I,re-3,3)):(ie(I,B,I.bl_tree),ae(I,re-11,7));te=z,Ie=(re=0)===ue?(ce=138,3):z===ue?(ce=6,3):(ce=7,4)}}u(Z);var Y=!1;function v(I,F,K,Q){ae(I,(c<<1)+(Q?1:0),3),(function(z,te,ue,re){we(z),oe(z,ue),oe(z,~ue),s.arraySet(z.pending_buf,z.window,te,ue,z.pending),z.pending+=ue})(I,F,K)}i._tr_init=function(I){Y||((function(){var F,K,Q,z,te,ue=new Array(_+1);for(z=Q=0;z<d-1;z++)for(U[z]=Q,F=0;F<1<<A[z];F++)T[Q++]=z;for(T[Q-1]=z,z=te=0;z<16;z++)for(Z[z]=te,F=0;F<1<<S[z];F++)M[te++]=z;for(te>>=7;z<f;z++)for(Z[z]=te<<7,F=0;F<1<<S[z]-7;F++)M[256+te++]=z;for(K=0;K<=_;K++)ue[K]=0;for(F=0;F<=143;)R[2*F+1]=8,F++,ue[8]++;for(;F<=255;)R[2*F+1]=9,F++,ue[9]++;for(;F<=279;)R[2*F+1]=7,F++,ue[7]++;for(;F<=287;)R[2*F+1]=8,F++,ue[8]++;for(Qe(R,b+1,ue),F=0;F<f;F++)x[2*F+1]=5,x[2*F]=Re(F,5);W=new he(R,A,h+1,b,_),G=new he(x,S,0,f,_),se=new he(new Array(0),k,0,m,y)})(),Y=!0),I.l_desc=new j(I.dyn_ltree,W),I.d_desc=new j(I.dyn_dtree,G),I.bl_desc=new j(I.bl_tree,se),I.bi_buf=0,I.bi_valid=0,Ee(I)},i._tr_stored_block=v,i._tr_flush_block=function(I,F,K,Q){var z,te,ue=0;0<I.level?(I.strm.data_type===2&&(I.strm.data_type=(function(re){var ce,Ie=4093624447;for(ce=0;ce<=31;ce++,Ie>>>=1)if(1&Ie&&re.dyn_ltree[2*ce]!==0)return o;if(re.dyn_ltree[18]!==0||re.dyn_ltree[20]!==0||re.dyn_ltree[26]!==0)return a;for(ce=32;ce<h;ce++)if(re.dyn_ltree[2*ce]!==0)return a;return o})(I)),kt(I,I.l_desc),kt(I,I.d_desc),ue=(function(re){var ce;for(E(re,re.dyn_ltree,re.l_desc.max_code),E(re,re.dyn_dtree,re.d_desc.max_code),kt(re,re.bl_desc),ce=m-1;3<=ce&&re.bl_tree[2*P[ce]+1]===0;ce--);return re.opt_len+=3*(ce+1)+5+5+4,ce})(I),z=I.opt_len+3+7>>>3,(te=I.static_len+3+7>>>3)<=z&&(z=te)):z=te=K+5,K+4<=z&&F!==-1?v(I,F,K,Q):I.strategy===4||te===z?(ae(I,2+(Q?1:0),3),vt(I,R,x)):(ae(I,4+(Q?1:0),3),(function(re,ce,Ie,ye){var pt;for(ae(re,ce-257,5),ae(re,Ie-1,5),ae(re,ye-4,4),pt=0;pt<ye;pt++)ae(re,re.bl_tree[2*P[pt]+1],3);V(re,re.dyn_ltree,ce-1),V(re,re.dyn_dtree,Ie-1)})(I,I.l_desc.max_code+1,I.d_desc.max_code+1,ue+1),vt(I,I.dyn_ltree,I.dyn_dtree)),Ee(I),Q&&we(I)},i._tr_tally=function(I,F,K){return I.pending_buf[I.d_buf+2*I.last_lit]=F>>>8&255,I.pending_buf[I.d_buf+2*I.last_lit+1]=255&F,I.pending_buf[I.l_buf+I.last_lit]=255&K,I.last_lit++,F===0?I.dyn_ltree[2*K]++:(I.matches++,F--,I.dyn_ltree[2*(T[K]+h+1)]++,I.dyn_dtree[2*$(F)]++),I.last_lit===I.lit_bufsize-1},i._tr_align=function(I){ae(I,2,3),ie(I,C,R),(function(F){F.bi_valid===16?(oe(F,F.bi_buf),F.bi_buf=0,F.bi_valid=0):8<=F.bi_valid&&(F.pending_buf[F.pending++]=255&F.bi_buf,F.bi_buf>>=8,F.bi_valid-=8)})(I)}},{"../utils/common":41}],53:[function(n,r,i){r.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(n,r,i){(function(s){(function(o,a){if(!o.setImmediate){var u,c,d,h,b=1,f={},m=!1,g=o.document,_=Object.getPrototypeOf&&Object.getPrototypeOf(o);_=_&&_.setTimeout?_:o,u={}.toString.call(o.process)==="[object process]"?function(O){process.nextTick(function(){y(O)})}:(function(){if(o.postMessage&&!o.importScripts){var O=!0,D=o.onmessage;return o.onmessage=function(){O=!1},o.postMessage("","*"),o.onmessage=D,O}})()?(h="setImmediate$"+Math.random()+"$",o.addEventListener?o.addEventListener("message",C,!1):o.attachEvent("onmessage",C),function(O){o.postMessage(h+O,"*")}):o.MessageChannel?((d=new MessageChannel).port1.onmessage=function(O){y(O.data)},function(O){d.port2.postMessage(O)}):g&&"onreadystatechange"in g.createElement("script")?(c=g.documentElement,function(O){var D=g.createElement("script");D.onreadystatechange=function(){y(O),D.onreadystatechange=null,c.removeChild(D),D=null},c.appendChild(D)}):function(O){setTimeout(y,0,O)},_.setImmediate=function(O){typeof O!="function"&&(O=new Function(""+O));for(var D=new Array(arguments.length-1),B=0;B<D.length;B++)D[B]=arguments[B+1];var A={callback:O,args:D};return f[b]=A,u(b),b++},_.clearImmediate=p}function p(O){delete f[O]}function y(O){if(m)setTimeout(y,0,O);else{var D=f[O];if(D){m=!0;try{(function(B){var A=B.callback,S=B.args;switch(S.length){case 0:A();break;case 1:A(S[0]);break;case 2:A(S[0],S[1]);break;case 3:A(S[0],S[1],S[2]);break;default:A.apply(a,S)}})(D)}finally{p(O),m=!1}}}}function C(O){O.source===o&&typeof O.data=="string"&&O.data.indexOf(h)===0&&y(+O.data.slice(h.length))}})(typeof self>"u"?s===void 0?this:s:self)}).call(this,typeof Pr<"u"?Pr:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(sa)),sa.exports}var K_=V_();const Vc=dm(K_);async function X_(e){const t=await Vc.loadAsync(e),n={document:"",media:new Map,rawParts:new Map};for(const[r,i]of Object.entries(t.files))if(!i.dir)if(r==="word/document.xml")n.document=await i.async("string");else if(r==="word/styles.xml")n.styles=await i.async("string");else if(r==="word/numbering.xml")n.numbering=await i.async("string");else if(r==="word/_rels/document.xml.rels")n.relationships=await i.async("string");else if(r==="[Content_Types].xml")n.contentTypes=await i.async("string");else if(r.startsWith("word/media/"))n.media.set(r,await i.async("uint8array"));else try{n.rawParts.set(r,await i.async("string"))}catch{const s=await i.async("uint8array");n.rawParts.set(r,Buffer.from(s).toString("base64"))}return n}async function Q_(e){const t=new Vc;t.file("[Content_Types].xml",e.contentTypes??Z_),t.file("word/document.xml",e.document),e.styles&&t.file("word/styles.xml",e.styles),e.numbering&&t.file("word/numbering.xml",e.numbering),e.relationships&&t.file("word/_rels/document.xml.rels",e.relationships);for(const[n,r]of e.media)t.file(n,r);for(const[n,r]of e.rawParts)t.file(n)||t.file(n,r);return t.generateAsync({type:"uint8array"})}const Z_=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
35
+ */var rd;function fw(){return rd||(rd=1,(function(e,t){(function(n){e.exports=n()})(function(){return(function n(r,i,s){function o(c,d){if(!i[c]){if(!r[c]){var h=typeof ci=="function"&&ci;if(!d&&h)return h(c,!0);if(a)return a(c,!0);var m=new Error("Cannot find module '"+c+"'");throw m.code="MODULE_NOT_FOUND",m}var f=i[c]={exports:{}};r[c][0].call(f.exports,function(b){var g=r[c][1][b];return o(g||b)},f,f.exports,n,r,i,s)}return i[c].exports}for(var a=typeof ci=="function"&&ci,u=0;u<s.length;u++)o(s[u]);return o})({1:[function(n,r,i){var s=n("./utils"),o=n("./support"),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";i.encode=function(u){for(var c,d,h,m,f,b,g,_=[],p=0,y=u.length,C=y,I=s.getTypeOf(u)!=="string";p<u.length;)C=y-p,h=I?(c=u[p++],d=p<y?u[p++]:0,p<y?u[p++]:0):(c=u.charCodeAt(p++),d=p<y?u.charCodeAt(p++):0,p<y?u.charCodeAt(p++):0),m=c>>2,f=(3&c)<<4|d>>4,b=1<C?(15&d)<<2|h>>6:64,g=2<C?63&h:64,_.push(a.charAt(m)+a.charAt(f)+a.charAt(b)+a.charAt(g));return _.join("")},i.decode=function(u){var c,d,h,m,f,b,g=0,_=0,p="data:";if(u.substr(0,p.length)===p)throw new Error("Invalid base64 input, it looks like a data url.");var y,C=3*(u=u.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(u.charAt(u.length-1)===a.charAt(64)&&C--,u.charAt(u.length-2)===a.charAt(64)&&C--,C%1!=0)throw new Error("Invalid base64 input, bad content length.");for(y=o.uint8array?new Uint8Array(0|C):new Array(0|C);g<u.length;)c=a.indexOf(u.charAt(g++))<<2|(m=a.indexOf(u.charAt(g++)))>>4,d=(15&m)<<4|(f=a.indexOf(u.charAt(g++)))>>2,h=(3&f)<<6|(b=a.indexOf(u.charAt(g++))),y[_++]=c,f!==64&&(y[_++]=d),b!==64&&(y[_++]=h);return y}},{"./support":30,"./utils":32}],2:[function(n,r,i){var s=n("./external"),o=n("./stream/DataWorker"),a=n("./stream/Crc32Probe"),u=n("./stream/DataLengthProbe");function c(d,h,m,f,b){this.compressedSize=d,this.uncompressedSize=h,this.crc32=m,this.compression=f,this.compressedContent=b}c.prototype={getContentWorker:function(){var d=new o(s.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new u("data_length")),h=this;return d.on("end",function(){if(this.streamInfo.data_length!==h.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),d},getCompressedWorker:function(){return new o(s.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},c.createWorkerFrom=function(d,h,m){return d.pipe(new a).pipe(new u("uncompressedSize")).pipe(h.compressWorker(m)).pipe(new u("compressedSize")).withStreamInfo("compression",h)},r.exports=c},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(n,r,i){var s=n("./stream/GenericWorker");i.STORE={magic:"\0\0",compressWorker:function(){return new s("STORE compression")},uncompressWorker:function(){return new s("STORE decompression")}},i.DEFLATE=n("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(n,r,i){var s=n("./utils"),o=(function(){for(var a,u=[],c=0;c<256;c++){a=c;for(var d=0;d<8;d++)a=1&a?3988292384^a>>>1:a>>>1;u[c]=a}return u})();r.exports=function(a,u){return a!==void 0&&a.length?s.getTypeOf(a)!=="string"?(function(c,d,h,m){var f=o,b=m+h;c^=-1;for(var g=m;g<b;g++)c=c>>>8^f[255&(c^d[g])];return-1^c})(0|u,a,a.length,0):(function(c,d,h,m){var f=o,b=m+h;c^=-1;for(var g=m;g<b;g++)c=c>>>8^f[255&(c^d.charCodeAt(g))];return-1^c})(0|u,a,a.length,0):0}},{"./utils":32}],5:[function(n,r,i){i.base64=!1,i.binary=!1,i.dir=!1,i.createFolders=!0,i.date=null,i.compression=null,i.compressionOptions=null,i.comment=null,i.unixPermissions=null,i.dosPermissions=null},{}],6:[function(n,r,i){var s=null;s=typeof Promise<"u"?Promise:n("lie"),r.exports={Promise:s}},{lie:37}],7:[function(n,r,i){var s=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",o=n("pako"),a=n("./utils"),u=n("./stream/GenericWorker"),c=s?"uint8array":"array";function d(h,m){u.call(this,"FlateWorker/"+h),this._pako=null,this._pakoAction=h,this._pakoOptions=m,this.meta={}}i.magic="\b\0",a.inherits(d,u),d.prototype.processChunk=function(h){this.meta=h.meta,this._pako===null&&this._createPako(),this._pako.push(a.transformTo(c,h.data),!1)},d.prototype.flush=function(){u.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},d.prototype.cleanUp=function(){u.prototype.cleanUp.call(this),this._pako=null},d.prototype._createPako=function(){this._pako=new o[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var h=this;this._pako.onData=function(m){h.push({data:m,meta:h.meta})}},i.compressWorker=function(h){return new d("Deflate",h)},i.uncompressWorker=function(){return new d("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(n,r,i){function s(f,b){var g,_="";for(g=0;g<b;g++)_+=String.fromCharCode(255&f),f>>>=8;return _}function o(f,b,g,_,p,y){var C,I,D=f.file,B=f.compression,A=y!==c.utf8encode,S=a.transformTo("string",y(D.name)),w=a.transformTo("string",c.utf8encode(D.name)),R=D.comment,P=a.transformTo("string",y(R)),x=a.transformTo("string",c.utf8encode(R)),M=w.length!==D.name.length,T=x.length!==R.length,U="",W="",G="",se=D.dir,Z=D.date,he={crc32:0,compressedSize:0,uncompressedSize:0};b&&!g||(he.crc32=f.crc32,he.compressedSize=f.compressedSize,he.uncompressedSize=f.uncompressedSize);var j=0;b&&(j|=8),A||!M&&!T||(j|=2048);var $=0,oe=0;se&&($|=16),p==="UNIX"?(oe=798,$|=(function(ie,Pe){var Qe=ie;return ie||(Qe=Pe?16893:33204),(65535&Qe)<<16})(D.unixPermissions,se)):(oe=20,$|=(function(ie){return 63&(ie||0)})(D.dosPermissions)),C=Z.getUTCHours(),C<<=6,C|=Z.getUTCMinutes(),C<<=5,C|=Z.getUTCSeconds()/2,I=Z.getUTCFullYear()-1980,I<<=4,I|=Z.getUTCMonth()+1,I<<=5,I|=Z.getUTCDate(),M&&(W=s(1,1)+s(d(S),4)+w,U+="up"+s(W.length,2)+W),T&&(G=s(1,1)+s(d(P),4)+x,U+="uc"+s(G.length,2)+G);var ae="";return ae+=`
36
+ \0`,ae+=s(j,2),ae+=B.magic,ae+=s(C,2),ae+=s(I,2),ae+=s(he.crc32,4),ae+=s(he.compressedSize,4),ae+=s(he.uncompressedSize,4),ae+=s(S.length,2),ae+=s(U.length,2),{fileRecord:h.LOCAL_FILE_HEADER+ae+S+U,dirRecord:h.CENTRAL_FILE_HEADER+s(oe,2)+ae+s(P.length,2)+"\0\0\0\0"+s($,4)+s(_,4)+S+U+P}}var a=n("../utils"),u=n("../stream/GenericWorker"),c=n("../utf8"),d=n("../crc32"),h=n("../signature");function m(f,b,g,_){u.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=b,this.zipPlatform=g,this.encodeFileName=_,this.streamFiles=f,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(m,u),m.prototype.push=function(f){var b=f.meta.percent||0,g=this.entriesCount,_=this._sources.length;this.accumulate?this.contentBuffer.push(f):(this.bytesWritten+=f.data.length,u.prototype.push.call(this,{data:f.data,meta:{currentFile:this.currentFile,percent:g?(b+100*(g-_-1))/g:100}}))},m.prototype.openedSource=function(f){this.currentSourceOffset=this.bytesWritten,this.currentFile=f.file.name;var b=this.streamFiles&&!f.file.dir;if(b){var g=o(f,b,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:g.fileRecord,meta:{percent:0}})}else this.accumulate=!0},m.prototype.closedSource=function(f){this.accumulate=!1;var b=this.streamFiles&&!f.file.dir,g=o(f,b,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(g.dirRecord),b)this.push({data:(function(_){return h.DATA_DESCRIPTOR+s(_.crc32,4)+s(_.compressedSize,4)+s(_.uncompressedSize,4)})(f),meta:{percent:100}});else for(this.push({data:g.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},m.prototype.flush=function(){for(var f=this.bytesWritten,b=0;b<this.dirRecords.length;b++)this.push({data:this.dirRecords[b],meta:{percent:100}});var g=this.bytesWritten-f,_=(function(p,y,C,I,D){var B=a.transformTo("string",D(I));return h.CENTRAL_DIRECTORY_END+"\0\0\0\0"+s(p,2)+s(p,2)+s(y,4)+s(C,4)+s(B.length,2)+B})(this.dirRecords.length,g,f,this.zipComment,this.encodeFileName);this.push({data:_,meta:{percent:100}})},m.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},m.prototype.registerPrevious=function(f){this._sources.push(f);var b=this;return f.on("data",function(g){b.processChunk(g)}),f.on("end",function(){b.closedSource(b.previous.streamInfo),b._sources.length?b.prepareNextSource():b.end()}),f.on("error",function(g){b.error(g)}),this},m.prototype.resume=function(){return!!u.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},m.prototype.error=function(f){var b=this._sources;if(!u.prototype.error.call(this,f))return!1;for(var g=0;g<b.length;g++)try{b[g].error(f)}catch{}return!0},m.prototype.lock=function(){u.prototype.lock.call(this);for(var f=this._sources,b=0;b<f.length;b++)f[b].lock()},r.exports=m},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(n,r,i){var s=n("../compressions"),o=n("./ZipFileWorker");i.generateWorker=function(a,u,c){var d=new o(u.streamFiles,c,u.platform,u.encodeFileName),h=0;try{a.forEach(function(m,f){h++;var b=(function(y,C){var I=y||C,D=s[I];if(!D)throw new Error(I+" is not a valid compression method !");return D})(f.options.compression,u.compression),g=f.options.compressionOptions||u.compressionOptions||{},_=f.dir,p=f.date;f._compressWorker(b,g).withStreamInfo("file",{name:m,dir:_,date:p,comment:f.comment||"",unixPermissions:f.unixPermissions,dosPermissions:f.dosPermissions}).pipe(d)}),d.entriesCount=h}catch(m){d.error(m)}return d}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(n,r,i){function s(){if(!(this instanceof s))return new s;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var o=new s;for(var a in this)typeof this[a]!="function"&&(o[a]=this[a]);return o}}(s.prototype=n("./object")).loadAsync=n("./load"),s.support=n("./support"),s.defaults=n("./defaults"),s.version="3.10.1",s.loadAsync=function(o,a){return new s().loadAsync(o,a)},s.external=n("./external"),r.exports=s},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(n,r,i){var s=n("./utils"),o=n("./external"),a=n("./utf8"),u=n("./zipEntries"),c=n("./stream/Crc32Probe"),d=n("./nodejsUtils");function h(m){return new o.Promise(function(f,b){var g=m.decompressed.getContentWorker().pipe(new c);g.on("error",function(_){b(_)}).on("end",function(){g.streamInfo.crc32!==m.decompressed.crc32?b(new Error("Corrupted zip : CRC32 mismatch")):f()}).resume()})}r.exports=function(m,f){var b=this;return f=s.extend(f||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:a.utf8decode}),d.isNode&&d.isStream(m)?o.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):s.prepareContent("the loaded zip file",m,!0,f.optimizedBinaryString,f.base64).then(function(g){var _=new u(f);return _.load(g),_}).then(function(g){var _=[o.Promise.resolve(g)],p=g.files;if(f.checkCRC32)for(var y=0;y<p.length;y++)_.push(h(p[y]));return o.Promise.all(_)}).then(function(g){for(var _=g.shift(),p=_.files,y=0;y<p.length;y++){var C=p[y],I=C.fileNameStr,D=s.resolve(C.fileNameStr);b.file(D,C.decompressed,{binary:!0,optimizedBinaryString:!0,date:C.date,dir:C.dir,comment:C.fileCommentStr.length?C.fileCommentStr:null,unixPermissions:C.unixPermissions,dosPermissions:C.dosPermissions,createFolders:f.createFolders}),C.dir||(b.file(D).unsafeOriginalName=I)}return _.zipComment.length&&(b.comment=_.zipComment),b})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(n,r,i){var s=n("../utils"),o=n("../stream/GenericWorker");function a(u,c){o.call(this,"Nodejs stream input adapter for "+u),this._upstreamEnded=!1,this._bindStream(c)}s.inherits(a,o),a.prototype._bindStream=function(u){var c=this;(this._stream=u).pause(),u.on("data",function(d){c.push({data:d,meta:{percent:0}})}).on("error",function(d){c.isPaused?this.generatedError=d:c.error(d)}).on("end",function(){c.isPaused?c._upstreamEnded=!0:c.end()})},a.prototype.pause=function(){return!!o.prototype.pause.call(this)&&(this._stream.pause(),!0)},a.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},r.exports=a},{"../stream/GenericWorker":28,"../utils":32}],13:[function(n,r,i){var s=n("readable-stream").Readable;function o(a,u,c){s.call(this,u),this._helper=a;var d=this;a.on("data",function(h,m){d.push(h)||d._helper.pause(),c&&c(m)}).on("error",function(h){d.emit("error",h)}).on("end",function(){d.push(null)})}n("../utils").inherits(o,s),o.prototype._read=function(){this._helper.resume()},r.exports=o},{"../utils":32,"readable-stream":16}],14:[function(n,r,i){r.exports={isNode:typeof Buffer<"u",newBufferFrom:function(s,o){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(s,o);if(typeof s=="number")throw new Error('The "data" argument must not be a number');return new Buffer(s,o)},allocBuffer:function(s){if(Buffer.alloc)return Buffer.alloc(s);var o=new Buffer(s);return o.fill(0),o},isBuffer:function(s){return Buffer.isBuffer(s)},isStream:function(s){return s&&typeof s.on=="function"&&typeof s.pause=="function"&&typeof s.resume=="function"}}},{}],15:[function(n,r,i){function s(D,B,A){var S,w=a.getTypeOf(B),R=a.extend(A||{},d);R.date=R.date||new Date,R.compression!==null&&(R.compression=R.compression.toUpperCase()),typeof R.unixPermissions=="string"&&(R.unixPermissions=parseInt(R.unixPermissions,8)),R.unixPermissions&&16384&R.unixPermissions&&(R.dir=!0),R.dosPermissions&&16&R.dosPermissions&&(R.dir=!0),R.dir&&(D=p(D)),R.createFolders&&(S=_(D))&&y.call(this,S,!0);var P=w==="string"&&R.binary===!1&&R.base64===!1;A&&A.binary!==void 0||(R.binary=!P),(B instanceof h&&B.uncompressedSize===0||R.dir||!B||B.length===0)&&(R.base64=!1,R.binary=!0,B="",R.compression="STORE",w="string");var x=null;x=B instanceof h||B instanceof u?B:b.isNode&&b.isStream(B)?new g(D,B):a.prepareContent(D,B,R.binary,R.optimizedBinaryString,R.base64);var M=new m(D,x,R);this.files[D]=M}var o=n("./utf8"),a=n("./utils"),u=n("./stream/GenericWorker"),c=n("./stream/StreamHelper"),d=n("./defaults"),h=n("./compressedObject"),m=n("./zipObject"),f=n("./generate"),b=n("./nodejsUtils"),g=n("./nodejs/NodejsStreamInputAdapter"),_=function(D){D.slice(-1)==="/"&&(D=D.substring(0,D.length-1));var B=D.lastIndexOf("/");return 0<B?D.substring(0,B):""},p=function(D){return D.slice(-1)!=="/"&&(D+="/"),D},y=function(D,B){return B=B!==void 0?B:d.createFolders,D=p(D),this.files[D]||s.call(this,D,null,{dir:!0,createFolders:B}),this.files[D]};function C(D){return Object.prototype.toString.call(D)==="[object RegExp]"}var I={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(D){var B,A,S;for(B in this.files)S=this.files[B],(A=B.slice(this.root.length,B.length))&&B.slice(0,this.root.length)===this.root&&D(A,S)},filter:function(D){var B=[];return this.forEach(function(A,S){D(A,S)&&B.push(S)}),B},file:function(D,B,A){if(arguments.length!==1)return D=this.root+D,s.call(this,D,B,A),this;if(C(D)){var S=D;return this.filter(function(R,P){return!P.dir&&S.test(R)})}var w=this.files[this.root+D];return w&&!w.dir?w:null},folder:function(D){if(!D)return this;if(C(D))return this.filter(function(w,R){return R.dir&&D.test(w)});var B=this.root+D,A=y.call(this,B),S=this.clone();return S.root=A.name,S},remove:function(D){D=this.root+D;var B=this.files[D];if(B||(D.slice(-1)!=="/"&&(D+="/"),B=this.files[D]),B&&!B.dir)delete this.files[D];else for(var A=this.filter(function(w,R){return R.name.slice(0,D.length)===D}),S=0;S<A.length;S++)delete this.files[A[S].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(D){var B,A={};try{if((A=a.extend(D||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:o.utf8encode})).type=A.type.toLowerCase(),A.compression=A.compression.toUpperCase(),A.type==="binarystring"&&(A.type="string"),!A.type)throw new Error("No output type specified.");a.checkSupport(A.type),A.platform!=="darwin"&&A.platform!=="freebsd"&&A.platform!=="linux"&&A.platform!=="sunos"||(A.platform="UNIX"),A.platform==="win32"&&(A.platform="DOS");var S=A.comment||this.comment||"";B=f.generateWorker(this,A,S)}catch(w){(B=new u("error")).error(w)}return new c(B,A.type||"string",A.mimeType)},generateAsync:function(D,B){return this.generateInternalStream(D).accumulate(B)},generateNodeStream:function(D,B){return(D=D||{}).type||(D.type="nodebuffer"),this.generateInternalStream(D).toNodejsStream(B)}};r.exports=I},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(n,r,i){r.exports=n("stream")},{stream:void 0}],17:[function(n,r,i){var s=n("./DataReader");function o(a){s.call(this,a);for(var u=0;u<this.data.length;u++)a[u]=255&a[u]}n("../utils").inherits(o,s),o.prototype.byteAt=function(a){return this.data[this.zero+a]},o.prototype.lastIndexOfSignature=function(a){for(var u=a.charCodeAt(0),c=a.charCodeAt(1),d=a.charCodeAt(2),h=a.charCodeAt(3),m=this.length-4;0<=m;--m)if(this.data[m]===u&&this.data[m+1]===c&&this.data[m+2]===d&&this.data[m+3]===h)return m-this.zero;return-1},o.prototype.readAndCheckSignature=function(a){var u=a.charCodeAt(0),c=a.charCodeAt(1),d=a.charCodeAt(2),h=a.charCodeAt(3),m=this.readData(4);return u===m[0]&&c===m[1]&&d===m[2]&&h===m[3]},o.prototype.readData=function(a){if(this.checkOffset(a),a===0)return[];var u=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,u},r.exports=o},{"../utils":32,"./DataReader":18}],18:[function(n,r,i){var s=n("../utils");function o(a){this.data=a,this.length=a.length,this.index=0,this.zero=0}o.prototype={checkOffset:function(a){this.checkIndex(this.index+a)},checkIndex:function(a){if(this.length<this.zero+a||a<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+a+"). Corrupted zip ?")},setIndex:function(a){this.checkIndex(a),this.index=a},skip:function(a){this.setIndex(this.index+a)},byteAt:function(){},readInt:function(a){var u,c=0;for(this.checkOffset(a),u=this.index+a-1;u>=this.index;u--)c=(c<<8)+this.byteAt(u);return this.index+=a,c},readString:function(a){return s.transformTo("string",this.readData(a))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var a=this.readInt(4);return new Date(Date.UTC(1980+(a>>25&127),(a>>21&15)-1,a>>16&31,a>>11&31,a>>5&63,(31&a)<<1))}},r.exports=o},{"../utils":32}],19:[function(n,r,i){var s=n("./Uint8ArrayReader");function o(a){s.call(this,a)}n("../utils").inherits(o,s),o.prototype.readData=function(a){this.checkOffset(a);var u=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,u},r.exports=o},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(n,r,i){var s=n("./DataReader");function o(a){s.call(this,a)}n("../utils").inherits(o,s),o.prototype.byteAt=function(a){return this.data.charCodeAt(this.zero+a)},o.prototype.lastIndexOfSignature=function(a){return this.data.lastIndexOf(a)-this.zero},o.prototype.readAndCheckSignature=function(a){return a===this.readData(4)},o.prototype.readData=function(a){this.checkOffset(a);var u=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,u},r.exports=o},{"../utils":32,"./DataReader":18}],21:[function(n,r,i){var s=n("./ArrayReader");function o(a){s.call(this,a)}n("../utils").inherits(o,s),o.prototype.readData=function(a){if(this.checkOffset(a),a===0)return new Uint8Array(0);var u=this.data.subarray(this.zero+this.index,this.zero+this.index+a);return this.index+=a,u},r.exports=o},{"../utils":32,"./ArrayReader":17}],22:[function(n,r,i){var s=n("../utils"),o=n("../support"),a=n("./ArrayReader"),u=n("./StringReader"),c=n("./NodeBufferReader"),d=n("./Uint8ArrayReader");r.exports=function(h){var m=s.getTypeOf(h);return s.checkSupport(m),m!=="string"||o.uint8array?m==="nodebuffer"?new c(h):o.uint8array?new d(s.transformTo("uint8array",h)):new a(s.transformTo("array",h)):new u(h)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(n,r,i){i.LOCAL_FILE_HEADER="PK",i.CENTRAL_FILE_HEADER="PK",i.CENTRAL_DIRECTORY_END="PK",i.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",i.ZIP64_CENTRAL_DIRECTORY_END="PK",i.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(n,r,i){var s=n("./GenericWorker"),o=n("../utils");function a(u){s.call(this,"ConvertWorker to "+u),this.destType=u}o.inherits(a,s),a.prototype.processChunk=function(u){this.push({data:o.transformTo(this.destType,u.data),meta:u.meta})},r.exports=a},{"../utils":32,"./GenericWorker":28}],25:[function(n,r,i){var s=n("./GenericWorker"),o=n("../crc32");function a(){s.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}n("../utils").inherits(a,s),a.prototype.processChunk=function(u){this.streamInfo.crc32=o(u.data,this.streamInfo.crc32||0),this.push(u)},r.exports=a},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(n,r,i){var s=n("../utils"),o=n("./GenericWorker");function a(u){o.call(this,"DataLengthProbe for "+u),this.propName=u,this.withStreamInfo(u,0)}s.inherits(a,o),a.prototype.processChunk=function(u){if(u){var c=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=c+u.data.length}o.prototype.processChunk.call(this,u)},r.exports=a},{"../utils":32,"./GenericWorker":28}],27:[function(n,r,i){var s=n("../utils"),o=n("./GenericWorker");function a(u){o.call(this,"DataWorker");var c=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,u.then(function(d){c.dataIsReady=!0,c.data=d,c.max=d&&d.length||0,c.type=s.getTypeOf(d),c.isPaused||c._tickAndRepeat()},function(d){c.error(d)})}s.inherits(a,o),a.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this.data=null},a.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,s.delay(this._tickAndRepeat,[],this)),!0)},a.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(s.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var u=null,c=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":u=this.data.substring(this.index,c);break;case"uint8array":u=this.data.subarray(this.index,c);break;case"array":case"nodebuffer":u=this.data.slice(this.index,c)}return this.index=c,this.push({data:u,meta:{percent:this.max?this.index/this.max*100:0}})},r.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(n,r,i){function s(o){this.name=o||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}s.prototype={push:function(o){this.emit("data",o)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(o){this.emit("error",o)}return!0},error:function(o){return!this.isFinished&&(this.isPaused?this.generatedError=o:(this.isFinished=!0,this.emit("error",o),this.previous&&this.previous.error(o),this.cleanUp()),!0)},on:function(o,a){return this._listeners[o].push(a),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(o,a){if(this._listeners[o])for(var u=0;u<this._listeners[o].length;u++)this._listeners[o][u].call(this,a)},pipe:function(o){return o.registerPrevious(this)},registerPrevious:function(o){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=o.streamInfo,this.mergeStreamInfo(),this.previous=o;var a=this;return o.on("data",function(u){a.processChunk(u)}),o.on("end",function(){a.end()}),o.on("error",function(u){a.error(u)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var o=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),o=!0),this.previous&&this.previous.resume(),!o},flush:function(){},processChunk:function(o){this.push(o)},withStreamInfo:function(o,a){return this.extraStreamInfo[o]=a,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var o in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,o)&&(this.streamInfo[o]=this.extraStreamInfo[o])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var o="Worker "+this.name;return this.previous?this.previous+" -> "+o:o}},r.exports=s},{}],29:[function(n,r,i){var s=n("../utils"),o=n("./ConvertWorker"),a=n("./GenericWorker"),u=n("../base64"),c=n("../support"),d=n("../external"),h=null;if(c.nodestream)try{h=n("../nodejs/NodejsStreamOutputAdapter")}catch{}function m(b,g){return new d.Promise(function(_,p){var y=[],C=b._internalType,I=b._outputType,D=b._mimeType;b.on("data",function(B,A){y.push(B),g&&g(A)}).on("error",function(B){y=[],p(B)}).on("end",function(){try{var B=(function(A,S,w){switch(A){case"blob":return s.newBlob(s.transformTo("arraybuffer",S),w);case"base64":return u.encode(S);default:return s.transformTo(A,S)}})(I,(function(A,S){var w,R=0,P=null,x=0;for(w=0;w<S.length;w++)x+=S[w].length;switch(A){case"string":return S.join("");case"array":return Array.prototype.concat.apply([],S);case"uint8array":for(P=new Uint8Array(x),w=0;w<S.length;w++)P.set(S[w],R),R+=S[w].length;return P;case"nodebuffer":return Buffer.concat(S);default:throw new Error("concat : unsupported type '"+A+"'")}})(C,y),D);_(B)}catch(A){p(A)}y=[]}).resume()})}function f(b,g,_){var p=g;switch(g){case"blob":case"arraybuffer":p="uint8array";break;case"base64":p="string"}try{this._internalType=p,this._outputType=g,this._mimeType=_,s.checkSupport(p),this._worker=b.pipe(new o(p)),b.lock()}catch(y){this._worker=new a("error"),this._worker.error(y)}}f.prototype={accumulate:function(b){return m(this,b)},on:function(b,g){var _=this;return b==="data"?this._worker.on(b,function(p){g.call(_,p.data,p.meta)}):this._worker.on(b,function(){s.delay(g,arguments,_)}),this},resume:function(){return s.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(b){if(s.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new h(this,{objectMode:this._outputType!=="nodebuffer"},b)}},r.exports=f},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(n,r,i){if(i.base64=!0,i.array=!0,i.string=!0,i.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",i.nodebuffer=typeof Buffer<"u",i.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")i.blob=!1;else{var s=new ArrayBuffer(0);try{i.blob=new Blob([s],{type:"application/zip"}).size===0}catch{try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);o.append(s),i.blob=o.getBlob("application/zip").size===0}catch{i.blob=!1}}}try{i.nodestream=!!n("readable-stream").Readable}catch{i.nodestream=!1}},{"readable-stream":16}],31:[function(n,r,i){for(var s=n("./utils"),o=n("./support"),a=n("./nodejsUtils"),u=n("./stream/GenericWorker"),c=new Array(256),d=0;d<256;d++)c[d]=252<=d?6:248<=d?5:240<=d?4:224<=d?3:192<=d?2:1;c[254]=c[254]=1;function h(){u.call(this,"utf-8 decode"),this.leftOver=null}function m(){u.call(this,"utf-8 encode")}i.utf8encode=function(f){return o.nodebuffer?a.newBufferFrom(f,"utf-8"):(function(b){var g,_,p,y,C,I=b.length,D=0;for(y=0;y<I;y++)(64512&(_=b.charCodeAt(y)))==55296&&y+1<I&&(64512&(p=b.charCodeAt(y+1)))==56320&&(_=65536+(_-55296<<10)+(p-56320),y++),D+=_<128?1:_<2048?2:_<65536?3:4;for(g=o.uint8array?new Uint8Array(D):new Array(D),y=C=0;C<D;y++)(64512&(_=b.charCodeAt(y)))==55296&&y+1<I&&(64512&(p=b.charCodeAt(y+1)))==56320&&(_=65536+(_-55296<<10)+(p-56320),y++),_<128?g[C++]=_:(_<2048?g[C++]=192|_>>>6:(_<65536?g[C++]=224|_>>>12:(g[C++]=240|_>>>18,g[C++]=128|_>>>12&63),g[C++]=128|_>>>6&63),g[C++]=128|63&_);return g})(f)},i.utf8decode=function(f){return o.nodebuffer?s.transformTo("nodebuffer",f).toString("utf-8"):(function(b){var g,_,p,y,C=b.length,I=new Array(2*C);for(g=_=0;g<C;)if((p=b[g++])<128)I[_++]=p;else if(4<(y=c[p]))I[_++]=65533,g+=y-1;else{for(p&=y===2?31:y===3?15:7;1<y&&g<C;)p=p<<6|63&b[g++],y--;1<y?I[_++]=65533:p<65536?I[_++]=p:(p-=65536,I[_++]=55296|p>>10&1023,I[_++]=56320|1023&p)}return I.length!==_&&(I.subarray?I=I.subarray(0,_):I.length=_),s.applyFromCharCode(I)})(f=s.transformTo(o.uint8array?"uint8array":"array",f))},s.inherits(h,u),h.prototype.processChunk=function(f){var b=s.transformTo(o.uint8array?"uint8array":"array",f.data);if(this.leftOver&&this.leftOver.length){if(o.uint8array){var g=b;(b=new Uint8Array(g.length+this.leftOver.length)).set(this.leftOver,0),b.set(g,this.leftOver.length)}else b=this.leftOver.concat(b);this.leftOver=null}var _=(function(y,C){var I;for((C=C||y.length)>y.length&&(C=y.length),I=C-1;0<=I&&(192&y[I])==128;)I--;return I<0||I===0?C:I+c[y[I]]>C?I:C})(b),p=b;_!==b.length&&(o.uint8array?(p=b.subarray(0,_),this.leftOver=b.subarray(_,b.length)):(p=b.slice(0,_),this.leftOver=b.slice(_,b.length))),this.push({data:i.utf8decode(p),meta:f.meta})},h.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:i.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},i.Utf8DecodeWorker=h,s.inherits(m,u),m.prototype.processChunk=function(f){this.push({data:i.utf8encode(f.data),meta:f.meta})},i.Utf8EncodeWorker=m},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(n,r,i){var s=n("./support"),o=n("./base64"),a=n("./nodejsUtils"),u=n("./external");function c(g){return g}function d(g,_){for(var p=0;p<g.length;++p)_[p]=255&g.charCodeAt(p);return _}n("setimmediate"),i.newBlob=function(g,_){i.checkSupport("blob");try{return new Blob([g],{type:_})}catch{try{var p=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return p.append(g),p.getBlob(_)}catch{throw new Error("Bug : can't construct the Blob.")}}};var h={stringifyByChunk:function(g,_,p){var y=[],C=0,I=g.length;if(I<=p)return String.fromCharCode.apply(null,g);for(;C<I;)_==="array"||_==="nodebuffer"?y.push(String.fromCharCode.apply(null,g.slice(C,Math.min(C+p,I)))):y.push(String.fromCharCode.apply(null,g.subarray(C,Math.min(C+p,I)))),C+=p;return y.join("")},stringifyByChar:function(g){for(var _="",p=0;p<g.length;p++)_+=String.fromCharCode(g[p]);return _},applyCanBeUsed:{uint8array:(function(){try{return s.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}})(),nodebuffer:(function(){try{return s.nodebuffer&&String.fromCharCode.apply(null,a.allocBuffer(1)).length===1}catch{return!1}})()}};function m(g){var _=65536,p=i.getTypeOf(g),y=!0;if(p==="uint8array"?y=h.applyCanBeUsed.uint8array:p==="nodebuffer"&&(y=h.applyCanBeUsed.nodebuffer),y)for(;1<_;)try{return h.stringifyByChunk(g,p,_)}catch{_=Math.floor(_/2)}return h.stringifyByChar(g)}function f(g,_){for(var p=0;p<g.length;p++)_[p]=g[p];return _}i.applyFromCharCode=m;var b={};b.string={string:c,array:function(g){return d(g,new Array(g.length))},arraybuffer:function(g){return b.string.uint8array(g).buffer},uint8array:function(g){return d(g,new Uint8Array(g.length))},nodebuffer:function(g){return d(g,a.allocBuffer(g.length))}},b.array={string:m,array:c,arraybuffer:function(g){return new Uint8Array(g).buffer},uint8array:function(g){return new Uint8Array(g)},nodebuffer:function(g){return a.newBufferFrom(g)}},b.arraybuffer={string:function(g){return m(new Uint8Array(g))},array:function(g){return f(new Uint8Array(g),new Array(g.byteLength))},arraybuffer:c,uint8array:function(g){return new Uint8Array(g)},nodebuffer:function(g){return a.newBufferFrom(new Uint8Array(g))}},b.uint8array={string:m,array:function(g){return f(g,new Array(g.length))},arraybuffer:function(g){return g.buffer},uint8array:c,nodebuffer:function(g){return a.newBufferFrom(g)}},b.nodebuffer={string:m,array:function(g){return f(g,new Array(g.length))},arraybuffer:function(g){return b.nodebuffer.uint8array(g).buffer},uint8array:function(g){return f(g,new Uint8Array(g.length))},nodebuffer:c},i.transformTo=function(g,_){if(_=_||"",!g)return _;i.checkSupport(g);var p=i.getTypeOf(_);return b[p][g](_)},i.resolve=function(g){for(var _=g.split("/"),p=[],y=0;y<_.length;y++){var C=_[y];C==="."||C===""&&y!==0&&y!==_.length-1||(C===".."?p.pop():p.push(C))}return p.join("/")},i.getTypeOf=function(g){return typeof g=="string"?"string":Object.prototype.toString.call(g)==="[object Array]"?"array":s.nodebuffer&&a.isBuffer(g)?"nodebuffer":s.uint8array&&g instanceof Uint8Array?"uint8array":s.arraybuffer&&g instanceof ArrayBuffer?"arraybuffer":void 0},i.checkSupport=function(g){if(!s[g.toLowerCase()])throw new Error(g+" is not supported by this platform")},i.MAX_VALUE_16BITS=65535,i.MAX_VALUE_32BITS=-1,i.pretty=function(g){var _,p,y="";for(p=0;p<(g||"").length;p++)y+="\\x"+((_=g.charCodeAt(p))<16?"0":"")+_.toString(16).toUpperCase();return y},i.delay=function(g,_,p){setImmediate(function(){g.apply(p||null,_||[])})},i.inherits=function(g,_){function p(){}p.prototype=_.prototype,g.prototype=new p},i.extend=function(){var g,_,p={};for(g=0;g<arguments.length;g++)for(_ in arguments[g])Object.prototype.hasOwnProperty.call(arguments[g],_)&&p[_]===void 0&&(p[_]=arguments[g][_]);return p},i.prepareContent=function(g,_,p,y,C){return u.Promise.resolve(_).then(function(I){return s.blob&&(I instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(I))!==-1)&&typeof FileReader<"u"?new u.Promise(function(D,B){var A=new FileReader;A.onload=function(S){D(S.target.result)},A.onerror=function(S){B(S.target.error)},A.readAsArrayBuffer(I)}):I}).then(function(I){var D=i.getTypeOf(I);return D?(D==="arraybuffer"?I=i.transformTo("uint8array",I):D==="string"&&(C?I=o.decode(I):p&&y!==!0&&(I=(function(B){return d(B,s.uint8array?new Uint8Array(B.length):new Array(B.length))})(I))),I):u.Promise.reject(new Error("Can't read the data of '"+g+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(n,r,i){var s=n("./reader/readerFor"),o=n("./utils"),a=n("./signature"),u=n("./zipEntry"),c=n("./support");function d(h){this.files=[],this.loadOptions=h}d.prototype={checkSignature:function(h){if(!this.reader.readAndCheckSignature(h)){this.reader.index-=4;var m=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+o.pretty(m)+", expected "+o.pretty(h)+")")}},isSignature:function(h,m){var f=this.reader.index;this.reader.setIndex(h);var b=this.reader.readString(4)===m;return this.reader.setIndex(f),b},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var h=this.reader.readData(this.zipCommentLength),m=c.uint8array?"uint8array":"array",f=o.transformTo(m,h);this.zipComment=this.loadOptions.decodeFileName(f)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var h,m,f,b=this.zip64EndOfCentralSize-44;0<b;)h=this.reader.readInt(2),m=this.reader.readInt(4),f=this.reader.readData(m),this.zip64ExtensibleData[h]={id:h,length:m,value:f}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var h,m;for(h=0;h<this.files.length;h++)m=this.files[h],this.reader.setIndex(m.localHeaderOffset),this.checkSignature(a.LOCAL_FILE_HEADER),m.readLocalPart(this.reader),m.handleUTF8(),m.processAttributes()},readCentralDir:function(){var h;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(a.CENTRAL_FILE_HEADER);)(h=new u({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(h);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var h=this.reader.lastIndexOfSignature(a.CENTRAL_DIRECTORY_END);if(h<0)throw this.isSignature(0,a.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(h);var m=h;if(this.checkSignature(a.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===o.MAX_VALUE_16BITS||this.diskWithCentralDirStart===o.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===o.MAX_VALUE_16BITS||this.centralDirRecords===o.MAX_VALUE_16BITS||this.centralDirSize===o.MAX_VALUE_32BITS||this.centralDirOffset===o.MAX_VALUE_32BITS){if(this.zip64=!0,(h=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(h),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,a.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var f=this.centralDirOffset+this.centralDirSize;this.zip64&&(f+=20,f+=12+this.zip64EndOfCentralSize);var b=m-f;if(0<b)this.isSignature(m,a.CENTRAL_FILE_HEADER)||(this.reader.zero=b);else if(b<0)throw new Error("Corrupted zip: missing "+Math.abs(b)+" bytes.")},prepareReader:function(h){this.reader=s(h)},load:function(h){this.prepareReader(h),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},r.exports=d},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(n,r,i){var s=n("./reader/readerFor"),o=n("./utils"),a=n("./compressedObject"),u=n("./crc32"),c=n("./utf8"),d=n("./compressions"),h=n("./support");function m(f,b){this.options=f,this.loadOptions=b}m.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(f){var b,g;if(f.skip(22),this.fileNameLength=f.readInt(2),g=f.readInt(2),this.fileName=f.readData(this.fileNameLength),f.skip(g),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((b=(function(_){for(var p in d)if(Object.prototype.hasOwnProperty.call(d,p)&&d[p].magic===_)return d[p];return null})(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+o.pretty(this.compressionMethod)+" unknown (inner file : "+o.transformTo("string",this.fileName)+")");this.decompressed=new a(this.compressedSize,this.uncompressedSize,this.crc32,b,f.readData(this.compressedSize))},readCentralPart:function(f){this.versionMadeBy=f.readInt(2),f.skip(2),this.bitFlag=f.readInt(2),this.compressionMethod=f.readString(2),this.date=f.readDate(),this.crc32=f.readInt(4),this.compressedSize=f.readInt(4),this.uncompressedSize=f.readInt(4);var b=f.readInt(2);if(this.extraFieldsLength=f.readInt(2),this.fileCommentLength=f.readInt(2),this.diskNumberStart=f.readInt(2),this.internalFileAttributes=f.readInt(2),this.externalFileAttributes=f.readInt(4),this.localHeaderOffset=f.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");f.skip(b),this.readExtraFields(f),this.parseZIP64ExtraField(f),this.fileComment=f.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var f=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),f==0&&(this.dosPermissions=63&this.externalFileAttributes),f==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var f=s(this.extraFields[1].value);this.uncompressedSize===o.MAX_VALUE_32BITS&&(this.uncompressedSize=f.readInt(8)),this.compressedSize===o.MAX_VALUE_32BITS&&(this.compressedSize=f.readInt(8)),this.localHeaderOffset===o.MAX_VALUE_32BITS&&(this.localHeaderOffset=f.readInt(8)),this.diskNumberStart===o.MAX_VALUE_32BITS&&(this.diskNumberStart=f.readInt(4))}},readExtraFields:function(f){var b,g,_,p=f.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});f.index+4<p;)b=f.readInt(2),g=f.readInt(2),_=f.readData(g),this.extraFields[b]={id:b,length:g,value:_};f.setIndex(p)},handleUTF8:function(){var f=h.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=c.utf8decode(this.fileName),this.fileCommentStr=c.utf8decode(this.fileComment);else{var b=this.findExtraFieldUnicodePath();if(b!==null)this.fileNameStr=b;else{var g=o.transformTo(f,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(g)}var _=this.findExtraFieldUnicodeComment();if(_!==null)this.fileCommentStr=_;else{var p=o.transformTo(f,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(p)}}},findExtraFieldUnicodePath:function(){var f=this.extraFields[28789];if(f){var b=s(f.value);return b.readInt(1)!==1||u(this.fileName)!==b.readInt(4)?null:c.utf8decode(b.readData(f.length-5))}return null},findExtraFieldUnicodeComment:function(){var f=this.extraFields[25461];if(f){var b=s(f.value);return b.readInt(1)!==1||u(this.fileComment)!==b.readInt(4)?null:c.utf8decode(b.readData(f.length-5))}return null}},r.exports=m},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(n,r,i){function s(b,g,_){this.name=b,this.dir=_.dir,this.date=_.date,this.comment=_.comment,this.unixPermissions=_.unixPermissions,this.dosPermissions=_.dosPermissions,this._data=g,this._dataBinary=_.binary,this.options={compression:_.compression,compressionOptions:_.compressionOptions}}var o=n("./stream/StreamHelper"),a=n("./stream/DataWorker"),u=n("./utf8"),c=n("./compressedObject"),d=n("./stream/GenericWorker");s.prototype={internalStream:function(b){var g=null,_="string";try{if(!b)throw new Error("No output type specified.");var p=(_=b.toLowerCase())==="string"||_==="text";_!=="binarystring"&&_!=="text"||(_="string"),g=this._decompressWorker();var y=!this._dataBinary;y&&!p&&(g=g.pipe(new u.Utf8EncodeWorker)),!y&&p&&(g=g.pipe(new u.Utf8DecodeWorker))}catch(C){(g=new d("error")).error(C)}return new o(g,_,"")},async:function(b,g){return this.internalStream(b).accumulate(g)},nodeStream:function(b,g){return this.internalStream(b||"nodebuffer").toNodejsStream(g)},_compressWorker:function(b,g){if(this._data instanceof c&&this._data.compression.magic===b.magic)return this._data.getCompressedWorker();var _=this._decompressWorker();return this._dataBinary||(_=_.pipe(new u.Utf8EncodeWorker)),c.createWorkerFrom(_,b,g)},_decompressWorker:function(){return this._data instanceof c?this._data.getContentWorker():this._data instanceof d?this._data:new a(this._data)}};for(var h=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],m=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},f=0;f<h.length;f++)s.prototype[h[f]]=m;r.exports=s},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(n,r,i){(function(s){var o,a,u=s.MutationObserver||s.WebKitMutationObserver;if(u){var c=0,d=new u(b),h=s.document.createTextNode("");d.observe(h,{characterData:!0}),o=function(){h.data=c=++c%2}}else if(s.setImmediate||s.MessageChannel===void 0)o="document"in s&&"onreadystatechange"in s.document.createElement("script")?function(){var g=s.document.createElement("script");g.onreadystatechange=function(){b(),g.onreadystatechange=null,g.parentNode.removeChild(g),g=null},s.document.documentElement.appendChild(g)}:function(){setTimeout(b,0)};else{var m=new s.MessageChannel;m.port1.onmessage=b,o=function(){m.port2.postMessage(0)}}var f=[];function b(){var g,_;a=!0;for(var p=f.length;p;){for(_=f,f=[],g=-1;++g<p;)_[g]();p=f.length}a=!1}r.exports=function(g){f.push(g)!==1||a||o()}}).call(this,typeof Ur<"u"?Ur:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(n,r,i){var s=n("immediate");function o(){}var a={},u=["REJECTED"],c=["FULFILLED"],d=["PENDING"];function h(p){if(typeof p!="function")throw new TypeError("resolver must be a function");this.state=d,this.queue=[],this.outcome=void 0,p!==o&&g(this,p)}function m(p,y,C){this.promise=p,typeof y=="function"&&(this.onFulfilled=y,this.callFulfilled=this.otherCallFulfilled),typeof C=="function"&&(this.onRejected=C,this.callRejected=this.otherCallRejected)}function f(p,y,C){s(function(){var I;try{I=y(C)}catch(D){return a.reject(p,D)}I===p?a.reject(p,new TypeError("Cannot resolve promise with itself")):a.resolve(p,I)})}function b(p){var y=p&&p.then;if(p&&(typeof p=="object"||typeof p=="function")&&typeof y=="function")return function(){y.apply(p,arguments)}}function g(p,y){var C=!1;function I(A){C||(C=!0,a.reject(p,A))}function D(A){C||(C=!0,a.resolve(p,A))}var B=_(function(){y(D,I)});B.status==="error"&&I(B.value)}function _(p,y){var C={};try{C.value=p(y),C.status="success"}catch(I){C.status="error",C.value=I}return C}(r.exports=h).prototype.finally=function(p){if(typeof p!="function")return this;var y=this.constructor;return this.then(function(C){return y.resolve(p()).then(function(){return C})},function(C){return y.resolve(p()).then(function(){throw C})})},h.prototype.catch=function(p){return this.then(null,p)},h.prototype.then=function(p,y){if(typeof p!="function"&&this.state===c||typeof y!="function"&&this.state===u)return this;var C=new this.constructor(o);return this.state!==d?f(C,this.state===c?p:y,this.outcome):this.queue.push(new m(C,p,y)),C},m.prototype.callFulfilled=function(p){a.resolve(this.promise,p)},m.prototype.otherCallFulfilled=function(p){f(this.promise,this.onFulfilled,p)},m.prototype.callRejected=function(p){a.reject(this.promise,p)},m.prototype.otherCallRejected=function(p){f(this.promise,this.onRejected,p)},a.resolve=function(p,y){var C=_(b,y);if(C.status==="error")return a.reject(p,C.value);var I=C.value;if(I)g(p,I);else{p.state=c,p.outcome=y;for(var D=-1,B=p.queue.length;++D<B;)p.queue[D].callFulfilled(y)}return p},a.reject=function(p,y){p.state=u,p.outcome=y;for(var C=-1,I=p.queue.length;++C<I;)p.queue[C].callRejected(y);return p},h.resolve=function(p){return p instanceof this?p:a.resolve(new this(o),p)},h.reject=function(p){var y=new this(o);return a.reject(y,p)},h.all=function(p){var y=this;if(Object.prototype.toString.call(p)!=="[object Array]")return this.reject(new TypeError("must be an array"));var C=p.length,I=!1;if(!C)return this.resolve([]);for(var D=new Array(C),B=0,A=-1,S=new this(o);++A<C;)w(p[A],A);return S;function w(R,P){y.resolve(R).then(function(x){D[P]=x,++B!==C||I||(I=!0,a.resolve(S,D))},function(x){I||(I=!0,a.reject(S,x))})}},h.race=function(p){var y=this;if(Object.prototype.toString.call(p)!=="[object Array]")return this.reject(new TypeError("must be an array"));var C=p.length,I=!1;if(!C)return this.resolve([]);for(var D=-1,B=new this(o);++D<C;)A=p[D],y.resolve(A).then(function(S){I||(I=!0,a.resolve(B,S))},function(S){I||(I=!0,a.reject(B,S))});var A;return B}},{immediate:36}],38:[function(n,r,i){var s={};(0,n("./lib/utils/common").assign)(s,n("./lib/deflate"),n("./lib/inflate"),n("./lib/zlib/constants")),r.exports=s},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(n,r,i){var s=n("./zlib/deflate"),o=n("./utils/common"),a=n("./utils/strings"),u=n("./zlib/messages"),c=n("./zlib/zstream"),d=Object.prototype.toString,h=0,m=-1,f=0,b=8;function g(p){if(!(this instanceof g))return new g(p);this.options=o.assign({level:m,method:b,chunkSize:16384,windowBits:15,memLevel:8,strategy:f,to:""},p||{});var y=this.options;y.raw&&0<y.windowBits?y.windowBits=-y.windowBits:y.gzip&&0<y.windowBits&&y.windowBits<16&&(y.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var C=s.deflateInit2(this.strm,y.level,y.method,y.windowBits,y.memLevel,y.strategy);if(C!==h)throw new Error(u[C]);if(y.header&&s.deflateSetHeader(this.strm,y.header),y.dictionary){var I;if(I=typeof y.dictionary=="string"?a.string2buf(y.dictionary):d.call(y.dictionary)==="[object ArrayBuffer]"?new Uint8Array(y.dictionary):y.dictionary,(C=s.deflateSetDictionary(this.strm,I))!==h)throw new Error(u[C]);this._dict_set=!0}}function _(p,y){var C=new g(y);if(C.push(p,!0),C.err)throw C.msg||u[C.err];return C.result}g.prototype.push=function(p,y){var C,I,D=this.strm,B=this.options.chunkSize;if(this.ended)return!1;I=y===~~y?y:y===!0?4:0,typeof p=="string"?D.input=a.string2buf(p):d.call(p)==="[object ArrayBuffer]"?D.input=new Uint8Array(p):D.input=p,D.next_in=0,D.avail_in=D.input.length;do{if(D.avail_out===0&&(D.output=new o.Buf8(B),D.next_out=0,D.avail_out=B),(C=s.deflate(D,I))!==1&&C!==h)return this.onEnd(C),!(this.ended=!0);D.avail_out!==0&&(D.avail_in!==0||I!==4&&I!==2)||(this.options.to==="string"?this.onData(a.buf2binstring(o.shrinkBuf(D.output,D.next_out))):this.onData(o.shrinkBuf(D.output,D.next_out)))}while((0<D.avail_in||D.avail_out===0)&&C!==1);return I===4?(C=s.deflateEnd(this.strm),this.onEnd(C),this.ended=!0,C===h):I!==2||(this.onEnd(h),!(D.avail_out=0))},g.prototype.onData=function(p){this.chunks.push(p)},g.prototype.onEnd=function(p){p===h&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=p,this.msg=this.strm.msg},i.Deflate=g,i.deflate=_,i.deflateRaw=function(p,y){return(y=y||{}).raw=!0,_(p,y)},i.gzip=function(p,y){return(y=y||{}).gzip=!0,_(p,y)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(n,r,i){var s=n("./zlib/inflate"),o=n("./utils/common"),a=n("./utils/strings"),u=n("./zlib/constants"),c=n("./zlib/messages"),d=n("./zlib/zstream"),h=n("./zlib/gzheader"),m=Object.prototype.toString;function f(g){if(!(this instanceof f))return new f(g);this.options=o.assign({chunkSize:16384,windowBits:0,to:""},g||{});var _=this.options;_.raw&&0<=_.windowBits&&_.windowBits<16&&(_.windowBits=-_.windowBits,_.windowBits===0&&(_.windowBits=-15)),!(0<=_.windowBits&&_.windowBits<16)||g&&g.windowBits||(_.windowBits+=32),15<_.windowBits&&_.windowBits<48&&(15&_.windowBits)==0&&(_.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new d,this.strm.avail_out=0;var p=s.inflateInit2(this.strm,_.windowBits);if(p!==u.Z_OK)throw new Error(c[p]);this.header=new h,s.inflateGetHeader(this.strm,this.header)}function b(g,_){var p=new f(_);if(p.push(g,!0),p.err)throw p.msg||c[p.err];return p.result}f.prototype.push=function(g,_){var p,y,C,I,D,B,A=this.strm,S=this.options.chunkSize,w=this.options.dictionary,R=!1;if(this.ended)return!1;y=_===~~_?_:_===!0?u.Z_FINISH:u.Z_NO_FLUSH,typeof g=="string"?A.input=a.binstring2buf(g):m.call(g)==="[object ArrayBuffer]"?A.input=new Uint8Array(g):A.input=g,A.next_in=0,A.avail_in=A.input.length;do{if(A.avail_out===0&&(A.output=new o.Buf8(S),A.next_out=0,A.avail_out=S),(p=s.inflate(A,u.Z_NO_FLUSH))===u.Z_NEED_DICT&&w&&(B=typeof w=="string"?a.string2buf(w):m.call(w)==="[object ArrayBuffer]"?new Uint8Array(w):w,p=s.inflateSetDictionary(this.strm,B)),p===u.Z_BUF_ERROR&&R===!0&&(p=u.Z_OK,R=!1),p!==u.Z_STREAM_END&&p!==u.Z_OK)return this.onEnd(p),!(this.ended=!0);A.next_out&&(A.avail_out!==0&&p!==u.Z_STREAM_END&&(A.avail_in!==0||y!==u.Z_FINISH&&y!==u.Z_SYNC_FLUSH)||(this.options.to==="string"?(C=a.utf8border(A.output,A.next_out),I=A.next_out-C,D=a.buf2string(A.output,C),A.next_out=I,A.avail_out=S-I,I&&o.arraySet(A.output,A.output,C,I,0),this.onData(D)):this.onData(o.shrinkBuf(A.output,A.next_out)))),A.avail_in===0&&A.avail_out===0&&(R=!0)}while((0<A.avail_in||A.avail_out===0)&&p!==u.Z_STREAM_END);return p===u.Z_STREAM_END&&(y=u.Z_FINISH),y===u.Z_FINISH?(p=s.inflateEnd(this.strm),this.onEnd(p),this.ended=!0,p===u.Z_OK):y!==u.Z_SYNC_FLUSH||(this.onEnd(u.Z_OK),!(A.avail_out=0))},f.prototype.onData=function(g){this.chunks.push(g)},f.prototype.onEnd=function(g){g===u.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=g,this.msg=this.strm.msg},i.Inflate=f,i.inflate=b,i.inflateRaw=function(g,_){return(_=_||{}).raw=!0,b(g,_)},i.ungzip=b},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(n,r,i){var s=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";i.assign=function(u){for(var c=Array.prototype.slice.call(arguments,1);c.length;){var d=c.shift();if(d){if(typeof d!="object")throw new TypeError(d+"must be non-object");for(var h in d)d.hasOwnProperty(h)&&(u[h]=d[h])}}return u},i.shrinkBuf=function(u,c){return u.length===c?u:u.subarray?u.subarray(0,c):(u.length=c,u)};var o={arraySet:function(u,c,d,h,m){if(c.subarray&&u.subarray)u.set(c.subarray(d,d+h),m);else for(var f=0;f<h;f++)u[m+f]=c[d+f]},flattenChunks:function(u){var c,d,h,m,f,b;for(c=h=0,d=u.length;c<d;c++)h+=u[c].length;for(b=new Uint8Array(h),c=m=0,d=u.length;c<d;c++)f=u[c],b.set(f,m),m+=f.length;return b}},a={arraySet:function(u,c,d,h,m){for(var f=0;f<h;f++)u[m+f]=c[d+f]},flattenChunks:function(u){return[].concat.apply([],u)}};i.setTyped=function(u){u?(i.Buf8=Uint8Array,i.Buf16=Uint16Array,i.Buf32=Int32Array,i.assign(i,o)):(i.Buf8=Array,i.Buf16=Array,i.Buf32=Array,i.assign(i,a))},i.setTyped(s)},{}],42:[function(n,r,i){var s=n("./common"),o=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch{o=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{a=!1}for(var u=new s.Buf8(256),c=0;c<256;c++)u[c]=252<=c?6:248<=c?5:240<=c?4:224<=c?3:192<=c?2:1;function d(h,m){if(m<65537&&(h.subarray&&a||!h.subarray&&o))return String.fromCharCode.apply(null,s.shrinkBuf(h,m));for(var f="",b=0;b<m;b++)f+=String.fromCharCode(h[b]);return f}u[254]=u[254]=1,i.string2buf=function(h){var m,f,b,g,_,p=h.length,y=0;for(g=0;g<p;g++)(64512&(f=h.charCodeAt(g)))==55296&&g+1<p&&(64512&(b=h.charCodeAt(g+1)))==56320&&(f=65536+(f-55296<<10)+(b-56320),g++),y+=f<128?1:f<2048?2:f<65536?3:4;for(m=new s.Buf8(y),g=_=0;_<y;g++)(64512&(f=h.charCodeAt(g)))==55296&&g+1<p&&(64512&(b=h.charCodeAt(g+1)))==56320&&(f=65536+(f-55296<<10)+(b-56320),g++),f<128?m[_++]=f:(f<2048?m[_++]=192|f>>>6:(f<65536?m[_++]=224|f>>>12:(m[_++]=240|f>>>18,m[_++]=128|f>>>12&63),m[_++]=128|f>>>6&63),m[_++]=128|63&f);return m},i.buf2binstring=function(h){return d(h,h.length)},i.binstring2buf=function(h){for(var m=new s.Buf8(h.length),f=0,b=m.length;f<b;f++)m[f]=h.charCodeAt(f);return m},i.buf2string=function(h,m){var f,b,g,_,p=m||h.length,y=new Array(2*p);for(f=b=0;f<p;)if((g=h[f++])<128)y[b++]=g;else if(4<(_=u[g]))y[b++]=65533,f+=_-1;else{for(g&=_===2?31:_===3?15:7;1<_&&f<p;)g=g<<6|63&h[f++],_--;1<_?y[b++]=65533:g<65536?y[b++]=g:(g-=65536,y[b++]=55296|g>>10&1023,y[b++]=56320|1023&g)}return d(y,b)},i.utf8border=function(h,m){var f;for((m=m||h.length)>h.length&&(m=h.length),f=m-1;0<=f&&(192&h[f])==128;)f--;return f<0||f===0?m:f+u[h[f]]>m?f:m}},{"./common":41}],43:[function(n,r,i){r.exports=function(s,o,a,u){for(var c=65535&s|0,d=s>>>16&65535|0,h=0;a!==0;){for(a-=h=2e3<a?2e3:a;d=d+(c=c+o[u++]|0)|0,--h;);c%=65521,d%=65521}return c|d<<16|0}},{}],44:[function(n,r,i){r.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(n,r,i){var s=(function(){for(var o,a=[],u=0;u<256;u++){o=u;for(var c=0;c<8;c++)o=1&o?3988292384^o>>>1:o>>>1;a[u]=o}return a})();r.exports=function(o,a,u,c){var d=s,h=c+u;o^=-1;for(var m=c;m<h;m++)o=o>>>8^d[255&(o^a[m])];return-1^o}},{}],46:[function(n,r,i){var s,o=n("../utils/common"),a=n("./trees"),u=n("./adler32"),c=n("./crc32"),d=n("./messages"),h=0,m=4,f=0,b=-2,g=-1,_=4,p=2,y=8,C=9,I=286,D=30,B=19,A=2*I+1,S=15,w=3,R=258,P=R+w+1,x=42,M=113,T=1,U=2,W=3,G=4;function se(E,V){return E.msg=d[V],V}function Z(E){return(E<<1)-(4<E?9:0)}function he(E){for(var V=E.length;0<=--V;)E[V]=0}function j(E){var V=E.state,Y=V.pending;Y>E.avail_out&&(Y=E.avail_out),Y!==0&&(o.arraySet(E.output,V.pending_buf,V.pending_out,Y,E.next_out),E.next_out+=Y,V.pending_out+=Y,E.total_out+=Y,E.avail_out-=Y,V.pending-=Y,V.pending===0&&(V.pending_out=0))}function $(E,V){a._tr_flush_block(E,0<=E.block_start?E.block_start:-1,E.strstart-E.block_start,V),E.block_start=E.strstart,j(E.strm)}function oe(E,V){E.pending_buf[E.pending++]=V}function ae(E,V){E.pending_buf[E.pending++]=V>>>8&255,E.pending_buf[E.pending++]=255&V}function ie(E,V){var Y,O,v=E.max_chain_length,F=E.strstart,K=E.prev_length,Q=E.nice_match,z=E.strstart>E.w_size-P?E.strstart-(E.w_size-P):0,te=E.window,ue=E.w_mask,re=E.prev,ce=E.strstart+R,ve=te[F+K-1],ye=te[F+K];E.prev_length>=E.good_match&&(v>>=2),Q>E.lookahead&&(Q=E.lookahead);do if(te[(Y=V)+K]===ye&&te[Y+K-1]===ve&&te[Y]===te[F]&&te[++Y]===te[F+1]){F+=2,Y++;do;while(te[++F]===te[++Y]&&te[++F]===te[++Y]&&te[++F]===te[++Y]&&te[++F]===te[++Y]&&te[++F]===te[++Y]&&te[++F]===te[++Y]&&te[++F]===te[++Y]&&te[++F]===te[++Y]&&F<ce);if(O=R-(ce-F),F=ce-R,K<O){if(E.match_start=V,Q<=(K=O))break;ve=te[F+K-1],ye=te[F+K]}}while((V=re[V&ue])>z&&--v!=0);return K<=E.lookahead?K:E.lookahead}function Pe(E){var V,Y,O,v,F,K,Q,z,te,ue,re=E.w_size;do{if(v=E.window_size-E.lookahead-E.strstart,E.strstart>=re+(re-P)){for(o.arraySet(E.window,E.window,re,re,0),E.match_start-=re,E.strstart-=re,E.block_start-=re,V=Y=E.hash_size;O=E.head[--V],E.head[V]=re<=O?O-re:0,--Y;);for(V=Y=re;O=E.prev[--V],E.prev[V]=re<=O?O-re:0,--Y;);v+=re}if(E.strm.avail_in===0)break;if(K=E.strm,Q=E.window,z=E.strstart+E.lookahead,te=v,ue=void 0,ue=K.avail_in,te<ue&&(ue=te),Y=ue===0?0:(K.avail_in-=ue,o.arraySet(Q,K.input,K.next_in,ue,z),K.state.wrap===1?K.adler=u(K.adler,Q,ue,z):K.state.wrap===2&&(K.adler=c(K.adler,Q,ue,z)),K.next_in+=ue,K.total_in+=ue,ue),E.lookahead+=Y,E.lookahead+E.insert>=w)for(F=E.strstart-E.insert,E.ins_h=E.window[F],E.ins_h=(E.ins_h<<E.hash_shift^E.window[F+1])&E.hash_mask;E.insert&&(E.ins_h=(E.ins_h<<E.hash_shift^E.window[F+w-1])&E.hash_mask,E.prev[F&E.w_mask]=E.head[E.ins_h],E.head[E.ins_h]=F,F++,E.insert--,!(E.lookahead+E.insert<w)););}while(E.lookahead<P&&E.strm.avail_in!==0)}function Qe(E,V){for(var Y,O;;){if(E.lookahead<P){if(Pe(E),E.lookahead<P&&V===h)return T;if(E.lookahead===0)break}if(Y=0,E.lookahead>=w&&(E.ins_h=(E.ins_h<<E.hash_shift^E.window[E.strstart+w-1])&E.hash_mask,Y=E.prev[E.strstart&E.w_mask]=E.head[E.ins_h],E.head[E.ins_h]=E.strstart),Y!==0&&E.strstart-Y<=E.w_size-P&&(E.match_length=ie(E,Y)),E.match_length>=w)if(O=a._tr_tally(E,E.strstart-E.match_start,E.match_length-w),E.lookahead-=E.match_length,E.match_length<=E.max_lazy_match&&E.lookahead>=w){for(E.match_length--;E.strstart++,E.ins_h=(E.ins_h<<E.hash_shift^E.window[E.strstart+w-1])&E.hash_mask,Y=E.prev[E.strstart&E.w_mask]=E.head[E.ins_h],E.head[E.ins_h]=E.strstart,--E.match_length!=0;);E.strstart++}else E.strstart+=E.match_length,E.match_length=0,E.ins_h=E.window[E.strstart],E.ins_h=(E.ins_h<<E.hash_shift^E.window[E.strstart+1])&E.hash_mask;else O=a._tr_tally(E,0,E.window[E.strstart]),E.lookahead--,E.strstart++;if(O&&($(E,!1),E.strm.avail_out===0))return T}return E.insert=E.strstart<w-1?E.strstart:w-1,V===m?($(E,!0),E.strm.avail_out===0?W:G):E.last_lit&&($(E,!1),E.strm.avail_out===0)?T:U}function Ee(E,V){for(var Y,O,v;;){if(E.lookahead<P){if(Pe(E),E.lookahead<P&&V===h)return T;if(E.lookahead===0)break}if(Y=0,E.lookahead>=w&&(E.ins_h=(E.ins_h<<E.hash_shift^E.window[E.strstart+w-1])&E.hash_mask,Y=E.prev[E.strstart&E.w_mask]=E.head[E.ins_h],E.head[E.ins_h]=E.strstart),E.prev_length=E.match_length,E.prev_match=E.match_start,E.match_length=w-1,Y!==0&&E.prev_length<E.max_lazy_match&&E.strstart-Y<=E.w_size-P&&(E.match_length=ie(E,Y),E.match_length<=5&&(E.strategy===1||E.match_length===w&&4096<E.strstart-E.match_start)&&(E.match_length=w-1)),E.prev_length>=w&&E.match_length<=E.prev_length){for(v=E.strstart+E.lookahead-w,O=a._tr_tally(E,E.strstart-1-E.prev_match,E.prev_length-w),E.lookahead-=E.prev_length-1,E.prev_length-=2;++E.strstart<=v&&(E.ins_h=(E.ins_h<<E.hash_shift^E.window[E.strstart+w-1])&E.hash_mask,Y=E.prev[E.strstart&E.w_mask]=E.head[E.ins_h],E.head[E.ins_h]=E.strstart),--E.prev_length!=0;);if(E.match_available=0,E.match_length=w-1,E.strstart++,O&&($(E,!1),E.strm.avail_out===0))return T}else if(E.match_available){if((O=a._tr_tally(E,0,E.window[E.strstart-1]))&&$(E,!1),E.strstart++,E.lookahead--,E.strm.avail_out===0)return T}else E.match_available=1,E.strstart++,E.lookahead--}return E.match_available&&(O=a._tr_tally(E,0,E.window[E.strstart-1]),E.match_available=0),E.insert=E.strstart<w-1?E.strstart:w-1,V===m?($(E,!0),E.strm.avail_out===0?W:G):E.last_lit&&($(E,!1),E.strm.avail_out===0)?T:U}function Ae(E,V,Y,O,v){this.good_length=E,this.max_lazy=V,this.nice_length=Y,this.max_chain=O,this.func=v}function je(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=y,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new o.Buf16(2*A),this.dyn_dtree=new o.Buf16(2*(2*D+1)),this.bl_tree=new o.Buf16(2*(2*B+1)),he(this.dyn_ltree),he(this.dyn_dtree),he(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new o.Buf16(S+1),this.heap=new o.Buf16(2*I+1),he(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new o.Buf16(2*I+1),he(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Re(E){var V;return E&&E.state?(E.total_in=E.total_out=0,E.data_type=p,(V=E.state).pending=0,V.pending_out=0,V.wrap<0&&(V.wrap=-V.wrap),V.status=V.wrap?x:M,E.adler=V.wrap===2?0:1,V.last_flush=h,a._tr_init(V),f):se(E,b)}function Lt(E){var V=Re(E);return V===f&&(function(Y){Y.window_size=2*Y.w_size,he(Y.head),Y.max_lazy_match=s[Y.level].max_lazy,Y.good_match=s[Y.level].good_length,Y.nice_match=s[Y.level].nice_length,Y.max_chain_length=s[Y.level].max_chain,Y.strstart=0,Y.block_start=0,Y.lookahead=0,Y.insert=0,Y.match_length=Y.prev_length=w-1,Y.match_available=0,Y.ins_h=0})(E.state),V}function At(E,V,Y,O,v,F){if(!E)return b;var K=1;if(V===g&&(V=6),O<0?(K=0,O=-O):15<O&&(K=2,O-=16),v<1||C<v||Y!==y||O<8||15<O||V<0||9<V||F<0||_<F)return se(E,b);O===8&&(O=9);var Q=new je;return(E.state=Q).strm=E,Q.wrap=K,Q.gzhead=null,Q.w_bits=O,Q.w_size=1<<Q.w_bits,Q.w_mask=Q.w_size-1,Q.hash_bits=v+7,Q.hash_size=1<<Q.hash_bits,Q.hash_mask=Q.hash_size-1,Q.hash_shift=~~((Q.hash_bits+w-1)/w),Q.window=new o.Buf8(2*Q.w_size),Q.head=new o.Buf16(Q.hash_size),Q.prev=new o.Buf16(Q.w_size),Q.lit_bufsize=1<<v+6,Q.pending_buf_size=4*Q.lit_bufsize,Q.pending_buf=new o.Buf8(Q.pending_buf_size),Q.d_buf=1*Q.lit_bufsize,Q.l_buf=3*Q.lit_bufsize,Q.level=V,Q.strategy=F,Q.method=Y,Lt(E)}s=[new Ae(0,0,0,0,function(E,V){var Y=65535;for(Y>E.pending_buf_size-5&&(Y=E.pending_buf_size-5);;){if(E.lookahead<=1){if(Pe(E),E.lookahead===0&&V===h)return T;if(E.lookahead===0)break}E.strstart+=E.lookahead,E.lookahead=0;var O=E.block_start+Y;if((E.strstart===0||E.strstart>=O)&&(E.lookahead=E.strstart-O,E.strstart=O,$(E,!1),E.strm.avail_out===0)||E.strstart-E.block_start>=E.w_size-P&&($(E,!1),E.strm.avail_out===0))return T}return E.insert=0,V===m?($(E,!0),E.strm.avail_out===0?W:G):(E.strstart>E.block_start&&($(E,!1),E.strm.avail_out),T)}),new Ae(4,4,8,4,Qe),new Ae(4,5,16,8,Qe),new Ae(4,6,32,32,Qe),new Ae(4,4,16,16,Ee),new Ae(8,16,32,32,Ee),new Ae(8,16,128,128,Ee),new Ae(8,32,128,256,Ee),new Ae(32,128,258,1024,Ee),new Ae(32,258,258,4096,Ee)],i.deflateInit=function(E,V){return At(E,V,y,15,8,0)},i.deflateInit2=At,i.deflateReset=Lt,i.deflateResetKeep=Re,i.deflateSetHeader=function(E,V){return E&&E.state?E.state.wrap!==2?b:(E.state.gzhead=V,f):b},i.deflate=function(E,V){var Y,O,v,F;if(!E||!E.state||5<V||V<0)return E?se(E,b):b;if(O=E.state,!E.output||!E.input&&E.avail_in!==0||O.status===666&&V!==m)return se(E,E.avail_out===0?-5:b);if(O.strm=E,Y=O.last_flush,O.last_flush=V,O.status===x)if(O.wrap===2)E.adler=0,oe(O,31),oe(O,139),oe(O,8),O.gzhead?(oe(O,(O.gzhead.text?1:0)+(O.gzhead.hcrc?2:0)+(O.gzhead.extra?4:0)+(O.gzhead.name?8:0)+(O.gzhead.comment?16:0)),oe(O,255&O.gzhead.time),oe(O,O.gzhead.time>>8&255),oe(O,O.gzhead.time>>16&255),oe(O,O.gzhead.time>>24&255),oe(O,O.level===9?2:2<=O.strategy||O.level<2?4:0),oe(O,255&O.gzhead.os),O.gzhead.extra&&O.gzhead.extra.length&&(oe(O,255&O.gzhead.extra.length),oe(O,O.gzhead.extra.length>>8&255)),O.gzhead.hcrc&&(E.adler=c(E.adler,O.pending_buf,O.pending,0)),O.gzindex=0,O.status=69):(oe(O,0),oe(O,0),oe(O,0),oe(O,0),oe(O,0),oe(O,O.level===9?2:2<=O.strategy||O.level<2?4:0),oe(O,3),O.status=M);else{var K=y+(O.w_bits-8<<4)<<8;K|=(2<=O.strategy||O.level<2?0:O.level<6?1:O.level===6?2:3)<<6,O.strstart!==0&&(K|=32),K+=31-K%31,O.status=M,ae(O,K),O.strstart!==0&&(ae(O,E.adler>>>16),ae(O,65535&E.adler)),E.adler=1}if(O.status===69)if(O.gzhead.extra){for(v=O.pending;O.gzindex<(65535&O.gzhead.extra.length)&&(O.pending!==O.pending_buf_size||(O.gzhead.hcrc&&O.pending>v&&(E.adler=c(E.adler,O.pending_buf,O.pending-v,v)),j(E),v=O.pending,O.pending!==O.pending_buf_size));)oe(O,255&O.gzhead.extra[O.gzindex]),O.gzindex++;O.gzhead.hcrc&&O.pending>v&&(E.adler=c(E.adler,O.pending_buf,O.pending-v,v)),O.gzindex===O.gzhead.extra.length&&(O.gzindex=0,O.status=73)}else O.status=73;if(O.status===73)if(O.gzhead.name){v=O.pending;do{if(O.pending===O.pending_buf_size&&(O.gzhead.hcrc&&O.pending>v&&(E.adler=c(E.adler,O.pending_buf,O.pending-v,v)),j(E),v=O.pending,O.pending===O.pending_buf_size)){F=1;break}F=O.gzindex<O.gzhead.name.length?255&O.gzhead.name.charCodeAt(O.gzindex++):0,oe(O,F)}while(F!==0);O.gzhead.hcrc&&O.pending>v&&(E.adler=c(E.adler,O.pending_buf,O.pending-v,v)),F===0&&(O.gzindex=0,O.status=91)}else O.status=91;if(O.status===91)if(O.gzhead.comment){v=O.pending;do{if(O.pending===O.pending_buf_size&&(O.gzhead.hcrc&&O.pending>v&&(E.adler=c(E.adler,O.pending_buf,O.pending-v,v)),j(E),v=O.pending,O.pending===O.pending_buf_size)){F=1;break}F=O.gzindex<O.gzhead.comment.length?255&O.gzhead.comment.charCodeAt(O.gzindex++):0,oe(O,F)}while(F!==0);O.gzhead.hcrc&&O.pending>v&&(E.adler=c(E.adler,O.pending_buf,O.pending-v,v)),F===0&&(O.status=103)}else O.status=103;if(O.status===103&&(O.gzhead.hcrc?(O.pending+2>O.pending_buf_size&&j(E),O.pending+2<=O.pending_buf_size&&(oe(O,255&E.adler),oe(O,E.adler>>8&255),E.adler=0,O.status=M)):O.status=M),O.pending!==0){if(j(E),E.avail_out===0)return O.last_flush=-1,f}else if(E.avail_in===0&&Z(V)<=Z(Y)&&V!==m)return se(E,-5);if(O.status===666&&E.avail_in!==0)return se(E,-5);if(E.avail_in!==0||O.lookahead!==0||V!==h&&O.status!==666){var Q=O.strategy===2?(function(z,te){for(var ue;;){if(z.lookahead===0&&(Pe(z),z.lookahead===0)){if(te===h)return T;break}if(z.match_length=0,ue=a._tr_tally(z,0,z.window[z.strstart]),z.lookahead--,z.strstart++,ue&&($(z,!1),z.strm.avail_out===0))return T}return z.insert=0,te===m?($(z,!0),z.strm.avail_out===0?W:G):z.last_lit&&($(z,!1),z.strm.avail_out===0)?T:U})(O,V):O.strategy===3?(function(z,te){for(var ue,re,ce,ve,ye=z.window;;){if(z.lookahead<=R){if(Pe(z),z.lookahead<=R&&te===h)return T;if(z.lookahead===0)break}if(z.match_length=0,z.lookahead>=w&&0<z.strstart&&(re=ye[ce=z.strstart-1])===ye[++ce]&&re===ye[++ce]&&re===ye[++ce]){ve=z.strstart+R;do;while(re===ye[++ce]&&re===ye[++ce]&&re===ye[++ce]&&re===ye[++ce]&&re===ye[++ce]&&re===ye[++ce]&&re===ye[++ce]&&re===ye[++ce]&&ce<ve);z.match_length=R-(ve-ce),z.match_length>z.lookahead&&(z.match_length=z.lookahead)}if(z.match_length>=w?(ue=a._tr_tally(z,1,z.match_length-w),z.lookahead-=z.match_length,z.strstart+=z.match_length,z.match_length=0):(ue=a._tr_tally(z,0,z.window[z.strstart]),z.lookahead--,z.strstart++),ue&&($(z,!1),z.strm.avail_out===0))return T}return z.insert=0,te===m?($(z,!0),z.strm.avail_out===0?W:G):z.last_lit&&($(z,!1),z.strm.avail_out===0)?T:U})(O,V):s[O.level].func(O,V);if(Q!==W&&Q!==G||(O.status=666),Q===T||Q===W)return E.avail_out===0&&(O.last_flush=-1),f;if(Q===U&&(V===1?a._tr_align(O):V!==5&&(a._tr_stored_block(O,0,0,!1),V===3&&(he(O.head),O.lookahead===0&&(O.strstart=0,O.block_start=0,O.insert=0))),j(E),E.avail_out===0))return O.last_flush=-1,f}return V!==m?f:O.wrap<=0?1:(O.wrap===2?(oe(O,255&E.adler),oe(O,E.adler>>8&255),oe(O,E.adler>>16&255),oe(O,E.adler>>24&255),oe(O,255&E.total_in),oe(O,E.total_in>>8&255),oe(O,E.total_in>>16&255),oe(O,E.total_in>>24&255)):(ae(O,E.adler>>>16),ae(O,65535&E.adler)),j(E),0<O.wrap&&(O.wrap=-O.wrap),O.pending!==0?f:1)},i.deflateEnd=function(E){var V;return E&&E.state?(V=E.state.status)!==x&&V!==69&&V!==73&&V!==91&&V!==103&&V!==M&&V!==666?se(E,b):(E.state=null,V===M?se(E,-3):f):b},i.deflateSetDictionary=function(E,V){var Y,O,v,F,K,Q,z,te,ue=V.length;if(!E||!E.state||(F=(Y=E.state).wrap)===2||F===1&&Y.status!==x||Y.lookahead)return b;for(F===1&&(E.adler=u(E.adler,V,ue,0)),Y.wrap=0,ue>=Y.w_size&&(F===0&&(he(Y.head),Y.strstart=0,Y.block_start=0,Y.insert=0),te=new o.Buf8(Y.w_size),o.arraySet(te,V,ue-Y.w_size,Y.w_size,0),V=te,ue=Y.w_size),K=E.avail_in,Q=E.next_in,z=E.input,E.avail_in=ue,E.next_in=0,E.input=V,Pe(Y);Y.lookahead>=w;){for(O=Y.strstart,v=Y.lookahead-(w-1);Y.ins_h=(Y.ins_h<<Y.hash_shift^Y.window[O+w-1])&Y.hash_mask,Y.prev[O&Y.w_mask]=Y.head[Y.ins_h],Y.head[Y.ins_h]=O,O++,--v;);Y.strstart=O,Y.lookahead=w-1,Pe(Y)}return Y.strstart+=Y.lookahead,Y.block_start=Y.strstart,Y.insert=Y.lookahead,Y.lookahead=0,Y.match_length=Y.prev_length=w-1,Y.match_available=0,E.next_in=Q,E.input=z,E.avail_in=K,Y.wrap=F,f},i.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(n,r,i){r.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(n,r,i){r.exports=function(s,o){var a,u,c,d,h,m,f,b,g,_,p,y,C,I,D,B,A,S,w,R,P,x,M,T,U;a=s.state,u=s.next_in,T=s.input,c=u+(s.avail_in-5),d=s.next_out,U=s.output,h=d-(o-s.avail_out),m=d+(s.avail_out-257),f=a.dmax,b=a.wsize,g=a.whave,_=a.wnext,p=a.window,y=a.hold,C=a.bits,I=a.lencode,D=a.distcode,B=(1<<a.lenbits)-1,A=(1<<a.distbits)-1;e:do{C<15&&(y+=T[u++]<<C,C+=8,y+=T[u++]<<C,C+=8),S=I[y&B];t:for(;;){if(y>>>=w=S>>>24,C-=w,(w=S>>>16&255)===0)U[d++]=65535&S;else{if(!(16&w)){if((64&w)==0){S=I[(65535&S)+(y&(1<<w)-1)];continue t}if(32&w){a.mode=12;break e}s.msg="invalid literal/length code",a.mode=30;break e}R=65535&S,(w&=15)&&(C<w&&(y+=T[u++]<<C,C+=8),R+=y&(1<<w)-1,y>>>=w,C-=w),C<15&&(y+=T[u++]<<C,C+=8,y+=T[u++]<<C,C+=8),S=D[y&A];n:for(;;){if(y>>>=w=S>>>24,C-=w,!(16&(w=S>>>16&255))){if((64&w)==0){S=D[(65535&S)+(y&(1<<w)-1)];continue n}s.msg="invalid distance code",a.mode=30;break e}if(P=65535&S,C<(w&=15)&&(y+=T[u++]<<C,(C+=8)<w&&(y+=T[u++]<<C,C+=8)),f<(P+=y&(1<<w)-1)){s.msg="invalid distance too far back",a.mode=30;break e}if(y>>>=w,C-=w,(w=d-h)<P){if(g<(w=P-w)&&a.sane){s.msg="invalid distance too far back",a.mode=30;break e}if(M=p,(x=0)===_){if(x+=b-w,w<R){for(R-=w;U[d++]=p[x++],--w;);x=d-P,M=U}}else if(_<w){if(x+=b+_-w,(w-=_)<R){for(R-=w;U[d++]=p[x++],--w;);if(x=0,_<R){for(R-=w=_;U[d++]=p[x++],--w;);x=d-P,M=U}}}else if(x+=_-w,w<R){for(R-=w;U[d++]=p[x++],--w;);x=d-P,M=U}for(;2<R;)U[d++]=M[x++],U[d++]=M[x++],U[d++]=M[x++],R-=3;R&&(U[d++]=M[x++],1<R&&(U[d++]=M[x++]))}else{for(x=d-P;U[d++]=U[x++],U[d++]=U[x++],U[d++]=U[x++],2<(R-=3););R&&(U[d++]=U[x++],1<R&&(U[d++]=U[x++]))}break}}break}}while(u<c&&d<m);u-=R=C>>3,y&=(1<<(C-=R<<3))-1,s.next_in=u,s.next_out=d,s.avail_in=u<c?c-u+5:5-(u-c),s.avail_out=d<m?m-d+257:257-(d-m),a.hold=y,a.bits=C}},{}],49:[function(n,r,i){var s=n("../utils/common"),o=n("./adler32"),a=n("./crc32"),u=n("./inffast"),c=n("./inftrees"),d=1,h=2,m=0,f=-2,b=1,g=852,_=592;function p(x){return(x>>>24&255)+(x>>>8&65280)+((65280&x)<<8)+((255&x)<<24)}function y(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new s.Buf16(320),this.work=new s.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function C(x){var M;return x&&x.state?(M=x.state,x.total_in=x.total_out=M.total=0,x.msg="",M.wrap&&(x.adler=1&M.wrap),M.mode=b,M.last=0,M.havedict=0,M.dmax=32768,M.head=null,M.hold=0,M.bits=0,M.lencode=M.lendyn=new s.Buf32(g),M.distcode=M.distdyn=new s.Buf32(_),M.sane=1,M.back=-1,m):f}function I(x){var M;return x&&x.state?((M=x.state).wsize=0,M.whave=0,M.wnext=0,C(x)):f}function D(x,M){var T,U;return x&&x.state?(U=x.state,M<0?(T=0,M=-M):(T=1+(M>>4),M<48&&(M&=15)),M&&(M<8||15<M)?f:(U.window!==null&&U.wbits!==M&&(U.window=null),U.wrap=T,U.wbits=M,I(x))):f}function B(x,M){var T,U;return x?(U=new y,(x.state=U).window=null,(T=D(x,M))!==m&&(x.state=null),T):f}var A,S,w=!0;function R(x){if(w){var M;for(A=new s.Buf32(512),S=new s.Buf32(32),M=0;M<144;)x.lens[M++]=8;for(;M<256;)x.lens[M++]=9;for(;M<280;)x.lens[M++]=7;for(;M<288;)x.lens[M++]=8;for(c(d,x.lens,0,288,A,0,x.work,{bits:9}),M=0;M<32;)x.lens[M++]=5;c(h,x.lens,0,32,S,0,x.work,{bits:5}),w=!1}x.lencode=A,x.lenbits=9,x.distcode=S,x.distbits=5}function P(x,M,T,U){var W,G=x.state;return G.window===null&&(G.wsize=1<<G.wbits,G.wnext=0,G.whave=0,G.window=new s.Buf8(G.wsize)),U>=G.wsize?(s.arraySet(G.window,M,T-G.wsize,G.wsize,0),G.wnext=0,G.whave=G.wsize):(U<(W=G.wsize-G.wnext)&&(W=U),s.arraySet(G.window,M,T-U,W,G.wnext),(U-=W)?(s.arraySet(G.window,M,T-U,U,0),G.wnext=U,G.whave=G.wsize):(G.wnext+=W,G.wnext===G.wsize&&(G.wnext=0),G.whave<G.wsize&&(G.whave+=W))),0}i.inflateReset=I,i.inflateReset2=D,i.inflateResetKeep=C,i.inflateInit=function(x){return B(x,15)},i.inflateInit2=B,i.inflate=function(x,M){var T,U,W,G,se,Z,he,j,$,oe,ae,ie,Pe,Qe,Ee,Ae,je,Re,Lt,At,E,V,Y,O,v=0,F=new s.Buf8(4),K=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!x||!x.state||!x.output||!x.input&&x.avail_in!==0)return f;(T=x.state).mode===12&&(T.mode=13),se=x.next_out,W=x.output,he=x.avail_out,G=x.next_in,U=x.input,Z=x.avail_in,j=T.hold,$=T.bits,oe=Z,ae=he,V=m;e:for(;;)switch(T.mode){case b:if(T.wrap===0){T.mode=13;break}for(;$<16;){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}if(2&T.wrap&&j===35615){F[T.check=0]=255&j,F[1]=j>>>8&255,T.check=a(T.check,F,2,0),$=j=0,T.mode=2;break}if(T.flags=0,T.head&&(T.head.done=!1),!(1&T.wrap)||(((255&j)<<8)+(j>>8))%31){x.msg="incorrect header check",T.mode=30;break}if((15&j)!=8){x.msg="unknown compression method",T.mode=30;break}if($-=4,E=8+(15&(j>>>=4)),T.wbits===0)T.wbits=E;else if(E>T.wbits){x.msg="invalid window size",T.mode=30;break}T.dmax=1<<E,x.adler=T.check=1,T.mode=512&j?10:12,$=j=0;break;case 2:for(;$<16;){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}if(T.flags=j,(255&T.flags)!=8){x.msg="unknown compression method",T.mode=30;break}if(57344&T.flags){x.msg="unknown header flags set",T.mode=30;break}T.head&&(T.head.text=j>>8&1),512&T.flags&&(F[0]=255&j,F[1]=j>>>8&255,T.check=a(T.check,F,2,0)),$=j=0,T.mode=3;case 3:for(;$<32;){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}T.head&&(T.head.time=j),512&T.flags&&(F[0]=255&j,F[1]=j>>>8&255,F[2]=j>>>16&255,F[3]=j>>>24&255,T.check=a(T.check,F,4,0)),$=j=0,T.mode=4;case 4:for(;$<16;){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}T.head&&(T.head.xflags=255&j,T.head.os=j>>8),512&T.flags&&(F[0]=255&j,F[1]=j>>>8&255,T.check=a(T.check,F,2,0)),$=j=0,T.mode=5;case 5:if(1024&T.flags){for(;$<16;){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}T.length=j,T.head&&(T.head.extra_len=j),512&T.flags&&(F[0]=255&j,F[1]=j>>>8&255,T.check=a(T.check,F,2,0)),$=j=0}else T.head&&(T.head.extra=null);T.mode=6;case 6:if(1024&T.flags&&(Z<(ie=T.length)&&(ie=Z),ie&&(T.head&&(E=T.head.extra_len-T.length,T.head.extra||(T.head.extra=new Array(T.head.extra_len)),s.arraySet(T.head.extra,U,G,ie,E)),512&T.flags&&(T.check=a(T.check,U,ie,G)),Z-=ie,G+=ie,T.length-=ie),T.length))break e;T.length=0,T.mode=7;case 7:if(2048&T.flags){if(Z===0)break e;for(ie=0;E=U[G+ie++],T.head&&E&&T.length<65536&&(T.head.name+=String.fromCharCode(E)),E&&ie<Z;);if(512&T.flags&&(T.check=a(T.check,U,ie,G)),Z-=ie,G+=ie,E)break e}else T.head&&(T.head.name=null);T.length=0,T.mode=8;case 8:if(4096&T.flags){if(Z===0)break e;for(ie=0;E=U[G+ie++],T.head&&E&&T.length<65536&&(T.head.comment+=String.fromCharCode(E)),E&&ie<Z;);if(512&T.flags&&(T.check=a(T.check,U,ie,G)),Z-=ie,G+=ie,E)break e}else T.head&&(T.head.comment=null);T.mode=9;case 9:if(512&T.flags){for(;$<16;){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}if(j!==(65535&T.check)){x.msg="header crc mismatch",T.mode=30;break}$=j=0}T.head&&(T.head.hcrc=T.flags>>9&1,T.head.done=!0),x.adler=T.check=0,T.mode=12;break;case 10:for(;$<32;){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}x.adler=T.check=p(j),$=j=0,T.mode=11;case 11:if(T.havedict===0)return x.next_out=se,x.avail_out=he,x.next_in=G,x.avail_in=Z,T.hold=j,T.bits=$,2;x.adler=T.check=1,T.mode=12;case 12:if(M===5||M===6)break e;case 13:if(T.last){j>>>=7&$,$-=7&$,T.mode=27;break}for(;$<3;){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}switch(T.last=1&j,$-=1,3&(j>>>=1)){case 0:T.mode=14;break;case 1:if(R(T),T.mode=20,M!==6)break;j>>>=2,$-=2;break e;case 2:T.mode=17;break;case 3:x.msg="invalid block type",T.mode=30}j>>>=2,$-=2;break;case 14:for(j>>>=7&$,$-=7&$;$<32;){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}if((65535&j)!=(j>>>16^65535)){x.msg="invalid stored block lengths",T.mode=30;break}if(T.length=65535&j,$=j=0,T.mode=15,M===6)break e;case 15:T.mode=16;case 16:if(ie=T.length){if(Z<ie&&(ie=Z),he<ie&&(ie=he),ie===0)break e;s.arraySet(W,U,G,ie,se),Z-=ie,G+=ie,he-=ie,se+=ie,T.length-=ie;break}T.mode=12;break;case 17:for(;$<14;){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}if(T.nlen=257+(31&j),j>>>=5,$-=5,T.ndist=1+(31&j),j>>>=5,$-=5,T.ncode=4+(15&j),j>>>=4,$-=4,286<T.nlen||30<T.ndist){x.msg="too many length or distance symbols",T.mode=30;break}T.have=0,T.mode=18;case 18:for(;T.have<T.ncode;){for(;$<3;){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}T.lens[K[T.have++]]=7&j,j>>>=3,$-=3}for(;T.have<19;)T.lens[K[T.have++]]=0;if(T.lencode=T.lendyn,T.lenbits=7,Y={bits:T.lenbits},V=c(0,T.lens,0,19,T.lencode,0,T.work,Y),T.lenbits=Y.bits,V){x.msg="invalid code lengths set",T.mode=30;break}T.have=0,T.mode=19;case 19:for(;T.have<T.nlen+T.ndist;){for(;Ae=(v=T.lencode[j&(1<<T.lenbits)-1])>>>16&255,je=65535&v,!((Ee=v>>>24)<=$);){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}if(je<16)j>>>=Ee,$-=Ee,T.lens[T.have++]=je;else{if(je===16){for(O=Ee+2;$<O;){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}if(j>>>=Ee,$-=Ee,T.have===0){x.msg="invalid bit length repeat",T.mode=30;break}E=T.lens[T.have-1],ie=3+(3&j),j>>>=2,$-=2}else if(je===17){for(O=Ee+3;$<O;){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}$-=Ee,E=0,ie=3+(7&(j>>>=Ee)),j>>>=3,$-=3}else{for(O=Ee+7;$<O;){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}$-=Ee,E=0,ie=11+(127&(j>>>=Ee)),j>>>=7,$-=7}if(T.have+ie>T.nlen+T.ndist){x.msg="invalid bit length repeat",T.mode=30;break}for(;ie--;)T.lens[T.have++]=E}}if(T.mode===30)break;if(T.lens[256]===0){x.msg="invalid code -- missing end-of-block",T.mode=30;break}if(T.lenbits=9,Y={bits:T.lenbits},V=c(d,T.lens,0,T.nlen,T.lencode,0,T.work,Y),T.lenbits=Y.bits,V){x.msg="invalid literal/lengths set",T.mode=30;break}if(T.distbits=6,T.distcode=T.distdyn,Y={bits:T.distbits},V=c(h,T.lens,T.nlen,T.ndist,T.distcode,0,T.work,Y),T.distbits=Y.bits,V){x.msg="invalid distances set",T.mode=30;break}if(T.mode=20,M===6)break e;case 20:T.mode=21;case 21:if(6<=Z&&258<=he){x.next_out=se,x.avail_out=he,x.next_in=G,x.avail_in=Z,T.hold=j,T.bits=$,u(x,ae),se=x.next_out,W=x.output,he=x.avail_out,G=x.next_in,U=x.input,Z=x.avail_in,j=T.hold,$=T.bits,T.mode===12&&(T.back=-1);break}for(T.back=0;Ae=(v=T.lencode[j&(1<<T.lenbits)-1])>>>16&255,je=65535&v,!((Ee=v>>>24)<=$);){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}if(Ae&&(240&Ae)==0){for(Re=Ee,Lt=Ae,At=je;Ae=(v=T.lencode[At+((j&(1<<Re+Lt)-1)>>Re)])>>>16&255,je=65535&v,!(Re+(Ee=v>>>24)<=$);){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}j>>>=Re,$-=Re,T.back+=Re}if(j>>>=Ee,$-=Ee,T.back+=Ee,T.length=je,Ae===0){T.mode=26;break}if(32&Ae){T.back=-1,T.mode=12;break}if(64&Ae){x.msg="invalid literal/length code",T.mode=30;break}T.extra=15&Ae,T.mode=22;case 22:if(T.extra){for(O=T.extra;$<O;){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}T.length+=j&(1<<T.extra)-1,j>>>=T.extra,$-=T.extra,T.back+=T.extra}T.was=T.length,T.mode=23;case 23:for(;Ae=(v=T.distcode[j&(1<<T.distbits)-1])>>>16&255,je=65535&v,!((Ee=v>>>24)<=$);){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}if((240&Ae)==0){for(Re=Ee,Lt=Ae,At=je;Ae=(v=T.distcode[At+((j&(1<<Re+Lt)-1)>>Re)])>>>16&255,je=65535&v,!(Re+(Ee=v>>>24)<=$);){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}j>>>=Re,$-=Re,T.back+=Re}if(j>>>=Ee,$-=Ee,T.back+=Ee,64&Ae){x.msg="invalid distance code",T.mode=30;break}T.offset=je,T.extra=15&Ae,T.mode=24;case 24:if(T.extra){for(O=T.extra;$<O;){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}T.offset+=j&(1<<T.extra)-1,j>>>=T.extra,$-=T.extra,T.back+=T.extra}if(T.offset>T.dmax){x.msg="invalid distance too far back",T.mode=30;break}T.mode=25;case 25:if(he===0)break e;if(ie=ae-he,T.offset>ie){if((ie=T.offset-ie)>T.whave&&T.sane){x.msg="invalid distance too far back",T.mode=30;break}Pe=ie>T.wnext?(ie-=T.wnext,T.wsize-ie):T.wnext-ie,ie>T.length&&(ie=T.length),Qe=T.window}else Qe=W,Pe=se-T.offset,ie=T.length;for(he<ie&&(ie=he),he-=ie,T.length-=ie;W[se++]=Qe[Pe++],--ie;);T.length===0&&(T.mode=21);break;case 26:if(he===0)break e;W[se++]=T.length,he--,T.mode=21;break;case 27:if(T.wrap){for(;$<32;){if(Z===0)break e;Z--,j|=U[G++]<<$,$+=8}if(ae-=he,x.total_out+=ae,T.total+=ae,ae&&(x.adler=T.check=T.flags?a(T.check,W,ae,se-ae):o(T.check,W,ae,se-ae)),ae=he,(T.flags?j:p(j))!==T.check){x.msg="incorrect data check",T.mode=30;break}$=j=0}T.mode=28;case 28:if(T.wrap&&T.flags){for(;$<32;){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}if(j!==(4294967295&T.total)){x.msg="incorrect length check",T.mode=30;break}$=j=0}T.mode=29;case 29:V=1;break e;case 30:V=-3;break e;case 31:return-4;case 32:default:return f}return x.next_out=se,x.avail_out=he,x.next_in=G,x.avail_in=Z,T.hold=j,T.bits=$,(T.wsize||ae!==x.avail_out&&T.mode<30&&(T.mode<27||M!==4))&&P(x,x.output,x.next_out,ae-x.avail_out)?(T.mode=31,-4):(oe-=x.avail_in,ae-=x.avail_out,x.total_in+=oe,x.total_out+=ae,T.total+=ae,T.wrap&&ae&&(x.adler=T.check=T.flags?a(T.check,W,ae,x.next_out-ae):o(T.check,W,ae,x.next_out-ae)),x.data_type=T.bits+(T.last?64:0)+(T.mode===12?128:0)+(T.mode===20||T.mode===15?256:0),(oe==0&&ae===0||M===4)&&V===m&&(V=-5),V)},i.inflateEnd=function(x){if(!x||!x.state)return f;var M=x.state;return M.window&&(M.window=null),x.state=null,m},i.inflateGetHeader=function(x,M){var T;return x&&x.state?(2&(T=x.state).wrap)==0?f:((T.head=M).done=!1,m):f},i.inflateSetDictionary=function(x,M){var T,U=M.length;return x&&x.state?(T=x.state).wrap!==0&&T.mode!==11?f:T.mode===11&&o(1,M,U,0)!==T.check?-3:P(x,M,U,U)?(T.mode=31,-4):(T.havedict=1,m):f},i.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(n,r,i){var s=n("../utils/common"),o=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],u=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],c=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];r.exports=function(d,h,m,f,b,g,_,p){var y,C,I,D,B,A,S,w,R,P=p.bits,x=0,M=0,T=0,U=0,W=0,G=0,se=0,Z=0,he=0,j=0,$=null,oe=0,ae=new s.Buf16(16),ie=new s.Buf16(16),Pe=null,Qe=0;for(x=0;x<=15;x++)ae[x]=0;for(M=0;M<f;M++)ae[h[m+M]]++;for(W=P,U=15;1<=U&&ae[U]===0;U--);if(U<W&&(W=U),U===0)return b[g++]=20971520,b[g++]=20971520,p.bits=1,0;for(T=1;T<U&&ae[T]===0;T++);for(W<T&&(W=T),x=Z=1;x<=15;x++)if(Z<<=1,(Z-=ae[x])<0)return-1;if(0<Z&&(d===0||U!==1))return-1;for(ie[1]=0,x=1;x<15;x++)ie[x+1]=ie[x]+ae[x];for(M=0;M<f;M++)h[m+M]!==0&&(_[ie[h[m+M]]++]=M);if(A=d===0?($=Pe=_,19):d===1?($=o,oe-=257,Pe=a,Qe-=257,256):($=u,Pe=c,-1),x=T,B=g,se=M=j=0,I=-1,D=(he=1<<(G=W))-1,d===1&&852<he||d===2&&592<he)return 1;for(;;){for(S=x-se,R=_[M]<A?(w=0,_[M]):_[M]>A?(w=Pe[Qe+_[M]],$[oe+_[M]]):(w=96,0),y=1<<x-se,T=C=1<<G;b[B+(j>>se)+(C-=y)]=S<<24|w<<16|R|0,C!==0;);for(y=1<<x-1;j&y;)y>>=1;if(y!==0?(j&=y-1,j+=y):j=0,M++,--ae[x]==0){if(x===U)break;x=h[m+_[M]]}if(W<x&&(j&D)!==I){for(se===0&&(se=W),B+=T,Z=1<<(G=x-se);G+se<U&&!((Z-=ae[G+se])<=0);)G++,Z<<=1;if(he+=1<<G,d===1&&852<he||d===2&&592<he)return 1;b[I=j&D]=W<<24|G<<16|B-g|0}}return j!==0&&(b[B+j]=x-se<<24|64<<16|0),p.bits=W,0}},{"../utils/common":41}],51:[function(n,r,i){r.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(n,r,i){var s=n("../utils/common"),o=0,a=1;function u(v){for(var F=v.length;0<=--F;)v[F]=0}var c=0,d=29,h=256,m=h+1+d,f=30,b=19,g=2*m+1,_=15,p=16,y=7,C=256,I=16,D=17,B=18,A=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],S=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],w=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],R=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],P=new Array(2*(m+2));u(P);var x=new Array(2*f);u(x);var M=new Array(512);u(M);var T=new Array(256);u(T);var U=new Array(d);u(U);var W,G,se,Z=new Array(f);function he(v,F,K,Q,z){this.static_tree=v,this.extra_bits=F,this.extra_base=K,this.elems=Q,this.max_length=z,this.has_stree=v&&v.length}function j(v,F){this.dyn_tree=v,this.max_code=0,this.stat_desc=F}function $(v){return v<256?M[v]:M[256+(v>>>7)]}function oe(v,F){v.pending_buf[v.pending++]=255&F,v.pending_buf[v.pending++]=F>>>8&255}function ae(v,F,K){v.bi_valid>p-K?(v.bi_buf|=F<<v.bi_valid&65535,oe(v,v.bi_buf),v.bi_buf=F>>p-v.bi_valid,v.bi_valid+=K-p):(v.bi_buf|=F<<v.bi_valid&65535,v.bi_valid+=K)}function ie(v,F,K){ae(v,K[2*F],K[2*F+1])}function Pe(v,F){for(var K=0;K|=1&v,v>>>=1,K<<=1,0<--F;);return K>>>1}function Qe(v,F,K){var Q,z,te=new Array(_+1),ue=0;for(Q=1;Q<=_;Q++)te[Q]=ue=ue+K[Q-1]<<1;for(z=0;z<=F;z++){var re=v[2*z+1];re!==0&&(v[2*z]=Pe(te[re]++,re))}}function Ee(v){var F;for(F=0;F<m;F++)v.dyn_ltree[2*F]=0;for(F=0;F<f;F++)v.dyn_dtree[2*F]=0;for(F=0;F<b;F++)v.bl_tree[2*F]=0;v.dyn_ltree[2*C]=1,v.opt_len=v.static_len=0,v.last_lit=v.matches=0}function Ae(v){8<v.bi_valid?oe(v,v.bi_buf):0<v.bi_valid&&(v.pending_buf[v.pending++]=v.bi_buf),v.bi_buf=0,v.bi_valid=0}function je(v,F,K,Q){var z=2*F,te=2*K;return v[z]<v[te]||v[z]===v[te]&&Q[F]<=Q[K]}function Re(v,F,K){for(var Q=v.heap[K],z=K<<1;z<=v.heap_len&&(z<v.heap_len&&je(F,v.heap[z+1],v.heap[z],v.depth)&&z++,!je(F,Q,v.heap[z],v.depth));)v.heap[K]=v.heap[z],K=z,z<<=1;v.heap[K]=Q}function Lt(v,F,K){var Q,z,te,ue,re=0;if(v.last_lit!==0)for(;Q=v.pending_buf[v.d_buf+2*re]<<8|v.pending_buf[v.d_buf+2*re+1],z=v.pending_buf[v.l_buf+re],re++,Q===0?ie(v,z,F):(ie(v,(te=T[z])+h+1,F),(ue=A[te])!==0&&ae(v,z-=U[te],ue),ie(v,te=$(--Q),K),(ue=S[te])!==0&&ae(v,Q-=Z[te],ue)),re<v.last_lit;);ie(v,C,F)}function At(v,F){var K,Q,z,te=F.dyn_tree,ue=F.stat_desc.static_tree,re=F.stat_desc.has_stree,ce=F.stat_desc.elems,ve=-1;for(v.heap_len=0,v.heap_max=g,K=0;K<ce;K++)te[2*K]!==0?(v.heap[++v.heap_len]=ve=K,v.depth[K]=0):te[2*K+1]=0;for(;v.heap_len<2;)te[2*(z=v.heap[++v.heap_len]=ve<2?++ve:0)]=1,v.depth[z]=0,v.opt_len--,re&&(v.static_len-=ue[2*z+1]);for(F.max_code=ve,K=v.heap_len>>1;1<=K;K--)Re(v,te,K);for(z=ce;K=v.heap[1],v.heap[1]=v.heap[v.heap_len--],Re(v,te,1),Q=v.heap[1],v.heap[--v.heap_max]=K,v.heap[--v.heap_max]=Q,te[2*z]=te[2*K]+te[2*Q],v.depth[z]=(v.depth[K]>=v.depth[Q]?v.depth[K]:v.depth[Q])+1,te[2*K+1]=te[2*Q+1]=z,v.heap[1]=z++,Re(v,te,1),2<=v.heap_len;);v.heap[--v.heap_max]=v.heap[1],(function(ye,gt){var dr,Pt,hr,De,Ti,Pa,zt=gt.dyn_tree,jd=gt.max_code,bk=gt.stat_desc.static_tree,Ek=gt.stat_desc.has_stree,yk=gt.stat_desc.extra_bits,qd=gt.stat_desc.extra_base,fr=gt.stat_desc.max_length,_i=0;for(De=0;De<=_;De++)ye.bl_count[De]=0;for(zt[2*ye.heap[ye.heap_max]+1]=0,dr=ye.heap_max+1;dr<g;dr++)fr<(De=zt[2*zt[2*(Pt=ye.heap[dr])+1]+1]+1)&&(De=fr,_i++),zt[2*Pt+1]=De,jd<Pt||(ye.bl_count[De]++,Ti=0,qd<=Pt&&(Ti=yk[Pt-qd]),Pa=zt[2*Pt],ye.opt_len+=Pa*(De+Ti),Ek&&(ye.static_len+=Pa*(bk[2*Pt+1]+Ti)));if(_i!==0){do{for(De=fr-1;ye.bl_count[De]===0;)De--;ye.bl_count[De]--,ye.bl_count[De+1]+=2,ye.bl_count[fr]--,_i-=2}while(0<_i);for(De=fr;De!==0;De--)for(Pt=ye.bl_count[De];Pt!==0;)jd<(hr=ye.heap[--dr])||(zt[2*hr+1]!==De&&(ye.opt_len+=(De-zt[2*hr+1])*zt[2*hr],zt[2*hr+1]=De),Pt--)}})(v,F),Qe(te,ve,v.bl_count)}function E(v,F,K){var Q,z,te=-1,ue=F[1],re=0,ce=7,ve=4;for(ue===0&&(ce=138,ve=3),F[2*(K+1)+1]=65535,Q=0;Q<=K;Q++)z=ue,ue=F[2*(Q+1)+1],++re<ce&&z===ue||(re<ve?v.bl_tree[2*z]+=re:z!==0?(z!==te&&v.bl_tree[2*z]++,v.bl_tree[2*I]++):re<=10?v.bl_tree[2*D]++:v.bl_tree[2*B]++,te=z,ve=(re=0)===ue?(ce=138,3):z===ue?(ce=6,3):(ce=7,4))}function V(v,F,K){var Q,z,te=-1,ue=F[1],re=0,ce=7,ve=4;for(ue===0&&(ce=138,ve=3),Q=0;Q<=K;Q++)if(z=ue,ue=F[2*(Q+1)+1],!(++re<ce&&z===ue)){if(re<ve)for(;ie(v,z,v.bl_tree),--re!=0;);else z!==0?(z!==te&&(ie(v,z,v.bl_tree),re--),ie(v,I,v.bl_tree),ae(v,re-3,2)):re<=10?(ie(v,D,v.bl_tree),ae(v,re-3,3)):(ie(v,B,v.bl_tree),ae(v,re-11,7));te=z,ve=(re=0)===ue?(ce=138,3):z===ue?(ce=6,3):(ce=7,4)}}u(Z);var Y=!1;function O(v,F,K,Q){ae(v,(c<<1)+(Q?1:0),3),(function(z,te,ue,re){Ae(z),oe(z,ue),oe(z,~ue),s.arraySet(z.pending_buf,z.window,te,ue,z.pending),z.pending+=ue})(v,F,K)}i._tr_init=function(v){Y||((function(){var F,K,Q,z,te,ue=new Array(_+1);for(z=Q=0;z<d-1;z++)for(U[z]=Q,F=0;F<1<<A[z];F++)T[Q++]=z;for(T[Q-1]=z,z=te=0;z<16;z++)for(Z[z]=te,F=0;F<1<<S[z];F++)M[te++]=z;for(te>>=7;z<f;z++)for(Z[z]=te<<7,F=0;F<1<<S[z]-7;F++)M[256+te++]=z;for(K=0;K<=_;K++)ue[K]=0;for(F=0;F<=143;)P[2*F+1]=8,F++,ue[8]++;for(;F<=255;)P[2*F+1]=9,F++,ue[9]++;for(;F<=279;)P[2*F+1]=7,F++,ue[7]++;for(;F<=287;)P[2*F+1]=8,F++,ue[8]++;for(Qe(P,m+1,ue),F=0;F<f;F++)x[2*F+1]=5,x[2*F]=Pe(F,5);W=new he(P,A,h+1,m,_),G=new he(x,S,0,f,_),se=new he(new Array(0),w,0,b,y)})(),Y=!0),v.l_desc=new j(v.dyn_ltree,W),v.d_desc=new j(v.dyn_dtree,G),v.bl_desc=new j(v.bl_tree,se),v.bi_buf=0,v.bi_valid=0,Ee(v)},i._tr_stored_block=O,i._tr_flush_block=function(v,F,K,Q){var z,te,ue=0;0<v.level?(v.strm.data_type===2&&(v.strm.data_type=(function(re){var ce,ve=4093624447;for(ce=0;ce<=31;ce++,ve>>>=1)if(1&ve&&re.dyn_ltree[2*ce]!==0)return o;if(re.dyn_ltree[18]!==0||re.dyn_ltree[20]!==0||re.dyn_ltree[26]!==0)return a;for(ce=32;ce<h;ce++)if(re.dyn_ltree[2*ce]!==0)return a;return o})(v)),At(v,v.l_desc),At(v,v.d_desc),ue=(function(re){var ce;for(E(re,re.dyn_ltree,re.l_desc.max_code),E(re,re.dyn_dtree,re.d_desc.max_code),At(re,re.bl_desc),ce=b-1;3<=ce&&re.bl_tree[2*R[ce]+1]===0;ce--);return re.opt_len+=3*(ce+1)+5+5+4,ce})(v),z=v.opt_len+3+7>>>3,(te=v.static_len+3+7>>>3)<=z&&(z=te)):z=te=K+5,K+4<=z&&F!==-1?O(v,F,K,Q):v.strategy===4||te===z?(ae(v,2+(Q?1:0),3),Lt(v,P,x)):(ae(v,4+(Q?1:0),3),(function(re,ce,ve,ye){var gt;for(ae(re,ce-257,5),ae(re,ve-1,5),ae(re,ye-4,4),gt=0;gt<ye;gt++)ae(re,re.bl_tree[2*R[gt]+1],3);V(re,re.dyn_ltree,ce-1),V(re,re.dyn_dtree,ve-1)})(v,v.l_desc.max_code+1,v.d_desc.max_code+1,ue+1),Lt(v,v.dyn_ltree,v.dyn_dtree)),Ee(v),Q&&Ae(v)},i._tr_tally=function(v,F,K){return v.pending_buf[v.d_buf+2*v.last_lit]=F>>>8&255,v.pending_buf[v.d_buf+2*v.last_lit+1]=255&F,v.pending_buf[v.l_buf+v.last_lit]=255&K,v.last_lit++,F===0?v.dyn_ltree[2*K]++:(v.matches++,F--,v.dyn_ltree[2*(T[K]+h+1)]++,v.dyn_dtree[2*$(F)]++),v.last_lit===v.lit_bufsize-1},i._tr_align=function(v){ae(v,2,3),ie(v,C,P),(function(F){F.bi_valid===16?(oe(F,F.bi_buf),F.bi_buf=0,F.bi_valid=0):8<=F.bi_valid&&(F.pending_buf[F.pending++]=255&F.bi_buf,F.bi_buf>>=8,F.bi_valid-=8)})(v)}},{"../utils/common":41}],53:[function(n,r,i){r.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(n,r,i){(function(s){(function(o,a){if(!o.setImmediate){var u,c,d,h,m=1,f={},b=!1,g=o.document,_=Object.getPrototypeOf&&Object.getPrototypeOf(o);_=_&&_.setTimeout?_:o,u={}.toString.call(o.process)==="[object process]"?function(I){process.nextTick(function(){y(I)})}:(function(){if(o.postMessage&&!o.importScripts){var I=!0,D=o.onmessage;return o.onmessage=function(){I=!1},o.postMessage("","*"),o.onmessage=D,I}})()?(h="setImmediate$"+Math.random()+"$",o.addEventListener?o.addEventListener("message",C,!1):o.attachEvent("onmessage",C),function(I){o.postMessage(h+I,"*")}):o.MessageChannel?((d=new MessageChannel).port1.onmessage=function(I){y(I.data)},function(I){d.port2.postMessage(I)}):g&&"onreadystatechange"in g.createElement("script")?(c=g.documentElement,function(I){var D=g.createElement("script");D.onreadystatechange=function(){y(I),D.onreadystatechange=null,c.removeChild(D),D=null},c.appendChild(D)}):function(I){setTimeout(y,0,I)},_.setImmediate=function(I){typeof I!="function"&&(I=new Function(""+I));for(var D=new Array(arguments.length-1),B=0;B<D.length;B++)D[B]=arguments[B+1];var A={callback:I,args:D};return f[m]=A,u(m),m++},_.clearImmediate=p}function p(I){delete f[I]}function y(I){if(b)setTimeout(y,0,I);else{var D=f[I];if(D){b=!0;try{(function(B){var A=B.callback,S=B.args;switch(S.length){case 0:A();break;case 1:A(S[0]);break;case 2:A(S[0],S[1]);break;case 3:A(S[0],S[1],S[2]);break;default:A.apply(a,S)}})(D)}finally{p(I),b=!1}}}}function C(I){I.source===o&&typeof I.data=="string"&&I.data.indexOf(h)===0&&y(+I.data.slice(h.length))}})(typeof self>"u"?s===void 0?this:s:self)}).call(this,typeof Ur<"u"?Ur:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(pa)),pa.exports}var pw=fw();const id=Im(pw);async function mw(e){const t=await id.loadAsync(e),n={document:"",media:new Map,rawParts:new Map};for(const[r,i]of Object.entries(t.files))if(!i.dir)if(r==="word/document.xml")n.document=await i.async("string");else if(r==="word/styles.xml")n.styles=await i.async("string");else if(r==="word/numbering.xml")n.numbering=await i.async("string");else if(r==="word/_rels/document.xml.rels")n.relationships=await i.async("string");else if(r==="[Content_Types].xml")n.contentTypes=await i.async("string");else if(r.startsWith("word/media/"))n.media.set(r,await i.async("uint8array"));else try{n.rawParts.set(r,await i.async("string"))}catch{const s=await i.async("uint8array");n.rawParts.set(r,Buffer.from(s).toString("base64"))}return n}async function gw(e){const t=new id;t.file("[Content_Types].xml",e.contentTypes??bw),t.file("word/document.xml",e.document),e.styles&&t.file("word/styles.xml",e.styles),e.numbering&&t.file("word/numbering.xml",e.numbering),e.relationships&&t.file("word/_rels/document.xml.rels",e.relationships);for(const[n,r]of e.media)t.file(n,r);for(const[n,r]of e.rawParts)t.file(n)||t.file(n,r);return t.generateAsync({type:"uint8array"})}const bw=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
37
37
  <Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">
38
38
  <Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/>
39
39
  <Default Extension="xml" ContentType="application/xml"/>
@@ -42,20 +42,20 @@
42
42
  <Override PartName="/word/document.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml"/>
43
43
  <Override PartName="/word/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml"/>
44
44
  <Override PartName="/word/numbering.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml"/>
45
- </Types>`;var aa={},oa={},Kc;function ai(){return Kc||(Kc=1,(function(e){const t=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",n=t+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",r="["+t+"]["+n+"]*",i=new RegExp("^"+r+"$"),s=function(c,d){const h=[];let b=d.exec(c);for(;b;){const f=[];f.startIndex=d.lastIndex-b[0].length;const m=b.length;for(let g=0;g<m;g++)f.push(b[g]);h.push(f),b=d.exec(c)}return h},o=function(c){const d=i.exec(c);return!(d===null||typeof d>"u")};e.isExist=function(c){return typeof c<"u"},e.isEmptyObject=function(c){return Object.keys(c).length===0},e.merge=function(c,d,h){if(d){const b=Object.keys(d),f=b.length;for(let m=0;m<f;m++)h==="strict"?c[b[m]]=[d[b[m]]]:c[b[m]]=d[b[m]]}},e.getValue=function(c){return e.isExist(c)?c:""};const a=["hasOwnProperty","toString","valueOf","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__"],u=["__proto__","constructor","prototype"];e.isName=o,e.getAllMatches=s,e.nameRegexp=r,e.DANGEROUS_PROPERTY_NAMES=a,e.criticalProperties=u})(oa)),oa}var Xc;function Qc(){if(Xc)return aa;Xc=1;const e=ai(),t={allowBooleanAttributes:!1,unpairedTags:[]};aa.validate=function(p,y){y=Object.assign({},t,y);const C=[];let O=!1,D=!1;p[0]==="\uFEFF"&&(p=p.substr(1));for(let B=0;B<p.length;B++)if(p[B]==="<"&&p[B+1]==="?"){if(B+=2,B=r(p,B),B.err)return B}else if(p[B]==="<"){let A=B;if(B++,p[B]==="!"){B=i(p,B);continue}else{let S=!1;p[B]==="/"&&(S=!0,B++);let k="";for(;B<p.length&&p[B]!==">"&&p[B]!==" "&&p[B]!==" "&&p[B]!==`
46
- `&&p[B]!=="\r";B++)k+=p[B];if(k=k.trim(),k[k.length-1]==="/"&&(k=k.substring(0,k.length-1),B--),!m(k)){let x;return k.trim().length===0?x="Invalid space after '<'.":x="Tag '"+k+"' is an invalid name.",b("InvalidTag",x,g(p,B))}const P=a(p,B);if(P===!1)return b("InvalidAttr","Attributes for '"+k+"' have open quote.",g(p,B));let R=P.value;if(B=P.index,R[R.length-1]==="/"){const x=B-R.length;R=R.substring(0,R.length-1);const M=c(R,y);if(M===!0)O=!0;else return b(M.err.code,M.err.msg,g(p,x+M.err.line))}else if(S)if(P.tagClosed){if(R.trim().length>0)return b("InvalidTag","Closing tag '"+k+"' can't have attributes or invalid starting.",g(p,A));if(C.length===0)return b("InvalidTag","Closing tag '"+k+"' has not been opened.",g(p,A));{const x=C.pop();if(k!==x.tagName){let M=g(p,x.tagStartPos);return b("InvalidTag","Expected closing tag '"+x.tagName+"' (opened in line "+M.line+", col "+M.col+") instead of closing tag '"+k+"'.",g(p,A))}C.length==0&&(D=!0)}}else return b("InvalidTag","Closing tag '"+k+"' doesn't have proper closing.",g(p,B));else{const x=c(R,y);if(x!==!0)return b(x.err.code,x.err.msg,g(p,B-R.length+x.err.line));if(D===!0)return b("InvalidXml","Multiple possible root nodes found.",g(p,B));y.unpairedTags.indexOf(k)!==-1||C.push({tagName:k,tagStartPos:A}),O=!0}for(B++;B<p.length;B++)if(p[B]==="<")if(p[B+1]==="!"){B++,B=i(p,B);continue}else if(p[B+1]==="?"){if(B=r(p,++B),B.err)return B}else break;else if(p[B]==="&"){const x=h(p,B);if(x==-1)return b("InvalidChar","char '&' is not expected.",g(p,B));B=x}else if(D===!0&&!n(p[B]))return b("InvalidXml","Extra text at the end",g(p,B));p[B]==="<"&&B--}}else{if(n(p[B]))continue;return b("InvalidChar","char '"+p[B]+"' is not expected.",g(p,B))}if(O){if(C.length==1)return b("InvalidTag","Unclosed tag '"+C[0].tagName+"'.",g(p,C[0].tagStartPos));if(C.length>0)return b("InvalidXml","Invalid '"+JSON.stringify(C.map(B=>B.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return b("InvalidXml","Start tag expected.",1);return!0};function n(p){return p===" "||p===" "||p===`
47
- `||p==="\r"}function r(p,y){const C=y;for(;y<p.length;y++)if(p[y]=="?"||p[y]==" "){const O=p.substr(C,y-C);if(y>5&&O==="xml")return b("InvalidXml","XML declaration allowed only at the start of the document.",g(p,y));if(p[y]=="?"&&p[y+1]==">"){y++;break}else continue}return y}function i(p,y){if(p.length>y+5&&p[y+1]==="-"&&p[y+2]==="-"){for(y+=3;y<p.length;y++)if(p[y]==="-"&&p[y+1]==="-"&&p[y+2]===">"){y+=2;break}}else if(p.length>y+8&&p[y+1]==="D"&&p[y+2]==="O"&&p[y+3]==="C"&&p[y+4]==="T"&&p[y+5]==="Y"&&p[y+6]==="P"&&p[y+7]==="E"){let C=1;for(y+=8;y<p.length;y++)if(p[y]==="<")C++;else if(p[y]===">"&&(C--,C===0))break}else if(p.length>y+9&&p[y+1]==="["&&p[y+2]==="C"&&p[y+3]==="D"&&p[y+4]==="A"&&p[y+5]==="T"&&p[y+6]==="A"&&p[y+7]==="["){for(y+=8;y<p.length;y++)if(p[y]==="]"&&p[y+1]==="]"&&p[y+2]===">"){y+=2;break}}return y}const s='"',o="'";function a(p,y){let C="",O="",D=!1;for(;y<p.length;y++){if(p[y]===s||p[y]===o)O===""?O=p[y]:O!==p[y]||(O="");else if(p[y]===">"&&O===""){D=!0;break}C+=p[y]}return O!==""?!1:{value:C,index:y,tagClosed:D}}const u=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function c(p,y){const C=e.getAllMatches(p,u),O={};for(let D=0;D<C.length;D++){if(C[D][1].length===0)return b("InvalidAttr","Attribute '"+C[D][2]+"' has no space in starting.",_(C[D]));if(C[D][3]!==void 0&&C[D][4]===void 0)return b("InvalidAttr","Attribute '"+C[D][2]+"' is without value.",_(C[D]));if(C[D][3]===void 0&&!y.allowBooleanAttributes)return b("InvalidAttr","boolean attribute '"+C[D][2]+"' is not allowed.",_(C[D]));const B=C[D][2];if(!f(B))return b("InvalidAttr","Attribute '"+B+"' is an invalid name.",_(C[D]));if(!O.hasOwnProperty(B))O[B]=1;else return b("InvalidAttr","Attribute '"+B+"' is repeated.",_(C[D]))}return!0}function d(p,y){let C=/\d/;for(p[y]==="x"&&(y++,C=/[\da-fA-F]/);y<p.length;y++){if(p[y]===";")return y;if(!p[y].match(C))break}return-1}function h(p,y){if(y++,p[y]===";")return-1;if(p[y]==="#")return y++,d(p,y);let C=0;for(;y<p.length;y++,C++)if(!(p[y].match(/\w/)&&C<20)){if(p[y]===";")break;return-1}return y}function b(p,y,C){return{err:{code:p,msg:y,line:C.line||C,col:C.col}}}function f(p){return e.isName(p)}function m(p){return e.isName(p)}function g(p,y){const C=p.substring(0,y).split(/\r?\n/);return{line:C.length,col:C[C.length-1].length+1}}function _(p){return p.startIndex+p[1].length}return aa}var oi={},Zc;function J_(){if(Zc)return oi;Zc=1;const{DANGEROUS_PROPERTY_NAMES:e,criticalProperties:t}=ai(),n=a=>e.includes(a)?"__"+a:a,r={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(a,u){return u},attributeValueProcessor:function(a,u){return u},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(a,u,c){return a},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,onDangerousProperty:n};function i(a,u){if(typeof a!="string")return;const c=a.toLowerCase();if(e.some(d=>c===d.toLowerCase()))throw new Error(`[SECURITY] Invalid ${u}: "${a}" is a reserved JavaScript keyword that could cause prototype pollution`);if(t.some(d=>c===d.toLowerCase()))throw new Error(`[SECURITY] Invalid ${u}: "${a}" is a reserved JavaScript keyword that could cause prototype pollution`)}function s(a){return typeof a=="boolean"?{enabled:a,maxEntitySize:1e4,maxExpansionDepth:10,maxTotalExpansions:1e3,maxExpandedLength:1e5,allowedTags:null,tagFilter:null}:typeof a=="object"&&a!==null?{enabled:a.enabled!==!1,maxEntitySize:Math.max(1,a.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,a.maxExpansionDepth??1e4),maxTotalExpansions:Math.max(1,a.maxTotalExpansions??1/0),maxExpandedLength:Math.max(1,a.maxExpandedLength??1e5),maxEntityCount:Math.max(1,a.maxEntityCount??1e3),allowedTags:a.allowedTags??null,tagFilter:a.tagFilter??null}:s(!0)}const o=function(a){const u=Object.assign({},r,a),c=[{value:u.attributeNamePrefix,name:"attributeNamePrefix"},{value:u.attributesGroupName,name:"attributesGroupName"},{value:u.textNodeName,name:"textNodeName"},{value:u.cdataPropName,name:"cdataPropName"},{value:u.commentPropName,name:"commentPropName"}];for(const{value:d,name:h}of c)d&&i(d,h);return u.onDangerousProperty===null&&(u.onDangerousProperty=n),u.processEntities=s(u.processEntities),u};return oi.buildOptions=o,oi.defaultOptions=r,oi}var ua,Jc;function ek(){if(Jc)return ua;Jc=1;class e{constructor(n){this.tagname=n,this.child=[],this[":@"]={}}add(n,r){n==="__proto__"&&(n="#__proto__"),this.child.push({[n]:r})}addChild(n){n.tagname==="__proto__"&&(n.tagname="#__proto__"),n[":@"]&&Object.keys(n[":@"]).length>0?this.child.push({[n.tagname]:n.child,":@":n[":@"]}):this.child.push({[n.tagname]:n.child})}}return ua=e,ua}var la,ed;function tk(){if(ed)return la;ed=1;const e=ai();class t{constructor(o){this.suppressValidationErr=!o,this.options=o||{}}readDocType(o,a){const u=Object.create(null);let c=0;if(o[a+3]==="O"&&o[a+4]==="C"&&o[a+5]==="T"&&o[a+6]==="Y"&&o[a+7]==="P"&&o[a+8]==="E"){a=a+9;let d=1,h=!1,b=!1,f="";for(;a<o.length;a++)if(o[a]==="<"&&!b){if(h&&r(o,"!ENTITY",a)){a+=7;let m,g;if([m,g,a]=this.readEntityExp(o,a+1,this.suppressValidationErr),g.indexOf("&")===-1){if(this.options.enabled!==!1&&this.options.maxEntityCount!=null&&c>=this.options.maxEntityCount)throw new Error(`Entity count (${c+1}) exceeds maximum allowed (${this.options.maxEntityCount})`);const _=m.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");u[m]={regx:RegExp(`&${_};`,"g"),val:g},c++}}else if(h&&r(o,"!ELEMENT",a)){a+=8;const{index:m}=this.readElementExp(o,a+1);a=m}else if(h&&r(o,"!ATTLIST",a))a+=8;else if(h&&r(o,"!NOTATION",a)){a+=9;const{index:m}=this.readNotationExp(o,a+1,this.suppressValidationErr);a=m}else if(r(o,"!--",a))b=!0;else throw new Error("Invalid DOCTYPE");d++,f=""}else if(o[a]===">"){if(b?o[a-1]==="-"&&o[a-2]==="-"&&(b=!1,d--):d--,d===0)break}else o[a]==="["?h=!0:f+=o[a];if(d!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:u,i:a}}readEntityExp(o,a){a=n(o,a);let u="";for(;a<o.length&&!/\s/.test(o[a])&&o[a]!=='"'&&o[a]!=="'";)u+=o[a],a++;if(i(u),a=n(o,a),!this.suppressValidationErr){if(o.substring(a,a+6).toUpperCase()==="SYSTEM")throw new Error("External entities are not supported");if(o[a]==="%")throw new Error("Parameter entities are not supported")}let c="";if([a,c]=this.readIdentifierVal(o,a,"entity"),this.options.enabled!==!1&&this.options.maxEntitySize!=null&&c.length>this.options.maxEntitySize)throw new Error(`Entity "${u}" size (${c.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return a--,[u,c,a]}readNotationExp(o,a){a=n(o,a);let u="";for(;a<o.length&&!/\s/.test(o[a]);)u+=o[a],a++;!this.suppressValidationErr&&i(u),a=n(o,a);const c=o.substring(a,a+6).toUpperCase();if(!this.suppressValidationErr&&c!=="SYSTEM"&&c!=="PUBLIC")throw new Error(`Expected SYSTEM or PUBLIC, found "${c}"`);a+=c.length,a=n(o,a);let d=null,h=null;if(c==="PUBLIC")[a,d]=this.readIdentifierVal(o,a,"publicIdentifier"),a=n(o,a),(o[a]==='"'||o[a]==="'")&&([a,h]=this.readIdentifierVal(o,a,"systemIdentifier"));else if(c==="SYSTEM"&&([a,h]=this.readIdentifierVal(o,a,"systemIdentifier"),!this.suppressValidationErr&&!h))throw new Error("Missing mandatory system identifier for SYSTEM notation");return{notationName:u,publicIdentifier:d,systemIdentifier:h,index:--a}}readIdentifierVal(o,a,u){let c="";const d=o[a];if(d!=='"'&&d!=="'")throw new Error(`Expected quoted string, found "${d}"`);for(a++;a<o.length&&o[a]!==d;)c+=o[a],a++;if(o[a]!==d)throw new Error(`Unterminated ${u} value`);return a++,[a,c]}readElementExp(o,a){a=n(o,a);let u="";for(;a<o.length&&!/\s/.test(o[a]);)u+=o[a],a++;if(!this.suppressValidationErr&&!e.isName(u))throw new Error(`Invalid element name: "${u}"`);a=n(o,a);let c="";if(o[a]==="E"&&r(o,"MPTY",a))a+=4;else if(o[a]==="A"&&r(o,"NY",a))a+=2;else if(o[a]==="("){for(a++;a<o.length&&o[a]!==")";)c+=o[a],a++;if(o[a]!==")")throw new Error("Unterminated content model")}else if(!this.suppressValidationErr)throw new Error(`Invalid Element Expression, found "${o[a]}"`);return{elementName:u,contentModel:c.trim(),index:a}}readAttlistExp(o,a){a=n(o,a);let u="";for(;a<o.length&&!/\s/.test(o[a]);)u+=o[a],a++;i(u),a=n(o,a);let c="";for(;a<o.length&&!/\s/.test(o[a]);)c+=o[a],a++;if(!i(c))throw new Error(`Invalid attribute name: "${c}"`);a=n(o,a);let d="";if(o.substring(a,a+8).toUpperCase()==="NOTATION"){if(d="NOTATION",a+=8,a=n(o,a),o[a]!=="(")throw new Error(`Expected '(', found "${o[a]}"`);a++;let b=[];for(;a<o.length&&o[a]!==")";){let f="";for(;a<o.length&&o[a]!=="|"&&o[a]!==")";)f+=o[a],a++;if(f=f.trim(),!i(f))throw new Error(`Invalid notation name: "${f}"`);b.push(f),o[a]==="|"&&(a++,a=n(o,a))}if(o[a]!==")")throw new Error("Unterminated list of notations");a++,d+=" ("+b.join("|")+")"}else{for(;a<o.length&&!/\s/.test(o[a]);)d+=o[a],a++;const b=["CDATA","ID","IDREF","IDREFS","ENTITY","ENTITIES","NMTOKEN","NMTOKENS"];if(!this.suppressValidationErr&&!b.includes(d.toUpperCase()))throw new Error(`Invalid attribute type: "${d}"`)}a=n(o,a);let h="";return o.substring(a,a+8).toUpperCase()==="#REQUIRED"?(h="#REQUIRED",a+=8):o.substring(a,a+7).toUpperCase()==="#IMPLIED"?(h="#IMPLIED",a+=7):[a,h]=this.readIdentifierVal(o,a,"ATTLIST"),{elementName:u,attributeName:c,attributeType:d,defaultValue:h,index:a}}}const n=(s,o)=>{for(;o<s.length&&/\s/.test(s[o]);)o++;return o};function r(s,o,a){for(let u=0;u<o.length;u++)if(o[u]!==s[a+u+1])return!1;return!0}function i(s){if(e.isName(s))return s;throw new Error(`Invalid entity name ${s}`)}return la=t,la}var ca,td;function nk(){if(td)return ca;td=1;const e=/^[-+]?0x[a-fA-F0-9]+$/,t=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,n={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};function r(o,a={}){if(a=Object.assign({},n,a),!o||typeof o!="string")return o;let u=o.trim();if(a.skipLike!==void 0&&a.skipLike.test(u))return o;if(o==="0")return 0;if(a.hex&&e.test(u))return s(u,16);if(u.search(/[eE]/)!==-1){const c=u.match(/^([-\+])?(0*)([0-9]*(\.[0-9]*)?[eE][-\+]?[0-9]+)$/);if(c){if(a.leadingZeros)u=(c[1]||"")+c[3];else if(!(c[2]==="0"&&c[3][0]==="."))return o;return a.eNotation?Number(u):o}else return o}else{const c=t.exec(u);if(c){const d=c[1],h=c[2];let b=i(c[3]);if(!a.leadingZeros&&h.length>0&&d&&u[2]!==".")return o;if(!a.leadingZeros&&h.length>0&&!d&&u[1]!==".")return o;if(a.leadingZeros&&h===o)return 0;{const f=Number(u),m=""+f;return m.search(/[eE]/)!==-1?a.eNotation?f:o:u.indexOf(".")!==-1?m==="0"&&b===""||m===b||d&&m==="-"+b?f:o:h?b===m||d+b===m?f:o:u===m||u===d+m?f:o}}else return o}}function i(o){return o&&o.indexOf(".")!==-1&&(o=o.replace(/0+$/,""),o==="."?o="0":o[0]==="."?o="0"+o:o[o.length-1]==="."&&(o=o.substr(0,o.length-1))),o}function s(o,a){if(parseInt)return parseInt(o,a);if(Number.parseInt)return Number.parseInt(o,a);if(window&&window.parseInt)return window.parseInt(o,a);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}return ca=r,ca}var da,nd;function rd(){if(nd)return da;nd=1;function e(t){return typeof t=="function"?t:Array.isArray(t)?n=>{for(const r of t)if(typeof r=="string"&&n===r||r instanceof RegExp&&r.test(n))return!0}:()=>!1}return da=e,da}var ha,id;function rk(){if(id)return ha;id=1;const e=ai(),t=ek(),n=tk(),r=nk(),i=rd();class s{constructor(S){if(this.options=S,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(k,P)=>D(P,10,"&#")},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(k,P)=>D(P,16,"&#x")}},this.addExternalEntities=o,this.parseXml=h,this.parseTextData=a,this.resolveNameSpace=u,this.buildAttributesMap=d,this.isItStopNode=g,this.replaceEntitiesValue=f,this.readStopNodeData=C,this.saveTextToParentTag=m,this.addChild=b,this.ignoreAttributesFn=i(this.options.ignoreAttributes),this.entityExpansionCount=0,this.currentExpandedLength=0,this.options.stopNodes&&this.options.stopNodes.length>0){this.stopNodesExact=new Set,this.stopNodesWildcard=new Set;for(let k=0;k<this.options.stopNodes.length;k++){const P=this.options.stopNodes[k];typeof P=="string"&&(P.startsWith("*.")?this.stopNodesWildcard.add(P.substring(2)):this.stopNodesExact.add(P))}}}}function o(A){const S=Object.keys(A);for(let k=0;k<S.length;k++){const P=S[k],R=P.replace(/[.\-+*:]/g,"\\.");this.lastEntities[P]={regex:new RegExp("&"+R+";","g"),val:A[P]}}}function a(A,S,k,P,R,x,M){if(A!==void 0&&(this.options.trimValues&&!P&&(A=A.trim()),A.length>0)){M||(A=this.replaceEntitiesValue(A,S,k));const T=this.options.tagValueProcessor(S,A,k,R,x);return T==null?A:typeof T!=typeof A||T!==A?T:this.options.trimValues?O(A,this.options.parseTagValue,this.options.numberParseOptions):A.trim()===A?O(A,this.options.parseTagValue,this.options.numberParseOptions):A}}function u(A){if(this.options.removeNSPrefix){const S=A.split(":"),k=A.charAt(0)==="/"?"/":"";if(S[0]==="xmlns")return"";S.length===2&&(A=k+S[1])}return A}const c=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function d(A,S,k){if(this.options.ignoreAttributes!==!0&&typeof A=="string"){const P=e.getAllMatches(A,c),R=P.length,x={};for(let M=0;M<R;M++){const T=this.resolveNameSpace(P[M][1]);if(this.ignoreAttributesFn(T,S))continue;let U=P[M][4],W=this.options.attributeNamePrefix+T;if(T.length)if(this.options.transformAttributeName&&(W=this.options.transformAttributeName(W)),W=B(W,this.options),U!==void 0){this.options.trimValues&&(U=U.trim()),U=this.replaceEntitiesValue(U,k,S);const G=this.options.attributeValueProcessor(T,U,S);G==null?x[W]=U:typeof G!=typeof U||G!==U?x[W]=G:x[W]=O(U,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(x[W]=!0)}if(!Object.keys(x).length)return;if(this.options.attributesGroupName){const M={};return M[this.options.attributesGroupName]=x,M}return x}}const h=function(A){A=A.replace(/\r\n?/g,`
48
- `);const S=new t("!xml");let k=S,P="",R="";this.entityExpansionCount=0,this.currentExpandedLength=0;const x=new n(this.options.processEntities);for(let M=0;M<A.length;M++)if(A[M]==="<")if(A[M+1]==="/"){const U=p(A,">",M,"Closing Tag is not closed.");let W=A.substring(M+2,U).trim();if(this.options.removeNSPrefix){const Z=W.indexOf(":");Z!==-1&&(W=W.substr(Z+1))}this.options.transformTagName&&(W=this.options.transformTagName(W)),k&&(P=this.saveTextToParentTag(P,k,R));const G=R.substring(R.lastIndexOf(".")+1);if(W&&this.options.unpairedTags.indexOf(W)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${W}>`);let se=0;G&&this.options.unpairedTags.indexOf(G)!==-1?(se=R.lastIndexOf(".",R.lastIndexOf(".")-1),this.tagsNodeStack.pop()):se=R.lastIndexOf("."),R=R.substring(0,se),k=this.tagsNodeStack.pop(),P="",M=U}else if(A[M+1]==="?"){let U=y(A,M,!1,"?>");if(!U)throw new Error("Pi Tag is not closed.");if(P=this.saveTextToParentTag(P,k,R),!(this.options.ignoreDeclaration&&U.tagName==="?xml"||this.options.ignorePiTags)){const W=new t(U.tagName);W.add(this.options.textNodeName,""),U.tagName!==U.tagExp&&U.attrExpPresent&&(W[":@"]=this.buildAttributesMap(U.tagExp,R,U.tagName)),this.addChild(k,W,R,M)}M=U.closeIndex+1}else if(A.substr(M+1,3)==="!--"){const U=p(A,"-->",M+4,"Comment is not closed.");if(this.options.commentPropName){const W=A.substring(M+4,U-2);P=this.saveTextToParentTag(P,k,R),k.add(this.options.commentPropName,[{[this.options.textNodeName]:W}])}M=U}else if(A.substr(M+1,2)==="!D"){const U=x.readDocType(A,M);this.docTypeEntities=U.entities,M=U.i}else if(A.substr(M+1,2)==="!["){const U=p(A,"]]>",M,"CDATA is not closed.")-2,W=A.substring(M+9,U);P=this.saveTextToParentTag(P,k,R);let G=this.parseTextData(W,k.tagname,R,!0,!1,!0,!0);G==null&&(G=""),this.options.cdataPropName?k.add(this.options.cdataPropName,[{[this.options.textNodeName]:W}]):k.add(this.options.textNodeName,G),M=U+2}else{let U=y(A,M,this.options.removeNSPrefix),W=U.tagName;const G=U.rawTagName;let se=U.tagExp,Z=U.attrExpPresent,he=U.closeIndex;if(this.options.transformTagName){const oe=this.options.transformTagName(W);se===W&&(se=oe),W=oe}if(this.options.strictReservedNames&&(W===this.options.commentPropName||W===this.options.cdataPropName||W===this.options.textNodeName||W===this.options.attributesGroupName))throw new Error(`Invalid tag name: ${W}`);k&&P&&k.tagname!=="!xml"&&(P=this.saveTextToParentTag(P,k,R,!1));const j=k;j&&this.options.unpairedTags.indexOf(j.tagname)!==-1&&(k=this.tagsNodeStack.pop(),R=R.substring(0,R.lastIndexOf("."))),W!==S.tagname&&(R+=R?"."+W:W);const $=M;if(this.isItStopNode(this.stopNodesExact,this.stopNodesWildcard,R,W)){let oe="";if(se.length>0&&se.lastIndexOf("/")===se.length-1)W[W.length-1]==="/"?(W=W.substr(0,W.length-1),R=R.substr(0,R.length-1),se=W):se=se.substr(0,se.length-1),M=U.closeIndex;else if(this.options.unpairedTags.indexOf(W)!==-1)M=U.closeIndex;else{const ie=this.readStopNodeData(A,G,he+1);if(!ie)throw new Error(`Unexpected end of ${G}`);M=ie.i,oe=ie.tagContent}const ae=new t(W);W!==se&&Z&&(ae[":@"]=this.buildAttributesMap(se,R,W)),oe&&(oe=this.parseTextData(oe,W,R,!0,Z,!0,!0)),R=R.substr(0,R.lastIndexOf(".")),ae.add(this.options.textNodeName,oe),this.addChild(k,ae,R,$)}else{if(se.length>0&&se.lastIndexOf("/")===se.length-1){if(W[W.length-1]==="/"?(W=W.substr(0,W.length-1),R=R.substr(0,R.length-1),se=W):se=se.substr(0,se.length-1),this.options.transformTagName){const ae=this.options.transformTagName(W);se===W&&(se=ae),W=ae}const oe=new t(W);W!==se&&Z&&(oe[":@"]=this.buildAttributesMap(se,R,W)),this.addChild(k,oe,R,$),R=R.substr(0,R.lastIndexOf("."))}else if(this.options.unpairedTags.indexOf(W)!==-1){const oe=new t(W);W!==se&&Z&&(oe[":@"]=this.buildAttributesMap(se,R)),this.addChild(k,oe,R,$),R=R.substr(0,R.lastIndexOf(".")),M=U.closeIndex;continue}else{const oe=new t(W);if(this.tagsNodeStack.length>this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(k),W!==se&&Z&&(oe[":@"]=this.buildAttributesMap(se,R,W)),this.addChild(k,oe,R),k=oe}P="",M=he}}else P+=A[M];return S.child};function b(A,S,k,P){this.options.captureMetaData||(P=void 0);const R=this.options.updateTag(S.tagname,k,S[":@"]);R===!1||(typeof R=="string"&&(S.tagname=R),A.addChild(S,P))}const f=function(A,S,k){if(A.indexOf("&")===-1)return A;const P=this.options.processEntities;if(!P.enabled||P.allowedTags&&!P.allowedTags.includes(S)||P.tagFilter&&!P.tagFilter(S,k))return A;for(let R in this.docTypeEntities){const x=this.docTypeEntities[R],M=A.match(x.regx);if(M){if(this.entityExpansionCount+=M.length,P.maxTotalExpansions&&this.entityExpansionCount>P.maxTotalExpansions)throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${P.maxTotalExpansions}`);const T=A.length;if(A=A.replace(x.regx,x.val),P.maxExpandedLength&&(this.currentExpandedLength+=A.length-T,this.currentExpandedLength>P.maxExpandedLength))throw new Error(`Total expanded content size exceeded: ${this.currentExpandedLength} > ${P.maxExpandedLength}`)}}if(A.indexOf("&")===-1)return A;for(const R of Object.keys(this.lastEntities)){const x=this.lastEntities[R],M=A.match(x.regex);if(M&&(this.entityExpansionCount+=M.length,P.maxTotalExpansions&&this.entityExpansionCount>P.maxTotalExpansions))throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${P.maxTotalExpansions}`);A=A.replace(x.regex,x.val)}if(A.indexOf("&")===-1)return A;if(this.options.htmlEntities)for(const R of Object.keys(this.htmlEntities)){const x=this.htmlEntities[R],M=A.match(x.regex);if(M&&(this.entityExpansionCount+=M.length,P.maxTotalExpansions&&this.entityExpansionCount>P.maxTotalExpansions))throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${P.maxTotalExpansions}`);A=A.replace(x.regex,x.val)}return A=A.replace(this.ampEntity.regex,this.ampEntity.val),A};function m(A,S,k,P){return A&&(P===void 0&&(P=S.child.length===0),A=this.parseTextData(A,S.tagname,k,!1,S[":@"]?Object.keys(S[":@"]).length!==0:!1,P),A!==void 0&&A!==""&&S.add(this.options.textNodeName,A),A=""),A}function g(A,S,k,P){return!!(S&&S.has(P)||A&&A.has(k))}function _(A,S,k=">"){let P,R="";for(let x=S;x<A.length;x++){let M=A[x];if(P)M===P&&(P="");else if(M==='"'||M==="'")P=M;else if(M===k[0])if(k[1]){if(A[x+1]===k[1])return{data:R,index:x}}else return{data:R,index:x};else M===" "&&(M=" ");R+=M}}function p(A,S,k,P){const R=A.indexOf(S,k);if(R===-1)throw new Error(P);return R+S.length-1}function y(A,S,k,P=">"){const R=_(A,S+1,P);if(!R)return;let x=R.data;const M=R.index,T=x.search(/\s/);let U=x,W=!0;T!==-1&&(U=x.substring(0,T),x=x.substring(T+1).trimStart());const G=U;if(k){const se=U.indexOf(":");se!==-1&&(U=U.substr(se+1),W=U!==R.data.substr(se+1))}return{tagName:U,tagExp:x,closeIndex:M,attrExpPresent:W,rawTagName:G}}function C(A,S,k){const P=k;let R=1;for(;k<A.length;k++)if(A[k]==="<")if(A[k+1]==="/"){const x=p(A,">",k,`${S} is not closed`);if(A.substring(k+2,x).trim()===S&&(R--,R===0))return{tagContent:A.substring(P,k),i:x};k=x}else if(A[k+1]==="?")k=p(A,"?>",k+1,"StopNode is not closed.");else if(A.substr(k+1,3)==="!--")k=p(A,"-->",k+3,"StopNode is not closed.");else if(A.substr(k+1,2)==="![")k=p(A,"]]>",k,"StopNode is not closed.")-2;else{const x=y(A,k,">");x&&((x&&x.tagName)===S&&x.tagExp[x.tagExp.length-1]!=="/"&&R++,k=x.closeIndex)}}function O(A,S,k){if(S&&typeof A=="string"){const P=A.trim();return P==="true"?!0:P==="false"?!1:r(A,k)}else return e.isExist(A)?A:""}function D(A,S,k){const P=Number.parseInt(A,S);return P>=0&&P<=1114111?String.fromCodePoint(P):k+A+";"}function B(A,S){if(e.criticalProperties.includes(A))throw new Error(`[SECURITY] Invalid name: "${A}" is a reserved JavaScript keyword that could cause prototype pollution`);return e.DANGEROUS_PROPERTY_NAMES.includes(A)?S.onDangerousProperty(A):A}return ha=s,ha}var fa={},sd;function ik(){if(sd)return fa;sd=1;function e(s,o){return t(s,o)}function t(s,o,a){let u;const c={};for(let d=0;d<s.length;d++){const h=s[d],b=n(h);let f="";if(a===void 0?f=b:f=a+"."+b,b===o.textNodeName)u===void 0?u=h[b]:u+=""+h[b];else{if(b===void 0)continue;if(h[b]){let m=t(h[b],o,f);const g=i(m,o);h[":@"]?r(m,h[":@"],f,o):Object.keys(m).length===1&&m[o.textNodeName]!==void 0&&!o.alwaysCreateTextNode?m=m[o.textNodeName]:Object.keys(m).length===0&&(o.alwaysCreateTextNode?m[o.textNodeName]="":m=""),c[b]!==void 0&&c.hasOwnProperty(b)?(Array.isArray(c[b])||(c[b]=[c[b]]),c[b].push(m)):o.isArray(b,f,g)?c[b]=[m]:c[b]=m}}}return typeof u=="string"?u.length>0&&(c[o.textNodeName]=u):u!==void 0&&(c[o.textNodeName]=u),c}function n(s){const o=Object.keys(s);for(let a=0;a<o.length;a++){const u=o[a];if(u!==":@")return u}}function r(s,o,a,u){if(o){const c=Object.keys(o),d=c.length;for(let h=0;h<d;h++){const b=c[h];u.isArray(b,a+"."+b,!0,!0)?s[b]=[o[b]]:s[b]=o[b]}}}function i(s,o){const{textNodeName:a}=o,u=Object.keys(s).length;return!!(u===0||u===1&&(s[a]||typeof s[a]=="boolean"||s[a]===0))}return fa.prettify=e,fa}var pa,ad;function sk(){if(ad)return pa;ad=1;const{buildOptions:e}=J_(),t=rk(),{prettify:n}=ik(),r=Qc();class i{constructor(o){this.externalEntities={},this.options=e(o)}parse(o,a){if(typeof o!="string")if(o.toString)o=o.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if(a){a===!0&&(a={});const d=r.validate(o,a);if(d!==!0)throw Error(`${d.err.msg}:${d.err.line}:${d.err.col}`)}const u=new t(this.options);u.addExternalEntities(this.externalEntities);const c=u.parseXml(o);return this.options.preserveOrder||c===void 0?c:n(c,this.options)}addEntity(o,a){if(a.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(o.indexOf("&")!==-1||o.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if(a==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[o]=a}}return pa=i,pa}var ma,od;function ak(){if(od)return ma;od=1;const e=`
49
- `;function t(a,u){let c="";return u.format&&u.indentBy.length>0&&(c=e),n(a,u,"",c)}function n(a,u,c,d){let h="",b=!1;if(!Array.isArray(a)){if(a!=null){let f=a.toString();return f=o(f,u),f}return""}for(let f=0;f<a.length;f++){const m=a[f],g=r(m);if(g===void 0)continue;let _="";if(c.length===0?_=g:_=`${c}.${g}`,g===u.textNodeName){let D=m[g];s(_,u)||(D=u.tagValueProcessor(g,D),D=o(D,u)),b&&(h+=d),h+=D,b=!1;continue}else if(g===u.cdataPropName){b&&(h+=d),h+=`<![CDATA[${m[g][0][u.textNodeName]}]]>`,b=!1;continue}else if(g===u.commentPropName){h+=d+`<!--${m[g][0][u.textNodeName]}-->`,b=!0;continue}else if(g[0]==="?"){const D=i(m[":@"],u),B=g==="?xml"?"":d;let A=m[g][0][u.textNodeName];A=A.length!==0?" "+A:"",h+=B+`<${g}${A}${D}?>`,b=!0;continue}let p=d;p!==""&&(p+=u.indentBy);const y=i(m[":@"],u),C=d+`<${g}${y}`,O=n(m[g],u,_,p);u.unpairedTags.indexOf(g)!==-1?u.suppressUnpairedNode?h+=C+">":h+=C+"/>":(!O||O.length===0)&&u.suppressEmptyNode?h+=C+"/>":O&&O.endsWith(">")?h+=C+`>${O}${d}</${g}>`:(h+=C+">",O&&d!==""&&(O.includes("/>")||O.includes("</"))?h+=d+u.indentBy+O+d:h+=O,h+=`</${g}>`),b=!0}return h}function r(a){const u=Object.keys(a);for(let c=0;c<u.length;c++){const d=u[c];if(Object.prototype.hasOwnProperty.call(a,d)&&d!==":@")return d}}function i(a,u){let c="";if(a&&!u.ignoreAttributes)for(let d in a){if(!Object.prototype.hasOwnProperty.call(a,d))continue;let h=u.attributeValueProcessor(d,a[d]);h=o(h,u),h===!0&&u.suppressBooleanAttributes?c+=` ${d.substr(u.attributeNamePrefix.length)}`:c+=` ${d.substr(u.attributeNamePrefix.length)}="${h}"`}return c}function s(a,u){a=a.substr(0,a.length-u.textNodeName.length-1);let c=a.substr(a.lastIndexOf(".")+1);for(let d in u.stopNodes)if(u.stopNodes[d]===a||u.stopNodes[d]==="*."+c)return!0;return!1}function o(a,u){if(a&&a.length>0&&u.processEntities)for(let c=0;c<u.entities.length;c++){const d=u.entities[c];a=a.replace(d.regex,d.val)}return a}return ma=t,ma}var ga,ud;function ok(){if(ud)return ga;ud=1;const e=ak(),t=rd(),n={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(a,u){return u},attributeValueProcessor:function(a,u){return u},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};function r(a){this.options=Object.assign({},n,a),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=t(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=o),this.processTextOrObjNode=i,this.options.format?(this.indentate=s,this.tagEndChar=`>
45
+ </Types>`;var ma={},ga={},sd;function di(){return sd||(sd=1,(function(e){const t=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",n=t+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",r="["+t+"]["+n+"]*",i=new RegExp("^"+r+"$"),s=function(c,d){const h=[];let m=d.exec(c);for(;m;){const f=[];f.startIndex=d.lastIndex-m[0].length;const b=m.length;for(let g=0;g<b;g++)f.push(m[g]);h.push(f),m=d.exec(c)}return h},o=function(c){const d=i.exec(c);return!(d===null||typeof d>"u")};e.isExist=function(c){return typeof c<"u"},e.isEmptyObject=function(c){return Object.keys(c).length===0},e.merge=function(c,d,h){if(d){const m=Object.keys(d),f=m.length;for(let b=0;b<f;b++)h==="strict"?c[m[b]]=[d[m[b]]]:c[m[b]]=d[m[b]]}},e.getValue=function(c){return e.isExist(c)?c:""};const a=["hasOwnProperty","toString","valueOf","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__"],u=["__proto__","constructor","prototype"];e.isName=o,e.getAllMatches=s,e.nameRegexp=r,e.DANGEROUS_PROPERTY_NAMES=a,e.criticalProperties=u})(ga)),ga}var ad;function od(){if(ad)return ma;ad=1;const e=di(),t={allowBooleanAttributes:!1,unpairedTags:[]};ma.validate=function(p,y){y=Object.assign({},t,y);const C=[];let I=!1,D=!1;p[0]==="\uFEFF"&&(p=p.substr(1));for(let B=0;B<p.length;B++)if(p[B]==="<"&&p[B+1]==="?"){if(B+=2,B=r(p,B),B.err)return B}else if(p[B]==="<"){let A=B;if(B++,p[B]==="!"){B=i(p,B);continue}else{let S=!1;p[B]==="/"&&(S=!0,B++);let w="";for(;B<p.length&&p[B]!==">"&&p[B]!==" "&&p[B]!==" "&&p[B]!==`
46
+ `&&p[B]!=="\r";B++)w+=p[B];if(w=w.trim(),w[w.length-1]==="/"&&(w=w.substring(0,w.length-1),B--),!b(w)){let x;return w.trim().length===0?x="Invalid space after '<'.":x="Tag '"+w+"' is an invalid name.",m("InvalidTag",x,g(p,B))}const R=a(p,B);if(R===!1)return m("InvalidAttr","Attributes for '"+w+"' have open quote.",g(p,B));let P=R.value;if(B=R.index,P[P.length-1]==="/"){const x=B-P.length;P=P.substring(0,P.length-1);const M=c(P,y);if(M===!0)I=!0;else return m(M.err.code,M.err.msg,g(p,x+M.err.line))}else if(S)if(R.tagClosed){if(P.trim().length>0)return m("InvalidTag","Closing tag '"+w+"' can't have attributes or invalid starting.",g(p,A));if(C.length===0)return m("InvalidTag","Closing tag '"+w+"' has not been opened.",g(p,A));{const x=C.pop();if(w!==x.tagName){let M=g(p,x.tagStartPos);return m("InvalidTag","Expected closing tag '"+x.tagName+"' (opened in line "+M.line+", col "+M.col+") instead of closing tag '"+w+"'.",g(p,A))}C.length==0&&(D=!0)}}else return m("InvalidTag","Closing tag '"+w+"' doesn't have proper closing.",g(p,B));else{const x=c(P,y);if(x!==!0)return m(x.err.code,x.err.msg,g(p,B-P.length+x.err.line));if(D===!0)return m("InvalidXml","Multiple possible root nodes found.",g(p,B));y.unpairedTags.indexOf(w)!==-1||C.push({tagName:w,tagStartPos:A}),I=!0}for(B++;B<p.length;B++)if(p[B]==="<")if(p[B+1]==="!"){B++,B=i(p,B);continue}else if(p[B+1]==="?"){if(B=r(p,++B),B.err)return B}else break;else if(p[B]==="&"){const x=h(p,B);if(x==-1)return m("InvalidChar","char '&' is not expected.",g(p,B));B=x}else if(D===!0&&!n(p[B]))return m("InvalidXml","Extra text at the end",g(p,B));p[B]==="<"&&B--}}else{if(n(p[B]))continue;return m("InvalidChar","char '"+p[B]+"' is not expected.",g(p,B))}if(I){if(C.length==1)return m("InvalidTag","Unclosed tag '"+C[0].tagName+"'.",g(p,C[0].tagStartPos));if(C.length>0)return m("InvalidXml","Invalid '"+JSON.stringify(C.map(B=>B.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return m("InvalidXml","Start tag expected.",1);return!0};function n(p){return p===" "||p===" "||p===`
47
+ `||p==="\r"}function r(p,y){const C=y;for(;y<p.length;y++)if(p[y]=="?"||p[y]==" "){const I=p.substr(C,y-C);if(y>5&&I==="xml")return m("InvalidXml","XML declaration allowed only at the start of the document.",g(p,y));if(p[y]=="?"&&p[y+1]==">"){y++;break}else continue}return y}function i(p,y){if(p.length>y+5&&p[y+1]==="-"&&p[y+2]==="-"){for(y+=3;y<p.length;y++)if(p[y]==="-"&&p[y+1]==="-"&&p[y+2]===">"){y+=2;break}}else if(p.length>y+8&&p[y+1]==="D"&&p[y+2]==="O"&&p[y+3]==="C"&&p[y+4]==="T"&&p[y+5]==="Y"&&p[y+6]==="P"&&p[y+7]==="E"){let C=1;for(y+=8;y<p.length;y++)if(p[y]==="<")C++;else if(p[y]===">"&&(C--,C===0))break}else if(p.length>y+9&&p[y+1]==="["&&p[y+2]==="C"&&p[y+3]==="D"&&p[y+4]==="A"&&p[y+5]==="T"&&p[y+6]==="A"&&p[y+7]==="["){for(y+=8;y<p.length;y++)if(p[y]==="]"&&p[y+1]==="]"&&p[y+2]===">"){y+=2;break}}return y}const s='"',o="'";function a(p,y){let C="",I="",D=!1;for(;y<p.length;y++){if(p[y]===s||p[y]===o)I===""?I=p[y]:I!==p[y]||(I="");else if(p[y]===">"&&I===""){D=!0;break}C+=p[y]}return I!==""?!1:{value:C,index:y,tagClosed:D}}const u=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function c(p,y){const C=e.getAllMatches(p,u),I={};for(let D=0;D<C.length;D++){if(C[D][1].length===0)return m("InvalidAttr","Attribute '"+C[D][2]+"' has no space in starting.",_(C[D]));if(C[D][3]!==void 0&&C[D][4]===void 0)return m("InvalidAttr","Attribute '"+C[D][2]+"' is without value.",_(C[D]));if(C[D][3]===void 0&&!y.allowBooleanAttributes)return m("InvalidAttr","boolean attribute '"+C[D][2]+"' is not allowed.",_(C[D]));const B=C[D][2];if(!f(B))return m("InvalidAttr","Attribute '"+B+"' is an invalid name.",_(C[D]));if(!I.hasOwnProperty(B))I[B]=1;else return m("InvalidAttr","Attribute '"+B+"' is repeated.",_(C[D]))}return!0}function d(p,y){let C=/\d/;for(p[y]==="x"&&(y++,C=/[\da-fA-F]/);y<p.length;y++){if(p[y]===";")return y;if(!p[y].match(C))break}return-1}function h(p,y){if(y++,p[y]===";")return-1;if(p[y]==="#")return y++,d(p,y);let C=0;for(;y<p.length;y++,C++)if(!(p[y].match(/\w/)&&C<20)){if(p[y]===";")break;return-1}return y}function m(p,y,C){return{err:{code:p,msg:y,line:C.line||C,col:C.col}}}function f(p){return e.isName(p)}function b(p){return e.isName(p)}function g(p,y){const C=p.substring(0,y).split(/\r?\n/);return{line:C.length,col:C[C.length-1].length+1}}function _(p){return p.startIndex+p[1].length}return ma}var hi={},ud;function Ew(){if(ud)return hi;ud=1;const{DANGEROUS_PROPERTY_NAMES:e,criticalProperties:t}=di(),n=a=>e.includes(a)?"__"+a:a,r={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(a,u){return u},attributeValueProcessor:function(a,u){return u},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(a,u,c){return a},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,onDangerousProperty:n};function i(a,u){if(typeof a!="string")return;const c=a.toLowerCase();if(e.some(d=>c===d.toLowerCase()))throw new Error(`[SECURITY] Invalid ${u}: "${a}" is a reserved JavaScript keyword that could cause prototype pollution`);if(t.some(d=>c===d.toLowerCase()))throw new Error(`[SECURITY] Invalid ${u}: "${a}" is a reserved JavaScript keyword that could cause prototype pollution`)}function s(a){return typeof a=="boolean"?{enabled:a,maxEntitySize:1e4,maxExpansionDepth:10,maxTotalExpansions:1e3,maxExpandedLength:1e5,allowedTags:null,tagFilter:null}:typeof a=="object"&&a!==null?{enabled:a.enabled!==!1,maxEntitySize:Math.max(1,a.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,a.maxExpansionDepth??1e4),maxTotalExpansions:Math.max(1,a.maxTotalExpansions??1/0),maxExpandedLength:Math.max(1,a.maxExpandedLength??1e5),maxEntityCount:Math.max(1,a.maxEntityCount??1e3),allowedTags:a.allowedTags??null,tagFilter:a.tagFilter??null}:s(!0)}const o=function(a){const u=Object.assign({},r,a),c=[{value:u.attributeNamePrefix,name:"attributeNamePrefix"},{value:u.attributesGroupName,name:"attributesGroupName"},{value:u.textNodeName,name:"textNodeName"},{value:u.cdataPropName,name:"cdataPropName"},{value:u.commentPropName,name:"commentPropName"}];for(const{value:d,name:h}of c)d&&i(d,h);return u.onDangerousProperty===null&&(u.onDangerousProperty=n),u.processEntities=s(u.processEntities),u};return hi.buildOptions=o,hi.defaultOptions=r,hi}var ba,ld;function yw(){if(ld)return ba;ld=1;class e{constructor(n){this.tagname=n,this.child=[],this[":@"]={}}add(n,r){n==="__proto__"&&(n="#__proto__"),this.child.push({[n]:r})}addChild(n){n.tagname==="__proto__"&&(n.tagname="#__proto__"),n[":@"]&&Object.keys(n[":@"]).length>0?this.child.push({[n.tagname]:n.child,":@":n[":@"]}):this.child.push({[n.tagname]:n.child})}}return ba=e,ba}var Ea,cd;function Tw(){if(cd)return Ea;cd=1;const e=di();class t{constructor(o){this.suppressValidationErr=!o,this.options=o||{}}readDocType(o,a){const u=Object.create(null);let c=0;if(o[a+3]==="O"&&o[a+4]==="C"&&o[a+5]==="T"&&o[a+6]==="Y"&&o[a+7]==="P"&&o[a+8]==="E"){a=a+9;let d=1,h=!1,m=!1,f="";for(;a<o.length;a++)if(o[a]==="<"&&!m){if(h&&r(o,"!ENTITY",a)){a+=7;let b,g;if([b,g,a]=this.readEntityExp(o,a+1,this.suppressValidationErr),g.indexOf("&")===-1){if(this.options.enabled!==!1&&this.options.maxEntityCount!=null&&c>=this.options.maxEntityCount)throw new Error(`Entity count (${c+1}) exceeds maximum allowed (${this.options.maxEntityCount})`);const _=b.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");u[b]={regx:RegExp(`&${_};`,"g"),val:g},c++}}else if(h&&r(o,"!ELEMENT",a)){a+=8;const{index:b}=this.readElementExp(o,a+1);a=b}else if(h&&r(o,"!ATTLIST",a))a+=8;else if(h&&r(o,"!NOTATION",a)){a+=9;const{index:b}=this.readNotationExp(o,a+1,this.suppressValidationErr);a=b}else if(r(o,"!--",a))m=!0;else throw new Error("Invalid DOCTYPE");d++,f=""}else if(o[a]===">"){if(m?o[a-1]==="-"&&o[a-2]==="-"&&(m=!1,d--):d--,d===0)break}else o[a]==="["?h=!0:f+=o[a];if(d!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:u,i:a}}readEntityExp(o,a){a=n(o,a);let u="";for(;a<o.length&&!/\s/.test(o[a])&&o[a]!=='"'&&o[a]!=="'";)u+=o[a],a++;if(i(u),a=n(o,a),!this.suppressValidationErr){if(o.substring(a,a+6).toUpperCase()==="SYSTEM")throw new Error("External entities are not supported");if(o[a]==="%")throw new Error("Parameter entities are not supported")}let c="";if([a,c]=this.readIdentifierVal(o,a,"entity"),this.options.enabled!==!1&&this.options.maxEntitySize!=null&&c.length>this.options.maxEntitySize)throw new Error(`Entity "${u}" size (${c.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return a--,[u,c,a]}readNotationExp(o,a){a=n(o,a);let u="";for(;a<o.length&&!/\s/.test(o[a]);)u+=o[a],a++;!this.suppressValidationErr&&i(u),a=n(o,a);const c=o.substring(a,a+6).toUpperCase();if(!this.suppressValidationErr&&c!=="SYSTEM"&&c!=="PUBLIC")throw new Error(`Expected SYSTEM or PUBLIC, found "${c}"`);a+=c.length,a=n(o,a);let d=null,h=null;if(c==="PUBLIC")[a,d]=this.readIdentifierVal(o,a,"publicIdentifier"),a=n(o,a),(o[a]==='"'||o[a]==="'")&&([a,h]=this.readIdentifierVal(o,a,"systemIdentifier"));else if(c==="SYSTEM"&&([a,h]=this.readIdentifierVal(o,a,"systemIdentifier"),!this.suppressValidationErr&&!h))throw new Error("Missing mandatory system identifier for SYSTEM notation");return{notationName:u,publicIdentifier:d,systemIdentifier:h,index:--a}}readIdentifierVal(o,a,u){let c="";const d=o[a];if(d!=='"'&&d!=="'")throw new Error(`Expected quoted string, found "${d}"`);for(a++;a<o.length&&o[a]!==d;)c+=o[a],a++;if(o[a]!==d)throw new Error(`Unterminated ${u} value`);return a++,[a,c]}readElementExp(o,a){a=n(o,a);let u="";for(;a<o.length&&!/\s/.test(o[a]);)u+=o[a],a++;if(!this.suppressValidationErr&&!e.isName(u))throw new Error(`Invalid element name: "${u}"`);a=n(o,a);let c="";if(o[a]==="E"&&r(o,"MPTY",a))a+=4;else if(o[a]==="A"&&r(o,"NY",a))a+=2;else if(o[a]==="("){for(a++;a<o.length&&o[a]!==")";)c+=o[a],a++;if(o[a]!==")")throw new Error("Unterminated content model")}else if(!this.suppressValidationErr)throw new Error(`Invalid Element Expression, found "${o[a]}"`);return{elementName:u,contentModel:c.trim(),index:a}}readAttlistExp(o,a){a=n(o,a);let u="";for(;a<o.length&&!/\s/.test(o[a]);)u+=o[a],a++;i(u),a=n(o,a);let c="";for(;a<o.length&&!/\s/.test(o[a]);)c+=o[a],a++;if(!i(c))throw new Error(`Invalid attribute name: "${c}"`);a=n(o,a);let d="";if(o.substring(a,a+8).toUpperCase()==="NOTATION"){if(d="NOTATION",a+=8,a=n(o,a),o[a]!=="(")throw new Error(`Expected '(', found "${o[a]}"`);a++;let m=[];for(;a<o.length&&o[a]!==")";){let f="";for(;a<o.length&&o[a]!=="|"&&o[a]!==")";)f+=o[a],a++;if(f=f.trim(),!i(f))throw new Error(`Invalid notation name: "${f}"`);m.push(f),o[a]==="|"&&(a++,a=n(o,a))}if(o[a]!==")")throw new Error("Unterminated list of notations");a++,d+=" ("+m.join("|")+")"}else{for(;a<o.length&&!/\s/.test(o[a]);)d+=o[a],a++;const m=["CDATA","ID","IDREF","IDREFS","ENTITY","ENTITIES","NMTOKEN","NMTOKENS"];if(!this.suppressValidationErr&&!m.includes(d.toUpperCase()))throw new Error(`Invalid attribute type: "${d}"`)}a=n(o,a);let h="";return o.substring(a,a+8).toUpperCase()==="#REQUIRED"?(h="#REQUIRED",a+=8):o.substring(a,a+7).toUpperCase()==="#IMPLIED"?(h="#IMPLIED",a+=7):[a,h]=this.readIdentifierVal(o,a,"ATTLIST"),{elementName:u,attributeName:c,attributeType:d,defaultValue:h,index:a}}}const n=(s,o)=>{for(;o<s.length&&/\s/.test(s[o]);)o++;return o};function r(s,o,a){for(let u=0;u<o.length;u++)if(o[u]!==s[a+u+1])return!1;return!0}function i(s){if(e.isName(s))return s;throw new Error(`Invalid entity name ${s}`)}return Ea=t,Ea}var ya,dd;function _w(){if(dd)return ya;dd=1;const e=/^[-+]?0x[a-fA-F0-9]+$/,t=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,n={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};function r(o,a={}){if(a=Object.assign({},n,a),!o||typeof o!="string")return o;let u=o.trim();if(a.skipLike!==void 0&&a.skipLike.test(u))return o;if(o==="0")return 0;if(a.hex&&e.test(u))return s(u,16);if(u.search(/[eE]/)!==-1){const c=u.match(/^([-\+])?(0*)([0-9]*(\.[0-9]*)?[eE][-\+]?[0-9]+)$/);if(c){if(a.leadingZeros)u=(c[1]||"")+c[3];else if(!(c[2]==="0"&&c[3][0]==="."))return o;return a.eNotation?Number(u):o}else return o}else{const c=t.exec(u);if(c){const d=c[1],h=c[2];let m=i(c[3]);if(!a.leadingZeros&&h.length>0&&d&&u[2]!==".")return o;if(!a.leadingZeros&&h.length>0&&!d&&u[1]!==".")return o;if(a.leadingZeros&&h===o)return 0;{const f=Number(u),b=""+f;return b.search(/[eE]/)!==-1?a.eNotation?f:o:u.indexOf(".")!==-1?b==="0"&&m===""||b===m||d&&b==="-"+m?f:o:h?m===b||d+m===b?f:o:u===b||u===d+b?f:o}}else return o}}function i(o){return o&&o.indexOf(".")!==-1&&(o=o.replace(/0+$/,""),o==="."?o="0":o[0]==="."?o="0"+o:o[o.length-1]==="."&&(o=o.substr(0,o.length-1))),o}function s(o,a){if(parseInt)return parseInt(o,a);if(Number.parseInt)return Number.parseInt(o,a);if(window&&window.parseInt)return window.parseInt(o,a);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}return ya=r,ya}var Ta,hd;function fd(){if(hd)return Ta;hd=1;function e(t){return typeof t=="function"?t:Array.isArray(t)?n=>{for(const r of t)if(typeof r=="string"&&n===r||r instanceof RegExp&&r.test(n))return!0}:()=>!1}return Ta=e,Ta}var _a,pd;function ww(){if(pd)return _a;pd=1;const e=di(),t=yw(),n=Tw(),r=_w(),i=fd();class s{constructor(S){if(this.options=S,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(w,R)=>D(R,10,"&#")},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(w,R)=>D(R,16,"&#x")}},this.addExternalEntities=o,this.parseXml=h,this.parseTextData=a,this.resolveNameSpace=u,this.buildAttributesMap=d,this.isItStopNode=g,this.replaceEntitiesValue=f,this.readStopNodeData=C,this.saveTextToParentTag=b,this.addChild=m,this.ignoreAttributesFn=i(this.options.ignoreAttributes),this.entityExpansionCount=0,this.currentExpandedLength=0,this.options.stopNodes&&this.options.stopNodes.length>0){this.stopNodesExact=new Set,this.stopNodesWildcard=new Set;for(let w=0;w<this.options.stopNodes.length;w++){const R=this.options.stopNodes[w];typeof R=="string"&&(R.startsWith("*.")?this.stopNodesWildcard.add(R.substring(2)):this.stopNodesExact.add(R))}}}}function o(A){const S=Object.keys(A);for(let w=0;w<S.length;w++){const R=S[w],P=R.replace(/[.\-+*:]/g,"\\.");this.lastEntities[R]={regex:new RegExp("&"+P+";","g"),val:A[R]}}}function a(A,S,w,R,P,x,M){if(A!==void 0&&(this.options.trimValues&&!R&&(A=A.trim()),A.length>0)){M||(A=this.replaceEntitiesValue(A,S,w));const T=this.options.tagValueProcessor(S,A,w,P,x);return T==null?A:typeof T!=typeof A||T!==A?T:this.options.trimValues?I(A,this.options.parseTagValue,this.options.numberParseOptions):A.trim()===A?I(A,this.options.parseTagValue,this.options.numberParseOptions):A}}function u(A){if(this.options.removeNSPrefix){const S=A.split(":"),w=A.charAt(0)==="/"?"/":"";if(S[0]==="xmlns")return"";S.length===2&&(A=w+S[1])}return A}const c=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function d(A,S,w){if(this.options.ignoreAttributes!==!0&&typeof A=="string"){const R=e.getAllMatches(A,c),P=R.length,x={};for(let M=0;M<P;M++){const T=this.resolveNameSpace(R[M][1]);if(this.ignoreAttributesFn(T,S))continue;let U=R[M][4],W=this.options.attributeNamePrefix+T;if(T.length)if(this.options.transformAttributeName&&(W=this.options.transformAttributeName(W)),W=B(W,this.options),U!==void 0){this.options.trimValues&&(U=U.trim()),U=this.replaceEntitiesValue(U,w,S);const G=this.options.attributeValueProcessor(T,U,S);G==null?x[W]=U:typeof G!=typeof U||G!==U?x[W]=G:x[W]=I(U,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(x[W]=!0)}if(!Object.keys(x).length)return;if(this.options.attributesGroupName){const M={};return M[this.options.attributesGroupName]=x,M}return x}}const h=function(A){A=A.replace(/\r\n?/g,`
48
+ `);const S=new t("!xml");let w=S,R="",P="";this.entityExpansionCount=0,this.currentExpandedLength=0;const x=new n(this.options.processEntities);for(let M=0;M<A.length;M++)if(A[M]==="<")if(A[M+1]==="/"){const U=p(A,">",M,"Closing Tag is not closed.");let W=A.substring(M+2,U).trim();if(this.options.removeNSPrefix){const Z=W.indexOf(":");Z!==-1&&(W=W.substr(Z+1))}this.options.transformTagName&&(W=this.options.transformTagName(W)),w&&(R=this.saveTextToParentTag(R,w,P));const G=P.substring(P.lastIndexOf(".")+1);if(W&&this.options.unpairedTags.indexOf(W)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${W}>`);let se=0;G&&this.options.unpairedTags.indexOf(G)!==-1?(se=P.lastIndexOf(".",P.lastIndexOf(".")-1),this.tagsNodeStack.pop()):se=P.lastIndexOf("."),P=P.substring(0,se),w=this.tagsNodeStack.pop(),R="",M=U}else if(A[M+1]==="?"){let U=y(A,M,!1,"?>");if(!U)throw new Error("Pi Tag is not closed.");if(R=this.saveTextToParentTag(R,w,P),!(this.options.ignoreDeclaration&&U.tagName==="?xml"||this.options.ignorePiTags)){const W=new t(U.tagName);W.add(this.options.textNodeName,""),U.tagName!==U.tagExp&&U.attrExpPresent&&(W[":@"]=this.buildAttributesMap(U.tagExp,P,U.tagName)),this.addChild(w,W,P,M)}M=U.closeIndex+1}else if(A.substr(M+1,3)==="!--"){const U=p(A,"-->",M+4,"Comment is not closed.");if(this.options.commentPropName){const W=A.substring(M+4,U-2);R=this.saveTextToParentTag(R,w,P),w.add(this.options.commentPropName,[{[this.options.textNodeName]:W}])}M=U}else if(A.substr(M+1,2)==="!D"){const U=x.readDocType(A,M);this.docTypeEntities=U.entities,M=U.i}else if(A.substr(M+1,2)==="!["){const U=p(A,"]]>",M,"CDATA is not closed.")-2,W=A.substring(M+9,U);R=this.saveTextToParentTag(R,w,P);let G=this.parseTextData(W,w.tagname,P,!0,!1,!0,!0);G==null&&(G=""),this.options.cdataPropName?w.add(this.options.cdataPropName,[{[this.options.textNodeName]:W}]):w.add(this.options.textNodeName,G),M=U+2}else{let U=y(A,M,this.options.removeNSPrefix),W=U.tagName;const G=U.rawTagName;let se=U.tagExp,Z=U.attrExpPresent,he=U.closeIndex;if(this.options.transformTagName){const oe=this.options.transformTagName(W);se===W&&(se=oe),W=oe}if(this.options.strictReservedNames&&(W===this.options.commentPropName||W===this.options.cdataPropName||W===this.options.textNodeName||W===this.options.attributesGroupName))throw new Error(`Invalid tag name: ${W}`);w&&R&&w.tagname!=="!xml"&&(R=this.saveTextToParentTag(R,w,P,!1));const j=w;j&&this.options.unpairedTags.indexOf(j.tagname)!==-1&&(w=this.tagsNodeStack.pop(),P=P.substring(0,P.lastIndexOf("."))),W!==S.tagname&&(P+=P?"."+W:W);const $=M;if(this.isItStopNode(this.stopNodesExact,this.stopNodesWildcard,P,W)){let oe="";if(se.length>0&&se.lastIndexOf("/")===se.length-1)W[W.length-1]==="/"?(W=W.substr(0,W.length-1),P=P.substr(0,P.length-1),se=W):se=se.substr(0,se.length-1),M=U.closeIndex;else if(this.options.unpairedTags.indexOf(W)!==-1)M=U.closeIndex;else{const ie=this.readStopNodeData(A,G,he+1);if(!ie)throw new Error(`Unexpected end of ${G}`);M=ie.i,oe=ie.tagContent}const ae=new t(W);W!==se&&Z&&(ae[":@"]=this.buildAttributesMap(se,P,W)),oe&&(oe=this.parseTextData(oe,W,P,!0,Z,!0,!0)),P=P.substr(0,P.lastIndexOf(".")),ae.add(this.options.textNodeName,oe),this.addChild(w,ae,P,$)}else{if(se.length>0&&se.lastIndexOf("/")===se.length-1){if(W[W.length-1]==="/"?(W=W.substr(0,W.length-1),P=P.substr(0,P.length-1),se=W):se=se.substr(0,se.length-1),this.options.transformTagName){const ae=this.options.transformTagName(W);se===W&&(se=ae),W=ae}const oe=new t(W);W!==se&&Z&&(oe[":@"]=this.buildAttributesMap(se,P,W)),this.addChild(w,oe,P,$),P=P.substr(0,P.lastIndexOf("."))}else if(this.options.unpairedTags.indexOf(W)!==-1){const oe=new t(W);W!==se&&Z&&(oe[":@"]=this.buildAttributesMap(se,P)),this.addChild(w,oe,P,$),P=P.substr(0,P.lastIndexOf(".")),M=U.closeIndex;continue}else{const oe=new t(W);if(this.tagsNodeStack.length>this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(w),W!==se&&Z&&(oe[":@"]=this.buildAttributesMap(se,P,W)),this.addChild(w,oe,P),w=oe}R="",M=he}}else R+=A[M];return S.child};function m(A,S,w,R){this.options.captureMetaData||(R=void 0);const P=this.options.updateTag(S.tagname,w,S[":@"]);P===!1||(typeof P=="string"&&(S.tagname=P),A.addChild(S,R))}const f=function(A,S,w){if(A.indexOf("&")===-1)return A;const R=this.options.processEntities;if(!R.enabled||R.allowedTags&&!R.allowedTags.includes(S)||R.tagFilter&&!R.tagFilter(S,w))return A;for(let P in this.docTypeEntities){const x=this.docTypeEntities[P],M=A.match(x.regx);if(M){if(this.entityExpansionCount+=M.length,R.maxTotalExpansions&&this.entityExpansionCount>R.maxTotalExpansions)throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${R.maxTotalExpansions}`);const T=A.length;if(A=A.replace(x.regx,x.val),R.maxExpandedLength&&(this.currentExpandedLength+=A.length-T,this.currentExpandedLength>R.maxExpandedLength))throw new Error(`Total expanded content size exceeded: ${this.currentExpandedLength} > ${R.maxExpandedLength}`)}}if(A.indexOf("&")===-1)return A;for(const P of Object.keys(this.lastEntities)){const x=this.lastEntities[P],M=A.match(x.regex);if(M&&(this.entityExpansionCount+=M.length,R.maxTotalExpansions&&this.entityExpansionCount>R.maxTotalExpansions))throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${R.maxTotalExpansions}`);A=A.replace(x.regex,x.val)}if(A.indexOf("&")===-1)return A;if(this.options.htmlEntities)for(const P of Object.keys(this.htmlEntities)){const x=this.htmlEntities[P],M=A.match(x.regex);if(M&&(this.entityExpansionCount+=M.length,R.maxTotalExpansions&&this.entityExpansionCount>R.maxTotalExpansions))throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${R.maxTotalExpansions}`);A=A.replace(x.regex,x.val)}return A=A.replace(this.ampEntity.regex,this.ampEntity.val),A};function b(A,S,w,R){return A&&(R===void 0&&(R=S.child.length===0),A=this.parseTextData(A,S.tagname,w,!1,S[":@"]?Object.keys(S[":@"]).length!==0:!1,R),A!==void 0&&A!==""&&S.add(this.options.textNodeName,A),A=""),A}function g(A,S,w,R){return!!(S&&S.has(R)||A&&A.has(w))}function _(A,S,w=">"){let R,P="";for(let x=S;x<A.length;x++){let M=A[x];if(R)M===R&&(R="");else if(M==='"'||M==="'")R=M;else if(M===w[0])if(w[1]){if(A[x+1]===w[1])return{data:P,index:x}}else return{data:P,index:x};else M===" "&&(M=" ");P+=M}}function p(A,S,w,R){const P=A.indexOf(S,w);if(P===-1)throw new Error(R);return P+S.length-1}function y(A,S,w,R=">"){const P=_(A,S+1,R);if(!P)return;let x=P.data;const M=P.index,T=x.search(/\s/);let U=x,W=!0;T!==-1&&(U=x.substring(0,T),x=x.substring(T+1).trimStart());const G=U;if(w){const se=U.indexOf(":");se!==-1&&(U=U.substr(se+1),W=U!==P.data.substr(se+1))}return{tagName:U,tagExp:x,closeIndex:M,attrExpPresent:W,rawTagName:G}}function C(A,S,w){const R=w;let P=1;for(;w<A.length;w++)if(A[w]==="<")if(A[w+1]==="/"){const x=p(A,">",w,`${S} is not closed`);if(A.substring(w+2,x).trim()===S&&(P--,P===0))return{tagContent:A.substring(R,w),i:x};w=x}else if(A[w+1]==="?")w=p(A,"?>",w+1,"StopNode is not closed.");else if(A.substr(w+1,3)==="!--")w=p(A,"-->",w+3,"StopNode is not closed.");else if(A.substr(w+1,2)==="![")w=p(A,"]]>",w,"StopNode is not closed.")-2;else{const x=y(A,w,">");x&&((x&&x.tagName)===S&&x.tagExp[x.tagExp.length-1]!=="/"&&P++,w=x.closeIndex)}}function I(A,S,w){if(S&&typeof A=="string"){const R=A.trim();return R==="true"?!0:R==="false"?!1:r(A,w)}else return e.isExist(A)?A:""}function D(A,S,w){const R=Number.parseInt(A,S);return R>=0&&R<=1114111?String.fromCodePoint(R):w+A+";"}function B(A,S){if(e.criticalProperties.includes(A))throw new Error(`[SECURITY] Invalid name: "${A}" is a reserved JavaScript keyword that could cause prototype pollution`);return e.DANGEROUS_PROPERTY_NAMES.includes(A)?S.onDangerousProperty(A):A}return _a=s,_a}var wa={},md;function kw(){if(md)return wa;md=1;function e(s,o){return t(s,o)}function t(s,o,a){let u;const c={};for(let d=0;d<s.length;d++){const h=s[d],m=n(h);let f="";if(a===void 0?f=m:f=a+"."+m,m===o.textNodeName)u===void 0?u=h[m]:u+=""+h[m];else{if(m===void 0)continue;if(h[m]){let b=t(h[m],o,f);const g=i(b,o);h[":@"]?r(b,h[":@"],f,o):Object.keys(b).length===1&&b[o.textNodeName]!==void 0&&!o.alwaysCreateTextNode?b=b[o.textNodeName]:Object.keys(b).length===0&&(o.alwaysCreateTextNode?b[o.textNodeName]="":b=""),c[m]!==void 0&&c.hasOwnProperty(m)?(Array.isArray(c[m])||(c[m]=[c[m]]),c[m].push(b)):o.isArray(m,f,g)?c[m]=[b]:c[m]=b}}}return typeof u=="string"?u.length>0&&(c[o.textNodeName]=u):u!==void 0&&(c[o.textNodeName]=u),c}function n(s){const o=Object.keys(s);for(let a=0;a<o.length;a++){const u=o[a];if(u!==":@")return u}}function r(s,o,a,u){if(o){const c=Object.keys(o),d=c.length;for(let h=0;h<d;h++){const m=c[h];u.isArray(m,a+"."+m,!0,!0)?s[m]=[o[m]]:s[m]=o[m]}}}function i(s,o){const{textNodeName:a}=o,u=Object.keys(s).length;return!!(u===0||u===1&&(s[a]||typeof s[a]=="boolean"||s[a]===0))}return wa.prettify=e,wa}var ka,gd;function Aw(){if(gd)return ka;gd=1;const{buildOptions:e}=Ew(),t=ww(),{prettify:n}=kw(),r=od();class i{constructor(o){this.externalEntities={},this.options=e(o)}parse(o,a){if(typeof o!="string")if(o.toString)o=o.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if(a){a===!0&&(a={});const d=r.validate(o,a);if(d!==!0)throw Error(`${d.err.msg}:${d.err.line}:${d.err.col}`)}const u=new t(this.options);u.addExternalEntities(this.externalEntities);const c=u.parseXml(o);return this.options.preserveOrder||c===void 0?c:n(c,this.options)}addEntity(o,a){if(a.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(o.indexOf("&")!==-1||o.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if(a==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[o]=a}}return ka=i,ka}var Aa,bd;function Sw(){if(bd)return Aa;bd=1;const e=`
49
+ `;function t(a,u){let c="";return u.format&&u.indentBy.length>0&&(c=e),n(a,u,"",c)}function n(a,u,c,d){let h="",m=!1;if(!Array.isArray(a)){if(a!=null){let f=a.toString();return f=o(f,u),f}return""}for(let f=0;f<a.length;f++){const b=a[f],g=r(b);if(g===void 0)continue;let _="";if(c.length===0?_=g:_=`${c}.${g}`,g===u.textNodeName){let D=b[g];s(_,u)||(D=u.tagValueProcessor(g,D),D=o(D,u)),m&&(h+=d),h+=D,m=!1;continue}else if(g===u.cdataPropName){m&&(h+=d),h+=`<![CDATA[${b[g][0][u.textNodeName]}]]>`,m=!1;continue}else if(g===u.commentPropName){h+=d+`<!--${b[g][0][u.textNodeName]}-->`,m=!0;continue}else if(g[0]==="?"){const D=i(b[":@"],u),B=g==="?xml"?"":d;let A=b[g][0][u.textNodeName];A=A.length!==0?" "+A:"",h+=B+`<${g}${A}${D}?>`,m=!0;continue}let p=d;p!==""&&(p+=u.indentBy);const y=i(b[":@"],u),C=d+`<${g}${y}`,I=n(b[g],u,_,p);u.unpairedTags.indexOf(g)!==-1?u.suppressUnpairedNode?h+=C+">":h+=C+"/>":(!I||I.length===0)&&u.suppressEmptyNode?h+=C+"/>":I&&I.endsWith(">")?h+=C+`>${I}${d}</${g}>`:(h+=C+">",I&&d!==""&&(I.includes("/>")||I.includes("</"))?h+=d+u.indentBy+I+d:h+=I,h+=`</${g}>`),m=!0}return h}function r(a){const u=Object.keys(a);for(let c=0;c<u.length;c++){const d=u[c];if(Object.prototype.hasOwnProperty.call(a,d)&&d!==":@")return d}}function i(a,u){let c="";if(a&&!u.ignoreAttributes)for(let d in a){if(!Object.prototype.hasOwnProperty.call(a,d))continue;let h=u.attributeValueProcessor(d,a[d]);h=o(h,u),h===!0&&u.suppressBooleanAttributes?c+=` ${d.substr(u.attributeNamePrefix.length)}`:c+=` ${d.substr(u.attributeNamePrefix.length)}="${h}"`}return c}function s(a,u){a=a.substr(0,a.length-u.textNodeName.length-1);let c=a.substr(a.lastIndexOf(".")+1);for(let d in u.stopNodes)if(u.stopNodes[d]===a||u.stopNodes[d]==="*."+c)return!0;return!1}function o(a,u){if(a&&a.length>0&&u.processEntities)for(let c=0;c<u.entities.length;c++){const d=u.entities[c];a=a.replace(d.regex,d.val)}return a}return Aa=t,Aa}var Sa,Ed;function Cw(){if(Ed)return Sa;Ed=1;const e=Sw(),t=fd(),n={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(a,u){return u},attributeValueProcessor:function(a,u){return u},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};function r(a){this.options=Object.assign({},n,a),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=t(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=o),this.processTextOrObjNode=i,this.options.format?(this.indentate=s,this.tagEndChar=`>
50
50
  `,this.newLine=`
51
- `):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}r.prototype.build=function(a){return this.options.preserveOrder?e(a,this.options):(Array.isArray(a)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(a={[this.options.arrayNodeName]:a}),this.j2x(a,0,[]).val)},r.prototype.j2x=function(a,u,c){let d="",h="";const b=c.join(".");for(let f in a)if(Object.prototype.hasOwnProperty.call(a,f))if(typeof a[f]>"u")this.isAttribute(f)&&(h+="");else if(a[f]===null)this.isAttribute(f)||f===this.options.cdataPropName?h+="":f[0]==="?"?h+=this.indentate(u)+"<"+f+"?"+this.tagEndChar:h+=this.indentate(u)+"<"+f+"/"+this.tagEndChar;else if(a[f]instanceof Date)h+=this.buildTextValNode(a[f],f,"",u);else if(typeof a[f]!="object"){const m=this.isAttribute(f);if(m&&!this.ignoreAttributesFn(m,b))d+=this.buildAttrPairStr(m,""+a[f]);else if(!m)if(f===this.options.textNodeName){let g=this.options.tagValueProcessor(f,""+a[f]);h+=this.replaceEntitiesValue(g)}else h+=this.buildTextValNode(a[f],f,"",u)}else if(Array.isArray(a[f])){const m=a[f].length;let g="",_="";for(let p=0;p<m;p++){const y=a[f][p];if(!(typeof y>"u"))if(y===null)f[0]==="?"?h+=this.indentate(u)+"<"+f+"?"+this.tagEndChar:h+=this.indentate(u)+"<"+f+"/"+this.tagEndChar;else if(typeof y=="object")if(this.options.oneListGroup){const C=this.j2x(y,u+1,c.concat(f));g+=C.val,this.options.attributesGroupName&&y.hasOwnProperty(this.options.attributesGroupName)&&(_+=C.attrStr)}else g+=this.processTextOrObjNode(y,f,u,c);else if(this.options.oneListGroup){let C=this.options.tagValueProcessor(f,y);C=this.replaceEntitiesValue(C),g+=C}else g+=this.buildTextValNode(y,f,"",u)}this.options.oneListGroup&&(g=this.buildObjectNode(g,f,_,u)),h+=g}else if(this.options.attributesGroupName&&f===this.options.attributesGroupName){const m=Object.keys(a[f]),g=m.length;for(let _=0;_<g;_++)d+=this.buildAttrPairStr(m[_],""+a[f][m[_]])}else h+=this.processTextOrObjNode(a[f],f,u,c);return{attrStr:d,val:h}},r.prototype.buildAttrPairStr=function(a,u){return u=this.options.attributeValueProcessor(a,""+u),u=this.replaceEntitiesValue(u),this.options.suppressBooleanAttributes&&u==="true"?" "+a:" "+a+'="'+u+'"'};function i(a,u,c,d){const h=this.j2x(a,c+1,d.concat(u));return a[this.options.textNodeName]!==void 0&&Object.keys(a).length===1?this.buildTextValNode(a[this.options.textNodeName],u,h.attrStr,c):this.buildObjectNode(h.val,u,h.attrStr,c)}r.prototype.buildObjectNode=function(a,u,c,d){if(a==="")return u[0]==="?"?this.indentate(d)+"<"+u+c+"?"+this.tagEndChar:this.indentate(d)+"<"+u+c+this.closeTag(u)+this.tagEndChar;{let h="</"+u+this.tagEndChar,b="";return u[0]==="?"&&(b="?",h=""),(c||c==="")&&a.indexOf("<")===-1?this.indentate(d)+"<"+u+c+b+">"+a+h:this.options.commentPropName!==!1&&u===this.options.commentPropName&&b.length===0?this.indentate(d)+`<!--${a}-->`+this.newLine:this.indentate(d)+"<"+u+c+b+this.tagEndChar+a+this.indentate(d)+h}},r.prototype.closeTag=function(a){let u="";return this.options.unpairedTags.indexOf(a)!==-1?this.options.suppressUnpairedNode||(u="/"):this.options.suppressEmptyNode?u="/":u=`></${a}`,u},r.prototype.buildTextValNode=function(a,u,c,d){if(this.options.cdataPropName!==!1&&u===this.options.cdataPropName)return this.indentate(d)+`<![CDATA[${a}]]>`+this.newLine;if(this.options.commentPropName!==!1&&u===this.options.commentPropName)return this.indentate(d)+`<!--${a}-->`+this.newLine;if(u[0]==="?")return this.indentate(d)+"<"+u+c+"?"+this.tagEndChar;{let h=this.options.tagValueProcessor(u,a);return h=this.replaceEntitiesValue(h),h===""?this.indentate(d)+"<"+u+c+this.closeTag(u)+this.tagEndChar:this.indentate(d)+"<"+u+c+">"+h+"</"+u+this.tagEndChar}},r.prototype.replaceEntitiesValue=function(a){if(a&&a.length>0&&this.options.processEntities)for(let u=0;u<this.options.entities.length;u++){const c=this.options.entities[u];a=a.replace(c.regex,c.val)}return a};function s(a){return this.options.indentBy.repeat(a)}function o(a){return a.startsWith(this.options.attributeNamePrefix)&&a!==this.options.textNodeName?a.substr(this.attrPrefixLen):!1}return ga=r,ga}var ba,ld;function uk(){if(ld)return ba;ld=1;const e=Qc(),t=sk(),n=ok();return ba={XMLParser:t,XMLValidator:e,XMLBuilder:n},ba}var Ea=uk();const lk={ignoreAttributes:!1,attributeNamePrefix:"@_",textNodeName:"#text",trimValues:!1,preserveOrder:!1,isArray:e=>["w:p","w:r","w:t","w:tbl","w:tr","w:tc","w:hyperlink","w:drawing","w:style","w:abstractNum","w:num","w:lvl"].includes(e)},ck={ignoreAttributes:!1,attributeNamePrefix:"@_",textNodeName:"#text",trimValues:!1,preserveOrder:!0},dk=new Ea.XMLParser(ck),hk={ignoreAttributes:!1,attributeNamePrefix:"@_",textNodeName:"#text",format:!0,suppressEmptyNode:!0};new Ea.XMLParser(lk),new Ea.XMLBuilder(hk);function fk(e){return dk.parse(e)}const cd={Heading1:1,Heading2:2,Heading3:3,Heading4:4,Heading5:5,Heading6:6,heading1:1,heading2:2,heading3:3,heading4:4,heading5:5,heading6:6,"Heading 1":1,"Heading 2":2,"Heading 3":3,"Heading 4":4,"Heading 5":5,"Heading 6":6},dd=new Set(["Code","code","SourceCode","HTMLCode"]),hd=new Set(["Quote","quote","BlockQuote","IntenseQuote"]);let fd=new Map;function pk(e){const t=new Map;if(!e)return t;const n=/Id="([^"]+)"[^>]*Type="[^"]*\/hyperlink"[^>]*Target="([^"]+)"/g;let r;for(;(r=n.exec(e))!==null;)t.set(r[1],r[2]);return t}async function mk(e,t){const n=await X_(e),r=n.rawParts.get("word/otomate-udm.json");if(r)try{const a=JSON.parse(r),u=n.rawParts.get("word/otomate-css.json");if(u){const c=JSON.parse(u);a.data={...a.data,css:c}}return a.data={...a.data,docx:{rawParts:Object.fromEntries(n.rawParts),styles:n.styles,numbering:n.numbering,relationships:n.relationships,contentTypes:n.contentTypes}},a}catch{}fd=pk(n.relationships);const i=fk(n.document),o={type:"root",children:gk(i)};return o.data={docx:{rawParts:Object.fromEntries(n.rawParts),styles:n.styles,numbering:n.numbering,relationships:n.relationships,contentTypes:n.contentTypes}},n.media.size>0&&(o.data.docx.media=Object.fromEntries([...n.media].map(([a,u])=>[a,Array.from(u)]))),o}function gk(e){const t=e.find(s=>s["w:document"]);if(!t)return[];const r=(t["w:document"]??[]).find(s=>s["w:body"]);if(!r)return[];const i=r["w:body"]??[];return bk(i)}function bk(e){const t=[];let n=[];function r(){n.length>0&&(t.push(n[0].list),n=[])}for(const i of e)if(i["w:p"]!==void 0){const s=i["w:p"]??[],o=i[":@"]??{},a=Ek(s,o,n,r);a&&(r(),t.push(a))}else i["w:tbl"]!==void 0?(r(),t.push(_k(i["w:tbl"]??[]))):i["w:sectPr"];return r(),t}function Ek(e,t,n,r,i){var _,p;const s=e.find(y=>y["w:pPr"]!==void 0),o=(s==null?void 0:s["w:pPr"])??[],a=o.find(y=>y["w:numPr"]!==void 0);if(a){const y=a["w:numPr"]??[],C=Ta(y,"w:numId","w:val")??"0",O=Number(Ta(y,"w:ilvl","w:val")??0),A={type:"listItem",children:[{type:"paragraph",children:In(e)}]};if(n.length===0||n[0].numId!==C){r();const S={type:"list",ordered:!1,children:[A]};n.push({numId:C,ilvl:O,list:S,item:A})}else{const S=n[n.length-1];if(O>S.ilvl){const k={type:"list",ordered:!1,children:[A]};S.item.children.push(k),n.push({numId:C,ilvl:O,list:k,item:A})}else if(O<S.ilvl){for(;n.length>1&&n[n.length-1].ilvl>O;)n.pop();n[n.length-1].list.children.push(A),n[n.length-1].item=A}else S.list.children.push(A),S.item=A}return null}const u=Ta(o,"w:pStyle","w:val");if(u&&dd.has(u))return{type:"codeBlock",value:yk(e)};if(u&&hd.has(u)){const y=In(e);return y.length===0?null:{type:"blockquote",children:[{type:"paragraph",children:y}]}}const c=o.find(y=>y["w:ind"]!==void 0),d=(_=c==null?void 0:c[":@"])==null?void 0:_["@_w:left"];if(d&&Number(d)>=720&&!u){const y=In(e);return y.length===0?null:{type:"blockquote",children:[{type:"paragraph",children:y}]}}const h=u?cd[u]:void 0;if(h){const y=In(e);return{type:"heading",depth:h,children:y}}const b=In(e);if(b.length===0)return null;const f={type:"paragraph",children:b};u&&!cd[u]&&!dd.has(u)&&!hd.has(u)&&(f.classes=[u]);const m={},g=o.find(y=>y["w:jc"]!==void 0);return g&&(m.align=(p=g[":@"])==null?void 0:p["@_w:val"]),Object.keys(m).length>0&&(f.data={docx:m}),f}function In(e){const t=[];for(const n of e)if(n["w:r"]!==void 0){const r=n["w:r"]??[],i=ya(r);if(!i)continue;const s=pd(r),o={type:"text",value:i};s.length>0&&(o.marks=s);const a=r.find(u=>u["w:rPr"]!==void 0);if(a){const u=Tk(a["w:rPr"]??[]);Object.keys(u).length>0&&(o.data={docx:u})}t.push(o)}else if(n["w:hyperlink"]!==void 0){const r=n["w:hyperlink"]??[],i=n[":@"]??{},s=i["@_r:id"]??i["@_w:id"]??"",o=fd.get(s)??`#${s}`;for(const a of r)if(a["w:r"]!==void 0){const u=a["w:r"]??[],c=ya(u);if(!c)continue;const d=pd(u);d.push({type:"link",attrs:{url:o}}),t.push({type:"text",value:c,marks:d})}}return t}function ya(e){let t="";for(const n of e)if(n["w:t"]!==void 0){const r=n["w:t"];if(Array.isArray(r))for(const i of r)typeof i=="object"&&i["#text"]!==void 0?t+=i["#text"]:typeof i=="string"&&(t+=i);else typeof r=="string"?t+=r:(r==null?void 0:r["#text"])!==void 0&&(t+=r["#text"])}return t||null}function yk(e){let t="";for(const n of e)if(n["w:r"]!==void 0){const r=ya(n["w:r"]??[]);r&&(t+=r)}return t}function pd(e){var i,s,o;const t=e.find(a=>a["w:rPr"]!==void 0);if(!t)return[];const n=t["w:rPr"]??[],r=[];for(const a of n){if(a["w:b"]!==void 0&&r.push({type:"strong"}),a["w:i"]!==void 0&&r.push({type:"emphasis"}),a["w:u"]!==void 0){const u=((i=a[":@"])==null?void 0:i["@_w:val"])??"single";r.push({type:"underline",attrs:{style:u}})}if(a["w:strike"]!==void 0&&r.push({type:"strikethrough"}),a["w:dstrike"]!==void 0&&r.push({type:"strikethrough",attrs:{double:!0}}),a["w:vertAlign"]!==void 0){const u=(s=a[":@"])==null?void 0:s["@_w:val"];u==="superscript"&&r.push({type:"superscript"}),u==="subscript"&&r.push({type:"subscript"})}if(a["w:highlight"]!==void 0){const u=(o=a[":@"])==null?void 0:o["@_w:val"];r.push({type:"highlight",attrs:{color:u}})}}return r}function Tk(e){var n,r,i,s,o;const t={};for(const a of e)a["w:rFonts"]!==void 0&&(t.font={ascii:(n=a[":@"])==null?void 0:n["@_w:ascii"],hAnsi:(r=a[":@"])==null?void 0:r["@_w:hAnsi"]}),a["w:sz"]!==void 0&&(t.fontSize=Number((i=a[":@"])==null?void 0:i["@_w:val"])),a["w:color"]!==void 0&&(t.color=(s=a[":@"])==null?void 0:s["@_w:val"]),a["w:rStyle"]!==void 0&&(t.rStyle=(o=a[":@"])==null?void 0:o["@_w:val"]);return t}function _k(e){var n;const t=[];for(const r of e)if(r["w:tr"]!==void 0){const i=r["w:tr"]??[],s=[];let o=!1;for(const a of i)if(a["w:trPr"]!==void 0&&(a["w:trPr"]??[]).some(c=>c["w:tblHeader"]!==void 0)&&(o=!0),a["w:tc"]!==void 0){const u=a["w:tc"]??[],c=[];let d;for(const b of u){if(b["w:tcPr"]!==void 0){const f=b["w:tcPr"]??[];for(const m of f)if(m["w:gridSpan"]!==void 0){const g=Number((n=m[":@"])==null?void 0:n["@_w:val"]);g>1&&(d=g)}}if(b["w:p"]!==void 0){const f=In(b["w:p"]??[]);f.length>0&&c.push({type:"paragraph",children:f})}}const h={type:"tableCell",children:c};d&&(h.colspan=d),s.push(h)}t.push({type:"tableRow",isHeader:o||void 0,children:s})}return{type:"table",children:t}}function Ta(e,t,n){var i;const r=e.find(s=>s[t]!==void 0);if(r)return(i=r[":@"])==null?void 0:i[`@_${n}`]}const md={black:"000000",white:"FFFFFF",red:"FF0000",green:"008000",blue:"0000FF",yellow:"FFFF00",gray:"808080",grey:"808080",orange:"FFA500",purple:"800080",navy:"000080",teal:"008080",maroon:"800000",silver:"C0C0C0",olive:"808000",aqua:"00FFFF",fuchsia:"FF00FF",lime:"00FF00"};function ui(e){const t=e.trim().toLowerCase();if(md[t])return md[t];const n=t.match(/^#([0-9a-f]{3,8})$/);if(n){const i=n[1];if(i.length===3||i.length===4)return i[0]+i[0]+i[1]+i[1]+i[2]+i[2];if(i.length===6)return i;if(i.length===8)return i.slice(0,6)}const r=t.match(/^rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/);if(r)return[r[1],r[2],r[3]].map(i=>Number(i).toString(16).padStart(2,"0")).join("")}function un(e){const t=e.trim().match(/^(-?[\d.]+)(px|pt|em|rem|cm|mm|in|%)$/);if(!t)return;const n=parseFloat(t[1]);switch(t[2]){case"pt":return Math.round(n*20);case"px":return Math.round(n*.75*20);case"in":return Math.round(n*1440);case"cm":return Math.round(n*567);case"mm":return Math.round(n*56.7);case"em":case"rem":return Math.round(n*12*20);default:return}}function gd(e){const t=e.trim().match(/^(-?[\d.]+)(px|pt|em|rem)$/);if(!t)return;const n=parseFloat(t[1]);switch(t[2]){case"pt":return Math.round(n*2);case"px":return Math.round(n*.75*2);case"em":case"rem":return Math.round(n*12*2);default:return}}function ft(e){const t={};if(e["font-family"]){const n=e["font-family"].replace(/['"]/g,"").split(",")[0].trim();t.rFonts={ascii:n,hAnsi:n}}if(e["font-size"]){const n=gd(e["font-size"]);n&&(t.sz=n)}if(e["font-weight"]){const n=e["font-weight"];(n==="bold"||n==="bolder"||Number(n)>=700)&&(t.b=!0)}if(e["font-style"]&&(e["font-style"]==="italic"||e["font-style"]==="oblique")&&(t.i=!0),e.color){const n=ui(e.color);n&&(t.color=n)}if(e["background-color"]){const n=ui(e["background-color"]);n&&(t.shd=n)}if(e["text-decoration"]){const n=e["text-decoration"];n.includes("underline")&&(t.u="single"),n.includes("line-through")&&(t.strike=!0)}return t}function vn(e){const t={};if(e["text-align"]){const i=e["text-align"];(i==="left"||i==="center"||i==="right")&&(t.jc=i),i==="justify"&&(t.jc="both")}const n={};if(e["margin-top"]){const i=un(e["margin-top"]);i&&(n.before=i)}if(e["margin-bottom"]){const i=un(e["margin-bottom"]);i&&(n.after=i)}if(e["line-height"]){const i=e["line-height"].match(/^([\d.]+)(px|pt)?$/);if(i){const s=parseFloat(i[1]);i[2]==="pt"?n.line=Math.round(s*20):i[2]==="px"?n.line=Math.round(s*.75*20):n.line=Math.round(s*240)}}Object.keys(n).length>0&&(t.spacing=n);const r={};if(e["margin-left"]){const i=un(e["margin-left"]);i&&(r.left=i)}if(e["margin-right"]){const i=un(e["margin-right"]);i&&(r.right=i)}if(e["text-indent"]){const i=un(e["text-indent"]);i&&(r.firstLine=i)}return Object.keys(r).length>0&&(t.ind=r),t}function bd(e){const t=[];if(e.rFonts){const n=[];e.rFonts.ascii&&n.push(`w:ascii="${e.rFonts.ascii}"`),e.rFonts.hAnsi&&n.push(`w:hAnsi="${e.rFonts.hAnsi}"`),e.rFonts.cs&&n.push(`w:cs="${e.rFonts.cs}"`),t.push(`<w:rFonts ${n.join(" ")}/>`)}return e.b&&t.push("<w:b/>"),e.i&&t.push("<w:i/>"),e.sz&&t.push(`<w:sz w:val="${e.sz}"/>`),e.color&&t.push(`<w:color w:val="${e.color}"/>`),e.u&&t.push(`<w:u w:val="${e.u}"/>`),e.strike&&t.push("<w:strike/>"),e.shd&&t.push(`<w:shd w:val="clear" w:color="auto" w:fill="${e.shd}"/>`),e.vertAlign&&t.push(`<w:vertAlign w:val="${e.vertAlign}"/>`),t.length>0?`<w:rPr>${t.join("")}</w:rPr>`:""}function Ed(e){const t=[];if(e.jc&&t.push(`<w:jc w:val="${e.jc}"/>`),e.spacing){const n=[];e.spacing.before!==void 0&&n.push(`w:before="${e.spacing.before}"`),e.spacing.after!==void 0&&n.push(`w:after="${e.spacing.after}"`),e.spacing.line!==void 0&&n.push(`w:line="${e.spacing.line}"`),t.push(`<w:spacing ${n.join(" ")}/>`)}if(e.ind){const n=[];e.ind.left!==void 0&&n.push(`w:left="${e.ind.left}"`),e.ind.right!==void 0&&n.push(`w:right="${e.ind.right}"`),e.ind.firstLine!==void 0&&n.push(`w:firstLine="${e.ind.firstLine}"`),e.ind.hanging!==void 0&&n.push(`w:hanging="${e.ind.hanging}"`),t.push(`<w:ind ${n.join(" ")}/>`)}return t.length>0?`<w:pPr>${t.join("")}</w:pPr>`:""}function li(e,t,n,r,i){const s=[];if(s.push(`<w:style w:type="${n}" w:customStyle="1" w:styleId="${e}">`),s.push(`<w:name w:val="${t}"/>`),n==="paragraph"&&s.push('<w:basedOn w:val="Normal"/>'),i){const o=Ed(i);o&&s.push(o)}if(r){const o=bd(r);o&&s.push(o)}return s.push("</w:style>"),s.join("")}const kk=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
51
+ `):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}r.prototype.build=function(a){return this.options.preserveOrder?e(a,this.options):(Array.isArray(a)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(a={[this.options.arrayNodeName]:a}),this.j2x(a,0,[]).val)},r.prototype.j2x=function(a,u,c){let d="",h="";const m=c.join(".");for(let f in a)if(Object.prototype.hasOwnProperty.call(a,f))if(typeof a[f]>"u")this.isAttribute(f)&&(h+="");else if(a[f]===null)this.isAttribute(f)||f===this.options.cdataPropName?h+="":f[0]==="?"?h+=this.indentate(u)+"<"+f+"?"+this.tagEndChar:h+=this.indentate(u)+"<"+f+"/"+this.tagEndChar;else if(a[f]instanceof Date)h+=this.buildTextValNode(a[f],f,"",u);else if(typeof a[f]!="object"){const b=this.isAttribute(f);if(b&&!this.ignoreAttributesFn(b,m))d+=this.buildAttrPairStr(b,""+a[f]);else if(!b)if(f===this.options.textNodeName){let g=this.options.tagValueProcessor(f,""+a[f]);h+=this.replaceEntitiesValue(g)}else h+=this.buildTextValNode(a[f],f,"",u)}else if(Array.isArray(a[f])){const b=a[f].length;let g="",_="";for(let p=0;p<b;p++){const y=a[f][p];if(!(typeof y>"u"))if(y===null)f[0]==="?"?h+=this.indentate(u)+"<"+f+"?"+this.tagEndChar:h+=this.indentate(u)+"<"+f+"/"+this.tagEndChar;else if(typeof y=="object")if(this.options.oneListGroup){const C=this.j2x(y,u+1,c.concat(f));g+=C.val,this.options.attributesGroupName&&y.hasOwnProperty(this.options.attributesGroupName)&&(_+=C.attrStr)}else g+=this.processTextOrObjNode(y,f,u,c);else if(this.options.oneListGroup){let C=this.options.tagValueProcessor(f,y);C=this.replaceEntitiesValue(C),g+=C}else g+=this.buildTextValNode(y,f,"",u)}this.options.oneListGroup&&(g=this.buildObjectNode(g,f,_,u)),h+=g}else if(this.options.attributesGroupName&&f===this.options.attributesGroupName){const b=Object.keys(a[f]),g=b.length;for(let _=0;_<g;_++)d+=this.buildAttrPairStr(b[_],""+a[f][b[_]])}else h+=this.processTextOrObjNode(a[f],f,u,c);return{attrStr:d,val:h}},r.prototype.buildAttrPairStr=function(a,u){return u=this.options.attributeValueProcessor(a,""+u),u=this.replaceEntitiesValue(u),this.options.suppressBooleanAttributes&&u==="true"?" "+a:" "+a+'="'+u+'"'};function i(a,u,c,d){const h=this.j2x(a,c+1,d.concat(u));return a[this.options.textNodeName]!==void 0&&Object.keys(a).length===1?this.buildTextValNode(a[this.options.textNodeName],u,h.attrStr,c):this.buildObjectNode(h.val,u,h.attrStr,c)}r.prototype.buildObjectNode=function(a,u,c,d){if(a==="")return u[0]==="?"?this.indentate(d)+"<"+u+c+"?"+this.tagEndChar:this.indentate(d)+"<"+u+c+this.closeTag(u)+this.tagEndChar;{let h="</"+u+this.tagEndChar,m="";return u[0]==="?"&&(m="?",h=""),(c||c==="")&&a.indexOf("<")===-1?this.indentate(d)+"<"+u+c+m+">"+a+h:this.options.commentPropName!==!1&&u===this.options.commentPropName&&m.length===0?this.indentate(d)+`<!--${a}-->`+this.newLine:this.indentate(d)+"<"+u+c+m+this.tagEndChar+a+this.indentate(d)+h}},r.prototype.closeTag=function(a){let u="";return this.options.unpairedTags.indexOf(a)!==-1?this.options.suppressUnpairedNode||(u="/"):this.options.suppressEmptyNode?u="/":u=`></${a}`,u},r.prototype.buildTextValNode=function(a,u,c,d){if(this.options.cdataPropName!==!1&&u===this.options.cdataPropName)return this.indentate(d)+`<![CDATA[${a}]]>`+this.newLine;if(this.options.commentPropName!==!1&&u===this.options.commentPropName)return this.indentate(d)+`<!--${a}-->`+this.newLine;if(u[0]==="?")return this.indentate(d)+"<"+u+c+"?"+this.tagEndChar;{let h=this.options.tagValueProcessor(u,a);return h=this.replaceEntitiesValue(h),h===""?this.indentate(d)+"<"+u+c+this.closeTag(u)+this.tagEndChar:this.indentate(d)+"<"+u+c+">"+h+"</"+u+this.tagEndChar}},r.prototype.replaceEntitiesValue=function(a){if(a&&a.length>0&&this.options.processEntities)for(let u=0;u<this.options.entities.length;u++){const c=this.options.entities[u];a=a.replace(c.regex,c.val)}return a};function s(a){return this.options.indentBy.repeat(a)}function o(a){return a.startsWith(this.options.attributeNamePrefix)&&a!==this.options.textNodeName?a.substr(this.attrPrefixLen):!1}return Sa=r,Sa}var Ca,yd;function xw(){if(yd)return Ca;yd=1;const e=od(),t=Aw(),n=Cw();return Ca={XMLParser:t,XMLValidator:e,XMLBuilder:n},Ca}var xa=xw();const Nw={ignoreAttributes:!1,attributeNamePrefix:"@_",textNodeName:"#text",trimValues:!1,preserveOrder:!1,isArray:e=>["w:p","w:r","w:t","w:tbl","w:tr","w:tc","w:hyperlink","w:drawing","w:style","w:abstractNum","w:num","w:lvl"].includes(e)},vw={ignoreAttributes:!1,attributeNamePrefix:"@_",textNodeName:"#text",trimValues:!1,preserveOrder:!0},Iw=new xa.XMLParser(vw),Ow={ignoreAttributes:!1,attributeNamePrefix:"@_",textNodeName:"#text",format:!0,suppressEmptyNode:!0};new xa.XMLParser(Nw),new xa.XMLBuilder(Ow);function Lw(e){return Iw.parse(e)}const Td={Heading1:1,Heading2:2,Heading3:3,Heading4:4,Heading5:5,Heading6:6,heading1:1,heading2:2,heading3:3,heading4:4,heading5:5,heading6:6,"Heading 1":1,"Heading 2":2,"Heading 3":3,"Heading 4":4,"Heading 5":5,"Heading 6":6},_d=new Set(["Code","code","SourceCode","HTMLCode"]),wd=new Set(["Quote","quote","BlockQuote","IntenseQuote"]);let kd=new Map;function Pw(e){const t=new Map;if(!e)return t;const n=/Id="([^"]+)"[^>]*Type="[^"]*\/hyperlink"[^>]*Target="([^"]+)"/g;let r;for(;(r=n.exec(e))!==null;)t.set(r[1],r[2]);return t}async function Rw(e,t){const n=await mw(e),r=n.rawParts.get("word/otomate-udm.json");if(r)try{const a=JSON.parse(r),u=n.rawParts.get("word/otomate-css.json");if(u){const c=JSON.parse(u);a.data={...a.data,css:c}}return a.data={...a.data,docx:{rawParts:Object.fromEntries(n.rawParts),styles:n.styles,numbering:n.numbering,relationships:n.relationships,contentTypes:n.contentTypes}},a}catch{}kd=Pw(n.relationships);const i=Lw(n.document),o={type:"root",children:Dw(i)};return o.data={docx:{rawParts:Object.fromEntries(n.rawParts),styles:n.styles,numbering:n.numbering,relationships:n.relationships,contentTypes:n.contentTypes}},n.media.size>0&&(o.data.docx.media=Object.fromEntries([...n.media].map(([a,u])=>[a,Array.from(u)]))),o}function Dw(e){const t=e.find(s=>s["w:document"]);if(!t)return[];const r=(t["w:document"]??[]).find(s=>s["w:body"]);if(!r)return[];const i=r["w:body"]??[];return Mw(i)}function Mw(e){const t=[];let n=[];function r(){n.length>0&&(t.push(n[0].list),n=[])}for(const i of e)if(i["w:p"]!==void 0){const s=i["w:p"]??[],o=i[":@"]??{},a=Bw(s,o,n,r);a&&(r(),t.push(a))}else if(i["w:sdt"]!==void 0){const s=i["w:sdt"]??[],o=Hw(s);if(o.length>0){r();for(const a of o)t.push(a)}}else i["w:tbl"]!==void 0?(r(),t.push($w(i["w:tbl"]??[]))):i["w:sectPr"];return r(),t}function Bw(e,t,n,r,i){var _,p;const s=e.find(y=>y["w:pPr"]!==void 0),o=(s==null?void 0:s["w:pPr"])??[],a=o.find(y=>y["w:numPr"]!==void 0);if(a){const y=a["w:numPr"]??[],C=va(y,"w:numId","w:val")??"0",I=Number(va(y,"w:ilvl","w:val")??0),A={type:"listItem",children:[{type:"paragraph",children:vn(e)}]};if(n.length===0||n[0].numId!==C){r();const S={type:"list",ordered:!1,children:[A]};n.push({numId:C,ilvl:I,list:S,item:A})}else{const S=n[n.length-1];if(I>S.ilvl){const w={type:"list",ordered:!1,children:[A]};S.item.children.push(w),n.push({numId:C,ilvl:I,list:w,item:A})}else if(I<S.ilvl){for(;n.length>1&&n[n.length-1].ilvl>I;)n.pop();n[n.length-1].list.children.push(A),n[n.length-1].item=A}else S.list.children.push(A),S.item=A}return null}const u=va(o,"w:pStyle","w:val");if(u&&_d.has(u))return{type:"codeBlock",value:Fw(e)};if(u&&wd.has(u)){const y=vn(e);return y.length===0?null:{type:"blockquote",children:[{type:"paragraph",children:y}]}}const c=o.find(y=>y["w:ind"]!==void 0),d=(_=c==null?void 0:c[":@"])==null?void 0:_["@_w:left"];if(d&&Number(d)>=720&&!u){const y=vn(e);return y.length===0?null:{type:"blockquote",children:[{type:"paragraph",children:y}]}}const h=u?Td[u]:void 0;if(h){const y=vn(e);return{type:"heading",depth:h,children:y}}const m=vn(e);if(m.length===0)return null;const f={type:"paragraph",children:m};u&&!Td[u]&&!_d.has(u)&&!wd.has(u)&&(f.classes=[u]);const b={},g=o.find(y=>y["w:jc"]!==void 0);return g&&(b.align=(p=g[":@"])==null?void 0:p["@_w:val"]),Object.keys(b).length>0&&(f.data={docx:b}),f}function vn(e){const t=[];for(const n of e)if(n["w:r"]!==void 0){const r=n["w:r"]??[],i=Na(r);if(!i)continue;const s=Ad(r),o={type:"text",value:i};s.length>0&&(o.marks=s);const a=r.find(u=>u["w:rPr"]!==void 0);if(a){const u=Uw(a["w:rPr"]??[]);Object.keys(u).length>0&&(o.data={docx:u})}t.push(o)}else if(n["w:sdt"]!==void 0){const r=n["w:sdt"]??[],i=zw(r);i&&t.push(i)}else if(n["w:hyperlink"]!==void 0){const r=n["w:hyperlink"]??[],i=n[":@"]??{},s=i["@_r:id"]??i["@_w:id"]??"",o=kd.get(s)??`#${s}`;for(const a of r)if(a["w:r"]!==void 0){const u=a["w:r"]??[],c=Na(u);if(!c)continue;const d=Ad(u);d.push({type:"link",attrs:{url:o}}),t.push({type:"text",value:c,marks:d})}}return t}function Na(e){let t="";for(const n of e)if(n["w:t"]!==void 0){const r=n["w:t"];if(Array.isArray(r))for(const i of r)typeof i=="object"&&i["#text"]!==void 0?t+=i["#text"]:typeof i=="string"&&(t+=i);else typeof r=="string"?t+=r:(r==null?void 0:r["#text"])!==void 0&&(t+=r["#text"])}return t||null}function Fw(e){let t="";for(const n of e)if(n["w:r"]!==void 0){const r=Na(n["w:r"]??[]);r&&(t+=r)}return t}function Ad(e){var i,s,o;const t=e.find(a=>a["w:rPr"]!==void 0);if(!t)return[];const n=t["w:rPr"]??[],r=[];for(const a of n){if(a["w:b"]!==void 0&&r.push({type:"strong"}),a["w:i"]!==void 0&&r.push({type:"emphasis"}),a["w:u"]!==void 0){const u=((i=a[":@"])==null?void 0:i["@_w:val"])??"single";r.push({type:"underline",attrs:{style:u}})}if(a["w:strike"]!==void 0&&r.push({type:"strikethrough"}),a["w:dstrike"]!==void 0&&r.push({type:"strikethrough",attrs:{double:!0}}),a["w:vertAlign"]!==void 0){const u=(s=a[":@"])==null?void 0:s["@_w:val"];u==="superscript"&&r.push({type:"superscript"}),u==="subscript"&&r.push({type:"subscript"})}if(a["w:highlight"]!==void 0){const u=(o=a[":@"])==null?void 0:o["@_w:val"];r.push({type:"highlight",attrs:{color:u}})}}return r}function Uw(e){var n,r,i,s,o;const t={};for(const a of e)a["w:rFonts"]!==void 0&&(t.font={ascii:(n=a[":@"])==null?void 0:n["@_w:ascii"],hAnsi:(r=a[":@"])==null?void 0:r["@_w:hAnsi"]}),a["w:sz"]!==void 0&&(t.fontSize=Number((i=a[":@"])==null?void 0:i["@_w:val"])),a["w:color"]!==void 0&&(t.color=(s=a[":@"])==null?void 0:s["@_w:val"]),a["w:rStyle"]!==void 0&&(t.rStyle=(o=a[":@"])==null?void 0:o["@_w:val"]);return t}function Sd(e){var s,o;const t=e.find(a=>a["w:sdtPr"]!==void 0);if(!t)return"field";const n=t["w:sdtPr"]??[],r=n.find(a=>a["w:tag"]!==void 0);if(r){const a=(s=r[":@"])==null?void 0:s["@_w:val"];if(a)return a}const i=n.find(a=>a["w:alias"]!==void 0);if(i){const a=(o=i[":@"])==null?void 0:o["@_w:val"];if(a)return a}return"field"}function Hw(e){return[{type:"paragraph",children:[{type:"text",value:`{{${Sd(e)}}}`}]}]}function zw(e){return{type:"text",value:`{{${Sd(e)}}}`}}function $w(e){var n;const t=[];for(const r of e)if(r["w:tr"]!==void 0){const i=r["w:tr"]??[],s=[];let o=!1;for(const a of i)if(a["w:trPr"]!==void 0&&(a["w:trPr"]??[]).some(c=>c["w:tblHeader"]!==void 0)&&(o=!0),a["w:tc"]!==void 0){const u=a["w:tc"]??[],c=[];let d;for(const m of u){if(m["w:tcPr"]!==void 0){const f=m["w:tcPr"]??[];for(const b of f)if(b["w:gridSpan"]!==void 0){const g=Number((n=b[":@"])==null?void 0:n["@_w:val"]);g>1&&(d=g)}}if(m["w:p"]!==void 0){const f=vn(m["w:p"]??[]);f.length>0&&c.push({type:"paragraph",children:f})}}const h={type:"tableCell",children:c};d&&(h.colspan=d),s.push(h)}t.push({type:"tableRow",isHeader:o||void 0,children:s})}return{type:"table",children:t}}function va(e,t,n){var i;const r=e.find(s=>s[t]!==void 0);if(r)return(i=r[":@"])==null?void 0:i[`@_${n}`]}const Cd={black:"000000",white:"FFFFFF",red:"FF0000",green:"008000",blue:"0000FF",yellow:"FFFF00",gray:"808080",grey:"808080",orange:"FFA500",purple:"800080",navy:"000080",teal:"008080",maroon:"800000",silver:"C0C0C0",olive:"808000",aqua:"00FFFF",fuchsia:"FF00FF",lime:"00FF00"};function fi(e){const t=e.trim().toLowerCase();if(Cd[t])return Cd[t];const n=t.match(/^#([0-9a-f]{3,8})$/);if(n){const i=n[1];if(i.length===3||i.length===4)return i[0]+i[0]+i[1]+i[1]+i[2]+i[2];if(i.length===6)return i;if(i.length===8)return i.slice(0,6)}const r=t.match(/^rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/);if(r)return[r[1],r[2],r[3]].map(i=>Number(i).toString(16).padStart(2,"0")).join("")}function ln(e){const t=e.trim().match(/^(-?[\d.]+)(px|pt|em|rem|cm|mm|in|%)$/);if(!t)return;const n=parseFloat(t[1]);switch(t[2]){case"pt":return Math.round(n*20);case"px":return Math.round(n*.75*20);case"in":return Math.round(n*1440);case"cm":return Math.round(n*567);case"mm":return Math.round(n*56.7);case"em":case"rem":return Math.round(n*12*20);default:return}}function xd(e){const t=e.trim().match(/^(-?[\d.]+)(px|pt|em|rem)$/);if(!t)return;const n=parseFloat(t[1]);switch(t[2]){case"pt":return Math.round(n*2);case"px":return Math.round(n*.75*2);case"em":case"rem":return Math.round(n*12*2);default:return}}function mt(e){const t={};if(e["font-family"]){const n=e["font-family"].replace(/['"]/g,"").split(",")[0].trim();t.rFonts={ascii:n,hAnsi:n}}if(e["font-size"]){const n=xd(e["font-size"]);n&&(t.sz=n)}if(e["font-weight"]){const n=e["font-weight"];(n==="bold"||n==="bolder"||Number(n)>=700)&&(t.b=!0)}if(e["font-style"]&&(e["font-style"]==="italic"||e["font-style"]==="oblique")&&(t.i=!0),e.color){const n=fi(e.color);n&&(t.color=n)}if(e["background-color"]){const n=fi(e["background-color"]);n&&(t.shd=n)}if(e["text-decoration"]){const n=e["text-decoration"];n.includes("underline")&&(t.u="single"),n.includes("line-through")&&(t.strike=!0)}return t}function In(e){const t={};if(e["text-align"]){const i=e["text-align"];(i==="left"||i==="center"||i==="right")&&(t.jc=i),i==="justify"&&(t.jc="both")}const n={};if(e["margin-top"]){const i=ln(e["margin-top"]);i&&(n.before=i)}if(e["margin-bottom"]){const i=ln(e["margin-bottom"]);i&&(n.after=i)}if(e["line-height"]){const i=e["line-height"].match(/^([\d.]+)(px|pt)?$/);if(i){const s=parseFloat(i[1]);i[2]==="pt"?n.line=Math.round(s*20):i[2]==="px"?n.line=Math.round(s*.75*20):n.line=Math.round(s*240)}}Object.keys(n).length>0&&(t.spacing=n);const r={};if(e["margin-left"]){const i=ln(e["margin-left"]);i&&(r.left=i)}if(e["margin-right"]){const i=ln(e["margin-right"]);i&&(r.right=i)}if(e["text-indent"]){const i=ln(e["text-indent"]);i&&(r.firstLine=i)}return Object.keys(r).length>0&&(t.ind=r),t}function Nd(e){const t=[];if(e.rFonts){const n=[];e.rFonts.ascii&&n.push(`w:ascii="${e.rFonts.ascii}"`),e.rFonts.hAnsi&&n.push(`w:hAnsi="${e.rFonts.hAnsi}"`),e.rFonts.cs&&n.push(`w:cs="${e.rFonts.cs}"`),t.push(`<w:rFonts ${n.join(" ")}/>`)}return e.b&&t.push("<w:b/>"),e.i&&t.push("<w:i/>"),e.sz&&t.push(`<w:sz w:val="${e.sz}"/>`),e.color&&t.push(`<w:color w:val="${e.color}"/>`),e.u&&t.push(`<w:u w:val="${e.u}"/>`),e.strike&&t.push("<w:strike/>"),e.shd&&t.push(`<w:shd w:val="clear" w:color="auto" w:fill="${e.shd}"/>`),e.vertAlign&&t.push(`<w:vertAlign w:val="${e.vertAlign}"/>`),t.length>0?`<w:rPr>${t.join("")}</w:rPr>`:""}function vd(e){const t=[];if(e.jc&&t.push(`<w:jc w:val="${e.jc}"/>`),e.spacing){const n=[];e.spacing.before!==void 0&&n.push(`w:before="${e.spacing.before}"`),e.spacing.after!==void 0&&n.push(`w:after="${e.spacing.after}"`),e.spacing.line!==void 0&&n.push(`w:line="${e.spacing.line}"`),t.push(`<w:spacing ${n.join(" ")}/>`)}if(e.ind){const n=[];e.ind.left!==void 0&&n.push(`w:left="${e.ind.left}"`),e.ind.right!==void 0&&n.push(`w:right="${e.ind.right}"`),e.ind.firstLine!==void 0&&n.push(`w:firstLine="${e.ind.firstLine}"`),e.ind.hanging!==void 0&&n.push(`w:hanging="${e.ind.hanging}"`),t.push(`<w:ind ${n.join(" ")}/>`)}return t.length>0?`<w:pPr>${t.join("")}</w:pPr>`:""}function pi(e,t,n,r,i){const s=[];if(s.push(`<w:style w:type="${n}" w:customStyle="1" w:styleId="${e}">`),s.push(`<w:name w:val="${t}"/>`),n==="paragraph"&&s.push('<w:basedOn w:val="Normal"/>'),i){const o=vd(i);o&&s.push(o)}if(r){const o=Nd(r);o&&s.push(o)}return s.push("</w:style>"),s.join("")}const jw=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
52
52
  <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
53
53
  <Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="word/document.xml"/>
54
- </Relationships>`,wk=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
54
+ </Relationships>`,qw=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
55
55
  <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
56
56
  <Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/>
57
57
  <Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering" Target="numbering.xml"/>
58
- </Relationships>`,Ak=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
58
+ </Relationships>`,Yw=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
59
59
  <w:styles xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main">
60
60
  <w:docDefaults>
61
61
  <w:rPrDefault><w:rPr>
@@ -81,7 +81,7 @@
81
81
  <w:pPr><w:outlineLvl w:val="2"/></w:pPr>
82
82
  <w:rPr><w:b/><w:sz w:val="24"/></w:rPr>
83
83
  </w:style>
84
- </w:styles>`,Sk=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
84
+ </w:styles>`,Ww=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
85
85
  <w:numbering xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main">
86
86
  <w:abstractNum w:abstractNumId="0">
87
87
  <w:lvl w:ilvl="0"><w:start w:val="1"/><w:numFmt w:val="bullet"/>
@@ -101,25 +101,25 @@
101
101
  </w:abstractNum>
102
102
  <w:num w:numId="1"><w:abstractNumId w:val="0"/></w:num>
103
103
  <w:num w:numId="2"><w:abstractNumId w:val="1"/></w:num>
104
- </w:numbering>`,Ck='xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main"',xk='xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"',Nk='xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing"';async function Ik(e,t){var f,m;const n=(f=e.data)==null?void 0:f.css,r={...n==null?void 0:n.classRules,...t==null?void 0:t.cssClasses},i=(n==null?void 0:n.elementRules)??{},s={cssClasses:r,cssElements:i,customStyles:[],generatedStyleIds:new Set,nextNumId:3,hyperlinks:new Map,nextRId:100},o=e.children.map(g=>ln(g,s,0)).join(`
105
- `),a=(m=e.data)==null?void 0:m.docx;let u=(a==null?void 0:a.styles)??Ak;if(s.customStyles.length>0){const g=s.customStyles.join(`
104
+ </w:numbering>`,Gw='xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main"',Vw='xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"',Kw='xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing"';async function Xw(e,t){var f,b;const n=(f=e.data)==null?void 0:f.css,r={...n==null?void 0:n.classRules,...t==null?void 0:t.cssClasses},i=(n==null?void 0:n.elementRules)??{},s={cssClasses:r,cssElements:i,customStyles:[],generatedStyleIds:new Set,nextNumId:3,hyperlinks:new Map,nextRId:100},o=e.children.map(g=>cn(g,s,0)).join(`
105
+ `),a=(b=e.data)==null?void 0:b.docx;let u=(a==null?void 0:a.styles)??Yw;if(s.customStyles.length>0){const g=s.customStyles.join(`
106
106
  `);u=u.replace("</w:styles>",`${g}
107
107
  </w:styles>`)}const c=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
108
- <w:document ${Ck} ${xk} ${Nk}>
108
+ <w:document ${Gw} ${Vw} ${Kw}>
109
109
  <w:body>
110
110
  ${o}
111
111
  <w:sectPr><w:pgSz w:w="12240" w:h="15840"/><w:pgMar w:top="1440" w:right="1440" w:bottom="1440" w:left="1440"/></w:sectPr>
112
112
  </w:body>
113
- </w:document>`;let d=(a==null?void 0:a.relationships)??wk;if(s.hyperlinks.size>0){const g=[...s.hyperlinks].map(([_,p])=>`<Relationship Id="${_}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink" Target="${Ut(p)}" TargetMode="External"/>`).join(`
113
+ </w:document>`;let d=(a==null?void 0:a.relationships)??qw;if(s.hyperlinks.size>0){const g=[...s.hyperlinks].map(([_,p])=>`<Relationship Id="${_}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink" Target="${Je(p)}" TargetMode="External"/>`).join(`
114
114
  `);d=d.replace("</Relationships>",` ${g}
115
- </Relationships>`)}const h={document:c,styles:u,numbering:(a==null?void 0:a.numbering)??Sk,relationships:d,contentTypes:(a==null?void 0:a.contentTypes)??void 0,media:new Map,rawParts:new Map},b=wd(e);if(h.rawParts.set("word/otomate-udm.json",JSON.stringify(b)),n&&(Object.keys(n.classRules??{}).length>0||Object.keys(n.elementRules??{}).length>0)&&h.rawParts.set("word/otomate-css.json",JSON.stringify(n)),a!=null&&a.rawParts){const g=a.rawParts;for(const[_,p]of Object.entries(g))h.rawParts.has(_)||h.rawParts.set(_,p)}return h.rawParts.has("_rels/.rels")||h.rawParts.set("_rels/.rels",kk),Q_(h)}function vk(e,t){for(const[r,i]of e.hyperlinks)if(i===t)return r;const n=`rId${e.nextRId++}`;return e.hyperlinks.set(n,t),n}function ln(e,t,n){switch(e.type){case"paragraph":return Lk(e,t);case"heading":return Rk(e,t);case"blockquote":return Pk(e,t);case"list":return Td(e,t,n);case"listItem":return"";case"codeBlock":return Mk(e,t);case"table":return Bk(e,t);case"thematicBreak":return'<w:p><w:pPr><w:pBdr><w:bottom w:val="single" w:sz="6" w:color="auto"/></w:pBdr></w:pPr></w:p>';case"div":case"figure":return Ok(e,t,n);case"html":return`<w:p><w:r><w:t>${Ut(e.value)}</w:t></w:r></w:p>`;default:return""}}function Ok(e,t,n){const r=e.classes;if(!r||r.length===0)return e.children.map(h=>ln(h,t,n)).join(`
116
- `);let i={};for(const h of r)t.cssClasses[h]&&(i={...i,...t.cssClasses[h]});if(Object.keys(i).length===0)return e.children.map(h=>ln(h,t,n)).join(`
117
- `);const s=vn(i),o=ft(i),a=Qt(o),u=i["background-color"]?ci(i["background-color"]):void 0;let c="";if(u&&u!=="auto"&&(c+=`<w:shd w:val="clear" w:color="auto" w:fill="${u}"/>`),s.jc&&(c+=`<w:jc w:val="${s.jc}"/>`),s.ind){const h=[];s.ind.left&&h.push(`w:left="${s.ind.left}"`),s.ind.right&&h.push(`w:right="${s.ind.right}"`),h.length&&(c+=`<w:ind ${h.join(" ")}/>`)}const d={...t,_containerRPr:a,_containerPPr:c};return e.children.map(h=>_a(h,d,n)).join(`
118
- `)}function _a(e,t,n){const r=t,i=r._containerRPr??"",s=r._containerPPr??"",o=yd(e,t),a=i+o;function u(d){return s?d?d.replace("</w:pPr>",`${s}</w:pPr>`):`<w:pPr>${s}</w:pPr>`:d}if(e.type==="paragraph"){const d=e,h=u(_d(d,t)),b=d.children.map(f=>cn(f,t,a)).join("");return`<w:p>${h}${b}</w:p>`}if(e.type==="heading"){const d=e,h=`h${d.depth}`,b=a,f=d.children.map(p=>cn(p,t,b)).join("");let m="";t.cssElements[h]?(ka(h,t),m=`<w:pStyle w:val="_el_${h}"/>`):m=`<w:pStyle w:val="Heading${d.depth}"/>`;const g=d.classes;if(g!=null&&g.length){for(const p of g)if(t.cssClasses[p]&&!t.generatedStyleIds.has(p)){t.generatedStyleIds.add(p);const y=ft(t.cssClasses[p]),C=vn(t.cssClasses[p]);t.customStyles.push(li(p,p,"paragraph",y,C))}}return`<w:p>${u(`<w:pPr>${m}</w:pPr>`)}${f}</w:p>`}if(e.type==="list"){const d=e,h=d.ordered?"2":"1",b=[];for(const f of d.children){if(f.type!=="listItem")continue;const m=f,g=m.classes;let _=a;if(g)for(const p of g)t.cssClasses[p]&&(_+=Qt(ft(t.cssClasses[p])));t.cssElements.li&&(_+=Qt(ft(t.cssElements.li)));for(const p of m.children)if(p.type==="paragraph"){const y=p.children.map(O=>cn(O,t,_)).join("");let C=`<w:pPr><w:numPr><w:ilvl w:val="${n}"/><w:numId w:val="${h}"/></w:numPr></w:pPr>`;C=u(C),b.push(`<w:p>${C}${y}</w:p>`)}else p.type==="list"?b.push(_a(p,t,n+1)):b.push(_a(p,t,n))}return b.join(`
119
- `)}const c={...t};return delete c._containerRPr,delete c._containerPPr,ln(e,c,n)}function Lk(e,t){const n=_d(e,t),r=yd(e,t),i=e.children.map(s=>cn(s,t,r)).join("");return`<w:p>${n}${i}</w:p>`}function Rk(e,t){const n=`h${e.depth}`,r=t.cssElements[n]?Qt(ft(t.cssElements[n])):"",i=e.children.map(s=>cn(s,t,r)).join("");return t.cssElements[n]?(ka(n,t),`<w:p><w:pPr><w:pStyle w:val="_el_${n}"/></w:pPr>${i}</w:p>`):`<w:p><w:pPr><w:pStyle w:val="Heading${e.depth}"/></w:pPr>${i}</w:p>`}function yd(e,t){const n=kd(e.type,e),r=e.classes;let i={};if(n&&t.cssElements[n]&&(i={...i,...t.cssElements[n]}),r)for(const s of r)t.cssClasses[s]&&(i={...i,...t.cssClasses[s]});return Object.keys(i).length===0?"":Qt(ft(i))}function Qt(e){const t=[];if(e.rFonts){const n=[];e.rFonts.ascii&&n.push(`w:ascii="${e.rFonts.ascii}"`),e.rFonts.hAnsi&&n.push(`w:hAnsi="${e.rFonts.hAnsi}"`),t.push(`<w:rFonts ${n.join(" ")}/>`)}return e.b&&t.push("<w:b/>"),e.i&&t.push("<w:i/>"),e.sz&&t.push(`<w:sz w:val="${e.sz}"/>`),e.color&&t.push(`<w:color w:val="${e.color}"/>`),e.u&&t.push(`<w:u w:val="${e.u}"/>`),e.strike&&t.push("<w:strike/>"),e.shd&&t.push(`<w:shd w:val="clear" w:color="auto" w:fill="${e.shd}"/>`),t.join("")}function Pk(e,t){const n=t.cssElements.blockquote??{},r=Object.keys(n).length>0?Qt(ft(n)):"",i=Dk(n);return e.children.map(s=>{if(s.type==="paragraph"){const o=s.children.map(a=>cn(a,t,r)).join("");return`<w:p>${i}${o}</w:p>`}return ln(s,t,0)}).join(`
120
- `)}function Dk(e){const t=[];t.push(`<w:pBdr><w:left w:val="single" w:sz="18" w:space="4" w:color="${e["border-color"]?ci(e["border-color"]):"AAAAAA"}"/></w:pBdr>`);const n=e["margin-left"]?un(e["margin-left"]):void 0;if(t.push(`<w:ind w:left="${n??720}"/>`),e["background-color"]){const i=ci(e["background-color"]);i&&t.push(`<w:shd w:val="clear" w:color="auto" w:fill="${i}"/>`)}const r=vn(e);if(r.spacing){const i=[];r.spacing.before&&i.push(`w:before="${r.spacing.before}"`),r.spacing.after&&i.push(`w:after="${r.spacing.after}"`),i.length&&t.push(`<w:spacing ${i.join(" ")}/>`)}return`<w:pPr>${t.join("")}</w:pPr>`}function Td(e,t,n){const r=e.ordered?"2":"1",i=t.cssElements.li?Qt(ft(t.cssElements.li)):"",s=[];for(const o of e.children){if(o.type!=="listItem")continue;const a=o;for(const u of a.children)if(u.type==="paragraph"){const c=u.children.map(d=>cn(d,t,i)).join("");s.push(`<w:p><w:pPr><w:numPr><w:ilvl w:val="${n}"/><w:numId w:val="${r}"/></w:numPr></w:pPr>${c}</w:p>`)}else u.type==="list"?s.push(Td(u,t,n+1)):s.push(ln(u,t,n))}return s.join(`
121
- `)}function Mk(e,t){const n=(t==null?void 0:t.cssElements.pre)??{},r=n["background-color"]?ci(n["background-color"]):void 0,i=Object.keys(n).length>0?Qt(ft(n)):"";let s='<w:pPr><w:pStyle w:val="Code"/>';return r&&(s+=`<w:shd w:val="clear" w:color="auto" w:fill="${r}"/>`),s+="</w:pPr>",e.value.split(`
122
- `).map(a=>`<w:p>${s}<w:r><w:rPr><w:rFonts w:ascii="Courier New" w:hAnsi="Courier New"/>${i}</w:rPr><w:t xml:space="preserve">${Ut(a)}</w:t></w:r></w:p>`).join(`
123
- `)}function Bk(e,t){return`<w:tbl><w:tblPr><w:tblW w:w="0" w:type="auto"/><w:tblBorders><w:top w:val="single" w:sz="4" w:color="auto"/><w:left w:val="single" w:sz="4" w:color="auto"/><w:bottom w:val="single" w:sz="4" w:color="auto"/><w:right w:val="single" w:sz="4" w:color="auto"/><w:insideH w:val="single" w:sz="4" w:color="auto"/><w:insideV w:val="single" w:sz="4" w:color="auto"/></w:tblBorders></w:tblPr>${e.children.map(r=>{if(r.type!=="tableRow")return"";const i=r,s=i.isHeader?"<w:trPr><w:tblHeader/></w:trPr>":"",o=i.children.map(a=>{if(a.type!=="tableCell")return"";const u=a;let c="<w:tcPr>";u.colspan&&u.colspan>1&&(c+=`<w:gridSpan w:val="${u.colspan}"/>`),c+="</w:tcPr>";const d=u.children.length>0?u.children.map(h=>ln(h,t,0)).join(""):"<w:p/>";return`<w:tc>${c}${d}</w:tc>`}).join("");return`<w:tr>${s}${o}</w:tr>`}).join(`
124
- `)}</w:tbl>`}function cn(e,t,n=""){if(e.type==="text")return Fk(e,t,n);if(e.type==="break")return"<w:r><w:br/></w:r>";if(e.type==="inlineCode")return`<w:r><w:rPr><w:rFonts w:ascii="Courier New" w:hAnsi="Courier New"/>${n}</w:rPr><w:t>${Ut(e.value)}</w:t></w:r>`;if(e.type==="image"){const r=e;return`<w:r><w:t>[image: ${Ut(r.alt??r.url)}]</w:t></w:r>`}return""}function Fk(e,t,n=""){var c,d,h,b,f,m;const r=(c=e.marks)==null?void 0:c.find(g=>g.type==="link"),i=((d=e.marks)==null?void 0:d.filter(g=>g.type!=="link"))??[],s=[];if(n){const g=n.match(/<w:[^/]*\/>/g)??[];s.push(...g)}for(const g of i)switch(g.type){case"strong":s.push("<w:b/>");break;case"emphasis":s.push("<w:i/>");break;case"underline":s.push(`<w:u w:val="${((h=g.attrs)==null?void 0:h.style)??"single"}"/>`);break;case"strikethrough":s.push((b=g.attrs)!=null&&b.double?"<w:dstrike/>":"<w:strike/>");break;case"superscript":s.push('<w:vertAlign w:val="superscript"/>');break;case"subscript":s.push('<w:vertAlign w:val="subscript"/>');break;case"highlight":s.push(`<w:highlight w:val="${((f=g.attrs)==null?void 0:f.color)??"yellow"}"/>`);break}const o=new Set,a=[];for(const g of s)o.has(g)||(o.add(g),a.push(g));const u=a.length>0?`<w:rPr>${a.join("")}</w:rPr>`:"";if(r){const g=String(((m=r.attrs)==null?void 0:m.url)??"");return`<w:hyperlink r:id="${vk(t,g)}"><w:r>${u}<w:t xml:space="preserve">${Ut(e.value)}</w:t></w:r></w:hyperlink>`}return`<w:r>${u}<w:t xml:space="preserve">${Ut(e.value)}</w:t></w:r>`}function _d(e,t){var o;const n=[],r=e.classes;if(r&&r.length>0){const a=r[0];n.push(`<w:pStyle w:val="${Ut(a)}"/>`);for(const u of r)if(t.cssClasses[u]&&!t.generatedStyleIds.has(u)){t.generatedStyleIds.add(u);const c=t.cssClasses[u],d=ft(c),h=vn(c);t.customStyles.push(li(u,u,"paragraph",d,h))}}const i=(o=e.data)==null?void 0:o.docx;if(i&&(i.align&&n.push(`<w:jc w:val="${i.align}"/>`),i.spacing)){const a=i.spacing,u=[];a.before&&u.push(`w:before="${a.before}"`),a.after&&u.push(`w:after="${a.after}"`),a.line&&u.push(`w:line="${a.line}"`),u.length&&n.push(`<w:spacing ${u.join(" ")}/>`)}const s=kd(e.type,e);return s&&(ka(s,t),(!r||r.length===0)&&n.unshift(`<w:pStyle w:val="_el_${Ut(s)}"/>`)),n.length>0?`<w:pPr>${n.join("")}</w:pPr>`:""}function kd(e,t){switch(e){case"paragraph":return"p";case"heading":return`h${t.depth}`;case"blockquote":return"blockquote";case"list":return t.ordered?"ol":"ul";case"listItem":return"li";case"table":return"table";case"tableRow":return"tr";case"tableCell":return"td";case"codeBlock":return"pre";default:return null}}function ka(e,t){const n=`_el_${e}`;if(t.generatedStyleIds.has(n))return;const r=t.cssElements[e];if(!r)return;t.generatedStyleIds.add(n);const i=ft(r),s=vn(r),o=e.match(/^h[1-6]$/)?`Heading${e[1]}`:void 0;let a=li(n,e,"paragraph",i,s);o&&(a=a.replace('<w:basedOn w:val="Normal"/>',`<w:basedOn w:val="${o}"/>`)),t.customStyles.push(a)}function wd(e){const t={};for(const[n,r]of Object.entries(e))if(!(n==="position"||n==="id")){if(n==="data"){const i=r,s={};i.css&&(s.css=i.css),i.html&&(s.html=i.html),Object.keys(s).length>0&&(t.data=s);continue}n==="children"&&Array.isArray(r)?t.children=r.map(wd):t[n]=r}return t}function ci(e){return ui(e)??"auto"}function Ut(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}le.blockquote=Id,le.buildStyleElement=li,le.code=Yd,le.codeBlock=Ld,le.collectNodes=Qd,le.cssToParaProps=vn,le.cssToRunProps=ft,le.diff=_h,le.diffText=yi,le.div=Bd,le.emphasis=$d,le.hashNode=gi,le.heading=Nd,le.highlight=Gd,le.image=Hd,le.invalidateHash=nh,le.isLiteral=On,le.isParent=Ae,le.isText=Zt,le.lineBreak=Ud,le.link=Wd,le.list=vd,le.listItem=Od,le.nodeAtPath=Zd,le.nodeCount=pi,le.paraPropsToXml=Ed,le.paragraph=xd,le.parseColor=ui,le.parseCssClasses=T2,le.parseCssRules=Ks,le.parseLengthHalfPts=gd,le.parseLengthTwips=un,le.pathTo=dn,le.readDocx=mk,le.readHtml=k2,le.renderDiffHtml=Y_,le.root=Cd,le.runPropsToXml=bd,le.strikethrough=jd,le.strong=zd,le.table=Rd,le.tableCell=Dd,le.tableRow=Pd,le.text=Fd,le.thematicBreak=Md,le.underline=qd,le.visit=fi,le.withClasses=Vd,le.withData=Kd,le.withId=Xd,le.writeDocx=Ik,le.writeHtml=Bt,Object.defineProperty(le,Symbol.toStringTag,{value:"Module"})}));
115
+ </Relationships>`)}const h={document:c,styles:u,numbering:(a==null?void 0:a.numbering)??Ww,relationships:d,contentTypes:(a==null?void 0:a.contentTypes)??void 0,media:new Map,rawParts:new Map},m=Dd(e);if(h.rawParts.set("word/otomate-udm.json",JSON.stringify(m)),n&&(Object.keys(n.classRules??{}).length>0||Object.keys(n.elementRules??{}).length>0)&&h.rawParts.set("word/otomate-css.json",JSON.stringify(n)),a!=null&&a.rawParts){const g=a.rawParts;for(const[_,p]of Object.entries(g))h.rawParts.has(_)||h.rawParts.set(_,p)}return h.rawParts.has("_rels/.rels")||h.rawParts.set("_rels/.rels",jw),gw(h)}function Qw(e,t){for(const[r,i]of e.hyperlinks)if(i===t)return r;const n=`rId${e.nextRId++}`;return e.hyperlinks.set(n,t),n}function cn(e,t,n){switch(e.type){case"paragraph":return Jw(e,t);case"heading":return ek(e,t);case"blockquote":return tk(e,t);case"list":return Ld(e,t,n);case"listItem":return"";case"codeBlock":return rk(e,t);case"table":return ik(e,t);case"thematicBreak":return'<w:p><w:pPr><w:pBdr><w:bottom w:val="single" w:sz="6" w:color="auto"/></w:pBdr></w:pPr></w:p>';case"div":case"figure":return Zw(e,t,n);case"html":return`<w:p><w:r><w:t>${Je(e.value)}</w:t></w:r></w:p>`;default:return""}}function Zw(e,t,n){const r=e.classes;if(!r||r.length===0)return e.children.map(h=>cn(h,t,n)).join(`
116
+ `);let i={};for(const h of r)t.cssClasses[h]&&(i={...i,...t.cssClasses[h]});if(Object.keys(i).length===0)return e.children.map(h=>cn(h,t,n)).join(`
117
+ `);const s=In(i),o=mt(i),a=Zt(o),u=i["background-color"]?gi(i["background-color"]):void 0;let c="";if(u&&u!=="auto"&&(c+=`<w:shd w:val="clear" w:color="auto" w:fill="${u}"/>`),s.jc&&(c+=`<w:jc w:val="${s.jc}"/>`),s.ind){const h=[];s.ind.left&&h.push(`w:left="${s.ind.left}"`),s.ind.right&&h.push(`w:right="${s.ind.right}"`),h.length&&(c+=`<w:ind ${h.join(" ")}/>`)}const d={...t,_containerRPr:a,_containerPPr:c};return e.children.map(h=>Ia(h,d,n)).join(`
118
+ `)}function Ia(e,t,n){const r=t,i=r._containerRPr??"",s=r._containerPPr??"",o=Od(e,t),a=i+o;function u(d){return s?d?d.replace("</w:pPr>",`${s}</w:pPr>`):`<w:pPr>${s}</w:pPr>`:d}if(e.type==="paragraph"){const d=e,h=u(Pd(d,t)),m=d.children.map(f=>Jt(f,t,a)).join("");return`<w:p>${h}${m}</w:p>`}if(e.type==="heading"){const d=e,h=`h${d.depth}`,m=a,f=d.children.map(p=>Jt(p,t,m)).join("");let b="";t.cssElements[h]?(mi(h,t),b=`<w:pStyle w:val="_el_${h}"/>`):b=`<w:pStyle w:val="Heading${d.depth}"/>`;const g=d.classes;if(g!=null&&g.length){for(const p of g)if(t.cssClasses[p]&&!t.generatedStyleIds.has(p)){t.generatedStyleIds.add(p);const y=mt(t.cssClasses[p]),C=In(t.cssClasses[p]);t.customStyles.push(pi(p,p,"paragraph",y,C))}}return`<w:p>${u(`<w:pPr>${b}</w:pPr>`)}${f}</w:p>`}if(e.type==="list"){const d=e,h=d.ordered?"2":"1",m=[];for(const f of d.children){if(f.type!=="listItem")continue;const b=f,g=b.classes;let _=a;if(g)for(const p of g)t.cssClasses[p]&&(_+=Zt(mt(t.cssClasses[p])));t.cssElements.li&&(_+=Zt(mt(t.cssElements.li)));for(const p of b.children)if(p.type==="paragraph"){const y=p.children.map(I=>Jt(I,t,_)).join("");let C=`<w:pPr><w:numPr><w:ilvl w:val="${n}"/><w:numId w:val="${h}"/></w:numPr></w:pPr>`;C=u(C),m.push(`<w:p>${C}${y}</w:p>`)}else p.type==="list"?m.push(Ia(p,t,n+1)):m.push(Ia(p,t,n))}return m.join(`
119
+ `)}const c={...t};return delete c._containerRPr,delete c._containerPPr,cn(e,c,n)}function Jw(e,t){const n=Pd(e,t),r=Od(e,t);if(t.diff&&t.nodePathKeys){const s=t.nodePathKeys.get(e);if(s!==void 0&&t.diff.insertedPaths.has(s))return Id(e,n,r,t)}const i=e.children.map(s=>Jt(s,t,r)).join("");return`<w:p>${n}${i}</w:p>`}function ek(e,t){const n=`h${e.depth}`,r=t.cssElements[n]?Zt(mt(t.cssElements[n])):"";if(t.diff&&t.nodePathKeys){const s=t.nodePathKeys.get(e);if(s!==void 0&&t.diff.insertedPaths.has(s)){t.cssElements[n]&&mi(n,t);const o=t.cssElements[n]?`<w:pPr><w:pStyle w:val="_el_${n}"/></w:pPr>`:`<w:pPr><w:pStyle w:val="Heading${e.depth}"/></w:pPr>`;return Id(e,o,r,t)}}const i=e.children.map(s=>Jt(s,t,r)).join("");return t.cssElements[n]?(mi(n,t),`<w:p><w:pPr><w:pStyle w:val="_el_${n}"/></w:pPr>${i}</w:p>`):`<w:p><w:pPr><w:pStyle w:val="Heading${e.depth}"/></w:pPr>${i}</w:p>`}function Id(e,t,n,r){const i=r.diff,s=Je(i.author),o=i.date,u=`<w:rPr><w:ins w:id="${i.revId.value++}" w:author="${s}" w:date="${o}"/></w:rPr>`,c=t?t.replace("</w:pPr>",`${u}</w:pPr>`):`<w:pPr>${u}</w:pPr>`,d=e.children.map(h=>{const m=Jt(h,r,n);return m?`<w:ins w:id="${i.revId.value++}" w:author="${s}" w:date="${o}">${m}</w:ins>`:""}).join("");return`<w:p>${c}${d}</w:p>`}function Od(e,t){const n=Rd(e.type,e),r=e.classes;let i={};if(n&&t.cssElements[n]&&(i={...i,...t.cssElements[n]}),r)for(const s of r)t.cssClasses[s]&&(i={...i,...t.cssClasses[s]});return Object.keys(i).length===0?"":Zt(mt(i))}function Zt(e){const t=[];if(e.rFonts){const n=[];e.rFonts.ascii&&n.push(`w:ascii="${e.rFonts.ascii}"`),e.rFonts.hAnsi&&n.push(`w:hAnsi="${e.rFonts.hAnsi}"`),t.push(`<w:rFonts ${n.join(" ")}/>`)}return e.b&&t.push("<w:b/>"),e.i&&t.push("<w:i/>"),e.sz&&t.push(`<w:sz w:val="${e.sz}"/>`),e.color&&t.push(`<w:color w:val="${e.color}"/>`),e.u&&t.push(`<w:u w:val="${e.u}"/>`),e.strike&&t.push("<w:strike/>"),e.shd&&t.push(`<w:shd w:val="clear" w:color="auto" w:fill="${e.shd}"/>`),t.join("")}function tk(e,t){const n=t.cssElements.blockquote??{},r=Object.keys(n).length>0?Zt(mt(n)):"",i=nk(n);return e.children.map(s=>{if(s.type==="paragraph"){const o=s.children.map(a=>Jt(a,t,r)).join("");return`<w:p>${i}${o}</w:p>`}return cn(s,t,0)}).join(`
120
+ `)}function nk(e){const t=[];t.push(`<w:pBdr><w:left w:val="single" w:sz="18" w:space="4" w:color="${e["border-color"]?gi(e["border-color"]):"AAAAAA"}"/></w:pBdr>`);const n=e["margin-left"]?ln(e["margin-left"]):void 0;if(t.push(`<w:ind w:left="${n??720}"/>`),e["background-color"]){const i=gi(e["background-color"]);i&&t.push(`<w:shd w:val="clear" w:color="auto" w:fill="${i}"/>`)}const r=In(e);if(r.spacing){const i=[];r.spacing.before&&i.push(`w:before="${r.spacing.before}"`),r.spacing.after&&i.push(`w:after="${r.spacing.after}"`),i.length&&t.push(`<w:spacing ${i.join(" ")}/>`)}return`<w:pPr>${t.join("")}</w:pPr>`}function Ld(e,t,n){const r=e.ordered?"2":"1",i=t.cssElements.li?Zt(mt(t.cssElements.li)):"",s=[];for(const o of e.children){if(o.type!=="listItem")continue;const a=o;for(const u of a.children)if(u.type==="paragraph"){const c=u.children.map(d=>Jt(d,t,i)).join("");s.push(`<w:p><w:pPr><w:numPr><w:ilvl w:val="${n}"/><w:numId w:val="${r}"/></w:numPr></w:pPr>${c}</w:p>`)}else u.type==="list"?s.push(Ld(u,t,n+1)):s.push(cn(u,t,n))}return s.join(`
121
+ `)}function rk(e,t){const n=(t==null?void 0:t.cssElements.pre)??{},r=n["background-color"]?gi(n["background-color"]):void 0,i=Object.keys(n).length>0?Zt(mt(n)):"";let s='<w:pPr><w:pStyle w:val="Code"/>';return r&&(s+=`<w:shd w:val="clear" w:color="auto" w:fill="${r}"/>`),s+="</w:pPr>",e.value.split(`
122
+ `).map(a=>`<w:p>${s}<w:r><w:rPr><w:rFonts w:ascii="Courier New" w:hAnsi="Courier New"/>${i}</w:rPr><w:t xml:space="preserve">${Je(a)}</w:t></w:r></w:p>`).join(`
123
+ `)}function ik(e,t){return`<w:tbl><w:tblPr><w:tblW w:w="0" w:type="auto"/><w:tblBorders><w:top w:val="single" w:sz="4" w:color="auto"/><w:left w:val="single" w:sz="4" w:color="auto"/><w:bottom w:val="single" w:sz="4" w:color="auto"/><w:right w:val="single" w:sz="4" w:color="auto"/><w:insideH w:val="single" w:sz="4" w:color="auto"/><w:insideV w:val="single" w:sz="4" w:color="auto"/></w:tblBorders></w:tblPr>${e.children.map(r=>{if(r.type!=="tableRow")return"";const i=r,s=i.isHeader?"<w:trPr><w:tblHeader/></w:trPr>":"",o=i.children.map(a=>{if(a.type!=="tableCell")return"";const u=a;let c="<w:tcPr>";u.colspan&&u.colspan>1&&(c+=`<w:gridSpan w:val="${u.colspan}"/>`),c+="</w:tcPr>";const d=u.children.length>0?u.children.map(h=>cn(h,t,0)).join(""):"<w:p/>";return`<w:tc>${c}${d}</w:tc>`}).join("");return`<w:tr>${s}${o}</w:tr>`}).join(`
124
+ `)}</w:tbl>`}function Jt(e,t,n=""){if(e.type==="text")return sk(e,t,n);if(e.type==="break")return"<w:r><w:br/></w:r>";if(e.type==="inlineCode")return`<w:r><w:rPr><w:rFonts w:ascii="Courier New" w:hAnsi="Courier New"/>${n}</w:rPr><w:t>${Je(e.value)}</w:t></w:r>`;if(e.type==="image"){const r=e;return`<w:r><w:t>[image: ${Je(r.alt??r.url)}]</w:t></w:r>`}return""}function sk(e,t,n=""){var c,d,h,m,f,b;const r=(c=e.marks)==null?void 0:c.find(g=>g.type==="link"),i=((d=e.marks)==null?void 0:d.filter(g=>g.type!=="link"))??[],s=[];if(n){const g=n.match(/<w:[^/]*\/>/g)??[];s.push(...g)}for(const g of i)switch(g.type){case"strong":s.push("<w:b/>");break;case"emphasis":s.push("<w:i/>");break;case"underline":s.push(`<w:u w:val="${((h=g.attrs)==null?void 0:h.style)??"single"}"/>`);break;case"strikethrough":s.push((m=g.attrs)!=null&&m.double?"<w:dstrike/>":"<w:strike/>");break;case"superscript":s.push('<w:vertAlign w:val="superscript"/>');break;case"subscript":s.push('<w:vertAlign w:val="subscript"/>');break;case"highlight":s.push(`<w:highlight w:val="${((f=g.attrs)==null?void 0:f.color)??"yellow"}"/>`);break}const o=new Set,a=[];for(const g of s)o.has(g)||(o.add(g),a.push(g));const u=a.length>0?`<w:rPr>${a.join("")}</w:rPr>`:"";if(t.diff&&t.nodePathKeys&&!r){const g=t.nodePathKeys.get(e);if(g!==void 0){const _=t.diff,p=Je(_.author),y=_.date;if(_.insertedPaths.has(g))return`<w:ins w:id="${_.revId.value++}" w:author="${p}" w:date="${y}"><w:r>${u}<w:t xml:space="preserve">${Je(e.value)}</w:t></w:r></w:ins>`;if(_.textChangePaths.has(g))return _.textChangePaths.get(g).changes.map(I=>{if(!I.value)return"";switch(I.type){case"equal":return`<w:r>${u}<w:t xml:space="preserve">${Je(I.value)}</w:t></w:r>`;case"insert":return`<w:ins w:id="${_.revId.value++}" w:author="${p}" w:date="${y}"><w:r>${u}<w:t xml:space="preserve">${Je(I.value)}</w:t></w:r></w:ins>`;case"delete":return`<w:del w:id="${_.revId.value++}" w:author="${p}" w:date="${y}"><w:r>${u}<w:delText xml:space="preserve">${Je(I.value)}</w:delText></w:r></w:del>`}}).join("")}}if(r){const g=String(((b=r.attrs)==null?void 0:b.url)??"");return`<w:hyperlink r:id="${Qw(t,g)}"><w:r>${u}<w:t xml:space="preserve">${Je(e.value)}</w:t></w:r></w:hyperlink>`}return`<w:r>${u}<w:t xml:space="preserve">${Je(e.value)}</w:t></w:r>`}function Pd(e,t){var o;const n=[],r=e.classes;if(r&&r.length>0){const a=r[0];n.push(`<w:pStyle w:val="${Je(a)}"/>`);for(const u of r)if(t.cssClasses[u]&&!t.generatedStyleIds.has(u)){t.generatedStyleIds.add(u);const c=t.cssClasses[u],d=mt(c),h=In(c);t.customStyles.push(pi(u,u,"paragraph",d,h))}}const i=(o=e.data)==null?void 0:o.docx;if(i&&(i.align&&n.push(`<w:jc w:val="${i.align}"/>`),i.spacing)){const a=i.spacing,u=[];a.before&&u.push(`w:before="${a.before}"`),a.after&&u.push(`w:after="${a.after}"`),a.line&&u.push(`w:line="${a.line}"`),u.length&&n.push(`<w:spacing ${u.join(" ")}/>`)}const s=Rd(e.type,e);return s&&(mi(s,t),(!r||r.length===0)&&n.unshift(`<w:pStyle w:val="_el_${Je(s)}"/>`)),n.length>0?`<w:pPr>${n.join("")}</w:pPr>`:""}function Rd(e,t){switch(e){case"paragraph":return"p";case"heading":return`h${t.depth}`;case"blockquote":return"blockquote";case"list":return t.ordered?"ol":"ul";case"listItem":return"li";case"table":return"table";case"tableRow":return"tr";case"tableCell":return"td";case"codeBlock":return"pre";default:return null}}function mi(e,t){const n=`_el_${e}`;if(t.generatedStyleIds.has(n))return;const r=t.cssElements[e];if(!r)return;t.generatedStyleIds.add(n);const i=mt(r),s=In(r),o=e.match(/^h[1-6]$/)?`Heading${e[1]}`:void 0;let a=pi(n,e,"paragraph",i,s);o&&(a=a.replace('<w:basedOn w:val="Normal"/>',`<w:basedOn w:val="${o}"/>`)),t.customStyles.push(a)}function Dd(e){const t={};for(const[n,r]of Object.entries(e))if(!(n==="position"||n==="id")){if(n==="data"){const i=r,s={};i.css&&(s.css=i.css),i.html&&(s.html=i.html),Object.keys(s).length>0&&(t.data=s);continue}n==="children"&&Array.isArray(r)?t.children=r.map(Dd):t[n]=r}return t}function gi(e){return fi(e)??"auto"}function Je(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}const On=/\{\{([^}]+)\}\}/g;function bi(e){return On.lastIndex=0,On.test(e)}function Md(e,t){const n=e.trim();return n.startsWith("#each ")?{kind:"open-each",path:n.slice(6).trim(),raw:t}:n==="/each"?{kind:"close-each",raw:t}:n.startsWith("#if ")?{kind:"open-if",path:n.slice(4).trim(),raw:t}:n==="else"?{kind:"else",raw:t}:n==="/if"?{kind:"close-if",raw:t}:n.startsWith("@")?{kind:"rich",path:n.slice(1).trim(),raw:t}:{kind:"value",path:n,raw:t}}function Bd(e){const t=[];On.lastIndex=0;let n;for(;(n=On.exec(e))!==null;)t.push(Md(n[1],n[0]));return t}function Oa(e){const t=[];On.lastIndex=0;let n=0,r;for(;(r=On.exec(e))!==null;){r.index>n&&t.push({text:e.slice(n,r.index)});const i=Md(r[1],r[0]);t.push({text:r[0],token:i}),n=r.index+r[0].length}return n<e.length&&t.push({text:e.slice(n)}),t}function cr(e){return JSON.parse(JSON.stringify(e))}function Fd(e){const t=cr(e);return Ud(t),t}function Ud(e){if(Te(e)){ak(e);for(const t of e.children)Ud(t)}}function ak(e){const t=e.children;let n=0;for(;n<t.length;){if(!dt(t[n])){n++;continue}let r=n+1;for(;r<t.length&&dt(t[r]);)r++;const i=t.slice(n,r);if(i.length===1&&!bi(i[0].value)){n=r;continue}const s=i.map(a=>a.value).join("");if(!bi(s)){n=r;continue}const o=ok(s,i);t.splice(n,i.length,...o),n+=o.length}}function ok(e,t){const n=uk(t),r=/\{\{[^}]+\}\}/g,i=[];let s=0,o;for(;(o=r.exec(e))!==null;)o.index>s&&i.push({start:s,end:o.index,isPlaceholder:!1}),i.push({start:o.index,end:o.index+o[0].length,isPlaceholder:!0}),s=o.index+o[0].length;return s<e.length&&i.push({start:s,end:e.length,isPlaceholder:!1}),i.map(({start:a,end:u,isPlaceholder:c})=>{const d=e.slice(a,u),h=lk(n,a),m={type:"text",value:d};return h&&h.length>0&&(m.marks=h),m})}function uk(e){const t=[];let n=0;for(const r of e)t.push({start:n,end:n+r.value.length,marks:r.marks}),n+=r.value.length;return t}function lk(e,t){for(const n of e)if(t>=n.start&&t<n.end)return n.marks?[...n.marks]:void 0}function ck(e,t){const n=t.split(".");let r=e;for(const i of n){if(r==null||typeof r!="object")return;r=r[i]}return r}function Ln(e,t){if(e===".")return t[0];for(const n of t){const r=ck(n,e);if(r!==void 0)return r}}function Hd(e){return e==null?"":typeof e=="string"?e:typeof e=="number"||typeof e=="boolean"?String(e):JSON.stringify(e)}function zd(e){return Array.isArray(e)?e.length>0:!!e}function Pn(e,t,n){if(!Te(e))return;const r=e.children;let i=0;for(;i<r.length;){const s=r[i];if(dt(s)&&bi(s.value)&&Oa(s.value).some(u=>u.token&&u.token.kind==="value")){const u=dk(s,t,n);r.splice(i,1,...u),i+=u.length;continue}Pn(s,t,n),i++}}function dk(e,t,n){const r=Oa(e.value),i=[];for(const s of r){if(!s.token||s.token.kind!=="value"){s.text&&i.push(Ei(s.text,e.marks));continue}const o=Ln(s.token.path,t);if(o===void 0){switch(n.missingKey){case"error":throw new Error(`inject: missing key "${s.token.path}"`);case"keep":i.push(Ei(s.token.raw,e.marks));break}continue}const a=Hd(o);a&&i.push(Ei(a,e.marks))}return i.length>0?i:[Ei("",e.marks)]}function Ei(e,t){const n={type:"text",value:e};return t&&t.length>0&&(n.marks=[...t]),n}function La(e,t,n){Te(e)&&Rn(e,t,n)}function Rn(e,t,n){const r=e.children;let i=0;for(;i<r.length;){const s=r[i],o=yi(s);if(!o){Te(s)&&(s.type==="table"?hk(s,t,n):Rn(s,t,n)),i++;continue}if(o.kind==="rich"){const a=Ln(o.path,t);if(a&&Array.isArray(a)){const u=cr(a);for(const c of u)La(c,t,n),Pn(c,t,n);r.splice(i,1,...u),i+=u.length}else r.splice(i,1);continue}if(o.kind==="open-each"){const a=fk(r,i,"open-each","close-each");if(a===-1)throw new Error(`inject: unmatched {{#each ${o.path}}}`);const u=r.slice(i+1,a),c=Ln(o.path,t),d=Array.isArray(c)?c:[],h=[];for(let m=0;m<d.length;m++){const f=d[m],b=typeof f=="object"&&f!==null?{...f,$index:m,$first:m===0,$last:m===d.length-1}:{".":f,$index:m,$first:m===0,$last:m===d.length-1},g=cr(u),_=[b,...t],p={children:g};Rn(p,_,n);for(const y of p.children)Pn(y,_,n);h.push(...p.children)}r.splice(i,a-i+1,...h),i+=h.length;continue}if(o.kind==="open-if"){const{elseIdx:a,closeIdx:u}=mk(r,i);if(u===-1)throw new Error(`inject: unmatched {{#if ${o.path}}}`);const c=Ln(o.path,t);let d;zd(c)?d=a!==-1?r.slice(i+1,a):r.slice(i+1,u):d=a!==-1?r.slice(a+1,u):[];const h=cr(d);for(const m of h)La(m,t,n),Pn(m,t,n);r.splice(i,u-i+1,...h),i+=h.length;continue}i++}}function hk(e,t,n){const r=e.children;let i=0;for(;i<r.length;){const s=r[i],o=$d(s);if(!o){Rn(s,t,n),i++;continue}if(o.kind==="open-each"){const a=pk(r,i);if(a===-1)throw new Error(`inject: unmatched {{#each ${o.path}}} in table`);const u=r.slice(i+1,a),c=Ln(o.path,t),d=Array.isArray(c)?c:[],h=[];for(let m=0;m<d.length;m++){const f=d[m],b=typeof f=="object"&&f!==null?{...f,$index:m,$first:m===0,$last:m===d.length-1}:{".":f,$index:m,$first:m===0,$last:m===d.length-1},g=cr(u),_=[b,...t];for(const p of g)Rn(p,_,n),Pn(p,_,n);h.push(...g)}r.splice(i,a-i+1,...h),i+=h.length;continue}Rn(s,t,n),i++}}function yi(e){let t=null;if(dt(e))t=e.value.trim();else if(e.type==="paragraph"){const i=e;i.children.length===1&&dt(i.children[0])&&(t=i.children[0].value.trim())}if(!t)return null;const n=Bd(t);if(n.length!==1)return null;const r=n[0];return r.kind==="value"?null:r}function $d(e){if(e.children.length!==1)return null;const t=e.children[0];return t.children.length!==1?null:yi(t.children[0])}function fk(e,t,n,r){let i=1;for(let s=t+1;s<e.length;s++){const o=yi(e[s]);if(o&&(o.kind===n&&i++,o.kind===r&&(i--,i===0)))return s}return-1}function pk(e,t){let n=1;for(let r=t+1;r<e.length;r++){const i=$d(e[r]);if(i&&(i.kind==="open-each"&&n++,i.kind==="close-each"&&(n--,n===0)))return r}return-1}function mk(e,t){let n=1,r=-1;for(let i=t+1;i<e.length;i++){const s=yi(e[i]);if(s){if(s.kind==="open-if"&&n++,s.kind==="close-if"&&(n--,n===0))return{elseIdx:r,closeIdx:i};s.kind==="else"&&n===1&&(r=i)}}return{elseIdx:r,closeIdx:-1}}function gk(e,t,n){const r={missingKey:"blank",...n},i=Fd(e);return La(i,[t],r),Pn(i,[t],r),i}le.blockquote=Vd,le.buildStyleElement=pi,le.code=ch,le.codeBlock=Qd,le.collectNodes=gh,le.cssToParaProps=In,le.cssToRunProps=mt,le.diff=Hh,le.diffText=Ni,le.div=nh,le.emphasis=oh,le.hasPlaceholders=bi,le.hashNode=Si,le.heading=Gd,le.highlight=hh,le.image=sh,le.inject=gk,le.invalidateHash=_h,le.isLiteral=Dn,le.isParent=Te,le.isText=dt,le.isTruthy=zd,le.lineBreak=ih,le.link=dh,le.list=Kd,le.listItem=Xd,le.nodeAtPath=bh,le.nodeCount=ki,le.normalizeTextRuns=Fd,le.paraPropsToXml=vd,le.paragraph=Wd,le.parseColor=fi,le.parseCssClasses=U2,le.parseCssRules=ia,le.parseLengthHalfPts=xd,le.parseLengthTwips=ln,le.parseTokens=Bd,le.pathTo=dn,le.readDocx=Rw,le.readHtml=z2,le.renderDiffHtml=cw,le.resolveValue=Ln,le.root=Yd,le.runPropsToXml=Nd,le.splitByPlaceholders=Oa,le.strikethrough=uh,le.strong=ah,le.table=Zd,le.tableCell=eh,le.tableRow=Jd,le.text=rh,le.thematicBreak=th,le.underline=lh,le.valueToString=Hd,le.visit=wi,le.withClasses=fh,le.withData=ph,le.withId=mh,le.writeDocx=Xw,le.writeHtml=Ut,Object.defineProperty(le,Symbol.toStringTag,{value:"Module"})}));
125
125
  //# sourceMappingURL=otomate.umd.cjs.map