', {
'class': 'h5p-question-explanation-wrong',
html: feedback.wrong,
appendTo: $content
});
}
$content.appendTo($explanationItem);
if (feedback.text) {
$('', {
'class': 'h5p-question-explanation-text',
html: feedback.text,
appendTo: $explanationItem
});
}
}
};
createHTML();
/**
* Return the container HTMLElement
*
* @return {HTMLElement}
*/
self.getElement = function () {
return self.$explanation;
};
}
return Explainer;
})(H5P.jQuery);
;
(function (Question) {
/**
* Makes it easy to add animated score points for your question type.
*
* @class H5P.Question.ScorePoints
*/
Question.ScorePoints = function () {
var self = this;
var elements = [];
var showElementsTimer;
/**
* Create the element that displays the score point element for questions.
*
* @param {boolean} isCorrect
* @return {HTMLElement}
*/
self.getElement = function (isCorrect) {
var element = document.createElement('div');
element.classList.add(isCorrect ? 'h5p-question-plus-one' : 'h5p-question-minus-one');
element.classList.add('h5p-question-hidden-one');
elements.push(element);
// Schedule display animation of all added elements
if (showElementsTimer) {
clearTimeout(showElementsTimer);
}
showElementsTimer = setTimeout(showElements, 0);
return element;
};
/**
* @private
*/
var showElements = function () {
// Determine delay between triggering animations
var delay = 0;
var increment = 150;
var maxTime = 1000;
if (elements.length && elements.length > Math.ceil(maxTime / increment)) {
// Animations will run for more than ~1 second, reduce it.
increment = maxTime / elements.length;
}
for (var i = 0; i < elements.length; i++) {
// Use timer to trigger show
setTimeout(showElement(elements[i]), delay);
// Increse delay for next element
delay += increment;
}
};
/**
* Trigger transition animation for the given element
*
* @private
* @param {HTMLElement} element
* @return {function}
*/
var showElement = function (element) {
return function () {
element.classList.remove('h5p-question-hidden-one');
};
};
};
})(H5P.Question);
;
!function(){var t={4370:function(t,e,n){n(8783),n(1038);var r=n(857);t.exports=r.Array.from},3099:function(t){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},6077:function(t,e,n){var r=n(111);t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},9670:function(t,e,n){var r=n(111);t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},8457:function(t,e,n){"use strict";var r=n(9974),a=n(7908),i=n(3411),s=n(7659),o=n(7466),c=n(6135),u=n(8554),l=n(1246);t.exports=function(t){var e,n,h,p,d,f,g=a(t),b="function"==typeof this?this:Array,v=arguments.length,m=v>1?arguments[1]:void 0,y=void 0!==m,w=l(g),D=0;if(y&&(m=r(m,v>2?arguments[2]:void 0,2)),null==w||b==Array&&s(w))for(n=new b(e=o(g.length));e>D;D++)f=y?m(g[D],D):g[D],c(n,D,f);else for(d=(p=u(g,w)).next,n=new b;!(h=d.call(p)).done;D++)f=y?i(p,m,[h.value,D],!0):h.value,c(n,D,f);return n.length=D,n}},1318:function(t,e,n){var r=n(5656),a=n(7466),i=n(1400),s=function(t){return function(e,n,s){var o,c=r(e),u=a(c.length),l=i(s,u);if(t&&n!=n){for(;u>l;)if((o=c[l++])!=o)return!0}else for(;u>l;l++)if((t||l in c)&&c[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},3411:function(t,e,n){var r=n(9670),a=n(9212);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){a(t,"throw",e)}}},7072:function(t,e,n){var r=n(5112)("iterator"),a=!1;try{var i=0,s={next:function(){return{done:!!i++}},return:function(){a=!0}};s[r]=function(){return this},Array.from(s,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!a)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n}},4326:function(t){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},648:function(t,e,n){var r=n(1694),a=n(4326),i=n(5112)("toStringTag"),s="Arguments"==a(function(){return arguments}());t.exports=r?a:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?n:s?a(e):"Object"==(r=a(e))&&"function"==typeof e.callee?"Arguments":r}},9920:function(t,e,n){var r=n(6656),a=n(3887),i=n(1236),s=n(3070);t.exports=function(t,e){for(var n=a(e),o=s.f,c=i.f,u=0;u=74)&&(r=s.match(/Chrome\/(\d+)/))&&(a=r[1]),t.exports=a&&+a},748:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(t,e,n){var r=n(7854),a=n(1236).f,i=n(8880),s=n(1320),o=n(3505),c=n(9920),u=n(4705);t.exports=function(t,e){var n,l,h,p,d,f=t.target,g=t.global,b=t.stat;if(n=g?r:b?r[f]||o(f,{}):(r[f]||{}).prototype)for(l in e){if(p=e[l],h=t.noTargetGet?(d=a(n,l))&&d.value:n[l],!u(g?l:f+(b?".":"#")+l,t.forced)&&void 0!==h){if(typeof p==typeof h)continue;c(p,h)}(t.sham||h&&h.sham)&&i(p,"sham",!0),s(n,l,p,t)}}},7293:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},9974:function(t,e,n){var r=n(3099);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,a){return t.call(e,n,r,a)}}return function(){return t.apply(e,arguments)}}},5005:function(t,e,n){var r=n(7854),a=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?a(r[t]):r[t]&&r[t][e]}},1246:function(t,e,n){var r=n(648),a=n(7497),i=n(5112)("iterator");t.exports=function(t){if(null!=t)return t[i]||t["@@iterator"]||a[r(t)]}},8554:function(t,e,n){var r=n(9670),a=n(1246);t.exports=function(t,e){var n=arguments.length<2?a(t):e;if("function"!=typeof n)throw TypeError(String(t)+" is not iterable");return r(n.call(t))}},7854:function(t,e,n){var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},6656:function(t,e,n){var r=n(7908),a={}.hasOwnProperty;t.exports=Object.hasOwn||function(t,e){return a.call(r(t),e)}},3501:function(t){t.exports={}},490:function(t,e,n){var r=n(5005);t.exports=r("document","documentElement")},4664:function(t,e,n){var r=n(9781),a=n(7293),i=n(317);t.exports=!r&&!a((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},8361:function(t,e,n){var r=n(7293),a=n(4326),i="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==a(t)?i.call(t,""):Object(t)}:Object},2788:function(t,e,n){var r=n(5465),a=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return a.call(t)}),t.exports=r.inspectSource},9909:function(t,e,n){var r,a,i,s=n(8536),o=n(7854),c=n(111),u=n(8880),l=n(6656),h=n(5465),p=n(6200),d=n(3501),f="Object already initialized",g=o.WeakMap;if(s||h.state){var b=h.state||(h.state=new g),v=b.get,m=b.has,y=b.set;r=function(t,e){if(m.call(b,t))throw new TypeError(f);return e.facade=t,y.call(b,t,e),e},a=function(t){return v.call(b,t)||{}},i=function(t){return m.call(b,t)}}else{var w=p("state");d[w]=!0,r=function(t,e){if(l(t,w))throw new TypeError(f);return e.facade=t,u(t,w,e),e},a=function(t){return l(t,w)?t[w]:{}},i=function(t){return l(t,w)}}t.exports={set:r,get:a,has:i,enforce:function(t){return i(t)?a(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!c(e)||(n=a(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},7659:function(t,e,n){var r=n(5112),a=n(7497),i=r("iterator"),s=Array.prototype;t.exports=function(t){return void 0!==t&&(a.Array===t||s[i]===t)}},4705:function(t,e,n){var r=n(7293),a=/#|\.prototype\./,i=function(t,e){var n=o[s(t)];return n==u||n!=c&&("function"==typeof e?r(e):!!e)},s=i.normalize=function(t){return String(t).replace(a,".").toLowerCase()},o=i.data={},c=i.NATIVE="N",u=i.POLYFILL="P";t.exports=i},111:function(t){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},1913:function(t){t.exports=!1},2190:function(t,e,n){var r=n(5005),a=n(3307);t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return"function"==typeof e&&Object(t)instanceof e}},9212:function(t,e,n){var r=n(9670);t.exports=function(t,e,n){var a,i;r(t);try{if(void 0===(a=t.return)){if("throw"===e)throw n;return n}a=a.call(t)}catch(t){i=!0,a=t}if("throw"===e)throw n;if(i)throw a;return r(a),n}},3383:function(t,e,n){"use strict";var r,a,i,s=n(7293),o=n(9518),c=n(8880),u=n(6656),l=n(5112),h=n(1913),p=l("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(a=o(o(i)))!==Object.prototype&&(r=a):d=!0);var f=null==r||s((function(){var t={};return r[p].call(t)!==t}));f&&(r={}),h&&!f||u(r,p)||c(r,p,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},7497:function(t){t.exports={}},133:function(t,e,n){var r=n(7392),a=n(7293);t.exports=!!Object.getOwnPropertySymbols&&!a((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},8536:function(t,e,n){var r=n(7854),a=n(2788),i=r.WeakMap;t.exports="function"==typeof i&&/native code/.test(a(i))},30:function(t,e,n){var r,a=n(9670),i=n(6048),s=n(748),o=n(3501),c=n(490),u=n(317),l=n(6200),h=l("IE_PROTO"),p=function(){},d=function(t){return"