text: var app=function(){"use strict";function e(){}function t(e){return e()}function r(){return Object.create(null)}function o(e){e.forEach(t)}function n(e){return"function"==typeof e}function i(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function s(e){return null==e?"":e}function a(e,t){e.appendChild(t)}function l(e,t,r){var o;const n=function(e){const t=function(e){return e?e.getRootNode?e.getRootNode():e.ownerDocument:document}(e);return t.host,t}(e);if(!(null===(o=n)||void 0===o?void 0:o.getElementById(t))){const e=h("style");e.id=t,e.textContent=r,function(e,t){a(e.head||e,t)}(n,e)}}function c(e,t,r){e.insertBefore(t,r||null)}function d(e){e.parentNode.removeChild(e)}function u(e,t){for(let r=0;r<e.length;r+=1)e[r]&&e[r].d(t)}function h(e){return document.createElement(e)}function m(e){return document.createTextNode(e)}function p(){return m(" ")}function f(){return m("")}function g(e,t,r,o){return e.addEventListener(t,r,o),()=>e.removeEventListener(t,r,o)}function y(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function b(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function _(e,t,r,o){e.style.setProperty(t,r,o?"important":"")}let v;function w(e){v=e}function x(){if(!v)throw new Error("Function called outside component initialization");return v}function A(){const e=x();return(t,r)=>{const o=e.$$.callbacks[t];if(o){const n=function(e,t,r=!1){const o=document.createEvent("CustomEvent");return o.initCustomEvent(e,r,!1,t),o}(t,r);o.slice().forEach((t=>{t.call(e,n)}))}}}const E=[],S=[],T=[],D=[],C=Promise.resolve();let k=!1;function j(e){T.push(e)}let O=!1;const N=new Set;function F(){if(!O){O=!0;do{for(let e=0;e<E.length;e+=1){const t=E[e];w(t),M(t.$$)}for(w(null),E.length=0;S.length;)S.pop()();for(let e=0;e<T.length;e+=1){const t=T[e];N.has(t)||(N.add(t),t())}T.length=0}while(E.length);for(;D.length;)D.pop()();k=!1,O=!1,N.clear()}}function M(e){if(null!==e.fragment){e.update(),o(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(j)}}const $=new Set;function L(e,t){e&&e.i&&($.delete(e),e.i(t))}function P(e,r,i,s){const{fragment:a,on_mount:l,on_destroy:c,after_update:d}=e.$$;a&&a.m(r,i),s||j((()=>{const r=l.map(t).filter(n);c?c.push(...r):o(r),e.$$.on_mount=[]})),d.forEach(j)}function q(e,t){const r=e.$$;null!==r.fragment&&(o(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}function B(e,t){-1===e.$$.dirty[0]&&(E.push(e),k||(k=!0,C.then(F)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function I(t,n,i,s,a,l,c,u=[-1]){const h=v;w(t);const m=t.$$={fragment:null,ctx:null,props:l,update:e,not_equal:a,bound:r(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(h?h.$$.context:n.context||[]),callbacks:r(),dirty:u,skip_bound:!1,root:n.target||h.$$.root};c&&c(m.root);let p=!1;if(m.ctx=i?i(t,n.props||{},((e,r,...o)=>{const n=o.length?o[0]:r;return m.ctx&&a(m.ctx[e],m.ctx[e]=n)&&(!m.skip_bound&&m.bound[e]&&m.bound[e](n),p&&B(t,e)),r})):[],m.update(),p=!0,o(m.before_update),m.fragment=!!s&&s(m.ctx),n.target){if(n.hydrate){const e=function(e){return Array.from(e.childNodes)}(n.target);m.fragment&&m.fragment.l(e),e.forEach(d)}else m.fragment&&m.fragment.c();n.intro&&L(t.$$.fragment),P(t,n.target,n.anchor,n.customElement),F()}w(h)}class R{$destroy(){q(this,1),this.$destroy=e}$on(e,t){const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{const e=r.indexOf(t);-1!==e&&r.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}var H=function(e){let t={stem:"",term:[],option:[]},r=e.split("\n"),o=[];return r.map((e=>{e.trim()&&o.push(e)})),o.map((function(e,r){let o=e.replace(/,$/gm,"");if(o=o.split(","),0==r)o.map(((e,r)=>{0==r?t.stem=e:t.option.push({id:"o"+r,text:e.replace(/^\s+/g,"")})}));else{let e="",n="";o.map(((t,r)=>{if(0==r)e=t.replace(/^\s+/g,"");else if("1"==t.trim())return n="o"+r,!1})),t.term.push({id:"t"+r,text:e,correct:n})}})),t};function J(e,t={}){const r="tagin-tag",o="tagin-tag-remove",n="tagin-input",i=e.dataset.separator||t.separator||",",s=e.dataset.duplicate||t.duplicate||"false",a=(0,eval)(e.dataset.transform)||t.transform||(e=>e),l=e.dataset.placeholder||t.placeholder||"",c=e=>`<span class="tagin-tag">${e}<span class="${o}"></span></span>`,d=()=>e.value,u=()=>d().split(i);!function(){const t=`<div class="${"tagin-wrapper "+e.className.replace("tagin","").trim()}">${""===d().trim()?"":u().map(c).join("")}<input type="text" class="tagin-input" placeholder="${l}"></div>`;e.insertAdjacentHTML("afterend",t)}();const h=e.nextElementSibling,m=h.getElementsByClassName(n)[0],p=()=>[...h.getElementsByClassName(r)].map((e=>e.textContent)),f=()=>p().join(i),g=()=>{e.value=f(),e.dispatchEvent(new Event("change"))};function y(){const e=document.createElement("div");e.classList.add(n,"tagin-input-hidden");const t=m.value||m.getAttribute("placeholder")||"";e.innerHTML=t.replace(/ /g,"&nbsp;"),document.body.appendChild(e),m.style.setProperty("width",Math.ceil(window.getComputedStyle(e).width.replace("px",""))+1+"px"),e.remove()}function b(e=!1){const t=a(m.value.replace(new RegExp(function(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}(i),"g"),"").trim());""===t&&(m.value=""),(m.value.includes(i)||e&&""!=m.value)&&(p().includes(t)&&"false"===s?function(e){for(const t of h.getElementsByClassName(r))t.textContent===e&&(t.style.transform="scale(1.09)",setTimeout((()=>{t.removeAttribute("style")}),150))}(t):(m.insertAdjacentHTML("beforebegin",c(t)),g()),m.value="",m.removeAttribute("style"))}h.addEventListener("click",(()=>m.focus())),m.addEventListener("focus",(()=>h.classList.add("focus"))),m.addEventListener("blur",(()=>h.classList.remove("focus"))),document.addEventListener("click",(e=>{e.target.closest("."+o)&&(e.target.closest("."+o).parentNode.remove(),g())})),m.addEventListener("keydown",(e=>{""===m.value&&8===e.keyCode&&h.getElementsByClassName(r).length&&(h.querySelector(".tagin-tag:last-of-type").remove(),g())})),m.addEventListener("input",(()=>{b(),y()})),m.addEventListener("blur",(()=>{b(!0),y()})),y(),e.addEventListener("change",(()=>{d()!==f()&&([...h.getElementsByClassName(r)].map((e=>e.remove())),""!==d().trim()&&m.insertAdjacentHTML("beforebegin",u().map(c).join("")))}))}var X=".tagin{display:none}.tagin-wrapper{border: 1px solid #ccc;display:flex;flex-wrap:wrap;height:auto;padding:calc(.375rem - 2px) calc(.75rem - 2px);position:relative;overflow:hidden;cursor:text}.tagin-wrapper.focus{color:#495057;background-color:#fff;border-color:#80bdff;outline:0;box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}.tagin.is-valid+.tagin-wrapper,.was-validated .tagin:valid+.tagin-wrapper{border-color:#28a745}.tagin.is-invalid+.tagin-wrapper,.was-validated .tagin:invalid+.tagin-wrapper{border-color:#dc3545}.tagin-tag{border-radius:.25rem;color:#fff;border:0;padding:0 4px;display:inline-flex;align-items:center;height:24px;margin:2px;font-weight:300;background-color:#6c757d;transition:transform .1s}.tagin-tag-remove{margin-left:2px;width:18px;height:18px;cursor:pointer;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23a0aec0' width='18px' height='18px'%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z'/%3E%3C/svg%3E\")}.tagin-tag-remove:hover{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white' width='18px' height='18px'%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z'/%3E%3C/svg%3E\")}.tagin-input{margin-left:2px;border-color:transparent;outline:0;border-width:1px 0;padding:0 2px 0 0;height:28px;color:#495057}.tagin-input:not(.tagin-input-hidden){width:4px;min-width:4px}.tagin-input-hidden{position:absolute;top:0;left:-9999px;overflow:hidden;visibility:hidden;white-space:nowrap";class U extends class{constructor(e){this._servers=["http://localhost/pe-gold3/","https://www.ucertify.com/","https://www.jigyaasa.info/","http://172.10.195.203/pe-gold3/"],this._REMOTE_API_URL=this._servers[1]+"pe-api/1/index.php",this._client={email:"pradeep.yadav@ucertify.com",password:"786pradeep",isSocial:"false",clientId:"040MA"}}validateApp(e){return new Promise(((t,r)=>{let o=e?"&action=refresh_token&refresh_token=1":"",n=this._client.isSocial?"&social_login=1":"",i=`${this._REMOTE_API_URL}?func=cat2.authenticate&device_id=${this._client.clientId}&email=${this._client.email}&password=${this._client.password+n+o}`,s=new XMLHttpRequest;s.open("POST",i,!0),s.onreadystatechange=e=>{if(4==s.readyState&&200===s.status)try{let e=s.responseText.match(/<jsonstring>(.*?)<\/jsonstring>/);t(JSON.parse(e[1]))}catch(e){r(e)}},s.onerror=e=>{r(e)},e&&s.setRequestHeader("old-access-token",globalThis.apiAccessToken),s.send()}))}getAPIDataJ(e,t,r=function(){}){let o="",n={},i="",s=t.ajax_info||{};if(t=this._assignPartial(t,{},"ajax_info",!0),n.device_id=this._client.clientId,"object"==typeof t)for(let e in t)"object"!=typeof t[e]&&(o+="&"+e+"="+t[e]);if(void 0!==e&&""!=e){for(let e in n)"object"!=typeof n[e]&&(i+="&"+e+"="+n[e]);i+="&func="+e}this.getAPIDataJSON(this._REMOTE_API_URL+"?"+i+"&debug=0&"+o,o,s,(o=>{"Expired"==o?this.getAPIDataJ(e,t,r):r(o)}),e)}getAPIDataJSON(e,t,r,o=function(){},n){let i=new XMLHttpRequest;i.open("POST",e,!0),i.onreadystatechange=e=>{if(4==i.readyState&&200===i.status){let e=i.responseText,r={};try{let t=e.match(/<jsonstring>(.*?)<\/jsonstring>/);if(""!=t[1]){let e=JSON.parse(t[1]);if(e.error&&["Expired","-9"].includes(e.error.error_id))return console.log("Api Error = ",e.error.error_id),void this.validateApp(-9!=e.error.error_id).then((e=>{"Success"==e.status&&(this.setAccessKey(e),o("Expired"))})).catch((e=>{console.log(e)}));e.response?(r=e.response,console.warn("Api data J reponse <-- Received --\x3e",e)):null==e.response&&null==e.error?(r=e,console.warn("Api data J reponse <-- Received II--\x3e",r)):(r=void 0,console.warn({Response_error:e.error}))}}catch(o){if(console.warn("Please check your Internet connection."),console.log("Api data error = ",e),!t.includes("must_reply_override"))return 0;r=void 0}o(r)}},t.includes("no_access_token_required")||i.setRequestHeader("access-token",globalThis.apiAccessToken),i.setRequestHeader("Content-type","application/json"),i.setRequestHeader("Access-Control-Allow-Origin","*"),i.setRequestHeader("Access-Control-Allow-Headers","*"),i.send()}_assignPartial(e,t={},r,o=!1){if(r=r.split(","),o)for(let o in e){-1===r.indexOf(o)&&(t[o]=e[o])}else for(let o in r){let n=r[o];void 0!==e[n]&&(t[n]=e[n])}return t}setAccessKey(e){e.access_token&&e.access_token.length>50&&(globalThis.apiAccessToken=e.access_token,"undefined"!=typeof Storage&&localStorage.setItem("apiAccessToken",e.access_token))}}{constructor(e){super(),this.trackInf={},this.buffer={},this.bsCat1=["Modal","Tooltip","Collapse","Popover","ScrollSpy","Tab","Alert","Dropdown"],this.extraSelectors=["hidden","visible","selected","checked","enabled","children","childNodes"],this.parseHtml=this.templateHtml.bind(this),this.isSSDloaded="",this.loadSSD()}loadSSD(){"object"==typeof globalThis?(globalThis.eventTracker=globalThis.eventTracker||{},globalThis.JUITemp=globalThis.JUITemp||{}):this.isSSDloaded=setInterval((()=>{"object"==typeof globalThis&&(globalThis.eventTracker=globalThis.eventTracker||{},globalThis.JUITemp=globalThis.JUITemp||{},clearInterval(this.isSSDloaded))}),500)}validate(e){return new Promise(((t,r)=>{this.validateApp(e).then((e=>{if("Success"!=e.status)r(e);else try{this.setAccessKey(e),t(e)}catch(e){r(e)}})).catch((e=>{r(e)}))}))}param2Url(e){let t=[];for(var r in e){var o=r+"="+e[r];t.push(o)}return t.join("&")}unique(e){return e.filter(((e,t,r)=>r.indexOf(e)===t))}parseJSON(e,t){let r=t||!1;try{return JSON.parse(e)}catch(e){return r&&console.warn(e),{}}}parseDom(e){return(new DOMParser).parseFromString(e,"text/html")}addScript(e,t,r={}){let o=document.createElement("script");return t?(o.src=t,o.async=!0,r.callback&&(o.onload=function(){r.callback()})):o.innerHTML=e,(r.target?document.body:document.head).append(o),o}createLink(e,t={}){let r=document.createElement("link"),o=t.target?document.body:document.head;return r.href=e,t.preload?(r.rel="preload",r.onload=function(){this.rel=t.type||"stylesheet"},r.as=t.as||"style",r.crossorigin="anonymous"):r.rel="stylesheet",o.append(r),r}enableTagView(e){let t=document.querySelectorAll(".tagin");for(const r of t)e?J(r,e):J(r);return t}addTagViewCss(){this.insert(document.head,`<style>${X}</style>`,"beforeend")}hasInall(e,t){let r="object"==typeof e?e:document.querySelectorAll(e),o=[];return r&&Array.prototype.forEach.call(r,(e=>{e.contains(t)&&o.push(e)})),o}removeDomAttr(e,t){let r="object"==typeof e?e:document.querySelector(e);return r&&Array.prototype.forEach.call(t,(e=>{r.removeAttribute(e)})),r||{}}trigger(e,t,r){let o="object"==typeof e?e:document.querySelector(e);o?r?o.dispatchEvent(new Event(t,r)):o.dispatchEvent(new Event(t)):console.warn("Selector not found.",e)}findChild(e,t,r){let o=("object"==typeof e?e:document.querySelector(e)).children||[],n=[];if(t&&o.length>0){let e=0;for(;o[e];){if(o[e].matches(t)){if(!r){n=o[e];break}n.push(o[e])}e++}return n}return o}closest(e,t){let r="object"==typeof e?e:document.querySelector(e),o=r?r.parentElement:null,n=[];if(t)for(;o;){if(this.find(o,t)){n=this.find(o,t);break}o=o.parentElement}return n}parent(e,t){let r="object"==typeof e?e:document.querySelector(e),o=r?r.parentElement:null;if(t)for(;o&&!o.matches(t);)o=o.parentElement;return o}siblings(e,t){let r="object"==typeof e?e:document.querySelector(e),o=[];if(r)for(var n=r.parentNode.firstChild;n;)n!==r&&n.nodeType===Node.ELEMENT_NODE&&(t?n.matches(t)&&o.push(n):o.push(n)),n=n.nextElementSibling||n.nextSibling;return o}nextAll(e){let t=("object"==typeof e?e:document.querySelector(e)).nextElementSibling,r=[];if(t)for(;t;)t=t.nextElementSibling,r.push(t);return r}nextElm(e,t){let r=("object"==typeof e?e:document.querySelector(e)).nextElementSibling;if(t)for(;r&&!r.matches(t);)r=r.nextElementSibling;return r}prevElm(e,t){let r=("object"==typeof e?e:document.querySelector(e)).previousElementSibling;if(t)for(;r&&!r.matches(t);)r=r.previousElementSibling;return r}onReady(e){document.addEventListener("DOMContentLoaded",(function(t){e.call(t)}))}create(e,t){let r=document.createElement(e);return t&&(r.innerHTML=t),r}clone(e){let t="object"==typeof e?e:document.querySelector(e);return t?t.cloneNode(!0):null}serialize(e){let t="object"==typeof e?e:document.querySelector(e);return t?new URLSearchParams(new FormData(t)).toString():null}empty(e){let t="object"==typeof e?e:document.querySelector(e);if(t)for(;t.firstChild;)t.removeChild(t.firstChild);return t}getBS(e,t,r){let o="object"==typeof e?e:document.querySelector(e);if(o&&this.bsCat1.includes(t)){if(bootstrap[t].getInstance&&bootstrap[t].getInstance(o))return bootstrap[t].getInstance(o);return new bootstrap[t](o,r)}return{}}enableBsAll(e,t,r={}){if(r={...r,trigger:"hover"},this.bsCat1.includes(t)){return[].slice.call(document.querySelectorAll(e)).map((function(e){return r?new bootstrap[t](e,r):new bootstrap[t](e)}))}return console.error("Bootstrap can't enable for this component name"),[]}hideBsAll(e,t){let r=[].slice.call(document.querySelectorAll(e));this.bsCat1.includes(t)?r.forEach((function(e){bootstrap[t].getInstance(e)?.hide?.()})):console.error("Bootstrap can't disable for this component name")}initDropdown(){let e=this;e.enableBsAll('[data-toggle="dropdown"]',"Dropdown"),e.bind("body","click",(function(t){t.target.closest('[data-toggle="dropdown"]')||(e.selectAll('[data-toggle="dropdown"]').forEach((function(e){e.classList.remove("show")})),e.selectAll(".dropdown-menu").forEach((function(e){e.classList.remove("show")})))}))}ajax(e){let t="";if("object"==typeof e.data)if(e.formData)t=e.data;else if(e.withUrl){let t="?";for(let r in e.data)"object"!=typeof e.data[r]&&(t+="&"+r+"="+e.data[r]);e.url+=t}else{t=new FormData;for(let r in e.data)"object"==typeof e.data[r]&&this.isValid(e.data[r])?t=this.jsonFormEncode(t,r,e.data[r]):t.append(r,e.data[r])}return new Promise(((r,o)=>{const n=new XMLHttpRequest;n.open(e.type||"POST",e.url,!0),e.responseType&&(n.responseType=e.responseType),n.onreadystatechange=e=>{if(4==n.readyState&&200===n.status)try{r(n.responseText,e)}catch(e){o(e)}},n.onerror=e=>{o(e)},e.onStart&&(n.onloadstart=e.onStart),e.onEnd&&(n.onloadend=e.onEnd),n.send(t)}))}jsonFormEncode(e,t,r){try{if(Array.isArray(r))for(let o=0;o<r.length;o++)this.jsonFormEncode(e,`${t}[${o}]`,r[o]);else if("object"==typeof r)for(let o in r)this.jsonFormEncode(e,`${t}[${o}]`,r[o]);else e.append(t,r)}catch(e){console.warn("Please provide valid JSON Object in ajax data."+e)}return e}getJSON(e){var t=document.createElement("script");t.src=e,document.body.appendChild(t)}offset(e){let t="object"==typeof e?e:document.querySelector(e),r={rect:t};if(t){let e=t.getBoundingClientRect();r={target:t,clientRect:e,top:e.top+window.scrollY,left:e.left+window.scrollX}}return r}findInArray(e,t){return!(!e||!t)&&t.find((t=>t==e))}inArray(e,t){let r=[];return e&&t&&e.forEach((e=>{t.forEach((t=>{e==t&&!r.includes(t)&&r.push(t)}))})),r.length>0?r.length:-1}serializeArray(e,t){let r=[];return e.forEach((e=>{if((!t||e.matches(t))&&(console.log(e.attributes.length),e.attributes.length>0)){let t={};for(let r of e.attributes)t[r.name]=r.value;r.push(t)}})),r}find(e,t,r){let o="object"==typeof e?e:document.querySelector(e);if(o)switch("object"==typeof r?"action":r){case"all":return o?.querySelectorAll(t);case"child":return o?.querySelector(t).childNodes;case"hidden":return Array.prototype.filter.call(o.querySelectorAll(t),(e=>0==e.offsetWidth&&0==e.offsetHeight));case"visible":return Array.prototype.filter.call(o.querySelectorAll(t),(e=>e.offsetWidth>0&&e.offsetHeight>0));case"checked":return Array.prototype.filter.call(document.querySelectorAll(selector),(e=>e.checked));case"selected":return Array.prototype.filter.call(o.querySelectorAll(t),(e=>e.selected));case"action":{let e=o.querySelectorAll(t);return e&&e.length>0&&r.action&&e.forEach((e=>this.jsAction(e,{action:r.action,actionData:r.actionData}))),e}default:return o.querySelector(t)}return[]}selectAll(e,t,r){let o=this.isExtraSelectors(t,r)?this.selectAction(e,t):"object"==typeof e?e:document.querySelectorAll(e);return o&&o.length>0&&t&&Array.prototype.forEach.call(o,(e=>this.jsAction(e,{action:t,actionData:r}))),o}isExtraSelectors(e,t){return!!this.extraSelectors.includes(e)&&("checked"!=e||void 0===t)}select(e,t,r){return this.isExtraSelectors(t,r)?this.selectAction(e,t):((e="object"==typeof e?e:document.querySelector(e))&&this.jsAction(e,{action:t,actionData:r}),e||{})}getElm(e,t){return document.getElementById(e)||{}}listenAll(e,t,r){let o="object"==typeof e?e:document.querySelectorAll(e);if(o&&o.length>0)for(let e=0;e<o.length;e++)o[e].addEventListener(t,r,!1)}bind(e,t,r){let o="object"==typeof e?e:document.querySelector(e);o&&o.addEventListener(t,r)}listen(e,t,r,o){let n="object"==typeof e?e:"undefined"!=typeof document&&document.querySelector(e);if(!n)return!1;globalThis.eventTracker[r]&&n.removeEventListener(t,globalThis.eventTracker[r]),globalThis.eventTracker[r]=this.onListen.bind(this,r,o,n),n.addEventListener(t,globalThis.eventTracker[r])}removeClass(e,t){let r="object"==typeof e?e:document.querySelectorAll(e);return r&&r?.length>0?Array.prototype.forEach.call(r,(e=>this.jsAction(e,{action:"removeClass",actionData:t}))):"object"==typeof r&&this.jsAction(r,{action:"removeClass",actionData:t}),r||{}}addClass(e,t){let r="object"==typeof e?e:document.querySelectorAll(e);return r&&r?.length>0?Array.prototype.forEach.call(r,(e=>this.jsAction(e,{action:"addClass",actionData:t}))):"object"==typeof r&&this.jsAction(r,{action:"addClass",actionData:t}),r||{}}toggleDom(e,t="toggleDisplay"){let r="object"==typeof e?e:document.querySelectorAll(e);return r&&r.length>0&&Array.prototype.forEach.call(r,(e=>this.jsAction(e,{action:t}))),r||{}}select2(e){let t=document.querySelector(e+" + span > .selection > span");t&&t.click()}setData(e,t){let r="object"==typeof e?e:document.querySelector(e);if(r)for(let e in t)r.dataset[e]=t[e];return r||{}}getData(e,t){return("object"==typeof e?e:document.querySelector(e))?.dataset[t]||{}}setAttr(e,t){let r="object"==typeof e?e:document.querySelector(e);if(r)for(let e in t)r.setAttribute(e,t[e]);return r||{}}setCss(e,t){let r="object"==typeof e?e:document.querySelector(e);if(r)for(let e in t)r.style&&(r.style[e]=t[e]);return r||{}}remove(e){let t=document.querySelectorAll(e);t.length>0&&Array.prototype.forEach.call(t,(e=>e.remove()))}replaceWith(e,t){let r="object"==typeof e?e:document.querySelector(e);if(r){let e=this.templateHtml(t);return r.replaceWith(e),e}return r}wrap(e,t){let r="object"==typeof e?e:document.querySelector(e);if(r){let e=this.templateHtml(t),o=this.innerChild(e);return o.innerHTML=r.outerHTML,r.parentNode.replaceChild(e,r),o.firstChild}return r}unwrap(e){let t="object"==typeof e?e:document.querySelectorAll(e);t&&t.length>0&&t.forEach((e=>{e.outerHTML=e.innerHTML}))}insertAfter(e,t){return e="object"==typeof e?e:document.querySelector(e),t="object"==typeof t?t:document.querySelector(t),e&&t&&t.parentNode.insertBefore(e,t.nextSibling),e}insert(e,t,r){let o="object"==typeof e?e:document.querySelector(e);if(o)switch(r){case"beforebegin":o.insertAdjacentHTML("beforebegin",t);break;case"afterbegin":o.insertAdjacentHTML("afterbegin",t);break;case"beforeend":o.insertAdjacentHTML("beforeend",t);break;case"afterend":o.insertAdjacentHTML("afterend",t)}return o||{}}domIndex(e){let t="object"==typeof e?e:document.querySelector(e);return t?Array.from(t.parentNode.children).indexOf(t):-1}match(e,t){let r="object"==typeof e?e:document.querySelector(e),o=[];return r&&r.length>0?(Array.prototype.forEach.call(r,(e=>{e.matches(t)&&o.push(e)})),o):r&&r.matches(t)}contains(e,t){let r="object"==typeof e?e:document.querySelectorAll(e);return r&&r.length>0?[].filter.call(r,(function(e){return RegExp(t).test(e.textContent)})):[]}extend(){let e={},t=!1,r=0,o=arguments.length;"[object Boolean]"===Object.prototype.toString.call(arguments[0])&&(t=arguments[0],r++);const n=function(r){for(let o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t&&"[object Object]"===Object.prototype.toString.call(r[o])?e[o]=extend(!0,e[o],r[o]):e[o]=r[o])};for(;r<o;r++){n(arguments[r])}return e}url(e){return e=e||("object"==typeof window?window.location.href:""),new URLSearchParams(e)}updateEditorUrl(e){let t=`?action=new&content_subtype=${e.subtype}&content_type=${e.type}&content_icon=${e.content_icon}&react_content=1`;window.history.replaceState(null,"",t)}getUrlVars(){let e,t=[],r=window.location.href.slice(window.location.href.indexOf("?")+1).split("&");for(let o=0;o<r.length;o++)e=r[o].split("="),t.push(e[0]),t[e[0]]=e[1];return t}setApiKey(e){globalThis.apiAccessToken=e}validateAjaxData(e,t){if(0==t||8==t){if(e&&!this.get("is_proposed")){if(e.content_text){try{e.content_text.answers.forEach(((t,r)=>{e.content_text.answers[r].answer=t.answer.replace(/\n/g,"")}))}catch(e){return{answers:[{is_correct:"0",answer:"Option A.",id:"01"},{is_correct:"0",answer:"Option B.",id:"02"},{is_correct:"0",answer:"Option C.",id:"03"},{is_correct:"0",answer:"Option D.",id:"04"}],correct_ans_str:"D",total_answers:4,correct_answers:1}}return e.content_text}return e}return{answers:[{is_correct:"0",answer:"Option A.",id:"01"},{is_correct:"0",answer:"Option B.",id:"02"},{is_correct:"0",answer:"Option C.",id:"03"},{is_correct:"0",answer:"Option D.",id:"04"}],correct_ans_str:"D",total_answers:4,correct_answers:1}}return e}watchDom(e,t,r={childList:!0}){let o=new MutationObserver((function(e){t&&t(e)}));return o.observe(e,r),o}ignoreEnity(e){return e.replace(/&amp;/g,"&")}cache(e){var t=new Map;return function(r){if(t.has(r))return t.get(r);var o=e(r);return t.set(r,o),o}}set(e,t){"save_item"==e&&this.addInLocalstorage(e,t),"object"==typeof globalThis&&(globalThis.JUITemp[e]=t)}addInLocalstorage(e,t){window.localStorage.setItem(e,t)}get(e){return globalThis.JUITemp[e]}caller(){console.log("called from "+arguments.callee.caller.toString())}showmsg(e,t=1e4){let r=document.querySelector("#showMsgAlert");this.buffer.showmsg&&clearTimeout(this.buffer.showmsg),r?(r.classList.add("show"),this.select("#showMsgBody").innerHTML=e):this.insert(document.body,this.getModalHtml(e,"Alert"),"beforebegin"),setTimeout((()=>{let e=this.getBS(document.querySelector("#showMsgAlert"),"Alert");e.close&&e.close()}),t)}alert(e){document.getElementById("showBSModal")?(this.getBS("#showBSModal","Modal").show(),this.select("#showBSBody").innerHTML=e||"No msg provided..."):(this.insert(document.body,this.getModalHtml(e,"showBSModal"),"beforeend"),this.getBS("#showBSModal","Modal").show())}formatXml(e,t){let r=t||!1,o=r?e.match(/<!--\[CDATA\[[\s\S]*?\]\]-->/gim):"";if(e=e.replace(/\t/g,"").replace(/(>)(<)(\/*)/g,"$1\n$2$3").replace(/ *(.*) +\n/g,"$1\n").replace(/(<.+>)(.+\n)/g,"$1\n$2"),r){let t=e.match(/<!--\[CDATA\[[\s\S]*?\]\]-->/gim);e=e.replace(t,o)}let n="",i=e.split("\n"),s=0,a="other",l={"single->single":0,"single->closing":-1,"single->opening":0,"single->other":0,"closing->single":0,"closing->closing":-1,"closing->opening":0,"closing->other":0,"opening->single":1,"opening->closing":0,"opening->opening":1,"opening->other":1,"other->single":0,"other->closing":-1,"other->opening":0,"other->other":0};for(let e=0;e<i.length;e++){let t=i[e];if(""!=t){let e=Boolean(t.match(/<.+\/>/)),r=Boolean(t.match(/<\/.+>/)),o=Boolean(t.match(/<[^!].*>/)),i=e?"single":r?"closing":o?"opening":"other",c=a+"->"+i;a=i;let d="";s+=l[c];for(let e=0;e<s;e++)d+="\t";"opening->closing"==c?n=n.substr(0,n.length-1)+t+"\n":n+=d+t+"\n"}}return n}getModalHtml(e,t){switch(t){case"Alert":return`\n                    <div id="showMsgAlert" class="alert alert-warning alert-dismissible text-center fade show" role="alert" style="z-index:99999;min-height:50px;position:fixed;width:100%;">\n                        <span id="showMsgBody">${e}</span>\n                        <button type="button" class="btn-close close" style="margin-top: -3px;" data-bs-dismiss="alert" data-dismiss="alert"  aria-label="Close"></button>\n                    </div>\n                `;case"showBSModal":return`\n                    <div class="modal fade" id="showBSModal" tabindex="-1" aria-labelledby="Alert" aria-hidden="true">\n                        <div class="modal-dialog modal-dialog-centered" id="showBSDialog">\n                            <div class="modal-content">\n                                <div class="modal-body text-center fs-5 pt-4" id="showBSBody">\n                                    ${e}\n                                </div>\n                                <div class="modal-footer">\n                                    <button type="button" class="btn bg-light m-auto text-dark border border-secondary" data-bs-dismiss="modal" data-dismiss="modal">OK</button>\n                                </div>\n                            </div>\n                        </div>\n                    </div>`;default:return"<div>Nothing</div>"}}isValid(e,t=!1){return!(!e||null==e||""==e||"undefined"==e||null==e)||!(!t||e==t)}store(e,t){}query(e){var t="item_error_log=1";if("object"==typeof e)for(let r in e)"object"!=typeof e[r]&&(t+="&"+r+"="+e[r]);return t}activate(e){document.querySelector("#activateLoaderContainer")&&document.querySelector("#activateLoaderContainer").remove(),e>0&&this.insert(document.body,'<div id="activateLoaderContainer" class="activateOverlay" style="z-index:9999999;"><center><div class="activator" style="height:100px; width: 100px;"></div></center></div>',"afterend")}onListen(e,t,r,o){let n=o.target,i=n.closest&&n.closest(e);i&&r.contains(i)&&t.call(this,i,o)}isFocus(e){return("object"==typeof e?e:document.querySelector(e))==document.activeElement}innerChild(e){let t="object"==typeof e?e:document.querySelector(e),r=t;if(t&&t.lastChild)for(t=t.lastChild;t;)r=t,t=t.lastChild;return r}templateHtml(e){let t=document.createElement("template");return t.innerHTML=e,t.content.firstElementChild.cloneNode(!0)}selectAction(e,t){switch(t){case"hidden":return Array.prototype.filter.call(document.querySelectorAll(e),(e=>0==e.offsetWidth&&0==e.offsetHeight));case"visible":return Array.prototype.filter.call(document.querySelectorAll(e),(e=>e.offsetWidth>0&&e.offsetHeight>0));case"selected":return Array.prototype.filter.call(document.querySelectorAll(e),(e=>e.selected));case"checked":return Array.prototype.filter.call(document.querySelectorAll(e),(e=>e.checked));case"enabled":return document.querySelectorAll(e+":not([disabled]");case"children":return document.querySelector(e).children;case"childNodes":return document.querySelector(e).childNodes;default:return document.querySelector(e)}}jsAction(e,t){if(e instanceof HTMLElement||e instanceof Node)switch(t.action){case"show":e.style.display=t.actionData||"";break;case"hide":e.style.display="none";break;case"toggleDisplay":e.style.display="none"==e.style.display?"block":"none";break;case"addClass":"object"==typeof t.actionData?e.classList.add(...t.actionData):e.classList.add(t.actionData);break;case"removeClass":"object"==typeof t.actionData?e.classList.remove(...t.actionData):e.classList.remove(t.actionData);break;case"toggleClass":e.classList.toggle(t.actionData);break;case"html":e.innerHTML=t.actionData;break;case"value":e.value=t.actionData;break;case"text":e.textContent=t.actionData;break;case"checked":e.checked=t.actionData;break;case"remove":e.remove();break;case"removeAttr":e.removeAttribute(t.actionData);break;case"css":this.setCss(e,t.actionData);break;case"attr":this.setAttr(e,t.actionData);break;case"data":this.setData(e,t.actionData);break;case"getData":this.getData(e,t.actionData)}}slideUp(e,t=500){e.style.transitionProperty="height, margin, padding",e.style.transitionDuration=t+"ms",e.style.boxSizing="border-box",e.style.height=e.offsetHeight+"px",e.offsetHeight,e.style.overflow="hidden",e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0,e.style.marginTop=0,e.style.marginBottom=0,window.setTimeout((()=>{e.style.display="none",e.style.removeProperty("height"),e.style.removeProperty("padding-top"),e.style.removeProperty("padding-bottom"),e.style.removeProperty("margin-top"),e.style.removeProperty("margin-bottom"),e.style.removeProperty("overflow"),e.style.removeProperty("transition-duration"),e.style.removeProperty("transition-property")}),t)}slideDown(e,t=500){e.style.removeProperty("display");let r=window.getComputedStyle(e).display;"none"===r&&(r="block"),e.style.display=r;let o=e.offsetHeight;e.style.overflow="hidden",e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0,e.style.marginTop=0,e.style.marginBottom=0,e.offsetHeight,e.style.boxSizing="border-box",e.style.transitionProperty="height, margin, padding",e.style.transitionDuration=t+"ms",e.style.height=o+"px",e.style.removeProperty("padding-top"),e.style.removeProperty("padding-bottom"),e.style.removeProperty("margin-top"),e.style.removeProperty("margin-bottom"),window.setTimeout((()=>{e.style.removeProperty("height"),e.style.removeProperty("overflow"),e.style.removeProperty("transition-duration"),e.style.removeProperty("transition-property")}),t)}slideToggle(e,t=500){return"none"===window.getComputedStyle(e).display?this.slideDown(e,t):this.slideUp(e,t)}setCookie(e,t,r){const o=new Date;o.setTime(o.getTime()+24*r*60*60*1e3);let n="expires="+o.toUTCString();document.cookie=e+"="+t+";"+n+";path=/"}getCookie(e){let t=e+"=",r=decodeURIComponent(document.cookie).split(";");for(let e=0;e<r.length;e++){let o=r[e];for(;" "==o.charAt(0);)o=o.substring(1);if(0==o.indexOf(t))return o.substring(t.length,o.length)}return""}}new U;class z{config={};VERSION="1.2.0";DOMNodeTypes={ELEMENT_NODE:1,TEXT_NODE:3,CDATA_SECTION_NODE:4,COMMENT_NODE:8,DOCUMENT_NODE:9};constructor(){this.initConfigDefaults(),this.initRequiredPolyfills()}initConfigDefaults(){void 0===this.config.escapeMode&&(this.config.escapeMode=!0),this.config.attributePrefix=this.config.attributePrefix||"_",this.config.arrayAccessForm=this.config.arrayAccessForm||"none",this.config.emptyNodeForm=this.config.emptyNodeForm||"text",void 0===this.config.enableToStringFunc&&(this.config.enableToStringFunc=!0),this.config.arrayAccessFormPaths=this.config.arrayAccessFormPaths||[],void 0===this.config.skipEmptyTextNodesForObj&&(this.config.skipEmptyTextNodesForObj=!0),void 0===this.config.stripWhitespaces&&(this.config.stripWhitespaces=!0),this.config.datetimeAccessFormPaths=this.config.datetimeAccessFormPaths||[],void 0===this.config.useDoubleQuotes&&(this.config.useDoubleQuotes=!1),this.config.xmlElementsFilter=this.config.xmlElementsFilter||[],this.config.jsonPropertiesFilter=this.config.jsonPropertiesFilter||[],void 0===this.config.keepCData&&(this.config.keepCData=!1)}initRequiredPolyfills(){}getNodeLocalName(e){var t=e.localName;return null==t&&(t=e.baseName),null!=t&&""!=t||(t=e.nodeName),t}getNodePrefix(e){return e.prefix}escapeXmlChars(e){return"string"==typeof e?e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"):e}unescapeXmlChars(e){return e.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&apos;/g,"'").replace(/&amp;/g,"&")}checkInStdFiltersArrayForm(e,t,r,o){for(var n=0;n<e.length;n++){var i=e[n];if("string"==typeof i){if(i==o)break}else if(i instanceof RegExp){if(i.test(o))break}else if("function"==typeof i&&i(t,r,o))break}return n!=e.length}toArrayAccessForm(e,t,r){switch(this.config.arrayAccessForm){case"property":e[t]instanceof Array?e[t+"_asArray"]=e[t]:e[t+"_asArray"]=[e[t]]}!(e[t]instanceof Array)&&this.config.arrayAccessFormPaths.length>0&&this.checkInStdFiltersArrayForm(this.config.arrayAccessFormPaths,e,t,r)&&(e[t]=[e[t]])}fromXmlDateTime(e){var t=e.split(/[-T:+Z]/g),r=new Date(t[0],t[1]-1,t[2]),o=t[5].split(".");if(r.setHours(t[3],t[4],o[0]),o.length>1&&r.setMilliseconds(o[1]),t[6]&&t[7]){var n=60*t[6]+Number(t[7]);n=0+("-"==(/\d\d-\d\d:\d\d$/.test(e)?"-":"+")?-1*n:n),r.setMinutes(r.getMinutes()-n-r.getTimezoneOffset())}else-1!==e.indexOf("Z",e.length-1)&&(r=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds())));return r}checkFromXmlDateTimePaths(e,t,r){if(this.config.datetimeAccessFormPaths.length>0){var o=r.split(".#")[0];return this.checkInStdFiltersArrayForm(this.config.datetimeAccessFormPaths,e,t,o)?this.fromXmlDateTime(e):e}return e}checkXmlElementsFilter(e,t,r,o){return!(t==this.DOMNodeTypes.ELEMENT_NODE&&this.config.xmlElementsFilter.length>0)||this.checkInStdFiltersArrayForm(this.config.xmlElementsFilter,e,r,o)}parseDOMChildren(e,t){if(e.nodeType==this.DOMNodeTypes.DOCUMENT_NODE){for(var r=new Object,o=e.childNodes,n=0;n<o.length;n++){if((i=o.item(n)).nodeType==this.DOMNodeTypes.ELEMENT_NODE)r[s=this.getNodeLocalName(i)]=this.parseDOMChildren(i,s)}return r}if(e.nodeType==this.DOMNodeTypes.ELEMENT_NODE){(r=new Object).__cnt=0;for(o=e.childNodes,n=0;n<o.length;n++){var i=o.item(n),s=this.getNodeLocalName(i);if(i.nodeType!=this.DOMNodeTypes.COMMENT_NODE){var a=t+"."+s;this.checkXmlElementsFilter(r,i.nodeType,s,a)&&(r.__cnt++,null==r[s]?(r[s]=this.parseDOMChildren(i,a),this.toArrayAccessForm(r,s,a)):(null!=r[s]&&(r[s]instanceof Array||(r[s]=[r[s]],this.toArrayAccessForm(r,s,a))),r[s][r[s].length]=this.parseDOMChildren(i,a)))}}for(var l=0;l<e.attributes.length;l++){var c=e.attributes.item(l);r.__cnt++,r[this.config.attributePrefix+c.name]=c.value}var d=this.getNodePrefix(e);return null!=d&&""!=d&&(r.__cnt++,r.__prefix=d),null!=r["#text"]&&(r.__text=r["#text"],r.__text instanceof Array&&(r.__text=r.__text.join("\n")),this.config.stripWhitespaces&&(r.__text=r.__text.trim()),delete r["#text"],"property"==this.config.arrayAccessForm&&delete r["#text_asArray"],r.__text=this.checkFromXmlDateTimePaths(r.__text,s,t+"."+s)),null!=r["#cdata-section"]&&(r.__cdata=r["#cdata-section"],delete r["#cdata-section"],"property"==this.config.arrayAccessForm&&delete r["#cdata-section_asArray"]),0==r.__cnt&&"text"==this.config.emptyNodeForm?r="":1==r.__cnt&&null!=r.__text?r=r.__text:1!=r.__cnt||null==r.__cdata||this.config.keepCData?r.__cnt>1&&null!=r.__text&&this.config.skipEmptyTextNodesForObj&&(this.config.stripWhitespaces&&""==r.__text||""==r.__text.trim())&&delete r.__text:r=r.__cdata,delete r.__cnt,!this.config.enableToStringFunc||null==r.__text&&null==r.__cdata||(r.toString=function(){return(null!=this.__text?this.__text:"")+(null!=this.__cdata?this.__cdata:"")}),r}if(e.nodeType==this.DOMNodeTypes.TEXT_NODE||e.nodeType==this.DOMNodeTypes.CDATA_SECTION_NODE)return e.nodeValue}startTag(e,t,r,o){var n="<"+(null!=e&&null!=e.__prefix?e.__prefix+":":"")+t;if(null!=r)for(var i=0;i<r.length;i++){var s=r[i],a=e[s];this.config.escapeMode&&(a=this.escapeXmlChars(a)),n+=" "+s.substr(this.config.attributePrefix.length)+"=",this.config.useDoubleQuotes?n+='"'+a+'"':n+="'"+a+"'"}return n+=o?"/>":">"}endTag(e,t){return"</"+(null!=e.__prefix?e.__prefix+":":"")+t+">"}endsWith(e,t){return-1!==e.indexOf(t,e.length-t.length)}jsonXmlSpecialElem(e,t){return!!("property"==this.config.arrayAccessForm&&this.endsWith(t.toString(),"_asArray")||0==t.toString().indexOf(this.config.attributePrefix)||0==t.toString().indexOf("__")||e[t]instanceof Function)}jsonXmlElemCount(e){var t=0;if(e instanceof Object)for(var r in e)this.jsonXmlSpecialElem(e,r)||t++;return t}checkJsonObjPropertiesFilter(e,t,r){return 0==this.config.jsonPropertiesFilter.length||""==r||this.checkInStdFiltersArrayForm(this.config.jsonPropertiesFilter,e,t,r)}parseJSONAttributes(e){var t=[];if(e instanceof Object)for(var r in e)-1==r.toString().indexOf("__")&&0==r.toString().indexOf(this.config.attributePrefix)&&t.push(r);return t}parseJSONTextAttrs(e){var t="";return null!=e.__cdata&&(t+="<![CDATA["+e.__cdata+"]]>"),null!=e.__text&&(this.config.escapeMode?t+=this.escapeXmlChars(e.__text):t+=e.__text),t}parseJSONTextObject(e){var t="";return e instanceof Object?t+=this.parseJSONTextAttrs(e):null!=e&&(this.config.escapeMode?t+=this.escapeXmlChars(e):t+=e),t}getJsonPropertyPath(e,t){return""===e?t:e+"."+t}parseJSONArray(e,t,r,o){var n="";if(0==e.length)n+=this.startTag(e,t,r,!0);else for(var i=0;i<e.length;i++)n+=this.startTag(e[i],t,this.parseJSONAttributes(e[i]),!1),n+=this.parseJSONObject(e[i],this.getJsonPropertyPath(o,t)),n+=this.endTag(e[i],t);return n}parseJSONObject(e,t){var r="";if(this.jsonXmlElemCount(e)>0)for(var o in e)if(!this.jsonXmlSpecialElem(e,o)&&(""==t||this.checkJsonObjPropertiesFilter(e,o,this.getJsonPropertyPath(t,o)))){var n=e[o],i=this.parseJSONAttributes(n);if(null==n||null==n)r+=this.startTag(n,o,i,!0);else if(n instanceof Object)if(n instanceof Array)r+=this.parseJSONArray(n,o,i,t);else if(n instanceof Date)r+=this.startTag(n,o,i,!1),r+=n.toISOString(),r+=this.endTag(n,o);else{this.jsonXmlElemCount(n)>0||null!=n.__text||null!=n.__cdata?(r+=this.startTag(n,o,i,!1),r+=this.parseJSONObject(n,this.getJsonPropertyPath(t,o)),r+=this.endTag(n,o)):r+=this.startTag(n,o,i,!0)}else r+=this.startTag(n,o,i,!1),r+=this.parseJSONTextObject(n),r+=this.endTag(n,o)}return r+=this.parseJSONTextObject(e)}parseXmlString(e){var t,r=window.ActiveXObject||"ActiveXObject"in window;if(void 0===e)return null;if(window.DOMParser){var o=new window.DOMParser,n=null;if(!r)try{n=o.parseFromString("INVALID","text/xml").getElementsByTagName("parsererror")[0].namespaceURI}catch(e){n=null}try{t=o.parseFromString(e,"text/xml"),null!=n&&t.getElementsByTagNameNS(n,"parsererror").length>0&&(t=null)}catch(e){t=null}}else 0==e.indexOf("<?")&&(e=e.substr(e.indexOf("?>")+2)),(t=new ActiveXObject("Microsoft.XMLDOM")).async="false",t.loadXML(e);return t}asArray(e){return void 0===e||null==e?[]:e instanceof Array?e:[e]}toXmlDateTime(e){return e instanceof Date?e.toISOString():"number"==typeof e?new Date(e).toISOString():null}asDateTime(e){return"string"==typeof e?this.fromXmlDateTime(e):e}xml2json(e){return this.parseDOMChildren(e)}xml_str2json(e){var t=this.parseXmlString(e);return null!=t?this.xml2json(t):null}json2xml_str(e){return this.parseJSONObject(e,"")}json2xml(e){var t=this.json2xml_str(e);return this.parseXmlString(t)}getVersion(){return this.VERSION}}const W=new U,V=(new class{constructor(e={}){this._options=e,this._allowed=!1,this._init()}_init(){"undefined"!=typeof Storage?(this._allowed=!0,window.onstorage=e=>{this._options.onStore&&this._options.onStore(e)}):(this._allowed=!1,console.warn("Sorry! No Web Storage support.."))}key(e){if(this._allowed)return this._options.session?console.warn("Session has not key method."):window.localStorage.key(e)}get(e){if(this._allowed)return this._options.session?window.sessionStorage.getItem(e):window.localStorage.getItem(e)}set(e,t){if(this._allowed)return this._options.session?window.sessionStorage.setItem(e,t):window.localStorage.setItem(e,t)}remove(e){if(this._allowed)return this._options.session?window.sessionStorage.removeItem(e):window.localStorage.removeItem(e)}clearAll(){if(this._allowed)return this._options.session?window.sessionStorage.clear():window.localStorage.clear()}},[]);function K(e){l(e,"svelte-ri6gyf",".smControlerBtn .btn-light:not([disabled]):not(.disabled).active{color:#fff!important;-webkit-box-shadow:inset 0 2px 0 #1266f1!important;box-shadow:inset 0 2px 0 #1266f1!important;background-color:#2572f2!important;border-color:#2572f2!important;border-top-color:#0c57d3!important}")}function Q(t){let r,n,i,s,l,u;return{c(){r=h("div"),n=h("button"),n.textContent="Correct Answer",i=p(),s=h("button"),s.textContent="Your Answer",y(n,"type","button"),y(n,"mode","c"),y(n,"class","btn btn-light correct-ans svelte_items_test"),y(s,"type","button"),y(s,"mode","u"),y(s,"class","btn btn-light your-ans active svelte_items_test"),y(r,"class","smControlerBtn btn-group mb-3"),y(r,"aria-label","Answer buttons")},m(e,o){c(e,r,o),a(r,n),a(r,i),a(r,s),l||(u=[g(n,"click",t[3]),g(s,"click",t[3])],l=!0)},p:e,d(e){e&&d(r),l=!1,o(u)}}}function G(t){let r,n,i,s,l,u,m,f=(t[0]||t[1])&&Q(t);return{c(){r=h("center"),n=h("button"),i=p(),s=h("button"),l=p(),f&&f.c(),y(n,"type","button"),y(n,"class","h h-imp svelte_items_test"),y(n,"id","set-review"),y(s,"type","button"),y(s,"class","h h-imp svelte_items_test"),y(s,"id","unset-review")},m(e,o){c(e,r,o),a(r,n),a(r,i),a(r,s),a(r,l),f&&f.m(r,null),u||(m=[g(n,"click",t[5]),g(s,"click",t[6])],u=!0)},p(e,[t]){e[0]||e[1]?f?f.p(e,t):(f=Q(e),f.c(),f.m(r,null)):f&&(f.d(1),f=null)},i:e,o:e,d(e){e&&d(r),f&&f.d(),u=!1,o(m)}}}function Y(e,t,r){let{reviewMode:o=!1}=t,{handleReviewClick:n}=t,{customReviewMode:i}=t;W.listen("body","keydown",".smControlerBtn .correct-ans",(function(e,t){13===t.which&&e.click()})),W.listen("body","keydown",".smControlerBtn .your-ans",(function(e,t){13===t.which&&e.click()}));const s=A();return e.$$set=e=>{"reviewMode"in e&&r(0,o=e.reviewMode),"handleReviewClick"in e&&r(4,n=e.handleReviewClick),"customReviewMode"in e&&r(1,i=e.customReviewMode)},[o,i,s,function(e){document.querySelectorAll(".smControlerBtn button").forEach((e=>e.classList.remove("active"))),e.target.classList.add("active"),n&&n(e.target.getAttribute("mode"),e)},n,()=>s("setReview"),()=>s("unsetReview")]}class Z extends R{constructor(e){super(),I(this,e,Y,G,i,{reviewMode:0,handleReviewClick:4,customReviewMode:1},K)}}function ee(e){l(e,"svelte-xi3muu",".fa-close{margin-left:20px;font-size:18px;position:absolute;top:10px;color:#A80000}.fa-check{margin-left:20px;font-size:18px;position:absolute;top:10px;color:#46A546}.fa-close,.fa-check.svelte-xi3muu.svelte-xi3muu,.middle_align.svelte-xi3muu.svelte-xi3muu{vertical-align:middle!important}.middle_align{width:164px;min-width:164px}.topic_input{min-width:257px}.preview_header{font-size:16pt;font-weight:bold;vertical-align:middle}.adjust_width{width:10%;text-align:center}.table.svelte-xi3muu>.svelte-xi3muu:not(:first-child){border-top:1px solid}.theme_color_theme1.svelte-xi3muu.svelte-xi3muu{background-color:#5B9BD5!important}.theme_color_theme2.svelte-xi3muu.svelte-xi3muu{background-color:#3B67BC!important}.theme_color_theme3.svelte-xi3muu.svelte-xi3muu{background-color:#F6C3A2!important}.theme_color_theme4.svelte-xi3muu.svelte-xi3muu{background-color:#70AD47!important}.theme_color_theme5.svelte-xi3muu.svelte-xi3muu{background-color:#745998!important}.theme_color_terms_theme1.svelte-xi3muu.svelte-xi3muu{background-color:#DEEAF6}.theme_color_terms_theme2.svelte-xi3muu.svelte-xi3muu{background-color:#D4DEF1}.theme_color_terms_theme3.svelte-xi3muu.svelte-xi3muu{background-color:#FAE0CF}.theme_color_terms_theme4.svelte-xi3muu.svelte-xi3muu{background-color:#E2EFD9}.theme_color_terms_theme5.svelte-xi3muu.svelte-xi3muu{background-color:#E1DAE9}")}function te(e,t,r){const o=e.slice();return o[30]=t[r],o[32]=r,o}function re(e,t,r){const o=e.slice();return o[33]=t[r],o[35]=r,o}function oe(e,t,r){const o=e.slice();return o[30]=t[r],o[32]=r,o}function ne(e){let t,r=e[2].cdata.option,o=[];for(let t=0;t<r.length;t+=1)o[t]=ie(oe(e,r,t));return{c(){for(let e=0;e<o.length;e+=1)o[e].c();t=f()},m(e,r){for(let t=0;t<o.length;t+=1)o[t].m(e,r);c(e,t,r)},p(e,n){if(36&n[0]){let i;for(r=e[2].cdata.option,i=0;i<r.length;i+=1){const s=oe(e,r,i);o[i]?o[i].p(s,n):(o[i]=ie(s),o[i].c(),o[i].m(t.parentNode,t))}for(;i<o.length;i+=1)o[i].d(1);o.length=r.length}},d(e){u(o,e),e&&d(t)}}}function ie(e){let t,r,o,n,i,l=e[30].text.replace(/\n/gm,"</br>").replace(/#cm/gm,",")+"";return{c(){t=h("th"),r=m(l),y(t,"key",o=e[32]),y(t,"class",n=s(("#5B9BD5"==e[5][e[2].theme]?"theme_color_theme1":"#3B67BC"==e[5][e[2].theme]?"theme_color_theme2":"#F6C3A2"==e[5][e[2].theme]?"theme_color_theme3":"#70AD47"==e[5][e[2].theme]?"theme_color_theme4":"#745998"==e[5][e[2].theme]?"theme_color_theme5":"")+" preview_header adjust_width "+("theme3"!==e[2].theme?e[30].id+"text-center text-white":e[30].id+"text-center"))+" svelte-xi3muu"),y(t,"tabindex",i=0)},m(e,o){c(e,t,o),a(t,r)},p(e,o){4&o[0]&&l!==(l=e[30].text.replace(/\n/gm,"</br>").replace(/#cm/gm,",")+"")&&b(r,l),4&o[0]&&n!==(n=s(("#5B9BD5"==e[5][e[2].theme]?"theme_color_theme1":"#3B67BC"==e[5][e[2].theme]?"theme_color_theme2":"#F6C3A2"==e[5][e[2].theme]?"theme_color_theme3":"#70AD47"==e[5][e[2].theme]?"theme_color_theme4":"#745998"==e[5][e[2].theme]?"theme_color_theme5":"")+" preview_header adjust_width "+("theme3"!==e[2].theme?e[30].id+"text-center text-white":e[30].id+"text-center"))+" svelte-xi3muu")&&y(t,"class",n)},d(e){e&&d(t)}}}function se(e){let t,r=e[1].cdata.term,o=[];for(let t=0;t<r.length;t+=1)o[t]=le(te(e,r,t));return{c(){for(let e=0;e<o.length;e+=1)o[e].c();t=f()},m(e,r){for(let t=0;t<o.length;t+=1)o[t].m(e,r);c(e,t,r)},p(e,n){if(598&n[0]){let i;for(r=e[1].cdata.term,i=0;i<r.length;i+=1){const s=te(e,r,i);o[i]?o[i].p(s,n):(o[i]=le(s),o[i].c(),o[i].m(t.parentNode,t))}for(;i<o.length;i+=1)o[i].d(1);o.length=r.length}},d(e){u(o,e),e&&d(t)}}}function ae(e){let t,r,o,n,i,l,u,m,f,b,_,v,w,x,A,E,S,T,D,C,k,j,O,N,F;return{c(){t=h("td"),r=h("i"),n=p(),i=h("i"),u=p(),m=h("input"),E=p(),S=h("label"),y(r,"class","fa fa-check svelte-xi3muu"),y(r,"aria-hidden","true"),y(r,"style",o=me(e[4])),y(i,"class","fa fa-close svelte-xi3muu"),y(i,"aria-hidden","true"),y(i,"style",l=me(e[4])),y(m,"type","radio"),y(m,"class","test_radio CMRad svelte-xi3muu"),y(m,"style",f="vertical-align:middle;"),m.value=b=e[33].id,y(m,"name",_="tm"+(e[32]+1)),y(m,"id",v="t"+e[32]+e[35]),y(m,"data-termid",w=e[30].id),y(m,"data-correct",x=e[30].correct),y(m,"data-userans",""),y(m,"data-role","none"),y(m,"tabindex",A=-1),y(S,"tabindex",T=0),y(S,"class",D="label_choice customRadCM "+(e[35]%2==0?"tureitemColorCM":"falseitemColorCM")+" svelte-xi3muu"),y(S,"for",C="t"+e[32]+e[35]),y(t,"key",k=e[35]),y(t,"id",j="tb"+e[32]+e[35]),y(t,"class",O=s((e[32]%2==0?"#DEEAF6"==e[6][e[2].theme]?"theme_color_terms_theme1":"#D4DEF1"==e[6][e[2].theme]?"theme_color_terms_theme2":"#FAE0CF"==e[6][e[2].theme]?"theme_color_terms_theme3":"#E2EFD9"==e[6][e[2].theme]?"theme_color_terms_theme4":"#E1DAE9"==e[6][e[2].theme]?"theme_color_terms_theme5":"#FFF":"#FFF")+" text-center test_area"+(e[33].id==e[30].correct?" dbg-success":" dbg-danger")+" position-relative")+" svelte-xi3muu")},m(o,s){c(o,t,s),a(t,r),a(t,n),a(t,i),a(t,u),a(t,m),a(t,E),a(t,S),N||(F=g(m,"click",e[9]),N=!0)},p(e,r){2&r[0]&&b!==(b=e[33].id)&&(m.value=b),2&r[0]&&w!==(w=e[30].id)&&y(m,"data-termid",w),2&r[0]&&x!==(x=e[30].correct)&&y(m,"data-correct",x),6&r[0]&&O!==(O=s((e[32]%2==0?"#DEEAF6"==e[6][e[2].theme]?"theme_color_terms_theme1":"#D4DEF1"==e[6][e[2].theme]?"theme_color_terms_theme2":"#FAE0CF"==e[6][e[2].theme]?"theme_color_terms_theme3":"#E2EFD9"==e[6][e[2].theme]?"theme_color_terms_theme4":"#E1DAE9"==e[6][e[2].theme]?"theme_color_terms_theme5":"#FFF":"#FFF")+" text-center test_area"+(e[33].id==e[30].correct?" dbg-success":" dbg-danger")+" position-relative")+" svelte-xi3muu")&&y(t,"class",O)},d(e){e&&d(t),N=!1,F()}}}function le(e){let t,r,o,n,i,l,m,f=e[30].text.replace(/\n/gm,"</br>").replace(/#cm/gm,",")+"",g=e[1].cdata.option,b=[];for(let t=0;t<g.length;t+=1)b[t]=ae(re(e,g,t));return{c(){t=h("tr"),r=h("td"),i=p();for(let e=0;e<b.length;e+=1)b[e].c();l=p(),y(r,"class",o=s((e[32]%2==0?"#DEEAF6"==e[6][e[2].theme]?"theme_color_terms_theme1":"#D4DEF1"==e[6][e[2].theme]?"theme_color_terms_theme2":"#FAE0CF"==e[6][e[2].theme]?"theme_color_terms_theme3":"#E2EFD9"==e[6][e[2].theme]?"theme_color_terms_theme4":"#E1DAE9"==e[6][e[2].theme]?"theme_color_terms_theme5":"#FFF":"#FFF")+" "+e[30].id+" position-relative")+" svelte-xi3muu"),y(r,"tabindex",n=0),_(r,"font-size","14pt"),_(r,"vertical-align","middle"),_(r,"font-family",e[2].font),y(t,"key",m=e[32])},m(e,o){c(e,t,o),a(t,r),r.innerHTML=f,a(t,i);for(let e=0;e<b.length;e+=1)b[e].m(t,null);a(t,l)},p(e,n){if(2&n[0]&&f!==(f=e[30].text.replace(/\n/gm,"</br>").replace(/#cm/gm,",")+"")&&(r.innerHTML=f),6&n[0]&&o!==(o=s((e[32]%2==0?"#DEEAF6"==e[6][e[2].theme]?"theme_color_terms_theme1":"#D4DEF1"==e[6][e[2].theme]?"theme_color_terms_theme2":"#FAE0CF"==e[6][e[2].theme]?"theme_color_terms_theme3":"#E2EFD9"==e[6][e[2].theme]?"theme_color_terms_theme4":"#E1DAE9"==e[6][e[2].theme]?"theme_color_terms_theme5":"#FFF":"#FFF")+" "+e[30].id+" position-relative")+" svelte-xi3muu")&&y(r,"class",o),4&n[0]&&_(r,"font-family",e[2].font),598&n[0]){let r;for(g=e[1].cdata.option,r=0;r<g.length;r+=1){const o=re(e,g,r);b[r]?b[r].p(o,n):(b[r]=ae(o),b[r].c(),b[r].m(t,l))}for(;r<b.length;r+=1)b[r].d(1);b.length=g.length}},d(e){e&&d(t),u(b,e)}}}function ce(e){let t,r,o,n,i,l,u,f,g,_,v,w,x,A,E,S,T,D,C=e[2].stem.replace(/\n/gm,"</br>").replace(/#cm/gm,",")+"";r=new Z({props:{handleReviewClick:e[10],reviewMode:e[0],customReviewMode:e[3]}}),r.$on("setReview",e[7]),r.$on("unsetReview",e[8]);let k=e[2].cdata&&ne(e),j=e[1].cdata&&se(e);return{c(){var a;t=h("div"),(a=r.$$.fragment)&&a.c(),o=p(),n=h("center"),i=h("table"),l=h("thead"),u=h("tr"),f=h("th"),g=m(C),w=p(),k&&k.c(),x=p(),A=h("tbody"),j&&j.c(),y(f,"class",_=s(("#5B9BD5"==e[5][e[2].theme]?"theme_color_theme1":"#3B67BC"==e[5][e[2].theme]?"theme_color_theme2":"#F6C3A2"==e[5][e[2].theme]?"theme_color_theme3":"#70AD47"==e[5][e[2].theme]?"theme_color_theme4":"#745998"==e[5][e[2].theme]?"theme_color_theme5":"")+" preview_header "+("theme3"!==e[2].theme?"text-center text-white":" text-center"))+" svelte-xi3muu"),y(f,"tabindex",v=0),y(u,"class","table-head"),y(l,"class","svelte-xi3muu"),y(A,"class","svelte-xi3muu"),y(i,"class",E=s("table testmode_table ")+" svelte-xi3muu"),y(i,"id","test_table"),y(i,"style",S="position:relative; margin-top:20px;width:"+e[2].maxWidth+"px;font-family: Georgia;"),y(t,"class","mainAdaArea"),y(t,"id","choicemain"),y(t,"style",T="margin-bottom:20px")},m(e,s){c(e,t,s),P(r,t,null),a(t,o),a(t,n),a(n,i),a(i,l),a(l,u),a(u,f),a(f,g),a(u,w),k&&k.m(u,null),a(i,x),a(i,A),j&&j.m(A,null),D=!0},p(e,t){const o={};1&t[0]&&(o.reviewMode=e[0]),r.$set(o),(!D||4&t[0])&&C!==(C=e[2].stem.replace(/\n/gm,"</br>").replace(/#cm/gm,",")+"")&&b(g,C),(!D||4&t[0]&&_!==(_=s(("#5B9BD5"==e[5][e[2].theme]?"theme_color_theme1":"#3B67BC"==e[5][e[2].theme]?"theme_color_theme2":"#F6C3A2"==e[5][e[2].theme]?"theme_color_theme3":"#70AD47"==e[5][e[2].theme]?"theme_color_theme4":"#745998"==e[5][e[2].theme]?"theme_color_theme5":"")+" preview_header "+("theme3"!==e[2].theme?"text-center text-white":" text-center"))+" svelte-xi3muu"))&&y(f,"class",_),e[2].cdata?k?k.p(e,t):(k=ne(e),k.c(),k.m(u,null)):k&&(k.d(1),k=null),e[1].cdata?j?j.p(e,t):(j=se(e),j.c(),j.m(A,null)):j&&(j.d(1),j=null),(!D||4&t[0]&&S!==(S="position:relative; margin-top:20px;width:"+e[2].maxWidth+"px;font-family: Georgia;"))&&y(i,"style",S)},i(e){D||(L(r.$$.fragment,e),D=!0)},o(e){!function(e,t,r,o){if(e&&e.o){if($.has(e))return;$.add(e),(void 0).c.push((()=>{$.delete(e),o&&(r&&e.d(1),o())})),e.o(t)}}(r.$$.fragment,e),D=!1},d(e){e&&d(t),q(r),k&&k.d(),j&&j.d()}}}function de(){let e=document.getElementsByClassName("test_radio");for(let t=0;t<e.length;t++)e[t].getAttribute("id")==e[t].getAttribute("data-userans")?e[t].checked=!0:e[t].checked=!1}function ue(){!function(){let e=document.querySelectorAll(" .test_radio");for(let t=0;t<e.length;t++)e[t].getAttribute("value")==e[t].getAttribute("data-correct")?e[t].checked=!0:e[t].checked=!1}(),he()}function he(){let e=document.getElementsByClassName("fa-check"),t=document.getElementsByClassName("fa-close");for(let r=0;r<e.length;r++)e[r].style.display="none",t[r].style.display="none"}function me(e){return 1==e?{paddingLeft:"14px",display:"inline-flex",position:"absolute"}:{paddingLeft:"15px",display:"none",position:"absolute"}}function pe(t,r,o){let n,{showAns:s}=r,{editorState:a}=r,{xml:l}=r,{uxml:c}=r,{isReview:d}=r,{CM:u}=r,h=d,m=d,p={cdata:""},f={},g=0;(function(t,r=e){let o;const n=new Set;function s(e){if(i(t,e)&&(t=e,o)){const e=!V.length;for(const e of n)e[1](),V.push(e,t);if(e){for(let e=0;e<V.length;e+=2)V[e][0](V[e+1]);V.length=0}}}return{set:s,update:function(e){s(e(t))},subscribe:function(i,a=e){const l=[i,a];return n.add(l),1===n.size&&(o=r(s)||e),i(t),()=>{n.delete(l),0===n.size&&(o(),o=null)}}}})({cdata:"",stem:"",xml:"",theme:"",font:"",maxWidth:"",totalcorrectans:""}).subscribe((e=>{o(2,f=e)}));var y;function b(){let e=function(){let e=0,t=0,r=document.getElementsByClassName("test_radio");for(let t=0;t<r.length;t++)if(r[t].getAttribute("value")==r[t].getAttribute("data-correct")){if(1!=r[t].checked)return e=0,r[t].setAttribute("as",0),!1;r[t].setAttribute("as",1),e=1}for(let e=0;e<r.length;e++)r[e].getAttribute("value")==r[e].getAttribute("data-correct")&&1==r[e].checked&&t++,"undefined"!=typeof calculatePoint&&calculatePoint(f.totalcorrectans,t);return e}();var t;e=1==e,c?W.select("#answer").checked=e:a&&s(e?"Correct":"Incorrect"),(t={uXml:n,ans:e})&&(W.select("#answer","checked",!!t.ans),W.select("#special_module_user_xml","value",t.uXml),"object"==typeof window&&(window.ISSPECIALMODULEUSERXMLCHANGE=1,"undefined"!=typeof calculatePoint&&calculatePoint(t.correctPoints||1,t.ansPoint||t.ans)),globalThis.saveUserAnswerInSapper?.(t))}function _(){de(),E()}function v(){o(0,d=!0),A(d),_()}function w(){o(0,d=!1);let e=document.getElementsByClassName("test_radio");for(let t=0;t<e.length;t++)e[t].disabled=!1;he()}function A(e){if(e){let e="#main-"+u,t=W.selectAll(e+" .test_radio");for(let e=0;e<t.length;e++)t[e].disabled=!0}}function E(){W.select(".dbg-success input","checked").forEach((e=>{W.siblings(e,".fa-check").forEach((e=>{e.style.display="inline-flex"}))})),W.select(".dbg-danger input","checked").forEach((e=>{W.siblings(e,".fa-close").forEach((e=>{e.style.display="inline-flex"}))})),W.selectAll(".dbg-success input, .dbg-danger input","removeAttr","as"),W.select(".dbg-success input","checked").forEach((e=>{e.setAttribute("as",1)})),W.select(".dbg-success input","checked").forEach((e=>{e.setAttribute("as",0)})),W.select(".dbg-success input","checked").forEach((e=>{W.siblings(e,".label_choice").forEach((e=>{e.setAttribute("title","is marked as correct")}))})),W.select(".dbg-danger input","checked").forEach((e=>{W.siblings(e,".label_choice").forEach((e=>{e.setAttribute("title","is marked as incorrect")}))}))}return y=()=>{var e;l!=f.xml&&(o(2,f.xml=l,f),e=c,function(e,t){o(2,f.theme=e.smxml._theme,f),o(2,f.font=e.smxml._font,f),o(2,f.maxWidth=e.smxml._maxwidth?e.smxml._maxwidth:800,f);let r=H(e.smxml.__cdata),n=[];n=JSON.parse(JSON.stringify(r)),o(2,f.cdata=n,f),o(2,f.stem=n.stem,f),o(1,p.cdata=n,p);let i=p.cdata.term.length;if(o(2,f.totalcorrectans=i,f),w(),t)try{t=JSON.parse(t);let e=[];e=JSON.parse(JSON.stringify(t)),setTimeout((function(){e.ans.map((function(e,t){W.selectAll(".test_area #"+e.userAns,"attr",{"data-userans":e.userAns})})),de()}),100)}catch(e){}else{let e=document.getElementsByClassName("test_radio");for(let t=0;t<e.length;t++)e[t].checked=!1,e[t].setAttribute("data-userans","")}}(function(e){e=e.replace(/<\!--\[CDATA\[/g,"<![CDATA[").replace(/\]\]-->/g,"]]>");let t=new z({useDoubleQuotes:!0}),r=JSON.stringify(t.xml_str2json(e));return r=r.replace("SMXML","smxml"),r=JSON.parse(r),r}(l),e))},x().$$.before_update.push(y),function(e){x().$$.after_update.push(e)}((()=>{A(h),d||he(),h&&setTimeout((function(){E()}),300)})),function(e){x().$$.on_mount.push(e)}((()=>{AI.listen("body","keydown",".label_choice",(function(e,t){13===t.which&&e.click()}))})),t.$$set=e=>{"showAns"in e&&o(11,s=e.showAns),"editorState"in e&&o(12,a=e.editorState),"xml"in e&&o(13,l=e.xml),"uxml"in e&&o(14,c=e.uxml),"isReview"in e&&o(0,d=e.isReview),"CM"in e&&o(15,u=e.CM)},t.$$.update=()=>{200705&t.$$.dirty[0]&&m!=d&&(d?(v(),a&&0==g&&(o(17,g=1),b())):(o(17,g=0),de(),w()),o(16,m=d))},[d,p,f,h,undefined,{theme1:"#5B9BD5",theme2:"#3B67BC",theme3:"#F6C3A2",theme4:"#70AD47",theme5:"#745998"},{theme1:"#DEEAF6",theme2:"#D4DEF1",theme3:"#FAE0CF",theme4:"#E2EFD9",theme5:"#E1DAE9"},function(){v()},function(){de(),w()},function(e){let t=e.target.id,r=e.target.name,o=document.querySelectorAll(" .test_area input[name="+r+"]");for(let e=0;e<o.length;e++)o[e].setAttribute("data-userans","");W.selectAll(" .test_area #"+t,"attr",{"data-userans":t});let i={type:"34",ans:[]},s=document.getElementsByClassName("test_radio");for(let e=0;e<s.length;e++)1==s[e].checked&&i.ans.push({id:s[e].getAttribute("data-termid"),userAns:s[e].getAttribute("id")});n=JSON.stringify(i),b()},function(e,t){"c"==e?ue():_()},s,a,l,c,u,m,g]}return new class extends R{constructor(e){super(),I(this,e,pe,ce,i,{showAns:11,editorState:12,xml:13,uxml:14,isReview:0,CM:15},ee,[-1,-1])}}({target:document.getElementById(window.moduleContainer)||document.body,props:{xml:window.QXML||'<smxml type="27" name="ChoiceMatrix" theme="theme1" font="Georgia" maxwidth="710">\x3c!--[CDATA[Statement,True,False,\n\tIn this approach not only is the perimeter secured#cm but individual systems within the network are also secured.,1,0,\n\tIn this approach#cm  the bulk of security efforts are focused on the perimeter of the network.,0,1,\n\tOne way to accomplish security in this approach is to divide the network into segments and secure each segment as if it were a separate network.,1,0,\n\tThe focus#cm in this approach#cm might include firewalls#cm proxy servers#cm or password policies.,0,1,\n\t]]--\x3e</smxml>\n',uxml:window.uaXML,ansStatus:0,isReview:window.isReviewMode||!1,smqCounter:window.idCounter,CM:window.idCounter}})}();
  //# sourceMappingURL=bundle_q27.js.map
  