@citolab/qti-components 6.0.1 → 6.0.2-0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js ADDED
@@ -0,0 +1,2288 @@
1
+ var I0=Object.create;var Ui=Object.defineProperty,R0=Object.defineProperties,$u=Object.getOwnPropertyDescriptor,L0=Object.getOwnPropertyDescriptors,O0=Object.getOwnPropertyNames,es=Object.getOwnPropertySymbols,D0=Object.getPrototypeOf,Wa=Object.prototype.hasOwnProperty,Vu=Object.prototype.propertyIsEnumerable;var Fu=(e,t,i)=>t in e?Ui(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,D=(e,t)=>{for(var i in t||(t={}))Wa.call(t,i)&&Fu(e,i,t[i]);if(es)for(var i of es(t))Vu.call(t,i)&&Fu(e,i,t[i]);return e},ie=(e,t)=>R0(e,L0(t));var Yu=(e,t)=>{var i={};for(var r in e)Wa.call(e,r)&&t.indexOf(r)<0&&(i[r]=e[r]);if(e!=null&&es)for(var r of es(e))t.indexOf(r)<0&&Vu.call(e,r)&&(i[r]=e[r]);return i};var ts=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Fe=(e,t)=>{for(var i in t)Ui(e,i,{get:t[i],enumerable:!0})},w0=(e,t,i,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of O0(t))!Wa.call(e,s)&&s!==i&&Ui(e,s,{get:()=>t[s],enumerable:!(r=$u(t,s))||r.enumerable});return e};var mt=(e,t,i)=>(i=e!=null?I0(D0(e)):{},w0(t||!e||!e.__esModule?Ui(i,"default",{value:e,enumerable:!0}):i,e));var _=(e,t,i,r)=>{for(var s=r>1?void 0:r?$u(t,i):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(s=(r?o(t,i,s):o(s))||s);return r&&s&&Ui(t,i,s),s};var il=ts(V=>{"use strict";var sr=Symbol.for("react.element"),J0=Symbol.for("react.portal"),Z0=Symbol.for("react.fragment"),ep=Symbol.for("react.strict_mode"),tp=Symbol.for("react.profiler"),ip=Symbol.for("react.provider"),rp=Symbol.for("react.context"),sp=Symbol.for("react.forward_ref"),ap=Symbol.for("react.suspense"),np=Symbol.for("react.memo"),op=Symbol.for("react.lazy"),Wc=Symbol.iterator;function up(e){return e===null||typeof e!="object"?null:(e=Wc&&e[Wc]||e["@@iterator"],typeof e=="function"?e:null)}var Kc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Qc=Object.assign,zc={};function Ti(e,t,i){this.props=e,this.context=t,this.refs=zc,this.updater=i||Kc}Ti.prototype.isReactComponent={};Ti.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Ti.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Jc(){}Jc.prototype=Ti.prototype;function Pn(e,t,i){this.props=e,this.context=t,this.refs=zc,this.updater=i||Kc}var Mn=Pn.prototype=new Jc;Mn.constructor=Pn;Qc(Mn,Ti.prototype);Mn.isPureReactComponent=!0;var jc=Array.isArray,Zc=Object.prototype.hasOwnProperty,Hn={current:null},el={key:!0,ref:!0,__self:!0,__source:!0};function tl(e,t,i){var r,s={},n=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(n=""+t.key),t)Zc.call(t,r)&&!el.hasOwnProperty(r)&&(s[r]=t[r]);var c=arguments.length-2;if(c===1)s.children=i;else if(1<c){for(var l=Array(c),p=0;p<c;p++)l[p]=arguments[p+2];s.children=l}if(e&&e.defaultProps)for(r in c=e.defaultProps,c)s[r]===void 0&&(s[r]=c[r]);return{$$typeof:sr,type:e,key:n,ref:o,props:s,_owner:Hn.current}}function cp(e,t){return{$$typeof:sr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Bn(e){return typeof e=="object"&&e!==null&&e.$$typeof===sr}function lp(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(i){return t[i]})}var Xc=/\/+/g;function kn(e,t){return typeof e=="object"&&e!==null&&e.key!=null?lp(""+e.key):t.toString(36)}function ws(e,t,i,r,s){var n=typeof e;(n==="undefined"||n==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(n){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case sr:case J0:o=!0}}if(o)return o=e,s=s(o),e=r===""?"."+kn(o,0):r,jc(s)?(i="",e!=null&&(i=e.replace(Xc,"$&/")+"/"),ws(s,t,i,"",function(p){return p})):s!=null&&(Bn(s)&&(s=cp(s,i+(!s.key||o&&o.key===s.key?"":(""+s.key).replace(Xc,"$&/")+"/")+e)),t.push(s)),1;if(o=0,r=r===""?".":r+":",jc(e))for(var c=0;c<e.length;c++){n=e[c];var l=r+kn(n,c);o+=ws(n,t,i,l,s)}else if(l=up(e),typeof l=="function")for(e=l.call(e),c=0;!(n=e.next()).done;)n=n.value,l=r+kn(n,c++),o+=ws(n,t,i,l,s);else if(n==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function Ds(e,t,i){if(e==null)return e;var r=[],s=0;return ws(e,r,"","",function(n){return t.call(i,n,s++)}),r}function dp(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(i){(e._status===0||e._status===-1)&&(e._status=1,e._result=i)},function(i){(e._status===0||e._status===-1)&&(e._status=2,e._result=i)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Ae={current:null},ks={transition:null},hp={ReactCurrentDispatcher:Ae,ReactCurrentBatchConfig:ks,ReactCurrentOwner:Hn};V.Children={map:Ds,forEach:function(e,t,i){Ds(e,function(){t.apply(this,arguments)},i)},count:function(e){var t=0;return Ds(e,function(){t++}),t},toArray:function(e){return Ds(e,function(t){return t})||[]},only:function(e){if(!Bn(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};V.Component=Ti;V.Fragment=Z0;V.Profiler=tp;V.PureComponent=Pn;V.StrictMode=ep;V.Suspense=ap;V.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=hp;V.cloneElement=function(e,t,i){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Qc({},e.props),s=e.key,n=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(n=t.ref,o=Hn.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(l in t)Zc.call(t,l)&&!el.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&c!==void 0?c[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=i;else if(1<l){c=Array(l);for(var p=0;p<l;p++)c[p]=arguments[p+2];r.children=c}return{$$typeof:sr,type:e.type,key:s,ref:n,props:r,_owner:o}};V.createContext=function(e){return e={$$typeof:rp,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:ip,_context:e},e.Consumer=e};V.createElement=tl;V.createFactory=function(e){var t=tl.bind(null,e);return t.type=e,t};V.createRef=function(){return{current:null}};V.forwardRef=function(e){return{$$typeof:sp,render:e}};V.isValidElement=Bn;V.lazy=function(e){return{$$typeof:op,_payload:{_status:-1,_result:e},_init:dp}};V.memo=function(e,t){return{$$typeof:np,type:e,compare:t===void 0?null:t}};V.startTransition=function(e){var t=ks.transition;ks.transition={};try{e()}finally{ks.transition=t}};V.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};V.useCallback=function(e,t){return Ae.current.useCallback(e,t)};V.useContext=function(e){return Ae.current.useContext(e)};V.useDebugValue=function(){};V.useDeferredValue=function(e){return Ae.current.useDeferredValue(e)};V.useEffect=function(e,t){return Ae.current.useEffect(e,t)};V.useId=function(){return Ae.current.useId()};V.useImperativeHandle=function(e,t,i){return Ae.current.useImperativeHandle(e,t,i)};V.useInsertionEffect=function(e,t){return Ae.current.useInsertionEffect(e,t)};V.useLayoutEffect=function(e,t){return Ae.current.useLayoutEffect(e,t)};V.useMemo=function(e,t){return Ae.current.useMemo(e,t)};V.useReducer=function(e,t,i){return Ae.current.useReducer(e,t,i)};V.useRef=function(e){return Ae.current.useRef(e)};V.useState=function(e){return Ae.current.useState(e)};V.useSyncExternalStore=function(e,t,i){return Ae.current.useSyncExternalStore(e,t,i)};V.useTransition=function(){return Ae.current.useTransition()};V.version="18.2.0"});var rl=ts((Y,Ps)=>{"use strict";process.env.NODE_ENV!=="production"&&function(){"use strict";typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e="18.2.0",t=Symbol.for("react.element"),i=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),c=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),x=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),I=Symbol.for("react.offscreen"),O=Symbol.iterator,H="@@iterator";function Q(u){if(u===null||typeof u!="object")return null;var m=O&&u[O]||u[H];return typeof m=="function"?m:null}var xe={current:null},te={transition:null},X={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},fe={current:null},We={},Pe=null;function eu(u){Pe=u}We.setExtraStackFrame=function(u){Pe=u},We.getCurrentStack=null,We.getStackAddendum=function(){var u="";Pe&&(u+=Pe);var m=We.getCurrentStack;return m&&(u+=m()||""),u};var bh=!1,Eh=!1,gh=!1,Th=!1,_h=!1,ei={ReactCurrentDispatcher:xe,ReactCurrentBatchConfig:te,ReactCurrentOwner:fe};ei.ReactDebugCurrentFrame=We,ei.ReactCurrentActQueue=X;function ti(u){{for(var m=arguments.length,g=new Array(m>1?m-1:0),A=1;A<m;A++)g[A-1]=arguments[A];tu("warn",u,g)}}function j(u){{for(var m=arguments.length,g=new Array(m>1?m-1:0),A=1;A<m;A++)g[A-1]=arguments[A];tu("error",u,g)}}function tu(u,m,g){{var A=ei.ReactDebugCurrentFrame,R=A.getStackAddendum();R!==""&&(m+="%s",g=g.concat([R]));var B=g.map(function(k){return String(k)});B.unshift("Warning: "+m),Function.prototype.apply.call(console[u],console,B)}}var iu={};function Sa(u,m){{var g=u.constructor,A=g&&(g.displayName||g.name)||"ReactClass",R=A+"."+m;if(iu[R])return;j("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",m,A),iu[R]=!0}}var ru={isMounted:function(u){return!1},enqueueForceUpdate:function(u,m,g){Sa(u,"forceUpdate")},enqueueReplaceState:function(u,m,g,A){Sa(u,"replaceState")},enqueueSetState:function(u,m,g,A){Sa(u,"setState")}},tt=Object.assign,Ia={};Object.freeze(Ia);function kt(u,m,g){this.props=u,this.context=m,this.refs=Ia,this.updater=g||ru}kt.prototype.isReactComponent={},kt.prototype.setState=function(u,m){if(typeof u!="object"&&typeof u!="function"&&u!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,u,m,"setState")},kt.prototype.forceUpdate=function(u){this.updater.enqueueForceUpdate(this,u,"forceUpdate")};{var Ra={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},xh=function(u,m){Object.defineProperty(kt.prototype,u,{get:function(){ti("%s(...) is deprecated in plain JavaScript React classes. %s",m[0],m[1])}})};for(var La in Ra)Ra.hasOwnProperty(La)&&xh(La,Ra[La])}function su(){}su.prototype=kt.prototype;function Oa(u,m,g){this.props=u,this.context=m,this.refs=Ia,this.updater=g||ru}var Da=Oa.prototype=new su;Da.constructor=Oa,tt(Da,kt.prototype),Da.isPureReactComponent=!0;function qh(){var u={current:null};return Object.seal(u),u}var Ah=Array.isArray;function Vr(u){return Ah(u)}function vh(u){{var m=typeof Symbol=="function"&&Symbol.toStringTag,g=m&&u[Symbol.toStringTag]||u.constructor.name||"Object";return g}}function yh(u){try{return au(u),!1}catch(m){return!0}}function au(u){return""+u}function Yr(u){if(yh(u))return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",vh(u)),au(u)}function Ch(u,m,g){var A=u.displayName;if(A)return A;var R=m.displayName||m.name||"";return R!==""?g+"("+R+")":g}function nu(u){return u.displayName||"Context"}function ft(u){if(u==null)return null;if(typeof u.tag=="number"&&j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof u=="function")return u.displayName||u.name||null;if(typeof u=="string")return u;switch(u){case r:return"Fragment";case i:return"Portal";case n:return"Profiler";case s:return"StrictMode";case p:return"Suspense";case b:return"SuspenseList"}if(typeof u=="object")switch(u.$$typeof){case c:var m=u;return nu(m)+".Consumer";case o:var g=u;return nu(g._context)+".Provider";case l:return Ch(u,u.render,"ForwardRef");case x:var A=u.displayName||null;return A!==null?A:ft(u.type)||"Memo";case N:{var R=u,B=R._payload,k=R._init;try{return ft(k(B))}catch(U){return null}}}return null}var Mi=Object.prototype.hasOwnProperty,ou={key:!0,ref:!0,__self:!0,__source:!0},uu,cu,wa;wa={};function lu(u){if(Mi.call(u,"ref")){var m=Object.getOwnPropertyDescriptor(u,"ref").get;if(m&&m.isReactWarning)return!1}return u.ref!==void 0}function du(u){if(Mi.call(u,"key")){var m=Object.getOwnPropertyDescriptor(u,"key").get;if(m&&m.isReactWarning)return!1}return u.key!==void 0}function Nh(u,m){var g=function(){uu||(uu=!0,j("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",m))};g.isReactWarning=!0,Object.defineProperty(u,"key",{get:g,configurable:!0})}function Sh(u,m){var g=function(){cu||(cu=!0,j("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",m))};g.isReactWarning=!0,Object.defineProperty(u,"ref",{get:g,configurable:!0})}function Ih(u){if(typeof u.ref=="string"&&fe.current&&u.__self&&fe.current.stateNode!==u.__self){var m=ft(fe.current.type);wa[m]||(j('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',m,u.ref),wa[m]=!0)}}var ka=function(u,m,g,A,R,B,k){var U={$$typeof:t,type:u,key:m,ref:g,props:k,_owner:B};return U._store={},Object.defineProperty(U._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(U,"_self",{configurable:!1,enumerable:!1,writable:!1,value:A}),Object.defineProperty(U,"_source",{configurable:!1,enumerable:!1,writable:!1,value:R}),Object.freeze&&(Object.freeze(U.props),Object.freeze(U)),U};function Rh(u,m,g){var A,R={},B=null,k=null,U=null,W=null;if(m!=null){lu(m)&&(k=m.ref,Ih(m)),du(m)&&(Yr(m.key),B=""+m.key),U=m.__self===void 0?null:m.__self,W=m.__source===void 0?null:m.__source;for(A in m)Mi.call(m,A)&&!ou.hasOwnProperty(A)&&(R[A]=m[A])}var J=arguments.length-2;if(J===1)R.children=g;else if(J>1){for(var ne=Array(J),oe=0;oe<J;oe++)ne[oe]=arguments[oe+2];Object.freeze&&Object.freeze(ne),R.children=ne}if(u&&u.defaultProps){var ce=u.defaultProps;for(A in ce)R[A]===void 0&&(R[A]=ce[A])}if(B||k){var de=typeof u=="function"?u.displayName||u.name||"Unknown":u;B&&Nh(R,de),k&&Sh(R,de)}return ka(u,B,k,U,W,fe.current,R)}function Lh(u,m){var g=ka(u.type,m,u.ref,u._self,u._source,u._owner,u.props);return g}function Oh(u,m,g){if(u==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+u+".");var A,R=tt({},u.props),B=u.key,k=u.ref,U=u._self,W=u._source,J=u._owner;if(m!=null){lu(m)&&(k=m.ref,J=fe.current),du(m)&&(Yr(m.key),B=""+m.key);var ne;u.type&&u.type.defaultProps&&(ne=u.type.defaultProps);for(A in m)Mi.call(m,A)&&!ou.hasOwnProperty(A)&&(m[A]===void 0&&ne!==void 0?R[A]=ne[A]:R[A]=m[A])}var oe=arguments.length-2;if(oe===1)R.children=g;else if(oe>1){for(var ce=Array(oe),de=0;de<oe;de++)ce[de]=arguments[de+2];R.children=ce}return ka(u.type,B,k,U,W,J,R)}function ii(u){return typeof u=="object"&&u!==null&&u.$$typeof===t}var hu=".",Dh=":";function wh(u){var m=/[=:]/g,g={"=":"=0",":":"=2"},A=u.replace(m,function(R){return g[R]});return"$"+A}var pu=!1,kh=/\/+/g;function fu(u){return u.replace(kh,"$&/")}function Pa(u,m){return typeof u=="object"&&u!==null&&u.key!=null?(Yr(u.key),wh(""+u.key)):m.toString(36)}function Gr(u,m,g,A,R){var B=typeof u;(B==="undefined"||B==="boolean")&&(u=null);var k=!1;if(u===null)k=!0;else switch(B){case"string":case"number":k=!0;break;case"object":switch(u.$$typeof){case t:case i:k=!0}}if(k){var U=u,W=R(U),J=A===""?hu+Pa(U,0):A;if(Vr(W)){var ne="";J!=null&&(ne=fu(J)+"/"),Gr(W,m,ne,"",function(S0){return S0})}else W!=null&&(ii(W)&&(W.key&&(!U||U.key!==W.key)&&Yr(W.key),W=Lh(W,g+(W.key&&(!U||U.key!==W.key)?fu(""+W.key)+"/":"")+J)),m.push(W));return 1}var oe,ce,de=0,Ee=A===""?hu:A+Dh;if(Vr(u))for(var Zr=0;Zr<u.length;Zr++)oe=u[Zr],ce=Ee+Pa(oe,Zr),de+=Gr(oe,m,g,ce,R);else{var Ga=Q(u);if(typeof Ga=="function"){var Hu=u;Ga===Hu.entries&&(pu||ti("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),pu=!0);for(var C0=Ga.call(Hu),Bu,N0=0;!(Bu=C0.next()).done;)oe=Bu.value,ce=Ee+Pa(oe,N0++),de+=Gr(oe,m,g,ce,R)}else if(B==="object"){var Uu=String(u);throw new Error("Objects are not valid as a React child (found: "+(Uu==="[object Object]"?"object with keys {"+Object.keys(u).join(", ")+"}":Uu)+"). If you meant to render a collection of children, use an array instead.")}}return de}function Wr(u,m,g){if(u==null)return u;var A=[],R=0;return Gr(u,A,"","",function(B){return m.call(g,B,R++)}),A}function Ph(u){var m=0;return Wr(u,function(){m++}),m}function Mh(u,m,g){Wr(u,function(){m.apply(this,arguments)},g)}function Hh(u){return Wr(u,function(m){return m})||[]}function Bh(u){if(!ii(u))throw new Error("React.Children.only expected to receive a single React element child.");return u}function Uh(u){var m={$$typeof:c,_currentValue:u,_currentValue2:u,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};m.Provider={$$typeof:o,_context:m};var g=!1,A=!1,R=!1;{var B={$$typeof:c,_context:m};Object.defineProperties(B,{Provider:{get:function(){return A||(A=!0,j("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),m.Provider},set:function(k){m.Provider=k}},_currentValue:{get:function(){return m._currentValue},set:function(k){m._currentValue=k}},_currentValue2:{get:function(){return m._currentValue2},set:function(k){m._currentValue2=k}},_threadCount:{get:function(){return m._threadCount},set:function(k){m._threadCount=k}},Consumer:{get:function(){return g||(g=!0,j("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),m.Consumer}},displayName:{get:function(){return m.displayName},set:function(k){R||(ti("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",k),R=!0)}}}),m.Consumer=B}return m._currentRenderer=null,m._currentRenderer2=null,m}var Hi=-1,Ma=0,mu=1,Fh=2;function $h(u){if(u._status===Hi){var m=u._result,g=m();if(g.then(function(B){if(u._status===Ma||u._status===Hi){var k=u;k._status=mu,k._result=B}},function(B){if(u._status===Ma||u._status===Hi){var k=u;k._status=Fh,k._result=B}}),u._status===Hi){var A=u;A._status=Ma,A._result=g}}if(u._status===mu){var R=u._result;return R===void 0&&j(`lazy: Expected the result of a dynamic import() call. Instead received: %s
2
+
3
+ Your code should look like:
4
+ const MyComponent = lazy(() => import('./MyComponent'))
5
+
6
+ Did you accidentally put curly braces around the import?`,R),"default"in R||j(`lazy: Expected the result of a dynamic import() call. Instead received: %s
7
+
8
+ Your code should look like:
9
+ const MyComponent = lazy(() => import('./MyComponent'))`,R),R.default}else throw u._result}function Vh(u){var m={_status:Hi,_result:u},g={$$typeof:N,_payload:m,_init:$h};{var A,R;Object.defineProperties(g,{defaultProps:{configurable:!0,get:function(){return A},set:function(B){j("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),A=B,Object.defineProperty(g,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return R},set:function(B){j("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),R=B,Object.defineProperty(g,"propTypes",{enumerable:!0})}}})}return g}function Yh(u){u!=null&&u.$$typeof===x?j("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof u!="function"?j("forwardRef requires a render function but was given %s.",u===null?"null":typeof u):u.length!==0&&u.length!==2&&j("forwardRef render functions accept exactly two parameters: props and ref. %s",u.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),u!=null&&(u.defaultProps!=null||u.propTypes!=null)&&j("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var m={$$typeof:l,render:u};{var g;Object.defineProperty(m,"displayName",{enumerable:!1,configurable:!0,get:function(){return g},set:function(A){g=A,!u.name&&!u.displayName&&(u.displayName=A)}})}return m}var bu;bu=Symbol.for("react.module.reference");function Eu(u){return!!(typeof u=="string"||typeof u=="function"||u===r||u===n||_h||u===s||u===p||u===b||Th||u===I||bh||Eh||gh||typeof u=="object"&&u!==null&&(u.$$typeof===N||u.$$typeof===x||u.$$typeof===o||u.$$typeof===c||u.$$typeof===l||u.$$typeof===bu||u.getModuleId!==void 0))}function Gh(u,m){Eu(u)||j("memo: The first argument must be a component. Instead received: %s",u===null?"null":typeof u);var g={$$typeof:x,type:u,compare:m===void 0?null:m};{var A;Object.defineProperty(g,"displayName",{enumerable:!1,configurable:!0,get:function(){return A},set:function(R){A=R,!u.name&&!u.displayName&&(u.displayName=R)}})}return g}function qe(){var u=xe.current;return u===null&&j(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
10
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
11
+ 2. You might be breaking the Rules of Hooks
12
+ 3. You might have more than one copy of React in the same app
13
+ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),u}function Wh(u){var m=qe();if(u._context!==void 0){var g=u._context;g.Consumer===u?j("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):g.Provider===u&&j("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return m.useContext(u)}function jh(u){var m=qe();return m.useState(u)}function Xh(u,m,g){var A=qe();return A.useReducer(u,m,g)}function Kh(u){var m=qe();return m.useRef(u)}function Qh(u,m){var g=qe();return g.useEffect(u,m)}function zh(u,m){var g=qe();return g.useInsertionEffect(u,m)}function Jh(u,m){var g=qe();return g.useLayoutEffect(u,m)}function Zh(u,m){var g=qe();return g.useCallback(u,m)}function e0(u,m){var g=qe();return g.useMemo(u,m)}function t0(u,m,g){var A=qe();return A.useImperativeHandle(u,m,g)}function i0(u,m){{var g=qe();return g.useDebugValue(u,m)}}function r0(){var u=qe();return u.useTransition()}function s0(u){var m=qe();return m.useDeferredValue(u)}function a0(){var u=qe();return u.useId()}function n0(u,m,g){var A=qe();return A.useSyncExternalStore(u,m,g)}var Bi=0,gu,Tu,_u,xu,qu,Au,vu;function yu(){}yu.__reactDisabledLog=!0;function o0(){{if(Bi===0){gu=console.log,Tu=console.info,_u=console.warn,xu=console.error,qu=console.group,Au=console.groupCollapsed,vu=console.groupEnd;var u={configurable:!0,enumerable:!0,value:yu,writable:!0};Object.defineProperties(console,{info:u,log:u,warn:u,error:u,group:u,groupCollapsed:u,groupEnd:u})}Bi++}}function u0(){{if(Bi--,Bi===0){var u={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:tt({},u,{value:gu}),info:tt({},u,{value:Tu}),warn:tt({},u,{value:_u}),error:tt({},u,{value:xu}),group:tt({},u,{value:qu}),groupCollapsed:tt({},u,{value:Au}),groupEnd:tt({},u,{value:vu})})}Bi<0&&j("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ha=ei.ReactCurrentDispatcher,Ba;function jr(u,m,g){{if(Ba===void 0)try{throw Error()}catch(R){var A=R.stack.trim().match(/\n( *(at )?)/);Ba=A&&A[1]||""}return`
14
+ `+Ba+u}}var Ua=!1,Xr;{var c0=typeof WeakMap=="function"?WeakMap:Map;Xr=new c0}function Cu(u,m){if(!u||Ua)return"";{var g=Xr.get(u);if(g!==void 0)return g}var A;Ua=!0;var R=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var B;B=Ha.current,Ha.current=null,o0();try{if(m){var k=function(){throw Error()};if(Object.defineProperty(k.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(k,[])}catch(Ee){A=Ee}Reflect.construct(u,[],k)}else{try{k.call()}catch(Ee){A=Ee}u.call(k.prototype)}}else{try{throw Error()}catch(Ee){A=Ee}u()}}catch(Ee){if(Ee&&A&&typeof Ee.stack=="string"){for(var U=Ee.stack.split(`
15
+ `),W=A.stack.split(`
16
+ `),J=U.length-1,ne=W.length-1;J>=1&&ne>=0&&U[J]!==W[ne];)ne--;for(;J>=1&&ne>=0;J--,ne--)if(U[J]!==W[ne]){if(J!==1||ne!==1)do if(J--,ne--,ne<0||U[J]!==W[ne]){var oe=`
17
+ `+U[J].replace(" at new "," at ");return u.displayName&&oe.includes("<anonymous>")&&(oe=oe.replace("<anonymous>",u.displayName)),typeof u=="function"&&Xr.set(u,oe),oe}while(J>=1&&ne>=0);break}}}finally{Ua=!1,Ha.current=B,u0(),Error.prepareStackTrace=R}var ce=u?u.displayName||u.name:"",de=ce?jr(ce):"";return typeof u=="function"&&Xr.set(u,de),de}function l0(u,m,g){return Cu(u,!1)}function d0(u){var m=u.prototype;return!!(m&&m.isReactComponent)}function Kr(u,m,g){if(u==null)return"";if(typeof u=="function")return Cu(u,d0(u));if(typeof u=="string")return jr(u);switch(u){case p:return jr("Suspense");case b:return jr("SuspenseList")}if(typeof u=="object")switch(u.$$typeof){case l:return l0(u.render);case x:return Kr(u.type,m,g);case N:{var A=u,R=A._payload,B=A._init;try{return Kr(B(R),m,g)}catch(k){}}}return""}var Nu={},Su=ei.ReactDebugCurrentFrame;function Qr(u){if(u){var m=u._owner,g=Kr(u.type,u._source,m?m.type:null);Su.setExtraStackFrame(g)}else Su.setExtraStackFrame(null)}function h0(u,m,g,A,R){{var B=Function.call.bind(Mi);for(var k in u)if(B(u,k)){var U=void 0;try{if(typeof u[k]!="function"){var W=Error((A||"React class")+": "+g+" type `"+k+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof u[k]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw W.name="Invariant Violation",W}U=u[k](m,k,A,g,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(J){U=J}U&&!(U instanceof Error)&&(Qr(R),j("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",A||"React class",g,k,typeof U),Qr(null)),U instanceof Error&&!(U.message in Nu)&&(Nu[U.message]=!0,Qr(R),j("Failed %s type: %s",g,U.message),Qr(null))}}}function ri(u){if(u){var m=u._owner,g=Kr(u.type,u._source,m?m.type:null);eu(g)}else eu(null)}var Fa;Fa=!1;function Iu(){if(fe.current){var u=ft(fe.current.type);if(u)return`
18
+
19
+ Check the render method of \``+u+"`."}return""}function p0(u){if(u!==void 0){var m=u.fileName.replace(/^.*[\\\/]/,""),g=u.lineNumber;return`
20
+
21
+ Check your code at `+m+":"+g+"."}return""}function f0(u){return u!=null?p0(u.__source):""}var Ru={};function m0(u){var m=Iu();if(!m){var g=typeof u=="string"?u:u.displayName||u.name;g&&(m=`
22
+
23
+ Check the top-level render call using <`+g+">.")}return m}function Lu(u,m){if(!(!u._store||u._store.validated||u.key!=null)){u._store.validated=!0;var g=m0(m);if(!Ru[g]){Ru[g]=!0;var A="";u&&u._owner&&u._owner!==fe.current&&(A=" It was passed a child from "+ft(u._owner.type)+"."),ri(u),j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',g,A),ri(null)}}}function Ou(u,m){if(typeof u=="object"){if(Vr(u))for(var g=0;g<u.length;g++){var A=u[g];ii(A)&&Lu(A,m)}else if(ii(u))u._store&&(u._store.validated=!0);else if(u){var R=Q(u);if(typeof R=="function"&&R!==u.entries)for(var B=R.call(u),k;!(k=B.next()).done;)ii(k.value)&&Lu(k.value,m)}}}function Du(u){{var m=u.type;if(m==null||typeof m=="string")return;var g;if(typeof m=="function")g=m.propTypes;else if(typeof m=="object"&&(m.$$typeof===l||m.$$typeof===x))g=m.propTypes;else return;if(g){var A=ft(m);h0(g,u.props,"prop",A,u)}else if(m.PropTypes!==void 0&&!Fa){Fa=!0;var R=ft(m);j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",R||"Unknown")}typeof m.getDefaultProps=="function"&&!m.getDefaultProps.isReactClassApproved&&j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function b0(u){{for(var m=Object.keys(u.props),g=0;g<m.length;g++){var A=m[g];if(A!=="children"&&A!=="key"){ri(u),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",A),ri(null);break}}u.ref!==null&&(ri(u),j("Invalid attribute `ref` supplied to `React.Fragment`."),ri(null))}}function wu(u,m,g){var A=Eu(u);if(!A){var R="";(u===void 0||typeof u=="object"&&u!==null&&Object.keys(u).length===0)&&(R+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var B=f0(m);B?R+=B:R+=Iu();var k;u===null?k="null":Vr(u)?k="array":u!==void 0&&u.$$typeof===t?(k="<"+(ft(u.type)||"Unknown")+" />",R=" Did you accidentally export a JSX literal instead of a component?"):k=typeof u,j("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",k,R)}var U=Rh.apply(this,arguments);if(U==null)return U;if(A)for(var W=2;W<arguments.length;W++)Ou(arguments[W],u);return u===r?b0(U):Du(U),U}var ku=!1;function E0(u){var m=wu.bind(null,u);return m.type=u,ku||(ku=!0,ti("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(m,"type",{enumerable:!1,get:function(){return ti("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:u}),u}}),m}function g0(u,m,g){for(var A=Oh.apply(this,arguments),R=2;R<arguments.length;R++)Ou(arguments[R],A.type);return Du(A),A}function T0(u,m){var g=te.transition;te.transition={};var A=te.transition;te.transition._updatedFibers=new Set;try{u()}finally{if(te.transition=g,g===null&&A._updatedFibers){var R=A._updatedFibers.size;R>10&&ti("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),A._updatedFibers.clear()}}}var Pu=!1,zr=null;function _0(u){if(zr===null)try{var m=("require"+Math.random()).slice(0,7),g=Ps&&Ps[m];zr=g.call(Ps,"timers").setImmediate}catch(A){zr=function(R){Pu===!1&&(Pu=!0,typeof MessageChannel=="undefined"&&j("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var B=new MessageChannel;B.port1.onmessage=R,B.port2.postMessage(void 0)}}return zr(u)}var si=0,Mu=!1;function x0(u){{var m=si;si++,X.current===null&&(X.current=[]);var g=X.isBatchingLegacy,A;try{if(X.isBatchingLegacy=!0,A=u(),!g&&X.didScheduleLegacyUpdate){var R=X.current;R!==null&&(X.didScheduleLegacyUpdate=!1,Ya(R))}}catch(ce){throw Jr(m),ce}finally{X.isBatchingLegacy=g}if(A!==null&&typeof A=="object"&&typeof A.then=="function"){var B=A,k=!1,U={then:function(ce,de){k=!0,B.then(function(Ee){Jr(m),si===0?$a(Ee,ce,de):ce(Ee)},function(Ee){Jr(m),de(Ee)})}};return!Mu&&typeof Promise!="undefined"&&Promise.resolve().then(function(){}).then(function(){k||(Mu=!0,j("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),U}else{var W=A;if(Jr(m),si===0){var J=X.current;J!==null&&(Ya(J),X.current=null);var ne={then:function(ce,de){X.current===null?(X.current=[],$a(W,ce,de)):ce(W)}};return ne}else{var oe={then:function(ce,de){ce(W)}};return oe}}}}function Jr(u){u!==si-1&&j("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),si=u}function $a(u,m,g){{var A=X.current;if(A!==null)try{Ya(A),_0(function(){A.length===0?(X.current=null,m(u)):$a(u,m,g)})}catch(R){g(R)}else m(u)}}var Va=!1;function Ya(u){if(!Va){Va=!0;var m=0;try{for(;m<u.length;m++){var g=u[m];do g=g(!0);while(g!==null)}u.length=0}catch(A){throw u=u.slice(m+1),A}finally{Va=!1}}}var q0=wu,A0=g0,v0=E0,y0={map:Wr,forEach:Mh,count:Ph,toArray:Hh,only:Bh};Y.Children=y0,Y.Component=kt,Y.Fragment=r,Y.Profiler=n,Y.PureComponent=Oa,Y.StrictMode=s,Y.Suspense=p,Y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ei,Y.cloneElement=A0,Y.createContext=Uh,Y.createElement=q0,Y.createFactory=v0,Y.createRef=qh,Y.forwardRef=Yh,Y.isValidElement=ii,Y.lazy=Vh,Y.memo=Gh,Y.startTransition=T0,Y.unstable_act=x0,Y.useCallback=Zh,Y.useContext=Wh,Y.useDebugValue=i0,Y.useDeferredValue=s0,Y.useEffect=Qh,Y.useId=a0,Y.useImperativeHandle=t0,Y.useInsertionEffect=zh,Y.useLayoutEffect=Jh,Y.useMemo=e0,Y.useReducer=Xh,Y.useRef=Kh,Y.useState=jh,Y.useSyncExternalStore=n0,Y.useTransition=r0,Y.version=e,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()});var sl=ts((Y2,Un)=>{"use strict";process.env.NODE_ENV==="production"?Un.exports=il():Un.exports=rl()});var It=ts((GN,Yl)=>{Yl.exports={trueFunc:function(){return!0},falseFunc:function(){return!1}}});var Gu={};var Wu={};var ju={};var Xu={};var Ku={};var Qu={};var zu={};var Ju={};var Zu={};var ec={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 ai=class{constructor({mapping:t,correctResponse:i,cardinality:r,baseType:s,identifier:n}){this._basetype="string";this._mapping=t,this._correctResponse=i,this._cardinality=r,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 ni=class{constructor(){this.value=0}};var ue=e=>t=>typeof t=="function"?((i,r)=>(customElements.define(i,r),r))(e,t):((i,r)=>{let{kind:s,elements:n}=r;return{kind:s,elements:n,finisher(o){customElements.define(i,o)}}})(e,t);var k0=(e,t)=>t.kind==="method"&&t.descriptor&&!("value"in t.descriptor)?ie(D({},t),{finisher(i){i.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(i){i.createProperty(t.key,e)}};function C(e){return(t,i)=>i!==void 0?((r,s,n)=>{s.constructor.createProperty(n,r)})(e,t,i):k0(e,t)}function is(e){return C(ie(D({},e),{state:!0}))}var it=({finisher:e,descriptor:t})=>(i,r)=>{var s;if(r===void 0){let n=(s=i.originalKey)!==null&&s!==void 0?s:i.key,o=t!=null?{kind:"method",placement:"prototype",key:n,descriptor:t(i.key)}:ie(D({},i),{key:n});return e!=null&&(o.finisher=function(c){e(c,n)}),o}{let n=i.constructor;t!==void 0&&Object.defineProperty(i,r,t(r)),e==null||e(n,r)}};function oi(e,t){return it({descriptor:i=>{let r={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 i=="symbol"?Symbol():"__"+i;r.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 r}})}var ja,Fg=((ja=globalThis.HTMLSlotElement)===null||ja===void 0?void 0:ja.prototype.assignedElements)!=null?(e,t)=>e.assignedElements(t):(e,t)=>e.assignedNodes(t).filter(i=>i.nodeType===Node.ELEMENT_NODE);var tc=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 ic=new WeakMap,Fi=e=>{let t=ic.get(e);return t===void 0&&ic.set(e,t=new Map),t},P0=class{constructor(){this.__shadowRootMode=null,this.__shadowRoot=null,this.__internals=null}get attributes(){return Array.from(Fi(this)).map(([t,i])=>({name:t,value:i}))}get shadowRoot(){return this.__shadowRootMode==="closed"?null:this.__shadowRoot}setAttribute(t,i){Fi(this).set(t,String(i))}removeAttribute(t){Fi(this).delete(t)}hasAttribute(t){return Fi(this).has(t)}attachShadow(t){let i={host:this};return this.__shadowRootMode=t.mode,t&&t.mode==="open"&&(this.__shadowRoot=i),i}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 tc(this);return this.__internals=t,t}getAttribute(t){let i=Fi(this).get(t);return i!=null?i:null}};var M0=class extends P0{},rc=M0;var H0=class{constructor(){this.__definitions=new Map}define(t,i){var r;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:i,observedAttributes:(r=i.observedAttributes)!=null?r:[]})}get(t){let i=this.__definitions.get(t);return i==null?void 0:i.ctor}},B0=H0;var sc=new B0;var $i=globalThis,rs=$i.ShadowRoot&&($i.ShadyCSS===void 0||$i.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Xa=Symbol(),ac=new WeakMap,Vi=class{constructor(t,i,r){if(this._$cssResult$=!0,r!==Xa)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=i}get styleSheet(){let t=this.o,i=this.t;if(rs&&t===void 0){let r=i!==void 0&&i.length===1;r&&(t=ac.get(i)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&ac.set(i,t))}return t}toString(){return this.cssText}},nc=e=>new Vi(typeof e=="string"?e:e+"",void 0,Xa),F=(e,...t)=>{let i=e.length===1?e[0]:t.reduce((r,s,n)=>r+(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.")})(s)+e[n+1],e[0]);return new Vi(i,e,Xa)},Ka=(e,t)=>{rs?e.adoptedStyleSheets=t.map(i=>i instanceof CSSStyleSheet?i:i.styleSheet):t.forEach(i=>{let r=document.createElement("style"),s=$i.litNonce;s!==void 0&&r.setAttribute("nonce",s),r.textContent=i.cssText,e.appendChild(r)})},ss=rs||$i.CSSStyleSheet===void 0?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let i="";for(let r of t.cssRules)i+=r.cssText;return nc(i)})(e):e;var oc,Qa,ui=globalThis;(oc=ui.customElements)!==null&&oc!==void 0||(ui.customElements=sc);var uc=ui.trustedTypes,U0=uc?uc.emptyScript:"",cc=ui.reactiveElementPolyfillSupport,Ja={toAttribute(e,t){switch(t){case Boolean:e=e?U0:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let i=e;switch(t){case Boolean:i=e!==null;break;case Number:i=e===null?null:Number(e);break;case Object:case Array:try{i=JSON.parse(e)}catch(r){i=null}}return i}},dc=(e,t)=>t!==e&&(t==t||e==e),za={attribute:!0,type:String,converter:Ja,reflect:!1,hasChanged:dc},lc,rt=class extends((lc=globalThis.HTMLElement)!=null?lc:rc){constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var i;this.finalize(),((i=this.h)!==null&&i!==void 0?i:this.h=[]).push(t)}static get observedAttributes(){this.finalize();let t=[];return this.elementProperties.forEach((i,r)=>{let s=this._$Ep(r,i);s!==void 0&&(this._$Ev.set(s,r),t.push(s))}),t}static createProperty(t,i=za){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(t,i),!i.noAccessor&&!this.prototype.hasOwnProperty(t)){let r=typeof t=="symbol"?Symbol():"__"+t,s=this.getPropertyDescriptor(t,r,i);s!==void 0&&Object.defineProperty(this.prototype,t,s)}}static getPropertyDescriptor(t,i,r){return{get(){return this[i]},set(s){let n=this[t];this[i]=s,this.requestUpdate(t,n,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||za}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 i=this.properties,r=[...Object.getOwnPropertyNames(i),...Object.getOwnPropertySymbols(i)];for(let s of r)this.createProperty(s,i[s])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){let i=[];if(Array.isArray(t)){let r=new Set(t.flat(1/0).reverse());for(let s of r)i.unshift(ss(s))}else t!==void 0&&i.push(ss(t));return i}static _$Ep(t,i){let r=i.attribute;return r===!1?void 0:typeof r=="string"?r:typeof t=="string"?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise(i=>this.enableUpdating=i),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(i=>i(this))}addController(t){var i,r;((i=this._$ES)!==null&&i!==void 0?i:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((r=t.hostConnected)===null||r===void 0||r.call(t))}removeController(t){var i;(i=this._$ES)===null||i===void 0||i.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,i)=>{this.hasOwnProperty(i)&&(this._$Ei.set(i,this[i]),delete this[i])})}createRenderRoot(){var t;let i=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return Ka(i,this.constructor.elementStyles),i}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(i=>{var r;return(r=i.hostConnected)===null||r===void 0?void 0:r.call(i)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(i=>{var r;return(r=i.hostDisconnected)===null||r===void 0?void 0:r.call(i)})}attributeChangedCallback(t,i,r){this._$AK(t,r)}_$EO(t,i,r=za){var s;let n=this.constructor._$Ep(t,r);if(n!==void 0&&r.reflect===!0){let o=(((s=r.converter)===null||s===void 0?void 0:s.toAttribute)!==void 0?r.converter:Ja).toAttribute(i,r.type);this._$El=t,o==null?this.removeAttribute(n):this.setAttribute(n,o),this._$El=null}}_$AK(t,i){var r;let s=this.constructor,n=s._$Ev.get(t);if(n!==void 0&&this._$El!==n){let o=s.getPropertyOptions(n),c=typeof o.converter=="function"?{fromAttribute:o.converter}:((r=o.converter)===null||r===void 0?void 0:r.fromAttribute)!==void 0?o.converter:Ja;this._$El=n,this[n]=c.fromAttribute(i,o.type),this._$El=null}}requestUpdate(t,i,r){let s=!0;t!==void 0&&(((r=r||this.constructor.getPropertyOptions(t)).hasChanged||dc)(this[t],i)?(this._$AL.has(t)||this._$AL.set(t,i),r.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,r))):s=!1),!this.isUpdatePending&&s&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(i){Promise.reject(i)}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((s,n)=>this[n]=s),this._$Ei=void 0);let i=!1,r=this._$AL;try{i=this.shouldUpdate(r),i?(this.willUpdate(r),(t=this._$ES)===null||t===void 0||t.forEach(s=>{var n;return(n=s.hostUpdate)===null||n===void 0?void 0:n.call(s)}),this.update(r)):this._$Ek()}catch(s){throw i=!1,this._$Ek(),s}i&&this._$AE(r)}willUpdate(t){}_$AE(t){var i;(i=this._$ES)===null||i===void 0||i.forEach(r=>{var s;return(s=r.hostUpdated)===null||s===void 0?void 0:s.call(r)}),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((i,r)=>this._$EO(r,this[r],i)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};rt.finalized=!0,rt.elementProperties=new Map,rt.elementStyles=[],rt.shadowRootOptions={mode:"open"},cc==null||cc({ReactiveElement:rt}),((Qa=ui.reactiveElementVersions)!==null&&Qa!==void 0?Qa:ui.reactiveElementVersions=[]).push("1.6.1");var Za,Gi=globalThis,li=Gi.trustedTypes,hc=li?li.createPolicy("lit-html",{createHTML:e=>e}):void 0,as="$lit$",st=`lit$${(Math.random()+"").slice(9)}$`,tn="?"+st,F0=`<${tn}>`,di=Gi.document===void 0?{createTreeWalker:()=>({})}:document,Wi=()=>di.createComment(""),ji=e=>e===null||typeof e!="object"&&typeof e!="function",Tc=Array.isArray,_c=e=>Tc(e)||typeof(e==null?void 0:e[Symbol.iterator])=="function",en=`[
24
+ \f\r]`,Yi=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,pc=/-->/g,fc=/>/g,Pt=RegExp(`>|${en}(?:([^\\s"'>=/]+)(${en}*=${en}*(?:[^
25
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),mc=/'/g,bc=/"/g,xc=/^(?:script|style|textarea|title)$/i,qc=e=>(t,...i)=>({_$litType$:e,strings:t,values:i}),y=qc(1),Ac=qc(2),at=Symbol.for("lit-noChange"),re=Symbol.for("lit-nothing"),Ec=new WeakMap,ci=di.createTreeWalker(di,129,null,!1),vc=(e,t)=>{let i=e.length-1,r=[],s,n=t===2?"<svg>":"",o=Yi;for(let l=0;l<i;l++){let p=e[l],b,x,N=-1,I=0;for(;I<p.length&&(o.lastIndex=I,x=o.exec(p),x!==null);)I=o.lastIndex,o===Yi?x[1]==="!--"?o=pc:x[1]!==void 0?o=fc:x[2]!==void 0?(xc.test(x[2])&&(s=RegExp("</"+x[2],"g")),o=Pt):x[3]!==void 0&&(o=Pt):o===Pt?x[0]===">"?(o=s!=null?s:Yi,N=-1):x[1]===void 0?N=-2:(N=o.lastIndex-x[2].length,b=x[1],o=x[3]===void 0?Pt:x[3]==='"'?bc:mc):o===bc||o===mc?o=Pt:o===pc||o===fc?o=Yi:(o=Pt,s=void 0);let O=o===Pt&&e[l+1].startsWith("/>")?" ":"";n+=o===Yi?p+F0:N>=0?(r.push(b),p.slice(0,N)+as+p.slice(N)+st+O):p+st+(N===-2?(r.push(void 0),l):O)}let c=n+(e[i]||"<?>")+(t===2?"</svg>":"");if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return[hc!==void 0?hc.createHTML(c):c,r]},Mt=class{constructor({strings:t,_$litType$:i},r){let s;this.parts=[];let n=0,o=0,c=t.length-1,l=this.parts,[p,b]=vc(t,i);if(this.el=Mt.createElement(p,r),ci.currentNode=this.el.content,i===2){let x=this.el.content,N=x.firstChild;N.remove(),x.append(...N.childNodes)}for(;(s=ci.nextNode())!==null&&l.length<c;){if(s.nodeType===1){if(s.hasAttributes()){let x=[];for(let N of s.getAttributeNames())if(N.endsWith(as)||N.startsWith(st)){let I=b[o++];if(x.push(N),I!==void 0){let O=s.getAttribute(I.toLowerCase()+as).split(st),H=/([.?@])?(.*)/.exec(I);l.push({type:1,index:n,name:H[2],strings:O,ctor:H[1]==="."?os:H[1]==="?"?us:H[1]==="@"?cs:Bt})}else l.push({type:6,index:n})}for(let N of x)s.removeAttribute(N)}if(xc.test(s.tagName)){let x=s.textContent.split(st),N=x.length-1;if(N>0){s.textContent=li?li.emptyScript:"";for(let I=0;I<N;I++)s.append(x[I],Wi()),ci.nextNode(),l.push({type:2,index:++n});s.append(x[N],Wi())}}}else if(s.nodeType===8)if(s.data===tn)l.push({type:2,index:n});else{let x=-1;for(;(x=s.data.indexOf(st,x+1))!==-1;)l.push({type:7,index:n}),x+=st.length-1}n++}}static createElement(t,i){let r=di.createElement("template");return r.innerHTML=t,r}};function Ht(e,t,i=e,r){var s,n,o,c;if(t===at)return t;let l=r!==void 0?(s=i._$Co)===null||s===void 0?void 0:s[r]:i._$Cl,p=ji(t)?void 0:t._$litDirective$;return(l==null?void 0:l.constructor)!==p&&((n=l==null?void 0:l._$AO)===null||n===void 0||n.call(l,!1),p===void 0?l=void 0:(l=new p(e),l._$AT(e,i,r)),r!==void 0?((o=(c=i)._$Co)!==null&&o!==void 0?o:c._$Co=[])[r]=l:i._$Cl=l),l!==void 0&&(t=Ht(e,l._$AS(e,t.values),l,r)),t}var ns=class{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;let{el:{content:r},parts:s}=this._$AD,n=((i=t==null?void 0:t.creationScope)!==null&&i!==void 0?i:di).importNode(r,!0);ci.currentNode=n;let o=ci.nextNode(),c=0,l=0,p=s[0];for(;p!==void 0;){if(c===p.index){let b;p.type===2?b=new bt(o,o.nextSibling,this,t):p.type===1?b=new p.ctor(o,p.name,p.strings,this,t):p.type===6&&(b=new ls(o,this,t)),this._$AV.push(b),p=s[++l]}c!==(p==null?void 0:p.index)&&(o=ci.nextNode(),c++)}return n}v(t){let i=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,i),i+=r.strings.length-2):r._$AI(t[i])),i++}},bt=class{constructor(t,i,r,s){var n;this.type=2,this._$AH=re,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=r,this.options=s,this._$Cp=(n=s==null?void 0:s.isConnected)===null||n===void 0||n}get _$AU(){var t,i;return(i=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&i!==void 0?i:this._$Cp}get parentNode(){let t=this._$AA.parentNode,i=this._$AM;return i!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=Ht(this,t,i),ji(t)?t===re||t==null||t===""?(this._$AH!==re&&this._$AR(),this._$AH=re):t!==this._$AH&&t!==at&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):_c(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!==re&&ji(this._$AH)?this._$AA.nextSibling.data=t:this.$(di.createTextNode(t)),this._$AH=t}g(t){var i;let{values:r,_$litType$:s}=t,n=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=Mt.createElement(s.h,this.options)),s);if(((i=this._$AH)===null||i===void 0?void 0:i._$AD)===n)this._$AH.v(r);else{let o=new ns(n,this),c=o.u(this.options);o.v(r),this.$(c),this._$AH=o}}_$AC(t){let i=Ec.get(t.strings);return i===void 0&&Ec.set(t.strings,i=new Mt(t)),i}T(t){Tc(this._$AH)||(this._$AH=[],this._$AR());let i=this._$AH,r,s=0;for(let n of t)s===i.length?i.push(r=new bt(this.k(Wi()),this.k(Wi()),this,this.options)):r=i[s],r._$AI(n),s++;s<i.length&&(this._$AR(r&&r._$AB.nextSibling,s),i.length=s)}_$AR(t=this._$AA.nextSibling,i){var r;for((r=this._$AP)===null||r===void 0||r.call(this,!1,!0,i);t&&t!==this._$AB;){let s=t.nextSibling;t.remove(),t=s}}setConnected(t){var i;this._$AM===void 0&&(this._$Cp=t,(i=this._$AP)===null||i===void 0||i.call(this,t))}},Bt=class{constructor(t,i,r,s,n){this.type=1,this._$AH=re,this._$AN=void 0,this.element=t,this.name=i,this._$AM=s,this.options=n,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=re}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,r,s){let n=this.strings,o=!1;if(n===void 0)t=Ht(this,t,i,0),o=!ji(t)||t!==this._$AH&&t!==at,o&&(this._$AH=t);else{let c=t,l,p;for(t=n[0],l=0;l<n.length-1;l++)p=Ht(this,c[r+l],i,l),p===at&&(p=this._$AH[l]),o||(o=!ji(p)||p!==this._$AH[l]),p===re?t=re:t!==re&&(t+=(p!=null?p:"")+n[l+1]),this._$AH[l]=p}o&&!s&&this.j(t)}j(t){t===re?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}},os=class extends Bt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===re?void 0:t}},$0=li?li.emptyScript:"",us=class extends Bt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==re?this.element.setAttribute(this.name,$0):this.element.removeAttribute(this.name)}},cs=class extends Bt{constructor(t,i,r,s,n){super(t,i,r,s,n),this.type=5}_$AI(t,i=this){var r;if((t=(r=Ht(this,t,i,0))!==null&&r!==void 0?r:re)===at)return;let s=this._$AH,n=t===re&&s!==re||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,o=t!==re&&(s===re||n);n&&this.element.removeEventListener(this.name,this,s),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,r;typeof this._$AH=="function"?this._$AH.call((r=(i=this.options)===null||i===void 0?void 0:i.host)!==null&&r!==void 0?r:this.element,t):this._$AH.handleEvent(t)}},ls=class{constructor(t,i,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){Ht(this,t)}},yc={O:as,P:st,A:tn,C:1,M:vc,L:ns,D:_c,R:Ht,I:bt,V:Bt,H:us,N:cs,U:os,F:ls},gc=Gi.litHtmlPolyfillSupport;gc==null||gc(Mt,bt),((Za=Gi.litHtmlVersions)!==null&&Za!==void 0?Za:Gi.litHtmlVersions=[]).push("2.7.2");var Cc=(e,t,i)=>{var r,s;let n=(r=i==null?void 0:i.renderBefore)!==null&&r!==void 0?r:t,o=n._$litPart$;if(o===void 0){let c=(s=i==null?void 0:i.renderBefore)!==null&&s!==void 0?s:null;n._$litPart$=o=new bt(t.insertBefore(Wi(),c),c,void 0,i!=null?i:{})}return o._$AI(e),o};var rn,sn;var L=class extends rt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,i;let r=super.createRenderRoot();return(t=(i=this.renderOptions).renderBefore)!==null&&t!==void 0||(i.renderBefore=r.firstChild),r}update(t){let i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Cc(i,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 at}};L.finalized=!0,L._$litElement$=!0,(rn=globalThis.litElementHydrateSupport)===null||rn===void 0||rn.call(globalThis,{LitElement:L});var Nc=globalThis.litElementPolyfillSupport;Nc==null||Nc({LitElement:L});((sn=globalThis.litElementVersions)!==null&&sn!==void 0?sn:globalThis.litElementVersions=[]).push("3.3.1");function Z(e,t){let i=D({waitUntilFirstUpdate:!1},t);return(r,s)=>{let{update:n}=r,o=Array.isArray(e)?e:[e];r.update=function(c){o.forEach(l=>{let p=l;if(c.has(p)){let b=c.get(p),x=this[p];b!==x&&(!i.waitUntilFirstUpdate||this.hasUpdated)&&this[s](b,x)}}),n.call(this,c)}}}var je=class extends L{constructor(){super();this.variables=[];this.feedbackElements=[];this.interactionElements=[];this._handleDisabledChange=(i,r)=>{this.interactionElements.forEach(s=>s.disabled=r)};this._handleReadonlyChange=(i,r)=>this.interactionElements.forEach(s=>s.readonly=r);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 y`<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(i){this.variables.push(i.detail.variable)}showCorrectResponse(){let i=this.variables.filter(r=>"correctResponse"in r);this.responses=i.map(r=>({responseIdentifier:r.identifier,response:r.correctResponse}))}processResponse(){if(!this.validateResponses())return console.info("Item is not valid, call validateResponses first"),!1;let i=this.querySelector("qti-response-processing");return i?i.process?(i.process(),!0):(console.info("Client side response webcomponents not available"),!1):(console.info("Client side response processing template not available"),!1)}set responses(i){if(i)for(let r of i){let s=this.interactionElements.find(o=>o.getAttribute("response-identifier")===r.responseIdentifier),n=this.getResponse(r.responseIdentifier);n&&(n.value=r.response),s&&(s.response=r.response)}}resetInteractions(){this.interactionElements.forEach(i=>i.reset())}validateResponses(){let i=!0;return this.interactionElements.forEach(r=>{r.validate()||(i=!1)}),i}getVariableValue(i){let r=this.variables.find(s=>s.identifier===i);return r?r.value:(console.warn(`Variable with identifier ${i} was not found`),null)}getResponse(i){let r=this.variables.find(n=>n.identifier===i);return r instanceof ai?r:null}getOutcome(i){let r=this.variables.find(s=>s.identifier===i);return r instanceof ni?r:null}registerFeedbackElement(i){i.stopPropagation(),this.feedbackElements.push(i.detail)}registerInteractionElement(i){i.stopPropagation(),this.interactionElements.push(i.target)}interactionResponse(i){let r=i.detail,s=this.getResponse(r.responseIdentifier);s&&(s.value=r.response),i.stopImmediatePropagation();let n=this.getAttribute("identifier");n||console.warn("qti-assessment-item has no identifier specified"),this.dispatchEvent(new CustomEvent("qti-interaction-changed",{composed:!0,detail:{item:n,interaction:{responseIdentifier:r.responseIdentifier,responses:r.response}}}))}outcomeChanged(i){this.feedbackElements.forEach(r=>{r.checkShowFeedback(i.detail.outcomeIdentifier,i.detail.value)})}setOutcomeValue(i,r){let s=this.getOutcome(i);if(!s){console.warn(`Can not set qti-outcome-identifier: ${i}, it is not available`);return}s.value=r,this.dispatchEvent(new CustomEvent("qti-outcome-changed",{composed:!0,detail:{item:this.identifier,outcomeIdentifier:i,value:r}}))}};_([C({type:Boolean})],je.prototype,"disabled",2),_([C({type:Boolean})],je.prototype,"readonly",2),_([C({type:String})],je.prototype,"title",2),_([C({type:String})],je.prototype,"identifier",2),_([Z("disabled",{waitUntilFirstUpdate:!0})],je.prototype,"_handleDisabledChange",2),_([Z("readonly",{waitUntilFirstUpdate:!0})],je.prototype,"_handleReadonlyChange",2),je=_([ue("qti-assessment-item")],je);var an=class extends L{constructor(){super()}connectedCallback(){super.connectedCallback();let i=this.closest("qti-assessment-item"),r=this.getAttribute("href"),s=document.createElement("link");s.rel="stylesheet",s.type="text/css",s.media="screen",s.href=r,i.appendChild(s),this.styleLink=s}disconnectedCallback(){let i=this.closest("qti-assessment-item");if(this.styleLink&&this.styleLink.parentElement===this)try{i.removeChild(this.styleLink)}catch(r){console.log("could not remove stylesheet")}}};customElements.define("qti-stylesheet",an);var Sc=F`
26
+ :host {
27
+ display: block;
28
+ }
29
+ `;var hi=class extends L{render(){return y` <slot name="qti-rubric-block"></slot>
30
+ <slot></slot>`}};hi.styles=Sc,hi=_([ue("qti-item-body")],hi);var nn=class extends L{render(){return y` <slot></slot> `}connectedCallback(){this.parentElement.tagName.endsWith("INTERACTION")&&this.setAttribute("slot","prompt")}};customElements.define("qti-prompt",nn);var V0=Symbol.for(""),Y0=e=>{if((e==null?void 0:e.r)===V0)return e==null?void 0:e._$litStatic$};var Ic=new Map,Rc=e=>(t,...i)=>{let r=i.length,s,n,o=[],c=[],l,p=0,b=!1;for(;p<r;){for(l=t[p];p<r&&(n=i[p],(s=Y0(n))!==void 0);)l+=s+t[++p],b=!0;c.push(n),o.push(l),p++}if(p===r&&o.push(t[r]),b){let x=o.join("$$lit$$");(t=Ic.get(x))===void 0&&(o.raw=o,Ic.set(x,t=o)),i=c}return e(t,...i)},Lc=Rc(y),J1=Rc(Ac);var G0={SPACE:32},Ne=class extends L{constructor(){super(...arguments);this.tabindex=0;this.disabled=!1;this.readonly=!1;this.checked=!1}handleDisabledChange(i,r){r?(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(i){if(!i.altKey)switch(i.keyCode){case G0.SPACE:i.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"),Lc` <slot></slot> `}};_([C({type:String})],Ne.prototype,"identifier",2),_([C({type:Number,reflect:!0})],Ne.prototype,"tabindex",2),_([C({type:Boolean,reflect:!0})],Ne.prototype,"disabled",2),_([C({type:Boolean,reflect:!0})],Ne.prototype,"readonly",2),_([C({reflect:!0,type:Boolean,attribute:"aria-checked",converter:{toAttribute:e=>e}})],Ne.prototype,"checked",2),_([Z("disabled",{waitUntilFirstUpdate:!0})],Ne.prototype,"handleDisabledChange",1);var Ut=class extends L{render(){return y``}};customElements.define("qti-variabledeclaration",Ut);var pi=class extends Ut{connectedCallback(){super.connectedCallback();let i=new ai({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:i}}))}get correctResponse(){let i,r=this.querySelector("qti-correct-response");if(r){let s=r.querySelectorAll("qti-value");if(this.cardinality==="single"&&s.length>0)i=s[0].textContent,s[0].remove();else if(this.cardinality!=="single"){i=[];for(let n=0;n<s.length;n++)i.push(s[n].textContent),s[n].remove()}}return i}get mapping(){return this.querySelector("qti-mapping")}};_([C({type:String,attribute:"base-type"})],pi.prototype,"baseType",2),_([C({type:String,attribute:"identifier"})],pi.prototype,"identifier",2),_([C({type:String,attribute:"cardinality"})],pi.prototype,"cardinality",2);customElements.define("qti-response-declaration",pi);var on=class extends Ut{static get observedAttributes(){return["identifier","cardinality","base-type"]}get interpolationTable(){let t=this.querySelector("qti-interpolation-table");if(t){let i=new Map;for(let r of t.querySelectorAll("qti-interpolation-table-entry")){!r.getAttribute("source-value")&&r.getAttribute("target-value")&&console.error("source-value or target-value is missing in qti-interpolation-table-entry");let s=parseInt(r.getAttribute("source-value")),n=parseInt(r.getAttribute("target-value"));(isNaN(s)||isNaN(n))&&console.error("source-value or target-value is not a number in qti-interpolation-table-entry"),i.set(s,n)}}return null}connectedCallback(){super.connectedCallback();let t=this.getAttribute("identifier"),i=new ni;i.identifier=t,this.dispatchEvent(new CustomEvent("qti-register-variable",{bubbles:!0,composed:!0,detail:{variable:i}}))}};customElements.define("qti-outcome-declaration",on);var ds=class extends L{};ds=_([ue("qti-companion-materials-info")],ds);var fi=class extends Event{constructor(t,i,r){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.callback=i,this.subscribe=r}};var Et=class{constructor(t,i,r,s){var n;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(o,c)=>{this.unsubscribe&&(this.unsubscribe!==c&&(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,c)),this.unsubscribe=c},this.host=t,i.context!==void 0){let o=i;this.context=o.context,this.callback=o.callback,this.subscribe=(n=o.subscribe)!==null&&n!==void 0&&n}else this.context=i,this.callback=r,this.subscribe=s!=null&&s;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new fi(this.context,this.t,this.subscribe))}};var hs=class{constructor(t){this.callbacks=new Map,this.updateObservers=()=>{for(let[i,r]of this.callbacks)i(this.o,r)},t!==void 0&&(this.value=t)}get value(){return this.o}set value(t){this.setValue(t)}setValue(t,i=!1){let r=i||!Object.is(t,this.o);this.o=t,r&&this.updateObservers()}addCallback(t,i){i&&(this.callbacks.has(t)||this.callbacks.set(t,()=>{this.callbacks.delete(t)})),t(this.value)}clearCallbacks(){this.callbacks.clear()}};var un=class extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t,Object.setPrototypeOf(this,new.target.prototype)}},gt=class extends hs{constructor(t,i,r){super(i.context!==void 0?i.initialValue:r),this.onContextRequest=s=>{s.context===this.context&&s.composedPath()[0]!==this.host&&(s.stopPropagation(),this.addCallback(s.callback,s.subscribe))},this.host=t,i.context!==void 0?this.context=i.context:this.context=i,this.attachListeners(),this.host.addController(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest)}hostConnected(){this.host.dispatchEvent(new un(this.context))}};var Tt="logger";var Xe=class extends L{constructor(){super(...arguments);this.logger=new Et(this,Tt,i=>this.style.display=this.view===i.view?"block":"none",!0)}handleclassNamesChange(i,r){this.classNames.split(" ").forEach(n=>{switch(n){case"qti-rubric-discretionary-placement":this.setAttribute("slot","qti-rubric-block");break;case"qti-rubric-inline":this.setAttribute("slot","");break;default:break}})}render(){return y`<slot></slot>`}connectedCallback(){super.connectedCallback(),this.setAttribute("slot","qti-rubric-block")}};Xe.styles=F`
31
+ :host {
32
+ display: block;
33
+ }
34
+ `,_([C({type:String})],Xe.prototype,"id",2),_([C({type:String})],Xe.prototype,"use",2),_([C({type:String})],Xe.prototype,"view",2),_([C({type:String,attribute:"class"})],Xe.prototype,"classNames",2),_([Z("classNames",{waitUntilFirstUpdate:!0})],Xe.prototype,"handleclassNamesChange",1),Xe=_([ue("qti-rubric-block")],Xe);var ps=class extends L{render(){return y`<slot></slot>`}};ps=_([ue("qti-content-body")],ps);var Ke=class extends L{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(i,r){if(this.outcomeIdentifier!==i||!r)return;let s=Array.isArray(r)?r.includes(this.identifier):this.identifier===r.toString();this.showFeedback(s)}showFeedback(i){this.showStatus=i?"on":"off"}};_([C({type:String,attribute:"show-hide"})],Ke.prototype,"showHide",2),_([C({type:String,attribute:"outcome-identifier"})],Ke.prototype,"outcomeIdentifier",2),_([C({type:String})],Ke.prototype,"identifier",2),_([C({type:String,attribute:!1})],Ke.prototype,"showStatus",2);var fs=class extends Ke{constructor(){super(...arguments);this.render=()=>y` <slot class="${this.showStatus}"></slot> `}};fs.styles=F`
35
+ .on {
36
+ display: inline-block;
37
+ }
38
+ .off {
39
+ display: none;
40
+ }
41
+ `;customElements.define("qti-feedback-inline",fs);var cn=class extends Ke{render(){return y`
42
+ <style>
43
+ .on {
44
+ display: inline-block;
45
+ }
46
+ .off {
47
+ display: none;
48
+ }
49
+ </style>
50
+ <div class="feedback ${this.showStatus}">
51
+ <slot></slot>
52
+ </div>
53
+ `}};customElements.define("qti-modal-feedback",cn);var _t=e=>e!=null?e:re;var he=class extends L{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(i){this.dispatchEvent(new CustomEvent("qti-interaction-response",{bubbles:!0,cancelable:!1,composed:!0,detail:{responseIdentifier:this.responseIdentifier,response:i}}))}};_([C({attribute:"response-identifier"})],he.prototype,"responseIdentifier",2),_([C({reflect:!0,type:Boolean})],he.prototype,"disabled",2),_([C({reflect:!0,type:Boolean})],he.prototype,"readonly",2);var mi=F`
54
+ /***
55
+ The new CSS reset - version 1.4.9 (last updated 11.2.2022)
56
+ GitHub page: https://github.com/elad2412/the-new-css-reset
57
+ ***/
58
+
59
+ /*
60
+ Remove all the styles of the "User-Agent-Stylesheet", except for the 'display' property
61
+ - The "symbol *" part is to solve Firefox SVG sprite bug
62
+ */
63
+ *:where(:not(iframe, canvas, img, svg, video, object):not(svg *, symbol *)) {
64
+ all: unset;
65
+ display: revert;
66
+ }
67
+
68
+ /* Preferred box-sizing value */
69
+ *,
70
+ *::before,
71
+ *::after {
72
+ box-sizing: border-box;
73
+ }
74
+
75
+ /* Reapply the pointer cursor for anchor tags */
76
+ a,
77
+ button {
78
+ cursor: revert;
79
+ }
80
+
81
+ /* Remove list styles (bullets/numbers) */
82
+ ol,
83
+ ul,
84
+ menu {
85
+ list-style: none;
86
+ }
87
+
88
+ /* For images to not be able to exceed their container */
89
+ img {
90
+ max-width: 100%;
91
+ }
92
+
93
+ /* removes spacing between cells in tables */
94
+ table {
95
+ border-collapse: collapse;
96
+ }
97
+
98
+ /* revert the 'white-space' property for textarea elements on Safari */
99
+ textarea {
100
+ white-space: revert;
101
+ }
102
+
103
+ /* minimum style to allow to style meter element */
104
+ meter {
105
+ -webkit-appearance: revert;
106
+ appearance: revert;
107
+ }
108
+
109
+ /* reset default text opacity of input placeholder */
110
+ ::placeholder {
111
+ all: unset;
112
+ }
113
+
114
+ /* fix the feature of 'hidden' attribute.
115
+ display:revert; revert to element instead of attribute */
116
+ :where([hidden]) {
117
+ display: none;
118
+ }
119
+
120
+ /* revert for bug in Chromium browsers
121
+ - fix for the content editable attribute will work properly. */
122
+ :where([contenteditable]) {
123
+ -moz-user-modify: read-write;
124
+ -webkit-user-modify: read-write;
125
+ overflow-wrap: break-word;
126
+ -webkit-line-break: after-white-space;
127
+ }
128
+
129
+ /* apply back the draggable feature - exist only in Chromium and Safari */
130
+ :where([draggable='true']) {
131
+ -webkit-user-drag: element;
132
+ }
133
+ `;var xt=class extends he{constructor(){super(...arguments);this.value=""}set response(i){this.value=i!==void 0?i:""}validate(){return this.value!==""}static get styles(){return[mi,F`
134
+ /* PK: display host as block, else design will be collapsed */
135
+ :host {
136
+ display: inline-block;
137
+ }
138
+ input {
139
+ padding: var(--qti-padding, 0.5rem);
140
+ }
141
+ `]}render(){return y` <input
142
+ spellcheck="false"
143
+ autocomplete="off"
144
+ @keydown="${i=>i.stopImmediatePropagation()}"
145
+ @keyup="${this.textChanged}"
146
+ @change="${this.textChanged}"
147
+ type="text"
148
+ placeholder="${_t(this.placeholderText?this.placeholderText:void 0)}"
149
+ .value="${this.value}"
150
+ size="${_t(this.expectedLength?this.expectedLength:void 0)}"
151
+ pattern="${_t(this.patternMask?this.patternMask:void 0)}"
152
+ ?disabled="${this.disabled}"
153
+ ?readonly="${this.readonly}"
154
+ />`}textChanged(i){if(this.disabled||this.readonly)return;let r=i.target;this.setEmptyAttribute(r.value),this.value=r.value,this.saveResponse(r.value)}reset(){this.value=""}setEmptyAttribute(i){this.setAttribute("empty",i===""?"true":"false")}};_([C({type:Number,attribute:"expected-length"})],xt.prototype,"expectedLength",2),_([C({type:String,attribute:"pattern-mask"})],xt.prototype,"patternMask",2),_([C({type:String,attribute:"placeholder-text"})],xt.prototype,"placeholderText",2),_([C({type:String})],xt.prototype,"value",2),_([C({type:String,attribute:"class"})],xt.prototype,"classNames",2);customElements.define("qti-text-entry-interaction",xt);var{I:B_}=yc;var Oc=e=>e.strings===void 0;var Xi={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ki=e=>(...t)=>({_$litDirective$:e,values:t}),Ft=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,i,r){this._$Ct=t,this._$AM=i,this._$Ci=r}_$AS(t,i){return this.update(t,i)}update(t,i){return this.render(...i)}};var Qi=(e,t)=>{var i,r;let s=e._$AN;if(s===void 0)return!1;for(let n of s)(r=(i=n)._$AO)===null||r===void 0||r.call(i,t,!1),Qi(n,t);return!0},ms=e=>{let t,i;do{if((t=e._$AM)===void 0)break;i=t._$AN,i.delete(e),e=t}while((i==null?void 0:i.size)===0)},Dc=e=>{for(let t;t=e._$AM;e=t){let i=t._$AN;if(i===void 0)t._$AN=i=new Set;else if(i.has(e))break;i.add(e),z0(t)}};function K0(e){this._$AN!==void 0?(ms(this),this._$AM=e,Dc(this)):this._$AM=e}function Q0(e,t=!1,i=0){let r=this._$AH,s=this._$AN;if(s!==void 0&&s.size!==0)if(t)if(Array.isArray(r))for(let n=i;n<r.length;n++)Qi(r[n],!1),ms(r[n]);else r!=null&&(Qi(r,!1),ms(r));else Qi(this,e)}var z0=e=>{var t,i,r,s;e.type==Xi.CHILD&&((t=(r=e)._$AP)!==null&&t!==void 0||(r._$AP=Q0),(i=(s=e)._$AQ)!==null&&i!==void 0||(s._$AQ=K0))},bs=class extends Ft{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,i,r){super._$AT(t,i,r),Dc(this),this.isConnected=t._$AU}_$AO(t,i=!0){var r,s;t!==this.isConnected&&(this.isConnected=t,t?(r=this.reconnected)===null||r===void 0||r.call(this):(s=this.disconnected)===null||s===void 0||s.call(this)),i&&(Qi(this,t),ms(this))}setValue(t){if(Oc(this._$Ct))this._$Ct._$AI(t,this);else{let i=[...this._$Ct._$AH];i[this._$Ci]=t,this._$Ct._$AI(i,this,0)}}disconnected(){}reconnected(){}};var wc=()=>new dn,dn=class{},ln=new WeakMap,kc=Ki(class extends bs{render(e){return re}update(e,[t]){var i;let r=t!==this.G;return r&&this.G!==void 0&&this.ot(void 0),(r||this.rt!==this.lt)&&(this.G=t,this.ct=(i=e.options)===null||i===void 0?void 0:i.host,this.ot(this.lt=e.element)),re}ot(e){var t;if(typeof this.G=="function"){let i=(t=this.ct)!==null&&t!==void 0?t:globalThis,r=ln.get(i);r===void 0&&(r=new WeakMap,ln.set(i,r)),r.get(this.G)!==void 0&&this.G.call(this.ct,void 0),r.set(this.G,e),e!==void 0&&this.G.call(this.ct,e)}else this.G.value=e}get rt(){var e,t,i;return typeof this.G=="function"?(t=ln.get((e=this.ct)!==null&&e!==void 0?e:globalThis))===null||t===void 0?void 0:t.get(this.G):(i=this.G)===null||i===void 0?void 0:i.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}});var qt=class extends he{constructor(){super(...arguments);this.textareaRef=wc();this.value=""}handleclassNamesChange(i,r){this.classNames.split(" ").forEach(n=>{if(n.startsWith("qti-height-lines")){let o=n.replace("qti-height-lines-","");this.textareaRef&&(this.textareaRef.value.rows=parseInt(o))}})}set response(i){this.value=i!==void 0?i:""}validate(){return this.value!==""}static get styles(){return[mi,F`
155
+ /* PK: display host as block, else design will be collapsed */
156
+ :host {
157
+ display: block;
158
+ }
159
+ textarea {
160
+ padding: var(--qti-padding, 0.5rem);
161
+ width: 100%;
162
+ height: 100%;
163
+ }
164
+ `]}render(){return y`<textarea
165
+ ${kc(this.textareaRef)}
166
+ spellcheck="false"
167
+ autocomplete="off"
168
+ @keydown="${i=>i.stopImmediatePropagation()}"
169
+ @keyup="${this.textChanged}"
170
+ @change="${this.textChanged}"
171
+ placeholder="${_t(this.placeholderText?this.placeholderText:void 0)}"
172
+ maxlength="${_t(this.expectedLength?this.expectedLength:void 0)}"
173
+ pattern="${_t(this.patternMask?this.patternMask:void 0)}"
174
+ ?disabled="${this.disabled}"
175
+ ?readonly="${this.readonly}"
176
+ .value=${this.value}
177
+ ></textarea>`}textChanged(i){if(this.disabled||this.readonly)return;let r=i.target;this.setEmptyAttribute(r.value),this.value=r.value,this.saveResponse(r.value)}reset(){this.value=""}setEmptyAttribute(i){this.setAttribute("empty",i===""?"true":"false")}};_([C({type:Number,attribute:"expected-length"})],qt.prototype,"expectedLength",2),_([C({type:String,attribute:"pattern-mask"})],qt.prototype,"patternMask",2),_([C({type:String,attribute:"placeholder-text"})],qt.prototype,"placeholderText",2),_([C({type:String,attribute:"class"})],qt.prototype,"classNames",2),_([Z("classNames",{waitUntilFirstUpdate:!0})],qt.prototype,"handleclassNamesChange",1);customElements.define("qti-extended-text-interaction",qt);var Es=class extends Ne{};Es=_([ue("qti-hottext")],Es);var pe=class extends he{constructor(){super();this._choiceElements=[];this.minChoices=0;this.maxChoices=1;this._handleDisabledChange=(i,r)=>this._choiceElements.forEach(s=>s.disabled=r);this._handleReadonlyChange=(i,r)=>this._choiceElements.forEach(s=>s.readonly=r);this._handleMaxChoicesChange=()=>this._determineInputType();this.addEventListener("qti-register-choice",this._registerChoiceElement),this.addEventListener("qti-loose-choice",this._looseChoiceElement)}reset(){this._choiceElements.forEach(i=>{i.reset()})}validate(){return this._choiceElements.reduce((r,s)=>r+(s.checked?1:0),0)>=this.minChoices}set response(i){this._choiceElements.forEach(s=>{s.checked=!1}),(Array.isArray(i)?i:[i]).forEach(s=>{let n=this.querySelector(`[identifier='${s}']`);n&&(n.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(i){i.stopPropagation();let r=i.target;this._choiceElements.push(r),this._setInputType(r)}_looseChoiceElement(i){i.stopPropagation();let r=i.target;this._choiceElements.push(r),this._choiceElements=this._choiceElements.filter(s=>s!==r)}_determineInputType(){this._choiceElements.forEach(i=>{this._setInputType(i)})}_setInputType(i){this.maxChoices===1?i.setAttribute("role","radio"):i.setAttribute("role","checkbox")}_choiceElementSelectedHandler(i){this.maxChoices===1&&this._choiceElements.filter(r=>r.identifier!==i.detail.identifier).forEach(r=>{r.checked=!1}),this._choiceElementSelected()}_choiceElementSelected(){let i=this._choiceElements.filter(s=>s.checked).map(s=>s.identifier);this.maxChoices>1&&(this.maxChoices===i.length?this._choiceElements.forEach(s=>s.disabled=!s.checked):this._choiceElements.forEach(s=>s.disabled=!1));let r;this.maxChoices===1?r=i.length>0?i[0]:void 0:r=i,this.saveResponse(r)}};_([C({type:Number,attribute:"min-choices"})],pe.prototype,"minChoices",2),_([C({type:Number,attribute:"max-choices"})],pe.prototype,"maxChoices",2),_([Z("disabled",{waitUntilFirstUpdate:!0})],pe.prototype,"_handleDisabledChange",2),_([Z("readonly",{waitUntilFirstUpdate:!0})],pe.prototype,"_handleReadonlyChange",2),_([Z("maxChoices",{waitUntilFirstUpdate:!0})],pe.prototype,"_handleMaxChoicesChange",2);var hn=class extends pe{constructor(){super(...arguments);this.render=()=>y`<slot></slot>`}connectedCallback(){super.connectedCallback(),this.setAttribute("qti-hottext-interaction","")}};customElements.define("qti-hottext-interaction",hn);var gs=class extends he{constructor(){super();this.options=[];this.addEventListener(ec.ON_DROPDOWN_SELECTED,this.choiceSelected);let i=Array.from(this.querySelectorAll("qti-inline-choice"));this.options=[{textContent:"select",value:"",selected:!1},...i.map(r=>({textContent:r.innerHTML,value:r.getAttribute("identifier"),selected:!1}))]}static get properties(){return ie(D({},he.properties),{options:{type:Array,value:[],attribute:!1}})}connectedCallback(){super.connectedCallback()}static get styles(){return[mi,F`
178
+ :host {
179
+ display: inline-block;
180
+ }
181
+ select {
182
+ width: 100%;
183
+ padding: var(--qti-padding-y) var(--qti-padding-x);
184
+ padding-right: calc(var(--qti-padding-x) + 1ch);
185
+ }
186
+ `]}render(){return y` <select @change="${this.choiceSelected}" ?disabled="${this.disabled}" ?readonly="${this.readonly}">
187
+ ${this.options.map(i=>y` <option value="${i.value}" ?selected="${i.selected}">${i.textContent}</option> `)}
188
+ </select>`}validate(){let i=this.options.find(r=>r.selected);return i?i.value!=="":!1}reset(){this.options=this.options.map((i,r)=>ie(D({},i),{selected:r===0}))}set response(i){this.options=this.options.map(r=>(i===r.value&&(r.selected=!0),r))}choiceSelected(i){let r=i.target.value;this.options=this.options.map(s=>ie(D({},s),{selected:s.value===r})),this.saveResponse(r)}};gs.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",gs);var Pc=F`
189
+ ::slotted(qti-simple-choice) {
190
+ --width: 22px;
191
+ --height: 22px;
192
+ display: inline-flex;
193
+ width: fit-content;
194
+ align-items: center;
195
+ gap: 0.2rem;
196
+ }
197
+
198
+ ::slotted(qti-simple-choice:not([disabled])) {
199
+ cursor: pointer;
200
+ }
201
+
202
+ ::slotted(qti-simple-choice[disabled]) {
203
+ opacity: 0.2;
204
+ }
205
+
206
+ ::slotted(qti-simple-choice[role='checkbox']):before {
207
+ content: '';
208
+ min-height: var(--width);
209
+ min-width: var(--width);
210
+ box-shadow: inset 0 0 0 var(--qti-border-width) var(--qti-border-color);
211
+ }
212
+
213
+ ::slotted(qti-simple-choice[role='checkbox'])::after {
214
+ /* border-bottom: 3px solid var(--qti-primary-color);
215
+ border-left: 3px solid var(--qti-primary-color); */
216
+ content: '';
217
+ display: inline-block;
218
+ height: 5px;
219
+ opacity: 0;
220
+ position: absolute;
221
+ transform: translate(5px, -2px) rotate(-45deg);
222
+ width: 10px;
223
+ }
224
+
225
+ ::slotted(qti-simple-choice[role='checkbox'][aria-checked='true']):after {
226
+ border-bottom: 3px solid var(--qti-primary-color);
227
+ border-left: 3px solid var(--qti-primary-color);
228
+ opacity: 1;
229
+ }
230
+
231
+ ::slotted(qti-simple-choice[role='radio']):before {
232
+ border-radius: 100%;
233
+ content: '';
234
+ min-height: 22px;
235
+ min-width: 22px;
236
+ box-shadow: inset 0 0 0 var(--qti-border-width) var(--qti-border-color);
237
+ }
238
+
239
+ ::slotted(qti-simple-choice[role='radio']):after {
240
+ background: var(--qti-primary-color);
241
+ border-radius: 100%;
242
+ content: '';
243
+ display: inline-block;
244
+ height: 14px;
245
+ margin-left: 4px;
246
+ opacity: 0;
247
+ position: absolute;
248
+ transform: scale(0.8);
249
+ width: 14px;
250
+ }
251
+
252
+ ::slotted(qti-simple-choice[role='radio'][aria-checked='true']):after {
253
+ opacity: 1;
254
+ transform: scale(1);
255
+ }
256
+
257
+ :host {
258
+ display: block;
259
+ position: relative;
260
+ }
261
+ `;var $t=class extends pe{constructor(){super(...arguments);this.render=()=>y`<slot name="prompt"></slot><slot></slot>`}};$t.styles=Pc,_([C({type:String})],$t.prototype,"orientation",2),$t=_([ue("qti-choice-interaction")],$t);var zi=class extends Ne{};zi=_([ue("qti-simple-choice")],zi);var Mc=`<qti-response-processing>
262
+ <qti-response-condition>
263
+ <qti-response-if>
264
+ <qti-match>
265
+ <qti-variable identifier="RESPONSE"></qti-variable>
266
+ <qti-correct identifier="RESPONSE"></qti-correct>
267
+ </qti-match>
268
+ <qti-set-outcome-value identifier="SCORE">
269
+ <qti-base-value base-type="float">1</qti-base-value>
270
+ </qti-set-outcome-value>
271
+ </qti-response-if>
272
+ <qti-response-else>
273
+ <qti-set-outcome-value identifier="SCORE">
274
+ <qti-base-value base-type="float">0</qti-base-value>
275
+ </qti-set-outcome-value>
276
+ </qti-response-else>
277
+ </qti-response-condition>
278
+ </qti-response-processing>`,Hc=`<qti-response-processing>
279
+ <qti-response-condition>
280
+ <qti-response-if>
281
+ <qti-is-null>
282
+ <qti-variable identifier="RESPONSE"></qti-variable>
283
+ </qti-is-null>
284
+ <qti-set-outcome-value identifier="SCORE">
285
+ <qti-base-value base-type="float">0.0</qti-base-value>
286
+ </qti-set-outcome-value>
287
+ </qti-response-if>
288
+ <qti-response-else>
289
+ <qti-set-outcome-value identifier="SCORE">
290
+ <qti-map-response identifier="RESPONSE"> </qti-map-response>
291
+ </qti-set-outcome-value>
292
+ </qti-response-else>
293
+ </qti-response-condition>
294
+ </qti-response-processing>`,Bc=`<qti-response-processing>
295
+ <qti-response-condition>
296
+ <qti-response-if>
297
+ <qti-is-null>
298
+ <qti-variable identifier="RESPONSE"></qti-variable>
299
+ </qti-is-null>
300
+ <qti-set-outcome-value identifier="SCORE">
301
+ <qti-base-value base-type="float">0</qti-base-value>
302
+ </qti-set-outcome-value>
303
+ </qti-response-if>
304
+ <qti-response-else>
305
+ <qti-set-outcome-value identifier="SCORE">
306
+ <qti-map-response-point identifier="RESPONSE"></qti-map-response-point>
307
+ </qti-set-outcome-value>
308
+ </qti-response-else>
309
+ </qti-response-condition>
310
+ </qti-response-processing>`;var bi=class extends L{render(){return y`<slot></slot>`}static get observedAttributes(){return["identifier"]}process(){if(this.getAttribute("template")){let i=this.getAttribute("template").split("/"),r=i[i.length-1].replace(".xml","");switch(this.innerHTML="",r){case"map_response":{this.appendChild(this.fragmentFromString(Hc));break}case"map_response_point":{this.appendChild(this.fragmentFromString(Bc));break}case"match_correct":this.appendChild(this.fragmentFromString(Mc));break}}let t=[...this.children];for(let i of t)i.process()}fragmentFromString(t){return document.createRange().createContextualFragment(t)}};bi=_([ue("qti-response-processing")],bi);var nt=class extends L{render(){return y``}process(){throw new Error("Not implemented")}};nt=_([ue("qti-rule")],nt);var pn=class extends nt{render(){return y`<slot></slot>`}process(){let t=[...this.children];for(let i=0;i<t.length;i++){let r=t[i];if(r.calculate()){r.process();return}}}};customElements.define("qti-response-condition",pn);var fn=class extends nt{process(){let t=this.getAttribute("identifier"),i=this.firstElementChild,r=i?i.calculate():null;if(r==null){console.warn("setOutcomeValue: value is null or undefined");return}this.closest("qti-assessment-item").setOutcomeValue(t,r)}};customElements.define("qti-set-outcome-value",fn);var Ji=class extends L{static get properties(){return{debugCalculateResult:{type:Object}}}render(){return y` <slot></slot>`}calculate(){return!0}getSubRules(){return[...this.children]}process(){let t=this.getSubRules();for(let i=0;i<t.length;i++)t[i].process()}};customElements.define("qti-response-else",Ji);var Zi=class extends Ji{render(){return y`${super.render()}`}calculate(){return this.firstElementChild.calculate()}getSubRules(){let t=[];for(let i=1;i<this.children.length;i++)t.push(this.children[i]);return t}};customElements.define("qti-response-if",Zi);var mn=class extends Zi{render(){return y`${super.render()}`}};customElements.define("qti-response-else-if",mn);var K=class extends L{constructor(){super(...arguments);this.getVariables=()=>Array.from(this.children).map(i=>{switch(i.tagName.toLowerCase()){case"qti-base-value":return{baseType:i.getAttribute("base-type"),value:i.textContent,cardinality:"single"};case"qti-variable":{let r=i.getAttribute("identifier")||"";return this.assessmentItem.getResponse(r)}case"qti-multiple":{let s=i.calculate();return s.length>0?{baseType:s[0].baseType,value:s.map(n=>n.value),cardinality:"multiple"}:null}case"qti-correct":{let r=i.getAttribute("identifier")||"",s=this.assessmentItem.getResponse(r);return{baseType:s.baseType,value:s.correctResponse,cardinality:s.cardinality}}default:return null}}).filter(i=>i!==null)}render(){return y``}calculate(){throw new Error("Not implemented")}get assessmentItem(){return this.closest("qti-assessment-item")}};customElements.define("qti-expression",K);var bn=class extends K{calculate(){if(this.children.length===2){let t=this.getVariables(),i=t[0],r=t[1];if(i.baseType===r.baseType&&(i.baseType==="integer"||i.baseType==="float"))return+i.value>+r.value;console.error("unexpected baseType or cardinality in qti gt")}return console.error("unexpected number of children in qt"),null}};customElements.define("qti-gt",bn);var At=class extends K{render(){return y``}calculate(){throw new Error("Not implemented")}};var En=class extends At{calculate(){if(this.children.length===2){let t=this.getVariables(),i=t[0],r=t[1];return i.baseType===r.baseType&&(i.baseType==="integer"||i.baseType==="float")?+i.value>=+r.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",En);var gn=class extends At{render(){return y``}calculate(){return Array.from(this.children).map(i=>{let r=i;if(!r.calculate)return console.error("Element doesn't implement QtiConditionExpression"),null;let s=r.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(i=>typeof i=="boolean"&&i)}};customElements.define("qti-and",gn);var Tn=class extends At{render(){return y``}calculate(){return Array.from(this.children).map(i=>{let r=i;if(!r.calculate)return console.error("Element doesn't implement QtiConditionExpression"),null;let s=r.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(i=>typeof i=="boolean"&&i)}};customElements.define("qti-or",Tn);var Qe=class{static compareSingleValues(t,i,r){switch(r){case"identifier":case"string":return t===i;case"integer":{let s=parseInt(t,10),n=parseInt(i,10);if(!isNaN(s)&&!isNaN(n))return s===n;console.error(`Cannot convert ${t} and/or ${i} to int.`);break}case"float":{let s=parseFloat(t),n=parseFloat(i);if(!isNaN(s)&&!isNaN(n))return s===n;console.error(`couldn't convert ${t} and/or ${i} to float.`);break}case"pair":case"directedPair":{let s=t.split(" ").sort(),n=i.split(" ").sort();if(s.length===2&&n.length===2)return r==="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: ${i}`);break}}return!1}};var Ts=class extends K{constructor(){super(...arguments);this.toleranceMode="exact"}calculate(){if(this.children.length===2){let i=this.getVariables(),r=i[0],s=i[1];return this.toleranceMode!=="exact"?(console.error("toleranceMode is not supported yet"),!1):r.cardinality!=="single"||s.cardinality!=="single"||Array.isArray(r.value)||Array.isArray(s.value)?(console.error("unexpected cardinality in qti equal"),!1):Qe.compareSingleValues(r.value,s.value,r.baseType)}return console.error("unexpected number of children in qti-equal"),null}};_([C({type:String})],Ts.prototype,"toleranceMode",2);customElements.define("qti-equal",Ts);var _s=class extends K{constructor(){super(...arguments);this.roundingMode="significantFigures"}get figures(){if(!this.getAttribute("figures"))return console.error("figures attribute is missing"),null;let r=parseInt(this.getAttribute("figures")||"0");return isNaN(r)?(console.error("figures attribute is not a number"),null):r<0?(console.error("figures attribute is negative"),null):r<1&&this.roundingMode==="significantFigures"?(console.error("figures cannot be smaller than 1 for RoundingMode significantFigures"),null):r}calculate(){if(this.children.length===2){let i=this.getVariables(),r=i[0],s=i[1];if(this.roundingMode===null)return null;if(r.cardinality!=="single"||s.cardinality!=="single"||Array.isArray(r.value)||Array.isArray(s.value))return console.error("unexpected cardinality in qti equal"),!1;switch(i[0].baseType){case"integer":case"float":{let n=parseFloat(r.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}};_([C({type:String})],_s.prototype,"roundingMode",2);customElements.define("qti-equal-rounded",_s);var xs=class extends K{constructor(){super(...arguments);this.baseType="string"}calculate(){return this.textContent}};_([C({type:String})],xs.prototype,"baseType",2);customElements.define("qti-base-value",xs);var _n=class extends K{calculate(){let t=this.getVariables();if(this.children.length===2){let i=t[0],r=t[1];if(i.baseType==="directedPair"&&r.baseType==="directedPair"&&i.cardinality==="multiple"){let s=i.value,n=r.value;return s.filter(l=>n.includes(l)).length>0}else if(i.baseType==="directedPair"&&r.baseType==="directedPair"&&i.cardinality==="single"){let s=i.value;return r.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",_n);var xn=class extends K{render(){return y``}get interpretation(){return this.getAttribute("interpretation")||""}calculate(){let t=this.getAttribute("identifier")||"",i=this.closest("qti-assessment-item").getResponse(t);return i.correctResponse,i.cardinality!=="single"?i.correctResponse.length>0?i.correctResponse[0]:"":i.correctResponse}};customElements.define("qti-correct",xn);var qn=class extends K{calculate(){if(this.children.length===1){let t=this.getVariables();if(!t)return!0;let i=t[0].value;return i==null||i==null||i===""}return console.error("unexpected number of children in qti Null"),null}};customElements.define("qti-is-null",qn);var qs=class extends K{calculate(){let i=this.assessmentItem.getResponse(this.identifier);if(!i)return console.warn(`Response ${this.identifier} can not be found`),null;let r=i.mapping,s=Array.isArray(i.value)?i.value:[i.value],n=0;for(let o of s){let c=r.mapEntries.find(l=>Qe.compareSingleValues(l.mapKey,o,i.baseType));c==null||c.mappedValue==null?n+=r.defaultValue:n+=c.mappedValue}return r.lowerBound!=null&&(n=Math.max(r.lowerBound,n)),r.upperBound!=null&&(n=Math.min(r.upperBound,n)),n}};_([C({type:String})],qs.prototype,"identifier",2);customElements.define("qti-map-response",qs);var An=class extends K{calculate(){if(this.children.length===2){let t=this.getVariables(),i=t[0],r=t[1];if(r.cardinality==="single")return Array.isArray(i.value)||Array.isArray(r.value)?(console.error("unexpected cardinality in qti match"),!1):Qe.compareSingleValues(i.value.toString(),r.value.toString(),r.baseType);{if(!Array.isArray(i.value)||!Array.isArray(r.value))return console.error("unexpected cardinality in qti match"),!1;if(i.value.length!==r.value.length)return!1;let s=0;for(let n of r.value){if(r.cardinality==="ordered"){let o=i[s];if(!Qe.compareSingleValues(n,o,r.baseType))return!1}else{let o=null;for(let c of i.value)if(Qe.compareSingleValues(n,c,r.baseType)){o=c;break}if(o!==null)i.value.splice(i.value.indexOf(o),1);else return!1}s++}return!0}}return console.error("unexpected number of children in match"),null}};customElements.define("qti-match",An);var vn=class extends K{render(){return y``}calculate(){let t=this.getAttribute("identifier");return this.closest("qti-assessment-item").getVariableValue(t)}};customElements.define("qti-variable",vn);var yn=class extends K{calculate(){let t=this.getVariables();if(t.length===0)return console.error("unexpected number of children in qti multiple"),null;for(let i of t)if(i.cardinality!=="multiple"&&i.cardinality!=="single")return console.error("unexpected cardinality in qti multiple"),[];return t}};customElements.define("qti-multiple",yn);var Cn=class extends K{calculate(){let t=this.getVariables();if(t.length===0)return console.error("unexpected number of children in qti multiple"),null;for(let i of t)if(i.cardinality!=="ordered"&&i.cardinality!=="single")return console.error("unexpected cardinality in qti ordered"),[];return t}};customElements.define("qti-ordered",Cn);var Ei=class extends L{constructor(){super(...arguments);this.defaultValue=0}get mapEntries(){return Array.from(this.querySelectorAll("qti-map-entry")).map(i=>({mapKey:i.getAttribute("map-key"),mappedValue:+i.getAttribute("mapped-value")}))}};_([C({attribute:"default-value",type:Number})],Ei.prototype,"defaultValue",2),_([C({attribute:"lower-bound",type:Number})],Ei.prototype,"lowerBound",2),_([C({attribute:"upper-bound",type:Number})],Ei.prototype,"upperBound",2);customElements.define("qti-mapping",Ei);var Nn=class extends L{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(i){let r=i.querySelectorAll("properties"),s={},n=c=>{let l={},p=c.getAttribute("key");if(p){let b=Array.from(c.children),x=b.map(I=>I.getAttribute("key"));x.length>0&&!x.find(I=>!Number.isInteger(+I))?l[p]=b.map(I=>o(I)):l[p]=c.textContent}return l},o=c=>{if(c){let l={};for(let p of c.children)l=D(D({},l),n(p));return l}};for(let c of r)return c.getAttribute("key")||(s=D(D({},s),o(c))),s;console.log("Can not find qti-custom-interaction config")}register(i){let r=this.parentElement.tagName==="QTI-CUSTOM-INTERACTION"?"TAO":"IMS",s=r=="IMS"?this.querySelector("qti-interaction-markup"):this.querySelector("markup");s.classList.add("qti-customInteraction"),r=="TAO"&&this.querySelector("properties")&&(this.querySelector("properties").style.display="none");let n=r=="IMS"?{properties:this.dataset}:this.getTAOConfig(this);r=="IMS"?i.getInstance(s,n,void 0):i.initialize(this.customInteractionTypeIdentifier,s.firstElementChild,n),r=="TAO"&&Array.from(this.querySelectorAll("link")).map(c=>c.getAttribute("href")).forEach(c=>{let l=document.createElement("link");l.rel="stylesheet",l.type="text/css",l.media="screen",l.href=c,s.appendChild(l)})}connectedCallback(){super.connectedCallback();let i={context:this.customInteractionTypeIdentifier,baseUrl:this.baseUrl,catchError:!0};window.requirePaths&&window.requireShim&&(i.paths=window.requirePaths,i.shim=window.requireShim),requirejs.config(i)(["require"],s=>{define("qtiCustomInteractionContext",()=>({register:n=>{this.register(n)},notifyReady:()=>{}})),s([this.module],()=>{},n=>{this._errorMessage=n})},s=>{this._errorMessage=s})}render(){return y`<slot></slot>${this._errorMessage&&y`<div style="color:red">
311
+ <h1>Error</h1>
312
+ ${this._errorMessage}
313
+ </div>`}`}};customElements.define("qti-portable-custom-interaction",Nn);var vt=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,i){this.data[t]=i},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,i)=>{if(this._dragCopy===null&&this._dragRunning){this._dragSrc.style.opacity=this._COPYOPACITY,this._dragCopy=this._dragSrc.cloneNode(!0);let r=window.getComputedStyle(this._dragSrc);if(this._dragCopy.style="",this._dragCopy.setAttribute("dragclone",""),this.copyStylesDragClone)for(let s of r)this._dragCopy.style[s]=r.getPropertyValue(s);this._calculateDragCopyPosition(i),this._dragCopy.style.top=i.clientY-this._copyOffset.y+"px",this._dragCopy.style.left=i.clientX-this._copyOffset.x+"px",this._dragCopy.style.position="absolute",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 r=this;requestAnimationFrame(function(){r._touchEndCalled||r._dragCopy===null||(r._dragCopy.style.top=i.clientY-r._copyOffset.y+"px",r._dragCopy.style.left=i.clientX-r._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 vt._instance?vt._instance:(vt._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(i=>{i.addEventListener("touchstart",this._touchStart.bind(this),{passive:!1,capture:!1}),i.addEventListener("mousedown",this._touchStart.bind(this),{passive:!1,capture:!1})})}_touchStart(t){this._touchBegin=Date.now();let{x:i,y:r}=this.getPositionFromEvent(t);if(this._touchDown={x:i,y:r},this._dragSrc=t.currentTarget,this._canDrag=!0,this.dragOnClick){let s={clientX:i,clientY:r};this._dragRunning=!0,this.createDragCopy(t,s)}t.preventDefault()}_touchMove(t){if(this._canDrag&&this._dragSrc){let{x:i,y:r}=this.getPositionFromEvent(t),s={clientX:i,clientY:r};this._getDelta(s)>=this._DRAGDELTA&&(this._dragRunning=!0),this.createDragCopy(t,s),t.preventDefault()}}_touchEnd(t){var i;if(this._touchEndCalled=!0,this._canDrag=!1,this._currentDropContainer)this._dispatchEvent(this._currentDropContainer,"drop"),this._dispatchEvent(this._dragSrc,"dragend");else if(this._dragRunning){let r=new CustomEvent("dragend",{bubbles:!0,cancelable:!0});r.dataTransfer={dropEffect:"none"},(i=this._dragSrc)==null||i.dispatchEvent(r)}this._reset()}_touchCancel(t){this._reset()}_findDroppable(t){let i,r=t.composedPath().find(s=>{if(s.nodeType===1&&s.nodeName!=="SLOT"&&s.hasAttribute("dropzone"))return s});if(r){let s=r.getRootNode(),n=this._getPoint(t);i=s.elementFromPoint(n.x,n.y)}return i}_getPoint(t,i){return t&&t.touches&&(t=t.touches[0]),{x:i?t.pageX:t.clientX,y:i?t.pageY:t.clientY}}_calculateDragCopyPosition(t){let i=this._dragSrc.getBoundingClientRect();this._copyOffset.x=t.clientX-i.left,this._copyOffset.y=t.clientY-i.top}_getDelta(t){let i=Math.abs(t.clientX-this._touchDown.x),r=Math.abs(t.clientY-this._touchDown.y);return i+r}_dispatchEvent(t,i,r=!0){if(!t)return!1;let s=new CustomEvent(i,{bubbles:r,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,i){this.data[t]=i},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 i;if(t.type=="touchstart"||t.type=="touchmove"||t.type=="touchend"||t.type=="touchcancel"){let r=typeof t.originalEvent=="undefined"?t:t.originalEvent,s=r.touches[0]||r.changedTouches[0];i={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")&&(i={x:t.clientX,y:t.clientY});return i}};var Uc=(e,t,i)=>{class r extends e{constructor(){super(...arguments);this.disabled=!1}firstUpdated(o){if(this.classList.contains("qti-match-tabular"))return;super.firstUpdated(o);let c=Array.from(t?this.shadowRoot.querySelectorAll(i):this.querySelectorAll(i));this.dragoverHandler=this.dragoverHandler.bind(this),this.dragleaveHandler=this.dragleaveHandler.bind(this),this.dropHandler=this.dropHandler.bind(this),c.forEach(l=>{l.setAttribute("dropzone","move"),l.addEventListener("dragleave",this.dragleaveHandler),this.attachHandler(l)});for(let l of c)this.observer=new MutationObserver(p=>{p.forEach(b=>{if(b.type==="attributes")switch(b.attributeName){case"disabled":{l.hasAttribute("disabled")?this.removeHandler(l):this.attachHandler(l);break}}})}),this.observer.observe(l,{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 c=o.currentTarget,l=this.querySelector(`[identifier=${o.dataTransfer.getData("text")}`),p=l||this.shadowRoot.querySelector(`[identifier=${o.dataTransfer.getData("text")}`);return c?p.parentElement.getAttribute("identifier")!==c.getAttribute("identifier")&&c.appendChild(p):console.error(`cannot find droppable, target: ${o.target?JSON.stringify(o.target):"null"}`),c.removeAttribute("active"),!1}dragleaveHandler(o){return o.preventDefault(),o.currentTarget.removeAttribute("active"),!1}}return _([C({type:Boolean,reflect:!0})],r.prototype,"disabled",2),r};var Fc=(e,t,i)=>{class r extends e{}return r};function $c(e,t){let i,r=D({},t);return(s,n)=>{let{connectedCallback:o,disconnectedCallback:c}=s;s.connectedCallback=function(){var b;o.call(this);let l=x=>{let N=Array.from(this.querySelectorAll(e));for(let I of x){let O=Array.from(I.addedNodes).map(Q=>Q),H=Array.from(I.addedNodes).map(Q=>Q);I.type==="childList"&&O.find(Q=>N.includes(Q))&&this[n](O,H)}};i=new MutationObserver(l),i.observe(this,{childList:!0,subtree:!0});let p=(b=this.querySelectorAll(e))!=null?b:[];this[n](Array.from(p),[])},s.disconnectedCallback=function(){c.call(this),i.disconnect()}}}var ze=(e,t,i,r)=>{class s extends Fc(Uc(e,i,r),r,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(c,l){if(this.classList.contains("qti-match-tabular"))return;c.filter(b=>!this.draggables||!this.draggables.get(b)).length>0&&(this.dragDropApi.addDraggables(c),c.forEach(b=>{this.draggables.set(b,{parent:b.parentElement,index:Array.from(b.parentNode.children).indexOf(b)}),b.setAttribute("qti-draggable","true"),b.addEventListener("dragstart",x=>{x.dataTransfer.setData("text",x.currentTarget.getAttribute("identifier")),b.setAttribute("dragging","")}),b.addEventListener("dragend",x=>{if(x.preventDefault(),b.removeAttribute("over"),b.removeAttribute("dragging"),x.dataTransfer.dropEffect==="none"&&this.configuration.dragCanBePlacedBack){let N=x.currentTarget,I=this.draggables.get(N),O=I.index<I.parent.children.length?I.index:I.parent.children.length-1,H=I.parent,Q=I.parent.children[O];H.insertBefore(N,Q),this.saveResponse(),this.checkMaxMatchAssociations()}x.dataTransfer.dropEffect==="move"&&(this.saveResponse(),this.checkMaxMatchAssociations())})}))}handleDragOptionsChanged(c,l){this.dragDropApi.copyStylesDragClone=l.copyStylesDragClone,this.dragDropApi.dragOnClick=l.dragOnClick}handleDisabledChange(c,l){this.draggables.forEach((p,b)=>{l?b.setAttribute("disabled",""):b.removeAttribute("disabled"),l?b.removeAttribute("qti-draggable"):b.setAttribute("qti-draggable","true")})}handleReadonlyChange(c,l){this.draggables.forEach((p,b)=>{l?b.setAttribute("readonly",""):b.removeAttribute("readonly"),l?b.removeAttribute("qti-draggable"):b.setAttribute("qti-draggable","true")})}firstUpdated(c){super.firstUpdated(c),this.droppables=Array.from(i?this.shadowRoot.querySelectorAll(r):this.querySelectorAll(r))}connectedCallback(){super.connectedCallback(),this.dragDropApi=new vt,this.dispatchEvent(new CustomEvent("qti-register-interaction",{bubbles:!0,composed:!0,detail:this}))}reset(c=!0){this.draggables.forEach((l,p)=>{let b=l.parent.children,x=l.index<b.length?l.index:b.length;l.parent.insertBefore(p,b[x])}),c&&this.saveResponse()}checkMaxMatchAssociations(){this.droppables.forEach(c=>{let p=+(c.getAttribute("match-max")||1)<=(c.children.length||0);p?c.setAttribute("disabled",""):c.removeAttribute("disabled"),p?c.removeAttribute("dropzone"):c.setAttribute("dropzone","move")})}set response(c){this.classList.contains("qti-match-tabular")||(this.reset(!1),c!==null&&Array.isArray(c)&&c.forEach(l=>{let[p,...b]=l.split(" ").reverse();if(p){let x=this.droppables.find(N=>N.getAttribute("identifier")===p);b.forEach(N=>{let I=this.querySelector(`[identifier=${N}]`);x?I?(x.appendChild(I),this.checkMaxMatchAssociations()):console.error(`cannot find draggable with identifier: ${N}`):console.error(`cannot find droppable with identifier: ${p}`)})}}))}validate(){let l=(i?Array.from(this.shadowRoot.querySelectorAll(r)):Array.from(this.querySelectorAll(r))).filter(p=>p.childElementCount>0).length;return this.minAssociations<=0||this.minAssociations<=l}saveResponse(){let c=this.droppables.map(l=>{var b;let p="";return((b=l.children)==null?void 0:b.length)>0&&(p+=Array.from(l.children).map(x=>x.getAttribute("identifier")).join(" ")+" "),p+=l.getAttribute("identifier"),p});this.dispatchEvent(new CustomEvent("qti-interaction-response",{bubbles:!0,composed:!0,detail:{responseIdentifier:this.responseIdentifier,response:c}}))}}return _([$c(t)],s.prototype,"reInitDragAndDrop",1),_([C({type:String,attribute:"response-identifier"})],s.prototype,"responseIdentifier",2),_([C({attribute:!1,type:Object})],s.prototype,"configuration",2),_([Z("configuration")],s.prototype,"handleDragOptionsChanged",1),_([C({type:Boolean,reflect:!0})],s.prototype,"disabled",2),_([Z("disabled",{waitUntilFirstUpdate:!0})],s.prototype,"handleDisabledChange",1),_([C({type:Boolean,reflect:!0})],s.prototype,"readonly",2),_([Z("readonly",{waitUntilFirstUpdate:!0})],s.prototype,"handleReadonlyChange",1),_([C({type:Number,reflect:!0,attribute:"min-associations"})],s.prototype,"minAssociations",2),_([C({type:Number,reflect:!0,attribute:"max-associations"})],s.prototype,"maxAssociations",2),s};var er=class extends ze(L,"qti-simple-associable-choice",!0,"drop-list"){render(){return y` <slot name="prompt"></slot>
314
+ <slot name="qti-simple-associable-choice"></slot>
315
+ ${this._childrenMap.length>0&&Array.from(Array(Math.ceil(this._childrenMap.length/2)).keys()).map((i,r)=>y`<div part="associables-container">
316
+ <drop-list part="drop-list" identifier="droplist${r}_left"></drop-list>
317
+ <drop-list part="drop-list" identifier="droplist${r}_right"></drop-list>
318
+ </div>`)}`}connectedCallback(){super.connectedCallback(),this._childrenMap=Array.from(this.querySelectorAll("qti-simple-associable-choice"))}};er.styles=F`
319
+ :host {
320
+ display: block; /* necessary to calculate scaling position */
321
+ }
322
+ slot[name='qti-simple-associable-choice'] {
323
+ display: flex;
324
+ flex-wrap: wrap;
325
+ gap: 0.5rem;
326
+ }
327
+ `,_([is()],er.prototype,"_childrenMap",2);customElements.define("qti-associate-interaction",er);var Sn=class extends L{connectedCallback(){super.connectedCallback(),this.setAttribute("slot","qti-simple-associable-choice"),this.setAttribute("part","qti-simple-associable-choice")}render(){return y`
328
+ <slot></slot>
329
+ <slot name="qti-simple-associable-choice"></slot>
330
+ `}};customElements.define("qti-simple-associable-choice",Sn);var As=class extends ze(L,"qti-gap-text",!1,"qti-gap"){render(){return y` <slot name="qti-gap-text"></slot>
331
+ <slot></slot>`}};As.styles=F`
332
+ :host {
333
+ display: block; /* necessary to calculate scaling position */
334
+ }
335
+ slot[name='qti-gap-text'] {
336
+ display: flex;
337
+ flex-wrap: wrap;
338
+ gap: var(--qti-gap, 0.5rem);
339
+ padding: var(--qti-gap, 0.5rem) 0px;
340
+ }
341
+ `;customElements.define("qti-gap-match-interaction",As);var In=class extends L{connectedCallback(){super.connectedCallback(),this.setAttribute("slot","qti-gap-text")}render(){return y`<slot></slot>`}};customElements.define("qti-gap-text",In);var Rn=class extends L{render(){return y` <slot name="qti-gap-text"></slot>`}};customElements.define("qti-gap",Rn);var Ln=class extends L{};customElements.define("qti-inline-choice",Ln);function gi(e,t,i,r){switch(e){case"circle":{let[s,n,o]=t,c=s/i.width*100,l=n/i.height*100,p=o/i.width*100;r.style.left=c-p+"%",r.style.top=l-p+"%",r.style.width=r.style.height=4*p+"px",r.style.clipPath="circle(50% at 50% 50%)"}break;case"rect":{let[s,n,o,c]=t,l=s/i.width*100,p=n/i.height*100,b=o/i.width*100,x=c/i.height*100;r.style.left=l+"%",r.style.top=p+"%",r.style.width=b-l+"%",r.style.height=x-p+"%"}break;case"poly":{let s=t.reduce((H,Q,xe,te)=>{if(xe%2===1){let X=H.pop();H[H.length]={x:X,y:te[xe]}}else H.push(Q);return H},[]),n=Math.min(...s.map(H=>H.x)),o=Math.max(...s.map(H=>H.x)),c=Math.min(...s.map(H=>H.y)),l=Math.max(...s.map(H=>H.y)),p=n/i.width*100,b=c/i.height*100,x=o/i.width*100,N=l/i.height*100;r.style.left=n/i.width*100+"%",r.style.top=c/i.height*100+"%",r.style.width=x-p+"%",r.style.height=N-b+"%";let O=s.map(H=>({x:(H.x-n)/(o-n)*100,y:(H.y-c)/(l-c)*100})).map(H=>Math.round(H.x)+"% "+Math.round(H.y)+"%").join(",");r.style.clipPath=`polygon(${O})`}break;default:break}}var vs=class extends pe{render(){return y`
342
+ <slot name="prompt"></slot>
343
+ <!-- slot for the prompt -->
344
+ <slot></slot>
345
+ <!-- slot for the image and hotspots -->
346
+ `}positionHotspotOnRegister(i){let r=this.querySelector("img"),s=i.target,n=s.getAttribute("coords"),o=s.getAttribute("shape"),c=n.split(",").map(l=>parseInt(l));gi(o,c,r,s)}connectedCallback(){super.connectedCallback(),this.addEventListener("qti-register-hotspot",this.positionHotspotOnRegister)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("qti-register-hotspot",this.positionHotspotOnRegister)}};vs.styles=[F`
347
+ slot:not([name='prompt']) {
348
+ position: relative; /* qti-hotspot-choice relative to the slot */
349
+ display: block;
350
+ width: fit-content; /* hotspots not stretching further if image is at max size */
351
+ }
352
+ ::slotted(img) {
353
+ /* image not selectable anymore */
354
+ pointer-events: none;
355
+ user-select: none;
356
+ }
357
+ `];customElements.define("qti-graphic-associate-interaction",vs);var ys=class extends ze(L,"qti-gap-img",!1,"qti-associable-hotspot"){render(){return y` <slot></slot>
358
+ <slot name="qti-gap-img"></slot>`}positionHotspotOnRegister(t){let i=t.target,r=i.getAttribute("coords"),s=i.getAttribute("shape"),n=r.split(",").map(o=>parseInt(o));switch(s){case"circle":{let[o,c,l]=n;i.style.left=o-l+"px",i.style.top=c-l+"px",i.style.width=i.style.height=2*l+"px"}break;case"rect":{let[o,c,l,p]=n;i.style.left=o+"px",i.style.top=c+"px",i.style.width=l-o+"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)}};ys.styles=F`
359
+ slot[name='qti-gap-img'] {
360
+ display: flex;
361
+ gap: 1rem;
362
+ }
363
+ `;customElements.define("qti-graphic-gap-match-interaction",ys);var Cs=class extends pe{render(){return y`
364
+ <slot name="prompt"></slot>
365
+ <!-- slot for the prompt -->
366
+ <slot></slot>
367
+ <!-- slot for the image and hotspots -->
368
+ `}setHotspotOrder(i){let{identifier:r}=i.detail,s=this._choiceElements.find(o=>o.getAttribute("identifier")===r),n=this._choiceElements.length;if(!this.choiceOrdering){if(this.choiceOrdering=!0,s.order==null){if(this._choiceElements.filter(o=>o.order>0).length>=n){this.choiceOrdering=!1;return}s.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)),s.order=null;this.choiceOrdering=!1}}positionHotspotOnRegister(i){let r=this.querySelector("img"),s=i.target,n=s.getAttribute("coords"),o=s.getAttribute("shape"),c=n.split(",").map(l=>parseInt(l));gi(o,c,r,s)}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)}};Cs.styles=[F`
369
+ slot:not([name='prompt']) {
370
+ position: relative; /* qti-hotspot-choice relative to the slot */
371
+ display: block;
372
+ width: fit-content; /* hotspots not stretching further if image is at max size */
373
+ }
374
+ ::slotted(img) {
375
+ /* image not selectable anymore */
376
+ pointer-events: none;
377
+ user-select: none;
378
+ }
379
+ `];customElements.define("qti-graphic-order-interaction",Cs);var Ns=class extends pe{render(){return y`
380
+ <slot name="prompt"></slot>
381
+ <!-- slot for the prompt -->
382
+ <slot></slot>
383
+ <!-- slot for the image and hotspots -->
384
+ `}positionHotspotOnRegister(t){let i=this.querySelector("img"),r=t.target,s=r.getAttribute("coords"),n=r.getAttribute("shape"),o=s.split(",").map(c=>parseInt(c));gi(n,o,i,r)}connectedCallback(){super.connectedCallback(),this.addEventListener("qti-register-choice",this.positionHotspotOnRegister)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("qti-register-choice",this.positionHotspotOnRegister)}};Ns.styles=[F`
385
+ slot:not([name='prompt']) {
386
+ position: relative; /* qti-hotspot-choice relative to the slot */
387
+ display: block;
388
+ width: fit-content; /* hotspots not stretching further if image is at max size */
389
+ }
390
+ ::slotted(img) {
391
+ /* image not selectable anymore */
392
+ pointer-events: none;
393
+ user-select: none;
394
+ /* width:100%; */
395
+ }
396
+ `];customElements.define("qti-hotspot-interaction",Ns);var tr=class extends Ne{};tr.styles=F`
397
+ :host {
398
+ position: absolute;
399
+ }
400
+ `,_([C({attribute:"aria-ordervalue",type:Number,reflect:!0})],tr.prototype,"order",2);customElements.define("qti-hotspot-choice",tr);var Ss=class extends ze(L,"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 y` <slot name="prompt"></slot>
401
+ <slot></slot>`}};Ss.styles=[];customElements.define("qti-match-interaction",Ss);var Is=class extends he{constructor(){super()}reset(){}validate(){return!0}set response(i){}static get properties(){return ie(D({},he.properties),{step:{type:Number,attribute:"step",default:10}})}render(){return y` <slot name="prompt"></slot>
402
+ <slot></slot>`}connectedCallback(){super.connectedCallback()}};Is.styles=[F``];customElements.define("qti-media-interaction",Is);var ir=class extends ze(L,"qti-simple-choice",!0,"drop-list"){static get properties(){return{_classNames:{type:String,attribute:"class"},_orientation:{type:String,attribute:"orientation"}}}render(){return y` <slot name="prompt"> </slot>
403
+ <div class=${`container ${this._classNames}`}>
404
+ <slot class=${this._orientation==="vertical"?"ver":"hor"}> </slot>
405
+ <div class=${this._orientation==="vertical"?"ver":"hor"}>
406
+ ${this.childrenMap.map((i,r)=>y`<drop-list part="drop-list" identifier="droplist${r}"></drop-list>`)}
407
+ </div>
408
+ </div>`}connectedCallback(){super.connectedCallback(),this.childrenMap=Array.from(this.querySelectorAll("qti-simple-choice")),this.childrenMap.forEach(i=>i.setAttribute("part","qti-simple-choice"))}};ir.layoutClass=["qti-choices-top","qti-choices-bottom","qti-choices-left","qti-choices-right"],ir.styles=[F`
409
+ .hor {
410
+ display: grid;
411
+ gap: var(--qti-gap, 2px);
412
+ grid-auto-flow: column;
413
+ grid-auto-columns: 1fr;
414
+ }
415
+ .ver {
416
+ width: 50%;
417
+ display: grid;
418
+ gap: var(--qti-gap, 2px);
419
+ grid-auto-flow: row;
420
+ grid-auto-columns: 1fr;
421
+ }
422
+ .container {
423
+ display: flex;
424
+ gap: var(--qti-gap, 2px);
425
+ }
426
+ .qti-choices-top {
427
+ flex-direction: column;
428
+ }
429
+ .qti-choices-bottom {
430
+ flex-direction: column-reverse;
431
+ }
432
+ .qti-choices-left {
433
+ flex-direction: row;
434
+ }
435
+ .qti-choices-right {
436
+ flex-direction: row-reverse;
437
+ }
438
+ drop-list:empty::before {
439
+ content: 'drop here';
440
+ color: var(--qti-placeholder-text);
441
+ }
442
+ `];customElements.define("qti-order-interaction",ir);var Rs=class extends pe{constructor(){super()}render(){return y`<slot></slot>
443
+ <div class="notification"></div>`}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}};Rs.styles=[];customElements.define("qti-select-point-interaction",Rs);var Se=class extends he{constructor(){super(...arguments);this.stepLabel=!1;this.reverse=!1;this._handleDisabledChange=(i,r)=>{};this._handleReadonlyChange=(i,r)=>{}}set min(i){this._min=i,this.style.setProperty("--min",`${this._min}`)}get min(){return this._min}set max(i){this._max=i,this.style.setProperty("--max",`${this._max}`)}get max(){return this._max}set step(i){this._step=i,this.style.setProperty("--step",`${this._step}`)}get step(){return this._step}reset(){}validate(){return!0}set response(i){if(Array.isArray(i)){console.error("QtiSliderInteraction: response is an array, but should be a single value");return}let r=parseInt(i);if(Number.isNaN(r)){console.error("QtiSliderInteraction: response is not a number");return}this.value=r}render(){this.value<this.min&&(this.value=this.min),this.value>this.max&&(this.value=this.max);let i=(this.value-this.min)/(this.max-this.min)*100;return y`<slot name="prompt"></slot>
444
+ <div
445
+ id="rail"
446
+ @mousedown=${this._onMouseDown}
447
+ @touchstart=${this._onTouchMove}
448
+ part="rail"
449
+ >
450
+ <div id="knob" part="knob" style="left:${i}%"></div>
451
+ </div>`}connectedCallback(){super.connectedCallback(),this.step=1,this.setAttribute("tabindex","0"),this.setAttribute("role","slider")}_onTouchMove(i){let r=c=>{let{x:l}=this.getPositionFromEvent(c),p=l-this._rail.getBoundingClientRect().left-document.documentElement.scrollLeft;this.calculateValue(p),c.stopPropagation()},s=()=>{document.removeEventListener("touchmove",r),document.removeEventListener("touchend",s),this.saveResponse(this.value.toString())};document.addEventListener("touchmove",r),document.addEventListener("touchend",s);let{x:n}=this.getPositionFromEvent(i),o=n-this._rail.getBoundingClientRect().left-document.documentElement.scrollLeft;this.calculateValue(o),i.stopPropagation()}_onMouseDown(i){let r=o=>{let c=o.pageX-this._rail.getBoundingClientRect().left-document.documentElement.scrollLeft;this.calculateValue(c),o.preventDefault(),o.stopPropagation()},s=()=>{document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",s),this.saveResponse(this.value.toString())};document.addEventListener("mousemove",r),document.addEventListener("mouseup",s);let n=i.pageX-this._rail.getBoundingClientRect().left-document.documentElement.scrollLeft;this.calculateValue(n),i.preventDefault(),i.stopPropagation()}calculateValue(i){let r=this.min+(this.max-this.min)*i/this.offsetWidth,s=this.min+Math.round((r-this.min)/this._step)*this._step;this.value=s}getPositionFromEvent(i){let r;if(i.type=="touchstart"||i.type=="touchmove"||i.type=="touchend"||i.type=="touchcancel"){let s=typeof i.originalEvent=="undefined"?i:i.originalEvent,n=s.touches[0]||s.changedTouches[0];r={x:n.pageX,y:n.pageY}}else(i.type=="mousedown"||i.type=="mouseup"||i.type=="mousemove"||i.type=="mouseover"||i.type=="mouseout"||i.type=="mouseenter"||i.type=="mouseleave")&&(r={x:i.clientX,y:i.clientY});return r}};Se.styles=[F``],_([oi("#knob")],Se.prototype,"_knob",2),_([oi("#rail")],Se.prototype,"_rail",2),_([C({type:Number})],Se.prototype,"value",2),_([C({type:Boolean,attribute:"step-label"})],Se.prototype,"stepLabel",2),_([C({type:Boolean})],Se.prototype,"reverse",2),_([C({type:Number,attribute:"lower-bound"})],Se.prototype,"min",1),_([C({type:Number,attribute:"upper-bound"})],Se.prototype,"max",1),_([C({type:Number,attribute:"step"})],Se.prototype,"step",1),_([Z("disabled",{waitUntilFirstUpdate:!0})],Se.prototype,"_handleDisabledChange",2),_([Z("readonly",{waitUntilFirstUpdate:!0})],Se.prototype,"_handleReadonlyChange",2);customElements.define("qti-slider-interaction",Se);var Ls=class extends K{constructor(){super(...arguments);this.value=0;this.render=()=>y`${this.value}`}levenshtein(i,r){let s;if(i.length===0)return r.length;if(r.length===0)return i.length;i.length>r.length&&(s=i,i=r,r=s);let n=i.length,o=r.length,c=Array(n),l,p,b;for(l=0;l<=n;l++)c[l]=l;for(l=1;l<=o;l++){for(b=l,p=1;p<=n;p++)s=c[p-1].toString(),c[p-1]=b,b=Math.min(Number(s)+(r.charAt(l-1)!==i.charAt(p-1)?1:0),b+1,c[p]+1);c[p-1]=b}return b}calculate(){let i=this.firstElementChild,r=this.lastElementChild,s=i.calculate(),n=r.calculate();return this.value=100-this.levenshtein(s.toString().trim(),n.toString().trim())/n.toString().length*100,this.value}};Ls.properties={value:{}};customElements.define("qti-custom-operator-levenshtein",Ls);var On=class extends L{render(){return y``}calculate(){var r;let i=(r=this.firstElementChild.calculate())==null?void 0:r.toString();return i?i.replace(/[^0-9$.,]/g,""):""}};customElements.define("qti-custom-operator-numeric",On);var Os=class extends L{constructor(){super(...arguments);this.render=()=>y`${this.value}`}calculate(){var n;let i,s=(n=this.firstElementChild.calculate())==null?void 0:n.toString();return this.value=s?this.parseNumber(s,i):"",this.value}parseNumber(i,r=navigator.languages){let s=Intl.NumberFormat(r).format(1.1),n=new RegExp(`[^-+0-9${s.charAt(1)}]`,"g"),c=i.replace(n,"").replace(s.charAt(1),".");return parseFloat(c)}};Os.properties={value:{}};customElements.define("qti-custom-operator-parse-numeric-nl",Os);var Dn=class extends L{render(){return y``}calculate(){var r;let i=(r=this.firstElementChild.calculate())==null?void 0:r.toString();return i?i.replace(/ /g,""):""}};customElements.define("qti-custom-operator-remove-spaces",Dn);var wn=class extends L{render(){return y``}calculate(){return this.firstElementChild.calculate().toString().trim()}};customElements.define("qti-custom-operator-trim",wn);var Je=class extends L{constructor(){super(...arguments);this.disabled=!1;this.readonly=!1;this.logger=new Et(this,Tt,i=>{this.style.display=i.view==="scorer"?"block":"none"},!0)}textChanged(i){if(this.disabled||this.readonly)return;let r=i.target;this.value=r.value,this.closest("qti-test").manualOutcomeValue=this.value}render(){return y`<input
452
+ part="input"
453
+ type="number"
454
+ spellcheck="false"
455
+ autocomplete="off"
456
+ @keyup=${this.textChanged}
457
+ @change=${this.textChanged}
458
+ placeholder="score"
459
+ min=${this.min}
460
+ max=${this.max}
461
+ .value=${this.value}
462
+ size="10"
463
+ ?disabled=${this.disabled}
464
+ ?readonly=${this.readonly}
465
+ />`}};Je.styles=F`
466
+ :host {
467
+ display: none;
468
+ }
469
+ `,_([C({type:Boolean})],Je.prototype,"disabled",2),_([C({type:Boolean})],Je.prototype,"readonly",2),_([C({type:Number})],Je.prototype,"value",2),_([C({type:Number})],Je.prototype,"min",2),_([C({type:Number})],Je.prototype,"max",2),Je=_([ue("qti-manual-scoring")],Je);var Vc=(e,t)=>{class i 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 c=n/o.clientWidth;this.scale=c;let l=-o.clientHeight*(1-c)+"px",p=-o.clientWidth*(1-c)+"px";requestAnimationFrame(()=>{o.style.transform=`scale(${this.scale})`,o.style.margin=`0 ${p} ${l} 0`})}}}return _([C({type:Number,reflect:!0})],i.prototype,"scale",2),_([C({type:Boolean,attribute:!1})],i.prototype,"scales",1),i};var rr=class extends Ft{constructor(t){if(super(t),this.et=re,t.type!==Xi.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===re||t==null)return this.ft=void 0,this.et=t;if(t===at)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 i=[t];return i.raw=i,this.ft={_$litType$:this.constructor.resultType,strings:i,values:[]}}};rr.directiveName="unsafeHTML",rr.resultType=1;var Yc=Ki(rr);var Gc=`
470
+ @charset "UTF-8";
471
+ .qti-underline {
472
+ text-decoration: underline;
473
+ }
474
+
475
+ .qti-align-left {
476
+ text-align: left;
477
+ }
478
+
479
+ .qti-align-center {
480
+ text-align: center;
481
+ }
482
+
483
+ .qti-align-right {
484
+ text-align: right;
485
+ }
486
+
487
+ .qti-valign-top {
488
+ vertical-align: top;
489
+ }
490
+
491
+ .qti-valign-middle {
492
+ vertical-align: middle;
493
+ }
494
+
495
+ .qti-valign-baseline {
496
+ vertical-align: baseline;
497
+ }
498
+
499
+ .qti-valign-bottom {
500
+ vertical-align: bottom;
501
+ }
502
+
503
+ .qti-fullwidth {
504
+ width: 100%;
505
+ }
506
+
507
+ .qti-hidden {
508
+ display: none;
509
+ }
510
+
511
+ .qti-visually-hidden {
512
+ position: fixed !important;
513
+ overflow: hidden;
514
+ width: 1px;
515
+ height: 1px;
516
+ border: 0;
517
+ margin: -1px;
518
+ clip: rect(1px 1px 1px 1px);
519
+ }
520
+
521
+ .qti-bordered {
522
+ padding: 2px;
523
+ border: 1px solid #888;
524
+ }
525
+
526
+ .qti-well {
527
+ min-height: 20px;
528
+ padding: 19px;
529
+ border: 1px solid #e3e3e3;
530
+ border-radius: 4px;
531
+ margin-bottom: 20px;
532
+ background-color: #f5f5f5;
533
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
534
+ }
535
+
536
+ .qti-layout-row {
537
+ display: flow-root;
538
+ width: 100%;
539
+ }
540
+ .qti-layout-row [class*=qti-layout-col] {
541
+ margin-left: 2.1276595745%;
542
+ float: left;
543
+ }
544
+ .qti-layout-row [class*=qti-layout-col]:first-child {
545
+ margin-left: 0;
546
+ }
547
+ .qti-layout-row .qti-layout-col12 {
548
+ width: 100%;
549
+ }
550
+ .qti-layout-row .qti-layout-offset12 {
551
+ margin-left: 104.2553191489%;
552
+ }
553
+ .qti-layout-row .qti-layout-offset12:first-child {
554
+ margin-left: 102.1276595745%;
555
+ }
556
+ .qti-layout-row .qti-layout-col11 {
557
+ width: 91.4893617021%;
558
+ }
559
+ .qti-layout-row .qti-layout-offset11 {
560
+ margin-left: 95.7446808511%;
561
+ }
562
+ .qti-layout-row .qti-layout-offset11:first-child {
563
+ margin-left: 93.6170212766%;
564
+ }
565
+ .qti-layout-row .qti-layout-col10 {
566
+ width: 82.9787234043%;
567
+ }
568
+ .qti-layout-row .qti-layout-offset10 {
569
+ margin-left: 87.2340425532%;
570
+ }
571
+ .qti-layout-row .qti-layout-offset10:first-child {
572
+ margin-left: 85.1063829787%;
573
+ }
574
+ .qti-layout-row .qti-layout-col9 {
575
+ width: 74.4680851064%;
576
+ }
577
+ .qti-layout-row .qti-layout-offset9 {
578
+ margin-left: 78.7234042553%;
579
+ }
580
+ .qti-layout-row .qti-layout-offset9:first-child {
581
+ margin-left: 76.5957446809%;
582
+ }
583
+ .qti-layout-row .qti-layout-col8 {
584
+ width: 65.9574468085%;
585
+ }
586
+ .qti-layout-row .qti-layout-offset8 {
587
+ margin-left: 70.2127659574%;
588
+ }
589
+ .qti-layout-row .qti-layout-offset8:first-child {
590
+ margin-left: 68.085106383%;
591
+ }
592
+ .qti-layout-row .qti-layout-col7 {
593
+ width: 57.4468085106%;
594
+ }
595
+ .qti-layout-row .qti-layout-offset7 {
596
+ margin-left: 61.7021276596%;
597
+ }
598
+ .qti-layout-row .qti-layout-offset7:first-child {
599
+ margin-left: 59.5744680851%;
600
+ }
601
+ .qti-layout-row .qti-layout-col6 {
602
+ width: 48.9361702128%;
603
+ }
604
+ .qti-layout-row .qti-layout-offset6 {
605
+ margin-left: 53.1914893617%;
606
+ }
607
+ .qti-layout-row .qti-layout-offset6:first-child {
608
+ margin-left: 51.0638297872%;
609
+ }
610
+ .qti-layout-row .qti-layout-col5 {
611
+ width: 40.4255319149%;
612
+ }
613
+ .qti-layout-row .qti-layout-offset5 {
614
+ margin-left: 44.6808510638%;
615
+ }
616
+ .qti-layout-row .qti-layout-offset5:first-child {
617
+ margin-left: 42.5531914894%;
618
+ }
619
+ .qti-layout-row .qti-layout-col4 {
620
+ width: 31.914893617%;
621
+ }
622
+ .qti-layout-row .qti-layout-offset4 {
623
+ margin-left: 36.170212766%;
624
+ }
625
+ .qti-layout-row .qti-layout-offset4:first-child {
626
+ margin-left: 34.0425531915%;
627
+ }
628
+ .qti-layout-row .qti-layout-col3 {
629
+ width: 23.4042553191%;
630
+ }
631
+ .qti-layout-row .qti-layout-offset3 {
632
+ margin-left: 27.6595744681%;
633
+ }
634
+ .qti-layout-row .qti-layout-offset3:first-child {
635
+ margin-left: 25.5319148936%;
636
+ }
637
+ .qti-layout-row .qti-layout-col2 {
638
+ width: 14.8936170213%;
639
+ }
640
+ .qti-layout-row .qti-layout-offset2 {
641
+ margin-left: 19.1489361702%;
642
+ }
643
+ .qti-layout-row .qti-layout-offset2:first-child {
644
+ margin-left: 17.0212765957%;
645
+ }
646
+ .qti-layout-row .qti-layout-col1 {
647
+ width: 6.3829787234%;
648
+ }
649
+ .qti-layout-row .qti-layout-offset1 {
650
+ margin-left: 10.6382978723%;
651
+ }
652
+ .qti-layout-row .qti-layout-offset1:first-child {
653
+ margin-left: 8.5106382979%;
654
+ }
655
+
656
+ :root {
657
+ /**
658
+ * @tokens Colors
659
+ * @presenter Color
660
+ */
661
+ --qti-primary: rgb(30, 80, 127);
662
+ --qti-primary-color: var(--qti-primary);
663
+ --qti-focus-color: #98cbfa;
664
+ --qti-border-color: #cdd5df;
665
+ --qti-shadow-color: #838c96;
666
+ --qti-text-color: #4a5a69;
667
+ --qti-background: #f2f4f5;
668
+ --qti-placeholder-text: var(--qti-border-color);
669
+ --qti-white: #fff;
670
+ /**
671
+ * @tokens Others
672
+ */
673
+ --qti-padding-x: 0.7rem;
674
+ --qti-padding-y: 0.5rem;
675
+ --qti-border-width: 2px;
676
+ --qti-shadow-blur: 2px;
677
+ --qti-border-radius: 2px;
678
+ --qti-gap: 2px;
679
+ }
680
+
681
+ html,
682
+ body,
683
+ qti-test {
684
+ height: 100%;
685
+ }
686
+
687
+ qti-test {
688
+ display: flex;
689
+ flex-direction: column;
690
+ gap: 1rem;
691
+ height: 100%;
692
+ }
693
+ qti-test qti-test-nav {
694
+ display: flex;
695
+ justify-content: space-between;
696
+ gap: 1rem;
697
+ }
698
+ qti-test qti-test-nav qti-test-check,
699
+ qti-test qti-test-nav qti-test-score,
700
+ qti-test qti-test-nav qti-test-prev,
701
+ qti-test qti-test-nav qti-test-show-correct,
702
+ qti-test qti-test-nav qti-test-next {
703
+ display: flex;
704
+ align-items: center;
705
+ justify-content: center;
706
+ padding: 5px 10px;
707
+ border-radius: 3px;
708
+ color: rgb(56, 56, 56);
709
+ text-decoration: none;
710
+ display: inline-block;
711
+ padding: 8px 16px;
712
+ border: 0;
713
+ background: #eeeeee;
714
+ color: rgb(83, 83, 83);
715
+ cursor: pointer;
716
+ font-size: 16px;
717
+ font-weight: 700;
718
+ }
719
+ qti-test qti-test-nav qti-test-check:hover,
720
+ qti-test qti-test-nav qti-test-score:hover,
721
+ qti-test qti-test-nav qti-test-prev:hover,
722
+ qti-test qti-test-nav qti-test-show-correct:hover,
723
+ qti-test qti-test-nav qti-test-next:hover {
724
+ background: #dadada;
725
+ transition: all 0.3s ease;
726
+ }
727
+ qti-test qti-test-nav qti-test-check:active,
728
+ qti-test qti-test-nav qti-test-score:active,
729
+ qti-test qti-test-nav qti-test-prev:active,
730
+ qti-test qti-test-nav qti-test-show-correct:active,
731
+ qti-test qti-test-nav qti-test-next:active {
732
+ background: #aeaeae;
733
+ }
734
+ qti-test qti-test-nav qti-test-progress {
735
+ display: flex;
736
+ overflow-x: scroll;
737
+ }
738
+ qti-test qti-test-nav qti-test-progress qti-test-item {
739
+ display: flex;
740
+ align-items: center;
741
+ justify-content: center;
742
+ padding: 5px 10px;
743
+ border-radius: 3px;
744
+ color: rgb(56, 56, 56);
745
+ text-decoration: none;
746
+ display: inline-block;
747
+ padding: 8px 16px;
748
+ border: 0;
749
+ background: #eeeeee;
750
+ color: rgb(83, 83, 83);
751
+ cursor: pointer;
752
+ font-size: 16px;
753
+ font-weight: 700;
754
+ }
755
+ qti-test qti-test-nav qti-test-progress qti-test-item:hover {
756
+ background: #dadada;
757
+ transition: all 0.3s ease;
758
+ }
759
+ qti-test qti-test-nav qti-test-progress qti-test-item:active {
760
+ background: #aeaeae;
761
+ }
762
+ qti-test qti-test-nav qti-test-progress qti-test-item[checked] {
763
+ background: darkblue;
764
+ color: white;
765
+ }
766
+
767
+ qti-modal-feedback[showstatus=on] {
768
+ position: absolute;
769
+ top: 2rem;
770
+ right: 0;
771
+ left: 0;
772
+ width: 400px;
773
+ height: 300px;
774
+ border: 1px solid #ddd;
775
+ border-radius: 10px;
776
+ margin-right: auto;
777
+ margin-left: auto;
778
+ background-color: white;
779
+ text-align: center;
780
+ }
781
+
782
+ .qti-theme-raised {
783
+ /* < usabled classes to extend in qti-components > */
784
+ }
785
+ .qti-theme-raised qti-text-entry-interaction, .qti-theme-raised qti-extended-text-interaction {
786
+ position: relative;
787
+ display: inline-block;
788
+ border-radius: var(--qti-border-radius);
789
+ color: var(--qti-text-color);
790
+ background: var(--qti-background);
791
+ box-shadow: inset 0 0 0 var(--qti-border-width) var(--qti-border-color);
792
+ border-radius: calc(var(--qti-border-radius) * 3);
793
+ }
794
+ .qti-theme-raised qti-text-entry-interaction[disabled], .qti-theme-raised qti-extended-text-interaction[disabled] {
795
+ box-shadow: unset !important;
796
+ color: var(--qti-border-color);
797
+ cursor: unset !important;
798
+ }
799
+ .qti-theme-raised qti-text-entry-interaction:focus, .qti-theme-raised qti-extended-text-interaction:focus {
800
+ outline-color: rgb(var(--qti-primary) 0.4);
801
+ outline-offset: 2px;
802
+ outline-style: solid;
803
+ outline-width: var(--qti-border-width);
804
+ }
805
+ .qti-theme-raised qti-text-entry-interaction:hover:not([disabled]), .qti-theme-raised qti-extended-text-interaction:hover:not([disabled]) {
806
+ outline-color: rgb(var(--qti-primary) 0.4);
807
+ outline-offset: 0;
808
+ outline-style: solid;
809
+ outline-width: calc(var(--qti-border-width) * 2);
810
+ }
811
+ .qti-theme-raised .qti-input-control-hidden qti-hottext, .qti-input-control-hidden .qti-theme-raised qti-hottext, .qti-theme-raised .qti-input-control-hidden qti-simple-choice, .qti-input-control-hidden .qti-theme-raised qti-simple-choice {
812
+ position: relative;
813
+ display: inline-block;
814
+ border-radius: var(--qti-border-radius);
815
+ color: var(--qti-text-color);
816
+ padding: var(--qti-padding-x) var(--qti-padding-y);
817
+ cursor: pointer;
818
+ background: var(--qti-background);
819
+ box-shadow: inset 0 0 0 var(--qti-border-width) var(--qti-border-color), 0 var(--qti-border-width) var(--qti-border-color);
820
+ border-radius: calc(var(--qti-border-radius) * 3);
821
+ }
822
+ .qti-theme-raised .qti-input-control-hidden qti-hottext[disabled], .qti-input-control-hidden .qti-theme-raised qti-hottext[disabled], .qti-theme-raised .qti-input-control-hidden qti-simple-choice[disabled], .qti-input-control-hidden .qti-theme-raised qti-simple-choice[disabled] {
823
+ box-shadow: unset !important;
824
+ color: var(--qti-border-color);
825
+ cursor: unset !important;
826
+ }
827
+ .qti-theme-raised .qti-input-control-hidden qti-hottext:focus, .qti-input-control-hidden .qti-theme-raised qti-hottext:focus, .qti-theme-raised .qti-input-control-hidden qti-simple-choice:focus, .qti-input-control-hidden .qti-theme-raised qti-simple-choice:focus {
828
+ outline-color: rgb(var(--qti-primary) 0.4);
829
+ outline-offset: 2px;
830
+ outline-style: solid;
831
+ outline-width: var(--qti-border-width);
832
+ }
833
+ .qti-theme-raised .qti-input-control-hidden qti-hottext:hover:not([disabled]), .qti-input-control-hidden .qti-theme-raised qti-hottext:hover:not([disabled]), .qti-theme-raised .qti-input-control-hidden qti-simple-choice:hover:not([disabled]), .qti-input-control-hidden .qti-theme-raised qti-simple-choice:hover:not([disabled]) {
834
+ outline-color: rgb(var(--qti-primary) 0.4);
835
+ outline-offset: 0;
836
+ outline-style: solid;
837
+ outline-width: calc(var(--qti-border-width) * 2);
838
+ }
839
+ .qti-theme-raised .qti-input-control-hidden qti-hottext[aria-checked=true], .qti-input-control-hidden .qti-theme-raised qti-hottext[aria-checked=true], .qti-theme-raised .qti-input-control-hidden qti-simple-choice[aria-checked=true], .qti-input-control-hidden .qti-theme-raised qti-simple-choice[aria-checked=true] {
840
+ --qti-border-color: var(--qti-primary-color);
841
+ }
842
+ .qti-theme-raised qti-hotspot-interaction qti-hotspot-choice, qti-hotspot-interaction .qti-theme-raised qti-hotspot-choice {
843
+ cursor: pointer;
844
+ background: var(--qti-background);
845
+ }
846
+ .qti-theme-raised qti-hotspot-interaction qti-hotspot-choice[disabled], qti-hotspot-interaction .qti-theme-raised qti-hotspot-choice[disabled] {
847
+ box-shadow: unset !important;
848
+ color: var(--qti-border-color);
849
+ cursor: unset !important;
850
+ }
851
+ .qti-theme-raised qti-hotspot-interaction qti-hotspot-choice:focus, qti-hotspot-interaction .qti-theme-raised qti-hotspot-choice:focus {
852
+ outline-color: rgb(var(--qti-primary) 0.4);
853
+ outline-offset: 2px;
854
+ outline-style: solid;
855
+ outline-width: var(--qti-border-width);
856
+ }
857
+ .qti-theme-raised qti-hotspot-interaction qti-hotspot-choice:hover:not([disabled]), qti-hotspot-interaction .qti-theme-raised qti-hotspot-choice:hover:not([disabled]) {
858
+ outline-color: rgb(var(--qti-primary) 0.4);
859
+ outline-offset: 0;
860
+ outline-style: solid;
861
+ outline-width: calc(var(--qti-border-width) * 2);
862
+ }
863
+ .qti-theme-raised qti-hotspot-interaction qti-hotspot-choice[aria-checked=true], qti-hotspot-interaction .qti-theme-raised qti-hotspot-choice[aria-checked=true] {
864
+ --qti-border-color: var(--qti-primary-color);
865
+ }
866
+ .qti-theme-raised qti-hottext, .qti-theme-raised qti-graphic-order-interaction qti-hotspot-choice, qti-graphic-order-interaction .qti-theme-raised qti-hotspot-choice, .qti-theme-raised qti-simple-choice {
867
+ cursor: pointer;
868
+ --width: 22px;
869
+ --height: 22px;
870
+ display: inline-flex;
871
+ width: fit-content;
872
+ align-items: center;
873
+ gap: 0.2rem;
874
+ }
875
+ .qti-theme-raised qti-hottext[disabled], .qti-theme-raised qti-graphic-order-interaction qti-hotspot-choice[disabled], qti-graphic-order-interaction .qti-theme-raised qti-hotspot-choice[disabled], .qti-theme-raised qti-simple-choice[disabled] {
876
+ box-shadow: unset !important;
877
+ color: var(--qti-border-color);
878
+ cursor: unset !important;
879
+ }
880
+ .qti-theme-raised qti-hottext:focus, .qti-theme-raised qti-graphic-order-interaction qti-hotspot-choice:focus, qti-graphic-order-interaction .qti-theme-raised qti-hotspot-choice:focus, .qti-theme-raised qti-simple-choice:focus {
881
+ outline-color: rgb(var(--qti-primary) 0.4);
882
+ outline-offset: 2px;
883
+ outline-style: solid;
884
+ outline-width: var(--qti-border-width);
885
+ }
886
+ .qti-theme-raised qti-hottext:hover:not([disabled]), .qti-theme-raised qti-graphic-order-interaction qti-hotspot-choice:hover:not([disabled]), qti-graphic-order-interaction .qti-theme-raised qti-hotspot-choice:hover:not([disabled]), .qti-theme-raised qti-simple-choice:hover:not([disabled]) {
887
+ outline-color: rgb(var(--qti-primary) 0.4);
888
+ outline-offset: 0;
889
+ outline-style: solid;
890
+ outline-width: calc(var(--qti-border-width) * 2);
891
+ }
892
+ .qti-theme-raised qti-hottext::before, .qti-theme-raised qti-graphic-order-interaction qti-hotspot-choice::before, qti-graphic-order-interaction .qti-theme-raised qti-hotspot-choice::before, .qti-theme-raised qti-simple-choice::before {
893
+ position: relative;
894
+ display: inline-block;
895
+ border-radius: var(--qti-border-radius);
896
+ color: var(--qti-text-color);
897
+ background: var(--qti-background);
898
+ box-shadow: inset 0 0 0 var(--qti-border-width) var(--qti-border-color), 0 var(--qti-border-width) var(--qti-border-color);
899
+ }
900
+ .qti-theme-raised qti-inline-choice-interaction {
901
+ position: relative;
902
+ display: inline-block;
903
+ border-radius: var(--qti-border-radius);
904
+ color: var(--qti-text-color);
905
+ background: var(--qti-background);
906
+ box-shadow: 0 var(--qti-border-width) var(--qti-border-color);
907
+ border-radius: calc(var(--qti-border-radius) * 3);
908
+ }
909
+ .qti-theme-raised qti-inline-choice-interaction[disabled] {
910
+ box-shadow: unset !important;
911
+ color: var(--qti-border-color);
912
+ cursor: unset !important;
913
+ }
914
+ .qti-theme-raised qti-inline-choice-interaction:focus {
915
+ outline-color: rgb(var(--qti-primary) 0.4);
916
+ outline-offset: 2px;
917
+ outline-style: solid;
918
+ outline-width: var(--qti-border-width);
919
+ }
920
+ .qti-theme-raised qti-inline-choice-interaction:hover:not([disabled]) {
921
+ outline-color: rgb(var(--qti-primary) 0.4);
922
+ outline-offset: 0;
923
+ outline-style: solid;
924
+ outline-width: calc(var(--qti-border-width) * 2);
925
+ }
926
+ .qti-theme-raised qti-inline-choice-interaction::after {
927
+ border-left: 5px solid transparent;
928
+ border-right: 5px solid transparent;
929
+ border-top: 8px solid var(--qti-border-color);
930
+ clear: both;
931
+ content: "";
932
+ pointer-events: none;
933
+ position: absolute;
934
+ right: 5%;
935
+ top: calc(50% - 3px);
936
+ }
937
+ .qti-theme-raised qti-order-interaction::part(drop-list), .qti-theme-raised qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type qti-simple-associable-choice, qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type .qti-theme-raised qti-simple-associable-choice, .qti-theme-raised qti-gap-match-interaction qti-gap, qti-gap-match-interaction .qti-theme-raised qti-gap, .qti-theme-raised qti-associate-interaction::part(drop-list) {
938
+ position: relative;
939
+ display: inline-block;
940
+ border-radius: var(--qti-border-radius);
941
+ color: var(--qti-text-color);
942
+ background: var(--qti-background);
943
+ box-shadow: inset 0 var(--qti-border-width) var(--qti-border-color);
944
+ }
945
+ .qti-theme-raised qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type qti-simple-associable-choice:empty::after, qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type .qti-theme-raised qti-simple-associable-choice:empty::after, .qti-theme-raised qti-gap-match-interaction qti-gap:empty::after, qti-gap-match-interaction .qti-theme-raised qti-gap:empty::after {
946
+ padding: var(--qti-padding-x) var(--qti-padding-y);
947
+ /* when empty, put a space in it, so the height remains the same */
948
+ display: inline-block;
949
+ content: "\xA0";
950
+ }
951
+ .qti-theme-raised qti-order-interaction:not(:empty)::part(drop-list), .qti-theme-raised qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type qti-simple-associable-choice:not(:empty), qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type .qti-theme-raised qti-simple-associable-choice:not(:empty), .qti-theme-raised qti-gap-match-interaction qti-gap:not(:empty), qti-gap-match-interaction .qti-theme-raised qti-gap:not(:empty), .qti-theme-raised qti-associate-interaction:not(:empty)::part(drop-list) {
952
+ display: flex;
953
+ }
954
+ .qti-theme-raised qti-order-interaction:not(:empty)::part(drop-list) > *, .qti-theme-raised qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type qti-simple-associable-choice:not(:empty) > *, qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type .qti-theme-raised qti-simple-associable-choice:not(:empty) > *, .qti-theme-raised qti-gap-match-interaction qti-gap:not(:empty) > *, qti-gap-match-interaction .qti-theme-raised qti-gap:not(:empty) > *, .qti-theme-raised qti-associate-interaction:not(:empty)::part(drop-list) > * {
955
+ box-shadow: unset;
956
+ flex-grow: 1;
957
+ margin: 2px;
958
+ }
959
+ .qti-theme-raised qti-order-interaction[active]::part(drop-list), .qti-theme-raised qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type qti-simple-associable-choice[active], qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type .qti-theme-raised qti-simple-associable-choice[active], .qti-theme-raised qti-gap-match-interaction qti-gap[active], qti-gap-match-interaction .qti-theme-raised qti-gap[active], .qti-theme-raised qti-associate-interaction[active]::part(drop-list) {
960
+ background: var(--qti-background);
961
+ }
962
+ .qti-theme-raised qti-order-interaction qti-simple-choice, qti-order-interaction .qti-theme-raised qti-simple-choice, .qti-theme-raised qti-order-interaction::part(qti-simple-choice), .qti-theme-raised qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:first-of-type qti-simple-associable-choice, qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:first-of-type .qti-theme-raised qti-simple-associable-choice, .qti-theme-raised qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type qti-simple-associable-choice > qti-simple-associable-choice, qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type .qti-theme-raised qti-simple-associable-choice > qti-simple-associable-choice, .qti-theme-raised qti-gap-match-interaction qti-gap-text, qti-gap-match-interaction .qti-theme-raised qti-gap-text, .qti-theme-raised qti-associate-interaction qti-simple-associable-choice, qti-associate-interaction .qti-theme-raised qti-simple-associable-choice, .qti-theme-raised qti-associate-interaction::part(qti-simple-associable-choice) {
963
+ position: relative;
964
+ display: inline-block;
965
+ border-radius: var(--qti-border-radius);
966
+ color: var(--qti-text-color);
967
+ padding: var(--qti-padding-x) var(--qti-padding-y);
968
+ cursor: pointer;
969
+ background: var(--qti-background);
970
+ user-select: none;
971
+ box-shadow: 0 var(--qti-border-width) var(--qti-border-color), 0 calc(var(--qti-border-width) * 2) var(--qti-shadow-blur) var(--qti-shadow-color);
972
+ }
973
+ .qti-theme-raised qti-order-interaction qti-simple-choice[disabled], qti-order-interaction .qti-theme-raised qti-simple-choice[disabled], .qti-theme-raised qti-order-interaction[disabled]::part(qti-simple-choice), .qti-theme-raised qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:first-of-type qti-simple-associable-choice[disabled], qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:first-of-type .qti-theme-raised qti-simple-associable-choice[disabled], .qti-theme-raised qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type qti-simple-associable-choice > qti-simple-associable-choice[disabled], qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type .qti-theme-raised qti-simple-associable-choice > qti-simple-associable-choice[disabled], .qti-theme-raised qti-gap-match-interaction qti-gap-text[disabled], qti-gap-match-interaction .qti-theme-raised qti-gap-text[disabled], .qti-theme-raised qti-associate-interaction qti-simple-associable-choice[disabled], qti-associate-interaction .qti-theme-raised qti-simple-associable-choice[disabled], .qti-theme-raised qti-associate-interaction[disabled]::part(qti-simple-associable-choice) {
974
+ box-shadow: unset !important;
975
+ color: var(--qti-border-color);
976
+ cursor: unset !important;
977
+ }
978
+ .qti-theme-raised qti-order-interaction qti-simple-choice:focus, qti-order-interaction .qti-theme-raised qti-simple-choice:focus, .qti-theme-raised qti-order-interaction:focus::part(qti-simple-choice), .qti-theme-raised qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:first-of-type qti-simple-associable-choice:focus, qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:first-of-type .qti-theme-raised qti-simple-associable-choice:focus, .qti-theme-raised qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type qti-simple-associable-choice > qti-simple-associable-choice:focus, qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type .qti-theme-raised qti-simple-associable-choice > qti-simple-associable-choice:focus, .qti-theme-raised qti-gap-match-interaction qti-gap-text:focus, qti-gap-match-interaction .qti-theme-raised qti-gap-text:focus, .qti-theme-raised qti-associate-interaction qti-simple-associable-choice:focus, qti-associate-interaction .qti-theme-raised qti-simple-associable-choice:focus, .qti-theme-raised qti-associate-interaction:focus::part(qti-simple-associable-choice) {
979
+ outline-color: rgb(var(--qti-primary) 0.4);
980
+ outline-offset: 2px;
981
+ outline-style: solid;
982
+ outline-width: var(--qti-border-width);
983
+ }
984
+ .qti-theme-raised qti-order-interaction qti-simple-choice:hover:not([disabled]), qti-order-interaction .qti-theme-raised qti-simple-choice:hover:not([disabled]), .qti-theme-raised qti-order-interaction:hover:not([disabled])::part(qti-simple-choice), .qti-theme-raised qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:first-of-type qti-simple-associable-choice:hover:not([disabled]), qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:first-of-type .qti-theme-raised qti-simple-associable-choice:hover:not([disabled]), .qti-theme-raised qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type qti-simple-associable-choice > qti-simple-associable-choice:hover:not([disabled]), qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type .qti-theme-raised qti-simple-associable-choice > qti-simple-associable-choice:hover:not([disabled]), .qti-theme-raised qti-gap-match-interaction qti-gap-text:hover:not([disabled]), qti-gap-match-interaction .qti-theme-raised qti-gap-text:hover:not([disabled]), .qti-theme-raised qti-associate-interaction qti-simple-associable-choice:hover:not([disabled]), qti-associate-interaction .qti-theme-raised qti-simple-associable-choice:hover:not([disabled]), .qti-theme-raised qti-associate-interaction:hover:not([disabled])::part(qti-simple-associable-choice) {
985
+ outline-color: rgb(var(--qti-primary) 0.4);
986
+ outline-offset: 0;
987
+ outline-style: solid;
988
+ outline-width: calc(var(--qti-border-width) * 2);
989
+ }
990
+ .qti-theme-raised qti-order-interaction qti-simple-choice::before, qti-order-interaction .qti-theme-raised qti-simple-choice::before, .qti-theme-raised qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:first-of-type qti-simple-associable-choice::before, qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:first-of-type .qti-theme-raised qti-simple-associable-choice::before, .qti-theme-raised qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type qti-simple-associable-choice > qti-simple-associable-choice::before, qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type .qti-theme-raised qti-simple-associable-choice > qti-simple-associable-choice::before, .qti-theme-raised qti-gap-match-interaction qti-gap-text::before, qti-gap-match-interaction .qti-theme-raised qti-gap-text::before, .qti-theme-raised qti-associate-interaction qti-simple-associable-choice::before, qti-associate-interaction .qti-theme-raised qti-simple-associable-choice::before {
991
+ position: absolute;
992
+ bottom: 0.2rem;
993
+ top: 0.2rem;
994
+ left: 0.2rem;
995
+ width: 0.3rem;
996
+ max-height: 2rem;
997
+ background: radial-gradient(ellipse at center, var(--qti-border-color) 0%, var(--qti-border-color) 40%, transparent 40%);
998
+ background-repeat: repeat;
999
+ background-size: 0.3rem 0.3rem;
1000
+ content: "";
1001
+ }
1002
+ .qti-theme-raised qti-slider-interaction[disabled] {
1003
+ box-shadow: unset !important;
1004
+ color: var(--qti-border-color);
1005
+ cursor: unset !important;
1006
+ }
1007
+ .qti-theme-raised qti-slider-interaction:focus {
1008
+ outline-color: rgb(var(--qti-primary) 0.4);
1009
+ outline-offset: 2px;
1010
+ outline-style: solid;
1011
+ outline-width: var(--qti-border-width);
1012
+ }
1013
+ .qti-theme-raised qti-slider-interaction:hover:not([disabled]) {
1014
+ outline-color: rgb(var(--qti-primary) 0.4);
1015
+ outline-offset: 0;
1016
+ outline-style: solid;
1017
+ outline-width: calc(var(--qti-border-width) * 2);
1018
+ }
1019
+ .qti-theme-raised qti-slider-interaction::before {
1020
+ position: relative;
1021
+ display: inline-block;
1022
+ border-radius: var(--qti-border-radius);
1023
+ color: var(--qti-text-color);
1024
+ cursor: pointer;
1025
+ border-radius: calc(var(--qti-border-radius) * 3);
1026
+ background: var(--qti-background);
1027
+ box-shadow: 0 var(--qti-border-width) var(--qti-border-color), 0 calc(var(--qti-border-width) * 2) var(--qti-shadow-blur) var(--qti-shadow-color);
1028
+ }
1029
+
1030
+ /* </ end test classes for storybook> */
1031
+ .qti-theme-subtle {
1032
+ /* < usabled classes to extend in qti-components */
1033
+ }
1034
+ .qti-theme-subtle qti-text-entry-interaction, .qti-theme-subtle qti-extended-text-interaction {
1035
+ position: relative;
1036
+ display: inline-block;
1037
+ border-radius: var(--qti-border-radius);
1038
+ color: var(--qti-text-color);
1039
+ background: linear-gradient(var(--qti-border-color) 8px, transparent 0 calc(100% - 8px), var(--qti-border-color) 0) 0 0/2px 100% no-repeat, linear-gradient(var(--qti-border-color) 8px, transparent 0 calc(100% - 8px), var(--qti-border-color) 0) 100% 0/2px 100% no-repeat, linear-gradient(to right, var(--qti-border-color) 8px, transparent 0 calc(100% - 8px), var(--qti-border-color) 0) 0 0/100% 2px no-repeat, linear-gradient(to right, var(--qti-border-color) 8px, transparent 0 calc(100% - 8px), var(--qti-border-color) 0) 0 100%/100% 2px no-repeat;
1040
+ }
1041
+ .qti-theme-subtle qti-text-entry-interaction[disabled], .qti-theme-subtle qti-extended-text-interaction[disabled] {
1042
+ --qti-border-color: transparent;
1043
+ box-shadow: unset !important;
1044
+ color: var(--qti-shadow-color);
1045
+ cursor: unset !important;
1046
+ }
1047
+ .qti-theme-subtle qti-text-entry-interaction:focus, .qti-theme-subtle qti-extended-text-interaction:focus {
1048
+ outline-color: rgb(var(--qti-primary) 0.4);
1049
+ outline-offset: 2px;
1050
+ outline-style: solid;
1051
+ outline-width: var(--qti-border-width);
1052
+ }
1053
+ .qti-theme-subtle qti-text-entry-interaction:hover:not([disabled]), .qti-theme-subtle qti-extended-text-interaction:hover:not([disabled]) {
1054
+ outline-color: rgb(var(--qti-primary) 0.4);
1055
+ outline-offset: 0;
1056
+ outline-style: solid;
1057
+ outline-width: calc(var(--qti-border-width) * 2);
1058
+ }
1059
+ .qti-theme-subtle .qti-input-control-hidden qti-hottext, .qti-input-control-hidden .qti-theme-subtle qti-hottext, .qti-theme-subtle .qti-input-control-hidden qti-simple-choice, .qti-input-control-hidden .qti-theme-subtle qti-simple-choice {
1060
+ position: relative;
1061
+ display: inline-block;
1062
+ border-radius: var(--qti-border-radius);
1063
+ color: var(--qti-text-color);
1064
+ padding: var(--qti-padding-x) var(--qti-padding-y);
1065
+ cursor: pointer;
1066
+ background: linear-gradient(var(--qti-border-color) 8px, transparent 0 calc(100% - 8px), var(--qti-border-color) 0) 0 0/2px 100% no-repeat, linear-gradient(var(--qti-border-color) 8px, transparent 0 calc(100% - 8px), var(--qti-border-color) 0) 100% 0/2px 100% no-repeat, linear-gradient(to right, var(--qti-border-color) 8px, transparent 0 calc(100% - 8px), var(--qti-border-color) 0) 0 0/100% 2px no-repeat, linear-gradient(to right, var(--qti-border-color) 8px, transparent 0 calc(100% - 8px), var(--qti-border-color) 0) 0 100%/100% 2px no-repeat;
1067
+ }
1068
+ .qti-theme-subtle .qti-input-control-hidden qti-hottext[disabled], .qti-input-control-hidden .qti-theme-subtle qti-hottext[disabled], .qti-theme-subtle .qti-input-control-hidden qti-simple-choice[disabled], .qti-input-control-hidden .qti-theme-subtle qti-simple-choice[disabled] {
1069
+ --qti-border-color: transparent;
1070
+ box-shadow: unset !important;
1071
+ color: var(--qti-shadow-color);
1072
+ cursor: unset !important;
1073
+ }
1074
+ .qti-theme-subtle .qti-input-control-hidden qti-hottext:focus, .qti-input-control-hidden .qti-theme-subtle qti-hottext:focus, .qti-theme-subtle .qti-input-control-hidden qti-simple-choice:focus, .qti-input-control-hidden .qti-theme-subtle qti-simple-choice:focus {
1075
+ outline-color: rgb(var(--qti-primary) 0.4);
1076
+ outline-offset: 2px;
1077
+ outline-style: solid;
1078
+ outline-width: var(--qti-border-width);
1079
+ }
1080
+ .qti-theme-subtle .qti-input-control-hidden qti-hottext:hover:not([disabled]), .qti-input-control-hidden .qti-theme-subtle qti-hottext:hover:not([disabled]), .qti-theme-subtle .qti-input-control-hidden qti-simple-choice:hover:not([disabled]), .qti-input-control-hidden .qti-theme-subtle qti-simple-choice:hover:not([disabled]) {
1081
+ outline-color: rgb(var(--qti-primary) 0.4);
1082
+ outline-offset: 0;
1083
+ outline-style: solid;
1084
+ outline-width: calc(var(--qti-border-width) * 2);
1085
+ }
1086
+ .qti-theme-subtle .qti-input-control-hidden qti-hottext[aria-checked=true], .qti-input-control-hidden .qti-theme-subtle qti-hottext[aria-checked=true], .qti-theme-subtle .qti-input-control-hidden qti-simple-choice[aria-checked=true], .qti-input-control-hidden .qti-theme-subtle qti-simple-choice[aria-checked=true] {
1087
+ --qti-border-color: var(--qti-primary-color);
1088
+ background-color: rgb(var(--qti-primary) 0.1);
1089
+ }
1090
+ .qti-theme-subtle qti-hotspot-interaction qti-hotspot-choice, qti-hotspot-interaction .qti-theme-subtle qti-hotspot-choice {
1091
+ cursor: pointer;
1092
+ background: var(--qti-background);
1093
+ }
1094
+ .qti-theme-subtle qti-hotspot-interaction qti-hotspot-choice[disabled], qti-hotspot-interaction .qti-theme-subtle qti-hotspot-choice[disabled] {
1095
+ --qti-border-color: transparent;
1096
+ box-shadow: unset !important;
1097
+ color: var(--qti-shadow-color);
1098
+ cursor: unset !important;
1099
+ }
1100
+ .qti-theme-subtle qti-hotspot-interaction qti-hotspot-choice:focus, qti-hotspot-interaction .qti-theme-subtle qti-hotspot-choice:focus {
1101
+ outline-color: rgb(var(--qti-primary) 0.4);
1102
+ outline-offset: 2px;
1103
+ outline-style: solid;
1104
+ outline-width: var(--qti-border-width);
1105
+ }
1106
+ .qti-theme-subtle qti-hotspot-interaction qti-hotspot-choice:hover:not([disabled]), qti-hotspot-interaction .qti-theme-subtle qti-hotspot-choice:hover:not([disabled]) {
1107
+ outline-color: rgb(var(--qti-primary) 0.4);
1108
+ outline-offset: 0;
1109
+ outline-style: solid;
1110
+ outline-width: calc(var(--qti-border-width) * 2);
1111
+ }
1112
+ .qti-theme-subtle qti-hotspot-interaction qti-hotspot-choice[aria-checked=true], qti-hotspot-interaction .qti-theme-subtle qti-hotspot-choice[aria-checked=true] {
1113
+ --qti-border-color: var(--qti-primary-color);
1114
+ background-color: rgb(var(--qti-primary) 0.1);
1115
+ }
1116
+ .qti-theme-subtle qti-hottext, .qti-theme-subtle qti-graphic-order-interaction qti-hotspot-choice, qti-graphic-order-interaction .qti-theme-subtle qti-hotspot-choice, .qti-theme-subtle qti-simple-choice {
1117
+ cursor: pointer;
1118
+ --width: 22px;
1119
+ --height: 22px;
1120
+ display: inline-flex;
1121
+ width: fit-content;
1122
+ align-items: center;
1123
+ gap: 0.2rem;
1124
+ }
1125
+ .qti-theme-subtle qti-hottext[disabled], .qti-theme-subtle qti-graphic-order-interaction qti-hotspot-choice[disabled], qti-graphic-order-interaction .qti-theme-subtle qti-hotspot-choice[disabled], .qti-theme-subtle qti-simple-choice[disabled] {
1126
+ --qti-border-color: transparent;
1127
+ box-shadow: unset !important;
1128
+ color: var(--qti-shadow-color);
1129
+ cursor: unset !important;
1130
+ }
1131
+ .qti-theme-subtle qti-hottext:focus, .qti-theme-subtle qti-graphic-order-interaction qti-hotspot-choice:focus, qti-graphic-order-interaction .qti-theme-subtle qti-hotspot-choice:focus, .qti-theme-subtle qti-simple-choice:focus {
1132
+ outline-color: rgb(var(--qti-primary) 0.4);
1133
+ outline-offset: 2px;
1134
+ outline-style: solid;
1135
+ outline-width: var(--qti-border-width);
1136
+ }
1137
+ .qti-theme-subtle qti-hottext:hover:not([disabled]), .qti-theme-subtle qti-graphic-order-interaction qti-hotspot-choice:hover:not([disabled]), qti-graphic-order-interaction .qti-theme-subtle qti-hotspot-choice:hover:not([disabled]), .qti-theme-subtle qti-simple-choice:hover:not([disabled]) {
1138
+ outline-color: rgb(var(--qti-primary) 0.4);
1139
+ outline-offset: 0;
1140
+ outline-style: solid;
1141
+ outline-width: calc(var(--qti-border-width) * 2);
1142
+ }
1143
+ .qti-theme-subtle qti-hottext::before, .qti-theme-subtle qti-graphic-order-interaction qti-hotspot-choice::before, qti-graphic-order-interaction .qti-theme-subtle qti-hotspot-choice::before, .qti-theme-subtle qti-simple-choice::before {
1144
+ position: relative;
1145
+ display: inline-block;
1146
+ border-radius: var(--qti-border-radius);
1147
+ color: var(--qti-text-color);
1148
+ background: linear-gradient(var(--qti-border-color) 8px, transparent 0 calc(100% - 8px), var(--qti-border-color) 0) 0 0/2px 100% no-repeat, linear-gradient(var(--qti-border-color) 8px, transparent 0 calc(100% - 8px), var(--qti-border-color) 0) 100% 0/2px 100% no-repeat, linear-gradient(to right, var(--qti-border-color) 8px, transparent 0 calc(100% - 8px), var(--qti-border-color) 0) 0 0/100% 2px no-repeat, linear-gradient(to right, var(--qti-border-color) 8px, transparent 0 calc(100% - 8px), var(--qti-border-color) 0) 0 100%/100% 2px no-repeat;
1149
+ }
1150
+ .qti-theme-subtle qti-inline-choice-interaction {
1151
+ position: relative;
1152
+ display: inline-block;
1153
+ border-radius: var(--qti-border-radius);
1154
+ color: var(--qti-text-color);
1155
+ background: linear-gradient(var(--qti-border-color) 8px, transparent 0 calc(100% - 8px), var(--qti-border-color) 0) 0 0/2px 100% no-repeat, linear-gradient(var(--qti-border-color) 8px, transparent 0 calc(100% - 8px), var(--qti-border-color) 0) 100% 0/2px 100% no-repeat, linear-gradient(to right, var(--qti-border-color) 8px, transparent 0 calc(100% - 8px), var(--qti-border-color) 0) 0 0/100% 2px no-repeat, linear-gradient(to right, var(--qti-border-color) 8px, transparent 0 calc(100% - 8px), var(--qti-border-color) 0) 0 100%/100% 2px no-repeat;
1156
+ }
1157
+ .qti-theme-subtle qti-inline-choice-interaction[disabled] {
1158
+ --qti-border-color: transparent;
1159
+ box-shadow: unset !important;
1160
+ color: var(--qti-shadow-color);
1161
+ cursor: unset !important;
1162
+ }
1163
+ .qti-theme-subtle qti-inline-choice-interaction:focus {
1164
+ outline-color: rgb(var(--qti-primary) 0.4);
1165
+ outline-offset: 2px;
1166
+ outline-style: solid;
1167
+ outline-width: var(--qti-border-width);
1168
+ }
1169
+ .qti-theme-subtle qti-inline-choice-interaction:hover:not([disabled]) {
1170
+ outline-color: rgb(var(--qti-primary) 0.4);
1171
+ outline-offset: 0;
1172
+ outline-style: solid;
1173
+ outline-width: calc(var(--qti-border-width) * 2);
1174
+ }
1175
+ .qti-theme-subtle qti-inline-choice-interaction::after {
1176
+ border-left: 5px solid transparent;
1177
+ border-right: 5px solid transparent;
1178
+ border-top: 8px solid var(--qti-border-color);
1179
+ clear: both;
1180
+ content: "";
1181
+ pointer-events: none;
1182
+ position: absolute;
1183
+ right: 5%;
1184
+ top: calc(50% - 3px);
1185
+ }
1186
+ .qti-theme-subtle qti-order-interaction::part(drop-list), .qti-theme-subtle qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type qti-simple-associable-choice, qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type .qti-theme-subtle qti-simple-associable-choice, .qti-theme-subtle qti-gap-match-interaction qti-gap, qti-gap-match-interaction .qti-theme-subtle qti-gap, .qti-theme-subtle qti-associate-interaction::part(drop-list) {
1187
+ position: relative;
1188
+ display: inline-block;
1189
+ border-radius: var(--qti-border-radius);
1190
+ color: var(--qti-text-color);
1191
+ background: radial-gradient(16px circle, transparent 0%, transparent calc(50% - var(--qti-border-width) / 2), var(--qti-border-color) calc(50% - (var(--qti-border-width) / 2 - 0.2px)), var(--qti-border-color) calc(50% + var(--qti-border-width) / 2 - 0.2px), transparent calc(50% + var(--qti-border-width) / 2), transparent 100%), linear-gradient(var(--qti-border-color) 8px, transparent 0 calc(100% - 8px), var(--qti-border-color) 0) 0 0/2px 100% no-repeat, linear-gradient(var(--qti-border-color) 8px, transparent 0 calc(100% - 8px), var(--qti-border-color) 0) 100% 0/2px 100% no-repeat, linear-gradient(to right, var(--qti-border-color) 8px, transparent 0 calc(100% - 8px), var(--qti-border-color) 0) 0 0/100% 2px no-repeat, linear-gradient(to right, var(--qti-border-color) 8px, transparent 0 calc(100% - 8px), var(--qti-border-color) 0) 0 100%/100% 2px no-repeat, var(--qti-background);
1192
+ transition: all 0.2s ease-out;
1193
+ }
1194
+ .qti-theme-subtle qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type qti-simple-associable-choice:empty::after, qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type .qti-theme-subtle qti-simple-associable-choice:empty::after, .qti-theme-subtle qti-gap-match-interaction qti-gap:empty::after, qti-gap-match-interaction .qti-theme-subtle qti-gap:empty::after {
1195
+ padding: var(--qti-padding-x) var(--qti-padding-y);
1196
+ /* when empty, put a space in it, so the height remains the same */
1197
+ display: inline-block;
1198
+ content: "\xA0";
1199
+ }
1200
+ .qti-theme-subtle qti-order-interaction:not(:empty)::part(drop-list), .qti-theme-subtle qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type qti-simple-associable-choice:not(:empty), qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type .qti-theme-subtle qti-simple-associable-choice:not(:empty), .qti-theme-subtle qti-gap-match-interaction qti-gap:not(:empty), qti-gap-match-interaction .qti-theme-subtle qti-gap:not(:empty), .qti-theme-subtle qti-associate-interaction:not(:empty)::part(drop-list) {
1201
+ display: flex;
1202
+ }
1203
+ .qti-theme-subtle qti-order-interaction:not(:empty)::part(drop-list) > *, .qti-theme-subtle qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type qti-simple-associable-choice:not(:empty) > *, qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type .qti-theme-subtle qti-simple-associable-choice:not(:empty) > *, .qti-theme-subtle qti-gap-match-interaction qti-gap:not(:empty) > *, qti-gap-match-interaction .qti-theme-subtle qti-gap:not(:empty) > *, .qti-theme-subtle qti-associate-interaction:not(:empty)::part(drop-list) > * {
1204
+ flex-grow: 1;
1205
+ margin: 2px;
1206
+ }
1207
+ .qti-theme-subtle qti-order-interaction[active]::part(drop-list), .qti-theme-subtle qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type qti-simple-associable-choice[active], qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type .qti-theme-subtle qti-simple-associable-choice[active], .qti-theme-subtle qti-gap-match-interaction qti-gap[active], qti-gap-match-interaction .qti-theme-subtle qti-gap[active], .qti-theme-subtle qti-associate-interaction[active]::part(drop-list) {
1208
+ background: radial-gradient(16px circle, transparent 0%, transparent calc(50% - var(--qti-border-width) / 2), var(--qti-border-color) calc(50% - (var(--qti-border-width) / 2 - 0.2px)), var(--qti-border-color) calc(50% + var(--qti-border-width) / 2 - 0.2px), transparent calc(50% + var(--qti-border-width) / 2), transparent 100%), linear-gradient(var(--qti-border-color) 8px, transparent 0 calc(100% - 8px), var(--qti-border-color) 0) 0 0/2px 100% no-repeat, linear-gradient(var(--qti-border-color) 8px, transparent 0 calc(100% - 8px), var(--qti-border-color) 0) 100% 0/2px 100% no-repeat, linear-gradient(to right, var(--qti-border-color) 8px, transparent 0 calc(100% - 8px), var(--qti-border-color) 0) 0 0/100% 2px no-repeat, linear-gradient(to right, var(--qti-border-color) 8px, transparent 0 calc(100% - 8px), var(--qti-border-color) 0) 0 100%/100% 2px no-repeat, var(--qti-background);
1209
+ transform: scale(1.02);
1210
+ }
1211
+ .qti-theme-subtle qti-order-interaction qti-simple-choice, qti-order-interaction .qti-theme-subtle qti-simple-choice, .qti-theme-subtle qti-order-interaction::part(qti-simple-choice), .qti-theme-subtle qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:first-of-type qti-simple-associable-choice, qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:first-of-type .qti-theme-subtle qti-simple-associable-choice, .qti-theme-subtle qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type qti-simple-associable-choice > qti-simple-associable-choice, qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type .qti-theme-subtle qti-simple-associable-choice > qti-simple-associable-choice, .qti-theme-subtle qti-gap-match-interaction qti-gap-text, qti-gap-match-interaction .qti-theme-subtle qti-gap-text, .qti-theme-subtle qti-associate-interaction qti-simple-associable-choice, qti-associate-interaction .qti-theme-subtle qti-simple-associable-choice, .qti-theme-subtle qti-associate-interaction::part(qti-simple-associable-choice) {
1212
+ position: relative;
1213
+ display: inline-block;
1214
+ border-radius: var(--qti-border-radius);
1215
+ color: var(--qti-text-color);
1216
+ padding: var(--qti-padding-x) var(--qti-padding-y);
1217
+ cursor: pointer;
1218
+ user-select: none;
1219
+ background: linear-gradient(var(--qti-border-color) 8px, transparent 0 calc(100% - 8px), var(--qti-border-color) 0) 0 0/2px 100% no-repeat, linear-gradient(var(--qti-border-color) 8px, transparent 0 calc(100% - 8px), var(--qti-border-color) 0) 100% 0/2px 100% no-repeat, linear-gradient(to right, var(--qti-border-color) 8px, transparent 0 calc(100% - 8px), var(--qti-border-color) 0) 0 0/100% 2px no-repeat, linear-gradient(to right, var(--qti-border-color) 8px, transparent 0 calc(100% - 8px), var(--qti-border-color) 0) 0 100%/100% 2px no-repeat, var(--qti-background);
1220
+ }
1221
+ .qti-theme-subtle qti-order-interaction qti-simple-choice[disabled], qti-order-interaction .qti-theme-subtle qti-simple-choice[disabled], .qti-theme-subtle qti-order-interaction[disabled]::part(qti-simple-choice), .qti-theme-subtle qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:first-of-type qti-simple-associable-choice[disabled], qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:first-of-type .qti-theme-subtle qti-simple-associable-choice[disabled], .qti-theme-subtle qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type qti-simple-associable-choice > qti-simple-associable-choice[disabled], qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type .qti-theme-subtle qti-simple-associable-choice > qti-simple-associable-choice[disabled], .qti-theme-subtle qti-gap-match-interaction qti-gap-text[disabled], qti-gap-match-interaction .qti-theme-subtle qti-gap-text[disabled], .qti-theme-subtle qti-associate-interaction qti-simple-associable-choice[disabled], qti-associate-interaction .qti-theme-subtle qti-simple-associable-choice[disabled], .qti-theme-subtle qti-associate-interaction[disabled]::part(qti-simple-associable-choice) {
1222
+ --qti-border-color: transparent;
1223
+ box-shadow: unset !important;
1224
+ color: var(--qti-shadow-color);
1225
+ cursor: unset !important;
1226
+ }
1227
+ .qti-theme-subtle qti-order-interaction qti-simple-choice:focus, qti-order-interaction .qti-theme-subtle qti-simple-choice:focus, .qti-theme-subtle qti-order-interaction:focus::part(qti-simple-choice), .qti-theme-subtle qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:first-of-type qti-simple-associable-choice:focus, qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:first-of-type .qti-theme-subtle qti-simple-associable-choice:focus, .qti-theme-subtle qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type qti-simple-associable-choice > qti-simple-associable-choice:focus, qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type .qti-theme-subtle qti-simple-associable-choice > qti-simple-associable-choice:focus, .qti-theme-subtle qti-gap-match-interaction qti-gap-text:focus, qti-gap-match-interaction .qti-theme-subtle qti-gap-text:focus, .qti-theme-subtle qti-associate-interaction qti-simple-associable-choice:focus, qti-associate-interaction .qti-theme-subtle qti-simple-associable-choice:focus, .qti-theme-subtle qti-associate-interaction:focus::part(qti-simple-associable-choice) {
1228
+ outline-color: rgb(var(--qti-primary) 0.4);
1229
+ outline-offset: 2px;
1230
+ outline-style: solid;
1231
+ outline-width: var(--qti-border-width);
1232
+ }
1233
+ .qti-theme-subtle qti-order-interaction qti-simple-choice:hover:not([disabled]), qti-order-interaction .qti-theme-subtle qti-simple-choice:hover:not([disabled]), .qti-theme-subtle qti-order-interaction:hover:not([disabled])::part(qti-simple-choice), .qti-theme-subtle qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:first-of-type qti-simple-associable-choice:hover:not([disabled]), qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:first-of-type .qti-theme-subtle qti-simple-associable-choice:hover:not([disabled]), .qti-theme-subtle qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type qti-simple-associable-choice > qti-simple-associable-choice:hover:not([disabled]), qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type .qti-theme-subtle qti-simple-associable-choice > qti-simple-associable-choice:hover:not([disabled]), .qti-theme-subtle qti-gap-match-interaction qti-gap-text:hover:not([disabled]), qti-gap-match-interaction .qti-theme-subtle qti-gap-text:hover:not([disabled]), .qti-theme-subtle qti-associate-interaction qti-simple-associable-choice:hover:not([disabled]), qti-associate-interaction .qti-theme-subtle qti-simple-associable-choice:hover:not([disabled]), .qti-theme-subtle qti-associate-interaction:hover:not([disabled])::part(qti-simple-associable-choice) {
1234
+ outline-color: rgb(var(--qti-primary) 0.4);
1235
+ outline-offset: 0;
1236
+ outline-style: solid;
1237
+ outline-width: calc(var(--qti-border-width) * 2);
1238
+ }
1239
+ .qti-theme-subtle qti-order-interaction qti-simple-choice::before, qti-order-interaction .qti-theme-subtle qti-simple-choice::before, .qti-theme-subtle qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:first-of-type qti-simple-associable-choice::before, qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:first-of-type .qti-theme-subtle qti-simple-associable-choice::before, .qti-theme-subtle qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type qti-simple-associable-choice > qti-simple-associable-choice::before, qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type .qti-theme-subtle qti-simple-associable-choice > qti-simple-associable-choice::before, .qti-theme-subtle qti-gap-match-interaction qti-gap-text::before, qti-gap-match-interaction .qti-theme-subtle qti-gap-text::before, .qti-theme-subtle qti-associate-interaction qti-simple-associable-choice::before, qti-associate-interaction .qti-theme-subtle qti-simple-associable-choice::before {
1240
+ position: absolute;
1241
+ bottom: 0.2rem;
1242
+ top: 0.2rem;
1243
+ left: 0.2rem;
1244
+ width: 0.3rem;
1245
+ max-height: 2rem;
1246
+ background: radial-gradient(ellipse at center, var(--qti-border-color) 0%, var(--qti-border-color) 40%, transparent 40%);
1247
+ background-repeat: repeat;
1248
+ background-size: 0.3rem 0.3rem;
1249
+ content: "";
1250
+ }
1251
+ .qti-theme-subtle qti-slider-interaction {
1252
+ cursor: pointer;
1253
+ }
1254
+ .qti-theme-subtle qti-slider-interaction[aria-checked=true] {
1255
+ --qti-border-color: var(--qti-primary-color);
1256
+ background-color: rgb(var(--qti-primary) 0.1);
1257
+ }
1258
+ .qti-theme-subtle qti-slider-interaction[disabled] {
1259
+ --qti-border-color: transparent;
1260
+ box-shadow: unset !important;
1261
+ color: var(--qti-shadow-color);
1262
+ cursor: unset !important;
1263
+ }
1264
+ .qti-theme-subtle qti-slider-interaction:focus {
1265
+ outline-color: rgb(var(--qti-primary) 0.4);
1266
+ outline-offset: 2px;
1267
+ outline-style: solid;
1268
+ outline-width: var(--qti-border-width);
1269
+ }
1270
+ .qti-theme-subtle qti-slider-interaction:hover:not([disabled]) {
1271
+ outline-color: rgb(var(--qti-primary) 0.4);
1272
+ outline-offset: 0;
1273
+ outline-style: solid;
1274
+ outline-width: calc(var(--qti-border-width) * 2);
1275
+ }
1276
+ .qti-theme-subtle qti-slider-interaction::before {
1277
+ position: relative;
1278
+ display: inline-block;
1279
+ border-radius: var(--qti-border-radius);
1280
+ color: var(--qti-text-color);
1281
+ cursor: pointer;
1282
+ background: linear-gradient(var(--qti-border-color) 8px, transparent 0 calc(100% - 8px), var(--qti-border-color) 0) 0 0/2px 100% no-repeat, linear-gradient(var(--qti-border-color) 8px, transparent 0 calc(100% - 8px), var(--qti-border-color) 0) 100% 0/2px 100% no-repeat, linear-gradient(to right, var(--qti-border-color) 8px, transparent 0 calc(100% - 8px), var(--qti-border-color) 0) 0 0/100% 2px no-repeat, linear-gradient(to right, var(--qti-border-color) 8px, transparent 0 calc(100% - 8px), var(--qti-border-color) 0) 0 100%/100% 2px no-repeat, var(--qti-background);
1283
+ }
1284
+
1285
+ .qti-theme-ims {
1286
+ /* < usabled classes to extend in qti-components > */
1287
+ }
1288
+ .qti-theme-ims qti-text-entry-interaction, .qti-theme-ims qti-extended-text-interaction {
1289
+ position: relative;
1290
+ display: inline-block;
1291
+ border-radius: var(--qti-border-radius);
1292
+ color: var(--qti-text-color);
1293
+ background: var(--qti-background);
1294
+ box-shadow: inset 0 0 0 var(--qti-border-width) var(--qti-border-color);
1295
+ }
1296
+ .qti-theme-ims qti-text-entry-interaction[disabled], .qti-theme-ims qti-extended-text-interaction[disabled] {
1297
+ --qti-border-color: var(--qti-shadow-color);
1298
+ color: var(--qti-shadow-color);
1299
+ cursor: unset !important;
1300
+ filter: grayscale(100%);
1301
+ }
1302
+ .qti-theme-ims qti-text-entry-interaction:focus-within, .qti-theme-ims qti-extended-text-interaction:focus-within {
1303
+ outline-color: rgb(var(--qti-primary) 0.6);
1304
+ outline-offset: 4px;
1305
+ outline-style: solid;
1306
+ outline-width: var(--qti-border-width);
1307
+ /* applies to all before elements, choice round and circle, slider thumb */
1308
+ }
1309
+ .qti-theme-ims qti-text-entry-interaction:focus-within::before, .qti-theme-ims qti-extended-text-interaction:focus-within::before {
1310
+ background-color: rgb(var(--qti-primary) 0.2);
1311
+ }
1312
+ .qti-theme-ims qti-text-entry-interaction:hover:not([disabled]), .qti-theme-ims qti-extended-text-interaction:hover:not([disabled]) {
1313
+ outline-color: rgb(var(--qti-primary) 0.4);
1314
+ outline-offset: 2px;
1315
+ outline-style: solid;
1316
+ outline-width: calc(var(--qti-border-width) * 2);
1317
+ }
1318
+ .qti-theme-ims .qti-input-control-hidden qti-hottext, .qti-input-control-hidden .qti-theme-ims qti-hottext, .qti-theme-ims .qti-input-control-hidden qti-simple-choice, .qti-input-control-hidden .qti-theme-ims qti-simple-choice {
1319
+ position: relative;
1320
+ display: inline-block;
1321
+ border-radius: var(--qti-border-radius);
1322
+ color: var(--qti-text-color);
1323
+ padding: var(--qti-padding-x) var(--qti-padding-y);
1324
+ cursor: pointer;
1325
+ background: var(--qti-background);
1326
+ box-shadow: inset 0 0 0 var(--qti-border-width) var(--qti-border-color);
1327
+ }
1328
+ .qti-theme-ims .qti-input-control-hidden qti-hottext[disabled], .qti-input-control-hidden .qti-theme-ims qti-hottext[disabled], .qti-theme-ims .qti-input-control-hidden qti-simple-choice[disabled], .qti-input-control-hidden .qti-theme-ims qti-simple-choice[disabled] {
1329
+ --qti-border-color: var(--qti-shadow-color);
1330
+ color: var(--qti-shadow-color);
1331
+ cursor: unset !important;
1332
+ filter: grayscale(100%);
1333
+ }
1334
+ .qti-theme-ims .qti-input-control-hidden qti-hottext:focus-within, .qti-input-control-hidden .qti-theme-ims qti-hottext:focus-within, .qti-theme-ims .qti-input-control-hidden qti-simple-choice:focus-within, .qti-input-control-hidden .qti-theme-ims qti-simple-choice:focus-within {
1335
+ outline-color: rgb(var(--qti-primary) 0.6);
1336
+ outline-offset: 4px;
1337
+ outline-style: solid;
1338
+ outline-width: var(--qti-border-width);
1339
+ /* applies to all before elements, choice round and circle, slider thumb */
1340
+ }
1341
+ .qti-theme-ims .qti-input-control-hidden qti-hottext:focus-within::before, .qti-input-control-hidden .qti-theme-ims qti-hottext:focus-within::before, .qti-theme-ims .qti-input-control-hidden qti-simple-choice:focus-within::before, .qti-input-control-hidden .qti-theme-ims qti-simple-choice:focus-within::before {
1342
+ background-color: rgb(var(--qti-primary) 0.2);
1343
+ }
1344
+ .qti-theme-ims .qti-input-control-hidden qti-hottext:hover:not([disabled]), .qti-input-control-hidden .qti-theme-ims qti-hottext:hover:not([disabled]), .qti-theme-ims .qti-input-control-hidden qti-simple-choice:hover:not([disabled]), .qti-input-control-hidden .qti-theme-ims qti-simple-choice:hover:not([disabled]) {
1345
+ outline-color: rgb(var(--qti-primary) 0.4);
1346
+ outline-offset: 2px;
1347
+ outline-style: solid;
1348
+ outline-width: calc(var(--qti-border-width) * 2);
1349
+ }
1350
+ .qti-theme-ims .qti-input-control-hidden qti-hottext[aria-checked=true], .qti-input-control-hidden .qti-theme-ims qti-hottext[aria-checked=true], .qti-theme-ims .qti-input-control-hidden qti-simple-choice[aria-checked=true], .qti-input-control-hidden .qti-theme-ims qti-simple-choice[aria-checked=true] {
1351
+ --qti-border-color: var(--qti-primary-color);
1352
+ background-color: var(--qti-primary-color);
1353
+ color: #fff;
1354
+ }
1355
+ .qti-theme-ims qti-hotspot-interaction qti-hotspot-choice, qti-hotspot-interaction .qti-theme-ims qti-hotspot-choice {
1356
+ cursor: pointer;
1357
+ background: var(--qti-background);
1358
+ }
1359
+ .qti-theme-ims qti-hotspot-interaction qti-hotspot-choice[disabled], qti-hotspot-interaction .qti-theme-ims qti-hotspot-choice[disabled] {
1360
+ --qti-border-color: var(--qti-shadow-color);
1361
+ color: var(--qti-shadow-color);
1362
+ cursor: unset !important;
1363
+ filter: grayscale(100%);
1364
+ }
1365
+ .qti-theme-ims qti-hotspot-interaction qti-hotspot-choice:focus-within, qti-hotspot-interaction .qti-theme-ims qti-hotspot-choice:focus-within {
1366
+ outline-color: rgb(var(--qti-primary) 0.6);
1367
+ outline-offset: 4px;
1368
+ outline-style: solid;
1369
+ outline-width: var(--qti-border-width);
1370
+ /* applies to all before elements, choice round and circle, slider thumb */
1371
+ }
1372
+ .qti-theme-ims qti-hotspot-interaction qti-hotspot-choice:focus-within::before, qti-hotspot-interaction .qti-theme-ims qti-hotspot-choice:focus-within::before {
1373
+ background-color: rgb(var(--qti-primary) 0.2);
1374
+ }
1375
+ .qti-theme-ims qti-hotspot-interaction qti-hotspot-choice:hover:not([disabled]), qti-hotspot-interaction .qti-theme-ims qti-hotspot-choice:hover:not([disabled]) {
1376
+ outline-color: rgb(var(--qti-primary) 0.4);
1377
+ outline-offset: 2px;
1378
+ outline-style: solid;
1379
+ outline-width: calc(var(--qti-border-width) * 2);
1380
+ }
1381
+ .qti-theme-ims qti-hotspot-interaction qti-hotspot-choice[aria-checked=true], qti-hotspot-interaction .qti-theme-ims qti-hotspot-choice[aria-checked=true] {
1382
+ --qti-border-color: var(--qti-primary-color);
1383
+ background-color: var(--qti-primary-color);
1384
+ color: #fff;
1385
+ }
1386
+ .qti-theme-ims qti-hottext, .qti-theme-ims qti-graphic-order-interaction qti-hotspot-choice, qti-graphic-order-interaction .qti-theme-ims qti-hotspot-choice, .qti-theme-ims qti-simple-choice {
1387
+ cursor: pointer;
1388
+ --width: 22px;
1389
+ --height: 22px;
1390
+ display: inline-flex;
1391
+ width: fit-content;
1392
+ align-items: center;
1393
+ gap: 0.2rem;
1394
+ }
1395
+ .qti-theme-ims qti-hottext[disabled], .qti-theme-ims qti-graphic-order-interaction qti-hotspot-choice[disabled], qti-graphic-order-interaction .qti-theme-ims qti-hotspot-choice[disabled], .qti-theme-ims qti-simple-choice[disabled] {
1396
+ --qti-border-color: var(--qti-shadow-color);
1397
+ color: var(--qti-shadow-color);
1398
+ cursor: unset !important;
1399
+ filter: grayscale(100%);
1400
+ }
1401
+ .qti-theme-ims qti-hottext:focus-within, .qti-theme-ims qti-graphic-order-interaction qti-hotspot-choice:focus-within, qti-graphic-order-interaction .qti-theme-ims qti-hotspot-choice:focus-within, .qti-theme-ims qti-simple-choice:focus-within {
1402
+ outline-color: rgb(var(--qti-primary) 0.6);
1403
+ outline-offset: 4px;
1404
+ outline-style: solid;
1405
+ outline-width: var(--qti-border-width);
1406
+ /* applies to all before elements, choice round and circle, slider thumb */
1407
+ }
1408
+ .qti-theme-ims qti-hottext:focus-within::before, .qti-theme-ims qti-graphic-order-interaction qti-hotspot-choice:focus-within::before, qti-graphic-order-interaction .qti-theme-ims qti-hotspot-choice:focus-within::before, .qti-theme-ims qti-simple-choice:focus-within::before {
1409
+ background-color: rgb(var(--qti-primary) 0.2);
1410
+ }
1411
+ .qti-theme-ims qti-hottext:hover:not([disabled]), .qti-theme-ims qti-graphic-order-interaction qti-hotspot-choice:hover:not([disabled]), qti-graphic-order-interaction .qti-theme-ims qti-hotspot-choice:hover:not([disabled]), .qti-theme-ims qti-simple-choice:hover:not([disabled]) {
1412
+ outline-color: rgb(var(--qti-primary) 0.4);
1413
+ outline-offset: 2px;
1414
+ outline-style: solid;
1415
+ outline-width: calc(var(--qti-border-width) * 2);
1416
+ }
1417
+ .qti-theme-ims qti-hottext[role=checkbox]::before, .qti-theme-ims qti-simple-choice[role=checkbox]::before {
1418
+ content: "";
1419
+ min-height: var(--width);
1420
+ min-width: var(--width);
1421
+ transition: border-radius 1s ease-in;
1422
+ }
1423
+ .qti-theme-ims qti-hottext[role=checkbox]::after, .qti-theme-ims qti-simple-choice[role=checkbox]::after {
1424
+ border-bottom: 3px solid var(--qti-primary-color);
1425
+ border-left: 3px solid var(--qti-primary-color);
1426
+ content: "";
1427
+ display: inline-block;
1428
+ height: 6px;
1429
+ opacity: 0;
1430
+ position: absolute;
1431
+ transform: translate(6px, -2px) rotate(-45deg);
1432
+ transition: all 0.2s ease;
1433
+ width: 10px;
1434
+ }
1435
+ .qti-theme-ims qti-hottext[role=checkbox][aria-checked=true]::after, .qti-theme-ims qti-simple-choice[role=checkbox][aria-checked=true]::after {
1436
+ border-bottom: 2px solid var(--qti-primary-color);
1437
+ border-left: 2px solid var(--qti-primary-color);
1438
+ opacity: 1;
1439
+ }
1440
+ .qti-theme-ims qti-hottext[role=radio]::before, .qti-theme-ims qti-simple-choice[role=radio]::before {
1441
+ border-radius: 100%;
1442
+ content: "";
1443
+ min-height: 22px;
1444
+ min-width: 22px;
1445
+ }
1446
+ .qti-theme-ims qti-hottext[role=radio]::after, .qti-theme-ims qti-simple-choice[role=radio]::after {
1447
+ background: var(--qti-primary-color);
1448
+ border-radius: 100%;
1449
+ content: "";
1450
+ display: inline-block;
1451
+ height: 14px;
1452
+ margin-left: 4px;
1453
+ opacity: 0;
1454
+ position: absolute;
1455
+ transform: scale(0.8);
1456
+ transition: all 0.1s ease-out;
1457
+ width: 14px;
1458
+ }
1459
+ .qti-theme-ims qti-hottext[role=radio][aria-checked=true]::after, .qti-theme-ims qti-simple-choice[role=radio][aria-checked=true]::after {
1460
+ opacity: 1;
1461
+ transform: scale(1);
1462
+ }
1463
+ .qti-theme-ims qti-hottext::before, .qti-theme-ims qti-simple-choice::before {
1464
+ position: relative;
1465
+ display: inline-block;
1466
+ border-radius: var(--qti-border-radius);
1467
+ color: var(--qti-text-color);
1468
+ background: var(--qti-background);
1469
+ box-shadow: inset 0 0 0 var(--qti-border-width) var(--qti-border-color);
1470
+ }
1471
+ .qti-theme-ims qti-inline-choice-interaction {
1472
+ position: relative;
1473
+ display: inline-block;
1474
+ border-radius: var(--qti-border-radius);
1475
+ color: var(--qti-text-color);
1476
+ cursor: pointer;
1477
+ background: var(--qti-background);
1478
+ box-shadow: inset 0 0 0 var(--qti-border-width) var(--qti-border-color);
1479
+ }
1480
+ .qti-theme-ims qti-inline-choice-interaction[disabled] {
1481
+ --qti-border-color: var(--qti-shadow-color);
1482
+ color: var(--qti-shadow-color);
1483
+ cursor: unset !important;
1484
+ filter: grayscale(100%);
1485
+ }
1486
+ .qti-theme-ims qti-inline-choice-interaction:focus-within {
1487
+ outline-color: rgb(var(--qti-primary) 0.6);
1488
+ outline-offset: 4px;
1489
+ outline-style: solid;
1490
+ outline-width: var(--qti-border-width);
1491
+ /* applies to all before elements, choice round and circle, slider thumb */
1492
+ }
1493
+ .qti-theme-ims qti-inline-choice-interaction:focus-within::before {
1494
+ background-color: rgb(var(--qti-primary) 0.2);
1495
+ }
1496
+ .qti-theme-ims qti-inline-choice-interaction:hover:not([disabled]) {
1497
+ outline-color: rgb(var(--qti-primary) 0.4);
1498
+ outline-offset: 2px;
1499
+ outline-style: solid;
1500
+ outline-width: calc(var(--qti-border-width) * 2);
1501
+ }
1502
+ .qti-theme-ims qti-inline-choice-interaction::after {
1503
+ border-left: 5px solid transparent;
1504
+ border-right: 5px solid transparent;
1505
+ border-top: 8px solid var(--qti-border-color);
1506
+ clear: both;
1507
+ content: "";
1508
+ pointer-events: none;
1509
+ position: absolute;
1510
+ right: 5%;
1511
+ top: calc(50% - 3px);
1512
+ }
1513
+ .qti-theme-ims qti-order-interaction::part(drop-list), .qti-theme-ims qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type qti-simple-associable-choice, qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type .qti-theme-ims qti-simple-associable-choice, .qti-theme-ims qti-gap-match-interaction qti-gap, qti-gap-match-interaction .qti-theme-ims qti-gap, .qti-theme-ims qti-associate-interaction::part(drop-list) {
1514
+ position: relative;
1515
+ display: inline-block;
1516
+ border-radius: var(--qti-border-radius);
1517
+ color: var(--qti-text-color);
1518
+ border-radius: 0;
1519
+ background: var(--qti-white);
1520
+ box-shadow: inset 0 0 0 var(--qti-border-width) var(--qti-border-color);
1521
+ }
1522
+ .qti-theme-ims qti-order-interaction[disabled]::part(drop-list), .qti-theme-ims qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type qti-simple-associable-choice[disabled], qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type .qti-theme-ims qti-simple-associable-choice[disabled], .qti-theme-ims qti-gap-match-interaction qti-gap[disabled], qti-gap-match-interaction .qti-theme-ims qti-gap[disabled], .qti-theme-ims qti-associate-interaction[disabled]::part(drop-list) {
1523
+ --qti-border-color: var(--qti-shadow-color);
1524
+ color: var(--qti-shadow-color);
1525
+ cursor: unset !important;
1526
+ filter: grayscale(100%);
1527
+ }
1528
+ .qti-theme-ims qti-order-interaction:focus-within::part(drop-list), .qti-theme-ims qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type qti-simple-associable-choice:focus-within, qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type .qti-theme-ims qti-simple-associable-choice:focus-within, .qti-theme-ims qti-gap-match-interaction qti-gap:focus-within, qti-gap-match-interaction .qti-theme-ims qti-gap:focus-within, .qti-theme-ims qti-associate-interaction:focus-within::part(drop-list) {
1529
+ outline-color: rgb(var(--qti-primary) 0.6);
1530
+ outline-offset: 4px;
1531
+ outline-style: solid;
1532
+ outline-width: var(--qti-border-width);
1533
+ /* applies to all before elements, choice round and circle, slider thumb */
1534
+ }
1535
+ .qti-theme-ims qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type qti-simple-associable-choice:focus-within::before, qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type .qti-theme-ims qti-simple-associable-choice:focus-within::before, .qti-theme-ims qti-gap-match-interaction qti-gap:focus-within::before, qti-gap-match-interaction .qti-theme-ims qti-gap:focus-within::before {
1536
+ background-color: rgb(var(--qti-primary) 0.2);
1537
+ }
1538
+ .qti-theme-ims qti-order-interaction:hover:not([disabled])::part(drop-list), .qti-theme-ims qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type qti-simple-associable-choice:hover:not([disabled]), qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type .qti-theme-ims qti-simple-associable-choice:hover:not([disabled]), .qti-theme-ims qti-gap-match-interaction qti-gap:hover:not([disabled]), qti-gap-match-interaction .qti-theme-ims qti-gap:hover:not([disabled]), .qti-theme-ims qti-associate-interaction:hover:not([disabled])::part(drop-list) {
1539
+ outline-color: rgb(var(--qti-primary) 0.4);
1540
+ outline-offset: 2px;
1541
+ outline-style: solid;
1542
+ outline-width: calc(var(--qti-border-width) * 2);
1543
+ }
1544
+ .qti-theme-ims qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type qti-simple-associable-choice:empty::after, qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type .qti-theme-ims qti-simple-associable-choice:empty::after, .qti-theme-ims qti-gap-match-interaction qti-gap:empty::after, qti-gap-match-interaction .qti-theme-ims qti-gap:empty::after {
1545
+ padding: var(--qti-padding-x) var(--qti-padding-y);
1546
+ /* when empty, put a space in it, so the height remains the same */
1547
+ display: inline-block;
1548
+ content: "\xA0";
1549
+ }
1550
+ .qti-theme-ims qti-order-interaction:not(:empty)::part(drop-list), .qti-theme-ims qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type qti-simple-associable-choice:not(:empty), qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type .qti-theme-ims qti-simple-associable-choice:not(:empty), .qti-theme-ims qti-gap-match-interaction qti-gap:not(:empty), qti-gap-match-interaction .qti-theme-ims qti-gap:not(:empty), .qti-theme-ims qti-associate-interaction:not(:empty)::part(drop-list) {
1551
+ display: inline-flex;
1552
+ }
1553
+ .qti-theme-ims qti-order-interaction:not(:empty)::part(drop-list) > *, .qti-theme-ims qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type qti-simple-associable-choice:not(:empty) > *, qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type .qti-theme-ims qti-simple-associable-choice:not(:empty) > *, .qti-theme-ims qti-gap-match-interaction qti-gap:not(:empty) > *, qti-gap-match-interaction .qti-theme-ims qti-gap:not(:empty) > *, .qti-theme-ims qti-associate-interaction:not(:empty)::part(drop-list) > * {
1554
+ flex-grow: 1;
1555
+ margin: 2px;
1556
+ }
1557
+ .qti-theme-ims qti-order-interaction[active]::part(drop-list), .qti-theme-ims qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type qti-simple-associable-choice[active], qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type .qti-theme-ims qti-simple-associable-choice[active], .qti-theme-ims qti-gap-match-interaction qti-gap[active], qti-gap-match-interaction .qti-theme-ims qti-gap[active], .qti-theme-ims qti-associate-interaction[active]::part(drop-list) {
1558
+ background: rgb(var(--qti-primary) 0.4) !important;
1559
+ }
1560
+ .qti-theme-ims qti-order-interaction qti-simple-choice, qti-order-interaction .qti-theme-ims qti-simple-choice, .qti-theme-ims qti-order-interaction::part(qti-simple-choice), .qti-theme-ims qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:first-of-type qti-simple-associable-choice, qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:first-of-type .qti-theme-ims qti-simple-associable-choice, .qti-theme-ims qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type qti-simple-associable-choice > qti-simple-associable-choice, qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type .qti-theme-ims qti-simple-associable-choice > qti-simple-associable-choice, .qti-theme-ims qti-gap-match-interaction qti-gap-text, qti-gap-match-interaction .qti-theme-ims qti-gap-text, .qti-theme-ims qti-associate-interaction qti-simple-associable-choice, qti-associate-interaction .qti-theme-ims qti-simple-associable-choice, .qti-theme-ims qti-associate-interaction::part(qti-simple-associable-choice) {
1561
+ position: relative;
1562
+ display: inline-block;
1563
+ border-radius: var(--qti-border-radius);
1564
+ color: var(--qti-text-color);
1565
+ cursor: pointer;
1566
+ padding: var(--qti-padding-x) var(--qti-padding-y);
1567
+ background: var(--qti-background);
1568
+ box-shadow: inset 0 0 0 var(--qti-border-width) var(--qti-border-color);
1569
+ }
1570
+ .qti-theme-ims qti-order-interaction qti-simple-choice[disabled], qti-order-interaction .qti-theme-ims qti-simple-choice[disabled], .qti-theme-ims qti-order-interaction[disabled]::part(qti-simple-choice), .qti-theme-ims qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:first-of-type qti-simple-associable-choice[disabled], qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:first-of-type .qti-theme-ims qti-simple-associable-choice[disabled], .qti-theme-ims qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type qti-simple-associable-choice > qti-simple-associable-choice[disabled], qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type .qti-theme-ims qti-simple-associable-choice > qti-simple-associable-choice[disabled], .qti-theme-ims qti-gap-match-interaction qti-gap-text[disabled], qti-gap-match-interaction .qti-theme-ims qti-gap-text[disabled], .qti-theme-ims qti-associate-interaction qti-simple-associable-choice[disabled], qti-associate-interaction .qti-theme-ims qti-simple-associable-choice[disabled], .qti-theme-ims qti-associate-interaction[disabled]::part(qti-simple-associable-choice) {
1571
+ --qti-border-color: var(--qti-shadow-color);
1572
+ color: var(--qti-shadow-color);
1573
+ cursor: unset !important;
1574
+ filter: grayscale(100%);
1575
+ }
1576
+ .qti-theme-ims qti-order-interaction qti-simple-choice:focus-within, qti-order-interaction .qti-theme-ims qti-simple-choice:focus-within, .qti-theme-ims qti-order-interaction:focus-within::part(qti-simple-choice), .qti-theme-ims qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:first-of-type qti-simple-associable-choice:focus-within, qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:first-of-type .qti-theme-ims qti-simple-associable-choice:focus-within, .qti-theme-ims qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type qti-simple-associable-choice > qti-simple-associable-choice:focus-within, qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type .qti-theme-ims qti-simple-associable-choice > qti-simple-associable-choice:focus-within, .qti-theme-ims qti-gap-match-interaction qti-gap-text:focus-within, qti-gap-match-interaction .qti-theme-ims qti-gap-text:focus-within, .qti-theme-ims qti-associate-interaction qti-simple-associable-choice:focus-within, qti-associate-interaction .qti-theme-ims qti-simple-associable-choice:focus-within, .qti-theme-ims qti-associate-interaction:focus-within::part(qti-simple-associable-choice) {
1577
+ outline-color: rgb(var(--qti-primary) 0.6);
1578
+ outline-offset: 4px;
1579
+ outline-style: solid;
1580
+ outline-width: var(--qti-border-width);
1581
+ /* applies to all before elements, choice round and circle, slider thumb */
1582
+ }
1583
+ .qti-theme-ims qti-order-interaction qti-simple-choice:focus-within::before, qti-order-interaction .qti-theme-ims qti-simple-choice:focus-within::before, .qti-theme-ims qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:first-of-type qti-simple-associable-choice:focus-within::before, qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:first-of-type .qti-theme-ims qti-simple-associable-choice:focus-within::before, .qti-theme-ims qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type qti-simple-associable-choice > qti-simple-associable-choice:focus-within::before, qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type .qti-theme-ims qti-simple-associable-choice > qti-simple-associable-choice:focus-within::before, .qti-theme-ims qti-gap-match-interaction qti-gap-text:focus-within::before, qti-gap-match-interaction .qti-theme-ims qti-gap-text:focus-within::before, .qti-theme-ims qti-associate-interaction qti-simple-associable-choice:focus-within::before, qti-associate-interaction .qti-theme-ims qti-simple-associable-choice:focus-within::before {
1584
+ background-color: rgb(var(--qti-primary) 0.2);
1585
+ }
1586
+ .qti-theme-ims qti-order-interaction qti-simple-choice:hover:not([disabled]), qti-order-interaction .qti-theme-ims qti-simple-choice:hover:not([disabled]), .qti-theme-ims qti-order-interaction:hover:not([disabled])::part(qti-simple-choice), .qti-theme-ims qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:first-of-type qti-simple-associable-choice:hover:not([disabled]), qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:first-of-type .qti-theme-ims qti-simple-associable-choice:hover:not([disabled]), .qti-theme-ims qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type qti-simple-associable-choice > qti-simple-associable-choice:hover:not([disabled]), qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type .qti-theme-ims qti-simple-associable-choice > qti-simple-associable-choice:hover:not([disabled]), .qti-theme-ims qti-gap-match-interaction qti-gap-text:hover:not([disabled]), qti-gap-match-interaction .qti-theme-ims qti-gap-text:hover:not([disabled]), .qti-theme-ims qti-associate-interaction qti-simple-associable-choice:hover:not([disabled]), qti-associate-interaction .qti-theme-ims qti-simple-associable-choice:hover:not([disabled]), .qti-theme-ims qti-associate-interaction:hover:not([disabled])::part(qti-simple-associable-choice) {
1587
+ outline-color: rgb(var(--qti-primary) 0.4);
1588
+ outline-offset: 2px;
1589
+ outline-style: solid;
1590
+ outline-width: calc(var(--qti-border-width) * 2);
1591
+ }
1592
+ .qti-theme-ims qti-order-interaction qti-simple-choice[active], qti-order-interaction .qti-theme-ims qti-simple-choice[active], .qti-theme-ims qti-order-interaction[active]::part(qti-simple-choice), .qti-theme-ims qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:first-of-type qti-simple-associable-choice[active], qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:first-of-type .qti-theme-ims qti-simple-associable-choice[active], .qti-theme-ims qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type qti-simple-associable-choice > qti-simple-associable-choice[active], qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type .qti-theme-ims qti-simple-associable-choice > qti-simple-associable-choice[active], .qti-theme-ims qti-gap-match-interaction qti-gap-text[active], qti-gap-match-interaction .qti-theme-ims qti-gap-text[active], .qti-theme-ims qti-associate-interaction qti-simple-associable-choice[active], qti-associate-interaction .qti-theme-ims qti-simple-associable-choice[active], .qti-theme-ims qti-associate-interaction[active]::part(qti-simple-associable-choice) {
1593
+ background: rgb(var(--qti-primary) 0.4) !important;
1594
+ }
1595
+ .qti-theme-ims qti-slider-interaction {
1596
+ cursor: pointer;
1597
+ }
1598
+ .qti-theme-ims qti-slider-interaction[disabled] {
1599
+ --qti-border-color: var(--qti-shadow-color);
1600
+ color: var(--qti-shadow-color);
1601
+ cursor: unset !important;
1602
+ filter: grayscale(100%);
1603
+ }
1604
+ .qti-theme-ims qti-slider-interaction:focus-within {
1605
+ outline-color: rgb(var(--qti-primary) 0.6);
1606
+ outline-offset: 4px;
1607
+ outline-style: solid;
1608
+ outline-width: var(--qti-border-width);
1609
+ /* applies to all before elements, choice round and circle, slider thumb */
1610
+ }
1611
+ .qti-theme-ims qti-slider-interaction:focus-within::before {
1612
+ background-color: rgb(var(--qti-primary) 0.2);
1613
+ }
1614
+ .qti-theme-ims qti-slider-interaction:hover:not([disabled]) {
1615
+ outline-color: rgb(var(--qti-primary) 0.4);
1616
+ outline-offset: 2px;
1617
+ outline-style: solid;
1618
+ outline-width: calc(var(--qti-border-width) * 2);
1619
+ }
1620
+ .qti-theme-ims qti-slider-interaction::part(knob) {
1621
+ position: relative;
1622
+ display: inline-block;
1623
+ border-radius: var(--qti-border-radius);
1624
+ color: var(--qti-text-color);
1625
+ cursor: pointer;
1626
+ border-radius: calc(var(--qti-border-radius) * 3);
1627
+ background: var(--qti-background);
1628
+ box-shadow: inset 0 0 0 var(--qti-border-width) var(--qti-border-color);
1629
+ width: 24px;
1630
+ height: 24px;
1631
+ border-radius: 100%;
1632
+ aspect-ratio: 1/1;
1633
+ transform: translateX(-50%);
1634
+ transform-origin: center;
1635
+ }
1636
+
1637
+ qti-associate-interaction::part(associables-container) {
1638
+ display: flex;
1639
+ width: 100%;
1640
+ height: 100%;
1641
+ justify-content: space-between;
1642
+ margin-top: 1rem;
1643
+ background: linear-gradient(180deg, rgba(0, 0, 0, 0) calc(50% - 1px), var(--qti-border-color) 50%, rgba(0, 0, 0, 0) calc(50% + 1px));
1644
+ }
1645
+
1646
+ qti-associate-interaction::part(drop-list) {
1647
+ width: 30%;
1648
+ height: 40px;
1649
+ }
1650
+
1651
+ /* Choice as checkbox */
1652
+ qti-simple-choice {
1653
+ position: relative;
1654
+ }
1655
+
1656
+ .qti-input-control-hidden qti-simple-choice::before, .qti-input-control-hidden qti-simple-choice::after {
1657
+ content: unset !important;
1658
+ }
1659
+
1660
+ qti-choice-interaction {
1661
+ display: grid;
1662
+ grid-auto-flow: row dense;
1663
+ grid-gap: 10px;
1664
+ grid-template-rows: auto auto;
1665
+ }
1666
+ qti-choice-interaction.qti-choices-stacking-1 {
1667
+ grid-template-columns: repeat(1, 1fr);
1668
+ }
1669
+ qti-choice-interaction.qti-choices-stacking-2 {
1670
+ grid-template-columns: repeat(2, 1fr);
1671
+ }
1672
+ qti-choice-interaction.qti-choices-stacking-3 {
1673
+ grid-template-columns: repeat(3, 1fr);
1674
+ }
1675
+ qti-choice-interaction.qti-choices-stacking-4 {
1676
+ grid-template-columns: repeat(4, 1fr);
1677
+ }
1678
+ qti-choice-interaction.qti-choices-stacking-5 {
1679
+ grid-template-columns: repeat(5, 1fr);
1680
+ }
1681
+ qti-choice-interaction.qti-orientation-horizontal {
1682
+ display: flex;
1683
+ }
1684
+ qti-choice-interaction[orientation=horizontal] {
1685
+ display: flex;
1686
+ }
1687
+
1688
+ .qti-height-lines-3 {
1689
+ width: 100%;
1690
+ }
1691
+
1692
+ .qti-height-lines-6 {
1693
+ width: 100%;
1694
+ }
1695
+
1696
+ .qti-height-lines-15 {
1697
+ width: 100%;
1698
+ }
1699
+
1700
+ qti-gap-match-interaction {
1701
+ display: block;
1702
+ }
1703
+ qti-gap-match-interaction qti-gap {
1704
+ width: 20%;
1705
+ }
1706
+
1707
+ qti-graphic-associate-interaction {
1708
+ position: relative;
1709
+ display: block;
1710
+ }
1711
+ qti-graphic-associate-interaction qti-associable-hotspot[shape=circle] {
1712
+ border-radius: 100%;
1713
+ background-color: green;
1714
+ }
1715
+ qti-graphic-associate-interaction qti-associable-hotspot[shape=square] {
1716
+ border-radius: 0;
1717
+ background-color: green;
1718
+ }
1719
+
1720
+ qti-graphic-gap-match-interaction {
1721
+ position: relative;
1722
+ display: block;
1723
+ }
1724
+ qti-graphic-order-interaction {
1725
+ position: relative;
1726
+ display: block;
1727
+ }
1728
+ qti-graphic-order-interaction qti-hotspot-choice {
1729
+ position: absolute;
1730
+ }
1731
+ qti-graphic-order-interaction qti-hotspot-choice[shape=circle]::before {
1732
+ border-radius: 100%;
1733
+ background: transparent;
1734
+ }
1735
+ qti-graphic-order-interaction qti-hotspot-choice[shape=square]::before {
1736
+ border-radius: 0;
1737
+ background: transparent;
1738
+ }
1739
+ qti-graphic-order-interaction qti-hotspot-choice::before {
1740
+ content: unset !important;
1741
+ }
1742
+ qti-graphic-order-interaction qti-hotspot-choice::after {
1743
+ display: flex !important;
1744
+ width: unset !important;
1745
+ min-width: var(--width);
1746
+ height: unset !important;
1747
+ min-height: var(--width);
1748
+ align-items: center;
1749
+ justify-content: center;
1750
+ border: unset !important;
1751
+ background: unset;
1752
+ background: rgba(21, 0, 255, 0.067);
1753
+ content: attr(aria-ordervalue) !important;
1754
+ opacity: unset !important;
1755
+ transform: unset !important;
1756
+ transition: unset !important;
1757
+ }
1758
+
1759
+ qti-hotspot-interaction qti-hotspot-choice {
1760
+ position: absolute;
1761
+ }
1762
+
1763
+ /* Choice as checkbox */
1764
+ qti-hottext {
1765
+ position: relative;
1766
+ vertical-align: bottom;
1767
+ }
1768
+
1769
+ .qti-input-control-hidden qti-hottext {
1770
+ vertical-align: unset;
1771
+ }
1772
+ .qti-input-control-hidden qti-hottext::before, .qti-input-control-hidden qti-hottext::after {
1773
+ content: unset !important;
1774
+ }
1775
+
1776
+ qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:first-of-type {
1777
+ display: flex;
1778
+ gap: var(--qti-gap, 0.5rem);
1779
+ flex-wrap: wrap;
1780
+ padding-bottom: var(--qti-gap, 0.5rem);
1781
+ }
1782
+ qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type {
1783
+ display: flex;
1784
+ gap: var(--qti-gap, 0.5rem);
1785
+ flex-wrap: wrap;
1786
+ }
1787
+ qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type qti-simple-associable-choice {
1788
+ padding: var(--qti-padding-x) var(--qti-padding-y);
1789
+ flex: 1 1 0px;
1790
+ display: flex;
1791
+ flex-wrap: wrap;
1792
+ flex-direction: column;
1793
+ }
1794
+ qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type qti-simple-associable-choice > qti-simple-associable-choice {
1795
+ height: auto;
1796
+ }
1797
+
1798
+ qti-match-interaction.qti-match-tabular qti-simple-match-set:first-of-type {
1799
+ display: flex;
1800
+ margin-left: 4rem;
1801
+ font-weight: bold;
1802
+ gap: 2rem;
1803
+ }
1804
+ qti-match-interaction.qti-match-tabular qti-simple-match-set:last-of-type {
1805
+ display: flex;
1806
+ flex-direction: column;
1807
+ gap: 0.2rem;
1808
+ }
1809
+ qti-match-interaction.qti-match-tabular qti-simple-match-set:last-of-type qti-simple-associable-choice {
1810
+ display: unset !important;
1811
+ }
1812
+ qti-match-interaction.qti-match-tabular qti-simple-match-set:last-of-type qti-simple-associable-choice > * {
1813
+ display: block !important;
1814
+ }
1815
+
1816
+ qti-order-interaction::part(drop-list) {
1817
+ width: 30%;
1818
+ height: 40px;
1819
+ }
1820
+
1821
+ qti-order-interaction::part(drop-list) {
1822
+ display: block;
1823
+ background: var(--qti-background, #eee);
1824
+ padding: var(--qti-padding-x, 0.7rem) var(--qti-padding-y, 0.5rem);
1825
+ }
1826
+
1827
+ qti-select-point-interaction {
1828
+ position: relative;
1829
+ display: block;
1830
+ }
1831
+
1832
+ qti-slider-interaction {
1833
+ width: 100%;
1834
+ display: block;
1835
+ }
1836
+
1837
+ qti-slider-interaction::part(knob) {
1838
+ position: absolute;
1839
+ }
1840
+
1841
+ qti-slider-interaction::part(rail) {
1842
+ background-position: 0 center;
1843
+ /* ticks */
1844
+ background: linear-gradient(to right, var(--qti-border-color) var(--qti-border-width), transparent 1px) repeat-x, linear-gradient(to top, var(--qti-border-color) var(--qti-border-width), transparent 1px) repeat-x;
1845
+ background-size: calc((100% - var(--qti-border-width)) / ((var(--max) - var(--min)) / var(--step))) 50%;
1846
+ }
1847
+
1848
+ qti-prompt {
1849
+ display: block;
1850
+ }
1851
+
1852
+ qti-content-body {
1853
+ display: block;
1854
+ }
1855
+
1856
+ qti-rubric-block qti-content-body:not(:empty) {
1857
+ display: block;
1858
+ padding: 1rem;
1859
+ border: 1px solid #ddd;
1860
+ margin-bottom: 1rem;
1861
+ }
1862
+
1863
+ .qti-theme-ims {
1864
+ --qti-border-width: 1px;
1865
+ --qti-border-color: var(--qti-primary-color);
1866
+ --qti-text-color: var(--qti-primary-color);
1867
+ --qti-background: #f6f6f6;
1868
+ }
1869
+
1870
+ .qti-theme-subtle {
1871
+ --qti-border-radius: 0;
1872
+ --qti-border-width: 2px;
1873
+ --qti-background: #fcfcfc;
1874
+ --qti-padding-x: 0.5rem;
1875
+ --qti-padding-y: 0.8rem;
1876
+ }
1877
+
1878
+ .qti-theme-raised {
1879
+ --qti-border-radius: 0;
1880
+ --qti-border-width: 2px;
1881
+ --qti-background: #ebebeb;
1882
+ --qti-padding-x: 0.5rem;
1883
+ --qti-padding-y: 0.8rem;
1884
+ }
1885
+
1886
+ qti-item-body img {
1887
+ width: 100% !important;
1888
+ height: auto !important;
1889
+ }`;var De=class extends Vc(L,"qti-assessment-item"){constructor(){super(...arguments);this.disabled=!1;this.readonly=!1;this.provider=new gt(this,Tt,{log:i=>console.log(`[my-app] ${i}`),view:"candidate"});this.processResponse=()=>{var i;return(i=this._item)==null?void 0:i.processResponse()};this.validateResponses=()=>this._item?this._item.validateResponses():!1;this.resetInteractions=()=>{var i;return(i=this._item)==null?void 0:i.resetInteractions()};this.render=()=>y`${Yc(this._xml)}`}handleDisabledChange(i,r){var s,n;r&&((s=this._item)==null||s.setAttribute("disabled","")),!r&&((n=this._item)==null||n.removeAttribute("disabled"))}handleReadonlyChange(i,r){var s,n;r&&((s=this._item)==null||s.setAttribute("readonly","")),!r&&((n=this._item)==null||n.removeAttribute("readonly"))}handleResponsesChange(i,r){this._item&&(this._item.responses=r)}set qtiContext(i){this.provider.value.view=i.view,this.provider.updateObservers()}get _item(){var i;return(i=this.shadowRoot)==null?void 0:i.querySelector("qti-assessment-item")}set xml(i){let r=this._xml;this._xml=i,this.requestUpdate("xml",r)}get xml(){return this._xml}connectedCallback(){super.connectedCallback();let i=document.createElement("style");i.innerHTML=Gc,this.shadowRoot.appendChild(i)}};De.styles=F`
1890
+ :host {
1891
+ display: block; /* necessary to calculate scaling position */
1892
+ width: 100%;
1893
+ height: 100%;
1894
+ overflow: auto;
1895
+ }
1896
+ qti-assessment-item {
1897
+ display: block; /* necessary to calculate scaling position */
1898
+ width: 100%;
1899
+ }
1900
+ :host([scales]) qti-assessment-item {
1901
+ aspect-ratio: 4 / 3;
1902
+ width: 800px;
1903
+ transform-origin: 0 0;
1904
+ }
1905
+ `,_([C({type:Boolean})],De.prototype,"disabled",2),_([Z("disabled",{waitUntilFirstUpdate:!0})],De.prototype,"handleDisabledChange",1),_([C({type:Boolean})],De.prototype,"readonly",2),_([Z("readonly",{waitUntilFirstUpdate:!0})],De.prototype,"handleReadonlyChange",1),_([C({type:Object,attribute:!1})],De.prototype,"responses",2),_([Z("responses",{waitUntilFirstUpdate:!0})],De.prototype,"handleResponsesChange",1),_([C({type:String})],De.prototype,"xml",1);customElements.define("qti-item",De);var nl=mt(sl(),1);var pp=new Set(["children","localName","ref","style","className"]),al=new WeakMap,fp=(e,t,i,r,s)=>{let n=s==null?void 0:s[t];n===void 0||i===r?i==null&&t in HTMLElement.prototype?e.removeAttribute(t):e[t]=i:((o,c,l)=>{let p=al.get(o);p===void 0&&al.set(o,p=new Map);let b=p.get(c);l!==void 0?b===void 0?(p.set(c,b={handleEvent:l}),o.addEventListener(c,b)):b.handleEvent=l:b!==void 0&&(p.delete(c),o.removeEventListener(c,b))})(e,n,i)};function Fn(e=window.React,t,i,r,s){let n,o,c;if(t===void 0){let I=e;({tagName:o,elementClass:c,events:r,displayName:s}=I),n=I.react}else n=e,c=i,o=t;let l=n.Component,p=n.createElement,b=new Set(Object.keys(r!=null?r:{}));class x extends l{constructor(){super(...arguments),this.o=null}t(O){if(this.o!==null)for(let H in this.i)fp(this.o,H,this.props[H],O?O[H]:void 0,r)}componentDidMount(){this.t()}componentDidUpdate(O){this.t(O)}render(){let xe=this.props,{_$Gl:O}=xe,H=Yu(xe,["_$Gl"]);this.h!==O&&(this.u=te=>{O!==null&&((X,fe)=>{typeof X=="function"?X(fe):X.current=fe})(O,te),this.o=te,this.h=O}),this.i={};let Q={ref:this.u};for(let[te,X]of Object.entries(H))pp.has(te)?Q[te==="className"?"class":te]=X:b.has(te)||te in c.prototype?this.i[te]=X:Q[te]=X;return p(o,Q)}}x.displayName=s!=null?s:c.name;let N=n.forwardRef((I,O)=>p(x,ie(D({},I),{_$Gl:O}),I==null?void 0:I.children));return N.displayName=x.displayName,N}var J2=Fn({tagName:"qti-item",react:nl.default,elementClass:De,events:{qtioutcomechanged:"qti-outcome-changed",qtiinteractionchanged:"qti-interaction-changed"}});var _i=(e,t)=>{class i 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 i};customElements.define("qti-test-next",class extends _i(L,"on-next-item"){constructor(){super(...arguments);this.render=()=>y`<slot></slot>`}});customElements.define("qti-test-item",class extends _i(L,"on-request-item"){constructor(){super(...arguments);this.render=()=>y`<slot></slot>`}});customElements.define("qti-test-prev",class extends _i(L,"on-prev-item"){constructor(){super(...arguments);this.render=()=>y`<slot></slot>`}});customElements.define("qti-test-check",class extends _i(L,"on-check-item"){constructor(){super(...arguments);this.render=()=>y`<slot></slot>`}});customElements.define("qti-test-score",class extends _i(L,"on-score-item"){constructor(){super(...arguments);this.render=()=>y`<slot></slot>`}});customElements.define("qti-test-show-correct",class extends _i(L,"on-show-correct"){constructor(){super(...arguments);this.render=()=>y`<slot></slot>`}});var yt={ON_ITEM_WAS_FINISHED:"onItemWasFinished",ON_NO_RESPONSE_ON_SUBMIT:"onNoResponseOnSubmit",ON_REQUEST_ITEM:"onRequestItem",ON_TEST_FINISHED:"onTestFinished",ON_ITEM_READY:"onItemReady"},mp=(i=>(i.linear="linear",i.nonlinear="nonlinear",i))(mp||{}),bp=(i=>(i.individual="individual",i.simultaneous="simultaneous",i))(bp||{}),ve=class extends L{constructor(){super(...arguments);this.disabled=!1;this.readonly=!1;this._navigationMode="nonlinear";this._submissionMode="simultaneous";this.items=[];this.itemIndex=0;this.provider=new gt(this,Tt,{log:i=>{console.log(`[my-app] ${i}`)},view:"candidate"})}handleNavigationModeChange(i,r){this.prevButton.style.visibility=r==="linear"?"hidden":"visible"}handleItemIndexChange(i,r){this.emit(yt.ON_REQUEST_ITEM,{detail:r})}set qtiContext(i){this.provider.value.view=i.view,this.provider.updateObservers()}set itemXML(i){this._itemRef&&this._itemRef.remove(),this.insertAdjacentHTML("afterbegin",i)}set manualOutcomeValue(i){this._itemRef.setOutcomeValue("SCORE",i)}set itemResponse(i){this._itemRef&&(this._itemRef.responses=i,this._navigationMode==="linear"&&(this._itemRef.style.filter="blur(5px)",this._itemRef.setAttribute("disabled",""),this.dispatchEvent(new CustomEvent(yt.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(yt.ON_REQUEST_ITEM,{detail:this.itemIndex-1})}_onNextItem(){if(this._navigationMode==="linear"&&!this._itemRef.validateResponses()){this.dispatchEvent(new CustomEvent(yt.ON_NO_RESPONSE_ON_SUBMIT));return}this.itemIndex<this.items.length-1?this.emit(yt.ON_REQUEST_ITEM,{detail:this.itemIndex+1}):this.dispatchEvent(new CustomEvent(yt.ON_TEST_FINISHED))}_onShowCorrect(){this._itemRef.showCorrectResponse()}_onRequestItem({detail:i}){this.emit(yt.ON_REQUEST_ITEM,{detail:i})}_handleSlotchange(i){let r=this.querySelector("qti-assessment-item");r&&(this._itemRef=r,this.disabled&&this._itemRef.setAttribute("disabled",""),this.readonly&&this._itemRef.setAttribute("readonly",""),this.emit(yt.ON_ITEM_READY,{detail:r}))}render(){return y`
1906
+ <slot name="qti-item"></slot>
1907
+ <slot
1908
+ @slotchange=${this._handleSlotchange}
1909
+ @on-prev-item=${this._onPrevItem}
1910
+ @on-next-item=${this._onNextItem}
1911
+ @on-check-item=${this._onCheckItem}
1912
+ @on-score-item=${this._onScoreItem}
1913
+ @on-request-item=${this._onRequestItem}
1914
+ @on-show-correct=${this._onShowCorrect}
1915
+ >
1916
+ </slot>
1917
+ </slot>
1918
+ `}emit(i,r){let s=new CustomEvent(i,D({bubbles:!0,cancelable:!1,composed:!0,detail:{}},r));this.dispatchEvent(s)}};_([oi("qti-test-prev")],ve.prototype,"prevButton",2),_([oi("qti-test-next")],ve.prototype,"nextButton",2),_([C({type:Boolean})],ve.prototype,"disabled",2),_([C({type:Boolean})],ve.prototype,"readonly",2),_([C({type:String,attribute:"navigation-mode"})],ve.prototype,"_navigationMode",2),_([Z("_navigationMode",{waitUntilFirstUpdate:!0})],ve.prototype,"handleNavigationModeChange",1),_([C({type:String,attribute:"submission-mode"})],ve.prototype,"_submissionMode",2),_([C({attribute:!1})],ve.prototype,"items",2),_([C({type:Number,attribute:"item-index",reflect:!0})],ve.prototype,"itemIndex",2),_([Z("itemIndex",{waitUntilFirstUpdate:!0})],ve.prototype,"handleItemIndexChange",1),_([is()],ve.prototype,"_itemRef",2),ve=_([ue("qti-test")],ve);var Ep={xml:!1,decodeEntities:!0},ar=Ep,ol={_useHtmlParser2:!0,xmlMode:!0};function nr(e){return e!=null&&e.xml?typeof e.xml=="boolean"?ol:D(D({},ol),e.xml):e!=null?e:void 0}var St={};Fe(St,{contains:()=>uo,html:()=>Il,merge:()=>uf,parseHTML:()=>nf,root:()=>of,text:()=>Nt,xml:()=>Rl});var lt={};Fe(lt,{DocumentPosition:()=>He,append:()=>$p,appendChild:()=>Fp,compareDocumentPosition:()=>yl,existsOne:()=>ql,filter:()=>mr,find:()=>br,findAll:()=>Wp,findOne:()=>js,findOneChild:()=>Gp,getAttributeValue:()=>Mp,getChildren:()=>Ci,getElementById:()=>Qp,getElements:()=>Kp,getElementsByTagName:()=>jt,getElementsByTagType:()=>zp,getFeed:()=>oo,getInnerHTML:()=>Pp,getName:()=>Bp,getOuterHTML:()=>_l,getParent:()=>xl,getSiblings:()=>no,getText:()=>Ys,hasAttrib:()=>Hp,hasChildren:()=>ae,innerText:()=>fr,isCDATA:()=>xi,isComment:()=>Wt,isDocument:()=>$e,isTag:()=>P,isText:()=>Ie,nextElementSibling:()=>Gs,prepend:()=>Yp,prependChild:()=>Vp,prevElementSibling:()=>Ws,removeElement:()=>ct,removeSubsets:()=>Jp,replaceElement:()=>Up,testElement:()=>Xp,textContent:()=>ut,uniqueSort:()=>Ct});var Ms={};Fe(Ms,{CDATA:()=>Qn,Comment:()=>Wn,Directive:()=>Gn,Doctype:()=>zn,ElementType:()=>G,Root:()=>Vn,Script:()=>jn,Style:()=>Xn,Tag:()=>Kn,Text:()=>Yn,isTag:()=>$n});var G;(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"})(G||(G={}));function $n(e){return e.type===G.Tag||e.type===G.Script||e.type===G.Style}var Vn=G.Root,Yn=G.Text,Gn=G.Directive,Wn=G.Comment,jn=G.Script,Xn=G.Style,Kn=G.Tag,Qn=G.CDATA,zn=G.Doctype;var Hs=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 lr(this,t)}},or=class extends Hs{constructor(t){super(),this.data=t}get nodeValue(){return this.data}set nodeValue(t){this.data=t}},Ze=class extends or{constructor(){super(...arguments),this.type=G.Text}get nodeType(){return 3}},Vt=class extends or{constructor(){super(...arguments),this.type=G.Comment}get nodeType(){return 8}},Yt=class extends or{constructor(t,i){super(i),this.name=t,this.type=G.Directive}get nodeType(){return 1}},ur=class extends Hs{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}},cr=class extends ur{constructor(){super(...arguments),this.type=G.CDATA}get nodeType(){return 4}},we=class extends ur{constructor(){super(...arguments),this.type=G.Root}get nodeType(){return 9}},Gt=class extends ur{constructor(t,i,r=[],s=t==="script"?G.Script:t==="style"?G.Style:G.Tag){super(r),this.name=t,this.attribs=i,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 i,r;return{name:t,value:this.attribs[t],namespace:(i=this["x-attribsNamespace"])===null||i===void 0?void 0:i[t],prefix:(r=this["x-attribsPrefix"])===null||r===void 0?void 0:r[t]}})}};function P(e){return $n(e)}function xi(e){return e.type===G.CDATA}function Ie(e){return e.type===G.Text}function Wt(e){return e.type===G.Comment}function Bs(e){return e.type===G.Directive}function $e(e){return e.type===G.Root}function ae(e){return Object.prototype.hasOwnProperty.call(e,"children")}function lr(e,t=!1){let i;if(Ie(e))i=new Ze(e.data);else if(Wt(e))i=new Vt(e.data);else if(P(e)){let r=t?Jn(e.children):[],s=new Gt(e.name,D({},e.attribs),r);r.forEach(n=>n.parent=s),e.namespace!=null&&(s.namespace=e.namespace),e["x-attribsNamespace"]&&(s["x-attribsNamespace"]=D({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(s["x-attribsPrefix"]=D({},e["x-attribsPrefix"])),i=s}else if(xi(e)){let r=t?Jn(e.children):[],s=new cr(r);r.forEach(n=>n.parent=s),i=s}else if($e(e)){let r=t?Jn(e.children):[],s=new we(r);r.forEach(n=>n.parent=s),e["x-mode"]&&(s["x-mode"]=e["x-mode"]),i=s}else if(Bs(e)){let r=new Yt(e.name,e.data);e["x-name"]!=null&&(r["x-name"]=e["x-name"],r["x-publicId"]=e["x-publicId"],r["x-systemId"]=e["x-systemId"]),i=r}else throw new Error(`Not implemented yet: ${e.type}`);return i.startIndex=e.startIndex,i.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(i.sourceCodeLocation=e.sourceCodeLocation),i}function Jn(e){let t=e.map(i=>lr(i,!0));for(let i=1;i<t.length;i++)t[i].prev=t[i-1],t[i-1].next=t[i];return t}var ul={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},qi=class{constructor(t,i,r){this.dom=[],this.root=new we(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof i=="function"&&(r=i,i=ul),typeof t=="object"&&(i=t,t=void 0),this.callback=t!=null?t:null,this.options=i!=null?i:ul,this.elementCB=r!=null?r:null}onparserinit(t){this.parser=t}onreset(){this.dom=[],this.root=new we(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,i){let r=this.options.xmlMode?G.Tag:void 0,s=new Gt(t,i,void 0,r);this.addNode(s),this.tagStack.push(s)}ontext(t){let{lastNode:i}=this;if(i&&i.type===G.Text)i.data+=t,this.options.withEndIndices&&(i.endIndex=this.parser.endIndex);else{let r=new Ze(t);this.addNode(r),this.lastNode=r}}oncomment(t){if(this.lastNode&&this.lastNode.type===G.Comment){this.lastNode.data+=t;return}let i=new Vt(t);this.addNode(i),this.lastNode=i}oncommentend(){this.lastNode=null}oncdatastart(){let t=new Ze(""),i=new cr([t]);this.addNode(i),t.parent=i,this.lastNode=t}oncdataend(){this.lastNode=null}onprocessinginstruction(t,i){let r=new Yt(t,i);this.addNode(r)}handleCallback(t){if(typeof this.callback=="function")this.callback(t,this.dom);else if(t)throw t}addNode(t){let i=this.tagStack[this.tagStack.length-1],r=i.children[i.children.length-1];this.options.withStartIndices&&(t.startIndex=this.parser.startIndex),this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),i.children.push(t),r&&(t.prev=r,r.next=t),t.parent=i,this.lastNode=null}};var Me=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 Us=new Uint16Array("\u0200aglq \x1B\u026D\0\0p;\u4026os;\u4027t;\u403Et;\u403Cuot;\u4022".split("").map(e=>e.charCodeAt(0)));var Zn,gp=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]]),Ai=(Zn=String.fromCodePoint)!==null&&Zn!==void 0?Zn: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 dr(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=gp.get(e))!==null&&t!==void 0?t:e}var be;(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"})(be||(be={}));var Tp=32,ye;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(ye||(ye={}));function eo(e){return e>=be.ZERO&&e<=be.NINE}function _p(e){return e>=be.UPPER_A&&e<=be.UPPER_F||e>=be.LOWER_A&&e<=be.LOWER_F}function xp(e){return e>=be.UPPER_A&&e<=be.UPPER_Z||e>=be.LOWER_A&&e<=be.LOWER_Z||eo(e)}function qp(e){return e===be.EQUALS||xp(e)}var me;(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"})(me||(me={}));var ot;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(ot||(ot={}));var Fs=class{constructor(t,i,r){this.decodeTree=t,this.emitCodePoint=i,this.errors=r,this.state=me.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=ot.Strict}startEntity(t){this.decodeMode=t,this.state=me.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,i){switch(this.state){case me.EntityStart:return t.charCodeAt(i)===be.NUM?(this.state=me.NumericStart,this.consumed+=1,this.stateNumericStart(t,i+1)):(this.state=me.NamedEntity,this.stateNamedEntity(t,i));case me.NumericStart:return this.stateNumericStart(t,i);case me.NumericDecimal:return this.stateNumericDecimal(t,i);case me.NumericHex:return this.stateNumericHex(t,i);case me.NamedEntity:return this.stateNamedEntity(t,i)}}stateNumericStart(t,i){return i>=t.length?-1:(t.charCodeAt(i)|Tp)===be.LOWER_X?(this.state=me.NumericHex,this.consumed+=1,this.stateNumericHex(t,i+1)):(this.state=me.NumericDecimal,this.stateNumericDecimal(t,i))}addToNumericResult(t,i,r,s){if(i!==r){let n=r-i;this.result=this.result*Math.pow(s,n)+parseInt(t.substr(i,n),s),this.consumed+=n}}stateNumericHex(t,i){let r=i;for(;i<t.length;){let s=t.charCodeAt(i);if(eo(s)||_p(s))i+=1;else return this.addToNumericResult(t,r,i,16),this.emitNumericEntity(s,3)}return this.addToNumericResult(t,r,i,16),-1}stateNumericDecimal(t,i){let r=i;for(;i<t.length;){let s=t.charCodeAt(i);if(eo(s))i+=1;else return this.addToNumericResult(t,r,i,10),this.emitNumericEntity(s,2)}return this.addToNumericResult(t,r,i,10),-1}emitNumericEntity(t,i){var r;if(this.consumed<=i)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===be.SEMI)this.consumed+=1;else if(this.decodeMode===ot.Strict)return 0;return this.emitCodePoint(dr(this.result),this.consumed),this.errors&&(t!==be.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,i){let{decodeTree:r}=this,s=r[this.treeIndex],n=(s&ye.VALUE_LENGTH)>>14;for(;i<t.length;i++,this.excess++){let o=t.charCodeAt(i);if(this.treeIndex=hr(r,s,this.treeIndex+Math.max(1,n),o),this.treeIndex<0)return this.result===0||this.decodeMode===ot.Attribute&&(n===0||qp(o))?0:this.emitNotTerminatedNamedEntity();if(s=r[this.treeIndex],n=(s&ye.VALUE_LENGTH)>>14,n!==0){if(o===be.SEMI)return this.emitNamedEntityData(this.treeIndex,n,this.consumed+this.excess);this.decodeMode!==ot.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;let{result:i,decodeTree:r}=this,s=(r[i]&ye.VALUE_LENGTH)>>14;return this.emitNamedEntityData(i,s,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,i,r){let{decodeTree:s}=this;return this.emitCodePoint(i===1?s[t]&~ye.VALUE_LENGTH:s[t+1],r),i===3&&this.emitCodePoint(s[t+2],r),r}end(){var t;switch(this.state){case me.NamedEntity:return this.result!==0&&(this.decodeMode!==ot.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case me.NumericDecimal:return this.emitNumericEntity(0,2);case me.NumericHex:return this.emitNumericEntity(0,3);case me.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case me.EntityStart:return 0}}};function cl(e){let t="",i=new Fs(e,r=>t+=Ai(r));return function(s,n){let o=0,c=0;for(;(c=s.indexOf("&",c))>=0;){t+=s.slice(o,c),i.startEntity(n);let p=i.write(s,c+1);if(p<0){o=c+i.end();break}o=c+p,c=p===0?o+1:o}let l=t+s.slice(o);return t="",l}}function hr(e,t,i,r){let s=(t&ye.BRANCH_LENGTH)>>7,n=t&ye.JUMP_TABLE;if(s===0)return n!==0&&r===n?i:-1;if(n){let l=r-n;return l<0||l>=s?-1:e[i+l]-1}let o=i,c=o+s-1;for(;o<=c;){let l=o+c>>>1,p=e[l];if(p<r)o=l+1;else if(p>r)c=l-1;else return e[l+s]}return-1}var PC=cl(Me),MC=cl(Us);function $s(e){for(let t=1;t<e.length;t++)e[t][0]+=e[t-1][0]+1;return e}var Ap=new Map($s([[9,"&Tab;"],[0,"&NewLine;"],[22,"&excl;"],[0,"&quot;"],[0,"&num;"],[0,"&dollar;"],[0,"&percnt;"],[0,"&amp;"],[0,"&apos;"],[0,"&lpar;"],[0,"&rpar;"],[0,"&ast;"],[0,"&plus;"],[0,"&comma;"],[1,"&period;"],[0,"&sol;"],[10,"&colon;"],[0,"&semi;"],[0,{v:"&lt;",n:8402,o:"&nvlt;"}],[0,{v:"&equals;",n:8421,o:"&bne;"}],[0,{v:"&gt;",n:8402,o:"&nvgt;"}],[0,"&quest;"],[0,"&commat;"],[26,"&lbrack;"],[0,"&bsol;"],[0,"&rbrack;"],[0,"&Hat;"],[0,"&lowbar;"],[0,"&DiacriticalGrave;"],[5,{n:106,o:"&fjlig;"}],[20,"&lbrace;"],[0,"&verbar;"],[0,"&rbrace;"],[34,"&nbsp;"],[0,"&iexcl;"],[0,"&cent;"],[0,"&pound;"],[0,"&curren;"],[0,"&yen;"],[0,"&brvbar;"],[0,"&sect;"],[0,"&die;"],[0,"&copy;"],[0,"&ordf;"],[0,"&laquo;"],[0,"&not;"],[0,"&shy;"],[0,"&circledR;"],[0,"&macr;"],[0,"&deg;"],[0,"&PlusMinus;"],[0,"&sup2;"],[0,"&sup3;"],[0,"&acute;"],[0,"&micro;"],[0,"&para;"],[0,"&centerdot;"],[0,"&cedil;"],[0,"&sup1;"],[0,"&ordm;"],[0,"&raquo;"],[0,"&frac14;"],[0,"&frac12;"],[0,"&frac34;"],[0,"&iquest;"],[0,"&Agrave;"],[0,"&Aacute;"],[0,"&Acirc;"],[0,"&Atilde;"],[0,"&Auml;"],[0,"&angst;"],[0,"&AElig;"],[0,"&Ccedil;"],[0,"&Egrave;"],[0,"&Eacute;"],[0,"&Ecirc;"],[0,"&Euml;"],[0,"&Igrave;"],[0,"&Iacute;"],[0,"&Icirc;"],[0,"&Iuml;"],[0,"&ETH;"],[0,"&Ntilde;"],[0,"&Ograve;"],[0,"&Oacute;"],[0,"&Ocirc;"],[0,"&Otilde;"],[0,"&Ouml;"],[0,"&times;"],[0,"&Oslash;"],[0,"&Ugrave;"],[0,"&Uacute;"],[0,"&Ucirc;"],[0,"&Uuml;"],[0,"&Yacute;"],[0,"&THORN;"],[0,"&szlig;"],[0,"&agrave;"],[0,"&aacute;"],[0,"&acirc;"],[0,"&atilde;"],[0,"&auml;"],[0,"&aring;"],[0,"&aelig;"],[0,"&ccedil;"],[0,"&egrave;"],[0,"&eacute;"],[0,"&ecirc;"],[0,"&euml;"],[0,"&igrave;"],[0,"&iacute;"],[0,"&icirc;"],[0,"&iuml;"],[0,"&eth;"],[0,"&ntilde;"],[0,"&ograve;"],[0,"&oacute;"],[0,"&ocirc;"],[0,"&otilde;"],[0,"&ouml;"],[0,"&div;"],[0,"&oslash;"],[0,"&ugrave;"],[0,"&uacute;"],[0,"&ucirc;"],[0,"&uuml;"],[0,"&yacute;"],[0,"&thorn;"],[0,"&yuml;"],[0,"&Amacr;"],[0,"&amacr;"],[0,"&Abreve;"],[0,"&abreve;"],[0,"&Aogon;"],[0,"&aogon;"],[0,"&Cacute;"],[0,"&cacute;"],[0,"&Ccirc;"],[0,"&ccirc;"],[0,"&Cdot;"],[0,"&cdot;"],[0,"&Ccaron;"],[0,"&ccaron;"],[0,"&Dcaron;"],[0,"&dcaron;"],[0,"&Dstrok;"],[0,"&dstrok;"],[0,"&Emacr;"],[0,"&emacr;"],[2,"&Edot;"],[0,"&edot;"],[0,"&Eogon;"],[0,"&eogon;"],[0,"&Ecaron;"],[0,"&ecaron;"],[0,"&Gcirc;"],[0,"&gcirc;"],[0,"&Gbreve;"],[0,"&gbreve;"],[0,"&Gdot;"],[0,"&gdot;"],[0,"&Gcedil;"],[1,"&Hcirc;"],[0,"&hcirc;"],[0,"&Hstrok;"],[0,"&hstrok;"],[0,"&Itilde;"],[0,"&itilde;"],[0,"&Imacr;"],[0,"&imacr;"],[2,"&Iogon;"],[0,"&iogon;"],[0,"&Idot;"],[0,"&imath;"],[0,"&IJlig;"],[0,"&ijlig;"],[0,"&Jcirc;"],[0,"&jcirc;"],[0,"&Kcedil;"],[0,"&kcedil;"],[0,"&kgreen;"],[0,"&Lacute;"],[0,"&lacute;"],[0,"&Lcedil;"],[0,"&lcedil;"],[0,"&Lcaron;"],[0,"&lcaron;"],[0,"&Lmidot;"],[0,"&lmidot;"],[0,"&Lstrok;"],[0,"&lstrok;"],[0,"&Nacute;"],[0,"&nacute;"],[0,"&Ncedil;"],[0,"&ncedil;"],[0,"&Ncaron;"],[0,"&ncaron;"],[0,"&napos;"],[0,"&ENG;"],[0,"&eng;"],[0,"&Omacr;"],[0,"&omacr;"],[2,"&Odblac;"],[0,"&odblac;"],[0,"&OElig;"],[0,"&oelig;"],[0,"&Racute;"],[0,"&racute;"],[0,"&Rcedil;"],[0,"&rcedil;"],[0,"&Rcaron;"],[0,"&rcaron;"],[0,"&Sacute;"],[0,"&sacute;"],[0,"&Scirc;"],[0,"&scirc;"],[0,"&Scedil;"],[0,"&scedil;"],[0,"&Scaron;"],[0,"&scaron;"],[0,"&Tcedil;"],[0,"&tcedil;"],[0,"&Tcaron;"],[0,"&tcaron;"],[0,"&Tstrok;"],[0,"&tstrok;"],[0,"&Utilde;"],[0,"&utilde;"],[0,"&Umacr;"],[0,"&umacr;"],[0,"&Ubreve;"],[0,"&ubreve;"],[0,"&Uring;"],[0,"&uring;"],[0,"&Udblac;"],[0,"&udblac;"],[0,"&Uogon;"],[0,"&uogon;"],[0,"&Wcirc;"],[0,"&wcirc;"],[0,"&Ycirc;"],[0,"&ycirc;"],[0,"&Yuml;"],[0,"&Zacute;"],[0,"&zacute;"],[0,"&Zdot;"],[0,"&zdot;"],[0,"&Zcaron;"],[0,"&zcaron;"],[19,"&fnof;"],[34,"&imped;"],[63,"&gacute;"],[65,"&jmath;"],[142,"&circ;"],[0,"&caron;"],[16,"&breve;"],[0,"&DiacriticalDot;"],[0,"&ring;"],[0,"&ogon;"],[0,"&DiacriticalTilde;"],[0,"&dblac;"],[51,"&DownBreve;"],[127,"&Alpha;"],[0,"&Beta;"],[0,"&Gamma;"],[0,"&Delta;"],[0,"&Epsilon;"],[0,"&Zeta;"],[0,"&Eta;"],[0,"&Theta;"],[0,"&Iota;"],[0,"&Kappa;"],[0,"&Lambda;"],[0,"&Mu;"],[0,"&Nu;"],[0,"&Xi;"],[0,"&Omicron;"],[0,"&Pi;"],[0,"&Rho;"],[1,"&Sigma;"],[0,"&Tau;"],[0,"&Upsilon;"],[0,"&Phi;"],[0,"&Chi;"],[0,"&Psi;"],[0,"&ohm;"],[7,"&alpha;"],[0,"&beta;"],[0,"&gamma;"],[0,"&delta;"],[0,"&epsi;"],[0,"&zeta;"],[0,"&eta;"],[0,"&theta;"],[0,"&iota;"],[0,"&kappa;"],[0,"&lambda;"],[0,"&mu;"],[0,"&nu;"],[0,"&xi;"],[0,"&omicron;"],[0,"&pi;"],[0,"&rho;"],[0,"&sigmaf;"],[0,"&sigma;"],[0,"&tau;"],[0,"&upsi;"],[0,"&phi;"],[0,"&chi;"],[0,"&psi;"],[0,"&omega;"],[7,"&thetasym;"],[0,"&Upsi;"],[2,"&phiv;"],[0,"&piv;"],[5,"&Gammad;"],[0,"&digamma;"],[18,"&kappav;"],[0,"&rhov;"],[3,"&epsiv;"],[0,"&backepsilon;"],[10,"&IOcy;"],[0,"&DJcy;"],[0,"&GJcy;"],[0,"&Jukcy;"],[0,"&DScy;"],[0,"&Iukcy;"],[0,"&YIcy;"],[0,"&Jsercy;"],[0,"&LJcy;"],[0,"&NJcy;"],[0,"&TSHcy;"],[0,"&KJcy;"],[1,"&Ubrcy;"],[0,"&DZcy;"],[0,"&Acy;"],[0,"&Bcy;"],[0,"&Vcy;"],[0,"&Gcy;"],[0,"&Dcy;"],[0,"&IEcy;"],[0,"&ZHcy;"],[0,"&Zcy;"],[0,"&Icy;"],[0,"&Jcy;"],[0,"&Kcy;"],[0,"&Lcy;"],[0,"&Mcy;"],[0,"&Ncy;"],[0,"&Ocy;"],[0,"&Pcy;"],[0,"&Rcy;"],[0,"&Scy;"],[0,"&Tcy;"],[0,"&Ucy;"],[0,"&Fcy;"],[0,"&KHcy;"],[0,"&TScy;"],[0,"&CHcy;"],[0,"&SHcy;"],[0,"&SHCHcy;"],[0,"&HARDcy;"],[0,"&Ycy;"],[0,"&SOFTcy;"],[0,"&Ecy;"],[0,"&YUcy;"],[0,"&YAcy;"],[0,"&acy;"],[0,"&bcy;"],[0,"&vcy;"],[0,"&gcy;"],[0,"&dcy;"],[0,"&iecy;"],[0,"&zhcy;"],[0,"&zcy;"],[0,"&icy;"],[0,"&jcy;"],[0,"&kcy;"],[0,"&lcy;"],[0,"&mcy;"],[0,"&ncy;"],[0,"&ocy;"],[0,"&pcy;"],[0,"&rcy;"],[0,"&scy;"],[0,"&tcy;"],[0,"&ucy;"],[0,"&fcy;"],[0,"&khcy;"],[0,"&tscy;"],[0,"&chcy;"],[0,"&shcy;"],[0,"&shchcy;"],[0,"&hardcy;"],[0,"&ycy;"],[0,"&softcy;"],[0,"&ecy;"],[0,"&yucy;"],[0,"&yacy;"],[1,"&iocy;"],[0,"&djcy;"],[0,"&gjcy;"],[0,"&jukcy;"],[0,"&dscy;"],[0,"&iukcy;"],[0,"&yicy;"],[0,"&jsercy;"],[0,"&ljcy;"],[0,"&njcy;"],[0,"&tshcy;"],[0,"&kjcy;"],[1,"&ubrcy;"],[0,"&dzcy;"],[7074,"&ensp;"],[0,"&emsp;"],[0,"&emsp13;"],[0,"&emsp14;"],[1,"&numsp;"],[0,"&puncsp;"],[0,"&ThinSpace;"],[0,"&hairsp;"],[0,"&NegativeMediumSpace;"],[0,"&zwnj;"],[0,"&zwj;"],[0,"&lrm;"],[0,"&rlm;"],[0,"&dash;"],[2,"&ndash;"],[0,"&mdash;"],[0,"&horbar;"],[0,"&Verbar;"],[1,"&lsquo;"],[0,"&CloseCurlyQuote;"],[0,"&lsquor;"],[1,"&ldquo;"],[0,"&CloseCurlyDoubleQuote;"],[0,"&bdquo;"],[1,"&dagger;"],[0,"&Dagger;"],[0,"&bull;"],[2,"&nldr;"],[0,"&hellip;"],[9,"&permil;"],[0,"&pertenk;"],[0,"&prime;"],[0,"&Prime;"],[0,"&tprime;"],[0,"&backprime;"],[3,"&lsaquo;"],[0,"&rsaquo;"],[3,"&oline;"],[2,"&caret;"],[1,"&hybull;"],[0,"&frasl;"],[10,"&bsemi;"],[7,"&qprime;"],[7,{v:"&MediumSpace;",n:8202,o:"&ThickSpace;"}],[0,"&NoBreak;"],[0,"&af;"],[0,"&InvisibleTimes;"],[0,"&ic;"],[72,"&euro;"],[46,"&tdot;"],[0,"&DotDot;"],[37,"&complexes;"],[2,"&incare;"],[4,"&gscr;"],[0,"&hamilt;"],[0,"&Hfr;"],[0,"&Hopf;"],[0,"&planckh;"],[0,"&hbar;"],[0,"&imagline;"],[0,"&Ifr;"],[0,"&lagran;"],[0,"&ell;"],[1,"&naturals;"],[0,"&numero;"],[0,"&copysr;"],[0,"&weierp;"],[0,"&Popf;"],[0,"&Qopf;"],[0,"&realine;"],[0,"&real;"],[0,"&reals;"],[0,"&rx;"],[3,"&trade;"],[1,"&integers;"],[2,"&mho;"],[0,"&zeetrf;"],[0,"&iiota;"],[2,"&bernou;"],[0,"&Cayleys;"],[1,"&escr;"],[0,"&Escr;"],[0,"&Fouriertrf;"],[1,"&Mellintrf;"],[0,"&order;"],[0,"&alefsym;"],[0,"&beth;"],[0,"&gimel;"],[0,"&daleth;"],[12,"&CapitalDifferentialD;"],[0,"&dd;"],[0,"&ee;"],[0,"&ii;"],[10,"&frac13;"],[0,"&frac23;"],[0,"&frac15;"],[0,"&frac25;"],[0,"&frac35;"],[0,"&frac45;"],[0,"&frac16;"],[0,"&frac56;"],[0,"&frac18;"],[0,"&frac38;"],[0,"&frac58;"],[0,"&frac78;"],[49,"&larr;"],[0,"&ShortUpArrow;"],[0,"&rarr;"],[0,"&darr;"],[0,"&harr;"],[0,"&updownarrow;"],[0,"&nwarr;"],[0,"&nearr;"],[0,"&LowerRightArrow;"],[0,"&LowerLeftArrow;"],[0,"&nlarr;"],[0,"&nrarr;"],[1,{v:"&rarrw;",n:824,o:"&nrarrw;"}],[0,"&Larr;"],[0,"&Uarr;"],[0,"&Rarr;"],[0,"&Darr;"],[0,"&larrtl;"],[0,"&rarrtl;"],[0,"&LeftTeeArrow;"],[0,"&mapstoup;"],[0,"&map;"],[0,"&DownTeeArrow;"],[1,"&hookleftarrow;"],[0,"&hookrightarrow;"],[0,"&larrlp;"],[0,"&looparrowright;"],[0,"&harrw;"],[0,"&nharr;"],[1,"&lsh;"],[0,"&rsh;"],[0,"&ldsh;"],[0,"&rdsh;"],[1,"&crarr;"],[0,"&cularr;"],[0,"&curarr;"],[2,"&circlearrowleft;"],[0,"&circlearrowright;"],[0,"&leftharpoonup;"],[0,"&DownLeftVector;"],[0,"&RightUpVector;"],[0,"&LeftUpVector;"],[0,"&rharu;"],[0,"&DownRightVector;"],[0,"&dharr;"],[0,"&dharl;"],[0,"&RightArrowLeftArrow;"],[0,"&udarr;"],[0,"&LeftArrowRightArrow;"],[0,"&leftleftarrows;"],[0,"&upuparrows;"],[0,"&rightrightarrows;"],[0,"&ddarr;"],[0,"&leftrightharpoons;"],[0,"&Equilibrium;"],[0,"&nlArr;"],[0,"&nhArr;"],[0,"&nrArr;"],[0,"&DoubleLeftArrow;"],[0,"&DoubleUpArrow;"],[0,"&DoubleRightArrow;"],[0,"&dArr;"],[0,"&DoubleLeftRightArrow;"],[0,"&DoubleUpDownArrow;"],[0,"&nwArr;"],[0,"&neArr;"],[0,"&seArr;"],[0,"&swArr;"],[0,"&lAarr;"],[0,"&rAarr;"],[1,"&zigrarr;"],[6,"&larrb;"],[0,"&rarrb;"],[15,"&DownArrowUpArrow;"],[7,"&loarr;"],[0,"&roarr;"],[0,"&hoarr;"],[0,"&forall;"],[0,"&comp;"],[0,{v:"&part;",n:824,o:"&npart;"}],[0,"&exist;"],[0,"&nexist;"],[0,"&empty;"],[1,"&Del;"],[0,"&Element;"],[0,"&NotElement;"],[1,"&ni;"],[0,"&notni;"],[2,"&prod;"],[0,"&coprod;"],[0,"&sum;"],[0,"&minus;"],[0,"&MinusPlus;"],[0,"&dotplus;"],[1,"&Backslash;"],[0,"&lowast;"],[0,"&compfn;"],[1,"&radic;"],[2,"&prop;"],[0,"&infin;"],[0,"&angrt;"],[0,{v:"&ang;",n:8402,o:"&nang;"}],[0,"&angmsd;"],[0,"&angsph;"],[0,"&mid;"],[0,"&nmid;"],[0,"&DoubleVerticalBar;"],[0,"&NotDoubleVerticalBar;"],[0,"&and;"],[0,"&or;"],[0,{v:"&cap;",n:65024,o:"&caps;"}],[0,{v:"&cup;",n:65024,o:"&cups;"}],[0,"&int;"],[0,"&Int;"],[0,"&iiint;"],[0,"&conint;"],[0,"&Conint;"],[0,"&Cconint;"],[0,"&cwint;"],[0,"&ClockwiseContourIntegral;"],[0,"&awconint;"],[0,"&there4;"],[0,"&becaus;"],[0,"&ratio;"],[0,"&Colon;"],[0,"&dotminus;"],[1,"&mDDot;"],[0,"&homtht;"],[0,{v:"&sim;",n:8402,o:"&nvsim;"}],[0,{v:"&backsim;",n:817,o:"&race;"}],[0,{v:"&ac;",n:819,o:"&acE;"}],[0,"&acd;"],[0,"&VerticalTilde;"],[0,"&NotTilde;"],[0,{v:"&eqsim;",n:824,o:"&nesim;"}],[0,"&sime;"],[0,"&NotTildeEqual;"],[0,"&cong;"],[0,"&simne;"],[0,"&ncong;"],[0,"&ap;"],[0,"&nap;"],[0,"&ape;"],[0,{v:"&apid;",n:824,o:"&napid;"}],[0,"&backcong;"],[0,{v:"&asympeq;",n:8402,o:"&nvap;"}],[0,{v:"&bump;",n:824,o:"&nbump;"}],[0,{v:"&bumpe;",n:824,o:"&nbumpe;"}],[0,{v:"&doteq;",n:824,o:"&nedot;"}],[0,"&doteqdot;"],[0,"&efDot;"],[0,"&erDot;"],[0,"&Assign;"],[0,"&ecolon;"],[0,"&ecir;"],[0,"&circeq;"],[1,"&wedgeq;"],[0,"&veeeq;"],[1,"&triangleq;"],[2,"&equest;"],[0,"&ne;"],[0,{v:"&Congruent;",n:8421,o:"&bnequiv;"}],[0,"&nequiv;"],[1,{v:"&le;",n:8402,o:"&nvle;"}],[0,{v:"&ge;",n:8402,o:"&nvge;"}],[0,{v:"&lE;",n:824,o:"&nlE;"}],[0,{v:"&gE;",n:824,o:"&ngE;"}],[0,{v:"&lnE;",n:65024,o:"&lvertneqq;"}],[0,{v:"&gnE;",n:65024,o:"&gvertneqq;"}],[0,{v:"&ll;",n:new Map($s([[824,"&nLtv;"],[7577,"&nLt;"]]))}],[0,{v:"&gg;",n:new Map($s([[824,"&nGtv;"],[7577,"&nGt;"]]))}],[0,"&between;"],[0,"&NotCupCap;"],[0,"&nless;"],[0,"&ngt;"],[0,"&nle;"],[0,"&nge;"],[0,"&lesssim;"],[0,"&GreaterTilde;"],[0,"&nlsim;"],[0,"&ngsim;"],[0,"&LessGreater;"],[0,"&gl;"],[0,"&NotLessGreater;"],[0,"&NotGreaterLess;"],[0,"&pr;"],[0,"&sc;"],[0,"&prcue;"],[0,"&sccue;"],[0,"&PrecedesTilde;"],[0,{v:"&scsim;",n:824,o:"&NotSucceedsTilde;"}],[0,"&NotPrecedes;"],[0,"&NotSucceeds;"],[0,{v:"&sub;",n:8402,o:"&NotSubset;"}],[0,{v:"&sup;",n:8402,o:"&NotSuperset;"}],[0,"&nsub;"],[0,"&nsup;"],[0,"&sube;"],[0,"&supe;"],[0,"&NotSubsetEqual;"],[0,"&NotSupersetEqual;"],[0,{v:"&subne;",n:65024,o:"&varsubsetneq;"}],[0,{v:"&supne;",n:65024,o:"&varsupsetneq;"}],[1,"&cupdot;"],[0,"&UnionPlus;"],[0,{v:"&sqsub;",n:824,o:"&NotSquareSubset;"}],[0,{v:"&sqsup;",n:824,o:"&NotSquareSuperset;"}],[0,"&sqsube;"],[0,"&sqsupe;"],[0,{v:"&sqcap;",n:65024,o:"&sqcaps;"}],[0,{v:"&sqcup;",n:65024,o:"&sqcups;"}],[0,"&CirclePlus;"],[0,"&CircleMinus;"],[0,"&CircleTimes;"],[0,"&osol;"],[0,"&CircleDot;"],[0,"&circledcirc;"],[0,"&circledast;"],[1,"&circleddash;"],[0,"&boxplus;"],[0,"&boxminus;"],[0,"&boxtimes;"],[0,"&dotsquare;"],[0,"&RightTee;"],[0,"&dashv;"],[0,"&DownTee;"],[0,"&bot;"],[1,"&models;"],[0,"&DoubleRightTee;"],[0,"&Vdash;"],[0,"&Vvdash;"],[0,"&VDash;"],[0,"&nvdash;"],[0,"&nvDash;"],[0,"&nVdash;"],[0,"&nVDash;"],[0,"&prurel;"],[1,"&LeftTriangle;"],[0,"&RightTriangle;"],[0,{v:"&LeftTriangleEqual;",n:8402,o:"&nvltrie;"}],[0,{v:"&RightTriangleEqual;",n:8402,o:"&nvrtrie;"}],[0,"&origof;"],[0,"&imof;"],[0,"&multimap;"],[0,"&hercon;"],[0,"&intcal;"],[0,"&veebar;"],[1,"&barvee;"],[0,"&angrtvb;"],[0,"&lrtri;"],[0,"&bigwedge;"],[0,"&bigvee;"],[0,"&bigcap;"],[0,"&bigcup;"],[0,"&diam;"],[0,"&sdot;"],[0,"&sstarf;"],[0,"&divideontimes;"],[0,"&bowtie;"],[0,"&ltimes;"],[0,"&rtimes;"],[0,"&leftthreetimes;"],[0,"&rightthreetimes;"],[0,"&backsimeq;"],[0,"&curlyvee;"],[0,"&curlywedge;"],[0,"&Sub;"],[0,"&Sup;"],[0,"&Cap;"],[0,"&Cup;"],[0,"&fork;"],[0,"&epar;"],[0,"&lessdot;"],[0,"&gtdot;"],[0,{v:"&Ll;",n:824,o:"&nLl;"}],[0,{v:"&Gg;",n:824,o:"&nGg;"}],[0,{v:"&leg;",n:65024,o:"&lesg;"}],[0,{v:"&gel;",n:65024,o:"&gesl;"}],[2,"&cuepr;"],[0,"&cuesc;"],[0,"&NotPrecedesSlantEqual;"],[0,"&NotSucceedsSlantEqual;"],[0,"&NotSquareSubsetEqual;"],[0,"&NotSquareSupersetEqual;"],[2,"&lnsim;"],[0,"&gnsim;"],[0,"&precnsim;"],[0,"&scnsim;"],[0,"&nltri;"],[0,"&NotRightTriangle;"],[0,"&nltrie;"],[0,"&NotRightTriangleEqual;"],[0,"&vellip;"],[0,"&ctdot;"],[0,"&utdot;"],[0,"&dtdot;"],[0,"&disin;"],[0,"&isinsv;"],[0,"&isins;"],[0,{v:"&isindot;",n:824,o:"&notindot;"}],[0,"&notinvc;"],[0,"&notinvb;"],[1,{v:"&isinE;",n:824,o:"&notinE;"}],[0,"&nisd;"],[0,"&xnis;"],[0,"&nis;"],[0,"&notnivc;"],[0,"&notnivb;"],[6,"&barwed;"],[0,"&Barwed;"],[1,"&lceil;"],[0,"&rceil;"],[0,"&LeftFloor;"],[0,"&rfloor;"],[0,"&drcrop;"],[0,"&dlcrop;"],[0,"&urcrop;"],[0,"&ulcrop;"],[0,"&bnot;"],[1,"&profline;"],[0,"&profsurf;"],[1,"&telrec;"],[0,"&target;"],[5,"&ulcorn;"],[0,"&urcorn;"],[0,"&dlcorn;"],[0,"&drcorn;"],[2,"&frown;"],[0,"&smile;"],[9,"&cylcty;"],[0,"&profalar;"],[7,"&topbot;"],[6,"&ovbar;"],[1,"&solbar;"],[60,"&angzarr;"],[51,"&lmoustache;"],[0,"&rmoustache;"],[2,"&OverBracket;"],[0,"&bbrk;"],[0,"&bbrktbrk;"],[37,"&OverParenthesis;"],[0,"&UnderParenthesis;"],[0,"&OverBrace;"],[0,"&UnderBrace;"],[2,"&trpezium;"],[4,"&elinters;"],[59,"&blank;"],[164,"&circledS;"],[55,"&boxh;"],[1,"&boxv;"],[9,"&boxdr;"],[3,"&boxdl;"],[3,"&boxur;"],[3,"&boxul;"],[3,"&boxvr;"],[7,"&boxvl;"],[7,"&boxhd;"],[7,"&boxhu;"],[7,"&boxvh;"],[19,"&boxH;"],[0,"&boxV;"],[0,"&boxdR;"],[0,"&boxDr;"],[0,"&boxDR;"],[0,"&boxdL;"],[0,"&boxDl;"],[0,"&boxDL;"],[0,"&boxuR;"],[0,"&boxUr;"],[0,"&boxUR;"],[0,"&boxuL;"],[0,"&boxUl;"],[0,"&boxUL;"],[0,"&boxvR;"],[0,"&boxVr;"],[0,"&boxVR;"],[0,"&boxvL;"],[0,"&boxVl;"],[0,"&boxVL;"],[0,"&boxHd;"],[0,"&boxhD;"],[0,"&boxHD;"],[0,"&boxHu;"],[0,"&boxhU;"],[0,"&boxHU;"],[0,"&boxvH;"],[0,"&boxVh;"],[0,"&boxVH;"],[19,"&uhblk;"],[3,"&lhblk;"],[3,"&block;"],[8,"&blk14;"],[0,"&blk12;"],[0,"&blk34;"],[13,"&square;"],[8,"&blacksquare;"],[0,"&EmptyVerySmallSquare;"],[1,"&rect;"],[0,"&marker;"],[2,"&fltns;"],[1,"&bigtriangleup;"],[0,"&blacktriangle;"],[0,"&triangle;"],[2,"&blacktriangleright;"],[0,"&rtri;"],[3,"&bigtriangledown;"],[0,"&blacktriangledown;"],[0,"&dtri;"],[2,"&blacktriangleleft;"],[0,"&ltri;"],[6,"&loz;"],[0,"&cir;"],[32,"&tridot;"],[2,"&bigcirc;"],[8,"&ultri;"],[0,"&urtri;"],[0,"&lltri;"],[0,"&EmptySmallSquare;"],[0,"&FilledSmallSquare;"],[8,"&bigstar;"],[0,"&star;"],[7,"&phone;"],[49,"&female;"],[1,"&male;"],[29,"&spades;"],[2,"&clubs;"],[1,"&hearts;"],[0,"&diamondsuit;"],[3,"&sung;"],[2,"&flat;"],[0,"&natural;"],[0,"&sharp;"],[163,"&check;"],[3,"&cross;"],[8,"&malt;"],[21,"&sext;"],[33,"&VerticalSeparator;"],[25,"&lbbrk;"],[0,"&rbbrk;"],[84,"&bsolhsub;"],[0,"&suphsol;"],[28,"&LeftDoubleBracket;"],[0,"&RightDoubleBracket;"],[0,"&lang;"],[0,"&rang;"],[0,"&Lang;"],[0,"&Rang;"],[0,"&loang;"],[0,"&roang;"],[7,"&longleftarrow;"],[0,"&longrightarrow;"],[0,"&longleftrightarrow;"],[0,"&DoubleLongLeftArrow;"],[0,"&DoubleLongRightArrow;"],[0,"&DoubleLongLeftRightArrow;"],[1,"&longmapsto;"],[2,"&dzigrarr;"],[258,"&nvlArr;"],[0,"&nvrArr;"],[0,"&nvHarr;"],[0,"&Map;"],[6,"&lbarr;"],[0,"&bkarow;"],[0,"&lBarr;"],[0,"&dbkarow;"],[0,"&drbkarow;"],[0,"&DDotrahd;"],[0,"&UpArrowBar;"],[0,"&DownArrowBar;"],[2,"&Rarrtl;"],[2,"&latail;"],[0,"&ratail;"],[0,"&lAtail;"],[0,"&rAtail;"],[0,"&larrfs;"],[0,"&rarrfs;"],[0,"&larrbfs;"],[0,"&rarrbfs;"],[2,"&nwarhk;"],[0,"&nearhk;"],[0,"&hksearow;"],[0,"&hkswarow;"],[0,"&nwnear;"],[0,"&nesear;"],[0,"&seswar;"],[0,"&swnwar;"],[8,{v:"&rarrc;",n:824,o:"&nrarrc;"}],[1,"&cudarrr;"],[0,"&ldca;"],[0,"&rdca;"],[0,"&cudarrl;"],[0,"&larrpl;"],[2,"&curarrm;"],[0,"&cularrp;"],[7,"&rarrpl;"],[2,"&harrcir;"],[0,"&Uarrocir;"],[0,"&lurdshar;"],[0,"&ldrushar;"],[2,"&LeftRightVector;"],[0,"&RightUpDownVector;"],[0,"&DownLeftRightVector;"],[0,"&LeftUpDownVector;"],[0,"&LeftVectorBar;"],[0,"&RightVectorBar;"],[0,"&RightUpVectorBar;"],[0,"&RightDownVectorBar;"],[0,"&DownLeftVectorBar;"],[0,"&DownRightVectorBar;"],[0,"&LeftUpVectorBar;"],[0,"&LeftDownVectorBar;"],[0,"&LeftTeeVector;"],[0,"&RightTeeVector;"],[0,"&RightUpTeeVector;"],[0,"&RightDownTeeVector;"],[0,"&DownLeftTeeVector;"],[0,"&DownRightTeeVector;"],[0,"&LeftUpTeeVector;"],[0,"&LeftDownTeeVector;"],[0,"&lHar;"],[0,"&uHar;"],[0,"&rHar;"],[0,"&dHar;"],[0,"&luruhar;"],[0,"&ldrdhar;"],[0,"&ruluhar;"],[0,"&rdldhar;"],[0,"&lharul;"],[0,"&llhard;"],[0,"&rharul;"],[0,"&lrhard;"],[0,"&udhar;"],[0,"&duhar;"],[0,"&RoundImplies;"],[0,"&erarr;"],[0,"&simrarr;"],[0,"&larrsim;"],[0,"&rarrsim;"],[0,"&rarrap;"],[0,"&ltlarr;"],[1,"&gtrarr;"],[0,"&subrarr;"],[1,"&suplarr;"],[0,"&lfisht;"],[0,"&rfisht;"],[0,"&ufisht;"],[0,"&dfisht;"],[5,"&lopar;"],[0,"&ropar;"],[4,"&lbrke;"],[0,"&rbrke;"],[0,"&lbrkslu;"],[0,"&rbrksld;"],[0,"&lbrksld;"],[0,"&rbrkslu;"],[0,"&langd;"],[0,"&rangd;"],[0,"&lparlt;"],[0,"&rpargt;"],[0,"&gtlPar;"],[0,"&ltrPar;"],[3,"&vzigzag;"],[1,"&vangrt;"],[0,"&angrtvbd;"],[6,"&ange;"],[0,"&range;"],[0,"&dwangle;"],[0,"&uwangle;"],[0,"&angmsdaa;"],[0,"&angmsdab;"],[0,"&angmsdac;"],[0,"&angmsdad;"],[0,"&angmsdae;"],[0,"&angmsdaf;"],[0,"&angmsdag;"],[0,"&angmsdah;"],[0,"&bemptyv;"],[0,"&demptyv;"],[0,"&cemptyv;"],[0,"&raemptyv;"],[0,"&laemptyv;"],[0,"&ohbar;"],[0,"&omid;"],[0,"&opar;"],[1,"&operp;"],[1,"&olcross;"],[0,"&odsold;"],[1,"&olcir;"],[0,"&ofcir;"],[0,"&olt;"],[0,"&ogt;"],[0,"&cirscir;"],[0,"&cirE;"],[0,"&solb;"],[0,"&bsolb;"],[3,"&boxbox;"],[3,"&trisb;"],[0,"&rtriltri;"],[0,{v:"&LeftTriangleBar;",n:824,o:"&NotLeftTriangleBar;"}],[0,{v:"&RightTriangleBar;",n:824,o:"&NotRightTriangleBar;"}],[11,"&iinfin;"],[0,"&infintie;"],[0,"&nvinfin;"],[4,"&eparsl;"],[0,"&smeparsl;"],[0,"&eqvparsl;"],[5,"&blacklozenge;"],[8,"&RuleDelayed;"],[1,"&dsol;"],[9,"&bigodot;"],[0,"&bigoplus;"],[0,"&bigotimes;"],[1,"&biguplus;"],[1,"&bigsqcup;"],[5,"&iiiint;"],[0,"&fpartint;"],[2,"&cirfnint;"],[0,"&awint;"],[0,"&rppolint;"],[0,"&scpolint;"],[0,"&npolint;"],[0,"&pointint;"],[0,"&quatint;"],[0,"&intlarhk;"],[10,"&pluscir;"],[0,"&plusacir;"],[0,"&simplus;"],[0,"&plusdu;"],[0,"&plussim;"],[0,"&plustwo;"],[1,"&mcomma;"],[0,"&minusdu;"],[2,"&loplus;"],[0,"&roplus;"],[0,"&Cross;"],[0,"&timesd;"],[0,"&timesbar;"],[1,"&smashp;"],[0,"&lotimes;"],[0,"&rotimes;"],[0,"&otimesas;"],[0,"&Otimes;"],[0,"&odiv;"],[0,"&triplus;"],[0,"&triminus;"],[0,"&tritime;"],[0,"&intprod;"],[2,"&amalg;"],[0,"&capdot;"],[1,"&ncup;"],[0,"&ncap;"],[0,"&capand;"],[0,"&cupor;"],[0,"&cupcap;"],[0,"&capcup;"],[0,"&cupbrcap;"],[0,"&capbrcup;"],[0,"&cupcup;"],[0,"&capcap;"],[0,"&ccups;"],[0,"&ccaps;"],[2,"&ccupssm;"],[2,"&And;"],[0,"&Or;"],[0,"&andand;"],[0,"&oror;"],[0,"&orslope;"],[0,"&andslope;"],[1,"&andv;"],[0,"&orv;"],[0,"&andd;"],[0,"&ord;"],[1,"&wedbar;"],[6,"&sdote;"],[3,"&simdot;"],[2,{v:"&congdot;",n:824,o:"&ncongdot;"}],[0,"&easter;"],[0,"&apacir;"],[0,{v:"&apE;",n:824,o:"&napE;"}],[0,"&eplus;"],[0,"&pluse;"],[0,"&Esim;"],[0,"&Colone;"],[0,"&Equal;"],[1,"&ddotseq;"],[0,"&equivDD;"],[0,"&ltcir;"],[0,"&gtcir;"],[0,"&ltquest;"],[0,"&gtquest;"],[0,{v:"&leqslant;",n:824,o:"&nleqslant;"}],[0,{v:"&geqslant;",n:824,o:"&ngeqslant;"}],[0,"&lesdot;"],[0,"&gesdot;"],[0,"&lesdoto;"],[0,"&gesdoto;"],[0,"&lesdotor;"],[0,"&gesdotol;"],[0,"&lap;"],[0,"&gap;"],[0,"&lne;"],[0,"&gne;"],[0,"&lnap;"],[0,"&gnap;"],[0,"&lEg;"],[0,"&gEl;"],[0,"&lsime;"],[0,"&gsime;"],[0,"&lsimg;"],[0,"&gsiml;"],[0,"&lgE;"],[0,"&glE;"],[0,"&lesges;"],[0,"&gesles;"],[0,"&els;"],[0,"&egs;"],[0,"&elsdot;"],[0,"&egsdot;"],[0,"&el;"],[0,"&eg;"],[2,"&siml;"],[0,"&simg;"],[0,"&simlE;"],[0,"&simgE;"],[0,{v:"&LessLess;",n:824,o:"&NotNestedLessLess;"}],[0,{v:"&GreaterGreater;",n:824,o:"&NotNestedGreaterGreater;"}],[1,"&glj;"],[0,"&gla;"],[0,"&ltcc;"],[0,"&gtcc;"],[0,"&lescc;"],[0,"&gescc;"],[0,"&smt;"],[0,"&lat;"],[0,{v:"&smte;",n:65024,o:"&smtes;"}],[0,{v:"&late;",n:65024,o:"&lates;"}],[0,"&bumpE;"],[0,{v:"&PrecedesEqual;",n:824,o:"&NotPrecedesEqual;"}],[0,{v:"&sce;",n:824,o:"&NotSucceedsEqual;"}],[2,"&prE;"],[0,"&scE;"],[0,"&precneqq;"],[0,"&scnE;"],[0,"&prap;"],[0,"&scap;"],[0,"&precnapprox;"],[0,"&scnap;"],[0,"&Pr;"],[0,"&Sc;"],[0,"&subdot;"],[0,"&supdot;"],[0,"&subplus;"],[0,"&supplus;"],[0,"&submult;"],[0,"&supmult;"],[0,"&subedot;"],[0,"&supedot;"],[0,{v:"&subE;",n:824,o:"&nsubE;"}],[0,{v:"&supE;",n:824,o:"&nsupE;"}],[0,"&subsim;"],[0,"&supsim;"],[2,{v:"&subnE;",n:65024,o:"&varsubsetneqq;"}],[0,{v:"&supnE;",n:65024,o:"&varsupsetneqq;"}],[2,"&csub;"],[0,"&csup;"],[0,"&csube;"],[0,"&csupe;"],[0,"&subsup;"],[0,"&supsub;"],[0,"&subsub;"],[0,"&supsup;"],[0,"&suphsub;"],[0,"&supdsub;"],[0,"&forkv;"],[0,"&topfork;"],[0,"&mlcp;"],[8,"&Dashv;"],[1,"&Vdashl;"],[0,"&Barv;"],[0,"&vBar;"],[0,"&vBarv;"],[1,"&Vbar;"],[0,"&Not;"],[0,"&bNot;"],[0,"&rnmid;"],[0,"&cirmid;"],[0,"&midcir;"],[0,"&topcir;"],[0,"&nhpar;"],[0,"&parsim;"],[9,{v:"&parsl;",n:8421,o:"&nparsl;"}],[44343,{n:new Map($s([[56476,"&Ascr;"],[1,"&Cscr;"],[0,"&Dscr;"],[2,"&Gscr;"],[2,"&Jscr;"],[0,"&Kscr;"],[2,"&Nscr;"],[0,"&Oscr;"],[0,"&Pscr;"],[0,"&Qscr;"],[1,"&Sscr;"],[0,"&Tscr;"],[0,"&Uscr;"],[0,"&Vscr;"],[0,"&Wscr;"],[0,"&Xscr;"],[0,"&Yscr;"],[0,"&Zscr;"],[0,"&ascr;"],[0,"&bscr;"],[0,"&cscr;"],[0,"&dscr;"],[1,"&fscr;"],[1,"&hscr;"],[0,"&iscr;"],[0,"&jscr;"],[0,"&kscr;"],[0,"&lscr;"],[0,"&mscr;"],[0,"&nscr;"],[1,"&pscr;"],[0,"&qscr;"],[0,"&rscr;"],[0,"&sscr;"],[0,"&tscr;"],[0,"&uscr;"],[0,"&vscr;"],[0,"&wscr;"],[0,"&xscr;"],[0,"&yscr;"],[0,"&zscr;"],[52,"&Afr;"],[0,"&Bfr;"],[1,"&Dfr;"],[0,"&Efr;"],[0,"&Ffr;"],[0,"&Gfr;"],[2,"&Jfr;"],[0,"&Kfr;"],[0,"&Lfr;"],[0,"&Mfr;"],[0,"&Nfr;"],[0,"&Ofr;"],[0,"&Pfr;"],[0,"&Qfr;"],[1,"&Sfr;"],[0,"&Tfr;"],[0,"&Ufr;"],[0,"&Vfr;"],[0,"&Wfr;"],[0,"&Xfr;"],[0,"&Yfr;"],[1,"&afr;"],[0,"&bfr;"],[0,"&cfr;"],[0,"&dfr;"],[0,"&efr;"],[0,"&ffr;"],[0,"&gfr;"],[0,"&hfr;"],[0,"&ifr;"],[0,"&jfr;"],[0,"&kfr;"],[0,"&lfr;"],[0,"&mfr;"],[0,"&nfr;"],[0,"&ofr;"],[0,"&pfr;"],[0,"&qfr;"],[0,"&rfr;"],[0,"&sfr;"],[0,"&tfr;"],[0,"&ufr;"],[0,"&vfr;"],[0,"&wfr;"],[0,"&xfr;"],[0,"&yfr;"],[0,"&zfr;"],[0,"&Aopf;"],[0,"&Bopf;"],[1,"&Dopf;"],[0,"&Eopf;"],[0,"&Fopf;"],[0,"&Gopf;"],[1,"&Iopf;"],[0,"&Jopf;"],[0,"&Kopf;"],[0,"&Lopf;"],[0,"&Mopf;"],[1,"&Oopf;"],[3,"&Sopf;"],[0,"&Topf;"],[0,"&Uopf;"],[0,"&Vopf;"],[0,"&Wopf;"],[0,"&Xopf;"],[0,"&Yopf;"],[1,"&aopf;"],[0,"&bopf;"],[0,"&copf;"],[0,"&dopf;"],[0,"&eopf;"],[0,"&fopf;"],[0,"&gopf;"],[0,"&hopf;"],[0,"&iopf;"],[0,"&jopf;"],[0,"&kopf;"],[0,"&lopf;"],[0,"&mopf;"],[0,"&nopf;"],[0,"&oopf;"],[0,"&popf;"],[0,"&qopf;"],[0,"&ropf;"],[0,"&sopf;"],[0,"&topf;"],[0,"&uopf;"],[0,"&vopf;"],[0,"&wopf;"],[0,"&xopf;"],[0,"&yopf;"],[0,"&zopf;"]]))}],[8906,"&fflig;"],[0,"&filig;"],[0,"&fllig;"],[0,"&ffilig;"],[0,"&ffllig;"]]));var to=/["&'<>$\x80-\uFFFF]/g,ll=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]),dl=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="",i=0,r;for(;(r=to.exec(e))!==null;){let s=r.index,n=e.charCodeAt(s),o=ll.get(n);o!==void 0?(t+=e.substring(i,s)+o,i=s+1):(t+=`${e.substring(i,s)}&#x${dl(e,s).toString(16)};`,i=to.lastIndex+=+((n&64512)===55296))}return t+e.substr(i)}function io(e,t){return function(r){let s,n=0,o="";for(;s=e.exec(r);)n!==s.index&&(o+=r.substring(n,s.index)),o+=t.get(s[0].charCodeAt(0)),n=s.index+1;return o+r.substring(n)}}var hl=io(/[&<>'"]/g,ll),vi=io(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),yi=io(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]));var pl;(function(e){e[e.XML=0]="XML",e[e.HTML=1]="HTML"})(pl||(pl={}));var fl;(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"})(fl||(fl={}));var El=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])),gl=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 yp=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function Cp(e){return e.replace(/"/g,"&quot;")}function Np(e,t){var i;if(!e)return;let r=((i=t.encodeEntities)!==null&&i!==void 0?i:t.decodeEntities)===!1?Cp:t.xmlMode||t.encodeEntities!=="utf8"?pr:vi;return Object.keys(e).map(s=>{var n,o;let c=(n=e[s])!==null&&n!==void 0?n:"";return t.xmlMode==="foreign"&&(s=(o=gl.get(s))!==null&&o!==void 0?o:s),!t.emptyAttrs&&!t.xmlMode&&c===""?s:`${s}="${r(c)}"`}).join(" ")}var Tl=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function ao(e,t={}){let i="length"in e?e:[e],r="";for(let s=0;s<i.length;s++)r+=Sp(i[s],t);return r}var Vs=ao;function Sp(e,t){switch(e.type){case Vn:return ao(e.children,t);case zn:case Gn:return Op(e);case Wn:return kp(e);case Qn:return wp(e);case jn:case Xn:case Kn:return Lp(e,t);case Yn:return Dp(e,t)}}var Ip=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),Rp=new Set(["svg","math"]);function Lp(e,t){var i;t.xmlMode==="foreign"&&(e.name=(i=El.get(e.name))!==null&&i!==void 0?i:e.name,e.parent&&Ip.has(e.parent.name)&&(t=ie(D({},t),{xmlMode:!1}))),!t.xmlMode&&Rp.has(e.name)&&(t=ie(D({},t),{xmlMode:"foreign"}));let r=`<${e.name}`,s=Np(e.attribs,t);return s&&(r+=` ${s}`),e.children.length===0&&(t.xmlMode?t.selfClosingTags!==!1:t.selfClosingTags&&Tl.has(e.name))?(t.xmlMode||(r+=" "),r+="/>"):(r+=">",e.children.length>0&&(r+=ao(e.children,t)),(t.xmlMode||!Tl.has(e.name))&&(r+=`</${e.name}>`)),r}function Op(e){return`<${e.data}>`}function Dp(e,t){var i;let r=e.data||"";return((i=t.encodeEntities)!==null&&i!==void 0?i:t.decodeEntities)!==!1&&!(!t.xmlMode&&e.parent&&yp.has(e.parent.name))&&(r=t.xmlMode||t.encodeEntities!=="utf8"?pr(r):yi(r)),r}function wp(e){return`<![CDATA[${e.children[0].data}]]>`}function kp(e){return`<!--${e.data}-->`}function _l(e,t){return Vs(e,t)}function Pp(e,t){return ae(e)?e.children.map(i=>_l(i,t)).join(""):""}function Ys(e){return Array.isArray(e)?e.map(Ys).join(""):P(e)?e.name==="br"?`
1919
+ `:Ys(e.children):xi(e)?Ys(e.children):Ie(e)?e.data:""}function ut(e){return Array.isArray(e)?e.map(ut).join(""):ae(e)&&!Wt(e)?ut(e.children):Ie(e)?e.data:""}function fr(e){return Array.isArray(e)?e.map(fr).join(""):ae(e)&&(e.type===G.Tag||xi(e))?fr(e.children):Ie(e)?e.data:""}function Ci(e){return ae(e)?e.children:[]}function xl(e){return e.parent||null}function no(e){let t=xl(e);if(t!=null)return Ci(t);let i=[e],{prev:r,next:s}=e;for(;r!=null;)i.unshift(r),{prev:r}=r;for(;s!=null;)i.push(s),{next:s}=s;return i}function Mp(e,t){var i;return(i=e.attribs)===null||i===void 0?void 0:i[t]}function Hp(e,t){return e.attribs!=null&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&e.attribs[t]!=null}function Bp(e){return e.name}function Gs(e){let{next:t}=e;for(;t!==null&&!P(t);)({next:t}=t);return t}function Ws(e){let{prev:t}=e;for(;t!==null&&!P(t);)({prev:t}=t);return t}function ct(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 Up(e,t){let i=t.prev=e.prev;i&&(i.next=t);let r=t.next=e.next;r&&(r.prev=t);let s=t.parent=e.parent;if(s){let n=s.children;n[n.lastIndexOf(e)]=t,e.parent=null}}function Fp(e,t){if(ct(t),t.next=null,t.parent=e,e.children.push(t)>1){let i=e.children[e.children.length-2];i.next=t,t.prev=i}else t.prev=null}function $p(e,t){ct(t);let{parent:i}=e,r=e.next;if(t.next=r,t.prev=e,e.next=t,t.parent=i,r){if(r.prev=t,i){let s=i.children;s.splice(s.lastIndexOf(r),0,t)}}else i&&i.children.push(t)}function Vp(e,t){if(ct(t),t.parent=e,t.prev=null,e.children.unshift(t)!==1){let i=e.children[1];i.prev=t,t.next=i}else t.next=null}function Yp(e,t){ct(t);let{parent:i}=e;if(i){let r=i.children;r.splice(r.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=i,t.prev=e.prev,t.next=e,e.prev=t}function mr(e,t,i=!0,r=1/0){return Array.isArray(t)||(t=[t]),br(e,t,i,r)}function br(e,t,i,r){let s=[];for(let n of t){if(e(n)&&(s.push(n),--r<=0))break;if(i&&ae(n)&&n.children.length>0){let o=br(e,n.children,i,r);if(s.push(...o),r-=o.length,r<=0)break}}return s}function Gp(e,t){return t.find(e)}function js(e,t,i=!0){let r=null;for(let s=0;s<t.length&&!r;s++){let n=t[s];if(P(n))e(n)?r=n:i&&n.children.length>0&&(r=js(e,n.children,!0));else continue}return r}function ql(e,t){return t.some(i=>P(i)&&(e(i)||i.children.length>0&&ql(e,i.children)))}function Wp(e,t){var i;let r=[],s=t.filter(P),n;for(;n=s.shift();){let o=(i=n.children)===null||i===void 0?void 0:i.filter(P);o&&o.length>0&&s.unshift(...o),e(n)&&r.push(n)}return r}var Xs={tag_name(e){return typeof e=="function"?t=>P(t)&&e(t.name):e==="*"?P:t=>P(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=>Ie(t)&&e(t.data):t=>Ie(t)&&t.data===e}};function Al(e,t){return typeof t=="function"?i=>P(i)&&t(i.attribs[e]):i=>P(i)&&i.attribs[e]===t}function jp(e,t){return i=>e(i)||t(i)}function vl(e){let t=Object.keys(e).map(i=>{let r=e[i];return Object.prototype.hasOwnProperty.call(Xs,i)?Xs[i](r):Al(i,r)});return t.length===0?null:t.reduce(jp)}function Xp(e,t){let i=vl(e);return i?i(t):!0}function Kp(e,t,i,r=1/0){let s=vl(e);return s?mr(s,t,i,r):[]}function Qp(e,t,i=!0){return Array.isArray(t)||(t=[t]),js(Al("id",e),t,i)}function jt(e,t,i=!0,r=1/0){return mr(Xs.tag_name(e),t,i,r)}function zp(e,t,i=!0,r=1/0){return mr(Xs.tag_type(e),t,i,r)}function Jp(e){let t=e.length;for(;--t>=0;){let i=e[t];if(t>0&&e.lastIndexOf(i,t-1)>=0){e.splice(t,1);continue}for(let r=i.parent;r;r=r.parent)if(e.includes(r)){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 yl(e,t){let i=[],r=[];if(e===t)return 0;let s=ae(e)?e:e.parent;for(;s;)i.unshift(s),s=s.parent;for(s=ae(t)?t:t.parent;s;)r.unshift(s),s=s.parent;let n=Math.min(i.length,r.length),o=0;for(;o<n&&i[o]===r[o];)o++;if(o===0)return He.DISCONNECTED;let c=i[o-1],l=c.children,p=i[o],b=r[o];return l.indexOf(p)>l.indexOf(b)?c===t?He.FOLLOWING|He.CONTAINED_BY:He.FOLLOWING:c===e?He.PRECEDING|He.CONTAINS:He.PRECEDING}function Ct(e){return e=e.filter((t,i,r)=>!r.includes(t,i+1)),e.sort((t,i)=>{let r=yl(t,i);return r&He.PRECEDING?-1:r&He.FOLLOWING?1:0}),e}function oo(e){let t=Ks(sf,e);return t?t.name==="feed"?Zp(t):ef(t):null}function Zp(e){var t;let i=e.children,r={type:"atom",items:jt("entry",i).map(o=>{var c;let{children:l}=o,p={media:Cl(l)};Re(p,"id","id",l),Re(p,"title","title",l);let b=(c=Ks("link",l))===null||c===void 0?void 0:c.attribs.href;b&&(p.link=b);let x=Xt("summary",l)||Xt("content",l);x&&(p.description=x);let N=Xt("updated",l);return N&&(p.pubDate=new Date(N)),p})};Re(r,"id","id",i),Re(r,"title","title",i);let s=(t=Ks("link",i))===null||t===void 0?void 0:t.attribs.href;s&&(r.link=s),Re(r,"description","subtitle",i);let n=Xt("updated",i);return n&&(r.updated=new Date(n)),Re(r,"author","email",i,!0),r}function ef(e){var t,i;let r=(i=(t=Ks("channel",e.children))===null||t===void 0?void 0:t.children)!==null&&i!==void 0?i:[],s={type:e.name.substr(0,3),id:"",items:jt("item",e.children).map(o=>{let{children:c}=o,l={media:Cl(c)};Re(l,"id","guid",c),Re(l,"title","title",c),Re(l,"link","link",c),Re(l,"description","description",c);let p=Xt("pubDate",c);return p&&(l.pubDate=new Date(p)),l})};Re(s,"title","title",r),Re(s,"link","link",r),Re(s,"description","description",r);let n=Xt("lastBuildDate",r);return n&&(s.updated=new Date(n)),Re(s,"author","managingEditor",r,!0),s}var tf=["url","type","lang"],rf=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function Cl(e){return jt("media:content",e).map(t=>{let{attribs:i}=t,r={medium:i.medium,isDefault:!!i.isDefault};for(let s of tf)i[s]&&(r[s]=i[s]);for(let s of rf)i[s]&&(r[s]=parseInt(i[s],10));return i.expression&&(r.expression=i.expression),r})}function Ks(e,t){return jt(e,t,!0,1)[0]}function Xt(e,t,i=!1){return ut(jt(e,t,i,1)).trim()}function Re(e,t,i,r,s=!1){let n=Xt(i,r,s);n&&(e[t]=n)}function sf(e){return e==="rss"||e==="feed"||e==="rdf:RDF"}function Sl(e,t,i){return e?e(t!=null?t:e._root.children,null,void 0,i).toString():""}function af(e,t){return!t&&typeof e=="object"&&e!=null&&!("length"in e)&&!("type"in e)}function Il(e,t){let i=af(e)?(t=e,void 0):e,r=D(D(D({},ar),this===null||this===void 0?void 0:this._options),nr(t!=null?t:{}));return Sl(this,i,r)}function Rl(e){let t=ie(D({},this._options),{xmlMode:!0});return Sl(this,e,t)}function Nt(e){let t=e||(this?this.root():[]),i="";for(let r=0;r<t.length;r++)i+=ut(t[r]);return i}function nf(e,t,i=typeof t=="boolean"?t:!1){if(!e||typeof e!="string")return null;typeof t=="boolean"&&(i=t);let r=this.load(e,ar,!1);return i||r("script").remove(),r.root()[0].children.slice()}function of(){return this(this._root)}function uo(e,t){if(t===e)return!1;let i=t;for(;i&&i!==i.parent;)if(i=i.parent,i===e)return!0;return!1}function uf(e,t){if(!Nl(e)||!Nl(t))return;let i=e.length,r=+t.length;for(let s=0;s<r;s++)e[i++]=t[s];return e.length=i,e}function Nl(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 po={};Fe(po,{addClass:()=>Hl,attr:()=>lf,data:()=>hf,hasClass:()=>mf,prop:()=>df,removeAttr:()=>ff,removeClass:()=>Bl,toggleClass:()=>Ul,val:()=>pf});function ke(e){return e.cheerio!=null}function Ll(e){return e.replace(/[_.-](\w|$)/g,(t,i)=>i.toUpperCase())}function Ol(e){return e.replace(/[A-Z]/g,"-$&").toLowerCase()}function ee(e,t){let i=e.length;for(let r=0;r<i;r++)t(e[r],r);return e}function Qs(e){let t="length"in e?Array.prototype.map.call(e,r=>lr(r,!0)):[lr(e,!0)],i=new we(t);return t.forEach(r=>{r.parent=i}),t}var Kt;(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"})(Kt||(Kt={}));function Er(e){let t=e.indexOf("<");if(t<0||t>e.length-3)return!1;let i=e.charCodeAt(t+1);return(i>=Kt.LowerA&&i<=Kt.LowerZ||i>=Kt.UpperA&&i<=Kt.UpperZ||i===Kt.Exclamation)&&e.includes(">",t+2)}var Ni=Object.prototype.hasOwnProperty,gr=/\s+/,co="data-",Dl={null:null,true:!0,false:!1},ho=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,cf=/^{[^]*}$|^\[[^]*]$/;function zs(e,t,i){var r;if(!(!e||!P(e))){if((r=e.attribs)!==null&&r!==void 0||(e.attribs={}),!t)return e.attribs;if(Ni.call(e.attribs,t))return!i&&ho.test(t)?t:e.attribs[t];if(e.name==="option"&&t==="value")return Nt(e.children);if(e.name==="input"&&(e.attribs.type==="radio"||e.attribs.type==="checkbox")&&t==="value")return"on"}}function Si(e,t,i){i===null?Ml(e,t):e.attribs[t]=`${i}`}function lf(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 ee(this,(i,r)=>{P(i)&&Si(i,e,t.call(i,r,i.attribs[e]))})}return ee(this,i=>{P(i)&&(typeof e=="object"?Object.keys(e).forEach(r=>{let s=e[r];Si(i,r,s)}):Si(i,e,t))})}return arguments.length>1?this:zs(this[0],e,this.options.xmlMode)}function wl(e,t,i){return t in e?e[t]:!i&&ho.test(t)?zs(e,t,!1)!==void 0:zs(e,t,i)}function lo(e,t,i,r){t in e?e[t]=i:Si(e,t,!r&&ho.test(t)?i?"":null:`${i}`)}function df(e,t){var i;if(typeof e=="string"&&t===void 0){let r=this[0];if(!r||!P(r))return;switch(e){case"style":{let s=this.css(),n=Object.keys(s);return n.forEach((o,c)=>{s[c]=o}),s.length=n.length,s}case"tagName":case"nodeName":return r.name.toUpperCase();case"href":case"src":{let s=(i=r.attribs)===null||i===void 0?void 0:i[e];return typeof URL!="undefined"&&(e==="href"&&(r.tagName==="a"||r.name==="link")||e==="src"&&(r.tagName==="img"||r.tagName==="iframe"||r.tagName==="audio"||r.tagName==="video"||r.tagName==="source"))&&s!==void 0&&this.options.baseURI?new URL(s,this.options.baseURI).href:s}case"innerText":return fr(r);case"textContent":return ut(r);case"outerHTML":return this.clone().wrap("<container />").parent().html();case"innerHTML":return this.html();default:return wl(r,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 ee(this,(r,s)=>{P(r)&&lo(r,e,t.call(r,s,wl(r,e,this.options.xmlMode)),this.options.xmlMode)})}return ee(this,r=>{P(r)&&(typeof e=="object"?Object.keys(e).forEach(s=>{let n=e[s];lo(r,s,n,this.options.xmlMode)}):lo(r,e,t,this.options.xmlMode))})}}function kl(e,t,i){var r;let s=e;(r=s.data)!==null&&r!==void 0||(s.data={}),typeof t=="object"?Object.assign(s.data,t):typeof t=="string"&&i!==void 0&&(s.data[t]=i)}function Pl(e,t){let i,r,s;t==null?(i=Object.keys(e.attribs).filter(n=>n.startsWith(co)),r=i.map(n=>Ll(n.slice(co.length)))):(i=[co+Ol(t)],r=[t]);for(let n=0;n<i.length;++n){let o=i[n],c=r[n];if(Ni.call(e.attribs,o)&&!Ni.call(e.data,c)){if(s=e.attribs[o],Ni.call(Dl,s))s=Dl[s];else if(s===String(Number(s)))s=Number(s);else if(cf.test(s))try{s=JSON.parse(s)}catch(l){}e.data[c]=s}}return t==null?e.data:s}function hf(e,t){var i;let r=this[0];if(!r||!P(r))return;let s=r;return(i=s.data)!==null&&i!==void 0||(s.data={}),e?typeof e=="object"||t!==void 0?(ee(this,n=>{P(n)&&(typeof e=="object"?kl(n,e):kl(n,e,t))}),this):Ni.call(s.data,e)?s.data[e]:Pl(s,e):Pl(s)}function pf(e){let t=arguments.length===0,i=this[0];if(!i||!P(i))return t?void 0:this;switch(i.name){case"textarea":return this.text(e);case"select":{let r=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")?r.toArray().map(s=>Nt(s.children)):r.attr("value")}case"input":case"option":return t?this.attr("value"):this.attr("value",e)}}function Ml(e,t){!e.attribs||!Ni.call(e.attribs,t)||delete e.attribs[t]}function Js(e){return e?e.trim().split(gr):[]}function ff(e){let t=Js(e);for(let i=0;i<t.length;i++)ee(this,r=>{P(r)&&Ml(r,t[i])});return this}function mf(e){return this.toArray().some(t=>{let i=P(t)&&t.attribs.class,r=-1;if(i&&e.length)for(;(r=i.indexOf(e,r+1))>-1;){let s=r+e.length;if((r===0||gr.test(i[r-1]))&&(s===i.length||gr.test(i[s])))return!0}return!1})}function Hl(e){if(typeof e=="function")return ee(this,(r,s)=>{if(P(r)){let n=r.attribs.class||"";Hl.call([r],e.call(r,s,n))}});if(!e||typeof e!="string")return this;let t=e.split(gr),i=this.length;for(let r=0;r<i;r++){let s=this[r];if(!P(s))continue;let n=zs(s,"class",!1);if(!n)Si(s,"class",t.join(" ").trim());else{let o=` ${n} `;for(let c=0;c<t.length;c++){let l=`${t[c]} `;o.includes(` ${l}`)||(o+=l)}Si(s,"class",o.trim())}}return this}function Bl(e){if(typeof e=="function")return ee(this,(s,n)=>{P(s)&&Bl.call([s],e.call(s,n,s.attribs.class||""))});let t=Js(e),i=t.length,r=arguments.length===0;return ee(this,s=>{if(P(s))if(r)s.attribs.class="";else{let n=Js(s.attribs.class),o=!1;for(let c=0;c<i;c++){let l=n.indexOf(t[c]);l>=0&&(n.splice(l,1),o=!0,c--)}o&&(s.attribs.class=n.join(" "))}})}function Ul(e,t){if(typeof e=="function")return ee(this,(o,c)=>{P(o)&&Ul.call([o],e.call(o,c,o.attribs.class||"",t),t)});if(!e||typeof e!="string")return this;let i=e.split(gr),r=i.length,s=typeof t=="boolean"?t?1:-1:0,n=this.length;for(let o=0;o<n;o++){let c=this[o];if(!P(c))continue;let l=Js(c.attribs.class);for(let p=0;p<r;p++){let b=l.indexOf(i[p]);s>=0&&b<0?l.push(i[p]):s<=0&&b>=0&&l.splice(b,1)}c.attribs.class=l.join(" ")}return this}var Po={};Fe(Po,{add:()=>fm,addBack:()=>mm,children:()=>Jf,closest:()=>Yf,contents:()=>Zf,each:()=>em,end:()=>pm,eq:()=>um,filter:()=>im,filterArray:()=>ko,find:()=>Uf,first:()=>nm,get:()=>cm,has:()=>am,index:()=>dm,is:()=>rm,last:()=>om,map:()=>tm,next:()=>Gf,nextAll:()=>Wf,nextUntil:()=>jf,not:()=>sm,parent:()=>Ff,parents:()=>$f,parentsUntil:()=>Vf,prev:()=>Xf,prevAll:()=>Kf,prevUntil:()=>Qf,siblings:()=>zf,slice:()=>hm,toArray:()=>lm});var M;(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"})(M||(M={}));var le;(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"})(le||(le={}));var Fl=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,bf=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,Ef=new Map([[126,le.Element],[94,le.Start],[36,le.End],[42,le.Any],[33,le.Not],[124,le.Hyphen]]),gf=new Set(["has","not","matches","is","where","host","host-context"]);function Qt(e){switch(e.type){case M.Adjacent:case M.Child:case M.Descendant:case M.Parent:case M.Sibling:case M.ColumnCombinator:return!0;default:return!1}}var Tf=new Set(["contains","icontains"]);function _f(e,t,i){let r=parseInt(t,16)-65536;return r!==r||i?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,r&1023|56320)}function Tr(e){return e.replace(bf,_f)}function fo(e){return e===39||e===34}function $l(e){return e===32||e===9||e===10||e===12||e===13}function dt(e){let t=[],i=Vl(t,`${e}`,0);if(i<e.length)throw new Error(`Unmatched selector: ${e.slice(i)}`);return t}function Vl(e,t,i){let r=[];function s(N){let I=t.slice(i+N).match(Fl);if(!I)throw new Error(`Expected name, found ${t.slice(i)}`);let[O]=I;return i+=N+O.length,Tr(O)}function n(N){for(i+=N;i<t.length&&$l(t.charCodeAt(i));)i++}function o(){i+=1;let N=i,I=1;for(;I>0&&i<t.length;i++)t.charCodeAt(i)===40&&!c(i)?I++:t.charCodeAt(i)===41&&!c(i)&&I--;if(I)throw new Error("Parenthesis not matched");return Tr(t.slice(N,i-1))}function c(N){let I=0;for(;t.charCodeAt(--N)===92;)I++;return(I&1)===1}function l(){if(r.length>0&&Qt(r[r.length-1]))throw new Error("Did not expect successive traversals.")}function p(N){if(r.length>0&&r[r.length-1].type===M.Descendant){r[r.length-1].type=N;return}l(),r.push({type:N})}function b(N,I){r.push({type:M.Attribute,name:N,action:I,value:s(1),namespace:null,ignoreCase:"quirks"})}function x(){if(r.length&&r[r.length-1].type===M.Descendant&&r.pop(),r.length===0)throw new Error("Empty sub-selector");e.push(r)}if(n(0),t.length===i)return i;e:for(;i<t.length;){let N=t.charCodeAt(i);switch(N){case 32:case 9:case 10:case 12:case 13:{(r.length===0||r[0].type!==M.Descendant)&&(l(),r.push({type:M.Descendant})),n(1);break}case 62:{p(M.Child),n(1);break}case 60:{p(M.Parent),n(1);break}case 126:{p(M.Sibling),n(1);break}case 43:{p(M.Adjacent),n(1);break}case 46:{b("class",le.Element);break}case 35:{b("id",le.Equals);break}case 91:{n(1);let I,O=null;t.charCodeAt(i)===124?I=s(1):t.startsWith("*|",i)?(O="*",I=s(2)):(I=s(0),t.charCodeAt(i)===124&&t.charCodeAt(i+1)!==61&&(O=I,I=s(1))),n(0);let H=le.Exists,Q=Ef.get(t.charCodeAt(i));if(Q){if(H=Q,t.charCodeAt(i+1)!==61)throw new Error("Expected `=`");n(2)}else t.charCodeAt(i)===61&&(H=le.Equals,n(1));let xe="",te=null;if(H!=="exists"){if(fo(t.charCodeAt(i))){let We=t.charCodeAt(i),Pe=i+1;for(;Pe<t.length&&(t.charCodeAt(Pe)!==We||c(Pe));)Pe+=1;if(t.charCodeAt(Pe)!==We)throw new Error("Attribute value didn't end");xe=Tr(t.slice(i+1,Pe)),i=Pe+1}else{let We=i;for(;i<t.length&&(!$l(t.charCodeAt(i))&&t.charCodeAt(i)!==93||c(i));)i+=1;xe=Tr(t.slice(We,i))}n(0);let fe=t.charCodeAt(i)|32;fe===115?(te=!1,n(1)):fe===105&&(te=!0,n(1))}if(t.charCodeAt(i)!==93)throw new Error("Attribute selector didn't terminate");i+=1;let X={type:M.Attribute,name:I,action:H,value:xe,namespace:O,ignoreCase:te};r.push(X);break}case 58:{if(t.charCodeAt(i+1)===58){r.push({type:M.PseudoElement,name:s(2).toLowerCase(),data:t.charCodeAt(i)===40?o():null});continue}let I=s(1).toLowerCase(),O=null;if(t.charCodeAt(i)===40)if(gf.has(I)){if(fo(t.charCodeAt(i+1)))throw new Error(`Pseudo-selector ${I} cannot be quoted`);if(O=[],i=Vl(O,t,i+1),t.charCodeAt(i)!==41)throw new Error(`Missing closing parenthesis in :${I} (${t})`);i+=1}else{if(O=o(),Tf.has(I)){let H=O.charCodeAt(0);H===O.charCodeAt(O.length-1)&&fo(H)&&(O=O.slice(1,-1))}O=Tr(O)}r.push({type:M.Pseudo,name:I,data:O});break}case 44:{x(),r=[],n(1);break}default:{if(t.startsWith("/*",i)){let H=t.indexOf("*/",i+2);if(H<0)throw new Error("Comment was not terminated");i=H+2,r.length===0&&n(0);break}let I=null,O;if(N===42)i+=1,O="*";else if(N===124){if(O="",t.charCodeAt(i+1)===124){p(M.ColumnCombinator),n(2);break}}else if(Fl.test(t.slice(i)))O=s(0);else break e;t.charCodeAt(i)===124&&t.charCodeAt(i+1)!==124&&(I=O,t.charCodeAt(i+1)===42?(O="*",i+=2):O=s(1)),r.push(O==="*"?{type:M.Universal,namespace:I}:{type:M.Tag,name:O,namespace:I})}}}return x(),i}var yo=mt(It(),1);var ht=mt(It(),1);var Gl=new Map([[M.Universal,50],[M.Tag,30],[M.Attribute,1],[M.Pseudo,0]]);function _r(e){return!Gl.has(e.type)}var xf=new Map([[le.Exists,10],[le.Equals,8],[le.Not,7],[le.Start,6],[le.End,6],[le.Any,5]]);function mo(e){let t=e.map(Wl);for(let i=1;i<e.length;i++){let r=t[i];if(!(r<0))for(let s=i-1;s>=0&&r<t[s];s--){let n=e[s+1];e[s+1]=e[s],e[s]=n,t[s+1]=t[s],t[s]=r}}}function Wl(e){var t,i;let r=(t=Gl.get(e.type))!==null&&t!==void 0?t:-1;return e.type===M.Attribute?(r=(i=xf.get(e.action))!==null&&i!==void 0?i:4,e.action===le.Equals&&e.name==="id"&&(r=9),e.ignoreCase&&(r>>=1)):e.type===M.Pseudo&&(e.data?e.name==="has"||e.name==="contains"?r=0:Array.isArray(e.data)?(r=Math.min(...e.data.map(s=>Math.min(...s.map(Wl)))),r<0&&(r=0)):r=2:r=3),r}var xr=mt(It(),1),qf=/[-[\]{}()*+?.,\\^$|#\s]/g;function jl(e){return e.replace(qf,"\\$&")}var Af=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 zt(e,t){return typeof e.ignoreCase=="boolean"?e.ignoreCase:e.ignoreCase==="quirks"?!!t.quirksMode:!t.xmlMode&&Af.has(e.name)}var Xl={equals(e,t,i){let{adapter:r}=i,{name:s}=t,{value:n}=t;return zt(t,i)?(n=n.toLowerCase(),o=>{let c=r.getAttributeValue(o,s);return c!=null&&c.length===n.length&&c.toLowerCase()===n&&e(o)}):o=>r.getAttributeValue(o,s)===n&&e(o)},hyphen(e,t,i){let{adapter:r}=i,{name:s}=t,{value:n}=t,o=n.length;return zt(t,i)?(n=n.toLowerCase(),function(l){let p=r.getAttributeValue(l,s);return p!=null&&(p.length===o||p.charAt(o)==="-")&&p.substr(0,o).toLowerCase()===n&&e(l)}):function(l){let p=r.getAttributeValue(l,s);return p!=null&&(p.length===o||p.charAt(o)==="-")&&p.substr(0,o)===n&&e(l)}},element(e,t,i){let{adapter:r}=i,{name:s,value:n}=t;if(/\s/.test(n))return xr.default.falseFunc;let o=new RegExp(`(?:^|\\s)${jl(n)}(?:$|\\s)`,zt(t,i)?"i":"");return function(l){let p=r.getAttributeValue(l,s);return p!=null&&p.length>=n.length&&o.test(p)&&e(l)}},exists(e,{name:t},{adapter:i}){return r=>i.hasAttrib(r,t)&&e(r)},start(e,t,i){let{adapter:r}=i,{name:s}=t,{value:n}=t,o=n.length;return o===0?xr.default.falseFunc:zt(t,i)?(n=n.toLowerCase(),c=>{let l=r.getAttributeValue(c,s);return l!=null&&l.length>=o&&l.substr(0,o).toLowerCase()===n&&e(c)}):c=>{var l;return!!(!((l=r.getAttributeValue(c,s))===null||l===void 0)&&l.startsWith(n))&&e(c)}},end(e,t,i){let{adapter:r}=i,{name:s}=t,{value:n}=t,o=-n.length;return o===0?xr.default.falseFunc:zt(t,i)?(n=n.toLowerCase(),c=>{var l;return((l=r.getAttributeValue(c,s))===null||l===void 0?void 0:l.substr(o).toLowerCase())===n&&e(c)}):c=>{var l;return!!(!((l=r.getAttributeValue(c,s))===null||l===void 0)&&l.endsWith(n))&&e(c)}},any(e,t,i){let{adapter:r}=i,{name:s,value:n}=t;if(n==="")return xr.default.falseFunc;if(zt(t,i)){let o=new RegExp(jl(n),"i");return function(l){let p=r.getAttributeValue(l,s);return p!=null&&p.length>=n.length&&o.test(p)&&e(l)}}return o=>{var c;return!!(!((c=r.getAttributeValue(o,s))===null||c===void 0)&&c.includes(n))&&e(o)}},not(e,t,i){let{adapter:r}=i,{name:s}=t,{value:n}=t;return n===""?o=>!!r.getAttributeValue(o,s)&&e(o):zt(t,i)?(n=n.toLowerCase(),o=>{let c=r.getAttributeValue(o,s);return(c==null||c.length!==n.length||c.toLowerCase()!==n)&&e(o)}):o=>r.getAttributeValue(o,s)!==n&&e(o)}};var vf=new Set([9,10,12,13,32]),Kl="0".charCodeAt(0),yf="9".charCodeAt(0);function Ql(e){if(e=e.trim().toLowerCase(),e==="even")return[2,0];if(e==="odd")return[2,1];let t=0,i=0,r=n(),s=o();if(t<e.length&&e.charAt(t)==="n"&&(t++,i=r*(s!=null?s:1),c(),t<e.length?(r=n(),c(),s=o()):r=s=0),s===null||t<e.length)throw new Error(`n-th rule couldn't be parsed ('${e}')`);return[i,r*s];function n(){return e.charAt(t)==="-"?(t++,-1):(e.charAt(t)==="+"&&t++,1)}function o(){let l=t,p=0;for(;t<e.length&&e.charCodeAt(t)>=Kl&&e.charCodeAt(t)<=yf;)p=p*10+(e.charCodeAt(t)-Kl),t++;return t===l?null:p}function c(){for(;t<e.length&&vf.has(e.charCodeAt(t));)t++}}var bo=mt(It(),1);function zl(e){let t=e[0],i=e[1]-1;if(i<0&&t<=0)return bo.default.falseFunc;if(t===-1)return n=>n<=i;if(t===0)return n=>n===i;if(t===1)return i<0?bo.default.trueFunc:n=>n>=i;let r=Math.abs(t),s=(i%r+r)%r;return t>1?n=>n>=i&&n%r===s:n=>n<=i&&n%r===s}function Ii(e){return zl(Ql(e))}var Le=mt(It(),1);function Zs(e,t){return i=>{let r=t.getParent(i);return r!=null&&t.isTag(r)&&e(i)}}var Ri={contains(e,t,{adapter:i}){return function(s){return e(s)&&i.getText(s).includes(t)}},icontains(e,t,{adapter:i}){let r=t.toLowerCase();return function(n){return e(n)&&i.getText(n).toLowerCase().includes(r)}},"nth-child"(e,t,{adapter:i,equals:r}){let s=Ii(t);return s===Le.default.falseFunc?Le.default.falseFunc:s===Le.default.trueFunc?Zs(e,i):function(o){let c=i.getSiblings(o),l=0;for(let p=0;p<c.length&&!r(o,c[p]);p++)i.isTag(c[p])&&l++;return s(l)&&e(o)}},"nth-last-child"(e,t,{adapter:i,equals:r}){let s=Ii(t);return s===Le.default.falseFunc?Le.default.falseFunc:s===Le.default.trueFunc?Zs(e,i):function(o){let c=i.getSiblings(o),l=0;for(let p=c.length-1;p>=0&&!r(o,c[p]);p--)i.isTag(c[p])&&l++;return s(l)&&e(o)}},"nth-of-type"(e,t,{adapter:i,equals:r}){let s=Ii(t);return s===Le.default.falseFunc?Le.default.falseFunc:s===Le.default.trueFunc?Zs(e,i):function(o){let c=i.getSiblings(o),l=0;for(let p=0;p<c.length;p++){let b=c[p];if(r(o,b))break;i.isTag(b)&&i.getName(b)===i.getName(o)&&l++}return s(l)&&e(o)}},"nth-last-of-type"(e,t,{adapter:i,equals:r}){let s=Ii(t);return s===Le.default.falseFunc?Le.default.falseFunc:s===Le.default.trueFunc?Zs(e,i):function(o){let c=i.getSiblings(o),l=0;for(let p=c.length-1;p>=0;p--){let b=c[p];if(r(o,b))break;i.isTag(b)&&i.getName(b)===i.getName(o)&&l++}return s(l)&&e(o)}},root(e,t,{adapter:i}){return r=>{let s=i.getParent(r);return(s==null||!i.isTag(s))&&e(r)}},scope(e,t,i,r){let{equals:s}=i;return!r||r.length===0?Ri.root(e,t,i):r.length===1?n=>s(r[0],n)&&e(n):n=>r.includes(n)&&e(n)},hover:Eo("isHovered"),visited:Eo("isVisited"),active:Eo("isActive")};function Eo(e){return function(i,r,{adapter:s}){let n=s[e];return typeof n!="function"?Le.default.falseFunc:function(c){return n(c)&&i(c)}}}var qr={empty(e,{adapter:t}){return!t.getChildren(e).some(i=>t.isTag(i)||t.getText(i)!=="")},"first-child"(e,{adapter:t,equals:i}){if(t.prevElementSibling)return t.prevElementSibling(e)==null;let r=t.getSiblings(e).find(s=>t.isTag(s));return r!=null&&i(e,r)},"last-child"(e,{adapter:t,equals:i}){let r=t.getSiblings(e);for(let s=r.length-1;s>=0;s--){if(i(e,r[s]))return!0;if(t.isTag(r[s]))break}return!1},"first-of-type"(e,{adapter:t,equals:i}){let r=t.getSiblings(e),s=t.getName(e);for(let n=0;n<r.length;n++){let o=r[n];if(i(e,o))return!0;if(t.isTag(o)&&t.getName(o)===s)break}return!1},"last-of-type"(e,{adapter:t,equals:i}){let r=t.getSiblings(e),s=t.getName(e);for(let n=r.length-1;n>=0;n--){let o=r[n];if(i(e,o))return!0;if(t.isTag(o)&&t.getName(o)===s)break}return!1},"only-of-type"(e,{adapter:t,equals:i}){let r=t.getName(e);return t.getSiblings(e).every(s=>i(e,s)||!t.isTag(s)||t.getName(s)!==r)},"only-child"(e,{adapter:t,equals:i}){return t.getSiblings(e).every(r=>i(e,r)||!t.isTag(r))}};function go(e,t,i,r){if(i===null){if(e.length>r)throw new Error(`Pseudo-class :${t} requires an argument`)}else if(e.length===r)throw new Error(`Pseudo-class :${t} doesn't have any arguments`)}var ea={"any-link":":is(a, area, link)[href]",link:":any-link:not(:visited)",disabled:`:is(
1920
+ :is(button, input, select, textarea, optgroup, option)[disabled],
1921
+ optgroup[disabled] > option,
1922
+ fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
1923
+ )`,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 Be=mt(It(),1);var xo={};function qo(e,t){return e===Be.default.falseFunc?Be.default.falseFunc:i=>t.isTag(i)&&e(i)}function Ao(e,t){let i=t.getSiblings(e);if(i.length<=1)return[];let r=i.indexOf(e);return r<0||r===i.length-1?[]:i.slice(r+1).filter(t.isTag)}function _o(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 To=(e,t,i,r,s)=>{let n=s(t,_o(i),r);return n===Be.default.trueFunc?e:n===Be.default.falseFunc?Be.default.falseFunc:o=>n(o)&&e(o)},ta={is:To,matches:To,where:To,not(e,t,i,r,s){let n=s(t,_o(i),r);return n===Be.default.falseFunc?e:n===Be.default.trueFunc?Be.default.falseFunc:o=>!n(o)&&e(o)},has(e,t,i,r,s){let{adapter:n}=i,o=_o(i);o.relativeSelector=!0;let c=t.some(b=>b.some(_r))?[xo]:void 0,l=s(t,o,c);if(l===Be.default.falseFunc)return Be.default.falseFunc;let p=qo(l,n);if(c&&l!==Be.default.trueFunc){let{shouldTestNextSiblings:b=!1}=l;return x=>{if(!e(x))return!1;c[0]=x;let N=n.getChildren(x),I=b?[...N,...Ao(x,n)]:N;return n.existsOne(p,I)}}return b=>e(b)&&n.existsOne(p,n.getChildren(b))}};function Jl(e,t,i,r,s){var n;let{name:o,data:c}=t;if(Array.isArray(c)){if(!(o in ta))throw new Error(`Unknown pseudo-class :${o}(${c})`);return ta[o](e,c,i,r,s)}let l=(n=i.pseudos)===null||n===void 0?void 0:n[o],p=typeof l=="string"?l:ea[o];if(typeof p=="string"){if(c!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let b=dt(p);return ta.is(e,b,i,r,s)}if(typeof l=="function")return go(l,o,c,1),b=>l(b,c)&&e(b);if(o in Ri)return Ri[o](e,c,i,r);if(o in qr){let b=qr[o];return go(b,o,c,2),x=>b(x,i,c)&&e(x)}throw new Error(`Unknown pseudo-class :${o}`)}function vo(e,t){let i=t.getParent(e);return i&&t.isTag(i)?i:null}function Zl(e,t,i,r,s){let{adapter:n,equals:o}=i;switch(t.type){case M.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case M.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case M.Attribute:{if(t.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!i.xmlMode||i.lowerCaseAttributeNames)&&(t.name=t.name.toLowerCase()),Xl[t.action](e,t,i)}case M.Pseudo:return Jl(e,t,i,r,s);case M.Tag:{if(t.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:c}=t;return(!i.xmlMode||i.lowerCaseTags)&&(c=c.toLowerCase()),function(p){return n.getName(p)===c&&e(p)}}case M.Descendant:{if(i.cacheResults===!1||typeof WeakSet=="undefined")return function(p){let b=p;for(;b=vo(b,n);)if(e(b))return!0;return!1};let c=new WeakSet;return function(p){let b=p;for(;b=vo(b,n);)if(!c.has(b)){if(n.isTag(b)&&e(b))return!0;c.add(b)}return!1}}case"_flexibleDescendant":return function(l){let p=l;do if(e(p))return!0;while(p=vo(p,n));return!1};case M.Parent:return function(l){return n.getChildren(l).some(p=>n.isTag(p)&&e(p))};case M.Child:return function(l){let p=n.getParent(l);return p!=null&&n.isTag(p)&&e(p)};case M.Sibling:return function(l){let p=n.getSiblings(l);for(let b=0;b<p.length;b++){let x=p[b];if(o(l,x))break;if(n.isTag(x)&&e(x))return!0}return!1};case M.Adjacent:return n.prevElementSibling?function(l){let p=n.prevElementSibling(l);return p!=null&&e(p)}:function(l){let p=n.getSiblings(l),b;for(let x=0;x<p.length;x++){let N=p[x];if(o(l,N))break;n.isTag(N)&&(b=N)}return!!b&&e(b)};case M.Universal:{if(t.namespace!=null&&t.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return e}}}function ed(e,t,i){let r=ia(e,t,i);return qo(r,t.adapter)}function ia(e,t,i){let r=typeof e=="string"?dt(e):e;return ra(r,t,i)}function td(e){return e.type===M.Pseudo&&(e.name==="scope"||Array.isArray(e.data)&&e.data.some(t=>t.some(td)))}var Cf={type:M.Descendant},Nf={type:"_flexibleDescendant"},Sf={type:M.Pseudo,name:"scope",data:null};function If(e,{adapter:t},i){let r=!!(i!=null&&i.every(s=>{let n=t.isTag(s)&&t.getParent(s);return s===xo||n&&t.isTag(n)}));for(let s of e){if(!(s.length>0&&_r(s[0])&&s[0].type!==M.Descendant))if(r&&!s.some(td))s.unshift(Cf);else continue;s.unshift(Sf)}}function ra(e,t,i){var r;e.forEach(mo),i=(r=t.context)!==null&&r!==void 0?r:i;let s=Array.isArray(i),n=i&&(Array.isArray(i)?i:[i]);if(t.relativeSelector!==!1)If(e,t,n);else if(e.some(l=>l.length>0&&_r(l[0])))throw new Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");let o=!1,c=e.map(l=>{if(l.length>=2){let[p,b]=l;p.type!==M.Pseudo||p.name!=="scope"||(s&&b.type===M.Descendant?l[1]=Nf:(b.type===M.Adjacent||b.type===M.Sibling)&&(o=!0))}return Rf(l,t,n)}).reduce(Lf,ht.default.falseFunc);return c.shouldTestNextSiblings=o,c}function Rf(e,t,i){var r;return e.reduce((s,n)=>s===ht.default.falseFunc?ht.default.falseFunc:Zl(s,n,t,i,ra),(r=t.rootFunc)!==null&&r!==void 0?r:ht.default.trueFunc)}function Lf(e,t){return t===ht.default.falseFunc||e===ht.default.trueFunc?e:e===ht.default.falseFunc||t===ht.default.trueFunc?t:function(r){return e(r)||t(r)}}var id=(e,t)=>e===t,Of={adapter:lt,equals:id};function rd(e){var t,i,r,s;let n=e!=null?e:Of;return(t=n.adapter)!==null&&t!==void 0||(n.adapter=lt),(i=n.equals)!==null&&i!==void 0||(n.equals=(s=(r=n.adapter)===null||r===void 0?void 0:r.equals)!==null&&s!==void 0?s:id),n}function Co(e){return function(i,r,s){let n=rd(r);return e(i,n,s)}}var v3=Co(ed),y3=Co(ia),sa=Co(ra);function sd(e){return function(i,r,s){let n=rd(s);typeof i!="function"&&(i=ia(i,n,r));let o=aa(r,n.adapter,i.shouldTestNextSiblings);return e(i,o,n)}}function aa(e,t,i=!1){return i&&(e=Df(e,t)),Array.isArray(e)?t.removeSubsets(e):t.getChildren(e)}function Df(e,t){let i=Array.isArray(e)?e.slice(0):[e],r=i.length;for(let s=0;s<r;s++){let n=Ao(i[s],t);i.push(...n)}return i}var C3=sd((e,t,i)=>e===yo.default.falseFunc||!t||t.length===0?[]:i.adapter.findAll(e,t)),N3=sd((e,t,i)=>e===yo.default.falseFunc||!t||t.length===0?null:i.adapter.findOne(e,t));var oa=mt(It(),1);var wf=new Set(["first","last","eq","gt","nth","lt","even","odd"]);function Li(e){return e.type!=="pseudo"?!1:wf.has(e.name)?!0:e.name==="not"&&Array.isArray(e.data)?e.data.some(t=>t.some(Li)):!1}function ad(e,t,i){let r=t!=null?parseInt(t,10):NaN;switch(e){case"first":return 1;case"nth":case"eq":return isFinite(r)?r>=0?r+1:1/0:0;case"lt":return isFinite(r)?r>=0?Math.min(r,i):1/0:0;case"gt":return isFinite(r)?1/0:0;case"odd":return 2*i;case"even":return 2*i-1;case"last":case"not":return 1/0}}function nd(e){for(;e.parent;)e=e.parent;return e}function na(e){let t=[],i=[];for(let r of e)r.some(Li)?t.push(r):i.push(r);return[i,t]}var kf={type:M.Universal,namespace:null},Pf={type:M.Pseudo,name:"scope",data:null};function Io(e,t,i={}){return Ro([e],t,i)}function Ro(e,t,i={}){if(typeof t=="function")return e.some(t);let[r,s]=na(dt(t));return r.length>0&&e.some(sa(r,i))||s.some(n=>ud(n,e,i).length>0)}function Mf(e,t,i,r){let s=typeof i=="string"?parseInt(i,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(od(i,t,r));return t.filter(o=>!n.has(o))}}}function Lo(e,t,i={}){return od(dt(e),t,i)}function od(e,t,i){if(t.length===0)return[];let[r,s]=na(e),n;if(r.length){let o=So(t,r,i);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 c=s[o];if((n?t.filter(b=>P(b)&&!n.has(b)):t).length===0)break;let p=ud(c,t,i);if(p.length)if(n)p.forEach(b=>n.add(b));else{if(o===s.length-1)return p;n=new Set(p)}}return typeof n!="undefined"?n.size===t.length?t:t.filter(o=>n.has(o)):[]}function ud(e,t,i){var r;if(e.some(Qt)){let s=(r=i.root)!==null&&r!==void 0?r:nd(t[0]),n=ie(D({},i),{context:t,relativeSelector:!1});return e.push(Pf),ua(s,e,n,!0,t.length)}return ua(t,e,i,!1,t.length)}function cd(e,t,i={},r=1/0){if(typeof e=="function")return ld(t,e);let[s,n]=na(dt(e)),o=n.map(c=>ua(t,c,i,!0,r));return s.length&&o.push(No(t,s,i,r)),o.length===0?[]:o.length===1?o[0]:Ct(o.reduce((c,l)=>[...c,...l]))}function ua(e,t,i,r,s){let n=t.findIndex(Li),o=t.slice(0,n),c=t[n],l=t.length-1===n?s:1/0,p=ad(c.name,c.data,l);if(p===0)return[];let x=(o.length===0&&!Array.isArray(e)?Ci(e).filter(P):o.length===0?(Array.isArray(e)?e:[e]).filter(P):r||o.some(Qt)?No(e,[o],i,p):So(e,[o],i)).slice(0,p),N=Mf(c.name,x,c.data,i);if(N.length===0||t.length===n+1)return N;let I=t.slice(n+1),O=I.some(Qt);if(O){if(Qt(I[0])){let{type:H}=I[0];(H===M.Sibling||H===M.Adjacent)&&(N=aa(N,lt,!0)),I.unshift(kf)}i=ie(D({},i),{relativeSelector:!1,rootFunc:H=>N.includes(H)})}else i.rootFunc&&i.rootFunc!==oa.trueFunc&&(i=ie(D({},i),{rootFunc:oa.trueFunc}));return I.some(Li)?ua(N,I,i,!1,s):O?No(N,[I],i,s):So(N,[I],i)}function No(e,t,i,r){let s=sa(t,i,e);return ld(e,s,r)}function ld(e,t,i=1/0){let r=aa(e,lt,t.shouldTestNextSiblings);return br(s=>P(s)&&t(s),r,!0,i)}function So(e,t,i){let r=(Array.isArray(e)?e:[e]).filter(P);if(r.length===0)return r;let s=sa(t,i);return s===oa.trueFunc?r:r.filter(s)}var Bf=/^\s*[~+]/;function Uf(e){var t;if(!e)return this._make([]);let i=this.toArray();if(typeof e!="string"){let n=ke(e)?e.toArray():[e];return this._make(n.filter(o=>i.some(c=>uo(c,o))))}let r=Bf.test(e)?i:this.children().toArray(),s={context:i,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(cd(e,r,s))}function Oo(e){return function(t,...i){return function(r){var s;let n=e(t,this);return r&&(n=ko(n,r,this.options.xmlMode,(s=this._root)===null||s===void 0?void 0:s[0])),this._make(this.length>1&&n.length>1?i.reduce((o,c)=>c(o),n):n)}}}var Ar=Oo((e,t)=>{let i=[];for(let r=0;r<t.length;r++){let s=e(t[r]);i.push(s)}return new Array().concat(...i)}),Do=Oo((e,t)=>{let i=[];for(let r=0;r<t.length;r++){let s=e(t[r]);s!==null&&i.push(s)}return i});function wo(e,...t){let i=null,r=Oo((s,n)=>{let o=[];return ee(n,c=>{for(let l;(l=s(c))&&!(i!=null&&i(l,o.length));c=l)o.push(l)}),o})(e,...t);return function(s,n){i=typeof s=="string"?c=>Io(c,s,this.options):s?vr(s):null;let o=r.call(this,n);return i=null,o}}function Oi(e){return Array.from(new Set(e))}var Ff=Do(({parent:e})=>e&&!$e(e)?e:null,Oi),$f=Ar(e=>{let t=[];for(;e.parent&&!$e(e.parent);)t.push(e.parent),e=e.parent;return t},Ct,e=>e.reverse()),Vf=wo(({parent:e})=>e&&!$e(e)?e:null,Ct,e=>e.reverse());function Yf(e){var t;let i=[];if(!e)return this._make(i);let r={xmlMode:this.options.xmlMode,root:(t=this._root)===null||t===void 0?void 0:t[0]},s=typeof e=="string"?n=>Io(n,e,r):vr(e);return ee(this,n=>{for(;n&&P(n);){if(s(n,0)){i.includes(n)||i.push(n);break}n=n.parent}}),this._make(i)}var Gf=Do(e=>Gs(e)),Wf=Ar(e=>{let t=[];for(;e.next;)e=e.next,P(e)&&t.push(e);return t},Oi),jf=wo(e=>Gs(e),Oi),Xf=Do(e=>Ws(e)),Kf=Ar(e=>{let t=[];for(;e.prev;)e=e.prev,P(e)&&t.push(e);return t},Oi),Qf=wo(e=>Ws(e),Oi),zf=Ar(e=>no(e).filter(t=>P(t)&&t!==e),Ct),Jf=Ar(e=>Ci(e).filter(P),Oi);function Zf(){let e=this.toArray().reduce((t,i)=>ae(i)?t.concat(i.children):t,[]);return this._make(e)}function em(e){let t=0,i=this.length;for(;t<i&&e.call(this[t],t,this[t])!==!1;)++t;return this}function tm(e){let t=[];for(let i=0;i<this.length;i++){let r=this[i],s=e.call(r,i,r);s!=null&&(t=t.concat(s))}return this._make(t)}function vr(e){return typeof e=="function"?(t,i)=>e.call(t,i,t):ke(e)?t=>Array.prototype.includes.call(e,t):function(t){return e===t}}function im(e){var t;return this._make(ko(this.toArray(),e,this.options.xmlMode,(t=this._root)===null||t===void 0?void 0:t[0]))}function ko(e,t,i,r){return typeof t=="string"?Lo(t,e,{xmlMode:i,root:r}):e.filter(vr(t))}function rm(e){let t=this.toArray();return typeof e=="string"?Ro(t.filter(P),e,this.options):e?t.some(vr(e)):!1}function sm(e){let t=this.toArray();if(typeof e=="string"){let i=new Set(Lo(e,t,this.options));t=t.filter(r=>!i.has(r))}else{let i=vr(e);t=t.filter((r,s)=>!i(r,s))}return this._make(t)}function am(e){return this.filter(typeof e=="string"?`:has(${e})`:(t,i)=>this._make(i).find(e).length>0)}function nm(){return this.length>1?this._make(this[0]):this}function om(){return this.length>0?this._make(this[this.length-1]):this}function um(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 cm(e){return e==null?this.toArray():this[e<0?this.length+e:e]}function lm(){return Array.prototype.slice.call(this)}function dm(e){let t,i;return e==null?(t=this.parent().children(),i=this[0]):typeof e=="string"?(t=this._make(e),i=this[0]):(t=this,i=ke(e)?e[0]:e),Array.prototype.indexOf.call(t,i)}function hm(e,t){return this._make(Array.prototype.slice.call(this,e,t))}function pm(){var e;return(e=this.prevObject)!==null&&e!==void 0?e:this._make([])}function fm(e,t){let i=this._make(e,t),r=Ct([...this.get(),...i.get()]);return this._make(r)}function mm(e){return this.prevObject?this.add(e?this.prevObject.filter(e):this.prevObject):this}var Mo={};Fe(Mo,{_makeDomArray:()=>bm,after:()=>ym,append:()=>Tm,appendTo:()=>Em,before:()=>Nm,clone:()=>km,empty:()=>Lm,html:()=>Om,insertAfter:()=>Cm,insertBefore:()=>Sm,prepend:()=>_m,prependTo:()=>gm,remove:()=>Im,replaceWith:()=>Rm,text:()=>wm,toString:()=>Dm,unwrap:()=>Am,wrap:()=>xm,wrapAll:()=>vm,wrapInner:()=>qm});function dd(e){return function(i,r,s,n){if(typeof Buffer!="undefined"&&Buffer.isBuffer(i)&&(i=i.toString()),typeof i=="string")return e(i,r,s,n);let o=i;if(!Array.isArray(o)&&$e(o))return o;let c=new we([]);return Rt(o,c),c}}function Rt(e,t){let i=Array.isArray(e)?e:[e];t?t.children=i:t=null;for(let r=0;r<i.length;r++){let s=i[r];s.parent&&s.parent.children!==i&&ct(s),t?(s.prev=i[r-1]||null,s.next=i[r+1]||null):s.prev=s.next=null,s.parent=t}return t}function bm(e,t){return e==null?[]:ke(e)?t?Qs(e.get()):e.get():Array.isArray(e)?e.reduce((i,r)=>i.concat(this._makeDomArray(r,t)),[]):typeof e=="string"?this._parse(e,this.options,!1,null).children:t?Qs([e]):[e]}function hd(e){return function(...t){let i=this.length-1;return ee(this,(r,s)=>{if(!ae(r))return;let n=typeof t[0]=="function"?t[0].call(r,s,this._render(r.children)):t,o=this._makeDomArray(n,s<i);e(o,r.children,r)})}}function Lt(e,t,i,r,s){var n,o;let c=[t,i,...r],l=t===0?null:e[t-1],p=t+i>=e.length?null:e[t+i];for(let b=0;b<r.length;++b){let x=r[b],N=x.parent;if(N){let O=N.children.indexOf(x);O>-1&&(N.children.splice(O,1),s===N&&t>O&&c[0]--)}x.parent=s,x.prev&&(x.prev.next=(n=x.next)!==null&&n!==void 0?n:null),x.next&&(x.next.prev=(o=x.prev)!==null&&o!==void 0?o:null),x.prev=b===0?l:r[b-1],x.next=b===r.length-1?p:r[b+1]}return l&&(l.next=r[0]),p&&(p.prev=r[r.length-1]),e.splice(...c)}function Em(e){return(ke(e)?e:this._make(e)).append(this),this}function gm(e){return(ke(e)?e:this._make(e)).prepend(this),this}var Tm=hd((e,t,i)=>{Lt(t,t.length,0,e,i)}),_m=hd((e,t,i)=>{Lt(t,0,0,e,i)});function pd(e){return function(t){let i=this.length-1,r=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"&&!Er(t)?r.find(t).clone():t,[c]=this._makeDomArray(o,s<i);if(!c||!ae(c))continue;let l=c,p=0;for(;p<l.children.length;){let b=l.children[p];P(b)?(l=b,p=0):p++}e(n,l,[c])}return this}}var xm=pd((e,t,i)=>{let{parent:r}=e;if(!r)return;let s=r.children,n=s.indexOf(e);Rt([e],t),Lt(s,n,0,i,r)}),qm=pd((e,t,i)=>{ae(e)&&(Rt(e.children,t),Rt(i,e))});function Am(e){return this.parent(e).not("body").each((t,i)=>{this._make(i).replaceWith(i.children)}),this}function vm(e){let t=this[0];if(t){let i=this._make(typeof e=="function"?e.call(t,0,t):e).insertBefore(t),r;for(let n=0;n<i.length;n++)i[n].type==="tag"&&(r=i[n]);let s=0;for(;r&&s<r.children.length;){let n=r.children[s];n.type==="tag"?(r=n,s=0):s++}r&&this._make(r).append(this)}return this}function ym(...e){let t=this.length-1;return ee(this,(i,r)=>{let{parent:s}=i;if(!ae(i)||!s)return;let n=s.children,o=n.indexOf(i);if(o<0)return;let c=typeof e[0]=="function"?e[0].call(i,r,this._render(i.children)):e,l=this._makeDomArray(c,r<t);Lt(n,o+1,0,l,s)})}function Cm(e){typeof e=="string"&&(e=this._make(e)),this.remove();let t=[];return this._makeDomArray(e).forEach(i=>{let r=this.clone().toArray(),{parent:s}=i;if(!s)return;let n=s.children,o=n.indexOf(i);o<0||(Lt(n,o+1,0,r,s),t.push(...r))}),this._make(t)}function Nm(...e){let t=this.length-1;return ee(this,(i,r)=>{let{parent:s}=i;if(!ae(i)||!s)return;let n=s.children,o=n.indexOf(i);if(o<0)return;let c=typeof e[0]=="function"?e[0].call(i,r,this._render(i.children)):e,l=this._makeDomArray(c,r<t);Lt(n,o,0,l,s)})}function Sm(e){let t=this._make(e);this.remove();let i=[];return ee(t,r=>{let s=this.clone().toArray(),{parent:n}=r;if(!n)return;let o=n.children,c=o.indexOf(r);c<0||(Lt(o,c,0,s,n),i.push(...s))}),this._make(i)}function Im(e){let t=e?this.filter(e):this;return ee(t,i=>{ct(i),i.prev=i.next=i.parent=null}),this}function Rm(e){return ee(this,(t,i)=>{let{parent:r}=t;if(!r)return;let s=r.children,n=typeof e=="function"?e.call(t,i,t):e,o=this._makeDomArray(n);Rt(o,null);let c=s.indexOf(t);Lt(s,c,1,o,r),o.includes(t)||(t.parent=t.prev=t.next=null)})}function Lm(){return ee(this,e=>{ae(e)&&(e.children.forEach(t=>{t.next=t.prev=t.parent=null}),e.children.length=0)})}function Om(e){if(e===void 0){let t=this[0];return!t||!ae(t)?null:this._render(t.children)}return ee(this,t=>{if(!ae(t))return;t.children.forEach(r=>{r.next=r.prev=r.parent=null});let i=ke(e)?e.toArray():this._parse(`${e}`,this.options,!1,t).children;Rt(i,t)})}function Dm(){return this._render(this)}function wm(e){return e===void 0?Nt(this):typeof e=="function"?ee(this,(t,i)=>this._make(t).text(e.call(t,i,Nt([t])))):ee(this,t=>{if(!ae(t))return;t.children.forEach(r=>{r.next=r.prev=r.parent=null});let i=new Ze(`${e}`);Rt(i,t)})}function km(){return this._make(Qs(this.get()))}var Ho={};Fe(Ho,{css:()=>Pm});function Pm(e,t){if(e!=null&&t!=null||typeof e=="object"&&!Array.isArray(e))return ee(this,(i,r)=>{P(i)&&fd(i,e,t,r)});if(this.length!==0)return md(this[0],e)}function fd(e,t,i,r){if(typeof t=="string"){let s=md(e),n=typeof i=="function"?i.call(e,r,s[t]):i;n===""?delete s[t]:n!=null&&(s[t]=n),e.attribs.style=Mm(s)}else typeof t=="object"&&Object.keys(t).forEach((s,n)=>{fd(e,s,t[s],n)})}function md(e,t){if(!e||!P(e))return;let i=Hm(e.attribs.style);if(typeof t=="string")return i[t];if(Array.isArray(t)){let r={};return t.forEach(s=>{i[s]!=null&&(r[s]=i[s])}),r}return i}function Mm(e){return Object.keys(e).reduce((t,i)=>`${t}${t?" ":""}${i}: ${e[i]};`,"")}function Hm(e){if(e=(e||"").trim(),!e)return{};let t={},i;for(let r of e.split(";")){let s=r.indexOf(":");if(s<1||s===r.length-1){let n=r.trimEnd();n.length>0&&i!==void 0&&(t[i]+=`;${n}`)}else i=r.slice(0,s).trim(),t[i]=r.slice(s+1).trim()}return t}var Bo={};Fe(Bo,{serialize:()=>Um,serializeArray:()=>Fm});var bd="input,select,textarea,keygen",Bm=/%20/g,Ed=/\r?\n/g;function Um(){return this.serializeArray().map(i=>`${encodeURIComponent(i.name)}=${encodeURIComponent(i.value)}`).join("&").replace(Bm,"+")}function Fm(){return this.map((e,t)=>{let i=this._make(t);return P(t)&&t.name==="form"?i.find(bd).toArray():i.filter(bd).toArray()}).filter('[name!=""]:enabled:not(:submit, :button, :image, :reset, :file):matches([checked], :not(:checkbox, :radio))').map((e,t)=>{var i;let r=this._make(t),s=r.attr("name"),n=(i=r.val())!==null&&i!==void 0?i:"";return Array.isArray(n)?n.map(o=>({name:s,value:o.replace(Ed,`\r
1924
+ `)})):{name:s,value:n.replace(Ed,`\r
1925
+ `)}}).toArray()}var Ot=class{constructor(t,i,r){if(this.length=0,this.options=r,this._root=i,t){for(let s=0;s<t.length;s++)this[s]=t[s];this.length=t.length}}};Ot.prototype.cheerio="[cheerio object]";Ot.prototype.splice=Array.prototype.splice;Ot.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Ot.prototype,po,Po,Mo,Ho,Bo);function gd(e,t){return function i(r,s,n=!0){if(r==null)throw new Error("cheerio.load() expects a string");let o=D(D({},ar),nr(s)),c=e(r,o,n,null);class l extends Ot{_make(x,N){let I=p(x,N);return I.prevObject=this,I}_parse(x,N,I,O){return e(x,N,I,O)}_render(x){return t(x,this.options)}}function p(b,x,N=c,I){if(b&&ke(b))return b;let O=D(D({},o),nr(I)),H=typeof N=="string"?[e(N,O,!1,null)]:"length"in N?N:[N],Q=ke(H)?H:new l(H,null,O);if(Q._root=Q,!b)return new l(void 0,Q,O);let xe=typeof b=="string"&&Er(b)?e(b,O,!1,null).children:$m(b)?[b]:Array.isArray(b)?b:void 0,te=new l(xe,Q,O);if(xe)return te;if(typeof b!="string")throw new Error("Unexpected type of selector");let X=b,fe=x?typeof x=="string"?Er(x)?new l([e(x,O,!1,null)],Q,O):(X=`${x} ${X}`,Q):ke(x)?x:new l(Array.isArray(x)?x:[x],Q,O):Q;return fe?fe.find(X):te}return Object.assign(p,St,{load:i,_root:c,_options:o,fn:l.prototype,prototype:l.prototype}),p}}function $m(e){return!!e.name||e.type==="root"||e.type==="text"||e.type==="comment"}var Vm=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]),se="\uFFFD",d;(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"})(d=d||(d={}));var Ce={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function ca(e){return e>=55296&&e<=57343}function Td(e){return e>=56320&&e<=57343}function _d(e,t){return(e-55296)*1024+9216+t}function la(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function da(e){return e>=64976&&e<=65007||Vm.has(e)}var T;(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"})(T=T||(T={}));var Gm=1<<16,ha=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=Gm,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:i,col:r,offset:s}=this;return{code:t,startLine:i,endLine:i,startCol:r,endCol:r,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 i=this.html.charCodeAt(this.pos+1);if(Td(i))return this.pos++,this._addGap(),_d(t,i)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,d.EOF;return this._err(T.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,i){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=i}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,i){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(i)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){let i=this.pos+t;if(i>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,d.EOF;let r=this.html.charCodeAt(i);return r===d.CARRIAGE_RETURN?d.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,d.EOF;let t=this.html.charCodeAt(this.pos);return t===d.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,d.LINE_FEED):t===d.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,ca(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===d.LINE_FEED||t===d.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){la(t)?this._err(T.controlCharacterInInputStream):da(t)&&this._err(T.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}};var Uo={};Fe(Uo,{TokenType:()=>$,getTokenAttr:()=>yr});var $;(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"})($=$||($={}));function yr(e,t){for(let i=e.attrs.length-1;i>=0;i--)if(e.attrs[i].name===t)return e.attrs[i].value;return null}var Nr={};Fe(Nr,{ATTRS:()=>Ve,DOCUMENT_MODE:()=>ge,NS:()=>q,SPECIAL_ELEMENTS:()=>Fo,TAG_ID:()=>a,TAG_NAMES:()=>E,getTagID:()=>Dt,hasUnescapedText:()=>$o,isNumberedHeader:()=>Cr});var q;(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/"})(q=q||(q={}));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 ge;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(ge=ge||(ge={}));var E;(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"})(E=E||(E={}));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 Wm=new Map([[E.A,a.A],[E.ADDRESS,a.ADDRESS],[E.ANNOTATION_XML,a.ANNOTATION_XML],[E.APPLET,a.APPLET],[E.AREA,a.AREA],[E.ARTICLE,a.ARTICLE],[E.ASIDE,a.ASIDE],[E.B,a.B],[E.BASE,a.BASE],[E.BASEFONT,a.BASEFONT],[E.BGSOUND,a.BGSOUND],[E.BIG,a.BIG],[E.BLOCKQUOTE,a.BLOCKQUOTE],[E.BODY,a.BODY],[E.BR,a.BR],[E.BUTTON,a.BUTTON],[E.CAPTION,a.CAPTION],[E.CENTER,a.CENTER],[E.CODE,a.CODE],[E.COL,a.COL],[E.COLGROUP,a.COLGROUP],[E.DD,a.DD],[E.DESC,a.DESC],[E.DETAILS,a.DETAILS],[E.DIALOG,a.DIALOG],[E.DIR,a.DIR],[E.DIV,a.DIV],[E.DL,a.DL],[E.DT,a.DT],[E.EM,a.EM],[E.EMBED,a.EMBED],[E.FIELDSET,a.FIELDSET],[E.FIGCAPTION,a.FIGCAPTION],[E.FIGURE,a.FIGURE],[E.FONT,a.FONT],[E.FOOTER,a.FOOTER],[E.FOREIGN_OBJECT,a.FOREIGN_OBJECT],[E.FORM,a.FORM],[E.FRAME,a.FRAME],[E.FRAMESET,a.FRAMESET],[E.H1,a.H1],[E.H2,a.H2],[E.H3,a.H3],[E.H4,a.H4],[E.H5,a.H5],[E.H6,a.H6],[E.HEAD,a.HEAD],[E.HEADER,a.HEADER],[E.HGROUP,a.HGROUP],[E.HR,a.HR],[E.HTML,a.HTML],[E.I,a.I],[E.IMG,a.IMG],[E.IMAGE,a.IMAGE],[E.INPUT,a.INPUT],[E.IFRAME,a.IFRAME],[E.KEYGEN,a.KEYGEN],[E.LABEL,a.LABEL],[E.LI,a.LI],[E.LINK,a.LINK],[E.LISTING,a.LISTING],[E.MAIN,a.MAIN],[E.MALIGNMARK,a.MALIGNMARK],[E.MARQUEE,a.MARQUEE],[E.MATH,a.MATH],[E.MENU,a.MENU],[E.META,a.META],[E.MGLYPH,a.MGLYPH],[E.MI,a.MI],[E.MO,a.MO],[E.MN,a.MN],[E.MS,a.MS],[E.MTEXT,a.MTEXT],[E.NAV,a.NAV],[E.NOBR,a.NOBR],[E.NOFRAMES,a.NOFRAMES],[E.NOEMBED,a.NOEMBED],[E.NOSCRIPT,a.NOSCRIPT],[E.OBJECT,a.OBJECT],[E.OL,a.OL],[E.OPTGROUP,a.OPTGROUP],[E.OPTION,a.OPTION],[E.P,a.P],[E.PARAM,a.PARAM],[E.PLAINTEXT,a.PLAINTEXT],[E.PRE,a.PRE],[E.RB,a.RB],[E.RP,a.RP],[E.RT,a.RT],[E.RTC,a.RTC],[E.RUBY,a.RUBY],[E.S,a.S],[E.SCRIPT,a.SCRIPT],[E.SECTION,a.SECTION],[E.SELECT,a.SELECT],[E.SOURCE,a.SOURCE],[E.SMALL,a.SMALL],[E.SPAN,a.SPAN],[E.STRIKE,a.STRIKE],[E.STRONG,a.STRONG],[E.STYLE,a.STYLE],[E.SUB,a.SUB],[E.SUMMARY,a.SUMMARY],[E.SUP,a.SUP],[E.TABLE,a.TABLE],[E.TBODY,a.TBODY],[E.TEMPLATE,a.TEMPLATE],[E.TEXTAREA,a.TEXTAREA],[E.TFOOT,a.TFOOT],[E.TD,a.TD],[E.TH,a.TH],[E.THEAD,a.THEAD],[E.TITLE,a.TITLE],[E.TR,a.TR],[E.TRACK,a.TRACK],[E.TT,a.TT],[E.U,a.U],[E.UL,a.UL],[E.SVG,a.SVG],[E.VAR,a.VAR],[E.WBR,a.WBR],[E.XMP,a.XMP]]);function Dt(e){var t;return(t=Wm.get(e))!==null&&t!==void 0?t:a.UNKNOWN}var S=a,Fo={[q.HTML]:new Set([S.ADDRESS,S.APPLET,S.AREA,S.ARTICLE,S.ASIDE,S.BASE,S.BASEFONT,S.BGSOUND,S.BLOCKQUOTE,S.BODY,S.BR,S.BUTTON,S.CAPTION,S.CENTER,S.COL,S.COLGROUP,S.DD,S.DETAILS,S.DIR,S.DIV,S.DL,S.DT,S.EMBED,S.FIELDSET,S.FIGCAPTION,S.FIGURE,S.FOOTER,S.FORM,S.FRAME,S.FRAMESET,S.H1,S.H2,S.H3,S.H4,S.H5,S.H6,S.HEAD,S.HEADER,S.HGROUP,S.HR,S.HTML,S.IFRAME,S.IMG,S.INPUT,S.LI,S.LINK,S.LISTING,S.MAIN,S.MARQUEE,S.MENU,S.META,S.NAV,S.NOEMBED,S.NOFRAMES,S.NOSCRIPT,S.OBJECT,S.OL,S.P,S.PARAM,S.PLAINTEXT,S.PRE,S.SCRIPT,S.SECTION,S.SELECT,S.SOURCE,S.STYLE,S.SUMMARY,S.TABLE,S.TBODY,S.TD,S.TEMPLATE,S.TEXTAREA,S.TFOOT,S.TH,S.THEAD,S.TITLE,S.TR,S.TRACK,S.UL,S.WBR,S.XMP]),[q.MATHML]:new Set([S.MI,S.MO,S.MN,S.MS,S.MTEXT,S.ANNOTATION_XML]),[q.SVG]:new Set([S.TITLE,S.FOREIGN_OBJECT,S.DESC]),[q.XLINK]:new Set,[q.XML]:new Set,[q.XMLNS]:new Set};function Cr(e){return e===S.H1||e===S.H2||e===S.H3||e===S.H4||e===S.H5||e===S.H6}var jm=new Set([E.STYLE,E.SCRIPT,E.XMP,E.IFRAME,E.NOEMBED,E.NOFRAMES,E.PLAINTEXT]);function $o(e,t){return jm.has(e)||t&&e===E.NOSCRIPT}var Xm=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]]),h;(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"})(h||(h={}));var Te={DATA:h.DATA,RCDATA:h.RCDATA,RAWTEXT:h.RAWTEXT,SCRIPT_DATA:h.SCRIPT_DATA,PLAINTEXT:h.PLAINTEXT,CDATA_SECTION:h.CDATA_SECTION};function Ir(e){return e>=d.DIGIT_0&&e<=d.DIGIT_9}function Sr(e){return e>=d.LATIN_CAPITAL_A&&e<=d.LATIN_CAPITAL_Z}function Km(e){return e>=d.LATIN_SMALL_A&&e<=d.LATIN_SMALL_Z}function wt(e){return Km(e)||Sr(e)}function Vo(e){return wt(e)||Ir(e)}function qd(e){return e>=d.LATIN_CAPITAL_A&&e<=d.LATIN_CAPITAL_F}function Ad(e){return e>=d.LATIN_SMALL_A&&e<=d.LATIN_SMALL_F}function Qm(e){return Ir(e)||qd(e)||Ad(e)}function pa(e){return e+32}function vd(e){return e===d.SPACE||e===d.LINE_FEED||e===d.TABULATION||e===d.FORM_FEED}function zm(e){return e===d.EQUALS_SIGN||Vo(e)}function xd(e){return vd(e)||e===d.SOLIDUS||e===d.GREATER_THAN_SIGN}var Rr=class{constructor(t,i){this.options=t,this.handler=i,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=h.DATA,this.returnState=h.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new ha(i),this.currentLocation=this.getCurrentLocation(-1)}_err(t){var i,r;(r=(i=this.handler).onParseError)===null||r===void 0||r.call(i,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,i,r){this.active=!0,this.preprocessor.write(t,i),this._runParsingLoop(),this.paused||r==null||r()}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,i){this.state=t,this._callState(i)}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let i=0;i<t;i++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,i){return this.preprocessor.startsWith(t,i)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:$.START_TAG,tagName:"",tagID:a.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:$.END_TAG,tagName:"",tagID:a.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:$.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:$.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,i){this.currentCharacterToken={type:t,chars:i,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,i;let r=this.currentToken;if(yr(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){let s=(t=(i=r.location).attrs)!==null&&t!==void 0?t:i.attrs=Object.create(null);s[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(T.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=Dt(t.tagName),t.type===$.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(T.endTagWithAttributes),t.selfClosing&&this._err(T.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 $.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case $.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case $.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:$.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,i){if(this.currentCharacterToken)if(this.currentCharacterToken.type!==t)this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();else{this.currentCharacterToken.chars+=i;return}this._createCharacterToken(t,i)}_emitCodePoint(t){let i=vd(t)?$.WHITESPACE_CHARACTER:t===d.NULL?$.NULL_CHARACTER:$.CHARACTER;this._appendCharToCurrentCharacterToken(i,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken($.CHARACTER,t)}_matchNamedCharacterReference(t){let i=null,r=0,s=!1;for(let n=0,o=Me[0];n>=0&&(n=hr(Me,o,n+1,t),!(n<0));t=this._consume()){r+=1,o=Me[n];let c=o&ye.VALUE_LENGTH;if(c){let l=(c>>14)-1;if(t!==d.SEMICOLON&&this._isCharacterReferenceInAttribute()&&zm(this.preprocessor.peek(1))?(i=[d.AMPERSAND],n+=l):(i=l===0?[Me[n]&~ye.VALUE_LENGTH]:l===1?[Me[++n]]:[Me[++n],Me[++n]],r=0,s=t!==d.SEMICOLON),l===0){this._consume();break}}}return this._unconsume(r),s&&!this.preprocessor.endOfChunkHit&&this._err(T.missingSemicolonAfterCharacterReference),this._unconsume(1),i}_isCharacterReferenceInAttribute(){return this.returnState===h.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===h.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===h.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case h.DATA:{this._stateData(t);break}case h.RCDATA:{this._stateRcdata(t);break}case h.RAWTEXT:{this._stateRawtext(t);break}case h.SCRIPT_DATA:{this._stateScriptData(t);break}case h.PLAINTEXT:{this._statePlaintext(t);break}case h.TAG_OPEN:{this._stateTagOpen(t);break}case h.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case h.TAG_NAME:{this._stateTagName(t);break}case h.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case h.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case h.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case h.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case h.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case h.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case h.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case h.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case h.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case h.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case h.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case h.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case h.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case h.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case h.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case h.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case h.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case h.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case h.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case h.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case h.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case h.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case h.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case h.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case h.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case h.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case h.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case h.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case h.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case h.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case h.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case h.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case h.BOGUS_COMMENT:{this._stateBogusComment(t);break}case h.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case h.COMMENT_START:{this._stateCommentStart(t);break}case h.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case h.COMMENT:{this._stateComment(t);break}case h.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case h.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case h.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case h.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case h.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case h.COMMENT_END:{this._stateCommentEnd(t);break}case h.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case h.DOCTYPE:{this._stateDoctype(t);break}case h.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case h.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case h.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case h.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case h.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case h.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case h.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case h.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case h.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case h.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case h.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case h.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case h.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case h.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case h.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case h.CDATA_SECTION:{this._stateCdataSection(t);break}case h.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case h.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case h.CHARACTER_REFERENCE:{this._stateCharacterReference(t);break}case h.NAMED_CHARACTER_REFERENCE:{this._stateNamedCharacterReference(t);break}case h.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}case h.NUMERIC_CHARACTER_REFERENCE:{this._stateNumericCharacterReference(t);break}case h.HEXADEMICAL_CHARACTER_REFERENCE_START:{this._stateHexademicalCharacterReferenceStart(t);break}case h.HEXADEMICAL_CHARACTER_REFERENCE:{this._stateHexademicalCharacterReference(t);break}case h.DECIMAL_CHARACTER_REFERENCE:{this._stateDecimalCharacterReference(t);break}case h.NUMERIC_CHARACTER_REFERENCE_END:{this._stateNumericCharacterReferenceEnd(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case d.LESS_THAN_SIGN:{this.state=h.TAG_OPEN;break}case d.AMPERSAND:{this.returnState=h.DATA,this.state=h.CHARACTER_REFERENCE;break}case d.NULL:{this._err(T.unexpectedNullCharacter),this._emitCodePoint(t);break}case d.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case d.AMPERSAND:{this.returnState=h.RCDATA,this.state=h.CHARACTER_REFERENCE;break}case d.LESS_THAN_SIGN:{this.state=h.RCDATA_LESS_THAN_SIGN;break}case d.NULL:{this._err(T.unexpectedNullCharacter),this._emitChars(se);break}case d.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case d.LESS_THAN_SIGN:{this.state=h.RAWTEXT_LESS_THAN_SIGN;break}case d.NULL:{this._err(T.unexpectedNullCharacter),this._emitChars(se);break}case d.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case d.LESS_THAN_SIGN:{this.state=h.SCRIPT_DATA_LESS_THAN_SIGN;break}case d.NULL:{this._err(T.unexpectedNullCharacter),this._emitChars(se);break}case d.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case d.NULL:{this._err(T.unexpectedNullCharacter),this._emitChars(se);break}case d.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(wt(t))this._createStartTagToken(),this.state=h.TAG_NAME,this._stateTagName(t);else switch(t){case d.EXCLAMATION_MARK:{this.state=h.MARKUP_DECLARATION_OPEN;break}case d.SOLIDUS:{this.state=h.END_TAG_OPEN;break}case d.QUESTION_MARK:{this._err(T.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=h.BOGUS_COMMENT,this._stateBogusComment(t);break}case d.EOF:{this._err(T.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(T.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=h.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(wt(t))this._createEndTagToken(),this.state=h.TAG_NAME,this._stateTagName(t);else switch(t){case d.GREATER_THAN_SIGN:{this._err(T.missingEndTagName),this.state=h.DATA;break}case d.EOF:{this._err(T.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(T.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=h.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){let i=this.currentToken;switch(t){case d.SPACE:case d.LINE_FEED:case d.TABULATION:case d.FORM_FEED:{this.state=h.BEFORE_ATTRIBUTE_NAME;break}case d.SOLIDUS:{this.state=h.SELF_CLOSING_START_TAG;break}case d.GREATER_THAN_SIGN:{this.state=h.DATA,this.emitCurrentTagToken();break}case d.NULL:{this._err(T.unexpectedNullCharacter),i.tagName+=se;break}case d.EOF:{this._err(T.eofInTag),this._emitEOFToken();break}default:i.tagName+=String.fromCodePoint(Sr(t)?pa(t):t)}}_stateRcdataLessThanSign(t){t===d.SOLIDUS?this.state=h.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=h.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){wt(t)?(this.state=h.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=h.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();let i=this.currentToken;switch(i.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case d.SPACE:case d.LINE_FEED:case d.TABULATION:case d.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=h.BEFORE_ATTRIBUTE_NAME,!1;case d.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=h.SELF_CLOSING_START_TAG,!1;case d.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=h.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=h.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===d.SOLIDUS?this.state=h.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=h.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){wt(t)?(this.state=h.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=h.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=h.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case d.SOLIDUS:{this.state=h.SCRIPT_DATA_END_TAG_OPEN;break}case d.EXCLAMATION_MARK:{this.state=h.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=h.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){wt(t)?(this.state=h.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=h.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=h.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===d.HYPHEN_MINUS?(this.state=h.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=h.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===d.HYPHEN_MINUS?(this.state=h.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=h.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case d.HYPHEN_MINUS:{this.state=h.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case d.LESS_THAN_SIGN:{this.state=h.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case d.NULL:{this._err(T.unexpectedNullCharacter),this._emitChars(se);break}case d.EOF:{this._err(T.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case d.HYPHEN_MINUS:{this.state=h.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case d.LESS_THAN_SIGN:{this.state=h.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case d.NULL:{this._err(T.unexpectedNullCharacter),this.state=h.SCRIPT_DATA_ESCAPED,this._emitChars(se);break}case d.EOF:{this._err(T.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=h.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case d.HYPHEN_MINUS:{this._emitChars("-");break}case d.LESS_THAN_SIGN:{this.state=h.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case d.GREATER_THAN_SIGN:{this.state=h.SCRIPT_DATA,this._emitChars(">");break}case d.NULL:{this._err(T.unexpectedNullCharacter),this.state=h.SCRIPT_DATA_ESCAPED,this._emitChars(se);break}case d.EOF:{this._err(T.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=h.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===d.SOLIDUS?this.state=h.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:wt(t)?(this._emitChars("<"),this.state=h.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=h.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){wt(t)?(this.state=h.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=h.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=h.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(Ce.SCRIPT,!1)&&xd(this.preprocessor.peek(Ce.SCRIPT.length))){this._emitCodePoint(t);for(let i=0;i<Ce.SCRIPT.length;i++)this._emitCodePoint(this._consume());this.state=h.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=h.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case d.HYPHEN_MINUS:{this.state=h.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case d.LESS_THAN_SIGN:{this.state=h.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case d.NULL:{this._err(T.unexpectedNullCharacter),this._emitChars(se);break}case d.EOF:{this._err(T.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case d.HYPHEN_MINUS:{this.state=h.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case d.LESS_THAN_SIGN:{this.state=h.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case d.NULL:{this._err(T.unexpectedNullCharacter),this.state=h.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(se);break}case d.EOF:{this._err(T.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=h.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case d.HYPHEN_MINUS:{this._emitChars("-");break}case d.LESS_THAN_SIGN:{this.state=h.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case d.GREATER_THAN_SIGN:{this.state=h.SCRIPT_DATA,this._emitChars(">");break}case d.NULL:{this._err(T.unexpectedNullCharacter),this.state=h.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(se);break}case d.EOF:{this._err(T.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=h.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===d.SOLIDUS?(this.state=h.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=h.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(Ce.SCRIPT,!1)&&xd(this.preprocessor.peek(Ce.SCRIPT.length))){this._emitCodePoint(t);for(let i=0;i<Ce.SCRIPT.length;i++)this._emitCodePoint(this._consume());this.state=h.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=h.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case d.SPACE:case d.LINE_FEED:case d.TABULATION:case d.FORM_FEED:break;case d.SOLIDUS:case d.GREATER_THAN_SIGN:case d.EOF:{this.state=h.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case d.EQUALS_SIGN:{this._err(T.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=h.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=h.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case d.SPACE:case d.LINE_FEED:case d.TABULATION:case d.FORM_FEED:case d.SOLIDUS:case d.GREATER_THAN_SIGN:case d.EOF:{this._leaveAttrName(),this.state=h.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case d.EQUALS_SIGN:{this._leaveAttrName(),this.state=h.BEFORE_ATTRIBUTE_VALUE;break}case d.QUOTATION_MARK:case d.APOSTROPHE:case d.LESS_THAN_SIGN:{this._err(T.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case d.NULL:{this._err(T.unexpectedNullCharacter),this.currentAttr.name+=se;break}default:this.currentAttr.name+=String.fromCodePoint(Sr(t)?pa(t):t)}}_stateAfterAttributeName(t){switch(t){case d.SPACE:case d.LINE_FEED:case d.TABULATION:case d.FORM_FEED:break;case d.SOLIDUS:{this.state=h.SELF_CLOSING_START_TAG;break}case d.EQUALS_SIGN:{this.state=h.BEFORE_ATTRIBUTE_VALUE;break}case d.GREATER_THAN_SIGN:{this.state=h.DATA,this.emitCurrentTagToken();break}case d.EOF:{this._err(T.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=h.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case d.SPACE:case d.LINE_FEED:case d.TABULATION:case d.FORM_FEED:break;case d.QUOTATION_MARK:{this.state=h.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case d.APOSTROPHE:{this.state=h.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case d.GREATER_THAN_SIGN:{this._err(T.missingAttributeValue),this.state=h.DATA,this.emitCurrentTagToken();break}default:this.state=h.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case d.QUOTATION_MARK:{this.state=h.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case d.AMPERSAND:{this.returnState=h.ATTRIBUTE_VALUE_DOUBLE_QUOTED,this.state=h.CHARACTER_REFERENCE;break}case d.NULL:{this._err(T.unexpectedNullCharacter),this.currentAttr.value+=se;break}case d.EOF:{this._err(T.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case d.APOSTROPHE:{this.state=h.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case d.AMPERSAND:{this.returnState=h.ATTRIBUTE_VALUE_SINGLE_QUOTED,this.state=h.CHARACTER_REFERENCE;break}case d.NULL:{this._err(T.unexpectedNullCharacter),this.currentAttr.value+=se;break}case d.EOF:{this._err(T.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case d.SPACE:case d.LINE_FEED:case d.TABULATION:case d.FORM_FEED:{this._leaveAttrValue(),this.state=h.BEFORE_ATTRIBUTE_NAME;break}case d.AMPERSAND:{this.returnState=h.ATTRIBUTE_VALUE_UNQUOTED,this.state=h.CHARACTER_REFERENCE;break}case d.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=h.DATA,this.emitCurrentTagToken();break}case d.NULL:{this._err(T.unexpectedNullCharacter),this.currentAttr.value+=se;break}case d.QUOTATION_MARK:case d.APOSTROPHE:case d.LESS_THAN_SIGN:case d.EQUALS_SIGN:case d.GRAVE_ACCENT:{this._err(T.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case d.EOF:{this._err(T.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case d.SPACE:case d.LINE_FEED:case d.TABULATION:case d.FORM_FEED:{this._leaveAttrValue(),this.state=h.BEFORE_ATTRIBUTE_NAME;break}case d.SOLIDUS:{this._leaveAttrValue(),this.state=h.SELF_CLOSING_START_TAG;break}case d.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=h.DATA,this.emitCurrentTagToken();break}case d.EOF:{this._err(T.eofInTag),this._emitEOFToken();break}default:this._err(T.missingWhitespaceBetweenAttributes),this.state=h.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case d.GREATER_THAN_SIGN:{let i=this.currentToken;i.selfClosing=!0,this.state=h.DATA,this.emitCurrentTagToken();break}case d.EOF:{this._err(T.eofInTag),this._emitEOFToken();break}default:this._err(T.unexpectedSolidusInTag),this.state=h.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){let i=this.currentToken;switch(t){case d.GREATER_THAN_SIGN:{this.state=h.DATA,this.emitCurrentComment(i);break}case d.EOF:{this.emitCurrentComment(i),this._emitEOFToken();break}case d.NULL:{this._err(T.unexpectedNullCharacter),i.data+=se;break}default:i.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(Ce.DASH_DASH,!0)?(this._createCommentToken(Ce.DASH_DASH.length+1),this.state=h.COMMENT_START):this._consumeSequenceIfMatch(Ce.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Ce.DOCTYPE.length+1),this.state=h.DOCTYPE):this._consumeSequenceIfMatch(Ce.CDATA_START,!0)?this.inForeignNode?this.state=h.CDATA_SECTION:(this._err(T.cdataInHtmlContent),this._createCommentToken(Ce.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=h.BOGUS_COMMENT):this._ensureHibernation()||(this._err(T.incorrectlyOpenedComment),this._createCommentToken(2),this.state=h.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case d.HYPHEN_MINUS:{this.state=h.COMMENT_START_DASH;break}case d.GREATER_THAN_SIGN:{this._err(T.abruptClosingOfEmptyComment),this.state=h.DATA;let i=this.currentToken;this.emitCurrentComment(i);break}default:this.state=h.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){let i=this.currentToken;switch(t){case d.HYPHEN_MINUS:{this.state=h.COMMENT_END;break}case d.GREATER_THAN_SIGN:{this._err(T.abruptClosingOfEmptyComment),this.state=h.DATA,this.emitCurrentComment(i);break}case d.EOF:{this._err(T.eofInComment),this.emitCurrentComment(i),this._emitEOFToken();break}default:i.data+="-",this.state=h.COMMENT,this._stateComment(t)}}_stateComment(t){let i=this.currentToken;switch(t){case d.HYPHEN_MINUS:{this.state=h.COMMENT_END_DASH;break}case d.LESS_THAN_SIGN:{i.data+="<",this.state=h.COMMENT_LESS_THAN_SIGN;break}case d.NULL:{this._err(T.unexpectedNullCharacter),i.data+=se;break}case d.EOF:{this._err(T.eofInComment),this.emitCurrentComment(i),this._emitEOFToken();break}default:i.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){let i=this.currentToken;switch(t){case d.EXCLAMATION_MARK:{i.data+="!",this.state=h.COMMENT_LESS_THAN_SIGN_BANG;break}case d.LESS_THAN_SIGN:{i.data+="<";break}default:this.state=h.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===d.HYPHEN_MINUS?this.state=h.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=h.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===d.HYPHEN_MINUS?this.state=h.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=h.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==d.GREATER_THAN_SIGN&&t!==d.EOF&&this._err(T.nestedComment),this.state=h.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){let i=this.currentToken;switch(t){case d.HYPHEN_MINUS:{this.state=h.COMMENT_END;break}case d.EOF:{this._err(T.eofInComment),this.emitCurrentComment(i),this._emitEOFToken();break}default:i.data+="-",this.state=h.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){let i=this.currentToken;switch(t){case d.GREATER_THAN_SIGN:{this.state=h.DATA,this.emitCurrentComment(i);break}case d.EXCLAMATION_MARK:{this.state=h.COMMENT_END_BANG;break}case d.HYPHEN_MINUS:{i.data+="-";break}case d.EOF:{this._err(T.eofInComment),this.emitCurrentComment(i),this._emitEOFToken();break}default:i.data+="--",this.state=h.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){let i=this.currentToken;switch(t){case d.HYPHEN_MINUS:{i.data+="--!",this.state=h.COMMENT_END_DASH;break}case d.GREATER_THAN_SIGN:{this._err(T.incorrectlyClosedComment),this.state=h.DATA,this.emitCurrentComment(i);break}case d.EOF:{this._err(T.eofInComment),this.emitCurrentComment(i),this._emitEOFToken();break}default:i.data+="--!",this.state=h.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case d.SPACE:case d.LINE_FEED:case d.TABULATION:case d.FORM_FEED:{this.state=h.BEFORE_DOCTYPE_NAME;break}case d.GREATER_THAN_SIGN:{this.state=h.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case d.EOF:{this._err(T.eofInDoctype),this._createDoctypeToken(null);let i=this.currentToken;i.forceQuirks=!0,this.emitCurrentDoctype(i),this._emitEOFToken();break}default:this._err(T.missingWhitespaceBeforeDoctypeName),this.state=h.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(Sr(t))this._createDoctypeToken(String.fromCharCode(pa(t))),this.state=h.DOCTYPE_NAME;else switch(t){case d.SPACE:case d.LINE_FEED:case d.TABULATION:case d.FORM_FEED:break;case d.NULL:{this._err(T.unexpectedNullCharacter),this._createDoctypeToken(se),this.state=h.DOCTYPE_NAME;break}case d.GREATER_THAN_SIGN:{this._err(T.missingDoctypeName),this._createDoctypeToken(null);let i=this.currentToken;i.forceQuirks=!0,this.emitCurrentDoctype(i),this.state=h.DATA;break}case d.EOF:{this._err(T.eofInDoctype),this._createDoctypeToken(null);let i=this.currentToken;i.forceQuirks=!0,this.emitCurrentDoctype(i),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=h.DOCTYPE_NAME}}_stateDoctypeName(t){let i=this.currentToken;switch(t){case d.SPACE:case d.LINE_FEED:case d.TABULATION:case d.FORM_FEED:{this.state=h.AFTER_DOCTYPE_NAME;break}case d.GREATER_THAN_SIGN:{this.state=h.DATA,this.emitCurrentDoctype(i);break}case d.NULL:{this._err(T.unexpectedNullCharacter),i.name+=se;break}case d.EOF:{this._err(T.eofInDoctype),i.forceQuirks=!0,this.emitCurrentDoctype(i),this._emitEOFToken();break}default:i.name+=String.fromCodePoint(Sr(t)?pa(t):t)}}_stateAfterDoctypeName(t){let i=this.currentToken;switch(t){case d.SPACE:case d.LINE_FEED:case d.TABULATION:case d.FORM_FEED:break;case d.GREATER_THAN_SIGN:{this.state=h.DATA,this.emitCurrentDoctype(i);break}case d.EOF:{this._err(T.eofInDoctype),i.forceQuirks=!0,this.emitCurrentDoctype(i),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Ce.PUBLIC,!1)?this.state=h.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Ce.SYSTEM,!1)?this.state=h.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(T.invalidCharacterSequenceAfterDoctypeName),i.forceQuirks=!0,this.state=h.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){let i=this.currentToken;switch(t){case d.SPACE:case d.LINE_FEED:case d.TABULATION:case d.FORM_FEED:{this.state=h.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case d.QUOTATION_MARK:{this._err(T.missingWhitespaceAfterDoctypePublicKeyword),i.publicId="",this.state=h.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case d.APOSTROPHE:{this._err(T.missingWhitespaceAfterDoctypePublicKeyword),i.publicId="",this.state=h.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case d.GREATER_THAN_SIGN:{this._err(T.missingDoctypePublicIdentifier),i.forceQuirks=!0,this.state=h.DATA,this.emitCurrentDoctype(i);break}case d.EOF:{this._err(T.eofInDoctype),i.forceQuirks=!0,this.emitCurrentDoctype(i),this._emitEOFToken();break}default:this._err(T.missingQuoteBeforeDoctypePublicIdentifier),i.forceQuirks=!0,this.state=h.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){let i=this.currentToken;switch(t){case d.SPACE:case d.LINE_FEED:case d.TABULATION:case d.FORM_FEED:break;case d.QUOTATION_MARK:{i.publicId="",this.state=h.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case d.APOSTROPHE:{i.publicId="",this.state=h.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case d.GREATER_THAN_SIGN:{this._err(T.missingDoctypePublicIdentifier),i.forceQuirks=!0,this.state=h.DATA,this.emitCurrentDoctype(i);break}case d.EOF:{this._err(T.eofInDoctype),i.forceQuirks=!0,this.emitCurrentDoctype(i),this._emitEOFToken();break}default:this._err(T.missingQuoteBeforeDoctypePublicIdentifier),i.forceQuirks=!0,this.state=h.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){let i=this.currentToken;switch(t){case d.QUOTATION_MARK:{this.state=h.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case d.NULL:{this._err(T.unexpectedNullCharacter),i.publicId+=se;break}case d.GREATER_THAN_SIGN:{this._err(T.abruptDoctypePublicIdentifier),i.forceQuirks=!0,this.emitCurrentDoctype(i),this.state=h.DATA;break}case d.EOF:{this._err(T.eofInDoctype),i.forceQuirks=!0,this.emitCurrentDoctype(i),this._emitEOFToken();break}default:i.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){let i=this.currentToken;switch(t){case d.APOSTROPHE:{this.state=h.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case d.NULL:{this._err(T.unexpectedNullCharacter),i.publicId+=se;break}case d.GREATER_THAN_SIGN:{this._err(T.abruptDoctypePublicIdentifier),i.forceQuirks=!0,this.emitCurrentDoctype(i),this.state=h.DATA;break}case d.EOF:{this._err(T.eofInDoctype),i.forceQuirks=!0,this.emitCurrentDoctype(i),this._emitEOFToken();break}default:i.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){let i=this.currentToken;switch(t){case d.SPACE:case d.LINE_FEED:case d.TABULATION:case d.FORM_FEED:{this.state=h.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case d.GREATER_THAN_SIGN:{this.state=h.DATA,this.emitCurrentDoctype(i);break}case d.QUOTATION_MARK:{this._err(T.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),i.systemId="",this.state=h.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case d.APOSTROPHE:{this._err(T.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),i.systemId="",this.state=h.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case d.EOF:{this._err(T.eofInDoctype),i.forceQuirks=!0,this.emitCurrentDoctype(i),this._emitEOFToken();break}default:this._err(T.missingQuoteBeforeDoctypeSystemIdentifier),i.forceQuirks=!0,this.state=h.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){let i=this.currentToken;switch(t){case d.SPACE:case d.LINE_FEED:case d.TABULATION:case d.FORM_FEED:break;case d.GREATER_THAN_SIGN:{this.emitCurrentDoctype(i),this.state=h.DATA;break}case d.QUOTATION_MARK:{i.systemId="",this.state=h.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case d.APOSTROPHE:{i.systemId="",this.state=h.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case d.EOF:{this._err(T.eofInDoctype),i.forceQuirks=!0,this.emitCurrentDoctype(i),this._emitEOFToken();break}default:this._err(T.missingQuoteBeforeDoctypeSystemIdentifier),i.forceQuirks=!0,this.state=h.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){let i=this.currentToken;switch(t){case d.SPACE:case d.LINE_FEED:case d.TABULATION:case d.FORM_FEED:{this.state=h.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case d.QUOTATION_MARK:{this._err(T.missingWhitespaceAfterDoctypeSystemKeyword),i.systemId="",this.state=h.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case d.APOSTROPHE:{this._err(T.missingWhitespaceAfterDoctypeSystemKeyword),i.systemId="",this.state=h.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case d.GREATER_THAN_SIGN:{this._err(T.missingDoctypeSystemIdentifier),i.forceQuirks=!0,this.state=h.DATA,this.emitCurrentDoctype(i);break}case d.EOF:{this._err(T.eofInDoctype),i.forceQuirks=!0,this.emitCurrentDoctype(i),this._emitEOFToken();break}default:this._err(T.missingQuoteBeforeDoctypeSystemIdentifier),i.forceQuirks=!0,this.state=h.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){let i=this.currentToken;switch(t){case d.SPACE:case d.LINE_FEED:case d.TABULATION:case d.FORM_FEED:break;case d.QUOTATION_MARK:{i.systemId="",this.state=h.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case d.APOSTROPHE:{i.systemId="",this.state=h.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case d.GREATER_THAN_SIGN:{this._err(T.missingDoctypeSystemIdentifier),i.forceQuirks=!0,this.state=h.DATA,this.emitCurrentDoctype(i);break}case d.EOF:{this._err(T.eofInDoctype),i.forceQuirks=!0,this.emitCurrentDoctype(i),this._emitEOFToken();break}default:this._err(T.missingQuoteBeforeDoctypeSystemIdentifier),i.forceQuirks=!0,this.state=h.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){let i=this.currentToken;switch(t){case d.QUOTATION_MARK:{this.state=h.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case d.NULL:{this._err(T.unexpectedNullCharacter),i.systemId+=se;break}case d.GREATER_THAN_SIGN:{this._err(T.abruptDoctypeSystemIdentifier),i.forceQuirks=!0,this.emitCurrentDoctype(i),this.state=h.DATA;break}case d.EOF:{this._err(T.eofInDoctype),i.forceQuirks=!0,this.emitCurrentDoctype(i),this._emitEOFToken();break}default:i.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){let i=this.currentToken;switch(t){case d.APOSTROPHE:{this.state=h.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case d.NULL:{this._err(T.unexpectedNullCharacter),i.systemId+=se;break}case d.GREATER_THAN_SIGN:{this._err(T.abruptDoctypeSystemIdentifier),i.forceQuirks=!0,this.emitCurrentDoctype(i),this.state=h.DATA;break}case d.EOF:{this._err(T.eofInDoctype),i.forceQuirks=!0,this.emitCurrentDoctype(i),this._emitEOFToken();break}default:i.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){let i=this.currentToken;switch(t){case d.SPACE:case d.LINE_FEED:case d.TABULATION:case d.FORM_FEED:break;case d.GREATER_THAN_SIGN:{this.emitCurrentDoctype(i),this.state=h.DATA;break}case d.EOF:{this._err(T.eofInDoctype),i.forceQuirks=!0,this.emitCurrentDoctype(i),this._emitEOFToken();break}default:this._err(T.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=h.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){let i=this.currentToken;switch(t){case d.GREATER_THAN_SIGN:{this.emitCurrentDoctype(i),this.state=h.DATA;break}case d.NULL:{this._err(T.unexpectedNullCharacter);break}case d.EOF:{this.emitCurrentDoctype(i),this._emitEOFToken();break}default:}}_stateCdataSection(t){switch(t){case d.RIGHT_SQUARE_BRACKET:{this.state=h.CDATA_SECTION_BRACKET;break}case d.EOF:{this._err(T.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===d.RIGHT_SQUARE_BRACKET?this.state=h.CDATA_SECTION_END:(this._emitChars("]"),this.state=h.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case d.GREATER_THAN_SIGN:{this.state=h.DATA;break}case d.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=h.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(t){t===d.NUMBER_SIGN?this.state=h.NUMERIC_CHARACTER_REFERENCE:Vo(t)?(this.state=h.NAMED_CHARACTER_REFERENCE,this._stateNamedCharacterReference(t)):(this._flushCodePointConsumedAsCharacterReference(d.AMPERSAND),this._reconsumeInState(this.returnState,t))}_stateNamedCharacterReference(t){let i=this._matchNamedCharacterReference(t);if(!this._ensureHibernation())if(i){for(let r=0;r<i.length;r++)this._flushCodePointConsumedAsCharacterReference(i[r]);this.state=this.returnState}else this._flushCodePointConsumedAsCharacterReference(d.AMPERSAND),this.state=h.AMBIGUOUS_AMPERSAND}_stateAmbiguousAmpersand(t){Vo(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===d.SEMICOLON&&this._err(T.unknownNamedCharacterReference),this._reconsumeInState(this.returnState,t))}_stateNumericCharacterReference(t){this.charRefCode=0,t===d.LATIN_SMALL_X||t===d.LATIN_CAPITAL_X?this.state=h.HEXADEMICAL_CHARACTER_REFERENCE_START:Ir(t)?(this.state=h.DECIMAL_CHARACTER_REFERENCE,this._stateDecimalCharacterReference(t)):(this._err(T.absenceOfDigitsInNumericCharacterReference),this._flushCodePointConsumedAsCharacterReference(d.AMPERSAND),this._flushCodePointConsumedAsCharacterReference(d.NUMBER_SIGN),this._reconsumeInState(this.returnState,t))}_stateHexademicalCharacterReferenceStart(t){Qm(t)?(this.state=h.HEXADEMICAL_CHARACTER_REFERENCE,this._stateHexademicalCharacterReference(t)):(this._err(T.absenceOfDigitsInNumericCharacterReference),this._flushCodePointConsumedAsCharacterReference(d.AMPERSAND),this._flushCodePointConsumedAsCharacterReference(d.NUMBER_SIGN),this._unconsume(2),this.state=this.returnState)}_stateHexademicalCharacterReference(t){qd(t)?this.charRefCode=this.charRefCode*16+t-55:Ad(t)?this.charRefCode=this.charRefCode*16+t-87:Ir(t)?this.charRefCode=this.charRefCode*16+t-48:t===d.SEMICOLON?this.state=h.NUMERIC_CHARACTER_REFERENCE_END:(this._err(T.missingSemicolonAfterCharacterReference),this.state=h.NUMERIC_CHARACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd(t))}_stateDecimalCharacterReference(t){Ir(t)?this.charRefCode=this.charRefCode*10+t-48:t===d.SEMICOLON?this.state=h.NUMERIC_CHARACTER_REFERENCE_END:(this._err(T.missingSemicolonAfterCharacterReference),this.state=h.NUMERIC_CHARACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd(t))}_stateNumericCharacterReferenceEnd(t){if(this.charRefCode===d.NULL)this._err(T.nullCharacterReference),this.charRefCode=d.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(T.characterReferenceOutsideUnicodeRange),this.charRefCode=d.REPLACEMENT_CHARACTER;else if(ca(this.charRefCode))this._err(T.surrogateCharacterReference),this.charRefCode=d.REPLACEMENT_CHARACTER;else if(da(this.charRefCode))this._err(T.noncharacterCharacterReference);else if(la(this.charRefCode)||this.charRefCode===d.CARRIAGE_RETURN){this._err(T.controlCharacterReference);let i=Xm.get(this.charRefCode);i!==void 0&&(this.charRefCode=i)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,t)}};var Cd=new Set([a.DD,a.DT,a.LI,a.OPTGROUP,a.OPTION,a.P,a.RB,a.RP,a.RT,a.RTC]),yd=new Set([...Cd,a.CAPTION,a.COLGROUP,a.TBODY,a.TD,a.TFOOT,a.TH,a.THEAD,a.TR]),fa=new Map([[a.APPLET,q.HTML],[a.CAPTION,q.HTML],[a.HTML,q.HTML],[a.MARQUEE,q.HTML],[a.OBJECT,q.HTML],[a.TABLE,q.HTML],[a.TD,q.HTML],[a.TEMPLATE,q.HTML],[a.TH,q.HTML],[a.ANNOTATION_XML,q.MATHML],[a.MI,q.MATHML],[a.MN,q.MATHML],[a.MO,q.MATHML],[a.MS,q.MATHML],[a.MTEXT,q.MATHML],[a.DESC,q.SVG],[a.FOREIGN_OBJECT,q.SVG],[a.TITLE,q.SVG]]),Jm=[a.H1,a.H2,a.H3,a.H4,a.H5,a.H6],Zm=[a.TR,a.TEMPLATE,a.HTML],eb=[a.TBODY,a.TFOOT,a.THEAD,a.TEMPLATE,a.HTML],tb=[a.TABLE,a.TEMPLATE,a.HTML],ib=[a.TD,a.TH],ma=class{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,i,r){this.treeAdapter=i,this.handler=r,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)===q.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,i){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=i,this.currentTagId=i,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,i,!0)}pop(){let t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,i){let r=this._indexOf(t);this.items[r]=i,r===this.stackTop&&(this.current=i)}insertAfter(t,i,r){let s=this._indexOf(t)+1;this.items.splice(s,0,i),this.tagIDs.splice(s,0,r),this.stackTop++,s===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,s===this.stackTop)}popUntilTagNamePopped(t){let i=this.stackTop+1;do i=this.tagIDs.lastIndexOf(t,i-1);while(i>0&&this.treeAdapter.getNamespaceURI(this.items[i])!==q.HTML);this.shortenToLength(i<0?0:i)}shortenToLength(t){for(;this.stackTop>=t;){let i=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(i,this.stackTop<t)}}popUntilElementPopped(t){let i=this._indexOf(t);this.shortenToLength(i<0?0:i)}popUntilPopped(t,i){let r=this._indexOfTagNames(t,i);this.shortenToLength(r<0?0:r)}popUntilNumberedHeaderPopped(){this.popUntilPopped(Jm,q.HTML)}popUntilTableCellPopped(){this.popUntilPopped(ib,q.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,i){for(let r=this.stackTop;r>=0;r--)if(t.includes(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===i)return r;return-1}clearBackTo(t,i){let r=this._indexOfTagNames(t,i);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(tb,q.HTML)}clearBackToTableBodyContext(){this.clearBackTo(eb,q.HTML)}clearBackToTableRowContext(){this.clearBackTo(Zm,q.HTML)}remove(t){let i=this._indexOf(t);i>=0&&(i===this.stackTop?this.pop():(this.items.splice(i,1),this.tagIDs.splice(i,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 i=this._indexOf(t)-1;return i>=0?this.items[i]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===a.HTML}hasInScope(t){for(let i=this.stackTop;i>=0;i--){let r=this.tagIDs[i],s=this.treeAdapter.getNamespaceURI(this.items[i]);if(r===t&&s===q.HTML)return!0;if(fa.get(r)===s)return!1}return!0}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){let i=this.tagIDs[t],r=this.treeAdapter.getNamespaceURI(this.items[t]);if(Cr(i)&&r===q.HTML)return!0;if(fa.get(i)===r)return!1}return!0}hasInListItemScope(t){for(let i=this.stackTop;i>=0;i--){let r=this.tagIDs[i],s=this.treeAdapter.getNamespaceURI(this.items[i]);if(r===t&&s===q.HTML)return!0;if((r===a.UL||r===a.OL)&&s===q.HTML||fa.get(r)===s)return!1}return!0}hasInButtonScope(t){for(let i=this.stackTop;i>=0;i--){let r=this.tagIDs[i],s=this.treeAdapter.getNamespaceURI(this.items[i]);if(r===t&&s===q.HTML)return!0;if(r===a.BUTTON&&s===q.HTML||fa.get(r)===s)return!1}return!0}hasInTableScope(t){for(let i=this.stackTop;i>=0;i--){let r=this.tagIDs[i];if(this.treeAdapter.getNamespaceURI(this.items[i])===q.HTML){if(r===t)return!0;if(r===a.TABLE||r===a.TEMPLATE||r===a.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--){let i=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===q.HTML){if(i===a.TBODY||i===a.THEAD||i===a.TFOOT)return!0;if(i===a.TABLE||i===a.HTML)return!1}}return!0}hasInSelectScope(t){for(let i=this.stackTop;i>=0;i--){let r=this.tagIDs[i];if(this.treeAdapter.getNamespaceURI(this.items[i])===q.HTML){if(r===t)return!0;if(r!==a.OPTION&&r!==a.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;Cd.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;yd.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&yd.has(this.currentTagId);)this.pop()}};var Ue;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Ue=Ue||(Ue={}));var Nd={type:Ue.Marker},ba=class{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,i){let r=[],s=i.length,n=this.treeAdapter.getTagName(t),o=this.treeAdapter.getNamespaceURI(t);for(let c=0;c<this.entries.length;c++){let l=this.entries[c];if(l.type===Ue.Marker)break;let{element:p}=l;if(this.treeAdapter.getTagName(p)===n&&this.treeAdapter.getNamespaceURI(p)===o){let b=this.treeAdapter.getAttrList(p);b.length===s&&r.push({idx:c,attrs:b})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<3)return;let i=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,i);if(r.length<3)return;let s=new Map(i.map(o=>[o.name,o.value])),n=0;for(let o=0;o<r.length;o++){let c=r[o];c.attrs.every(l=>s.get(l.name)===l.value)&&(n+=1,n>=3&&this.entries.splice(c.idx,1))}}insertMarker(){this.entries.unshift(Nd)}pushElement(t,i){this._ensureNoahArkCondition(t),this.entries.unshift({type:Ue.Element,element:t,token:i})}insertElementAfterBookmark(t,i){let r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:Ue.Element,element:t,token:i})}removeEntry(t){let i=this.entries.indexOf(t);i>=0&&this.entries.splice(i,1)}clearToLastMarker(){let t=this.entries.indexOf(Nd);t>=0?this.entries.splice(0,t+1):this.entries.length=0}getElementEntryInScopeWithTagName(t){let i=this.entries.find(r=>r.type===Ue.Marker||this.treeAdapter.getTagName(r.element)===t);return i&&i.type===Ue.Element?i:null}getElementEntry(t){return this.entries.find(i=>i.type===Ue.Element&&i.element===t)}};function Sd(e){return{nodeName:"#text",value:e,parentNode:null}}var et={createDocument(){return{nodeName:"#document",mode:ge.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,i){return{nodeName:e,tagName:e,attrs:i,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,i){let r=e.childNodes.indexOf(i);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,i,r){let s=e.childNodes.find(n=>n.nodeName==="#documentType");if(s)s.name=t,s.publicId=i,s.systemId=r;else{let n={nodeName:"#documentType",name:t,publicId:i,systemId:r,parentNode:null};et.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 i=e.childNodes[e.childNodes.length-1];if(et.isTextNode(i)){i.value+=t;return}}et.appendChild(e,Sd(t))},insertTextBefore(e,t,i){let r=e.childNodes[e.childNodes.indexOf(i)-1];r&&et.isTextNode(r)?r.value+=t:et.insertBefore(e,Sd(t),i)},adoptAttributes(e,t){let i=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)i.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation=D(D({},e.sourceCodeLocation),t)}};var Rd="html",rb="about:legacy-compat",sb="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Ld=["+//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//"],ab=[...Ld,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],nb=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Od=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],ob=[...Od,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Id(e,t){return t.some(i=>e.startsWith(i))}function Dd(e){return e.name===Rd&&e.publicId===null&&(e.systemId===null||e.systemId===rb)}function wd(e){if(e.name!==Rd)return ge.QUIRKS;let{systemId:t}=e;if(t&&t.toLowerCase()===sb)return ge.QUIRKS;let{publicId:i}=e;if(i!==null){if(i=i.toLowerCase(),nb.has(i))return ge.QUIRKS;let r=t===null?ab:Ld;if(Id(i,r))return ge.QUIRKS;if(r=t===null?Od:ob,Id(i,r))return ge.LIMITED_QUIRKS}return ge.NO_QUIRKS}var Ta={};Fe(Ta,{SVG_TAG_NAMES_ADJUSTMENT_MAP:()=>Pd,adjustTokenMathMLAttrs:()=>Ea,adjustTokenSVGAttrs:()=>ga,adjustTokenSVGTagName:()=>Go,adjustTokenXMLAttrs:()=>Lr,causesExit:()=>Yo,isIntegrationPoint:()=>Wo});var kd={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},cb="definitionurl",lb="definitionURL",db=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])),hb=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:q.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:q.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:q.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:q.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:q.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:q.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:q.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:q.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:q.XML}],["xml:space",{prefix:"xml",name:"space",namespace:q.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:q.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:q.XMLNS}]]),Pd=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])),pb=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 Yo(e){let t=e.tagID;return t===a.FONT&&e.attrs.some(({name:r})=>r===Ve.COLOR||r===Ve.SIZE||r===Ve.FACE)||pb.has(t)}function Ea(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===cb){e.attrs[t].name=lb;break}}function ga(e){for(let t=0;t<e.attrs.length;t++){let i=db.get(e.attrs[t].name);i!=null&&(e.attrs[t].name=i)}}function Lr(e){for(let t=0;t<e.attrs.length;t++){let i=hb.get(e.attrs[t].name);i&&(e.attrs[t].prefix=i.prefix,e.attrs[t].name=i.name,e.attrs[t].namespace=i.namespace)}}function Go(e){let t=Pd.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=Dt(e.tagName))}function fb(e,t){return t===q.MATHML&&(e===a.MI||e===a.MO||e===a.MN||e===a.MS||e===a.MTEXT)}function mb(e,t,i){if(t===q.MATHML&&e===a.ANNOTATION_XML){for(let r=0;r<i.length;r++)if(i[r].name===Ve.ENCODING){let s=i[r].value.toLowerCase();return s===kd.TEXT_HTML||s===kd.APPLICATION_XML}}return t===q.SVG&&(e===a.FOREIGN_OBJECT||e===a.DESC||e===a.TITLE)}function Wo(e,t,i,r){return(!r||r===q.HTML)&&mb(e,t,i)||(!r||r===q.MATHML)&&fb(e,t)}var bb="hidden",Eb=8,gb=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 Tb={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Ud=new Set([a.TABLE,a.TBODY,a.TFOOT,a.THEAD,a.TR]),Md={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:et,onParseError:null},Di=class{constructor(t,i,r=null,s=null){this.fragmentContext=r,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=D(D({},Md),t),this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=i!=null?i:this.treeAdapter.createDocument(),this.tokenizer=new Rr(this.options,this),this.activeFormattingElements=new ba(this.treeAdapter),this.fragmentContextID=r?Dt(this.treeAdapter.getTagName(r)):a.UNKNOWN,this._setContextModes(r!=null?r:this.document,this.fragmentContextID),this.openElements=new ma(this.document,this.treeAdapter,this)}static parse(t,i){let r=new this(i);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,i){let r=D(D({},Md),i);t!=null||(t=r.treeAdapter.createElement(E.TEMPLATE,q.HTML,[]));let s=r.treeAdapter.createElement("documentmock",q.HTML,[]),n=new this(r,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),i=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,i),i}_err(t,i,r){var s;if(!this.onParseError)return;let n=(s=t.location)!==null&&s!==void 0?s:Tb,o={code:i,startLine:n.startLine,startCol:n.startCol,startOffset:n.startOffset,endLine:r?n.startLine:n.endLine,endCol:r?n.startCol:n.endCol,endOffset:r?n.startOffset:n.endOffset};this.onParseError(o)}onItemPush(t,i,r){var s,n;(n=(s=this.treeAdapter).onItemPush)===null||n===void 0||n.call(s,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,i)}onItemPop(t,i){var r,s;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(s=(r=this.treeAdapter).onItemPop)===null||s===void 0||s.call(r,t,this.openElements.current),i){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,i){let r=t===this.document||this.treeAdapter.getNamespaceURI(t)===q.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&!this._isIntegrationPoint(i,t)}_switchToTextParsing(t,i){this._insertElement(t,q.HTML),this.tokenizer.state=i,this.originalInsertionMode=this.insertionMode,this.insertionMode=f.TEXT}switchToPlaintextParsing(){this.insertionMode=f.TEXT,this.originalInsertionMode=f.IN_BODY,this.tokenizer.state=Te.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)===E.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==q.HTML))switch(this.fragmentContextID){case a.TITLE:case a.TEXTAREA:{this.tokenizer.state=Te.RCDATA;break}case a.STYLE:case a.XMP:case a.IFRAME:case a.NOEMBED:case a.NOFRAMES:case a.NOSCRIPT:{this.tokenizer.state=Te.RAWTEXT;break}case a.SCRIPT:{this.tokenizer.state=Te.SCRIPT_DATA;break}case a.PLAINTEXT:{this.tokenizer.state=Te.PLAINTEXT;break}default:}}_setDocumentType(t){let i=t.name||"",r=t.publicId||"",s=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,i,r,s),t.location){let o=this.treeAdapter.getChildNodes(this.document).find(c=>this.treeAdapter.isDocumentTypeNode(c));o&&this.treeAdapter.setNodeSourceCodeLocation(o,t.location)}}_attachElementToTree(t,i){if(this.options.sourceCodeLocationInfo){let r=i&&ie(D({},i),{startTag:i});this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{let r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r,t)}}_appendElement(t,i){let r=this.treeAdapter.createElement(t.tagName,i,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,i){let r=this.treeAdapter.createElement(t.tagName,i,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,i){let r=this.treeAdapter.createElement(t,q.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,i)}_insertTemplate(t){let i=this.treeAdapter.createElement(t.tagName,q.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(i,r),this._attachElementToTree(i,t.location),this.openElements.push(i,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){let t=this.treeAdapter.createElement(E.HTML,q.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,a.HTML)}_appendCommentNode(t,i){let r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(i,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let i,r;if(this._shouldFosterParentOnInsertion()?({parent:i,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(i,t.chars,r):this.treeAdapter.insertText(i,t.chars)):(i=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(i,t.chars)),!t.location)return;let s=this.treeAdapter.getChildNodes(i),n=r?s.lastIndexOf(r):s.length,o=s[n-1];if(this.treeAdapter.getNodeSourceCodeLocation(o)){let{endLine:l,endCol:p,endOffset:b}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(o,{endLine:l,endCol:p,endOffset:b})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(o,t.location)}_adoptNodes(t,i){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(i,r)}_setEndLocation(t,i){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&i.location){let r=i.location,s=this.treeAdapter.getTagName(t),n=i.type===$.END_TAG&&s===i.tagName?{endTag:D({},r),endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,n)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let i,r;return this.openElements.stackTop===0&&this.fragmentContext?(i=this.fragmentContext,r=this.fragmentContextID):{current:i,currentTagId:r}=this.openElements,t.tagID===a.SVG&&this.treeAdapter.getTagName(i)===E.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(i)===q.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===a.MGLYPH||t.tagID===a.MALIGNMARK)&&!this._isIntegrationPoint(r,i,q.HTML)}_processToken(t){switch(t.type){case $.CHARACTER:{this.onCharacter(t);break}case $.NULL_CHARACTER:{this.onNullCharacter(t);break}case $.COMMENT:{this.onComment(t);break}case $.DOCTYPE:{this.onDoctype(t);break}case $.START_TAG:{this._processStartTag(t);break}case $.END_TAG:{this.onEndTag(t);break}case $.EOF:{this.onEof(t);break}case $.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,i,r){let s=this.treeAdapter.getNamespaceURI(i),n=this.treeAdapter.getAttrList(i);return Wo(t,s,n,r)}_reconstructActiveFormattingElements(){let t=this.activeFormattingElements.entries.length;if(t){let i=this.activeFormattingElements.entries.findIndex(s=>s.type===Ue.Marker||this.openElements.contains(s.element)),r=i<0?t-1:i-1;for(let s=r;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 i=t-1;i>0;i--){let r=this.openElements.tagIDs[i];if(r===a.TEMPLATE)break;if(r===a.TABLE){this.insertionMode=f.IN_SELECT_IN_TABLE;return}}this.insertionMode=f.IN_SELECT}_isElementCausesFosterParenting(t){return Ud.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){let i=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case a.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(i)===q.HTML)return{parent:this.treeAdapter.getTemplateContent(i),beforeElement:null};break}case a.TABLE:{let r=this.treeAdapter.getParentNode(i);return r?{parent:r,beforeElement:i}:{parent:this.openElements.items[t-1],beforeElement:null}}default:}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){let i=this._findFosterParentingLocation();i.beforeElement?this.treeAdapter.insertBefore(i.parent,t,i.beforeElement):this.treeAdapter.appendChild(i.parent,t)}_isSpecialElement(t,i){let r=this.treeAdapter.getNamespaceURI(t);return Fo[r].has(i)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){KE(this,t);return}switch(this.insertionMode){case f.INITIAL:{Or(this,t);break}case f.BEFORE_HTML:{wr(this,t);break}case f.BEFORE_HEAD:{kr(this,t);break}case f.IN_HEAD:{Pr(this,t);break}case f.IN_HEAD_NO_SCRIPT:{Mr(this,t);break}case f.AFTER_HEAD:{Hr(this,t);break}case f.IN_BODY:case f.IN_CAPTION:case f.IN_CELL:case f.IN_TEMPLATE:{$d(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:{jo(this,t);break}case f.IN_TABLE_TEXT:{Xd(this,t);break}case f.IN_COLUMN_GROUP:{xa(this,t);break}case f.AFTER_BODY:{qa(this,t);break}case f.AFTER_AFTER_BODY:{_a(this,t);break}default:}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){XE(this,t);return}switch(this.insertionMode){case f.INITIAL:{Or(this,t);break}case f.BEFORE_HTML:{wr(this,t);break}case f.BEFORE_HEAD:{kr(this,t);break}case f.IN_HEAD:{Pr(this,t);break}case f.IN_HEAD_NO_SCRIPT:{Mr(this,t);break}case f.AFTER_HEAD:{Hr(this,t);break}case f.TEXT:{this._insertCharacters(t);break}case f.IN_TABLE:case f.IN_TABLE_BODY:case f.IN_ROW:{jo(this,t);break}case f.IN_COLUMN_GROUP:{xa(this,t);break}case f.AFTER_BODY:{qa(this,t);break}case f.AFTER_AFTER_BODY:{_a(this,t);break}default:}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Xo(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:{Xo(this,t);break}case f.IN_TABLE_TEXT:{Dr(this,t);break}case f.AFTER_BODY:{Cb(this,t);break}case f.AFTER_AFTER_BODY:case f.AFTER_AFTER_FRAMESET:{Nb(this,t);break}default:}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case f.INITIAL:{Sb(this,t);break}case f.BEFORE_HEAD:case f.IN_HEAD:case f.IN_HEAD_NO_SCRIPT:case f.AFTER_HEAD:{this._err(t,T.misplacedDoctype);break}case f.IN_TABLE_TEXT:{Dr(this,t);break}default:}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,T.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?QE(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case f.INITIAL:{Or(this,t);break}case f.BEFORE_HTML:{Ib(this,t);break}case f.BEFORE_HEAD:{Lb(this,t);break}case f.IN_HEAD:{Ye(this,t);break}case f.IN_HEAD_NO_SCRIPT:{wb(this,t);break}case f.AFTER_HEAD:{Pb(this,t);break}case f.IN_BODY:{_e(this,t);break}case f.IN_TABLE:{wi(this,t);break}case f.IN_TABLE_TEXT:{Dr(this,t);break}case f.IN_CAPTION:{OE(this,t);break}case f.IN_COLUMN_GROUP:{Jo(this,t);break}case f.IN_TABLE_BODY:{ya(this,t);break}case f.IN_ROW:{Ca(this,t);break}case f.IN_CELL:{kE(this,t);break}case f.IN_SELECT:{zd(this,t);break}case f.IN_SELECT_IN_TABLE:{ME(this,t);break}case f.IN_TEMPLATE:{BE(this,t);break}case f.AFTER_BODY:{FE(this,t);break}case f.IN_FRAMESET:{$E(this,t);break}case f.AFTER_FRAMESET:{YE(this,t);break}case f.AFTER_AFTER_BODY:{WE(this,t);break}case f.AFTER_AFTER_FRAMESET:{jE(this,t);break}default:}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?zE(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case f.INITIAL:{Or(this,t);break}case f.BEFORE_HTML:{Rb(this,t);break}case f.BEFORE_HEAD:{Ob(this,t);break}case f.IN_HEAD:{Db(this,t);break}case f.IN_HEAD_NO_SCRIPT:{kb(this,t);break}case f.AFTER_HEAD:{Mb(this,t);break}case f.IN_BODY:{va(this,t);break}case f.TEXT:{qE(this,t);break}case f.IN_TABLE:{Br(this,t);break}case f.IN_TABLE_TEXT:{Dr(this,t);break}case f.IN_CAPTION:{DE(this,t);break}case f.IN_COLUMN_GROUP:{wE(this,t);break}case f.IN_TABLE_BODY:{Ko(this,t);break}case f.IN_ROW:{Qd(this,t);break}case f.IN_CELL:{PE(this,t);break}case f.IN_SELECT:{Jd(this,t);break}case f.IN_SELECT_IN_TABLE:{HE(this,t);break}case f.IN_TEMPLATE:{UE(this,t);break}case f.AFTER_BODY:{eh(this,t);break}case f.IN_FRAMESET:{VE(this,t);break}case f.AFTER_FRAMESET:{GE(this,t);break}case f.AFTER_AFTER_BODY:{_a(this,t);break}default:}}onEof(t){switch(this.insertionMode){case f.INITIAL:{Or(this,t);break}case f.BEFORE_HTML:{wr(this,t);break}case f.BEFORE_HEAD:{kr(this,t);break}case f.IN_HEAD:{Pr(this,t);break}case f.IN_HEAD_NO_SCRIPT:{Mr(this,t);break}case f.AFTER_HEAD:{Hr(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:{Wd(this,t);break}case f.TEXT:{AE(this,t);break}case f.IN_TABLE_TEXT:{Dr(this,t);break}case f.IN_TEMPLATE:{Zd(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:{zo(this,t);break}default:}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===d.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:{Fd(this,t);break}case f.IN_TABLE:case f.IN_TABLE_BODY:case f.IN_ROW:{jo(this,t);break}case f.IN_TABLE_TEXT:{jd(this,t);break}default:}}};function _b(e,t){let i=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return i?e.openElements.contains(i.element)?e.openElements.hasInScope(t.tagID)||(i=null):(e.activeFormattingElements.removeEntry(i),i=null):Gd(e,t),i}function xb(e,t){let i=null,r=e.openElements.stackTop;for(;r>=0;r--){let s=e.openElements.items[r];if(s===t.element)break;e._isSpecialElement(s,e.openElements.tagIDs[r])&&(i=s)}return i||(e.openElements.shortenToLength(r<0?0:r),e.activeFormattingElements.removeEntry(t)),i}function qb(e,t,i){let r=t,s=e.openElements.getCommonAncestor(t);for(let n=0,o=s;o!==i;n++,o=s){s=e.openElements.getCommonAncestor(o);let c=e.activeFormattingElements.getElementEntry(o),l=c&&n>=gb;!c||l?(l&&e.activeFormattingElements.removeEntry(c),e.openElements.remove(o)):(o=Ab(e,c),r===t&&(e.activeFormattingElements.bookmark=c),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(o,r),r=o)}return r}function Ab(e,t){let i=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,i,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function vb(e,t,i){let r=e.treeAdapter.getTagName(t),s=Dt(r);if(e._isElementCausesFosterParenting(s))e._fosterParentElement(i);else{let n=e.treeAdapter.getNamespaceURI(t);s===a.TEMPLATE&&n===q.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,i)}}function yb(e,t,i){let r=e.treeAdapter.getNamespaceURI(i.element),{token:s}=i,n=e.treeAdapter.createElement(s.tagName,r,s.attrs);e._adoptNodes(t,n),e.treeAdapter.appendChild(t,n),e.activeFormattingElements.insertElementAfterBookmark(n,s),e.activeFormattingElements.removeEntry(i),e.openElements.remove(i.element),e.openElements.insertAfter(t,n,s.tagID)}function Qo(e,t){for(let i=0;i<Eb;i++){let r=_b(e,t);if(!r)break;let s=xb(e,r);if(!s)break;e.activeFormattingElements.bookmark=r;let n=qb(e,s,r.element),o=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(n),o&&vb(e,o,n),yb(e,s,r)}}function Xo(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function Cb(e,t){e._appendCommentNode(t,e.openElements.items[0])}function Nb(e,t){e._appendCommentNode(t,e.document)}function zo(e,t){if(e.stopped=!0,t.location){let i=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=i;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){let r=e.openElements.items[0],s=e.treeAdapter.getNodeSourceCodeLocation(r);if(s&&!s.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){let n=e.openElements.items[1],o=e.treeAdapter.getNodeSourceCodeLocation(n);o&&!o.endTag&&e._setEndLocation(n,t)}}}}function Sb(e,t){e._setDocumentType(t);let i=t.forceQuirks?ge.QUIRKS:wd(t);Dd(t)||e._err(t,T.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,i),e.insertionMode=f.BEFORE_HTML}function Or(e,t){e._err(t,T.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,ge.QUIRKS),e.insertionMode=f.BEFORE_HTML,e._processToken(t)}function Ib(e,t){t.tagID===a.HTML?(e._insertElement(t,q.HTML),e.insertionMode=f.BEFORE_HEAD):wr(e,t)}function Rb(e,t){let i=t.tagID;(i===a.HTML||i===a.HEAD||i===a.BODY||i===a.BR)&&wr(e,t)}function wr(e,t){e._insertFakeRootElement(),e.insertionMode=f.BEFORE_HEAD,e._processToken(t)}function Lb(e,t){switch(t.tagID){case a.HTML:{_e(e,t);break}case a.HEAD:{e._insertElement(t,q.HTML),e.headElement=e.openElements.current,e.insertionMode=f.IN_HEAD;break}default:kr(e,t)}}function Ob(e,t){let i=t.tagID;i===a.HEAD||i===a.BODY||i===a.HTML||i===a.BR?kr(e,t):e._err(t,T.endTagWithoutMatchingOpenElement)}function kr(e,t){e._insertFakeElement(E.HEAD,a.HEAD),e.headElement=e.openElements.current,e.insertionMode=f.IN_HEAD,e._processToken(t)}function Ye(e,t){switch(t.tagID){case a.HTML:{_e(e,t);break}case a.BASE:case a.BASEFONT:case a.BGSOUND:case a.LINK:case a.META:{e._appendElement(t,q.HTML),t.ackSelfClosing=!0;break}case a.TITLE:{e._switchToTextParsing(t,Te.RCDATA);break}case a.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Te.RAWTEXT):(e._insertElement(t,q.HTML),e.insertionMode=f.IN_HEAD_NO_SCRIPT);break}case a.NOFRAMES:case a.STYLE:{e._switchToTextParsing(t,Te.RAWTEXT);break}case a.SCRIPT:{e._switchToTextParsing(t,Te.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,T.misplacedStartTagForHeadElement);break}default:Pr(e,t)}}function Db(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:{Pr(e,t);break}case a.TEMPLATE:{Jt(e,t);break}default:e._err(t,T.endTagWithoutMatchingOpenElement)}}function Jt(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==a.TEMPLATE&&e._err(t,T.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(a.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,T.endTagWithoutMatchingOpenElement)}function Pr(e,t){e.openElements.pop(),e.insertionMode=f.AFTER_HEAD,e._processToken(t)}function wb(e,t){switch(t.tagID){case a.HTML:{_e(e,t);break}case a.BASEFONT:case a.BGSOUND:case a.HEAD:case a.LINK:case a.META:case a.NOFRAMES:case a.STYLE:{Ye(e,t);break}case a.NOSCRIPT:{e._err(t,T.nestedNoscriptInHead);break}default:Mr(e,t)}}function kb(e,t){switch(t.tagID){case a.NOSCRIPT:{e.openElements.pop(),e.insertionMode=f.IN_HEAD;break}case a.BR:{Mr(e,t);break}default:e._err(t,T.endTagWithoutMatchingOpenElement)}}function Mr(e,t){let i=t.type===$.EOF?T.openElementsLeftAfterEof:T.disallowedContentInNoscriptInHead;e._err(t,i),e.openElements.pop(),e.insertionMode=f.IN_HEAD,e._processToken(t)}function Pb(e,t){switch(t.tagID){case a.HTML:{_e(e,t);break}case a.BODY:{e._insertElement(t,q.HTML),e.framesetOk=!1,e.insertionMode=f.IN_BODY;break}case a.FRAMESET:{e._insertElement(t,q.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,T.abandonedHeadElementChild),e.openElements.push(e.headElement,a.HEAD),Ye(e,t),e.openElements.remove(e.headElement);break}case a.HEAD:{e._err(t,T.misplacedStartTagForHeadElement);break}default:Hr(e,t)}}function Mb(e,t){switch(t.tagID){case a.BODY:case a.HTML:case a.BR:{Hr(e,t);break}case a.TEMPLATE:{Jt(e,t);break}default:e._err(t,T.endTagWithoutMatchingOpenElement)}}function Hr(e,t){e._insertFakeElement(E.BODY,a.BODY),e.insertionMode=f.IN_BODY,Aa(e,t)}function Aa(e,t){switch(t.type){case $.CHARACTER:{$d(e,t);break}case $.WHITESPACE_CHARACTER:{Fd(e,t);break}case $.COMMENT:{Xo(e,t);break}case $.START_TAG:{_e(e,t);break}case $.END_TAG:{va(e,t);break}case $.EOF:{Wd(e,t);break}default:}}function Fd(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function $d(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Hb(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function Bb(e,t){let i=e.openElements.tryPeekProperlyNestedBodyElement();i&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(i,t.attrs))}function Ub(e,t){let i=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&i&&(e.treeAdapter.detachNode(i),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,q.HTML),e.insertionMode=f.IN_FRAMESET)}function Fb(e,t){e.openElements.hasInButtonScope(a.P)&&e._closePElement(),e._insertElement(t,q.HTML)}function $b(e,t){e.openElements.hasInButtonScope(a.P)&&e._closePElement(),Cr(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,q.HTML)}function Vb(e,t){e.openElements.hasInButtonScope(a.P)&&e._closePElement(),e._insertElement(t,q.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Yb(e,t){let i=e.openElements.tmplCount>0;(!e.formElement||i)&&(e.openElements.hasInButtonScope(a.P)&&e._closePElement(),e._insertElement(t,q.HTML),i||(e.formElement=e.openElements.current))}function Gb(e,t){e.framesetOk=!1;let i=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){let s=e.openElements.tagIDs[r];if(i===a.LI&&s===a.LI||(i===a.DD||i===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[r],s))break}e.openElements.hasInButtonScope(a.P)&&e._closePElement(),e._insertElement(t,q.HTML)}function Wb(e,t){e.openElements.hasInButtonScope(a.P)&&e._closePElement(),e._insertElement(t,q.HTML),e.tokenizer.state=Te.PLAINTEXT}function jb(e,t){e.openElements.hasInScope(a.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(a.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,q.HTML),e.framesetOk=!1}function Xb(e,t){let i=e.activeFormattingElements.getElementEntryInScopeWithTagName(E.A);i&&(Qo(e,t),e.openElements.remove(i.element),e.activeFormattingElements.removeEntry(i)),e._reconstructActiveFormattingElements(),e._insertElement(t,q.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Kb(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,q.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Qb(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(a.NOBR)&&(Qo(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,q.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function zb(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,q.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Jb(e,t){e.treeAdapter.getDocumentMode(e.document)!==ge.QUIRKS&&e.openElements.hasInButtonScope(a.P)&&e._closePElement(),e._insertElement(t,q.HTML),e.framesetOk=!1,e.insertionMode=f.IN_TABLE}function Vd(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,q.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Yd(e){let t=yr(e,Ve.TYPE);return t!=null&&t.toLowerCase()===bb}function Zb(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,q.HTML),Yd(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function eE(e,t){e._appendElement(t,q.HTML),t.ackSelfClosing=!0}function tE(e,t){e.openElements.hasInButtonScope(a.P)&&e._closePElement(),e._appendElement(t,q.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function iE(e,t){t.tagName=E.IMG,t.tagID=a.IMG,Vd(e,t)}function rE(e,t){e._insertElement(t,q.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Te.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=f.TEXT}function sE(e,t){e.openElements.hasInButtonScope(a.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Te.RAWTEXT)}function aE(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Te.RAWTEXT)}function Hd(e,t){e._switchToTextParsing(t,Te.RAWTEXT)}function nE(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,q.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 oE(e,t){e.openElements.currentTagId===a.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,q.HTML)}function uE(e,t){e.openElements.hasInScope(a.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,q.HTML)}function cE(e,t){e.openElements.hasInScope(a.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(a.RTC),e._insertElement(t,q.HTML)}function lE(e,t){e._reconstructActiveFormattingElements(),Ea(t),Lr(t),t.selfClosing?e._appendElement(t,q.MATHML):e._insertElement(t,q.MATHML),t.ackSelfClosing=!0}function dE(e,t){e._reconstructActiveFormattingElements(),ga(t),Lr(t),t.selfClosing?e._appendElement(t,q.SVG):e._insertElement(t,q.SVG),t.ackSelfClosing=!0}function Bd(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,q.HTML)}function _e(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:{Kb(e,t);break}case a.A:{Xb(e,t);break}case a.H1:case a.H2:case a.H3:case a.H4:case a.H5:case a.H6:{$b(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:{Fb(e,t);break}case a.LI:case a.DD:case a.DT:{Gb(e,t);break}case a.BR:case a.IMG:case a.WBR:case a.AREA:case a.EMBED:case a.KEYGEN:{Vd(e,t);break}case a.HR:{tE(e,t);break}case a.RB:case a.RTC:{uE(e,t);break}case a.RT:case a.RP:{cE(e,t);break}case a.PRE:case a.LISTING:{Vb(e,t);break}case a.XMP:{sE(e,t);break}case a.SVG:{dE(e,t);break}case a.HTML:{Hb(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:{Ye(e,t);break}case a.BODY:{Bb(e,t);break}case a.FORM:{Yb(e,t);break}case a.NOBR:{Qb(e,t);break}case a.MATH:{lE(e,t);break}case a.TABLE:{Jb(e,t);break}case a.INPUT:{Zb(e,t);break}case a.PARAM:case a.TRACK:case a.SOURCE:{eE(e,t);break}case a.IMAGE:{iE(e,t);break}case a.BUTTON:{jb(e,t);break}case a.APPLET:case a.OBJECT:case a.MARQUEE:{zb(e,t);break}case a.IFRAME:{aE(e,t);break}case a.SELECT:{nE(e,t);break}case a.OPTION:case a.OPTGROUP:{oE(e,t);break}case a.NOEMBED:{Hd(e,t);break}case a.FRAMESET:{Ub(e,t);break}case a.TEXTAREA:{rE(e,t);break}case a.NOSCRIPT:{e.options.scriptingEnabled?Hd(e,t):Bd(e,t);break}case a.PLAINTEXT:{Wb(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:Bd(e,t)}}function hE(e,t){if(e.openElements.hasInScope(a.BODY)&&(e.insertionMode=f.AFTER_BODY,e.options.sourceCodeLocationInfo)){let i=e.openElements.tryPeekProperlyNestedBodyElement();i&&e._setEndLocation(i,t)}}function pE(e,t){e.openElements.hasInScope(a.BODY)&&(e.insertionMode=f.AFTER_BODY,eh(e,t))}function fE(e,t){let i=t.tagID;e.openElements.hasInScope(i)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(i))}function mE(e){let t=e.openElements.tmplCount>0,{formElement:i}=e;t||(e.formElement=null),(i||t)&&e.openElements.hasInScope(a.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(a.FORM):i&&e.openElements.remove(i))}function bE(e){e.openElements.hasInButtonScope(a.P)||e._insertFakeElement(E.P,a.P),e._closePElement()}function EE(e){e.openElements.hasInListItemScope(a.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(a.LI),e.openElements.popUntilTagNamePopped(a.LI))}function gE(e,t){let i=t.tagID;e.openElements.hasInScope(i)&&(e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i))}function TE(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function _E(e,t){let i=t.tagID;e.openElements.hasInScope(i)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(i),e.activeFormattingElements.clearToLastMarker())}function xE(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(E.BR,a.BR),e.openElements.pop(),e.framesetOk=!1}function Gd(e,t){let i=t.tagName,r=t.tagID;for(let s=e.openElements.stackTop;s>0;s--){let n=e.openElements.items[s],o=e.openElements.tagIDs[s];if(r===o&&(r!==a.UNKNOWN||e.treeAdapter.getTagName(n)===i)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=s&&e.openElements.shortenToLength(s);break}if(e._isSpecialElement(n,o))break}}function va(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:{Qo(e,t);break}case a.P:{bE(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:{fE(e,t);break}case a.LI:{EE(e);break}case a.DD:case a.DT:{gE(e,t);break}case a.H1:case a.H2:case a.H3:case a.H4:case a.H5:case a.H6:{TE(e);break}case a.BR:{xE(e);break}case a.BODY:{hE(e,t);break}case a.HTML:{pE(e,t);break}case a.FORM:{mE(e);break}case a.APPLET:case a.OBJECT:case a.MARQUEE:{_E(e,t);break}case a.TEMPLATE:{Jt(e,t);break}default:Gd(e,t)}}function Wd(e,t){e.tmplInsertionModeStack.length>0?Zd(e,t):zo(e,t)}function qE(e,t){var i;t.tagID===a.SCRIPT&&((i=e.scriptHandler)===null||i===void 0||i.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function AE(e,t){e._err(t,T.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function jo(e,t){if(Ud.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 $.CHARACTER:{Xd(e,t);break}case $.WHITESPACE_CHARACTER:{jd(e,t);break}}else Ur(e,t)}function vE(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,q.HTML),e.insertionMode=f.IN_CAPTION}function yE(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,q.HTML),e.insertionMode=f.IN_COLUMN_GROUP}function CE(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(E.COLGROUP,a.COLGROUP),e.insertionMode=f.IN_COLUMN_GROUP,Jo(e,t)}function NE(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,q.HTML),e.insertionMode=f.IN_TABLE_BODY}function SE(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(E.TBODY,a.TBODY),e.insertionMode=f.IN_TABLE_BODY,ya(e,t)}function IE(e,t){e.openElements.hasInTableScope(a.TABLE)&&(e.openElements.popUntilTagNamePopped(a.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function RE(e,t){Yd(t)?e._appendElement(t,q.HTML):Ur(e,t),t.ackSelfClosing=!0}function LE(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,q.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function wi(e,t){switch(t.tagID){case a.TD:case a.TH:case a.TR:{SE(e,t);break}case a.STYLE:case a.SCRIPT:case a.TEMPLATE:{Ye(e,t);break}case a.COL:{CE(e,t);break}case a.FORM:{LE(e,t);break}case a.TABLE:{IE(e,t);break}case a.TBODY:case a.TFOOT:case a.THEAD:{NE(e,t);break}case a.INPUT:{RE(e,t);break}case a.CAPTION:{vE(e,t);break}case a.COLGROUP:{yE(e,t);break}default:Ur(e,t)}}function Br(e,t){switch(t.tagID){case a.TABLE:{e.openElements.hasInTableScope(a.TABLE)&&(e.openElements.popUntilTagNamePopped(a.TABLE),e._resetInsertionMode());break}case a.TEMPLATE:{Jt(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:Ur(e,t)}}function Ur(e,t){let i=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Aa(e,t),e.fosterParentingEnabled=i}function jd(e,t){e.pendingCharacterTokens.push(t)}function Xd(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Dr(e,t){let i=0;if(e.hasNonWhitespacePendingCharacterToken)for(;i<e.pendingCharacterTokens.length;i++)Ur(e,e.pendingCharacterTokens[i]);else for(;i<e.pendingCharacterTokens.length;i++)e._insertCharacters(e.pendingCharacterTokens[i]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}var Kd=new Set([a.CAPTION,a.COL,a.COLGROUP,a.TBODY,a.TD,a.TFOOT,a.TH,a.THEAD,a.TR]);function OE(e,t){let i=t.tagID;Kd.has(i)?e.openElements.hasInTableScope(a.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(a.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=f.IN_TABLE,wi(e,t)):_e(e,t)}function DE(e,t){let i=t.tagID;switch(i){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,i===a.TABLE&&Br(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:va(e,t)}}function Jo(e,t){switch(t.tagID){case a.HTML:{_e(e,t);break}case a.COL:{e._appendElement(t,q.HTML),t.ackSelfClosing=!0;break}case a.TEMPLATE:{Ye(e,t);break}default:xa(e,t)}}function wE(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:{Jt(e,t);break}case a.COL:break;default:xa(e,t)}}function xa(e,t){e.openElements.currentTagId===a.COLGROUP&&(e.openElements.pop(),e.insertionMode=f.IN_TABLE,e._processToken(t))}function ya(e,t){switch(t.tagID){case a.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,q.HTML),e.insertionMode=f.IN_ROW;break}case a.TH:case a.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(E.TR,a.TR),e.insertionMode=f.IN_ROW,Ca(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,wi(e,t));break}default:wi(e,t)}}function Ko(e,t){let i=t.tagID;switch(t.tagID){case a.TBODY:case a.TFOOT:case a.THEAD:{e.openElements.hasInTableScope(i)&&(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,Br(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:Br(e,t)}}function Ca(e,t){switch(t.tagID){case a.TH:case a.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,q.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,ya(e,t));break}default:wi(e,t)}}function Qd(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,Ko(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,Ko(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:Br(e,t)}}function kE(e,t){let i=t.tagID;Kd.has(i)?(e.openElements.hasInTableScope(a.TD)||e.openElements.hasInTableScope(a.TH))&&(e._closeTableCell(),Ca(e,t)):_e(e,t)}function PE(e,t){let i=t.tagID;switch(i){case a.TD:case a.TH:{e.openElements.hasInTableScope(i)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(i),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(i)&&(e._closeTableCell(),Qd(e,t));break}case a.BODY:case a.CAPTION:case a.COL:case a.COLGROUP:case a.HTML:break;default:va(e,t)}}function zd(e,t){switch(t.tagID){case a.HTML:{_e(e,t);break}case a.OPTION:{e.openElements.currentTagId===a.OPTION&&e.openElements.pop(),e._insertElement(t,q.HTML);break}case a.OPTGROUP:{e.openElements.currentTagId===a.OPTION&&e.openElements.pop(),e.openElements.currentTagId===a.OPTGROUP&&e.openElements.pop(),e._insertElement(t,q.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:{Ye(e,t);break}default:}}function Jd(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:{Jt(e,t);break}default:}}function ME(e,t){let i=t.tagID;i===a.CAPTION||i===a.TABLE||i===a.TBODY||i===a.TFOOT||i===a.THEAD||i===a.TR||i===a.TD||i===a.TH?(e.openElements.popUntilTagNamePopped(a.SELECT),e._resetInsertionMode(),e._processStartTag(t)):zd(e,t)}function HE(e,t){let i=t.tagID;i===a.CAPTION||i===a.TABLE||i===a.TBODY||i===a.TFOOT||i===a.THEAD||i===a.TR||i===a.TD||i===a.TH?e.openElements.hasInTableScope(i)&&(e.openElements.popUntilTagNamePopped(a.SELECT),e._resetInsertionMode(),e.onEndTag(t)):Jd(e,t)}function BE(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:{Ye(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,wi(e,t);break}case a.COL:{e.tmplInsertionModeStack[0]=f.IN_COLUMN_GROUP,e.insertionMode=f.IN_COLUMN_GROUP,Jo(e,t);break}case a.TR:{e.tmplInsertionModeStack[0]=f.IN_TABLE_BODY,e.insertionMode=f.IN_TABLE_BODY,ya(e,t);break}case a.TD:case a.TH:{e.tmplInsertionModeStack[0]=f.IN_ROW,e.insertionMode=f.IN_ROW,Ca(e,t);break}default:e.tmplInsertionModeStack[0]=f.IN_BODY,e.insertionMode=f.IN_BODY,_e(e,t)}}function UE(e,t){t.tagID===a.TEMPLATE&&Jt(e,t)}function Zd(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(a.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):zo(e,t)}function FE(e,t){t.tagID===a.HTML?_e(e,t):qa(e,t)}function eh(e,t){var i;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 r=e.openElements.items[1];r&&!(!((i=e.treeAdapter.getNodeSourceCodeLocation(r))===null||i===void 0)&&i.endTag)&&e._setEndLocation(r,t)}}else qa(e,t)}function qa(e,t){e.insertionMode=f.IN_BODY,Aa(e,t)}function $E(e,t){switch(t.tagID){case a.HTML:{_e(e,t);break}case a.FRAMESET:{e._insertElement(t,q.HTML);break}case a.FRAME:{e._appendElement(t,q.HTML),t.ackSelfClosing=!0;break}case a.NOFRAMES:{Ye(e,t);break}default:}}function VE(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 YE(e,t){switch(t.tagID){case a.HTML:{_e(e,t);break}case a.NOFRAMES:{Ye(e,t);break}default:}}function GE(e,t){t.tagID===a.HTML&&(e.insertionMode=f.AFTER_AFTER_FRAMESET)}function WE(e,t){t.tagID===a.HTML?_e(e,t):_a(e,t)}function _a(e,t){e.insertionMode=f.IN_BODY,Aa(e,t)}function jE(e,t){switch(t.tagID){case a.HTML:{_e(e,t);break}case a.NOFRAMES:{Ye(e,t);break}default:}}function XE(e,t){t.chars=se,e._insertCharacters(t)}function KE(e,t){e._insertCharacters(t),e.framesetOk=!1}function th(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==q.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function QE(e,t){if(Yo(t))th(e),e._startTagOutsideForeignContent(t);else{let i=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(i);r===q.MATHML?Ea(t):r===q.SVG&&(Go(t),ga(t)),Lr(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function zE(e,t){if(t.tagID===a.P||t.tagID===a.BR){th(e),e._endTagOutsideForeignContent(t);return}for(let i=e.openElements.stackTop;i>0;i--){let r=e.openElements.items[i];if(e.treeAdapter.getNamespaceURI(r)===q.HTML){e._endTagOutsideForeignContent(t);break}let s=e.treeAdapter.getTagName(r);if(s.toLowerCase()===t.tagName){t.tagName=s,e.openElements.shortenToLength(i);break}}}var JE=new Set([E.AREA,E.BASE,E.BASEFONT,E.BGSOUND,E.BR,E.COL,E.EMBED,E.FRAME,E.HR,E.IMG,E.INPUT,E.KEYGEN,E.LINK,E.META,E.PARAM,E.SOURCE,E.TRACK,E.WBR]);function ZE(e,t){return t.treeAdapter.isElementNode(e)&&t.treeAdapter.getNamespaceURI(e)===q.HTML&&JE.has(t.treeAdapter.getTagName(e))}var eg={treeAdapter:et,scriptingEnabled:!0};function Zo(e,t){let i=D(D({},eg),t);return ih(e,i)}function tg(e,t){let i="",r=t.treeAdapter.isElementNode(e)&&t.treeAdapter.getTagName(e)===E.TEMPLATE&&t.treeAdapter.getNamespaceURI(e)===q.HTML?t.treeAdapter.getTemplateContent(e):e,s=t.treeAdapter.getChildNodes(r);if(s)for(let n of s)i+=ih(n,t);return i}function ih(e,t){return t.treeAdapter.isElementNode(e)?ig(e,t):t.treeAdapter.isTextNode(e)?sg(e,t):t.treeAdapter.isCommentNode(e)?ag(e,t):t.treeAdapter.isDocumentTypeNode(e)?ng(e,t):""}function ig(e,t){let i=t.treeAdapter.getTagName(e);return`<${i}${rg(e,t)}>${ZE(e,t)?"":`${tg(e,t)}</${i}>`}`}function rg(e,{treeAdapter:t}){let i="";for(let r of t.getAttrList(e)){if(i+=" ",!r.namespace)i+=r.name;else switch(r.namespace){case q.XML:{i+=`xml:${r.name}`;break}case q.XMLNS:{r.name!=="xmlns"&&(i+="xmlns:"),i+=r.name;break}case q.XLINK:{i+=`xlink:${r.name}`;break}default:i+=`${r.prefix}:${r.name}`}i+=`="${vi(r.value)}"`}return i}function sg(e,t){let{treeAdapter:i}=t,r=i.getTextNodeContent(e),s=i.getParentNode(e),n=s&&i.isElementNode(s)&&i.getTagName(s);return n&&i.getNamespaceURI(s)===q.HTML&&$o(n,t.scriptingEnabled)?r:yi(r)}function ag(e,{treeAdapter:t}){return`<!--${t.getCommentNodeContent(e)}-->`}function ng(e,{treeAdapter:t}){return`<!DOCTYPE ${t.getDocumentTypeNodeName(e)}>`}function rh(e,t){return Di.parse(e,t)}function sh(e,t,i){typeof e=="string"&&(i=t,t=e,e=null);let r=Di.getFragmentParser(e,i);return r.tokenizer.write(t,!0),r.getFragment()}function ah(e){return new Ze(e)}function nh(e){let t=e.includes('"')?"'":'"';return t+e+t}function og(e,t,i){let r="!DOCTYPE ";return e&&(r+=e),t?r+=` PUBLIC ${nh(t)}`:i&&(r+=" SYSTEM"),i&&(r+=` ${nh(i)}`),r}var Zt={isCommentNode:Wt,isElementNode:P,isTextNode:Ie,createDocument(){let e=new we([]);return e["x-mode"]=Nr.DOCUMENT_MODE.NO_QUIRKS,e},createDocumentFragment(){return new we([])},createElement(e,t,i){let r=Object.create(null),s=Object.create(null),n=Object.create(null);for(let c=0;c<i.length;c++){let l=i[c].name;r[l]=i[c].value,s[l]=i[c].namespace,n[l]=i[c].prefix}let o=new Gt(e,r,[]);return o.namespace=t,o["x-attribsNamespace"]=s,o["x-attribsPrefix"]=n,o},createCommentNode(e){return new Vt(e)},appendChild(e,t){let i=e.children[e.children.length-1];i&&(i.next=t,t.prev=i),e.children.push(t),t.parent=e},insertBefore(e,t,i){let r=e.children.indexOf(i),{prev:s}=i;s&&(s.next=t,t.prev=s),i.prev=t,t.next=i,e.children.splice(r,0,t),t.parent=e},setTemplateContent(e,t){Zt.appendChild(e,t)},getTemplateContent(e){return e.children[0]},setDocumentType(e,t,i,r){let s=og(t,i,r),n=e.children.find(o=>Bs(o)&&o.name==="!doctype");n?n.data=s!=null?s:null:(n=new Yt("!doctype",s),Zt.appendChild(e,n)),n["x-name"]=t!=null?t:void 0,n["x-publicId"]=i!=null?i:void 0,n["x-systemId"]=r!=null?r: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:i,next:r}=e;e.prev=null,e.next=null,i&&(i.next=r),r&&(r.prev=i),e.parent.children.splice(t,1),e.parent=null}},insertText(e,t){let i=e.children[e.children.length-1];i&&Ie(i)?i.data+=t:Zt.appendChild(e,ah(t))},insertTextBefore(e,t,i){let r=e.children[e.children.indexOf(i)-1];r&&Ie(r)?r.data+=t:Zt.insertBefore(e,ah(t),i)},adoptAttributes(e,t){for(let i=0;i<t.length;i++){let r=t[i].name;typeof e.attribs[r]=="undefined"&&(e.attribs[r]=t[i].value,e["x-attribsNamespace"][r]=t[i].namespace,e["x-attribsPrefix"][r]=t[i].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 Bs(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=D(D({},e.sourceCodeLocation),t)}};function oh(e,t,i,r){let s={scriptingEnabled:typeof t.scriptingEnabled=="boolean"?t.scriptingEnabled:!0,treeAdapter:Zt,sourceCodeLocationInfo:t.sourceCodeLocationInfo};return i?rh(e,s):sh(r,e,s)}var ug={treeAdapter:Zt};function uh(e){let t="length"in e?e:[e];for(let r=0;r<t.length;r+=1){let s=t[r];$e(s)&&Array.prototype.splice.call(t,r,1,...s.children)}let i="";for(let r=0;r<t.length;r+=1){let s=t[r];i+=Zo(s,ug)}return i}var w;(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"})(w||(w={}));var v;(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"})(v||(v={}));function pt(e){return e===w.Space||e===w.NewLine||e===w.Tab||e===w.FormFeed||e===w.CarriageReturn}function Na(e){return e===w.Slash||e===w.Gt||pt(e)}function ch(e){return e>=w.Zero&&e<=w.Nine}function cg(e){return e>=w.LowerA&&e<=w.LowerZ||e>=w.UpperA&&e<=w.UpperZ}function lg(e){return e>=w.UpperA&&e<=w.UpperF||e>=w.LowerA&&e<=w.LowerF}var Ge;(function(e){e[e.NoValue=0]="NoValue",e[e.Unquoted=1]="Unquoted",e[e.Single=2]="Single",e[e.Double=3]="Double"})(Ge||(Ge={}));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])},ki=class{constructor({xmlMode:t=!1,decodeEntities:i=!0},r){this.cbs=r,this.state=v.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=v.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=i,this.entityTrie=t?Us:Me}reset(){this.state=v.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=v.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===w.Lt||!this.decodeEntities&&this.fastForwardTo(w.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=v.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&t===w.Amp&&(this.state=v.BeforeEntity)}stateSpecialStartSequence(t){let i=this.sequenceIndex===this.currentSequence.length;if(!(i?Na(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.isSpecial=!1;else if(!i){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=v.InTagName,this.stateInTagName(t)}stateInSpecialTag(t){if(this.sequenceIndex===this.currentSequence.length){if(t===w.Gt||pt(t)){let i=this.index-this.currentSequence.length;if(this.sectionStart<i){let r=this.index;this.index=i,this.cbs.ontext(this.sectionStart,i),this.index=r}this.isSpecial=!1,this.sectionStart=i+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===w.Amp&&(this.state=v.BeforeEntity):this.fastForwardTo(w.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=+(t===w.Lt)}stateCDATASequence(t){t===Oe.Cdata[this.sequenceIndex]?++this.sequenceIndex===Oe.Cdata.length&&(this.state=v.InCommentLike,this.currentSequence=Oe.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=v.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=v.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?!Na(t):cg(t)}startSpecial(t,i){this.isSpecial=!0,this.currentSequence=t,this.sequenceIndex=i,this.state=v.SpecialStartSequence}stateBeforeTagName(t){if(t===w.ExclamationMark)this.state=v.BeforeDeclaration,this.sectionStart=this.index+1;else if(t===w.Questionmark)this.state=v.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(t)){let i=t|32;this.sectionStart=this.index,!this.xmlMode&&i===Oe.TitleEnd[2]?this.startSpecial(Oe.TitleEnd,3):this.state=!this.xmlMode&&i===Oe.ScriptEnd[2]?v.BeforeSpecialS:v.InTagName}else t===w.Slash?this.state=v.BeforeClosingTagName:(this.state=v.Text,this.stateText(t))}stateInTagName(t){Na(t)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=v.BeforeAttributeName,this.stateBeforeAttributeName(t))}stateBeforeClosingTagName(t){pt(t)||(t===w.Gt?this.state=v.Text:(this.state=this.isTagStartChar(t)?v.InClosingTagName:v.InSpecialComment,this.sectionStart=this.index))}stateInClosingTagName(t){(t===w.Gt||pt(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=v.AfterClosingTagName,this.stateAfterClosingTagName(t))}stateAfterClosingTagName(t){(t===w.Gt||this.fastForwardTo(w.Gt))&&(this.state=v.Text,this.baseState=v.Text,this.sectionStart=this.index+1)}stateBeforeAttributeName(t){t===w.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=v.InSpecialTag,this.sequenceIndex=0):this.state=v.Text,this.baseState=this.state,this.sectionStart=this.index+1):t===w.Slash?this.state=v.InSelfClosingTag:pt(t)||(this.state=v.InAttributeName,this.sectionStart=this.index)}stateInSelfClosingTag(t){t===w.Gt?(this.cbs.onselfclosingtag(this.index),this.state=v.Text,this.baseState=v.Text,this.sectionStart=this.index+1,this.isSpecial=!1):pt(t)||(this.state=v.BeforeAttributeName,this.stateBeforeAttributeName(t))}stateInAttributeName(t){(t===w.Eq||Na(t))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=v.AfterAttributeName,this.stateAfterAttributeName(t))}stateAfterAttributeName(t){t===w.Eq?this.state=v.BeforeAttributeValue:t===w.Slash||t===w.Gt?(this.cbs.onattribend(Ge.NoValue,this.index),this.state=v.BeforeAttributeName,this.stateBeforeAttributeName(t)):pt(t)||(this.cbs.onattribend(Ge.NoValue,this.index),this.state=v.InAttributeName,this.sectionStart=this.index)}stateBeforeAttributeValue(t){t===w.DoubleQuote?(this.state=v.InAttributeValueDq,this.sectionStart=this.index+1):t===w.SingleQuote?(this.state=v.InAttributeValueSq,this.sectionStart=this.index+1):pt(t)||(this.sectionStart=this.index,this.state=v.InAttributeValueNq,this.stateInAttributeValueNoQuotes(t))}handleInAttributeValue(t,i){t===i||!this.decodeEntities&&this.fastForwardTo(i)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(i===w.DoubleQuote?Ge.Double:Ge.Single,this.index),this.state=v.BeforeAttributeName):this.decodeEntities&&t===w.Amp&&(this.baseState=this.state,this.state=v.BeforeEntity)}stateInAttributeValueDoubleQuotes(t){this.handleInAttributeValue(t,w.DoubleQuote)}stateInAttributeValueSingleQuotes(t){this.handleInAttributeValue(t,w.SingleQuote)}stateInAttributeValueNoQuotes(t){pt(t)||t===w.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(Ge.Unquoted,this.index),this.state=v.BeforeAttributeName,this.stateBeforeAttributeName(t)):this.decodeEntities&&t===w.Amp&&(this.baseState=this.state,this.state=v.BeforeEntity)}stateBeforeDeclaration(t){t===w.OpeningSquareBracket?(this.state=v.CDATASequence,this.sequenceIndex=0):this.state=t===w.Dash?v.BeforeComment:v.InDeclaration}stateInDeclaration(t){(t===w.Gt||this.fastForwardTo(w.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=v.Text,this.sectionStart=this.index+1)}stateInProcessingInstruction(t){(t===w.Gt||this.fastForwardTo(w.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=v.Text,this.sectionStart=this.index+1)}stateBeforeComment(t){t===w.Dash?(this.state=v.InCommentLike,this.currentSequence=Oe.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=v.InDeclaration}stateInSpecialComment(t){(t===w.Gt||this.fastForwardTo(w.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=v.Text,this.sectionStart=this.index+1)}stateBeforeSpecialS(t){let i=t|32;i===Oe.ScriptEnd[3]?this.startSpecial(Oe.ScriptEnd,4):i===Oe.StyleEnd[3]?this.startSpecial(Oe.StyleEnd,4):(this.state=v.InTagName,this.stateInTagName(t))}stateBeforeEntity(t){this.entityExcess=1,this.entityResult=0,t===w.Number?this.state=v.BeforeNumericEntity:t===w.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=v.InNamedEntity,this.stateInNamedEntity(t))}stateInNamedEntity(t){if(this.entityExcess+=1,this.trieIndex=hr(this.entityTrie,this.trieCurrent,this.trieIndex+1,t),this.trieIndex<0){this.emitNamedEntity(),this.index--;return}this.trieCurrent=this.entityTrie[this.trieIndex];let i=this.trieCurrent&ye.VALUE_LENGTH;if(i){let r=(i>>14)-1;if(!this.allowLegacyEntity()&&t!==w.Semi)this.trieIndex+=r;else{let s=this.index-this.entityExcess+1;s>this.sectionStart&&this.emitPartial(this.sectionStart,s),this.entityResult=this.trieIndex,this.trieIndex+=r,this.entityExcess=0,this.sectionStart=this.index+1,r===0&&this.emitNamedEntity()}}}emitNamedEntity(){if(this.state=this.baseState,this.entityResult===0)return;switch((this.entityTrie[this.entityResult]&ye.VALUE_LENGTH)>>14){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~ye.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)===w.LowerX?(this.entityExcess++,this.state=v.InHexEntity):(this.state=v.InNumericEntity,this.stateInNumericEntity(t))}emitNumericEntity(t){let i=this.index-this.entityExcess-1;i+2+ +(this.state===v.InHexEntity)!==this.index&&(i>this.sectionStart&&this.emitPartial(this.sectionStart,i),this.sectionStart=this.index+Number(t),this.emitCodePoint(dr(this.entityResult))),this.state=this.baseState}stateInNumericEntity(t){t===w.Semi?this.emitNumericEntity(!0):ch(t)?(this.entityResult=this.entityResult*10+(t-w.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)}stateInHexEntity(t){t===w.Semi?this.emitNumericEntity(!0):ch(t)?(this.entityResult=this.entityResult*16+(t-w.Zero),this.entityExcess++):lg(t)?(this.entityResult=this.entityResult*16+((t|32)-w.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)}allowLegacyEntity(){return!this.xmlMode&&(this.baseState===v.Text||this.baseState===v.InSpecialTag)}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===v.Text||this.state===v.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===v.InAttributeValueDq||this.state===v.InAttributeValueSq||this.state===v.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 v.Text:{this.stateText(t);break}case v.SpecialStartSequence:{this.stateSpecialStartSequence(t);break}case v.InSpecialTag:{this.stateInSpecialTag(t);break}case v.CDATASequence:{this.stateCDATASequence(t);break}case v.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(t);break}case v.InAttributeName:{this.stateInAttributeName(t);break}case v.InCommentLike:{this.stateInCommentLike(t);break}case v.InSpecialComment:{this.stateInSpecialComment(t);break}case v.BeforeAttributeName:{this.stateBeforeAttributeName(t);break}case v.InTagName:{this.stateInTagName(t);break}case v.InClosingTagName:{this.stateInClosingTagName(t);break}case v.BeforeTagName:{this.stateBeforeTagName(t);break}case v.AfterAttributeName:{this.stateAfterAttributeName(t);break}case v.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(t);break}case v.BeforeAttributeValue:{this.stateBeforeAttributeValue(t);break}case v.BeforeClosingTagName:{this.stateBeforeClosingTagName(t);break}case v.AfterClosingTagName:{this.stateAfterClosingTagName(t);break}case v.BeforeSpecialS:{this.stateBeforeSpecialS(t);break}case v.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(t);break}case v.InSelfClosingTag:{this.stateInSelfClosingTag(t);break}case v.InDeclaration:{this.stateInDeclaration(t);break}case v.BeforeDeclaration:{this.stateBeforeDeclaration(t);break}case v.BeforeComment:{this.stateBeforeComment(t);break}case v.InProcessingInstruction:{this.stateInProcessingInstruction(t);break}case v.InNamedEntity:{this.stateInNamedEntity(t);break}case v.BeforeEntity:{this.stateBeforeEntity(t);break}case v.InHexEntity:{this.stateInHexEntity(t);break}case v.InNumericEntity:{this.stateInNumericEntity(t);break}default:this.stateBeforeNumericEntity(t)}this.index++}this.cleanup()}finish(){this.state===v.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){let t=this.buffer.length+this.offset;this.state===v.InCommentLike?this.currentSequence===Oe.CdataEnd?this.cbs.oncdata(this.sectionStart,t,0):this.cbs.oncomment(this.sectionStart,t,0):this.state===v.InNumericEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===v.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===v.InTagName||this.state===v.BeforeAttributeName||this.state===v.BeforeAttributeValue||this.state===v.AfterAttributeName||this.state===v.InAttributeName||this.state===v.InAttributeValueSq||this.state===v.InAttributeValueDq||this.state===v.InAttributeValueNq||this.state===v.InClosingTagName||this.cbs.ontext(this.sectionStart,t)}emitPartial(t,i){this.baseState!==v.Text&&this.baseState!==v.InSpecialTag?this.cbs.onattribdata(t,i):this.cbs.ontext(t,i)}emitCodePoint(t){this.baseState!==v.Text&&this.baseState!==v.InSpecialTag?this.cbs.onattribentity(t):this.cbs.ontextentity(t)}};var Pi=new Set(["input","option","optgroup","select","button","datalist","textarea"]),z=new Set(["p"]),lh=new Set(["thead","tbody"]),dh=new Set(["dd","dt"]),hh=new Set(["rt","rp"]),dg=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",z],["h1",z],["h2",z],["h3",z],["h4",z],["h5",z],["h6",z],["select",Pi],["input",Pi],["output",Pi],["button",Pi],["datalist",Pi],["textarea",Pi],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",dh],["dt",dh],["address",z],["article",z],["aside",z],["blockquote",z],["details",z],["div",z],["dl",z],["fieldset",z],["figcaption",z],["figure",z],["footer",z],["form",z],["header",z],["hr",z],["main",z],["nav",z],["ol",z],["pre",z],["section",z],["table",z],["ul",z],["rt",hh],["rp",hh],["tbody",lh],["tfoot",lh]]),hg=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),ph=new Set(["math","svg"]),fh=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),pg=/\s|\//,Fr=class{constructor(t,i={}){var r,s,n,o,c;this.options=i,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=(r=i.lowerCaseTags)!==null&&r!==void 0?r:!i.xmlMode,this.lowerCaseAttributeNames=(s=i.lowerCaseAttributeNames)!==null&&s!==void 0?s:!i.xmlMode,this.tokenizer=new((n=i.Tokenizer)!==null&&n!==void 0?n:ki)(this.options,this),(c=(o=this.cbs).onparserinit)===null||c===void 0||c.call(o,this)}ontext(t,i){var r,s;let n=this.getSlice(t,i);this.endIndex=i-1,(s=(r=this.cbs).ontext)===null||s===void 0||s.call(r,n),this.startIndex=i}ontextentity(t){var i,r;let s=this.tokenizer.getSectionStart();this.endIndex=s-1,(r=(i=this.cbs).ontext)===null||r===void 0||r.call(i,Ai(t)),this.startIndex=s}isVoidElement(t){return!this.options.xmlMode&&hg.has(t)}onopentagname(t,i){this.endIndex=i;let r=this.getSlice(t,i);this.lowerCaseTagNames&&(r=r.toLowerCase()),this.emitOpenTag(r)}emitOpenTag(t){var i,r,s,n;this.openTagStart=this.startIndex,this.tagname=t;let o=!this.options.xmlMode&&dg.get(t);if(o)for(;this.stack.length>0&&o.has(this.stack[this.stack.length-1]);){let c=this.stack.pop();(r=(i=this.cbs).onclosetag)===null||r===void 0||r.call(i,c,!0)}this.isVoidElement(t)||(this.stack.push(t),ph.has(t)?this.foreignContext.push(!0):fh.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 i,r;this.startIndex=this.openTagStart,this.attribs&&((r=(i=this.cbs).onopentag)===null||r===void 0||r.call(i,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,i){var r,s,n,o,c,l;this.endIndex=i;let p=this.getSlice(t,i);if(this.lowerCaseTagNames&&(p=p.toLowerCase()),(ph.has(p)||fh.has(p))&&this.foreignContext.pop(),this.isVoidElement(p))!this.options.xmlMode&&p==="br"&&((s=(r=this.cbs).onopentagname)===null||s===void 0||s.call(r,"br"),(o=(n=this.cbs).onopentag)===null||o===void 0||o.call(n,"br",{},!0),(l=(c=this.cbs).onclosetag)===null||l===void 0||l.call(c,"br",!1));else{let b=this.stack.lastIndexOf(p);if(b!==-1)if(this.cbs.onclosetag){let x=this.stack.length-b;for(;x--;)this.cbs.onclosetag(this.stack.pop(),x!==0)}else this.stack.length=b;else!this.options.xmlMode&&p==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=i+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 i,r;let s=this.tagname;this.endOpenTag(t),this.stack[this.stack.length-1]===s&&((r=(i=this.cbs).onclosetag)===null||r===void 0||r.call(i,s,!t),this.stack.pop())}onattribname(t,i){this.startIndex=t;let r=this.getSlice(t,i);this.attribname=this.lowerCaseAttributeNames?r.toLowerCase():r}onattribdata(t,i){this.attribvalue+=this.getSlice(t,i)}onattribentity(t){this.attribvalue+=Ai(t)}onattribend(t,i){var r,s;this.endIndex=i,(s=(r=this.cbs).onattribute)===null||s===void 0||s.call(r,this.attribname,this.attribvalue,t===Ge.Double?'"':t===Ge.Single?"'":t===Ge.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 i=t.search(pg),r=i<0?t:t.substr(0,i);return this.lowerCaseTagNames&&(r=r.toLowerCase()),r}ondeclaration(t,i){this.endIndex=i;let r=this.getSlice(t,i);if(this.cbs.onprocessinginstruction){let s=this.getInstructionName(r);this.cbs.onprocessinginstruction(`!${s}`,`!${r}`)}this.startIndex=i+1}onprocessinginstruction(t,i){this.endIndex=i;let r=this.getSlice(t,i);if(this.cbs.onprocessinginstruction){let s=this.getInstructionName(r);this.cbs.onprocessinginstruction(`?${s}`,`?${r}`)}this.startIndex=i+1}oncomment(t,i,r){var s,n,o,c;this.endIndex=i,(n=(s=this.cbs).oncomment)===null||n===void 0||n.call(s,this.getSlice(t,i-r)),(c=(o=this.cbs).oncommentend)===null||c===void 0||c.call(o),this.startIndex=i+1}oncdata(t,i,r){var s,n,o,c,l,p,b,x,N,I;this.endIndex=i;let O=this.getSlice(t,i-r);this.options.xmlMode||this.options.recognizeCDATA?((n=(s=this.cbs).oncdatastart)===null||n===void 0||n.call(s),(c=(o=this.cbs).ontext)===null||c===void 0||c.call(o,O),(p=(l=this.cbs).oncdataend)===null||p===void 0||p.call(l)):((x=(b=this.cbs).oncomment)===null||x===void 0||x.call(b,`[CDATA[${O}]]`),(I=(N=this.cbs).oncommentend)===null||I===void 0||I.call(N)),this.startIndex=i+1}onend(){var t,i;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let r=this.stack.length;r>0;this.cbs.onclosetag(this.stack[--r],!0));}(i=(t=this.cbs).onend)===null||i===void 0||i.call(t)}reset(){var t,i,r,s;(i=(t=this.cbs).onreset)===null||i===void 0||i.call(t),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(s=(r=this.cbs).onparserinit)===null||s===void 0||s.call(r,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1}parseComplete(t){this.reset(),this.end(t)}getSlice(t,i){for(;t-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();let r=this.buffers[0].slice(t-this.bufferOffset,i-this.bufferOffset);for(;i-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),r+=this.buffers[0].slice(0,i-this.bufferOffset);return r}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(t){var i,r;if(this.ended){(r=(i=this.cbs).onerror)===null||r===void 0||r.call(i,new Error(".write() after done!"));return}this.buffers.push(t),this.tokenizer.running&&(this.tokenizer.write(t),this.writeIndex++)}end(t){var i,r;if(this.ended){(r=(i=this.cbs).onerror)===null||r===void 0||r.call(i,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 mh(e,t){let i=new qi(void 0,t);return new Fr(i,t).end(e),i.root}var fg=dd((e,t,i,r)=>t.xmlMode||t._useHtmlParser2?mh(e,t):oh(e,t,i,r)),$r=gd(fg,(e,t)=>t.xmlMode||t._useHtmlParser2?Vs(e,t):uh(e)),gI=$r([]),{contains:TI}=St,{merge:_I}=St,{parseHTML:xI}=St,{root:qI}=St;var bg=(e="type")=>`<?xml version="1.0" encoding="utf-8"?>
1926
+ <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">
1927
+ <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
1928
+ <xsl:param name="separator" select="' '" />
1929
+ <xsl:param name="prefix" select="'type:'" />
1930
+ <xsl:variable name="prefixElements"></xsl:variable>
1931
+ <xsl:variable name="suffixElements"></xsl:variable>
1932
+ <!-- passthrough -->
1933
+ <xsl:template match="*">
1934
+ <xsl:copy>
1935
+ <xsl:apply-templates select="* | @* | text()" />
1936
+ </xsl:copy>
1937
+ </xsl:template>
1938
+ <xsl:template match="@* | text()">
1939
+ <xsl:copy-of select="." />
1940
+ </xsl:template>
1941
+
1942
+ <xsl:template match="*">
1943
+ <xsl:variable name="elementName">
1944
+ <xsl:call-template name="getTypedElementName">
1945
+ <xsl:with-param name="input" select="." />
1946
+ </xsl:call-template>
1947
+ </xsl:variable>
1948
+ <xsl:element name="{$elementName}">
1949
+ <xsl:apply-templates select="* | @* | text()" />
1950
+ </xsl:element>
1951
+ </xsl:template>
1952
+
1953
+ <!-- custom names -->
1954
+ <xsl:template name="getType">
1955
+ <xsl:param name="input" />
1956
+ <xsl:param name="separator" select="$separator" />
1957
+ <xsl:param name="prefix" select="$prefix" />
1958
+ <xsl:variable name="output">
1959
+ <xsl:choose>
1960
+ <xsl:when test="contains($input, $separator)">
1961
+ <xsl:value-of select="substring-before($input, $separator)" />
1962
+ </xsl:when>
1963
+ <xsl:otherwise>
1964
+ <xsl:value-of select="$input" />
1965
+ </xsl:otherwise>
1966
+ </xsl:choose>
1967
+ </xsl:variable>
1968
+ <xsl:choose>
1969
+ <xsl:when test="starts-with($output, $prefix) and $output != $prefix">
1970
+ <xsl:value-of select="substring-after($output, $prefix)" />
1971
+ </xsl:when>
1972
+ <xsl:otherwise>
1973
+ <xsl:variable name="after" select="substring-after($input, $separator)" />
1974
+ <xsl:if test="$after">
1975
+ <xsl:call-template name="getType">
1976
+ <xsl:with-param name="input" select="$after" />
1977
+ <xsl:with-param name="separator" select="$separator" />
1978
+ <xsl:with-param name="prefix" select="$prefix" />
1979
+ </xsl:call-template>
1980
+ </xsl:if>
1981
+ </xsl:otherwise>
1982
+ </xsl:choose>
1983
+ </xsl:template>
1984
+
1985
+ <xsl:template name="getTypedElementName">
1986
+ <xsl:param name="input" />
1987
+ <xsl:variable name="prefixElements" select="document('')//xsl:variable[@name = 'prefixElements']/element" />
1988
+ <xsl:variable name="suffixElements" select="document('')//xsl:variable[@name = 'suffixElements']/element" />
1989
+ <xsl:variable name="originalName" select="name($input)" />
1990
+ <xsl:variable name="type">
1991
+ <xsl:call-template name="getType">
1992
+ <xsl:with-param name="input" select="$input/@class" />
1993
+ </xsl:call-template>
1994
+ </xsl:variable>
1995
+ <xsl:value-of select="$originalName" />
1996
+ <!-- Add prefix elements -->
1997
+ <xsl:if test="$prefixElements[text() = $originalName]">
1998
+ <xsl:text>-</xsl:text>
1999
+ </xsl:if>
2000
+ <!-- Add suffix to typed elements -->
2001
+ <xsl:if test="string-length($type)">
2002
+ <xsl:text>-</xsl:text>
2003
+ <xsl:value-of select="$type" />
2004
+ </xsl:if>
2005
+ <!-- Add suffix to elements -->
2006
+ <xsl:if test="$suffixElements[text() = $originalName]">
2007
+ <xsl:text>-</xsl:text>
2008
+ </xsl:if>
2009
+ </xsl:template>
2010
+ </xsl:stylesheet>`,Eg=`
2011
+ <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
2012
+ <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
2013
+ <xsl:template match="*">
2014
+ <!-- remove element prefix -->
2015
+ <xsl:element name="{local-name()}">
2016
+ <!-- process attributes -->
2017
+ <xsl:for-each select="@*">
2018
+ <!-- remove attribute prefix -->
2019
+ <xsl:attribute name="{local-name()}">
2020
+ <xsl:value-of select="."/>
2021
+ </xsl:attribute>
2022
+ </xsl:for-each>
2023
+ <xsl:apply-templates/>
2024
+ </xsl:element>
2025
+ </xsl:template>
2026
+ </xsl:stylesheet>`,yI=e=>{let t=e,i=s=>{let n=new DOMParser().parseFromString(t,"text/xml"),o=new XSLTProcessor,c=new DOMParser().parseFromString(s,"text/xml");o.importStylesheet(c);let l=o.transformToFragment(n,document);t=new XMLSerializer().serializeToString(l)},r={mathml(){let s=$r(t,{xmlMode:!0,xml:!0});return s("math").each((n,o)=>{o.tagName="math-ml"}).find("*").each((n,o)=>{o.tagName=`math-${o.tagName.substring(1)}`}),t=s.xml(),r},removeNamesSpaces(){return i(Eg),r},pciHooks(s){let n=["hook","module"],o=s.substring(0,s.lastIndexOf("/")),c=new DOMParser().parseFromString(t,"text/xml");for(let l of n)c.querySelectorAll("["+l+"]").forEach(b=>{let x=b.getAttribute(l);!x.startsWith("data:")&&!x.startsWith("http")&&(b.setAttribute("base-url",s),b.setAttribute("module",o+"/"+encodeURIComponent(x+(x.endsWith(".js")?"":".js"))))});return t=new XMLSerializer().serializeToString(c),r},assetsLocation(s,n=["src","href","data"]){let o=s.substring(0,s.lastIndexOf("/")),c=new DOMParser().parseFromString(t,"text/xml");for(let l of n)c.querySelectorAll("["+l+"]").forEach(b=>{let x=b.getAttribute(l);!x.startsWith("data:")&&!x.startsWith("http")&&b.setAttribute(l,o+"/"+encodeURIComponent(x))});return t=new XMLSerializer().serializeToString(c),r},customTypes(){return i(bg()),r},suffix(s,n){let o=$r(t,{xml:!0,xmlMode:!0});return o("*").each((c,l)=>{s.includes(l.name)&&(l.name=`${l.name}-${n}`)}),t=o.xml(),r},fn(s){return t=s(t),r},fnCh(s){let n=$r(t,{xml:!0,xmlMode:!0});return s(n),t=n.xml(),r},elementNameAttributes(s){return s.forEach(n=>{t=Tg(t,n,n+` data-element="${n}" `)}),r},print(){return console.log(t),r},xml(){return t=gg(t),t}};return r},gg=e=>{let t=e.split("/>"),i="";for(let r=0;r<t.length-1;r++){let s=t[r].split("<");i+=t[r]+"></"+s[s.length-1].split(" ")[0]+">"}return i+t[t.length-1]};function Tg(e,t,i){return e.replace(new RegExp(t,"g"),i)}export{pe as Choices,ze as DragDropInteractionMixin,Uc as DroppablesMixin,ec as Events,Fc as FlippablesMixin,mp as NavigationMode,ni as OutcomeVariable,gn as QtiAnd,je as QtiAssessmentItem,er as QtiAssociateInteraction,xs as QtiBaseValue,Ne as QtiChoice,Zu as QtiChoiceElementSelected,ds as QtiCompanionMaterialsInfo,_n as QtiContains,xn as QtiCorrect,Ls as QtiCustomOperatorLevenshtein,On as QtiCustomOperatorNumericOnly,Os as QtiCustomOperatorParseNumberLocalNl,Dn as QtiCustomOperatorRemoveAllSpaces,wn as QtiCustomOperatorTrim,Ts as QtiEqual,_s as QtiEqualRounded,K as QtiExpression,qt as QtiExtendedTextInteraction,fs as QtiFeedbackInline,Rn as QtiGap,As as QtiGapMatchInteraction,In as QtiGapText,vs as QtiGraphicAssociateInteraction,ys as QtiGraphicGapMatchInteraction,Cs as QtiGraphicOrderInteraction,bn as QtiGt,En as QtiGte,tr as QtiHotspotChoice,Ns as QtiHotspotInteraction,Es as QtiHottext,hn as QtiHottextInteraction,Ln as QtiInlineChoice,gs as QtiInlineChoiceInteraction,Wu as QtiInteractionChanged,Ju as QtiInteractionResponse,qn as QtiIsNull,De as QtiItem,J2 as QtiItemWrapper,zu as QtiLooseChoice,Je as QtiManualScoring,qs as QtiMapResponse,Ei as QtiMapping,An as QtiMatch,Ss as QtiMatchInteraction,Is as QtiMediaInteraction,cn as QtiModalFeedback,yn as QtiMultiple,Tn as QtiOr,ir as QtiOrderInteraction,Cn as QtiOrdered,Gu as QtiOutcomeChanged,on as QtiOutcomeDeclaration,Nn as QtiPortableCustomInteraction,nn as QtiPrompt,Ku as QtiRegisterChoice,Qu as QtiRegisterHotspot,Xu as QtiRegisterInteraction,ju as QtiRegisterVariable,pn as QtiResponseCondition,pi as QtiResponseDeclaration,Ji as QtiResponseElse,mn as QtiResponseElseIf,Zi as QtiResponseIf,bi as QtiResponseProcessing,nt as QtiRule,Rs as QtiSelectPointInteraction,fn as QtiSetOutcomeValue,Sn as QtiSimpleAssociableChoice,Se as QtiSliderInteraction,an as QtiStylesheet,ve as QtiTest,xt as QtiTextEntryInteraction,vn as QtiVariable,ai as ResponseVariable,bp as SubmissionMode,yt as TestEvents,vt as TouchDragAndDrop,gg as fixSelfClosingTags,ps as qtiContentBody,Xe as qtiRubricBlock,yI as qtiTransform};
2027
+ /*! Bundled license information:
2028
+
2029
+ react/cjs/react.production.min.js:
2030
+ (**
2031
+ * @license React
2032
+ * react.production.min.js
2033
+ *
2034
+ * Copyright (c) Facebook, Inc. and its affiliates.
2035
+ *
2036
+ * This source code is licensed under the MIT license found in the
2037
+ * LICENSE file in the root directory of this source tree.
2038
+ *)
2039
+
2040
+ react/cjs/react.development.js:
2041
+ (**
2042
+ * @license React
2043
+ * react.development.js
2044
+ *
2045
+ * Copyright (c) Facebook, Inc. and its affiliates.
2046
+ *
2047
+ * This source code is licensed under the MIT license found in the
2048
+ * LICENSE file in the root directory of this source tree.
2049
+ *)
2050
+
2051
+ @lit/reactive-element/node/decorators/custom-element.js:
2052
+ (**
2053
+ * @license
2054
+ * Copyright 2017 Google LLC
2055
+ * SPDX-License-Identifier: BSD-3-Clause
2056
+ *)
2057
+
2058
+ @lit/reactive-element/node/decorators/property.js:
2059
+ (**
2060
+ * @license
2061
+ * Copyright 2017 Google LLC
2062
+ * SPDX-License-Identifier: BSD-3-Clause
2063
+ *)
2064
+
2065
+ @lit/reactive-element/node/decorators/state.js:
2066
+ (**
2067
+ * @license
2068
+ * Copyright 2017 Google LLC
2069
+ * SPDX-License-Identifier: BSD-3-Clause
2070
+ *)
2071
+
2072
+ @lit/reactive-element/node/decorators/base.js:
2073
+ (**
2074
+ * @license
2075
+ * Copyright 2017 Google LLC
2076
+ * SPDX-License-Identifier: BSD-3-Clause
2077
+ *)
2078
+
2079
+ @lit/reactive-element/node/decorators/event-options.js:
2080
+ (**
2081
+ * @license
2082
+ * Copyright 2017 Google LLC
2083
+ * SPDX-License-Identifier: BSD-3-Clause
2084
+ *)
2085
+
2086
+ @lit/reactive-element/node/decorators/query.js:
2087
+ (**
2088
+ * @license
2089
+ * Copyright 2017 Google LLC
2090
+ * SPDX-License-Identifier: BSD-3-Clause
2091
+ *)
2092
+
2093
+ @lit/reactive-element/node/decorators/query-all.js:
2094
+ (**
2095
+ * @license
2096
+ * Copyright 2017 Google LLC
2097
+ * SPDX-License-Identifier: BSD-3-Clause
2098
+ *)
2099
+
2100
+ @lit/reactive-element/node/decorators/query-async.js:
2101
+ (**
2102
+ * @license
2103
+ * Copyright 2017 Google LLC
2104
+ * SPDX-License-Identifier: BSD-3-Clause
2105
+ *)
2106
+
2107
+ @lit/reactive-element/node/decorators/query-assigned-elements.js:
2108
+ (**
2109
+ * @license
2110
+ * Copyright 2021 Google LLC
2111
+ * SPDX-License-Identifier: BSD-3-Clause
2112
+ *)
2113
+
2114
+ @lit/reactive-element/node/decorators/query-assigned-nodes.js:
2115
+ (**
2116
+ * @license
2117
+ * Copyright 2017 Google LLC
2118
+ * SPDX-License-Identifier: BSD-3-Clause
2119
+ *)
2120
+
2121
+ @lit-labs/ssr-dom-shim/lib/element-internals.js:
2122
+ (**
2123
+ * @license
2124
+ * Copyright 2023 Google LLC
2125
+ * SPDX-License-Identifier: BSD-3-Clause
2126
+ *)
2127
+
2128
+ @lit-labs/ssr-dom-shim/index.js:
2129
+ (**
2130
+ * @license
2131
+ * Copyright 2019 Google LLC
2132
+ * SPDX-License-Identifier: BSD-3-Clause
2133
+ *)
2134
+
2135
+ @lit/reactive-element/node/css-tag.js:
2136
+ (**
2137
+ * @license
2138
+ * Copyright 2019 Google LLC
2139
+ * SPDX-License-Identifier: BSD-3-Clause
2140
+ *)
2141
+
2142
+ @lit/reactive-element/node/reactive-element.js:
2143
+ (**
2144
+ * @license
2145
+ * Copyright 2017 Google LLC
2146
+ * SPDX-License-Identifier: BSD-3-Clause
2147
+ *)
2148
+
2149
+ lit-html/node/lit-html.js:
2150
+ (**
2151
+ * @license
2152
+ * Copyright 2017 Google LLC
2153
+ * SPDX-License-Identifier: BSD-3-Clause
2154
+ *)
2155
+
2156
+ lit-element/lit-element.js:
2157
+ (**
2158
+ * @license
2159
+ * Copyright 2017 Google LLC
2160
+ * SPDX-License-Identifier: BSD-3-Clause
2161
+ *)
2162
+
2163
+ lit-html/node/is-server.js:
2164
+ (**
2165
+ * @license
2166
+ * Copyright 2022 Google LLC
2167
+ * SPDX-License-Identifier: BSD-3-Clause
2168
+ *)
2169
+
2170
+ lit-html/node/static.js:
2171
+ (**
2172
+ * @license
2173
+ * Copyright 2020 Google LLC
2174
+ * SPDX-License-Identifier: BSD-3-Clause
2175
+ *)
2176
+
2177
+ @lit-labs/context/lib/context-request-event.js:
2178
+ (**
2179
+ * @license
2180
+ * Copyright 2021 Google LLC
2181
+ * SPDX-License-Identifier: BSD-3-Clause
2182
+ *)
2183
+
2184
+ @lit-labs/context/lib/create-context.js:
2185
+ (**
2186
+ * @license
2187
+ * Copyright 2021 Google LLC
2188
+ * SPDX-License-Identifier: BSD-3-Clause
2189
+ *)
2190
+
2191
+ @lit-labs/context/lib/controllers/context-consumer.js:
2192
+ (**
2193
+ * @license
2194
+ * Copyright 2021 Google LLC
2195
+ * SPDX-License-Identifier: BSD-3-Clause
2196
+ *)
2197
+
2198
+ @lit-labs/context/lib/value-notifier.js:
2199
+ (**
2200
+ * @license
2201
+ * Copyright 2021 Google LLC
2202
+ * SPDX-License-Identifier: BSD-3-Clause
2203
+ *)
2204
+
2205
+ @lit-labs/context/lib/controllers/context-provider.js:
2206
+ (**
2207
+ * @license
2208
+ * Copyright 2021 Google LLC
2209
+ * SPDX-License-Identifier: BSD-3-Clause
2210
+ *)
2211
+
2212
+ @lit-labs/context/lib/context-root.js:
2213
+ (**
2214
+ * @license
2215
+ * Copyright 2021 Google LLC
2216
+ * SPDX-License-Identifier: BSD-3-Clause
2217
+ *)
2218
+
2219
+ @lit-labs/context/lib/decorators/provide.js:
2220
+ (**
2221
+ * @license
2222
+ * Copyright 2017 Google LLC
2223
+ * SPDX-License-Identifier: BSD-3-Clause
2224
+ *)
2225
+
2226
+ @lit-labs/context/lib/decorators/consume.js:
2227
+ (**
2228
+ * @license
2229
+ * Copyright 2022 Google LLC
2230
+ * SPDX-License-Identifier: BSD-3-Clause
2231
+ *)
2232
+
2233
+ @lit-labs/context/index.js:
2234
+ (**
2235
+ * @license
2236
+ * Copyright 2021 Google LLC
2237
+ * SPDX-License-Identifier: BSD-3-Clause
2238
+ *)
2239
+
2240
+ lit-html/node/directives/if-defined.js:
2241
+ (**
2242
+ * @license
2243
+ * Copyright 2018 Google LLC
2244
+ * SPDX-License-Identifier: BSD-3-Clause
2245
+ *)
2246
+
2247
+ lit-html/node/directive-helpers.js:
2248
+ (**
2249
+ * @license
2250
+ * Copyright 2020 Google LLC
2251
+ * SPDX-License-Identifier: BSD-3-Clause
2252
+ *)
2253
+
2254
+ lit-html/node/directive.js:
2255
+ (**
2256
+ * @license
2257
+ * Copyright 2017 Google LLC
2258
+ * SPDX-License-Identifier: BSD-3-Clause
2259
+ *)
2260
+
2261
+ lit-html/node/async-directive.js:
2262
+ (**
2263
+ * @license
2264
+ * Copyright 2017 Google LLC
2265
+ * SPDX-License-Identifier: BSD-3-Clause
2266
+ *)
2267
+
2268
+ lit-html/node/directives/ref.js:
2269
+ (**
2270
+ * @license
2271
+ * Copyright 2020 Google LLC
2272
+ * SPDX-License-Identifier: BSD-3-Clause
2273
+ *)
2274
+
2275
+ lit-html/node/directives/unsafe-html.js:
2276
+ (**
2277
+ * @license
2278
+ * Copyright 2017 Google LLC
2279
+ * SPDX-License-Identifier: BSD-3-Clause
2280
+ *)
2281
+
2282
+ @lit-labs/react/create-component.js:
2283
+ (**
2284
+ * @license
2285
+ * Copyright 2018 Google LLC
2286
+ * SPDX-License-Identifier: BSD-3-Clause
2287
+ *)
2288
+ */