otomate 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/SKILL.md +4 -1
- package/dist/otomate.js +4373 -4324
- package/dist/otomate.js.map +1 -1
- package/dist/otomate.umd.cjs +44 -44
- package/dist/otomate.umd.cjs.map +1 -1
- package/guides/html-to-docx-and-back.md +6 -14
- package/package.json +1 -1
package/dist/otomate.umd.cjs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
(function(oe,dn){typeof exports=="object"&&typeof module<"u"?dn(exports,require("node:crypto")):typeof define=="function"&&define.amd?define(["exports","node:crypto"],dn):(oe=typeof globalThis<"u"?globalThis:oe||self,dn(oe.otomate={},oe.nodeCrypto))})(this,(function(oe,dn){"use strict";function we(e){return"children"in e&&Array.isArray(e.children)}function Bn(e){return"value"in e&&typeof e.value=="string"}function dt(e){return e.type==="text"}function yh(...e){return{type:"root",children:e}}function Th(...e){return{type:"paragraph",children:e}}function _h(e,...t){return{type:"heading",depth:e,children:t}}function wh(...e){return{type:"blockquote",children:e}}function kh(e,...t){return{type:"list",ordered:e,children:t}}function Ah(...e){return{type:"listItem",children:e}}function Sh(e,t){return{type:"codeBlock",value:e,lang:t}}function Ch(...e){return{type:"table",children:e}}function xh(e,...t){return{type:"tableRow",isHeader:e||void 0,children:t}}function Nh(...e){return{type:"tableCell",children:e}}function vh(){return{type:"thematicBreak"}}function Ih(...e){return{type:"div",children:e}}function Oh(e,t){const n={type:"text",value:e};return t&&t.length>0&&(n.marks=t),n}function Lh(){return{type:"break"}}function Ph(e,t,n){const r={type:"image",url:e};return t!==void 0&&(r.alt=t),n!==void 0&&(r.title=n),r}function Rh(){return{type:"strong"}}function Dh(){return{type:"emphasis"}}function Mh(){return{type:"strikethrough"}}function Bh(){return{type:"underline"}}function Fh(){return{type:"code"}}function Uh(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 zh(e,...t){return e.classes=t,e}function $h(e,t){return e.data={...e.data,...t},e}function jh(e,t){return e.id=t,e}function Si(e,t,n=null,r=0){if(t(e,n,r)!==!1&&we(e))for(let s=0;s<e.children.length;s++)Si(e.children[s],t,e,s)}function Ci(e){let t=1;if(we(e))for(const n of e.children)t+=Ci(n);return t}function qh(e){const t=[];return Si(e,n=>{t.push(n)}),t}function hn(e,t){if(e===t)return[];if(!we(e))return null;for(let n=0;n<e.children.length;n++){const r=hn(e.children[n],t);if(r!==null)return[n,...r]}return null}function Yh(e,t){let n=e;for(const r of t){if(!we(n)||r<0||r>=n.children.length)return null;n=n.children[r]}return n}const Wh=2166136261,Gh=16777619;function br(e){let t=Wh;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=Math.imul(t,Gh)>>>0;return t}function Vh(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 xi=new WeakMap;function Ni(e){const t=xi.get(e);if(t!==void 0)return t;let n;const r=Xh(e);if(dt(e)){const i=e;n=br(`text:${i.value}:${Vh(i.marks)}:${r}`)}else if(Bn(e)){const i=Qh(e);n=br(`${e.type}:${i}:${r}`)}else if(we(e)){const i=e.children.map(Ni),s=Zh(e);n=br(`${e.type}:${s}:${r}:[${i.join(",")}]`)}else n=br(`${e.type}:${Jh(e)}:${r}`);return xi.set(e,n),n}function Kh(e){xi.delete(e)}function Xh(e){return!e.classes||e.classes.length===0?"":`cls:${[...e.classes].sort().join(",")}`}function Qh(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 Zh(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 Jh(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 za(e){const t=new Map;function n(r){const i=Ni(r),s=Ci(r),a={node:r,hash:i,size:s},o=t.get(i);if(o?o.push(a):t.set(i,[a]),we(r))for(const u of r.children)n(u)}return n(e),t}function $a(e,t,n,r){if(n.set(e,t),r.set(t,e),we(e)&&we(t)){const i=e,s=t;for(let a=0;a<i.children.length&&a<s.children.length;a++)$a(i.children[a],s.children[a],n,r)}}function ef(e,t){const n=new Map,r=new Map,i=za(e),s=za(t),a=[];for(const[o,u]of i){const l=s.get(o);if(l)if(u.length===1&&l.length===1)a.push({oldNode:u[0].node,newNode:l[0].node,size:u[0].size});else for(const d of u)for(const h of l)a.push({oldNode:d.node,newNode:h.node,size:d.size})}a.sort((o,u)=>u.size-o.size);for(const{oldNode:o,newNode:u}of a)n.has(o)||r.has(u)||$a(o,u,n,r);return{forward:n,reverse:r}}function tf(e,t,n){const r=vi(e),i=new Set(vi(t));let s=0;for(const o of r){const u=n.get(o);u&&i.has(u)&&s++}const a=r.length+i.size;return a===0?1:2*s/a}function vi(e){const t=[];if(we(e))for(const n of e.children)t.push(n),t.push(...vi(n));return t}function nf(e){const t=new Map;function n(r,i){if(i&&t.set(r,i),we(r))for(const s of r.children)n(s,r)}return n(e,null),t}function rf(e,t){const n=[];function r(i){if(we(i)){for(const s of i.children)r(s);t.has(i)||n.push(i)}}return r(e),n}function sf(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(we(i))for(const s of i.children)r(s)}return r(e),n}function af(e,t,n,r,i=.5){const s=nf(t),a=sf(t,r),o=rf(e,n);for(const u of o){if(n.has(u))continue;const l=a.get(u.type);if(!l||l.length===0)continue;let d=null,h=-1;for(const p of l){if(r.has(p)||!we(p))continue;const f=tf(u,p,n);let g=0;const b=of(u,e,n);b&&s.get(p)===b&&(g=.3);const _=f+g;_>h&&(h=_,d=p)}d&&h>=i&&(n.set(u,d),r.set(d,u),qa(a,u.type,d))}uf(e,n,r,a)}function of(e,t,n){const r=ja(t,e);if(r)return n.get(r)}function ja(e,t){if(!we(e))return null;const n=e;for(const r of n.children){if(r===t)return e;const i=ja(r,t);if(i)return i}return null}function uf(e,t,n,r){for(const[i,s]of t){if(!we(i)||!we(s))continue;const a=i,o=s,u=[],l=[];for(let h=0;h<a.children.length;h++)t.has(a.children[h])||u.push({node:a.children[h],index:h});for(let h=0;h<o.children.length;h++)n.has(o.children[h])||l.push({node:o.children[h],index:h});const d=new Set;for(const h of u){const p=l.find(b=>b.index===h.index&&b.node.type===h.node.type&&!d.has(b.index));if(p){Ii(h.node,p.node,t,n,r),d.add(p.index);continue}let f=1/0,g=null;for(const b of l){if(d.has(b.index)||b.node.type!==h.node.type)continue;const _=Math.abs(b.index-h.index);_<f&&(f=_,g=b)}g&&(Ii(h.node,g.node,t,n,r),d.add(g.index))}}}function Ii(e,t,n,r,i){if(n.set(e,t),r.set(t,e),qa(i,t.type,t),we(e)&&we(t)){const s=e,a=t,o=new Set;for(let u=0;u<s.children.length;u++){if(n.has(s.children[u]))continue;!o.has(u)&&u<a.children.length&&!r.has(a.children[u])&&a.children[u].type===s.children[u].type&&(Ii(s.children[u],a.children[u],n,r,i),o.add(u))}}}function qa(e,t,n){const r=e.get(t);if(r){const i=r.indexOf(n);i!==-1&&r.splice(i,1)}}function lf(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 cf(e){return[...e]}function df(e,t){const n=e.length,r=t.length;if(n===0&&r===0)return[];if(n===0)return t.map(p=>({type:"insert",value:p}));if(r===0)return e.map(p=>({type:"delete",value:p}));const i=n+r,s=2*i+1,a=[],o=new Array(s).fill(0);let u=-1;for(let p=0;p<=i;p++){a.push([...o]);for(let f=-p;f<=p;f+=2){const g=f+i;let b;f===-p||f!==p&&o[g-1]<o[g+1]?b=o[g+1]:b=o[g-1]+1;let _=b-f;for(;b<n&&_<r&&e[b]===t[_];)b++,_++;if(o[g]=b,b>=n&&_>=r){u=p;break}}if(u>=0)break}const l=[];let d=n,h=r;for(let p=u;p>0;p--){const f=a[p],g=d-h,b=g+i;let _;g===-p||g!==p&&f[b-1]<f[b+1]?_=g+1:_=g-1;const m=_+i,E=f[m],S=E-_;for(;d>E&&h>S;)d--,h--,l.push({type:"equal",value:e[d]});g>_?(d--,l.push({type:"delete",value:e[d]})):(h--,l.push({type:"insert",value:t[h]}))}for(;d>0&&h>0;)d--,h--,l.push({type:"equal",value:e[d]});return l.reverse(),l}function Oi(e,t,n="word"){if(e===t)return[{type:"equal",value:e,offset:0}];const r=n==="word"?lf:cf,i=r(e),s=r(t),a=df(i,s),o=[];let u=0,l=0,d=0;for(;d<a.length;){const h=a[d].type;let p="";for(;d<a.length&&a[d].type===h;)p+=a[d].value,d++;switch(h){case"equal":o.push({type:"equal",value:p,offset:u}),u+=p.length,l+=p.length;break;case"delete":o.push({type:"delete",value:p,offset:u}),u+=p.length;break;case"insert":o.push({type:"insert",value:p,offset:l}),l+=p.length;break}}return o}function hf(e,t){const n=e??[],r=t??[];if(n.length!==r.length)return!1;const i=[...n].sort((a,o)=>a.type.localeCompare(o.type)),s=[...r].sort((a,o)=>a.type.localeCompare(o.type));for(let a=0;a<i.length;a++)if(i[a].type!==s[a].type||JSON.stringify(i[a].attrs)!==JSON.stringify(s[a].attrs))return!1;return!0}function Ya(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 ff(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 pf(e,t,n,r,i={}){const s=[],a=i.textGranularity??"word";for(const[u,l]of n){if(u===e&&l===t)continue;const d=hn(e,u),h=hn(t,l);if(!d||!h)continue;const p=Ya(u),f=Ya(l);if(ff(p,f)||s.push({type:"update",path:h,properties:{old:p,new:f}}),dt(u)&&dt(l)){const g=u,b=l;if(!hf(g.marks,b.marks)){const _=g.marks??[],m=b.marks??[];s.push({type:"update",path:h,properties:{old:{marks:_},new:{marks:m}}})}}if(dt(u)&&dt(l)){const g=u,b=l;g.value!==b.value&&s.push({type:"updateText",path:h,changes:Oi(g.value,b.value,a)})}else if(Bn(u)&&Bn(l)){const g=u.value,b=l.value;g!==b&&s.push({type:"updateText",path:h,changes:Oi(g,b,a)})}if(d.length>0&&h.length>0){const g=d.slice(0,-1),b=h.slice(0,-1),_=Ga(e,g),m=Ga(t,b);if(_&&m){const E=n.get(_);if(E&&E!==m)s.push({type:"move",from:d,to:h});else if(E===m){const S=d[d.length-1],I=h[h.length-1];S!==I&&s.push({type:"move",from:d,to:h})}}}}Wa(e,n,u=>{const l=hn(e,u);l&&s.push({type:"delete",path:l,node:Li(u)})}),Wa(t,r,u=>{const l=hn(t,u);l&&s.push({type:"insert",path:l,node:Li(u)})});const o={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:o}}function Wa(e,t,n){function r(i){if(!t.has(i)){n(i);return}if(we(i))for(const s of i.children)r(s)}if(we(e))for(const i of e.children)r(i)}function Ga(e,t){let n=e;for(const r of t){if(!we(n))return null;const i=n;if(r<0||r>=i.children.length)return null;n=i.children[r]}return n}function Li(e){const t={};for(const[n,r]of Object.entries(e))n==="position"||n==="id"||(n==="children"&&Array.isArray(r)?t.children=r.map(Li):t[n]=r);return t}function mf(e,t,n={}){const{diceThreshold:r=.5}=n,{forward:i,reverse:s}=ef(e,t);return i.has(e)||(i.set(e,t),s.set(t,e)),af(e,t,i,s,r),pf(e,t,i,s,n)}function Jk(){}class Fn{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Fn.prototype.normal={},Fn.prototype.property={},Fn.prototype.space=void 0;function Va(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Fn(n,r,t)}function Un(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 gf=0;const me=rn(),Me=rn(),Pi=rn(),ee=rn(),Ce=rn(),fn=rn(),at=rn();function rn(){return 2**++gf}const Ri=Object.freeze(Object.defineProperty({__proto__:null,boolean:me,booleanish:Me,commaOrSpaceSeparated:at,commaSeparated:fn,number:ee,overloadedBoolean:Pi,spaceSeparated:Ce},Symbol.toStringTag,{value:"Module"})),Di=Object.keys(Ri);class Mi extends et{constructor(t,n,r,i){let s=-1;if(super(t,n),Ka(this,"space",i),typeof r=="number")for(;++s<Di.length;){const a=Di[s];Ka(this,Di[s],(r&Ri[a])===Ri[a])}}}Mi.prototype.defined=!0;function Ka(e,t,n){n&&(e[t]=n)}function pn(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const s=new Mi(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(s.mustUseProperty=!0),t[r]=s,n[Un(r)]=r,n[Un(s.attribute)]=r}return new Fn(t,n,e.space)}const Xa=pn({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 Za(e,t){return Qa(e,t.toLowerCase())}const bf=pn({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:fn,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|fn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:me,defer:me,dir:null,dirName:null,disabled:me,download:Pi,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:Pi,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:Za}),Ef=pn({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:fn,g2:fn,glyphName:fn,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}),Ja=pn({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()}}),eo=pn({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Za}),to=pn({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),yf=/[A-Z]/g,no=/-[a-z]/g,Tf=/^data[-\w.:]+$/i;function Bi(e,t){const n=Un(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"&&Tf.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(no,wf);r="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!no.test(s)){let a=s.replace(yf,_f);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=Mi}return new i(r,t)}function _f(e){return"-"+e.toLowerCase()}function wf(e){return e.charAt(1).toUpperCase()}const Er=Va([Xa,bf,Ja,eo,to],"html"),Hn=Va([Xa,Ef,Ja,eo,to],"svg");function ro(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,s=!1;for(;!s;){r===-1&&(r=n.length,s=!0);const a=n.slice(i,r).trim();(a||!s)&&t.push(a),i=r+1,r=n.indexOf(",",i)}return t}function kf(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const io=/[#.]/g;function Af(e,t){const n=e||"",r={};let i=0,s,a;for(;i<n.length;){io.lastIndex=i;const o=io.exec(n),u=n.slice(i,o?o.index:n.length);u&&(s?s==="#"?r.id=u:Array.isArray(r.className)?r.className.push(u):r.className=[u]:a=u,i+=u.length),o&&(s=o[0],i++)}return{type:"element",tagName:a||t||"div",properties:r,children:[]}}function so(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Sf(e){return e.join(" ").trim()}function ao(e,t,n){const r=n?vf(n):void 0;function i(s,a,...o){let u;if(s==null){u={type:"root",children:[]};const l=a;o.unshift(l)}else{u=Af(s,t);const l=u.tagName.toLowerCase(),d=r?r.get(l):void 0;if(u.tagName=d||l,Cf(a))o.unshift(a);else for(const[h,p]of Object.entries(a))xf(e,u.properties,h,p)}for(const l of o)Fi(u.children,l);return u.type==="element"&&u.tagName==="template"&&(u.content={type:"root",children:u.children},u.children=[]),u}return i}function Cf(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 a of s)if(typeof a!="number"&&typeof a!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function xf(e,t,n,r){const i=Bi(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=so(r):i.commaSeparated?s=ro(r):i.commaOrSpaceSeparated?s=so(ro(r).join(" ")):s=oo(i,i.property,r):Array.isArray(r)?s=[...r]:s=i.property==="style"?Nf(r):String(r);if(Array.isArray(s)){const a=[];for(const o of s)a.push(oo(i,i.property,o));s=a}i.property==="className"&&Array.isArray(t.className)&&(s=t.className.concat(s)),t[i.property]=s}}function Fi(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)Fi(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?Fi(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function oo(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Un(n)===Un(t)))return!0}return n}function Nf(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function vf(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const If=["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"],Of=ao(Er,"div"),Lf=ao(Hn,"g",If);function Pf(e){const t=String(e),n=[];return{toOffset:i,toPoint:r};function r(s){if(typeof s=="number"&&s>-1&&s<=t.length){let a=0;for(;;){let o=n[a];if(o===void 0){const u=uo(t,n[a-1]);o=u===-1?t.length+1:u+1,n[a]=o}if(o>s)return{line:a+1,column:s-(a>0?n[a-1]:0)+1,offset:s};a++}}}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 o=n[n.length-1],u=uo(t,o),l=u===-1?t.length+1:u+1;if(o===l)break;n.push(l)}const a=(s.line>1?n[s.line-2]:0)+s.column-1;if(a<n[s.line-1])return a}}}function uo(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 Rf={svg:"http://www.w3.org/2000/svg"},lo={}.hasOwnProperty,Df=Object.prototype;function Mf(e,t){const n=t||{};return Ui({file:n.file||void 0,location:!1,schema:n.space==="svg"?Hn:Er,verbose:n.verbose||!1},e)}function Ui(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},yr(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:co(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){const s=String(e.file),a=Pf(s),o=a.toPoint(0),u=a.toPoint(s.length);n.position={start:o,end:u}}return n}case"#documentType":{const r=t;return n={type:"doctype"},yr(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},yr(e,r,n),n}default:return n=Bf(e,t),n}}function co(e,t){let n=-1;const r=[];for(;++n<t.length;){const i=Ui(e,t[n]);r.push(i)}return r}function Bf(e,t){const n=e.schema;e.schema=t.namespaceURI===Rf.svg?Hn:Er;let r=-1;const i={};for(;++r<t.attrs.length;){const o=t.attrs[r],u=(o.prefix?o.prefix+":":"")+o.name;lo.call(Df,u)||(i[u]=o.value)}const a=(e.schema.space==="svg"?Lf:Of)(t.tagName,i,co(e,t.childNodes));if(yr(e,t,a),a.tagName==="template"){const o=t,u=o.sourceCodeLocation,l=u&&u.startTag&&mn(u.startTag),d=u&&u.endTag&&mn(u.endTag),h=Ui(e,o.content);l&&d&&e.file&&(h.position={start:l.end,end:d.start}),a.content=h}return e.schema=n,a}function yr(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=Ff(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function Ff(e,t,n){const r=mn(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 a;if(n.attrs)for(a in n.attrs)lo.call(n.attrs,a)&&(s[Bi(e.schema,a).property]=mn(n.attrs[a]));n.startTag;const o=mn(n.startTag),u=n.endTag?mn(n.endTag):void 0,l={opening:o};u&&(l.closing=u),l.properties=s,t.data={position:l}}}return r}function mn(e){const t=ho({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=ho({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function ho(e){return e.line&&e.column?e:void 0}const Uf=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 A;(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"})(A||(A={}));const tt={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function fo(e){return e>=55296&&e<=57343}function Hf(e){return e>=56320&&e<=57343}function zf(e,t){return(e-55296)*1024+9216+t}function po(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function mo(e){return e>=64976&&e<=65007||Uf.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 $f=65536;class jf{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=$f,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,a=i+n,o=s+n;return{code:t,startLine:r,endLine:r,startCol:a,endCol:a,startOffset:o,endOffset:o}}_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(),zf(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,A.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,A.EOF;const r=this.html.charCodeAt(n);return r===A.CARRIAGE_RETURN?A.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,A.EOF;let t=this.html.charCodeAt(this.pos);return t===A.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,A.LINE_FEED):t===A.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,fo(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===A.LINE_FEED||t===A.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){po(t)?this._err(q.controlCharacterInInputStream):mo(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 go(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 qf=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୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢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;怳Ādpuct;戏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ǣጓ\0y;䐎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Ā;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀ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Ā;elƀ;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\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»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ↄⅪ←ٖ↛ǰ↉\0proø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;䅓Ācrir;榿;쀀𝔬ͯ\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\0m;櫳;櫽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))),Yf=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 Wf(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=Yf.get(e))!==null&&t!==void 0?t:e}var He;(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"})(He||(He={}));const Gf=32;var qt;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(qt||(qt={}));function Hi(e){return e>=He.ZERO&&e<=He.NINE}function Vf(e){return e>=He.UPPER_A&&e<=He.UPPER_F||e>=He.LOWER_A&&e<=He.LOWER_F}function Kf(e){return e>=He.UPPER_A&&e<=He.UPPER_Z||e>=He.LOWER_A&&e<=He.LOWER_Z||Hi(e)}function Xf(e){return e===He.EQUALS||Kf(e)}var ze;(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"})(ze||(ze={}));var Mt;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Mt||(Mt={}));class Qf{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=ze.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Mt.Strict}startEntity(t){this.decodeMode=t,this.state=ze.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case ze.EntityStart:return t.charCodeAt(n)===He.NUM?(this.state=ze.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=ze.NamedEntity,this.stateNamedEntity(t,n));case ze.NumericStart:return this.stateNumericStart(t,n);case ze.NumericDecimal:return this.stateNumericDecimal(t,n);case ze.NumericHex:return this.stateNumericHex(t,n);case ze.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|Gf)===He.LOWER_X?(this.state=ze.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=ze.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(Hi(i)||Vf(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(Hi(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===He.SEMI)this.consumed+=1;else if(this.decodeMode===Mt.Strict)return 0;return this.emitCodePoint(Wf(this.result),this.consumed),this.errors&&(t!==He.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&qt.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const a=t.charCodeAt(n);if(this.treeIndex=Zf(r,i,this.treeIndex+Math.max(1,s),a),this.treeIndex<0)return this.result===0||this.decodeMode===Mt.Attribute&&(s===0||Xf(a))?0:this.emitNotTerminatedNamedEntity();if(i=r[this.treeIndex],s=(i&qt.VALUE_LENGTH)>>14,s!==0){if(a===He.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);this.decodeMode!==Mt.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]&qt.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]&~qt.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case ze.NamedEntity:return this.result!==0&&(this.decodeMode!==Mt.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case ze.NumericDecimal:return this.emitNumericEntity(0,2);case ze.NumericHex:return this.emitNumericEntity(0,3);case ze.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case ze.EntityStart:return 0}}}function Zf(e,t,n,r){const i=(t&qt.BRANCH_LENGTH)>>7,s=t&qt.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 a=n,o=a+i-1;for(;a<=o;){const u=a+o>>>1,l=e[u];if(l<r)a=u+1;else if(l>r)o=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 sn;(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"})(sn||(sn={}));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 c;(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"})(c||(c={}));const Jf=new Map([[H.A,c.A],[H.ADDRESS,c.ADDRESS],[H.ANNOTATION_XML,c.ANNOTATION_XML],[H.APPLET,c.APPLET],[H.AREA,c.AREA],[H.ARTICLE,c.ARTICLE],[H.ASIDE,c.ASIDE],[H.B,c.B],[H.BASE,c.BASE],[H.BASEFONT,c.BASEFONT],[H.BGSOUND,c.BGSOUND],[H.BIG,c.BIG],[H.BLOCKQUOTE,c.BLOCKQUOTE],[H.BODY,c.BODY],[H.BR,c.BR],[H.BUTTON,c.BUTTON],[H.CAPTION,c.CAPTION],[H.CENTER,c.CENTER],[H.CODE,c.CODE],[H.COL,c.COL],[H.COLGROUP,c.COLGROUP],[H.DD,c.DD],[H.DESC,c.DESC],[H.DETAILS,c.DETAILS],[H.DIALOG,c.DIALOG],[H.DIR,c.DIR],[H.DIV,c.DIV],[H.DL,c.DL],[H.DT,c.DT],[H.EM,c.EM],[H.EMBED,c.EMBED],[H.FIELDSET,c.FIELDSET],[H.FIGCAPTION,c.FIGCAPTION],[H.FIGURE,c.FIGURE],[H.FONT,c.FONT],[H.FOOTER,c.FOOTER],[H.FOREIGN_OBJECT,c.FOREIGN_OBJECT],[H.FORM,c.FORM],[H.FRAME,c.FRAME],[H.FRAMESET,c.FRAMESET],[H.H1,c.H1],[H.H2,c.H2],[H.H3,c.H3],[H.H4,c.H4],[H.H5,c.H5],[H.H6,c.H6],[H.HEAD,c.HEAD],[H.HEADER,c.HEADER],[H.HGROUP,c.HGROUP],[H.HR,c.HR],[H.HTML,c.HTML],[H.I,c.I],[H.IMG,c.IMG],[H.IMAGE,c.IMAGE],[H.INPUT,c.INPUT],[H.IFRAME,c.IFRAME],[H.KEYGEN,c.KEYGEN],[H.LABEL,c.LABEL],[H.LI,c.LI],[H.LINK,c.LINK],[H.LISTING,c.LISTING],[H.MAIN,c.MAIN],[H.MALIGNMARK,c.MALIGNMARK],[H.MARQUEE,c.MARQUEE],[H.MATH,c.MATH],[H.MENU,c.MENU],[H.META,c.META],[H.MGLYPH,c.MGLYPH],[H.MI,c.MI],[H.MO,c.MO],[H.MN,c.MN],[H.MS,c.MS],[H.MTEXT,c.MTEXT],[H.NAV,c.NAV],[H.NOBR,c.NOBR],[H.NOFRAMES,c.NOFRAMES],[H.NOEMBED,c.NOEMBED],[H.NOSCRIPT,c.NOSCRIPT],[H.OBJECT,c.OBJECT],[H.OL,c.OL],[H.OPTGROUP,c.OPTGROUP],[H.OPTION,c.OPTION],[H.P,c.P],[H.PARAM,c.PARAM],[H.PLAINTEXT,c.PLAINTEXT],[H.PRE,c.PRE],[H.RB,c.RB],[H.RP,c.RP],[H.RT,c.RT],[H.RTC,c.RTC],[H.RUBY,c.RUBY],[H.S,c.S],[H.SCRIPT,c.SCRIPT],[H.SEARCH,c.SEARCH],[H.SECTION,c.SECTION],[H.SELECT,c.SELECT],[H.SOURCE,c.SOURCE],[H.SMALL,c.SMALL],[H.SPAN,c.SPAN],[H.STRIKE,c.STRIKE],[H.STRONG,c.STRONG],[H.STYLE,c.STYLE],[H.SUB,c.SUB],[H.SUMMARY,c.SUMMARY],[H.SUP,c.SUP],[H.TABLE,c.TABLE],[H.TBODY,c.TBODY],[H.TEMPLATE,c.TEMPLATE],[H.TEXTAREA,c.TEXTAREA],[H.TFOOT,c.TFOOT],[H.TD,c.TD],[H.TH,c.TH],[H.THEAD,c.THEAD],[H.TITLE,c.TITLE],[H.TR,c.TR],[H.TRACK,c.TRACK],[H.TT,c.TT],[H.U,c.U],[H.UL,c.UL],[H.SVG,c.SVG],[H.VAR,c.VAR],[H.WBR,c.WBR],[H.XMP,c.XMP]]);function Tr(e){var t;return(t=Jf.get(e))!==null&&t!==void 0?t:c.UNKNOWN}const J=c,ep={[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},zi=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 tp(e){return e>=A.DIGIT_0&&e<=A.DIGIT_9}function zn(e){return e>=A.LATIN_CAPITAL_A&&e<=A.LATIN_CAPITAL_Z}function np(e){return e>=A.LATIN_SMALL_A&&e<=A.LATIN_SMALL_Z}function Yt(e){return np(e)||zn(e)}function bo(e){return Yt(e)||tp(e)}function _r(e){return e+32}function Eo(e){return e===A.SPACE||e===A.LINE_FEED||e===A.TABULATION||e===A.FORM_FEED}function yo(e){return Eo(e)||e===A.SOLIDUS||e===A.GREATER_THAN_SIGN}function rp(e){return e===A.NULL?q.nullCharacterReference:e>1114111?q.characterReferenceOutsideUnicodeRange:fo(e)?q.surrogateCharacterReference:mo(e)?q.noncharacterCharacterReference:po(e)||e===A.CARRIAGE_RETURN?q.controlCharacterReference:null}class ip{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 jf(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new Qf(qf,(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=rp(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:c.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Te.END_TAG,tagName:"",tagID:c.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(go(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=Tr(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===A.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()?Mt.Attribute:Mt.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 A.LESS_THAN_SIGN:{this.state=N.TAG_OPEN;break}case A.AMPERSAND:{this._startCharacterReference();break}case A.NULL:{this._err(q.unexpectedNullCharacter),this._emitCodePoint(t);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case A.AMPERSAND:{this._startCharacterReference();break}case A.LESS_THAN_SIGN:{this.state=N.RCDATA_LESS_THAN_SIGN;break}case A.NULL:{this._err(q.unexpectedNullCharacter),this._emitChars(Ie);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case A.LESS_THAN_SIGN:{this.state=N.RAWTEXT_LESS_THAN_SIGN;break}case A.NULL:{this._err(q.unexpectedNullCharacter),this._emitChars(Ie);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case A.LESS_THAN_SIGN:{this.state=N.SCRIPT_DATA_LESS_THAN_SIGN;break}case A.NULL:{this._err(q.unexpectedNullCharacter),this._emitChars(Ie);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case A.NULL:{this._err(q.unexpectedNullCharacter),this._emitChars(Ie);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Yt(t))this._createStartTagToken(),this.state=N.TAG_NAME,this._stateTagName(t);else switch(t){case A.EXCLAMATION_MARK:{this.state=N.MARKUP_DECLARATION_OPEN;break}case A.SOLIDUS:{this.state=N.END_TAG_OPEN;break}case A.QUESTION_MARK:{this._err(q.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=N.BOGUS_COMMENT,this._stateBogusComment(t);break}case A.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(Yt(t))this._createEndTagToken(),this.state=N.TAG_NAME,this._stateTagName(t);else switch(t){case A.GREATER_THAN_SIGN:{this._err(q.missingEndTagName),this.state=N.DATA;break}case A.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 A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=N.BEFORE_ATTRIBUTE_NAME;break}case A.SOLIDUS:{this.state=N.SELF_CLOSING_START_TAG;break}case A.GREATER_THAN_SIGN:{this.state=N.DATA,this.emitCurrentTagToken();break}case A.NULL:{this._err(q.unexpectedNullCharacter),n.tagName+=Ie;break}case A.EOF:{this._err(q.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(zn(t)?_r(t):t)}}_stateRcdataLessThanSign(t){t===A.SOLIDUS?this.state=N.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=N.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){Yt(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 A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=N.BEFORE_ATTRIBUTE_NAME,!1;case A.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=N.SELF_CLOSING_START_TAG,!1;case A.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===A.SOLIDUS?this.state=N.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=N.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){Yt(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 A.SOLIDUS:{this.state=N.SCRIPT_DATA_END_TAG_OPEN;break}case A.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){Yt(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===A.HYPHEN_MINUS?(this.state=N.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=N.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===A.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 A.HYPHEN_MINUS:{this.state=N.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case A.LESS_THAN_SIGN:{this.state=N.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case A.NULL:{this._err(q.unexpectedNullCharacter),this._emitChars(Ie);break}case A.EOF:{this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case A.HYPHEN_MINUS:{this.state=N.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case A.LESS_THAN_SIGN:{this.state=N.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case A.NULL:{this._err(q.unexpectedNullCharacter),this.state=N.SCRIPT_DATA_ESCAPED,this._emitChars(Ie);break}case A.EOF:{this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=N.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case A.HYPHEN_MINUS:{this._emitChars("-");break}case A.LESS_THAN_SIGN:{this.state=N.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case A.GREATER_THAN_SIGN:{this.state=N.SCRIPT_DATA,this._emitChars(">");break}case A.NULL:{this._err(q.unexpectedNullCharacter),this.state=N.SCRIPT_DATA_ESCAPED,this._emitChars(Ie);break}case A.EOF:{this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=N.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===A.SOLIDUS?this.state=N.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Yt(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){Yt(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)&&yo(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 A.HYPHEN_MINUS:{this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case A.LESS_THAN_SIGN:{this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case A.NULL:{this._err(q.unexpectedNullCharacter),this._emitChars(Ie);break}case A.EOF:{this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case A.HYPHEN_MINUS:{this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case A.LESS_THAN_SIGN:{this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case A.NULL:{this._err(q.unexpectedNullCharacter),this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ie);break}case A.EOF:{this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case A.HYPHEN_MINUS:{this._emitChars("-");break}case A.LESS_THAN_SIGN:{this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case A.GREATER_THAN_SIGN:{this.state=N.SCRIPT_DATA,this._emitChars(">");break}case A.NULL:{this._err(q.unexpectedNullCharacter),this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ie);break}case A.EOF:{this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===A.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)&&yo(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 A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.SOLIDUS:case A.GREATER_THAN_SIGN:case A.EOF:{this.state=N.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case A.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 A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:case A.SOLIDUS:case A.GREATER_THAN_SIGN:case A.EOF:{this._leaveAttrName(),this.state=N.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case A.EQUALS_SIGN:{this._leaveAttrName(),this.state=N.BEFORE_ATTRIBUTE_VALUE;break}case A.QUOTATION_MARK:case A.APOSTROPHE:case A.LESS_THAN_SIGN:{this._err(q.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case A.NULL:{this._err(q.unexpectedNullCharacter),this.currentAttr.name+=Ie;break}default:this.currentAttr.name+=String.fromCodePoint(zn(t)?_r(t):t)}}_stateAfterAttributeName(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.SOLIDUS:{this.state=N.SELF_CLOSING_START_TAG;break}case A.EQUALS_SIGN:{this.state=N.BEFORE_ATTRIBUTE_VALUE;break}case A.GREATER_THAN_SIGN:{this.state=N.DATA,this.emitCurrentTagToken();break}case A.EOF:{this._err(q.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=N.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.QUOTATION_MARK:{this.state=N.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case A.APOSTROPHE:{this.state=N.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case A.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 A.QUOTATION_MARK:{this.state=N.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case A.AMPERSAND:{this._startCharacterReference();break}case A.NULL:{this._err(q.unexpectedNullCharacter),this.currentAttr.value+=Ie;break}case A.EOF:{this._err(q.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case A.APOSTROPHE:{this.state=N.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case A.AMPERSAND:{this._startCharacterReference();break}case A.NULL:{this._err(q.unexpectedNullCharacter),this.currentAttr.value+=Ie;break}case A.EOF:{this._err(q.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this._leaveAttrValue(),this.state=N.BEFORE_ATTRIBUTE_NAME;break}case A.AMPERSAND:{this._startCharacterReference();break}case A.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=N.DATA,this.emitCurrentTagToken();break}case A.NULL:{this._err(q.unexpectedNullCharacter),this.currentAttr.value+=Ie;break}case A.QUOTATION_MARK:case A.APOSTROPHE:case A.LESS_THAN_SIGN:case A.EQUALS_SIGN:case A.GRAVE_ACCENT:{this._err(q.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case A.EOF:{this._err(q.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this._leaveAttrValue(),this.state=N.BEFORE_ATTRIBUTE_NAME;break}case A.SOLIDUS:{this._leaveAttrValue(),this.state=N.SELF_CLOSING_START_TAG;break}case A.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=N.DATA,this.emitCurrentTagToken();break}case A.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 A.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=N.DATA,this.emitCurrentTagToken();break}case A.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 A.GREATER_THAN_SIGN:{this.state=N.DATA,this.emitCurrentComment(n);break}case A.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case A.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 A.HYPHEN_MINUS:{this.state=N.COMMENT_START_DASH;break}case A.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 A.HYPHEN_MINUS:{this.state=N.COMMENT_END;break}case A.GREATER_THAN_SIGN:{this._err(q.abruptClosingOfEmptyComment),this.state=N.DATA,this.emitCurrentComment(n);break}case A.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 A.HYPHEN_MINUS:{this.state=N.COMMENT_END_DASH;break}case A.LESS_THAN_SIGN:{n.data+="<",this.state=N.COMMENT_LESS_THAN_SIGN;break}case A.NULL:{this._err(q.unexpectedNullCharacter),n.data+=Ie;break}case A.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 A.EXCLAMATION_MARK:{n.data+="!",this.state=N.COMMENT_LESS_THAN_SIGN_BANG;break}case A.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=N.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===A.HYPHEN_MINUS?this.state=N.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=N.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===A.HYPHEN_MINUS?this.state=N.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=N.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==A.GREATER_THAN_SIGN&&t!==A.EOF&&this._err(q.nestedComment),this.state=N.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case A.HYPHEN_MINUS:{this.state=N.COMMENT_END;break}case A.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 A.GREATER_THAN_SIGN:{this.state=N.DATA,this.emitCurrentComment(n);break}case A.EXCLAMATION_MARK:{this.state=N.COMMENT_END_BANG;break}case A.HYPHEN_MINUS:{n.data+="-";break}case A.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 A.HYPHEN_MINUS:{n.data+="--!",this.state=N.COMMENT_END_DASH;break}case A.GREATER_THAN_SIGN:{this._err(q.incorrectlyClosedComment),this.state=N.DATA,this.emitCurrentComment(n);break}case A.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 A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=N.BEFORE_DOCTYPE_NAME;break}case A.GREATER_THAN_SIGN:{this.state=N.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case A.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(zn(t))this._createDoctypeToken(String.fromCharCode(_r(t))),this.state=N.DOCTYPE_NAME;else switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.NULL:{this._err(q.unexpectedNullCharacter),this._createDoctypeToken(Ie),this.state=N.DOCTYPE_NAME;break}case A.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 A.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 A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=N.AFTER_DOCTYPE_NAME;break}case A.GREATER_THAN_SIGN:{this.state=N.DATA,this.emitCurrentDoctype(n);break}case A.NULL:{this._err(q.unexpectedNullCharacter),n.name+=Ie;break}case A.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(zn(t)?_r(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.GREATER_THAN_SIGN:{this.state=N.DATA,this.emitCurrentDoctype(n);break}case A.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 A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=N.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case A.QUOTATION_MARK:{this._err(q.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=N.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{this._err(q.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=N.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case A.GREATER_THAN_SIGN:{this._err(q.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=N.DATA,this.emitCurrentDoctype(n);break}case A.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 A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.QUOTATION_MARK:{n.publicId="",this.state=N.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{n.publicId="",this.state=N.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case A.GREATER_THAN_SIGN:{this._err(q.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=N.DATA,this.emitCurrentDoctype(n);break}case A.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 A.QUOTATION_MARK:{this.state=N.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case A.NULL:{this._err(q.unexpectedNullCharacter),n.publicId+=Ie;break}case A.GREATER_THAN_SIGN:{this._err(q.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=N.DATA;break}case A.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 A.APOSTROPHE:{this.state=N.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case A.NULL:{this._err(q.unexpectedNullCharacter),n.publicId+=Ie;break}case A.GREATER_THAN_SIGN:{this._err(q.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=N.DATA;break}case A.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 A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=N.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case A.GREATER_THAN_SIGN:{this.state=N.DATA,this.emitCurrentDoctype(n);break}case A.QUOTATION_MARK:{this._err(q.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{this._err(q.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case A.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 A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=N.DATA;break}case A.QUOTATION_MARK:{n.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{n.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case A.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 A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=N.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case A.QUOTATION_MARK:{this._err(q.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{this._err(q.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case A.GREATER_THAN_SIGN:{this._err(q.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=N.DATA,this.emitCurrentDoctype(n);break}case A.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 A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.QUOTATION_MARK:{n.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{n.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case A.GREATER_THAN_SIGN:{this._err(q.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=N.DATA,this.emitCurrentDoctype(n);break}case A.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 A.QUOTATION_MARK:{this.state=N.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case A.NULL:{this._err(q.unexpectedNullCharacter),n.systemId+=Ie;break}case A.GREATER_THAN_SIGN:{this._err(q.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=N.DATA;break}case A.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 A.APOSTROPHE:{this.state=N.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case A.NULL:{this._err(q.unexpectedNullCharacter),n.systemId+=Ie;break}case A.GREATER_THAN_SIGN:{this._err(q.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=N.DATA;break}case A.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 A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=N.DATA;break}case A.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 A.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=N.DATA;break}case A.NULL:{this._err(q.unexpectedNullCharacter);break}case A.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case A.RIGHT_SQUARE_BRACKET:{this.state=N.CDATA_SECTION_BRACKET;break}case A.EOF:{this._err(q.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===A.RIGHT_SQUARE_BRACKET?this.state=N.CDATA_SECTION_END:(this._emitChars("]"),this.state=N.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case A.GREATER_THAN_SIGN:{this.state=N.DATA;break}case A.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(A.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&bo(this.preprocessor.peek(1))?N.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){bo(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===A.SEMICOLON&&this._err(q.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const To=new Set([c.DD,c.DT,c.LI,c.OPTGROUP,c.OPTION,c.P,c.RB,c.RP,c.RT,c.RTC]),_o=new Set([...To,c.CAPTION,c.COLGROUP,c.TBODY,c.TD,c.TFOOT,c.TH,c.THEAD,c.TR]),wr=new Set([c.APPLET,c.CAPTION,c.HTML,c.MARQUEE,c.OBJECT,c.TABLE,c.TD,c.TEMPLATE,c.TH]),sp=new Set([...wr,c.OL,c.UL]),ap=new Set([...wr,c.BUTTON]),wo=new Set([c.ANNOTATION_XML,c.MI,c.MN,c.MO,c.MS,c.MTEXT]),ko=new Set([c.DESC,c.FOREIGN_OBJECT,c.TITLE]),op=new Set([c.TR,c.TEMPLATE,c.HTML]),up=new Set([c.TBODY,c.TFOOT,c.THEAD,c.TEMPLATE,c.HTML]),lp=new Set([c.TABLE,c.TEMPLATE,c.HTML]),cp=new Set([c.TD,c.TH]);class dp{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=c.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===c.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(zi,X.HTML)}popUntilTableCellPopped(){this.popUntilPopped(cp,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(lp,X.HTML)}clearBackToTableBodyContext(){this.clearBackTo(up,X.HTML)}clearBackToTableRowContext(){this.clearBackTo(op,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]===c.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]===c.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(ko.has(i))return!1;break}case X.MATHML:{if(wo.has(i))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,wr)}hasInListItemScope(t){return this.hasInDynamicScope(t,sp)}hasInButtonScope(t){return this.hasInDynamicScope(t,ap)}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(zi.has(n))return!0;if(wr.has(n))return!1;break}case X.SVG:{if(ko.has(n))return!1;break}case X.MATHML:{if(wo.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 c.TABLE:case c.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 c.TBODY:case c.THEAD:case c.TFOOT:return!0;case c.TABLE:case c.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 c.OPTION:case c.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&To.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&_o.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&_o.has(this.currentTagId);)this.pop()}}const $i=3;var Ct;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Ct||(Ct={}));const Ao={type:Ct.Marker};class hp{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],i=n.length,s=this.treeAdapter.getTagName(t),a=this.treeAdapter.getNamespaceURI(t);for(let o=0;o<this.entries.length;o++){const u=this.entries[o];if(u.type===Ct.Marker)break;const{element:l}=u;if(this.treeAdapter.getTagName(l)===s&&this.treeAdapter.getNamespaceURI(l)===a){const d=this.treeAdapter.getAttrList(l);d.length===i&&r.push({idx:o,attrs:d})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<$i)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<$i)return;const i=new Map(n.map(a=>[a.name,a.value]));let s=0;for(let a=0;a<r.length;a++){const o=r[a];o.attrs.every(u=>i.get(u.name)===u.value)&&(s+=1,s>=$i&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(Ao)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:Ct.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:Ct.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===Ct.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===Ct.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===Ct.Element&&n.element===t)}}const Wt={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};Wt.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(Wt.isTextNode(n)){n.value+=t;return}}Wt.appendChild(e,Wt.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Wt.isTextNode(r)?r.value+=t:Wt.insertBefore(e,Wt.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}}},So="html",fp="about:legacy-compat",pp="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Co=["+//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//"],mp=[...Co,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],gp=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),xo=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],bp=[...xo,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function No(e,t){return t.some(n=>e.startsWith(n))}function Ep(e){return e.name===So&&e.publicId===null&&(e.systemId===null||e.systemId===fp)}function yp(e){if(e.name!==So)return ht.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===pp)return ht.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),gp.has(n))return ht.QUIRKS;let r=t===null?mp:Co;if(No(n,r))return ht.QUIRKS;if(r=t===null?xo:bp,No(n,r))return ht.LIMITED_QUIRKS}return ht.NO_QUIRKS}const vo={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Tp="definitionurl",_p="definitionURL",wp=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])),kp=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}]]),Ap=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])),Sp=new Set([c.B,c.BIG,c.BLOCKQUOTE,c.BODY,c.BR,c.CENTER,c.CODE,c.DD,c.DIV,c.DL,c.DT,c.EM,c.EMBED,c.H1,c.H2,c.H3,c.H4,c.H5,c.H6,c.HEAD,c.HR,c.I,c.IMG,c.LI,c.LISTING,c.MENU,c.META,c.NOBR,c.OL,c.P,c.PRE,c.RUBY,c.S,c.SMALL,c.SPAN,c.STRONG,c.STRIKE,c.SUB,c.SUP,c.TABLE,c.TT,c.U,c.UL,c.VAR]);function Cp(e){const t=e.tagID;return t===c.FONT&&e.attrs.some(({name:r})=>r===sn.COLOR||r===sn.SIZE||r===sn.FACE)||Sp.has(t)}function Io(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===Tp){e.attrs[t].name=_p;break}}function Oo(e){for(let t=0;t<e.attrs.length;t++){const n=wp.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function ji(e){for(let t=0;t<e.attrs.length;t++){const n=kp.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 xp(e){const t=Ap.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=Tr(e.tagName))}function Np(e,t){return t===X.MATHML&&(e===c.MI||e===c.MO||e===c.MN||e===c.MS||e===c.MTEXT)}function vp(e,t,n){if(t===X.MATHML&&e===c.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===sn.ENCODING){const i=n[r].value.toLowerCase();return i===vo.TEXT_HTML||i===vo.APPLICATION_XML}}return t===X.SVG&&(e===c.FOREIGN_OBJECT||e===c.DESC||e===c.TITLE)}function Ip(e,t,n,r){return(!r||r===X.HTML)&&vp(e,t,n)||(!r||r===X.MATHML)&&Np(e,t)}const Op="hidden",Lp=8,Pp=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 Rp={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Lo=new Set([c.TABLE,c.TBODY,c.TFOOT,c.THEAD,c.TR]),Po={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Wt,onParseError:null};class Ro{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={...Po,...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 ip(this.options,this),this.activeFormattingElements=new hp(this.treeAdapter),this.fragmentContextID=r?Tr(this.treeAdapter.getTagName(r)):c.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new dp(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={...Po,...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===c.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:Rp,a={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(a)}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,a;this.openElements.stackTop===0&&this.fragmentContext?(s=this.fragmentContext,a=this.fragmentContextID):{current:s,currentTagId:a}=this.openElements,this._setContextModes(s,a)}}_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 c.TITLE:case c.TEXTAREA:{this.tokenizer.state=nt.RCDATA;break}case c.STYLE:case c.XMP:case c.IFRAME:case c.NOEMBED:case c.NOFRAMES:case c.NOSCRIPT:{this.tokenizer.state=nt.RAWTEXT;break}case c.SCRIPT:{this.tokenizer.state=nt.SCRIPT_DATA;break}case c.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 a=this.treeAdapter.getChildNodes(this.document).find(o=>this.treeAdapter.isDocumentTypeNode(o));a&&this.treeAdapter.setNodeSourceCodeLocation(a,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,c.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,a=i[s-1];if(this.treeAdapter.getNodeSourceCodeLocation(a)){const{endLine:u,endCol:l,endOffset:d}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(a,{endLine:u,endCol:l,endOffset:d})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(a,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===c.SVG&&this.treeAdapter.getTagName(n)===H.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===X.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===c.MGLYPH||t.tagID===c.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 Ip(t,i,s,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(i=>i.type===Ct.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(c.P),this.openElements.popUntilTagNamePopped(c.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case c.TR:{this.insertionMode=L.IN_ROW;return}case c.TBODY:case c.THEAD:case c.TFOOT:{this.insertionMode=L.IN_TABLE_BODY;return}case c.CAPTION:{this.insertionMode=L.IN_CAPTION;return}case c.COLGROUP:{this.insertionMode=L.IN_COLUMN_GROUP;return}case c.TABLE:{this.insertionMode=L.IN_TABLE;return}case c.BODY:{this.insertionMode=L.IN_BODY;return}case c.FRAMESET:{this.insertionMode=L.IN_FRAMESET;return}case c.SELECT:{this._resetInsertionModeForSelect(t);return}case c.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case c.HTML:{this.insertionMode=this.headElement?L.AFTER_HEAD:L.BEFORE_HEAD;return}case c.TD:case c.TH:{if(t>0){this.insertionMode=L.IN_CELL;return}break}case c.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===c.TEMPLATE)break;if(r===c.TABLE){this.insertionMode=L.IN_SELECT_IN_TABLE;return}}this.insertionMode=L.IN_SELECT}_isElementCausesFosterParenting(t){return Lo.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 c.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===X.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case c.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 ep[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){cm(this,t);return}switch(this.insertionMode){case L.INITIAL:{$n(this,t);break}case L.BEFORE_HTML:{jn(this,t);break}case L.BEFORE_HEAD:{qn(this,t);break}case L.IN_HEAD:{Yn(this,t);break}case L.IN_HEAD_NO_SCRIPT:{Wn(this,t);break}case L.AFTER_HEAD:{Gn(this,t);break}case L.IN_BODY:case L.IN_CAPTION:case L.IN_CELL:case L.IN_TEMPLATE:{Mo(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:{Gi(this,t);break}case L.IN_TABLE_TEXT:{qo(this,t);break}case L.IN_COLUMN_GROUP:{Sr(this,t);break}case L.AFTER_BODY:{Nr(this,t);break}case L.AFTER_AFTER_BODY:{vr(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){lm(this,t);return}switch(this.insertionMode){case L.INITIAL:{$n(this,t);break}case L.BEFORE_HTML:{jn(this,t);break}case L.BEFORE_HEAD:{qn(this,t);break}case L.IN_HEAD:{Yn(this,t);break}case L.IN_HEAD_NO_SCRIPT:{Wn(this,t);break}case L.AFTER_HEAD:{Gn(this,t);break}case L.TEXT:{this._insertCharacters(t);break}case L.IN_TABLE:case L.IN_TABLE_BODY:case L.IN_ROW:{Gi(this,t);break}case L.IN_COLUMN_GROUP:{Sr(this,t);break}case L.AFTER_BODY:{Nr(this,t);break}case L.AFTER_AFTER_BODY:{vr(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Yi(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:{Yi(this,t);break}case L.IN_TABLE_TEXT:{Xn(this,t);break}case L.AFTER_BODY:{zp(this,t);break}case L.AFTER_AFTER_BODY:case L.AFTER_AFTER_FRAMESET:{$p(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case L.INITIAL:{jp(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:{Xn(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)?dm(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case L.INITIAL:{$n(this,t);break}case L.BEFORE_HTML:{qp(this,t);break}case L.BEFORE_HEAD:{Wp(this,t);break}case L.IN_HEAD:{bt(this,t);break}case L.IN_HEAD_NO_SCRIPT:{Kp(this,t);break}case L.AFTER_HEAD:{Qp(this,t);break}case L.IN_BODY:{Ge(this,t);break}case L.IN_TABLE:{gn(this,t);break}case L.IN_TABLE_TEXT:{Xn(this,t);break}case L.IN_CAPTION:{G0(this,t);break}case L.IN_COLUMN_GROUP:{Vi(this,t);break}case L.IN_TABLE_BODY:{Cr(this,t);break}case L.IN_ROW:{xr(this,t);break}case L.IN_CELL:{X0(this,t);break}case L.IN_SELECT:{Go(this,t);break}case L.IN_SELECT_IN_TABLE:{Z0(this,t);break}case L.IN_TEMPLATE:{em(this,t);break}case L.AFTER_BODY:{nm(this,t);break}case L.IN_FRAMESET:{rm(this,t);break}case L.AFTER_FRAMESET:{sm(this,t);break}case L.AFTER_AFTER_BODY:{om(this,t);break}case L.AFTER_AFTER_FRAMESET:{um(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?hm(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case L.INITIAL:{$n(this,t);break}case L.BEFORE_HTML:{Yp(this,t);break}case L.BEFORE_HEAD:{Gp(this,t);break}case L.IN_HEAD:{Vp(this,t);break}case L.IN_HEAD_NO_SCRIPT:{Xp(this,t);break}case L.AFTER_HEAD:{Zp(this,t);break}case L.IN_BODY:{Ar(this,t);break}case L.TEXT:{B0(this,t);break}case L.IN_TABLE:{Vn(this,t);break}case L.IN_TABLE_TEXT:{Xn(this,t);break}case L.IN_CAPTION:{V0(this,t);break}case L.IN_COLUMN_GROUP:{K0(this,t);break}case L.IN_TABLE_BODY:{Ki(this,t);break}case L.IN_ROW:{Wo(this,t);break}case L.IN_CELL:{Q0(this,t);break}case L.IN_SELECT:{Vo(this,t);break}case L.IN_SELECT_IN_TABLE:{J0(this,t);break}case L.IN_TEMPLATE:{tm(this,t);break}case L.AFTER_BODY:{Xo(this,t);break}case L.IN_FRAMESET:{im(this,t);break}case L.AFTER_FRAMESET:{am(this,t);break}case L.AFTER_AFTER_BODY:{vr(this,t);break}}}onEof(t){switch(this.insertionMode){case L.INITIAL:{$n(this,t);break}case L.BEFORE_HTML:{jn(this,t);break}case L.BEFORE_HEAD:{qn(this,t);break}case L.IN_HEAD:{Yn(this,t);break}case L.IN_HEAD_NO_SCRIPT:{Wn(this,t);break}case L.AFTER_HEAD:{Gn(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:{$o(this,t);break}case L.TEXT:{F0(this,t);break}case L.IN_TABLE_TEXT:{Xn(this,t);break}case L.IN_TEMPLATE:{Ko(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:{Wi(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===A.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:{Do(this,t);break}case L.IN_TABLE:case L.IN_TABLE_BODY:case L.IN_ROW:{Gi(this,t);break}case L.IN_TABLE_TEXT:{jo(this,t);break}}}}function Dp(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):zo(e,t),n}function Mp(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 Bp(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let s=0,a=i;a!==n;s++,a=i){i=e.openElements.getCommonAncestor(a);const o=e.activeFormattingElements.getElementEntry(a),u=o&&s>=Pp;!o||u?(u&&e.activeFormattingElements.removeEntry(o),e.openElements.remove(a)):(a=Fp(e,o),r===t&&(e.activeFormattingElements.bookmark=o),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(a,r),r=a)}return r}function Fp(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 Up(e,t,n){const r=e.treeAdapter.getTagName(t),i=Tr(r);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(n);else{const s=e.treeAdapter.getNamespaceURI(t);i===c.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 qi(e,t){for(let n=0;n<Lp;n++){const r=Dp(e,t);if(!r)break;const i=Mp(e,r);if(!i)break;e.activeFormattingElements.bookmark=r;const s=Bp(e,i,r.element),a=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(s),a&&Up(e,a,s),Hp(e,i,r)}}function Yi(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function zp(e,t){e._appendCommentNode(t,e.openElements.items[0])}function $p(e,t){e._appendCommentNode(t,e.document)}function Wi(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],a=e.treeAdapter.getNodeSourceCodeLocation(s);a&&!a.endTag&&e._setEndLocation(s,t)}}}}function jp(e,t){e._setDocumentType(t);const n=t.forceQuirks?ht.QUIRKS:yp(t);Ep(t)||e._err(t,q.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=L.BEFORE_HTML}function $n(e,t){e._err(t,q.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,ht.QUIRKS),e.insertionMode=L.BEFORE_HTML,e._processToken(t)}function qp(e,t){t.tagID===c.HTML?(e._insertElement(t,X.HTML),e.insertionMode=L.BEFORE_HEAD):jn(e,t)}function Yp(e,t){const n=t.tagID;(n===c.HTML||n===c.HEAD||n===c.BODY||n===c.BR)&&jn(e,t)}function jn(e,t){e._insertFakeRootElement(),e.insertionMode=L.BEFORE_HEAD,e._processToken(t)}function Wp(e,t){switch(t.tagID){case c.HTML:{Ge(e,t);break}case c.HEAD:{e._insertElement(t,X.HTML),e.headElement=e.openElements.current,e.insertionMode=L.IN_HEAD;break}default:qn(e,t)}}function Gp(e,t){const n=t.tagID;n===c.HEAD||n===c.BODY||n===c.HTML||n===c.BR?qn(e,t):e._err(t,q.endTagWithoutMatchingOpenElement)}function qn(e,t){e._insertFakeElement(H.HEAD,c.HEAD),e.headElement=e.openElements.current,e.insertionMode=L.IN_HEAD,e._processToken(t)}function bt(e,t){switch(t.tagID){case c.HTML:{Ge(e,t);break}case c.BASE:case c.BASEFONT:case c.BGSOUND:case c.LINK:case c.META:{e._appendElement(t,X.HTML),t.ackSelfClosing=!0;break}case c.TITLE:{e._switchToTextParsing(t,nt.RCDATA);break}case c.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,nt.RAWTEXT):(e._insertElement(t,X.HTML),e.insertionMode=L.IN_HEAD_NO_SCRIPT);break}case c.NOFRAMES:case c.STYLE:{e._switchToTextParsing(t,nt.RAWTEXT);break}case c.SCRIPT:{e._switchToTextParsing(t,nt.SCRIPT_DATA);break}case c.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=L.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(L.IN_TEMPLATE);break}case c.HEAD:{e._err(t,q.misplacedStartTagForHeadElement);break}default:Yn(e,t)}}function Vp(e,t){switch(t.tagID){case c.HEAD:{e.openElements.pop(),e.insertionMode=L.AFTER_HEAD;break}case c.BODY:case c.BR:case c.HTML:{Yn(e,t);break}case c.TEMPLATE:{an(e,t);break}default:e._err(t,q.endTagWithoutMatchingOpenElement)}}function an(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==c.TEMPLATE&&e._err(t,q.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(c.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,q.endTagWithoutMatchingOpenElement)}function Yn(e,t){e.openElements.pop(),e.insertionMode=L.AFTER_HEAD,e._processToken(t)}function Kp(e,t){switch(t.tagID){case c.HTML:{Ge(e,t);break}case c.BASEFONT:case c.BGSOUND:case c.HEAD:case c.LINK:case c.META:case c.NOFRAMES:case c.STYLE:{bt(e,t);break}case c.NOSCRIPT:{e._err(t,q.nestedNoscriptInHead);break}default:Wn(e,t)}}function Xp(e,t){switch(t.tagID){case c.NOSCRIPT:{e.openElements.pop(),e.insertionMode=L.IN_HEAD;break}case c.BR:{Wn(e,t);break}default:e._err(t,q.endTagWithoutMatchingOpenElement)}}function Wn(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 Qp(e,t){switch(t.tagID){case c.HTML:{Ge(e,t);break}case c.BODY:{e._insertElement(t,X.HTML),e.framesetOk=!1,e.insertionMode=L.IN_BODY;break}case c.FRAMESET:{e._insertElement(t,X.HTML),e.insertionMode=L.IN_FRAMESET;break}case c.BASE:case c.BASEFONT:case c.BGSOUND:case c.LINK:case c.META:case c.NOFRAMES:case c.SCRIPT:case c.STYLE:case c.TEMPLATE:case c.TITLE:{e._err(t,q.abandonedHeadElementChild),e.openElements.push(e.headElement,c.HEAD),bt(e,t),e.openElements.remove(e.headElement);break}case c.HEAD:{e._err(t,q.misplacedStartTagForHeadElement);break}default:Gn(e,t)}}function Zp(e,t){switch(t.tagID){case c.BODY:case c.HTML:case c.BR:{Gn(e,t);break}case c.TEMPLATE:{an(e,t);break}default:e._err(t,q.endTagWithoutMatchingOpenElement)}}function Gn(e,t){e._insertFakeElement(H.BODY,c.BODY),e.insertionMode=L.IN_BODY,kr(e,t)}function kr(e,t){switch(t.type){case Te.CHARACTER:{Mo(e,t);break}case Te.WHITESPACE_CHARACTER:{Do(e,t);break}case Te.COMMENT:{Yi(e,t);break}case Te.START_TAG:{Ge(e,t);break}case Te.END_TAG:{Ar(e,t);break}case Te.EOF:{$o(e,t);break}}}function Do(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function Mo(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Jp(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function e0(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function t0(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 n0(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,X.HTML)}function r0(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&zi.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,X.HTML)}function i0(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,X.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function s0(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,X.HTML),n||(e.formElement=e.openElements.current))}function a0(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===c.LI&&i===c.LI||(n===c.DD||n===c.DT)&&(i===c.DD||i===c.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==c.ADDRESS&&i!==c.DIV&&i!==c.P&&e._isSpecialElement(e.openElements.items[r],i))break}e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,X.HTML)}function o0(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,X.HTML),e.tokenizer.state=nt.PLAINTEXT}function u0(e,t){e.openElements.hasInScope(c.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(c.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,X.HTML),e.framesetOk=!1}function l0(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(H.A);n&&(qi(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 c0(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,X.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function d0(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(c.NOBR)&&(qi(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,X.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function h0(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,X.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function f0(e,t){e.treeAdapter.getDocumentMode(e.document)!==ht.QUIRKS&&e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,X.HTML),e.framesetOk=!1,e.insertionMode=L.IN_TABLE}function Bo(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,X.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Fo(e){const t=go(e,sn.TYPE);return t!=null&&t.toLowerCase()===Op}function p0(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,X.HTML),Fo(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function m0(e,t){e._appendElement(t,X.HTML),t.ackSelfClosing=!0}function g0(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._appendElement(t,X.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function b0(e,t){t.tagName=H.IMG,t.tagID=c.IMG,Bo(e,t)}function E0(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 y0(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,nt.RAWTEXT)}function T0(e,t){e.framesetOk=!1,e._switchToTextParsing(t,nt.RAWTEXT)}function Uo(e,t){e._switchToTextParsing(t,nt.RAWTEXT)}function _0(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 w0(e,t){e.openElements.currentTagId===c.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,X.HTML)}function k0(e,t){e.openElements.hasInScope(c.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,X.HTML)}function A0(e,t){e.openElements.hasInScope(c.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(c.RTC),e._insertElement(t,X.HTML)}function S0(e,t){e._reconstructActiveFormattingElements(),Io(t),ji(t),t.selfClosing?e._appendElement(t,X.MATHML):e._insertElement(t,X.MATHML),t.ackSelfClosing=!0}function C0(e,t){e._reconstructActiveFormattingElements(),Oo(t),ji(t),t.selfClosing?e._appendElement(t,X.SVG):e._insertElement(t,X.SVG),t.ackSelfClosing=!0}function Ho(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,X.HTML)}function Ge(e,t){switch(t.tagID){case c.I:case c.S:case c.B:case c.U:case c.EM:case c.TT:case c.BIG:case c.CODE:case c.FONT:case c.SMALL:case c.STRIKE:case c.STRONG:{c0(e,t);break}case c.A:{l0(e,t);break}case c.H1:case c.H2:case c.H3:case c.H4:case c.H5:case c.H6:{r0(e,t);break}case c.P:case c.DL:case c.OL:case c.UL:case c.DIV:case c.DIR:case c.NAV:case c.MAIN:case c.MENU:case c.ASIDE:case c.CENTER:case c.FIGURE:case c.FOOTER:case c.HEADER:case c.HGROUP:case c.DIALOG:case c.DETAILS:case c.ADDRESS:case c.ARTICLE:case c.SEARCH:case c.SECTION:case c.SUMMARY:case c.FIELDSET:case c.BLOCKQUOTE:case c.FIGCAPTION:{n0(e,t);break}case c.LI:case c.DD:case c.DT:{a0(e,t);break}case c.BR:case c.IMG:case c.WBR:case c.AREA:case c.EMBED:case c.KEYGEN:{Bo(e,t);break}case c.HR:{g0(e,t);break}case c.RB:case c.RTC:{k0(e,t);break}case c.RT:case c.RP:{A0(e,t);break}case c.PRE:case c.LISTING:{i0(e,t);break}case c.XMP:{y0(e,t);break}case c.SVG:{C0(e,t);break}case c.HTML:{Jp(e,t);break}case c.BASE:case c.LINK:case c.META:case c.STYLE:case c.TITLE:case c.SCRIPT:case c.BGSOUND:case c.BASEFONT:case c.TEMPLATE:{bt(e,t);break}case c.BODY:{e0(e,t);break}case c.FORM:{s0(e,t);break}case c.NOBR:{d0(e,t);break}case c.MATH:{S0(e,t);break}case c.TABLE:{f0(e,t);break}case c.INPUT:{p0(e,t);break}case c.PARAM:case c.TRACK:case c.SOURCE:{m0(e,t);break}case c.IMAGE:{b0(e,t);break}case c.BUTTON:{u0(e,t);break}case c.APPLET:case c.OBJECT:case c.MARQUEE:{h0(e,t);break}case c.IFRAME:{T0(e,t);break}case c.SELECT:{_0(e,t);break}case c.OPTION:case c.OPTGROUP:{w0(e,t);break}case c.NOEMBED:case c.NOFRAMES:{Uo(e,t);break}case c.FRAMESET:{t0(e,t);break}case c.TEXTAREA:{E0(e,t);break}case c.NOSCRIPT:{e.options.scriptingEnabled?Uo(e,t):Ho(e,t);break}case c.PLAINTEXT:{o0(e,t);break}case c.COL:case c.TH:case c.TD:case c.TR:case c.HEAD:case c.FRAME:case c.TBODY:case c.TFOOT:case c.THEAD:case c.CAPTION:case c.COLGROUP:break;default:Ho(e,t)}}function x0(e,t){if(e.openElements.hasInScope(c.BODY)&&(e.insertionMode=L.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function N0(e,t){e.openElements.hasInScope(c.BODY)&&(e.insertionMode=L.AFTER_BODY,Xo(e,t))}function v0(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function I0(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(c.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(c.FORM):n&&e.openElements.remove(n))}function O0(e){e.openElements.hasInButtonScope(c.P)||e._insertFakeElement(H.P,c.P),e._closePElement()}function L0(e){e.openElements.hasInListItemScope(c.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(c.LI),e.openElements.popUntilTagNamePopped(c.LI))}function P0(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function R0(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function D0(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function M0(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(H.BR,c.BR),e.openElements.pop(),e.framesetOk=!1}function zo(e,t){const n=t.tagName,r=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const s=e.openElements.items[i],a=e.openElements.tagIDs[i];if(r===a&&(r!==c.UNKNOWN||e.treeAdapter.getTagName(s)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(s,a))break}}function Ar(e,t){switch(t.tagID){case c.A:case c.B:case c.I:case c.S:case c.U:case c.EM:case c.TT:case c.BIG:case c.CODE:case c.FONT:case c.NOBR:case c.SMALL:case c.STRIKE:case c.STRONG:{qi(e,t);break}case c.P:{O0(e);break}case c.DL:case c.UL:case c.OL:case c.DIR:case c.DIV:case c.NAV:case c.PRE:case c.MAIN:case c.MENU:case c.ASIDE:case c.BUTTON:case c.CENTER:case c.FIGURE:case c.FOOTER:case c.HEADER:case c.HGROUP:case c.DIALOG:case c.ADDRESS:case c.ARTICLE:case c.DETAILS:case c.SEARCH:case c.SECTION:case c.SUMMARY:case c.LISTING:case c.FIELDSET:case c.BLOCKQUOTE:case c.FIGCAPTION:{v0(e,t);break}case c.LI:{L0(e);break}case c.DD:case c.DT:{P0(e,t);break}case c.H1:case c.H2:case c.H3:case c.H4:case c.H5:case c.H6:{R0(e);break}case c.BR:{M0(e);break}case c.BODY:{x0(e,t);break}case c.HTML:{N0(e,t);break}case c.FORM:{I0(e);break}case c.APPLET:case c.OBJECT:case c.MARQUEE:{D0(e,t);break}case c.TEMPLATE:{an(e,t);break}default:zo(e,t)}}function $o(e,t){e.tmplInsertionModeStack.length>0?Ko(e,t):Wi(e,t)}function B0(e,t){var n;t.tagID===c.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function F0(e,t){e._err(t,q.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Gi(e,t){if(e.openElements.currentTagId!==void 0&&Lo.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:{qo(e,t);break}case Te.WHITESPACE_CHARACTER:{jo(e,t);break}}else Kn(e,t)}function U0(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 z0(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(H.COLGROUP,c.COLGROUP),e.insertionMode=L.IN_COLUMN_GROUP,Vi(e,t)}function $0(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,X.HTML),e.insertionMode=L.IN_TABLE_BODY}function j0(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(H.TBODY,c.TBODY),e.insertionMode=L.IN_TABLE_BODY,Cr(e,t)}function q0(e,t){e.openElements.hasInTableScope(c.TABLE)&&(e.openElements.popUntilTagNamePopped(c.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function Y0(e,t){Fo(t)?e._appendElement(t,X.HTML):Kn(e,t),t.ackSelfClosing=!0}function W0(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,X.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function gn(e,t){switch(t.tagID){case c.TD:case c.TH:case c.TR:{j0(e,t);break}case c.STYLE:case c.SCRIPT:case c.TEMPLATE:{bt(e,t);break}case c.COL:{z0(e,t);break}case c.FORM:{W0(e,t);break}case c.TABLE:{q0(e,t);break}case c.TBODY:case c.TFOOT:case c.THEAD:{$0(e,t);break}case c.INPUT:{Y0(e,t);break}case c.CAPTION:{U0(e,t);break}case c.COLGROUP:{H0(e,t);break}default:Kn(e,t)}}function Vn(e,t){switch(t.tagID){case c.TABLE:{e.openElements.hasInTableScope(c.TABLE)&&(e.openElements.popUntilTagNamePopped(c.TABLE),e._resetInsertionMode());break}case c.TEMPLATE:{an(e,t);break}case c.BODY:case c.CAPTION:case c.COL:case c.COLGROUP:case c.HTML:case c.TBODY:case c.TD:case c.TFOOT:case c.TH:case c.THEAD:case c.TR:break;default:Kn(e,t)}}function Kn(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,kr(e,t),e.fosterParentingEnabled=n}function jo(e,t){e.pendingCharacterTokens.push(t)}function qo(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Xn(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)Kn(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const Yo=new Set([c.CAPTION,c.COL,c.COLGROUP,c.TBODY,c.TD,c.TFOOT,c.TH,c.THEAD,c.TR]);function G0(e,t){const n=t.tagID;Yo.has(n)?e.openElements.hasInTableScope(c.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(c.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=L.IN_TABLE,gn(e,t)):Ge(e,t)}function V0(e,t){const n=t.tagID;switch(n){case c.CAPTION:case c.TABLE:{e.openElements.hasInTableScope(c.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(c.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=L.IN_TABLE,n===c.TABLE&&Vn(e,t));break}case c.BODY:case c.COL:case c.COLGROUP:case c.HTML:case c.TBODY:case c.TD:case c.TFOOT:case c.TH:case c.THEAD:case c.TR:break;default:Ar(e,t)}}function Vi(e,t){switch(t.tagID){case c.HTML:{Ge(e,t);break}case c.COL:{e._appendElement(t,X.HTML),t.ackSelfClosing=!0;break}case c.TEMPLATE:{bt(e,t);break}default:Sr(e,t)}}function K0(e,t){switch(t.tagID){case c.COLGROUP:{e.openElements.currentTagId===c.COLGROUP&&(e.openElements.pop(),e.insertionMode=L.IN_TABLE);break}case c.TEMPLATE:{an(e,t);break}case c.COL:break;default:Sr(e,t)}}function Sr(e,t){e.openElements.currentTagId===c.COLGROUP&&(e.openElements.pop(),e.insertionMode=L.IN_TABLE,e._processToken(t))}function Cr(e,t){switch(t.tagID){case c.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,X.HTML),e.insertionMode=L.IN_ROW;break}case c.TH:case c.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(H.TR,c.TR),e.insertionMode=L.IN_ROW,xr(e,t);break}case c.CAPTION:case c.COL:case c.COLGROUP:case c.TBODY:case c.TFOOT:case c.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=L.IN_TABLE,gn(e,t));break}default:gn(e,t)}}function Ki(e,t){const n=t.tagID;switch(t.tagID){case c.TBODY:case c.TFOOT:case c.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=L.IN_TABLE);break}case c.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=L.IN_TABLE,Vn(e,t));break}case c.BODY:case c.CAPTION:case c.COL:case c.COLGROUP:case c.HTML:case c.TD:case c.TH:case c.TR:break;default:Vn(e,t)}}function xr(e,t){switch(t.tagID){case c.TH:case c.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,X.HTML),e.insertionMode=L.IN_CELL,e.activeFormattingElements.insertMarker();break}case c.CAPTION:case c.COL:case c.COLGROUP:case c.TBODY:case c.TFOOT:case c.THEAD:case c.TR:{e.openElements.hasInTableScope(c.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=L.IN_TABLE_BODY,Cr(e,t));break}default:gn(e,t)}}function Wo(e,t){switch(t.tagID){case c.TR:{e.openElements.hasInTableScope(c.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=L.IN_TABLE_BODY);break}case c.TABLE:{e.openElements.hasInTableScope(c.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=L.IN_TABLE_BODY,Ki(e,t));break}case c.TBODY:case c.TFOOT:case c.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(c.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=L.IN_TABLE_BODY,Ki(e,t));break}case c.BODY:case c.CAPTION:case c.COL:case c.COLGROUP:case c.HTML:case c.TD:case c.TH:break;default:Vn(e,t)}}function X0(e,t){const n=t.tagID;Yo.has(n)?(e.openElements.hasInTableScope(c.TD)||e.openElements.hasInTableScope(c.TH))&&(e._closeTableCell(),xr(e,t)):Ge(e,t)}function Q0(e,t){const n=t.tagID;switch(n){case c.TD:case c.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=L.IN_ROW);break}case c.TABLE:case c.TBODY:case c.TFOOT:case c.THEAD:case c.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),Wo(e,t));break}case c.BODY:case c.CAPTION:case c.COL:case c.COLGROUP:case c.HTML:break;default:Ar(e,t)}}function Go(e,t){switch(t.tagID){case c.HTML:{Ge(e,t);break}case c.OPTION:{e.openElements.currentTagId===c.OPTION&&e.openElements.pop(),e._insertElement(t,X.HTML);break}case c.OPTGROUP:{e.openElements.currentTagId===c.OPTION&&e.openElements.pop(),e.openElements.currentTagId===c.OPTGROUP&&e.openElements.pop(),e._insertElement(t,X.HTML);break}case c.HR:{e.openElements.currentTagId===c.OPTION&&e.openElements.pop(),e.openElements.currentTagId===c.OPTGROUP&&e.openElements.pop(),e._appendElement(t,X.HTML),t.ackSelfClosing=!0;break}case c.INPUT:case c.KEYGEN:case c.TEXTAREA:case c.SELECT:{e.openElements.hasInSelectScope(c.SELECT)&&(e.openElements.popUntilTagNamePopped(c.SELECT),e._resetInsertionMode(),t.tagID!==c.SELECT&&e._processStartTag(t));break}case c.SCRIPT:case c.TEMPLATE:{bt(e,t);break}}}function Vo(e,t){switch(t.tagID){case c.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===c.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===c.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===c.OPTGROUP&&e.openElements.pop();break}case c.OPTION:{e.openElements.currentTagId===c.OPTION&&e.openElements.pop();break}case c.SELECT:{e.openElements.hasInSelectScope(c.SELECT)&&(e.openElements.popUntilTagNamePopped(c.SELECT),e._resetInsertionMode());break}case c.TEMPLATE:{an(e,t);break}}}function Z0(e,t){const n=t.tagID;n===c.CAPTION||n===c.TABLE||n===c.TBODY||n===c.TFOOT||n===c.THEAD||n===c.TR||n===c.TD||n===c.TH?(e.openElements.popUntilTagNamePopped(c.SELECT),e._resetInsertionMode(),e._processStartTag(t)):Go(e,t)}function J0(e,t){const n=t.tagID;n===c.CAPTION||n===c.TABLE||n===c.TBODY||n===c.TFOOT||n===c.THEAD||n===c.TR||n===c.TD||n===c.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(c.SELECT),e._resetInsertionMode(),e.onEndTag(t)):Vo(e,t)}function em(e,t){switch(t.tagID){case c.BASE:case c.BASEFONT:case c.BGSOUND:case c.LINK:case c.META:case c.NOFRAMES:case c.SCRIPT:case c.STYLE:case c.TEMPLATE:case c.TITLE:{bt(e,t);break}case c.CAPTION:case c.COLGROUP:case c.TBODY:case c.TFOOT:case c.THEAD:{e.tmplInsertionModeStack[0]=L.IN_TABLE,e.insertionMode=L.IN_TABLE,gn(e,t);break}case c.COL:{e.tmplInsertionModeStack[0]=L.IN_COLUMN_GROUP,e.insertionMode=L.IN_COLUMN_GROUP,Vi(e,t);break}case c.TR:{e.tmplInsertionModeStack[0]=L.IN_TABLE_BODY,e.insertionMode=L.IN_TABLE_BODY,Cr(e,t);break}case c.TD:case c.TH:{e.tmplInsertionModeStack[0]=L.IN_ROW,e.insertionMode=L.IN_ROW,xr(e,t);break}default:e.tmplInsertionModeStack[0]=L.IN_BODY,e.insertionMode=L.IN_BODY,Ge(e,t)}}function tm(e,t){t.tagID===c.TEMPLATE&&an(e,t)}function Ko(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(c.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Wi(e,t)}function nm(e,t){t.tagID===c.HTML?Ge(e,t):Nr(e,t)}function Xo(e,t){var n;if(t.tagID===c.HTML){if(e.fragmentContext||(e.insertionMode=L.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===c.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 Nr(e,t)}function Nr(e,t){e.insertionMode=L.IN_BODY,kr(e,t)}function rm(e,t){switch(t.tagID){case c.HTML:{Ge(e,t);break}case c.FRAMESET:{e._insertElement(t,X.HTML);break}case c.FRAME:{e._appendElement(t,X.HTML),t.ackSelfClosing=!0;break}case c.NOFRAMES:{bt(e,t);break}}}function im(e,t){t.tagID===c.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==c.FRAMESET&&(e.insertionMode=L.AFTER_FRAMESET))}function sm(e,t){switch(t.tagID){case c.HTML:{Ge(e,t);break}case c.NOFRAMES:{bt(e,t);break}}}function am(e,t){t.tagID===c.HTML&&(e.insertionMode=L.AFTER_AFTER_FRAMESET)}function om(e,t){t.tagID===c.HTML?Ge(e,t):vr(e,t)}function vr(e,t){e.insertionMode=L.IN_BODY,kr(e,t)}function um(e,t){switch(t.tagID){case c.HTML:{Ge(e,t);break}case c.NOFRAMES:{bt(e,t);break}}}function lm(e,t){t.chars=Ie,e._insertCharacters(t)}function cm(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 dm(e,t){if(Cp(t))Qo(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===X.MATHML?Io(t):r===X.SVG&&(xp(t),Oo(t)),ji(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function hm(e,t){if(t.tagID===c.P||t.tagID===c.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 fm(e,t){return Ro.parse(e,t)}function pm(e,t,n){typeof e=="string"&&(n=t,t=e,e=null);const r=Ro.getFragmentParser(e,n);return r.tokenizer.write(t,!0),r.getFragment()}function mm(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Zo(e.position):"start"in e||"end"in e?Zo(e):"line"in e||"column"in e?Xi(e):""}function Xi(e){return Jo(e&&e.line)+":"+Jo(e&&e.column)}function Zo(e){return Xi(e&&e.start)+"-"+Xi(e&&e.end)}function Jo(e){return e&&typeof e=="number"?e:1}class Je extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",s={},a=!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&&(a=!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 o=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=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=o?o.line:void 0,this.name=mm(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=a&&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}}Je.prototype.file="",Je.prototype.name="",Je.prototype.reason="",Je.prototype.message="",Je.prototype.stack="",Je.prototype.column=void 0,Je.prototype.line=void 0,Je.prototype.ancestors=void 0,Je.prototype.cause=void 0,Je.prototype.fatal=void 0,Je.prototype.place=void 0,Je.prototype.ruleId=void 0,Je.prototype.source=void 0;const xt={basename:gm,dirname:bm,extname:Em,join:ym,sep:"/"};function gm(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Qn(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 a=-1,o=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(s){n=i+1;break}}else a<0&&(s=!0,a=i+1),o>-1&&(e.codePointAt(i)===t.codePointAt(o--)?o<0&&(r=i):(o=-1,r=a));return n===r?r=a:r<0&&(r=e.length),e.slice(n,r)}function bm(e){if(Qn(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 Em(e){Qn(e);let t=e.length,n=-1,r=0,i=-1,s=0,a;for(;t--;){const o=e.codePointAt(t);if(o===47){if(a){r=t+1;break}continue}n<0&&(a=!0,n=t+1),o===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 ym(...e){let t=-1,n;for(;++t<e.length;)Qn(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Tm(n)}function Tm(e){Qn(e);const t=e.codePointAt(0)===47;let n=_m(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function _m(e,t){let n="",r=0,i=-1,s=0,a=-1,o,u;for(;++a<=e.length;){if(a<e.length)o=e.codePointAt(a);else{if(o===47)break;o=47}if(o===47){if(!(i===a-1||s===1))if(i!==a-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=a,s=0;continue}}else if(n.length>0){n="",r=0,i=a,s=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,a):n=e.slice(i+1,a),r=a-i-1;i=a,s=0}else o===46&&s>-1?s++:s=-1}return n}function Qn(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const wm={cwd:km};function km(){return"/"}function Qi(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Am(e){if(typeof e=="string")e=new URL(e);else if(!Qi(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 Sm(e)}function Sm(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 Zi=["history","path","basename","stem","extname","dirname"];class eu{constructor(t){let n;t?Qi(t)?n={path:t}:typeof t=="string"||Cm(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":wm.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Zi.length;){const s=Zi[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)Zi.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?xt.basename(this.path):void 0}set basename(t){es(t,"basename"),Ji(t,"basename"),this.path=xt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?xt.dirname(this.path):void 0}set dirname(t){tu(this.basename,"dirname"),this.path=xt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?xt.extname(this.path):void 0}set extname(t){if(Ji(t,"extname"),tu(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=xt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Qi(t)&&(t=Am(t)),es(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?xt.basename(this.path,this.extname):void 0}set stem(t){es(t,"stem"),Ji(t,"stem"),this.path=xt.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 Je(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 Ji(e,t){if(e&&e.includes(xt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+xt.sep+"`")}function es(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function tu(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Cm(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const xm={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"}},Nm="https://html.spec.whatwg.org/multipage/parsing.html#parse-error-",vm=/-[a-z]/g,Im=/%c(?:([-+])(\d+))?/g,Om=/%x/g,Lm={2:!0,1:!1,0:null},Pm={};function Rm(e,t){const n=t||Pm,r=n.onerror,i=e instanceof eu?e:new eu(e),s=n.fragment?pm:fm,a=String(i),o=s(a,{sourceCodeLocationInfo:!0,onParseError:n.onerror?u:null,scriptingEnabled:!1});return Mf(o,{file:i,space:n.space,verbose:n.verbose});function u(l){const d=l.code,h=Dm(d),p=n[h],f=p??!0,g=typeof f=="number"?f:f?1:0;if(g){const _=xm[h],m=new Je(b(_.reason),{place:{start:{line:l.startLine,column:l.startCol,offset:l.startOffset},end:{line:l.endLine,column:l.endCol,offset:l.endOffset}},ruleId:d,source:"hast-util-from-html"});i.path&&(m.file=i.path,m.name=i.path+":"+m.name),m.fatal=Lm[g],m.note=b(_.description),m.url=_.url===!1?void 0:Nm+d,r(m)}function b(_){return _.replace(Im,m).replace(Om,E);function m(S,I,D){const B=(D?Number.parseInt(D,10):0)*(I==="-"?-1:1),C=a.charAt(l.startOffset+B);return Bm(C)}function E(){return Fm(a.charCodeAt(l.startOffset))}}}}function Dm(e){return e.replace(vm,Mm)}function Mm(e){return e.charAt(1).toUpperCase()}function Bm(e){return e==="`"?"` ` `":e}function Fm(e){return"0x"+e.toString(16).toUpperCase()}const Gt=0,ne=1,pe=2,Be=3,xe=4,Et=5,Ir=6,Ve=7,rt=8,ge=9,fe=10,Oe=11,be=12,Le=13,Zn=14,it=15,Ke=16,Xe=17,st=18,ot=19,ft=20,_e=21,de=22,$e=23,ut=24,Ye=25,Um=0;function We(e){return e>=48&&e<=57}function Vt(e){return We(e)||e>=65&&e<=70||e>=97&&e<=102}function ts(e){return e>=65&&e<=90}function Hm(e){return e>=97&&e<=122}function zm(e){return ts(e)||Hm(e)}function $m(e){return e>=128}function Or(e){return zm(e)||$m(e)||e===95}function nu(e){return Or(e)||We(e)||e===45}function jm(e){return e>=0&&e<=8||e===11||e>=14&&e<=31||e===127}function Lr(e){return e===10||e===13||e===12}function on(e){return Lr(e)||e===32||e===9}function Nt(e,t){return!(e!==92||Lr(t)||t===Um)}function Pr(e,t,n){return e===45?Or(t)||t===45||Nt(t,n):Or(e)?!0:e===92?Nt(e,t):!1}function ns(e,t,n){return e===43||e===45?We(t)?2:t===46&&We(n)?3:0:e===46?We(t)?2:0:We(e)?1:0}function ru(e){return e===65279||e===65534?1:0}const rs=new Array(128),qm=128,Rr=130,iu=131,is=132,su=133;for(let e=0;e<rs.length;e++)rs[e]=on(e)&&Rr||We(e)&&iu||Or(e)&&is||jm(e)&&su||e||qm;function ss(e){return e<128?rs[e]:is}function bn(e,t){return t<e.length?e.charCodeAt(t):0}function as(e,t,n){return n===13&&bn(e,t+1)===10?2:1}function En(e,t,n){let r=e.charCodeAt(t);return ts(r)&&(r=r|32),r===n}function Jn(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 a=e.charCodeAt(i);if(ts(a)&&(a=a|32),a!==s)return!1}return!0}function Ym(e,t){for(;t>=0&&on(e.charCodeAt(t));t--);return t+1}function Dr(e,t){for(;t<e.length&&on(e.charCodeAt(t));t++);return t}function os(e,t){for(;t<e.length&&We(e.charCodeAt(t));t++);return t}function yn(e,t){if(t+=2,Vt(bn(e,t-1))){for(const r=Math.min(e.length,t+5);t<r&&Vt(bn(e,t));t++);const n=bn(e,t);on(n)&&(t+=as(e,t,n))}return t}function Mr(e,t){for(;t<e.length;t++){const n=e.charCodeAt(t);if(!nu(n)){if(Nt(n,bn(e,t+1))){t=yn(e,t)-1;continue}break}}return t}function Br(e,t){let n=e.charCodeAt(t);if((n===43||n===45)&&(n=e.charCodeAt(t+=1)),We(n)&&(t=os(e,t+1),n=e.charCodeAt(t)),n===46&&We(e.charCodeAt(t+1))&&(t+=2,t=os(e,t)),En(e,t,101)){let r=0;n=e.charCodeAt(t+1),(n===45||n===43)&&(r=1,n=e.charCodeAt(t+2)),We(n)&&(t=os(e,t+1+r+1))}return t}function us(e,t){for(;t<e.length;t++){const n=e.charCodeAt(t);if(n===41){t++;break}Nt(n,bn(e,t+1))&&(t=yn(e,t))}return t}function au(e){if(e.length===1&&!Vt(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 ls=["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"],Wm=16*1024;function Fr(e=null,t){return e===null||e.length<t?new Uint32Array(Math.max(t+1024,Wm)):e}const ou=10,Gm=12,uu=13;function lu(e){const t=e.source,n=t.length,r=t.length>0?ru(t.charCodeAt(0)):0,i=Fr(e.lines,n),s=Fr(e.columns,n);let a=e.startLine,o=e.startColumn;for(let u=r;u<n;u++){const l=t.charCodeAt(u);i[u]=a,s[u]=o++,(l===ou||l===uu||l===Gm)&&(l===uu&&u+1<n&&t.charCodeAt(u+1)===ou&&(u++,i[u]=a,s[u]=o),a++,o=1)}i[n]=a,s[n]=o,e.lines=i,e.columns=s,e.computed=!0}class Vm{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||lu(this),{source:n,offset:this.startOffset+t,line:this.lines[t],column:this.columns[t]}}getLocationRange(t,n,r){return this.computed||lu(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,er=1,Ur=2,Kt=new Uint8Array(32);Kt[pe]=de,Kt[_e]=de,Kt[ot]=ft,Kt[$e]=ut;const _t=new Uint8Array(32);_t[pe]=er,_t[_e]=er,_t[ot]=er,_t[$e]=er,_t[de]=Ur,_t[ft]=Ur,_t[ut]=Ur;function cu(e,t,n){return e<t?t:e>n?n:e}class Km{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=Fr(this.offsetAndType,t.length+1),s=Fr(this.balance,t.length+1);let a=0,o=-1,u=0,l=t.length;this.offsetAndType=null,this.balance=null,s.fill(0),n(t,(d,h,p)=>{const f=a++;if(i[f]=d<<Tt|p,o===-1&&(o=h),s[f]=l,d===u){const g=s[l];s[l]=f,l=g,u=Kt[i[g]>>Tt]}else this.isBlockOpenerTokenType(d)&&(l=f,u=Kt[d])}),i[a]=Gt<<Tt|r,s[a]=a;for(let d=0;d<a;d++){const h=s[d];if(h<=d){const p=s[h];p!==d&&(s[d]=p)}else h>a&&(s[d]=a)}this.source=t,this.firstCharOffset=o===-1?0:o,this.tokenCount=a,this.offsetAndType=i,this.balance=s,this.reset(),this.next()}lookupType(t){return t+=this.tokenIndex,t<this.tokenCount?this.offsetAndType[t]>>Tt:Gt}lookupTypeNonSC(t){for(let n=this.tokenIndex;n<this.tokenCount;n++){const r=this.offsetAndType[n]>>Tt;if(r!==Le&&r!==Ye&&t--===0)return r}return Gt}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!==Ye&&t--===0)return n-this.tokenIndex}return Gt}lookupValue(t,n){return t+=this.tokenIndex,t<this.tokenCount?Jn(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[cu(t,0,this.tokenCount)]&yt}getTokenType(t){return t===this.tokenIndex?this.tokenType:this.offsetAndType[cu(t,0,this.tokenCount)]>>Tt}substrToCursor(t){return this.source.substring(t,this.tokenStart)}isBlockOpenerTokenType(t){return _t[t]===er}isBlockCloserTokenType(t){return _t[t]===Ur}getBlockTokenPairIndex(t){const n=this.getTokenType(t);if(_t[n]===1){const r=this.balance[t],i=this.getTokenType(r);return Kt[n]===i?r:-1}else if(_t[n]===2){const r=this.balance[t],i=this.getTokenType(r);return Kt[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=Gt,this.tokenStart=this.tokenEnd=this.source.length)}skipSC(){for(;this.tokenType===Le||this.tokenType===Ye;)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],a=s&yt,o=s>>Tt;r=a,t(o,i,a,n)}}dump(){const t=new Array(this.tokenCount);return this.forEachToken((n,r,i,s)=>{t[s]={idx:s,type:ls[n],chunk:this.source.substring(r,i),balance:this.balance[s]}}),t}}function Hr(e,t){function n(h){return h<o?e.charCodeAt(h):0}function r(){if(l=Br(e,l),Pr(n(l),n(l+1),n(l+2))){d=be,l=Mr(e,l);return}if(n(l)===37){d=Oe,l++;return}d=fe}function i(){const h=l;if(l=Mr(e,l),Jn(e,h,l,"url")&&n(l)===40){if(l=Dr(e,l+1),n(l)===34||n(l)===39){d=pe,l=h+4;return}a();return}if(n(l)===40){d=pe,l++;return}d=ne}function s(h){for(h||(h=n(l++)),d=Et;l<e.length;l++){const p=e.charCodeAt(l);switch(ss(p)){case h:l++;return;case Rr:if(Lr(p)){l+=as(e,l,p),d=Ir;return}break;case 92:if(l===e.length-1)break;const f=n(l+1);Lr(f)?l+=as(e,l+1,f):Nt(p,f)&&(l=yn(e,l)-1);break}}}function a(){for(d=Ve,l=Dr(e,l);l<e.length;l++){const h=e.charCodeAt(l);switch(ss(h)){case 41:l++;return;case Rr:if(l=Dr(e,l),n(l)===41||l>=e.length){l<e.length&&l++;return}l=us(e,l),d=rt;return;case 34:case 39:case 40:case su:l=us(e,l),d=rt;return;case 92:if(Nt(h,n(l+1))){l=yn(e,l)-1;break}l=us(e,l),d=rt;return}}}e=String(e||"");const o=e.length;let u=ru(n(0)),l=u,d;for(;l<o;){const h=e.charCodeAt(l);switch(ss(h)){case Rr:d=Le,l=Dr(e,l+1);break;case 34:s();break;case 35:nu(n(l+1))||Nt(n(l+1),n(l+2))?(d=xe,l=Mr(e,l+1)):(d=ge,l++);break;case 39:s();break;case 40:d=_e,l++;break;case 41:d=de,l++;break;case 43:ns(h,n(l+1),n(l+2))?r():(d=ge,l++);break;case 44:d=st,l++;break;case 45:ns(h,n(l+1),n(l+2))?r():n(l+1)===45&&n(l+2)===62?(d=it,l=l+3):Pr(h,n(l+1),n(l+2))?i():(d=ge,l++);break;case 46:ns(h,n(l+1),n(l+2))?r():(d=ge,l++);break;case 47:n(l+1)===42?(d=Ye,l=e.indexOf("*/",l+2),l=l===-1?e.length:l+2):(d=ge,l++);break;case 58:d=Ke,l++;break;case 59:d=Xe,l++;break;case 60:n(l+1)===33&&n(l+2)===45&&n(l+3)===45?(d=Zn,l=l+4):(d=ge,l++);break;case 64:Pr(n(l+1),n(l+2),n(l+3))?(d=Be,l=Mr(e,l+1)):(d=ge,l++);break;case 91:d=ot,l++;break;case 92:Nt(h,n(l+1))?i():(d=ge,l++);break;case 93:d=ft,l++;break;case 123:d=$e,l++;break;case 125:d=ut,l++;break;case iu:r();break;case is:i();break;default:d=ge,l++}t(d,u,u=l)}}let Tn=null;class je{static createItem(t){return{prev:null,next:null,data:t}}constructor(){this.head=null,this.tail=null,this.cursor=null}createItem(t){return je.createItem(t)}allocateCursor(t,n){let r;return Tn!==null?(r=Tn,Tn=Tn.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=Tn,Tn=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=je.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,a;for(;i.next!==null;)a=i.next,i.next=a.next,s=t.call(r,s,a.data,a,this);return this.releaseCursor(),s}reduceRight(t,n,r=this){let i=this.allocateCursor(this.tail,null),s=n,a;for(;i.prev!==null;)a=i.prev,i.prev=a.prev,s=t.call(r,s,a.data,a,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 je;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 je;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 je;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(je.createItem(t))}append(t){return this.insert(t)}appendData(t){return this.insert(je.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(je.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(je.createItem(t))}pop(){return this.tail!==null?this.remove(this.tail):null}unshift(t){this.prepend(je.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 zr(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
|
|
4
|
-
`)}const
|
|
5
|
-
`.repeat(Math.max(r-1,0)),u=" ".repeat(Math.max(i-1,0)),l=(
|
|
6
|
-
`).replace(/^(\s+\d+\s+\|\n)+/,"").replace(/\n(\s+\d+\s+\|)+$/,"")}function
|
|
7
|
-
`+fu({source:t,line:r,column:i,baseLine:s,baseColumn:a},2)}})}function Xm(e){const t=this.createList();let n=!1;const r={recognizer:e};for(;!this.eof;){switch(this.tokenType){case Ye: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 _n=()=>{},Qm=33,Zm=35,ds=59,mu=123,gu=0,Jm={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}},eg={createList(){return new je},createSingleNodeList(e){return new je().appendData(e)},getFirstListNode(e){return e&&e.first},getLastListNode(e){return e&&e.last}};function tg(e){return function(){return this[e]()}}function hs(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 ng(e){const t={context:Object.create(null),features:Object.assign(Object.create(null),e.features),scope:Object.assign(Object.create(null),e.scope),atrule:hs(e.atrule),pseudo:hs(e.pseudo),node:hs(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]=tg(r);break}return{config:t,...t,...t.node}}function rg(e){let t="",n="<unknown>",r=!1,i=_n,s=!1;const a=new Vm,o=Object.assign(new Km,ng(e||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:Xm,consumeUntilBalanceEnd:()=>0,consumeUntilLeftCurlyBracket(d){return d===mu?1:0},consumeUntilLeftCurlyBracketOrSemicolon(d){return d===mu||d===ds?1:0},consumeUntilExclamationMarkOrSemicolon(d){return d===Qm||d===ds?1:0},consumeUntilSemicolonIncluded(d){return d===ds?2:0},createList:_n,createSingleNodeList:_n,getFirstListNode:_n,getLastListNode:_n,parseWithFallback(d,h){const p=this.tokenIndex;try{return d.call(this)}catch(f){if(s)throw f;this.skip(p-this.tokenIndex);const g=h.call(this);return s=!0,i(f,g),s=!1,g}},lookupNonWSType(d){let h;do if(h=this.lookupType(d++),h!==Le&&h!==Ye)return h;while(h!==gu);return gu},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 En(t,d,h)},cmpStr(d,h,p){return Jn(t,d,h,p)},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,Br(t,this.tokenStart));return this.eat(d),h},eat(d){if(this.tokenType!==d){const h=ls[d].slice(0,-6).replace(/-/g," ").replace(/^./,g=>g.toUpperCase());let p=`${/[[\](){}]/.test(h)?`"${h}"`:h} is expected`,f=this.tokenStart;switch(d){case ne:this.tokenType===pe||this.tokenType===Ve?(f=this.tokenEnd-1,p="Identifier is expected but function found"):p="Identifier is expected";break;case xe:this.isDelim(Zm)&&(this.next(),f++,p="Name is expected");break;case Oe:this.tokenType===fe&&(f=this.tokenEnd,p="Percent sign is expected");break}this.error(p,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?a.getLocationRange(d,h,n):null},getLocationFromList(d){if(r){const h=this.getFirstListNode(d),p=this.getLastListNode(d);return a.getLocationRange(h!==null?h.loc.start.offset-a.startOffset:this.tokenStart,p!==null?p.loc.end.offset-a.startOffset:this.tokenStart,n)}return null},error(d,h){const p=typeof h<"u"&&h<t.length?a.getLocation(h):this.eof?a.getLocation(Ym(t,t.length-1)):a.getLocation(this.tokenStart);throw new pu(d||"Unexpected input",t,p.offset,p.line,p.column,a.startLine,a.startColumn)}}),u=()=>({filename:n,source:t,tokenCount:o.tokenCount,getTokenType:d=>o.getTokenType(d),getTokenTypeName:d=>ls[o.getTokenType(d)],getTokenStart:d=>o.getTokenStart(d),getTokenEnd:d=>o.getTokenEnd(d),getTokenValue:d=>o.source.substring(o.getTokenStart(d),o.getTokenEnd(d)),substring:(d,h)=>o.source.substring(d,h),balance:o.balance.subarray(0,o.tokenCount+1),isBlockOpenerTokenType:o.isBlockOpenerTokenType,isBlockCloserTokenType:o.isBlockCloserTokenType,getBlockTokenPairIndex:d=>o.getBlockTokenPairIndex(d),getLocation:d=>a.getLocation(d,n),getRangeLocation:(d,h)=>a.getLocationRange(d,h,n)});return Object.assign(function(d,h){t=d,h=h||{},o.setSource(t,Hr),a.setSource(t,h.offset,h.line,h.column),n=h.filename||"<unknown>",r=!!h.positions,i=typeof h.onParseError=="function"?h.onParseError:_n,s=!1,o.parseAtrulePrelude="parseAtrulePrelude"in h?!!h.parseAtrulePrelude:!0,o.parseRulePrelude="parseRulePrelude"in h?!!h.parseRulePrelude:!0,o.parseValue="parseValue"in h?!!h.parseValue:!0,o.parseCustomProperty="parseCustomProperty"in h?!!h.parseCustomProperty:!1;const{context:p="default",list:f=!0,onComment:g,onToken:b}=h;if(!(p in o.context))throw new Error("Unknown context `"+p+"`");Object.assign(o,f?eg:Jm),Array.isArray(b)?o.forEachToken((m,E,S)=>{b.push({type:m,start:E,end:S})}):typeof b=="function"&&o.forEachToken(b.bind(u())),typeof g=="function"&&o.forEachToken((m,E,S)=>{if(m===Ye){const I=o.getLocation(E,S),D=Jn(t,S-2,S,"*/")?t.slice(E+2,S-2):t.slice(E+2,S);g(D,I)}});const _=o.context[p].call(o,h);return o.eof||o.error(),_},{SyntaxError:pu,config:o.config})}var $r=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ig(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var fs={},jr={},qr={},bu;function sg(){if(bu)return qr;bu=1;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return qr.encode=function(t){if(0<=t&&t<e.length)return e[t];throw new TypeError("Must be between 0 and 63: "+t)},qr.decode=function(t){var n=65,r=90,i=97,s=122,a=48,o=57,u=43,l=47,d=26,h=52;return n<=t&&t<=r?t-n:i<=t&&t<=s?t-i+d:a<=t&&t<=o?t-a+h:t==u?62:t==l?63:-1},qr}var Eu;function ag(){if(Eu)return jr;Eu=1;var e=sg(),t=5,n=1<<t,r=n-1,i=n;function s(o){return o<0?(-o<<1)+1:(o<<1)+0}function a(o){var u=(o&1)===1,l=o>>1;return u?-l:l}return jr.encode=function(u){var l="",d,h=s(u);do d=h&r,h>>>=t,h>0&&(d|=i),l+=e.encode(d);while(h>0);return l},jr.decode=function(u,l,d){var h=u.length,p=0,f=0,g,b;do{if(l>=h)throw new Error("Expected more digits in base 64 VLQ value.");if(b=e.decode(u.charCodeAt(l++)),b===-1)throw new Error("Invalid base64 digit: "+u.charAt(l-1));g=!!(b&i),b&=r,p=p+(b<<f),f+=t}while(g);d.value=a(p),d.rest=l},jr}var ps={},yu;function ms(){return yu||(yu=1,(function(e){function t(x,w,P){if(w in x)return x[w];if(arguments.length===3)return P;throw new Error('"'+w+'" is a required argument.')}e.getArg=t;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function i(x){var w=x.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(x){var w="";return x.scheme&&(w+=x.scheme+":"),w+="//",x.auth&&(w+=x.auth+"@"),x.host&&(w+=x.host),x.port&&(w+=":"+x.port),x.path&&(w+=x.path),w}e.urlGenerate=s;var a=32;function o(x){var w=[];return function(P){for(var R=0;R<w.length;R++)if(w[R].input===P){var k=w[0];return w[0]=w[R],w[R]=k,w[0].result}var M=x(P);return w.unshift({input:P,result:M}),w.length>a&&w.pop(),M}}var u=o(function(w){var P=w,R=i(w);if(R){if(!R.path)return w;P=R.path}for(var k=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=k?"/":"."),R?(R.path=P,s(R)):P});e.normalize=u;function l(x,w){x===""&&(x="."),w===""&&(w=".");var P=i(w),R=i(x);if(R&&(x=R.path||"/"),P&&!P.scheme)return R&&(P.scheme=R.scheme),s(P);if(P||w.match(r))return w;if(R&&!R.host&&!R.path)return R.host=w,s(R);var k=w.charAt(0)==="/"?w:u(x.replace(/\/+$/,"")+"/"+w);return R?(R.path=k,s(R)):k}e.join=l,e.isAbsolute=function(x){return x.charAt(0)==="/"||n.test(x)};function d(x,w){x===""&&(x="."),x=x.replace(/\/$/,"");for(var P=0;w.indexOf(x+"/")!==0;){var R=x.lastIndexOf("/");if(R<0||(x=x.slice(0,R),x.match(/^([^\/]+:\/)?\/*$/)))return w;++P}return Array(P+1).join("../")+w.substr(x.length+1)}e.relative=d;var h=(function(){var x=Object.create(null);return!("__proto__"in x)})();function p(x){return x}function f(x){return b(x)?"$"+x:x}e.toSetString=h?p:f;function g(x){return b(x)?x.slice(1):x}e.fromSetString=h?p:g;function b(x){if(!x)return!1;var w=x.length;if(w<9||x.charCodeAt(w-1)!==95||x.charCodeAt(w-2)!==95||x.charCodeAt(w-3)!==111||x.charCodeAt(w-4)!==116||x.charCodeAt(w-5)!==111||x.charCodeAt(w-6)!==114||x.charCodeAt(w-7)!==112||x.charCodeAt(w-8)!==95||x.charCodeAt(w-9)!==95)return!1;for(var P=w-10;P>=0;P--)if(x.charCodeAt(P)!==36)return!1;return!0}function _(x,w,P){var R=I(x.source,w.source);return R!==0||(R=x.originalLine-w.originalLine,R!==0)||(R=x.originalColumn-w.originalColumn,R!==0||P)||(R=x.generatedColumn-w.generatedColumn,R!==0)||(R=x.generatedLine-w.generatedLine,R!==0)?R:I(x.name,w.name)}e.compareByOriginalPositions=_;function m(x,w,P){var R;return R=x.originalLine-w.originalLine,R!==0||(R=x.originalColumn-w.originalColumn,R!==0||P)||(R=x.generatedColumn-w.generatedColumn,R!==0)||(R=x.generatedLine-w.generatedLine,R!==0)?R:I(x.name,w.name)}e.compareByOriginalPositionsNoSource=m;function E(x,w,P){var R=x.generatedLine-w.generatedLine;return R!==0||(R=x.generatedColumn-w.generatedColumn,R!==0||P)||(R=I(x.source,w.source),R!==0)||(R=x.originalLine-w.originalLine,R!==0)||(R=x.originalColumn-w.originalColumn,R!==0)?R:I(x.name,w.name)}e.compareByGeneratedPositionsDeflated=E;function S(x,w,P){var R=x.generatedColumn-w.generatedColumn;return R!==0||P||(R=I(x.source,w.source),R!==0)||(R=x.originalLine-w.originalLine,R!==0)||(R=x.originalColumn-w.originalColumn,R!==0)?R:I(x.name,w.name)}e.compareByGeneratedPositionsDeflatedNoLine=S;function I(x,w){return x===w?0:x===null?1:w===null?-1:x>w?1:-1}function D(x,w){var P=x.generatedLine-w.generatedLine;return P!==0||(P=x.generatedColumn-w.generatedColumn,P!==0)||(P=I(x.source,w.source),P!==0)||(P=x.originalLine-w.originalLine,P!==0)||(P=x.originalColumn-w.originalColumn,P!==0)?P:I(x.name,w.name)}e.compareByGeneratedPositionsInflated=D;function B(x){return JSON.parse(x.replace(/^\)]}'[^\n]*\n/,""))}e.parseSourceMapInput=B;function C(x,w,P){if(w=w||"",x&&(x[x.length-1]!=="/"&&w[0]!=="/"&&(x+="/"),w=x+w),P){var R=i(P);if(!R)throw new Error("sourceMapURL could not be parsed");if(R.path){var k=R.path.lastIndexOf("/");k>=0&&(R.path=R.path.substring(0,k+1))}w=l(s(R),w)}return u(w)}e.computeSourceURL=C})(ps)),ps}var gs={},Tu;function og(){if(Tu)return gs;Tu=1;var e=ms(),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,a){for(var o=new r,u=0,l=s.length;u<l;u++)o.add(s[u],a);return o},r.prototype.size=function(){return n?this._set.size:Object.getOwnPropertyNames(this._set).length},r.prototype.add=function(s,a){var o=n?s:e.toSetString(s),u=n?this.has(s):t.call(this._set,o),l=this._array.length;(!u||a)&&this._array.push(s),u||(n?this._set.set(s,l):this._set[o]=l)},r.prototype.has=function(s){if(n)return this._set.has(s);var a=e.toSetString(s);return t.call(this._set,a)},r.prototype.indexOf=function(s){if(n){var a=this._set.get(s);if(a>=0)return a}else{var o=e.toSetString(s);if(t.call(this._set,o))return this._set[o]}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()},gs.ArraySet=r,gs}var bs={},_u;function ug(){if(_u)return bs;_u=1;var e=ms();function t(r,i){var s=r.generatedLine,a=i.generatedLine,o=r.generatedColumn,u=i.generatedColumn;return a>s||a==s&&u>=o||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},bs.MappingList=n,bs}var wu;function lg(){if(wu)return fs;wu=1;var e=ag(),t=ms(),n=og().ArraySet,r=ug().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(a,o){var u=a.sourceRoot,l=new i(Object.assign(o||{},{file:a.file,sourceRoot:u}));return a.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)),l.addMapping(h)}),a.sources.forEach(function(d){var h=d;u!==null&&(h=t.relative(u,d)),l._sources.has(h)||l._sources.add(h);var p=a.sourceContentFor(d);p!=null&&l.setSourceContent(d,p)}),l},i.prototype.addMapping=function(a){var o=t.getArg(a,"generated"),u=t.getArg(a,"original",null),l=t.getArg(a,"source",null),d=t.getArg(a,"name",null);!this._skipValidation&&this._validateMapping(o,u,l,d)===!1||(l!=null&&(l=String(l),this._sources.has(l)||this._sources.add(l)),d!=null&&(d=String(d),this._names.has(d)||this._names.add(d)),this._mappings.add({generatedLine:o.line,generatedColumn:o.column,originalLine:u!=null&&u.line,originalColumn:u!=null&&u.column,source:l,name:d}))},i.prototype.setSourceContent=function(a,o){var u=a;this._sourceRoot!=null&&(u=t.relative(this._sourceRoot,u)),o!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[t.toSetString(u)]=o):this._sourcesContents&&(delete this._sourcesContents[t.toSetString(u)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},i.prototype.applySourceMap=function(a,o,u){var l=o;if(o==null){if(a.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);l=a.file}var d=this._sourceRoot;d!=null&&(l=t.relative(d,l));var h=new n,p=new n;this._mappings.unsortedForEach(function(f){if(f.source===l&&f.originalLine!=null){var g=a.originalPositionFor({line:f.originalLine,column:f.originalColumn});g.source!=null&&(f.source=g.source,u!=null&&(f.source=t.join(u,f.source)),d!=null&&(f.source=t.relative(d,f.source)),f.originalLine=g.line,f.originalColumn=g.column,g.name!=null&&(f.name=g.name))}var b=f.source;b!=null&&!h.has(b)&&h.add(b);var _=f.name;_!=null&&!p.has(_)&&p.add(_)},this),this._sources=h,this._names=p,a.sources.forEach(function(f){var g=a.sourceContentFor(f);g!=null&&(u!=null&&(f=t.join(u,f)),d!=null&&(f=t.relative(d,f)),this.setSourceContent(f,g))},this)},i.prototype._validateMapping=function(a,o,u,l){if(o&&typeof o.line!="number"&&typeof o.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(!(a&&"line"in a&&"column"in a&&a.line>0&&a.column>=0&&!o&&!u&&!l)){if(a&&"line"in a&&"column"in a&&o&&"line"in o&&"column"in o&&a.line>0&&a.column>=0&&o.line>0&&o.column>=0&&u)return;var d="Invalid mapping: "+JSON.stringify({generated:a,source:u,original:o,name:l});if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(d),!1;throw new Error(d)}},i.prototype._serializeMappings=function(){for(var a=0,o=1,u=0,l=0,d=0,h=0,p="",f,g,b,_,m=this._mappings.toArray(),E=0,S=m.length;E<S;E++){if(g=m[E],f="",g.generatedLine!==o)for(a=0;g.generatedLine!==o;)f+=";",o++;else if(E>0){if(!t.compareByGeneratedPositionsInflated(g,m[E-1]))continue;f+=","}f+=e.encode(g.generatedColumn-a),a=g.generatedColumn,g.source!=null&&(_=this._sources.indexOf(g.source),f+=e.encode(_-h),h=_,f+=e.encode(g.originalLine-1-l),l=g.originalLine-1,f+=e.encode(g.originalColumn-u),u=g.originalColumn,g.name!=null&&(b=this._names.indexOf(g.name),f+=e.encode(b-d),d=b)),p+=f}return p},i.prototype._generateSourcesContent=function(a,o){return a.map(function(u){if(!this._sourcesContents)return null;o!=null&&(u=t.relative(o,u));var l=t.toSetString(u);return Object.prototype.hasOwnProperty.call(this._sourcesContents,l)?this._sourcesContents[l]:null},this)},i.prototype.toJSON=function(){var a={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(a.file=this._file),this._sourceRoot!=null&&(a.sourceRoot=this._sourceRoot),this._sourcesContents&&(a.sourcesContent=this._generateSourcesContent(a.sources,a.sourceRoot)),a},i.prototype.toString=function(){return JSON.stringify(this.toJSON())},fs.SourceMapGenerator=i,fs}var cg=lg();const ku=new Set(["Atrule","Selector","Declaration"]);function dg(e){const t=new cg.SourceMapGenerator,n={line:1,column:0},r={line:0,column:0},i={line:1,column:0},s={generated:i};let a=1,o=0,u=!1;const l=e.node;e.node=function(p){if(p.loc&&p.loc.start&&ku.has(p.type)){const f=p.loc.start.line,g=p.loc.start.column-1;(r.line!==f||r.column!==g)&&(r.line=f,r.column=g,n.line=a,n.column=o,u&&(u=!1,(n.line!==i.line||n.column!==i.column)&&t.addMapping(s)),u=!0,t.addMapping({source:p.loc.source,original:r,generated:n}))}l.call(this,p),u&&ku.has(p.type)&&(i.line=a,i.column=o)};const d=e.emit;e.emit=function(p,f,g){for(let b=0;b<p.length;b++)p.charCodeAt(b)===10?(a++,o=0):o++;d(p,f,g)};const h=e.result;return e.result=function(){return u&&t.addMapping(s),{css:h(),map:t}},e}const hg=43,fg=45,Es=(e,t)=>(e===ge&&(e=t),typeof e=="string"&&(e=Math.min(e.charCodeAt(0),128)<<6),e<<1),Au=[[ne,ne],[ne,pe],[ne,Ve],[ne,rt],[ne,"-"],[ne,fe],[ne,Oe],[ne,be],[ne,it],[ne,_e],[Be,ne],[Be,pe],[Be,Ve],[Be,rt],[Be,"-"],[Be,fe],[Be,Oe],[Be,be],[Be,it],[xe,ne],[xe,pe],[xe,Ve],[xe,rt],[xe,"-"],[xe,fe],[xe,Oe],[xe,be],[xe,it],[be,ne],[be,pe],[be,Ve],[be,rt],[be,"-"],[be,fe],[be,Oe],[be,be],[be,it],["#",ne],["#",pe],["#",Ve],["#",rt],["#","-"],["#",fe],["#",Oe],["#",be],["#",it],["-",ne],["-",pe],["-",Ve],["-",rt],["-","-"],["-",fe],["-",Oe],["-",be],["-",it],[fe,ne],[fe,pe],[fe,Ve],[fe,rt],[fe,fe],[fe,Oe],[fe,be],[fe,"%"],[fe,it],["@",ne],["@",pe],["@",Ve],["@",rt],["@","-"],["@",it],[".",fe],[".",Oe],[".",be],["+",fe],["+",Oe],["+",be],["/","*"]],pg=Au.concat([[ne,xe],[be,xe],[xe,xe],[Be,_e],[Be,Et],[Be,Ke],[Oe,Oe],[Oe,be],[Oe,pe],[Oe,"-"],[de,ne],[de,pe],[de,Oe],[de,be],[de,xe],[de,"-"]]);function Su(e){const t=new Set(e.map(([n,r])=>Es(n)<<16|Es(r)));return function(n,r,i){const s=Es(r,i),a=i.charCodeAt(0),o=a===fg&&r!==ne&&r!==pe&&r!==it||a===hg?t.has((n&65534)<<16|a<<7):t.has((n&65534)<<16|s);return s|o}}const mg=Su(Au),Cu=Su(pg),xu=Object.freeze(Object.defineProperty({__proto__:null,safe:Cu,spec:mg},Symbol.toStringTag,{value:"Module"})),gg=92;function bg(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 Eg(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,a={node(u){if(t.has(u.type))t.get(u.type).call(o,u);else throw new Error("Unknown node type: "+u.type)},tokenBefore:Cu,token(u,l,d){s=this.tokenBefore(s,u,l),!d&&s&1&&this.emit(" ",Le,!0),this.emit(l,u,!1),u===ge&&l.charCodeAt(0)===gg&&this.emit(`
|
|
8
|
-
`,Le,!0)},emit(u){i+=u},result(){return i}};r&&(typeof r.decorator=="function"&&(
|
|
1
|
+
(function(ue,Ee){typeof exports=="object"&&typeof module<"u"?Ee(exports):typeof define=="function"&&define.amd?define(["exports"],Ee):(ue=typeof globalThis<"u"?globalThis:ue||self,Ee(ue.otomate={}))})(this,(function(ue){"use strict";function Ee(e){return"children"in e&&Array.isArray(e.children)}function Bn(e){return"value"in e&&typeof e.value=="string"}function dt(e){return e.type==="text"}function wh(...e){return{type:"root",children:e}}function kh(...e){return{type:"paragraph",children:e}}function Ah(e,...t){return{type:"heading",depth:e,children:t}}function Sh(...e){return{type:"blockquote",children:e}}function Ch(e,...t){return{type:"list",ordered:e,children:t}}function xh(...e){return{type:"listItem",children:e}}function Nh(e,t){return{type:"codeBlock",value:e,lang:t}}function vh(...e){return{type:"table",children:e}}function Ih(e,...t){return{type:"tableRow",isHeader:e||void 0,children:t}}function Oh(...e){return{type:"tableCell",children:e}}function Lh(){return{type:"thematicBreak"}}function Ph(...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 Dh(){return{type:"break"}}function Mh(e,t,n){const r={type:"image",url:e};return t!==void 0&&(r.alt=t),n!==void 0&&(r.title=n),r}function Bh(){return{type:"strong"}}function Fh(){return{type:"emphasis"}}function Uh(){return{type:"strikethrough"}}function Hh(){return{type:"underline"}}function zh(){return{type:"code"}}function $h(e,t){const n={url:e};return t!==void 0&&(n.title=t),{type:"link",attrs:n}}function jh(e){return e?{type:"highlight",attrs:{color:e}}:{type:"highlight"}}function qh(e,...t){return e.classes=t,e}function Yh(e,t){return e.data={...e.data,...t},e}function Wh(e,t){return e.id=t,e}function ki(e,t,n=null,r=0){if(t(e,n,r)!==!1&&Ee(e))for(let s=0;s<e.children.length;s++)ki(e.children[s],t,e,s)}function Ai(e){let t=1;if(Ee(e))for(const n of e.children)t+=Ai(n);return t}function Gh(e){const t=[];return ki(e,n=>{t.push(n)}),t}function fn(e,t){if(e===t)return[];if(!Ee(e))return null;for(let n=0;n<e.children.length;n++){const r=fn(e.children[n],t);if(r!==null)return[n,...r]}return null}function Vh(e,t){let n=e;for(const r of t){if(!Ee(n)||r<0||r>=n.children.length)return null;n=n.children[r]}return n}const Kh=2166136261,Xh=16777619;function gr(e){let t=Kh;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=Math.imul(t,Xh)>>>0;return t}function Qh(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 Si=new WeakMap;function Ci(e){const t=Si.get(e);if(t!==void 0)return t;let n;const r=Jh(e);if(dt(e)){const i=e;n=gr(`text:${i.value}:${Qh(i.marks)}:${r}`)}else if(Bn(e)){const i=ef(e);n=gr(`${e.type}:${i}:${r}`)}else if(Ee(e)){const i=e.children.map(Ci),s=tf(e);n=gr(`${e.type}:${s}:${r}:[${i.join(",")}]`)}else n=gr(`${e.type}:${nf(e)}:${r}`);return Si.set(e,n),n}function Zh(e){Si.delete(e)}function Jh(e){return!e.classes||e.classes.length===0?"":`cls:${[...e.classes].sort().join(",")}`}function ef(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 tf(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 nf(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 ja(e){const t=new Map;function n(r){const i=Ci(r),s=Ai(r),o={node:r,hash:i,size:s},a=t.get(i);if(a?a.push(o):t.set(i,[o]),Ee(r))for(const u of r.children)n(u)}return n(e),t}function qa(e,t,n,r){if(n.set(e,t),r.set(t,e),Ee(e)&&Ee(t)){const i=e,s=t;for(let o=0;o<i.children.length&&o<s.children.length;o++)qa(i.children[o],s.children[o],n,r)}}function rf(e,t){const n=new Map,r=new Map,i=ja(e),s=ja(t),o=[];for(const[a,u]of i){const l=s.get(a);if(l)if(u.length===1&&l.length===1)o.push({oldNode:u[0].node,newNode:l[0].node,size:u[0].size});else for(const d of u)for(const h of l)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)||qa(a,u,n,r);return{forward:n,reverse:r}}function sf(e,t,n){const r=xi(e),i=new Set(xi(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 xi(e){const t=[];if(Ee(e))for(const n of e.children)t.push(n),t.push(...xi(n));return t}function af(e){const t=new Map;function n(r,i){if(i&&t.set(r,i),Ee(r))for(const s of r.children)n(s,r)}return n(e,null),t}function of(e,t){const n=[];function r(i){if(Ee(i)){for(const s of i.children)r(s);t.has(i)||n.push(i)}}return r(e),n}function uf(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(Ee(i))for(const s of i.children)r(s)}return r(e),n}function lf(e,t,n,r,i=.5){const s=af(t),o=uf(t,r),a=of(e,n);for(const u of a){if(n.has(u))continue;const l=o.get(u.type);if(!l||l.length===0)continue;let d=null,h=-1;for(const p of l){if(r.has(p)||!Ee(p))continue;const f=sf(u,p,n);let g=0;const b=cf(u,e,n);b&&s.get(p)===b&&(g=.3);const _=f+g;_>h&&(h=_,d=p)}d&&h>=i&&(n.set(u,d),r.set(d,u),Wa(o,u.type,d))}df(e,n,r,o)}function cf(e,t,n){const r=Ya(t,e);if(r)return n.get(r)}function Ya(e,t){if(!Ee(e))return null;const n=e;for(const r of n.children){if(r===t)return e;const i=Ya(r,t);if(i)return i}return null}function df(e,t,n,r){for(const[i,s]of t){if(!Ee(i)||!Ee(s))continue;const o=i,a=s,u=[],l=[];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])||l.push({node:a.children[h],index:h});const d=new Set;for(const h of u){const p=l.find(b=>b.index===h.index&&b.node.type===h.node.type&&!d.has(b.index));if(p){Ni(h.node,p.node,t,n,r),d.add(p.index);continue}let f=1/0,g=null;for(const b of l){if(d.has(b.index)||b.node.type!==h.node.type)continue;const _=Math.abs(b.index-h.index);_<f&&(f=_,g=b)}g&&(Ni(h.node,g.node,t,n,r),d.add(g.index))}}}function Ni(e,t,n,r,i){if(n.set(e,t),r.set(t,e),Wa(i,t.type,t),Ee(e)&&Ee(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&&(Ni(s.children[u],o.children[u],n,r,i),a.add(u))}}}function Wa(e,t,n){const r=e.get(t);if(r){const i=r.indexOf(n);i!==-1&&r.splice(i,1)}}function hf(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 ff(e){return[...e]}function pf(e,t){const n=e.length,r=t.length;if(n===0&&r===0)return[];if(n===0)return t.map(p=>({type:"insert",value:p}));if(r===0)return e.map(p=>({type:"delete",value:p}));const i=n+r,s=2*i+1,o=[],a=new Array(s).fill(0);let u=-1;for(let p=0;p<=i;p++){o.push([...a]);for(let f=-p;f<=p;f+=2){const g=f+i;let b;f===-p||f!==p&&a[g-1]<a[g+1]?b=a[g+1]:b=a[g-1]+1;let _=b-f;for(;b<n&&_<r&&e[b]===t[_];)b++,_++;if(a[g]=b,b>=n&&_>=r){u=p;break}}if(u>=0)break}const l=[];let d=n,h=r;for(let p=u;p>0;p--){const f=o[p],g=d-h,b=g+i;let _;g===-p||g!==p&&f[b-1]<f[b+1]?_=g+1:_=g-1;const m=_+i,E=f[m],S=E-_;for(;d>E&&h>S;)d--,h--,l.push({type:"equal",value:e[d]});g>_?(d--,l.push({type:"delete",value:e[d]})):(h--,l.push({type:"insert",value:t[h]}))}for(;d>0&&h>0;)d--,h--,l.push({type:"equal",value:e[d]});return l.reverse(),l}function vi(e,t,n="word"){if(e===t)return[{type:"equal",value:e,offset:0}];const r=n==="word"?hf:ff,i=r(e),s=r(t),o=pf(i,s),a=[];let u=0,l=0,d=0;for(;d<o.length;){const h=o[d].type;let p="";for(;d<o.length&&o[d].type===h;)p+=o[d].value,d++;switch(h){case"equal":a.push({type:"equal",value:p,offset:u}),u+=p.length,l+=p.length;break;case"delete":a.push({type:"delete",value:p,offset:u}),u+=p.length;break;case"insert":a.push({type:"insert",value:p,offset:l}),l+=p.length;break}}return a}function mf(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 Ga(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 gf(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 bf(e,t,n,r,i={}){const s=[],o=i.textGranularity??"word";for(const[u,l]of n){if(u===e&&l===t)continue;const d=fn(e,u),h=fn(t,l);if(!d||!h)continue;const p=Ga(u),f=Ga(l);if(gf(p,f)||s.push({type:"update",path:h,properties:{old:p,new:f}}),dt(u)&&dt(l)){const g=u,b=l;if(!mf(g.marks,b.marks)){const _=g.marks??[],m=b.marks??[];s.push({type:"update",path:h,properties:{old:{marks:_},new:{marks:m}}})}}if(dt(u)&&dt(l)){const g=u,b=l;g.value!==b.value&&s.push({type:"updateText",path:h,changes:vi(g.value,b.value,o)})}else if(Bn(u)&&Bn(l)){const g=u.value,b=l.value;g!==b&&s.push({type:"updateText",path:h,changes:vi(g,b,o)})}if(d.length>0&&h.length>0){const g=d.slice(0,-1),b=h.slice(0,-1),_=Ka(e,g),m=Ka(t,b);if(_&&m){const E=n.get(_);if(E&&E!==m)s.push({type:"move",from:d,to:h});else if(E===m){const S=d[d.length-1],I=h[h.length-1];S!==I&&s.push({type:"move",from:d,to:h})}}}}Va(e,n,u=>{const l=fn(e,u);l&&s.push({type:"delete",path:l,node:Ii(u)})}),Va(t,r,u=>{const l=fn(t,u);l&&s.push({type:"insert",path:l,node:Ii(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 Va(e,t,n){function r(i){if(!t.has(i)){n(i);return}if(Ee(i))for(const s of i.children)r(s)}if(Ee(e))for(const i of e.children)r(i)}function Ka(e,t){let n=e;for(const r of t){if(!Ee(n))return null;const i=n;if(r<0||r>=i.children.length)return null;n=i.children[r]}return n}function Ii(e){const t={};for(const[n,r]of Object.entries(e))n==="position"||n==="id"||(n==="children"&&Array.isArray(r)?t.children=r.map(Ii):t[n]=r);return t}function Ef(e,t,n={}){const{diceThreshold:r=.5}=n,{forward:i,reverse:s}=rf(e,t);return i.has(e)||(i.set(e,t),s.set(t,e)),lf(e,t,i,s,r),bf(e,t,i,s,n)}function tA(){}class Fn{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Fn.prototype.normal={},Fn.prototype.property={},Fn.prototype.space=void 0;function Xa(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Fn(n,r,t)}function Un(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 yf=0;const me=rn(),Me=rn(),Oi=rn(),ee=rn(),Ce=rn(),pn=rn(),at=rn();function rn(){return 2**++yf}const Li=Object.freeze(Object.defineProperty({__proto__:null,boolean:me,booleanish:Me,commaOrSpaceSeparated:at,commaSeparated:pn,number:ee,overloadedBoolean:Oi,spaceSeparated:Ce},Symbol.toStringTag,{value:"Module"})),Pi=Object.keys(Li);class Ri extends et{constructor(t,n,r,i){let s=-1;if(super(t,n),Qa(this,"space",i),typeof r=="number")for(;++s<Pi.length;){const o=Pi[s];Qa(this,Pi[s],(r&Li[o])===Li[o])}}}Ri.prototype.defined=!0;function Qa(e,t,n){n&&(e[t]=n)}function mn(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const s=new Ri(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(s.mustUseProperty=!0),t[r]=s,n[Un(r)]=r,n[Un(s.attribute)]=r}return new Fn(t,n,e.space)}const Za=mn({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 Ja(e,t){return t in e?e[t]:t}function eo(e,t){return Ja(e,t.toLowerCase())}const Tf=mn({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:pn,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|pn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:me,defer:me,dir:null,dirName:null,disabled:me,download:Oi,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:Oi,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:eo}),_f=mn({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:pn,g2:pn,glyphName:pn,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:Ja}),to=mn({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()}}),no=mn({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:eo}),ro=mn({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),wf=/[A-Z]/g,io=/-[a-z]/g,kf=/^data[-\w.:]+$/i;function Di(e,t){const n=Un(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"&&kf.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(io,Sf);r="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!io.test(s)){let o=s.replace(wf,Af);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=Ri}return new i(r,t)}function Af(e){return"-"+e.toLowerCase()}function Sf(e){return e.charAt(1).toUpperCase()}const br=Xa([Za,Tf,to,no,ro],"html"),Hn=Xa([Za,_f,to,no,ro],"svg");function so(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 Cf(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const ao=/[#.]/g;function xf(e,t){const n=e||"",r={};let i=0,s,o;for(;i<n.length;){ao.lastIndex=i;const a=ao.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 oo(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Nf(e){return e.join(" ").trim()}function uo(e,t,n){const r=n?Lf(n):void 0;function i(s,o,...a){let u;if(s==null){u={type:"root",children:[]};const l=o;a.unshift(l)}else{u=xf(s,t);const l=u.tagName.toLowerCase(),d=r?r.get(l):void 0;if(u.tagName=d||l,vf(o))a.unshift(o);else for(const[h,p]of Object.entries(o))If(e,u.properties,h,p)}for(const l of a)Mi(u.children,l);return u.type==="element"&&u.tagName==="template"&&(u.content={type:"root",children:u.children},u.children=[]),u}return i}function vf(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 If(e,t,n,r){const i=Di(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=oo(r):i.commaSeparated?s=so(r):i.commaOrSpaceSeparated?s=oo(so(r).join(" ")):s=lo(i,i.property,r):Array.isArray(r)?s=[...r]:s=i.property==="style"?Of(r):String(r);if(Array.isArray(s)){const o=[];for(const a of s)o.push(lo(i,i.property,a));s=o}i.property==="className"&&Array.isArray(t.className)&&(s=t.className.concat(s)),t[i.property]=s}}function Mi(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)Mi(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?Mi(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function lo(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Un(n)===Un(t)))return!0}return n}function Of(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function Lf(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const Pf=["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"],Rf=uo(br,"div"),Df=uo(Hn,"g",Pf);function Mf(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=co(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=co(t,a),l=u===-1?t.length+1:u+1;if(a===l)break;n.push(l)}const o=(s.line>1?n[s.line-2]:0)+s.column-1;if(o<n[s.line-1])return o}}}function co(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 Bf={svg:"http://www.w3.org/2000/svg"},ho={}.hasOwnProperty,Ff=Object.prototype;function Uf(e,t){const n=t||{};return Bi({file:n.file||void 0,location:!1,schema:n.space==="svg"?Hn:br,verbose:n.verbose||!1},e)}function Bi(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},Er(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:fo(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){const s=String(e.file),o=Mf(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"},Er(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},Er(e,r,n),n}default:return n=Hf(e,t),n}}function fo(e,t){let n=-1;const r=[];for(;++n<t.length;){const i=Bi(e,t[n]);r.push(i)}return r}function Hf(e,t){const n=e.schema;e.schema=t.namespaceURI===Bf.svg?Hn:br;let r=-1;const i={};for(;++r<t.attrs.length;){const a=t.attrs[r],u=(a.prefix?a.prefix+":":"")+a.name;ho.call(Ff,u)||(i[u]=a.value)}const o=(e.schema.space==="svg"?Df:Rf)(t.tagName,i,fo(e,t.childNodes));if(Er(e,t,o),o.tagName==="template"){const a=t,u=a.sourceCodeLocation,l=u&&u.startTag&&gn(u.startTag),d=u&&u.endTag&&gn(u.endTag),h=Bi(e,a.content);l&&d&&e.file&&(h.position={start:l.end,end:d.start}),o.content=h}return e.schema=n,o}function Er(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=zf(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function zf(e,t,n){const r=gn(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)ho.call(n.attrs,o)&&(s[Di(e.schema,o).property]=gn(n.attrs[o]));n.startTag;const a=gn(n.startTag),u=n.endTag?gn(n.endTag):void 0,l={opening:a};u&&(l.closing=u),l.properties=s,t.data={position:l}}}return r}function gn(e){const t=po({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=po({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function po(e){return e.line&&e.column?e:void 0}const $f=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 A;(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"})(A||(A={}));const tt={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function mo(e){return e>=55296&&e<=57343}function jf(e){return e>=56320&&e<=57343}function qf(e,t){return(e-55296)*1024+9216+t}function go(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function bo(e){return e>=64976&&e<=65007||$f.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 Yf=65536;class Wf{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=Yf,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(jf(n))return this.pos++,this._addGap(),qf(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,A.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,A.EOF;const r=this.html.charCodeAt(n);return r===A.CARRIAGE_RETURN?A.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,A.EOF;let t=this.html.charCodeAt(this.pos);return t===A.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,A.LINE_FEED):t===A.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,mo(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===A.LINE_FEED||t===A.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){go(t)?this._err(q.controlCharacterInInputStream):bo(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 Eo(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୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢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;怳Ādpuct;戏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ǣጓ\0y;䐎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Ā;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀ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Ā;elƀ;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\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»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ↄⅪ←ٖ↛ǰ↉\0proø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;䅓Ācrir;榿;쀀𝔬ͯ\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\0m;櫳;櫽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))),Vf=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 Kf(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=Vf.get(e))!==null&&t!==void 0?t:e}var He;(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"})(He||(He={}));const Xf=32;var qt;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(qt||(qt={}));function Fi(e){return e>=He.ZERO&&e<=He.NINE}function Qf(e){return e>=He.UPPER_A&&e<=He.UPPER_F||e>=He.LOWER_A&&e<=He.LOWER_F}function Zf(e){return e>=He.UPPER_A&&e<=He.UPPER_Z||e>=He.LOWER_A&&e<=He.LOWER_Z||Fi(e)}function Jf(e){return e===He.EQUALS||Zf(e)}var ze;(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"})(ze||(ze={}));var Mt;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Mt||(Mt={}));class ep{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=ze.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Mt.Strict}startEntity(t){this.decodeMode=t,this.state=ze.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case ze.EntityStart:return t.charCodeAt(n)===He.NUM?(this.state=ze.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=ze.NamedEntity,this.stateNamedEntity(t,n));case ze.NumericStart:return this.stateNumericStart(t,n);case ze.NumericDecimal:return this.stateNumericDecimal(t,n);case ze.NumericHex:return this.stateNumericHex(t,n);case ze.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|Xf)===He.LOWER_X?(this.state=ze.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=ze.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(Fi(i)||Qf(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(Fi(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===He.SEMI)this.consumed+=1;else if(this.decodeMode===Mt.Strict)return 0;return this.emitCodePoint(Kf(this.result),this.consumed),this.errors&&(t!==He.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&qt.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const o=t.charCodeAt(n);if(this.treeIndex=tp(r,i,this.treeIndex+Math.max(1,s),o),this.treeIndex<0)return this.result===0||this.decodeMode===Mt.Attribute&&(s===0||Jf(o))?0:this.emitNotTerminatedNamedEntity();if(i=r[this.treeIndex],s=(i&qt.VALUE_LENGTH)>>14,s!==0){if(o===He.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);this.decodeMode!==Mt.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]&qt.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]&~qt.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case ze.NamedEntity:return this.result!==0&&(this.decodeMode!==Mt.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case ze.NumericDecimal:return this.emitNumericEntity(0,2);case ze.NumericHex:return this.emitNumericEntity(0,3);case ze.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case ze.EntityStart:return 0}}}function tp(e,t,n,r){const i=(t&qt.BRANCH_LENGTH)>>7,s=t&qt.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,l=e[u];if(l<r)o=u+1;else if(l>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 sn;(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"})(sn||(sn={}));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 c;(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"})(c||(c={}));const np=new Map([[H.A,c.A],[H.ADDRESS,c.ADDRESS],[H.ANNOTATION_XML,c.ANNOTATION_XML],[H.APPLET,c.APPLET],[H.AREA,c.AREA],[H.ARTICLE,c.ARTICLE],[H.ASIDE,c.ASIDE],[H.B,c.B],[H.BASE,c.BASE],[H.BASEFONT,c.BASEFONT],[H.BGSOUND,c.BGSOUND],[H.BIG,c.BIG],[H.BLOCKQUOTE,c.BLOCKQUOTE],[H.BODY,c.BODY],[H.BR,c.BR],[H.BUTTON,c.BUTTON],[H.CAPTION,c.CAPTION],[H.CENTER,c.CENTER],[H.CODE,c.CODE],[H.COL,c.COL],[H.COLGROUP,c.COLGROUP],[H.DD,c.DD],[H.DESC,c.DESC],[H.DETAILS,c.DETAILS],[H.DIALOG,c.DIALOG],[H.DIR,c.DIR],[H.DIV,c.DIV],[H.DL,c.DL],[H.DT,c.DT],[H.EM,c.EM],[H.EMBED,c.EMBED],[H.FIELDSET,c.FIELDSET],[H.FIGCAPTION,c.FIGCAPTION],[H.FIGURE,c.FIGURE],[H.FONT,c.FONT],[H.FOOTER,c.FOOTER],[H.FOREIGN_OBJECT,c.FOREIGN_OBJECT],[H.FORM,c.FORM],[H.FRAME,c.FRAME],[H.FRAMESET,c.FRAMESET],[H.H1,c.H1],[H.H2,c.H2],[H.H3,c.H3],[H.H4,c.H4],[H.H5,c.H5],[H.H6,c.H6],[H.HEAD,c.HEAD],[H.HEADER,c.HEADER],[H.HGROUP,c.HGROUP],[H.HR,c.HR],[H.HTML,c.HTML],[H.I,c.I],[H.IMG,c.IMG],[H.IMAGE,c.IMAGE],[H.INPUT,c.INPUT],[H.IFRAME,c.IFRAME],[H.KEYGEN,c.KEYGEN],[H.LABEL,c.LABEL],[H.LI,c.LI],[H.LINK,c.LINK],[H.LISTING,c.LISTING],[H.MAIN,c.MAIN],[H.MALIGNMARK,c.MALIGNMARK],[H.MARQUEE,c.MARQUEE],[H.MATH,c.MATH],[H.MENU,c.MENU],[H.META,c.META],[H.MGLYPH,c.MGLYPH],[H.MI,c.MI],[H.MO,c.MO],[H.MN,c.MN],[H.MS,c.MS],[H.MTEXT,c.MTEXT],[H.NAV,c.NAV],[H.NOBR,c.NOBR],[H.NOFRAMES,c.NOFRAMES],[H.NOEMBED,c.NOEMBED],[H.NOSCRIPT,c.NOSCRIPT],[H.OBJECT,c.OBJECT],[H.OL,c.OL],[H.OPTGROUP,c.OPTGROUP],[H.OPTION,c.OPTION],[H.P,c.P],[H.PARAM,c.PARAM],[H.PLAINTEXT,c.PLAINTEXT],[H.PRE,c.PRE],[H.RB,c.RB],[H.RP,c.RP],[H.RT,c.RT],[H.RTC,c.RTC],[H.RUBY,c.RUBY],[H.S,c.S],[H.SCRIPT,c.SCRIPT],[H.SEARCH,c.SEARCH],[H.SECTION,c.SECTION],[H.SELECT,c.SELECT],[H.SOURCE,c.SOURCE],[H.SMALL,c.SMALL],[H.SPAN,c.SPAN],[H.STRIKE,c.STRIKE],[H.STRONG,c.STRONG],[H.STYLE,c.STYLE],[H.SUB,c.SUB],[H.SUMMARY,c.SUMMARY],[H.SUP,c.SUP],[H.TABLE,c.TABLE],[H.TBODY,c.TBODY],[H.TEMPLATE,c.TEMPLATE],[H.TEXTAREA,c.TEXTAREA],[H.TFOOT,c.TFOOT],[H.TD,c.TD],[H.TH,c.TH],[H.THEAD,c.THEAD],[H.TITLE,c.TITLE],[H.TR,c.TR],[H.TRACK,c.TRACK],[H.TT,c.TT],[H.U,c.U],[H.UL,c.UL],[H.SVG,c.SVG],[H.VAR,c.VAR],[H.WBR,c.WBR],[H.XMP,c.XMP]]);function yr(e){var t;return(t=np.get(e))!==null&&t!==void 0?t:c.UNKNOWN}const J=c,rp={[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},Ui=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 ip(e){return e>=A.DIGIT_0&&e<=A.DIGIT_9}function zn(e){return e>=A.LATIN_CAPITAL_A&&e<=A.LATIN_CAPITAL_Z}function sp(e){return e>=A.LATIN_SMALL_A&&e<=A.LATIN_SMALL_Z}function Yt(e){return sp(e)||zn(e)}function yo(e){return Yt(e)||ip(e)}function Tr(e){return e+32}function To(e){return e===A.SPACE||e===A.LINE_FEED||e===A.TABULATION||e===A.FORM_FEED}function _o(e){return To(e)||e===A.SOLIDUS||e===A.GREATER_THAN_SIGN}function ap(e){return e===A.NULL?q.nullCharacterReference:e>1114111?q.characterReferenceOutsideUnicodeRange:mo(e)?q.surrogateCharacterReference:bo(e)?q.noncharacterCharacterReference:go(e)||e===A.CARRIAGE_RETURN?q.controlCharacterReference:null}class op{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 Wf(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new ep(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=ap(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:c.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:_e.END_TAG,tagName:"",tagID:c.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(Eo(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=yr(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=To(t)?_e.WHITESPACE_CHARACTER:t===A.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()?Mt.Attribute:Mt.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 A.LESS_THAN_SIGN:{this.state=N.TAG_OPEN;break}case A.AMPERSAND:{this._startCharacterReference();break}case A.NULL:{this._err(q.unexpectedNullCharacter),this._emitCodePoint(t);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case A.AMPERSAND:{this._startCharacterReference();break}case A.LESS_THAN_SIGN:{this.state=N.RCDATA_LESS_THAN_SIGN;break}case A.NULL:{this._err(q.unexpectedNullCharacter),this._emitChars(Ie);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case A.LESS_THAN_SIGN:{this.state=N.RAWTEXT_LESS_THAN_SIGN;break}case A.NULL:{this._err(q.unexpectedNullCharacter),this._emitChars(Ie);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case A.LESS_THAN_SIGN:{this.state=N.SCRIPT_DATA_LESS_THAN_SIGN;break}case A.NULL:{this._err(q.unexpectedNullCharacter),this._emitChars(Ie);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case A.NULL:{this._err(q.unexpectedNullCharacter),this._emitChars(Ie);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Yt(t))this._createStartTagToken(),this.state=N.TAG_NAME,this._stateTagName(t);else switch(t){case A.EXCLAMATION_MARK:{this.state=N.MARKUP_DECLARATION_OPEN;break}case A.SOLIDUS:{this.state=N.END_TAG_OPEN;break}case A.QUESTION_MARK:{this._err(q.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=N.BOGUS_COMMENT,this._stateBogusComment(t);break}case A.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(Yt(t))this._createEndTagToken(),this.state=N.TAG_NAME,this._stateTagName(t);else switch(t){case A.GREATER_THAN_SIGN:{this._err(q.missingEndTagName),this.state=N.DATA;break}case A.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 A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=N.BEFORE_ATTRIBUTE_NAME;break}case A.SOLIDUS:{this.state=N.SELF_CLOSING_START_TAG;break}case A.GREATER_THAN_SIGN:{this.state=N.DATA,this.emitCurrentTagToken();break}case A.NULL:{this._err(q.unexpectedNullCharacter),n.tagName+=Ie;break}case A.EOF:{this._err(q.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(zn(t)?Tr(t):t)}}_stateRcdataLessThanSign(t){t===A.SOLIDUS?this.state=N.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=N.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){Yt(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 A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=N.BEFORE_ATTRIBUTE_NAME,!1;case A.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=N.SELF_CLOSING_START_TAG,!1;case A.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===A.SOLIDUS?this.state=N.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=N.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){Yt(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 A.SOLIDUS:{this.state=N.SCRIPT_DATA_END_TAG_OPEN;break}case A.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){Yt(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===A.HYPHEN_MINUS?(this.state=N.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=N.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===A.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 A.HYPHEN_MINUS:{this.state=N.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case A.LESS_THAN_SIGN:{this.state=N.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case A.NULL:{this._err(q.unexpectedNullCharacter),this._emitChars(Ie);break}case A.EOF:{this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case A.HYPHEN_MINUS:{this.state=N.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case A.LESS_THAN_SIGN:{this.state=N.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case A.NULL:{this._err(q.unexpectedNullCharacter),this.state=N.SCRIPT_DATA_ESCAPED,this._emitChars(Ie);break}case A.EOF:{this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=N.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case A.HYPHEN_MINUS:{this._emitChars("-");break}case A.LESS_THAN_SIGN:{this.state=N.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case A.GREATER_THAN_SIGN:{this.state=N.SCRIPT_DATA,this._emitChars(">");break}case A.NULL:{this._err(q.unexpectedNullCharacter),this.state=N.SCRIPT_DATA_ESCAPED,this._emitChars(Ie);break}case A.EOF:{this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=N.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===A.SOLIDUS?this.state=N.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Yt(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){Yt(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)&&_o(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 A.HYPHEN_MINUS:{this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case A.LESS_THAN_SIGN:{this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case A.NULL:{this._err(q.unexpectedNullCharacter),this._emitChars(Ie);break}case A.EOF:{this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case A.HYPHEN_MINUS:{this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case A.LESS_THAN_SIGN:{this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case A.NULL:{this._err(q.unexpectedNullCharacter),this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ie);break}case A.EOF:{this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case A.HYPHEN_MINUS:{this._emitChars("-");break}case A.LESS_THAN_SIGN:{this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case A.GREATER_THAN_SIGN:{this.state=N.SCRIPT_DATA,this._emitChars(">");break}case A.NULL:{this._err(q.unexpectedNullCharacter),this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ie);break}case A.EOF:{this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===A.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)&&_o(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 A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.SOLIDUS:case A.GREATER_THAN_SIGN:case A.EOF:{this.state=N.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case A.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 A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:case A.SOLIDUS:case A.GREATER_THAN_SIGN:case A.EOF:{this._leaveAttrName(),this.state=N.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case A.EQUALS_SIGN:{this._leaveAttrName(),this.state=N.BEFORE_ATTRIBUTE_VALUE;break}case A.QUOTATION_MARK:case A.APOSTROPHE:case A.LESS_THAN_SIGN:{this._err(q.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case A.NULL:{this._err(q.unexpectedNullCharacter),this.currentAttr.name+=Ie;break}default:this.currentAttr.name+=String.fromCodePoint(zn(t)?Tr(t):t)}}_stateAfterAttributeName(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.SOLIDUS:{this.state=N.SELF_CLOSING_START_TAG;break}case A.EQUALS_SIGN:{this.state=N.BEFORE_ATTRIBUTE_VALUE;break}case A.GREATER_THAN_SIGN:{this.state=N.DATA,this.emitCurrentTagToken();break}case A.EOF:{this._err(q.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=N.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.QUOTATION_MARK:{this.state=N.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case A.APOSTROPHE:{this.state=N.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case A.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 A.QUOTATION_MARK:{this.state=N.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case A.AMPERSAND:{this._startCharacterReference();break}case A.NULL:{this._err(q.unexpectedNullCharacter),this.currentAttr.value+=Ie;break}case A.EOF:{this._err(q.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case A.APOSTROPHE:{this.state=N.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case A.AMPERSAND:{this._startCharacterReference();break}case A.NULL:{this._err(q.unexpectedNullCharacter),this.currentAttr.value+=Ie;break}case A.EOF:{this._err(q.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this._leaveAttrValue(),this.state=N.BEFORE_ATTRIBUTE_NAME;break}case A.AMPERSAND:{this._startCharacterReference();break}case A.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=N.DATA,this.emitCurrentTagToken();break}case A.NULL:{this._err(q.unexpectedNullCharacter),this.currentAttr.value+=Ie;break}case A.QUOTATION_MARK:case A.APOSTROPHE:case A.LESS_THAN_SIGN:case A.EQUALS_SIGN:case A.GRAVE_ACCENT:{this._err(q.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case A.EOF:{this._err(q.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this._leaveAttrValue(),this.state=N.BEFORE_ATTRIBUTE_NAME;break}case A.SOLIDUS:{this._leaveAttrValue(),this.state=N.SELF_CLOSING_START_TAG;break}case A.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=N.DATA,this.emitCurrentTagToken();break}case A.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 A.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=N.DATA,this.emitCurrentTagToken();break}case A.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 A.GREATER_THAN_SIGN:{this.state=N.DATA,this.emitCurrentComment(n);break}case A.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case A.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 A.HYPHEN_MINUS:{this.state=N.COMMENT_START_DASH;break}case A.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 A.HYPHEN_MINUS:{this.state=N.COMMENT_END;break}case A.GREATER_THAN_SIGN:{this._err(q.abruptClosingOfEmptyComment),this.state=N.DATA,this.emitCurrentComment(n);break}case A.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 A.HYPHEN_MINUS:{this.state=N.COMMENT_END_DASH;break}case A.LESS_THAN_SIGN:{n.data+="<",this.state=N.COMMENT_LESS_THAN_SIGN;break}case A.NULL:{this._err(q.unexpectedNullCharacter),n.data+=Ie;break}case A.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 A.EXCLAMATION_MARK:{n.data+="!",this.state=N.COMMENT_LESS_THAN_SIGN_BANG;break}case A.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=N.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===A.HYPHEN_MINUS?this.state=N.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=N.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===A.HYPHEN_MINUS?this.state=N.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=N.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==A.GREATER_THAN_SIGN&&t!==A.EOF&&this._err(q.nestedComment),this.state=N.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case A.HYPHEN_MINUS:{this.state=N.COMMENT_END;break}case A.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 A.GREATER_THAN_SIGN:{this.state=N.DATA,this.emitCurrentComment(n);break}case A.EXCLAMATION_MARK:{this.state=N.COMMENT_END_BANG;break}case A.HYPHEN_MINUS:{n.data+="-";break}case A.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 A.HYPHEN_MINUS:{n.data+="--!",this.state=N.COMMENT_END_DASH;break}case A.GREATER_THAN_SIGN:{this._err(q.incorrectlyClosedComment),this.state=N.DATA,this.emitCurrentComment(n);break}case A.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 A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=N.BEFORE_DOCTYPE_NAME;break}case A.GREATER_THAN_SIGN:{this.state=N.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case A.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(zn(t))this._createDoctypeToken(String.fromCharCode(Tr(t))),this.state=N.DOCTYPE_NAME;else switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.NULL:{this._err(q.unexpectedNullCharacter),this._createDoctypeToken(Ie),this.state=N.DOCTYPE_NAME;break}case A.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 A.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 A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=N.AFTER_DOCTYPE_NAME;break}case A.GREATER_THAN_SIGN:{this.state=N.DATA,this.emitCurrentDoctype(n);break}case A.NULL:{this._err(q.unexpectedNullCharacter),n.name+=Ie;break}case A.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(zn(t)?Tr(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.GREATER_THAN_SIGN:{this.state=N.DATA,this.emitCurrentDoctype(n);break}case A.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 A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=N.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case A.QUOTATION_MARK:{this._err(q.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=N.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{this._err(q.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=N.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case A.GREATER_THAN_SIGN:{this._err(q.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=N.DATA,this.emitCurrentDoctype(n);break}case A.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 A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.QUOTATION_MARK:{n.publicId="",this.state=N.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{n.publicId="",this.state=N.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case A.GREATER_THAN_SIGN:{this._err(q.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=N.DATA,this.emitCurrentDoctype(n);break}case A.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 A.QUOTATION_MARK:{this.state=N.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case A.NULL:{this._err(q.unexpectedNullCharacter),n.publicId+=Ie;break}case A.GREATER_THAN_SIGN:{this._err(q.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=N.DATA;break}case A.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 A.APOSTROPHE:{this.state=N.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case A.NULL:{this._err(q.unexpectedNullCharacter),n.publicId+=Ie;break}case A.GREATER_THAN_SIGN:{this._err(q.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=N.DATA;break}case A.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 A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=N.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case A.GREATER_THAN_SIGN:{this.state=N.DATA,this.emitCurrentDoctype(n);break}case A.QUOTATION_MARK:{this._err(q.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{this._err(q.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case A.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 A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=N.DATA;break}case A.QUOTATION_MARK:{n.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{n.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case A.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 A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=N.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case A.QUOTATION_MARK:{this._err(q.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{this._err(q.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case A.GREATER_THAN_SIGN:{this._err(q.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=N.DATA,this.emitCurrentDoctype(n);break}case A.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 A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.QUOTATION_MARK:{n.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{n.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case A.GREATER_THAN_SIGN:{this._err(q.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=N.DATA,this.emitCurrentDoctype(n);break}case A.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 A.QUOTATION_MARK:{this.state=N.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case A.NULL:{this._err(q.unexpectedNullCharacter),n.systemId+=Ie;break}case A.GREATER_THAN_SIGN:{this._err(q.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=N.DATA;break}case A.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 A.APOSTROPHE:{this.state=N.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case A.NULL:{this._err(q.unexpectedNullCharacter),n.systemId+=Ie;break}case A.GREATER_THAN_SIGN:{this._err(q.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=N.DATA;break}case A.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 A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=N.DATA;break}case A.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 A.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=N.DATA;break}case A.NULL:{this._err(q.unexpectedNullCharacter);break}case A.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case A.RIGHT_SQUARE_BRACKET:{this.state=N.CDATA_SECTION_BRACKET;break}case A.EOF:{this._err(q.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===A.RIGHT_SQUARE_BRACKET?this.state=N.CDATA_SECTION_END:(this._emitChars("]"),this.state=N.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case A.GREATER_THAN_SIGN:{this.state=N.DATA;break}case A.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(A.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&yo(this.preprocessor.peek(1))?N.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){yo(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===A.SEMICOLON&&this._err(q.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const wo=new Set([c.DD,c.DT,c.LI,c.OPTGROUP,c.OPTION,c.P,c.RB,c.RP,c.RT,c.RTC]),ko=new Set([...wo,c.CAPTION,c.COLGROUP,c.TBODY,c.TD,c.TFOOT,c.TH,c.THEAD,c.TR]),_r=new Set([c.APPLET,c.CAPTION,c.HTML,c.MARQUEE,c.OBJECT,c.TABLE,c.TD,c.TEMPLATE,c.TH]),up=new Set([..._r,c.OL,c.UL]),lp=new Set([..._r,c.BUTTON]),Ao=new Set([c.ANNOTATION_XML,c.MI,c.MN,c.MO,c.MS,c.MTEXT]),So=new Set([c.DESC,c.FOREIGN_OBJECT,c.TITLE]),cp=new Set([c.TR,c.TEMPLATE,c.HTML]),dp=new Set([c.TBODY,c.TFOOT,c.THEAD,c.TEMPLATE,c.HTML]),hp=new Set([c.TABLE,c.TEMPLATE,c.HTML]),fp=new Set([c.TD,c.TH]);class pp{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=c.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===c.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(Ui,X.HTML)}popUntilTableCellPopped(){this.popUntilPopped(fp,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(hp,X.HTML)}clearBackToTableBodyContext(){this.clearBackTo(dp,X.HTML)}clearBackToTableRowContext(){this.clearBackTo(cp,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]===c.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]===c.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(Ao.has(i))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,_r)}hasInListItemScope(t){return this.hasInDynamicScope(t,up)}hasInButtonScope(t){return this.hasInDynamicScope(t,lp)}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(Ui.has(n))return!0;if(_r.has(n))return!1;break}case X.SVG:{if(So.has(n))return!1;break}case X.MATHML:{if(Ao.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 c.TABLE:case c.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 c.TBODY:case c.THEAD:case c.TFOOT:return!0;case c.TABLE:case c.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 c.OPTION:case c.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&wo.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&ko.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&ko.has(this.currentTagId);)this.pop()}}const Hi=3;var Ct;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Ct||(Ct={}));const Co={type:Ct.Marker};class mp{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===Ct.Marker)break;const{element:l}=u;if(this.treeAdapter.getTagName(l)===s&&this.treeAdapter.getNamespaceURI(l)===o){const d=this.treeAdapter.getAttrList(l);d.length===i&&r.push({idx:a,attrs:d})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<Hi)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<Hi)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>=Hi&&this.entries.splice(a.idx,1))}}insertMarker(){this.entries.unshift(Co)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:Ct.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:Ct.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(Co);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===Ct.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===Ct.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===Ct.Element&&n.element===t)}}const Wt={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};Wt.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(Wt.isTextNode(n)){n.value+=t;return}}Wt.appendChild(e,Wt.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Wt.isTextNode(r)?r.value+=t:Wt.insertBefore(e,Wt.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}}},xo="html",gp="about:legacy-compat",bp="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",No=["+//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//"],Ep=[...No,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],yp=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),vo=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Tp=[...vo,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Io(e,t){return t.some(n=>e.startsWith(n))}function _p(e){return e.name===xo&&e.publicId===null&&(e.systemId===null||e.systemId===gp)}function wp(e){if(e.name!==xo)return ht.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===bp)return ht.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),yp.has(n))return ht.QUIRKS;let r=t===null?Ep:No;if(Io(n,r))return ht.QUIRKS;if(r=t===null?vo:Tp,Io(n,r))return ht.LIMITED_QUIRKS}return ht.NO_QUIRKS}const Oo={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},kp="definitionurl",Ap="definitionURL",Sp=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])),Cp=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}]]),xp=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])),Np=new Set([c.B,c.BIG,c.BLOCKQUOTE,c.BODY,c.BR,c.CENTER,c.CODE,c.DD,c.DIV,c.DL,c.DT,c.EM,c.EMBED,c.H1,c.H2,c.H3,c.H4,c.H5,c.H6,c.HEAD,c.HR,c.I,c.IMG,c.LI,c.LISTING,c.MENU,c.META,c.NOBR,c.OL,c.P,c.PRE,c.RUBY,c.S,c.SMALL,c.SPAN,c.STRONG,c.STRIKE,c.SUB,c.SUP,c.TABLE,c.TT,c.U,c.UL,c.VAR]);function vp(e){const t=e.tagID;return t===c.FONT&&e.attrs.some(({name:r})=>r===sn.COLOR||r===sn.SIZE||r===sn.FACE)||Np.has(t)}function Lo(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===kp){e.attrs[t].name=Ap;break}}function Po(e){for(let t=0;t<e.attrs.length;t++){const n=Sp.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function zi(e){for(let t=0;t<e.attrs.length;t++){const n=Cp.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 Ip(e){const t=xp.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=yr(e.tagName))}function Op(e,t){return t===X.MATHML&&(e===c.MI||e===c.MO||e===c.MN||e===c.MS||e===c.MTEXT)}function Lp(e,t,n){if(t===X.MATHML&&e===c.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===sn.ENCODING){const i=n[r].value.toLowerCase();return i===Oo.TEXT_HTML||i===Oo.APPLICATION_XML}}return t===X.SVG&&(e===c.FOREIGN_OBJECT||e===c.DESC||e===c.TITLE)}function Pp(e,t,n,r){return(!r||r===X.HTML)&&Lp(e,t,n)||(!r||r===X.MATHML)&&Op(e,t)}const Rp="hidden",Dp=8,Mp=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 Bp={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Ro=new Set([c.TABLE,c.TBODY,c.TFOOT,c.THEAD,c.TR]),Do={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Wt,onParseError:null};class Mo{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={...Do,...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 op(this.options,this),this.activeFormattingElements=new mp(this.treeAdapter),this.fragmentContextID=r?yr(this.treeAdapter.getTagName(r)):c.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new pp(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={...Do,...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===c.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:Bp,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 c.TITLE:case c.TEXTAREA:{this.tokenizer.state=nt.RCDATA;break}case c.STYLE:case c.XMP:case c.IFRAME:case c.NOEMBED:case c.NOFRAMES:case c.NOSCRIPT:{this.tokenizer.state=nt.RAWTEXT;break}case c.SCRIPT:{this.tokenizer.state=nt.SCRIPT_DATA;break}case c.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,c.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:l,endOffset:d}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(o,{endLine:u,endCol:l,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===c.SVG&&this.treeAdapter.getTagName(n)===H.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===X.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===c.MGLYPH||t.tagID===c.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 Pp(t,i,s,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(i=>i.type===Ct.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(c.P),this.openElements.popUntilTagNamePopped(c.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case c.TR:{this.insertionMode=L.IN_ROW;return}case c.TBODY:case c.THEAD:case c.TFOOT:{this.insertionMode=L.IN_TABLE_BODY;return}case c.CAPTION:{this.insertionMode=L.IN_CAPTION;return}case c.COLGROUP:{this.insertionMode=L.IN_COLUMN_GROUP;return}case c.TABLE:{this.insertionMode=L.IN_TABLE;return}case c.BODY:{this.insertionMode=L.IN_BODY;return}case c.FRAMESET:{this.insertionMode=L.IN_FRAMESET;return}case c.SELECT:{this._resetInsertionModeForSelect(t);return}case c.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case c.HTML:{this.insertionMode=this.headElement?L.AFTER_HEAD:L.BEFORE_HEAD;return}case c.TD:case c.TH:{if(t>0){this.insertionMode=L.IN_CELL;return}break}case c.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===c.TEMPLATE)break;if(r===c.TABLE){this.insertionMode=L.IN_SELECT_IN_TABLE;return}}this.insertionMode=L.IN_SELECT}_isElementCausesFosterParenting(t){return Ro.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 c.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===X.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case c.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 rp[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){fm(this,t);return}switch(this.insertionMode){case L.INITIAL:{$n(this,t);break}case L.BEFORE_HTML:{jn(this,t);break}case L.BEFORE_HEAD:{qn(this,t);break}case L.IN_HEAD:{Yn(this,t);break}case L.IN_HEAD_NO_SCRIPT:{Wn(this,t);break}case L.AFTER_HEAD:{Gn(this,t);break}case L.IN_BODY:case L.IN_CAPTION:case L.IN_CELL:case L.IN_TEMPLATE:{Fo(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:{Yi(this,t);break}case L.IN_TABLE_TEXT:{Wo(this,t);break}case L.IN_COLUMN_GROUP:{Ar(this,t);break}case L.AFTER_BODY:{xr(this,t);break}case L.AFTER_AFTER_BODY:{Nr(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){hm(this,t);return}switch(this.insertionMode){case L.INITIAL:{$n(this,t);break}case L.BEFORE_HTML:{jn(this,t);break}case L.BEFORE_HEAD:{qn(this,t);break}case L.IN_HEAD:{Yn(this,t);break}case L.IN_HEAD_NO_SCRIPT:{Wn(this,t);break}case L.AFTER_HEAD:{Gn(this,t);break}case L.TEXT:{this._insertCharacters(t);break}case L.IN_TABLE:case L.IN_TABLE_BODY:case L.IN_ROW:{Yi(this,t);break}case L.IN_COLUMN_GROUP:{Ar(this,t);break}case L.AFTER_BODY:{xr(this,t);break}case L.AFTER_AFTER_BODY:{Nr(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){ji(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:{ji(this,t);break}case L.IN_TABLE_TEXT:{Xn(this,t);break}case L.AFTER_BODY:{qp(this,t);break}case L.AFTER_AFTER_BODY:case L.AFTER_AFTER_FRAMESET:{Yp(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case L.INITIAL:{Wp(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:{Xn(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)?pm(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case L.INITIAL:{$n(this,t);break}case L.BEFORE_HTML:{Gp(this,t);break}case L.BEFORE_HEAD:{Kp(this,t);break}case L.IN_HEAD:{bt(this,t);break}case L.IN_HEAD_NO_SCRIPT:{Zp(this,t);break}case L.AFTER_HEAD:{e0(this,t);break}case L.IN_BODY:{Ge(this,t);break}case L.IN_TABLE:{bn(this,t);break}case L.IN_TABLE_TEXT:{Xn(this,t);break}case L.IN_CAPTION:{X0(this,t);break}case L.IN_COLUMN_GROUP:{Wi(this,t);break}case L.IN_TABLE_BODY:{Sr(this,t);break}case L.IN_ROW:{Cr(this,t);break}case L.IN_CELL:{J0(this,t);break}case L.IN_SELECT:{Ko(this,t);break}case L.IN_SELECT_IN_TABLE:{tm(this,t);break}case L.IN_TEMPLATE:{rm(this,t);break}case L.AFTER_BODY:{sm(this,t);break}case L.IN_FRAMESET:{am(this,t);break}case L.AFTER_FRAMESET:{um(this,t);break}case L.AFTER_AFTER_BODY:{cm(this,t);break}case L.AFTER_AFTER_FRAMESET:{dm(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?mm(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case L.INITIAL:{$n(this,t);break}case L.BEFORE_HTML:{Vp(this,t);break}case L.BEFORE_HEAD:{Xp(this,t);break}case L.IN_HEAD:{Qp(this,t);break}case L.IN_HEAD_NO_SCRIPT:{Jp(this,t);break}case L.AFTER_HEAD:{t0(this,t);break}case L.IN_BODY:{kr(this,t);break}case L.TEXT:{H0(this,t);break}case L.IN_TABLE:{Vn(this,t);break}case L.IN_TABLE_TEXT:{Xn(this,t);break}case L.IN_CAPTION:{Q0(this,t);break}case L.IN_COLUMN_GROUP:{Z0(this,t);break}case L.IN_TABLE_BODY:{Gi(this,t);break}case L.IN_ROW:{Vo(this,t);break}case L.IN_CELL:{em(this,t);break}case L.IN_SELECT:{Xo(this,t);break}case L.IN_SELECT_IN_TABLE:{nm(this,t);break}case L.IN_TEMPLATE:{im(this,t);break}case L.AFTER_BODY:{Zo(this,t);break}case L.IN_FRAMESET:{om(this,t);break}case L.AFTER_FRAMESET:{lm(this,t);break}case L.AFTER_AFTER_BODY:{Nr(this,t);break}}}onEof(t){switch(this.insertionMode){case L.INITIAL:{$n(this,t);break}case L.BEFORE_HTML:{jn(this,t);break}case L.BEFORE_HEAD:{qn(this,t);break}case L.IN_HEAD:{Yn(this,t);break}case L.IN_HEAD_NO_SCRIPT:{Wn(this,t);break}case L.AFTER_HEAD:{Gn(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:{qo(this,t);break}case L.TEXT:{z0(this,t);break}case L.IN_TABLE_TEXT:{Xn(this,t);break}case L.IN_TEMPLATE:{Qo(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:{qi(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===A.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:{Bo(this,t);break}case L.IN_TABLE:case L.IN_TABLE_BODY:case L.IN_ROW:{Yi(this,t);break}case L.IN_TABLE_TEXT:{Yo(this,t);break}}}}function Fp(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):jo(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 Hp(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>=Mp;!a||u?(u&&e.activeFormattingElements.removeEntry(a),e.openElements.remove(o)):(o=zp(e,a),r===t&&(e.activeFormattingElements.bookmark=a),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(o,r),r=o)}return r}function zp(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 $p(e,t,n){const r=e.treeAdapter.getTagName(t),i=yr(r);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(n);else{const s=e.treeAdapter.getNamespaceURI(t);i===c.TEMPLATE&&s===X.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function jp(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 $i(e,t){for(let n=0;n<Dp;n++){const r=Fp(e,t);if(!r)break;const i=Up(e,r);if(!i)break;e.activeFormattingElements.bookmark=r;const s=Hp(e,i,r.element),o=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(s),o&&$p(e,o,s),jp(e,i,r)}}function ji(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function qp(e,t){e._appendCommentNode(t,e.openElements.items[0])}function Yp(e,t){e._appendCommentNode(t,e.document)}function qi(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 Wp(e,t){e._setDocumentType(t);const n=t.forceQuirks?ht.QUIRKS:wp(t);_p(t)||e._err(t,q.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=L.BEFORE_HTML}function $n(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===c.HTML?(e._insertElement(t,X.HTML),e.insertionMode=L.BEFORE_HEAD):jn(e,t)}function Vp(e,t){const n=t.tagID;(n===c.HTML||n===c.HEAD||n===c.BODY||n===c.BR)&&jn(e,t)}function jn(e,t){e._insertFakeRootElement(),e.insertionMode=L.BEFORE_HEAD,e._processToken(t)}function Kp(e,t){switch(t.tagID){case c.HTML:{Ge(e,t);break}case c.HEAD:{e._insertElement(t,X.HTML),e.headElement=e.openElements.current,e.insertionMode=L.IN_HEAD;break}default:qn(e,t)}}function Xp(e,t){const n=t.tagID;n===c.HEAD||n===c.BODY||n===c.HTML||n===c.BR?qn(e,t):e._err(t,q.endTagWithoutMatchingOpenElement)}function qn(e,t){e._insertFakeElement(H.HEAD,c.HEAD),e.headElement=e.openElements.current,e.insertionMode=L.IN_HEAD,e._processToken(t)}function bt(e,t){switch(t.tagID){case c.HTML:{Ge(e,t);break}case c.BASE:case c.BASEFONT:case c.BGSOUND:case c.LINK:case c.META:{e._appendElement(t,X.HTML),t.ackSelfClosing=!0;break}case c.TITLE:{e._switchToTextParsing(t,nt.RCDATA);break}case c.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,nt.RAWTEXT):(e._insertElement(t,X.HTML),e.insertionMode=L.IN_HEAD_NO_SCRIPT);break}case c.NOFRAMES:case c.STYLE:{e._switchToTextParsing(t,nt.RAWTEXT);break}case c.SCRIPT:{e._switchToTextParsing(t,nt.SCRIPT_DATA);break}case c.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=L.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(L.IN_TEMPLATE);break}case c.HEAD:{e._err(t,q.misplacedStartTagForHeadElement);break}default:Yn(e,t)}}function Qp(e,t){switch(t.tagID){case c.HEAD:{e.openElements.pop(),e.insertionMode=L.AFTER_HEAD;break}case c.BODY:case c.BR:case c.HTML:{Yn(e,t);break}case c.TEMPLATE:{an(e,t);break}default:e._err(t,q.endTagWithoutMatchingOpenElement)}}function an(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==c.TEMPLATE&&e._err(t,q.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(c.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,q.endTagWithoutMatchingOpenElement)}function Yn(e,t){e.openElements.pop(),e.insertionMode=L.AFTER_HEAD,e._processToken(t)}function Zp(e,t){switch(t.tagID){case c.HTML:{Ge(e,t);break}case c.BASEFONT:case c.BGSOUND:case c.HEAD:case c.LINK:case c.META:case c.NOFRAMES:case c.STYLE:{bt(e,t);break}case c.NOSCRIPT:{e._err(t,q.nestedNoscriptInHead);break}default:Wn(e,t)}}function Jp(e,t){switch(t.tagID){case c.NOSCRIPT:{e.openElements.pop(),e.insertionMode=L.IN_HEAD;break}case c.BR:{Wn(e,t);break}default:e._err(t,q.endTagWithoutMatchingOpenElement)}}function Wn(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 e0(e,t){switch(t.tagID){case c.HTML:{Ge(e,t);break}case c.BODY:{e._insertElement(t,X.HTML),e.framesetOk=!1,e.insertionMode=L.IN_BODY;break}case c.FRAMESET:{e._insertElement(t,X.HTML),e.insertionMode=L.IN_FRAMESET;break}case c.BASE:case c.BASEFONT:case c.BGSOUND:case c.LINK:case c.META:case c.NOFRAMES:case c.SCRIPT:case c.STYLE:case c.TEMPLATE:case c.TITLE:{e._err(t,q.abandonedHeadElementChild),e.openElements.push(e.headElement,c.HEAD),bt(e,t),e.openElements.remove(e.headElement);break}case c.HEAD:{e._err(t,q.misplacedStartTagForHeadElement);break}default:Gn(e,t)}}function t0(e,t){switch(t.tagID){case c.BODY:case c.HTML:case c.BR:{Gn(e,t);break}case c.TEMPLATE:{an(e,t);break}default:e._err(t,q.endTagWithoutMatchingOpenElement)}}function Gn(e,t){e._insertFakeElement(H.BODY,c.BODY),e.insertionMode=L.IN_BODY,wr(e,t)}function wr(e,t){switch(t.type){case _e.CHARACTER:{Fo(e,t);break}case _e.WHITESPACE_CHARACTER:{Bo(e,t);break}case _e.COMMENT:{ji(e,t);break}case _e.START_TAG:{Ge(e,t);break}case _e.END_TAG:{kr(e,t);break}case _e.EOF:{qo(e,t);break}}}function Bo(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function Fo(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function n0(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function r0(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function i0(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 s0(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,X.HTML)}function a0(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&Ui.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,X.HTML)}function o0(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,X.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function u0(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,X.HTML),n||(e.formElement=e.openElements.current))}function l0(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===c.LI&&i===c.LI||(n===c.DD||n===c.DT)&&(i===c.DD||i===c.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==c.ADDRESS&&i!==c.DIV&&i!==c.P&&e._isSpecialElement(e.openElements.items[r],i))break}e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,X.HTML)}function c0(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,X.HTML),e.tokenizer.state=nt.PLAINTEXT}function d0(e,t){e.openElements.hasInScope(c.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(c.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,X.HTML),e.framesetOk=!1}function h0(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(H.A);n&&($i(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 f0(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,X.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function p0(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(c.NOBR)&&($i(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,X.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function m0(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,X.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function g0(e,t){e.treeAdapter.getDocumentMode(e.document)!==ht.QUIRKS&&e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,X.HTML),e.framesetOk=!1,e.insertionMode=L.IN_TABLE}function Uo(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,X.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Ho(e){const t=Eo(e,sn.TYPE);return t!=null&&t.toLowerCase()===Rp}function b0(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,X.HTML),Ho(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function E0(e,t){e._appendElement(t,X.HTML),t.ackSelfClosing=!0}function y0(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._appendElement(t,X.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function T0(e,t){t.tagName=H.IMG,t.tagID=c.IMG,Uo(e,t)}function _0(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 w0(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,nt.RAWTEXT)}function k0(e,t){e.framesetOk=!1,e._switchToTextParsing(t,nt.RAWTEXT)}function zo(e,t){e._switchToTextParsing(t,nt.RAWTEXT)}function A0(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 S0(e,t){e.openElements.currentTagId===c.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,X.HTML)}function C0(e,t){e.openElements.hasInScope(c.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,X.HTML)}function x0(e,t){e.openElements.hasInScope(c.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(c.RTC),e._insertElement(t,X.HTML)}function N0(e,t){e._reconstructActiveFormattingElements(),Lo(t),zi(t),t.selfClosing?e._appendElement(t,X.MATHML):e._insertElement(t,X.MATHML),t.ackSelfClosing=!0}function v0(e,t){e._reconstructActiveFormattingElements(),Po(t),zi(t),t.selfClosing?e._appendElement(t,X.SVG):e._insertElement(t,X.SVG),t.ackSelfClosing=!0}function $o(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,X.HTML)}function Ge(e,t){switch(t.tagID){case c.I:case c.S:case c.B:case c.U:case c.EM:case c.TT:case c.BIG:case c.CODE:case c.FONT:case c.SMALL:case c.STRIKE:case c.STRONG:{f0(e,t);break}case c.A:{h0(e,t);break}case c.H1:case c.H2:case c.H3:case c.H4:case c.H5:case c.H6:{a0(e,t);break}case c.P:case c.DL:case c.OL:case c.UL:case c.DIV:case c.DIR:case c.NAV:case c.MAIN:case c.MENU:case c.ASIDE:case c.CENTER:case c.FIGURE:case c.FOOTER:case c.HEADER:case c.HGROUP:case c.DIALOG:case c.DETAILS:case c.ADDRESS:case c.ARTICLE:case c.SEARCH:case c.SECTION:case c.SUMMARY:case c.FIELDSET:case c.BLOCKQUOTE:case c.FIGCAPTION:{s0(e,t);break}case c.LI:case c.DD:case c.DT:{l0(e,t);break}case c.BR:case c.IMG:case c.WBR:case c.AREA:case c.EMBED:case c.KEYGEN:{Uo(e,t);break}case c.HR:{y0(e,t);break}case c.RB:case c.RTC:{C0(e,t);break}case c.RT:case c.RP:{x0(e,t);break}case c.PRE:case c.LISTING:{o0(e,t);break}case c.XMP:{w0(e,t);break}case c.SVG:{v0(e,t);break}case c.HTML:{n0(e,t);break}case c.BASE:case c.LINK:case c.META:case c.STYLE:case c.TITLE:case c.SCRIPT:case c.BGSOUND:case c.BASEFONT:case c.TEMPLATE:{bt(e,t);break}case c.BODY:{r0(e,t);break}case c.FORM:{u0(e,t);break}case c.NOBR:{p0(e,t);break}case c.MATH:{N0(e,t);break}case c.TABLE:{g0(e,t);break}case c.INPUT:{b0(e,t);break}case c.PARAM:case c.TRACK:case c.SOURCE:{E0(e,t);break}case c.IMAGE:{T0(e,t);break}case c.BUTTON:{d0(e,t);break}case c.APPLET:case c.OBJECT:case c.MARQUEE:{m0(e,t);break}case c.IFRAME:{k0(e,t);break}case c.SELECT:{A0(e,t);break}case c.OPTION:case c.OPTGROUP:{S0(e,t);break}case c.NOEMBED:case c.NOFRAMES:{zo(e,t);break}case c.FRAMESET:{i0(e,t);break}case c.TEXTAREA:{_0(e,t);break}case c.NOSCRIPT:{e.options.scriptingEnabled?zo(e,t):$o(e,t);break}case c.PLAINTEXT:{c0(e,t);break}case c.COL:case c.TH:case c.TD:case c.TR:case c.HEAD:case c.FRAME:case c.TBODY:case c.TFOOT:case c.THEAD:case c.CAPTION:case c.COLGROUP:break;default:$o(e,t)}}function I0(e,t){if(e.openElements.hasInScope(c.BODY)&&(e.insertionMode=L.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function O0(e,t){e.openElements.hasInScope(c.BODY)&&(e.insertionMode=L.AFTER_BODY,Zo(e,t))}function L0(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function P0(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(c.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(c.FORM):n&&e.openElements.remove(n))}function R0(e){e.openElements.hasInButtonScope(c.P)||e._insertFakeElement(H.P,c.P),e._closePElement()}function D0(e){e.openElements.hasInListItemScope(c.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(c.LI),e.openElements.popUntilTagNamePopped(c.LI))}function M0(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function B0(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function F0(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,c.BR),e.openElements.pop(),e.framesetOk=!1}function jo(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!==c.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 kr(e,t){switch(t.tagID){case c.A:case c.B:case c.I:case c.S:case c.U:case c.EM:case c.TT:case c.BIG:case c.CODE:case c.FONT:case c.NOBR:case c.SMALL:case c.STRIKE:case c.STRONG:{$i(e,t);break}case c.P:{R0(e);break}case c.DL:case c.UL:case c.OL:case c.DIR:case c.DIV:case c.NAV:case c.PRE:case c.MAIN:case c.MENU:case c.ASIDE:case c.BUTTON:case c.CENTER:case c.FIGURE:case c.FOOTER:case c.HEADER:case c.HGROUP:case c.DIALOG:case c.ADDRESS:case c.ARTICLE:case c.DETAILS:case c.SEARCH:case c.SECTION:case c.SUMMARY:case c.LISTING:case c.FIELDSET:case c.BLOCKQUOTE:case c.FIGCAPTION:{L0(e,t);break}case c.LI:{D0(e);break}case c.DD:case c.DT:{M0(e,t);break}case c.H1:case c.H2:case c.H3:case c.H4:case c.H5:case c.H6:{B0(e);break}case c.BR:{U0(e);break}case c.BODY:{I0(e,t);break}case c.HTML:{O0(e,t);break}case c.FORM:{P0(e);break}case c.APPLET:case c.OBJECT:case c.MARQUEE:{F0(e,t);break}case c.TEMPLATE:{an(e,t);break}default:jo(e,t)}}function qo(e,t){e.tmplInsertionModeStack.length>0?Qo(e,t):qi(e,t)}function H0(e,t){var n;t.tagID===c.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function z0(e,t){e._err(t,q.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Yi(e,t){if(e.openElements.currentTagId!==void 0&&Ro.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:{Wo(e,t);break}case _e.WHITESPACE_CHARACTER:{Yo(e,t);break}}else Kn(e,t)}function $0(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,X.HTML),e.insertionMode=L.IN_CAPTION}function j0(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,X.HTML),e.insertionMode=L.IN_COLUMN_GROUP}function q0(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(H.COLGROUP,c.COLGROUP),e.insertionMode=L.IN_COLUMN_GROUP,Wi(e,t)}function Y0(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,X.HTML),e.insertionMode=L.IN_TABLE_BODY}function W0(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(H.TBODY,c.TBODY),e.insertionMode=L.IN_TABLE_BODY,Sr(e,t)}function G0(e,t){e.openElements.hasInTableScope(c.TABLE)&&(e.openElements.popUntilTagNamePopped(c.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function V0(e,t){Ho(t)?e._appendElement(t,X.HTML):Kn(e,t),t.ackSelfClosing=!0}function K0(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,X.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function bn(e,t){switch(t.tagID){case c.TD:case c.TH:case c.TR:{W0(e,t);break}case c.STYLE:case c.SCRIPT:case c.TEMPLATE:{bt(e,t);break}case c.COL:{q0(e,t);break}case c.FORM:{K0(e,t);break}case c.TABLE:{G0(e,t);break}case c.TBODY:case c.TFOOT:case c.THEAD:{Y0(e,t);break}case c.INPUT:{V0(e,t);break}case c.CAPTION:{$0(e,t);break}case c.COLGROUP:{j0(e,t);break}default:Kn(e,t)}}function Vn(e,t){switch(t.tagID){case c.TABLE:{e.openElements.hasInTableScope(c.TABLE)&&(e.openElements.popUntilTagNamePopped(c.TABLE),e._resetInsertionMode());break}case c.TEMPLATE:{an(e,t);break}case c.BODY:case c.CAPTION:case c.COL:case c.COLGROUP:case c.HTML:case c.TBODY:case c.TD:case c.TFOOT:case c.TH:case c.THEAD:case c.TR:break;default:Kn(e,t)}}function Kn(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,wr(e,t),e.fosterParentingEnabled=n}function Yo(e,t){e.pendingCharacterTokens.push(t)}function Wo(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Xn(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)Kn(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const Go=new Set([c.CAPTION,c.COL,c.COLGROUP,c.TBODY,c.TD,c.TFOOT,c.TH,c.THEAD,c.TR]);function X0(e,t){const n=t.tagID;Go.has(n)?e.openElements.hasInTableScope(c.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(c.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=L.IN_TABLE,bn(e,t)):Ge(e,t)}function Q0(e,t){const n=t.tagID;switch(n){case c.CAPTION:case c.TABLE:{e.openElements.hasInTableScope(c.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(c.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=L.IN_TABLE,n===c.TABLE&&Vn(e,t));break}case c.BODY:case c.COL:case c.COLGROUP:case c.HTML:case c.TBODY:case c.TD:case c.TFOOT:case c.TH:case c.THEAD:case c.TR:break;default:kr(e,t)}}function Wi(e,t){switch(t.tagID){case c.HTML:{Ge(e,t);break}case c.COL:{e._appendElement(t,X.HTML),t.ackSelfClosing=!0;break}case c.TEMPLATE:{bt(e,t);break}default:Ar(e,t)}}function Z0(e,t){switch(t.tagID){case c.COLGROUP:{e.openElements.currentTagId===c.COLGROUP&&(e.openElements.pop(),e.insertionMode=L.IN_TABLE);break}case c.TEMPLATE:{an(e,t);break}case c.COL:break;default:Ar(e,t)}}function Ar(e,t){e.openElements.currentTagId===c.COLGROUP&&(e.openElements.pop(),e.insertionMode=L.IN_TABLE,e._processToken(t))}function Sr(e,t){switch(t.tagID){case c.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,X.HTML),e.insertionMode=L.IN_ROW;break}case c.TH:case c.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(H.TR,c.TR),e.insertionMode=L.IN_ROW,Cr(e,t);break}case c.CAPTION:case c.COL:case c.COLGROUP:case c.TBODY:case c.TFOOT:case c.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=L.IN_TABLE,bn(e,t));break}default:bn(e,t)}}function Gi(e,t){const n=t.tagID;switch(t.tagID){case c.TBODY:case c.TFOOT:case c.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=L.IN_TABLE);break}case c.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=L.IN_TABLE,Vn(e,t));break}case c.BODY:case c.CAPTION:case c.COL:case c.COLGROUP:case c.HTML:case c.TD:case c.TH:case c.TR:break;default:Vn(e,t)}}function Cr(e,t){switch(t.tagID){case c.TH:case c.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,X.HTML),e.insertionMode=L.IN_CELL,e.activeFormattingElements.insertMarker();break}case c.CAPTION:case c.COL:case c.COLGROUP:case c.TBODY:case c.TFOOT:case c.THEAD:case c.TR:{e.openElements.hasInTableScope(c.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=L.IN_TABLE_BODY,Sr(e,t));break}default:bn(e,t)}}function Vo(e,t){switch(t.tagID){case c.TR:{e.openElements.hasInTableScope(c.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=L.IN_TABLE_BODY);break}case c.TABLE:{e.openElements.hasInTableScope(c.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=L.IN_TABLE_BODY,Gi(e,t));break}case c.TBODY:case c.TFOOT:case c.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(c.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=L.IN_TABLE_BODY,Gi(e,t));break}case c.BODY:case c.CAPTION:case c.COL:case c.COLGROUP:case c.HTML:case c.TD:case c.TH:break;default:Vn(e,t)}}function J0(e,t){const n=t.tagID;Go.has(n)?(e.openElements.hasInTableScope(c.TD)||e.openElements.hasInTableScope(c.TH))&&(e._closeTableCell(),Cr(e,t)):Ge(e,t)}function em(e,t){const n=t.tagID;switch(n){case c.TD:case c.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=L.IN_ROW);break}case c.TABLE:case c.TBODY:case c.TFOOT:case c.THEAD:case c.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),Vo(e,t));break}case c.BODY:case c.CAPTION:case c.COL:case c.COLGROUP:case c.HTML:break;default:kr(e,t)}}function Ko(e,t){switch(t.tagID){case c.HTML:{Ge(e,t);break}case c.OPTION:{e.openElements.currentTagId===c.OPTION&&e.openElements.pop(),e._insertElement(t,X.HTML);break}case c.OPTGROUP:{e.openElements.currentTagId===c.OPTION&&e.openElements.pop(),e.openElements.currentTagId===c.OPTGROUP&&e.openElements.pop(),e._insertElement(t,X.HTML);break}case c.HR:{e.openElements.currentTagId===c.OPTION&&e.openElements.pop(),e.openElements.currentTagId===c.OPTGROUP&&e.openElements.pop(),e._appendElement(t,X.HTML),t.ackSelfClosing=!0;break}case c.INPUT:case c.KEYGEN:case c.TEXTAREA:case c.SELECT:{e.openElements.hasInSelectScope(c.SELECT)&&(e.openElements.popUntilTagNamePopped(c.SELECT),e._resetInsertionMode(),t.tagID!==c.SELECT&&e._processStartTag(t));break}case c.SCRIPT:case c.TEMPLATE:{bt(e,t);break}}}function Xo(e,t){switch(t.tagID){case c.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===c.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===c.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===c.OPTGROUP&&e.openElements.pop();break}case c.OPTION:{e.openElements.currentTagId===c.OPTION&&e.openElements.pop();break}case c.SELECT:{e.openElements.hasInSelectScope(c.SELECT)&&(e.openElements.popUntilTagNamePopped(c.SELECT),e._resetInsertionMode());break}case c.TEMPLATE:{an(e,t);break}}}function tm(e,t){const n=t.tagID;n===c.CAPTION||n===c.TABLE||n===c.TBODY||n===c.TFOOT||n===c.THEAD||n===c.TR||n===c.TD||n===c.TH?(e.openElements.popUntilTagNamePopped(c.SELECT),e._resetInsertionMode(),e._processStartTag(t)):Ko(e,t)}function nm(e,t){const n=t.tagID;n===c.CAPTION||n===c.TABLE||n===c.TBODY||n===c.TFOOT||n===c.THEAD||n===c.TR||n===c.TD||n===c.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(c.SELECT),e._resetInsertionMode(),e.onEndTag(t)):Xo(e,t)}function rm(e,t){switch(t.tagID){case c.BASE:case c.BASEFONT:case c.BGSOUND:case c.LINK:case c.META:case c.NOFRAMES:case c.SCRIPT:case c.STYLE:case c.TEMPLATE:case c.TITLE:{bt(e,t);break}case c.CAPTION:case c.COLGROUP:case c.TBODY:case c.TFOOT:case c.THEAD:{e.tmplInsertionModeStack[0]=L.IN_TABLE,e.insertionMode=L.IN_TABLE,bn(e,t);break}case c.COL:{e.tmplInsertionModeStack[0]=L.IN_COLUMN_GROUP,e.insertionMode=L.IN_COLUMN_GROUP,Wi(e,t);break}case c.TR:{e.tmplInsertionModeStack[0]=L.IN_TABLE_BODY,e.insertionMode=L.IN_TABLE_BODY,Sr(e,t);break}case c.TD:case c.TH:{e.tmplInsertionModeStack[0]=L.IN_ROW,e.insertionMode=L.IN_ROW,Cr(e,t);break}default:e.tmplInsertionModeStack[0]=L.IN_BODY,e.insertionMode=L.IN_BODY,Ge(e,t)}}function im(e,t){t.tagID===c.TEMPLATE&&an(e,t)}function Qo(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(c.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):qi(e,t)}function sm(e,t){t.tagID===c.HTML?Ge(e,t):xr(e,t)}function Zo(e,t){var n;if(t.tagID===c.HTML){if(e.fragmentContext||(e.insertionMode=L.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===c.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 xr(e,t)}function xr(e,t){e.insertionMode=L.IN_BODY,wr(e,t)}function am(e,t){switch(t.tagID){case c.HTML:{Ge(e,t);break}case c.FRAMESET:{e._insertElement(t,X.HTML);break}case c.FRAME:{e._appendElement(t,X.HTML),t.ackSelfClosing=!0;break}case c.NOFRAMES:{bt(e,t);break}}}function om(e,t){t.tagID===c.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==c.FRAMESET&&(e.insertionMode=L.AFTER_FRAMESET))}function um(e,t){switch(t.tagID){case c.HTML:{Ge(e,t);break}case c.NOFRAMES:{bt(e,t);break}}}function lm(e,t){t.tagID===c.HTML&&(e.insertionMode=L.AFTER_AFTER_FRAMESET)}function cm(e,t){t.tagID===c.HTML?Ge(e,t):Nr(e,t)}function Nr(e,t){e.insertionMode=L.IN_BODY,wr(e,t)}function dm(e,t){switch(t.tagID){case c.HTML:{Ge(e,t);break}case c.NOFRAMES:{bt(e,t);break}}}function hm(e,t){t.chars=Ie,e._insertCharacters(t)}function fm(e,t){e._insertCharacters(t),e.framesetOk=!1}function Jo(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 pm(e,t){if(vp(t))Jo(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===X.MATHML?Lo(t):r===X.SVG&&(Ip(t),Po(t)),zi(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function mm(e,t){if(t.tagID===c.P||t.tagID===c.BR){Jo(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 gm(e,t){return Mo.parse(e,t)}function bm(e,t,n){typeof e=="string"&&(n=t,t=e,e=null);const r=Mo.getFragmentParser(e,n);return r.tokenizer.write(t,!0),r.getFragment()}function Em(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?eu(e.position):"start"in e||"end"in e?eu(e):"line"in e||"column"in e?Vi(e):""}function Vi(e){return tu(e&&e.line)+":"+tu(e&&e.column)}function eu(e){return Vi(e&&e.start)+"-"+Vi(e&&e.end)}function tu(e){return e&&typeof e=="number"?e:1}class Je 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=Em(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}}Je.prototype.file="",Je.prototype.name="",Je.prototype.reason="",Je.prototype.message="",Je.prototype.stack="",Je.prototype.column=void 0,Je.prototype.line=void 0,Je.prototype.ancestors=void 0,Je.prototype.cause=void 0,Je.prototype.fatal=void 0,Je.prototype.place=void 0,Je.prototype.ruleId=void 0,Je.prototype.source=void 0;const xt={basename:ym,dirname:Tm,extname:_m,join:wm,sep:"/"};function ym(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Qn(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 Tm(e){if(Qn(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 _m(e){Qn(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 wm(...e){let t=-1,n;for(;++t<e.length;)Qn(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":km(n)}function km(e){Qn(e);const t=e.codePointAt(0)===47;let n=Am(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Am(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 Qn(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Sm={cwd:Cm};function Cm(){return"/"}function Ki(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function xm(e){if(typeof e=="string")e=new URL(e);else if(!Ki(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 Nm(e)}function Nm(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 Xi=["history","path","basename","stem","extname","dirname"];class nu{constructor(t){let n;t?Ki(t)?n={path:t}:typeof t=="string"||vm(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":Sm.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Xi.length;){const s=Xi[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)Xi.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?xt.basename(this.path):void 0}set basename(t){Zi(t,"basename"),Qi(t,"basename"),this.path=xt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?xt.dirname(this.path):void 0}set dirname(t){ru(this.basename,"dirname"),this.path=xt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?xt.extname(this.path):void 0}set extname(t){if(Qi(t,"extname"),ru(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=xt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Ki(t)&&(t=xm(t)),Zi(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?xt.basename(this.path,this.extname):void 0}set stem(t){Zi(t,"stem"),Qi(t,"stem"),this.path=xt.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 Je(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 Qi(e,t){if(e&&e.includes(xt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+xt.sep+"`")}function Zi(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function ru(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function vm(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Im={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"}},Om="https://html.spec.whatwg.org/multipage/parsing.html#parse-error-",Lm=/-[a-z]/g,Pm=/%c(?:([-+])(\d+))?/g,Rm=/%x/g,Dm={2:!0,1:!1,0:null},Mm={};function Bm(e,t){const n=t||Mm,r=n.onerror,i=e instanceof nu?e:new nu(e),s=n.fragment?bm:gm,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(l){const d=l.code,h=Fm(d),p=n[h],f=p??!0,g=typeof f=="number"?f:f?1:0;if(g){const _=Im[h],m=new Je(b(_.reason),{place:{start:{line:l.startLine,column:l.startCol,offset:l.startOffset},end:{line:l.endLine,column:l.endCol,offset:l.endOffset}},ruleId:d,source:"hast-util-from-html"});i.path&&(m.file=i.path,m.name=i.path+":"+m.name),m.fatal=Dm[g],m.note=b(_.description),m.url=_.url===!1?void 0:Om+d,r(m)}function b(_){return _.replace(Pm,m).replace(Rm,E);function m(S,I,D){const B=(D?Number.parseInt(D,10):0)*(I==="-"?-1:1),C=o.charAt(l.startOffset+B);return Hm(C)}function E(){return zm(o.charCodeAt(l.startOffset))}}}}function Fm(e){return e.replace(Lm,Um)}function Um(e){return e.charAt(1).toUpperCase()}function Hm(e){return e==="`"?"` ` `":e}function zm(e){return"0x"+e.toString(16).toUpperCase()}const Gt=0,ne=1,pe=2,Be=3,xe=4,Et=5,vr=6,Ve=7,rt=8,ge=9,fe=10,Oe=11,be=12,Le=13,Zn=14,it=15,Ke=16,Xe=17,st=18,ot=19,ft=20,we=21,de=22,$e=23,ut=24,Ye=25,$m=0;function We(e){return e>=48&&e<=57}function Vt(e){return We(e)||e>=65&&e<=70||e>=97&&e<=102}function Ji(e){return e>=65&&e<=90}function jm(e){return e>=97&&e<=122}function qm(e){return Ji(e)||jm(e)}function Ym(e){return e>=128}function Ir(e){return qm(e)||Ym(e)||e===95}function iu(e){return Ir(e)||We(e)||e===45}function Wm(e){return e>=0&&e<=8||e===11||e>=14&&e<=31||e===127}function Or(e){return e===10||e===13||e===12}function on(e){return Or(e)||e===32||e===9}function Nt(e,t){return!(e!==92||Or(t)||t===$m)}function Lr(e,t,n){return e===45?Ir(t)||t===45||Nt(t,n):Ir(e)?!0:e===92?Nt(e,t):!1}function es(e,t,n){return e===43||e===45?We(t)?2:t===46&&We(n)?3:0:e===46?We(t)?2:0:We(e)?1:0}function su(e){return e===65279||e===65534?1:0}const ts=new Array(128),Gm=128,Pr=130,au=131,ns=132,ou=133;for(let e=0;e<ts.length;e++)ts[e]=on(e)&&Pr||We(e)&&au||Ir(e)&&ns||Wm(e)&&ou||e||Gm;function rs(e){return e<128?ts[e]:ns}function En(e,t){return t<e.length?e.charCodeAt(t):0}function is(e,t,n){return n===13&&En(e,t+1)===10?2:1}function yn(e,t,n){let r=e.charCodeAt(t);return Ji(r)&&(r=r|32),r===n}function Jn(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 Vm(e,t){for(;t>=0&&on(e.charCodeAt(t));t--);return t+1}function Rr(e,t){for(;t<e.length&&on(e.charCodeAt(t));t++);return t}function ss(e,t){for(;t<e.length&&We(e.charCodeAt(t));t++);return t}function Tn(e,t){if(t+=2,Vt(En(e,t-1))){for(const r=Math.min(e.length,t+5);t<r&&Vt(En(e,t));t++);const n=En(e,t);on(n)&&(t+=is(e,t,n))}return t}function Dr(e,t){for(;t<e.length;t++){const n=e.charCodeAt(t);if(!iu(n)){if(Nt(n,En(e,t+1))){t=Tn(e,t)-1;continue}break}}return t}function Mr(e,t){let n=e.charCodeAt(t);if((n===43||n===45)&&(n=e.charCodeAt(t+=1)),We(n)&&(t=ss(e,t+1),n=e.charCodeAt(t)),n===46&&We(e.charCodeAt(t+1))&&(t+=2,t=ss(e,t)),yn(e,t,101)){let r=0;n=e.charCodeAt(t+1),(n===45||n===43)&&(r=1,n=e.charCodeAt(t+2)),We(n)&&(t=ss(e,t+1+r+1))}return t}function as(e,t){for(;t<e.length;t++){const n=e.charCodeAt(t);if(n===41){t++;break}Nt(n,En(e,t+1))&&(t=Tn(e,t))}return t}function uu(e){if(e.length===1&&!Vt(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 os=["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"],Km=16*1024;function Br(e=null,t){return e===null||e.length<t?new Uint32Array(Math.max(t+1024,Km)):e}const lu=10,Xm=12,cu=13;function du(e){const t=e.source,n=t.length,r=t.length>0?su(t.charCodeAt(0)):0,i=Br(e.lines,n),s=Br(e.columns,n);let o=e.startLine,a=e.startColumn;for(let u=r;u<n;u++){const l=t.charCodeAt(u);i[u]=o,s[u]=a++,(l===lu||l===cu||l===Xm)&&(l===cu&&u+1<n&&t.charCodeAt(u+1)===lu&&(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 Qm{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||du(this),{source:n,offset:this.startOffset+t,line:this.lines[t],column:this.columns[t]}}getLocationRange(t,n,r){return this.computed||du(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,er=1,Fr=2,Kt=new Uint8Array(32);Kt[pe]=de,Kt[we]=de,Kt[ot]=ft,Kt[$e]=ut;const _t=new Uint8Array(32);_t[pe]=er,_t[we]=er,_t[ot]=er,_t[$e]=er,_t[de]=Fr,_t[ft]=Fr,_t[ut]=Fr;function hu(e,t,n){return e<t?t:e>n?n:e}class Zm{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=Br(this.offsetAndType,t.length+1),s=Br(this.balance,t.length+1);let o=0,a=-1,u=0,l=t.length;this.offsetAndType=null,this.balance=null,s.fill(0),n(t,(d,h,p)=>{const f=o++;if(i[f]=d<<Tt|p,a===-1&&(a=h),s[f]=l,d===u){const g=s[l];s[l]=f,l=g,u=Kt[i[g]>>Tt]}else this.isBlockOpenerTokenType(d)&&(l=f,u=Kt[d])}),i[o]=Gt<<Tt|r,s[o]=o;for(let d=0;d<o;d++){const h=s[d];if(h<=d){const p=s[h];p!==d&&(s[d]=p)}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:Gt}lookupTypeNonSC(t){for(let n=this.tokenIndex;n<this.tokenCount;n++){const r=this.offsetAndType[n]>>Tt;if(r!==Le&&r!==Ye&&t--===0)return r}return Gt}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!==Ye&&t--===0)return n-this.tokenIndex}return Gt}lookupValue(t,n){return t+=this.tokenIndex,t<this.tokenCount?Jn(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[hu(t,0,this.tokenCount)]&yt}getTokenType(t){return t===this.tokenIndex?this.tokenType:this.offsetAndType[hu(t,0,this.tokenCount)]>>Tt}substrToCursor(t){return this.source.substring(t,this.tokenStart)}isBlockOpenerTokenType(t){return _t[t]===er}isBlockCloserTokenType(t){return _t[t]===Fr}getBlockTokenPairIndex(t){const n=this.getTokenType(t);if(_t[n]===1){const r=this.balance[t],i=this.getTokenType(r);return Kt[n]===i?r:-1}else if(_t[n]===2){const r=this.balance[t],i=this.getTokenType(r);return Kt[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=Gt,this.tokenStart=this.tokenEnd=this.source.length)}skipSC(){for(;this.tokenType===Le||this.tokenType===Ye;)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:os[n],chunk:this.source.substring(r,i),balance:this.balance[s]}}),t}}function Ur(e,t){function n(h){return h<a?e.charCodeAt(h):0}function r(){if(l=Mr(e,l),Lr(n(l),n(l+1),n(l+2))){d=be,l=Dr(e,l);return}if(n(l)===37){d=Oe,l++;return}d=fe}function i(){const h=l;if(l=Dr(e,l),Jn(e,h,l,"url")&&n(l)===40){if(l=Rr(e,l+1),n(l)===34||n(l)===39){d=pe,l=h+4;return}o();return}if(n(l)===40){d=pe,l++;return}d=ne}function s(h){for(h||(h=n(l++)),d=Et;l<e.length;l++){const p=e.charCodeAt(l);switch(rs(p)){case h:l++;return;case Pr:if(Or(p)){l+=is(e,l,p),d=vr;return}break;case 92:if(l===e.length-1)break;const f=n(l+1);Or(f)?l+=is(e,l+1,f):Nt(p,f)&&(l=Tn(e,l)-1);break}}}function o(){for(d=Ve,l=Rr(e,l);l<e.length;l++){const h=e.charCodeAt(l);switch(rs(h)){case 41:l++;return;case Pr:if(l=Rr(e,l),n(l)===41||l>=e.length){l<e.length&&l++;return}l=as(e,l),d=rt;return;case 34:case 39:case 40:case ou:l=as(e,l),d=rt;return;case 92:if(Nt(h,n(l+1))){l=Tn(e,l)-1;break}l=as(e,l),d=rt;return}}}e=String(e||"");const a=e.length;let u=su(n(0)),l=u,d;for(;l<a;){const h=e.charCodeAt(l);switch(rs(h)){case Pr:d=Le,l=Rr(e,l+1);break;case 34:s();break;case 35:iu(n(l+1))||Nt(n(l+1),n(l+2))?(d=xe,l=Dr(e,l+1)):(d=ge,l++);break;case 39:s();break;case 40:d=we,l++;break;case 41:d=de,l++;break;case 43:es(h,n(l+1),n(l+2))?r():(d=ge,l++);break;case 44:d=st,l++;break;case 45:es(h,n(l+1),n(l+2))?r():n(l+1)===45&&n(l+2)===62?(d=it,l=l+3):Lr(h,n(l+1),n(l+2))?i():(d=ge,l++);break;case 46:es(h,n(l+1),n(l+2))?r():(d=ge,l++);break;case 47:n(l+1)===42?(d=Ye,l=e.indexOf("*/",l+2),l=l===-1?e.length:l+2):(d=ge,l++);break;case 58:d=Ke,l++;break;case 59:d=Xe,l++;break;case 60:n(l+1)===33&&n(l+2)===45&&n(l+3)===45?(d=Zn,l=l+4):(d=ge,l++);break;case 64:Lr(n(l+1),n(l+2),n(l+3))?(d=Be,l=Dr(e,l+1)):(d=ge,l++);break;case 91:d=ot,l++;break;case 92:Nt(h,n(l+1))?i():(d=ge,l++);break;case 93:d=ft,l++;break;case 123:d=$e,l++;break;case 125:d=ut,l++;break;case au:r();break;case ns:i();break;default:d=ge,l++}t(d,u,u=l)}}let _n=null;class je{static createItem(t){return{prev:null,next:null,data:t}}constructor(){this.head=null,this.tail=null,this.cursor=null}createItem(t){return je.createItem(t)}allocateCursor(t,n){let r;return _n!==null?(r=_n,_n=_n.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=_n,_n=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=je.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 je;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 je;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 je;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(je.createItem(t))}append(t){return this.insert(t)}appendData(t){return this.insert(je.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(je.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(je.createItem(t))}pop(){return this.tail!==null?this.remove(this.tail):null}unshift(t){this.prepend(je.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 Hr(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 us=100,fu=60,pu=" ";function mu({source:e,line:t,column:n,baseLine:r,baseColumn:i},s){function o(g,b){return l.slice(g,b).map((_,m)=>String(g+m+1).padStart(p)+" |"+_).join(`
|
|
4
|
+
`)}const a=`
|
|
5
|
+
`.repeat(Math.max(r-1,0)),u=" ".repeat(Math.max(i-1,0)),l=(a+u+e).split(/\r\n?|\n|\f/),d=Math.max(1,t-s)-1,h=Math.min(t+s,l.length+1),p=Math.max(4,String(h).length)+1;let f=0;n+=(pu.length-1)*(l[t-1].substr(0,n-1).match(/\t/g)||[]).length,n>us&&(f=n-fu+3,n=fu-2);for(let g=d;g<=h;g++)g>=0&&g<l.length&&(l[g]=l[g].replace(/\t/g,pu),l[g]=(f>0&&l[g].length>f?"…":"")+l[g].substr(f,us-2)+(l[g].length>f+us-1?"…":""));return[o(d,t),new Array(n+p+2).join("-")+"^",o(t,h)].filter(Boolean).join(`
|
|
6
|
+
`).replace(/^(\s+\d+\s+\|\n)+/,"").replace(/\n(\s+\d+\s+\|)+$/,"")}function gu(e,t,n,r,i,s=1,o=1){return Object.assign(Hr("SyntaxError",e),{source:t,offset:n,line:r,column:i,sourceFragment(u){return mu({source:t,line:r,column:i,baseLine:s,baseColumn:o},isNaN(u)?0:u)},get formattedMessage(){return`Parse error: ${e}
|
|
7
|
+
`+mu({source:t,line:r,column:i,baseLine:s,baseColumn:o},2)}})}function Jm(e){const t=this.createList();let n=!1;const r={recognizer:e};for(;!this.eof;){switch(this.tokenType){case Ye: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 wn=()=>{},eg=33,tg=35,ls=59,bu=123,Eu=0,ng={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}},rg={createList(){return new je},createSingleNodeList(e){return new je().appendData(e)},getFirstListNode(e){return e&&e.first},getLastListNode(e){return e&&e.last}};function ig(e){return function(){return this[e]()}}function cs(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 sg(e){const t={context:Object.create(null),features:Object.assign(Object.create(null),e.features),scope:Object.assign(Object.create(null),e.scope),atrule:cs(e.atrule),pseudo:cs(e.pseudo),node:cs(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]=ig(r);break}return{config:t,...t,...t.node}}function ag(e){let t="",n="<unknown>",r=!1,i=wn,s=!1;const o=new Qm,a=Object.assign(new Zm,sg(e||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:Jm,consumeUntilBalanceEnd:()=>0,consumeUntilLeftCurlyBracket(d){return d===bu?1:0},consumeUntilLeftCurlyBracketOrSemicolon(d){return d===bu||d===ls?1:0},consumeUntilExclamationMarkOrSemicolon(d){return d===eg||d===ls?1:0},consumeUntilSemicolonIncluded(d){return d===ls?2:0},createList:wn,createSingleNodeList:wn,getFirstListNode:wn,getLastListNode:wn,parseWithFallback(d,h){const p=this.tokenIndex;try{return d.call(this)}catch(f){if(s)throw f;this.skip(p-this.tokenIndex);const g=h.call(this);return s=!0,i(f,g),s=!1,g}},lookupNonWSType(d){let h;do if(h=this.lookupType(d++),h!==Le&&h!==Ye)return h;while(h!==Eu);return Eu},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 yn(t,d,h)},cmpStr(d,h,p){return Jn(t,d,h,p)},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,Mr(t,this.tokenStart));return this.eat(d),h},eat(d){if(this.tokenType!==d){const h=os[d].slice(0,-6).replace(/-/g," ").replace(/^./,g=>g.toUpperCase());let p=`${/[[\](){}]/.test(h)?`"${h}"`:h} is expected`,f=this.tokenStart;switch(d){case ne:this.tokenType===pe||this.tokenType===Ve?(f=this.tokenEnd-1,p="Identifier is expected but function found"):p="Identifier is expected";break;case xe:this.isDelim(tg)&&(this.next(),f++,p="Name is expected");break;case Oe:this.tokenType===fe&&(f=this.tokenEnd,p="Percent sign is expected");break}this.error(p,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),p=this.getLastListNode(d);return o.getLocationRange(h!==null?h.loc.start.offset-o.startOffset:this.tokenStart,p!==null?p.loc.end.offset-o.startOffset:this.tokenStart,n)}return null},error(d,h){const p=typeof h<"u"&&h<t.length?o.getLocation(h):this.eof?o.getLocation(Vm(t,t.length-1)):o.getLocation(this.tokenStart);throw new gu(d||"Unexpected input",t,p.offset,p.line,p.column,o.startLine,o.startColumn)}}),u=()=>({filename:n,source:t,tokenCount:a.tokenCount,getTokenType:d=>a.getTokenType(d),getTokenTypeName:d=>os[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,Ur),o.setSource(t,h.offset,h.line,h.column),n=h.filename||"<unknown>",r=!!h.positions,i=typeof h.onParseError=="function"?h.onParseError:wn,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:p="default",list:f=!0,onComment:g,onToken:b}=h;if(!(p in a.context))throw new Error("Unknown context `"+p+"`");Object.assign(a,f?rg:ng),Array.isArray(b)?a.forEachToken((m,E,S)=>{b.push({type:m,start:E,end:S})}):typeof b=="function"&&a.forEachToken(b.bind(u())),typeof g=="function"&&a.forEachToken((m,E,S)=>{if(m===Ye){const I=a.getLocation(E,S),D=Jn(t,S-2,S,"*/")?t.slice(E+2,S-2):t.slice(E+2,S);g(D,I)}});const _=a.context[p].call(a,h);return a.eof||a.error(),_},{SyntaxError:gu,config:a.config})}var zr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function og(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ds={},$r={},jr={},yu;function ug(){if(yu)return jr;yu=1;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return jr.encode=function(t){if(0<=t&&t<e.length)return e[t];throw new TypeError("Must be between 0 and 63: "+t)},jr.decode=function(t){var n=65,r=90,i=97,s=122,o=48,a=57,u=43,l=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==l?63:-1},jr}var Tu;function lg(){if(Tu)return $r;Tu=1;var e=ug(),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,l=a>>1;return u?-l:l}return $r.encode=function(u){var l="",d,h=s(u);do d=h&r,h>>>=t,h>0&&(d|=i),l+=e.encode(d);while(h>0);return l},$r.decode=function(u,l,d){var h=u.length,p=0,f=0,g,b;do{if(l>=h)throw new Error("Expected more digits in base 64 VLQ value.");if(b=e.decode(u.charCodeAt(l++)),b===-1)throw new Error("Invalid base64 digit: "+u.charAt(l-1));g=!!(b&i),b&=r,p=p+(b<<f),f+=t}while(g);d.value=o(p),d.rest=l},$r}var hs={},_u;function fs(){return _u||(_u=1,(function(e){function t(x,w,P){if(w in x)return x[w];if(arguments.length===3)return P;throw new Error('"'+w+'" is a required argument.')}e.getArg=t;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function i(x){var w=x.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(x){var w="";return x.scheme&&(w+=x.scheme+":"),w+="//",x.auth&&(w+=x.auth+"@"),x.host&&(w+=x.host),x.port&&(w+=":"+x.port),x.path&&(w+=x.path),w}e.urlGenerate=s;var o=32;function a(x){var w=[];return function(P){for(var R=0;R<w.length;R++)if(w[R].input===P){var k=w[0];return w[0]=w[R],w[R]=k,w[0].result}var M=x(P);return w.unshift({input:P,result:M}),w.length>o&&w.pop(),M}}var u=a(function(w){var P=w,R=i(w);if(R){if(!R.path)return w;P=R.path}for(var k=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=k?"/":"."),R?(R.path=P,s(R)):P});e.normalize=u;function l(x,w){x===""&&(x="."),w===""&&(w=".");var P=i(w),R=i(x);if(R&&(x=R.path||"/"),P&&!P.scheme)return R&&(P.scheme=R.scheme),s(P);if(P||w.match(r))return w;if(R&&!R.host&&!R.path)return R.host=w,s(R);var k=w.charAt(0)==="/"?w:u(x.replace(/\/+$/,"")+"/"+w);return R?(R.path=k,s(R)):k}e.join=l,e.isAbsolute=function(x){return x.charAt(0)==="/"||n.test(x)};function d(x,w){x===""&&(x="."),x=x.replace(/\/$/,"");for(var P=0;w.indexOf(x+"/")!==0;){var R=x.lastIndexOf("/");if(R<0||(x=x.slice(0,R),x.match(/^([^\/]+:\/)?\/*$/)))return w;++P}return Array(P+1).join("../")+w.substr(x.length+1)}e.relative=d;var h=(function(){var x=Object.create(null);return!("__proto__"in x)})();function p(x){return x}function f(x){return b(x)?"$"+x:x}e.toSetString=h?p:f;function g(x){return b(x)?x.slice(1):x}e.fromSetString=h?p:g;function b(x){if(!x)return!1;var w=x.length;if(w<9||x.charCodeAt(w-1)!==95||x.charCodeAt(w-2)!==95||x.charCodeAt(w-3)!==111||x.charCodeAt(w-4)!==116||x.charCodeAt(w-5)!==111||x.charCodeAt(w-6)!==114||x.charCodeAt(w-7)!==112||x.charCodeAt(w-8)!==95||x.charCodeAt(w-9)!==95)return!1;for(var P=w-10;P>=0;P--)if(x.charCodeAt(P)!==36)return!1;return!0}function _(x,w,P){var R=I(x.source,w.source);return R!==0||(R=x.originalLine-w.originalLine,R!==0)||(R=x.originalColumn-w.originalColumn,R!==0||P)||(R=x.generatedColumn-w.generatedColumn,R!==0)||(R=x.generatedLine-w.generatedLine,R!==0)?R:I(x.name,w.name)}e.compareByOriginalPositions=_;function m(x,w,P){var R;return R=x.originalLine-w.originalLine,R!==0||(R=x.originalColumn-w.originalColumn,R!==0||P)||(R=x.generatedColumn-w.generatedColumn,R!==0)||(R=x.generatedLine-w.generatedLine,R!==0)?R:I(x.name,w.name)}e.compareByOriginalPositionsNoSource=m;function E(x,w,P){var R=x.generatedLine-w.generatedLine;return R!==0||(R=x.generatedColumn-w.generatedColumn,R!==0||P)||(R=I(x.source,w.source),R!==0)||(R=x.originalLine-w.originalLine,R!==0)||(R=x.originalColumn-w.originalColumn,R!==0)?R:I(x.name,w.name)}e.compareByGeneratedPositionsDeflated=E;function S(x,w,P){var R=x.generatedColumn-w.generatedColumn;return R!==0||P||(R=I(x.source,w.source),R!==0)||(R=x.originalLine-w.originalLine,R!==0)||(R=x.originalColumn-w.originalColumn,R!==0)?R:I(x.name,w.name)}e.compareByGeneratedPositionsDeflatedNoLine=S;function I(x,w){return x===w?0:x===null?1:w===null?-1:x>w?1:-1}function D(x,w){var P=x.generatedLine-w.generatedLine;return P!==0||(P=x.generatedColumn-w.generatedColumn,P!==0)||(P=I(x.source,w.source),P!==0)||(P=x.originalLine-w.originalLine,P!==0)||(P=x.originalColumn-w.originalColumn,P!==0)?P:I(x.name,w.name)}e.compareByGeneratedPositionsInflated=D;function B(x){return JSON.parse(x.replace(/^\)]}'[^\n]*\n/,""))}e.parseSourceMapInput=B;function C(x,w,P){if(w=w||"",x&&(x[x.length-1]!=="/"&&w[0]!=="/"&&(x+="/"),w=x+w),P){var R=i(P);if(!R)throw new Error("sourceMapURL could not be parsed");if(R.path){var k=R.path.lastIndexOf("/");k>=0&&(R.path=R.path.substring(0,k+1))}w=l(s(R),w)}return u(w)}e.computeSourceURL=C})(hs)),hs}var ps={},wu;function cg(){if(wu)return ps;wu=1;var e=fs(),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,l=s.length;u<l;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),l=this._array.length;(!u||o)&&this._array.push(s),u||(n?this._set.set(s,l):this._set[a]=l)},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()},ps.ArraySet=r,ps}var ms={},ku;function dg(){if(ku)return ms;ku=1;var e=fs();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},ms.MappingList=n,ms}var Au;function hg(){if(Au)return ds;Au=1;var e=lg(),t=fs(),n=cg().ArraySet,r=dg().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,l=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)),l.addMapping(h)}),o.sources.forEach(function(d){var h=d;u!==null&&(h=t.relative(u,d)),l._sources.has(h)||l._sources.add(h);var p=o.sourceContentFor(d);p!=null&&l.setSourceContent(d,p)}),l},i.prototype.addMapping=function(o){var a=t.getArg(o,"generated"),u=t.getArg(o,"original",null),l=t.getArg(o,"source",null),d=t.getArg(o,"name",null);!this._skipValidation&&this._validateMapping(a,u,l,d)===!1||(l!=null&&(l=String(l),this._sources.has(l)||this._sources.add(l)),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:l,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 l=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.`);l=o.file}var d=this._sourceRoot;d!=null&&(l=t.relative(d,l));var h=new n,p=new n;this._mappings.unsortedForEach(function(f){if(f.source===l&&f.originalLine!=null){var g=o.originalPositionFor({line:f.originalLine,column:f.originalColumn});g.source!=null&&(f.source=g.source,u!=null&&(f.source=t.join(u,f.source)),d!=null&&(f.source=t.relative(d,f.source)),f.originalLine=g.line,f.originalColumn=g.column,g.name!=null&&(f.name=g.name))}var b=f.source;b!=null&&!h.has(b)&&h.add(b);var _=f.name;_!=null&&!p.has(_)&&p.add(_)},this),this._sources=h,this._names=p,o.sources.forEach(function(f){var g=o.sourceContentFor(f);g!=null&&(u!=null&&(f=t.join(u,f)),d!=null&&(f=t.relative(d,f)),this.setSourceContent(f,g))},this)},i.prototype._validateMapping=function(o,a,u,l){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&&!l)){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:l});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,l=0,d=0,h=0,p="",f,g,b,_,m=this._mappings.toArray(),E=0,S=m.length;E<S;E++){if(g=m[E],f="",g.generatedLine!==a)for(o=0;g.generatedLine!==a;)f+=";",a++;else if(E>0){if(!t.compareByGeneratedPositionsInflated(g,m[E-1]))continue;f+=","}f+=e.encode(g.generatedColumn-o),o=g.generatedColumn,g.source!=null&&(_=this._sources.indexOf(g.source),f+=e.encode(_-h),h=_,f+=e.encode(g.originalLine-1-l),l=g.originalLine-1,f+=e.encode(g.originalColumn-u),u=g.originalColumn,g.name!=null&&(b=this._names.indexOf(g.name),f+=e.encode(b-d),d=b)),p+=f}return p},i.prototype._generateSourcesContent=function(o,a){return o.map(function(u){if(!this._sourcesContents)return null;a!=null&&(u=t.relative(a,u));var l=t.toSetString(u);return Object.prototype.hasOwnProperty.call(this._sourcesContents,l)?this._sourcesContents[l]: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())},ds.SourceMapGenerator=i,ds}var fg=hg();const Su=new Set(["Atrule","Selector","Declaration"]);function pg(e){const t=new fg.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 l=e.node;e.node=function(p){if(p.loc&&p.loc.start&&Su.has(p.type)){const f=p.loc.start.line,g=p.loc.start.column-1;(r.line!==f||r.column!==g)&&(r.line=f,r.column=g,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:p.loc.source,original:r,generated:n}))}l.call(this,p),u&&Su.has(p.type)&&(i.line=o,i.column=a)};const d=e.emit;e.emit=function(p,f,g){for(let b=0;b<p.length;b++)p.charCodeAt(b)===10?(o++,a=0):a++;d(p,f,g)};const h=e.result;return e.result=function(){return u&&t.addMapping(s),{css:h(),map:t}},e}const mg=43,gg=45,gs=(e,t)=>(e===ge&&(e=t),typeof e=="string"&&(e=Math.min(e.charCodeAt(0),128)<<6),e<<1),Cu=[[ne,ne],[ne,pe],[ne,Ve],[ne,rt],[ne,"-"],[ne,fe],[ne,Oe],[ne,be],[ne,it],[ne,we],[Be,ne],[Be,pe],[Be,Ve],[Be,rt],[Be,"-"],[Be,fe],[Be,Oe],[Be,be],[Be,it],[xe,ne],[xe,pe],[xe,Ve],[xe,rt],[xe,"-"],[xe,fe],[xe,Oe],[xe,be],[xe,it],[be,ne],[be,pe],[be,Ve],[be,rt],[be,"-"],[be,fe],[be,Oe],[be,be],[be,it],["#",ne],["#",pe],["#",Ve],["#",rt],["#","-"],["#",fe],["#",Oe],["#",be],["#",it],["-",ne],["-",pe],["-",Ve],["-",rt],["-","-"],["-",fe],["-",Oe],["-",be],["-",it],[fe,ne],[fe,pe],[fe,Ve],[fe,rt],[fe,fe],[fe,Oe],[fe,be],[fe,"%"],[fe,it],["@",ne],["@",pe],["@",Ve],["@",rt],["@","-"],["@",it],[".",fe],[".",Oe],[".",be],["+",fe],["+",Oe],["+",be],["/","*"]],bg=Cu.concat([[ne,xe],[be,xe],[xe,xe],[Be,we],[Be,Et],[Be,Ke],[Oe,Oe],[Oe,be],[Oe,pe],[Oe,"-"],[de,ne],[de,pe],[de,Oe],[de,be],[de,xe],[de,"-"]]);function xu(e){const t=new Set(e.map(([n,r])=>gs(n)<<16|gs(r)));return function(n,r,i){const s=gs(r,i),o=i.charCodeAt(0),a=o===gg&&r!==ne&&r!==pe&&r!==it||o===mg?t.has((n&65534)<<16|o<<7):t.has((n&65534)<<16|s);return s|a}}const Eg=xu(Cu),Nu=xu(bg),vu=Object.freeze(Object.defineProperty({__proto__:null,safe:Nu,spec:Eg},Symbol.toStringTag,{value:"Module"})),yg=92;function Tg(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 _g(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:Nu,token(u,l,d){s=this.tokenBefore(s,u,l),!d&&s&1&&this.emit(" ",Le,!0),this.emit(l,u,!1),u===ge&&l.charCodeAt(0)===yg&&this.emit(`
|
|
8
|
+
`,Le,!0)},emit(u){i+=u},result(){return i}};r&&(typeof r.decorator=="function"&&(o=r.decorator(o)),r.sourceMap&&(o=pg(o)),r.mode in vu&&(o.tokenBefore=vu[r.mode]));const a={node:u=>o.node(u),children:Tg,token:(u,l)=>o.token(u,l),tokenize:u=>Ur(u,(l,d,h)=>{o.token(l,u.slice(d,h),d!==0)})};return o.node(n),o.result()}}function wg(e){return{fromPlainObject(t){return e(t,{enter(n){n.children&&!(n.children instanceof je)&&(n.children=new je().fromArray(n.children))}}),t},toPlainObject(t){return e(t,{leave(n){n.children&&n.children instanceof je&&(n.children=n.children.toArray())}}),t}}}const{hasOwnProperty:bs}=Object.prototype,tr=function(){};function Iu(e){return typeof e=="function"?e:tr}function Ou(e,t){return function(n,r,i){n.type===t&&e.call(this,n,r,i)}}function kg(e,t){const n=t.structure,r=[];for(const i in n){if(bs.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 Ag(e){const t={};for(const n in e.node)if(bs.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]=kg(n,r)}return t}function Lu(e,t){const n=e.fields.slice(),r=e.context,i=typeof r=="string";return t&&n.reverse(),function(s,o,a,u){let l;i&&(l=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]=l)}}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 Sg(e){const t=Ag(e),n={},r={},i=Symbol("break-walk"),s=Symbol("skip-node");for(const l in t)bs.call(t,l)&&t[l]!==null&&(n[l]=Lu(t[l],!1),r[l]=Lu(t[l],!0));const o=Pu(n),a=Pu(r),u=function(l,d){function h(m,E,S){const I=p.call(_,m,E,S);return I===i?!0:I===s?!1:!!(g.hasOwnProperty(m.type)&&g[m.type](m,_,h,b)||f.call(_,m,E,S)===i)}let p=tr,f=tr,g=n,b=(m,E,S,I)=>m||h(E,S,I);const _={break:i,skip:s,root:l,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null};if(typeof d=="function")p=d;else if(d&&(p=Iu(d.enter),f=Iu(d.leave),d.reverse&&(g=r),d.visit)){if(o.hasOwnProperty(d.visit))g=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(", ")+")");p=Ou(p,d.visit),f=Ou(f,d.visit)}if(p===tr&&f===tr)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");h(l)};return u.break=i,u.skip=s,u.find=function(l,d){let h=null;return u(l,function(p,f,g){if(d.call(this,p,f,g))return h=p,i}),h},u.findLast=function(l,d){let h=null;return u(l,{reverse:!0,enter(p,f,g){if(d.call(this,p,f,g))return h=p,i}}),h},u.findAll=function(l,d){const h=[];return u(l,function(p,f,g){d.call(this,p,f,g)&&h.push(p)}),h},u}function Cg(e){return e}function xg(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 Ng(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 vg(e,t,n,r){const i=e.combinator===" "||r?e.combinator:" "+e.combinator+" ",s=e.terms.map(o=>qr(o,t,n,r)).join(i);return e.explicit||n?(r||s[0]===","?"[":"[ ")+s+(r?"]":" ]"):s}function qr(e,t,n,r){let i;switch(e.type){case"Group":i=vg(e,t,n,r)+(e.disallowEmpty?"!":"");break;case"Multiplier":return qr(e.term,t,n,r)+t(xg(e),e);case"Boolean":i="<boolean-expr["+qr(e.term,t,n,r)+"]>";break;case"Type":i="<"+e.name+(e.opts?t(Ng(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 Es(e,t){let n=Cg,r=!1,i=!1;return typeof t=="function"?n=t:t&&(r=!!t.forceBraces,i=!!t.compact,typeof t.decorate=="function"&&(n=t.decorate)),qr(e,n,r,i)}const Ru={offset:0,line:1,column:1};function Ig(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,l="",d,h;for(let p=0;p<n.length;p++){const f=n[p].value;p===r&&(a=f.length,o=l.length),s!==null&&n[p].node===s&&(p<=r?u++:u=0),l+=f}return r===n.length||u>1?(d=Yr(s||t,"end")||nr(Ru,l),h=nr(d)):(d=Yr(s,"start")||nr(Yr(t,"start")||Ru,l.slice(0,o)),h=Yr(s,"end")||nr(d,l.substr(o,a))),{css:l,mismatchOffset:o,mismatchLength:a,start:d,end:h}}function Yr(e,t){const n=e&&e.loc&&e.loc[t];return n?"line"in n?nr(n):n:null}function nr({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 rr=function(e,t){const n=Hr("SyntaxReferenceError",e+(t?" `"+t+"`":""));return n.reference=t,n},Og=function(e,t,n,r){const i=Hr("SyntaxMatchError",e),{css:s,mismatchOffset:o,mismatchLength:a,start:u,end:l}=Ig(r,n);return i.rawMessage=e,i.syntax=t?Es(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:l},i},
|
|
11
|
+
--------`+new Array(i.mismatchOffset+1).join("-")+"^",Object.assign(i,u),i.loc={source:n&&n.loc&&n.loc.source||"<unknown>",start:u,end:l},i},Wr=new Map,kn=new Map,Gr=45,ys=Lg,Du=Pg;function Ts(e,t){return t=t||0,e.length-t>=2&&e.charCodeAt(t)===Gr&&e.charCodeAt(t+1)===Gr}function Mu(e,t){if(t=t||0,e.length-t>=3&&e.charCodeAt(t)===Gr&&e.charCodeAt(t+1)!==Gr){const n=e.indexOf("-",t+2);if(n!==-1)return e.substring(t,n+1)}return""}function Lg(e){if(Wr.has(e))return Wr.get(e);const t=e.toLowerCase();let n=Wr.get(t);if(n===void 0){const r=Ts(t,0),i=r?"":Mu(t,0);n=Object.freeze({basename:t.substr(i.length),name:t,prefix:i,vendor:i,custom:r})}return Wr.set(e,n),n}function Pg(e){if(kn.has(e))return kn.get(e);let t=e,n=e[0];n==="/"?n=e[1]==="/"?"//":"/":n!=="_"&&n!=="*"&&n!=="$"&&n!=="#"&&n!=="+"&&n!=="&"&&(n="");const r=Ts(t,n.length);if(!r&&(t=t.toLowerCase(),kn.has(t))){const a=kn.get(t);return kn.set(e,a),a}const i=r?"":Mu(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 kn.set(e,o),o}const _s=["initial","inherit","unset","revert","revert-layer"],ir=43,vt=45,ws=110,An=!0,Rg=!1;function ks(e,t){return e!==null&&e.type===ge&&e.value.charCodeAt(0)===t}function sr(e,t,n){for(;e!==null&&(e.type===Le||e.type===Ye);)e=n(++t);return t}function Xt(e,t,n,r){if(!e)return 0;const i=e.value.charCodeAt(t);if(i===ir||i===vt){if(n)return 0;t++}for(;t<e.value.length;t++)if(!We(e.value.charCodeAt(t)))return 0;return r+1}function As(e,t,n){let r=!1,i=sr(e,t,n);if(e=n(i),e===null)return t;if(e.type!==fe)if(ks(e,ir)||ks(e,vt)){if(r=!0,i=sr(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!==ir&&s!==vt)return 0}return Xt(e,r?0:1,r,i)}function Dg(e,t){let n=0;if(!e)return 0;if(e.type===fe)return Xt(e,0,Rg,n);if(e.type===ne&&e.value.charCodeAt(0)===vt){if(!yn(e.value,1,ws))return 0;switch(e.value.length){case 2:return As(t(++n),n,t);case 3:return e.value.charCodeAt(2)!==vt?0:(n=sr(t(++n),n,t),e=t(n),Xt(e,0,An,n));default:return e.value.charCodeAt(2)!==vt?0:Xt(e,3,An,n)}}else if(e.type===ne||ks(e,ir)&&t(n+1).type===ne){if(e.type!==ne&&(e=t(++n)),e===null||!yn(e.value,0,ws))return 0;switch(e.value.length){case 1:return As(t(++n),n,t);case 2:return e.value.charCodeAt(1)!==vt?0:(n=sr(t(++n),n,t),e=t(n),Xt(e,0,An,n));default:return e.value.charCodeAt(1)!==vt?0:Xt(e,2,An,n)}}else if(e.type===be){let r=e.value.charCodeAt(0),i=r===ir||r===vt?1:0,s=i;for(;s<e.value.length&&We(e.value.charCodeAt(s));s++);return s===i||!yn(e.value,s,ws)?0:s+1===e.value.length?As(t(++n),n,t):e.value.charCodeAt(s+1)!==vt?0:s+2===e.value.length?(n=sr(t(++n),n,t),e=t(n),Xt(e,0,An,n)):Xt(e,s+2,An,n)}return 0}const Mg=43,Bu=45,Fu=63,Bg=117;function Ss(e,t){return e!==null&&e.type===ge&&e.value.charCodeAt(0)===t}function Fg(e,t){return e.value.charCodeAt(0)===t}function ar(e,t,n){let r=0;for(let i=t;i<e.value.length;i++){const s=e.value.charCodeAt(i);if(s===Bu&&n&&r!==0)return ar(e,t+r+1,!1),6;if(!Vt(s)||++r>6)return 0}return r}function Vr(e,t,n){if(!e)return 0;for(;Ss(n(t),Fu);){if(++e>6)return 0;t++}return t}function Ug(e,t){let n=0;if(e===null||e.type!==ne||!yn(e.value,0,Bg)||(e=t(++n),e===null))return 0;if(Ss(e,Mg))return e=t(++n),e===null?0:e.type===ne?Vr(ar(e,0,!0),++n,t):Ss(e,Fu)?Vr(1,++n,t):0;if(e.type===fe){const r=ar(e,1,!0);return r===0?0:(e=t(++n),e===null?n:e.type===be||e.type===fe?!Fg(e,Bu)||!ar(e,1,!1)?0:n+1:Vr(r,n,t))}return e.type===be?Vr(ar(e,1,!0),++n,t):0}const Cs=["calc(","-moz-calc(","-webkit-calc("],xs=["min(","max(","clamp("],Ns=["round(","mod(","rem("],Hg=["sin(","cos(","tan("],zg=["asin(","acos(","atan(","atan2("],$g=["pow(","sqrt(","log(","exp(","sign("],vs=["hypot("],Is=["abs("],Uu=[...Cs,...xs,...Ns,...Hg,...$g,...vs,...Is],jg=[...Cs,...xs,...Ns,...vs,...Is],Bt=[...Cs,...xs,...Ns,...zg,...vs,...Is],Os=new Map([[pe,de],[we,de],[ot,ft],[$e,ut]]);function wt(e,t){return t<e.length?e.charCodeAt(t):0}function Hu(e,t){return Jn(e,0,e.length,t)}function zu(e,t){for(let n=0;n<t.length;n++)if(Hu(e,t[n]))return!0;return!1}function $u(e,t){return t!==e.length-2?!1:wt(e,t)===92&&We(wt(e,t+1))}function Kr(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 qg(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 $e:r.push(n),n=Os.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&&zu(n.value,t)?qg(n,r):e(n,r,i)}}function Ne(e){return function(t){return t===null||t.type!==e?0:1}}function Yg(e){if(e===null||e.type!==ne)return 0;const t=e.value.toLowerCase();return zu(t,_s)||Hu(t,"default")?0:1}function ju(e){return e===null||e.type!==ne||wt(e.value,0)!==45||wt(e.value,1)!==45?0:1}function Wg(e){return!ju(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(!Vt(wt(e.value,n)))return 0;return 1}function Vg(e){return e===null||e.type!==xe||!Lr(wt(e.value,1),wt(e.value,2),wt(e.value,3))?0:1}function Kg(e,t){if(!e)return 0;let n=0,r=[],i=0;e:do{switch(e.type){case vr:case rt:break e;case ut:case de:case ft:if(e.type!==n)break e;n=r.pop();break;case Xe:if(n===0)break e;break;case ge:if(n===0&&e.value==="!")break e;break;case pe:case we:case ot:case $e:r.push(n),n=Os.get(e.type);break}i++}while(e=t(i));return i}function Xg(e,t){if(!e)return 0;let n=0,r=[],i=0;e:do{switch(e.type){case vr: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 $e:r.push(n),n=Os.get(e.type);break}i++}while(e=t(i));return i}function Ft(e){return e&&(e=new Set(e)),function(t,n,r){if(t===null||t.type!==be)return 0;const i=Mr(t.value,0);if(e!==null){const s=t.value.indexOf("\\",i),o=s===-1||!$u(t.value,s)?t.value.substr(i):t.value.substring(i,s);if(e.has(o.toLowerCase())===!1)return 0}return Kr(r,t.value,i)?0:1}}function Qg(e,t,n){return e===null||e.type!==Oe||Kr(n,e.value,e.value.length-1)?0:1}function qu(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 Zg(e,t,n){if(e===null)return 0;const r=Mr(e.value,0);return!(r===e.value.length)&&!$u(e.value,r)||Kr(n,e.value,r)?0:1}function Jg(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(!We(wt(e.value,r)))return 0;return Kr(n,e.value,r)?0:1}const eb={"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(vr),"url-token":Ne(Ve),"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(Zn),"CDC-token":Ne(it),"colon-token":Ne(Ke),"semicolon-token":Ne(Xe),"comma-token":Ne(st),"[-token":Ne(ot),"]-token":Ne(ft),"(-token":Ne(we),")-token":Ne(de),"{-token":Ne($e),"}-token":Ne(ut)},tb={string:Ne(Et),ident:Ne(ne),percentage:pt(Qg,jg),zero:qu(),number:pt(Zg,Uu),integer:pt(Jg,Uu),"custom-ident":Yg,"dashed-ident":ju,"custom-property-name":Wg,"hex-color":Gg,"id-selector":Vg,"an-plus-b":Dg,urange:Ug,"declaration-value":Kg,"any-value":Xg},nb=["length","angle","time","frequency","resolution","flex","decibel","semitones"];function rb(e){const{angle:t,decibel:n,frequency:r,flex:i,length:s,resolution:o,semitones:a,time:u}=e||{};return{dimension:pt(Ft(null),Bt),angle:pt(Ft(t),Bt),decibel:pt(Ft(n),Bt),frequency:pt(Ft(r),Bt),flex:pt(Ft(i),Bt),length:pt(qu(Ft(s)),Bt),resolution:pt(Ft(o),Bt),semitones:pt(Ft(a),Bt),time:pt(Ft(u),Bt)}}function ib(e){const t=new Set;for(const n of nb)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 sb(e){return{...eb,...tb,...rb(e),"attr-unit":ib(e)}}const Yu=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 ab(e,t,n){return Object.assign(Hr("SyntaxError",e),{input:t,offset:n,rawMessage:e,message:e+`
|
|
12
12
|
`+t+`
|
|
13
|
-
--`+new Array((n||t.length)+1).join("-")+"^"})}const ib=9,sb=10,ab=12,ob=13,ub=32,qu=new Uint8Array(128).map((e,t)=>/[a-zA-Z0-9\-]/.test(String.fromCharCode(t))?1:0);class lb{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&&qu[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!==ob&&n!==sb&&n!==ab&&n!==ub&&n!==ib)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 rb(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||qu[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 cb=9,db=10,hb=12,fb=13,pb=32,Yu=33,Rs=35,Wu=38,Qr=39,Gu=40,Vu=41,Ku=42,Ds=43,Ms=44,Xu=45,Bs=60,Fs=62,Zr=63,mb=64,or=91,An=93,Jr=123,Qu=124,Us=125,Zu=8734,Ju={" ":1,"&&":2,"||":3,"|":4};function el(e){let t=null,n=null;return e.eat(Jr),e.skipWs(),t=e.scanNumber(e),e.skipWs(),e.charCode()===Ms?(e.pos++,e.skipWs(),e.charCode()!==Us&&(n=e.scanNumber(e),e.skipWs())):n=t,e.eat(Us),{min:Number(t),max:n?Number(n):0}}function gb(e){let t=null,n=!1;switch(e.charCode()){case Ku:e.pos++,t={min:0,max:0};break;case Ds:e.pos++,t={min:1,max:0};break;case Zr:e.pos++,t={min:0,max:1};break;case Rs:e.pos++,n=!0,e.charCode()===Jr?t=el(e):e.charCode()===Zr?(e.pos++,t={min:0,max:0}):t={min:1,max:0};break;case Jr:t=el(e);break;default:return null}return{type:"Multiplier",comma:n,min:t.min,max:t.max,term:null}}function Ut(e,t){const n=gb(e);return n!==null?(n.term=t,e.charCode()===Rs&&e.charCodeAt(e.pos-1)===Ds||e.charCode()===Zr&&e.charCodeAt(e.pos-1)===Us?Ut(e,n):n):t}function Hs(e){const t=e.peek();return t===""?null:Ut(e,{type:"Token",value:t})}function bb(e){let t;return e.eat(Bs),e.eat(Qr),t=e.scanWord(),e.eat(Qr),e.eat(Fs),Ut(e,{type:"Property",name:t})}function Eb(e){let t=null,n=null,r=1;return e.eat(or),e.charCode()===Xu&&(e.peek(),r=-1),r==-1&&e.charCode()===Zu?e.peek():(t=r*Number(e.scanNumber(e)),e.isNameCharCode()&&(t+=e.scanWord())),e.skipWs(),e.eat(Ms),e.skipWs(),e.charCode()===Zu?e.peek():(r=1,e.charCode()===Xu&&(e.peek(),r=-1),n=r*Number(e.scanNumber(e)),e.isNameCharCode()&&(n+=e.scanWord())),e.eat(An),{type:"Range",min:t,max:n}}function yb(e){let t,n=null;if(e.eat(Bs),t=e.scanWord(),t==="boolean-expr"){e.eat(or);const r=ei(e,An);return e.eat(An),e.eat(Fs),Ut(e,{type:"Boolean",term:r.terms.length===1?r.terms[0]:r})}return e.charCode()===Gu&&e.nextCharCode()===Vu&&(e.pos+=2,t+="()"),e.charCodeAt(e.findWsEnd(e.pos))===or&&(e.skipWs(),n=Eb(e)),e.eat(Fs),Ut(e,{type:"Type",name:t,opts:n})}function Tb(e){const t=e.scanWord();return e.charCode()===Gu?(e.pos++,{type:"Function",name:t}):Ut(e,{type:"Keyword",name:t})}function _b(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)=>Ju[i]-Ju[s]);t.length>0;){r=t.shift();let i=0,s=0;for(;i<e.length;i++){const a=e[i];a.type==="Combinator"&&(a.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 ei(e,t=-1){const n=Object.create(null),r=[];let i=null,s=e.pos,a=!1;for(;e.charCode()!==t;){let o=a?ei(e,Vu):kb(e);if(!o)break;if(o.type!=="Spaces"){if(a){if(o.terms.length===0){a=!1;continue}if(o.combinator===" "){for(;o.terms.length>1;)n[" "]=!0,r.push({type:"Combinator",value:" "},o.terms.shift());o=o.terms[0]}}o.type==="Combinator"?((i===null||i.type==="Combinator")&&(e.pos=s,e.error("Unexpected combinator")),n[o.value]=!0):i!==null&&i.type!=="Combinator"&&(n[" "]=!0,r.push({type:"Combinator",value:" "})),r.push(o),i=o,s=e.pos,a=o.type==="Function"}}return i!==null&&i.type==="Combinator"&&(e.pos-=s,e.error("Unexpected combinator")),{type:"Group",terms:r,combinator:_b(r,n)||" ",disallowEmpty:!1,explicit:!1}}function wb(e){let t;return e.eat(or),t=ei(e,An),e.eat(An),t.explicit=!0,e.charCode()===Yu&&(e.pos++,t.disallowEmpty=!0),t}function kb(e){let t=e.charCode();switch(t){case An:break;case or:return Ut(e,wb(e));case Bs:return e.nextCharCode()===Qr?bb(e):yb(e);case Qu:return{type:"Combinator",value:e.substringToPos(e.pos+(e.nextCharCode()===Qu?2:1))};case Wu:return e.pos++,e.eat(Wu),{type:"Combinator",value:"&&"};case Ms:return e.pos++,{type:"Comma"};case Qr:return Ut(e,{type:"String",value:e.scanString()});case pb:case cb:case db:case fb:case hb:return{type:"Spaces",value:e.scanSpaces()};case mb:return t=e.nextCharCode(),e.isNameCharCode(t)?(e.pos++,{type:"AtKeyword",name:e.scanWord()}):Hs(e);case Ku:case Ds:case Zr:case Rs:case Yu:break;case Jr:if(t=e.nextCharCode(),t<48||t>57)return Hs(e);break;default:return e.isNameCharCode(t)?Tb(e):Hs(e)}}function tl(e){const t=new lb(e),n=ei(t);return t.pos!==e.length&&t.error("Unexpected input"),n.terms.length===1&&n.terms[0].type==="Group"?n.terms[0]:n}const ur=function(){};function nl(e){return typeof e=="function"?e:ur}function Ab(e,t,n){function r(a){switch(i.call(n,a),a.type){case"Group":a.terms.forEach(r);break;case"Multiplier":case"Boolean":r(a.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: "+a.type)}s.call(n,a)}let i=ur,s=ur;if(typeof t=="function"?i=t:t&&(i=nl(t.enter),s=nl(t.leave)),i===ur&&s===ur)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");r(e)}const Sb={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 Cb(e){const t=[];return Hr(e,(n,r,i)=>t.push({type:n,value:e.slice(r,i),node:null})),t}function xb(e,t){return typeof e=="string"?Cb(e):t.generate(e,Sb)}const ke={type:"Match"},Se={type:"Mismatch"},zs={type:"DisallowEmpty"},Nb=40,vb=41;function Qe(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 rl(e){return e.length>2&&e.charCodeAt(e.length-2)===Nb&&e.charCodeAt(e.length-1)===vb}function il(e){return e.type==="Keyword"||e.type==="AtKeyword"||e.type==="Function"||e.type==="Type"&&rl(e.name)}function Qt(e,t=" ",n=!1){return{type:"Group",terms:e,combinator:t,disallowEmpty:!1,explicit:n}}function lr(e,t,n=new Set){if(!n.has(e))switch(n.add(e),e.type){case"If":e.match=lr(e.match,t,n),e.then=lr(e.then,t,n),e.else=lr(e.else,t,n);break;case"Type":return t[e.name]||e}return e}function $s(e,t,n){switch(e){case" ":{let r=ke;for(let i=t.length-1;i>=0;i--){const s=t[i];r=Qe(s,r,Se)}return r}case"|":{let r=Se,i=null;for(let s=t.length-1;s>=0;s--){let a=t[s];if(il(a)&&(i===null&&s>0&&il(t[s-1])&&(i=Object.create(null),r=Qe({type:"Enum",map:i},ke,r)),i!==null)){const o=(rl(a.name)?a.name.slice(0,-1):a.name).toLowerCase();if(!(o in i)){i[o]=a;continue}}i=null,r=Qe(a,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 a;t.length>1?a=$s(e,t.filter(function(o){return o!==s}),!1):a=ke,r=Qe(s,a,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 a;t.length>1?a=$s(e,t.filter(function(o){return o!==s}),!0):a=ke,r=Qe(s,a,r)}return r}}}function Ib(e){let t=ke,n=Sn(e.term);if(e.max===0)n=Qe(n,zs,Se),t=Qe(n,null,Se),t.then=Qe(ke,ke,t),e.comma&&(t.then.else=Qe({type:"Comma",syntax:e},t,Se));else for(let r=e.min||1;r<=e.max;r++)e.comma&&t!==ke&&(t=Qe({type:"Comma",syntax:e},t,Se)),t=Qe(n,Qe(ke,ke,t),Se);if(e.min===0)t=Qe(ke,ke,t);else for(let r=0;r<e.min-1;r++)e.comma&&t!==ke&&(t=Qe({type:"Comma",syntax:e},t,Se)),t=Qe(n,t,Se);return t}function Sn(e){if(typeof e=="function")return{type:"Generic",fn:e};switch(e.type){case"Group":{let t=$s(e.combinator,e.terms.map(Sn),!1);return e.disallowEmpty&&(t=Qe(t,zs,Se)),t}case"Multiplier":return Ib(e);case"Boolean":{const t=Sn(e.term),n=Sn(Qt([Qt([{type:"Keyword",name:"not"},{type:"Type",name:"!boolean-group"}]),Qt([{type:"Type",name:"!boolean-group"},Qt([{type:"Multiplier",comma:!1,min:0,max:0,term:Qt([{type:"Keyword",name:"and"},{type:"Type",name:"!boolean-group"}])},{type:"Multiplier",comma:!1,min:0,max:0,term:Qt([{type:"Keyword",name:"or"},{type:"Type",name:"!boolean-group"}])}],"|")])],"|")),r=Sn(Qt([{type:"Type",name:"!term"},Qt([{type:"Token",value:"("},{type:"Type",name:"!self"},{type:"Token",value:")"}]),{type:"Type",name:"general-enclosed"}],"|"));return lr(r,{"!term":t,"!self":n}),lr(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 ti(e,t){return typeof e=="string"&&(e=tl(e)),{type:"MatchGraph",match:Sn(e),syntax:t||null,source:e}}const{hasOwnProperty:sl}=Object.prototype,Ob=0,Lb=1,js=2,al=3,ol="Match",Pb="Mismatch",Rb="Maximum iteration number exceeded (please fill an issue on https://github.com/csstree/csstree/issues)",ul=15e3;function Db(e){let t=null,n=null,r=e;for(;r!==null;)n=r.prev,r.prev=t,t=r,r=n;return t}function qs(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 Mb(e){return e.type!==ge?!1:e.value!=="?"}function ll(e){return e===null?!0:e.type===st||e.type===pe||e.type===_e||e.type===ot||e.type===$e||Mb(e)}function cl(e){return e===null?!0:e.type===de||e.type===ft||e.type===ut||e.type===ge&&e.value==="/"}function Bb(e,t,n){function r(){do E++,m=E<e.length?e[E]:null;while(m!==null&&(m.type===Le||m.type===Ye))}function i(D){const B=E+D;return B<e.length?e[B]:null}function s(D,B){return{nextState:D,matchStack:I,syntaxStack:h,thenStack:p,tokenIndex:E,prev:B}}function a(D){p={nextState:D,matchStack:I,syntaxStack:h,prev:p}}function o(D){f=s(D,f)}function u(){I={type:Lb,syntax:t.syntax,token:m,prev:I},r(),g=null,E>S&&(S=E)}function l(){h={syntax:t.syntax,opts:t.syntax.opts||h!==null&&h.opts||null,prev:h},I={type:js,syntax:t.syntax,token:I.token,prev:I}}function d(){I.type===js?I=I.prev:I={type:al,syntax:h.syntax,token:I.token,prev:I},h=h.prev}let h=null,p=null,f=null,g=null,b=0,_=null,m=null,E=-1,S=0,I={type:Ob,syntax:null,token:null,prev:null};for(r();_===null&&++b<ul;)switch(t.type){case"Match":if(p===null){if(m!==null&&(E!==e.length-1||m.value!=="\\0"&&m.value!=="\\9")){t=Se;break}_=ol;break}if(t=p.nextState,t===zs)if(p.matchStack===I){t=Se;break}else t=ke;for(;p.syntaxStack!==h;)d();p=p.prev;break;case"Mismatch":if(g!==null&&g!==!1)(f===null||E>f.tokenIndex)&&(f=g,g=!1);else if(f===null){_=Pb;break}t=f.nextState,p=f.thenStack,h=f.syntaxStack,I=f.matchStack,E=f.tokenIndex,m=E<e.length?e[E]:null,f=f.prev;break;case"MatchGraph":t=t.match;break;case"If":t.else!==Se&&o(t.else),t.then!==ke&&a(t.then),t=t.match;break;case"MatchOnce":t={type:"MatchOnceBuffer",syntax:t,index:0,mask:0};break;case"MatchOnceBuffer":{const C=t.syntax.terms;if(t.index===C.length){if(t.mask===0||t.syntax.all){t=Se;break}t=ke;break}if(t.mask===(1<<C.length)-1){t=ke;break}for(;t.index<C.length;t.index++){const x=1<<t.index;if((t.mask&x)===0){o(t),a({type:"AddMatchOnce",syntax:t.syntax,mask:t.mask|x}),t=C[t.index++];break}}break}case"AddMatchOnce":t={type:"MatchOnceBuffer",syntax:t.syntax,index:0,mask:t.mask};break;case"Enum":if(m!==null){let C=m.value.toLowerCase();if(C.indexOf("\\")!==-1&&(C=C.replace(/\\[09].*$/,"")),sl.call(t.map,C)){t=t.map[C];break}}t=Se;break;case"Generic":{const C=h!==null?h.opts:null,x=E+Math.floor(t.fn(m,i,C));if(!isNaN(x)&&x>E){for(;E<x;)u();t=ke}else t=Se;break}case"Type":case"Property":{const C=t.type==="Type"?"types":"properties",x=sl.call(n,C)?n[C][t.name]:null;if(!x||!x.match)throw new Error("Bad syntax reference: "+(t.type==="Type"?"<"+t.name+">":"<'"+t.name+"'>"));if(g!==!1&&m!==null&&t.type==="Type"&&(t.name==="custom-ident"&&m.type===ne||t.name==="length"&&m.value==="0")){g===null&&(g=s(t,f)),t=Se;break}l(),t=x.matchRef||x.match;break}case"Keyword":{const C=t.name;if(m!==null){let x=m.value;if(x.indexOf("\\")!==-1&&(x=x.replace(/\\[09].*$/,"")),qs(x,C)){u(),t=ke;break}}t=Se;break}case"AtKeyword":case"Function":if(m!==null&&qs(m.value,t.name)){u(),t=ke;break}t=Se;break;case"Token":if(m!==null&&m.value===t.value){u(),t=ke;break}t=Se;break;case"Comma":m!==null&&m.type===st?ll(I.token)?t=Se:(u(),t=cl(m)?Se:ke):t=ll(I.token)||cl(m)?ke:Se;break;case"String":let D="",B=E;for(;B<e.length&&D.length<t.value.length;B++)D+=e[B].value;if(qs(D,t.value)){for(;E<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 "+ul+" iterations"),_=Rb,I=null;break;case ol:for(;h!==null;)d();break;default:I=null}return{tokens:e,reason:_,iterations:b,match:I,longestMatch:S}}function dl(e,t,n){const r=Bb(e,t,n||{});if(r.match===null)return r;let i=r.match,s=r.match={syntax:t.syntax||null,match:[]};const a=[s];for(i=Db(i).prev;i!==null;){switch(i.type){case js:s.match.push(s={syntax:i.syntax,match:[]}),a.push(s);break;case al:a.pop(),s=a[a.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 hl(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 Fb(e,t){return Ys(this,e,n=>n.type==="Type"&&n.name===t)}function Ub(e,t){return Ys(this,e,n=>n.type==="Property"&&n.name===t)}function Hb(e){return Ys(this,e,t=>t.type==="Keyword")}function Ys(e,t,n){const r=hl.call(e,t);return r===null?!1:r.some(n)}const zb=Object.freeze(Object.defineProperty({__proto__:null,getTrace:hl,isKeyword:Hb,isProperty:Ub,isType:Fb},Symbol.toStringTag,{value:"Module"}));function fl(e){return"node"in e?e.node:fl(e.match[0])}function pl(e){return"node"in e?e.node:pl(e.match[e.match.length-1])}function ml(e,t,n,r,i){function s(o){if(o.syntax!==null&&o.syntax.type===r&&o.syntax.name===i){const u=fl(o),l=pl(o);e.syntax.walk(t,function(d,h,p){if(d===u){const f=new je;do{if(f.appendData(h.data),h.data===l)break;h=h.next}while(h!==null);a.push({parent:p,nodes:f})}})}Array.isArray(o.match)&&o.match.forEach(s)}const a=[];return n.matched!==null&&s(n.matched),a}const{hasOwnProperty:cr}=Object.prototype;function Ws(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&e>=0}function gl(e){return!!e&&Ws(e.offset)&&Ws(e.line)&&Ws(e.column)}function $b(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 a=!0;if(cr.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(!gl(r.loc.start))s+=".start";else if(!gl(r.loc.end))s+=".end";else continue;a=!1}else if(t.hasOwnProperty(s)){a=!1;for(let o=0;!a&&o<t[s].length;o++){const u=t[s][o];switch(u){case String:a=typeof r[s]=="string";break;case Boolean:a=typeof r[s]=="boolean";break;case null:a=r[s]===null;break;default:typeof u=="string"?a=r[s]&&r[s].type===u:Array.isArray(u)&&(a=r[s]instanceof je)}}}else i(r,"Unknown field `"+s+"` for "+e+" node type");a||i(r,"Bad value for `"+e+"."+s+"`")}}for(const s in t)cr.call(t,s)&&cr.call(r,s)===!1&&i(r,"Field `"+e+"."+s+"` is missed")}}function bl(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<"+(bl(i,t)||"any")+">");else throw new Error("Wrong value `"+i+"` in `"+t+"` structure definition")}return n.join(" | ")}function jb(e,t){const n=t.structure,r={type:String,loc:!0},i={type:'"'+e+'"'};for(const s in n){if(cr.call(n,s)===!1)continue;const a=r[s]=Array.isArray(n[s])?n[s].slice():[n[s]];i[s]=bl(a,e+"."+s)}return{docs:i,check:$b(e,r)}}function qb(e){const t={};if(e.node){for(const n in e.node)if(cr.call(e.node,n)){const r=e.node[n];if(r.structure)t[n]=jb(n,r);else throw new Error("Missed `structure` field in `"+n+"` node type definition")}}return t}function Gs(e,t,n){const r={};for(const i in e)e[i].syntax&&(r[i]=n?e[i].syntax:Ts(e[i].syntax,{compact:t}));return r}function Yb(e,t,n){const r={};for(const[i,s]of Object.entries(e))r[i]={prelude:s.prelude&&(n?s.prelude.syntax:Ts(s.prelude.syntax,{compact:t})),descriptors:s.descriptors&&Gs(s.descriptors,t,n)};return r}function Wb(e){for(let t=0;t<e.length;t++)if(e[t].value.toLowerCase()==="var(")return!0;return!1}function Gb(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,...zb}}function Cn(e,t,n,r){const i=xb(n,e.syntax);let s;return Wb(i)?kt(null,new Error("Matching for a tree with var() is not supported")):(r&&(s=dl(i,e.cssWideKeywordsSyntax,e)),(!r||!s.match)&&(s=dl(i,t.match,e),!s.match)?kt(null,new Ng(s.reason,t.syntax,n,s),s.iterations):kt(s.match,null,s.iterations))}class El{constructor(t,n,r){if(this.cssWideKeywords=ks,this.syntax=n,this.generic=!1,this.units={...ju},this.atrules=Object.create(null),this.properties=Object.create(null),this.types=Object.create(null),this.structure=r||qb(t),t){if(t.cssWideKeywords&&(this.cssWideKeywords=t.cssWideKeywords),t.units)for(const i of Object.keys(ju))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(nb(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=ti(this.cssWideKeywords.join(" | "))}checkStructure(t){function n(s,a){i.push({node:s,message:a})}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},a={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"?a.match=ti(t,s):(typeof t=="string"?Object.defineProperty(a,"syntax",{get(){return Object.defineProperty(a,"syntax",{value:tl(t)}),a.syntax}}):a.syntax=t,Object.defineProperty(a,"match",{get(){return Object.defineProperty(a,"match",{value:ti(a.syntax,s)}),a.match}}),n==="Property"&&Object.defineProperty(a,"matchRef",{get(){const o=a.syntax,u=Gb(o)?ti({...o,terms:[o.terms[0].term]},s):null;return Object.defineProperty(a,"matchRef",{value:u}),u}})),a}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 rr("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&&!Cn(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=_s(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 rr("Unknown at-rule descriptor",n)}checkPropertyName(t){if(!this.getProperty(t))return new rr("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?Cn(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),a=_s(n);return Cn(this,s.descriptors[a.name]||s.descriptors[a.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(Pu(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):Cn(this,this.getProperty(t),n,!0)}matchType(t,n){const r=this.getType(t);return r?Cn(this,r,n,!1):kt(null,new rr("Unknown type",t))}match(t,n){return typeof t!="string"&&(!t||!t.type)?kt(null,new rr("Bad syntax")):((typeof t=="string"||!t.match)&&(t=this.createDescriptor(t,"Type","anonymous")),Cn(this,t,n,!1))}findValueFragments(t,n,r,i){return ml(this,n,this.matchProperty(t,n),r,i)}findDeclarationValueFragments(t,n,r){return ml(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=_s(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=Pu(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,l){return l?`<${u}>`:`<'${u}'>`}function n(u,l,d,h){if(d.has(l))return d.get(l);d.set(l,!1),h.syntax!==null&&Ab(h.syntax,function(p){if(p.type!=="Type"&&p.type!=="Property")return;const f=p.type==="Type"?u.types:u.properties,g=p.type==="Type"?i:s;hasOwnProperty.call(f,p.name)?n(u,p.name,g,f[p.name])&&(r.push(`${t(l,d===i)} used broken syntax definition ${t(p.name,p.type==="Type")}`),d.set(l,!0)):(r.push(`${t(l,d===i)} used missed syntax definition ${t(p.name,p.type==="Type")}`),d.set(l,!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 a=[...i.keys()].filter(u=>i.get(u)),o=[...s.keys()].filter(u=>s.get(u));return a.length||o.length?{errors:r,types:a,properties:o}:null}dump(t,n){return{generic:this.generic,cssWideKeywords:this.cssWideKeywords,units:this.units,types:Gs(this.types,!n,t),properties:Gs(this.properties,!n,t),atrules:Yb(this.atrules,!n,t)}}toString(){return JSON.stringify(this.dump())}}function Vs(e,t){return typeof t=="string"&&/^\s*\|/.test(t)?typeof e=="string"?e+t:t.replace(/^\s*\|\s*/,""):t||null}function Vb(e,t){const n=Object.create(null);for(const r of Object.keys(e))t.includes(r)&&(n[r]=e[r]);return n}function Ks(e,t,n){const r={...e};for(const[i,s]of Object.entries(t))r[i]={...r[i],...n?Vb(s,n):s};return r}function Xs(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,a]of Object.entries(i))n[r][s]=Array.isArray(a)?a:[];break;case"atrules":n[r]={...e[r]};for(const[s,a]of Object.entries(i)){const o=n[r][s]||{},u=n[r][s]={prelude:o.prelude||null,descriptors:{...o.descriptors}};if(a){u.prelude=a.prelude?Vs(u.prelude,a.prelude):u.prelude||null;for(const[l,d]of Object.entries(a.descriptors||{}))u.descriptors[l]=d?Vs(u.descriptors[l],d):null;Object.keys(u.descriptors).length||(u.descriptors=null)}}break;case"types":case"properties":n[r]={...e[r]};for(const[s,a]of Object.entries(i))n[r][s]=Vs(n[r][s],a);break;case"parseContext":n[r]={...e[r],...i};break;case"scope":case"features":n[r]=Ks(e[r],i);break;case"atrule":case"pseudo":n[r]=Ks(e[r],i,["parse"]);break;case"node":n[r]=Ks(e[r],i,["name","structure","parse","generate","walkContext"]);break}return n}function yl(e){const t=rg(e),n=wg(e),r=Eg(e),{fromPlainObject:i,toPlainObject:s}=yg(n),a={lexer:null,createLexer:o=>new El(o,a,a.lexer.structure),tokenize:Hr,parse:t,generate:r,walk:n,find:n.find,findLast:n.findLast,findAll:n.findAll,fromPlainObject:i,toPlainObject:s,fork(o){const u=Xs({},e);return yl(typeof o=="function"?o(u):Xs(u,o))}};return a.lexer=new El({generic:e.generic,cssWideKeywords:e.cssWideKeywords,units:e.units,types:e.types,atrules:e.atrules,properties:e.properties,node:e.node},a),a}const Kb=e=>yl(Xs({},e)),Xb={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"}}}},It=43,lt=45,ni=110,un=!0,Qb=!1;function ri(e,t){let n=this.tokenStart+e;const r=this.charCodeAt(n);for((r===It||r===lt)&&(t&&this.error("Number sign is not allowed"),n++);n<this.tokenEnd;n++)We(this.charCodeAt(n))||this.error("Integer is expected",n)}function xn(e){return ri.call(this,0,e)}function Zt(e,t){if(!this.cmpChar(this.tokenStart+e,t)){let n="";switch(t){case ni:n="N is expected";break;case lt:n="HyphenMinus is expected";break}this.error(n,this.tokenStart+e)}}function Qs(){let e=0,t=0,n=this.tokenType;for(;n===Le||n===Ye;)n=this.lookupType(++e);if(n!==fe)if(this.isDelim(It,e)||this.isDelim(lt,e)){t=this.isDelim(It,e)?It:lt;do n=this.lookupType(++e);while(n===Le||n===Ye);n!==fe&&(this.skip(e),xn.call(this,un))}else return null;return e>0&&this.skip(e),t===0&&(n=this.charCodeAt(this.tokenStart),n!==It&&n!==lt&&this.error("Number sign is expected")),xn.call(this,t!==0),t===lt?"-"+this.consume(fe):this.consume(fe)}const Zb="AnPlusB",Jb={a:[String,null],b:[String,null]};function Tl(){const e=this.tokenStart;let t=null,n=null;if(this.tokenType===fe)xn.call(this,Qb),n=this.consume(fe);else if(this.tokenType===ne&&this.cmpChar(this.tokenStart,lt))switch(t="-1",Zt.call(this,1,ni),this.tokenEnd-this.tokenStart){case 2:this.next(),n=Qs.call(this);break;case 3:Zt.call(this,2,lt),this.next(),this.skipSC(),xn.call(this,un),n="-"+this.consume(fe);break;default:Zt.call(this,2,lt),ri.call(this,3,un),this.next(),n=this.substrToCursor(e+2)}else if(this.tokenType===ne||this.isDelim(It)&&this.lookupType(1)===ne){let r=0;switch(t="1",this.isDelim(It)&&(r=1,this.next()),Zt.call(this,0,ni),this.tokenEnd-this.tokenStart){case 1:this.next(),n=Qs.call(this);break;case 2:Zt.call(this,1,lt),this.next(),this.skipSC(),xn.call(this,un),n="-"+this.consume(fe);break;default:Zt.call(this,1,lt),ri.call(this,2,un),this.next(),n=this.substrToCursor(e+r+1)}}else if(this.tokenType===be){const r=this.charCodeAt(this.tokenStart),i=r===It||r===lt;let s=this.tokenStart+i;for(;s<this.tokenEnd&&We(this.charCodeAt(s));s++);s===this.tokenStart+i&&this.error("Integer is expected",this.tokenStart+i),Zt.call(this,s-this.tokenStart,ni),t=this.substring(e,s),s+1===this.tokenEnd?(this.next(),n=Qs.call(this)):(Zt.call(this,s-this.tokenStart+1,lt),s+2===this.tokenEnd?(this.next(),this.skipSC(),xn.call(this,un),n="-"+this.consume(fe)):(ri.call(this,s-this.tokenStart+2,un),this.next(),n=this.substrToCursor(s+1)))}else this.error();return t!==null&&t.charCodeAt(0)===It&&(t=t.substr(1)),n!==null&&n.charCodeAt(0)===It&&(n=n.substr(1)),{type:"AnPlusB",loc:this.getLocation(e,this.tokenStart),a:t,b:n}}function e1(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 t1=Object.freeze(Object.defineProperty({__proto__:null,generate:e1,name:Zb,parse:Tl,structure:Jb},Symbol.toStringTag,{value:"Module"}));function _l(){return this.Raw(this.consumeUntilLeftCurlyBracketOrSemicolon,!0)}function n1(){for(let e=1,t;t=this.lookupType(e);e++){if(t===ut)return!0;if(t===$e||t===Be)return!1}return!1}const r1="Atrule",i1="atrule",s1={name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]};function wl(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!==$e&&this.tokenType!==Xe&&(this.parseAtrulePrelude?i=this.parseWithFallback(this.AtrulePrelude.bind(this,n,e),_l):i=_l.call(this,this.tokenIndex),this.skipSC()),this.tokenType){case Xe:this.next();break;case $e:hasOwnProperty.call(this.atrule,r)&&typeof this.atrule[r].block=="function"?s=this.atrule[r].block.call(this,e):s=this.Block(n1.call(this));break}return{type:"Atrule",loc:this.getLocation(t,this.tokenStart),name:n,prelude:i,block:s}}function a1(e){this.token(Be,"@"+e.name),e.prelude!==null&&this.node(e.prelude),e.block?this.node(e.block):this.token(Xe,";")}const o1=Object.freeze(Object.defineProperty({__proto__:null,generate:a1,name:r1,parse:wl,structure:s1,walkContext:i1},Symbol.toStringTag,{value:"Module"})),u1="AtrulePrelude",l1="atrulePrelude",c1={children:[[]]};function kl(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!==$e&&this.tokenType!==Xe&&this.error("Semicolon or block is expected"),{type:"AtrulePrelude",loc:this.getLocationFromList(t),children:t}}function d1(e){this.children(e)}const h1=Object.freeze(Object.defineProperty({__proto__:null,generate:d1,name:u1,parse:kl,structure:c1,walkContext:l1},Symbol.toStringTag,{value:"Module"})),f1=36,Al=42,ii=61,p1=94,Zs=124,m1=126;function g1(){this.eof&&this.error("Unexpected end of input");const e=this.tokenStart;let t=!1;return this.isDelim(Al)?(t=!0,this.next()):this.isDelim(Zs)||this.eat(ne),this.isDelim(Zs)?this.charCodeAt(this.tokenStart+1)!==ii?(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 b1(){const e=this.tokenStart,t=this.charCodeAt(e);return t!==ii&&t!==m1&&t!==p1&&t!==f1&&t!==Al&&t!==Zs&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.next(),t!==ii&&(this.isDelim(ii)||this.error("Equal sign is expected"),this.next()),this.substrToCursor(e)}const E1="AttributeSelector",y1={name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]};function Sl(){const e=this.tokenStart;let t,n=null,r=null,i=null;return this.eat(ot),this.skipSC(),t=g1.call(this),this.skipSC(),this.tokenType!==ft&&(this.tokenType!==ne&&(n=b1.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 T1(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 _1=Object.freeze(Object.defineProperty({__proto__:null,generate:T1,name:E1,parse:Sl,structure:y1},Symbol.toStringTag,{value:"Module"})),w1=38;function Cl(){return this.Raw(null,!0)}function xl(){return this.parseWithFallback(this.Rule,Cl)}function Nl(){return this.Raw(this.consumeUntilSemicolonIncluded,!0)}function k1(){if(this.tokenType===Xe)return Nl.call(this,this.tokenIndex);const e=this.parseWithFallback(this.Declaration,Nl);return this.tokenType===Xe&&this.next(),e}const A1="Block",S1="block",C1={children:[["Atrule","Rule","Declaration"]]};function vl(e){const t=e?k1:xl,n=this.tokenStart;let r=this.createList();this.eat($e);e:for(;!this.eof;)switch(this.tokenType){case ut:break e;case Le:case Ye:this.next();break;case Be:r.push(this.parseWithFallback(this.Atrule.bind(this,e),Cl));break;default:e&&this.isDelim(w1)?r.push(xl.call(this)):r.push(t.call(this))}return this.eof||this.eat(ut),{type:"Block",loc:this.getLocation(n,this.tokenStart),children:r}}function x1(e){this.token($e,"{"),this.children(e,t=>{t.type==="Declaration"&&this.token(Xe,";")}),this.token(ut,"}")}const N1=Object.freeze(Object.defineProperty({__proto__:null,generate:x1,name:A1,parse:vl,structure:C1,walkContext:S1},Symbol.toStringTag,{value:"Module"})),v1="Brackets",I1={children:[[]]};function Il(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 O1(e){this.token(ge,"["),this.children(e),this.token(ge,"]")}const L1=Object.freeze(Object.defineProperty({__proto__:null,generate:O1,name:v1,parse:Il,structure:I1},Symbol.toStringTag,{value:"Module"})),P1="CDC",R1=[];function Ol(){const e=this.tokenStart;return this.eat(it),{type:"CDC",loc:this.getLocation(e,this.tokenStart)}}function D1(){this.token(it,"-->")}const M1=Object.freeze(Object.defineProperty({__proto__:null,generate:D1,name:P1,parse:Ol,structure:R1},Symbol.toStringTag,{value:"Module"})),B1="CDO",F1=[];function Ll(){const e=this.tokenStart;return this.eat(Zn),{type:"CDO",loc:this.getLocation(e,this.tokenStart)}}function U1(){this.token(Zn,"<!--")}const H1=Object.freeze(Object.defineProperty({__proto__:null,generate:U1,name:B1,parse:Ll,structure:F1},Symbol.toStringTag,{value:"Module"})),z1=46,$1="ClassSelector",j1={name:String};function Pl(){return this.eatDelim(z1),{type:"ClassSelector",loc:this.getLocation(this.tokenStart-1,this.tokenEnd),name:this.consume(ne)}}function q1(e){this.token(ge,"."),this.token(ne,e.name)}const Y1=Object.freeze(Object.defineProperty({__proto__:null,generate:q1,name:$1,parse:Pl,structure:j1},Symbol.toStringTag,{value:"Module"})),W1=43,Rl=47,G1=62,V1=126,K1="Combinator",X1={name:String};function Dl(){const e=this.tokenStart;let t;switch(this.tokenType){case Le:t=" ";break;case ge:switch(this.charCodeAt(this.tokenStart)){case G1:case W1:case V1:this.next();break;case Rl:this.next(),this.eatIdent("deep"),this.eatDelim(Rl);break;default:this.error("Combinator is expected")}t=this.substrToCursor(e);break}return{type:"Combinator",loc:this.getLocation(e,this.tokenStart),name:t}}function Q1(e){this.tokenize(e.name)}const Z1=Object.freeze(Object.defineProperty({__proto__:null,generate:Q1,name:K1,parse:Dl,structure:X1},Symbol.toStringTag,{value:"Module"})),J1=42,eE=47,tE="Comment",nE={value:String};function Ml(){const e=this.tokenStart;let t=this.tokenEnd;return this.eat(Ye),t-e+2>=2&&this.charCodeAt(t-2)===J1&&this.charCodeAt(t-1)===eE&&(t-=2),{type:"Comment",loc:this.getLocation(e,this.tokenStart),value:this.substring(e+2,t)}}function rE(e){this.token(Ye,"/*"+e.value+"*/")}const iE=Object.freeze(Object.defineProperty({__proto__:null,generate:rE,name:tE,parse:Ml,structure:nE},Symbol.toStringTag,{value:"Module"})),sE=new Set([Ke,de,Gt]),aE="Condition",oE={kind:String,children:[["Identifier","Feature","FeatureFunction","FeatureRange","SupportsDeclaration"]]};function Bl(e){return this.lookupTypeNonSC(1)===ne&&sE.has(this.lookupTypeNonSC(2))?this.Feature(e):this.FeatureRange(e)}const uE={media:Bl,container:Bl,supports(){return this.SupportsDeclaration()}};function Fl(e="media"){const t=this.createList();e:for(;!this.eof;)switch(this.tokenType){case Ye:case Le:this.next();continue;case ne:t.push(this.Identifier());break;case _e:{let n=this.parseWithFallback(()=>uE[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 lE(e){e.children.forEach(t=>{t.type==="Condition"?(this.token(_e,"("),this.node(t),this.token(de,")")):this.node(t)})}const cE=Object.freeze(Object.defineProperty({__proto__:null,generate:lE,name:aE,parse:Fl,structure:oE},Symbol.toStringTag,{value:"Module"})),Ul=33,dE=35,hE=36,fE=38,pE=42,mE=43,Hl=47;function gE(){return this.Raw(this.consumeUntilExclamationMarkOrSemicolon,!0)}function bE(){return this.Raw(this.consumeUntilExclamationMarkOrSemicolon,!1)}function EE(){const e=this.tokenIndex,t=this.Value();return t.type!=="Raw"&&this.eof===!1&&this.tokenType!==Xe&&this.isDelim(Ul)===!1&&this.isBalanceEdge(e)===!1&&this.error(),t}const yE="Declaration",TE="declaration",_E={important:[Boolean,String],property:String,value:["Value","Raw"]};function zl(){const e=this.tokenStart,t=this.tokenIndex,n=kE.call(this),r=ws(n),i=r?this.parseCustomProperty:this.parseValue,s=r?bE:gE;let a=!1,o;this.skipSC(),this.eat(Ke);const u=this.tokenIndex;if(r||this.skipSC(),i?o=this.parseWithFallback(EE,s):o=s.call(this,this.tokenIndex),r&&o.type==="Value"&&o.children.isEmpty){for(let l=u-this.tokenIndex;l<=0;l++)if(this.lookupType(l)===Le){o.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}return this.isDelim(Ul)&&(a=AE.call(this),this.skipSC()),this.eof===!1&&this.tokenType!==Xe&&this.isBalanceEdge(t)===!1&&this.error(),{type:"Declaration",loc:this.getLocation(e,this.tokenStart),important:a,property:n,value:o}}function wE(e){this.token(ne,e.property),this.token(Ke,":"),this.node(e.value),e.important&&(this.token(ge,"!"),this.token(ne,e.important===!0?"important":e.important))}function kE(){const e=this.tokenStart;if(this.tokenType===ge)switch(this.charCodeAt(this.tokenStart)){case pE:case hE:case mE:case dE:case fE:this.next();break;case Hl:this.next(),this.isDelim(Hl)&&this.next();break}return this.tokenType===xe?this.eat(xe):this.eat(ne),this.substrToCursor(e)}function AE(){this.eat(ge),this.skipSC();const e=this.consume(ne);return e==="important"?!0:e}const SE=Object.freeze(Object.defineProperty({__proto__:null,generate:wE,name:yE,parse:zl,structure:_E,walkContext:TE},Symbol.toStringTag,{value:"Module"})),CE=38;function Js(){return this.Raw(this.consumeUntilSemicolonIncluded,!0)}const xE="DeclarationList",NE={children:[["Declaration","Atrule","Rule"]]};function $l(){const e=this.createList();for(;!this.eof;)switch(this.tokenType){case Le:case Ye:case Xe:this.next();break;case Be:e.push(this.parseWithFallback(this.Atrule.bind(this,!0),Js));break;default:this.isDelim(CE)?e.push(this.parseWithFallback(this.Rule,Js)):e.push(this.parseWithFallback(this.Declaration,Js))}return{type:"DeclarationList",loc:this.getLocationFromList(e),children:e}}function vE(e){this.children(e,t=>{t.type==="Declaration"&&this.token(Xe,";")})}const IE=Object.freeze(Object.defineProperty({__proto__:null,generate:vE,name:xE,parse:$l,structure:NE},Symbol.toStringTag,{value:"Module"})),OE="Dimension",LE={value:String,unit:String};function jl(){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 PE(e){this.token(be,e.value+e.unit)}const RE=Object.freeze(Object.defineProperty({__proto__:null,generate:PE,name:OE,parse:jl,structure:LE},Symbol.toStringTag,{value:"Module"})),DE=47,ME="Feature",BE={kind:String,name:String,value:["Identifier","Number","Dimension","Ratio","Function",null]};function ql(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(Ke),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(DE)&&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 FE(e){this.token(_e,"("),this.token(ne,e.name),e.value!==null&&(this.token(Ke,":"),this.node(e.value)),this.token(de,")")}const UE=Object.freeze(Object.defineProperty({__proto__:null,generate:FE,name:ME,parse:ql,structure:BE},Symbol.toStringTag,{value:"Module"})),HE="FeatureFunction",zE={kind:String,feature:String,value:["Declaration","Selector"]};function $E(e,t){const r=(this.features[e]||{})[t];return typeof r!="function"&&this.error(`Unknown feature ${t}()`),r}function Yl(e="unknown"){const t=this.tokenStart,n=this.consumeFunctionName(),r=$E.call(this,e,n.toLowerCase());this.skipSC();const i=this.parseWithFallback(()=>{const s=this.tokenIndex,a=r.call(this);return this.eof===!1&&this.isBalanceEdge(s)===!1&&this.error(),a},()=>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 jE(e){this.token(pe,e.feature+"("),this.node(e.value),this.token(de,")")}const qE=Object.freeze(Object.defineProperty({__proto__:null,generate:jE,name:HE,parse:Yl,structure:zE},Symbol.toStringTag,{value:"Module"})),Wl=47,YE=60,Gl=61,WE=62,GE="FeatureRange",VE={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 ea(){switch(this.skipSC(),this.tokenType){case fe:return this.isDelim(Wl,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(Wl)&&this.error(),e},()=>this.Ratio());default:this.error("Number, dimension, ratio or identifier is expected")}}function Vl(e){if(this.skipSC(),this.isDelim(YE)||this.isDelim(WE)){const t=this.source[this.tokenStart];return this.next(),this.isDelim(Gl)?(this.next(),t+"="):t}if(this.isDelim(Gl))return"=";this.error(`Expected ${e?'":", ':""}"<", ">", "=" or ")"`)}function Kl(e="unknown"){const t=this.tokenStart;this.skipSC(),this.eat(_e);const n=ea.call(this),r=Vl.call(this,n.type==="Identifier"),i=ea.call(this);let s=null,a=null;return this.lookupNonWSType(0)!==de&&(s=Vl.call(this),a=ea.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:a}}function KE(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 XE=Object.freeze(Object.defineProperty({__proto__:null,generate:KE,name:GE,parse:Kl,structure:VE},Symbol.toStringTag,{value:"Module"})),QE="Function",ZE="function",JE={name:String,children:[[]]};function Xl(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 ey(e){this.token(pe,e.name+"("),this.children(e),this.token(de,")")}const ty=Object.freeze(Object.defineProperty({__proto__:null,generate:ey,name:QE,parse:Xl,structure:JE,walkContext:ZE},Symbol.toStringTag,{value:"Module"})),ny="GeneralEnclosed",ry={kind:String,function:[String,null],children:[[]]};function Ql(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 iy(e){e.function?this.token(pe,e.function+"("):this.token(_e,"("),this.children(e),this.token(de,")")}const sy=Object.freeze(Object.defineProperty({__proto__:null,generate:iy,name:ny,parse:Ql,structure:ry},Symbol.toStringTag,{value:"Module"})),ay="XXX",oy="Hash",uy={value:String};function Zl(){const e=this.tokenStart;return this.eat(xe),{type:"Hash",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e+1)}}function ly(e){this.token(xe,"#"+e.value)}const cy=Object.freeze(Object.defineProperty({__proto__:null,generate:ly,name:oy,parse:Zl,structure:uy,xxx:ay},Symbol.toStringTag,{value:"Module"})),dy="Identifier",hy={name:String};function Jl(){return{type:"Identifier",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:this.consume(ne)}}function fy(e){this.token(ne,e.name)}const py=Object.freeze(Object.defineProperty({__proto__:null,generate:fy,name:dy,parse:Jl,structure:hy},Symbol.toStringTag,{value:"Module"})),my="IdSelector",gy={name:String};function ec(){const e=this.tokenStart;return this.eat(xe),{type:"IdSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e+1)}}function by(e){this.token(ge,"#"+e.name)}const Ey=Object.freeze(Object.defineProperty({__proto__:null,generate:by,name:my,parse:ec,structure:gy},Symbol.toStringTag,{value:"Module"})),yy=46,Ty="Layer",_y={name:String};function tc(){let e=this.tokenStart,t=this.consume(ne);for(;this.isDelim(yy);)this.eat(ge),t+="."+this.consume(ne);return{type:"Layer",loc:this.getLocation(e,this.tokenStart),name:t}}function wy(e){this.tokenize(e.name)}const ky=Object.freeze(Object.defineProperty({__proto__:null,generate:wy,name:Ty,parse:tc,structure:_y},Symbol.toStringTag,{value:"Module"})),Ay="LayerList",Sy={children:[["Layer"]]};function nc(){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 Cy(e){this.children(e,()=>this.token(st,","))}const xy=Object.freeze(Object.defineProperty({__proto__:null,generate:Cy,name:Ay,parse:nc,structure:Sy},Symbol.toStringTag,{value:"Module"})),Ny="MediaQuery",vy={modifier:[String,null],mediaType:[String,null],condition:["Condition",null]};function rc(){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 $e:case Xe:case st:case Gt: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 $e:case Xe:case Gt: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 Iy(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 Oy=Object.freeze(Object.defineProperty({__proto__:null,generate:Iy,name:Ny,parse:rc,structure:vy},Symbol.toStringTag,{value:"Module"})),Ly="MediaQueryList",Py={children:[["MediaQuery"]]};function ic(){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 Ry(e){this.children(e,()=>this.token(st,","))}const Dy=Object.freeze(Object.defineProperty({__proto__:null,generate:Ry,name:Ly,parse:ic,structure:Py},Symbol.toStringTag,{value:"Module"})),My=38,By="NestingSelector",Fy={};function sc(){const e=this.tokenStart;return this.eatDelim(My),{type:"NestingSelector",loc:this.getLocation(e,this.tokenStart)}}function Uy(){this.token(ge,"&")}const Hy=Object.freeze(Object.defineProperty({__proto__:null,generate:Uy,name:By,parse:sc,structure:Fy},Symbol.toStringTag,{value:"Module"})),zy="Nth",$y={nth:["AnPlusB","Identifier"],selector:["SelectorList",null]};function ac(){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 jy(e){this.node(e.nth),e.selector!==null&&(this.token(ne,"of"),this.node(e.selector))}const qy=Object.freeze(Object.defineProperty({__proto__:null,generate:jy,name:zy,parse:ac,structure:$y},Symbol.toStringTag,{value:"Module"})),Yy="Number",Wy={value:String};function oc(){return{type:"Number",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume(fe)}}function Gy(e){this.token(fe,e.value)}const Vy=Object.freeze(Object.defineProperty({__proto__:null,generate:Gy,name:Yy,parse:oc,structure:Wy},Symbol.toStringTag,{value:"Module"})),Ky="Operator",Xy={value:String};function uc(){const e=this.tokenStart;return this.next(),{type:"Operator",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function Qy(e){this.tokenize(e.value)}const Zy=Object.freeze(Object.defineProperty({__proto__:null,generate:Qy,name:Ky,parse:uc,structure:Xy},Symbol.toStringTag,{value:"Module"})),Jy="Parentheses",eT={children:[[]]};function lc(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 tT(e){this.token(_e,"("),this.children(e),this.token(de,")")}const nT=Object.freeze(Object.defineProperty({__proto__:null,generate:tT,name:Jy,parse:lc,structure:eT},Symbol.toStringTag,{value:"Module"})),rT="Percentage",iT={value:String};function cc(){return{type:"Percentage",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(Oe)}}function sT(e){this.token(Oe,e.value+"%")}const aT=Object.freeze(Object.defineProperty({__proto__:null,generate:sT,name:rT,parse:cc,structure:iT},Symbol.toStringTag,{value:"Module"})),oT="PseudoClassSelector",uT="function",lT={name:String,children:[["Raw"],null]};function dc(){const e=this.tokenStart;let t=null,n,r;return this.eat(Ke),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 cT(e){this.token(Ke,":"),e.children===null?this.token(ne,e.name):(this.token(pe,e.name+"("),this.children(e),this.token(de,")"))}const dT=Object.freeze(Object.defineProperty({__proto__:null,generate:cT,name:oT,parse:dc,structure:lT,walkContext:uT},Symbol.toStringTag,{value:"Module"})),hT="PseudoElementSelector",fT="function",pT={name:String,children:[["Raw"],null]};function hc(){const e=this.tokenStart;let t=null,n,r;return this.eat(Ke),this.eat(Ke),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 mT(e){this.token(Ke,":"),this.token(Ke,":"),e.children===null?this.token(ne,e.name):(this.token(pe,e.name+"("),this.children(e),this.token(de,")"))}const gT=Object.freeze(Object.defineProperty({__proto__:null,generate:mT,name:hT,parse:hc,structure:pT,walkContext:fT},Symbol.toStringTag,{value:"Module"})),fc=47;function pc(){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 bT="Ratio",ET={left:["Number","Function"],right:["Number","Function",null]};function mc(){const e=this.tokenStart,t=pc.call(this);let n=null;return this.skipSC(),this.isDelim(fc)&&(this.eatDelim(fc),n=pc.call(this)),{type:"Ratio",loc:this.getLocation(e,this.tokenStart),left:t,right:n}}function yT(e){this.node(e.left),this.token(ge,"/"),e.right?this.node(e.right):this.node(fe,1)}const TT=Object.freeze(Object.defineProperty({__proto__:null,generate:yT,name:bT,parse:mc,structure:ET},Symbol.toStringTag,{value:"Module"}));function _T(){return this.tokenIndex>0&&this.lookupType(-1)===Le?this.tokenIndex>1?this.getTokenStart(this.tokenIndex-1):this.firstCharOffset:this.tokenStart}const wT="Raw",kT={value:String};function gc(e,t){const n=this.getTokenStart(this.tokenIndex);let r;return this.skipUntilBalanced(this.tokenIndex,e||this.consumeUntilBalanceEnd),t&&this.tokenStart>n?r=_T.call(this):r=this.tokenStart,{type:"Raw",loc:this.getLocation(n,r),value:this.substring(n,r)}}function AT(e){this.tokenize(e.value)}const ST=Object.freeze(Object.defineProperty({__proto__:null,generate:AT,name:wT,parse:gc,structure:kT},Symbol.toStringTag,{value:"Module"}));function bc(){return this.Raw(this.consumeUntilLeftCurlyBracket,!0)}function CT(){const e=this.SelectorList();return e.type!=="Raw"&&this.eof===!1&&this.tokenType!==$e&&this.error(),e}const xT="Rule",NT="rule",vT={prelude:["SelectorList","Raw"],block:["Block"]};function Ec(){const e=this.tokenIndex,t=this.tokenStart;let n,r;return this.parseRulePrelude?n=this.parseWithFallback(CT,bc):n=bc.call(this,e),r=this.Block(!0),{type:"Rule",loc:this.getLocation(t,this.tokenStart),prelude:n,block:r}}function IT(e){this.node(e.prelude),this.node(e.block)}const OT=Object.freeze(Object.defineProperty({__proto__:null,generate:IT,name:xT,parse:Ec,structure:vT,walkContext:NT},Symbol.toStringTag,{value:"Module"})),LT="Scope",PT={root:["SelectorList","Raw",null],limit:["SelectorList","Raw",null]};function yc(){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 RT(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 DT=Object.freeze(Object.defineProperty({__proto__:null,generate:RT,name:LT,parse:yc,structure:PT},Symbol.toStringTag,{value:"Module"})),MT="Selector",BT={children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator"]]};function Tc(){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 FT(e){this.children(e)}const UT=Object.freeze(Object.defineProperty({__proto__:null,generate:FT,name:MT,parse:Tc,structure:BT},Symbol.toStringTag,{value:"Module"})),HT="SelectorList",zT="selector",$T={children:[["Selector","Raw"]]};function _c(){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 jT(e){this.children(e,()=>this.token(st,","))}const qT=Object.freeze(Object.defineProperty({__proto__:null,generate:jT,name:HT,parse:_c,structure:$T,walkContext:zT},Symbol.toStringTag,{value:"Module"})),ta=92,wc=34,YT=39;function kc(e){const t=e.length,n=e.charCodeAt(0),r=n===wc||n===YT?1:0,i=r===1&&t>1&&e.charCodeAt(t-1)===n?t-2:t-1;let s="";for(let a=r;a<=i;a++){let o=e.charCodeAt(a);if(o===ta){if(a===i){a!==t-1&&(s=e.substr(a+1));break}if(o=e.charCodeAt(++a),Nt(ta,o)){const u=a-1,l=yn(e,u);a=l-1,s+=au(e.substring(u+1,l))}else o===13&&e.charCodeAt(a+1)===10&&a++}else s+=e[a]}return s}function WT(e,t){const r=wc;let i="",s=!1;for(let a=0;a<e.length;a++){const o=e.charCodeAt(a);if(o===0){i+="�";continue}if(o<=31||o===127){i+="\\"+o.toString(16),s=!0;continue}o===r||o===ta?(i+="\\"+e.charAt(a),s=!1):(s&&(Vt(o)||on(o))&&(i+=" "),i+=e.charAt(a),s=!1)}return'"'+i+'"'}const GT="String",VT={value:String};function Ac(){return{type:"String",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:kc(this.consume(Et))}}function KT(e){this.token(Et,WT(e.value))}const XT=Object.freeze(Object.defineProperty({__proto__:null,generate:KT,name:GT,parse:Ac,structure:VT},Symbol.toStringTag,{value:"Module"})),QT=33;function Sc(){return this.Raw(null,!1)}const ZT="StyleSheet",JT="stylesheet",e2={children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]};function Cc(){const e=this.tokenStart,t=this.createList();let n;for(;!this.eof;){switch(this.tokenType){case Le:this.next();continue;case Ye:if(this.charCodeAt(this.tokenStart+2)!==QT){this.next();continue}n=this.Comment();break;case Zn:n=this.CDO();break;case it:n=this.CDC();break;case Be:n=this.parseWithFallback(this.Atrule,Sc);break;default:n=this.parseWithFallback(this.Rule,Sc)}t.push(n)}return{type:"StyleSheet",loc:this.getLocation(e,this.tokenStart),children:t}}function t2(e){this.children(e)}const n2=Object.freeze(Object.defineProperty({__proto__:null,generate:t2,name:ZT,parse:Cc,structure:e2,walkContext:JT},Symbol.toStringTag,{value:"Module"})),r2="SupportsDeclaration",i2={declaration:"Declaration"};function xc(){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 s2(e){this.token(_e,"("),this.node(e.declaration),this.token(de,")")}const a2=Object.freeze(Object.defineProperty({__proto__:null,generate:s2,name:r2,parse:xc,structure:i2},Symbol.toStringTag,{value:"Module"})),o2=42,Nc=124;function na(){this.tokenType!==ne&&this.isDelim(o2)===!1&&this.error("Identifier or asterisk is expected"),this.next()}const u2="TypeSelector",l2={name:String};function vc(){const e=this.tokenStart;return this.isDelim(Nc)?(this.next(),na.call(this)):(na.call(this),this.isDelim(Nc)&&(this.next(),na.call(this))),{type:"TypeSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}}function c2(e){this.tokenize(e.name)}const d2=Object.freeze(Object.defineProperty({__proto__:null,generate:c2,name:u2,parse:vc,structure:l2},Symbol.toStringTag,{value:"Module"})),Ic=43,Oc=45,ra=63;function dr(e,t){let n=0;for(let r=this.tokenStart+e;r<this.tokenEnd;r++){const i=this.charCodeAt(r);if(i===Oc&&t&&n!==0)return dr.call(this,e+n+1,!1),-1;Vt(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 si(e){let t=0;for(;this.isDelim(ra);)++t>e&&this.error("Too many question marks"),this.next()}function h2(e){this.charCodeAt(this.tokenStart)!==e&&this.error((e===Ic?"Plus sign":"Hyphen minus")+" is expected")}function f2(){let e=0;switch(this.tokenType){case fe:if(e=dr.call(this,1,!0),this.isDelim(ra)){si.call(this,6-e);break}if(this.tokenType===be||this.tokenType===fe){h2.call(this,Oc),dr.call(this,1,!1);break}break;case be:e=dr.call(this,1,!0),e>0&&si.call(this,6-e);break;default:if(this.eatDelim(Ic),this.tokenType===ne){e=dr.call(this,0,!0),e>0&&si.call(this,6-e);break}if(this.isDelim(ra)){this.next(),si.call(this,5);break}this.error("Hex digit or question mark is expected")}}const p2="UnicodeRange",m2={value:String};function Lc(){const e=this.tokenStart;return this.eatIdent("u"),f2.call(this),{type:"UnicodeRange",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function g2(e){this.tokenize(e.value)}const b2=Object.freeze(Object.defineProperty({__proto__:null,generate:g2,name:p2,parse:Lc,structure:m2},Symbol.toStringTag,{value:"Module"})),E2=32,ia=92,y2=34,T2=39,_2=40,Pc=41;function w2(e){const t=e.length;let n=4,r=e.charCodeAt(t-1)===Pc?t-2:t-1,i="";for(;n<r&&on(e.charCodeAt(n));)n++;for(;n<r&&on(e.charCodeAt(r));)r--;for(let s=n;s<=r;s++){let a=e.charCodeAt(s);if(a===ia){if(s===r){s!==t-1&&(i=e.substr(s+1));break}if(a=e.charCodeAt(++s),Nt(ia,a)){const o=s-1,u=yn(e,o);s=u-1,i+=au(e.substring(o+1,u))}else a===13&&e.charCodeAt(s+1)===10&&s++}else i+=e[s]}return i}function k2(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===E2||i===ia||i===y2||i===T2||i===_2||i===Pc?(t+="\\"+e.charAt(r),n=!1):(n&&Vt(i)&&(t+=" "),t+=e.charAt(r),n=!1)}return"url("+t+")"}const A2="Url",S2={value:String};function Rc(){const e=this.tokenStart;let t;switch(this.tokenType){case Ve:t=w2(this.consume(Ve));break;case pe:this.cmpStr(this.tokenStart,this.tokenEnd,"url(")||this.error("Function name must be `url`"),this.eat(pe),this.skipSC(),t=kc(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 C2(e){this.token(Ve,k2(e.value))}const x2=Object.freeze(Object.defineProperty({__proto__:null,generate:C2,name:A2,parse:Rc,structure:S2},Symbol.toStringTag,{value:"Module"})),N2="Value",v2={children:[[]]};function Dc(){const e=this.tokenStart,t=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(e,this.tokenStart),children:t}}function I2(e){this.children(e)}const O2=Object.freeze(Object.defineProperty({__proto__:null,generate:I2,name:N2,parse:Dc,structure:v2},Symbol.toStringTag,{value:"Module"})),L2=Object.freeze({type:"WhiteSpace",loc:null,value:" "}),P2="WhiteSpace",R2={value:String};function Mc(){return this.eat(Le),L2}function D2(e){this.token(Le,e.value)}const Bc=Object.freeze(Object.defineProperty({__proto__:null,AnPlusB:t1,Atrule:o1,AtrulePrelude:h1,AttributeSelector:_1,Block:N1,Brackets:L1,CDC:M1,CDO:H1,ClassSelector:Y1,Combinator:Z1,Comment:iE,Condition:cE,Declaration:SE,DeclarationList:IE,Dimension:RE,Feature:UE,FeatureFunction:qE,FeatureRange:XE,Function:ty,GeneralEnclosed:sy,Hash:cy,IdSelector:Ey,Identifier:py,Layer:ky,LayerList:xy,MediaQuery:Oy,MediaQueryList:Dy,NestingSelector:Hy,Nth:qy,Number:Vy,Operator:Zy,Parentheses:nT,Percentage:aT,PseudoClassSelector:dT,PseudoElementSelector:gT,Ratio:TT,Raw:ST,Rule:OT,Scope:DT,Selector:UT,SelectorList:qT,String:XT,StyleSheet:n2,SupportsDeclaration:a2,TypeSelector:d2,UnicodeRange:b2,Url:x2,Value:O2,WhiteSpace:Object.freeze(Object.defineProperty({__proto__:null,generate:D2,name:P2,parse:Mc,structure:R2},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"})),M2={generic:!0,cssWideKeywords:ks,...Xb,node:Bc},B2=35,F2=42,Fc=43,U2=45,H2=47,z2=117;function Uc(e){switch(this.tokenType){case xe:return this.Hash();case st:return this.Operator();case _e: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 Ve:return this.Url();case ne:return this.cmpChar(this.tokenStart,z2)&&this.cmpChar(this.tokenStart+1,Fc)?this.UnicodeRange():this.Identifier();case ge:{const t=this.charCodeAt(this.tokenStart);if(t===H2||t===F2||t===Fc||t===U2)return this.Operator();t===B2&&this.error("Hex or identifier is expected",this.tokenStart+1);break}}}const $2={getNode:Uc},j2=35,q2=38,Y2=42,W2=43,G2=47,Hc=46,V2=62,K2=124,X2=126;function Q2(e,t){t.last!==null&&t.last.type!=="Combinator"&&e!==null&&e.type!=="Combinator"&&t.push({type:"Combinator",loc:null,name:" "})}function Z2(){switch(this.tokenType){case ot:return this.AttributeSelector();case xe:return this.IdSelector();case Ke:return this.lookupType(1)===Ke?this.PseudoElementSelector():this.PseudoClassSelector();case ne:return this.TypeSelector();case fe:case Oe:return this.Percentage();case be:this.charCodeAt(this.tokenStart)===Hc&&this.error("Identifier is expected",this.tokenStart+1);break;case ge:{switch(this.charCodeAt(this.tokenStart)){case W2:case V2:case X2:case G2:return this.Combinator();case Hc:return this.ClassSelector();case Y2:case K2:return this.TypeSelector();case j2:return this.IdSelector();case q2:return this.NestingSelector()}break}}}const J2={onWhiteSpace:Q2,getNode:Z2};function e_(){return this.createSingleNodeList(this.Raw(null,!1))}function t_(){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 zc(e){return e!==null&&e.type==="Operator"&&(e.value[e.value.length-1]==="-"||e.value[e.value.length-1]==="+")}const n_=Object.freeze(Object.defineProperty({__proto__:null,AtrulePrelude:$2,Selector:J2,Value:{getNode:Uc,onWhiteSpace(e,t){zc(e)&&(e.value=" "+e.value),zc(t.last)&&(t.last.value+=" ")},expression:e_,var:t_}},Symbol.toStringTag,{value:"Module"})),r_=new Set(["none","and","not","or"]),i_={parse:{prelude(){const e=this.createList();if(this.tokenType===ne){const t=this.substring(this.tokenStart,this.tokenEnd);r_.has(t.toLowerCase())||e.push(this.Identifier())}return e.push(this.Condition("container")),e},block(e=!1){return this.Block(e)}}},s_={parse:{prelude:null,block(){return this.Block(!0)}}};function sa(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 $c={layer(){this.skipSC();const e=this.createList(),t=sa.call(this,this.Layer);return(t.type!=="Raw"||t.value!=="")&&e.push(t),e},supports(){this.skipSC();const e=this.createList(),t=sa.call(this,this.Declaration,()=>sa.call(this,()=>this.Condition("supports")));return(t.type!=="Raw"||t.value!=="")&&e.push(t),e}},a_={container:i_,"font-face":s_,import:{parse:{prelude(){const e=this.createList();switch(this.tokenType){case Et:e.push(this.String());break;case Ve: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,$c)),this.skipSC(),this.tokenType===pe&&this.cmpStr(this.tokenStart,this.tokenEnd,"supports(")&&e.push(this.Function(null,$c)),(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 o_(){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 ln={parse(){return this.createSingleNodeList(this.SelectorList())}},aa={parse(){return this.createSingleNodeList(this.Selector())}},u_={parse(){return this.createSingleNodeList(this.Identifier())}},l_={parse:o_},ai={parse(){return this.createSingleNodeList(this.Nth())}},c_=Kb({...M2,...{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:n_,atrule:a_,pseudo:{dir:u_,has:ln,lang:l_,matches:ln,is:ln,"-moz-any":ln,"-webkit-any":ln,where:ln,not:ln,"nth-child":ai,"nth-last-child":ai,"nth-last-of-type":ai,"nth-of-type":ai,slotted:aa,host:aa,"host-context":aa},node:Object.freeze(Object.defineProperty({__proto__:null,AnPlusB:Tl,Atrule:wl,AtrulePrelude:kl,AttributeSelector:Sl,Block:vl,Brackets:Il,CDC:Ol,CDO:Ll,ClassSelector:Pl,Combinator:Dl,Comment:Ml,Condition:Fl,Declaration:zl,DeclarationList:$l,Dimension:jl,Feature:ql,FeatureFunction:Yl,FeatureRange:Kl,Function:Xl,GeneralEnclosed:Ql,Hash:Zl,IdSelector:ec,Identifier:Jl,Layer:tc,LayerList:nc,MediaQuery:rc,MediaQueryList:ic,NestingSelector:sc,Nth:ac,Number:oc,Operator:uc,Parentheses:lc,Percentage:cc,PseudoClassSelector:dc,PseudoElementSelector:hc,Ratio:mc,Raw:gc,Rule:Ec,Scope:yc,Selector:Tc,SelectorList:_c,String:Ac,StyleSheet:Cc,SupportsDeclaration:xc,TypeSelector:vc,UnicodeRange:Lc,Url:Rc,Value:Dc,WhiteSpace:Mc},Symbol.toStringTag,{value:"Module"}))},...{node:Bc}}),{tokenize:wA,parse:d_,generate:h_,lexer:kA,createLexer:AA,walk:oi,find:SA,findLast:CA,findAll:xA,toPlainObject:NA,fromPlainObject:vA,fork:IA}=c_;function f_(e){return oa(e).classRules}function oa(e){const t={},n={},r=d_(e,{parseCustomProperty:!0});return oi(r,{visit:"Rule",enter(i){if(i.type!=="Rule"||!i.prelude||!i.block)return;const s={};if(oi(i.block,{visit:"Declaration",enter(o){const u=o.property,l=h_(o.value);s[u]=l}}),Object.keys(s).length===0)return;const a=p_(i.prelude);for(const o of a.classes)t[o]={...t[o],...s};for(const o of a.elements)n[o]={...n[o],...s}}}),{classRules:t,elementRules:n}}function p_(e){const t=[],n=[];return oi(e,{visit:"ClassSelector",enter(r){r.type==="ClassSelector"&&r.name&&t.push(r.name)}}),oi(e,{visit:"TypeSelector",enter(r){r.type==="TypeSelector"&&r.name&&n.push(r.name.toLowerCase())}}),{classes:t,elements:n}}function m_(e,t){const n=Rm(e,{fragment:!0}),r=[];jc(n,r);const i=[...r,t==null?void 0:t.css].filter(Boolean).join(`
|
|
14
|
-
`),a={type:"root",children:Ht(n.children,"block")};if(i){const o=oa(i),u=Object.keys(o.classRules).length>0,l=Object.keys(o.elementRules).length>0;(u||l)&&(a.data={...a.data,css:o})}return a}function jc(e,t){var r;if(!e||typeof e!="object")return;if("type"in e&&e.type==="element"&&((r=e.tagName)==null?void 0:r.toLowerCase())==="style"){const i=(e.children??[]).map(s=>s.type==="text"?s.value:"").join("");i.trim()&&t.push(i);return}const n=e.children;if(n)for(const i of n)jc(i,t)}function Ht(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=qc(r,t);i&&(Array.isArray(i)?n.push(...i):n.push(i))}return n}function qc(e,t){const n=e.tagName.toLowerCase();switch(n){case"p":return ui("paragraph",e);case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return g_(e,Number(n[1]));case"blockquote":return ui("blockquote",e);case"ul":return Yc(e,!1);case"ol":return Yc(e,!0);case"li":return Wc(e);case"pre":return b_(e);case"table":return E_(e);case"thead":case"tbody":case"tfoot":return Ht(e.children,"block");case"tr":return Gc(e);case"td":case"th":return Vc(e);case"hr":{const r={type:"thematicBreak"};return Lt(e,r),r}case"br":return{type:"break"};case"img":return y_(e);case"div":case"section":case"article":case"main":case"header":case"footer":case"nav":case"aside":return ui("div",e);case"figure":return ui("figure",e);case"figcaption":return T_(e);case"script":case"style":case"noscript":case"template":case"title":case"meta":case"link":return null}if(__(n)||n==="a")return li(e);if(n==="code")return{type:"inlineCode",value:ci(e)};if(n==="span")return li(e);if(t==="block"){const r=Ht(e.children,"block");return r.length===0?null:r.length===1?r[0]:r}else return li(e)}function ui(e,t){const r=e==="paragraph"?"inline":"block",i=Ht(t.children,r),s={type:e,children:i};return Ot(t,s),Lt(t,s),s}function g_(e,t){const n=Ht(e.children,"inline"),r={type:"heading",depth:t,children:n};return Ot(e,r),Lt(e,r),r}function Yc(e,t){var i,s,a;const n=[];for(const o of e.children)if(o.type==="element"&&o.tagName.toLowerCase()==="li")n.push(Wc(o));else{const u=o.type==="element"?qc(o,"block"):o.type==="text"&&o.value.trim()?[{type:"text",value:o.value}]:null;if(u){const l=[],d=Array.isArray(u)?u:[u];for(const h of d)la(h.type)?l.push({type:"paragraph",children:[h]}):l.push(h);if(l.length>0){const h={type:"listItem",children:l};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:{...((a=r.data)==null?void 0:a.html)??{},type:String(e.properties.type)}}),Ot(e,r),Lt(e,r),r}function Wc(e){const t=Ht(e.children,"block"),n=[];let r=[];const i=()=>{r.length>0&&(n.push({type:"paragraph",children:r}),r=[])};for(const a of t)la(a.type)?r.push(a):(i(),n.push(a));i();const s={type:"listItem",children:n};return Ot(e,s),Lt(e,s),s}function b_(e){var a;const t=e.children.find(o=>o.type==="element"&&o.tagName.toLowerCase()==="code"),n=ci(t||e);let r;if((a=t==null?void 0:t.properties)!=null&&a.className){const o=Array.isArray(t.properties.className)?t.properties.className:[t.properties.className];for(const u of o){const l=String(u).match(/^language-(.+)$/);if(l){r=l[1];break}}}const i={type:"codeBlock",value:n};r&&(i.lang=r);const s=i;return Ot(e,s),Lt(e,s),s}function E_(e){const t=[];function n(i){for(const s of i){if(s.type!=="element")continue;const a=s.tagName.toLowerCase();a==="tr"?t.push(Gc(s)):(a==="thead"||a==="tbody"||a==="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 Ot(e,r),Lt(e,r),r}function Gc(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),Ot(e,r),Lt(e,r),r}function Vc(e,t){var o,u;const n=Ht(e.children,"block"),r=[];let i=[];const s=()=>{i.length>0&&(r.push({type:"paragraph",children:i}),i=[])};for(const l of n)la(l.type)?i.push(l):(s(),r.push(l));s();const a={type:"tableCell",children:r};return(o=e.properties)!=null&&o.colSpan&&Number(e.properties.colSpan)>1&&(a.colspan=Number(e.properties.colSpan)),(u=e.properties)!=null&&u.rowSpan&&Number(e.properties.rowSpan)>1&&(a.rowspan=Number(e.properties.rowSpan)),Ot(e,a),Lt(e,a),a}function y_(e){var n,r,i;const t={type:"image",url:Kc(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)),Ot(e,t),Lt(e,t),t}function Kc(e){const t=e.trim();if(!t)return"";if(/^(#|\/|\.\/|\.\.\/)/.test(t))return t;const n=t.match(/^([a-zA-Z][a-zA-Z0-9+.\-]*):/);if(!n)return t;const r=n[1].toLowerCase();return new Set(["http","https","mailto","tel","ftp","ftps"]).has(r)||r==="data"&&/^data:image\//i.test(t)?t:""}function T_(e){const n={type:"figCaption",children:Ht(e.children,"inline")};return Ot(e,n),n}const ua={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 __(e){return e in ua}function li(e){var i,s,a,o,u,l,d,h;const t=e.tagName.toLowerCase();let n;if(t==="a"){const p={url:Kc(String(((i=e.properties)==null?void 0:i.href)??""))};if((s=e.properties)!=null&&s.title&&(p.title=String(e.properties.title)),(a=e.properties)!=null&&a.id&&(p.id=String(e.properties.id)),(o=e.properties)!=null&&o.name&&(p.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&&(p.className=f)}for(const[f,g]of Object.entries(e.properties??{}))f.startsWith("data")&&f!=="data"&&!(f in p)&&(p[f]=g);n={type:"link",attrs:p}}else if(ua[t])n=ua[t]();else if(t==="span"){const p=(l=e.properties)!=null&&l.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,g=(h=e.properties)!=null&&h.id?String(e.properties.id):void 0;if(p.length>0||f||g){const b={};p.length>0&&(b.className=p),f&&(b.style=f),g&&(b.id=g);for(const[_,m]of Object.entries(e.properties??{}))_.startsWith("data")&&_!=="data"&&(b[_]=m);n={type:"custom",attrs:b}}}const r=Ht(e.children,"inline");return n?r.map(p=>w_(p,n)):r}function w_(e,t){if(e.type==="text"){const n=e,r=n.marks??[];return{...n,marks:[...r,t]}}return e}function ci(e){let t="";for(const n of e.children)n.type==="text"?t+=n.value:n.type==="element"&&(t+=ci(n));return t}function la(e){return["text","break","image","footnoteReference","inlineCode","inlineMath"].includes(e)}function Ot(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 Lt(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 k_=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],Xc={}.hasOwnProperty;function A_(e,t){const n=t||{};function r(i,...s){let a=r.invalid;const o=r.handlers;if(i&&Xc.call(i,e)){const u=String(i[e]);a=Xc.call(o,u)?o[u]:r.unknown}if(a)return a.call(this,i,...s)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const S_=/["&'<>`]/g,C_=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,x_=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,N_=/[|\\{}()[\]^$+*?.]/g,Qc=new WeakMap;function v_(e,t){if(e=e.replace(t.subset?I_(t.subset):S_,r),t.subset||t.escapeOnly)return e;return e.replace(C_,n).replace(x_,r);function n(i,s,a){return t.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,a.charCodeAt(s+2),t)}function r(i,s,a){return t.format(i.charCodeAt(0),a.charCodeAt(s+1),t)}}function I_(e){let t=Qc.get(e);return t||(t=O_(e),Qc.set(e,t)),t}function O_(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(N_,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const L_=/[\dA-Fa-f]/;function P_(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!L_.test(String.fromCharCode(t))?r:r+";"}const R_=/\d/;function D_(e,t,n){const r="&#"+String(e);return n&&t&&!R_.test(String.fromCharCode(t))?r:r+";"}const M_=["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"],ca={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:"€"},B_=["cent","copy","divide","gt","lt","not","para","times"],Zc={}.hasOwnProperty,da={};let di;for(di in ca)Zc.call(ca,di)&&(da[ca[di]]=di);const F_=/[^\dA-Za-z]/;function U_(e,t,n,r){const i=String.fromCharCode(e);if(Zc.call(da,i)){const s=da[i],a="&"+s;return n&&M_.includes(s)&&!B_.includes(s)&&(!r||t&&t!==61&&F_.test(String.fromCharCode(t)))?a:a+";"}return""}function H_(e,t,n){let r=P_(e,t,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=U_(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){const s=D_(e,t,n.omitOptionalSemicolons);s.length<r.length&&(r=s)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}function Nn(e,t){return v_(e,Object.assign({format:H_},t))}const z_=/^>|^->|<!--|-->|--!>|<!-$/g,$_=[">"],j_=["<",">"];function q_(e,t,n,r){return r.settings.bogusComments?"<?"+Nn(e.value,Object.assign({},r.settings.characterReferences,{subset:$_}))+">":"<!--"+e.value.replace(z_,i)+"-->";function i(s){return Nn(s,Object.assign({},r.settings.characterReferences,{subset:j_}))}}function Y_(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function Jc(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 W_=/[ \t\n\f\r]/g;function ha(e){return typeof e=="object"?e.type==="text"?ed(e.value):!1:ed(e)}function ed(e){return e.replace(W_,"")===""}const Fe=nd(1),td=nd(-1),G_=[];function nd(e){return t;function t(n,r,i){const s=n?n.children:G_;let a=(r||0)+e,o=s[a];if(!i)for(;o&&ha(o);)a+=e,o=s[a];return o}}const V_={}.hasOwnProperty;function rd(e){return t;function t(n,r,i){return V_.call(e,n.tagName)&&e[n.tagName](n,r,i)}}const fa=rd({body:X_,caption:pa,colgroup:pa,dd:ew,dt:J_,head:pa,html:K_,li:Z_,optgroup:tw,option:nw,p:Q_,rp:id,rt:id,tbody:iw,td:sd,tfoot:sw,th:sd,thead:rw,tr:aw});function pa(e,t,n){const r=Fe(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&ha(r.value.charAt(0)))}function K_(e,t,n){const r=Fe(n,t);return!r||r.type!=="comment"}function X_(e,t,n){const r=Fe(n,t);return!r||r.type!=="comment"}function Q_(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 Z_(e,t,n){const r=Fe(n,t);return!r||r.type==="element"&&r.tagName==="li"}function J_(e,t,n){const r=Fe(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function ew(e,t,n){const r=Fe(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function id(e,t,n){const r=Fe(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function tw(e,t,n){const r=Fe(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function nw(e,t,n){const r=Fe(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function rw(e,t,n){const r=Fe(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function iw(e,t,n){const r=Fe(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function sw(e,t,n){return!Fe(n,t)}function aw(e,t,n){const r=Fe(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function sd(e,t,n){const r=Fe(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const ow=rd({body:cw,colgroup:dw,head:lw,html:uw,tbody:hw});function uw(e){const t=Fe(e,-1);return!t||t.type!=="comment"}function lw(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 cw(e){const t=Fe(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&ha(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function dw(e,t,n){const r=td(n,t),i=Fe(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&fa(r,n.children.indexOf(r),n)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function hw(e,t,n){const r=td(n,t),i=Fe(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&fa(r,n.children.indexOf(r),n)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const hi={name:[[`
|
|
13
|
+
--`+new Array((n||t.length)+1).join("-")+"^"})}const ob=9,ub=10,lb=12,cb=13,db=32,Wu=new Uint8Array(128).map((e,t)=>/[a-zA-Z0-9\-]/.test(String.fromCharCode(t))?1:0);class hb{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&&Wu[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!==cb&&n!==ub&&n!==lb&&n!==db&&n!==ob)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 ab(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||Wu[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 fb=9,pb=10,mb=12,gb=13,bb=32,Gu=33,Ls=35,Vu=38,Xr=39,Ku=40,Xu=41,Qu=42,Ps=43,Rs=44,Zu=45,Ds=60,Ms=62,Qr=63,Eb=64,or=91,Sn=93,Zr=123,Ju=124,Bs=125,el=8734,tl={" ":1,"&&":2,"||":3,"|":4};function nl(e){let t=null,n=null;return e.eat(Zr),e.skipWs(),t=e.scanNumber(e),e.skipWs(),e.charCode()===Rs?(e.pos++,e.skipWs(),e.charCode()!==Bs&&(n=e.scanNumber(e),e.skipWs())):n=t,e.eat(Bs),{min:Number(t),max:n?Number(n):0}}function yb(e){let t=null,n=!1;switch(e.charCode()){case Qu:e.pos++,t={min:0,max:0};break;case Ps:e.pos++,t={min:1,max:0};break;case Qr:e.pos++,t={min:0,max:1};break;case Ls:e.pos++,n=!0,e.charCode()===Zr?t=nl(e):e.charCode()===Qr?(e.pos++,t={min:0,max:0}):t={min:1,max:0};break;case Zr:t=nl(e);break;default:return null}return{type:"Multiplier",comma:n,min:t.min,max:t.max,term:null}}function Ut(e,t){const n=yb(e);return n!==null?(n.term=t,e.charCode()===Ls&&e.charCodeAt(e.pos-1)===Ps||e.charCode()===Qr&&e.charCodeAt(e.pos-1)===Bs?Ut(e,n):n):t}function Fs(e){const t=e.peek();return t===""?null:Ut(e,{type:"Token",value:t})}function Tb(e){let t;return e.eat(Ds),e.eat(Xr),t=e.scanWord(),e.eat(Xr),e.eat(Ms),Ut(e,{type:"Property",name:t})}function _b(e){let t=null,n=null,r=1;return e.eat(or),e.charCode()===Zu&&(e.peek(),r=-1),r==-1&&e.charCode()===el?e.peek():(t=r*Number(e.scanNumber(e)),e.isNameCharCode()&&(t+=e.scanWord())),e.skipWs(),e.eat(Rs),e.skipWs(),e.charCode()===el?e.peek():(r=1,e.charCode()===Zu&&(e.peek(),r=-1),n=r*Number(e.scanNumber(e)),e.isNameCharCode()&&(n+=e.scanWord())),e.eat(Sn),{type:"Range",min:t,max:n}}function wb(e){let t,n=null;if(e.eat(Ds),t=e.scanWord(),t==="boolean-expr"){e.eat(or);const r=Jr(e,Sn);return e.eat(Sn),e.eat(Ms),Ut(e,{type:"Boolean",term:r.terms.length===1?r.terms[0]:r})}return e.charCode()===Ku&&e.nextCharCode()===Xu&&(e.pos+=2,t+="()"),e.charCodeAt(e.findWsEnd(e.pos))===or&&(e.skipWs(),n=_b(e)),e.eat(Ms),Ut(e,{type:"Type",name:t,opts:n})}function kb(e){const t=e.scanWord();return e.charCode()===Ku?(e.pos++,{type:"Function",name:t}):Ut(e,{type:"Keyword",name:t})}function Ab(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)=>tl[i]-tl[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 Jr(e,t=-1){const n=Object.create(null),r=[];let i=null,s=e.pos,o=!1;for(;e.charCode()!==t;){let a=o?Jr(e,Xu):Cb(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:Ab(r,n)||" ",disallowEmpty:!1,explicit:!1}}function Sb(e){let t;return e.eat(or),t=Jr(e,Sn),e.eat(Sn),t.explicit=!0,e.charCode()===Gu&&(e.pos++,t.disallowEmpty=!0),t}function Cb(e){let t=e.charCode();switch(t){case Sn:break;case or:return Ut(e,Sb(e));case Ds:return e.nextCharCode()===Xr?Tb(e):wb(e);case Ju:return{type:"Combinator",value:e.substringToPos(e.pos+(e.nextCharCode()===Ju?2:1))};case Vu:return e.pos++,e.eat(Vu),{type:"Combinator",value:"&&"};case Rs:return e.pos++,{type:"Comma"};case Xr:return Ut(e,{type:"String",value:e.scanString()});case bb:case fb:case pb:case gb:case mb:return{type:"Spaces",value:e.scanSpaces()};case Eb:return t=e.nextCharCode(),e.isNameCharCode(t)?(e.pos++,{type:"AtKeyword",name:e.scanWord()}):Fs(e);case Qu:case Ps:case Qr:case Ls:case Gu:break;case Zr:if(t=e.nextCharCode(),t<48||t>57)return Fs(e);break;default:return e.isNameCharCode(t)?kb(e):Fs(e)}}function rl(e){const t=new hb(e),n=Jr(t);return t.pos!==e.length&&t.error("Unexpected input"),n.terms.length===1&&n.terms[0].type==="Group"?n.terms[0]:n}const ur=function(){};function il(e){return typeof e=="function"?e:ur}function xb(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=ur,s=ur;if(typeof t=="function"?i=t:t&&(i=il(t.enter),s=il(t.leave)),i===ur&&s===ur)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");r(e)}const Nb={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 vb(e){const t=[];return Ur(e,(n,r,i)=>t.push({type:n,value:e.slice(r,i),node:null})),t}function Ib(e,t){return typeof e=="string"?vb(e):t.generate(e,Nb)}const ke={type:"Match"},Se={type:"Mismatch"},Us={type:"DisallowEmpty"},Ob=40,Lb=41;function Qe(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 sl(e){return e.length>2&&e.charCodeAt(e.length-2)===Ob&&e.charCodeAt(e.length-1)===Lb}function al(e){return e.type==="Keyword"||e.type==="AtKeyword"||e.type==="Function"||e.type==="Type"&&sl(e.name)}function Qt(e,t=" ",n=!1){return{type:"Group",terms:e,combinator:t,disallowEmpty:!1,explicit:n}}function lr(e,t,n=new Set){if(!n.has(e))switch(n.add(e),e.type){case"If":e.match=lr(e.match,t,n),e.then=lr(e.then,t,n),e.else=lr(e.else,t,n);break;case"Type":return t[e.name]||e}return e}function Hs(e,t,n){switch(e){case" ":{let r=ke;for(let i=t.length-1;i>=0;i--){const s=t[i];r=Qe(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(al(o)&&(i===null&&s>0&&al(t[s-1])&&(i=Object.create(null),r=Qe({type:"Enum",map:i},ke,r)),i!==null)){const a=(sl(o.name)?o.name.slice(0,-1):o.name).toLowerCase();if(!(a in i)){i[a]=o;continue}}i=null,r=Qe(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=Hs(e,t.filter(function(a){return a!==s}),!1):o=ke,r=Qe(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=Hs(e,t.filter(function(a){return a!==s}),!0):o=ke,r=Qe(s,o,r)}return r}}}function Pb(e){let t=ke,n=Cn(e.term);if(e.max===0)n=Qe(n,Us,Se),t=Qe(n,null,Se),t.then=Qe(ke,ke,t),e.comma&&(t.then.else=Qe({type:"Comma",syntax:e},t,Se));else for(let r=e.min||1;r<=e.max;r++)e.comma&&t!==ke&&(t=Qe({type:"Comma",syntax:e},t,Se)),t=Qe(n,Qe(ke,ke,t),Se);if(e.min===0)t=Qe(ke,ke,t);else for(let r=0;r<e.min-1;r++)e.comma&&t!==ke&&(t=Qe({type:"Comma",syntax:e},t,Se)),t=Qe(n,t,Se);return t}function Cn(e){if(typeof e=="function")return{type:"Generic",fn:e};switch(e.type){case"Group":{let t=Hs(e.combinator,e.terms.map(Cn),!1);return e.disallowEmpty&&(t=Qe(t,Us,Se)),t}case"Multiplier":return Pb(e);case"Boolean":{const t=Cn(e.term),n=Cn(Qt([Qt([{type:"Keyword",name:"not"},{type:"Type",name:"!boolean-group"}]),Qt([{type:"Type",name:"!boolean-group"},Qt([{type:"Multiplier",comma:!1,min:0,max:0,term:Qt([{type:"Keyword",name:"and"},{type:"Type",name:"!boolean-group"}])},{type:"Multiplier",comma:!1,min:0,max:0,term:Qt([{type:"Keyword",name:"or"},{type:"Type",name:"!boolean-group"}])}],"|")])],"|")),r=Cn(Qt([{type:"Type",name:"!term"},Qt([{type:"Token",value:"("},{type:"Type",name:"!self"},{type:"Token",value:")"}]),{type:"Type",name:"general-enclosed"}],"|"));return lr(r,{"!term":t,"!self":n}),lr(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 ei(e,t){return typeof e=="string"&&(e=rl(e)),{type:"MatchGraph",match:Cn(e),syntax:t||null,source:e}}const{hasOwnProperty:ol}=Object.prototype,Rb=0,Db=1,zs=2,ul=3,ll="Match",Mb="Mismatch",Bb="Maximum iteration number exceeded (please fill an issue on https://github.com/csstree/csstree/issues)",cl=15e3;function Fb(e){let t=null,n=null,r=e;for(;r!==null;)n=r.prev,r.prev=t,t=r,r=n;return t}function $s(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 dl(e){return e===null?!0:e.type===st||e.type===pe||e.type===we||e.type===ot||e.type===$e||Ub(e)}function hl(e){return e===null?!0:e.type===de||e.type===ft||e.type===ut||e.type===ge&&e.value==="/"}function Hb(e,t,n){function r(){do E++,m=E<e.length?e[E]:null;while(m!==null&&(m.type===Le||m.type===Ye))}function i(D){const B=E+D;return B<e.length?e[B]:null}function s(D,B){return{nextState:D,matchStack:I,syntaxStack:h,thenStack:p,tokenIndex:E,prev:B}}function o(D){p={nextState:D,matchStack:I,syntaxStack:h,prev:p}}function a(D){f=s(D,f)}function u(){I={type:Db,syntax:t.syntax,token:m,prev:I},r(),g=null,E>S&&(S=E)}function l(){h={syntax:t.syntax,opts:t.syntax.opts||h!==null&&h.opts||null,prev:h},I={type:zs,syntax:t.syntax,token:I.token,prev:I}}function d(){I.type===zs?I=I.prev:I={type:ul,syntax:h.syntax,token:I.token,prev:I},h=h.prev}let h=null,p=null,f=null,g=null,b=0,_=null,m=null,E=-1,S=0,I={type:Rb,syntax:null,token:null,prev:null};for(r();_===null&&++b<cl;)switch(t.type){case"Match":if(p===null){if(m!==null&&(E!==e.length-1||m.value!=="\\0"&&m.value!=="\\9")){t=Se;break}_=ll;break}if(t=p.nextState,t===Us)if(p.matchStack===I){t=Se;break}else t=ke;for(;p.syntaxStack!==h;)d();p=p.prev;break;case"Mismatch":if(g!==null&&g!==!1)(f===null||E>f.tokenIndex)&&(f=g,g=!1);else if(f===null){_=Mb;break}t=f.nextState,p=f.thenStack,h=f.syntaxStack,I=f.matchStack,E=f.tokenIndex,m=E<e.length?e[E]: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 C=t.syntax.terms;if(t.index===C.length){if(t.mask===0||t.syntax.all){t=Se;break}t=ke;break}if(t.mask===(1<<C.length)-1){t=ke;break}for(;t.index<C.length;t.index++){const x=1<<t.index;if((t.mask&x)===0){a(t),o({type:"AddMatchOnce",syntax:t.syntax,mask:t.mask|x}),t=C[t.index++];break}}break}case"AddMatchOnce":t={type:"MatchOnceBuffer",syntax:t.syntax,index:0,mask:t.mask};break;case"Enum":if(m!==null){let C=m.value.toLowerCase();if(C.indexOf("\\")!==-1&&(C=C.replace(/\\[09].*$/,"")),ol.call(t.map,C)){t=t.map[C];break}}t=Se;break;case"Generic":{const C=h!==null?h.opts:null,x=E+Math.floor(t.fn(m,i,C));if(!isNaN(x)&&x>E){for(;E<x;)u();t=ke}else t=Se;break}case"Type":case"Property":{const C=t.type==="Type"?"types":"properties",x=ol.call(n,C)?n[C][t.name]:null;if(!x||!x.match)throw new Error("Bad syntax reference: "+(t.type==="Type"?"<"+t.name+">":"<'"+t.name+"'>"));if(g!==!1&&m!==null&&t.type==="Type"&&(t.name==="custom-ident"&&m.type===ne||t.name==="length"&&m.value==="0")){g===null&&(g=s(t,f)),t=Se;break}l(),t=x.matchRef||x.match;break}case"Keyword":{const C=t.name;if(m!==null){let x=m.value;if(x.indexOf("\\")!==-1&&(x=x.replace(/\\[09].*$/,"")),$s(x,C)){u(),t=ke;break}}t=Se;break}case"AtKeyword":case"Function":if(m!==null&&$s(m.value,t.name)){u(),t=ke;break}t=Se;break;case"Token":if(m!==null&&m.value===t.value){u(),t=ke;break}t=Se;break;case"Comma":m!==null&&m.type===st?dl(I.token)?t=Se:(u(),t=hl(m)?Se:ke):t=dl(I.token)||hl(m)?ke:Se;break;case"String":let D="",B=E;for(;B<e.length&&D.length<t.value.length;B++)D+=e[B].value;if($s(D,t.value)){for(;E<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 "+cl+" iterations"),_=Bb,I=null;break;case ll:for(;h!==null;)d();break;default:I=null}return{tokens:e,reason:_,iterations:b,match:I,longestMatch:S}}function fl(e,t,n){const r=Hb(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=Fb(i).prev;i!==null;){switch(i.type){case zs:s.match.push(s={syntax:i.syntax,match:[]}),o.push(s);break;case ul: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 pl(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 zb(e,t){return js(this,e,n=>n.type==="Type"&&n.name===t)}function $b(e,t){return js(this,e,n=>n.type==="Property"&&n.name===t)}function jb(e){return js(this,e,t=>t.type==="Keyword")}function js(e,t,n){const r=pl.call(e,t);return r===null?!1:r.some(n)}const qb=Object.freeze(Object.defineProperty({__proto__:null,getTrace:pl,isKeyword:jb,isProperty:$b,isType:zb},Symbol.toStringTag,{value:"Module"}));function ml(e){return"node"in e?e.node:ml(e.match[0])}function gl(e){return"node"in e?e.node:gl(e.match[e.match.length-1])}function bl(e,t,n,r,i){function s(a){if(a.syntax!==null&&a.syntax.type===r&&a.syntax.name===i){const u=ml(a),l=gl(a);e.syntax.walk(t,function(d,h,p){if(d===u){const f=new je;do{if(f.appendData(h.data),h.data===l)break;h=h.next}while(h!==null);o.push({parent:p,nodes:f})}})}Array.isArray(a.match)&&a.match.forEach(s)}const o=[];return n.matched!==null&&s(n.matched),o}const{hasOwnProperty:cr}=Object.prototype;function qs(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&e>=0}function El(e){return!!e&&qs(e.offset)&&qs(e.line)&&qs(e.column)}function Yb(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(cr.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(!El(r.loc.start))s+=".start";else if(!El(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 je)}}}else i(r,"Unknown field `"+s+"` for "+e+" node type");o||i(r,"Bad value for `"+e+"."+s+"`")}}for(const s in t)cr.call(t,s)&&cr.call(r,s)===!1&&i(r,"Field `"+e+"."+s+"` is missed")}}function yl(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<"+(yl(i,t)||"any")+">");else throw new Error("Wrong value `"+i+"` in `"+t+"` structure definition")}return n.join(" | ")}function Wb(e,t){const n=t.structure,r={type:String,loc:!0},i={type:'"'+e+'"'};for(const s in n){if(cr.call(n,s)===!1)continue;const o=r[s]=Array.isArray(n[s])?n[s].slice():[n[s]];i[s]=yl(o,e+"."+s)}return{docs:i,check:Yb(e,r)}}function Gb(e){const t={};if(e.node){for(const n in e.node)if(cr.call(e.node,n)){const r=e.node[n];if(r.structure)t[n]=Wb(n,r);else throw new Error("Missed `structure` field in `"+n+"` node type definition")}}return t}function Ys(e,t,n){const r={};for(const i in e)e[i].syntax&&(r[i]=n?e[i].syntax:Es(e[i].syntax,{compact:t}));return r}function Vb(e,t,n){const r={};for(const[i,s]of Object.entries(e))r[i]={prelude:s.prelude&&(n?s.prelude.syntax:Es(s.prelude.syntax,{compact:t})),descriptors:s.descriptors&&Ys(s.descriptors,t,n)};return r}function Kb(e){for(let t=0;t<e.length;t++)if(e[t].value.toLowerCase()==="var(")return!0;return!1}function Xb(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,...qb}}function xn(e,t,n,r){const i=Ib(n,e.syntax);let s;return Kb(i)?kt(null,new Error("Matching for a tree with var() is not supported")):(r&&(s=fl(i,e.cssWideKeywordsSyntax,e)),(!r||!s.match)&&(s=fl(i,t.match,e),!s.match)?kt(null,new Og(s.reason,t.syntax,n,s),s.iterations):kt(s.match,null,s.iterations))}class Tl{constructor(t,n,r){if(this.cssWideKeywords=_s,this.syntax=n,this.generic=!1,this.units={...Yu},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(Yu))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(sb(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=ei(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=ei(t,s):(typeof t=="string"?Object.defineProperty(o,"syntax",{get(){return Object.defineProperty(o,"syntax",{value:rl(t)}),o.syntax}}):o.syntax=t,Object.defineProperty(o,"match",{get(){return Object.defineProperty(o,"match",{value:ei(o.syntax,s)}),o.match}}),n==="Property"&&Object.defineProperty(o,"matchRef",{get(){const a=o.syntax,u=Xb(a)?ei({...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 rr("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&&!xn(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=ys(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 rr("Unknown at-rule descriptor",n)}checkPropertyName(t){if(!this.getProperty(t))return new rr("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?xn(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=ys(n);return xn(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(Du(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):xn(this,this.getProperty(t),n,!0)}matchType(t,n){const r=this.getType(t);return r?xn(this,r,n,!1):kt(null,new rr("Unknown type",t))}match(t,n){return typeof t!="string"&&(!t||!t.type)?kt(null,new rr("Bad syntax")):((typeof t=="string"||!t.match)&&(t=this.createDescriptor(t,"Type","anonymous")),xn(this,t,n,!1))}findValueFragments(t,n,r,i){return bl(this,n,this.matchProperty(t,n),r,i)}findDeclarationValueFragments(t,n,r){return bl(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=ys(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=Du(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,l){return l?`<${u}>`:`<'${u}'>`}function n(u,l,d,h){if(d.has(l))return d.get(l);d.set(l,!1),h.syntax!==null&&xb(h.syntax,function(p){if(p.type!=="Type"&&p.type!=="Property")return;const f=p.type==="Type"?u.types:u.properties,g=p.type==="Type"?i:s;hasOwnProperty.call(f,p.name)?n(u,p.name,g,f[p.name])&&(r.push(`${t(l,d===i)} used broken syntax definition ${t(p.name,p.type==="Type")}`),d.set(l,!0)):(r.push(`${t(l,d===i)} used missed syntax definition ${t(p.name,p.type==="Type")}`),d.set(l,!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:Ys(this.types,!n,t),properties:Ys(this.properties,!n,t),atrules:Vb(this.atrules,!n,t)}}toString(){return JSON.stringify(this.dump())}}function Ws(e,t){return typeof t=="string"&&/^\s*\|/.test(t)?typeof e=="string"?e+t:t.replace(/^\s*\|\s*/,""):t||null}function Qb(e,t){const n=Object.create(null);for(const r of Object.keys(e))t.includes(r)&&(n[r]=e[r]);return n}function Gs(e,t,n){const r={...e};for(const[i,s]of Object.entries(t))r[i]={...r[i],...n?Qb(s,n):s};return r}function Vs(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?Ws(u.prelude,o.prelude):u.prelude||null;for(const[l,d]of Object.entries(o.descriptors||{}))u.descriptors[l]=d?Ws(u.descriptors[l],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]=Ws(n[r][s],o);break;case"parseContext":n[r]={...e[r],...i};break;case"scope":case"features":n[r]=Gs(e[r],i);break;case"atrule":case"pseudo":n[r]=Gs(e[r],i,["parse"]);break;case"node":n[r]=Gs(e[r],i,["name","structure","parse","generate","walkContext"]);break}return n}function _l(e){const t=ag(e),n=Sg(e),r=_g(e),{fromPlainObject:i,toPlainObject:s}=wg(n),o={lexer:null,createLexer:a=>new Tl(a,o,o.lexer.structure),tokenize:Ur,parse:t,generate:r,walk:n,find:n.find,findLast:n.findLast,findAll:n.findAll,fromPlainObject:i,toPlainObject:s,fork(a){const u=Vs({},e);return _l(typeof a=="function"?a(u):Vs(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 Zb=e=>_l(Vs({},e)),Jb={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"}}}},It=43,lt=45,ti=110,un=!0,e1=!1;function ni(e,t){let n=this.tokenStart+e;const r=this.charCodeAt(n);for((r===It||r===lt)&&(t&&this.error("Number sign is not allowed"),n++);n<this.tokenEnd;n++)We(this.charCodeAt(n))||this.error("Integer is expected",n)}function Nn(e){return ni.call(this,0,e)}function Zt(e,t){if(!this.cmpChar(this.tokenStart+e,t)){let n="";switch(t){case ti:n="N is expected";break;case lt:n="HyphenMinus is expected";break}this.error(n,this.tokenStart+e)}}function Ks(){let e=0,t=0,n=this.tokenType;for(;n===Le||n===Ye;)n=this.lookupType(++e);if(n!==fe)if(this.isDelim(It,e)||this.isDelim(lt,e)){t=this.isDelim(It,e)?It:lt;do n=this.lookupType(++e);while(n===Le||n===Ye);n!==fe&&(this.skip(e),Nn.call(this,un))}else return null;return e>0&&this.skip(e),t===0&&(n=this.charCodeAt(this.tokenStart),n!==It&&n!==lt&&this.error("Number sign is expected")),Nn.call(this,t!==0),t===lt?"-"+this.consume(fe):this.consume(fe)}const t1="AnPlusB",n1={a:[String,null],b:[String,null]};function wl(){const e=this.tokenStart;let t=null,n=null;if(this.tokenType===fe)Nn.call(this,e1),n=this.consume(fe);else if(this.tokenType===ne&&this.cmpChar(this.tokenStart,lt))switch(t="-1",Zt.call(this,1,ti),this.tokenEnd-this.tokenStart){case 2:this.next(),n=Ks.call(this);break;case 3:Zt.call(this,2,lt),this.next(),this.skipSC(),Nn.call(this,un),n="-"+this.consume(fe);break;default:Zt.call(this,2,lt),ni.call(this,3,un),this.next(),n=this.substrToCursor(e+2)}else if(this.tokenType===ne||this.isDelim(It)&&this.lookupType(1)===ne){let r=0;switch(t="1",this.isDelim(It)&&(r=1,this.next()),Zt.call(this,0,ti),this.tokenEnd-this.tokenStart){case 1:this.next(),n=Ks.call(this);break;case 2:Zt.call(this,1,lt),this.next(),this.skipSC(),Nn.call(this,un),n="-"+this.consume(fe);break;default:Zt.call(this,1,lt),ni.call(this,2,un),this.next(),n=this.substrToCursor(e+r+1)}}else if(this.tokenType===be){const r=this.charCodeAt(this.tokenStart),i=r===It||r===lt;let s=this.tokenStart+i;for(;s<this.tokenEnd&&We(this.charCodeAt(s));s++);s===this.tokenStart+i&&this.error("Integer is expected",this.tokenStart+i),Zt.call(this,s-this.tokenStart,ti),t=this.substring(e,s),s+1===this.tokenEnd?(this.next(),n=Ks.call(this)):(Zt.call(this,s-this.tokenStart+1,lt),s+2===this.tokenEnd?(this.next(),this.skipSC(),Nn.call(this,un),n="-"+this.consume(fe)):(ni.call(this,s-this.tokenStart+2,un),this.next(),n=this.substrToCursor(s+1)))}else this.error();return t!==null&&t.charCodeAt(0)===It&&(t=t.substr(1)),n!==null&&n.charCodeAt(0)===It&&(n=n.substr(1)),{type:"AnPlusB",loc:this.getLocation(e,this.tokenStart),a:t,b:n}}function r1(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 i1=Object.freeze(Object.defineProperty({__proto__:null,generate:r1,name:t1,parse:wl,structure:n1},Symbol.toStringTag,{value:"Module"}));function kl(){return this.Raw(this.consumeUntilLeftCurlyBracketOrSemicolon,!0)}function s1(){for(let e=1,t;t=this.lookupType(e);e++){if(t===ut)return!0;if(t===$e||t===Be)return!1}return!1}const a1="Atrule",o1="atrule",u1={name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]};function Al(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!==$e&&this.tokenType!==Xe&&(this.parseAtrulePrelude?i=this.parseWithFallback(this.AtrulePrelude.bind(this,n,e),kl):i=kl.call(this,this.tokenIndex),this.skipSC()),this.tokenType){case Xe:this.next();break;case $e:hasOwnProperty.call(this.atrule,r)&&typeof this.atrule[r].block=="function"?s=this.atrule[r].block.call(this,e):s=this.Block(s1.call(this));break}return{type:"Atrule",loc:this.getLocation(t,this.tokenStart),name:n,prelude:i,block:s}}function l1(e){this.token(Be,"@"+e.name),e.prelude!==null&&this.node(e.prelude),e.block?this.node(e.block):this.token(Xe,";")}const c1=Object.freeze(Object.defineProperty({__proto__:null,generate:l1,name:a1,parse:Al,structure:u1,walkContext:o1},Symbol.toStringTag,{value:"Module"})),d1="AtrulePrelude",h1="atrulePrelude",f1={children:[[]]};function Sl(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!==$e&&this.tokenType!==Xe&&this.error("Semicolon or block is expected"),{type:"AtrulePrelude",loc:this.getLocationFromList(t),children:t}}function p1(e){this.children(e)}const m1=Object.freeze(Object.defineProperty({__proto__:null,generate:p1,name:d1,parse:Sl,structure:f1,walkContext:h1},Symbol.toStringTag,{value:"Module"})),g1=36,Cl=42,ri=61,b1=94,Xs=124,E1=126;function y1(){this.eof&&this.error("Unexpected end of input");const e=this.tokenStart;let t=!1;return this.isDelim(Cl)?(t=!0,this.next()):this.isDelim(Xs)||this.eat(ne),this.isDelim(Xs)?this.charCodeAt(this.tokenStart+1)!==ri?(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 T1(){const e=this.tokenStart,t=this.charCodeAt(e);return t!==ri&&t!==E1&&t!==b1&&t!==g1&&t!==Cl&&t!==Xs&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.next(),t!==ri&&(this.isDelim(ri)||this.error("Equal sign is expected"),this.next()),this.substrToCursor(e)}const _1="AttributeSelector",w1={name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]};function xl(){const e=this.tokenStart;let t,n=null,r=null,i=null;return this.eat(ot),this.skipSC(),t=y1.call(this),this.skipSC(),this.tokenType!==ft&&(this.tokenType!==ne&&(n=T1.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 k1(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 A1=Object.freeze(Object.defineProperty({__proto__:null,generate:k1,name:_1,parse:xl,structure:w1},Symbol.toStringTag,{value:"Module"})),S1=38;function Nl(){return this.Raw(null,!0)}function vl(){return this.parseWithFallback(this.Rule,Nl)}function Il(){return this.Raw(this.consumeUntilSemicolonIncluded,!0)}function C1(){if(this.tokenType===Xe)return Il.call(this,this.tokenIndex);const e=this.parseWithFallback(this.Declaration,Il);return this.tokenType===Xe&&this.next(),e}const x1="Block",N1="block",v1={children:[["Atrule","Rule","Declaration"]]};function Ol(e){const t=e?C1:vl,n=this.tokenStart;let r=this.createList();this.eat($e);e:for(;!this.eof;)switch(this.tokenType){case ut:break e;case Le:case Ye:this.next();break;case Be:r.push(this.parseWithFallback(this.Atrule.bind(this,e),Nl));break;default:e&&this.isDelim(S1)?r.push(vl.call(this)):r.push(t.call(this))}return this.eof||this.eat(ut),{type:"Block",loc:this.getLocation(n,this.tokenStart),children:r}}function I1(e){this.token($e,"{"),this.children(e,t=>{t.type==="Declaration"&&this.token(Xe,";")}),this.token(ut,"}")}const O1=Object.freeze(Object.defineProperty({__proto__:null,generate:I1,name:x1,parse:Ol,structure:v1,walkContext:N1},Symbol.toStringTag,{value:"Module"})),L1="Brackets",P1={children:[[]]};function Ll(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 D1=Object.freeze(Object.defineProperty({__proto__:null,generate:R1,name:L1,parse:Ll,structure:P1},Symbol.toStringTag,{value:"Module"})),M1="CDC",B1=[];function Pl(){const e=this.tokenStart;return this.eat(it),{type:"CDC",loc:this.getLocation(e,this.tokenStart)}}function F1(){this.token(it,"-->")}const U1=Object.freeze(Object.defineProperty({__proto__:null,generate:F1,name:M1,parse:Pl,structure:B1},Symbol.toStringTag,{value:"Module"})),H1="CDO",z1=[];function Rl(){const e=this.tokenStart;return this.eat(Zn),{type:"CDO",loc:this.getLocation(e,this.tokenStart)}}function $1(){this.token(Zn,"<!--")}const j1=Object.freeze(Object.defineProperty({__proto__:null,generate:$1,name:H1,parse:Rl,structure:z1},Symbol.toStringTag,{value:"Module"})),q1=46,Y1="ClassSelector",W1={name:String};function Dl(){return this.eatDelim(q1),{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 V1=Object.freeze(Object.defineProperty({__proto__:null,generate:G1,name:Y1,parse:Dl,structure:W1},Symbol.toStringTag,{value:"Module"})),K1=43,Ml=47,X1=62,Q1=126,Z1="Combinator",J1={name:String};function Bl(){const e=this.tokenStart;let t;switch(this.tokenType){case Le:t=" ";break;case ge:switch(this.charCodeAt(this.tokenStart)){case X1:case K1:case Q1:this.next();break;case Ml:this.next(),this.eatIdent("deep"),this.eatDelim(Ml);break;default:this.error("Combinator is expected")}t=this.substrToCursor(e);break}return{type:"Combinator",loc:this.getLocation(e,this.tokenStart),name:t}}function eE(e){this.tokenize(e.name)}const tE=Object.freeze(Object.defineProperty({__proto__:null,generate:eE,name:Z1,parse:Bl,structure:J1},Symbol.toStringTag,{value:"Module"})),nE=42,rE=47,iE="Comment",sE={value:String};function Fl(){const e=this.tokenStart;let t=this.tokenEnd;return this.eat(Ye),t-e+2>=2&&this.charCodeAt(t-2)===nE&&this.charCodeAt(t-1)===rE&&(t-=2),{type:"Comment",loc:this.getLocation(e,this.tokenStart),value:this.substring(e+2,t)}}function aE(e){this.token(Ye,"/*"+e.value+"*/")}const oE=Object.freeze(Object.defineProperty({__proto__:null,generate:aE,name:iE,parse:Fl,structure:sE},Symbol.toStringTag,{value:"Module"})),uE=new Set([Ke,de,Gt]),lE="Condition",cE={kind:String,children:[["Identifier","Feature","FeatureFunction","FeatureRange","SupportsDeclaration"]]};function Ul(e){return this.lookupTypeNonSC(1)===ne&&uE.has(this.lookupTypeNonSC(2))?this.Feature(e):this.FeatureRange(e)}const dE={media:Ul,container:Ul,supports(){return this.SupportsDeclaration()}};function Hl(e="media"){const t=this.createList();e:for(;!this.eof;)switch(this.tokenType){case Ye:case Le:this.next();continue;case ne:t.push(this.Identifier());break;case we:{let n=this.parseWithFallback(()=>dE[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 hE(e){e.children.forEach(t=>{t.type==="Condition"?(this.token(we,"("),this.node(t),this.token(de,")")):this.node(t)})}const fE=Object.freeze(Object.defineProperty({__proto__:null,generate:hE,name:lE,parse:Hl,structure:cE},Symbol.toStringTag,{value:"Module"})),zl=33,pE=35,mE=36,gE=38,bE=42,EE=43,$l=47;function yE(){return this.Raw(this.consumeUntilExclamationMarkOrSemicolon,!0)}function TE(){return this.Raw(this.consumeUntilExclamationMarkOrSemicolon,!1)}function _E(){const e=this.tokenIndex,t=this.Value();return t.type!=="Raw"&&this.eof===!1&&this.tokenType!==Xe&&this.isDelim(zl)===!1&&this.isBalanceEdge(e)===!1&&this.error(),t}const wE="Declaration",kE="declaration",AE={important:[Boolean,String],property:String,value:["Value","Raw"]};function jl(){const e=this.tokenStart,t=this.tokenIndex,n=CE.call(this),r=Ts(n),i=r?this.parseCustomProperty:this.parseValue,s=r?TE:yE;let o=!1,a;this.skipSC(),this.eat(Ke);const u=this.tokenIndex;if(r||this.skipSC(),i?a=this.parseWithFallback(_E,s):a=s.call(this,this.tokenIndex),r&&a.type==="Value"&&a.children.isEmpty){for(let l=u-this.tokenIndex;l<=0;l++)if(this.lookupType(l)===Le){a.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}return this.isDelim(zl)&&(o=xE.call(this),this.skipSC()),this.eof===!1&&this.tokenType!==Xe&&this.isBalanceEdge(t)===!1&&this.error(),{type:"Declaration",loc:this.getLocation(e,this.tokenStart),important:o,property:n,value:a}}function SE(e){this.token(ne,e.property),this.token(Ke,":"),this.node(e.value),e.important&&(this.token(ge,"!"),this.token(ne,e.important===!0?"important":e.important))}function CE(){const e=this.tokenStart;if(this.tokenType===ge)switch(this.charCodeAt(this.tokenStart)){case bE:case mE:case EE:case pE:case gE:this.next();break;case $l:this.next(),this.isDelim($l)&&this.next();break}return this.tokenType===xe?this.eat(xe):this.eat(ne),this.substrToCursor(e)}function xE(){this.eat(ge),this.skipSC();const e=this.consume(ne);return e==="important"?!0:e}const NE=Object.freeze(Object.defineProperty({__proto__:null,generate:SE,name:wE,parse:jl,structure:AE,walkContext:kE},Symbol.toStringTag,{value:"Module"})),vE=38;function Qs(){return this.Raw(this.consumeUntilSemicolonIncluded,!0)}const IE="DeclarationList",OE={children:[["Declaration","Atrule","Rule"]]};function ql(){const e=this.createList();for(;!this.eof;)switch(this.tokenType){case Le:case Ye:case Xe:this.next();break;case Be:e.push(this.parseWithFallback(this.Atrule.bind(this,!0),Qs));break;default:this.isDelim(vE)?e.push(this.parseWithFallback(this.Rule,Qs)):e.push(this.parseWithFallback(this.Declaration,Qs))}return{type:"DeclarationList",loc:this.getLocationFromList(e),children:e}}function LE(e){this.children(e,t=>{t.type==="Declaration"&&this.token(Xe,";")})}const PE=Object.freeze(Object.defineProperty({__proto__:null,generate:LE,name:IE,parse:ql,structure:OE},Symbol.toStringTag,{value:"Module"})),RE="Dimension",DE={value:String,unit:String};function Yl(){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 ME(e){this.token(be,e.value+e.unit)}const BE=Object.freeze(Object.defineProperty({__proto__:null,generate:ME,name:RE,parse:Yl,structure:DE},Symbol.toStringTag,{value:"Module"})),FE=47,UE="Feature",HE={kind:String,name:String,value:["Identifier","Number","Dimension","Ratio","Function",null]};function Wl(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(Ke),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(FE)&&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 zE(e){this.token(we,"("),this.token(ne,e.name),e.value!==null&&(this.token(Ke,":"),this.node(e.value)),this.token(de,")")}const $E=Object.freeze(Object.defineProperty({__proto__:null,generate:zE,name:UE,parse:Wl,structure:HE},Symbol.toStringTag,{value:"Module"})),jE="FeatureFunction",qE={kind:String,feature:String,value:["Declaration","Selector"]};function YE(e,t){const r=(this.features[e]||{})[t];return typeof r!="function"&&this.error(`Unknown feature ${t}()`),r}function Gl(e="unknown"){const t=this.tokenStart,n=this.consumeFunctionName(),r=YE.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 WE(e){this.token(pe,e.feature+"("),this.node(e.value),this.token(de,")")}const GE=Object.freeze(Object.defineProperty({__proto__:null,generate:WE,name:jE,parse:Gl,structure:qE},Symbol.toStringTag,{value:"Module"})),Vl=47,VE=60,Kl=61,KE=62,XE="FeatureRange",QE={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 Zs(){switch(this.skipSC(),this.tokenType){case fe:return this.isDelim(Vl,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(Vl)&&this.error(),e},()=>this.Ratio());default:this.error("Number, dimension, ratio or identifier is expected")}}function Xl(e){if(this.skipSC(),this.isDelim(VE)||this.isDelim(KE)){const t=this.source[this.tokenStart];return this.next(),this.isDelim(Kl)?(this.next(),t+"="):t}if(this.isDelim(Kl))return"=";this.error(`Expected ${e?'":", ':""}"<", ">", "=" or ")"`)}function Ql(e="unknown"){const t=this.tokenStart;this.skipSC(),this.eat(we);const n=Zs.call(this),r=Xl.call(this,n.type==="Identifier"),i=Zs.call(this);let s=null,o=null;return this.lookupNonWSType(0)!==de&&(s=Xl.call(this),o=Zs.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 ZE(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 JE=Object.freeze(Object.defineProperty({__proto__:null,generate:ZE,name:XE,parse:Ql,structure:QE},Symbol.toStringTag,{value:"Module"})),ey="Function",ty="function",ny={name:String,children:[[]]};function Zl(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 ry(e){this.token(pe,e.name+"("),this.children(e),this.token(de,")")}const iy=Object.freeze(Object.defineProperty({__proto__:null,generate:ry,name:ey,parse:Zl,structure:ny,walkContext:ty},Symbol.toStringTag,{value:"Module"})),sy="GeneralEnclosed",ay={kind:String,function:[String,null],children:[[]]};function Jl(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 oy(e){e.function?this.token(pe,e.function+"("):this.token(we,"("),this.children(e),this.token(de,")")}const uy=Object.freeze(Object.defineProperty({__proto__:null,generate:oy,name:sy,parse:Jl,structure:ay},Symbol.toStringTag,{value:"Module"})),ly="XXX",cy="Hash",dy={value:String};function ec(){const e=this.tokenStart;return this.eat(xe),{type:"Hash",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e+1)}}function hy(e){this.token(xe,"#"+e.value)}const fy=Object.freeze(Object.defineProperty({__proto__:null,generate:hy,name:cy,parse:ec,structure:dy,xxx:ly},Symbol.toStringTag,{value:"Module"})),py="Identifier",my={name:String};function tc(){return{type:"Identifier",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:this.consume(ne)}}function gy(e){this.token(ne,e.name)}const by=Object.freeze(Object.defineProperty({__proto__:null,generate:gy,name:py,parse:tc,structure:my},Symbol.toStringTag,{value:"Module"})),Ey="IdSelector",yy={name:String};function nc(){const e=this.tokenStart;return this.eat(xe),{type:"IdSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e+1)}}function Ty(e){this.token(ge,"#"+e.name)}const _y=Object.freeze(Object.defineProperty({__proto__:null,generate:Ty,name:Ey,parse:nc,structure:yy},Symbol.toStringTag,{value:"Module"})),wy=46,ky="Layer",Ay={name:String};function rc(){let e=this.tokenStart,t=this.consume(ne);for(;this.isDelim(wy);)this.eat(ge),t+="."+this.consume(ne);return{type:"Layer",loc:this.getLocation(e,this.tokenStart),name:t}}function Sy(e){this.tokenize(e.name)}const Cy=Object.freeze(Object.defineProperty({__proto__:null,generate:Sy,name:ky,parse:rc,structure:Ay},Symbol.toStringTag,{value:"Module"})),xy="LayerList",Ny={children:[["Layer"]]};function ic(){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 vy(e){this.children(e,()=>this.token(st,","))}const Iy=Object.freeze(Object.defineProperty({__proto__:null,generate:vy,name:xy,parse:ic,structure:Ny},Symbol.toStringTag,{value:"Module"})),Oy="MediaQuery",Ly={modifier:[String,null],mediaType:[String,null],condition:["Condition",null]};function sc(){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 $e:case Xe:case st:case Gt: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 $e:case Xe:case Gt: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 Py(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:Py,name:Oy,parse:sc,structure:Ly},Symbol.toStringTag,{value:"Module"})),Dy="MediaQueryList",My={children:[["MediaQuery"]]};function ac(){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 By(e){this.children(e,()=>this.token(st,","))}const Fy=Object.freeze(Object.defineProperty({__proto__:null,generate:By,name:Dy,parse:ac,structure:My},Symbol.toStringTag,{value:"Module"})),Uy=38,Hy="NestingSelector",zy={};function oc(){const e=this.tokenStart;return this.eatDelim(Uy),{type:"NestingSelector",loc:this.getLocation(e,this.tokenStart)}}function $y(){this.token(ge,"&")}const jy=Object.freeze(Object.defineProperty({__proto__:null,generate:$y,name:Hy,parse:oc,structure:zy},Symbol.toStringTag,{value:"Module"})),qy="Nth",Yy={nth:["AnPlusB","Identifier"],selector:["SelectorList",null]};function uc(){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 Wy(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:Wy,name:qy,parse:uc,structure:Yy},Symbol.toStringTag,{value:"Module"})),Vy="Number",Ky={value:String};function lc(){return{type:"Number",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume(fe)}}function Xy(e){this.token(fe,e.value)}const Qy=Object.freeze(Object.defineProperty({__proto__:null,generate:Xy,name:Vy,parse:lc,structure:Ky},Symbol.toStringTag,{value:"Module"})),Zy="Operator",Jy={value:String};function cc(){const e=this.tokenStart;return this.next(),{type:"Operator",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function eT(e){this.tokenize(e.value)}const tT=Object.freeze(Object.defineProperty({__proto__:null,generate:eT,name:Zy,parse:cc,structure:Jy},Symbol.toStringTag,{value:"Module"})),nT="Parentheses",rT={children:[[]]};function dc(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 iT(e){this.token(we,"("),this.children(e),this.token(de,")")}const sT=Object.freeze(Object.defineProperty({__proto__:null,generate:iT,name:nT,parse:dc,structure:rT},Symbol.toStringTag,{value:"Module"})),aT="Percentage",oT={value:String};function hc(){return{type:"Percentage",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(Oe)}}function uT(e){this.token(Oe,e.value+"%")}const lT=Object.freeze(Object.defineProperty({__proto__:null,generate:uT,name:aT,parse:hc,structure:oT},Symbol.toStringTag,{value:"Module"})),cT="PseudoClassSelector",dT="function",hT={name:String,children:[["Raw"],null]};function fc(){const e=this.tokenStart;let t=null,n,r;return this.eat(Ke),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 fT(e){this.token(Ke,":"),e.children===null?this.token(ne,e.name):(this.token(pe,e.name+"("),this.children(e),this.token(de,")"))}const pT=Object.freeze(Object.defineProperty({__proto__:null,generate:fT,name:cT,parse:fc,structure:hT,walkContext:dT},Symbol.toStringTag,{value:"Module"})),mT="PseudoElementSelector",gT="function",bT={name:String,children:[["Raw"],null]};function pc(){const e=this.tokenStart;let t=null,n,r;return this.eat(Ke),this.eat(Ke),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 ET(e){this.token(Ke,":"),this.token(Ke,":"),e.children===null?this.token(ne,e.name):(this.token(pe,e.name+"("),this.children(e),this.token(de,")"))}const yT=Object.freeze(Object.defineProperty({__proto__:null,generate:ET,name:mT,parse:pc,structure:bT,walkContext:gT},Symbol.toStringTag,{value:"Module"})),mc=47;function gc(){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 TT="Ratio",_T={left:["Number","Function"],right:["Number","Function",null]};function bc(){const e=this.tokenStart,t=gc.call(this);let n=null;return this.skipSC(),this.isDelim(mc)&&(this.eatDelim(mc),n=gc.call(this)),{type:"Ratio",loc:this.getLocation(e,this.tokenStart),left:t,right:n}}function wT(e){this.node(e.left),this.token(ge,"/"),e.right?this.node(e.right):this.node(fe,1)}const kT=Object.freeze(Object.defineProperty({__proto__:null,generate:wT,name:TT,parse:bc,structure:_T},Symbol.toStringTag,{value:"Module"}));function AT(){return this.tokenIndex>0&&this.lookupType(-1)===Le?this.tokenIndex>1?this.getTokenStart(this.tokenIndex-1):this.firstCharOffset:this.tokenStart}const ST="Raw",CT={value:String};function Ec(e,t){const n=this.getTokenStart(this.tokenIndex);let r;return this.skipUntilBalanced(this.tokenIndex,e||this.consumeUntilBalanceEnd),t&&this.tokenStart>n?r=AT.call(this):r=this.tokenStart,{type:"Raw",loc:this.getLocation(n,r),value:this.substring(n,r)}}function xT(e){this.tokenize(e.value)}const NT=Object.freeze(Object.defineProperty({__proto__:null,generate:xT,name:ST,parse:Ec,structure:CT},Symbol.toStringTag,{value:"Module"}));function yc(){return this.Raw(this.consumeUntilLeftCurlyBracket,!0)}function vT(){const e=this.SelectorList();return e.type!=="Raw"&&this.eof===!1&&this.tokenType!==$e&&this.error(),e}const IT="Rule",OT="rule",LT={prelude:["SelectorList","Raw"],block:["Block"]};function Tc(){const e=this.tokenIndex,t=this.tokenStart;let n,r;return this.parseRulePrelude?n=this.parseWithFallback(vT,yc):n=yc.call(this,e),r=this.Block(!0),{type:"Rule",loc:this.getLocation(t,this.tokenStart),prelude:n,block:r}}function PT(e){this.node(e.prelude),this.node(e.block)}const RT=Object.freeze(Object.defineProperty({__proto__:null,generate:PT,name:IT,parse:Tc,structure:LT,walkContext:OT},Symbol.toStringTag,{value:"Module"})),DT="Scope",MT={root:["SelectorList","Raw",null],limit:["SelectorList","Raw",null]};function _c(){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 BT(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 FT=Object.freeze(Object.defineProperty({__proto__:null,generate:BT,name:DT,parse:_c,structure:MT},Symbol.toStringTag,{value:"Module"})),UT="Selector",HT={children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator"]]};function wc(){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 zT(e){this.children(e)}const $T=Object.freeze(Object.defineProperty({__proto__:null,generate:zT,name:UT,parse:wc,structure:HT},Symbol.toStringTag,{value:"Module"})),jT="SelectorList",qT="selector",YT={children:[["Selector","Raw"]]};function kc(){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 WT(e){this.children(e,()=>this.token(st,","))}const GT=Object.freeze(Object.defineProperty({__proto__:null,generate:WT,name:jT,parse:kc,structure:YT,walkContext:qT},Symbol.toStringTag,{value:"Module"})),Js=92,Ac=34,VT=39;function Sc(e){const t=e.length,n=e.charCodeAt(0),r=n===Ac||n===VT?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),Nt(Js,a)){const u=o-1,l=Tn(e,u);o=l-1,s+=uu(e.substring(u+1,l))}else a===13&&e.charCodeAt(o+1)===10&&o++}else s+=e[o]}return s}function KT(e,t){const r=Ac;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&&(Vt(a)||on(a))&&(i+=" "),i+=e.charAt(o),s=!1)}return'"'+i+'"'}const XT="String",QT={value:String};function Cc(){return{type:"String",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:Sc(this.consume(Et))}}function ZT(e){this.token(Et,KT(e.value))}const JT=Object.freeze(Object.defineProperty({__proto__:null,generate:ZT,name:XT,parse:Cc,structure:QT},Symbol.toStringTag,{value:"Module"})),e2=33;function xc(){return this.Raw(null,!1)}const t2="StyleSheet",n2="stylesheet",r2={children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]};function Nc(){const e=this.tokenStart,t=this.createList();let n;for(;!this.eof;){switch(this.tokenType){case Le:this.next();continue;case Ye:if(this.charCodeAt(this.tokenStart+2)!==e2){this.next();continue}n=this.Comment();break;case Zn:n=this.CDO();break;case it:n=this.CDC();break;case Be:n=this.parseWithFallback(this.Atrule,xc);break;default:n=this.parseWithFallback(this.Rule,xc)}t.push(n)}return{type:"StyleSheet",loc:this.getLocation(e,this.tokenStart),children:t}}function i2(e){this.children(e)}const s2=Object.freeze(Object.defineProperty({__proto__:null,generate:i2,name:t2,parse:Nc,structure:r2,walkContext:n2},Symbol.toStringTag,{value:"Module"})),a2="SupportsDeclaration",o2={declaration:"Declaration"};function vc(){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 u2(e){this.token(we,"("),this.node(e.declaration),this.token(de,")")}const l2=Object.freeze(Object.defineProperty({__proto__:null,generate:u2,name:a2,parse:vc,structure:o2},Symbol.toStringTag,{value:"Module"})),c2=42,Ic=124;function ea(){this.tokenType!==ne&&this.isDelim(c2)===!1&&this.error("Identifier or asterisk is expected"),this.next()}const d2="TypeSelector",h2={name:String};function Oc(){const e=this.tokenStart;return this.isDelim(Ic)?(this.next(),ea.call(this)):(ea.call(this),this.isDelim(Ic)&&(this.next(),ea.call(this))),{type:"TypeSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}}function f2(e){this.tokenize(e.name)}const p2=Object.freeze(Object.defineProperty({__proto__:null,generate:f2,name:d2,parse:Oc,structure:h2},Symbol.toStringTag,{value:"Module"})),Lc=43,Pc=45,ta=63;function dr(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 dr.call(this,e+n+1,!1),-1;Vt(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 ii(e){let t=0;for(;this.isDelim(ta);)++t>e&&this.error("Too many question marks"),this.next()}function m2(e){this.charCodeAt(this.tokenStart)!==e&&this.error((e===Lc?"Plus sign":"Hyphen minus")+" is expected")}function g2(){let e=0;switch(this.tokenType){case fe:if(e=dr.call(this,1,!0),this.isDelim(ta)){ii.call(this,6-e);break}if(this.tokenType===be||this.tokenType===fe){m2.call(this,Pc),dr.call(this,1,!1);break}break;case be:e=dr.call(this,1,!0),e>0&&ii.call(this,6-e);break;default:if(this.eatDelim(Lc),this.tokenType===ne){e=dr.call(this,0,!0),e>0&&ii.call(this,6-e);break}if(this.isDelim(ta)){this.next(),ii.call(this,5);break}this.error("Hex digit or question mark is expected")}}const b2="UnicodeRange",E2={value:String};function Rc(){const e=this.tokenStart;return this.eatIdent("u"),g2.call(this),{type:"UnicodeRange",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function y2(e){this.tokenize(e.value)}const T2=Object.freeze(Object.defineProperty({__proto__:null,generate:y2,name:b2,parse:Rc,structure:E2},Symbol.toStringTag,{value:"Module"})),_2=32,na=92,w2=34,k2=39,A2=40,Dc=41;function S2(e){const t=e.length;let n=4,r=e.charCodeAt(t-1)===Dc?t-2:t-1,i="";for(;n<r&&on(e.charCodeAt(n));)n++;for(;n<r&&on(e.charCodeAt(r));)r--;for(let s=n;s<=r;s++){let o=e.charCodeAt(s);if(o===na){if(s===r){s!==t-1&&(i=e.substr(s+1));break}if(o=e.charCodeAt(++s),Nt(na,o)){const a=s-1,u=Tn(e,a);s=u-1,i+=uu(e.substring(a+1,u))}else o===13&&e.charCodeAt(s+1)===10&&s++}else i+=e[s]}return i}function C2(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===_2||i===na||i===w2||i===k2||i===A2||i===Dc?(t+="\\"+e.charAt(r),n=!1):(n&&Vt(i)&&(t+=" "),t+=e.charAt(r),n=!1)}return"url("+t+")"}const x2="Url",N2={value:String};function Mc(){const e=this.tokenStart;let t;switch(this.tokenType){case Ve:t=S2(this.consume(Ve));break;case pe:this.cmpStr(this.tokenStart,this.tokenEnd,"url(")||this.error("Function name must be `url`"),this.eat(pe),this.skipSC(),t=Sc(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 v2(e){this.token(Ve,C2(e.value))}const I2=Object.freeze(Object.defineProperty({__proto__:null,generate:v2,name:x2,parse:Mc,structure:N2},Symbol.toStringTag,{value:"Module"})),O2="Value",L2={children:[[]]};function Bc(){const e=this.tokenStart,t=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(e,this.tokenStart),children:t}}function P2(e){this.children(e)}const R2=Object.freeze(Object.defineProperty({__proto__:null,generate:P2,name:O2,parse:Bc,structure:L2},Symbol.toStringTag,{value:"Module"})),D2=Object.freeze({type:"WhiteSpace",loc:null,value:" "}),M2="WhiteSpace",B2={value:String};function Fc(){return this.eat(Le),D2}function F2(e){this.token(Le,e.value)}const Uc=Object.freeze(Object.defineProperty({__proto__:null,AnPlusB:i1,Atrule:c1,AtrulePrelude:m1,AttributeSelector:A1,Block:O1,Brackets:D1,CDC:U1,CDO:j1,ClassSelector:V1,Combinator:tE,Comment:oE,Condition:fE,Declaration:NE,DeclarationList:PE,Dimension:BE,Feature:$E,FeatureFunction:GE,FeatureRange:JE,Function:iy,GeneralEnclosed:uy,Hash:fy,IdSelector:_y,Identifier:by,Layer:Cy,LayerList:Iy,MediaQuery:Ry,MediaQueryList:Fy,NestingSelector:jy,Nth:Gy,Number:Qy,Operator:tT,Parentheses:sT,Percentage:lT,PseudoClassSelector:pT,PseudoElementSelector:yT,Ratio:kT,Raw:NT,Rule:RT,Scope:FT,Selector:$T,SelectorList:GT,String:JT,StyleSheet:s2,SupportsDeclaration:l2,TypeSelector:p2,UnicodeRange:T2,Url:I2,Value:R2,WhiteSpace:Object.freeze(Object.defineProperty({__proto__:null,generate:F2,name:M2,parse:Fc,structure:B2},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"})),U2={generic:!0,cssWideKeywords:_s,...Jb,node:Uc},H2=35,z2=42,Hc=43,$2=45,j2=47,q2=117;function zc(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 Ve:return this.Url();case ne:return this.cmpChar(this.tokenStart,q2)&&this.cmpChar(this.tokenStart+1,Hc)?this.UnicodeRange():this.Identifier();case ge:{const t=this.charCodeAt(this.tokenStart);if(t===j2||t===z2||t===Hc||t===$2)return this.Operator();t===H2&&this.error("Hex or identifier is expected",this.tokenStart+1);break}}}const Y2={getNode:zc},W2=35,G2=38,V2=42,K2=43,X2=47,$c=46,Q2=62,Z2=124,J2=126;function e_(e,t){t.last!==null&&t.last.type!=="Combinator"&&e!==null&&e.type!=="Combinator"&&t.push({type:"Combinator",loc:null,name:" "})}function t_(){switch(this.tokenType){case ot:return this.AttributeSelector();case xe:return this.IdSelector();case Ke:return this.lookupType(1)===Ke?this.PseudoElementSelector():this.PseudoClassSelector();case ne:return this.TypeSelector();case fe:case Oe:return this.Percentage();case be:this.charCodeAt(this.tokenStart)===$c&&this.error("Identifier is expected",this.tokenStart+1);break;case ge:{switch(this.charCodeAt(this.tokenStart)){case K2:case Q2:case J2:case X2:return this.Combinator();case $c:return this.ClassSelector();case V2:case Z2:return this.TypeSelector();case W2:return this.IdSelector();case G2:return this.NestingSelector()}break}}}const n_={onWhiteSpace:e_,getNode:t_};function r_(){return this.createSingleNodeList(this.Raw(null,!1))}function i_(){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 jc(e){return e!==null&&e.type==="Operator"&&(e.value[e.value.length-1]==="-"||e.value[e.value.length-1]==="+")}const s_=Object.freeze(Object.defineProperty({__proto__:null,AtrulePrelude:Y2,Selector:n_,Value:{getNode:zc,onWhiteSpace(e,t){jc(e)&&(e.value=" "+e.value),jc(t.last)&&(t.last.value+=" ")},expression:r_,var:i_}},Symbol.toStringTag,{value:"Module"})),a_=new Set(["none","and","not","or"]),o_={parse:{prelude(){const e=this.createList();if(this.tokenType===ne){const t=this.substring(this.tokenStart,this.tokenEnd);a_.has(t.toLowerCase())||e.push(this.Identifier())}return e.push(this.Condition("container")),e},block(e=!1){return this.Block(e)}}},u_={parse:{prelude:null,block(){return this.Block(!0)}}};function ra(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 qc={layer(){this.skipSC();const e=this.createList(),t=ra.call(this,this.Layer);return(t.type!=="Raw"||t.value!=="")&&e.push(t),e},supports(){this.skipSC();const e=this.createList(),t=ra.call(this,this.Declaration,()=>ra.call(this,()=>this.Condition("supports")));return(t.type!=="Raw"||t.value!=="")&&e.push(t),e}},l_={container:o_,"font-face":u_,import:{parse:{prelude(){const e=this.createList();switch(this.tokenType){case Et:e.push(this.String());break;case Ve: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,qc)),this.skipSC(),this.tokenType===pe&&this.cmpStr(this.tokenStart,this.tokenEnd,"supports(")&&e.push(this.Function(null,qc)),(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 c_(){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 ln={parse(){return this.createSingleNodeList(this.SelectorList())}},ia={parse(){return this.createSingleNodeList(this.Selector())}},d_={parse(){return this.createSingleNodeList(this.Identifier())}},h_={parse:c_},si={parse(){return this.createSingleNodeList(this.Nth())}},f_=Zb({...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:s_,atrule:l_,pseudo:{dir:d_,has:ln,lang:h_,matches:ln,is:ln,"-moz-any":ln,"-webkit-any":ln,where:ln,not:ln,"nth-child":si,"nth-last-child":si,"nth-last-of-type":si,"nth-of-type":si,slotted:ia,host:ia,"host-context":ia},node:Object.freeze(Object.defineProperty({__proto__:null,AnPlusB:wl,Atrule:Al,AtrulePrelude:Sl,AttributeSelector:xl,Block:Ol,Brackets:Ll,CDC:Pl,CDO:Rl,ClassSelector:Dl,Combinator:Bl,Comment:Fl,Condition:Hl,Declaration:jl,DeclarationList:ql,Dimension:Yl,Feature:Wl,FeatureFunction:Gl,FeatureRange:Ql,Function:Zl,GeneralEnclosed:Jl,Hash:ec,IdSelector:nc,Identifier:tc,Layer:rc,LayerList:ic,MediaQuery:sc,MediaQueryList:ac,NestingSelector:oc,Nth:uc,Number:lc,Operator:cc,Parentheses:dc,Percentage:hc,PseudoClassSelector:fc,PseudoElementSelector:pc,Ratio:bc,Raw:Ec,Rule:Tc,Scope:_c,Selector:wc,SelectorList:kc,String:Cc,StyleSheet:Nc,SupportsDeclaration:vc,TypeSelector:Oc,UnicodeRange:Rc,Url:Mc,Value:Bc,WhiteSpace:Fc},Symbol.toStringTag,{value:"Module"}))},...{node:Uc}}),{tokenize:AA,parse:p_,generate:m_,lexer:SA,createLexer:CA,walk:ai,find:xA,findLast:NA,findAll:vA,toPlainObject:IA,fromPlainObject:OA,fork:LA}=f_;function g_(e){return sa(e).classRules}function sa(e){const t={},n={},r=p_(e,{parseCustomProperty:!0});return ai(r,{visit:"Rule",enter(i){if(i.type!=="Rule"||!i.prelude||!i.block)return;const s={};if(ai(i.block,{visit:"Declaration",enter(a){const u=a.property,l=m_(a.value);s[u]=l}}),Object.keys(s).length===0)return;const o=b_(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 b_(e){const t=[],n=[];return ai(e,{visit:"ClassSelector",enter(r){r.type==="ClassSelector"&&r.name&&t.push(r.name)}}),ai(e,{visit:"TypeSelector",enter(r){r.type==="TypeSelector"&&r.name&&n.push(r.name.toLowerCase())}}),{classes:t,elements:n}}function E_(e,t){const n=Bm(e,{fragment:!0}),r=[];Yc(n,r);const i=[...r,t==null?void 0:t.css].filter(Boolean).join(`
|
|
14
|
+
`),o={type:"root",children:Ht(n.children,"block")};if(i){const a=sa(i),u=Object.keys(a.classRules).length>0,l=Object.keys(a.elementRules).length>0;(u||l)&&(o.data={...o.data,css:a})}return o}function Yc(e,t){var r;if(!e||typeof e!="object")return;if("type"in e&&e.type==="element"&&((r=e.tagName)==null?void 0:r.toLowerCase())==="style"){const i=(e.children??[]).map(s=>s.type==="text"?s.value:"").join("");i.trim()&&t.push(i);return}const n=e.children;if(n)for(const i of n)Yc(i,t)}function Ht(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=Wc(r,t);i&&(Array.isArray(i)?n.push(...i):n.push(i))}return n}function Wc(e,t){const n=e.tagName.toLowerCase();switch(n){case"p":return oi("paragraph",e);case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return y_(e,Number(n[1]));case"blockquote":return oi("blockquote",e);case"ul":return Gc(e,!1);case"ol":return Gc(e,!0);case"li":return Vc(e);case"pre":return T_(e);case"table":return __(e);case"thead":case"tbody":case"tfoot":return Ht(e.children,"block");case"tr":return Kc(e);case"td":case"th":return Xc(e);case"hr":{const r={type:"thematicBreak"};return Lt(e,r),r}case"br":return{type:"break"};case"img":return w_(e);case"div":case"section":case"article":case"main":case"header":case"footer":case"nav":case"aside":return oi("div",e);case"figure":return oi("figure",e);case"figcaption":return k_(e);case"script":case"style":case"noscript":case"template":case"title":case"meta":case"link":return null}if(A_(n)||n==="a")return ui(e);if(n==="code")return{type:"inlineCode",value:li(e)};if(n==="span")return ui(e);if(t==="block"){const r=Ht(e.children,"block");return r.length===0?null:r.length===1?r[0]:r}else return ui(e)}function oi(e,t){const r=e==="paragraph"?"inline":"block",i=Ht(t.children,r),s={type:e,children:i};return Ot(t,s),Lt(t,s),s}function y_(e,t){const n=Ht(e.children,"inline"),r={type:"heading",depth:t,children:n};return Ot(e,r),Lt(e,r),r}function Gc(e,t){var i,s,o;const n=[];for(const a of e.children)if(a.type==="element"&&a.tagName.toLowerCase()==="li")n.push(Vc(a));else{const u=a.type==="element"?Wc(a,"block"):a.type==="text"&&a.value.trim()?[{type:"text",value:a.value}]:null;if(u){const l=[],d=Array.isArray(u)?u:[u];for(const h of d)oa(h.type)?l.push({type:"paragraph",children:[h]}):l.push(h);if(l.length>0){const h={type:"listItem",children:l};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)}}),Ot(e,r),Lt(e,r),r}function Vc(e){const t=Ht(e.children,"block"),n=[];let r=[];const i=()=>{r.length>0&&(n.push({type:"paragraph",children:r}),r=[])};for(const o of t)oa(o.type)?r.push(o):(i(),n.push(o));i();const s={type:"listItem",children:n};return Ot(e,s),Lt(e,s),s}function T_(e){var o;const t=e.children.find(a=>a.type==="element"&&a.tagName.toLowerCase()==="code"),n=li(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 l=String(u).match(/^language-(.+)$/);if(l){r=l[1];break}}}const i={type:"codeBlock",value:n};r&&(i.lang=r);const s=i;return Ot(e,s),Lt(e,s),s}function __(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(Kc(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 Ot(e,r),Lt(e,r),r}function Kc(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(Xc(i)),s!=="th"&&(n=!1))}const r={type:"tableRow",children:t};return n&&(r.isHeader=!0),Ot(e,r),Lt(e,r),r}function Xc(e,t){var a,u;const n=Ht(e.children,"block"),r=[];let i=[];const s=()=>{i.length>0&&(r.push({type:"paragraph",children:i}),i=[])};for(const l of n)oa(l.type)?i.push(l):(s(),r.push(l));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)),Ot(e,o),Lt(e,o),o}function w_(e){var n,r,i;const t={type:"image",url:Qc(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)),Ot(e,t),Lt(e,t),t}function Qc(e){const t=e.trim();if(!t)return"";if(/^(#|\/|\.\/|\.\.\/)/.test(t))return t;const n=t.match(/^([a-zA-Z][a-zA-Z0-9+.\-]*):/);if(!n)return t;const r=n[1].toLowerCase();return new Set(["http","https","mailto","tel","ftp","ftps"]).has(r)||r==="data"&&/^data:image\//i.test(t)?t:""}function k_(e){const n={type:"figCaption",children:Ht(e.children,"inline")};return Ot(e,n),n}const aa={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 A_(e){return e in aa}function ui(e){var i,s,o,a,u,l,d,h;const t=e.tagName.toLowerCase();let n;if(t==="a"){const p={url:Qc(String(((i=e.properties)==null?void 0:i.href)??""))};if((s=e.properties)!=null&&s.title&&(p.title=String(e.properties.title)),(o=e.properties)!=null&&o.id&&(p.id=String(e.properties.id)),(a=e.properties)!=null&&a.name&&(p.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&&(p.className=f)}for(const[f,g]of Object.entries(e.properties??{}))f.startsWith("data")&&f!=="data"&&!(f in p)&&(p[f]=g);n={type:"link",attrs:p}}else if(aa[t])n=aa[t]();else if(t==="span"){const p=(l=e.properties)!=null&&l.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,g=(h=e.properties)!=null&&h.id?String(e.properties.id):void 0;if(p.length>0||f||g){const b={};p.length>0&&(b.className=p),f&&(b.style=f),g&&(b.id=g);for(const[_,m]of Object.entries(e.properties??{}))_.startsWith("data")&&_!=="data"&&(b[_]=m);n={type:"custom",attrs:b}}}const r=Ht(e.children,"inline");return n?r.map(p=>S_(p,n)):r}function S_(e,t){if(e.type==="text"){const n=e,r=n.marks??[];return{...n,marks:[...r,t]}}return e}function li(e){let t="";for(const n of e.children)n.type==="text"?t+=n.value:n.type==="element"&&(t+=li(n));return t}function oa(e){return["text","break","image","footnoteReference","inlineCode","inlineMath"].includes(e)}function Ot(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 Lt(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 C_=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],Zc={}.hasOwnProperty;function x_(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 N_=/["&'<>`]/g,v_=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,I_=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,O_=/[|\\{}()[\]^$+*?.]/g,Jc=new WeakMap;function L_(e,t){if(e=e.replace(t.subset?P_(t.subset):N_,r),t.subset||t.escapeOnly)return e;return e.replace(v_,n).replace(I_,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 P_(e){let t=Jc.get(e);return t||(t=R_(e),Jc.set(e,t)),t}function R_(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(O_,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const D_=/[\dA-Fa-f]/;function M_(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!D_.test(String.fromCharCode(t))?r:r+";"}const B_=/\d/;function F_(e,t,n){const r="&#"+String(e);return n&&t&&!B_.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"],ua={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:"€"},H_=["cent","copy","divide","gt","lt","not","para","times"],ed={}.hasOwnProperty,la={};let ci;for(ci in ua)ed.call(ua,ci)&&(la[ua[ci]]=ci);const z_=/[^\dA-Za-z]/;function $_(e,t,n,r){const i=String.fromCharCode(e);if(ed.call(la,i)){const s=la[i],o="&"+s;return n&&U_.includes(s)&&!H_.includes(s)&&(!r||t&&t!==61&&z_.test(String.fromCharCode(t)))?o:o+";"}return""}function j_(e,t,n){let r=M_(e,t,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=$_(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){const s=F_(e,t,n.omitOptionalSemicolons);s.length<r.length&&(r=s)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}function vn(e,t){return L_(e,Object.assign({format:j_},t))}const q_=/^>|^->|<!--|-->|--!>|<!-$/g,Y_=[">"],W_=["<",">"];function G_(e,t,n,r){return r.settings.bogusComments?"<?"+vn(e.value,Object.assign({},r.settings.characterReferences,{subset:Y_}))+">":"<!--"+e.value.replace(q_,i)+"-->";function i(s){return vn(s,Object.assign({},r.settings.characterReferences,{subset:W_}))}}function V_(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function td(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 K_=/[ \t\n\f\r]/g;function ca(e){return typeof e=="object"?e.type==="text"?nd(e.value):!1:nd(e)}function nd(e){return e.replace(K_,"")===""}const Fe=id(1),rd=id(-1),X_=[];function id(e){return t;function t(n,r,i){const s=n?n.children:X_;let o=(r||0)+e,a=s[o];if(!i)for(;a&&ca(a);)o+=e,a=s[o];return a}}const Q_={}.hasOwnProperty;function sd(e){return t;function t(n,r,i){return Q_.call(e,n.tagName)&&e[n.tagName](n,r,i)}}const da=sd({body:J_,caption:ha,colgroup:ha,dd:rw,dt:nw,head:ha,html:Z_,li:tw,optgroup:iw,option:sw,p:ew,rp:ad,rt:ad,tbody:ow,td:od,tfoot:uw,th:od,thead:aw,tr:lw});function ha(e,t,n){const r=Fe(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&ca(r.value.charAt(0)))}function Z_(e,t,n){const r=Fe(n,t);return!r||r.type!=="comment"}function J_(e,t,n){const r=Fe(n,t);return!r||r.type!=="comment"}function ew(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 tw(e,t,n){const r=Fe(n,t);return!r||r.type==="element"&&r.tagName==="li"}function nw(e,t,n){const r=Fe(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function rw(e,t,n){const r=Fe(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function ad(e,t,n){const r=Fe(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function iw(e,t,n){const r=Fe(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function sw(e,t,n){const r=Fe(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function aw(e,t,n){const r=Fe(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function ow(e,t,n){const r=Fe(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function uw(e,t,n){return!Fe(n,t)}function lw(e,t,n){const r=Fe(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function od(e,t,n){const r=Fe(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const cw=sd({body:fw,colgroup:pw,head:hw,html:dw,tbody:mw});function dw(e){const t=Fe(e,-1);return!t||t.type!=="comment"}function hw(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 fw(e){const t=Fe(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&ca(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function pw(e,t,n){const r=rd(n,t),i=Fe(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&da(r,n.children.indexOf(r),n)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function mw(e,t,n){const r=rd(n,t),i=Fe(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&da(r,n.children.indexOf(r),n)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const di={name:[[`
|
|
15
15
|
\f\r &/=>`.split(""),`
|
|
16
16
|
\f\r "&'/=>\``.split("")],[`\0
|
|
17
17
|
\f\r "&'/<=>`.split(""),`\0
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
\f\r &>`.split(""),`\0
|
|
20
20
|
\f\r "&'<=>\``.split("")],[`\0
|
|
21
21
|
\f\r "&'<=>\``.split(""),`\0
|
|
22
|
-
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function
|
|
22
|
+
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function gw(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=Hn);const l=bw(r,e.properties),d=r.all(i.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=i,d&&(o=!1),(l||!s||!cw(e,t,n))&&(a.push("<",e.tagName,l?" "+l:""),o&&(i.space==="svg"||r.settings.closeSelfClosing)&&(u=l.charAt(l.length-1),(!r.settings.tightSelfClosing||u==="/"||u&&u!=='"'&&u!=="'")&&a.push(" "),a.push("/")),a.push(">")),a.push(d),!o&&(!s||!da(e,t,n))&&a.push("</"+e.tagName+">"),a.join("")}function bw(e,t){const n=[];let r=-1,i;if(t){for(i in t)if(t[i]!==null&&t[i]!==void 0){const s=Ew(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 Ew(e,t,n){const r=Di(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=vn(r.attribute,Object.assign({},e.settings.characterReferences,{subset:di.name[i][s]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?Cf:Nf)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?u:(e.settings.preferUnquoted&&(a=vn(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:di.unquoted[i][s]}))),a!==n&&(e.settings.quoteSmart&&td(n,o)>td(n,e.alternative)&&(o=e.alternative),a=o+vn(n,Object.assign({},e.settings.characterReferences,{subset:(o==="'"?di.single:di.double)[i][s],attribute:!0}))+o),u+(a&&"="+a))}const yw=["<","&"];function ud(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:vn(e.value,Object.assign({},r.settings.characterReferences,{subset:yw}))}function Tw(e,t,n,r){return r.settings.allowDangerousHtml?e.value:ud(e,t,n,r)}function _w(e,t,n,r){return r.all(e)}const ww=x_("type",{invalid:kw,unknown:Aw,handlers:{comment:G_,doctype:V_,element:gw,raw:Tw,root:_w,text:ud}});function kw(e){throw new Error("Expected node, not `"+e+"`")}function Aw(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const Sw={},Cw={},xw=[];function Nw(e,t){const n=Sw,r=n.quote||'"',i=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:vw,all:Iw,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||C_,characterReferences:n.characterReferences||Cw,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?Hn:br,quote:r,alternative:i}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function vw(e,t,n){return ww(e,t,n,this)}function Iw(e){const t=[],n=e&&e.children||xw;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function zt(e,t){const n=(t==null?void 0:t.restoreAttributes)!==!1,r={type:"root",children:e.children.map(s=>Pt(s,n))},i=Nw(r);return t!=null&&t.prettyPrint?Ow(i):i}function Ow(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),l=u[1]==="/",d=u[a-o-1]==="/",h=u.match(/^<\/?([a-zA-Z][a-zA-Z0-9]*)/),p=h?h[1].toLowerCase():"";t.has(p)?l?(i=Math.max(0,i-1),s+=`
|
|
23
23
|
`+" ".repeat(i)+u):(s+=`
|
|
24
24
|
`+" ".repeat(i)+u,d||i++):n.has(p)?l?s+=u:s+=`
|
|
25
25
|
`+" ".repeat(i)+u:r.has(p)?s+=`
|
|
26
|
-
`+" ".repeat(i)+u:s+=u,a
|
|
26
|
+
`+" ".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 Pt(e,t){switch(e.type){case"paragraph":return cn("p",e,t);case"heading":return Lw(e,t);case"blockquote":return cn("blockquote",e,t);case"list":return Pw(e,t);case"listItem":return Rw(e,t);case"codeBlock":return Dw(e,t);case"table":return cn("table",e,t);case"tableRow":return Mw(e,t);case"tableCell":return ld(e,t);case"thematicBreak":{const n={type:"element",tagName:"hr",properties:{},children:[]};return $t(e,n,t),n}case"break":return{type:"element",tagName:"br",properties:{},children:[]};case"image":return Bw(e,t);case"div":return cn("div",e,t);case"figure":return cn("figure",e,t);case"figCaption":return cn("figcaption",e,t);case"html":return{type:"text",value:e.value};case"text":return Hw(e);case"inlineCode":return Fw(e);default:return Bn(e)?{type:"text",value:e.value}:Ee(e)?cn("div",e,t):{type:"text",value:""}}}function cn(e,t,n,r){const i={type:"element",tagName:e,properties:{},children:t.children.map(s=>Pt(s,n))};return $t(t,i,n),i}function Lw(e,t){const r={type:"element",tagName:`h${Math.max(1,Math.min(6,Number(e.depth)||1))}`,properties:{},children:e.children.map(i=>Pt(i,t))};return $t(e,r,t),r}function Pw(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(Pt(a,t));else r.push(Pt(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),$t(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=>Pt(s,t)):n=e.children.map(i=>Pt(i,t));const r={type:"element",tagName:"li",properties:{},children:n};return $t(e,r,t),r}function Dw(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 $t(e,i,t),i}function Mw(e,t){const n=e.isHeader===!0,r={type:"element",tagName:"tr",properties:{},children:e.children.map(i=>i.type==="tableCell"?ld(i,t,n):Pt(i,t))};return $t(e,r,t),r}function ld(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=>Pt(u,t)):s=e.children.map(a=>Pt(a,t));const o={type:"element",tagName:r,properties:i,children:s};return $t(e,o,t),o}function Bw(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 $t(e,r,t),r}function Fw(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 Hw(e,t){var s,o,a,u,l,d,h,p;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,g)=>f.type==="link"?1:g.type==="link"?-1:0);for(const f of i)if(f.type==="link"){const g={};(s=f.attrs)!=null&&s.url&&(g.href=String(f.attrs.url)),(o=f.attrs)!=null&&o.title&&(g.title=String(f.attrs.title)),(a=f.attrs)!=null&&a.id&&(g.id=String(f.attrs.id)),(u=f.attrs)!=null&&u.name&&(g.name=String(f.attrs.name)),(l=f.attrs)!=null&&l.className&&(g.className=f.attrs.className);for(const[b,_]of Object.entries(f.attrs??{}))b.startsWith("data")&&b!=="data"&&(g[b]=_);r={type:"element",tagName:"a",properties:g,children:[r]}}else if(f.type==="custom"){const g={};(d=f.attrs)!=null&&d.className&&(g.className=f.attrs.className),(h=f.attrs)!=null&&h.style&&(g.style=String(f.attrs.style)),(p=f.attrs)!=null&&p.id&&(g.id=String(f.attrs.id));for(const[b,_]of Object.entries(f.attrs??{}))b.startsWith("data")&&b!=="data"&&(g[b]=_);r={type:"element",tagName:"span",properties:g,children:[r]}}else{const g=Uw[f.type];g&&(r={type:"element",tagName:g,properties:{},children:[r]})}return r}function $t(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 Jt={ins:"background-color: #d4edda; text-decoration: none;",del:"background-color: #f8d7da; text-decoration: line-through;",mod:"background-color: #fff3cd;",move:"background-color: #d1ecf1;"};function zw(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",l=(r==null?void 0:r.moveClass)??"diff-move",d=new Map;for(const g of n.operations){const b="path"in g?ct(g.path):"to"in g?ct(g.to):null;if(b){const _=d.get(b)??[];_.push(g),d.set(b,_)}if(g.type==="delete"){const _=ct(g.path),m=d.get(_)??[];m.push(g),d.set(_,m)}if(g.type==="move"){const _=ct(g.from),m=d.get(_)??[];m.push(g),d.set(_,m)}}const h=[],p=n.operations.filter(g=>g.type==="delete"),f=n.operations.filter(g=>g.type==="insert");return(i==="old"||i==="merged")&&h.push(cd(e,[],d,{role:"old",inlineStyles:s,insClass:o,delClass:a})),i==="merged"&&(p.length>0||f.length>0||n.operations.some(g=>g.type==="updateText"))&&(h.length=0,h.push($w(e,t,n,{inlineStyles:s,insClass:o,delClass:a,modClass:u,moveClass:l}))),i==="new"&&(h.length=0,h.push(cd(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,l=new Map;for(const g of n.operations)switch(g.type){case"updateText":i.set(ct(g.path),g.changes);break;case"insert":s.add(ct(g.path));break;case"delete":o.add(ct(g.path));break;case"move":a.add(ct(g.to)),u.add(ct(g.from));break;case"update":l.set(ct(g.path),g.properties.new);break}function d(g,b,_=!1){const m=ct(b);if(s.has(m)){const E=zt({children:[g]});return In("ins",E,r.insClass,r.inlineStyles?Jt.ins:void 0,{"data-diff":"insert","data-path":m})}if(a.has(m)){const E=zt({children:[g]});return In("span",E,r.moveClass,r.inlineStyles?Jt.move:void 0,{"data-diff":"move","data-path":m,title:"Moved"})}if(l.has(m)){const E=zt({children:[g]});return In("span",E,r.modClass,r.inlineStyles?Jt.mod:void 0,{"data-diff":"update","data-path":m})}if(dt(g)&&i.has(m)){const E=i.get(m);return dd(E,r)}if(Ee(g)){let E=hd(g);const S=fd(g);g.type==="tableCell"&&_&&(E="th");const I=g.type==="tableRow"&&g.isHeader===!0,D=(g.type==="listItem"||g.type==="tableCell")&&g.children.length===1&&g.children[0].type==="paragraph";let B;if(D?B=g.children[0].children.map((x,w)=>d(x,[...b,0,w],I)).join(""):B=g.children.map((C,x)=>d(C,[...b,x],I)).join(""),E){const C=Object.entries(S).map(([x,w])=>` ${x}="${pa(String(w))}"`).join("");return jw(E)?`<${E}${C}>`:`<${E}${C}>${B}</${E}>`}return B}return zt({children:[g]})}function h(){const g=[];for(const b of n.operations)if(b.type==="delete"){const _=zt({children:[b.node]});g.push(In("del",_,r.delClass,r.inlineStyles?Jt.del:void 0,{"data-diff":"delete","data-path":ct(b.path)}))}return g.join("")}let p=t.children.map((g,b)=>d(g,[b])).join("");const f=h();return f&&(p+=f),p}function cd(e,t,n,r){function i(s,o){const a=ct(o),u=n.get(a)??[];for(const l of u){if(l.type==="delete"&&r.role==="old"){const d=zt({children:[s]});return In("del",d,r.delClass,r.inlineStyles?Jt.del:void 0,{"data-diff":"delete"})}if(l.type==="insert"&&r.role==="new"){const d=zt({children:[s]});return In("ins",d,r.insClass,r.inlineStyles?Jt.ins:void 0,{"data-diff":"insert"})}if(l.type==="updateText")return dd(l.changes,r)}if(Ee(s)){const l=s.children.map((h,p)=>i(h,[...o,p])).join(""),d=hd(s);if(d){const h=fd(s),p=Object.entries(h).map(([f,g])=>` ${f}="${pa(String(g))}"`).join("");return`<${d}${p}>${l}</${d}>`}return l}return zt({children:[s]})}return e.children.map((s,o)=>i(s,[o])).join("")}function dd(e,t){return e.map(n=>{switch(n.type){case"equal":return fa(n.value);case"delete":return`<del class="${t.delClass}"${t.inlineStyles?` style="${Jt.del}"`:""}>${fa(n.value)}</del>`;case"insert":return`<ins class="${t.insClass}"${t.inlineStyles?` style="${Jt.ins}"`:""}>${fa(n.value)}</ins>`}}).join("")}function ct(e){return e.join(",")}function In(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}="${pa(a)}"`;return`<${e}${s}>${t}</${e}>`}function fa(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function pa(e){return e.replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}function jw(e){return["hr","br","img","input"].includes(e)}function hd(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 qw(e){return e.classes}function fd(e){var r;const t={},n=qw(e);if(n!=null&&n.length&&(t.class=n.join(" ")),e.type==="image"){const i=e;t.src=i.url??"",i.alt&&(t.alt=i.alt)}if(e.type==="list"){const i=e;i.ordered&&i.start&&(t.start=String(i.start))}if((r=e.data)!=null&&r.html){const i=e.data.html;i.id&&(t.id=String(i.id))}return t}function hi(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 ma={exports:{}};/*!
|
|
27
27
|
|
|
28
28
|
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
|
|
29
29
|
<http://stuartk.com/jszip>
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
|
|
34
34
|
JSZip uses the library pako released under the MIT license :
|
|
35
35
|
https://github.com/nodeca/pako/blob/main/LICENSE
|
|
36
|
-
*/var
|
|
37
|
-
\0`,ae+=s(j,2),ae+=B.magic,ae+=s(S,2),ae+=s(I,2),ae+=s(he.crc32,4),ae+=s(he.compressedSize,4),ae+=s(he.uncompressedSize,4),ae+=s(x.length,2),ae+=s(U.length,2),{fileRecord:h.LOCAL_FILE_HEADER+ae+x+U,dirRecord:h.CENTRAL_FILE_HEADER+s(ue,2)+ae+s(R.length,2)+"\0\0\0\0"+s($,4)+s(_,4)+x+U+R}}var o=n("../utils"),u=n("../stream/GenericWorker"),l=n("../utf8"),d=n("../crc32"),h=n("../signature");function p(f,g,b,_){u.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=g,this.zipPlatform=b,this.encodeFileName=_,this.streamFiles=f,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}o.inherits(p,u),p.prototype.push=function(f){var g=f.meta.percent||0,b=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:b?(g+100*(b-_-1))/b:100}}))},p.prototype.openedSource=function(f){this.currentSourceOffset=this.bytesWritten,this.currentFile=f.file.name;var g=this.streamFiles&&!f.file.dir;if(g){var b=a(f,g,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:b.fileRecord,meta:{percent:0}})}else this.accumulate=!0},p.prototype.closedSource=function(f){this.accumulate=!1;var g=this.streamFiles&&!f.file.dir,b=a(f,g,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(b.dirRecord),g)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:b.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},p.prototype.flush=function(){for(var f=this.bytesWritten,g=0;g<this.dirRecords.length;g++)this.push({data:this.dirRecords[g],meta:{percent:100}});var b=this.bytesWritten-f,_=(function(m,E,S,I,D){var B=o.transformTo("string",D(I));return h.CENTRAL_DIRECTORY_END+"\0\0\0\0"+s(m,2)+s(m,2)+s(E,4)+s(S,4)+s(B.length,2)+B})(this.dirRecords.length,b,f,this.zipComment,this.encodeFileName);this.push({data:_,meta:{percent:100}})},p.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},p.prototype.registerPrevious=function(f){this._sources.push(f);var g=this;return f.on("data",function(b){g.processChunk(b)}),f.on("end",function(){g.closedSource(g.previous.streamInfo),g._sources.length?g.prepareNextSource():g.end()}),f.on("error",function(b){g.error(b)}),this},p.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))},p.prototype.error=function(f){var g=this._sources;if(!u.prototype.error.call(this,f))return!1;for(var b=0;b<g.length;b++)try{g[b].error(f)}catch{}return!0},p.prototype.lock=function(){u.prototype.lock.call(this);for(var f=this._sources,g=0;g<f.length;g++)f[g].lock()},r.exports=p},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(n,r,i){var s=n("../compressions"),a=n("./ZipFileWorker");i.generateWorker=function(o,u,l){var d=new a(u.streamFiles,l,u.platform,u.encodeFileName),h=0;try{o.forEach(function(p,f){h++;var g=(function(E,S){var I=E||S,D=s[I];if(!D)throw new Error(I+" is not a valid compression method !");return D})(f.options.compression,u.compression),b=f.options.compressionOptions||u.compressionOptions||{},_=f.dir,m=f.date;f._compressWorker(g,b).withStreamInfo("file",{name:p,dir:_,date:m,comment:f.comment||"",unixPermissions:f.unixPermissions,dosPermissions:f.dosPermissions}).pipe(d)}),d.entriesCount=h}catch(p){d.error(p)}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 a=new s;for(var o in this)typeof this[o]!="function"&&(a[o]=this[o]);return a}}(s.prototype=n("./object")).loadAsync=n("./load"),s.support=n("./support"),s.defaults=n("./defaults"),s.version="3.10.1",s.loadAsync=function(a,o){return new s().loadAsync(a,o)},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"),a=n("./external"),o=n("./utf8"),u=n("./zipEntries"),l=n("./stream/Crc32Probe"),d=n("./nodejsUtils");function h(p){return new a.Promise(function(f,g){var b=p.decompressed.getContentWorker().pipe(new l);b.on("error",function(_){g(_)}).on("end",function(){b.streamInfo.crc32!==p.decompressed.crc32?g(new Error("Corrupted zip : CRC32 mismatch")):f()}).resume()})}r.exports=function(p,f){var g=this;return f=s.extend(f||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:o.utf8decode}),d.isNode&&d.isStream(p)?a.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):s.prepareContent("the loaded zip file",p,!0,f.optimizedBinaryString,f.base64).then(function(b){var _=new u(f);return _.load(b),_}).then(function(b){var _=[a.Promise.resolve(b)],m=b.files;if(f.checkCRC32)for(var E=0;E<m.length;E++)_.push(h(m[E]));return a.Promise.all(_)}).then(function(b){for(var _=b.shift(),m=_.files,E=0;E<m.length;E++){var S=m[E],I=S.fileNameStr,D=s.resolve(S.fileNameStr);g.file(D,S.decompressed,{binary:!0,optimizedBinaryString:!0,date:S.date,dir:S.dir,comment:S.fileCommentStr.length?S.fileCommentStr:null,unixPermissions:S.unixPermissions,dosPermissions:S.dosPermissions,createFolders:f.createFolders}),S.dir||(g.file(D).unsafeOriginalName=I)}return _.zipComment.length&&(g.comment=_.zipComment),g})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(n,r,i){var s=n("../utils"),a=n("../stream/GenericWorker");function o(u,l){a.call(this,"Nodejs stream input adapter for "+u),this._upstreamEnded=!1,this._bindStream(l)}s.inherits(o,a),o.prototype._bindStream=function(u){var l=this;(this._stream=u).pause(),u.on("data",function(d){l.push({data:d,meta:{percent:0}})}).on("error",function(d){l.isPaused?this.generatedError=d:l.error(d)}).on("end",function(){l.isPaused?l._upstreamEnded=!0:l.end()})},o.prototype.pause=function(){return!!a.prototype.pause.call(this)&&(this._stream.pause(),!0)},o.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},r.exports=o},{"../stream/GenericWorker":28,"../utils":32}],13:[function(n,r,i){var s=n("readable-stream").Readable;function a(o,u,l){s.call(this,u),this._helper=o;var d=this;o.on("data",function(h,p){d.push(h)||d._helper.pause(),l&&l(p)}).on("error",function(h){d.emit("error",h)}).on("end",function(){d.push(null)})}n("../utils").inherits(a,s),a.prototype._read=function(){this._helper.resume()},r.exports=a},{"../utils":32,"readable-stream":16}],14:[function(n,r,i){r.exports={isNode:typeof Buffer<"u",newBufferFrom:function(s,a){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(s,a);if(typeof s=="number")throw new Error('The "data" argument must not be a number');return new Buffer(s,a)},allocBuffer:function(s){if(Buffer.alloc)return Buffer.alloc(s);var a=new Buffer(s);return a.fill(0),a},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,C){var x,w=o.getTypeOf(B),P=o.extend(C||{},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=m(D)),P.createFolders&&(x=_(D))&&E.call(this,x,!0);var R=w==="string"&&P.binary===!1&&P.base64===!1;C&&C.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",w="string");var k=null;k=B instanceof h||B instanceof u?B:g.isNode&&g.isStream(B)?new b(D,B):o.prepareContent(D,B,P.binary,P.optimizedBinaryString,P.base64);var M=new p(D,k,P);this.files[D]=M}var a=n("./utf8"),o=n("./utils"),u=n("./stream/GenericWorker"),l=n("./stream/StreamHelper"),d=n("./defaults"),h=n("./compressedObject"),p=n("./zipObject"),f=n("./generate"),g=n("./nodejsUtils"),b=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):""},m=function(D){return D.slice(-1)!=="/"&&(D+="/"),D},E=function(D,B){return B=B!==void 0?B:d.createFolders,D=m(D),this.files[D]||s.call(this,D,null,{dir:!0,createFolders:B}),this.files[D]};function S(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,C,x;for(B in this.files)x=this.files[B],(C=B.slice(this.root.length,B.length))&&B.slice(0,this.root.length)===this.root&&D(C,x)},filter:function(D){var B=[];return this.forEach(function(C,x){D(C,x)&&B.push(x)}),B},file:function(D,B,C){if(arguments.length!==1)return D=this.root+D,s.call(this,D,B,C),this;if(S(D)){var x=D;return this.filter(function(P,R){return!R.dir&&x.test(P)})}var w=this.files[this.root+D];return w&&!w.dir?w:null},folder:function(D){if(!D)return this;if(S(D))return this.filter(function(w,P){return P.dir&&D.test(w)});var B=this.root+D,C=E.call(this,B),x=this.clone();return x.root=C.name,x},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 C=this.filter(function(w,P){return P.name.slice(0,D.length)===D}),x=0;x<C.length;x++)delete this.files[C[x].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,C={};try{if((C=o.extend(D||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:a.utf8encode})).type=C.type.toLowerCase(),C.compression=C.compression.toUpperCase(),C.type==="binarystring"&&(C.type="string"),!C.type)throw new Error("No output type specified.");o.checkSupport(C.type),C.platform!=="darwin"&&C.platform!=="freebsd"&&C.platform!=="linux"&&C.platform!=="sunos"||(C.platform="UNIX"),C.platform==="win32"&&(C.platform="DOS");var x=C.comment||this.comment||"";B=f.generateWorker(this,C,x)}catch(w){(B=new u("error")).error(w)}return new l(B,C.type||"string",C.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 a(o){s.call(this,o);for(var u=0;u<this.data.length;u++)o[u]=255&o[u]}n("../utils").inherits(a,s),a.prototype.byteAt=function(o){return this.data[this.zero+o]},a.prototype.lastIndexOfSignature=function(o){for(var u=o.charCodeAt(0),l=o.charCodeAt(1),d=o.charCodeAt(2),h=o.charCodeAt(3),p=this.length-4;0<=p;--p)if(this.data[p]===u&&this.data[p+1]===l&&this.data[p+2]===d&&this.data[p+3]===h)return p-this.zero;return-1},a.prototype.readAndCheckSignature=function(o){var u=o.charCodeAt(0),l=o.charCodeAt(1),d=o.charCodeAt(2),h=o.charCodeAt(3),p=this.readData(4);return u===p[0]&&l===p[1]&&d===p[2]&&h===p[3]},a.prototype.readData=function(o){if(this.checkOffset(o),o===0)return[];var u=this.data.slice(this.zero+this.index,this.zero+this.index+o);return this.index+=o,u},r.exports=a},{"../utils":32,"./DataReader":18}],18:[function(n,r,i){var s=n("../utils");function a(o){this.data=o,this.length=o.length,this.index=0,this.zero=0}a.prototype={checkOffset:function(o){this.checkIndex(this.index+o)},checkIndex:function(o){if(this.length<this.zero+o||o<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+o+"). Corrupted zip ?")},setIndex:function(o){this.checkIndex(o),this.index=o},skip:function(o){this.setIndex(this.index+o)},byteAt:function(){},readInt:function(o){var u,l=0;for(this.checkOffset(o),u=this.index+o-1;u>=this.index;u--)l=(l<<8)+this.byteAt(u);return this.index+=o,l},readString:function(o){return s.transformTo("string",this.readData(o))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var o=this.readInt(4);return new Date(Date.UTC(1980+(o>>25&127),(o>>21&15)-1,o>>16&31,o>>11&31,o>>5&63,(31&o)<<1))}},r.exports=a},{"../utils":32}],19:[function(n,r,i){var s=n("./Uint8ArrayReader");function a(o){s.call(this,o)}n("../utils").inherits(a,s),a.prototype.readData=function(o){this.checkOffset(o);var u=this.data.slice(this.zero+this.index,this.zero+this.index+o);return this.index+=o,u},r.exports=a},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(n,r,i){var s=n("./DataReader");function a(o){s.call(this,o)}n("../utils").inherits(a,s),a.prototype.byteAt=function(o){return this.data.charCodeAt(this.zero+o)},a.prototype.lastIndexOfSignature=function(o){return this.data.lastIndexOf(o)-this.zero},a.prototype.readAndCheckSignature=function(o){return o===this.readData(4)},a.prototype.readData=function(o){this.checkOffset(o);var u=this.data.slice(this.zero+this.index,this.zero+this.index+o);return this.index+=o,u},r.exports=a},{"../utils":32,"./DataReader":18}],21:[function(n,r,i){var s=n("./ArrayReader");function a(o){s.call(this,o)}n("../utils").inherits(a,s),a.prototype.readData=function(o){if(this.checkOffset(o),o===0)return new Uint8Array(0);var u=this.data.subarray(this.zero+this.index,this.zero+this.index+o);return this.index+=o,u},r.exports=a},{"../utils":32,"./ArrayReader":17}],22:[function(n,r,i){var s=n("../utils"),a=n("../support"),o=n("./ArrayReader"),u=n("./StringReader"),l=n("./NodeBufferReader"),d=n("./Uint8ArrayReader");r.exports=function(h){var p=s.getTypeOf(h);return s.checkSupport(p),p!=="string"||a.uint8array?p==="nodebuffer"?new l(h):a.uint8array?new d(s.transformTo("uint8array",h)):new o(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"),a=n("../utils");function o(u){s.call(this,"ConvertWorker to "+u),this.destType=u}a.inherits(o,s),o.prototype.processChunk=function(u){this.push({data:a.transformTo(this.destType,u.data),meta:u.meta})},r.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(n,r,i){var s=n("./GenericWorker"),a=n("../crc32");function o(){s.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}n("../utils").inherits(o,s),o.prototype.processChunk=function(u){this.streamInfo.crc32=a(u.data,this.streamInfo.crc32||0),this.push(u)},r.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(n,r,i){var s=n("../utils"),a=n("./GenericWorker");function o(u){a.call(this,"DataLengthProbe for "+u),this.propName=u,this.withStreamInfo(u,0)}s.inherits(o,a),o.prototype.processChunk=function(u){if(u){var l=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=l+u.data.length}a.prototype.processChunk.call(this,u)},r.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(n,r,i){var s=n("../utils"),a=n("./GenericWorker");function o(u){a.call(this,"DataWorker");var l=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,u.then(function(d){l.dataIsReady=!0,l.data=d,l.max=d&&d.length||0,l.type=s.getTypeOf(d),l.isPaused||l._tickAndRepeat()},function(d){l.error(d)})}s.inherits(o,a),o.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,s.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(s.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var u=null,l=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,l);break;case"uint8array":u=this.data.subarray(this.index,l);break;case"array":case"nodebuffer":u=this.data.slice(this.index,l)}return this.index=l,this.push({data:u,meta:{percent:this.max?this.index/this.max*100:0}})},r.exports=o},{"../utils":32,"./GenericWorker":28}],28:[function(n,r,i){function s(a){this.name=a||"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(a){this.emit("data",a)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(a){this.emit("error",a)}return!0},error:function(a){return!this.isFinished&&(this.isPaused?this.generatedError=a:(this.isFinished=!0,this.emit("error",a),this.previous&&this.previous.error(a),this.cleanUp()),!0)},on:function(a,o){return this._listeners[a].push(o),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(a,o){if(this._listeners[a])for(var u=0;u<this._listeners[a].length;u++)this._listeners[a][u].call(this,o)},pipe:function(a){return a.registerPrevious(this)},registerPrevious:function(a){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=a.streamInfo,this.mergeStreamInfo(),this.previous=a;var o=this;return a.on("data",function(u){o.processChunk(u)}),a.on("end",function(){o.end()}),a.on("error",function(u){o.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 a=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),a=!0),this.previous&&this.previous.resume(),!a},flush:function(){},processChunk:function(a){this.push(a)},withStreamInfo:function(a,o){return this.extraStreamInfo[a]=o,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var a in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,a)&&(this.streamInfo[a]=this.extraStreamInfo[a])},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 a="Worker "+this.name;return this.previous?this.previous+" -> "+a:a}},r.exports=s},{}],29:[function(n,r,i){var s=n("../utils"),a=n("./ConvertWorker"),o=n("./GenericWorker"),u=n("../base64"),l=n("../support"),d=n("../external"),h=null;if(l.nodestream)try{h=n("../nodejs/NodejsStreamOutputAdapter")}catch{}function p(g,b){return new d.Promise(function(_,m){var E=[],S=g._internalType,I=g._outputType,D=g._mimeType;g.on("data",function(B,C){E.push(B),b&&b(C)}).on("error",function(B){E=[],m(B)}).on("end",function(){try{var B=(function(C,x,w){switch(C){case"blob":return s.newBlob(s.transformTo("arraybuffer",x),w);case"base64":return u.encode(x);default:return s.transformTo(C,x)}})(I,(function(C,x){var w,P=0,R=null,k=0;for(w=0;w<x.length;w++)k+=x[w].length;switch(C){case"string":return x.join("");case"array":return Array.prototype.concat.apply([],x);case"uint8array":for(R=new Uint8Array(k),w=0;w<x.length;w++)R.set(x[w],P),P+=x[w].length;return R;case"nodebuffer":return Buffer.concat(x);default:throw new Error("concat : unsupported type '"+C+"'")}})(S,E),D);_(B)}catch(C){m(C)}E=[]}).resume()})}function f(g,b,_){var m=b;switch(b){case"blob":case"arraybuffer":m="uint8array";break;case"base64":m="string"}try{this._internalType=m,this._outputType=b,this._mimeType=_,s.checkSupport(m),this._worker=g.pipe(new a(m)),g.lock()}catch(E){this._worker=new o("error"),this._worker.error(E)}}f.prototype={accumulate:function(g){return p(this,g)},on:function(g,b){var _=this;return g==="data"?this._worker.on(g,function(m){b.call(_,m.data,m.meta)}):this._worker.on(g,function(){s.delay(b,arguments,_)}),this},resume:function(){return s.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(g){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"},g)}},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 a=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);a.append(s),i.blob=a.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"),a=n("./support"),o=n("./nodejsUtils"),u=n("./stream/GenericWorker"),l=new Array(256),d=0;d<256;d++)l[d]=252<=d?6:248<=d?5:240<=d?4:224<=d?3:192<=d?2:1;l[254]=l[254]=1;function h(){u.call(this,"utf-8 decode"),this.leftOver=null}function p(){u.call(this,"utf-8 encode")}i.utf8encode=function(f){return a.nodebuffer?o.newBufferFrom(f,"utf-8"):(function(g){var b,_,m,E,S,I=g.length,D=0;for(E=0;E<I;E++)(64512&(_=g.charCodeAt(E)))==55296&&E+1<I&&(64512&(m=g.charCodeAt(E+1)))==56320&&(_=65536+(_-55296<<10)+(m-56320),E++),D+=_<128?1:_<2048?2:_<65536?3:4;for(b=a.uint8array?new Uint8Array(D):new Array(D),E=S=0;S<D;E++)(64512&(_=g.charCodeAt(E)))==55296&&E+1<I&&(64512&(m=g.charCodeAt(E+1)))==56320&&(_=65536+(_-55296<<10)+(m-56320),E++),_<128?b[S++]=_:(_<2048?b[S++]=192|_>>>6:(_<65536?b[S++]=224|_>>>12:(b[S++]=240|_>>>18,b[S++]=128|_>>>12&63),b[S++]=128|_>>>6&63),b[S++]=128|63&_);return b})(f)},i.utf8decode=function(f){return a.nodebuffer?s.transformTo("nodebuffer",f).toString("utf-8"):(function(g){var b,_,m,E,S=g.length,I=new Array(2*S);for(b=_=0;b<S;)if((m=g[b++])<128)I[_++]=m;else if(4<(E=l[m]))I[_++]=65533,b+=E-1;else{for(m&=E===2?31:E===3?15:7;1<E&&b<S;)m=m<<6|63&g[b++],E--;1<E?I[_++]=65533:m<65536?I[_++]=m:(m-=65536,I[_++]=55296|m>>10&1023,I[_++]=56320|1023&m)}return I.length!==_&&(I.subarray?I=I.subarray(0,_):I.length=_),s.applyFromCharCode(I)})(f=s.transformTo(a.uint8array?"uint8array":"array",f))},s.inherits(h,u),h.prototype.processChunk=function(f){var g=s.transformTo(a.uint8array?"uint8array":"array",f.data);if(this.leftOver&&this.leftOver.length){if(a.uint8array){var b=g;(g=new Uint8Array(b.length+this.leftOver.length)).set(this.leftOver,0),g.set(b,this.leftOver.length)}else g=this.leftOver.concat(g);this.leftOver=null}var _=(function(E,S){var I;for((S=S||E.length)>E.length&&(S=E.length),I=S-1;0<=I&&(192&E[I])==128;)I--;return I<0||I===0?S:I+l[E[I]]>S?I:S})(g),m=g;_!==g.length&&(a.uint8array?(m=g.subarray(0,_),this.leftOver=g.subarray(_,g.length)):(m=g.slice(0,_),this.leftOver=g.slice(_,g.length))),this.push({data:i.utf8decode(m),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(p,u),p.prototype.processChunk=function(f){this.push({data:i.utf8encode(f.data),meta:f.meta})},i.Utf8EncodeWorker=p},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(n,r,i){var s=n("./support"),a=n("./base64"),o=n("./nodejsUtils"),u=n("./external");function l(b){return b}function d(b,_){for(var m=0;m<b.length;++m)_[m]=255&b.charCodeAt(m);return _}n("setimmediate"),i.newBlob=function(b,_){i.checkSupport("blob");try{return new Blob([b],{type:_})}catch{try{var m=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return m.append(b),m.getBlob(_)}catch{throw new Error("Bug : can't construct the Blob.")}}};var h={stringifyByChunk:function(b,_,m){var E=[],S=0,I=b.length;if(I<=m)return String.fromCharCode.apply(null,b);for(;S<I;)_==="array"||_==="nodebuffer"?E.push(String.fromCharCode.apply(null,b.slice(S,Math.min(S+m,I)))):E.push(String.fromCharCode.apply(null,b.subarray(S,Math.min(S+m,I)))),S+=m;return E.join("")},stringifyByChar:function(b){for(var _="",m=0;m<b.length;m++)_+=String.fromCharCode(b[m]);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,o.allocBuffer(1)).length===1}catch{return!1}})()}};function p(b){var _=65536,m=i.getTypeOf(b),E=!0;if(m==="uint8array"?E=h.applyCanBeUsed.uint8array:m==="nodebuffer"&&(E=h.applyCanBeUsed.nodebuffer),E)for(;1<_;)try{return h.stringifyByChunk(b,m,_)}catch{_=Math.floor(_/2)}return h.stringifyByChar(b)}function f(b,_){for(var m=0;m<b.length;m++)_[m]=b[m];return _}i.applyFromCharCode=p;var g={};g.string={string:l,array:function(b){return d(b,new Array(b.length))},arraybuffer:function(b){return g.string.uint8array(b).buffer},uint8array:function(b){return d(b,new Uint8Array(b.length))},nodebuffer:function(b){return d(b,o.allocBuffer(b.length))}},g.array={string:p,array:l,arraybuffer:function(b){return new Uint8Array(b).buffer},uint8array:function(b){return new Uint8Array(b)},nodebuffer:function(b){return o.newBufferFrom(b)}},g.arraybuffer={string:function(b){return p(new Uint8Array(b))},array:function(b){return f(new Uint8Array(b),new Array(b.byteLength))},arraybuffer:l,uint8array:function(b){return new Uint8Array(b)},nodebuffer:function(b){return o.newBufferFrom(new Uint8Array(b))}},g.uint8array={string:p,array:function(b){return f(b,new Array(b.length))},arraybuffer:function(b){return b.buffer},uint8array:l,nodebuffer:function(b){return o.newBufferFrom(b)}},g.nodebuffer={string:p,array:function(b){return f(b,new Array(b.length))},arraybuffer:function(b){return g.nodebuffer.uint8array(b).buffer},uint8array:function(b){return f(b,new Uint8Array(b.length))},nodebuffer:l},i.transformTo=function(b,_){if(_=_||"",!b)return _;i.checkSupport(b);var m=i.getTypeOf(_);return g[m][b](_)},i.resolve=function(b){for(var _=b.split("/"),m=[],E=0;E<_.length;E++){var S=_[E];S==="."||S===""&&E!==0&&E!==_.length-1||(S===".."?m.pop():m.push(S))}return m.join("/")},i.getTypeOf=function(b){return typeof b=="string"?"string":Object.prototype.toString.call(b)==="[object Array]"?"array":s.nodebuffer&&o.isBuffer(b)?"nodebuffer":s.uint8array&&b instanceof Uint8Array?"uint8array":s.arraybuffer&&b instanceof ArrayBuffer?"arraybuffer":void 0},i.checkSupport=function(b){if(!s[b.toLowerCase()])throw new Error(b+" is not supported by this platform")},i.MAX_VALUE_16BITS=65535,i.MAX_VALUE_32BITS=-1,i.pretty=function(b){var _,m,E="";for(m=0;m<(b||"").length;m++)E+="\\x"+((_=b.charCodeAt(m))<16?"0":"")+_.toString(16).toUpperCase();return E},i.delay=function(b,_,m){setImmediate(function(){b.apply(m||null,_||[])})},i.inherits=function(b,_){function m(){}m.prototype=_.prototype,b.prototype=new m},i.extend=function(){var b,_,m={};for(b=0;b<arguments.length;b++)for(_ in arguments[b])Object.prototype.hasOwnProperty.call(arguments[b],_)&&m[_]===void 0&&(m[_]=arguments[b][_]);return m},i.prepareContent=function(b,_,m,E,S){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 C=new FileReader;C.onload=function(x){D(x.target.result)},C.onerror=function(x){B(x.target.error)},C.readAsArrayBuffer(I)}):I}).then(function(I){var D=i.getTypeOf(I);return D?(D==="arraybuffer"?I=i.transformTo("uint8array",I):D==="string"&&(S?I=a.decode(I):m&&E!==!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 '"+b+"'. 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"),a=n("./utils"),o=n("./signature"),u=n("./zipEntry"),l=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 p=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+a.pretty(p)+", expected "+a.pretty(h)+")")}},isSignature:function(h,p){var f=this.reader.index;this.reader.setIndex(h);var g=this.reader.readString(4)===p;return this.reader.setIndex(f),g},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),p=l.uint8array?"uint8array":"array",f=a.transformTo(p,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,p,f,g=this.zip64EndOfCentralSize-44;0<g;)h=this.reader.readInt(2),p=this.reader.readInt(4),f=this.reader.readData(p),this.zip64ExtensibleData[h]={id:h,length:p,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,p;for(h=0;h<this.files.length;h++)p=this.files[h],this.reader.setIndex(p.localHeaderOffset),this.checkSignature(o.LOCAL_FILE_HEADER),p.readLocalPart(this.reader),p.handleUTF8(),p.processAttributes()},readCentralDir:function(){var h;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(o.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(o.CENTRAL_DIRECTORY_END);if(h<0)throw this.isSignature(0,o.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 p=h;if(this.checkSignature(o.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===a.MAX_VALUE_16BITS||this.diskWithCentralDirStart===a.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===a.MAX_VALUE_16BITS||this.centralDirRecords===a.MAX_VALUE_16BITS||this.centralDirSize===a.MAX_VALUE_32BITS||this.centralDirOffset===a.MAX_VALUE_32BITS){if(this.zip64=!0,(h=this.reader.lastIndexOfSignature(o.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(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,o.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(o.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(o.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var f=this.centralDirOffset+this.centralDirSize;this.zip64&&(f+=20,f+=12+this.zip64EndOfCentralSize);var g=p-f;if(0<g)this.isSignature(p,o.CENTRAL_FILE_HEADER)||(this.reader.zero=g);else if(g<0)throw new Error("Corrupted zip: missing "+Math.abs(g)+" 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"),a=n("./utils"),o=n("./compressedObject"),u=n("./crc32"),l=n("./utf8"),d=n("./compressions"),h=n("./support");function p(f,g){this.options=f,this.loadOptions=g}p.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(f){var g,b;if(f.skip(22),this.fileNameLength=f.readInt(2),b=f.readInt(2),this.fileName=f.readData(this.fileNameLength),f.skip(b),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((g=(function(_){for(var m in d)if(Object.prototype.hasOwnProperty.call(d,m)&&d[m].magic===_)return d[m];return null})(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+a.pretty(this.compressionMethod)+" unknown (inner file : "+a.transformTo("string",this.fileName)+")");this.decompressed=new o(this.compressedSize,this.uncompressedSize,this.crc32,g,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 g=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(g),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===a.MAX_VALUE_32BITS&&(this.uncompressedSize=f.readInt(8)),this.compressedSize===a.MAX_VALUE_32BITS&&(this.compressedSize=f.readInt(8)),this.localHeaderOffset===a.MAX_VALUE_32BITS&&(this.localHeaderOffset=f.readInt(8)),this.diskNumberStart===a.MAX_VALUE_32BITS&&(this.diskNumberStart=f.readInt(4))}},readExtraFields:function(f){var g,b,_,m=f.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});f.index+4<m;)g=f.readInt(2),b=f.readInt(2),_=f.readData(b),this.extraFields[g]={id:g,length:b,value:_};f.setIndex(m)},handleUTF8:function(){var f=h.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=l.utf8decode(this.fileName),this.fileCommentStr=l.utf8decode(this.fileComment);else{var g=this.findExtraFieldUnicodePath();if(g!==null)this.fileNameStr=g;else{var b=a.transformTo(f,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(b)}var _=this.findExtraFieldUnicodeComment();if(_!==null)this.fileCommentStr=_;else{var m=a.transformTo(f,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(m)}}},findExtraFieldUnicodePath:function(){var f=this.extraFields[28789];if(f){var g=s(f.value);return g.readInt(1)!==1||u(this.fileName)!==g.readInt(4)?null:l.utf8decode(g.readData(f.length-5))}return null},findExtraFieldUnicodeComment:function(){var f=this.extraFields[25461];if(f){var g=s(f.value);return g.readInt(1)!==1||u(this.fileComment)!==g.readInt(4)?null:l.utf8decode(g.readData(f.length-5))}return null}},r.exports=p},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(n,r,i){function s(g,b,_){this.name=g,this.dir=_.dir,this.date=_.date,this.comment=_.comment,this.unixPermissions=_.unixPermissions,this.dosPermissions=_.dosPermissions,this._data=b,this._dataBinary=_.binary,this.options={compression:_.compression,compressionOptions:_.compressionOptions}}var a=n("./stream/StreamHelper"),o=n("./stream/DataWorker"),u=n("./utf8"),l=n("./compressedObject"),d=n("./stream/GenericWorker");s.prototype={internalStream:function(g){var b=null,_="string";try{if(!g)throw new Error("No output type specified.");var m=(_=g.toLowerCase())==="string"||_==="text";_!=="binarystring"&&_!=="text"||(_="string"),b=this._decompressWorker();var E=!this._dataBinary;E&&!m&&(b=b.pipe(new u.Utf8EncodeWorker)),!E&&m&&(b=b.pipe(new u.Utf8DecodeWorker))}catch(S){(b=new d("error")).error(S)}return new a(b,_,"")},async:function(g,b){return this.internalStream(g).accumulate(b)},nodeStream:function(g,b){return this.internalStream(g||"nodebuffer").toNodejsStream(b)},_compressWorker:function(g,b){if(this._data instanceof l&&this._data.compression.magic===g.magic)return this._data.getCompressedWorker();var _=this._decompressWorker();return this._dataBinary||(_=_.pipe(new u.Utf8EncodeWorker)),l.createWorkerFrom(_,g,b)},_decompressWorker:function(){return this._data instanceof l?this._data.getContentWorker():this._data instanceof d?this._data:new o(this._data)}};for(var h=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],p=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]]=p;r.exports=s},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(n,r,i){(function(s){var a,o,u=s.MutationObserver||s.WebKitMutationObserver;if(u){var l=0,d=new u(g),h=s.document.createTextNode("");d.observe(h,{characterData:!0}),a=function(){h.data=l=++l%2}}else if(s.setImmediate||s.MessageChannel===void 0)a="document"in s&&"onreadystatechange"in s.document.createElement("script")?function(){var b=s.document.createElement("script");b.onreadystatechange=function(){g(),b.onreadystatechange=null,b.parentNode.removeChild(b),b=null},s.document.documentElement.appendChild(b)}:function(){setTimeout(g,0)};else{var p=new s.MessageChannel;p.port1.onmessage=g,a=function(){p.port2.postMessage(0)}}var f=[];function g(){var b,_;o=!0;for(var m=f.length;m;){for(_=f,f=[],b=-1;++b<m;)_[b]();m=f.length}o=!1}r.exports=function(b){f.push(b)!==1||o||a()}}).call(this,typeof $r<"u"?$r:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(n,r,i){var s=n("immediate");function a(){}var o={},u=["REJECTED"],l=["FULFILLED"],d=["PENDING"];function h(m){if(typeof m!="function")throw new TypeError("resolver must be a function");this.state=d,this.queue=[],this.outcome=void 0,m!==a&&b(this,m)}function p(m,E,S){this.promise=m,typeof E=="function"&&(this.onFulfilled=E,this.callFulfilled=this.otherCallFulfilled),typeof S=="function"&&(this.onRejected=S,this.callRejected=this.otherCallRejected)}function f(m,E,S){s(function(){var I;try{I=E(S)}catch(D){return o.reject(m,D)}I===m?o.reject(m,new TypeError("Cannot resolve promise with itself")):o.resolve(m,I)})}function g(m){var E=m&&m.then;if(m&&(typeof m=="object"||typeof m=="function")&&typeof E=="function")return function(){E.apply(m,arguments)}}function b(m,E){var S=!1;function I(C){S||(S=!0,o.reject(m,C))}function D(C){S||(S=!0,o.resolve(m,C))}var B=_(function(){E(D,I)});B.status==="error"&&I(B.value)}function _(m,E){var S={};try{S.value=m(E),S.status="success"}catch(I){S.status="error",S.value=I}return S}(r.exports=h).prototype.finally=function(m){if(typeof m!="function")return this;var E=this.constructor;return this.then(function(S){return E.resolve(m()).then(function(){return S})},function(S){return E.resolve(m()).then(function(){throw S})})},h.prototype.catch=function(m){return this.then(null,m)},h.prototype.then=function(m,E){if(typeof m!="function"&&this.state===l||typeof E!="function"&&this.state===u)return this;var S=new this.constructor(a);return this.state!==d?f(S,this.state===l?m:E,this.outcome):this.queue.push(new p(S,m,E)),S},p.prototype.callFulfilled=function(m){o.resolve(this.promise,m)},p.prototype.otherCallFulfilled=function(m){f(this.promise,this.onFulfilled,m)},p.prototype.callRejected=function(m){o.reject(this.promise,m)},p.prototype.otherCallRejected=function(m){f(this.promise,this.onRejected,m)},o.resolve=function(m,E){var S=_(g,E);if(S.status==="error")return o.reject(m,S.value);var I=S.value;if(I)b(m,I);else{m.state=l,m.outcome=E;for(var D=-1,B=m.queue.length;++D<B;)m.queue[D].callFulfilled(E)}return m},o.reject=function(m,E){m.state=u,m.outcome=E;for(var S=-1,I=m.queue.length;++S<I;)m.queue[S].callRejected(E);return m},h.resolve=function(m){return m instanceof this?m:o.resolve(new this(a),m)},h.reject=function(m){var E=new this(a);return o.reject(E,m)},h.all=function(m){var E=this;if(Object.prototype.toString.call(m)!=="[object Array]")return this.reject(new TypeError("must be an array"));var S=m.length,I=!1;if(!S)return this.resolve([]);for(var D=new Array(S),B=0,C=-1,x=new this(a);++C<S;)w(m[C],C);return x;function w(P,R){E.resolve(P).then(function(k){D[R]=k,++B!==S||I||(I=!0,o.resolve(x,D))},function(k){I||(I=!0,o.reject(x,k))})}},h.race=function(m){var E=this;if(Object.prototype.toString.call(m)!=="[object Array]")return this.reject(new TypeError("must be an array"));var S=m.length,I=!1;if(!S)return this.resolve([]);for(var D=-1,B=new this(a);++D<S;)C=m[D],E.resolve(C).then(function(x){I||(I=!0,o.resolve(B,x))},function(x){I||(I=!0,o.reject(B,x))});var C;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"),a=n("./utils/common"),o=n("./utils/strings"),u=n("./zlib/messages"),l=n("./zlib/zstream"),d=Object.prototype.toString,h=0,p=-1,f=0,g=8;function b(m){if(!(this instanceof b))return new b(m);this.options=a.assign({level:p,method:g,chunkSize:16384,windowBits:15,memLevel:8,strategy:f,to:""},m||{});var E=this.options;E.raw&&0<E.windowBits?E.windowBits=-E.windowBits:E.gzip&&0<E.windowBits&&E.windowBits<16&&(E.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var S=s.deflateInit2(this.strm,E.level,E.method,E.windowBits,E.memLevel,E.strategy);if(S!==h)throw new Error(u[S]);if(E.header&&s.deflateSetHeader(this.strm,E.header),E.dictionary){var I;if(I=typeof E.dictionary=="string"?o.string2buf(E.dictionary):d.call(E.dictionary)==="[object ArrayBuffer]"?new Uint8Array(E.dictionary):E.dictionary,(S=s.deflateSetDictionary(this.strm,I))!==h)throw new Error(u[S]);this._dict_set=!0}}function _(m,E){var S=new b(E);if(S.push(m,!0),S.err)throw S.msg||u[S.err];return S.result}b.prototype.push=function(m,E){var S,I,D=this.strm,B=this.options.chunkSize;if(this.ended)return!1;I=E===~~E?E:E===!0?4:0,typeof m=="string"?D.input=o.string2buf(m):d.call(m)==="[object ArrayBuffer]"?D.input=new Uint8Array(m):D.input=m,D.next_in=0,D.avail_in=D.input.length;do{if(D.avail_out===0&&(D.output=new a.Buf8(B),D.next_out=0,D.avail_out=B),(S=s.deflate(D,I))!==1&&S!==h)return this.onEnd(S),!(this.ended=!0);D.avail_out!==0&&(D.avail_in!==0||I!==4&&I!==2)||(this.options.to==="string"?this.onData(o.buf2binstring(a.shrinkBuf(D.output,D.next_out))):this.onData(a.shrinkBuf(D.output,D.next_out)))}while((0<D.avail_in||D.avail_out===0)&&S!==1);return I===4?(S=s.deflateEnd(this.strm),this.onEnd(S),this.ended=!0,S===h):I!==2||(this.onEnd(h),!(D.avail_out=0))},b.prototype.onData=function(m){this.chunks.push(m)},b.prototype.onEnd=function(m){m===h&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=m,this.msg=this.strm.msg},i.Deflate=b,i.deflate=_,i.deflateRaw=function(m,E){return(E=E||{}).raw=!0,_(m,E)},i.gzip=function(m,E){return(E=E||{}).gzip=!0,_(m,E)}},{"./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"),a=n("./utils/common"),o=n("./utils/strings"),u=n("./zlib/constants"),l=n("./zlib/messages"),d=n("./zlib/zstream"),h=n("./zlib/gzheader"),p=Object.prototype.toString;function f(b){if(!(this instanceof f))return new f(b);this.options=a.assign({chunkSize:16384,windowBits:0,to:""},b||{});var _=this.options;_.raw&&0<=_.windowBits&&_.windowBits<16&&(_.windowBits=-_.windowBits,_.windowBits===0&&(_.windowBits=-15)),!(0<=_.windowBits&&_.windowBits<16)||b&&b.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 m=s.inflateInit2(this.strm,_.windowBits);if(m!==u.Z_OK)throw new Error(l[m]);this.header=new h,s.inflateGetHeader(this.strm,this.header)}function g(b,_){var m=new f(_);if(m.push(b,!0),m.err)throw m.msg||l[m.err];return m.result}f.prototype.push=function(b,_){var m,E,S,I,D,B,C=this.strm,x=this.options.chunkSize,w=this.options.dictionary,P=!1;if(this.ended)return!1;E=_===~~_?_:_===!0?u.Z_FINISH:u.Z_NO_FLUSH,typeof b=="string"?C.input=o.binstring2buf(b):p.call(b)==="[object ArrayBuffer]"?C.input=new Uint8Array(b):C.input=b,C.next_in=0,C.avail_in=C.input.length;do{if(C.avail_out===0&&(C.output=new a.Buf8(x),C.next_out=0,C.avail_out=x),(m=s.inflate(C,u.Z_NO_FLUSH))===u.Z_NEED_DICT&&w&&(B=typeof w=="string"?o.string2buf(w):p.call(w)==="[object ArrayBuffer]"?new Uint8Array(w):w,m=s.inflateSetDictionary(this.strm,B)),m===u.Z_BUF_ERROR&&P===!0&&(m=u.Z_OK,P=!1),m!==u.Z_STREAM_END&&m!==u.Z_OK)return this.onEnd(m),!(this.ended=!0);C.next_out&&(C.avail_out!==0&&m!==u.Z_STREAM_END&&(C.avail_in!==0||E!==u.Z_FINISH&&E!==u.Z_SYNC_FLUSH)||(this.options.to==="string"?(S=o.utf8border(C.output,C.next_out),I=C.next_out-S,D=o.buf2string(C.output,S),C.next_out=I,C.avail_out=x-I,I&&a.arraySet(C.output,C.output,S,I,0),this.onData(D)):this.onData(a.shrinkBuf(C.output,C.next_out)))),C.avail_in===0&&C.avail_out===0&&(P=!0)}while((0<C.avail_in||C.avail_out===0)&&m!==u.Z_STREAM_END);return m===u.Z_STREAM_END&&(E=u.Z_FINISH),E===u.Z_FINISH?(m=s.inflateEnd(this.strm),this.onEnd(m),this.ended=!0,m===u.Z_OK):E!==u.Z_SYNC_FLUSH||(this.onEnd(u.Z_OK),!(C.avail_out=0))},f.prototype.onData=function(b){this.chunks.push(b)},f.prototype.onEnd=function(b){b===u.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=b,this.msg=this.strm.msg},i.Inflate=f,i.inflate=g,i.inflateRaw=function(b,_){return(_=_||{}).raw=!0,g(b,_)},i.ungzip=g},{"./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 l=Array.prototype.slice.call(arguments,1);l.length;){var d=l.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,l){return u.length===l?u:u.subarray?u.subarray(0,l):(u.length=l,u)};var a={arraySet:function(u,l,d,h,p){if(l.subarray&&u.subarray)u.set(l.subarray(d,d+h),p);else for(var f=0;f<h;f++)u[p+f]=l[d+f]},flattenChunks:function(u){var l,d,h,p,f,g;for(l=h=0,d=u.length;l<d;l++)h+=u[l].length;for(g=new Uint8Array(h),l=p=0,d=u.length;l<d;l++)f=u[l],g.set(f,p),p+=f.length;return g}},o={arraySet:function(u,l,d,h,p){for(var f=0;f<h;f++)u[p+f]=l[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,a)):(i.Buf8=Array,i.Buf16=Array,i.Buf32=Array,i.assign(i,o))},i.setTyped(s)},{}],42:[function(n,r,i){var s=n("./common"),a=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch{a=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{o=!1}for(var u=new s.Buf8(256),l=0;l<256;l++)u[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;function d(h,p){if(p<65537&&(h.subarray&&o||!h.subarray&&a))return String.fromCharCode.apply(null,s.shrinkBuf(h,p));for(var f="",g=0;g<p;g++)f+=String.fromCharCode(h[g]);return f}u[254]=u[254]=1,i.string2buf=function(h){var p,f,g,b,_,m=h.length,E=0;for(b=0;b<m;b++)(64512&(f=h.charCodeAt(b)))==55296&&b+1<m&&(64512&(g=h.charCodeAt(b+1)))==56320&&(f=65536+(f-55296<<10)+(g-56320),b++),E+=f<128?1:f<2048?2:f<65536?3:4;for(p=new s.Buf8(E),b=_=0;_<E;b++)(64512&(f=h.charCodeAt(b)))==55296&&b+1<m&&(64512&(g=h.charCodeAt(b+1)))==56320&&(f=65536+(f-55296<<10)+(g-56320),b++),f<128?p[_++]=f:(f<2048?p[_++]=192|f>>>6:(f<65536?p[_++]=224|f>>>12:(p[_++]=240|f>>>18,p[_++]=128|f>>>12&63),p[_++]=128|f>>>6&63),p[_++]=128|63&f);return p},i.buf2binstring=function(h){return d(h,h.length)},i.binstring2buf=function(h){for(var p=new s.Buf8(h.length),f=0,g=p.length;f<g;f++)p[f]=h.charCodeAt(f);return p},i.buf2string=function(h,p){var f,g,b,_,m=p||h.length,E=new Array(2*m);for(f=g=0;f<m;)if((b=h[f++])<128)E[g++]=b;else if(4<(_=u[b]))E[g++]=65533,f+=_-1;else{for(b&=_===2?31:_===3?15:7;1<_&&f<m;)b=b<<6|63&h[f++],_--;1<_?E[g++]=65533:b<65536?E[g++]=b:(b-=65536,E[g++]=55296|b>>10&1023,E[g++]=56320|1023&b)}return d(E,g)},i.utf8border=function(h,p){var f;for((p=p||h.length)>h.length&&(p=h.length),f=p-1;0<=f&&(192&h[f])==128;)f--;return f<0||f===0?p:f+u[h[f]]>p?f:p}},{"./common":41}],43:[function(n,r,i){r.exports=function(s,a,o,u){for(var l=65535&s|0,d=s>>>16&65535|0,h=0;o!==0;){for(o-=h=2e3<o?2e3:o;d=d+(l=l+a[u++]|0)|0,--h;);l%=65521,d%=65521}return l|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 a,o=[],u=0;u<256;u++){a=u;for(var l=0;l<8;l++)a=1&a?3988292384^a>>>1:a>>>1;o[u]=a}return o})();r.exports=function(a,o,u,l){var d=s,h=l+u;a^=-1;for(var p=l;p<h;p++)a=a>>>8^d[255&(a^o[p])];return-1^a}},{}],46:[function(n,r,i){var s,a=n("../utils/common"),o=n("./trees"),u=n("./adler32"),l=n("./crc32"),d=n("./messages"),h=0,p=4,f=0,g=-2,b=-1,_=4,m=2,E=8,S=9,I=286,D=30,B=19,C=2*I+1,x=15,w=3,P=258,R=P+w+1,k=42,M=113,T=1,U=2,W=3,G=4;function se(y,V){return y.msg=d[V],V}function Z(y){return(y<<1)-(4<y?9:0)}function he(y){for(var V=y.length;0<=--V;)y[V]=0}function j(y){var V=y.state,Y=V.pending;Y>y.avail_out&&(Y=y.avail_out),Y!==0&&(a.arraySet(y.output,V.pending_buf,V.pending_out,Y,y.next_out),y.next_out+=Y,V.pending_out+=Y,y.total_out+=Y,y.avail_out-=Y,V.pending-=Y,V.pending===0&&(V.pending_out=0))}function $(y,V){o._tr_flush_block(y,0<=y.block_start?y.block_start:-1,y.strstart-y.block_start,V),y.block_start=y.strstart,j(y.strm)}function ue(y,V){y.pending_buf[y.pending++]=V}function ae(y,V){y.pending_buf[y.pending++]=V>>>8&255,y.pending_buf[y.pending++]=255&V}function ie(y,V){var Y,O,v=y.max_chain_length,F=y.strstart,K=y.prev_length,Q=y.nice_match,z=y.strstart>y.w_size-R?y.strstart-(y.w_size-R):0,te=y.window,le=y.w_mask,re=y.prev,ce=y.strstart+P,ve=te[F+K-1],ye=te[F+K];y.prev_length>=y.good_match&&(v>>=2),Q>y.lookahead&&(Q=y.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=P-(ce-F),F=ce-P,K<O){if(y.match_start=V,Q<=(K=O))break;ve=te[F+K-1],ye=te[F+K]}}while((V=re[V&le])>z&&--v!=0);return K<=y.lookahead?K:y.lookahead}function Pe(y){var V,Y,O,v,F,K,Q,z,te,le,re=y.w_size;do{if(v=y.window_size-y.lookahead-y.strstart,y.strstart>=re+(re-R)){for(a.arraySet(y.window,y.window,re,re,0),y.match_start-=re,y.strstart-=re,y.block_start-=re,V=Y=y.hash_size;O=y.head[--V],y.head[V]=re<=O?O-re:0,--Y;);for(V=Y=re;O=y.prev[--V],y.prev[V]=re<=O?O-re:0,--Y;);v+=re}if(y.strm.avail_in===0)break;if(K=y.strm,Q=y.window,z=y.strstart+y.lookahead,te=v,le=void 0,le=K.avail_in,te<le&&(le=te),Y=le===0?0:(K.avail_in-=le,a.arraySet(Q,K.input,K.next_in,le,z),K.state.wrap===1?K.adler=u(K.adler,Q,le,z):K.state.wrap===2&&(K.adler=l(K.adler,Q,le,z)),K.next_in+=le,K.total_in+=le,le),y.lookahead+=Y,y.lookahead+y.insert>=w)for(F=y.strstart-y.insert,y.ins_h=y.window[F],y.ins_h=(y.ins_h<<y.hash_shift^y.window[F+1])&y.hash_mask;y.insert&&(y.ins_h=(y.ins_h<<y.hash_shift^y.window[F+w-1])&y.hash_mask,y.prev[F&y.w_mask]=y.head[y.ins_h],y.head[y.ins_h]=F,F++,y.insert--,!(y.lookahead+y.insert<w)););}while(y.lookahead<R&&y.strm.avail_in!==0)}function Ze(y,V){for(var Y,O;;){if(y.lookahead<R){if(Pe(y),y.lookahead<R&&V===h)return T;if(y.lookahead===0)break}if(Y=0,y.lookahead>=w&&(y.ins_h=(y.ins_h<<y.hash_shift^y.window[y.strstart+w-1])&y.hash_mask,Y=y.prev[y.strstart&y.w_mask]=y.head[y.ins_h],y.head[y.ins_h]=y.strstart),Y!==0&&y.strstart-Y<=y.w_size-R&&(y.match_length=ie(y,Y)),y.match_length>=w)if(O=o._tr_tally(y,y.strstart-y.match_start,y.match_length-w),y.lookahead-=y.match_length,y.match_length<=y.max_lazy_match&&y.lookahead>=w){for(y.match_length--;y.strstart++,y.ins_h=(y.ins_h<<y.hash_shift^y.window[y.strstart+w-1])&y.hash_mask,Y=y.prev[y.strstart&y.w_mask]=y.head[y.ins_h],y.head[y.ins_h]=y.strstart,--y.match_length!=0;);y.strstart++}else y.strstart+=y.match_length,y.match_length=0,y.ins_h=y.window[y.strstart],y.ins_h=(y.ins_h<<y.hash_shift^y.window[y.strstart+1])&y.hash_mask;else O=o._tr_tally(y,0,y.window[y.strstart]),y.lookahead--,y.strstart++;if(O&&($(y,!1),y.strm.avail_out===0))return T}return y.insert=y.strstart<w-1?y.strstart:w-1,V===p?($(y,!0),y.strm.avail_out===0?W:G):y.last_lit&&($(y,!1),y.strm.avail_out===0)?T:U}function Ee(y,V){for(var Y,O,v;;){if(y.lookahead<R){if(Pe(y),y.lookahead<R&&V===h)return T;if(y.lookahead===0)break}if(Y=0,y.lookahead>=w&&(y.ins_h=(y.ins_h<<y.hash_shift^y.window[y.strstart+w-1])&y.hash_mask,Y=y.prev[y.strstart&y.w_mask]=y.head[y.ins_h],y.head[y.ins_h]=y.strstart),y.prev_length=y.match_length,y.prev_match=y.match_start,y.match_length=w-1,Y!==0&&y.prev_length<y.max_lazy_match&&y.strstart-Y<=y.w_size-R&&(y.match_length=ie(y,Y),y.match_length<=5&&(y.strategy===1||y.match_length===w&&4096<y.strstart-y.match_start)&&(y.match_length=w-1)),y.prev_length>=w&&y.match_length<=y.prev_length){for(v=y.strstart+y.lookahead-w,O=o._tr_tally(y,y.strstart-1-y.prev_match,y.prev_length-w),y.lookahead-=y.prev_length-1,y.prev_length-=2;++y.strstart<=v&&(y.ins_h=(y.ins_h<<y.hash_shift^y.window[y.strstart+w-1])&y.hash_mask,Y=y.prev[y.strstart&y.w_mask]=y.head[y.ins_h],y.head[y.ins_h]=y.strstart),--y.prev_length!=0;);if(y.match_available=0,y.match_length=w-1,y.strstart++,O&&($(y,!1),y.strm.avail_out===0))return T}else if(y.match_available){if((O=o._tr_tally(y,0,y.window[y.strstart-1]))&&$(y,!1),y.strstart++,y.lookahead--,y.strm.avail_out===0)return T}else y.match_available=1,y.strstart++,y.lookahead--}return y.match_available&&(O=o._tr_tally(y,0,y.window[y.strstart-1]),y.match_available=0),y.insert=y.strstart<w-1?y.strstart:w-1,V===p?($(y,!0),y.strm.avail_out===0?W:G):y.last_lit&&($(y,!1),y.strm.avail_out===0)?T:U}function Ae(y,V,Y,O,v){this.good_length=y,this.max_lazy=V,this.nice_length=Y,this.max_chain=O,this.func=v}function qe(){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=E,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 a.Buf16(2*C),this.dyn_dtree=new a.Buf16(2*(2*D+1)),this.bl_tree=new a.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 a.Buf16(x+1),this.heap=new a.Buf16(2*I+1),he(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new a.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(y){var V;return y&&y.state?(y.total_in=y.total_out=0,y.data_type=m,(V=y.state).pending=0,V.pending_out=0,V.wrap<0&&(V.wrap=-V.wrap),V.status=V.wrap?k:M,y.adler=V.wrap===2?0:1,V.last_flush=h,o._tr_init(V),f):se(y,g)}function Rt(y){var V=Re(y);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})(y.state),V}function St(y,V,Y,O,v,F){if(!y)return g;var K=1;if(V===b&&(V=6),O<0?(K=0,O=-O):15<O&&(K=2,O-=16),v<1||S<v||Y!==E||O<8||15<O||V<0||9<V||F<0||_<F)return se(y,g);O===8&&(O=9);var Q=new qe;return(y.state=Q).strm=y,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 a.Buf8(2*Q.w_size),Q.head=new a.Buf16(Q.hash_size),Q.prev=new a.Buf16(Q.w_size),Q.lit_bufsize=1<<v+6,Q.pending_buf_size=4*Q.lit_bufsize,Q.pending_buf=new a.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,Rt(y)}s=[new Ae(0,0,0,0,function(y,V){var Y=65535;for(Y>y.pending_buf_size-5&&(Y=y.pending_buf_size-5);;){if(y.lookahead<=1){if(Pe(y),y.lookahead===0&&V===h)return T;if(y.lookahead===0)break}y.strstart+=y.lookahead,y.lookahead=0;var O=y.block_start+Y;if((y.strstart===0||y.strstart>=O)&&(y.lookahead=y.strstart-O,y.strstart=O,$(y,!1),y.strm.avail_out===0)||y.strstart-y.block_start>=y.w_size-R&&($(y,!1),y.strm.avail_out===0))return T}return y.insert=0,V===p?($(y,!0),y.strm.avail_out===0?W:G):(y.strstart>y.block_start&&($(y,!1),y.strm.avail_out),T)}),new Ae(4,4,8,4,Ze),new Ae(4,5,16,8,Ze),new Ae(4,6,32,32,Ze),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(y,V){return St(y,V,E,15,8,0)},i.deflateInit2=St,i.deflateReset=Rt,i.deflateResetKeep=Re,i.deflateSetHeader=function(y,V){return y&&y.state?y.state.wrap!==2?g:(y.state.gzhead=V,f):g},i.deflate=function(y,V){var Y,O,v,F;if(!y||!y.state||5<V||V<0)return y?se(y,g):g;if(O=y.state,!y.output||!y.input&&y.avail_in!==0||O.status===666&&V!==p)return se(y,y.avail_out===0?-5:g);if(O.strm=y,Y=O.last_flush,O.last_flush=V,O.status===k)if(O.wrap===2)y.adler=0,ue(O,31),ue(O,139),ue(O,8),O.gzhead?(ue(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)),ue(O,255&O.gzhead.time),ue(O,O.gzhead.time>>8&255),ue(O,O.gzhead.time>>16&255),ue(O,O.gzhead.time>>24&255),ue(O,O.level===9?2:2<=O.strategy||O.level<2?4:0),ue(O,255&O.gzhead.os),O.gzhead.extra&&O.gzhead.extra.length&&(ue(O,255&O.gzhead.extra.length),ue(O,O.gzhead.extra.length>>8&255)),O.gzhead.hcrc&&(y.adler=l(y.adler,O.pending_buf,O.pending,0)),O.gzindex=0,O.status=69):(ue(O,0),ue(O,0),ue(O,0),ue(O,0),ue(O,0),ue(O,O.level===9?2:2<=O.strategy||O.level<2?4:0),ue(O,3),O.status=M);else{var K=E+(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,y.adler>>>16),ae(O,65535&y.adler)),y.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&&(y.adler=l(y.adler,O.pending_buf,O.pending-v,v)),j(y),v=O.pending,O.pending!==O.pending_buf_size));)ue(O,255&O.gzhead.extra[O.gzindex]),O.gzindex++;O.gzhead.hcrc&&O.pending>v&&(y.adler=l(y.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&&(y.adler=l(y.adler,O.pending_buf,O.pending-v,v)),j(y),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,ue(O,F)}while(F!==0);O.gzhead.hcrc&&O.pending>v&&(y.adler=l(y.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&&(y.adler=l(y.adler,O.pending_buf,O.pending-v,v)),j(y),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,ue(O,F)}while(F!==0);O.gzhead.hcrc&&O.pending>v&&(y.adler=l(y.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(y),O.pending+2<=O.pending_buf_size&&(ue(O,255&y.adler),ue(O,y.adler>>8&255),y.adler=0,O.status=M)):O.status=M),O.pending!==0){if(j(y),y.avail_out===0)return O.last_flush=-1,f}else if(y.avail_in===0&&Z(V)<=Z(Y)&&V!==p)return se(y,-5);if(O.status===666&&y.avail_in!==0)return se(y,-5);if(y.avail_in!==0||O.lookahead!==0||V!==h&&O.status!==666){var Q=O.strategy===2?(function(z,te){for(var le;;){if(z.lookahead===0&&(Pe(z),z.lookahead===0)){if(te===h)return T;break}if(z.match_length=0,le=o._tr_tally(z,0,z.window[z.strstart]),z.lookahead--,z.strstart++,le&&($(z,!1),z.strm.avail_out===0))return T}return z.insert=0,te===p?($(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 le,re,ce,ve,ye=z.window;;){if(z.lookahead<=P){if(Pe(z),z.lookahead<=P&&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+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<ve);z.match_length=P-(ve-ce),z.match_length>z.lookahead&&(z.match_length=z.lookahead)}if(z.match_length>=w?(le=o._tr_tally(z,1,z.match_length-w),z.lookahead-=z.match_length,z.strstart+=z.match_length,z.match_length=0):(le=o._tr_tally(z,0,z.window[z.strstart]),z.lookahead--,z.strstart++),le&&($(z,!1),z.strm.avail_out===0))return T}return z.insert=0,te===p?($(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 y.avail_out===0&&(O.last_flush=-1),f;if(Q===U&&(V===1?o._tr_align(O):V!==5&&(o._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(y),y.avail_out===0))return O.last_flush=-1,f}return V!==p?f:O.wrap<=0?1:(O.wrap===2?(ue(O,255&y.adler),ue(O,y.adler>>8&255),ue(O,y.adler>>16&255),ue(O,y.adler>>24&255),ue(O,255&y.total_in),ue(O,y.total_in>>8&255),ue(O,y.total_in>>16&255),ue(O,y.total_in>>24&255)):(ae(O,y.adler>>>16),ae(O,65535&y.adler)),j(y),0<O.wrap&&(O.wrap=-O.wrap),O.pending!==0?f:1)},i.deflateEnd=function(y){var V;return y&&y.state?(V=y.state.status)!==k&&V!==69&&V!==73&&V!==91&&V!==103&&V!==M&&V!==666?se(y,g):(y.state=null,V===M?se(y,-3):f):g},i.deflateSetDictionary=function(y,V){var Y,O,v,F,K,Q,z,te,le=V.length;if(!y||!y.state||(F=(Y=y.state).wrap)===2||F===1&&Y.status!==k||Y.lookahead)return g;for(F===1&&(y.adler=u(y.adler,V,le,0)),Y.wrap=0,le>=Y.w_size&&(F===0&&(he(Y.head),Y.strstart=0,Y.block_start=0,Y.insert=0),te=new a.Buf8(Y.w_size),a.arraySet(te,V,le-Y.w_size,Y.w_size,0),V=te,le=Y.w_size),K=y.avail_in,Q=y.next_in,z=y.input,y.avail_in=le,y.next_in=0,y.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,y.next_in=Q,y.input=z,y.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,a){var o,u,l,d,h,p,f,g,b,_,m,E,S,I,D,B,C,x,w,P,R,k,M,T,U;o=s.state,u=s.next_in,T=s.input,l=u+(s.avail_in-5),d=s.next_out,U=s.output,h=d-(a-s.avail_out),p=d+(s.avail_out-257),f=o.dmax,g=o.wsize,b=o.whave,_=o.wnext,m=o.window,E=o.hold,S=o.bits,I=o.lencode,D=o.distcode,B=(1<<o.lenbits)-1,C=(1<<o.distbits)-1;e:do{S<15&&(E+=T[u++]<<S,S+=8,E+=T[u++]<<S,S+=8),x=I[E&B];t:for(;;){if(E>>>=w=x>>>24,S-=w,(w=x>>>16&255)===0)U[d++]=65535&x;else{if(!(16&w)){if((64&w)==0){x=I[(65535&x)+(E&(1<<w)-1)];continue t}if(32&w){o.mode=12;break e}s.msg="invalid literal/length code",o.mode=30;break e}P=65535&x,(w&=15)&&(S<w&&(E+=T[u++]<<S,S+=8),P+=E&(1<<w)-1,E>>>=w,S-=w),S<15&&(E+=T[u++]<<S,S+=8,E+=T[u++]<<S,S+=8),x=D[E&C];n:for(;;){if(E>>>=w=x>>>24,S-=w,!(16&(w=x>>>16&255))){if((64&w)==0){x=D[(65535&x)+(E&(1<<w)-1)];continue n}s.msg="invalid distance code",o.mode=30;break e}if(R=65535&x,S<(w&=15)&&(E+=T[u++]<<S,(S+=8)<w&&(E+=T[u++]<<S,S+=8)),f<(R+=E&(1<<w)-1)){s.msg="invalid distance too far back",o.mode=30;break e}if(E>>>=w,S-=w,(w=d-h)<R){if(b<(w=R-w)&&o.sane){s.msg="invalid distance too far back",o.mode=30;break e}if(M=m,(k=0)===_){if(k+=g-w,w<P){for(P-=w;U[d++]=m[k++],--w;);k=d-R,M=U}}else if(_<w){if(k+=g+_-w,(w-=_)<P){for(P-=w;U[d++]=m[k++],--w;);if(k=0,_<P){for(P-=w=_;U[d++]=m[k++],--w;);k=d-R,M=U}}}else if(k+=_-w,w<P){for(P-=w;U[d++]=m[k++],--w;);k=d-R,M=U}for(;2<P;)U[d++]=M[k++],U[d++]=M[k++],U[d++]=M[k++],P-=3;P&&(U[d++]=M[k++],1<P&&(U[d++]=M[k++]))}else{for(k=d-R;U[d++]=U[k++],U[d++]=U[k++],U[d++]=U[k++],2<(P-=3););P&&(U[d++]=U[k++],1<P&&(U[d++]=U[k++]))}break}}break}}while(u<l&&d<p);u-=P=S>>3,E&=(1<<(S-=P<<3))-1,s.next_in=u,s.next_out=d,s.avail_in=u<l?l-u+5:5-(u-l),s.avail_out=d<p?p-d+257:257-(d-p),o.hold=E,o.bits=S}},{}],49:[function(n,r,i){var s=n("../utils/common"),a=n("./adler32"),o=n("./crc32"),u=n("./inffast"),l=n("./inftrees"),d=1,h=2,p=0,f=-2,g=1,b=852,_=592;function m(k){return(k>>>24&255)+(k>>>8&65280)+((65280&k)<<8)+((255&k)<<24)}function E(){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 S(k){var M;return k&&k.state?(M=k.state,k.total_in=k.total_out=M.total=0,k.msg="",M.wrap&&(k.adler=1&M.wrap),M.mode=g,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(b),M.distcode=M.distdyn=new s.Buf32(_),M.sane=1,M.back=-1,p):f}function I(k){var M;return k&&k.state?((M=k.state).wsize=0,M.whave=0,M.wnext=0,S(k)):f}function D(k,M){var T,U;return k&&k.state?(U=k.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(k))):f}function B(k,M){var T,U;return k?(U=new E,(k.state=U).window=null,(T=D(k,M))!==p&&(k.state=null),T):f}var C,x,w=!0;function P(k){if(w){var M;for(C=new s.Buf32(512),x=new s.Buf32(32),M=0;M<144;)k.lens[M++]=8;for(;M<256;)k.lens[M++]=9;for(;M<280;)k.lens[M++]=7;for(;M<288;)k.lens[M++]=8;for(l(d,k.lens,0,288,C,0,k.work,{bits:9}),M=0;M<32;)k.lens[M++]=5;l(h,k.lens,0,32,x,0,k.work,{bits:5}),w=!1}k.lencode=C,k.lenbits=9,k.distcode=x,k.distbits=5}function R(k,M,T,U){var W,G=k.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=S,i.inflateInit=function(k){return B(k,15)},i.inflateInit2=B,i.inflate=function(k,M){var T,U,W,G,se,Z,he,j,$,ue,ae,ie,Pe,Ze,Ee,Ae,qe,Re,Rt,St,y,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(!k||!k.state||!k.output||!k.input&&k.avail_in!==0)return f;(T=k.state).mode===12&&(T.mode=13),se=k.next_out,W=k.output,he=k.avail_out,G=k.next_in,U=k.input,Z=k.avail_in,j=T.hold,$=T.bits,ue=Z,ae=he,V=p;e:for(;;)switch(T.mode){case g: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=o(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){k.msg="incorrect header check",T.mode=30;break}if((15&j)!=8){k.msg="unknown compression method",T.mode=30;break}if($-=4,y=8+(15&(j>>>=4)),T.wbits===0)T.wbits=y;else if(y>T.wbits){k.msg="invalid window size",T.mode=30;break}T.dmax=1<<y,k.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){k.msg="unknown compression method",T.mode=30;break}if(57344&T.flags){k.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=o(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=o(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=o(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=o(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&&(y=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,y)),512&T.flags&&(T.check=o(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;y=U[G+ie++],T.head&&y&&T.length<65536&&(T.head.name+=String.fromCharCode(y)),y&&ie<Z;);if(512&T.flags&&(T.check=o(T.check,U,ie,G)),Z-=ie,G+=ie,y)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;y=U[G+ie++],T.head&&y&&T.length<65536&&(T.head.comment+=String.fromCharCode(y)),y&&ie<Z;);if(512&T.flags&&(T.check=o(T.check,U,ie,G)),Z-=ie,G+=ie,y)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)){k.msg="header crc mismatch",T.mode=30;break}$=j=0}T.head&&(T.head.hcrc=T.flags>>9&1,T.head.done=!0),k.adler=T.check=0,T.mode=12;break;case 10:for(;$<32;){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}k.adler=T.check=m(j),$=j=0,T.mode=11;case 11:if(T.havedict===0)return k.next_out=se,k.avail_out=he,k.next_in=G,k.avail_in=Z,T.hold=j,T.bits=$,2;k.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:k.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)){k.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){k.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=l(0,T.lens,0,19,T.lencode,0,T.work,Y),T.lenbits=Y.bits,V){k.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,qe=65535&v,!((Ee=v>>>24)<=$);){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}if(qe<16)j>>>=Ee,$-=Ee,T.lens[T.have++]=qe;else{if(qe===16){for(O=Ee+2;$<O;){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}if(j>>>=Ee,$-=Ee,T.have===0){k.msg="invalid bit length repeat",T.mode=30;break}y=T.lens[T.have-1],ie=3+(3&j),j>>>=2,$-=2}else if(qe===17){for(O=Ee+3;$<O;){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}$-=Ee,y=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,y=0,ie=11+(127&(j>>>=Ee)),j>>>=7,$-=7}if(T.have+ie>T.nlen+T.ndist){k.msg="invalid bit length repeat",T.mode=30;break}for(;ie--;)T.lens[T.have++]=y}}if(T.mode===30)break;if(T.lens[256]===0){k.msg="invalid code -- missing end-of-block",T.mode=30;break}if(T.lenbits=9,Y={bits:T.lenbits},V=l(d,T.lens,0,T.nlen,T.lencode,0,T.work,Y),T.lenbits=Y.bits,V){k.msg="invalid literal/lengths set",T.mode=30;break}if(T.distbits=6,T.distcode=T.distdyn,Y={bits:T.distbits},V=l(h,T.lens,T.nlen,T.ndist,T.distcode,0,T.work,Y),T.distbits=Y.bits,V){k.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){k.next_out=se,k.avail_out=he,k.next_in=G,k.avail_in=Z,T.hold=j,T.bits=$,u(k,ae),se=k.next_out,W=k.output,he=k.avail_out,G=k.next_in,U=k.input,Z=k.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,qe=65535&v,!((Ee=v>>>24)<=$);){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}if(Ae&&(240&Ae)==0){for(Re=Ee,Rt=Ae,St=qe;Ae=(v=T.lencode[St+((j&(1<<Re+Rt)-1)>>Re)])>>>16&255,qe=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=qe,Ae===0){T.mode=26;break}if(32&Ae){T.back=-1,T.mode=12;break}if(64&Ae){k.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,qe=65535&v,!((Ee=v>>>24)<=$);){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}if((240&Ae)==0){for(Re=Ee,Rt=Ae,St=qe;Ae=(v=T.distcode[St+((j&(1<<Re+Rt)-1)>>Re)])>>>16&255,qe=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){k.msg="invalid distance code",T.mode=30;break}T.offset=qe,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){k.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){k.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),Ze=T.window}else Ze=W,Pe=se-T.offset,ie=T.length;for(he<ie&&(ie=he),he-=ie,T.length-=ie;W[se++]=Ze[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,k.total_out+=ae,T.total+=ae,ae&&(k.adler=T.check=T.flags?o(T.check,W,ae,se-ae):a(T.check,W,ae,se-ae)),ae=he,(T.flags?j:m(j))!==T.check){k.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)){k.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 k.next_out=se,k.avail_out=he,k.next_in=G,k.avail_in=Z,T.hold=j,T.bits=$,(T.wsize||ae!==k.avail_out&&T.mode<30&&(T.mode<27||M!==4))&&R(k,k.output,k.next_out,ae-k.avail_out)?(T.mode=31,-4):(ue-=k.avail_in,ae-=k.avail_out,k.total_in+=ue,k.total_out+=ae,T.total+=ae,T.wrap&&ae&&(k.adler=T.check=T.flags?o(T.check,W,ae,k.next_out-ae):a(T.check,W,ae,k.next_out-ae)),k.data_type=T.bits+(T.last?64:0)+(T.mode===12?128:0)+(T.mode===20||T.mode===15?256:0),(ue==0&&ae===0||M===4)&&V===p&&(V=-5),V)},i.inflateEnd=function(k){if(!k||!k.state)return f;var M=k.state;return M.window&&(M.window=null),k.state=null,p},i.inflateGetHeader=function(k,M){var T;return k&&k.state?(2&(T=k.state).wrap)==0?f:((T.head=M).done=!1,p):f},i.inflateSetDictionary=function(k,M){var T,U=M.length;return k&&k.state?(T=k.state).wrap!==0&&T.mode!==11?f:T.mode===11&&a(1,M,U,0)!==T.check?-3:R(k,M,U,U)?(T.mode=31,-4):(T.havedict=1,p):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"),a=[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],o=[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],l=[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,p,f,g,b,_,m){var E,S,I,D,B,C,x,w,P,R=m.bits,k=0,M=0,T=0,U=0,W=0,G=0,se=0,Z=0,he=0,j=0,$=null,ue=0,ae=new s.Buf16(16),ie=new s.Buf16(16),Pe=null,Ze=0;for(k=0;k<=15;k++)ae[k]=0;for(M=0;M<f;M++)ae[h[p+M]]++;for(W=R,U=15;1<=U&&ae[U]===0;U--);if(U<W&&(W=U),U===0)return g[b++]=20971520,g[b++]=20971520,m.bits=1,0;for(T=1;T<U&&ae[T]===0;T++);for(W<T&&(W=T),k=Z=1;k<=15;k++)if(Z<<=1,(Z-=ae[k])<0)return-1;if(0<Z&&(d===0||U!==1))return-1;for(ie[1]=0,k=1;k<15;k++)ie[k+1]=ie[k]+ae[k];for(M=0;M<f;M++)h[p+M]!==0&&(_[ie[h[p+M]]++]=M);if(C=d===0?($=Pe=_,19):d===1?($=a,ue-=257,Pe=o,Ze-=257,256):($=u,Pe=l,-1),k=T,B=b,se=M=j=0,I=-1,D=(he=1<<(G=W))-1,d===1&&852<he||d===2&&592<he)return 1;for(;;){for(x=k-se,P=_[M]<C?(w=0,_[M]):_[M]>C?(w=Pe[Ze+_[M]],$[ue+_[M]]):(w=96,0),E=1<<k-se,T=S=1<<G;g[B+(j>>se)+(S-=E)]=x<<24|w<<16|P|0,S!==0;);for(E=1<<k-1;j&E;)E>>=1;if(E!==0?(j&=E-1,j+=E):j=0,M++,--ae[k]==0){if(k===U)break;k=h[p+_[M]]}if(W<k&&(j&D)!==I){for(se===0&&(se=W),B+=T,Z=1<<(G=k-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;g[I=j&D]=W<<24|G<<16|B-b|0}}return j!==0&&(g[B+j]=k-se<<24|64<<16|0),m.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"),a=0,o=1;function u(v){for(var F=v.length;0<=--F;)v[F]=0}var l=0,d=29,h=256,p=h+1+d,f=30,g=19,b=2*p+1,_=15,m=16,E=7,S=256,I=16,D=17,B=18,C=[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],x=[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],P=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],R=new Array(2*(p+2));u(R);var k=new Array(2*f);u(k);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 ue(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>m-K?(v.bi_buf|=F<<v.bi_valid&65535,ue(v,v.bi_buf),v.bi_buf=F>>m-v.bi_valid,v.bi_valid+=K-m):(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 Ze(v,F,K){var Q,z,te=new Array(_+1),le=0;for(Q=1;Q<=_;Q++)te[Q]=le=le+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<p;F++)v.dyn_ltree[2*F]=0;for(F=0;F<f;F++)v.dyn_dtree[2*F]=0;for(F=0;F<g;F++)v.bl_tree[2*F]=0;v.dyn_ltree[2*S]=1,v.opt_len=v.static_len=0,v.last_lit=v.matches=0}function Ae(v){8<v.bi_valid?ue(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 qe(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&&qe(F,v.heap[z+1],v.heap[z],v.depth)&&z++,!qe(F,Q,v.heap[z],v.depth));)v.heap[K]=v.heap[z],K=z,z<<=1;v.heap[K]=Q}function Rt(v,F,K){var Q,z,te,le,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),(le=C[te])!==0&&ae(v,z-=U[te],le),ie(v,te=$(--Q),K),(le=x[te])!==0&&ae(v,Q-=Z[te],le)),re<v.last_lit;);ie(v,S,F)}function St(v,F){var K,Q,z,te=F.dyn_tree,le=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=b,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-=le[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 pr,Dt,mr,De,ki,Ha,jt=gt.dyn_tree,bh=gt.max_code,Xk=gt.stat_desc.static_tree,Qk=gt.stat_desc.has_stree,Zk=gt.stat_desc.extra_bits,Eh=gt.stat_desc.extra_base,gr=gt.stat_desc.max_length,Ai=0;for(De=0;De<=_;De++)ye.bl_count[De]=0;for(jt[2*ye.heap[ye.heap_max]+1]=0,pr=ye.heap_max+1;pr<b;pr++)gr<(De=jt[2*jt[2*(Dt=ye.heap[pr])+1]+1]+1)&&(De=gr,Ai++),jt[2*Dt+1]=De,bh<Dt||(ye.bl_count[De]++,ki=0,Eh<=Dt&&(ki=Zk[Dt-Eh]),Ha=jt[2*Dt],ye.opt_len+=Ha*(De+ki),Qk&&(ye.static_len+=Ha*(Xk[2*Dt+1]+ki)));if(Ai!==0){do{for(De=gr-1;ye.bl_count[De]===0;)De--;ye.bl_count[De]--,ye.bl_count[De+1]+=2,ye.bl_count[gr]--,Ai-=2}while(0<Ai);for(De=gr;De!==0;De--)for(Dt=ye.bl_count[De];Dt!==0;)bh<(mr=ye.heap[--pr])||(jt[2*mr+1]!==De&&(ye.opt_len+=(De-jt[2*mr+1])*jt[2*mr],jt[2*mr+1]=De),Dt--)}})(v,F),Ze(te,ve,v.bl_count)}function y(v,F,K){var Q,z,te=-1,le=F[1],re=0,ce=7,ve=4;for(le===0&&(ce=138,ve=3),F[2*(K+1)+1]=65535,Q=0;Q<=K;Q++)z=le,le=F[2*(Q+1)+1],++re<ce&&z===le||(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)===le?(ce=138,3):z===le?(ce=6,3):(ce=7,4))}function V(v,F,K){var Q,z,te=-1,le=F[1],re=0,ce=7,ve=4;for(le===0&&(ce=138,ve=3),Q=0;Q<=K;Q++)if(z=le,le=F[2*(Q+1)+1],!(++re<ce&&z===le)){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)===le?(ce=138,3):z===le?(ce=6,3):(ce=7,4)}}u(Z);var Y=!1;function O(v,F,K,Q){ae(v,(l<<1)+(Q?1:0),3),(function(z,te,le,re){Ae(z),ue(z,le),ue(z,~le),s.arraySet(z.pending_buf,z.window,te,le,z.pending),z.pending+=le})(v,F,K)}i._tr_init=function(v){Y||((function(){var F,K,Q,z,te,le=new Array(_+1);for(z=Q=0;z<d-1;z++)for(U[z]=Q,F=0;F<1<<C[z];F++)T[Q++]=z;for(T[Q-1]=z,z=te=0;z<16;z++)for(Z[z]=te,F=0;F<1<<x[z];F++)M[te++]=z;for(te>>=7;z<f;z++)for(Z[z]=te<<7,F=0;F<1<<x[z]-7;F++)M[256+te++]=z;for(K=0;K<=_;K++)le[K]=0;for(F=0;F<=143;)R[2*F+1]=8,F++,le[8]++;for(;F<=255;)R[2*F+1]=9,F++,le[9]++;for(;F<=279;)R[2*F+1]=7,F++,le[7]++;for(;F<=287;)R[2*F+1]=8,F++,le[8]++;for(Ze(R,p+1,le),F=0;F<f;F++)k[2*F+1]=5,k[2*F]=Pe(F,5);W=new he(R,C,h+1,p,_),G=new he(k,x,0,f,_),se=new he(new Array(0),w,0,g,E)})(),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,le=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 a;if(re.dyn_ltree[18]!==0||re.dyn_ltree[20]!==0||re.dyn_ltree[26]!==0)return o;for(ce=32;ce<h;ce++)if(re.dyn_ltree[2*ce]!==0)return o;return a})(v)),St(v,v.l_desc),St(v,v.d_desc),le=(function(re){var ce;for(y(re,re.dyn_ltree,re.l_desc.max_code),y(re,re.dyn_dtree,re.d_desc.max_code),St(re,re.bl_desc),ce=g-1;3<=ce&&re.bl_tree[2*P[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),Rt(v,R,k)):(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*P[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,le+1),Rt(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,S,R),(function(F){F.bi_valid===16?(ue(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(a,o){if(!a.setImmediate){var u,l,d,h,p=1,f={},g=!1,b=a.document,_=Object.getPrototypeOf&&Object.getPrototypeOf(a);_=_&&_.setTimeout?_:a,u={}.toString.call(a.process)==="[object process]"?function(I){process.nextTick(function(){E(I)})}:(function(){if(a.postMessage&&!a.importScripts){var I=!0,D=a.onmessage;return a.onmessage=function(){I=!1},a.postMessage("","*"),a.onmessage=D,I}})()?(h="setImmediate$"+Math.random()+"$",a.addEventListener?a.addEventListener("message",S,!1):a.attachEvent("onmessage",S),function(I){a.postMessage(h+I,"*")}):a.MessageChannel?((d=new MessageChannel).port1.onmessage=function(I){E(I.data)},function(I){d.port2.postMessage(I)}):b&&"onreadystatechange"in b.createElement("script")?(l=b.documentElement,function(I){var D=b.createElement("script");D.onreadystatechange=function(){E(I),D.onreadystatechange=null,l.removeChild(D),D=null},l.appendChild(D)}):function(I){setTimeout(E,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 C={callback:I,args:D};return f[p]=C,u(p),p++},_.clearImmediate=m}function m(I){delete f[I]}function E(I){if(g)setTimeout(E,0,I);else{var D=f[I];if(D){g=!0;try{(function(B){var C=B.callback,x=B.args;switch(x.length){case 0:C();break;case 1:C(x[0]);break;case 2:C(x[0],x[1]);break;case 3:C(x[0],x[1],x[2]);break;default:C.apply(o,x)}})(D)}finally{m(I),g=!1}}}}function S(I){I.source===a&&typeof I.data=="string"&&I.data.indexOf(h)===0&&E(+I.data.slice(h.length))}})(typeof self>"u"?s===void 0?this:s:self)}).call(this,typeof $r<"u"?$r:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(ba)),ba.exports}var jw=$w();const fd=ig(jw);function pd(e){return!!(e.startsWith("/")||e.startsWith("\\")||e.includes("..")||e.includes("\0")||/^[a-zA-Z]:/.test(e))}async function md(e){const t=await fd.loadAsync(e),n={document:"",media:new Map,rawParts:new Map};for(const[r,i]of Object.entries(t.files))if(!i.dir&&!pd(r))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 Ea(e){const t=new fd;let n=e.contentTypes??qw;[...e.rawParts.keys()].some(i=>i.endsWith(".json"))&&!n.includes('Extension="json"')&&(n=n.replace("</Types>",` <Default Extension="json" ContentType="application/json"/>
|
|
38
|
-
</Types>`)),t.file("[Content_Types].xml",n),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[i,s]of e.media)t.file(i,s);for(const[i,s]of e.rawParts)
|
|
36
|
+
*/var pd;function Yw(){return pd||(pd=1,(function(e,t){(function(n){e.exports=n()})(function(){return(function n(r,i,s){function o(l,d){if(!i[l]){if(!r[l]){var h=typeof hi=="function"&&hi;if(!d&&h)return h(l,!0);if(a)return a(l,!0);var p=new Error("Cannot find module '"+l+"'");throw p.code="MODULE_NOT_FOUND",p}var f=i[l]={exports:{}};r[l][0].call(f.exports,function(g){var b=r[l][1][g];return o(b||g)},f,f.exports,n,r,i,s)}return i[l].exports}for(var a=typeof hi=="function"&&hi,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 l,d,h,p,f,g,b,_=[],m=0,E=u.length,S=E,I=s.getTypeOf(u)!=="string";m<u.length;)S=E-m,h=I?(l=u[m++],d=m<E?u[m++]:0,m<E?u[m++]:0):(l=u.charCodeAt(m++),d=m<E?u.charCodeAt(m++):0,m<E?u.charCodeAt(m++):0),p=l>>2,f=(3&l)<<4|d>>4,g=1<S?(15&d)<<2|h>>6:64,b=2<S?63&h:64,_.push(a.charAt(p)+a.charAt(f)+a.charAt(g)+a.charAt(b));return _.join("")},i.decode=function(u){var l,d,h,p,f,g,b=0,_=0,m="data:";if(u.substr(0,m.length)===m)throw new Error("Invalid base64 input, it looks like a data url.");var E,S=3*(u=u.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(u.charAt(u.length-1)===a.charAt(64)&&S--,u.charAt(u.length-2)===a.charAt(64)&&S--,S%1!=0)throw new Error("Invalid base64 input, bad content length.");for(E=o.uint8array?new Uint8Array(0|S):new Array(0|S);b<u.length;)l=a.indexOf(u.charAt(b++))<<2|(p=a.indexOf(u.charAt(b++)))>>4,d=(15&p)<<4|(f=a.indexOf(u.charAt(b++)))>>2,h=(3&f)<<6|(g=a.indexOf(u.charAt(b++))),E[_++]=l,f!==64&&(E[_++]=d),g!==64&&(E[_++]=h);return E}},{"./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 l(d,h,p,f,g){this.compressedSize=d,this.uncompressedSize=h,this.crc32=p,this.compression=f,this.compressedContent=g}l.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)}},l.createWorkerFrom=function(d,h,p){return d.pipe(new a).pipe(new u("uncompressedSize")).pipe(h.compressWorker(p)).pipe(new u("compressedSize")).withStreamInfo("compression",h)},r.exports=l},{"./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=[],l=0;l<256;l++){a=l;for(var d=0;d<8;d++)a=1&a?3988292384^a>>>1:a>>>1;u[l]=a}return u})();r.exports=function(a,u){return a!==void 0&&a.length?s.getTypeOf(a)!=="string"?(function(l,d,h,p){var f=o,g=p+h;l^=-1;for(var b=p;b<g;b++)l=l>>>8^f[255&(l^d[b])];return-1^l})(0|u,a,a.length,0):(function(l,d,h,p){var f=o,g=p+h;l^=-1;for(var b=p;b<g;b++)l=l>>>8^f[255&(l^d.charCodeAt(b))];return-1^l})(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"),l=s?"uint8array":"array";function d(h,p){u.call(this,"FlateWorker/"+h),this._pako=null,this._pakoAction=h,this._pakoOptions=p,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(l,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(p){h.push({data:p,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,g){var b,_="";for(b=0;b<g;b++)_+=String.fromCharCode(255&f),f>>>=8;return _}function o(f,g,b,_,m,E){var S,I,D=f.file,B=f.compression,C=E!==l.utf8encode,x=a.transformTo("string",E(D.name)),w=a.transformTo("string",l.utf8encode(D.name)),P=D.comment,R=a.transformTo("string",E(P)),k=a.transformTo("string",l.utf8encode(P)),M=w.length!==D.name.length,T=k.length!==P.length,U="",W="",G="",se=D.dir,Z=D.date,he={crc32:0,compressedSize:0,uncompressedSize:0};g&&!b||(he.crc32=f.crc32,he.compressedSize=f.compressedSize,he.uncompressedSize=f.uncompressedSize);var j=0;g&&(j|=8),C||!M&&!T||(j|=2048);var $=0,oe=0;se&&($|=16),m==="UNIX"?(oe=798,$|=(function(ie,Pe){var Ze=ie;return ie||(Ze=Pe?16893:33204),(65535&Ze)<<16})(D.unixPermissions,se)):(oe=20,$|=(function(ie){return 63&(ie||0)})(D.dosPermissions)),S=Z.getUTCHours(),S<<=6,S|=Z.getUTCMinutes(),S<<=5,S|=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(x),4)+w,U+="up"+s(W.length,2)+W),T&&(G=s(1,1)+s(d(R),4)+k,U+="uc"+s(G.length,2)+G);var ae="";return ae+=`
|
|
37
|
+
\0`,ae+=s(j,2),ae+=B.magic,ae+=s(S,2),ae+=s(I,2),ae+=s(he.crc32,4),ae+=s(he.compressedSize,4),ae+=s(he.uncompressedSize,4),ae+=s(x.length,2),ae+=s(U.length,2),{fileRecord:h.LOCAL_FILE_HEADER+ae+x+U,dirRecord:h.CENTRAL_FILE_HEADER+s(oe,2)+ae+s(R.length,2)+"\0\0\0\0"+s($,4)+s(_,4)+x+U+R}}var a=n("../utils"),u=n("../stream/GenericWorker"),l=n("../utf8"),d=n("../crc32"),h=n("../signature");function p(f,g,b,_){u.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=g,this.zipPlatform=b,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(p,u),p.prototype.push=function(f){var g=f.meta.percent||0,b=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:b?(g+100*(b-_-1))/b:100}}))},p.prototype.openedSource=function(f){this.currentSourceOffset=this.bytesWritten,this.currentFile=f.file.name;var g=this.streamFiles&&!f.file.dir;if(g){var b=o(f,g,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:b.fileRecord,meta:{percent:0}})}else this.accumulate=!0},p.prototype.closedSource=function(f){this.accumulate=!1;var g=this.streamFiles&&!f.file.dir,b=o(f,g,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(b.dirRecord),g)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:b.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},p.prototype.flush=function(){for(var f=this.bytesWritten,g=0;g<this.dirRecords.length;g++)this.push({data:this.dirRecords[g],meta:{percent:100}});var b=this.bytesWritten-f,_=(function(m,E,S,I,D){var B=a.transformTo("string",D(I));return h.CENTRAL_DIRECTORY_END+"\0\0\0\0"+s(m,2)+s(m,2)+s(E,4)+s(S,4)+s(B.length,2)+B})(this.dirRecords.length,b,f,this.zipComment,this.encodeFileName);this.push({data:_,meta:{percent:100}})},p.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},p.prototype.registerPrevious=function(f){this._sources.push(f);var g=this;return f.on("data",function(b){g.processChunk(b)}),f.on("end",function(){g.closedSource(g.previous.streamInfo),g._sources.length?g.prepareNextSource():g.end()}),f.on("error",function(b){g.error(b)}),this},p.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))},p.prototype.error=function(f){var g=this._sources;if(!u.prototype.error.call(this,f))return!1;for(var b=0;b<g.length;b++)try{g[b].error(f)}catch{}return!0},p.prototype.lock=function(){u.prototype.lock.call(this);for(var f=this._sources,g=0;g<f.length;g++)f[g].lock()},r.exports=p},{"../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,l){var d=new o(u.streamFiles,l,u.platform,u.encodeFileName),h=0;try{a.forEach(function(p,f){h++;var g=(function(E,S){var I=E||S,D=s[I];if(!D)throw new Error(I+" is not a valid compression method !");return D})(f.options.compression,u.compression),b=f.options.compressionOptions||u.compressionOptions||{},_=f.dir,m=f.date;f._compressWorker(g,b).withStreamInfo("file",{name:p,dir:_,date:m,comment:f.comment||"",unixPermissions:f.unixPermissions,dosPermissions:f.dosPermissions}).pipe(d)}),d.entriesCount=h}catch(p){d.error(p)}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"),l=n("./stream/Crc32Probe"),d=n("./nodejsUtils");function h(p){return new o.Promise(function(f,g){var b=p.decompressed.getContentWorker().pipe(new l);b.on("error",function(_){g(_)}).on("end",function(){b.streamInfo.crc32!==p.decompressed.crc32?g(new Error("Corrupted zip : CRC32 mismatch")):f()}).resume()})}r.exports=function(p,f){var g=this;return f=s.extend(f||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:a.utf8decode}),d.isNode&&d.isStream(p)?o.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):s.prepareContent("the loaded zip file",p,!0,f.optimizedBinaryString,f.base64).then(function(b){var _=new u(f);return _.load(b),_}).then(function(b){var _=[o.Promise.resolve(b)],m=b.files;if(f.checkCRC32)for(var E=0;E<m.length;E++)_.push(h(m[E]));return o.Promise.all(_)}).then(function(b){for(var _=b.shift(),m=_.files,E=0;E<m.length;E++){var S=m[E],I=S.fileNameStr,D=s.resolve(S.fileNameStr);g.file(D,S.decompressed,{binary:!0,optimizedBinaryString:!0,date:S.date,dir:S.dir,comment:S.fileCommentStr.length?S.fileCommentStr:null,unixPermissions:S.unixPermissions,dosPermissions:S.dosPermissions,createFolders:f.createFolders}),S.dir||(g.file(D).unsafeOriginalName=I)}return _.zipComment.length&&(g.comment=_.zipComment),g})}},{"./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,l){o.call(this,"Nodejs stream input adapter for "+u),this._upstreamEnded=!1,this._bindStream(l)}s.inherits(a,o),a.prototype._bindStream=function(u){var l=this;(this._stream=u).pause(),u.on("data",function(d){l.push({data:d,meta:{percent:0}})}).on("error",function(d){l.isPaused?this.generatedError=d:l.error(d)}).on("end",function(){l.isPaused?l._upstreamEnded=!0:l.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,l){s.call(this,u),this._helper=a;var d=this;a.on("data",function(h,p){d.push(h)||d._helper.pause(),l&&l(p)}).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,C){var x,w=a.getTypeOf(B),P=a.extend(C||{},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=m(D)),P.createFolders&&(x=_(D))&&E.call(this,x,!0);var R=w==="string"&&P.binary===!1&&P.base64===!1;C&&C.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",w="string");var k=null;k=B instanceof h||B instanceof u?B:g.isNode&&g.isStream(B)?new b(D,B):a.prepareContent(D,B,P.binary,P.optimizedBinaryString,P.base64);var M=new p(D,k,P);this.files[D]=M}var o=n("./utf8"),a=n("./utils"),u=n("./stream/GenericWorker"),l=n("./stream/StreamHelper"),d=n("./defaults"),h=n("./compressedObject"),p=n("./zipObject"),f=n("./generate"),g=n("./nodejsUtils"),b=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):""},m=function(D){return D.slice(-1)!=="/"&&(D+="/"),D},E=function(D,B){return B=B!==void 0?B:d.createFolders,D=m(D),this.files[D]||s.call(this,D,null,{dir:!0,createFolders:B}),this.files[D]};function S(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,C,x;for(B in this.files)x=this.files[B],(C=B.slice(this.root.length,B.length))&&B.slice(0,this.root.length)===this.root&&D(C,x)},filter:function(D){var B=[];return this.forEach(function(C,x){D(C,x)&&B.push(x)}),B},file:function(D,B,C){if(arguments.length!==1)return D=this.root+D,s.call(this,D,B,C),this;if(S(D)){var x=D;return this.filter(function(P,R){return!R.dir&&x.test(P)})}var w=this.files[this.root+D];return w&&!w.dir?w:null},folder:function(D){if(!D)return this;if(S(D))return this.filter(function(w,P){return P.dir&&D.test(w)});var B=this.root+D,C=E.call(this,B),x=this.clone();return x.root=C.name,x},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 C=this.filter(function(w,P){return P.name.slice(0,D.length)===D}),x=0;x<C.length;x++)delete this.files[C[x].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,C={};try{if((C=a.extend(D||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:o.utf8encode})).type=C.type.toLowerCase(),C.compression=C.compression.toUpperCase(),C.type==="binarystring"&&(C.type="string"),!C.type)throw new Error("No output type specified.");a.checkSupport(C.type),C.platform!=="darwin"&&C.platform!=="freebsd"&&C.platform!=="linux"&&C.platform!=="sunos"||(C.platform="UNIX"),C.platform==="win32"&&(C.platform="DOS");var x=C.comment||this.comment||"";B=f.generateWorker(this,C,x)}catch(w){(B=new u("error")).error(w)}return new l(B,C.type||"string",C.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),l=a.charCodeAt(1),d=a.charCodeAt(2),h=a.charCodeAt(3),p=this.length-4;0<=p;--p)if(this.data[p]===u&&this.data[p+1]===l&&this.data[p+2]===d&&this.data[p+3]===h)return p-this.zero;return-1},o.prototype.readAndCheckSignature=function(a){var u=a.charCodeAt(0),l=a.charCodeAt(1),d=a.charCodeAt(2),h=a.charCodeAt(3),p=this.readData(4);return u===p[0]&&l===p[1]&&d===p[2]&&h===p[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,l=0;for(this.checkOffset(a),u=this.index+a-1;u>=this.index;u--)l=(l<<8)+this.byteAt(u);return this.index+=a,l},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"),l=n("./NodeBufferReader"),d=n("./Uint8ArrayReader");r.exports=function(h){var p=s.getTypeOf(h);return s.checkSupport(p),p!=="string"||o.uint8array?p==="nodebuffer"?new l(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 l=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=l+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 l=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,u.then(function(d){l.dataIsReady=!0,l.data=d,l.max=d&&d.length||0,l.type=s.getTypeOf(d),l.isPaused||l._tickAndRepeat()},function(d){l.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,l=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,l);break;case"uint8array":u=this.data.subarray(this.index,l);break;case"array":case"nodebuffer":u=this.data.slice(this.index,l)}return this.index=l,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"),l=n("../support"),d=n("../external"),h=null;if(l.nodestream)try{h=n("../nodejs/NodejsStreamOutputAdapter")}catch{}function p(g,b){return new d.Promise(function(_,m){var E=[],S=g._internalType,I=g._outputType,D=g._mimeType;g.on("data",function(B,C){E.push(B),b&&b(C)}).on("error",function(B){E=[],m(B)}).on("end",function(){try{var B=(function(C,x,w){switch(C){case"blob":return s.newBlob(s.transformTo("arraybuffer",x),w);case"base64":return u.encode(x);default:return s.transformTo(C,x)}})(I,(function(C,x){var w,P=0,R=null,k=0;for(w=0;w<x.length;w++)k+=x[w].length;switch(C){case"string":return x.join("");case"array":return Array.prototype.concat.apply([],x);case"uint8array":for(R=new Uint8Array(k),w=0;w<x.length;w++)R.set(x[w],P),P+=x[w].length;return R;case"nodebuffer":return Buffer.concat(x);default:throw new Error("concat : unsupported type '"+C+"'")}})(S,E),D);_(B)}catch(C){m(C)}E=[]}).resume()})}function f(g,b,_){var m=b;switch(b){case"blob":case"arraybuffer":m="uint8array";break;case"base64":m="string"}try{this._internalType=m,this._outputType=b,this._mimeType=_,s.checkSupport(m),this._worker=g.pipe(new o(m)),g.lock()}catch(E){this._worker=new a("error"),this._worker.error(E)}}f.prototype={accumulate:function(g){return p(this,g)},on:function(g,b){var _=this;return g==="data"?this._worker.on(g,function(m){b.call(_,m.data,m.meta)}):this._worker.on(g,function(){s.delay(b,arguments,_)}),this},resume:function(){return s.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(g){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"},g)}},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"),l=new Array(256),d=0;d<256;d++)l[d]=252<=d?6:248<=d?5:240<=d?4:224<=d?3:192<=d?2:1;l[254]=l[254]=1;function h(){u.call(this,"utf-8 decode"),this.leftOver=null}function p(){u.call(this,"utf-8 encode")}i.utf8encode=function(f){return o.nodebuffer?a.newBufferFrom(f,"utf-8"):(function(g){var b,_,m,E,S,I=g.length,D=0;for(E=0;E<I;E++)(64512&(_=g.charCodeAt(E)))==55296&&E+1<I&&(64512&(m=g.charCodeAt(E+1)))==56320&&(_=65536+(_-55296<<10)+(m-56320),E++),D+=_<128?1:_<2048?2:_<65536?3:4;for(b=o.uint8array?new Uint8Array(D):new Array(D),E=S=0;S<D;E++)(64512&(_=g.charCodeAt(E)))==55296&&E+1<I&&(64512&(m=g.charCodeAt(E+1)))==56320&&(_=65536+(_-55296<<10)+(m-56320),E++),_<128?b[S++]=_:(_<2048?b[S++]=192|_>>>6:(_<65536?b[S++]=224|_>>>12:(b[S++]=240|_>>>18,b[S++]=128|_>>>12&63),b[S++]=128|_>>>6&63),b[S++]=128|63&_);return b})(f)},i.utf8decode=function(f){return o.nodebuffer?s.transformTo("nodebuffer",f).toString("utf-8"):(function(g){var b,_,m,E,S=g.length,I=new Array(2*S);for(b=_=0;b<S;)if((m=g[b++])<128)I[_++]=m;else if(4<(E=l[m]))I[_++]=65533,b+=E-1;else{for(m&=E===2?31:E===3?15:7;1<E&&b<S;)m=m<<6|63&g[b++],E--;1<E?I[_++]=65533:m<65536?I[_++]=m:(m-=65536,I[_++]=55296|m>>10&1023,I[_++]=56320|1023&m)}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 g=s.transformTo(o.uint8array?"uint8array":"array",f.data);if(this.leftOver&&this.leftOver.length){if(o.uint8array){var b=g;(g=new Uint8Array(b.length+this.leftOver.length)).set(this.leftOver,0),g.set(b,this.leftOver.length)}else g=this.leftOver.concat(g);this.leftOver=null}var _=(function(E,S){var I;for((S=S||E.length)>E.length&&(S=E.length),I=S-1;0<=I&&(192&E[I])==128;)I--;return I<0||I===0?S:I+l[E[I]]>S?I:S})(g),m=g;_!==g.length&&(o.uint8array?(m=g.subarray(0,_),this.leftOver=g.subarray(_,g.length)):(m=g.slice(0,_),this.leftOver=g.slice(_,g.length))),this.push({data:i.utf8decode(m),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(p,u),p.prototype.processChunk=function(f){this.push({data:i.utf8encode(f.data),meta:f.meta})},i.Utf8EncodeWorker=p},{"./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 l(b){return b}function d(b,_){for(var m=0;m<b.length;++m)_[m]=255&b.charCodeAt(m);return _}n("setimmediate"),i.newBlob=function(b,_){i.checkSupport("blob");try{return new Blob([b],{type:_})}catch{try{var m=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return m.append(b),m.getBlob(_)}catch{throw new Error("Bug : can't construct the Blob.")}}};var h={stringifyByChunk:function(b,_,m){var E=[],S=0,I=b.length;if(I<=m)return String.fromCharCode.apply(null,b);for(;S<I;)_==="array"||_==="nodebuffer"?E.push(String.fromCharCode.apply(null,b.slice(S,Math.min(S+m,I)))):E.push(String.fromCharCode.apply(null,b.subarray(S,Math.min(S+m,I)))),S+=m;return E.join("")},stringifyByChar:function(b){for(var _="",m=0;m<b.length;m++)_+=String.fromCharCode(b[m]);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 p(b){var _=65536,m=i.getTypeOf(b),E=!0;if(m==="uint8array"?E=h.applyCanBeUsed.uint8array:m==="nodebuffer"&&(E=h.applyCanBeUsed.nodebuffer),E)for(;1<_;)try{return h.stringifyByChunk(b,m,_)}catch{_=Math.floor(_/2)}return h.stringifyByChar(b)}function f(b,_){for(var m=0;m<b.length;m++)_[m]=b[m];return _}i.applyFromCharCode=p;var g={};g.string={string:l,array:function(b){return d(b,new Array(b.length))},arraybuffer:function(b){return g.string.uint8array(b).buffer},uint8array:function(b){return d(b,new Uint8Array(b.length))},nodebuffer:function(b){return d(b,a.allocBuffer(b.length))}},g.array={string:p,array:l,arraybuffer:function(b){return new Uint8Array(b).buffer},uint8array:function(b){return new Uint8Array(b)},nodebuffer:function(b){return a.newBufferFrom(b)}},g.arraybuffer={string:function(b){return p(new Uint8Array(b))},array:function(b){return f(new Uint8Array(b),new Array(b.byteLength))},arraybuffer:l,uint8array:function(b){return new Uint8Array(b)},nodebuffer:function(b){return a.newBufferFrom(new Uint8Array(b))}},g.uint8array={string:p,array:function(b){return f(b,new Array(b.length))},arraybuffer:function(b){return b.buffer},uint8array:l,nodebuffer:function(b){return a.newBufferFrom(b)}},g.nodebuffer={string:p,array:function(b){return f(b,new Array(b.length))},arraybuffer:function(b){return g.nodebuffer.uint8array(b).buffer},uint8array:function(b){return f(b,new Uint8Array(b.length))},nodebuffer:l},i.transformTo=function(b,_){if(_=_||"",!b)return _;i.checkSupport(b);var m=i.getTypeOf(_);return g[m][b](_)},i.resolve=function(b){for(var _=b.split("/"),m=[],E=0;E<_.length;E++){var S=_[E];S==="."||S===""&&E!==0&&E!==_.length-1||(S===".."?m.pop():m.push(S))}return m.join("/")},i.getTypeOf=function(b){return typeof b=="string"?"string":Object.prototype.toString.call(b)==="[object Array]"?"array":s.nodebuffer&&a.isBuffer(b)?"nodebuffer":s.uint8array&&b instanceof Uint8Array?"uint8array":s.arraybuffer&&b instanceof ArrayBuffer?"arraybuffer":void 0},i.checkSupport=function(b){if(!s[b.toLowerCase()])throw new Error(b+" is not supported by this platform")},i.MAX_VALUE_16BITS=65535,i.MAX_VALUE_32BITS=-1,i.pretty=function(b){var _,m,E="";for(m=0;m<(b||"").length;m++)E+="\\x"+((_=b.charCodeAt(m))<16?"0":"")+_.toString(16).toUpperCase();return E},i.delay=function(b,_,m){setImmediate(function(){b.apply(m||null,_||[])})},i.inherits=function(b,_){function m(){}m.prototype=_.prototype,b.prototype=new m},i.extend=function(){var b,_,m={};for(b=0;b<arguments.length;b++)for(_ in arguments[b])Object.prototype.hasOwnProperty.call(arguments[b],_)&&m[_]===void 0&&(m[_]=arguments[b][_]);return m},i.prepareContent=function(b,_,m,E,S){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 C=new FileReader;C.onload=function(x){D(x.target.result)},C.onerror=function(x){B(x.target.error)},C.readAsArrayBuffer(I)}):I}).then(function(I){var D=i.getTypeOf(I);return D?(D==="arraybuffer"?I=i.transformTo("uint8array",I):D==="string"&&(S?I=o.decode(I):m&&E!==!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 '"+b+"'. 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"),l=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 p=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+o.pretty(p)+", expected "+o.pretty(h)+")")}},isSignature:function(h,p){var f=this.reader.index;this.reader.setIndex(h);var g=this.reader.readString(4)===p;return this.reader.setIndex(f),g},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),p=l.uint8array?"uint8array":"array",f=o.transformTo(p,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,p,f,g=this.zip64EndOfCentralSize-44;0<g;)h=this.reader.readInt(2),p=this.reader.readInt(4),f=this.reader.readData(p),this.zip64ExtensibleData[h]={id:h,length:p,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,p;for(h=0;h<this.files.length;h++)p=this.files[h],this.reader.setIndex(p.localHeaderOffset),this.checkSignature(a.LOCAL_FILE_HEADER),p.readLocalPart(this.reader),p.handleUTF8(),p.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 p=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 g=p-f;if(0<g)this.isSignature(p,a.CENTRAL_FILE_HEADER)||(this.reader.zero=g);else if(g<0)throw new Error("Corrupted zip: missing "+Math.abs(g)+" 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"),l=n("./utf8"),d=n("./compressions"),h=n("./support");function p(f,g){this.options=f,this.loadOptions=g}p.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(f){var g,b;if(f.skip(22),this.fileNameLength=f.readInt(2),b=f.readInt(2),this.fileName=f.readData(this.fileNameLength),f.skip(b),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((g=(function(_){for(var m in d)if(Object.prototype.hasOwnProperty.call(d,m)&&d[m].magic===_)return d[m];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,g,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 g=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(g),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 g,b,_,m=f.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});f.index+4<m;)g=f.readInt(2),b=f.readInt(2),_=f.readData(b),this.extraFields[g]={id:g,length:b,value:_};f.setIndex(m)},handleUTF8:function(){var f=h.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=l.utf8decode(this.fileName),this.fileCommentStr=l.utf8decode(this.fileComment);else{var g=this.findExtraFieldUnicodePath();if(g!==null)this.fileNameStr=g;else{var b=o.transformTo(f,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(b)}var _=this.findExtraFieldUnicodeComment();if(_!==null)this.fileCommentStr=_;else{var m=o.transformTo(f,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(m)}}},findExtraFieldUnicodePath:function(){var f=this.extraFields[28789];if(f){var g=s(f.value);return g.readInt(1)!==1||u(this.fileName)!==g.readInt(4)?null:l.utf8decode(g.readData(f.length-5))}return null},findExtraFieldUnicodeComment:function(){var f=this.extraFields[25461];if(f){var g=s(f.value);return g.readInt(1)!==1||u(this.fileComment)!==g.readInt(4)?null:l.utf8decode(g.readData(f.length-5))}return null}},r.exports=p},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(n,r,i){function s(g,b,_){this.name=g,this.dir=_.dir,this.date=_.date,this.comment=_.comment,this.unixPermissions=_.unixPermissions,this.dosPermissions=_.dosPermissions,this._data=b,this._dataBinary=_.binary,this.options={compression:_.compression,compressionOptions:_.compressionOptions}}var o=n("./stream/StreamHelper"),a=n("./stream/DataWorker"),u=n("./utf8"),l=n("./compressedObject"),d=n("./stream/GenericWorker");s.prototype={internalStream:function(g){var b=null,_="string";try{if(!g)throw new Error("No output type specified.");var m=(_=g.toLowerCase())==="string"||_==="text";_!=="binarystring"&&_!=="text"||(_="string"),b=this._decompressWorker();var E=!this._dataBinary;E&&!m&&(b=b.pipe(new u.Utf8EncodeWorker)),!E&&m&&(b=b.pipe(new u.Utf8DecodeWorker))}catch(S){(b=new d("error")).error(S)}return new o(b,_,"")},async:function(g,b){return this.internalStream(g).accumulate(b)},nodeStream:function(g,b){return this.internalStream(g||"nodebuffer").toNodejsStream(b)},_compressWorker:function(g,b){if(this._data instanceof l&&this._data.compression.magic===g.magic)return this._data.getCompressedWorker();var _=this._decompressWorker();return this._dataBinary||(_=_.pipe(new u.Utf8EncodeWorker)),l.createWorkerFrom(_,g,b)},_decompressWorker:function(){return this._data instanceof l?this._data.getContentWorker():this._data instanceof d?this._data:new a(this._data)}};for(var h=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],p=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]]=p;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 l=0,d=new u(g),h=s.document.createTextNode("");d.observe(h,{characterData:!0}),o=function(){h.data=l=++l%2}}else if(s.setImmediate||s.MessageChannel===void 0)o="document"in s&&"onreadystatechange"in s.document.createElement("script")?function(){var b=s.document.createElement("script");b.onreadystatechange=function(){g(),b.onreadystatechange=null,b.parentNode.removeChild(b),b=null},s.document.documentElement.appendChild(b)}:function(){setTimeout(g,0)};else{var p=new s.MessageChannel;p.port1.onmessage=g,o=function(){p.port2.postMessage(0)}}var f=[];function g(){var b,_;a=!0;for(var m=f.length;m;){for(_=f,f=[],b=-1;++b<m;)_[b]();m=f.length}a=!1}r.exports=function(b){f.push(b)!==1||a||o()}}).call(this,typeof zr<"u"?zr:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(n,r,i){var s=n("immediate");function o(){}var a={},u=["REJECTED"],l=["FULFILLED"],d=["PENDING"];function h(m){if(typeof m!="function")throw new TypeError("resolver must be a function");this.state=d,this.queue=[],this.outcome=void 0,m!==o&&b(this,m)}function p(m,E,S){this.promise=m,typeof E=="function"&&(this.onFulfilled=E,this.callFulfilled=this.otherCallFulfilled),typeof S=="function"&&(this.onRejected=S,this.callRejected=this.otherCallRejected)}function f(m,E,S){s(function(){var I;try{I=E(S)}catch(D){return a.reject(m,D)}I===m?a.reject(m,new TypeError("Cannot resolve promise with itself")):a.resolve(m,I)})}function g(m){var E=m&&m.then;if(m&&(typeof m=="object"||typeof m=="function")&&typeof E=="function")return function(){E.apply(m,arguments)}}function b(m,E){var S=!1;function I(C){S||(S=!0,a.reject(m,C))}function D(C){S||(S=!0,a.resolve(m,C))}var B=_(function(){E(D,I)});B.status==="error"&&I(B.value)}function _(m,E){var S={};try{S.value=m(E),S.status="success"}catch(I){S.status="error",S.value=I}return S}(r.exports=h).prototype.finally=function(m){if(typeof m!="function")return this;var E=this.constructor;return this.then(function(S){return E.resolve(m()).then(function(){return S})},function(S){return E.resolve(m()).then(function(){throw S})})},h.prototype.catch=function(m){return this.then(null,m)},h.prototype.then=function(m,E){if(typeof m!="function"&&this.state===l||typeof E!="function"&&this.state===u)return this;var S=new this.constructor(o);return this.state!==d?f(S,this.state===l?m:E,this.outcome):this.queue.push(new p(S,m,E)),S},p.prototype.callFulfilled=function(m){a.resolve(this.promise,m)},p.prototype.otherCallFulfilled=function(m){f(this.promise,this.onFulfilled,m)},p.prototype.callRejected=function(m){a.reject(this.promise,m)},p.prototype.otherCallRejected=function(m){f(this.promise,this.onRejected,m)},a.resolve=function(m,E){var S=_(g,E);if(S.status==="error")return a.reject(m,S.value);var I=S.value;if(I)b(m,I);else{m.state=l,m.outcome=E;for(var D=-1,B=m.queue.length;++D<B;)m.queue[D].callFulfilled(E)}return m},a.reject=function(m,E){m.state=u,m.outcome=E;for(var S=-1,I=m.queue.length;++S<I;)m.queue[S].callRejected(E);return m},h.resolve=function(m){return m instanceof this?m:a.resolve(new this(o),m)},h.reject=function(m){var E=new this(o);return a.reject(E,m)},h.all=function(m){var E=this;if(Object.prototype.toString.call(m)!=="[object Array]")return this.reject(new TypeError("must be an array"));var S=m.length,I=!1;if(!S)return this.resolve([]);for(var D=new Array(S),B=0,C=-1,x=new this(o);++C<S;)w(m[C],C);return x;function w(P,R){E.resolve(P).then(function(k){D[R]=k,++B!==S||I||(I=!0,a.resolve(x,D))},function(k){I||(I=!0,a.reject(x,k))})}},h.race=function(m){var E=this;if(Object.prototype.toString.call(m)!=="[object Array]")return this.reject(new TypeError("must be an array"));var S=m.length,I=!1;if(!S)return this.resolve([]);for(var D=-1,B=new this(o);++D<S;)C=m[D],E.resolve(C).then(function(x){I||(I=!0,a.resolve(B,x))},function(x){I||(I=!0,a.reject(B,x))});var C;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"),l=n("./zlib/zstream"),d=Object.prototype.toString,h=0,p=-1,f=0,g=8;function b(m){if(!(this instanceof b))return new b(m);this.options=o.assign({level:p,method:g,chunkSize:16384,windowBits:15,memLevel:8,strategy:f,to:""},m||{});var E=this.options;E.raw&&0<E.windowBits?E.windowBits=-E.windowBits:E.gzip&&0<E.windowBits&&E.windowBits<16&&(E.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var S=s.deflateInit2(this.strm,E.level,E.method,E.windowBits,E.memLevel,E.strategy);if(S!==h)throw new Error(u[S]);if(E.header&&s.deflateSetHeader(this.strm,E.header),E.dictionary){var I;if(I=typeof E.dictionary=="string"?a.string2buf(E.dictionary):d.call(E.dictionary)==="[object ArrayBuffer]"?new Uint8Array(E.dictionary):E.dictionary,(S=s.deflateSetDictionary(this.strm,I))!==h)throw new Error(u[S]);this._dict_set=!0}}function _(m,E){var S=new b(E);if(S.push(m,!0),S.err)throw S.msg||u[S.err];return S.result}b.prototype.push=function(m,E){var S,I,D=this.strm,B=this.options.chunkSize;if(this.ended)return!1;I=E===~~E?E:E===!0?4:0,typeof m=="string"?D.input=a.string2buf(m):d.call(m)==="[object ArrayBuffer]"?D.input=new Uint8Array(m):D.input=m,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),(S=s.deflate(D,I))!==1&&S!==h)return this.onEnd(S),!(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)&&S!==1);return I===4?(S=s.deflateEnd(this.strm),this.onEnd(S),this.ended=!0,S===h):I!==2||(this.onEnd(h),!(D.avail_out=0))},b.prototype.onData=function(m){this.chunks.push(m)},b.prototype.onEnd=function(m){m===h&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=m,this.msg=this.strm.msg},i.Deflate=b,i.deflate=_,i.deflateRaw=function(m,E){return(E=E||{}).raw=!0,_(m,E)},i.gzip=function(m,E){return(E=E||{}).gzip=!0,_(m,E)}},{"./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"),l=n("./zlib/messages"),d=n("./zlib/zstream"),h=n("./zlib/gzheader"),p=Object.prototype.toString;function f(b){if(!(this instanceof f))return new f(b);this.options=o.assign({chunkSize:16384,windowBits:0,to:""},b||{});var _=this.options;_.raw&&0<=_.windowBits&&_.windowBits<16&&(_.windowBits=-_.windowBits,_.windowBits===0&&(_.windowBits=-15)),!(0<=_.windowBits&&_.windowBits<16)||b&&b.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 m=s.inflateInit2(this.strm,_.windowBits);if(m!==u.Z_OK)throw new Error(l[m]);this.header=new h,s.inflateGetHeader(this.strm,this.header)}function g(b,_){var m=new f(_);if(m.push(b,!0),m.err)throw m.msg||l[m.err];return m.result}f.prototype.push=function(b,_){var m,E,S,I,D,B,C=this.strm,x=this.options.chunkSize,w=this.options.dictionary,P=!1;if(this.ended)return!1;E=_===~~_?_:_===!0?u.Z_FINISH:u.Z_NO_FLUSH,typeof b=="string"?C.input=a.binstring2buf(b):p.call(b)==="[object ArrayBuffer]"?C.input=new Uint8Array(b):C.input=b,C.next_in=0,C.avail_in=C.input.length;do{if(C.avail_out===0&&(C.output=new o.Buf8(x),C.next_out=0,C.avail_out=x),(m=s.inflate(C,u.Z_NO_FLUSH))===u.Z_NEED_DICT&&w&&(B=typeof w=="string"?a.string2buf(w):p.call(w)==="[object ArrayBuffer]"?new Uint8Array(w):w,m=s.inflateSetDictionary(this.strm,B)),m===u.Z_BUF_ERROR&&P===!0&&(m=u.Z_OK,P=!1),m!==u.Z_STREAM_END&&m!==u.Z_OK)return this.onEnd(m),!(this.ended=!0);C.next_out&&(C.avail_out!==0&&m!==u.Z_STREAM_END&&(C.avail_in!==0||E!==u.Z_FINISH&&E!==u.Z_SYNC_FLUSH)||(this.options.to==="string"?(S=a.utf8border(C.output,C.next_out),I=C.next_out-S,D=a.buf2string(C.output,S),C.next_out=I,C.avail_out=x-I,I&&o.arraySet(C.output,C.output,S,I,0),this.onData(D)):this.onData(o.shrinkBuf(C.output,C.next_out)))),C.avail_in===0&&C.avail_out===0&&(P=!0)}while((0<C.avail_in||C.avail_out===0)&&m!==u.Z_STREAM_END);return m===u.Z_STREAM_END&&(E=u.Z_FINISH),E===u.Z_FINISH?(m=s.inflateEnd(this.strm),this.onEnd(m),this.ended=!0,m===u.Z_OK):E!==u.Z_SYNC_FLUSH||(this.onEnd(u.Z_OK),!(C.avail_out=0))},f.prototype.onData=function(b){this.chunks.push(b)},f.prototype.onEnd=function(b){b===u.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=b,this.msg=this.strm.msg},i.Inflate=f,i.inflate=g,i.inflateRaw=function(b,_){return(_=_||{}).raw=!0,g(b,_)},i.ungzip=g},{"./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 l=Array.prototype.slice.call(arguments,1);l.length;){var d=l.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,l){return u.length===l?u:u.subarray?u.subarray(0,l):(u.length=l,u)};var o={arraySet:function(u,l,d,h,p){if(l.subarray&&u.subarray)u.set(l.subarray(d,d+h),p);else for(var f=0;f<h;f++)u[p+f]=l[d+f]},flattenChunks:function(u){var l,d,h,p,f,g;for(l=h=0,d=u.length;l<d;l++)h+=u[l].length;for(g=new Uint8Array(h),l=p=0,d=u.length;l<d;l++)f=u[l],g.set(f,p),p+=f.length;return g}},a={arraySet:function(u,l,d,h,p){for(var f=0;f<h;f++)u[p+f]=l[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),l=0;l<256;l++)u[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;function d(h,p){if(p<65537&&(h.subarray&&a||!h.subarray&&o))return String.fromCharCode.apply(null,s.shrinkBuf(h,p));for(var f="",g=0;g<p;g++)f+=String.fromCharCode(h[g]);return f}u[254]=u[254]=1,i.string2buf=function(h){var p,f,g,b,_,m=h.length,E=0;for(b=0;b<m;b++)(64512&(f=h.charCodeAt(b)))==55296&&b+1<m&&(64512&(g=h.charCodeAt(b+1)))==56320&&(f=65536+(f-55296<<10)+(g-56320),b++),E+=f<128?1:f<2048?2:f<65536?3:4;for(p=new s.Buf8(E),b=_=0;_<E;b++)(64512&(f=h.charCodeAt(b)))==55296&&b+1<m&&(64512&(g=h.charCodeAt(b+1)))==56320&&(f=65536+(f-55296<<10)+(g-56320),b++),f<128?p[_++]=f:(f<2048?p[_++]=192|f>>>6:(f<65536?p[_++]=224|f>>>12:(p[_++]=240|f>>>18,p[_++]=128|f>>>12&63),p[_++]=128|f>>>6&63),p[_++]=128|63&f);return p},i.buf2binstring=function(h){return d(h,h.length)},i.binstring2buf=function(h){for(var p=new s.Buf8(h.length),f=0,g=p.length;f<g;f++)p[f]=h.charCodeAt(f);return p},i.buf2string=function(h,p){var f,g,b,_,m=p||h.length,E=new Array(2*m);for(f=g=0;f<m;)if((b=h[f++])<128)E[g++]=b;else if(4<(_=u[b]))E[g++]=65533,f+=_-1;else{for(b&=_===2?31:_===3?15:7;1<_&&f<m;)b=b<<6|63&h[f++],_--;1<_?E[g++]=65533:b<65536?E[g++]=b:(b-=65536,E[g++]=55296|b>>10&1023,E[g++]=56320|1023&b)}return d(E,g)},i.utf8border=function(h,p){var f;for((p=p||h.length)>h.length&&(p=h.length),f=p-1;0<=f&&(192&h[f])==128;)f--;return f<0||f===0?p:f+u[h[f]]>p?f:p}},{"./common":41}],43:[function(n,r,i){r.exports=function(s,o,a,u){for(var l=65535&s|0,d=s>>>16&65535|0,h=0;a!==0;){for(a-=h=2e3<a?2e3:a;d=d+(l=l+o[u++]|0)|0,--h;);l%=65521,d%=65521}return l|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 l=0;l<8;l++)o=1&o?3988292384^o>>>1:o>>>1;a[u]=o}return a})();r.exports=function(o,a,u,l){var d=s,h=l+u;o^=-1;for(var p=l;p<h;p++)o=o>>>8^d[255&(o^a[p])];return-1^o}},{}],46:[function(n,r,i){var s,o=n("../utils/common"),a=n("./trees"),u=n("./adler32"),l=n("./crc32"),d=n("./messages"),h=0,p=4,f=0,g=-2,b=-1,_=4,m=2,E=8,S=9,I=286,D=30,B=19,C=2*I+1,x=15,w=3,P=258,R=P+w+1,k=42,M=113,T=1,U=2,W=3,G=4;function se(y,V){return y.msg=d[V],V}function Z(y){return(y<<1)-(4<y?9:0)}function he(y){for(var V=y.length;0<=--V;)y[V]=0}function j(y){var V=y.state,Y=V.pending;Y>y.avail_out&&(Y=y.avail_out),Y!==0&&(o.arraySet(y.output,V.pending_buf,V.pending_out,Y,y.next_out),y.next_out+=Y,V.pending_out+=Y,y.total_out+=Y,y.avail_out-=Y,V.pending-=Y,V.pending===0&&(V.pending_out=0))}function $(y,V){a._tr_flush_block(y,0<=y.block_start?y.block_start:-1,y.strstart-y.block_start,V),y.block_start=y.strstart,j(y.strm)}function oe(y,V){y.pending_buf[y.pending++]=V}function ae(y,V){y.pending_buf[y.pending++]=V>>>8&255,y.pending_buf[y.pending++]=255&V}function ie(y,V){var Y,O,v=y.max_chain_length,F=y.strstart,K=y.prev_length,Q=y.nice_match,z=y.strstart>y.w_size-R?y.strstart-(y.w_size-R):0,te=y.window,le=y.w_mask,re=y.prev,ce=y.strstart+P,ve=te[F+K-1],Te=te[F+K];y.prev_length>=y.good_match&&(v>>=2),Q>y.lookahead&&(Q=y.lookahead);do if(te[(Y=V)+K]===Te&&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=P-(ce-F),F=ce-P,K<O){if(y.match_start=V,Q<=(K=O))break;ve=te[F+K-1],Te=te[F+K]}}while((V=re[V&le])>z&&--v!=0);return K<=y.lookahead?K:y.lookahead}function Pe(y){var V,Y,O,v,F,K,Q,z,te,le,re=y.w_size;do{if(v=y.window_size-y.lookahead-y.strstart,y.strstart>=re+(re-R)){for(o.arraySet(y.window,y.window,re,re,0),y.match_start-=re,y.strstart-=re,y.block_start-=re,V=Y=y.hash_size;O=y.head[--V],y.head[V]=re<=O?O-re:0,--Y;);for(V=Y=re;O=y.prev[--V],y.prev[V]=re<=O?O-re:0,--Y;);v+=re}if(y.strm.avail_in===0)break;if(K=y.strm,Q=y.window,z=y.strstart+y.lookahead,te=v,le=void 0,le=K.avail_in,te<le&&(le=te),Y=le===0?0:(K.avail_in-=le,o.arraySet(Q,K.input,K.next_in,le,z),K.state.wrap===1?K.adler=u(K.adler,Q,le,z):K.state.wrap===2&&(K.adler=l(K.adler,Q,le,z)),K.next_in+=le,K.total_in+=le,le),y.lookahead+=Y,y.lookahead+y.insert>=w)for(F=y.strstart-y.insert,y.ins_h=y.window[F],y.ins_h=(y.ins_h<<y.hash_shift^y.window[F+1])&y.hash_mask;y.insert&&(y.ins_h=(y.ins_h<<y.hash_shift^y.window[F+w-1])&y.hash_mask,y.prev[F&y.w_mask]=y.head[y.ins_h],y.head[y.ins_h]=F,F++,y.insert--,!(y.lookahead+y.insert<w)););}while(y.lookahead<R&&y.strm.avail_in!==0)}function Ze(y,V){for(var Y,O;;){if(y.lookahead<R){if(Pe(y),y.lookahead<R&&V===h)return T;if(y.lookahead===0)break}if(Y=0,y.lookahead>=w&&(y.ins_h=(y.ins_h<<y.hash_shift^y.window[y.strstart+w-1])&y.hash_mask,Y=y.prev[y.strstart&y.w_mask]=y.head[y.ins_h],y.head[y.ins_h]=y.strstart),Y!==0&&y.strstart-Y<=y.w_size-R&&(y.match_length=ie(y,Y)),y.match_length>=w)if(O=a._tr_tally(y,y.strstart-y.match_start,y.match_length-w),y.lookahead-=y.match_length,y.match_length<=y.max_lazy_match&&y.lookahead>=w){for(y.match_length--;y.strstart++,y.ins_h=(y.ins_h<<y.hash_shift^y.window[y.strstart+w-1])&y.hash_mask,Y=y.prev[y.strstart&y.w_mask]=y.head[y.ins_h],y.head[y.ins_h]=y.strstart,--y.match_length!=0;);y.strstart++}else y.strstart+=y.match_length,y.match_length=0,y.ins_h=y.window[y.strstart],y.ins_h=(y.ins_h<<y.hash_shift^y.window[y.strstart+1])&y.hash_mask;else O=a._tr_tally(y,0,y.window[y.strstart]),y.lookahead--,y.strstart++;if(O&&($(y,!1),y.strm.avail_out===0))return T}return y.insert=y.strstart<w-1?y.strstart:w-1,V===p?($(y,!0),y.strm.avail_out===0?W:G):y.last_lit&&($(y,!1),y.strm.avail_out===0)?T:U}function ye(y,V){for(var Y,O,v;;){if(y.lookahead<R){if(Pe(y),y.lookahead<R&&V===h)return T;if(y.lookahead===0)break}if(Y=0,y.lookahead>=w&&(y.ins_h=(y.ins_h<<y.hash_shift^y.window[y.strstart+w-1])&y.hash_mask,Y=y.prev[y.strstart&y.w_mask]=y.head[y.ins_h],y.head[y.ins_h]=y.strstart),y.prev_length=y.match_length,y.prev_match=y.match_start,y.match_length=w-1,Y!==0&&y.prev_length<y.max_lazy_match&&y.strstart-Y<=y.w_size-R&&(y.match_length=ie(y,Y),y.match_length<=5&&(y.strategy===1||y.match_length===w&&4096<y.strstart-y.match_start)&&(y.match_length=w-1)),y.prev_length>=w&&y.match_length<=y.prev_length){for(v=y.strstart+y.lookahead-w,O=a._tr_tally(y,y.strstart-1-y.prev_match,y.prev_length-w),y.lookahead-=y.prev_length-1,y.prev_length-=2;++y.strstart<=v&&(y.ins_h=(y.ins_h<<y.hash_shift^y.window[y.strstart+w-1])&y.hash_mask,Y=y.prev[y.strstart&y.w_mask]=y.head[y.ins_h],y.head[y.ins_h]=y.strstart),--y.prev_length!=0;);if(y.match_available=0,y.match_length=w-1,y.strstart++,O&&($(y,!1),y.strm.avail_out===0))return T}else if(y.match_available){if((O=a._tr_tally(y,0,y.window[y.strstart-1]))&&$(y,!1),y.strstart++,y.lookahead--,y.strm.avail_out===0)return T}else y.match_available=1,y.strstart++,y.lookahead--}return y.match_available&&(O=a._tr_tally(y,0,y.window[y.strstart-1]),y.match_available=0),y.insert=y.strstart<w-1?y.strstart:w-1,V===p?($(y,!0),y.strm.avail_out===0?W:G):y.last_lit&&($(y,!1),y.strm.avail_out===0)?T:U}function Ae(y,V,Y,O,v){this.good_length=y,this.max_lazy=V,this.nice_length=Y,this.max_chain=O,this.func=v}function qe(){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=E,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*C),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(x+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(y){var V;return y&&y.state?(y.total_in=y.total_out=0,y.data_type=m,(V=y.state).pending=0,V.pending_out=0,V.wrap<0&&(V.wrap=-V.wrap),V.status=V.wrap?k:M,y.adler=V.wrap===2?0:1,V.last_flush=h,a._tr_init(V),f):se(y,g)}function Rt(y){var V=Re(y);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})(y.state),V}function St(y,V,Y,O,v,F){if(!y)return g;var K=1;if(V===b&&(V=6),O<0?(K=0,O=-O):15<O&&(K=2,O-=16),v<1||S<v||Y!==E||O<8||15<O||V<0||9<V||F<0||_<F)return se(y,g);O===8&&(O=9);var Q=new qe;return(y.state=Q).strm=y,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,Rt(y)}s=[new Ae(0,0,0,0,function(y,V){var Y=65535;for(Y>y.pending_buf_size-5&&(Y=y.pending_buf_size-5);;){if(y.lookahead<=1){if(Pe(y),y.lookahead===0&&V===h)return T;if(y.lookahead===0)break}y.strstart+=y.lookahead,y.lookahead=0;var O=y.block_start+Y;if((y.strstart===0||y.strstart>=O)&&(y.lookahead=y.strstart-O,y.strstart=O,$(y,!1),y.strm.avail_out===0)||y.strstart-y.block_start>=y.w_size-R&&($(y,!1),y.strm.avail_out===0))return T}return y.insert=0,V===p?($(y,!0),y.strm.avail_out===0?W:G):(y.strstart>y.block_start&&($(y,!1),y.strm.avail_out),T)}),new Ae(4,4,8,4,Ze),new Ae(4,5,16,8,Ze),new Ae(4,6,32,32,Ze),new Ae(4,4,16,16,ye),new Ae(8,16,32,32,ye),new Ae(8,16,128,128,ye),new Ae(8,32,128,256,ye),new Ae(32,128,258,1024,ye),new Ae(32,258,258,4096,ye)],i.deflateInit=function(y,V){return St(y,V,E,15,8,0)},i.deflateInit2=St,i.deflateReset=Rt,i.deflateResetKeep=Re,i.deflateSetHeader=function(y,V){return y&&y.state?y.state.wrap!==2?g:(y.state.gzhead=V,f):g},i.deflate=function(y,V){var Y,O,v,F;if(!y||!y.state||5<V||V<0)return y?se(y,g):g;if(O=y.state,!y.output||!y.input&&y.avail_in!==0||O.status===666&&V!==p)return se(y,y.avail_out===0?-5:g);if(O.strm=y,Y=O.last_flush,O.last_flush=V,O.status===k)if(O.wrap===2)y.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&&(y.adler=l(y.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=E+(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,y.adler>>>16),ae(O,65535&y.adler)),y.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&&(y.adler=l(y.adler,O.pending_buf,O.pending-v,v)),j(y),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&&(y.adler=l(y.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&&(y.adler=l(y.adler,O.pending_buf,O.pending-v,v)),j(y),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&&(y.adler=l(y.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&&(y.adler=l(y.adler,O.pending_buf,O.pending-v,v)),j(y),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&&(y.adler=l(y.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(y),O.pending+2<=O.pending_buf_size&&(oe(O,255&y.adler),oe(O,y.adler>>8&255),y.adler=0,O.status=M)):O.status=M),O.pending!==0){if(j(y),y.avail_out===0)return O.last_flush=-1,f}else if(y.avail_in===0&&Z(V)<=Z(Y)&&V!==p)return se(y,-5);if(O.status===666&&y.avail_in!==0)return se(y,-5);if(y.avail_in!==0||O.lookahead!==0||V!==h&&O.status!==666){var Q=O.strategy===2?(function(z,te){for(var le;;){if(z.lookahead===0&&(Pe(z),z.lookahead===0)){if(te===h)return T;break}if(z.match_length=0,le=a._tr_tally(z,0,z.window[z.strstart]),z.lookahead--,z.strstart++,le&&($(z,!1),z.strm.avail_out===0))return T}return z.insert=0,te===p?($(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 le,re,ce,ve,Te=z.window;;){if(z.lookahead<=P){if(Pe(z),z.lookahead<=P&&te===h)return T;if(z.lookahead===0)break}if(z.match_length=0,z.lookahead>=w&&0<z.strstart&&(re=Te[ce=z.strstart-1])===Te[++ce]&&re===Te[++ce]&&re===Te[++ce]){ve=z.strstart+P;do;while(re===Te[++ce]&&re===Te[++ce]&&re===Te[++ce]&&re===Te[++ce]&&re===Te[++ce]&&re===Te[++ce]&&re===Te[++ce]&&re===Te[++ce]&&ce<ve);z.match_length=P-(ve-ce),z.match_length>z.lookahead&&(z.match_length=z.lookahead)}if(z.match_length>=w?(le=a._tr_tally(z,1,z.match_length-w),z.lookahead-=z.match_length,z.strstart+=z.match_length,z.match_length=0):(le=a._tr_tally(z,0,z.window[z.strstart]),z.lookahead--,z.strstart++),le&&($(z,!1),z.strm.avail_out===0))return T}return z.insert=0,te===p?($(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 y.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(y),y.avail_out===0))return O.last_flush=-1,f}return V!==p?f:O.wrap<=0?1:(O.wrap===2?(oe(O,255&y.adler),oe(O,y.adler>>8&255),oe(O,y.adler>>16&255),oe(O,y.adler>>24&255),oe(O,255&y.total_in),oe(O,y.total_in>>8&255),oe(O,y.total_in>>16&255),oe(O,y.total_in>>24&255)):(ae(O,y.adler>>>16),ae(O,65535&y.adler)),j(y),0<O.wrap&&(O.wrap=-O.wrap),O.pending!==0?f:1)},i.deflateEnd=function(y){var V;return y&&y.state?(V=y.state.status)!==k&&V!==69&&V!==73&&V!==91&&V!==103&&V!==M&&V!==666?se(y,g):(y.state=null,V===M?se(y,-3):f):g},i.deflateSetDictionary=function(y,V){var Y,O,v,F,K,Q,z,te,le=V.length;if(!y||!y.state||(F=(Y=y.state).wrap)===2||F===1&&Y.status!==k||Y.lookahead)return g;for(F===1&&(y.adler=u(y.adler,V,le,0)),Y.wrap=0,le>=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,le-Y.w_size,Y.w_size,0),V=te,le=Y.w_size),K=y.avail_in,Q=y.next_in,z=y.input,y.avail_in=le,y.next_in=0,y.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,y.next_in=Q,y.input=z,y.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,l,d,h,p,f,g,b,_,m,E,S,I,D,B,C,x,w,P,R,k,M,T,U;a=s.state,u=s.next_in,T=s.input,l=u+(s.avail_in-5),d=s.next_out,U=s.output,h=d-(o-s.avail_out),p=d+(s.avail_out-257),f=a.dmax,g=a.wsize,b=a.whave,_=a.wnext,m=a.window,E=a.hold,S=a.bits,I=a.lencode,D=a.distcode,B=(1<<a.lenbits)-1,C=(1<<a.distbits)-1;e:do{S<15&&(E+=T[u++]<<S,S+=8,E+=T[u++]<<S,S+=8),x=I[E&B];t:for(;;){if(E>>>=w=x>>>24,S-=w,(w=x>>>16&255)===0)U[d++]=65535&x;else{if(!(16&w)){if((64&w)==0){x=I[(65535&x)+(E&(1<<w)-1)];continue t}if(32&w){a.mode=12;break e}s.msg="invalid literal/length code",a.mode=30;break e}P=65535&x,(w&=15)&&(S<w&&(E+=T[u++]<<S,S+=8),P+=E&(1<<w)-1,E>>>=w,S-=w),S<15&&(E+=T[u++]<<S,S+=8,E+=T[u++]<<S,S+=8),x=D[E&C];n:for(;;){if(E>>>=w=x>>>24,S-=w,!(16&(w=x>>>16&255))){if((64&w)==0){x=D[(65535&x)+(E&(1<<w)-1)];continue n}s.msg="invalid distance code",a.mode=30;break e}if(R=65535&x,S<(w&=15)&&(E+=T[u++]<<S,(S+=8)<w&&(E+=T[u++]<<S,S+=8)),f<(R+=E&(1<<w)-1)){s.msg="invalid distance too far back",a.mode=30;break e}if(E>>>=w,S-=w,(w=d-h)<R){if(b<(w=R-w)&&a.sane){s.msg="invalid distance too far back",a.mode=30;break e}if(M=m,(k=0)===_){if(k+=g-w,w<P){for(P-=w;U[d++]=m[k++],--w;);k=d-R,M=U}}else if(_<w){if(k+=g+_-w,(w-=_)<P){for(P-=w;U[d++]=m[k++],--w;);if(k=0,_<P){for(P-=w=_;U[d++]=m[k++],--w;);k=d-R,M=U}}}else if(k+=_-w,w<P){for(P-=w;U[d++]=m[k++],--w;);k=d-R,M=U}for(;2<P;)U[d++]=M[k++],U[d++]=M[k++],U[d++]=M[k++],P-=3;P&&(U[d++]=M[k++],1<P&&(U[d++]=M[k++]))}else{for(k=d-R;U[d++]=U[k++],U[d++]=U[k++],U[d++]=U[k++],2<(P-=3););P&&(U[d++]=U[k++],1<P&&(U[d++]=U[k++]))}break}}break}}while(u<l&&d<p);u-=P=S>>3,E&=(1<<(S-=P<<3))-1,s.next_in=u,s.next_out=d,s.avail_in=u<l?l-u+5:5-(u-l),s.avail_out=d<p?p-d+257:257-(d-p),a.hold=E,a.bits=S}},{}],49:[function(n,r,i){var s=n("../utils/common"),o=n("./adler32"),a=n("./crc32"),u=n("./inffast"),l=n("./inftrees"),d=1,h=2,p=0,f=-2,g=1,b=852,_=592;function m(k){return(k>>>24&255)+(k>>>8&65280)+((65280&k)<<8)+((255&k)<<24)}function E(){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 S(k){var M;return k&&k.state?(M=k.state,k.total_in=k.total_out=M.total=0,k.msg="",M.wrap&&(k.adler=1&M.wrap),M.mode=g,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(b),M.distcode=M.distdyn=new s.Buf32(_),M.sane=1,M.back=-1,p):f}function I(k){var M;return k&&k.state?((M=k.state).wsize=0,M.whave=0,M.wnext=0,S(k)):f}function D(k,M){var T,U;return k&&k.state?(U=k.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(k))):f}function B(k,M){var T,U;return k?(U=new E,(k.state=U).window=null,(T=D(k,M))!==p&&(k.state=null),T):f}var C,x,w=!0;function P(k){if(w){var M;for(C=new s.Buf32(512),x=new s.Buf32(32),M=0;M<144;)k.lens[M++]=8;for(;M<256;)k.lens[M++]=9;for(;M<280;)k.lens[M++]=7;for(;M<288;)k.lens[M++]=8;for(l(d,k.lens,0,288,C,0,k.work,{bits:9}),M=0;M<32;)k.lens[M++]=5;l(h,k.lens,0,32,x,0,k.work,{bits:5}),w=!1}k.lencode=C,k.lenbits=9,k.distcode=x,k.distbits=5}function R(k,M,T,U){var W,G=k.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=S,i.inflateInit=function(k){return B(k,15)},i.inflateInit2=B,i.inflate=function(k,M){var T,U,W,G,se,Z,he,j,$,oe,ae,ie,Pe,Ze,ye,Ae,qe,Re,Rt,St,y,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(!k||!k.state||!k.output||!k.input&&k.avail_in!==0)return f;(T=k.state).mode===12&&(T.mode=13),se=k.next_out,W=k.output,he=k.avail_out,G=k.next_in,U=k.input,Z=k.avail_in,j=T.hold,$=T.bits,oe=Z,ae=he,V=p;e:for(;;)switch(T.mode){case g: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){k.msg="incorrect header check",T.mode=30;break}if((15&j)!=8){k.msg="unknown compression method",T.mode=30;break}if($-=4,y=8+(15&(j>>>=4)),T.wbits===0)T.wbits=y;else if(y>T.wbits){k.msg="invalid window size",T.mode=30;break}T.dmax=1<<y,k.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){k.msg="unknown compression method",T.mode=30;break}if(57344&T.flags){k.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&&(y=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,y)),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;y=U[G+ie++],T.head&&y&&T.length<65536&&(T.head.name+=String.fromCharCode(y)),y&&ie<Z;);if(512&T.flags&&(T.check=a(T.check,U,ie,G)),Z-=ie,G+=ie,y)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;y=U[G+ie++],T.head&&y&&T.length<65536&&(T.head.comment+=String.fromCharCode(y)),y&&ie<Z;);if(512&T.flags&&(T.check=a(T.check,U,ie,G)),Z-=ie,G+=ie,y)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)){k.msg="header crc mismatch",T.mode=30;break}$=j=0}T.head&&(T.head.hcrc=T.flags>>9&1,T.head.done=!0),k.adler=T.check=0,T.mode=12;break;case 10:for(;$<32;){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}k.adler=T.check=m(j),$=j=0,T.mode=11;case 11:if(T.havedict===0)return k.next_out=se,k.avail_out=he,k.next_in=G,k.avail_in=Z,T.hold=j,T.bits=$,2;k.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:k.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)){k.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){k.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=l(0,T.lens,0,19,T.lencode,0,T.work,Y),T.lenbits=Y.bits,V){k.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,qe=65535&v,!((ye=v>>>24)<=$);){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}if(qe<16)j>>>=ye,$-=ye,T.lens[T.have++]=qe;else{if(qe===16){for(O=ye+2;$<O;){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}if(j>>>=ye,$-=ye,T.have===0){k.msg="invalid bit length repeat",T.mode=30;break}y=T.lens[T.have-1],ie=3+(3&j),j>>>=2,$-=2}else if(qe===17){for(O=ye+3;$<O;){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}$-=ye,y=0,ie=3+(7&(j>>>=ye)),j>>>=3,$-=3}else{for(O=ye+7;$<O;){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}$-=ye,y=0,ie=11+(127&(j>>>=ye)),j>>>=7,$-=7}if(T.have+ie>T.nlen+T.ndist){k.msg="invalid bit length repeat",T.mode=30;break}for(;ie--;)T.lens[T.have++]=y}}if(T.mode===30)break;if(T.lens[256]===0){k.msg="invalid code -- missing end-of-block",T.mode=30;break}if(T.lenbits=9,Y={bits:T.lenbits},V=l(d,T.lens,0,T.nlen,T.lencode,0,T.work,Y),T.lenbits=Y.bits,V){k.msg="invalid literal/lengths set",T.mode=30;break}if(T.distbits=6,T.distcode=T.distdyn,Y={bits:T.distbits},V=l(h,T.lens,T.nlen,T.ndist,T.distcode,0,T.work,Y),T.distbits=Y.bits,V){k.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){k.next_out=se,k.avail_out=he,k.next_in=G,k.avail_in=Z,T.hold=j,T.bits=$,u(k,ae),se=k.next_out,W=k.output,he=k.avail_out,G=k.next_in,U=k.input,Z=k.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,qe=65535&v,!((ye=v>>>24)<=$);){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}if(Ae&&(240&Ae)==0){for(Re=ye,Rt=Ae,St=qe;Ae=(v=T.lencode[St+((j&(1<<Re+Rt)-1)>>Re)])>>>16&255,qe=65535&v,!(Re+(ye=v>>>24)<=$);){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}j>>>=Re,$-=Re,T.back+=Re}if(j>>>=ye,$-=ye,T.back+=ye,T.length=qe,Ae===0){T.mode=26;break}if(32&Ae){T.back=-1,T.mode=12;break}if(64&Ae){k.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,qe=65535&v,!((ye=v>>>24)<=$);){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}if((240&Ae)==0){for(Re=ye,Rt=Ae,St=qe;Ae=(v=T.distcode[St+((j&(1<<Re+Rt)-1)>>Re)])>>>16&255,qe=65535&v,!(Re+(ye=v>>>24)<=$);){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}j>>>=Re,$-=Re,T.back+=Re}if(j>>>=ye,$-=ye,T.back+=ye,64&Ae){k.msg="invalid distance code",T.mode=30;break}T.offset=qe,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){k.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){k.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),Ze=T.window}else Ze=W,Pe=se-T.offset,ie=T.length;for(he<ie&&(ie=he),he-=ie,T.length-=ie;W[se++]=Ze[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,k.total_out+=ae,T.total+=ae,ae&&(k.adler=T.check=T.flags?a(T.check,W,ae,se-ae):o(T.check,W,ae,se-ae)),ae=he,(T.flags?j:m(j))!==T.check){k.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)){k.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 k.next_out=se,k.avail_out=he,k.next_in=G,k.avail_in=Z,T.hold=j,T.bits=$,(T.wsize||ae!==k.avail_out&&T.mode<30&&(T.mode<27||M!==4))&&R(k,k.output,k.next_out,ae-k.avail_out)?(T.mode=31,-4):(oe-=k.avail_in,ae-=k.avail_out,k.total_in+=oe,k.total_out+=ae,T.total+=ae,T.wrap&&ae&&(k.adler=T.check=T.flags?a(T.check,W,ae,k.next_out-ae):o(T.check,W,ae,k.next_out-ae)),k.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===p&&(V=-5),V)},i.inflateEnd=function(k){if(!k||!k.state)return f;var M=k.state;return M.window&&(M.window=null),k.state=null,p},i.inflateGetHeader=function(k,M){var T;return k&&k.state?(2&(T=k.state).wrap)==0?f:((T.head=M).done=!1,p):f},i.inflateSetDictionary=function(k,M){var T,U=M.length;return k&&k.state?(T=k.state).wrap!==0&&T.mode!==11?f:T.mode===11&&o(1,M,U,0)!==T.check?-3:R(k,M,U,U)?(T.mode=31,-4):(T.havedict=1,p):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],l=[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,p,f,g,b,_,m){var E,S,I,D,B,C,x,w,P,R=m.bits,k=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,Ze=0;for(k=0;k<=15;k++)ae[k]=0;for(M=0;M<f;M++)ae[h[p+M]]++;for(W=R,U=15;1<=U&&ae[U]===0;U--);if(U<W&&(W=U),U===0)return g[b++]=20971520,g[b++]=20971520,m.bits=1,0;for(T=1;T<U&&ae[T]===0;T++);for(W<T&&(W=T),k=Z=1;k<=15;k++)if(Z<<=1,(Z-=ae[k])<0)return-1;if(0<Z&&(d===0||U!==1))return-1;for(ie[1]=0,k=1;k<15;k++)ie[k+1]=ie[k]+ae[k];for(M=0;M<f;M++)h[p+M]!==0&&(_[ie[h[p+M]]++]=M);if(C=d===0?($=Pe=_,19):d===1?($=o,oe-=257,Pe=a,Ze-=257,256):($=u,Pe=l,-1),k=T,B=b,se=M=j=0,I=-1,D=(he=1<<(G=W))-1,d===1&&852<he||d===2&&592<he)return 1;for(;;){for(x=k-se,P=_[M]<C?(w=0,_[M]):_[M]>C?(w=Pe[Ze+_[M]],$[oe+_[M]]):(w=96,0),E=1<<k-se,T=S=1<<G;g[B+(j>>se)+(S-=E)]=x<<24|w<<16|P|0,S!==0;);for(E=1<<k-1;j&E;)E>>=1;if(E!==0?(j&=E-1,j+=E):j=0,M++,--ae[k]==0){if(k===U)break;k=h[p+_[M]]}if(W<k&&(j&D)!==I){for(se===0&&(se=W),B+=T,Z=1<<(G=k-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;g[I=j&D]=W<<24|G<<16|B-b|0}}return j!==0&&(g[B+j]=k-se<<24|64<<16|0),m.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 l=0,d=29,h=256,p=h+1+d,f=30,g=19,b=2*p+1,_=15,m=16,E=7,S=256,I=16,D=17,B=18,C=[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],x=[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],P=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],R=new Array(2*(p+2));u(R);var k=new Array(2*f);u(k);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>m-K?(v.bi_buf|=F<<v.bi_valid&65535,oe(v,v.bi_buf),v.bi_buf=F>>m-v.bi_valid,v.bi_valid+=K-m):(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 Ze(v,F,K){var Q,z,te=new Array(_+1),le=0;for(Q=1;Q<=_;Q++)te[Q]=le=le+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 ye(v){var F;for(F=0;F<p;F++)v.dyn_ltree[2*F]=0;for(F=0;F<f;F++)v.dyn_dtree[2*F]=0;for(F=0;F<g;F++)v.bl_tree[2*F]=0;v.dyn_ltree[2*S]=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 qe(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&&qe(F,v.heap[z+1],v.heap[z],v.depth)&&z++,!qe(F,Q,v.heap[z],v.depth));)v.heap[K]=v.heap[z],K=z,z<<=1;v.heap[K]=Q}function Rt(v,F,K){var Q,z,te,le,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),(le=C[te])!==0&&ae(v,z-=U[te],le),ie(v,te=$(--Q),K),(le=x[te])!==0&&ae(v,Q-=Z[te],le)),re<v.last_lit;);ie(v,S,F)}function St(v,F){var K,Q,z,te=F.dyn_tree,le=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=b,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-=le[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(Te,gt){var fr,Dt,pr,De,_i,$a,jt=gt.dyn_tree,Th=gt.max_code,Zk=gt.stat_desc.static_tree,Jk=gt.stat_desc.has_stree,eA=gt.stat_desc.extra_bits,_h=gt.stat_desc.extra_base,mr=gt.stat_desc.max_length,wi=0;for(De=0;De<=_;De++)Te.bl_count[De]=0;for(jt[2*Te.heap[Te.heap_max]+1]=0,fr=Te.heap_max+1;fr<b;fr++)mr<(De=jt[2*jt[2*(Dt=Te.heap[fr])+1]+1]+1)&&(De=mr,wi++),jt[2*Dt+1]=De,Th<Dt||(Te.bl_count[De]++,_i=0,_h<=Dt&&(_i=eA[Dt-_h]),$a=jt[2*Dt],Te.opt_len+=$a*(De+_i),Jk&&(Te.static_len+=$a*(Zk[2*Dt+1]+_i)));if(wi!==0){do{for(De=mr-1;Te.bl_count[De]===0;)De--;Te.bl_count[De]--,Te.bl_count[De+1]+=2,Te.bl_count[mr]--,wi-=2}while(0<wi);for(De=mr;De!==0;De--)for(Dt=Te.bl_count[De];Dt!==0;)Th<(pr=Te.heap[--fr])||(jt[2*pr+1]!==De&&(Te.opt_len+=(De-jt[2*pr+1])*jt[2*pr],jt[2*pr+1]=De),Dt--)}})(v,F),Ze(te,ve,v.bl_count)}function y(v,F,K){var Q,z,te=-1,le=F[1],re=0,ce=7,ve=4;for(le===0&&(ce=138,ve=3),F[2*(K+1)+1]=65535,Q=0;Q<=K;Q++)z=le,le=F[2*(Q+1)+1],++re<ce&&z===le||(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)===le?(ce=138,3):z===le?(ce=6,3):(ce=7,4))}function V(v,F,K){var Q,z,te=-1,le=F[1],re=0,ce=7,ve=4;for(le===0&&(ce=138,ve=3),Q=0;Q<=K;Q++)if(z=le,le=F[2*(Q+1)+1],!(++re<ce&&z===le)){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)===le?(ce=138,3):z===le?(ce=6,3):(ce=7,4)}}u(Z);var Y=!1;function O(v,F,K,Q){ae(v,(l<<1)+(Q?1:0),3),(function(z,te,le,re){Ae(z),oe(z,le),oe(z,~le),s.arraySet(z.pending_buf,z.window,te,le,z.pending),z.pending+=le})(v,F,K)}i._tr_init=function(v){Y||((function(){var F,K,Q,z,te,le=new Array(_+1);for(z=Q=0;z<d-1;z++)for(U[z]=Q,F=0;F<1<<C[z];F++)T[Q++]=z;for(T[Q-1]=z,z=te=0;z<16;z++)for(Z[z]=te,F=0;F<1<<x[z];F++)M[te++]=z;for(te>>=7;z<f;z++)for(Z[z]=te<<7,F=0;F<1<<x[z]-7;F++)M[256+te++]=z;for(K=0;K<=_;K++)le[K]=0;for(F=0;F<=143;)R[2*F+1]=8,F++,le[8]++;for(;F<=255;)R[2*F+1]=9,F++,le[9]++;for(;F<=279;)R[2*F+1]=7,F++,le[7]++;for(;F<=287;)R[2*F+1]=8,F++,le[8]++;for(Ze(R,p+1,le),F=0;F<f;F++)k[2*F+1]=5,k[2*F]=Pe(F,5);W=new he(R,C,h+1,p,_),G=new he(k,x,0,f,_),se=new he(new Array(0),w,0,g,E)})(),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,ye(v)},i._tr_stored_block=O,i._tr_flush_block=function(v,F,K,Q){var z,te,le=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)),St(v,v.l_desc),St(v,v.d_desc),le=(function(re){var ce;for(y(re,re.dyn_ltree,re.l_desc.max_code),y(re,re.dyn_dtree,re.d_desc.max_code),St(re,re.bl_desc),ce=g-1;3<=ce&&re.bl_tree[2*P[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),Rt(v,R,k)):(ae(v,4+(Q?1:0),3),(function(re,ce,ve,Te){var gt;for(ae(re,ce-257,5),ae(re,ve-1,5),ae(re,Te-4,4),gt=0;gt<Te;gt++)ae(re,re.bl_tree[2*P[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,le+1),Rt(v,v.dyn_ltree,v.dyn_dtree)),ye(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,S,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)})(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,l,d,h,p=1,f={},g=!1,b=o.document,_=Object.getPrototypeOf&&Object.getPrototypeOf(o);_=_&&_.setTimeout?_:o,u={}.toString.call(o.process)==="[object process]"?function(I){process.nextTick(function(){E(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",S,!1):o.attachEvent("onmessage",S),function(I){o.postMessage(h+I,"*")}):o.MessageChannel?((d=new MessageChannel).port1.onmessage=function(I){E(I.data)},function(I){d.port2.postMessage(I)}):b&&"onreadystatechange"in b.createElement("script")?(l=b.documentElement,function(I){var D=b.createElement("script");D.onreadystatechange=function(){E(I),D.onreadystatechange=null,l.removeChild(D),D=null},l.appendChild(D)}):function(I){setTimeout(E,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 C={callback:I,args:D};return f[p]=C,u(p),p++},_.clearImmediate=m}function m(I){delete f[I]}function E(I){if(g)setTimeout(E,0,I);else{var D=f[I];if(D){g=!0;try{(function(B){var C=B.callback,x=B.args;switch(x.length){case 0:C();break;case 1:C(x[0]);break;case 2:C(x[0],x[1]);break;case 3:C(x[0],x[1],x[2]);break;default:C.apply(a,x)}})(D)}finally{m(I),g=!1}}}}function S(I){I.source===o&&typeof I.data=="string"&&I.data.indexOf(h)===0&&E(+I.data.slice(h.length))}})(typeof self>"u"?s===void 0?this:s:self)}).call(this,typeof zr<"u"?zr:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(ma)),ma.exports}var Ww=Yw();const md=og(Ww);function gd(e){return!!(e.startsWith("/")||e.startsWith("\\")||e.includes("..")||e.includes("\0")||/^[a-zA-Z]:/.test(e))}function Gw(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return globalThis.btoa(t)}async function bd(e){const t=await md.loadAsync(e),n={document:"",media:new Map,rawParts:new Map};for(const[r,i]of Object.entries(t.files))if(!i.dir&&!gd(r))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,Gw(s))}return n}async function ga(e){const t=new md;let n=e.contentTypes??Vw;[...e.rawParts.keys()].some(i=>i.endsWith(".json"))&&!n.includes('Extension="json"')&&(n=n.replace("</Types>",` <Default Extension="json" ContentType="application/json"/>
|
|
38
|
+
</Types>`)),t.file("[Content_Types].xml",n),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[i,s]of e.media)t.file(i,s);for(const[i,s]of e.rawParts)gd(i)||t.file(i)||t.file(i,s);return t.generateAsync({type:"uint8array"})}const Vw=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
39
39
|
<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">
|
|
40
40
|
<Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/>
|
|
41
41
|
<Default Extension="xml" ContentType="application/xml"/>
|
|
@@ -45,20 +45,20 @@
|
|
|
45
45
|
<Override PartName="/word/document.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml"/>
|
|
46
46
|
<Override PartName="/word/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml"/>
|
|
47
47
|
<Override PartName="/word/numbering.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml"/>
|
|
48
|
-
</Types>`;var
|
|
49
|
-
`&&m[B]!=="\r";B++)w+=m[B];if(w=w.trim(),w[w.length-1]==="/"&&(w=w.substring(0,w.length-1),B--),!g(w)){let k;return w.trim().length===0?k="Invalid space after '<'.":k="Tag '"+w+"' is an invalid name.",p("InvalidTag",k,b(m,B))}const P=
|
|
50
|
-
`||m==="\r"}function r(m,E){const S=E;for(;E<m.length;E++)if(m[E]=="?"||m[E]==" "){const I=m.substr(S,E-S);if(E>5&&I==="xml")return p("InvalidXml","XML declaration allowed only at the start of the document.",b(m,E));if(m[E]=="?"&&m[E+1]==">"){E++;break}else continue}return E}function i(m,E){if(m.length>E+5&&m[E+1]==="-"&&m[E+2]==="-"){for(E+=3;E<m.length;E++)if(m[E]==="-"&&m[E+1]==="-"&&m[E+2]===">"){E+=2;break}}else if(m.length>E+8&&m[E+1]==="D"&&m[E+2]==="O"&&m[E+3]==="C"&&m[E+4]==="T"&&m[E+5]==="Y"&&m[E+6]==="P"&&m[E+7]==="E"){let S=1;for(E+=8;E<m.length;E++)if(m[E]==="<")S++;else if(m[E]===">"&&(S--,S===0))break}else if(m.length>E+9&&m[E+1]==="["&&m[E+2]==="C"&&m[E+3]==="D"&&m[E+4]==="A"&&m[E+5]==="T"&&m[E+6]==="A"&&m[E+7]==="["){for(E+=8;E<m.length;E++)if(m[E]==="]"&&m[E+1]==="]"&&m[E+2]===">"){E+=2;break}}return E}const s='"',a="'";function o(m,E){let S="",I="",D=!1;for(;E<m.length;E++){if(m[E]===s||m[E]===a)I===""?I=m[E]:I!==m[E]||(I="");else if(m[E]===">"&&I===""){D=!0;break}S+=m[E]}return I!==""?!1:{value:S,index:E,tagClosed:D}}const u=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function l(m,E){const S=e.getAllMatches(m,u),I={};for(let D=0;D<S.length;D++){if(S[D][1].length===0)return p("InvalidAttr","Attribute '"+S[D][2]+"' has no space in starting.",_(S[D]));if(S[D][3]!==void 0&&S[D][4]===void 0)return p("InvalidAttr","Attribute '"+S[D][2]+"' is without value.",_(S[D]));if(S[D][3]===void 0&&!E.allowBooleanAttributes)return p("InvalidAttr","boolean attribute '"+S[D][2]+"' is not allowed.",_(S[D]));const B=S[D][2];if(!f(B))return p("InvalidAttr","Attribute '"+B+"' is an invalid name.",_(S[D]));if(!I.hasOwnProperty(B))I[B]=1;else return p("InvalidAttr","Attribute '"+B+"' is repeated.",_(S[D]))}return!0}function d(m,E){let S=/\d/;for(m[E]==="x"&&(E++,S=/[\da-fA-F]/);E<m.length;E++){if(m[E]===";")return E;if(!m[E].match(S))break}return-1}function h(m,E){if(E++,m[E]===";")return-1;if(m[E]==="#")return E++,d(m,E);let S=0;for(;E<m.length;E++,S++)if(!(m[E].match(/\w/)&&S<20)){if(m[E]===";")break;return-1}return E}function p(m,E,S){return{err:{code:m,msg:E,line:S.line||S,col:S.col}}}function f(m){return e.isName(m)}function g(m){return e.isName(m)}function b(m,E){const S=m.substring(0,E).split(/\r?\n/);return{line:S.length,col:S[S.length-1].length+1}}function _(m){return m.startIndex+m[1].length}return ya}var mi={},yd;function Yw(){if(yd)return mi;yd=1;const{DANGEROUS_PROPERTY_NAMES:e,criticalProperties:t}=pi(),n=o=>e.includes(o)?"__"+o:o,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(o,u){return u},attributeValueProcessor:function(o,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(o,u,l){return o},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,onDangerousProperty:n};function i(o,u){if(typeof o!="string")return;const l=o.toLowerCase();if(e.some(d=>l===d.toLowerCase()))throw new Error(`[SECURITY] Invalid ${u}: "${o}" is a reserved JavaScript keyword that could cause prototype pollution`);if(t.some(d=>l===d.toLowerCase()))throw new Error(`[SECURITY] Invalid ${u}: "${o}" is a reserved JavaScript keyword that could cause prototype pollution`)}function s(o){return typeof o=="boolean"?{enabled:o,maxEntitySize:1e4,maxExpansionDepth:10,maxTotalExpansions:1e3,maxExpandedLength:1e5,allowedTags:null,tagFilter:null}:typeof o=="object"&&o!==null?{enabled:o.enabled!==!1,maxEntitySize:Math.max(1,o.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,o.maxExpansionDepth??1e4),maxTotalExpansions:Math.max(1,o.maxTotalExpansions??1/0),maxExpandedLength:Math.max(1,o.maxExpandedLength??1e5),maxEntityCount:Math.max(1,o.maxEntityCount??1e3),allowedTags:o.allowedTags??null,tagFilter:o.tagFilter??null}:s(!0)}const a=function(o){const u=Object.assign({},r,o),l=[{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 l)d&&i(d,h);return u.onDangerousProperty===null&&(u.onDangerousProperty=n),u.processEntities=s(u.processEntities),u};return mi.buildOptions=a,mi.defaultOptions=r,mi}var _a,Td;function Ww(){if(Td)return _a;Td=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 _a=e,_a}var wa,_d;function Gw(){if(_d)return wa;_d=1;const e=pi();class t{constructor(a){this.suppressValidationErr=!a,this.options=a||{}}readDocType(a,o){const u=Object.create(null);let l=0;if(a[o+3]==="O"&&a[o+4]==="C"&&a[o+5]==="T"&&a[o+6]==="Y"&&a[o+7]==="P"&&a[o+8]==="E"){o=o+9;let d=1,h=!1,p=!1,f="";for(;o<a.length;o++)if(a[o]==="<"&&!p){if(h&&r(a,"!ENTITY",o)){o+=7;let g,b;if([g,b,o]=this.readEntityExp(a,o+1,this.suppressValidationErr),b.indexOf("&")===-1){if(this.options.enabled!==!1&&this.options.maxEntityCount!=null&&l>=this.options.maxEntityCount)throw new Error(`Entity count (${l+1}) exceeds maximum allowed (${this.options.maxEntityCount})`);const _=g.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");u[g]={regx:RegExp(`&${_};`,"g"),val:b},l++}}else if(h&&r(a,"!ELEMENT",o)){o+=8;const{index:g}=this.readElementExp(a,o+1);o=g}else if(h&&r(a,"!ATTLIST",o))o+=8;else if(h&&r(a,"!NOTATION",o)){o+=9;const{index:g}=this.readNotationExp(a,o+1,this.suppressValidationErr);o=g}else if(r(a,"!--",o))p=!0;else throw new Error("Invalid DOCTYPE");d++,f=""}else if(a[o]===">"){if(p?a[o-1]==="-"&&a[o-2]==="-"&&(p=!1,d--):d--,d===0)break}else a[o]==="["?h=!0:f+=a[o];if(d!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:u,i:o}}readEntityExp(a,o){o=n(a,o);let u="";for(;o<a.length&&!/\s/.test(a[o])&&a[o]!=='"'&&a[o]!=="'";)u+=a[o],o++;if(i(u),o=n(a,o),!this.suppressValidationErr){if(a.substring(o,o+6).toUpperCase()==="SYSTEM")throw new Error("External entities are not supported");if(a[o]==="%")throw new Error("Parameter entities are not supported")}let l="";if([o,l]=this.readIdentifierVal(a,o,"entity"),this.options.enabled!==!1&&this.options.maxEntitySize!=null&&l.length>this.options.maxEntitySize)throw new Error(`Entity "${u}" size (${l.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return o--,[u,l,o]}readNotationExp(a,o){o=n(a,o);let u="";for(;o<a.length&&!/\s/.test(a[o]);)u+=a[o],o++;!this.suppressValidationErr&&i(u),o=n(a,o);const l=a.substring(o,o+6).toUpperCase();if(!this.suppressValidationErr&&l!=="SYSTEM"&&l!=="PUBLIC")throw new Error(`Expected SYSTEM or PUBLIC, found "${l}"`);o+=l.length,o=n(a,o);let d=null,h=null;if(l==="PUBLIC")[o,d]=this.readIdentifierVal(a,o,"publicIdentifier"),o=n(a,o),(a[o]==='"'||a[o]==="'")&&([o,h]=this.readIdentifierVal(a,o,"systemIdentifier"));else if(l==="SYSTEM"&&([o,h]=this.readIdentifierVal(a,o,"systemIdentifier"),!this.suppressValidationErr&&!h))throw new Error("Missing mandatory system identifier for SYSTEM notation");return{notationName:u,publicIdentifier:d,systemIdentifier:h,index:--o}}readIdentifierVal(a,o,u){let l="";const d=a[o];if(d!=='"'&&d!=="'")throw new Error(`Expected quoted string, found "${d}"`);for(o++;o<a.length&&a[o]!==d;)l+=a[o],o++;if(a[o]!==d)throw new Error(`Unterminated ${u} value`);return o++,[o,l]}readElementExp(a,o){o=n(a,o);let u="";for(;o<a.length&&!/\s/.test(a[o]);)u+=a[o],o++;if(!this.suppressValidationErr&&!e.isName(u))throw new Error(`Invalid element name: "${u}"`);o=n(a,o);let l="";if(a[o]==="E"&&r(a,"MPTY",o))o+=4;else if(a[o]==="A"&&r(a,"NY",o))o+=2;else if(a[o]==="("){for(o++;o<a.length&&a[o]!==")";)l+=a[o],o++;if(a[o]!==")")throw new Error("Unterminated content model")}else if(!this.suppressValidationErr)throw new Error(`Invalid Element Expression, found "${a[o]}"`);return{elementName:u,contentModel:l.trim(),index:o}}readAttlistExp(a,o){o=n(a,o);let u="";for(;o<a.length&&!/\s/.test(a[o]);)u+=a[o],o++;i(u),o=n(a,o);let l="";for(;o<a.length&&!/\s/.test(a[o]);)l+=a[o],o++;if(!i(l))throw new Error(`Invalid attribute name: "${l}"`);o=n(a,o);let d="";if(a.substring(o,o+8).toUpperCase()==="NOTATION"){if(d="NOTATION",o+=8,o=n(a,o),a[o]!=="(")throw new Error(`Expected '(', found "${a[o]}"`);o++;let p=[];for(;o<a.length&&a[o]!==")";){let f="";for(;o<a.length&&a[o]!=="|"&&a[o]!==")";)f+=a[o],o++;if(f=f.trim(),!i(f))throw new Error(`Invalid notation name: "${f}"`);p.push(f),a[o]==="|"&&(o++,o=n(a,o))}if(a[o]!==")")throw new Error("Unterminated list of notations");o++,d+=" ("+p.join("|")+")"}else{for(;o<a.length&&!/\s/.test(a[o]);)d+=a[o],o++;const p=["CDATA","ID","IDREF","IDREFS","ENTITY","ENTITIES","NMTOKEN","NMTOKENS"];if(!this.suppressValidationErr&&!p.includes(d.toUpperCase()))throw new Error(`Invalid attribute type: "${d}"`)}o=n(a,o);let h="";return a.substring(o,o+8).toUpperCase()==="#REQUIRED"?(h="#REQUIRED",o+=8):a.substring(o,o+7).toUpperCase()==="#IMPLIED"?(h="#IMPLIED",o+=7):[o,h]=this.readIdentifierVal(a,o,"ATTLIST"),{elementName:u,attributeName:l,attributeType:d,defaultValue:h,index:o}}}const n=(s,a)=>{for(;a<s.length&&/\s/.test(s[a]);)a++;return a};function r(s,a,o){for(let u=0;u<a.length;u++)if(a[u]!==s[o+u+1])return!1;return!0}function i(s){if(e.isName(s))return s;throw new Error(`Invalid entity name ${s}`)}return wa=t,wa}var ka,wd;function Vw(){if(wd)return ka;wd=1;const e=/^[-+]?0x[a-fA-F0-9]+$/,t=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,n={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};function r(a,o={}){if(o=Object.assign({},n,o),!a||typeof a!="string")return a;let u=a.trim();if(o.skipLike!==void 0&&o.skipLike.test(u))return a;if(a==="0")return 0;if(o.hex&&e.test(u))return s(u,16);if(u.search(/[eE]/)!==-1){const l=u.match(/^([-\+])?(0*)([0-9]*(\.[0-9]*)?[eE][-\+]?[0-9]+)$/);if(l){if(o.leadingZeros)u=(l[1]||"")+l[3];else if(!(l[2]==="0"&&l[3][0]==="."))return a;return o.eNotation?Number(u):a}else return a}else{const l=t.exec(u);if(l){const d=l[1],h=l[2];let p=i(l[3]);if(!o.leadingZeros&&h.length>0&&d&&u[2]!==".")return a;if(!o.leadingZeros&&h.length>0&&!d&&u[1]!==".")return a;if(o.leadingZeros&&h===a)return 0;{const f=Number(u),g=""+f;return g.search(/[eE]/)!==-1?o.eNotation?f:a:u.indexOf(".")!==-1?g==="0"&&p===""||g===p||d&&g==="-"+p?f:a:h?p===g||d+p===g?f:a:u===g||u===d+g?f:a}}else return a}}function i(a){return a&&a.indexOf(".")!==-1&&(a=a.replace(/0+$/,""),a==="."?a="0":a[0]==="."?a="0"+a:a[a.length-1]==="."&&(a=a.substr(0,a.length-1))),a}function s(a,o){if(parseInt)return parseInt(a,o);if(Number.parseInt)return Number.parseInt(a,o);if(window&&window.parseInt)return window.parseInt(a,o);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}return ka=r,ka}var Aa,kd;function Ad(){if(kd)return Aa;kd=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 Aa=e,Aa}var Sa,Sd;function Kw(){if(Sd)return Sa;Sd=1;const e=pi(),t=Ww(),n=Gw(),r=Vw(),i=Ad();class s{constructor(x){if(this.options=x,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,P)=>D(P,10,"&#")},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(w,P)=>D(P,16,"&#x")}},this.addExternalEntities=a,this.parseXml=h,this.parseTextData=o,this.resolveNameSpace=u,this.buildAttributesMap=d,this.isItStopNode=b,this.replaceEntitiesValue=f,this.readStopNodeData=S,this.saveTextToParentTag=g,this.addChild=p,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 P=this.options.stopNodes[w];typeof P=="string"&&(P.startsWith("*.")?this.stopNodesWildcard.add(P.substring(2)):this.stopNodesExact.add(P))}}}}function a(C){const x=Object.keys(C);for(let w=0;w<x.length;w++){const P=x[w],R=P.replace(/[.\-+*:]/g,"\\.");this.lastEntities[P]={regex:new RegExp("&"+R+";","g"),val:C[P]}}}function o(C,x,w,P,R,k,M){if(C!==void 0&&(this.options.trimValues&&!P&&(C=C.trim()),C.length>0)){M||(C=this.replaceEntitiesValue(C,x,w));const T=this.options.tagValueProcessor(x,C,w,R,k);return T==null?C:typeof T!=typeof C||T!==C?T:this.options.trimValues?I(C,this.options.parseTagValue,this.options.numberParseOptions):C.trim()===C?I(C,this.options.parseTagValue,this.options.numberParseOptions):C}}function u(C){if(this.options.removeNSPrefix){const x=C.split(":"),w=C.charAt(0)==="/"?"/":"";if(x[0]==="xmlns")return"";x.length===2&&(C=w+x[1])}return C}const l=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function d(C,x,w){if(this.options.ignoreAttributes!==!0&&typeof C=="string"){const P=e.getAllMatches(C,l),R=P.length,k={};for(let M=0;M<R;M++){const T=this.resolveNameSpace(P[M][1]);if(this.ignoreAttributesFn(T,x))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,w,x);const G=this.options.attributeValueProcessor(T,U,x);G==null?k[W]=U:typeof G!=typeof U||G!==U?k[W]=G:k[W]=I(U,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(k[W]=!0)}if(!Object.keys(k).length)return;if(this.options.attributesGroupName){const M={};return M[this.options.attributesGroupName]=k,M}return k}}const h=function(C){C=C.replace(/\r\n?/g,`
|
|
51
|
-
`);const x=new t("!xml");let w=x,P="",R="";this.entityExpansionCount=0,this.currentExpandedLength=0;const k=new n(this.options.processEntities);for(let M=0;M<C.length;M++)if(C[M]==="<")if(C[M+1]==="/"){const U=m(C,">",M,"Closing Tag is not closed.");let W=C.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&&(P=this.saveTextToParentTag(P,w,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),w=this.tagsNodeStack.pop(),P="",M=U}else if(C[M+1]==="?"){let U=E(C,M,!1,"?>");if(!U)throw new Error("Pi Tag is not closed.");if(P=this.saveTextToParentTag(P,w,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(w,W,R,M)}M=U.closeIndex+1}else if(C.substr(M+1,3)==="!--"){const U=m(C,"-->",M+4,"Comment is not closed.");if(this.options.commentPropName){const W=C.substring(M+4,U-2);P=this.saveTextToParentTag(P,w,R),w.add(this.options.commentPropName,[{[this.options.textNodeName]:W}])}M=U}else if(C.substr(M+1,2)==="!D"){const U=k.readDocType(C,M);this.docTypeEntities=U.entities,M=U.i}else if(C.substr(M+1,2)==="!["){const U=m(C,"]]>",M,"CDATA is not closed.")-2,W=C.substring(M+9,U);P=this.saveTextToParentTag(P,w,R);let G=this.parseTextData(W,w.tagname,R,!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=E(C,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
|
|
52
|
-
`;function t(
|
|
48
|
+
</Types>`;async function ba(e){const t=new TextEncoder().encode(e),n=await globalThis.crypto.subtle.digest("SHA-256",t),r=new Uint8Array(n);let i="";for(let s=0;s<8;s++)i+=r[s].toString(16).padStart(2,"0");return i}var Ea={},ya={},Ed;function fi(){return Ed||(Ed=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(l,d){const h=[];let p=d.exec(l);for(;p;){const f=[];f.startIndex=d.lastIndex-p[0].length;const g=p.length;for(let b=0;b<g;b++)f.push(p[b]);h.push(f),p=d.exec(l)}return h},o=function(l){const d=i.exec(l);return!(d===null||typeof d>"u")};e.isExist=function(l){return typeof l<"u"},e.isEmptyObject=function(l){return Object.keys(l).length===0},e.merge=function(l,d,h){if(d){const p=Object.keys(d),f=p.length;for(let g=0;g<f;g++)h==="strict"?l[p[g]]=[d[p[g]]]:l[p[g]]=d[p[g]]}},e.getValue=function(l){return e.isExist(l)?l:""};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})(ya)),ya}var yd;function Td(){if(yd)return Ea;yd=1;const e=fi(),t={allowBooleanAttributes:!1,unpairedTags:[]};Ea.validate=function(m,E){E=Object.assign({},t,E);const S=[];let I=!1,D=!1;m[0]==="\uFEFF"&&(m=m.substr(1));for(let B=0;B<m.length;B++)if(m[B]==="<"&&m[B+1]==="?"){if(B+=2,B=r(m,B),B.err)return B}else if(m[B]==="<"){let C=B;if(B++,m[B]==="!"){B=i(m,B);continue}else{let x=!1;m[B]==="/"&&(x=!0,B++);let w="";for(;B<m.length&&m[B]!==">"&&m[B]!==" "&&m[B]!==" "&&m[B]!==`
|
|
49
|
+
`&&m[B]!=="\r";B++)w+=m[B];if(w=w.trim(),w[w.length-1]==="/"&&(w=w.substring(0,w.length-1),B--),!g(w)){let k;return w.trim().length===0?k="Invalid space after '<'.":k="Tag '"+w+"' is an invalid name.",p("InvalidTag",k,b(m,B))}const P=a(m,B);if(P===!1)return p("InvalidAttr","Attributes for '"+w+"' have open quote.",b(m,B));let R=P.value;if(B=P.index,R[R.length-1]==="/"){const k=B-R.length;R=R.substring(0,R.length-1);const M=l(R,E);if(M===!0)I=!0;else return p(M.err.code,M.err.msg,b(m,k+M.err.line))}else if(x)if(P.tagClosed){if(R.trim().length>0)return p("InvalidTag","Closing tag '"+w+"' can't have attributes or invalid starting.",b(m,C));if(S.length===0)return p("InvalidTag","Closing tag '"+w+"' has not been opened.",b(m,C));{const k=S.pop();if(w!==k.tagName){let M=b(m,k.tagStartPos);return p("InvalidTag","Expected closing tag '"+k.tagName+"' (opened in line "+M.line+", col "+M.col+") instead of closing tag '"+w+"'.",b(m,C))}S.length==0&&(D=!0)}}else return p("InvalidTag","Closing tag '"+w+"' doesn't have proper closing.",b(m,B));else{const k=l(R,E);if(k!==!0)return p(k.err.code,k.err.msg,b(m,B-R.length+k.err.line));if(D===!0)return p("InvalidXml","Multiple possible root nodes found.",b(m,B));E.unpairedTags.indexOf(w)!==-1||S.push({tagName:w,tagStartPos:C}),I=!0}for(B++;B<m.length;B++)if(m[B]==="<")if(m[B+1]==="!"){B++,B=i(m,B);continue}else if(m[B+1]==="?"){if(B=r(m,++B),B.err)return B}else break;else if(m[B]==="&"){const k=h(m,B);if(k==-1)return p("InvalidChar","char '&' is not expected.",b(m,B));B=k}else if(D===!0&&!n(m[B]))return p("InvalidXml","Extra text at the end",b(m,B));m[B]==="<"&&B--}}else{if(n(m[B]))continue;return p("InvalidChar","char '"+m[B]+"' is not expected.",b(m,B))}if(I){if(S.length==1)return p("InvalidTag","Unclosed tag '"+S[0].tagName+"'.",b(m,S[0].tagStartPos));if(S.length>0)return p("InvalidXml","Invalid '"+JSON.stringify(S.map(B=>B.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return p("InvalidXml","Start tag expected.",1);return!0};function n(m){return m===" "||m===" "||m===`
|
|
50
|
+
`||m==="\r"}function r(m,E){const S=E;for(;E<m.length;E++)if(m[E]=="?"||m[E]==" "){const I=m.substr(S,E-S);if(E>5&&I==="xml")return p("InvalidXml","XML declaration allowed only at the start of the document.",b(m,E));if(m[E]=="?"&&m[E+1]==">"){E++;break}else continue}return E}function i(m,E){if(m.length>E+5&&m[E+1]==="-"&&m[E+2]==="-"){for(E+=3;E<m.length;E++)if(m[E]==="-"&&m[E+1]==="-"&&m[E+2]===">"){E+=2;break}}else if(m.length>E+8&&m[E+1]==="D"&&m[E+2]==="O"&&m[E+3]==="C"&&m[E+4]==="T"&&m[E+5]==="Y"&&m[E+6]==="P"&&m[E+7]==="E"){let S=1;for(E+=8;E<m.length;E++)if(m[E]==="<")S++;else if(m[E]===">"&&(S--,S===0))break}else if(m.length>E+9&&m[E+1]==="["&&m[E+2]==="C"&&m[E+3]==="D"&&m[E+4]==="A"&&m[E+5]==="T"&&m[E+6]==="A"&&m[E+7]==="["){for(E+=8;E<m.length;E++)if(m[E]==="]"&&m[E+1]==="]"&&m[E+2]===">"){E+=2;break}}return E}const s='"',o="'";function a(m,E){let S="",I="",D=!1;for(;E<m.length;E++){if(m[E]===s||m[E]===o)I===""?I=m[E]:I!==m[E]||(I="");else if(m[E]===">"&&I===""){D=!0;break}S+=m[E]}return I!==""?!1:{value:S,index:E,tagClosed:D}}const u=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function l(m,E){const S=e.getAllMatches(m,u),I={};for(let D=0;D<S.length;D++){if(S[D][1].length===0)return p("InvalidAttr","Attribute '"+S[D][2]+"' has no space in starting.",_(S[D]));if(S[D][3]!==void 0&&S[D][4]===void 0)return p("InvalidAttr","Attribute '"+S[D][2]+"' is without value.",_(S[D]));if(S[D][3]===void 0&&!E.allowBooleanAttributes)return p("InvalidAttr","boolean attribute '"+S[D][2]+"' is not allowed.",_(S[D]));const B=S[D][2];if(!f(B))return p("InvalidAttr","Attribute '"+B+"' is an invalid name.",_(S[D]));if(!I.hasOwnProperty(B))I[B]=1;else return p("InvalidAttr","Attribute '"+B+"' is repeated.",_(S[D]))}return!0}function d(m,E){let S=/\d/;for(m[E]==="x"&&(E++,S=/[\da-fA-F]/);E<m.length;E++){if(m[E]===";")return E;if(!m[E].match(S))break}return-1}function h(m,E){if(E++,m[E]===";")return-1;if(m[E]==="#")return E++,d(m,E);let S=0;for(;E<m.length;E++,S++)if(!(m[E].match(/\w/)&&S<20)){if(m[E]===";")break;return-1}return E}function p(m,E,S){return{err:{code:m,msg:E,line:S.line||S,col:S.col}}}function f(m){return e.isName(m)}function g(m){return e.isName(m)}function b(m,E){const S=m.substring(0,E).split(/\r?\n/);return{line:S.length,col:S[S.length-1].length+1}}function _(m){return m.startIndex+m[1].length}return Ea}var pi={},_d;function Kw(){if(_d)return pi;_d=1;const{DANGEROUS_PROPERTY_NAMES:e,criticalProperties:t}=fi(),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,l){return a},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,onDangerousProperty:n};function i(a,u){if(typeof a!="string")return;const l=a.toLowerCase();if(e.some(d=>l===d.toLowerCase()))throw new Error(`[SECURITY] Invalid ${u}: "${a}" is a reserved JavaScript keyword that could cause prototype pollution`);if(t.some(d=>l===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),l=[{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 l)d&&i(d,h);return u.onDangerousProperty===null&&(u.onDangerousProperty=n),u.processEntities=s(u.processEntities),u};return pi.buildOptions=o,pi.defaultOptions=r,pi}var Ta,wd;function Xw(){if(wd)return Ta;wd=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 Ta=e,Ta}var _a,kd;function Qw(){if(kd)return _a;kd=1;const e=fi();class t{constructor(o){this.suppressValidationErr=!o,this.options=o||{}}readDocType(o,a){const u=Object.create(null);let l=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,p=!1,f="";for(;a<o.length;a++)if(o[a]==="<"&&!p){if(h&&r(o,"!ENTITY",a)){a+=7;let g,b;if([g,b,a]=this.readEntityExp(o,a+1,this.suppressValidationErr),b.indexOf("&")===-1){if(this.options.enabled!==!1&&this.options.maxEntityCount!=null&&l>=this.options.maxEntityCount)throw new Error(`Entity count (${l+1}) exceeds maximum allowed (${this.options.maxEntityCount})`);const _=g.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");u[g]={regx:RegExp(`&${_};`,"g"),val:b},l++}}else if(h&&r(o,"!ELEMENT",a)){a+=8;const{index:g}=this.readElementExp(o,a+1);a=g}else if(h&&r(o,"!ATTLIST",a))a+=8;else if(h&&r(o,"!NOTATION",a)){a+=9;const{index:g}=this.readNotationExp(o,a+1,this.suppressValidationErr);a=g}else if(r(o,"!--",a))p=!0;else throw new Error("Invalid DOCTYPE");d++,f=""}else if(o[a]===">"){if(p?o[a-1]==="-"&&o[a-2]==="-"&&(p=!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 l="";if([a,l]=this.readIdentifierVal(o,a,"entity"),this.options.enabled!==!1&&this.options.maxEntitySize!=null&&l.length>this.options.maxEntitySize)throw new Error(`Entity "${u}" size (${l.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return a--,[u,l,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 l=o.substring(a,a+6).toUpperCase();if(!this.suppressValidationErr&&l!=="SYSTEM"&&l!=="PUBLIC")throw new Error(`Expected SYSTEM or PUBLIC, found "${l}"`);a+=l.length,a=n(o,a);let d=null,h=null;if(l==="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(l==="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 l="";const d=o[a];if(d!=='"'&&d!=="'")throw new Error(`Expected quoted string, found "${d}"`);for(a++;a<o.length&&o[a]!==d;)l+=o[a],a++;if(o[a]!==d)throw new Error(`Unterminated ${u} value`);return a++,[a,l]}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 l="";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]!==")";)l+=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:l.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 l="";for(;a<o.length&&!/\s/.test(o[a]);)l+=o[a],a++;if(!i(l))throw new Error(`Invalid attribute name: "${l}"`);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 p=[];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}"`);p.push(f),o[a]==="|"&&(a++,a=n(o,a))}if(o[a]!==")")throw new Error("Unterminated list of notations");a++,d+=" ("+p.join("|")+")"}else{for(;a<o.length&&!/\s/.test(o[a]);)d+=o[a],a++;const p=["CDATA","ID","IDREF","IDREFS","ENTITY","ENTITIES","NMTOKEN","NMTOKENS"];if(!this.suppressValidationErr&&!p.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:l,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 _a=t,_a}var wa,Ad;function Zw(){if(Ad)return wa;Ad=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 l=u.match(/^([-\+])?(0*)([0-9]*(\.[0-9]*)?[eE][-\+]?[0-9]+)$/);if(l){if(a.leadingZeros)u=(l[1]||"")+l[3];else if(!(l[2]==="0"&&l[3][0]==="."))return o;return a.eNotation?Number(u):o}else return o}else{const l=t.exec(u);if(l){const d=l[1],h=l[2];let p=i(l[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),g=""+f;return g.search(/[eE]/)!==-1?a.eNotation?f:o:u.indexOf(".")!==-1?g==="0"&&p===""||g===p||d&&g==="-"+p?f:o:h?p===g||d+p===g?f:o:u===g||u===d+g?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 wa=r,wa}var ka,Sd;function Cd(){if(Sd)return ka;Sd=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 ka=e,ka}var Aa,xd;function Jw(){if(xd)return Aa;xd=1;const e=fi(),t=Xw(),n=Qw(),r=Zw(),i=Cd();class s{constructor(x){if(this.options=x,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,P)=>D(P,10,"&#")},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(w,P)=>D(P,16,"&#x")}},this.addExternalEntities=o,this.parseXml=h,this.parseTextData=a,this.resolveNameSpace=u,this.buildAttributesMap=d,this.isItStopNode=b,this.replaceEntitiesValue=f,this.readStopNodeData=S,this.saveTextToParentTag=g,this.addChild=p,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 P=this.options.stopNodes[w];typeof P=="string"&&(P.startsWith("*.")?this.stopNodesWildcard.add(P.substring(2)):this.stopNodesExact.add(P))}}}}function o(C){const x=Object.keys(C);for(let w=0;w<x.length;w++){const P=x[w],R=P.replace(/[.\-+*:]/g,"\\.");this.lastEntities[P]={regex:new RegExp("&"+R+";","g"),val:C[P]}}}function a(C,x,w,P,R,k,M){if(C!==void 0&&(this.options.trimValues&&!P&&(C=C.trim()),C.length>0)){M||(C=this.replaceEntitiesValue(C,x,w));const T=this.options.tagValueProcessor(x,C,w,R,k);return T==null?C:typeof T!=typeof C||T!==C?T:this.options.trimValues?I(C,this.options.parseTagValue,this.options.numberParseOptions):C.trim()===C?I(C,this.options.parseTagValue,this.options.numberParseOptions):C}}function u(C){if(this.options.removeNSPrefix){const x=C.split(":"),w=C.charAt(0)==="/"?"/":"";if(x[0]==="xmlns")return"";x.length===2&&(C=w+x[1])}return C}const l=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function d(C,x,w){if(this.options.ignoreAttributes!==!0&&typeof C=="string"){const P=e.getAllMatches(C,l),R=P.length,k={};for(let M=0;M<R;M++){const T=this.resolveNameSpace(P[M][1]);if(this.ignoreAttributesFn(T,x))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,w,x);const G=this.options.attributeValueProcessor(T,U,x);G==null?k[W]=U:typeof G!=typeof U||G!==U?k[W]=G:k[W]=I(U,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(k[W]=!0)}if(!Object.keys(k).length)return;if(this.options.attributesGroupName){const M={};return M[this.options.attributesGroupName]=k,M}return k}}const h=function(C){C=C.replace(/\r\n?/g,`
|
|
51
|
+
`);const x=new t("!xml");let w=x,P="",R="";this.entityExpansionCount=0,this.currentExpandedLength=0;const k=new n(this.options.processEntities);for(let M=0;M<C.length;M++)if(C[M]==="<")if(C[M+1]==="/"){const U=m(C,">",M,"Closing Tag is not closed.");let W=C.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&&(P=this.saveTextToParentTag(P,w,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),w=this.tagsNodeStack.pop(),P="",M=U}else if(C[M+1]==="?"){let U=E(C,M,!1,"?>");if(!U)throw new Error("Pi Tag is not closed.");if(P=this.saveTextToParentTag(P,w,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(w,W,R,M)}M=U.closeIndex+1}else if(C.substr(M+1,3)==="!--"){const U=m(C,"-->",M+4,"Comment is not closed.");if(this.options.commentPropName){const W=C.substring(M+4,U-2);P=this.saveTextToParentTag(P,w,R),w.add(this.options.commentPropName,[{[this.options.textNodeName]:W}])}M=U}else if(C.substr(M+1,2)==="!D"){const U=k.readDocType(C,M);this.docTypeEntities=U.entities,M=U.i}else if(C.substr(M+1,2)==="!["){const U=m(C,"]]>",M,"CDATA is not closed.")-2,W=C.substring(M+9,U);P=this.saveTextToParentTag(P,w,R);let G=this.parseTextData(W,w.tagname,R,!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=E(C,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&&P&&w.tagname!=="!xml"&&(P=this.saveTextToParentTag(P,w,R,!1));const j=w;j&&this.options.unpairedTags.indexOf(j.tagname)!==-1&&(w=this.tagsNodeStack.pop(),R=R.substring(0,R.lastIndexOf("."))),W!==x.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(C,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(w,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(w,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(w,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(w),W!==se&&Z&&(oe[":@"]=this.buildAttributesMap(se,R,W)),this.addChild(w,oe,R),w=oe}P="",M=he}}else P+=C[M];return x.child};function p(C,x,w,P){this.options.captureMetaData||(P=void 0);const R=this.options.updateTag(x.tagname,w,x[":@"]);R===!1||(typeof R=="string"&&(x.tagname=R),C.addChild(x,P))}const f=function(C,x,w){if(C.indexOf("&")===-1)return C;const P=this.options.processEntities;if(!P.enabled||P.allowedTags&&!P.allowedTags.includes(x)||P.tagFilter&&!P.tagFilter(x,w))return C;for(let R in this.docTypeEntities){const k=this.docTypeEntities[R],M=C.match(k.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=C.length;if(C=C.replace(k.regx,k.val),P.maxExpandedLength&&(this.currentExpandedLength+=C.length-T,this.currentExpandedLength>P.maxExpandedLength))throw new Error(`Total expanded content size exceeded: ${this.currentExpandedLength} > ${P.maxExpandedLength}`)}}if(C.indexOf("&")===-1)return C;for(const R of Object.keys(this.lastEntities)){const k=this.lastEntities[R],M=C.match(k.regex);if(M&&(this.entityExpansionCount+=M.length,P.maxTotalExpansions&&this.entityExpansionCount>P.maxTotalExpansions))throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${P.maxTotalExpansions}`);C=C.replace(k.regex,k.val)}if(C.indexOf("&")===-1)return C;if(this.options.htmlEntities)for(const R of Object.keys(this.htmlEntities)){const k=this.htmlEntities[R],M=C.match(k.regex);if(M&&(this.entityExpansionCount+=M.length,P.maxTotalExpansions&&this.entityExpansionCount>P.maxTotalExpansions))throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${P.maxTotalExpansions}`);C=C.replace(k.regex,k.val)}return C=C.replace(this.ampEntity.regex,this.ampEntity.val),C};function g(C,x,w,P){return C&&(P===void 0&&(P=x.child.length===0),C=this.parseTextData(C,x.tagname,w,!1,x[":@"]?Object.keys(x[":@"]).length!==0:!1,P),C!==void 0&&C!==""&&x.add(this.options.textNodeName,C),C=""),C}function b(C,x,w,P){return!!(x&&x.has(P)||C&&C.has(w))}function _(C,x,w=">"){let P,R="";for(let k=x;k<C.length;k++){let M=C[k];if(P)M===P&&(P="");else if(M==='"'||M==="'")P=M;else if(M===w[0])if(w[1]){if(C[k+1]===w[1])return{data:R,index:k}}else return{data:R,index:k};else M===" "&&(M=" ");R+=M}}function m(C,x,w,P){const R=C.indexOf(x,w);if(R===-1)throw new Error(P);return R+x.length-1}function E(C,x,w,P=">"){const R=_(C,x+1,P);if(!R)return;let k=R.data;const M=R.index,T=k.search(/\s/);let U=k,W=!0;T!==-1&&(U=k.substring(0,T),k=k.substring(T+1).trimStart());const G=U;if(w){const se=U.indexOf(":");se!==-1&&(U=U.substr(se+1),W=U!==R.data.substr(se+1))}return{tagName:U,tagExp:k,closeIndex:M,attrExpPresent:W,rawTagName:G}}function S(C,x,w){const P=w;let R=1;for(;w<C.length;w++)if(C[w]==="<")if(C[w+1]==="/"){const k=m(C,">",w,`${x} is not closed`);if(C.substring(w+2,k).trim()===x&&(R--,R===0))return{tagContent:C.substring(P,w),i:k};w=k}else if(C[w+1]==="?")w=m(C,"?>",w+1,"StopNode is not closed.");else if(C.substr(w+1,3)==="!--")w=m(C,"-->",w+3,"StopNode is not closed.");else if(C.substr(w+1,2)==="![")w=m(C,"]]>",w,"StopNode is not closed.")-2;else{const k=E(C,w,">");k&&((k&&k.tagName)===x&&k.tagExp[k.tagExp.length-1]!=="/"&&R++,w=k.closeIndex)}}function I(C,x,w){if(x&&typeof C=="string"){const P=C.trim();return P==="true"?!0:P==="false"?!1:r(C,w)}else return e.isExist(C)?C:""}function D(C,x,w){const P=Number.parseInt(C,x);return P>=0&&P<=1114111?String.fromCodePoint(P):w+C+";"}function B(C,x){if(e.criticalProperties.includes(C))throw new Error(`[SECURITY] Invalid name: "${C}" is a reserved JavaScript keyword that could cause prototype pollution`);return e.DANGEROUS_PROPERTY_NAMES.includes(C)?x.onDangerousProperty(C):C}return Aa=s,Aa}var Sa={},Nd;function ek(){if(Nd)return Sa;Nd=1;function e(s,o){return t(s,o)}function t(s,o,a){let u;const l={};for(let d=0;d<s.length;d++){const h=s[d],p=n(h);let f="";if(a===void 0?f=p:f=a+"."+p,p===o.textNodeName)u===void 0?u=h[p]:u+=""+h[p];else{if(p===void 0)continue;if(h[p]){let g=t(h[p],o,f);const b=i(g,o);h[":@"]?r(g,h[":@"],f,o):Object.keys(g).length===1&&g[o.textNodeName]!==void 0&&!o.alwaysCreateTextNode?g=g[o.textNodeName]:Object.keys(g).length===0&&(o.alwaysCreateTextNode?g[o.textNodeName]="":g=""),l[p]!==void 0&&l.hasOwnProperty(p)?(Array.isArray(l[p])||(l[p]=[l[p]]),l[p].push(g)):o.isArray(p,f,b)?l[p]=[g]:l[p]=g}}}return typeof u=="string"?u.length>0&&(l[o.textNodeName]=u):u!==void 0&&(l[o.textNodeName]=u),l}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 l=Object.keys(o),d=l.length;for(let h=0;h<d;h++){const p=l[h];u.isArray(p,a+"."+p,!0,!0)?s[p]=[o[p]]:s[p]=o[p]}}}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 Sa.prettify=e,Sa}var Ca,vd;function tk(){if(vd)return Ca;vd=1;const{buildOptions:e}=Kw(),t=Jw(),{prettify:n}=ek(),r=Td();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 l=u.parseXml(o);return this.options.preserveOrder||l===void 0?l:n(l,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 '
'");if(a==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[o]=a}}return Ca=i,Ca}var xa,Id;function nk(){if(Id)return xa;Id=1;const e=`
|
|
52
|
+
`;function t(a,u){let l="";return u.format&&u.indentBy.length>0&&(l=e),n(a,u,"",l)}function n(a,u,l,d){let h="",p=!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 g=a[f],b=r(g);if(b===void 0)continue;let _="";if(l.length===0?_=b:_=`${l}.${b}`,b===u.textNodeName){let D=g[b];s(_,u)||(D=u.tagValueProcessor(b,D),D=o(D,u)),p&&(h+=d),h+=D,p=!1;continue}else if(b===u.cdataPropName){p&&(h+=d),h+=`<![CDATA[${g[b][0][u.textNodeName]}]]>`,p=!1;continue}else if(b===u.commentPropName){h+=d+`<!--${g[b][0][u.textNodeName]}-->`,p=!0;continue}else if(b[0]==="?"){const D=i(g[":@"],u),B=b==="?xml"?"":d;let C=g[b][0][u.textNodeName];C=C.length!==0?" "+C:"",h+=B+`<${b}${C}${D}?>`,p=!0;continue}let m=d;m!==""&&(m+=u.indentBy);const E=i(g[":@"],u),S=d+`<${b}${E}`,I=n(g[b],u,_,m);u.unpairedTags.indexOf(b)!==-1?u.suppressUnpairedNode?h+=S+">":h+=S+"/>":(!I||I.length===0)&&u.suppressEmptyNode?h+=S+"/>":I&&I.endsWith(">")?h+=S+`>${I}${d}</${b}>`:(h+=S+">",I&&d!==""&&(I.includes("/>")||I.includes("</"))?h+=d+u.indentBy+I+d:h+=I,h+=`</${b}>`),p=!0}return h}function r(a){const u=Object.keys(a);for(let l=0;l<u.length;l++){const d=u[l];if(Object.prototype.hasOwnProperty.call(a,d)&&d!==":@")return d}}function i(a,u){let l="";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?l+=` ${d.substr(u.attributeNamePrefix.length)}`:l+=` ${d.substr(u.attributeNamePrefix.length)}="${h}"`}return l}function s(a,u){a=a.substr(0,a.length-u.textNodeName.length-1);let l=a.substr(a.lastIndexOf(".")+1);for(let d in u.stopNodes)if(u.stopNodes[d]===a||u.stopNodes[d]==="*."+l)return!0;return!1}function o(a,u){if(a&&a.length>0&&u.processEntities)for(let l=0;l<u.entities.length;l++){const d=u.entities[l];a=a.replace(d.regex,d.val)}return a}return xa=t,xa}var Na,Od;function rk(){if(Od)return Na;Od=1;const e=nk(),t=Cd(),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:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],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=`>
|
|
53
53
|
`,this.newLine=`
|
|
54
|
-
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}r.prototype.build=function(o){return this.options.preserveOrder?e(o,this.options):(Array.isArray(o)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(o={[this.options.arrayNodeName]:o}),this.j2x(o,0,[]).val)},r.prototype.j2x=function(o,u,l){let d="",h="";const p=l.join(".");for(let f in o)if(Object.prototype.hasOwnProperty.call(o,f))if(typeof o[f]>"u")this.isAttribute(f)&&(h+="");else if(o[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(o[f]instanceof Date)h+=this.buildTextValNode(o[f],f,"",u);else if(typeof o[f]!="object"){const g=this.isAttribute(f);if(g&&!this.ignoreAttributesFn(g,p))d+=this.buildAttrPairStr(g,""+o[f]);else if(!g)if(f===this.options.textNodeName){let b=this.options.tagValueProcessor(f,""+o[f]);h+=this.replaceEntitiesValue(b)}else h+=this.buildTextValNode(o[f],f,"",u)}else if(Array.isArray(o[f])){const g=o[f].length;let b="",_="";for(let m=0;m<g;m++){const E=o[f][m];if(!(typeof E>"u"))if(E===null)f[0]==="?"?h+=this.indentate(u)+"<"+f+"?"+this.tagEndChar:h+=this.indentate(u)+"<"+f+"/"+this.tagEndChar;else if(typeof E=="object")if(this.options.oneListGroup){const S=this.j2x(E,u+1,l.concat(f));b+=S.val,this.options.attributesGroupName&&E.hasOwnProperty(this.options.attributesGroupName)&&(_+=S.attrStr)}else b+=this.processTextOrObjNode(E,f,u,l);else if(this.options.oneListGroup){let S=this.options.tagValueProcessor(f,E);S=this.replaceEntitiesValue(S),b+=S}else b+=this.buildTextValNode(E,f,"",u)}this.options.oneListGroup&&(b=this.buildObjectNode(b,f,_,u)),h+=b}else if(this.options.attributesGroupName&&f===this.options.attributesGroupName){const g=Object.keys(o[f]),b=g.length;for(let _=0;_<b;_++)d+=this.buildAttrPairStr(g[_],""+o[f][g[_]])}else h+=this.processTextOrObjNode(o[f],f,u,l);return{attrStr:d,val:h}},r.prototype.buildAttrPairStr=function(o,u){return u=this.options.attributeValueProcessor(o,""+u),u=this.replaceEntitiesValue(u),this.options.suppressBooleanAttributes&&u==="true"?" "+o:" "+o+'="'+u+'"'};function i(o,u,l,d){const h=this.j2x(o,l+1,d.concat(u));return o[this.options.textNodeName]!==void 0&&Object.keys(o).length===1?this.buildTextValNode(o[this.options.textNodeName],u,h.attrStr,l):this.buildObjectNode(h.val,u,h.attrStr,l)}r.prototype.buildObjectNode=function(o,u,l,d){if(o==="")return u[0]==="?"?this.indentate(d)+"<"+u+l+"?"+this.tagEndChar:this.indentate(d)+"<"+u+l+this.closeTag(u)+this.tagEndChar;{let h="</"+u+this.tagEndChar,p="";return u[0]==="?"&&(p="?",h=""),(l||l==="")&&o.indexOf("<")===-1?this.indentate(d)+"<"+u+l+p+">"+o+h:this.options.commentPropName!==!1&&u===this.options.commentPropName&&p.length===0?this.indentate(d)+`<!--${o}-->`+this.newLine:this.indentate(d)+"<"+u+l+p+this.tagEndChar+o+this.indentate(d)+h}},r.prototype.closeTag=function(o){let u="";return this.options.unpairedTags.indexOf(o)!==-1?this.options.suppressUnpairedNode||(u="/"):this.options.suppressEmptyNode?u="/":u=`></${o}`,u},r.prototype.buildTextValNode=function(o,u,l,d){if(this.options.cdataPropName!==!1&&u===this.options.cdataPropName)return this.indentate(d)+`<![CDATA[${o}]]>`+this.newLine;if(this.options.commentPropName!==!1&&u===this.options.commentPropName)return this.indentate(d)+`<!--${o}-->`+this.newLine;if(u[0]==="?")return this.indentate(d)+"<"+u+l+"?"+this.tagEndChar;{let h=this.options.tagValueProcessor(u,o);return h=this.replaceEntitiesValue(h),h===""?this.indentate(d)+"<"+u+l+this.closeTag(u)+this.tagEndChar:this.indentate(d)+"<"+u+l+">"+h+"</"+u+this.tagEndChar}},r.prototype.replaceEntitiesValue=function(o){if(o&&o.length>0&&this.options.processEntities)for(let u=0;u<this.options.entities.length;u++){const l=this.options.entities[u];o=o.replace(l.regex,l.val)}return o};function s(o){return this.options.indentBy.repeat(o)}function a(o){return o.startsWith(this.options.attributeNamePrefix)&&o!==this.options.textNodeName?o.substr(this.attrPrefixLen):!1}return va=r,va}var Ia,Id;function ek(){if(Id)return Ia;Id=1;const e=Ed(),t=Qw(),n=Jw();return Ia={XMLParser:t,XMLValidator:e,XMLBuilder:n},Ia}var Oa=ek();const tk={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)},nk={ignoreAttributes:!1,attributeNamePrefix:"@_",textNodeName:"#text",trimValues:!1,preserveOrder:!0},rk=new Oa.XMLParser(nk),ik={ignoreAttributes:!1,attributeNamePrefix:"@_",textNodeName:"#text",format:!0,suppressEmptyNode:!0};new Oa.XMLParser(tk),new Oa.XMLBuilder(ik);function sk(e){return rk.parse(e)}function ak(e){return dn.createHash("sha256").update(e).digest("hex").slice(0,16)}const Od={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},Ld=new Set(["Code","code","SourceCode","HTMLCode"]),Pd=new Set(["Quote","quote","BlockQuote","IntenseQuote"]);let Rd=new Map,Dd=new Map;function ok(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}function uk(e){const t=new Map;if(!e)return t;const n=new Map,r=/<w:abstractNum\s+w:abstractNumId="([^"]+)"[\s\S]*?<\/w:abstractNum>/g;let i;for(;(i=r.exec(e))!==null;){const a=i[1],u=i[0].match(/<w:lvl\b[\s\S]*?<\/w:lvl>/);if(!u){n.set(a,!1);continue}const l=u[0].match(/<w:numFmt\s+w:val="([^"]+)"/),d=(l==null?void 0:l[1])??"bullet";n.set(a,d!=="bullet"&&d!=="none")}const s=/<w:num\s+w:numId="([^"]+)"[\s\S]*?<w:abstractNumId\s+w:val="([^"]+)"[\s\S]*?<\/w:num>/g;for(;(i=s.exec(e))!==null;){const a=i[1],o=i[2];t.set(a,n.get(o)??!1)}return t}async function lk(e,t){const n=await md(e),r=n.rawParts.get("word/otomate-udm.json");if(r)try{const o=JSON.parse(r),u=o.__docHash,l=ak(n.document);if(u&&u===l){delete o.__docHash;const d=n.rawParts.get("word/otomate-css.json");if(d){const h=JSON.parse(d);o.data={...o.data,css:h}}return o.data={...o.data,docx:{rawParts:Object.fromEntries(n.rawParts),styles:n.styles,numbering:n.numbering,relationships:n.relationships,contentTypes:n.contentTypes}},o}}catch{}Rd=ok(n.relationships),Dd=uk(n.numbering);const i=sk(n.document),a={type:"root",children:ck(i)};return a.data={docx:{rawParts:Object.fromEntries(n.rawParts),styles:n.styles,numbering:n.numbering,relationships:n.relationships,contentTypes:n.contentTypes}},n.media.size>0&&(a.data.docx.media=Object.fromEntries([...n.media].map(([o,u])=>[o,Array.from(u)]))),a}function ck(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 dk(i)}function dk(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"]??[],a=i[":@"]??{},o=hk(s,a,n,r);o&&(r(),t.push(o))}else if(i["w:sdt"]!==void 0){const s=i["w:sdt"]??[],a=mk(s);if(a.length>0){r();for(const o of a)t.push(o)}}else i["w:tbl"]!==void 0?(r(),t.push(bk(i["w:tbl"]??[]))):i["w:sectPr"];return r(),t}function hk(e,t,n,r,i){var _,m;const s=e.find(E=>E["w:pPr"]!==void 0),a=(s==null?void 0:s["w:pPr"])??[],o=a.find(E=>E["w:numPr"]!==void 0);if(o){const E=o["w:numPr"]??[],S=Pa(E,"w:numId","w:val")??"0",I=Number(Pa(E,"w:ilvl","w:val")??0),D=Dd.get(S)??!1,x={type:"listItem",children:[{type:"paragraph",children:In(e)}]};if(n.length===0||n[0].numId!==S){r();const w={type:"list",ordered:D,children:[x]};n.push({numId:S,ilvl:I,list:w,item:x})}else{const w=n[n.length-1];if(I>w.ilvl){const P={type:"list",ordered:D,children:[x]};w.item.children.push(P),n.push({numId:S,ilvl:I,list:P,item:x})}else if(I<w.ilvl){for(;n.length>1&&n[n.length-1].ilvl>I;)n.pop();n[n.length-1].list.children.push(x),n[n.length-1].item=x}else w.list.children.push(x),w.item=x}return null}const u=Pa(a,"w:pStyle","w:val");if(u&&Ld.has(u))return{type:"codeBlock",value:fk(e)};if(u&&Pd.has(u)){const E=In(e);return E.length===0?null:{type:"blockquote",children:[{type:"paragraph",children:E}]}}const l=a.find(E=>E["w:ind"]!==void 0),d=(_=l==null?void 0:l[":@"])==null?void 0:_["@_w:left"];if(d&&Number(d)>=720&&!u){const E=In(e);return E.length===0?null:{type:"blockquote",children:[{type:"paragraph",children:E}]}}const h=u?Od[u]:void 0;if(h){const E=In(e);return{type:"heading",depth:h,children:E}}const p=In(e);if(p.length===0)return null;const f={type:"paragraph",children:p};u&&!Od[u]&&!Ld.has(u)&&!Pd.has(u)&&(f.classes=[u]);const g={},b=a.find(E=>E["w:jc"]!==void 0);return b&&(g.align=(m=b[":@"])==null?void 0:m["@_w:val"]),Object.keys(g).length>0&&(f.data={docx:g}),f}function In(e){const t=[];for(const n of e)if(n["w:r"]!==void 0){const r=n["w:r"]??[],i=La(r);if(!i)continue;const s=Md(r),a={type:"text",value:i};s.length>0&&(a.marks=s);const o=r.find(u=>u["w:rPr"]!==void 0);if(o){const u=pk(o["w:rPr"]??[]);Object.keys(u).length>0&&(a.data={docx:u})}t.push(a)}else if(n["w:sdt"]!==void 0){const r=n["w:sdt"]??[],i=gk(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"]??"",a=Rd.get(s)??`#${s}`;for(const o of r)if(o["w:r"]!==void 0){const u=o["w:r"]??[],l=La(u);if(!l)continue;const d=Md(u);d.push({type:"link",attrs:{url:a}}),t.push({type:"text",value:l,marks:d})}}return t}function La(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 fk(e){let t="";for(const n of e)if(n["w:r"]!==void 0){const r=La(n["w:r"]??[]);r&&(t+=r)}return t}function Md(e){var i,s,a;const t=e.find(o=>o["w:rPr"]!==void 0);if(!t)return[];const n=t["w:rPr"]??[],r=[];for(const o of n){if(o["w:b"]!==void 0&&r.push({type:"strong"}),o["w:i"]!==void 0&&r.push({type:"emphasis"}),o["w:u"]!==void 0){const u=((i=o[":@"])==null?void 0:i["@_w:val"])??"single";r.push({type:"underline",attrs:{style:u}})}if(o["w:strike"]!==void 0&&r.push({type:"strikethrough"}),o["w:dstrike"]!==void 0&&r.push({type:"strikethrough",attrs:{double:!0}}),o["w:vertAlign"]!==void 0){const u=(s=o[":@"])==null?void 0:s["@_w:val"];u==="superscript"&&r.push({type:"superscript"}),u==="subscript"&&r.push({type:"subscript"})}if(o["w:highlight"]!==void 0){const u=(a=o[":@"])==null?void 0:a["@_w:val"];r.push({type:"highlight",attrs:{color:u}})}}return r}function pk(e){var n,r,i,s,a;const t={};for(const o of e)o["w:rFonts"]!==void 0&&(t.font={ascii:(n=o[":@"])==null?void 0:n["@_w:ascii"],hAnsi:(r=o[":@"])==null?void 0:r["@_w:hAnsi"]}),o["w:sz"]!==void 0&&(t.fontSize=Number((i=o[":@"])==null?void 0:i["@_w:val"])),o["w:color"]!==void 0&&(t.color=(s=o[":@"])==null?void 0:s["@_w:val"]),o["w:rStyle"]!==void 0&&(t.rStyle=(a=o[":@"])==null?void 0:a["@_w:val"]);return t}function Bd(e){var s,a;const t=e.find(o=>o["w:sdtPr"]!==void 0);if(!t)return"field";const n=t["w:sdtPr"]??[],r=n.find(o=>o["w:tag"]!==void 0);if(r){const o=(s=r[":@"])==null?void 0:s["@_w:val"];if(o)return o}const i=n.find(o=>o["w:alias"]!==void 0);if(i){const o=(a=i[":@"])==null?void 0:a["@_w:val"];if(o)return o}return"field"}function mk(e){return[{type:"paragraph",children:[{type:"text",value:`{{${Bd(e)}}}`}]}]}function gk(e){return{type:"text",value:`{{${Bd(e)}}}`}}function bk(e){var n;const t=[];for(const r of e)if(r["w:tr"]!==void 0){const i=r["w:tr"]??[],s=[];let a=!1;for(const o of i)if(o["w:trPr"]!==void 0&&(o["w:trPr"]??[]).some(l=>l["w:tblHeader"]!==void 0)&&(a=!0),o["w:tc"]!==void 0){const u=o["w:tc"]??[],l=[];let d;for(const p of u){if(p["w:tcPr"]!==void 0){const f=p["w:tcPr"]??[];for(const g of f)if(g["w:gridSpan"]!==void 0){const b=Number((n=g[":@"])==null?void 0:n["@_w:val"]);b>1&&(d=b)}}if(p["w:p"]!==void 0){const f=In(p["w:p"]??[]);f.length>0&&l.push({type:"paragraph",children:f})}}const h={type:"tableCell",children:l};d&&(h.colspan=d),s.push(h)}t.push({type:"tableRow",isHeader:a||void 0,children:s})}return{type:"table",children:t}}function Pa(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 Fd={solid:"single",dashed:"dashed",dotted:"dotted",double:"double",groove:"single",ridge:"single",inset:"single",outset:"single"};function Ud(e){const t=e.trim().split(/\s+/);let n,r,i;for(const s of t){const a=s.toLowerCase();if(a==="none"||a==="hidden")return;if(Fd[a]!==void 0){r=Fd[a];continue}const o=s.match(/^([\d.]+)(px|pt|in|cm|mm|em|rem)$/i);if(o){const l=parseFloat(o[1]);let d;switch(o[2].toLowerCase()){case"pt":d=l;break;case"px":d=l*.75;break;case"in":d=l*72;break;case"cm":d=l*28.35;break;case"mm":d=l*2.835;break;default:d=l*12}n=Math.max(1,Math.round(d*8));continue}const u=On(s);u&&(i=u)}if(r!==void 0)return{val:r,sz:n??8,color:i??"000000"}}const Hd={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 On(e){const t=e.trim().toLowerCase();if(t==="transparent"||t==="currentcolor"||t==="inherit")return;if(Hd[t])return Hd[t];const n=t.match(/^#([0-9a-f]{3,8})$/);if(n){const s=n[1];if(s.length===3||s.length===4)return s[0]+s[0]+s[1]+s[1]+s[2]+s[2];if(s.length===6)return s;if(s.length===8)return s.slice(0,6)}const r=t.match(/^rgba?\(\s*(\d+)[\s,]+(\d+)[\s,]+(\d+)(?:[\s,/]+[\d.]+%?)?\s*\)$/);if(r)return[r[1],r[2],r[3]].map(s=>Math.max(0,Math.min(255,Number(s))).toString(16).padStart(2,"0")).join("");const i=t.match(/^hsla?\(\s*(\d+(?:\.\d+)?)\s*,?\s*(\d+(?:\.\d+)?)%\s*,?\s*(\d+(?:\.\d+)?)%(?:\s*[,/]\s*[\d.]+%?)?\s*\)$/);if(i){const[s,a,o]=Ek(Number(i[1]),Number(i[2]),Number(i[3]));return[s,a,o].map(u=>u.toString(16).padStart(2,"0")).join("")}}function Ek(e,t,n){t/=100,n/=100;const r=(1-Math.abs(2*n-1))*t,i=(e%360+360)%360/60,s=r*(1-Math.abs(i%2-1));let a=0,o=0,u=0;i<1?(a=r,o=s):i<2?(a=s,o=r):i<3?(o=r,u=s):i<4?(o=s,u=r):i<5?(a=s,u=r):(a=r,u=s);const l=n-r/2;return[Math.round((a+l)*255),Math.round((o+l)*255),Math.round((u+l)*255)]}function At(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);case"%":return;default:return}}function zd(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=zd(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=On(e.color);n&&(t.color=n)}if(e["background-color"]){const n=On(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 Ln(e){const t={};if(e["text-align"]){const a=e["text-align"];(a==="left"||a==="center"||a==="right")&&(t.jc=a),a==="justify"&&(t.jc="both")}if(e["background-color"]){const a=On(e["background-color"]);a&&(t.shd=a)}const n={},r=["top","bottom","left","right"];for(const a of r)if(e[`border-${a}`]){const o=Ud(e[`border-${a}`]);o&&(n[a]=o)}if(e.border){const a=Ud(e.border);if(a)for(const o of r)n[o]||(n[o]=a)}Object.keys(n).length>0&&(t.pBdr=n);const i={};if(e["margin-top"]){const a=At(e["margin-top"]);a&&(i.before=a)}if(e["margin-bottom"]){const a=At(e["margin-bottom"]);a&&(i.after=a)}if(e["padding-top"]){const a=At(e["padding-top"]);a&&(i.before=(i.before??0)+a)}if(e["padding-bottom"]){const a=At(e["padding-bottom"]);a&&(i.after=(i.after??0)+a)}if(e["line-height"]){const a=e["line-height"].match(/^([\d.]+)(px|pt)?$/);if(a){const o=parseFloat(a[1]);a[2]==="pt"?i.line=Math.round(o*20):a[2]==="px"?i.line=Math.round(o*.75*20):i.line=Math.round(o*240)}}Object.keys(i).length>0&&(t.spacing=i);const s={};if(e["margin-left"]){const a=At(e["margin-left"]);a&&(s.left=a)}if(e["margin-right"]){const a=At(e["margin-right"]);a&&(s.right=a)}if(e["padding-left"]){const a=At(e["padding-left"]);a&&(s.left=(s.left??0)+a)}if(e["padding-right"]){const a=At(e["padding-right"]);a&&(s.right=(s.right??0)+a)}if(e["text-indent"]){const a=At(e["text-indent"]);a&&(s.firstLine=a)}return Object.keys(s).length>0&&(t.ind=s),t}function $d(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.strike&&t.push("<w:strike/>"),e.color&&t.push(`<w:color w:val="${e.color}"/>`),e.sz&&t.push(`<w:sz w:val="${e.sz}"/>`),e.u&&t.push(`<w:u w:val="${e.u}"/>`),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 jd(e){const t=[];if(e.pBdr){const n=[];for(const r of["top","bottom","left","right"]){const i=e.pBdr[r];i&&n.push(`<w:${r} w:val="${i.val}" w:sz="${i.sz}" w:space="0" w:color="${i.color}"/>`)}n.length>0&&t.push(`<w:pBdr>${n.join("")}</w:pBdr>`)}if(e.shd&&t.push(`<w:shd w:val="clear" w:color="auto" w:fill="${e.shd}"/>`),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 e.jc&&t.push(`<w:jc w:val="${e.jc}"/>`),t.length>0?`<w:pPr>${t.join("")}</w:pPr>`:""}function gi(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 a=jd(i);a&&s.push(a)}if(r){const a=$d(r);a&&s.push(a)}return s.push("</w:style>"),s.join("")}const qd=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
54
|
+
`):(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,l){let d="",h="";const p=l.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 g=this.isAttribute(f);if(g&&!this.ignoreAttributesFn(g,p))d+=this.buildAttrPairStr(g,""+a[f]);else if(!g)if(f===this.options.textNodeName){let b=this.options.tagValueProcessor(f,""+a[f]);h+=this.replaceEntitiesValue(b)}else h+=this.buildTextValNode(a[f],f,"",u)}else if(Array.isArray(a[f])){const g=a[f].length;let b="",_="";for(let m=0;m<g;m++){const E=a[f][m];if(!(typeof E>"u"))if(E===null)f[0]==="?"?h+=this.indentate(u)+"<"+f+"?"+this.tagEndChar:h+=this.indentate(u)+"<"+f+"/"+this.tagEndChar;else if(typeof E=="object")if(this.options.oneListGroup){const S=this.j2x(E,u+1,l.concat(f));b+=S.val,this.options.attributesGroupName&&E.hasOwnProperty(this.options.attributesGroupName)&&(_+=S.attrStr)}else b+=this.processTextOrObjNode(E,f,u,l);else if(this.options.oneListGroup){let S=this.options.tagValueProcessor(f,E);S=this.replaceEntitiesValue(S),b+=S}else b+=this.buildTextValNode(E,f,"",u)}this.options.oneListGroup&&(b=this.buildObjectNode(b,f,_,u)),h+=b}else if(this.options.attributesGroupName&&f===this.options.attributesGroupName){const g=Object.keys(a[f]),b=g.length;for(let _=0;_<b;_++)d+=this.buildAttrPairStr(g[_],""+a[f][g[_]])}else h+=this.processTextOrObjNode(a[f],f,u,l);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,l,d){const h=this.j2x(a,l+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,l):this.buildObjectNode(h.val,u,h.attrStr,l)}r.prototype.buildObjectNode=function(a,u,l,d){if(a==="")return u[0]==="?"?this.indentate(d)+"<"+u+l+"?"+this.tagEndChar:this.indentate(d)+"<"+u+l+this.closeTag(u)+this.tagEndChar;{let h="</"+u+this.tagEndChar,p="";return u[0]==="?"&&(p="?",h=""),(l||l==="")&&a.indexOf("<")===-1?this.indentate(d)+"<"+u+l+p+">"+a+h:this.options.commentPropName!==!1&&u===this.options.commentPropName&&p.length===0?this.indentate(d)+`<!--${a}-->`+this.newLine:this.indentate(d)+"<"+u+l+p+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,l,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+l+"?"+this.tagEndChar;{let h=this.options.tagValueProcessor(u,a);return h=this.replaceEntitiesValue(h),h===""?this.indentate(d)+"<"+u+l+this.closeTag(u)+this.tagEndChar:this.indentate(d)+"<"+u+l+">"+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 l=this.options.entities[u];a=a.replace(l.regex,l.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 Na=r,Na}var va,Ld;function ik(){if(Ld)return va;Ld=1;const e=Td(),t=tk(),n=rk();return va={XMLParser:t,XMLValidator:e,XMLBuilder:n},va}var Ia=ik();const sk={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)},ak={ignoreAttributes:!1,attributeNamePrefix:"@_",textNodeName:"#text",trimValues:!1,preserveOrder:!0},ok=new Ia.XMLParser(ak),uk={ignoreAttributes:!1,attributeNamePrefix:"@_",textNodeName:"#text",format:!0,suppressEmptyNode:!0};new Ia.XMLParser(sk),new Ia.XMLBuilder(uk);function lk(e){return ok.parse(e)}const Pd={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},Rd=new Set(["Code","code","SourceCode","HTMLCode"]),Dd=new Set(["Quote","quote","BlockQuote","IntenseQuote"]);let Md=new Map,Bd=new Map;function ck(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}function dk(e){const t=new Map;if(!e)return t;const n=new Map,r=/<w:abstractNum\s+w:abstractNumId="([^"]+)"[\s\S]*?<\/w:abstractNum>/g;let i;for(;(i=r.exec(e))!==null;){const o=i[1],u=i[0].match(/<w:lvl\b[\s\S]*?<\/w:lvl>/);if(!u){n.set(o,!1);continue}const l=u[0].match(/<w:numFmt\s+w:val="([^"]+)"/),d=(l==null?void 0:l[1])??"bullet";n.set(o,d!=="bullet"&&d!=="none")}const s=/<w:num\s+w:numId="([^"]+)"[\s\S]*?<w:abstractNumId\s+w:val="([^"]+)"[\s\S]*?<\/w:num>/g;for(;(i=s.exec(e))!==null;){const o=i[1],a=i[2];t.set(o,n.get(a)??!1)}return t}async function hk(e,t){const n=await bd(e),r=n.rawParts.get("word/otomate-udm.json");if(r)try{const a=JSON.parse(r),u=a.__docHash,l=await ba(n.document);if(u&&u===l){delete a.__docHash;const d=n.rawParts.get("word/otomate-css.json");if(d){const h=JSON.parse(d);a.data={...a.data,css:h}}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{}Md=ck(n.relationships),Bd=dk(n.numbering);const i=lk(n.document),o={type:"root",children:fk(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 fk(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 pk(i)}function pk(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=mk(s,o,n,r);a&&(r(),t.push(a))}else if(i["w:sdt"]!==void 0){const s=i["w:sdt"]??[],o=Ek(s);if(o.length>0){r();for(const a of o)t.push(a)}}else i["w:tbl"]!==void 0?(r(),t.push(Tk(i["w:tbl"]??[]))):i["w:sectPr"];return r(),t}function mk(e,t,n,r,i){var _,m;const s=e.find(E=>E["w:pPr"]!==void 0),o=(s==null?void 0:s["w:pPr"])??[],a=o.find(E=>E["w:numPr"]!==void 0);if(a){const E=a["w:numPr"]??[],S=La(E,"w:numId","w:val")??"0",I=Number(La(E,"w:ilvl","w:val")??0),D=Bd.get(S)??!1,x={type:"listItem",children:[{type:"paragraph",children:On(e)}]};if(n.length===0||n[0].numId!==S){r();const w={type:"list",ordered:D,children:[x]};n.push({numId:S,ilvl:I,list:w,item:x})}else{const w=n[n.length-1];if(I>w.ilvl){const P={type:"list",ordered:D,children:[x]};w.item.children.push(P),n.push({numId:S,ilvl:I,list:P,item:x})}else if(I<w.ilvl){for(;n.length>1&&n[n.length-1].ilvl>I;)n.pop();n[n.length-1].list.children.push(x),n[n.length-1].item=x}else w.list.children.push(x),w.item=x}return null}const u=La(o,"w:pStyle","w:val");if(u&&Rd.has(u))return{type:"codeBlock",value:gk(e)};if(u&&Dd.has(u)){const E=On(e);return E.length===0?null:{type:"blockquote",children:[{type:"paragraph",children:E}]}}const l=o.find(E=>E["w:ind"]!==void 0),d=(_=l==null?void 0:l[":@"])==null?void 0:_["@_w:left"];if(d&&Number(d)>=720&&!u){const E=On(e);return E.length===0?null:{type:"blockquote",children:[{type:"paragraph",children:E}]}}const h=u?Pd[u]:void 0;if(h){const E=On(e);return{type:"heading",depth:h,children:E}}const p=On(e);if(p.length===0)return null;const f={type:"paragraph",children:p};u&&!Pd[u]&&!Rd.has(u)&&!Dd.has(u)&&(f.classes=[u]);const g={},b=o.find(E=>E["w:jc"]!==void 0);return b&&(g.align=(m=b[":@"])==null?void 0:m["@_w:val"]),Object.keys(g).length>0&&(f.data={docx:g}),f}function On(e){const t=[];for(const n of e)if(n["w:r"]!==void 0){const r=n["w:r"]??[],i=Oa(r);if(!i)continue;const s=Fd(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=bk(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=yk(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=Md.get(s)??`#${s}`;for(const a of r)if(a["w:r"]!==void 0){const u=a["w:r"]??[],l=Oa(u);if(!l)continue;const d=Fd(u);d.push({type:"link",attrs:{url:o}}),t.push({type:"text",value:l,marks:d})}}return t}function Oa(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 gk(e){let t="";for(const n of e)if(n["w:r"]!==void 0){const r=Oa(n["w:r"]??[]);r&&(t+=r)}return t}function Fd(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 bk(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 Ud(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 Ek(e){return[{type:"paragraph",children:[{type:"text",value:`{{${Ud(e)}}}`}]}]}function yk(e){return{type:"text",value:`{{${Ud(e)}}}`}}function Tk(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(l=>l["w:tblHeader"]!==void 0)&&(o=!0),a["w:tc"]!==void 0){const u=a["w:tc"]??[],l=[];let d;for(const p of u){if(p["w:tcPr"]!==void 0){const f=p["w:tcPr"]??[];for(const g of f)if(g["w:gridSpan"]!==void 0){const b=Number((n=g[":@"])==null?void 0:n["@_w:val"]);b>1&&(d=b)}}if(p["w:p"]!==void 0){const f=On(p["w:p"]??[]);f.length>0&&l.push({type:"paragraph",children:f})}}const h={type:"tableCell",children:l};d&&(h.colspan=d),s.push(h)}t.push({type:"tableRow",isHeader:o||void 0,children:s})}return{type:"table",children:t}}function La(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 Pa={solid:"single",dashed:"dashed",dotted:"dotted",double:"double",groove:"single",ridge:"single",inset:"single",outset:"single"};function Hd(e){const t=e.trim().split(/\s+/);let n,r,i;for(const s of t){const o=s.toLowerCase();if(o==="none"||o==="hidden")return;if(Pa[o]!==void 0){r=Pa[o];continue}const a=zd(s);if(a!==void 0){n=a;continue}const u=dn(s);u&&(i=u)}if(r!==void 0)return{val:r,sz:n??8,color:i??"000000"}}function Ra(e){const t=e.trim().split(/\s+/).filter(Boolean),[n="",r=n,i=n,s=r]=t;return{top:n,right:r,bottom:i,left:s}}function zd(e){const t=e.trim().match(/^([\d.]+)(px|pt|in|cm|mm|em|rem)$/i);if(!t)return;const n=parseFloat(t[1]);let r;switch(t[2].toLowerCase()){case"pt":r=n;break;case"px":r=n*.75;break;case"in":r=n*72;break;case"cm":r=n*28.35;break;case"mm":r=n*2.835;break;default:r=n*12}return Math.max(1,Math.round(r*8))}const $d={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 dn(e){const t=e.trim().toLowerCase();if(t==="transparent"||t==="currentcolor"||t==="inherit")return;if($d[t])return $d[t];const n=t.match(/^#([0-9a-f]{3,8})$/);if(n){const s=n[1];if(s.length===3||s.length===4)return s[0]+s[0]+s[1]+s[1]+s[2]+s[2];if(s.length===6)return s;if(s.length===8)return s.slice(0,6)}const r=t.match(/^rgba?\(\s*(\d+)[\s,]+(\d+)[\s,]+(\d+)(?:[\s,/]+[\d.]+%?)?\s*\)$/);if(r)return[r[1],r[2],r[3]].map(s=>Math.max(0,Math.min(255,Number(s))).toString(16).padStart(2,"0")).join("");const i=t.match(/^hsla?\(\s*(\d+(?:\.\d+)?)\s*,?\s*(\d+(?:\.\d+)?)%\s*,?\s*(\d+(?:\.\d+)?)%(?:\s*[,/]\s*[\d.]+%?)?\s*\)$/);if(i){const[s,o,a]=_k(Number(i[1]),Number(i[2]),Number(i[3]));return[s,o,a].map(u=>u.toString(16).padStart(2,"0")).join("")}}function _k(e,t,n){t/=100,n/=100;const r=(1-Math.abs(2*n-1))*t,i=(e%360+360)%360/60,s=r*(1-Math.abs(i%2-1));let o=0,a=0,u=0;i<1?(o=r,a=s):i<2?(o=s,a=r):i<3?(a=r,u=s):i<4?(a=s,u=r):i<5?(o=s,u=r):(o=r,u=s);const l=n-r/2;return[Math.round((o+l)*255),Math.round((a+l)*255),Math.round((u+l)*255)]}function At(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);case"%":return;default:return}}function jd(e){if(e["background-color"])return dn(e["background-color"]);if(e.background)for(const t of e.background.trim().split(/\s+/)){const n=dn(t);if(n)return n}}function qd(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 r=e["font-family"].replace(/['"]/g,"").split(",")[0].trim();t.rFonts={ascii:r,hAnsi:r}}if(e["font-size"]){const r=qd(e["font-size"]);r&&(t.sz=r)}if(e["font-weight"]){const r=e["font-weight"];(r==="bold"||r==="bolder"||Number(r)>=700)&&(t.b=!0)}if(e["font-style"]&&(e["font-style"]==="italic"||e["font-style"]==="oblique")&&(t.i=!0),e.color){const r=dn(e.color);r&&(t.color=r)}const n=jd(e);if(n&&(t.shd=n),e["text-decoration"]){const r=e["text-decoration"];r.includes("underline")&&(t.u="single"),r.includes("line-through")&&(t.strike=!0)}return t}function hn(e){const t={};if(e["text-align"]){const a=e["text-align"];(a==="left"||a==="center"||a==="right")&&(t.jc=a),a==="justify"&&(t.jc="both")}const n=jd(e);n&&(t.shd=n);const r={},i=["top","bottom","left","right"];for(const a of i)if(e[`border-${a}`]){const u=Hd(e[`border-${a}`]);u&&(r[a]=u)}if(e.border){const a=Hd(e.border);if(a)for(const u of i)r[u]||(r[u]=a)}if(e["border-style"]||e["border-width"]||e["border-color"]){const a=Ra(e["border-style"]??""),u=Ra(e["border-width"]??""),l=Ra(e["border-color"]??"");for(const d of i){if(r[d])continue;const h=a[d];if(!h)continue;const p=Pa[h.toLowerCase()];if(!p)continue;const f=u[d]?zd(u[d])??8:8,g=l[d]?dn(l[d]):void 0;r[d]={val:p,sz:f,color:g??"000000"}}}Object.keys(r).length>0&&(t.pBdr=r);const s={};if(e["margin-top"]){const a=At(e["margin-top"]);a&&(s.before=a)}if(e["margin-bottom"]){const a=At(e["margin-bottom"]);a&&(s.after=a)}if(e["padding-top"]){const a=At(e["padding-top"]);a&&(s.before=(s.before??0)+a)}if(e["padding-bottom"]){const a=At(e["padding-bottom"]);a&&(s.after=(s.after??0)+a)}if(e["line-height"]){const a=e["line-height"].match(/^([\d.]+)(px|pt)?$/);if(a){const u=parseFloat(a[1]);a[2]==="pt"?s.line=Math.round(u*20):a[2]==="px"?s.line=Math.round(u*.75*20):s.line=Math.round(u*240)}}Object.keys(s).length>0&&(t.spacing=s);const o={};if(e["margin-left"]){const a=At(e["margin-left"]);a&&(o.left=a)}if(e["margin-right"]){const a=At(e["margin-right"]);a&&(o.right=a)}if(e["padding-left"]){const a=At(e["padding-left"]);a&&(o.left=(o.left??0)+a)}if(e["padding-right"]){const a=At(e["padding-right"]);a&&(o.right=(o.right??0)+a)}if(e["text-indent"]){const a=At(e["text-indent"]);a&&(o.firstLine=a)}return Object.keys(o).length>0&&(t.ind=o),t}function Yd(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.strike&&t.push("<w:strike/>"),e.color&&t.push(`<w:color w:val="${e.color}"/>`),e.sz&&t.push(`<w:sz w:val="${e.sz}"/>`),e.u&&t.push(`<w:u w:val="${e.u}"/>`),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 Wd(e){const t=[];if(e.pBdr){const n=[];for(const r of["top","bottom","left","right"]){const i=e.pBdr[r];i&&n.push(`<w:${r} w:val="${i.val}" w:sz="${i.sz}" w:space="0" w:color="${i.color}"/>`)}n.length>0&&t.push(`<w:pBdr>${n.join("")}</w:pBdr>`)}if(e.shd&&t.push(`<w:shd w:val="clear" w:color="auto" w:fill="${e.shd}"/>`),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 e.jc&&t.push(`<w:jc w:val="${e.jc}"/>`),t.length>0?`<w:pPr>${t.join("")}</w:pPr>`:""}function mi(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=Wd(i);o&&s.push(o)}if(r){const o=Yd(r);o&&s.push(o)}return s.push("</w:style>"),s.join("")}const Gd=`<?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/officeDocument" Target="word/document.xml"/>
|
|
57
|
-
</Relationships>`,
|
|
57
|
+
</Relationships>`,Vd=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
58
58
|
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
|
|
59
59
|
<Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/>
|
|
60
60
|
<Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering" Target="numbering.xml"/>
|
|
61
|
-
</Relationships>`,
|
|
61
|
+
</Relationships>`,Kd=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
62
62
|
<w:styles xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main">
|
|
63
63
|
<w:docDefaults>
|
|
64
64
|
<w:rPrDefault><w:rPr>
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
<w:pPr><w:outlineLvl w:val="2"/></w:pPr>
|
|
85
85
|
<w:rPr><w:b/><w:sz w:val="24"/></w:rPr>
|
|
86
86
|
</w:style>
|
|
87
|
-
</w:styles>`,
|
|
87
|
+
</w:styles>`,Xd=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
88
88
|
<w:numbering xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main">
|
|
89
89
|
<w:abstractNum w:abstractNumId="0">
|
|
90
90
|
<w:lvl w:ilvl="0"><w:start w:val="1"/><w:numFmt w:val="bullet"/>
|
|
@@ -104,40 +104,40 @@
|
|
|
104
104
|
</w:abstractNum>
|
|
105
105
|
<w:num w:numId="1"><w:abstractNumId w:val="0"/></w:num>
|
|
106
106
|
<w:num w:numId="2"><w:abstractNumId w:val="1"/></w:num>
|
|
107
|
-
</w:numbering>`,
|
|
108
|
-
`),h=(I=e.data)==null?void 0:I.docx;let p=(h==null?void 0:h.styles)??
|
|
107
|
+
</w:numbering>`,Qd='xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main"',Zd='xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"',Jd='xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing"';async function wk(e,t){var E,S,I;const n=(E=e.data)==null?void 0:E.css,r={...n==null?void 0:n.classRules,...t==null?void 0:t.cssClasses},i=(n==null?void 0:n.elementRules)??{},s=(S=e.data)==null?void 0:S.docx,o=s==null?void 0:s.relationships,a={cssClasses:r,cssElements:i,customStyles:[],generatedStyleIds:new Set,nextNumId:3,allocatedNums:new Map,hyperlinks:new Map,nextRId:eh(o)},u=e.children.map(D=>en(D,a,0)),l=e.children[e.children.length-1];(l==null?void 0:l.type)==="table"&&u.push("<w:p/>");const d=u.join(`
|
|
108
|
+
`),h=(I=e.data)==null?void 0:I.docx;let p=(h==null?void 0:h.styles)??Kd;if(a.customStyles.length>0){const D=a.customStyles.join(`
|
|
109
109
|
`);p=p.replace("</w:styles>",`${D}
|
|
110
110
|
</w:styles>`)}const f=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
111
|
-
<w:document ${
|
|
111
|
+
<w:document ${Qd} ${Zd} ${Jd}>
|
|
112
112
|
<w:body>
|
|
113
113
|
${d}
|
|
114
114
|
<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>
|
|
115
115
|
</w:body>
|
|
116
|
-
</w:document>`;let g=(h==null?void 0:h.relationships)??
|
|
116
|
+
</w:document>`;let g=(h==null?void 0:h.relationships)??Vd;if(a.hyperlinks.size>0){const D=[...a.hyperlinks].map(([B,C])=>`<Relationship Id="${B}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink" Target="${Ue(C)}" TargetMode="External"/>`).join(`
|
|
117
117
|
`);g=g.replace("</Relationships>",` ${D}
|
|
118
|
-
</Relationships>`)}let b=(h==null?void 0:h.numbering)??
|
|
118
|
+
</Relationships>`)}let b=(h==null?void 0:h.numbering)??Xd;if(a.allocatedNums.size>0){const D=[...a.allocatedNums].map(([B,C])=>`<w:num w:numId="${B}"><w:abstractNumId w:val="${C}"/></w:num>`).join(`
|
|
119
119
|
`);b=b.replace("</w:numbering>",` ${D}
|
|
120
|
-
</w:numbering>`)}const _={document:f,styles:p,numbering:b,relationships:g,contentTypes:(h==null?void 0:h.contentTypes)??void 0,media:new Map,rawParts:new Map},m=
|
|
120
|
+
</w:numbering>`)}const _={document:f,styles:p,numbering:b,relationships:g,contentTypes:(h==null?void 0:h.contentTypes)??void 0,media:new Map,rawParts:new Map},m=Fa(e);if(m.__docHash=await ba(f),_.rawParts.set("word/otomate-udm.json",JSON.stringify(m)),n&&(Object.keys(n.classRules??{}).length>0||Object.keys(n.elementRules??{}).length>0)&&_.rawParts.set("word/otomate-css.json",JSON.stringify(n)),h!=null&&h.rawParts){const D=h.rawParts;for(const[B,C]of Object.entries(D))_.rawParts.has(B)||_.rawParts.set(B,C)}return _.rawParts.has("_rels/.rels")||_.rawParts.set("_rels/.rels",Gd),ga(_)}function eh(e){if(!e)return 100;let t=0;const n=/Id="rId(\d+)"/g;let r;for(;(r=n.exec(e))!==null;){const i=Number(r[1]);i>t&&(t=i)}return Math.max(t+1,100)}function th(e,t){const n=String(e.nextNumId++);return e.allocatedNums.set(n,t?1:0),n}function kk(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 Ak(e){const t=new Map;function n(r,i){t.set(r,i.join(",")),Ee(r)&&r.children.forEach((s,o)=>n(s,[...i,o]))}return n(e,[]),t}function Sk(e,t,n){const r=new Map,i=new Map,s=new Map;for(const o of e.operations)o.type==="insert"?r.set(o.path.join(","),o):o.type==="delete"?i.set(o.path.join(","),o):o.type==="updateText"&&s.set(o.path.join(","),o);return{insertedPaths:r,deletedPaths:i,textChangePaths:s,revId:{value:1},author:t,date:n}}function en(e,t,n){switch(e.type){case"paragraph":return rh(e,t);case"heading":return xk(e,t);case"blockquote":return Ok(e,t);case"list":return Ma(e,t,n);case"listItem":return"";case"codeBlock":return Pk(e,t);case"table":return Dk(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 Ck(e,t,n);case"html":return`<w:p><w:r><w:t xml:space="preserve">${Ue(e.value)}</w:t></w:r></w:p>`;default:return""}}function Ck(e,t,n){const r=e.classes;if(!r||r.length===0)return e.children.map(p=>en(p,t,n)).join(`
|
|
121
121
|
`);let i={};for(const p of r)t.cssClasses[p]&&(i={...i,...t.cssClasses[p]});if(Object.keys(i).length===0)return e.children.map(p=>en(p,t,n)).join(`
|
|
122
|
-
`);const s=
|
|
123
|
-
`)}function
|
|
124
|
-
`)}const l={...t};return delete l._containerRPr,delete l._containerPPrParts,en(e,l,n)}function
|
|
125
|
-
`)}function
|
|
126
|
-
`)}function
|
|
127
|
-
`).map(d=>`<w:p>${
|
|
128
|
-
`)}function
|
|
129
|
-
`);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>${i}${s}</w:tbl>`}function nn(e,t,n=""){if(e.type==="text")return
|
|
130
|
-
`),E=(R=e.data)==null?void 0:R.docx;let S=(E==null?void 0:E.styles)??
|
|
122
|
+
`);const s=hn(i),o=mt(i),a=tn(o),u=i["background-color"]?bi(i["background-color"]):void 0,l=[],d=lh(s.pBdr);if(d&&l.push(d),u&&u!=="auto"&&l.push(`<w:shd w:val="clear" w:color="auto" w:fill="${u}"/>`),s.jc&&l.push(`<w:jc w:val="${s.jc}"/>`),s.ind){const p=[];s.ind.left&&p.push(`w:left="${s.ind.left}"`),s.ind.right&&p.push(`w:right="${s.ind.right}"`),p.length&&l.push(`<w:ind ${p.join(" ")}/>`)}const h={...t,_containerRPr:a,_containerPPrParts:l};return e.children.map(p=>nh(p,h,n)).join(`
|
|
123
|
+
`)}function nh(e,t,n){const r=t,i=r._containerRPr??"",s=r._containerPPrParts??[],o=sh(e,t),a=i+o;function u(d){if(s.length===0)return d;const h=d?oh(d):[];return Ln([...h,...s])}if(e.type==="paragraph"){const d=e,h=u(ch(d,t)),p=d.children.map(f=>nn(f,t,a)).join("");return`<w:p>${h}${p}</w:p>`}if(e.type==="heading"){const d=e,h=`h${d.depth}`,p=a,f=d.children.map(m=>nn(m,t,p)).join("");let g="";t.cssElements[h]?(Ba(h,t),g=`<w:pStyle w:val="_el_${h}"/>`):g=`<w:pStyle w:val="Heading${d.depth}"/>`;const b=d.classes;if(b!=null&&b.length)for(const m of b){const E=Ua(m);if(t.cssClasses[m]&&!t.generatedStyleIds.has(E)){t.generatedStyleIds.add(E);const S=mt(t.cssClasses[m]),I=hn(t.cssClasses[m]);t.customStyles.push(mi(E,m,"paragraph",S,I))}}return`<w:p>${u(`<w:pPr>${g}</w:pPr>`)}${f}</w:p>`}if(e.type==="list"){const d=e,h=th(t,d.ordered),p=[];for(const f of d.children){if(f.type!=="listItem")continue;const g=f,b=g.classes;let _=a;if(b)for(const m of b)t.cssClasses[m]&&(_+=tn(mt(t.cssClasses[m])));t.cssElements.li&&(_+=tn(mt(t.cssElements.li)));for(const m of g.children)if(m.type==="paragraph"){const E=m.children.map(I=>nn(I,t,_)).join("");let S=`<w:pPr><w:numPr><w:ilvl w:val="${n}"/><w:numId w:val="${h}"/></w:numPr></w:pPr>`;S=u(S),p.push(`<w:p>${S}${E}</w:p>`)}else m.type==="list"?p.push(Ma(m,t,n+1,h)):p.push(nh(m,t,n))}return p.join(`
|
|
124
|
+
`)}const l={...t};return delete l._containerRPr,delete l._containerPPrParts,en(e,l,n)}function rh(e,t){const n=ch(e,t),r=sh(e,t);if(t.diff&&t.nodePathKeys){const s=t.nodePathKeys.get(e);if(s!==void 0&&t.diff.insertedPaths.has(s))return ih(e,n,r,t)}const i=e.children.map(s=>nn(s,t,r)).join("");return`<w:p>${n}${i}</w:p>`}function xk(e,t){const n=`h${e.depth}`,r=e.classes??[];let i={};t.cssElements[n]&&(i={...i,...t.cssElements[n]});for(const p of r)t.cssClasses[p]&&(i={...i,...t.cssClasses[p]});const s=Object.keys(i).length>0,o=s?tn(mt(i)):"",a=s?hn(i):{},u=[];t.cssElements[n]?(Ba(n,t),u.push(`<w:pStyle w:val="_el_${n}"/>`)):u.push(`<w:pStyle w:val="Heading${e.depth}"/>`);const l=lh(a.pBdr);if(l&&u.push(l),a.shd&&u.push(`<w:shd w:val="clear" w:color="auto" w:fill="${a.shd}"/>`),a.jc&&u.push(`<w:jc w:val="${a.jc}"/>`),a.spacing){const p=[];a.spacing.before!==void 0&&p.push(`w:before="${a.spacing.before}"`),a.spacing.after!==void 0&&p.push(`w:after="${a.spacing.after}"`),a.spacing.line!==void 0&&p.push(`w:line="${a.spacing.line}"`),p.length&&u.push(`<w:spacing ${p.join(" ")}/>`)}if(a.ind){const p=[];a.ind.left!==void 0&&p.push(`w:left="${a.ind.left}"`),a.ind.right!==void 0&&p.push(`w:right="${a.ind.right}"`),p.length&&u.push(`<w:ind ${p.join(" ")}/>`)}const d=Ln(u);if(t.diff&&t.nodePathKeys){const p=t.nodePathKeys.get(e);if(p!==void 0&&t.diff.insertedPaths.has(p))return ih(e,d,o,t)}const h=e.children.map(p=>nn(p,t,o)).join("");return`<w:p>${d}${h}</w:p>`}function ih(e,t,n,r){const i=r.diff,s=Ue(i.author),o=Ue(i.date),u=`<w:ins w:id="${i.revId.value++}" w:author="${s}" w:date="${o}"/>`,l=uh(t,u),d=e.children.map(h=>{const p=nn(h,r,n);return p?`<w:ins w:id="${i.revId.value++}" w:author="${s}" w:date="${o}">${p}</w:ins>`:""}).join("");return`<w:p>${l}${d}</w:p>`}function sh(e,t){const n=dh(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?"":tn(mt(i))}const Nk={"w:rStyle":1,"w:rFonts":2,"w:b":3,"w:bCs":4,"w:i":5,"w:iCs":6,"w:caps":7,"w:smallCaps":8,"w:strike":9,"w:dstrike":10,"w:outline":11,"w:shadow":12,"w:emboss":13,"w:imprint":14,"w:noProof":15,"w:snapToGrid":16,"w:vanish":17,"w:webHidden":18,"w:color":19,"w:spacing":20,"w:w":21,"w:kern":22,"w:position":23,"w:sz":24,"w:szCs":25,"w:highlight":26,"w:u":27,"w:effect":28,"w:bdr":29,"w:shd":30,"w:fitText":31,"w:vertAlign":32,"w:rtl":33,"w:cs":34,"w:em":35,"w:lang":36,"w:eastAsianLayout":37,"w:specVanish":38,"w:oMath":39},vk={"w:pStyle":1,"w:keepNext":2,"w:keepLines":3,"w:pageBreakBefore":4,"w:framePr":5,"w:widowControl":6,"w:numPr":7,"w:suppressLineNumbers":8,"w:pBdr":9,"w:shd":10,"w:tabs":11,"w:suppressAutoHyphens":12,"w:kinsoku":13,"w:wordWrap":14,"w:overflowPunct":15,"w:topLinePunct":16,"w:autoSpaceDE":17,"w:autoSpaceDN":18,"w:bidi":19,"w:adjustRightInd":20,"w:snapToGrid":21,"w:spacing":22,"w:ind":23,"w:contextualSpacing":24,"w:mirrorIndents":25,"w:suppressOverlap":26,"w:jc":27,"w:textDirection":28,"w:textAlignment":29,"w:textboxTightWrap":30,"w:outlineLvl":31,"w:divId":32,"w:cnfStyle":33,"w:rPr":34,"w:sectPr":35,"w:pPrChange":36};function Ik(e){const t=e.match(/^<(w:[A-Za-z]+)/);return t?t[1]:""}function gi(e){const t=[];let n=0;for(;n<e.length;){if(e[n]!=="<"){n++;continue}const r=e.slice(n).match(/^<(w:[A-Za-z]+)/);if(!r){n++;continue}const i=r[1];let s=n+1,o=!1;for(;s<e.length;){const a=e[s];if(a==='"'&&(o=!o),!o&&a===">")break;s++}if(s>=e.length)break;if(e[s-1]==="/")t.push(e.slice(n,s+1)),n=s+1;else{const a=`</${i}>`;let u=1,l=s+1;for(;l<e.length&&u>0;){if(e.startsWith(`<${i}`,l)){const d=e[l+i.length+1];(d===" "||d===">"||d==="/")&&u++}if(e.startsWith(a,l)&&(u--,u===0)){l+=a.length;break}l++}t.push(e.slice(n,l)),n=l}}return t}function ah(e,t){const n=new Map;for(const r of e){const i=Ik(r);i&&n.set(i,r)}return[...n.entries()].sort(([r],[i])=>(t[r]??999)-(t[i]??999)).map(([,r])=>r)}function Da(e){const t=ah(e,Nk);return t.length>0?`<w:rPr>${t.join("")}</w:rPr>`:""}function Ln(e){const t=ah(e,vk);return t.length>0?`<w:pPr>${t.join("")}</w:pPr>`:""}function oh(e){const t=e.match(/<w:pPr>([\s\S]*?)<\/w:pPr>/);return t?gi(t[1]):[]}function uh(e,t){const n=e?oh(e):[];let r=!1;const i=n.map(s=>s.startsWith("<w:rPr>")||s.startsWith("<w:rPr ")?(r=!0,s.replace(/^<w:rPr(\s[^>]*)?>/,o=>`${o}${t}`)):s);return r||i.push(`<w:rPr>${t}</w:rPr>`),Ln(i)}function lh(e){if(!e)return"";const t=[];for(const n of["top","bottom","left","right"]){const r=e[n];r&&t.push(`<w:${n} w:val="${r.val}" w:sz="${r.sz}" w:space="0" w:color="${r.color}"/>`)}return t.length>0?`<w:pBdr>${t.join("")}</w:pBdr>`:""}function tn(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.strike&&t.push("<w:strike/>"),e.color&&t.push(`<w:color w:val="${e.color}"/>`),e.sz&&t.push(`<w:sz w:val="${e.sz}"/>`),e.u&&t.push(`<w:u w:val="${e.u}"/>`),e.shd&&t.push(`<w:shd w:val="clear" w:color="auto" w:fill="${e.shd}"/>`),t.join("")}function Ok(e,t){const n=t.cssElements.blockquote??{},r=Object.keys(n).length>0?tn(mt(n)):"",i=Lk(n);return e.children.map(s=>{if(s.type==="paragraph"){const o=s.children.map(a=>nn(a,t,r)).join("");return`<w:p>${i}${o}</w:p>`}return en(s,t,0)}).join(`
|
|
125
|
+
`)}function Lk(e){const t=[];t.push(`<w:pBdr><w:left w:val="single" w:sz="18" w:space="4" w:color="${e["border-color"]?bi(e["border-color"]):"AAAAAA"}"/></w:pBdr>`);const n=e["margin-left"]?At(e["margin-left"]):void 0;if(t.push(`<w:ind w:left="${n??720}"/>`),e["background-color"]){const i=bi(e["background-color"]);i&&t.push(`<w:shd w:val="clear" w:color="auto" w:fill="${i}"/>`)}const r=hn(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 Ln(t)}function Ma(e,t,n,r){const i=r??th(t,e.ordered),s=t.cssElements.li?tn(mt(t.cssElements.li)):"",o=[];for(const a of e.children){if(a.type!=="listItem")continue;const u=a;for(const l of u.children)if(l.type==="paragraph"){const d=l.children.map(h=>nn(h,t,s)).join("");o.push(`<w:p><w:pPr><w:numPr><w:ilvl w:val="${n}"/><w:numId w:val="${i}"/></w:numPr></w:pPr>${d}</w:p>`)}else l.type==="list"?o.push(Ma(l,t,n+1,i)):o.push(en(l,t,n))}return o.join(`
|
|
126
|
+
`)}function Pk(e,t){const n=(t==null?void 0:t.cssElements.pre)??{},r=n["background-color"]?bi(n["background-color"]):void 0,i=Object.keys(n).length>0?tn(mt(n)):"",s=['<w:pStyle w:val="Code"/>'];r&&s.push(`<w:shd w:val="clear" w:color="auto" w:fill="${r}"/>`);const o=Ln(s),a=['<w:rFonts w:ascii="Courier New" w:hAnsi="Courier New"/>'];i&&a.push(...gi(i));const u=Da(a);return e.value.split(`
|
|
127
|
+
`).map(d=>`<w:p>${o}<w:r>${u}<w:t xml:space="preserve">${Ue(d)}</w:t></w:r></w:p>`).join(`
|
|
128
|
+
`)}function Rk(e){let t=0;for(const n of e.children){if(n.type!=="tableRow")continue;const r=n.children.reduce((i,s)=>i+(s.colspan??1),0);r>t&&(t=r)}return Math.max(t,1)}function Dk(e,t){const n=Rk(e),r=Math.round(9360/n),i=`<w:tblGrid>${Array.from({length:n},()=>`<w:gridCol w:w="${r}"/>`).join("")}</w:tblGrid>`,s=e.children.map(o=>{if(o.type!=="tableRow")return"";const a=o,u=a.children.filter(h=>h.type==="tableCell");if(u.length===0)return"";const l=a.isHeader?"<w:trPr><w:tblHeader/></w:trPr>":"",d=u.map(h=>{const p=h,f=p.colspan??1;let g="<w:tcPr>";g+=`<w:tcW w:w="${r*f}" w:type="dxa"/>`,f>1&&(g+=`<w:gridSpan w:val="${f}"/>`),g+="</w:tcPr>";const b={type:"paragraph",children:[]},_=p.children.length>0?p.children.map(m=>en(m,t,0)).join(""):rh(b,t);return`<w:tc>${g}${_}</w:tc>`}).join("");return`<w:tr>${l}${d}</w:tr>`}).filter(Boolean).join(`
|
|
129
|
+
`);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>${i}${s}</w:tbl>`}function nn(e,t,n=""){if(e.type==="text")return Mk(e,t,n);if(e.type==="break")return"<w:r><w:br/></w:r>";if(e.type==="inlineCode"){const r=['<w:rFonts w:ascii="Courier New" w:hAnsi="Courier New"/>'];return n&&r.push(...gi(n)),`<w:r>${Da(r)}<w:t xml:space="preserve">${Ue(e.value)}</w:t></w:r>`}if(e.type==="image"){const r=e;return`<w:r><w:t xml:space="preserve">[image: ${Ue(r.alt??r.url)}]</w:t></w:r>`}return""}function Mk(e,t,n=""){var a,u,l,d,h,p;const r=(a=e.marks)==null?void 0:a.find(f=>f.type==="link"),i=((u=e.marks)==null?void 0:u.filter(f=>f.type!=="link"))??[],s=[];n&&s.push(...gi(n));for(const f of i)switch(f.type){case"strong":s.push("<w:b/>");break;case"emphasis":s.push("<w:i/>");break;case"underline":s.push(`<w:u w:val="${((l=f.attrs)==null?void 0:l.style)??"single"}"/>`);break;case"strikethrough":s.push((d=f.attrs)!=null&&d.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="${((h=f.attrs)==null?void 0:h.color)??"yellow"}"/>`);break}const o=Da(s);if(t.diff&&t.nodePathKeys&&!r){const f=t.nodePathKeys.get(e);if(f!==void 0){const g=t.diff,b=Ue(g.author),_=g.date;if(g.insertedPaths.has(f))return`<w:ins w:id="${g.revId.value++}" w:author="${b}" w:date="${_}"><w:r>${o}<w:t xml:space="preserve">${Ue(e.value)}</w:t></w:r></w:ins>`;if(g.textChangePaths.has(f))return g.textChangePaths.get(f).changes.map(E=>{if(!E.value)return"";switch(E.type){case"equal":return`<w:r>${o}<w:t xml:space="preserve">${Ue(E.value)}</w:t></w:r>`;case"insert":return`<w:ins w:id="${g.revId.value++}" w:author="${b}" w:date="${_}"><w:r>${o}<w:t xml:space="preserve">${Ue(E.value)}</w:t></w:r></w:ins>`;case"delete":return`<w:del w:id="${g.revId.value++}" w:author="${b}" w:date="${_}"><w:r>${o}<w:delText xml:space="preserve">${Ue(E.value)}</w:delText></w:r></w:del>`}}).join("")}}if(r){const f=String(((p=r.attrs)==null?void 0:p.url)??"");return`<w:hyperlink r:id="${kk(t,f)}"><w:r>${o}<w:t xml:space="preserve">${Ue(e.value)}</w:t></w:r></w:hyperlink>`}return`<w:r>${o}<w:t xml:space="preserve">${Ue(e.value)}</w:t></w:r>`}function Bk(e,t){var o;const n=[],r=e.classes;if(r&&r.length>0){const a=Ua(r[0]);n.push(`<w:pStyle w:val="${a}"/>`);for(const u of r){const l=Ua(u);if(t.cssClasses[u]&&!t.generatedStyleIds.has(l)){t.generatedStyleIds.add(l);const d=t.cssClasses[u],h=mt(d),p=hn(d);t.customStyles.push(mi(l,u,"paragraph",h,p))}}}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=dh(e.type,e);return s&&(Ba(s,t),(!r||r.length===0)&&t.cssElements[s]&&n.push(`<w:pStyle w:val="_el_${Ue(s)}"/>`)),n}function ch(e,t){return Ln(Bk(e,t))}function dh(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 Ba(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=hn(r),o=e.match(/^h[1-6]$/)?`Heading${e[1]}`:void 0;let a=mi(n,e,"paragraph",i,s);o&&(a=a.replace('<w:basedOn w:val="Normal"/>',`<w:basedOn w:val="${o}"/>`)),t.customStyles.push(a)}function Fa(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(Fa):t[n]=r}return t}function bi(e){return dn(e)??"auto"}function hh(e){return e.type==="text"||e.type==="codeBlock"?e.value??"":Ee(e)?e.children.map(hh).filter(Boolean).join(" "):""}function Fk(e,t){const n=e.node,r=t.diff,i=Ue(r.author),s=Ue(r.date),o=hh(n);if(!o)return"";const a=r.revId.value++,u=r.revId.value++;let l="";n.type==="heading"&&(l=`<w:pStyle w:val="Heading${n.depth}"/>`);const d=`<w:del w:id="${a}" w:author="${i}" w:date="${s}"/>`,h=l?`<w:pPr>${l}</w:pPr>`:"",p=uh(h,d),f=`<w:del w:id="${u}" w:author="${i}" w:date="${s}"><w:r><w:delText xml:space="preserve">${Ue(o)}</w:delText></w:r></w:del>`;return`<w:p>${p}${f}</w:p>`}function Ue(e){return Uk(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}function Uk(e){return e.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F]/g,"")}function Ua(e){return e.replace(/[^a-zA-Z0-9_\-:]/g,"").slice(0,31)||"Normal"}async function Hk(e,t,n){var w,P,R;const r=(w=e.data)==null?void 0:w.css,i={...r==null?void 0:r.classRules,...n==null?void 0:n.cssClasses},s=(r==null?void 0:r.elementRules)??{},o=(n==null?void 0:n.author)??"Otomate",a=(n==null?void 0:n.date)??"2024-01-01T00:00:00Z",u=Sk(t,o,a),l=Ak(e),d=(P=e.data)==null?void 0:P.docx,h=d==null?void 0:d.relationships,p={cssClasses:i,cssElements:s,customStyles:[],generatedStyleIds:new Set,nextNumId:3,allocatedNums:new Map,hyperlinks:new Map,nextRId:eh(h),diff:u,nodePathKeys:l},f=e.children.map(k=>en(k,p,0)),g=[...u.deletedPaths.values()].filter(k=>k.path.length===1).sort((k,M)=>k.path[0]-M.path[0]);let b=0;for(const k of g){const M=Fk(k,p);M&&(f.splice(Math.min(k.path[0]+b,f.length),0,M),b++)}const _=e.children[e.children.length-1];(_==null?void 0:_.type)==="table"&&f.push("<w:p/>");const m=f.join(`
|
|
130
|
+
`),E=(R=e.data)==null?void 0:R.docx;let S=(E==null?void 0:E.styles)??Kd;if(p.customStyles.length>0){const k=p.customStyles.join(`
|
|
131
131
|
`);S=S.replace("</w:styles>",`${k}
|
|
132
132
|
</w:styles>`)}const I=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
133
|
-
<w:document ${
|
|
133
|
+
<w:document ${Qd} ${Zd} ${Jd}>
|
|
134
134
|
<w:body>
|
|
135
135
|
${m}
|
|
136
136
|
<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>
|
|
137
137
|
</w:body>
|
|
138
|
-
</w:document>`;let D=(E==null?void 0:E.relationships)??
|
|
138
|
+
</w:document>`;let D=(E==null?void 0:E.relationships)??Vd;if(p.hyperlinks.size>0){const k=[...p.hyperlinks].map(([M,T])=>`<Relationship Id="${M}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink" Target="${Ue(T)}" TargetMode="External"/>`).join(`
|
|
139
139
|
`);D=D.replace("</Relationships>",` ${k}
|
|
140
|
-
</Relationships>`)}let B=(E==null?void 0:E.numbering)??
|
|
140
|
+
</Relationships>`)}let B=(E==null?void 0:E.numbering)??Xd;if(p.allocatedNums.size>0){const k=[...p.allocatedNums].map(([M,T])=>`<w:num w:numId="${M}"><w:abstractNumId w:val="${T}"/></w:num>`).join(`
|
|
141
141
|
`);B=B.replace("</w:numbering>",` ${k}
|
|
142
|
-
</w:numbering>`)}const C={document:I,styles:S,numbering:B,relationships:D,contentTypes:(E==null?void 0:E.contentTypes)??void 0,media:new Map,rawParts:new Map},x=
|
|
142
|
+
</w:numbering>`)}const C={document:I,styles:S,numbering:B,relationships:D,contentTypes:(E==null?void 0:E.contentTypes)??void 0,media:new Map,rawParts:new Map},x=Fa(e);if(x.__docHash=await ba(I),C.rawParts.set("word/otomate-udm.json",JSON.stringify(x)),r&&(Object.keys(r.classRules??{}).length>0||Object.keys(r.elementRules??{}).length>0)&&C.rawParts.set("word/otomate-css.json",JSON.stringify(r)),E!=null&&E.rawParts){const k=E.rawParts;for(const[M,T]of Object.entries(k))C.rawParts.has(M)||C.rawParts.set(M,T)}return C.rawParts.has("_rels/.rels")||C.rawParts.set("_rels/.rels",Gd),ga(C)}const Pn=/\{\{([^}]+)\}\}/g;function Ei(e){return Pn.lastIndex=0,Pn.test(e)}function fh(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 ph(e){const t=[];Pn.lastIndex=0;let n;for(;(n=Pn.exec(e))!==null;)t.push(fh(n[1],n[0]));return t}function Ha(e){const t=[];Pn.lastIndex=0;let n=0,r;for(;(r=Pn.exec(e))!==null;){r.index>n&&t.push({text:e.slice(n,r.index)});const i=fh(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 hr(e){return JSON.parse(JSON.stringify(e))}function mh(e){const t=hr(e);return gh(t),t}function gh(e){if(Ee(e)){zk(e);for(const t of e.children)gh(t)}}function zk(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&&!Ei(i[0].value)){n=r;continue}const s=i.map(a=>a.value).join("");if(!Ei(s)){n=r;continue}const o=$k(s,i);t.splice(n,i.length,...o),n+=o.length}}function $k(e,t){const n=jk(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:l})=>{const d=e.slice(a,u),h=qk(n,a),p={type:"text",value:d};return h&&h.length>0&&(p.marks=h),p})}function jk(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 qk(e,t){for(const n of e)if(t>=n.start&&t<n.end)return n.marks?[...n.marks]:void 0}function Yk(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 Rn(e,t){if(e===".")return t[0];for(const n of t){const r=Yk(n,e);if(r!==void 0)return r}}function bh(e){return e==null?"":typeof e=="string"?e:typeof e=="number"||typeof e=="boolean"?String(e):JSON.stringify(e)}function Eh(e){return Array.isArray(e)?e.length>0:!!e}function Dn(e,t,n){if(!Ee(e))return;const r=e.children;let i=0;for(;i<r.length;){const s=r[i];if(dt(s)&&Ei(s.value)&&Ha(s.value).some(u=>u.token&&u.token.kind==="value")){const u=Wk(s,t,n);r.splice(i,1,...u),i+=u.length;continue}Dn(s,t,n),i++}}function Wk(e,t,n){const r=Ha(e.value),i=[];for(const s of r){if(!s.token||s.token.kind!=="value"){s.text&&i.push(yi(s.text,e.marks));continue}const o=Rn(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(yi(s.token.raw,e.marks));break}continue}const a=bh(o);a&&i.push(yi(a,e.marks))}return i.length>0?i:[yi("",e.marks)]}function yi(e,t){const n={type:"text",value:e};return t&&t.length>0&&(n.marks=[...t]),n}function za(e,t,n){Ee(e)&&Mn(e,t,n)}function Mn(e,t,n){const r=e.children;let i=0;for(;i<r.length;){const s=r[i],o=Ti(s);if(!o){Ee(s)&&(s.type==="table"?Gk(s,t,n):Mn(s,t,n)),i++;continue}if(o.kind==="rich"){const a=Rn(o.path,t);if(a&&Array.isArray(a)){const u=hr(a);for(const l of u)za(l,t,n),Dn(l,t,n);r.splice(i,1,...u),i+=u.length}else r.splice(i,1);continue}if(o.kind==="open-each"){const a=Vk(r,i,"open-each","close-each");if(a===-1)throw new Error(`inject: unmatched {{#each ${o.path}}}`);const u=r.slice(i+1,a),l=Rn(o.path,t),d=Array.isArray(l)?l:[],h=[];for(let p=0;p<d.length;p++){const f=d[p],g=typeof f=="object"&&f!==null?{...f,$index:p,$first:p===0,$last:p===d.length-1}:{".":f,$index:p,$first:p===0,$last:p===d.length-1},b=hr(u),_=[g,...t],m={children:b};Mn(m,_,n);for(const E of m.children)Dn(E,_,n);h.push(...m.children)}r.splice(i,a-i+1,...h),i+=h.length;continue}if(o.kind==="open-if"){const{elseIdx:a,closeIdx:u}=Xk(r,i);if(u===-1)throw new Error(`inject: unmatched {{#if ${o.path}}}`);const l=Rn(o.path,t);let d;Eh(l)?d=a!==-1?r.slice(i+1,a):r.slice(i+1,u):d=a!==-1?r.slice(a+1,u):[];const h=hr(d);for(const p of h)za(p,t,n),Dn(p,t,n);r.splice(i,u-i+1,...h),i+=h.length;continue}i++}}function Gk(e,t,n){const r=e.children;let i=0;for(;i<r.length;){const s=r[i],o=yh(s);if(!o){Mn(s,t,n),i++;continue}if(o.kind==="open-each"){const a=Kk(r,i);if(a===-1)throw new Error(`inject: unmatched {{#each ${o.path}}} in table`);const u=r.slice(i+1,a),l=Rn(o.path,t),d=Array.isArray(l)?l:[],h=[];for(let p=0;p<d.length;p++){const f=d[p],g=typeof f=="object"&&f!==null?{...f,$index:p,$first:p===0,$last:p===d.length-1}:{".":f,$index:p,$first:p===0,$last:p===d.length-1},b=hr(u),_=[g,...t];for(const m of b)Mn(m,_,n),Dn(m,_,n);h.push(...b)}r.splice(i,a-i+1,...h),i+=h.length;continue}Mn(s,t,n),i++}}function Ti(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=ph(t);if(n.length!==1)return null;const r=n[0];return r.kind==="value"?null:r}function yh(e){if(e.children.length!==1)return null;const t=e.children[0];return t.children.length!==1?null:Ti(t.children[0])}function Vk(e,t,n,r){let i=1;for(let s=t+1;s<e.length;s++){const o=Ti(e[s]);if(o&&(o.kind===n&&i++,o.kind===r&&(i--,i===0)))return s}return-1}function Kk(e,t){let n=1;for(let r=t+1;r<e.length;r++){const i=yh(e[r]);if(i&&(i.kind==="open-each"&&n++,i.kind==="close-each"&&(n--,n===0)))return r}return-1}function Xk(e,t){let n=1,r=-1;for(let i=t+1;i<e.length;i++){const s=Ti(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 Qk(e,t,n){const r={missingKey:"blank",...n},i=mh(e);return za(i,[t],r),Dn(i,[t],r),i}ue.blockquote=Sh,ue.buildStyleElement=mi,ue.code=zh,ue.codeBlock=Nh,ue.collectNodes=Gh,ue.cssToParaProps=hn,ue.cssToRunProps=mt,ue.diff=Ef,ue.diffText=vi,ue.div=Ph,ue.emphasis=Fh,ue.extractDocx=bd,ue.hasPlaceholders=Ei,ue.hashNode=Ci,ue.heading=Ah,ue.highlight=jh,ue.image=Mh,ue.inject=Qk,ue.invalidateHash=Zh,ue.isLiteral=Bn,ue.isParent=Ee,ue.isText=dt,ue.isTruthy=Eh,ue.lineBreak=Dh,ue.link=$h,ue.list=Ch,ue.listItem=xh,ue.nodeAtPath=Vh,ue.nodeCount=Ai,ue.normalizeTextRuns=mh,ue.packDocx=ga,ue.paraPropsToXml=Wd,ue.paragraph=kh,ue.parseColor=dn,ue.parseCssClasses=g_,ue.parseCssRules=sa,ue.parseLengthHalfPts=qd,ue.parseLengthTwips=At,ue.parseTokens=ph,ue.pathTo=fn,ue.readDocx=hk,ue.readHtml=E_,ue.renderDiffHtml=zw,ue.resolveValue=Rn,ue.root=wh,ue.runPropsToXml=Yd,ue.splitByPlaceholders=Ha,ue.strikethrough=Uh,ue.strong=Bh,ue.table=vh,ue.tableCell=Oh,ue.tableRow=Ih,ue.text=Rh,ue.thematicBreak=Lh,ue.underline=Hh,ue.valueToString=bh,ue.visit=ki,ue.withClasses=qh,ue.withData=Yh,ue.withId=Wh,ue.writeDiffDocx=Hk,ue.writeDocx=wk,ue.writeHtml=zt,Object.defineProperty(ue,Symbol.toStringTag,{value:"Module"})}));
|
|
143
143
|
//# sourceMappingURL=otomate.umd.cjs.map
|