-
Notifications
You must be signed in to change notification settings - Fork 802
/
Copy pathh5p-6b7b7819d4bf49a2107e.js
2 lines (2 loc) · 196 KB
/
h5p-6b7b7819d4bf49a2107e.js
1
2
/*! For license information please see h5p-6b7b7819d4bf49a2107e.js.LICENSE.txt */
!function(){var __webpack_modules__={192:function(){var H5P=window.H5P=window.H5P||{};H5P.XAPIEvent=function(){H5P.Event.call(this,"xAPI",{statement:{}},{bubbles:!0,external:!0})},H5P.XAPIEvent.prototype=Object.create(H5P.Event.prototype),H5P.XAPIEvent.prototype.constructor=H5P.XAPIEvent,H5P.XAPIEvent.prototype.setScoredResult=function(score,maxScore,instance,completion,success){if(this.data.statement.result={},void 0!==score&&(void 0===maxScore?this.data.statement.result.score={raw:score}:(this.data.statement.result.score={min:0,max:maxScore,raw:score},maxScore>0&&(this.data.statement.result.score.scaled=Math.round(score/maxScore*1e4)/1e4))),this.data.statement.result.completion=void 0===completion?"completed"===this.getVerb()||"answered"===this.getVerb():completion,void 0!==success&&(this.data.statement.result.success=success),instance&&instance.activityStartTime){var duration=Math.round((Date.now()-instance.activityStartTime)/10)/100;this.data.statement.result.duration="PT"+duration+"S"}},H5P.XAPIEvent.prototype.setVerb=function(verb){-1!==H5P.jQuery.inArray(verb,H5P.XAPIEvent.allowedXAPIVerbs)?this.data.statement.verb={id:"http://adlnet.gov/expapi/verbs/"+verb,display:{"en-US":verb}}:void 0!==verb.id&&(this.data.statement.verb=verb)},H5P.XAPIEvent.prototype.getVerb=function(full){var statement=this.data.statement;return"verb"in statement?!0===full?statement.verb:statement.verb.id.slice(31):null},H5P.XAPIEvent.prototype.setObject=function(instance){if(instance.contentId)if(this.data.statement.object={id:this.getContentXAPIId(instance),objectType:"Activity",definition:{extensions:{"http://h5p.org/x-api/h5p-local-content-id":instance.contentId}}},instance.subContentId)this.data.statement.object.definition.extensions["http://h5p.org/x-api/h5p-subContentId"]=instance.subContentId,"function"==typeof instance.getTitle&&(this.data.statement.object.definition.name={"en-US":instance.getTitle()});else{var content=H5P.getContentForInstance(instance.contentId);content&&content.metadata&&content.metadata.title&&(this.data.statement.object.definition.name={"en-US":H5P.createTitle(content.metadata.title)})}else this.data.statement.object={definition:{}}},H5P.XAPIEvent.prototype.setContext=function(instance){instance.parent&&(instance.parent.contentId||instance.parent.subContentId)&&(this.data.statement.context={contextActivities:{parent:[{id:this.getContentXAPIId(instance.parent),objectType:"Activity"}]}}),instance.libraryInfo&&(void 0===this.data.statement.context&&(this.data.statement.context={contextActivities:{}}),this.data.statement.context.contextActivities.category=[{id:"http://h5p.org/libraries/"+instance.libraryInfo.versionedNameNoSpaces,objectType:"Activity"}])},H5P.XAPIEvent.prototype.setActor=function(){if(void 0!==H5PIntegration.user)this.data.statement.actor={name:H5PIntegration.user.name,mbox:"mailto:"+H5PIntegration.user.mail,objectType:"Agent"};else{var uuid;try{localStorage.H5PUserUUID?uuid=localStorage.H5PUserUUID:(uuid=H5P.createUUID(),localStorage.H5PUserUUID=uuid)}catch(err){uuid="not-trackable-"+H5P.createUUID()}this.data.statement.actor={account:{name:uuid,homePage:H5PIntegration.siteUrl},objectType:"Agent"}}},H5P.XAPIEvent.prototype.getMaxScore=function(){return this.getVerifiedStatementValue(["result","score","max"])},H5P.XAPIEvent.prototype.getScore=function(){return this.getVerifiedStatementValue(["result","score","raw"])},H5P.XAPIEvent.prototype.getContentXAPIId=function(instance){var xAPIId;return instance.contentId&&H5PIntegration&&H5PIntegration.contents&&H5PIntegration.contents["cid-"+instance.contentId]&&(xAPIId=H5PIntegration.contents["cid-"+instance.contentId].url,instance.subContentId&&(xAPIId+="?subContentId="+instance.subContentId)),xAPIId},H5P.XAPIEvent.prototype.isFromChild=function(){var parentId=this.getVerifiedStatementValue(["context","contextActivities","parent",0,"id"]);return!parentId||-1===parentId.indexOf("subContentId")},H5P.XAPIEvent.prototype.getVerifiedStatementValue=function(keys){for(var val=this.data.statement,i=0;i<keys.length;i++){if(void 0===val[keys[i]])return null;val=val[keys[i]]}return val},H5P.XAPIEvent.allowedXAPIVerbs=["answered","asked","attempted","attended","commented","completed","exited","experienced","failed","imported","initialized","interacted","launched","mastered","passed","preferred","progressed","registered","responded","resumed","scored","shared","suspended","terminated","voided","downloaded","copied","accessed-reuse","accessed-embed","accessed-copyright"]},320:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__;function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}module=__webpack_require__.nmd(module),function(global,factory){"use strict";"object"===_typeof(module)&&"object"===_typeof(module.exports)?module.exports=global.document?factory(global,!0):function(w){if(!w.document)throw new Error("jQuery requires a window with a document");return factory(w)}:factory(global)}("undefined"!=typeof window?window:this,(function(window,noGlobal){"use strict";var arr=[],getProto=Object.getPrototypeOf,_slice=arr.slice,flat=arr.flat?function(array){return arr.flat.call(array)}:function(array){return arr.concat.apply([],array)},push=arr.push,indexOf=arr.indexOf,class2type={},toString=class2type.toString,hasOwn=class2type.hasOwnProperty,fnToString=hasOwn.toString,ObjectFunctionString=fnToString.call(Object),support={},isFunction=function(obj){return"function"==typeof obj&&"number"!=typeof obj.nodeType},isWindow=function(obj){return null!=obj&&obj===obj.window},document=window.document,preservedScriptAttributes={type:!0,src:!0,nonce:!0,noModule:!0};function DOMEval(code,node,doc){var i,val,script=(doc=doc||document).createElement("script");if(script.text=code,node)for(i in preservedScriptAttributes)(val=node[i]||node.getAttribute&&node.getAttribute(i))&&script.setAttribute(i,val);doc.head.appendChild(script).parentNode.removeChild(script)}function toType(obj){return null==obj?obj+"":"object"===_typeof(obj)||"function"==typeof obj?class2type[toString.call(obj)]||"object":_typeof(obj)}var _jQuery2=function(selector,context){return new _jQuery2.fn.init(selector,context)};function isArrayLike(obj){var length=!!obj&&"length"in obj&&obj.length,type=toType(obj);return!isFunction(obj)&&!isWindow(obj)&&("array"===type||0===length||"number"==typeof length&&length>0&&length-1 in obj)}_jQuery2.fn=_jQuery2.prototype={jquery:"3.5.1",constructor:_jQuery2,length:0,toArray:function(){return _slice.call(this)},get:function(num){return null==num?_slice.call(this):num<0?this[num+this.length]:this[num]},pushStack:function(elems){var ret=_jQuery2.merge(this.constructor(),elems);return ret.prevObject=this,ret},each:function(callback){return _jQuery2.each(this,callback)},map:function(callback){return this.pushStack(_jQuery2.map(this,(function(elem,i){return callback.call(elem,i,elem)})))},slice:function(){return this.pushStack(_slice.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(_jQuery2.grep(this,(function(_elem,i){return(i+1)%2})))},odd:function(){return this.pushStack(_jQuery2.grep(this,(function(_elem,i){return i%2})))},eq:function(i){var len=this.length,j=+i+(i<0?len:0);return this.pushStack(j>=0&&j<len?[this[j]]:[])},end:function(){return this.prevObject||this.constructor()},push:push,sort:arr.sort,splice:arr.splice},_jQuery2.extend=_jQuery2.fn.extend=function(){var options,name,src,copy,copyIsArray,clone,target=arguments[0]||{},i=1,length=arguments.length,deep=!1;for("boolean"==typeof target&&(deep=target,target=arguments[i]||{},i++),"object"===_typeof(target)||isFunction(target)||(target={}),i===length&&(target=this,i--);i<length;i++)if(null!=(options=arguments[i]))for(name in options)copy=options[name],"__proto__"!==name&&target!==copy&&(deep&©&&(_jQuery2.isPlainObject(copy)||(copyIsArray=Array.isArray(copy)))?(src=target[name],clone=copyIsArray&&!Array.isArray(src)?[]:copyIsArray||_jQuery2.isPlainObject(src)?src:{},copyIsArray=!1,target[name]=_jQuery2.extend(deep,clone,copy)):void 0!==copy&&(target[name]=copy));return target},_jQuery2.extend({expando:"jQuery"+("3.5.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(msg){throw new Error(msg)},noop:function(){},isPlainObject:function(obj){var proto,Ctor;return!(!obj||"[object Object]"!==toString.call(obj))&&(!(proto=getProto(obj))||"function"==typeof(Ctor=hasOwn.call(proto,"constructor")&&proto.constructor)&&fnToString.call(Ctor)===ObjectFunctionString)},isEmptyObject:function(obj){var name;for(name in obj)return!1;return!0},globalEval:function(code,options,doc){DOMEval(code,{nonce:options&&options.nonce},doc)},each:function(obj,callback){var length,i=0;if(isArrayLike(obj))for(length=obj.length;i<length&&!1!==callback.call(obj[i],i,obj[i]);i++);else for(i in obj)if(!1===callback.call(obj[i],i,obj[i]))break;return obj},makeArray:function(arr,results){var ret=results||[];return null!=arr&&(isArrayLike(Object(arr))?_jQuery2.merge(ret,"string"==typeof arr?[arr]:arr):push.call(ret,arr)),ret},inArray:function(elem,arr,i){return null==arr?-1:indexOf.call(arr,elem,i)},merge:function(first,second){for(var len=+second.length,j=0,i=first.length;j<len;j++)first[i++]=second[j];return first.length=i,first},grep:function(elems,callback,invert){for(var matches=[],i=0,length=elems.length,callbackExpect=!invert;i<length;i++)!callback(elems[i],i)!==callbackExpect&&matches.push(elems[i]);return matches},map:function(elems,callback,arg){var length,value,i=0,ret=[];if(isArrayLike(elems))for(length=elems.length;i<length;i++)null!=(value=callback(elems[i],i,arg))&&ret.push(value);else for(i in elems)null!=(value=callback(elems[i],i,arg))&&ret.push(value);return flat(ret)},guid:1,support:support}),"function"==typeof Symbol&&(_jQuery2.fn[Symbol.iterator]=arr[Symbol.iterator]),_jQuery2.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(_i,name){class2type["[object "+name+"]"]=name.toLowerCase()}));var Sizzle=function(window){var i,support,Expr,getText,isXML,tokenize,compile,select,outermostContext,sortInput,hasDuplicate,setDocument,document,docElem,documentIsHTML,rbuggyQSA,rbuggyMatches,matches,contains,expando="sizzle"+1*new Date,preferredDoc=window.document,dirruns=0,done=0,classCache=createCache(),tokenCache=createCache(),compilerCache=createCache(),nonnativeSelectorCache=createCache(),sortOrder=function(a,b){return a===b&&(hasDuplicate=!0),0},hasOwn={}.hasOwnProperty,arr=[],pop=arr.pop,pushNative=arr.push,push=arr.push,slice=arr.slice,indexOf=function(list,elem){for(var i=0,len=list.length;i<len;i++)if(list[i]===elem)return i;return-1},booleans="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",whitespace="[\\x20\\t\\r\\n\\f]",identifier="(?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",attributes="\\[[\\x20\\t\\r\\n\\f]*("+identifier+")(?:"+whitespace+"*([*^$|!~]?=)"+whitespace+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+identifier+"))|)"+whitespace+"*\\]",pseudos=":("+identifier+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+attributes+")*)|.*)\\)|)",rwhitespace=new RegExp(whitespace+"+","g"),rtrim=new RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$","g"),rcomma=new RegExp("^[\\x20\\t\\r\\n\\f]*,[\\x20\\t\\r\\n\\f]*"),rcombinators=new RegExp("^[\\x20\\t\\r\\n\\f]*([>+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),rdescend=new RegExp(whitespace+"|>"),rpseudo=new RegExp(pseudos),ridentifier=new RegExp("^"+identifier+"$"),matchExpr={ID:new RegExp("^#("+identifier+")"),CLASS:new RegExp("^\\.("+identifier+")"),TAG:new RegExp("^("+identifier+"|[*])"),ATTR:new RegExp("^"+attributes),PSEUDO:new RegExp("^"+pseudos),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:new RegExp("^(?:"+booleans+")$","i"),needsContext:new RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)","i")},rhtml=/HTML$/i,rinputs=/^(?:input|select|textarea|button)$/i,rheader=/^h\d$/i,rnative=/^[^{]+\{\s*\[native \w/,rquickExpr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,rsibling=/[+~]/,runescape=new RegExp("\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\([^\\r\\n\\f])","g"),funescape=function(escape,nonHex){var high="0x"+escape.slice(1)-65536;return nonHex||(high<0?String.fromCharCode(high+65536):String.fromCharCode(high>>10|55296,1023&high|56320))},rcssescape=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,fcssescape=function(ch,asCodePoint){return asCodePoint?"\0"===ch?"�":ch.slice(0,-1)+"\\"+ch.charCodeAt(ch.length-1).toString(16)+" ":"\\"+ch},unloadHandler=function(){setDocument()},inDisabledFieldset=addCombinator((function(elem){return!0===elem.disabled&&"fieldset"===elem.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{push.apply(arr=slice.call(preferredDoc.childNodes),preferredDoc.childNodes),arr[preferredDoc.childNodes.length].nodeType}catch(e){push={apply:arr.length?function(target,els){pushNative.apply(target,slice.call(els))}:function(target,els){for(var j=target.length,i=0;target[j++]=els[i++];);target.length=j-1}}}function Sizzle(selector,context,results,seed){var m,i,elem,nid,match,groups,newSelector,newContext=context&&context.ownerDocument,nodeType=context?context.nodeType:9;if(results=results||[],"string"!=typeof selector||!selector||1!==nodeType&&9!==nodeType&&11!==nodeType)return results;if(!seed&&(setDocument(context),context=context||document,documentIsHTML)){if(11!==nodeType&&(match=rquickExpr.exec(selector)))if(m=match[1]){if(9===nodeType){if(!(elem=context.getElementById(m)))return results;if(elem.id===m)return results.push(elem),results}else if(newContext&&(elem=newContext.getElementById(m))&&contains(context,elem)&&elem.id===m)return results.push(elem),results}else{if(match[2])return push.apply(results,context.getElementsByTagName(selector)),results;if((m=match[3])&&support.getElementsByClassName&&context.getElementsByClassName)return push.apply(results,context.getElementsByClassName(m)),results}if(support.qsa&&!nonnativeSelectorCache[selector+" "]&&(!rbuggyQSA||!rbuggyQSA.test(selector))&&(1!==nodeType||"object"!==context.nodeName.toLowerCase())){if(newSelector=selector,newContext=context,1===nodeType&&(rdescend.test(selector)||rcombinators.test(selector))){for((newContext=rsibling.test(selector)&&testContext(context.parentNode)||context)===context&&support.scope||((nid=context.getAttribute("id"))?nid=nid.replace(rcssescape,fcssescape):context.setAttribute("id",nid=expando)),i=(groups=tokenize(selector)).length;i--;)groups[i]=(nid?"#"+nid:":scope")+" "+toSelector(groups[i]);newSelector=groups.join(",")}try{return push.apply(results,newContext.querySelectorAll(newSelector)),results}catch(qsaError){nonnativeSelectorCache(selector,!0)}finally{nid===expando&&context.removeAttribute("id")}}}return select(selector.replace(rtrim,"$1"),context,results,seed)}function createCache(){var keys=[];return function cache(key,value){return keys.push(key+" ")>Expr.cacheLength&&delete cache[keys.shift()],cache[key+" "]=value}}function markFunction(fn){return fn[expando]=!0,fn}function assert(fn){var el=document.createElement("fieldset");try{return!!fn(el)}catch(e){return!1}finally{el.parentNode&&el.parentNode.removeChild(el),el=null}}function addHandle(attrs,handler){for(var arr=attrs.split("|"),i=arr.length;i--;)Expr.attrHandle[arr[i]]=handler}function siblingCheck(a,b){var cur=b&&a,diff=cur&&1===a.nodeType&&1===b.nodeType&&a.sourceIndex-b.sourceIndex;if(diff)return diff;if(cur)for(;cur=cur.nextSibling;)if(cur===b)return-1;return a?1:-1}function createInputPseudo(type){return function(elem){return"input"===elem.nodeName.toLowerCase()&&elem.type===type}}function createButtonPseudo(type){return function(elem){var name=elem.nodeName.toLowerCase();return("input"===name||"button"===name)&&elem.type===type}}function createDisabledPseudo(disabled){return function(elem){return"form"in elem?elem.parentNode&&!1===elem.disabled?"label"in elem?"label"in elem.parentNode?elem.parentNode.disabled===disabled:elem.disabled===disabled:elem.isDisabled===disabled||elem.isDisabled!==!disabled&&inDisabledFieldset(elem)===disabled:elem.disabled===disabled:"label"in elem&&elem.disabled===disabled}}function createPositionalPseudo(fn){return markFunction((function(argument){return argument=+argument,markFunction((function(seed,matches){for(var j,matchIndexes=fn([],seed.length,argument),i=matchIndexes.length;i--;)seed[j=matchIndexes[i]]&&(seed[j]=!(matches[j]=seed[j]))}))}))}function testContext(context){return context&&void 0!==context.getElementsByTagName&&context}for(i in support=Sizzle.support={},isXML=Sizzle.isXML=function(elem){var namespace=elem.namespaceURI,docElem=(elem.ownerDocument||elem).documentElement;return!rhtml.test(namespace||docElem&&docElem.nodeName||"HTML")},setDocument=Sizzle.setDocument=function(node){var hasCompare,subWindow,doc=node?node.ownerDocument||node:preferredDoc;return doc!=document&&9===doc.nodeType&&doc.documentElement?(docElem=(document=doc).documentElement,documentIsHTML=!isXML(document),preferredDoc!=document&&(subWindow=document.defaultView)&&subWindow.top!==subWindow&&(subWindow.addEventListener?subWindow.addEventListener("unload",unloadHandler,!1):subWindow.attachEvent&&subWindow.attachEvent("onunload",unloadHandler)),support.scope=assert((function(el){return docElem.appendChild(el).appendChild(document.createElement("div")),void 0!==el.querySelectorAll&&!el.querySelectorAll(":scope fieldset div").length})),support.attributes=assert((function(el){return el.className="i",!el.getAttribute("className")})),support.getElementsByTagName=assert((function(el){return el.appendChild(document.createComment("")),!el.getElementsByTagName("*").length})),support.getElementsByClassName=rnative.test(document.getElementsByClassName),support.getById=assert((function(el){return docElem.appendChild(el).id=expando,!document.getElementsByName||!document.getElementsByName(expando).length})),support.getById?(Expr.filter.ID=function(id){var attrId=id.replace(runescape,funescape);return function(elem){return elem.getAttribute("id")===attrId}},Expr.find.ID=function(id,context){if(void 0!==context.getElementById&&documentIsHTML){var elem=context.getElementById(id);return elem?[elem]:[]}}):(Expr.filter.ID=function(id){var attrId=id.replace(runescape,funescape);return function(elem){var node=void 0!==elem.getAttributeNode&&elem.getAttributeNode("id");return node&&node.value===attrId}},Expr.find.ID=function(id,context){if(void 0!==context.getElementById&&documentIsHTML){var node,i,elems,elem=context.getElementById(id);if(elem){if((node=elem.getAttributeNode("id"))&&node.value===id)return[elem];for(elems=context.getElementsByName(id),i=0;elem=elems[i++];)if((node=elem.getAttributeNode("id"))&&node.value===id)return[elem]}return[]}}),Expr.find.TAG=support.getElementsByTagName?function(tag,context){return void 0!==context.getElementsByTagName?context.getElementsByTagName(tag):support.qsa?context.querySelectorAll(tag):void 0}:function(tag,context){var elem,tmp=[],i=0,results=context.getElementsByTagName(tag);if("*"===tag){for(;elem=results[i++];)1===elem.nodeType&&tmp.push(elem);return tmp}return results},Expr.find.CLASS=support.getElementsByClassName&&function(className,context){if(void 0!==context.getElementsByClassName&&documentIsHTML)return context.getElementsByClassName(className)},rbuggyMatches=[],rbuggyQSA=[],(support.qsa=rnative.test(document.querySelectorAll))&&(assert((function(el){var input;docElem.appendChild(el).innerHTML="<a id='"+expando+"'></a><select id='"+expando+"-\r\\' msallowcapture=''><option selected=''></option></select>",el.querySelectorAll("[msallowcapture^='']").length&&rbuggyQSA.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),el.querySelectorAll("[selected]").length||rbuggyQSA.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|"+booleans+")"),el.querySelectorAll("[id~="+expando+"-]").length||rbuggyQSA.push("~="),(input=document.createElement("input")).setAttribute("name",""),el.appendChild(input),el.querySelectorAll("[name='']").length||rbuggyQSA.push("\\[[\\x20\\t\\r\\n\\f]*name[\\x20\\t\\r\\n\\f]*=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),el.querySelectorAll(":checked").length||rbuggyQSA.push(":checked"),el.querySelectorAll("a#"+expando+"+*").length||rbuggyQSA.push(".#.+[+~]"),el.querySelectorAll("\\\f"),rbuggyQSA.push("[\\r\\n\\f]")})),assert((function(el){el.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var input=document.createElement("input");input.setAttribute("type","hidden"),el.appendChild(input).setAttribute("name","D"),el.querySelectorAll("[name=d]").length&&rbuggyQSA.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?="),2!==el.querySelectorAll(":enabled").length&&rbuggyQSA.push(":enabled",":disabled"),docElem.appendChild(el).disabled=!0,2!==el.querySelectorAll(":disabled").length&&rbuggyQSA.push(":enabled",":disabled"),el.querySelectorAll("*,:x"),rbuggyQSA.push(",.*:")}))),(support.matchesSelector=rnative.test(matches=docElem.matches||docElem.webkitMatchesSelector||docElem.mozMatchesSelector||docElem.oMatchesSelector||docElem.msMatchesSelector))&&assert((function(el){support.disconnectedMatch=matches.call(el,"*"),matches.call(el,"[s!='']:x"),rbuggyMatches.push("!=",pseudos)})),rbuggyQSA=rbuggyQSA.length&&new RegExp(rbuggyQSA.join("|")),rbuggyMatches=rbuggyMatches.length&&new RegExp(rbuggyMatches.join("|")),hasCompare=rnative.test(docElem.compareDocumentPosition),contains=hasCompare||rnative.test(docElem.contains)?function(a,b){var adown=9===a.nodeType?a.documentElement:a,bup=b&&b.parentNode;return a===bup||!(!bup||1!==bup.nodeType||!(adown.contains?adown.contains(bup):a.compareDocumentPosition&&16&a.compareDocumentPosition(bup)))}:function(a,b){if(b)for(;b=b.parentNode;)if(b===a)return!0;return!1},sortOrder=hasCompare?function(a,b){if(a===b)return hasDuplicate=!0,0;var compare=!a.compareDocumentPosition-!b.compareDocumentPosition;return compare||(1&(compare=(a.ownerDocument||a)==(b.ownerDocument||b)?a.compareDocumentPosition(b):1)||!support.sortDetached&&b.compareDocumentPosition(a)===compare?a==document||a.ownerDocument==preferredDoc&&contains(preferredDoc,a)?-1:b==document||b.ownerDocument==preferredDoc&&contains(preferredDoc,b)?1:sortInput?indexOf(sortInput,a)-indexOf(sortInput,b):0:4&compare?-1:1)}:function(a,b){if(a===b)return hasDuplicate=!0,0;var cur,i=0,aup=a.parentNode,bup=b.parentNode,ap=[a],bp=[b];if(!aup||!bup)return a==document?-1:b==document?1:aup?-1:bup?1:sortInput?indexOf(sortInput,a)-indexOf(sortInput,b):0;if(aup===bup)return siblingCheck(a,b);for(cur=a;cur=cur.parentNode;)ap.unshift(cur);for(cur=b;cur=cur.parentNode;)bp.unshift(cur);for(;ap[i]===bp[i];)i++;return i?siblingCheck(ap[i],bp[i]):ap[i]==preferredDoc?-1:bp[i]==preferredDoc?1:0},document):document},Sizzle.matches=function(expr,elements){return Sizzle(expr,null,null,elements)},Sizzle.matchesSelector=function(elem,expr){if(setDocument(elem),support.matchesSelector&&documentIsHTML&&!nonnativeSelectorCache[expr+" "]&&(!rbuggyMatches||!rbuggyMatches.test(expr))&&(!rbuggyQSA||!rbuggyQSA.test(expr)))try{var ret=matches.call(elem,expr);if(ret||support.disconnectedMatch||elem.document&&11!==elem.document.nodeType)return ret}catch(e){nonnativeSelectorCache(expr,!0)}return Sizzle(expr,document,null,[elem]).length>0},Sizzle.contains=function(context,elem){return(context.ownerDocument||context)!=document&&setDocument(context),contains(context,elem)},Sizzle.attr=function(elem,name){(elem.ownerDocument||elem)!=document&&setDocument(elem);var fn=Expr.attrHandle[name.toLowerCase()],val=fn&&hasOwn.call(Expr.attrHandle,name.toLowerCase())?fn(elem,name,!documentIsHTML):void 0;return void 0!==val?val:support.attributes||!documentIsHTML?elem.getAttribute(name):(val=elem.getAttributeNode(name))&&val.specified?val.value:null},Sizzle.escape=function(sel){return(sel+"").replace(rcssescape,fcssescape)},Sizzle.error=function(msg){throw new Error("Syntax error, unrecognized expression: "+msg)},Sizzle.uniqueSort=function(results){var elem,duplicates=[],j=0,i=0;if(hasDuplicate=!support.detectDuplicates,sortInput=!support.sortStable&&results.slice(0),results.sort(sortOrder),hasDuplicate){for(;elem=results[i++];)elem===results[i]&&(j=duplicates.push(i));for(;j--;)results.splice(duplicates[j],1)}return sortInput=null,results},getText=Sizzle.getText=function(elem){var node,ret="",i=0,nodeType=elem.nodeType;if(nodeType){if(1===nodeType||9===nodeType||11===nodeType){if("string"==typeof elem.textContent)return elem.textContent;for(elem=elem.firstChild;elem;elem=elem.nextSibling)ret+=getText(elem)}else if(3===nodeType||4===nodeType)return elem.nodeValue}else for(;node=elem[i++];)ret+=getText(node);return ret},Expr=Sizzle.selectors={cacheLength:50,createPseudo:markFunction,match:matchExpr,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(match){return match[1]=match[1].replace(runescape,funescape),match[3]=(match[3]||match[4]||match[5]||"").replace(runescape,funescape),"~="===match[2]&&(match[3]=" "+match[3]+" "),match.slice(0,4)},CHILD:function(match){return match[1]=match[1].toLowerCase(),"nth"===match[1].slice(0,3)?(match[3]||Sizzle.error(match[0]),match[4]=+(match[4]?match[5]+(match[6]||1):2*("even"===match[3]||"odd"===match[3])),match[5]=+(match[7]+match[8]||"odd"===match[3])):match[3]&&Sizzle.error(match[0]),match},PSEUDO:function(match){var excess,unquoted=!match[6]&&match[2];return matchExpr.CHILD.test(match[0])?null:(match[3]?match[2]=match[4]||match[5]||"":unquoted&&rpseudo.test(unquoted)&&(excess=tokenize(unquoted,!0))&&(excess=unquoted.indexOf(")",unquoted.length-excess)-unquoted.length)&&(match[0]=match[0].slice(0,excess),match[2]=unquoted.slice(0,excess)),match.slice(0,3))}},filter:{TAG:function(nodeNameSelector){var nodeName=nodeNameSelector.replace(runescape,funescape).toLowerCase();return"*"===nodeNameSelector?function(){return!0}:function(elem){return elem.nodeName&&elem.nodeName.toLowerCase()===nodeName}},CLASS:function(className){var pattern=classCache[className+" "];return pattern||(pattern=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+className+"("+whitespace+"|$)"))&&classCache(className,(function(elem){return pattern.test("string"==typeof elem.className&&elem.className||void 0!==elem.getAttribute&&elem.getAttribute("class")||"")}))},ATTR:function(name,operator,check){return function(elem){var result=Sizzle.attr(elem,name);return null==result?"!="===operator:!operator||(result+="","="===operator?result===check:"!="===operator?result!==check:"^="===operator?check&&0===result.indexOf(check):"*="===operator?check&&result.indexOf(check)>-1:"$="===operator?check&&result.slice(-check.length)===check:"~="===operator?(" "+result.replace(rwhitespace," ")+" ").indexOf(check)>-1:"|="===operator&&(result===check||result.slice(0,check.length+1)===check+"-"))}},CHILD:function(type,what,_argument,first,last){var simple="nth"!==type.slice(0,3),forward="last"!==type.slice(-4),ofType="of-type"===what;return 1===first&&0===last?function(elem){return!!elem.parentNode}:function(elem,_context,xml){var cache,uniqueCache,outerCache,node,nodeIndex,start,dir=simple!==forward?"nextSibling":"previousSibling",parent=elem.parentNode,name=ofType&&elem.nodeName.toLowerCase(),useCache=!xml&&!ofType,diff=!1;if(parent){if(simple){for(;dir;){for(node=elem;node=node[dir];)if(ofType?node.nodeName.toLowerCase()===name:1===node.nodeType)return!1;start=dir="only"===type&&!start&&"nextSibling"}return!0}if(start=[forward?parent.firstChild:parent.lastChild],forward&&useCache){for(diff=(nodeIndex=(cache=(uniqueCache=(outerCache=(node=parent)[expando]||(node[expando]={}))[node.uniqueID]||(outerCache[node.uniqueID]={}))[type]||[])[0]===dirruns&&cache[1])&&cache[2],node=nodeIndex&&parent.childNodes[nodeIndex];node=++nodeIndex&&node&&node[dir]||(diff=nodeIndex=0)||start.pop();)if(1===node.nodeType&&++diff&&node===elem){uniqueCache[type]=[dirruns,nodeIndex,diff];break}}else if(useCache&&(diff=nodeIndex=(cache=(uniqueCache=(outerCache=(node=elem)[expando]||(node[expando]={}))[node.uniqueID]||(outerCache[node.uniqueID]={}))[type]||[])[0]===dirruns&&cache[1]),!1===diff)for(;(node=++nodeIndex&&node&&node[dir]||(diff=nodeIndex=0)||start.pop())&&((ofType?node.nodeName.toLowerCase()!==name:1!==node.nodeType)||!++diff||(useCache&&((uniqueCache=(outerCache=node[expando]||(node[expando]={}))[node.uniqueID]||(outerCache[node.uniqueID]={}))[type]=[dirruns,diff]),node!==elem)););return(diff-=last)===first||diff%first==0&&diff/first>=0}}},PSEUDO:function(pseudo,argument){var args,fn=Expr.pseudos[pseudo]||Expr.setFilters[pseudo.toLowerCase()]||Sizzle.error("unsupported pseudo: "+pseudo);return fn[expando]?fn(argument):fn.length>1?(args=[pseudo,pseudo,"",argument],Expr.setFilters.hasOwnProperty(pseudo.toLowerCase())?markFunction((function(seed,matches){for(var idx,matched=fn(seed,argument),i=matched.length;i--;)seed[idx=indexOf(seed,matched[i])]=!(matches[idx]=matched[i])})):function(elem){return fn(elem,0,args)}):fn}},pseudos:{not:markFunction((function(selector){var input=[],results=[],matcher=compile(selector.replace(rtrim,"$1"));return matcher[expando]?markFunction((function(seed,matches,_context,xml){for(var elem,unmatched=matcher(seed,null,xml,[]),i=seed.length;i--;)(elem=unmatched[i])&&(seed[i]=!(matches[i]=elem))})):function(elem,_context,xml){return input[0]=elem,matcher(input,null,xml,results),input[0]=null,!results.pop()}})),has:markFunction((function(selector){return function(elem){return Sizzle(selector,elem).length>0}})),contains:markFunction((function(text){return text=text.replace(runescape,funescape),function(elem){return(elem.textContent||getText(elem)).indexOf(text)>-1}})),lang:markFunction((function(lang){return ridentifier.test(lang||"")||Sizzle.error("unsupported lang: "+lang),lang=lang.replace(runescape,funescape).toLowerCase(),function(elem){var elemLang;do{if(elemLang=documentIsHTML?elem.lang:elem.getAttribute("xml:lang")||elem.getAttribute("lang"))return(elemLang=elemLang.toLowerCase())===lang||0===elemLang.indexOf(lang+"-")}while((elem=elem.parentNode)&&1===elem.nodeType);return!1}})),target:function(elem){var hash=window.location&&window.location.hash;return hash&&hash.slice(1)===elem.id},root:function(elem){return elem===docElem},focus:function(elem){return elem===document.activeElement&&(!document.hasFocus||document.hasFocus())&&!!(elem.type||elem.href||~elem.tabIndex)},enabled:createDisabledPseudo(!1),disabled:createDisabledPseudo(!0),checked:function(elem){var nodeName=elem.nodeName.toLowerCase();return"input"===nodeName&&!!elem.checked||"option"===nodeName&&!!elem.selected},selected:function(elem){return elem.parentNode&&elem.parentNode.selectedIndex,!0===elem.selected},empty:function(elem){for(elem=elem.firstChild;elem;elem=elem.nextSibling)if(elem.nodeType<6)return!1;return!0},parent:function(elem){return!Expr.pseudos.empty(elem)},header:function(elem){return rheader.test(elem.nodeName)},input:function(elem){return rinputs.test(elem.nodeName)},button:function(elem){var name=elem.nodeName.toLowerCase();return"input"===name&&"button"===elem.type||"button"===name},text:function(elem){var attr;return"input"===elem.nodeName.toLowerCase()&&"text"===elem.type&&(null==(attr=elem.getAttribute("type"))||"text"===attr.toLowerCase())},first:createPositionalPseudo((function(){return[0]})),last:createPositionalPseudo((function(_matchIndexes,length){return[length-1]})),eq:createPositionalPseudo((function(_matchIndexes,length,argument){return[argument<0?argument+length:argument]})),even:createPositionalPseudo((function(matchIndexes,length){for(var i=0;i<length;i+=2)matchIndexes.push(i);return matchIndexes})),odd:createPositionalPseudo((function(matchIndexes,length){for(var i=1;i<length;i+=2)matchIndexes.push(i);return matchIndexes})),lt:createPositionalPseudo((function(matchIndexes,length,argument){for(var i=argument<0?argument+length:argument>length?length:argument;--i>=0;)matchIndexes.push(i);return matchIndexes})),gt:createPositionalPseudo((function(matchIndexes,length,argument){for(var i=argument<0?argument+length:argument;++i<length;)matchIndexes.push(i);return matchIndexes}))}},Expr.pseudos.nth=Expr.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})Expr.pseudos[i]=createInputPseudo(i);for(i in{submit:!0,reset:!0})Expr.pseudos[i]=createButtonPseudo(i);function setFilters(){}function toSelector(tokens){for(var i=0,len=tokens.length,selector="";i<len;i++)selector+=tokens[i].value;return selector}function addCombinator(matcher,combinator,base){var dir=combinator.dir,skip=combinator.next,key=skip||dir,checkNonElements=base&&"parentNode"===key,doneName=done++;return combinator.first?function(elem,context,xml){for(;elem=elem[dir];)if(1===elem.nodeType||checkNonElements)return matcher(elem,context,xml);return!1}:function(elem,context,xml){var oldCache,uniqueCache,outerCache,newCache=[dirruns,doneName];if(xml){for(;elem=elem[dir];)if((1===elem.nodeType||checkNonElements)&&matcher(elem,context,xml))return!0}else for(;elem=elem[dir];)if(1===elem.nodeType||checkNonElements)if(uniqueCache=(outerCache=elem[expando]||(elem[expando]={}))[elem.uniqueID]||(outerCache[elem.uniqueID]={}),skip&&skip===elem.nodeName.toLowerCase())elem=elem[dir]||elem;else{if((oldCache=uniqueCache[key])&&oldCache[0]===dirruns&&oldCache[1]===doneName)return newCache[2]=oldCache[2];if(uniqueCache[key]=newCache,newCache[2]=matcher(elem,context,xml))return!0}return!1}}function elementMatcher(matchers){return matchers.length>1?function(elem,context,xml){for(var i=matchers.length;i--;)if(!matchers[i](elem,context,xml))return!1;return!0}:matchers[0]}function condense(unmatched,map,filter,context,xml){for(var elem,newUnmatched=[],i=0,len=unmatched.length,mapped=null!=map;i<len;i++)(elem=unmatched[i])&&(filter&&!filter(elem,context,xml)||(newUnmatched.push(elem),mapped&&map.push(i)));return newUnmatched}function setMatcher(preFilter,selector,matcher,postFilter,postFinder,postSelector){return postFilter&&!postFilter[expando]&&(postFilter=setMatcher(postFilter)),postFinder&&!postFinder[expando]&&(postFinder=setMatcher(postFinder,postSelector)),markFunction((function(seed,results,context,xml){var temp,i,elem,preMap=[],postMap=[],preexisting=results.length,elems=seed||function(selector,contexts,results){for(var i=0,len=contexts.length;i<len;i++)Sizzle(selector,contexts[i],results);return results}(selector||"*",context.nodeType?[context]:context,[]),matcherIn=!preFilter||!seed&&selector?elems:condense(elems,preMap,preFilter,context,xml),matcherOut=matcher?postFinder||(seed?preFilter:preexisting||postFilter)?[]:results:matcherIn;if(matcher&&matcher(matcherIn,matcherOut,context,xml),postFilter)for(temp=condense(matcherOut,postMap),postFilter(temp,[],context,xml),i=temp.length;i--;)(elem=temp[i])&&(matcherOut[postMap[i]]=!(matcherIn[postMap[i]]=elem));if(seed){if(postFinder||preFilter){if(postFinder){for(temp=[],i=matcherOut.length;i--;)(elem=matcherOut[i])&&temp.push(matcherIn[i]=elem);postFinder(null,matcherOut=[],temp,xml)}for(i=matcherOut.length;i--;)(elem=matcherOut[i])&&(temp=postFinder?indexOf(seed,elem):preMap[i])>-1&&(seed[temp]=!(results[temp]=elem))}}else matcherOut=condense(matcherOut===results?matcherOut.splice(preexisting,matcherOut.length):matcherOut),postFinder?postFinder(null,results,matcherOut,xml):push.apply(results,matcherOut)}))}function matcherFromTokens(tokens){for(var checkContext,matcher,j,len=tokens.length,leadingRelative=Expr.relative[tokens[0].type],implicitRelative=leadingRelative||Expr.relative[" "],i=leadingRelative?1:0,matchContext=addCombinator((function(elem){return elem===checkContext}),implicitRelative,!0),matchAnyContext=addCombinator((function(elem){return indexOf(checkContext,elem)>-1}),implicitRelative,!0),matchers=[function(elem,context,xml){var ret=!leadingRelative&&(xml||context!==outermostContext)||((checkContext=context).nodeType?matchContext(elem,context,xml):matchAnyContext(elem,context,xml));return checkContext=null,ret}];i<len;i++)if(matcher=Expr.relative[tokens[i].type])matchers=[addCombinator(elementMatcher(matchers),matcher)];else{if((matcher=Expr.filter[tokens[i].type].apply(null,tokens[i].matches))[expando]){for(j=++i;j<len&&!Expr.relative[tokens[j].type];j++);return setMatcher(i>1&&elementMatcher(matchers),i>1&&toSelector(tokens.slice(0,i-1).concat({value:" "===tokens[i-2].type?"*":""})).replace(rtrim,"$1"),matcher,i<j&&matcherFromTokens(tokens.slice(i,j)),j<len&&matcherFromTokens(tokens=tokens.slice(j)),j<len&&toSelector(tokens))}matchers.push(matcher)}return elementMatcher(matchers)}return setFilters.prototype=Expr.filters=Expr.pseudos,Expr.setFilters=new setFilters,tokenize=Sizzle.tokenize=function(selector,parseOnly){var matched,match,tokens,type,soFar,groups,preFilters,cached=tokenCache[selector+" "];if(cached)return parseOnly?0:cached.slice(0);for(soFar=selector,groups=[],preFilters=Expr.preFilter;soFar;){for(type in matched&&!(match=rcomma.exec(soFar))||(match&&(soFar=soFar.slice(match[0].length)||soFar),groups.push(tokens=[])),matched=!1,(match=rcombinators.exec(soFar))&&(matched=match.shift(),tokens.push({value:matched,type:match[0].replace(rtrim," ")}),soFar=soFar.slice(matched.length)),Expr.filter)!(match=matchExpr[type].exec(soFar))||preFilters[type]&&!(match=preFilters[type](match))||(matched=match.shift(),tokens.push({value:matched,type:type,matches:match}),soFar=soFar.slice(matched.length));if(!matched)break}return parseOnly?soFar.length:soFar?Sizzle.error(selector):tokenCache(selector,groups).slice(0)},compile=Sizzle.compile=function(selector,match){var i,setMatchers=[],elementMatchers=[],cached=compilerCache[selector+" "];if(!cached){for(match||(match=tokenize(selector)),i=match.length;i--;)(cached=matcherFromTokens(match[i]))[expando]?setMatchers.push(cached):elementMatchers.push(cached);cached=compilerCache(selector,function(elementMatchers,setMatchers){var bySet=setMatchers.length>0,byElement=elementMatchers.length>0,superMatcher=function(seed,context,xml,results,outermost){var elem,j,matcher,matchedCount=0,i="0",unmatched=seed&&[],setMatched=[],contextBackup=outermostContext,elems=seed||byElement&&Expr.find.TAG("*",outermost),dirrunsUnique=dirruns+=null==contextBackup?1:Math.random()||.1,len=elems.length;for(outermost&&(outermostContext=context==document||context||outermost);i!==len&&null!=(elem=elems[i]);i++){if(byElement&&elem){for(j=0,context||elem.ownerDocument==document||(setDocument(elem),xml=!documentIsHTML);matcher=elementMatchers[j++];)if(matcher(elem,context||document,xml)){results.push(elem);break}outermost&&(dirruns=dirrunsUnique)}bySet&&((elem=!matcher&&elem)&&matchedCount--,seed&&unmatched.push(elem))}if(matchedCount+=i,bySet&&i!==matchedCount){for(j=0;matcher=setMatchers[j++];)matcher(unmatched,setMatched,context,xml);if(seed){if(matchedCount>0)for(;i--;)unmatched[i]||setMatched[i]||(setMatched[i]=pop.call(results));setMatched=condense(setMatched)}push.apply(results,setMatched),outermost&&!seed&&setMatched.length>0&&matchedCount+setMatchers.length>1&&Sizzle.uniqueSort(results)}return outermost&&(dirruns=dirrunsUnique,outermostContext=contextBackup),unmatched};return bySet?markFunction(superMatcher):superMatcher}(elementMatchers,setMatchers)),cached.selector=selector}return cached},select=Sizzle.select=function(selector,context,results,seed){var i,tokens,token,type,find,compiled="function"==typeof selector&&selector,match=!seed&&tokenize(selector=compiled.selector||selector);if(results=results||[],1===match.length){if((tokens=match[0]=match[0].slice(0)).length>2&&"ID"===(token=tokens[0]).type&&9===context.nodeType&&documentIsHTML&&Expr.relative[tokens[1].type]){if(!(context=(Expr.find.ID(token.matches[0].replace(runescape,funescape),context)||[])[0]))return results;compiled&&(context=context.parentNode),selector=selector.slice(tokens.shift().value.length)}for(i=matchExpr.needsContext.test(selector)?0:tokens.length;i--&&(token=tokens[i],!Expr.relative[type=token.type]);)if((find=Expr.find[type])&&(seed=find(token.matches[0].replace(runescape,funescape),rsibling.test(tokens[0].type)&&testContext(context.parentNode)||context))){if(tokens.splice(i,1),!(selector=seed.length&&toSelector(tokens)))return push.apply(results,seed),results;break}}return(compiled||compile(selector,match))(seed,context,!documentIsHTML,results,!context||rsibling.test(selector)&&testContext(context.parentNode)||context),results},support.sortStable=expando.split("").sort(sortOrder).join("")===expando,support.detectDuplicates=!!hasDuplicate,setDocument(),support.sortDetached=assert((function(el){return 1&el.compareDocumentPosition(document.createElement("fieldset"))})),assert((function(el){return el.innerHTML="<a href='#'></a>","#"===el.firstChild.getAttribute("href")}))||addHandle("type|href|height|width",(function(elem,name,isXML){if(!isXML)return elem.getAttribute(name,"type"===name.toLowerCase()?1:2)})),support.attributes&&assert((function(el){return el.innerHTML="<input/>",el.firstChild.setAttribute("value",""),""===el.firstChild.getAttribute("value")}))||addHandle("value",(function(elem,_name,isXML){if(!isXML&&"input"===elem.nodeName.toLowerCase())return elem.defaultValue})),assert((function(el){return null==el.getAttribute("disabled")}))||addHandle(booleans,(function(elem,name,isXML){var val;if(!isXML)return!0===elem[name]?name.toLowerCase():(val=elem.getAttributeNode(name))&&val.specified?val.value:null})),Sizzle}(window);_jQuery2.find=Sizzle,_jQuery2.expr=Sizzle.selectors,_jQuery2.expr[":"]=_jQuery2.expr.pseudos,_jQuery2.uniqueSort=_jQuery2.unique=Sizzle.uniqueSort,_jQuery2.text=Sizzle.getText,_jQuery2.isXMLDoc=Sizzle.isXML,_jQuery2.contains=Sizzle.contains,_jQuery2.escapeSelector=Sizzle.escape;var dir=function(elem,_dir,until){for(var matched=[],truncate=void 0!==until;(elem=elem[_dir])&&9!==elem.nodeType;)if(1===elem.nodeType){if(truncate&&_jQuery2(elem).is(until))break;matched.push(elem)}return matched},_siblings=function(n,elem){for(var matched=[];n;n=n.nextSibling)1===n.nodeType&&n!==elem&&matched.push(n);return matched},rneedsContext=_jQuery2.expr.match.needsContext;function nodeName(elem,name){return elem.nodeName&&elem.nodeName.toLowerCase()===name.toLowerCase()}var rsingleTag=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function winnow(elements,qualifier,not){return isFunction(qualifier)?_jQuery2.grep(elements,(function(elem,i){return!!qualifier.call(elem,i,elem)!==not})):qualifier.nodeType?_jQuery2.grep(elements,(function(elem){return elem===qualifier!==not})):"string"!=typeof qualifier?_jQuery2.grep(elements,(function(elem){return indexOf.call(qualifier,elem)>-1!==not})):_jQuery2.filter(qualifier,elements,not)}_jQuery2.filter=function(expr,elems,not){var elem=elems[0];return not&&(expr=":not("+expr+")"),1===elems.length&&1===elem.nodeType?_jQuery2.find.matchesSelector(elem,expr)?[elem]:[]:_jQuery2.find.matches(expr,_jQuery2.grep(elems,(function(elem){return 1===elem.nodeType})))},_jQuery2.fn.extend({find:function(selector){var i,ret,len=this.length,self=this;if("string"!=typeof selector)return this.pushStack(_jQuery2(selector).filter((function(){for(i=0;i<len;i++)if(_jQuery2.contains(self[i],this))return!0})));for(ret=this.pushStack([]),i=0;i<len;i++)_jQuery2.find(selector,self[i],ret);return len>1?_jQuery2.uniqueSort(ret):ret},filter:function(selector){return this.pushStack(winnow(this,selector||[],!1))},not:function(selector){return this.pushStack(winnow(this,selector||[],!0))},is:function(selector){return!!winnow(this,"string"==typeof selector&&rneedsContext.test(selector)?_jQuery2(selector):selector||[],!1).length}});var rootjQuery,rquickExpr=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(_jQuery2.fn.init=function(selector,context,root){var match,elem;if(!selector)return this;if(root=root||rootjQuery,"string"==typeof selector){if(!(match="<"===selector[0]&&">"===selector[selector.length-1]&&selector.length>=3?[null,selector,null]:rquickExpr.exec(selector))||!match[1]&&context)return!context||context.jquery?(context||root).find(selector):this.constructor(context).find(selector);if(match[1]){if(context=context instanceof _jQuery2?context[0]:context,_jQuery2.merge(this,_jQuery2.parseHTML(match[1],context&&context.nodeType?context.ownerDocument||context:document,!0)),rsingleTag.test(match[1])&&_jQuery2.isPlainObject(context))for(match in context)isFunction(this[match])?this[match](context[match]):this.attr(match,context[match]);return this}return(elem=document.getElementById(match[2]))&&(this[0]=elem,this.length=1),this}return selector.nodeType?(this[0]=selector,this.length=1,this):isFunction(selector)?void 0!==root.ready?root.ready(selector):selector(_jQuery2):_jQuery2.makeArray(selector,this)}).prototype=_jQuery2.fn,rootjQuery=_jQuery2(document);var rparentsprev=/^(?:parents|prev(?:Until|All))/,guaranteedUnique={children:!0,contents:!0,next:!0,prev:!0};function sibling(cur,dir){for(;(cur=cur[dir])&&1!==cur.nodeType;);return cur}_jQuery2.fn.extend({has:function(target){var targets=_jQuery2(target,this),l=targets.length;return this.filter((function(){for(var i=0;i<l;i++)if(_jQuery2.contains(this,targets[i]))return!0}))},closest:function(selectors,context){var cur,i=0,l=this.length,matched=[],targets="string"!=typeof selectors&&_jQuery2(selectors);if(!rneedsContext.test(selectors))for(;i<l;i++)for(cur=this[i];cur&&cur!==context;cur=cur.parentNode)if(cur.nodeType<11&&(targets?targets.index(cur)>-1:1===cur.nodeType&&_jQuery2.find.matchesSelector(cur,selectors))){matched.push(cur);break}return this.pushStack(matched.length>1?_jQuery2.uniqueSort(matched):matched)},index:function(elem){return elem?"string"==typeof elem?indexOf.call(_jQuery2(elem),this[0]):indexOf.call(this,elem.jquery?elem[0]:elem):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(selector,context){return this.pushStack(_jQuery2.uniqueSort(_jQuery2.merge(this.get(),_jQuery2(selector,context))))},addBack:function(selector){return this.add(null==selector?this.prevObject:this.prevObject.filter(selector))}}),_jQuery2.each({parent:function(elem){var parent=elem.parentNode;return parent&&11!==parent.nodeType?parent:null},parents:function(elem){return dir(elem,"parentNode")},parentsUntil:function(elem,_i,until){return dir(elem,"parentNode",until)},next:function(elem){return sibling(elem,"nextSibling")},prev:function(elem){return sibling(elem,"previousSibling")},nextAll:function(elem){return dir(elem,"nextSibling")},prevAll:function(elem){return dir(elem,"previousSibling")},nextUntil:function(elem,_i,until){return dir(elem,"nextSibling",until)},prevUntil:function(elem,_i,until){return dir(elem,"previousSibling",until)},siblings:function(elem){return _siblings((elem.parentNode||{}).firstChild,elem)},children:function(elem){return _siblings(elem.firstChild)},contents:function(elem){return null!=elem.contentDocument&&getProto(elem.contentDocument)?elem.contentDocument:(nodeName(elem,"template")&&(elem=elem.content||elem),_jQuery2.merge([],elem.childNodes))}},(function(name,fn){_jQuery2.fn[name]=function(until,selector){var matched=_jQuery2.map(this,fn,until);return"Until"!==name.slice(-5)&&(selector=until),selector&&"string"==typeof selector&&(matched=_jQuery2.filter(selector,matched)),this.length>1&&(guaranteedUnique[name]||_jQuery2.uniqueSort(matched),rparentsprev.test(name)&&matched.reverse()),this.pushStack(matched)}}));var rnothtmlwhite=/[^\x20\t\r\n\f]+/g;function Identity(v){return v}function Thrower(ex){throw ex}function adoptValue(value,resolve,reject,noValue){var method;try{value&&isFunction(method=value.promise)?method.call(value).done(resolve).fail(reject):value&&isFunction(method=value.then)?method.call(value,resolve,reject):resolve.apply(void 0,[value].slice(noValue))}catch(value){reject.apply(void 0,[value])}}_jQuery2.Callbacks=function(options){options="string"==typeof options?function(options){var object={};return _jQuery2.each(options.match(rnothtmlwhite)||[],(function(_,flag){object[flag]=!0})),object}(options):_jQuery2.extend({},options);var firing,memory,_fired,_locked,list=[],queue=[],firingIndex=-1,fire=function(){for(_locked=_locked||options.once,_fired=firing=!0;queue.length;firingIndex=-1)for(memory=queue.shift();++firingIndex<list.length;)!1===list[firingIndex].apply(memory[0],memory[1])&&options.stopOnFalse&&(firingIndex=list.length,memory=!1);options.memory||(memory=!1),firing=!1,_locked&&(list=memory?[]:"")},self={add:function(){return list&&(memory&&!firing&&(firingIndex=list.length-1,queue.push(memory)),function add(args){_jQuery2.each(args,(function(_,arg){isFunction(arg)?options.unique&&self.has(arg)||list.push(arg):arg&&arg.length&&"string"!==toType(arg)&&add(arg)}))}(arguments),memory&&!firing&&fire()),this},remove:function(){return _jQuery2.each(arguments,(function(_,arg){for(var index;(index=_jQuery2.inArray(arg,list,index))>-1;)list.splice(index,1),index<=firingIndex&&firingIndex--})),this},has:function(fn){return fn?_jQuery2.inArray(fn,list)>-1:list.length>0},empty:function(){return list&&(list=[]),this},disable:function(){return _locked=queue=[],list=memory="",this},disabled:function(){return!list},lock:function(){return _locked=queue=[],memory||firing||(list=memory=""),this},locked:function(){return!!_locked},fireWith:function(context,args){return _locked||(args=[context,(args=args||[]).slice?args.slice():args],queue.push(args),firing||fire()),this},fire:function(){return self.fireWith(this,arguments),this},fired:function(){return!!_fired}};return self},_jQuery2.extend({Deferred:function(func){var tuples=[["notify","progress",_jQuery2.Callbacks("memory"),_jQuery2.Callbacks("memory"),2],["resolve","done",_jQuery2.Callbacks("once memory"),_jQuery2.Callbacks("once memory"),0,"resolved"],["reject","fail",_jQuery2.Callbacks("once memory"),_jQuery2.Callbacks("once memory"),1,"rejected"]],_state="pending",_promise={state:function(){return _state},always:function(){return deferred.done(arguments).fail(arguments),this},catch:function(fn){return _promise.then(null,fn)},pipe:function(){var fns=arguments;return _jQuery2.Deferred((function(newDefer){_jQuery2.each(tuples,(function(_i,tuple){var fn=isFunction(fns[tuple[4]])&&fns[tuple[4]];deferred[tuple[1]]((function(){var returned=fn&&fn.apply(this,arguments);returned&&isFunction(returned.promise)?returned.promise().progress(newDefer.notify).done(newDefer.resolve).fail(newDefer.reject):newDefer[tuple[0]+"With"](this,fn?[returned]:arguments)}))})),fns=null})).promise()},then:function(onFulfilled,onRejected,onProgress){var maxDepth=0;function resolve(depth,deferred,handler,special){return function(){var that=this,args=arguments,mightThrow=function(){var returned,then;if(!(depth<maxDepth)){if((returned=handler.apply(that,args))===deferred.promise())throw new TypeError("Thenable self-resolution");then=returned&&("object"===_typeof(returned)||"function"==typeof returned)&&returned.then,isFunction(then)?special?then.call(returned,resolve(maxDepth,deferred,Identity,special),resolve(maxDepth,deferred,Thrower,special)):(maxDepth++,then.call(returned,resolve(maxDepth,deferred,Identity,special),resolve(maxDepth,deferred,Thrower,special),resolve(maxDepth,deferred,Identity,deferred.notifyWith))):(handler!==Identity&&(that=void 0,args=[returned]),(special||deferred.resolveWith)(that,args))}},process=special?mightThrow:function(){try{mightThrow()}catch(e){_jQuery2.Deferred.exceptionHook&&_jQuery2.Deferred.exceptionHook(e,process.stackTrace),depth+1>=maxDepth&&(handler!==Thrower&&(that=void 0,args=[e]),deferred.rejectWith(that,args))}};depth?process():(_jQuery2.Deferred.getStackHook&&(process.stackTrace=_jQuery2.Deferred.getStackHook()),window.setTimeout(process))}}return _jQuery2.Deferred((function(newDefer){tuples[0][3].add(resolve(0,newDefer,isFunction(onProgress)?onProgress:Identity,newDefer.notifyWith)),tuples[1][3].add(resolve(0,newDefer,isFunction(onFulfilled)?onFulfilled:Identity)),tuples[2][3].add(resolve(0,newDefer,isFunction(onRejected)?onRejected:Thrower))})).promise()},promise:function(obj){return null!=obj?_jQuery2.extend(obj,_promise):_promise}},deferred={};return _jQuery2.each(tuples,(function(i,tuple){var list=tuple[2],stateString=tuple[5];_promise[tuple[1]]=list.add,stateString&&list.add((function(){_state=stateString}),tuples[3-i][2].disable,tuples[3-i][3].disable,tuples[0][2].lock,tuples[0][3].lock),list.add(tuple[3].fire),deferred[tuple[0]]=function(){return deferred[tuple[0]+"With"](this===deferred?void 0:this,arguments),this},deferred[tuple[0]+"With"]=list.fireWith})),_promise.promise(deferred),func&&func.call(deferred,deferred),deferred},when:function(singleValue){var remaining=arguments.length,i=remaining,resolveContexts=Array(i),resolveValues=_slice.call(arguments),master=_jQuery2.Deferred(),updateFunc=function(i){return function(value){resolveContexts[i]=this,resolveValues[i]=arguments.length>1?_slice.call(arguments):value,--remaining||master.resolveWith(resolveContexts,resolveValues)}};if(remaining<=1&&(adoptValue(singleValue,master.done(updateFunc(i)).resolve,master.reject,!remaining),"pending"===master.state()||isFunction(resolveValues[i]&&resolveValues[i].then)))return master.then();for(;i--;)adoptValue(resolveValues[i],updateFunc(i),master.reject);return master.promise()}});var rerrorNames=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;_jQuery2.Deferred.exceptionHook=function(error,stack){window.console&&window.console.warn&&error&&rerrorNames.test(error.name)&&window.console.warn("jQuery.Deferred exception: "+error.message,error.stack,stack)},_jQuery2.readyException=function(error){window.setTimeout((function(){throw error}))};var readyList=_jQuery2.Deferred();function completed(){document.removeEventListener("DOMContentLoaded",completed),window.removeEventListener("load",completed),_jQuery2.ready()}_jQuery2.fn.ready=function(fn){return readyList.then(fn).catch((function(error){_jQuery2.readyException(error)})),this},_jQuery2.extend({isReady:!1,readyWait:1,ready:function(wait){(!0===wait?--_jQuery2.readyWait:_jQuery2.isReady)||(_jQuery2.isReady=!0,!0!==wait&&--_jQuery2.readyWait>0||readyList.resolveWith(document,[_jQuery2]))}}),_jQuery2.ready.then=readyList.then,"complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll?window.setTimeout(_jQuery2.ready):(document.addEventListener("DOMContentLoaded",completed),window.addEventListener("load",completed));var _access=function(elems,fn,key,value,chainable,emptyGet,raw){var i=0,len=elems.length,bulk=null==key;if("object"===toType(key))for(i in chainable=!0,key)_access(elems,fn,i,key[i],!0,emptyGet,raw);else if(void 0!==value&&(chainable=!0,isFunction(value)||(raw=!0),bulk&&(raw?(fn.call(elems,value),fn=null):(bulk=fn,fn=function(elem,_key,value){return bulk.call(_jQuery2(elem),value)})),fn))for(;i<len;i++)fn(elems[i],key,raw?value:value.call(elems[i],i,fn(elems[i],key)));return chainable?elems:bulk?fn.call(elems):len?fn(elems[0],key):emptyGet},rmsPrefix=/^-ms-/,rdashAlpha=/-([a-z])/g;function fcamelCase(_all,letter){return letter.toUpperCase()}function camelCase(string){return string.replace(rmsPrefix,"ms-").replace(rdashAlpha,fcamelCase)}var acceptData=function(owner){return 1===owner.nodeType||9===owner.nodeType||!+owner.nodeType};function Data(){this.expando=_jQuery2.expando+Data.uid++}Data.uid=1,Data.prototype={cache:function(owner){var value=owner[this.expando];return value||(value={},acceptData(owner)&&(owner.nodeType?owner[this.expando]=value:Object.defineProperty(owner,this.expando,{value:value,configurable:!0}))),value},set:function(owner,data,value){var prop,cache=this.cache(owner);if("string"==typeof data)cache[camelCase(data)]=value;else for(prop in data)cache[camelCase(prop)]=data[prop];return cache},get:function(owner,key){return void 0===key?this.cache(owner):owner[this.expando]&&owner[this.expando][camelCase(key)]},access:function(owner,key,value){return void 0===key||key&&"string"==typeof key&&void 0===value?this.get(owner,key):(this.set(owner,key,value),void 0!==value?value:key)},remove:function(owner,key){var i,cache=owner[this.expando];if(void 0!==cache){if(void 0!==key){i=(key=Array.isArray(key)?key.map(camelCase):(key=camelCase(key))in cache?[key]:key.match(rnothtmlwhite)||[]).length;for(;i--;)delete cache[key[i]]}(void 0===key||_jQuery2.isEmptyObject(cache))&&(owner.nodeType?owner[this.expando]=void 0:delete owner[this.expando])}},hasData:function(owner){var cache=owner[this.expando];return void 0!==cache&&!_jQuery2.isEmptyObject(cache)}};var dataPriv=new Data,dataUser=new Data,rbrace=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,rmultiDash=/[A-Z]/g;function dataAttr(elem,key,data){var name;if(void 0===data&&1===elem.nodeType)if(name="data-"+key.replace(rmultiDash,"-$&").toLowerCase(),"string"==typeof(data=elem.getAttribute(name))){try{data=function(data){return"true"===data||"false"!==data&&("null"===data?null:data===+data+""?+data:rbrace.test(data)?JSON.parse(data):data)}(data)}catch(e){}dataUser.set(elem,key,data)}else data=void 0;return data}_jQuery2.extend({hasData:function(elem){return dataUser.hasData(elem)||dataPriv.hasData(elem)},data:function(elem,name,_data){return dataUser.access(elem,name,_data)},removeData:function(elem,name){dataUser.remove(elem,name)},_data:function(elem,name,data){return dataPriv.access(elem,name,data)},_removeData:function(elem,name){dataPriv.remove(elem,name)}}),_jQuery2.fn.extend({data:function(key,value){var i,name,data,elem=this[0],attrs=elem&&elem.attributes;if(void 0===key){if(this.length&&(data=dataUser.get(elem),1===elem.nodeType&&!dataPriv.get(elem,"hasDataAttrs"))){for(i=attrs.length;i--;)attrs[i]&&0===(name=attrs[i].name).indexOf("data-")&&(name=camelCase(name.slice(5)),dataAttr(elem,name,data[name]));dataPriv.set(elem,"hasDataAttrs",!0)}return data}return"object"===_typeof(key)?this.each((function(){dataUser.set(this,key)})):_access(this,(function(value){var data;if(elem&&void 0===value)return void 0!==(data=dataUser.get(elem,key))||void 0!==(data=dataAttr(elem,key))?data:void 0;this.each((function(){dataUser.set(this,key,value)}))}),null,value,arguments.length>1,null,!0)},removeData:function(key){return this.each((function(){dataUser.remove(this,key)}))}}),_jQuery2.extend({queue:function(elem,type,data){var queue;if(elem)return type=(type||"fx")+"queue",queue=dataPriv.get(elem,type),data&&(!queue||Array.isArray(data)?queue=dataPriv.access(elem,type,_jQuery2.makeArray(data)):queue.push(data)),queue||[]},dequeue:function(elem,type){type=type||"fx";var queue=_jQuery2.queue(elem,type),startLength=queue.length,fn=queue.shift(),hooks=_jQuery2._queueHooks(elem,type);"inprogress"===fn&&(fn=queue.shift(),startLength--),fn&&("fx"===type&&queue.unshift("inprogress"),delete hooks.stop,fn.call(elem,(function(){_jQuery2.dequeue(elem,type)}),hooks)),!startLength&&hooks&&hooks.empty.fire()},_queueHooks:function(elem,type){var key=type+"queueHooks";return dataPriv.get(elem,key)||dataPriv.access(elem,key,{empty:_jQuery2.Callbacks("once memory").add((function(){dataPriv.remove(elem,[type+"queue",key])}))})}}),_jQuery2.fn.extend({queue:function(type,data){var setter=2;return"string"!=typeof type&&(data=type,type="fx",setter--),arguments.length<setter?_jQuery2.queue(this[0],type):void 0===data?this:this.each((function(){var queue=_jQuery2.queue(this,type,data);_jQuery2._queueHooks(this,type),"fx"===type&&"inprogress"!==queue[0]&&_jQuery2.dequeue(this,type)}))},dequeue:function(type){return this.each((function(){_jQuery2.dequeue(this,type)}))},clearQueue:function(type){return this.queue(type||"fx",[])},promise:function(type,obj){var tmp,count=1,defer=_jQuery2.Deferred(),elements=this,i=this.length,resolve=function(){--count||defer.resolveWith(elements,[elements])};for("string"!=typeof type&&(obj=type,type=void 0),type=type||"fx";i--;)(tmp=dataPriv.get(elements[i],type+"queueHooks"))&&tmp.empty&&(count++,tmp.empty.add(resolve));return resolve(),defer.promise(obj)}});var pnum=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,rcssNum=new RegExp("^(?:([+-])=|)("+pnum+")([a-z%]*)$","i"),cssExpand=["Top","Right","Bottom","Left"],documentElement=document.documentElement,isAttached=function(elem){return _jQuery2.contains(elem.ownerDocument,elem)},composed={composed:!0};documentElement.getRootNode&&(isAttached=function(elem){return _jQuery2.contains(elem.ownerDocument,elem)||elem.getRootNode(composed)===elem.ownerDocument});var isHiddenWithinTree=function(elem,el){return"none"===(elem=el||elem).style.display||""===elem.style.display&&isAttached(elem)&&"none"===_jQuery2.css(elem,"display")};function adjustCSS(elem,prop,valueParts,tween){var adjusted,scale,maxIterations=20,currentValue=tween?function(){return tween.cur()}:function(){return _jQuery2.css(elem,prop,"")},initial=currentValue(),unit=valueParts&&valueParts[3]||(_jQuery2.cssNumber[prop]?"":"px"),initialInUnit=elem.nodeType&&(_jQuery2.cssNumber[prop]||"px"!==unit&&+initial)&&rcssNum.exec(_jQuery2.css(elem,prop));if(initialInUnit&&initialInUnit[3]!==unit){for(initial/=2,unit=unit||initialInUnit[3],initialInUnit=+initial||1;maxIterations--;)_jQuery2.style(elem,prop,initialInUnit+unit),(1-scale)*(1-(scale=currentValue()/initial||.5))<=0&&(maxIterations=0),initialInUnit/=scale;initialInUnit*=2,_jQuery2.style(elem,prop,initialInUnit+unit),valueParts=valueParts||[]}return valueParts&&(initialInUnit=+initialInUnit||+initial||0,adjusted=valueParts[1]?initialInUnit+(valueParts[1]+1)*valueParts[2]:+valueParts[2],tween&&(tween.unit=unit,tween.start=initialInUnit,tween.end=adjusted)),adjusted}var defaultDisplayMap={};function getDefaultDisplay(elem){var temp,doc=elem.ownerDocument,nodeName=elem.nodeName,display=defaultDisplayMap[nodeName];return display||(temp=doc.body.appendChild(doc.createElement(nodeName)),display=_jQuery2.css(temp,"display"),temp.parentNode.removeChild(temp),"none"===display&&(display="block"),defaultDisplayMap[nodeName]=display,display)}function showHide(elements,show){for(var display,elem,values=[],index=0,length=elements.length;index<length;index++)(elem=elements[index]).style&&(display=elem.style.display,show?("none"===display&&(values[index]=dataPriv.get(elem,"display")||null,values[index]||(elem.style.display="")),""===elem.style.display&&isHiddenWithinTree(elem)&&(values[index]=getDefaultDisplay(elem))):"none"!==display&&(values[index]="none",dataPriv.set(elem,"display",display)));for(index=0;index<length;index++)null!=values[index]&&(elements[index].style.display=values[index]);return elements}_jQuery2.fn.extend({show:function(){return showHide(this,!0)},hide:function(){return showHide(this)},toggle:function(state){return"boolean"==typeof state?state?this.show():this.hide():this.each((function(){isHiddenWithinTree(this)?_jQuery2(this).show():_jQuery2(this).hide()}))}});var div,input,rcheckableType=/^(?:checkbox|radio)$/i,rtagName=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,rscriptType=/^$|^module$|\/(?:java|ecma)script/i;div=document.createDocumentFragment().appendChild(document.createElement("div")),(input=document.createElement("input")).setAttribute("type","radio"),input.setAttribute("checked","checked"),input.setAttribute("name","t"),div.appendChild(input),support.checkClone=div.cloneNode(!0).cloneNode(!0).lastChild.checked,div.innerHTML="<textarea>x</textarea>",support.noCloneChecked=!!div.cloneNode(!0).lastChild.defaultValue,div.innerHTML="<option></option>",support.option=!!div.lastChild;var wrapMap={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function getAll(context,tag){var ret;return ret=void 0!==context.getElementsByTagName?context.getElementsByTagName(tag||"*"):void 0!==context.querySelectorAll?context.querySelectorAll(tag||"*"):[],void 0===tag||tag&&nodeName(context,tag)?_jQuery2.merge([context],ret):ret}function setGlobalEval(elems,refElements){for(var i=0,l=elems.length;i<l;i++)dataPriv.set(elems[i],"globalEval",!refElements||dataPriv.get(refElements[i],"globalEval"))}wrapMap.tbody=wrapMap.tfoot=wrapMap.colgroup=wrapMap.caption=wrapMap.thead,wrapMap.th=wrapMap.td,support.option||(wrapMap.optgroup=wrapMap.option=[1,"<select multiple='multiple'>","</select>"]);var rhtml=/<|&#?\w+;/;function buildFragment(elems,context,scripts,selection,ignored){for(var elem,tmp,tag,wrap,attached,j,fragment=context.createDocumentFragment(),nodes=[],i=0,l=elems.length;i<l;i++)if((elem=elems[i])||0===elem)if("object"===toType(elem))_jQuery2.merge(nodes,elem.nodeType?[elem]:elem);else if(rhtml.test(elem)){for(tmp=tmp||fragment.appendChild(context.createElement("div")),tag=(rtagName.exec(elem)||["",""])[1].toLowerCase(),wrap=wrapMap[tag]||wrapMap._default,tmp.innerHTML=wrap[1]+_jQuery2.htmlPrefilter(elem)+wrap[2],j=wrap[0];j--;)tmp=tmp.lastChild;_jQuery2.merge(nodes,tmp.childNodes),(tmp=fragment.firstChild).textContent=""}else nodes.push(context.createTextNode(elem));for(fragment.textContent="",i=0;elem=nodes[i++];)if(selection&&_jQuery2.inArray(elem,selection)>-1)ignored&&ignored.push(elem);else if(attached=isAttached(elem),tmp=getAll(fragment.appendChild(elem),"script"),attached&&setGlobalEval(tmp),scripts)for(j=0;elem=tmp[j++];)rscriptType.test(elem.type||"")&&scripts.push(elem);return fragment}var rkeyEvent=/^key/,rmouseEvent=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,rtypenamespace=/^([^.]*)(?:\.(.+)|)/;function returnTrue(){return!0}function returnFalse(){return!1}function expectSync(elem,type){return elem===function(){try{return document.activeElement}catch(err){}}()==("focus"===type)}function _on(elem,types,selector,data,fn,one){var origFn,type;if("object"===_typeof(types)){for(type in"string"!=typeof selector&&(data=data||selector,selector=void 0),types)_on(elem,type,selector,data,types[type],one);return elem}if(null==data&&null==fn?(fn=selector,data=selector=void 0):null==fn&&("string"==typeof selector?(fn=data,data=void 0):(fn=data,data=selector,selector=void 0)),!1===fn)fn=returnFalse;else if(!fn)return elem;return 1===one&&(origFn=fn,fn=function(event){return _jQuery2().off(event),origFn.apply(this,arguments)},fn.guid=origFn.guid||(origFn.guid=_jQuery2.guid++)),elem.each((function(){_jQuery2.event.add(this,types,fn,data,selector)}))}function leverageNative(el,type,expectSync){expectSync?(dataPriv.set(el,type,!1),_jQuery2.event.add(el,type,{namespace:!1,handler:function(event){var notAsync,result,saved=dataPriv.get(this,type);if(1&event.isTrigger&&this[type]){if(saved.length)(_jQuery2.event.special[type]||{}).delegateType&&event.stopPropagation();else if(saved=_slice.call(arguments),dataPriv.set(this,type,saved),notAsync=expectSync(this,type),this[type](),saved!==(result=dataPriv.get(this,type))||notAsync?dataPriv.set(this,type,!1):result={},saved!==result)return event.stopImmediatePropagation(),event.preventDefault(),result.value}else saved.length&&(dataPriv.set(this,type,{value:_jQuery2.event.trigger(_jQuery2.extend(saved[0],_jQuery2.Event.prototype),saved.slice(1),this)}),event.stopImmediatePropagation())}})):void 0===dataPriv.get(el,type)&&_jQuery2.event.add(el,type,returnTrue)}_jQuery2.event={global:{},add:function(elem,types,handler,data,selector){var handleObjIn,eventHandle,tmp,events,t,handleObj,special,handlers,type,namespaces,origType,elemData=dataPriv.get(elem);if(acceptData(elem))for(handler.handler&&(handler=(handleObjIn=handler).handler,selector=handleObjIn.selector),selector&&_jQuery2.find.matchesSelector(documentElement,selector),handler.guid||(handler.guid=_jQuery2.guid++),(events=elemData.events)||(events=elemData.events=Object.create(null)),(eventHandle=elemData.handle)||(eventHandle=elemData.handle=function(e){return void 0!==_jQuery2&&_jQuery2.event.triggered!==e.type?_jQuery2.event.dispatch.apply(elem,arguments):void 0}),t=(types=(types||"").match(rnothtmlwhite)||[""]).length;t--;)type=origType=(tmp=rtypenamespace.exec(types[t])||[])[1],namespaces=(tmp[2]||"").split(".").sort(),type&&(special=_jQuery2.event.special[type]||{},type=(selector?special.delegateType:special.bindType)||type,special=_jQuery2.event.special[type]||{},handleObj=_jQuery2.extend({type:type,origType:origType,data:data,handler:handler,guid:handler.guid,selector:selector,needsContext:selector&&_jQuery2.expr.match.needsContext.test(selector),namespace:namespaces.join(".")},handleObjIn),(handlers=events[type])||((handlers=events[type]=[]).delegateCount=0,special.setup&&!1!==special.setup.call(elem,data,namespaces,eventHandle)||elem.addEventListener&&elem.addEventListener(type,eventHandle)),special.add&&(special.add.call(elem,handleObj),handleObj.handler.guid||(handleObj.handler.guid=handler.guid)),selector?handlers.splice(handlers.delegateCount++,0,handleObj):handlers.push(handleObj),_jQuery2.event.global[type]=!0)},remove:function(elem,types,handler,selector,mappedTypes){var j,origCount,tmp,events,t,handleObj,special,handlers,type,namespaces,origType,elemData=dataPriv.hasData(elem)&&dataPriv.get(elem);if(elemData&&(events=elemData.events)){for(t=(types=(types||"").match(rnothtmlwhite)||[""]).length;t--;)if(type=origType=(tmp=rtypenamespace.exec(types[t])||[])[1],namespaces=(tmp[2]||"").split(".").sort(),type){for(special=_jQuery2.event.special[type]||{},handlers=events[type=(selector?special.delegateType:special.bindType)||type]||[],tmp=tmp[2]&&new RegExp("(^|\\.)"+namespaces.join("\\.(?:.*\\.|)")+"(\\.|$)"),origCount=j=handlers.length;j--;)handleObj=handlers[j],!mappedTypes&&origType!==handleObj.origType||handler&&handler.guid!==handleObj.guid||tmp&&!tmp.test(handleObj.namespace)||selector&&selector!==handleObj.selector&&("**"!==selector||!handleObj.selector)||(handlers.splice(j,1),handleObj.selector&&handlers.delegateCount--,special.remove&&special.remove.call(elem,handleObj));origCount&&!handlers.length&&(special.teardown&&!1!==special.teardown.call(elem,namespaces,elemData.handle)||_jQuery2.removeEvent(elem,type,elemData.handle),delete events[type])}else for(type in events)_jQuery2.event.remove(elem,type+types[t],handler,selector,!0);_jQuery2.isEmptyObject(events)&&dataPriv.remove(elem,"handle events")}},dispatch:function(nativeEvent){var i,j,ret,matched,handleObj,handlerQueue,args=new Array(arguments.length),event=_jQuery2.event.fix(nativeEvent),handlers=(dataPriv.get(this,"events")||Object.create(null))[event.type]||[],special=_jQuery2.event.special[event.type]||{};for(args[0]=event,i=1;i<arguments.length;i++)args[i]=arguments[i];if(event.delegateTarget=this,!special.preDispatch||!1!==special.preDispatch.call(this,event)){for(handlerQueue=_jQuery2.event.handlers.call(this,event,handlers),i=0;(matched=handlerQueue[i++])&&!event.isPropagationStopped();)for(event.currentTarget=matched.elem,j=0;(handleObj=matched.handlers[j++])&&!event.isImmediatePropagationStopped();)event.rnamespace&&!1!==handleObj.namespace&&!event.rnamespace.test(handleObj.namespace)||(event.handleObj=handleObj,event.data=handleObj.data,void 0!==(ret=((_jQuery2.event.special[handleObj.origType]||{}).handle||handleObj.handler).apply(matched.elem,args))&&!1===(event.result=ret)&&(event.preventDefault(),event.stopPropagation()));return special.postDispatch&&special.postDispatch.call(this,event),event.result}},handlers:function(event,_handlers){var i,handleObj,sel,matchedHandlers,matchedSelectors,handlerQueue=[],delegateCount=_handlers.delegateCount,cur=event.target;if(delegateCount&&cur.nodeType&&!("click"===event.type&&event.button>=1))for(;cur!==this;cur=cur.parentNode||this)if(1===cur.nodeType&&("click"!==event.type||!0!==cur.disabled)){for(matchedHandlers=[],matchedSelectors={},i=0;i<delegateCount;i++)void 0===matchedSelectors[sel=(handleObj=_handlers[i]).selector+" "]&&(matchedSelectors[sel]=handleObj.needsContext?_jQuery2(sel,this).index(cur)>-1:_jQuery2.find(sel,this,null,[cur]).length),matchedSelectors[sel]&&matchedHandlers.push(handleObj);matchedHandlers.length&&handlerQueue.push({elem:cur,handlers:matchedHandlers})}return cur=this,delegateCount<_handlers.length&&handlerQueue.push({elem:cur,handlers:_handlers.slice(delegateCount)}),handlerQueue},addProp:function(name,hook){Object.defineProperty(_jQuery2.Event.prototype,name,{enumerable:!0,configurable:!0,get:isFunction(hook)?function(){if(this.originalEvent)return hook(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[name]},set:function(value){Object.defineProperty(this,name,{enumerable:!0,configurable:!0,writable:!0,value:value})}})},fix:function(originalEvent){return originalEvent[_jQuery2.expando]?originalEvent:new _jQuery2.Event(originalEvent)},special:{load:{noBubble:!0},click:{setup:function(data){var el=this||data;return rcheckableType.test(el.type)&&el.click&&nodeName(el,"input")&&leverageNative(el,"click",returnTrue),!1},trigger:function(data){var el=this||data;return rcheckableType.test(el.type)&&el.click&&nodeName(el,"input")&&leverageNative(el,"click"),!0},_default:function(event){var target=event.target;return rcheckableType.test(target.type)&&target.click&&nodeName(target,"input")&&dataPriv.get(target,"click")||nodeName(target,"a")}},beforeunload:{postDispatch:function(event){void 0!==event.result&&event.originalEvent&&(event.originalEvent.returnValue=event.result)}}}},_jQuery2.removeEvent=function(elem,type,handle){elem.removeEventListener&&elem.removeEventListener(type,handle)},_jQuery2.Event=function(src,props){if(!(this instanceof _jQuery2.Event))return new _jQuery2.Event(src,props);src&&src.type?(this.originalEvent=src,this.type=src.type,this.isDefaultPrevented=src.defaultPrevented||void 0===src.defaultPrevented&&!1===src.returnValue?returnTrue:returnFalse,this.target=src.target&&3===src.target.nodeType?src.target.parentNode:src.target,this.currentTarget=src.currentTarget,this.relatedTarget=src.relatedTarget):this.type=src,props&&_jQuery2.extend(this,props),this.timeStamp=src&&src.timeStamp||Date.now(),this[_jQuery2.expando]=!0},_jQuery2.Event.prototype={constructor:_jQuery2.Event,isDefaultPrevented:returnFalse,isPropagationStopped:returnFalse,isImmediatePropagationStopped:returnFalse,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=returnTrue,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=returnTrue,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=returnTrue,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},_jQuery2.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(event){var button=event.button;return null==event.which&&rkeyEvent.test(event.type)?null!=event.charCode?event.charCode:event.keyCode:!event.which&&void 0!==button&&rmouseEvent.test(event.type)?1&button?1:2&button?3:4&button?2:0:event.which}},_jQuery2.event.addProp),_jQuery2.each({focus:"focusin",blur:"focusout"},(function(type,delegateType){_jQuery2.event.special[type]={setup:function(){return leverageNative(this,type,expectSync),!1},trigger:function(){return leverageNative(this,type),!0},delegateType:delegateType}})),_jQuery2.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(orig,fix){_jQuery2.event.special[orig]={delegateType:fix,bindType:fix,handle:function(event){var ret,related=event.relatedTarget,handleObj=event.handleObj;return related&&(related===this||_jQuery2.contains(this,related))||(event.type=handleObj.origType,ret=handleObj.handler.apply(this,arguments),event.type=fix),ret}}})),_jQuery2.fn.extend({on:function(types,selector,data,fn){return _on(this,types,selector,data,fn)},one:function(types,selector,data,fn){return _on(this,types,selector,data,fn,1)},off:function(types,selector,fn){var handleObj,type;if(types&&types.preventDefault&&types.handleObj)return handleObj=types.handleObj,_jQuery2(types.delegateTarget).off(handleObj.namespace?handleObj.origType+"."+handleObj.namespace:handleObj.origType,handleObj.selector,handleObj.handler),this;if("object"===_typeof(types)){for(type in types)this.off(type,selector,types[type]);return this}return!1!==selector&&"function"!=typeof selector||(fn=selector,selector=void 0),!1===fn&&(fn=returnFalse),this.each((function(){_jQuery2.event.remove(this,types,fn,selector)}))}});var rnoInnerhtml=/<script|<style|<link/i,rchecked=/checked\s*(?:[^=]|=\s*.checked.)/i,rcleanScript=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function manipulationTarget(elem,content){return nodeName(elem,"table")&&nodeName(11!==content.nodeType?content:content.firstChild,"tr")&&_jQuery2(elem).children("tbody")[0]||elem}function disableScript(elem){return elem.type=(null!==elem.getAttribute("type"))+"/"+elem.type,elem}function restoreScript(elem){return"true/"===(elem.type||"").slice(0,5)?elem.type=elem.type.slice(5):elem.removeAttribute("type"),elem}function cloneCopyEvent(src,dest){var i,l,type,udataOld,udataCur,events;if(1===dest.nodeType){if(dataPriv.hasData(src)&&(events=dataPriv.get(src).events))for(type in dataPriv.remove(dest,"handle events"),events)for(i=0,l=events[type].length;i<l;i++)_jQuery2.event.add(dest,type,events[type][i]);dataUser.hasData(src)&&(udataOld=dataUser.access(src),udataCur=_jQuery2.extend({},udataOld),dataUser.set(dest,udataCur))}}function fixInput(src,dest){var nodeName=dest.nodeName.toLowerCase();"input"===nodeName&&rcheckableType.test(src.type)?dest.checked=src.checked:"input"!==nodeName&&"textarea"!==nodeName||(dest.defaultValue=src.defaultValue)}function domManip(collection,args,callback,ignored){args=flat(args);var fragment,first,scripts,hasScripts,node,doc,i=0,l=collection.length,iNoClone=l-1,value=args[0],valueIsFunction=isFunction(value);if(valueIsFunction||l>1&&"string"==typeof value&&!support.checkClone&&rchecked.test(value))return collection.each((function(index){var self=collection.eq(index);valueIsFunction&&(args[0]=value.call(this,index,self.html())),domManip(self,args,callback,ignored)}));if(l&&(first=(fragment=buildFragment(args,collection[0].ownerDocument,!1,collection,ignored)).firstChild,1===fragment.childNodes.length&&(fragment=first),first||ignored)){for(hasScripts=(scripts=_jQuery2.map(getAll(fragment,"script"),disableScript)).length;i<l;i++)node=fragment,i!==iNoClone&&(node=_jQuery2.clone(node,!0,!0),hasScripts&&_jQuery2.merge(scripts,getAll(node,"script"))),callback.call(collection[i],node,i);if(hasScripts)for(doc=scripts[scripts.length-1].ownerDocument,_jQuery2.map(scripts,restoreScript),i=0;i<hasScripts;i++)node=scripts[i],rscriptType.test(node.type||"")&&!dataPriv.access(node,"globalEval")&&_jQuery2.contains(doc,node)&&(node.src&&"module"!==(node.type||"").toLowerCase()?_jQuery2._evalUrl&&!node.noModule&&_jQuery2._evalUrl(node.src,{nonce:node.nonce||node.getAttribute("nonce")},doc):DOMEval(node.textContent.replace(rcleanScript,""),node,doc))}return collection}function _remove(elem,selector,keepData){for(var node,nodes=selector?_jQuery2.filter(selector,elem):elem,i=0;null!=(node=nodes[i]);i++)keepData||1!==node.nodeType||_jQuery2.cleanData(getAll(node)),node.parentNode&&(keepData&&isAttached(node)&&setGlobalEval(getAll(node,"script")),node.parentNode.removeChild(node));return elem}_jQuery2.extend({htmlPrefilter:function(html){return html},clone:function(elem,dataAndEvents,deepDataAndEvents){var i,l,srcElements,destElements,clone=elem.cloneNode(!0),inPage=isAttached(elem);if(!(support.noCloneChecked||1!==elem.nodeType&&11!==elem.nodeType||_jQuery2.isXMLDoc(elem)))for(destElements=getAll(clone),i=0,l=(srcElements=getAll(elem)).length;i<l;i++)fixInput(srcElements[i],destElements[i]);if(dataAndEvents)if(deepDataAndEvents)for(srcElements=srcElements||getAll(elem),destElements=destElements||getAll(clone),i=0,l=srcElements.length;i<l;i++)cloneCopyEvent(srcElements[i],destElements[i]);else cloneCopyEvent(elem,clone);return(destElements=getAll(clone,"script")).length>0&&setGlobalEval(destElements,!inPage&&getAll(elem,"script")),clone},cleanData:function(elems){for(var data,elem,type,special=_jQuery2.event.special,i=0;void 0!==(elem=elems[i]);i++)if(acceptData(elem)){if(data=elem[dataPriv.expando]){if(data.events)for(type in data.events)special[type]?_jQuery2.event.remove(elem,type):_jQuery2.removeEvent(elem,type,data.handle);elem[dataPriv.expando]=void 0}elem[dataUser.expando]&&(elem[dataUser.expando]=void 0)}}}),_jQuery2.fn.extend({detach:function(selector){return _remove(this,selector,!0)},remove:function(selector){return _remove(this,selector)},text:function(value){return _access(this,(function(value){return void 0===value?_jQuery2.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=value)}))}),null,value,arguments.length)},append:function(){return domManip(this,arguments,(function(elem){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||manipulationTarget(this,elem).appendChild(elem)}))},prepend:function(){return domManip(this,arguments,(function(elem){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var target=manipulationTarget(this,elem);target.insertBefore(elem,target.firstChild)}}))},before:function(){return domManip(this,arguments,(function(elem){this.parentNode&&this.parentNode.insertBefore(elem,this)}))},after:function(){return domManip(this,arguments,(function(elem){this.parentNode&&this.parentNode.insertBefore(elem,this.nextSibling)}))},empty:function(){for(var elem,i=0;null!=(elem=this[i]);i++)1===elem.nodeType&&(_jQuery2.cleanData(getAll(elem,!1)),elem.textContent="");return this},clone:function(dataAndEvents,deepDataAndEvents){return dataAndEvents=null!=dataAndEvents&&dataAndEvents,deepDataAndEvents=null==deepDataAndEvents?dataAndEvents:deepDataAndEvents,this.map((function(){return _jQuery2.clone(this,dataAndEvents,deepDataAndEvents)}))},html:function(value){return _access(this,(function(value){var elem=this[0]||{},i=0,l=this.length;if(void 0===value&&1===elem.nodeType)return elem.innerHTML;if("string"==typeof value&&!rnoInnerhtml.test(value)&&!wrapMap[(rtagName.exec(value)||["",""])[1].toLowerCase()]){value=_jQuery2.htmlPrefilter(value);try{for(;i<l;i++)1===(elem=this[i]||{}).nodeType&&(_jQuery2.cleanData(getAll(elem,!1)),elem.innerHTML=value);elem=0}catch(e){}}elem&&this.empty().append(value)}),null,value,arguments.length)},replaceWith:function(){var ignored=[];return domManip(this,arguments,(function(elem){var parent=this.parentNode;_jQuery2.inArray(this,ignored)<0&&(_jQuery2.cleanData(getAll(this)),parent&&parent.replaceChild(elem,this))}),ignored)}}),_jQuery2.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(name,original){_jQuery2.fn[name]=function(selector){for(var elems,ret=[],insert=_jQuery2(selector),last=insert.length-1,i=0;i<=last;i++)elems=i===last?this:this.clone(!0),_jQuery2(insert[i])[original](elems),push.apply(ret,elems.get());return this.pushStack(ret)}}));var rnumnonpx=new RegExp("^("+pnum+")(?!px)[a-z%]+$","i"),getStyles=function(elem){var view=elem.ownerDocument.defaultView;return view&&view.opener||(view=window),view.getComputedStyle(elem)},swap=function(elem,options,callback){var ret,name,old={};for(name in options)old[name]=elem.style[name],elem.style[name]=options[name];for(name in ret=callback.call(elem),options)elem.style[name]=old[name];return ret},rboxStyle=new RegExp(cssExpand.join("|"),"i");function curCSS(elem,name,computed){var width,minWidth,maxWidth,ret,style=elem.style;return(computed=computed||getStyles(elem))&&(""!==(ret=computed.getPropertyValue(name)||computed[name])||isAttached(elem)||(ret=_jQuery2.style(elem,name)),!support.pixelBoxStyles()&&rnumnonpx.test(ret)&&rboxStyle.test(name)&&(width=style.width,minWidth=style.minWidth,maxWidth=style.maxWidth,style.minWidth=style.maxWidth=style.width=ret,ret=computed.width,style.width=width,style.minWidth=minWidth,style.maxWidth=maxWidth)),void 0!==ret?ret+"":ret}function addGetHookIf(conditionFn,hookFn){return{get:function(){if(!conditionFn())return(this.get=hookFn).apply(this,arguments);delete this.get}}}!function(){function computeStyleTests(){if(div){container.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",div.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",documentElement.appendChild(container).appendChild(div);var divStyle=window.getComputedStyle(div);pixelPositionVal="1%"!==divStyle.top,reliableMarginLeftVal=12===roundPixelMeasures(divStyle.marginLeft),div.style.right="60%",pixelBoxStylesVal=36===roundPixelMeasures(divStyle.right),boxSizingReliableVal=36===roundPixelMeasures(divStyle.width),div.style.position="absolute",scrollboxSizeVal=12===roundPixelMeasures(div.offsetWidth/3),documentElement.removeChild(container),div=null}}function roundPixelMeasures(measure){return Math.round(parseFloat(measure))}var pixelPositionVal,boxSizingReliableVal,scrollboxSizeVal,pixelBoxStylesVal,reliableTrDimensionsVal,reliableMarginLeftVal,container=document.createElement("div"),div=document.createElement("div");div.style&&(div.style.backgroundClip="content-box",div.cloneNode(!0).style.backgroundClip="",support.clearCloneStyle="content-box"===div.style.backgroundClip,_jQuery2.extend(support,{boxSizingReliable:function(){return computeStyleTests(),boxSizingReliableVal},pixelBoxStyles:function(){return computeStyleTests(),pixelBoxStylesVal},pixelPosition:function(){return computeStyleTests(),pixelPositionVal},reliableMarginLeft:function(){return computeStyleTests(),reliableMarginLeftVal},scrollboxSize:function(){return computeStyleTests(),scrollboxSizeVal},reliableTrDimensions:function(){var table,tr,trChild,trStyle;return null==reliableTrDimensionsVal&&(table=document.createElement("table"),tr=document.createElement("tr"),trChild=document.createElement("div"),table.style.cssText="position:absolute;left:-11111px",tr.style.height="1px",trChild.style.height="9px",documentElement.appendChild(table).appendChild(tr).appendChild(trChild),trStyle=window.getComputedStyle(tr),reliableTrDimensionsVal=parseInt(trStyle.height)>3,documentElement.removeChild(table)),reliableTrDimensionsVal}}))}();var cssPrefixes=["Webkit","Moz","ms"],emptyStyle=document.createElement("div").style,vendorProps={};function finalPropName(name){var final=_jQuery2.cssProps[name]||vendorProps[name];return final||(name in emptyStyle?name:vendorProps[name]=function(name){for(var capName=name[0].toUpperCase()+name.slice(1),i=cssPrefixes.length;i--;)if((name=cssPrefixes[i]+capName)in emptyStyle)return name}(name)||name)}var rdisplayswap=/^(none|table(?!-c[ea]).+)/,rcustomProp=/^--/,cssShow={position:"absolute",visibility:"hidden",display:"block"},cssNormalTransform={letterSpacing:"0",fontWeight:"400"};function setPositiveNumber(_elem,value,subtract){var matches=rcssNum.exec(value);return matches?Math.max(0,matches[2]-(subtract||0))+(matches[3]||"px"):value}function boxModelAdjustment(elem,dimension,box,isBorderBox,styles,computedVal){var i="width"===dimension?1:0,extra=0,delta=0;if(box===(isBorderBox?"border":"content"))return 0;for(;i<4;i+=2)"margin"===box&&(delta+=_jQuery2.css(elem,box+cssExpand[i],!0,styles)),isBorderBox?("content"===box&&(delta-=_jQuery2.css(elem,"padding"+cssExpand[i],!0,styles)),"margin"!==box&&(delta-=_jQuery2.css(elem,"border"+cssExpand[i]+"Width",!0,styles))):(delta+=_jQuery2.css(elem,"padding"+cssExpand[i],!0,styles),"padding"!==box?delta+=_jQuery2.css(elem,"border"+cssExpand[i]+"Width",!0,styles):extra+=_jQuery2.css(elem,"border"+cssExpand[i]+"Width",!0,styles));return!isBorderBox&&computedVal>=0&&(delta+=Math.max(0,Math.ceil(elem["offset"+dimension[0].toUpperCase()+dimension.slice(1)]-computedVal-delta-extra-.5))||0),delta}function getWidthOrHeight(elem,dimension,extra){var styles=getStyles(elem),isBorderBox=(!support.boxSizingReliable()||extra)&&"border-box"===_jQuery2.css(elem,"boxSizing",!1,styles),valueIsBorderBox=isBorderBox,val=curCSS(elem,dimension,styles),offsetProp="offset"+dimension[0].toUpperCase()+dimension.slice(1);if(rnumnonpx.test(val)){if(!extra)return val;val="auto"}return(!support.boxSizingReliable()&&isBorderBox||!support.reliableTrDimensions()&&nodeName(elem,"tr")||"auto"===val||!parseFloat(val)&&"inline"===_jQuery2.css(elem,"display",!1,styles))&&elem.getClientRects().length&&(isBorderBox="border-box"===_jQuery2.css(elem,"boxSizing",!1,styles),(valueIsBorderBox=offsetProp in elem)&&(val=elem[offsetProp])),(val=parseFloat(val)||0)+boxModelAdjustment(elem,dimension,extra||(isBorderBox?"border":"content"),valueIsBorderBox,styles,val)+"px"}function Tween(elem,options,prop,end,easing){return new Tween.prototype.init(elem,options,prop,end,easing)}_jQuery2.extend({cssHooks:{opacity:{get:function(elem,computed){if(computed){var ret=curCSS(elem,"opacity");return""===ret?"1":ret}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(elem,name,value,extra){if(elem&&3!==elem.nodeType&&8!==elem.nodeType&&elem.style){var ret,type,hooks,origName=camelCase(name),isCustomProp=rcustomProp.test(name),style=elem.style;if(isCustomProp||(name=finalPropName(origName)),hooks=_jQuery2.cssHooks[name]||_jQuery2.cssHooks[origName],void 0===value)return hooks&&"get"in hooks&&void 0!==(ret=hooks.get(elem,!1,extra))?ret:style[name];"string"===(type=_typeof(value))&&(ret=rcssNum.exec(value))&&ret[1]&&(value=adjustCSS(elem,name,ret),type="number"),null!=value&&value==value&&("number"!==type||isCustomProp||(value+=ret&&ret[3]||(_jQuery2.cssNumber[origName]?"":"px")),support.clearCloneStyle||""!==value||0!==name.indexOf("background")||(style[name]="inherit"),hooks&&"set"in hooks&&void 0===(value=hooks.set(elem,value,extra))||(isCustomProp?style.setProperty(name,value):style[name]=value))}},css:function(elem,name,extra,styles){var val,num,hooks,origName=camelCase(name);return rcustomProp.test(name)||(name=finalPropName(origName)),(hooks=_jQuery2.cssHooks[name]||_jQuery2.cssHooks[origName])&&"get"in hooks&&(val=hooks.get(elem,!0,extra)),void 0===val&&(val=curCSS(elem,name,styles)),"normal"===val&&name in cssNormalTransform&&(val=cssNormalTransform[name]),""===extra||extra?(num=parseFloat(val),!0===extra||isFinite(num)?num||0:val):val}}),_jQuery2.each(["height","width"],(function(_i,dimension){_jQuery2.cssHooks[dimension]={get:function(elem,computed,extra){if(computed)return!rdisplayswap.test(_jQuery2.css(elem,"display"))||elem.getClientRects().length&&elem.getBoundingClientRect().width?getWidthOrHeight(elem,dimension,extra):swap(elem,cssShow,(function(){return getWidthOrHeight(elem,dimension,extra)}))},set:function(elem,value,extra){var matches,styles=getStyles(elem),scrollboxSizeBuggy=!support.scrollboxSize()&&"absolute"===styles.position,isBorderBox=(scrollboxSizeBuggy||extra)&&"border-box"===_jQuery2.css(elem,"boxSizing",!1,styles),subtract=extra?boxModelAdjustment(elem,dimension,extra,isBorderBox,styles):0;return isBorderBox&&scrollboxSizeBuggy&&(subtract-=Math.ceil(elem["offset"+dimension[0].toUpperCase()+dimension.slice(1)]-parseFloat(styles[dimension])-boxModelAdjustment(elem,dimension,"border",!1,styles)-.5)),subtract&&(matches=rcssNum.exec(value))&&"px"!==(matches[3]||"px")&&(elem.style[dimension]=value,value=_jQuery2.css(elem,dimension)),setPositiveNumber(0,value,subtract)}}})),_jQuery2.cssHooks.marginLeft=addGetHookIf(support.reliableMarginLeft,(function(elem,computed){if(computed)return(parseFloat(curCSS(elem,"marginLeft"))||elem.getBoundingClientRect().left-swap(elem,{marginLeft:0},(function(){return elem.getBoundingClientRect().left})))+"px"})),_jQuery2.each({margin:"",padding:"",border:"Width"},(function(prefix,suffix){_jQuery2.cssHooks[prefix+suffix]={expand:function(value){for(var i=0,expanded={},parts="string"==typeof value?value.split(" "):[value];i<4;i++)expanded[prefix+cssExpand[i]+suffix]=parts[i]||parts[i-2]||parts[0];return expanded}},"margin"!==prefix&&(_jQuery2.cssHooks[prefix+suffix].set=setPositiveNumber)})),_jQuery2.fn.extend({css:function(name,value){return _access(this,(function(elem,name,value){var styles,len,map={},i=0;if(Array.isArray(name)){for(styles=getStyles(elem),len=name.length;i<len;i++)map[name[i]]=_jQuery2.css(elem,name[i],!1,styles);return map}return void 0!==value?_jQuery2.style(elem,name,value):_jQuery2.css(elem,name)}),name,value,arguments.length>1)}}),_jQuery2.Tween=Tween,Tween.prototype={constructor:Tween,init:function(elem,options,prop,end,easing,unit){this.elem=elem,this.prop=prop,this.easing=easing||_jQuery2.easing._default,this.options=options,this.start=this.now=this.cur(),this.end=end,this.unit=unit||(_jQuery2.cssNumber[prop]?"":"px")},cur:function(){var hooks=Tween.propHooks[this.prop];return hooks&&hooks.get?hooks.get(this):Tween.propHooks._default.get(this)},run:function(percent){var eased,hooks=Tween.propHooks[this.prop];return this.options.duration?this.pos=eased=_jQuery2.easing[this.easing](percent,this.options.duration*percent,0,1,this.options.duration):this.pos=eased=percent,this.now=(this.end-this.start)*eased+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),hooks&&hooks.set?hooks.set(this):Tween.propHooks._default.set(this),this}},Tween.prototype.init.prototype=Tween.prototype,Tween.propHooks={_default:{get:function(tween){var result;return 1!==tween.elem.nodeType||null!=tween.elem[tween.prop]&&null==tween.elem.style[tween.prop]?tween.elem[tween.prop]:(result=_jQuery2.css(tween.elem,tween.prop,""))&&"auto"!==result?result:0},set:function(tween){_jQuery2.fx.step[tween.prop]?_jQuery2.fx.step[tween.prop](tween):1!==tween.elem.nodeType||!_jQuery2.cssHooks[tween.prop]&&null==tween.elem.style[finalPropName(tween.prop)]?tween.elem[tween.prop]=tween.now:_jQuery2.style(tween.elem,tween.prop,tween.now+tween.unit)}}},Tween.propHooks.scrollTop=Tween.propHooks.scrollLeft={set:function(tween){tween.elem.nodeType&&tween.elem.parentNode&&(tween.elem[tween.prop]=tween.now)}},_jQuery2.easing={linear:function(p){return p},swing:function(p){return.5-Math.cos(p*Math.PI)/2},_default:"swing"},_jQuery2.fx=Tween.prototype.init,_jQuery2.fx.step={};var fxNow,inProgress,rfxtypes=/^(?:toggle|show|hide)$/,rrun=/queueHooks$/;function schedule(){inProgress&&(!1===document.hidden&&window.requestAnimationFrame?window.requestAnimationFrame(schedule):window.setTimeout(schedule,_jQuery2.fx.interval),_jQuery2.fx.tick())}function createFxNow(){return window.setTimeout((function(){fxNow=void 0})),fxNow=Date.now()}function genFx(type,includeWidth){var which,i=0,attrs={height:type};for(includeWidth=includeWidth?1:0;i<4;i+=2-includeWidth)attrs["margin"+(which=cssExpand[i])]=attrs["padding"+which]=type;return includeWidth&&(attrs.opacity=attrs.width=type),attrs}function createTween(value,prop,animation){for(var tween,collection=(Animation.tweeners[prop]||[]).concat(Animation.tweeners["*"]),index=0,length=collection.length;index<length;index++)if(tween=collection[index].call(animation,prop,value))return tween}function Animation(elem,properties,options){var result,stopped,index=0,length=Animation.prefilters.length,deferred=_jQuery2.Deferred().always((function(){delete tick.elem})),tick=function(){if(stopped)return!1;for(var currentTime=fxNow||createFxNow(),remaining=Math.max(0,animation.startTime+animation.duration-currentTime),percent=1-(remaining/animation.duration||0),index=0,length=animation.tweens.length;index<length;index++)animation.tweens[index].run(percent);return deferred.notifyWith(elem,[animation,percent,remaining]),percent<1&&length?remaining:(length||deferred.notifyWith(elem,[animation,1,0]),deferred.resolveWith(elem,[animation]),!1)},animation=deferred.promise({elem:elem,props:_jQuery2.extend({},properties),opts:_jQuery2.extend(!0,{specialEasing:{},easing:_jQuery2.easing._default},options),originalProperties:properties,originalOptions:options,startTime:fxNow||createFxNow(),duration:options.duration,tweens:[],createTween:function(prop,end){var tween=_jQuery2.Tween(elem,animation.opts,prop,end,animation.opts.specialEasing[prop]||animation.opts.easing);return animation.tweens.push(tween),tween},stop:function(gotoEnd){var index=0,length=gotoEnd?animation.tweens.length:0;if(stopped)return this;for(stopped=!0;index<length;index++)animation.tweens[index].run(1);return gotoEnd?(deferred.notifyWith(elem,[animation,1,0]),deferred.resolveWith(elem,[animation,gotoEnd])):deferred.rejectWith(elem,[animation,gotoEnd]),this}}),props=animation.props;for(!function(props,specialEasing){var index,name,easing,value,hooks;for(index in props)if(easing=specialEasing[name=camelCase(index)],value=props[index],Array.isArray(value)&&(easing=value[1],value=props[index]=value[0]),index!==name&&(props[name]=value,delete props[index]),(hooks=_jQuery2.cssHooks[name])&&"expand"in hooks)for(index in value=hooks.expand(value),delete props[name],value)index in props||(props[index]=value[index],specialEasing[index]=easing);else specialEasing[name]=easing}(props,animation.opts.specialEasing);index<length;index++)if(result=Animation.prefilters[index].call(animation,elem,props,animation.opts))return isFunction(result.stop)&&(_jQuery2._queueHooks(animation.elem,animation.opts.queue).stop=result.stop.bind(result)),result;return _jQuery2.map(props,createTween,animation),isFunction(animation.opts.start)&&animation.opts.start.call(elem,animation),animation.progress(animation.opts.progress).done(animation.opts.done,animation.opts.complete).fail(animation.opts.fail).always(animation.opts.always),_jQuery2.fx.timer(_jQuery2.extend(tick,{elem:elem,anim:animation,queue:animation.opts.queue})),animation}_jQuery2.Animation=_jQuery2.extend(Animation,{tweeners:{"*":[function(prop,value){var tween=this.createTween(prop,value);return adjustCSS(tween.elem,prop,rcssNum.exec(value),tween),tween}]},tweener:function(props,callback){isFunction(props)?(callback=props,props=["*"]):props=props.match(rnothtmlwhite);for(var prop,index=0,length=props.length;index<length;index++)prop=props[index],Animation.tweeners[prop]=Animation.tweeners[prop]||[],Animation.tweeners[prop].unshift(callback)},prefilters:[function(elem,props,opts){var prop,value,toggle,hooks,oldfire,propTween,restoreDisplay,display,isBox="width"in props||"height"in props,anim=this,orig={},style=elem.style,hidden=elem.nodeType&&isHiddenWithinTree(elem),dataShow=dataPriv.get(elem,"fxshow");for(prop in opts.queue||(null==(hooks=_jQuery2._queueHooks(elem,"fx")).unqueued&&(hooks.unqueued=0,oldfire=hooks.empty.fire,hooks.empty.fire=function(){hooks.unqueued||oldfire()}),hooks.unqueued++,anim.always((function(){anim.always((function(){hooks.unqueued--,_jQuery2.queue(elem,"fx").length||hooks.empty.fire()}))}))),props)if(value=props[prop],rfxtypes.test(value)){if(delete props[prop],toggle=toggle||"toggle"===value,value===(hidden?"hide":"show")){if("show"!==value||!dataShow||void 0===dataShow[prop])continue;hidden=!0}orig[prop]=dataShow&&dataShow[prop]||_jQuery2.style(elem,prop)}if((propTween=!_jQuery2.isEmptyObject(props))||!_jQuery2.isEmptyObject(orig))for(prop in isBox&&1===elem.nodeType&&(opts.overflow=[style.overflow,style.overflowX,style.overflowY],null==(restoreDisplay=dataShow&&dataShow.display)&&(restoreDisplay=dataPriv.get(elem,"display")),"none"===(display=_jQuery2.css(elem,"display"))&&(restoreDisplay?display=restoreDisplay:(showHide([elem],!0),restoreDisplay=elem.style.display||restoreDisplay,display=_jQuery2.css(elem,"display"),showHide([elem]))),("inline"===display||"inline-block"===display&&null!=restoreDisplay)&&"none"===_jQuery2.css(elem,"float")&&(propTween||(anim.done((function(){style.display=restoreDisplay})),null==restoreDisplay&&(display=style.display,restoreDisplay="none"===display?"":display)),style.display="inline-block")),opts.overflow&&(style.overflow="hidden",anim.always((function(){style.overflow=opts.overflow[0],style.overflowX=opts.overflow[1],style.overflowY=opts.overflow[2]}))),propTween=!1,orig)propTween||(dataShow?"hidden"in dataShow&&(hidden=dataShow.hidden):dataShow=dataPriv.access(elem,"fxshow",{display:restoreDisplay}),toggle&&(dataShow.hidden=!hidden),hidden&&showHide([elem],!0),anim.done((function(){for(prop in hidden||showHide([elem]),dataPriv.remove(elem,"fxshow"),orig)_jQuery2.style(elem,prop,orig[prop])}))),propTween=createTween(hidden?dataShow[prop]:0,prop,anim),prop in dataShow||(dataShow[prop]=propTween.start,hidden&&(propTween.end=propTween.start,propTween.start=0))}],prefilter:function(callback,prepend){prepend?Animation.prefilters.unshift(callback):Animation.prefilters.push(callback)}}),_jQuery2.speed=function(speed,easing,fn){var opt=speed&&"object"===_typeof(speed)?_jQuery2.extend({},speed):{complete:fn||!fn&&easing||isFunction(speed)&&speed,duration:speed,easing:fn&&easing||easing&&!isFunction(easing)&&easing};return _jQuery2.fx.off?opt.duration=0:"number"!=typeof opt.duration&&(opt.duration in _jQuery2.fx.speeds?opt.duration=_jQuery2.fx.speeds[opt.duration]:opt.duration=_jQuery2.fx.speeds._default),null!=opt.queue&&!0!==opt.queue||(opt.queue="fx"),opt.old=opt.complete,opt.complete=function(){isFunction(opt.old)&&opt.old.call(this),opt.queue&&_jQuery2.dequeue(this,opt.queue)},opt},_jQuery2.fn.extend({fadeTo:function(speed,to,easing,callback){return this.filter(isHiddenWithinTree).css("opacity",0).show().end().animate({opacity:to},speed,easing,callback)},animate:function(prop,speed,easing,callback){var empty=_jQuery2.isEmptyObject(prop),optall=_jQuery2.speed(speed,easing,callback),doAnimation=function(){var anim=Animation(this,_jQuery2.extend({},prop),optall);(empty||dataPriv.get(this,"finish"))&&anim.stop(!0)};return doAnimation.finish=doAnimation,empty||!1===optall.queue?this.each(doAnimation):this.queue(optall.queue,doAnimation)},stop:function(type,clearQueue,gotoEnd){var stopQueue=function(hooks){var stop=hooks.stop;delete hooks.stop,stop(gotoEnd)};return"string"!=typeof type&&(gotoEnd=clearQueue,clearQueue=type,type=void 0),clearQueue&&this.queue(type||"fx",[]),this.each((function(){var dequeue=!0,index=null!=type&&type+"queueHooks",timers=_jQuery2.timers,data=dataPriv.get(this);if(index)data[index]&&data[index].stop&&stopQueue(data[index]);else for(index in data)data[index]&&data[index].stop&&rrun.test(index)&&stopQueue(data[index]);for(index=timers.length;index--;)timers[index].elem!==this||null!=type&&timers[index].queue!==type||(timers[index].anim.stop(gotoEnd),dequeue=!1,timers.splice(index,1));!dequeue&&gotoEnd||_jQuery2.dequeue(this,type)}))},finish:function(type){return!1!==type&&(type=type||"fx"),this.each((function(){var index,data=dataPriv.get(this),queue=data[type+"queue"],hooks=data[type+"queueHooks"],timers=_jQuery2.timers,length=queue?queue.length:0;for(data.finish=!0,_jQuery2.queue(this,type,[]),hooks&&hooks.stop&&hooks.stop.call(this,!0),index=timers.length;index--;)timers[index].elem===this&&timers[index].queue===type&&(timers[index].anim.stop(!0),timers.splice(index,1));for(index=0;index<length;index++)queue[index]&&queue[index].finish&&queue[index].finish.call(this);delete data.finish}))}}),_jQuery2.each(["toggle","show","hide"],(function(_i,name){var cssFn=_jQuery2.fn[name];_jQuery2.fn[name]=function(speed,easing,callback){return null==speed||"boolean"==typeof speed?cssFn.apply(this,arguments):this.animate(genFx(name,!0),speed,easing,callback)}})),_jQuery2.each({slideDown:genFx("show"),slideUp:genFx("hide"),slideToggle:genFx("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(name,props){_jQuery2.fn[name]=function(speed,easing,callback){return this.animate(props,speed,easing,callback)}})),_jQuery2.timers=[],_jQuery2.fx.tick=function(){var timer,i=0,timers=_jQuery2.timers;for(fxNow=Date.now();i<timers.length;i++)(timer=timers[i])()||timers[i]!==timer||timers.splice(i--,1);timers.length||_jQuery2.fx.stop(),fxNow=void 0},_jQuery2.fx.timer=function(timer){_jQuery2.timers.push(timer),_jQuery2.fx.start()},_jQuery2.fx.interval=13,_jQuery2.fx.start=function(){inProgress||(inProgress=!0,schedule())},_jQuery2.fx.stop=function(){inProgress=null},_jQuery2.fx.speeds={slow:600,fast:200,_default:400},_jQuery2.fn.delay=function(time,type){return time=_jQuery2.fx&&_jQuery2.fx.speeds[time]||time,type=type||"fx",this.queue(type,(function(next,hooks){var timeout=window.setTimeout(next,time);hooks.stop=function(){window.clearTimeout(timeout)}}))},function(){var input=document.createElement("input"),opt=document.createElement("select").appendChild(document.createElement("option"));input.type="checkbox",support.checkOn=""!==input.value,support.optSelected=opt.selected,(input=document.createElement("input")).value="t",input.type="radio",support.radioValue="t"===input.value}();var boolHook,attrHandle=_jQuery2.expr.attrHandle;_jQuery2.fn.extend({attr:function(name,value){return _access(this,_jQuery2.attr,name,value,arguments.length>1)},removeAttr:function(name){return this.each((function(){_jQuery2.removeAttr(this,name)}))}}),_jQuery2.extend({attr:function(elem,name,value){var ret,hooks,nType=elem.nodeType;if(3!==nType&&8!==nType&&2!==nType)return void 0===elem.getAttribute?_jQuery2.prop(elem,name,value):(1===nType&&_jQuery2.isXMLDoc(elem)||(hooks=_jQuery2.attrHooks[name.toLowerCase()]||(_jQuery2.expr.match.bool.test(name)?boolHook:void 0)),void 0!==value?null===value?void _jQuery2.removeAttr(elem,name):hooks&&"set"in hooks&&void 0!==(ret=hooks.set(elem,value,name))?ret:(elem.setAttribute(name,value+""),value):hooks&&"get"in hooks&&null!==(ret=hooks.get(elem,name))?ret:null==(ret=_jQuery2.find.attr(elem,name))?void 0:ret)},attrHooks:{type:{set:function(elem,value){if(!support.radioValue&&"radio"===value&&nodeName(elem,"input")){var val=elem.value;return elem.setAttribute("type",value),val&&(elem.value=val),value}}}},removeAttr:function(elem,value){var name,i=0,attrNames=value&&value.match(rnothtmlwhite);if(attrNames&&1===elem.nodeType)for(;name=attrNames[i++];)elem.removeAttribute(name)}}),boolHook={set:function(elem,value,name){return!1===value?_jQuery2.removeAttr(elem,name):elem.setAttribute(name,name),name}},_jQuery2.each(_jQuery2.expr.match.bool.source.match(/\w+/g),(function(_i,name){var getter=attrHandle[name]||_jQuery2.find.attr;attrHandle[name]=function(elem,name,isXML){var ret,handle,lowercaseName=name.toLowerCase();return isXML||(handle=attrHandle[lowercaseName],attrHandle[lowercaseName]=ret,ret=null!=getter(elem,name,isXML)?lowercaseName:null,attrHandle[lowercaseName]=handle),ret}}));var rfocusable=/^(?:input|select|textarea|button)$/i,rclickable=/^(?:a|area)$/i;function stripAndCollapse(value){return(value.match(rnothtmlwhite)||[]).join(" ")}function getClass(elem){return elem.getAttribute&&elem.getAttribute("class")||""}function classesToArray(value){return Array.isArray(value)?value:"string"==typeof value&&value.match(rnothtmlwhite)||[]}_jQuery2.fn.extend({prop:function(name,value){return _access(this,_jQuery2.prop,name,value,arguments.length>1)},removeProp:function(name){return this.each((function(){delete this[_jQuery2.propFix[name]||name]}))}}),_jQuery2.extend({prop:function(elem,name,value){var ret,hooks,nType=elem.nodeType;if(3!==nType&&8!==nType&&2!==nType)return 1===nType&&_jQuery2.isXMLDoc(elem)||(name=_jQuery2.propFix[name]||name,hooks=_jQuery2.propHooks[name]),void 0!==value?hooks&&"set"in hooks&&void 0!==(ret=hooks.set(elem,value,name))?ret:elem[name]=value:hooks&&"get"in hooks&&null!==(ret=hooks.get(elem,name))?ret:elem[name]},propHooks:{tabIndex:{get:function(elem){var tabindex=_jQuery2.find.attr(elem,"tabindex");return tabindex?parseInt(tabindex,10):rfocusable.test(elem.nodeName)||rclickable.test(elem.nodeName)&&elem.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),support.optSelected||(_jQuery2.propHooks.selected={get:function(elem){var parent=elem.parentNode;return parent&&parent.parentNode&&parent.parentNode.selectedIndex,null},set:function(elem){var parent=elem.parentNode;parent&&(parent.selectedIndex,parent.parentNode&&parent.parentNode.selectedIndex)}}),_jQuery2.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){_jQuery2.propFix[this.toLowerCase()]=this})),_jQuery2.fn.extend({addClass:function(value){var classes,elem,cur,curValue,clazz,j,finalValue,i=0;if(isFunction(value))return this.each((function(j){_jQuery2(this).addClass(value.call(this,j,getClass(this)))}));if((classes=classesToArray(value)).length)for(;elem=this[i++];)if(curValue=getClass(elem),cur=1===elem.nodeType&&" "+stripAndCollapse(curValue)+" "){for(j=0;clazz=classes[j++];)cur.indexOf(" "+clazz+" ")<0&&(cur+=clazz+" ");curValue!==(finalValue=stripAndCollapse(cur))&&elem.setAttribute("class",finalValue)}return this},removeClass:function(value){var classes,elem,cur,curValue,clazz,j,finalValue,i=0;if(isFunction(value))return this.each((function(j){_jQuery2(this).removeClass(value.call(this,j,getClass(this)))}));if(!arguments.length)return this.attr("class","");if((classes=classesToArray(value)).length)for(;elem=this[i++];)if(curValue=getClass(elem),cur=1===elem.nodeType&&" "+stripAndCollapse(curValue)+" "){for(j=0;clazz=classes[j++];)for(;cur.indexOf(" "+clazz+" ")>-1;)cur=cur.replace(" "+clazz+" "," ");curValue!==(finalValue=stripAndCollapse(cur))&&elem.setAttribute("class",finalValue)}return this},toggleClass:function(value,stateVal){var type=_typeof(value),isValidValue="string"===type||Array.isArray(value);return"boolean"==typeof stateVal&&isValidValue?stateVal?this.addClass(value):this.removeClass(value):isFunction(value)?this.each((function(i){_jQuery2(this).toggleClass(value.call(this,i,getClass(this),stateVal),stateVal)})):this.each((function(){var className,i,self,classNames;if(isValidValue)for(i=0,self=_jQuery2(this),classNames=classesToArray(value);className=classNames[i++];)self.hasClass(className)?self.removeClass(className):self.addClass(className);else void 0!==value&&"boolean"!==type||((className=getClass(this))&&dataPriv.set(this,"__className__",className),this.setAttribute&&this.setAttribute("class",className||!1===value?"":dataPriv.get(this,"__className__")||""))}))},hasClass:function(selector){var className,elem,i=0;for(className=" "+selector+" ";elem=this[i++];)if(1===elem.nodeType&&(" "+stripAndCollapse(getClass(elem))+" ").indexOf(className)>-1)return!0;return!1}});var rreturn=/\r/g;_jQuery2.fn.extend({val:function(value){var hooks,ret,valueIsFunction,elem=this[0];return arguments.length?(valueIsFunction=isFunction(value),this.each((function(i){var val;1===this.nodeType&&(null==(val=valueIsFunction?value.call(this,i,_jQuery2(this).val()):value)?val="":"number"==typeof val?val+="":Array.isArray(val)&&(val=_jQuery2.map(val,(function(value){return null==value?"":value+""}))),(hooks=_jQuery2.valHooks[this.type]||_jQuery2.valHooks[this.nodeName.toLowerCase()])&&"set"in hooks&&void 0!==hooks.set(this,val,"value")||(this.value=val))}))):elem?(hooks=_jQuery2.valHooks[elem.type]||_jQuery2.valHooks[elem.nodeName.toLowerCase()])&&"get"in hooks&&void 0!==(ret=hooks.get(elem,"value"))?ret:"string"==typeof(ret=elem.value)?ret.replace(rreturn,""):null==ret?"":ret:void 0}}),_jQuery2.extend({valHooks:{option:{get:function(elem){var val=_jQuery2.find.attr(elem,"value");return null!=val?val:stripAndCollapse(_jQuery2.text(elem))}},select:{get:function(elem){var value,option,i,options=elem.options,index=elem.selectedIndex,one="select-one"===elem.type,values=one?null:[],max=one?index+1:options.length;for(i=index<0?max:one?index:0;i<max;i++)if(((option=options[i]).selected||i===index)&&!option.disabled&&(!option.parentNode.disabled||!nodeName(option.parentNode,"optgroup"))){if(value=_jQuery2(option).val(),one)return value;values.push(value)}return values},set:function(elem,value){for(var optionSet,option,options=elem.options,values=_jQuery2.makeArray(value),i=options.length;i--;)((option=options[i]).selected=_jQuery2.inArray(_jQuery2.valHooks.option.get(option),values)>-1)&&(optionSet=!0);return optionSet||(elem.selectedIndex=-1),values}}}}),_jQuery2.each(["radio","checkbox"],(function(){_jQuery2.valHooks[this]={set:function(elem,value){if(Array.isArray(value))return elem.checked=_jQuery2.inArray(_jQuery2(elem).val(),value)>-1}},support.checkOn||(_jQuery2.valHooks[this].get=function(elem){return null===elem.getAttribute("value")?"on":elem.value})})),support.focusin="onfocusin"in window;var rfocusMorph=/^(?:focusinfocus|focusoutblur)$/,stopPropagationCallback=function(e){e.stopPropagation()};_jQuery2.extend(_jQuery2.event,{trigger:function(event,data,elem,onlyHandlers){var i,cur,tmp,bubbleType,ontype,handle,special,lastElement,eventPath=[elem||document],type=hasOwn.call(event,"type")?event.type:event,namespaces=hasOwn.call(event,"namespace")?event.namespace.split("."):[];if(cur=lastElement=tmp=elem=elem||document,3!==elem.nodeType&&8!==elem.nodeType&&!rfocusMorph.test(type+_jQuery2.event.triggered)&&(type.indexOf(".")>-1&&(namespaces=type.split("."),type=namespaces.shift(),namespaces.sort()),ontype=type.indexOf(":")<0&&"on"+type,(event=event[_jQuery2.expando]?event:new _jQuery2.Event(type,"object"===_typeof(event)&&event)).isTrigger=onlyHandlers?2:3,event.namespace=namespaces.join("."),event.rnamespace=event.namespace?new RegExp("(^|\\.)"+namespaces.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,event.result=void 0,event.target||(event.target=elem),data=null==data?[event]:_jQuery2.makeArray(data,[event]),special=_jQuery2.event.special[type]||{},onlyHandlers||!special.trigger||!1!==special.trigger.apply(elem,data))){if(!onlyHandlers&&!special.noBubble&&!isWindow(elem)){for(bubbleType=special.delegateType||type,rfocusMorph.test(bubbleType+type)||(cur=cur.parentNode);cur;cur=cur.parentNode)eventPath.push(cur),tmp=cur;tmp===(elem.ownerDocument||document)&&eventPath.push(tmp.defaultView||tmp.parentWindow||window)}for(i=0;(cur=eventPath[i++])&&!event.isPropagationStopped();)lastElement=cur,event.type=i>1?bubbleType:special.bindType||type,(handle=(dataPriv.get(cur,"events")||Object.create(null))[event.type]&&dataPriv.get(cur,"handle"))&&handle.apply(cur,data),(handle=ontype&&cur[ontype])&&handle.apply&&acceptData(cur)&&(event.result=handle.apply(cur,data),!1===event.result&&event.preventDefault());return event.type=type,onlyHandlers||event.isDefaultPrevented()||special._default&&!1!==special._default.apply(eventPath.pop(),data)||!acceptData(elem)||ontype&&isFunction(elem[type])&&!isWindow(elem)&&((tmp=elem[ontype])&&(elem[ontype]=null),_jQuery2.event.triggered=type,event.isPropagationStopped()&&lastElement.addEventListener(type,stopPropagationCallback),elem[type](),event.isPropagationStopped()&&lastElement.removeEventListener(type,stopPropagationCallback),_jQuery2.event.triggered=void 0,tmp&&(elem[ontype]=tmp)),event.result}},simulate:function(type,elem,event){var e=_jQuery2.extend(new _jQuery2.Event,event,{type:type,isSimulated:!0});_jQuery2.event.trigger(e,null,elem)}}),_jQuery2.fn.extend({trigger:function(type,data){return this.each((function(){_jQuery2.event.trigger(type,data,this)}))},triggerHandler:function(type,data){var elem=this[0];if(elem)return _jQuery2.event.trigger(type,data,elem,!0)}}),support.focusin||_jQuery2.each({focus:"focusin",blur:"focusout"},(function(orig,fix){var handler=function(event){_jQuery2.event.simulate(fix,event.target,_jQuery2.event.fix(event))};_jQuery2.event.special[fix]={setup:function(){var doc=this.ownerDocument||this.document||this,attaches=dataPriv.access(doc,fix);attaches||doc.addEventListener(orig,handler,!0),dataPriv.access(doc,fix,(attaches||0)+1)},teardown:function(){var doc=this.ownerDocument||this.document||this,attaches=dataPriv.access(doc,fix)-1;attaches?dataPriv.access(doc,fix,attaches):(doc.removeEventListener(orig,handler,!0),dataPriv.remove(doc,fix))}}}));var location=window.location,nonce={guid:Date.now()},rquery=/\?/;_jQuery2.parseXML=function(data){var xml;if(!data||"string"!=typeof data)return null;try{xml=(new window.DOMParser).parseFromString(data,"text/xml")}catch(e){xml=void 0}return xml&&!xml.getElementsByTagName("parsererror").length||_jQuery2.error("Invalid XML: "+data),xml};var rbracket=/\[\]$/,rCRLF=/\r?\n/g,rsubmitterTypes=/^(?:submit|button|image|reset|file)$/i,rsubmittable=/^(?:input|select|textarea|keygen)/i;function buildParams(prefix,obj,traditional,add){var name;if(Array.isArray(obj))_jQuery2.each(obj,(function(i,v){traditional||rbracket.test(prefix)?add(prefix,v):buildParams(prefix+"["+("object"===_typeof(v)&&null!=v?i:"")+"]",v,traditional,add)}));else if(traditional||"object"!==toType(obj))add(prefix,obj);else for(name in obj)buildParams(prefix+"["+name+"]",obj[name],traditional,add)}_jQuery2.param=function(a,traditional){var prefix,s=[],add=function(key,valueOrFunction){var value=isFunction(valueOrFunction)?valueOrFunction():valueOrFunction;s[s.length]=encodeURIComponent(key)+"="+encodeURIComponent(null==value?"":value)};if(null==a)return"";if(Array.isArray(a)||a.jquery&&!_jQuery2.isPlainObject(a))_jQuery2.each(a,(function(){add(this.name,this.value)}));else for(prefix in a)buildParams(prefix,a[prefix],traditional,add);return s.join("&")},_jQuery2.fn.extend({serialize:function(){return _jQuery2.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var elements=_jQuery2.prop(this,"elements");return elements?_jQuery2.makeArray(elements):this})).filter((function(){var type=this.type;return this.name&&!_jQuery2(this).is(":disabled")&&rsubmittable.test(this.nodeName)&&!rsubmitterTypes.test(type)&&(this.checked||!rcheckableType.test(type))})).map((function(_i,elem){var val=_jQuery2(this).val();return null==val?null:Array.isArray(val)?_jQuery2.map(val,(function(val){return{name:elem.name,value:val.replace(rCRLF,"\r\n")}})):{name:elem.name,value:val.replace(rCRLF,"\r\n")}})).get()}});var r20=/%20/g,rhash=/#.*$/,rantiCache=/([?&])_=[^&]*/,rheaders=/^(.*?):[ \t]*([^\r\n]*)$/gm,rnoContent=/^(?:GET|HEAD)$/,rprotocol=/^\/\//,prefilters={},transports={},allTypes="*/".concat("*"),originAnchor=document.createElement("a");function addToPrefiltersOrTransports(structure){return function(dataTypeExpression,func){"string"!=typeof dataTypeExpression&&(func=dataTypeExpression,dataTypeExpression="*");var dataType,i=0,dataTypes=dataTypeExpression.toLowerCase().match(rnothtmlwhite)||[];if(isFunction(func))for(;dataType=dataTypes[i++];)"+"===dataType[0]?(dataType=dataType.slice(1)||"*",(structure[dataType]=structure[dataType]||[]).unshift(func)):(structure[dataType]=structure[dataType]||[]).push(func)}}function inspectPrefiltersOrTransports(structure,options,originalOptions,jqXHR){var inspected={},seekingTransport=structure===transports;function inspect(dataType){var selected;return inspected[dataType]=!0,_jQuery2.each(structure[dataType]||[],(function(_,prefilterOrFactory){var dataTypeOrTransport=prefilterOrFactory(options,originalOptions,jqXHR);return"string"!=typeof dataTypeOrTransport||seekingTransport||inspected[dataTypeOrTransport]?seekingTransport?!(selected=dataTypeOrTransport):void 0:(options.dataTypes.unshift(dataTypeOrTransport),inspect(dataTypeOrTransport),!1)})),selected}return inspect(options.dataTypes[0])||!inspected["*"]&&inspect("*")}function ajaxExtend(target,src){var key,deep,flatOptions=_jQuery2.ajaxSettings.flatOptions||{};for(key in src)void 0!==src[key]&&((flatOptions[key]?target:deep||(deep={}))[key]=src[key]);return deep&&_jQuery2.extend(!0,target,deep),target}originAnchor.href=location.href,_jQuery2.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:location.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(location.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":allTypes,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":_jQuery2.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(target,settings){return settings?ajaxExtend(ajaxExtend(target,_jQuery2.ajaxSettings),settings):ajaxExtend(_jQuery2.ajaxSettings,target)},ajaxPrefilter:addToPrefiltersOrTransports(prefilters),ajaxTransport:addToPrefiltersOrTransports(transports),ajax:function(url,options){"object"===_typeof(url)&&(options=url,url=void 0),options=options||{};var transport,cacheURL,responseHeadersString,responseHeaders,timeoutTimer,urlAnchor,completed,fireGlobals,i,uncached,s=_jQuery2.ajaxSetup({},options),callbackContext=s.context||s,globalEventContext=s.context&&(callbackContext.nodeType||callbackContext.jquery)?_jQuery2(callbackContext):_jQuery2.event,deferred=_jQuery2.Deferred(),completeDeferred=_jQuery2.Callbacks("once memory"),_statusCode=s.statusCode||{},requestHeaders={},requestHeadersNames={},strAbort="canceled",jqXHR={readyState:0,getResponseHeader:function(key){var match;if(completed){if(!responseHeaders)for(responseHeaders={};match=rheaders.exec(responseHeadersString);)responseHeaders[match[1].toLowerCase()+" "]=(responseHeaders[match[1].toLowerCase()+" "]||[]).concat(match[2]);match=responseHeaders[key.toLowerCase()+" "]}return null==match?null:match.join(", ")},getAllResponseHeaders:function(){return completed?responseHeadersString:null},setRequestHeader:function(name,value){return null==completed&&(name=requestHeadersNames[name.toLowerCase()]=requestHeadersNames[name.toLowerCase()]||name,requestHeaders[name]=value),this},overrideMimeType:function(type){return null==completed&&(s.mimeType=type),this},statusCode:function(map){var code;if(map)if(completed)jqXHR.always(map[jqXHR.status]);else for(code in map)_statusCode[code]=[_statusCode[code],map[code]];return this},abort:function(statusText){var finalText=statusText||strAbort;return transport&&transport.abort(finalText),done(0,finalText),this}};if(deferred.promise(jqXHR),s.url=((url||s.url||location.href)+"").replace(rprotocol,location.protocol+"//"),s.type=options.method||options.type||s.method||s.type,s.dataTypes=(s.dataType||"*").toLowerCase().match(rnothtmlwhite)||[""],null==s.crossDomain){urlAnchor=document.createElement("a");try{urlAnchor.href=s.url,urlAnchor.href=urlAnchor.href,s.crossDomain=originAnchor.protocol+"//"+originAnchor.host!=urlAnchor.protocol+"//"+urlAnchor.host}catch(e){s.crossDomain=!0}}if(s.data&&s.processData&&"string"!=typeof s.data&&(s.data=_jQuery2.param(s.data,s.traditional)),inspectPrefiltersOrTransports(prefilters,s,options,jqXHR),completed)return jqXHR;for(i in(fireGlobals=_jQuery2.event&&s.global)&&0==_jQuery2.active++&&_jQuery2.event.trigger("ajaxStart"),s.type=s.type.toUpperCase(),s.hasContent=!rnoContent.test(s.type),cacheURL=s.url.replace(rhash,""),s.hasContent?s.data&&s.processData&&0===(s.contentType||"").indexOf("application/x-www-form-urlencoded")&&(s.data=s.data.replace(r20,"+")):(uncached=s.url.slice(cacheURL.length),s.data&&(s.processData||"string"==typeof s.data)&&(cacheURL+=(rquery.test(cacheURL)?"&":"?")+s.data,delete s.data),!1===s.cache&&(cacheURL=cacheURL.replace(rantiCache,"$1"),uncached=(rquery.test(cacheURL)?"&":"?")+"_="+nonce.guid+++uncached),s.url=cacheURL+uncached),s.ifModified&&(_jQuery2.lastModified[cacheURL]&&jqXHR.setRequestHeader("If-Modified-Since",_jQuery2.lastModified[cacheURL]),_jQuery2.etag[cacheURL]&&jqXHR.setRequestHeader("If-None-Match",_jQuery2.etag[cacheURL])),(s.data&&s.hasContent&&!1!==s.contentType||options.contentType)&&jqXHR.setRequestHeader("Content-Type",s.contentType),jqXHR.setRequestHeader("Accept",s.dataTypes[0]&&s.accepts[s.dataTypes[0]]?s.accepts[s.dataTypes[0]]+("*"!==s.dataTypes[0]?", "+allTypes+"; q=0.01":""):s.accepts["*"]),s.headers)jqXHR.setRequestHeader(i,s.headers[i]);if(s.beforeSend&&(!1===s.beforeSend.call(callbackContext,jqXHR,s)||completed))return jqXHR.abort();if(strAbort="abort",completeDeferred.add(s.complete),jqXHR.done(s.success),jqXHR.fail(s.error),transport=inspectPrefiltersOrTransports(transports,s,options,jqXHR)){if(jqXHR.readyState=1,fireGlobals&&globalEventContext.trigger("ajaxSend",[jqXHR,s]),completed)return jqXHR;s.async&&s.timeout>0&&(timeoutTimer=window.setTimeout((function(){jqXHR.abort("timeout")}),s.timeout));try{completed=!1,transport.send(requestHeaders,done)}catch(e){if(completed)throw e;done(-1,e)}}else done(-1,"No Transport");function done(status,nativeStatusText,responses,headers){var isSuccess,success,error,response,modified,statusText=nativeStatusText;completed||(completed=!0,timeoutTimer&&window.clearTimeout(timeoutTimer),transport=void 0,responseHeadersString=headers||"",jqXHR.readyState=status>0?4:0,isSuccess=status>=200&&status<300||304===status,responses&&(response=function(s,jqXHR,responses){for(var ct,type,finalDataType,firstDataType,contents=s.contents,dataTypes=s.dataTypes;"*"===dataTypes[0];)dataTypes.shift(),void 0===ct&&(ct=s.mimeType||jqXHR.getResponseHeader("Content-Type"));if(ct)for(type in contents)if(contents[type]&&contents[type].test(ct)){dataTypes.unshift(type);break}if(dataTypes[0]in responses)finalDataType=dataTypes[0];else{for(type in responses){if(!dataTypes[0]||s.converters[type+" "+dataTypes[0]]){finalDataType=type;break}firstDataType||(firstDataType=type)}finalDataType=finalDataType||firstDataType}if(finalDataType)return finalDataType!==dataTypes[0]&&dataTypes.unshift(finalDataType),responses[finalDataType]}(s,jqXHR,responses)),!isSuccess&&_jQuery2.inArray("script",s.dataTypes)>-1&&(s.converters["text script"]=function(){}),response=function(s,response,jqXHR,isSuccess){var conv2,current,conv,tmp,prev,converters={},dataTypes=s.dataTypes.slice();if(dataTypes[1])for(conv in s.converters)converters[conv.toLowerCase()]=s.converters[conv];for(current=dataTypes.shift();current;)if(s.responseFields[current]&&(jqXHR[s.responseFields[current]]=response),!prev&&isSuccess&&s.dataFilter&&(response=s.dataFilter(response,s.dataType)),prev=current,current=dataTypes.shift())if("*"===current)current=prev;else if("*"!==prev&&prev!==current){if(!(conv=converters[prev+" "+current]||converters["* "+current]))for(conv2 in converters)if((tmp=conv2.split(" "))[1]===current&&(conv=converters[prev+" "+tmp[0]]||converters["* "+tmp[0]])){!0===conv?conv=converters[conv2]:!0!==converters[conv2]&&(current=tmp[0],dataTypes.unshift(tmp[1]));break}if(!0!==conv)if(conv&&s.throws)response=conv(response);else try{response=conv(response)}catch(e){return{state:"parsererror",error:conv?e:"No conversion from "+prev+" to "+current}}}return{state:"success",data:response}}(s,response,jqXHR,isSuccess),isSuccess?(s.ifModified&&((modified=jqXHR.getResponseHeader("Last-Modified"))&&(_jQuery2.lastModified[cacheURL]=modified),(modified=jqXHR.getResponseHeader("etag"))&&(_jQuery2.etag[cacheURL]=modified)),204===status||"HEAD"===s.type?statusText="nocontent":304===status?statusText="notmodified":(statusText=response.state,success=response.data,isSuccess=!(error=response.error))):(error=statusText,!status&&statusText||(statusText="error",status<0&&(status=0))),jqXHR.status=status,jqXHR.statusText=(nativeStatusText||statusText)+"",isSuccess?deferred.resolveWith(callbackContext,[success,statusText,jqXHR]):deferred.rejectWith(callbackContext,[jqXHR,statusText,error]),jqXHR.statusCode(_statusCode),_statusCode=void 0,fireGlobals&&globalEventContext.trigger(isSuccess?"ajaxSuccess":"ajaxError",[jqXHR,s,isSuccess?success:error]),completeDeferred.fireWith(callbackContext,[jqXHR,statusText]),fireGlobals&&(globalEventContext.trigger("ajaxComplete",[jqXHR,s]),--_jQuery2.active||_jQuery2.event.trigger("ajaxStop")))}return jqXHR},getJSON:function(url,data,callback){return _jQuery2.get(url,data,callback,"json")},getScript:function(url,callback){return _jQuery2.get(url,void 0,callback,"script")}}),_jQuery2.each(["get","post"],(function(_i,method){_jQuery2[method]=function(url,data,callback,type){return isFunction(data)&&(type=type||callback,callback=data,data=void 0),_jQuery2.ajax(_jQuery2.extend({url:url,type:method,dataType:type,data:data,success:callback},_jQuery2.isPlainObject(url)&&url))}})),_jQuery2.ajaxPrefilter((function(s){var i;for(i in s.headers)"content-type"===i.toLowerCase()&&(s.contentType=s.headers[i]||"")})),_jQuery2._evalUrl=function(url,options,doc){return _jQuery2.ajax({url:url,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(response){_jQuery2.globalEval(response,options,doc)}})},_jQuery2.fn.extend({wrapAll:function(html){var wrap;return this[0]&&(isFunction(html)&&(html=html.call(this[0])),wrap=_jQuery2(html,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&wrap.insertBefore(this[0]),wrap.map((function(){for(var elem=this;elem.firstElementChild;)elem=elem.firstElementChild;return elem})).append(this)),this},wrapInner:function(html){return isFunction(html)?this.each((function(i){_jQuery2(this).wrapInner(html.call(this,i))})):this.each((function(){var self=_jQuery2(this),contents=self.contents();contents.length?contents.wrapAll(html):self.append(html)}))},wrap:function(html){var htmlIsFunction=isFunction(html);return this.each((function(i){_jQuery2(this).wrapAll(htmlIsFunction?html.call(this,i):html)}))},unwrap:function(selector){return this.parent(selector).not("body").each((function(){_jQuery2(this).replaceWith(this.childNodes)})),this}}),_jQuery2.expr.pseudos.hidden=function(elem){return!_jQuery2.expr.pseudos.visible(elem)},_jQuery2.expr.pseudos.visible=function(elem){return!!(elem.offsetWidth||elem.offsetHeight||elem.getClientRects().length)},_jQuery2.ajaxSettings.xhr=function(){try{return new window.XMLHttpRequest}catch(e){}};var xhrSuccessStatus={0:200,1223:204},xhrSupported=_jQuery2.ajaxSettings.xhr();support.cors=!!xhrSupported&&"withCredentials"in xhrSupported,support.ajax=xhrSupported=!!xhrSupported,_jQuery2.ajaxTransport((function(options){var _callback,errorCallback;if(support.cors||xhrSupported&&!options.crossDomain)return{send:function(headers,complete){var i,xhr=options.xhr();if(xhr.open(options.type,options.url,options.async,options.username,options.password),options.xhrFields)for(i in options.xhrFields)xhr[i]=options.xhrFields[i];for(i in options.mimeType&&xhr.overrideMimeType&&xhr.overrideMimeType(options.mimeType),options.crossDomain||headers["X-Requested-With"]||(headers["X-Requested-With"]="XMLHttpRequest"),headers)xhr.setRequestHeader(i,headers[i]);_callback=function(type){return function(){_callback&&(_callback=errorCallback=xhr.onload=xhr.onerror=xhr.onabort=xhr.ontimeout=xhr.onreadystatechange=null,"abort"===type?xhr.abort():"error"===type?"number"!=typeof xhr.status?complete(0,"error"):complete(xhr.status,xhr.statusText):complete(xhrSuccessStatus[xhr.status]||xhr.status,xhr.statusText,"text"!==(xhr.responseType||"text")||"string"!=typeof xhr.responseText?{binary:xhr.response}:{text:xhr.responseText},xhr.getAllResponseHeaders()))}},xhr.onload=_callback(),errorCallback=xhr.onerror=xhr.ontimeout=_callback("error"),void 0!==xhr.onabort?xhr.onabort=errorCallback:xhr.onreadystatechange=function(){4===xhr.readyState&&window.setTimeout((function(){_callback&&errorCallback()}))},_callback=_callback("abort");try{xhr.send(options.hasContent&&options.data||null)}catch(e){if(_callback)throw e}},abort:function(){_callback&&_callback()}}})),_jQuery2.ajaxPrefilter((function(s){s.crossDomain&&(s.contents.script=!1)})),_jQuery2.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(text){return _jQuery2.globalEval(text),text}}}),_jQuery2.ajaxPrefilter("script",(function(s){void 0===s.cache&&(s.cache=!1),s.crossDomain&&(s.type="GET")})),_jQuery2.ajaxTransport("script",(function(s){var script,_callback2;if(s.crossDomain||s.scriptAttrs)return{send:function(_,complete){script=_jQuery2("<script>").attr(s.scriptAttrs||{}).prop({charset:s.scriptCharset,src:s.url}).on("load error",_callback2=function(evt){script.remove(),_callback2=null,evt&&complete("error"===evt.type?404:200,evt.type)}),document.head.appendChild(script[0])},abort:function(){_callback2&&_callback2()}}}));var body,oldCallbacks=[],rjsonp=/(=)\?(?=&|$)|\?\?/;_jQuery2.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var callback=oldCallbacks.pop()||_jQuery2.expando+"_"+nonce.guid++;return this[callback]=!0,callback}}),_jQuery2.ajaxPrefilter("json jsonp",(function(s,originalSettings,jqXHR){var callbackName,overwritten,responseContainer,jsonProp=!1!==s.jsonp&&(rjsonp.test(s.url)?"url":"string"==typeof s.data&&0===(s.contentType||"").indexOf("application/x-www-form-urlencoded")&&rjsonp.test(s.data)&&"data");if(jsonProp||"jsonp"===s.dataTypes[0])return callbackName=s.jsonpCallback=isFunction(s.jsonpCallback)?s.jsonpCallback():s.jsonpCallback,jsonProp?s[jsonProp]=s[jsonProp].replace(rjsonp,"$1"+callbackName):!1!==s.jsonp&&(s.url+=(rquery.test(s.url)?"&":"?")+s.jsonp+"="+callbackName),s.converters["script json"]=function(){return responseContainer||_jQuery2.error(callbackName+" was not called"),responseContainer[0]},s.dataTypes[0]="json",overwritten=window[callbackName],window[callbackName]=function(){responseContainer=arguments},jqXHR.always((function(){void 0===overwritten?_jQuery2(window).removeProp(callbackName):window[callbackName]=overwritten,s[callbackName]&&(s.jsonpCallback=originalSettings.jsonpCallback,oldCallbacks.push(callbackName)),responseContainer&&isFunction(overwritten)&&overwritten(responseContainer[0]),responseContainer=overwritten=void 0})),"script"})),support.createHTMLDocument=((body=document.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===body.childNodes.length),_jQuery2.parseHTML=function(data,context,keepScripts){return"string"!=typeof data?[]:("boolean"==typeof context&&(keepScripts=context,context=!1),context||(support.createHTMLDocument?((base=(context=document.implementation.createHTMLDocument("")).createElement("base")).href=document.location.href,context.head.appendChild(base)):context=document),scripts=!keepScripts&&[],(parsed=rsingleTag.exec(data))?[context.createElement(parsed[1])]:(parsed=buildFragment([data],context,scripts),scripts&&scripts.length&&_jQuery2(scripts).remove(),_jQuery2.merge([],parsed.childNodes)));var base,parsed,scripts},_jQuery2.fn.load=function(url,params,callback){var selector,type,response,self=this,off=url.indexOf(" ");return off>-1&&(selector=stripAndCollapse(url.slice(off)),url=url.slice(0,off)),isFunction(params)?(callback=params,params=void 0):params&&"object"===_typeof(params)&&(type="POST"),self.length>0&&_jQuery2.ajax({url:url,type:type||"GET",dataType:"html",data:params}).done((function(responseText){response=arguments,self.html(selector?_jQuery2("<div>").append(_jQuery2.parseHTML(responseText)).find(selector):responseText)})).always(callback&&function(jqXHR,status){self.each((function(){callback.apply(this,response||[jqXHR.responseText,status,jqXHR])}))}),this},_jQuery2.expr.pseudos.animated=function(elem){return _jQuery2.grep(_jQuery2.timers,(function(fn){return elem===fn.elem})).length},_jQuery2.offset={setOffset:function(elem,options,i){var curPosition,curLeft,curCSSTop,curTop,curOffset,curCSSLeft,position=_jQuery2.css(elem,"position"),curElem=_jQuery2(elem),props={};"static"===position&&(elem.style.position="relative"),curOffset=curElem.offset(),curCSSTop=_jQuery2.css(elem,"top"),curCSSLeft=_jQuery2.css(elem,"left"),("absolute"===position||"fixed"===position)&&(curCSSTop+curCSSLeft).indexOf("auto")>-1?(curTop=(curPosition=curElem.position()).top,curLeft=curPosition.left):(curTop=parseFloat(curCSSTop)||0,curLeft=parseFloat(curCSSLeft)||0),isFunction(options)&&(options=options.call(elem,i,_jQuery2.extend({},curOffset))),null!=options.top&&(props.top=options.top-curOffset.top+curTop),null!=options.left&&(props.left=options.left-curOffset.left+curLeft),"using"in options?options.using.call(elem,props):("number"==typeof props.top&&(props.top+="px"),"number"==typeof props.left&&(props.left+="px"),curElem.css(props))}},_jQuery2.fn.extend({offset:function(options){if(arguments.length)return void 0===options?this:this.each((function(i){_jQuery2.offset.setOffset(this,options,i)}));var rect,win,elem=this[0];return elem?elem.getClientRects().length?(rect=elem.getBoundingClientRect(),win=elem.ownerDocument.defaultView,{top:rect.top+win.pageYOffset,left:rect.left+win.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var offsetParent,offset,doc,elem=this[0],parentOffset={top:0,left:0};if("fixed"===_jQuery2.css(elem,"position"))offset=elem.getBoundingClientRect();else{for(offset=this.offset(),doc=elem.ownerDocument,offsetParent=elem.offsetParent||doc.documentElement;offsetParent&&(offsetParent===doc.body||offsetParent===doc.documentElement)&&"static"===_jQuery2.css(offsetParent,"position");)offsetParent=offsetParent.parentNode;offsetParent&&offsetParent!==elem&&1===offsetParent.nodeType&&((parentOffset=_jQuery2(offsetParent).offset()).top+=_jQuery2.css(offsetParent,"borderTopWidth",!0),parentOffset.left+=_jQuery2.css(offsetParent,"borderLeftWidth",!0))}return{top:offset.top-parentOffset.top-_jQuery2.css(elem,"marginTop",!0),left:offset.left-parentOffset.left-_jQuery2.css(elem,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var offsetParent=this.offsetParent;offsetParent&&"static"===_jQuery2.css(offsetParent,"position");)offsetParent=offsetParent.offsetParent;return offsetParent||documentElement}))}}),_jQuery2.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(method,prop){var top="pageYOffset"===prop;_jQuery2.fn[method]=function(val){return _access(this,(function(elem,method,val){var win;if(isWindow(elem)?win=elem:9===elem.nodeType&&(win=elem.defaultView),void 0===val)return win?win[prop]:elem[method];win?win.scrollTo(top?win.pageXOffset:val,top?val:win.pageYOffset):elem[method]=val}),method,val,arguments.length)}})),_jQuery2.each(["top","left"],(function(_i,prop){_jQuery2.cssHooks[prop]=addGetHookIf(support.pixelPosition,(function(elem,computed){if(computed)return computed=curCSS(elem,prop),rnumnonpx.test(computed)?_jQuery2(elem).position()[prop]+"px":computed}))})),_jQuery2.each({Height:"height",Width:"width"},(function(name,type){_jQuery2.each({padding:"inner"+name,content:type,"":"outer"+name},(function(defaultExtra,funcName){_jQuery2.fn[funcName]=function(margin,value){var chainable=arguments.length&&(defaultExtra||"boolean"!=typeof margin),extra=defaultExtra||(!0===margin||!0===value?"margin":"border");return _access(this,(function(elem,type,value){var doc;return isWindow(elem)?0===funcName.indexOf("outer")?elem["inner"+name]:elem.document.documentElement["client"+name]:9===elem.nodeType?(doc=elem.documentElement,Math.max(elem.body["scroll"+name],doc["scroll"+name],elem.body["offset"+name],doc["offset"+name],doc["client"+name])):void 0===value?_jQuery2.css(elem,type,extra):_jQuery2.style(elem,type,value,extra)}),type,chainable?margin:void 0,chainable)}}))})),_jQuery2.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(_i,type){_jQuery2.fn[type]=function(fn){return this.on(type,fn)}})),_jQuery2.fn.extend({bind:function(types,data,fn){return this.on(types,null,data,fn)},unbind:function(types,fn){return this.off(types,null,fn)},delegate:function(selector,types,data,fn){return this.on(types,selector,data,fn)},undelegate:function(selector,types,fn){return 1===arguments.length?this.off(selector,"**"):this.off(types,selector||"**",fn)},hover:function(fnOver,fnOut){return this.mouseenter(fnOver).mouseleave(fnOut||fnOver)}}),_jQuery2.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(_i,name){_jQuery2.fn[name]=function(data,fn){return arguments.length>0?this.on(name,null,data,fn):this.trigger(name)}}));var rtrim=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;_jQuery2.proxy=function(fn,context){var tmp,args,proxy;if("string"==typeof context&&(tmp=fn[context],context=fn,fn=tmp),isFunction(fn))return args=_slice.call(arguments,2),proxy=function(){return fn.apply(context||this,args.concat(_slice.call(arguments)))},proxy.guid=fn.guid=fn.guid||_jQuery2.guid++,proxy},_jQuery2.holdReady=function(hold){hold?_jQuery2.readyWait++:_jQuery2.ready(!0)},_jQuery2.isArray=Array.isArray,_jQuery2.parseJSON=JSON.parse,_jQuery2.nodeName=nodeName,_jQuery2.isFunction=isFunction,_jQuery2.isWindow=isWindow,_jQuery2.camelCase=camelCase,_jQuery2.type=toType,_jQuery2.now=Date.now,_jQuery2.isNumeric=function(obj){var type=_jQuery2.type(obj);return("number"===type||"string"===type)&&!isNaN(obj-parseFloat(obj))},_jQuery2.trim=function(text){return null==text?"":(text+"").replace(rtrim,"")},void 0===(__WEBPACK_AMD_DEFINE_RESULT__=function(){return _jQuery2}.apply(exports,[]))||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__);var _jQuery=window.jQuery,_$=window.$;return _jQuery2.noConflict=function(deep){return window.$===_jQuery2&&(window.$=_$),deep&&window.jQuery===_jQuery2&&(window.jQuery=_jQuery),_jQuery2},void 0===noGlobal&&(window.jQuery=window.$=_jQuery2),_jQuery2}))},489:function(){var H5P=window.H5P=window.H5P||{};H5P.externalDispatcher=new H5P.EventDispatcher,H5P.EventDispatcher.prototype.triggerXAPI=function(verb,extra){this.trigger(this.createXAPIEventTemplate(verb,extra))},H5P.EventDispatcher.prototype.createXAPIEventTemplate=function(verb,extra){var event=new H5P.XAPIEvent;if(event.setActor(),event.setVerb(verb),void 0!==extra)for(var i in extra)event.data.statement[i]=extra[i];return"object"in event.data.statement||event.setObject(this),"context"in event.data.statement||event.setContext(this),event},H5P.EventDispatcher.prototype.triggerXAPICompleted=function(score,maxScore,success){this.triggerXAPIScored(score,maxScore,"completed",!0,success)},H5P.EventDispatcher.prototype.triggerXAPIScored=function(score,maxScore,verb,completion,success){var event=this.createXAPIEventTemplate(verb);event.setScoredResult(score,maxScore,this,completion,success),this.trigger(event)},H5P.EventDispatcher.prototype.setActivityStarted=function(){void 0===this.activityStartTime&&(void 0!==this.contentId&&void 0!==H5PIntegration.contents&&void 0!==H5PIntegration.contents["cid-"+this.contentId]&&this.triggerXAPI("attempted"),this.activityStartTime=Date.now())},H5P.xAPICompletedListener=function(event){if(("completed"===event.getVerb()||"answered"===event.getVerb())&&!event.getVerifiedStatementValue(["context","contextActivities","parent"])){var score=event.getScore(),maxScore=event.getMaxScore(),contentId=event.getVerifiedStatementValue(["object","definition","extensions","http://h5p.org/x-api/h5p-local-content-id"]);H5P.setFinished(contentId,score,maxScore)}}},545:function(){function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}var H5P=window.H5P=window.H5P||{};H5P.isFramed=window.self!==window.parent,H5P.$window=H5P.jQuery(window),H5P.instances=[],document.documentElement.requestFullscreen?H5P.fullScreenBrowserPrefix="":document.documentElement.webkitRequestFullScreen?(H5P.safariBrowser=navigator.userAgent.match(/version\/([.\d]+)/i),H5P.safariBrowser=null===H5P.safariBrowser?0:parseInt(H5P.safariBrowser[1]),(0===H5P.safariBrowser||H5P.safariBrowser>6)&&(H5P.fullScreenBrowserPrefix="webkit")):document.documentElement.mozRequestFullScreen?H5P.fullScreenBrowserPrefix="moz":document.documentElement.msRequestFullscreen&&(H5P.fullScreenBrowserPrefix="ms"),H5P.opened={},H5P.init=function(target){void 0===H5P.$body&&(H5P.$body=H5P.jQuery(document.body)),void 0===H5P.fullscreenSupported&&(H5P.fullscreenSupported=!(H5PIntegration.fullscreenDisabled||H5P.fullscreenDisabled||H5P.isFramed&&!1!==H5P.externalEmbed&&!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled))),void 0===H5P.canHasFullScreen&&(H5P.canHasFullScreen=H5P.fullscreenSupported),H5P.jQuery(".h5p-content:not(.h5p-initialized)",target).each((function(){var $element=H5P.jQuery(this).addClass("h5p-initialized"),$container=H5P.jQuery('<div class="h5p-container"></div>').appendTo($element),contentId=$element.data("content-id"),contentData=H5PIntegration.contents["cid-"+contentId];if(void 0===contentData)return H5P.error("No data for content id "+contentId+". Perhaps the library is gone?");var library={library:contentData.library,params:JSON.parse(contentData.jsonContent),metadata:contentData.metadata};H5P.getUserData(contentId,"state",(function(err,previousState){if(previousState)library.userDatas={state:previousState};else if(null===previousState&&H5PIntegration.saveFreq){delete contentData.contentUserData;var dialog=new H5P.Dialog("content-user-data-reset","Data Reset","<p>"+H5P.t("contentChanged")+"</p><p>"+H5P.t("startingOver")+'</p><div class="h5p-dialog-ok-button" tabIndex="0" role="button">OK</div>',$container);H5P.jQuery(dialog).on("dialog-opened",(function(event,$dialog){var closeDialog=function(event){"click"!==event.type&&32!==event.which||(dialog.close(),H5P.deleteUserData(contentId,"state",0))};$dialog.find(".h5p-dialog-ok-button").click(closeDialog).keypress(closeDialog),H5P.trigger(instance,"resize")})).on("dialog-closed",(function(){H5P.trigger(instance,"resize")})),dialog.open()}}));var instance=H5P.newRunnable(library,contentId,$container,!0,{standalone:!0});H5P.offlineRequestQueue=new H5P.OfflineRequestQueue({instance:instance}),1==contentData.fullScreen&&H5P.fullscreenSupported&&H5P.jQuery('<div class="h5p-content-controls"><div role="button" tabindex="0" class="h5p-enable-fullscreen" aria-label="'+H5P.t("fullscreen")+'" title="'+H5P.t("fullscreen")+'"></div></div>').prependTo($container).children().click((function(){H5P.fullScreen($container,instance)})).keydown((function(e){if(32===e.which||13===e.which)return H5P.fullScreen($container,instance),!1}));var resizeDelay,displayOptions=contentData.displayOptions,displayFrame=!1;if(displayOptions.frame){if(displayOptions.copyright){var copyrights=H5P.getCopyrights(instance,library.params,contentId,library.metadata);copyrights||(displayOptions.copyright=!1)}var actionBar=new H5P.ActionBar(displayOptions),$actions=actionBar.getDOMElement();actionBar.on("reuse",(function(){H5P.openReuseDialog($actions,contentData,library,instance,contentId),instance.triggerXAPI("accessed-reuse")})),actionBar.on("copyrights",(function(){new H5P.Dialog("copyrights",H5P.t("copyrightInformation"),copyrights,$container).open(!0),instance.triggerXAPI("accessed-copyright")})),actionBar.on("embed",(function(){H5P.openEmbedDialog($actions,contentData.embedCode,contentData.resizeCode,{width:$element.width(),height:$element.height()},instance),instance.triggerXAPI("accessed-embed")})),actionBar.hasActions()&&(displayFrame=!0,$actions.insertAfter($container))}if($element.addClass(displayFrame?"h5p-frame":"h5p-no-frame"),H5P.opened[contentId]=new Date,H5P.on(instance,"finish",(function(event){void 0!==event.data&&H5P.setFinished(contentId,event.data.score,event.data.maxScore,event.data.time)})),H5P.on(instance,"xAPI",H5P.xAPICompletedListener),!1!==H5PIntegration.saveFreq&&(instance.getCurrentState instanceof Function||"function"==typeof instance.getCurrentState)){var saveTimer,_save=function(){var state=instance.getCurrentState();void 0!==state&&H5P.setUserData(contentId,"state",state,{deleteOnChange:!0}),H5PIntegration.saveFreq&&(saveTimer=setTimeout(_save,1e3*H5PIntegration.saveFreq))};H5PIntegration.saveFreq&&(saveTimer=setTimeout(_save,1e3*H5PIntegration.saveFreq)),H5P.on(instance,"xAPI",(function(event){var verb=event.getVerb();"completed"!==verb&&"progressed"!==verb||(clearTimeout(saveTimer),saveTimer=setTimeout(_save,3e3))}))}if(H5P.isFramed)if(!1===H5P.externalEmbed){var iframe=window.frameElement;H5P.on(instance,"resize",(function(){clearTimeout(resizeDelay),resizeDelay=setTimeout((function(){!function(){if(!window.parent.H5P.isFullscreen){var parentHeight=iframe.parentElement.style.height;iframe.parentElement.style.height=iframe.parentElement.clientHeight+"px",iframe.getBoundingClientRect(),iframe.style.height="1px",iframe.style.height=iframe.contentDocument.body.scrollHeight+"px",iframe.parentElement.style.height=parentHeight}}()}),1)}))}else if(H5P.communicator){var parentIsFriendly=!1;H5P.communicator.on("ready",(function(){H5P.communicator.send("hello")})),H5P.communicator.on("hello",(function(){parentIsFriendly=!0,document.body.style.height="auto",document.body.style.overflow="hidden",H5P.trigger(instance,"resize")})),H5P.communicator.on("resizePrepared",(function(){H5P.communicator.send("resize",{scrollHeight:document.body.scrollHeight})})),H5P.communicator.on("resize",(function(){H5P.trigger(instance,"resize")})),H5P.on(instance,"resize",(function(){H5P.isFullscreen||(clearTimeout(resizeDelay),resizeDelay=setTimeout((function(){parentIsFriendly?H5P.communicator.send("prepareResize",{scrollHeight:document.body.scrollHeight,clientHeight:document.body.clientHeight}):H5P.communicator.send("hello")}),0))}))}H5P.isFramed&&!1!==H5P.externalEmbed||H5P.jQuery(window.parent).resize((function(){H5P.trigger(instance,"resize")})),H5P.instances.push(instance),H5P.trigger(instance,"resize"),$element.addClass("using-mouse"),$element.on("mousedown keydown keyup",(function(event){$element.toggleClass("using-mouse","mousedown"===event.type)})),H5P.externalDispatcher&&H5P.externalDispatcher.trigger("initialized")})),H5P.jQuery("iframe.h5p-iframe:not(.h5p-initialized)",target).each((function(){var iframe=this,$iframe=H5P.jQuery(iframe),contentId=$iframe.data("content-id"),contentData=H5PIntegration.contents["cid-"+contentId],contentLanguage=contentData&&contentData.metadata&&contentData.metadata.defaultLanguage?contentData.metadata.defaultLanguage:"en",writeDocument=function(){iframe.contentDocument.open(),iframe.contentDocument.write('<!doctype html><html class="h5p-iframe" lang="'+contentLanguage+'"><head>'+H5P.getHeadTags(contentId)+'</head><body><div class="h5p-content" data-content-id="'+contentId+'"/></body></html>'),iframe.contentDocument.close()};$iframe.addClass("h5p-initialized"),null===iframe.contentDocument?($iframe.on("load",writeDocument),$iframe.attr("src","about:blank")):writeDocument()}))},H5P.getHeadTags=function(contentId){var createStyleTags=function(styles){for(var tags="",i=0;i<styles.length;i++)tags+='<link rel="stylesheet" href="'+styles[i]+'">';return tags},createScriptTags=function(scripts){for(var tags="",i=0;i<scripts.length;i++)tags+='<script src="'+scripts[i]+'"><\/script>';return tags};return'<base target="_parent">'+createStyleTags(H5PIntegration.core.styles)+createStyleTags(H5PIntegration.contents["cid-"+contentId].styles)+createScriptTags(H5PIntegration.core.scripts)+createScriptTags(H5PIntegration.contents["cid-"+contentId].scripts)+"<script>H5PIntegration = window.parent.H5PIntegration; var H5P = H5P || {}; H5P.externalEmbed = false;<\/script>"},H5P.communicator=window.postMessage&&window.addEventListener?new function(){var actionHandlers={};window.addEventListener("message",(function(event){window.parent===event.source&&"h5p"===event.data.context&&void 0!==actionHandlers[event.data.action]&&actionHandlers[event.data.action](event.data)}),!1),this.on=function(action,handler){actionHandlers[action]=handler},this.send=function(action,data){void 0===data&&(data={}),data.context="h5p",data.action=action,window.parent.postMessage(data,"*")}}:void 0,H5P.semiFullScreen=function($element,instance,exitCallback,body){H5P.fullScreen($element,instance,exitCallback,body,!0)},H5P.fullScreen=function($element,instance,exitCallback,body,forceSemiFullScreen){if(void 0===H5P.exitFullScreen){if(H5P.isFramed&&!1===H5P.externalEmbed)return window.parent.H5P.fullScreen($element,instance,exitCallback,H5P.$body.get(),forceSemiFullScreen),H5P.isFullscreen=!0,H5P.exitFullScreen=function(){window.parent.H5P.exitFullScreen()},void H5P.on(instance,"exitFullScreen",(function(){H5P.isFullscreen=!1,H5P.exitFullScreen=void 0}));var $classes,$iframe,$body,$container=$element;if(void 0===body)$body=H5P.$body;else{$body=H5P.jQuery(body),$classes=$body.add($element.get());var iframeSelector="#h5p-iframe-"+$element.parent().data("content-id");$element=($iframe=H5P.jQuery(iframeSelector)).parent()}$classes=$element.add(H5P.$body).add($classes);var before=function(classes){$classes.addClass(classes),void 0!==$iframe&&$iframe.css("height","")},entered=function(){H5P.trigger(instance,"resize"),H5P.trigger(instance,"focus"),H5P.trigger(instance,"enterFullScreen")},done=function(classes){H5P.isFullscreen=!1,$classes.removeClass(classes),H5P.trigger(instance,"resize"),H5P.trigger(instance,"focus"),H5P.exitFullScreen=void 0,void 0!==exitCallback&&exitCallback(),H5P.trigger(instance,"exitFullScreen")};if(H5P.isFullscreen=!0,void 0===H5P.fullScreenBrowserPrefix||!0===forceSemiFullScreen){if(H5P.isFramed)return;before("h5p-semi-fullscreen");var keyup,prevViewportContent,h5pViewport,$disable=H5P.jQuery('<div role="button" tabindex="0" class="h5p-disable-fullscreen" title="'+H5P.t("disableFullscreen")+'" aria-label="'+H5P.t("disableFullscreen")+'"></div>').appendTo($container.find(".h5p-content-controls")),disableSemiFullscreen=H5P.exitFullScreen=function(){prevViewportContent?h5pViewport.content=prevViewportContent:head.removeChild(h5pViewport),$disable.remove(),$body.unbind("keyup",keyup),done("h5p-semi-fullscreen")};keyup=function(event){27===event.keyCode&&disableSemiFullscreen()},$disable.click(disableSemiFullscreen),$body.keyup(keyup);for(var metaTags=document.getElementsByTagName("meta"),i=0;i<metaTags.length;i++)if("viewport"===metaTags[i].name){h5pViewport=metaTags[i],prevViewportContent=h5pViewport.content;break}if(prevViewportContent||((h5pViewport=document.createElement("meta")).name="viewport"),h5pViewport.content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0",!prevViewportContent){var head=document.getElementsByTagName("head")[0];head.appendChild(h5pViewport)}entered()}else{before("h5p-fullscreen");var first,eventName="ms"===H5P.fullScreenBrowserPrefix?"MSFullscreenChange":H5P.fullScreenBrowserPrefix+"fullscreenchange";if(document.addEventListener(eventName,(function fullscreenCallback(){if(void 0===first)return first=!1,void entered();done("h5p-fullscreen"),document.removeEventListener(eventName,fullscreenCallback,!1)})),""===H5P.fullScreenBrowserPrefix)$element[0].requestFullscreen();else{var method="ms"===H5P.fullScreenBrowserPrefix?"msRequestFullscreen":H5P.fullScreenBrowserPrefix+"RequestFullScreen",params="webkit"===H5P.fullScreenBrowserPrefix&&0===H5P.safariBrowser?Element.ALLOW_KEYBOARD_INPUT:void 0;$element[0][method](params)}H5P.exitFullScreen=function(){""===H5P.fullScreenBrowserPrefix?document.exitFullscreen():"moz"===H5P.fullScreenBrowserPrefix?document.mozCancelFullScreen():document[H5P.fullScreenBrowserPrefix+"ExitFullscreen"]()}}}},function(){H5P.addQueryParameter=function(path,parameter){var newPath,secondSplit,firstSplit=path.split("?");return firstSplit[1]?(secondSplit=firstSplit[1].split("#"),newPath=firstSplit[0]+"?"+secondSplit[0]+"&"):newPath=(secondSplit=firstSplit[0].split("#"))[0]+"?",newPath+=parameter,secondSplit[1]&&(newPath+="#"+secondSplit[1]),newPath},H5P.setSource=function(element,source,contentId){var path=source.path,crossOrigin=H5P.getCrossOrigin(source);crossOrigin?(element.crossOrigin=crossOrigin,H5PIntegration.crossoriginCacheBuster&&(path=H5P.addQueryParameter(path,H5PIntegration.crossoriginCacheBuster))):element.removeAttribute("crossorigin"),element.src=H5P.getPath(path,contentId)};var hasProtocol=function(path){return path.match(/^[a-z0-9]+:\/\//i)};H5P.getCrossOrigin=function(source){return"object"!==_typeof(source)?H5PIntegration.crossorigin&&H5PIntegration.crossoriginRegex&&source.match(H5PIntegration.crossoriginRegex)?H5PIntegration.crossorigin:null:H5PIntegration.crossorigin&&!hasProtocol(source.path)?H5PIntegration.crossorigin:void 0},H5P.getPath=function(path,contentId){if(hasProtocol(path))return path;var prefix,isTmpFile="#tmp"===path.substr(-4,4);if(void 0===contentId||isTmpFile){if(void 0===window.H5PEditor)return;prefix=H5PEditor.filesPath}else void 0!==H5PIntegration.contents&&H5PIntegration.contents["cid-"+contentId]&&(prefix=H5PIntegration.contents["cid-"+contentId].contentUrl),prefix||(prefix=H5PIntegration.url+"/content/"+contentId);return hasProtocol(prefix)||(prefix=window.location.protocol+"//"+window.location.host+prefix),prefix+"/"+path}}(),H5P.getContentPath=function(contentId){return H5PIntegration.url+"/content/"+contentId},H5P.classFromName=function(name){var arr=name.split(".");return this[arr[arr.length-1]]},H5P.newRunnable=function(library,contentId,$attachTo,skipResize,extras){var nameSplit,versionSplit,machineName,constructor;try{machineName=(nameSplit=library.library.split(" ",2))[0],versionSplit=nameSplit[1].split(".",2)}catch(err){return H5P.error("Invalid library string: "+library.library)}if(library.params instanceof Object!=!0||library.params instanceof Array==!0)return H5P.error("Invalid library params for: "+library.library),H5P.error(library.params);try{nameSplit=nameSplit[0].split("."),constructor=window;for(var i=0;i<nameSplit.length;i++)constructor=constructor[nameSplit[i]];if("function"!=typeof constructor)throw null}catch(err){return H5P.error("Unable to find constructor for: "+library.library)}void 0===extras&&(extras={}),library.subContentId&&(extras.subContentId=library.subContentId),library.userDatas&&library.userDatas.state&&H5PIntegration.saveFreq&&(extras.previousState=library.userDatas.state),library.metadata&&(extras.metadata=library.metadata);var instance,standalone=extras.standalone||!1;return constructor.prototype=H5P.jQuery.extend({},H5P.ContentType(standalone).prototype,constructor.prototype),void 0===(instance=H5P.jQuery.inArray(library.library,["H5P.CoursePresentation 1.0","H5P.CoursePresentation 1.1","H5P.CoursePresentation 1.2","H5P.CoursePresentation 1.3"])>-1?new constructor(library.params,contentId):new constructor(library.params,contentId,extras)).$&&(instance.$=H5P.jQuery(instance)),void 0===instance.contentId&&(instance.contentId=contentId),void 0===instance.subContentId&&library.subContentId&&(instance.subContentId=library.subContentId),void 0===instance.parent&&extras&&extras.parent&&(instance.parent=extras.parent),void 0===instance.libraryInfo&&(instance.libraryInfo={versionedName:library.library,versionedNameNoSpaces:machineName+"-"+versionSplit[0]+"."+versionSplit[1],machineName:machineName,majorVersion:versionSplit[0],minorVersion:versionSplit[1]}),void 0!==$attachTo&&($attachTo.toggleClass("h5p-standalone",standalone),instance.attach($attachTo),H5P.trigger(instance,"domChanged",{$target:$attachTo,library:machineName,key:"newLibrary"},{bubbles:!0,external:!0}),void 0!==skipResize&&skipResize||H5P.trigger(instance,"resize")),instance},H5P.error=function(err){void 0!==window.console&&void 0!==console.error&&console.error(err.stack?err.stack:err)},H5P.t=function(key,vars,ns){if(void 0===ns&&(ns="H5P"),void 0===H5PIntegration.l10n[ns])return'[Missing translation namespace "'+ns+'"]';if(void 0===H5PIntegration.l10n[ns][key])return'[Missing translation "'+key+'" in "'+ns+'"]';var translation=H5PIntegration.l10n[ns][key];if(void 0!==vars)for(var placeholder in vars)translation=translation.replace(placeholder,vars[placeholder]);return translation},H5P.Dialog=function(name,title,content,$element,$returnElement){var self=this;this.activeElement=document.activeElement;var $dialog=H5P.jQuery('<div class="h5p-popup-dialog h5p-'+name+'-dialog" aria-labelledby="'+name+'-dialog-header" aria-modal="true" role="dialog" tabindex="-1"> <div class="h5p-inner"> <h2 id="'+name+'-dialog-header">'+title+'</h2> <div class="h5p-scroll-content">'+content+'</div> <div class="h5p-close" role="button" tabindex="0" aria-label="'+H5P.t("close")+'" title="'+H5P.t("close")+'"></div> </div> </div>').insertAfter($element).click((function(e){e&&e.originalEvent&&e.originalEvent.preventClosing||self.close()})).children(".h5p-inner").click((function(e){e.originalEvent.preventClosing=!0})).find(".h5p-close").click((function(){self.close()})).keypress((function(e){if(13===e.which||32===e.which)return self.close(),!1})).end().find("a").click((function(e){e.stopPropagation()})).end().end();self.open=function(scrollbar){scrollbar&&$dialog.css("height","100%"),setTimeout((function(){$dialog.addClass("h5p-open"),H5P.jQuery(self).trigger("dialog-opened",[$dialog]),$dialog.focus()}),1)},self.close=function(){$dialog.removeClass("h5p-open"),setTimeout((function(){$dialog.remove(),H5P.jQuery(self).trigger("dialog-closed",[$dialog]),$element.attr("tabindex","-1"),$returnElement?$returnElement.focus():self.activeElement?self.activeElement.focus():$element.focus()}),200)}},H5P.getCopyrights=function(instance,parameters,contentId,metadata){var copyrights;if(void 0!==instance.getCopyrights)try{copyrights=instance.getCopyrights()}catch(err){}void 0===copyrights&&(copyrights=new H5P.ContentCopyrights,H5P.findCopyrights(copyrights,parameters,contentId));var metadataCopyrights=H5P.buildMetadataCopyrights(metadata,instance.libraryInfo.machineName);return void 0!==metadataCopyrights&©rights.addMediaInFront(metadataCopyrights),void 0!==copyrights&&(copyrights=copyrights.toString()),copyrights},H5P.findCopyrights=function(info,parameters,contentId,extras){var lastContentTypeName;for(var field in extras&&(extras.params=parameters,buildFromMetadata(extras,extras.machineName,contentId)),parameters)if(parameters.hasOwnProperty(field))if("overrideSettings"!==field){var value=parameters[field];if(value&&value.library&&"string"==typeof value.library?lastContentTypeName=value.library.split(" ")[0]:value&&value.library&&"object"===_typeof(value.library)&&(lastContentTypeName=value.library.library&&"string"==typeof value.library.library?value.library.library.split(" ")[0]:lastContentTypeName),value instanceof Array)H5P.findCopyrights(info,value,contentId);else if(value instanceof Object)if(buildFromMetadata(value,lastContentTypeName,contentId),void 0===value.copyright||void 0===value.copyright.license||void 0===value.path||void 0===value.mime)H5P.findCopyrights(info,value,contentId);else{var copyrights=new H5P.MediaCopyright(value.copyright);void 0!==value.width&&void 0!==value.height&©rights.setThumbnail(new H5P.Thumbnail(H5P.getPath(value.path,contentId),value.width,value.height)),info.addMedia(copyrights)}}else console.warn("The semantics field 'overrideSettings' is DEPRECATED and should not be used."),console.warn(parameters);function buildFromMetadata(data,name,contentId){if(data.metadata){var metadataCopyrights=H5P.buildMetadataCopyrights(data.metadata,name);if(void 0!==metadataCopyrights){if(data.params&&"Image"===data.params.contentName&&data.params.file){var path=data.params.file.path,width=data.params.file.width,height=data.params.file.height;metadataCopyrights.setThumbnail(new H5P.Thumbnail(H5P.getPath(path,contentId),width,height,data.params.alt))}info.addMedia(metadataCopyrights)}}}},H5P.buildMetadataCopyrights=function(metadata){if(metadata&&void 0!==metadata.license&&"U"!==metadata.license){var dataset={contentType:metadata.contentType,title:metadata.title,author:metadata.authors&&metadata.authors.length>0?metadata.authors.map((function(author){return author.role?author.name+" ("+author.role+")":author.name})).join(", "):void 0,source:metadata.source,year:metadata.yearFrom?metadata.yearFrom+(metadata.yearTo?"-"+metadata.yearTo:""):void 0,license:metadata.license,version:metadata.licenseVersion,licenseExtras:metadata.licenseExtras,changes:metadata.changes&&metadata.changes.length>0?metadata.changes.map((function(change){return change.log+(change.author?", "+change.author:"")+(change.date?", "+change.date:"")})).join(" / "):void 0};return new H5P.MediaCopyright(dataset)}},H5P.openReuseDialog=function($element,contentData,library,instance,contentId){var html="";contentData.displayOptions.export&&(html+='<button type="button" class="h5p-big-button h5p-download-button"><div class="h5p-button-title">Download as an .h5p file</div><div class="h5p-button-description">.h5p files may be uploaded to any web-site where H5P content may be created.</div></button>'),contentData.displayOptions.export&&contentData.displayOptions.copy&&(html+='<div class="h5p-horizontal-line-text"><span>or</span></div>'),contentData.displayOptions.copy&&(html+='<button type="button" class="h5p-big-button h5p-copy-button"><div class="h5p-button-title">Copy content</div><div class="h5p-button-description">Copied content may be pasted anywhere this content type is supported on this website.</div></button>');var dialog=new H5P.Dialog("reuse",H5P.t("reuseContent"),html,$element);H5P.jQuery(dialog).on("dialog-opened",(function(e,$dialog){H5P.jQuery('<a href="https://h5p.org/node/442225" target="_blank">More Info</a>').click((function(e){e.stopPropagation()})).appendTo($dialog.find("h2")),$dialog.find(".h5p-download-button").click((function(){window.location.href=contentData.exportUrl,instance.triggerXAPI("downloaded"),dialog.close()})),$dialog.find(".h5p-copy-button").click((function(){var item=new H5P.ClipboardItem(library);item.contentId=contentId,H5P.setClipboard(item),instance.triggerXAPI("copied"),dialog.close(),H5P.attachToastTo(H5P.jQuery(".h5p-content:first")[0],H5P.t("contentCopied"),{position:{horizontal:"centered",vertical:"centered",noOverflowX:!0}})})),H5P.trigger(instance,"resize")})).on("dialog-closed",(function(){H5P.trigger(instance,"resize")})),dialog.open()},H5P.openEmbedDialog=function($element,embedCode,resizeCode,size,instance){var fullEmbedCode=embedCode+resizeCode,dialog=new H5P.Dialog("embed",H5P.t("embed"),'<textarea class="h5p-embed-code-container" autocorrect="off" autocapitalize="off" spellcheck="false"></textarea>'+H5P.t("size")+': <input aria-label="'+H5P.t("width")+'" type="text" value="'+Math.ceil(size.width)+'" class="h5p-embed-size"/> × <input aria-label="'+H5P.t("width")+'" type="text" value="'+Math.ceil(size.height)+'" class="h5p-embed-size"/> px<br/><div role="button" tabindex="0" class="h5p-expander">'+H5P.t("showAdvanced")+'</div><div class="h5p-expander-content"><p>'+H5P.t("advancedHelp")+'</p><textarea class="h5p-embed-code-container" autocorrect="off" autocapitalize="off" spellcheck="false">'+resizeCode+"</textarea></div>",$element);H5P.jQuery(dialog).on("dialog-opened",(function(event,$dialog){var $scroll=$dialog.find(".h5p-inner").find(".h5p-scroll-content"),positionInner=($scroll.outerHeight(),$scroll.innerHeight(),function(){H5P.trigger(instance,"resize")}),$w=$dialog.find(".h5p-embed-size:eq(0)"),$h=$dialog.find(".h5p-embed-size:eq(1)"),getNum=function($e,d){var num=parseFloat($e.val());return isNaN(num)?d:Math.ceil(num)},updateEmbed=function(){$dialog.find(".h5p-embed-code-container:first").val(fullEmbedCode.replace(":w",getNum($w,size.width)).replace(":h",getNum($h,size.height)))};$w.change(updateEmbed),$h.change(updateEmbed),updateEmbed(),$dialog.find(".h5p-embed-code-container").each((function(){H5P.jQuery(this).css("height",this.scrollHeight+"px").focus((function(){H5P.jQuery(this).select()}))})),$dialog.find(".h5p-embed-code-container").eq(0).select(),positionInner();var expand=function(){var $expander=H5P.jQuery(this),$content=$expander.next();$content.is(":visible")?($expander.removeClass("h5p-open").text(H5P.t("showAdvanced")).attr("aria-expanded","true"),$content.hide()):($expander.addClass("h5p-open").text(H5P.t("hideAdvanced")).attr("aria-expanded","false"),$content.show()),$dialog.find(".h5p-embed-code-container").each((function(){H5P.jQuery(this).css("height",this.scrollHeight+"px")})),positionInner()};$dialog.find(".h5p-expander").click(expand).keypress((function(event){if(32===event.keyCode)return expand.apply(this),!1}))})).on("dialog-closed",(function(){H5P.trigger(instance,"resize")})),dialog.open()},H5P.attachToastTo=function(element,message,config){if(void 0!==element&&void 0!==message){var clickHandler=function(event){-1===function(evt){var path=evt.composedPath&&evt.composedPath()||evt.path,target=evt.target;return null!=path?path.indexOf(window)<0?path.concat(window):path:target===window?[window]:[target].concat(function getParents(node,memo){memo=memo||[];var parentNode=node.parentNode;return parentNode?getParents(parentNode,memo.concat(parentNode)):memo}(target),window)}(event).indexOf(element)&&(clearTimeout(timer),removeToast())},removeToast=function(){document.removeEventListener("click",clickHandler),toast.parentNode&&toast.parentNode.removeChild(toast)};(config=config||{}).style=config.style||"h5p-toast",config.duration=config.duration||3e3;var toast=document.createElement("div");toast.setAttribute("id",config.style),toast.classList.add("h5p-toast-disabled"),toast.classList.add(config.style);var msg=document.createElement("span");msg.innerHTML=message,toast.appendChild(msg),document.body.appendChild(toast);var coordinates=function(element,toast,position){(position=position||{}).offsetHorizontal=position.offsetHorizontal||0,position.offsetVertical=position.offsetVertical||0;var toastRect=toast.getBoundingClientRect(),elementRect=element.getBoundingClientRect(),left=0,top=0;switch(position.horizontal){case"before":left=elementRect.left-toastRect.width-position.offsetHorizontal;break;case"after":left=elementRect.left+elementRect.width+position.offsetHorizontal;break;case"left":left=elementRect.left+position.offsetHorizontal;break;case"right":left=elementRect.left+elementRect.width-toastRect.width-position.offsetHorizontal;break;default:left=elementRect.left+elementRect.width/2-toastRect.width/2+position.offsetHorizontal}switch(position.vertical){case"above":top=elementRect.top-toastRect.height-position.offsetVertical;break;case"below":default:top=elementRect.top+elementRect.height+position.offsetVertical;break;case"top":top=elementRect.top+position.offsetVertical;break;case"bottom":top=elementRect.top+elementRect.height-toastRect.height-position.offsetVertical;break;case"centered":top=elementRect.top+elementRect.height/2-toastRect.height/2+position.offsetVertical}var bounds=document.body.getBoundingClientRect();return(position.noOverflowLeft||position.noOverflowX)&&left<bounds.x&&(left=bounds.x),(position.noOverflowRight||position.noOverflowX)&&left+toastRect.width>bounds.x+bounds.width&&(left=bounds.x+bounds.width-toastRect.width),(position.noOverflowTop||position.noOverflowY)&&top<bounds.y&&(top=bounds.y),(position.noOverflowBottom||position.noOverflowY)&&top+toastRect.height>bounds.y+bounds.height&&(left=bounds.y+bounds.height-toastRect.height),{left:left,top:top}}(element,toast,config.position);toast.style.left=Math.round(coordinates.left)+"px",toast.style.top=Math.round(coordinates.top)+"px",toast.classList.remove("h5p-toast-disabled");var timer=setTimeout(removeToast,config.duration);document.addEventListener("click",clickHandler)}},H5P.ContentCopyrights=function(){var label,media=[],content=[];this.setLabel=function(newLabel){label=newLabel},this.addMedia=function(newMedia){void 0!==newMedia&&media.push(newMedia)},this.addMediaInFront=function(newMedia){void 0!==newMedia&&media.unshift(newMedia)},this.addContent=function(newContent){void 0!==newContent&&content.push(newContent)},this.toString=function(){for(var html="",i=0;i<media.length;i++)html+=media[i];for(i=0;i<content.length;i++)html+=content[i];return""!==html&&(void 0!==label&&(html="<h3>"+label+"</h3>"+html),html='<div class="h5p-content-copyrights">'+html+"</div>"),html}},H5P.MediaCopyright=function(copyright,labels,order,extraFields){var thumbnail,list=new H5P.DefinitionList,getLabel=function(fieldName){return void 0===labels||void 0===labels[fieldName]?H5P.t(fieldName):labels[fieldName]},humanizeLicense=function(license,version){var versionInfo,link,copyrightLicense=H5P.copyrightLicenses[license],value="";"PD"===license&&version||(value+=copyrightLicense.hasOwnProperty("label")?copyrightLicense.label:copyrightLicense),copyrightLicense.versions&&(!copyrightLicense.versions.default||version&©rightLicense.versions[version]||(version=copyrightLicense.versions.default),version&©rightLicense.versions[version]&&(versionInfo=copyrightLicense.versions[version])),versionInfo&&(value&&(value+=" "),value+=versionInfo.hasOwnProperty("label")?versionInfo.label:versionInfo),copyrightLicense.hasOwnProperty("link")?link=copyrightLicense.link.replace(":version",copyrightLicense.linkVersions?copyrightLicense.linkVersions[version]:version):versionInfo&©rightLicense.hasOwnProperty("link")&&(link=versionInfo.link),link&&(value='<a href="'+link+'" target="_blank">'+value+"</a>");var parenthesis="";return"PD"!==license&&"C"!==license&&(parenthesis+=license),version&&"CC0 1.0"!==version&&(parenthesis&&"GNU GPL"!==license&&(parenthesis+=" "),parenthesis+=version),parenthesis&&(value+=" ("+parenthesis+")"),"C"===license&&(value+=" ©"),value};if(void 0!==copyright){for(var field in extraFields)extraFields.hasOwnProperty(field)&&(copyright[field]=extraFields[field]);void 0===order&&(order=["contentType","title","license","author","year","source","licenseExtras","changes"]);for(var i=0;i<order.length;i++){var fieldName=order[i];if(void 0!==copyright[fieldName]&&""!==copyright[fieldName]){var humanValue=copyright[fieldName];"license"===fieldName&&(humanValue=humanizeLicense(copyright.license,copyright.version)),"source"===fieldName&&(humanValue=humanValue?'<a href="'+humanValue+'" target="_blank">'+humanValue+"</a>":void 0),list.add(new H5P.Field(getLabel(fieldName),humanValue))}}}this.setThumbnail=function(newThumbnail){thumbnail=newThumbnail},this.undisclosed=function(){if(1===list.size()){var field=list.get(0);if(field.getLabel()===getLabel("license")&&field.getValue()===humanizeLicense("U"))return!0}return!1},this.toString=function(){var html="";return this.undisclosed()||(void 0!==thumbnail&&(html+=thumbnail),""!==(html+=list)&&(html='<div class="h5p-media-copyright">'+html+"</div>")),html}},H5P.Thumbnail=function(source,width,height,alt){var thumbWidth;void 0!==width&&(thumbWidth=Math.round(width/height*100)),this.toString=function(){return'<img src="'+source+'" alt="'+(alt||"")+'" class="h5p-thumbnail" height="100"'+(void 0===thumbWidth?"":' width="'+thumbWidth+'"')+"/>"}},H5P.Field=function(label,value){this.getLabel=function(){return label},this.getValue=function(){return value}},H5P.DefinitionList=function(){var fields=[];this.add=function(field){fields.push(field)},this.size=function(){return fields.length},this.get=function(index){return fields[index]},this.toString=function(){for(var html="",i=0;i<fields.length;i++){var field=fields[i];html+="<dt>"+field.getLabel()+"</dt><dd>"+field.getValue()+"</dd>"}return""===html?html:'<dl class="h5p-definition-list">'+html+"</dl>"}},H5P.Coords=function(x,y,w,h){return this instanceof H5P.Coords?(this.x=0,this.y=0,this.w=1,this.h=1,"object"===_typeof(x)?(this.x=x.x,this.y=x.y,this.w=x.w,this.h=x.h):(void 0!==x&&(this.x=x),void 0!==y&&(this.y=y),void 0!==w&&(this.w=w),void 0!==h&&(this.h=h)),this):new H5P.Coords(x,y,w,h)},H5P.libraryFromString=function(library){var res=/(.+)\s(\d+)\.(\d+)$/g.exec(library);return null!==res&&{machineName:res[1],majorVersion:parseInt(res[2]),minorVersion:parseInt(res[3])}},H5P.getLibraryPath=function(library){return H5PIntegration&&H5PIntegration.libraryDirectories&&library in H5PIntegration.libraryDirectories&&(library=H5PIntegration.libraryDirectories[library]),void 0!==H5PIntegration.urlLibraries?H5PIntegration.urlLibraries+"/"+library:H5PIntegration.url+"/libraries/"+library},H5P.cloneObject=function(object,recursive){var clone=object instanceof Array?[]:{};for(var i in object)object.hasOwnProperty(i)&&(void 0!==recursive&&recursive&&"object"===_typeof(object[i])?clone[i]=H5P.cloneObject(object[i],recursive):clone[i]=object[i]);return clone},H5P.trim=function(value){return value.replace(/^\s+|\s+$/g,"")},H5P.isEmpty=function(value){if(!value&&0!==value&&!1!==value)return!0;if(Array.isArray(value)){for(var i=0;i<value.length;i++)if(!H5P.isEmpty(value[i]))return!1;return!0}if("object"===_typeof(value)){for(var prop in value)if(value.hasOwnProperty(prop)&&!H5P.isEmpty(value[prop]))return!1;return!0}return!1},H5P.jsLoaded=function(path){return H5PIntegration.loadedJs=H5PIntegration.loadedJs||[],-1!==H5P.jQuery.inArray(path,H5PIntegration.loadedJs)},H5P.cssLoaded=function(path){return H5PIntegration.loadedCss=H5PIntegration.loadedCss||[],-1!==H5P.jQuery.inArray(path,H5PIntegration.loadedCss)},H5P.shuffleArray=function(array){if(array instanceof Array){var j,tempi,tempj,i=array.length;if(0===i)return!1;for(;--i;)j=Math.floor(Math.random()*(i+1)),tempi=array[i],tempj=array[j],array[i]=tempj,array[j]=tempi;return array}},H5P.setFinished=function(contentId,score,maxScore,time){if(("number"==typeof score||score instanceof Number)&&!0===H5PIntegration.postUserStatistics){var toUnix=function(date){return Math.round(date.getTime()/1e3)},data={contentId:contentId,score:score,maxScore:maxScore,opened:toUnix(H5P.opened[contentId]),finished:toUnix(new Date),time:time};H5P.jQuery.post(H5PIntegration.ajax.setFinished,data).fail((function(){H5P.offlineRequestQueue.add(H5PIntegration.ajax.setFinished,data)}))}},Array.prototype.indexOf||(Array.prototype.indexOf=function(needle){for(var i=0;i<this.length;i++)if(this[i]===needle)return i;return-1}),void 0===String.prototype.trim&&(String.prototype.trim=function(){return H5P.trim(this)}),H5P.trigger=function(instance,eventType,data,extras){void 0!==instance.trigger?instance.trigger(eventType,data,extras):void 0!==instance.$&&void 0!==instance.$.trigger&&instance.$.trigger(eventType)},H5P.on=function(instance,eventType,handler){void 0!==instance.on?instance.on(eventType,handler):void 0!==instance.$&&void 0!==instance.$.on&&instance.$.on(eventType,handler)},H5P.createUUID=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(char){var random=16*Math.random()|0;return("x"===char?random:3&random|8).toString(16)}))},H5P.createTitle=function(rawTitle,maxLength){if(!rawTitle)return"";void 0===maxLength&&(maxLength=60);var title=H5P.jQuery("<div></div>").text(rawTitle.replace(/(<([^>]+)>)/gi,"")).text();return title.length>maxLength&&(title=title.substr(0,maxLength-3)+"..."),title},function($){function contentUserDataAjax(contentId,dataType,subContentId,done,data,preload,invalidate,async){if(void 0!==H5PIntegration.user){var options={url:H5PIntegration.ajax.contentUserData.replace(":contentId",contentId).replace(":dataType",dataType).replace(":subContentId",subContentId||0),dataType:"json",async:void 0===async||async};void 0!==data?(options.type="POST",options.data={data:null===data?0:data,preload:preload?1:0,invalidate:invalidate?1:0}):options.type="GET",void 0!==done&&(options.error=function(xhr,error){done(error)},options.success=function(response){response.success?!1!==response.data&&void 0!==response.data?done(void 0,response.data):done():done(response.message)}),$.ajax(options)}else done("Not signed in.")}H5P.getUserData=function(contentId,dataId,done,subContentId){subContentId||(subContentId=0),H5PIntegration.contents=H5PIntegration.contents||{};var content=H5PIntegration.contents["cid-"+contentId]||{},preloadedData=content.contentUserData;if(preloadedData&&preloadedData[subContentId]&&void 0!==preloadedData[subContentId][dataId]){if("RESET"===preloadedData[subContentId][dataId])return void done(void 0,null);try{done(void 0,JSON.parse(preloadedData[subContentId][dataId]))}catch(err){done(err)}}else contentUserDataAjax(contentId,dataId,subContentId,(function(err,data){if(err||void 0===data)done(err,data);else{void 0===content.contentUserData&&(content.contentUserData=preloadedData={}),void 0===preloadedData[subContentId]&&(preloadedData[subContentId]={}),preloadedData[subContentId][dataId]=data;try{done(void 0,JSON.parse(data))}catch(e){done(e)}}}))},H5P.setUserData=function(contentId,dataId,data,extras){var options=H5P.jQuery.extend(!0,{},{subContentId:0,preloaded:!0,deleteOnChange:!1,async:!0},extras);try{data=JSON.stringify(data)}catch(err){return void(options.errorCallback&&options.errorCallback(err))}var content=H5PIntegration.contents["cid-"+contentId];void 0===content&&(content=H5PIntegration.contents["cid-"+contentId]={}),content.contentUserData||(content.contentUserData={});var preloadedData=content.contentUserData;void 0===preloadedData[options.subContentId]&&(preloadedData[options.subContentId]={}),data!==preloadedData[options.subContentId][dataId]&&(preloadedData[options.subContentId][dataId]=data,contentUserDataAjax(contentId,dataId,options.subContentId,(function(error){options.errorCallback&&error&&options.errorCallback(error)}),data,options.preloaded,options.deleteOnChange,options.async))},H5P.deleteUserData=function(contentId,dataId,subContentId){subContentId||(subContentId=0);var preloadedData=H5PIntegration.contents["cid-"+contentId].contentUserData;preloadedData&&preloadedData[subContentId]&&preloadedData[subContentId][dataId]&&delete preloadedData[subContentId][dataId],contentUserDataAjax(contentId,dataId,subContentId,void 0,null)},H5P.getContentForInstance=function(contentId){var key="cid-"+contentId;return H5PIntegration&&H5PIntegration.contents&&H5PIntegration.contents[key]?H5PIntegration.contents[key]:void 0},H5P.ClipboardItem=function(parameters,genericProperty,specificKey){var self=this;genericProperty||(genericProperty="action",parameters={action:parameters}),self.specific=parameters,genericProperty&¶meters[genericProperty]&&(self.generic=genericProperty),specificKey&&(self.from=specificKey),window.H5PEditor&&H5PEditor.contentId&&(self.contentId=H5PEditor.contentId),self.specific.width||self.specific.height||function(){if(self.generic){var params=self.specific[self.generic];params.params.file&¶ms.params.file.width&¶ms.params.file.height&&(self.width=20,self.height=params.params.file.height/params.params.file.width*self.width)}}()},H5P.clipboardify=function(clipboardItem){clipboardItem instanceof H5P.ClipboardItem||(clipboardItem=new H5P.ClipboardItem(clipboardItem)),H5P.setClipboard(clipboardItem)},H5P.getClipboard=function(){return parseClipboard()},H5P.setClipboard=function(clipboardItem){localStorage.setItem("h5pClipboard",JSON.stringify(clipboardItem)),H5P.externalDispatcher.trigger("datainclipboard",{reset:!1})},H5P.getLibraryConfig=function(machineName){return H5PIntegration.libraryConfig&&H5PIntegration.libraryConfig[machineName]?H5PIntegration.libraryConfig[machineName]:{}};var parseClipboard=function(){var clipboardData=localStorage.getItem("h5pClipboard");if(clipboardData){try{clipboardData=JSON.parse(clipboardData)}catch(err){return void console.error("Unable to parse JSON from clipboard.",err)}return _recursiveUpdate(clipboardData.specific,(function(path){var prefix;return"#tmp"===path.substr(-4,4)||!clipboardData.contentId||path.match(/^https?:\/\//i)?path:(prefix=H5PEditor.contentId?"../"+clipboardData.contentId+"/":(H5PEditor.contentRelUrl?H5PEditor.contentRelUrl:"../content/")+clipboardData.contentId+"/",path.substr(0,prefix.length)===prefix?path:prefix+path)})),clipboardData.generic&&(clipboardData.generic=clipboardData.specific[clipboardData.generic]),clipboardData}},_recursiveUpdate=function(params,handler){for(var prop in params)if(params.hasOwnProperty(prop)&¶ms[prop]instanceof Object){var obj=params[prop];void 0!==obj.path&&void 0!==obj.mime?obj.path=handler(obj.path):(void 0!==obj.library&&void 0!==obj.subContentId&&delete obj.subContentId,_recursiveUpdate(obj,handler))}};$(document).ready((function(){window.addEventListener("storage",(function(event){"h5pClipboard"===event.key&&H5P.externalDispatcher.trigger("datainclipboard",{reset:null===event.newValue})}));var ccVersions={default:"4.0","4.0":H5P.t("licenseCC40"),"3.0":H5P.t("licenseCC30"),2.5:H5P.t("licenseCC25"),"2.0":H5P.t("licenseCC20"),"1.0":H5P.t("licenseCC10")};if(H5P.copyrightLicenses={U:H5P.t("licenseU"),"CC BY":{label:H5P.t("licenseCCBY"),link:"http://creativecommons.org/licenses/by/:version",versions:ccVersions},"CC BY-SA":{label:H5P.t("licenseCCBYSA"),link:"http://creativecommons.org/licenses/by-sa/:version",versions:ccVersions},"CC BY-ND":{label:H5P.t("licenseCCBYND"),link:"http://creativecommons.org/licenses/by-nd/:version",versions:ccVersions},"CC BY-NC":{label:H5P.t("licenseCCBYNC"),link:"http://creativecommons.org/licenses/by-nc/:version",versions:ccVersions},"CC BY-NC-SA":{label:H5P.t("licenseCCBYNCSA"),link:"http://creativecommons.org/licenses/by-nc-sa/:version",versions:ccVersions},"CC BY-NC-ND":{label:H5P.t("licenseCCBYNCND"),link:"http://creativecommons.org/licenses/by-nc-nd/:version",versions:ccVersions},"CC0 1.0":{label:H5P.t("licenseCC010"),link:"https://creativecommons.org/publicdomain/zero/1.0/"},"GNU GPL":{label:H5P.t("licenseGPL"),link:"http://www.gnu.org/licenses/gpl-:version-standalone.html",linkVersions:{v3:"3.0",v2:"2.0",v1:"1.0"},versions:{default:"v3",v3:H5P.t("licenseV3"),v2:H5P.t("licenseV2"),v1:H5P.t("licenseV1")}},PD:{label:H5P.t("licensePD"),versions:{"CC0 1.0":{label:H5P.t("licenseCC010"),link:"https://creativecommons.org/publicdomain/zero/1.0/"},"CC PDM":{label:H5P.t("licensePDM"),link:"https://creativecommons.org/publicdomain/mark/1.0/"}}},"ODC PDDL":'<a href="http://opendatacommons.org/licenses/pddl/1.0/" target="_blank">Public Domain Dedication and Licence</a>',"CC PDM":{label:H5P.t("licensePDM"),link:"https://creativecommons.org/publicdomain/mark/1.0/"},C:H5P.t("licenseC")},H5P.isFramed&&!1===H5P.externalEmbed&&H5P.externalDispatcher.on("*",(function(event){window.parent.H5P.externalDispatcher.trigger.call(this,event)})),H5P.preventInit||H5P.init(document.body),!1!==H5PIntegration.saveFreq){var lastStoredOn=0,storeCurrentState=function(){var currentTime=(new Date).getTime();if(currentTime-lastStoredOn>250){lastStoredOn=currentTime;for(var i=0;i<H5P.instances.length;i++){var instance=H5P.instances[i];if(instance.getCurrentState instanceof Function||"function"==typeof instance.getCurrentState){var state=instance.getCurrentState();void 0!==state&&H5P.setUserData(instance.contentId,"state",state,{deleteOnChange:!0,async:!1})}}}};H5P.$window.one("beforeunload unload",(function(){H5P.$window.off("pagehide beforeunload unload"),storeCurrentState()})),H5P.$window.on("pagehide",storeCurrentState)}}))}(H5P.jQuery)},672:function(){H5P.ConfirmationDialog=function(EventDispatcher){"use strict";function ConfirmationDialog(options){EventDispatcher.call(this);var self=this;H5P.ConfirmationDialog.uniqueId+=1;var uniqueId=H5P.ConfirmationDialog.uniqueId;function dialogCanceled(e){self.hide(),self.trigger("canceled"),e.preventDefault()}function flowTo(index,e){0===index?buttons.firstChild.focus():-1===index&&(options.hideExit?buttons.lastChild.focus():exitButton.focus()),null==e||e.preventDefault()}(options=options||{}).headerText=options.headerText||H5P.t("confirmDialogHeader"),options.dialogText=options.dialogText||H5P.t("confirmDialogBody"),options.cancelText=options.cancelText||H5P.t("cancelLabel"),options.closeText=options.closeText||H5P.t("close"),options.confirmText=options.confirmText||H5P.t("confirmLabel");var resizeIFrame=!1,popupBackground=document.createElement("div");popupBackground.classList.add("h5p-confirmation-dialog-background","hidden","hiding");var popup=document.createElement("div");popup.classList.add("h5p-confirmation-dialog-popup","hidden"),options.classes&&options.classes.forEach((function(popupClass){popup.classList.add(popupClass)})),popup.setAttribute("role","alertdialog"),popup.setAttribute("aria-modal","true"),popup.setAttribute("aria-labelledby","h5p-confirmation-dialog-header-text-"+uniqueId),popup.setAttribute("aria-describedby","h5p-confirmation-dialog-text-"+uniqueId),popupBackground.appendChild(popup),popup.addEventListener("keydown",(function(e){"Escape"===e.key&&dialogCanceled(e)}));var header=document.createElement("div");header.classList.add("h5p-confirmation-dialog-header"),popup.appendChild(header);var headerText=document.createElement("div");headerText.classList.add("h5p-confirmation-dialog-header-text"),headerText.id="h5p-confirmation-dialog-dialog-header-text-"+uniqueId,headerText.innerHTML=options.headerText,header.appendChild(headerText);var body=document.createElement("div");body.classList.add("h5p-confirmation-dialog-body"),popup.appendChild(body);var text=document.createElement("div");text.classList.add("h5p-confirmation-dialog-text"),text.innerHTML=options.dialogText,text.id="h5p-confirmation-dialog-dialog-text-"+uniqueId,body.appendChild(text);var buttons=document.createElement("div");if(buttons.classList.add("h5p-confirmation-dialog-buttons"),body.appendChild(buttons),options.hideCancel)buttons.classList.add("center");else{var cancelButton=document.createElement("button");cancelButton.classList.add("h5p-core-cancel-button"),cancelButton.textContent=options.cancelText,cancelButton.addEventListener("click",dialogCanceled),buttons.appendChild(cancelButton)}var confirmButton=document.createElement("button");confirmButton.classList.add("h5p-core-button"),confirmButton.classList.add("h5p-confirmation-dialog-confirm-button"),confirmButton.setAttribute("aria-label",options.confirmText),confirmButton.addEventListener("click",(function(e){self.hide(),self.trigger("confirmed"),e.preventDefault()}));var wrapperElement,focusPredator,confirmText=document.createElement("span");if(confirmText.textContent=options.confirmText,confirmButton.appendChild(confirmText),buttons.appendChild(confirmButton),options.hideExit)buttons.lastChild.addEventListener("keydown",(function(event){"Tab"!==event.key||event.shiftKey||flowTo(0,event)}));else{var exitButton=document.createElement("button");exitButton.classList.add("h5p-confirmation-dialog-exit"),exitButton.setAttribute("aria-label",options.closeText),exitButton.addEventListener("click",dialogCanceled),exitButton.addEventListener("keydown",(function(event){"Tab"!==event.key||event.shiftKey||flowTo(0,event)})),popup.appendChild(exitButton)}buttons.firstChild.addEventListener("keydown",(function(event){"Tab"===event.key&&event.shiftKey&&flowTo(-1,event)}));var previouslyFocused,wrapperSiblingsHidden=[],popupSiblingsHidden=[];this.appendTo=function(wrapper){return wrapperElement=wrapper,this};var captureFocus=function(e){popupBackground.contains(e.target)||(e.preventDefault(),flowTo(0))},hideSiblings=function(element){var i,hiddenSiblings=[],siblings=element.parentNode.children;for(i=0;i<siblings.length;i+=1)hiddenSiblings[i]=!!siblings[i].getAttribute("aria-hidden"),siblings[i]!==element&&(siblings[i].getAttribute("aria-live")?siblings[i].setAttribute("aria-busy",!0):siblings[i].setAttribute("aria-hidden",!0));return hiddenSiblings},restoreSiblings=function(element,hiddenSiblings){var i,siblings=element.parentNode.children;for(i=0;i<siblings.length;i+=1)siblings[i]===element||hiddenSiblings[i]||(siblings[i].getAttribute("aria-live")?siblings[i].setAttribute("aria-busy",!1):siblings[i].removeAttribute("aria-hidden"))};this.show=function(offsetTop){if(previouslyFocused=document.activeElement,wrapperElement.appendChild(popupBackground),(focusPredator=wrapperElement.parentNode||wrapperElement).addEventListener("focus",captureFocus,!0),popupBackground.classList.remove("hidden"),function(offsetTop){var popupOffsetTop=parseInt(popup.style.top,10);void 0!==offsetTop&&(popupOffsetTop=offsetTop),popupOffsetTop||(popupOffsetTop=0),popupOffsetTop+popup.offsetHeight>wrapperElement.offsetHeight&&(popupOffsetTop=wrapperElement.offsetHeight-popup.offsetHeight-8),popupOffsetTop-32<=0&&(popupOffsetTop=40,resizeIFrame=!0),popup.style.top=popupOffsetTop+"px"}(offsetTop),popup.classList.remove("hidden"),popupBackground.classList.remove("hiding"),flowTo(0),wrapperSiblingsHidden=hideSiblings(wrapperElement),popupSiblingsHidden=hideSiblings(popupBackground),resizeIFrame&&options.instance){var minHeight=parseInt(popup.offsetHeight,10)+32+16;self.setViewPortMinimumHeight(minHeight),options.instance.trigger("resize"),resizeIFrame=!1}return this},this.hide=function(){return restoreSiblings(wrapperElement,wrapperSiblingsHidden),restoreSiblings(popupBackground,popupSiblingsHidden),popupBackground.classList.add("hiding"),popup.classList.add("hidden"),focusPredator.removeEventListener("focus",captureFocus,!0),options.skipRestoreFocus||previouslyFocused.focus(),popupBackground.classList.add("hidden"),wrapperElement.removeChild(popupBackground),self.setViewPortMinimumHeight(null),this},this.getElement=function(){return popup},this.getPreviouslyFocused=function(){return previouslyFocused},this.setViewPortMinimumHeight=function(minHeight){(document.querySelector(".h5p-container")||document.body).style.minHeight="number"==typeof minHeight?minHeight+"px":minHeight}}return ConfirmationDialog.prototype=Object.create(EventDispatcher.prototype),ConfirmationDialog.prototype.constructor=ConfirmationDialog,ConfirmationDialog}(H5P.EventDispatcher),H5P.ConfirmationDialog.uniqueId=-1},778:function(){H5P.ContentType=function(isRootLibrary){function ContentType(){}return ContentType.prototype=new H5P.EventDispatcher,ContentType.prototype.isRoot=function(){return isRootLibrary},ContentType.prototype.getLibraryFilePath=function(filePath){return H5P.getLibraryPath(this.libraryInfo.versionedNameNoSpaces)+"/"+filePath},ContentType}},926:function(){!function(){if(window.postMessage&&window.addEventListener&&!window.h5pResizerInitialized){window.h5pResizerInitialized=!0;var actionHandlers={hello:function(iframe,data,respond){iframe.style.width="100%",iframe.getBoundingClientRect();var _resize=function(){iframe.contentWindow?respond("resize"):window.removeEventListener("resize",_resize)};window.addEventListener("resize",_resize,!1),respond("hello")},prepareResize:function(iframe,data,respond){iframe.clientHeight===data.scrollHeight&&data.scrollHeight===data.clientHeight||(iframe.style.height=data.clientHeight+"px",respond("resizePrepared"))},resize:function(iframe,data){iframe.style.height=data.scrollHeight+"px"}};window.addEventListener("message",(function(event){if("h5p"===event.data.context){for(var iframe,iframes=document.getElementsByTagName("iframe"),i=0;i<iframes.length;i++)if(iframes[i].contentWindow===event.source){iframe=iframes[i];break}iframe&&actionHandlers[event.data.action]&&actionHandlers[event.data.action](iframe,event.data,(function(action,data){void 0===data&&(data={}),data.action=action,data.context="h5p",event.source.postMessage(data,event.origin)}))}}),!1);for(var iframes=document.getElementsByTagName("iframe"),ready={context:"h5p",action:"ready"},i=0;i<iframes.length;i++)-1!==iframes[i].src.indexOf("h5p")&&iframes[i].contentWindow.postMessage(ready,"*")}}()},928:function(){var H5P=window.H5P=window.H5P||{};H5P.Event=function(type,data,extras){this.type=type,this.data=data;var bubbles=!1,external=!1,scheduledForExternal=!1;void 0===extras&&(extras={}),!0===extras.bubbles&&(bubbles=!0),!0===extras.external&&(external=!0),this.preventBubbling=function(){bubbles=!1},this.getBubbles=function(){return bubbles},this.scheduleForExternal=function(){return!(!external||scheduledForExternal)&&(scheduledForExternal=!0,!0)}},H5P.EventDispatcher=function(){var self=this,triggers={};this.on=function(type,listener,thisArg){if("function"!=typeof listener)throw TypeError("listener must be a function");self.trigger("newListener",{type:type,listener:listener});var trigger={listener:listener,thisArg:thisArg};triggers[type]?triggers[type].push(trigger):triggers[type]=[trigger]},this.once=function(type,listener,thisArg){if(!(listener instanceof Function))throw TypeError("listener must be a function");var _once=function(event){self.off(event.type,_once),listener.call(this,event)};self.on(type,_once,thisArg)},this.off=function(type,listener){if(void 0!==listener&&!(listener instanceof Function))throw TypeError("listener must be a function");if(void 0!==triggers[type]){if(void 0===listener)return delete triggers[type],void self.trigger("removeListener",type);for(var i=0;i<triggers[type].length;i++)if(triggers[type][i].listener===listener){triggers[type].splice(i,1),self.trigger("removeListener",type,{listener:listener});break}triggers[type].length||delete triggers[type]}};var call=function(type,event){if(void 0!==triggers[type])for(var handlers=triggers[type].slice(),i=0;i<handlers.length;i++){var trigger=handlers[i],thisArg=trigger.thisArg?trigger.thisArg:this;trigger.listener.call(thisArg,event)}};this.trigger=function(event,eventData,extras){if(void 0!==event){event instanceof String||"string"==typeof event?event=new H5P.Event(event,eventData,extras):void 0!==eventData&&(event.data=eventData);var scheduledForExternal=event.scheduleForExternal();call.call(this,event.type,event),call.call(this,"*",event),event.getBubbles()&&self.parent instanceof H5P.EventDispatcher&&(self.parent.trigger instanceof Function||"function"==typeof self.parent.trigger)&&self.parent.trigger(event),scheduledForExternal&&H5P.externalDispatcher.trigger.call(this,event)}}}}},__webpack_module_cache__={};function __webpack_require__(moduleId){var cachedModule=__webpack_module_cache__[moduleId];if(void 0!==cachedModule)return cachedModule.exports;var module=__webpack_module_cache__[moduleId]={id:moduleId,loaded:!1,exports:{}};return __webpack_modules__[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.loaded=!0,module.exports}__webpack_require__.n=function(module){var getter=module&&module.__esModule?function(){return module.default}:function(){return module};return __webpack_require__.d(getter,{a:getter}),getter},__webpack_require__.d=function(exports,definition){for(var key in definition)__webpack_require__.o(definition,key)&&!__webpack_require__.o(exports,key)&&Object.defineProperty(exports,key,{enumerable:!0,get:definition[key]})},__webpack_require__.o=function(obj,prop){return Object.prototype.hasOwnProperty.call(obj,prop)},__webpack_require__.nmd=function(module){return module.paths=[],module.children||(module.children=[]),module},function(){"use strict";var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(320),jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__),logging=console;window.H5P={jQuery:jquery__WEBPACK_IMPORTED_MODULE_0___default(),OfflineRequestQueue:function(){},externalEmbed:!0,preventInit:!0},window.$=window.jQuery=jquery__WEBPACK_IMPORTED_MODULE_0___default(),window.H5P.jQuery.fn.__originalLoad=window.H5P.jQuery.load,window.H5P.jQuery.fn.load=function(url){if("function"==typeof url){logging.warn("You are using a deprecated H5P library. Please upgrade!");var args=Array.prototype.slice.call(arguments);return args.unshift("load"),window.H5P.jQuery.fn.on.apply(this,args)}return window.H5P.jQuery.fn.__originalLoad.apply(this,arguments)},__webpack_require__(545),__webpack_require__(928),__webpack_require__(489),__webpack_require__(192),__webpack_require__(778),__webpack_require__(672),__webpack_require__(926)}()}();