@citolab/qti-components 6.0.3-9 → 6.0.3
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/LICENSE +674 -21
- package/dist/ExpressionResult-b1ac7b27.d.ts +23 -0
- package/dist/chunk-7KH3TY23.js +18 -0
- package/dist/chunk-7LF4QM4D.js +17 -0
- package/dist/chunk-M3YT56HW.js +1437 -0
- package/dist/{chunk-XN7FAHIO.js → chunk-MYPYIYN5.js} +28 -344
- package/dist/custom-elements.json +2083 -1292
- package/dist/index.css +1 -0
- package/dist/index.js +191 -2360
- package/dist/{qti-assessment-item-a65f152b.d.ts → qti-assessment-item-219cef9e.d.ts} +2 -19
- package/dist/qti-components/index.d.ts +156 -72
- package/dist/qti-components/index.js +77 -142
- package/dist/qti-components.js +13502 -0
- package/dist/qti-item/index.css +1 -0
- package/dist/qti-item/index.d.ts +9 -10
- package/dist/qti-item/index.js +1 -1
- package/dist/qti-item-react/index.css +1 -0
- package/dist/qti-item-react/index.d.ts +4 -6
- package/dist/qti-item-react/index.js +1 -1
- package/dist/{qti-simple-choice-4df32b16.d.ts → qti-rule-5fe4f91e.d.ts} +25 -74
- package/dist/{qti-simple-choice-24c4c8e9.d.ts → qti-rule-e2aee685.d.ts} +31 -31
- package/dist/qti-transform/index.d.ts +2 -1
- package/dist/qti-transform/index.js +87 -2
- package/dist/themes/qti.css +261 -737
- package/dist/vite.svg +1 -0
- package/package.json +10 -4
- package/readme.md +88 -66
- package/dist/chunk-CTF6QUBO.js +0 -2211
- package/dist/chunk-N4ENDK7Q.js +0 -2211
- package/dist/chunk-NG425SE2.js +0 -2178
- package/dist/qti-assessment-item-f1fcf393.d.ts +0 -120
- package/dist/qti-simple-choice-988808a2.d.ts +0 -352
- package/dist/vscode.html-custom-data.json +0 -775
package/dist/index.js
CHANGED
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
var jc=Object.create;var lr=Object.defineProperty,zc=Object.defineProperties,On=Object.getOwnPropertyDescriptor,Jc=Object.getOwnPropertyDescriptors,Zc=Object.getOwnPropertyNames,Ln=Object.getOwnPropertySymbols,el=Object.getPrototypeOf,kn=Object.prototype.hasOwnProperty,tl=Object.prototype.propertyIsEnumerable;var Dn=(e,t,r)=>t in e?lr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,R=(e,t)=>{for(var r in t||(t={}))kn.call(t,r)&&Dn(e,r,t[r]);if(Ln)for(var r of Ln(t))tl.call(t,r)&&Dn(e,r,t[r]);return e},$=(e,t)=>zc(e,Jc(t));var rl=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ee=(e,t)=>{for(var r in t)lr(e,r,{get:t[r],enumerable:!0})},il=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of Zc(t))!kn.call(e,s)&&s!==r&&lr(e,s,{get:()=>t[s],enumerable:!(i=On(t,s))||i.enumerable});return e};var ct=(e,t,r)=>(r=e!=null?jc(el(e)):{},il(t||!e||!e.__esModule?lr(r,"default",{value:e,enumerable:!0}):r,e));var g=(e,t,r,i)=>{for(var s=i>1?void 0:i?On(t,r):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(s=(i?o(t,r,s):o(s))||s);return i&&s&&lr(t,r,s),s};var tt=rl((M_,Au)=>{Au.exports={trueFunc:function(){return!0},falseFunc:function(){return!1}}});var Mn={};var Pn={};var qn={};var Hn={};var Bn={};var Un={};var Fn={};var $n={};var Vn={};var Yn={ON_OUTCOME_CHANGED:"qti-outcome-changed",ON_INTERACTION_CHANGED:"on-interaction-changed",ON_REGISTER_VARIABLE:"on-register-variable",ON_REGISTER_FEEDBACK:"on-register-feedback",ON_REGISTER_INTERACTION:"on-register-interaction",ON_REGISTER_CHOICE:"on-register-choice",ON_REGISTER_HOTSPOT:"on-register-hotspot",ON_LOOSE_CHOICE:"on-loose-choice",ON_INTERACTION_RESPONSE:"on-interaction-response",ON_DROPDOWN_SELECTED:"on-dropdown-selected",ON_CHOICE_ELEMENT_SELECTED:"choice-element-selected"};var Lt=class{constructor({mapping:t,correctResponse:r,cardinality:i,baseType:s,identifier:n}){this._basetype="string";this._mapping=t,this._correctResponse=r,this._cardinality=i,this._basetype=s,this._identifier=n}get mapping(){return this._mapping}get correctResponse(){return this._correctResponse}get cardinality(){return this._cardinality}get baseType(){return this._basetype}get identifier(){return this._identifier}get value(){return this._candidateResponse}set value(t){this._candidateResponse=t}};var Dt=class{constructor(){this.value=0}};var V=e=>t=>typeof t=="function"?((r,i)=>(customElements.define(r,i),i))(e,t):((r,i)=>{let{kind:s,elements:n}=i;return{kind:s,elements:n,finisher(o){customElements.define(r,o)}}})(e,t);var sl=(e,t)=>t.kind==="method"&&t.descriptor&&!("value"in t.descriptor)?$(R({},t),{finisher(r){r.createProperty(t.key,e)}}):{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){typeof t.initializer=="function"&&(this[t.key]=t.initializer.call(this))},finisher(r){r.createProperty(t.key,e)}};function y(e){return(t,r)=>r!==void 0?((i,s,n)=>{s.constructor.createProperty(n,i)})(e,t,r):sl(e,t)}function de(e){return y($(R({},e),{state:!0}))}var ye=({finisher:e,descriptor:t})=>(r,i)=>{var s;if(i===void 0){let n=(s=r.originalKey)!==null&&s!==void 0?s:r.key,o=t!=null?{kind:"method",placement:"prototype",key:n,descriptor:t(r.key)}:$(R({},r),{key:n});return e!=null&&(o.finisher=function(u){e(u,n)}),o}{let n=r.constructor;t!==void 0&&Object.defineProperty(r,i,t(i)),e==null||e(n,i)}};function dr(e,t){return ye({descriptor:r=>{let i={get(){var s,n;return(n=(s=this.renderRoot)===null||s===void 0?void 0:s.querySelector(e))!==null&&n!==void 0?n:null},enumerable:!0,configurable:!0};if(t){let s=typeof r=="symbol"?Symbol():"__"+r;i.get=function(){var n,o;return this[s]===void 0&&(this[s]=(o=(n=this.renderRoot)===null||n===void 0?void 0:n.querySelector(e))!==null&&o!==void 0?o:null),this[s]}}return i}})}var qs,al=((qs=globalThis.HTMLSlotElement)===null||qs===void 0?void 0:qs.prototype.assignedElements)!=null?(e,t)=>e.assignedElements(t):(e,t)=>e.assignedNodes(t).filter(r=>r.nodeType===Node.ELEMENT_NODE);function hr(e){let{slot:t,selector:r}=e!=null?e:{};return ye({descriptor:i=>({get(){var s;let n="slot"+(t?`[name=${t}]`:":not([name])"),o=(s=this.renderRoot)===null||s===void 0?void 0:s.querySelector(n),u=o!=null?al(o,e):[];return r?u.filter(c=>c.matches(r)):u},enumerable:!0,configurable:!0})})}var Gn=class{constructor(t){this.ariaAtomic="",this.ariaAutoComplete="",this.ariaBraileLabel="",this.ariaBraileRoleDescription="",this.ariaBusy="",this.ariaChecked="",this.ariaColCount="",this.ariaColIndex="",this.ariaColSpan="",this.ariaCurrent="",this.ariaDescription="",this.ariaDisabled="",this.ariaExpanded="",this.ariaHasPopup="",this.ariaHidden="",this.ariaInvalid="",this.ariaKeyShortcuts="",this.ariaLabel="",this.ariaLevel="",this.ariaLive="",this.ariaModal="",this.ariaMultiLine="",this.ariaMultiSelectable="",this.ariaOrientation="",this.ariaPlaceholder="",this.ariaPosInSet="",this.ariaPressed="",this.ariaReadOnly="",this.ariaRequired="",this.ariaRoleDescription="",this.ariaRowCount="",this.ariaRowIndex="",this.ariaRowSpan="",this.ariaSelected="",this.ariaSetSize="",this.ariaSort="",this.ariaValueMax="",this.ariaValueMin="",this.ariaValueNow="",this.ariaValueText="",this.role="",this.form=null,this.labels=[],this.states=new Set,this.validationMessage="",this.validity={},this.willValidate=!0,this.__host=t}get shadowRoot(){return this.__host.__shadowRoot}checkValidity(){return console.warn("`ElementInternals.checkValidity()` was called on the server.This method always returns true."),!0}reportValidity(){return!0}setFormValue(){}setValidity(){}};var Xn=new WeakMap,fr=e=>{let t=Xn.get(e);return t===void 0&&Xn.set(e,t=new Map),t},nl=class{constructor(){this.__shadowRootMode=null,this.__shadowRoot=null,this.__internals=null}get attributes(){return Array.from(fr(this)).map(([t,r])=>({name:t,value:r}))}get shadowRoot(){return this.__shadowRootMode==="closed"?null:this.__shadowRoot}setAttribute(t,r){fr(this).set(t,String(r))}removeAttribute(t){fr(this).delete(t)}hasAttribute(t){return fr(this).has(t)}attachShadow(t){let r={host:this};return this.__shadowRootMode=t.mode,t&&t.mode==="open"&&(this.__shadowRoot=r),r}attachInternals(){if(this.__internals!==null)throw new Error("Failed to execute 'attachInternals' on 'HTMLElement': ElementInternals for the specified element was already attached.");let t=new Gn(this);return this.__internals=t,t}getAttribute(t){let r=fr(this).get(t);return r!=null?r:null}};var ol=class extends nl{},Wn=ol;var ul=class{constructor(){this.__definitions=new Map}define(t,r){var i;if(this.__definitions.has(t))if(process.env.NODE_ENV==="development")console.warn(`'CustomElementRegistry' already has "${t}" defined. This may have been caused by live reload or hot module replacement in which case it can be safely ignored.
|
|
2
|
-
|
|
3
|
-
\f\r]`,gr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,io=/-->/g,so=/>/g,lt=RegExp(`>|${Ys}(?:([^\\s"'>=/]+)(${Ys}*=${Ys}*(?:[^
|
|
4
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),ao=/'/g,no=/"/g,ho=/^(?:script|style|textarea|title)$/i,fo=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),v=fo(1),wr=fo(2),Te=Symbol.for("lit-noChange"),G=Symbol.for("lit-nothing"),oo=new WeakMap,dt=ht.createTreeWalker(ht,129,null,!1),po=(e,t)=>{let r=e.length-1,i=[],s,n=t===2?"<svg>":"",o=gr;for(let c=0;c<r;c++){let h=e[c],p,T,x=-1,_=0;for(;_<h.length&&(o.lastIndex=_,T=o.exec(h),T!==null);)_=o.lastIndex,o===gr?T[1]==="!--"?o=io:T[1]!==void 0?o=so:T[2]!==void 0?(ho.test(T[2])&&(s=RegExp("</"+T[2],"g")),o=lt):T[3]!==void 0&&(o=lt):o===lt?T[0]===">"?(o=s!=null?s:gr,x=-1):T[1]===void 0?x=-2:(x=o.lastIndex-T[2].length,p=T[1],o=T[3]===void 0?lt:T[3]==='"'?no:ao):o===no||o===ao?o=lt:o===io||o===so?o=gr:(o=lt,s=void 0);let C=o===lt&&e[c+1].startsWith("/>")?" ":"";n+=o===gr?h+dl:x>=0?(i.push(p),h.slice(0,x)+hi+h.slice(x)+Me+C):h+Me+(x===-2?(i.push(void 0),c):C)}let u=n+(e[r]||"<?>")+(t===2?"</svg>":"");if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return[ro!==void 0?ro.createHTML(u):u,i]},ft=class{constructor({strings:t,_$litType$:r},i){let s;this.parts=[];let n=0,o=0,u=t.length-1,c=this.parts,[h,p]=po(t,r);if(this.el=ft.createElement(h,i),dt.currentNode=this.el.content,r===2){let T=this.el.content,x=T.firstChild;x.remove(),T.append(...x.childNodes)}for(;(s=dt.nextNode())!==null&&c.length<u;){if(s.nodeType===1){if(s.hasAttributes()){let T=[];for(let x of s.getAttributeNames())if(x.endsWith(hi)||x.startsWith(Me)){let _=p[o++];if(T.push(x),_!==void 0){let C=s.getAttribute(_.toLowerCase()+hi).split(Me),I=/([.?@])?(.*)/.exec(_);c.push({type:1,index:n,name:I[2],strings:C,ctor:I[1]==="."?pi:I[1]==="?"?mi:I[1]==="@"?gi:mt})}else c.push({type:6,index:n})}for(let x of T)s.removeAttribute(x)}if(ho.test(s.tagName)){let T=s.textContent.split(Me),x=T.length-1;if(x>0){s.textContent=kt?kt.emptyScript:"";for(let _=0;_<x;_++)s.append(T[_],Er()),dt.nextNode(),c.push({type:2,index:++n});s.append(T[x],Er())}}}else if(s.nodeType===8)if(s.data===Gs)c.push({type:2,index:n});else{let T=-1;for(;(T=s.data.indexOf(Me,T+1))!==-1;)c.push({type:7,index:n}),T+=Me.length-1}n++}}static createElement(t,r){let i=ht.createElement("template");return i.innerHTML=t,i}};function pt(e,t,r=e,i){var s,n,o,u;if(t===Te)return t;let c=i!==void 0?(s=r._$Co)===null||s===void 0?void 0:s[i]:r._$Cl,h=Tr(t)?void 0:t._$litDirective$;return(c==null?void 0:c.constructor)!==h&&((n=c==null?void 0:c._$AO)===null||n===void 0||n.call(c,!1),h===void 0?c=void 0:(c=new h(e),c._$AT(e,r,i)),i!==void 0?((o=(u=r)._$Co)!==null&&o!==void 0?o:u._$Co=[])[i]=c:r._$Cl=c),c!==void 0&&(t=pt(e,c._$AS(e,t.values),c,i)),t}var fi=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var r;let{el:{content:i},parts:s}=this._$AD,n=((r=t==null?void 0:t.creationScope)!==null&&r!==void 0?r:ht).importNode(i,!0);dt.currentNode=n;let o=dt.nextNode(),u=0,c=0,h=s[0];for(;h!==void 0;){if(u===h.index){let p;h.type===2?p=new We(o,o.nextSibling,this,t):h.type===1?p=new h.ctor(o,h.name,h.strings,this,t):h.type===6&&(p=new bi(o,this,t)),this._$AV.push(p),h=s[++c]}u!==(h==null?void 0:h.index)&&(o=dt.nextNode(),u++)}return dt.currentNode=ht,n}v(t){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,r),r+=i.strings.length-2):i._$AI(t[r])),r++}},We=class{constructor(t,r,i,s){var n;this.type=2,this._$AH=G,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=i,this.options=s,this._$Cp=(n=s==null?void 0:s.isConnected)===null||n===void 0||n}get _$AU(){var t,r;return(r=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&r!==void 0?r:this._$Cp}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=pt(this,t,r),Tr(t)?t===G||t==null||t===""?(this._$AH!==G&&this._$AR(),this._$AH=G):t!==this._$AH&&t!==Te&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):lo(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==G&&Tr(this._$AH)?this._$AA.nextSibling.data=t:this.$(ht.createTextNode(t)),this._$AH=t}g(t){var r;let{values:i,_$litType$:s}=t,n=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=ft.createElement(s.h,this.options)),s);if(((r=this._$AH)===null||r===void 0?void 0:r._$AD)===n)this._$AH.v(i);else{let o=new fi(n,this),u=o.u(this.options);o.v(i),this.$(u),this._$AH=o}}_$AC(t){let r=oo.get(t.strings);return r===void 0&&oo.set(t.strings,r=new ft(t)),r}T(t){co(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,s=0;for(let n of t)s===r.length?r.push(i=new We(this.k(Er()),this.k(Er()),this,this.options)):i=r[s],i._$AI(n),s++;s<r.length&&(this._$AR(i&&i._$AB.nextSibling,s),r.length=s)}_$AR(t=this._$AA.nextSibling,r){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,r);t&&t!==this._$AB;){let s=t.nextSibling;t.remove(),t=s}}setConnected(t){var r;this._$AM===void 0&&(this._$Cp=t,(r=this._$AP)===null||r===void 0||r.call(this,t))}},mt=class{constructor(t,r,i,s,n){this.type=1,this._$AH=G,this._$AN=void 0,this.element=t,this.name=r,this._$AM=s,this.options=n,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=G}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,r=this,i,s){let n=this.strings,o=!1;if(n===void 0)t=pt(this,t,r,0),o=!Tr(t)||t!==this._$AH&&t!==Te,o&&(this._$AH=t);else{let u=t,c,h;for(t=n[0],c=0;c<n.length-1;c++)h=pt(this,u[i+c],r,c),h===Te&&(h=this._$AH[c]),o||(o=!Tr(h)||h!==this._$AH[c]),h===G?t=G:t!==G&&(t+=(h!=null?h:"")+n[c+1]),this._$AH[c]=h}o&&!s&&this.j(t)}j(t){t===G?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}},pi=class extends mt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===G?void 0:t}},hl=kt?kt.emptyScript:"",mi=class extends mt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==G?this.element.setAttribute(this.name,hl):this.element.removeAttribute(this.name)}},gi=class extends mt{constructor(t,r,i,s,n){super(t,r,i,s,n),this.type=5}_$AI(t,r=this){var i;if((t=(i=pt(this,t,r,0))!==null&&i!==void 0?i:G)===Te)return;let s=this._$AH,n=t===G&&s!==G||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,o=t!==G&&(s===G||n);n&&this.element.removeEventListener(this.name,this,s),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var r,i;typeof this._$AH=="function"?this._$AH.call((i=(r=this.options)===null||r===void 0?void 0:r.host)!==null&&i!==void 0?i:this.element,t):this._$AH.handleEvent(t)}},bi=class{constructor(t,r,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){pt(this,t)}},mo={O:hi,P:Me,A:Gs,C:1,M:po,L:fi,D:lo,R:pt,I:We,V:mt,H:mi,N:gi,U:pi,F:bi},uo=br.litHtmlPolyfillSupport;uo==null||uo(ft,We),((Vs=br.litHtmlVersions)!==null&&Vs!==void 0?Vs:br.litHtmlVersions=[]).push("2.7.4");var go=(e,t,r)=>{var i,s;let n=(i=r==null?void 0:r.renderBefore)!==null&&i!==void 0?i:t,o=n._$litPart$;if(o===void 0){let u=(s=r==null?void 0:r.renderBefore)!==null&&s!==void 0?s:null;n._$litPart$=o=new We(t.insertBefore(Er(),u),u,void 0,r!=null?r:{})}return o._$AI(e),o};var Xs,Ws;var N=class extends ke{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,r;let i=super.createRenderRoot();return(t=(r=this.renderOptions).renderBefore)!==null&&t!==void 0||(r.renderBefore=i.firstChild),i}update(t){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=go(r,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return Te}};N.finalized=!0,N._$litElement$=!0,(Xs=globalThis.litElementHydrateSupport)===null||Xs===void 0||Xs.call(globalThis,{LitElement:N});var bo=globalThis.litElementPolyfillSupport;bo==null||bo({LitElement:N});((Ws=globalThis.litElementVersions)!==null&&Ws!==void 0?Ws:globalThis.litElementVersions=[]).push("3.3.2");function Y(e,t){let r=R({waitUntilFirstUpdate:!1},t);return(i,s)=>{let{update:n}=i,o=Array.isArray(e)?e:[e];i.update=function(u){o.forEach(c=>{let h=c;if(u.has(h)){let p=u.get(h),T=this[h];p!==T&&(!r.waitUntilFirstUpdate||this.hasUpdated)&&this[s](p,T)}}),n.call(this,u)}}}var Ce=class extends N{constructor(){super();this.variables=[];this.feedbackElements=[];this.interactionElements=[];this._handleDisabledChange=(r,i)=>{this.interactionElements.forEach(s=>s.disabled=i)};this._handleReadonlyChange=(r,i)=>this.interactionElements.forEach(s=>s.readonly=i);this.addEventListener("qti-register-variable",this._registerVariable),this.addEventListener("qti-register-feedback",this.registerFeedbackElement),this.addEventListener("qti-register-interaction",this.registerInteractionElement),this.addEventListener("qti-outcome-changed",this.outcomeChanged),this.addEventListener("qti-interaction-response",this.interactionResponse)}render(){return v`<slot></slot>`}connectedCallback(){super.connectedCallback(),this.dispatchEvent(new CustomEvent("qti-item-connected",{bubbles:!0,composed:!0,detail:{identifier:this.identifier}}))}disconnectedCallback(){this.removeEventListener("qti-register-variable",this._registerVariable),this.removeEventListener("qti-register-feedback",this.registerFeedbackElement),this.removeEventListener("qti-register-interaction",this.registerInteractionElement),this.removeEventListener("qti-outcome-changed",this.outcomeChanged),this.removeEventListener("qti-interaction-response",this.interactionResponse)}_registerVariable(r){this.variables.push(r.detail.variable)}showCorrectResponse(){let r=this.variables.filter(i=>"correctResponse"in i);this.responses=r.map(i=>({responseIdentifier:i.identifier,response:i.correctResponse}))}processResponse(){if(!this.validateResponses())return console.info("Item is not valid, call validateResponses first"),!1;let r=this.querySelector("qti-response-processing");return r?r.process?(r.process(),!0):(console.info("Client side response webcomponents not available"),!1):(console.info("Client side response processing template not available"),!1)}set responses(r){if(r)for(let i of r){let s=this.interactionElements.find(o=>o.getAttribute("response-identifier")===i.responseIdentifier),n=this.getResponse(i.responseIdentifier);n&&(n.value=i.response),s&&(s.response=i.response)}}resetInteractions(){this.interactionElements.forEach(r=>r.reset())}validateResponses(){let r=!0;return this.interactionElements.forEach(i=>{i.validate()||(r=!1)}),r}getVariableValue(r){let i=this.variables.find(s=>s.identifier===r);return i?i.value:(console.warn(`Variable with identifier ${r} was not found`),null)}getResponse(r){let i=this.variables.find(n=>n.identifier===r);return i instanceof Lt?i:null}getOutcome(r){let i=this.variables.find(s=>s.identifier===r);return i instanceof Dt?i:null}registerFeedbackElement(r){r.stopPropagation(),this.feedbackElements.push(r.detail)}registerInteractionElement(r){r.stopPropagation(),this.interactionElements.push(r.target)}interactionResponse(r){let i=r.detail,s=this.getResponse(i.responseIdentifier);s&&(s.value=i.response),r.stopImmediatePropagation();let n=this.getAttribute("identifier");n||console.warn("qti-assessment-item has no identifier specified"),this.dispatchEvent(new CustomEvent("qti-interaction-changed",{bubbles:!0,composed:!0,detail:{item:n,responseIdentifier:i.responseIdentifier,response:i.response}}))}outcomeChanged(r){this.feedbackElements.forEach(i=>{i.checkShowFeedback(r.detail.outcomeIdentifier,r.detail.value)})}setOutcomeValue(r,i){let s=this.getOutcome(r);if(!s){console.warn(`Can not set qti-outcome-identifier: ${r}, it is not available`);return}s.value=i,this.dispatchEvent(new CustomEvent("qti-outcome-changed",{bubbles:!0,composed:!0,detail:{item:this.identifier,outcomeIdentifier:r,value:i}}))}};g([y({type:Boolean})],Ce.prototype,"disabled",2),g([y({type:Boolean})],Ce.prototype,"readonly",2),g([y({type:String})],Ce.prototype,"title",2),g([y({type:String})],Ce.prototype,"identifier",2),g([Y("disabled",{waitUntilFirstUpdate:!0})],Ce.prototype,"_handleDisabledChange",2),g([Y("readonly",{waitUntilFirstUpdate:!0})],Ce.prototype,"_handleReadonlyChange",2),Ce=g([V("qti-assessment-item")],Ce);var Ks=class extends N{constructor(){super()}connectedCallback(){super.connectedCallback();let r=this.closest("qti-assessment-item"),i=this.getAttribute("href"),s=document.createElement("link");s.rel="stylesheet",s.type="text/css",s.media="screen",s.href=i,r.appendChild(s),this.styleLink=s}disconnectedCallback(){let r=this.closest("qti-assessment-item");if(this.styleLink&&this.styleLink.parentElement===this)try{r.removeChild(this.styleLink)}catch(i){console.log("could not remove stylesheet")}}};customElements.define("qti-stylesheet",Ks);var Eo=O`
|
|
1
|
+
var Xc=Object.create;var cr=Object.defineProperty,Wc=Object.defineProperties,Ma=Object.getOwnPropertyDescriptor,Kc=Object.getOwnPropertyDescriptors,Qc=Object.getOwnPropertyNames,Da=Object.getOwnPropertySymbols,jc=Object.getPrototypeOf,Pa=Object.prototype.hasOwnProperty,zc=Object.prototype.propertyIsEnumerable;var Oa=(e,t,r)=>t in e?cr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,I=(e,t)=>{for(var r in t||(t={}))Pa.call(t,r)&&Oa(e,r,t[r]);if(Da)for(var r of Da(t))zc.call(t,r)&&Oa(e,r,t[r]);return e},Y=(e,t)=>Wc(e,Kc(t));var Zc=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),me=(e,t)=>{for(var r in t)cr(e,r,{get:t[r],enumerable:!0})},Jc=(e,t,r,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Qc(t))!Pa.call(e,i)&&i!==r&&cr(e,i,{get:()=>t[i],enumerable:!(s=Ma(t,i))||s.enumerable});return e};var dt=(e,t,r)=>(r=e!=null?Xc(jc(e)):{},Jc(t||!e||!e.__esModule?cr(r,"default",{value:e,enumerable:!0}):r,e));var E=(e,t,r,s)=>{for(var i=s>1?void 0:s?Ma(t,r):t,a=e.length-1,o;a>=0;a--)(o=e[a])&&(i=(s?o(t,r,i):o(i))||i);return s&&i&&cr(t,r,i),i};var st=Zc((GC,_u)=>{_u.exports={trueFunc:function(){return!0},falseFunc:function(){return!1}}});var ka={};var wa={};var Ha={};var Ba={};var Ua={};var Fa={};var qa={};var $a={};var Va={};var Ya={ON_OUTCOME_CHANGED:"qti-outcome-changed",ON_INTERACTION_CHANGED:"on-interaction-changed",ON_REGISTER_VARIABLE:"on-register-variable",ON_REGISTER_FEEDBACK:"on-register-feedback",ON_REGISTER_INTERACTION:"on-register-interaction",ON_REGISTER_CHOICE:"on-register-choice",ON_REGISTER_HOTSPOT:"on-register-hotspot",ON_LOOSE_CHOICE:"on-loose-choice",ON_INTERACTION_RESPONSE:"on-interaction-response",ON_DROPDOWN_SELECTED:"on-dropdown-selected",ON_CHOICE_ELEMENT_SELECTED:"choice-element-selected"};var Lt=class{constructor({mapping:t,correctResponse:r,cardinality:s,baseType:i,identifier:a}){this._basetype="string";this._mapping=t,this._correctResponse=r,this._cardinality=s,this._basetype=i,this._identifier=a}get mapping(){return this._mapping}get correctResponse(){return this._correctResponse}get cardinality(){return this._cardinality}get baseType(){return this._basetype}get identifier(){return this._identifier}get value(){return this._candidateResponse}set value(t){this._candidateResponse=t}};var Dt=class{constructor(){this.value=0}};var H=e=>t=>typeof t=="function"?((r,s)=>(customElements.define(r,s),s))(e,t):((r,s)=>{let{kind:i,elements:a}=s;return{kind:i,elements:a,finisher(o){customElements.define(r,o)}}})(e,t);var el=(e,t)=>t.kind==="method"&&t.descriptor&&!("value"in t.descriptor)?Y(I({},t),{finisher(r){r.createProperty(t.key,e)}}):{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){typeof t.initializer=="function"&&(this[t.key]=t.initializer.call(this))},finisher(r){r.createProperty(t.key,e)}};function x(e){return(t,r)=>r!==void 0?((s,i,a)=>{i.constructor.createProperty(a,s)})(e,t,r):el(e,t)}function Ge(e){return x(Y(I({},e),{state:!0}))}var De=({finisher:e,descriptor:t})=>(r,s)=>{var i;if(s===void 0){let a=(i=r.originalKey)!==null&&i!==void 0?i:r.key,o=t!=null?{kind:"method",placement:"prototype",key:a,descriptor:t(r.key)}:Y(I({},r),{key:a});return e!=null&&(o.finisher=function(u){e(u,a)}),o}{let a=r.constructor;t!==void 0&&Object.defineProperty(r,s,t(s)),e==null||e(a,s)}};function Ot(e,t){return De({descriptor:r=>{let s={get(){var i,a;return(a=(i=this.renderRoot)===null||i===void 0?void 0:i.querySelector(e))!==null&&a!==void 0?a:null},enumerable:!0,configurable:!0};if(t){let i=typeof r=="symbol"?Symbol():"__"+r;s.get=function(){var a,o;return this[i]===void 0&&(this[i]=(o=(a=this.renderRoot)===null||a===void 0?void 0:a.querySelector(e))!==null&&o!==void 0?o:null),this[i]}}return s}})}var Pi,Yp=((Pi=globalThis.HTMLSlotElement)===null||Pi===void 0?void 0:Pi.prototype.assignedElements)!=null?(e,t)=>e.assignedElements(t):(e,t)=>e.assignedNodes(t).filter(r=>r.nodeType===Node.ELEMENT_NODE);var Ga=class{constructor(t){this.ariaAtomic="",this.ariaAutoComplete="",this.ariaBraileLabel="",this.ariaBraileRoleDescription="",this.ariaBusy="",this.ariaChecked="",this.ariaColCount="",this.ariaColIndex="",this.ariaColSpan="",this.ariaCurrent="",this.ariaDescription="",this.ariaDisabled="",this.ariaExpanded="",this.ariaHasPopup="",this.ariaHidden="",this.ariaInvalid="",this.ariaKeyShortcuts="",this.ariaLabel="",this.ariaLevel="",this.ariaLive="",this.ariaModal="",this.ariaMultiLine="",this.ariaMultiSelectable="",this.ariaOrientation="",this.ariaPlaceholder="",this.ariaPosInSet="",this.ariaPressed="",this.ariaReadOnly="",this.ariaRequired="",this.ariaRoleDescription="",this.ariaRowCount="",this.ariaRowIndex="",this.ariaRowSpan="",this.ariaSelected="",this.ariaSetSize="",this.ariaSort="",this.ariaValueMax="",this.ariaValueMin="",this.ariaValueNow="",this.ariaValueText="",this.role="",this.form=null,this.labels=[],this.states=new Set,this.validationMessage="",this.validity={},this.willValidate=!0,this.__host=t}get shadowRoot(){return this.__host.__shadowRoot}checkValidity(){return console.warn("`ElementInternals.checkValidity()` was called on the server.This method always returns true."),!0}reportValidity(){return!0}setFormValue(){}setValidity(){}};var Xa=new WeakMap,lr=e=>{let t=Xa.get(e);return t===void 0&&Xa.set(e,t=new Map),t},tl=class{constructor(){this.__shadowRootMode=null,this.__shadowRoot=null,this.__internals=null}get attributes(){return Array.from(lr(this)).map(([t,r])=>({name:t,value:r}))}get shadowRoot(){return this.__shadowRootMode==="closed"?null:this.__shadowRoot}setAttribute(t,r){lr(this).set(t,String(r))}removeAttribute(t){lr(this).delete(t)}hasAttribute(t){return lr(this).has(t)}attachShadow(t){let r={host:this};return this.__shadowRootMode=t.mode,t&&t.mode==="open"&&(this.__shadowRoot=r),r}attachInternals(){if(this.__internals!==null)throw new Error("Failed to execute 'attachInternals' on 'HTMLElement': ElementInternals for the specified element was already attached.");let t=new Ga(this);return this.__internals=t,t}getAttribute(t){let r=lr(this).get(t);return r!=null?r:null}};var rl=class extends tl{},Wa=rl;var sl=class{constructor(){this.__definitions=new Map}define(t,r){var s;if(this.__definitions.has(t))throw new Error(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);this.__definitions.set(t,{ctor:r,observedAttributes:(s=r.observedAttributes)!=null?s:[]})}get(t){let r=this.__definitions.get(t);return r==null?void 0:r.ctor}},il=sl;var Ka=new il;var dr=globalThis,ds=dr.ShadowRoot&&(dr.ShadyCSS===void 0||dr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ki=Symbol(),Qa=new WeakMap,hr=class{constructor(t,r,s){if(this._$cssResult$=!0,s!==ki)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o,r=this.t;if(ds&&t===void 0){let s=r!==void 0&&r.length===1;s&&(t=Qa.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&Qa.set(r,t))}return t}toString(){return this.cssText}},ja=e=>new hr(typeof e=="string"?e:e+"",void 0,ki),M=(e,...t)=>{let r=e.length===1?e[0]:t.reduce((s,i,a)=>s+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+e[a+1],e[0]);return new hr(r,e,ki)},wi=(e,t)=>{ds?e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):t.forEach(r=>{let s=document.createElement("style"),i=dr.litNonce;i!==void 0&&s.setAttribute("nonce",i),s.textContent=r.cssText,e.appendChild(s)})},hs=ds||dr.CSSStyleSheet===void 0?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(let s of t.cssRules)r+=s.cssText;return ja(r)})(e):e;var za,Hi,Mt=globalThis;(za=Mt.customElements)!==null&&za!==void 0||(Mt.customElements=Ka);var Za=Mt.trustedTypes,nl=Za?Za.emptyScript:"",Ja=Mt.reactiveElementPolyfillSupport,Ui={toAttribute(e,t){switch(t){case Boolean:e=e?nl:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch(s){r=null}}return r}},to=(e,t)=>t!==e&&(t==t||e==e),Bi={attribute:!0,type:String,converter:Ui,reflect:!1,hasChanged:to},eo,Oe=class extends((eo=globalThis.HTMLElement)!=null?eo:Wa){constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var r;this.finalize(),((r=this.h)!==null&&r!==void 0?r:this.h=[]).push(t)}static get observedAttributes(){this.finalize();let t=[];return this.elementProperties.forEach((r,s)=>{let i=this._$Ep(s,r);i!==void 0&&(this._$Ev.set(i,s),t.push(i))}),t}static createProperty(t,r=Bi){if(r.state&&(r.attribute=!1),this.finalize(),this.elementProperties.set(t,r),!r.noAccessor&&!this.prototype.hasOwnProperty(t)){let s=typeof t=="symbol"?Symbol():"__"+t,i=this.getPropertyDescriptor(t,s,r);i!==void 0&&Object.defineProperty(this.prototype,t,i)}}static getPropertyDescriptor(t,r,s){return{get(){return this[r]},set(i){let a=this[t];this[r]=i,this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||Bi}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;let t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let r=this.properties,s=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(let i of s)this.createProperty(i,r[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){let r=[];if(Array.isArray(t)){let s=new Set(t.flat(1/0).reverse());for(let i of s)r.unshift(hs(i))}else t!==void 0&&r.push(hs(t));return r}static _$Ep(t,r){let s=r.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(r=>r(this))}addController(t){var r,s;((r=this._$ES)!==null&&r!==void 0?r:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((s=t.hostConnected)===null||s===void 0||s.call(t))}removeController(t){var r;(r=this._$ES)===null||r===void 0||r.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,r)=>{this.hasOwnProperty(r)&&(this._$Ei.set(r,this[r]),delete this[r])})}createRenderRoot(){var t;let r=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return wi(r,this.constructor.elementStyles),r}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(r=>{var s;return(s=r.hostConnected)===null||s===void 0?void 0:s.call(r)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(r=>{var s;return(s=r.hostDisconnected)===null||s===void 0?void 0:s.call(r)})}attributeChangedCallback(t,r,s){this._$AK(t,s)}_$EO(t,r,s=Bi){var i;let a=this.constructor._$Ep(t,s);if(a!==void 0&&s.reflect===!0){let o=(((i=s.converter)===null||i===void 0?void 0:i.toAttribute)!==void 0?s.converter:Ui).toAttribute(r,s.type);this._$El=t,o==null?this.removeAttribute(a):this.setAttribute(a,o),this._$El=null}}_$AK(t,r){var s;let i=this.constructor,a=i._$Ev.get(t);if(a!==void 0&&this._$El!==a){let o=i.getPropertyOptions(a),u=typeof o.converter=="function"?{fromAttribute:o.converter}:((s=o.converter)===null||s===void 0?void 0:s.fromAttribute)!==void 0?o.converter:Ui;this._$El=a,this[a]=u.fromAttribute(r,o.type),this._$El=null}}requestUpdate(t,r,s){let i=!0;t!==void 0&&(((s=s||this.constructor.getPropertyOptions(t)).hasChanged||to)(this[t],r)?(this._$AL.has(t)||this._$AL.set(t,r),s.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,s))):i=!1),!this.isUpdatePending&&i&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(r){Promise.reject(r)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((i,a)=>this[a]=i),this._$Ei=void 0);let r=!1,s=this._$AL;try{r=this.shouldUpdate(s),r?(this.willUpdate(s),(t=this._$ES)===null||t===void 0||t.forEach(i=>{var a;return(a=i.hostUpdate)===null||a===void 0?void 0:a.call(i)}),this.update(s)):this._$Ek()}catch(i){throw r=!1,this._$Ek(),i}r&&this._$AE(s)}willUpdate(t){}_$AE(t){var r;(r=this._$ES)===null||r===void 0||r.forEach(s=>{var i;return(i=s.hostUpdated)===null||i===void 0?void 0:i.call(s)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((r,s)=>this._$EO(s,this[s],r)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};Oe.finalized=!0,Oe.elementProperties=new Map,Oe.elementStyles=[],Oe.shadowRootOptions={mode:"open"},Ja==null||Ja({ReactiveElement:Oe}),((Hi=Mt.reactiveElementVersions)!==null&&Hi!==void 0?Hi:Mt.reactiveElementVersions=[]).push("1.6.1");var Fi,pr=globalThis,kt=pr.trustedTypes,ro=kt?kt.createPolicy("lit-html",{createHTML:e=>e}):void 0,fs="$lit$",Me=`lit$${(Math.random()+"").slice(9)}$`,$i="?"+Me,al=`<${$i}>`,wt=pr.document===void 0?{createTreeWalker:()=>({})}:document,mr=()=>wt.createComment(""),Er=e=>e===null||typeof e!="object"&&typeof e!="function",co=Array.isArray,lo=e=>co(e)||typeof(e==null?void 0:e[Symbol.iterator])=="function",qi=`[
|
|
2
|
+
\f\r]`,fr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,so=/-->/g,io=/>/g,ht=RegExp(`>|${qi}(?:([^\\s"'>=/]+)(${qi}*=${qi}*(?:[^
|
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),no=/'/g,ao=/"/g,ho=/^(?:script|style|textarea|title)$/i,fo=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),_=fo(1),po=fo(2),Pe=Symbol.for("lit-noChange"),q=Symbol.for("lit-nothing"),oo=new WeakMap,Pt=wt.createTreeWalker(wt,129,null,!1),mo=(e,t)=>{let r=e.length-1,s=[],i,a=t===2?"<svg>":"",o=fr;for(let c=0;c<r;c++){let h=e[c],p,g,N=-1,y=0;for(;y<h.length&&(o.lastIndex=y,g=o.exec(h),g!==null);)y=o.lastIndex,o===fr?g[1]==="!--"?o=so:g[1]!==void 0?o=io:g[2]!==void 0?(ho.test(g[2])&&(i=RegExp("</"+g[2],"g")),o=ht):g[3]!==void 0&&(o=ht):o===ht?g[0]===">"?(o=i!=null?i:fr,N=-1):g[1]===void 0?N=-2:(N=o.lastIndex-g[2].length,p=g[1],o=g[3]===void 0?ht:g[3]==='"'?ao:no):o===ao||o===no?o=ht:o===so||o===io?o=fr:(o=ht,i=void 0);let R=o===ht&&e[c+1].startsWith("/>")?" ":"";a+=o===fr?h+al:N>=0?(s.push(p),h.slice(0,N)+fs+h.slice(N)+Me+R):h+Me+(N===-2?(s.push(void 0),c):R)}let u=a+(e[r]||"<?>")+(t===2?"</svg>":"");if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return[ro!==void 0?ro.createHTML(u):u,s]},ft=class{constructor({strings:t,_$litType$:r},s){let i;this.parts=[];let a=0,o=0,u=t.length-1,c=this.parts,[h,p]=mo(t,r);if(this.el=ft.createElement(h,s),Pt.currentNode=this.el.content,r===2){let g=this.el.content,N=g.firstChild;N.remove(),g.append(...N.childNodes)}for(;(i=Pt.nextNode())!==null&&c.length<u;){if(i.nodeType===1){if(i.hasAttributes()){let g=[];for(let N of i.getAttributeNames())if(N.endsWith(fs)||N.startsWith(Me)){let y=p[o++];if(g.push(N),y!==void 0){let R=i.getAttribute(y.toLowerCase()+fs).split(Me),O=/([.?@])?(.*)/.exec(y);c.push({type:1,index:a,name:O[2],strings:R,ctor:O[1]==="."?ms:O[1]==="?"?Es:O[1]==="@"?bs:mt})}else c.push({type:6,index:a})}for(let N of g)i.removeAttribute(N)}if(ho.test(i.tagName)){let g=i.textContent.split(Me),N=g.length-1;if(N>0){i.textContent=kt?kt.emptyScript:"";for(let y=0;y<N;y++)i.append(g[y],mr()),Pt.nextNode(),c.push({type:2,index:++a});i.append(g[N],mr())}}}else if(i.nodeType===8)if(i.data===$i)c.push({type:2,index:a});else{let g=-1;for(;(g=i.data.indexOf(Me,g+1))!==-1;)c.push({type:7,index:a}),g+=Me.length-1}a++}}static createElement(t,r){let s=wt.createElement("template");return s.innerHTML=t,s}};function pt(e,t,r=e,s){var i,a,o,u;if(t===Pe)return t;let c=s!==void 0?(i=r._$Co)===null||i===void 0?void 0:i[s]:r._$Cl,h=Er(t)?void 0:t._$litDirective$;return(c==null?void 0:c.constructor)!==h&&((a=c==null?void 0:c._$AO)===null||a===void 0||a.call(c,!1),h===void 0?c=void 0:(c=new h(e),c._$AT(e,r,s)),s!==void 0?((o=(u=r)._$Co)!==null&&o!==void 0?o:u._$Co=[])[s]=c:r._$Cl=c),c!==void 0&&(t=pt(e,c._$AS(e,t.values),c,s)),t}var ps=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var r;let{el:{content:s},parts:i}=this._$AD,a=((r=t==null?void 0:t.creationScope)!==null&&r!==void 0?r:wt).importNode(s,!0);Pt.currentNode=a;let o=Pt.nextNode(),u=0,c=0,h=i[0];for(;h!==void 0;){if(u===h.index){let p;h.type===2?p=new Xe(o,o.nextSibling,this,t):h.type===1?p=new h.ctor(o,h.name,h.strings,this,t):h.type===6&&(p=new Ts(o,this,t)),this._$AV.push(p),h=i[++c]}u!==(h==null?void 0:h.index)&&(o=Pt.nextNode(),u++)}return a}v(t){let r=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,r),r+=s.strings.length-2):s._$AI(t[r])),r++}},Xe=class{constructor(t,r,s,i){var a;this.type=2,this._$AH=q,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=s,this.options=i,this._$Cp=(a=i==null?void 0:i.isConnected)===null||a===void 0||a}get _$AU(){var t,r;return(r=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&r!==void 0?r:this._$Cp}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=pt(this,t,r),Er(t)?t===q||t==null||t===""?(this._$AH!==q&&this._$AR(),this._$AH=q):t!==this._$AH&&t!==Pe&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):lo(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==q&&Er(this._$AH)?this._$AA.nextSibling.data=t:this.$(wt.createTextNode(t)),this._$AH=t}g(t){var r;let{values:s,_$litType$:i}=t,a=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=ft.createElement(i.h,this.options)),i);if(((r=this._$AH)===null||r===void 0?void 0:r._$AD)===a)this._$AH.v(s);else{let o=new ps(a,this),u=o.u(this.options);o.v(s),this.$(u),this._$AH=o}}_$AC(t){let r=oo.get(t.strings);return r===void 0&&oo.set(t.strings,r=new ft(t)),r}T(t){co(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,s,i=0;for(let a of t)i===r.length?r.push(s=new Xe(this.k(mr()),this.k(mr()),this,this.options)):s=r[i],s._$AI(a),i++;i<r.length&&(this._$AR(s&&s._$AB.nextSibling,i),r.length=i)}_$AR(t=this._$AA.nextSibling,r){var s;for((s=this._$AP)===null||s===void 0||s.call(this,!1,!0,r);t&&t!==this._$AB;){let i=t.nextSibling;t.remove(),t=i}}setConnected(t){var r;this._$AM===void 0&&(this._$Cp=t,(r=this._$AP)===null||r===void 0||r.call(this,t))}},mt=class{constructor(t,r,s,i,a){this.type=1,this._$AH=q,this._$AN=void 0,this.element=t,this.name=r,this._$AM=i,this.options=a,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=q}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,r=this,s,i){let a=this.strings,o=!1;if(a===void 0)t=pt(this,t,r,0),o=!Er(t)||t!==this._$AH&&t!==Pe,o&&(this._$AH=t);else{let u=t,c,h;for(t=a[0],c=0;c<a.length-1;c++)h=pt(this,u[s+c],r,c),h===Pe&&(h=this._$AH[c]),o||(o=!Er(h)||h!==this._$AH[c]),h===q?t=q:t!==q&&(t+=(h!=null?h:"")+a[c+1]),this._$AH[c]=h}o&&!i&&this.j(t)}j(t){t===q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}},ms=class extends mt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===q?void 0:t}},ol=kt?kt.emptyScript:"",Es=class extends mt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==q?this.element.setAttribute(this.name,ol):this.element.removeAttribute(this.name)}},bs=class extends mt{constructor(t,r,s,i,a){super(t,r,s,i,a),this.type=5}_$AI(t,r=this){var s;if((t=(s=pt(this,t,r,0))!==null&&s!==void 0?s:q)===Pe)return;let i=this._$AH,a=t===q&&i!==q||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,o=t!==q&&(i===q||a);a&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var r,s;typeof this._$AH=="function"?this._$AH.call((s=(r=this.options)===null||r===void 0?void 0:r.host)!==null&&s!==void 0?s:this.element,t):this._$AH.handleEvent(t)}},Ts=class{constructor(t,r,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){pt(this,t)}},Eo={O:fs,P:Me,A:$i,C:1,M:mo,L:ps,D:lo,R:pt,I:Xe,V:mt,H:Es,N:bs,U:ms,F:Ts},uo=pr.litHtmlPolyfillSupport;uo==null||uo(ft,Xe),((Fi=pr.litHtmlVersions)!==null&&Fi!==void 0?Fi:pr.litHtmlVersions=[]).push("2.7.2");var bo=(e,t,r)=>{var s,i;let a=(s=r==null?void 0:r.renderBefore)!==null&&s!==void 0?s:t,o=a._$litPart$;if(o===void 0){let u=(i=r==null?void 0:r.renderBefore)!==null&&i!==void 0?i:null;a._$litPart$=o=new Xe(t.insertBefore(mr(),u),u,void 0,r!=null?r:{})}return o._$AI(e),o};var Vi,Yi;var v=class extends Oe{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,r;let s=super.createRenderRoot();return(t=(r=this.renderOptions).renderBefore)!==null&&t!==void 0||(r.renderBefore=s.firstChild),s}update(t){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=bo(r,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return Pe}};v.finalized=!0,v._$litElement$=!0,(Vi=globalThis.litElementHydrateSupport)===null||Vi===void 0||Vi.call(globalThis,{LitElement:v});var To=globalThis.litElementPolyfillSupport;To==null||To({LitElement:v});((Yi=globalThis.litElementVersions)!==null&&Yi!==void 0?Yi:globalThis.litElementVersions=[]).push("3.3.1");function U(e,t){let r=I({waitUntilFirstUpdate:!1},t);return(s,i)=>{let{update:a}=s,o=Array.isArray(e)?e:[e];s.update=function(u){o.forEach(c=>{let h=c;if(u.has(h)){let p=u.get(h),g=this[h];p!==g&&(!r.waitUntilFirstUpdate||this.hasUpdated)&&this[i](p,g)}}),a.call(this,u)}}}var Ae=class extends v{constructor(){super();this.variables=[];this.feedbackElements=[];this.interactionElements=[];this._handleDisabledChange=(r,s)=>{this.interactionElements.forEach(i=>i.disabled=s)};this._handleReadonlyChange=(r,s)=>this.interactionElements.forEach(i=>i.readonly=s);this.addEventListener("qti-register-variable",this._registerVariable),this.addEventListener("qti-register-feedback",this.registerFeedbackElement),this.addEventListener("qti-register-interaction",this.registerInteractionElement),this.addEventListener("qti-outcome-changed",this.outcomeChanged),this.addEventListener("qti-interaction-response",this.interactionResponse)}render(){return _`<slot></slot>`}disconnectedCallback(){this.removeEventListener("qti-register-variable",this._registerVariable),this.removeEventListener("qti-register-feedback",this.registerFeedbackElement),this.removeEventListener("qti-register-interaction",this.registerInteractionElement),this.removeEventListener("qti-outcome-changed",this.outcomeChanged),this.removeEventListener("qti-interaction-response",this.interactionResponse)}_registerVariable(r){this.variables.push(r.detail.variable)}showCorrectResponse(){let r=this.variables.filter(s=>"correctResponse"in s);this.responses=r.map(s=>({responseIdentifier:s.identifier,response:s.correctResponse}))}processResponse(){if(!this.validateResponses())return console.info("Item is not valid, call validateResponses first"),!1;let r=this.querySelector("qti-response-processing");return r?r.process?(r.process(),!0):(console.info("Client side response webcomponents not available"),!1):(console.info("Client side response processing template not available"),!1)}set responses(r){if(r)for(let s of r){let i=this.interactionElements.find(o=>o.getAttribute("response-identifier")===s.responseIdentifier),a=this.getResponse(s.responseIdentifier);a&&(a.value=s.response),i&&(i.response=s.response)}}resetInteractions(){this.interactionElements.forEach(r=>r.reset())}validateResponses(){let r=!0;return this.interactionElements.forEach(s=>{s.validate()||(r=!1)}),r}getVariableValue(r){let s=this.variables.find(i=>i.identifier===r);return s?s.value:(console.warn(`Variable with identifier ${r} was not found`),null)}getResponse(r){let s=this.variables.find(a=>a.identifier===r);return s instanceof Lt?s:null}getOutcome(r){let s=this.variables.find(i=>i.identifier===r);return s instanceof Dt?s:null}registerFeedbackElement(r){r.stopPropagation(),this.feedbackElements.push(r.detail)}registerInteractionElement(r){r.stopPropagation(),this.interactionElements.push(r.target)}interactionResponse(r){let s=r.detail,i=this.getResponse(s.responseIdentifier);i&&(i.value=s.response),r.stopImmediatePropagation();let a=this.getAttribute("identifier");a||console.warn("qti-assessment-item has no identifier specified"),this.dispatchEvent(new CustomEvent("qti-interaction-changed",{bubbles:!0,composed:!0,detail:{item:a,responseIdentifier:s.responseIdentifier,response:s.response}}))}outcomeChanged(r){this.feedbackElements.forEach(s=>{s.checkShowFeedback(r.detail.outcomeIdentifier,r.detail.value)})}setOutcomeValue(r,s){let i=this.getOutcome(r);if(!i){console.warn(`Can not set qti-outcome-identifier: ${r}, it is not available`);return}i.value=s,this.dispatchEvent(new CustomEvent("qti-outcome-changed",{bubbles:!0,composed:!0,detail:{item:this.identifier,outcomeIdentifier:r,value:s}}))}};E([x({type:Boolean})],Ae.prototype,"disabled",2),E([x({type:Boolean})],Ae.prototype,"readonly",2),E([x({type:String})],Ae.prototype,"title",2),E([x({type:String})],Ae.prototype,"identifier",2),E([U("disabled",{waitUntilFirstUpdate:!0})],Ae.prototype,"_handleDisabledChange",2),E([U("readonly",{waitUntilFirstUpdate:!0})],Ae.prototype,"_handleReadonlyChange",2),Ae=E([H("qti-assessment-item")],Ae);var Gi=class extends v{constructor(){super()}connectedCallback(){super.connectedCallback();let r=this.closest("qti-assessment-item"),s=this.getAttribute("href"),i=document.createElement("link");i.rel="stylesheet",i.type="text/css",i.media="screen",i.href=s,r.appendChild(i),this.styleLink=i}disconnectedCallback(){let r=this.closest("qti-assessment-item");if(this.styleLink&&this.styleLink.parentElement===this)try{r.removeChild(this.styleLink)}catch(s){console.log("could not remove stylesheet")}}};customElements.define("qti-stylesheet",Gi);var go=M`
|
|
5
4
|
:host {
|
|
6
5
|
display: block;
|
|
7
6
|
}
|
|
8
|
-
`;var
|
|
9
|
-
<slot></slot>`}};
|
|
7
|
+
`;var Ht=class extends v{render(){return _` <slot name="qti-rubric-block"></slot>
|
|
8
|
+
<slot></slot>`}};Ht.styles=go,Ht=E([H("qti-item-body")],Ht);var Xi=class extends v{render(){return _` <slot></slot> `}connectedCallback(){this.parentElement.tagName.endsWith("INTERACTION")&&this.setAttribute("slot","prompt")}};customElements.define("qti-prompt",Xi);var ul=Symbol.for(""),cl=e=>{if((e==null?void 0:e.r)===ul)return e==null?void 0:e._$litStatic$};var _o=new Map,Ao=e=>(t,...r)=>{let s=r.length,i,a,o=[],u=[],c,h=0,p=!1;for(;h<s;){for(c=t[h];h<s&&(a=r[h],(i=cl(a))!==void 0);)c+=i+t[++h],p=!0;u.push(a),o.push(c),h++}if(h===s&&o.push(t[s]),p){let g=o.join("$$lit$$");(t=_o.get(g))===void 0&&(o.raw=o,_o.set(g,t=o)),r=u}return e(t,...r)},xo=Ao(_),tE=Ao(po);var ll={SPACE:32},se=class extends v{constructor(){super(...arguments);this.tabindex=0;this.disabled=!1;this.readonly=!1;this.checked=!1}handleDisabledChange(r,s){s?(this.tabindex=void 0,this.blur()):this.tabIndex=0}connectedCallback(){super.connectedCallback(),this.addEventListener("keyup",this._onKeyUp),this.addEventListener("click",this._onClick),this.dispatchEvent(new CustomEvent("qti-register-choice",{bubbles:!0,cancelable:!1,composed:!0}))}disconnectedCallback(){this.removeEventListener("keyup",this._onKeyUp),this.removeEventListener("click",this._onClick),this.dispatchEvent(new CustomEvent("qti-loose-choice",{bubbles:!0,cancelable:!1,composed:!0}))}reset(){this.checked=!1,this.disabled=!1}_onKeyUp(r){if(!r.altKey)switch(r.keyCode){case ll.SPACE:r.preventDefault(),this._toggleChecked();break;default:}}_onClick(){this._toggleChecked()}_toggleChecked(){this.disabled||this.readonly||(this.checked=!this.checked,this.dispatchEvent(new CustomEvent("qti-choice-element-selected",{bubbles:!0,cancelable:!1,composed:!0,detail:{identifier:this.identifier,checked:this.checked}})))}validateAllProps(){return!!this.getAttribute("identifier")}render(){return this.validateAllProps()||console.warn(`Invalid props for ${this.outerHTML}`,"missing identifier"),xo` <slot></slot> `}};E([x({type:String})],se.prototype,"identifier",2),E([x({type:Number,reflect:!0})],se.prototype,"tabindex",2),E([x({reflect:!0,type:Boolean,attribute:"aria-disabled",converter:{toAttribute:e=>e}})],se.prototype,"disabled",2),E([x({reflect:!0,type:Boolean,attribute:"aria-readonly",converter:{toAttribute:e=>e}})],se.prototype,"readonly",2),E([x({reflect:!0,type:Boolean,attribute:"aria-checked",converter:{toAttribute:e=>e}})],se.prototype,"checked",2),E([U("disabled",{waitUntilFirstUpdate:!0})],se.prototype,"handleDisabledChange",1);var Et=class extends v{render(){return _``}};customElements.define("qti-variabledeclaration",Et);var Bt=class extends Et{connectedCallback(){super.connectedCallback();let r=new Lt({baseType:this.baseType,identifier:this.identifier,correctResponse:this.correctResponse,cardinality:this.cardinality||"single",mapping:this.mapping});this.dispatchEvent(new CustomEvent("qti-register-variable",{bubbles:!0,composed:!0,detail:{variable:r}}))}get correctResponse(){let r,s=this.querySelector("qti-correct-response");if(s){let i=s.querySelectorAll("qti-value");if(this.cardinality==="single"&&i.length>0)r=i[0].textContent,i[0].remove();else if(this.cardinality!=="single"){r=[];for(let a=0;a<i.length;a++)r.push(i[a].textContent),i[a].remove()}}return r}get mapping(){return this.querySelector("qti-mapping")}};E([x({type:String,attribute:"base-type"})],Bt.prototype,"baseType",2),E([x({type:String,attribute:"identifier"})],Bt.prototype,"identifier",2),E([x({type:String,attribute:"cardinality"})],Bt.prototype,"cardinality",2);customElements.define("qti-response-declaration",Bt);var Wi=class extends Et{static get observedAttributes(){return["identifier","cardinality","base-type"]}get interpolationTable(){let t=this.querySelector("qti-interpolation-table");if(t){let r=new Map;for(let s of t.querySelectorAll("qti-interpolation-table-entry")){!s.getAttribute("source-value")&&s.getAttribute("target-value")&&console.error("source-value or target-value is missing in qti-interpolation-table-entry");let i=parseInt(s.getAttribute("source-value")),a=parseInt(s.getAttribute("target-value"));(isNaN(i)||isNaN(a))&&console.error("source-value or target-value is not a number in qti-interpolation-table-entry"),r.set(i,a)}}return null}connectedCallback(){super.connectedCallback();let t=this.getAttribute("identifier"),r=new Dt;r.identifier=t,this.dispatchEvent(new CustomEvent("qti-register-variable",{bubbles:!0,composed:!0,detail:{variable:r}}))}};customElements.define("qti-outcome-declaration",Wi);var gs=class extends v{};gs=E([H("qti-companion-materials-info")],gs);var Ut=class extends Event{constructor(t,r,s){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.callback=r,this.subscribe=s}};var We=class{constructor(t,r,s,i){var a;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(o,u)=>{this.unsubscribe&&(this.unsubscribe!==u&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=o,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(o,u)),this.unsubscribe=u},this.host=t,r.context!==void 0){let o=r;this.context=o.context,this.callback=o.callback,this.subscribe=(a=o.subscribe)!==null&&a!==void 0&&a}else this.context=r,this.callback=s,this.subscribe=i!=null&&i;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new Ut(this.context,this.t,this.subscribe))}};var _s=class{constructor(t){this.callbacks=new Map,this.updateObservers=()=>{for(let[r,s]of this.callbacks)r(this.o,s)},t!==void 0&&(this.value=t)}get value(){return this.o}set value(t){this.setValue(t)}setValue(t,r=!1){let s=r||!Object.is(t,this.o);this.o=t,s&&this.updateObservers()}addCallback(t,r){r&&(this.callbacks.has(t)||this.callbacks.set(t,()=>{this.callbacks.delete(t)})),t(this.value)}clearCallbacks(){this.callbacks.clear()}};var Ki=class extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t,Object.setPrototypeOf(this,new.target.prototype)}},Ke=class extends _s{constructor(t,r,s){super(r.context!==void 0?r.initialValue:s),this.onContextRequest=i=>{i.context===this.context&&i.composedPath()[0]!==this.host&&(i.stopPropagation(),this.addCallback(i.callback,i.subscribe))},this.host=t,r.context!==void 0?this.context=r.context:this.context=r,this.attachListeners(),this.host.addController(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest)}hostConnected(){this.host.dispatchEvent(new Ki(this.context))}};var Qe="logger";var xe=class extends v{constructor(){super(...arguments);this.logger=new We(this,Qe,r=>this.style.display=this.view===r.view?"block":"none",!0)}handleclassNamesChange(r,s){this.classNames.split(" ").forEach(a=>{switch(a){case"qti-rubric-discretionary-placement":this.setAttribute("slot","qti-rubric-block");break;case"qti-rubric-inline":this.setAttribute("slot","");break;default:break}})}render(){return _`<slot></slot>`}connectedCallback(){super.connectedCallback(),this.setAttribute("slot","qti-rubric-block")}};xe.styles=M`
|
|
10
9
|
:host {
|
|
11
10
|
display: block;
|
|
12
11
|
}
|
|
13
|
-
`,
|
|
12
|
+
`,E([x({type:String})],xe.prototype,"id",2),E([x({type:String})],xe.prototype,"use",2),E([x({type:String})],xe.prototype,"view",2),E([x({type:String,attribute:"class"})],xe.prototype,"classNames",2),E([U("classNames",{waitUntilFirstUpdate:!0})],xe.prototype,"handleclassNamesChange",1),xe=E([H("qti-rubric-block")],xe);var As=class extends v{render(){return _`<slot></slot>`}};As=E([H("qti-content-body")],As);var Ce=class extends v{constructor(){super();this.showHide="show",this.showFeedback(this.showHide==="hide")}connectedCallback(){super.connectedCallback(),this.dispatchEvent(new CustomEvent("qti-register-feedback",{bubbles:!0,composed:!0,detail:this}))}checkShowFeedback(r,s){if(this.outcomeIdentifier!==r||!s)return;let i=Array.isArray(s)?s.includes(this.identifier):this.identifier===s.toString();this.showFeedback(i)}showFeedback(r){this.showStatus=r?"on":"off"}};E([x({type:String,attribute:"show-hide"})],Ce.prototype,"showHide",2),E([x({type:String,attribute:"outcome-identifier"})],Ce.prototype,"outcomeIdentifier",2),E([x({type:String})],Ce.prototype,"identifier",2),E([x({type:String,attribute:!1})],Ce.prototype,"showStatus",2);var xs=class extends Ce{constructor(){super(...arguments);this.render=()=>_` <slot class="${this.showStatus}"></slot> `}};xs.styles=M`
|
|
14
13
|
.on {
|
|
15
14
|
display: inline-block;
|
|
16
15
|
}
|
|
17
16
|
.off {
|
|
18
17
|
display: none;
|
|
19
18
|
}
|
|
20
|
-
`;customElements.define("qti-feedback-inline",
|
|
19
|
+
`;customElements.define("qti-feedback-inline",xs);var Qi=class extends Ce{render(){return _`
|
|
21
20
|
<style>
|
|
22
21
|
.on {
|
|
23
22
|
display: inline-block;
|
|
@@ -29,7 +28,7 @@ Make sure to test your application with a production build as repeat registratio
|
|
|
29
28
|
<div class="feedback ${this.showStatus}">
|
|
30
29
|
<slot></slot>
|
|
31
30
|
</div>
|
|
32
|
-
`}};customElements.define("qti-modal-feedback",
|
|
31
|
+
`}};customElements.define("qti-modal-feedback",Qi);var je=e=>e!=null?e:q;var W=class extends v{constructor(){super(...arguments);this.responseIdentifier="";this.disabled=!1;this.readonly=!1}connectedCallback(){super.connectedCallback(),this.dispatchEvent(new CustomEvent("qti-register-interaction",{bubbles:!0,cancelable:!1,composed:!0}))}saveResponse(r){this.dispatchEvent(new CustomEvent("qti-interaction-response",{bubbles:!0,cancelable:!1,composed:!0,detail:{responseIdentifier:this.responseIdentifier,response:r}}))}};E([x({attribute:"response-identifier"})],W.prototype,"responseIdentifier",2),E([x({reflect:!0,type:Boolean})],W.prototype,"disabled",2),E([x({reflect:!0,type:Boolean})],W.prototype,"readonly",2);var Ft=M`
|
|
33
32
|
/***
|
|
34
33
|
The new CSS reset - version 1.4.9 (last updated 11.2.2022)
|
|
35
34
|
GitHub page: https://github.com/elad2412/the-new-css-reset
|
|
@@ -109,7 +108,7 @@ Make sure to test your application with a production build as repeat registratio
|
|
|
109
108
|
:where([draggable='true']) {
|
|
110
109
|
-webkit-user-drag: element;
|
|
111
110
|
}
|
|
112
|
-
`;var
|
|
111
|
+
`;var ke=class extends W{constructor(){super(...arguments);this._value=""}set response(r){this._value=r!==void 0?r:""}validate(){return this._value!==""}static get styles(){return[Ft,M`
|
|
113
112
|
/* PK: display host as block, else design will be collapsed */
|
|
114
113
|
:host {
|
|
115
114
|
display: inline-block;
|
|
@@ -117,7 +116,7 @@ Make sure to test your application with a production build as repeat registratio
|
|
|
117
116
|
input {
|
|
118
117
|
padding: var(--qti-padding, 0.5rem);
|
|
119
118
|
}
|
|
120
|
-
`]}render(){return
|
|
119
|
+
`]}render(){return _` <input
|
|
121
120
|
part="input"
|
|
122
121
|
spellcheck="false"
|
|
123
122
|
autocomplete="off"
|
|
@@ -125,13 +124,13 @@ Make sure to test your application with a production build as repeat registratio
|
|
|
125
124
|
@keyup="${this.textChanged}"
|
|
126
125
|
@change="${this.textChanged}"
|
|
127
126
|
type="text"
|
|
128
|
-
placeholder="${
|
|
127
|
+
placeholder="${je(this.placeholderText?this.placeholderText:void 0)}"
|
|
129
128
|
.value="${this._value}"
|
|
130
|
-
size="${
|
|
131
|
-
pattern="${
|
|
129
|
+
size="${je(this.expectedLength?this.expectedLength:void 0)}"
|
|
130
|
+
pattern="${je(this.patternMask?this.patternMask:void 0)}"
|
|
132
131
|
?disabled="${this.disabled}"
|
|
133
132
|
?readonly="${this.readonly}"
|
|
134
|
-
/>`}textChanged(r){if(this.disabled||this.readonly)return;let
|
|
133
|
+
/>`}textChanged(r){if(this.disabled||this.readonly)return;let s=r.target;this.setEmptyAttribute(s.value),this._value!==s.value&&(this._value=s.value,this.saveResponse(s.value))}reset(){this._value=""}setEmptyAttribute(r){this.setAttribute("empty",r===""?"true":"false")}};E([x({type:Number,attribute:"expected-length"})],ke.prototype,"expectedLength",2),E([x({type:String,attribute:"pattern-mask"})],ke.prototype,"patternMask",2),E([x({type:String,attribute:"placeholder-text"})],ke.prototype,"placeholderText",2),E([Ge()],ke.prototype,"_value",2),E([x({type:String,attribute:"class"})],ke.prototype,"classNames",2),ke=E([H("qti-text-entry-interaction")],ke);var{I:$b}=Eo;var Co=e=>e.strings===void 0;var br={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Tr=e=>(...t)=>({_$litDirective$:e,values:t}),bt=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,r,s){this._$Ct=t,this._$AM=r,this._$Ci=s}_$AS(t,r){return this.update(t,r)}update(t,r){return this.render(...r)}};var gr=(e,t)=>{var r,s;let i=e._$AN;if(i===void 0)return!1;for(let a of i)(s=(r=a)._$AO)===null||s===void 0||s.call(r,t,!1),gr(a,t);return!0},Cs=e=>{let t,r;do{if((t=e._$AM)===void 0)break;r=t._$AN,r.delete(e),e=t}while((r==null?void 0:r.size)===0)},No=e=>{for(let t;t=e._$AM;e=t){let r=t._$AN;if(r===void 0)t._$AN=r=new Set;else if(r.has(e))break;r.add(e),El(t)}};function pl(e){this._$AN!==void 0?(Cs(this),this._$AM=e,No(this)):this._$AM=e}function ml(e,t=!1,r=0){let s=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(t)if(Array.isArray(s))for(let a=r;a<s.length;a++)gr(s[a],!1),Cs(s[a]);else s!=null&&(gr(s,!1),Cs(s));else gr(this,e)}var El=e=>{var t,r,s,i;e.type==br.CHILD&&((t=(s=e)._$AP)!==null&&t!==void 0||(s._$AP=ml),(r=(i=e)._$AQ)!==null&&r!==void 0||(i._$AQ=pl))},Ns=class extends bt{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,r,s){super._$AT(t,r,s),No(this),this.isConnected=t._$AU}_$AO(t,r=!0){var s,i;t!==this.isConnected&&(this.isConnected=t,t?(s=this.reconnected)===null||s===void 0||s.call(this):(i=this.disconnected)===null||i===void 0||i.call(this)),r&&(gr(this,t),Cs(this))}setValue(t){if(Co(this._$Ct))this._$Ct._$AI(t,this);else{let r=[...this._$Ct._$AH];r[this._$Ci]=t,this._$Ct._$AI(r,this,0)}}disconnected(){}reconnected(){}};var yo=()=>new zi,zi=class{},ji=new WeakMap,vo=Tr(class extends Ns{render(e){return q}update(e,[t]){var r;let s=t!==this.G;return s&&this.G!==void 0&&this.ot(void 0),(s||this.rt!==this.lt)&&(this.G=t,this.ct=(r=e.options)===null||r===void 0?void 0:r.host,this.ot(this.lt=e.element)),q}ot(e){var t;if(typeof this.G=="function"){let r=(t=this.ct)!==null&&t!==void 0?t:globalThis,s=ji.get(r);s===void 0&&(s=new WeakMap,ji.set(r,s)),s.get(this.G)!==void 0&&this.G.call(this.ct,void 0),s.set(this.G,e),e!==void 0&&this.G.call(this.ct,e)}else this.G.value=e}get rt(){var e,t,r;return typeof this.G=="function"?(t=ji.get((e=this.ct)!==null&&e!==void 0?e:globalThis))===null||t===void 0?void 0:t.get(this.G):(r=this.G)===null||r===void 0?void 0:r.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}});var Ne=class extends W{constructor(){super(...arguments);this.textareaRef=yo();this._value=""}handleclassNamesChange(r,s){this.classNames.split(" ").forEach(a=>{if(a.startsWith("qti-height-lines")){let o=a.replace("qti-height-lines-","");this.textareaRef&&(this.textareaRef.value.rows=parseInt(o))}})}set response(r){this._value=r!==void 0?r:""}validate(){return this._value!==""}static get styles(){return[Ft,M`
|
|
135
134
|
/* PK: display host as block, else design will be collapsed */
|
|
136
135
|
:host {
|
|
137
136
|
display: block;
|
|
@@ -141,38 +140,34 @@ Make sure to test your application with a production build as repeat registratio
|
|
|
141
140
|
width: 100%;
|
|
142
141
|
height: 100%;
|
|
143
142
|
}
|
|
144
|
-
`]}render(){return
|
|
143
|
+
`]}render(){return _`<textarea
|
|
145
144
|
part="textarea"
|
|
146
|
-
${
|
|
145
|
+
${vo(this.textareaRef)}
|
|
147
146
|
spellcheck="false"
|
|
148
147
|
autocomplete="off"
|
|
149
148
|
@keydown="${r=>r.stopImmediatePropagation()}"
|
|
150
149
|
@keyup="${this.textChanged}"
|
|
151
150
|
@change="${this.textChanged}"
|
|
152
|
-
placeholder="${
|
|
153
|
-
maxlength="${
|
|
154
|
-
pattern="${
|
|
151
|
+
placeholder="${je(this.placeholderText?this.placeholderText:void 0)}"
|
|
152
|
+
maxlength="${je(this.expectedLength?this.expectedLength:void 0)}"
|
|
153
|
+
pattern="${je(this.patternMask?this.patternMask:void 0)}"
|
|
155
154
|
?disabled="${this.disabled}"
|
|
156
155
|
?readonly="${this.readonly}"
|
|
157
156
|
.value=${this._value}
|
|
158
|
-
></textarea>`}textChanged(r){if(this.disabled||this.readonly)return;let
|
|
157
|
+
></textarea>`}textChanged(r){if(this.disabled||this.readonly)return;let s=r.target;this.setEmptyAttribute(s.value),this._value!==s.value&&(this._value=s.value,this.saveResponse(s.value))}reset(){this._value=""}setEmptyAttribute(r){this.setAttribute("empty",r===""?"true":"false")}};E([x({type:Number,attribute:"expected-length"})],Ne.prototype,"expectedLength",2),E([x({type:String,attribute:"pattern-mask"})],Ne.prototype,"patternMask",2),E([x({type:String,attribute:"placeholder-text"})],Ne.prototype,"placeholderText",2),E([Ge()],Ne.prototype,"_value",2),E([x({type:String,attribute:"class"})],Ne.prototype,"classNames",2),E([U("classNames",{waitUntilFirstUpdate:!0})],Ne.prototype,"handleclassNamesChange",1),Ne=E([H("qti-extended-text-interaction")],Ne);var ys=class extends se{render(){return _`<div part="ch"><div part="cha"></div></div>
|
|
158
|
+
<slot></slot> `}};ys=E([H("qti-hottext")],ys);var K=class extends W{constructor(){super();this._choiceElements=[];this.minChoices=0;this.maxChoices=1;this._handleDisabledChange=(r,s)=>this._choiceElements.forEach(i=>i.disabled=s);this._handleReadonlyChange=(r,s)=>this._choiceElements.forEach(i=>i.readonly=s);this._handleMaxChoicesChange=()=>this._determineInputType();this.addEventListener("qti-register-choice",this._registerChoiceElement),this.addEventListener("qti-loose-choice",this._looseChoiceElement)}reset(){this._choiceElements.forEach(r=>{r.reset()})}validate(){return this._choiceElements.reduce((s,i)=>s+(i.checked?1:0),0)>=this.minChoices}set response(r){this._choiceElements.forEach(i=>{i.checked=!1}),(Array.isArray(r)?r:[r]).forEach(i=>{let a=this.querySelector(`[identifier='${i}']`);a&&(a.checked=!0)})}connectedCallback(){super.connectedCallback(),this.addEventListener("qti-choice-element-selected",this._choiceElementSelectedHandler)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("qti-choice-element-selected",this._choiceElementSelectedHandler),this.removeEventListener("qti-register-choice",this._registerChoiceElement)}_registerChoiceElement(r){r.stopPropagation();let s=r.target;this._choiceElements.push(s),this._setInputType(s)}_looseChoiceElement(r){r.stopPropagation();let s=r.target;this._choiceElements.push(s),this._choiceElements=this._choiceElements.filter(i=>i!==s)}_determineInputType(){this._choiceElements.forEach(r=>{this._setInputType(r)})}_setInputType(r){this.maxChoices===1?r.setAttribute("role","radio"):r.setAttribute("role","checkbox")}_choiceElementSelectedHandler(r){this.maxChoices===1&&this._choiceElements.filter(s=>s.identifier!==r.detail.identifier).forEach(s=>{s.checked=!1}),this._choiceElementSelected()}_choiceElementSelected(){let r=this._choiceElements.filter(i=>i.checked).map(i=>i.identifier);this.maxChoices>1&&(this.maxChoices===r.length?this._choiceElements.forEach(i=>i.disabled=!i.checked):this._choiceElements.forEach(i=>i.disabled=!1));let s;this.maxChoices===1?s=r.length>0?r[0]:void 0:s=r,this.saveResponse(s)}};E([x({type:Number,attribute:"min-choices"})],K.prototype,"minChoices",2),E([x({type:Number,attribute:"max-choices"})],K.prototype,"maxChoices",2),E([U("disabled",{waitUntilFirstUpdate:!0})],K.prototype,"_handleDisabledChange",2),E([U("readonly",{waitUntilFirstUpdate:!0})],K.prototype,"_handleReadonlyChange",2),E([U("maxChoices",{waitUntilFirstUpdate:!0})],K.prototype,"_handleMaxChoicesChange",2);var Zi=class extends K{constructor(){super(...arguments);this.render=()=>_`<slot></slot>`}connectedCallback(){super.connectedCallback(),this.setAttribute("qti-hottext-interaction","")}};customElements.define("qti-hottext-interaction",Zi);var vs=class extends W{constructor(){super();this.options=[];this.addEventListener(Ya.ON_DROPDOWN_SELECTED,this.choiceSelected);let r=Array.from(this.querySelectorAll("qti-inline-choice"));this.options=[{textContent:"select",value:"",selected:!1},...r.map(s=>({textContent:s.innerHTML,value:s.getAttribute("identifier"),selected:!1}))]}static get properties(){return Y(I({},W.properties),{options:{type:Array,value:[],attribute:!1}})}connectedCallback(){super.connectedCallback()}static get styles(){return[Ft,M`
|
|
159
159
|
:host {
|
|
160
160
|
display: inline-block;
|
|
161
161
|
}
|
|
162
|
-
`]}render(){return
|
|
162
|
+
`]}render(){return _` <select
|
|
163
163
|
part="select"
|
|
164
164
|
@change="${this.choiceSelected}"
|
|
165
165
|
?disabled="${this.disabled}"
|
|
166
166
|
?readonly="${this.readonly}"
|
|
167
167
|
>
|
|
168
|
-
${this.options.map(r=>
|
|
169
|
-
</select>`}validate(){let r=this.options.find(
|
|
170
|
-
|
|
171
|
-
display: flex;
|
|
172
|
-
flex-direction: column;
|
|
173
|
-
align-items: flex-start;
|
|
174
|
-
}
|
|
175
|
-
`;var Tt=class extends Z{constructor(){super(...arguments);this.render=()=>v` <slot name="prompt"></slot><slot></slot>`}};Tt.styles=Io,g([y({type:String})],Tt.prototype,"orientation",2),Tt=g([V("qti-choice-interaction")],Tt);var Ro=`<qti-response-processing>
|
|
168
|
+
${this.options.map(r=>_` <option value="${r.value}" ?selected="${r.selected}">${r.textContent}</option> `)}
|
|
169
|
+
</select>`}validate(){let r=this.options.find(s=>s.selected);return r?r.value!=="":!1}reset(){this.options=this.options.map((r,s)=>Y(I({},r),{selected:s===0}))}set response(r){this.options=this.options.map(s=>(r===s.value&&(s.selected=!0),s))}choiceSelected(r){let s=r.target.value;this.options=this.options.map(i=>Y(I({},i),{selected:i.value===s})),this.saveResponse(s)}};vs.inputWidthClass=["","qti-input-width-2","qti-input-width-1","qti-input-width-3","qti-input-width-4","qti-input-width-6","qti-input-width-10","qti-input-width-15","qti-input-width-20","qti-input-width-72"];customElements.define("qti-inline-choice-interaction",vs);var So=M``;var Tt=class extends K{constructor(){super(...arguments);this.render=()=>_` <slot name="prompt"></slot><slot></slot>`}};Tt.styles=So,E([x({type:String})],Tt.prototype,"orientation",2),Tt=E([H("qti-choice-interaction")],Tt);var _r=class extends se{render(){return _`<div part="ch"><div part="cha"></div></div>
|
|
170
|
+
<slot></slot> `}};_r=E([H("qti-simple-choice")],_r);var Io=`<qti-response-processing>
|
|
176
171
|
<qti-response-condition>
|
|
177
172
|
<qti-response-if>
|
|
178
173
|
<qti-match>
|
|
@@ -189,7 +184,7 @@ Make sure to test your application with a production build as repeat registratio
|
|
|
189
184
|
</qti-set-outcome-value>
|
|
190
185
|
</qti-response-else>
|
|
191
186
|
</qti-response-condition>
|
|
192
|
-
</qti-response-processing>`,
|
|
187
|
+
</qti-response-processing>`,Ro=`<qti-response-processing>
|
|
193
188
|
<qti-response-condition>
|
|
194
189
|
<qti-response-if>
|
|
195
190
|
<qti-is-null>
|
|
@@ -205,7 +200,7 @@ Make sure to test your application with a production build as repeat registratio
|
|
|
205
200
|
</qti-set-outcome-value>
|
|
206
201
|
</qti-response-else>
|
|
207
202
|
</qti-response-condition>
|
|
208
|
-
</qti-response-processing>`,
|
|
203
|
+
</qti-response-processing>`,Lo=`<qti-response-processing>
|
|
209
204
|
<qti-response-condition>
|
|
210
205
|
<qti-response-if>
|
|
211
206
|
<qti-is-null>
|
|
@@ -221,15 +216,15 @@ Make sure to test your application with a production build as repeat registratio
|
|
|
221
216
|
</qti-set-outcome-value>
|
|
222
217
|
</qti-response-else>
|
|
223
218
|
</qti-response-condition>
|
|
224
|
-
</qti-response-processing>`;var $t=class extends N{render(){return v`<slot></slot>`}static get observedAttributes(){return["identifier"]}process(){if(this.getAttribute("template")){let r=this.getAttribute("template").split("/"),i=r[r.length-1].replace(".xml","");switch(this.innerHTML="",i){case"map_response":{this.appendChild(this.fragmentFromString(Lo));break}case"map_response_point":{this.appendChild(this.fragmentFromString(Do));break}case"match_correct":this.appendChild(this.fragmentFromString(Ro));break}}let t=[...this.children];for(let r of t)r.process()}fragmentFromString(t){return document.createRange().createContextualFragment(t)}};$t=g([V("qti-response-processing")],$t);var He=class extends N{render(){return v``}process(){throw new Error("Not implemented")}};He=g([V("qti-rule")],He);var ra=class extends He{render(){return v`<slot></slot>`}process(){let t=[...this.children];for(let r=0;r<t.length;r++){let i=t[r];if(i.calculate()){i.process();return}}}};customElements.define("qti-response-condition",ra);var ia=class extends He{process(){let t=this.getAttribute("identifier"),r=this.firstElementChild,i=r?r.calculate():null;if(i==null){console.warn("setOutcomeValue: value is null or undefined");return}this.closest("qti-assessment-item").setOutcomeValue(t,i)}};customElements.define("qti-set-outcome-value",ia);var vr=class extends N{static get properties(){return{debugCalculateResult:{type:Object}}}render(){return v` <slot></slot>`}calculate(){return!0}getSubRules(){return[...this.children]}process(){let t=this.getSubRules();for(let r=0;r<t.length;r++)t[r].process()}};customElements.define("qti-response-else",vr);var _r=class extends vr{render(){return v`${super.render()}`}calculate(){return this.firstElementChild.calculate()}getSubRules(){let t=[];for(let r=1;r<this.children.length;r++)t.push(this.children[r]);return t}};customElements.define("qti-response-if",_r);var sa=class extends _r{render(){return v`${super.render()}`}};customElements.define("qti-response-else-if",sa);var q=class extends N{constructor(){super(...arguments);this.getVariables=()=>Array.from(this.children).map(r=>{switch(r.tagName.toLowerCase()){case"qti-base-value":return{baseType:r.getAttribute("base-type"),value:r.textContent,cardinality:"single"};case"qti-variable":{let i=r.getAttribute("identifier")||"";return this.assessmentItem.getResponse(i)}case"qti-multiple":{let s=r.calculate();return s.length>0?{baseType:s[0].baseType,value:s.map(n=>n.value),cardinality:"multiple"}:null}case"qti-correct":{let i=r.getAttribute("identifier")||"",s=this.assessmentItem.getResponse(i);return{baseType:s.baseType,value:s.correctResponse,cardinality:s.cardinality}}default:return null}}).filter(r=>r!==null)}render(){return v``}calculate(){throw new Error("Not implemented")}get assessmentItem(){return this.closest("qti-assessment-item")}};customElements.define("qti-expression",q);var aa=class extends q{calculate(){if(this.children.length===2){let t=this.getVariables(),r=t[0],i=t[1];if(r.baseType===i.baseType&&(r.baseType==="integer"||r.baseType==="float"))return+r.value>+i.value;console.error("unexpected baseType or cardinality in qti gt")}return console.error("unexpected number of children in qt"),null}};customElements.define("qti-gt",aa);var Qe=class extends q{render(){return v``}calculate(){throw new Error("Not implemented")}};var na=class extends Qe{calculate(){if(this.children.length===2){let t=this.getVariables(),r=t[0],i=t[1];return r.baseType===i.baseType&&(r.baseType==="integer"||r.baseType==="float")?+r.value>=+i.value:(console.error("unexpected baseType or cardinality in qti gte"),null)}return console.log("unexpected number of children in qte"),null}};customElements.define("qti-gte",na);var oa=class extends Qe{render(){return v``}calculate(){return Array.from(this.children).map(r=>{let i=r;if(!i.calculate)return console.error("Element doesn't implement QtiConditionExpression"),null;let s=i.calculate();if(typeof s=="string")if(s==="true")s=!0;else if(s==="false")s=!1;else return console.error("unexpected value in qti-and, expected boolean"),null;return s}).every(r=>typeof r=="boolean"&&r)}};customElements.define("qti-and",oa);var ua=class extends Qe{render(){return v``}calculate(){return Array.from(this.children).map(r=>{let i=r;if(!i.calculate)return console.error("Element doesn't implement QtiConditionExpression"),null;let s=i.calculate();if(typeof s=="string")if(s==="true")s=!0;else if(s==="false")s=!1;else return console.error("unexpected value in qti-and, expected boolean"),null;return s}).some(r=>typeof r=="boolean"&&r)}};customElements.define("qti-or",ua);var Re=class{static compareSingleValues(t,r,i){switch(i){case"identifier":case"string":return t===r;case"integer":{let s=parseInt(t,10),n=parseInt(r,10);if(!isNaN(s)&&!isNaN(n))return s===n;console.error(`Cannot convert ${t} and/or ${r} to int.`);break}case"float":{let s=parseFloat(t),n=parseFloat(r);if(!isNaN(s)&&!isNaN(n))return s===n;console.error(`couldn't convert ${t} and/or ${r} to float.`);break}case"pair":case"directedPair":{let s=t.split(" ").sort(),n=r.split(" ").sort();if(s.length===2&&n.length===2)return i==="pair"&&(s.sort(),n.sort()),s.join(" ")===n.join(" ");console.error(`compared two pair but one of the values does not have 2 values: 1: ${t} 2: ${r}`);break}}return!1}};var Ni=class extends q{constructor(){super(...arguments);this.toleranceMode="exact"}calculate(){if(this.children.length===2){let r=this.getVariables(),i=r[0],s=r[1];return this.toleranceMode!=="exact"?(console.error("toleranceMode is not supported yet"),!1):i.cardinality!=="single"||s.cardinality!=="single"||Array.isArray(i.value)||Array.isArray(s.value)?(console.error("unexpected cardinality in qti equal"),!1):Re.compareSingleValues(i.value,s.value,i.baseType)}return console.error("unexpected number of children in qti-equal"),null}};g([y({type:String})],Ni.prototype,"toleranceMode",2);customElements.define("qti-equal",Ni);var Si=class extends q{constructor(){super(...arguments);this.roundingMode="significantFigures"}get figures(){if(!this.getAttribute("figures"))return console.error("figures attribute is missing"),null;let i=parseInt(this.getAttribute("figures")||"0");return isNaN(i)?(console.error("figures attribute is not a number"),null):i<0?(console.error("figures attribute is negative"),null):i<1&&this.roundingMode==="significantFigures"?(console.error("figures cannot be smaller than 1 for RoundingMode significantFigures"),null):i}calculate(){if(this.children.length===2){let r=this.getVariables(),i=r[0],s=r[1];if(this.roundingMode===null)return null;if(i.cardinality!=="single"||s.cardinality!=="single"||Array.isArray(i.value)||Array.isArray(s.value))return console.error("unexpected cardinality in qti equal"),!1;switch(r[0].baseType){case"integer":case"float":{let n=parseFloat(i.value),o=parseFloat(s.value);if(!isNaN(n)&&!isNaN(o))return this.roundingMode==="significantFigures"?n.toPrecision(this.figures)===o.toPrecision(this.figures):Math.round(n*Math.pow(10,this.figures))/Math.pow(10,this.figures)===Math.round(o*Math.pow(10,this.figures))/Math.pow(10,this.figures);console.error(`value cannot be casted to numeric value in equalRounded operator: ${n}, ${o}`);break}default:{console.error("values other than float and int cannot be used in equalRounded operator.");break}}return!1}return console.error("unexpected number of children in qti-equal-rounded"),null}};g([y({type:String})],Si.prototype,"roundingMode",2);customElements.define("qti-equal-rounded",Si);var Ii=class extends q{constructor(){super(...arguments);this.baseType="string"}calculate(){return this.textContent}};g([y({type:String})],Ii.prototype,"baseType",2);customElements.define("qti-base-value",Ii);var ca=class extends q{calculate(){let t=this.getVariables();if(this.children.length===2){let r=t[0],i=t[1];if(r.baseType==="directedPair"&&i.baseType==="directedPair"&&r.cardinality==="multiple"){let s=r.value,n=i.value;return s.filter(c=>n.includes(c)).length>0}else if(r.baseType==="directedPair"&&i.baseType==="directedPair"&&r.cardinality==="single"){let s=r.value;return i.value.includes(s)}else console.error("unsupported baseType or cardinality in qti contains, only baseType: directedPair and cardinality: multiple is supported")}else console.error("unexpected number of children in qti contains");return!1}};customElements.define("qti-contains",ca);var la=class extends q{render(){return v``}get interpretation(){return this.getAttribute("interpretation")||""}calculate(){let t=this.getAttribute("identifier")||"",r=this.closest("qti-assessment-item").getResponse(t);return r.correctResponse,r.cardinality!=="single"?r.correctResponse.length>0?r.correctResponse[0]:"":r.correctResponse}};customElements.define("qti-correct",la);var da=class extends q{calculate(){if(this.children.length===1){let t=this.getVariables();if(!t)return!0;let r=t[0].value;return r==null||r==null||r===""}return console.error("unexpected number of children in qti Null"),null}};customElements.define("qti-is-null",da);var Ri=class extends q{calculate(){let r=this.assessmentItem.getResponse(this.identifier);if(!r)return console.warn(`Response ${this.identifier} can not be found`),null;let i=r.mapping,s=Array.isArray(r.value)?r.value:[r.value],n=0;for(let o of s){let u=i.mapEntries.find(c=>Re.compareSingleValues(c.mapKey,o,r.baseType));u==null||u.mappedValue==null?n+=i.defaultValue:n+=u.mappedValue}return i.lowerBound!=null&&(n=Math.max(i.lowerBound,n)),i.upperBound!=null&&(n=Math.min(i.upperBound,n)),n}};g([y({type:String})],Ri.prototype,"identifier",2);customElements.define("qti-map-response",Ri);var ha=class extends q{calculate(){if(this.children.length===2){let t=this.getVariables(),r=t[0],i=t[1];if(i.cardinality==="single")return Array.isArray(r.value)||Array.isArray(i.value)?(console.error("unexpected cardinality in qti match"),!1):Re.compareSingleValues(r.value.toString(),i.value.toString(),i.baseType);{if(!Array.isArray(r.value)||!Array.isArray(i.value))return console.error("unexpected cardinality in qti match"),!1;if(r.value.length!==i.value.length)return!1;let s=0;for(let n of i.value){if(i.cardinality==="ordered"){let o=r[s];if(!Re.compareSingleValues(n,o,i.baseType))return!1}else{let o=null;for(let u of r.value)if(Re.compareSingleValues(n,u,i.baseType)){o=u;break}if(o!==null)r.value.splice(r.value.indexOf(o),1);else return!1}s++}return!0}}return console.error("unexpected number of children in match"),null}};customElements.define("qti-match",ha);var fa=class extends q{render(){return v``}calculate(){let t=this.getAttribute("identifier");return this.closest("qti-assessment-item").getVariableValue(t)}};customElements.define("qti-variable",fa);var pa=class extends q{calculate(){let t=this.getVariables();if(t.length===0)return console.error("unexpected number of children in qti multiple"),null;for(let r of t)if(r.cardinality!=="multiple"&&r.cardinality!=="single")return console.error("unexpected cardinality in qti multiple"),[];return t}};customElements.define("qti-multiple",pa);var ma=class extends q{calculate(){let t=this.getVariables();if(t.length===0)return console.error("unexpected number of children in qti multiple"),null;for(let r of t)if(r.cardinality!=="ordered"&&r.cardinality!=="single")return console.error("unexpected cardinality in qti ordered"),[];return t}};customElements.define("qti-ordered",ma);var Vt=class extends N{constructor(){super(...arguments);this.defaultValue=0}get mapEntries(){return Array.from(this.querySelectorAll("qti-map-entry")).map(r=>({mapKey:r.getAttribute("map-key"),mappedValue:+r.getAttribute("mapped-value")}))}};g([y({attribute:"default-value",type:Number})],Vt.prototype,"defaultValue",2),g([y({attribute:"lower-bound",type:Number})],Vt.prototype,"lowerBound",2),g([y({attribute:"upper-bound",type:Number})],Vt.prototype,"upperBound",2);customElements.define("qti-mapping",Vt);var ga=class extends N{constructor(){super(...arguments);this._errorMessage=null}static get properties(){return{responseIdentifier:{type:String,attribute:"response-identifier"},module:{type:String,attribute:"module"},customInteractionTypeIdentifier:{type:String,attribute:"custom-interaction-type-identifier"},baseUrl:{type:String,attribute:"base-url"},_errorMessage:{type:String,state:!0}}}getTAOConfig(r){let i=r.querySelectorAll("properties"),s={},n=u=>{let c={},h=u.getAttribute("key");if(h){let p=Array.from(u.children),T=p.map(_=>_.getAttribute("key"));T.length>0&&!T.find(_=>!Number.isInteger(+_))?c[h]=p.map(_=>o(_)):c[h]=u.textContent}return c},o=u=>{if(u){let c={};for(let h of u.children)c=R(R({},c),n(h));return c}};for(let u of i)return u.getAttribute("key")||(s=R(R({},s),o(u))),s;console.log("Can not find qti-custom-interaction config")}register(r){let i=this.parentElement.tagName==="QTI-CUSTOM-INTERACTION"?"TAO":"IMS",s=i=="IMS"?this.querySelector("qti-interaction-markup"):this.querySelector("markup");s.classList.add("qti-customInteraction"),i=="TAO"&&this.querySelector("properties")&&(this.querySelector("properties").style.display="none");let n=i=="IMS"?{properties:this.dataset}:this.getTAOConfig(this);i=="IMS"?r.getInstance(s,n,void 0):r.initialize(this.customInteractionTypeIdentifier,s.firstElementChild,n),i=="TAO"&&Array.from(this.querySelectorAll("link")).map(u=>u.getAttribute("href")).forEach(u=>{let c=document.createElement("link");c.rel="stylesheet",c.type="text/css",c.media="screen",c.href=u,s.appendChild(c)})}connectedCallback(){super.connectedCallback();let r={context:this.customInteractionTypeIdentifier,baseUrl:this.baseUrl,catchError:!0};if(window.requirePaths&&window.requireShim&&(r.paths=window.requirePaths,r.shim=window.requireShim),!globalThis.require){this._errorMessage="requirejs not found, load with cdn: https://cdnjs.com/libraries/require.js";return}requirejs.config(r)(["require"],s=>{define("qtiCustomInteractionContext",()=>({register:n=>{this.register(n)},notifyReady:()=>{}})),s([this.module],()=>{},n=>{this._errorMessage=n})},s=>{this._errorMessage=s})}render(){return v`<slot></slot>${this._errorMessage&&v`<div style="color:red">
|
|
219
|
+
</qti-response-processing>`;var qt=class extends v{render(){return _`<slot></slot>`}static get observedAttributes(){return["identifier"]}process(){if(this.getAttribute("template")){let r=this.getAttribute("template").split("/"),s=r[r.length-1].replace(".xml","");switch(this.innerHTML="",s){case"map_response":{this.appendChild(this.fragmentFromString(Ro));break}case"map_response_point":{this.appendChild(this.fragmentFromString(Lo));break}case"match_correct":this.appendChild(this.fragmentFromString(Io));break}}let t=[...this.children];for(let r of t)r.process()}fragmentFromString(t){return document.createRange().createContextualFragment(t)}};qt=E([H("qti-response-processing")],qt);var we=class extends v{render(){return _``}process(){throw new Error("Not implemented")}};we=E([H("qti-rule")],we);var Ji=class extends we{render(){return _`<slot></slot>`}process(){let t=[...this.children];for(let r=0;r<t.length;r++){let s=t[r];if(s.calculate()){s.process();return}}}};customElements.define("qti-response-condition",Ji);var en=class extends we{process(){let t=this.getAttribute("identifier"),r=this.firstElementChild,s=r?r.calculate():null;if(s==null){console.warn("setOutcomeValue: value is null or undefined");return}this.closest("qti-assessment-item").setOutcomeValue(t,s)}};customElements.define("qti-set-outcome-value",en);var Ar=class extends v{static get properties(){return{debugCalculateResult:{type:Object}}}render(){return _` <slot></slot>`}calculate(){return!0}getSubRules(){return[...this.children]}process(){let t=this.getSubRules();for(let r=0;r<t.length;r++)t[r].process()}};customElements.define("qti-response-else",Ar);var xr=class extends Ar{render(){return _`${super.render()}`}calculate(){return this.firstElementChild.calculate()}getSubRules(){let t=[];for(let r=1;r<this.children.length;r++)t.push(this.children[r]);return t}};customElements.define("qti-response-if",xr);var tn=class extends xr{render(){return _`${super.render()}`}};customElements.define("qti-response-else-if",tn);var w=class extends v{constructor(){super(...arguments);this.getVariables=()=>Array.from(this.children).map(r=>{switch(r.tagName.toLowerCase()){case"qti-base-value":return{baseType:r.getAttribute("base-type"),value:r.textContent,cardinality:"single"};case"qti-variable":{let s=r.getAttribute("identifier")||"";return this.assessmentItem.getResponse(s)}case"qti-multiple":{let i=r.calculate();return i.length>0?{baseType:i[0].baseType,value:i.map(a=>a.value),cardinality:"multiple"}:null}case"qti-correct":{let s=r.getAttribute("identifier")||"",i=this.assessmentItem.getResponse(s);return{baseType:i.baseType,value:i.correctResponse,cardinality:i.cardinality}}default:return null}}).filter(r=>r!==null)}render(){return _``}calculate(){throw new Error("Not implemented")}get assessmentItem(){return this.closest("qti-assessment-item")}};customElements.define("qti-expression",w);var rn=class extends w{calculate(){if(this.children.length===2){let t=this.getVariables(),r=t[0],s=t[1];if(r.baseType===s.baseType&&(r.baseType==="integer"||r.baseType==="float"))return+r.value>+s.value;console.error("unexpected baseType or cardinality in qti gt")}return console.error("unexpected number of children in qt"),null}};customElements.define("qti-gt",rn);var ze=class extends w{render(){return _``}calculate(){throw new Error("Not implemented")}};var sn=class extends ze{calculate(){if(this.children.length===2){let t=this.getVariables(),r=t[0],s=t[1];return r.baseType===s.baseType&&(r.baseType==="integer"||r.baseType==="float")?+r.value>=+s.value:(console.error("unexpected baseType or cardinality in qti gte"),null)}return console.log("unexpected number of children in qte"),null}};customElements.define("qti-gte",sn);var nn=class extends ze{render(){return _``}calculate(){return Array.from(this.children).map(r=>{let s=r;if(!s.calculate)return console.error("Element doesn't implement QtiConditionExpression"),null;let i=s.calculate();if(typeof i=="string")if(i==="true")i=!0;else if(i==="false")i=!1;else return console.error("unexpected value in qti-and, expected boolean"),null;return i}).every(r=>typeof r=="boolean"&&r)}};customElements.define("qti-and",nn);var an=class extends ze{render(){return _``}calculate(){return Array.from(this.children).map(r=>{let s=r;if(!s.calculate)return console.error("Element doesn't implement QtiConditionExpression"),null;let i=s.calculate();if(typeof i=="string")if(i==="true")i=!0;else if(i==="false")i=!1;else return console.error("unexpected value in qti-and, expected boolean"),null;return i}).some(r=>typeof r=="boolean"&&r)}};customElements.define("qti-or",an);var ye=class{static compareSingleValues(t,r,s){switch(s){case"identifier":case"string":return t===r;case"integer":{let i=parseInt(t,10),a=parseInt(r,10);if(!isNaN(i)&&!isNaN(a))return i===a;console.error(`Cannot convert ${t} and/or ${r} to int.`);break}case"float":{let i=parseFloat(t),a=parseFloat(r);if(!isNaN(i)&&!isNaN(a))return i===a;console.error(`couldn't convert ${t} and/or ${r} to float.`);break}case"pair":case"directedPair":{let i=t.split(" ").sort(),a=r.split(" ").sort();if(i.length===2&&a.length===2)return s==="pair"&&(i.sort(),a.sort()),i.join(" ")===a.join(" ");console.error(`compared two pair but one of the values does not have 2 values: 1: ${t} 2: ${r}`);break}}return!1}};var Ss=class extends w{constructor(){super(...arguments);this.toleranceMode="exact"}calculate(){if(this.children.length===2){let r=this.getVariables(),s=r[0],i=r[1];return this.toleranceMode!=="exact"?(console.error("toleranceMode is not supported yet"),!1):s.cardinality!=="single"||i.cardinality!=="single"||Array.isArray(s.value)||Array.isArray(i.value)?(console.error("unexpected cardinality in qti equal"),!1):ye.compareSingleValues(s.value,i.value,s.baseType)}return console.error("unexpected number of children in qti-equal"),null}};E([x({type:String})],Ss.prototype,"toleranceMode",2);customElements.define("qti-equal",Ss);var Is=class extends w{constructor(){super(...arguments);this.roundingMode="significantFigures"}get figures(){if(!this.getAttribute("figures"))return console.error("figures attribute is missing"),null;let s=parseInt(this.getAttribute("figures")||"0");return isNaN(s)?(console.error("figures attribute is not a number"),null):s<0?(console.error("figures attribute is negative"),null):s<1&&this.roundingMode==="significantFigures"?(console.error("figures cannot be smaller than 1 for RoundingMode significantFigures"),null):s}calculate(){if(this.children.length===2){let r=this.getVariables(),s=r[0],i=r[1];if(this.roundingMode===null)return null;if(s.cardinality!=="single"||i.cardinality!=="single"||Array.isArray(s.value)||Array.isArray(i.value))return console.error("unexpected cardinality in qti equal"),!1;switch(r[0].baseType){case"integer":case"float":{let a=parseFloat(s.value),o=parseFloat(i.value);if(!isNaN(a)&&!isNaN(o))return this.roundingMode==="significantFigures"?a.toPrecision(this.figures)===o.toPrecision(this.figures):Math.round(a*Math.pow(10,this.figures))/Math.pow(10,this.figures)===Math.round(o*Math.pow(10,this.figures))/Math.pow(10,this.figures);console.error(`value cannot be casted to numeric value in equalRounded operator: ${a}, ${o}`);break}default:{console.error("values other than float and int cannot be used in equalRounded operator.");break}}return!1}return console.error("unexpected number of children in qti-equal-rounded"),null}};E([x({type:String})],Is.prototype,"roundingMode",2);customElements.define("qti-equal-rounded",Is);var Rs=class extends w{constructor(){super(...arguments);this.baseType="string"}calculate(){return this.textContent}};E([x({type:String})],Rs.prototype,"baseType",2);customElements.define("qti-base-value",Rs);var on=class extends w{calculate(){let t=this.getVariables();if(this.children.length===2){let r=t[0],s=t[1];if(r.baseType==="directedPair"&&s.baseType==="directedPair"&&r.cardinality==="multiple"){let i=r.value,a=s.value;return i.filter(c=>a.includes(c)).length>0}else if(r.baseType==="directedPair"&&s.baseType==="directedPair"&&r.cardinality==="single"){let i=r.value;return s.value.includes(i)}else console.error("unsupported baseType or cardinality in qti contains, only baseType: directedPair and cardinality: multiple is supported")}else console.error("unexpected number of children in qti contains");return!1}};customElements.define("qti-contains",on);var un=class extends w{render(){return _``}get interpretation(){return this.getAttribute("interpretation")||""}calculate(){let t=this.getAttribute("identifier")||"",r=this.closest("qti-assessment-item").getResponse(t);return r.correctResponse,r.cardinality!=="single"?r.correctResponse.length>0?r.correctResponse[0]:"":r.correctResponse}};customElements.define("qti-correct",un);var cn=class extends w{calculate(){if(this.children.length===1){let t=this.getVariables();if(!t)return!0;let r=t[0].value;return r==null||r==null||r===""}return console.error("unexpected number of children in qti Null"),null}};customElements.define("qti-is-null",cn);var Ls=class extends w{calculate(){let r=this.assessmentItem.getResponse(this.identifier);if(!r)return console.warn(`Response ${this.identifier} can not be found`),null;let s=r.mapping,i=Array.isArray(r.value)?r.value:[r.value],a=0;for(let o of i){let u=s.mapEntries.find(c=>ye.compareSingleValues(c.mapKey,o,r.baseType));u==null||u.mappedValue==null?a+=s.defaultValue:a+=u.mappedValue}return s.lowerBound!=null&&(a=Math.max(s.lowerBound,a)),s.upperBound!=null&&(a=Math.min(s.upperBound,a)),a}};E([x({type:String})],Ls.prototype,"identifier",2);customElements.define("qti-map-response",Ls);var ln=class extends w{calculate(){if(this.children.length===2){let t=this.getVariables(),r=t[0],s=t[1];if(s.cardinality==="single")return Array.isArray(r.value)||Array.isArray(s.value)?(console.error("unexpected cardinality in qti match"),!1):ye.compareSingleValues(r.value.toString(),s.value.toString(),s.baseType);{if(!Array.isArray(r.value)||!Array.isArray(s.value))return console.error("unexpected cardinality in qti match"),!1;if(r.value.length!==s.value.length)return!1;let i=0;for(let a of s.value){if(s.cardinality==="ordered"){let o=r[i];if(!ye.compareSingleValues(a,o,s.baseType))return!1}else{let o=null;for(let u of r.value)if(ye.compareSingleValues(a,u,s.baseType)){o=u;break}if(o!==null)r.value.splice(r.value.indexOf(o),1);else return!1}i++}return!0}}return console.error("unexpected number of children in match"),null}};customElements.define("qti-match",ln);var dn=class extends w{render(){return _``}calculate(){let t=this.getAttribute("identifier");return this.closest("qti-assessment-item").getVariableValue(t)}};customElements.define("qti-variable",dn);var hn=class extends w{calculate(){let t=this.getVariables();if(t.length===0)return console.error("unexpected number of children in qti multiple"),null;for(let r of t)if(r.cardinality!=="multiple"&&r.cardinality!=="single")return console.error("unexpected cardinality in qti multiple"),[];return t}};customElements.define("qti-multiple",hn);var fn=class extends w{calculate(){let t=this.getVariables();if(t.length===0)return console.error("unexpected number of children in qti multiple"),null;for(let r of t)if(r.cardinality!=="ordered"&&r.cardinality!=="single")return console.error("unexpected cardinality in qti ordered"),[];return t}};customElements.define("qti-ordered",fn);var $t=class extends v{constructor(){super(...arguments);this.defaultValue=0}get mapEntries(){return Array.from(this.querySelectorAll("qti-map-entry")).map(r=>({mapKey:r.getAttribute("map-key"),mappedValue:+r.getAttribute("mapped-value")}))}};E([x({attribute:"default-value",type:Number})],$t.prototype,"defaultValue",2),E([x({attribute:"lower-bound",type:Number})],$t.prototype,"lowerBound",2),E([x({attribute:"upper-bound",type:Number})],$t.prototype,"upperBound",2);customElements.define("qti-mapping",$t);var pn=class extends v{constructor(){super(...arguments);this._errorMessage=null}static get properties(){return{responseIdentifier:{type:String,attribute:"response-identifier"},module:{type:String,attribute:"module"},customInteractionTypeIdentifier:{type:String,attribute:"custom-interaction-type-identifier"},baseUrl:{type:String,attribute:"base-url"},_errorMessage:{type:String,state:!0}}}getTAOConfig(r){let s=r.querySelectorAll("properties"),i={},a=u=>{let c={},h=u.getAttribute("key");if(h){let p=Array.from(u.children),g=p.map(y=>y.getAttribute("key"));g.length>0&&!g.find(y=>!Number.isInteger(+y))?c[h]=p.map(y=>o(y)):c[h]=u.textContent}return c},o=u=>{if(u){let c={};for(let h of u.children)c=I(I({},c),a(h));return c}};for(let u of s)return u.getAttribute("key")||(i=I(I({},i),o(u))),i;console.log("Can not find qti-custom-interaction config")}register(r){let s=this.parentElement.tagName==="QTI-CUSTOM-INTERACTION"?"TAO":"IMS",i=s=="IMS"?this.querySelector("qti-interaction-markup"):this.querySelector("markup");i.classList.add("qti-customInteraction"),s=="TAO"&&this.querySelector("properties")&&(this.querySelector("properties").style.display="none");let a=s=="IMS"?{properties:this.dataset}:this.getTAOConfig(this);s=="IMS"?r.getInstance(i,a,void 0):r.initialize(this.customInteractionTypeIdentifier,i.firstElementChild,a),s=="TAO"&&Array.from(this.querySelectorAll("link")).map(u=>u.getAttribute("href")).forEach(u=>{let c=document.createElement("link");c.rel="stylesheet",c.type="text/css",c.media="screen",c.href=u,i.appendChild(c)})}connectedCallback(){super.connectedCallback();let r={context:this.customInteractionTypeIdentifier,baseUrl:this.baseUrl,catchError:!0};window.requirePaths&&window.requireShim&&(r.paths=window.requirePaths,r.shim=window.requireShim),requirejs.config(r)(["require"],i=>{define("qtiCustomInteractionContext",()=>({register:a=>{this.register(a)},notifyReady:()=>{}})),i([this.module],()=>{},a=>{this._errorMessage=a})},i=>{this._errorMessage=i})}render(){return _`<slot></slot>${this._errorMessage&&_`<div style="color:red">
|
|
225
220
|
<h1>Error</h1>
|
|
226
221
|
${this._errorMessage}
|
|
227
|
-
</div>`}`}};customElements.define("qti-portable-custom-interaction",ga);var je=class{constructor(){this._touchBegin=0;this._touchDown=null;this._lastClick=0;this._canDrag=!1;this._dragSrc=null;this._dragCopy=null;this._touchEndCalled=!1;this._dragRunning=!1;this._dataTransfer={data:{},setData:function(t,r){this.data[t]=r},getData:function(t){return this.data[t]},effectAllowed:"move"};this._copyOffset={x:0,y:0};this._lastTarget=null;this._currentDropContainer=null;this._handleClick=!0;this._DBLCLICKDELAY=500;this._CONTEXTMENUDELAY=1e3;this._DRAGDELTA=5;this._COPYOPACITY=.7;this.copyStylesDragClone=!0;this.dragOnClick=!1;this._createDragCopy=(t,r)=>{if(this._dragCopy===null&&this._dragRunning){this._dragSrc.style.opacity=this._COPYOPACITY,this._dragCopy=this._dragSrc.cloneNode(!0);let i=window.getComputedStyle(this._dragSrc);if(this._dragCopy.style="",this._dragCopy.setAttribute("dragclone",""),this.copyStylesDragClone)for(let s of i)this._dragCopy.style[s]=i.getPropertyValue(s);this._calculateDragCopyPosition(r),this._dragCopy.style.top=r.clientY-this._copyOffset.y+"px",this._dragCopy.style.left=r.clientX-this._copyOffset.x+"px",this._dragCopy.style.position="fixed",this._dragCopy.style.pointerEvents="none",this._dragCopy.style.zIndex="999999",this._dragCopy=document.body.appendChild(this._dragCopy),this._dispatchEvent(this._dragSrc,"dragstart")}if(this._dragRunning){let i=this;requestAnimationFrame(function(){i._touchEndCalled||i._dragCopy===null||(i._dragCopy.style.top=r.clientY-i._copyOffset.y+"px",i._dragCopy.style.left=r.clientX-i._copyOffset.x+"px")});let s=this._findDroppable(t);s!=this._lastTarget&&(this._dispatchEvent(s,"dragenter"),this._dispatchEvent(this._lastTarget,"dragleave"),this._lastTarget=s),this._currentDropContainer=s,this._currentDropContainer&&this._dispatchEvent(s,"dragover")}};return je._instance?je._instance:(je._instance=this,document.addEventListener("touchmove",this._touchMove.bind(this),{passive:!1,capture:!1}),document.addEventListener("mousemove",this._touchMove.bind(this),{passive:!1,capture:!1}),document.addEventListener("touchend",this._touchEnd.bind(this),{passive:!1,capture:!1}),document.addEventListener("mouseup",this._touchEnd.bind(this),{passive:!1,capture:!1}),document.addEventListener("touchcancel",this._touchCancel.bind(this),{passive:!1,capture:!1}),this)}addDraggables(t){t.forEach(r=>{r.addEventListener("touchstart",this._touchStart.bind(this),{passive:!1,capture:!1}),r.addEventListener("mousedown",this._touchStart.bind(this),{passive:!1,capture:!1})})}_touchStart(t){this._touchBegin=Date.now();let{x:r,y:i}=this._getPositionFromEvent(t);if(this._touchDown={x:r,y:i},this._dragSrc=t.currentTarget,this._canDrag=!0,this.dragOnClick){let s={clientX:r,clientY:i};this._dragRunning=!0,this._createDragCopy(t,s)}t.preventDefault()}_touchMove(t){if(this._canDrag&&this._dragSrc){let{x:r,y:i}=this._getPositionFromEvent(t),s={clientX:r,clientY:i};this._getDelta(s)>=this._DRAGDELTA&&(this._dragRunning=!0),this._createDragCopy(t,s),t.preventDefault()}}_touchEnd(t){var r;if(this._touchEndCalled=!0,this._canDrag=!1,this._currentDropContainer)this._dispatchEvent(this._currentDropContainer,"drop"),this._dispatchEvent(this._dragSrc,"dragend");else if(this._dragRunning){let i=new CustomEvent("dragend",{bubbles:!0,cancelable:!0});i.dataTransfer={dropEffect:"none"},(r=this._dragSrc)==null||r.dispatchEvent(i)}this._reset()}_touchCancel(t){this._reset()}_findDroppable(t){let r,i=t.composedPath().find(s=>{if(s.nodeType===1&&s.nodeName!=="SLOT"&&s.hasAttribute("dropzone"))return s});if(i){let s=i.getRootNode(),n=this._getPoint(t);r=s.elementFromPoint(n.x,n.y)}return r}_getPoint(t,r){return t&&t.touches&&(t=t.touches[0]),{x:r?t.pageX:t.clientX,y:r?t.pageY:t.clientY}}_calculateDragCopyPosition(t){let r=this._dragSrc.getBoundingClientRect();this._copyOffset.x=t.clientX-r.left,this._copyOffset.y=t.clientY-r.top}_getDelta(t){let r=Math.abs(t.clientX-this._touchDown.x),i=Math.abs(t.clientY-this._touchDown.y);return r+i}_dispatchEvent(t,r,i=!0){if(!t)return!1;let s=new CustomEvent(r,{bubbles:i,cancelable:!0});return s.dataTransfer=this._dataTransfer,t.dispatchEvent(s),s.defaultPrevented}_reset(){this._dragRunning&&(this._dragSrc.style.opacity="1.0",this._dragCopy.parentElement.removeChild(this._dragCopy)),this._dragRunning=!1,this._dragSrc=null,this._dragCopy=null,this._canDrag=!1,this._touchBegin=0,this._touchDown=null,this._lastClick=0,this._touchEndCalled=!1,this._dataTransfer={data:{},setData:function(t,r){this.data[t]=r},getData:function(t){return this.data[t]},effectAllowed:"move"},this._copyOffset={x:0,y:0},this._lastTarget=null,this._currentDropContainer=null,this._handleClick=!0}_getPositionFromEvent(t){let r;if(t.type=="touchstart"||t.type=="touchmove"||t.type=="touchend"||t.type=="touchcancel"){let i=typeof t.originalEvent=="undefined"?t:t.originalEvent,s=i.touches[0]||i.changedTouches[0];r={x:s.pageX,y:s.pageY}}else(t.type=="mousedown"||t.type=="mouseup"||t.type=="mousemove"||t.type=="mouseover"||t.type=="mouseout"||t.type=="mouseenter"||t.type=="mouseleave")&&(r={x:t.clientX,y:t.clientY});return r}};var Oo=(e,t,r)=>{class i extends e{constructor(){super(...arguments);this.disabled=!1}firstUpdated(o){if(this.classList.contains("qti-match-tabular"))return;super.firstUpdated(o);let u=Array.from(t?this.shadowRoot.querySelectorAll(r):this.querySelectorAll(r));this.dragoverHandler=this.dragoverHandler.bind(this),this.dragleaveHandler=this.dragleaveHandler.bind(this),this.dropHandler=this.dropHandler.bind(this),u.forEach(c=>{c.setAttribute("dropzone","move"),c.addEventListener("dragleave",this.dragleaveHandler),this.attachHandler(c)});for(let c of u)this.observer=new MutationObserver(h=>{h.forEach(p=>{if(p.type==="attributes")switch(p.attributeName){case"disabled":{c.hasAttribute("disabled")?this.removeHandler(c):this.attachHandler(c);break}}})}),this.observer.observe(c,{attributes:!0})}attachHandler(o){o.addEventListener("dragover",this.dragoverHandler),o.addEventListener("drop",this.dropHandler)}removeHandler(o){o.removeEventListener("dragover",this.dragoverHandler),o.removeEventListener("drop",this.dropHandler)}disconnectedCallback(){var o;this.classList.contains("qti-match-tabular")||(super.disconnectedCallback(),(o=this.observer)==null||o.disconnect())}dragoverHandler(o){return o.preventDefault(),o.currentTarget.setAttribute("active",""),o.dataTransfer.dropEffect="move",!1}dropHandler(o){o.preventDefault();let u=o.currentTarget,c=this.querySelector(`[identifier=${o.dataTransfer.getData("text")}`),h=c||this.shadowRoot.querySelector(`[identifier=${o.dataTransfer.getData("text")}`);return u?h.parentElement.getAttribute("identifier")!==u.getAttribute("identifier")&&u.appendChild(h):console.error(`cannot find droppable, target: ${o.target?JSON.stringify(o.target):"null"}`),u.removeAttribute("active"),!1}dragleaveHandler(o){return o.preventDefault(),o.currentTarget.removeAttribute("active"),!1}}return g([y({type:Boolean,reflect:!0})],i.prototype,"disabled",2),i};var ko=(e,t,r)=>{class i extends e{}return i};function Mo(e,t){let r,i=R({},t);return(s,n)=>{let{connectedCallback:o,disconnectedCallback:u}=s;s.connectedCallback=function(){var p;o.call(this);let c=T=>{let x=Array.from(this.querySelectorAll(e));for(let _ of T){let C=Array.from(_.addedNodes).map(P=>P),I=Array.from(_.addedNodes).map(P=>P);_.type==="childList"&&C.find(P=>x.includes(P))&&this[n](C,I)}};r=new MutationObserver(c),r.observe(this,{childList:!0,subtree:!0});let h=(p=this.querySelectorAll(e))!=null?p:[];this[n](Array.from(h),[])},s.disconnectedCallback=function(){u.call(this),r.disconnect()}}}var Le=(e,t,r,i)=>{class s extends ko(Oo(e,r,i),i,t){constructor(){super(...arguments);this.draggables=new Map;this.responseIdentifier="";this.configuration={copyStylesDragClone:!0,dragCanBePlacedBack:!0,dragOnClick:!1};this.disabled=!1;this.readonly=!1;this.minAssociations=1;this.maxAssociations=1}reInitDragAndDrop(u,c){if(this.classList.contains("qti-match-tabular"))return;u.filter(p=>!this.draggables||!this.draggables.get(p)).length>0&&(this.dragDropApi.addDraggables(u),u.forEach(p=>{this.draggables.set(p,{parent:p.parentElement,index:Array.from(p.parentNode.children).indexOf(p)}),p.setAttribute("qti-draggable","true"),p.addEventListener("dragstart",T=>{T.dataTransfer.setData("text",T.currentTarget.getAttribute("identifier")),p.setAttribute("dragging","")}),p.addEventListener("dragend",T=>{if(T.preventDefault(),p.removeAttribute("over"),p.removeAttribute("dragging"),T.dataTransfer.dropEffect==="none"&&this.configuration.dragCanBePlacedBack){let x=T.currentTarget,_=this.draggables.get(x),C=_.index<_.parent.children.length?_.index:_.parent.children.length-1,I=_.parent,P=_.parent.children[C];I.insertBefore(x,P),this.saveResponse(),this.checkMaxMatchAssociations()}T.dataTransfer.dropEffect==="move"&&(this.saveResponse(),this.checkMaxMatchAssociations())})}))}handleDragOptionsChanged(u,c){this.dragDropApi.copyStylesDragClone=c.copyStylesDragClone,this.dragDropApi.dragOnClick=c.dragOnClick}handleDisabledChange(u,c){this.draggables.forEach((h,p)=>{c?p.setAttribute("disabled",""):p.removeAttribute("disabled"),c?p.removeAttribute("qti-draggable"):p.setAttribute("qti-draggable","true")})}handleReadonlyChange(u,c){this.draggables.forEach((h,p)=>{c?p.setAttribute("readonly",""):p.removeAttribute("readonly"),c?p.removeAttribute("qti-draggable"):p.setAttribute("qti-draggable","true")})}firstUpdated(u){super.firstUpdated(u),this.droppables=Array.from(r?this.shadowRoot.querySelectorAll(i):this.querySelectorAll(i))}connectedCallback(){super.connectedCallback(),this.dragDropApi=new je,this.dispatchEvent(new CustomEvent("qti-register-interaction",{bubbles:!0,composed:!0,detail:this}))}reset(u=!0){this.draggables.forEach((c,h)=>{let p=c.parent.children,T=c.index<p.length?c.index:p.length;c.parent.insertBefore(h,p[T])}),u&&this.saveResponse()}checkMaxMatchAssociations(){this.droppables.forEach(u=>{let h=+(u.getAttribute("match-max")||1)<=(u.children.length||0);h?u.setAttribute("disabled",""):u.removeAttribute("disabled"),h?u.removeAttribute("dropzone"):u.setAttribute("dropzone","move")})}set response(u){this.classList.contains("qti-match-tabular")||(this.reset(!1),u!==null&&Array.isArray(u)&&u.forEach(c=>{let[h,...p]=c.split(" ").reverse();if(h){let T=this.droppables.find(x=>x.getAttribute("identifier")===h);p.forEach(x=>{let _=this.querySelector(`[identifier=${x}]`);T?_?(T.appendChild(_),this.checkMaxMatchAssociations()):console.error(`cannot find draggable with identifier: ${x}`):console.error(`cannot find droppable with identifier: ${h}`)})}}))}validate(){let c=(r?Array.from(this.shadowRoot.querySelectorAll(i)):Array.from(this.querySelectorAll(i))).filter(h=>h.childElementCount>0).length;return this.minAssociations<=0||this.minAssociations<=c}saveResponse(){let u=this.droppables.map(c=>{var p;let h="";return((p=c.children)==null?void 0:p.length)>0&&(h+=Array.from(c.children).map(T=>T.getAttribute("identifier")).join(" ")+" "),h+=c.getAttribute("identifier"),h});this.dispatchEvent(new CustomEvent("qti-interaction-response",{bubbles:!0,composed:!0,detail:{responseIdentifier:this.responseIdentifier,response:u}}))}}return g([Mo(t)],s.prototype,"reInitDragAndDrop",1),g([y({type:String,attribute:"response-identifier"})],s.prototype,"responseIdentifier",2),g([y({attribute:!1,type:Object})],s.prototype,"configuration",2),g([Y("configuration")],s.prototype,"handleDragOptionsChanged",1),g([y({type:Boolean,reflect:!0})],s.prototype,"disabled",2),g([Y("disabled",{waitUntilFirstUpdate:!0})],s.prototype,"handleDisabledChange",1),g([y({type:Boolean,reflect:!0})],s.prototype,"readonly",2),g([Y("readonly",{waitUntilFirstUpdate:!0})],s.prototype,"handleReadonlyChange",1),g([y({type:Number,reflect:!0,attribute:"min-associations"})],s.prototype,"minAssociations",2),g([y({type:Number,reflect:!0,attribute:"max-associations"})],s.prototype,"maxAssociations",2),s};var Ar=class extends Le(N,"qti-simple-associable-choice",!0,".dl"){render(){return v` <slot name="prompt"></slot>
|
|
222
|
+
</div>`}`}};customElements.define("qti-portable-custom-interaction",pn);var Ze=class{constructor(){this._touchBegin=0;this._touchDown=null;this._lastClick=0;this._canDrag=!1;this._dragSrc=null;this._dragCopy=null;this._touchEndCalled=!1;this._dragRunning=!1;this._dataTransfer={data:{},setData:function(t,r){this.data[t]=r},getData:function(t){return this.data[t]},effectAllowed:"move"};this._copyOffset={x:0,y:0};this._lastTarget=null;this._currentDropContainer=null;this._handleClick=!0;this._DBLCLICKDELAY=500;this._CONTEXTMENUDELAY=1e3;this._DRAGDELTA=5;this._COPYOPACITY=.7;this.copyStylesDragClone=!0;this.dragOnClick=!1;this._createDragCopy=(t,r)=>{if(this._dragCopy===null&&this._dragRunning){this._dragSrc.style.opacity=this._COPYOPACITY,this._dragCopy=this._dragSrc.cloneNode(!0);let s=window.getComputedStyle(this._dragSrc);if(this._dragCopy.style="",this._dragCopy.setAttribute("dragclone",""),this.copyStylesDragClone)for(let i of s)this._dragCopy.style[i]=s.getPropertyValue(i);this._calculateDragCopyPosition(r),this._dragCopy.style.top=r.clientY-this._copyOffset.y+"px",this._dragCopy.style.left=r.clientX-this._copyOffset.x+"px",this._dragCopy.style.position="fixed",this._dragCopy.style.pointerEvents="none",this._dragCopy.style.zIndex="999999",this._dragCopy=document.body.appendChild(this._dragCopy),this._dispatchEvent(this._dragSrc,"dragstart")}if(this._dragRunning){let s=this;requestAnimationFrame(function(){s._touchEndCalled||s._dragCopy===null||(s._dragCopy.style.top=r.clientY-s._copyOffset.y+"px",s._dragCopy.style.left=r.clientX-s._copyOffset.x+"px")});let i=this._findDroppable(t);i!=this._lastTarget&&(this._dispatchEvent(i,"dragenter"),this._dispatchEvent(this._lastTarget,"dragleave"),this._lastTarget=i),this._currentDropContainer=i,this._currentDropContainer&&this._dispatchEvent(i,"dragover")}};return Ze._instance?Ze._instance:(Ze._instance=this,document.addEventListener("touchmove",this._touchMove.bind(this),{passive:!1,capture:!1}),document.addEventListener("mousemove",this._touchMove.bind(this),{passive:!1,capture:!1}),document.addEventListener("touchend",this._touchEnd.bind(this),{passive:!1,capture:!1}),document.addEventListener("mouseup",this._touchEnd.bind(this),{passive:!1,capture:!1}),document.addEventListener("touchcancel",this._touchCancel.bind(this),{passive:!1,capture:!1}),this)}addDraggables(t){t.forEach(r=>{r.addEventListener("touchstart",this._touchStart.bind(this),{passive:!1,capture:!1}),r.addEventListener("mousedown",this._touchStart.bind(this),{passive:!1,capture:!1})})}_touchStart(t){this._touchBegin=Date.now();let{x:r,y:s}=this._getPositionFromEvent(t);if(this._touchDown={x:r,y:s},this._dragSrc=t.currentTarget,this._canDrag=!0,this.dragOnClick){let i={clientX:r,clientY:s};this._dragRunning=!0,this._createDragCopy(t,i)}t.preventDefault()}_touchMove(t){if(this._canDrag&&this._dragSrc){let{x:r,y:s}=this._getPositionFromEvent(t),i={clientX:r,clientY:s};this._getDelta(i)>=this._DRAGDELTA&&(this._dragRunning=!0),this._createDragCopy(t,i),t.preventDefault()}}_touchEnd(t){var r;if(this._touchEndCalled=!0,this._canDrag=!1,this._currentDropContainer)this._dispatchEvent(this._currentDropContainer,"drop"),this._dispatchEvent(this._dragSrc,"dragend");else if(this._dragRunning){let s=new CustomEvent("dragend",{bubbles:!0,cancelable:!0});s.dataTransfer={dropEffect:"none"},(r=this._dragSrc)==null||r.dispatchEvent(s)}this._reset()}_touchCancel(t){this._reset()}_findDroppable(t){let r,s=t.composedPath().find(i=>{if(i.nodeType===1&&i.nodeName!=="SLOT"&&i.hasAttribute("dropzone"))return i});if(s){let i=s.getRootNode(),a=this._getPoint(t);r=i.elementFromPoint(a.x,a.y)}return r}_getPoint(t,r){return t&&t.touches&&(t=t.touches[0]),{x:r?t.pageX:t.clientX,y:r?t.pageY:t.clientY}}_calculateDragCopyPosition(t){let r=this._dragSrc.getBoundingClientRect();this._copyOffset.x=t.clientX-r.left,this._copyOffset.y=t.clientY-r.top}_getDelta(t){let r=Math.abs(t.clientX-this._touchDown.x),s=Math.abs(t.clientY-this._touchDown.y);return r+s}_dispatchEvent(t,r,s=!0){if(!t)return!1;let i=new CustomEvent(r,{bubbles:s,cancelable:!0});return i.dataTransfer=this._dataTransfer,t.dispatchEvent(i),i.defaultPrevented}_reset(){this._dragRunning&&(this._dragSrc.style.opacity="1.0",this._dragCopy.parentElement.removeChild(this._dragCopy)),this._dragRunning=!1,this._dragSrc=null,this._dragCopy=null,this._canDrag=!1,this._touchBegin=0,this._touchDown=null,this._lastClick=0,this._touchEndCalled=!1,this._dataTransfer={data:{},setData:function(t,r){this.data[t]=r},getData:function(t){return this.data[t]},effectAllowed:"move"},this._copyOffset={x:0,y:0},this._lastTarget=null,this._currentDropContainer=null,this._handleClick=!0}_getPositionFromEvent(t){let r;if(t.type=="touchstart"||t.type=="touchmove"||t.type=="touchend"||t.type=="touchcancel"){let s=typeof t.originalEvent=="undefined"?t:t.originalEvent,i=s.touches[0]||s.changedTouches[0];r={x:i.pageX,y:i.pageY}}else(t.type=="mousedown"||t.type=="mouseup"||t.type=="mousemove"||t.type=="mouseover"||t.type=="mouseout"||t.type=="mouseenter"||t.type=="mouseleave")&&(r={x:t.clientX,y:t.clientY});return r}};var Do=(e,t,r)=>{class s extends e{constructor(){super(...arguments);this.disabled=!1}firstUpdated(o){if(this.classList.contains("qti-match-tabular"))return;super.firstUpdated(o);let u=Array.from(t?this.shadowRoot.querySelectorAll(r):this.querySelectorAll(r));this.dragoverHandler=this.dragoverHandler.bind(this),this.dragleaveHandler=this.dragleaveHandler.bind(this),this.dropHandler=this.dropHandler.bind(this),u.forEach(c=>{c.setAttribute("dropzone","move"),c.addEventListener("dragleave",this.dragleaveHandler),this.attachHandler(c)});for(let c of u)this.observer=new MutationObserver(h=>{h.forEach(p=>{if(p.type==="attributes")switch(p.attributeName){case"disabled":{c.hasAttribute("disabled")?this.removeHandler(c):this.attachHandler(c);break}}})}),this.observer.observe(c,{attributes:!0})}attachHandler(o){o.addEventListener("dragover",this.dragoverHandler),o.addEventListener("drop",this.dropHandler)}removeHandler(o){o.removeEventListener("dragover",this.dragoverHandler),o.removeEventListener("drop",this.dropHandler)}disconnectedCallback(){var o;this.classList.contains("qti-match-tabular")||(super.disconnectedCallback(),(o=this.observer)==null||o.disconnect())}dragoverHandler(o){return o.preventDefault(),o.currentTarget.setAttribute("active",""),o.dataTransfer.dropEffect="move",!1}dropHandler(o){o.preventDefault();let u=o.currentTarget,c=this.querySelector(`[identifier=${o.dataTransfer.getData("text")}`),h=c||this.shadowRoot.querySelector(`[identifier=${o.dataTransfer.getData("text")}`);return u?h.parentElement.getAttribute("identifier")!==u.getAttribute("identifier")&&u.appendChild(h):console.error(`cannot find droppable, target: ${o.target?JSON.stringify(o.target):"null"}`),u.removeAttribute("active"),!1}dragleaveHandler(o){return o.preventDefault(),o.currentTarget.removeAttribute("active"),!1}}return E([x({type:Boolean,reflect:!0})],s.prototype,"disabled",2),s};var Oo=(e,t,r)=>{class s extends e{}return s};function Mo(e,t){let r,s=I({},t);return(i,a)=>{let{connectedCallback:o,disconnectedCallback:u}=i;i.connectedCallback=function(){var p;o.call(this);let c=g=>{let N=Array.from(this.querySelectorAll(e));for(let y of g){let R=Array.from(y.addedNodes).map(G=>G),O=Array.from(y.addedNodes).map(G=>G);y.type==="childList"&&R.find(G=>N.includes(G))&&this[a](R,O)}};r=new MutationObserver(c),r.observe(this,{childList:!0,subtree:!0});let h=(p=this.querySelectorAll(e))!=null?p:[];this[a](Array.from(h),[])},i.disconnectedCallback=function(){u.call(this),r.disconnect()}}}var ve=(e,t,r,s)=>{class i extends Oo(Do(e,r,s),s,t){constructor(){super(...arguments);this.draggables=new Map;this.responseIdentifier="";this.configuration={copyStylesDragClone:!0,dragCanBePlacedBack:!0,dragOnClick:!1};this.disabled=!1;this.readonly=!1;this.minAssociations=1;this.maxAssociations=1}reInitDragAndDrop(u,c){if(this.classList.contains("qti-match-tabular"))return;u.filter(p=>!this.draggables||!this.draggables.get(p)).length>0&&(this.dragDropApi.addDraggables(u),u.forEach(p=>{this.draggables.set(p,{parent:p.parentElement,index:Array.from(p.parentNode.children).indexOf(p)}),p.setAttribute("qti-draggable","true"),p.addEventListener("dragstart",g=>{g.dataTransfer.setData("text",g.currentTarget.getAttribute("identifier")),p.setAttribute("dragging","")}),p.addEventListener("dragend",g=>{if(g.preventDefault(),p.removeAttribute("over"),p.removeAttribute("dragging"),g.dataTransfer.dropEffect==="none"&&this.configuration.dragCanBePlacedBack){let N=g.currentTarget,y=this.draggables.get(N),R=y.index<y.parent.children.length?y.index:y.parent.children.length-1,O=y.parent,G=y.parent.children[R];O.insertBefore(N,G),this.saveResponse(),this.checkMaxMatchAssociations()}g.dataTransfer.dropEffect==="move"&&(this.saveResponse(),this.checkMaxMatchAssociations())})}))}handleDragOptionsChanged(u,c){this.dragDropApi.copyStylesDragClone=c.copyStylesDragClone,this.dragDropApi.dragOnClick=c.dragOnClick}handleDisabledChange(u,c){this.draggables.forEach((h,p)=>{c?p.setAttribute("disabled",""):p.removeAttribute("disabled"),c?p.removeAttribute("qti-draggable"):p.setAttribute("qti-draggable","true")})}handleReadonlyChange(u,c){this.draggables.forEach((h,p)=>{c?p.setAttribute("readonly",""):p.removeAttribute("readonly"),c?p.removeAttribute("qti-draggable"):p.setAttribute("qti-draggable","true")})}firstUpdated(u){super.firstUpdated(u),this.droppables=Array.from(r?this.shadowRoot.querySelectorAll(s):this.querySelectorAll(s))}connectedCallback(){super.connectedCallback(),this.dragDropApi=new Ze,this.dispatchEvent(new CustomEvent("qti-register-interaction",{bubbles:!0,composed:!0,detail:this}))}reset(u=!0){this.draggables.forEach((c,h)=>{let p=c.parent.children,g=c.index<p.length?c.index:p.length;c.parent.insertBefore(h,p[g])}),u&&this.saveResponse()}checkMaxMatchAssociations(){this.droppables.forEach(u=>{let h=+(u.getAttribute("match-max")||1)<=(u.children.length||0);h?u.setAttribute("disabled",""):u.removeAttribute("disabled"),h?u.removeAttribute("dropzone"):u.setAttribute("dropzone","move")})}set response(u){this.classList.contains("qti-match-tabular")||(this.reset(!1),u!==null&&Array.isArray(u)&&u.forEach(c=>{let[h,...p]=c.split(" ").reverse();if(h){let g=this.droppables.find(N=>N.getAttribute("identifier")===h);p.forEach(N=>{let y=this.querySelector(`[identifier=${N}]`);g?y?(g.appendChild(y),this.checkMaxMatchAssociations()):console.error(`cannot find draggable with identifier: ${N}`):console.error(`cannot find droppable with identifier: ${h}`)})}}))}validate(){let c=(r?Array.from(this.shadowRoot.querySelectorAll(s)):Array.from(this.querySelectorAll(s))).filter(h=>h.childElementCount>0).length;return this.minAssociations<=0||this.minAssociations<=c}saveResponse(){let u=this.droppables.map(c=>{var p;let h="";return((p=c.children)==null?void 0:p.length)>0&&(h+=Array.from(c.children).map(g=>g.getAttribute("identifier")).join(" ")+" "),h+=c.getAttribute("identifier"),h});this.dispatchEvent(new CustomEvent("qti-interaction-response",{bubbles:!0,composed:!0,detail:{responseIdentifier:this.responseIdentifier,response:u}}))}}return E([Mo(t)],i.prototype,"reInitDragAndDrop",1),E([x({type:String,attribute:"response-identifier"})],i.prototype,"responseIdentifier",2),E([x({attribute:!1,type:Object})],i.prototype,"configuration",2),E([U("configuration")],i.prototype,"handleDragOptionsChanged",1),E([x({type:Boolean,reflect:!0})],i.prototype,"disabled",2),E([U("disabled",{waitUntilFirstUpdate:!0})],i.prototype,"handleDisabledChange",1),E([x({type:Boolean,reflect:!0})],i.prototype,"readonly",2),E([U("readonly",{waitUntilFirstUpdate:!0})],i.prototype,"handleReadonlyChange",1),E([x({type:Number,reflect:!0,attribute:"min-associations"})],i.prototype,"minAssociations",2),E([x({type:Number,reflect:!0,attribute:"max-associations"})],i.prototype,"maxAssociations",2),i};var Cr=class extends ve(v,"qti-simple-associable-choice",!0,".dl"){render(){return _` <slot name="prompt"></slot>
|
|
228
223
|
<slot name="qti-simple-associable-choice"></slot>
|
|
229
|
-
${this._childrenMap.length>0&&Array.from(Array(Math.ceil(this._childrenMap.length/2)).keys()).map((r,
|
|
230
|
-
<
|
|
231
|
-
<
|
|
232
|
-
</div>`)}`}connectedCallback(){super.connectedCallback(),this._childrenMap=Array.from(this.querySelectorAll("qti-simple-associable-choice"))}};
|
|
224
|
+
${this._childrenMap.length>0&&Array.from(Array(Math.ceil(this._childrenMap.length/2)).keys()).map((r,s)=>_`<div part="associables-container">
|
|
225
|
+
<slot name="left${s}" part="drop-list" class="dl" identifier="droplist${s}_left"></slot>
|
|
226
|
+
<slot name="right${s}" part="drop-list" class="dl" identifier="droplist${s}_right"></slot>
|
|
227
|
+
</div>`)}`}connectedCallback(){super.connectedCallback(),this._childrenMap=Array.from(this.querySelectorAll("qti-simple-associable-choice"))}};Cr.styles=M`
|
|
233
228
|
:host {
|
|
234
229
|
display: block; /* necessary to calculate scaling position */
|
|
235
230
|
}
|
|
@@ -238,8 +233,11 @@ Make sure to test your application with a production build as repeat registratio
|
|
|
238
233
|
flex-wrap: wrap;
|
|
239
234
|
gap: 0.5rem;
|
|
240
235
|
}
|
|
241
|
-
`,
|
|
242
|
-
<slot
|
|
236
|
+
`,E([Ge()],Cr.prototype,"_childrenMap",2);customElements.define("qti-associate-interaction",Cr);var mn=class extends v{connectedCallback(){super.connectedCallback(),this.setAttribute("slot","qti-simple-associable-choice"),this.setAttribute("part","qti-simple-associable-choice")}render(){return _`
|
|
237
|
+
<slot></slot>
|
|
238
|
+
<slot name="qti-simple-associable-choice"></slot>
|
|
239
|
+
`}};customElements.define("qti-simple-associable-choice",mn);var Ds=class extends ve(v,"qti-gap-text",!1,"qti-gap"){render(){return _` <slot part="drags" name="qti-gap-text"></slot>
|
|
240
|
+
<slot part="drops"></slot>`}};Ds.styles=[M`
|
|
243
241
|
:host {
|
|
244
242
|
display: flex;
|
|
245
243
|
align-items: flex-start;
|
|
@@ -262,39 +260,14 @@ Make sure to test your application with a production build as repeat registratio
|
|
|
262
260
|
align-items: flex-start;
|
|
263
261
|
flex: 1;
|
|
264
262
|
}
|
|
265
|
-
`];customElements.define("qti-gap-match-interaction",
|
|
266
|
-
<
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
>
|
|
272
|
-
${Di(this._lines,o=>o,(o,u)=>wr`
|
|
273
|
-
<line
|
|
274
|
-
part="line"
|
|
275
|
-
x1=${parseInt(this.querySelector("[identifier="+o.split(" ")[0]+"]").style.left)}
|
|
276
|
-
y1=${parseInt(this.querySelector("[identifier="+o.split(" ")[0]+"]").style.top)}
|
|
277
|
-
x2=${parseInt(this.querySelector("[identifier="+o.split(" ")[1]+"]").style.left)}
|
|
278
|
-
y2=${parseInt(this.querySelector("[identifier="+o.split(" ")[1]+"]").style.top)}
|
|
279
|
-
stroke="red"
|
|
280
|
-
stroke-width="3"
|
|
281
|
-
@click=${c=>{c.stopPropagation(),this._lines=this._lines.filter((h,p)=>p!==u),this.saveResponse(this._lines)}}
|
|
282
|
-
/>
|
|
283
|
-
`)}
|
|
284
|
-
${this.startPoint&&wr`<line
|
|
285
|
-
part="point"
|
|
286
|
-
x1=${this.startCoord.x}
|
|
287
|
-
y1=${this.startCoord.y}
|
|
288
|
-
x2=${this.mouseCoord.x}
|
|
289
|
-
y2=${this.mouseCoord.y}
|
|
290
|
-
stroke="red"
|
|
291
|
-
stroke-width="3"
|
|
292
|
-
/>`}
|
|
293
|
-
</svg>
|
|
294
|
-
<slot></slot>
|
|
295
|
-
</line-container>`}positionHotspotOnRegister(r){let i=this.querySelector("img"),s=r.target,n=s.getAttribute("coords"),o=s.getAttribute("shape"),u=n.split(",").map(c=>parseInt(c));Yt(o,u,i,s)}firstUpdated(r){super.firstUpdated(r),this.hotspots=document.querySelectorAll("qti-associable-hotspot"),document.addEventListener("mousemove",i=>{this.mouseCoord={x:i.clientX-this.grImage[0].getBoundingClientRect().left,y:i.clientY-this.grImage[0].getBoundingClientRect().top}}),this.hotspots.forEach(i=>{i.style.left=i.getAttribute("coords").split(",")[0]+"px",i.style.top=i.getAttribute("coords").split(",")[1]+"px",i.addEventListener("click",s=>{this.startPoint?this.endPoint||(this.endPoint=s.target,this._lines=[...this._lines,this.startPoint.getAttribute("identifier")+" "+this.endPoint.getAttribute("identifier")],this.saveResponse(this._lines),this.startPoint=null,this.endPoint=null):(this.startPoint=s.target,this.startCoord={x:this.startPoint.getAttribute("coords").split(",")[0],y:this.startPoint.getAttribute("coords").split(",")[1]})})})}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("qti-register-hotspot",this.positionHotspotOnRegister)}};Be.styles=[O`
|
|
263
|
+
`];customElements.define("qti-gap-match-interaction",Ds);var Os=class extends v{constructor(){super(...arguments);this.tabindex=0}connectedCallback(){super.connectedCallback(),this.setAttribute("slot","qti-gap-text")}render(){return _`<slot></slot>`}};E([x({type:Number,reflect:!0})],Os.prototype,"tabindex",2);customElements.define("qti-gap-text",Os);var Ms=class extends v{constructor(){super(...arguments);this.tabindex=0}render(){return _` <slot name="qti-gap-text"></slot>`}};E([x({type:Number,reflect:!0})],Ms.prototype,"tabindex",2);customElements.define("qti-gap",Ms);var En=class extends v{};customElements.define("qti-inline-choice",En);function Vt(e,t,r,s){switch(e){case"circle":{let[i,a,o]=t,u=i/r.width*100,c=a/r.height*100,h=o/r.width*100;s.style.left=u-h+"%",s.style.top=c-h+"%",s.style.width=s.style.height=4*h+"px",s.style.borderRadius="9999px"}break;case"rect":{let[i,a,o,u]=t,c=i/r.width*100,h=a/r.height*100,p=o/r.width*100,g=u/r.height*100;s.style.left=c+"%",s.style.top=h+"%",s.style.width=p-c+"%",s.style.height=g-h+"%"}break;case"poly":{let i=t.reduce((O,G,Le,Ye)=>{if(Le%2===1){let ct=O.pop();O[O.length]={x:ct,y:Ye[Le]}}else O.push(G);return O},[]),a=Math.min(...i.map(O=>O.x)),o=Math.max(...i.map(O=>O.x)),u=Math.min(...i.map(O=>O.y)),c=Math.max(...i.map(O=>O.y)),h=a/r.width*100,p=u/r.height*100,g=o/r.width*100,N=c/r.height*100;s.style.left=a/r.width*100+"%",s.style.top=u/r.height*100+"%",s.style.width=g-h+"%",s.style.height=N-p+"%";let R=i.map(O=>({x:(O.x-a)/(o-a)*100,y:(O.y-u)/(c-u)*100})).map(O=>Math.round(O.x)+"% "+Math.round(O.y)+"%").join(",");s.style.clipPath=`polygon(${R})`}break;default:break}}var Ps=class extends K{render(){return _`
|
|
264
|
+
<slot name="prompt"></slot>
|
|
265
|
+
<!-- slot for the prompt -->
|
|
266
|
+
<slot></slot>
|
|
267
|
+
<!-- slot for the image and hotspots -->
|
|
268
|
+
`}positionHotspotOnRegister(r){let s=this.querySelector("img"),i=r.target,a=i.getAttribute("coords"),o=i.getAttribute("shape"),u=a.split(",").map(c=>parseInt(c));Vt(o,u,s,i)}connectedCallback(){super.connectedCallback(),this.addEventListener("qti-register-hotspot",this.positionHotspotOnRegister)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("qti-register-hotspot",this.positionHotspotOnRegister)}};Ps.styles=[M`
|
|
296
269
|
slot:not([name='prompt']) {
|
|
297
|
-
|
|
270
|
+
position: relative; /* qti-hotspot-choice relative to the slot */
|
|
298
271
|
display: block;
|
|
299
272
|
width: fit-content; /* hotspots not stretching further if image is at max size */
|
|
300
273
|
}
|
|
@@ -303,34 +276,22 @@ Make sure to test your application with a production build as repeat registratio
|
|
|
303
276
|
pointer-events: none;
|
|
304
277
|
user-select: none;
|
|
305
278
|
}
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
}
|
|
309
|
-
line-container {
|
|
310
|
-
display: block;
|
|
311
|
-
position: relative;
|
|
312
|
-
}
|
|
313
|
-
svg {
|
|
314
|
-
position: absolute;
|
|
315
|
-
top: 0px;
|
|
316
|
-
left: 0px;
|
|
317
|
-
}
|
|
318
|
-
`],g([de()],Be.prototype,"_lines",2),g([de()],Be.prototype,"startCoord",2),g([de()],Be.prototype,"mouseCoord",2),g([dr("svg")],Be.prototype,"svgContainer",2),g([hr({selector:"img"})],Be.prototype,"grImage",2);customElements.define("qti-graphic-associate-interaction",Be);var Oi=class extends Le(N,"qti-gap-img",!1,"qti-associable-hotspot"){render(){return v` <slot></slot>
|
|
319
|
-
<slot name="qti-gap-img"></slot>`}positionHotspotOnRegister(t){let r=this.querySelector("img"),i=t.target,s=i.getAttribute("coords"),n=i.getAttribute("shape"),o=s.split(",").map(u=>parseInt(u));switch(n){case"circle":{let[u,c,h]=o;i.style.left=u-h+"px",i.style.top=c-h+"px",i.style.width=i.style.height=2*h+"px"}break;case"rect":{let[u,c,h,p]=o;i.style.left=u+"px",i.style.top=c+"px",i.style.width=h-u+"px",i.style.height=p-c+"px"}break;default:break}}connectedCallback(){super.connectedCallback(),this.addEventListener("qti-register-hotspot",this.positionHotspotOnRegister)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("qti-register-hotspot",this.positionHotspotOnRegister)}};Oi.styles=O`
|
|
279
|
+
`];customElements.define("qti-graphic-associate-interaction",Ps);var ks=class extends ve(v,"qti-gap-img",!1,"qti-associable-hotspot"){render(){return _` <slot></slot>
|
|
280
|
+
<slot name="qti-gap-img"></slot>`}positionHotspotOnRegister(t){let r=t.target,s=r.getAttribute("coords"),i=r.getAttribute("shape"),a=s.split(",").map(o=>parseInt(o));switch(i){case"circle":{let[o,u,c]=a;r.style.left=o-c+"px",r.style.top=u-c+"px",r.style.width=r.style.height=2*c+"px"}break;case"rect":{let[o,u,c,h]=a;r.style.left=o+"px",r.style.top=u+"px",r.style.width=c-o+"px",r.style.height=h-u+"px"}break;default:break}}connectedCallback(){super.connectedCallback(),this.addEventListener("qti-register-hotspot",this.positionHotspotOnRegister)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("qti-register-hotspot",this.positionHotspotOnRegister)}};ks.styles=M`
|
|
320
281
|
:host {
|
|
321
|
-
display:
|
|
282
|
+
display: block;
|
|
322
283
|
position: relative;
|
|
323
284
|
}
|
|
324
285
|
slot[name='qti-gap-img'] {
|
|
325
286
|
display: flex;
|
|
326
287
|
gap: 1rem;
|
|
327
288
|
}
|
|
328
|
-
`;customElements.define("qti-graphic-gap-match-interaction",
|
|
289
|
+
`;customElements.define("qti-graphic-gap-match-interaction",ks);var ws=class extends K{render(){return _`
|
|
329
290
|
<slot name="prompt"></slot>
|
|
330
291
|
<!-- slot for the prompt -->
|
|
331
292
|
<slot></slot>
|
|
332
293
|
<!-- slot for the image and hotspots -->
|
|
333
|
-
`}setHotspotOrder(r){let{identifier:
|
|
294
|
+
`}setHotspotOrder(r){let{identifier:s}=r.detail,i=this._choiceElements.find(o=>o.getAttribute("identifier")===s),a=this._choiceElements.length;if(!this.choiceOrdering){if(this.choiceOrdering=!0,i.order==null){if(this._choiceElements.filter(o=>o.order>0).length>=a){this.choiceOrdering=!1;return}i.order=this._choiceElements.filter(o=>!!o.order).length+1,this.choiceOrdering=!1;return}else this._choiceElements.forEach(o=>(o.order>o.order&&o.order--,o)),i.order=null;this.choiceOrdering=!1}}positionHotspotOnRegister(r){let s=this.querySelector("img"),i=r.target,a=i.getAttribute("coords"),o=i.getAttribute("shape"),u=a.split(",").map(c=>parseInt(c));Vt(o,u,s,i)}connectedCallback(){super.connectedCallback(),this.addEventListener("qti-choice-element-selected",this.setHotspotOrder),this.addEventListener("qti-register-choice",this.positionHotspotOnRegister)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("qti-choice-element-selected",this.setHotspotOrder),this.removeEventListener("qti-register-choice",this.positionHotspotOnRegister)}};ws.styles=[M`
|
|
334
295
|
slot:not([name='prompt']) {
|
|
335
296
|
position: relative; /* qti-hotspot-choice relative to the slot */
|
|
336
297
|
display: block;
|
|
@@ -341,12 +302,12 @@ Make sure to test your application with a production build as repeat registratio
|
|
|
341
302
|
pointer-events: none;
|
|
342
303
|
user-select: none;
|
|
343
304
|
}
|
|
344
|
-
`];customElements.define("qti-graphic-order-interaction",
|
|
305
|
+
`];customElements.define("qti-graphic-order-interaction",ws);var Hs=class extends K{render(){return _`
|
|
345
306
|
<slot name="prompt"></slot>
|
|
346
307
|
<!-- slot for the prompt -->
|
|
347
308
|
<slot></slot>
|
|
348
309
|
<!-- slot for the image and hotspots -->
|
|
349
|
-
`}positionHotspotOnRegister(t){let r=this.querySelector("img"),
|
|
310
|
+
`}positionHotspotOnRegister(t){let r=this.querySelector("img"),s=t.target,i=s.getAttribute("coords"),a=s.getAttribute("shape"),o=i.split(",").map(u=>parseInt(u));Vt(a,o,r,s)}connectedCallback(){super.connectedCallback(),this.addEventListener("qti-register-choice",this.positionHotspotOnRegister)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("qti-register-choice",this.positionHotspotOnRegister)}};Hs.styles=[M`
|
|
350
311
|
slot:not([name='prompt']) {
|
|
351
312
|
position: relative; /* qti-hotspot-choice relative to the slot */
|
|
352
313
|
display: block;
|
|
@@ -358,26 +319,19 @@ Make sure to test your application with a production build as repeat registratio
|
|
|
358
319
|
user-select: none;
|
|
359
320
|
/* width:100%; */
|
|
360
321
|
}
|
|
361
|
-
`];customElements.define("qti-hotspot-interaction",
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
</tr>
|
|
369
|
-
${this.rows.map(r=>v`<tr>
|
|
370
|
-
<td>${r.innerHTML}</td>
|
|
371
|
-
${this.cols.map((i,s)=>v`<td><input type="checkbox" /></td>`)}
|
|
372
|
-
</tr>`)}
|
|
373
|
-
</table>`:v`<slot name="prompt"></slot> <slot></slot>`}};Pi.styles=[];customElements.define("qti-match-interaction",Pi);var qi=class extends X{constructor(){super()}reset(){}validate(){return!0}set response(r){}static get properties(){return $(R({},X.properties),{step:{type:Number,attribute:"step",default:10}})}render(){return v` <slot name="prompt"></slot>
|
|
374
|
-
<slot></slot>`}connectedCallback(){super.connectedCallback()}};qi.styles=[O``];customElements.define("qti-media-interaction",qi);var Gt=class extends Le(N,"qti-simple-choice",!0,"drop-list"){render(){return v` <slot name="prompt"> </slot>
|
|
322
|
+
`];customElements.define("qti-hotspot-interaction",Hs);var Nr=class extends se{};Nr.styles=M`
|
|
323
|
+
:host {
|
|
324
|
+
position: absolute;
|
|
325
|
+
}
|
|
326
|
+
`,E([x({attribute:"aria-ordervalue",type:Number,reflect:!0})],Nr.prototype,"order",2);customElements.define("qti-hotspot-choice",Nr);var Bs=class extends ve(v,"qti-simple-match-set:first-of-type qti-simple-associable-choice",!1,"qti-simple-match-set:last-of-type qti-simple-associable-choice"){render(){return _` <slot name="prompt"></slot>
|
|
327
|
+
<slot></slot>`}};Bs.styles=[];customElements.define("qti-match-interaction",Bs);var Us=class extends W{constructor(){super()}reset(){}validate(){return!0}set response(r){}static get properties(){return Y(I({},W.properties),{step:{type:Number,attribute:"step",default:10}})}render(){return _` <slot name="prompt"></slot>
|
|
328
|
+
<slot></slot>`}connectedCallback(){super.connectedCallback()}};Us.styles=[M``];customElements.define("qti-media-interaction",Us);var Yt=class extends ve(v,"qti-simple-choice",!0,"drop-list"){render(){return _` <slot name="prompt"> </slot>
|
|
375
329
|
<div part="container">
|
|
376
330
|
<slot part="drags"> </slot>
|
|
377
331
|
<div part="drops">
|
|
378
|
-
${Array.from(this.querySelectorAll("qti-simple-choice")).map((r,
|
|
332
|
+
${Array.from(this.querySelectorAll("qti-simple-choice")).map((r,s)=>_`<drop-list part="drop-list" identifier="droplist${s}"></drop-list>`)}
|
|
379
333
|
</div>
|
|
380
|
-
</div>`}connectedCallback(){super.connectedCallback(),this.childrenMap=Array.from(this.querySelectorAll("qti-simple-choice")),this.childrenMap.forEach(r=>r.setAttribute("part","qti-simple-choice"))}};
|
|
334
|
+
</div>`}connectedCallback(){super.connectedCallback(),this.childrenMap=Array.from(this.querySelectorAll("qti-simple-choice")),this.childrenMap.forEach(r=>r.setAttribute("part","qti-simple-choice"))}};Yt.layoutClass=["qti-choices-top","qti-choices-bottom","qti-choices-left","qti-choices-right"],Yt.styles=[M`
|
|
381
335
|
[part='drags'] {
|
|
382
336
|
display: flex;
|
|
383
337
|
align-items: flex-start;
|
|
@@ -425,2248 +379,34 @@ Make sure to test your application with a production build as repeat registratio
|
|
|
425
379
|
:host(.qti-choices-right) [part='container'] {
|
|
426
380
|
flex-direction: row-reverse;
|
|
427
381
|
}
|
|
428
|
-
`],
|
|
429
|
-
:
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
left: 50%;
|
|
437
|
-
transform: translateX(-50%);
|
|
438
|
-
}
|
|
439
|
-
`];customElements.define("qti-position-object-interaction",Hi);var Bi=class extends N{constructor(){super();this.removeMoveListener=this.removeMoveListener.bind(this),this.dragElementHandler=this.dragElementHandler.bind(this)}render(){return v`<slot></slot>`}dragElementHandler(r){r.preventDefault();let i=r.clientX-this.startX,s=r.clientY-this.startY;this.dragElement.style.left=this.dragElement.offsetLeft+i+"px",this.dragElement.style.top=this.dragElement.offsetTop+s+"px",this.startX=r.clientX,this.startY=r.clientY}connectedCallback(){super.connectedCallback(),this.dragElement=this.querySelector("qti-position-object-interaction>img"),this.startX=0,this.startY=0,this.dragElement.addEventListener("mousedown",r=>{this.startX=r.clientX,this.startY=r.clientY,document.addEventListener("mousemove",this.dragElementHandler,!0)}),document.addEventListener("mouseup",this.removeMoveListener)}removeMoveListener(r){document.removeEventListener("mousemove",this.dragElementHandler,!0)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("mousemove",this.dragElementHandler),document.removeEventListener("mouseup",this.removeMoveListener)}};Bi.styles=[O`
|
|
440
|
-
:host {
|
|
441
|
-
display: inline-block;
|
|
442
|
-
position: relative;
|
|
443
|
-
}
|
|
444
|
-
`];customElements.define("qti-position-object-stage",Bi);var qo="important",Al=" !"+qo,Ho=Et(class extends qe{constructor(e){var t;if(super(e),e.type!==bt.ATTRIBUTE||e.name!=="style"||((t=e.strings)===null||t===void 0?void 0:t.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce((t,r)=>{let i=e[r];return i==null?t:t+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(e,[t]){let{style:r}=e.element;if(this.ut===void 0){this.ut=new Set;for(let i in t)this.ut.add(i);return this.render(t)}this.ut.forEach(i=>{t[i]==null&&(this.ut.delete(i),i.includes("-")?r.removeProperty(i):r[i]="")});for(let i in t){let s=t[i];if(s!=null){this.ut.add(i);let n=typeof s=="string"&&s.endsWith(Al);i.includes("-")||n?r.setProperty(i,n?s.slice(0,-11):s,n?qo:""):r[i]=s}}return Te}});var wt=class extends X{constructor(){super(...arguments);this.maxChoices=0;this.minChoices=0;this._points=[]}render(){return v` <slot name="prompt"></slot>
|
|
445
|
-
<point-container>
|
|
446
|
-
${Di(this._points,r=>r,(r,i)=>v`
|
|
447
|
-
<button
|
|
448
|
-
part="point"
|
|
449
|
-
style=${Ho({position:"absolute",transform:"translate(-50%, -50%)",left:`${r.split(" ")[0]}px`,top:`${r.split(" ")[1]}px`})}
|
|
450
|
-
@click=${s=>{s.stopPropagation(),this._points=this._points.filter((n,o)=>o!==i),this.saveResponse(this._points)}}
|
|
451
|
-
></button>
|
|
452
|
-
`)}
|
|
453
|
-
<slot></slot>
|
|
454
|
-
</point-container>`}reset(){this._points=[]}validate(){return this._points.length>=this.minChoices&&this._points.length<=this.maxChoices}set response(r){this._points=Array.isArray(r)?r:[r]}connectedCallback(){super.connectedCallback(),this.querySelector("img").addEventListener("click",i=>{let s=i.offsetX,n=i.offsetY;this._points=[...this._points,s+" "+n],this.saveResponse(this._points)})}disconnectedCallback(){super.disconnectedCallback()}};wt.styles=[O`
|
|
455
|
-
host() {
|
|
456
|
-
display: block;
|
|
457
|
-
}
|
|
458
|
-
point-container {
|
|
459
|
-
display: block;
|
|
460
|
-
position: relative;
|
|
461
|
-
}
|
|
462
|
-
`],g([y({type:Number,attribute:"max-choices"})],wt.prototype,"maxChoices",2),g([y({type:Number,attribute:"min-choices"})],wt.prototype,"minChoices",2),g([de()],wt.prototype,"_points",2);customElements.define("qti-select-point-interaction",wt);var ie=class extends X{constructor(){super(...arguments);this.stepLabel=!1;this.reverse=!1;this._handleDisabledChange=(r,i)=>{};this._handleReadonlyChange=(r,i)=>{}}set min(r){this._min=r,this.style.setProperty("--min",`${this._min}`)}get min(){return this._min}set max(r){this._max=r,this.style.setProperty("--max",`${this._max}`)}get max(){return this._max}set step(r){this._step=r,this.style.setProperty("--step",`${this._step}`)}get step(){return this._step}reset(){}validate(){return!0}set response(r){if(Array.isArray(r)){console.error("QtiSliderInteraction: response is an array, but should be a single value");return}let i=parseInt(r);if(Number.isNaN(i)){console.error("QtiSliderInteraction: response is not a number");return}this.value=i}render(){this.value<this.min&&(this.value=this.min),this.value>this.max&&(this.value=this.max);let r=(this.value-this.min)/(this.max-this.min)*100;return v`<slot name="prompt"></slot>
|
|
463
|
-
<div id="rail" @mousedown=${this._onMouseDown} @touchstart=${this._onTouchMove} part="rail">
|
|
382
|
+
`],E([x({type:String})],Yt.prototype,"orientation",2);customElements.define("qti-order-interaction",Yt);var Fs=class extends K{constructor(){super()}render(){return _`<slot></slot>
|
|
383
|
+
<div class="notification"></div>`}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}};Fs.styles=[];customElements.define("qti-select-point-interaction",Fs);var ie=class extends W{constructor(){super(...arguments);this.stepLabel=!1;this.reverse=!1;this._handleDisabledChange=(r,s)=>{};this._handleReadonlyChange=(r,s)=>{}}set min(r){this._min=r,this.style.setProperty("--min",`${this._min}`)}get min(){return this._min}set max(r){this._max=r,this.style.setProperty("--max",`${this._max}`)}get max(){return this._max}set step(r){this._step=r,this.style.setProperty("--step",`${this._step}`)}get step(){return this._step}reset(){}validate(){return!0}set response(r){if(Array.isArray(r)){console.error("QtiSliderInteraction: response is an array, but should be a single value");return}let s=parseInt(r);if(Number.isNaN(s)){console.error("QtiSliderInteraction: response is not a number");return}this.value=s}render(){this.value<this.min&&(this.value=this.min),this.value>this.max&&(this.value=this.max);let r=(this.value-this.min)/(this.max-this.min)*100;return _`<slot name="prompt"></slot>
|
|
384
|
+
<div
|
|
385
|
+
id="rail"
|
|
386
|
+
@mousedown=${this._onMouseDown}
|
|
387
|
+
@touchstart=${this._onTouchMove}
|
|
388
|
+
part="rail"
|
|
389
|
+
>
|
|
464
390
|
<div id="knob" part="knob" style="left:${r}%"></div>
|
|
465
|
-
</div>`}connectedCallback(){super.connectedCallback(),this.step=1,this.setAttribute("tabindex","0"),this.setAttribute("role","slider")}_onTouchMove(r){let
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
391
|
+
</div>`}connectedCallback(){super.connectedCallback(),this.step=1,this.setAttribute("tabindex","0"),this.setAttribute("role","slider")}_onTouchMove(r){let s=u=>{let{x:c}=this.getPositionFromEvent(u),h=c-this._rail.getBoundingClientRect().left-document.documentElement.scrollLeft;this.calculateValue(h),u.stopPropagation()},i=()=>{document.removeEventListener("touchmove",s),document.removeEventListener("touchend",i),this.saveResponse(this.value.toString())};document.addEventListener("touchmove",s),document.addEventListener("touchend",i);let{x:a}=this.getPositionFromEvent(r),o=a-this._rail.getBoundingClientRect().left-document.documentElement.scrollLeft;this.calculateValue(o),r.stopPropagation()}_onMouseDown(r){let s=o=>{let u=o.pageX-this._rail.getBoundingClientRect().left-document.documentElement.scrollLeft;this.calculateValue(u),o.preventDefault(),o.stopPropagation()},i=()=>{document.removeEventListener("mousemove",s),document.removeEventListener("mouseup",i),this.saveResponse(this.value.toString())};document.addEventListener("mousemove",s),document.addEventListener("mouseup",i);let a=r.pageX-this._rail.getBoundingClientRect().left-document.documentElement.scrollLeft;this.calculateValue(a),r.preventDefault(),r.stopPropagation()}calculateValue(r){let s=this.min+(this.max-this.min)*r/this.offsetWidth,i=this.min+Math.round((s-this.min)/this._step)*this._step;this.value=i}getPositionFromEvent(r){let s;if(r.type=="touchstart"||r.type=="touchmove"||r.type=="touchend"||r.type=="touchcancel"){let i=typeof r.originalEvent=="undefined"?r:r.originalEvent,a=i.touches[0]||i.changedTouches[0];s={x:a.pageX,y:a.pageY}}else(r.type=="mousedown"||r.type=="mouseup"||r.type=="mousemove"||r.type=="mouseover"||r.type=="mouseout"||r.type=="mouseenter"||r.type=="mouseleave")&&(s={x:r.clientX,y:r.clientY});return s}};ie.styles=[M``],E([Ot("#knob")],ie.prototype,"_knob",2),E([Ot("#rail")],ie.prototype,"_rail",2),E([x({type:Number})],ie.prototype,"value",2),E([x({type:Boolean,attribute:"step-label"})],ie.prototype,"stepLabel",2),E([x({type:Boolean})],ie.prototype,"reverse",2),E([x({type:Number,attribute:"lower-bound"})],ie.prototype,"min",1),E([x({type:Number,attribute:"upper-bound"})],ie.prototype,"max",1),E([x({type:Number,attribute:"step"})],ie.prototype,"step",1),E([U("disabled",{waitUntilFirstUpdate:!0})],ie.prototype,"_handleDisabledChange",2),E([U("readonly",{waitUntilFirstUpdate:!0})],ie.prototype,"_handleReadonlyChange",2);customElements.define("qti-slider-interaction",ie);var qs=class extends w{constructor(){super(...arguments);this.value=0;this.render=()=>_`${this.value}`}levenshtein(r,s){let i;if(r.length===0)return s.length;if(s.length===0)return r.length;r.length>s.length&&(i=r,r=s,s=i);let a=r.length,o=s.length,u=Array(a),c,h,p;for(c=0;c<=a;c++)u[c]=c;for(c=1;c<=o;c++){for(p=c,h=1;h<=a;h++)i=u[h-1].toString(),u[h-1]=p,p=Math.min(Number(i)+(s.charAt(c-1)!==r.charAt(h-1)?1:0),p+1,u[h]+1);u[h-1]=p}return p}calculate(){let r=this.firstElementChild,s=this.lastElementChild,i=r.calculate(),a=s.calculate();return this.value=100-this.levenshtein(i.toString().trim(),a.toString().trim())/a.toString().length*100,this.value}};qs.properties={value:{}};customElements.define("qti-custom-operator-levenshtein",qs);var bn=class extends v{render(){return _``}calculate(){var s;let r=(s=this.firstElementChild.calculate())==null?void 0:s.toString();return r?r.replace(/[^0-9$.,]/g,""):""}};customElements.define("qti-custom-operator-numeric",bn);var $s=class extends v{constructor(){super(...arguments);this.render=()=>_`${this.value}`}calculate(){var a;let r,i=(a=this.firstElementChild.calculate())==null?void 0:a.toString();return this.value=i?this.parseNumber(i,r):"",this.value}parseNumber(r,s=navigator.languages){let i=Intl.NumberFormat(s).format(1.1),a=new RegExp(`[^-+0-9${i.charAt(1)}]`,"g"),u=r.replace(a,"").replace(i.charAt(1),".");return parseFloat(u)}};$s.properties={value:{}};customElements.define("qti-custom-operator-parse-numeric-nl",$s);var Tn=class extends v{render(){return _``}calculate(){var s;let r=(s=this.firstElementChild.calculate())==null?void 0:s.toString();return r?r.replace(/ /g,""):""}};customElements.define("qti-custom-operator-remove-spaces",Tn);var gn=class extends v{render(){return _``}calculate(){return this.firstElementChild.calculate().toString().trim()}};customElements.define("qti-custom-operator-trim",gn);var Se=class extends v{constructor(){super(...arguments);this.disabled=!1;this.readonly=!1;this.logger=new We(this,Qe,r=>{this.style.display=r.view==="scorer"?"block":"none"},!0)}textChanged(r){if(this.disabled||this.readonly)return;let s=r.target;this.value=s.value,this.closest("qti-test").manualOutcomeValue=this.value}render(){return _`<input
|
|
392
|
+
part="input"
|
|
393
|
+
type="number"
|
|
394
|
+
spellcheck="false"
|
|
395
|
+
autocomplete="off"
|
|
396
|
+
@keyup=${this.textChanged}
|
|
397
|
+
@change=${this.textChanged}
|
|
398
|
+
placeholder="score"
|
|
399
|
+
min=${this.min}
|
|
400
|
+
max=${this.max}
|
|
401
|
+
.value=${this.value}
|
|
402
|
+
size="10"
|
|
403
|
+
?disabled=${this.disabled}
|
|
404
|
+
?readonly=${this.readonly}
|
|
405
|
+
/>`}};Se.styles=M`
|
|
470
406
|
:host {
|
|
471
|
-
|
|
472
|
-
}
|
|
473
|
-
`,g([y({attribute:"aria-ordervalue",type:Number,reflect:!0})],yr.prototype,"order",2);customElements.define("qti-hotspot-choice",yr);var Yi=class extends re{render(){return v`<div part="ch"><div part="cha"></div></div>
|
|
474
|
-
<slot></slot> `}};Yi=g([V("qti-hottext")],Yi);var Ea=class extends N{};customElements.define("qti-inline-choice",Ea);var Cr=class extends re{render(){return v`<div part="ch"><div part="cha"></div></div>
|
|
475
|
-
<slot></slot> `}};Cr=g([V("qti-simple-choice")],Cr);var Bo=(e,t)=>{class r extends e{constructor(){super(...arguments);this.scale=1;this.ro=new ResizeObserver(n=>{for(let o of n)this.fitToParent(o.contentRect.width)})}connectedCallback(){super.connectedCallback(),this.ro.observe(this),this.fitToParent()}set scales(n){let o=this._scales;this.requestUpdate("prop",o),this.fitToParent()}get scales(){return this._scales}fitToParent(n=this.clientWidth){let o=this.shadowRoot.querySelector(t);if(o){let u=n/o.clientWidth;this.scale=u;let c=-o.clientHeight*(1-u)+"px",h=-o.clientWidth*(1-u)+"px";requestAnimationFrame(()=>{o.style.transform=`scale(${this.scale})`,o.style.margin=`0 ${h} ${c} 0`})}}}return g([y({type:Number,reflect:!0})],r.prototype,"scale",2),g([y({type:Boolean,attribute:!1})],r.prototype,"scales",1),r};var Uo=`/* PK: Tailwind theming file for all qti-components
|
|
476
|
-
Uses tailwind components and utilities from the other files
|
|
477
|
-
|
|
478
|
-
https://play.tailwindcss.com/OFThGk8CbR
|
|
479
|
-
https://play.tailwindcss.com/CeHVrnwgXR
|
|
480
|
-
https://play.tailwindcss.com/JOgoCf81JM
|
|
481
|
-
|
|
482
|
-
We make use of the default prose stylesheet, since it is much better looking then
|
|
483
|
-
the default HTML styling.
|
|
484
|
-
https://play.tailwindcss.com/uj1vGACRJA?layout=preview
|
|
485
|
-
|
|
486
|
-
So first we ( as tailwind does ) reset ALL styling on all default elements
|
|
487
|
-
Then we add the prose stylesheet: the Interaction will / or will not have a no-prose declaration, don't know about that yet
|
|
488
|
-
Then we create tailwind components
|
|
489
|
-
Then we consume these components in our qti-webcomponents
|
|
490
|
-
|
|
491
|
-
outline: used for focus
|
|
492
|
-
ring: used for border around the elements, can be active, its an inner ring, except for
|
|
493
|
-
the dropping well, because that has to surround the drag with the inner ring
|
|
494
|
-
|
|
495
|
-
There are 6 types
|
|
496
|
-
- text : text-entry and extended-text
|
|
497
|
-
- select : inline-choice
|
|
498
|
-
- button : .input-control-hidden qti-choice, qti-hotspot
|
|
499
|
-
- check : qti-choice, qti-hotspot
|
|
500
|
-
- drag : gap-match, match, order, associate
|
|
501
|
-
- drop : gap-match, match, order, associate
|
|
502
|
-
- spot : gap-select-point, graphic-order, qti-graphic-associate
|
|
503
|
-
|
|
504
|
-
trying to get the follower modifiers to work:
|
|
505
|
-
|
|
506
|
-
- sm , for elements inside text
|
|
507
|
-
- lg, , for large readable containers
|
|
508
|
-
- in , inline in text
|
|
509
|
-
|
|
510
|
-
taking into account cursors, select-none for some of the elements
|
|
511
|
-
*/
|
|
512
|
-
|
|
513
|
-
/* FIXMEs
|
|
514
|
-
Outline always on top, sometimes it slips under the hover background
|
|
515
|
-
Intext with inline gaps does not align nicely with existing text https://play.tailwindcss.com/cJEGhvANwM
|
|
516
|
-
modifiers can not be in components, like this example where red should be a modifier inside base https://play.tailwindcss.com/JSnnv1Vvab?file=css
|
|
517
|
-
*/
|
|
518
|
-
|
|
519
|
-
/* @layer base, components, utilities, variants; */
|
|
520
|
-
|
|
521
|
-
/* layout, dimensions, design */
|
|
522
|
-
|
|
523
|
-
/** default styles for all components */
|
|
524
|
-
|
|
525
|
-
*, ::before, ::after {
|
|
526
|
-
--tw-border-spacing-x: 0;
|
|
527
|
-
--tw-border-spacing-y: 0;
|
|
528
|
-
--tw-translate-x: 0;
|
|
529
|
-
--tw-translate-y: 0;
|
|
530
|
-
--tw-rotate: 0;
|
|
531
|
-
--tw-skew-x: 0;
|
|
532
|
-
--tw-skew-y: 0;
|
|
533
|
-
--tw-scale-x: 1;
|
|
534
|
-
--tw-scale-y: 1;
|
|
535
|
-
--tw-pan-x: ;
|
|
536
|
-
--tw-pan-y: ;
|
|
537
|
-
--tw-pinch-zoom: ;
|
|
538
|
-
--tw-scroll-snap-strictness: proximity;
|
|
539
|
-
--tw-gradient-from-position: ;
|
|
540
|
-
--tw-gradient-via-position: ;
|
|
541
|
-
--tw-gradient-to-position: ;
|
|
542
|
-
--tw-ordinal: ;
|
|
543
|
-
--tw-slashed-zero: ;
|
|
544
|
-
--tw-numeric-figure: ;
|
|
545
|
-
--tw-numeric-spacing: ;
|
|
546
|
-
--tw-numeric-fraction: ;
|
|
547
|
-
--tw-ring-inset: ;
|
|
548
|
-
--tw-ring-offset-width: 0px;
|
|
549
|
-
--tw-ring-offset-color: #fff;
|
|
550
|
-
--tw-ring-color: rgb(59 130 246 / 0.5);
|
|
551
|
-
--tw-ring-offset-shadow: 0 0 #0000;
|
|
552
|
-
--tw-ring-shadow: 0 0 #0000;
|
|
553
|
-
--tw-shadow: 0 0 #0000;
|
|
554
|
-
--tw-shadow-colored: 0 0 #0000;
|
|
555
|
-
--tw-blur: ;
|
|
556
|
-
--tw-brightness: ;
|
|
557
|
-
--tw-contrast: ;
|
|
558
|
-
--tw-grayscale: ;
|
|
559
|
-
--tw-hue-rotate: ;
|
|
560
|
-
--tw-invert: ;
|
|
561
|
-
--tw-saturate: ;
|
|
562
|
-
--tw-sepia: ;
|
|
563
|
-
--tw-drop-shadow: ;
|
|
564
|
-
--tw-backdrop-blur: ;
|
|
565
|
-
--tw-backdrop-brightness: ;
|
|
566
|
-
--tw-backdrop-contrast: ;
|
|
567
|
-
--tw-backdrop-grayscale: ;
|
|
568
|
-
--tw-backdrop-hue-rotate: ;
|
|
569
|
-
--tw-backdrop-invert: ;
|
|
570
|
-
--tw-backdrop-opacity: ;
|
|
571
|
-
--tw-backdrop-saturate: ;
|
|
572
|
-
--tw-backdrop-sepia: ;
|
|
573
|
-
}
|
|
574
|
-
|
|
575
|
-
::backdrop {
|
|
576
|
-
--tw-border-spacing-x: 0;
|
|
577
|
-
--tw-border-spacing-y: 0;
|
|
578
|
-
--tw-translate-x: 0;
|
|
579
|
-
--tw-translate-y: 0;
|
|
580
|
-
--tw-rotate: 0;
|
|
581
|
-
--tw-skew-x: 0;
|
|
582
|
-
--tw-skew-y: 0;
|
|
583
|
-
--tw-scale-x: 1;
|
|
584
|
-
--tw-scale-y: 1;
|
|
585
|
-
--tw-pan-x: ;
|
|
586
|
-
--tw-pan-y: ;
|
|
587
|
-
--tw-pinch-zoom: ;
|
|
588
|
-
--tw-scroll-snap-strictness: proximity;
|
|
589
|
-
--tw-gradient-from-position: ;
|
|
590
|
-
--tw-gradient-via-position: ;
|
|
591
|
-
--tw-gradient-to-position: ;
|
|
592
|
-
--tw-ordinal: ;
|
|
593
|
-
--tw-slashed-zero: ;
|
|
594
|
-
--tw-numeric-figure: ;
|
|
595
|
-
--tw-numeric-spacing: ;
|
|
596
|
-
--tw-numeric-fraction: ;
|
|
597
|
-
--tw-ring-inset: ;
|
|
598
|
-
--tw-ring-offset-width: 0px;
|
|
599
|
-
--tw-ring-offset-color: #fff;
|
|
600
|
-
--tw-ring-color: rgb(59 130 246 / 0.5);
|
|
601
|
-
--tw-ring-offset-shadow: 0 0 #0000;
|
|
602
|
-
--tw-ring-shadow: 0 0 #0000;
|
|
603
|
-
--tw-shadow: 0 0 #0000;
|
|
604
|
-
--tw-shadow-colored: 0 0 #0000;
|
|
605
|
-
--tw-blur: ;
|
|
606
|
-
--tw-brightness: ;
|
|
607
|
-
--tw-contrast: ;
|
|
608
|
-
--tw-grayscale: ;
|
|
609
|
-
--tw-hue-rotate: ;
|
|
610
|
-
--tw-invert: ;
|
|
611
|
-
--tw-saturate: ;
|
|
612
|
-
--tw-sepia: ;
|
|
613
|
-
--tw-drop-shadow: ;
|
|
614
|
-
--tw-backdrop-blur: ;
|
|
615
|
-
--tw-backdrop-brightness: ;
|
|
616
|
-
--tw-backdrop-contrast: ;
|
|
617
|
-
--tw-backdrop-grayscale: ;
|
|
618
|
-
--tw-backdrop-hue-rotate: ;
|
|
619
|
-
--tw-backdrop-invert: ;
|
|
620
|
-
--tw-backdrop-opacity: ;
|
|
621
|
-
--tw-backdrop-saturate: ;
|
|
622
|
-
--tw-backdrop-sepia: ;
|
|
623
|
-
}
|
|
624
|
-
|
|
625
|
-
/** The different components, you can choose only one */
|
|
626
|
-
|
|
627
|
-
/* - button : .input-control-hidden qti-choice, qti-hotspot */
|
|
628
|
-
|
|
629
|
-
/* - select : inline-choice */
|
|
630
|
-
|
|
631
|
-
/* - check : qti-choice, qti-hotspot */
|
|
632
|
-
|
|
633
|
-
/* !important, remove for checkbox and radio the active ring, the radio and checkbox will be selected instead */
|
|
634
|
-
|
|
635
|
-
/* - text : text-entry and extended-text */
|
|
636
|
-
|
|
637
|
-
/* - spot : gap-select-point, graphic-order, qti-graphic-associate */
|
|
638
|
-
|
|
639
|
-
/* - drag : gap-match, match, order, associate */
|
|
640
|
-
|
|
641
|
-
/* - drop : gap-match, match, order, associate */
|
|
642
|
-
|
|
643
|
-
/** End components */
|
|
644
|
-
|
|
645
|
-
/* hover, every element has a hover, except disabled( which overrides hover */
|
|
646
|
-
|
|
647
|
-
/* focus, every element has a focus, even drop ( for keyboard access, eventually ) */
|
|
648
|
-
|
|
649
|
-
/* active, choice active class and, used on checkbox and radio where not .qti-input-choice-hidden */
|
|
650
|
-
|
|
651
|
-
/* readonly, overwrites cursor, hover background, outline for focus and ring */
|
|
652
|
-
|
|
653
|
-
/* disabled, make gray state */
|
|
654
|
-
|
|
655
|
-
/* drag in the drop, else the drag in the drop was black and not gray */
|
|
656
|
-
|
|
657
|
-
/** Modifiers */
|
|
658
|
-
|
|
659
|
-
/* PK: There was no utility to reset the ring-inset
|
|
660
|
-
We use this for the drop container, where we want the ring to have an outset
|
|
661
|
-
So the drag, with ring-inset, snugs neatly into the drop with ring-'outset'
|
|
662
|
-
by unsetting the ring-inset */
|
|
663
|
-
|
|
664
|
-
/* intext for elements which has to appear in text
|
|
665
|
-
- intext : gap-match > qti-gap, hottext > hottext, select
|
|
666
|
-
*/
|
|
667
|
-
|
|
668
|
-
/* small for elements which has to appear in text
|
|
669
|
-
- intext : gap-match > qti-gap, hottext > hottext, select
|
|
670
|
-
*/
|
|
671
|
-
|
|
672
|
-
/* @apply gap-0.5 rounded !px-1 !py-0 outline-offset-0 ring-1; */
|
|
673
|
-
|
|
674
|
-
/* QTI Interactions */
|
|
675
|
-
|
|
676
|
-
.qti-underline {
|
|
677
|
-
text-decoration: underline;
|
|
678
|
-
}
|
|
679
|
-
|
|
680
|
-
.qti-align-left {
|
|
681
|
-
text-align: left;
|
|
682
|
-
}
|
|
683
|
-
|
|
684
|
-
.qti-align-center {
|
|
685
|
-
text-align: center;
|
|
686
|
-
}
|
|
687
|
-
|
|
688
|
-
.qti-align-right {
|
|
689
|
-
text-align: right;
|
|
690
|
-
}
|
|
691
|
-
|
|
692
|
-
.qti-valign-top {
|
|
693
|
-
vertical-align: top;
|
|
694
|
-
}
|
|
695
|
-
|
|
696
|
-
.qti-valign-middle {
|
|
697
|
-
vertical-align: middle;
|
|
698
|
-
}
|
|
699
|
-
|
|
700
|
-
.qti-valign-baseline {
|
|
701
|
-
vertical-align: baseline;
|
|
702
|
-
}
|
|
703
|
-
|
|
704
|
-
.qti-valign-bottom {
|
|
705
|
-
vertical-align: bottom;
|
|
706
|
-
}
|
|
707
|
-
|
|
708
|
-
.qti-fullwidth {
|
|
709
|
-
width: 100%;
|
|
710
|
-
}
|
|
711
|
-
|
|
712
|
-
.qti-hidden {
|
|
713
|
-
display: none;
|
|
714
|
-
}
|
|
715
|
-
|
|
716
|
-
.qti-visually-hidden {
|
|
717
|
-
position: fixed !important;
|
|
718
|
-
overflow: hidden;
|
|
719
|
-
width: 1px;
|
|
720
|
-
height: 1px;
|
|
721
|
-
border: 0;
|
|
722
|
-
margin: -1px;
|
|
723
|
-
clip: rect(1px 1px 1px 1px);
|
|
724
|
-
}
|
|
725
|
-
|
|
726
|
-
.qti-bordered {
|
|
727
|
-
padding: 2px;
|
|
728
|
-
border: 1px solid #888;
|
|
729
|
-
}
|
|
730
|
-
|
|
731
|
-
.qti-well {
|
|
732
|
-
min-height: 20px;
|
|
733
|
-
padding: 19px;
|
|
734
|
-
border: 1px solid #e3e3e3;
|
|
735
|
-
border-radius: 4px;
|
|
736
|
-
margin-bottom: 20px;
|
|
737
|
-
background-color: #f5f5f5;
|
|
738
|
-
box-shadow: inset 0 1px 1px rgb(0 0 0 / 5%);
|
|
739
|
-
}
|
|
740
|
-
|
|
741
|
-
.qti-layout-row {
|
|
742
|
-
display: flow-root;
|
|
743
|
-
width: 100%;
|
|
744
|
-
}
|
|
745
|
-
|
|
746
|
-
.qti-layout-row [class*='qti-layout-col'] {
|
|
747
|
-
margin-left: 2.1276595745%;
|
|
748
|
-
float: left;
|
|
749
|
-
}
|
|
750
|
-
|
|
751
|
-
.qti-layout-row [class*='qti-layout-col']:first-child {
|
|
752
|
-
margin-left: 0;
|
|
753
|
-
}
|
|
754
|
-
|
|
755
|
-
.qti-layout-row .qti-layout-col12 {
|
|
756
|
-
width: 100%;
|
|
757
|
-
}
|
|
758
|
-
|
|
759
|
-
.qti-layout-row .qti-layout-offset12 {
|
|
760
|
-
margin-left: 104.2553191489%;
|
|
761
|
-
}
|
|
762
|
-
|
|
763
|
-
.qti-layout-row .qti-layout-offset12:first-child {
|
|
764
|
-
margin-left: 102.1276595745%;
|
|
765
|
-
}
|
|
766
|
-
|
|
767
|
-
.qti-layout-row .qti-layout-col11 {
|
|
768
|
-
width: 91.4893617021%;
|
|
769
|
-
}
|
|
770
|
-
|
|
771
|
-
.qti-layout-row .qti-layout-offset11 {
|
|
772
|
-
margin-left: 95.7446808511%;
|
|
773
|
-
}
|
|
774
|
-
|
|
775
|
-
.qti-layout-row .qti-layout-offset11:first-child {
|
|
776
|
-
margin-left: 93.6170212766%;
|
|
777
|
-
}
|
|
778
|
-
|
|
779
|
-
.qti-layout-row .qti-layout-col10 {
|
|
780
|
-
width: 82.9787234043%;
|
|
781
|
-
}
|
|
782
|
-
|
|
783
|
-
.qti-layout-row .qti-layout-offset10 {
|
|
784
|
-
margin-left: 87.2340425532%;
|
|
785
|
-
}
|
|
786
|
-
|
|
787
|
-
.qti-layout-row .qti-layout-offset10:first-child {
|
|
788
|
-
margin-left: 85.1063829787%;
|
|
789
|
-
}
|
|
790
|
-
|
|
791
|
-
.qti-layout-row .qti-layout-col9 {
|
|
792
|
-
width: 74.4680851064%;
|
|
793
|
-
}
|
|
794
|
-
|
|
795
|
-
.qti-layout-row .qti-layout-offset9 {
|
|
796
|
-
margin-left: 78.7234042553%;
|
|
797
|
-
}
|
|
798
|
-
|
|
799
|
-
.qti-layout-row .qti-layout-offset9:first-child {
|
|
800
|
-
margin-left: 76.5957446809%;
|
|
801
|
-
}
|
|
802
|
-
|
|
803
|
-
.qti-layout-row .qti-layout-col8 {
|
|
804
|
-
width: 65.9574468085%;
|
|
805
|
-
}
|
|
806
|
-
|
|
807
|
-
.qti-layout-row .qti-layout-offset8 {
|
|
808
|
-
margin-left: 70.2127659574%;
|
|
809
|
-
}
|
|
810
|
-
|
|
811
|
-
.qti-layout-row .qti-layout-offset8:first-child {
|
|
812
|
-
margin-left: 68.085106383%;
|
|
813
|
-
}
|
|
814
|
-
|
|
815
|
-
.qti-layout-row .qti-layout-col7 {
|
|
816
|
-
width: 57.4468085106%;
|
|
817
|
-
}
|
|
818
|
-
|
|
819
|
-
.qti-layout-row .qti-layout-offset7 {
|
|
820
|
-
margin-left: 61.7021276596%;
|
|
821
|
-
}
|
|
822
|
-
|
|
823
|
-
.qti-layout-row .qti-layout-offset7:first-child {
|
|
824
|
-
margin-left: 59.5744680851%;
|
|
825
|
-
}
|
|
826
|
-
|
|
827
|
-
.qti-layout-row .qti-layout-col6 {
|
|
828
|
-
width: 48.9361702128%;
|
|
829
|
-
}
|
|
830
|
-
|
|
831
|
-
.qti-layout-row .qti-layout-offset6 {
|
|
832
|
-
margin-left: 53.1914893617%;
|
|
833
|
-
}
|
|
834
|
-
|
|
835
|
-
.qti-layout-row .qti-layout-offset6:first-child {
|
|
836
|
-
margin-left: 51.0638297872%;
|
|
837
|
-
}
|
|
838
|
-
|
|
839
|
-
.qti-layout-row .qti-layout-col5 {
|
|
840
|
-
width: 40.4255319149%;
|
|
841
|
-
}
|
|
842
|
-
|
|
843
|
-
.qti-layout-row .qti-layout-offset5 {
|
|
844
|
-
margin-left: 44.6808510638%;
|
|
845
|
-
}
|
|
846
|
-
|
|
847
|
-
.qti-layout-row .qti-layout-offset5:first-child {
|
|
848
|
-
margin-left: 42.5531914894%;
|
|
849
|
-
}
|
|
850
|
-
|
|
851
|
-
.qti-layout-row .qti-layout-col4 {
|
|
852
|
-
width: 31.914893617%;
|
|
853
|
-
}
|
|
854
|
-
|
|
855
|
-
.qti-layout-row .qti-layout-offset4 {
|
|
856
|
-
margin-left: 36.170212766%;
|
|
857
|
-
}
|
|
858
|
-
|
|
859
|
-
.qti-layout-row .qti-layout-offset4:first-child {
|
|
860
|
-
margin-left: 34.0425531915%;
|
|
861
|
-
}
|
|
862
|
-
|
|
863
|
-
.qti-layout-row .qti-layout-col3 {
|
|
864
|
-
width: 23.4042553191%;
|
|
865
|
-
}
|
|
866
|
-
|
|
867
|
-
.qti-layout-row .qti-layout-offset3 {
|
|
868
|
-
margin-left: 27.6595744681%;
|
|
869
|
-
}
|
|
870
|
-
|
|
871
|
-
.qti-layout-row .qti-layout-offset3:first-child {
|
|
872
|
-
margin-left: 25.5319148936%;
|
|
873
|
-
}
|
|
874
|
-
|
|
875
|
-
.qti-layout-row .qti-layout-col2 {
|
|
876
|
-
width: 14.8936170213%;
|
|
877
|
-
}
|
|
878
|
-
|
|
879
|
-
.qti-layout-row .qti-layout-offset2 {
|
|
880
|
-
margin-left: 19.1489361702%;
|
|
881
|
-
}
|
|
882
|
-
|
|
883
|
-
.qti-layout-row .qti-layout-offset2:first-child {
|
|
884
|
-
margin-left: 17.0212765957%;
|
|
885
|
-
}
|
|
886
|
-
|
|
887
|
-
.qti-layout-row .qti-layout-col1 {
|
|
888
|
-
width: 6.3829787234%;
|
|
889
|
-
}
|
|
890
|
-
|
|
891
|
-
.qti-layout-row .qti-layout-offset1 {
|
|
892
|
-
margin-left: 10.6382978723%;
|
|
893
|
-
}
|
|
894
|
-
|
|
895
|
-
.qti-layout-row .qti-layout-offset1:first-child {
|
|
896
|
-
margin-left: 8.5106382979%;
|
|
897
|
-
}
|
|
898
|
-
|
|
899
|
-
.qti-input-width-1 {
|
|
900
|
-
width: 1ch;
|
|
901
|
-
min-width: 1ch;
|
|
902
|
-
}
|
|
903
|
-
|
|
904
|
-
.qti-input-width-2 {
|
|
905
|
-
width: 2ch;
|
|
906
|
-
min-width: 2ch;
|
|
907
|
-
}
|
|
908
|
-
|
|
909
|
-
.qti-input-width-3 {
|
|
910
|
-
width: 3ch;
|
|
911
|
-
min-width: 3ch;
|
|
912
|
-
}
|
|
913
|
-
|
|
914
|
-
.qti-input-width-4 {
|
|
915
|
-
width: 4ch;
|
|
916
|
-
min-width: 4ch;
|
|
917
|
-
}
|
|
918
|
-
|
|
919
|
-
.qti-input-width-6 {
|
|
920
|
-
width: 6ch;
|
|
921
|
-
min-width: 6ch;
|
|
922
|
-
}
|
|
923
|
-
|
|
924
|
-
.qti-input-width-10 {
|
|
925
|
-
width: 10ch;
|
|
926
|
-
min-width: 10ch;
|
|
927
|
-
}
|
|
928
|
-
|
|
929
|
-
.qti-input-width-15 {
|
|
930
|
-
width: 15ch;
|
|
931
|
-
min-width: 15ch;
|
|
932
|
-
}
|
|
933
|
-
|
|
934
|
-
.qti-input-width-20 {
|
|
935
|
-
width: 20ch;
|
|
936
|
-
min-width: 20ch;
|
|
937
|
-
}
|
|
938
|
-
|
|
939
|
-
.qti-input-width-72 {
|
|
940
|
-
width: 72ch;
|
|
941
|
-
min-width: 72ch;
|
|
942
|
-
}
|
|
943
|
-
|
|
944
|
-
qti-choice-interaction {
|
|
945
|
-
margin-top: 0.5rem;
|
|
946
|
-
margin-bottom: 0.5rem;
|
|
947
|
-
gap: 0.5rem;
|
|
948
|
-
}
|
|
949
|
-
|
|
950
|
-
qti-choice-interaction.qti-input-control-hidden qti-simple-choice {
|
|
951
|
-
cursor: pointer;
|
|
952
|
-
border-radius: 0.375rem;
|
|
953
|
-
--tw-text-opacity: 1;
|
|
954
|
-
color: rgb(17 24 39 / var(--tw-text-opacity));
|
|
955
|
-
outline: 2px solid transparent;
|
|
956
|
-
outline-offset: 2px;
|
|
957
|
-
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
958
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
959
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
960
|
-
--tw-ring-inset: inset;
|
|
961
|
-
--tw-ring-opacity: 1;
|
|
962
|
-
--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity));
|
|
963
|
-
-webkit-user-select: none;
|
|
964
|
-
-moz-user-select: none;
|
|
965
|
-
user-select: none;
|
|
966
|
-
padding-left: 0.75rem;
|
|
967
|
-
padding-right: 0.75rem;
|
|
968
|
-
padding-top: 0.5rem;
|
|
969
|
-
padding-bottom: 0.5rem;
|
|
970
|
-
font-weight: 600;
|
|
971
|
-
--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
972
|
-
--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
|
|
973
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
974
|
-
}
|
|
975
|
-
|
|
976
|
-
qti-choice-interaction.qti-input-control-hidden qti-simple-choice:hover {
|
|
977
|
-
--tw-bg-opacity: 1;
|
|
978
|
-
background-color: rgb(249 250 251 / var(--tw-bg-opacity));
|
|
979
|
-
}
|
|
980
|
-
|
|
981
|
-
qti-choice-interaction.qti-input-control-hidden qti-simple-choice:focus {
|
|
982
|
-
outline-width: 2px;
|
|
983
|
-
outline-color: #93c5fd;
|
|
984
|
-
}
|
|
985
|
-
|
|
986
|
-
qti-choice-interaction.qti-input-control-hidden qti-simple-choice[aria-checked="true"] {
|
|
987
|
-
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
988
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
989
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
990
|
-
--tw-ring-opacity: 1;
|
|
991
|
-
--tw-ring-color: rgb(96 165 250 / var(--tw-ring-opacity));
|
|
992
|
-
}
|
|
993
|
-
|
|
994
|
-
qti-choice-interaction.qti-input-control-hidden qti-simple-choice[aria-disabled="true"] {
|
|
995
|
-
cursor: not-allowed;
|
|
996
|
-
--tw-bg-opacity: 1;
|
|
997
|
-
background-color: rgb(243 244 246 / var(--tw-bg-opacity));
|
|
998
|
-
--tw-text-opacity: 1;
|
|
999
|
-
color: rgb(107 114 128 / var(--tw-text-opacity));
|
|
1000
|
-
--tw-shadow: 0 0 #0000;
|
|
1001
|
-
--tw-shadow-colored: 0 0 #0000;
|
|
1002
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
1003
|
-
--tw-ring-opacity: 1;
|
|
1004
|
-
--tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity));
|
|
1005
|
-
}
|
|
1006
|
-
|
|
1007
|
-
qti-choice-interaction.qti-input-control-hidden qti-simple-choice[aria-disabled="true"] > * {
|
|
1008
|
-
--tw-text-opacity: 1 !important;
|
|
1009
|
-
color: rgb(107 114 128 / var(--tw-text-opacity)) !important;
|
|
1010
|
-
}
|
|
1011
|
-
|
|
1012
|
-
qti-choice-interaction.qti-input-control-hidden qti-simple-choice[aria-readonly="true"] {
|
|
1013
|
-
cursor: pointer;
|
|
1014
|
-
--tw-bg-opacity: 1;
|
|
1015
|
-
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
|
1016
|
-
--tw-shadow: 0 0 #0000;
|
|
1017
|
-
--tw-shadow-colored: 0 0 #0000;
|
|
1018
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
1019
|
-
outline-width: 0px;
|
|
1020
|
-
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
1021
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
1022
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
1023
|
-
}
|
|
1024
|
-
|
|
1025
|
-
qti-choice-interaction:not(.qti-input-control-hidden) qti-simple-choice {
|
|
1026
|
-
cursor: pointer;
|
|
1027
|
-
border-radius: 0.375rem;
|
|
1028
|
-
--tw-text-opacity: 1;
|
|
1029
|
-
color: rgb(17 24 39 / var(--tw-text-opacity));
|
|
1030
|
-
outline: 2px solid transparent;
|
|
1031
|
-
outline-offset: 2px;
|
|
1032
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
1033
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
1034
|
-
--tw-ring-inset: inset;
|
|
1035
|
-
--tw-ring-opacity: 1;
|
|
1036
|
-
--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity));
|
|
1037
|
-
display: flex;
|
|
1038
|
-
-webkit-user-select: none;
|
|
1039
|
-
-moz-user-select: none;
|
|
1040
|
-
user-select: none;
|
|
1041
|
-
align-items: center;
|
|
1042
|
-
gap: 0.5rem;
|
|
1043
|
-
border-radius: 9999px;
|
|
1044
|
-
padding-left: 0.25rem;
|
|
1045
|
-
padding-right: 0.25rem;
|
|
1046
|
-
padding-top: 0.125rem;
|
|
1047
|
-
padding-bottom: 0.125rem;
|
|
1048
|
-
--tw-shadow: 0 0 #0000;
|
|
1049
|
-
--tw-shadow-colored: 0 0 #0000;
|
|
1050
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
1051
|
-
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;
|
|
1052
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;
|
|
1053
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000) !important;
|
|
1054
|
-
}
|
|
1055
|
-
|
|
1056
|
-
qti-choice-interaction:not(.qti-input-control-hidden) qti-simple-choice::part(cha) {
|
|
1057
|
-
/* let the checkmark or radio circle already take up space, else when checking everyhing collapses */
|
|
1058
|
-
height: 66.666667%;
|
|
1059
|
-
width: 66.666667%;
|
|
1060
|
-
}
|
|
1061
|
-
|
|
1062
|
-
qti-choice-interaction:not(.qti-input-control-hidden) qti-simple-choice[role='radio']::part(ch) {
|
|
1063
|
-
display: flex;
|
|
1064
|
-
height: 1.25rem;
|
|
1065
|
-
width: 1.25rem;
|
|
1066
|
-
flex-shrink: 0;
|
|
1067
|
-
align-items: center;
|
|
1068
|
-
justify-content: center;
|
|
1069
|
-
border-radius: 9999px;
|
|
1070
|
-
--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
1071
|
-
--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
|
|
1072
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
1073
|
-
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
1074
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
1075
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
1076
|
-
--tw-ring-inset: inset;
|
|
1077
|
-
--tw-ring-opacity: 1;
|
|
1078
|
-
--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity));
|
|
1079
|
-
}
|
|
1080
|
-
|
|
1081
|
-
qti-choice-interaction:not(.qti-input-control-hidden) qti-simple-choice[role='radio'][aria-checked='true']::part(cha) {
|
|
1082
|
-
border-radius: 9999px;
|
|
1083
|
-
--tw-bg-opacity: 1;
|
|
1084
|
-
background-color: rgb(59 130 246 / var(--tw-bg-opacity));
|
|
1085
|
-
}
|
|
1086
|
-
|
|
1087
|
-
qti-choice-interaction:not(.qti-input-control-hidden) qti-simple-choice[role='checkbox']::part(ch) {
|
|
1088
|
-
display: flex;
|
|
1089
|
-
height: 1.25rem;
|
|
1090
|
-
width: 1.25rem;
|
|
1091
|
-
flex-shrink: 0;
|
|
1092
|
-
align-items: center;
|
|
1093
|
-
justify-content: center;
|
|
1094
|
-
border-radius: 0.25rem;
|
|
1095
|
-
--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
1096
|
-
--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
|
|
1097
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
1098
|
-
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
1099
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
1100
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
1101
|
-
--tw-ring-inset: inset;
|
|
1102
|
-
--tw-ring-opacity: 1;
|
|
1103
|
-
--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity));
|
|
1104
|
-
}
|
|
1105
|
-
|
|
1106
|
-
qti-choice-interaction:not(.qti-input-control-hidden) qti-simple-choice[role='checkbox'][aria-checked='true']::part(cha) {
|
|
1107
|
-
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='red' width='100%' height='100%' viewBox='0 0 24 24'%3E%3Cpath d='M20.285 2l-11.285 11.567-5.286-5.011-3.714 3.716 9 8.728 15-15.285z'/%3E%3C/svg%3E");
|
|
1108
|
-
}
|
|
1109
|
-
|
|
1110
|
-
qti-choice-interaction:not(.qti-input-control-hidden) qti-simple-choice:hover {
|
|
1111
|
-
--tw-bg-opacity: 1;
|
|
1112
|
-
background-color: rgb(249 250 251 / var(--tw-bg-opacity));
|
|
1113
|
-
}
|
|
1114
|
-
|
|
1115
|
-
qti-choice-interaction:not(.qti-input-control-hidden) qti-simple-choice:focus {
|
|
1116
|
-
outline-width: 2px;
|
|
1117
|
-
outline-color: #93c5fd;
|
|
1118
|
-
}
|
|
1119
|
-
|
|
1120
|
-
qti-choice-interaction:not(.qti-input-control-hidden) qti-simple-choice[aria-checked="true"] {
|
|
1121
|
-
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
1122
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
1123
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
1124
|
-
--tw-ring-opacity: 1;
|
|
1125
|
-
--tw-ring-color: rgb(96 165 250 / var(--tw-ring-opacity));
|
|
1126
|
-
}
|
|
1127
|
-
|
|
1128
|
-
qti-choice-interaction:not(.qti-input-control-hidden) qti-simple-choice[aria-disabled="true"] {
|
|
1129
|
-
cursor: not-allowed;
|
|
1130
|
-
--tw-bg-opacity: 1;
|
|
1131
|
-
background-color: rgb(243 244 246 / var(--tw-bg-opacity));
|
|
1132
|
-
--tw-text-opacity: 1;
|
|
1133
|
-
color: rgb(107 114 128 / var(--tw-text-opacity));
|
|
1134
|
-
--tw-shadow: 0 0 #0000;
|
|
1135
|
-
--tw-shadow-colored: 0 0 #0000;
|
|
1136
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
1137
|
-
--tw-ring-opacity: 1;
|
|
1138
|
-
--tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity));
|
|
1139
|
-
}
|
|
1140
|
-
|
|
1141
|
-
qti-choice-interaction:not(.qti-input-control-hidden) qti-simple-choice[aria-disabled="true"] > * {
|
|
1142
|
-
--tw-text-opacity: 1 !important;
|
|
1143
|
-
color: rgb(107 114 128 / var(--tw-text-opacity)) !important;
|
|
1144
|
-
}
|
|
1145
|
-
|
|
1146
|
-
qti-choice-interaction:not(.qti-input-control-hidden) qti-simple-choice[aria-readonly="true"] {
|
|
1147
|
-
cursor: pointer;
|
|
1148
|
-
--tw-bg-opacity: 1;
|
|
1149
|
-
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
|
1150
|
-
--tw-shadow: 0 0 #0000;
|
|
1151
|
-
--tw-shadow-colored: 0 0 #0000;
|
|
1152
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
1153
|
-
outline-width: 0px;
|
|
1154
|
-
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
1155
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
1156
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
1157
|
-
}
|
|
1158
|
-
|
|
1159
|
-
qti-text-entry-interaction {
|
|
1160
|
-
margin-top: 0.5rem;
|
|
1161
|
-
margin-bottom: 0.5rem;
|
|
1162
|
-
}
|
|
1163
|
-
|
|
1164
|
-
qti-text-entry-interaction::part(input) {
|
|
1165
|
-
cursor: pointer;
|
|
1166
|
-
color: rgb(17 24 39 / var(--tw-text-opacity));
|
|
1167
|
-
outline: 2px solid transparent;
|
|
1168
|
-
outline-offset: 2px;
|
|
1169
|
-
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
1170
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
1171
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
1172
|
-
--tw-ring-inset: inset;
|
|
1173
|
-
--tw-ring-opacity: 1;
|
|
1174
|
-
--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity));
|
|
1175
|
-
cursor: text;
|
|
1176
|
-
border-radius: 0.125rem;
|
|
1177
|
-
padding: 0.75rem;
|
|
1178
|
-
--tw-text-opacity: 1;
|
|
1179
|
-
color: rgb(75 85 99 / var(--tw-text-opacity));
|
|
1180
|
-
--tw-shadow: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
|
|
1181
|
-
--tw-shadow-colored: inset 0 2px 4px 0 var(--tw-shadow-color);
|
|
1182
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
1183
|
-
}
|
|
1184
|
-
|
|
1185
|
-
qti-text-entry-interaction::part(input):hover {
|
|
1186
|
-
--tw-bg-opacity: 1;
|
|
1187
|
-
background-color: rgb(249 250 251 / var(--tw-bg-opacity));
|
|
1188
|
-
}
|
|
1189
|
-
|
|
1190
|
-
qti-text-entry-interaction::part(input):focus {
|
|
1191
|
-
outline-width: 2px;
|
|
1192
|
-
outline-color: #93c5fd;
|
|
1193
|
-
}
|
|
1194
|
-
|
|
1195
|
-
qti-extended-text-interaction {
|
|
1196
|
-
margin-top: 0.5rem;
|
|
1197
|
-
margin-bottom: 0.5rem;
|
|
1198
|
-
}
|
|
1199
|
-
|
|
1200
|
-
qti-extended-text-interaction::part(textarea) {
|
|
1201
|
-
cursor: pointer;
|
|
1202
|
-
color: rgb(17 24 39 / var(--tw-text-opacity));
|
|
1203
|
-
outline: 2px solid transparent;
|
|
1204
|
-
outline-offset: 2px;
|
|
1205
|
-
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
1206
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
1207
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
1208
|
-
--tw-ring-inset: inset;
|
|
1209
|
-
--tw-ring-opacity: 1;
|
|
1210
|
-
--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity));
|
|
1211
|
-
cursor: text;
|
|
1212
|
-
border-radius: 0.125rem;
|
|
1213
|
-
padding: 0.75rem;
|
|
1214
|
-
--tw-text-opacity: 1;
|
|
1215
|
-
color: rgb(75 85 99 / var(--tw-text-opacity));
|
|
1216
|
-
--tw-shadow: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
|
|
1217
|
-
--tw-shadow-colored: inset 0 2px 4px 0 var(--tw-shadow-color);
|
|
1218
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
1219
|
-
}
|
|
1220
|
-
|
|
1221
|
-
qti-extended-text-interaction::part(textarea):hover {
|
|
1222
|
-
--tw-bg-opacity: 1;
|
|
1223
|
-
background-color: rgb(249 250 251 / var(--tw-bg-opacity));
|
|
1224
|
-
}
|
|
1225
|
-
|
|
1226
|
-
qti-extended-text-interaction::part(textarea):focus {
|
|
1227
|
-
outline-width: 2px;
|
|
1228
|
-
outline-color: #93c5fd;
|
|
1229
|
-
}
|
|
1230
|
-
|
|
1231
|
-
qti-gap-match-interaction {
|
|
1232
|
-
margin-top: 0.5rem;
|
|
1233
|
-
margin-bottom: 0.5rem;
|
|
1234
|
-
line-height: 2rem;
|
|
1235
|
-
}
|
|
1236
|
-
|
|
1237
|
-
qti-gap-match-interaction qti-gap-text {
|
|
1238
|
-
cursor: pointer;
|
|
1239
|
-
border-radius: 0.375rem;
|
|
1240
|
-
--tw-text-opacity: 1;
|
|
1241
|
-
color: rgb(17 24 39 / var(--tw-text-opacity));
|
|
1242
|
-
outline: 2px solid transparent;
|
|
1243
|
-
outline-offset: 2px;
|
|
1244
|
-
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
1245
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
1246
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
1247
|
-
--tw-ring-inset: inset;
|
|
1248
|
-
--tw-ring-opacity: 1;
|
|
1249
|
-
--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity));
|
|
1250
|
-
cursor: grab;
|
|
1251
|
-
-webkit-user-select: none;
|
|
1252
|
-
-moz-user-select: none;
|
|
1253
|
-
user-select: none;
|
|
1254
|
-
--tw-bg-opacity: 1;
|
|
1255
|
-
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
|
1256
|
-
padding-top: 0.25rem;
|
|
1257
|
-
padding-bottom: 0.25rem;
|
|
1258
|
-
font-weight: 600;
|
|
1259
|
-
--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
1260
|
-
--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
|
|
1261
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
1262
|
-
background-image: radial-gradient(
|
|
1263
|
-
circle at center,
|
|
1264
|
-
rgba(0, 0, 0, 0.1) 0,
|
|
1265
|
-
rgb(0, 0, 0, 0.1) 2px,
|
|
1266
|
-
white 2px,
|
|
1267
|
-
white 100%
|
|
1268
|
-
);
|
|
1269
|
-
background-repeat: repeat-y;
|
|
1270
|
-
background-position: left 2px;
|
|
1271
|
-
background-size: 14px 8px;
|
|
1272
|
-
padding-left: 0.75rem;
|
|
1273
|
-
padding-right: 0.5rem;
|
|
1274
|
-
line-height: 1.5;
|
|
1275
|
-
}
|
|
1276
|
-
|
|
1277
|
-
qti-gap-match-interaction qti-gap-text:hover {
|
|
1278
|
-
--tw-bg-opacity: 1;
|
|
1279
|
-
background-color: rgb(249 250 251 / var(--tw-bg-opacity));
|
|
1280
|
-
}
|
|
1281
|
-
|
|
1282
|
-
qti-gap-match-interaction qti-gap-text:focus {
|
|
1283
|
-
outline-width: 2px;
|
|
1284
|
-
outline-color: #93c5fd;
|
|
1285
|
-
}
|
|
1286
|
-
|
|
1287
|
-
qti-gap-match-interaction qti-gap {
|
|
1288
|
-
cursor: pointer;
|
|
1289
|
-
border-radius: 0.375rem;
|
|
1290
|
-
--tw-text-opacity: 1;
|
|
1291
|
-
color: rgb(17 24 39 / var(--tw-text-opacity));
|
|
1292
|
-
outline: 2px solid transparent;
|
|
1293
|
-
outline-offset: 2px;
|
|
1294
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
1295
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
1296
|
-
--tw-ring-inset: inset;
|
|
1297
|
-
position: relative;
|
|
1298
|
-
--tw-bg-opacity: 1;
|
|
1299
|
-
background-color: rgb(249 250 251 / var(--tw-bg-opacity));
|
|
1300
|
-
--tw-shadow: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
|
|
1301
|
-
--tw-shadow-colored: inset 0 2px 4px 0 var(--tw-shadow-color);
|
|
1302
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
1303
|
-
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
1304
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
1305
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
1306
|
-
--tw-ring-opacity: 1;
|
|
1307
|
-
--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity));
|
|
1308
|
-
--tw-ring-offset-width: 1px;
|
|
1309
|
-
--tw-ring-inset: unset;
|
|
1310
|
-
display: inline-flex;
|
|
1311
|
-
line-height: 1.5;
|
|
1312
|
-
}
|
|
1313
|
-
|
|
1314
|
-
qti-gap-match-interaction qti-gap:hover {
|
|
1315
|
-
--tw-bg-opacity: 1;
|
|
1316
|
-
background-color: rgb(249 250 251 / var(--tw-bg-opacity));
|
|
1317
|
-
}
|
|
1318
|
-
|
|
1319
|
-
qti-gap-match-interaction qti-gap:focus {
|
|
1320
|
-
outline-width: 2px;
|
|
1321
|
-
outline-color: #93c5fd;
|
|
1322
|
-
}
|
|
1323
|
-
|
|
1324
|
-
qti-gap-match-interaction qti-gap {
|
|
1325
|
-
width: 8rem;
|
|
1326
|
-
}
|
|
1327
|
-
|
|
1328
|
-
/* PK: should be set in the javascript, default 100px, or listening to data-width attribute according to the spec */
|
|
1329
|
-
|
|
1330
|
-
qti-gap-match-interaction qti-gap:empty:after {
|
|
1331
|
-
content: '\\0000a0'; /* when empty, put a space in it */
|
|
1332
|
-
}
|
|
1333
|
-
|
|
1334
|
-
qti-gap-match-interaction qti-gap:not(:empty) {
|
|
1335
|
-
display: inline-flex;
|
|
1336
|
-
width: auto;
|
|
1337
|
-
padding: 0px;
|
|
1338
|
-
--tw-shadow: 0 0 #0000;
|
|
1339
|
-
--tw-shadow-colored: 0 0 #0000;
|
|
1340
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
1341
|
-
}
|
|
1342
|
-
|
|
1343
|
-
qti-gap-match-interaction qti-gap:not(:empty) > * {
|
|
1344
|
-
flex: 1 1 0%;
|
|
1345
|
-
--tw-rotate: 0deg;
|
|
1346
|
-
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
1347
|
-
--tw-shadow: 0 0 #0000;
|
|
1348
|
-
--tw-shadow-colored: 0 0 #0000;
|
|
1349
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
1350
|
-
--tw-ring-opacity: 1;
|
|
1351
|
-
--tw-ring-color: rgb(229 231 235 / var(--tw-ring-opacity));
|
|
1352
|
-
}
|
|
1353
|
-
|
|
1354
|
-
qti-hotspot-interaction {
|
|
1355
|
-
margin-top: 0.5rem;
|
|
1356
|
-
margin-bottom: 0.5rem;
|
|
1357
|
-
}
|
|
1358
|
-
|
|
1359
|
-
qti-hotspot-interaction qti-hotspot-choice:hover {
|
|
1360
|
-
background-color: rgb(219 234 254 / var(--tw-bg-opacity));
|
|
1361
|
-
--tw-bg-opacity: 0.3;
|
|
1362
|
-
}
|
|
1363
|
-
|
|
1364
|
-
qti-hotspot-interaction qti-hotspot-choice {
|
|
1365
|
-
|
|
1366
|
-
/* &::after {
|
|
1367
|
-
content: '';
|
|
1368
|
-
@apply absolute top-0 block origin-center bg-white;
|
|
1369
|
-
height: 95%;
|
|
1370
|
-
width: 95%;
|
|
1371
|
-
clip-path: inherit;
|
|
1372
|
-
} */
|
|
1373
|
-
}
|
|
1374
|
-
|
|
1375
|
-
qti-hotspot-interaction qti-hotspot-choice[shape='circle'] {
|
|
1376
|
-
cursor: pointer;
|
|
1377
|
-
border-radius: 0.375rem;
|
|
1378
|
-
--tw-text-opacity: 1;
|
|
1379
|
-
color: rgb(17 24 39 / var(--tw-text-opacity));
|
|
1380
|
-
outline: 2px solid transparent;
|
|
1381
|
-
outline-offset: 2px;
|
|
1382
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
1383
|
-
--tw-ring-inset: inset;
|
|
1384
|
-
--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity));
|
|
1385
|
-
height: 100%;
|
|
1386
|
-
width: 100%;
|
|
1387
|
-
background-color: transparent;
|
|
1388
|
-
padding: 0px;
|
|
1389
|
-
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
1390
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
1391
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
1392
|
-
--tw-ring-opacity: 1;
|
|
1393
|
-
--tw-ring-color: rgb(17 24 39 / var(--tw-ring-opacity));
|
|
1394
|
-
border-radius: 9999px;
|
|
1395
|
-
}
|
|
1396
|
-
|
|
1397
|
-
qti-hotspot-interaction qti-hotspot-choice[shape='circle']:hover {
|
|
1398
|
-
--tw-ring-opacity: 1;
|
|
1399
|
-
--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity));
|
|
1400
|
-
}
|
|
1401
|
-
|
|
1402
|
-
qti-hotspot-interaction qti-hotspot-choice[shape='circle']:focus {
|
|
1403
|
-
outline-width: 2px;
|
|
1404
|
-
outline-color: #93c5fd;
|
|
1405
|
-
}
|
|
1406
|
-
|
|
1407
|
-
qti-hotspot-interaction qti-hotspot-choice[shape='circle'][aria-checked="true"] {
|
|
1408
|
-
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
1409
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
1410
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
1411
|
-
--tw-ring-opacity: 1;
|
|
1412
|
-
--tw-ring-color: rgb(96 165 250 / var(--tw-ring-opacity));
|
|
1413
|
-
}
|
|
1414
|
-
|
|
1415
|
-
qti-hotspot-interaction qti-hotspot-choice[shape='circle'][aria-disabled="true"] {
|
|
1416
|
-
cursor: not-allowed;
|
|
1417
|
-
--tw-bg-opacity: 1;
|
|
1418
|
-
background-color: rgb(243 244 246 / var(--tw-bg-opacity));
|
|
1419
|
-
--tw-text-opacity: 1;
|
|
1420
|
-
color: rgb(107 114 128 / var(--tw-text-opacity));
|
|
1421
|
-
--tw-shadow: 0 0 #0000;
|
|
1422
|
-
--tw-shadow-colored: 0 0 #0000;
|
|
1423
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
1424
|
-
--tw-ring-opacity: 1;
|
|
1425
|
-
--tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity));
|
|
1426
|
-
}
|
|
1427
|
-
|
|
1428
|
-
qti-hotspot-interaction qti-hotspot-choice[shape='circle'][aria-disabled="true"] > * {
|
|
1429
|
-
--tw-text-opacity: 1 !important;
|
|
1430
|
-
color: rgb(107 114 128 / var(--tw-text-opacity)) !important;
|
|
1431
|
-
}
|
|
1432
|
-
|
|
1433
|
-
qti-hotspot-interaction qti-hotspot-choice[shape='circle'][aria-readonly="true"] {
|
|
1434
|
-
cursor: pointer;
|
|
1435
|
-
--tw-bg-opacity: 1;
|
|
1436
|
-
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
|
1437
|
-
--tw-shadow: 0 0 #0000;
|
|
1438
|
-
--tw-shadow-colored: 0 0 #0000;
|
|
1439
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
1440
|
-
outline-width: 0px;
|
|
1441
|
-
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
1442
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
1443
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
1444
|
-
}
|
|
1445
|
-
|
|
1446
|
-
qti-hotspot-interaction qti-hotspot-choice[shape='rect'] {
|
|
1447
|
-
cursor: pointer;
|
|
1448
|
-
border-radius: 0.375rem;
|
|
1449
|
-
--tw-text-opacity: 1;
|
|
1450
|
-
color: rgb(17 24 39 / var(--tw-text-opacity));
|
|
1451
|
-
outline: 2px solid transparent;
|
|
1452
|
-
outline-offset: 2px;
|
|
1453
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
1454
|
-
--tw-ring-inset: inset;
|
|
1455
|
-
--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity));
|
|
1456
|
-
height: 100%;
|
|
1457
|
-
width: 100%;
|
|
1458
|
-
background-color: transparent;
|
|
1459
|
-
padding: 0px;
|
|
1460
|
-
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
1461
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
1462
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
1463
|
-
--tw-ring-opacity: 1;
|
|
1464
|
-
--tw-ring-color: rgb(17 24 39 / var(--tw-ring-opacity));
|
|
1465
|
-
}
|
|
1466
|
-
|
|
1467
|
-
qti-hotspot-interaction qti-hotspot-choice[shape='rect']:hover {
|
|
1468
|
-
--tw-ring-opacity: 1;
|
|
1469
|
-
--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity));
|
|
1470
|
-
}
|
|
1471
|
-
|
|
1472
|
-
qti-hotspot-interaction qti-hotspot-choice[shape='rect']:focus {
|
|
1473
|
-
outline-width: 2px;
|
|
1474
|
-
outline-color: #93c5fd;
|
|
1475
|
-
}
|
|
1476
|
-
|
|
1477
|
-
qti-hotspot-interaction qti-hotspot-choice[shape='rect'][aria-checked="true"] {
|
|
1478
|
-
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
1479
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
1480
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
1481
|
-
--tw-ring-opacity: 1;
|
|
1482
|
-
--tw-ring-color: rgb(96 165 250 / var(--tw-ring-opacity));
|
|
1483
|
-
}
|
|
1484
|
-
|
|
1485
|
-
qti-hotspot-interaction qti-hotspot-choice[shape='rect'][aria-disabled="true"] {
|
|
1486
|
-
cursor: not-allowed;
|
|
1487
|
-
--tw-bg-opacity: 1;
|
|
1488
|
-
background-color: rgb(243 244 246 / var(--tw-bg-opacity));
|
|
1489
|
-
--tw-text-opacity: 1;
|
|
1490
|
-
color: rgb(107 114 128 / var(--tw-text-opacity));
|
|
1491
|
-
--tw-shadow: 0 0 #0000;
|
|
1492
|
-
--tw-shadow-colored: 0 0 #0000;
|
|
1493
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
1494
|
-
--tw-ring-opacity: 1;
|
|
1495
|
-
--tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity));
|
|
1496
|
-
}
|
|
1497
|
-
|
|
1498
|
-
qti-hotspot-interaction qti-hotspot-choice[shape='rect'][aria-disabled="true"] > * {
|
|
1499
|
-
--tw-text-opacity: 1 !important;
|
|
1500
|
-
color: rgb(107 114 128 / var(--tw-text-opacity)) !important;
|
|
1501
|
-
}
|
|
1502
|
-
|
|
1503
|
-
qti-hotspot-interaction qti-hotspot-choice[shape='rect'][aria-readonly="true"] {
|
|
1504
|
-
cursor: pointer;
|
|
1505
|
-
--tw-bg-opacity: 1;
|
|
1506
|
-
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
|
1507
|
-
--tw-shadow: 0 0 #0000;
|
|
1508
|
-
--tw-shadow-colored: 0 0 #0000;
|
|
1509
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
1510
|
-
outline-width: 0px;
|
|
1511
|
-
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
1512
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
1513
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
1514
|
-
}
|
|
1515
|
-
|
|
1516
|
-
qti-hotspot-interaction qti-hotspot-choice[shape='poly']:hover {
|
|
1517
|
-
--tw-bg-opacity: 1;
|
|
1518
|
-
background-color: rgb(249 250 251 / var(--tw-bg-opacity));
|
|
1519
|
-
}
|
|
1520
|
-
|
|
1521
|
-
qti-hotspot-interaction qti-hotspot-choice[shape='poly']:focus {
|
|
1522
|
-
outline-width: 2px;
|
|
1523
|
-
outline-color: #93c5fd;
|
|
1524
|
-
}
|
|
1525
|
-
|
|
1526
|
-
qti-hotspot-interaction qti-hotspot-choice[shape='poly'][aria-checked="true"] {
|
|
1527
|
-
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
1528
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
1529
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
1530
|
-
--tw-ring-opacity: 1;
|
|
1531
|
-
--tw-ring-color: rgb(96 165 250 / var(--tw-ring-opacity));
|
|
1532
|
-
}
|
|
1533
|
-
|
|
1534
|
-
qti-hotspot-interaction qti-hotspot-choice[shape='poly'][aria-disabled="true"] {
|
|
1535
|
-
cursor: not-allowed;
|
|
1536
|
-
--tw-bg-opacity: 1;
|
|
1537
|
-
background-color: rgb(243 244 246 / var(--tw-bg-opacity));
|
|
1538
|
-
--tw-text-opacity: 1;
|
|
1539
|
-
color: rgb(107 114 128 / var(--tw-text-opacity));
|
|
1540
|
-
--tw-shadow: 0 0 #0000;
|
|
1541
|
-
--tw-shadow-colored: 0 0 #0000;
|
|
1542
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
1543
|
-
--tw-ring-opacity: 1;
|
|
1544
|
-
--tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity));
|
|
1545
|
-
}
|
|
1546
|
-
|
|
1547
|
-
qti-hotspot-interaction qti-hotspot-choice[shape='poly'][aria-disabled="true"] > * {
|
|
1548
|
-
--tw-text-opacity: 1 !important;
|
|
1549
|
-
color: rgb(107 114 128 / var(--tw-text-opacity)) !important;
|
|
1550
|
-
}
|
|
1551
|
-
|
|
1552
|
-
qti-hotspot-interaction qti-hotspot-choice[shape='poly'][aria-readonly="true"] {
|
|
1553
|
-
cursor: pointer;
|
|
1554
|
-
--tw-bg-opacity: 1;
|
|
1555
|
-
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
|
1556
|
-
--tw-shadow: 0 0 #0000;
|
|
1557
|
-
--tw-shadow-colored: 0 0 #0000;
|
|
1558
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
1559
|
-
outline-width: 0px;
|
|
1560
|
-
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
1561
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
1562
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
1563
|
-
}
|
|
1564
|
-
|
|
1565
|
-
qti-hotspot-interaction qti-hotspot-choice[shape='poly'][aria-checked='true'] {
|
|
1566
|
-
--tw-bg-opacity: 1;
|
|
1567
|
-
background-color: rgb(59 130 246 / var(--tw-bg-opacity));
|
|
1568
|
-
}
|
|
1569
|
-
|
|
1570
|
-
qti-hottext-interaction {
|
|
1571
|
-
margin-top: 0.5rem;
|
|
1572
|
-
margin-bottom: 0.5rem;
|
|
1573
|
-
}
|
|
1574
|
-
|
|
1575
|
-
qti-hottext-interaction.qti-input-control-hidden qti-hottext {
|
|
1576
|
-
cursor: pointer;
|
|
1577
|
-
border-radius: 0.375rem;
|
|
1578
|
-
--tw-text-opacity: 1;
|
|
1579
|
-
color: rgb(17 24 39 / var(--tw-text-opacity));
|
|
1580
|
-
outline: 2px solid transparent;
|
|
1581
|
-
outline-offset: 2px;
|
|
1582
|
-
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
1583
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
1584
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
1585
|
-
--tw-ring-inset: inset;
|
|
1586
|
-
--tw-ring-opacity: 1;
|
|
1587
|
-
--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity));
|
|
1588
|
-
-webkit-user-select: none;
|
|
1589
|
-
-moz-user-select: none;
|
|
1590
|
-
user-select: none;
|
|
1591
|
-
padding-left: 0.75rem;
|
|
1592
|
-
padding-right: 0.75rem;
|
|
1593
|
-
padding-top: 0.5rem;
|
|
1594
|
-
padding-bottom: 0.5rem;
|
|
1595
|
-
font-weight: 600;
|
|
1596
|
-
--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
1597
|
-
--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
|
|
1598
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
1599
|
-
display: inline-flex;
|
|
1600
|
-
|
|
1601
|
-
/* @apply inline-flex gap-1 px-1 py-0 align-bottom font-normal ring-offset-0; */
|
|
1602
|
-
/* @apply gap-0.5 rounded !px-1 !py-0 outline-offset-0 ring-1; */
|
|
1603
|
-
}
|
|
1604
|
-
|
|
1605
|
-
qti-hottext-interaction.qti-input-control-hidden qti-hottext:hover {
|
|
1606
|
-
--tw-bg-opacity: 1;
|
|
1607
|
-
background-color: rgb(249 250 251 / var(--tw-bg-opacity));
|
|
1608
|
-
}
|
|
1609
|
-
|
|
1610
|
-
qti-hottext-interaction.qti-input-control-hidden qti-hottext:focus {
|
|
1611
|
-
outline-width: 2px;
|
|
1612
|
-
outline-color: #93c5fd;
|
|
1613
|
-
}
|
|
1614
|
-
|
|
1615
|
-
qti-hottext-interaction.qti-input-control-hidden qti-hottext[aria-checked="true"] {
|
|
1616
|
-
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
1617
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
1618
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
1619
|
-
--tw-ring-opacity: 1;
|
|
1620
|
-
--tw-ring-color: rgb(96 165 250 / var(--tw-ring-opacity));
|
|
1621
|
-
}
|
|
1622
|
-
|
|
1623
|
-
qti-hottext-interaction.qti-input-control-hidden qti-hottext[aria-disabled="true"] {
|
|
1624
|
-
cursor: not-allowed;
|
|
1625
|
-
--tw-bg-opacity: 1;
|
|
1626
|
-
background-color: rgb(243 244 246 / var(--tw-bg-opacity));
|
|
1627
|
-
--tw-text-opacity: 1;
|
|
1628
|
-
color: rgb(107 114 128 / var(--tw-text-opacity));
|
|
1629
|
-
--tw-shadow: 0 0 #0000;
|
|
1630
|
-
--tw-shadow-colored: 0 0 #0000;
|
|
1631
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
1632
|
-
--tw-ring-opacity: 1;
|
|
1633
|
-
--tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity));
|
|
1634
|
-
}
|
|
1635
|
-
|
|
1636
|
-
qti-hottext-interaction.qti-input-control-hidden qti-hottext[aria-disabled="true"] > * {
|
|
1637
|
-
--tw-text-opacity: 1 !important;
|
|
1638
|
-
color: rgb(107 114 128 / var(--tw-text-opacity)) !important;
|
|
1639
|
-
}
|
|
1640
|
-
|
|
1641
|
-
qti-hottext-interaction.qti-input-control-hidden qti-hottext[aria-readonly="true"] {
|
|
1642
|
-
cursor: pointer;
|
|
1643
|
-
--tw-bg-opacity: 1;
|
|
1644
|
-
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
|
1645
|
-
--tw-shadow: 0 0 #0000;
|
|
1646
|
-
--tw-shadow-colored: 0 0 #0000;
|
|
1647
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
1648
|
-
outline-width: 0px;
|
|
1649
|
-
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
1650
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
1651
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
1652
|
-
}
|
|
1653
|
-
|
|
1654
|
-
qti-hottext-interaction.qti-input-control-hidden qti-hottext::part(ch) {
|
|
1655
|
-
display: none !important;
|
|
1656
|
-
}
|
|
1657
|
-
|
|
1658
|
-
qti-hottext-interaction:not(.qti-input-control-hidden) qti-hottext {
|
|
1659
|
-
cursor: pointer;
|
|
1660
|
-
border-radius: 0.375rem;
|
|
1661
|
-
--tw-text-opacity: 1;
|
|
1662
|
-
color: rgb(17 24 39 / var(--tw-text-opacity));
|
|
1663
|
-
outline: 2px solid transparent;
|
|
1664
|
-
outline-offset: 2px;
|
|
1665
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
1666
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
1667
|
-
--tw-ring-inset: inset;
|
|
1668
|
-
--tw-ring-opacity: 1;
|
|
1669
|
-
--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity));
|
|
1670
|
-
display: flex;
|
|
1671
|
-
-webkit-user-select: none;
|
|
1672
|
-
-moz-user-select: none;
|
|
1673
|
-
user-select: none;
|
|
1674
|
-
align-items: center;
|
|
1675
|
-
gap: 0.5rem;
|
|
1676
|
-
border-radius: 9999px;
|
|
1677
|
-
padding-left: 0.25rem;
|
|
1678
|
-
padding-right: 0.25rem;
|
|
1679
|
-
padding-top: 0.125rem;
|
|
1680
|
-
padding-bottom: 0.125rem;
|
|
1681
|
-
--tw-shadow: 0 0 #0000;
|
|
1682
|
-
--tw-shadow-colored: 0 0 #0000;
|
|
1683
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
1684
|
-
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;
|
|
1685
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;
|
|
1686
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000) !important;
|
|
1687
|
-
}
|
|
1688
|
-
|
|
1689
|
-
qti-hottext-interaction:not(.qti-input-control-hidden) qti-hottext::part(cha) {
|
|
1690
|
-
/* let the checkmark or radio circle already take up space, else when checking everyhing collapses */
|
|
1691
|
-
height: 66.666667%;
|
|
1692
|
-
width: 66.666667%;
|
|
1693
|
-
}
|
|
1694
|
-
|
|
1695
|
-
qti-hottext-interaction:not(.qti-input-control-hidden) qti-hottext[role='radio']::part(ch) {
|
|
1696
|
-
display: flex;
|
|
1697
|
-
height: 1.25rem;
|
|
1698
|
-
width: 1.25rem;
|
|
1699
|
-
flex-shrink: 0;
|
|
1700
|
-
align-items: center;
|
|
1701
|
-
justify-content: center;
|
|
1702
|
-
border-radius: 9999px;
|
|
1703
|
-
--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
1704
|
-
--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
|
|
1705
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
1706
|
-
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
1707
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
1708
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
1709
|
-
--tw-ring-inset: inset;
|
|
1710
|
-
--tw-ring-opacity: 1;
|
|
1711
|
-
--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity));
|
|
1712
|
-
}
|
|
1713
|
-
|
|
1714
|
-
qti-hottext-interaction:not(.qti-input-control-hidden) qti-hottext[role='radio'][aria-checked='true']::part(cha) {
|
|
1715
|
-
border-radius: 9999px;
|
|
1716
|
-
--tw-bg-opacity: 1;
|
|
1717
|
-
background-color: rgb(59 130 246 / var(--tw-bg-opacity));
|
|
1718
|
-
}
|
|
1719
|
-
|
|
1720
|
-
qti-hottext-interaction:not(.qti-input-control-hidden) qti-hottext[role='checkbox']::part(ch) {
|
|
1721
|
-
display: flex;
|
|
1722
|
-
height: 1.25rem;
|
|
1723
|
-
width: 1.25rem;
|
|
1724
|
-
flex-shrink: 0;
|
|
1725
|
-
align-items: center;
|
|
1726
|
-
justify-content: center;
|
|
1727
|
-
border-radius: 0.25rem;
|
|
1728
|
-
--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
1729
|
-
--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
|
|
1730
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
1731
|
-
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
1732
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
1733
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
1734
|
-
--tw-ring-inset: inset;
|
|
1735
|
-
--tw-ring-opacity: 1;
|
|
1736
|
-
--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity));
|
|
1737
|
-
}
|
|
1738
|
-
|
|
1739
|
-
qti-hottext-interaction:not(.qti-input-control-hidden) qti-hottext[role='checkbox'][aria-checked='true']::part(cha) {
|
|
1740
|
-
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='red' width='100%' height='100%' viewBox='0 0 24 24'%3E%3Cpath d='M20.285 2l-11.285 11.567-5.286-5.011-3.714 3.716 9 8.728 15-15.285z'/%3E%3C/svg%3E");
|
|
1741
|
-
}
|
|
1742
|
-
|
|
1743
|
-
qti-hottext-interaction:not(.qti-input-control-hidden) qti-hottext {
|
|
1744
|
-
display: inline-flex;
|
|
1745
|
-
|
|
1746
|
-
/* @apply inline-flex gap-1 px-1 py-0 align-bottom font-normal ring-offset-0; */
|
|
1747
|
-
|
|
1748
|
-
gap: 0.125rem;
|
|
1749
|
-
|
|
1750
|
-
outline-offset: 0px;
|
|
1751
|
-
|
|
1752
|
-
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
1753
|
-
|
|
1754
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
1755
|
-
|
|
1756
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
1757
|
-
}
|
|
1758
|
-
|
|
1759
|
-
qti-hottext-interaction:not(.qti-input-control-hidden) qti-hottext::part(ch) {
|
|
1760
|
-
height: 1rem !important;
|
|
1761
|
-
width: 1rem !important;
|
|
1762
|
-
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;
|
|
1763
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;
|
|
1764
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000) !important;
|
|
1765
|
-
}
|
|
1766
|
-
|
|
1767
|
-
qti-hottext-interaction:not(.qti-input-control-hidden) qti-hottext:hover {
|
|
1768
|
-
--tw-bg-opacity: 1;
|
|
1769
|
-
background-color: rgb(249 250 251 / var(--tw-bg-opacity));
|
|
1770
|
-
}
|
|
1771
|
-
|
|
1772
|
-
qti-hottext-interaction:not(.qti-input-control-hidden) qti-hottext:focus {
|
|
1773
|
-
outline-width: 2px;
|
|
1774
|
-
outline-color: #93c5fd;
|
|
1775
|
-
}
|
|
1776
|
-
|
|
1777
|
-
qti-hottext-interaction:not(.qti-input-control-hidden) qti-hottext[aria-checked="true"] {
|
|
1778
|
-
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
1779
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
1780
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
1781
|
-
--tw-ring-opacity: 1;
|
|
1782
|
-
--tw-ring-color: rgb(96 165 250 / var(--tw-ring-opacity));
|
|
1783
|
-
}
|
|
1784
|
-
|
|
1785
|
-
qti-hottext-interaction:not(.qti-input-control-hidden) qti-hottext[aria-disabled="true"] {
|
|
1786
|
-
cursor: not-allowed;
|
|
1787
|
-
--tw-bg-opacity: 1;
|
|
1788
|
-
background-color: rgb(243 244 246 / var(--tw-bg-opacity));
|
|
1789
|
-
--tw-text-opacity: 1;
|
|
1790
|
-
color: rgb(107 114 128 / var(--tw-text-opacity));
|
|
1791
|
-
--tw-shadow: 0 0 #0000;
|
|
1792
|
-
--tw-shadow-colored: 0 0 #0000;
|
|
1793
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
1794
|
-
--tw-ring-opacity: 1;
|
|
1795
|
-
--tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity));
|
|
1796
|
-
}
|
|
1797
|
-
|
|
1798
|
-
qti-hottext-interaction:not(.qti-input-control-hidden) qti-hottext[aria-disabled="true"] > * {
|
|
1799
|
-
--tw-text-opacity: 1 !important;
|
|
1800
|
-
color: rgb(107 114 128 / var(--tw-text-opacity)) !important;
|
|
1801
|
-
}
|
|
1802
|
-
|
|
1803
|
-
qti-hottext-interaction:not(.qti-input-control-hidden) qti-hottext[aria-readonly="true"] {
|
|
1804
|
-
cursor: pointer;
|
|
1805
|
-
--tw-bg-opacity: 1;
|
|
1806
|
-
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
|
1807
|
-
--tw-shadow: 0 0 #0000;
|
|
1808
|
-
--tw-shadow-colored: 0 0 #0000;
|
|
1809
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
1810
|
-
outline-width: 0px;
|
|
1811
|
-
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
1812
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
1813
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
1814
|
-
}
|
|
1815
|
-
|
|
1816
|
-
qti-inline-choice-interaction::part(select) {
|
|
1817
|
-
cursor: pointer;
|
|
1818
|
-
border-radius: 0.375rem;
|
|
1819
|
-
--tw-text-opacity: 1;
|
|
1820
|
-
color: rgb(17 24 39 / var(--tw-text-opacity));
|
|
1821
|
-
outline: 2px solid transparent;
|
|
1822
|
-
outline-offset: 2px;
|
|
1823
|
-
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
1824
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
1825
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
1826
|
-
--tw-ring-inset: inset;
|
|
1827
|
-
--tw-ring-opacity: 1;
|
|
1828
|
-
--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity));
|
|
1829
|
-
position: relative;
|
|
1830
|
-
-webkit-appearance: none;
|
|
1831
|
-
-moz-appearance: none;
|
|
1832
|
-
appearance: none;
|
|
1833
|
-
padding-left: 0.75rem;
|
|
1834
|
-
padding-top: 0.5rem;
|
|
1835
|
-
padding-bottom: 0.5rem;
|
|
1836
|
-
padding-right: 1.75rem;
|
|
1837
|
-
--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
1838
|
-
--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
|
|
1839
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
1840
|
-
background: url("data:image/svg+xml,%3Csvg fill='currentColor' width='22' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' aria-hidden='true'%3E%3Cpath clip-rule='evenodd' fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z'%3E%3C/path%3E%3C/svg%3E")
|
|
1841
|
-
no-repeat center right 6px;
|
|
1842
|
-
}
|
|
1843
|
-
|
|
1844
|
-
qti-inline-choice-interaction::part(select):hover {
|
|
1845
|
-
--tw-bg-opacity: 1;
|
|
1846
|
-
background-color: rgb(249 250 251 / var(--tw-bg-opacity));
|
|
1847
|
-
}
|
|
1848
|
-
|
|
1849
|
-
qti-inline-choice-interaction::part(select):focus {
|
|
1850
|
-
outline-width: 2px;
|
|
1851
|
-
outline-color: #93c5fd;
|
|
1852
|
-
}
|
|
1853
|
-
|
|
1854
|
-
qti-inline-choice-interaction[aria-checked="true"]::part(select) {
|
|
1855
|
-
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
1856
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
1857
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
1858
|
-
--tw-ring-opacity: 1;
|
|
1859
|
-
--tw-ring-color: rgb(96 165 250 / var(--tw-ring-opacity));
|
|
1860
|
-
}
|
|
1861
|
-
|
|
1862
|
-
qti-inline-choice-interaction[aria-disabled="true"]::part(select) {
|
|
1863
|
-
cursor: not-allowed;
|
|
1864
|
-
--tw-bg-opacity: 1;
|
|
1865
|
-
background-color: rgb(243 244 246 / var(--tw-bg-opacity));
|
|
1866
|
-
--tw-text-opacity: 1;
|
|
1867
|
-
color: rgb(107 114 128 / var(--tw-text-opacity));
|
|
1868
|
-
--tw-shadow: 0 0 #0000;
|
|
1869
|
-
--tw-shadow-colored: 0 0 #0000;
|
|
1870
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
1871
|
-
--tw-ring-opacity: 1;
|
|
1872
|
-
--tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity));
|
|
1873
|
-
}
|
|
1874
|
-
|
|
1875
|
-
qti-inline-choice-interaction::part(select)[aria-disabled="true"] > * {
|
|
1876
|
-
--tw-text-opacity: 1 !important;
|
|
1877
|
-
color: rgb(107 114 128 / var(--tw-text-opacity)) !important;
|
|
1878
|
-
}
|
|
1879
|
-
|
|
1880
|
-
qti-inline-choice-interaction[aria-readonly="true"]::part(select) {
|
|
1881
|
-
cursor: pointer;
|
|
1882
|
-
--tw-bg-opacity: 1;
|
|
1883
|
-
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
|
1884
|
-
--tw-shadow: 0 0 #0000;
|
|
1885
|
-
--tw-shadow-colored: 0 0 #0000;
|
|
1886
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
1887
|
-
outline-width: 0px;
|
|
1888
|
-
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
1889
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
1890
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
1891
|
-
}
|
|
1892
|
-
|
|
1893
|
-
qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:first-of-type {
|
|
1894
|
-
display: flex;
|
|
1895
|
-
flex-wrap: wrap;
|
|
1896
|
-
gap: 0.5rem;
|
|
1897
|
-
padding-bottom: 1rem;
|
|
1898
|
-
}
|
|
1899
|
-
|
|
1900
|
-
qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:first-of-type qti-simple-associable-choice {
|
|
1901
|
-
cursor: pointer;
|
|
1902
|
-
border-radius: 0.375rem;
|
|
1903
|
-
--tw-text-opacity: 1;
|
|
1904
|
-
color: rgb(17 24 39 / var(--tw-text-opacity));
|
|
1905
|
-
outline: 2px solid transparent;
|
|
1906
|
-
outline-offset: 2px;
|
|
1907
|
-
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
1908
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
1909
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
1910
|
-
--tw-ring-inset: inset;
|
|
1911
|
-
--tw-ring-opacity: 1;
|
|
1912
|
-
--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity));
|
|
1913
|
-
cursor: grab;
|
|
1914
|
-
-webkit-user-select: none;
|
|
1915
|
-
-moz-user-select: none;
|
|
1916
|
-
user-select: none;
|
|
1917
|
-
--tw-bg-opacity: 1;
|
|
1918
|
-
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
|
1919
|
-
font-weight: 600;
|
|
1920
|
-
--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
1921
|
-
--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
|
|
1922
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
1923
|
-
background-image: radial-gradient(
|
|
1924
|
-
circle at center,
|
|
1925
|
-
rgba(0, 0, 0, 0.1) 0,
|
|
1926
|
-
rgb(0, 0, 0, 0.1) 2px,
|
|
1927
|
-
white 2px,
|
|
1928
|
-
white 100%
|
|
1929
|
-
);
|
|
1930
|
-
background-repeat: repeat-y;
|
|
1931
|
-
background-position: left 2px;
|
|
1932
|
-
background-size: 14px 8px;
|
|
1933
|
-
padding-top: 0.5rem;
|
|
1934
|
-
padding-bottom: 0.5rem;
|
|
1935
|
-
padding-left: 1rem;
|
|
1936
|
-
padding-right: 0.75rem;
|
|
1937
|
-
}
|
|
1938
|
-
|
|
1939
|
-
qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:first-of-type qti-simple-associable-choice:hover {
|
|
1940
|
-
--tw-bg-opacity: 1;
|
|
1941
|
-
background-color: rgb(249 250 251 / var(--tw-bg-opacity));
|
|
1942
|
-
}
|
|
1943
|
-
|
|
1944
|
-
qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:first-of-type qti-simple-associable-choice:focus {
|
|
1945
|
-
outline-width: 2px;
|
|
1946
|
-
outline-color: #93c5fd;
|
|
1947
|
-
}
|
|
1948
|
-
|
|
1949
|
-
qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type {
|
|
1950
|
-
display: grid;
|
|
1951
|
-
grid-auto-columns: minmax(0, 1fr);
|
|
1952
|
-
grid-auto-flow: column;
|
|
1953
|
-
gap: 0.5rem;
|
|
1954
|
-
}
|
|
1955
|
-
|
|
1956
|
-
qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type qti-simple-associable-choice {
|
|
1957
|
-
cursor: pointer;
|
|
1958
|
-
border-radius: 0.375rem;
|
|
1959
|
-
--tw-text-opacity: 1;
|
|
1960
|
-
color: rgb(17 24 39 / var(--tw-text-opacity));
|
|
1961
|
-
outline: 2px solid transparent;
|
|
1962
|
-
outline-offset: 2px;
|
|
1963
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
1964
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
1965
|
-
--tw-ring-inset: inset;
|
|
1966
|
-
position: relative;
|
|
1967
|
-
--tw-bg-opacity: 1;
|
|
1968
|
-
background-color: rgb(249 250 251 / var(--tw-bg-opacity));
|
|
1969
|
-
--tw-shadow: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
|
|
1970
|
-
--tw-shadow-colored: inset 0 2px 4px 0 var(--tw-shadow-color);
|
|
1971
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
1972
|
-
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
1973
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
1974
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
1975
|
-
--tw-ring-opacity: 1;
|
|
1976
|
-
--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity));
|
|
1977
|
-
--tw-ring-offset-width: 1px;
|
|
1978
|
-
--tw-ring-inset: unset;
|
|
1979
|
-
}
|
|
1980
|
-
|
|
1981
|
-
qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type qti-simple-associable-choice:hover {
|
|
1982
|
-
--tw-bg-opacity: 1;
|
|
1983
|
-
background-color: rgb(249 250 251 / var(--tw-bg-opacity));
|
|
1984
|
-
}
|
|
1985
|
-
|
|
1986
|
-
qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type qti-simple-associable-choice:focus {
|
|
1987
|
-
outline-width: 2px;
|
|
1988
|
-
outline-color: #93c5fd;
|
|
1989
|
-
}
|
|
1990
|
-
|
|
1991
|
-
qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type qti-simple-associable-choice {
|
|
1992
|
-
/* @apply flex h-32 flex-col gap-2; */
|
|
1993
|
-
display: flex;
|
|
1994
|
-
height: 8rem;
|
|
1995
|
-
flex-direction: column;
|
|
1996
|
-
}
|
|
1997
|
-
|
|
1998
|
-
qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type qti-simple-associable-choice > qti-simple-associable-choice {
|
|
1999
|
-
cursor: pointer;
|
|
2000
|
-
border-radius: 0.375rem;
|
|
2001
|
-
--tw-text-opacity: 1;
|
|
2002
|
-
color: rgb(17 24 39 / var(--tw-text-opacity));
|
|
2003
|
-
outline: 2px solid transparent;
|
|
2004
|
-
outline-offset: 2px;
|
|
2005
|
-
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
2006
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
2007
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
2008
|
-
--tw-ring-inset: inset;
|
|
2009
|
-
--tw-ring-opacity: 1;
|
|
2010
|
-
--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity));
|
|
2011
|
-
cursor: grab;
|
|
2012
|
-
-webkit-user-select: none;
|
|
2013
|
-
-moz-user-select: none;
|
|
2014
|
-
user-select: none;
|
|
2015
|
-
--tw-bg-opacity: 1;
|
|
2016
|
-
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
|
2017
|
-
font-weight: 600;
|
|
2018
|
-
--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
2019
|
-
--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
|
|
2020
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
2021
|
-
background-image: radial-gradient(
|
|
2022
|
-
circle at center,
|
|
2023
|
-
rgba(0, 0, 0, 0.1) 0,
|
|
2024
|
-
rgb(0, 0, 0, 0.1) 2px,
|
|
2025
|
-
white 2px,
|
|
2026
|
-
white 100%
|
|
2027
|
-
);
|
|
2028
|
-
background-repeat: repeat-y;
|
|
2029
|
-
background-position: left 2px;
|
|
2030
|
-
background-size: 14px 8px;
|
|
2031
|
-
padding-top: 0.5rem;
|
|
2032
|
-
padding-bottom: 0.5rem;
|
|
2033
|
-
padding-left: 1rem;
|
|
2034
|
-
padding-right: 0.75rem;
|
|
2035
|
-
}
|
|
2036
|
-
|
|
2037
|
-
qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type qti-simple-associable-choice > qti-simple-associable-choice:hover {
|
|
2038
|
-
--tw-bg-opacity: 1;
|
|
2039
|
-
background-color: rgb(249 250 251 / var(--tw-bg-opacity));
|
|
2040
|
-
}
|
|
2041
|
-
|
|
2042
|
-
qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type qti-simple-associable-choice > qti-simple-associable-choice:focus {
|
|
2043
|
-
outline-width: 2px;
|
|
2044
|
-
outline-color: #93c5fd;
|
|
2045
|
-
}
|
|
2046
|
-
|
|
2047
|
-
qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type qti-simple-associable-choice > qti-simple-associable-choice {
|
|
2048
|
-
flex-basis: fit-content;
|
|
2049
|
-
}
|
|
2050
|
-
|
|
2051
|
-
qti-order-interaction::part(qti-simple-choice),
|
|
2052
|
-
qti-order-interaction qti-simple-choice {
|
|
2053
|
-
cursor: pointer;
|
|
2054
|
-
border-radius: 0.375rem;
|
|
2055
|
-
--tw-text-opacity: 1;
|
|
2056
|
-
color: rgb(17 24 39 / var(--tw-text-opacity));
|
|
2057
|
-
outline: 2px solid transparent;
|
|
2058
|
-
outline-offset: 2px;
|
|
2059
|
-
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
2060
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
2061
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
2062
|
-
--tw-ring-inset: inset;
|
|
2063
|
-
--tw-ring-opacity: 1;
|
|
2064
|
-
--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity));
|
|
2065
|
-
cursor: grab;
|
|
2066
|
-
-webkit-user-select: none;
|
|
2067
|
-
-moz-user-select: none;
|
|
2068
|
-
user-select: none;
|
|
2069
|
-
--tw-bg-opacity: 1;
|
|
2070
|
-
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
|
2071
|
-
font-weight: 600;
|
|
2072
|
-
--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
2073
|
-
--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
|
|
2074
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
2075
|
-
background-image: radial-gradient(
|
|
2076
|
-
circle at center,
|
|
2077
|
-
rgba(0, 0, 0, 0.1) 0,
|
|
2078
|
-
rgb(0, 0, 0, 0.1) 2px,
|
|
2079
|
-
white 2px,
|
|
2080
|
-
white 100%
|
|
2081
|
-
);
|
|
2082
|
-
background-repeat: repeat-y;
|
|
2083
|
-
background-position: left 2px;
|
|
2084
|
-
background-size: 14px 8px;
|
|
2085
|
-
padding-top: 0.5rem;
|
|
2086
|
-
padding-bottom: 0.5rem;
|
|
2087
|
-
padding-left: 1rem;
|
|
2088
|
-
padding-right: 0.75rem;
|
|
2089
|
-
}
|
|
2090
|
-
|
|
2091
|
-
qti-order-interaction::part(qti-simple-choice):hover,
|
|
2092
|
-
qti-order-interaction qti-simple-choice:hover {
|
|
2093
|
-
--tw-bg-opacity: 1;
|
|
2094
|
-
background-color: rgb(249 250 251 / var(--tw-bg-opacity));
|
|
2095
|
-
}
|
|
2096
|
-
|
|
2097
|
-
qti-order-interaction::part(qti-simple-choice):focus,
|
|
2098
|
-
qti-order-interaction qti-simple-choice:focus {
|
|
2099
|
-
outline-width: 2px;
|
|
2100
|
-
outline-color: #93c5fd;
|
|
2101
|
-
}
|
|
2102
|
-
|
|
2103
|
-
qti-order-interaction::part(qti-simple-choice) {
|
|
2104
|
-
display: flex;
|
|
2105
|
-
width: 100%;
|
|
2106
|
-
align-items: center;
|
|
2107
|
-
overflow: hidden;
|
|
2108
|
-
text-overflow: ellipsis;
|
|
2109
|
-
}
|
|
2110
|
-
|
|
2111
|
-
qti-order-interaction::part(drops) {
|
|
2112
|
-
gap: 0.5rem;
|
|
2113
|
-
}
|
|
2114
|
-
|
|
2115
|
-
qti-order-interaction::part(drags) {
|
|
2116
|
-
gap: 0.5rem;
|
|
2117
|
-
}
|
|
2118
|
-
|
|
2119
|
-
qti-order-interaction::part(drop-list) {
|
|
2120
|
-
cursor: pointer;
|
|
2121
|
-
border-radius: 0.375rem;
|
|
2122
|
-
--tw-text-opacity: 1;
|
|
2123
|
-
color: rgb(17 24 39 / var(--tw-text-opacity));
|
|
2124
|
-
outline: 2px solid transparent;
|
|
2125
|
-
outline-offset: 2px;
|
|
2126
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
2127
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
2128
|
-
--tw-ring-inset: inset;
|
|
2129
|
-
position: relative;
|
|
2130
|
-
--tw-bg-opacity: 1;
|
|
2131
|
-
background-color: rgb(249 250 251 / var(--tw-bg-opacity));
|
|
2132
|
-
--tw-shadow: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
|
|
2133
|
-
--tw-shadow-colored: inset 0 2px 4px 0 var(--tw-shadow-color);
|
|
2134
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
2135
|
-
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
2136
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
2137
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
2138
|
-
--tw-ring-opacity: 1;
|
|
2139
|
-
--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity));
|
|
2140
|
-
--tw-ring-offset-width: 1px;
|
|
2141
|
-
--tw-ring-inset: unset;
|
|
2142
|
-
display: flex;
|
|
2143
|
-
min-height: 4rem;
|
|
2144
|
-
}
|
|
2145
|
-
|
|
2146
|
-
qti-order-interaction::part(drop-list):hover {
|
|
2147
|
-
--tw-bg-opacity: 1;
|
|
2148
|
-
background-color: rgb(249 250 251 / var(--tw-bg-opacity));
|
|
2149
|
-
}
|
|
2150
|
-
|
|
2151
|
-
qti-order-interaction::part(drop-list):focus {
|
|
2152
|
-
outline-width: 2px;
|
|
2153
|
-
outline-color: #93c5fd;
|
|
2154
|
-
}
|
|
2155
|
-
|
|
2156
|
-
qti-order-interaction::part(active) {
|
|
2157
|
-
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
2158
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
2159
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
2160
|
-
--tw-ring-opacity: 1;
|
|
2161
|
-
--tw-ring-color: rgb(96 165 250 / var(--tw-ring-opacity));
|
|
2162
|
-
}
|
|
2163
|
-
|
|
2164
|
-
qti-associate-interaction::part(qti-simple-associable-choice),
|
|
2165
|
-
qti-associate-interaction qti-simple-associable-choice {
|
|
2166
|
-
cursor: pointer;
|
|
2167
|
-
border-radius: 0.375rem;
|
|
2168
|
-
--tw-text-opacity: 1;
|
|
2169
|
-
color: rgb(17 24 39 / var(--tw-text-opacity));
|
|
2170
|
-
outline: 2px solid transparent;
|
|
2171
|
-
outline-offset: 2px;
|
|
2172
|
-
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
2173
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
2174
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
2175
|
-
--tw-ring-inset: inset;
|
|
2176
|
-
--tw-ring-opacity: 1;
|
|
2177
|
-
--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity));
|
|
2178
|
-
cursor: grab;
|
|
2179
|
-
-webkit-user-select: none;
|
|
2180
|
-
-moz-user-select: none;
|
|
2181
|
-
user-select: none;
|
|
2182
|
-
--tw-bg-opacity: 1;
|
|
2183
|
-
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
|
2184
|
-
font-weight: 600;
|
|
2185
|
-
--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
2186
|
-
--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
|
|
2187
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
2188
|
-
background-image: radial-gradient(
|
|
2189
|
-
circle at center,
|
|
2190
|
-
rgba(0, 0, 0, 0.1) 0,
|
|
2191
|
-
rgb(0, 0, 0, 0.1) 2px,
|
|
2192
|
-
white 2px,
|
|
2193
|
-
white 100%
|
|
2194
|
-
);
|
|
2195
|
-
background-repeat: repeat-y;
|
|
2196
|
-
background-position: left 2px;
|
|
2197
|
-
background-size: 14px 8px;
|
|
2198
|
-
display: flex;
|
|
2199
|
-
align-items: center;
|
|
2200
|
-
overflow: hidden;
|
|
2201
|
-
text-overflow: ellipsis;
|
|
2202
|
-
padding-top: 0.5rem;
|
|
2203
|
-
padding-bottom: 0.5rem;
|
|
2204
|
-
padding-left: 1rem;
|
|
2205
|
-
padding-right: 0.75rem;
|
|
2206
|
-
}
|
|
2207
|
-
|
|
2208
|
-
qti-associate-interaction::part(qti-simple-associable-choice):hover,
|
|
2209
|
-
qti-associate-interaction qti-simple-associable-choice:hover {
|
|
2210
|
-
--tw-bg-opacity: 1;
|
|
2211
|
-
background-color: rgb(249 250 251 / var(--tw-bg-opacity));
|
|
2212
|
-
}
|
|
2213
|
-
|
|
2214
|
-
qti-associate-interaction::part(qti-simple-associable-choice):focus,
|
|
2215
|
-
qti-associate-interaction qti-simple-associable-choice:focus {
|
|
2216
|
-
outline-width: 2px;
|
|
2217
|
-
outline-color: #93c5fd;
|
|
2218
|
-
}
|
|
2219
|
-
|
|
2220
|
-
qti-associate-interaction::part(associables-container) {
|
|
2221
|
-
margin-top: 0.5rem;
|
|
2222
|
-
margin-bottom: 0.5rem;
|
|
2223
|
-
display: flex;
|
|
2224
|
-
width: 100%;
|
|
2225
|
-
justify-content: space-between;
|
|
2226
|
-
background: linear-gradient(
|
|
2227
|
-
180deg,
|
|
2228
|
-
rgb(0 0 0 / 0%) calc(50% - 1px),
|
|
2229
|
-
#ff0000 calc(50%),
|
|
2230
|
-
rgb(0 0 0 / 0%) calc(50% + 1px)
|
|
2231
|
-
);
|
|
2232
|
-
}
|
|
2233
|
-
|
|
2234
|
-
qti-associate-interaction::part(active) {
|
|
2235
|
-
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
2236
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
2237
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
2238
|
-
--tw-ring-opacity: 1;
|
|
2239
|
-
--tw-ring-color: rgb(96 165 250 / var(--tw-ring-opacity));
|
|
2240
|
-
}
|
|
2241
|
-
|
|
2242
|
-
qti-associate-interaction::part(drop-list) {
|
|
2243
|
-
cursor: pointer;
|
|
2244
|
-
border-radius: 0.375rem;
|
|
2245
|
-
--tw-text-opacity: 1;
|
|
2246
|
-
color: rgb(17 24 39 / var(--tw-text-opacity));
|
|
2247
|
-
outline: 2px solid transparent;
|
|
2248
|
-
outline-offset: 2px;
|
|
2249
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
2250
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
2251
|
-
--tw-ring-inset: inset;
|
|
2252
|
-
position: relative;
|
|
2253
|
-
--tw-bg-opacity: 1;
|
|
2254
|
-
background-color: rgb(249 250 251 / var(--tw-bg-opacity));
|
|
2255
|
-
--tw-shadow: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
|
|
2256
|
-
--tw-shadow-colored: inset 0 2px 4px 0 var(--tw-shadow-color);
|
|
2257
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
2258
|
-
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
2259
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
2260
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
2261
|
-
--tw-ring-opacity: 1;
|
|
2262
|
-
--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity));
|
|
2263
|
-
--tw-ring-offset-width: 1px;
|
|
2264
|
-
--tw-ring-inset: unset;
|
|
2265
|
-
display: grid;
|
|
2266
|
-
height: 3rem;
|
|
2267
|
-
width: 33.333333%;
|
|
2268
|
-
}
|
|
2269
|
-
|
|
2270
|
-
/* @apply my-2; */
|
|
2271
|
-
|
|
2272
|
-
qti-graphic-order-interaction qti-hotspot-choice {
|
|
2273
|
-
cursor: pointer;
|
|
2274
|
-
border-radius: 0.375rem;
|
|
2275
|
-
--tw-text-opacity: 1;
|
|
2276
|
-
color: rgb(17 24 39 / var(--tw-text-opacity));
|
|
2277
|
-
outline: 2px solid transparent;
|
|
2278
|
-
outline-offset: 2px;
|
|
2279
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
2280
|
-
--tw-ring-inset: inset;
|
|
2281
|
-
--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity));
|
|
2282
|
-
height: 100%;
|
|
2283
|
-
width: 100%;
|
|
2284
|
-
background-color: transparent;
|
|
2285
|
-
padding: 0px;
|
|
2286
|
-
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
2287
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
2288
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
2289
|
-
--tw-ring-opacity: 1;
|
|
2290
|
-
--tw-ring-color: rgb(17 24 39 / var(--tw-ring-opacity));
|
|
2291
|
-
}
|
|
2292
|
-
|
|
2293
|
-
qti-graphic-order-interaction qti-hotspot-choice:hover {
|
|
2294
|
-
--tw-bg-opacity: 1;
|
|
2295
|
-
background-color: rgb(249 250 251 / var(--tw-bg-opacity));
|
|
2296
|
-
}
|
|
2297
|
-
|
|
2298
|
-
qti-graphic-order-interaction qti-hotspot-choice:focus {
|
|
2299
|
-
outline-width: 2px;
|
|
2300
|
-
outline-color: #93c5fd;
|
|
2301
|
-
}
|
|
2302
|
-
|
|
2303
|
-
qti-graphic-order-interaction qti-hotspot-choice[aria-checked="true"] {
|
|
2304
|
-
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
2305
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
2306
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
2307
|
-
--tw-ring-opacity: 1;
|
|
2308
|
-
--tw-ring-color: rgb(96 165 250 / var(--tw-ring-opacity));
|
|
2309
|
-
}
|
|
2310
|
-
|
|
2311
|
-
qti-graphic-order-interaction qti-hotspot-choice[aria-disabled="true"] {
|
|
2312
|
-
cursor: not-allowed;
|
|
2313
|
-
--tw-bg-opacity: 1;
|
|
2314
|
-
background-color: rgb(243 244 246 / var(--tw-bg-opacity));
|
|
2315
|
-
--tw-text-opacity: 1;
|
|
2316
|
-
color: rgb(107 114 128 / var(--tw-text-opacity));
|
|
2317
|
-
--tw-shadow: 0 0 #0000;
|
|
2318
|
-
--tw-shadow-colored: 0 0 #0000;
|
|
2319
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
2320
|
-
--tw-ring-opacity: 1;
|
|
2321
|
-
--tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity));
|
|
2322
|
-
}
|
|
2323
|
-
|
|
2324
|
-
qti-graphic-order-interaction qti-hotspot-choice[aria-disabled="true"] > * {
|
|
2325
|
-
--tw-text-opacity: 1 !important;
|
|
2326
|
-
color: rgb(107 114 128 / var(--tw-text-opacity)) !important;
|
|
2327
|
-
}
|
|
2328
|
-
|
|
2329
|
-
qti-graphic-order-interaction qti-hotspot-choice[aria-readonly="true"] {
|
|
2330
|
-
cursor: pointer;
|
|
2331
|
-
--tw-bg-opacity: 1;
|
|
2332
|
-
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
|
2333
|
-
--tw-shadow: 0 0 #0000;
|
|
2334
|
-
--tw-shadow-colored: 0 0 #0000;
|
|
2335
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
2336
|
-
outline-width: 0px;
|
|
2337
|
-
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
2338
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
2339
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
2340
|
-
}
|
|
2341
|
-
|
|
2342
|
-
/* &::after {
|
|
2343
|
-
content: '';
|
|
2344
|
-
@apply absolute top-0 block scale-75 bg-white;
|
|
2345
|
-
height: inherit;
|
|
2346
|
-
width: inherit;
|
|
2347
|
-
clip-path: inherit;
|
|
2348
|
-
} */
|
|
2349
|
-
|
|
2350
|
-
qti-graphic-order-interaction qti-hotspot-choice[aria-ordervalue] {
|
|
2351
|
-
height: 1.5rem;
|
|
2352
|
-
width: 1.5rem;
|
|
2353
|
-
border-radius: 9999px;
|
|
2354
|
-
--tw-bg-opacity: 1;
|
|
2355
|
-
background-color: rgb(59 130 246 / var(--tw-bg-opacity));
|
|
2356
|
-
--tw-text-opacity: 1;
|
|
2357
|
-
color: rgb(255 255 255 / var(--tw-text-opacity));
|
|
2358
|
-
display: flex;
|
|
2359
|
-
align-items: center;
|
|
2360
|
-
justify-content: center;
|
|
2361
|
-
}
|
|
2362
|
-
|
|
2363
|
-
qti-graphic-order-interaction qti-hotspot-choice[aria-ordervalue]::after {
|
|
2364
|
-
content: attr(aria-ordervalue) !important;
|
|
2365
|
-
}
|
|
2366
|
-
|
|
2367
|
-
qti-graphic-associate-interaction {
|
|
2368
|
-
position: relative;
|
|
2369
|
-
display: block;
|
|
2370
|
-
}
|
|
2371
|
-
|
|
2372
|
-
qti-graphic-associate-interaction qti-associable-hotspot[shape='circle'] {
|
|
2373
|
-
/* border-radius: 100%;
|
|
2374
|
-
background-color: green; */
|
|
2375
|
-
cursor: pointer;
|
|
2376
|
-
border-radius: 0.375rem;
|
|
2377
|
-
--tw-text-opacity: 1;
|
|
2378
|
-
color: rgb(17 24 39 / var(--tw-text-opacity));
|
|
2379
|
-
outline: 2px solid transparent;
|
|
2380
|
-
outline-offset: 2px;
|
|
2381
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
2382
|
-
--tw-ring-inset: inset;
|
|
2383
|
-
--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity));
|
|
2384
|
-
height: 100%;
|
|
2385
|
-
width: 100%;
|
|
2386
|
-
background-color: transparent;
|
|
2387
|
-
padding: 0px;
|
|
2388
|
-
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
2389
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
2390
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
2391
|
-
--tw-ring-opacity: 1;
|
|
2392
|
-
--tw-ring-color: rgb(17 24 39 / var(--tw-ring-opacity));
|
|
2393
|
-
}
|
|
2394
|
-
|
|
2395
|
-
qti-graphic-associate-interaction qti-associable-hotspot[shape='circle']:hover {
|
|
2396
|
-
--tw-bg-opacity: 1;
|
|
2397
|
-
background-color: rgb(249 250 251 / var(--tw-bg-opacity));
|
|
2398
|
-
}
|
|
2399
|
-
|
|
2400
|
-
qti-graphic-associate-interaction qti-associable-hotspot[shape='circle']:focus {
|
|
2401
|
-
outline-width: 2px;
|
|
2402
|
-
outline-color: #93c5fd;
|
|
2403
|
-
}
|
|
2404
|
-
|
|
2405
|
-
qti-graphic-associate-interaction qti-associable-hotspot[shape='circle'][aria-checked="true"] {
|
|
2406
|
-
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
2407
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
2408
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
2409
|
-
--tw-ring-opacity: 1;
|
|
2410
|
-
--tw-ring-color: rgb(96 165 250 / var(--tw-ring-opacity));
|
|
2411
|
-
}
|
|
2412
|
-
|
|
2413
|
-
qti-graphic-associate-interaction qti-associable-hotspot[shape='circle'][aria-disabled="true"] {
|
|
2414
|
-
cursor: not-allowed;
|
|
2415
|
-
--tw-bg-opacity: 1;
|
|
2416
|
-
background-color: rgb(243 244 246 / var(--tw-bg-opacity));
|
|
2417
|
-
--tw-text-opacity: 1;
|
|
2418
|
-
color: rgb(107 114 128 / var(--tw-text-opacity));
|
|
2419
|
-
--tw-shadow: 0 0 #0000;
|
|
2420
|
-
--tw-shadow-colored: 0 0 #0000;
|
|
2421
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
2422
|
-
--tw-ring-opacity: 1;
|
|
2423
|
-
--tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity));
|
|
2424
|
-
}
|
|
2425
|
-
|
|
2426
|
-
qti-graphic-associate-interaction qti-associable-hotspot[shape='circle'][aria-disabled="true"] > * {
|
|
2427
|
-
--tw-text-opacity: 1 !important;
|
|
2428
|
-
color: rgb(107 114 128 / var(--tw-text-opacity)) !important;
|
|
2429
|
-
}
|
|
2430
|
-
|
|
2431
|
-
qti-graphic-associate-interaction qti-associable-hotspot[shape='circle'][aria-readonly="true"] {
|
|
2432
|
-
cursor: pointer;
|
|
2433
|
-
--tw-bg-opacity: 1;
|
|
2434
|
-
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
|
2435
|
-
--tw-shadow: 0 0 #0000;
|
|
2436
|
-
--tw-shadow-colored: 0 0 #0000;
|
|
2437
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
2438
|
-
outline-width: 0px;
|
|
2439
|
-
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
2440
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
2441
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
2442
|
-
}
|
|
2443
|
-
|
|
2444
|
-
qti-graphic-associate-interaction qti-associable-hotspot[shape='square'] {
|
|
2445
|
-
/* border-radius: 0; */
|
|
2446
|
-
/* background-color: green; */
|
|
2447
|
-
cursor: pointer;
|
|
2448
|
-
border-radius: 0.375rem;
|
|
2449
|
-
--tw-text-opacity: 1;
|
|
2450
|
-
color: rgb(17 24 39 / var(--tw-text-opacity));
|
|
2451
|
-
outline: 2px solid transparent;
|
|
2452
|
-
outline-offset: 2px;
|
|
2453
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
2454
|
-
--tw-ring-inset: inset;
|
|
2455
|
-
--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity));
|
|
2456
|
-
height: 100%;
|
|
2457
|
-
width: 100%;
|
|
2458
|
-
background-color: transparent;
|
|
2459
|
-
padding: 0px;
|
|
2460
|
-
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
2461
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
2462
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
2463
|
-
--tw-ring-opacity: 1;
|
|
2464
|
-
--tw-ring-color: rgb(17 24 39 / var(--tw-ring-opacity));
|
|
407
|
+
display: none;
|
|
2465
408
|
}
|
|
2466
|
-
|
|
2467
|
-
qti-graphic-associate-interaction qti-associable-hotspot[shape='square']:hover {
|
|
2468
|
-
--tw-bg-opacity: 1;
|
|
2469
|
-
background-color: rgb(249 250 251 / var(--tw-bg-opacity));
|
|
2470
|
-
}
|
|
2471
|
-
|
|
2472
|
-
qti-graphic-associate-interaction qti-associable-hotspot[shape='square']:focus {
|
|
2473
|
-
outline-width: 2px;
|
|
2474
|
-
outline-color: #93c5fd;
|
|
2475
|
-
}
|
|
2476
|
-
|
|
2477
|
-
qti-graphic-associate-interaction qti-associable-hotspot[shape='square'][aria-checked="true"] {
|
|
2478
|
-
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
2479
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
2480
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
2481
|
-
--tw-ring-opacity: 1;
|
|
2482
|
-
--tw-ring-color: rgb(96 165 250 / var(--tw-ring-opacity));
|
|
2483
|
-
}
|
|
2484
|
-
|
|
2485
|
-
qti-graphic-associate-interaction qti-associable-hotspot[shape='square'][aria-disabled="true"] {
|
|
2486
|
-
cursor: not-allowed;
|
|
2487
|
-
--tw-bg-opacity: 1;
|
|
2488
|
-
background-color: rgb(243 244 246 / var(--tw-bg-opacity));
|
|
2489
|
-
--tw-text-opacity: 1;
|
|
2490
|
-
color: rgb(107 114 128 / var(--tw-text-opacity));
|
|
2491
|
-
--tw-shadow: 0 0 #0000;
|
|
2492
|
-
--tw-shadow-colored: 0 0 #0000;
|
|
2493
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
2494
|
-
--tw-ring-opacity: 1;
|
|
2495
|
-
--tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity));
|
|
2496
|
-
}
|
|
2497
|
-
|
|
2498
|
-
qti-graphic-associate-interaction qti-associable-hotspot[shape='square'][aria-disabled="true"] > * {
|
|
2499
|
-
--tw-text-opacity: 1 !important;
|
|
2500
|
-
color: rgb(107 114 128 / var(--tw-text-opacity)) !important;
|
|
2501
|
-
}
|
|
2502
|
-
|
|
2503
|
-
qti-graphic-associate-interaction qti-associable-hotspot[shape='square'][aria-readonly="true"] {
|
|
2504
|
-
cursor: pointer;
|
|
2505
|
-
--tw-bg-opacity: 1;
|
|
2506
|
-
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
|
2507
|
-
--tw-shadow: 0 0 #0000;
|
|
2508
|
-
--tw-shadow-colored: 0 0 #0000;
|
|
2509
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
2510
|
-
outline-width: 0px;
|
|
2511
|
-
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
2512
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
2513
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
2514
|
-
}
|
|
2515
|
-
|
|
2516
|
-
qti-graphic-gap-match-interaction {
|
|
2517
|
-
position: relative;
|
|
2518
|
-
}
|
|
2519
|
-
|
|
2520
|
-
qti-graphic-gap-match-interaction img {
|
|
2521
|
-
margin: 0px;
|
|
2522
|
-
padding: 0px;
|
|
2523
|
-
}
|
|
2524
|
-
|
|
2525
|
-
qti-slider-interaction {
|
|
2526
|
-
position: relative;
|
|
2527
|
-
width: 100%;
|
|
2528
|
-
display: block;
|
|
2529
|
-
}
|
|
2530
|
-
|
|
2531
|
-
qti-slider-interaction::part(knob) {
|
|
2532
|
-
position: absolute;
|
|
2533
|
-
height: 1rem;
|
|
2534
|
-
width: 1rem;
|
|
2535
|
-
transform-origin: center;
|
|
2536
|
-
--tw-translate-x: -50%;
|
|
2537
|
-
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
2538
|
-
cursor: pointer;
|
|
2539
|
-
border-radius: 9999px;
|
|
2540
|
-
--tw-bg-opacity: 1;
|
|
2541
|
-
background-color: rgb(59 130 246 / var(--tw-bg-opacity));
|
|
2542
|
-
}
|
|
2543
|
-
|
|
2544
|
-
qti-slider-interaction::part(rail) {
|
|
2545
|
-
height: 1rem;
|
|
2546
|
-
background-position: 0 center;
|
|
2547
|
-
--qti-border-color: #ff0000;
|
|
2548
|
-
--qti-border-width: 2px;
|
|
2549
|
-
/* ticks */
|
|
2550
|
-
background: linear-gradient(to right, var(--qti-border-color) var(--qti-border-width), transparent 1px) repeat-x,
|
|
2551
|
-
linear-gradient(to top, var(--qti-border-color) var(--qti-border-width), transparent 1px) repeat-x;
|
|
2552
|
-
background-size: calc(calc(100% - var(--qti-border-width)) / ((var(--max) - var(--min)) / var(--step))) 50%;
|
|
2553
|
-
}
|
|
2554
|
-
|
|
2555
|
-
qti-select-point-interaction::part(point):hover {
|
|
2556
|
-
background-color: rgb(219 234 254 / var(--tw-bg-opacity));
|
|
2557
|
-
--tw-bg-opacity: 0.3;
|
|
2558
|
-
}
|
|
2559
|
-
|
|
2560
|
-
qti-select-point-interaction::part(point) {
|
|
2561
|
-
cursor: pointer;
|
|
2562
|
-
border-radius: 0.375rem;
|
|
2563
|
-
--tw-text-opacity: 1;
|
|
2564
|
-
color: rgb(17 24 39 / var(--tw-text-opacity));
|
|
2565
|
-
outline: 2px solid transparent;
|
|
2566
|
-
outline-offset: 2px;
|
|
2567
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
2568
|
-
--tw-ring-inset: inset;
|
|
2569
|
-
--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity));
|
|
2570
|
-
height: 1.5rem;
|
|
2571
|
-
width: 1.5rem;
|
|
2572
|
-
background-color: transparent;
|
|
2573
|
-
padding: 0px;
|
|
2574
|
-
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
2575
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
2576
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
2577
|
-
--tw-ring-opacity: 1;
|
|
2578
|
-
--tw-ring-color: rgb(17 24 39 / var(--tw-ring-opacity));
|
|
2579
|
-
border-radius: 9999px;
|
|
2580
|
-
}
|
|
2581
|
-
|
|
2582
|
-
qti-select-point-interaction::part(point):hover {
|
|
2583
|
-
--tw-ring-opacity: 1;
|
|
2584
|
-
--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity));
|
|
2585
|
-
}
|
|
2586
|
-
|
|
2587
|
-
qti-select-point-interaction::part(point):focus {
|
|
2588
|
-
outline-width: 2px;
|
|
2589
|
-
outline-color: #93c5fd;
|
|
2590
|
-
}
|
|
2591
|
-
|
|
2592
|
-
qti-select-point-interaction[aria-checked="true"]::part(point) {
|
|
2593
|
-
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
2594
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
2595
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
2596
|
-
--tw-ring-opacity: 1;
|
|
2597
|
-
--tw-ring-color: rgb(96 165 250 / var(--tw-ring-opacity));
|
|
2598
|
-
}
|
|
2599
|
-
|
|
2600
|
-
qti-select-point-interaction[aria-disabled="true"]::part(point) {
|
|
2601
|
-
cursor: not-allowed;
|
|
2602
|
-
--tw-bg-opacity: 1;
|
|
2603
|
-
background-color: rgb(243 244 246 / var(--tw-bg-opacity));
|
|
2604
|
-
--tw-text-opacity: 1;
|
|
2605
|
-
color: rgb(107 114 128 / var(--tw-text-opacity));
|
|
2606
|
-
--tw-shadow: 0 0 #0000;
|
|
2607
|
-
--tw-shadow-colored: 0 0 #0000;
|
|
2608
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
2609
|
-
--tw-ring-opacity: 1;
|
|
2610
|
-
--tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity));
|
|
2611
|
-
}
|
|
2612
|
-
|
|
2613
|
-
qti-select-point-interaction::part(point)[aria-disabled="true"] > * {
|
|
2614
|
-
--tw-text-opacity: 1 !important;
|
|
2615
|
-
color: rgb(107 114 128 / var(--tw-text-opacity)) !important;
|
|
2616
|
-
}
|
|
2617
|
-
|
|
2618
|
-
qti-select-point-interaction[aria-readonly="true"]::part(point) {
|
|
2619
|
-
cursor: pointer;
|
|
2620
|
-
--tw-bg-opacity: 1;
|
|
2621
|
-
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
|
2622
|
-
--tw-shadow: 0 0 #0000;
|
|
2623
|
-
--tw-shadow-colored: 0 0 #0000;
|
|
2624
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
2625
|
-
outline-width: 0px;
|
|
2626
|
-
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
2627
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
2628
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
2629
|
-
}
|
|
2630
|
-
|
|
2631
|
-
qti-position-object-stage qti-position-object-interaction {
|
|
2632
|
-
/* no styles necessary, only layout styles, defined in the component */
|
|
2633
|
-
/* height: 40px; */
|
|
2634
|
-
}
|
|
2635
|
-
|
|
2636
|
-
qti-choice-interaction.qti-choices-stacking-2 {
|
|
2637
|
-
display: grid;
|
|
2638
|
-
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
2639
|
-
}
|
|
2640
|
-
|
|
2641
|
-
qti-choice-interaction.qti-choices-stacking-3 {
|
|
2642
|
-
display: grid;
|
|
2643
|
-
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
2644
|
-
}
|
|
2645
|
-
|
|
2646
|
-
qti-choice-interaction.qti-choices-stacking-4 {
|
|
2647
|
-
display: grid;
|
|
2648
|
-
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
2649
|
-
}
|
|
2650
|
-
|
|
2651
|
-
qti-choice-interaction.qti-choices-stacking-5 {
|
|
2652
|
-
display: grid;
|
|
2653
|
-
grid-template-columns: repeat(5, minmax(0, 1fr));
|
|
2654
|
-
}
|
|
2655
|
-
|
|
2656
|
-
qti-choice-interaction.qti-orientation-horizontal {
|
|
2657
|
-
/* is the default layout */
|
|
2658
|
-
}
|
|
2659
|
-
|
|
2660
|
-
qti-choice-interaction[orientation='horizontal'] {
|
|
2661
|
-
flex-direction: row;
|
|
2662
|
-
}
|
|
2663
|
-
|
|
2664
|
-
img,
|
|
2665
|
-
video {
|
|
2666
|
-
max-width: 100%;
|
|
2667
|
-
height: auto;
|
|
2668
|
-
}
|
|
2669
|
-
`;var he=class extends Bo(N,"qti-assessment-item"){constructor(){super(...arguments);this.disabled=!1;this.readonly=!1;this._inShadowRoot=!1;this.provider=new Bt(this,wi,{log:r=>console.log(`[my-app] ${r}`),view:"candidate"});this.render=()=>v`<slot @slotchange=${this.handleSlotchange}></slot>`;this.processResponse=()=>{var r;return(r=this._assessmentItem)==null?void 0:r.processResponse()};this.showCorrectResponse=()=>{var r;return(r=this._assessmentItem)==null?void 0:r.showCorrectResponse()};this.validateResponses=()=>this._assessmentItem?this._assessmentItem.validateResponses():!1;this.resetInteractions=()=>{var r;return(r=this._assessmentItem)==null?void 0:r.resetInteractions()}}handleDisabledChange(r,i){var s,n;i&&((s=this._assessmentItem)==null||s.setAttribute("disabled","")),!i&&((n=this._assessmentItem)==null||n.removeAttribute("disabled"))}handleReadonlyChange(r,i){var s,n;i&&((s=this._assessmentItem)==null||s.setAttribute("readonly","")),!i&&((n=this._assessmentItem)==null||n.removeAttribute("readonly"))}handleResponsesChange(r,i){this._assessmentItem&&(this._assessmentItem.responses=i)}set inShadowRoot(r){var i,s;r&&this.firstElementChild&&((i=this.renderRoot)==null||i.prepend(this.firstElementChild)),r||((s=this.renderRoot)==null?void 0:s.firstElementChild)==this._assessmentItem&&this.prepend(this._assessmentItem),this._inShadowRoot=r}handleSlotchange(r){let i=this.qtiAssessmentItems.length>0?this.qtiAssessmentItems[0]:void 0;if(!i)return;let s=this._assessmentItem===i;i&&!s&&(this._inShadowRoot&&(this._assessmentItem?this.renderRoot.replaceChild(i,this._assessmentItem):this.renderRoot.prepend(i)),this._assessmentItem=i,this.disabled&&this._assessmentItem.setAttribute("disabled",""),this.readonly&&this._assessmentItem.setAttribute("readonly",""))}set qtiContext(r){this.provider.value.view=r.view,this.provider.updateObservers()}get item(){return this._assessmentItem}connectedCallback(){super.connectedCallback();let r=new CSSStyleSheet;r.replaceSync(Uo),this.shadowRoot.adoptedStyleSheets.push(r)}};he.styles=O`
|
|
409
|
+
`,E([x({type:Boolean})],Se.prototype,"disabled",2),E([x({type:Boolean})],Se.prototype,"readonly",2),E([x({type:Number})],Se.prototype,"value",2),E([x({type:Number})],Se.prototype,"min",2),E([x({type:Number})],Se.prototype,"max",2),Se=E([H("qti-manual-scoring")],Se);var Po=(e,t)=>{class r extends e{constructor(){super(...arguments);this.scale=1;this.ro=new ResizeObserver(a=>{for(let o of a)this.fitToParent(o.contentRect.width)})}connectedCallback(){super.connectedCallback(),this.ro.observe(this),this.fitToParent()}set scales(a){let o=this._scales;this.requestUpdate("prop",o),this.fitToParent()}get scales(){return this._scales}fitToParent(a=this.clientWidth){let o=this.shadowRoot.querySelector(t);if(o){let u=a/o.clientWidth;this.scale=u;let c=-o.clientHeight*(1-u)+"px",h=-o.clientWidth*(1-u)+"px";requestAnimationFrame(()=>{o.style.transform=`scale(${this.scale})`,o.style.margin=`0 ${h} ${c} 0`})}}}return E([x({type:Number,reflect:!0})],r.prototype,"scale",2),E([x({type:Boolean,attribute:!1})],r.prototype,"scales",1),r};var yr=class extends bt{constructor(t){if(super(t),this.et=q,t.type!==br.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===q||t==null)return this.ft=void 0,this.et=t;if(t===Pe)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;let r=[t];return r.raw=r,this.ft={_$litType$:this.constructor.resultType,strings:r,values:[]}}};yr.directiveName="unsafeHTML",yr.resultType=1;var ko=Tr(yr);var wo={};var Ee=class extends Po(v,"qti-assessment-item"){constructor(){super(...arguments);this.disabled=!1;this.readonly=!1;this.provider=new Ke(this,Qe,{log:r=>console.log(`[my-app] ${r}`),view:"candidate"});this.processResponse=()=>{var r;return(r=this._item)==null?void 0:r.processResponse()};this.showCorrectResponse=()=>{var r;return(r=this._item)==null?void 0:r.showCorrectResponse()};this.validateResponses=()=>this._item?this._item.validateResponses():!1;this.resetInteractions=()=>{var r;return(r=this._item)==null?void 0:r.resetInteractions()};this.render=()=>_`${ko(this._xml)}`}handleDisabledChange(r,s){var i,a;s&&((i=this._item)==null||i.setAttribute("disabled","")),!s&&((a=this._item)==null||a.removeAttribute("disabled"))}handleReadonlyChange(r,s){var i,a;s&&((i=this._item)==null||i.setAttribute("readonly","")),!s&&((a=this._item)==null||a.removeAttribute("readonly"))}handleResponsesChange(r,s){this._item&&(this._item.responses=s)}set qtiContext(r){this.provider.value.view=r.view,this.provider.updateObservers()}get _item(){var r;return(r=this.shadowRoot)==null?void 0:r.querySelector("qti-assessment-item")}set xml(r){let s=this._xml;this._xml=r,this.requestUpdate("xml",s),requestAnimationFrame(()=>{var i;(i=this._item)==null||i.classList.add("qti-theme-raised")})}get xml(){return this._xml}connectedCallback(){super.connectedCallback();let r=new CSSStyleSheet;r.replaceSync(wo),this.shadowRoot.adoptedStyleSheets.push(r)}};Ee.styles=M`
|
|
2670
410
|
:host {
|
|
2671
411
|
display: block; /* necessary to calculate scaling position */
|
|
2672
412
|
width: 100%;
|
|
@@ -2682,14 +422,112 @@ video {
|
|
|
2682
422
|
width: 800px;
|
|
2683
423
|
transform-origin: 0 0;
|
|
2684
424
|
}
|
|
2685
|
-
`,g([hr({selector:"qti-assessment-item"})],he.prototype,"qtiAssessmentItems",2),g([y({type:Boolean})],he.prototype,"disabled",2),g([Y("disabled",{waitUntilFirstUpdate:!0})],he.prototype,"handleDisabledChange",1),g([y({type:Boolean})],he.prototype,"readonly",2),g([Y("readonly",{waitUntilFirstUpdate:!0})],he.prototype,"handleReadonlyChange",1),g([y({type:Object,attribute:!1})],he.prototype,"responses",2),g([Y("responses",{waitUntilFirstUpdate:!0})],he.prototype,"handleResponsesChange",1),g([y({type:Boolean,attribute:"in-shadow-root"})],he.prototype,"inShadowRoot",1);customElements.define("qti-item",he);var Cl={xml:!1,decodeEntities:!0},Nr=Cl,Fo={_useHtmlParser2:!0,xmlMode:!0};function Sr(e){return e!=null&&e.xml?typeof e.xml=="boolean"?Fo:R(R({},Fo),e.xml):e!=null?e:void 0}var et={};Ee(et,{contains:()=>Ba,html:()=>cu,merge:()=>g0,parseHTML:()=>p0,root:()=>m0,text:()=>Ze,xml:()=>lu});var Ve={};Ee(Ve,{DocumentPosition:()=>pe,append:()=>zl,appendChild:()=>jl,compareDocumentPosition:()=>au,existsOne:()=>ru,filter:()=>qr,find:()=>ts,findAll:()=>t0,findOne:()=>rs,findOneChild:()=>e0,getAttributeValue:()=>Xl,getChildren:()=>zt,getElementById:()=>a0,getElements:()=>s0,getElementsByTagName:()=>yt,getElementsByTagType:()=>n0,getFeed:()=>Ha,getInnerHTML:()=>Gl,getName:()=>Kl,getOuterHTML:()=>eu,getParent:()=>tu,getSiblings:()=>qa,getText:()=>Ji,hasAttrib:()=>Wl,hasChildren:()=>F,innerText:()=>Pr,isCDATA:()=>Xt,isComment:()=>At,isDocument:()=>xe,isTag:()=>L,isText:()=>se,nextElementSibling:()=>Zi,prepend:()=>Zl,prependChild:()=>Jl,prevElementSibling:()=>es,removeElement:()=>$e,removeSubsets:()=>o0,replaceElement:()=>Ql,testElement:()=>i0,textContent:()=>Fe,uniqueSort:()=>ze});var Gi={};Ee(Gi,{CDATA:()=>Na,Comment:()=>_a,Directive:()=>va,Doctype:()=>Sa,ElementType:()=>M,Root:()=>wa,Script:()=>Aa,Style:()=>ya,Tag:()=>Ca,Text:()=>xa,isTag:()=>Ta});var M;(function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"})(M||(M={}));function Ta(e){return e.type===M.Tag||e.type===M.Script||e.type===M.Style}var wa=M.Root,xa=M.Text,va=M.Directive,_a=M.Comment,Aa=M.Script,ya=M.Style,Ca=M.Tag,Na=M.CDATA,Sa=M.Doctype;var Xi=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(t){this.parent=t}get previousSibling(){return this.prev}set previousSibling(t){this.prev=t}get nextSibling(){return this.next}set nextSibling(t){this.next=t}cloneNode(t=!1){return Dr(this,t)}},Ir=class extends Xi{constructor(t){super(),this.data=t}get nodeValue(){return this.data}set nodeValue(t){this.data=t}},De=class extends Ir{constructor(){super(...arguments),this.type=M.Text}get nodeType(){return 3}},xt=class extends Ir{constructor(){super(...arguments),this.type=M.Comment}get nodeType(){return 8}},vt=class extends Ir{constructor(t,r){super(r),this.name=t,this.type=M.Directive}get nodeType(){return 1}},Rr=class extends Xi{constructor(t){super(),this.children=t}get firstChild(){var t;return(t=this.children[0])!==null&&t!==void 0?t:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(t){this.children=t}},Lr=class extends Rr{constructor(){super(...arguments),this.type=M.CDATA}get nodeType(){return 4}},ce=class extends Rr{constructor(){super(...arguments),this.type=M.Root}get nodeType(){return 9}},_t=class extends Rr{constructor(t,r,i=[],s=t==="script"?M.Script:t==="style"?M.Style:M.Tag){super(i),this.name=t,this.attribs=r,this.type=s}get nodeType(){return 1}get tagName(){return this.name}set tagName(t){this.name=t}get attributes(){return Object.keys(this.attribs).map(t=>{var r,i;return{name:t,value:this.attribs[t],namespace:(r=this["x-attribsNamespace"])===null||r===void 0?void 0:r[t],prefix:(i=this["x-attribsPrefix"])===null||i===void 0?void 0:i[t]}})}};function L(e){return Ta(e)}function Xt(e){return e.type===M.CDATA}function se(e){return e.type===M.Text}function At(e){return e.type===M.Comment}function Wi(e){return e.type===M.Directive}function xe(e){return e.type===M.Root}function F(e){return Object.prototype.hasOwnProperty.call(e,"children")}function Dr(e,t=!1){let r;if(se(e))r=new De(e.data);else if(At(e))r=new xt(e.data);else if(L(e)){let i=t?Ia(e.children):[],s=new _t(e.name,R({},e.attribs),i);i.forEach(n=>n.parent=s),e.namespace!=null&&(s.namespace=e.namespace),e["x-attribsNamespace"]&&(s["x-attribsNamespace"]=R({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(s["x-attribsPrefix"]=R({},e["x-attribsPrefix"])),r=s}else if(Xt(e)){let i=t?Ia(e.children):[],s=new Lr(i);i.forEach(n=>n.parent=s),r=s}else if(xe(e)){let i=t?Ia(e.children):[],s=new ce(i);i.forEach(n=>n.parent=s),e["x-mode"]&&(s["x-mode"]=e["x-mode"]),r=s}else if(Wi(e)){let i=new vt(e.name,e.data);e["x-name"]!=null&&(i["x-name"]=e["x-name"],i["x-publicId"]=e["x-publicId"],i["x-systemId"]=e["x-systemId"]),r=i}else throw new Error(`Not implemented yet: ${e.type}`);return r.startIndex=e.startIndex,r.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(r.sourceCodeLocation=e.sourceCodeLocation),r}function Ia(e){let t=e.map(r=>Dr(r,!0));for(let r=1;r<t.length;r++)t[r].prev=t[r-1],t[r-1].next=t[r];return t}var $o={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},Wt=class{constructor(t,r,i){this.dom=[],this.root=new ce(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof r=="function"&&(i=r,r=$o),typeof t=="object"&&(r=t,t=void 0),this.callback=t!=null?t:null,this.options=r!=null?r:$o,this.elementCB=i!=null?i:null}onparserinit(t){this.parser=t}onreset(){this.dom=[],this.root=new ce(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null}onend(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))}onerror(t){this.handleCallback(t)}onclosetag(){this.lastNode=null;let t=this.tagStack.pop();this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(t)}onopentag(t,r){let i=this.options.xmlMode?M.Tag:void 0,s=new _t(t,r,void 0,i);this.addNode(s),this.tagStack.push(s)}ontext(t){let{lastNode:r}=this;if(r&&r.type===M.Text)r.data+=t,this.options.withEndIndices&&(r.endIndex=this.parser.endIndex);else{let i=new De(t);this.addNode(i),this.lastNode=i}}oncomment(t){if(this.lastNode&&this.lastNode.type===M.Comment){this.lastNode.data+=t;return}let r=new xt(t);this.addNode(r),this.lastNode=r}oncommentend(){this.lastNode=null}oncdatastart(){let t=new De(""),r=new Lr([t]);this.addNode(r),t.parent=r,this.lastNode=t}oncdataend(){this.lastNode=null}onprocessinginstruction(t,r){let i=new vt(t,r);this.addNode(i)}handleCallback(t){if(typeof this.callback=="function")this.callback(t,this.dom);else if(t)throw t}addNode(t){let r=this.tagStack[this.tagStack.length-1],i=r.children[r.children.length-1];this.options.withStartIndices&&(t.startIndex=this.parser.startIndex),this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),r.children.push(t),i&&(t.prev=i,i.next=t),t.parent=r,this.lastNode=null}};var fe=new Uint16Array('\u1D41<\xD5\u0131\u028A\u049D\u057B\u05D0\u0675\u06DE\u07A2\u07D6\u080F\u0A4A\u0A91\u0DA1\u0E6D\u0F09\u0F26\u10CA\u1228\u12E1\u1415\u149D\u14C3\u14DF\u1525\0\0\0\0\0\0\u156B\u16CD\u198D\u1C12\u1DDD\u1F7E\u2060\u21B0\u228D\u23C0\u23FB\u2442\u2824\u2912\u2D08\u2E48\u2FCE\u3016\u32BA\u3639\u37AC\u38FE\u3A28\u3A71\u3AE0\u3B2E\u0800EMabcfglmnoprstu\\bfms\x7F\x84\x8B\x90\x95\x98\xA6\xB3\xB9\xC8\xCFlig\u803B\xC6\u40C6P\u803B&\u4026cute\u803B\xC1\u40C1reve;\u4102\u0100iyx}rc\u803B\xC2\u40C2;\u4410r;\uC000\u{1D504}rave\u803B\xC0\u40C0pha;\u4391acr;\u4100d;\u6A53\u0100gp\x9D\xA1on;\u4104f;\uC000\u{1D538}plyFunction;\u6061ing\u803B\xC5\u40C5\u0100cs\xBE\xC3r;\uC000\u{1D49C}ign;\u6254ilde\u803B\xC3\u40C3ml\u803B\xC4\u40C4\u0400aceforsu\xE5\xFB\xFE\u0117\u011C\u0122\u0127\u012A\u0100cr\xEA\xF2kslash;\u6216\u0176\xF6\xF8;\u6AE7ed;\u6306y;\u4411\u0180crt\u0105\u010B\u0114ause;\u6235noullis;\u612Ca;\u4392r;\uC000\u{1D505}pf;\uC000\u{1D539}eve;\u42D8c\xF2\u0113mpeq;\u624E\u0700HOacdefhilorsu\u014D\u0151\u0156\u0180\u019E\u01A2\u01B5\u01B7\u01BA\u01DC\u0215\u0273\u0278\u027Ecy;\u4427PY\u803B\xA9\u40A9\u0180cpy\u015D\u0162\u017Aute;\u4106\u0100;i\u0167\u0168\u62D2talDifferentialD;\u6145leys;\u612D\u0200aeio\u0189\u018E\u0194\u0198ron;\u410Cdil\u803B\xC7\u40C7rc;\u4108nint;\u6230ot;\u410A\u0100dn\u01A7\u01ADilla;\u40B8terDot;\u40B7\xF2\u017Fi;\u43A7rcle\u0200DMPT\u01C7\u01CB\u01D1\u01D6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01E2\u01F8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020FoubleQuote;\u601Duote;\u6019\u0200lnpu\u021E\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6A74\u0180git\u022F\u0236\u023Aruent;\u6261nt;\u622FourIntegral;\u622E\u0100fr\u024C\u024E;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6A2Fcr;\uC000\u{1D49E}p\u0100;C\u0284\u0285\u62D3ap;\u624D\u0580DJSZacefios\u02A0\u02AC\u02B0\u02B4\u02B8\u02CB\u02D7\u02E1\u02E6\u0333\u048D\u0100;o\u0179\u02A5trahd;\u6911cy;\u4402cy;\u4405cy;\u440F\u0180grs\u02BF\u02C4\u02C7ger;\u6021r;\u61A1hv;\u6AE4\u0100ay\u02D0\u02D5ron;\u410E;\u4414l\u0100;t\u02DD\u02DE\u6207a;\u4394r;\uC000\u{1D507}\u0100af\u02EB\u0327\u0100cm\u02F0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031Ccute;\u40B4o\u0174\u030B\u030D;\u42D9bleAcute;\u42DDrave;\u4060ilde;\u42DCond;\u62C4ferentialD;\u6146\u0470\u033D\0\0\0\u0342\u0354\0\u0405f;\uC000\u{1D53B}\u0180;DE\u0348\u0349\u034D\u40A8ot;\u60DCqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03CF\u03E2\u03F8ontourIntegra\xEC\u0239o\u0274\u0379\0\0\u037B\xBB\u0349nArrow;\u61D3\u0100eo\u0387\u03A4ft\u0180ART\u0390\u0396\u03A1rrow;\u61D0ightArrow;\u61D4e\xE5\u02CAng\u0100LR\u03AB\u03C4eft\u0100AR\u03B3\u03B9rrow;\u67F8ightArrow;\u67FAightArrow;\u67F9ight\u0100AT\u03D8\u03DErrow;\u61D2ee;\u62A8p\u0241\u03E9\0\0\u03EFrrow;\u61D1ownArrow;\u61D5erticalBar;\u6225n\u0300ABLRTa\u0412\u042A\u0430\u045E\u047F\u037Crrow\u0180;BU\u041D\u041E\u0422\u6193ar;\u6913pArrow;\u61F5reve;\u4311eft\u02D2\u043A\0\u0446\0\u0450ightVector;\u6950eeVector;\u695Eector\u0100;B\u0459\u045A\u61BDar;\u6956ight\u01D4\u0467\0\u0471eeVector;\u695Fector\u0100;B\u047A\u047B\u61C1ar;\u6957ee\u0100;A\u0486\u0487\u62A4rrow;\u61A7\u0100ct\u0492\u0497r;\uC000\u{1D49F}rok;\u4110\u0800NTacdfglmopqstux\u04BD\u04C0\u04C4\u04CB\u04DE\u04E2\u04E7\u04EE\u04F5\u0521\u052F\u0536\u0552\u055D\u0560\u0565G;\u414AH\u803B\xD0\u40D0cute\u803B\xC9\u40C9\u0180aiy\u04D2\u04D7\u04DCron;\u411Arc\u803B\xCA\u40CA;\u442Dot;\u4116r;\uC000\u{1D508}rave\u803B\xC8\u40C8ement;\u6208\u0100ap\u04FA\u04FEcr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65FBerySmallSquare;\u65AB\u0100gp\u0526\u052Aon;\u4118f;\uC000\u{1D53C}silon;\u4395u\u0100ai\u053C\u0549l\u0100;T\u0542\u0543\u6A75ilde;\u6242librium;\u61CC\u0100ci\u0557\u055Ar;\u6130m;\u6A73a;\u4397ml\u803B\xCB\u40CB\u0100ip\u056A\u056Fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058D\u05B2\u05CCy;\u4424r;\uC000\u{1D509}lled\u0253\u0597\0\0\u05A3mallSquare;\u65FCerySmallSquare;\u65AA\u0370\u05BA\0\u05BF\0\0\u05C4f;\uC000\u{1D53D}All;\u6200riertrf;\u6131c\xF2\u05CB\u0600JTabcdfgorst\u05E8\u05EC\u05EF\u05FA\u0600\u0612\u0616\u061B\u061D\u0623\u066C\u0672cy;\u4403\u803B>\u403Emma\u0100;d\u05F7\u05F8\u4393;\u43DCreve;\u411E\u0180eiy\u0607\u060C\u0610dil;\u4122rc;\u411C;\u4413ot;\u4120r;\uC000\u{1D50A};\u62D9pf;\uC000\u{1D53E}eater\u0300EFGLST\u0635\u0644\u064E\u0656\u065B\u0666qual\u0100;L\u063E\u063F\u6265ess;\u62DBullEqual;\u6267reater;\u6AA2ess;\u6277lantEqual;\u6A7Eilde;\u6273cr;\uC000\u{1D4A2};\u626B\u0400Aacfiosu\u0685\u068B\u0696\u069B\u069E\u06AA\u06BE\u06CARDcy;\u442A\u0100ct\u0690\u0694ek;\u42C7;\u405Eirc;\u4124r;\u610ClbertSpace;\u610B\u01F0\u06AF\0\u06B2f;\u610DizontalLine;\u6500\u0100ct\u06C3\u06C5\xF2\u06A9rok;\u4126mp\u0144\u06D0\u06D8ownHum\xF0\u012Fqual;\u624F\u0700EJOacdfgmnostu\u06FA\u06FE\u0703\u0707\u070E\u071A\u071E\u0721\u0728\u0744\u0778\u078B\u078F\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803B\xCD\u40CD\u0100iy\u0713\u0718rc\u803B\xCE\u40CE;\u4418ot;\u4130r;\u6111rave\u803B\xCC\u40CC\u0180;ap\u0720\u072F\u073F\u0100cg\u0734\u0737r;\u412AinaryI;\u6148lie\xF3\u03DD\u01F4\u0749\0\u0762\u0100;e\u074D\u074E\u622C\u0100gr\u0753\u0758ral;\u622Bsection;\u62C2isible\u0100CT\u076C\u0772omma;\u6063imes;\u6062\u0180gpt\u077F\u0783\u0788on;\u412Ef;\uC000\u{1D540}a;\u4399cr;\u6110ilde;\u4128\u01EB\u079A\0\u079Ecy;\u4406l\u803B\xCF\u40CF\u0280cfosu\u07AC\u07B7\u07BC\u07C2\u07D0\u0100iy\u07B1\u07B5rc;\u4134;\u4419r;\uC000\u{1D50D}pf;\uC000\u{1D541}\u01E3\u07C7\0\u07CCr;\uC000\u{1D4A5}rcy;\u4408kcy;\u4404\u0380HJacfos\u07E4\u07E8\u07EC\u07F1\u07FD\u0802\u0808cy;\u4425cy;\u440Cppa;\u439A\u0100ey\u07F6\u07FBdil;\u4136;\u441Ar;\uC000\u{1D50E}pf;\uC000\u{1D542}cr;\uC000\u{1D4A6}\u0580JTaceflmost\u0825\u0829\u082C\u0850\u0863\u09B3\u09B8\u09C7\u09CD\u0A37\u0A47cy;\u4409\u803B<\u403C\u0280cmnpr\u0837\u083C\u0841\u0844\u084Dute;\u4139bda;\u439Bg;\u67EAlacetrf;\u6112r;\u619E\u0180aey\u0857\u085C\u0861ron;\u413Ddil;\u413B;\u441B\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087E\u08A9\u08B1\u08E0\u08E6\u08FC\u092F\u095B\u0390\u096A\u0100nr\u0883\u088FgleBracket;\u67E8row\u0180;BR\u0899\u089A\u089E\u6190ar;\u61E4ightArrow;\u61C6eiling;\u6308o\u01F5\u08B7\0\u08C3bleBracket;\u67E6n\u01D4\u08C8\0\u08D2eeVector;\u6961ector\u0100;B\u08DB\u08DC\u61C3ar;\u6959loor;\u630Aight\u0100AV\u08EF\u08F5rrow;\u6194ector;\u694E\u0100er\u0901\u0917e\u0180;AV\u0909\u090A\u0910\u62A3rrow;\u61A4ector;\u695Aiangle\u0180;BE\u0924\u0925\u0929\u62B2ar;\u69CFqual;\u62B4p\u0180DTV\u0937\u0942\u094CownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61BFar;\u6958ector\u0100;B\u0965\u0966\u61BCar;\u6952ight\xE1\u039Cs\u0300EFGLST\u097E\u098B\u0995\u099D\u09A2\u09ADqualGreater;\u62DAullEqual;\u6266reater;\u6276ess;\u6AA1lantEqual;\u6A7Dilde;\u6272r;\uC000\u{1D50F}\u0100;e\u09BD\u09BE\u62D8ftarrow;\u61DAidot;\u413F\u0180npw\u09D4\u0A16\u0A1Bg\u0200LRlr\u09DE\u09F7\u0A02\u0A10eft\u0100AR\u09E6\u09ECrrow;\u67F5ightArrow;\u67F7ightArrow;\u67F6eft\u0100ar\u03B3\u0A0Aight\xE1\u03BFight\xE1\u03CAf;\uC000\u{1D543}er\u0100LR\u0A22\u0A2CeftArrow;\u6199ightArrow;\u6198\u0180cht\u0A3E\u0A40\u0A42\xF2\u084C;\u61B0rok;\u4141;\u626A\u0400acefiosu\u0A5A\u0A5D\u0A60\u0A77\u0A7C\u0A85\u0A8B\u0A8Ep;\u6905y;\u441C\u0100dl\u0A65\u0A6FiumSpace;\u605Flintrf;\u6133r;\uC000\u{1D510}nusPlus;\u6213pf;\uC000\u{1D544}c\xF2\u0A76;\u439C\u0480Jacefostu\u0AA3\u0AA7\u0AAD\u0AC0\u0B14\u0B19\u0D91\u0D97\u0D9Ecy;\u440Acute;\u4143\u0180aey\u0AB4\u0AB9\u0ABEron;\u4147dil;\u4145;\u441D\u0180gsw\u0AC7\u0AF0\u0B0Eative\u0180MTV\u0AD3\u0ADF\u0AE8ediumSpace;\u600Bhi\u0100cn\u0AE6\u0AD8\xEB\u0AD9eryThi\xEE\u0AD9ted\u0100GL\u0AF8\u0B06reaterGreate\xF2\u0673essLes\xF3\u0A48Line;\u400Ar;\uC000\u{1D511}\u0200Bnpt\u0B22\u0B28\u0B37\u0B3Areak;\u6060BreakingSpace;\u40A0f;\u6115\u0680;CDEGHLNPRSTV\u0B55\u0B56\u0B6A\u0B7C\u0BA1\u0BEB\u0C04\u0C5E\u0C84\u0CA6\u0CD8\u0D61\u0D85\u6AEC\u0100ou\u0B5B\u0B64ngruent;\u6262pCap;\u626DoubleVerticalBar;\u6226\u0180lqx\u0B83\u0B8A\u0B9Bement;\u6209ual\u0100;T\u0B92\u0B93\u6260ilde;\uC000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0BB6\u0BB7\u0BBD\u0BC9\u0BD3\u0BD8\u0BE5\u626Fqual;\u6271ullEqual;\uC000\u2267\u0338reater;\uC000\u226B\u0338ess;\u6279lantEqual;\uC000\u2A7E\u0338ilde;\u6275ump\u0144\u0BF2\u0BFDownHump;\uC000\u224E\u0338qual;\uC000\u224F\u0338e\u0100fs\u0C0A\u0C27tTriangle\u0180;BE\u0C1A\u0C1B\u0C21\u62EAar;\uC000\u29CF\u0338qual;\u62ECs\u0300;EGLST\u0C35\u0C36\u0C3C\u0C44\u0C4B\u0C58\u626Equal;\u6270reater;\u6278ess;\uC000\u226A\u0338lantEqual;\uC000\u2A7D\u0338ilde;\u6274ested\u0100GL\u0C68\u0C79reaterGreater;\uC000\u2AA2\u0338essLess;\uC000\u2AA1\u0338recedes\u0180;ES\u0C92\u0C93\u0C9B\u6280qual;\uC000\u2AAF\u0338lantEqual;\u62E0\u0100ei\u0CAB\u0CB9verseElement;\u620CghtTriangle\u0180;BE\u0CCB\u0CCC\u0CD2\u62EBar;\uC000\u29D0\u0338qual;\u62ED\u0100qu\u0CDD\u0D0CuareSu\u0100bp\u0CE8\u0CF9set\u0100;E\u0CF0\u0CF3\uC000\u228F\u0338qual;\u62E2erset\u0100;E\u0D03\u0D06\uC000\u2290\u0338qual;\u62E3\u0180bcp\u0D13\u0D24\u0D4Eset\u0100;E\u0D1B\u0D1E\uC000\u2282\u20D2qual;\u6288ceeds\u0200;EST\u0D32\u0D33\u0D3B\u0D46\u6281qual;\uC000\u2AB0\u0338lantEqual;\u62E1ilde;\uC000\u227F\u0338erset\u0100;E\u0D58\u0D5B\uC000\u2283\u20D2qual;\u6289ilde\u0200;EFT\u0D6E\u0D6F\u0D75\u0D7F\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uC000\u{1D4A9}ilde\u803B\xD1\u40D1;\u439D\u0700Eacdfgmoprstuv\u0DBD\u0DC2\u0DC9\u0DD5\u0DDB\u0DE0\u0DE7\u0DFC\u0E02\u0E20\u0E22\u0E32\u0E3F\u0E44lig;\u4152cute\u803B\xD3\u40D3\u0100iy\u0DCE\u0DD3rc\u803B\xD4\u40D4;\u441Eblac;\u4150r;\uC000\u{1D512}rave\u803B\xD2\u40D2\u0180aei\u0DEE\u0DF2\u0DF6cr;\u414Cga;\u43A9cron;\u439Fpf;\uC000\u{1D546}enCurly\u0100DQ\u0E0E\u0E1AoubleQuote;\u601Cuote;\u6018;\u6A54\u0100cl\u0E27\u0E2Cr;\uC000\u{1D4AA}ash\u803B\xD8\u40D8i\u016C\u0E37\u0E3Cde\u803B\xD5\u40D5es;\u6A37ml\u803B\xD6\u40D6er\u0100BP\u0E4B\u0E60\u0100ar\u0E50\u0E53r;\u603Eac\u0100ek\u0E5A\u0E5C;\u63DEet;\u63B4arenthesis;\u63DC\u0480acfhilors\u0E7F\u0E87\u0E8A\u0E8F\u0E92\u0E94\u0E9D\u0EB0\u0EFCrtialD;\u6202y;\u441Fr;\uC000\u{1D513}i;\u43A6;\u43A0usMinus;\u40B1\u0100ip\u0EA2\u0EADncareplan\xE5\u069Df;\u6119\u0200;eio\u0EB9\u0EBA\u0EE0\u0EE4\u6ABBcedes\u0200;EST\u0EC8\u0EC9\u0ECF\u0EDA\u627Aqual;\u6AAFlantEqual;\u627Cilde;\u627Eme;\u6033\u0100dp\u0EE9\u0EEEuct;\u620Fortion\u0100;a\u0225\u0EF9l;\u621D\u0100ci\u0F01\u0F06r;\uC000\u{1D4AB};\u43A8\u0200Ufos\u0F11\u0F16\u0F1B\u0F1FOT\u803B"\u4022r;\uC000\u{1D514}pf;\u611Acr;\uC000\u{1D4AC}\u0600BEacefhiorsu\u0F3E\u0F43\u0F47\u0F60\u0F73\u0FA7\u0FAA\u0FAD\u1096\u10A9\u10B4\u10BEarr;\u6910G\u803B\xAE\u40AE\u0180cnr\u0F4E\u0F53\u0F56ute;\u4154g;\u67EBr\u0100;t\u0F5C\u0F5D\u61A0l;\u6916\u0180aey\u0F67\u0F6C\u0F71ron;\u4158dil;\u4156;\u4420\u0100;v\u0F78\u0F79\u611Cerse\u0100EU\u0F82\u0F99\u0100lq\u0F87\u0F8Eement;\u620Builibrium;\u61CBpEquilibrium;\u696Fr\xBB\u0F79o;\u43A1ght\u0400ACDFTUVa\u0FC1\u0FEB\u0FF3\u1022\u1028\u105B\u1087\u03D8\u0100nr\u0FC6\u0FD2gleBracket;\u67E9row\u0180;BL\u0FDC\u0FDD\u0FE1\u6192ar;\u61E5eftArrow;\u61C4eiling;\u6309o\u01F5\u0FF9\0\u1005bleBracket;\u67E7n\u01D4\u100A\0\u1014eeVector;\u695Dector\u0100;B\u101D\u101E\u61C2ar;\u6955loor;\u630B\u0100er\u102D\u1043e\u0180;AV\u1035\u1036\u103C\u62A2rrow;\u61A6ector;\u695Biangle\u0180;BE\u1050\u1051\u1055\u62B3ar;\u69D0qual;\u62B5p\u0180DTV\u1063\u106E\u1078ownVector;\u694FeeVector;\u695Cector\u0100;B\u1082\u1083\u61BEar;\u6954ector\u0100;B\u1091\u1092\u61C0ar;\u6953\u0100pu\u109B\u109Ef;\u611DndImplies;\u6970ightarrow;\u61DB\u0100ch\u10B9\u10BCr;\u611B;\u61B1leDelayed;\u69F4\u0680HOacfhimoqstu\u10E4\u10F1\u10F7\u10FD\u1119\u111E\u1151\u1156\u1161\u1167\u11B5\u11BB\u11BF\u0100Cc\u10E9\u10EEHcy;\u4429y;\u4428FTcy;\u442Ccute;\u415A\u0280;aeiy\u1108\u1109\u110E\u1113\u1117\u6ABCron;\u4160dil;\u415Erc;\u415C;\u4421r;\uC000\u{1D516}ort\u0200DLRU\u112A\u1134\u113E\u1149ownArrow\xBB\u041EeftArrow\xBB\u089AightArrow\xBB\u0FDDpArrow;\u6191gma;\u43A3allCircle;\u6218pf;\uC000\u{1D54A}\u0272\u116D\0\0\u1170t;\u621Aare\u0200;ISU\u117B\u117C\u1189\u11AF\u65A1ntersection;\u6293u\u0100bp\u118F\u119Eset\u0100;E\u1197\u1198\u628Fqual;\u6291erset\u0100;E\u11A8\u11A9\u6290qual;\u6292nion;\u6294cr;\uC000\u{1D4AE}ar;\u62C6\u0200bcmp\u11C8\u11DB\u1209\u120B\u0100;s\u11CD\u11CE\u62D0et\u0100;E\u11CD\u11D5qual;\u6286\u0100ch\u11E0\u1205eeds\u0200;EST\u11ED\u11EE\u11F4\u11FF\u627Bqual;\u6AB0lantEqual;\u627Dilde;\u627FTh\xE1\u0F8C;\u6211\u0180;es\u1212\u1213\u1223\u62D1rset\u0100;E\u121C\u121D\u6283qual;\u6287et\xBB\u1213\u0580HRSacfhiors\u123E\u1244\u1249\u1255\u125E\u1271\u1276\u129F\u12C2\u12C8\u12D1ORN\u803B\xDE\u40DEADE;\u6122\u0100Hc\u124E\u1252cy;\u440By;\u4426\u0100bu\u125A\u125C;\u4009;\u43A4\u0180aey\u1265\u126A\u126Fron;\u4164dil;\u4162;\u4422r;\uC000\u{1D517}\u0100ei\u127B\u1289\u01F2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128E\u1298kSpace;\uC000\u205F\u200ASpace;\u6009lde\u0200;EFT\u12AB\u12AC\u12B2\u12BC\u623Cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uC000\u{1D54B}ipleDot;\u60DB\u0100ct\u12D6\u12DBr;\uC000\u{1D4AF}rok;\u4166\u0AE1\u12F7\u130E\u131A\u1326\0\u132C\u1331\0\0\0\0\0\u1338\u133D\u1377\u1385\0\u13FF\u1404\u140A\u1410\u0100cr\u12FB\u1301ute\u803B\xDA\u40DAr\u0100;o\u1307\u1308\u619Fcir;\u6949r\u01E3\u1313\0\u1316y;\u440Eve;\u416C\u0100iy\u131E\u1323rc\u803B\xDB\u40DB;\u4423blac;\u4170r;\uC000\u{1D518}rave\u803B\xD9\u40D9acr;\u416A\u0100di\u1341\u1369er\u0100BP\u1348\u135D\u0100ar\u134D\u1350r;\u405Fac\u0100ek\u1357\u1359;\u63DFet;\u63B5arenthesis;\u63DDon\u0100;P\u1370\u1371\u62C3lus;\u628E\u0100gp\u137B\u137Fon;\u4172f;\uC000\u{1D54C}\u0400ADETadps\u1395\u13AE\u13B8\u13C4\u03E8\u13D2\u13D7\u13F3rrow\u0180;BD\u1150\u13A0\u13A4ar;\u6912ownArrow;\u61C5ownArrow;\u6195quilibrium;\u696Eee\u0100;A\u13CB\u13CC\u62A5rrow;\u61A5own\xE1\u03F3er\u0100LR\u13DE\u13E8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13F9\u13FA\u43D2on;\u43A5ing;\u416Ecr;\uC000\u{1D4B0}ilde;\u4168ml\u803B\xDC\u40DC\u0480Dbcdefosv\u1427\u142C\u1430\u1433\u143E\u1485\u148A\u1490\u1496ash;\u62ABar;\u6AEBy;\u4412ash\u0100;l\u143B\u143C\u62A9;\u6AE6\u0100er\u1443\u1445;\u62C1\u0180bty\u144C\u1450\u147Aar;\u6016\u0100;i\u144F\u1455cal\u0200BLST\u1461\u1465\u146A\u1474ar;\u6223ine;\u407Ceparator;\u6758ilde;\u6240ThinSpace;\u600Ar;\uC000\u{1D519}pf;\uC000\u{1D54D}cr;\uC000\u{1D4B1}dash;\u62AA\u0280cefos\u14A7\u14AC\u14B1\u14B6\u14BCirc;\u4174dge;\u62C0r;\uC000\u{1D51A}pf;\uC000\u{1D54E}cr;\uC000\u{1D4B2}\u0200fios\u14CB\u14D0\u14D2\u14D8r;\uC000\u{1D51B};\u439Epf;\uC000\u{1D54F}cr;\uC000\u{1D4B3}\u0480AIUacfosu\u14F1\u14F5\u14F9\u14FD\u1504\u150F\u1514\u151A\u1520cy;\u442Fcy;\u4407cy;\u442Ecute\u803B\xDD\u40DD\u0100iy\u1509\u150Drc;\u4176;\u442Br;\uC000\u{1D51C}pf;\uC000\u{1D550}cr;\uC000\u{1D4B4}ml;\u4178\u0400Hacdefos\u1535\u1539\u153F\u154B\u154F\u155D\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417D;\u4417ot;\u417B\u01F2\u1554\0\u155BoWidt\xE8\u0AD9a;\u4396r;\u6128pf;\u6124cr;\uC000\u{1D4B5}\u0BE1\u1583\u158A\u1590\0\u15B0\u15B6\u15BF\0\0\0\0\u15C6\u15DB\u15EB\u165F\u166D\0\u1695\u169B\u16B2\u16B9\0\u16BEcute\u803B\xE1\u40E1reve;\u4103\u0300;Ediuy\u159C\u159D\u15A1\u15A3\u15A8\u15AD\u623E;\uC000\u223E\u0333;\u623Frc\u803B\xE2\u40E2te\u80BB\xB4\u0306;\u4430lig\u803B\xE6\u40E6\u0100;r\xB2\u15BA;\uC000\u{1D51E}rave\u803B\xE0\u40E0\u0100ep\u15CA\u15D6\u0100fp\u15CF\u15D4sym;\u6135\xE8\u15D3ha;\u43B1\u0100ap\u15DFc\u0100cl\u15E4\u15E7r;\u4101g;\u6A3F\u0264\u15F0\0\0\u160A\u0280;adsv\u15FA\u15FB\u15FF\u1601\u1607\u6227nd;\u6A55;\u6A5Clope;\u6A58;\u6A5A\u0380;elmrsz\u1618\u1619\u161B\u161E\u163F\u164F\u1659\u6220;\u69A4e\xBB\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163A\u163C\u163E;\u69A8;\u69A9;\u69AA;\u69AB;\u69AC;\u69AD;\u69AE;\u69AFt\u0100;v\u1645\u1646\u621Fb\u0100;d\u164C\u164D\u62BE;\u699D\u0100pt\u1654\u1657h;\u6222\xBB\xB9arr;\u637C\u0100gp\u1663\u1667on;\u4105f;\uC000\u{1D552}\u0380;Eaeiop\u12C1\u167B\u167D\u1682\u1684\u1687\u168A;\u6A70cir;\u6A6F;\u624Ad;\u624Bs;\u4027rox\u0100;e\u12C1\u1692\xF1\u1683ing\u803B\xE5\u40E5\u0180cty\u16A1\u16A6\u16A8r;\uC000\u{1D4B6};\u402Amp\u0100;e\u12C1\u16AF\xF1\u0288ilde\u803B\xE3\u40E3ml\u803B\xE4\u40E4\u0100ci\u16C2\u16C8onin\xF4\u0272nt;\u6A11\u0800Nabcdefiklnoprsu\u16ED\u16F1\u1730\u173C\u1743\u1748\u1778\u177D\u17E0\u17E6\u1839\u1850\u170D\u193D\u1948\u1970ot;\u6AED\u0100cr\u16F6\u171Ek\u0200ceps\u1700\u1705\u170D\u1713ong;\u624Cpsilon;\u43F6rime;\u6035im\u0100;e\u171A\u171B\u623Dq;\u62CD\u0176\u1722\u1726ee;\u62BDed\u0100;g\u172C\u172D\u6305e\xBB\u172Drk\u0100;t\u135C\u1737brk;\u63B6\u0100oy\u1701\u1741;\u4431quo;\u601E\u0280cmprt\u1753\u175B\u1761\u1764\u1768aus\u0100;e\u010A\u0109ptyv;\u69B0s\xE9\u170Cno\xF5\u0113\u0180ahw\u176F\u1771\u1773;\u43B2;\u6136een;\u626Cr;\uC000\u{1D51F}g\u0380costuvw\u178D\u179D\u17B3\u17C1\u17D5\u17DB\u17DE\u0180aiu\u1794\u1796\u179A\xF0\u0760rc;\u65EFp\xBB\u1371\u0180dpt\u17A4\u17A8\u17ADot;\u6A00lus;\u6A01imes;\u6A02\u0271\u17B9\0\0\u17BEcup;\u6A06ar;\u6605riangle\u0100du\u17CD\u17D2own;\u65BDp;\u65B3plus;\u6A04e\xE5\u1444\xE5\u14ADarow;\u690D\u0180ako\u17ED\u1826\u1835\u0100cn\u17F2\u1823k\u0180lst\u17FA\u05AB\u1802ozenge;\u69EBriangle\u0200;dlr\u1812\u1813\u1818\u181D\u65B4own;\u65BEeft;\u65C2ight;\u65B8k;\u6423\u01B1\u182B\0\u1833\u01B2\u182F\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183E\u184D\u0100;q\u1843\u1846\uC000=\u20E5uiv;\uC000\u2261\u20E5t;\u6310\u0200ptwx\u1859\u185E\u1867\u186Cf;\uC000\u{1D553}\u0100;t\u13CB\u1863om\xBB\u13CCtie;\u62C8\u0600DHUVbdhmptuv\u1885\u1896\u18AA\u18BB\u18D7\u18DB\u18EC\u18FF\u1905\u190A\u1910\u1921\u0200LRlr\u188E\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18A1\u18A2\u18A4\u18A6\u18A8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18B3\u18B5\u18B7\u18B9;\u655D;\u655A;\u655C;\u6559\u0380;HLRhlr\u18CA\u18CB\u18CD\u18CF\u18D1\u18D3\u18D5\u6551;\u656C;\u6563;\u6560;\u656B;\u6562;\u655Fox;\u69C9\u0200LRlr\u18E4\u18E6\u18E8\u18EA;\u6555;\u6552;\u6510;\u650C\u0280;DUdu\u06BD\u18F7\u18F9\u18FB\u18FD;\u6565;\u6568;\u652C;\u6534inus;\u629Flus;\u629Eimes;\u62A0\u0200LRlr\u1919\u191B\u191D\u191F;\u655B;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193B\u6502;\u656A;\u6561;\u655E;\u653C;\u6524;\u651C\u0100ev\u0123\u1942bar\u803B\xA6\u40A6\u0200ceio\u1951\u1956\u195A\u1960r;\uC000\u{1D4B7}mi;\u604Fm\u0100;e\u171A\u171Cl\u0180;bh\u1968\u1969\u196B\u405C;\u69C5sub;\u67C8\u016C\u1974\u197El\u0100;e\u1979\u197A\u6022t\xBB\u197Ap\u0180;Ee\u012F\u1985\u1987;\u6AAE\u0100;q\u06DC\u06DB\u0CE1\u19A7\0\u19E8\u1A11\u1A15\u1A32\0\u1A37\u1A50\0\0\u1AB4\0\0\u1AC1\0\0\u1B21\u1B2E\u1B4D\u1B52\0\u1BFD\0\u1C0C\u0180cpr\u19AD\u19B2\u19DDute;\u4107\u0300;abcds\u19BF\u19C0\u19C4\u19CA\u19D5\u19D9\u6229nd;\u6A44rcup;\u6A49\u0100au\u19CF\u19D2p;\u6A4Bp;\u6A47ot;\u6A40;\uC000\u2229\uFE00\u0100eo\u19E2\u19E5t;\u6041\xEE\u0693\u0200aeiu\u19F0\u19FB\u1A01\u1A05\u01F0\u19F5\0\u19F8s;\u6A4Don;\u410Ddil\u803B\xE7\u40E7rc;\u4109ps\u0100;s\u1A0C\u1A0D\u6A4Cm;\u6A50ot;\u410B\u0180dmn\u1A1B\u1A20\u1A26il\u80BB\xB8\u01ADptyv;\u69B2t\u8100\xA2;e\u1A2D\u1A2E\u40A2r\xE4\u01B2r;\uC000\u{1D520}\u0180cei\u1A3D\u1A40\u1A4Dy;\u4447ck\u0100;m\u1A47\u1A48\u6713ark\xBB\u1A48;\u43C7r\u0380;Ecefms\u1A5F\u1A60\u1A62\u1A6B\u1AA4\u1AAA\u1AAE\u65CB;\u69C3\u0180;el\u1A69\u1A6A\u1A6D\u42C6q;\u6257e\u0261\u1A74\0\0\u1A88rrow\u0100lr\u1A7C\u1A81eft;\u61BAight;\u61BB\u0280RSacd\u1A92\u1A94\u1A96\u1A9A\u1A9F\xBB\u0F47;\u64C8st;\u629Birc;\u629Aash;\u629Dnint;\u6A10id;\u6AEFcir;\u69C2ubs\u0100;u\u1ABB\u1ABC\u6663it\xBB\u1ABC\u02EC\u1AC7\u1AD4\u1AFA\0\u1B0Aon\u0100;e\u1ACD\u1ACE\u403A\u0100;q\xC7\xC6\u026D\u1AD9\0\0\u1AE2a\u0100;t\u1ADE\u1ADF\u402C;\u4040\u0180;fl\u1AE8\u1AE9\u1AEB\u6201\xEE\u1160e\u0100mx\u1AF1\u1AF6ent\xBB\u1AE9e\xF3\u024D\u01E7\u1AFE\0\u1B07\u0100;d\u12BB\u1B02ot;\u6A6Dn\xF4\u0246\u0180fry\u1B10\u1B14\u1B17;\uC000\u{1D554}o\xE4\u0254\u8100\xA9;s\u0155\u1B1Dr;\u6117\u0100ao\u1B25\u1B29rr;\u61B5ss;\u6717\u0100cu\u1B32\u1B37r;\uC000\u{1D4B8}\u0100bp\u1B3C\u1B44\u0100;e\u1B41\u1B42\u6ACF;\u6AD1\u0100;e\u1B49\u1B4A\u6AD0;\u6AD2dot;\u62EF\u0380delprvw\u1B60\u1B6C\u1B77\u1B82\u1BAC\u1BD4\u1BF9arr\u0100lr\u1B68\u1B6A;\u6938;\u6935\u0270\u1B72\0\0\u1B75r;\u62DEc;\u62DFarr\u0100;p\u1B7F\u1B80\u61B6;\u693D\u0300;bcdos\u1B8F\u1B90\u1B96\u1BA1\u1BA5\u1BA8\u622Arcap;\u6A48\u0100au\u1B9B\u1B9Ep;\u6A46p;\u6A4Aot;\u628Dr;\u6A45;\uC000\u222A\uFE00\u0200alrv\u1BB5\u1BBF\u1BDE\u1BE3rr\u0100;m\u1BBC\u1BBD\u61B7;\u693Cy\u0180evw\u1BC7\u1BD4\u1BD8q\u0270\u1BCE\0\0\u1BD2re\xE3\u1B73u\xE3\u1B75ee;\u62CEedge;\u62CFen\u803B\xA4\u40A4earrow\u0100lr\u1BEE\u1BF3eft\xBB\u1B80ight\xBB\u1BBDe\xE4\u1BDD\u0100ci\u1C01\u1C07onin\xF4\u01F7nt;\u6231lcty;\u632D\u0980AHabcdefhijlorstuwz\u1C38\u1C3B\u1C3F\u1C5D\u1C69\u1C75\u1C8A\u1C9E\u1CAC\u1CB7\u1CFB\u1CFF\u1D0D\u1D7B\u1D91\u1DAB\u1DBB\u1DC6\u1DCDr\xF2\u0381ar;\u6965\u0200glrs\u1C48\u1C4D\u1C52\u1C54ger;\u6020eth;\u6138\xF2\u1133h\u0100;v\u1C5A\u1C5B\u6010\xBB\u090A\u016B\u1C61\u1C67arow;\u690Fa\xE3\u0315\u0100ay\u1C6E\u1C73ron;\u410F;\u4434\u0180;ao\u0332\u1C7C\u1C84\u0100gr\u02BF\u1C81r;\u61CAtseq;\u6A77\u0180glm\u1C91\u1C94\u1C98\u803B\xB0\u40B0ta;\u43B4ptyv;\u69B1\u0100ir\u1CA3\u1CA8sht;\u697F;\uC000\u{1D521}ar\u0100lr\u1CB3\u1CB5\xBB\u08DC\xBB\u101E\u0280aegsv\u1CC2\u0378\u1CD6\u1CDC\u1CE0m\u0180;os\u0326\u1CCA\u1CD4nd\u0100;s\u0326\u1CD1uit;\u6666amma;\u43DDin;\u62F2\u0180;io\u1CE7\u1CE8\u1CF8\u40F7de\u8100\xF7;o\u1CE7\u1CF0ntimes;\u62C7n\xF8\u1CF7cy;\u4452c\u026F\u1D06\0\0\u1D0Arn;\u631Eop;\u630D\u0280lptuw\u1D18\u1D1D\u1D22\u1D49\u1D55lar;\u4024f;\uC000\u{1D555}\u0280;emps\u030B\u1D2D\u1D37\u1D3D\u1D42q\u0100;d\u0352\u1D33ot;\u6251inus;\u6238lus;\u6214quare;\u62A1blebarwedg\xE5\xFAn\u0180adh\u112E\u1D5D\u1D67ownarrow\xF3\u1C83arpoon\u0100lr\u1D72\u1D76ef\xF4\u1CB4igh\xF4\u1CB6\u0162\u1D7F\u1D85karo\xF7\u0F42\u026F\u1D8A\0\0\u1D8Ern;\u631Fop;\u630C\u0180cot\u1D98\u1DA3\u1DA6\u0100ry\u1D9D\u1DA1;\uC000\u{1D4B9};\u4455l;\u69F6rok;\u4111\u0100dr\u1DB0\u1DB4ot;\u62F1i\u0100;f\u1DBA\u1816\u65BF\u0100ah\u1DC0\u1DC3r\xF2\u0429a\xF2\u0FA6angle;\u69A6\u0100ci\u1DD2\u1DD5y;\u445Fgrarr;\u67FF\u0900Dacdefglmnopqrstux\u1E01\u1E09\u1E19\u1E38\u0578\u1E3C\u1E49\u1E61\u1E7E\u1EA5\u1EAF\u1EBD\u1EE1\u1F2A\u1F37\u1F44\u1F4E\u1F5A\u0100Do\u1E06\u1D34o\xF4\u1C89\u0100cs\u1E0E\u1E14ute\u803B\xE9\u40E9ter;\u6A6E\u0200aioy\u1E22\u1E27\u1E31\u1E36ron;\u411Br\u0100;c\u1E2D\u1E2E\u6256\u803B\xEA\u40EAlon;\u6255;\u444Dot;\u4117\u0100Dr\u1E41\u1E45ot;\u6252;\uC000\u{1D522}\u0180;rs\u1E50\u1E51\u1E57\u6A9Aave\u803B\xE8\u40E8\u0100;d\u1E5C\u1E5D\u6A96ot;\u6A98\u0200;ils\u1E6A\u1E6B\u1E72\u1E74\u6A99nters;\u63E7;\u6113\u0100;d\u1E79\u1E7A\u6A95ot;\u6A97\u0180aps\u1E85\u1E89\u1E97cr;\u4113ty\u0180;sv\u1E92\u1E93\u1E95\u6205et\xBB\u1E93p\u01001;\u1E9D\u1EA4\u0133\u1EA1\u1EA3;\u6004;\u6005\u6003\u0100gs\u1EAA\u1EAC;\u414Bp;\u6002\u0100gp\u1EB4\u1EB8on;\u4119f;\uC000\u{1D556}\u0180als\u1EC4\u1ECE\u1ED2r\u0100;s\u1ECA\u1ECB\u62D5l;\u69E3us;\u6A71i\u0180;lv\u1EDA\u1EDB\u1EDF\u43B5on\xBB\u1EDB;\u43F5\u0200csuv\u1EEA\u1EF3\u1F0B\u1F23\u0100io\u1EEF\u1E31rc\xBB\u1E2E\u0269\u1EF9\0\0\u1EFB\xED\u0548ant\u0100gl\u1F02\u1F06tr\xBB\u1E5Dess\xBB\u1E7A\u0180aei\u1F12\u1F16\u1F1Als;\u403Dst;\u625Fv\u0100;D\u0235\u1F20D;\u6A78parsl;\u69E5\u0100Da\u1F2F\u1F33ot;\u6253rr;\u6971\u0180cdi\u1F3E\u1F41\u1EF8r;\u612Fo\xF4\u0352\u0100ah\u1F49\u1F4B;\u43B7\u803B\xF0\u40F0\u0100mr\u1F53\u1F57l\u803B\xEB\u40EBo;\u60AC\u0180cip\u1F61\u1F64\u1F67l;\u4021s\xF4\u056E\u0100eo\u1F6C\u1F74ctatio\xEE\u0559nential\xE5\u0579\u09E1\u1F92\0\u1F9E\0\u1FA1\u1FA7\0\0\u1FC6\u1FCC\0\u1FD3\0\u1FE6\u1FEA\u2000\0\u2008\u205Allingdotse\xF1\u1E44y;\u4444male;\u6640\u0180ilr\u1FAD\u1FB3\u1FC1lig;\u8000\uFB03\u0269\u1FB9\0\0\u1FBDg;\u8000\uFB00ig;\u8000\uFB04;\uC000\u{1D523}lig;\u8000\uFB01lig;\uC000fj\u0180alt\u1FD9\u1FDC\u1FE1t;\u666Dig;\u8000\uFB02ns;\u65B1of;\u4192\u01F0\u1FEE\0\u1FF3f;\uC000\u{1D557}\u0100ak\u05BF\u1FF7\u0100;v\u1FFC\u1FFD\u62D4;\u6AD9artint;\u6A0D\u0100ao\u200C\u2055\u0100cs\u2011\u2052\u03B1\u201A\u2030\u2038\u2045\u2048\0\u2050\u03B2\u2022\u2025\u2027\u202A\u202C\0\u202E\u803B\xBD\u40BD;\u6153\u803B\xBC\u40BC;\u6155;\u6159;\u615B\u01B3\u2034\0\u2036;\u6154;\u6156\u02B4\u203E\u2041\0\0\u2043\u803B\xBE\u40BE;\u6157;\u615C5;\u6158\u01B6\u204C\0\u204E;\u615A;\u615D8;\u615El;\u6044wn;\u6322cr;\uC000\u{1D4BB}\u0880Eabcdefgijlnorstv\u2082\u2089\u209F\u20A5\u20B0\u20B4\u20F0\u20F5\u20FA\u20FF\u2103\u2112\u2138\u0317\u213E\u2152\u219E\u0100;l\u064D\u2087;\u6A8C\u0180cmp\u2090\u2095\u209Dute;\u41F5ma\u0100;d\u209C\u1CDA\u43B3;\u6A86reve;\u411F\u0100iy\u20AA\u20AErc;\u411D;\u4433ot;\u4121\u0200;lqs\u063E\u0642\u20BD\u20C9\u0180;qs\u063E\u064C\u20C4lan\xF4\u0665\u0200;cdl\u0665\u20D2\u20D5\u20E5c;\u6AA9ot\u0100;o\u20DC\u20DD\u6A80\u0100;l\u20E2\u20E3\u6A82;\u6A84\u0100;e\u20EA\u20ED\uC000\u22DB\uFE00s;\u6A94r;\uC000\u{1D524}\u0100;g\u0673\u061Bmel;\u6137cy;\u4453\u0200;Eaj\u065A\u210C\u210E\u2110;\u6A92;\u6AA5;\u6AA4\u0200Eaes\u211B\u211D\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6A8Arox\xBB\u2124\u0100;q\u212E\u212F\u6A88\u0100;q\u212E\u211Bim;\u62E7pf;\uC000\u{1D558}\u0100ci\u2143\u2146r;\u610Am\u0180;el\u066B\u214E\u2150;\u6A8E;\u6A90\u8300>;cdlqr\u05EE\u2160\u216A\u216E\u2173\u2179\u0100ci\u2165\u2167;\u6AA7r;\u6A7Aot;\u62D7Par;\u6995uest;\u6A7C\u0280adels\u2184\u216A\u2190\u0656\u219B\u01F0\u2189\0\u218Epro\xF8\u209Er;\u6978q\u0100lq\u063F\u2196les\xF3\u2088i\xED\u066B\u0100en\u21A3\u21ADrtneqq;\uC000\u2269\uFE00\xC5\u21AA\u0500Aabcefkosy\u21C4\u21C7\u21F1\u21F5\u21FA\u2218\u221D\u222F\u2268\u227Dr\xF2\u03A0\u0200ilmr\u21D0\u21D4\u21D7\u21DBrs\xF0\u1484f\xBB\u2024il\xF4\u06A9\u0100dr\u21E0\u21E4cy;\u444A\u0180;cw\u08F4\u21EB\u21EFir;\u6948;\u61ADar;\u610Firc;\u4125\u0180alr\u2201\u220E\u2213rts\u0100;u\u2209\u220A\u6665it\xBB\u220Alip;\u6026con;\u62B9r;\uC000\u{1D525}s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223A\u223E\u2243\u225E\u2263rr;\u61FFtht;\u623Bk\u0100lr\u2249\u2253eftarrow;\u61A9ightarrow;\u61AAf;\uC000\u{1D559}bar;\u6015\u0180clt\u226F\u2274\u2278r;\uC000\u{1D4BD}as\xE8\u21F4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xBB\u1C5B\u0AE1\u22A3\0\u22AA\0\u22B8\u22C5\u22CE\0\u22D5\u22F3\0\0\u22F8\u2322\u2367\u2362\u237F\0\u2386\u23AA\u23B4cute\u803B\xED\u40ED\u0180;iy\u0771\u22B0\u22B5rc\u803B\xEE\u40EE;\u4438\u0100cx\u22BC\u22BFy;\u4435cl\u803B\xA1\u40A1\u0100fr\u039F\u22C9;\uC000\u{1D526}rave\u803B\xEC\u40EC\u0200;ino\u073E\u22DD\u22E9\u22EE\u0100in\u22E2\u22E6nt;\u6A0Ct;\u622Dfin;\u69DCta;\u6129lig;\u4133\u0180aop\u22FE\u231A\u231D\u0180cgt\u2305\u2308\u2317r;\u412B\u0180elp\u071F\u230F\u2313in\xE5\u078Ear\xF4\u0720h;\u4131f;\u62B7ed;\u41B5\u0280;cfot\u04F4\u232C\u2331\u233D\u2341are;\u6105in\u0100;t\u2338\u2339\u621Eie;\u69DDdo\xF4\u2319\u0280;celp\u0757\u234C\u2350\u235B\u2361al;\u62BA\u0100gr\u2355\u2359er\xF3\u1563\xE3\u234Darhk;\u6A17rod;\u6A3C\u0200cgpt\u236F\u2372\u2376\u237By;\u4451on;\u412Ff;\uC000\u{1D55A}a;\u43B9uest\u803B\xBF\u40BF\u0100ci\u238A\u238Fr;\uC000\u{1D4BE}n\u0280;Edsv\u04F4\u239B\u239D\u23A1\u04F3;\u62F9ot;\u62F5\u0100;v\u23A6\u23A7\u62F4;\u62F3\u0100;i\u0777\u23AElde;\u4129\u01EB\u23B8\0\u23BCcy;\u4456l\u803B\xEF\u40EF\u0300cfmosu\u23CC\u23D7\u23DC\u23E1\u23E7\u23F5\u0100iy\u23D1\u23D5rc;\u4135;\u4439r;\uC000\u{1D527}ath;\u4237pf;\uC000\u{1D55B}\u01E3\u23EC\0\u23F1r;\uC000\u{1D4BF}rcy;\u4458kcy;\u4454\u0400acfghjos\u240B\u2416\u2422\u2427\u242D\u2431\u2435\u243Bppa\u0100;v\u2413\u2414\u43BA;\u43F0\u0100ey\u241B\u2420dil;\u4137;\u443Ar;\uC000\u{1D528}reen;\u4138cy;\u4445cy;\u445Cpf;\uC000\u{1D55C}cr;\uC000\u{1D4C0}\u0B80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248D\u2491\u250E\u253D\u255A\u2580\u264E\u265E\u2665\u2679\u267D\u269A\u26B2\u26D8\u275D\u2768\u278B\u27C0\u2801\u2812\u0180art\u2477\u247A\u247Cr\xF2\u09C6\xF2\u0395ail;\u691Barr;\u690E\u0100;g\u0994\u248B;\u6A8Bar;\u6962\u0963\u24A5\0\u24AA\0\u24B1\0\0\0\0\0\u24B5\u24BA\0\u24C6\u24C8\u24CD\0\u24F9ute;\u413Amptyv;\u69B4ra\xEE\u084Cbda;\u43BBg\u0180;dl\u088E\u24C1\u24C3;\u6991\xE5\u088E;\u6A85uo\u803B\xAB\u40ABr\u0400;bfhlpst\u0899\u24DE\u24E6\u24E9\u24EB\u24EE\u24F1\u24F5\u0100;f\u089D\u24E3s;\u691Fs;\u691D\xEB\u2252p;\u61ABl;\u6939im;\u6973l;\u61A2\u0180;ae\u24FF\u2500\u2504\u6AABil;\u6919\u0100;s\u2509\u250A\u6AAD;\uC000\u2AAD\uFE00\u0180abr\u2515\u2519\u251Drr;\u690Crk;\u6772\u0100ak\u2522\u252Cc\u0100ek\u2528\u252A;\u407B;\u405B\u0100es\u2531\u2533;\u698Bl\u0100du\u2539\u253B;\u698F;\u698D\u0200aeuy\u2546\u254B\u2556\u2558ron;\u413E\u0100di\u2550\u2554il;\u413C\xEC\u08B0\xE2\u2529;\u443B\u0200cqrs\u2563\u2566\u256D\u257Da;\u6936uo\u0100;r\u0E19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694Bh;\u61B2\u0280;fgqs\u258B\u258C\u0989\u25F3\u25FF\u6264t\u0280ahlrt\u2598\u25A4\u25B7\u25C2\u25E8rrow\u0100;t\u0899\u25A1a\xE9\u24F6arpoon\u0100du\u25AF\u25B4own\xBB\u045Ap\xBB\u0966eftarrows;\u61C7ight\u0180ahs\u25CD\u25D6\u25DErrow\u0100;s\u08F4\u08A7arpoon\xF3\u0F98quigarro\xF7\u21F0hreetimes;\u62CB\u0180;qs\u258B\u0993\u25FAlan\xF4\u09AC\u0280;cdgs\u09AC\u260A\u260D\u261D\u2628c;\u6AA8ot\u0100;o\u2614\u2615\u6A7F\u0100;r\u261A\u261B\u6A81;\u6A83\u0100;e\u2622\u2625\uC000\u22DA\uFE00s;\u6A93\u0280adegs\u2633\u2639\u263D\u2649\u264Bppro\xF8\u24C6ot;\u62D6q\u0100gq\u2643\u2645\xF4\u0989gt\xF2\u248C\xF4\u099Bi\xED\u09B2\u0180ilr\u2655\u08E1\u265Asht;\u697C;\uC000\u{1D529}\u0100;E\u099C\u2663;\u6A91\u0161\u2669\u2676r\u0100du\u25B2\u266E\u0100;l\u0965\u2673;\u696Alk;\u6584cy;\u4459\u0280;acht\u0A48\u2688\u268B\u2691\u2696r\xF2\u25C1orne\xF2\u1D08ard;\u696Bri;\u65FA\u0100io\u269F\u26A4dot;\u4140ust\u0100;a\u26AC\u26AD\u63B0che\xBB\u26AD\u0200Eaes\u26BB\u26BD\u26C9\u26D4;\u6268p\u0100;p\u26C3\u26C4\u6A89rox\xBB\u26C4\u0100;q\u26CE\u26CF\u6A87\u0100;q\u26CE\u26BBim;\u62E6\u0400abnoptwz\u26E9\u26F4\u26F7\u271A\u272F\u2741\u2747\u2750\u0100nr\u26EE\u26F1g;\u67ECr;\u61FDr\xEB\u08C1g\u0180lmr\u26FF\u270D\u2714eft\u0100ar\u09E6\u2707ight\xE1\u09F2apsto;\u67FCight\xE1\u09FDparrow\u0100lr\u2725\u2729ef\xF4\u24EDight;\u61AC\u0180afl\u2736\u2739\u273Dr;\u6985;\uC000\u{1D55D}us;\u6A2Dimes;\u6A34\u0161\u274B\u274Fst;\u6217\xE1\u134E\u0180;ef\u2757\u2758\u1800\u65CAnge\xBB\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277C\u2785\u2787r\xF2\u08A8orne\xF2\u1D8Car\u0100;d\u0F98\u2783;\u696D;\u600Eri;\u62BF\u0300achiqt\u2798\u279D\u0A40\u27A2\u27AE\u27BBquo;\u6039r;\uC000\u{1D4C1}m\u0180;eg\u09B2\u27AA\u27AC;\u6A8D;\u6A8F\u0100bu\u252A\u27B3o\u0100;r\u0E1F\u27B9;\u601Arok;\u4142\u8400<;cdhilqr\u082B\u27D2\u2639\u27DC\u27E0\u27E5\u27EA\u27F0\u0100ci\u27D7\u27D9;\u6AA6r;\u6A79re\xE5\u25F2mes;\u62C9arr;\u6976uest;\u6A7B\u0100Pi\u27F5\u27F9ar;\u6996\u0180;ef\u2800\u092D\u181B\u65C3r\u0100du\u2807\u280Dshar;\u694Ahar;\u6966\u0100en\u2817\u2821rtneqq;\uC000\u2268\uFE00\xC5\u281E\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288E\u2893\u28A0\u28A5\u28A8\u28DA\u28E2\u28E4\u0A83\u28F3\u2902Dot;\u623A\u0200clpr\u284E\u2852\u2863\u287Dr\u803B\xAF\u40AF\u0100et\u2857\u2859;\u6642\u0100;e\u285E\u285F\u6720se\xBB\u285F\u0100;s\u103B\u2868to\u0200;dlu\u103B\u2873\u2877\u287Bow\xEE\u048Cef\xF4\u090F\xF0\u13D1ker;\u65AE\u0100oy\u2887\u288Cmma;\u6A29;\u443Cash;\u6014asuredangle\xBB\u1626r;\uC000\u{1D52A}o;\u6127\u0180cdn\u28AF\u28B4\u28C9ro\u803B\xB5\u40B5\u0200;acd\u1464\u28BD\u28C0\u28C4s\xF4\u16A7ir;\u6AF0ot\u80BB\xB7\u01B5us\u0180;bd\u28D2\u1903\u28D3\u6212\u0100;u\u1D3C\u28D8;\u6A2A\u0163\u28DE\u28E1p;\u6ADB\xF2\u2212\xF0\u0A81\u0100dp\u28E9\u28EEels;\u62A7f;\uC000\u{1D55E}\u0100ct\u28F8\u28FDr;\uC000\u{1D4C2}pos\xBB\u159D\u0180;lm\u2909\u290A\u290D\u43BCtimap;\u62B8\u0C00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297E\u2989\u2998\u29DA\u29E9\u2A15\u2A1A\u2A58\u2A5D\u2A83\u2A95\u2AA4\u2AA8\u2B04\u2B07\u2B44\u2B7F\u2BAE\u2C34\u2C67\u2C7C\u2CE9\u0100gt\u2947\u294B;\uC000\u22D9\u0338\u0100;v\u2950\u0BCF\uC000\u226B\u20D2\u0180elt\u295A\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61CDightarrow;\u61CE;\uC000\u22D8\u0338\u0100;v\u297B\u0C47\uC000\u226A\u20D2ightarrow;\u61CF\u0100Dd\u298E\u2993ash;\u62AFash;\u62AE\u0280bcnpt\u29A3\u29A7\u29AC\u29B1\u29CCla\xBB\u02DEute;\u4144g;\uC000\u2220\u20D2\u0280;Eiop\u0D84\u29BC\u29C0\u29C5\u29C8;\uC000\u2A70\u0338d;\uC000\u224B\u0338s;\u4149ro\xF8\u0D84ur\u0100;a\u29D3\u29D4\u666El\u0100;s\u29D3\u0B38\u01F3\u29DF\0\u29E3p\u80BB\xA0\u0B37mp\u0100;e\u0BF9\u0C00\u0280aeouy\u29F4\u29FE\u2A03\u2A10\u2A13\u01F0\u29F9\0\u29FB;\u6A43on;\u4148dil;\u4146ng\u0100;d\u0D7E\u2A0Aot;\uC000\u2A6D\u0338p;\u6A42;\u443Dash;\u6013\u0380;Aadqsx\u0B92\u2A29\u2A2D\u2A3B\u2A41\u2A45\u2A50rr;\u61D7r\u0100hr\u2A33\u2A36k;\u6924\u0100;o\u13F2\u13F0ot;\uC000\u2250\u0338ui\xF6\u0B63\u0100ei\u2A4A\u2A4Ear;\u6928\xED\u0B98ist\u0100;s\u0BA0\u0B9Fr;\uC000\u{1D52B}\u0200Eest\u0BC5\u2A66\u2A79\u2A7C\u0180;qs\u0BBC\u2A6D\u0BE1\u0180;qs\u0BBC\u0BC5\u2A74lan\xF4\u0BE2i\xED\u0BEA\u0100;r\u0BB6\u2A81\xBB\u0BB7\u0180Aap\u2A8A\u2A8D\u2A91r\xF2\u2971rr;\u61AEar;\u6AF2\u0180;sv\u0F8D\u2A9C\u0F8C\u0100;d\u2AA1\u2AA2\u62FC;\u62FAcy;\u445A\u0380AEadest\u2AB7\u2ABA\u2ABE\u2AC2\u2AC5\u2AF6\u2AF9r\xF2\u2966;\uC000\u2266\u0338rr;\u619Ar;\u6025\u0200;fqs\u0C3B\u2ACE\u2AE3\u2AEFt\u0100ar\u2AD4\u2AD9rro\xF7\u2AC1ightarro\xF7\u2A90\u0180;qs\u0C3B\u2ABA\u2AEAlan\xF4\u0C55\u0100;s\u0C55\u2AF4\xBB\u0C36i\xED\u0C5D\u0100;r\u0C35\u2AFEi\u0100;e\u0C1A\u0C25i\xE4\u0D90\u0100pt\u2B0C\u2B11f;\uC000\u{1D55F}\u8180\xAC;in\u2B19\u2B1A\u2B36\u40ACn\u0200;Edv\u0B89\u2B24\u2B28\u2B2E;\uC000\u22F9\u0338ot;\uC000\u22F5\u0338\u01E1\u0B89\u2B33\u2B35;\u62F7;\u62F6i\u0100;v\u0CB8\u2B3C\u01E1\u0CB8\u2B41\u2B43;\u62FE;\u62FD\u0180aor\u2B4B\u2B63\u2B69r\u0200;ast\u0B7B\u2B55\u2B5A\u2B5Flle\xEC\u0B7Bl;\uC000\u2AFD\u20E5;\uC000\u2202\u0338lint;\u6A14\u0180;ce\u0C92\u2B70\u2B73u\xE5\u0CA5\u0100;c\u0C98\u2B78\u0100;e\u0C92\u2B7D\xF1\u0C98\u0200Aait\u2B88\u2B8B\u2B9D\u2BA7r\xF2\u2988rr\u0180;cw\u2B94\u2B95\u2B99\u619B;\uC000\u2933\u0338;\uC000\u219D\u0338ghtarrow\xBB\u2B95ri\u0100;e\u0CCB\u0CD6\u0380chimpqu\u2BBD\u2BCD\u2BD9\u2B04\u0B78\u2BE4\u2BEF\u0200;cer\u0D32\u2BC6\u0D37\u2BC9u\xE5\u0D45;\uC000\u{1D4C3}ort\u026D\u2B05\0\0\u2BD6ar\xE1\u2B56m\u0100;e\u0D6E\u2BDF\u0100;q\u0D74\u0D73su\u0100bp\u2BEB\u2BED\xE5\u0CF8\xE5\u0D0B\u0180bcp\u2BF6\u2C11\u2C19\u0200;Ees\u2BFF\u2C00\u0D22\u2C04\u6284;\uC000\u2AC5\u0338et\u0100;e\u0D1B\u2C0Bq\u0100;q\u0D23\u2C00c\u0100;e\u0D32\u2C17\xF1\u0D38\u0200;Ees\u2C22\u2C23\u0D5F\u2C27\u6285;\uC000\u2AC6\u0338et\u0100;e\u0D58\u2C2Eq\u0100;q\u0D60\u2C23\u0200gilr\u2C3D\u2C3F\u2C45\u2C47\xEC\u0BD7lde\u803B\xF1\u40F1\xE7\u0C43iangle\u0100lr\u2C52\u2C5Ceft\u0100;e\u0C1A\u2C5A\xF1\u0C26ight\u0100;e\u0CCB\u2C65\xF1\u0CD7\u0100;m\u2C6C\u2C6D\u43BD\u0180;es\u2C74\u2C75\u2C79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2C8F\u2C94\u2C99\u2C9E\u2CA3\u2CB0\u2CB6\u2CD3\u2CE3ash;\u62ADarr;\u6904p;\uC000\u224D\u20D2ash;\u62AC\u0100et\u2CA8\u2CAC;\uC000\u2265\u20D2;\uC000>\u20D2nfin;\u69DE\u0180Aet\u2CBD\u2CC1\u2CC5rr;\u6902;\uC000\u2264\u20D2\u0100;r\u2CCA\u2CCD\uC000<\u20D2ie;\uC000\u22B4\u20D2\u0100At\u2CD8\u2CDCrr;\u6903rie;\uC000\u22B5\u20D2im;\uC000\u223C\u20D2\u0180Aan\u2CF0\u2CF4\u2D02rr;\u61D6r\u0100hr\u2CFA\u2CFDk;\u6923\u0100;o\u13E7\u13E5ear;\u6927\u1253\u1A95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2D2D\0\u2D38\u2D48\u2D60\u2D65\u2D72\u2D84\u1B07\0\0\u2D8D\u2DAB\0\u2DC8\u2DCE\0\u2DDC\u2E19\u2E2B\u2E3E\u2E43\u0100cs\u2D31\u1A97ute\u803B\xF3\u40F3\u0100iy\u2D3C\u2D45r\u0100;c\u1A9E\u2D42\u803B\xF4\u40F4;\u443E\u0280abios\u1AA0\u2D52\u2D57\u01C8\u2D5Alac;\u4151v;\u6A38old;\u69BClig;\u4153\u0100cr\u2D69\u2D6Dir;\u69BF;\uC000\u{1D52C}\u036F\u2D79\0\0\u2D7C\0\u2D82n;\u42DBave\u803B\xF2\u40F2;\u69C1\u0100bm\u2D88\u0DF4ar;\u69B5\u0200acit\u2D95\u2D98\u2DA5\u2DA8r\xF2\u1A80\u0100ir\u2D9D\u2DA0r;\u69BEoss;\u69BBn\xE5\u0E52;\u69C0\u0180aei\u2DB1\u2DB5\u2DB9cr;\u414Dga;\u43C9\u0180cdn\u2DC0\u2DC5\u01CDron;\u43BF;\u69B6pf;\uC000\u{1D560}\u0180ael\u2DD4\u2DD7\u01D2r;\u69B7rp;\u69B9\u0380;adiosv\u2DEA\u2DEB\u2DEE\u2E08\u2E0D\u2E10\u2E16\u6228r\xF2\u1A86\u0200;efm\u2DF7\u2DF8\u2E02\u2E05\u6A5Dr\u0100;o\u2DFE\u2DFF\u6134f\xBB\u2DFF\u803B\xAA\u40AA\u803B\xBA\u40BAgof;\u62B6r;\u6A56lope;\u6A57;\u6A5B\u0180clo\u2E1F\u2E21\u2E27\xF2\u2E01ash\u803B\xF8\u40F8l;\u6298i\u016C\u2E2F\u2E34de\u803B\xF5\u40F5es\u0100;a\u01DB\u2E3As;\u6A36ml\u803B\xF6\u40F6bar;\u633D\u0AE1\u2E5E\0\u2E7D\0\u2E80\u2E9D\0\u2EA2\u2EB9\0\0\u2ECB\u0E9C\0\u2F13\0\0\u2F2B\u2FBC\0\u2FC8r\u0200;ast\u0403\u2E67\u2E72\u0E85\u8100\xB6;l\u2E6D\u2E6E\u40B6le\xEC\u0403\u0269\u2E78\0\0\u2E7Bm;\u6AF3;\u6AFDy;\u443Fr\u0280cimpt\u2E8B\u2E8F\u2E93\u1865\u2E97nt;\u4025od;\u402Eil;\u6030enk;\u6031r;\uC000\u{1D52D}\u0180imo\u2EA8\u2EB0\u2EB4\u0100;v\u2EAD\u2EAE\u43C6;\u43D5ma\xF4\u0A76ne;\u660E\u0180;tv\u2EBF\u2EC0\u2EC8\u43C0chfork\xBB\u1FFD;\u43D6\u0100au\u2ECF\u2EDFn\u0100ck\u2ED5\u2EDDk\u0100;h\u21F4\u2EDB;\u610E\xF6\u21F4s\u0480;abcdemst\u2EF3\u2EF4\u1908\u2EF9\u2EFD\u2F04\u2F06\u2F0A\u2F0E\u402Bcir;\u6A23ir;\u6A22\u0100ou\u1D40\u2F02;\u6A25;\u6A72n\u80BB\xB1\u0E9Dim;\u6A26wo;\u6A27\u0180ipu\u2F19\u2F20\u2F25ntint;\u6A15f;\uC000\u{1D561}nd\u803B\xA3\u40A3\u0500;Eaceinosu\u0EC8\u2F3F\u2F41\u2F44\u2F47\u2F81\u2F89\u2F92\u2F7E\u2FB6;\u6AB3p;\u6AB7u\xE5\u0ED9\u0100;c\u0ECE\u2F4C\u0300;acens\u0EC8\u2F59\u2F5F\u2F66\u2F68\u2F7Eppro\xF8\u2F43urlye\xF1\u0ED9\xF1\u0ECE\u0180aes\u2F6F\u2F76\u2F7Approx;\u6AB9qq;\u6AB5im;\u62E8i\xED\u0EDFme\u0100;s\u2F88\u0EAE\u6032\u0180Eas\u2F78\u2F90\u2F7A\xF0\u2F75\u0180dfp\u0EEC\u2F99\u2FAF\u0180als\u2FA0\u2FA5\u2FAAlar;\u632Eine;\u6312urf;\u6313\u0100;t\u0EFB\u2FB4\xEF\u0EFBrel;\u62B0\u0100ci\u2FC0\u2FC5r;\uC000\u{1D4C5};\u43C8ncsp;\u6008\u0300fiopsu\u2FDA\u22E2\u2FDF\u2FE5\u2FEB\u2FF1r;\uC000\u{1D52E}pf;\uC000\u{1D562}rime;\u6057cr;\uC000\u{1D4C6}\u0180aeo\u2FF8\u3009\u3013t\u0100ei\u2FFE\u3005rnion\xF3\u06B0nt;\u6A16st\u0100;e\u3010\u3011\u403F\xF1\u1F19\xF4\u0F14\u0A80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30E0\u310E\u312B\u3147\u3162\u3172\u318E\u3206\u3215\u3224\u3229\u3258\u326E\u3272\u3290\u32B0\u32B7\u0180art\u3047\u304A\u304Cr\xF2\u10B3\xF2\u03DDail;\u691Car\xF2\u1C65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307F\u308F\u3094\u30CC\u0100eu\u306D\u3071;\uC000\u223D\u0331te;\u4155i\xE3\u116Emptyv;\u69B3g\u0200;del\u0FD1\u3089\u308B\u308D;\u6992;\u69A5\xE5\u0FD1uo\u803B\xBB\u40BBr\u0580;abcfhlpstw\u0FDC\u30AC\u30AF\u30B7\u30B9\u30BC\u30BE\u30C0\u30C3\u30C7\u30CAp;\u6975\u0100;f\u0FE0\u30B4s;\u6920;\u6933s;\u691E\xEB\u225D\xF0\u272El;\u6945im;\u6974l;\u61A3;\u619D\u0100ai\u30D1\u30D5il;\u691Ao\u0100;n\u30DB\u30DC\u6236al\xF3\u0F1E\u0180abr\u30E7\u30EA\u30EEr\xF2\u17E5rk;\u6773\u0100ak\u30F3\u30FDc\u0100ek\u30F9\u30FB;\u407D;\u405D\u0100es\u3102\u3104;\u698Cl\u0100du\u310A\u310C;\u698E;\u6990\u0200aeuy\u3117\u311C\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xEC\u0FF2\xE2\u30FA;\u4440\u0200clqs\u3134\u3137\u313D\u3144a;\u6937dhar;\u6969uo\u0100;r\u020E\u020Dh;\u61B3\u0180acg\u314E\u315F\u0F44l\u0200;ips\u0F78\u3158\u315B\u109Cn\xE5\u10BBar\xF4\u0FA9t;\u65AD\u0180ilr\u3169\u1023\u316Esht;\u697D;\uC000\u{1D52F}\u0100ao\u3177\u3186r\u0100du\u317D\u317F\xBB\u047B\u0100;l\u1091\u3184;\u696C\u0100;v\u318B\u318C\u43C1;\u43F1\u0180gns\u3195\u31F9\u31FCht\u0300ahlrst\u31A4\u31B0\u31C2\u31D8\u31E4\u31EErrow\u0100;t\u0FDC\u31ADa\xE9\u30C8arpoon\u0100du\u31BB\u31BFow\xEE\u317Ep\xBB\u1092eft\u0100ah\u31CA\u31D0rrow\xF3\u0FEAarpoon\xF3\u0551ightarrows;\u61C9quigarro\xF7\u30CBhreetimes;\u62CCg;\u42DAingdotse\xF1\u1F32\u0180ahm\u320D\u3210\u3213r\xF2\u0FEAa\xF2\u0551;\u600Foust\u0100;a\u321E\u321F\u63B1che\xBB\u321Fmid;\u6AEE\u0200abpt\u3232\u323D\u3240\u3252\u0100nr\u3237\u323Ag;\u67EDr;\u61FEr\xEB\u1003\u0180afl\u3247\u324A\u324Er;\u6986;\uC000\u{1D563}us;\u6A2Eimes;\u6A35\u0100ap\u325D\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6A12ar\xF2\u31E3\u0200achq\u327B\u3280\u10BC\u3285quo;\u603Ar;\uC000\u{1D4C7}\u0100bu\u30FB\u328Ao\u0100;r\u0214\u0213\u0180hir\u3297\u329B\u32A0re\xE5\u31F8mes;\u62CAi\u0200;efl\u32AA\u1059\u1821\u32AB\u65B9tri;\u69CEluhar;\u6968;\u611E\u0D61\u32D5\u32DB\u32DF\u332C\u3338\u3371\0\u337A\u33A4\0\0\u33EC\u33F0\0\u3428\u3448\u345A\u34AD\u34B1\u34CA\u34F1\0\u3616\0\0\u3633cute;\u415Bqu\xEF\u27BA\u0500;Eaceinpsy\u11ED\u32F3\u32F5\u32FF\u3302\u330B\u330F\u331F\u3326\u3329;\u6AB4\u01F0\u32FA\0\u32FC;\u6AB8on;\u4161u\xE5\u11FE\u0100;d\u11F3\u3307il;\u415Frc;\u415D\u0180Eas\u3316\u3318\u331B;\u6AB6p;\u6ABAim;\u62E9olint;\u6A13i\xED\u1204;\u4441ot\u0180;be\u3334\u1D47\u3335\u62C5;\u6A66\u0380Aacmstx\u3346\u334A\u3357\u335B\u335E\u3363\u336Drr;\u61D8r\u0100hr\u3350\u3352\xEB\u2228\u0100;o\u0A36\u0A34t\u803B\xA7\u40A7i;\u403Bwar;\u6929m\u0100in\u3369\xF0nu\xF3\xF1t;\u6736r\u0100;o\u3376\u2055\uC000\u{1D530}\u0200acoy\u3382\u3386\u3391\u33A0rp;\u666F\u0100hy\u338B\u338Fcy;\u4449;\u4448rt\u026D\u3399\0\0\u339Ci\xE4\u1464ara\xEC\u2E6F\u803B\xAD\u40AD\u0100gm\u33A8\u33B4ma\u0180;fv\u33B1\u33B2\u33B2\u43C3;\u43C2\u0400;deglnpr\u12AB\u33C5\u33C9\u33CE\u33D6\u33DE\u33E1\u33E6ot;\u6A6A\u0100;q\u12B1\u12B0\u0100;E\u33D3\u33D4\u6A9E;\u6AA0\u0100;E\u33DB\u33DC\u6A9D;\u6A9Fe;\u6246lus;\u6A24arr;\u6972ar\xF2\u113D\u0200aeit\u33F8\u3408\u340F\u3417\u0100ls\u33FD\u3404lsetm\xE9\u336Ahp;\u6A33parsl;\u69E4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341C\u341D\u6AAA\u0100;s\u3422\u3423\u6AAC;\uC000\u2AAC\uFE00\u0180flp\u342E\u3433\u3442tcy;\u444C\u0100;b\u3438\u3439\u402F\u0100;a\u343E\u343F\u69C4r;\u633Ff;\uC000\u{1D564}a\u0100dr\u344D\u0402es\u0100;u\u3454\u3455\u6660it\xBB\u3455\u0180csu\u3460\u3479\u349F\u0100au\u3465\u346Fp\u0100;s\u1188\u346B;\uC000\u2293\uFE00p\u0100;s\u11B4\u3475;\uC000\u2294\uFE00u\u0100bp\u347F\u348F\u0180;es\u1197\u119C\u3486et\u0100;e\u1197\u348D\xF1\u119D\u0180;es\u11A8\u11AD\u3496et\u0100;e\u11A8\u349D\xF1\u11AE\u0180;af\u117B\u34A6\u05B0r\u0165\u34AB\u05B1\xBB\u117Car\xF2\u1148\u0200cemt\u34B9\u34BE\u34C2\u34C5r;\uC000\u{1D4C8}tm\xEE\xF1i\xEC\u3415ar\xE6\u11BE\u0100ar\u34CE\u34D5r\u0100;f\u34D4\u17BF\u6606\u0100an\u34DA\u34EDight\u0100ep\u34E3\u34EApsilo\xEE\u1EE0h\xE9\u2EAFs\xBB\u2852\u0280bcmnp\u34FB\u355E\u1209\u358B\u358E\u0480;Edemnprs\u350E\u350F\u3511\u3515\u351E\u3523\u352C\u3531\u3536\u6282;\u6AC5ot;\u6ABD\u0100;d\u11DA\u351Aot;\u6AC3ult;\u6AC1\u0100Ee\u3528\u352A;\u6ACB;\u628Alus;\u6ABFarr;\u6979\u0180eiu\u353D\u3552\u3555t\u0180;en\u350E\u3545\u354Bq\u0100;q\u11DA\u350Feq\u0100;q\u352B\u3528m;\u6AC7\u0100bp\u355A\u355C;\u6AD5;\u6AD3c\u0300;acens\u11ED\u356C\u3572\u3579\u357B\u3326ppro\xF8\u32FAurlye\xF1\u11FE\xF1\u11F3\u0180aes\u3582\u3588\u331Bppro\xF8\u331Aq\xF1\u3317g;\u666A\u0680123;Edehlmnps\u35A9\u35AC\u35AF\u121C\u35B2\u35B4\u35C0\u35C9\u35D5\u35DA\u35DF\u35E8\u35ED\u803B\xB9\u40B9\u803B\xB2\u40B2\u803B\xB3\u40B3;\u6AC6\u0100os\u35B9\u35BCt;\u6ABEub;\u6AD8\u0100;d\u1222\u35C5ot;\u6AC4s\u0100ou\u35CF\u35D2l;\u67C9b;\u6AD7arr;\u697Bult;\u6AC2\u0100Ee\u35E4\u35E6;\u6ACC;\u628Blus;\u6AC0\u0180eiu\u35F4\u3609\u360Ct\u0180;en\u121C\u35FC\u3602q\u0100;q\u1222\u35B2eq\u0100;q\u35E7\u35E4m;\u6AC8\u0100bp\u3611\u3613;\u6AD4;\u6AD6\u0180Aan\u361C\u3620\u362Drr;\u61D9r\u0100hr\u3626\u3628\xEB\u222E\u0100;o\u0A2B\u0A29war;\u692Alig\u803B\xDF\u40DF\u0BE1\u3651\u365D\u3660\u12CE\u3673\u3679\0\u367E\u36C2\0\0\0\0\0\u36DB\u3703\0\u3709\u376C\0\0\0\u3787\u0272\u3656\0\0\u365Bget;\u6316;\u43C4r\xEB\u0E5F\u0180aey\u3666\u366B\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uC000\u{1D531}\u0200eiko\u3686\u369D\u36B5\u36BC\u01F2\u368B\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369B\u43B8ym;\u43D1\u0100cn\u36A2\u36B2k\u0100as\u36A8\u36AEppro\xF8\u12C1im\xBB\u12ACs\xF0\u129E\u0100as\u36BA\u36AE\xF0\u12C1rn\u803B\xFE\u40FE\u01EC\u031F\u36C6\u22E7es\u8180\xD7;bd\u36CF\u36D0\u36D8\u40D7\u0100;a\u190F\u36D5r;\u6A31;\u6A30\u0180eps\u36E1\u36E3\u3700\xE1\u2A4D\u0200;bcf\u0486\u36EC\u36F0\u36F4ot;\u6336ir;\u6AF1\u0100;o\u36F9\u36FC\uC000\u{1D565}rk;\u6ADA\xE1\u3362rime;\u6034\u0180aip\u370F\u3712\u3764d\xE5\u1248\u0380adempst\u3721\u374D\u3740\u3751\u3757\u375C\u375Fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65B5own\xBB\u1DBBeft\u0100;e\u2800\u373E\xF1\u092E;\u625Cight\u0100;e\u32AA\u374B\xF1\u105Aot;\u65ECinus;\u6A3Alus;\u6A39b;\u69CDime;\u6A3Bezium;\u63E2\u0180cht\u3772\u377D\u3781\u0100ry\u3777\u377B;\uC000\u{1D4C9};\u4446cy;\u445Brok;\u4167\u0100io\u378B\u378Ex\xF4\u1777head\u0100lr\u3797\u37A0eftarro\xF7\u084Fightarrow\xBB\u0F5D\u0900AHabcdfghlmoprstuw\u37D0\u37D3\u37D7\u37E4\u37F0\u37FC\u380E\u381C\u3823\u3834\u3851\u385D\u386B\u38A9\u38CC\u38D2\u38EA\u38F6r\xF2\u03EDar;\u6963\u0100cr\u37DC\u37E2ute\u803B\xFA\u40FA\xF2\u1150r\u01E3\u37EA\0\u37EDy;\u445Eve;\u416D\u0100iy\u37F5\u37FArc\u803B\xFB\u40FB;\u4443\u0180abh\u3803\u3806\u380Br\xF2\u13ADlac;\u4171a\xF2\u13C3\u0100ir\u3813\u3818sht;\u697E;\uC000\u{1D532}rave\u803B\xF9\u40F9\u0161\u3827\u3831r\u0100lr\u382C\u382E\xBB\u0957\xBB\u1083lk;\u6580\u0100ct\u3839\u384D\u026F\u383F\0\0\u384Arn\u0100;e\u3845\u3846\u631Cr\xBB\u3846op;\u630Fri;\u65F8\u0100al\u3856\u385Acr;\u416B\u80BB\xA8\u0349\u0100gp\u3862\u3866on;\u4173f;\uC000\u{1D566}\u0300adhlsu\u114B\u3878\u387D\u1372\u3891\u38A0own\xE1\u13B3arpoon\u0100lr\u3888\u388Cef\xF4\u382Digh\xF4\u382Fi\u0180;hl\u3899\u389A\u389C\u43C5\xBB\u13FAon\xBB\u389Aparrows;\u61C8\u0180cit\u38B0\u38C4\u38C8\u026F\u38B6\0\0\u38C1rn\u0100;e\u38BC\u38BD\u631Dr\xBB\u38BDop;\u630Eng;\u416Fri;\u65F9cr;\uC000\u{1D4CA}\u0180dir\u38D9\u38DD\u38E2ot;\u62F0lde;\u4169i\u0100;f\u3730\u38E8\xBB\u1813\u0100am\u38EF\u38F2r\xF2\u38A8l\u803B\xFC\u40FCangle;\u69A7\u0780ABDacdeflnoprsz\u391C\u391F\u3929\u392D\u39B5\u39B8\u39BD\u39DF\u39E4\u39E8\u39F3\u39F9\u39FD\u3A01\u3A20r\xF2\u03F7ar\u0100;v\u3926\u3927\u6AE8;\u6AE9as\xE8\u03E1\u0100nr\u3932\u3937grt;\u699C\u0380eknprst\u34E3\u3946\u394B\u3952\u395D\u3964\u3996app\xE1\u2415othin\xE7\u1E96\u0180hir\u34EB\u2EC8\u3959op\xF4\u2FB5\u0100;h\u13B7\u3962\xEF\u318D\u0100iu\u3969\u396Dgm\xE1\u33B3\u0100bp\u3972\u3984setneq\u0100;q\u397D\u3980\uC000\u228A\uFE00;\uC000\u2ACB\uFE00setneq\u0100;q\u398F\u3992\uC000\u228B\uFE00;\uC000\u2ACC\uFE00\u0100hr\u399B\u399Fet\xE1\u369Ciangle\u0100lr\u39AA\u39AFeft\xBB\u0925ight\xBB\u1051y;\u4432ash\xBB\u1036\u0180elr\u39C4\u39D2\u39D7\u0180;be\u2DEA\u39CB\u39CFar;\u62BBq;\u625Alip;\u62EE\u0100bt\u39DC\u1468a\xF2\u1469r;\uC000\u{1D533}tr\xE9\u39AEsu\u0100bp\u39EF\u39F1\xBB\u0D1C\xBB\u0D59pf;\uC000\u{1D567}ro\xF0\u0EFBtr\xE9\u39B4\u0100cu\u3A06\u3A0Br;\uC000\u{1D4CB}\u0100bp\u3A10\u3A18n\u0100Ee\u3980\u3A16\xBB\u397En\u0100Ee\u3992\u3A1E\xBB\u3990igzag;\u699A\u0380cefoprs\u3A36\u3A3B\u3A56\u3A5B\u3A54\u3A61\u3A6Airc;\u4175\u0100di\u3A40\u3A51\u0100bg\u3A45\u3A49ar;\u6A5Fe\u0100;q\u15FA\u3A4F;\u6259erp;\u6118r;\uC000\u{1D534}pf;\uC000\u{1D568}\u0100;e\u1479\u3A66at\xE8\u1479cr;\uC000\u{1D4CC}\u0AE3\u178E\u3A87\0\u3A8B\0\u3A90\u3A9B\0\0\u3A9D\u3AA8\u3AAB\u3AAF\0\0\u3AC3\u3ACE\0\u3AD8\u17DC\u17DFtr\xE9\u17D1r;\uC000\u{1D535}\u0100Aa\u3A94\u3A97r\xF2\u03C3r\xF2\u09F6;\u43BE\u0100Aa\u3AA1\u3AA4r\xF2\u03B8r\xF2\u09EBa\xF0\u2713is;\u62FB\u0180dpt\u17A4\u3AB5\u3ABE\u0100fl\u3ABA\u17A9;\uC000\u{1D569}im\xE5\u17B2\u0100Aa\u3AC7\u3ACAr\xF2\u03CEr\xF2\u0A01\u0100cq\u3AD2\u17B8r;\uC000\u{1D4CD}\u0100pt\u17D6\u3ADCr\xE9\u17D4\u0400acefiosu\u3AF0\u3AFD\u3B08\u3B0C\u3B11\u3B15\u3B1B\u3B21c\u0100uy\u3AF6\u3AFBte\u803B\xFD\u40FD;\u444F\u0100iy\u3B02\u3B06rc;\u4177;\u444Bn\u803B\xA5\u40A5r;\uC000\u{1D536}cy;\u4457pf;\uC000\u{1D56A}cr;\uC000\u{1D4CE}\u0100cm\u3B26\u3B29y;\u444El\u803B\xFF\u40FF\u0500acdefhiosw\u3B42\u3B48\u3B54\u3B58\u3B64\u3B69\u3B6D\u3B74\u3B7A\u3B80cute;\u417A\u0100ay\u3B4D\u3B52ron;\u417E;\u4437ot;\u417C\u0100et\u3B5D\u3B61tr\xE6\u155Fa;\u43B6r;\uC000\u{1D537}cy;\u4436grarr;\u61DDpf;\uC000\u{1D56B}cr;\uC000\u{1D4CF}\u0100jn\u3B85\u3B87;\u600Dj;\u600C'.split("").map(e=>e.charCodeAt(0)));var Ki=new Uint16Array("\u0200aglq \x1B\u026D\0\0p;\u4026os;\u4027t;\u403Et;\u403Cuot;\u4022".split("").map(e=>e.charCodeAt(0)));var Ra,Nl=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]]),Kt=(Ra=String.fromCodePoint)!==null&&Ra!==void 0?Ra:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function Or(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=Nl.get(e))!==null&&t!==void 0?t:e}var Q;(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"})(Q||(Q={}));var Sl=32,ee;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(ee||(ee={}));function La(e){return e>=Q.ZERO&&e<=Q.NINE}function Il(e){return e>=Q.UPPER_A&&e<=Q.UPPER_F||e>=Q.LOWER_A&&e<=Q.LOWER_F}function Rl(e){return e>=Q.UPPER_A&&e<=Q.UPPER_Z||e>=Q.LOWER_A&&e<=Q.LOWER_Z||La(e)}function Ll(e){return e===Q.EQUALS||Rl(e)}var K;(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"})(K||(K={}));var Ue;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Ue||(Ue={}));var Qi=class{constructor(t,r,i){this.decodeTree=t,this.emitCodePoint=r,this.errors=i,this.state=K.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Ue.Strict}startEntity(t){this.decodeMode=t,this.state=K.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,r){switch(this.state){case K.EntityStart:return t.charCodeAt(r)===Q.NUM?(this.state=K.NumericStart,this.consumed+=1,this.stateNumericStart(t,r+1)):(this.state=K.NamedEntity,this.stateNamedEntity(t,r));case K.NumericStart:return this.stateNumericStart(t,r);case K.NumericDecimal:return this.stateNumericDecimal(t,r);case K.NumericHex:return this.stateNumericHex(t,r);case K.NamedEntity:return this.stateNamedEntity(t,r)}}stateNumericStart(t,r){return r>=t.length?-1:(t.charCodeAt(r)|Sl)===Q.LOWER_X?(this.state=K.NumericHex,this.consumed+=1,this.stateNumericHex(t,r+1)):(this.state=K.NumericDecimal,this.stateNumericDecimal(t,r))}addToNumericResult(t,r,i,s){if(r!==i){let n=i-r;this.result=this.result*Math.pow(s,n)+parseInt(t.substr(r,n),s),this.consumed+=n}}stateNumericHex(t,r){let i=r;for(;r<t.length;){let s=t.charCodeAt(r);if(La(s)||Il(s))r+=1;else return this.addToNumericResult(t,i,r,16),this.emitNumericEntity(s,3)}return this.addToNumericResult(t,i,r,16),-1}stateNumericDecimal(t,r){let i=r;for(;r<t.length;){let s=t.charCodeAt(r);if(La(s))r+=1;else return this.addToNumericResult(t,i,r,10),this.emitNumericEntity(s,2)}return this.addToNumericResult(t,i,r,10),-1}emitNumericEntity(t,r){var i;if(this.consumed<=r)return(i=this.errors)===null||i===void 0||i.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Q.SEMI)this.consumed+=1;else if(this.decodeMode===Ue.Strict)return 0;return this.emitCodePoint(Or(this.result),this.consumed),this.errors&&(t!==Q.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,r){let{decodeTree:i}=this,s=i[this.treeIndex],n=(s&ee.VALUE_LENGTH)>>14;for(;r<t.length;r++,this.excess++){let o=t.charCodeAt(r);if(this.treeIndex=kr(i,s,this.treeIndex+Math.max(1,n),o),this.treeIndex<0)return this.result===0||this.decodeMode===Ue.Attribute&&(n===0||Ll(o))?0:this.emitNotTerminatedNamedEntity();if(s=i[this.treeIndex],n=(s&ee.VALUE_LENGTH)>>14,n!==0){if(o===Q.SEMI)return this.emitNamedEntityData(this.treeIndex,n,this.consumed+this.excess);this.decodeMode!==Ue.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;let{result:r,decodeTree:i}=this,s=(i[r]&ee.VALUE_LENGTH)>>14;return this.emitNamedEntityData(r,s,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,r,i){let{decodeTree:s}=this;return this.emitCodePoint(r===1?s[t]&~ee.VALUE_LENGTH:s[t+1],i),r===3&&this.emitCodePoint(s[t+2],i),i}end(){var t;switch(this.state){case K.NamedEntity:return this.result!==0&&(this.decodeMode!==Ue.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case K.NumericDecimal:return this.emitNumericEntity(0,2);case K.NumericHex:return this.emitNumericEntity(0,3);case K.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case K.EntityStart:return 0}}};function Vo(e){let t="",r=new Qi(e,i=>t+=Kt(i));return function(s,n){let o=0,u=0;for(;(u=s.indexOf("&",u))>=0;){t+=s.slice(o,u),r.startEntity(n);let h=r.write(s,u+1);if(h<0){o=u+r.end();break}o=u+h,u=h===0?o+1:o}let c=t+s.slice(o);return t="",c}}function kr(e,t,r,i){let s=(t&ee.BRANCH_LENGTH)>>7,n=t&ee.JUMP_TABLE;if(s===0)return n!==0&&i===n?r:-1;if(n){let c=i-n;return c<0||c>=s?-1:e[r+c]-1}let o=r,u=o+s-1;for(;o<=u;){let c=o+u>>>1,h=e[c];if(h<i)o=c+1;else if(h>i)u=c-1;else return e[c+s]}return-1}var Cv=Vo(fe),Nv=Vo(Ki);function ji(e){for(let t=1;t<e.length;t++)e[t][0]+=e[t-1][0]+1;return e}var Dl=new Map(ji([[9,"	"],[0,"
"],[22,"!"],[0,"""],[0,"#"],[0,"$"],[0,"%"],[0,"&"],[0,"'"],[0,"("],[0,")"],[0,"*"],[0,"+"],[0,","],[1,"."],[0,"/"],[10,":"],[0,";"],[0,{v:"<",n:8402,o:"<⃒"}],[0,{v:"=",n:8421,o:"=⃥"}],[0,{v:">",n:8402,o:">⃒"}],[0,"?"],[0,"@"],[26,"["],[0,"\"],[0,"]"],[0,"^"],[0,"_"],[0,"`"],[5,{n:106,o:"fj"}],[20,"{"],[0,"|"],[0,"}"],[34," "],[0,"¡"],[0,"¢"],[0,"£"],[0,"¤"],[0,"¥"],[0,"¦"],[0,"§"],[0,"¨"],[0,"©"],[0,"ª"],[0,"«"],[0,"¬"],[0,"­"],[0,"®"],[0,"¯"],[0,"°"],[0,"±"],[0,"²"],[0,"³"],[0,"´"],[0,"µ"],[0,"¶"],[0,"·"],[0,"¸"],[0,"¹"],[0,"º"],[0,"»"],[0,"¼"],[0,"½"],[0,"¾"],[0,"¿"],[0,"À"],[0,"Á"],[0,"Â"],[0,"Ã"],[0,"Ä"],[0,"Å"],[0,"Æ"],[0,"Ç"],[0,"È"],[0,"É"],[0,"Ê"],[0,"Ë"],[0,"Ì"],[0,"Í"],[0,"Î"],[0,"Ï"],[0,"Ð"],[0,"Ñ"],[0,"Ò"],[0,"Ó"],[0,"Ô"],[0,"Õ"],[0,"Ö"],[0,"×"],[0,"Ø"],[0,"Ù"],[0,"Ú"],[0,"Û"],[0,"Ü"],[0,"Ý"],[0,"Þ"],[0,"ß"],[0,"à"],[0,"á"],[0,"â"],[0,"ã"],[0,"ä"],[0,"å"],[0,"æ"],[0,"ç"],[0,"è"],[0,"é"],[0,"ê"],[0,"ë"],[0,"ì"],[0,"í"],[0,"î"],[0,"ï"],[0,"ð"],[0,"ñ"],[0,"ò"],[0,"ó"],[0,"ô"],[0,"õ"],[0,"ö"],[0,"÷"],[0,"ø"],[0,"ù"],[0,"ú"],[0,"û"],[0,"ü"],[0,"ý"],[0,"þ"],[0,"ÿ"],[0,"Ā"],[0,"ā"],[0,"Ă"],[0,"ă"],[0,"Ą"],[0,"ą"],[0,"Ć"],[0,"ć"],[0,"Ĉ"],[0,"ĉ"],[0,"Ċ"],[0,"ċ"],[0,"Č"],[0,"č"],[0,"Ď"],[0,"ď"],[0,"Đ"],[0,"đ"],[0,"Ē"],[0,"ē"],[2,"Ė"],[0,"ė"],[0,"Ę"],[0,"ę"],[0,"Ě"],[0,"ě"],[0,"Ĝ"],[0,"ĝ"],[0,"Ğ"],[0,"ğ"],[0,"Ġ"],[0,"ġ"],[0,"Ģ"],[1,"Ĥ"],[0,"ĥ"],[0,"Ħ"],[0,"ħ"],[0,"Ĩ"],[0,"ĩ"],[0,"Ī"],[0,"ī"],[2,"Į"],[0,"į"],[0,"İ"],[0,"ı"],[0,"IJ"],[0,"ij"],[0,"Ĵ"],[0,"ĵ"],[0,"Ķ"],[0,"ķ"],[0,"ĸ"],[0,"Ĺ"],[0,"ĺ"],[0,"Ļ"],[0,"ļ"],[0,"Ľ"],[0,"ľ"],[0,"Ŀ"],[0,"ŀ"],[0,"Ł"],[0,"ł"],[0,"Ń"],[0,"ń"],[0,"Ņ"],[0,"ņ"],[0,"Ň"],[0,"ň"],[0,"ʼn"],[0,"Ŋ"],[0,"ŋ"],[0,"Ō"],[0,"ō"],[2,"Ő"],[0,"ő"],[0,"Œ"],[0,"œ"],[0,"Ŕ"],[0,"ŕ"],[0,"Ŗ"],[0,"ŗ"],[0,"Ř"],[0,"ř"],[0,"Ś"],[0,"ś"],[0,"Ŝ"],[0,"ŝ"],[0,"Ş"],[0,"ş"],[0,"Š"],[0,"š"],[0,"Ţ"],[0,"ţ"],[0,"Ť"],[0,"ť"],[0,"Ŧ"],[0,"ŧ"],[0,"Ũ"],[0,"ũ"],[0,"Ū"],[0,"ū"],[0,"Ŭ"],[0,"ŭ"],[0,"Ů"],[0,"ů"],[0,"Ű"],[0,"ű"],[0,"Ų"],[0,"ų"],[0,"Ŵ"],[0,"ŵ"],[0,"Ŷ"],[0,"ŷ"],[0,"Ÿ"],[0,"Ź"],[0,"ź"],[0,"Ż"],[0,"ż"],[0,"Ž"],[0,"ž"],[19,"ƒ"],[34,"Ƶ"],[63,"ǵ"],[65,"ȷ"],[142,"ˆ"],[0,"ˇ"],[16,"˘"],[0,"˙"],[0,"˚"],[0,"˛"],[0,"˜"],[0,"˝"],[51,"̑"],[127,"Α"],[0,"Β"],[0,"Γ"],[0,"Δ"],[0,"Ε"],[0,"Ζ"],[0,"Η"],[0,"Θ"],[0,"Ι"],[0,"Κ"],[0,"Λ"],[0,"Μ"],[0,"Ν"],[0,"Ξ"],[0,"Ο"],[0,"Π"],[0,"Ρ"],[1,"Σ"],[0,"Τ"],[0,"Υ"],[0,"Φ"],[0,"Χ"],[0,"Ψ"],[0,"Ω"],[7,"α"],[0,"β"],[0,"γ"],[0,"δ"],[0,"ε"],[0,"ζ"],[0,"η"],[0,"θ"],[0,"ι"],[0,"κ"],[0,"λ"],[0,"μ"],[0,"ν"],[0,"ξ"],[0,"ο"],[0,"π"],[0,"ρ"],[0,"ς"],[0,"σ"],[0,"τ"],[0,"υ"],[0,"φ"],[0,"χ"],[0,"ψ"],[0,"ω"],[7,"ϑ"],[0,"ϒ"],[2,"ϕ"],[0,"ϖ"],[5,"Ϝ"],[0,"ϝ"],[18,"ϰ"],[0,"ϱ"],[3,"ϵ"],[0,"϶"],[10,"Ё"],[0,"Ђ"],[0,"Ѓ"],[0,"Є"],[0,"Ѕ"],[0,"І"],[0,"Ї"],[0,"Ј"],[0,"Љ"],[0,"Њ"],[0,"Ћ"],[0,"Ќ"],[1,"Ў"],[0,"Џ"],[0,"А"],[0,"Б"],[0,"В"],[0,"Г"],[0,"Д"],[0,"Е"],[0,"Ж"],[0,"З"],[0,"И"],[0,"Й"],[0,"К"],[0,"Л"],[0,"М"],[0,"Н"],[0,"О"],[0,"П"],[0,"Р"],[0,"С"],[0,"Т"],[0,"У"],[0,"Ф"],[0,"Х"],[0,"Ц"],[0,"Ч"],[0,"Ш"],[0,"Щ"],[0,"Ъ"],[0,"Ы"],[0,"Ь"],[0,"Э"],[0,"Ю"],[0,"Я"],[0,"а"],[0,"б"],[0,"в"],[0,"г"],[0,"д"],[0,"е"],[0,"ж"],[0,"з"],[0,"и"],[0,"й"],[0,"к"],[0,"л"],[0,"м"],[0,"н"],[0,"о"],[0,"п"],[0,"р"],[0,"с"],[0,"т"],[0,"у"],[0,"ф"],[0,"х"],[0,"ц"],[0,"ч"],[0,"ш"],[0,"щ"],[0,"ъ"],[0,"ы"],[0,"ь"],[0,"э"],[0,"ю"],[0,"я"],[1,"ё"],[0,"ђ"],[0,"ѓ"],[0,"є"],[0,"ѕ"],[0,"і"],[0,"ї"],[0,"ј"],[0,"љ"],[0,"њ"],[0,"ћ"],[0,"ќ"],[1,"ў"],[0,"џ"],[7074," "],[0," "],[0," "],[0," "],[1," "],[0," "],[0," "],[0," "],[0,"​"],[0,"‌"],[0,"‍"],[0,"‎"],[0,"‏"],[0,"‐"],[2,"–"],[0,"—"],[0,"―"],[0,"‖"],[1,"‘"],[0,"’"],[0,"‚"],[1,"“"],[0,"”"],[0,"„"],[1,"†"],[0,"‡"],[0,"•"],[2,"‥"],[0,"…"],[9,"‰"],[0,"‱"],[0,"′"],[0,"″"],[0,"‴"],[0,"‵"],[3,"‹"],[0,"›"],[3,"‾"],[2,"⁁"],[1,"⁃"],[0,"⁄"],[10,"⁏"],[7,"⁗"],[7,{v:" ",n:8202,o:"  "}],[0,"⁠"],[0,"⁡"],[0,"⁢"],[0,"⁣"],[72,"€"],[46,"⃛"],[0,"⃜"],[37,"ℂ"],[2,"℅"],[4,"ℊ"],[0,"ℋ"],[0,"ℌ"],[0,"ℍ"],[0,"ℎ"],[0,"ℏ"],[0,"ℐ"],[0,"ℑ"],[0,"ℒ"],[0,"ℓ"],[1,"ℕ"],[0,"№"],[0,"℗"],[0,"℘"],[0,"ℙ"],[0,"ℚ"],[0,"ℛ"],[0,"ℜ"],[0,"ℝ"],[0,"℞"],[3,"™"],[1,"ℤ"],[2,"℧"],[0,"ℨ"],[0,"℩"],[2,"ℬ"],[0,"ℭ"],[1,"ℯ"],[0,"ℰ"],[0,"ℱ"],[1,"ℳ"],[0,"ℴ"],[0,"ℵ"],[0,"ℶ"],[0,"ℷ"],[0,"ℸ"],[12,"ⅅ"],[0,"ⅆ"],[0,"ⅇ"],[0,"ⅈ"],[10,"⅓"],[0,"⅔"],[0,"⅕"],[0,"⅖"],[0,"⅗"],[0,"⅘"],[0,"⅙"],[0,"⅚"],[0,"⅛"],[0,"⅜"],[0,"⅝"],[0,"⅞"],[49,"←"],[0,"↑"],[0,"→"],[0,"↓"],[0,"↔"],[0,"↕"],[0,"↖"],[0,"↗"],[0,"↘"],[0,"↙"],[0,"↚"],[0,"↛"],[1,{v:"↝",n:824,o:"↝̸"}],[0,"↞"],[0,"↟"],[0,"↠"],[0,"↡"],[0,"↢"],[0,"↣"],[0,"↤"],[0,"↥"],[0,"↦"],[0,"↧"],[1,"↩"],[0,"↪"],[0,"↫"],[0,"↬"],[0,"↭"],[0,"↮"],[1,"↰"],[0,"↱"],[0,"↲"],[0,"↳"],[1,"↵"],[0,"↶"],[0,"↷"],[2,"↺"],[0,"↻"],[0,"↼"],[0,"↽"],[0,"↾"],[0,"↿"],[0,"⇀"],[0,"⇁"],[0,"⇂"],[0,"⇃"],[0,"⇄"],[0,"⇅"],[0,"⇆"],[0,"⇇"],[0,"⇈"],[0,"⇉"],[0,"⇊"],[0,"⇋"],[0,"⇌"],[0,"⇍"],[0,"⇎"],[0,"⇏"],[0,"⇐"],[0,"⇑"],[0,"⇒"],[0,"⇓"],[0,"⇔"],[0,"⇕"],[0,"⇖"],[0,"⇗"],[0,"⇘"],[0,"⇙"],[0,"⇚"],[0,"⇛"],[1,"⇝"],[6,"⇤"],[0,"⇥"],[15,"⇵"],[7,"⇽"],[0,"⇾"],[0,"⇿"],[0,"∀"],[0,"∁"],[0,{v:"∂",n:824,o:"∂̸"}],[0,"∃"],[0,"∄"],[0,"∅"],[1,"∇"],[0,"∈"],[0,"∉"],[1,"∋"],[0,"∌"],[2,"∏"],[0,"∐"],[0,"∑"],[0,"−"],[0,"∓"],[0,"∔"],[1,"∖"],[0,"∗"],[0,"∘"],[1,"√"],[2,"∝"],[0,"∞"],[0,"∟"],[0,{v:"∠",n:8402,o:"∠⃒"}],[0,"∡"],[0,"∢"],[0,"∣"],[0,"∤"],[0,"∥"],[0,"∦"],[0,"∧"],[0,"∨"],[0,{v:"∩",n:65024,o:"∩︀"}],[0,{v:"∪",n:65024,o:"∪︀"}],[0,"∫"],[0,"∬"],[0,"∭"],[0,"∮"],[0,"∯"],[0,"∰"],[0,"∱"],[0,"∲"],[0,"∳"],[0,"∴"],[0,"∵"],[0,"∶"],[0,"∷"],[0,"∸"],[1,"∺"],[0,"∻"],[0,{v:"∼",n:8402,o:"∼⃒"}],[0,{v:"∽",n:817,o:"∽̱"}],[0,{v:"∾",n:819,o:"∾̳"}],[0,"∿"],[0,"≀"],[0,"≁"],[0,{v:"≂",n:824,o:"≂̸"}],[0,"≃"],[0,"≄"],[0,"≅"],[0,"≆"],[0,"≇"],[0,"≈"],[0,"≉"],[0,"≊"],[0,{v:"≋",n:824,o:"≋̸"}],[0,"≌"],[0,{v:"≍",n:8402,o:"≍⃒"}],[0,{v:"≎",n:824,o:"≎̸"}],[0,{v:"≏",n:824,o:"≏̸"}],[0,{v:"≐",n:824,o:"≐̸"}],[0,"≑"],[0,"≒"],[0,"≓"],[0,"≔"],[0,"≕"],[0,"≖"],[0,"≗"],[1,"≙"],[0,"≚"],[1,"≜"],[2,"≟"],[0,"≠"],[0,{v:"≡",n:8421,o:"≡⃥"}],[0,"≢"],[1,{v:"≤",n:8402,o:"≤⃒"}],[0,{v:"≥",n:8402,o:"≥⃒"}],[0,{v:"≦",n:824,o:"≦̸"}],[0,{v:"≧",n:824,o:"≧̸"}],[0,{v:"≨",n:65024,o:"≨︀"}],[0,{v:"≩",n:65024,o:"≩︀"}],[0,{v:"≪",n:new Map(ji([[824,"≪̸"],[7577,"≪⃒"]]))}],[0,{v:"≫",n:new Map(ji([[824,"≫̸"],[7577,"≫⃒"]]))}],[0,"≬"],[0,"≭"],[0,"≮"],[0,"≯"],[0,"≰"],[0,"≱"],[0,"≲"],[0,"≳"],[0,"≴"],[0,"≵"],[0,"≶"],[0,"≷"],[0,"≸"],[0,"≹"],[0,"≺"],[0,"≻"],[0,"≼"],[0,"≽"],[0,"≾"],[0,{v:"≿",n:824,o:"≿̸"}],[0,"⊀"],[0,"⊁"],[0,{v:"⊂",n:8402,o:"⊂⃒"}],[0,{v:"⊃",n:8402,o:"⊃⃒"}],[0,"⊄"],[0,"⊅"],[0,"⊆"],[0,"⊇"],[0,"⊈"],[0,"⊉"],[0,{v:"⊊",n:65024,o:"⊊︀"}],[0,{v:"⊋",n:65024,o:"⊋︀"}],[1,"⊍"],[0,"⊎"],[0,{v:"⊏",n:824,o:"⊏̸"}],[0,{v:"⊐",n:824,o:"⊐̸"}],[0,"⊑"],[0,"⊒"],[0,{v:"⊓",n:65024,o:"⊓︀"}],[0,{v:"⊔",n:65024,o:"⊔︀"}],[0,"⊕"],[0,"⊖"],[0,"⊗"],[0,"⊘"],[0,"⊙"],[0,"⊚"],[0,"⊛"],[1,"⊝"],[0,"⊞"],[0,"⊟"],[0,"⊠"],[0,"⊡"],[0,"⊢"],[0,"⊣"],[0,"⊤"],[0,"⊥"],[1,"⊧"],[0,"⊨"],[0,"⊩"],[0,"⊪"],[0,"⊫"],[0,"⊬"],[0,"⊭"],[0,"⊮"],[0,"⊯"],[0,"⊰"],[1,"⊲"],[0,"⊳"],[0,{v:"⊴",n:8402,o:"⊴⃒"}],[0,{v:"⊵",n:8402,o:"⊵⃒"}],[0,"⊶"],[0,"⊷"],[0,"⊸"],[0,"⊹"],[0,"⊺"],[0,"⊻"],[1,"⊽"],[0,"⊾"],[0,"⊿"],[0,"⋀"],[0,"⋁"],[0,"⋂"],[0,"⋃"],[0,"⋄"],[0,"⋅"],[0,"⋆"],[0,"⋇"],[0,"⋈"],[0,"⋉"],[0,"⋊"],[0,"⋋"],[0,"⋌"],[0,"⋍"],[0,"⋎"],[0,"⋏"],[0,"⋐"],[0,"⋑"],[0,"⋒"],[0,"⋓"],[0,"⋔"],[0,"⋕"],[0,"⋖"],[0,"⋗"],[0,{v:"⋘",n:824,o:"⋘̸"}],[0,{v:"⋙",n:824,o:"⋙̸"}],[0,{v:"⋚",n:65024,o:"⋚︀"}],[0,{v:"⋛",n:65024,o:"⋛︀"}],[2,"⋞"],[0,"⋟"],[0,"⋠"],[0,"⋡"],[0,"⋢"],[0,"⋣"],[2,"⋦"],[0,"⋧"],[0,"⋨"],[0,"⋩"],[0,"⋪"],[0,"⋫"],[0,"⋬"],[0,"⋭"],[0,"⋮"],[0,"⋯"],[0,"⋰"],[0,"⋱"],[0,"⋲"],[0,"⋳"],[0,"⋴"],[0,{v:"⋵",n:824,o:"⋵̸"}],[0,"⋶"],[0,"⋷"],[1,{v:"⋹",n:824,o:"⋹̸"}],[0,"⋺"],[0,"⋻"],[0,"⋼"],[0,"⋽"],[0,"⋾"],[6,"⌅"],[0,"⌆"],[1,"⌈"],[0,"⌉"],[0,"⌊"],[0,"⌋"],[0,"⌌"],[0,"⌍"],[0,"⌎"],[0,"⌏"],[0,"⌐"],[1,"⌒"],[0,"⌓"],[1,"⌕"],[0,"⌖"],[5,"⌜"],[0,"⌝"],[0,"⌞"],[0,"⌟"],[2,"⌢"],[0,"⌣"],[9,"⌭"],[0,"⌮"],[7,"⌶"],[6,"⌽"],[1,"⌿"],[60,"⍼"],[51,"⎰"],[0,"⎱"],[2,"⎴"],[0,"⎵"],[0,"⎶"],[37,"⏜"],[0,"⏝"],[0,"⏞"],[0,"⏟"],[2,"⏢"],[4,"⏧"],[59,"␣"],[164,"Ⓢ"],[55,"─"],[1,"│"],[9,"┌"],[3,"┐"],[3,"└"],[3,"┘"],[3,"├"],[7,"┤"],[7,"┬"],[7,"┴"],[7,"┼"],[19,"═"],[0,"║"],[0,"╒"],[0,"╓"],[0,"╔"],[0,"╕"],[0,"╖"],[0,"╗"],[0,"╘"],[0,"╙"],[0,"╚"],[0,"╛"],[0,"╜"],[0,"╝"],[0,"╞"],[0,"╟"],[0,"╠"],[0,"╡"],[0,"╢"],[0,"╣"],[0,"╤"],[0,"╥"],[0,"╦"],[0,"╧"],[0,"╨"],[0,"╩"],[0,"╪"],[0,"╫"],[0,"╬"],[19,"▀"],[3,"▄"],[3,"█"],[8,"░"],[0,"▒"],[0,"▓"],[13,"□"],[8,"▪"],[0,"▫"],[1,"▭"],[0,"▮"],[2,"▱"],[1,"△"],[0,"▴"],[0,"▵"],[2,"▸"],[0,"▹"],[3,"▽"],[0,"▾"],[0,"▿"],[2,"◂"],[0,"◃"],[6,"◊"],[0,"○"],[32,"◬"],[2,"◯"],[8,"◸"],[0,"◹"],[0,"◺"],[0,"◻"],[0,"◼"],[8,"★"],[0,"☆"],[7,"☎"],[49,"♀"],[1,"♂"],[29,"♠"],[2,"♣"],[1,"♥"],[0,"♦"],[3,"♪"],[2,"♭"],[0,"♮"],[0,"♯"],[163,"✓"],[3,"✗"],[8,"✠"],[21,"✶"],[33,"❘"],[25,"❲"],[0,"❳"],[84,"⟈"],[0,"⟉"],[28,"⟦"],[0,"⟧"],[0,"⟨"],[0,"⟩"],[0,"⟪"],[0,"⟫"],[0,"⟬"],[0,"⟭"],[7,"⟵"],[0,"⟶"],[0,"⟷"],[0,"⟸"],[0,"⟹"],[0,"⟺"],[1,"⟼"],[2,"⟿"],[258,"⤂"],[0,"⤃"],[0,"⤄"],[0,"⤅"],[6,"⤌"],[0,"⤍"],[0,"⤎"],[0,"⤏"],[0,"⤐"],[0,"⤑"],[0,"⤒"],[0,"⤓"],[2,"⤖"],[2,"⤙"],[0,"⤚"],[0,"⤛"],[0,"⤜"],[0,"⤝"],[0,"⤞"],[0,"⤟"],[0,"⤠"],[2,"⤣"],[0,"⤤"],[0,"⤥"],[0,"⤦"],[0,"⤧"],[0,"⤨"],[0,"⤩"],[0,"⤪"],[8,{v:"⤳",n:824,o:"⤳̸"}],[1,"⤵"],[0,"⤶"],[0,"⤷"],[0,"⤸"],[0,"⤹"],[2,"⤼"],[0,"⤽"],[7,"⥅"],[2,"⥈"],[0,"⥉"],[0,"⥊"],[0,"⥋"],[2,"⥎"],[0,"⥏"],[0,"⥐"],[0,"⥑"],[0,"⥒"],[0,"⥓"],[0,"⥔"],[0,"⥕"],[0,"⥖"],[0,"⥗"],[0,"⥘"],[0,"⥙"],[0,"⥚"],[0,"⥛"],[0,"⥜"],[0,"⥝"],[0,"⥞"],[0,"⥟"],[0,"⥠"],[0,"⥡"],[0,"⥢"],[0,"⥣"],[0,"⥤"],[0,"⥥"],[0,"⥦"],[0,"⥧"],[0,"⥨"],[0,"⥩"],[0,"⥪"],[0,"⥫"],[0,"⥬"],[0,"⥭"],[0,"⥮"],[0,"⥯"],[0,"⥰"],[0,"⥱"],[0,"⥲"],[0,"⥳"],[0,"⥴"],[0,"⥵"],[0,"⥶"],[1,"⥸"],[0,"⥹"],[1,"⥻"],[0,"⥼"],[0,"⥽"],[0,"⥾"],[0,"⥿"],[5,"⦅"],[0,"⦆"],[4,"⦋"],[0,"⦌"],[0,"⦍"],[0,"⦎"],[0,"⦏"],[0,"⦐"],[0,"⦑"],[0,"⦒"],[0,"⦓"],[0,"⦔"],[0,"⦕"],[0,"⦖"],[3,"⦚"],[1,"⦜"],[0,"⦝"],[6,"⦤"],[0,"⦥"],[0,"⦦"],[0,"⦧"],[0,"⦨"],[0,"⦩"],[0,"⦪"],[0,"⦫"],[0,"⦬"],[0,"⦭"],[0,"⦮"],[0,"⦯"],[0,"⦰"],[0,"⦱"],[0,"⦲"],[0,"⦳"],[0,"⦴"],[0,"⦵"],[0,"⦶"],[0,"⦷"],[1,"⦹"],[1,"⦻"],[0,"⦼"],[1,"⦾"],[0,"⦿"],[0,"⧀"],[0,"⧁"],[0,"⧂"],[0,"⧃"],[0,"⧄"],[0,"⧅"],[3,"⧉"],[3,"⧍"],[0,"⧎"],[0,{v:"⧏",n:824,o:"⧏̸"}],[0,{v:"⧐",n:824,o:"⧐̸"}],[11,"⧜"],[0,"⧝"],[0,"⧞"],[4,"⧣"],[0,"⧤"],[0,"⧥"],[5,"⧫"],[8,"⧴"],[1,"⧶"],[9,"⨀"],[0,"⨁"],[0,"⨂"],[1,"⨄"],[1,"⨆"],[5,"⨌"],[0,"⨍"],[2,"⨐"],[0,"⨑"],[0,"⨒"],[0,"⨓"],[0,"⨔"],[0,"⨕"],[0,"⨖"],[0,"⨗"],[10,"⨢"],[0,"⨣"],[0,"⨤"],[0,"⨥"],[0,"⨦"],[0,"⨧"],[1,"⨩"],[0,"⨪"],[2,"⨭"],[0,"⨮"],[0,"⨯"],[0,"⨰"],[0,"⨱"],[1,"⨳"],[0,"⨴"],[0,"⨵"],[0,"⨶"],[0,"⨷"],[0,"⨸"],[0,"⨹"],[0,"⨺"],[0,"⨻"],[0,"⨼"],[2,"⨿"],[0,"⩀"],[1,"⩂"],[0,"⩃"],[0,"⩄"],[0,"⩅"],[0,"⩆"],[0,"⩇"],[0,"⩈"],[0,"⩉"],[0,"⩊"],[0,"⩋"],[0,"⩌"],[0,"⩍"],[2,"⩐"],[2,"⩓"],[0,"⩔"],[0,"⩕"],[0,"⩖"],[0,"⩗"],[0,"⩘"],[1,"⩚"],[0,"⩛"],[0,"⩜"],[0,"⩝"],[1,"⩟"],[6,"⩦"],[3,"⩪"],[2,{v:"⩭",n:824,o:"⩭̸"}],[0,"⩮"],[0,"⩯"],[0,{v:"⩰",n:824,o:"⩰̸"}],[0,"⩱"],[0,"⩲"],[0,"⩳"],[0,"⩴"],[0,"⩵"],[1,"⩷"],[0,"⩸"],[0,"⩹"],[0,"⩺"],[0,"⩻"],[0,"⩼"],[0,{v:"⩽",n:824,o:"⩽̸"}],[0,{v:"⩾",n:824,o:"⩾̸"}],[0,"⩿"],[0,"⪀"],[0,"⪁"],[0,"⪂"],[0,"⪃"],[0,"⪄"],[0,"⪅"],[0,"⪆"],[0,"⪇"],[0,"⪈"],[0,"⪉"],[0,"⪊"],[0,"⪋"],[0,"⪌"],[0,"⪍"],[0,"⪎"],[0,"⪏"],[0,"⪐"],[0,"⪑"],[0,"⪒"],[0,"⪓"],[0,"⪔"],[0,"⪕"],[0,"⪖"],[0,"⪗"],[0,"⪘"],[0,"⪙"],[0,"⪚"],[2,"⪝"],[0,"⪞"],[0,"⪟"],[0,"⪠"],[0,{v:"⪡",n:824,o:"⪡̸"}],[0,{v:"⪢",n:824,o:"⪢̸"}],[1,"⪤"],[0,"⪥"],[0,"⪦"],[0,"⪧"],[0,"⪨"],[0,"⪩"],[0,"⪪"],[0,"⪫"],[0,{v:"⪬",n:65024,o:"⪬︀"}],[0,{v:"⪭",n:65024,o:"⪭︀"}],[0,"⪮"],[0,{v:"⪯",n:824,o:"⪯̸"}],[0,{v:"⪰",n:824,o:"⪰̸"}],[2,"⪳"],[0,"⪴"],[0,"⪵"],[0,"⪶"],[0,"⪷"],[0,"⪸"],[0,"⪹"],[0,"⪺"],[0,"⪻"],[0,"⪼"],[0,"⪽"],[0,"⪾"],[0,"⪿"],[0,"⫀"],[0,"⫁"],[0,"⫂"],[0,"⫃"],[0,"⫄"],[0,{v:"⫅",n:824,o:"⫅̸"}],[0,{v:"⫆",n:824,o:"⫆̸"}],[0,"⫇"],[0,"⫈"],[2,{v:"⫋",n:65024,o:"⫋︀"}],[0,{v:"⫌",n:65024,o:"⫌︀"}],[2,"⫏"],[0,"⫐"],[0,"⫑"],[0,"⫒"],[0,"⫓"],[0,"⫔"],[0,"⫕"],[0,"⫖"],[0,"⫗"],[0,"⫘"],[0,"⫙"],[0,"⫚"],[0,"⫛"],[8,"⫤"],[1,"⫦"],[0,"⫧"],[0,"⫨"],[0,"⫩"],[1,"⫫"],[0,"⫬"],[0,"⫭"],[0,"⫮"],[0,"⫯"],[0,"⫰"],[0,"⫱"],[0,"⫲"],[0,"⫳"],[9,{v:"⫽",n:8421,o:"⫽⃥"}],[44343,{n:new Map(ji([[56476,"𝒜"],[1,"𝒞"],[0,"𝒟"],[2,"𝒢"],[2,"𝒥"],[0,"𝒦"],[2,"𝒩"],[0,"𝒪"],[0,"𝒫"],[0,"𝒬"],[1,"𝒮"],[0,"𝒯"],[0,"𝒰"],[0,"𝒱"],[0,"𝒲"],[0,"𝒳"],[0,"𝒴"],[0,"𝒵"],[0,"𝒶"],[0,"𝒷"],[0,"𝒸"],[0,"𝒹"],[1,"𝒻"],[1,"𝒽"],[0,"𝒾"],[0,"𝒿"],[0,"𝓀"],[0,"𝓁"],[0,"𝓂"],[0,"𝓃"],[1,"𝓅"],[0,"𝓆"],[0,"𝓇"],[0,"𝓈"],[0,"𝓉"],[0,"𝓊"],[0,"𝓋"],[0,"𝓌"],[0,"𝓍"],[0,"𝓎"],[0,"𝓏"],[52,"𝔄"],[0,"𝔅"],[1,"𝔇"],[0,"𝔈"],[0,"𝔉"],[0,"𝔊"],[2,"𝔍"],[0,"𝔎"],[0,"𝔏"],[0,"𝔐"],[0,"𝔑"],[0,"𝔒"],[0,"𝔓"],[0,"𝔔"],[1,"𝔖"],[0,"𝔗"],[0,"𝔘"],[0,"𝔙"],[0,"𝔚"],[0,"𝔛"],[0,"𝔜"],[1,"𝔞"],[0,"𝔟"],[0,"𝔠"],[0,"𝔡"],[0,"𝔢"],[0,"𝔣"],[0,"𝔤"],[0,"𝔥"],[0,"𝔦"],[0,"𝔧"],[0,"𝔨"],[0,"𝔩"],[0,"𝔪"],[0,"𝔫"],[0,"𝔬"],[0,"𝔭"],[0,"𝔮"],[0,"𝔯"],[0,"𝔰"],[0,"𝔱"],[0,"𝔲"],[0,"𝔳"],[0,"𝔴"],[0,"𝔵"],[0,"𝔶"],[0,"𝔷"],[0,"𝔸"],[0,"𝔹"],[1,"𝔻"],[0,"𝔼"],[0,"𝔽"],[0,"𝔾"],[1,"𝕀"],[0,"𝕁"],[0,"𝕂"],[0,"𝕃"],[0,"𝕄"],[1,"𝕆"],[3,"𝕊"],[0,"𝕋"],[0,"𝕌"],[0,"𝕍"],[0,"𝕎"],[0,"𝕏"],[0,"𝕐"],[1,"𝕒"],[0,"𝕓"],[0,"𝕔"],[0,"𝕕"],[0,"𝕖"],[0,"𝕗"],[0,"𝕘"],[0,"𝕙"],[0,"𝕚"],[0,"𝕛"],[0,"𝕜"],[0,"𝕝"],[0,"𝕞"],[0,"𝕟"],[0,"𝕠"],[0,"𝕡"],[0,"𝕢"],[0,"𝕣"],[0,"𝕤"],[0,"𝕥"],[0,"𝕦"],[0,"𝕧"],[0,"𝕨"],[0,"𝕩"],[0,"𝕪"],[0,"𝕫"]]))}],[8906,"ff"],[0,"fi"],[0,"fl"],[0,"ffi"],[0,"ffl"]]));var Da=/["&'<>$\x80-\uFFFF]/g,Yo=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]),Go=String.prototype.codePointAt!=null?(e,t)=>e.codePointAt(t):(e,t)=>(e.charCodeAt(t)&64512)===55296?(e.charCodeAt(t)-55296)*1024+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t);function Mr(e){let t="",r=0,i;for(;(i=Da.exec(e))!==null;){let s=i.index,n=e.charCodeAt(s),o=Yo.get(n);o!==void 0?(t+=e.substring(r,s)+o,r=s+1):(t+=`${e.substring(r,s)}&#x${Go(e,s).toString(16)};`,r=Da.lastIndex+=+((n&64512)===55296))}return t+e.substr(r)}function Oa(e,t){return function(i){let s,n=0,o="";for(;s=e.exec(i);)n!==s.index&&(o+=i.substring(n,s.index)),o+=t.get(s[0].charCodeAt(0)),n=s.index+1;return o+i.substring(n)}}var Xo=Oa(/[&<>'"]/g,Yo),Qt=Oa(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),jt=Oa(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]));var Wo;(function(e){e[e.XML=0]="XML",e[e.HTML=1]="HTML"})(Wo||(Wo={}));var Ko;(function(e){e[e.UTF8=0]="UTF8",e[e.ASCII=1]="ASCII",e[e.Extensive=2]="Extensive",e[e.Attribute=3]="Attribute",e[e.Text=4]="Text"})(Ko||(Ko={}));var zo=new Map(["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","textPath"].map(e=>[e.toLowerCase(),e])),Jo=new Map(["definitionURL","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]));var kl=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function Ml(e){return e.replace(/"/g,""")}function Pl(e,t){var r;if(!e)return;let i=((r=t.encodeEntities)!==null&&r!==void 0?r:t.decodeEntities)===!1?Ml:t.xmlMode||t.encodeEntities!=="utf8"?Mr:Qt;return Object.keys(e).map(s=>{var n,o;let u=(n=e[s])!==null&&n!==void 0?n:"";return t.xmlMode==="foreign"&&(s=(o=Jo.get(s))!==null&&o!==void 0?o:s),!t.emptyAttrs&&!t.xmlMode&&u===""?s:`${s}="${i(u)}"`}).join(" ")}var Zo=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function Pa(e,t={}){let r="length"in e?e:[e],i="";for(let s=0;s<r.length;s++)i+=ql(r[s],t);return i}var zi=Pa;function ql(e,t){switch(e.type){case wa:return Pa(e.children,t);case Sa:case va:return Fl(e);case _a:return Yl(e);case Na:return Vl(e);case Aa:case ya:case Ca:return Ul(e,t);case xa:return $l(e,t)}}var Hl=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),Bl=new Set(["svg","math"]);function Ul(e,t){var r;t.xmlMode==="foreign"&&(e.name=(r=zo.get(e.name))!==null&&r!==void 0?r:e.name,e.parent&&Hl.has(e.parent.name)&&(t=$(R({},t),{xmlMode:!1}))),!t.xmlMode&&Bl.has(e.name)&&(t=$(R({},t),{xmlMode:"foreign"}));let i=`<${e.name}`,s=Pl(e.attribs,t);return s&&(i+=` ${s}`),e.children.length===0&&(t.xmlMode?t.selfClosingTags!==!1:t.selfClosingTags&&Zo.has(e.name))?(t.xmlMode||(i+=" "),i+="/>"):(i+=">",e.children.length>0&&(i+=Pa(e.children,t)),(t.xmlMode||!Zo.has(e.name))&&(i+=`</${e.name}>`)),i}function Fl(e){return`<${e.data}>`}function $l(e,t){var r;let i=e.data||"";return((r=t.encodeEntities)!==null&&r!==void 0?r:t.decodeEntities)!==!1&&!(!t.xmlMode&&e.parent&&kl.has(e.parent.name))&&(i=t.xmlMode||t.encodeEntities!=="utf8"?Mr(i):jt(i)),i}function Vl(e){return`<![CDATA[${e.children[0].data}]]>`}function Yl(e){return`<!--${e.data}-->`}function eu(e,t){return zi(e,t)}function Gl(e,t){return F(e)?e.children.map(r=>eu(r,t)).join(""):""}function Ji(e){return Array.isArray(e)?e.map(Ji).join(""):L(e)?e.name==="br"?`
|
|
2686
|
-
`:Ji(e.children):Xt(e)?Ji(e.children):se(e)?e.data:""}function Fe(e){return Array.isArray(e)?e.map(Fe).join(""):F(e)&&!At(e)?Fe(e.children):se(e)?e.data:""}function Pr(e){return Array.isArray(e)?e.map(Pr).join(""):F(e)&&(e.type===M.Tag||Xt(e))?Pr(e.children):se(e)?e.data:""}function zt(e){return F(e)?e.children:[]}function tu(e){return e.parent||null}function qa(e){let t=tu(e);if(t!=null)return zt(t);let r=[e],{prev:i,next:s}=e;for(;i!=null;)r.unshift(i),{prev:i}=i;for(;s!=null;)r.push(s),{next:s}=s;return r}function Xl(e,t){var r;return(r=e.attribs)===null||r===void 0?void 0:r[t]}function Wl(e,t){return e.attribs!=null&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&e.attribs[t]!=null}function Kl(e){return e.name}function Zi(e){let{next:t}=e;for(;t!==null&&!L(t);)({next:t}=t);return t}function es(e){let{prev:t}=e;for(;t!==null&&!L(t);)({prev:t}=t);return t}function $e(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){let t=e.parent.children,r=t.lastIndexOf(e);r>=0&&t.splice(r,1)}e.next=null,e.prev=null,e.parent=null}function Ql(e,t){let r=t.prev=e.prev;r&&(r.next=t);let i=t.next=e.next;i&&(i.prev=t);let s=t.parent=e.parent;if(s){let n=s.children;n[n.lastIndexOf(e)]=t,e.parent=null}}function jl(e,t){if($e(t),t.next=null,t.parent=e,e.children.push(t)>1){let r=e.children[e.children.length-2];r.next=t,t.prev=r}else t.prev=null}function zl(e,t){$e(t);let{parent:r}=e,i=e.next;if(t.next=i,t.prev=e,e.next=t,t.parent=r,i){if(i.prev=t,r){let s=r.children;s.splice(s.lastIndexOf(i),0,t)}}else r&&r.children.push(t)}function Jl(e,t){if($e(t),t.parent=e,t.prev=null,e.children.unshift(t)!==1){let r=e.children[1];r.prev=t,t.next=r}else t.next=null}function Zl(e,t){$e(t);let{parent:r}=e;if(r){let i=r.children;i.splice(i.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=r,t.prev=e.prev,t.next=e,e.prev=t}function qr(e,t,r=!0,i=1/0){return ts(e,Array.isArray(t)?t:[t],r,i)}function ts(e,t,r,i){let s=[],n=[t],o=[0];for(;;){if(o[0]>=n[0].length){if(o.length===1)return s;n.shift(),o.shift();continue}let u=n[0][o[0]++];if(e(u)&&(s.push(u),--i<=0))return s;r&&F(u)&&u.children.length>0&&(o.unshift(0),n.unshift(u.children))}}function e0(e,t){return t.find(e)}function rs(e,t,r=!0){let i=null;for(let s=0;s<t.length&&!i;s++){let n=t[s];if(L(n))e(n)?i=n:r&&n.children.length>0&&(i=rs(e,n.children,!0));else continue}return i}function ru(e,t){return t.some(r=>L(r)&&(e(r)||ru(e,r.children)))}function t0(e,t){let r=[],i=[t],s=[0];for(;;){if(s[0]>=i[0].length){if(i.length===1)return r;i.shift(),s.shift();continue}let n=i[0][s[0]++];L(n)&&(e(n)&&r.push(n),n.children.length>0&&(s.unshift(0),i.unshift(n.children)))}}var is={tag_name(e){return typeof e=="function"?t=>L(t)&&e(t.name):e==="*"?L:t=>L(t)&&t.name===e},tag_type(e){return typeof e=="function"?t=>e(t.type):t=>t.type===e},tag_contains(e){return typeof e=="function"?t=>se(t)&&e(t.data):t=>se(t)&&t.data===e}};function iu(e,t){return typeof t=="function"?r=>L(r)&&t(r.attribs[e]):r=>L(r)&&r.attribs[e]===t}function r0(e,t){return r=>e(r)||t(r)}function su(e){let t=Object.keys(e).map(r=>{let i=e[r];return Object.prototype.hasOwnProperty.call(is,r)?is[r](i):iu(r,i)});return t.length===0?null:t.reduce(r0)}function i0(e,t){let r=su(e);return r?r(t):!0}function s0(e,t,r,i=1/0){let s=su(e);return s?qr(s,t,r,i):[]}function a0(e,t,r=!0){return Array.isArray(t)||(t=[t]),rs(iu("id",e),t,r)}function yt(e,t,r=!0,i=1/0){return qr(is.tag_name(e),t,r,i)}function n0(e,t,r=!0,i=1/0){return qr(is.tag_type(e),t,r,i)}function o0(e){let t=e.length;for(;--t>=0;){let r=e[t];if(t>0&&e.lastIndexOf(r,t-1)>=0){e.splice(t,1);continue}for(let i=r.parent;i;i=i.parent)if(e.includes(i)){e.splice(t,1);break}}return e}var pe;(function(e){e[e.DISCONNECTED=1]="DISCONNECTED",e[e.PRECEDING=2]="PRECEDING",e[e.FOLLOWING=4]="FOLLOWING",e[e.CONTAINS=8]="CONTAINS",e[e.CONTAINED_BY=16]="CONTAINED_BY"})(pe||(pe={}));function au(e,t){let r=[],i=[];if(e===t)return 0;let s=F(e)?e:e.parent;for(;s;)r.unshift(s),s=s.parent;for(s=F(t)?t:t.parent;s;)i.unshift(s),s=s.parent;let n=Math.min(r.length,i.length),o=0;for(;o<n&&r[o]===i[o];)o++;if(o===0)return pe.DISCONNECTED;let u=r[o-1],c=u.children,h=r[o],p=i[o];return c.indexOf(h)>c.indexOf(p)?u===t?pe.FOLLOWING|pe.CONTAINED_BY:pe.FOLLOWING:u===e?pe.PRECEDING|pe.CONTAINS:pe.PRECEDING}function ze(e){return e=e.filter((t,r,i)=>!i.includes(t,r+1)),e.sort((t,r)=>{let i=au(t,r);return i&pe.PRECEDING?-1:i&pe.FOLLOWING?1:0}),e}function Ha(e){let t=ss(h0,e);return t?t.name==="feed"?u0(t):c0(t):null}function u0(e){var t;let r=e.children,i={type:"atom",items:yt("entry",r).map(o=>{var u;let{children:c}=o,h={media:nu(c)};ae(h,"id","id",c),ae(h,"title","title",c);let p=(u=ss("link",c))===null||u===void 0?void 0:u.attribs.href;p&&(h.link=p);let T=Je("summary",c)||Je("content",c);T&&(h.description=T);let x=Je("updated",c);return x&&(h.pubDate=new Date(x)),h})};ae(i,"id","id",r),ae(i,"title","title",r);let s=(t=ss("link",r))===null||t===void 0?void 0:t.attribs.href;s&&(i.link=s),ae(i,"description","subtitle",r);let n=Je("updated",r);return n&&(i.updated=new Date(n)),ae(i,"author","email",r,!0),i}function c0(e){var t,r;let i=(r=(t=ss("channel",e.children))===null||t===void 0?void 0:t.children)!==null&&r!==void 0?r:[],s={type:e.name.substr(0,3),id:"",items:yt("item",e.children).map(o=>{let{children:u}=o,c={media:nu(u)};ae(c,"id","guid",u),ae(c,"title","title",u),ae(c,"link","link",u),ae(c,"description","description",u);let h=Je("pubDate",u)||Je("dc:date",u);return h&&(c.pubDate=new Date(h)),c})};ae(s,"title","title",i),ae(s,"link","link",i),ae(s,"description","description",i);let n=Je("lastBuildDate",i);return n&&(s.updated=new Date(n)),ae(s,"author","managingEditor",i,!0),s}var l0=["url","type","lang"],d0=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function nu(e){return yt("media:content",e).map(t=>{let{attribs:r}=t,i={medium:r.medium,isDefault:!!r.isDefault};for(let s of l0)r[s]&&(i[s]=r[s]);for(let s of d0)r[s]&&(i[s]=parseInt(r[s],10));return r.expression&&(i.expression=r.expression),i})}function ss(e,t){return yt(e,t,!0,1)[0]}function Je(e,t,r=!1){return Fe(yt(e,t,r,1)).trim()}function ae(e,t,r,i,s=!1){let n=Je(r,i,s);n&&(e[t]=n)}function h0(e){return e==="rss"||e==="feed"||e==="rdf:RDF"}function uu(e,t,r){return e?e(t!=null?t:e._root.children,null,void 0,r).toString():""}function f0(e,t){return!t&&typeof e=="object"&&e!=null&&!("length"in e)&&!("type"in e)}function cu(e,t){let r=f0(e)?(t=e,void 0):e,i=R(R(R({},Nr),this===null||this===void 0?void 0:this._options),Sr(t!=null?t:{}));return uu(this,r,i)}function lu(e){let t=$(R({},this._options),{xmlMode:!0});return uu(this,e,t)}function Ze(e){let t=e||(this?this.root():[]),r="";for(let i=0;i<t.length;i++)r+=Fe(t[i]);return r}function p0(e,t,r=typeof t=="boolean"?t:!1){if(!e||typeof e!="string")return null;typeof t=="boolean"&&(r=t);let i=this.load(e,Nr,!1);return r||i("script").remove(),i.root()[0].children.slice()}function m0(){return this(this._root)}function Ba(e,t){if(t===e)return!1;let r=t;for(;r&&r!==r.parent;)if(r=r.parent,r===e)return!0;return!1}function g0(e,t){if(!ou(e)||!ou(t))return;let r=e.length,i=+t.length;for(let s=0;s<i;s++)e[r++]=t[s];return e.length=r,e}function ou(e){if(Array.isArray(e))return!0;if(typeof e!="object"||!Object.prototype.hasOwnProperty.call(e,"length")||typeof e.length!="number"||e.length<0)return!1;for(let t=0;t<e.length;t++)if(!(t in e))return!1;return!0}var Va={};Ee(Va,{addClass:()=>Eu,attr:()=>E0,data:()=>w0,hasClass:()=>_0,prop:()=>T0,removeAttr:()=>v0,removeClass:()=>Tu,toggleClass:()=>wu,val:()=>x0});function le(e){return e.cheerio!=null}function du(e){return e.replace(/[_.-](\w|$)/g,(t,r)=>r.toUpperCase())}function hu(e){return e.replace(/[A-Z]/g,"-$&").toLowerCase()}function B(e,t){let r=e.length;for(let i=0;i<r;i++)t(e[i],i);return e}function as(e){let t="length"in e?Array.prototype.map.call(e,i=>Dr(i,!0)):[Dr(e,!0)],r=new ce(t);return t.forEach(i=>{i.parent=r}),t}var Ct;(function(e){e[e.LowerA=97]="LowerA",e[e.LowerZ=122]="LowerZ",e[e.UpperA=65]="UpperA",e[e.UpperZ=90]="UpperZ",e[e.Exclamation=33]="Exclamation"})(Ct||(Ct={}));function Hr(e){let t=e.indexOf("<");if(t<0||t>e.length-3)return!1;let r=e.charCodeAt(t+1);return(r>=Ct.LowerA&&r<=Ct.LowerZ||r>=Ct.UpperA&&r<=Ct.UpperZ||r===Ct.Exclamation)&&e.includes(">",t+2)}var Jt=Object.prototype.hasOwnProperty,Br=/\s+/,Ua="data-",fu={null:null,true:!0,false:!1},$a=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,b0=/^{[^]*}$|^\[[^]*]$/;function ns(e,t,r){var i;if(!(!e||!L(e))){if((i=e.attribs)!==null&&i!==void 0||(e.attribs={}),!t)return e.attribs;if(Jt.call(e.attribs,t))return!r&&$a.test(t)?t:e.attribs[t];if(e.name==="option"&&t==="value")return Ze(e.children);if(e.name==="input"&&(e.attribs.type==="radio"||e.attribs.type==="checkbox")&&t==="value")return"on"}}function Zt(e,t,r){r===null?bu(e,t):e.attribs[t]=`${r}`}function E0(e,t){if(typeof e=="object"||t!==void 0){if(typeof t=="function"){if(typeof e!="string")throw new Error("Bad combination of arguments.");return B(this,(r,i)=>{L(r)&&Zt(r,e,t.call(r,i,r.attribs[e]))})}return B(this,r=>{L(r)&&(typeof e=="object"?Object.keys(e).forEach(i=>{let s=e[i];Zt(r,i,s)}):Zt(r,e,t))})}return arguments.length>1?this:ns(this[0],e,this.options.xmlMode)}function pu(e,t,r){return t in e?e[t]:!r&&$a.test(t)?ns(e,t,!1)!==void 0:ns(e,t,r)}function Fa(e,t,r,i){t in e?e[t]=r:Zt(e,t,!i&&$a.test(t)?r?"":null:`${r}`)}function T0(e,t){var r;if(typeof e=="string"&&t===void 0){let i=this[0];if(!i||!L(i))return;switch(e){case"style":{let s=this.css(),n=Object.keys(s);return n.forEach((o,u)=>{s[u]=o}),s.length=n.length,s}case"tagName":case"nodeName":return i.name.toUpperCase();case"href":case"src":{let s=(r=i.attribs)===null||r===void 0?void 0:r[e];return typeof URL!="undefined"&&(e==="href"&&(i.tagName==="a"||i.name==="link")||e==="src"&&(i.tagName==="img"||i.tagName==="iframe"||i.tagName==="audio"||i.tagName==="video"||i.tagName==="source"))&&s!==void 0&&this.options.baseURI?new URL(s,this.options.baseURI).href:s}case"innerText":return Pr(i);case"textContent":return Fe(i);case"outerHTML":return this.clone().wrap("<container />").parent().html();case"innerHTML":return this.html();default:return pu(i,e,this.options.xmlMode)}}if(typeof e=="object"||t!==void 0){if(typeof t=="function"){if(typeof e=="object")throw new Error("Bad combination of arguments.");return B(this,(i,s)=>{L(i)&&Fa(i,e,t.call(i,s,pu(i,e,this.options.xmlMode)),this.options.xmlMode)})}return B(this,i=>{L(i)&&(typeof e=="object"?Object.keys(e).forEach(s=>{let n=e[s];Fa(i,s,n,this.options.xmlMode)}):Fa(i,e,t,this.options.xmlMode))})}}function mu(e,t,r){var i;let s=e;(i=s.data)!==null&&i!==void 0||(s.data={}),typeof t=="object"?Object.assign(s.data,t):typeof t=="string"&&r!==void 0&&(s.data[t]=r)}function gu(e,t){let r,i,s;t==null?(r=Object.keys(e.attribs).filter(n=>n.startsWith(Ua)),i=r.map(n=>du(n.slice(Ua.length)))):(r=[Ua+hu(t)],i=[t]);for(let n=0;n<r.length;++n){let o=r[n],u=i[n];if(Jt.call(e.attribs,o)&&!Jt.call(e.data,u)){if(s=e.attribs[o],Jt.call(fu,s))s=fu[s];else if(s===String(Number(s)))s=Number(s);else if(b0.test(s))try{s=JSON.parse(s)}catch(c){}e.data[u]=s}}return t==null?e.data:s}function w0(e,t){var r;let i=this[0];if(!i||!L(i))return;let s=i;return(r=s.data)!==null&&r!==void 0||(s.data={}),e?typeof e=="object"||t!==void 0?(B(this,n=>{L(n)&&(typeof e=="object"?mu(n,e):mu(n,e,t))}),this):Jt.call(s.data,e)?s.data[e]:gu(s,e):gu(s)}function x0(e){let t=arguments.length===0,r=this[0];if(!r||!L(r))return t?void 0:this;switch(r.name){case"textarea":return this.text(e);case"select":{let i=this.find("option:selected");if(!t){if(this.attr("multiple")==null&&typeof e=="object")return this;this.find("option").removeAttr("selected");let s=typeof e!="object"?[e]:e;for(let n=0;n<s.length;n++)this.find(`option[value="${s[n]}"]`).attr("selected","");return this}return this.attr("multiple")?i.toArray().map(s=>Ze(s.children)):i.attr("value")}case"input":case"option":return t?this.attr("value"):this.attr("value",e)}}function bu(e,t){!e.attribs||!Jt.call(e.attribs,t)||delete e.attribs[t]}function os(e){return e?e.trim().split(Br):[]}function v0(e){let t=os(e);for(let r=0;r<t.length;r++)B(this,i=>{L(i)&&bu(i,t[r])});return this}function _0(e){return this.toArray().some(t=>{let r=L(t)&&t.attribs.class,i=-1;if(r&&e.length)for(;(i=r.indexOf(e,i+1))>-1;){let s=i+e.length;if((i===0||Br.test(r[i-1]))&&(s===r.length||Br.test(r[s])))return!0}return!1})}function Eu(e){if(typeof e=="function")return B(this,(i,s)=>{if(L(i)){let n=i.attribs.class||"";Eu.call([i],e.call(i,s,n))}});if(!e||typeof e!="string")return this;let t=e.split(Br),r=this.length;for(let i=0;i<r;i++){let s=this[i];if(!L(s))continue;let n=ns(s,"class",!1);if(!n)Zt(s,"class",t.join(" ").trim());else{let o=` ${n} `;for(let u=0;u<t.length;u++){let c=`${t[u]} `;o.includes(` ${c}`)||(o+=c)}Zt(s,"class",o.trim())}}return this}function Tu(e){if(typeof e=="function")return B(this,(s,n)=>{L(s)&&Tu.call([s],e.call(s,n,s.attribs.class||""))});let t=os(e),r=t.length,i=arguments.length===0;return B(this,s=>{if(L(s))if(i)s.attribs.class="";else{let n=os(s.attribs.class),o=!1;for(let u=0;u<r;u++){let c=n.indexOf(t[u]);c>=0&&(n.splice(c,1),o=!0,u--)}o&&(s.attribs.class=n.join(" "))}})}function wu(e,t){if(typeof e=="function")return B(this,(o,u)=>{L(o)&&wu.call([o],e.call(o,u,o.attribs.class||"",t),t)});if(!e||typeof e!="string")return this;let r=e.split(Br),i=r.length,s=typeof t=="boolean"?t?1:-1:0,n=this.length;for(let o=0;o<n;o++){let u=this[o];if(!L(u))continue;let c=os(u.attribs.class);for(let h=0;h<i;h++){let p=c.indexOf(r[h]);s>=0&&p<0?c.push(r[h]):s<=0&&p>=0&&c.splice(p,1)}u.attribs.class=c.join(" ")}return this}var fn={};Ee(fn,{add:()=>vd,addBack:()=>_d,children:()=>nd,closest:()=>J0,contents:()=>od,each:()=>ud,end:()=>xd,eq:()=>gd,filter:()=>ld,filterArray:()=>hn,find:()=>K0,first:()=>pd,get:()=>bd,has:()=>fd,index:()=>Td,is:()=>dd,last:()=>md,map:()=>cd,next:()=>Z0,nextAll:()=>ed,nextUntil:()=>td,not:()=>hd,parent:()=>Q0,parents:()=>j0,parentsUntil:()=>z0,prev:()=>rd,prevAll:()=>id,prevUntil:()=>sd,siblings:()=>ad,slice:()=>wd,toArray:()=>Ed});var D;(function(e){e.Attribute="attribute",e.Pseudo="pseudo",e.PseudoElement="pseudo-element",e.Tag="tag",e.Universal="universal",e.Adjacent="adjacent",e.Child="child",e.Descendant="descendant",e.Parent="parent",e.Sibling="sibling",e.ColumnCombinator="column-combinator"})(D||(D={}));var W;(function(e){e.Any="any",e.Element="element",e.End="end",e.Equals="equals",e.Exists="exists",e.Hyphen="hyphen",e.Not="not",e.Start="start"})(W||(W={}));var xu=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,A0=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,y0=new Map([[126,W.Element],[94,W.Start],[36,W.End],[42,W.Any],[33,W.Not],[124,W.Hyphen]]),C0=new Set(["has","not","matches","is","where","host","host-context"]);function Nt(e){switch(e.type){case D.Adjacent:case D.Child:case D.Descendant:case D.Parent:case D.Sibling:case D.ColumnCombinator:return!0;default:return!1}}var N0=new Set(["contains","icontains"]);function S0(e,t,r){let i=parseInt(t,16)-65536;return i!==i||r?t:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,i&1023|56320)}function Ur(e){return e.replace(A0,S0)}function Ya(e){return e===39||e===34}function vu(e){return e===32||e===9||e===10||e===12||e===13}function Ye(e){let t=[],r=_u(t,`${e}`,0);if(r<e.length)throw new Error(`Unmatched selector: ${e.slice(r)}`);return t}function _u(e,t,r){let i=[];function s(x){let _=t.slice(r+x).match(xu);if(!_)throw new Error(`Expected name, found ${t.slice(r)}`);let[C]=_;return r+=x+C.length,Ur(C)}function n(x){for(r+=x;r<t.length&&vu(t.charCodeAt(r));)r++}function o(){r+=1;let x=r,_=1;for(;_>0&&r<t.length;r++)t.charCodeAt(r)===40&&!u(r)?_++:t.charCodeAt(r)===41&&!u(r)&&_--;if(_)throw new Error("Parenthesis not matched");return Ur(t.slice(x,r-1))}function u(x){let _=0;for(;t.charCodeAt(--x)===92;)_++;return(_&1)===1}function c(){if(i.length>0&&Nt(i[i.length-1]))throw new Error("Did not expect successive traversals.")}function h(x){if(i.length>0&&i[i.length-1].type===D.Descendant){i[i.length-1].type=x;return}c(),i.push({type:x})}function p(x,_){i.push({type:D.Attribute,name:x,action:_,value:s(1),namespace:null,ignoreCase:"quirks"})}function T(){if(i.length&&i[i.length-1].type===D.Descendant&&i.pop(),i.length===0)throw new Error("Empty sub-selector");e.push(i)}if(n(0),t.length===r)return r;e:for(;r<t.length;){let x=t.charCodeAt(r);switch(x){case 32:case 9:case 10:case 12:case 13:{(i.length===0||i[0].type!==D.Descendant)&&(c(),i.push({type:D.Descendant})),n(1);break}case 62:{h(D.Child),n(1);break}case 60:{h(D.Parent),n(1);break}case 126:{h(D.Sibling),n(1);break}case 43:{h(D.Adjacent),n(1);break}case 46:{p("class",W.Element);break}case 35:{p("id",W.Equals);break}case 91:{n(1);let _,C=null;t.charCodeAt(r)===124?_=s(1):t.startsWith("*|",r)?(C="*",_=s(2)):(_=s(0),t.charCodeAt(r)===124&&t.charCodeAt(r+1)!==61&&(C=_,_=s(1))),n(0);let I=W.Exists,P=y0.get(t.charCodeAt(r));if(P){if(I=P,t.charCodeAt(r+1)!==61)throw new Error("Expected `=`");n(2)}else t.charCodeAt(r)===61&&(I=W.Equals,n(1));let ue="",be=null;if(I!=="exists"){if(Ya(t.charCodeAt(r))){let ci=t.charCodeAt(r),ut=r+1;for(;ut<t.length&&(t.charCodeAt(ut)!==ci||u(ut));)ut+=1;if(t.charCodeAt(ut)!==ci)throw new Error("Attribute value didn't end");ue=Ur(t.slice(r+1,ut)),r=ut+1}else{let ci=r;for(;r<t.length&&(!vu(t.charCodeAt(r))&&t.charCodeAt(r)!==93||u(r));)r+=1;ue=Ur(t.slice(ci,r))}n(0);let cr=t.charCodeAt(r)|32;cr===115?(be=!1,n(1)):cr===105&&(be=!0,n(1))}if(t.charCodeAt(r)!==93)throw new Error("Attribute selector didn't terminate");r+=1;let ot={type:D.Attribute,name:_,action:I,value:ue,namespace:C,ignoreCase:be};i.push(ot);break}case 58:{if(t.charCodeAt(r+1)===58){i.push({type:D.PseudoElement,name:s(2).toLowerCase(),data:t.charCodeAt(r)===40?o():null});continue}let _=s(1).toLowerCase(),C=null;if(t.charCodeAt(r)===40)if(C0.has(_)){if(Ya(t.charCodeAt(r+1)))throw new Error(`Pseudo-selector ${_} cannot be quoted`);if(C=[],r=_u(C,t,r+1),t.charCodeAt(r)!==41)throw new Error(`Missing closing parenthesis in :${_} (${t})`);r+=1}else{if(C=o(),N0.has(_)){let I=C.charCodeAt(0);I===C.charCodeAt(C.length-1)&&Ya(I)&&(C=C.slice(1,-1))}C=Ur(C)}i.push({type:D.Pseudo,name:_,data:C});break}case 44:{T(),i=[],n(1);break}default:{if(t.startsWith("/*",r)){let I=t.indexOf("*/",r+2);if(I<0)throw new Error("Comment was not terminated");r=I+2,i.length===0&&n(0);break}let _=null,C;if(x===42)r+=1,C="*";else if(x===124){if(C="",t.charCodeAt(r+1)===124){h(D.ColumnCombinator),n(2);break}}else if(xu.test(t.slice(r)))C=s(0);else break e;t.charCodeAt(r)===124&&t.charCodeAt(r+1)!==124&&(_=C,t.charCodeAt(r+1)===42?(C="*",r+=2):C=s(1)),i.push(C==="*"?{type:D.Universal,namespace:_}:{type:D.Tag,name:C,namespace:_})}}}return T(),r}var tn=ct(tt(),1);var Ge=ct(tt(),1);var yu=new Map([[D.Universal,50],[D.Tag,30],[D.Attribute,1],[D.Pseudo,0]]);function Fr(e){return!yu.has(e.type)}var I0=new Map([[W.Exists,10],[W.Equals,8],[W.Not,7],[W.Start,6],[W.End,6],[W.Any,5]]);function Ga(e){let t=e.map(Cu);for(let r=1;r<e.length;r++){let i=t[r];if(!(i<0))for(let s=r-1;s>=0&&i<t[s];s--){let n=e[s+1];e[s+1]=e[s],e[s]=n,t[s+1]=t[s],t[s]=i}}}function Cu(e){var t,r;let i=(t=yu.get(e.type))!==null&&t!==void 0?t:-1;return e.type===D.Attribute?(i=(r=I0.get(e.action))!==null&&r!==void 0?r:4,e.action===W.Equals&&e.name==="id"&&(i=9),e.ignoreCase&&(i>>=1)):e.type===D.Pseudo&&(e.data?e.name==="has"||e.name==="contains"?i=0:Array.isArray(e.data)?(i=Math.min(...e.data.map(s=>Math.min(...s.map(Cu)))),i<0&&(i=0)):i=2:i=3),i}var $r=ct(tt(),1),R0=/[-[\]{}()*+?.,\\^$|#\s]/g;function Nu(e){return e.replace(R0,"\\$&")}var L0=new Set(["accept","accept-charset","align","alink","axis","bgcolor","charset","checked","clear","codetype","color","compact","declare","defer","dir","direction","disabled","enctype","face","frame","hreflang","http-equiv","lang","language","link","media","method","multiple","nohref","noresize","noshade","nowrap","readonly","rel","rev","rules","scope","scrolling","selected","shape","target","text","type","valign","valuetype","vlink"]);function St(e,t){return typeof e.ignoreCase=="boolean"?e.ignoreCase:e.ignoreCase==="quirks"?!!t.quirksMode:!t.xmlMode&&L0.has(e.name)}var Su={equals(e,t,r){let{adapter:i}=r,{name:s}=t,{value:n}=t;return St(t,r)?(n=n.toLowerCase(),o=>{let u=i.getAttributeValue(o,s);return u!=null&&u.length===n.length&&u.toLowerCase()===n&&e(o)}):o=>i.getAttributeValue(o,s)===n&&e(o)},hyphen(e,t,r){let{adapter:i}=r,{name:s}=t,{value:n}=t,o=n.length;return St(t,r)?(n=n.toLowerCase(),function(c){let h=i.getAttributeValue(c,s);return h!=null&&(h.length===o||h.charAt(o)==="-")&&h.substr(0,o).toLowerCase()===n&&e(c)}):function(c){let h=i.getAttributeValue(c,s);return h!=null&&(h.length===o||h.charAt(o)==="-")&&h.substr(0,o)===n&&e(c)}},element(e,t,r){let{adapter:i}=r,{name:s,value:n}=t;if(/\s/.test(n))return $r.default.falseFunc;let o=new RegExp(`(?:^|\\s)${Nu(n)}(?:$|\\s)`,St(t,r)?"i":"");return function(c){let h=i.getAttributeValue(c,s);return h!=null&&h.length>=n.length&&o.test(h)&&e(c)}},exists(e,{name:t},{adapter:r}){return i=>r.hasAttrib(i,t)&&e(i)},start(e,t,r){let{adapter:i}=r,{name:s}=t,{value:n}=t,o=n.length;return o===0?$r.default.falseFunc:St(t,r)?(n=n.toLowerCase(),u=>{let c=i.getAttributeValue(u,s);return c!=null&&c.length>=o&&c.substr(0,o).toLowerCase()===n&&e(u)}):u=>{var c;return!!(!((c=i.getAttributeValue(u,s))===null||c===void 0)&&c.startsWith(n))&&e(u)}},end(e,t,r){let{adapter:i}=r,{name:s}=t,{value:n}=t,o=-n.length;return o===0?$r.default.falseFunc:St(t,r)?(n=n.toLowerCase(),u=>{var c;return((c=i.getAttributeValue(u,s))===null||c===void 0?void 0:c.substr(o).toLowerCase())===n&&e(u)}):u=>{var c;return!!(!((c=i.getAttributeValue(u,s))===null||c===void 0)&&c.endsWith(n))&&e(u)}},any(e,t,r){let{adapter:i}=r,{name:s,value:n}=t;if(n==="")return $r.default.falseFunc;if(St(t,r)){let o=new RegExp(Nu(n),"i");return function(c){let h=i.getAttributeValue(c,s);return h!=null&&h.length>=n.length&&o.test(h)&&e(c)}}return o=>{var u;return!!(!((u=i.getAttributeValue(o,s))===null||u===void 0)&&u.includes(n))&&e(o)}},not(e,t,r){let{adapter:i}=r,{name:s}=t,{value:n}=t;return n===""?o=>!!i.getAttributeValue(o,s)&&e(o):St(t,r)?(n=n.toLowerCase(),o=>{let u=i.getAttributeValue(o,s);return(u==null||u.length!==n.length||u.toLowerCase()!==n)&&e(o)}):o=>i.getAttributeValue(o,s)!==n&&e(o)}};var D0=new Set([9,10,12,13,32]),Iu="0".charCodeAt(0),O0="9".charCodeAt(0);function Ru(e){if(e=e.trim().toLowerCase(),e==="even")return[2,0];if(e==="odd")return[2,1];let t=0,r=0,i=n(),s=o();if(t<e.length&&e.charAt(t)==="n"&&(t++,r=i*(s!=null?s:1),u(),t<e.length?(i=n(),u(),s=o()):i=s=0),s===null||t<e.length)throw new Error(`n-th rule couldn't be parsed ('${e}')`);return[r,i*s];function n(){return e.charAt(t)==="-"?(t++,-1):(e.charAt(t)==="+"&&t++,1)}function o(){let c=t,h=0;for(;t<e.length&&e.charCodeAt(t)>=Iu&&e.charCodeAt(t)<=O0;)h=h*10+(e.charCodeAt(t)-Iu),t++;return t===c?null:h}function u(){for(;t<e.length&&D0.has(e.charCodeAt(t));)t++}}var Xa=ct(tt(),1);function Lu(e){let t=e[0],r=e[1]-1;if(r<0&&t<=0)return Xa.default.falseFunc;if(t===-1)return n=>n<=r;if(t===0)return n=>n===r;if(t===1)return r<0?Xa.default.trueFunc:n=>n>=r;let i=Math.abs(t),s=(r%i+i)%i;return t>1?n=>n>=r&&n%i===s:n=>n<=r&&n%i===s}function er(e){return Lu(Ru(e))}var ne=ct(tt(),1);function us(e,t){return r=>{let i=t.getParent(r);return i!=null&&t.isTag(i)&&e(r)}}var tr={contains(e,t,{adapter:r}){return function(s){return e(s)&&r.getText(s).includes(t)}},icontains(e,t,{adapter:r}){let i=t.toLowerCase();return function(n){return e(n)&&r.getText(n).toLowerCase().includes(i)}},"nth-child"(e,t,{adapter:r,equals:i}){let s=er(t);return s===ne.default.falseFunc?ne.default.falseFunc:s===ne.default.trueFunc?us(e,r):function(o){let u=r.getSiblings(o),c=0;for(let h=0;h<u.length&&!i(o,u[h]);h++)r.isTag(u[h])&&c++;return s(c)&&e(o)}},"nth-last-child"(e,t,{adapter:r,equals:i}){let s=er(t);return s===ne.default.falseFunc?ne.default.falseFunc:s===ne.default.trueFunc?us(e,r):function(o){let u=r.getSiblings(o),c=0;for(let h=u.length-1;h>=0&&!i(o,u[h]);h--)r.isTag(u[h])&&c++;return s(c)&&e(o)}},"nth-of-type"(e,t,{adapter:r,equals:i}){let s=er(t);return s===ne.default.falseFunc?ne.default.falseFunc:s===ne.default.trueFunc?us(e,r):function(o){let u=r.getSiblings(o),c=0;for(let h=0;h<u.length;h++){let p=u[h];if(i(o,p))break;r.isTag(p)&&r.getName(p)===r.getName(o)&&c++}return s(c)&&e(o)}},"nth-last-of-type"(e,t,{adapter:r,equals:i}){let s=er(t);return s===ne.default.falseFunc?ne.default.falseFunc:s===ne.default.trueFunc?us(e,r):function(o){let u=r.getSiblings(o),c=0;for(let h=u.length-1;h>=0;h--){let p=u[h];if(i(o,p))break;r.isTag(p)&&r.getName(p)===r.getName(o)&&c++}return s(c)&&e(o)}},root(e,t,{adapter:r}){return i=>{let s=r.getParent(i);return(s==null||!r.isTag(s))&&e(i)}},scope(e,t,r,i){let{equals:s}=r;return!i||i.length===0?tr.root(e,t,r):i.length===1?n=>s(i[0],n)&&e(n):n=>i.includes(n)&&e(n)},hover:Wa("isHovered"),visited:Wa("isVisited"),active:Wa("isActive")};function Wa(e){return function(r,i,{adapter:s}){let n=s[e];return typeof n!="function"?ne.default.falseFunc:function(u){return n(u)&&r(u)}}}var Vr={empty(e,{adapter:t}){return!t.getChildren(e).some(r=>t.isTag(r)||t.getText(r)!=="")},"first-child"(e,{adapter:t,equals:r}){if(t.prevElementSibling)return t.prevElementSibling(e)==null;let i=t.getSiblings(e).find(s=>t.isTag(s));return i!=null&&r(e,i)},"last-child"(e,{adapter:t,equals:r}){let i=t.getSiblings(e);for(let s=i.length-1;s>=0;s--){if(r(e,i[s]))return!0;if(t.isTag(i[s]))break}return!1},"first-of-type"(e,{adapter:t,equals:r}){let i=t.getSiblings(e),s=t.getName(e);for(let n=0;n<i.length;n++){let o=i[n];if(r(e,o))return!0;if(t.isTag(o)&&t.getName(o)===s)break}return!1},"last-of-type"(e,{adapter:t,equals:r}){let i=t.getSiblings(e),s=t.getName(e);for(let n=i.length-1;n>=0;n--){let o=i[n];if(r(e,o))return!0;if(t.isTag(o)&&t.getName(o)===s)break}return!1},"only-of-type"(e,{adapter:t,equals:r}){let i=t.getName(e);return t.getSiblings(e).every(s=>r(e,s)||!t.isTag(s)||t.getName(s)!==i)},"only-child"(e,{adapter:t,equals:r}){return t.getSiblings(e).every(i=>r(e,i)||!t.isTag(i))}};function Ka(e,t,r,i){if(r===null){if(e.length>i)throw new Error(`Pseudo-class :${t} requires an argument`)}else if(e.length===i)throw new Error(`Pseudo-class :${t} doesn't have any arguments`)}var cs={"any-link":":is(a, area, link)[href]",link:":any-link:not(:visited)",disabled:`:is(
|
|
425
|
+
`,E([x({type:Boolean})],Ee.prototype,"disabled",2),E([U("disabled",{waitUntilFirstUpdate:!0})],Ee.prototype,"handleDisabledChange",1),E([x({type:Boolean})],Ee.prototype,"readonly",2),E([U("readonly",{waitUntilFirstUpdate:!0})],Ee.prototype,"handleReadonlyChange",1),E([x({type:Object,attribute:!1})],Ee.prototype,"responses",2),E([U("responses",{waitUntilFirstUpdate:!0})],Ee.prototype,"handleResponsesChange",1),E([x({type:String})],Ee.prototype,"xml",1);customElements.define("qti-item",Ee);var Gt=(e,t)=>{class r extends e{_dispatch(){this.dispatchEvent(new CustomEvent(t,{composed:!0,bubbles:!0,detail:+this.getAttribute("index")}))}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this._dispatch)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this._dispatch)}}return r};customElements.define("qti-test-next",class extends Gt(v,"on-next-item"){constructor(){super(...arguments);this.render=()=>_`<slot></slot>`}});customElements.define("qti-test-item",class extends Gt(v,"on-request-item"){constructor(){super(...arguments);this.render=()=>_`<slot></slot>`}});customElements.define("qti-test-prev",class extends Gt(v,"on-prev-item"){constructor(){super(...arguments);this.render=()=>_`<slot></slot>`}});customElements.define("qti-test-check",class extends Gt(v,"on-check-item"){constructor(){super(...arguments);this.render=()=>_`<slot></slot>`}});customElements.define("qti-test-score",class extends Gt(v,"on-score-item"){constructor(){super(...arguments);this.render=()=>_`<slot></slot>`}});customElements.define("qti-test-show-correct",class extends Gt(v,"on-show-correct"){constructor(){super(...arguments);this.render=()=>_`<slot></slot>`}});var Je={ON_ITEM_WAS_FINISHED:"onItemWasFinished",ON_NO_RESPONSE_ON_SUBMIT:"onNoResponseOnSubmit",ON_REQUEST_ITEM:"onRequestItem",ON_TEST_FINISHED:"onTestFinished",ON_ITEM_READY:"onItemReady"},Tl=(r=>(r.linear="linear",r.nonlinear="nonlinear",r))(Tl||{}),gl=(r=>(r.individual="individual",r.simultaneous="simultaneous",r))(gl||{}),ee=class extends v{constructor(){super(...arguments);this.disabled=!1;this.readonly=!1;this._navigationMode="nonlinear";this._submissionMode="simultaneous";this.items=[];this.itemIndex=0;this.provider=new Ke(this,Qe,{log:r=>{console.log(`[my-app] ${r}`)},view:"candidate"})}handleNavigationModeChange(r,s){this.prevButton.style.visibility=s==="linear"?"hidden":"visible"}handleItemIndexChange(r,s){this.emit(Je.ON_REQUEST_ITEM,{detail:s})}set qtiContext(r){this.provider.value.view=r.view,this.provider.updateObservers()}set itemXML(r){this._itemRef&&this._itemRef.remove(),this.insertAdjacentHTML("afterbegin",r)}set manualOutcomeValue(r){this._itemRef.setOutcomeValue("SCORE",r)}set itemResponse(r){this._itemRef&&(this._itemRef.responses=r,this._navigationMode==="linear"&&(this._itemRef.style.filter="blur(5px)",this._itemRef.setAttribute("disabled",""),this.dispatchEvent(new CustomEvent(Je.ON_ITEM_WAS_FINISHED))))}_onCheckItem(){return this._itemRef.validateResponses()?(this._itemRef.processResponse(),!0):!1}_onScoreItem(){this._onCheckItem()&&this._itemRef.processResponse()}_onPrevItem(){this.itemIndex>0&&this.emit(Je.ON_REQUEST_ITEM,{detail:this.itemIndex-1})}_onNextItem(){if(this._navigationMode==="linear"&&!this._itemRef.validateResponses()){this.dispatchEvent(new CustomEvent(Je.ON_NO_RESPONSE_ON_SUBMIT));return}this.itemIndex<this.items.length-1?this.emit(Je.ON_REQUEST_ITEM,{detail:this.itemIndex+1}):this.dispatchEvent(new CustomEvent(Je.ON_TEST_FINISHED))}_onShowCorrect(){this._itemRef.showCorrectResponse()}_onRequestItem({detail:r}){this.emit(Je.ON_REQUEST_ITEM,{detail:r})}_handleSlotchange(r){let s=this.querySelector("qti-assessment-item");s&&(this._itemRef=s,this.disabled&&this._itemRef.setAttribute("disabled",""),this.readonly&&this._itemRef.setAttribute("readonly",""),this.emit(Je.ON_ITEM_READY,{detail:s}))}render(){return _`
|
|
426
|
+
<slot name="qti-item"></slot>
|
|
427
|
+
<slot
|
|
428
|
+
@slotchange=${this._handleSlotchange}
|
|
429
|
+
@on-prev-item=${this._onPrevItem}
|
|
430
|
+
@on-next-item=${this._onNextItem}
|
|
431
|
+
@on-check-item=${this._onCheckItem}
|
|
432
|
+
@on-score-item=${this._onScoreItem}
|
|
433
|
+
@on-request-item=${this._onRequestItem}
|
|
434
|
+
@on-show-correct=${this._onShowCorrect}
|
|
435
|
+
>
|
|
436
|
+
</slot>
|
|
437
|
+
</slot>
|
|
438
|
+
`}emit(r,s){let i=new CustomEvent(r,I({bubbles:!0,cancelable:!1,composed:!0,detail:{}},s));this.dispatchEvent(i)}};E([Ot("qti-test-prev")],ee.prototype,"prevButton",2),E([Ot("qti-test-next")],ee.prototype,"nextButton",2),E([x({type:Boolean})],ee.prototype,"disabled",2),E([x({type:Boolean})],ee.prototype,"readonly",2),E([x({type:String,attribute:"navigation-mode"})],ee.prototype,"_navigationMode",2),E([U("_navigationMode",{waitUntilFirstUpdate:!0})],ee.prototype,"handleNavigationModeChange",1),E([x({type:String,attribute:"submission-mode"})],ee.prototype,"_submissionMode",2),E([x({attribute:!1})],ee.prototype,"items",2),E([x({type:Number,attribute:"item-index",reflect:!0})],ee.prototype,"itemIndex",2),E([U("itemIndex",{waitUntilFirstUpdate:!0})],ee.prototype,"handleItemIndexChange",1),E([Ge()],ee.prototype,"_itemRef",2),ee=E([H("qti-test")],ee);var _l={xml:!1,decodeEntities:!0},vr=_l,Ho={_useHtmlParser2:!0,xmlMode:!0};function Sr(e){return e!=null&&e.xml?typeof e.xml=="boolean"?Ho:I(I({},Ho),e.xml):e!=null?e:void 0}var rt={};me(rt,{contains:()=>Fn,html:()=>nu,merge:()=>l0,parseHTML:()=>u0,root:()=>c0,text:()=>tt,xml:()=>au});var Fe={};me(Fe,{DocumentPosition:()=>he,append:()=>Gl,appendChild:()=>Yl,compareDocumentPosition:()=>tu,existsOne:()=>Zo,filter:()=>wr,find:()=>Hr,findAll:()=>Ql,findOne:()=>Js,findOneChild:()=>Kl,getAttributeValue:()=>Fl,getChildren:()=>zt,getElementById:()=>Jl,getElements:()=>Zl,getElementsByTagName:()=>Ct,getElementsByTagType:()=>e0,getFeed:()=>Un,getInnerHTML:()=>Ul,getName:()=>$l,getOuterHTML:()=>jo,getParent:()=>zo,getSiblings:()=>Bn,getText:()=>js,hasAttrib:()=>ql,hasChildren:()=>V,innerText:()=>kr,isCDATA:()=>Xt,isComment:()=>xt,isDocument:()=>be,isTag:()=>L,isText:()=>ne,nextElementSibling:()=>zs,prepend:()=>Wl,prependChild:()=>Xl,prevElementSibling:()=>Zs,removeElement:()=>Ue,removeSubsets:()=>t0,replaceElement:()=>Vl,testElement:()=>zl,textContent:()=>Be,uniqueSort:()=>et});var Vs={};me(Vs,{CDATA:()=>In,Comment:()=>Nn,Directive:()=>Cn,Doctype:()=>Rn,ElementType:()=>k,Root:()=>An,Script:()=>yn,Style:()=>vn,Tag:()=>Sn,Text:()=>xn,isTag:()=>_n});var k;(function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"})(k||(k={}));function _n(e){return e.type===k.Tag||e.type===k.Script||e.type===k.Style}var An=k.Root,xn=k.Text,Cn=k.Directive,Nn=k.Comment,yn=k.Script,vn=k.Style,Sn=k.Tag,In=k.CDATA,Rn=k.Doctype;var Ys=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(t){this.parent=t}get previousSibling(){return this.prev}set previousSibling(t){this.prev=t}get nextSibling(){return this.next}set nextSibling(t){this.next=t}cloneNode(t=!1){return Dr(this,t)}},Ir=class extends Ys{constructor(t){super(),this.data=t}get nodeValue(){return this.data}set nodeValue(t){this.data=t}},Ie=class extends Ir{constructor(){super(...arguments),this.type=k.Text}get nodeType(){return 3}},gt=class extends Ir{constructor(){super(...arguments),this.type=k.Comment}get nodeType(){return 8}},_t=class extends Ir{constructor(t,r){super(r),this.name=t,this.type=k.Directive}get nodeType(){return 1}},Rr=class extends Ys{constructor(t){super(),this.children=t}get firstChild(){var t;return(t=this.children[0])!==null&&t!==void 0?t:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(t){this.children=t}},Lr=class extends Rr{constructor(){super(...arguments),this.type=k.CDATA}get nodeType(){return 4}},ce=class extends Rr{constructor(){super(...arguments),this.type=k.Root}get nodeType(){return 9}},At=class extends Rr{constructor(t,r,s=[],i=t==="script"?k.Script:t==="style"?k.Style:k.Tag){super(s),this.name=t,this.attribs=r,this.type=i}get nodeType(){return 1}get tagName(){return this.name}set tagName(t){this.name=t}get attributes(){return Object.keys(this.attribs).map(t=>{var r,s;return{name:t,value:this.attribs[t],namespace:(r=this["x-attribsNamespace"])===null||r===void 0?void 0:r[t],prefix:(s=this["x-attribsPrefix"])===null||s===void 0?void 0:s[t]}})}};function L(e){return _n(e)}function Xt(e){return e.type===k.CDATA}function ne(e){return e.type===k.Text}function xt(e){return e.type===k.Comment}function Gs(e){return e.type===k.Directive}function be(e){return e.type===k.Root}function V(e){return Object.prototype.hasOwnProperty.call(e,"children")}function Dr(e,t=!1){let r;if(ne(e))r=new Ie(e.data);else if(xt(e))r=new gt(e.data);else if(L(e)){let s=t?Ln(e.children):[],i=new At(e.name,I({},e.attribs),s);s.forEach(a=>a.parent=i),e.namespace!=null&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=I({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=I({},e["x-attribsPrefix"])),r=i}else if(Xt(e)){let s=t?Ln(e.children):[],i=new Lr(s);s.forEach(a=>a.parent=i),r=i}else if(be(e)){let s=t?Ln(e.children):[],i=new ce(s);s.forEach(a=>a.parent=i),e["x-mode"]&&(i["x-mode"]=e["x-mode"]),r=i}else if(Gs(e)){let s=new _t(e.name,e.data);e["x-name"]!=null&&(s["x-name"]=e["x-name"],s["x-publicId"]=e["x-publicId"],s["x-systemId"]=e["x-systemId"]),r=s}else throw new Error(`Not implemented yet: ${e.type}`);return r.startIndex=e.startIndex,r.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(r.sourceCodeLocation=e.sourceCodeLocation),r}function Ln(e){let t=e.map(r=>Dr(r,!0));for(let r=1;r<t.length;r++)t[r].prev=t[r-1],t[r-1].next=t[r];return t}var Bo={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},Wt=class{constructor(t,r,s){this.dom=[],this.root=new ce(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof r=="function"&&(s=r,r=Bo),typeof t=="object"&&(r=t,t=void 0),this.callback=t!=null?t:null,this.options=r!=null?r:Bo,this.elementCB=s!=null?s:null}onparserinit(t){this.parser=t}onreset(){this.dom=[],this.root=new ce(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null}onend(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))}onerror(t){this.handleCallback(t)}onclosetag(){this.lastNode=null;let t=this.tagStack.pop();this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(t)}onopentag(t,r){let s=this.options.xmlMode?k.Tag:void 0,i=new At(t,r,void 0,s);this.addNode(i),this.tagStack.push(i)}ontext(t){let{lastNode:r}=this;if(r&&r.type===k.Text)r.data+=t,this.options.withEndIndices&&(r.endIndex=this.parser.endIndex);else{let s=new Ie(t);this.addNode(s),this.lastNode=s}}oncomment(t){if(this.lastNode&&this.lastNode.type===k.Comment){this.lastNode.data+=t;return}let r=new gt(t);this.addNode(r),this.lastNode=r}oncommentend(){this.lastNode=null}oncdatastart(){let t=new Ie(""),r=new Lr([t]);this.addNode(r),t.parent=r,this.lastNode=t}oncdataend(){this.lastNode=null}onprocessinginstruction(t,r){let s=new _t(t,r);this.addNode(s)}handleCallback(t){if(typeof this.callback=="function")this.callback(t,this.dom);else if(t)throw t}addNode(t){let r=this.tagStack[this.tagStack.length-1],s=r.children[r.children.length-1];this.options.withStartIndices&&(t.startIndex=this.parser.startIndex),this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),r.children.push(t),s&&(t.prev=s,s.next=t),t.parent=r,this.lastNode=null}};var de=new Uint16Array('\u1D41<\xD5\u0131\u028A\u049D\u057B\u05D0\u0675\u06DE\u07A2\u07D6\u080F\u0A4A\u0A91\u0DA1\u0E6D\u0F09\u0F26\u10CA\u1228\u12E1\u1415\u149D\u14C3\u14DF\u1525\0\0\0\0\0\0\u156B\u16CD\u198D\u1C12\u1DDD\u1F7E\u2060\u21B0\u228D\u23C0\u23FB\u2442\u2824\u2912\u2D08\u2E48\u2FCE\u3016\u32BA\u3639\u37AC\u38FE\u3A28\u3A71\u3AE0\u3B2E\u0800EMabcfglmnoprstu\\bfms\x7F\x84\x8B\x90\x95\x98\xA6\xB3\xB9\xC8\xCFlig\u803B\xC6\u40C6P\u803B&\u4026cute\u803B\xC1\u40C1reve;\u4102\u0100iyx}rc\u803B\xC2\u40C2;\u4410r;\uC000\u{1D504}rave\u803B\xC0\u40C0pha;\u4391acr;\u4100d;\u6A53\u0100gp\x9D\xA1on;\u4104f;\uC000\u{1D538}plyFunction;\u6061ing\u803B\xC5\u40C5\u0100cs\xBE\xC3r;\uC000\u{1D49C}ign;\u6254ilde\u803B\xC3\u40C3ml\u803B\xC4\u40C4\u0400aceforsu\xE5\xFB\xFE\u0117\u011C\u0122\u0127\u012A\u0100cr\xEA\xF2kslash;\u6216\u0176\xF6\xF8;\u6AE7ed;\u6306y;\u4411\u0180crt\u0105\u010B\u0114ause;\u6235noullis;\u612Ca;\u4392r;\uC000\u{1D505}pf;\uC000\u{1D539}eve;\u42D8c\xF2\u0113mpeq;\u624E\u0700HOacdefhilorsu\u014D\u0151\u0156\u0180\u019E\u01A2\u01B5\u01B7\u01BA\u01DC\u0215\u0273\u0278\u027Ecy;\u4427PY\u803B\xA9\u40A9\u0180cpy\u015D\u0162\u017Aute;\u4106\u0100;i\u0167\u0168\u62D2talDifferentialD;\u6145leys;\u612D\u0200aeio\u0189\u018E\u0194\u0198ron;\u410Cdil\u803B\xC7\u40C7rc;\u4108nint;\u6230ot;\u410A\u0100dn\u01A7\u01ADilla;\u40B8terDot;\u40B7\xF2\u017Fi;\u43A7rcle\u0200DMPT\u01C7\u01CB\u01D1\u01D6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01E2\u01F8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020FoubleQuote;\u601Duote;\u6019\u0200lnpu\u021E\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6A74\u0180git\u022F\u0236\u023Aruent;\u6261nt;\u622FourIntegral;\u622E\u0100fr\u024C\u024E;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6A2Fcr;\uC000\u{1D49E}p\u0100;C\u0284\u0285\u62D3ap;\u624D\u0580DJSZacefios\u02A0\u02AC\u02B0\u02B4\u02B8\u02CB\u02D7\u02E1\u02E6\u0333\u048D\u0100;o\u0179\u02A5trahd;\u6911cy;\u4402cy;\u4405cy;\u440F\u0180grs\u02BF\u02C4\u02C7ger;\u6021r;\u61A1hv;\u6AE4\u0100ay\u02D0\u02D5ron;\u410E;\u4414l\u0100;t\u02DD\u02DE\u6207a;\u4394r;\uC000\u{1D507}\u0100af\u02EB\u0327\u0100cm\u02F0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031Ccute;\u40B4o\u0174\u030B\u030D;\u42D9bleAcute;\u42DDrave;\u4060ilde;\u42DCond;\u62C4ferentialD;\u6146\u0470\u033D\0\0\0\u0342\u0354\0\u0405f;\uC000\u{1D53B}\u0180;DE\u0348\u0349\u034D\u40A8ot;\u60DCqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03CF\u03E2\u03F8ontourIntegra\xEC\u0239o\u0274\u0379\0\0\u037B\xBB\u0349nArrow;\u61D3\u0100eo\u0387\u03A4ft\u0180ART\u0390\u0396\u03A1rrow;\u61D0ightArrow;\u61D4e\xE5\u02CAng\u0100LR\u03AB\u03C4eft\u0100AR\u03B3\u03B9rrow;\u67F8ightArrow;\u67FAightArrow;\u67F9ight\u0100AT\u03D8\u03DErrow;\u61D2ee;\u62A8p\u0241\u03E9\0\0\u03EFrrow;\u61D1ownArrow;\u61D5erticalBar;\u6225n\u0300ABLRTa\u0412\u042A\u0430\u045E\u047F\u037Crrow\u0180;BU\u041D\u041E\u0422\u6193ar;\u6913pArrow;\u61F5reve;\u4311eft\u02D2\u043A\0\u0446\0\u0450ightVector;\u6950eeVector;\u695Eector\u0100;B\u0459\u045A\u61BDar;\u6956ight\u01D4\u0467\0\u0471eeVector;\u695Fector\u0100;B\u047A\u047B\u61C1ar;\u6957ee\u0100;A\u0486\u0487\u62A4rrow;\u61A7\u0100ct\u0492\u0497r;\uC000\u{1D49F}rok;\u4110\u0800NTacdfglmopqstux\u04BD\u04C0\u04C4\u04CB\u04DE\u04E2\u04E7\u04EE\u04F5\u0521\u052F\u0536\u0552\u055D\u0560\u0565G;\u414AH\u803B\xD0\u40D0cute\u803B\xC9\u40C9\u0180aiy\u04D2\u04D7\u04DCron;\u411Arc\u803B\xCA\u40CA;\u442Dot;\u4116r;\uC000\u{1D508}rave\u803B\xC8\u40C8ement;\u6208\u0100ap\u04FA\u04FEcr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65FBerySmallSquare;\u65AB\u0100gp\u0526\u052Aon;\u4118f;\uC000\u{1D53C}silon;\u4395u\u0100ai\u053C\u0549l\u0100;T\u0542\u0543\u6A75ilde;\u6242librium;\u61CC\u0100ci\u0557\u055Ar;\u6130m;\u6A73a;\u4397ml\u803B\xCB\u40CB\u0100ip\u056A\u056Fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058D\u05B2\u05CCy;\u4424r;\uC000\u{1D509}lled\u0253\u0597\0\0\u05A3mallSquare;\u65FCerySmallSquare;\u65AA\u0370\u05BA\0\u05BF\0\0\u05C4f;\uC000\u{1D53D}All;\u6200riertrf;\u6131c\xF2\u05CB\u0600JTabcdfgorst\u05E8\u05EC\u05EF\u05FA\u0600\u0612\u0616\u061B\u061D\u0623\u066C\u0672cy;\u4403\u803B>\u403Emma\u0100;d\u05F7\u05F8\u4393;\u43DCreve;\u411E\u0180eiy\u0607\u060C\u0610dil;\u4122rc;\u411C;\u4413ot;\u4120r;\uC000\u{1D50A};\u62D9pf;\uC000\u{1D53E}eater\u0300EFGLST\u0635\u0644\u064E\u0656\u065B\u0666qual\u0100;L\u063E\u063F\u6265ess;\u62DBullEqual;\u6267reater;\u6AA2ess;\u6277lantEqual;\u6A7Eilde;\u6273cr;\uC000\u{1D4A2};\u626B\u0400Aacfiosu\u0685\u068B\u0696\u069B\u069E\u06AA\u06BE\u06CARDcy;\u442A\u0100ct\u0690\u0694ek;\u42C7;\u405Eirc;\u4124r;\u610ClbertSpace;\u610B\u01F0\u06AF\0\u06B2f;\u610DizontalLine;\u6500\u0100ct\u06C3\u06C5\xF2\u06A9rok;\u4126mp\u0144\u06D0\u06D8ownHum\xF0\u012Fqual;\u624F\u0700EJOacdfgmnostu\u06FA\u06FE\u0703\u0707\u070E\u071A\u071E\u0721\u0728\u0744\u0778\u078B\u078F\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803B\xCD\u40CD\u0100iy\u0713\u0718rc\u803B\xCE\u40CE;\u4418ot;\u4130r;\u6111rave\u803B\xCC\u40CC\u0180;ap\u0720\u072F\u073F\u0100cg\u0734\u0737r;\u412AinaryI;\u6148lie\xF3\u03DD\u01F4\u0749\0\u0762\u0100;e\u074D\u074E\u622C\u0100gr\u0753\u0758ral;\u622Bsection;\u62C2isible\u0100CT\u076C\u0772omma;\u6063imes;\u6062\u0180gpt\u077F\u0783\u0788on;\u412Ef;\uC000\u{1D540}a;\u4399cr;\u6110ilde;\u4128\u01EB\u079A\0\u079Ecy;\u4406l\u803B\xCF\u40CF\u0280cfosu\u07AC\u07B7\u07BC\u07C2\u07D0\u0100iy\u07B1\u07B5rc;\u4134;\u4419r;\uC000\u{1D50D}pf;\uC000\u{1D541}\u01E3\u07C7\0\u07CCr;\uC000\u{1D4A5}rcy;\u4408kcy;\u4404\u0380HJacfos\u07E4\u07E8\u07EC\u07F1\u07FD\u0802\u0808cy;\u4425cy;\u440Cppa;\u439A\u0100ey\u07F6\u07FBdil;\u4136;\u441Ar;\uC000\u{1D50E}pf;\uC000\u{1D542}cr;\uC000\u{1D4A6}\u0580JTaceflmost\u0825\u0829\u082C\u0850\u0863\u09B3\u09B8\u09C7\u09CD\u0A37\u0A47cy;\u4409\u803B<\u403C\u0280cmnpr\u0837\u083C\u0841\u0844\u084Dute;\u4139bda;\u439Bg;\u67EAlacetrf;\u6112r;\u619E\u0180aey\u0857\u085C\u0861ron;\u413Ddil;\u413B;\u441B\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087E\u08A9\u08B1\u08E0\u08E6\u08FC\u092F\u095B\u0390\u096A\u0100nr\u0883\u088FgleBracket;\u67E8row\u0180;BR\u0899\u089A\u089E\u6190ar;\u61E4ightArrow;\u61C6eiling;\u6308o\u01F5\u08B7\0\u08C3bleBracket;\u67E6n\u01D4\u08C8\0\u08D2eeVector;\u6961ector\u0100;B\u08DB\u08DC\u61C3ar;\u6959loor;\u630Aight\u0100AV\u08EF\u08F5rrow;\u6194ector;\u694E\u0100er\u0901\u0917e\u0180;AV\u0909\u090A\u0910\u62A3rrow;\u61A4ector;\u695Aiangle\u0180;BE\u0924\u0925\u0929\u62B2ar;\u69CFqual;\u62B4p\u0180DTV\u0937\u0942\u094CownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61BFar;\u6958ector\u0100;B\u0965\u0966\u61BCar;\u6952ight\xE1\u039Cs\u0300EFGLST\u097E\u098B\u0995\u099D\u09A2\u09ADqualGreater;\u62DAullEqual;\u6266reater;\u6276ess;\u6AA1lantEqual;\u6A7Dilde;\u6272r;\uC000\u{1D50F}\u0100;e\u09BD\u09BE\u62D8ftarrow;\u61DAidot;\u413F\u0180npw\u09D4\u0A16\u0A1Bg\u0200LRlr\u09DE\u09F7\u0A02\u0A10eft\u0100AR\u09E6\u09ECrrow;\u67F5ightArrow;\u67F7ightArrow;\u67F6eft\u0100ar\u03B3\u0A0Aight\xE1\u03BFight\xE1\u03CAf;\uC000\u{1D543}er\u0100LR\u0A22\u0A2CeftArrow;\u6199ightArrow;\u6198\u0180cht\u0A3E\u0A40\u0A42\xF2\u084C;\u61B0rok;\u4141;\u626A\u0400acefiosu\u0A5A\u0A5D\u0A60\u0A77\u0A7C\u0A85\u0A8B\u0A8Ep;\u6905y;\u441C\u0100dl\u0A65\u0A6FiumSpace;\u605Flintrf;\u6133r;\uC000\u{1D510}nusPlus;\u6213pf;\uC000\u{1D544}c\xF2\u0A76;\u439C\u0480Jacefostu\u0AA3\u0AA7\u0AAD\u0AC0\u0B14\u0B19\u0D91\u0D97\u0D9Ecy;\u440Acute;\u4143\u0180aey\u0AB4\u0AB9\u0ABEron;\u4147dil;\u4145;\u441D\u0180gsw\u0AC7\u0AF0\u0B0Eative\u0180MTV\u0AD3\u0ADF\u0AE8ediumSpace;\u600Bhi\u0100cn\u0AE6\u0AD8\xEB\u0AD9eryThi\xEE\u0AD9ted\u0100GL\u0AF8\u0B06reaterGreate\xF2\u0673essLes\xF3\u0A48Line;\u400Ar;\uC000\u{1D511}\u0200Bnpt\u0B22\u0B28\u0B37\u0B3Areak;\u6060BreakingSpace;\u40A0f;\u6115\u0680;CDEGHLNPRSTV\u0B55\u0B56\u0B6A\u0B7C\u0BA1\u0BEB\u0C04\u0C5E\u0C84\u0CA6\u0CD8\u0D61\u0D85\u6AEC\u0100ou\u0B5B\u0B64ngruent;\u6262pCap;\u626DoubleVerticalBar;\u6226\u0180lqx\u0B83\u0B8A\u0B9Bement;\u6209ual\u0100;T\u0B92\u0B93\u6260ilde;\uC000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0BB6\u0BB7\u0BBD\u0BC9\u0BD3\u0BD8\u0BE5\u626Fqual;\u6271ullEqual;\uC000\u2267\u0338reater;\uC000\u226B\u0338ess;\u6279lantEqual;\uC000\u2A7E\u0338ilde;\u6275ump\u0144\u0BF2\u0BFDownHump;\uC000\u224E\u0338qual;\uC000\u224F\u0338e\u0100fs\u0C0A\u0C27tTriangle\u0180;BE\u0C1A\u0C1B\u0C21\u62EAar;\uC000\u29CF\u0338qual;\u62ECs\u0300;EGLST\u0C35\u0C36\u0C3C\u0C44\u0C4B\u0C58\u626Equal;\u6270reater;\u6278ess;\uC000\u226A\u0338lantEqual;\uC000\u2A7D\u0338ilde;\u6274ested\u0100GL\u0C68\u0C79reaterGreater;\uC000\u2AA2\u0338essLess;\uC000\u2AA1\u0338recedes\u0180;ES\u0C92\u0C93\u0C9B\u6280qual;\uC000\u2AAF\u0338lantEqual;\u62E0\u0100ei\u0CAB\u0CB9verseElement;\u620CghtTriangle\u0180;BE\u0CCB\u0CCC\u0CD2\u62EBar;\uC000\u29D0\u0338qual;\u62ED\u0100qu\u0CDD\u0D0CuareSu\u0100bp\u0CE8\u0CF9set\u0100;E\u0CF0\u0CF3\uC000\u228F\u0338qual;\u62E2erset\u0100;E\u0D03\u0D06\uC000\u2290\u0338qual;\u62E3\u0180bcp\u0D13\u0D24\u0D4Eset\u0100;E\u0D1B\u0D1E\uC000\u2282\u20D2qual;\u6288ceeds\u0200;EST\u0D32\u0D33\u0D3B\u0D46\u6281qual;\uC000\u2AB0\u0338lantEqual;\u62E1ilde;\uC000\u227F\u0338erset\u0100;E\u0D58\u0D5B\uC000\u2283\u20D2qual;\u6289ilde\u0200;EFT\u0D6E\u0D6F\u0D75\u0D7F\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uC000\u{1D4A9}ilde\u803B\xD1\u40D1;\u439D\u0700Eacdfgmoprstuv\u0DBD\u0DC2\u0DC9\u0DD5\u0DDB\u0DE0\u0DE7\u0DFC\u0E02\u0E20\u0E22\u0E32\u0E3F\u0E44lig;\u4152cute\u803B\xD3\u40D3\u0100iy\u0DCE\u0DD3rc\u803B\xD4\u40D4;\u441Eblac;\u4150r;\uC000\u{1D512}rave\u803B\xD2\u40D2\u0180aei\u0DEE\u0DF2\u0DF6cr;\u414Cga;\u43A9cron;\u439Fpf;\uC000\u{1D546}enCurly\u0100DQ\u0E0E\u0E1AoubleQuote;\u601Cuote;\u6018;\u6A54\u0100cl\u0E27\u0E2Cr;\uC000\u{1D4AA}ash\u803B\xD8\u40D8i\u016C\u0E37\u0E3Cde\u803B\xD5\u40D5es;\u6A37ml\u803B\xD6\u40D6er\u0100BP\u0E4B\u0E60\u0100ar\u0E50\u0E53r;\u603Eac\u0100ek\u0E5A\u0E5C;\u63DEet;\u63B4arenthesis;\u63DC\u0480acfhilors\u0E7F\u0E87\u0E8A\u0E8F\u0E92\u0E94\u0E9D\u0EB0\u0EFCrtialD;\u6202y;\u441Fr;\uC000\u{1D513}i;\u43A6;\u43A0usMinus;\u40B1\u0100ip\u0EA2\u0EADncareplan\xE5\u069Df;\u6119\u0200;eio\u0EB9\u0EBA\u0EE0\u0EE4\u6ABBcedes\u0200;EST\u0EC8\u0EC9\u0ECF\u0EDA\u627Aqual;\u6AAFlantEqual;\u627Cilde;\u627Eme;\u6033\u0100dp\u0EE9\u0EEEuct;\u620Fortion\u0100;a\u0225\u0EF9l;\u621D\u0100ci\u0F01\u0F06r;\uC000\u{1D4AB};\u43A8\u0200Ufos\u0F11\u0F16\u0F1B\u0F1FOT\u803B"\u4022r;\uC000\u{1D514}pf;\u611Acr;\uC000\u{1D4AC}\u0600BEacefhiorsu\u0F3E\u0F43\u0F47\u0F60\u0F73\u0FA7\u0FAA\u0FAD\u1096\u10A9\u10B4\u10BEarr;\u6910G\u803B\xAE\u40AE\u0180cnr\u0F4E\u0F53\u0F56ute;\u4154g;\u67EBr\u0100;t\u0F5C\u0F5D\u61A0l;\u6916\u0180aey\u0F67\u0F6C\u0F71ron;\u4158dil;\u4156;\u4420\u0100;v\u0F78\u0F79\u611Cerse\u0100EU\u0F82\u0F99\u0100lq\u0F87\u0F8Eement;\u620Builibrium;\u61CBpEquilibrium;\u696Fr\xBB\u0F79o;\u43A1ght\u0400ACDFTUVa\u0FC1\u0FEB\u0FF3\u1022\u1028\u105B\u1087\u03D8\u0100nr\u0FC6\u0FD2gleBracket;\u67E9row\u0180;BL\u0FDC\u0FDD\u0FE1\u6192ar;\u61E5eftArrow;\u61C4eiling;\u6309o\u01F5\u0FF9\0\u1005bleBracket;\u67E7n\u01D4\u100A\0\u1014eeVector;\u695Dector\u0100;B\u101D\u101E\u61C2ar;\u6955loor;\u630B\u0100er\u102D\u1043e\u0180;AV\u1035\u1036\u103C\u62A2rrow;\u61A6ector;\u695Biangle\u0180;BE\u1050\u1051\u1055\u62B3ar;\u69D0qual;\u62B5p\u0180DTV\u1063\u106E\u1078ownVector;\u694FeeVector;\u695Cector\u0100;B\u1082\u1083\u61BEar;\u6954ector\u0100;B\u1091\u1092\u61C0ar;\u6953\u0100pu\u109B\u109Ef;\u611DndImplies;\u6970ightarrow;\u61DB\u0100ch\u10B9\u10BCr;\u611B;\u61B1leDelayed;\u69F4\u0680HOacfhimoqstu\u10E4\u10F1\u10F7\u10FD\u1119\u111E\u1151\u1156\u1161\u1167\u11B5\u11BB\u11BF\u0100Cc\u10E9\u10EEHcy;\u4429y;\u4428FTcy;\u442Ccute;\u415A\u0280;aeiy\u1108\u1109\u110E\u1113\u1117\u6ABCron;\u4160dil;\u415Erc;\u415C;\u4421r;\uC000\u{1D516}ort\u0200DLRU\u112A\u1134\u113E\u1149ownArrow\xBB\u041EeftArrow\xBB\u089AightArrow\xBB\u0FDDpArrow;\u6191gma;\u43A3allCircle;\u6218pf;\uC000\u{1D54A}\u0272\u116D\0\0\u1170t;\u621Aare\u0200;ISU\u117B\u117C\u1189\u11AF\u65A1ntersection;\u6293u\u0100bp\u118F\u119Eset\u0100;E\u1197\u1198\u628Fqual;\u6291erset\u0100;E\u11A8\u11A9\u6290qual;\u6292nion;\u6294cr;\uC000\u{1D4AE}ar;\u62C6\u0200bcmp\u11C8\u11DB\u1209\u120B\u0100;s\u11CD\u11CE\u62D0et\u0100;E\u11CD\u11D5qual;\u6286\u0100ch\u11E0\u1205eeds\u0200;EST\u11ED\u11EE\u11F4\u11FF\u627Bqual;\u6AB0lantEqual;\u627Dilde;\u627FTh\xE1\u0F8C;\u6211\u0180;es\u1212\u1213\u1223\u62D1rset\u0100;E\u121C\u121D\u6283qual;\u6287et\xBB\u1213\u0580HRSacfhiors\u123E\u1244\u1249\u1255\u125E\u1271\u1276\u129F\u12C2\u12C8\u12D1ORN\u803B\xDE\u40DEADE;\u6122\u0100Hc\u124E\u1252cy;\u440By;\u4426\u0100bu\u125A\u125C;\u4009;\u43A4\u0180aey\u1265\u126A\u126Fron;\u4164dil;\u4162;\u4422r;\uC000\u{1D517}\u0100ei\u127B\u1289\u01F2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128E\u1298kSpace;\uC000\u205F\u200ASpace;\u6009lde\u0200;EFT\u12AB\u12AC\u12B2\u12BC\u623Cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uC000\u{1D54B}ipleDot;\u60DB\u0100ct\u12D6\u12DBr;\uC000\u{1D4AF}rok;\u4166\u0AE1\u12F7\u130E\u131A\u1326\0\u132C\u1331\0\0\0\0\0\u1338\u133D\u1377\u1385\0\u13FF\u1404\u140A\u1410\u0100cr\u12FB\u1301ute\u803B\xDA\u40DAr\u0100;o\u1307\u1308\u619Fcir;\u6949r\u01E3\u1313\0\u1316y;\u440Eve;\u416C\u0100iy\u131E\u1323rc\u803B\xDB\u40DB;\u4423blac;\u4170r;\uC000\u{1D518}rave\u803B\xD9\u40D9acr;\u416A\u0100di\u1341\u1369er\u0100BP\u1348\u135D\u0100ar\u134D\u1350r;\u405Fac\u0100ek\u1357\u1359;\u63DFet;\u63B5arenthesis;\u63DDon\u0100;P\u1370\u1371\u62C3lus;\u628E\u0100gp\u137B\u137Fon;\u4172f;\uC000\u{1D54C}\u0400ADETadps\u1395\u13AE\u13B8\u13C4\u03E8\u13D2\u13D7\u13F3rrow\u0180;BD\u1150\u13A0\u13A4ar;\u6912ownArrow;\u61C5ownArrow;\u6195quilibrium;\u696Eee\u0100;A\u13CB\u13CC\u62A5rrow;\u61A5own\xE1\u03F3er\u0100LR\u13DE\u13E8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13F9\u13FA\u43D2on;\u43A5ing;\u416Ecr;\uC000\u{1D4B0}ilde;\u4168ml\u803B\xDC\u40DC\u0480Dbcdefosv\u1427\u142C\u1430\u1433\u143E\u1485\u148A\u1490\u1496ash;\u62ABar;\u6AEBy;\u4412ash\u0100;l\u143B\u143C\u62A9;\u6AE6\u0100er\u1443\u1445;\u62C1\u0180bty\u144C\u1450\u147Aar;\u6016\u0100;i\u144F\u1455cal\u0200BLST\u1461\u1465\u146A\u1474ar;\u6223ine;\u407Ceparator;\u6758ilde;\u6240ThinSpace;\u600Ar;\uC000\u{1D519}pf;\uC000\u{1D54D}cr;\uC000\u{1D4B1}dash;\u62AA\u0280cefos\u14A7\u14AC\u14B1\u14B6\u14BCirc;\u4174dge;\u62C0r;\uC000\u{1D51A}pf;\uC000\u{1D54E}cr;\uC000\u{1D4B2}\u0200fios\u14CB\u14D0\u14D2\u14D8r;\uC000\u{1D51B};\u439Epf;\uC000\u{1D54F}cr;\uC000\u{1D4B3}\u0480AIUacfosu\u14F1\u14F5\u14F9\u14FD\u1504\u150F\u1514\u151A\u1520cy;\u442Fcy;\u4407cy;\u442Ecute\u803B\xDD\u40DD\u0100iy\u1509\u150Drc;\u4176;\u442Br;\uC000\u{1D51C}pf;\uC000\u{1D550}cr;\uC000\u{1D4B4}ml;\u4178\u0400Hacdefos\u1535\u1539\u153F\u154B\u154F\u155D\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417D;\u4417ot;\u417B\u01F2\u1554\0\u155BoWidt\xE8\u0AD9a;\u4396r;\u6128pf;\u6124cr;\uC000\u{1D4B5}\u0BE1\u1583\u158A\u1590\0\u15B0\u15B6\u15BF\0\0\0\0\u15C6\u15DB\u15EB\u165F\u166D\0\u1695\u169B\u16B2\u16B9\0\u16BEcute\u803B\xE1\u40E1reve;\u4103\u0300;Ediuy\u159C\u159D\u15A1\u15A3\u15A8\u15AD\u623E;\uC000\u223E\u0333;\u623Frc\u803B\xE2\u40E2te\u80BB\xB4\u0306;\u4430lig\u803B\xE6\u40E6\u0100;r\xB2\u15BA;\uC000\u{1D51E}rave\u803B\xE0\u40E0\u0100ep\u15CA\u15D6\u0100fp\u15CF\u15D4sym;\u6135\xE8\u15D3ha;\u43B1\u0100ap\u15DFc\u0100cl\u15E4\u15E7r;\u4101g;\u6A3F\u0264\u15F0\0\0\u160A\u0280;adsv\u15FA\u15FB\u15FF\u1601\u1607\u6227nd;\u6A55;\u6A5Clope;\u6A58;\u6A5A\u0380;elmrsz\u1618\u1619\u161B\u161E\u163F\u164F\u1659\u6220;\u69A4e\xBB\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163A\u163C\u163E;\u69A8;\u69A9;\u69AA;\u69AB;\u69AC;\u69AD;\u69AE;\u69AFt\u0100;v\u1645\u1646\u621Fb\u0100;d\u164C\u164D\u62BE;\u699D\u0100pt\u1654\u1657h;\u6222\xBB\xB9arr;\u637C\u0100gp\u1663\u1667on;\u4105f;\uC000\u{1D552}\u0380;Eaeiop\u12C1\u167B\u167D\u1682\u1684\u1687\u168A;\u6A70cir;\u6A6F;\u624Ad;\u624Bs;\u4027rox\u0100;e\u12C1\u1692\xF1\u1683ing\u803B\xE5\u40E5\u0180cty\u16A1\u16A6\u16A8r;\uC000\u{1D4B6};\u402Amp\u0100;e\u12C1\u16AF\xF1\u0288ilde\u803B\xE3\u40E3ml\u803B\xE4\u40E4\u0100ci\u16C2\u16C8onin\xF4\u0272nt;\u6A11\u0800Nabcdefiklnoprsu\u16ED\u16F1\u1730\u173C\u1743\u1748\u1778\u177D\u17E0\u17E6\u1839\u1850\u170D\u193D\u1948\u1970ot;\u6AED\u0100cr\u16F6\u171Ek\u0200ceps\u1700\u1705\u170D\u1713ong;\u624Cpsilon;\u43F6rime;\u6035im\u0100;e\u171A\u171B\u623Dq;\u62CD\u0176\u1722\u1726ee;\u62BDed\u0100;g\u172C\u172D\u6305e\xBB\u172Drk\u0100;t\u135C\u1737brk;\u63B6\u0100oy\u1701\u1741;\u4431quo;\u601E\u0280cmprt\u1753\u175B\u1761\u1764\u1768aus\u0100;e\u010A\u0109ptyv;\u69B0s\xE9\u170Cno\xF5\u0113\u0180ahw\u176F\u1771\u1773;\u43B2;\u6136een;\u626Cr;\uC000\u{1D51F}g\u0380costuvw\u178D\u179D\u17B3\u17C1\u17D5\u17DB\u17DE\u0180aiu\u1794\u1796\u179A\xF0\u0760rc;\u65EFp\xBB\u1371\u0180dpt\u17A4\u17A8\u17ADot;\u6A00lus;\u6A01imes;\u6A02\u0271\u17B9\0\0\u17BEcup;\u6A06ar;\u6605riangle\u0100du\u17CD\u17D2own;\u65BDp;\u65B3plus;\u6A04e\xE5\u1444\xE5\u14ADarow;\u690D\u0180ako\u17ED\u1826\u1835\u0100cn\u17F2\u1823k\u0180lst\u17FA\u05AB\u1802ozenge;\u69EBriangle\u0200;dlr\u1812\u1813\u1818\u181D\u65B4own;\u65BEeft;\u65C2ight;\u65B8k;\u6423\u01B1\u182B\0\u1833\u01B2\u182F\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183E\u184D\u0100;q\u1843\u1846\uC000=\u20E5uiv;\uC000\u2261\u20E5t;\u6310\u0200ptwx\u1859\u185E\u1867\u186Cf;\uC000\u{1D553}\u0100;t\u13CB\u1863om\xBB\u13CCtie;\u62C8\u0600DHUVbdhmptuv\u1885\u1896\u18AA\u18BB\u18D7\u18DB\u18EC\u18FF\u1905\u190A\u1910\u1921\u0200LRlr\u188E\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18A1\u18A2\u18A4\u18A6\u18A8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18B3\u18B5\u18B7\u18B9;\u655D;\u655A;\u655C;\u6559\u0380;HLRhlr\u18CA\u18CB\u18CD\u18CF\u18D1\u18D3\u18D5\u6551;\u656C;\u6563;\u6560;\u656B;\u6562;\u655Fox;\u69C9\u0200LRlr\u18E4\u18E6\u18E8\u18EA;\u6555;\u6552;\u6510;\u650C\u0280;DUdu\u06BD\u18F7\u18F9\u18FB\u18FD;\u6565;\u6568;\u652C;\u6534inus;\u629Flus;\u629Eimes;\u62A0\u0200LRlr\u1919\u191B\u191D\u191F;\u655B;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193B\u6502;\u656A;\u6561;\u655E;\u653C;\u6524;\u651C\u0100ev\u0123\u1942bar\u803B\xA6\u40A6\u0200ceio\u1951\u1956\u195A\u1960r;\uC000\u{1D4B7}mi;\u604Fm\u0100;e\u171A\u171Cl\u0180;bh\u1968\u1969\u196B\u405C;\u69C5sub;\u67C8\u016C\u1974\u197El\u0100;e\u1979\u197A\u6022t\xBB\u197Ap\u0180;Ee\u012F\u1985\u1987;\u6AAE\u0100;q\u06DC\u06DB\u0CE1\u19A7\0\u19E8\u1A11\u1A15\u1A32\0\u1A37\u1A50\0\0\u1AB4\0\0\u1AC1\0\0\u1B21\u1B2E\u1B4D\u1B52\0\u1BFD\0\u1C0C\u0180cpr\u19AD\u19B2\u19DDute;\u4107\u0300;abcds\u19BF\u19C0\u19C4\u19CA\u19D5\u19D9\u6229nd;\u6A44rcup;\u6A49\u0100au\u19CF\u19D2p;\u6A4Bp;\u6A47ot;\u6A40;\uC000\u2229\uFE00\u0100eo\u19E2\u19E5t;\u6041\xEE\u0693\u0200aeiu\u19F0\u19FB\u1A01\u1A05\u01F0\u19F5\0\u19F8s;\u6A4Don;\u410Ddil\u803B\xE7\u40E7rc;\u4109ps\u0100;s\u1A0C\u1A0D\u6A4Cm;\u6A50ot;\u410B\u0180dmn\u1A1B\u1A20\u1A26il\u80BB\xB8\u01ADptyv;\u69B2t\u8100\xA2;e\u1A2D\u1A2E\u40A2r\xE4\u01B2r;\uC000\u{1D520}\u0180cei\u1A3D\u1A40\u1A4Dy;\u4447ck\u0100;m\u1A47\u1A48\u6713ark\xBB\u1A48;\u43C7r\u0380;Ecefms\u1A5F\u1A60\u1A62\u1A6B\u1AA4\u1AAA\u1AAE\u65CB;\u69C3\u0180;el\u1A69\u1A6A\u1A6D\u42C6q;\u6257e\u0261\u1A74\0\0\u1A88rrow\u0100lr\u1A7C\u1A81eft;\u61BAight;\u61BB\u0280RSacd\u1A92\u1A94\u1A96\u1A9A\u1A9F\xBB\u0F47;\u64C8st;\u629Birc;\u629Aash;\u629Dnint;\u6A10id;\u6AEFcir;\u69C2ubs\u0100;u\u1ABB\u1ABC\u6663it\xBB\u1ABC\u02EC\u1AC7\u1AD4\u1AFA\0\u1B0Aon\u0100;e\u1ACD\u1ACE\u403A\u0100;q\xC7\xC6\u026D\u1AD9\0\0\u1AE2a\u0100;t\u1ADE\u1ADF\u402C;\u4040\u0180;fl\u1AE8\u1AE9\u1AEB\u6201\xEE\u1160e\u0100mx\u1AF1\u1AF6ent\xBB\u1AE9e\xF3\u024D\u01E7\u1AFE\0\u1B07\u0100;d\u12BB\u1B02ot;\u6A6Dn\xF4\u0246\u0180fry\u1B10\u1B14\u1B17;\uC000\u{1D554}o\xE4\u0254\u8100\xA9;s\u0155\u1B1Dr;\u6117\u0100ao\u1B25\u1B29rr;\u61B5ss;\u6717\u0100cu\u1B32\u1B37r;\uC000\u{1D4B8}\u0100bp\u1B3C\u1B44\u0100;e\u1B41\u1B42\u6ACF;\u6AD1\u0100;e\u1B49\u1B4A\u6AD0;\u6AD2dot;\u62EF\u0380delprvw\u1B60\u1B6C\u1B77\u1B82\u1BAC\u1BD4\u1BF9arr\u0100lr\u1B68\u1B6A;\u6938;\u6935\u0270\u1B72\0\0\u1B75r;\u62DEc;\u62DFarr\u0100;p\u1B7F\u1B80\u61B6;\u693D\u0300;bcdos\u1B8F\u1B90\u1B96\u1BA1\u1BA5\u1BA8\u622Arcap;\u6A48\u0100au\u1B9B\u1B9Ep;\u6A46p;\u6A4Aot;\u628Dr;\u6A45;\uC000\u222A\uFE00\u0200alrv\u1BB5\u1BBF\u1BDE\u1BE3rr\u0100;m\u1BBC\u1BBD\u61B7;\u693Cy\u0180evw\u1BC7\u1BD4\u1BD8q\u0270\u1BCE\0\0\u1BD2re\xE3\u1B73u\xE3\u1B75ee;\u62CEedge;\u62CFen\u803B\xA4\u40A4earrow\u0100lr\u1BEE\u1BF3eft\xBB\u1B80ight\xBB\u1BBDe\xE4\u1BDD\u0100ci\u1C01\u1C07onin\xF4\u01F7nt;\u6231lcty;\u632D\u0980AHabcdefhijlorstuwz\u1C38\u1C3B\u1C3F\u1C5D\u1C69\u1C75\u1C8A\u1C9E\u1CAC\u1CB7\u1CFB\u1CFF\u1D0D\u1D7B\u1D91\u1DAB\u1DBB\u1DC6\u1DCDr\xF2\u0381ar;\u6965\u0200glrs\u1C48\u1C4D\u1C52\u1C54ger;\u6020eth;\u6138\xF2\u1133h\u0100;v\u1C5A\u1C5B\u6010\xBB\u090A\u016B\u1C61\u1C67arow;\u690Fa\xE3\u0315\u0100ay\u1C6E\u1C73ron;\u410F;\u4434\u0180;ao\u0332\u1C7C\u1C84\u0100gr\u02BF\u1C81r;\u61CAtseq;\u6A77\u0180glm\u1C91\u1C94\u1C98\u803B\xB0\u40B0ta;\u43B4ptyv;\u69B1\u0100ir\u1CA3\u1CA8sht;\u697F;\uC000\u{1D521}ar\u0100lr\u1CB3\u1CB5\xBB\u08DC\xBB\u101E\u0280aegsv\u1CC2\u0378\u1CD6\u1CDC\u1CE0m\u0180;os\u0326\u1CCA\u1CD4nd\u0100;s\u0326\u1CD1uit;\u6666amma;\u43DDin;\u62F2\u0180;io\u1CE7\u1CE8\u1CF8\u40F7de\u8100\xF7;o\u1CE7\u1CF0ntimes;\u62C7n\xF8\u1CF7cy;\u4452c\u026F\u1D06\0\0\u1D0Arn;\u631Eop;\u630D\u0280lptuw\u1D18\u1D1D\u1D22\u1D49\u1D55lar;\u4024f;\uC000\u{1D555}\u0280;emps\u030B\u1D2D\u1D37\u1D3D\u1D42q\u0100;d\u0352\u1D33ot;\u6251inus;\u6238lus;\u6214quare;\u62A1blebarwedg\xE5\xFAn\u0180adh\u112E\u1D5D\u1D67ownarrow\xF3\u1C83arpoon\u0100lr\u1D72\u1D76ef\xF4\u1CB4igh\xF4\u1CB6\u0162\u1D7F\u1D85karo\xF7\u0F42\u026F\u1D8A\0\0\u1D8Ern;\u631Fop;\u630C\u0180cot\u1D98\u1DA3\u1DA6\u0100ry\u1D9D\u1DA1;\uC000\u{1D4B9};\u4455l;\u69F6rok;\u4111\u0100dr\u1DB0\u1DB4ot;\u62F1i\u0100;f\u1DBA\u1816\u65BF\u0100ah\u1DC0\u1DC3r\xF2\u0429a\xF2\u0FA6angle;\u69A6\u0100ci\u1DD2\u1DD5y;\u445Fgrarr;\u67FF\u0900Dacdefglmnopqrstux\u1E01\u1E09\u1E19\u1E38\u0578\u1E3C\u1E49\u1E61\u1E7E\u1EA5\u1EAF\u1EBD\u1EE1\u1F2A\u1F37\u1F44\u1F4E\u1F5A\u0100Do\u1E06\u1D34o\xF4\u1C89\u0100cs\u1E0E\u1E14ute\u803B\xE9\u40E9ter;\u6A6E\u0200aioy\u1E22\u1E27\u1E31\u1E36ron;\u411Br\u0100;c\u1E2D\u1E2E\u6256\u803B\xEA\u40EAlon;\u6255;\u444Dot;\u4117\u0100Dr\u1E41\u1E45ot;\u6252;\uC000\u{1D522}\u0180;rs\u1E50\u1E51\u1E57\u6A9Aave\u803B\xE8\u40E8\u0100;d\u1E5C\u1E5D\u6A96ot;\u6A98\u0200;ils\u1E6A\u1E6B\u1E72\u1E74\u6A99nters;\u63E7;\u6113\u0100;d\u1E79\u1E7A\u6A95ot;\u6A97\u0180aps\u1E85\u1E89\u1E97cr;\u4113ty\u0180;sv\u1E92\u1E93\u1E95\u6205et\xBB\u1E93p\u01001;\u1E9D\u1EA4\u0133\u1EA1\u1EA3;\u6004;\u6005\u6003\u0100gs\u1EAA\u1EAC;\u414Bp;\u6002\u0100gp\u1EB4\u1EB8on;\u4119f;\uC000\u{1D556}\u0180als\u1EC4\u1ECE\u1ED2r\u0100;s\u1ECA\u1ECB\u62D5l;\u69E3us;\u6A71i\u0180;lv\u1EDA\u1EDB\u1EDF\u43B5on\xBB\u1EDB;\u43F5\u0200csuv\u1EEA\u1EF3\u1F0B\u1F23\u0100io\u1EEF\u1E31rc\xBB\u1E2E\u0269\u1EF9\0\0\u1EFB\xED\u0548ant\u0100gl\u1F02\u1F06tr\xBB\u1E5Dess\xBB\u1E7A\u0180aei\u1F12\u1F16\u1F1Als;\u403Dst;\u625Fv\u0100;D\u0235\u1F20D;\u6A78parsl;\u69E5\u0100Da\u1F2F\u1F33ot;\u6253rr;\u6971\u0180cdi\u1F3E\u1F41\u1EF8r;\u612Fo\xF4\u0352\u0100ah\u1F49\u1F4B;\u43B7\u803B\xF0\u40F0\u0100mr\u1F53\u1F57l\u803B\xEB\u40EBo;\u60AC\u0180cip\u1F61\u1F64\u1F67l;\u4021s\xF4\u056E\u0100eo\u1F6C\u1F74ctatio\xEE\u0559nential\xE5\u0579\u09E1\u1F92\0\u1F9E\0\u1FA1\u1FA7\0\0\u1FC6\u1FCC\0\u1FD3\0\u1FE6\u1FEA\u2000\0\u2008\u205Allingdotse\xF1\u1E44y;\u4444male;\u6640\u0180ilr\u1FAD\u1FB3\u1FC1lig;\u8000\uFB03\u0269\u1FB9\0\0\u1FBDg;\u8000\uFB00ig;\u8000\uFB04;\uC000\u{1D523}lig;\u8000\uFB01lig;\uC000fj\u0180alt\u1FD9\u1FDC\u1FE1t;\u666Dig;\u8000\uFB02ns;\u65B1of;\u4192\u01F0\u1FEE\0\u1FF3f;\uC000\u{1D557}\u0100ak\u05BF\u1FF7\u0100;v\u1FFC\u1FFD\u62D4;\u6AD9artint;\u6A0D\u0100ao\u200C\u2055\u0100cs\u2011\u2052\u03B1\u201A\u2030\u2038\u2045\u2048\0\u2050\u03B2\u2022\u2025\u2027\u202A\u202C\0\u202E\u803B\xBD\u40BD;\u6153\u803B\xBC\u40BC;\u6155;\u6159;\u615B\u01B3\u2034\0\u2036;\u6154;\u6156\u02B4\u203E\u2041\0\0\u2043\u803B\xBE\u40BE;\u6157;\u615C5;\u6158\u01B6\u204C\0\u204E;\u615A;\u615D8;\u615El;\u6044wn;\u6322cr;\uC000\u{1D4BB}\u0880Eabcdefgijlnorstv\u2082\u2089\u209F\u20A5\u20B0\u20B4\u20F0\u20F5\u20FA\u20FF\u2103\u2112\u2138\u0317\u213E\u2152\u219E\u0100;l\u064D\u2087;\u6A8C\u0180cmp\u2090\u2095\u209Dute;\u41F5ma\u0100;d\u209C\u1CDA\u43B3;\u6A86reve;\u411F\u0100iy\u20AA\u20AErc;\u411D;\u4433ot;\u4121\u0200;lqs\u063E\u0642\u20BD\u20C9\u0180;qs\u063E\u064C\u20C4lan\xF4\u0665\u0200;cdl\u0665\u20D2\u20D5\u20E5c;\u6AA9ot\u0100;o\u20DC\u20DD\u6A80\u0100;l\u20E2\u20E3\u6A82;\u6A84\u0100;e\u20EA\u20ED\uC000\u22DB\uFE00s;\u6A94r;\uC000\u{1D524}\u0100;g\u0673\u061Bmel;\u6137cy;\u4453\u0200;Eaj\u065A\u210C\u210E\u2110;\u6A92;\u6AA5;\u6AA4\u0200Eaes\u211B\u211D\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6A8Arox\xBB\u2124\u0100;q\u212E\u212F\u6A88\u0100;q\u212E\u211Bim;\u62E7pf;\uC000\u{1D558}\u0100ci\u2143\u2146r;\u610Am\u0180;el\u066B\u214E\u2150;\u6A8E;\u6A90\u8300>;cdlqr\u05EE\u2160\u216A\u216E\u2173\u2179\u0100ci\u2165\u2167;\u6AA7r;\u6A7Aot;\u62D7Par;\u6995uest;\u6A7C\u0280adels\u2184\u216A\u2190\u0656\u219B\u01F0\u2189\0\u218Epro\xF8\u209Er;\u6978q\u0100lq\u063F\u2196les\xF3\u2088i\xED\u066B\u0100en\u21A3\u21ADrtneqq;\uC000\u2269\uFE00\xC5\u21AA\u0500Aabcefkosy\u21C4\u21C7\u21F1\u21F5\u21FA\u2218\u221D\u222F\u2268\u227Dr\xF2\u03A0\u0200ilmr\u21D0\u21D4\u21D7\u21DBrs\xF0\u1484f\xBB\u2024il\xF4\u06A9\u0100dr\u21E0\u21E4cy;\u444A\u0180;cw\u08F4\u21EB\u21EFir;\u6948;\u61ADar;\u610Firc;\u4125\u0180alr\u2201\u220E\u2213rts\u0100;u\u2209\u220A\u6665it\xBB\u220Alip;\u6026con;\u62B9r;\uC000\u{1D525}s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223A\u223E\u2243\u225E\u2263rr;\u61FFtht;\u623Bk\u0100lr\u2249\u2253eftarrow;\u61A9ightarrow;\u61AAf;\uC000\u{1D559}bar;\u6015\u0180clt\u226F\u2274\u2278r;\uC000\u{1D4BD}as\xE8\u21F4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xBB\u1C5B\u0AE1\u22A3\0\u22AA\0\u22B8\u22C5\u22CE\0\u22D5\u22F3\0\0\u22F8\u2322\u2367\u2362\u237F\0\u2386\u23AA\u23B4cute\u803B\xED\u40ED\u0180;iy\u0771\u22B0\u22B5rc\u803B\xEE\u40EE;\u4438\u0100cx\u22BC\u22BFy;\u4435cl\u803B\xA1\u40A1\u0100fr\u039F\u22C9;\uC000\u{1D526}rave\u803B\xEC\u40EC\u0200;ino\u073E\u22DD\u22E9\u22EE\u0100in\u22E2\u22E6nt;\u6A0Ct;\u622Dfin;\u69DCta;\u6129lig;\u4133\u0180aop\u22FE\u231A\u231D\u0180cgt\u2305\u2308\u2317r;\u412B\u0180elp\u071F\u230F\u2313in\xE5\u078Ear\xF4\u0720h;\u4131f;\u62B7ed;\u41B5\u0280;cfot\u04F4\u232C\u2331\u233D\u2341are;\u6105in\u0100;t\u2338\u2339\u621Eie;\u69DDdo\xF4\u2319\u0280;celp\u0757\u234C\u2350\u235B\u2361al;\u62BA\u0100gr\u2355\u2359er\xF3\u1563\xE3\u234Darhk;\u6A17rod;\u6A3C\u0200cgpt\u236F\u2372\u2376\u237By;\u4451on;\u412Ff;\uC000\u{1D55A}a;\u43B9uest\u803B\xBF\u40BF\u0100ci\u238A\u238Fr;\uC000\u{1D4BE}n\u0280;Edsv\u04F4\u239B\u239D\u23A1\u04F3;\u62F9ot;\u62F5\u0100;v\u23A6\u23A7\u62F4;\u62F3\u0100;i\u0777\u23AElde;\u4129\u01EB\u23B8\0\u23BCcy;\u4456l\u803B\xEF\u40EF\u0300cfmosu\u23CC\u23D7\u23DC\u23E1\u23E7\u23F5\u0100iy\u23D1\u23D5rc;\u4135;\u4439r;\uC000\u{1D527}ath;\u4237pf;\uC000\u{1D55B}\u01E3\u23EC\0\u23F1r;\uC000\u{1D4BF}rcy;\u4458kcy;\u4454\u0400acfghjos\u240B\u2416\u2422\u2427\u242D\u2431\u2435\u243Bppa\u0100;v\u2413\u2414\u43BA;\u43F0\u0100ey\u241B\u2420dil;\u4137;\u443Ar;\uC000\u{1D528}reen;\u4138cy;\u4445cy;\u445Cpf;\uC000\u{1D55C}cr;\uC000\u{1D4C0}\u0B80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248D\u2491\u250E\u253D\u255A\u2580\u264E\u265E\u2665\u2679\u267D\u269A\u26B2\u26D8\u275D\u2768\u278B\u27C0\u2801\u2812\u0180art\u2477\u247A\u247Cr\xF2\u09C6\xF2\u0395ail;\u691Barr;\u690E\u0100;g\u0994\u248B;\u6A8Bar;\u6962\u0963\u24A5\0\u24AA\0\u24B1\0\0\0\0\0\u24B5\u24BA\0\u24C6\u24C8\u24CD\0\u24F9ute;\u413Amptyv;\u69B4ra\xEE\u084Cbda;\u43BBg\u0180;dl\u088E\u24C1\u24C3;\u6991\xE5\u088E;\u6A85uo\u803B\xAB\u40ABr\u0400;bfhlpst\u0899\u24DE\u24E6\u24E9\u24EB\u24EE\u24F1\u24F5\u0100;f\u089D\u24E3s;\u691Fs;\u691D\xEB\u2252p;\u61ABl;\u6939im;\u6973l;\u61A2\u0180;ae\u24FF\u2500\u2504\u6AABil;\u6919\u0100;s\u2509\u250A\u6AAD;\uC000\u2AAD\uFE00\u0180abr\u2515\u2519\u251Drr;\u690Crk;\u6772\u0100ak\u2522\u252Cc\u0100ek\u2528\u252A;\u407B;\u405B\u0100es\u2531\u2533;\u698Bl\u0100du\u2539\u253B;\u698F;\u698D\u0200aeuy\u2546\u254B\u2556\u2558ron;\u413E\u0100di\u2550\u2554il;\u413C\xEC\u08B0\xE2\u2529;\u443B\u0200cqrs\u2563\u2566\u256D\u257Da;\u6936uo\u0100;r\u0E19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694Bh;\u61B2\u0280;fgqs\u258B\u258C\u0989\u25F3\u25FF\u6264t\u0280ahlrt\u2598\u25A4\u25B7\u25C2\u25E8rrow\u0100;t\u0899\u25A1a\xE9\u24F6arpoon\u0100du\u25AF\u25B4own\xBB\u045Ap\xBB\u0966eftarrows;\u61C7ight\u0180ahs\u25CD\u25D6\u25DErrow\u0100;s\u08F4\u08A7arpoon\xF3\u0F98quigarro\xF7\u21F0hreetimes;\u62CB\u0180;qs\u258B\u0993\u25FAlan\xF4\u09AC\u0280;cdgs\u09AC\u260A\u260D\u261D\u2628c;\u6AA8ot\u0100;o\u2614\u2615\u6A7F\u0100;r\u261A\u261B\u6A81;\u6A83\u0100;e\u2622\u2625\uC000\u22DA\uFE00s;\u6A93\u0280adegs\u2633\u2639\u263D\u2649\u264Bppro\xF8\u24C6ot;\u62D6q\u0100gq\u2643\u2645\xF4\u0989gt\xF2\u248C\xF4\u099Bi\xED\u09B2\u0180ilr\u2655\u08E1\u265Asht;\u697C;\uC000\u{1D529}\u0100;E\u099C\u2663;\u6A91\u0161\u2669\u2676r\u0100du\u25B2\u266E\u0100;l\u0965\u2673;\u696Alk;\u6584cy;\u4459\u0280;acht\u0A48\u2688\u268B\u2691\u2696r\xF2\u25C1orne\xF2\u1D08ard;\u696Bri;\u65FA\u0100io\u269F\u26A4dot;\u4140ust\u0100;a\u26AC\u26AD\u63B0che\xBB\u26AD\u0200Eaes\u26BB\u26BD\u26C9\u26D4;\u6268p\u0100;p\u26C3\u26C4\u6A89rox\xBB\u26C4\u0100;q\u26CE\u26CF\u6A87\u0100;q\u26CE\u26BBim;\u62E6\u0400abnoptwz\u26E9\u26F4\u26F7\u271A\u272F\u2741\u2747\u2750\u0100nr\u26EE\u26F1g;\u67ECr;\u61FDr\xEB\u08C1g\u0180lmr\u26FF\u270D\u2714eft\u0100ar\u09E6\u2707ight\xE1\u09F2apsto;\u67FCight\xE1\u09FDparrow\u0100lr\u2725\u2729ef\xF4\u24EDight;\u61AC\u0180afl\u2736\u2739\u273Dr;\u6985;\uC000\u{1D55D}us;\u6A2Dimes;\u6A34\u0161\u274B\u274Fst;\u6217\xE1\u134E\u0180;ef\u2757\u2758\u1800\u65CAnge\xBB\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277C\u2785\u2787r\xF2\u08A8orne\xF2\u1D8Car\u0100;d\u0F98\u2783;\u696D;\u600Eri;\u62BF\u0300achiqt\u2798\u279D\u0A40\u27A2\u27AE\u27BBquo;\u6039r;\uC000\u{1D4C1}m\u0180;eg\u09B2\u27AA\u27AC;\u6A8D;\u6A8F\u0100bu\u252A\u27B3o\u0100;r\u0E1F\u27B9;\u601Arok;\u4142\u8400<;cdhilqr\u082B\u27D2\u2639\u27DC\u27E0\u27E5\u27EA\u27F0\u0100ci\u27D7\u27D9;\u6AA6r;\u6A79re\xE5\u25F2mes;\u62C9arr;\u6976uest;\u6A7B\u0100Pi\u27F5\u27F9ar;\u6996\u0180;ef\u2800\u092D\u181B\u65C3r\u0100du\u2807\u280Dshar;\u694Ahar;\u6966\u0100en\u2817\u2821rtneqq;\uC000\u2268\uFE00\xC5\u281E\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288E\u2893\u28A0\u28A5\u28A8\u28DA\u28E2\u28E4\u0A83\u28F3\u2902Dot;\u623A\u0200clpr\u284E\u2852\u2863\u287Dr\u803B\xAF\u40AF\u0100et\u2857\u2859;\u6642\u0100;e\u285E\u285F\u6720se\xBB\u285F\u0100;s\u103B\u2868to\u0200;dlu\u103B\u2873\u2877\u287Bow\xEE\u048Cef\xF4\u090F\xF0\u13D1ker;\u65AE\u0100oy\u2887\u288Cmma;\u6A29;\u443Cash;\u6014asuredangle\xBB\u1626r;\uC000\u{1D52A}o;\u6127\u0180cdn\u28AF\u28B4\u28C9ro\u803B\xB5\u40B5\u0200;acd\u1464\u28BD\u28C0\u28C4s\xF4\u16A7ir;\u6AF0ot\u80BB\xB7\u01B5us\u0180;bd\u28D2\u1903\u28D3\u6212\u0100;u\u1D3C\u28D8;\u6A2A\u0163\u28DE\u28E1p;\u6ADB\xF2\u2212\xF0\u0A81\u0100dp\u28E9\u28EEels;\u62A7f;\uC000\u{1D55E}\u0100ct\u28F8\u28FDr;\uC000\u{1D4C2}pos\xBB\u159D\u0180;lm\u2909\u290A\u290D\u43BCtimap;\u62B8\u0C00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297E\u2989\u2998\u29DA\u29E9\u2A15\u2A1A\u2A58\u2A5D\u2A83\u2A95\u2AA4\u2AA8\u2B04\u2B07\u2B44\u2B7F\u2BAE\u2C34\u2C67\u2C7C\u2CE9\u0100gt\u2947\u294B;\uC000\u22D9\u0338\u0100;v\u2950\u0BCF\uC000\u226B\u20D2\u0180elt\u295A\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61CDightarrow;\u61CE;\uC000\u22D8\u0338\u0100;v\u297B\u0C47\uC000\u226A\u20D2ightarrow;\u61CF\u0100Dd\u298E\u2993ash;\u62AFash;\u62AE\u0280bcnpt\u29A3\u29A7\u29AC\u29B1\u29CCla\xBB\u02DEute;\u4144g;\uC000\u2220\u20D2\u0280;Eiop\u0D84\u29BC\u29C0\u29C5\u29C8;\uC000\u2A70\u0338d;\uC000\u224B\u0338s;\u4149ro\xF8\u0D84ur\u0100;a\u29D3\u29D4\u666El\u0100;s\u29D3\u0B38\u01F3\u29DF\0\u29E3p\u80BB\xA0\u0B37mp\u0100;e\u0BF9\u0C00\u0280aeouy\u29F4\u29FE\u2A03\u2A10\u2A13\u01F0\u29F9\0\u29FB;\u6A43on;\u4148dil;\u4146ng\u0100;d\u0D7E\u2A0Aot;\uC000\u2A6D\u0338p;\u6A42;\u443Dash;\u6013\u0380;Aadqsx\u0B92\u2A29\u2A2D\u2A3B\u2A41\u2A45\u2A50rr;\u61D7r\u0100hr\u2A33\u2A36k;\u6924\u0100;o\u13F2\u13F0ot;\uC000\u2250\u0338ui\xF6\u0B63\u0100ei\u2A4A\u2A4Ear;\u6928\xED\u0B98ist\u0100;s\u0BA0\u0B9Fr;\uC000\u{1D52B}\u0200Eest\u0BC5\u2A66\u2A79\u2A7C\u0180;qs\u0BBC\u2A6D\u0BE1\u0180;qs\u0BBC\u0BC5\u2A74lan\xF4\u0BE2i\xED\u0BEA\u0100;r\u0BB6\u2A81\xBB\u0BB7\u0180Aap\u2A8A\u2A8D\u2A91r\xF2\u2971rr;\u61AEar;\u6AF2\u0180;sv\u0F8D\u2A9C\u0F8C\u0100;d\u2AA1\u2AA2\u62FC;\u62FAcy;\u445A\u0380AEadest\u2AB7\u2ABA\u2ABE\u2AC2\u2AC5\u2AF6\u2AF9r\xF2\u2966;\uC000\u2266\u0338rr;\u619Ar;\u6025\u0200;fqs\u0C3B\u2ACE\u2AE3\u2AEFt\u0100ar\u2AD4\u2AD9rro\xF7\u2AC1ightarro\xF7\u2A90\u0180;qs\u0C3B\u2ABA\u2AEAlan\xF4\u0C55\u0100;s\u0C55\u2AF4\xBB\u0C36i\xED\u0C5D\u0100;r\u0C35\u2AFEi\u0100;e\u0C1A\u0C25i\xE4\u0D90\u0100pt\u2B0C\u2B11f;\uC000\u{1D55F}\u8180\xAC;in\u2B19\u2B1A\u2B36\u40ACn\u0200;Edv\u0B89\u2B24\u2B28\u2B2E;\uC000\u22F9\u0338ot;\uC000\u22F5\u0338\u01E1\u0B89\u2B33\u2B35;\u62F7;\u62F6i\u0100;v\u0CB8\u2B3C\u01E1\u0CB8\u2B41\u2B43;\u62FE;\u62FD\u0180aor\u2B4B\u2B63\u2B69r\u0200;ast\u0B7B\u2B55\u2B5A\u2B5Flle\xEC\u0B7Bl;\uC000\u2AFD\u20E5;\uC000\u2202\u0338lint;\u6A14\u0180;ce\u0C92\u2B70\u2B73u\xE5\u0CA5\u0100;c\u0C98\u2B78\u0100;e\u0C92\u2B7D\xF1\u0C98\u0200Aait\u2B88\u2B8B\u2B9D\u2BA7r\xF2\u2988rr\u0180;cw\u2B94\u2B95\u2B99\u619B;\uC000\u2933\u0338;\uC000\u219D\u0338ghtarrow\xBB\u2B95ri\u0100;e\u0CCB\u0CD6\u0380chimpqu\u2BBD\u2BCD\u2BD9\u2B04\u0B78\u2BE4\u2BEF\u0200;cer\u0D32\u2BC6\u0D37\u2BC9u\xE5\u0D45;\uC000\u{1D4C3}ort\u026D\u2B05\0\0\u2BD6ar\xE1\u2B56m\u0100;e\u0D6E\u2BDF\u0100;q\u0D74\u0D73su\u0100bp\u2BEB\u2BED\xE5\u0CF8\xE5\u0D0B\u0180bcp\u2BF6\u2C11\u2C19\u0200;Ees\u2BFF\u2C00\u0D22\u2C04\u6284;\uC000\u2AC5\u0338et\u0100;e\u0D1B\u2C0Bq\u0100;q\u0D23\u2C00c\u0100;e\u0D32\u2C17\xF1\u0D38\u0200;Ees\u2C22\u2C23\u0D5F\u2C27\u6285;\uC000\u2AC6\u0338et\u0100;e\u0D58\u2C2Eq\u0100;q\u0D60\u2C23\u0200gilr\u2C3D\u2C3F\u2C45\u2C47\xEC\u0BD7lde\u803B\xF1\u40F1\xE7\u0C43iangle\u0100lr\u2C52\u2C5Ceft\u0100;e\u0C1A\u2C5A\xF1\u0C26ight\u0100;e\u0CCB\u2C65\xF1\u0CD7\u0100;m\u2C6C\u2C6D\u43BD\u0180;es\u2C74\u2C75\u2C79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2C8F\u2C94\u2C99\u2C9E\u2CA3\u2CB0\u2CB6\u2CD3\u2CE3ash;\u62ADarr;\u6904p;\uC000\u224D\u20D2ash;\u62AC\u0100et\u2CA8\u2CAC;\uC000\u2265\u20D2;\uC000>\u20D2nfin;\u69DE\u0180Aet\u2CBD\u2CC1\u2CC5rr;\u6902;\uC000\u2264\u20D2\u0100;r\u2CCA\u2CCD\uC000<\u20D2ie;\uC000\u22B4\u20D2\u0100At\u2CD8\u2CDCrr;\u6903rie;\uC000\u22B5\u20D2im;\uC000\u223C\u20D2\u0180Aan\u2CF0\u2CF4\u2D02rr;\u61D6r\u0100hr\u2CFA\u2CFDk;\u6923\u0100;o\u13E7\u13E5ear;\u6927\u1253\u1A95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2D2D\0\u2D38\u2D48\u2D60\u2D65\u2D72\u2D84\u1B07\0\0\u2D8D\u2DAB\0\u2DC8\u2DCE\0\u2DDC\u2E19\u2E2B\u2E3E\u2E43\u0100cs\u2D31\u1A97ute\u803B\xF3\u40F3\u0100iy\u2D3C\u2D45r\u0100;c\u1A9E\u2D42\u803B\xF4\u40F4;\u443E\u0280abios\u1AA0\u2D52\u2D57\u01C8\u2D5Alac;\u4151v;\u6A38old;\u69BClig;\u4153\u0100cr\u2D69\u2D6Dir;\u69BF;\uC000\u{1D52C}\u036F\u2D79\0\0\u2D7C\0\u2D82n;\u42DBave\u803B\xF2\u40F2;\u69C1\u0100bm\u2D88\u0DF4ar;\u69B5\u0200acit\u2D95\u2D98\u2DA5\u2DA8r\xF2\u1A80\u0100ir\u2D9D\u2DA0r;\u69BEoss;\u69BBn\xE5\u0E52;\u69C0\u0180aei\u2DB1\u2DB5\u2DB9cr;\u414Dga;\u43C9\u0180cdn\u2DC0\u2DC5\u01CDron;\u43BF;\u69B6pf;\uC000\u{1D560}\u0180ael\u2DD4\u2DD7\u01D2r;\u69B7rp;\u69B9\u0380;adiosv\u2DEA\u2DEB\u2DEE\u2E08\u2E0D\u2E10\u2E16\u6228r\xF2\u1A86\u0200;efm\u2DF7\u2DF8\u2E02\u2E05\u6A5Dr\u0100;o\u2DFE\u2DFF\u6134f\xBB\u2DFF\u803B\xAA\u40AA\u803B\xBA\u40BAgof;\u62B6r;\u6A56lope;\u6A57;\u6A5B\u0180clo\u2E1F\u2E21\u2E27\xF2\u2E01ash\u803B\xF8\u40F8l;\u6298i\u016C\u2E2F\u2E34de\u803B\xF5\u40F5es\u0100;a\u01DB\u2E3As;\u6A36ml\u803B\xF6\u40F6bar;\u633D\u0AE1\u2E5E\0\u2E7D\0\u2E80\u2E9D\0\u2EA2\u2EB9\0\0\u2ECB\u0E9C\0\u2F13\0\0\u2F2B\u2FBC\0\u2FC8r\u0200;ast\u0403\u2E67\u2E72\u0E85\u8100\xB6;l\u2E6D\u2E6E\u40B6le\xEC\u0403\u0269\u2E78\0\0\u2E7Bm;\u6AF3;\u6AFDy;\u443Fr\u0280cimpt\u2E8B\u2E8F\u2E93\u1865\u2E97nt;\u4025od;\u402Eil;\u6030enk;\u6031r;\uC000\u{1D52D}\u0180imo\u2EA8\u2EB0\u2EB4\u0100;v\u2EAD\u2EAE\u43C6;\u43D5ma\xF4\u0A76ne;\u660E\u0180;tv\u2EBF\u2EC0\u2EC8\u43C0chfork\xBB\u1FFD;\u43D6\u0100au\u2ECF\u2EDFn\u0100ck\u2ED5\u2EDDk\u0100;h\u21F4\u2EDB;\u610E\xF6\u21F4s\u0480;abcdemst\u2EF3\u2EF4\u1908\u2EF9\u2EFD\u2F04\u2F06\u2F0A\u2F0E\u402Bcir;\u6A23ir;\u6A22\u0100ou\u1D40\u2F02;\u6A25;\u6A72n\u80BB\xB1\u0E9Dim;\u6A26wo;\u6A27\u0180ipu\u2F19\u2F20\u2F25ntint;\u6A15f;\uC000\u{1D561}nd\u803B\xA3\u40A3\u0500;Eaceinosu\u0EC8\u2F3F\u2F41\u2F44\u2F47\u2F81\u2F89\u2F92\u2F7E\u2FB6;\u6AB3p;\u6AB7u\xE5\u0ED9\u0100;c\u0ECE\u2F4C\u0300;acens\u0EC8\u2F59\u2F5F\u2F66\u2F68\u2F7Eppro\xF8\u2F43urlye\xF1\u0ED9\xF1\u0ECE\u0180aes\u2F6F\u2F76\u2F7Approx;\u6AB9qq;\u6AB5im;\u62E8i\xED\u0EDFme\u0100;s\u2F88\u0EAE\u6032\u0180Eas\u2F78\u2F90\u2F7A\xF0\u2F75\u0180dfp\u0EEC\u2F99\u2FAF\u0180als\u2FA0\u2FA5\u2FAAlar;\u632Eine;\u6312urf;\u6313\u0100;t\u0EFB\u2FB4\xEF\u0EFBrel;\u62B0\u0100ci\u2FC0\u2FC5r;\uC000\u{1D4C5};\u43C8ncsp;\u6008\u0300fiopsu\u2FDA\u22E2\u2FDF\u2FE5\u2FEB\u2FF1r;\uC000\u{1D52E}pf;\uC000\u{1D562}rime;\u6057cr;\uC000\u{1D4C6}\u0180aeo\u2FF8\u3009\u3013t\u0100ei\u2FFE\u3005rnion\xF3\u06B0nt;\u6A16st\u0100;e\u3010\u3011\u403F\xF1\u1F19\xF4\u0F14\u0A80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30E0\u310E\u312B\u3147\u3162\u3172\u318E\u3206\u3215\u3224\u3229\u3258\u326E\u3272\u3290\u32B0\u32B7\u0180art\u3047\u304A\u304Cr\xF2\u10B3\xF2\u03DDail;\u691Car\xF2\u1C65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307F\u308F\u3094\u30CC\u0100eu\u306D\u3071;\uC000\u223D\u0331te;\u4155i\xE3\u116Emptyv;\u69B3g\u0200;del\u0FD1\u3089\u308B\u308D;\u6992;\u69A5\xE5\u0FD1uo\u803B\xBB\u40BBr\u0580;abcfhlpstw\u0FDC\u30AC\u30AF\u30B7\u30B9\u30BC\u30BE\u30C0\u30C3\u30C7\u30CAp;\u6975\u0100;f\u0FE0\u30B4s;\u6920;\u6933s;\u691E\xEB\u225D\xF0\u272El;\u6945im;\u6974l;\u61A3;\u619D\u0100ai\u30D1\u30D5il;\u691Ao\u0100;n\u30DB\u30DC\u6236al\xF3\u0F1E\u0180abr\u30E7\u30EA\u30EEr\xF2\u17E5rk;\u6773\u0100ak\u30F3\u30FDc\u0100ek\u30F9\u30FB;\u407D;\u405D\u0100es\u3102\u3104;\u698Cl\u0100du\u310A\u310C;\u698E;\u6990\u0200aeuy\u3117\u311C\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xEC\u0FF2\xE2\u30FA;\u4440\u0200clqs\u3134\u3137\u313D\u3144a;\u6937dhar;\u6969uo\u0100;r\u020E\u020Dh;\u61B3\u0180acg\u314E\u315F\u0F44l\u0200;ips\u0F78\u3158\u315B\u109Cn\xE5\u10BBar\xF4\u0FA9t;\u65AD\u0180ilr\u3169\u1023\u316Esht;\u697D;\uC000\u{1D52F}\u0100ao\u3177\u3186r\u0100du\u317D\u317F\xBB\u047B\u0100;l\u1091\u3184;\u696C\u0100;v\u318B\u318C\u43C1;\u43F1\u0180gns\u3195\u31F9\u31FCht\u0300ahlrst\u31A4\u31B0\u31C2\u31D8\u31E4\u31EErrow\u0100;t\u0FDC\u31ADa\xE9\u30C8arpoon\u0100du\u31BB\u31BFow\xEE\u317Ep\xBB\u1092eft\u0100ah\u31CA\u31D0rrow\xF3\u0FEAarpoon\xF3\u0551ightarrows;\u61C9quigarro\xF7\u30CBhreetimes;\u62CCg;\u42DAingdotse\xF1\u1F32\u0180ahm\u320D\u3210\u3213r\xF2\u0FEAa\xF2\u0551;\u600Foust\u0100;a\u321E\u321F\u63B1che\xBB\u321Fmid;\u6AEE\u0200abpt\u3232\u323D\u3240\u3252\u0100nr\u3237\u323Ag;\u67EDr;\u61FEr\xEB\u1003\u0180afl\u3247\u324A\u324Er;\u6986;\uC000\u{1D563}us;\u6A2Eimes;\u6A35\u0100ap\u325D\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6A12ar\xF2\u31E3\u0200achq\u327B\u3280\u10BC\u3285quo;\u603Ar;\uC000\u{1D4C7}\u0100bu\u30FB\u328Ao\u0100;r\u0214\u0213\u0180hir\u3297\u329B\u32A0re\xE5\u31F8mes;\u62CAi\u0200;efl\u32AA\u1059\u1821\u32AB\u65B9tri;\u69CEluhar;\u6968;\u611E\u0D61\u32D5\u32DB\u32DF\u332C\u3338\u3371\0\u337A\u33A4\0\0\u33EC\u33F0\0\u3428\u3448\u345A\u34AD\u34B1\u34CA\u34F1\0\u3616\0\0\u3633cute;\u415Bqu\xEF\u27BA\u0500;Eaceinpsy\u11ED\u32F3\u32F5\u32FF\u3302\u330B\u330F\u331F\u3326\u3329;\u6AB4\u01F0\u32FA\0\u32FC;\u6AB8on;\u4161u\xE5\u11FE\u0100;d\u11F3\u3307il;\u415Frc;\u415D\u0180Eas\u3316\u3318\u331B;\u6AB6p;\u6ABAim;\u62E9olint;\u6A13i\xED\u1204;\u4441ot\u0180;be\u3334\u1D47\u3335\u62C5;\u6A66\u0380Aacmstx\u3346\u334A\u3357\u335B\u335E\u3363\u336Drr;\u61D8r\u0100hr\u3350\u3352\xEB\u2228\u0100;o\u0A36\u0A34t\u803B\xA7\u40A7i;\u403Bwar;\u6929m\u0100in\u3369\xF0nu\xF3\xF1t;\u6736r\u0100;o\u3376\u2055\uC000\u{1D530}\u0200acoy\u3382\u3386\u3391\u33A0rp;\u666F\u0100hy\u338B\u338Fcy;\u4449;\u4448rt\u026D\u3399\0\0\u339Ci\xE4\u1464ara\xEC\u2E6F\u803B\xAD\u40AD\u0100gm\u33A8\u33B4ma\u0180;fv\u33B1\u33B2\u33B2\u43C3;\u43C2\u0400;deglnpr\u12AB\u33C5\u33C9\u33CE\u33D6\u33DE\u33E1\u33E6ot;\u6A6A\u0100;q\u12B1\u12B0\u0100;E\u33D3\u33D4\u6A9E;\u6AA0\u0100;E\u33DB\u33DC\u6A9D;\u6A9Fe;\u6246lus;\u6A24arr;\u6972ar\xF2\u113D\u0200aeit\u33F8\u3408\u340F\u3417\u0100ls\u33FD\u3404lsetm\xE9\u336Ahp;\u6A33parsl;\u69E4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341C\u341D\u6AAA\u0100;s\u3422\u3423\u6AAC;\uC000\u2AAC\uFE00\u0180flp\u342E\u3433\u3442tcy;\u444C\u0100;b\u3438\u3439\u402F\u0100;a\u343E\u343F\u69C4r;\u633Ff;\uC000\u{1D564}a\u0100dr\u344D\u0402es\u0100;u\u3454\u3455\u6660it\xBB\u3455\u0180csu\u3460\u3479\u349F\u0100au\u3465\u346Fp\u0100;s\u1188\u346B;\uC000\u2293\uFE00p\u0100;s\u11B4\u3475;\uC000\u2294\uFE00u\u0100bp\u347F\u348F\u0180;es\u1197\u119C\u3486et\u0100;e\u1197\u348D\xF1\u119D\u0180;es\u11A8\u11AD\u3496et\u0100;e\u11A8\u349D\xF1\u11AE\u0180;af\u117B\u34A6\u05B0r\u0165\u34AB\u05B1\xBB\u117Car\xF2\u1148\u0200cemt\u34B9\u34BE\u34C2\u34C5r;\uC000\u{1D4C8}tm\xEE\xF1i\xEC\u3415ar\xE6\u11BE\u0100ar\u34CE\u34D5r\u0100;f\u34D4\u17BF\u6606\u0100an\u34DA\u34EDight\u0100ep\u34E3\u34EApsilo\xEE\u1EE0h\xE9\u2EAFs\xBB\u2852\u0280bcmnp\u34FB\u355E\u1209\u358B\u358E\u0480;Edemnprs\u350E\u350F\u3511\u3515\u351E\u3523\u352C\u3531\u3536\u6282;\u6AC5ot;\u6ABD\u0100;d\u11DA\u351Aot;\u6AC3ult;\u6AC1\u0100Ee\u3528\u352A;\u6ACB;\u628Alus;\u6ABFarr;\u6979\u0180eiu\u353D\u3552\u3555t\u0180;en\u350E\u3545\u354Bq\u0100;q\u11DA\u350Feq\u0100;q\u352B\u3528m;\u6AC7\u0100bp\u355A\u355C;\u6AD5;\u6AD3c\u0300;acens\u11ED\u356C\u3572\u3579\u357B\u3326ppro\xF8\u32FAurlye\xF1\u11FE\xF1\u11F3\u0180aes\u3582\u3588\u331Bppro\xF8\u331Aq\xF1\u3317g;\u666A\u0680123;Edehlmnps\u35A9\u35AC\u35AF\u121C\u35B2\u35B4\u35C0\u35C9\u35D5\u35DA\u35DF\u35E8\u35ED\u803B\xB9\u40B9\u803B\xB2\u40B2\u803B\xB3\u40B3;\u6AC6\u0100os\u35B9\u35BCt;\u6ABEub;\u6AD8\u0100;d\u1222\u35C5ot;\u6AC4s\u0100ou\u35CF\u35D2l;\u67C9b;\u6AD7arr;\u697Bult;\u6AC2\u0100Ee\u35E4\u35E6;\u6ACC;\u628Blus;\u6AC0\u0180eiu\u35F4\u3609\u360Ct\u0180;en\u121C\u35FC\u3602q\u0100;q\u1222\u35B2eq\u0100;q\u35E7\u35E4m;\u6AC8\u0100bp\u3611\u3613;\u6AD4;\u6AD6\u0180Aan\u361C\u3620\u362Drr;\u61D9r\u0100hr\u3626\u3628\xEB\u222E\u0100;o\u0A2B\u0A29war;\u692Alig\u803B\xDF\u40DF\u0BE1\u3651\u365D\u3660\u12CE\u3673\u3679\0\u367E\u36C2\0\0\0\0\0\u36DB\u3703\0\u3709\u376C\0\0\0\u3787\u0272\u3656\0\0\u365Bget;\u6316;\u43C4r\xEB\u0E5F\u0180aey\u3666\u366B\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uC000\u{1D531}\u0200eiko\u3686\u369D\u36B5\u36BC\u01F2\u368B\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369B\u43B8ym;\u43D1\u0100cn\u36A2\u36B2k\u0100as\u36A8\u36AEppro\xF8\u12C1im\xBB\u12ACs\xF0\u129E\u0100as\u36BA\u36AE\xF0\u12C1rn\u803B\xFE\u40FE\u01EC\u031F\u36C6\u22E7es\u8180\xD7;bd\u36CF\u36D0\u36D8\u40D7\u0100;a\u190F\u36D5r;\u6A31;\u6A30\u0180eps\u36E1\u36E3\u3700\xE1\u2A4D\u0200;bcf\u0486\u36EC\u36F0\u36F4ot;\u6336ir;\u6AF1\u0100;o\u36F9\u36FC\uC000\u{1D565}rk;\u6ADA\xE1\u3362rime;\u6034\u0180aip\u370F\u3712\u3764d\xE5\u1248\u0380adempst\u3721\u374D\u3740\u3751\u3757\u375C\u375Fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65B5own\xBB\u1DBBeft\u0100;e\u2800\u373E\xF1\u092E;\u625Cight\u0100;e\u32AA\u374B\xF1\u105Aot;\u65ECinus;\u6A3Alus;\u6A39b;\u69CDime;\u6A3Bezium;\u63E2\u0180cht\u3772\u377D\u3781\u0100ry\u3777\u377B;\uC000\u{1D4C9};\u4446cy;\u445Brok;\u4167\u0100io\u378B\u378Ex\xF4\u1777head\u0100lr\u3797\u37A0eftarro\xF7\u084Fightarrow\xBB\u0F5D\u0900AHabcdfghlmoprstuw\u37D0\u37D3\u37D7\u37E4\u37F0\u37FC\u380E\u381C\u3823\u3834\u3851\u385D\u386B\u38A9\u38CC\u38D2\u38EA\u38F6r\xF2\u03EDar;\u6963\u0100cr\u37DC\u37E2ute\u803B\xFA\u40FA\xF2\u1150r\u01E3\u37EA\0\u37EDy;\u445Eve;\u416D\u0100iy\u37F5\u37FArc\u803B\xFB\u40FB;\u4443\u0180abh\u3803\u3806\u380Br\xF2\u13ADlac;\u4171a\xF2\u13C3\u0100ir\u3813\u3818sht;\u697E;\uC000\u{1D532}rave\u803B\xF9\u40F9\u0161\u3827\u3831r\u0100lr\u382C\u382E\xBB\u0957\xBB\u1083lk;\u6580\u0100ct\u3839\u384D\u026F\u383F\0\0\u384Arn\u0100;e\u3845\u3846\u631Cr\xBB\u3846op;\u630Fri;\u65F8\u0100al\u3856\u385Acr;\u416B\u80BB\xA8\u0349\u0100gp\u3862\u3866on;\u4173f;\uC000\u{1D566}\u0300adhlsu\u114B\u3878\u387D\u1372\u3891\u38A0own\xE1\u13B3arpoon\u0100lr\u3888\u388Cef\xF4\u382Digh\xF4\u382Fi\u0180;hl\u3899\u389A\u389C\u43C5\xBB\u13FAon\xBB\u389Aparrows;\u61C8\u0180cit\u38B0\u38C4\u38C8\u026F\u38B6\0\0\u38C1rn\u0100;e\u38BC\u38BD\u631Dr\xBB\u38BDop;\u630Eng;\u416Fri;\u65F9cr;\uC000\u{1D4CA}\u0180dir\u38D9\u38DD\u38E2ot;\u62F0lde;\u4169i\u0100;f\u3730\u38E8\xBB\u1813\u0100am\u38EF\u38F2r\xF2\u38A8l\u803B\xFC\u40FCangle;\u69A7\u0780ABDacdeflnoprsz\u391C\u391F\u3929\u392D\u39B5\u39B8\u39BD\u39DF\u39E4\u39E8\u39F3\u39F9\u39FD\u3A01\u3A20r\xF2\u03F7ar\u0100;v\u3926\u3927\u6AE8;\u6AE9as\xE8\u03E1\u0100nr\u3932\u3937grt;\u699C\u0380eknprst\u34E3\u3946\u394B\u3952\u395D\u3964\u3996app\xE1\u2415othin\xE7\u1E96\u0180hir\u34EB\u2EC8\u3959op\xF4\u2FB5\u0100;h\u13B7\u3962\xEF\u318D\u0100iu\u3969\u396Dgm\xE1\u33B3\u0100bp\u3972\u3984setneq\u0100;q\u397D\u3980\uC000\u228A\uFE00;\uC000\u2ACB\uFE00setneq\u0100;q\u398F\u3992\uC000\u228B\uFE00;\uC000\u2ACC\uFE00\u0100hr\u399B\u399Fet\xE1\u369Ciangle\u0100lr\u39AA\u39AFeft\xBB\u0925ight\xBB\u1051y;\u4432ash\xBB\u1036\u0180elr\u39C4\u39D2\u39D7\u0180;be\u2DEA\u39CB\u39CFar;\u62BBq;\u625Alip;\u62EE\u0100bt\u39DC\u1468a\xF2\u1469r;\uC000\u{1D533}tr\xE9\u39AEsu\u0100bp\u39EF\u39F1\xBB\u0D1C\xBB\u0D59pf;\uC000\u{1D567}ro\xF0\u0EFBtr\xE9\u39B4\u0100cu\u3A06\u3A0Br;\uC000\u{1D4CB}\u0100bp\u3A10\u3A18n\u0100Ee\u3980\u3A16\xBB\u397En\u0100Ee\u3992\u3A1E\xBB\u3990igzag;\u699A\u0380cefoprs\u3A36\u3A3B\u3A56\u3A5B\u3A54\u3A61\u3A6Airc;\u4175\u0100di\u3A40\u3A51\u0100bg\u3A45\u3A49ar;\u6A5Fe\u0100;q\u15FA\u3A4F;\u6259erp;\u6118r;\uC000\u{1D534}pf;\uC000\u{1D568}\u0100;e\u1479\u3A66at\xE8\u1479cr;\uC000\u{1D4CC}\u0AE3\u178E\u3A87\0\u3A8B\0\u3A90\u3A9B\0\0\u3A9D\u3AA8\u3AAB\u3AAF\0\0\u3AC3\u3ACE\0\u3AD8\u17DC\u17DFtr\xE9\u17D1r;\uC000\u{1D535}\u0100Aa\u3A94\u3A97r\xF2\u03C3r\xF2\u09F6;\u43BE\u0100Aa\u3AA1\u3AA4r\xF2\u03B8r\xF2\u09EBa\xF0\u2713is;\u62FB\u0180dpt\u17A4\u3AB5\u3ABE\u0100fl\u3ABA\u17A9;\uC000\u{1D569}im\xE5\u17B2\u0100Aa\u3AC7\u3ACAr\xF2\u03CEr\xF2\u0A01\u0100cq\u3AD2\u17B8r;\uC000\u{1D4CD}\u0100pt\u17D6\u3ADCr\xE9\u17D4\u0400acefiosu\u3AF0\u3AFD\u3B08\u3B0C\u3B11\u3B15\u3B1B\u3B21c\u0100uy\u3AF6\u3AFBte\u803B\xFD\u40FD;\u444F\u0100iy\u3B02\u3B06rc;\u4177;\u444Bn\u803B\xA5\u40A5r;\uC000\u{1D536}cy;\u4457pf;\uC000\u{1D56A}cr;\uC000\u{1D4CE}\u0100cm\u3B26\u3B29y;\u444El\u803B\xFF\u40FF\u0500acdefhiosw\u3B42\u3B48\u3B54\u3B58\u3B64\u3B69\u3B6D\u3B74\u3B7A\u3B80cute;\u417A\u0100ay\u3B4D\u3B52ron;\u417E;\u4437ot;\u417C\u0100et\u3B5D\u3B61tr\xE6\u155Fa;\u43B6r;\uC000\u{1D537}cy;\u4436grarr;\u61DDpf;\uC000\u{1D56B}cr;\uC000\u{1D4CF}\u0100jn\u3B85\u3B87;\u600Dj;\u600C'.split("").map(e=>e.charCodeAt(0)));var Xs=new Uint16Array("\u0200aglq \x1B\u026D\0\0p;\u4026os;\u4027t;\u403Et;\u403Cuot;\u4022".split("").map(e=>e.charCodeAt(0)));var Dn,Al=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]]),Kt=(Dn=String.fromCodePoint)!==null&&Dn!==void 0?Dn:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function Or(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=Al.get(e))!==null&&t!==void 0?t:e}var j;(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"})(j||(j={}));var xl=32,te;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(te||(te={}));function On(e){return e>=j.ZERO&&e<=j.NINE}function Cl(e){return e>=j.UPPER_A&&e<=j.UPPER_F||e>=j.LOWER_A&&e<=j.LOWER_F}function Nl(e){return e>=j.UPPER_A&&e<=j.UPPER_Z||e>=j.LOWER_A&&e<=j.LOWER_Z||On(e)}function yl(e){return e===j.EQUALS||Nl(e)}var Q;(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"})(Q||(Q={}));var He;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(He||(He={}));var Ws=class{constructor(t,r,s){this.decodeTree=t,this.emitCodePoint=r,this.errors=s,this.state=Q.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=He.Strict}startEntity(t){this.decodeMode=t,this.state=Q.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,r){switch(this.state){case Q.EntityStart:return t.charCodeAt(r)===j.NUM?(this.state=Q.NumericStart,this.consumed+=1,this.stateNumericStart(t,r+1)):(this.state=Q.NamedEntity,this.stateNamedEntity(t,r));case Q.NumericStart:return this.stateNumericStart(t,r);case Q.NumericDecimal:return this.stateNumericDecimal(t,r);case Q.NumericHex:return this.stateNumericHex(t,r);case Q.NamedEntity:return this.stateNamedEntity(t,r)}}stateNumericStart(t,r){return r>=t.length?-1:(t.charCodeAt(r)|xl)===j.LOWER_X?(this.state=Q.NumericHex,this.consumed+=1,this.stateNumericHex(t,r+1)):(this.state=Q.NumericDecimal,this.stateNumericDecimal(t,r))}addToNumericResult(t,r,s,i){if(r!==s){let a=s-r;this.result=this.result*Math.pow(i,a)+parseInt(t.substr(r,a),i),this.consumed+=a}}stateNumericHex(t,r){let s=r;for(;r<t.length;){let i=t.charCodeAt(r);if(On(i)||Cl(i))r+=1;else return this.addToNumericResult(t,s,r,16),this.emitNumericEntity(i,3)}return this.addToNumericResult(t,s,r,16),-1}stateNumericDecimal(t,r){let s=r;for(;r<t.length;){let i=t.charCodeAt(r);if(On(i))r+=1;else return this.addToNumericResult(t,s,r,10),this.emitNumericEntity(i,2)}return this.addToNumericResult(t,s,r,10),-1}emitNumericEntity(t,r){var s;if(this.consumed<=r)return(s=this.errors)===null||s===void 0||s.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===j.SEMI)this.consumed+=1;else if(this.decodeMode===He.Strict)return 0;return this.emitCodePoint(Or(this.result),this.consumed),this.errors&&(t!==j.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,r){let{decodeTree:s}=this,i=s[this.treeIndex],a=(i&te.VALUE_LENGTH)>>14;for(;r<t.length;r++,this.excess++){let o=t.charCodeAt(r);if(this.treeIndex=Mr(s,i,this.treeIndex+Math.max(1,a),o),this.treeIndex<0)return this.result===0||this.decodeMode===He.Attribute&&(a===0||yl(o))?0:this.emitNotTerminatedNamedEntity();if(i=s[this.treeIndex],a=(i&te.VALUE_LENGTH)>>14,a!==0){if(o===j.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==He.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;let{result:r,decodeTree:s}=this,i=(s[r]&te.VALUE_LENGTH)>>14;return this.emitNamedEntityData(r,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,r,s){let{decodeTree:i}=this;return this.emitCodePoint(r===1?i[t]&~te.VALUE_LENGTH:i[t+1],s),r===3&&this.emitCodePoint(i[t+2],s),s}end(){var t;switch(this.state){case Q.NamedEntity:return this.result!==0&&(this.decodeMode!==He.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Q.NumericDecimal:return this.emitNumericEntity(0,2);case Q.NumericHex:return this.emitNumericEntity(0,3);case Q.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Q.EntityStart:return 0}}};function Uo(e){let t="",r=new Ws(e,s=>t+=Kt(s));return function(i,a){let o=0,u=0;for(;(u=i.indexOf("&",u))>=0;){t+=i.slice(o,u),r.startEntity(a);let h=r.write(i,u+1);if(h<0){o=u+r.end();break}o=u+h,u=h===0?o+1:o}let c=t+i.slice(o);return t="",c}}function Mr(e,t,r,s){let i=(t&te.BRANCH_LENGTH)>>7,a=t&te.JUMP_TABLE;if(i===0)return a!==0&&s===a?r:-1;if(a){let c=s-a;return c<0||c>=i?-1:e[r+c]-1}let o=r,u=o+i-1;for(;o<=u;){let c=o+u>>>1,h=e[c];if(h<s)o=c+1;else if(h>s)u=c-1;else return e[c+i]}return-1}var wx=Uo(de),Hx=Uo(Xs);function Ks(e){for(let t=1;t<e.length;t++)e[t][0]+=e[t-1][0]+1;return e}var vl=new Map(Ks([[9,"	"],[0,"
"],[22,"!"],[0,"""],[0,"#"],[0,"$"],[0,"%"],[0,"&"],[0,"'"],[0,"("],[0,")"],[0,"*"],[0,"+"],[0,","],[1,"."],[0,"/"],[10,":"],[0,";"],[0,{v:"<",n:8402,o:"<⃒"}],[0,{v:"=",n:8421,o:"=⃥"}],[0,{v:">",n:8402,o:">⃒"}],[0,"?"],[0,"@"],[26,"["],[0,"\"],[0,"]"],[0,"^"],[0,"_"],[0,"`"],[5,{n:106,o:"fj"}],[20,"{"],[0,"|"],[0,"}"],[34," "],[0,"¡"],[0,"¢"],[0,"£"],[0,"¤"],[0,"¥"],[0,"¦"],[0,"§"],[0,"¨"],[0,"©"],[0,"ª"],[0,"«"],[0,"¬"],[0,"­"],[0,"®"],[0,"¯"],[0,"°"],[0,"±"],[0,"²"],[0,"³"],[0,"´"],[0,"µ"],[0,"¶"],[0,"·"],[0,"¸"],[0,"¹"],[0,"º"],[0,"»"],[0,"¼"],[0,"½"],[0,"¾"],[0,"¿"],[0,"À"],[0,"Á"],[0,"Â"],[0,"Ã"],[0,"Ä"],[0,"Å"],[0,"Æ"],[0,"Ç"],[0,"È"],[0,"É"],[0,"Ê"],[0,"Ë"],[0,"Ì"],[0,"Í"],[0,"Î"],[0,"Ï"],[0,"Ð"],[0,"Ñ"],[0,"Ò"],[0,"Ó"],[0,"Ô"],[0,"Õ"],[0,"Ö"],[0,"×"],[0,"Ø"],[0,"Ù"],[0,"Ú"],[0,"Û"],[0,"Ü"],[0,"Ý"],[0,"Þ"],[0,"ß"],[0,"à"],[0,"á"],[0,"â"],[0,"ã"],[0,"ä"],[0,"å"],[0,"æ"],[0,"ç"],[0,"è"],[0,"é"],[0,"ê"],[0,"ë"],[0,"ì"],[0,"í"],[0,"î"],[0,"ï"],[0,"ð"],[0,"ñ"],[0,"ò"],[0,"ó"],[0,"ô"],[0,"õ"],[0,"ö"],[0,"÷"],[0,"ø"],[0,"ù"],[0,"ú"],[0,"û"],[0,"ü"],[0,"ý"],[0,"þ"],[0,"ÿ"],[0,"Ā"],[0,"ā"],[0,"Ă"],[0,"ă"],[0,"Ą"],[0,"ą"],[0,"Ć"],[0,"ć"],[0,"Ĉ"],[0,"ĉ"],[0,"Ċ"],[0,"ċ"],[0,"Č"],[0,"č"],[0,"Ď"],[0,"ď"],[0,"Đ"],[0,"đ"],[0,"Ē"],[0,"ē"],[2,"Ė"],[0,"ė"],[0,"Ę"],[0,"ę"],[0,"Ě"],[0,"ě"],[0,"Ĝ"],[0,"ĝ"],[0,"Ğ"],[0,"ğ"],[0,"Ġ"],[0,"ġ"],[0,"Ģ"],[1,"Ĥ"],[0,"ĥ"],[0,"Ħ"],[0,"ħ"],[0,"Ĩ"],[0,"ĩ"],[0,"Ī"],[0,"ī"],[2,"Į"],[0,"į"],[0,"İ"],[0,"ı"],[0,"IJ"],[0,"ij"],[0,"Ĵ"],[0,"ĵ"],[0,"Ķ"],[0,"ķ"],[0,"ĸ"],[0,"Ĺ"],[0,"ĺ"],[0,"Ļ"],[0,"ļ"],[0,"Ľ"],[0,"ľ"],[0,"Ŀ"],[0,"ŀ"],[0,"Ł"],[0,"ł"],[0,"Ń"],[0,"ń"],[0,"Ņ"],[0,"ņ"],[0,"Ň"],[0,"ň"],[0,"ʼn"],[0,"Ŋ"],[0,"ŋ"],[0,"Ō"],[0,"ō"],[2,"Ő"],[0,"ő"],[0,"Œ"],[0,"œ"],[0,"Ŕ"],[0,"ŕ"],[0,"Ŗ"],[0,"ŗ"],[0,"Ř"],[0,"ř"],[0,"Ś"],[0,"ś"],[0,"Ŝ"],[0,"ŝ"],[0,"Ş"],[0,"ş"],[0,"Š"],[0,"š"],[0,"Ţ"],[0,"ţ"],[0,"Ť"],[0,"ť"],[0,"Ŧ"],[0,"ŧ"],[0,"Ũ"],[0,"ũ"],[0,"Ū"],[0,"ū"],[0,"Ŭ"],[0,"ŭ"],[0,"Ů"],[0,"ů"],[0,"Ű"],[0,"ű"],[0,"Ų"],[0,"ų"],[0,"Ŵ"],[0,"ŵ"],[0,"Ŷ"],[0,"ŷ"],[0,"Ÿ"],[0,"Ź"],[0,"ź"],[0,"Ż"],[0,"ż"],[0,"Ž"],[0,"ž"],[19,"ƒ"],[34,"Ƶ"],[63,"ǵ"],[65,"ȷ"],[142,"ˆ"],[0,"ˇ"],[16,"˘"],[0,"˙"],[0,"˚"],[0,"˛"],[0,"˜"],[0,"˝"],[51,"̑"],[127,"Α"],[0,"Β"],[0,"Γ"],[0,"Δ"],[0,"Ε"],[0,"Ζ"],[0,"Η"],[0,"Θ"],[0,"Ι"],[0,"Κ"],[0,"Λ"],[0,"Μ"],[0,"Ν"],[0,"Ξ"],[0,"Ο"],[0,"Π"],[0,"Ρ"],[1,"Σ"],[0,"Τ"],[0,"Υ"],[0,"Φ"],[0,"Χ"],[0,"Ψ"],[0,"Ω"],[7,"α"],[0,"β"],[0,"γ"],[0,"δ"],[0,"ε"],[0,"ζ"],[0,"η"],[0,"θ"],[0,"ι"],[0,"κ"],[0,"λ"],[0,"μ"],[0,"ν"],[0,"ξ"],[0,"ο"],[0,"π"],[0,"ρ"],[0,"ς"],[0,"σ"],[0,"τ"],[0,"υ"],[0,"φ"],[0,"χ"],[0,"ψ"],[0,"ω"],[7,"ϑ"],[0,"ϒ"],[2,"ϕ"],[0,"ϖ"],[5,"Ϝ"],[0,"ϝ"],[18,"ϰ"],[0,"ϱ"],[3,"ϵ"],[0,"϶"],[10,"Ё"],[0,"Ђ"],[0,"Ѓ"],[0,"Є"],[0,"Ѕ"],[0,"І"],[0,"Ї"],[0,"Ј"],[0,"Љ"],[0,"Њ"],[0,"Ћ"],[0,"Ќ"],[1,"Ў"],[0,"Џ"],[0,"А"],[0,"Б"],[0,"В"],[0,"Г"],[0,"Д"],[0,"Е"],[0,"Ж"],[0,"З"],[0,"И"],[0,"Й"],[0,"К"],[0,"Л"],[0,"М"],[0,"Н"],[0,"О"],[0,"П"],[0,"Р"],[0,"С"],[0,"Т"],[0,"У"],[0,"Ф"],[0,"Х"],[0,"Ц"],[0,"Ч"],[0,"Ш"],[0,"Щ"],[0,"Ъ"],[0,"Ы"],[0,"Ь"],[0,"Э"],[0,"Ю"],[0,"Я"],[0,"а"],[0,"б"],[0,"в"],[0,"г"],[0,"д"],[0,"е"],[0,"ж"],[0,"з"],[0,"и"],[0,"й"],[0,"к"],[0,"л"],[0,"м"],[0,"н"],[0,"о"],[0,"п"],[0,"р"],[0,"с"],[0,"т"],[0,"у"],[0,"ф"],[0,"х"],[0,"ц"],[0,"ч"],[0,"ш"],[0,"щ"],[0,"ъ"],[0,"ы"],[0,"ь"],[0,"э"],[0,"ю"],[0,"я"],[1,"ё"],[0,"ђ"],[0,"ѓ"],[0,"є"],[0,"ѕ"],[0,"і"],[0,"ї"],[0,"ј"],[0,"љ"],[0,"њ"],[0,"ћ"],[0,"ќ"],[1,"ў"],[0,"џ"],[7074," "],[0," "],[0," "],[0," "],[1," "],[0," "],[0," "],[0," "],[0,"​"],[0,"‌"],[0,"‍"],[0,"‎"],[0,"‏"],[0,"‐"],[2,"–"],[0,"—"],[0,"―"],[0,"‖"],[1,"‘"],[0,"’"],[0,"‚"],[1,"“"],[0,"”"],[0,"„"],[1,"†"],[0,"‡"],[0,"•"],[2,"‥"],[0,"…"],[9,"‰"],[0,"‱"],[0,"′"],[0,"″"],[0,"‴"],[0,"‵"],[3,"‹"],[0,"›"],[3,"‾"],[2,"⁁"],[1,"⁃"],[0,"⁄"],[10,"⁏"],[7,"⁗"],[7,{v:" ",n:8202,o:"  "}],[0,"⁠"],[0,"⁡"],[0,"⁢"],[0,"⁣"],[72,"€"],[46,"⃛"],[0,"⃜"],[37,"ℂ"],[2,"℅"],[4,"ℊ"],[0,"ℋ"],[0,"ℌ"],[0,"ℍ"],[0,"ℎ"],[0,"ℏ"],[0,"ℐ"],[0,"ℑ"],[0,"ℒ"],[0,"ℓ"],[1,"ℕ"],[0,"№"],[0,"℗"],[0,"℘"],[0,"ℙ"],[0,"ℚ"],[0,"ℛ"],[0,"ℜ"],[0,"ℝ"],[0,"℞"],[3,"™"],[1,"ℤ"],[2,"℧"],[0,"ℨ"],[0,"℩"],[2,"ℬ"],[0,"ℭ"],[1,"ℯ"],[0,"ℰ"],[0,"ℱ"],[1,"ℳ"],[0,"ℴ"],[0,"ℵ"],[0,"ℶ"],[0,"ℷ"],[0,"ℸ"],[12,"ⅅ"],[0,"ⅆ"],[0,"ⅇ"],[0,"ⅈ"],[10,"⅓"],[0,"⅔"],[0,"⅕"],[0,"⅖"],[0,"⅗"],[0,"⅘"],[0,"⅙"],[0,"⅚"],[0,"⅛"],[0,"⅜"],[0,"⅝"],[0,"⅞"],[49,"←"],[0,"↑"],[0,"→"],[0,"↓"],[0,"↔"],[0,"↕"],[0,"↖"],[0,"↗"],[0,"↘"],[0,"↙"],[0,"↚"],[0,"↛"],[1,{v:"↝",n:824,o:"↝̸"}],[0,"↞"],[0,"↟"],[0,"↠"],[0,"↡"],[0,"↢"],[0,"↣"],[0,"↤"],[0,"↥"],[0,"↦"],[0,"↧"],[1,"↩"],[0,"↪"],[0,"↫"],[0,"↬"],[0,"↭"],[0,"↮"],[1,"↰"],[0,"↱"],[0,"↲"],[0,"↳"],[1,"↵"],[0,"↶"],[0,"↷"],[2,"↺"],[0,"↻"],[0,"↼"],[0,"↽"],[0,"↾"],[0,"↿"],[0,"⇀"],[0,"⇁"],[0,"⇂"],[0,"⇃"],[0,"⇄"],[0,"⇅"],[0,"⇆"],[0,"⇇"],[0,"⇈"],[0,"⇉"],[0,"⇊"],[0,"⇋"],[0,"⇌"],[0,"⇍"],[0,"⇎"],[0,"⇏"],[0,"⇐"],[0,"⇑"],[0,"⇒"],[0,"⇓"],[0,"⇔"],[0,"⇕"],[0,"⇖"],[0,"⇗"],[0,"⇘"],[0,"⇙"],[0,"⇚"],[0,"⇛"],[1,"⇝"],[6,"⇤"],[0,"⇥"],[15,"⇵"],[7,"⇽"],[0,"⇾"],[0,"⇿"],[0,"∀"],[0,"∁"],[0,{v:"∂",n:824,o:"∂̸"}],[0,"∃"],[0,"∄"],[0,"∅"],[1,"∇"],[0,"∈"],[0,"∉"],[1,"∋"],[0,"∌"],[2,"∏"],[0,"∐"],[0,"∑"],[0,"−"],[0,"∓"],[0,"∔"],[1,"∖"],[0,"∗"],[0,"∘"],[1,"√"],[2,"∝"],[0,"∞"],[0,"∟"],[0,{v:"∠",n:8402,o:"∠⃒"}],[0,"∡"],[0,"∢"],[0,"∣"],[0,"∤"],[0,"∥"],[0,"∦"],[0,"∧"],[0,"∨"],[0,{v:"∩",n:65024,o:"∩︀"}],[0,{v:"∪",n:65024,o:"∪︀"}],[0,"∫"],[0,"∬"],[0,"∭"],[0,"∮"],[0,"∯"],[0,"∰"],[0,"∱"],[0,"∲"],[0,"∳"],[0,"∴"],[0,"∵"],[0,"∶"],[0,"∷"],[0,"∸"],[1,"∺"],[0,"∻"],[0,{v:"∼",n:8402,o:"∼⃒"}],[0,{v:"∽",n:817,o:"∽̱"}],[0,{v:"∾",n:819,o:"∾̳"}],[0,"∿"],[0,"≀"],[0,"≁"],[0,{v:"≂",n:824,o:"≂̸"}],[0,"≃"],[0,"≄"],[0,"≅"],[0,"≆"],[0,"≇"],[0,"≈"],[0,"≉"],[0,"≊"],[0,{v:"≋",n:824,o:"≋̸"}],[0,"≌"],[0,{v:"≍",n:8402,o:"≍⃒"}],[0,{v:"≎",n:824,o:"≎̸"}],[0,{v:"≏",n:824,o:"≏̸"}],[0,{v:"≐",n:824,o:"≐̸"}],[0,"≑"],[0,"≒"],[0,"≓"],[0,"≔"],[0,"≕"],[0,"≖"],[0,"≗"],[1,"≙"],[0,"≚"],[1,"≜"],[2,"≟"],[0,"≠"],[0,{v:"≡",n:8421,o:"≡⃥"}],[0,"≢"],[1,{v:"≤",n:8402,o:"≤⃒"}],[0,{v:"≥",n:8402,o:"≥⃒"}],[0,{v:"≦",n:824,o:"≦̸"}],[0,{v:"≧",n:824,o:"≧̸"}],[0,{v:"≨",n:65024,o:"≨︀"}],[0,{v:"≩",n:65024,o:"≩︀"}],[0,{v:"≪",n:new Map(Ks([[824,"≪̸"],[7577,"≪⃒"]]))}],[0,{v:"≫",n:new Map(Ks([[824,"≫̸"],[7577,"≫⃒"]]))}],[0,"≬"],[0,"≭"],[0,"≮"],[0,"≯"],[0,"≰"],[0,"≱"],[0,"≲"],[0,"≳"],[0,"≴"],[0,"≵"],[0,"≶"],[0,"≷"],[0,"≸"],[0,"≹"],[0,"≺"],[0,"≻"],[0,"≼"],[0,"≽"],[0,"≾"],[0,{v:"≿",n:824,o:"≿̸"}],[0,"⊀"],[0,"⊁"],[0,{v:"⊂",n:8402,o:"⊂⃒"}],[0,{v:"⊃",n:8402,o:"⊃⃒"}],[0,"⊄"],[0,"⊅"],[0,"⊆"],[0,"⊇"],[0,"⊈"],[0,"⊉"],[0,{v:"⊊",n:65024,o:"⊊︀"}],[0,{v:"⊋",n:65024,o:"⊋︀"}],[1,"⊍"],[0,"⊎"],[0,{v:"⊏",n:824,o:"⊏̸"}],[0,{v:"⊐",n:824,o:"⊐̸"}],[0,"⊑"],[0,"⊒"],[0,{v:"⊓",n:65024,o:"⊓︀"}],[0,{v:"⊔",n:65024,o:"⊔︀"}],[0,"⊕"],[0,"⊖"],[0,"⊗"],[0,"⊘"],[0,"⊙"],[0,"⊚"],[0,"⊛"],[1,"⊝"],[0,"⊞"],[0,"⊟"],[0,"⊠"],[0,"⊡"],[0,"⊢"],[0,"⊣"],[0,"⊤"],[0,"⊥"],[1,"⊧"],[0,"⊨"],[0,"⊩"],[0,"⊪"],[0,"⊫"],[0,"⊬"],[0,"⊭"],[0,"⊮"],[0,"⊯"],[0,"⊰"],[1,"⊲"],[0,"⊳"],[0,{v:"⊴",n:8402,o:"⊴⃒"}],[0,{v:"⊵",n:8402,o:"⊵⃒"}],[0,"⊶"],[0,"⊷"],[0,"⊸"],[0,"⊹"],[0,"⊺"],[0,"⊻"],[1,"⊽"],[0,"⊾"],[0,"⊿"],[0,"⋀"],[0,"⋁"],[0,"⋂"],[0,"⋃"],[0,"⋄"],[0,"⋅"],[0,"⋆"],[0,"⋇"],[0,"⋈"],[0,"⋉"],[0,"⋊"],[0,"⋋"],[0,"⋌"],[0,"⋍"],[0,"⋎"],[0,"⋏"],[0,"⋐"],[0,"⋑"],[0,"⋒"],[0,"⋓"],[0,"⋔"],[0,"⋕"],[0,"⋖"],[0,"⋗"],[0,{v:"⋘",n:824,o:"⋘̸"}],[0,{v:"⋙",n:824,o:"⋙̸"}],[0,{v:"⋚",n:65024,o:"⋚︀"}],[0,{v:"⋛",n:65024,o:"⋛︀"}],[2,"⋞"],[0,"⋟"],[0,"⋠"],[0,"⋡"],[0,"⋢"],[0,"⋣"],[2,"⋦"],[0,"⋧"],[0,"⋨"],[0,"⋩"],[0,"⋪"],[0,"⋫"],[0,"⋬"],[0,"⋭"],[0,"⋮"],[0,"⋯"],[0,"⋰"],[0,"⋱"],[0,"⋲"],[0,"⋳"],[0,"⋴"],[0,{v:"⋵",n:824,o:"⋵̸"}],[0,"⋶"],[0,"⋷"],[1,{v:"⋹",n:824,o:"⋹̸"}],[0,"⋺"],[0,"⋻"],[0,"⋼"],[0,"⋽"],[0,"⋾"],[6,"⌅"],[0,"⌆"],[1,"⌈"],[0,"⌉"],[0,"⌊"],[0,"⌋"],[0,"⌌"],[0,"⌍"],[0,"⌎"],[0,"⌏"],[0,"⌐"],[1,"⌒"],[0,"⌓"],[1,"⌕"],[0,"⌖"],[5,"⌜"],[0,"⌝"],[0,"⌞"],[0,"⌟"],[2,"⌢"],[0,"⌣"],[9,"⌭"],[0,"⌮"],[7,"⌶"],[6,"⌽"],[1,"⌿"],[60,"⍼"],[51,"⎰"],[0,"⎱"],[2,"⎴"],[0,"⎵"],[0,"⎶"],[37,"⏜"],[0,"⏝"],[0,"⏞"],[0,"⏟"],[2,"⏢"],[4,"⏧"],[59,"␣"],[164,"Ⓢ"],[55,"─"],[1,"│"],[9,"┌"],[3,"┐"],[3,"└"],[3,"┘"],[3,"├"],[7,"┤"],[7,"┬"],[7,"┴"],[7,"┼"],[19,"═"],[0,"║"],[0,"╒"],[0,"╓"],[0,"╔"],[0,"╕"],[0,"╖"],[0,"╗"],[0,"╘"],[0,"╙"],[0,"╚"],[0,"╛"],[0,"╜"],[0,"╝"],[0,"╞"],[0,"╟"],[0,"╠"],[0,"╡"],[0,"╢"],[0,"╣"],[0,"╤"],[0,"╥"],[0,"╦"],[0,"╧"],[0,"╨"],[0,"╩"],[0,"╪"],[0,"╫"],[0,"╬"],[19,"▀"],[3,"▄"],[3,"█"],[8,"░"],[0,"▒"],[0,"▓"],[13,"□"],[8,"▪"],[0,"▫"],[1,"▭"],[0,"▮"],[2,"▱"],[1,"△"],[0,"▴"],[0,"▵"],[2,"▸"],[0,"▹"],[3,"▽"],[0,"▾"],[0,"▿"],[2,"◂"],[0,"◃"],[6,"◊"],[0,"○"],[32,"◬"],[2,"◯"],[8,"◸"],[0,"◹"],[0,"◺"],[0,"◻"],[0,"◼"],[8,"★"],[0,"☆"],[7,"☎"],[49,"♀"],[1,"♂"],[29,"♠"],[2,"♣"],[1,"♥"],[0,"♦"],[3,"♪"],[2,"♭"],[0,"♮"],[0,"♯"],[163,"✓"],[3,"✗"],[8,"✠"],[21,"✶"],[33,"❘"],[25,"❲"],[0,"❳"],[84,"⟈"],[0,"⟉"],[28,"⟦"],[0,"⟧"],[0,"⟨"],[0,"⟩"],[0,"⟪"],[0,"⟫"],[0,"⟬"],[0,"⟭"],[7,"⟵"],[0,"⟶"],[0,"⟷"],[0,"⟸"],[0,"⟹"],[0,"⟺"],[1,"⟼"],[2,"⟿"],[258,"⤂"],[0,"⤃"],[0,"⤄"],[0,"⤅"],[6,"⤌"],[0,"⤍"],[0,"⤎"],[0,"⤏"],[0,"⤐"],[0,"⤑"],[0,"⤒"],[0,"⤓"],[2,"⤖"],[2,"⤙"],[0,"⤚"],[0,"⤛"],[0,"⤜"],[0,"⤝"],[0,"⤞"],[0,"⤟"],[0,"⤠"],[2,"⤣"],[0,"⤤"],[0,"⤥"],[0,"⤦"],[0,"⤧"],[0,"⤨"],[0,"⤩"],[0,"⤪"],[8,{v:"⤳",n:824,o:"⤳̸"}],[1,"⤵"],[0,"⤶"],[0,"⤷"],[0,"⤸"],[0,"⤹"],[2,"⤼"],[0,"⤽"],[7,"⥅"],[2,"⥈"],[0,"⥉"],[0,"⥊"],[0,"⥋"],[2,"⥎"],[0,"⥏"],[0,"⥐"],[0,"⥑"],[0,"⥒"],[0,"⥓"],[0,"⥔"],[0,"⥕"],[0,"⥖"],[0,"⥗"],[0,"⥘"],[0,"⥙"],[0,"⥚"],[0,"⥛"],[0,"⥜"],[0,"⥝"],[0,"⥞"],[0,"⥟"],[0,"⥠"],[0,"⥡"],[0,"⥢"],[0,"⥣"],[0,"⥤"],[0,"⥥"],[0,"⥦"],[0,"⥧"],[0,"⥨"],[0,"⥩"],[0,"⥪"],[0,"⥫"],[0,"⥬"],[0,"⥭"],[0,"⥮"],[0,"⥯"],[0,"⥰"],[0,"⥱"],[0,"⥲"],[0,"⥳"],[0,"⥴"],[0,"⥵"],[0,"⥶"],[1,"⥸"],[0,"⥹"],[1,"⥻"],[0,"⥼"],[0,"⥽"],[0,"⥾"],[0,"⥿"],[5,"⦅"],[0,"⦆"],[4,"⦋"],[0,"⦌"],[0,"⦍"],[0,"⦎"],[0,"⦏"],[0,"⦐"],[0,"⦑"],[0,"⦒"],[0,"⦓"],[0,"⦔"],[0,"⦕"],[0,"⦖"],[3,"⦚"],[1,"⦜"],[0,"⦝"],[6,"⦤"],[0,"⦥"],[0,"⦦"],[0,"⦧"],[0,"⦨"],[0,"⦩"],[0,"⦪"],[0,"⦫"],[0,"⦬"],[0,"⦭"],[0,"⦮"],[0,"⦯"],[0,"⦰"],[0,"⦱"],[0,"⦲"],[0,"⦳"],[0,"⦴"],[0,"⦵"],[0,"⦶"],[0,"⦷"],[1,"⦹"],[1,"⦻"],[0,"⦼"],[1,"⦾"],[0,"⦿"],[0,"⧀"],[0,"⧁"],[0,"⧂"],[0,"⧃"],[0,"⧄"],[0,"⧅"],[3,"⧉"],[3,"⧍"],[0,"⧎"],[0,{v:"⧏",n:824,o:"⧏̸"}],[0,{v:"⧐",n:824,o:"⧐̸"}],[11,"⧜"],[0,"⧝"],[0,"⧞"],[4,"⧣"],[0,"⧤"],[0,"⧥"],[5,"⧫"],[8,"⧴"],[1,"⧶"],[9,"⨀"],[0,"⨁"],[0,"⨂"],[1,"⨄"],[1,"⨆"],[5,"⨌"],[0,"⨍"],[2,"⨐"],[0,"⨑"],[0,"⨒"],[0,"⨓"],[0,"⨔"],[0,"⨕"],[0,"⨖"],[0,"⨗"],[10,"⨢"],[0,"⨣"],[0,"⨤"],[0,"⨥"],[0,"⨦"],[0,"⨧"],[1,"⨩"],[0,"⨪"],[2,"⨭"],[0,"⨮"],[0,"⨯"],[0,"⨰"],[0,"⨱"],[1,"⨳"],[0,"⨴"],[0,"⨵"],[0,"⨶"],[0,"⨷"],[0,"⨸"],[0,"⨹"],[0,"⨺"],[0,"⨻"],[0,"⨼"],[2,"⨿"],[0,"⩀"],[1,"⩂"],[0,"⩃"],[0,"⩄"],[0,"⩅"],[0,"⩆"],[0,"⩇"],[0,"⩈"],[0,"⩉"],[0,"⩊"],[0,"⩋"],[0,"⩌"],[0,"⩍"],[2,"⩐"],[2,"⩓"],[0,"⩔"],[0,"⩕"],[0,"⩖"],[0,"⩗"],[0,"⩘"],[1,"⩚"],[0,"⩛"],[0,"⩜"],[0,"⩝"],[1,"⩟"],[6,"⩦"],[3,"⩪"],[2,{v:"⩭",n:824,o:"⩭̸"}],[0,"⩮"],[0,"⩯"],[0,{v:"⩰",n:824,o:"⩰̸"}],[0,"⩱"],[0,"⩲"],[0,"⩳"],[0,"⩴"],[0,"⩵"],[1,"⩷"],[0,"⩸"],[0,"⩹"],[0,"⩺"],[0,"⩻"],[0,"⩼"],[0,{v:"⩽",n:824,o:"⩽̸"}],[0,{v:"⩾",n:824,o:"⩾̸"}],[0,"⩿"],[0,"⪀"],[0,"⪁"],[0,"⪂"],[0,"⪃"],[0,"⪄"],[0,"⪅"],[0,"⪆"],[0,"⪇"],[0,"⪈"],[0,"⪉"],[0,"⪊"],[0,"⪋"],[0,"⪌"],[0,"⪍"],[0,"⪎"],[0,"⪏"],[0,"⪐"],[0,"⪑"],[0,"⪒"],[0,"⪓"],[0,"⪔"],[0,"⪕"],[0,"⪖"],[0,"⪗"],[0,"⪘"],[0,"⪙"],[0,"⪚"],[2,"⪝"],[0,"⪞"],[0,"⪟"],[0,"⪠"],[0,{v:"⪡",n:824,o:"⪡̸"}],[0,{v:"⪢",n:824,o:"⪢̸"}],[1,"⪤"],[0,"⪥"],[0,"⪦"],[0,"⪧"],[0,"⪨"],[0,"⪩"],[0,"⪪"],[0,"⪫"],[0,{v:"⪬",n:65024,o:"⪬︀"}],[0,{v:"⪭",n:65024,o:"⪭︀"}],[0,"⪮"],[0,{v:"⪯",n:824,o:"⪯̸"}],[0,{v:"⪰",n:824,o:"⪰̸"}],[2,"⪳"],[0,"⪴"],[0,"⪵"],[0,"⪶"],[0,"⪷"],[0,"⪸"],[0,"⪹"],[0,"⪺"],[0,"⪻"],[0,"⪼"],[0,"⪽"],[0,"⪾"],[0,"⪿"],[0,"⫀"],[0,"⫁"],[0,"⫂"],[0,"⫃"],[0,"⫄"],[0,{v:"⫅",n:824,o:"⫅̸"}],[0,{v:"⫆",n:824,o:"⫆̸"}],[0,"⫇"],[0,"⫈"],[2,{v:"⫋",n:65024,o:"⫋︀"}],[0,{v:"⫌",n:65024,o:"⫌︀"}],[2,"⫏"],[0,"⫐"],[0,"⫑"],[0,"⫒"],[0,"⫓"],[0,"⫔"],[0,"⫕"],[0,"⫖"],[0,"⫗"],[0,"⫘"],[0,"⫙"],[0,"⫚"],[0,"⫛"],[8,"⫤"],[1,"⫦"],[0,"⫧"],[0,"⫨"],[0,"⫩"],[1,"⫫"],[0,"⫬"],[0,"⫭"],[0,"⫮"],[0,"⫯"],[0,"⫰"],[0,"⫱"],[0,"⫲"],[0,"⫳"],[9,{v:"⫽",n:8421,o:"⫽⃥"}],[44343,{n:new Map(Ks([[56476,"𝒜"],[1,"𝒞"],[0,"𝒟"],[2,"𝒢"],[2,"𝒥"],[0,"𝒦"],[2,"𝒩"],[0,"𝒪"],[0,"𝒫"],[0,"𝒬"],[1,"𝒮"],[0,"𝒯"],[0,"𝒰"],[0,"𝒱"],[0,"𝒲"],[0,"𝒳"],[0,"𝒴"],[0,"𝒵"],[0,"𝒶"],[0,"𝒷"],[0,"𝒸"],[0,"𝒹"],[1,"𝒻"],[1,"𝒽"],[0,"𝒾"],[0,"𝒿"],[0,"𝓀"],[0,"𝓁"],[0,"𝓂"],[0,"𝓃"],[1,"𝓅"],[0,"𝓆"],[0,"𝓇"],[0,"𝓈"],[0,"𝓉"],[0,"𝓊"],[0,"𝓋"],[0,"𝓌"],[0,"𝓍"],[0,"𝓎"],[0,"𝓏"],[52,"𝔄"],[0,"𝔅"],[1,"𝔇"],[0,"𝔈"],[0,"𝔉"],[0,"𝔊"],[2,"𝔍"],[0,"𝔎"],[0,"𝔏"],[0,"𝔐"],[0,"𝔑"],[0,"𝔒"],[0,"𝔓"],[0,"𝔔"],[1,"𝔖"],[0,"𝔗"],[0,"𝔘"],[0,"𝔙"],[0,"𝔚"],[0,"𝔛"],[0,"𝔜"],[1,"𝔞"],[0,"𝔟"],[0,"𝔠"],[0,"𝔡"],[0,"𝔢"],[0,"𝔣"],[0,"𝔤"],[0,"𝔥"],[0,"𝔦"],[0,"𝔧"],[0,"𝔨"],[0,"𝔩"],[0,"𝔪"],[0,"𝔫"],[0,"𝔬"],[0,"𝔭"],[0,"𝔮"],[0,"𝔯"],[0,"𝔰"],[0,"𝔱"],[0,"𝔲"],[0,"𝔳"],[0,"𝔴"],[0,"𝔵"],[0,"𝔶"],[0,"𝔷"],[0,"𝔸"],[0,"𝔹"],[1,"𝔻"],[0,"𝔼"],[0,"𝔽"],[0,"𝔾"],[1,"𝕀"],[0,"𝕁"],[0,"𝕂"],[0,"𝕃"],[0,"𝕄"],[1,"𝕆"],[3,"𝕊"],[0,"𝕋"],[0,"𝕌"],[0,"𝕍"],[0,"𝕎"],[0,"𝕏"],[0,"𝕐"],[1,"𝕒"],[0,"𝕓"],[0,"𝕔"],[0,"𝕕"],[0,"𝕖"],[0,"𝕗"],[0,"𝕘"],[0,"𝕙"],[0,"𝕚"],[0,"𝕛"],[0,"𝕜"],[0,"𝕝"],[0,"𝕞"],[0,"𝕟"],[0,"𝕠"],[0,"𝕡"],[0,"𝕢"],[0,"𝕣"],[0,"𝕤"],[0,"𝕥"],[0,"𝕦"],[0,"𝕧"],[0,"𝕨"],[0,"𝕩"],[0,"𝕪"],[0,"𝕫"]]))}],[8906,"ff"],[0,"fi"],[0,"fl"],[0,"ffi"],[0,"ffl"]]));var Mn=/["&'<>$\x80-\uFFFF]/g,Fo=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]),qo=String.prototype.codePointAt!=null?(e,t)=>e.codePointAt(t):(e,t)=>(e.charCodeAt(t)&64512)===55296?(e.charCodeAt(t)-55296)*1024+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t);function Pr(e){let t="",r=0,s;for(;(s=Mn.exec(e))!==null;){let i=s.index,a=e.charCodeAt(i),o=Fo.get(a);o!==void 0?(t+=e.substring(r,i)+o,r=i+1):(t+=`${e.substring(r,i)}&#x${qo(e,i).toString(16)};`,r=Mn.lastIndex+=+((a&64512)===55296))}return t+e.substr(r)}function Pn(e,t){return function(s){let i,a=0,o="";for(;i=e.exec(s);)a!==i.index&&(o+=s.substring(a,i.index)),o+=t.get(i[0].charCodeAt(0)),a=i.index+1;return o+s.substring(a)}}var $o=Pn(/[&<>'"]/g,Fo),Qt=Pn(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),jt=Pn(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]));var Vo;(function(e){e[e.XML=0]="XML",e[e.HTML=1]="HTML"})(Vo||(Vo={}));var Yo;(function(e){e[e.UTF8=0]="UTF8",e[e.ASCII=1]="ASCII",e[e.Extensive=2]="Extensive",e[e.Attribute=3]="Attribute",e[e.Text=4]="Text"})(Yo||(Yo={}));var Wo=new Map(["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","textPath"].map(e=>[e.toLowerCase(),e])),Ko=new Map(["definitionURL","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]));var Il=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function Rl(e){return e.replace(/"/g,""")}function Ll(e,t){var r;if(!e)return;let s=((r=t.encodeEntities)!==null&&r!==void 0?r:t.decodeEntities)===!1?Rl:t.xmlMode||t.encodeEntities!=="utf8"?Pr:Qt;return Object.keys(e).map(i=>{var a,o;let u=(a=e[i])!==null&&a!==void 0?a:"";return t.xmlMode==="foreign"&&(i=(o=Ko.get(i))!==null&&o!==void 0?o:i),!t.emptyAttrs&&!t.xmlMode&&u===""?i:`${i}="${s(u)}"`}).join(" ")}var Qo=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function Hn(e,t={}){let r="length"in e?e:[e],s="";for(let i=0;i<r.length;i++)s+=Dl(r[i],t);return s}var Qs=Hn;function Dl(e,t){switch(e.type){case An:return Hn(e.children,t);case Rn:case Cn:return kl(e);case Nn:return Bl(e);case In:return Hl(e);case yn:case vn:case Sn:return Pl(e,t);case xn:return wl(e,t)}}var Ol=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),Ml=new Set(["svg","math"]);function Pl(e,t){var r;t.xmlMode==="foreign"&&(e.name=(r=Wo.get(e.name))!==null&&r!==void 0?r:e.name,e.parent&&Ol.has(e.parent.name)&&(t=Y(I({},t),{xmlMode:!1}))),!t.xmlMode&&Ml.has(e.name)&&(t=Y(I({},t),{xmlMode:"foreign"}));let s=`<${e.name}`,i=Ll(e.attribs,t);return i&&(s+=` ${i}`),e.children.length===0&&(t.xmlMode?t.selfClosingTags!==!1:t.selfClosingTags&&Qo.has(e.name))?(t.xmlMode||(s+=" "),s+="/>"):(s+=">",e.children.length>0&&(s+=Hn(e.children,t)),(t.xmlMode||!Qo.has(e.name))&&(s+=`</${e.name}>`)),s}function kl(e){return`<${e.data}>`}function wl(e,t){var r;let s=e.data||"";return((r=t.encodeEntities)!==null&&r!==void 0?r:t.decodeEntities)!==!1&&!(!t.xmlMode&&e.parent&&Il.has(e.parent.name))&&(s=t.xmlMode||t.encodeEntities!=="utf8"?Pr(s):jt(s)),s}function Hl(e){return`<![CDATA[${e.children[0].data}]]>`}function Bl(e){return`<!--${e.data}-->`}function jo(e,t){return Qs(e,t)}function Ul(e,t){return V(e)?e.children.map(r=>jo(r,t)).join(""):""}function js(e){return Array.isArray(e)?e.map(js).join(""):L(e)?e.name==="br"?`
|
|
439
|
+
`:js(e.children):Xt(e)?js(e.children):ne(e)?e.data:""}function Be(e){return Array.isArray(e)?e.map(Be).join(""):V(e)&&!xt(e)?Be(e.children):ne(e)?e.data:""}function kr(e){return Array.isArray(e)?e.map(kr).join(""):V(e)&&(e.type===k.Tag||Xt(e))?kr(e.children):ne(e)?e.data:""}function zt(e){return V(e)?e.children:[]}function zo(e){return e.parent||null}function Bn(e){let t=zo(e);if(t!=null)return zt(t);let r=[e],{prev:s,next:i}=e;for(;s!=null;)r.unshift(s),{prev:s}=s;for(;i!=null;)r.push(i),{next:i}=i;return r}function Fl(e,t){var r;return(r=e.attribs)===null||r===void 0?void 0:r[t]}function ql(e,t){return e.attribs!=null&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&e.attribs[t]!=null}function $l(e){return e.name}function zs(e){let{next:t}=e;for(;t!==null&&!L(t);)({next:t}=t);return t}function Zs(e){let{prev:t}=e;for(;t!==null&&!L(t);)({prev:t}=t);return t}function Ue(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){let t=e.parent.children;t.splice(t.lastIndexOf(e),1)}}function Vl(e,t){let r=t.prev=e.prev;r&&(r.next=t);let s=t.next=e.next;s&&(s.prev=t);let i=t.parent=e.parent;if(i){let a=i.children;a[a.lastIndexOf(e)]=t,e.parent=null}}function Yl(e,t){if(Ue(t),t.next=null,t.parent=e,e.children.push(t)>1){let r=e.children[e.children.length-2];r.next=t,t.prev=r}else t.prev=null}function Gl(e,t){Ue(t);let{parent:r}=e,s=e.next;if(t.next=s,t.prev=e,e.next=t,t.parent=r,s){if(s.prev=t,r){let i=r.children;i.splice(i.lastIndexOf(s),0,t)}}else r&&r.children.push(t)}function Xl(e,t){if(Ue(t),t.parent=e,t.prev=null,e.children.unshift(t)!==1){let r=e.children[1];r.prev=t,t.next=r}else t.next=null}function Wl(e,t){Ue(t);let{parent:r}=e;if(r){let s=r.children;s.splice(s.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=r,t.prev=e.prev,t.next=e,e.prev=t}function wr(e,t,r=!0,s=1/0){return Array.isArray(t)||(t=[t]),Hr(e,t,r,s)}function Hr(e,t,r,s){let i=[];for(let a of t){if(e(a)&&(i.push(a),--s<=0))break;if(r&&V(a)&&a.children.length>0){let o=Hr(e,a.children,r,s);if(i.push(...o),s-=o.length,s<=0)break}}return i}function Kl(e,t){return t.find(e)}function Js(e,t,r=!0){let s=null;for(let i=0;i<t.length&&!s;i++){let a=t[i];if(L(a))e(a)?s=a:r&&a.children.length>0&&(s=Js(e,a.children,!0));else continue}return s}function Zo(e,t){return t.some(r=>L(r)&&(e(r)||r.children.length>0&&Zo(e,r.children)))}function Ql(e,t){var r;let s=[],i=t.filter(L),a;for(;a=i.shift();){let o=(r=a.children)===null||r===void 0?void 0:r.filter(L);o&&o.length>0&&i.unshift(...o),e(a)&&s.push(a)}return s}var ei={tag_name(e){return typeof e=="function"?t=>L(t)&&e(t.name):e==="*"?L:t=>L(t)&&t.name===e},tag_type(e){return typeof e=="function"?t=>e(t.type):t=>t.type===e},tag_contains(e){return typeof e=="function"?t=>ne(t)&&e(t.data):t=>ne(t)&&t.data===e}};function Jo(e,t){return typeof t=="function"?r=>L(r)&&t(r.attribs[e]):r=>L(r)&&r.attribs[e]===t}function jl(e,t){return r=>e(r)||t(r)}function eu(e){let t=Object.keys(e).map(r=>{let s=e[r];return Object.prototype.hasOwnProperty.call(ei,r)?ei[r](s):Jo(r,s)});return t.length===0?null:t.reduce(jl)}function zl(e,t){let r=eu(e);return r?r(t):!0}function Zl(e,t,r,s=1/0){let i=eu(e);return i?wr(i,t,r,s):[]}function Jl(e,t,r=!0){return Array.isArray(t)||(t=[t]),Js(Jo("id",e),t,r)}function Ct(e,t,r=!0,s=1/0){return wr(ei.tag_name(e),t,r,s)}function e0(e,t,r=!0,s=1/0){return wr(ei.tag_type(e),t,r,s)}function t0(e){let t=e.length;for(;--t>=0;){let r=e[t];if(t>0&&e.lastIndexOf(r,t-1)>=0){e.splice(t,1);continue}for(let s=r.parent;s;s=s.parent)if(e.includes(s)){e.splice(t,1);break}}return e}var he;(function(e){e[e.DISCONNECTED=1]="DISCONNECTED",e[e.PRECEDING=2]="PRECEDING",e[e.FOLLOWING=4]="FOLLOWING",e[e.CONTAINS=8]="CONTAINS",e[e.CONTAINED_BY=16]="CONTAINED_BY"})(he||(he={}));function tu(e,t){let r=[],s=[];if(e===t)return 0;let i=V(e)?e:e.parent;for(;i;)r.unshift(i),i=i.parent;for(i=V(t)?t:t.parent;i;)s.unshift(i),i=i.parent;let a=Math.min(r.length,s.length),o=0;for(;o<a&&r[o]===s[o];)o++;if(o===0)return he.DISCONNECTED;let u=r[o-1],c=u.children,h=r[o],p=s[o];return c.indexOf(h)>c.indexOf(p)?u===t?he.FOLLOWING|he.CONTAINED_BY:he.FOLLOWING:u===e?he.PRECEDING|he.CONTAINS:he.PRECEDING}function et(e){return e=e.filter((t,r,s)=>!s.includes(t,r+1)),e.sort((t,r)=>{let s=tu(t,r);return s&he.PRECEDING?-1:s&he.FOLLOWING?1:0}),e}function Un(e){let t=ti(a0,e);return t?t.name==="feed"?r0(t):s0(t):null}function r0(e){var t;let r=e.children,s={type:"atom",items:Ct("entry",r).map(o=>{var u;let{children:c}=o,h={media:ru(c)};ae(h,"id","id",c),ae(h,"title","title",c);let p=(u=ti("link",c))===null||u===void 0?void 0:u.attribs.href;p&&(h.link=p);let g=Nt("summary",c)||Nt("content",c);g&&(h.description=g);let N=Nt("updated",c);return N&&(h.pubDate=new Date(N)),h})};ae(s,"id","id",r),ae(s,"title","title",r);let i=(t=ti("link",r))===null||t===void 0?void 0:t.attribs.href;i&&(s.link=i),ae(s,"description","subtitle",r);let a=Nt("updated",r);return a&&(s.updated=new Date(a)),ae(s,"author","email",r,!0),s}function s0(e){var t,r;let s=(r=(t=ti("channel",e.children))===null||t===void 0?void 0:t.children)!==null&&r!==void 0?r:[],i={type:e.name.substr(0,3),id:"",items:Ct("item",e.children).map(o=>{let{children:u}=o,c={media:ru(u)};ae(c,"id","guid",u),ae(c,"title","title",u),ae(c,"link","link",u),ae(c,"description","description",u);let h=Nt("pubDate",u);return h&&(c.pubDate=new Date(h)),c})};ae(i,"title","title",s),ae(i,"link","link",s),ae(i,"description","description",s);let a=Nt("lastBuildDate",s);return a&&(i.updated=new Date(a)),ae(i,"author","managingEditor",s,!0),i}var i0=["url","type","lang"],n0=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function ru(e){return Ct("media:content",e).map(t=>{let{attribs:r}=t,s={medium:r.medium,isDefault:!!r.isDefault};for(let i of i0)r[i]&&(s[i]=r[i]);for(let i of n0)r[i]&&(s[i]=parseInt(r[i],10));return r.expression&&(s.expression=r.expression),s})}function ti(e,t){return Ct(e,t,!0,1)[0]}function Nt(e,t,r=!1){return Be(Ct(e,t,r,1)).trim()}function ae(e,t,r,s,i=!1){let a=Nt(r,s,i);a&&(e[t]=a)}function a0(e){return e==="rss"||e==="feed"||e==="rdf:RDF"}function iu(e,t,r){return e?e(t!=null?t:e._root.children,null,void 0,r).toString():""}function o0(e,t){return!t&&typeof e=="object"&&e!=null&&!("length"in e)&&!("type"in e)}function nu(e,t){let r=o0(e)?(t=e,void 0):e,s=I(I(I({},vr),this===null||this===void 0?void 0:this._options),Sr(t!=null?t:{}));return iu(this,r,s)}function au(e){let t=Y(I({},this._options),{xmlMode:!0});return iu(this,e,t)}function tt(e){let t=e||(this?this.root():[]),r="";for(let s=0;s<t.length;s++)r+=Be(t[s]);return r}function u0(e,t,r=typeof t=="boolean"?t:!1){if(!e||typeof e!="string")return null;typeof t=="boolean"&&(r=t);let s=this.load(e,vr,!1);return r||s("script").remove(),s.root()[0].children.slice()}function c0(){return this(this._root)}function Fn(e,t){if(t===e)return!1;let r=t;for(;r&&r!==r.parent;)if(r=r.parent,r===e)return!0;return!1}function l0(e,t){if(!su(e)||!su(t))return;let r=e.length,s=+t.length;for(let i=0;i<s;i++)e[r++]=t[i];return e.length=r,e}function su(e){if(Array.isArray(e))return!0;if(typeof e!="object"||!Object.prototype.hasOwnProperty.call(e,"length")||typeof e.length!="number"||e.length<0)return!1;for(let t=0;t<e.length;t++)if(!(t in e))return!1;return!0}var Yn={};me(Yn,{addClass:()=>pu,attr:()=>h0,data:()=>p0,hasClass:()=>b0,prop:()=>f0,removeAttr:()=>E0,removeClass:()=>mu,toggleClass:()=>Eu,val:()=>m0});function le(e){return e.cheerio!=null}function ou(e){return e.replace(/[_.-](\w|$)/g,(t,r)=>r.toUpperCase())}function uu(e){return e.replace(/[A-Z]/g,"-$&").toLowerCase()}function F(e,t){let r=e.length;for(let s=0;s<r;s++)t(e[s],s);return e}function ri(e){let t="length"in e?Array.prototype.map.call(e,s=>Dr(s,!0)):[Dr(e,!0)],r=new ce(t);return t.forEach(s=>{s.parent=r}),t}var yt;(function(e){e[e.LowerA=97]="LowerA",e[e.LowerZ=122]="LowerZ",e[e.UpperA=65]="UpperA",e[e.UpperZ=90]="UpperZ",e[e.Exclamation=33]="Exclamation"})(yt||(yt={}));function Br(e){let t=e.indexOf("<");if(t<0||t>e.length-3)return!1;let r=e.charCodeAt(t+1);return(r>=yt.LowerA&&r<=yt.LowerZ||r>=yt.UpperA&&r<=yt.UpperZ||r===yt.Exclamation)&&e.includes(">",t+2)}var Zt=Object.prototype.hasOwnProperty,Ur=/\s+/,qn="data-",cu={null:null,true:!0,false:!1},Vn=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,d0=/^{[^]*}$|^\[[^]*]$/;function si(e,t,r){var s;if(!(!e||!L(e))){if((s=e.attribs)!==null&&s!==void 0||(e.attribs={}),!t)return e.attribs;if(Zt.call(e.attribs,t))return!r&&Vn.test(t)?t:e.attribs[t];if(e.name==="option"&&t==="value")return tt(e.children);if(e.name==="input"&&(e.attribs.type==="radio"||e.attribs.type==="checkbox")&&t==="value")return"on"}}function Jt(e,t,r){r===null?fu(e,t):e.attribs[t]=`${r}`}function h0(e,t){if(typeof e=="object"||t!==void 0){if(typeof t=="function"){if(typeof e!="string")throw new Error("Bad combination of arguments.");return F(this,(r,s)=>{L(r)&&Jt(r,e,t.call(r,s,r.attribs[e]))})}return F(this,r=>{L(r)&&(typeof e=="object"?Object.keys(e).forEach(s=>{let i=e[s];Jt(r,s,i)}):Jt(r,e,t))})}return arguments.length>1?this:si(this[0],e,this.options.xmlMode)}function lu(e,t,r){return t in e?e[t]:!r&&Vn.test(t)?si(e,t,!1)!==void 0:si(e,t,r)}function $n(e,t,r,s){t in e?e[t]=r:Jt(e,t,!s&&Vn.test(t)?r?"":null:`${r}`)}function f0(e,t){var r;if(typeof e=="string"&&t===void 0){let s=this[0];if(!s||!L(s))return;switch(e){case"style":{let i=this.css(),a=Object.keys(i);return a.forEach((o,u)=>{i[u]=o}),i.length=a.length,i}case"tagName":case"nodeName":return s.name.toUpperCase();case"href":case"src":{let i=(r=s.attribs)===null||r===void 0?void 0:r[e];return typeof URL!="undefined"&&(e==="href"&&(s.tagName==="a"||s.name==="link")||e==="src"&&(s.tagName==="img"||s.tagName==="iframe"||s.tagName==="audio"||s.tagName==="video"||s.tagName==="source"))&&i!==void 0&&this.options.baseURI?new URL(i,this.options.baseURI).href:i}case"innerText":return kr(s);case"textContent":return Be(s);case"outerHTML":return this.clone().wrap("<container />").parent().html();case"innerHTML":return this.html();default:return lu(s,e,this.options.xmlMode)}}if(typeof e=="object"||t!==void 0){if(typeof t=="function"){if(typeof e=="object")throw new Error("Bad combination of arguments.");return F(this,(s,i)=>{L(s)&&$n(s,e,t.call(s,i,lu(s,e,this.options.xmlMode)),this.options.xmlMode)})}return F(this,s=>{L(s)&&(typeof e=="object"?Object.keys(e).forEach(i=>{let a=e[i];$n(s,i,a,this.options.xmlMode)}):$n(s,e,t,this.options.xmlMode))})}}function du(e,t,r){var s;let i=e;(s=i.data)!==null&&s!==void 0||(i.data={}),typeof t=="object"?Object.assign(i.data,t):typeof t=="string"&&r!==void 0&&(i.data[t]=r)}function hu(e,t){let r,s,i;t==null?(r=Object.keys(e.attribs).filter(a=>a.startsWith(qn)),s=r.map(a=>ou(a.slice(qn.length)))):(r=[qn+uu(t)],s=[t]);for(let a=0;a<r.length;++a){let o=r[a],u=s[a];if(Zt.call(e.attribs,o)&&!Zt.call(e.data,u)){if(i=e.attribs[o],Zt.call(cu,i))i=cu[i];else if(i===String(Number(i)))i=Number(i);else if(d0.test(i))try{i=JSON.parse(i)}catch(c){}e.data[u]=i}}return t==null?e.data:i}function p0(e,t){var r;let s=this[0];if(!s||!L(s))return;let i=s;return(r=i.data)!==null&&r!==void 0||(i.data={}),e?typeof e=="object"||t!==void 0?(F(this,a=>{L(a)&&(typeof e=="object"?du(a,e):du(a,e,t))}),this):Zt.call(i.data,e)?i.data[e]:hu(i,e):hu(i)}function m0(e){let t=arguments.length===0,r=this[0];if(!r||!L(r))return t?void 0:this;switch(r.name){case"textarea":return this.text(e);case"select":{let s=this.find("option:selected");if(!t){if(this.attr("multiple")==null&&typeof e=="object")return this;this.find("option").removeAttr("selected");let i=typeof e!="object"?[e]:e;for(let a=0;a<i.length;a++)this.find(`option[value="${i[a]}"]`).attr("selected","");return this}return this.attr("multiple")?s.toArray().map(i=>tt(i.children)):s.attr("value")}case"input":case"option":return t?this.attr("value"):this.attr("value",e)}}function fu(e,t){!e.attribs||!Zt.call(e.attribs,t)||delete e.attribs[t]}function ii(e){return e?e.trim().split(Ur):[]}function E0(e){let t=ii(e);for(let r=0;r<t.length;r++)F(this,s=>{L(s)&&fu(s,t[r])});return this}function b0(e){return this.toArray().some(t=>{let r=L(t)&&t.attribs.class,s=-1;if(r&&e.length)for(;(s=r.indexOf(e,s+1))>-1;){let i=s+e.length;if((s===0||Ur.test(r[s-1]))&&(i===r.length||Ur.test(r[i])))return!0}return!1})}function pu(e){if(typeof e=="function")return F(this,(s,i)=>{if(L(s)){let a=s.attribs.class||"";pu.call([s],e.call(s,i,a))}});if(!e||typeof e!="string")return this;let t=e.split(Ur),r=this.length;for(let s=0;s<r;s++){let i=this[s];if(!L(i))continue;let a=si(i,"class",!1);if(!a)Jt(i,"class",t.join(" ").trim());else{let o=` ${a} `;for(let u=0;u<t.length;u++){let c=`${t[u]} `;o.includes(` ${c}`)||(o+=c)}Jt(i,"class",o.trim())}}return this}function mu(e){if(typeof e=="function")return F(this,(i,a)=>{L(i)&&mu.call([i],e.call(i,a,i.attribs.class||""))});let t=ii(e),r=t.length,s=arguments.length===0;return F(this,i=>{if(L(i))if(s)i.attribs.class="";else{let a=ii(i.attribs.class),o=!1;for(let u=0;u<r;u++){let c=a.indexOf(t[u]);c>=0&&(a.splice(c,1),o=!0,u--)}o&&(i.attribs.class=a.join(" "))}})}function Eu(e,t){if(typeof e=="function")return F(this,(o,u)=>{L(o)&&Eu.call([o],e.call(o,u,o.attribs.class||"",t),t)});if(!e||typeof e!="string")return this;let r=e.split(Ur),s=r.length,i=typeof t=="boolean"?t?1:-1:0,a=this.length;for(let o=0;o<a;o++){let u=this[o];if(!L(u))continue;let c=ii(u.attribs.class);for(let h=0;h<s;h++){let p=c.indexOf(r[h]);i>=0&&p<0?c.push(r[h]):i<=0&&p>=0&&c.splice(p,1)}u.attribs.class=c.join(" ")}return this}var fa={};me(fa,{add:()=>Ed,addBack:()=>bd,children:()=>ed,closest:()=>X0,contents:()=>td,each:()=>rd,end:()=>md,eq:()=>ld,filter:()=>id,filterArray:()=>ha,find:()=>$0,first:()=>ud,get:()=>dd,has:()=>od,index:()=>fd,is:()=>nd,last:()=>cd,map:()=>sd,next:()=>W0,nextAll:()=>K0,nextUntil:()=>Q0,not:()=>ad,parent:()=>V0,parents:()=>Y0,parentsUntil:()=>G0,prev:()=>j0,prevAll:()=>z0,prevUntil:()=>Z0,siblings:()=>J0,slice:()=>pd,toArray:()=>hd});var D;(function(e){e.Attribute="attribute",e.Pseudo="pseudo",e.PseudoElement="pseudo-element",e.Tag="tag",e.Universal="universal",e.Adjacent="adjacent",e.Child="child",e.Descendant="descendant",e.Parent="parent",e.Sibling="sibling",e.ColumnCombinator="column-combinator"})(D||(D={}));var X;(function(e){e.Any="any",e.Element="element",e.End="end",e.Equals="equals",e.Exists="exists",e.Hyphen="hyphen",e.Not="not",e.Start="start"})(X||(X={}));var bu=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,T0=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,g0=new Map([[126,X.Element],[94,X.Start],[36,X.End],[42,X.Any],[33,X.Not],[124,X.Hyphen]]),_0=new Set(["has","not","matches","is","where","host","host-context"]);function vt(e){switch(e.type){case D.Adjacent:case D.Child:case D.Descendant:case D.Parent:case D.Sibling:case D.ColumnCombinator:return!0;default:return!1}}var A0=new Set(["contains","icontains"]);function x0(e,t,r){let s=parseInt(t,16)-65536;return s!==s||r?t:s<0?String.fromCharCode(s+65536):String.fromCharCode(s>>10|55296,s&1023|56320)}function Fr(e){return e.replace(T0,x0)}function Gn(e){return e===39||e===34}function Tu(e){return e===32||e===9||e===10||e===12||e===13}function qe(e){let t=[],r=gu(t,`${e}`,0);if(r<e.length)throw new Error(`Unmatched selector: ${e.slice(r)}`);return t}function gu(e,t,r){let s=[];function i(N){let y=t.slice(r+N).match(bu);if(!y)throw new Error(`Expected name, found ${t.slice(r)}`);let[R]=y;return r+=N+R.length,Fr(R)}function a(N){for(r+=N;r<t.length&&Tu(t.charCodeAt(r));)r++}function o(){r+=1;let N=r,y=1;for(;y>0&&r<t.length;r++)t.charCodeAt(r)===40&&!u(r)?y++:t.charCodeAt(r)===41&&!u(r)&&y--;if(y)throw new Error("Parenthesis not matched");return Fr(t.slice(N,r-1))}function u(N){let y=0;for(;t.charCodeAt(--N)===92;)y++;return(y&1)===1}function c(){if(s.length>0&&vt(s[s.length-1]))throw new Error("Did not expect successive traversals.")}function h(N){if(s.length>0&&s[s.length-1].type===D.Descendant){s[s.length-1].type=N;return}c(),s.push({type:N})}function p(N,y){s.push({type:D.Attribute,name:N,action:y,value:i(1),namespace:null,ignoreCase:"quirks"})}function g(){if(s.length&&s[s.length-1].type===D.Descendant&&s.pop(),s.length===0)throw new Error("Empty sub-selector");e.push(s)}if(a(0),t.length===r)return r;e:for(;r<t.length;){let N=t.charCodeAt(r);switch(N){case 32:case 9:case 10:case 12:case 13:{(s.length===0||s[0].type!==D.Descendant)&&(c(),s.push({type:D.Descendant})),a(1);break}case 62:{h(D.Child),a(1);break}case 60:{h(D.Parent),a(1);break}case 126:{h(D.Sibling),a(1);break}case 43:{h(D.Adjacent),a(1);break}case 46:{p("class",X.Element);break}case 35:{p("id",X.Equals);break}case 91:{a(1);let y,R=null;t.charCodeAt(r)===124?y=i(1):t.startsWith("*|",r)?(R="*",y=i(2)):(y=i(0),t.charCodeAt(r)===124&&t.charCodeAt(r+1)!==61&&(R=y,y=i(1))),a(0);let O=X.Exists,G=g0.get(t.charCodeAt(r));if(G){if(O=G,t.charCodeAt(r+1)!==61)throw new Error("Expected `=`");a(2)}else t.charCodeAt(r)===61&&(O=X.Equals,a(1));let Le="",Ye=null;if(O!=="exists"){if(Gn(t.charCodeAt(r))){let ls=t.charCodeAt(r),lt=r+1;for(;lt<t.length&&(t.charCodeAt(lt)!==ls||u(lt));)lt+=1;if(t.charCodeAt(lt)!==ls)throw new Error("Attribute value didn't end");Le=Fr(t.slice(r+1,lt)),r=lt+1}else{let ls=r;for(;r<t.length&&(!Tu(t.charCodeAt(r))&&t.charCodeAt(r)!==93||u(r));)r+=1;Le=Fr(t.slice(ls,r))}a(0);let ur=t.charCodeAt(r)|32;ur===115?(Ye=!1,a(1)):ur===105&&(Ye=!0,a(1))}if(t.charCodeAt(r)!==93)throw new Error("Attribute selector didn't terminate");r+=1;let ct={type:D.Attribute,name:y,action:O,value:Le,namespace:R,ignoreCase:Ye};s.push(ct);break}case 58:{if(t.charCodeAt(r+1)===58){s.push({type:D.PseudoElement,name:i(2).toLowerCase(),data:t.charCodeAt(r)===40?o():null});continue}let y=i(1).toLowerCase(),R=null;if(t.charCodeAt(r)===40)if(_0.has(y)){if(Gn(t.charCodeAt(r+1)))throw new Error(`Pseudo-selector ${y} cannot be quoted`);if(R=[],r=gu(R,t,r+1),t.charCodeAt(r)!==41)throw new Error(`Missing closing parenthesis in :${y} (${t})`);r+=1}else{if(R=o(),A0.has(y)){let O=R.charCodeAt(0);O===R.charCodeAt(R.length-1)&&Gn(O)&&(R=R.slice(1,-1))}R=Fr(R)}s.push({type:D.Pseudo,name:y,data:R});break}case 44:{g(),s=[],a(1);break}default:{if(t.startsWith("/*",r)){let O=t.indexOf("*/",r+2);if(O<0)throw new Error("Comment was not terminated");r=O+2,s.length===0&&a(0);break}let y=null,R;if(N===42)r+=1,R="*";else if(N===124){if(R="",t.charCodeAt(r+1)===124){h(D.ColumnCombinator),a(2);break}}else if(bu.test(t.slice(r)))R=i(0);else break e;t.charCodeAt(r)===124&&t.charCodeAt(r+1)!==124&&(y=R,t.charCodeAt(r+1)===42?(R="*",r+=2):R=i(1)),s.push(R==="*"?{type:D.Universal,namespace:y}:{type:D.Tag,name:R,namespace:y})}}}return g(),r}var ra=dt(st(),1);var $e=dt(st(),1);var Au=new Map([[D.Universal,50],[D.Tag,30],[D.Attribute,1],[D.Pseudo,0]]);function qr(e){return!Au.has(e.type)}var C0=new Map([[X.Exists,10],[X.Equals,8],[X.Not,7],[X.Start,6],[X.End,6],[X.Any,5]]);function Xn(e){let t=e.map(xu);for(let r=1;r<e.length;r++){let s=t[r];if(!(s<0))for(let i=r-1;i>=0&&s<t[i];i--){let a=e[i+1];e[i+1]=e[i],e[i]=a,t[i+1]=t[i],t[i]=s}}}function xu(e){var t,r;let s=(t=Au.get(e.type))!==null&&t!==void 0?t:-1;return e.type===D.Attribute?(s=(r=C0.get(e.action))!==null&&r!==void 0?r:4,e.action===X.Equals&&e.name==="id"&&(s=9),e.ignoreCase&&(s>>=1)):e.type===D.Pseudo&&(e.data?e.name==="has"||e.name==="contains"?s=0:Array.isArray(e.data)?(s=Math.min(...e.data.map(i=>Math.min(...i.map(xu)))),s<0&&(s=0)):s=2:s=3),s}var $r=dt(st(),1),N0=/[-[\]{}()*+?.,\\^$|#\s]/g;function Cu(e){return e.replace(N0,"\\$&")}var y0=new Set(["accept","accept-charset","align","alink","axis","bgcolor","charset","checked","clear","codetype","color","compact","declare","defer","dir","direction","disabled","enctype","face","frame","hreflang","http-equiv","lang","language","link","media","method","multiple","nohref","noresize","noshade","nowrap","readonly","rel","rev","rules","scope","scrolling","selected","shape","target","text","type","valign","valuetype","vlink"]);function St(e,t){return typeof e.ignoreCase=="boolean"?e.ignoreCase:e.ignoreCase==="quirks"?!!t.quirksMode:!t.xmlMode&&y0.has(e.name)}var Nu={equals(e,t,r){let{adapter:s}=r,{name:i}=t,{value:a}=t;return St(t,r)?(a=a.toLowerCase(),o=>{let u=s.getAttributeValue(o,i);return u!=null&&u.length===a.length&&u.toLowerCase()===a&&e(o)}):o=>s.getAttributeValue(o,i)===a&&e(o)},hyphen(e,t,r){let{adapter:s}=r,{name:i}=t,{value:a}=t,o=a.length;return St(t,r)?(a=a.toLowerCase(),function(c){let h=s.getAttributeValue(c,i);return h!=null&&(h.length===o||h.charAt(o)==="-")&&h.substr(0,o).toLowerCase()===a&&e(c)}):function(c){let h=s.getAttributeValue(c,i);return h!=null&&(h.length===o||h.charAt(o)==="-")&&h.substr(0,o)===a&&e(c)}},element(e,t,r){let{adapter:s}=r,{name:i,value:a}=t;if(/\s/.test(a))return $r.default.falseFunc;let o=new RegExp(`(?:^|\\s)${Cu(a)}(?:$|\\s)`,St(t,r)?"i":"");return function(c){let h=s.getAttributeValue(c,i);return h!=null&&h.length>=a.length&&o.test(h)&&e(c)}},exists(e,{name:t},{adapter:r}){return s=>r.hasAttrib(s,t)&&e(s)},start(e,t,r){let{adapter:s}=r,{name:i}=t,{value:a}=t,o=a.length;return o===0?$r.default.falseFunc:St(t,r)?(a=a.toLowerCase(),u=>{let c=s.getAttributeValue(u,i);return c!=null&&c.length>=o&&c.substr(0,o).toLowerCase()===a&&e(u)}):u=>{var c;return!!(!((c=s.getAttributeValue(u,i))===null||c===void 0)&&c.startsWith(a))&&e(u)}},end(e,t,r){let{adapter:s}=r,{name:i}=t,{value:a}=t,o=-a.length;return o===0?$r.default.falseFunc:St(t,r)?(a=a.toLowerCase(),u=>{var c;return((c=s.getAttributeValue(u,i))===null||c===void 0?void 0:c.substr(o).toLowerCase())===a&&e(u)}):u=>{var c;return!!(!((c=s.getAttributeValue(u,i))===null||c===void 0)&&c.endsWith(a))&&e(u)}},any(e,t,r){let{adapter:s}=r,{name:i,value:a}=t;if(a==="")return $r.default.falseFunc;if(St(t,r)){let o=new RegExp(Cu(a),"i");return function(c){let h=s.getAttributeValue(c,i);return h!=null&&h.length>=a.length&&o.test(h)&&e(c)}}return o=>{var u;return!!(!((u=s.getAttributeValue(o,i))===null||u===void 0)&&u.includes(a))&&e(o)}},not(e,t,r){let{adapter:s}=r,{name:i}=t,{value:a}=t;return a===""?o=>!!s.getAttributeValue(o,i)&&e(o):St(t,r)?(a=a.toLowerCase(),o=>{let u=s.getAttributeValue(o,i);return(u==null||u.length!==a.length||u.toLowerCase()!==a)&&e(o)}):o=>s.getAttributeValue(o,i)!==a&&e(o)}};var v0=new Set([9,10,12,13,32]),yu="0".charCodeAt(0),S0="9".charCodeAt(0);function vu(e){if(e=e.trim().toLowerCase(),e==="even")return[2,0];if(e==="odd")return[2,1];let t=0,r=0,s=a(),i=o();if(t<e.length&&e.charAt(t)==="n"&&(t++,r=s*(i!=null?i:1),u(),t<e.length?(s=a(),u(),i=o()):s=i=0),i===null||t<e.length)throw new Error(`n-th rule couldn't be parsed ('${e}')`);return[r,s*i];function a(){return e.charAt(t)==="-"?(t++,-1):(e.charAt(t)==="+"&&t++,1)}function o(){let c=t,h=0;for(;t<e.length&&e.charCodeAt(t)>=yu&&e.charCodeAt(t)<=S0;)h=h*10+(e.charCodeAt(t)-yu),t++;return t===c?null:h}function u(){for(;t<e.length&&v0.has(e.charCodeAt(t));)t++}}var Wn=dt(st(),1);function Su(e){let t=e[0],r=e[1]-1;if(r<0&&t<=0)return Wn.default.falseFunc;if(t===-1)return a=>a<=r;if(t===0)return a=>a===r;if(t===1)return r<0?Wn.default.trueFunc:a=>a>=r;let s=Math.abs(t),i=(r%s+s)%s;return t>1?a=>a>=r&&a%s===i:a=>a<=r&&a%s===i}function er(e){return Su(vu(e))}var oe=dt(st(),1);function ni(e,t){return r=>{let s=t.getParent(r);return s!=null&&t.isTag(s)&&e(r)}}var tr={contains(e,t,{adapter:r}){return function(i){return e(i)&&r.getText(i).includes(t)}},icontains(e,t,{adapter:r}){let s=t.toLowerCase();return function(a){return e(a)&&r.getText(a).toLowerCase().includes(s)}},"nth-child"(e,t,{adapter:r,equals:s}){let i=er(t);return i===oe.default.falseFunc?oe.default.falseFunc:i===oe.default.trueFunc?ni(e,r):function(o){let u=r.getSiblings(o),c=0;for(let h=0;h<u.length&&!s(o,u[h]);h++)r.isTag(u[h])&&c++;return i(c)&&e(o)}},"nth-last-child"(e,t,{adapter:r,equals:s}){let i=er(t);return i===oe.default.falseFunc?oe.default.falseFunc:i===oe.default.trueFunc?ni(e,r):function(o){let u=r.getSiblings(o),c=0;for(let h=u.length-1;h>=0&&!s(o,u[h]);h--)r.isTag(u[h])&&c++;return i(c)&&e(o)}},"nth-of-type"(e,t,{adapter:r,equals:s}){let i=er(t);return i===oe.default.falseFunc?oe.default.falseFunc:i===oe.default.trueFunc?ni(e,r):function(o){let u=r.getSiblings(o),c=0;for(let h=0;h<u.length;h++){let p=u[h];if(s(o,p))break;r.isTag(p)&&r.getName(p)===r.getName(o)&&c++}return i(c)&&e(o)}},"nth-last-of-type"(e,t,{adapter:r,equals:s}){let i=er(t);return i===oe.default.falseFunc?oe.default.falseFunc:i===oe.default.trueFunc?ni(e,r):function(o){let u=r.getSiblings(o),c=0;for(let h=u.length-1;h>=0;h--){let p=u[h];if(s(o,p))break;r.isTag(p)&&r.getName(p)===r.getName(o)&&c++}return i(c)&&e(o)}},root(e,t,{adapter:r}){return s=>{let i=r.getParent(s);return(i==null||!r.isTag(i))&&e(s)}},scope(e,t,r,s){let{equals:i}=r;return!s||s.length===0?tr.root(e,t,r):s.length===1?a=>i(s[0],a)&&e(a):a=>s.includes(a)&&e(a)},hover:Kn("isHovered"),visited:Kn("isVisited"),active:Kn("isActive")};function Kn(e){return function(r,s,{adapter:i}){let a=i[e];return typeof a!="function"?oe.default.falseFunc:function(u){return a(u)&&r(u)}}}var Vr={empty(e,{adapter:t}){return!t.getChildren(e).some(r=>t.isTag(r)||t.getText(r)!=="")},"first-child"(e,{adapter:t,equals:r}){if(t.prevElementSibling)return t.prevElementSibling(e)==null;let s=t.getSiblings(e).find(i=>t.isTag(i));return s!=null&&r(e,s)},"last-child"(e,{adapter:t,equals:r}){let s=t.getSiblings(e);for(let i=s.length-1;i>=0;i--){if(r(e,s[i]))return!0;if(t.isTag(s[i]))break}return!1},"first-of-type"(e,{adapter:t,equals:r}){let s=t.getSiblings(e),i=t.getName(e);for(let a=0;a<s.length;a++){let o=s[a];if(r(e,o))return!0;if(t.isTag(o)&&t.getName(o)===i)break}return!1},"last-of-type"(e,{adapter:t,equals:r}){let s=t.getSiblings(e),i=t.getName(e);for(let a=s.length-1;a>=0;a--){let o=s[a];if(r(e,o))return!0;if(t.isTag(o)&&t.getName(o)===i)break}return!1},"only-of-type"(e,{adapter:t,equals:r}){let s=t.getName(e);return t.getSiblings(e).every(i=>r(e,i)||!t.isTag(i)||t.getName(i)!==s)},"only-child"(e,{adapter:t,equals:r}){return t.getSiblings(e).every(s=>r(e,s)||!t.isTag(s))}};function Qn(e,t,r,s){if(r===null){if(e.length>s)throw new Error(`Pseudo-class :${t} requires an argument`)}else if(e.length===s)throw new Error(`Pseudo-class :${t} doesn't have any arguments`)}var ai={"any-link":":is(a, area, link)[href]",link:":any-link:not(:visited)",disabled:`:is(
|
|
2687
440
|
:is(button, input, select, textarea, optgroup, option)[disabled],
|
|
2688
441
|
optgroup[disabled] > option,
|
|
2689
442
|
fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
|
|
2690
|
-
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var me=ct(tt(),1);var za={};function Ja(e,t){return e===me.default.falseFunc?me.default.falseFunc:r=>t.isTag(r)&&e(r)}function Za(e,t){let r=t.getSiblings(e);if(r.length<=1)return[];let i=r.indexOf(e);return i<0||i===r.length-1?[]:r.slice(i+1).filter(t.isTag)}function ja(e){return{xmlMode:!!e.xmlMode,lowerCaseAttributeNames:!!e.lowerCaseAttributeNames,lowerCaseTags:!!e.lowerCaseTags,quirksMode:!!e.quirksMode,cacheResults:!!e.cacheResults,pseudos:e.pseudos,adapter:e.adapter,equals:e.equals}}var Qa=(e,t,r,i,s)=>{let n=s(t,ja(r),i);return n===me.default.trueFunc?e:n===me.default.falseFunc?me.default.falseFunc:o=>n(o)&&e(o)},ls={is:Qa,matches:Qa,where:Qa,not(e,t,r,i,s){let n=s(t,ja(r),i);return n===me.default.falseFunc?e:n===me.default.trueFunc?me.default.falseFunc:o=>!n(o)&&e(o)},has(e,t,r,i,s){let{adapter:n}=r,o=ja(r);o.relativeSelector=!0;let u=t.some(p=>p.some(Fr))?[za]:void 0,c=s(t,o,u);if(c===me.default.falseFunc)return me.default.falseFunc;let h=Ja(c,n);if(u&&c!==me.default.trueFunc){let{shouldTestNextSiblings:p=!1}=c;return T=>{if(!e(T))return!1;u[0]=T;let x=n.getChildren(T),_=p?[...x,...Za(T,n)]:x;return n.existsOne(h,_)}}return p=>e(p)&&n.existsOne(h,n.getChildren(p))}};function Du(e,t,r,i,s){var n;let{name:o,data:u}=t;if(Array.isArray(u)){if(!(o in ls))throw new Error(`Unknown pseudo-class :${o}(${u})`);return ls[o](e,u,r,i,s)}let c=(n=r.pseudos)===null||n===void 0?void 0:n[o],h=typeof c=="string"?c:cs[o];if(typeof h=="string"){if(u!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let p=Ye(h);return ls.is(e,p,r,i,s)}if(typeof c=="function")return Ka(c,o,u,1),p=>c(p,u)&&e(p);if(o in tr)return tr[o](e,u,r,i);if(o in Vr){let p=Vr[o];return Ka(p,o,u,2),T=>p(T,r,u)&&e(T)}throw new Error(`Unknown pseudo-class :${o}`)}function en(e,t){let r=t.getParent(e);return r&&t.isTag(r)?r:null}function Ou(e,t,r,i,s){let{adapter:n,equals:o}=r;switch(t.type){case D.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case D.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case D.Attribute:{if(t.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(t.name=t.name.toLowerCase()),Su[t.action](e,t,r)}case D.Pseudo:return Du(e,t,r,i,s);case D.Tag:{if(t.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:u}=t;return(!r.xmlMode||r.lowerCaseTags)&&(u=u.toLowerCase()),function(h){return n.getName(h)===u&&e(h)}}case D.Descendant:{if(r.cacheResults===!1||typeof WeakSet=="undefined")return function(h){let p=h;for(;p=en(p,n);)if(e(p))return!0;return!1};let u=new WeakSet;return function(h){let p=h;for(;p=en(p,n);)if(!u.has(p)){if(n.isTag(p)&&e(p))return!0;u.add(p)}return!1}}case"_flexibleDescendant":return function(c){let h=c;do if(e(h))return!0;while(h=en(h,n));return!1};case D.Parent:return function(c){return n.getChildren(c).some(h=>n.isTag(h)&&e(h))};case D.Child:return function(c){let h=n.getParent(c);return h!=null&&n.isTag(h)&&e(h)};case D.Sibling:return function(c){let h=n.getSiblings(c);for(let p=0;p<h.length;p++){let T=h[p];if(o(c,T))break;if(n.isTag(T)&&e(T))return!0}return!1};case D.Adjacent:return n.prevElementSibling?function(c){let h=n.prevElementSibling(c);return h!=null&&e(h)}:function(c){let h=n.getSiblings(c),p;for(let T=0;T<h.length;T++){let x=h[T];if(o(c,x))break;n.isTag(x)&&(p=x)}return!!p&&e(p)};case D.Universal:{if(t.namespace!=null&&t.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return e}}}function ku(e,t,r){let i=ds(e,t,r);return Ja(i,t.adapter)}function ds(e,t,r){let i=typeof e=="string"?Ye(e):e;return hs(i,t,r)}function Mu(e){return e.type===D.Pseudo&&(e.name==="scope"||Array.isArray(e.data)&&e.data.some(t=>t.some(Mu)))}var k0={type:D.Descendant},M0={type:"_flexibleDescendant"},P0={type:D.Pseudo,name:"scope",data:null};function q0(e,{adapter:t},r){let i=!!(r!=null&&r.every(s=>{let n=t.isTag(s)&&t.getParent(s);return s===za||n&&t.isTag(n)}));for(let s of e){if(!(s.length>0&&Fr(s[0])&&s[0].type!==D.Descendant))if(i&&!s.some(Mu))s.unshift(k0);else continue;s.unshift(P0)}}function hs(e,t,r){var i;e.forEach(Ga),r=(i=t.context)!==null&&i!==void 0?i:r;let s=Array.isArray(r),n=r&&(Array.isArray(r)?r:[r]);if(t.relativeSelector!==!1)q0(e,t,n);else if(e.some(c=>c.length>0&&Fr(c[0])))throw new Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");let o=!1,u=e.map(c=>{if(c.length>=2){let[h,p]=c;h.type!==D.Pseudo||h.name!=="scope"||(s&&p.type===D.Descendant?c[1]=M0:(p.type===D.Adjacent||p.type===D.Sibling)&&(o=!0))}return H0(c,t,n)}).reduce(B0,Ge.default.falseFunc);return u.shouldTestNextSiblings=o,u}function H0(e,t,r){var i;return e.reduce((s,n)=>s===Ge.default.falseFunc?Ge.default.falseFunc:Ou(s,n,t,r,hs),(i=t.rootFunc)!==null&&i!==void 0?i:Ge.default.trueFunc)}function B0(e,t){return t===Ge.default.falseFunc||e===Ge.default.trueFunc?e:e===Ge.default.falseFunc||t===Ge.default.trueFunc?t:function(i){return e(i)||t(i)}}var Pu=(e,t)=>e===t,U0={adapter:Ve,equals:Pu};function qu(e){var t,r,i,s;let n=e!=null?e:U0;return(t=n.adapter)!==null&&t!==void 0||(n.adapter=Ve),(r=n.equals)!==null&&r!==void 0||(n.equals=(s=(i=n.adapter)===null||i===void 0?void 0:i.equals)!==null&&s!==void 0?s:Pu),n}function rn(e){return function(r,i,s){let n=qu(i);return e(r,n,s)}}var pA=rn(ku),mA=rn(ds),fs=rn(hs);function Hu(e){return function(r,i,s){let n=qu(s);typeof r!="function"&&(r=ds(r,n,i));let o=ps(i,n.adapter,r.shouldTestNextSiblings);return e(r,o,n)}}function ps(e,t,r=!1){return r&&(e=F0(e,t)),Array.isArray(e)?t.removeSubsets(e):t.getChildren(e)}function F0(e,t){let r=Array.isArray(e)?e.slice(0):[e],i=r.length;for(let s=0;s<i;s++){let n=Za(r[s],t);r.push(...n)}return r}var gA=Hu((e,t,r)=>e===tn.default.falseFunc||!t||t.length===0?[]:r.adapter.findAll(e,t)),bA=Hu((e,t,r)=>e===tn.default.falseFunc||!t||t.length===0?null:r.adapter.findOne(e,t));var gs=ct(tt(),1);var $0=new Set(["first","last","eq","gt","nth","lt","even","odd"]);function rr(e){return e.type!=="pseudo"?!1:$0.has(e.name)?!0:e.name==="not"&&Array.isArray(e.data)?e.data.some(t=>t.some(rr)):!1}function Bu(e,t,r){let i=t!=null?parseInt(t,10):NaN;switch(e){case"first":return 1;case"nth":case"eq":return isFinite(i)?i>=0?i+1:1/0:0;case"lt":return isFinite(i)?i>=0?Math.min(i,r):1/0:0;case"gt":return isFinite(i)?1/0:0;case"odd":return 2*r;case"even":return 2*r-1;case"last":case"not":return 1/0}}function Uu(e){for(;e.parent;)e=e.parent;return e}function ms(e){let t=[],r=[];for(let i of e)i.some(rr)?t.push(i):r.push(i);return[r,t]}var V0={type:D.Universal,namespace:null},Y0={type:D.Pseudo,name:"scope",data:null};function nn(e,t,r={}){return on([e],t,r)}function on(e,t,r={}){if(typeof t=="function")return e.some(t);let[i,s]=ms(Ye(t));return i.length>0&&e.some(fs(i,r))||s.some(n=>$u(n,e,r).length>0)}function G0(e,t,r,i){let s=typeof r=="string"?parseInt(r,10):NaN;switch(e){case"first":case"lt":return t;case"last":return t.length>0?[t[t.length-1]]:t;case"nth":case"eq":return isFinite(s)&&Math.abs(s)<t.length?[s<0?t[t.length+s]:t[s]]:[];case"gt":return isFinite(s)?t.slice(s+1):[];case"even":return t.filter((n,o)=>o%2===0);case"odd":return t.filter((n,o)=>o%2===1);case"not":{let n=new Set(Fu(r,t,i));return t.filter(o=>!n.has(o))}}}function un(e,t,r={}){return Fu(Ye(e),t,r)}function Fu(e,t,r){if(t.length===0)return[];let[i,s]=ms(e),n;if(i.length){let o=an(t,i,r);if(s.length===0)return o;o.length&&(n=new Set(o))}for(let o=0;o<s.length&&(n==null?void 0:n.size)!==t.length;o++){let u=s[o];if((n?t.filter(p=>L(p)&&!n.has(p)):t).length===0)break;let h=$u(u,t,r);if(h.length)if(n)h.forEach(p=>n.add(p));else{if(o===s.length-1)return h;n=new Set(h)}}return typeof n!="undefined"?n.size===t.length?t:t.filter(o=>n.has(o)):[]}function $u(e,t,r){var i;if(e.some(Nt)){let s=(i=r.root)!==null&&i!==void 0?i:Uu(t[0]),n=$(R({},r),{context:t,relativeSelector:!1});return e.push(Y0),bs(s,e,n,!0,t.length)}return bs(t,e,r,!1,t.length)}function Vu(e,t,r={},i=1/0){if(typeof e=="function")return Yu(t,e);let[s,n]=ms(Ye(e)),o=n.map(u=>bs(t,u,r,!0,i));return s.length&&o.push(sn(t,s,r,i)),o.length===0?[]:o.length===1?o[0]:ze(o.reduce((u,c)=>[...u,...c]))}function bs(e,t,r,i,s){let n=t.findIndex(rr),o=t.slice(0,n),u=t[n],c=t.length-1===n?s:1/0,h=Bu(u.name,u.data,c);if(h===0)return[];let T=(o.length===0&&!Array.isArray(e)?zt(e).filter(L):o.length===0?(Array.isArray(e)?e:[e]).filter(L):i||o.some(Nt)?sn(e,[o],r,h):an(e,[o],r)).slice(0,h),x=G0(u.name,T,u.data,r);if(x.length===0||t.length===n+1)return x;let _=t.slice(n+1),C=_.some(Nt);if(C){if(Nt(_[0])){let{type:I}=_[0];(I===D.Sibling||I===D.Adjacent)&&(x=ps(x,Ve,!0)),_.unshift(V0)}r=$(R({},r),{relativeSelector:!1,rootFunc:I=>x.includes(I)})}else r.rootFunc&&r.rootFunc!==gs.trueFunc&&(r=$(R({},r),{rootFunc:gs.trueFunc}));return _.some(rr)?bs(x,_,r,!1,s):C?sn(x,[_],r,s):an(x,[_],r)}function sn(e,t,r,i){let s=fs(t,r,e);return Yu(e,s,i)}function Yu(e,t,r=1/0){let i=ps(e,Ve,t.shouldTestNextSiblings);return ts(s=>L(s)&&t(s),i,!0,r)}function an(e,t,r){let i=(Array.isArray(e)?e:[e]).filter(L);if(i.length===0)return i;let s=fs(t,r);return s===gs.trueFunc?i:i.filter(s)}var W0=/^\s*[~+]/;function K0(e){var t;if(!e)return this._make([]);let r=this.toArray();if(typeof e!="string"){let n=le(e)?e.toArray():[e];return this._make(n.filter(o=>r.some(u=>Ba(u,o))))}let i=W0.test(e)?r:this.children().toArray(),s={context:r,root:(t=this._root)===null||t===void 0?void 0:t[0],xmlMode:this.options.xmlMode,lowerCaseTags:this.options.lowerCaseTags,lowerCaseAttributeNames:this.options.lowerCaseAttributeNames,pseudos:this.options.pseudos,quirksMode:this.options.quirksMode};return this._make(Vu(e,i,s))}function cn(e){return function(t,...r){return function(i){var s;let n=e(t,this);return i&&(n=hn(n,i,this.options.xmlMode,(s=this._root)===null||s===void 0?void 0:s[0])),this._make(this.length>1&&n.length>1?r.reduce((o,u)=>u(o),n):n)}}}var Yr=cn((e,t)=>{let r=[];for(let i=0;i<t.length;i++){let s=e(t[i]);r.push(s)}return new Array().concat(...r)}),ln=cn((e,t)=>{let r=[];for(let i=0;i<t.length;i++){let s=e(t[i]);s!==null&&r.push(s)}return r});function dn(e,...t){let r=null,i=cn((s,n)=>{let o=[];return B(n,u=>{for(let c;(c=s(u))&&!(r!=null&&r(c,o.length));u=c)o.push(c)}),o})(e,...t);return function(s,n){r=typeof s=="string"?u=>nn(u,s,this.options):s?Gr(s):null;let o=i.call(this,n);return r=null,o}}function ir(e){return Array.from(new Set(e))}var Q0=ln(({parent:e})=>e&&!xe(e)?e:null,ir),j0=Yr(e=>{let t=[];for(;e.parent&&!xe(e.parent);)t.push(e.parent),e=e.parent;return t},ze,e=>e.reverse()),z0=dn(({parent:e})=>e&&!xe(e)?e:null,ze,e=>e.reverse());function J0(e){var t;let r=[];if(!e)return this._make(r);let i={xmlMode:this.options.xmlMode,root:(t=this._root)===null||t===void 0?void 0:t[0]},s=typeof e=="string"?n=>nn(n,e,i):Gr(e);return B(this,n=>{for(;n&&L(n);){if(s(n,0)){r.includes(n)||r.push(n);break}n=n.parent}}),this._make(r)}var Z0=ln(e=>Zi(e)),ed=Yr(e=>{let t=[];for(;e.next;)e=e.next,L(e)&&t.push(e);return t},ir),td=dn(e=>Zi(e),ir),rd=ln(e=>es(e)),id=Yr(e=>{let t=[];for(;e.prev;)e=e.prev,L(e)&&t.push(e);return t},ir),sd=dn(e=>es(e),ir),ad=Yr(e=>qa(e).filter(t=>L(t)&&t!==e),ze),nd=Yr(e=>zt(e).filter(L),ir);function od(){let e=this.toArray().reduce((t,r)=>F(r)?t.concat(r.children):t,[]);return this._make(e)}function ud(e){let t=0,r=this.length;for(;t<r&&e.call(this[t],t,this[t])!==!1;)++t;return this}function cd(e){let t=[];for(let r=0;r<this.length;r++){let i=this[r],s=e.call(i,r,i);s!=null&&(t=t.concat(s))}return this._make(t)}function Gr(e){return typeof e=="function"?(t,r)=>e.call(t,r,t):le(e)?t=>Array.prototype.includes.call(e,t):function(t){return e===t}}function ld(e){var t;return this._make(hn(this.toArray(),e,this.options.xmlMode,(t=this._root)===null||t===void 0?void 0:t[0]))}function hn(e,t,r,i){return typeof t=="string"?un(t,e,{xmlMode:r,root:i}):e.filter(Gr(t))}function dd(e){let t=this.toArray();return typeof e=="string"?on(t.filter(L),e,this.options):e?t.some(Gr(e)):!1}function hd(e){let t=this.toArray();if(typeof e=="string"){let r=new Set(un(e,t,this.options));t=t.filter(i=>!r.has(i))}else{let r=Gr(e);t=t.filter((i,s)=>!r(i,s))}return this._make(t)}function fd(e){return this.filter(typeof e=="string"?`:has(${e})`:(t,r)=>this._make(r).find(e).length>0)}function pd(){return this.length>1?this._make(this[0]):this}function md(){return this.length>0?this._make(this[this.length-1]):this}function gd(e){var t;return e=+e,e===0&&this.length<=1?this:(e<0&&(e=this.length+e),this._make((t=this[e])!==null&&t!==void 0?t:[]))}function bd(e){return e==null?this.toArray():this[e<0?this.length+e:e]}function Ed(){return Array.prototype.slice.call(this)}function Td(e){let t,r;return e==null?(t=this.parent().children(),r=this[0]):typeof e=="string"?(t=this._make(e),r=this[0]):(t=this,r=le(e)?e[0]:e),Array.prototype.indexOf.call(t,r)}function wd(e,t){return this._make(Array.prototype.slice.call(this,e,t))}function xd(){var e;return(e=this.prevObject)!==null&&e!==void 0?e:this._make([])}function vd(e,t){let r=this._make(e,t),i=ze([...this.get(),...r.get()]);return this._make(i)}function _d(e){return this.prevObject?this.add(e?this.prevObject.filter(e):this.prevObject):this}var pn={};Ee(pn,{_makeDomArray:()=>Ad,after:()=>Od,append:()=>Nd,appendTo:()=>yd,before:()=>Md,clone:()=>Vd,empty:()=>Bd,html:()=>Ud,insertAfter:()=>kd,insertBefore:()=>Pd,prepend:()=>Sd,prependTo:()=>Cd,remove:()=>qd,replaceWith:()=>Hd,text:()=>$d,toString:()=>Fd,unwrap:()=>Ld,wrap:()=>Id,wrapAll:()=>Dd,wrapInner:()=>Rd});function Gu(e){return function(r,i,s,n){if(typeof Buffer!="undefined"&&Buffer.isBuffer(r)&&(r=r.toString()),typeof r=="string")return e(r,i,s,n);let o=r;if(!Array.isArray(o)&&xe(o))return o;let u=new ce([]);return rt(o,u),u}}function rt(e,t){let r=Array.isArray(e)?e:[e];t?t.children=r:t=null;for(let i=0;i<r.length;i++){let s=r[i];s.parent&&s.parent.children!==r&&$e(s),t?(s.prev=r[i-1]||null,s.next=r[i+1]||null):s.prev=s.next=null,s.parent=t}return t}function Ad(e,t){return e==null?[]:le(e)?t?as(e.get()):e.get():Array.isArray(e)?e.reduce((r,i)=>r.concat(this._makeDomArray(i,t)),[]):typeof e=="string"?this._parse(e,this.options,!1,null).children:t?as([e]):[e]}function Xu(e){return function(...t){let r=this.length-1;return B(this,(i,s)=>{if(!F(i))return;let n=typeof t[0]=="function"?t[0].call(i,s,this._render(i.children)):t,o=this._makeDomArray(n,s<r);e(o,i.children,i)})}}function it(e,t,r,i,s){var n,o;let u=[t,r,...i],c=t===0?null:e[t-1],h=t+r>=e.length?null:e[t+r];for(let p=0;p<i.length;++p){let T=i[p],x=T.parent;if(x){let C=x.children.indexOf(T);C>-1&&(x.children.splice(C,1),s===x&&t>C&&u[0]--)}T.parent=s,T.prev&&(T.prev.next=(n=T.next)!==null&&n!==void 0?n:null),T.next&&(T.next.prev=(o=T.prev)!==null&&o!==void 0?o:null),T.prev=p===0?c:i[p-1],T.next=p===i.length-1?h:i[p+1]}return c&&(c.next=i[0]),h&&(h.prev=i[i.length-1]),e.splice(...u)}function yd(e){return(le(e)?e:this._make(e)).append(this),this}function Cd(e){return(le(e)?e:this._make(e)).prepend(this),this}var Nd=Xu((e,t,r)=>{it(t,t.length,0,e,r)}),Sd=Xu((e,t,r)=>{it(t,0,0,e,r)});function Wu(e){return function(t){let r=this.length-1,i=this.parents().last();for(let s=0;s<this.length;s++){let n=this[s],o=typeof t=="function"?t.call(n,s,n):typeof t=="string"&&!Hr(t)?i.find(t).clone():t,[u]=this._makeDomArray(o,s<r);if(!u||!F(u))continue;let c=u,h=0;for(;h<c.children.length;){let p=c.children[h];L(p)?(c=p,h=0):h++}e(n,c,[u])}return this}}var Id=Wu((e,t,r)=>{let{parent:i}=e;if(!i)return;let s=i.children,n=s.indexOf(e);rt([e],t),it(s,n,0,r,i)}),Rd=Wu((e,t,r)=>{F(e)&&(rt(e.children,t),rt(r,e))});function Ld(e){return this.parent(e).not("body").each((t,r)=>{this._make(r).replaceWith(r.children)}),this}function Dd(e){let t=this[0];if(t){let r=this._make(typeof e=="function"?e.call(t,0,t):e).insertBefore(t),i;for(let n=0;n<r.length;n++)r[n].type==="tag"&&(i=r[n]);let s=0;for(;i&&s<i.children.length;){let n=i.children[s];n.type==="tag"?(i=n,s=0):s++}i&&this._make(i).append(this)}return this}function Od(...e){let t=this.length-1;return B(this,(r,i)=>{let{parent:s}=r;if(!F(r)||!s)return;let n=s.children,o=n.indexOf(r);if(o<0)return;let u=typeof e[0]=="function"?e[0].call(r,i,this._render(r.children)):e,c=this._makeDomArray(u,i<t);it(n,o+1,0,c,s)})}function kd(e){typeof e=="string"&&(e=this._make(e)),this.remove();let t=[];return this._makeDomArray(e).forEach(r=>{let i=this.clone().toArray(),{parent:s}=r;if(!s)return;let n=s.children,o=n.indexOf(r);o<0||(it(n,o+1,0,i,s),t.push(...i))}),this._make(t)}function Md(...e){let t=this.length-1;return B(this,(r,i)=>{let{parent:s}=r;if(!F(r)||!s)return;let n=s.children,o=n.indexOf(r);if(o<0)return;let u=typeof e[0]=="function"?e[0].call(r,i,this._render(r.children)):e,c=this._makeDomArray(u,i<t);it(n,o,0,c,s)})}function Pd(e){let t=this._make(e);this.remove();let r=[];return B(t,i=>{let s=this.clone().toArray(),{parent:n}=i;if(!n)return;let o=n.children,u=o.indexOf(i);u<0||(it(o,u,0,s,n),r.push(...s))}),this._make(r)}function qd(e){let t=e?this.filter(e):this;return B(t,r=>{$e(r),r.prev=r.next=r.parent=null}),this}function Hd(e){return B(this,(t,r)=>{let{parent:i}=t;if(!i)return;let s=i.children,n=typeof e=="function"?e.call(t,r,t):e,o=this._makeDomArray(n);rt(o,null);let u=s.indexOf(t);it(s,u,1,o,i),o.includes(t)||(t.parent=t.prev=t.next=null)})}function Bd(){return B(this,e=>{F(e)&&(e.children.forEach(t=>{t.next=t.prev=t.parent=null}),e.children.length=0)})}function Ud(e){if(e===void 0){let t=this[0];return!t||!F(t)?null:this._render(t.children)}return B(this,t=>{if(!F(t))return;t.children.forEach(i=>{i.next=i.prev=i.parent=null});let r=le(e)?e.toArray():this._parse(`${e}`,this.options,!1,t).children;rt(r,t)})}function Fd(){return this._render(this)}function $d(e){return e===void 0?Ze(this):typeof e=="function"?B(this,(t,r)=>this._make(t).text(e.call(t,r,Ze([t])))):B(this,t=>{if(!F(t))return;t.children.forEach(i=>{i.next=i.prev=i.parent=null});let r=new De(`${e}`);rt(r,t)})}function Vd(){return this._make(as(this.get()))}var mn={};Ee(mn,{css:()=>Yd});function Yd(e,t){if(e!=null&&t!=null||typeof e=="object"&&!Array.isArray(e))return B(this,(r,i)=>{L(r)&&Ku(r,e,t,i)});if(this.length!==0)return Qu(this[0],e)}function Ku(e,t,r,i){if(typeof t=="string"){let s=Qu(e),n=typeof r=="function"?r.call(e,i,s[t]):r;n===""?delete s[t]:n!=null&&(s[t]=n),e.attribs.style=Gd(s)}else typeof t=="object"&&Object.keys(t).forEach((s,n)=>{Ku(e,s,t[s],n)})}function Qu(e,t){if(!e||!L(e))return;let r=Xd(e.attribs.style);if(typeof t=="string")return r[t];if(Array.isArray(t)){let i={};return t.forEach(s=>{r[s]!=null&&(i[s]=r[s])}),i}return r}function Gd(e){return Object.keys(e).reduce((t,r)=>`${t}${t?" ":""}${r}: ${e[r]};`,"")}function Xd(e){if(e=(e||"").trim(),!e)return{};let t={},r;for(let i of e.split(";")){let s=i.indexOf(":");if(s<1||s===i.length-1){let n=i.trimEnd();n.length>0&&r!==void 0&&(t[r]+=`;${n}`)}else r=i.slice(0,s).trim(),t[r]=i.slice(s+1).trim()}return t}var gn={};Ee(gn,{serialize:()=>Kd,serializeArray:()=>Qd});var ju="input,select,textarea,keygen",Wd=/%20/g,zu=/\r?\n/g;function Kd(){return this.serializeArray().map(r=>`${encodeURIComponent(r.name)}=${encodeURIComponent(r.value)}`).join("&").replace(Wd,"+")}function Qd(){return this.map((e,t)=>{let r=this._make(t);return L(t)&&t.name==="form"?r.find(ju).toArray():r.filter(ju).toArray()}).filter('[name!=""]:enabled:not(:submit, :button, :image, :reset, :file):matches([checked], :not(:checkbox, :radio))').map((e,t)=>{var r;let i=this._make(t),s=i.attr("name"),n=(r=i.val())!==null&&r!==void 0?r:"";return Array.isArray(n)?n.map(o=>({name:s,value:o.replace(zu,`\r
|
|
2691
|
-
`)})):{name:
|
|
2692
|
-
`)}}).toArray()}var st=class{constructor(t,r,i){if(this.length=0,this.options=i,this._root=r,t){for(let s=0;s<t.length;s++)this[s]=t[s];this.length=t.length}}};st.prototype.cheerio="[cheerio object]";st.prototype.splice=Array.prototype.splice;st.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(st.prototype,Va,fn,pn,mn,gn);function Ju(e,t){return function r(i,s,n=!0){if(i==null)throw new Error("cheerio.load() expects a string");let o=R(R({},Nr),Sr(s)),u=e(i,o,n,null);class c extends st{_make(T,x){let _=h(T,x);return _.prevObject=this,_}_parse(T,x,_,C){return e(T,x,_,C)}_render(T){return t(T,this.options)}}function h(p,T,x=u,_){if(p&&le(p))return p;let C=R(R({},o),Sr(_)),I=typeof x=="string"?[e(x,C,!1,null)]:"length"in x?x:[x],P=le(I)?I:new c(I,null,C);if(P._root=P,!p)return new c(void 0,P,C);let ue=typeof p=="string"&&Hr(p)?e(p,C,!1,null).children:jd(p)?[p]:Array.isArray(p)?p:void 0,be=new c(ue,P,C);if(ue)return be;if(typeof p!="string")throw new Error("Unexpected type of selector");let ot=p,cr=T?typeof T=="string"?Hr(T)?new c([e(T,C,!1,null)],P,C):(ot=`${T} ${ot}`,P):le(T)?T:new c(Array.isArray(T)?T:[T],P,C):P;return cr?cr.find(ot):be}return Object.assign(h,et,{load:r,_root:u,_options:o,fn:c.prototype,prototype:c.prototype}),h}}function jd(e){return!!e.name||e.type==="root"||e.type==="text"||e.type==="comment"}var zd=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]),U="\uFFFD",l;(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.NUMBER_SIGN=35]="NUMBER_SIGN",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_F=70]="LATIN_CAPITAL_F",e[e.LATIN_CAPITAL_X=88]="LATIN_CAPITAL_X",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_F=102]="LATIN_SMALL_F",e[e.LATIN_SMALL_X=120]="LATIN_SMALL_X",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z",e[e.REPLACEMENT_CHARACTER=65533]="REPLACEMENT_CHARACTER"})(l=l||(l={}));var te={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Es(e){return e>=55296&&e<=57343}function Zu(e){return e>=56320&&e<=57343}function ec(e,t){return(e-55296)*1024+9216+t}function Ts(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function ws(e){return e>=64976&&e<=65007||zd.has(e)}var b;(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"})(b=b||(b={}));var Zd=65536,xs=class{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=Zd,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){let{line:r,col:i,offset:s}=this;return{code:t,startLine:r,endLine:r,startCol:i,endCol:i,startOffset:s,endOffset:s}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){let r=this.html.charCodeAt(this.pos+1);if(Zu(r))return this.pos++,this._addGap(),ec(t,r)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,l.EOF;return this._err(b.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,r){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=r}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,r){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(r)return this.html.startsWith(t,this.pos);for(let i=0;i<t.length;i++)if((this.html.charCodeAt(this.pos+i)|32)!==t.charCodeAt(i))return!1;return!0}peek(t){let r=this.pos+t;if(r>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,l.EOF;let i=this.html.charCodeAt(r);return i===l.CARRIAGE_RETURN?l.LINE_FEED:i}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,l.EOF;let t=this.html.charCodeAt(this.pos);return t===l.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,l.LINE_FEED):t===l.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Es(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===l.LINE_FEED||t===l.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Ts(t)?this._err(b.controlCharacterInInputStream):ws(t)&&this._err(b.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}};var bn={};Ee(bn,{TokenType:()=>k,getTokenAttr:()=>Xr});var k;(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"})(k=k||(k={}));function Xr(e,t){for(let r=e.attrs.length-1;r>=0;r--)if(e.attrs[r].name===t)return e.attrs[r].value;return null}var Kr={};Ee(Kr,{ATTRS:()=>ve,DOCUMENT_MODE:()=>j,NS:()=>E,SPECIAL_ELEMENTS:()=>En,TAG_ID:()=>a,TAG_NAMES:()=>m,getTagID:()=>at,hasUnescapedText:()=>Tn,isNumberedHeader:()=>Wr});var E;(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/"})(E=E||(E={}));var ve;(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"})(ve=ve||(ve={}));var j;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(j=j||(j={}));var m;(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.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"})(m=m||(m={}));var a;(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.SECTION=94]="SECTION",e[e.SELECT=95]="SELECT",e[e.SOURCE=96]="SOURCE",e[e.SMALL=97]="SMALL",e[e.SPAN=98]="SPAN",e[e.STRIKE=99]="STRIKE",e[e.STRONG=100]="STRONG",e[e.STYLE=101]="STYLE",e[e.SUB=102]="SUB",e[e.SUMMARY=103]="SUMMARY",e[e.SUP=104]="SUP",e[e.TABLE=105]="TABLE",e[e.TBODY=106]="TBODY",e[e.TEMPLATE=107]="TEMPLATE",e[e.TEXTAREA=108]="TEXTAREA",e[e.TFOOT=109]="TFOOT",e[e.TD=110]="TD",e[e.TH=111]="TH",e[e.THEAD=112]="THEAD",e[e.TITLE=113]="TITLE",e[e.TR=114]="TR",e[e.TRACK=115]="TRACK",e[e.TT=116]="TT",e[e.U=117]="U",e[e.UL=118]="UL",e[e.SVG=119]="SVG",e[e.VAR=120]="VAR",e[e.WBR=121]="WBR",e[e.XMP=122]="XMP"})(a=a||(a={}));var eh=new Map([[m.A,a.A],[m.ADDRESS,a.ADDRESS],[m.ANNOTATION_XML,a.ANNOTATION_XML],[m.APPLET,a.APPLET],[m.AREA,a.AREA],[m.ARTICLE,a.ARTICLE],[m.ASIDE,a.ASIDE],[m.B,a.B],[m.BASE,a.BASE],[m.BASEFONT,a.BASEFONT],[m.BGSOUND,a.BGSOUND],[m.BIG,a.BIG],[m.BLOCKQUOTE,a.BLOCKQUOTE],[m.BODY,a.BODY],[m.BR,a.BR],[m.BUTTON,a.BUTTON],[m.CAPTION,a.CAPTION],[m.CENTER,a.CENTER],[m.CODE,a.CODE],[m.COL,a.COL],[m.COLGROUP,a.COLGROUP],[m.DD,a.DD],[m.DESC,a.DESC],[m.DETAILS,a.DETAILS],[m.DIALOG,a.DIALOG],[m.DIR,a.DIR],[m.DIV,a.DIV],[m.DL,a.DL],[m.DT,a.DT],[m.EM,a.EM],[m.EMBED,a.EMBED],[m.FIELDSET,a.FIELDSET],[m.FIGCAPTION,a.FIGCAPTION],[m.FIGURE,a.FIGURE],[m.FONT,a.FONT],[m.FOOTER,a.FOOTER],[m.FOREIGN_OBJECT,a.FOREIGN_OBJECT],[m.FORM,a.FORM],[m.FRAME,a.FRAME],[m.FRAMESET,a.FRAMESET],[m.H1,a.H1],[m.H2,a.H2],[m.H3,a.H3],[m.H4,a.H4],[m.H5,a.H5],[m.H6,a.H6],[m.HEAD,a.HEAD],[m.HEADER,a.HEADER],[m.HGROUP,a.HGROUP],[m.HR,a.HR],[m.HTML,a.HTML],[m.I,a.I],[m.IMG,a.IMG],[m.IMAGE,a.IMAGE],[m.INPUT,a.INPUT],[m.IFRAME,a.IFRAME],[m.KEYGEN,a.KEYGEN],[m.LABEL,a.LABEL],[m.LI,a.LI],[m.LINK,a.LINK],[m.LISTING,a.LISTING],[m.MAIN,a.MAIN],[m.MALIGNMARK,a.MALIGNMARK],[m.MARQUEE,a.MARQUEE],[m.MATH,a.MATH],[m.MENU,a.MENU],[m.META,a.META],[m.MGLYPH,a.MGLYPH],[m.MI,a.MI],[m.MO,a.MO],[m.MN,a.MN],[m.MS,a.MS],[m.MTEXT,a.MTEXT],[m.NAV,a.NAV],[m.NOBR,a.NOBR],[m.NOFRAMES,a.NOFRAMES],[m.NOEMBED,a.NOEMBED],[m.NOSCRIPT,a.NOSCRIPT],[m.OBJECT,a.OBJECT],[m.OL,a.OL],[m.OPTGROUP,a.OPTGROUP],[m.OPTION,a.OPTION],[m.P,a.P],[m.PARAM,a.PARAM],[m.PLAINTEXT,a.PLAINTEXT],[m.PRE,a.PRE],[m.RB,a.RB],[m.RP,a.RP],[m.RT,a.RT],[m.RTC,a.RTC],[m.RUBY,a.RUBY],[m.S,a.S],[m.SCRIPT,a.SCRIPT],[m.SECTION,a.SECTION],[m.SELECT,a.SELECT],[m.SOURCE,a.SOURCE],[m.SMALL,a.SMALL],[m.SPAN,a.SPAN],[m.STRIKE,a.STRIKE],[m.STRONG,a.STRONG],[m.STYLE,a.STYLE],[m.SUB,a.SUB],[m.SUMMARY,a.SUMMARY],[m.SUP,a.SUP],[m.TABLE,a.TABLE],[m.TBODY,a.TBODY],[m.TEMPLATE,a.TEMPLATE],[m.TEXTAREA,a.TEXTAREA],[m.TFOOT,a.TFOOT],[m.TD,a.TD],[m.TH,a.TH],[m.THEAD,a.THEAD],[m.TITLE,a.TITLE],[m.TR,a.TR],[m.TRACK,a.TRACK],[m.TT,a.TT],[m.U,a.U],[m.UL,a.UL],[m.SVG,a.SVG],[m.VAR,a.VAR],[m.WBR,a.WBR],[m.XMP,a.XMP]]);function at(e){var t;return(t=eh.get(e))!==null&&t!==void 0?t:a.UNKNOWN}var A=a,En={[E.HTML]:new Set([A.ADDRESS,A.APPLET,A.AREA,A.ARTICLE,A.ASIDE,A.BASE,A.BASEFONT,A.BGSOUND,A.BLOCKQUOTE,A.BODY,A.BR,A.BUTTON,A.CAPTION,A.CENTER,A.COL,A.COLGROUP,A.DD,A.DETAILS,A.DIR,A.DIV,A.DL,A.DT,A.EMBED,A.FIELDSET,A.FIGCAPTION,A.FIGURE,A.FOOTER,A.FORM,A.FRAME,A.FRAMESET,A.H1,A.H2,A.H3,A.H4,A.H5,A.H6,A.HEAD,A.HEADER,A.HGROUP,A.HR,A.HTML,A.IFRAME,A.IMG,A.INPUT,A.LI,A.LINK,A.LISTING,A.MAIN,A.MARQUEE,A.MENU,A.META,A.NAV,A.NOEMBED,A.NOFRAMES,A.NOSCRIPT,A.OBJECT,A.OL,A.P,A.PARAM,A.PLAINTEXT,A.PRE,A.SCRIPT,A.SECTION,A.SELECT,A.SOURCE,A.STYLE,A.SUMMARY,A.TABLE,A.TBODY,A.TD,A.TEMPLATE,A.TEXTAREA,A.TFOOT,A.TH,A.THEAD,A.TITLE,A.TR,A.TRACK,A.UL,A.WBR,A.XMP]),[E.MATHML]:new Set([A.MI,A.MO,A.MN,A.MS,A.MTEXT,A.ANNOTATION_XML]),[E.SVG]:new Set([A.TITLE,A.FOREIGN_OBJECT,A.DESC]),[E.XLINK]:new Set,[E.XML]:new Set,[E.XMLNS]:new Set};function Wr(e){return e===A.H1||e===A.H2||e===A.H3||e===A.H4||e===A.H5||e===A.H6}var th=new Set([m.STYLE,m.SCRIPT,m.XMP,m.IFRAME,m.NOEMBED,m.NOFRAMES,m.PLAINTEXT]);function Tn(e,t){return th.has(e)||t&&e===m.NOSCRIPT}var rh=new Map([[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]]),d;(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.NAMED_CHARACTER_REFERENCE=72]="NAMED_CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=73]="AMBIGUOUS_AMPERSAND",e[e.NUMERIC_CHARACTER_REFERENCE=74]="NUMERIC_CHARACTER_REFERENCE",e[e.HEXADEMICAL_CHARACTER_REFERENCE_START=75]="HEXADEMICAL_CHARACTER_REFERENCE_START",e[e.HEXADEMICAL_CHARACTER_REFERENCE=76]="HEXADEMICAL_CHARACTER_REFERENCE",e[e.DECIMAL_CHARACTER_REFERENCE=77]="DECIMAL_CHARACTER_REFERENCE",e[e.NUMERIC_CHARACTER_REFERENCE_END=78]="NUMERIC_CHARACTER_REFERENCE_END"})(d||(d={}));var z={DATA:d.DATA,RCDATA:d.RCDATA,RAWTEXT:d.RAWTEXT,SCRIPT_DATA:d.SCRIPT_DATA,PLAINTEXT:d.PLAINTEXT,CDATA_SECTION:d.CDATA_SECTION};function jr(e){return e>=l.DIGIT_0&&e<=l.DIGIT_9}function Qr(e){return e>=l.LATIN_CAPITAL_A&&e<=l.LATIN_CAPITAL_Z}function ih(e){return e>=l.LATIN_SMALL_A&&e<=l.LATIN_SMALL_Z}function nt(e){return ih(e)||Qr(e)}function wn(e){return nt(e)||jr(e)}function rc(e){return e>=l.LATIN_CAPITAL_A&&e<=l.LATIN_CAPITAL_F}function ic(e){return e>=l.LATIN_SMALL_A&&e<=l.LATIN_SMALL_F}function sh(e){return jr(e)||rc(e)||ic(e)}function vs(e){return e+32}function sc(e){return e===l.SPACE||e===l.LINE_FEED||e===l.TABULATION||e===l.FORM_FEED}function ah(e){return e===l.EQUALS_SIGN||wn(e)}function tc(e){return sc(e)||e===l.SOLIDUS||e===l.GREATER_THAN_SIGN}var zr=class{constructor(t,r){this.options=t,this.handler=r,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=d.DATA,this.returnState=d.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new xs(r),this.currentLocation=this.getCurrentLocation(-1)}_err(t){var r,i;(i=(r=this.handler).onParseError)===null||i===void 0||i.call(r,this.preprocessor.getError(t))}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;let 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,r,i){this.active=!0,this.preprocessor.write(t,r),this._runParsingLoop(),this.paused||i==null||i()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this._unconsume(this.consumedAfterSnapshot),this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(t){this.consumedAfterSnapshot-=t,this.preprocessor.retreat(t)}_reconsumeInState(t,r){this.state=t,this._callState(r)}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let r=0;r<t;r++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,r){return this.preprocessor.startsWith(t,r)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:k.START_TAG,tagName:"",tagID:a.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:k.END_TAG,tagName:"",tagID:a.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:k.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:k.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,r){this.currentCharacterToken={type:t,chars:r,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,r;let i=this.currentToken;if(Xr(i,this.currentAttr.name)===null){if(i.attrs.push(this.currentAttr),i.location&&this.currentLocation){let s=(t=(r=i.location).attrs)!==null&&t!==void 0?t:r.attrs=Object.create(null);s[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(b.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(){let t=this.currentToken;this.prepareToken(t),t.tagID=at(t.tagName),t.type===k.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(b.endTagWithAttributes),t.selfClosing&&this._err(b.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 k.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case k.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case k.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){let t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:k.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,r){if(this.currentCharacterToken)if(this.currentCharacterToken.type!==t)this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();else{this.currentCharacterToken.chars+=r;return}this._createCharacterToken(t,r)}_emitCodePoint(t){let r=sc(t)?k.WHITESPACE_CHARACTER:t===l.NULL?k.NULL_CHARACTER:k.CHARACTER;this._appendCharToCurrentCharacterToken(r,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(k.CHARACTER,t)}_matchNamedCharacterReference(t){let r=null,i=0,s=!1;for(let n=0,o=fe[0];n>=0&&(n=kr(fe,o,n+1,t),!(n<0));t=this._consume()){i+=1,o=fe[n];let u=o&ee.VALUE_LENGTH;if(u){let c=(u>>14)-1;if(t!==l.SEMICOLON&&this._isCharacterReferenceInAttribute()&&ah(this.preprocessor.peek(1))?(r=[l.AMPERSAND],n+=c):(r=c===0?[fe[n]&~ee.VALUE_LENGTH]:c===1?[fe[++n]]:[fe[++n],fe[++n]],i=0,s=t!==l.SEMICOLON),c===0){this._consume();break}}}return this._unconsume(i),s&&!this.preprocessor.endOfChunkHit&&this._err(b.missingSemicolonAfterCharacterReference),this._unconsume(1),r}_isCharacterReferenceInAttribute(){return this.returnState===d.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===d.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===d.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case d.DATA:{this._stateData(t);break}case d.RCDATA:{this._stateRcdata(t);break}case d.RAWTEXT:{this._stateRawtext(t);break}case d.SCRIPT_DATA:{this._stateScriptData(t);break}case d.PLAINTEXT:{this._statePlaintext(t);break}case d.TAG_OPEN:{this._stateTagOpen(t);break}case d.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case d.TAG_NAME:{this._stateTagName(t);break}case d.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case d.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case d.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case d.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case d.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case d.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case d.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case d.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case d.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case d.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case d.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case d.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case d.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case d.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case d.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case d.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case d.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case d.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case d.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case d.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case d.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case d.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case d.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case d.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case d.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case d.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case d.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case d.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case d.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case d.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case d.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case d.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case d.BOGUS_COMMENT:{this._stateBogusComment(t);break}case d.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case d.COMMENT_START:{this._stateCommentStart(t);break}case d.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case d.COMMENT:{this._stateComment(t);break}case d.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case d.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case d.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case d.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case d.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case d.COMMENT_END:{this._stateCommentEnd(t);break}case d.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case d.DOCTYPE:{this._stateDoctype(t);break}case d.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case d.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case d.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case d.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case d.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case d.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case d.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case d.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case d.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case d.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case d.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case d.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case d.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case d.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case d.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case d.CDATA_SECTION:{this._stateCdataSection(t);break}case d.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case d.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case d.CHARACTER_REFERENCE:{this._stateCharacterReference(t);break}case d.NAMED_CHARACTER_REFERENCE:{this._stateNamedCharacterReference(t);break}case d.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}case d.NUMERIC_CHARACTER_REFERENCE:{this._stateNumericCharacterReference(t);break}case d.HEXADEMICAL_CHARACTER_REFERENCE_START:{this._stateHexademicalCharacterReferenceStart(t);break}case d.HEXADEMICAL_CHARACTER_REFERENCE:{this._stateHexademicalCharacterReference(t);break}case d.DECIMAL_CHARACTER_REFERENCE:{this._stateDecimalCharacterReference(t);break}case d.NUMERIC_CHARACTER_REFERENCE_END:{this._stateNumericCharacterReferenceEnd(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case l.LESS_THAN_SIGN:{this.state=d.TAG_OPEN;break}case l.AMPERSAND:{this.returnState=d.DATA,this.state=d.CHARACTER_REFERENCE;break}case l.NULL:{this._err(b.unexpectedNullCharacter),this._emitCodePoint(t);break}case l.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case l.AMPERSAND:{this.returnState=d.RCDATA,this.state=d.CHARACTER_REFERENCE;break}case l.LESS_THAN_SIGN:{this.state=d.RCDATA_LESS_THAN_SIGN;break}case l.NULL:{this._err(b.unexpectedNullCharacter),this._emitChars(U);break}case l.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case l.LESS_THAN_SIGN:{this.state=d.RAWTEXT_LESS_THAN_SIGN;break}case l.NULL:{this._err(b.unexpectedNullCharacter),this._emitChars(U);break}case l.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case l.LESS_THAN_SIGN:{this.state=d.SCRIPT_DATA_LESS_THAN_SIGN;break}case l.NULL:{this._err(b.unexpectedNullCharacter),this._emitChars(U);break}case l.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case l.NULL:{this._err(b.unexpectedNullCharacter),this._emitChars(U);break}case l.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(nt(t))this._createStartTagToken(),this.state=d.TAG_NAME,this._stateTagName(t);else switch(t){case l.EXCLAMATION_MARK:{this.state=d.MARKUP_DECLARATION_OPEN;break}case l.SOLIDUS:{this.state=d.END_TAG_OPEN;break}case l.QUESTION_MARK:{this._err(b.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=d.BOGUS_COMMENT,this._stateBogusComment(t);break}case l.EOF:{this._err(b.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(b.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=d.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(nt(t))this._createEndTagToken(),this.state=d.TAG_NAME,this._stateTagName(t);else switch(t){case l.GREATER_THAN_SIGN:{this._err(b.missingEndTagName),this.state=d.DATA;break}case l.EOF:{this._err(b.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(b.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=d.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){let r=this.currentToken;switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:{this.state=d.BEFORE_ATTRIBUTE_NAME;break}case l.SOLIDUS:{this.state=d.SELF_CLOSING_START_TAG;break}case l.GREATER_THAN_SIGN:{this.state=d.DATA,this.emitCurrentTagToken();break}case l.NULL:{this._err(b.unexpectedNullCharacter),r.tagName+=U;break}case l.EOF:{this._err(b.eofInTag),this._emitEOFToken();break}default:r.tagName+=String.fromCodePoint(Qr(t)?vs(t):t)}}_stateRcdataLessThanSign(t){t===l.SOLIDUS?this.state=d.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=d.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){nt(t)?(this.state=d.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=d.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();let r=this.currentToken;switch(r.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=d.BEFORE_ATTRIBUTE_NAME,!1;case l.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=d.SELF_CLOSING_START_TAG,!1;case l.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=d.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=d.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===l.SOLIDUS?this.state=d.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=d.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){nt(t)?(this.state=d.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=d.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=d.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case l.SOLIDUS:{this.state=d.SCRIPT_DATA_END_TAG_OPEN;break}case l.EXCLAMATION_MARK:{this.state=d.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=d.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){nt(t)?(this.state=d.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=d.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=d.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===l.HYPHEN_MINUS?(this.state=d.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=d.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===l.HYPHEN_MINUS?(this.state=d.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=d.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case l.HYPHEN_MINUS:{this.state=d.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case l.LESS_THAN_SIGN:{this.state=d.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case l.NULL:{this._err(b.unexpectedNullCharacter),this._emitChars(U);break}case l.EOF:{this._err(b.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case l.HYPHEN_MINUS:{this.state=d.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case l.LESS_THAN_SIGN:{this.state=d.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case l.NULL:{this._err(b.unexpectedNullCharacter),this.state=d.SCRIPT_DATA_ESCAPED,this._emitChars(U);break}case l.EOF:{this._err(b.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=d.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case l.HYPHEN_MINUS:{this._emitChars("-");break}case l.LESS_THAN_SIGN:{this.state=d.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case l.GREATER_THAN_SIGN:{this.state=d.SCRIPT_DATA,this._emitChars(">");break}case l.NULL:{this._err(b.unexpectedNullCharacter),this.state=d.SCRIPT_DATA_ESCAPED,this._emitChars(U);break}case l.EOF:{this._err(b.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=d.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===l.SOLIDUS?this.state=d.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:nt(t)?(this._emitChars("<"),this.state=d.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=d.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){nt(t)?(this.state=d.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=d.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=d.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(te.SCRIPT,!1)&&tc(this.preprocessor.peek(te.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<te.SCRIPT.length;r++)this._emitCodePoint(this._consume());this.state=d.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=d.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case l.HYPHEN_MINUS:{this.state=d.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case l.LESS_THAN_SIGN:{this.state=d.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case l.NULL:{this._err(b.unexpectedNullCharacter),this._emitChars(U);break}case l.EOF:{this._err(b.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case l.HYPHEN_MINUS:{this.state=d.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case l.LESS_THAN_SIGN:{this.state=d.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case l.NULL:{this._err(b.unexpectedNullCharacter),this.state=d.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(U);break}case l.EOF:{this._err(b.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=d.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case l.HYPHEN_MINUS:{this._emitChars("-");break}case l.LESS_THAN_SIGN:{this.state=d.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case l.GREATER_THAN_SIGN:{this.state=d.SCRIPT_DATA,this._emitChars(">");break}case l.NULL:{this._err(b.unexpectedNullCharacter),this.state=d.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(U);break}case l.EOF:{this._err(b.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=d.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===l.SOLIDUS?(this.state=d.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=d.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(te.SCRIPT,!1)&&tc(this.preprocessor.peek(te.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<te.SCRIPT.length;r++)this._emitCodePoint(this._consume());this.state=d.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=d.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:break;case l.SOLIDUS:case l.GREATER_THAN_SIGN:case l.EOF:{this.state=d.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case l.EQUALS_SIGN:{this._err(b.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=d.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=d.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:case l.SOLIDUS:case l.GREATER_THAN_SIGN:case l.EOF:{this._leaveAttrName(),this.state=d.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case l.EQUALS_SIGN:{this._leaveAttrName(),this.state=d.BEFORE_ATTRIBUTE_VALUE;break}case l.QUOTATION_MARK:case l.APOSTROPHE:case l.LESS_THAN_SIGN:{this._err(b.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case l.NULL:{this._err(b.unexpectedNullCharacter),this.currentAttr.name+=U;break}default:this.currentAttr.name+=String.fromCodePoint(Qr(t)?vs(t):t)}}_stateAfterAttributeName(t){switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:break;case l.SOLIDUS:{this.state=d.SELF_CLOSING_START_TAG;break}case l.EQUALS_SIGN:{this.state=d.BEFORE_ATTRIBUTE_VALUE;break}case l.GREATER_THAN_SIGN:{this.state=d.DATA,this.emitCurrentTagToken();break}case l.EOF:{this._err(b.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=d.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:break;case l.QUOTATION_MARK:{this.state=d.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case l.APOSTROPHE:{this.state=d.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case l.GREATER_THAN_SIGN:{this._err(b.missingAttributeValue),this.state=d.DATA,this.emitCurrentTagToken();break}default:this.state=d.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case l.QUOTATION_MARK:{this.state=d.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case l.AMPERSAND:{this.returnState=d.ATTRIBUTE_VALUE_DOUBLE_QUOTED,this.state=d.CHARACTER_REFERENCE;break}case l.NULL:{this._err(b.unexpectedNullCharacter),this.currentAttr.value+=U;break}case l.EOF:{this._err(b.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case l.APOSTROPHE:{this.state=d.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case l.AMPERSAND:{this.returnState=d.ATTRIBUTE_VALUE_SINGLE_QUOTED,this.state=d.CHARACTER_REFERENCE;break}case l.NULL:{this._err(b.unexpectedNullCharacter),this.currentAttr.value+=U;break}case l.EOF:{this._err(b.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:{this._leaveAttrValue(),this.state=d.BEFORE_ATTRIBUTE_NAME;break}case l.AMPERSAND:{this.returnState=d.ATTRIBUTE_VALUE_UNQUOTED,this.state=d.CHARACTER_REFERENCE;break}case l.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=d.DATA,this.emitCurrentTagToken();break}case l.NULL:{this._err(b.unexpectedNullCharacter),this.currentAttr.value+=U;break}case l.QUOTATION_MARK:case l.APOSTROPHE:case l.LESS_THAN_SIGN:case l.EQUALS_SIGN:case l.GRAVE_ACCENT:{this._err(b.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case l.EOF:{this._err(b.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:{this._leaveAttrValue(),this.state=d.BEFORE_ATTRIBUTE_NAME;break}case l.SOLIDUS:{this._leaveAttrValue(),this.state=d.SELF_CLOSING_START_TAG;break}case l.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=d.DATA,this.emitCurrentTagToken();break}case l.EOF:{this._err(b.eofInTag),this._emitEOFToken();break}default:this._err(b.missingWhitespaceBetweenAttributes),this.state=d.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case l.GREATER_THAN_SIGN:{let r=this.currentToken;r.selfClosing=!0,this.state=d.DATA,this.emitCurrentTagToken();break}case l.EOF:{this._err(b.eofInTag),this._emitEOFToken();break}default:this._err(b.unexpectedSolidusInTag),this.state=d.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){let r=this.currentToken;switch(t){case l.GREATER_THAN_SIGN:{this.state=d.DATA,this.emitCurrentComment(r);break}case l.EOF:{this.emitCurrentComment(r),this._emitEOFToken();break}case l.NULL:{this._err(b.unexpectedNullCharacter),r.data+=U;break}default:r.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(te.DASH_DASH,!0)?(this._createCommentToken(te.DASH_DASH.length+1),this.state=d.COMMENT_START):this._consumeSequenceIfMatch(te.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(te.DOCTYPE.length+1),this.state=d.DOCTYPE):this._consumeSequenceIfMatch(te.CDATA_START,!0)?this.inForeignNode?this.state=d.CDATA_SECTION:(this._err(b.cdataInHtmlContent),this._createCommentToken(te.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=d.BOGUS_COMMENT):this._ensureHibernation()||(this._err(b.incorrectlyOpenedComment),this._createCommentToken(2),this.state=d.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case l.HYPHEN_MINUS:{this.state=d.COMMENT_START_DASH;break}case l.GREATER_THAN_SIGN:{this._err(b.abruptClosingOfEmptyComment),this.state=d.DATA;let r=this.currentToken;this.emitCurrentComment(r);break}default:this.state=d.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){let r=this.currentToken;switch(t){case l.HYPHEN_MINUS:{this.state=d.COMMENT_END;break}case l.GREATER_THAN_SIGN:{this._err(b.abruptClosingOfEmptyComment),this.state=d.DATA,this.emitCurrentComment(r);break}case l.EOF:{this._err(b.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="-",this.state=d.COMMENT,this._stateComment(t)}}_stateComment(t){let r=this.currentToken;switch(t){case l.HYPHEN_MINUS:{this.state=d.COMMENT_END_DASH;break}case l.LESS_THAN_SIGN:{r.data+="<",this.state=d.COMMENT_LESS_THAN_SIGN;break}case l.NULL:{this._err(b.unexpectedNullCharacter),r.data+=U;break}case l.EOF:{this._err(b.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){let r=this.currentToken;switch(t){case l.EXCLAMATION_MARK:{r.data+="!",this.state=d.COMMENT_LESS_THAN_SIGN_BANG;break}case l.LESS_THAN_SIGN:{r.data+="<";break}default:this.state=d.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===l.HYPHEN_MINUS?this.state=d.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=d.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===l.HYPHEN_MINUS?this.state=d.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=d.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==l.GREATER_THAN_SIGN&&t!==l.EOF&&this._err(b.nestedComment),this.state=d.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){let r=this.currentToken;switch(t){case l.HYPHEN_MINUS:{this.state=d.COMMENT_END;break}case l.EOF:{this._err(b.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="-",this.state=d.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){let r=this.currentToken;switch(t){case l.GREATER_THAN_SIGN:{this.state=d.DATA,this.emitCurrentComment(r);break}case l.EXCLAMATION_MARK:{this.state=d.COMMENT_END_BANG;break}case l.HYPHEN_MINUS:{r.data+="-";break}case l.EOF:{this._err(b.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="--",this.state=d.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){let r=this.currentToken;switch(t){case l.HYPHEN_MINUS:{r.data+="--!",this.state=d.COMMENT_END_DASH;break}case l.GREATER_THAN_SIGN:{this._err(b.incorrectlyClosedComment),this.state=d.DATA,this.emitCurrentComment(r);break}case l.EOF:{this._err(b.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="--!",this.state=d.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:{this.state=d.BEFORE_DOCTYPE_NAME;break}case l.GREATER_THAN_SIGN:{this.state=d.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case l.EOF:{this._err(b.eofInDoctype),this._createDoctypeToken(null);let r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(b.missingWhitespaceBeforeDoctypeName),this.state=d.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(Qr(t))this._createDoctypeToken(String.fromCharCode(vs(t))),this.state=d.DOCTYPE_NAME;else switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:break;case l.NULL:{this._err(b.unexpectedNullCharacter),this._createDoctypeToken(U),this.state=d.DOCTYPE_NAME;break}case l.GREATER_THAN_SIGN:{this._err(b.missingDoctypeName),this._createDoctypeToken(null);let r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=d.DATA;break}case l.EOF:{this._err(b.eofInDoctype),this._createDoctypeToken(null);let r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=d.DOCTYPE_NAME}}_stateDoctypeName(t){let r=this.currentToken;switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:{this.state=d.AFTER_DOCTYPE_NAME;break}case l.GREATER_THAN_SIGN:{this.state=d.DATA,this.emitCurrentDoctype(r);break}case l.NULL:{this._err(b.unexpectedNullCharacter),r.name+=U;break}case l.EOF:{this._err(b.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.name+=String.fromCodePoint(Qr(t)?vs(t):t)}}_stateAfterDoctypeName(t){let r=this.currentToken;switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:break;case l.GREATER_THAN_SIGN:{this.state=d.DATA,this.emitCurrentDoctype(r);break}case l.EOF:{this._err(b.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(te.PUBLIC,!1)?this.state=d.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(te.SYSTEM,!1)?this.state=d.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(b.invalidCharacterSequenceAfterDoctypeName),r.forceQuirks=!0,this.state=d.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){let r=this.currentToken;switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:{this.state=d.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case l.QUOTATION_MARK:{this._err(b.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=d.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case l.APOSTROPHE:{this._err(b.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=d.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case l.GREATER_THAN_SIGN:{this._err(b.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=d.DATA,this.emitCurrentDoctype(r);break}case l.EOF:{this._err(b.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(b.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=d.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){let r=this.currentToken;switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:break;case l.QUOTATION_MARK:{r.publicId="",this.state=d.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case l.APOSTROPHE:{r.publicId="",this.state=d.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case l.GREATER_THAN_SIGN:{this._err(b.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=d.DATA,this.emitCurrentDoctype(r);break}case l.EOF:{this._err(b.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(b.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=d.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){let r=this.currentToken;switch(t){case l.QUOTATION_MARK:{this.state=d.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case l.NULL:{this._err(b.unexpectedNullCharacter),r.publicId+=U;break}case l.GREATER_THAN_SIGN:{this._err(b.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=d.DATA;break}case l.EOF:{this._err(b.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){let r=this.currentToken;switch(t){case l.APOSTROPHE:{this.state=d.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case l.NULL:{this._err(b.unexpectedNullCharacter),r.publicId+=U;break}case l.GREATER_THAN_SIGN:{this._err(b.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=d.DATA;break}case l.EOF:{this._err(b.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){let r=this.currentToken;switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:{this.state=d.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case l.GREATER_THAN_SIGN:{this.state=d.DATA,this.emitCurrentDoctype(r);break}case l.QUOTATION_MARK:{this._err(b.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=d.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case l.APOSTROPHE:{this._err(b.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=d.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case l.EOF:{this._err(b.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(b.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=d.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){let r=this.currentToken;switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:break;case l.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=d.DATA;break}case l.QUOTATION_MARK:{r.systemId="",this.state=d.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case l.APOSTROPHE:{r.systemId="",this.state=d.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case l.EOF:{this._err(b.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(b.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=d.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){let r=this.currentToken;switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:{this.state=d.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case l.QUOTATION_MARK:{this._err(b.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=d.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case l.APOSTROPHE:{this._err(b.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=d.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case l.GREATER_THAN_SIGN:{this._err(b.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=d.DATA,this.emitCurrentDoctype(r);break}case l.EOF:{this._err(b.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(b.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=d.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){let r=this.currentToken;switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:break;case l.QUOTATION_MARK:{r.systemId="",this.state=d.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case l.APOSTROPHE:{r.systemId="",this.state=d.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case l.GREATER_THAN_SIGN:{this._err(b.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=d.DATA,this.emitCurrentDoctype(r);break}case l.EOF:{this._err(b.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(b.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=d.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){let r=this.currentToken;switch(t){case l.QUOTATION_MARK:{this.state=d.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case l.NULL:{this._err(b.unexpectedNullCharacter),r.systemId+=U;break}case l.GREATER_THAN_SIGN:{this._err(b.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=d.DATA;break}case l.EOF:{this._err(b.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){let r=this.currentToken;switch(t){case l.APOSTROPHE:{this.state=d.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case l.NULL:{this._err(b.unexpectedNullCharacter),r.systemId+=U;break}case l.GREATER_THAN_SIGN:{this._err(b.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=d.DATA;break}case l.EOF:{this._err(b.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){let r=this.currentToken;switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:break;case l.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=d.DATA;break}case l.EOF:{this._err(b.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(b.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=d.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){let r=this.currentToken;switch(t){case l.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=d.DATA;break}case l.NULL:{this._err(b.unexpectedNullCharacter);break}case l.EOF:{this.emitCurrentDoctype(r),this._emitEOFToken();break}default:}}_stateCdataSection(t){switch(t){case l.RIGHT_SQUARE_BRACKET:{this.state=d.CDATA_SECTION_BRACKET;break}case l.EOF:{this._err(b.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===l.RIGHT_SQUARE_BRACKET?this.state=d.CDATA_SECTION_END:(this._emitChars("]"),this.state=d.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case l.GREATER_THAN_SIGN:{this.state=d.DATA;break}case l.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=d.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(t){t===l.NUMBER_SIGN?this.state=d.NUMERIC_CHARACTER_REFERENCE:wn(t)?(this.state=d.NAMED_CHARACTER_REFERENCE,this._stateNamedCharacterReference(t)):(this._flushCodePointConsumedAsCharacterReference(l.AMPERSAND),this._reconsumeInState(this.returnState,t))}_stateNamedCharacterReference(t){let r=this._matchNamedCharacterReference(t);if(!this._ensureHibernation())if(r){for(let i=0;i<r.length;i++)this._flushCodePointConsumedAsCharacterReference(r[i]);this.state=this.returnState}else this._flushCodePointConsumedAsCharacterReference(l.AMPERSAND),this.state=d.AMBIGUOUS_AMPERSAND}_stateAmbiguousAmpersand(t){wn(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===l.SEMICOLON&&this._err(b.unknownNamedCharacterReference),this._reconsumeInState(this.returnState,t))}_stateNumericCharacterReference(t){this.charRefCode=0,t===l.LATIN_SMALL_X||t===l.LATIN_CAPITAL_X?this.state=d.HEXADEMICAL_CHARACTER_REFERENCE_START:jr(t)?(this.state=d.DECIMAL_CHARACTER_REFERENCE,this._stateDecimalCharacterReference(t)):(this._err(b.absenceOfDigitsInNumericCharacterReference),this._flushCodePointConsumedAsCharacterReference(l.AMPERSAND),this._flushCodePointConsumedAsCharacterReference(l.NUMBER_SIGN),this._reconsumeInState(this.returnState,t))}_stateHexademicalCharacterReferenceStart(t){sh(t)?(this.state=d.HEXADEMICAL_CHARACTER_REFERENCE,this._stateHexademicalCharacterReference(t)):(this._err(b.absenceOfDigitsInNumericCharacterReference),this._flushCodePointConsumedAsCharacterReference(l.AMPERSAND),this._flushCodePointConsumedAsCharacterReference(l.NUMBER_SIGN),this._unconsume(2),this.state=this.returnState)}_stateHexademicalCharacterReference(t){rc(t)?this.charRefCode=this.charRefCode*16+t-55:ic(t)?this.charRefCode=this.charRefCode*16+t-87:jr(t)?this.charRefCode=this.charRefCode*16+t-48:t===l.SEMICOLON?this.state=d.NUMERIC_CHARACTER_REFERENCE_END:(this._err(b.missingSemicolonAfterCharacterReference),this.state=d.NUMERIC_CHARACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd(t))}_stateDecimalCharacterReference(t){jr(t)?this.charRefCode=this.charRefCode*10+t-48:t===l.SEMICOLON?this.state=d.NUMERIC_CHARACTER_REFERENCE_END:(this._err(b.missingSemicolonAfterCharacterReference),this.state=d.NUMERIC_CHARACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd(t))}_stateNumericCharacterReferenceEnd(t){if(this.charRefCode===l.NULL)this._err(b.nullCharacterReference),this.charRefCode=l.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(b.characterReferenceOutsideUnicodeRange),this.charRefCode=l.REPLACEMENT_CHARACTER;else if(Es(this.charRefCode))this._err(b.surrogateCharacterReference),this.charRefCode=l.REPLACEMENT_CHARACTER;else if(ws(this.charRefCode))this._err(b.noncharacterCharacterReference);else if(Ts(this.charRefCode)||this.charRefCode===l.CARRIAGE_RETURN){this._err(b.controlCharacterReference);let r=rh.get(this.charRefCode);r!==void 0&&(this.charRefCode=r)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,t)}};var nc=new Set([a.DD,a.DT,a.LI,a.OPTGROUP,a.OPTION,a.P,a.RB,a.RP,a.RT,a.RTC]),ac=new Set([...nc,a.CAPTION,a.COLGROUP,a.TBODY,a.TD,a.TFOOT,a.TH,a.THEAD,a.TR]),_s=new Map([[a.APPLET,E.HTML],[a.CAPTION,E.HTML],[a.HTML,E.HTML],[a.MARQUEE,E.HTML],[a.OBJECT,E.HTML],[a.TABLE,E.HTML],[a.TD,E.HTML],[a.TEMPLATE,E.HTML],[a.TH,E.HTML],[a.ANNOTATION_XML,E.MATHML],[a.MI,E.MATHML],[a.MN,E.MATHML],[a.MO,E.MATHML],[a.MS,E.MATHML],[a.MTEXT,E.MATHML],[a.DESC,E.SVG],[a.FOREIGN_OBJECT,E.SVG],[a.TITLE,E.SVG]]),nh=[a.H1,a.H2,a.H3,a.H4,a.H5,a.H6],oh=[a.TR,a.TEMPLATE,a.HTML],uh=[a.TBODY,a.TFOOT,a.THEAD,a.TEMPLATE,a.HTML],ch=[a.TABLE,a.TEMPLATE,a.HTML],lh=[a.TD,a.TH],As=class{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,r,i){this.treeAdapter=r,this.handler=i,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=a.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===a.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===E.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,r){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=r,this.currentTagId=r,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,r,!0)}pop(){let t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,r){let i=this._indexOf(t);this.items[i]=r,i===this.stackTop&&(this.current=r)}insertAfter(t,r,i){let s=this._indexOf(t)+1;this.items.splice(s,0,r),this.tagIDs.splice(s,0,i),this.stackTop++,s===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,s===this.stackTop)}popUntilTagNamePopped(t){let r=this.stackTop+1;do r=this.tagIDs.lastIndexOf(t,r-1);while(r>0&&this.treeAdapter.getNamespaceURI(this.items[r])!==E.HTML);this.shortenToLength(r<0?0:r)}shortenToLength(t){for(;this.stackTop>=t;){let r=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(r,this.stackTop<t)}}popUntilElementPopped(t){let r=this._indexOf(t);this.shortenToLength(r<0?0:r)}popUntilPopped(t,r){let i=this._indexOfTagNames(t,r);this.shortenToLength(i<0?0:i)}popUntilNumberedHeaderPopped(){this.popUntilPopped(nh,E.HTML)}popUntilTableCellPopped(){this.popUntilPopped(lh,E.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,r){for(let i=this.stackTop;i>=0;i--)if(t.includes(this.tagIDs[i])&&this.treeAdapter.getNamespaceURI(this.items[i])===r)return i;return-1}clearBackTo(t,r){let i=this._indexOfTagNames(t,r);this.shortenToLength(i+1)}clearBackToTableContext(){this.clearBackTo(ch,E.HTML)}clearBackToTableBodyContext(){this.clearBackTo(uh,E.HTML)}clearBackToTableRowContext(){this.clearBackTo(oh,E.HTML)}remove(t){let r=this._indexOf(t);r>=0&&(r===this.stackTop?this.pop():(this.items.splice(r,1),this.tagIDs.splice(r,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===a.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){let r=this._indexOf(t)-1;return r>=0?this.items[r]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===a.HTML}hasInScope(t){for(let r=this.stackTop;r>=0;r--){let i=this.tagIDs[r],s=this.treeAdapter.getNamespaceURI(this.items[r]);if(i===t&&s===E.HTML)return!0;if(_s.get(i)===s)return!1}return!0}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){let r=this.tagIDs[t],i=this.treeAdapter.getNamespaceURI(this.items[t]);if(Wr(r)&&i===E.HTML)return!0;if(_s.get(r)===i)return!1}return!0}hasInListItemScope(t){for(let r=this.stackTop;r>=0;r--){let i=this.tagIDs[r],s=this.treeAdapter.getNamespaceURI(this.items[r]);if(i===t&&s===E.HTML)return!0;if((i===a.UL||i===a.OL)&&s===E.HTML||_s.get(i)===s)return!1}return!0}hasInButtonScope(t){for(let r=this.stackTop;r>=0;r--){let i=this.tagIDs[r],s=this.treeAdapter.getNamespaceURI(this.items[r]);if(i===t&&s===E.HTML)return!0;if(i===a.BUTTON&&s===E.HTML||_s.get(i)===s)return!1}return!0}hasInTableScope(t){for(let r=this.stackTop;r>=0;r--){let i=this.tagIDs[r];if(this.treeAdapter.getNamespaceURI(this.items[r])===E.HTML){if(i===t)return!0;if(i===a.TABLE||i===a.TEMPLATE||i===a.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--){let r=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===E.HTML){if(r===a.TBODY||r===a.THEAD||r===a.TFOOT)return!0;if(r===a.TABLE||r===a.HTML)return!1}}return!0}hasInSelectScope(t){for(let r=this.stackTop;r>=0;r--){let i=this.tagIDs[r];if(this.treeAdapter.getNamespaceURI(this.items[r])===E.HTML){if(i===t)return!0;if(i!==a.OPTION&&i!==a.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;nc.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;ac.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&ac.has(this.currentTagId);)this.pop()}};var ge;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(ge=ge||(ge={}));var oc={type:ge.Marker},ys=class{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,r){let i=[],s=r.length,n=this.treeAdapter.getTagName(t),o=this.treeAdapter.getNamespaceURI(t);for(let u=0;u<this.entries.length;u++){let c=this.entries[u];if(c.type===ge.Marker)break;let{element:h}=c;if(this.treeAdapter.getTagName(h)===n&&this.treeAdapter.getNamespaceURI(h)===o){let p=this.treeAdapter.getAttrList(h);p.length===s&&i.push({idx:u,attrs:p})}}return i}_ensureNoahArkCondition(t){if(this.entries.length<3)return;let r=this.treeAdapter.getAttrList(t),i=this._getNoahArkConditionCandidates(t,r);if(i.length<3)return;let s=new Map(r.map(o=>[o.name,o.value])),n=0;for(let o=0;o<i.length;o++){let u=i[o];u.attrs.every(c=>s.get(c.name)===c.value)&&(n+=1,n>=3&&this.entries.splice(u.idx,1))}}insertMarker(){this.entries.unshift(oc)}pushElement(t,r){this._ensureNoahArkCondition(t),this.entries.unshift({type:ge.Element,element:t,token:r})}insertElementAfterBookmark(t,r){let i=this.entries.indexOf(this.bookmark);this.entries.splice(i,0,{type:ge.Element,element:t,token:r})}removeEntry(t){let r=this.entries.indexOf(t);r>=0&&this.entries.splice(r,1)}clearToLastMarker(){let t=this.entries.indexOf(oc);t>=0?this.entries.splice(0,t+1):this.entries.length=0}getElementEntryInScopeWithTagName(t){let r=this.entries.find(i=>i.type===ge.Marker||this.treeAdapter.getTagName(i.element)===t);return r&&r.type===ge.Element?r:null}getElementEntry(t){return this.entries.find(r=>r.type===ge.Element&&r.element===t)}};function uc(e){return{nodeName:"#text",value:e,parentNode:null}}var Oe={createDocument(){return{nodeName:"#document",mode:j.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,r){return{nodeName:e,tagName:e,attrs:r,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,r){let i=e.childNodes.indexOf(r);e.childNodes.splice(i,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,r,i){let s=e.childNodes.find(n=>n.nodeName==="#documentType");if(s)s.name=t,s.publicId=r,s.systemId=i;else{let n={nodeName:"#documentType",name:t,publicId:r,systemId:i,parentNode:null};Oe.appendChild(e,n)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){let t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){let r=e.childNodes[e.childNodes.length-1];if(Oe.isTextNode(r)){r.value+=t;return}}Oe.appendChild(e,uc(t))},insertTextBefore(e,t,r){let i=e.childNodes[e.childNodes.indexOf(r)-1];i&&Oe.isTextNode(i)?i.value+=t:Oe.insertBefore(e,uc(t),r)},adoptAttributes(e,t){let r=new Set(e.attrs.map(i=>i.name));for(let i=0;i<t.length;i++)r.has(t[i].name)||e.attrs.push(t[i])},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=R(R({},e.sourceCodeLocation),t)}};var lc="html",dh="about:legacy-compat",hh="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",dc=["+//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//"],fh=[...dc,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],ph=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),hc=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],mh=[...hc,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function cc(e,t){return t.some(r=>e.startsWith(r))}function fc(e){return e.name===lc&&e.publicId===null&&(e.systemId===null||e.systemId===dh)}function pc(e){if(e.name!==lc)return j.QUIRKS;let{systemId:t}=e;if(t&&t.toLowerCase()===hh)return j.QUIRKS;let{publicId:r}=e;if(r!==null){if(r=r.toLowerCase(),ph.has(r))return j.QUIRKS;let i=t===null?fh:dc;if(cc(r,i))return j.QUIRKS;if(i=t===null?hc:mh,cc(r,i))return j.LIMITED_QUIRKS}return j.NO_QUIRKS}var Ss={};Ee(Ss,{SVG_TAG_NAMES_ADJUSTMENT_MAP:()=>gc,adjustTokenMathMLAttrs:()=>Cs,adjustTokenSVGAttrs:()=>Ns,adjustTokenSVGTagName:()=>vn,adjustTokenXMLAttrs:()=>Jr,causesExit:()=>xn,isIntegrationPoint:()=>_n});var mc={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},bh="definitionurl",Eh="definitionURL",Th=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])),wh=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:E.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:E.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:E.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:E.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:E.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:E.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:E.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:E.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:E.XML}],["xml:space",{prefix:"xml",name:"space",namespace:E.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:E.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:E.XMLNS}]]),gc=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])),xh=new Set([a.B,a.BIG,a.BLOCKQUOTE,a.BODY,a.BR,a.CENTER,a.CODE,a.DD,a.DIV,a.DL,a.DT,a.EM,a.EMBED,a.H1,a.H2,a.H3,a.H4,a.H5,a.H6,a.HEAD,a.HR,a.I,a.IMG,a.LI,a.LISTING,a.MENU,a.META,a.NOBR,a.OL,a.P,a.PRE,a.RUBY,a.S,a.SMALL,a.SPAN,a.STRONG,a.STRIKE,a.SUB,a.SUP,a.TABLE,a.TT,a.U,a.UL,a.VAR]);function xn(e){let t=e.tagID;return t===a.FONT&&e.attrs.some(({name:i})=>i===ve.COLOR||i===ve.SIZE||i===ve.FACE)||xh.has(t)}function Cs(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===bh){e.attrs[t].name=Eh;break}}function Ns(e){for(let t=0;t<e.attrs.length;t++){let r=Th.get(e.attrs[t].name);r!=null&&(e.attrs[t].name=r)}}function Jr(e){for(let t=0;t<e.attrs.length;t++){let r=wh.get(e.attrs[t].name);r&&(e.attrs[t].prefix=r.prefix,e.attrs[t].name=r.name,e.attrs[t].namespace=r.namespace)}}function vn(e){let t=gc.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=at(e.tagName))}function vh(e,t){return t===E.MATHML&&(e===a.MI||e===a.MO||e===a.MN||e===a.MS||e===a.MTEXT)}function _h(e,t,r){if(t===E.MATHML&&e===a.ANNOTATION_XML){for(let i=0;i<r.length;i++)if(r[i].name===ve.ENCODING){let s=r[i].value.toLowerCase();return s===mc.TEXT_HTML||s===mc.APPLICATION_XML}}return t===E.SVG&&(e===a.FOREIGN_OBJECT||e===a.DESC||e===a.TITLE)}function _n(e,t,r,i){return(!i||i===E.HTML)&&_h(e,t,r)||(!i||i===E.MATHML)&&vh(e,t)}var Ah="hidden",yh=8,Ch=3,f;(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"})(f||(f={}));var Nh={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},wc=new Set([a.TABLE,a.TBODY,a.TFOOT,a.THEAD,a.TR]),bc={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Oe,onParseError:null},sr=class{constructor(t,r,i=null,s=null){this.fragmentContext=i,this.scriptHandler=s,this.currentToken=null,this.stopped=!1,this.insertionMode=f.INITIAL,this.originalInsertionMode=f.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=R(R({},bc),t),this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=r!=null?r:this.treeAdapter.createDocument(),this.tokenizer=new zr(this.options,this),this.activeFormattingElements=new ys(this.treeAdapter),this.fragmentContextID=i?at(this.treeAdapter.getTagName(i)):a.UNKNOWN,this._setContextModes(i!=null?i:this.document,this.fragmentContextID),this.openElements=new As(this.document,this.treeAdapter,this)}static parse(t,r){let i=new this(r);return i.tokenizer.write(t,!0),i.document}static getFragmentParser(t,r){let i=R(R({},bc),r);t!=null||(t=i.treeAdapter.createElement(m.TEMPLATE,E.HTML,[]));let s=i.treeAdapter.createElement("documentmock",E.HTML,[]),n=new this(i,s,t);return n.fragmentContextID===a.TEMPLATE&&n.tmplInsertionModeStack.unshift(f.IN_TEMPLATE),n._initTokenizerForFragmentParsing(),n._insertFakeRootElement(),n._resetInsertionMode(),n._findFormInFragmentContext(),n}getFragment(){let t=this.treeAdapter.getFirstChild(this.document),r=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,r),r}_err(t,r,i){var s;if(!this.onParseError)return;let n=(s=t.location)!==null&&s!==void 0?s:Nh,o={code:r,startLine:n.startLine,startCol:n.startCol,startOffset:n.startOffset,endLine:i?n.startLine:n.endLine,endCol:i?n.startCol:n.endCol,endOffset:i?n.startOffset:n.endOffset};this.onParseError(o)}onItemPush(t,r,i){var s,n;(n=(s=this.treeAdapter).onItemPush)===null||n===void 0||n.call(s,t),i&&this.openElements.stackTop>0&&this._setContextModes(t,r)}onItemPop(t,r){var i,s;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(s=(i=this.treeAdapter).onItemPop)===null||s===void 0||s.call(i,t,this.openElements.current),r){let n,o;this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,o=this.fragmentContextID):{current:n,currentTagId:o}=this.openElements,this._setContextModes(n,o)}}_setContextModes(t,r){let i=t===this.document||this.treeAdapter.getNamespaceURI(t)===E.HTML;this.currentNotInHTML=!i,this.tokenizer.inForeignNode=!i&&!this._isIntegrationPoint(r,t)}_switchToTextParsing(t,r){this._insertElement(t,E.HTML),this.tokenizer.state=r,this.originalInsertionMode=this.insertionMode,this.insertionMode=f.TEXT}switchToPlaintextParsing(){this.insertionMode=f.TEXT,this.originalInsertionMode=f.IN_BODY,this.tokenizer.state=z.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)===m.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==E.HTML))switch(this.fragmentContextID){case a.TITLE:case a.TEXTAREA:{this.tokenizer.state=z.RCDATA;break}case a.STYLE:case a.XMP:case a.IFRAME:case a.NOEMBED:case a.NOFRAMES:case a.NOSCRIPT:{this.tokenizer.state=z.RAWTEXT;break}case a.SCRIPT:{this.tokenizer.state=z.SCRIPT_DATA;break}case a.PLAINTEXT:{this.tokenizer.state=z.PLAINTEXT;break}default:}}_setDocumentType(t){let r=t.name||"",i=t.publicId||"",s=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,r,i,s),t.location){let o=this.treeAdapter.getChildNodes(this.document).find(u=>this.treeAdapter.isDocumentTypeNode(u));o&&this.treeAdapter.setNodeSourceCodeLocation(o,t.location)}}_attachElementToTree(t,r){if(this.options.sourceCodeLocationInfo){let i=r&&$(R({},r),{startTag:r});this.treeAdapter.setNodeSourceCodeLocation(t,i)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{let i=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(i,t)}}_appendElement(t,r){let i=this.treeAdapter.createElement(t.tagName,r,t.attrs);this._attachElementToTree(i,t.location)}_insertElement(t,r){let i=this.treeAdapter.createElement(t.tagName,r,t.attrs);this._attachElementToTree(i,t.location),this.openElements.push(i,t.tagID)}_insertFakeElement(t,r){let i=this.treeAdapter.createElement(t,E.HTML,[]);this._attachElementToTree(i,null),this.openElements.push(i,r)}_insertTemplate(t){let r=this.treeAdapter.createElement(t.tagName,E.HTML,t.attrs),i=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(r,i),this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,null)}_insertFakeRootElement(){let t=this.treeAdapter.createElement(m.HTML,E.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,a.HTML)}_appendCommentNode(t,r){let i=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(r,i),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,t.location)}_insertCharacters(t){let r,i;if(this._shouldFosterParentOnInsertion()?({parent:r,beforeElement:i}=this._findFosterParentingLocation(),i?this.treeAdapter.insertTextBefore(r,t.chars,i):this.treeAdapter.insertText(r,t.chars)):(r=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(r,t.chars)),!t.location)return;let s=this.treeAdapter.getChildNodes(r),n=i?s.lastIndexOf(i):s.length,o=s[n-1];if(this.treeAdapter.getNodeSourceCodeLocation(o)){let{endLine:c,endCol:h,endOffset:p}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(o,{endLine:c,endCol:h,endOffset:p})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(o,t.location)}_adoptNodes(t,r){for(let i=this.treeAdapter.getFirstChild(t);i;i=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(i),this.treeAdapter.appendChild(r,i)}_setEndLocation(t,r){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&r.location){let i=r.location,s=this.treeAdapter.getTagName(t),n=r.type===k.END_TAG&&s===r.tagName?{endTag:R({},i),endLine:i.endLine,endCol:i.endCol,endOffset:i.endOffset}:{endLine:i.startLine,endCol:i.startCol,endOffset:i.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,n)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let r,i;return this.openElements.stackTop===0&&this.fragmentContext?(r=this.fragmentContext,i=this.fragmentContextID):{current:r,currentTagId:i}=this.openElements,t.tagID===a.SVG&&this.treeAdapter.getTagName(r)===m.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(r)===E.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===a.MGLYPH||t.tagID===a.MALIGNMARK)&&!this._isIntegrationPoint(i,r,E.HTML)}_processToken(t){switch(t.type){case k.CHARACTER:{this.onCharacter(t);break}case k.NULL_CHARACTER:{this.onNullCharacter(t);break}case k.COMMENT:{this.onComment(t);break}case k.DOCTYPE:{this.onDoctype(t);break}case k.START_TAG:{this._processStartTag(t);break}case k.END_TAG:{this.onEndTag(t);break}case k.EOF:{this.onEof(t);break}case k.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,r,i){let s=this.treeAdapter.getNamespaceURI(r),n=this.treeAdapter.getAttrList(r);return _n(t,s,n,i)}_reconstructActiveFormattingElements(){let t=this.activeFormattingElements.entries.length;if(t){let r=this.activeFormattingElements.entries.findIndex(s=>s.type===ge.Marker||this.openElements.contains(s.element)),i=r<0?t-1:r-1;for(let s=i;s>=0;s--){let n=this.activeFormattingElements.entries[s];this._insertElement(n.token,this.treeAdapter.getNamespaceURI(n.element)),n.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=f.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(a.P),this.openElements.popUntilTagNamePopped(a.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case a.TR:{this.insertionMode=f.IN_ROW;return}case a.TBODY:case a.THEAD:case a.TFOOT:{this.insertionMode=f.IN_TABLE_BODY;return}case a.CAPTION:{this.insertionMode=f.IN_CAPTION;return}case a.COLGROUP:{this.insertionMode=f.IN_COLUMN_GROUP;return}case a.TABLE:{this.insertionMode=f.IN_TABLE;return}case a.BODY:{this.insertionMode=f.IN_BODY;return}case a.FRAMESET:{this.insertionMode=f.IN_FRAMESET;return}case a.SELECT:{this._resetInsertionModeForSelect(t);return}case a.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case a.HTML:{this.insertionMode=this.headElement?f.AFTER_HEAD:f.BEFORE_HEAD;return}case a.TD:case a.TH:{if(t>0){this.insertionMode=f.IN_CELL;return}break}case a.HEAD:{if(t>0){this.insertionMode=f.IN_HEAD;return}break}}this.insertionMode=f.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let r=t-1;r>0;r--){let i=this.openElements.tagIDs[r];if(i===a.TEMPLATE)break;if(i===a.TABLE){this.insertionMode=f.IN_SELECT_IN_TABLE;return}}this.insertionMode=f.IN_SELECT}_isElementCausesFosterParenting(t){return wc.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){let r=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case a.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(r)===E.HTML)return{parent:this.treeAdapter.getTemplateContent(r),beforeElement:null};break}case a.TABLE:{let i=this.treeAdapter.getParentNode(r);return i?{parent:i,beforeElement:r}:{parent:this.openElements.items[t-1],beforeElement:null}}default:}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){let r=this._findFosterParentingLocation();r.beforeElement?this.treeAdapter.insertBefore(r.parent,t,r.beforeElement):this.treeAdapter.appendChild(r.parent,t)}_isSpecialElement(t,r){let i=this.treeAdapter.getNamespaceURI(t);return En[i].has(r)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){sp(this,t);return}switch(this.insertionMode){case f.INITIAL:{Zr(this,t);break}case f.BEFORE_HTML:{ti(this,t);break}case f.BEFORE_HEAD:{ri(this,t);break}case f.IN_HEAD:{ii(this,t);break}case f.IN_HEAD_NO_SCRIPT:{si(this,t);break}case f.AFTER_HEAD:{ai(this,t);break}case f.IN_BODY:case f.IN_CAPTION:case f.IN_CELL:case f.IN_TEMPLATE:{vc(this,t);break}case f.TEXT:case f.IN_SELECT:case f.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case f.IN_TABLE:case f.IN_TABLE_BODY:case f.IN_ROW:{An(this,t);break}case f.IN_TABLE_TEXT:{Sc(this,t);break}case f.IN_COLUMN_GROUP:{Rs(this,t);break}case f.AFTER_BODY:{Ls(this,t);break}case f.AFTER_AFTER_BODY:{Is(this,t);break}default:}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){ip(this,t);return}switch(this.insertionMode){case f.INITIAL:{Zr(this,t);break}case f.BEFORE_HTML:{ti(this,t);break}case f.BEFORE_HEAD:{ri(this,t);break}case f.IN_HEAD:{ii(this,t);break}case f.IN_HEAD_NO_SCRIPT:{si(this,t);break}case f.AFTER_HEAD:{ai(this,t);break}case f.TEXT:{this._insertCharacters(t);break}case f.IN_TABLE:case f.IN_TABLE_BODY:case f.IN_ROW:{An(this,t);break}case f.IN_COLUMN_GROUP:{Rs(this,t);break}case f.AFTER_BODY:{Ls(this,t);break}case f.AFTER_AFTER_BODY:{Is(this,t);break}default:}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){yn(this,t);return}switch(this.insertionMode){case f.INITIAL:case f.BEFORE_HTML:case f.BEFORE_HEAD:case f.IN_HEAD:case f.IN_HEAD_NO_SCRIPT:case f.AFTER_HEAD:case f.IN_BODY:case f.IN_TABLE:case f.IN_CAPTION:case f.IN_COLUMN_GROUP:case f.IN_TABLE_BODY:case f.IN_ROW:case f.IN_CELL:case f.IN_SELECT:case f.IN_SELECT_IN_TABLE:case f.IN_TEMPLATE:case f.IN_FRAMESET:case f.AFTER_FRAMESET:{yn(this,t);break}case f.IN_TABLE_TEXT:{ei(this,t);break}case f.AFTER_BODY:{kh(this,t);break}case f.AFTER_AFTER_BODY:case f.AFTER_AFTER_FRAMESET:{Mh(this,t);break}default:}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case f.INITIAL:{Ph(this,t);break}case f.BEFORE_HEAD:case f.IN_HEAD:case f.IN_HEAD_NO_SCRIPT:case f.AFTER_HEAD:{this._err(t,b.misplacedDoctype);break}case f.IN_TABLE_TEXT:{ei(this,t);break}default:}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,b.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?ap(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case f.INITIAL:{Zr(this,t);break}case f.BEFORE_HTML:{qh(this,t);break}case f.BEFORE_HEAD:{Bh(this,t);break}case f.IN_HEAD:{_e(this,t);break}case f.IN_HEAD_NO_SCRIPT:{$h(this,t);break}case f.AFTER_HEAD:{Yh(this,t);break}case f.IN_BODY:{J(this,t);break}case f.IN_TABLE:{ar(this,t);break}case f.IN_TABLE_TEXT:{ei(this,t);break}case f.IN_CAPTION:{Ff(this,t);break}case f.IN_COLUMN_GROUP:{In(this,t);break}case f.IN_TABLE_BODY:{ks(this,t);break}case f.IN_ROW:{Ms(this,t);break}case f.IN_CELL:{Yf(this,t);break}case f.IN_SELECT:{Lc(this,t);break}case f.IN_SELECT_IN_TABLE:{Xf(this,t);break}case f.IN_TEMPLATE:{Kf(this,t);break}case f.AFTER_BODY:{jf(this,t);break}case f.IN_FRAMESET:{zf(this,t);break}case f.AFTER_FRAMESET:{Zf(this,t);break}case f.AFTER_AFTER_BODY:{tp(this,t);break}case f.AFTER_AFTER_FRAMESET:{rp(this,t);break}default:}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?np(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case f.INITIAL:{Zr(this,t);break}case f.BEFORE_HTML:{Hh(this,t);break}case f.BEFORE_HEAD:{Uh(this,t);break}case f.IN_HEAD:{Fh(this,t);break}case f.IN_HEAD_NO_SCRIPT:{Vh(this,t);break}case f.AFTER_HEAD:{Gh(this,t);break}case f.IN_BODY:{Os(this,t);break}case f.TEXT:{Lf(this,t);break}case f.IN_TABLE:{ni(this,t);break}case f.IN_TABLE_TEXT:{ei(this,t);break}case f.IN_CAPTION:{$f(this,t);break}case f.IN_COLUMN_GROUP:{Vf(this,t);break}case f.IN_TABLE_BODY:{Cn(this,t);break}case f.IN_ROW:{Rc(this,t);break}case f.IN_CELL:{Gf(this,t);break}case f.IN_SELECT:{Dc(this,t);break}case f.IN_SELECT_IN_TABLE:{Wf(this,t);break}case f.IN_TEMPLATE:{Qf(this,t);break}case f.AFTER_BODY:{kc(this,t);break}case f.IN_FRAMESET:{Jf(this,t);break}case f.AFTER_FRAMESET:{ep(this,t);break}case f.AFTER_AFTER_BODY:{Is(this,t);break}default:}}onEof(t){switch(this.insertionMode){case f.INITIAL:{Zr(this,t);break}case f.BEFORE_HTML:{ti(this,t);break}case f.BEFORE_HEAD:{ri(this,t);break}case f.IN_HEAD:{ii(this,t);break}case f.IN_HEAD_NO_SCRIPT:{si(this,t);break}case f.AFTER_HEAD:{ai(this,t);break}case f.IN_BODY:case f.IN_TABLE:case f.IN_CAPTION:case f.IN_COLUMN_GROUP:case f.IN_TABLE_BODY:case f.IN_ROW:case f.IN_CELL:case f.IN_SELECT:case f.IN_SELECT_IN_TABLE:{Cc(this,t);break}case f.TEXT:{Df(this,t);break}case f.IN_TABLE_TEXT:{ei(this,t);break}case f.IN_TEMPLATE:{Oc(this,t);break}case f.AFTER_BODY:case f.IN_FRAMESET:case f.AFTER_FRAMESET:case f.AFTER_AFTER_BODY:case f.AFTER_AFTER_FRAMESET:{Sn(this,t);break}default:}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===l.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 f.IN_HEAD:case f.IN_HEAD_NO_SCRIPT:case f.AFTER_HEAD:case f.TEXT:case f.IN_COLUMN_GROUP:case f.IN_SELECT:case f.IN_SELECT_IN_TABLE:case f.IN_FRAMESET:case f.AFTER_FRAMESET:{this._insertCharacters(t);break}case f.IN_BODY:case f.IN_CAPTION:case f.IN_CELL:case f.IN_TEMPLATE:case f.AFTER_BODY:case f.AFTER_AFTER_BODY:case f.AFTER_AFTER_FRAMESET:{xc(this,t);break}case f.IN_TABLE:case f.IN_TABLE_BODY:case f.IN_ROW:{An(this,t);break}case f.IN_TABLE_TEXT:{Nc(this,t);break}default:}}};function Sh(e,t){let r=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return r?e.openElements.contains(r.element)?e.openElements.hasInScope(t.tagID)||(r=null):(e.activeFormattingElements.removeEntry(r),r=null):yc(e,t),r}function Ih(e,t){let r=null,i=e.openElements.stackTop;for(;i>=0;i--){let s=e.openElements.items[i];if(s===t.element)break;e._isSpecialElement(s,e.openElements.tagIDs[i])&&(r=s)}return r||(e.openElements.shortenToLength(i<0?0:i),e.activeFormattingElements.removeEntry(t)),r}function Rh(e,t,r){let i=t,s=e.openElements.getCommonAncestor(t);for(let n=0,o=s;o!==r;n++,o=s){s=e.openElements.getCommonAncestor(o);let u=e.activeFormattingElements.getElementEntry(o),c=u&&n>=Ch;!u||c?(c&&e.activeFormattingElements.removeEntry(u),e.openElements.remove(o)):(o=Lh(e,u),i===t&&(e.activeFormattingElements.bookmark=u),e.treeAdapter.detachNode(i),e.treeAdapter.appendChild(o,i),i=o)}return i}function Lh(e,t){let r=e.treeAdapter.getNamespaceURI(t.element),i=e.treeAdapter.createElement(t.token.tagName,r,t.token.attrs);return e.openElements.replace(t.element,i),t.element=i,i}function Dh(e,t,r){let i=e.treeAdapter.getTagName(t),s=at(i);if(e._isElementCausesFosterParenting(s))e._fosterParentElement(r);else{let n=e.treeAdapter.getNamespaceURI(t);s===a.TEMPLATE&&n===E.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,r)}}function Oh(e,t,r){let i=e.treeAdapter.getNamespaceURI(r.element),{token:s}=r,n=e.treeAdapter.createElement(s.tagName,i,s.attrs);e._adoptNodes(t,n),e.treeAdapter.appendChild(t,n),e.activeFormattingElements.insertElementAfterBookmark(n,s),e.activeFormattingElements.removeEntry(r),e.openElements.remove(r.element),e.openElements.insertAfter(t,n,s.tagID)}function Nn(e,t){for(let r=0;r<yh;r++){let i=Sh(e,t);if(!i)break;let s=Ih(e,i);if(!s)break;e.activeFormattingElements.bookmark=i;let n=Rh(e,s,i.element),o=e.openElements.getCommonAncestor(i.element);e.treeAdapter.detachNode(n),o&&Dh(e,o,n),Oh(e,s,i)}}function yn(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function kh(e,t){e._appendCommentNode(t,e.openElements.items[0])}function Mh(e,t){e._appendCommentNode(t,e.document)}function Sn(e,t){if(e.stopped=!0,t.location){let r=e.fragmentContext?0:2;for(let i=e.openElements.stackTop;i>=r;i--)e._setEndLocation(e.openElements.items[i],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){let i=e.openElements.items[0],s=e.treeAdapter.getNodeSourceCodeLocation(i);if(s&&!s.endTag&&(e._setEndLocation(i,t),e.openElements.stackTop>=1)){let n=e.openElements.items[1],o=e.treeAdapter.getNodeSourceCodeLocation(n);o&&!o.endTag&&e._setEndLocation(n,t)}}}}function Ph(e,t){e._setDocumentType(t);let r=t.forceQuirks?j.QUIRKS:pc(t);fc(t)||e._err(t,b.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,r),e.insertionMode=f.BEFORE_HTML}function Zr(e,t){e._err(t,b.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,j.QUIRKS),e.insertionMode=f.BEFORE_HTML,e._processToken(t)}function qh(e,t){t.tagID===a.HTML?(e._insertElement(t,E.HTML),e.insertionMode=f.BEFORE_HEAD):ti(e,t)}function Hh(e,t){let r=t.tagID;(r===a.HTML||r===a.HEAD||r===a.BODY||r===a.BR)&&ti(e,t)}function ti(e,t){e._insertFakeRootElement(),e.insertionMode=f.BEFORE_HEAD,e._processToken(t)}function Bh(e,t){switch(t.tagID){case a.HTML:{J(e,t);break}case a.HEAD:{e._insertElement(t,E.HTML),e.headElement=e.openElements.current,e.insertionMode=f.IN_HEAD;break}default:ri(e,t)}}function Uh(e,t){let r=t.tagID;r===a.HEAD||r===a.BODY||r===a.HTML||r===a.BR?ri(e,t):e._err(t,b.endTagWithoutMatchingOpenElement)}function ri(e,t){e._insertFakeElement(m.HEAD,a.HEAD),e.headElement=e.openElements.current,e.insertionMode=f.IN_HEAD,e._processToken(t)}function _e(e,t){switch(t.tagID){case a.HTML:{J(e,t);break}case a.BASE:case a.BASEFONT:case a.BGSOUND:case a.LINK:case a.META:{e._appendElement(t,E.HTML),t.ackSelfClosing=!0;break}case a.TITLE:{e._switchToTextParsing(t,z.RCDATA);break}case a.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,z.RAWTEXT):(e._insertElement(t,E.HTML),e.insertionMode=f.IN_HEAD_NO_SCRIPT);break}case a.NOFRAMES:case a.STYLE:{e._switchToTextParsing(t,z.RAWTEXT);break}case a.SCRIPT:{e._switchToTextParsing(t,z.SCRIPT_DATA);break}case a.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=f.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(f.IN_TEMPLATE);break}case a.HEAD:{e._err(t,b.misplacedStartTagForHeadElement);break}default:ii(e,t)}}function Fh(e,t){switch(t.tagID){case a.HEAD:{e.openElements.pop(),e.insertionMode=f.AFTER_HEAD;break}case a.BODY:case a.BR:case a.HTML:{ii(e,t);break}case a.TEMPLATE:{It(e,t);break}default:e._err(t,b.endTagWithoutMatchingOpenElement)}}function It(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==a.TEMPLATE&&e._err(t,b.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(a.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,b.endTagWithoutMatchingOpenElement)}function ii(e,t){e.openElements.pop(),e.insertionMode=f.AFTER_HEAD,e._processToken(t)}function $h(e,t){switch(t.tagID){case a.HTML:{J(e,t);break}case a.BASEFONT:case a.BGSOUND:case a.HEAD:case a.LINK:case a.META:case a.NOFRAMES:case a.STYLE:{_e(e,t);break}case a.NOSCRIPT:{e._err(t,b.nestedNoscriptInHead);break}default:si(e,t)}}function Vh(e,t){switch(t.tagID){case a.NOSCRIPT:{e.openElements.pop(),e.insertionMode=f.IN_HEAD;break}case a.BR:{si(e,t);break}default:e._err(t,b.endTagWithoutMatchingOpenElement)}}function si(e,t){let r=t.type===k.EOF?b.openElementsLeftAfterEof:b.disallowedContentInNoscriptInHead;e._err(t,r),e.openElements.pop(),e.insertionMode=f.IN_HEAD,e._processToken(t)}function Yh(e,t){switch(t.tagID){case a.HTML:{J(e,t);break}case a.BODY:{e._insertElement(t,E.HTML),e.framesetOk=!1,e.insertionMode=f.IN_BODY;break}case a.FRAMESET:{e._insertElement(t,E.HTML),e.insertionMode=f.IN_FRAMESET;break}case a.BASE:case a.BASEFONT:case a.BGSOUND:case a.LINK:case a.META:case a.NOFRAMES:case a.SCRIPT:case a.STYLE:case a.TEMPLATE:case a.TITLE:{e._err(t,b.abandonedHeadElementChild),e.openElements.push(e.headElement,a.HEAD),_e(e,t),e.openElements.remove(e.headElement);break}case a.HEAD:{e._err(t,b.misplacedStartTagForHeadElement);break}default:ai(e,t)}}function Gh(e,t){switch(t.tagID){case a.BODY:case a.HTML:case a.BR:{ai(e,t);break}case a.TEMPLATE:{It(e,t);break}default:e._err(t,b.endTagWithoutMatchingOpenElement)}}function ai(e,t){e._insertFakeElement(m.BODY,a.BODY),e.insertionMode=f.IN_BODY,Ds(e,t)}function Ds(e,t){switch(t.type){case k.CHARACTER:{vc(e,t);break}case k.WHITESPACE_CHARACTER:{xc(e,t);break}case k.COMMENT:{yn(e,t);break}case k.START_TAG:{J(e,t);break}case k.END_TAG:{Os(e,t);break}case k.EOF:{Cc(e,t);break}default:}}function xc(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function vc(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Xh(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function Wh(e,t){let r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(r,t.attrs))}function Kh(e,t){let r=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&r&&(e.treeAdapter.detachNode(r),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,E.HTML),e.insertionMode=f.IN_FRAMESET)}function Qh(e,t){e.openElements.hasInButtonScope(a.P)&&e._closePElement(),e._insertElement(t,E.HTML)}function jh(e,t){e.openElements.hasInButtonScope(a.P)&&e._closePElement(),Wr(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,E.HTML)}function zh(e,t){e.openElements.hasInButtonScope(a.P)&&e._closePElement(),e._insertElement(t,E.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Jh(e,t){let r=e.openElements.tmplCount>0;(!e.formElement||r)&&(e.openElements.hasInButtonScope(a.P)&&e._closePElement(),e._insertElement(t,E.HTML),r||(e.formElement=e.openElements.current))}function Zh(e,t){e.framesetOk=!1;let r=t.tagID;for(let i=e.openElements.stackTop;i>=0;i--){let s=e.openElements.tagIDs[i];if(r===a.LI&&s===a.LI||(r===a.DD||r===a.DT)&&(s===a.DD||s===a.DT)){e.openElements.generateImpliedEndTagsWithExclusion(s),e.openElements.popUntilTagNamePopped(s);break}if(s!==a.ADDRESS&&s!==a.DIV&&s!==a.P&&e._isSpecialElement(e.openElements.items[i],s))break}e.openElements.hasInButtonScope(a.P)&&e._closePElement(),e._insertElement(t,E.HTML)}function ef(e,t){e.openElements.hasInButtonScope(a.P)&&e._closePElement(),e._insertElement(t,E.HTML),e.tokenizer.state=z.PLAINTEXT}function tf(e,t){e.openElements.hasInScope(a.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(a.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,E.HTML),e.framesetOk=!1}function rf(e,t){let r=e.activeFormattingElements.getElementEntryInScopeWithTagName(m.A);r&&(Nn(e,t),e.openElements.remove(r.element),e.activeFormattingElements.removeEntry(r)),e._reconstructActiveFormattingElements(),e._insertElement(t,E.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function sf(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,E.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function af(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(a.NOBR)&&(Nn(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,E.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function nf(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,E.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function of(e,t){e.treeAdapter.getDocumentMode(e.document)!==j.QUIRKS&&e.openElements.hasInButtonScope(a.P)&&e._closePElement(),e._insertElement(t,E.HTML),e.framesetOk=!1,e.insertionMode=f.IN_TABLE}function _c(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,E.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Ac(e){let t=Xr(e,ve.TYPE);return t!=null&&t.toLowerCase()===Ah}function uf(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,E.HTML),Ac(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function cf(e,t){e._appendElement(t,E.HTML),t.ackSelfClosing=!0}function lf(e,t){e.openElements.hasInButtonScope(a.P)&&e._closePElement(),e._appendElement(t,E.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function df(e,t){t.tagName=m.IMG,t.tagID=a.IMG,_c(e,t)}function hf(e,t){e._insertElement(t,E.HTML),e.skipNextNewLine=!0,e.tokenizer.state=z.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=f.TEXT}function ff(e,t){e.openElements.hasInButtonScope(a.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,z.RAWTEXT)}function pf(e,t){e.framesetOk=!1,e._switchToTextParsing(t,z.RAWTEXT)}function Ec(e,t){e._switchToTextParsing(t,z.RAWTEXT)}function mf(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,E.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===f.IN_TABLE||e.insertionMode===f.IN_CAPTION||e.insertionMode===f.IN_TABLE_BODY||e.insertionMode===f.IN_ROW||e.insertionMode===f.IN_CELL?f.IN_SELECT_IN_TABLE:f.IN_SELECT}function gf(e,t){e.openElements.currentTagId===a.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,E.HTML)}function bf(e,t){e.openElements.hasInScope(a.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,E.HTML)}function Ef(e,t){e.openElements.hasInScope(a.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(a.RTC),e._insertElement(t,E.HTML)}function Tf(e,t){e._reconstructActiveFormattingElements(),Cs(t),Jr(t),t.selfClosing?e._appendElement(t,E.MATHML):e._insertElement(t,E.MATHML),t.ackSelfClosing=!0}function wf(e,t){e._reconstructActiveFormattingElements(),Ns(t),Jr(t),t.selfClosing?e._appendElement(t,E.SVG):e._insertElement(t,E.SVG),t.ackSelfClosing=!0}function Tc(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,E.HTML)}function J(e,t){switch(t.tagID){case a.I:case a.S:case a.B:case a.U:case a.EM:case a.TT:case a.BIG:case a.CODE:case a.FONT:case a.SMALL:case a.STRIKE:case a.STRONG:{sf(e,t);break}case a.A:{rf(e,t);break}case a.H1:case a.H2:case a.H3:case a.H4:case a.H5:case a.H6:{jh(e,t);break}case a.P:case a.DL:case a.OL:case a.UL:case a.DIV:case a.DIR:case a.NAV:case a.MAIN:case a.MENU:case a.ASIDE:case a.CENTER:case a.FIGURE:case a.FOOTER:case a.HEADER:case a.HGROUP:case a.DIALOG:case a.DETAILS:case a.ADDRESS:case a.ARTICLE:case a.SECTION:case a.SUMMARY:case a.FIELDSET:case a.BLOCKQUOTE:case a.FIGCAPTION:{Qh(e,t);break}case a.LI:case a.DD:case a.DT:{Zh(e,t);break}case a.BR:case a.IMG:case a.WBR:case a.AREA:case a.EMBED:case a.KEYGEN:{_c(e,t);break}case a.HR:{lf(e,t);break}case a.RB:case a.RTC:{bf(e,t);break}case a.RT:case a.RP:{Ef(e,t);break}case a.PRE:case a.LISTING:{zh(e,t);break}case a.XMP:{ff(e,t);break}case a.SVG:{wf(e,t);break}case a.HTML:{Xh(e,t);break}case a.BASE:case a.LINK:case a.META:case a.STYLE:case a.TITLE:case a.SCRIPT:case a.BGSOUND:case a.BASEFONT:case a.TEMPLATE:{_e(e,t);break}case a.BODY:{Wh(e,t);break}case a.FORM:{Jh(e,t);break}case a.NOBR:{af(e,t);break}case a.MATH:{Tf(e,t);break}case a.TABLE:{of(e,t);break}case a.INPUT:{uf(e,t);break}case a.PARAM:case a.TRACK:case a.SOURCE:{cf(e,t);break}case a.IMAGE:{df(e,t);break}case a.BUTTON:{tf(e,t);break}case a.APPLET:case a.OBJECT:case a.MARQUEE:{nf(e,t);break}case a.IFRAME:{pf(e,t);break}case a.SELECT:{mf(e,t);break}case a.OPTION:case a.OPTGROUP:{gf(e,t);break}case a.NOEMBED:{Ec(e,t);break}case a.FRAMESET:{Kh(e,t);break}case a.TEXTAREA:{hf(e,t);break}case a.NOSCRIPT:{e.options.scriptingEnabled?Ec(e,t):Tc(e,t);break}case a.PLAINTEXT:{ef(e,t);break}case a.COL:case a.TH:case a.TD:case a.TR:case a.HEAD:case a.FRAME:case a.TBODY:case a.TFOOT:case a.THEAD:case a.CAPTION:case a.COLGROUP:break;default:Tc(e,t)}}function xf(e,t){if(e.openElements.hasInScope(a.BODY)&&(e.insertionMode=f.AFTER_BODY,e.options.sourceCodeLocationInfo)){let r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e._setEndLocation(r,t)}}function vf(e,t){e.openElements.hasInScope(a.BODY)&&(e.insertionMode=f.AFTER_BODY,kc(e,t))}function _f(e,t){let r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r))}function Af(e){let t=e.openElements.tmplCount>0,{formElement:r}=e;t||(e.formElement=null),(r||t)&&e.openElements.hasInScope(a.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(a.FORM):r&&e.openElements.remove(r))}function yf(e){e.openElements.hasInButtonScope(a.P)||e._insertFakeElement(m.P,a.P),e._closePElement()}function Cf(e){e.openElements.hasInListItemScope(a.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(a.LI),e.openElements.popUntilTagNamePopped(a.LI))}function Nf(e,t){let r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r))}function Sf(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function If(e,t){let r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker())}function Rf(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(m.BR,a.BR),e.openElements.pop(),e.framesetOk=!1}function yc(e,t){let r=t.tagName,i=t.tagID;for(let s=e.openElements.stackTop;s>0;s--){let n=e.openElements.items[s],o=e.openElements.tagIDs[s];if(i===o&&(i!==a.UNKNOWN||e.treeAdapter.getTagName(n)===r)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.stackTop>=s&&e.openElements.shortenToLength(s);break}if(e._isSpecialElement(n,o))break}}function Os(e,t){switch(t.tagID){case a.A:case a.B:case a.I:case a.S:case a.U:case a.EM:case a.TT:case a.BIG:case a.CODE:case a.FONT:case a.NOBR:case a.SMALL:case a.STRIKE:case a.STRONG:{Nn(e,t);break}case a.P:{yf(e);break}case a.DL:case a.UL:case a.OL:case a.DIR:case a.DIV:case a.NAV:case a.PRE:case a.MAIN:case a.MENU:case a.ASIDE:case a.BUTTON:case a.CENTER:case a.FIGURE:case a.FOOTER:case a.HEADER:case a.HGROUP:case a.DIALOG:case a.ADDRESS:case a.ARTICLE:case a.DETAILS:case a.SECTION:case a.SUMMARY:case a.LISTING:case a.FIELDSET:case a.BLOCKQUOTE:case a.FIGCAPTION:{_f(e,t);break}case a.LI:{Cf(e);break}case a.DD:case a.DT:{Nf(e,t);break}case a.H1:case a.H2:case a.H3:case a.H4:case a.H5:case a.H6:{Sf(e);break}case a.BR:{Rf(e);break}case a.BODY:{xf(e,t);break}case a.HTML:{vf(e,t);break}case a.FORM:{Af(e);break}case a.APPLET:case a.OBJECT:case a.MARQUEE:{If(e,t);break}case a.TEMPLATE:{It(e,t);break}default:yc(e,t)}}function Cc(e,t){e.tmplInsertionModeStack.length>0?Oc(e,t):Sn(e,t)}function Lf(e,t){var r;t.tagID===a.SCRIPT&&((r=e.scriptHandler)===null||r===void 0||r.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function Df(e,t){e._err(t,b.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function An(e,t){if(wc.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=f.IN_TABLE_TEXT,t.type){case k.CHARACTER:{Sc(e,t);break}case k.WHITESPACE_CHARACTER:{Nc(e,t);break}}else oi(e,t)}function Of(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,E.HTML),e.insertionMode=f.IN_CAPTION}function kf(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,E.HTML),e.insertionMode=f.IN_COLUMN_GROUP}function Mf(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(m.COLGROUP,a.COLGROUP),e.insertionMode=f.IN_COLUMN_GROUP,In(e,t)}function Pf(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,E.HTML),e.insertionMode=f.IN_TABLE_BODY}function qf(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(m.TBODY,a.TBODY),e.insertionMode=f.IN_TABLE_BODY,ks(e,t)}function Hf(e,t){e.openElements.hasInTableScope(a.TABLE)&&(e.openElements.popUntilTagNamePopped(a.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function Bf(e,t){Ac(t)?e._appendElement(t,E.HTML):oi(e,t),t.ackSelfClosing=!0}function Uf(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,E.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function ar(e,t){switch(t.tagID){case a.TD:case a.TH:case a.TR:{qf(e,t);break}case a.STYLE:case a.SCRIPT:case a.TEMPLATE:{_e(e,t);break}case a.COL:{Mf(e,t);break}case a.FORM:{Uf(e,t);break}case a.TABLE:{Hf(e,t);break}case a.TBODY:case a.TFOOT:case a.THEAD:{Pf(e,t);break}case a.INPUT:{Bf(e,t);break}case a.CAPTION:{Of(e,t);break}case a.COLGROUP:{kf(e,t);break}default:oi(e,t)}}function ni(e,t){switch(t.tagID){case a.TABLE:{e.openElements.hasInTableScope(a.TABLE)&&(e.openElements.popUntilTagNamePopped(a.TABLE),e._resetInsertionMode());break}case a.TEMPLATE:{It(e,t);break}case a.BODY:case a.CAPTION:case a.COL:case a.COLGROUP:case a.HTML:case a.TBODY:case a.TD:case a.TFOOT:case a.TH:case a.THEAD:case a.TR:break;default:oi(e,t)}}function oi(e,t){let r=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Ds(e,t),e.fosterParentingEnabled=r}function Nc(e,t){e.pendingCharacterTokens.push(t)}function Sc(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function ei(e,t){let r=0;if(e.hasNonWhitespacePendingCharacterToken)for(;r<e.pendingCharacterTokens.length;r++)oi(e,e.pendingCharacterTokens[r]);else for(;r<e.pendingCharacterTokens.length;r++)e._insertCharacters(e.pendingCharacterTokens[r]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}var Ic=new Set([a.CAPTION,a.COL,a.COLGROUP,a.TBODY,a.TD,a.TFOOT,a.TH,a.THEAD,a.TR]);function Ff(e,t){let r=t.tagID;Ic.has(r)?e.openElements.hasInTableScope(a.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(a.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=f.IN_TABLE,ar(e,t)):J(e,t)}function $f(e,t){let r=t.tagID;switch(r){case a.CAPTION:case a.TABLE:{e.openElements.hasInTableScope(a.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(a.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=f.IN_TABLE,r===a.TABLE&&ni(e,t));break}case a.BODY:case a.COL:case a.COLGROUP:case a.HTML:case a.TBODY:case a.TD:case a.TFOOT:case a.TH:case a.THEAD:case a.TR:break;default:Os(e,t)}}function In(e,t){switch(t.tagID){case a.HTML:{J(e,t);break}case a.COL:{e._appendElement(t,E.HTML),t.ackSelfClosing=!0;break}case a.TEMPLATE:{_e(e,t);break}default:Rs(e,t)}}function Vf(e,t){switch(t.tagID){case a.COLGROUP:{e.openElements.currentTagId===a.COLGROUP&&(e.openElements.pop(),e.insertionMode=f.IN_TABLE);break}case a.TEMPLATE:{It(e,t);break}case a.COL:break;default:Rs(e,t)}}function Rs(e,t){e.openElements.currentTagId===a.COLGROUP&&(e.openElements.pop(),e.insertionMode=f.IN_TABLE,e._processToken(t))}function ks(e,t){switch(t.tagID){case a.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,E.HTML),e.insertionMode=f.IN_ROW;break}case a.TH:case a.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(m.TR,a.TR),e.insertionMode=f.IN_ROW,Ms(e,t);break}case a.CAPTION:case a.COL:case a.COLGROUP:case a.TBODY:case a.TFOOT:case a.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=f.IN_TABLE,ar(e,t));break}default:ar(e,t)}}function Cn(e,t){let r=t.tagID;switch(t.tagID){case a.TBODY:case a.TFOOT:case a.THEAD:{e.openElements.hasInTableScope(r)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=f.IN_TABLE);break}case a.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=f.IN_TABLE,ni(e,t));break}case a.BODY:case a.CAPTION:case a.COL:case a.COLGROUP:case a.HTML:case a.TD:case a.TH:case a.TR:break;default:ni(e,t)}}function Ms(e,t){switch(t.tagID){case a.TH:case a.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,E.HTML),e.insertionMode=f.IN_CELL,e.activeFormattingElements.insertMarker();break}case a.CAPTION:case a.COL:case a.COLGROUP:case a.TBODY:case a.TFOOT:case a.THEAD:case a.TR:{e.openElements.hasInTableScope(a.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=f.IN_TABLE_BODY,ks(e,t));break}default:ar(e,t)}}function Rc(e,t){switch(t.tagID){case a.TR:{e.openElements.hasInTableScope(a.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=f.IN_TABLE_BODY);break}case a.TABLE:{e.openElements.hasInTableScope(a.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=f.IN_TABLE_BODY,Cn(e,t));break}case a.TBODY:case a.TFOOT:case a.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(a.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=f.IN_TABLE_BODY,Cn(e,t));break}case a.BODY:case a.CAPTION:case a.COL:case a.COLGROUP:case a.HTML:case a.TD:case a.TH:break;default:ni(e,t)}}function Yf(e,t){let r=t.tagID;Ic.has(r)?(e.openElements.hasInTableScope(a.TD)||e.openElements.hasInTableScope(a.TH))&&(e._closeTableCell(),Ms(e,t)):J(e,t)}function Gf(e,t){let r=t.tagID;switch(r){case a.TD:case a.TH:{e.openElements.hasInTableScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=f.IN_ROW);break}case a.TABLE:case a.TBODY:case a.TFOOT:case a.THEAD:case a.TR:{e.openElements.hasInTableScope(r)&&(e._closeTableCell(),Rc(e,t));break}case a.BODY:case a.CAPTION:case a.COL:case a.COLGROUP:case a.HTML:break;default:Os(e,t)}}function Lc(e,t){switch(t.tagID){case a.HTML:{J(e,t);break}case a.OPTION:{e.openElements.currentTagId===a.OPTION&&e.openElements.pop(),e._insertElement(t,E.HTML);break}case a.OPTGROUP:{e.openElements.currentTagId===a.OPTION&&e.openElements.pop(),e.openElements.currentTagId===a.OPTGROUP&&e.openElements.pop(),e._insertElement(t,E.HTML);break}case a.INPUT:case a.KEYGEN:case a.TEXTAREA:case a.SELECT:{e.openElements.hasInSelectScope(a.SELECT)&&(e.openElements.popUntilTagNamePopped(a.SELECT),e._resetInsertionMode(),t.tagID!==a.SELECT&&e._processStartTag(t));break}case a.SCRIPT:case a.TEMPLATE:{_e(e,t);break}default:}}function Dc(e,t){switch(t.tagID){case a.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===a.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===a.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===a.OPTGROUP&&e.openElements.pop();break}case a.OPTION:{e.openElements.currentTagId===a.OPTION&&e.openElements.pop();break}case a.SELECT:{e.openElements.hasInSelectScope(a.SELECT)&&(e.openElements.popUntilTagNamePopped(a.SELECT),e._resetInsertionMode());break}case a.TEMPLATE:{It(e,t);break}default:}}function Xf(e,t){let r=t.tagID;r===a.CAPTION||r===a.TABLE||r===a.TBODY||r===a.TFOOT||r===a.THEAD||r===a.TR||r===a.TD||r===a.TH?(e.openElements.popUntilTagNamePopped(a.SELECT),e._resetInsertionMode(),e._processStartTag(t)):Lc(e,t)}function Wf(e,t){let r=t.tagID;r===a.CAPTION||r===a.TABLE||r===a.TBODY||r===a.TFOOT||r===a.THEAD||r===a.TR||r===a.TD||r===a.TH?e.openElements.hasInTableScope(r)&&(e.openElements.popUntilTagNamePopped(a.SELECT),e._resetInsertionMode(),e.onEndTag(t)):Dc(e,t)}function Kf(e,t){switch(t.tagID){case a.BASE:case a.BASEFONT:case a.BGSOUND:case a.LINK:case a.META:case a.NOFRAMES:case a.SCRIPT:case a.STYLE:case a.TEMPLATE:case a.TITLE:{_e(e,t);break}case a.CAPTION:case a.COLGROUP:case a.TBODY:case a.TFOOT:case a.THEAD:{e.tmplInsertionModeStack[0]=f.IN_TABLE,e.insertionMode=f.IN_TABLE,ar(e,t);break}case a.COL:{e.tmplInsertionModeStack[0]=f.IN_COLUMN_GROUP,e.insertionMode=f.IN_COLUMN_GROUP,In(e,t);break}case a.TR:{e.tmplInsertionModeStack[0]=f.IN_TABLE_BODY,e.insertionMode=f.IN_TABLE_BODY,ks(e,t);break}case a.TD:case a.TH:{e.tmplInsertionModeStack[0]=f.IN_ROW,e.insertionMode=f.IN_ROW,Ms(e,t);break}default:e.tmplInsertionModeStack[0]=f.IN_BODY,e.insertionMode=f.IN_BODY,J(e,t)}}function Qf(e,t){t.tagID===a.TEMPLATE&&It(e,t)}function Oc(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(a.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Sn(e,t)}function jf(e,t){t.tagID===a.HTML?J(e,t):Ls(e,t)}function kc(e,t){var r;if(t.tagID===a.HTML){if(e.fragmentContext||(e.insertionMode=f.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===a.HTML){e._setEndLocation(e.openElements.items[0],t);let i=e.openElements.items[1];i&&!(!((r=e.treeAdapter.getNodeSourceCodeLocation(i))===null||r===void 0)&&r.endTag)&&e._setEndLocation(i,t)}}else Ls(e,t)}function Ls(e,t){e.insertionMode=f.IN_BODY,Ds(e,t)}function zf(e,t){switch(t.tagID){case a.HTML:{J(e,t);break}case a.FRAMESET:{e._insertElement(t,E.HTML);break}case a.FRAME:{e._appendElement(t,E.HTML),t.ackSelfClosing=!0;break}case a.NOFRAMES:{_e(e,t);break}default:}}function Jf(e,t){t.tagID===a.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==a.FRAMESET&&(e.insertionMode=f.AFTER_FRAMESET))}function Zf(e,t){switch(t.tagID){case a.HTML:{J(e,t);break}case a.NOFRAMES:{_e(e,t);break}default:}}function ep(e,t){t.tagID===a.HTML&&(e.insertionMode=f.AFTER_AFTER_FRAMESET)}function tp(e,t){t.tagID===a.HTML?J(e,t):Is(e,t)}function Is(e,t){e.insertionMode=f.IN_BODY,Ds(e,t)}function rp(e,t){switch(t.tagID){case a.HTML:{J(e,t);break}case a.NOFRAMES:{_e(e,t);break}default:}}function ip(e,t){t.chars=U,e._insertCharacters(t)}function sp(e,t){e._insertCharacters(t),e.framesetOk=!1}function Mc(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==E.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function ap(e,t){if(xn(t))Mc(e),e._startTagOutsideForeignContent(t);else{let r=e._getAdjustedCurrentElement(),i=e.treeAdapter.getNamespaceURI(r);i===E.MATHML?Cs(t):i===E.SVG&&(vn(t),Ns(t)),Jr(t),t.selfClosing?e._appendElement(t,i):e._insertElement(t,i),t.ackSelfClosing=!0}}function np(e,t){if(t.tagID===a.P||t.tagID===a.BR){Mc(e),e._endTagOutsideForeignContent(t);return}for(let r=e.openElements.stackTop;r>0;r--){let i=e.openElements.items[r];if(e.treeAdapter.getNamespaceURI(i)===E.HTML){e._endTagOutsideForeignContent(t);break}let s=e.treeAdapter.getTagName(i);if(s.toLowerCase()===t.tagName){t.tagName=s,e.openElements.shortenToLength(r);break}}}var op=new Set([m.AREA,m.BASE,m.BASEFONT,m.BGSOUND,m.BR,m.COL,m.EMBED,m.FRAME,m.HR,m.IMG,m.INPUT,m.KEYGEN,m.LINK,m.META,m.PARAM,m.SOURCE,m.TRACK,m.WBR]);function up(e,t){return t.treeAdapter.isElementNode(e)&&t.treeAdapter.getNamespaceURI(e)===E.HTML&&op.has(t.treeAdapter.getTagName(e))}var cp={treeAdapter:Oe,scriptingEnabled:!0};function Rn(e,t){let r=R(R({},cp),t);return Pc(e,r)}function lp(e,t){let r="",i=t.treeAdapter.isElementNode(e)&&t.treeAdapter.getTagName(e)===m.TEMPLATE&&t.treeAdapter.getNamespaceURI(e)===E.HTML?t.treeAdapter.getTemplateContent(e):e,s=t.treeAdapter.getChildNodes(i);if(s)for(let n of s)r+=Pc(n,t);return r}function Pc(e,t){return t.treeAdapter.isElementNode(e)?dp(e,t):t.treeAdapter.isTextNode(e)?fp(e,t):t.treeAdapter.isCommentNode(e)?pp(e,t):t.treeAdapter.isDocumentTypeNode(e)?mp(e,t):""}function dp(e,t){let r=t.treeAdapter.getTagName(e);return`<${r}${hp(e,t)}>${up(e,t)?"":`${lp(e,t)}</${r}>`}`}function hp(e,{treeAdapter:t}){let r="";for(let i of t.getAttrList(e)){if(r+=" ",!i.namespace)r+=i.name;else switch(i.namespace){case E.XML:{r+=`xml:${i.name}`;break}case E.XMLNS:{i.name!=="xmlns"&&(r+="xmlns:"),r+=i.name;break}case E.XLINK:{r+=`xlink:${i.name}`;break}default:r+=`${i.prefix}:${i.name}`}r+=`="${Qt(i.value)}"`}return r}function fp(e,t){let{treeAdapter:r}=t,i=r.getTextNodeContent(e),s=r.getParentNode(e),n=s&&r.isElementNode(s)&&r.getTagName(s);return n&&r.getNamespaceURI(s)===E.HTML&&Tn(n,t.scriptingEnabled)?i:jt(i)}function pp(e,{treeAdapter:t}){return`<!--${t.getCommentNodeContent(e)}-->`}function mp(e,{treeAdapter:t}){return`<!DOCTYPE ${t.getDocumentTypeNodeName(e)}>`}function qc(e,t){return sr.parse(e,t)}function Hc(e,t,r){typeof e=="string"&&(r=t,t=e,e=null);let i=sr.getFragmentParser(e,r);return i.tokenizer.write(t,!0),i.getFragment()}function Bc(e){return new De(e)}function Uc(e){let t=e.includes('"')?"'":'"';return t+e+t}function gp(e,t,r){let i="!DOCTYPE ";return e&&(i+=e),t?i+=` PUBLIC ${Uc(t)}`:r&&(i+=" SYSTEM"),r&&(i+=` ${Uc(r)}`),i}var Rt={isCommentNode:At,isElementNode:L,isTextNode:se,createDocument(){let e=new ce([]);return e["x-mode"]=Kr.DOCUMENT_MODE.NO_QUIRKS,e},createDocumentFragment(){return new ce([])},createElement(e,t,r){let i=Object.create(null),s=Object.create(null),n=Object.create(null);for(let u=0;u<r.length;u++){let c=r[u].name;i[c]=r[u].value,s[c]=r[u].namespace,n[c]=r[u].prefix}let o=new _t(e,i,[]);return o.namespace=t,o["x-attribsNamespace"]=s,o["x-attribsPrefix"]=n,o},createCommentNode(e){return new xt(e)},appendChild(e,t){let r=e.children[e.children.length-1];r&&(r.next=t,t.prev=r),e.children.push(t),t.parent=e},insertBefore(e,t,r){let i=e.children.indexOf(r),{prev:s}=r;s&&(s.next=t,t.prev=s),r.prev=t,t.next=r,e.children.splice(i,0,t),t.parent=e},setTemplateContent(e,t){Rt.appendChild(e,t)},getTemplateContent(e){return e.children[0]},setDocumentType(e,t,r,i){let s=gp(t,r,i),n=e.children.find(o=>Wi(o)&&o.name==="!doctype");n?n.data=s!=null?s:null:(n=new vt("!doctype",s),Rt.appendChild(e,n)),n["x-name"]=t!=null?t:void 0,n["x-publicId"]=r!=null?r:void 0,n["x-systemId"]=i!=null?i:void 0},setDocumentMode(e,t){e["x-mode"]=t},getDocumentMode(e){return e["x-mode"]},detachNode(e){if(e.parent){let t=e.parent.children.indexOf(e),{prev:r,next:i}=e;e.prev=null,e.next=null,r&&(r.next=i),i&&(i.prev=r),e.parent.children.splice(t,1),e.parent=null}},insertText(e,t){let r=e.children[e.children.length-1];r&&se(r)?r.data+=t:Rt.appendChild(e,Bc(t))},insertTextBefore(e,t,r){let i=e.children[e.children.indexOf(r)-1];i&&se(i)?i.data+=t:Rt.insertBefore(e,Bc(t),r)},adoptAttributes(e,t){for(let r=0;r<t.length;r++){let i=t[r].name;typeof e.attribs[i]=="undefined"&&(e.attribs[i]=t[r].value,e["x-attribsNamespace"][i]=t[r].namespace,e["x-attribsPrefix"][i]=t[r].prefix)}},getFirstChild(e){return e.children[0]},getChildNodes(e){return e.children},getParentNode(e){return e.parent},getAttrList(e){return e.attributes},getTagName(e){return e.name},getNamespaceURI(e){return e.namespace},getTextNodeContent(e){return e.data},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){var t;return(t=e["x-name"])!==null&&t!==void 0?t:""},getDocumentTypeNodePublicId(e){var t;return(t=e["x-publicId"])!==null&&t!==void 0?t:""},getDocumentTypeNodeSystemId(e){var t;return(t=e["x-systemId"])!==null&&t!==void 0?t:""},isDocumentTypeNode(e){return Wi(e)&&e.name==="!doctype"},setNodeSourceCodeLocation(e,t){t&&(e.startIndex=t.startOffset,e.endIndex=t.endOffset),e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){t.endOffset!=null&&(e.endIndex=t.endOffset),e.sourceCodeLocation=R(R({},e.sourceCodeLocation),t)}};function Fc(e,t,r,i){let s={scriptingEnabled:typeof t.scriptingEnabled=="boolean"?t.scriptingEnabled:!0,treeAdapter:Rt,sourceCodeLocationInfo:t.sourceCodeLocationInfo};return r?qc(e,s):Hc(i,e,s)}var bp={treeAdapter:Rt};function $c(e){let t="length"in e?e:[e];for(let i=0;i<t.length;i+=1){let s=t[i];xe(s)&&Array.prototype.splice.call(t,i,1,...s.children)}let r="";for(let i=0;i<t.length;i+=1){let s=t[i];r+=Rn(s,bp)}return r}var S;(function(e){e[e.Tab=9]="Tab",e[e.NewLine=10]="NewLine",e[e.FormFeed=12]="FormFeed",e[e.CarriageReturn=13]="CarriageReturn",e[e.Space=32]="Space",e[e.ExclamationMark=33]="ExclamationMark",e[e.Number=35]="Number",e[e.Amp=38]="Amp",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Dash=45]="Dash",e[e.Slash=47]="Slash",e[e.Zero=48]="Zero",e[e.Nine=57]="Nine",e[e.Semi=59]="Semi",e[e.Lt=60]="Lt",e[e.Eq=61]="Eq",e[e.Gt=62]="Gt",e[e.Questionmark=63]="Questionmark",e[e.UpperA=65]="UpperA",e[e.LowerA=97]="LowerA",e[e.UpperF=70]="UpperF",e[e.LowerF=102]="LowerF",e[e.UpperZ=90]="UpperZ",e[e.LowerZ=122]="LowerZ",e[e.LowerX=120]="LowerX",e[e.OpeningSquareBracket=91]="OpeningSquareBracket"})(S||(S={}));var w;(function(e){e[e.Text=1]="Text",e[e.BeforeTagName=2]="BeforeTagName",e[e.InTagName=3]="InTagName",e[e.InSelfClosingTag=4]="InSelfClosingTag",e[e.BeforeClosingTagName=5]="BeforeClosingTagName",e[e.InClosingTagName=6]="InClosingTagName",e[e.AfterClosingTagName=7]="AfterClosingTagName",e[e.BeforeAttributeName=8]="BeforeAttributeName",e[e.InAttributeName=9]="InAttributeName",e[e.AfterAttributeName=10]="AfterAttributeName",e[e.BeforeAttributeValue=11]="BeforeAttributeValue",e[e.InAttributeValueDq=12]="InAttributeValueDq",e[e.InAttributeValueSq=13]="InAttributeValueSq",e[e.InAttributeValueNq=14]="InAttributeValueNq",e[e.BeforeDeclaration=15]="BeforeDeclaration",e[e.InDeclaration=16]="InDeclaration",e[e.InProcessingInstruction=17]="InProcessingInstruction",e[e.BeforeComment=18]="BeforeComment",e[e.CDATASequence=19]="CDATASequence",e[e.InSpecialComment=20]="InSpecialComment",e[e.InCommentLike=21]="InCommentLike",e[e.BeforeSpecialS=22]="BeforeSpecialS",e[e.SpecialStartSequence=23]="SpecialStartSequence",e[e.InSpecialTag=24]="InSpecialTag",e[e.BeforeEntity=25]="BeforeEntity",e[e.BeforeNumericEntity=26]="BeforeNumericEntity",e[e.InNamedEntity=27]="InNamedEntity",e[e.InNumericEntity=28]="InNumericEntity",e[e.InHexEntity=29]="InHexEntity"})(w||(w={}));function Xe(e){return e===S.Space||e===S.NewLine||e===S.Tab||e===S.FormFeed||e===S.CarriageReturn}function Ps(e){return e===S.Slash||e===S.Gt||Xe(e)}function Vc(e){return e>=S.Zero&&e<=S.Nine}function Ep(e){return e>=S.LowerA&&e<=S.LowerZ||e>=S.UpperA&&e<=S.UpperZ}function Tp(e){return e>=S.UpperA&&e<=S.UpperF||e>=S.LowerA&&e<=S.LowerF}var Ae;(function(e){e[e.NoValue=0]="NoValue",e[e.Unquoted=1]="Unquoted",e[e.Single=2]="Single",e[e.Double=3]="Double"})(Ae||(Ae={}));var oe={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},nr=class{constructor({xmlMode:t=!1,decodeEntities:r=!0},i){this.cbs=i,this.state=w.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=w.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=t,this.decodeEntities=r,this.entityTrie=t?Ki:fe}reset(){this.state=w.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=w.Text,this.currentSequence=void 0,this.running=!0,this.offset=0}write(t){this.offset+=this.buffer.length,this.buffer=t,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()}getIndex(){return this.index}getSectionStart(){return this.sectionStart}stateText(t){t===S.Lt||!this.decodeEntities&&this.fastForwardTo(S.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=w.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&t===S.Amp&&(this.state=w.BeforeEntity)}stateSpecialStartSequence(t){let r=this.sequenceIndex===this.currentSequence.length;if(!(r?Ps(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.isSpecial=!1;else if(!r){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=w.InTagName,this.stateInTagName(t)}stateInSpecialTag(t){if(this.sequenceIndex===this.currentSequence.length){if(t===S.Gt||Xe(t)){let r=this.index-this.currentSequence.length;if(this.sectionStart<r){let i=this.index;this.index=r,this.cbs.ontext(this.sectionStart,r),this.index=i}this.isSpecial=!1,this.sectionStart=r+2,this.stateInClosingTagName(t);return}this.sequenceIndex=0}(t|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===oe.TitleEnd?this.decodeEntities&&t===S.Amp&&(this.state=w.BeforeEntity):this.fastForwardTo(S.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=+(t===S.Lt)}stateCDATASequence(t){t===oe.Cdata[this.sequenceIndex]?++this.sequenceIndex===oe.Cdata.length&&(this.state=w.InCommentLike,this.currentSequence=oe.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=w.InDeclaration,this.stateInDeclaration(t))}fastForwardTo(t){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===t)return!0;return this.index=this.buffer.length+this.offset-1,!1}stateInCommentLike(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===oe.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=w.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}isTagStartChar(t){return this.xmlMode?!Ps(t):Ep(t)}startSpecial(t,r){this.isSpecial=!0,this.currentSequence=t,this.sequenceIndex=r,this.state=w.SpecialStartSequence}stateBeforeTagName(t){if(t===S.ExclamationMark)this.state=w.BeforeDeclaration,this.sectionStart=this.index+1;else if(t===S.Questionmark)this.state=w.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(t)){let r=t|32;this.sectionStart=this.index,!this.xmlMode&&r===oe.TitleEnd[2]?this.startSpecial(oe.TitleEnd,3):this.state=!this.xmlMode&&r===oe.ScriptEnd[2]?w.BeforeSpecialS:w.InTagName}else t===S.Slash?this.state=w.BeforeClosingTagName:(this.state=w.Text,this.stateText(t))}stateInTagName(t){Ps(t)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=w.BeforeAttributeName,this.stateBeforeAttributeName(t))}stateBeforeClosingTagName(t){Xe(t)||(t===S.Gt?this.state=w.Text:(this.state=this.isTagStartChar(t)?w.InClosingTagName:w.InSpecialComment,this.sectionStart=this.index))}stateInClosingTagName(t){(t===S.Gt||Xe(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=w.AfterClosingTagName,this.stateAfterClosingTagName(t))}stateAfterClosingTagName(t){(t===S.Gt||this.fastForwardTo(S.Gt))&&(this.state=w.Text,this.baseState=w.Text,this.sectionStart=this.index+1)}stateBeforeAttributeName(t){t===S.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=w.InSpecialTag,this.sequenceIndex=0):this.state=w.Text,this.baseState=this.state,this.sectionStart=this.index+1):t===S.Slash?this.state=w.InSelfClosingTag:Xe(t)||(this.state=w.InAttributeName,this.sectionStart=this.index)}stateInSelfClosingTag(t){t===S.Gt?(this.cbs.onselfclosingtag(this.index),this.state=w.Text,this.baseState=w.Text,this.sectionStart=this.index+1,this.isSpecial=!1):Xe(t)||(this.state=w.BeforeAttributeName,this.stateBeforeAttributeName(t))}stateInAttributeName(t){(t===S.Eq||Ps(t))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=w.AfterAttributeName,this.stateAfterAttributeName(t))}stateAfterAttributeName(t){t===S.Eq?this.state=w.BeforeAttributeValue:t===S.Slash||t===S.Gt?(this.cbs.onattribend(Ae.NoValue,this.index),this.state=w.BeforeAttributeName,this.stateBeforeAttributeName(t)):Xe(t)||(this.cbs.onattribend(Ae.NoValue,this.index),this.state=w.InAttributeName,this.sectionStart=this.index)}stateBeforeAttributeValue(t){t===S.DoubleQuote?(this.state=w.InAttributeValueDq,this.sectionStart=this.index+1):t===S.SingleQuote?(this.state=w.InAttributeValueSq,this.sectionStart=this.index+1):Xe(t)||(this.sectionStart=this.index,this.state=w.InAttributeValueNq,this.stateInAttributeValueNoQuotes(t))}handleInAttributeValue(t,r){t===r||!this.decodeEntities&&this.fastForwardTo(r)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(r===S.DoubleQuote?Ae.Double:Ae.Single,this.index),this.state=w.BeforeAttributeName):this.decodeEntities&&t===S.Amp&&(this.baseState=this.state,this.state=w.BeforeEntity)}stateInAttributeValueDoubleQuotes(t){this.handleInAttributeValue(t,S.DoubleQuote)}stateInAttributeValueSingleQuotes(t){this.handleInAttributeValue(t,S.SingleQuote)}stateInAttributeValueNoQuotes(t){Xe(t)||t===S.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(Ae.Unquoted,this.index),this.state=w.BeforeAttributeName,this.stateBeforeAttributeName(t)):this.decodeEntities&&t===S.Amp&&(this.baseState=this.state,this.state=w.BeforeEntity)}stateBeforeDeclaration(t){t===S.OpeningSquareBracket?(this.state=w.CDATASequence,this.sequenceIndex=0):this.state=t===S.Dash?w.BeforeComment:w.InDeclaration}stateInDeclaration(t){(t===S.Gt||this.fastForwardTo(S.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=w.Text,this.sectionStart=this.index+1)}stateInProcessingInstruction(t){(t===S.Gt||this.fastForwardTo(S.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=w.Text,this.sectionStart=this.index+1)}stateBeforeComment(t){t===S.Dash?(this.state=w.InCommentLike,this.currentSequence=oe.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=w.InDeclaration}stateInSpecialComment(t){(t===S.Gt||this.fastForwardTo(S.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=w.Text,this.sectionStart=this.index+1)}stateBeforeSpecialS(t){let r=t|32;r===oe.ScriptEnd[3]?this.startSpecial(oe.ScriptEnd,4):r===oe.StyleEnd[3]?this.startSpecial(oe.StyleEnd,4):(this.state=w.InTagName,this.stateInTagName(t))}stateBeforeEntity(t){this.entityExcess=1,this.entityResult=0,t===S.Number?this.state=w.BeforeNumericEntity:t===S.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=w.InNamedEntity,this.stateInNamedEntity(t))}stateInNamedEntity(t){if(this.entityExcess+=1,this.trieIndex=kr(this.entityTrie,this.trieCurrent,this.trieIndex+1,t),this.trieIndex<0){this.emitNamedEntity(),this.index--;return}this.trieCurrent=this.entityTrie[this.trieIndex];let r=this.trieCurrent&ee.VALUE_LENGTH;if(r){let i=(r>>14)-1;if(!this.allowLegacyEntity()&&t!==S.Semi)this.trieIndex+=i;else{let s=this.index-this.entityExcess+1;s>this.sectionStart&&this.emitPartial(this.sectionStart,s),this.entityResult=this.trieIndex,this.trieIndex+=i,this.entityExcess=0,this.sectionStart=this.index+1,i===0&&this.emitNamedEntity()}}}emitNamedEntity(){if(this.state=this.baseState,this.entityResult===0)return;switch((this.entityTrie[this.entityResult]&ee.VALUE_LENGTH)>>14){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~ee.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}stateBeforeNumericEntity(t){(t|32)===S.LowerX?(this.entityExcess++,this.state=w.InHexEntity):(this.state=w.InNumericEntity,this.stateInNumericEntity(t))}emitNumericEntity(t){let r=this.index-this.entityExcess-1;r+2+ +(this.state===w.InHexEntity)!==this.index&&(r>this.sectionStart&&this.emitPartial(this.sectionStart,r),this.sectionStart=this.index+Number(t),this.emitCodePoint(Or(this.entityResult))),this.state=this.baseState}stateInNumericEntity(t){t===S.Semi?this.emitNumericEntity(!0):Vc(t)?(this.entityResult=this.entityResult*10+(t-S.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)}stateInHexEntity(t){t===S.Semi?this.emitNumericEntity(!0):Vc(t)?(this.entityResult=this.entityResult*16+(t-S.Zero),this.entityExcess++):Tp(t)?(this.entityResult=this.entityResult*16+((t|32)-S.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)}allowLegacyEntity(){return!this.xmlMode&&(this.baseState===w.Text||this.baseState===w.InSpecialTag)}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===w.Text||this.state===w.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===w.InAttributeValueDq||this.state===w.InAttributeValueSq||this.state===w.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}shouldContinue(){return this.index<this.buffer.length+this.offset&&this.running}parse(){for(;this.shouldContinue();){let t=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case w.Text:{this.stateText(t);break}case w.SpecialStartSequence:{this.stateSpecialStartSequence(t);break}case w.InSpecialTag:{this.stateInSpecialTag(t);break}case w.CDATASequence:{this.stateCDATASequence(t);break}case w.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(t);break}case w.InAttributeName:{this.stateInAttributeName(t);break}case w.InCommentLike:{this.stateInCommentLike(t);break}case w.InSpecialComment:{this.stateInSpecialComment(t);break}case w.BeforeAttributeName:{this.stateBeforeAttributeName(t);break}case w.InTagName:{this.stateInTagName(t);break}case w.InClosingTagName:{this.stateInClosingTagName(t);break}case w.BeforeTagName:{this.stateBeforeTagName(t);break}case w.AfterAttributeName:{this.stateAfterAttributeName(t);break}case w.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(t);break}case w.BeforeAttributeValue:{this.stateBeforeAttributeValue(t);break}case w.BeforeClosingTagName:{this.stateBeforeClosingTagName(t);break}case w.AfterClosingTagName:{this.stateAfterClosingTagName(t);break}case w.BeforeSpecialS:{this.stateBeforeSpecialS(t);break}case w.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(t);break}case w.InSelfClosingTag:{this.stateInSelfClosingTag(t);break}case w.InDeclaration:{this.stateInDeclaration(t);break}case w.BeforeDeclaration:{this.stateBeforeDeclaration(t);break}case w.BeforeComment:{this.stateBeforeComment(t);break}case w.InProcessingInstruction:{this.stateInProcessingInstruction(t);break}case w.InNamedEntity:{this.stateInNamedEntity(t);break}case w.BeforeEntity:{this.stateBeforeEntity(t);break}case w.InHexEntity:{this.stateInHexEntity(t);break}case w.InNumericEntity:{this.stateInNumericEntity(t);break}default:this.stateBeforeNumericEntity(t)}this.index++}this.cleanup()}finish(){this.state===w.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){let t=this.buffer.length+this.offset;this.state===w.InCommentLike?this.currentSequence===oe.CdataEnd?this.cbs.oncdata(this.sectionStart,t,0):this.cbs.oncomment(this.sectionStart,t,0):this.state===w.InNumericEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===w.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===w.InTagName||this.state===w.BeforeAttributeName||this.state===w.BeforeAttributeValue||this.state===w.AfterAttributeName||this.state===w.InAttributeName||this.state===w.InAttributeValueSq||this.state===w.InAttributeValueDq||this.state===w.InAttributeValueNq||this.state===w.InClosingTagName||this.cbs.ontext(this.sectionStart,t)}emitPartial(t,r){this.baseState!==w.Text&&this.baseState!==w.InSpecialTag?this.cbs.onattribdata(t,r):this.cbs.ontext(t,r)}emitCodePoint(t){this.baseState!==w.Text&&this.baseState!==w.InSpecialTag?this.cbs.onattribentity(t):this.cbs.ontextentity(t)}};var or=new Set(["input","option","optgroup","select","button","datalist","textarea"]),H=new Set(["p"]),Yc=new Set(["thead","tbody"]),Gc=new Set(["dd","dt"]),Xc=new Set(["rt","rp"]),wp=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",H],["h1",H],["h2",H],["h3",H],["h4",H],["h5",H],["h6",H],["select",or],["input",or],["output",or],["button",or],["datalist",or],["textarea",or],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",Gc],["dt",Gc],["address",H],["article",H],["aside",H],["blockquote",H],["details",H],["div",H],["dl",H],["fieldset",H],["figcaption",H],["figure",H],["footer",H],["form",H],["header",H],["hr",H],["main",H],["nav",H],["ol",H],["pre",H],["section",H],["table",H],["ul",H],["rt",Xc],["rp",Xc],["tbody",Yc],["tfoot",Yc]]),xp=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),Wc=new Set(["math","svg"]),Kc=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),vp=/\s|\//,ui=class{constructor(t,r={}){var i,s,n,o,u;this.options=r,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=t!=null?t:{},this.lowerCaseTagNames=(i=r.lowerCaseTags)!==null&&i!==void 0?i:!r.xmlMode,this.lowerCaseAttributeNames=(s=r.lowerCaseAttributeNames)!==null&&s!==void 0?s:!r.xmlMode,this.tokenizer=new((n=r.Tokenizer)!==null&&n!==void 0?n:nr)(this.options,this),(u=(o=this.cbs).onparserinit)===null||u===void 0||u.call(o,this)}ontext(t,r){var i,s;let n=this.getSlice(t,r);this.endIndex=r-1,(s=(i=this.cbs).ontext)===null||s===void 0||s.call(i,n),this.startIndex=r}ontextentity(t){var r,i;let s=this.tokenizer.getSectionStart();this.endIndex=s-1,(i=(r=this.cbs).ontext)===null||i===void 0||i.call(r,Kt(t)),this.startIndex=s}isVoidElement(t){return!this.options.xmlMode&&xp.has(t)}onopentagname(t,r){this.endIndex=r;let i=this.getSlice(t,r);this.lowerCaseTagNames&&(i=i.toLowerCase()),this.emitOpenTag(i)}emitOpenTag(t){var r,i,s,n;this.openTagStart=this.startIndex,this.tagname=t;let o=!this.options.xmlMode&&wp.get(t);if(o)for(;this.stack.length>0&&o.has(this.stack[this.stack.length-1]);){let u=this.stack.pop();(i=(r=this.cbs).onclosetag)===null||i===void 0||i.call(r,u,!0)}this.isVoidElement(t)||(this.stack.push(t),Wc.has(t)?this.foreignContext.push(!0):Kc.has(t)&&this.foreignContext.push(!1)),(n=(s=this.cbs).onopentagname)===null||n===void 0||n.call(s,t),this.cbs.onopentag&&(this.attribs={})}endOpenTag(t){var r,i;this.startIndex=this.openTagStart,this.attribs&&((i=(r=this.cbs).onopentag)===null||i===void 0||i.call(r,this.tagname,this.attribs,t),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""}onopentagend(t){this.endIndex=t,this.endOpenTag(!1),this.startIndex=t+1}onclosetag(t,r){var i,s,n,o,u,c;this.endIndex=r;let h=this.getSlice(t,r);if(this.lowerCaseTagNames&&(h=h.toLowerCase()),(Wc.has(h)||Kc.has(h))&&this.foreignContext.pop(),this.isVoidElement(h))!this.options.xmlMode&&h==="br"&&((s=(i=this.cbs).onopentagname)===null||s===void 0||s.call(i,"br"),(o=(n=this.cbs).onopentag)===null||o===void 0||o.call(n,"br",{},!0),(c=(u=this.cbs).onclosetag)===null||c===void 0||c.call(u,"br",!1));else{let p=this.stack.lastIndexOf(h);if(p!==-1)if(this.cbs.onclosetag){let T=this.stack.length-p;for(;T--;)this.cbs.onclosetag(this.stack.pop(),T!==0)}else this.stack.length=p;else!this.options.xmlMode&&h==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=r+1}onselfclosingtag(t){this.endIndex=t,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=t+1):this.onopentagend(t)}closeCurrentTag(t){var r,i;let s=this.tagname;this.endOpenTag(t),this.stack[this.stack.length-1]===s&&((i=(r=this.cbs).onclosetag)===null||i===void 0||i.call(r,s,!t),this.stack.pop())}onattribname(t,r){this.startIndex=t;let i=this.getSlice(t,r);this.attribname=this.lowerCaseAttributeNames?i.toLowerCase():i}onattribdata(t,r){this.attribvalue+=this.getSlice(t,r)}onattribentity(t){this.attribvalue+=Kt(t)}onattribend(t,r){var i,s;this.endIndex=r,(s=(i=this.cbs).onattribute)===null||s===void 0||s.call(i,this.attribname,this.attribvalue,t===Ae.Double?'"':t===Ae.Single?"'":t===Ae.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""}getInstructionName(t){let r=t.search(vp),i=r<0?t:t.substr(0,r);return this.lowerCaseTagNames&&(i=i.toLowerCase()),i}ondeclaration(t,r){this.endIndex=r;let i=this.getSlice(t,r);if(this.cbs.onprocessinginstruction){let s=this.getInstructionName(i);this.cbs.onprocessinginstruction(`!${s}`,`!${i}`)}this.startIndex=r+1}onprocessinginstruction(t,r){this.endIndex=r;let i=this.getSlice(t,r);if(this.cbs.onprocessinginstruction){let s=this.getInstructionName(i);this.cbs.onprocessinginstruction(`?${s}`,`?${i}`)}this.startIndex=r+1}oncomment(t,r,i){var s,n,o,u;this.endIndex=r,(n=(s=this.cbs).oncomment)===null||n===void 0||n.call(s,this.getSlice(t,r-i)),(u=(o=this.cbs).oncommentend)===null||u===void 0||u.call(o),this.startIndex=r+1}oncdata(t,r,i){var s,n,o,u,c,h,p,T,x,_;this.endIndex=r;let C=this.getSlice(t,r-i);this.options.xmlMode||this.options.recognizeCDATA?((n=(s=this.cbs).oncdatastart)===null||n===void 0||n.call(s),(u=(o=this.cbs).ontext)===null||u===void 0||u.call(o,C),(h=(c=this.cbs).oncdataend)===null||h===void 0||h.call(c)):((T=(p=this.cbs).oncomment)===null||T===void 0||T.call(p,`[CDATA[${C}]]`),(_=(x=this.cbs).oncommentend)===null||_===void 0||_.call(x)),this.startIndex=r+1}onend(){var t,r;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let i=this.stack.length;i>0;this.cbs.onclosetag(this.stack[--i],!0));}(r=(t=this.cbs).onend)===null||r===void 0||r.call(t)}reset(){var t,r,i,s;(r=(t=this.cbs).onreset)===null||r===void 0||r.call(t),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(s=(i=this.cbs).onparserinit)===null||s===void 0||s.call(i,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1}parseComplete(t){this.reset(),this.end(t)}getSlice(t,r){for(;t-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();let i=this.buffers[0].slice(t-this.bufferOffset,r-this.bufferOffset);for(;r-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),i+=this.buffers[0].slice(0,r-this.bufferOffset);return i}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(t){var r,i;if(this.ended){(i=(r=this.cbs).onerror)===null||i===void 0||i.call(r,new Error(".write() after done!"));return}this.buffers.push(t),this.tokenizer.running&&(this.tokenizer.write(t),this.writeIndex++)}end(t){var r,i;if(this.ended){(i=(r=this.cbs).onerror)===null||i===void 0||i.call(r,new Error(".end() after done!"));return}t&&this.write(t),this.ended=!0,this.tokenizer.end()}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()}parseChunk(t){this.write(t)}done(t){this.end(t)}};function Qc(e,t){let r=new Wt(void 0,t);return new ui(r,t).end(e),r.root}var _p=Gu((e,t,r,i)=>t.xmlMode||t._useHtmlParser2?Qc(e,t):Fc(e,t,r,i)),ur=Ju(_p,(e,t)=>t.xmlMode||t._useHtmlParser2?zi(e,t):$c(e)),uC=ur([]),{contains:cC}=et,{merge:lC}=et,{parseHTML:dC}=et,{root:hC}=et;var yp=`
|
|
443
|
+
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var fe=dt(st(),1);var Zn={};function Jn(e,t){return e===fe.default.falseFunc?fe.default.falseFunc:r=>t.isTag(r)&&e(r)}function ea(e,t){let r=t.getSiblings(e);if(r.length<=1)return[];let s=r.indexOf(e);return s<0||s===r.length-1?[]:r.slice(s+1).filter(t.isTag)}function zn(e){return{xmlMode:!!e.xmlMode,lowerCaseAttributeNames:!!e.lowerCaseAttributeNames,lowerCaseTags:!!e.lowerCaseTags,quirksMode:!!e.quirksMode,cacheResults:!!e.cacheResults,pseudos:e.pseudos,adapter:e.adapter,equals:e.equals}}var jn=(e,t,r,s,i)=>{let a=i(t,zn(r),s);return a===fe.default.trueFunc?e:a===fe.default.falseFunc?fe.default.falseFunc:o=>a(o)&&e(o)},oi={is:jn,matches:jn,where:jn,not(e,t,r,s,i){let a=i(t,zn(r),s);return a===fe.default.falseFunc?e:a===fe.default.trueFunc?fe.default.falseFunc:o=>!a(o)&&e(o)},has(e,t,r,s,i){let{adapter:a}=r,o=zn(r);o.relativeSelector=!0;let u=t.some(p=>p.some(qr))?[Zn]:void 0,c=i(t,o,u);if(c===fe.default.falseFunc)return fe.default.falseFunc;let h=Jn(c,a);if(u&&c!==fe.default.trueFunc){let{shouldTestNextSiblings:p=!1}=c;return g=>{if(!e(g))return!1;u[0]=g;let N=a.getChildren(g),y=p?[...N,...ea(g,a)]:N;return a.existsOne(h,y)}}return p=>e(p)&&a.existsOne(h,a.getChildren(p))}};function Iu(e,t,r,s,i){var a;let{name:o,data:u}=t;if(Array.isArray(u)){if(!(o in oi))throw new Error(`Unknown pseudo-class :${o}(${u})`);return oi[o](e,u,r,s,i)}let c=(a=r.pseudos)===null||a===void 0?void 0:a[o],h=typeof c=="string"?c:ai[o];if(typeof h=="string"){if(u!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let p=qe(h);return oi.is(e,p,r,s,i)}if(typeof c=="function")return Qn(c,o,u,1),p=>c(p,u)&&e(p);if(o in tr)return tr[o](e,u,r,s);if(o in Vr){let p=Vr[o];return Qn(p,o,u,2),g=>p(g,r,u)&&e(g)}throw new Error(`Unknown pseudo-class :${o}`)}function ta(e,t){let r=t.getParent(e);return r&&t.isTag(r)?r:null}function Ru(e,t,r,s,i){let{adapter:a,equals:o}=r;switch(t.type){case D.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case D.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case D.Attribute:{if(t.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(t.name=t.name.toLowerCase()),Nu[t.action](e,t,r)}case D.Pseudo:return Iu(e,t,r,s,i);case D.Tag:{if(t.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:u}=t;return(!r.xmlMode||r.lowerCaseTags)&&(u=u.toLowerCase()),function(h){return a.getName(h)===u&&e(h)}}case D.Descendant:{if(r.cacheResults===!1||typeof WeakSet=="undefined")return function(h){let p=h;for(;p=ta(p,a);)if(e(p))return!0;return!1};let u=new WeakSet;return function(h){let p=h;for(;p=ta(p,a);)if(!u.has(p)){if(a.isTag(p)&&e(p))return!0;u.add(p)}return!1}}case"_flexibleDescendant":return function(c){let h=c;do if(e(h))return!0;while(h=ta(h,a));return!1};case D.Parent:return function(c){return a.getChildren(c).some(h=>a.isTag(h)&&e(h))};case D.Child:return function(c){let h=a.getParent(c);return h!=null&&a.isTag(h)&&e(h)};case D.Sibling:return function(c){let h=a.getSiblings(c);for(let p=0;p<h.length;p++){let g=h[p];if(o(c,g))break;if(a.isTag(g)&&e(g))return!0}return!1};case D.Adjacent:return a.prevElementSibling?function(c){let h=a.prevElementSibling(c);return h!=null&&e(h)}:function(c){let h=a.getSiblings(c),p;for(let g=0;g<h.length;g++){let N=h[g];if(o(c,N))break;a.isTag(N)&&(p=N)}return!!p&&e(p)};case D.Universal:{if(t.namespace!=null&&t.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return e}}}function Lu(e,t,r){let s=ui(e,t,r);return Jn(s,t.adapter)}function ui(e,t,r){let s=typeof e=="string"?qe(e):e;return ci(s,t,r)}function Du(e){return e.type===D.Pseudo&&(e.name==="scope"||Array.isArray(e.data)&&e.data.some(t=>t.some(Du)))}var I0={type:D.Descendant},R0={type:"_flexibleDescendant"},L0={type:D.Pseudo,name:"scope",data:null};function D0(e,{adapter:t},r){let s=!!(r!=null&&r.every(i=>{let a=t.isTag(i)&&t.getParent(i);return i===Zn||a&&t.isTag(a)}));for(let i of e){if(!(i.length>0&&qr(i[0])&&i[0].type!==D.Descendant))if(s&&!i.some(Du))i.unshift(I0);else continue;i.unshift(L0)}}function ci(e,t,r){var s;e.forEach(Xn),r=(s=t.context)!==null&&s!==void 0?s:r;let i=Array.isArray(r),a=r&&(Array.isArray(r)?r:[r]);if(t.relativeSelector!==!1)D0(e,t,a);else if(e.some(c=>c.length>0&&qr(c[0])))throw new Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");let o=!1,u=e.map(c=>{if(c.length>=2){let[h,p]=c;h.type!==D.Pseudo||h.name!=="scope"||(i&&p.type===D.Descendant?c[1]=R0:(p.type===D.Adjacent||p.type===D.Sibling)&&(o=!0))}return O0(c,t,a)}).reduce(M0,$e.default.falseFunc);return u.shouldTestNextSiblings=o,u}function O0(e,t,r){var s;return e.reduce((i,a)=>i===$e.default.falseFunc?$e.default.falseFunc:Ru(i,a,t,r,ci),(s=t.rootFunc)!==null&&s!==void 0?s:$e.default.trueFunc)}function M0(e,t){return t===$e.default.falseFunc||e===$e.default.trueFunc?e:e===$e.default.falseFunc||t===$e.default.trueFunc?t:function(s){return e(s)||t(s)}}var Ou=(e,t)=>e===t,P0={adapter:Fe,equals:Ou};function Mu(e){var t,r,s,i;let a=e!=null?e:P0;return(t=a.adapter)!==null&&t!==void 0||(a.adapter=Fe),(r=a.equals)!==null&&r!==void 0||(a.equals=(i=(s=a.adapter)===null||s===void 0?void 0:s.equals)!==null&&i!==void 0?i:Ou),a}function sa(e){return function(r,s,i){let a=Mu(s);return e(r,a,i)}}var NN=sa(Lu),yN=sa(ui),li=sa(ci);function Pu(e){return function(r,s,i){let a=Mu(i);typeof r!="function"&&(r=ui(r,a,s));let o=di(s,a.adapter,r.shouldTestNextSiblings);return e(r,o,a)}}function di(e,t,r=!1){return r&&(e=k0(e,t)),Array.isArray(e)?t.removeSubsets(e):t.getChildren(e)}function k0(e,t){let r=Array.isArray(e)?e.slice(0):[e],s=r.length;for(let i=0;i<s;i++){let a=ea(r[i],t);r.push(...a)}return r}var vN=Pu((e,t,r)=>e===ra.default.falseFunc||!t||t.length===0?[]:r.adapter.findAll(e,t)),SN=Pu((e,t,r)=>e===ra.default.falseFunc||!t||t.length===0?null:r.adapter.findOne(e,t));var fi=dt(st(),1);var w0=new Set(["first","last","eq","gt","nth","lt","even","odd"]);function rr(e){return e.type!=="pseudo"?!1:w0.has(e.name)?!0:e.name==="not"&&Array.isArray(e.data)?e.data.some(t=>t.some(rr)):!1}function ku(e,t,r){let s=t!=null?parseInt(t,10):NaN;switch(e){case"first":return 1;case"nth":case"eq":return isFinite(s)?s>=0?s+1:1/0:0;case"lt":return isFinite(s)?s>=0?Math.min(s,r):1/0:0;case"gt":return isFinite(s)?1/0:0;case"odd":return 2*r;case"even":return 2*r-1;case"last":case"not":return 1/0}}function wu(e){for(;e.parent;)e=e.parent;return e}function hi(e){let t=[],r=[];for(let s of e)s.some(rr)?t.push(s):r.push(s);return[r,t]}var H0={type:D.Universal,namespace:null},B0={type:D.Pseudo,name:"scope",data:null};function aa(e,t,r={}){return oa([e],t,r)}function oa(e,t,r={}){if(typeof t=="function")return e.some(t);let[s,i]=hi(qe(t));return s.length>0&&e.some(li(s,r))||i.some(a=>Bu(a,e,r).length>0)}function U0(e,t,r,s){let i=typeof r=="string"?parseInt(r,10):NaN;switch(e){case"first":case"lt":return t;case"last":return t.length>0?[t[t.length-1]]:t;case"nth":case"eq":return isFinite(i)&&Math.abs(i)<t.length?[i<0?t[t.length+i]:t[i]]:[];case"gt":return isFinite(i)?t.slice(i+1):[];case"even":return t.filter((a,o)=>o%2===0);case"odd":return t.filter((a,o)=>o%2===1);case"not":{let a=new Set(Hu(r,t,s));return t.filter(o=>!a.has(o))}}}function ua(e,t,r={}){return Hu(qe(e),t,r)}function Hu(e,t,r){if(t.length===0)return[];let[s,i]=hi(e),a;if(s.length){let o=na(t,s,r);if(i.length===0)return o;o.length&&(a=new Set(o))}for(let o=0;o<i.length&&(a==null?void 0:a.size)!==t.length;o++){let u=i[o];if((a?t.filter(p=>L(p)&&!a.has(p)):t).length===0)break;let h=Bu(u,t,r);if(h.length)if(a)h.forEach(p=>a.add(p));else{if(o===i.length-1)return h;a=new Set(h)}}return typeof a!="undefined"?a.size===t.length?t:t.filter(o=>a.has(o)):[]}function Bu(e,t,r){var s;if(e.some(vt)){let i=(s=r.root)!==null&&s!==void 0?s:wu(t[0]),a=Y(I({},r),{context:t,relativeSelector:!1});return e.push(B0),pi(i,e,a,!0,t.length)}return pi(t,e,r,!1,t.length)}function Uu(e,t,r={},s=1/0){if(typeof e=="function")return Fu(t,e);let[i,a]=hi(qe(e)),o=a.map(u=>pi(t,u,r,!0,s));return i.length&&o.push(ia(t,i,r,s)),o.length===0?[]:o.length===1?o[0]:et(o.reduce((u,c)=>[...u,...c]))}function pi(e,t,r,s,i){let a=t.findIndex(rr),o=t.slice(0,a),u=t[a],c=t.length-1===a?i:1/0,h=ku(u.name,u.data,c);if(h===0)return[];let g=(o.length===0&&!Array.isArray(e)?zt(e).filter(L):o.length===0?(Array.isArray(e)?e:[e]).filter(L):s||o.some(vt)?ia(e,[o],r,h):na(e,[o],r)).slice(0,h),N=U0(u.name,g,u.data,r);if(N.length===0||t.length===a+1)return N;let y=t.slice(a+1),R=y.some(vt);if(R){if(vt(y[0])){let{type:O}=y[0];(O===D.Sibling||O===D.Adjacent)&&(N=di(N,Fe,!0)),y.unshift(H0)}r=Y(I({},r),{relativeSelector:!1,rootFunc:O=>N.includes(O)})}else r.rootFunc&&r.rootFunc!==fi.trueFunc&&(r=Y(I({},r),{rootFunc:fi.trueFunc}));return y.some(rr)?pi(N,y,r,!1,i):R?ia(N,[y],r,i):na(N,[y],r)}function ia(e,t,r,s){let i=li(t,r,e);return Fu(e,i,s)}function Fu(e,t,r=1/0){let s=di(e,Fe,t.shouldTestNextSiblings);return Hr(i=>L(i)&&t(i),s,!0,r)}function na(e,t,r){let s=(Array.isArray(e)?e:[e]).filter(L);if(s.length===0)return s;let i=li(t,r);return i===fi.trueFunc?s:s.filter(i)}var q0=/^\s*[~+]/;function $0(e){var t;if(!e)return this._make([]);let r=this.toArray();if(typeof e!="string"){let a=le(e)?e.toArray():[e];return this._make(a.filter(o=>r.some(u=>Fn(u,o))))}let s=q0.test(e)?r:this.children().toArray(),i={context:r,root:(t=this._root)===null||t===void 0?void 0:t[0],xmlMode:this.options.xmlMode,lowerCaseTags:this.options.lowerCaseTags,lowerCaseAttributeNames:this.options.lowerCaseAttributeNames,pseudos:this.options.pseudos,quirksMode:this.options.quirksMode};return this._make(Uu(e,s,i))}function ca(e){return function(t,...r){return function(s){var i;let a=e(t,this);return s&&(a=ha(a,s,this.options.xmlMode,(i=this._root)===null||i===void 0?void 0:i[0])),this._make(this.length>1&&a.length>1?r.reduce((o,u)=>u(o),a):a)}}}var Yr=ca((e,t)=>{let r=[];for(let s=0;s<t.length;s++){let i=e(t[s]);r.push(i)}return new Array().concat(...r)}),la=ca((e,t)=>{let r=[];for(let s=0;s<t.length;s++){let i=e(t[s]);i!==null&&r.push(i)}return r});function da(e,...t){let r=null,s=ca((i,a)=>{let o=[];return F(a,u=>{for(let c;(c=i(u))&&!(r!=null&&r(c,o.length));u=c)o.push(c)}),o})(e,...t);return function(i,a){r=typeof i=="string"?u=>aa(u,i,this.options):i?Gr(i):null;let o=s.call(this,a);return r=null,o}}function sr(e){return Array.from(new Set(e))}var V0=la(({parent:e})=>e&&!be(e)?e:null,sr),Y0=Yr(e=>{let t=[];for(;e.parent&&!be(e.parent);)t.push(e.parent),e=e.parent;return t},et,e=>e.reverse()),G0=da(({parent:e})=>e&&!be(e)?e:null,et,e=>e.reverse());function X0(e){var t;let r=[];if(!e)return this._make(r);let s={xmlMode:this.options.xmlMode,root:(t=this._root)===null||t===void 0?void 0:t[0]},i=typeof e=="string"?a=>aa(a,e,s):Gr(e);return F(this,a=>{for(;a&&L(a);){if(i(a,0)){r.includes(a)||r.push(a);break}a=a.parent}}),this._make(r)}var W0=la(e=>zs(e)),K0=Yr(e=>{let t=[];for(;e.next;)e=e.next,L(e)&&t.push(e);return t},sr),Q0=da(e=>zs(e),sr),j0=la(e=>Zs(e)),z0=Yr(e=>{let t=[];for(;e.prev;)e=e.prev,L(e)&&t.push(e);return t},sr),Z0=da(e=>Zs(e),sr),J0=Yr(e=>Bn(e).filter(t=>L(t)&&t!==e),et),ed=Yr(e=>zt(e).filter(L),sr);function td(){let e=this.toArray().reduce((t,r)=>V(r)?t.concat(r.children):t,[]);return this._make(e)}function rd(e){let t=0,r=this.length;for(;t<r&&e.call(this[t],t,this[t])!==!1;)++t;return this}function sd(e){let t=[];for(let r=0;r<this.length;r++){let s=this[r],i=e.call(s,r,s);i!=null&&(t=t.concat(i))}return this._make(t)}function Gr(e){return typeof e=="function"?(t,r)=>e.call(t,r,t):le(e)?t=>Array.prototype.includes.call(e,t):function(t){return e===t}}function id(e){var t;return this._make(ha(this.toArray(),e,this.options.xmlMode,(t=this._root)===null||t===void 0?void 0:t[0]))}function ha(e,t,r,s){return typeof t=="string"?ua(t,e,{xmlMode:r,root:s}):e.filter(Gr(t))}function nd(e){let t=this.toArray();return typeof e=="string"?oa(t.filter(L),e,this.options):e?t.some(Gr(e)):!1}function ad(e){let t=this.toArray();if(typeof e=="string"){let r=new Set(ua(e,t,this.options));t=t.filter(s=>!r.has(s))}else{let r=Gr(e);t=t.filter((s,i)=>!r(s,i))}return this._make(t)}function od(e){return this.filter(typeof e=="string"?`:has(${e})`:(t,r)=>this._make(r).find(e).length>0)}function ud(){return this.length>1?this._make(this[0]):this}function cd(){return this.length>0?this._make(this[this.length-1]):this}function ld(e){var t;return e=+e,e===0&&this.length<=1?this:(e<0&&(e=this.length+e),this._make((t=this[e])!==null&&t!==void 0?t:[]))}function dd(e){return e==null?this.toArray():this[e<0?this.length+e:e]}function hd(){return Array.prototype.slice.call(this)}function fd(e){let t,r;return e==null?(t=this.parent().children(),r=this[0]):typeof e=="string"?(t=this._make(e),r=this[0]):(t=this,r=le(e)?e[0]:e),Array.prototype.indexOf.call(t,r)}function pd(e,t){return this._make(Array.prototype.slice.call(this,e,t))}function md(){var e;return(e=this.prevObject)!==null&&e!==void 0?e:this._make([])}function Ed(e,t){let r=this._make(e,t),s=et([...this.get(),...r.get()]);return this._make(s)}function bd(e){return this.prevObject?this.add(e?this.prevObject.filter(e):this.prevObject):this}var pa={};me(pa,{_makeDomArray:()=>Td,after:()=>Sd,append:()=>Ad,appendTo:()=>gd,before:()=>Rd,clone:()=>Hd,empty:()=>Md,html:()=>Pd,insertAfter:()=>Id,insertBefore:()=>Ld,prepend:()=>xd,prependTo:()=>_d,remove:()=>Dd,replaceWith:()=>Od,text:()=>wd,toString:()=>kd,unwrap:()=>yd,wrap:()=>Cd,wrapAll:()=>vd,wrapInner:()=>Nd});function qu(e){return function(r,s,i,a){if(typeof Buffer!="undefined"&&Buffer.isBuffer(r)&&(r=r.toString()),typeof r=="string")return e(r,s,i,a);let o=r;if(!Array.isArray(o)&&be(o))return o;let u=new ce([]);return it(o,u),u}}function it(e,t){let r=Array.isArray(e)?e:[e];t?t.children=r:t=null;for(let s=0;s<r.length;s++){let i=r[s];i.parent&&i.parent.children!==r&&Ue(i),t?(i.prev=r[s-1]||null,i.next=r[s+1]||null):i.prev=i.next=null,i.parent=t}return t}function Td(e,t){return e==null?[]:le(e)?t?ri(e.get()):e.get():Array.isArray(e)?e.reduce((r,s)=>r.concat(this._makeDomArray(s,t)),[]):typeof e=="string"?this._parse(e,this.options,!1,null).children:t?ri([e]):[e]}function $u(e){return function(...t){let r=this.length-1;return F(this,(s,i)=>{if(!V(s))return;let a=typeof t[0]=="function"?t[0].call(s,i,this._render(s.children)):t,o=this._makeDomArray(a,i<r);e(o,s.children,s)})}}function nt(e,t,r,s,i){var a,o;let u=[t,r,...s],c=t===0?null:e[t-1],h=t+r>=e.length?null:e[t+r];for(let p=0;p<s.length;++p){let g=s[p],N=g.parent;if(N){let R=N.children.indexOf(g);R>-1&&(N.children.splice(R,1),i===N&&t>R&&u[0]--)}g.parent=i,g.prev&&(g.prev.next=(a=g.next)!==null&&a!==void 0?a:null),g.next&&(g.next.prev=(o=g.prev)!==null&&o!==void 0?o:null),g.prev=p===0?c:s[p-1],g.next=p===s.length-1?h:s[p+1]}return c&&(c.next=s[0]),h&&(h.prev=s[s.length-1]),e.splice(...u)}function gd(e){return(le(e)?e:this._make(e)).append(this),this}function _d(e){return(le(e)?e:this._make(e)).prepend(this),this}var Ad=$u((e,t,r)=>{nt(t,t.length,0,e,r)}),xd=$u((e,t,r)=>{nt(t,0,0,e,r)});function Vu(e){return function(t){let r=this.length-1,s=this.parents().last();for(let i=0;i<this.length;i++){let a=this[i],o=typeof t=="function"?t.call(a,i,a):typeof t=="string"&&!Br(t)?s.find(t).clone():t,[u]=this._makeDomArray(o,i<r);if(!u||!V(u))continue;let c=u,h=0;for(;h<c.children.length;){let p=c.children[h];L(p)?(c=p,h=0):h++}e(a,c,[u])}return this}}var Cd=Vu((e,t,r)=>{let{parent:s}=e;if(!s)return;let i=s.children,a=i.indexOf(e);it([e],t),nt(i,a,0,r,s)}),Nd=Vu((e,t,r)=>{V(e)&&(it(e.children,t),it(r,e))});function yd(e){return this.parent(e).not("body").each((t,r)=>{this._make(r).replaceWith(r.children)}),this}function vd(e){let t=this[0];if(t){let r=this._make(typeof e=="function"?e.call(t,0,t):e).insertBefore(t),s;for(let a=0;a<r.length;a++)r[a].type==="tag"&&(s=r[a]);let i=0;for(;s&&i<s.children.length;){let a=s.children[i];a.type==="tag"?(s=a,i=0):i++}s&&this._make(s).append(this)}return this}function Sd(...e){let t=this.length-1;return F(this,(r,s)=>{let{parent:i}=r;if(!V(r)||!i)return;let a=i.children,o=a.indexOf(r);if(o<0)return;let u=typeof e[0]=="function"?e[0].call(r,s,this._render(r.children)):e,c=this._makeDomArray(u,s<t);nt(a,o+1,0,c,i)})}function Id(e){typeof e=="string"&&(e=this._make(e)),this.remove();let t=[];return this._makeDomArray(e).forEach(r=>{let s=this.clone().toArray(),{parent:i}=r;if(!i)return;let a=i.children,o=a.indexOf(r);o<0||(nt(a,o+1,0,s,i),t.push(...s))}),this._make(t)}function Rd(...e){let t=this.length-1;return F(this,(r,s)=>{let{parent:i}=r;if(!V(r)||!i)return;let a=i.children,o=a.indexOf(r);if(o<0)return;let u=typeof e[0]=="function"?e[0].call(r,s,this._render(r.children)):e,c=this._makeDomArray(u,s<t);nt(a,o,0,c,i)})}function Ld(e){let t=this._make(e);this.remove();let r=[];return F(t,s=>{let i=this.clone().toArray(),{parent:a}=s;if(!a)return;let o=a.children,u=o.indexOf(s);u<0||(nt(o,u,0,i,a),r.push(...i))}),this._make(r)}function Dd(e){let t=e?this.filter(e):this;return F(t,r=>{Ue(r),r.prev=r.next=r.parent=null}),this}function Od(e){return F(this,(t,r)=>{let{parent:s}=t;if(!s)return;let i=s.children,a=typeof e=="function"?e.call(t,r,t):e,o=this._makeDomArray(a);it(o,null);let u=i.indexOf(t);nt(i,u,1,o,s),o.includes(t)||(t.parent=t.prev=t.next=null)})}function Md(){return F(this,e=>{V(e)&&(e.children.forEach(t=>{t.next=t.prev=t.parent=null}),e.children.length=0)})}function Pd(e){if(e===void 0){let t=this[0];return!t||!V(t)?null:this._render(t.children)}return F(this,t=>{if(!V(t))return;t.children.forEach(s=>{s.next=s.prev=s.parent=null});let r=le(e)?e.toArray():this._parse(`${e}`,this.options,!1,t).children;it(r,t)})}function kd(){return this._render(this)}function wd(e){return e===void 0?tt(this):typeof e=="function"?F(this,(t,r)=>this._make(t).text(e.call(t,r,tt([t])))):F(this,t=>{if(!V(t))return;t.children.forEach(s=>{s.next=s.prev=s.parent=null});let r=new Ie(`${e}`);it(r,t)})}function Hd(){return this._make(ri(this.get()))}var ma={};me(ma,{css:()=>Bd});function Bd(e,t){if(e!=null&&t!=null||typeof e=="object"&&!Array.isArray(e))return F(this,(r,s)=>{L(r)&&Yu(r,e,t,s)});if(this.length!==0)return Gu(this[0],e)}function Yu(e,t,r,s){if(typeof t=="string"){let i=Gu(e),a=typeof r=="function"?r.call(e,s,i[t]):r;a===""?delete i[t]:a!=null&&(i[t]=a),e.attribs.style=Ud(i)}else typeof t=="object"&&Object.keys(t).forEach((i,a)=>{Yu(e,i,t[i],a)})}function Gu(e,t){if(!e||!L(e))return;let r=Fd(e.attribs.style);if(typeof t=="string")return r[t];if(Array.isArray(t)){let s={};return t.forEach(i=>{r[i]!=null&&(s[i]=r[i])}),s}return r}function Ud(e){return Object.keys(e).reduce((t,r)=>`${t}${t?" ":""}${r}: ${e[r]};`,"")}function Fd(e){if(e=(e||"").trim(),!e)return{};let t={},r;for(let s of e.split(";")){let i=s.indexOf(":");if(i<1||i===s.length-1){let a=s.trimEnd();a.length>0&&r!==void 0&&(t[r]+=`;${a}`)}else r=s.slice(0,i).trim(),t[r]=s.slice(i+1).trim()}return t}var Ea={};me(Ea,{serialize:()=>$d,serializeArray:()=>Vd});var Xu="input,select,textarea,keygen",qd=/%20/g,Wu=/\r?\n/g;function $d(){return this.serializeArray().map(r=>`${encodeURIComponent(r.name)}=${encodeURIComponent(r.value)}`).join("&").replace(qd,"+")}function Vd(){return this.map((e,t)=>{let r=this._make(t);return L(t)&&t.name==="form"?r.find(Xu).toArray():r.filter(Xu).toArray()}).filter('[name!=""]:enabled:not(:submit, :button, :image, :reset, :file):matches([checked], :not(:checkbox, :radio))').map((e,t)=>{var r;let s=this._make(t),i=s.attr("name"),a=(r=s.val())!==null&&r!==void 0?r:"";return Array.isArray(a)?a.map(o=>({name:i,value:o.replace(Wu,`\r
|
|
444
|
+
`)})):{name:i,value:a.replace(Wu,`\r
|
|
445
|
+
`)}}).toArray()}var at=class{constructor(t,r,s){if(this.length=0,this.options=s,this._root=r,t){for(let i=0;i<t.length;i++)this[i]=t[i];this.length=t.length}}};at.prototype.cheerio="[cheerio object]";at.prototype.splice=Array.prototype.splice;at.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(at.prototype,Yn,fa,pa,ma,Ea);function Ku(e,t){return function r(s,i,a=!0){if(s==null)throw new Error("cheerio.load() expects a string");let o=I(I({},vr),Sr(i)),u=e(s,o,a,null);class c extends at{_make(g,N){let y=h(g,N);return y.prevObject=this,y}_parse(g,N,y,R){return e(g,N,y,R)}_render(g){return t(g,this.options)}}function h(p,g,N=u,y){if(p&&le(p))return p;let R=I(I({},o),Sr(y)),O=typeof N=="string"?[e(N,R,!1,null)]:"length"in N?N:[N],G=le(O)?O:new c(O,null,R);if(G._root=G,!p)return new c(void 0,G,R);let Le=typeof p=="string"&&Br(p)?e(p,R,!1,null).children:Yd(p)?[p]:Array.isArray(p)?p:void 0,Ye=new c(Le,G,R);if(Le)return Ye;if(typeof p!="string")throw new Error("Unexpected type of selector");let ct=p,ur=g?typeof g=="string"?Br(g)?new c([e(g,R,!1,null)],G,R):(ct=`${g} ${ct}`,G):le(g)?g:new c(Array.isArray(g)?g:[g],G,R):G;return ur?ur.find(ct):Ye}return Object.assign(h,rt,{load:r,_root:u,_options:o,fn:c.prototype,prototype:c.prototype}),h}}function Yd(e){return!!e.name||e.type==="root"||e.type==="text"||e.type==="comment"}var Gd=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]),$="\uFFFD",l;(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.NUMBER_SIGN=35]="NUMBER_SIGN",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_F=70]="LATIN_CAPITAL_F",e[e.LATIN_CAPITAL_X=88]="LATIN_CAPITAL_X",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_F=102]="LATIN_SMALL_F",e[e.LATIN_SMALL_X=120]="LATIN_SMALL_X",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z",e[e.REPLACEMENT_CHARACTER=65533]="REPLACEMENT_CHARACTER"})(l=l||(l={}));var re={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function mi(e){return e>=55296&&e<=57343}function Qu(e){return e>=56320&&e<=57343}function ju(e,t){return(e-55296)*1024+9216+t}function Ei(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function bi(e){return e>=64976&&e<=65007||Gd.has(e)}var b;(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"})(b=b||(b={}));var Wd=1<<16,Ti=class{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=Wd,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){let{line:r,col:s,offset:i}=this;return{code:t,startLine:r,endLine:r,startCol:s,endCol:s,startOffset:i,endOffset:i}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){let r=this.html.charCodeAt(this.pos+1);if(Qu(r))return this.pos++,this._addGap(),ju(t,r)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,l.EOF;return this._err(b.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,r){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=r}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,r){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(r)return this.html.startsWith(t,this.pos);for(let s=0;s<t.length;s++)if((this.html.charCodeAt(this.pos+s)|32)!==t.charCodeAt(s))return!1;return!0}peek(t){let r=this.pos+t;if(r>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,l.EOF;let s=this.html.charCodeAt(r);return s===l.CARRIAGE_RETURN?l.LINE_FEED:s}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,l.EOF;let t=this.html.charCodeAt(this.pos);return t===l.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,l.LINE_FEED):t===l.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,mi(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===l.LINE_FEED||t===l.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Ei(t)?this._err(b.controlCharacterInInputStream):bi(t)&&this._err(b.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}};var ba={};me(ba,{TokenType:()=>P,getTokenAttr:()=>Xr});var P;(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"})(P=P||(P={}));function Xr(e,t){for(let r=e.attrs.length-1;r>=0;r--)if(e.attrs[r].name===t)return e.attrs[r].value;return null}var Kr={};me(Kr,{ATTRS:()=>Te,DOCUMENT_MODE:()=>z,NS:()=>T,SPECIAL_ELEMENTS:()=>Ta,TAG_ID:()=>n,TAG_NAMES:()=>m,getTagID:()=>ot,hasUnescapedText:()=>ga,isNumberedHeader:()=>Wr});var T;(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/"})(T=T||(T={}));var Te;(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"})(Te=Te||(Te={}));var z;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(z=z||(z={}));var m;(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.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"})(m=m||(m={}));var n;(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.SECTION=94]="SECTION",e[e.SELECT=95]="SELECT",e[e.SOURCE=96]="SOURCE",e[e.SMALL=97]="SMALL",e[e.SPAN=98]="SPAN",e[e.STRIKE=99]="STRIKE",e[e.STRONG=100]="STRONG",e[e.STYLE=101]="STYLE",e[e.SUB=102]="SUB",e[e.SUMMARY=103]="SUMMARY",e[e.SUP=104]="SUP",e[e.TABLE=105]="TABLE",e[e.TBODY=106]="TBODY",e[e.TEMPLATE=107]="TEMPLATE",e[e.TEXTAREA=108]="TEXTAREA",e[e.TFOOT=109]="TFOOT",e[e.TD=110]="TD",e[e.TH=111]="TH",e[e.THEAD=112]="THEAD",e[e.TITLE=113]="TITLE",e[e.TR=114]="TR",e[e.TRACK=115]="TRACK",e[e.TT=116]="TT",e[e.U=117]="U",e[e.UL=118]="UL",e[e.SVG=119]="SVG",e[e.VAR=120]="VAR",e[e.WBR=121]="WBR",e[e.XMP=122]="XMP"})(n=n||(n={}));var Kd=new Map([[m.A,n.A],[m.ADDRESS,n.ADDRESS],[m.ANNOTATION_XML,n.ANNOTATION_XML],[m.APPLET,n.APPLET],[m.AREA,n.AREA],[m.ARTICLE,n.ARTICLE],[m.ASIDE,n.ASIDE],[m.B,n.B],[m.BASE,n.BASE],[m.BASEFONT,n.BASEFONT],[m.BGSOUND,n.BGSOUND],[m.BIG,n.BIG],[m.BLOCKQUOTE,n.BLOCKQUOTE],[m.BODY,n.BODY],[m.BR,n.BR],[m.BUTTON,n.BUTTON],[m.CAPTION,n.CAPTION],[m.CENTER,n.CENTER],[m.CODE,n.CODE],[m.COL,n.COL],[m.COLGROUP,n.COLGROUP],[m.DD,n.DD],[m.DESC,n.DESC],[m.DETAILS,n.DETAILS],[m.DIALOG,n.DIALOG],[m.DIR,n.DIR],[m.DIV,n.DIV],[m.DL,n.DL],[m.DT,n.DT],[m.EM,n.EM],[m.EMBED,n.EMBED],[m.FIELDSET,n.FIELDSET],[m.FIGCAPTION,n.FIGCAPTION],[m.FIGURE,n.FIGURE],[m.FONT,n.FONT],[m.FOOTER,n.FOOTER],[m.FOREIGN_OBJECT,n.FOREIGN_OBJECT],[m.FORM,n.FORM],[m.FRAME,n.FRAME],[m.FRAMESET,n.FRAMESET],[m.H1,n.H1],[m.H2,n.H2],[m.H3,n.H3],[m.H4,n.H4],[m.H5,n.H5],[m.H6,n.H6],[m.HEAD,n.HEAD],[m.HEADER,n.HEADER],[m.HGROUP,n.HGROUP],[m.HR,n.HR],[m.HTML,n.HTML],[m.I,n.I],[m.IMG,n.IMG],[m.IMAGE,n.IMAGE],[m.INPUT,n.INPUT],[m.IFRAME,n.IFRAME],[m.KEYGEN,n.KEYGEN],[m.LABEL,n.LABEL],[m.LI,n.LI],[m.LINK,n.LINK],[m.LISTING,n.LISTING],[m.MAIN,n.MAIN],[m.MALIGNMARK,n.MALIGNMARK],[m.MARQUEE,n.MARQUEE],[m.MATH,n.MATH],[m.MENU,n.MENU],[m.META,n.META],[m.MGLYPH,n.MGLYPH],[m.MI,n.MI],[m.MO,n.MO],[m.MN,n.MN],[m.MS,n.MS],[m.MTEXT,n.MTEXT],[m.NAV,n.NAV],[m.NOBR,n.NOBR],[m.NOFRAMES,n.NOFRAMES],[m.NOEMBED,n.NOEMBED],[m.NOSCRIPT,n.NOSCRIPT],[m.OBJECT,n.OBJECT],[m.OL,n.OL],[m.OPTGROUP,n.OPTGROUP],[m.OPTION,n.OPTION],[m.P,n.P],[m.PARAM,n.PARAM],[m.PLAINTEXT,n.PLAINTEXT],[m.PRE,n.PRE],[m.RB,n.RB],[m.RP,n.RP],[m.RT,n.RT],[m.RTC,n.RTC],[m.RUBY,n.RUBY],[m.S,n.S],[m.SCRIPT,n.SCRIPT],[m.SECTION,n.SECTION],[m.SELECT,n.SELECT],[m.SOURCE,n.SOURCE],[m.SMALL,n.SMALL],[m.SPAN,n.SPAN],[m.STRIKE,n.STRIKE],[m.STRONG,n.STRONG],[m.STYLE,n.STYLE],[m.SUB,n.SUB],[m.SUMMARY,n.SUMMARY],[m.SUP,n.SUP],[m.TABLE,n.TABLE],[m.TBODY,n.TBODY],[m.TEMPLATE,n.TEMPLATE],[m.TEXTAREA,n.TEXTAREA],[m.TFOOT,n.TFOOT],[m.TD,n.TD],[m.TH,n.TH],[m.THEAD,n.THEAD],[m.TITLE,n.TITLE],[m.TR,n.TR],[m.TRACK,n.TRACK],[m.TT,n.TT],[m.U,n.U],[m.UL,n.UL],[m.SVG,n.SVG],[m.VAR,n.VAR],[m.WBR,n.WBR],[m.XMP,n.XMP]]);function ot(e){var t;return(t=Kd.get(e))!==null&&t!==void 0?t:n.UNKNOWN}var C=n,Ta={[T.HTML]:new Set([C.ADDRESS,C.APPLET,C.AREA,C.ARTICLE,C.ASIDE,C.BASE,C.BASEFONT,C.BGSOUND,C.BLOCKQUOTE,C.BODY,C.BR,C.BUTTON,C.CAPTION,C.CENTER,C.COL,C.COLGROUP,C.DD,C.DETAILS,C.DIR,C.DIV,C.DL,C.DT,C.EMBED,C.FIELDSET,C.FIGCAPTION,C.FIGURE,C.FOOTER,C.FORM,C.FRAME,C.FRAMESET,C.H1,C.H2,C.H3,C.H4,C.H5,C.H6,C.HEAD,C.HEADER,C.HGROUP,C.HR,C.HTML,C.IFRAME,C.IMG,C.INPUT,C.LI,C.LINK,C.LISTING,C.MAIN,C.MARQUEE,C.MENU,C.META,C.NAV,C.NOEMBED,C.NOFRAMES,C.NOSCRIPT,C.OBJECT,C.OL,C.P,C.PARAM,C.PLAINTEXT,C.PRE,C.SCRIPT,C.SECTION,C.SELECT,C.SOURCE,C.STYLE,C.SUMMARY,C.TABLE,C.TBODY,C.TD,C.TEMPLATE,C.TEXTAREA,C.TFOOT,C.TH,C.THEAD,C.TITLE,C.TR,C.TRACK,C.UL,C.WBR,C.XMP]),[T.MATHML]:new Set([C.MI,C.MO,C.MN,C.MS,C.MTEXT,C.ANNOTATION_XML]),[T.SVG]:new Set([C.TITLE,C.FOREIGN_OBJECT,C.DESC]),[T.XLINK]:new Set,[T.XML]:new Set,[T.XMLNS]:new Set};function Wr(e){return e===C.H1||e===C.H2||e===C.H3||e===C.H4||e===C.H5||e===C.H6}var Qd=new Set([m.STYLE,m.SCRIPT,m.XMP,m.IFRAME,m.NOEMBED,m.NOFRAMES,m.PLAINTEXT]);function ga(e,t){return Qd.has(e)||t&&e===m.NOSCRIPT}var jd=new Map([[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]]),d;(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.NAMED_CHARACTER_REFERENCE=72]="NAMED_CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=73]="AMBIGUOUS_AMPERSAND",e[e.NUMERIC_CHARACTER_REFERENCE=74]="NUMERIC_CHARACTER_REFERENCE",e[e.HEXADEMICAL_CHARACTER_REFERENCE_START=75]="HEXADEMICAL_CHARACTER_REFERENCE_START",e[e.HEXADEMICAL_CHARACTER_REFERENCE=76]="HEXADEMICAL_CHARACTER_REFERENCE",e[e.DECIMAL_CHARACTER_REFERENCE=77]="DECIMAL_CHARACTER_REFERENCE",e[e.NUMERIC_CHARACTER_REFERENCE_END=78]="NUMERIC_CHARACTER_REFERENCE_END"})(d||(d={}));var Z={DATA:d.DATA,RCDATA:d.RCDATA,RAWTEXT:d.RAWTEXT,SCRIPT_DATA:d.SCRIPT_DATA,PLAINTEXT:d.PLAINTEXT,CDATA_SECTION:d.CDATA_SECTION};function jr(e){return e>=l.DIGIT_0&&e<=l.DIGIT_9}function Qr(e){return e>=l.LATIN_CAPITAL_A&&e<=l.LATIN_CAPITAL_Z}function zd(e){return e>=l.LATIN_SMALL_A&&e<=l.LATIN_SMALL_Z}function ut(e){return zd(e)||Qr(e)}function _a(e){return ut(e)||jr(e)}function Zu(e){return e>=l.LATIN_CAPITAL_A&&e<=l.LATIN_CAPITAL_F}function Ju(e){return e>=l.LATIN_SMALL_A&&e<=l.LATIN_SMALL_F}function Zd(e){return jr(e)||Zu(e)||Ju(e)}function gi(e){return e+32}function ec(e){return e===l.SPACE||e===l.LINE_FEED||e===l.TABULATION||e===l.FORM_FEED}function Jd(e){return e===l.EQUALS_SIGN||_a(e)}function zu(e){return ec(e)||e===l.SOLIDUS||e===l.GREATER_THAN_SIGN}var zr=class{constructor(t,r){this.options=t,this.handler=r,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=d.DATA,this.returnState=d.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Ti(r),this.currentLocation=this.getCurrentLocation(-1)}_err(t){var r,s;(s=(r=this.handler).onParseError)===null||s===void 0||s.call(r,this.preprocessor.getError(t))}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;let 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,r,s){this.active=!0,this.preprocessor.write(t,r),this._runParsingLoop(),this.paused||s==null||s()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this._unconsume(this.consumedAfterSnapshot),this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(t){this.consumedAfterSnapshot-=t,this.preprocessor.retreat(t)}_reconsumeInState(t,r){this.state=t,this._callState(r)}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let r=0;r<t;r++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,r){return this.preprocessor.startsWith(t,r)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:P.START_TAG,tagName:"",tagID:n.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:P.END_TAG,tagName:"",tagID:n.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:P.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:P.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,r){this.currentCharacterToken={type:t,chars:r,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,r;let s=this.currentToken;if(Xr(s,this.currentAttr.name)===null){if(s.attrs.push(this.currentAttr),s.location&&this.currentLocation){let i=(t=(r=s.location).attrs)!==null&&t!==void 0?t:r.attrs=Object.create(null);i[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(b.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(){let t=this.currentToken;this.prepareToken(t),t.tagID=ot(t.tagName),t.type===P.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(b.endTagWithAttributes),t.selfClosing&&this._err(b.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 P.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case P.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case P.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){let t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:P.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,r){if(this.currentCharacterToken)if(this.currentCharacterToken.type!==t)this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();else{this.currentCharacterToken.chars+=r;return}this._createCharacterToken(t,r)}_emitCodePoint(t){let r=ec(t)?P.WHITESPACE_CHARACTER:t===l.NULL?P.NULL_CHARACTER:P.CHARACTER;this._appendCharToCurrentCharacterToken(r,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(P.CHARACTER,t)}_matchNamedCharacterReference(t){let r=null,s=0,i=!1;for(let a=0,o=de[0];a>=0&&(a=Mr(de,o,a+1,t),!(a<0));t=this._consume()){s+=1,o=de[a];let u=o&te.VALUE_LENGTH;if(u){let c=(u>>14)-1;if(t!==l.SEMICOLON&&this._isCharacterReferenceInAttribute()&&Jd(this.preprocessor.peek(1))?(r=[l.AMPERSAND],a+=c):(r=c===0?[de[a]&~te.VALUE_LENGTH]:c===1?[de[++a]]:[de[++a],de[++a]],s=0,i=t!==l.SEMICOLON),c===0){this._consume();break}}}return this._unconsume(s),i&&!this.preprocessor.endOfChunkHit&&this._err(b.missingSemicolonAfterCharacterReference),this._unconsume(1),r}_isCharacterReferenceInAttribute(){return this.returnState===d.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===d.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===d.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case d.DATA:{this._stateData(t);break}case d.RCDATA:{this._stateRcdata(t);break}case d.RAWTEXT:{this._stateRawtext(t);break}case d.SCRIPT_DATA:{this._stateScriptData(t);break}case d.PLAINTEXT:{this._statePlaintext(t);break}case d.TAG_OPEN:{this._stateTagOpen(t);break}case d.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case d.TAG_NAME:{this._stateTagName(t);break}case d.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case d.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case d.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case d.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case d.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case d.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case d.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case d.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case d.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case d.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case d.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case d.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case d.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case d.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case d.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case d.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case d.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case d.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case d.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case d.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case d.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case d.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case d.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case d.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case d.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case d.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case d.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case d.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case d.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case d.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case d.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case d.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case d.BOGUS_COMMENT:{this._stateBogusComment(t);break}case d.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case d.COMMENT_START:{this._stateCommentStart(t);break}case d.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case d.COMMENT:{this._stateComment(t);break}case d.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case d.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case d.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case d.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case d.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case d.COMMENT_END:{this._stateCommentEnd(t);break}case d.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case d.DOCTYPE:{this._stateDoctype(t);break}case d.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case d.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case d.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case d.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case d.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case d.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case d.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case d.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case d.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case d.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case d.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case d.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case d.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case d.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case d.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case d.CDATA_SECTION:{this._stateCdataSection(t);break}case d.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case d.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case d.CHARACTER_REFERENCE:{this._stateCharacterReference(t);break}case d.NAMED_CHARACTER_REFERENCE:{this._stateNamedCharacterReference(t);break}case d.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}case d.NUMERIC_CHARACTER_REFERENCE:{this._stateNumericCharacterReference(t);break}case d.HEXADEMICAL_CHARACTER_REFERENCE_START:{this._stateHexademicalCharacterReferenceStart(t);break}case d.HEXADEMICAL_CHARACTER_REFERENCE:{this._stateHexademicalCharacterReference(t);break}case d.DECIMAL_CHARACTER_REFERENCE:{this._stateDecimalCharacterReference(t);break}case d.NUMERIC_CHARACTER_REFERENCE_END:{this._stateNumericCharacterReferenceEnd(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case l.LESS_THAN_SIGN:{this.state=d.TAG_OPEN;break}case l.AMPERSAND:{this.returnState=d.DATA,this.state=d.CHARACTER_REFERENCE;break}case l.NULL:{this._err(b.unexpectedNullCharacter),this._emitCodePoint(t);break}case l.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case l.AMPERSAND:{this.returnState=d.RCDATA,this.state=d.CHARACTER_REFERENCE;break}case l.LESS_THAN_SIGN:{this.state=d.RCDATA_LESS_THAN_SIGN;break}case l.NULL:{this._err(b.unexpectedNullCharacter),this._emitChars($);break}case l.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case l.LESS_THAN_SIGN:{this.state=d.RAWTEXT_LESS_THAN_SIGN;break}case l.NULL:{this._err(b.unexpectedNullCharacter),this._emitChars($);break}case l.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case l.LESS_THAN_SIGN:{this.state=d.SCRIPT_DATA_LESS_THAN_SIGN;break}case l.NULL:{this._err(b.unexpectedNullCharacter),this._emitChars($);break}case l.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case l.NULL:{this._err(b.unexpectedNullCharacter),this._emitChars($);break}case l.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(ut(t))this._createStartTagToken(),this.state=d.TAG_NAME,this._stateTagName(t);else switch(t){case l.EXCLAMATION_MARK:{this.state=d.MARKUP_DECLARATION_OPEN;break}case l.SOLIDUS:{this.state=d.END_TAG_OPEN;break}case l.QUESTION_MARK:{this._err(b.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=d.BOGUS_COMMENT,this._stateBogusComment(t);break}case l.EOF:{this._err(b.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(b.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=d.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(ut(t))this._createEndTagToken(),this.state=d.TAG_NAME,this._stateTagName(t);else switch(t){case l.GREATER_THAN_SIGN:{this._err(b.missingEndTagName),this.state=d.DATA;break}case l.EOF:{this._err(b.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(b.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=d.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){let r=this.currentToken;switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:{this.state=d.BEFORE_ATTRIBUTE_NAME;break}case l.SOLIDUS:{this.state=d.SELF_CLOSING_START_TAG;break}case l.GREATER_THAN_SIGN:{this.state=d.DATA,this.emitCurrentTagToken();break}case l.NULL:{this._err(b.unexpectedNullCharacter),r.tagName+=$;break}case l.EOF:{this._err(b.eofInTag),this._emitEOFToken();break}default:r.tagName+=String.fromCodePoint(Qr(t)?gi(t):t)}}_stateRcdataLessThanSign(t){t===l.SOLIDUS?this.state=d.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=d.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){ut(t)?(this.state=d.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=d.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();let r=this.currentToken;switch(r.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=d.BEFORE_ATTRIBUTE_NAME,!1;case l.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=d.SELF_CLOSING_START_TAG,!1;case l.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=d.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=d.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===l.SOLIDUS?this.state=d.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=d.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){ut(t)?(this.state=d.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=d.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=d.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case l.SOLIDUS:{this.state=d.SCRIPT_DATA_END_TAG_OPEN;break}case l.EXCLAMATION_MARK:{this.state=d.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=d.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){ut(t)?(this.state=d.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=d.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=d.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===l.HYPHEN_MINUS?(this.state=d.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=d.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===l.HYPHEN_MINUS?(this.state=d.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=d.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case l.HYPHEN_MINUS:{this.state=d.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case l.LESS_THAN_SIGN:{this.state=d.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case l.NULL:{this._err(b.unexpectedNullCharacter),this._emitChars($);break}case l.EOF:{this._err(b.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case l.HYPHEN_MINUS:{this.state=d.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case l.LESS_THAN_SIGN:{this.state=d.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case l.NULL:{this._err(b.unexpectedNullCharacter),this.state=d.SCRIPT_DATA_ESCAPED,this._emitChars($);break}case l.EOF:{this._err(b.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=d.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case l.HYPHEN_MINUS:{this._emitChars("-");break}case l.LESS_THAN_SIGN:{this.state=d.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case l.GREATER_THAN_SIGN:{this.state=d.SCRIPT_DATA,this._emitChars(">");break}case l.NULL:{this._err(b.unexpectedNullCharacter),this.state=d.SCRIPT_DATA_ESCAPED,this._emitChars($);break}case l.EOF:{this._err(b.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=d.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===l.SOLIDUS?this.state=d.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:ut(t)?(this._emitChars("<"),this.state=d.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=d.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){ut(t)?(this.state=d.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=d.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=d.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(re.SCRIPT,!1)&&zu(this.preprocessor.peek(re.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<re.SCRIPT.length;r++)this._emitCodePoint(this._consume());this.state=d.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=d.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case l.HYPHEN_MINUS:{this.state=d.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case l.LESS_THAN_SIGN:{this.state=d.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case l.NULL:{this._err(b.unexpectedNullCharacter),this._emitChars($);break}case l.EOF:{this._err(b.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case l.HYPHEN_MINUS:{this.state=d.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case l.LESS_THAN_SIGN:{this.state=d.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case l.NULL:{this._err(b.unexpectedNullCharacter),this.state=d.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars($);break}case l.EOF:{this._err(b.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=d.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case l.HYPHEN_MINUS:{this._emitChars("-");break}case l.LESS_THAN_SIGN:{this.state=d.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case l.GREATER_THAN_SIGN:{this.state=d.SCRIPT_DATA,this._emitChars(">");break}case l.NULL:{this._err(b.unexpectedNullCharacter),this.state=d.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars($);break}case l.EOF:{this._err(b.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=d.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===l.SOLIDUS?(this.state=d.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=d.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(re.SCRIPT,!1)&&zu(this.preprocessor.peek(re.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<re.SCRIPT.length;r++)this._emitCodePoint(this._consume());this.state=d.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=d.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:break;case l.SOLIDUS:case l.GREATER_THAN_SIGN:case l.EOF:{this.state=d.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case l.EQUALS_SIGN:{this._err(b.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=d.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=d.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:case l.SOLIDUS:case l.GREATER_THAN_SIGN:case l.EOF:{this._leaveAttrName(),this.state=d.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case l.EQUALS_SIGN:{this._leaveAttrName(),this.state=d.BEFORE_ATTRIBUTE_VALUE;break}case l.QUOTATION_MARK:case l.APOSTROPHE:case l.LESS_THAN_SIGN:{this._err(b.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case l.NULL:{this._err(b.unexpectedNullCharacter),this.currentAttr.name+=$;break}default:this.currentAttr.name+=String.fromCodePoint(Qr(t)?gi(t):t)}}_stateAfterAttributeName(t){switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:break;case l.SOLIDUS:{this.state=d.SELF_CLOSING_START_TAG;break}case l.EQUALS_SIGN:{this.state=d.BEFORE_ATTRIBUTE_VALUE;break}case l.GREATER_THAN_SIGN:{this.state=d.DATA,this.emitCurrentTagToken();break}case l.EOF:{this._err(b.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=d.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:break;case l.QUOTATION_MARK:{this.state=d.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case l.APOSTROPHE:{this.state=d.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case l.GREATER_THAN_SIGN:{this._err(b.missingAttributeValue),this.state=d.DATA,this.emitCurrentTagToken();break}default:this.state=d.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case l.QUOTATION_MARK:{this.state=d.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case l.AMPERSAND:{this.returnState=d.ATTRIBUTE_VALUE_DOUBLE_QUOTED,this.state=d.CHARACTER_REFERENCE;break}case l.NULL:{this._err(b.unexpectedNullCharacter),this.currentAttr.value+=$;break}case l.EOF:{this._err(b.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case l.APOSTROPHE:{this.state=d.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case l.AMPERSAND:{this.returnState=d.ATTRIBUTE_VALUE_SINGLE_QUOTED,this.state=d.CHARACTER_REFERENCE;break}case l.NULL:{this._err(b.unexpectedNullCharacter),this.currentAttr.value+=$;break}case l.EOF:{this._err(b.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:{this._leaveAttrValue(),this.state=d.BEFORE_ATTRIBUTE_NAME;break}case l.AMPERSAND:{this.returnState=d.ATTRIBUTE_VALUE_UNQUOTED,this.state=d.CHARACTER_REFERENCE;break}case l.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=d.DATA,this.emitCurrentTagToken();break}case l.NULL:{this._err(b.unexpectedNullCharacter),this.currentAttr.value+=$;break}case l.QUOTATION_MARK:case l.APOSTROPHE:case l.LESS_THAN_SIGN:case l.EQUALS_SIGN:case l.GRAVE_ACCENT:{this._err(b.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case l.EOF:{this._err(b.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:{this._leaveAttrValue(),this.state=d.BEFORE_ATTRIBUTE_NAME;break}case l.SOLIDUS:{this._leaveAttrValue(),this.state=d.SELF_CLOSING_START_TAG;break}case l.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=d.DATA,this.emitCurrentTagToken();break}case l.EOF:{this._err(b.eofInTag),this._emitEOFToken();break}default:this._err(b.missingWhitespaceBetweenAttributes),this.state=d.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case l.GREATER_THAN_SIGN:{let r=this.currentToken;r.selfClosing=!0,this.state=d.DATA,this.emitCurrentTagToken();break}case l.EOF:{this._err(b.eofInTag),this._emitEOFToken();break}default:this._err(b.unexpectedSolidusInTag),this.state=d.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){let r=this.currentToken;switch(t){case l.GREATER_THAN_SIGN:{this.state=d.DATA,this.emitCurrentComment(r);break}case l.EOF:{this.emitCurrentComment(r),this._emitEOFToken();break}case l.NULL:{this._err(b.unexpectedNullCharacter),r.data+=$;break}default:r.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(re.DASH_DASH,!0)?(this._createCommentToken(re.DASH_DASH.length+1),this.state=d.COMMENT_START):this._consumeSequenceIfMatch(re.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(re.DOCTYPE.length+1),this.state=d.DOCTYPE):this._consumeSequenceIfMatch(re.CDATA_START,!0)?this.inForeignNode?this.state=d.CDATA_SECTION:(this._err(b.cdataInHtmlContent),this._createCommentToken(re.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=d.BOGUS_COMMENT):this._ensureHibernation()||(this._err(b.incorrectlyOpenedComment),this._createCommentToken(2),this.state=d.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case l.HYPHEN_MINUS:{this.state=d.COMMENT_START_DASH;break}case l.GREATER_THAN_SIGN:{this._err(b.abruptClosingOfEmptyComment),this.state=d.DATA;let r=this.currentToken;this.emitCurrentComment(r);break}default:this.state=d.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){let r=this.currentToken;switch(t){case l.HYPHEN_MINUS:{this.state=d.COMMENT_END;break}case l.GREATER_THAN_SIGN:{this._err(b.abruptClosingOfEmptyComment),this.state=d.DATA,this.emitCurrentComment(r);break}case l.EOF:{this._err(b.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="-",this.state=d.COMMENT,this._stateComment(t)}}_stateComment(t){let r=this.currentToken;switch(t){case l.HYPHEN_MINUS:{this.state=d.COMMENT_END_DASH;break}case l.LESS_THAN_SIGN:{r.data+="<",this.state=d.COMMENT_LESS_THAN_SIGN;break}case l.NULL:{this._err(b.unexpectedNullCharacter),r.data+=$;break}case l.EOF:{this._err(b.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){let r=this.currentToken;switch(t){case l.EXCLAMATION_MARK:{r.data+="!",this.state=d.COMMENT_LESS_THAN_SIGN_BANG;break}case l.LESS_THAN_SIGN:{r.data+="<";break}default:this.state=d.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===l.HYPHEN_MINUS?this.state=d.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=d.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===l.HYPHEN_MINUS?this.state=d.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=d.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==l.GREATER_THAN_SIGN&&t!==l.EOF&&this._err(b.nestedComment),this.state=d.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){let r=this.currentToken;switch(t){case l.HYPHEN_MINUS:{this.state=d.COMMENT_END;break}case l.EOF:{this._err(b.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="-",this.state=d.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){let r=this.currentToken;switch(t){case l.GREATER_THAN_SIGN:{this.state=d.DATA,this.emitCurrentComment(r);break}case l.EXCLAMATION_MARK:{this.state=d.COMMENT_END_BANG;break}case l.HYPHEN_MINUS:{r.data+="-";break}case l.EOF:{this._err(b.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="--",this.state=d.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){let r=this.currentToken;switch(t){case l.HYPHEN_MINUS:{r.data+="--!",this.state=d.COMMENT_END_DASH;break}case l.GREATER_THAN_SIGN:{this._err(b.incorrectlyClosedComment),this.state=d.DATA,this.emitCurrentComment(r);break}case l.EOF:{this._err(b.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="--!",this.state=d.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:{this.state=d.BEFORE_DOCTYPE_NAME;break}case l.GREATER_THAN_SIGN:{this.state=d.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case l.EOF:{this._err(b.eofInDoctype),this._createDoctypeToken(null);let r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(b.missingWhitespaceBeforeDoctypeName),this.state=d.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(Qr(t))this._createDoctypeToken(String.fromCharCode(gi(t))),this.state=d.DOCTYPE_NAME;else switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:break;case l.NULL:{this._err(b.unexpectedNullCharacter),this._createDoctypeToken($),this.state=d.DOCTYPE_NAME;break}case l.GREATER_THAN_SIGN:{this._err(b.missingDoctypeName),this._createDoctypeToken(null);let r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=d.DATA;break}case l.EOF:{this._err(b.eofInDoctype),this._createDoctypeToken(null);let r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=d.DOCTYPE_NAME}}_stateDoctypeName(t){let r=this.currentToken;switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:{this.state=d.AFTER_DOCTYPE_NAME;break}case l.GREATER_THAN_SIGN:{this.state=d.DATA,this.emitCurrentDoctype(r);break}case l.NULL:{this._err(b.unexpectedNullCharacter),r.name+=$;break}case l.EOF:{this._err(b.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.name+=String.fromCodePoint(Qr(t)?gi(t):t)}}_stateAfterDoctypeName(t){let r=this.currentToken;switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:break;case l.GREATER_THAN_SIGN:{this.state=d.DATA,this.emitCurrentDoctype(r);break}case l.EOF:{this._err(b.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(re.PUBLIC,!1)?this.state=d.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(re.SYSTEM,!1)?this.state=d.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(b.invalidCharacterSequenceAfterDoctypeName),r.forceQuirks=!0,this.state=d.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){let r=this.currentToken;switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:{this.state=d.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case l.QUOTATION_MARK:{this._err(b.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=d.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case l.APOSTROPHE:{this._err(b.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=d.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case l.GREATER_THAN_SIGN:{this._err(b.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=d.DATA,this.emitCurrentDoctype(r);break}case l.EOF:{this._err(b.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(b.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=d.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){let r=this.currentToken;switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:break;case l.QUOTATION_MARK:{r.publicId="",this.state=d.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case l.APOSTROPHE:{r.publicId="",this.state=d.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case l.GREATER_THAN_SIGN:{this._err(b.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=d.DATA,this.emitCurrentDoctype(r);break}case l.EOF:{this._err(b.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(b.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=d.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){let r=this.currentToken;switch(t){case l.QUOTATION_MARK:{this.state=d.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case l.NULL:{this._err(b.unexpectedNullCharacter),r.publicId+=$;break}case l.GREATER_THAN_SIGN:{this._err(b.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=d.DATA;break}case l.EOF:{this._err(b.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){let r=this.currentToken;switch(t){case l.APOSTROPHE:{this.state=d.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case l.NULL:{this._err(b.unexpectedNullCharacter),r.publicId+=$;break}case l.GREATER_THAN_SIGN:{this._err(b.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=d.DATA;break}case l.EOF:{this._err(b.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){let r=this.currentToken;switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:{this.state=d.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case l.GREATER_THAN_SIGN:{this.state=d.DATA,this.emitCurrentDoctype(r);break}case l.QUOTATION_MARK:{this._err(b.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=d.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case l.APOSTROPHE:{this._err(b.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=d.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case l.EOF:{this._err(b.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(b.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=d.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){let r=this.currentToken;switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:break;case l.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=d.DATA;break}case l.QUOTATION_MARK:{r.systemId="",this.state=d.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case l.APOSTROPHE:{r.systemId="",this.state=d.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case l.EOF:{this._err(b.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(b.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=d.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){let r=this.currentToken;switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:{this.state=d.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case l.QUOTATION_MARK:{this._err(b.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=d.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case l.APOSTROPHE:{this._err(b.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=d.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case l.GREATER_THAN_SIGN:{this._err(b.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=d.DATA,this.emitCurrentDoctype(r);break}case l.EOF:{this._err(b.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(b.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=d.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){let r=this.currentToken;switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:break;case l.QUOTATION_MARK:{r.systemId="",this.state=d.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case l.APOSTROPHE:{r.systemId="",this.state=d.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case l.GREATER_THAN_SIGN:{this._err(b.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=d.DATA,this.emitCurrentDoctype(r);break}case l.EOF:{this._err(b.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(b.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=d.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){let r=this.currentToken;switch(t){case l.QUOTATION_MARK:{this.state=d.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case l.NULL:{this._err(b.unexpectedNullCharacter),r.systemId+=$;break}case l.GREATER_THAN_SIGN:{this._err(b.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=d.DATA;break}case l.EOF:{this._err(b.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){let r=this.currentToken;switch(t){case l.APOSTROPHE:{this.state=d.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case l.NULL:{this._err(b.unexpectedNullCharacter),r.systemId+=$;break}case l.GREATER_THAN_SIGN:{this._err(b.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=d.DATA;break}case l.EOF:{this._err(b.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){let r=this.currentToken;switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:break;case l.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=d.DATA;break}case l.EOF:{this._err(b.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(b.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=d.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){let r=this.currentToken;switch(t){case l.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=d.DATA;break}case l.NULL:{this._err(b.unexpectedNullCharacter);break}case l.EOF:{this.emitCurrentDoctype(r),this._emitEOFToken();break}default:}}_stateCdataSection(t){switch(t){case l.RIGHT_SQUARE_BRACKET:{this.state=d.CDATA_SECTION_BRACKET;break}case l.EOF:{this._err(b.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===l.RIGHT_SQUARE_BRACKET?this.state=d.CDATA_SECTION_END:(this._emitChars("]"),this.state=d.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case l.GREATER_THAN_SIGN:{this.state=d.DATA;break}case l.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=d.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(t){t===l.NUMBER_SIGN?this.state=d.NUMERIC_CHARACTER_REFERENCE:_a(t)?(this.state=d.NAMED_CHARACTER_REFERENCE,this._stateNamedCharacterReference(t)):(this._flushCodePointConsumedAsCharacterReference(l.AMPERSAND),this._reconsumeInState(this.returnState,t))}_stateNamedCharacterReference(t){let r=this._matchNamedCharacterReference(t);if(!this._ensureHibernation())if(r){for(let s=0;s<r.length;s++)this._flushCodePointConsumedAsCharacterReference(r[s]);this.state=this.returnState}else this._flushCodePointConsumedAsCharacterReference(l.AMPERSAND),this.state=d.AMBIGUOUS_AMPERSAND}_stateAmbiguousAmpersand(t){_a(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===l.SEMICOLON&&this._err(b.unknownNamedCharacterReference),this._reconsumeInState(this.returnState,t))}_stateNumericCharacterReference(t){this.charRefCode=0,t===l.LATIN_SMALL_X||t===l.LATIN_CAPITAL_X?this.state=d.HEXADEMICAL_CHARACTER_REFERENCE_START:jr(t)?(this.state=d.DECIMAL_CHARACTER_REFERENCE,this._stateDecimalCharacterReference(t)):(this._err(b.absenceOfDigitsInNumericCharacterReference),this._flushCodePointConsumedAsCharacterReference(l.AMPERSAND),this._flushCodePointConsumedAsCharacterReference(l.NUMBER_SIGN),this._reconsumeInState(this.returnState,t))}_stateHexademicalCharacterReferenceStart(t){Zd(t)?(this.state=d.HEXADEMICAL_CHARACTER_REFERENCE,this._stateHexademicalCharacterReference(t)):(this._err(b.absenceOfDigitsInNumericCharacterReference),this._flushCodePointConsumedAsCharacterReference(l.AMPERSAND),this._flushCodePointConsumedAsCharacterReference(l.NUMBER_SIGN),this._unconsume(2),this.state=this.returnState)}_stateHexademicalCharacterReference(t){Zu(t)?this.charRefCode=this.charRefCode*16+t-55:Ju(t)?this.charRefCode=this.charRefCode*16+t-87:jr(t)?this.charRefCode=this.charRefCode*16+t-48:t===l.SEMICOLON?this.state=d.NUMERIC_CHARACTER_REFERENCE_END:(this._err(b.missingSemicolonAfterCharacterReference),this.state=d.NUMERIC_CHARACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd(t))}_stateDecimalCharacterReference(t){jr(t)?this.charRefCode=this.charRefCode*10+t-48:t===l.SEMICOLON?this.state=d.NUMERIC_CHARACTER_REFERENCE_END:(this._err(b.missingSemicolonAfterCharacterReference),this.state=d.NUMERIC_CHARACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd(t))}_stateNumericCharacterReferenceEnd(t){if(this.charRefCode===l.NULL)this._err(b.nullCharacterReference),this.charRefCode=l.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(b.characterReferenceOutsideUnicodeRange),this.charRefCode=l.REPLACEMENT_CHARACTER;else if(mi(this.charRefCode))this._err(b.surrogateCharacterReference),this.charRefCode=l.REPLACEMENT_CHARACTER;else if(bi(this.charRefCode))this._err(b.noncharacterCharacterReference);else if(Ei(this.charRefCode)||this.charRefCode===l.CARRIAGE_RETURN){this._err(b.controlCharacterReference);let r=jd.get(this.charRefCode);r!==void 0&&(this.charRefCode=r)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,t)}};var rc=new Set([n.DD,n.DT,n.LI,n.OPTGROUP,n.OPTION,n.P,n.RB,n.RP,n.RT,n.RTC]),tc=new Set([...rc,n.CAPTION,n.COLGROUP,n.TBODY,n.TD,n.TFOOT,n.TH,n.THEAD,n.TR]),_i=new Map([[n.APPLET,T.HTML],[n.CAPTION,T.HTML],[n.HTML,T.HTML],[n.MARQUEE,T.HTML],[n.OBJECT,T.HTML],[n.TABLE,T.HTML],[n.TD,T.HTML],[n.TEMPLATE,T.HTML],[n.TH,T.HTML],[n.ANNOTATION_XML,T.MATHML],[n.MI,T.MATHML],[n.MN,T.MATHML],[n.MO,T.MATHML],[n.MS,T.MATHML],[n.MTEXT,T.MATHML],[n.DESC,T.SVG],[n.FOREIGN_OBJECT,T.SVG],[n.TITLE,T.SVG]]),eh=[n.H1,n.H2,n.H3,n.H4,n.H5,n.H6],th=[n.TR,n.TEMPLATE,n.HTML],rh=[n.TBODY,n.TFOOT,n.THEAD,n.TEMPLATE,n.HTML],sh=[n.TABLE,n.TEMPLATE,n.HTML],ih=[n.TD,n.TH],Ai=class{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,r,s){this.treeAdapter=r,this.handler=s,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=n.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===n.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===T.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,r){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=r,this.currentTagId=r,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,r,!0)}pop(){let t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,r){let s=this._indexOf(t);this.items[s]=r,s===this.stackTop&&(this.current=r)}insertAfter(t,r,s){let i=this._indexOf(t)+1;this.items.splice(i,0,r),this.tagIDs.splice(i,0,s),this.stackTop++,i===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,i===this.stackTop)}popUntilTagNamePopped(t){let r=this.stackTop+1;do r=this.tagIDs.lastIndexOf(t,r-1);while(r>0&&this.treeAdapter.getNamespaceURI(this.items[r])!==T.HTML);this.shortenToLength(r<0?0:r)}shortenToLength(t){for(;this.stackTop>=t;){let r=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(r,this.stackTop<t)}}popUntilElementPopped(t){let r=this._indexOf(t);this.shortenToLength(r<0?0:r)}popUntilPopped(t,r){let s=this._indexOfTagNames(t,r);this.shortenToLength(s<0?0:s)}popUntilNumberedHeaderPopped(){this.popUntilPopped(eh,T.HTML)}popUntilTableCellPopped(){this.popUntilPopped(ih,T.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,r){for(let s=this.stackTop;s>=0;s--)if(t.includes(this.tagIDs[s])&&this.treeAdapter.getNamespaceURI(this.items[s])===r)return s;return-1}clearBackTo(t,r){let s=this._indexOfTagNames(t,r);this.shortenToLength(s+1)}clearBackToTableContext(){this.clearBackTo(sh,T.HTML)}clearBackToTableBodyContext(){this.clearBackTo(rh,T.HTML)}clearBackToTableRowContext(){this.clearBackTo(th,T.HTML)}remove(t){let r=this._indexOf(t);r>=0&&(r===this.stackTop?this.pop():(this.items.splice(r,1),this.tagIDs.splice(r,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===n.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){let r=this._indexOf(t)-1;return r>=0?this.items[r]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===n.HTML}hasInScope(t){for(let r=this.stackTop;r>=0;r--){let s=this.tagIDs[r],i=this.treeAdapter.getNamespaceURI(this.items[r]);if(s===t&&i===T.HTML)return!0;if(_i.get(s)===i)return!1}return!0}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){let r=this.tagIDs[t],s=this.treeAdapter.getNamespaceURI(this.items[t]);if(Wr(r)&&s===T.HTML)return!0;if(_i.get(r)===s)return!1}return!0}hasInListItemScope(t){for(let r=this.stackTop;r>=0;r--){let s=this.tagIDs[r],i=this.treeAdapter.getNamespaceURI(this.items[r]);if(s===t&&i===T.HTML)return!0;if((s===n.UL||s===n.OL)&&i===T.HTML||_i.get(s)===i)return!1}return!0}hasInButtonScope(t){for(let r=this.stackTop;r>=0;r--){let s=this.tagIDs[r],i=this.treeAdapter.getNamespaceURI(this.items[r]);if(s===t&&i===T.HTML)return!0;if(s===n.BUTTON&&i===T.HTML||_i.get(s)===i)return!1}return!0}hasInTableScope(t){for(let r=this.stackTop;r>=0;r--){let s=this.tagIDs[r];if(this.treeAdapter.getNamespaceURI(this.items[r])===T.HTML){if(s===t)return!0;if(s===n.TABLE||s===n.TEMPLATE||s===n.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--){let r=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===T.HTML){if(r===n.TBODY||r===n.THEAD||r===n.TFOOT)return!0;if(r===n.TABLE||r===n.HTML)return!1}}return!0}hasInSelectScope(t){for(let r=this.stackTop;r>=0;r--){let s=this.tagIDs[r];if(this.treeAdapter.getNamespaceURI(this.items[r])===T.HTML){if(s===t)return!0;if(s!==n.OPTION&&s!==n.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;rc.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;tc.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&tc.has(this.currentTagId);)this.pop()}};var pe;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(pe=pe||(pe={}));var sc={type:pe.Marker},xi=class{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,r){let s=[],i=r.length,a=this.treeAdapter.getTagName(t),o=this.treeAdapter.getNamespaceURI(t);for(let u=0;u<this.entries.length;u++){let c=this.entries[u];if(c.type===pe.Marker)break;let{element:h}=c;if(this.treeAdapter.getTagName(h)===a&&this.treeAdapter.getNamespaceURI(h)===o){let p=this.treeAdapter.getAttrList(h);p.length===i&&s.push({idx:u,attrs:p})}}return s}_ensureNoahArkCondition(t){if(this.entries.length<3)return;let r=this.treeAdapter.getAttrList(t),s=this._getNoahArkConditionCandidates(t,r);if(s.length<3)return;let i=new Map(r.map(o=>[o.name,o.value])),a=0;for(let o=0;o<s.length;o++){let u=s[o];u.attrs.every(c=>i.get(c.name)===c.value)&&(a+=1,a>=3&&this.entries.splice(u.idx,1))}}insertMarker(){this.entries.unshift(sc)}pushElement(t,r){this._ensureNoahArkCondition(t),this.entries.unshift({type:pe.Element,element:t,token:r})}insertElementAfterBookmark(t,r){let s=this.entries.indexOf(this.bookmark);this.entries.splice(s,0,{type:pe.Element,element:t,token:r})}removeEntry(t){let r=this.entries.indexOf(t);r>=0&&this.entries.splice(r,1)}clearToLastMarker(){let t=this.entries.indexOf(sc);t>=0?this.entries.splice(0,t+1):this.entries.length=0}getElementEntryInScopeWithTagName(t){let r=this.entries.find(s=>s.type===pe.Marker||this.treeAdapter.getTagName(s.element)===t);return r&&r.type===pe.Element?r:null}getElementEntry(t){return this.entries.find(r=>r.type===pe.Element&&r.element===t)}};function ic(e){return{nodeName:"#text",value:e,parentNode:null}}var Re={createDocument(){return{nodeName:"#document",mode:z.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,r){return{nodeName:e,tagName:e,attrs:r,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,r){let s=e.childNodes.indexOf(r);e.childNodes.splice(s,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,r,s){let i=e.childNodes.find(a=>a.nodeName==="#documentType");if(i)i.name=t,i.publicId=r,i.systemId=s;else{let a={nodeName:"#documentType",name:t,publicId:r,systemId:s,parentNode:null};Re.appendChild(e,a)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){let t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){let r=e.childNodes[e.childNodes.length-1];if(Re.isTextNode(r)){r.value+=t;return}}Re.appendChild(e,ic(t))},insertTextBefore(e,t,r){let s=e.childNodes[e.childNodes.indexOf(r)-1];s&&Re.isTextNode(s)?s.value+=t:Re.insertBefore(e,ic(t),r)},adoptAttributes(e,t){let r=new Set(e.attrs.map(s=>s.name));for(let s=0;s<t.length;s++)r.has(t[s].name)||e.attrs.push(t[s])},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=I(I({},e.sourceCodeLocation),t)}};var ac="html",nh="about:legacy-compat",ah="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",oc=["+//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//"],oh=[...oc,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],uh=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),uc=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],ch=[...uc,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function nc(e,t){return t.some(r=>e.startsWith(r))}function cc(e){return e.name===ac&&e.publicId===null&&(e.systemId===null||e.systemId===nh)}function lc(e){if(e.name!==ac)return z.QUIRKS;let{systemId:t}=e;if(t&&t.toLowerCase()===ah)return z.QUIRKS;let{publicId:r}=e;if(r!==null){if(r=r.toLowerCase(),uh.has(r))return z.QUIRKS;let s=t===null?oh:oc;if(nc(r,s))return z.QUIRKS;if(s=t===null?uc:ch,nc(r,s))return z.LIMITED_QUIRKS}return z.NO_QUIRKS}var yi={};me(yi,{SVG_TAG_NAMES_ADJUSTMENT_MAP:()=>hc,adjustTokenMathMLAttrs:()=>Ci,adjustTokenSVGAttrs:()=>Ni,adjustTokenSVGTagName:()=>xa,adjustTokenXMLAttrs:()=>Zr,causesExit:()=>Aa,isIntegrationPoint:()=>Ca});var dc={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},dh="definitionurl",hh="definitionURL",fh=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])),ph=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:T.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:T.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:T.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:T.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:T.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:T.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:T.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:T.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:T.XML}],["xml:space",{prefix:"xml",name:"space",namespace:T.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:T.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:T.XMLNS}]]),hc=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])),mh=new Set([n.B,n.BIG,n.BLOCKQUOTE,n.BODY,n.BR,n.CENTER,n.CODE,n.DD,n.DIV,n.DL,n.DT,n.EM,n.EMBED,n.H1,n.H2,n.H3,n.H4,n.H5,n.H6,n.HEAD,n.HR,n.I,n.IMG,n.LI,n.LISTING,n.MENU,n.META,n.NOBR,n.OL,n.P,n.PRE,n.RUBY,n.S,n.SMALL,n.SPAN,n.STRONG,n.STRIKE,n.SUB,n.SUP,n.TABLE,n.TT,n.U,n.UL,n.VAR]);function Aa(e){let t=e.tagID;return t===n.FONT&&e.attrs.some(({name:s})=>s===Te.COLOR||s===Te.SIZE||s===Te.FACE)||mh.has(t)}function Ci(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===dh){e.attrs[t].name=hh;break}}function Ni(e){for(let t=0;t<e.attrs.length;t++){let r=fh.get(e.attrs[t].name);r!=null&&(e.attrs[t].name=r)}}function Zr(e){for(let t=0;t<e.attrs.length;t++){let r=ph.get(e.attrs[t].name);r&&(e.attrs[t].prefix=r.prefix,e.attrs[t].name=r.name,e.attrs[t].namespace=r.namespace)}}function xa(e){let t=hc.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=ot(e.tagName))}function Eh(e,t){return t===T.MATHML&&(e===n.MI||e===n.MO||e===n.MN||e===n.MS||e===n.MTEXT)}function bh(e,t,r){if(t===T.MATHML&&e===n.ANNOTATION_XML){for(let s=0;s<r.length;s++)if(r[s].name===Te.ENCODING){let i=r[s].value.toLowerCase();return i===dc.TEXT_HTML||i===dc.APPLICATION_XML}}return t===T.SVG&&(e===n.FOREIGN_OBJECT||e===n.DESC||e===n.TITLE)}function Ca(e,t,r,s){return(!s||s===T.HTML)&&bh(e,t,r)||(!s||s===T.MATHML)&&Eh(e,t)}var Th="hidden",gh=8,_h=3,f;(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"})(f||(f={}));var Ah={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Ec=new Set([n.TABLE,n.TBODY,n.TFOOT,n.THEAD,n.TR]),fc={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Re,onParseError:null},ir=class{constructor(t,r,s=null,i=null){this.fragmentContext=s,this.scriptHandler=i,this.currentToken=null,this.stopped=!1,this.insertionMode=f.INITIAL,this.originalInsertionMode=f.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=I(I({},fc),t),this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=r!=null?r:this.treeAdapter.createDocument(),this.tokenizer=new zr(this.options,this),this.activeFormattingElements=new xi(this.treeAdapter),this.fragmentContextID=s?ot(this.treeAdapter.getTagName(s)):n.UNKNOWN,this._setContextModes(s!=null?s:this.document,this.fragmentContextID),this.openElements=new Ai(this.document,this.treeAdapter,this)}static parse(t,r){let s=new this(r);return s.tokenizer.write(t,!0),s.document}static getFragmentParser(t,r){let s=I(I({},fc),r);t!=null||(t=s.treeAdapter.createElement(m.TEMPLATE,T.HTML,[]));let i=s.treeAdapter.createElement("documentmock",T.HTML,[]),a=new this(s,i,t);return a.fragmentContextID===n.TEMPLATE&&a.tmplInsertionModeStack.unshift(f.IN_TEMPLATE),a._initTokenizerForFragmentParsing(),a._insertFakeRootElement(),a._resetInsertionMode(),a._findFormInFragmentContext(),a}getFragment(){let t=this.treeAdapter.getFirstChild(this.document),r=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,r),r}_err(t,r,s){var i;if(!this.onParseError)return;let a=(i=t.location)!==null&&i!==void 0?i:Ah,o={code:r,startLine:a.startLine,startCol:a.startCol,startOffset:a.startOffset,endLine:s?a.startLine:a.endLine,endCol:s?a.startCol:a.endCol,endOffset:s?a.startOffset:a.endOffset};this.onParseError(o)}onItemPush(t,r,s){var i,a;(a=(i=this.treeAdapter).onItemPush)===null||a===void 0||a.call(i,t),s&&this.openElements.stackTop>0&&this._setContextModes(t,r)}onItemPop(t,r){var s,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(i=(s=this.treeAdapter).onItemPop)===null||i===void 0||i.call(s,t,this.openElements.current),r){let a,o;this.openElements.stackTop===0&&this.fragmentContext?(a=this.fragmentContext,o=this.fragmentContextID):{current:a,currentTagId:o}=this.openElements,this._setContextModes(a,o)}}_setContextModes(t,r){let s=t===this.document||this.treeAdapter.getNamespaceURI(t)===T.HTML;this.currentNotInHTML=!s,this.tokenizer.inForeignNode=!s&&!this._isIntegrationPoint(r,t)}_switchToTextParsing(t,r){this._insertElement(t,T.HTML),this.tokenizer.state=r,this.originalInsertionMode=this.insertionMode,this.insertionMode=f.TEXT}switchToPlaintextParsing(){this.insertionMode=f.TEXT,this.originalInsertionMode=f.IN_BODY,this.tokenizer.state=Z.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)===m.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==T.HTML))switch(this.fragmentContextID){case n.TITLE:case n.TEXTAREA:{this.tokenizer.state=Z.RCDATA;break}case n.STYLE:case n.XMP:case n.IFRAME:case n.NOEMBED:case n.NOFRAMES:case n.NOSCRIPT:{this.tokenizer.state=Z.RAWTEXT;break}case n.SCRIPT:{this.tokenizer.state=Z.SCRIPT_DATA;break}case n.PLAINTEXT:{this.tokenizer.state=Z.PLAINTEXT;break}default:}}_setDocumentType(t){let r=t.name||"",s=t.publicId||"",i=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,r,s,i),t.location){let o=this.treeAdapter.getChildNodes(this.document).find(u=>this.treeAdapter.isDocumentTypeNode(u));o&&this.treeAdapter.setNodeSourceCodeLocation(o,t.location)}}_attachElementToTree(t,r){if(this.options.sourceCodeLocationInfo){let s=r&&Y(I({},r),{startTag:r});this.treeAdapter.setNodeSourceCodeLocation(t,s)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{let s=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(s,t)}}_appendElement(t,r){let s=this.treeAdapter.createElement(t.tagName,r,t.attrs);this._attachElementToTree(s,t.location)}_insertElement(t,r){let s=this.treeAdapter.createElement(t.tagName,r,t.attrs);this._attachElementToTree(s,t.location),this.openElements.push(s,t.tagID)}_insertFakeElement(t,r){let s=this.treeAdapter.createElement(t,T.HTML,[]);this._attachElementToTree(s,null),this.openElements.push(s,r)}_insertTemplate(t){let r=this.treeAdapter.createElement(t.tagName,T.HTML,t.attrs),s=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(r,s),this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,null)}_insertFakeRootElement(){let t=this.treeAdapter.createElement(m.HTML,T.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,n.HTML)}_appendCommentNode(t,r){let s=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(r,s),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}_insertCharacters(t){let r,s;if(this._shouldFosterParentOnInsertion()?({parent:r,beforeElement:s}=this._findFosterParentingLocation(),s?this.treeAdapter.insertTextBefore(r,t.chars,s):this.treeAdapter.insertText(r,t.chars)):(r=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(r,t.chars)),!t.location)return;let i=this.treeAdapter.getChildNodes(r),a=s?i.lastIndexOf(s):i.length,o=i[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(o)){let{endLine:c,endCol:h,endOffset:p}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(o,{endLine:c,endCol:h,endOffset:p})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(o,t.location)}_adoptNodes(t,r){for(let s=this.treeAdapter.getFirstChild(t);s;s=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(s),this.treeAdapter.appendChild(r,s)}_setEndLocation(t,r){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&r.location){let s=r.location,i=this.treeAdapter.getTagName(t),a=r.type===P.END_TAG&&i===r.tagName?{endTag:I({},s),endLine:s.endLine,endCol:s.endCol,endOffset:s.endOffset}:{endLine:s.startLine,endCol:s.startCol,endOffset:s.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,a)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let r,s;return this.openElements.stackTop===0&&this.fragmentContext?(r=this.fragmentContext,s=this.fragmentContextID):{current:r,currentTagId:s}=this.openElements,t.tagID===n.SVG&&this.treeAdapter.getTagName(r)===m.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(r)===T.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===n.MGLYPH||t.tagID===n.MALIGNMARK)&&!this._isIntegrationPoint(s,r,T.HTML)}_processToken(t){switch(t.type){case P.CHARACTER:{this.onCharacter(t);break}case P.NULL_CHARACTER:{this.onNullCharacter(t);break}case P.COMMENT:{this.onComment(t);break}case P.DOCTYPE:{this.onDoctype(t);break}case P.START_TAG:{this._processStartTag(t);break}case P.END_TAG:{this.onEndTag(t);break}case P.EOF:{this.onEof(t);break}case P.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,r,s){let i=this.treeAdapter.getNamespaceURI(r),a=this.treeAdapter.getAttrList(r);return Ca(t,i,a,s)}_reconstructActiveFormattingElements(){let t=this.activeFormattingElements.entries.length;if(t){let r=this.activeFormattingElements.entries.findIndex(i=>i.type===pe.Marker||this.openElements.contains(i.element)),s=r<0?t-1:r-1;for(let i=s;i>=0;i--){let a=this.activeFormattingElements.entries[i];this._insertElement(a.token,this.treeAdapter.getNamespaceURI(a.element)),a.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=f.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(n.P),this.openElements.popUntilTagNamePopped(n.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case n.TR:{this.insertionMode=f.IN_ROW;return}case n.TBODY:case n.THEAD:case n.TFOOT:{this.insertionMode=f.IN_TABLE_BODY;return}case n.CAPTION:{this.insertionMode=f.IN_CAPTION;return}case n.COLGROUP:{this.insertionMode=f.IN_COLUMN_GROUP;return}case n.TABLE:{this.insertionMode=f.IN_TABLE;return}case n.BODY:{this.insertionMode=f.IN_BODY;return}case n.FRAMESET:{this.insertionMode=f.IN_FRAMESET;return}case n.SELECT:{this._resetInsertionModeForSelect(t);return}case n.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case n.HTML:{this.insertionMode=this.headElement?f.AFTER_HEAD:f.BEFORE_HEAD;return}case n.TD:case n.TH:{if(t>0){this.insertionMode=f.IN_CELL;return}break}case n.HEAD:{if(t>0){this.insertionMode=f.IN_HEAD;return}break}}this.insertionMode=f.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let r=t-1;r>0;r--){let s=this.openElements.tagIDs[r];if(s===n.TEMPLATE)break;if(s===n.TABLE){this.insertionMode=f.IN_SELECT_IN_TABLE;return}}this.insertionMode=f.IN_SELECT}_isElementCausesFosterParenting(t){return Ec.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){let r=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case n.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(r)===T.HTML)return{parent:this.treeAdapter.getTemplateContent(r),beforeElement:null};break}case n.TABLE:{let s=this.treeAdapter.getParentNode(r);return s?{parent:s,beforeElement:r}:{parent:this.openElements.items[t-1],beforeElement:null}}default:}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){let r=this._findFosterParentingLocation();r.beforeElement?this.treeAdapter.insertBefore(r.parent,t,r.beforeElement):this.treeAdapter.appendChild(r.parent,t)}_isSpecialElement(t,r){let s=this.treeAdapter.getNamespaceURI(t);return Ta[s].has(r)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Zf(this,t);return}switch(this.insertionMode){case f.INITIAL:{Jr(this,t);break}case f.BEFORE_HTML:{ts(this,t);break}case f.BEFORE_HEAD:{rs(this,t);break}case f.IN_HEAD:{ss(this,t);break}case f.IN_HEAD_NO_SCRIPT:{is(this,t);break}case f.AFTER_HEAD:{ns(this,t);break}case f.IN_BODY:case f.IN_CAPTION:case f.IN_CELL:case f.IN_TEMPLATE:{Tc(this,t);break}case f.TEXT:case f.IN_SELECT:case f.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case f.IN_TABLE:case f.IN_TABLE_BODY:case f.IN_ROW:{Na(this,t);break}case f.IN_TABLE_TEXT:{Nc(this,t);break}case f.IN_COLUMN_GROUP:{Si(this,t);break}case f.AFTER_BODY:{Ii(this,t);break}case f.AFTER_AFTER_BODY:{vi(this,t);break}default:}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){zf(this,t);return}switch(this.insertionMode){case f.INITIAL:{Jr(this,t);break}case f.BEFORE_HTML:{ts(this,t);break}case f.BEFORE_HEAD:{rs(this,t);break}case f.IN_HEAD:{ss(this,t);break}case f.IN_HEAD_NO_SCRIPT:{is(this,t);break}case f.AFTER_HEAD:{ns(this,t);break}case f.TEXT:{this._insertCharacters(t);break}case f.IN_TABLE:case f.IN_TABLE_BODY:case f.IN_ROW:{Na(this,t);break}case f.IN_COLUMN_GROUP:{Si(this,t);break}case f.AFTER_BODY:{Ii(this,t);break}case f.AFTER_AFTER_BODY:{vi(this,t);break}default:}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){ya(this,t);return}switch(this.insertionMode){case f.INITIAL:case f.BEFORE_HTML:case f.BEFORE_HEAD:case f.IN_HEAD:case f.IN_HEAD_NO_SCRIPT:case f.AFTER_HEAD:case f.IN_BODY:case f.IN_TABLE:case f.IN_CAPTION:case f.IN_COLUMN_GROUP:case f.IN_TABLE_BODY:case f.IN_ROW:case f.IN_CELL:case f.IN_SELECT:case f.IN_SELECT_IN_TABLE:case f.IN_TEMPLATE:case f.IN_FRAMESET:case f.AFTER_FRAMESET:{ya(this,t);break}case f.IN_TABLE_TEXT:{es(this,t);break}case f.AFTER_BODY:{Ih(this,t);break}case f.AFTER_AFTER_BODY:case f.AFTER_AFTER_FRAMESET:{Rh(this,t);break}default:}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case f.INITIAL:{Lh(this,t);break}case f.BEFORE_HEAD:case f.IN_HEAD:case f.IN_HEAD_NO_SCRIPT:case f.AFTER_HEAD:{this._err(t,b.misplacedDoctype);break}case f.IN_TABLE_TEXT:{es(this,t);break}default:}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,b.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?Jf(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case f.INITIAL:{Jr(this,t);break}case f.BEFORE_HTML:{Dh(this,t);break}case f.BEFORE_HEAD:{Mh(this,t);break}case f.IN_HEAD:{ge(this,t);break}case f.IN_HEAD_NO_SCRIPT:{wh(this,t);break}case f.AFTER_HEAD:{Bh(this,t);break}case f.IN_BODY:{J(this,t);break}case f.IN_TABLE:{nr(this,t);break}case f.IN_TABLE_TEXT:{es(this,t);break}case f.IN_CAPTION:{kf(this,t);break}case f.IN_COLUMN_GROUP:{Ra(this,t);break}case f.IN_TABLE_BODY:{Di(this,t);break}case f.IN_ROW:{Oi(this,t);break}case f.IN_CELL:{Bf(this,t);break}case f.IN_SELECT:{Sc(this,t);break}case f.IN_SELECT_IN_TABLE:{Ff(this,t);break}case f.IN_TEMPLATE:{$f(this,t);break}case f.AFTER_BODY:{Yf(this,t);break}case f.IN_FRAMESET:{Gf(this,t);break}case f.AFTER_FRAMESET:{Wf(this,t);break}case f.AFTER_AFTER_BODY:{Qf(this,t);break}case f.AFTER_AFTER_FRAMESET:{jf(this,t);break}default:}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?ep(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case f.INITIAL:{Jr(this,t);break}case f.BEFORE_HTML:{Oh(this,t);break}case f.BEFORE_HEAD:{Ph(this,t);break}case f.IN_HEAD:{kh(this,t);break}case f.IN_HEAD_NO_SCRIPT:{Hh(this,t);break}case f.AFTER_HEAD:{Uh(this,t);break}case f.IN_BODY:{Li(this,t);break}case f.TEXT:{yf(this,t);break}case f.IN_TABLE:{as(this,t);break}case f.IN_TABLE_TEXT:{es(this,t);break}case f.IN_CAPTION:{wf(this,t);break}case f.IN_COLUMN_GROUP:{Hf(this,t);break}case f.IN_TABLE_BODY:{va(this,t);break}case f.IN_ROW:{vc(this,t);break}case f.IN_CELL:{Uf(this,t);break}case f.IN_SELECT:{Ic(this,t);break}case f.IN_SELECT_IN_TABLE:{qf(this,t);break}case f.IN_TEMPLATE:{Vf(this,t);break}case f.AFTER_BODY:{Lc(this,t);break}case f.IN_FRAMESET:{Xf(this,t);break}case f.AFTER_FRAMESET:{Kf(this,t);break}case f.AFTER_AFTER_BODY:{vi(this,t);break}default:}}onEof(t){switch(this.insertionMode){case f.INITIAL:{Jr(this,t);break}case f.BEFORE_HTML:{ts(this,t);break}case f.BEFORE_HEAD:{rs(this,t);break}case f.IN_HEAD:{ss(this,t);break}case f.IN_HEAD_NO_SCRIPT:{is(this,t);break}case f.AFTER_HEAD:{ns(this,t);break}case f.IN_BODY:case f.IN_TABLE:case f.IN_CAPTION:case f.IN_COLUMN_GROUP:case f.IN_TABLE_BODY:case f.IN_ROW:case f.IN_CELL:case f.IN_SELECT:case f.IN_SELECT_IN_TABLE:{xc(this,t);break}case f.TEXT:{vf(this,t);break}case f.IN_TABLE_TEXT:{es(this,t);break}case f.IN_TEMPLATE:{Rc(this,t);break}case f.AFTER_BODY:case f.IN_FRAMESET:case f.AFTER_FRAMESET:case f.AFTER_AFTER_BODY:case f.AFTER_AFTER_FRAMESET:{Ia(this,t);break}default:}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===l.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 f.IN_HEAD:case f.IN_HEAD_NO_SCRIPT:case f.AFTER_HEAD:case f.TEXT:case f.IN_COLUMN_GROUP:case f.IN_SELECT:case f.IN_SELECT_IN_TABLE:case f.IN_FRAMESET:case f.AFTER_FRAMESET:{this._insertCharacters(t);break}case f.IN_BODY:case f.IN_CAPTION:case f.IN_CELL:case f.IN_TEMPLATE:case f.AFTER_BODY:case f.AFTER_AFTER_BODY:case f.AFTER_AFTER_FRAMESET:{bc(this,t);break}case f.IN_TABLE:case f.IN_TABLE_BODY:case f.IN_ROW:{Na(this,t);break}case f.IN_TABLE_TEXT:{Cc(this,t);break}default:}}};function xh(e,t){let r=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return r?e.openElements.contains(r.element)?e.openElements.hasInScope(t.tagID)||(r=null):(e.activeFormattingElements.removeEntry(r),r=null):Ac(e,t),r}function Ch(e,t){let r=null,s=e.openElements.stackTop;for(;s>=0;s--){let i=e.openElements.items[s];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[s])&&(r=i)}return r||(e.openElements.shortenToLength(s<0?0:s),e.activeFormattingElements.removeEntry(t)),r}function Nh(e,t,r){let s=t,i=e.openElements.getCommonAncestor(t);for(let a=0,o=i;o!==r;a++,o=i){i=e.openElements.getCommonAncestor(o);let u=e.activeFormattingElements.getElementEntry(o),c=u&&a>=_h;!u||c?(c&&e.activeFormattingElements.removeEntry(u),e.openElements.remove(o)):(o=yh(e,u),s===t&&(e.activeFormattingElements.bookmark=u),e.treeAdapter.detachNode(s),e.treeAdapter.appendChild(o,s),s=o)}return s}function yh(e,t){let r=e.treeAdapter.getNamespaceURI(t.element),s=e.treeAdapter.createElement(t.token.tagName,r,t.token.attrs);return e.openElements.replace(t.element,s),t.element=s,s}function vh(e,t,r){let s=e.treeAdapter.getTagName(t),i=ot(s);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(r);else{let a=e.treeAdapter.getNamespaceURI(t);i===n.TEMPLATE&&a===T.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,r)}}function Sh(e,t,r){let s=e.treeAdapter.getNamespaceURI(r.element),{token:i}=r,a=e.treeAdapter.createElement(i.tagName,s,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,i),e.activeFormattingElements.removeEntry(r),e.openElements.remove(r.element),e.openElements.insertAfter(t,a,i.tagID)}function Sa(e,t){for(let r=0;r<gh;r++){let s=xh(e,t);if(!s)break;let i=Ch(e,s);if(!i)break;e.activeFormattingElements.bookmark=s;let a=Nh(e,i,s.element),o=e.openElements.getCommonAncestor(s.element);e.treeAdapter.detachNode(a),o&&vh(e,o,a),Sh(e,i,s)}}function ya(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function Ih(e,t){e._appendCommentNode(t,e.openElements.items[0])}function Rh(e,t){e._appendCommentNode(t,e.document)}function Ia(e,t){if(e.stopped=!0,t.location){let r=e.fragmentContext?0:2;for(let s=e.openElements.stackTop;s>=r;s--)e._setEndLocation(e.openElements.items[s],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){let s=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(s);if(i&&!i.endTag&&(e._setEndLocation(s,t),e.openElements.stackTop>=1)){let a=e.openElements.items[1],o=e.treeAdapter.getNodeSourceCodeLocation(a);o&&!o.endTag&&e._setEndLocation(a,t)}}}}function Lh(e,t){e._setDocumentType(t);let r=t.forceQuirks?z.QUIRKS:lc(t);cc(t)||e._err(t,b.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,r),e.insertionMode=f.BEFORE_HTML}function Jr(e,t){e._err(t,b.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,z.QUIRKS),e.insertionMode=f.BEFORE_HTML,e._processToken(t)}function Dh(e,t){t.tagID===n.HTML?(e._insertElement(t,T.HTML),e.insertionMode=f.BEFORE_HEAD):ts(e,t)}function Oh(e,t){let r=t.tagID;(r===n.HTML||r===n.HEAD||r===n.BODY||r===n.BR)&&ts(e,t)}function ts(e,t){e._insertFakeRootElement(),e.insertionMode=f.BEFORE_HEAD,e._processToken(t)}function Mh(e,t){switch(t.tagID){case n.HTML:{J(e,t);break}case n.HEAD:{e._insertElement(t,T.HTML),e.headElement=e.openElements.current,e.insertionMode=f.IN_HEAD;break}default:rs(e,t)}}function Ph(e,t){let r=t.tagID;r===n.HEAD||r===n.BODY||r===n.HTML||r===n.BR?rs(e,t):e._err(t,b.endTagWithoutMatchingOpenElement)}function rs(e,t){e._insertFakeElement(m.HEAD,n.HEAD),e.headElement=e.openElements.current,e.insertionMode=f.IN_HEAD,e._processToken(t)}function ge(e,t){switch(t.tagID){case n.HTML:{J(e,t);break}case n.BASE:case n.BASEFONT:case n.BGSOUND:case n.LINK:case n.META:{e._appendElement(t,T.HTML),t.ackSelfClosing=!0;break}case n.TITLE:{e._switchToTextParsing(t,Z.RCDATA);break}case n.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Z.RAWTEXT):(e._insertElement(t,T.HTML),e.insertionMode=f.IN_HEAD_NO_SCRIPT);break}case n.NOFRAMES:case n.STYLE:{e._switchToTextParsing(t,Z.RAWTEXT);break}case n.SCRIPT:{e._switchToTextParsing(t,Z.SCRIPT_DATA);break}case n.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=f.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(f.IN_TEMPLATE);break}case n.HEAD:{e._err(t,b.misplacedStartTagForHeadElement);break}default:ss(e,t)}}function kh(e,t){switch(t.tagID){case n.HEAD:{e.openElements.pop(),e.insertionMode=f.AFTER_HEAD;break}case n.BODY:case n.BR:case n.HTML:{ss(e,t);break}case n.TEMPLATE:{It(e,t);break}default:e._err(t,b.endTagWithoutMatchingOpenElement)}}function It(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==n.TEMPLATE&&e._err(t,b.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(n.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,b.endTagWithoutMatchingOpenElement)}function ss(e,t){e.openElements.pop(),e.insertionMode=f.AFTER_HEAD,e._processToken(t)}function wh(e,t){switch(t.tagID){case n.HTML:{J(e,t);break}case n.BASEFONT:case n.BGSOUND:case n.HEAD:case n.LINK:case n.META:case n.NOFRAMES:case n.STYLE:{ge(e,t);break}case n.NOSCRIPT:{e._err(t,b.nestedNoscriptInHead);break}default:is(e,t)}}function Hh(e,t){switch(t.tagID){case n.NOSCRIPT:{e.openElements.pop(),e.insertionMode=f.IN_HEAD;break}case n.BR:{is(e,t);break}default:e._err(t,b.endTagWithoutMatchingOpenElement)}}function is(e,t){let r=t.type===P.EOF?b.openElementsLeftAfterEof:b.disallowedContentInNoscriptInHead;e._err(t,r),e.openElements.pop(),e.insertionMode=f.IN_HEAD,e._processToken(t)}function Bh(e,t){switch(t.tagID){case n.HTML:{J(e,t);break}case n.BODY:{e._insertElement(t,T.HTML),e.framesetOk=!1,e.insertionMode=f.IN_BODY;break}case n.FRAMESET:{e._insertElement(t,T.HTML),e.insertionMode=f.IN_FRAMESET;break}case n.BASE:case n.BASEFONT:case n.BGSOUND:case n.LINK:case n.META:case n.NOFRAMES:case n.SCRIPT:case n.STYLE:case n.TEMPLATE:case n.TITLE:{e._err(t,b.abandonedHeadElementChild),e.openElements.push(e.headElement,n.HEAD),ge(e,t),e.openElements.remove(e.headElement);break}case n.HEAD:{e._err(t,b.misplacedStartTagForHeadElement);break}default:ns(e,t)}}function Uh(e,t){switch(t.tagID){case n.BODY:case n.HTML:case n.BR:{ns(e,t);break}case n.TEMPLATE:{It(e,t);break}default:e._err(t,b.endTagWithoutMatchingOpenElement)}}function ns(e,t){e._insertFakeElement(m.BODY,n.BODY),e.insertionMode=f.IN_BODY,Ri(e,t)}function Ri(e,t){switch(t.type){case P.CHARACTER:{Tc(e,t);break}case P.WHITESPACE_CHARACTER:{bc(e,t);break}case P.COMMENT:{ya(e,t);break}case P.START_TAG:{J(e,t);break}case P.END_TAG:{Li(e,t);break}case P.EOF:{xc(e,t);break}default:}}function bc(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function Tc(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Fh(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function qh(e,t){let r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(r,t.attrs))}function $h(e,t){let r=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&r&&(e.treeAdapter.detachNode(r),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,T.HTML),e.insertionMode=f.IN_FRAMESET)}function Vh(e,t){e.openElements.hasInButtonScope(n.P)&&e._closePElement(),e._insertElement(t,T.HTML)}function Yh(e,t){e.openElements.hasInButtonScope(n.P)&&e._closePElement(),Wr(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,T.HTML)}function Gh(e,t){e.openElements.hasInButtonScope(n.P)&&e._closePElement(),e._insertElement(t,T.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Xh(e,t){let r=e.openElements.tmplCount>0;(!e.formElement||r)&&(e.openElements.hasInButtonScope(n.P)&&e._closePElement(),e._insertElement(t,T.HTML),r||(e.formElement=e.openElements.current))}function Wh(e,t){e.framesetOk=!1;let r=t.tagID;for(let s=e.openElements.stackTop;s>=0;s--){let i=e.openElements.tagIDs[s];if(r===n.LI&&i===n.LI||(r===n.DD||r===n.DT)&&(i===n.DD||i===n.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==n.ADDRESS&&i!==n.DIV&&i!==n.P&&e._isSpecialElement(e.openElements.items[s],i))break}e.openElements.hasInButtonScope(n.P)&&e._closePElement(),e._insertElement(t,T.HTML)}function Kh(e,t){e.openElements.hasInButtonScope(n.P)&&e._closePElement(),e._insertElement(t,T.HTML),e.tokenizer.state=Z.PLAINTEXT}function Qh(e,t){e.openElements.hasInScope(n.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,T.HTML),e.framesetOk=!1}function jh(e,t){let r=e.activeFormattingElements.getElementEntryInScopeWithTagName(m.A);r&&(Sa(e,t),e.openElements.remove(r.element),e.activeFormattingElements.removeEntry(r)),e._reconstructActiveFormattingElements(),e._insertElement(t,T.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function zh(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,T.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Zh(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(n.NOBR)&&(Sa(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,T.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Jh(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,T.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function ef(e,t){e.treeAdapter.getDocumentMode(e.document)!==z.QUIRKS&&e.openElements.hasInButtonScope(n.P)&&e._closePElement(),e._insertElement(t,T.HTML),e.framesetOk=!1,e.insertionMode=f.IN_TABLE}function gc(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,T.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function _c(e){let t=Xr(e,Te.TYPE);return t!=null&&t.toLowerCase()===Th}function tf(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,T.HTML),_c(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function rf(e,t){e._appendElement(t,T.HTML),t.ackSelfClosing=!0}function sf(e,t){e.openElements.hasInButtonScope(n.P)&&e._closePElement(),e._appendElement(t,T.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function nf(e,t){t.tagName=m.IMG,t.tagID=n.IMG,gc(e,t)}function af(e,t){e._insertElement(t,T.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Z.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=f.TEXT}function of(e,t){e.openElements.hasInButtonScope(n.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Z.RAWTEXT)}function uf(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Z.RAWTEXT)}function pc(e,t){e._switchToTextParsing(t,Z.RAWTEXT)}function cf(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,T.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===f.IN_TABLE||e.insertionMode===f.IN_CAPTION||e.insertionMode===f.IN_TABLE_BODY||e.insertionMode===f.IN_ROW||e.insertionMode===f.IN_CELL?f.IN_SELECT_IN_TABLE:f.IN_SELECT}function lf(e,t){e.openElements.currentTagId===n.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,T.HTML)}function df(e,t){e.openElements.hasInScope(n.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,T.HTML)}function hf(e,t){e.openElements.hasInScope(n.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(n.RTC),e._insertElement(t,T.HTML)}function ff(e,t){e._reconstructActiveFormattingElements(),Ci(t),Zr(t),t.selfClosing?e._appendElement(t,T.MATHML):e._insertElement(t,T.MATHML),t.ackSelfClosing=!0}function pf(e,t){e._reconstructActiveFormattingElements(),Ni(t),Zr(t),t.selfClosing?e._appendElement(t,T.SVG):e._insertElement(t,T.SVG),t.ackSelfClosing=!0}function mc(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,T.HTML)}function J(e,t){switch(t.tagID){case n.I:case n.S:case n.B:case n.U:case n.EM:case n.TT:case n.BIG:case n.CODE:case n.FONT:case n.SMALL:case n.STRIKE:case n.STRONG:{zh(e,t);break}case n.A:{jh(e,t);break}case n.H1:case n.H2:case n.H3:case n.H4:case n.H5:case n.H6:{Yh(e,t);break}case n.P:case n.DL:case n.OL:case n.UL:case n.DIV:case n.DIR:case n.NAV:case n.MAIN:case n.MENU:case n.ASIDE:case n.CENTER:case n.FIGURE:case n.FOOTER:case n.HEADER:case n.HGROUP:case n.DIALOG:case n.DETAILS:case n.ADDRESS:case n.ARTICLE:case n.SECTION:case n.SUMMARY:case n.FIELDSET:case n.BLOCKQUOTE:case n.FIGCAPTION:{Vh(e,t);break}case n.LI:case n.DD:case n.DT:{Wh(e,t);break}case n.BR:case n.IMG:case n.WBR:case n.AREA:case n.EMBED:case n.KEYGEN:{gc(e,t);break}case n.HR:{sf(e,t);break}case n.RB:case n.RTC:{df(e,t);break}case n.RT:case n.RP:{hf(e,t);break}case n.PRE:case n.LISTING:{Gh(e,t);break}case n.XMP:{of(e,t);break}case n.SVG:{pf(e,t);break}case n.HTML:{Fh(e,t);break}case n.BASE:case n.LINK:case n.META:case n.STYLE:case n.TITLE:case n.SCRIPT:case n.BGSOUND:case n.BASEFONT:case n.TEMPLATE:{ge(e,t);break}case n.BODY:{qh(e,t);break}case n.FORM:{Xh(e,t);break}case n.NOBR:{Zh(e,t);break}case n.MATH:{ff(e,t);break}case n.TABLE:{ef(e,t);break}case n.INPUT:{tf(e,t);break}case n.PARAM:case n.TRACK:case n.SOURCE:{rf(e,t);break}case n.IMAGE:{nf(e,t);break}case n.BUTTON:{Qh(e,t);break}case n.APPLET:case n.OBJECT:case n.MARQUEE:{Jh(e,t);break}case n.IFRAME:{uf(e,t);break}case n.SELECT:{cf(e,t);break}case n.OPTION:case n.OPTGROUP:{lf(e,t);break}case n.NOEMBED:{pc(e,t);break}case n.FRAMESET:{$h(e,t);break}case n.TEXTAREA:{af(e,t);break}case n.NOSCRIPT:{e.options.scriptingEnabled?pc(e,t):mc(e,t);break}case n.PLAINTEXT:{Kh(e,t);break}case n.COL:case n.TH:case n.TD:case n.TR:case n.HEAD:case n.FRAME:case n.TBODY:case n.TFOOT:case n.THEAD:case n.CAPTION:case n.COLGROUP:break;default:mc(e,t)}}function mf(e,t){if(e.openElements.hasInScope(n.BODY)&&(e.insertionMode=f.AFTER_BODY,e.options.sourceCodeLocationInfo)){let r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e._setEndLocation(r,t)}}function Ef(e,t){e.openElements.hasInScope(n.BODY)&&(e.insertionMode=f.AFTER_BODY,Lc(e,t))}function bf(e,t){let r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r))}function Tf(e){let t=e.openElements.tmplCount>0,{formElement:r}=e;t||(e.formElement=null),(r||t)&&e.openElements.hasInScope(n.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(n.FORM):r&&e.openElements.remove(r))}function gf(e){e.openElements.hasInButtonScope(n.P)||e._insertFakeElement(m.P,n.P),e._closePElement()}function _f(e){e.openElements.hasInListItemScope(n.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(n.LI),e.openElements.popUntilTagNamePopped(n.LI))}function Af(e,t){let r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r))}function xf(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function Cf(e,t){let r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker())}function Nf(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(m.BR,n.BR),e.openElements.pop(),e.framesetOk=!1}function Ac(e,t){let r=t.tagName,s=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){let a=e.openElements.items[i],o=e.openElements.tagIDs[i];if(s===o&&(s!==n.UNKNOWN||e.treeAdapter.getTagName(a)===r)){e.openElements.generateImpliedEndTagsWithExclusion(s),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(a,o))break}}function Li(e,t){switch(t.tagID){case n.A:case n.B:case n.I:case n.S:case n.U:case n.EM:case n.TT:case n.BIG:case n.CODE:case n.FONT:case n.NOBR:case n.SMALL:case n.STRIKE:case n.STRONG:{Sa(e,t);break}case n.P:{gf(e);break}case n.DL:case n.UL:case n.OL:case n.DIR:case n.DIV:case n.NAV:case n.PRE:case n.MAIN:case n.MENU:case n.ASIDE:case n.BUTTON:case n.CENTER:case n.FIGURE:case n.FOOTER:case n.HEADER:case n.HGROUP:case n.DIALOG:case n.ADDRESS:case n.ARTICLE:case n.DETAILS:case n.SECTION:case n.SUMMARY:case n.LISTING:case n.FIELDSET:case n.BLOCKQUOTE:case n.FIGCAPTION:{bf(e,t);break}case n.LI:{_f(e);break}case n.DD:case n.DT:{Af(e,t);break}case n.H1:case n.H2:case n.H3:case n.H4:case n.H5:case n.H6:{xf(e);break}case n.BR:{Nf(e);break}case n.BODY:{mf(e,t);break}case n.HTML:{Ef(e,t);break}case n.FORM:{Tf(e);break}case n.APPLET:case n.OBJECT:case n.MARQUEE:{Cf(e,t);break}case n.TEMPLATE:{It(e,t);break}default:Ac(e,t)}}function xc(e,t){e.tmplInsertionModeStack.length>0?Rc(e,t):Ia(e,t)}function yf(e,t){var r;t.tagID===n.SCRIPT&&((r=e.scriptHandler)===null||r===void 0||r.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function vf(e,t){e._err(t,b.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Na(e,t){if(Ec.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=f.IN_TABLE_TEXT,t.type){case P.CHARACTER:{Nc(e,t);break}case P.WHITESPACE_CHARACTER:{Cc(e,t);break}}else os(e,t)}function Sf(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,T.HTML),e.insertionMode=f.IN_CAPTION}function If(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,T.HTML),e.insertionMode=f.IN_COLUMN_GROUP}function Rf(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(m.COLGROUP,n.COLGROUP),e.insertionMode=f.IN_COLUMN_GROUP,Ra(e,t)}function Lf(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,T.HTML),e.insertionMode=f.IN_TABLE_BODY}function Df(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(m.TBODY,n.TBODY),e.insertionMode=f.IN_TABLE_BODY,Di(e,t)}function Of(e,t){e.openElements.hasInTableScope(n.TABLE)&&(e.openElements.popUntilTagNamePopped(n.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function Mf(e,t){_c(t)?e._appendElement(t,T.HTML):os(e,t),t.ackSelfClosing=!0}function Pf(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,T.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function nr(e,t){switch(t.tagID){case n.TD:case n.TH:case n.TR:{Df(e,t);break}case n.STYLE:case n.SCRIPT:case n.TEMPLATE:{ge(e,t);break}case n.COL:{Rf(e,t);break}case n.FORM:{Pf(e,t);break}case n.TABLE:{Of(e,t);break}case n.TBODY:case n.TFOOT:case n.THEAD:{Lf(e,t);break}case n.INPUT:{Mf(e,t);break}case n.CAPTION:{Sf(e,t);break}case n.COLGROUP:{If(e,t);break}default:os(e,t)}}function as(e,t){switch(t.tagID){case n.TABLE:{e.openElements.hasInTableScope(n.TABLE)&&(e.openElements.popUntilTagNamePopped(n.TABLE),e._resetInsertionMode());break}case n.TEMPLATE:{It(e,t);break}case n.BODY:case n.CAPTION:case n.COL:case n.COLGROUP:case n.HTML:case n.TBODY:case n.TD:case n.TFOOT:case n.TH:case n.THEAD:case n.TR:break;default:os(e,t)}}function os(e,t){let r=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Ri(e,t),e.fosterParentingEnabled=r}function Cc(e,t){e.pendingCharacterTokens.push(t)}function Nc(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function es(e,t){let r=0;if(e.hasNonWhitespacePendingCharacterToken)for(;r<e.pendingCharacterTokens.length;r++)os(e,e.pendingCharacterTokens[r]);else for(;r<e.pendingCharacterTokens.length;r++)e._insertCharacters(e.pendingCharacterTokens[r]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}var yc=new Set([n.CAPTION,n.COL,n.COLGROUP,n.TBODY,n.TD,n.TFOOT,n.TH,n.THEAD,n.TR]);function kf(e,t){let r=t.tagID;yc.has(r)?e.openElements.hasInTableScope(n.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=f.IN_TABLE,nr(e,t)):J(e,t)}function wf(e,t){let r=t.tagID;switch(r){case n.CAPTION:case n.TABLE:{e.openElements.hasInTableScope(n.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=f.IN_TABLE,r===n.TABLE&&as(e,t));break}case n.BODY:case n.COL:case n.COLGROUP:case n.HTML:case n.TBODY:case n.TD:case n.TFOOT:case n.TH:case n.THEAD:case n.TR:break;default:Li(e,t)}}function Ra(e,t){switch(t.tagID){case n.HTML:{J(e,t);break}case n.COL:{e._appendElement(t,T.HTML),t.ackSelfClosing=!0;break}case n.TEMPLATE:{ge(e,t);break}default:Si(e,t)}}function Hf(e,t){switch(t.tagID){case n.COLGROUP:{e.openElements.currentTagId===n.COLGROUP&&(e.openElements.pop(),e.insertionMode=f.IN_TABLE);break}case n.TEMPLATE:{It(e,t);break}case n.COL:break;default:Si(e,t)}}function Si(e,t){e.openElements.currentTagId===n.COLGROUP&&(e.openElements.pop(),e.insertionMode=f.IN_TABLE,e._processToken(t))}function Di(e,t){switch(t.tagID){case n.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,T.HTML),e.insertionMode=f.IN_ROW;break}case n.TH:case n.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(m.TR,n.TR),e.insertionMode=f.IN_ROW,Oi(e,t);break}case n.CAPTION:case n.COL:case n.COLGROUP:case n.TBODY:case n.TFOOT:case n.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=f.IN_TABLE,nr(e,t));break}default:nr(e,t)}}function va(e,t){let r=t.tagID;switch(t.tagID){case n.TBODY:case n.TFOOT:case n.THEAD:{e.openElements.hasInTableScope(r)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=f.IN_TABLE);break}case n.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=f.IN_TABLE,as(e,t));break}case n.BODY:case n.CAPTION:case n.COL:case n.COLGROUP:case n.HTML:case n.TD:case n.TH:case n.TR:break;default:as(e,t)}}function Oi(e,t){switch(t.tagID){case n.TH:case n.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,T.HTML),e.insertionMode=f.IN_CELL,e.activeFormattingElements.insertMarker();break}case n.CAPTION:case n.COL:case n.COLGROUP:case n.TBODY:case n.TFOOT:case n.THEAD:case n.TR:{e.openElements.hasInTableScope(n.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=f.IN_TABLE_BODY,Di(e,t));break}default:nr(e,t)}}function vc(e,t){switch(t.tagID){case n.TR:{e.openElements.hasInTableScope(n.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=f.IN_TABLE_BODY);break}case n.TABLE:{e.openElements.hasInTableScope(n.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=f.IN_TABLE_BODY,va(e,t));break}case n.TBODY:case n.TFOOT:case n.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(n.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=f.IN_TABLE_BODY,va(e,t));break}case n.BODY:case n.CAPTION:case n.COL:case n.COLGROUP:case n.HTML:case n.TD:case n.TH:break;default:as(e,t)}}function Bf(e,t){let r=t.tagID;yc.has(r)?(e.openElements.hasInTableScope(n.TD)||e.openElements.hasInTableScope(n.TH))&&(e._closeTableCell(),Oi(e,t)):J(e,t)}function Uf(e,t){let r=t.tagID;switch(r){case n.TD:case n.TH:{e.openElements.hasInTableScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=f.IN_ROW);break}case n.TABLE:case n.TBODY:case n.TFOOT:case n.THEAD:case n.TR:{e.openElements.hasInTableScope(r)&&(e._closeTableCell(),vc(e,t));break}case n.BODY:case n.CAPTION:case n.COL:case n.COLGROUP:case n.HTML:break;default:Li(e,t)}}function Sc(e,t){switch(t.tagID){case n.HTML:{J(e,t);break}case n.OPTION:{e.openElements.currentTagId===n.OPTION&&e.openElements.pop(),e._insertElement(t,T.HTML);break}case n.OPTGROUP:{e.openElements.currentTagId===n.OPTION&&e.openElements.pop(),e.openElements.currentTagId===n.OPTGROUP&&e.openElements.pop(),e._insertElement(t,T.HTML);break}case n.INPUT:case n.KEYGEN:case n.TEXTAREA:case n.SELECT:{e.openElements.hasInSelectScope(n.SELECT)&&(e.openElements.popUntilTagNamePopped(n.SELECT),e._resetInsertionMode(),t.tagID!==n.SELECT&&e._processStartTag(t));break}case n.SCRIPT:case n.TEMPLATE:{ge(e,t);break}default:}}function Ic(e,t){switch(t.tagID){case n.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===n.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===n.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===n.OPTGROUP&&e.openElements.pop();break}case n.OPTION:{e.openElements.currentTagId===n.OPTION&&e.openElements.pop();break}case n.SELECT:{e.openElements.hasInSelectScope(n.SELECT)&&(e.openElements.popUntilTagNamePopped(n.SELECT),e._resetInsertionMode());break}case n.TEMPLATE:{It(e,t);break}default:}}function Ff(e,t){let r=t.tagID;r===n.CAPTION||r===n.TABLE||r===n.TBODY||r===n.TFOOT||r===n.THEAD||r===n.TR||r===n.TD||r===n.TH?(e.openElements.popUntilTagNamePopped(n.SELECT),e._resetInsertionMode(),e._processStartTag(t)):Sc(e,t)}function qf(e,t){let r=t.tagID;r===n.CAPTION||r===n.TABLE||r===n.TBODY||r===n.TFOOT||r===n.THEAD||r===n.TR||r===n.TD||r===n.TH?e.openElements.hasInTableScope(r)&&(e.openElements.popUntilTagNamePopped(n.SELECT),e._resetInsertionMode(),e.onEndTag(t)):Ic(e,t)}function $f(e,t){switch(t.tagID){case n.BASE:case n.BASEFONT:case n.BGSOUND:case n.LINK:case n.META:case n.NOFRAMES:case n.SCRIPT:case n.STYLE:case n.TEMPLATE:case n.TITLE:{ge(e,t);break}case n.CAPTION:case n.COLGROUP:case n.TBODY:case n.TFOOT:case n.THEAD:{e.tmplInsertionModeStack[0]=f.IN_TABLE,e.insertionMode=f.IN_TABLE,nr(e,t);break}case n.COL:{e.tmplInsertionModeStack[0]=f.IN_COLUMN_GROUP,e.insertionMode=f.IN_COLUMN_GROUP,Ra(e,t);break}case n.TR:{e.tmplInsertionModeStack[0]=f.IN_TABLE_BODY,e.insertionMode=f.IN_TABLE_BODY,Di(e,t);break}case n.TD:case n.TH:{e.tmplInsertionModeStack[0]=f.IN_ROW,e.insertionMode=f.IN_ROW,Oi(e,t);break}default:e.tmplInsertionModeStack[0]=f.IN_BODY,e.insertionMode=f.IN_BODY,J(e,t)}}function Vf(e,t){t.tagID===n.TEMPLATE&&It(e,t)}function Rc(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(n.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Ia(e,t)}function Yf(e,t){t.tagID===n.HTML?J(e,t):Ii(e,t)}function Lc(e,t){var r;if(t.tagID===n.HTML){if(e.fragmentContext||(e.insertionMode=f.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===n.HTML){e._setEndLocation(e.openElements.items[0],t);let s=e.openElements.items[1];s&&!(!((r=e.treeAdapter.getNodeSourceCodeLocation(s))===null||r===void 0)&&r.endTag)&&e._setEndLocation(s,t)}}else Ii(e,t)}function Ii(e,t){e.insertionMode=f.IN_BODY,Ri(e,t)}function Gf(e,t){switch(t.tagID){case n.HTML:{J(e,t);break}case n.FRAMESET:{e._insertElement(t,T.HTML);break}case n.FRAME:{e._appendElement(t,T.HTML),t.ackSelfClosing=!0;break}case n.NOFRAMES:{ge(e,t);break}default:}}function Xf(e,t){t.tagID===n.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==n.FRAMESET&&(e.insertionMode=f.AFTER_FRAMESET))}function Wf(e,t){switch(t.tagID){case n.HTML:{J(e,t);break}case n.NOFRAMES:{ge(e,t);break}default:}}function Kf(e,t){t.tagID===n.HTML&&(e.insertionMode=f.AFTER_AFTER_FRAMESET)}function Qf(e,t){t.tagID===n.HTML?J(e,t):vi(e,t)}function vi(e,t){e.insertionMode=f.IN_BODY,Ri(e,t)}function jf(e,t){switch(t.tagID){case n.HTML:{J(e,t);break}case n.NOFRAMES:{ge(e,t);break}default:}}function zf(e,t){t.chars=$,e._insertCharacters(t)}function Zf(e,t){e._insertCharacters(t),e.framesetOk=!1}function Dc(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==T.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function Jf(e,t){if(Aa(t))Dc(e),e._startTagOutsideForeignContent(t);else{let r=e._getAdjustedCurrentElement(),s=e.treeAdapter.getNamespaceURI(r);s===T.MATHML?Ci(t):s===T.SVG&&(xa(t),Ni(t)),Zr(t),t.selfClosing?e._appendElement(t,s):e._insertElement(t,s),t.ackSelfClosing=!0}}function ep(e,t){if(t.tagID===n.P||t.tagID===n.BR){Dc(e),e._endTagOutsideForeignContent(t);return}for(let r=e.openElements.stackTop;r>0;r--){let s=e.openElements.items[r];if(e.treeAdapter.getNamespaceURI(s)===T.HTML){e._endTagOutsideForeignContent(t);break}let i=e.treeAdapter.getTagName(s);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(r);break}}}var tp=new Set([m.AREA,m.BASE,m.BASEFONT,m.BGSOUND,m.BR,m.COL,m.EMBED,m.FRAME,m.HR,m.IMG,m.INPUT,m.KEYGEN,m.LINK,m.META,m.PARAM,m.SOURCE,m.TRACK,m.WBR]);function rp(e,t){return t.treeAdapter.isElementNode(e)&&t.treeAdapter.getNamespaceURI(e)===T.HTML&&tp.has(t.treeAdapter.getTagName(e))}var sp={treeAdapter:Re,scriptingEnabled:!0};function La(e,t){let r=I(I({},sp),t);return Oc(e,r)}function ip(e,t){let r="",s=t.treeAdapter.isElementNode(e)&&t.treeAdapter.getTagName(e)===m.TEMPLATE&&t.treeAdapter.getNamespaceURI(e)===T.HTML?t.treeAdapter.getTemplateContent(e):e,i=t.treeAdapter.getChildNodes(s);if(i)for(let a of i)r+=Oc(a,t);return r}function Oc(e,t){return t.treeAdapter.isElementNode(e)?np(e,t):t.treeAdapter.isTextNode(e)?op(e,t):t.treeAdapter.isCommentNode(e)?up(e,t):t.treeAdapter.isDocumentTypeNode(e)?cp(e,t):""}function np(e,t){let r=t.treeAdapter.getTagName(e);return`<${r}${ap(e,t)}>${rp(e,t)?"":`${ip(e,t)}</${r}>`}`}function ap(e,{treeAdapter:t}){let r="";for(let s of t.getAttrList(e)){if(r+=" ",!s.namespace)r+=s.name;else switch(s.namespace){case T.XML:{r+=`xml:${s.name}`;break}case T.XMLNS:{s.name!=="xmlns"&&(r+="xmlns:"),r+=s.name;break}case T.XLINK:{r+=`xlink:${s.name}`;break}default:r+=`${s.prefix}:${s.name}`}r+=`="${Qt(s.value)}"`}return r}function op(e,t){let{treeAdapter:r}=t,s=r.getTextNodeContent(e),i=r.getParentNode(e),a=i&&r.isElementNode(i)&&r.getTagName(i);return a&&r.getNamespaceURI(i)===T.HTML&&ga(a,t.scriptingEnabled)?s:jt(s)}function up(e,{treeAdapter:t}){return`<!--${t.getCommentNodeContent(e)}-->`}function cp(e,{treeAdapter:t}){return`<!DOCTYPE ${t.getDocumentTypeNodeName(e)}>`}function Mc(e,t){return ir.parse(e,t)}function Pc(e,t,r){typeof e=="string"&&(r=t,t=e,e=null);let s=ir.getFragmentParser(e,r);return s.tokenizer.write(t,!0),s.getFragment()}function kc(e){return new Ie(e)}function wc(e){let t=e.includes('"')?"'":'"';return t+e+t}function lp(e,t,r){let s="!DOCTYPE ";return e&&(s+=e),t?s+=` PUBLIC ${wc(t)}`:r&&(s+=" SYSTEM"),r&&(s+=` ${wc(r)}`),s}var Rt={isCommentNode:xt,isElementNode:L,isTextNode:ne,createDocument(){let e=new ce([]);return e["x-mode"]=Kr.DOCUMENT_MODE.NO_QUIRKS,e},createDocumentFragment(){return new ce([])},createElement(e,t,r){let s=Object.create(null),i=Object.create(null),a=Object.create(null);for(let u=0;u<r.length;u++){let c=r[u].name;s[c]=r[u].value,i[c]=r[u].namespace,a[c]=r[u].prefix}let o=new At(e,s,[]);return o.namespace=t,o["x-attribsNamespace"]=i,o["x-attribsPrefix"]=a,o},createCommentNode(e){return new gt(e)},appendChild(e,t){let r=e.children[e.children.length-1];r&&(r.next=t,t.prev=r),e.children.push(t),t.parent=e},insertBefore(e,t,r){let s=e.children.indexOf(r),{prev:i}=r;i&&(i.next=t,t.prev=i),r.prev=t,t.next=r,e.children.splice(s,0,t),t.parent=e},setTemplateContent(e,t){Rt.appendChild(e,t)},getTemplateContent(e){return e.children[0]},setDocumentType(e,t,r,s){let i=lp(t,r,s),a=e.children.find(o=>Gs(o)&&o.name==="!doctype");a?a.data=i!=null?i:null:(a=new _t("!doctype",i),Rt.appendChild(e,a)),a["x-name"]=t!=null?t:void 0,a["x-publicId"]=r!=null?r:void 0,a["x-systemId"]=s!=null?s:void 0},setDocumentMode(e,t){e["x-mode"]=t},getDocumentMode(e){return e["x-mode"]},detachNode(e){if(e.parent){let t=e.parent.children.indexOf(e),{prev:r,next:s}=e;e.prev=null,e.next=null,r&&(r.next=s),s&&(s.prev=r),e.parent.children.splice(t,1),e.parent=null}},insertText(e,t){let r=e.children[e.children.length-1];r&&ne(r)?r.data+=t:Rt.appendChild(e,kc(t))},insertTextBefore(e,t,r){let s=e.children[e.children.indexOf(r)-1];s&&ne(s)?s.data+=t:Rt.insertBefore(e,kc(t),r)},adoptAttributes(e,t){for(let r=0;r<t.length;r++){let s=t[r].name;typeof e.attribs[s]=="undefined"&&(e.attribs[s]=t[r].value,e["x-attribsNamespace"][s]=t[r].namespace,e["x-attribsPrefix"][s]=t[r].prefix)}},getFirstChild(e){return e.children[0]},getChildNodes(e){return e.children},getParentNode(e){return e.parent},getAttrList(e){return e.attributes},getTagName(e){return e.name},getNamespaceURI(e){return e.namespace},getTextNodeContent(e){return e.data},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){var t;return(t=e["x-name"])!==null&&t!==void 0?t:""},getDocumentTypeNodePublicId(e){var t;return(t=e["x-publicId"])!==null&&t!==void 0?t:""},getDocumentTypeNodeSystemId(e){var t;return(t=e["x-systemId"])!==null&&t!==void 0?t:""},isDocumentTypeNode(e){return Gs(e)&&e.name==="!doctype"},setNodeSourceCodeLocation(e,t){t&&(e.startIndex=t.startOffset,e.endIndex=t.endOffset),e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){t.endOffset!=null&&(e.endIndex=t.endOffset),e.sourceCodeLocation=I(I({},e.sourceCodeLocation),t)}};function Hc(e,t,r,s){let i={scriptingEnabled:typeof t.scriptingEnabled=="boolean"?t.scriptingEnabled:!0,treeAdapter:Rt,sourceCodeLocationInfo:t.sourceCodeLocationInfo};return r?Mc(e,i):Pc(s,e,i)}var dp={treeAdapter:Rt};function Bc(e){let t="length"in e?e:[e];for(let s=0;s<t.length;s+=1){let i=t[s];be(i)&&Array.prototype.splice.call(t,s,1,...i.children)}let r="";for(let s=0;s<t.length;s+=1){let i=t[s];r+=La(i,dp)}return r}var S;(function(e){e[e.Tab=9]="Tab",e[e.NewLine=10]="NewLine",e[e.FormFeed=12]="FormFeed",e[e.CarriageReturn=13]="CarriageReturn",e[e.Space=32]="Space",e[e.ExclamationMark=33]="ExclamationMark",e[e.Number=35]="Number",e[e.Amp=38]="Amp",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Dash=45]="Dash",e[e.Slash=47]="Slash",e[e.Zero=48]="Zero",e[e.Nine=57]="Nine",e[e.Semi=59]="Semi",e[e.Lt=60]="Lt",e[e.Eq=61]="Eq",e[e.Gt=62]="Gt",e[e.Questionmark=63]="Questionmark",e[e.UpperA=65]="UpperA",e[e.LowerA=97]="LowerA",e[e.UpperF=70]="UpperF",e[e.LowerF=102]="LowerF",e[e.UpperZ=90]="UpperZ",e[e.LowerZ=122]="LowerZ",e[e.LowerX=120]="LowerX",e[e.OpeningSquareBracket=91]="OpeningSquareBracket"})(S||(S={}));var A;(function(e){e[e.Text=1]="Text",e[e.BeforeTagName=2]="BeforeTagName",e[e.InTagName=3]="InTagName",e[e.InSelfClosingTag=4]="InSelfClosingTag",e[e.BeforeClosingTagName=5]="BeforeClosingTagName",e[e.InClosingTagName=6]="InClosingTagName",e[e.AfterClosingTagName=7]="AfterClosingTagName",e[e.BeforeAttributeName=8]="BeforeAttributeName",e[e.InAttributeName=9]="InAttributeName",e[e.AfterAttributeName=10]="AfterAttributeName",e[e.BeforeAttributeValue=11]="BeforeAttributeValue",e[e.InAttributeValueDq=12]="InAttributeValueDq",e[e.InAttributeValueSq=13]="InAttributeValueSq",e[e.InAttributeValueNq=14]="InAttributeValueNq",e[e.BeforeDeclaration=15]="BeforeDeclaration",e[e.InDeclaration=16]="InDeclaration",e[e.InProcessingInstruction=17]="InProcessingInstruction",e[e.BeforeComment=18]="BeforeComment",e[e.CDATASequence=19]="CDATASequence",e[e.InSpecialComment=20]="InSpecialComment",e[e.InCommentLike=21]="InCommentLike",e[e.BeforeSpecialS=22]="BeforeSpecialS",e[e.SpecialStartSequence=23]="SpecialStartSequence",e[e.InSpecialTag=24]="InSpecialTag",e[e.BeforeEntity=25]="BeforeEntity",e[e.BeforeNumericEntity=26]="BeforeNumericEntity",e[e.InNamedEntity=27]="InNamedEntity",e[e.InNumericEntity=28]="InNumericEntity",e[e.InHexEntity=29]="InHexEntity"})(A||(A={}));function Ve(e){return e===S.Space||e===S.NewLine||e===S.Tab||e===S.FormFeed||e===S.CarriageReturn}function Mi(e){return e===S.Slash||e===S.Gt||Ve(e)}function Uc(e){return e>=S.Zero&&e<=S.Nine}function hp(e){return e>=S.LowerA&&e<=S.LowerZ||e>=S.UpperA&&e<=S.UpperZ}function fp(e){return e>=S.UpperA&&e<=S.UpperF||e>=S.LowerA&&e<=S.LowerF}var _e;(function(e){e[e.NoValue=0]="NoValue",e[e.Unquoted=1]="Unquoted",e[e.Single=2]="Single",e[e.Double=3]="Double"})(_e||(_e={}));var ue={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},ar=class{constructor({xmlMode:t=!1,decodeEntities:r=!0},s){this.cbs=s,this.state=A.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=A.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=t,this.decodeEntities=r,this.entityTrie=t?Xs:de}reset(){this.state=A.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=A.Text,this.currentSequence=void 0,this.running=!0,this.offset=0}write(t){this.offset+=this.buffer.length,this.buffer=t,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()}getIndex(){return this.index}getSectionStart(){return this.sectionStart}stateText(t){t===S.Lt||!this.decodeEntities&&this.fastForwardTo(S.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=A.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&t===S.Amp&&(this.state=A.BeforeEntity)}stateSpecialStartSequence(t){let r=this.sequenceIndex===this.currentSequence.length;if(!(r?Mi(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.isSpecial=!1;else if(!r){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=A.InTagName,this.stateInTagName(t)}stateInSpecialTag(t){if(this.sequenceIndex===this.currentSequence.length){if(t===S.Gt||Ve(t)){let r=this.index-this.currentSequence.length;if(this.sectionStart<r){let s=this.index;this.index=r,this.cbs.ontext(this.sectionStart,r),this.index=s}this.isSpecial=!1,this.sectionStart=r+2,this.stateInClosingTagName(t);return}this.sequenceIndex=0}(t|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===ue.TitleEnd?this.decodeEntities&&t===S.Amp&&(this.state=A.BeforeEntity):this.fastForwardTo(S.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=+(t===S.Lt)}stateCDATASequence(t){t===ue.Cdata[this.sequenceIndex]?++this.sequenceIndex===ue.Cdata.length&&(this.state=A.InCommentLike,this.currentSequence=ue.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=A.InDeclaration,this.stateInDeclaration(t))}fastForwardTo(t){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===t)return!0;return this.index=this.buffer.length+this.offset-1,!1}stateInCommentLike(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===ue.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=A.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}isTagStartChar(t){return this.xmlMode?!Mi(t):hp(t)}startSpecial(t,r){this.isSpecial=!0,this.currentSequence=t,this.sequenceIndex=r,this.state=A.SpecialStartSequence}stateBeforeTagName(t){if(t===S.ExclamationMark)this.state=A.BeforeDeclaration,this.sectionStart=this.index+1;else if(t===S.Questionmark)this.state=A.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(t)){let r=t|32;this.sectionStart=this.index,!this.xmlMode&&r===ue.TitleEnd[2]?this.startSpecial(ue.TitleEnd,3):this.state=!this.xmlMode&&r===ue.ScriptEnd[2]?A.BeforeSpecialS:A.InTagName}else t===S.Slash?this.state=A.BeforeClosingTagName:(this.state=A.Text,this.stateText(t))}stateInTagName(t){Mi(t)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=A.BeforeAttributeName,this.stateBeforeAttributeName(t))}stateBeforeClosingTagName(t){Ve(t)||(t===S.Gt?this.state=A.Text:(this.state=this.isTagStartChar(t)?A.InClosingTagName:A.InSpecialComment,this.sectionStart=this.index))}stateInClosingTagName(t){(t===S.Gt||Ve(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=A.AfterClosingTagName,this.stateAfterClosingTagName(t))}stateAfterClosingTagName(t){(t===S.Gt||this.fastForwardTo(S.Gt))&&(this.state=A.Text,this.baseState=A.Text,this.sectionStart=this.index+1)}stateBeforeAttributeName(t){t===S.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=A.InSpecialTag,this.sequenceIndex=0):this.state=A.Text,this.baseState=this.state,this.sectionStart=this.index+1):t===S.Slash?this.state=A.InSelfClosingTag:Ve(t)||(this.state=A.InAttributeName,this.sectionStart=this.index)}stateInSelfClosingTag(t){t===S.Gt?(this.cbs.onselfclosingtag(this.index),this.state=A.Text,this.baseState=A.Text,this.sectionStart=this.index+1,this.isSpecial=!1):Ve(t)||(this.state=A.BeforeAttributeName,this.stateBeforeAttributeName(t))}stateInAttributeName(t){(t===S.Eq||Mi(t))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=A.AfterAttributeName,this.stateAfterAttributeName(t))}stateAfterAttributeName(t){t===S.Eq?this.state=A.BeforeAttributeValue:t===S.Slash||t===S.Gt?(this.cbs.onattribend(_e.NoValue,this.index),this.state=A.BeforeAttributeName,this.stateBeforeAttributeName(t)):Ve(t)||(this.cbs.onattribend(_e.NoValue,this.index),this.state=A.InAttributeName,this.sectionStart=this.index)}stateBeforeAttributeValue(t){t===S.DoubleQuote?(this.state=A.InAttributeValueDq,this.sectionStart=this.index+1):t===S.SingleQuote?(this.state=A.InAttributeValueSq,this.sectionStart=this.index+1):Ve(t)||(this.sectionStart=this.index,this.state=A.InAttributeValueNq,this.stateInAttributeValueNoQuotes(t))}handleInAttributeValue(t,r){t===r||!this.decodeEntities&&this.fastForwardTo(r)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(r===S.DoubleQuote?_e.Double:_e.Single,this.index),this.state=A.BeforeAttributeName):this.decodeEntities&&t===S.Amp&&(this.baseState=this.state,this.state=A.BeforeEntity)}stateInAttributeValueDoubleQuotes(t){this.handleInAttributeValue(t,S.DoubleQuote)}stateInAttributeValueSingleQuotes(t){this.handleInAttributeValue(t,S.SingleQuote)}stateInAttributeValueNoQuotes(t){Ve(t)||t===S.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(_e.Unquoted,this.index),this.state=A.BeforeAttributeName,this.stateBeforeAttributeName(t)):this.decodeEntities&&t===S.Amp&&(this.baseState=this.state,this.state=A.BeforeEntity)}stateBeforeDeclaration(t){t===S.OpeningSquareBracket?(this.state=A.CDATASequence,this.sequenceIndex=0):this.state=t===S.Dash?A.BeforeComment:A.InDeclaration}stateInDeclaration(t){(t===S.Gt||this.fastForwardTo(S.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=A.Text,this.sectionStart=this.index+1)}stateInProcessingInstruction(t){(t===S.Gt||this.fastForwardTo(S.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=A.Text,this.sectionStart=this.index+1)}stateBeforeComment(t){t===S.Dash?(this.state=A.InCommentLike,this.currentSequence=ue.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=A.InDeclaration}stateInSpecialComment(t){(t===S.Gt||this.fastForwardTo(S.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=A.Text,this.sectionStart=this.index+1)}stateBeforeSpecialS(t){let r=t|32;r===ue.ScriptEnd[3]?this.startSpecial(ue.ScriptEnd,4):r===ue.StyleEnd[3]?this.startSpecial(ue.StyleEnd,4):(this.state=A.InTagName,this.stateInTagName(t))}stateBeforeEntity(t){this.entityExcess=1,this.entityResult=0,t===S.Number?this.state=A.BeforeNumericEntity:t===S.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=A.InNamedEntity,this.stateInNamedEntity(t))}stateInNamedEntity(t){if(this.entityExcess+=1,this.trieIndex=Mr(this.entityTrie,this.trieCurrent,this.trieIndex+1,t),this.trieIndex<0){this.emitNamedEntity(),this.index--;return}this.trieCurrent=this.entityTrie[this.trieIndex];let r=this.trieCurrent&te.VALUE_LENGTH;if(r){let s=(r>>14)-1;if(!this.allowLegacyEntity()&&t!==S.Semi)this.trieIndex+=s;else{let i=this.index-this.entityExcess+1;i>this.sectionStart&&this.emitPartial(this.sectionStart,i),this.entityResult=this.trieIndex,this.trieIndex+=s,this.entityExcess=0,this.sectionStart=this.index+1,s===0&&this.emitNamedEntity()}}}emitNamedEntity(){if(this.state=this.baseState,this.entityResult===0)return;switch((this.entityTrie[this.entityResult]&te.VALUE_LENGTH)>>14){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~te.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}stateBeforeNumericEntity(t){(t|32)===S.LowerX?(this.entityExcess++,this.state=A.InHexEntity):(this.state=A.InNumericEntity,this.stateInNumericEntity(t))}emitNumericEntity(t){let r=this.index-this.entityExcess-1;r+2+ +(this.state===A.InHexEntity)!==this.index&&(r>this.sectionStart&&this.emitPartial(this.sectionStart,r),this.sectionStart=this.index+Number(t),this.emitCodePoint(Or(this.entityResult))),this.state=this.baseState}stateInNumericEntity(t){t===S.Semi?this.emitNumericEntity(!0):Uc(t)?(this.entityResult=this.entityResult*10+(t-S.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)}stateInHexEntity(t){t===S.Semi?this.emitNumericEntity(!0):Uc(t)?(this.entityResult=this.entityResult*16+(t-S.Zero),this.entityExcess++):fp(t)?(this.entityResult=this.entityResult*16+((t|32)-S.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)}allowLegacyEntity(){return!this.xmlMode&&(this.baseState===A.Text||this.baseState===A.InSpecialTag)}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===A.Text||this.state===A.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===A.InAttributeValueDq||this.state===A.InAttributeValueSq||this.state===A.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}shouldContinue(){return this.index<this.buffer.length+this.offset&&this.running}parse(){for(;this.shouldContinue();){let t=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case A.Text:{this.stateText(t);break}case A.SpecialStartSequence:{this.stateSpecialStartSequence(t);break}case A.InSpecialTag:{this.stateInSpecialTag(t);break}case A.CDATASequence:{this.stateCDATASequence(t);break}case A.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(t);break}case A.InAttributeName:{this.stateInAttributeName(t);break}case A.InCommentLike:{this.stateInCommentLike(t);break}case A.InSpecialComment:{this.stateInSpecialComment(t);break}case A.BeforeAttributeName:{this.stateBeforeAttributeName(t);break}case A.InTagName:{this.stateInTagName(t);break}case A.InClosingTagName:{this.stateInClosingTagName(t);break}case A.BeforeTagName:{this.stateBeforeTagName(t);break}case A.AfterAttributeName:{this.stateAfterAttributeName(t);break}case A.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(t);break}case A.BeforeAttributeValue:{this.stateBeforeAttributeValue(t);break}case A.BeforeClosingTagName:{this.stateBeforeClosingTagName(t);break}case A.AfterClosingTagName:{this.stateAfterClosingTagName(t);break}case A.BeforeSpecialS:{this.stateBeforeSpecialS(t);break}case A.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(t);break}case A.InSelfClosingTag:{this.stateInSelfClosingTag(t);break}case A.InDeclaration:{this.stateInDeclaration(t);break}case A.BeforeDeclaration:{this.stateBeforeDeclaration(t);break}case A.BeforeComment:{this.stateBeforeComment(t);break}case A.InProcessingInstruction:{this.stateInProcessingInstruction(t);break}case A.InNamedEntity:{this.stateInNamedEntity(t);break}case A.BeforeEntity:{this.stateBeforeEntity(t);break}case A.InHexEntity:{this.stateInHexEntity(t);break}case A.InNumericEntity:{this.stateInNumericEntity(t);break}default:this.stateBeforeNumericEntity(t)}this.index++}this.cleanup()}finish(){this.state===A.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){let t=this.buffer.length+this.offset;this.state===A.InCommentLike?this.currentSequence===ue.CdataEnd?this.cbs.oncdata(this.sectionStart,t,0):this.cbs.oncomment(this.sectionStart,t,0):this.state===A.InNumericEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===A.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===A.InTagName||this.state===A.BeforeAttributeName||this.state===A.BeforeAttributeValue||this.state===A.AfterAttributeName||this.state===A.InAttributeName||this.state===A.InAttributeValueSq||this.state===A.InAttributeValueDq||this.state===A.InAttributeValueNq||this.state===A.InClosingTagName||this.cbs.ontext(this.sectionStart,t)}emitPartial(t,r){this.baseState!==A.Text&&this.baseState!==A.InSpecialTag?this.cbs.onattribdata(t,r):this.cbs.ontext(t,r)}emitCodePoint(t){this.baseState!==A.Text&&this.baseState!==A.InSpecialTag?this.cbs.onattribentity(t):this.cbs.ontextentity(t)}};var or=new Set(["input","option","optgroup","select","button","datalist","textarea"]),B=new Set(["p"]),Fc=new Set(["thead","tbody"]),qc=new Set(["dd","dt"]),$c=new Set(["rt","rp"]),pp=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",B],["h1",B],["h2",B],["h3",B],["h4",B],["h5",B],["h6",B],["select",or],["input",or],["output",or],["button",or],["datalist",or],["textarea",or],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",qc],["dt",qc],["address",B],["article",B],["aside",B],["blockquote",B],["details",B],["div",B],["dl",B],["fieldset",B],["figcaption",B],["figure",B],["footer",B],["form",B],["header",B],["hr",B],["main",B],["nav",B],["ol",B],["pre",B],["section",B],["table",B],["ul",B],["rt",$c],["rp",$c],["tbody",Fc],["tfoot",Fc]]),mp=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),Vc=new Set(["math","svg"]),Yc=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),Ep=/\s|\//,us=class{constructor(t,r={}){var s,i,a,o,u;this.options=r,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=t!=null?t:{},this.lowerCaseTagNames=(s=r.lowerCaseTags)!==null&&s!==void 0?s:!r.xmlMode,this.lowerCaseAttributeNames=(i=r.lowerCaseAttributeNames)!==null&&i!==void 0?i:!r.xmlMode,this.tokenizer=new((a=r.Tokenizer)!==null&&a!==void 0?a:ar)(this.options,this),(u=(o=this.cbs).onparserinit)===null||u===void 0||u.call(o,this)}ontext(t,r){var s,i;let a=this.getSlice(t,r);this.endIndex=r-1,(i=(s=this.cbs).ontext)===null||i===void 0||i.call(s,a),this.startIndex=r}ontextentity(t){var r,s;let i=this.tokenizer.getSectionStart();this.endIndex=i-1,(s=(r=this.cbs).ontext)===null||s===void 0||s.call(r,Kt(t)),this.startIndex=i}isVoidElement(t){return!this.options.xmlMode&&mp.has(t)}onopentagname(t,r){this.endIndex=r;let s=this.getSlice(t,r);this.lowerCaseTagNames&&(s=s.toLowerCase()),this.emitOpenTag(s)}emitOpenTag(t){var r,s,i,a;this.openTagStart=this.startIndex,this.tagname=t;let o=!this.options.xmlMode&&pp.get(t);if(o)for(;this.stack.length>0&&o.has(this.stack[this.stack.length-1]);){let u=this.stack.pop();(s=(r=this.cbs).onclosetag)===null||s===void 0||s.call(r,u,!0)}this.isVoidElement(t)||(this.stack.push(t),Vc.has(t)?this.foreignContext.push(!0):Yc.has(t)&&this.foreignContext.push(!1)),(a=(i=this.cbs).onopentagname)===null||a===void 0||a.call(i,t),this.cbs.onopentag&&(this.attribs={})}endOpenTag(t){var r,s;this.startIndex=this.openTagStart,this.attribs&&((s=(r=this.cbs).onopentag)===null||s===void 0||s.call(r,this.tagname,this.attribs,t),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""}onopentagend(t){this.endIndex=t,this.endOpenTag(!1),this.startIndex=t+1}onclosetag(t,r){var s,i,a,o,u,c;this.endIndex=r;let h=this.getSlice(t,r);if(this.lowerCaseTagNames&&(h=h.toLowerCase()),(Vc.has(h)||Yc.has(h))&&this.foreignContext.pop(),this.isVoidElement(h))!this.options.xmlMode&&h==="br"&&((i=(s=this.cbs).onopentagname)===null||i===void 0||i.call(s,"br"),(o=(a=this.cbs).onopentag)===null||o===void 0||o.call(a,"br",{},!0),(c=(u=this.cbs).onclosetag)===null||c===void 0||c.call(u,"br",!1));else{let p=this.stack.lastIndexOf(h);if(p!==-1)if(this.cbs.onclosetag){let g=this.stack.length-p;for(;g--;)this.cbs.onclosetag(this.stack.pop(),g!==0)}else this.stack.length=p;else!this.options.xmlMode&&h==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=r+1}onselfclosingtag(t){this.endIndex=t,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=t+1):this.onopentagend(t)}closeCurrentTag(t){var r,s;let i=this.tagname;this.endOpenTag(t),this.stack[this.stack.length-1]===i&&((s=(r=this.cbs).onclosetag)===null||s===void 0||s.call(r,i,!t),this.stack.pop())}onattribname(t,r){this.startIndex=t;let s=this.getSlice(t,r);this.attribname=this.lowerCaseAttributeNames?s.toLowerCase():s}onattribdata(t,r){this.attribvalue+=this.getSlice(t,r)}onattribentity(t){this.attribvalue+=Kt(t)}onattribend(t,r){var s,i;this.endIndex=r,(i=(s=this.cbs).onattribute)===null||i===void 0||i.call(s,this.attribname,this.attribvalue,t===_e.Double?'"':t===_e.Single?"'":t===_e.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""}getInstructionName(t){let r=t.search(Ep),s=r<0?t:t.substr(0,r);return this.lowerCaseTagNames&&(s=s.toLowerCase()),s}ondeclaration(t,r){this.endIndex=r;let s=this.getSlice(t,r);if(this.cbs.onprocessinginstruction){let i=this.getInstructionName(s);this.cbs.onprocessinginstruction(`!${i}`,`!${s}`)}this.startIndex=r+1}onprocessinginstruction(t,r){this.endIndex=r;let s=this.getSlice(t,r);if(this.cbs.onprocessinginstruction){let i=this.getInstructionName(s);this.cbs.onprocessinginstruction(`?${i}`,`?${s}`)}this.startIndex=r+1}oncomment(t,r,s){var i,a,o,u;this.endIndex=r,(a=(i=this.cbs).oncomment)===null||a===void 0||a.call(i,this.getSlice(t,r-s)),(u=(o=this.cbs).oncommentend)===null||u===void 0||u.call(o),this.startIndex=r+1}oncdata(t,r,s){var i,a,o,u,c,h,p,g,N,y;this.endIndex=r;let R=this.getSlice(t,r-s);this.options.xmlMode||this.options.recognizeCDATA?((a=(i=this.cbs).oncdatastart)===null||a===void 0||a.call(i),(u=(o=this.cbs).ontext)===null||u===void 0||u.call(o,R),(h=(c=this.cbs).oncdataend)===null||h===void 0||h.call(c)):((g=(p=this.cbs).oncomment)===null||g===void 0||g.call(p,`[CDATA[${R}]]`),(y=(N=this.cbs).oncommentend)===null||y===void 0||y.call(N)),this.startIndex=r+1}onend(){var t,r;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let s=this.stack.length;s>0;this.cbs.onclosetag(this.stack[--s],!0));}(r=(t=this.cbs).onend)===null||r===void 0||r.call(t)}reset(){var t,r,s,i;(r=(t=this.cbs).onreset)===null||r===void 0||r.call(t),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(i=(s=this.cbs).onparserinit)===null||i===void 0||i.call(s,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1}parseComplete(t){this.reset(),this.end(t)}getSlice(t,r){for(;t-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();let s=this.buffers[0].slice(t-this.bufferOffset,r-this.bufferOffset);for(;r-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),s+=this.buffers[0].slice(0,r-this.bufferOffset);return s}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(t){var r,s;if(this.ended){(s=(r=this.cbs).onerror)===null||s===void 0||s.call(r,new Error(".write() after done!"));return}this.buffers.push(t),this.tokenizer.running&&(this.tokenizer.write(t),this.writeIndex++)}end(t){var r,s;if(this.ended){(s=(r=this.cbs).onerror)===null||s===void 0||s.call(r,new Error(".end() after done!"));return}t&&this.write(t),this.ended=!0,this.tokenizer.end()}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()}parseChunk(t){this.write(t)}done(t){this.end(t)}};function Gc(e,t){let r=new Wt(void 0,t);return new us(r,t).end(e),r.root}var bp=qu((e,t,r,s)=>t.xmlMode||t._useHtmlParser2?Gc(e,t):Hc(e,t,r,s)),cs=Ku(bp,(e,t)=>t.xmlMode||t._useHtmlParser2?Qs(e,t):Bc(e)),Ty=cs([]),{contains:gy}=rt,{merge:_y}=rt,{parseHTML:Ay}=rt,{root:xy}=rt;var gp=(e="type")=>`<?xml version="1.0" encoding="utf-8"?>
|
|
446
|
+
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:qti="http://www.imsglobal.org/xsd/imsqti_v2p1" xmlns:m="http://www.w3.org/1998/Math/MathML">
|
|
447
|
+
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
|
|
448
|
+
<xsl:param name="separator" select="' '" />
|
|
449
|
+
<xsl:param name="prefix" select="'type:'" />
|
|
450
|
+
<xsl:variable name="prefixElements"></xsl:variable>
|
|
451
|
+
<xsl:variable name="suffixElements"></xsl:variable>
|
|
452
|
+
<!-- passthrough -->
|
|
453
|
+
<xsl:template match="*">
|
|
454
|
+
<xsl:copy>
|
|
455
|
+
<xsl:apply-templates select="* | @* | text()" />
|
|
456
|
+
</xsl:copy>
|
|
457
|
+
</xsl:template>
|
|
458
|
+
<xsl:template match="@* | text()">
|
|
459
|
+
<xsl:copy-of select="." />
|
|
460
|
+
</xsl:template>
|
|
461
|
+
|
|
462
|
+
<xsl:template match="*">
|
|
463
|
+
<xsl:variable name="elementName">
|
|
464
|
+
<xsl:call-template name="getTypedElementName">
|
|
465
|
+
<xsl:with-param name="input" select="." />
|
|
466
|
+
</xsl:call-template>
|
|
467
|
+
</xsl:variable>
|
|
468
|
+
<xsl:element name="{$elementName}">
|
|
469
|
+
<xsl:apply-templates select="* | @* | text()" />
|
|
470
|
+
</xsl:element>
|
|
471
|
+
</xsl:template>
|
|
472
|
+
|
|
473
|
+
<!-- custom names -->
|
|
474
|
+
<xsl:template name="getType">
|
|
475
|
+
<xsl:param name="input" />
|
|
476
|
+
<xsl:param name="separator" select="$separator" />
|
|
477
|
+
<xsl:param name="prefix" select="$prefix" />
|
|
478
|
+
<xsl:variable name="output">
|
|
479
|
+
<xsl:choose>
|
|
480
|
+
<xsl:when test="contains($input, $separator)">
|
|
481
|
+
<xsl:value-of select="substring-before($input, $separator)" />
|
|
482
|
+
</xsl:when>
|
|
483
|
+
<xsl:otherwise>
|
|
484
|
+
<xsl:value-of select="$input" />
|
|
485
|
+
</xsl:otherwise>
|
|
486
|
+
</xsl:choose>
|
|
487
|
+
</xsl:variable>
|
|
488
|
+
<xsl:choose>
|
|
489
|
+
<xsl:when test="starts-with($output, $prefix) and $output != $prefix">
|
|
490
|
+
<xsl:value-of select="substring-after($output, $prefix)" />
|
|
491
|
+
</xsl:when>
|
|
492
|
+
<xsl:otherwise>
|
|
493
|
+
<xsl:variable name="after" select="substring-after($input, $separator)" />
|
|
494
|
+
<xsl:if test="$after">
|
|
495
|
+
<xsl:call-template name="getType">
|
|
496
|
+
<xsl:with-param name="input" select="$after" />
|
|
497
|
+
<xsl:with-param name="separator" select="$separator" />
|
|
498
|
+
<xsl:with-param name="prefix" select="$prefix" />
|
|
499
|
+
</xsl:call-template>
|
|
500
|
+
</xsl:if>
|
|
501
|
+
</xsl:otherwise>
|
|
502
|
+
</xsl:choose>
|
|
503
|
+
</xsl:template>
|
|
504
|
+
|
|
505
|
+
<xsl:template name="getTypedElementName">
|
|
506
|
+
<xsl:param name="input" />
|
|
507
|
+
<xsl:variable name="prefixElements" select="document('')//xsl:variable[@name = 'prefixElements']/element" />
|
|
508
|
+
<xsl:variable name="suffixElements" select="document('')//xsl:variable[@name = 'suffixElements']/element" />
|
|
509
|
+
<xsl:variable name="originalName" select="name($input)" />
|
|
510
|
+
<xsl:variable name="type">
|
|
511
|
+
<xsl:call-template name="getType">
|
|
512
|
+
<xsl:with-param name="input" select="$input/@class" />
|
|
513
|
+
</xsl:call-template>
|
|
514
|
+
</xsl:variable>
|
|
515
|
+
<xsl:value-of select="$originalName" />
|
|
516
|
+
<!-- Add prefix elements -->
|
|
517
|
+
<xsl:if test="$prefixElements[text() = $originalName]">
|
|
518
|
+
<xsl:text>-</xsl:text>
|
|
519
|
+
</xsl:if>
|
|
520
|
+
<!-- Add suffix to typed elements -->
|
|
521
|
+
<xsl:if test="string-length($type)">
|
|
522
|
+
<xsl:text>-</xsl:text>
|
|
523
|
+
<xsl:value-of select="$type" />
|
|
524
|
+
</xsl:if>
|
|
525
|
+
<!-- Add suffix to elements -->
|
|
526
|
+
<xsl:if test="$suffixElements[text() = $originalName]">
|
|
527
|
+
<xsl:text>-</xsl:text>
|
|
528
|
+
</xsl:if>
|
|
529
|
+
</xsl:template>
|
|
530
|
+
</xsl:stylesheet>`,_p=`
|
|
2693
531
|
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
|
2694
532
|
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
|
|
2695
533
|
<xsl:template match="*">
|
|
@@ -2705,7 +543,7 @@ video {
|
|
|
2705
543
|
<xsl:apply-templates/>
|
|
2706
544
|
</xsl:element>
|
|
2707
545
|
</xsl:template>
|
|
2708
|
-
</xsl:stylesheet>`,
|
|
546
|
+
</xsl:stylesheet>`,yy=e=>{let t=e,r=i=>{let a=new DOMParser().parseFromString(t,"text/xml"),o=new XSLTProcessor,u=new DOMParser().parseFromString(i,"text/xml");o.importStylesheet(u);let c=o.transformToFragment(a,document);t=new XMLSerializer().serializeToString(c)},s={mathml(){let i=cs(t,{xmlMode:!0,xml:!0});return i("math").each((a,o)=>{o.tagName="math-ml"}).find("*").each((a,o)=>{o.tagName=`math-${o.tagName.substring(1)}`}),t=i.xml(),s},removeNamesSpaces(){return r(_p),s},pciHooks(i){let a=["hook","module"],o=i.substring(0,i.lastIndexOf("/")),u=new DOMParser().parseFromString(t,"text/xml");for(let c of a)u.querySelectorAll("["+c+"]").forEach(p=>{let g=p.getAttribute(c);!g.startsWith("data:")&&!g.startsWith("http")&&(p.setAttribute("base-url",i),p.setAttribute("module",o+"/"+encodeURIComponent(g+(g.endsWith(".js")?"":".js"))))});return t=new XMLSerializer().serializeToString(u),s},assetsLocation(i,a=["src","href","data"]){let o=i.substring(0,i.lastIndexOf("/")),u=new DOMParser().parseFromString(t,"text/xml");for(let c of a)u.querySelectorAll("["+c+"]").forEach(p=>{let g=p.getAttribute(c);!g.startsWith("data:")&&!g.startsWith("http")&&p.setAttribute(c,o+"/"+encodeURIComponent(g))});return t=new XMLSerializer().serializeToString(u),s},customTypes(){return r(gp()),s},suffix(i,a){let o=cs(t,{xml:!0,xmlMode:!0});return o("*").each((u,c)=>{i.includes(c.name)&&(c.name=`${c.name}-${a}`)}),t=o.xml(),s},fn(i){return t=i(t),s},fnCh(i){let a=cs(t,{xml:!0,xmlMode:!0});return i(a),t=a.xml(),s},elementNameAttributes(i){return i.forEach(a=>{t=xp(t,a,a+` data-element="${a}" `)}),s},print(){return console.log(t),s},xml(){return t=Ap(t),t}};return s},Ap=e=>{let t=e.split("/>"),r="";for(let s=0;s<t.length-1;s++){let i=t[s].split("<");r+=t[s]+"></"+i[i.length-1].split(" ")[0]+">"}return r+t[t.length-1]};function xp(e,t,r){return e.replace(new RegExp(t,"g"),r)}export{K as Choices,ve as DragDropInteractionMixin,Do as DroppablesMixin,Ya as Events,Oo as FlippablesMixin,Tl as NavigationMode,Dt as OutcomeVariable,nn as QtiAnd,Ae as QtiAssessmentItem,Cr as QtiAssociateInteraction,Rs as QtiBaseValue,se as QtiChoice,Va as QtiChoiceElementSelected,gs as QtiCompanionMaterialsInfo,on as QtiContains,un as QtiCorrect,qs as QtiCustomOperatorLevenshtein,bn as QtiCustomOperatorNumericOnly,$s as QtiCustomOperatorParseNumberLocalNl,Tn as QtiCustomOperatorRemoveAllSpaces,gn as QtiCustomOperatorTrim,Ss as QtiEqual,Is as QtiEqualRounded,w as QtiExpression,Ne as QtiExtendedTextInteraction,xs as QtiFeedbackInline,Ms as QtiGap,Ds as QtiGapMatchInteraction,Os as QtiGapText,Ps as QtiGraphicAssociateInteraction,ks as QtiGraphicGapMatchInteraction,ws as QtiGraphicOrderInteraction,rn as QtiGt,sn as QtiGte,Nr as QtiHotspotChoice,Hs as QtiHotspotInteraction,ys as QtiHottext,Zi as QtiHottextInteraction,En as QtiInlineChoice,vs as QtiInlineChoiceInteraction,wa as QtiInteractionChanged,$a as QtiInteractionResponse,cn as QtiIsNull,Ee as QtiItem,qa as QtiLooseChoice,Se as QtiManualScoring,Ls as QtiMapResponse,$t as QtiMapping,ln as QtiMatch,Bs as QtiMatchInteraction,Us as QtiMediaInteraction,Qi as QtiModalFeedback,hn as QtiMultiple,an as QtiOr,Yt as QtiOrderInteraction,fn as QtiOrdered,ka as QtiOutcomeChanged,Wi as QtiOutcomeDeclaration,pn as QtiPortableCustomInteraction,Xi as QtiPrompt,Ua as QtiRegisterChoice,Fa as QtiRegisterHotspot,Ba as QtiRegisterInteraction,Ha as QtiRegisterVariable,Ji as QtiResponseCondition,Bt as QtiResponseDeclaration,Ar as QtiResponseElse,tn as QtiResponseElseIf,xr as QtiResponseIf,qt as QtiResponseProcessing,we as QtiRule,Fs as QtiSelectPointInteraction,en as QtiSetOutcomeValue,mn as QtiSimpleAssociableChoice,ie as QtiSliderInteraction,Gi as QtiStylesheet,ee as QtiTest,ke as QtiTextEntryInteraction,dn as QtiVariable,Lt as ResponseVariable,gl as SubmissionMode,Je as TestEvents,Ze as TouchDragAndDrop,Ap as fixSelfClosingTags,As as qtiContentBody,xe as qtiRubricBlock,yy as qtiTransform};
|
|
2709
547
|
/*! Bundled license information:
|
|
2710
548
|
|
|
2711
549
|
@lit/reactive-element/node/decorators/custom-element.js:
|
|
@@ -2932,17 +770,10 @@ lit-html/node/directives/ref.js:
|
|
|
2932
770
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2933
771
|
*)
|
|
2934
772
|
|
|
2935
|
-
lit-html/node/directives/
|
|
773
|
+
lit-html/node/directives/unsafe-html.js:
|
|
2936
774
|
(**
|
|
2937
775
|
* @license
|
|
2938
776
|
* Copyright 2017 Google LLC
|
|
2939
777
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2940
778
|
*)
|
|
2941
|
-
|
|
2942
|
-
lit-html/node/directives/style-map.js:
|
|
2943
|
-
(**
|
|
2944
|
-
* @license
|
|
2945
|
-
* Copyright 2018 Google LLC
|
|
2946
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
2947
|
-
*)
|
|
2948
779
|
*/
|