vendor: 144,844 bytes, lines 1-6641
1/* compact [ 2 prive/javascript/jquery.js?1790089484 3 prive/javascript/jquery.form.js?1790089484 4 prive/javascript/jquery.autosave.js?1790089484 5 prive/javascript/jquery.placeholder-label.js?1790089484 6 prive/javascript/ajaxCallback.js?1790089484 7 prive/javascript/js.cookie.js?1790089484 8 plugins-dist/mediabox/lib/lity/lity.js?1790089482 9 plugins-dist/mediabox/lity/js/lity.mediabox.js?1790089482 10 plugins-dist/mediabox/javascript/spip.mediabox.js?1790089482 11 plugins-dist/porte_plume/javascript/jquery.markitup_pour_spip.js?1790089483 12 plugins-dist/porte_plume/javascript/jquery.previsu_spip.js?1790089483 13 local/cache-js/jsdyn-javascript_porte_plume_start_js-3b04c1e3.js?1790089482 14 squelettes/js/jquery-ui.min.js 15 squelettes/js/jquery.caret.min.js 16 squelettes/js/jquery.tag-editor.min.js 17 squelettes/js/popper.min.js 18 squelettes/js/bootstrap.min.js 19 squelettes/js/slick.min.js 20 squelettes/js/lazyload.js 21 squelettes/js/masonry.js 22 squelettes/js/imagesloaded.js 23 squelettes/js/fluidify.js 24] 76% */ 25 26/* prive/javascript/jquery.js?1790089484 */ 27 28(function(global,factory){ 29"use strict"; 30if(typeof module==="object"&&typeof module.exports==="object"){ 31module.exports=global.document? 32factory(global,true): 33function(w){ 34if(!w.document){ 35throw new Error("jQuery requires a window with a document"); 36} 37return factory(w); 38}; 39}else{ 40factory(global); 41} 42})(typeof window!=="undefined"?window:this,function(window,noGlobal){ 43"use strict"; 44var arr=[]; 45var getProto=Object.getPrototypeOf; 46var slice=arr.slice; 47var flat=arr.flat?function(array){ 48return arr.flat.call(array); 49}:function(array){ 50return arr.concat.apply([],array); 51}; 52var push=arr.push; 53var indexOf=arr.indexOf; 54var class2type={}; 55var toString=class2type.toString; 56var hasOwn=class2type.hasOwnProperty; 57var fnToString=hasOwn.toString; 58var ObjectFunctionString=fnToString.call(Object); 59var support={}; 60var isFunction=function isFunction(obj){ 61return typeof obj==="function"&&typeof obj.nodeType!=="number"&& 62typeof obj.item!=="function"; 63}; 64var isWindow=function isWindow(obj){ 65return obj!=null&&obj===obj.window; 66}; 67var document=window.document; 68var preservedScriptAttributes={ 69type:true, 70src:true, 71nonce:true, 72noModule:true 73}; 74function DOMEval(code,node,doc){ 75doc=doc||document; 76var i,val, 77script=doc.createElement("script"); 78script.text=code; 79if(node){ 80for(i in preservedScriptAttributes){ 81val=node[i]||node.getAttribute&&node.getAttribute(i); 82if(val){ 83script.setAttribute(i,val); 84} 85} 86} 87doc.head.appendChild(script).parentNode.removeChild(script); 88} 89function toType(obj){ 90if(obj==null){ 91return obj+""; 92} 93return typeof obj==="object"||typeof obj==="function"? 94class2type[toString.call(obj)]||"object": 95typeof obj; 96} 97var version="3.7.1", 98rhtmlSuffix=/HTML$/i, 99jQuery=function(selector,context){ 100return new jQuery.fn.init(selector,context); 101}; 102jQuery.fn=jQuery.prototype={ 103jquery:version, 104constructor:jQuery, 105length:0, 106toArray:function(){ 107return slice.call(this); 108}, 109get:function(num){ 110if(num==null){ 111return slice.call(this); 112} 113return num<0?this[num+this.length]:this[num]; 114}, 115pushStack:function(elems){ 116var ret=jQuery.merge(this.constructor(),elems); 117ret.prevObject=this; 118return ret; 119}, 120each:function(callback){ 121return jQuery.each(this,callback); 122}, 123map:function(callback){ 124return this.pushStack(jQuery.map(this,function(elem,i){ 125return callback.call(elem,i,elem); 126})); 127}, 128slice:function(){ 129return this.pushStack(slice.apply(this,arguments)); 130}, 131first:function(){ 132return this.eq(0); 133}, 134last:function(){ 135return this.eq(-1); 136}, 137even:function(){ 138return this.pushStack(jQuery.grep(this,function(_elem,i){ 139return(i+1)%2; 140})); 141}, 142odd:function(){ 143return this.pushStack(jQuery.grep(this,function(_elem,i){ 144return i%2; 145})); 146}, 147eq:function(i){ 148var len=this.length, 149j=+i+(i<0?len:0); 150return this.pushStack(j>=0&&j<len?[this[j]]:[]); 151}, 152end:function(){ 153return this.prevObject||this.constructor(); 154}, 155push:push, 156sort:arr.sort, 157splice:arr.splice 158}; 159jQuery.extend=jQuery.fn.extend=function(){ 160var options,name,src,copy,copyIsArray,clone, 161target=arguments[0]||{}, 162i=1, 163length=arguments.length, 164deep=false; 165if(typeof target==="boolean"){ 166deep=target; 167target=arguments[i]||{}; 168i++; 169} 170if(typeof target!=="object"&&!isFunction(target)){ 171target={}; 172} 173if(i===length){ 174target=this; 175i--; 176} 177for(;i<length;i++){ 178if((options=arguments[i])!=null){ 179for(name in options){ 180copy=options[name]; 181if(name==="__proto__"||target===copy){ 182continue; 183} 184if(deep&©&&(jQuery.isPlainObject(copy)|| 185(copyIsArray=Array.isArray(copy)))){ 186src=target[name]; 187if(copyIsArray&&!Array.isArray(src)){ 188clone=[]; 189}else if(!copyIsArray&&!jQuery.isPlainObject(src)){ 190clone={}; 191}else{ 192clone=src; 193} 194copyIsArray=false; 195target[name]=jQuery.extend(deep,clone,copy); 196}else if(copy!==undefined){ 197target[name]=copy; 198} 199} 200} 201} 202return target; 203}; 204jQuery.extend({ 205expando:"jQuery"+(version+Math.random()).replace(/\D/g,""), 206isReady:true, 207error:function(msg){ 208throw new Error(msg); 209}, 210noop:function(){}, 211isPlainObject:function(obj){ 212var proto,Ctor; 213if(!obj||toString.call(obj)!=="[object Object]"){ 214return false; 215} 216proto=getProto(obj); 217if(!proto){ 218return true; 219} 220Ctor=hasOwn.call(proto,"constructor")&&proto.constructor; 221return typeof Ctor==="function"&&fnToString.call(Ctor)===ObjectFunctionString; 222}, 223isEmptyObject:function(obj){ 224var name; 225for(name in obj){ 226return false; 227} 228return true; 229}, 230globalEval:function(code,options,doc){ 231DOMEval(code,{nonce:options&&options.nonce},doc); 232}, 233each:function(obj,callback){ 234var length,i=0; 235if(isArrayLike(obj)){ 236length=obj.length; 237for(;i<length;i++){ 238if(callback.call(obj[i],i,obj[i])===false){ 239break; 240} 241} 242}else{ 243for(i in obj){ 244if(callback.call(obj[i],i,obj[i])===false){ 245break; 246} 247} 248} 249return obj; 250}, 251text:function(elem){ 252var node, 253ret="", 254i=0, 255nodeType=elem.nodeType; 256if(!nodeType){ 257while((node=elem[i++])){ 258ret+=jQuery.text(node); 259} 260} 261if(nodeType===1||nodeType===11){ 262return elem.textContent; 263} 264if(nodeType===9){ 265return elem.documentElement.textContent; 266} 267if(nodeType===3||nodeType===4){ 268return elem.nodeValue; 269} 270return ret; 271}, 272makeArray:function(arr,results){ 273var ret=results||[]; 274if(arr!=null){ 275if(isArrayLike(Object(arr))){ 276jQuery.merge(ret, 277typeof arr==="string"? 278[arr]:arr 279); 280}else{ 281push.call(ret,arr); 282} 283} 284return ret; 285}, 286inArray:function(elem,arr,i){ 287return arr==null?-1:indexOf.call(arr,elem,i); 288}, 289isXMLDoc:function(elem){ 290var namespace=elem&&elem.namespaceURI, 291docElem=elem&&(elem.ownerDocument||elem).documentElement; 292return!rhtmlSuffix.test(namespace||docElem&&docElem.nodeName||"HTML"); 293}, 294merge:function(first,second){ 295var len=+second.length, 296j=0, 297i=first.length; 298for(;j<len;j++){ 299first[i++]=second[j]; 300} 301first.length=i; 302return first; 303}, 304grep:function(elems,callback,invert){ 305var callbackInverse, 306matches=[], 307i=0, 308length=elems.length, 309callbackExpect=!invert; 310for(;i<length;i++){ 311callbackInverse=!callback(elems[i],i); 312if(callbackInverse!==callbackExpect){ 313matches.push(elems[i]); 314} 315} 316return matches; 317}, 318map:function(elems,callback,arg){ 319var length,value, 320i=0, 321ret=[]; 322if(isArrayLike(elems)){ 323length=elems.length; 324for(;i<length;i++){ 325value=callback(elems[i],i,arg); 326if(value!=null){ 327ret.push(value); 328} 329} 330}else{ 331for(i in elems){ 332value=callback(elems[i],i,arg); 333if(value!=null){ 334ret.push(value); 335} 336} 337} 338return flat(ret); 339}, 340guid:1, 341support:support 342}); 343if(typeof Symbol==="function"){ 344jQuery.fn[Symbol.iterator]=arr[Symbol.iterator]; 345} 346jQuery.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "), 347function(_i,name){ 348class2type["[object "+name+"]"]=name.toLowerCase(); 349}); 350function isArrayLike(obj){ 351var length=!!obj&&"length"in obj&&obj.length, 352type=toType(obj); 353if(isFunction(obj)||isWindow(obj)){ 354return false; 355} 356return type==="array"||length===0|| 357typeof length==="number"&&length>0&&(length-1)in obj; 358} 359function nodeName(elem,name){ 360return elem.nodeName&&elem.nodeName.toLowerCase()===name.toLowerCase(); 361} 362var pop=arr.pop; 363var sort=arr.sort; 364var splice=arr.splice; 365var whitespace="[\\x20\\t\\r\\n\\f]"; 366var rtrimCSS=new RegExp( 367"^"+whitespace+"+|((?:^|[^\\\\])(?:\\\\.)*)"+whitespace+"+$", 368"g" 369); 370jQuery.contains=function(a,b){ 371var bup=b&&b.parentNode; 372return a===bup||!!(bup&&bup.nodeType===1&&( 373a.contains? 374a.contains(bup): 375a.compareDocumentPosition&&a.compareDocumentPosition(bup)&16 376)); 377}; 378var rcssescape=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g; 379function fcssescape(ch,asCodePoint){ 380if(asCodePoint){ 381if(ch==="\0"){ 382return"\uFFFD"; 383} 384return ch.slice(0,-1)+"\\"+ch.charCodeAt(ch.length-1).toString(16)+" "; 385} 386return"\\"+ch; 387} 388jQuery.escapeSelector=function(sel){ 389return(sel+"").replace(rcssescape,fcssescape); 390}; 391var preferredDoc=document, 392pushNative=push; 393(function(){ 394var i, 395Expr, 396outermostContext, 397sortInput, 398hasDuplicate, 399push=pushNative, 400document, 401documentElement, 402documentIsHTML, 403rbuggyQSA, 404matches, 405expando=jQuery.expando, 406dirruns=0, 407done=0, 408classCache=createCache(), 409tokenCache=createCache(), 410compilerCache=createCache(), 411nonnativeSelectorCache=createCache(), 412sortOrder=function(a,b){ 413if(a===b){ 414hasDuplicate=true; 415} 416return 0; 417}, 418booleans="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|"+ 419"loop|multiple|open|readonly|required|scoped", 420identifier="(?:\\\\[\\da-fA-F]{1,6}"+whitespace+ 421"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+", 422attributes="\\["+whitespace+"*("+identifier+")(?:"+whitespace+ 423"*([*^$|!~]?=)"+whitespace+ 424"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+identifier+"))|)"+ 425whitespace+"*\\]", 426pseudos=":("+identifier+")(?:\\(("+ 427"('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|"+ 428"((?:\\\\.|[^\\\\()[\\]]|"+attributes+")*)|"+ 429".*"+ 430")\\)|)", 431rwhitespace=new RegExp(whitespace+"+","g"), 432rcomma=new RegExp("^"+whitespace+"*,"+whitespace+"*"), 433rleadingCombinator=new RegExp("^"+whitespace+"*([>+~]|"+whitespace+")"+ 434whitespace+"*"), 435rdescend=new RegExp(whitespace+"|>"), 436rpseudo=new RegExp(pseudos), 437ridentifier=new RegExp("^"+identifier+"$"), 438matchExpr={ 439ID:new RegExp("^#("+identifier+")"), 440CLASS:new RegExp("^\\.("+identifier+")"), 441TAG:new RegExp("^("+identifier+"|[*])"), 442ATTR:new RegExp("^"+attributes), 443PSEUDO:new RegExp("^"+pseudos), 444CHILD:new RegExp( 445"^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ 446whitespace+"*(even|odd|(([+-]|)(\\d*)n|)"+whitespace+"*(?:([+-]|)"+ 447whitespace+"*(\\d+)|))"+whitespace+"*\\)|)","i"), 448bool:new RegExp("^(?:"+booleans+")$","i"), 449needsContext:new RegExp("^"+whitespace+ 450"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+whitespace+ 451"*((?:-\\d)?\\d*)"+whitespace+"*\\)|)(?=[^-]|$)","i") 452}, 453rinputs=/^(?:input|select|textarea|button)$/i, 454rheader=/^h\d$/i, 455rquickExpr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, 456rsibling=/[+~]/, 457runescape=new RegExp("\\\\[\\da-fA-F]{1,6}"+whitespace+ 458"?|\\\\([^\\r\\n\\f])","g"), 459funescape=function(escape,nonHex){ 460var high="0x"+escape.slice(1)-0x10000; 461if(nonHex){ 462return nonHex; 463} 464return high<0? 465String.fromCharCode(high+0x10000): 466String.fromCharCode(high>>10|0xD800,high&0x3FF|0xDC00); 467}, 468unloadHandler=function(){ 469setDocument(); 470}, 471inDisabledFieldset=addCombinator( 472function(elem){ 473return elem.disabled===true&&nodeName(elem,"fieldset"); 474}, 475{dir:"parentNode",next:"legend"} 476); 477function safeActiveElement(){ 478try{ 479return document.activeElement; 480}catch(err){} 481} 482try{ 483push.apply( 484(arr=slice.call(preferredDoc.childNodes)), 485preferredDoc.childNodes 486); 487arr[preferredDoc.childNodes.length].nodeType; 488}catch(e){ 489push={ 490apply:function(target,els){ 491pushNative.apply(target,slice.call(els)); 492}, 493call:function(target){ 494pushNative.apply(target,slice.call(arguments,1)); 495} 496}; 497} 498function find(selector,context,results,seed){ 499var m,i,elem,nid,match,groups,newSelector, 500newContext=context&&context.ownerDocument, 501nodeType=context?context.nodeType:9; 502results=results||[]; 503if(typeof selector!=="string"||!selector|| 504nodeType!==1&&nodeType!==9&&nodeType!==11){ 505return results; 506} 507if(!seed){ 508setDocument(context); 509context=context||document; 510if(documentIsHTML){ 511if(nodeType!==11&&(match=rquickExpr.exec(selector))){ 512if((m=match[1])){ 513if(nodeType===9){ 514if((elem=context.getElementById(m))){ 515if(elem.id===m){ 516push.call(results,elem); 517return results; 518} 519}else{ 520return results; 521} 522}else{ 523if(newContext&&(elem=newContext.getElementById(m))&& 524find.contains(context,elem)&& 525elem.id===m){ 526push.call(results,elem); 527return results; 528} 529} 530}else if(match[2]){ 531push.apply(results,context.getElementsByTagName(selector)); 532return results; 533}else if((m=match[3])&&context.getElementsByClassName){ 534push.apply(results,context.getElementsByClassName(m)); 535return results; 536} 537} 538if(!nonnativeSelectorCache[selector+" "]&& 539(!rbuggyQSA||!rbuggyQSA.test(selector))){ 540newSelector=selector; 541newContext=context; 542if(nodeType===1&& 543(rdescend.test(selector)||rleadingCombinator.test(selector))){ 544newContext=rsibling.test(selector)&&testContext(context.parentNode)|| 545context; 546if(newContext!=context||!support.scope){ 547if((nid=context.getAttribute("id"))){ 548nid=jQuery.escapeSelector(nid); 549}else{ 550context.setAttribute("id",(nid=expando)); 551} 552} 553groups=tokenize(selector); 554i=groups.length; 555while(i--){ 556groups[i]=(nid?"#"+nid:":scope")+" "+ 557toSelector(groups[i]); 558} 559newSelector=groups.join(","); 560} 561try{ 562push.apply(results, 563newContext.querySelectorAll(newSelector) 564); 565return results; 566}catch(qsaError){ 567nonnativeSelectorCache(selector,true); 568}finally{ 569if(nid===expando){ 570context.removeAttribute("id"); 571} 572} 573} 574} 575} 576return select(selector.replace(rtrimCSS,"$1"),context,results,seed); 577} 578function createCache(){ 579var keys=[]; 580function cache(key,value){ 581if(keys.push(key+" ")>Expr.cacheLength){ 582delete cache[keys.shift()]; 583} 584return(cache[key+" "]=value); 585} 586return cache; 587} 588function markFunction(fn){ 589fn[expando]=true; 590return fn; 591} 592function assert(fn){ 593var el=document.createElement("fieldset"); 594try{ 595return!!fn(el); 596}catch(e){ 597return false; 598}finally{ 599if(el.parentNode){ 600el.parentNode.removeChild(el); 601} 602el=null; 603} 604} 605function createInputPseudo(type){ 606return function(elem){ 607return nodeName(elem,"input")&&elem.type===type; 608}; 609} 610function createButtonPseudo(type){ 611return function(elem){ 612return(nodeName(elem,"input")||nodeName(elem,"button"))&& 613elem.type===type; 614}; 615} 616function createDisabledPseudo(disabled){ 617return function(elem){ 618if("form"in elem){ 619if(elem.parentNode&&elem.disabled===false){ 620if("label"in elem){ 621if("label"in elem.parentNode){ 622return elem.parentNode.disabled===disabled; 623}else{ 624return elem.disabled===disabled; 625} 626} 627return elem.isDisabled===disabled|| 628elem.isDisabled!==!disabled&& 629inDisabledFieldset(elem)===disabled; 630} 631return elem.disabled===disabled; 632}else if("label"in elem){ 633return elem.disabled===disabled; 634} 635return false; 636}; 637} 638function createPositionalPseudo(fn){ 639return markFunction(function(argument){ 640argument=+argument; 641return markFunction(function(seed,matches){ 642var j, 643matchIndexes=fn([],seed.length,argument), 644i=matchIndexes.length; 645while(i--){ 646if(seed[(j=matchIndexes[i])]){ 647seed[j]=!(matches[j]=seed[j]); 648} 649} 650}); 651}); 652} 653function testContext(context){ 654return context&&typeof context.getElementsByTagName!=="undefined"&&context; 655} 656function setDocument(node){ 657var subWindow, 658doc=node?node.ownerDocument||node:preferredDoc; 659if(doc==document||doc.nodeType!==9||!doc.documentElement){ 660return document; 661} 662document=doc; 663documentElement=document.documentElement; 664documentIsHTML=!jQuery.isXMLDoc(document); 665matches=documentElement.matches|| 666documentElement.webkitMatchesSelector|| 667documentElement.msMatchesSelector; 668if(documentElement.msMatchesSelector&& 669preferredDoc!=document&& 670(subWindow=document.defaultView)&&subWindow.top!==subWindow){ 671subWindow.addEventListener("unload",unloadHandler); 672} 673support.getById=assert(function(el){ 674documentElement.appendChild(el).id=jQuery.expando; 675return!document.getElementsByName|| 676!document.getElementsByName(jQuery.expando).length; 677}); 678support.disconnectedMatch=assert(function(el){ 679return matches.call(el,"*"); 680}); 681support.scope=assert(function(){ 682return document.querySelectorAll(":scope"); 683}); 684support.cssHas=assert(function(){ 685try{ 686document.querySelector(":has(*,:jqfake)"); 687return false; 688}catch(e){ 689return true; 690} 691}); 692if(support.getById){ 693Expr.filter.ID=function(id){ 694var attrId=id.replace(runescape,funescape); 695return function(elem){ 696return elem.getAttribute("id")===attrId; 697}; 698}; 699Expr.find.ID=function(id,context){ 700if(typeof context.getElementById!=="undefined"&&documentIsHTML){ 701var elem=context.getElementById(id); 702return elem?[elem]:[]; 703} 704}; 705}else{ 706Expr.filter.ID=function(id){ 707var attrId=id.replace(runescape,funescape); 708return function(elem){ 709var node=typeof elem.getAttributeNode!=="undefined"&& 710elem.getAttributeNode("id"); 711return node&&node.value===attrId; 712}; 713}; 714Expr.find.ID=function(id,context){ 715if(typeof context.getElementById!=="undefined"&&documentIsHTML){ 716var node,i,elems, 717elem=context.getElementById(id); 718if(elem){ 719node=elem.getAttributeNode("id"); 720if(node&&node.value===id){ 721return[elem]; 722} 723elems=context.getElementsByName(id); 724i=0; 725while((elem=elems[i++])){ 726node=elem.getAttributeNode("id"); 727if(node&&node.value===id){ 728return[elem]; 729} 730} 731} 732return[]; 733} 734}; 735} 736Expr.find.TAG=function(tag,context){ 737if(typeof context.getElementsByTagName!=="undefined"){ 738return context.getElementsByTagName(tag); 739}else{ 740return context.querySelectorAll(tag); 741} 742}; 743Expr.find.CLASS=function(className,context){ 744if(typeof context.getElementsByClassName!=="undefined"&&documentIsHTML){ 745return context.getElementsByClassName(className); 746} 747}; 748rbuggyQSA=[]; 749assert(function(el){ 750var input; 751documentElement.appendChild(el).innerHTML= 752"<a id='"+expando+"' href='' disabled='disabled'></a>"+ 753"<select id='"+expando+"-\r\\' disabled='disabled'>"+ 754"<option selected=''></option></select>"; 755if(!el.querySelectorAll("[selected]").length){ 756rbuggyQSA.push("\\["+whitespace+"*(?:value|"+booleans+")"); 757} 758if(!el.querySelectorAll("[id~="+expando+"-]").length){ 759rbuggyQSA.push("~="); 760} 761if(!el.querySelectorAll("a#"+expando+"+*").length){ 762rbuggyQSA.push(".#.+[+~]"); 763} 764if(!el.querySelectorAll(":checked").length){ 765rbuggyQSA.push(":checked"); 766} 767input=document.createElement("input"); 768input.setAttribute("type","hidden"); 769el.appendChild(input).setAttribute("name","D"); 770documentElement.appendChild(el).disabled=true; 771if(el.querySelectorAll(":disabled").length!==2){ 772rbuggyQSA.push(":enabled",":disabled"); 773} 774input=document.createElement("input"); 775input.setAttribute("name",""); 776el.appendChild(input); 777if(!el.querySelectorAll("[name='']").length){ 778rbuggyQSA.push("\\["+whitespace+"*name"+whitespace+"*="+ 779whitespace+"*(?:''|\"\")"); 780} 781}); 782if(!support.cssHas){ 783rbuggyQSA.push(":has"); 784} 785rbuggyQSA=rbuggyQSA.length&&new RegExp(rbuggyQSA.join("|")); 786sortOrder=function(a,b){ 787if(a===b){ 788hasDuplicate=true; 789return 0; 790} 791var compare=!a.compareDocumentPosition-!b.compareDocumentPosition; 792if(compare){ 793return compare; 794} 795compare=(a.ownerDocument||a)==(b.ownerDocument||b)? 796a.compareDocumentPosition(b): 7971; 798if(compare&1|| 799(!support.sortDetached&&b.compareDocumentPosition(a)===compare)){ 800if(a===document||a.ownerDocument==preferredDoc&& 801find.contains(preferredDoc,a)){ 802return-1; 803} 804if(b===document||b.ownerDocument==preferredDoc&& 805find.contains(preferredDoc,b)){ 806return 1; 807} 808return sortInput? 809(indexOf.call(sortInput,a)-indexOf.call(sortInput,b)): 8100; 811} 812return compare&4?-1:1; 813}; 814return document; 815} 816find.matches=function(expr,elements){ 817return find(expr,null,null,elements); 818}; 819find.matchesSelector=function(elem,expr){ 820setDocument(elem); 821if(documentIsHTML&& 822!nonnativeSelectorCache[expr+" "]&& 823(!rbuggyQSA||!rbuggyQSA.test(expr))){ 824try{ 825var ret=matches.call(elem,expr); 826if(ret||support.disconnectedMatch|| 827elem.document&&elem.document.nodeType!==11){ 828return ret; 829} 830}catch(e){ 831nonnativeSelectorCache(expr,true); 832} 833} 834return find(expr,document,null,[elem]).length>0; 835}; 836find.contains=function(context,elem){ 837if((context.ownerDocument||context)!=document){ 838setDocument(context); 839} 840return jQuery.contains(context,elem); 841}; 842find.attr=function(elem,name){ 843if((elem.ownerDocument||elem)!=document){ 844setDocument(elem); 845} 846var fn=Expr.attrHandle[name.toLowerCase()], 847val=fn&&hasOwn.call(Expr.attrHandle,name.toLowerCase())? 848fn(elem,name,!documentIsHTML): 849undefined; 850if(val!==undefined){ 851return val; 852} 853return elem.getAttribute(name); 854}; 855find.error=function(msg){ 856throw new Error("Syntax error, unrecognized expression: "+msg); 857}; 858jQuery.uniqueSort=function(results){ 859var elem, 860duplicates=[], 861j=0, 862i=0; 863hasDuplicate=!support.sortStable; 864sortInput=!support.sortStable&&slice.call(results,0); 865sort.call(results,sortOrder); 866if(hasDuplicate){ 867while((elem=results[i++])){ 868if(elem===results[i]){ 869j=duplicates.push(i); 870} 871} 872while(j--){ 873splice.call(results,duplicates[j],1); 874} 875} 876sortInput=null; 877return results; 878}; 879jQuery.fn.uniqueSort=function(){ 880return this.pushStack(jQuery.uniqueSort(slice.apply(this))); 881}; 882Expr=jQuery.expr={ 883cacheLength:50, 884createPseudo:markFunction, 885match:matchExpr, 886attrHandle:{}, 887find:{}, 888relative:{ 889">":{dir:"parentNode",first:true}, 890" ":{dir:"parentNode"}, 891"+":{dir:"previousSibling",first:true}, 892"~":{dir:"previousSibling"} 893}, 894preFilter:{ 895ATTR:function(match){ 896match[1]=match[1].replace(runescape,funescape); 897match[3]=(match[3]||match[4]||match[5]||"") 898.replace(runescape,funescape); 899if(match[2]==="~="){ 900match[3]=" "+match[3]+" "; 901} 902return match.slice(0,4); 903}, 904CHILD:function(match){ 905match[1]=match[1].toLowerCase(); 906if(match[1].slice(0,3)==="nth"){ 907if(!match[3]){ 908find.error(match[0]); 909} 910match[4]=+(match[4]? 911match[5]+(match[6]||1): 9122*(match[3]==="even"||match[3]==="odd") 913); 914match[5]=+((match[7]+match[8])||match[3]==="odd"); 915}else if(match[3]){ 916find.error(match[0]); 917} 918return match; 919}, 920PSEUDO:function(match){ 921var excess, 922unquoted=!match[6]&&match[2]; 923if(matchExpr.CHILD.test(match[0])){ 924return null; 925} 926if(match[3]){ 927match[2]=match[4]||match[5]||""; 928}else if(unquoted&&rpseudo.test(unquoted)&& 929(excess=tokenize(unquoted,true))&& 930(excess=unquoted.indexOf(")",unquoted.length-excess)-unquoted.length)){ 931match[0]=match[0].slice(0,excess); 932match[2]=unquoted.slice(0,excess); 933} 934return match.slice(0,3); 935} 936}, 937filter:{ 938TAG:function(nodeNameSelector){ 939var expectedNodeName=nodeNameSelector.replace(runescape,funescape).toLowerCase(); 940return nodeNameSelector==="*"? 941function(){ 942return true; 943}: 944function(elem){ 945return nodeName(elem,expectedNodeName); 946}; 947}, 948CLASS:function(className){ 949var pattern=classCache[className+" "]; 950return pattern|| 951(pattern=new RegExp("(^|"+whitespace+")"+className+ 952"("+whitespace+"|$)"))&& 953classCache(className,function(elem){ 954return pattern.test( 955typeof elem.className==="string"&&elem.className|| 956typeof elem.getAttribute!=="undefined"&& 957elem.getAttribute("class")|| 958"" 959); 960}); 961}, 962ATTR:function(name,operator,check){ 963return function(elem){ 964var result=find.attr(elem,name); 965if(result==null){ 966return operator==="!="; 967} 968if(!operator){ 969return true; 970} 971result+=""; 972if(operator==="="){ 973return result===check; 974} 975if(operator==="!="){ 976return result!==check; 977} 978if(operator==="^="){ 979return check&&result.indexOf(check)===0; 980} 981if(operator==="*="){ 982return check&&result.indexOf(check)>-1; 983} 984if(operator==="$="){ 985return check&&result.slice(-check.length)===check; 986} 987if(operator==="~="){ 988return(" "+result.replace(rwhitespace," ")+" ") 989.indexOf(check)>-1; 990} 991if(operator==="|="){ 992return result===check||result.slice(0,check.length+1)===check+"-"; 993} 994return false; 995}; 996}, 997CHILD:function(type,what,_argument,first,last){ 998var simple=type.slice(0,3)!=="nth", 999forward=type.slice(-4)!=="last", 1000ofType=what==="of-type"; 1001return first===1&&last===0? 1002function(elem){ 1003return!!elem.parentNode; 1004}: 1005function(elem,_context,xml){ 1006var cache,outerCache,node,nodeIndex,start, 1007dir=simple!==forward?"nextSibling":"previousSibling", 1008parent=elem.parentNode, 1009name=ofType&&elem.nodeName.toLowerCase(), 1010useCache=!xml&&!ofType, 1011diff=false; 1012if(parent){ 1013if(simple){ 1014while(dir){ 1015node=elem; 1016while((node=node[dir])){ 1017if(ofType? 1018nodeName(node,name): 1019node.nodeType===1){ 1020return false; 1021} 1022} 1023start=dir=type==="only"&&!start&&"nextSibling"; 1024} 1025return true; 1026} 1027start=[forward?parent.firstChild:parent.lastChild]; 1028if(forward&&useCache){ 1029outerCache=parent[expando]||(parent[expando]={}); 1030cache=outerCache[type]||[]; 1031nodeIndex=cache[0]===dirruns&&cache[1]; 1032diff=nodeIndex&&cache[2]; 1033node=nodeIndex&&parent.childNodes[nodeIndex]; 1034while((node=++nodeIndex&&node&&node[dir]|| 1035(diff=nodeIndex=0)||start.pop())){ 1036if(node.nodeType===1&&++diff&&node===elem){ 1037outerCache[type]=[dirruns,nodeIndex,diff]; 1038break; 1039} 1040} 1041}else{ 1042if(useCache){ 1043outerCache=elem[expando]||(elem[expando]={}); 1044cache=outerCache[type]||[]; 1045nodeIndex=cache[0]===dirruns&&cache[1]; 1046diff=nodeIndex; 1047} 1048if(diff===false){ 1049while((node=++nodeIndex&&node&&node[dir]|| 1050(diff=nodeIndex=0)||start.pop())){ 1051if((ofType? 1052nodeName(node,name): 1053node.nodeType===1)&& 1054++diff){ 1055if(useCache){ 1056outerCache=node[expando]|| 1057(node[expando]={}); 1058outerCache[type]=[dirruns,diff]; 1059} 1060if(node===elem){ 1061break; 1062} 1063} 1064} 1065} 1066} 1067diff-=last; 1068return diff===first||(diff%first===0&&diff/first>=0); 1069} 1070}; 1071}, 1072PSEUDO:function(pseudo,argument){ 1073var args, 1074fn=Expr.pseudos[pseudo]||Expr.setFilters[pseudo.toLowerCase()]|| 1075find.error("unsupported pseudo: "+pseudo); 1076if(fn[expando]){ 1077return fn(argument); 1078} 1079if(fn.length>1){ 1080args=[pseudo,pseudo,"",argument]; 1081return Expr.setFilters.hasOwnProperty(pseudo.toLowerCase())? 1082markFunction(function(seed,matches){ 1083var idx, 1084matched=fn(seed,argument), 1085i=matched.length; 1086while(i--){ 1087idx=indexOf.call(seed,matched[i]); 1088seed[idx]=!(matches[idx]=matched[i]); 1089} 1090}): 1091function(elem){ 1092return fn(elem,0,args); 1093}; 1094} 1095return fn; 1096} 1097}, 1098pseudos:{ 1099not:markFunction(function(selector){ 1100var input=[], 1101results=[], 1102matcher=compile(selector.replace(rtrimCSS,"$1")); 1103return matcher[expando]? 1104markFunction(function(seed,matches,_context,xml){ 1105var elem, 1106unmatched=matcher(seed,null,xml,[]), 1107i=seed.length; 1108while(i--){ 1109if((elem=unmatched[i])){ 1110seed[i]=!(matches[i]=elem); 1111} 1112} 1113}): 1114function(elem,_context,xml){ 1115input[0]=elem; 1116matcher(input,null,xml,results); 1117input[0]=null; 1118return!results.pop(); 1119}; 1120}), 1121has:markFunction(function(selector){ 1122return function(elem){ 1123return find(selector,elem).length>0; 1124}; 1125}), 1126contains:markFunction(function(text){ 1127text=text.replace(runescape,funescape); 1128return function(elem){ 1129return(elem.textContent||jQuery.text(elem)).indexOf(text)>-1; 1130}; 1131}), 1132lang:markFunction(function(lang){ 1133if(!ridentifier.test(lang||"")){ 1134find.error("unsupported lang: "+lang); 1135} 1136lang=lang.replace(runescape,funescape).toLowerCase(); 1137return function(elem){ 1138var elemLang; 1139do{ 1140if((elemLang=documentIsHTML? 1141elem.lang: 1142elem.getAttribute("xml:lang")||elem.getAttribute("lang"))){ 1143elemLang=elemLang.toLowerCase(); 1144return elemLang===lang||elemLang.indexOf(lang+"-")===0; 1145} 1146}while((elem=elem.parentNode)&&elem.nodeType===1); 1147return false; 1148}; 1149}), 1150target:function(elem){ 1151var hash=window.location&&window.location.hash; 1152return hash&&hash.slice(1)===elem.id; 1153}, 1154root:function(elem){ 1155return elem===documentElement; 1156}, 1157focus:function(elem){ 1158return elem===safeActiveElement()&& 1159document.hasFocus()&& 1160!!(elem.type||elem.href||~elem.tabIndex); 1161}, 1162enabled:createDisabledPseudo(false), 1163disabled:createDisabledPseudo(true), 1164checked:function(elem){ 1165return(nodeName(elem,"input")&&!!elem.checked)|| 1166(nodeName(elem,"option")&&!!elem.selected); 1167}, 1168selected:function(elem){ 1169if(elem.parentNode){ 1170elem.parentNode.selectedIndex; 1171} 1172return elem.selected===true; 1173}, 1174empty:function(elem){ 1175for(elem=elem.firstChild;elem;elem=elem.nextSibling){ 1176if(elem.nodeType<6){ 1177return false; 1178} 1179} 1180return true; 1181}, 1182parent:function(elem){ 1183return!Expr.pseudos.empty(elem); 1184}, 1185header:function(elem){ 1186return rheader.test(elem.nodeName); 1187}, 1188input:function(elem){ 1189return rinputs.test(elem.nodeName); 1190}, 1191button:function(elem){ 1192return nodeName(elem,"input")&&elem.type==="button"|| 1193nodeName(elem,"button"); 1194}, 1195text:function(elem){ 1196var attr; 1197return nodeName(elem,"input")&&elem.type==="text"&& 1198((attr=elem.getAttribute("type"))==null|| 1199attr.toLowerCase()==="text"); 1200}, 1201first:createPositionalPseudo(function(){ 1202return[0]; 1203}), 1204last:createPositionalPseudo(function(_matchIndexes,length){ 1205return[length-1]; 1206}), 1207eq:createPositionalPseudo(function(_matchIndexes,length,argument){ 1208return[argument<0?argument+length:argument]; 1209}), 1210even:createPositionalPseudo(function(matchIndexes,length){ 1211var i=0; 1212for(;i<length;i+=2){ 1213matchIndexes.push(i); 1214} 1215return matchIndexes; 1216}), 1217odd:createPositionalPseudo(function(matchIndexes,length){ 1218var i=1; 1219for(;i<length;i+=2){ 1220matchIndexes.push(i); 1221} 1222return matchIndexes; 1223}), 1224lt:createPositionalPseudo(function(matchIndexes,length,argument){ 1225var i; 1226if(argument<0){ 1227i=argument+length; 1228}else if(argument>length){ 1229i=length; 1230}else{ 1231i=argument; 1232} 1233for(;--i>=0;){ 1234matchIndexes.push(i); 1235} 1236return matchIndexes; 1237}), 1238gt:createPositionalPseudo(function(matchIndexes,length,argument){ 1239var i=argument<0?argument+length:argument; 1240for(;++i<length;){ 1241matchIndexes.push(i); 1242} 1243return matchIndexes; 1244}) 1245} 1246}; 1247Expr.pseudos.nth=Expr.pseudos.eq; 1248for(i in{radio:true,checkbox:true,file:true,password:true,image:true}){ 1249Expr.pseudos[i]=createInputPseudo(i); 1250} 1251for(i in{submit:true,reset:true}){ 1252Expr.pseudos[i]=createButtonPseudo(i); 1253} 1254function setFilters(){} 1255setFilters.prototype=Expr.filters=Expr.pseudos; 1256Expr.setFilters=new setFilters(); 1257function tokenize(selector,parseOnly){ 1258var matched,match,tokens,type, 1259soFar,groups,preFilters, 1260cached=tokenCache[selector+" "]; 1261if(cached){ 1262return parseOnly?0:cached.slice(0); 1263} 1264soFar=selector; 1265groups=[]; 1266preFilters=Expr.preFilter; 1267while(soFar){ 1268if(!matched||(match=rcomma.exec(soFar))){ 1269if(match){ 1270soFar=soFar.slice(match[0].length)||soFar; 1271} 1272groups.push((tokens=[])); 1273} 1274matched=false; 1275if((match=rleadingCombinator.exec(soFar))){ 1276matched=match.shift(); 1277tokens.push({ 1278value:matched, 1279type:match[0].replace(rtrimCSS," ") 1280}); 1281soFar=soFar.slice(matched.length); 1282} 1283for(type in Expr.filter){ 1284if((match=matchExpr[type].exec(soFar))&&(!preFilters[type]|| 1285(match=preFilters[type](match)))){ 1286matched=match.shift(); 1287tokens.push({ 1288value:matched, 1289type:type, 1290matches:match 1291}); 1292soFar=soFar.slice(matched.length); 1293} 1294} 1295if(!matched){ 1296break; 1297} 1298} 1299if(parseOnly){ 1300return soFar.length; 1301} 1302return soFar? 1303find.error(selector): 1304tokenCache(selector,groups).slice(0); 1305} 1306function toSelector(tokens){ 1307var i=0, 1308len=tokens.length, 1309selector=""; 1310for(;i<len;i++){ 1311selector+=tokens[i].value; 1312} 1313return selector; 1314} 1315function addCombinator(matcher,combinator,base){ 1316var dir=combinator.dir, 1317skip=combinator.next, 1318key=skip||dir, 1319checkNonElements=base&&key==="parentNode", 1320doneName=done++; 1321return combinator.first? 1322function(elem,context,xml){ 1323while((elem=elem[dir])){ 1324if(elem.nodeType===1||checkNonElements){ 1325return matcher(elem,context,xml); 1326} 1327} 1328return false; 1329}: 1330function(elem,context,xml){ 1331var oldCache,outerCache, 1332newCache=[dirruns,doneName]; 1333if(xml){ 1334while((elem=elem[dir])){ 1335if(elem.nodeType===1||checkNonElements){ 1336if(matcher(elem,context,xml)){ 1337return true; 1338} 1339} 1340} 1341}else{ 1342while((elem=elem[dir])){ 1343if(elem.nodeType===1||checkNonElements){ 1344outerCache=elem[expando]||(elem[expando]={}); 1345if(skip&&nodeName(elem,skip)){ 1346elem=elem[dir]||elem; 1347}else if((oldCache=outerCache[key])&& 1348oldCache[0]===dirruns&&oldCache[1]===doneName){ 1349return(newCache[2]=oldCache[2]); 1350}else{ 1351outerCache[key]=newCache; 1352if((newCache[2]=matcher(elem,context,xml))){ 1353return true; 1354} 1355} 1356} 1357} 1358} 1359return false; 1360}; 1361} 1362function elementMatcher(matchers){ 1363return matchers.length>1? 1364function(elem,context,xml){ 1365var i=matchers.length; 1366while(i--){ 1367if(!matchers[i](elem,context,xml)){ 1368return false; 1369} 1370} 1371return true; 1372}: 1373matchers[0]; 1374} 1375function multipleContexts(selector,contexts,results){ 1376var i=0, 1377len=contexts.length; 1378for(;i<len;i++){ 1379find(selector,contexts[i],results); 1380} 1381return results; 1382} 1383function condense(unmatched,map,filter,context,xml){ 1384var elem, 1385newUnmatched=[], 1386i=0, 1387len=unmatched.length, 1388mapped=map!=null; 1389for(;i<len;i++){ 1390if((elem=unmatched[i])){ 1391if(!filter||filter(elem,context,xml)){ 1392newUnmatched.push(elem); 1393if(mapped){ 1394map.push(i); 1395} 1396} 1397} 1398} 1399return newUnmatched; 1400} 1401function setMatcher(preFilter,selector,matcher,postFilter,postFinder,postSelector){ 1402if(postFilter&&!postFilter[expando]){ 1403postFilter=setMatcher(postFilter); 1404} 1405if(postFinder&&!postFinder[expando]){ 1406postFinder=setMatcher(postFinder,postSelector); 1407} 1408return markFunction(function(seed,results,context,xml){ 1409var temp,i,elem,matcherOut, 1410preMap=[], 1411postMap=[], 1412preexisting=results.length, 1413elems=seed|| 1414multipleContexts(selector||"*", 1415context.nodeType?[context]:context,[]), 1416matcherIn=preFilter&&(seed||!selector)? 1417condense(elems,preMap,preFilter,context,xml): 1418elems; 1419if(matcher){ 1420matcherOut=postFinder||(seed?preFilter:preexisting||postFilter)? 1421[]: 1422results; 1423matcher(matcherIn,matcherOut,context,xml); 1424}else{ 1425matcherOut=matcherIn; 1426} 1427if(postFilter){ 1428temp=condense(matcherOut,postMap); 1429postFilter(temp,[],context,xml); 1430i=temp.length; 1431while(i--){ 1432if((elem=temp[i])){ 1433matcherOut[postMap[i]]=!(matcherIn[postMap[i]]=elem); 1434} 1435} 1436} 1437if(seed){ 1438if(postFinder||preFilter){ 1439if(postFinder){ 1440temp=[]; 1441i=matcherOut.length; 1442while(i--){ 1443if((elem=matcherOut[i])){ 1444temp.push((matcherIn[i]=elem)); 1445} 1446} 1447postFinder(null,(matcherOut=[]),temp,xml); 1448} 1449i=matcherOut.length; 1450while(i--){ 1451if((elem=matcherOut[i])&& 1452(temp=postFinder?indexOf.call(seed,elem):preMap[i])>-1){ 1453seed[temp]=!(results[temp]=elem); 1454} 1455} 1456} 1457}else{ 1458matcherOut=condense( 1459matcherOut===results? 1460matcherOut.splice(preexisting,matcherOut.length): 1461matcherOut 1462); 1463if(postFinder){ 1464postFinder(null,results,matcherOut,xml); 1465}else{ 1466push.apply(results,matcherOut); 1467} 1468} 1469}); 1470} 1471function matcherFromTokens(tokens){ 1472var checkContext,matcher,j, 1473len=tokens.length, 1474leadingRelative=Expr.relative[tokens[0].type], 1475implicitRelative=leadingRelative||Expr.relative[" "], 1476i=leadingRelative?1:0, 1477matchContext=addCombinator(function(elem){ 1478return elem===checkContext; 1479},implicitRelative,true), 1480matchAnyContext=addCombinator(function(elem){ 1481return indexOf.call(checkContext,elem)>-1; 1482},implicitRelative,true), 1483matchers=[function(elem,context,xml){ 1484var ret=(!leadingRelative&&(xml||context!=outermostContext))||( 1485(checkContext=context).nodeType? 1486matchContext(elem,context,xml): 1487matchAnyContext(elem,context,xml)); 1488checkContext=null; 1489return ret; 1490}]; 1491for(;i<len;i++){ 1492if((matcher=Expr.relative[tokens[i].type])){ 1493matchers=[addCombinator(elementMatcher(matchers),matcher)]; 1494}else{ 1495matcher=Expr.filter[tokens[i].type].apply(null,tokens[i].matches); 1496if(matcher[expando]){ 1497j=++i; 1498for(;j<len;j++){ 1499if(Expr.relative[tokens[j].type]){ 1500break; 1501} 1502} 1503return setMatcher( 1504i>1&&elementMatcher(matchers), 1505i>1&&toSelector( 1506tokens.slice(0,i-1) 1507.concat({value:tokens[i-2].type===" "?"*":""}) 1508).replace(rtrimCSS,"$1"), 1509matcher, 1510i<j&&matcherFromTokens(tokens.slice(i,j)), 1511j<len&&matcherFromTokens((tokens=tokens.slice(j))), 1512j<len&&toSelector(tokens) 1513); 1514} 1515matchers.push(matcher); 1516} 1517} 1518return elementMatcher(matchers); 1519} 1520function matcherFromGroupMatchers(elementMatchers,setMatchers){ 1521var bySet=setMatchers.length>0, 1522byElement=elementMatchers.length>0, 1523superMatcher=function(seed,context,xml,results,outermost){ 1524var elem,j,matcher, 1525matchedCount=0, 1526i="0", 1527unmatched=seed&&[], 1528setMatched=[], 1529contextBackup=outermostContext, 1530elems=seed||byElement&&Expr.find.TAG("*",outermost), 1531dirrunsUnique=(dirruns+=contextBackup==null?1:Math.random()||0.1), 1532len=elems.length; 1533if(outermost){ 1534outermostContext=context==document||context||outermost; 1535} 1536for(;i!==len&&(elem=elems[i])!=null;i++){ 1537if(byElement&&elem){ 1538j=0; 1539if(!context&&elem.ownerDocument!=document){ 1540setDocument(elem); 1541xml=!documentIsHTML; 1542} 1543while((matcher=elementMatchers[j++])){ 1544if(matcher(elem,context||document,xml)){ 1545push.call(results,elem); 1546break; 1547} 1548} 1549if(outermost){ 1550dirruns=dirrunsUnique; 1551} 1552} 1553if(bySet){ 1554if((elem=!matcher&&elem)){ 1555matchedCount--; 1556} 1557if(seed){ 1558unmatched.push(elem); 1559} 1560} 1561} 1562matchedCount+=i; 1563if(bySet&&i!==matchedCount){ 1564j=0; 1565while((matcher=setMatchers[j++])){ 1566matcher(unmatched,setMatched,context,xml); 1567} 1568if(seed){ 1569if(matchedCount>0){ 1570while(i--){ 1571if(!(unmatched[i]||setMatched[i])){ 1572setMatched[i]=pop.call(results); 1573} 1574} 1575} 1576setMatched=condense(setMatched); 1577} 1578push.apply(results,setMatched); 1579if(outermost&&!seed&&setMatched.length>0&& 1580(matchedCount+setMatchers.length)>1){ 1581jQuery.uniqueSort(results); 1582} 1583} 1584if(outermost){ 1585dirruns=dirrunsUnique; 1586outermostContext=contextBackup; 1587} 1588return unmatched; 1589}; 1590return bySet? 1591markFunction(superMatcher): 1592superMatcher; 1593} 1594function compile(selector,match){ 1595var i, 1596setMatchers=[], 1597elementMatchers=[], 1598cached=compilerCache[selector+" "]; 1599if(!cached){ 1600if(!match){ 1601match=tokenize(selector); 1602} 1603i=match.length; 1604while(i--){ 1605cached=matcherFromTokens(match[i]); 1606if(cached[expando]){ 1607setMatchers.push(cached); 1608}else{ 1609elementMatchers.push(cached); 1610} 1611} 1612cached=compilerCache(selector, 1613matcherFromGroupMatchers(elementMatchers,setMatchers)); 1614cached.selector=selector; 1615} 1616return cached; 1617} 1618function select(selector,context,results,seed){ 1619var i,tokens,token,type,find, 1620compiled=typeof selector==="function"&&selector, 1621match=!seed&&tokenize((selector=compiled.selector||selector)); 1622results=results||[]; 1623if(match.length===1){ 1624tokens=match[0]=match[0].slice(0); 1625if(tokens.length>2&&(token=tokens[0]).type==="ID"&& 1626context.nodeType===9&&documentIsHTML&&Expr.relative[tokens[1].type]){ 1627context=(Expr.find.ID( 1628token.matches[0].replace(runescape,funescape), 1629context 1630)||[])[0]; 1631if(!context){ 1632return results; 1633}else if(compiled){ 1634context=context.parentNode; 1635} 1636selector=selector.slice(tokens.shift().value.length); 1637} 1638i=matchExpr.needsContext.test(selector)?0:tokens.length; 1639while(i--){ 1640token=tokens[i]; 1641if(Expr.relative[(type=token.type)]){ 1642break; 1643} 1644if((find=Expr.find[type])){ 1645if((seed=find( 1646token.matches[0].replace(runescape,funescape), 1647rsibling.test(tokens[0].type)&& 1648testContext(context.parentNode)||context 1649))){ 1650tokens.splice(i,1); 1651selector=seed.length&&toSelector(tokens); 1652if(!selector){ 1653push.apply(results,seed); 1654return results; 1655} 1656break; 1657} 1658} 1659} 1660} 1661(compiled||compile(selector,match))( 1662seed, 1663context, 1664!documentIsHTML, 1665results, 1666!context||rsibling.test(selector)&&testContext(context.parentNode)||context 1667); 1668return results; 1669} 1670support.sortStable=expando.split("").sort(sortOrder).join("")===expando; 1671setDocument(); 1672support.sortDetached=assert(function(el){ 1673return el.compareDocumentPosition(document.createElement("fieldset"))&1; 1674}); 1675jQuery.find=find; 1676jQuery.expr[":"]=jQuery.expr.pseudos; 1677jQuery.unique=jQuery.uniqueSort; 1678find.compile=compile; 1679find.select=select; 1680find.setDocument=setDocument; 1681find.tokenize=tokenize; 1682find.escape=jQuery.escapeSelector; 1683find.getText=jQuery.text; 1684find.isXML=jQuery.isXMLDoc; 1685find.selectors=jQuery.expr; 1686find.support=jQuery.support; 1687find.uniqueSort=jQuery.uniqueSort; 1688})(); 1689var dir=function(elem,dir,until){ 1690var matched=[], 1691truncate=until!==undefined; 1692while((elem=elem[dir])&&elem.nodeType!==9){ 1693if(elem.nodeType===1){ 1694if(truncate&&jQuery(elem).is(until)){ 1695break; 1696} 1697matched.push(elem); 1698} 1699} 1700return matched; 1701}; 1702var siblings=function(n,elem){ 1703var matched=[]; 1704for(;n;n=n.nextSibling){ 1705if(n.nodeType===1&&n!==elem){ 1706matched.push(n); 1707} 1708} 1709return matched; 1710}; 1711var rneedsContext=jQuery.expr.match.needsContext; 1712var rsingleTag=(/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i); 1713function winnow(elements,qualifier,not){ 1714if(isFunction(qualifier)){ 1715return jQuery.grep(elements,function(elem,i){ 1716return!!qualifier.call(elem,i,elem)!==not; 1717}); 1718} 1719if(qualifier.nodeType){ 1720return jQuery.grep(elements,function(elem){ 1721return(elem===qualifier)!==not; 1722}); 1723} 1724if(typeof qualifier!=="string"){ 1725return jQuery.grep(elements,function(elem){ 1726return(indexOf.call(qualifier,elem)>-1)!==not; 1727}); 1728} 1729return jQuery.filter(qualifier,elements,not); 1730} 1731jQuery.filter=function(expr,elems,not){ 1732var elem=elems[0]; 1733if(not){ 1734expr=":not("+expr+")"; 1735} 1736if(elems.length===1&&elem.nodeType===1){ 1737return jQuery.find.matchesSelector(elem,expr)?[elem]:[]; 1738} 1739return jQuery.find.matches(expr,jQuery.grep(elems,function(elem){ 1740return elem.nodeType===1; 1741})); 1742}; 1743jQuery.fn.extend({ 1744find:function(selector){ 1745var i,ret, 1746len=this.length, 1747self=this; 1748if(typeof selector!=="string"){ 1749return this.pushStack(jQuery(selector).filter(function(){ 1750for(i=0;i<len;i++){ 1751if(jQuery.contains(self[i],this)){ 1752return true; 1753} 1754} 1755})); 1756} 1757ret=this.pushStack([]); 1758for(i=0;i<len;i++){ 1759jQuery.find(selector,self[i],ret); 1760} 1761return len>1?jQuery.uniqueSort(ret):ret; 1762}, 1763filter:function(selector){ 1764return this.pushStack(winnow(this,selector||[],false)); 1765}, 1766not:function(selector){ 1767return this.pushStack(winnow(this,selector||[],true)); 1768}, 1769is:function(selector){ 1770return!!winnow( 1771this, 1772typeof selector==="string"&&rneedsContext.test(selector)? 1773jQuery(selector): 1774selector||[], 1775false 1776).length; 1777} 1778}); 1779var rootjQuery, 1780rquickExpr=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/, 1781init=jQuery.fn.init=function(selector,context,root){ 1782var match,elem; 1783if(!selector){ 1784return this; 1785} 1786root=root||rootjQuery; 1787if(typeof selector==="string"){ 1788if(selector[0]==="<"&& 1789selector[selector.length-1]===">"&& 1790selector.length>=3){ 1791match=[null,selector,null]; 1792}else{ 1793match=rquickExpr.exec(selector); 1794} 1795if(match&&(match[1]||!context)){ 1796if(match[1]){ 1797context=context instanceof jQuery?context[0]:context; 1798jQuery.merge(this,jQuery.parseHTML( 1799match[1], 1800context&&context.nodeType?context.ownerDocument||context:document, 1801true 1802)); 1803if(rsingleTag.test(match[1])&&jQuery.isPlainObject(context)){ 1804for(match in context){ 1805if(isFunction(this[match])){ 1806this[match](context[match]); 1807}else{ 1808this.attr(match,context[match]); 1809} 1810} 1811} 1812return this; 1813}else{ 1814elem=document.getElementById(match[2]); 1815if(elem){ 1816this[0]=elem; 1817this.length=1; 1818} 1819return this; 1820} 1821}else if(!context||context.jquery){ 1822return(context||root).find(selector); 1823}else{ 1824return this.constructor(context).find(selector); 1825} 1826}else if(selector.nodeType){ 1827this[0]=selector; 1828this.length=1; 1829return this; 1830}else if(isFunction(selector)){ 1831return root.ready!==undefined? 1832root.ready(selector): 1833selector(jQuery); 1834} 1835return jQuery.makeArray(selector,this); 1836}; 1837init.prototype=jQuery.fn; 1838rootjQuery=jQuery(document); 1839var rparentsprev=/^(?:parents|prev(?:Until|All))/, 1840guaranteedUnique={ 1841children:true, 1842contents:true, 1843next:true, 1844prev:true 1845}; 1846jQuery.fn.extend({ 1847has:function(target){ 1848var targets=jQuery(target,this), 1849l=targets.length; 1850return this.filter(function(){ 1851var i=0; 1852for(;i<l;i++){ 1853if(jQuery.contains(this,targets[i])){ 1854return true; 1855} 1856} 1857}); 1858}, 1859closest:function(selectors,context){ 1860var cur, 1861i=0, 1862l=this.length, 1863matched=[], 1864targets=typeof selectors!=="string"&&jQuery(selectors); 1865if(!rneedsContext.test(selectors)){ 1866for(;i<l;i++){ 1867for(cur=this[i];cur&&cur!==context;cur=cur.parentNode){ 1868if(cur.nodeType<11&&(targets? 1869targets.index(cur)>-1: 1870cur.nodeType===1&& 1871jQuery.find.matchesSelector(cur,selectors))){ 1872matched.push(cur); 1873break; 1874} 1875} 1876} 1877} 1878return this.pushStack(matched.length>1?jQuery.uniqueSort(matched):matched); 1879}, 1880index:function(elem){ 1881if(!elem){ 1882return(this[0]&&this[0].parentNode)?this.first().prevAll().length:-1; 1883} 1884if(typeof elem==="string"){ 1885return indexOf.call(jQuery(elem),this[0]); 1886} 1887return indexOf.call(this, 1888elem.jquery?elem[0]:elem 1889); 1890}, 1891add:function(selector,context){ 1892return this.pushStack( 1893jQuery.uniqueSort( 1894jQuery.merge(this.get(),jQuery(selector,context)) 1895) 1896); 1897}, 1898addBack:function(selector){ 1899return this.add(selector==null? 1900this.prevObject:this.prevObject.filter(selector) 1901); 1902} 1903}); 1904function sibling(cur,dir){ 1905while((cur=cur[dir])&&cur.nodeType!==1){} 1906return cur; 1907} 1908jQuery.each({ 1909parent:function(elem){ 1910var parent=elem.parentNode; 1911return parent&&parent.nodeType!==11?parent:null; 1912}, 1913parents:function(elem){ 1914return dir(elem,"parentNode"); 1915}, 1916parentsUntil:function(elem,_i,until){ 1917return dir(elem,"parentNode",until); 1918}, 1919next:function(elem){ 1920return sibling(elem,"nextSibling"); 1921}, 1922prev:function(elem){ 1923return sibling(elem,"previousSibling"); 1924}, 1925nextAll:function(elem){ 1926return dir(elem,"nextSibling"); 1927}, 1928prevAll:function(elem){ 1929return dir(elem,"previousSibling"); 1930}, 1931nextUntil:function(elem,_i,until){ 1932return dir(elem,"nextSibling",until); 1933}, 1934prevUntil:function(elem,_i,until){ 1935return dir(elem,"previousSibling",until); 1936}, 1937siblings:function(elem){ 1938return siblings((elem.parentNode||{}).firstChild,elem); 1939}, 1940children:function(elem){ 1941return siblings(elem.firstChild); 1942}, 1943contents:function(elem){ 1944if(elem.contentDocument!=null&& 1945getProto(elem.contentDocument)){ 1946return elem.contentDocument; 1947} 1948if(nodeName(elem,"template")){ 1949elem=elem.content||elem; 1950} 1951return jQuery.merge([],elem.childNodes); 1952} 1953},function(name,fn){ 1954jQuery.fn[name]=function(until,selector){ 1955var matched=jQuery.map(this,fn,until); 1956if(name.slice(-5)!=="Until"){ 1957selector=until; 1958} 1959if(selector&&typeof selector==="string"){ 1960matched=jQuery.filter(selector,matched); 1961} 1962if(this.length>1){ 1963if(!guaranteedUnique[name]){ 1964jQuery.uniqueSort(matched); 1965} 1966if(rparentsprev.test(name)){ 1967matched.reverse(); 1968} 1969} 1970return this.pushStack(matched); 1971}; 1972}); 1973var rnothtmlwhite=(/[^\x20\t\r\n\f]+/g); 1974function createOptions(options){ 1975var object={}; 1976jQuery.each(options.match(rnothtmlwhite)||[],function(_,flag){ 1977object[flag]=true; 1978}); 1979return object; 1980} 1981jQuery.Callbacks=function(options){ 1982options=typeof options==="string"? 1983createOptions(options): 1984jQuery.extend({},options); 1985var 1986firing, 1987memory, 1988fired, 1989locked, 1990list=[], 1991queue=[], 1992firingIndex=-1, 1993fire=function(){ 1994locked=locked||options.once; 1995fired=firing=true; 1996for(;queue.length;firingIndex=-1){ 1997memory=queue.shift(); 1998while(++firingIndex<list.length){ 1999if(list[firingIndex].apply(memory[0],memory[1])===false&& 2000options.stopOnFalse){ 2001firingIndex=list.length; 2002memory=false; 2003} 2004} 2005} 2006if(!options.memory){ 2007memory=false; 2008} 2009firing=false; 2010if(locked){ 2011if(memory){ 2012list=[]; 2013}else{ 2014list=""; 2015} 2016} 2017}, 2018self={ 2019add:function(){ 2020if(list){ 2021if(memory&&!firing){ 2022firingIndex=list.length-1; 2023queue.push(memory); 2024} 2025(function add(args){ 2026jQuery.each(args,function(_,arg){ 2027if(isFunction(arg)){ 2028if(!options.unique||!self.has(arg)){ 2029list.push(arg); 2030} 2031}else if(arg&&arg.length&&toType(arg)!=="string"){ 2032add(arg); 2033} 2034}); 2035})(arguments); 2036if(memory&&!firing){ 2037fire(); 2038} 2039} 2040return this; 2041}, 2042remove:function(){ 2043jQuery.each(arguments,function(_,arg){ 2044var index; 2045while((index=jQuery.inArray(arg,list,index))>-1){ 2046list.splice(index,1); 2047if(index<=firingIndex){ 2048firingIndex--; 2049} 2050} 2051}); 2052return this; 2053}, 2054has:function(fn){ 2055return fn? 2056jQuery.inArray(fn,list)>-1: 2057list.length>0; 2058}, 2059empty:function(){ 2060if(list){ 2061list=[]; 2062} 2063return this; 2064}, 2065disable:function(){ 2066locked=queue=[]; 2067list=memory=""; 2068return this; 2069}, 2070disabled:function(){ 2071return!list; 2072}, 2073lock:function(){ 2074locked=queue=[]; 2075if(!memory&&!firing){ 2076list=memory=""; 2077} 2078return this; 2079}, 2080locked:function(){ 2081return!!locked; 2082}, 2083fireWith:function(context,args){ 2084if(!locked){ 2085args=args||[]; 2086args=[context,args.slice?args.slice():args]; 2087queue.push(args); 2088if(!firing){ 2089fire(); 2090} 2091} 2092return this; 2093}, 2094fire:function(){ 2095self.fireWith(this,arguments); 2096return this; 2097}, 2098fired:function(){ 2099return!!fired; 2100} 2101}; 2102return self; 2103}; 2104function Identity(v){ 2105return v; 2106} 2107function Thrower(ex){ 2108throw ex; 2109} 2110function adoptValue(value,resolve,reject,noValue){ 2111var method; 2112try{ 2113if(value&&isFunction((method=value.promise))){ 2114method.call(value).done(resolve).fail(reject); 2115}else if(value&&isFunction((method=value.then))){ 2116method.call(value,resolve,reject); 2117}else{ 2118resolve.apply(undefined,[value].slice(noValue)); 2119} 2120}catch(value){ 2121reject.apply(undefined,[value]); 2122} 2123} 2124jQuery.extend({ 2125Deferred:function(func){ 2126var tuples=[ 2127["notify","progress",jQuery.Callbacks("memory"), 2128jQuery.Callbacks("memory"),2], 2129["resolve","done",jQuery.Callbacks("once memory"), 2130jQuery.Callbacks("once memory"),0,"resolved"], 2131["reject","fail",jQuery.Callbacks("once memory"), 2132jQuery.Callbacks("once memory"),1,"rejected"] 2133], 2134state="pending", 2135promise={ 2136state:function(){ 2137return state; 2138}, 2139always:function(){ 2140deferred.done(arguments).fail(arguments); 2141return this; 2142}, 2143"catch":function(fn){ 2144return promise.then(null,fn); 2145}, 2146pipe:function(){ 2147var fns=arguments; 2148return jQuery.Deferred(function(newDefer){ 2149jQuery.each(tuples,function(_i,tuple){ 2150var fn=isFunction(fns[tuple[4]])&&fns[tuple[4]]; 2151deferred[tuple[1]](function(){ 2152var returned=fn&&fn.apply(this,arguments); 2153if(returned&&isFunction(returned.promise)){ 2154returned.promise() 2155.progress(newDefer.notify) 2156.done(newDefer.resolve) 2157.fail(newDefer.reject); 2158}else{ 2159newDefer[tuple[0]+"With"]( 2160this, 2161fn?[returned]:arguments 2162); 2163} 2164}); 2165}); 2166fns=null; 2167}).promise(); 2168}, 2169then:function(onFulfilled,onRejected,onProgress){ 2170var maxDepth=0; 2171function resolve(depth,deferred,handler,special){ 2172return function(){ 2173var that=this, 2174args=arguments, 2175mightThrow=function(){ 2176var returned,then; 2177if(depth<maxDepth){ 2178return; 2179} 2180returned=handler.apply(that,args); 2181if(returned===deferred.promise()){ 2182throw new TypeError("Thenable self-resolution"); 2183} 2184then=returned&& 2185(typeof returned==="object"|| 2186typeof returned==="function")&& 2187returned.then; 2188if(isFunction(then)){ 2189if(special){ 2190then.call( 2191returned, 2192resolve(maxDepth,deferred,Identity,special), 2193resolve(maxDepth,deferred,Thrower,special) 2194); 2195}else{ 2196maxDepth++; 2197then.call( 2198returned, 2199resolve(maxDepth,deferred,Identity,special), 2200resolve(maxDepth,deferred,Thrower,special), 2201resolve(maxDepth,deferred,Identity, 2202deferred.notifyWith) 2203); 2204} 2205}else{ 2206if(handler!==Identity){ 2207that=undefined; 2208args=[returned]; 2209} 2210(special||deferred.resolveWith)(that,args); 2211} 2212}, 2213process=special? 2214mightThrow: 2215function(){ 2216try{ 2217mightThrow(); 2218}catch(e){ 2219if(jQuery.Deferred.exceptionHook){ 2220jQuery.Deferred.exceptionHook(e, 2221process.error); 2222} 2223if(depth+1>=maxDepth){ 2224if(handler!==Thrower){ 2225that=undefined; 2226args=[e]; 2227} 2228deferred.rejectWith(that,args); 2229} 2230} 2231}; 2232if(depth){ 2233process(); 2234}else{ 2235if(jQuery.Deferred.getErrorHook){ 2236process.error=jQuery.Deferred.getErrorHook(); 2237}else if(jQuery.Deferred.getStackHook){ 2238process.error=jQuery.Deferred.getStackHook(); 2239} 2240window.setTimeout(process); 2241} 2242}; 2243} 2244return jQuery.Deferred(function(newDefer){ 2245tuples[0][3].add( 2246resolve( 22470, 2248newDefer, 2249isFunction(onProgress)? 2250onProgress: 2251Identity, 2252newDefer.notifyWith 2253) 2254); 2255tuples[1][3].add( 2256resolve( 22570, 2258newDefer, 2259isFunction(onFulfilled)? 2260onFulfilled: 2261Identity 2262) 2263); 2264tuples[2][3].add( 2265resolve( 22660, 2267newDefer, 2268isFunction(onRejected)? 2269onRejected: 2270Thrower 2271) 2272); 2273}).promise(); 2274}, 2275promise:function(obj){ 2276return obj!=null?jQuery.extend(obj,promise):promise; 2277} 2278}, 2279deferred={}; 2280jQuery.each(tuples,function(i,tuple){ 2281var list=tuple[2], 2282stateString=tuple[5]; 2283promise[tuple[1]]=list.add; 2284if(stateString){ 2285list.add( 2286function(){ 2287state=stateString; 2288}, 2289tuples[3-i][2].disable, 2290tuples[3-i][3].disable, 2291tuples[0][2].lock, 2292tuples[0][3].lock 2293); 2294} 2295list.add(tuple[3].fire); 2296deferred[tuple[0]]=function(){ 2297deferred[tuple[0]+"With"](this===deferred?undefined:this,arguments); 2298return this; 2299}; 2300deferred[tuple[0]+"With"]=list.fireWith; 2301}); 2302promise.promise(deferred); 2303if(func){ 2304func.call(deferred,deferred); 2305} 2306return deferred; 2307}, 2308when:function(singleValue){ 2309var 2310remaining=arguments.length, 2311i=remaining, 2312resolveContexts=Array(i), 2313resolveValues=slice.call(arguments), 2314primary=jQuery.Deferred(), 2315updateFunc=function(i){ 2316return function(value){ 2317resolveContexts[i]=this; 2318resolveValues[i]=arguments.length>1?slice.call(arguments):value; 2319if(!(--remaining)){ 2320primary.resolveWith(resolveContexts,resolveValues); 2321} 2322}; 2323}; 2324if(remaining<=1){ 2325adoptValue(singleValue,primary.done(updateFunc(i)).resolve,primary.reject, 2326!remaining); 2327if(primary.state()==="pending"|| 2328isFunction(resolveValues[i]&&resolveValues[i].then)){ 2329return primary.then(); 2330} 2331} 2332while(i--){ 2333adoptValue(resolveValues[i],updateFunc(i),primary.reject); 2334} 2335return primary.promise(); 2336} 2337}); 2338var rerrorNames=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/; 2339jQuery.Deferred.exceptionHook=function(error,asyncError){ 2340if(window.console&&window.console.warn&&error&&rerrorNames.test(error.name)){ 2341window.console.warn("jQuery.Deferred exception: "+error.message, 2342error.stack,asyncError); 2343} 2344}; 2345jQuery.readyException=function(error){ 2346window.setTimeout(function(){ 2347throw error; 2348}); 2349}; 2350var readyList=jQuery.Deferred(); 2351jQuery.fn.ready=function(fn){ 2352readyList 2353.then(fn) 2354.catch(function(error){ 2355jQuery.readyException(error); 2356}); 2357return this; 2358}; 2359jQuery.extend({ 2360isReady:false, 2361readyWait:1, 2362ready:function(wait){ 2363if(wait===true?--jQuery.readyWait:jQuery.isReady){ 2364return; 2365} 2366jQuery.isReady=true; 2367if(wait!==true&&--jQuery.readyWait>0){ 2368return; 2369} 2370readyList.resolveWith(document,[jQuery]); 2371} 2372}); 2373jQuery.ready.then=readyList.then; 2374function completed(){ 2375document.removeEventListener("DOMContentLoaded",completed); 2376window.removeEventListener("load",completed); 2377jQuery.ready(); 2378} 2379if(document.readyState==="complete"|| 2380(document.readyState!=="loading"&&!document.documentElement.doScroll)){ 2381window.setTimeout(jQuery.ready); 2382}else{ 2383document.addEventListener("DOMContentLoaded",completed); 2384window.addEventListener("load",completed); 2385} 2386var access=function(elems,fn,key,value,chainable,emptyGet,raw){ 2387var i=0, 2388len=elems.length, 2389bulk=key==null; 2390if(toType(key)==="object"){ 2391chainable=true; 2392for(i in key){ 2393access(elems,fn,i,key[i],true,emptyGet,raw); 2394} 2395}else if(value!==undefined){ 2396chainable=true; 2397if(!isFunction(value)){ 2398raw=true; 2399} 2400if(bulk){ 2401if(raw){ 2402fn.call(elems,value); 2403fn=null; 2404}else{ 2405bulk=fn; 2406fn=function(elem,_key,value){ 2407return bulk.call(jQuery(elem),value); 2408}; 2409} 2410} 2411if(fn){ 2412for(;i<len;i++){ 2413fn( 2414elems[i],key,raw? 2415value: 2416value.call(elems[i],i,fn(elems[i],key)) 2417); 2418} 2419} 2420} 2421if(chainable){ 2422return elems; 2423} 2424if(bulk){ 2425return fn.call(elems); 2426} 2427return len?fn(elems[0],key):emptyGet; 2428}; 2429var rmsPrefix=/^-ms-/, 2430rdashAlpha=/-([a-z])/g; 2431function fcamelCase(_all,letter){ 2432return letter.toUpperCase(); 2433} 2434function camelCase(string){ 2435return string.replace(rmsPrefix,"ms-").replace(rdashAlpha,fcamelCase); 2436} 2437var acceptData=function(owner){ 2438return owner.nodeType===1||owner.nodeType===9||!(+owner.nodeType); 2439}; 2440function Data(){ 2441this.expando=jQuery.expando+Data.uid++; 2442} 2443Data.uid=1; 2444Data.prototype={ 2445cache:function(owner){ 2446var value=owner[this.expando]; 2447if(!value){ 2448value={}; 2449if(acceptData(owner)){ 2450if(owner.nodeType){ 2451owner[this.expando]=value; 2452}else{ 2453Object.defineProperty(owner,this.expando,{ 2454value:value, 2455configurable:true 2456}); 2457} 2458} 2459} 2460return value; 2461}, 2462set:function(owner,data,value){ 2463var prop, 2464cache=this.cache(owner); 2465if(typeof data==="string"){ 2466cache[camelCase(data)]=value; 2467}else{ 2468for(prop in data){ 2469cache[camelCase(prop)]=data[prop]; 2470} 2471} 2472return cache; 2473}, 2474get:function(owner,key){ 2475return key===undefined? 2476this.cache(owner): 2477owner[this.expando]&&owner[this.expando][camelCase(key)]; 2478}, 2479access:function(owner,key,value){ 2480if(key===undefined|| 2481((key&&typeof key==="string")&&value===undefined)){ 2482return this.get(owner,key); 2483} 2484this.set(owner,key,value); 2485return value!==undefined?value:key; 2486}, 2487remove:function(owner,key){ 2488var i, 2489cache=owner[this.expando]; 2490if(cache===undefined){ 2491return; 2492} 2493if(key!==undefined){ 2494if(Array.isArray(key)){ 2495key=key.map(camelCase); 2496}else{ 2497key=camelCase(key); 2498key=key in cache? 2499[key]: 2500(key.match(rnothtmlwhite)||[]); 2501} 2502i=key.length; 2503while(i--){ 2504delete cache[key[i]]; 2505} 2506} 2507if(key===undefined||jQuery.isEmptyObject(cache)){ 2508if(owner.nodeType){ 2509owner[this.expando]=undefined; 2510}else{ 2511delete owner[this.expando]; 2512} 2513} 2514}, 2515hasData:function(owner){ 2516var cache=owner[this.expando]; 2517return cache!==undefined&&!jQuery.isEmptyObject(cache); 2518} 2519}; 2520var dataPriv=new Data(); 2521var dataUser=new Data(); 2522var rbrace=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/, 2523rmultiDash=/[A-Z]/g; 2524function getData(data){ 2525if(data==="true"){ 2526return true; 2527} 2528if(data==="false"){ 2529return false; 2530} 2531if(data==="null"){ 2532return null; 2533} 2534if(data===+data+""){ 2535return+data; 2536} 2537if(rbrace.test(data)){ 2538return JSON.parse(data); 2539} 2540return data; 2541} 2542function dataAttr(elem,key,data){ 2543var name; 2544if(data===undefined&&elem.nodeType===1){ 2545name="data-"+key.replace(rmultiDash,"-$&").toLowerCase(); 2546data=elem.getAttribute(name); 2547if(typeof data==="string"){ 2548try{ 2549data=getData(data); 2550}catch(e){} 2551dataUser.set(elem,key,data); 2552}else{ 2553data=undefined; 2554} 2555} 2556return data; 2557} 2558jQuery.extend({ 2559hasData:function(elem){ 2560return dataUser.hasData(elem)||dataPriv.hasData(elem); 2561}, 2562data:function(elem,name,data){ 2563return dataUser.access(elem,name,data); 2564}, 2565removeData:function(elem,name){ 2566dataUser.remove(elem,name); 2567}, 2568_data:function(elem,name,data){ 2569return dataPriv.access(elem,name,data); 2570}, 2571_removeData:function(elem,name){ 2572dataPriv.remove(elem,name); 2573} 2574}); 2575jQuery.fn.extend({ 2576data:function(key,value){ 2577var i,name,data, 2578elem=this[0], 2579attrs=elem&&elem.attributes; 2580if(key===undefined){ 2581if(this.length){ 2582data=dataUser.get(elem); 2583if(elem.nodeType===1&&!dataPriv.get(elem,"hasDataAttrs")){ 2584i=attrs.length; 2585while(i--){ 2586if(attrs[i]){ 2587name=attrs[i].name; 2588if(name.indexOf("data-")===0){ 2589name=camelCase(name.slice(5)); 2590dataAttr(elem,name,data[name]); 2591} 2592} 2593} 2594dataPriv.set(elem,"hasDataAttrs",true); 2595} 2596} 2597return data; 2598} 2599if(typeof key==="object"){ 2600return this.each(function(){ 2601dataUser.set(this,key); 2602}); 2603} 2604return access(this,function(value){ 2605var data; 2606if(elem&&value===undefined){ 2607data=dataUser.get(elem,key); 2608if(data!==undefined){ 2609return data; 2610} 2611data=dataAttr(elem,key); 2612if(data!==undefined){ 2613return data; 2614} 2615return; 2616} 2617this.each(function(){ 2618dataUser.set(this,key,value); 2619}); 2620},null,value,arguments.length>1,null,true); 2621}, 2622removeData:function(key){ 2623return this.each(function(){ 2624dataUser.remove(this,key); 2625}); 2626} 2627}); 2628jQuery.extend({ 2629queue:function(elem,type,data){ 2630var queue; 2631if(elem){ 2632type=(type||"fx")+"queue"; 2633queue=dataPriv.get(elem,type); 2634if(data){ 2635if(!queue||Array.isArray(data)){ 2636queue=dataPriv.access(elem,type,jQuery.makeArray(data)); 2637}else{ 2638queue.push(data); 2639} 2640} 2641return queue||[]; 2642} 2643}, 2644dequeue:function(elem,type){ 2645type=type||"fx"; 2646var queue=jQuery.queue(elem,type), 2647startLength=queue.length, 2648fn=queue.shift(), 2649hooks=jQuery._queueHooks(elem,type), 2650next=function(){ 2651jQuery.dequeue(elem,type); 2652}; 2653if(fn==="inprogress"){ 2654fn=queue.shift(); 2655startLength--; 2656} 2657if(fn){ 2658if(type==="fx"){ 2659queue.unshift("inprogress"); 2660} 2661delete hooks.stop; 2662fn.call(elem,next,hooks); 2663} 2664if(!startLength&&hooks){ 2665hooks.empty.fire(); 2666} 2667}, 2668_queueHooks:function(elem,type){ 2669var key=type+"queueHooks"; 2670return dataPriv.get(elem,key)||dataPriv.access(elem,key,{ 2671empty:jQuery.Callbacks("once memory").add(function(){ 2672dataPriv.remove(elem,[type+"queue",key]); 2673}) 2674}); 2675} 2676}); 2677jQuery.fn.extend({ 2678queue:function(type,data){ 2679var setter=2; 2680if(typeof type!=="string"){ 2681data=type; 2682type="fx"; 2683setter--; 2684} 2685if(arguments.length<setter){ 2686return jQuery.queue(this[0],type); 2687} 2688return data===undefined? 2689this: 2690this.each(function(){ 2691var queue=jQuery.queue(this,type,data); 2692jQuery._queueHooks(this,type); 2693if(type==="fx"&&queue[0]!=="inprogress"){ 2694jQuery.dequeue(this,type); 2695} 2696}); 2697}, 2698dequeue:function(type){ 2699return this.each(function(){ 2700jQuery.dequeue(this,type); 2701}); 2702}, 2703clearQueue:function(type){ 2704return this.queue(type||"fx",[]); 2705}, 2706promise:function(type,obj){ 2707var tmp, 2708count=1, 2709defer=jQuery.Deferred(), 2710elements=this, 2711i=this.length, 2712resolve=function(){ 2713if(!(--count)){ 2714defer.resolveWith(elements,[elements]); 2715} 2716}; 2717if(typeof type!=="string"){ 2718obj=type; 2719type=undefined; 2720} 2721type=type||"fx"; 2722while(i--){ 2723tmp=dataPriv.get(elements[i],type+"queueHooks"); 2724if(tmp&&tmp.empty){ 2725count++; 2726tmp.empty.add(resolve); 2727} 2728} 2729resolve(); 2730return defer.promise(obj); 2731} 2732}); 2733var pnum=(/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/).source; 2734var rcssNum=new RegExp("^(?:([+-])=|)("+pnum+")([a-z%]*)$","i"); 2735var cssExpand=["Top","Right","Bottom","Left"]; 2736var documentElement=document.documentElement; 2737var isAttached=function(elem){ 2738return jQuery.contains(elem.ownerDocument,elem); 2739}, 2740composed={composed:true}; 2741if(documentElement.getRootNode){ 2742isAttached=function(elem){ 2743return jQuery.contains(elem.ownerDocument,elem)|| 2744elem.getRootNode(composed)===elem.ownerDocument; 2745}; 2746} 2747var isHiddenWithinTree=function(elem,el){ 2748elem=el||elem; 2749return elem.style.display==="none"|| 2750elem.style.display===""&& 2751isAttached(elem)&& 2752jQuery.css(elem,"display")==="none"; 2753}; 2754function adjustCSS(elem,prop,valueParts,tween){ 2755var adjusted,scale, 2756maxIterations=20, 2757currentValue=tween? 2758function(){ 2759return tween.cur(); 2760}: 2761function(){ 2762return jQuery.css(elem,prop,""); 2763}, 2764initial=currentValue(), 2765unit=valueParts&&valueParts[3]||(jQuery.cssNumber[prop]?"":"px"), 2766initialInUnit=elem.nodeType&& 2767(jQuery.cssNumber[prop]||unit!=="px"&&+initial)&& 2768rcssNum.exec(jQuery.css(elem,prop)); 2769if(initialInUnit&&initialInUnit[3]!==unit){ 2770initial=initial/2; 2771unit=unit||initialInUnit[3]; 2772initialInUnit=+initial||1; 2773while(maxIterations--){ 2774jQuery.style(elem,prop,initialInUnit+unit); 2775if((1-scale)*(1-(scale=currentValue()/initial||0.5))<=0){ 2776maxIterations=0; 2777} 2778initialInUnit=initialInUnit/scale; 2779} 2780initialInUnit=initialInUnit*2; 2781jQuery.style(elem,prop,initialInUnit+unit); 2782valueParts=valueParts||[]; 2783} 2784if(valueParts){ 2785initialInUnit=+initialInUnit||+initial||0; 2786adjusted=valueParts[1]? 2787initialInUnit+(valueParts[1]+1)*valueParts[2]: 2788+valueParts[2]; 2789if(tween){ 2790tween.unit=unit; 2791tween.start=initialInUnit; 2792tween.end=adjusted; 2793} 2794} 2795return adjusted; 2796} 2797var defaultDisplayMap={}; 2798function getDefaultDisplay(elem){ 2799var temp, 2800doc=elem.ownerDocument, 2801nodeName=elem.nodeName, 2802display=defaultDisplayMap[nodeName]; 2803if(display){ 2804return display; 2805} 2806temp=doc.body.appendChild(doc.createElement(nodeName)); 2807display=jQuery.css(temp,"display"); 2808temp.parentNode.removeChild(temp); 2809if(display==="none"){ 2810display="block"; 2811} 2812defaultDisplayMap[nodeName]=display; 2813return display; 2814} 2815function showHide(elements,show){ 2816var display,elem, 2817values=[], 2818index=0, 2819length=elements.length; 2820for(;index<length;index++){ 2821elem=elements[index]; 2822if(!elem.style){ 2823continue; 2824} 2825display=elem.style.display; 2826if(show){ 2827if(display==="none"){ 2828values[index]=dataPriv.get(elem,"display")||null; 2829if(!values[index]){ 2830elem.style.display=""; 2831} 2832} 2833if(elem.style.display===""&&isHiddenWithinTree(elem)){ 2834values[index]=getDefaultDisplay(elem); 2835} 2836}else{ 2837if(display!=="none"){ 2838values[index]="none"; 2839dataPriv.set(elem,"display",display); 2840} 2841} 2842} 2843for(index=0;index<length;index++){ 2844if(values[index]!=null){ 2845elements[index].style.display=values[index]; 2846} 2847} 2848return elements; 2849} 2850jQuery.fn.extend({ 2851show:function(){ 2852return showHide(this,true); 2853}, 2854hide:function(){ 2855return showHide(this); 2856}, 2857toggle:function(state){ 2858if(typeof state==="boolean"){ 2859return state?this.show():this.hide(); 2860} 2861return this.each(function(){ 2862if(isHiddenWithinTree(this)){ 2863jQuery(this).show(); 2864}else{ 2865jQuery(this).hide(); 2866} 2867}); 2868} 2869}); 2870var rcheckableType=(/^(?:checkbox|radio)$/i); 2871var rtagName=(/<([a-z][^\/\0>\x20\t\r\n\f]*)/i); 2872var rscriptType=(/^$|^module$|\/(?:java|ecma)script/i); 2873(function(){ 2874var fragment=document.createDocumentFragment(), 2875div=fragment.appendChild(document.createElement("div")), 2876input=document.createElement("input"); 2877input.setAttribute("type","radio"); 2878input.setAttribute("checked","checked"); 2879input.setAttribute("name","t"); 2880div.appendChild(input); 2881support.checkClone=div.cloneNode(true).cloneNode(true).lastChild.checked; 2882div.innerHTML="<textarea>x</textarea>"; 2883support.noCloneChecked=!!div.cloneNode(true).lastChild.defaultValue; 2884div.innerHTML="<option></option>"; 2885support.option=!!div.lastChild; 2886})(); 2887var wrapMap={ 2888thead:[1,"<table>","</table>"], 2889col:[2,"<table><colgroup>","</colgroup></table>"], 2890tr:[2,"<table><tbody>","</tbody></table>"], 2891td:[3,"<table><tbody><tr>","</tr></tbody></table>"], 2892_default:[0,"",""] 2893}; 2894wrapMap.tbody=wrapMap.tfoot=wrapMap.colgroup=wrapMap.caption=wrapMap.thead; 2895wrapMap.th=wrapMap.td; 2896if(!support.option){ 2897wrapMap.optgroup=wrapMap.option=[1,"<select multiple='multiple'>","</select>"]; 2898} 2899function getAll(context,tag){ 2900var ret; 2901if(typeof context.getElementsByTagName!=="undefined"){ 2902ret=context.getElementsByTagName(tag||"*"); 2903}else if(typeof context.querySelectorAll!=="undefined"){ 2904ret=context.querySelectorAll(tag||"*"); 2905}else{ 2906ret=[]; 2907} 2908if(tag===undefined||tag&&nodeName(context,tag)){ 2909return jQuery.merge([context],ret); 2910} 2911return ret; 2912} 2913function setGlobalEval(elems,refElements){ 2914var i=0, 2915l=elems.length; 2916for(;i<l;i++){ 2917dataPriv.set( 2918elems[i], 2919"globalEval", 2920!refElements||dataPriv.get(refElements[i],"globalEval") 2921); 2922} 2923} 2924var rhtml=/<|&#?\w+;/; 2925function buildFragment(elems,context,scripts,selection,ignored){ 2926var elem,tmp,tag,wrap,attached,j, 2927fragment=context.createDocumentFragment(), 2928nodes=[], 2929i=0, 2930l=elems.length; 2931for(;i<l;i++){ 2932elem=elems[i]; 2933if(elem||elem===0){ 2934if(toType(elem)==="object"){ 2935jQuery.merge(nodes,elem.nodeType?[elem]:elem); 2936}else if(!rhtml.test(elem)){ 2937nodes.push(context.createTextNode(elem)); 2938}else{ 2939tmp=tmp||fragment.appendChild(context.createElement("div")); 2940tag=(rtagName.exec(elem)||["",""])[1].toLowerCase(); 2941wrap=wrapMap[tag]||wrapMap._default; 2942tmp.innerHTML=wrap[1]+jQuery.htmlPrefilter(elem)+wrap[2]; 2943j=wrap[0]; 2944while(j--){ 2945tmp=tmp.lastChild; 2946} 2947jQuery.merge(nodes,tmp.childNodes); 2948tmp=fragment.firstChild; 2949tmp.textContent=""; 2950} 2951} 2952} 2953fragment.textContent=""; 2954i=0; 2955while((elem=nodes[i++])){ 2956if(selection&&jQuery.inArray(elem,selection)>-1){ 2957if(ignored){ 2958ignored.push(elem); 2959} 2960continue; 2961} 2962attached=isAttached(elem); 2963tmp=getAll(fragment.appendChild(elem),"script"); 2964if(attached){ 2965setGlobalEval(tmp); 2966} 2967if(scripts){ 2968j=0; 2969while((elem=tmp[j++])){ 2970if(rscriptType.test(elem.type||"")){ 2971scripts.push(elem); 2972} 2973} 2974} 2975} 2976return fragment; 2977} 2978var rtypenamespace=/^([^.]*)(?:\.(.+)|)/; 2979function returnTrue(){ 2980return true; 2981} 2982function returnFalse(){ 2983return false; 2984} 2985function on(elem,types,selector,data,fn,one){ 2986var origFn,type; 2987if(typeof types==="object"){ 2988if(typeof selector!=="string"){ 2989data=data||selector; 2990selector=undefined; 2991} 2992for(type in types){ 2993on(elem,type,selector,data,types[type],one); 2994} 2995return elem; 2996} 2997if(data==null&&fn==null){ 2998fn=selector; 2999data=selector=undefined; 3000}else if(fn==null){ 3001if(typeof selector==="string"){ 3002fn=data; 3003data=undefined; 3004}else{ 3005fn=data; 3006data=selector; 3007selector=undefined; 3008} 3009} 3010if(fn===false){ 3011fn=returnFalse; 3012}else if(!fn){ 3013return elem; 3014} 3015if(one===1){ 3016origFn=fn; 3017fn=function(event){ 3018jQuery().off(event); 3019return origFn.apply(this,arguments); 3020}; 3021fn.guid=origFn.guid||(origFn.guid=jQuery.guid++); 3022} 3023return elem.each(function(){ 3024jQuery.event.add(this,types,fn,data,selector); 3025}); 3026} 3027jQuery.event={ 3028global:{}, 3029add:function(elem,types,handler,data,selector){ 3030var handleObjIn,eventHandle,tmp, 3031events,t,handleObj, 3032special,handlers,type,namespaces,origType, 3033elemData=dataPriv.get(elem); 3034if(!acceptData(elem)){ 3035return; 3036} 3037if(handler.handler){ 3038handleObjIn=handler; 3039handler=handleObjIn.handler; 3040selector=handleObjIn.selector; 3041} 3042if(selector){ 3043jQuery.find.matchesSelector(documentElement,selector); 3044} 3045if(!handler.guid){ 3046handler.guid=jQuery.guid++; 3047} 3048if(!(events=elemData.events)){ 3049events=elemData.events=Object.create(null); 3050} 3051if(!(eventHandle=elemData.handle)){ 3052eventHandle=elemData.handle=function(e){ 3053return typeof jQuery!=="undefined"&&jQuery.event.triggered!==e.type? 3054jQuery.event.dispatch.apply(elem,arguments):undefined; 3055}; 3056} 3057types=(types||"").match(rnothtmlwhite)||[""]; 3058t=types.length; 3059while(t--){ 3060tmp=rtypenamespace.exec(types[t])||[]; 3061type=origType=tmp[1]; 3062namespaces=(tmp[2]||"").split(".").sort(); 3063if(!type){ 3064continue; 3065} 3066special=jQuery.event.special[type]||{}; 3067type=(selector?special.delegateType:special.bindType)||type; 3068special=jQuery.event.special[type]||{}; 3069handleObj=jQuery.extend({ 3070type:type, 3071origType:origType, 3072data:data, 3073handler:handler, 3074guid:handler.guid, 3075selector:selector, 3076needsContext:selector&&jQuery.expr.match.needsContext.test(selector), 3077namespace:namespaces.join(".") 3078},handleObjIn); 3079if(!(handlers=events[type])){ 3080handlers=events[type]=[]; 3081handlers.delegateCount=0; 3082if(!special.setup|| 3083special.setup.call(elem,data,namespaces,eventHandle)===false){ 3084if(elem.addEventListener){ 3085elem.addEventListener(type,eventHandle); 3086} 3087} 3088} 3089if(special.add){ 3090special.add.call(elem,handleObj); 3091if(!handleObj.handler.guid){ 3092handleObj.handler.guid=handler.guid; 3093} 3094} 3095if(selector){ 3096handlers.splice(handlers.delegateCount++,0,handleObj); 3097}else{ 3098handlers.push(handleObj); 3099} 3100jQuery.event.global[type]=true; 3101} 3102}, 3103remove:function(elem,types,handler,selector,mappedTypes){ 3104var j,origCount,tmp, 3105events,t,handleObj, 3106special,handlers,type,namespaces,origType, 3107elemData=dataPriv.hasData(elem)&&dataPriv.get(elem); 3108if(!elemData||!(events=elemData.events)){ 3109return; 3110} 3111types=(types||"").match(rnothtmlwhite)||[""]; 3112t=types.length; 3113while(t--){ 3114tmp=rtypenamespace.exec(types[t])||[]; 3115type=origType=tmp[1]; 3116namespaces=(tmp[2]||"").split(".").sort(); 3117if(!type){ 3118for(type in events){ 3119jQuery.event.remove(elem,type+types[t],handler,selector,true); 3120} 3121continue; 3122} 3123special=jQuery.event.special[type]||{}; 3124type=(selector?special.delegateType:special.bindType)||type; 3125handlers=events[type]||[]; 3126tmp=tmp[2]&& 3127new RegExp("(^|\\.)"+namespaces.join("\\.(?:.*\\.|)")+"(\\.|$)"); 3128origCount=j=handlers.length; 3129while(j--){ 3130handleObj=handlers[j]; 3131if((mappedTypes||origType===handleObj.origType)&& 3132(!handler||handler.guid===handleObj.guid)&& 3133(!tmp||tmp.test(handleObj.namespace))&& 3134(!selector||selector===handleObj.selector|| 3135selector==="**"&&handleObj.selector)){ 3136handlers.splice(j,1); 3137if(handleObj.selector){ 3138handlers.delegateCount--; 3139} 3140if(special.remove){ 3141special.remove.call(elem,handleObj); 3142} 3143} 3144} 3145if(origCount&&!handlers.length){ 3146if(!special.teardown|| 3147special.teardown.call(elem,namespaces,elemData.handle)===false){ 3148jQuery.removeEvent(elem,type,elemData.handle); 3149} 3150delete events[type]; 3151} 3152} 3153if(jQuery.isEmptyObject(events)){ 3154dataPriv.remove(elem,"handle events"); 3155} 3156}, 3157dispatch:function(nativeEvent){ 3158var i,j,ret,matched,handleObj,handlerQueue, 3159args=new Array(arguments.length), 3160event=jQuery.event.fix(nativeEvent), 3161handlers=( 3162dataPriv.get(this,"events")||Object.create(null) 3163)[event.type]||[], 3164special=jQuery.event.special[event.type]||{}; 3165args[0]=event; 3166for(i=1;i<arguments.length;i++){ 3167args[i]=arguments[i]; 3168} 3169event.delegateTarget=this; 3170if(special.preDispatch&&special.preDispatch.call(this,event)===false){ 3171return; 3172} 3173handlerQueue=jQuery.event.handlers.call(this,event,handlers); 3174i=0; 3175while((matched=handlerQueue[i++])&&!event.isPropagationStopped()){ 3176event.currentTarget=matched.elem; 3177j=0; 3178while((handleObj=matched.handlers[j++])&& 3179!event.isImmediatePropagationStopped()){ 3180if(!event.rnamespace||handleObj.namespace===false|| 3181event.rnamespace.test(handleObj.namespace)){ 3182event.handleObj=handleObj; 3183event.data=handleObj.data; 3184ret=((jQuery.event.special[handleObj.origType]||{}).handle|| 3185handleObj.handler).apply(matched.elem,args); 3186if(ret!==undefined){ 3187if((event.result=ret)===false){ 3188event.preventDefault(); 3189event.stopPropagation(); 3190} 3191} 3192} 3193} 3194} 3195if(special.postDispatch){ 3196special.postDispatch.call(this,event); 3197} 3198return event.result; 3199}, 3200handlers:function(event,handlers){ 3201var i,handleObj,sel,matchedHandlers,matchedSelectors, 3202handlerQueue=[], 3203delegateCount=handlers.delegateCount, 3204cur=event.target; 3205if(delegateCount&& 3206cur.nodeType&& 3207!(event.type==="click"&&event.button>=1)){ 3208for(;cur!==this;cur=cur.parentNode||this){ 3209if(cur.nodeType===1&&!(event.type==="click"&&cur.disabled===true)){ 3210matchedHandlers=[]; 3211matchedSelectors={}; 3212for(i=0;i<delegateCount;i++){ 3213handleObj=handlers[i]; 3214sel=handleObj.selector+" "; 3215if(matchedSelectors[sel]===undefined){ 3216matchedSelectors[sel]=handleObj.needsContext? 3217jQuery(sel,this).index(cur)>-1: 3218jQuery.find(sel,this,null,[cur]).length; 3219} 3220if(matchedSelectors[sel]){ 3221matchedHandlers.push(handleObj); 3222} 3223} 3224if(matchedHandlers.length){ 3225handlerQueue.push({elem:cur,handlers:matchedHandlers}); 3226} 3227} 3228} 3229} 3230cur=this; 3231if(delegateCount<handlers.length){ 3232handlerQueue.push({elem:cur,handlers:handlers.slice(delegateCount)}); 3233} 3234return handlerQueue; 3235}, 3236addProp:function(name,hook){ 3237Object.defineProperty(jQuery.Event.prototype,name,{ 3238enumerable:true, 3239configurable:true, 3240get:isFunction(hook)? 3241function(){ 3242if(this.originalEvent){ 3243return hook(this.originalEvent); 3244} 3245}: 3246function(){ 3247if(this.originalEvent){ 3248return this.originalEvent[name]; 3249} 3250}, 3251set:function(value){ 3252Object.defineProperty(this,name,{ 3253enumerable:true, 3254configurable:true, 3255writable:true, 3256value:value 3257}); 3258} 3259}); 3260}, 3261fix:function(originalEvent){ 3262return originalEvent[jQuery.expando]? 3263originalEvent: 3264new jQuery.Event(originalEvent); 3265}, 3266special:{ 3267load:{ 3268noBubble:true 3269}, 3270click:{ 3271setup:function(data){ 3272var el=this||data; 3273if(rcheckableType.test(el.type)&& 3274el.click&&nodeName(el,"input")){ 3275leverageNative(el,"click",true); 3276} 3277return false; 3278}, 3279trigger:function(data){ 3280var el=this||data; 3281if(rcheckableType.test(el.type)&& 3282el.click&&nodeName(el,"input")){ 3283leverageNative(el,"click"); 3284} 3285return true; 3286}, 3287_default:function(event){ 3288var target=event.target; 3289return rcheckableType.test(target.type)&& 3290target.click&&nodeName(target,"input")&& 3291dataPriv.get(target,"click")|| 3292nodeName(target,"a"); 3293} 3294}, 3295beforeunload:{ 3296postDispatch:function(event){ 3297if(event.result!==undefined&&event.originalEvent){ 3298event.originalEvent.returnValue=event.result; 3299} 3300} 3301} 3302} 3303}; 3304function leverageNative(el,type,isSetup){ 3305if(!isSetup){ 3306if(dataPriv.get(el,type)===undefined){ 3307jQuery.event.add(el,type,returnTrue); 3308} 3309return; 3310} 3311dataPriv.set(el,type,false); 3312jQuery.event.add(el,type,{ 3313namespace:false, 3314handler:function(event){ 3315var result, 3316saved=dataPriv.get(this,type); 3317if((event.isTrigger&1)&&this[type]){ 3318if(!saved){ 3319saved=slice.call(arguments); 3320dataPriv.set(this,type,saved); 3321this[type](); 3322result=dataPriv.get(this,type); 3323dataPriv.set(this,type,false); 3324if(saved!==result){ 3325event.stopImmediatePropagation(); 3326event.preventDefault(); 3327return result; 3328} 3329}else if((jQuery.event.special[type]||{}).delegateType){ 3330event.stopPropagation(); 3331} 3332}else if(saved){ 3333dataPriv.set(this,type,jQuery.event.trigger( 3334saved[0], 3335saved.slice(1), 3336this 3337)); 3338event.stopPropagation(); 3339event.isImmediatePropagationStopped=returnTrue; 3340} 3341} 3342}); 3343} 3344jQuery.removeEvent=function(elem,type,handle){ 3345if(elem.removeEventListener){ 3346elem.removeEventListener(type,handle); 3347} 3348}; 3349jQuery.Event=function(src,props){ 3350if(!(this instanceof jQuery.Event)){ 3351return new jQuery.Event(src,props); 3352} 3353if(src&&src.type){ 3354this.originalEvent=src; 3355this.type=src.type; 3356this.isDefaultPrevented=src.defaultPrevented|| 3357src.defaultPrevented===undefined&& 3358src.returnValue===false? 3359returnTrue: 3360returnFalse; 3361this.target=(src.target&&src.target.nodeType===3)? 3362src.target.parentNode: 3363src.target; 3364this.currentTarget=src.currentTarget; 3365this.relatedTarget=src.relatedTarget; 3366}else{ 3367this.type=src; 3368} 3369if(props){ 3370jQuery.extend(this,props); 3371} 3372this.timeStamp=src&&src.timeStamp||Date.now(); 3373this[jQuery.expando]=true; 3374}; 3375jQuery.Event.prototype={ 3376constructor:jQuery.Event, 3377isDefaultPrevented:returnFalse, 3378isPropagationStopped:returnFalse, 3379isImmediatePropagationStopped:returnFalse, 3380isSimulated:false, 3381preventDefault:function(){ 3382var e=this.originalEvent; 3383this.isDefaultPrevented=returnTrue; 3384if(e&&!this.isSimulated){ 3385e.preventDefault(); 3386} 3387}, 3388stopPropagation:function(){ 3389var e=this.originalEvent; 3390this.isPropagationStopped=returnTrue; 3391if(e&&!this.isSimulated){ 3392e.stopPropagation(); 3393} 3394}, 3395stopImmediatePropagation:function(){ 3396var e=this.originalEvent; 3397this.isImmediatePropagationStopped=returnTrue; 3398if(e&&!this.isSimulated){ 3399e.stopImmediatePropagation(); 3400} 3401this.stopPropagation(); 3402} 3403}; 3404jQuery.each({ 3405altKey:true, 3406bubbles:true, 3407cancelable:true, 3408changedTouches:true, 3409ctrlKey:true, 3410detail:true, 3411eventPhase:true, 3412metaKey:true, 3413pageX:true, 3414pageY:true, 3415shiftKey:true, 3416view:true, 3417"char":true, 3418code:true, 3419charCode:true, 3420key:true, 3421keyCode:true, 3422button:true, 3423buttons:true, 3424clientX:true, 3425clientY:true, 3426offsetX:true, 3427offsetY:true, 3428pointerId:true, 3429pointerType:true, 3430screenX:true, 3431screenY:true, 3432targetTouches:true, 3433toElement:true, 3434touches:true, 3435which:true 3436},jQuery.event.addProp); 3437jQuery.each({focus:"focusin",blur:"focusout"},function(type,delegateType){ 3438function focusMappedHandler(nativeEvent){ 3439if(document.documentMode){ 3440var handle=dataPriv.get(this,"handle"), 3441event=jQuery.event.fix(nativeEvent); 3442event.type=nativeEvent.type==="focusin"?"focus":"blur"; 3443event.isSimulated=true; 3444handle(nativeEvent); 3445if(event.target===event.currentTarget){ 3446handle(event); 3447} 3448}else{ 3449jQuery.event.simulate(delegateType,nativeEvent.target, 3450jQuery.event.fix(nativeEvent)); 3451} 3452} 3453jQuery.event.special[type]={ 3454setup:function(){ 3455var attaches; 3456leverageNative(this,type,true); 3457if(document.documentMode){ 3458attaches=dataPriv.get(this,delegateType); 3459if(!attaches){ 3460this.addEventListener(delegateType,focusMappedHandler); 3461} 3462dataPriv.set(this,delegateType,(attaches||0)+1); 3463}else{ 3464return false; 3465} 3466}, 3467trigger:function(){ 3468leverageNative(this,type); 3469return true; 3470}, 3471teardown:function(){ 3472var attaches; 3473if(document.documentMode){ 3474attaches=dataPriv.get(this,delegateType)-1; 3475if(!attaches){ 3476this.removeEventListener(delegateType,focusMappedHandler); 3477dataPriv.remove(this,delegateType); 3478}else{ 3479dataPriv.set(this,delegateType,attaches); 3480} 3481}else{ 3482return false; 3483} 3484}, 3485_default:function(event){ 3486return dataPriv.get(event.target,type); 3487}, 3488delegateType:delegateType 3489}; 3490jQuery.event.special[delegateType]={ 3491setup:function(){ 3492var doc=this.ownerDocument||this.document||this, 3493dataHolder=document.documentMode?this:doc, 3494attaches=dataPriv.get(dataHolder,delegateType); 3495if(!attaches){ 3496if(document.documentMode){ 3497this.addEventListener(delegateType,focusMappedHandler); 3498}else{ 3499doc.addEventListener(type,focusMappedHandler,true); 3500} 3501} 3502dataPriv.set(dataHolder,delegateType,(attaches||0)+1); 3503}, 3504teardown:function(){ 3505var doc=this.ownerDocument||this.document||this, 3506dataHolder=document.documentMode?this:doc, 3507attaches=dataPriv.get(dataHolder,delegateType)-1; 3508if(!attaches){ 3509if(document.documentMode){ 3510this.removeEventListener(delegateType,focusMappedHandler); 3511}else{ 3512doc.removeEventListener(type,focusMappedHandler,true); 3513} 3514dataPriv.remove(dataHolder,delegateType); 3515}else{ 3516dataPriv.set(dataHolder,delegateType,attaches); 3517} 3518} 3519}; 3520}); 3521jQuery.each({ 3522mouseenter:"mouseover", 3523mouseleave:"mouseout", 3524pointerenter:"pointerover", 3525pointerleave:"pointerout" 3526},function(orig,fix){ 3527jQuery.event.special[orig]={ 3528delegateType:fix, 3529bindType:fix, 3530handle:function(event){ 3531var ret, 3532target=this, 3533related=event.relatedTarget, 3534handleObj=event.handleObj; 3535if(!related||(related!==target&&!jQuery.contains(target,related))){ 3536event.type=handleObj.origType; 3537ret=handleObj.handler.apply(this,arguments); 3538event.type=fix; 3539} 3540return ret; 3541} 3542}; 3543}); 3544jQuery.fn.extend({ 3545on:function(types,selector,data,fn){ 3546return on(this,types,selector,data,fn); 3547}, 3548one:function(types,selector,data,fn){ 3549return on(this,types,selector,data,fn,1); 3550}, 3551off:function(types,selector,fn){ 3552var handleObj,type; 3553if(types&&types.preventDefault&&types.handleObj){ 3554handleObj=types.handleObj; 3555jQuery(types.delegateTarget).off( 3556handleObj.namespace? 3557handleObj.origType+"."+handleObj.namespace: 3558handleObj.origType, 3559handleObj.selector, 3560handleObj.handler 3561); 3562return this; 3563} 3564if(typeof types==="object"){ 3565for(type in types){ 3566this.off(type,selector,types[type]); 3567} 3568return this; 3569} 3570if(selector===false||typeof selector==="function"){ 3571fn=selector; 3572selector=undefined; 3573} 3574if(fn===false){ 3575fn=returnFalse; 3576} 3577return this.each(function(){ 3578jQuery.event.remove(this,types,fn,selector); 3579}); 3580} 3581}); 3582var 3583rnoInnerhtml=/<script|<style|<link/i, 3584rchecked=/checked\s*(?:[^=]|=\s*.checked.)/i, 3585rcleanScript=/^\s*<!\[CDATA\[|\]\]>\s*$/g; 3586function manipulationTarget(elem,content){ 3587if(nodeName(elem,"table")&& 3588nodeName(content.nodeType!==11?content:content.firstChild,"tr")){ 3589return jQuery(elem).children("tbody")[0]||elem; 3590} 3591return elem; 3592} 3593function disableScript(elem){ 3594elem.type=(elem.getAttribute("type")!==null)+"/"+elem.type; 3595return elem; 3596} 3597function restoreScript(elem){ 3598if((elem.type||"").slice(0,5)==="true/"){ 3599elem.type=elem.type.slice(5); 3600}else{ 3601elem.removeAttribute("type"); 3602} 3603return elem; 3604} 3605function cloneCopyEvent(src,dest){ 3606var i,l,type,pdataOld,udataOld,udataCur,events; 3607if(dest.nodeType!==1){ 3608return; 3609} 3610if(dataPriv.hasData(src)){ 3611pdataOld=dataPriv.get(src); 3612events=pdataOld.events; 3613if(events){ 3614dataPriv.remove(dest,"handle events"); 3615for(type in events){ 3616for(i=0,l=events[type].length;i<l;i++){ 3617jQuery.event.add(dest,type,events[type][i]); 3618} 3619} 3620} 3621} 3622if(dataUser.hasData(src)){ 3623udataOld=dataUser.access(src); 3624udataCur=jQuery.extend({},udataOld); 3625dataUser.set(dest,udataCur); 3626} 3627} 3628function fixInput(src,dest){ 3629var nodeName=dest.nodeName.toLowerCase(); 3630if(nodeName==="input"&&rcheckableType.test(src.type)){ 3631dest.checked=src.checked; 3632}else if(nodeName==="input"||nodeName==="textarea"){ 3633dest.defaultValue=src.defaultValue; 3634} 3635} 3636function domManip(collection,args,callback,ignored){ 3637args=flat(args); 3638var fragment,first,scripts,hasScripts,node,doc, 3639i=0, 3640l=collection.length, 3641iNoClone=l-1, 3642value=args[0], 3643valueIsFunction=isFunction(value); 3644if(valueIsFunction|| 3645(l>1&&typeof value==="string"&& 3646!support.checkClone&&rchecked.test(value))){ 3647return collection.each(function(index){ 3648var self=collection.eq(index); 3649if(valueIsFunction){ 3650args[0]=value.call(this,index,self.html()); 3651} 3652domManip(self,args,callback,ignored); 3653}); 3654} 3655if(l){ 3656fragment=buildFragment(args,collection[0].ownerDocument,false,collection,ignored); 3657first=fragment.firstChild; 3658if(fragment.childNodes.length===1){ 3659fragment=first; 3660} 3661if(first||ignored){ 3662scripts=jQuery.map(getAll(fragment,"script"),disableScript); 3663hasScripts=scripts.length; 3664for(;i<l;i++){ 3665node=fragment; 3666if(i!==iNoClone){ 3667node=jQuery.clone(node,true,true); 3668if(hasScripts){ 3669jQuery.merge(scripts,getAll(node,"script")); 3670} 3671} 3672callback.call(collection[i],node,i); 3673} 3674if(hasScripts){ 3675doc=scripts[scripts.length-1].ownerDocument; 3676jQuery.map(scripts,restoreScript); 3677for(i=0;i<hasScripts;i++){ 3678node=scripts[i]; 3679if(rscriptType.test(node.type||"")&& 3680!dataPriv.access(node,"globalEval")&& 3681jQuery.contains(doc,node)){ 3682if(node.src&&(node.type||"").toLowerCase()!=="module"){ 3683if(jQuery._evalUrl&&!node.noModule){ 3684jQuery._evalUrl(node.src,{ 3685nonce:node.nonce||node.getAttribute("nonce") 3686},doc); 3687} 3688}else{ 3689DOMEval(node.textContent.replace(rcleanScript,""),node,doc); 3690} 3691} 3692} 3693} 3694} 3695} 3696return collection; 3697} 3698function remove(elem,selector,keepData){ 3699var node, 3700nodes=selector?jQuery.filter(selector,elem):elem, 3701i=0; 3702for(;(node=nodes[i])!=null;i++){ 3703if(!keepData&&node.nodeType===1){ 3704jQuery.cleanData(getAll(node)); 3705} 3706if(node.parentNode){ 3707if(keepData&&isAttached(node)){ 3708setGlobalEval(getAll(node,"script")); 3709} 3710node.parentNode.removeChild(node); 3711} 3712} 3713return elem; 3714} 3715jQuery.extend({ 3716htmlPrefilter:function(html){ 3717return html; 3718}, 3719clone:function(elem,dataAndEvents,deepDataAndEvents){ 3720var i,l,srcElements,destElements, 3721clone=elem.cloneNode(true), 3722inPage=isAttached(elem); 3723if(!support.noCloneChecked&&(elem.nodeType===1||elem.nodeType===11)&& 3724!jQuery.isXMLDoc(elem)){ 3725destElements=getAll(clone); 3726srcElements=getAll(elem); 3727for(i=0,l=srcElements.length;i<l;i++){ 3728fixInput(srcElements[i],destElements[i]); 3729} 3730} 3731if(dataAndEvents){ 3732if(deepDataAndEvents){ 3733srcElements=srcElements||getAll(elem); 3734destElements=destElements||getAll(clone); 3735for(i=0,l=srcElements.length;i<l;i++){ 3736cloneCopyEvent(srcElements[i],destElements[i]); 3737} 3738}else{ 3739cloneCopyEvent(elem,clone); 3740} 3741} 3742destElements=getAll(clone,"script"); 3743if(destElements.length>0){ 3744setGlobalEval(destElements,!inPage&&getAll(elem,"script")); 3745} 3746return clone; 3747}, 3748cleanData:function(elems){ 3749var data,elem,type, 3750special=jQuery.event.special, 3751i=0; 3752for(;(elem=elems[i])!==undefined;i++){ 3753if(acceptData(elem)){ 3754if((data=elem[dataPriv.expando])){ 3755if(data.events){ 3756for(type in data.events){ 3757if(special[type]){ 3758jQuery.event.remove(elem,type); 3759}else{ 3760jQuery.removeEvent(elem,type,data.handle); 3761} 3762} 3763} 3764elem[dataPriv.expando]=undefined; 3765} 3766if(elem[dataUser.expando]){ 3767elem[dataUser.expando]=undefined; 3768} 3769} 3770} 3771} 3772}); 3773jQuery.fn.extend({ 3774detach:function(selector){ 3775return remove(this,selector,true); 3776}, 3777remove:function(selector){ 3778return remove(this,selector); 3779}, 3780text:function(value){ 3781return access(this,function(value){ 3782return value===undefined? 3783jQuery.text(this): 3784this.empty().each(function(){ 3785if(this.nodeType===1||this.nodeType===11||this.nodeType===9){ 3786this.textContent=value; 3787} 3788}); 3789},null,value,arguments.length); 3790}, 3791append:function(){ 3792return domManip(this,arguments,function(elem){ 3793if(this.nodeType===1||this.nodeType===11||this.nodeType===9){ 3794var target=manipulationTarget(this,elem); 3795target.appendChild(elem); 3796} 3797}); 3798}, 3799prepend:function(){ 3800return domManip(this,arguments,function(elem){ 3801if(this.nodeType===1||this.nodeType===11||this.nodeType===9){ 3802var target=manipulationTarget(this,elem); 3803target.insertBefore(elem,target.firstChild); 3804} 3805}); 3806}, 3807before:function(){ 3808return domManip(this,arguments,function(elem){ 3809if(this.parentNode){ 3810this.parentNode.insertBefore(elem,this); 3811} 3812}); 3813}, 3814after:function(){ 3815return domManip(this,arguments,function(elem){ 3816if(this.parentNode){ 3817this.parentNode.insertBefore(elem,this.nextSibling); 3818} 3819}); 3820}, 3821empty:function(){ 3822var elem, 3823i=0; 3824for(;(elem=this[i])!=null;i++){ 3825if(elem.nodeType===1){ 3826jQuery.cleanData(getAll(elem,false)); 3827elem.textContent=""; 3828} 3829} 3830return this; 3831}, 3832clone:function(dataAndEvents,deepDataAndEvents){ 3833dataAndEvents=dataAndEvents==null?false:dataAndEvents; 3834deepDataAndEvents=deepDataAndEvents==null?dataAndEvents:deepDataAndEvents; 3835return this.map(function(){ 3836return jQuery.clone(this,dataAndEvents,deepDataAndEvents); 3837}); 3838}, 3839html:function(value){ 3840return access(this,function(value){ 3841var elem=this[0]||{}, 3842i=0, 3843l=this.length; 3844if(value===undefined&&elem.nodeType===1){ 3845return elem.innerHTML; 3846} 3847if(typeof value==="string"&&!rnoInnerhtml.test(value)&& 3848!wrapMap[(rtagName.exec(value)||["",""])[1].toLowerCase()]){ 3849value=jQuery.htmlPrefilter(value); 3850try{ 3851for(;i<l;i++){ 3852elem=this[i]||{}; 3853if(elem.nodeType===1){ 3854jQuery.cleanData(getAll(elem,false)); 3855elem.innerHTML=value; 3856} 3857} 3858elem=0; 3859}catch(e){} 3860} 3861if(elem){ 3862this.empty().append(value); 3863} 3864},null,value,arguments.length); 3865}, 3866replaceWith:function(){ 3867var ignored=[]; 3868return domManip(this,arguments,function(elem){ 3869var parent=this.parentNode; 3870if(jQuery.inArray(this,ignored)<0){ 3871jQuery.cleanData(getAll(this)); 3872if(parent){ 3873parent.replaceChild(elem,this); 3874} 3875} 3876},ignored); 3877} 3878}); 3879jQuery.each({ 3880appendTo:"append", 3881prependTo:"prepend", 3882insertBefore:"before", 3883insertAfter:"after", 3884replaceAll:"replaceWith" 3885},function(name,original){ 3886jQuery.fn[name]=function(selector){ 3887var elems, 3888ret=[], 3889insert=jQuery(selector), 3890last=insert.length-1, 3891i=0; 3892for(;i<=last;i++){ 3893elems=i===last?this:this.clone(true); 3894jQuery(insert[i])[original](elems); 3895push.apply(ret,elems.get()); 3896} 3897return this.pushStack(ret); 3898}; 3899}); 3900var rnumnonpx=new RegExp("^("+pnum+")(?!px)[a-z%]+$","i"); 3901var rcustomProp=/^--/; 3902var getStyles=function(elem){ 3903var view=elem.ownerDocument.defaultView; 3904if(!view||!view.opener){ 3905view=window; 3906} 3907return view.getComputedStyle(elem); 3908}; 3909var swap=function(elem,options,callback){ 3910var ret,name, 3911old={}; 3912for(name in options){ 3913old[name]=elem.style[name]; 3914elem.style[name]=options[name]; 3915} 3916ret=callback.call(elem); 3917for(name in options){ 3918elem.style[name]=old[name]; 3919} 3920return ret; 3921}; 3922var rboxStyle=new RegExp(cssExpand.join("|"),"i"); 3923(function(){ 3924function computeStyleTests(){ 3925if(!div){ 3926return; 3927} 3928container.style.cssText="position:absolute;left:-11111px;width:60px;"+ 3929"margin-top:1px;padding:0;border:0"; 3930div.style.cssText= 3931"position:relative;display:block;box-sizing:border-box;overflow:scroll;"+ 3932"margin:auto;border:1px;padding:1px;"+ 3933"width:60%;top:1%"; 3934documentElement.appendChild(container).appendChild(div); 3935var divStyle=window.getComputedStyle(div); 3936pixelPositionVal=divStyle.top!=="1%"; 3937reliableMarginLeftVal=roundPixelMeasures(divStyle.marginLeft)===12; 3938div.style.right="60%"; 3939pixelBoxStylesVal=roundPixelMeasures(divStyle.right)===36; 3940boxSizingReliableVal=roundPixelMeasures(divStyle.width)===36; 3941div.style.position="absolute"; 3942scrollboxSizeVal=roundPixelMeasures(div.offsetWidth/3)===12; 3943documentElement.removeChild(container); 3944div=null; 3945} 3946function roundPixelMeasures(measure){ 3947return Math.round(parseFloat(measure)); 3948} 3949var pixelPositionVal,boxSizingReliableVal,scrollboxSizeVal,pixelBoxStylesVal, 3950reliableTrDimensionsVal,reliableMarginLeftVal, 3951container=document.createElement("div"), 3952div=document.createElement("div"); 3953if(!div.style){ 3954return; 3955} 3956div.style.backgroundClip="content-box"; 3957div.cloneNode(true).style.backgroundClip=""; 3958support.clearCloneStyle=div.style.backgroundClip==="content-box"; 3959jQuery.extend(support,{ 3960boxSizingReliable:function(){ 3961computeStyleTests(); 3962return boxSizingReliableVal; 3963}, 3964pixelBoxStyles:function(){ 3965computeStyleTests(); 3966return pixelBoxStylesVal; 3967}, 3968pixelPosition:function(){ 3969computeStyleTests(); 3970return pixelPositionVal; 3971}, 3972reliableMarginLeft:function(){ 3973computeStyleTests(); 3974return reliableMarginLeftVal; 3975}, 3976scrollboxSize:function(){ 3977computeStyleTests(); 3978return scrollboxSizeVal; 3979}, 3980reliableTrDimensions:function(){ 3981var table,tr,trChild,trStyle; 3982if(reliableTrDimensionsVal==null){ 3983table=document.createElement("table"); 3984tr=document.createElement("tr"); 3985trChild=document.createElement("div"); 3986table.style.cssText="position:absolute;left:-11111px;border-collapse:separate"; 3987tr.style.cssText="box-sizing:content-box;border:1px solid"; 3988tr.style.height="1px"; 3989trChild.style.height="9px"; 3990trChild.style.display="block"; 3991documentElement 3992.appendChild(table) 3993.appendChild(tr) 3994.appendChild(trChild); 3995trStyle=window.getComputedStyle(tr); 3996reliableTrDimensionsVal=(parseInt(trStyle.height,10)+ 3997parseInt(trStyle.borderTopWidth,10)+ 3998parseInt(trStyle.borderBottomWidth,10))===tr.offsetHeight; 3999documentElement.removeChild(table); 4000} 4001return reliableTrDimensionsVal; 4002} 4003}); 4004})(); 4005function curCSS(elem,name,computed){ 4006var width,minWidth,maxWidth,ret, 4007isCustomProp=rcustomProp.test(name), 4008style=elem.style; 4009computed=computed||getStyles(elem); 4010if(computed){ 4011ret=computed.getPropertyValue(name)||computed[name]; 4012if(isCustomProp&&ret){ 4013ret=ret.replace(rtrimCSS,"$1")||undefined; 4014} 4015if(ret===""&&!isAttached(elem)){ 4016ret=jQuery.style(elem,name); 4017} 4018if(!support.pixelBoxStyles()&&rnumnonpx.test(ret)&&rboxStyle.test(name)){ 4019width=style.width; 4020minWidth=style.minWidth; 4021maxWidth=style.maxWidth; 4022style.minWidth=style.maxWidth=style.width=ret; 4023ret=computed.width; 4024style.width=width; 4025style.minWidth=minWidth; 4026style.maxWidth=maxWidth; 4027} 4028} 4029return ret!==undefined? 4030ret+"": 4031ret; 4032} 4033function addGetHookIf(conditionFn,hookFn){ 4034return{ 4035get:function(){ 4036if(conditionFn()){ 4037delete this.get; 4038return; 4039} 4040return(this.get=hookFn).apply(this,arguments); 4041} 4042}; 4043} 4044var cssPrefixes=["Webkit","Moz","ms"], 4045emptyStyle=document.createElement("div").style, 4046vendorProps={}; 4047function vendorPropName(name){ 4048var capName=name[0].toUpperCase()+name.slice(1), 4049i=cssPrefixes.length; 4050while(i--){ 4051name=cssPrefixes[i]+capName; 4052if(name in emptyStyle){ 4053return name; 4054} 4055} 4056} 4057function finalPropName(name){ 4058var final=jQuery.cssProps[name]||vendorProps[name]; 4059if(final){ 4060return final; 4061} 4062if(name in emptyStyle){ 4063return name; 4064} 4065return vendorProps[name]=vendorPropName(name)||name; 4066} 4067var 4068rdisplayswap=/^(none|table(?!-c[ea]).+)/, 4069cssShow={position:"absolute",visibility:"hidden",display:"block"}, 4070cssNormalTransform={ 4071letterSpacing:"0", 4072fontWeight:"400" 4073}; 4074function setPositiveNumber(_elem,value,subtract){ 4075var matches=rcssNum.exec(value); 4076return matches? 4077Math.max(0,matches[2]-(subtract||0))+(matches[3]||"px"): 4078value; 4079} 4080function boxModelAdjustment(elem,dimension,box,isBorderBox,styles,computedVal){ 4081var i=dimension==="width"?1:0, 4082extra=0, 4083delta=0, 4084marginDelta=0; 4085if(box===(isBorderBox?"border":"content")){ 4086return 0; 4087} 4088for(;i<4;i+=2){ 4089if(box==="margin"){ 4090marginDelta+=jQuery.css(elem,box+cssExpand[i],true,styles); 4091} 4092if(!isBorderBox){ 4093delta+=jQuery.css(elem,"padding"+cssExpand[i],true,styles); 4094if(box!=="padding"){ 4095delta+=jQuery.css(elem,"border"+cssExpand[i]+"Width",true,styles); 4096}else{ 4097extra+=jQuery.css(elem,"border"+cssExpand[i]+"Width",true,styles); 4098} 4099}else{ 4100if(box==="content"){ 4101delta-=jQuery.css(elem,"padding"+cssExpand[i],true,styles); 4102} 4103if(box!=="margin"){ 4104delta-=jQuery.css(elem,"border"+cssExpand[i]+"Width",true,styles); 4105} 4106} 4107} 4108if(!isBorderBox&&computedVal>=0){ 4109delta+=Math.max(0,Math.ceil( 4110elem["offset"+dimension[0].toUpperCase()+dimension.slice(1)]- 4111computedVal- 4112delta- 4113extra- 41140.5 4115))||0; 4116} 4117return delta+marginDelta; 4118} 4119function getWidthOrHeight(elem,dimension,extra){ 4120var styles=getStyles(elem), 4121boxSizingNeeded=!support.boxSizingReliable()||extra, 4122isBorderBox=boxSizingNeeded&& 4123jQuery.css(elem,"boxSizing",false,styles)==="border-box", 4124valueIsBorderBox=isBorderBox, 4125val=curCSS(elem,dimension,styles), 4126offsetProp="offset"+dimension[0].toUpperCase()+dimension.slice(1); 4127if(rnumnonpx.test(val)){ 4128if(!extra){ 4129return val; 4130} 4131val="auto"; 4132} 4133if((!support.boxSizingReliable()&&isBorderBox|| 4134!support.reliableTrDimensions()&&nodeName(elem,"tr")|| 4135val==="auto"|| 4136!parseFloat(val)&&jQuery.css(elem,"display",false,styles)==="inline")&& 4137elem.getClientRects().length){ 4138isBorderBox=jQuery.css(elem,"boxSizing",false,styles)==="border-box"; 4139valueIsBorderBox=offsetProp in elem; 4140if(valueIsBorderBox){ 4141val=elem[offsetProp]; 4142} 4143} 4144val=parseFloat(val)||0; 4145return(val+ 4146boxModelAdjustment( 4147elem, 4148dimension, 4149extra||(isBorderBox?"border":"content"), 4150valueIsBorderBox, 4151styles, 4152val 4153) 4154)+"px"; 4155} 4156jQuery.extend({ 4157cssHooks:{ 4158opacity:{ 4159get:function(elem,computed){ 4160if(computed){ 4161var ret=curCSS(elem,"opacity"); 4162return ret===""?"1":ret; 4163} 4164} 4165} 4166}, 4167cssNumber:{ 4168animationIterationCount:true, 4169aspectRatio:true, 4170borderImageSlice:true, 4171columnCount:true, 4172flexGrow:true, 4173flexShrink:true, 4174fontWeight:true, 4175gridArea:true, 4176gridColumn:true, 4177gridColumnEnd:true, 4178gridColumnStart:true, 4179gridRow:true, 4180gridRowEnd:true, 4181gridRowStart:true, 4182lineHeight:true, 4183opacity:true, 4184order:true, 4185orphans:true, 4186scale:true, 4187widows:true, 4188zIndex:true, 4189zoom:true, 4190fillOpacity:true, 4191floodOpacity:true, 4192stopOpacity:true, 4193strokeMiterlimit:true, 4194strokeOpacity:true 4195}, 4196cssProps:{}, 4197style:function(elem,name,value,extra){ 4198if(!elem||elem.nodeType===3||elem.nodeType===8||!elem.style){ 4199return; 4200} 4201var ret,type,hooks, 4202origName=camelCase(name), 4203isCustomProp=rcustomProp.test(name), 4204style=elem.style; 4205if(!isCustomProp){ 4206name=finalPropName(origName); 4207} 4208hooks=jQuery.cssHooks[name]||jQuery.cssHooks[origName]; 4209if(value!==undefined){ 4210type=typeof value; 4211if(type==="string"&&(ret=rcssNum.exec(value))&&ret[1]){ 4212value=adjustCSS(elem,name,ret); 4213type="number"; 4214} 4215if(value==null||value!==value){ 4216return; 4217} 4218if(type==="number"&&!isCustomProp){ 4219value+=ret&&ret[3]||(jQuery.cssNumber[origName]?"":"px"); 4220} 4221if(!support.clearCloneStyle&&value===""&&name.indexOf("background")===0){ 4222style[name]="inherit"; 4223} 4224if(!hooks||!("set"in hooks)|| 4225(value=hooks.set(elem,value,extra))!==undefined){ 4226if(isCustomProp){ 4227style.setProperty(name,value); 4228}else{ 4229style[name]=value; 4230} 4231} 4232}else{ 4233if(hooks&&"get"in hooks&& 4234(ret=hooks.get(elem,false,extra))!==undefined){ 4235return ret; 4236} 4237return style[name]; 4238} 4239}, 4240css:function(elem,name,extra,styles){ 4241var val,num,hooks, 4242origName=camelCase(name), 4243isCustomProp=rcustomProp.test(name); 4244if(!isCustomProp){ 4245name=finalPropName(origName); 4246} 4247hooks=jQuery.cssHooks[name]||jQuery.cssHooks[origName]; 4248if(hooks&&"get"in hooks){ 4249val=hooks.get(elem,true,extra); 4250} 4251if(val===undefined){ 4252val=curCSS(elem,name,styles); 4253} 4254if(val==="normal"&&name in cssNormalTransform){ 4255val=cssNormalTransform[name]; 4256} 4257if(extra===""||extra){ 4258num=parseFloat(val); 4259return extra===true||isFinite(num)?num||0:val; 4260} 4261return val; 4262} 4263}); 4264jQuery.each(["height","width"],function(_i,dimension){ 4265jQuery.cssHooks[dimension]={ 4266get:function(elem,computed,extra){ 4267if(computed){ 4268return rdisplayswap.test(jQuery.css(elem,"display"))&& 4269(!elem.getClientRects().length||!elem.getBoundingClientRect().width)? 4270swap(elem,cssShow,function(){ 4271return getWidthOrHeight(elem,dimension,extra); 4272}): 4273getWidthOrHeight(elem,dimension,extra); 4274} 4275}, 4276set:function(elem,value,extra){ 4277var matches, 4278styles=getStyles(elem), 4279scrollboxSizeBuggy=!support.scrollboxSize()&& 4280styles.position==="absolute", 4281boxSizingNeeded=scrollboxSizeBuggy||extra, 4282isBorderBox=boxSizingNeeded&& 4283jQuery.css(elem,"boxSizing",false,styles)==="border-box", 4284subtract=extra? 4285boxModelAdjustment( 4286elem, 4287dimension, 4288extra, 4289isBorderBox, 4290styles 4291): 42920; 4293if(isBorderBox&&scrollboxSizeBuggy){ 4294subtract-=Math.ceil( 4295elem["offset"+dimension[0].toUpperCase()+dimension.slice(1)]- 4296parseFloat(styles[dimension])- 4297boxModelAdjustment(elem,dimension,"border",false,styles)- 42980.5 4299); 4300} 4301if(subtract&&(matches=rcssNum.exec(value))&& 4302(matches[3]||"px")!=="px"){ 4303elem.style[dimension]=value; 4304value=jQuery.css(elem,dimension); 4305} 4306return setPositiveNumber(elem,value,subtract); 4307} 4308}; 4309}); 4310jQuery.cssHooks.marginLeft=addGetHookIf(support.reliableMarginLeft, 4311function(elem,computed){ 4312if(computed){ 4313return(parseFloat(curCSS(elem,"marginLeft"))|| 4314elem.getBoundingClientRect().left- 4315swap(elem,{marginLeft:0},function(){ 4316return elem.getBoundingClientRect().left; 4317}) 4318)+"px"; 4319} 4320} 4321); 4322jQuery.each({ 4323margin:"", 4324padding:"", 4325border:"Width" 4326},function(prefix,suffix){ 4327jQuery.cssHooks[prefix+suffix]={ 4328expand:function(value){ 4329var i=0, 4330expanded={}, 4331parts=typeof value==="string"?value.split(" "):[value]; 4332for(;i<4;i++){ 4333expanded[prefix+cssExpand[i]+suffix]= 4334parts[i]||parts[i-2]||parts[0]; 4335} 4336return expanded; 4337} 4338}; 4339if(prefix!=="margin"){ 4340jQuery.cssHooks[prefix+suffix].set=setPositiveNumber; 4341} 4342}); 4343jQuery.fn.extend({ 4344css:function(name,value){ 4345return access(this,function(elem,name,value){ 4346var styles,len, 4347map={}, 4348i=0; 4349if(Array.isArray(name)){ 4350styles=getStyles(elem); 4351len=name.length; 4352for(;i<len;i++){ 4353map[name[i]]=jQuery.css(elem,name[i],false,styles); 4354} 4355return map; 4356} 4357return value!==undefined? 4358jQuery.style(elem,name,value): 4359jQuery.css(elem,name); 4360},name,value,arguments.length>1); 4361} 4362}); 4363function Tween(elem,options,prop,end,easing){ 4364return new Tween.prototype.init(elem,options,prop,end,easing); 4365} 4366jQuery.Tween=Tween; 4367Tween.prototype={ 4368constructor:Tween, 4369init:function(elem,options,prop,end,easing,unit){ 4370this.elem=elem; 4371this.prop=prop; 4372this.easing=easing||jQuery.easing._default; 4373this.options=options; 4374this.start=this.now=this.cur(); 4375this.end=end; 4376this.unit=unit||(jQuery.cssNumber[prop]?"":"px"); 4377}, 4378cur:function(){ 4379var hooks=Tween.propHooks[this.prop]; 4380return hooks&&hooks.get? 4381hooks.get(this): 4382Tween.propHooks._default.get(this); 4383}, 4384run:function(percent){ 4385var eased, 4386hooks=Tween.propHooks[this.prop]; 4387if(this.options.duration){ 4388this.pos=eased=jQuery.easing[this.easing]( 4389percent,this.options.duration*percent,0,1,this.options.duration 4390); 4391}else{ 4392this.pos=eased=percent; 4393} 4394this.now=(this.end-this.start)*eased+this.start; 4395if(this.options.step){ 4396this.options.step.call(this.elem,this.now,this); 4397} 4398if(hooks&&hooks.set){ 4399hooks.set(this); 4400}else{ 4401Tween.propHooks._default.set(this); 4402} 4403return this; 4404} 4405}; 4406Tween.prototype.init.prototype=Tween.prototype; 4407Tween.propHooks={ 4408_default:{ 4409get:function(tween){ 4410var result; 4411if(tween.elem.nodeType!==1|| 4412tween.elem[tween.prop]!=null&&tween.elem.style[tween.prop]==null){ 4413return tween.elem[tween.prop]; 4414} 4415result=jQuery.css(tween.elem,tween.prop,""); 4416return!result||result==="auto"?0:result; 4417}, 4418set:function(tween){ 4419if(jQuery.fx.step[tween.prop]){ 4420jQuery.fx.step[tween.prop](tween); 4421}else if(tween.elem.nodeType===1&&( 4422jQuery.cssHooks[tween.prop]|| 4423tween.elem.style[finalPropName(tween.prop)]!=null)){ 4424jQuery.style(tween.elem,tween.prop,tween.now+tween.unit); 4425}else{ 4426tween.elem[tween.prop]=tween.now; 4427} 4428} 4429} 4430}; 4431Tween.propHooks.scrollTop=Tween.propHooks.scrollLeft={ 4432set:function(tween){ 4433if(tween.elem.nodeType&&tween.elem.parentNode){ 4434tween.elem[tween.prop]=tween.now; 4435} 4436} 4437}; 4438jQuery.easing={ 4439linear:function(p){ 4440return p; 4441}, 4442swing:function(p){ 4443return 0.5-Math.cos(p*Math.PI)/2; 4444}, 4445_default:"swing" 4446}; 4447jQuery.fx=Tween.prototype.init; 4448jQuery.fx.step={}; 4449var 4450fxNow,inProgress, 4451rfxtypes=/^(?:toggle|show|hide)$/, 4452rrun=/queueHooks$/; 4453function schedule(){ 4454if(inProgress){ 4455if(document.hidden===false&&window.requestAnimationFrame){ 4456window.requestAnimationFrame(schedule); 4457}else{ 4458window.setTimeout(schedule,jQuery.fx.interval); 4459} 4460jQuery.fx.tick(); 4461} 4462} 4463function createFxNow(){ 4464window.setTimeout(function(){ 4465fxNow=undefined; 4466}); 4467return(fxNow=Date.now()); 4468} 4469function genFx(type,includeWidth){ 4470var which, 4471i=0, 4472attrs={height:type}; 4473includeWidth=includeWidth?1:0; 4474for(;i<4;i+=2-includeWidth){ 4475which=cssExpand[i]; 4476attrs["margin"+which]=attrs["padding"+which]=type; 4477} 4478if(includeWidth){ 4479attrs.opacity=attrs.width=type; 4480} 4481return attrs; 4482} 4483function createTween(value,prop,animation){ 4484var tween, 4485collection=(Animation.tweeners[prop]||[]).concat(Animation.tweeners["*"]), 4486index=0, 4487length=collection.length; 4488for(;index<length;index++){ 4489if((tween=collection[index].call(animation,prop,value))){ 4490return tween; 4491} 4492} 4493} 4494function defaultPrefilter(elem,props,opts){ 4495var prop,value,toggle,hooks,oldfire,propTween,restoreDisplay,display, 4496isBox="width"in props||"height"in props, 4497anim=this, 4498orig={}, 4499style=elem.style, 4500hidden=elem.nodeType&&isHiddenWithinTree(elem), 4501dataShow=dataPriv.get(elem,"fxshow"); 4502if(!opts.queue){ 4503hooks=jQuery._queueHooks(elem,"fx"); 4504if(hooks.unqueued==null){ 4505hooks.unqueued=0; 4506oldfire=hooks.empty.fire; 4507hooks.empty.fire=function(){ 4508if(!hooks.unqueued){ 4509oldfire(); 4510} 4511}; 4512} 4513hooks.unqueued++; 4514anim.always(function(){ 4515anim.always(function(){ 4516hooks.unqueued--; 4517if(!jQuery.queue(elem,"fx").length){ 4518hooks.empty.fire(); 4519} 4520}); 4521}); 4522} 4523for(prop in props){ 4524value=props[prop]; 4525if(rfxtypes.test(value)){ 4526delete props[prop]; 4527toggle=toggle||value==="toggle"; 4528if(value===(hidden?"hide":"show")){ 4529if(value==="show"&&dataShow&&dataShow[prop]!==undefined){ 4530hidden=true; 4531}else{ 4532continue; 4533} 4534} 4535orig[prop]=dataShow&&dataShow[prop]||jQuery.style(elem,prop); 4536} 4537} 4538propTween=!jQuery.isEmptyObject(props); 4539if(!propTween&&jQuery.isEmptyObject(orig)){ 4540return; 4541} 4542if(isBox&&elem.nodeType===1){ 4543opts.overflow=[style.overflow,style.overflowX,style.overflowY]; 4544restoreDisplay=dataShow&&dataShow.display; 4545if(restoreDisplay==null){ 4546restoreDisplay=dataPriv.get(elem,"display"); 4547} 4548display=jQuery.css(elem,"display"); 4549if(display==="none"){ 4550if(restoreDisplay){ 4551display=restoreDisplay; 4552}else{ 4553showHide([elem],true); 4554restoreDisplay=elem.style.display||restoreDisplay; 4555display=jQuery.css(elem,"display"); 4556showHide([elem]); 4557} 4558} 4559if(display==="inline"||display==="inline-block"&&restoreDisplay!=null){ 4560if(jQuery.css(elem,"float")==="none"){ 4561if(!propTween){ 4562anim.done(function(){ 4563style.display=restoreDisplay; 4564}); 4565if(restoreDisplay==null){ 4566display=style.display; 4567restoreDisplay=display==="none"?"":display; 4568} 4569} 4570style.display="inline-block"; 4571} 4572} 4573} 4574if(opts.overflow){ 4575style.overflow="hidden"; 4576anim.always(function(){ 4577style.overflow=opts.overflow[0]; 4578style.overflowX=opts.overflow[1]; 4579style.overflowY=opts.overflow[2]; 4580}); 4581} 4582propTween=false; 4583for(prop in orig){ 4584if(!propTween){ 4585if(dataShow){ 4586if("hidden"in dataShow){ 4587hidden=dataShow.hidden; 4588} 4589}else{ 4590dataShow=dataPriv.access(elem,"fxshow",{display:restoreDisplay}); 4591} 4592if(toggle){ 4593dataShow.hidden=!hidden; 4594} 4595if(hidden){ 4596showHide([elem],true); 4597} 4598anim.done(function(){ 4599if(!hidden){ 4600showHide([elem]); 4601} 4602dataPriv.remove(elem,"fxshow"); 4603for(prop in orig){ 4604jQuery.style(elem,prop,orig[prop]); 4605} 4606}); 4607} 4608propTween=createTween(hidden?dataShow[prop]:0,prop,anim); 4609if(!(prop in dataShow)){ 4610dataShow[prop]=propTween.start; 4611if(hidden){ 4612propTween.end=propTween.start; 4613propTween.start=0; 4614} 4615} 4616} 4617} 4618function propFilter(props,specialEasing){ 4619var index,name,easing,value,hooks; 4620for(index in props){ 4621name=camelCase(index); 4622easing=specialEasing[name]; 4623value=props[index]; 4624if(Array.isArray(value)){ 4625easing=value[1]; 4626value=props[index]=value[0]; 4627} 4628if(index!==name){ 4629props[name]=value; 4630delete props[index]; 4631} 4632hooks=jQuery.cssHooks[name]; 4633if(hooks&&"expand"in hooks){ 4634value=hooks.expand(value); 4635delete props[name]; 4636for(index in value){ 4637if(!(index in props)){ 4638props[index]=value[index]; 4639specialEasing[index]=easing; 4640} 4641} 4642}else{ 4643specialEasing[name]=easing; 4644} 4645} 4646} 4647function Animation(elem,properties,options){ 4648var result, 4649stopped, 4650index=0, 4651length=Animation.prefilters.length, 4652deferred=jQuery.Deferred().always(function(){ 4653delete tick.elem; 4654}), 4655tick=function(){ 4656if(stopped){ 4657return false; 4658} 4659var currentTime=fxNow||createFxNow(), 4660remaining=Math.max(0,animation.startTime+animation.duration-currentTime), 4661temp=remaining/animation.duration||0, 4662percent=1-temp, 4663index=0, 4664length=animation.tweens.length; 4665for(;index<length;index++){ 4666animation.tweens[index].run(percent); 4667} 4668deferred.notifyWith(elem,[animation,percent,remaining]); 4669if(percent<1&&length){ 4670return remaining; 4671} 4672if(!length){ 4673deferred.notifyWith(elem,[animation,1,0]); 4674} 4675deferred.resolveWith(elem,[animation]); 4676return false; 4677}, 4678animation=deferred.promise({ 4679elem:elem, 4680props:jQuery.extend({},properties), 4681opts:jQuery.extend(true,{ 4682specialEasing:{}, 4683easing:jQuery.easing._default 4684},options), 4685originalProperties:properties, 4686originalOptions:options, 4687startTime:fxNow||createFxNow(), 4688duration:options.duration, 4689tweens:[], 4690createTween:function(prop,end){ 4691var tween=jQuery.Tween(elem,animation.opts,prop,end, 4692animation.opts.specialEasing[prop]||animation.opts.easing); 4693animation.tweens.push(tween); 4694return tween; 4695}, 4696stop:function(gotoEnd){ 4697var index=0, 4698length=gotoEnd?animation.tweens.length:0; 4699if(stopped){ 4700return this; 4701} 4702stopped=true; 4703for(;index<length;index++){ 4704animation.tweens[index].run(1); 4705} 4706if(gotoEnd){ 4707deferred.notifyWith(elem,[animation,1,0]); 4708deferred.resolveWith(elem,[animation,gotoEnd]); 4709}else{ 4710deferred.rejectWith(elem,[animation,gotoEnd]); 4711} 4712return this; 4713} 4714}), 4715props=animation.props; 4716propFilter(props,animation.opts.specialEasing); 4717for(;index<length;index++){ 4718result=Animation.prefilters[index].call(animation,elem,props,animation.opts); 4719if(result){ 4720if(isFunction(result.stop)){ 4721jQuery._queueHooks(animation.elem,animation.opts.queue).stop= 4722result.stop.bind(result); 4723} 4724return result; 4725} 4726} 4727jQuery.map(props,createTween,animation); 4728if(isFunction(animation.opts.start)){ 4729animation.opts.start.call(elem,animation); 4730} 4731animation 4732.progress(animation.opts.progress) 4733.done(animation.opts.done,animation.opts.complete) 4734.fail(animation.opts.fail) 4735.always(animation.opts.always); 4736jQuery.fx.timer( 4737jQuery.extend(tick,{ 4738elem:elem, 4739anim:animation, 4740queue:animation.opts.queue 4741}) 4742); 4743return animation; 4744} 4745jQuery.Animation=jQuery.extend(Animation,{ 4746tweeners:{ 4747"*":[function(prop,value){ 4748var tween=this.createTween(prop,value); 4749adjustCSS(tween.elem,prop,rcssNum.exec(value),tween); 4750return tween; 4751}] 4752}, 4753tweener:function(props,callback){ 4754if(isFunction(props)){ 4755callback=props; 4756props=["*"]; 4757}else{ 4758props=props.match(rnothtmlwhite); 4759} 4760var prop, 4761index=0, 4762length=props.length; 4763for(;index<length;index++){ 4764prop=props[index]; 4765Animation.tweeners[prop]=Animation.tweeners[prop]||[]; 4766Animation.tweeners[prop].unshift(callback); 4767} 4768}, 4769prefilters:[defaultPrefilter], 4770prefilter:function(callback,prepend){ 4771if(prepend){ 4772Animation.prefilters.unshift(callback); 4773}else{ 4774Animation.prefilters.push(callback); 4775} 4776} 4777}); 4778jQuery.speed=function(speed,easing,fn){ 4779var opt=speed&&typeof speed==="object"?jQuery.extend({},speed):{ 4780complete:fn||!fn&&easing|| 4781isFunction(speed)&&speed, 4782duration:speed, 4783easing:fn&&easing||easing&&!isFunction(easing)&&easing 4784}; 4785if(jQuery.fx.off){ 4786opt.duration=0; 4787}else{ 4788if(typeof opt.duration!=="number"){ 4789if(opt.duration in jQuery.fx.speeds){ 4790opt.duration=jQuery.fx.speeds[opt.duration]; 4791}else{ 4792opt.duration=jQuery.fx.speeds._default; 4793} 4794} 4795} 4796if(opt.queue==null||opt.queue===true){ 4797opt.queue="fx"; 4798} 4799opt.old=opt.complete; 4800opt.complete=function(){ 4801if(isFunction(opt.old)){ 4802opt.old.call(this); 4803} 4804if(opt.queue){ 4805jQuery.dequeue(this,opt.queue); 4806} 4807}; 4808return opt; 4809}; 4810jQuery.fn.extend({ 4811fadeTo:function(speed,to,easing,callback){ 4812return this.filter(isHiddenWithinTree).css("opacity",0).show() 4813.end().animate({opacity:to},speed,easing,callback); 4814}, 4815animate:function(prop,speed,easing,callback){ 4816var empty=jQuery.isEmptyObject(prop), 4817optall=jQuery.speed(speed,easing,callback), 4818doAnimation=function(){ 4819var anim=Animation(this,jQuery.extend({},prop),optall); 4820if(empty||dataPriv.get(this,"finish")){ 4821anim.stop(true); 4822} 4823}; 4824doAnimation.finish=doAnimation; 4825return empty||optall.queue===false? 4826this.each(doAnimation): 4827this.queue(optall.queue,doAnimation); 4828}, 4829stop:function(type,clearQueue,gotoEnd){ 4830var stopQueue=function(hooks){ 4831var stop=hooks.stop; 4832delete hooks.stop; 4833stop(gotoEnd); 4834}; 4835if(typeof type!=="string"){ 4836gotoEnd=clearQueue; 4837clearQueue=type; 4838type=undefined; 4839} 4840if(clearQueue){ 4841this.queue(type||"fx",[]); 4842} 4843return this.each(function(){ 4844var dequeue=true, 4845index=type!=null&&type+"queueHooks", 4846timers=jQuery.timers, 4847data=dataPriv.get(this); 4848if(index){ 4849if(data[index]&&data[index].stop){ 4850stopQueue(data[index]); 4851} 4852}else{ 4853for(index in data){ 4854if(data[index]&&data[index].stop&&rrun.test(index)){ 4855stopQueue(data[index]); 4856} 4857} 4858} 4859for(index=timers.length;index--;){ 4860if(timers[index].elem===this&& 4861(type==null||timers[index].queue===type)){ 4862timers[index].anim.stop(gotoEnd); 4863dequeue=false; 4864timers.splice(index,1); 4865} 4866} 4867if(dequeue||!gotoEnd){ 4868jQuery.dequeue(this,type); 4869} 4870}); 4871}, 4872finish:function(type){ 4873if(type!==false){ 4874type=type||"fx"; 4875} 4876return this.each(function(){ 4877var index, 4878data=dataPriv.get(this), 4879queue=data[type+"queue"], 4880hooks=data[type+"queueHooks"], 4881timers=jQuery.timers, 4882length=queue?queue.length:0; 4883data.finish=true; 4884jQuery.queue(this,type,[]); 4885if(hooks&&hooks.stop){ 4886hooks.stop.call(this,true); 4887} 4888for(index=timers.length;index--;){ 4889if(timers[index].elem===this&&timers[index].queue===type){ 4890timers[index].anim.stop(true); 4891timers.splice(index,1); 4892} 4893} 4894for(index=0;index<length;index++){ 4895if(queue[index]&&queue[index].finish){ 4896queue[index].finish.call(this); 4897} 4898} 4899delete data.finish; 4900}); 4901} 4902}); 4903jQuery.each(["toggle","show","hide"],function(_i,name){ 4904var cssFn=jQuery.fn[name]; 4905jQuery.fn[name]=function(speed,easing,callback){ 4906return speed==null||typeof speed==="boolean"? 4907cssFn.apply(this,arguments): 4908this.animate(genFx(name,true),speed,easing,callback); 4909}; 4910}); 4911jQuery.each({ 4912slideDown:genFx("show"), 4913slideUp:genFx("hide"), 4914slideToggle:genFx("toggle"), 4915fadeIn:{opacity:"show"}, 4916fadeOut:{opacity:"hide"}, 4917fadeToggle:{opacity:"toggle"} 4918},function(name,props){ 4919jQuery.fn[name]=function(speed,easing,callback){ 4920return this.animate(props,speed,easing,callback); 4921}; 4922}); 4923jQuery.timers=[]; 4924jQuery.fx.tick=function(){ 4925var timer, 4926i=0, 4927timers=jQuery.timers; 4928fxNow=Date.now(); 4929for(;i<timers.length;i++){ 4930timer=timers[i]; 4931if(!timer()&&timers[i]===timer){ 4932timers.splice(i--,1); 4933} 4934} 4935if(!timers.length){ 4936jQuery.fx.stop(); 4937} 4938fxNow=undefined; 4939}; 4940jQuery.fx.timer=function(timer){ 4941jQuery.timers.push(timer); 4942jQuery.fx.start(); 4943}; 4944jQuery.fx.interval=13; 4945jQuery.fx.start=function(){ 4946if(inProgress){ 4947return; 4948} 4949inProgress=true; 4950schedule(); 4951}; 4952jQuery.fx.stop=function(){ 4953inProgress=null; 4954}; 4955jQuery.fx.speeds={ 4956slow:600, 4957fast:200, 4958_default:400 4959}; 4960jQuery.fn.delay=function(time,type){ 4961time=jQuery.fx?jQuery.fx.speeds[time]||time:time; 4962type=type||"fx"; 4963return this.queue(type,function(next,hooks){ 4964var timeout=window.setTimeout(next,time); 4965hooks.stop=function(){ 4966window.clearTimeout(timeout); 4967}; 4968}); 4969}; 4970(function(){ 4971var input=document.createElement("input"), 4972select=document.createElement("select"), 4973opt=select.appendChild(document.createElement("option")); 4974input.type="checkbox"; 4975support.checkOn=input.value!==""; 4976support.optSelected=opt.selected; 4977input=document.createElement("input"); 4978input.value="t"; 4979input.type="radio"; 4980support.radioValue=input.value==="t"; 4981})(); 4982var boolHook, 4983attrHandle=jQuery.expr.attrHandle; 4984jQuery.fn.extend({ 4985attr:function(name,value){ 4986return access(this,jQuery.attr,name,value,arguments.length>1); 4987}, 4988removeAttr:function(name){ 4989return this.each(function(){ 4990jQuery.removeAttr(this,name); 4991}); 4992} 4993}); 4994jQuery.extend({ 4995attr:function(elem,name,value){ 4996var ret,hooks, 4997nType=elem.nodeType; 4998if(nType===3||nType===8||nType===2){ 4999return; 5000} 5001if(typeof elem.getAttribute==="undefined"){ 5002return jQuery.prop(elem,name,value); 5003} 5004if(nType!==1||!jQuery.isXMLDoc(elem)){ 5005hooks=jQuery.attrHooks[name.toLowerCase()]|| 5006(jQuery.expr.match.bool.test(name)?boolHook:undefined); 5007} 5008if(value!==undefined){ 5009if(value===null){ 5010jQuery.removeAttr(elem,name); 5011return; 5012} 5013if(hooks&&"set"in hooks&& 5014(ret=hooks.set(elem,value,name))!==undefined){ 5015return ret; 5016} 5017elem.setAttribute(name,value+""); 5018return value; 5019} 5020if(hooks&&"get"in hooks&&(ret=hooks.get(elem,name))!==null){ 5021return ret; 5022} 5023ret=jQuery.find.attr(elem,name); 5024return ret==null?undefined:ret; 5025}, 5026attrHooks:{ 5027type:{ 5028set:function(elem,value){ 5029if(!support.radioValue&&value==="radio"&& 5030nodeName(elem,"input")){ 5031var val=elem.value; 5032elem.setAttribute("type",value); 5033if(val){ 5034elem.value=val; 5035} 5036return value; 5037} 5038} 5039} 5040}, 5041removeAttr:function(elem,value){ 5042var name, 5043i=0, 5044attrNames=value&&value.match(rnothtmlwhite); 5045if(attrNames&&elem.nodeType===1){ 5046while((name=attrNames[i++])){ 5047elem.removeAttribute(name); 5048} 5049} 5050} 5051}); 5052boolHook={ 5053set:function(elem,value,name){ 5054if(value===false){ 5055jQuery.removeAttr(elem,name); 5056}else{ 5057elem.setAttribute(name,name); 5058} 5059return name; 5060} 5061}; 5062jQuery.each(jQuery.expr.match.bool.source.match(/\w+/g),function(_i,name){ 5063var getter=attrHandle[name]||jQuery.find.attr; 5064attrHandle[name]=function(elem,name,isXML){ 5065var ret,handle, 5066lowercaseName=name.toLowerCase(); 5067if(!isXML){ 5068handle=attrHandle[lowercaseName]; 5069attrHandle[lowercaseName]=ret; 5070ret=getter(elem,name,isXML)!=null? 5071lowercaseName: 5072null; 5073attrHandle[lowercaseName]=handle; 5074} 5075return ret; 5076}; 5077}); 5078var rfocusable=/^(?:input|select|textarea|button)$/i, 5079rclickable=/^(?:a|area)$/i; 5080jQuery.fn.extend({ 5081prop:function(name,value){ 5082return access(this,jQuery.prop,name,value,arguments.length>1); 5083}, 5084removeProp:function(name){ 5085return this.each(function(){ 5086delete this[jQuery.propFix[name]||name]; 5087}); 5088} 5089}); 5090jQuery.extend({ 5091prop:function(elem,name,value){ 5092var ret,hooks, 5093nType=elem.nodeType; 5094if(nType===3||nType===8||nType===2){ 5095return; 5096} 5097if(nType!==1||!jQuery.isXMLDoc(elem)){ 5098name=jQuery.propFix[name]||name; 5099hooks=jQuery.propHooks[name]; 5100} 5101if(value!==undefined){ 5102if(hooks&&"set"in hooks&& 5103(ret=hooks.set(elem,value,name))!==undefined){ 5104return ret; 5105} 5106return(elem[name]=value); 5107} 5108if(hooks&&"get"in hooks&&(ret=hooks.get(elem,name))!==null){ 5109return ret; 5110} 5111return elem[name]; 5112}, 5113propHooks:{ 5114tabIndex:{ 5115get:function(elem){ 5116var tabindex=jQuery.find.attr(elem,"tabindex"); 5117if(tabindex){ 5118return parseInt(tabindex,10); 5119} 5120if( 5121rfocusable.test(elem.nodeName)|| 5122rclickable.test(elem.nodeName)&& 5123elem.href 5124){ 5125return 0; 5126} 5127return-1; 5128} 5129} 5130}, 5131propFix:{ 5132"for":"htmlFor", 5133"class":"className" 5134} 5135}); 5136if(!support.optSelected){ 5137jQuery.propHooks.selected={ 5138get:function(elem){ 5139var parent=elem.parentNode; 5140if(parent&&parent.parentNode){ 5141parent.parentNode.selectedIndex; 5142} 5143return null; 5144}, 5145set:function(elem){ 5146var parent=elem.parentNode; 5147if(parent){ 5148parent.selectedIndex; 5149if(parent.parentNode){ 5150parent.parentNode.selectedIndex; 5151} 5152} 5153} 5154}; 5155} 5156jQuery.each([ 5157"tabIndex", 5158"readOnly", 5159"maxLength", 5160"cellSpacing", 5161"cellPadding", 5162"rowSpan", 5163"colSpan", 5164"useMap", 5165"frameBorder", 5166"contentEditable" 5167],function(){ 5168jQuery.propFix[this.toLowerCase()]=this; 5169}); 5170function stripAndCollapse(value){ 5171var tokens=value.match(rnothtmlwhite)||[]; 5172return tokens.join(" "); 5173} 5174function getClass(elem){ 5175return elem.getAttribute&&elem.getAttribute("class")||""; 5176} 5177function classesToArray(value){ 5178if(Array.isArray(value)){ 5179return value; 5180} 5181if(typeof value==="string"){ 5182return value.match(rnothtmlwhite)||[]; 5183} 5184return[]; 5185} 5186jQuery.fn.extend({ 5187addClass:function(value){ 5188var classNames,cur,curValue,className,i,finalValue; 5189if(isFunction(value)){ 5190return this.each(function(j){ 5191jQuery(this).addClass(value.call(this,j,getClass(this))); 5192}); 5193} 5194classNames=classesToArray(value); 5195if(classNames.length){ 5196return this.each(function(){ 5197curValue=getClass(this); 5198cur=this.nodeType===1&&(" "+stripAndCollapse(curValue)+" "); 5199if(cur){ 5200for(i=0;i<classNames.length;i++){ 5201className=classNames[i]; 5202if(cur.indexOf(" "+className+" ")<0){ 5203cur+=className+" "; 5204} 5205} 5206finalValue=stripAndCollapse(cur); 5207if(curValue!==finalValue){ 5208this.setAttribute("class",finalValue); 5209} 5210} 5211}); 5212} 5213return this; 5214}, 5215removeClass:function(value){ 5216var classNames,cur,curValue,className,i,finalValue; 5217if(isFunction(value)){ 5218return this.each(function(j){ 5219jQuery(this).removeClass(value.call(this,j,getClass(this))); 5220}); 5221} 5222if(!arguments.length){ 5223return this.attr("class",""); 5224} 5225classNames=classesToArray(value); 5226if(classNames.length){ 5227return this.each(function(){ 5228curValue=getClass(this); 5229cur=this.nodeType===1&&(" "+stripAndCollapse(curValue)+" "); 5230if(cur){ 5231for(i=0;i<classNames.length;i++){ 5232className=classNames[i]; 5233while(cur.indexOf(" "+className+" ")>-1){ 5234cur=cur.replace(" "+className+" "," "); 5235} 5236} 5237finalValue=stripAndCollapse(cur); 5238if(curValue!==finalValue){ 5239this.setAttribute("class",finalValue); 5240} 5241} 5242}); 5243} 5244return this; 5245}, 5246toggleClass:function(value,stateVal){ 5247var classNames,className,i,self, 5248type=typeof value, 5249isValidValue=type==="string"||Array.isArray(value); 5250if(isFunction(value)){ 5251return this.each(function(i){ 5252jQuery(this).toggleClass( 5253value.call(this,i,getClass(this),stateVal), 5254stateVal 5255); 5256}); 5257} 5258if(typeof stateVal==="boolean"&&isValidValue){ 5259return stateVal?this.addClass(value):this.removeClass(value); 5260} 5261classNames=classesToArray(value); 5262return this.each(function(){ 5263if(isValidValue){ 5264self=jQuery(this); 5265for(i=0;i<classNames.length;i++){ 5266className=classNames[i]; 5267if(self.hasClass(className)){ 5268self.removeClass(className); 5269}else{ 5270self.addClass(className); 5271} 5272} 5273}else if(value===undefined||type==="boolean"){ 5274className=getClass(this); 5275if(className){ 5276dataPriv.set(this,"__className__",className); 5277} 5278if(this.setAttribute){ 5279this.setAttribute("class", 5280className||value===false? 5281"": 5282dataPriv.get(this,"__className__")||"" 5283); 5284} 5285} 5286}); 5287}, 5288hasClass:function(selector){ 5289var className,elem, 5290i=0; 5291className=" "+selector+" "; 5292while((elem=this[i++])){ 5293if(elem.nodeType===1&& 5294(" "+stripAndCollapse(getClass(elem))+" ").indexOf(className)>-1){ 5295return true; 5296} 5297} 5298return false; 5299} 5300}); 5301var rreturn=/\r/g; 5302jQuery.fn.extend({ 5303val:function(value){ 5304var hooks,ret,valueIsFunction, 5305elem=this[0]; 5306if(!arguments.length){ 5307if(elem){ 5308hooks=jQuery.valHooks[elem.type]|| 5309jQuery.valHooks[elem.nodeName.toLowerCase()]; 5310if(hooks&& 5311"get"in hooks&& 5312(ret=hooks.get(elem,"value"))!==undefined 5313){ 5314return ret; 5315} 5316ret=elem.value; 5317if(typeof ret==="string"){ 5318return ret.replace(rreturn,""); 5319} 5320return ret==null?"":ret; 5321} 5322return; 5323} 5324valueIsFunction=isFunction(value); 5325return this.each(function(i){ 5326var val; 5327if(this.nodeType!==1){ 5328return; 5329} 5330if(valueIsFunction){ 5331val=value.call(this,i,jQuery(this).val()); 5332}else{ 5333val=value; 5334} 5335if(val==null){ 5336val=""; 5337}else if(typeof val==="number"){ 5338val+=""; 5339}else if(Array.isArray(val)){ 5340val=jQuery.map(val,function(value){ 5341return value==null?"":value+""; 5342}); 5343} 5344hooks=jQuery.valHooks[this.type]||jQuery.valHooks[this.nodeName.toLowerCase()]; 5345if(!hooks||!("set"in hooks)||hooks.set(this,val,"value")===undefined){ 5346this.value=val; 5347} 5348}); 5349} 5350}); 5351jQuery.extend({ 5352valHooks:{ 5353option:{ 5354get:function(elem){ 5355var val=jQuery.find.attr(elem,"value"); 5356return val!=null? 5357val: 5358stripAndCollapse(jQuery.text(elem)); 5359} 5360}, 5361select:{ 5362get:function(elem){ 5363var value,option,i, 5364options=elem.options, 5365index=elem.selectedIndex, 5366one=elem.type==="select-one", 5367values=one?null:[], 5368max=one?index+1:options.length; 5369if(index<0){ 5370i=max; 5371}else{ 5372i=one?index:0; 5373} 5374for(;i<max;i++){ 5375option=options[i]; 5376if((option.selected||i===index)&& 5377!option.disabled&& 5378(!option.parentNode.disabled|| 5379!nodeName(option.parentNode,"optgroup"))){ 5380value=jQuery(option).val(); 5381if(one){ 5382return value; 5383} 5384values.push(value); 5385} 5386} 5387return values; 5388}, 5389set:function(elem,value){ 5390var optionSet,option, 5391options=elem.options, 5392values=jQuery.makeArray(value), 5393i=options.length; 5394while(i--){ 5395option=options[i]; 5396if(option.selected= 5397jQuery.inArray(jQuery.valHooks.option.get(option),values)>-1 5398){ 5399optionSet=true; 5400} 5401} 5402if(!optionSet){ 5403elem.selectedIndex=-1; 5404} 5405return values; 5406} 5407} 5408} 5409}); 5410jQuery.each(["radio","checkbox"],function(){ 5411jQuery.valHooks[this]={ 5412set:function(elem,value){ 5413if(Array.isArray(value)){ 5414return(elem.checked=jQuery.inArray(jQuery(elem).val(),value)>-1); 5415} 5416} 5417}; 5418if(!support.checkOn){ 5419jQuery.valHooks[this].get=function(elem){ 5420return elem.getAttribute("value")===null?"on":elem.value; 5421}; 5422} 5423}); 5424var location=window.location; 5425var nonce={guid:Date.now()}; 5426var rquery=(/\?/); 5427jQuery.parseXML=function(data){ 5428var xml,parserErrorElem; 5429if(!data||typeof data!=="string"){ 5430return null; 5431} 5432try{ 5433xml=(new window.DOMParser()).parseFromString(data,"text/xml"); 5434}catch(e){} 5435parserErrorElem=xml&&xml.getElementsByTagName("parsererror")[0]; 5436if(!xml||parserErrorElem){ 5437jQuery.error("Invalid XML: "+( 5438parserErrorElem? 5439jQuery.map(parserErrorElem.childNodes,function(el){ 5440return el.textContent; 5441}).join("\n"): 5442data 5443)); 5444} 5445return xml; 5446}; 5447var rfocusMorph=/^(?:focusinfocus|focusoutblur)$/, 5448stopPropagationCallback=function(e){ 5449e.stopPropagation(); 5450}; 5451jQuery.extend(jQuery.event,{ 5452trigger:function(event,data,elem,onlyHandlers){ 5453var i,cur,tmp,bubbleType,ontype,handle,special,lastElement, 5454eventPath=[elem||document], 5455type=hasOwn.call(event,"type")?event.type:event, 5456namespaces=hasOwn.call(event,"namespace")?event.namespace.split("."):[]; 5457cur=lastElement=tmp=elem=elem||document; 5458if(elem.nodeType===3||elem.nodeType===8){ 5459return; 5460} 5461if(rfocusMorph.test(type+jQuery.event.triggered)){ 5462return; 5463} 5464if(type.indexOf(".")>-1){ 5465namespaces=type.split("."); 5466type=namespaces.shift(); 5467namespaces.sort(); 5468} 5469ontype=type.indexOf(":")<0&&"on"+type; 5470event=event[jQuery.expando]? 5471event: 5472new jQuery.Event(type,typeof event==="object"&&event); 5473event.isTrigger=onlyHandlers?2:3; 5474event.namespace=namespaces.join("."); 5475event.rnamespace=event.namespace? 5476new RegExp("(^|\\.)"+namespaces.join("\\.(?:.*\\.|)")+"(\\.|$)"): 5477null; 5478event.result=undefined; 5479if(!event.target){ 5480event.target=elem; 5481} 5482data=data==null? 5483[event]: 5484jQuery.makeArray(data,[event]); 5485special=jQuery.event.special[type]||{}; 5486if(!onlyHandlers&&special.trigger&&special.trigger.apply(elem,data)===false){ 5487return; 5488} 5489if(!onlyHandlers&&!special.noBubble&&!isWindow(elem)){ 5490bubbleType=special.delegateType||type; 5491if(!rfocusMorph.test(bubbleType+type)){ 5492cur=cur.parentNode; 5493} 5494for(;cur;cur=cur.parentNode){ 5495eventPath.push(cur); 5496tmp=cur; 5497} 5498if(tmp===(elem.ownerDocument||document)){ 5499eventPath.push(tmp.defaultView||tmp.parentWindow||window); 5500} 5501} 5502i=0; 5503while((cur=eventPath[i++])&&!event.isPropagationStopped()){ 5504lastElement=cur; 5505event.type=i>1? 5506bubbleType: 5507special.bindType||type; 5508handle=(dataPriv.get(cur,"events")||Object.create(null))[event.type]&& 5509dataPriv.get(cur,"handle"); 5510if(handle){ 5511handle.apply(cur,data); 5512} 5513handle=ontype&&cur[ontype]; 5514if(handle&&handle.apply&&acceptData(cur)){ 5515event.result=handle.apply(cur,data); 5516if(event.result===false){ 5517event.preventDefault(); 5518} 5519} 5520} 5521event.type=type; 5522if(!onlyHandlers&&!event.isDefaultPrevented()){ 5523if((!special._default|| 5524special._default.apply(eventPath.pop(),data)===false)&& 5525acceptData(elem)){ 5526if(ontype&&isFunction(elem[type])&&!isWindow(elem)){ 5527tmp=elem[ontype]; 5528if(tmp){ 5529elem[ontype]=null; 5530} 5531jQuery.event.triggered=type; 5532if(event.isPropagationStopped()){ 5533lastElement.addEventListener(type,stopPropagationCallback); 5534} 5535elem[type](); 5536if(event.isPropagationStopped()){ 5537lastElement.removeEventListener(type,stopPropagationCallback); 5538} 5539jQuery.event.triggered=undefined; 5540if(tmp){ 5541elem[ontype]=tmp; 5542} 5543} 5544} 5545} 5546return event.result; 5547}, 5548simulate:function(type,elem,event){ 5549var e=jQuery.extend( 5550new jQuery.Event(), 5551event, 5552{ 5553type:type, 5554isSimulated:true 5555} 5556); 5557jQuery.event.trigger(e,null,elem); 5558} 5559}); 5560jQuery.fn.extend({ 5561trigger:function(type,data){ 5562return this.each(function(){ 5563jQuery.event.trigger(type,data,this); 5564}); 5565}, 5566triggerHandler:function(type,data){ 5567var elem=this[0]; 5568if(elem){ 5569return jQuery.event.trigger(type,data,elem,true); 5570} 5571} 5572}); 5573var 5574rbracket=/\[\]$/, 5575rCRLF=/\r?\n/g, 5576rsubmitterTypes=/^(?:submit|button|image|reset|file)$/i, 5577rsubmittable=/^(?:input|select|textarea|keygen)/i; 5578function buildParams(prefix,obj,traditional,add){ 5579var name; 5580if(Array.isArray(obj)){ 5581jQuery.each(obj,function(i,v){ 5582if(traditional||rbracket.test(prefix)){ 5583add(prefix,v); 5584}else{ 5585buildParams( 5586prefix+"["+(typeof v==="object"&&v!=null?i:"")+"]", 5587v, 5588traditional, 5589add 5590); 5591} 5592}); 5593}else if(!traditional&&toType(obj)==="object"){ 5594for(name in obj){ 5595buildParams(prefix+"["+name+"]",obj[name],traditional,add); 5596} 5597}else{ 5598add(prefix,obj); 5599} 5600} 5601jQuery.param=function(a,traditional){ 5602var prefix, 5603s=[], 5604add=function(key,valueOrFunction){ 5605var value=isFunction(valueOrFunction)? 5606valueOrFunction(): 5607valueOrFunction; 5608s[s.length]=encodeURIComponent(key)+"="+ 5609encodeURIComponent(value==null?"":value); 5610}; 5611if(a==null){ 5612return""; 5613} 5614if(Array.isArray(a)||(a.jquery&&!jQuery.isPlainObject(a))){ 5615jQuery.each(a,function(){ 5616add(this.name,this.value); 5617}); 5618}else{ 5619for(prefix in a){ 5620buildParams(prefix,a[prefix],traditional,add); 5621} 5622} 5623return s.join("&"); 5624}; 5625jQuery.fn.extend({ 5626serialize:function(){ 5627return jQuery.param(this.serializeArray()); 5628}, 5629serializeArray:function(){ 5630return this.map(function(){ 5631var elements=jQuery.prop(this,"elements"); 5632return elements?jQuery.makeArray(elements):this; 5633}).filter(function(){ 5634var type=this.type; 5635return this.name&&!jQuery(this).is(":disabled")&& 5636rsubmittable.test(this.nodeName)&&!rsubmitterTypes.test(type)&& 5637(this.checked||!rcheckableType.test(type)); 5638}).map(function(_i,elem){ 5639var val=jQuery(this).val(); 5640if(val==null){ 5641return null; 5642} 5643if(Array.isArray(val)){ 5644return jQuery.map(val,function(val){ 5645return{name:elem.name,value:val.replace(rCRLF,"\r\n")}; 5646}); 5647} 5648return{name:elem.name,value:val.replace(rCRLF,"\r\n")}; 5649}).get(); 5650} 5651}); 5652var 5653r20=/%20/g, 5654rhash=/#.*$/, 5655rantiCache=/([?&])_=[^&]*/, 5656rheaders=/^(.*?):[ \t]*([^\r\n]*)$/mg, 5657rlocalProtocol=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/, 5658rnoContent=/^(?:GET|HEAD)$/, 5659rprotocol=/^\/\//, 5660prefilters={}, 5661transports={}, 5662allTypes="*/".concat("*"), 5663originAnchor=document.createElement("a"); 5664originAnchor.href=location.href; 5665function addToPrefiltersOrTransports(structure){ 5666return function(dataTypeExpression,func){ 5667if(typeof dataTypeExpression!=="string"){ 5668func=dataTypeExpression; 5669dataTypeExpression="*"; 5670} 5671var dataType, 5672i=0, 5673dataTypes=dataTypeExpression.toLowerCase().match(rnothtmlwhite)||[]; 5674if(isFunction(func)){ 5675while((dataType=dataTypes[i++])){ 5676if(dataType[0]==="+"){ 5677dataType=dataType.slice(1)||"*"; 5678(structure[dataType]=structure[dataType]||[]).unshift(func); 5679}else{ 5680(structure[dataType]=structure[dataType]||[]).push(func); 5681} 5682} 5683} 5684}; 5685} 5686function inspectPrefiltersOrTransports(structure,options,originalOptions,jqXHR){ 5687var inspected={}, 5688seekingTransport=(structure===transports); 5689function inspect(dataType){ 5690var selected; 5691inspected[dataType]=true; 5692jQuery.each(structure[dataType]||[],function(_,prefilterOrFactory){ 5693var dataTypeOrTransport=prefilterOrFactory(options,originalOptions,jqXHR); 5694if(typeof dataTypeOrTransport==="string"&& 5695!seekingTransport&&!inspected[dataTypeOrTransport]){ 5696options.dataTypes.unshift(dataTypeOrTransport); 5697inspect(dataTypeOrTransport); 5698return false; 5699}else if(seekingTransport){ 5700return!(selected=dataTypeOrTransport); 5701} 5702}); 5703return selected; 5704} 5705return inspect(options.dataTypes[0])||!inspected["*"]&&inspect("*"); 5706} 5707function ajaxExtend(target,src){ 5708var key,deep, 5709flatOptions=jQuery.ajaxSettings.flatOptions||{}; 5710for(key in src){ 5711if(src[key]!==undefined){ 5712(flatOptions[key]?target:(deep||(deep={})))[key]=src[key]; 5713} 5714} 5715if(deep){ 5716jQuery.extend(true,target,deep); 5717} 5718return target; 5719} 5720function ajaxHandleResponses(s,jqXHR,responses){ 5721var ct,type,finalDataType,firstDataType, 5722contents=s.contents, 5723dataTypes=s.dataTypes; 5724while(dataTypes[0]==="*"){ 5725dataTypes.shift(); 5726if(ct===undefined){ 5727ct=s.mimeType||jqXHR.getResponseHeader("Content-Type"); 5728} 5729} 5730if(ct){ 5731for(type in contents){ 5732if(contents[type]&&contents[type].test(ct)){ 5733dataTypes.unshift(type); 5734break; 5735} 5736} 5737} 5738if(dataTypes[0]in responses){ 5739finalDataType=dataTypes[0]; 5740}else{ 5741for(type in responses){ 5742if(!dataTypes[0]||s.converters[type+" "+dataTypes[0]]){ 5743finalDataType=type; 5744break; 5745} 5746if(!firstDataType){ 5747firstDataType=type; 5748} 5749} 5750finalDataType=finalDataType||firstDataType; 5751} 5752if(finalDataType){ 5753if(finalDataType!==dataTypes[0]){ 5754dataTypes.unshift(finalDataType); 5755} 5756return responses[finalDataType]; 5757} 5758} 5759function ajaxConvert(s,response,jqXHR,isSuccess){ 5760var conv2,current,conv,tmp,prev, 5761converters={}, 5762dataTypes=s.dataTypes.slice(); 5763if(dataTypes[1]){ 5764for(conv in s.converters){ 5765converters[conv.toLowerCase()]=s.converters[conv]; 5766} 5767} 5768current=dataTypes.shift(); 5769while(current){ 5770if(s.responseFields[current]){ 5771jqXHR[s.responseFields[current]]=response; 5772} 5773if(!prev&&isSuccess&&s.dataFilter){ 5774response=s.dataFilter(response,s.dataType); 5775} 5776prev=current; 5777current=dataTypes.shift(); 5778if(current){ 5779if(current==="*"){ 5780current=prev; 5781}else if(prev!=="*"&&prev!==current){ 5782conv=converters[prev+" "+current]||converters["* "+current]; 5783if(!conv){ 5784for(conv2 in converters){ 5785tmp=conv2.split(" "); 5786if(tmp[1]===current){ 5787conv=converters[prev+" "+tmp[0]]|| 5788converters["* "+tmp[0]]; 5789if(conv){ 5790if(conv===true){ 5791conv=converters[conv2]; 5792}else if(converters[conv2]!==true){ 5793current=tmp[0]; 5794dataTypes.unshift(tmp[1]); 5795} 5796break; 5797} 5798} 5799} 5800} 5801if(conv!==true){ 5802if(conv&&s.throws){ 5803response=conv(response); 5804}else{ 5805try{ 5806response=conv(response); 5807}catch(e){ 5808return{ 5809state:"parsererror", 5810error:conv?e:"No conversion from "+prev+" to "+current 5811}; 5812} 5813} 5814} 5815} 5816} 5817} 5818return{state:"success",data:response}; 5819} 5820jQuery.extend({ 5821active:0, 5822lastModified:{}, 5823etag:{}, 5824ajaxSettings:{ 5825url:location.href, 5826type:"GET", 5827isLocal:rlocalProtocol.test(location.protocol), 5828global:true, 5829processData:true, 5830async:true, 5831contentType:"application/x-www-form-urlencoded; charset=UTF-8", 5832accepts:{ 5833"*":allTypes, 5834text:"text/plain", 5835html:"text/html", 5836xml:"application/xml, text/xml", 5837json:"application/json, text/javascript" 5838}, 5839contents:{ 5840xml:/\bxml\b/, 5841html:/\bhtml/, 5842json:/\bjson\b/ 5843}, 5844responseFields:{ 5845xml:"responseXML", 5846text:"responseText", 5847json:"responseJSON" 5848}, 5849converters:{ 5850"* text":String, 5851"text html":true, 5852"text json":JSON.parse, 5853"text xml":jQuery.parseXML 5854}, 5855flatOptions:{ 5856url:true, 5857context:true 5858} 5859}, 5860ajaxSetup:function(target,settings){ 5861return settings? 5862ajaxExtend(ajaxExtend(target,jQuery.ajaxSettings),settings): 5863ajaxExtend(jQuery.ajaxSettings,target); 5864}, 5865ajaxPrefilter:addToPrefiltersOrTransports(prefilters), 5866ajaxTransport:addToPrefiltersOrTransports(transports), 5867ajax:function(url,options){ 5868if(typeof url==="object"){ 5869options=url; 5870url=undefined; 5871} 5872options=options||{}; 5873var transport, 5874cacheURL, 5875responseHeadersString, 5876responseHeaders, 5877timeoutTimer, 5878urlAnchor, 5879completed, 5880fireGlobals, 5881i, 5882uncached, 5883s=jQuery.ajaxSetup({},options), 5884callbackContext=s.context||s, 5885globalEventContext=s.context&& 5886(callbackContext.nodeType||callbackContext.jquery)? 5887jQuery(callbackContext): 5888jQuery.event, 5889deferred=jQuery.Deferred(), 5890completeDeferred=jQuery.Callbacks("once memory"), 5891statusCode=s.statusCode||{}, 5892requestHeaders={}, 5893requestHeadersNames={}, 5894strAbort="canceled", 5895jqXHR={ 5896readyState:0, 5897getResponseHeader:function(key){ 5898var match; 5899if(completed){ 5900if(!responseHeaders){ 5901responseHeaders={}; 5902while((match=rheaders.exec(responseHeadersString))){ 5903responseHeaders[match[1].toLowerCase()+" "]= 5904(responseHeaders[match[1].toLowerCase()+" "]||[]) 5905.concat(match[2]); 5906} 5907} 5908match=responseHeaders[key.toLowerCase()+" "]; 5909} 5910return match==null?null:match.join(", "); 5911}, 5912getAllResponseHeaders:function(){ 5913return completed?responseHeadersString:null; 5914}, 5915setRequestHeader:function(name,value){ 5916if(completed==null){ 5917name=requestHeadersNames[name.toLowerCase()]= 5918requestHeadersNames[name.toLowerCase()]||name; 5919requestHeaders[name]=value; 5920} 5921return this; 5922}, 5923overrideMimeType:function(type){ 5924if(completed==null){ 5925s.mimeType=type; 5926} 5927return this; 5928}, 5929statusCode:function(map){ 5930var code; 5931if(map){ 5932if(completed){ 5933jqXHR.always(map[jqXHR.status]); 5934}else{ 5935for(code in map){ 5936statusCode[code]=[statusCode[code],map[code]]; 5937} 5938} 5939} 5940return this; 5941}, 5942abort:function(statusText){ 5943var finalText=statusText||strAbort; 5944if(transport){ 5945transport.abort(finalText); 5946} 5947done(0,finalText); 5948return this; 5949} 5950}; 5951deferred.promise(jqXHR); 5952s.url=((url||s.url||location.href)+"") 5953.replace(rprotocol,location.protocol+"//"); 5954s.type=options.method||options.type||s.method||s.type; 5955s.dataTypes=(s.dataType||"*").toLowerCase().match(rnothtmlwhite)||[""]; 5956if(s.crossDomain==null){ 5957urlAnchor=document.createElement("a"); 5958try{ 5959urlAnchor.href=s.url; 5960urlAnchor.href=urlAnchor.href; 5961s.crossDomain=originAnchor.protocol+"//"+originAnchor.host!== 5962urlAnchor.protocol+"//"+urlAnchor.host; 5963}catch(e){ 5964s.crossDomain=true; 5965} 5966} 5967if(s.data&&s.processData&&typeof s.data!=="string"){ 5968s.data=jQuery.param(s.data,s.traditional); 5969} 5970inspectPrefiltersOrTransports(prefilters,s,options,jqXHR); 5971if(completed){ 5972return jqXHR; 5973} 5974fireGlobals=jQuery.event&&s.global; 5975if(fireGlobals&&jQuery.active++===0){ 5976jQuery.event.trigger("ajaxStart"); 5977} 5978s.type=s.type.toUpperCase(); 5979s.hasContent=!rnoContent.test(s.type); 5980cacheURL=s.url.replace(rhash,""); 5981if(!s.hasContent){ 5982uncached=s.url.slice(cacheURL.length); 5983if(s.data&&(s.processData||typeof s.data==="string")){ 5984cacheURL+=(rquery.test(cacheURL)?"&":"?")+s.data; 5985delete s.data; 5986} 5987if(s.cache===false){ 5988cacheURL=cacheURL.replace(rantiCache,"$1"); 5989uncached=(rquery.test(cacheURL)?"&":"?")+"_="+(nonce.guid++)+ 5990uncached; 5991} 5992s.url=cacheURL+uncached; 5993}else if(s.data&&s.processData&& 5994(s.contentType||"").indexOf("application/x-www-form-urlencoded")===0){ 5995s.data=s.data.replace(r20,"+"); 5996} 5997if(s.ifModified){ 5998if(jQuery.lastModified[cacheURL]){ 5999jqXHR.setRequestHeader("If-Modified-Since",jQuery.lastModified[cacheURL]); 6000} 6001if(jQuery.etag[cacheURL]){ 6002jqXHR.setRequestHeader("If-None-Match",jQuery.etag[cacheURL]); 6003} 6004} 6005if(s.data&&s.hasContent&&s.contentType!==false||options.contentType){ 6006jqXHR.setRequestHeader("Content-Type",s.contentType); 6007} 6008jqXHR.setRequestHeader( 6009"Accept", 6010s.dataTypes[0]&&s.accepts[s.dataTypes[0]]? 6011s.accepts[s.dataTypes[0]]+ 6012(s.dataTypes[0]!=="*"?", "+allTypes+"; q=0.01":""): 6013s.accepts["*"] 6014); 6015for(i in s.headers){ 6016jqXHR.setRequestHeader(i,s.headers[i]); 6017} 6018if(s.beforeSend&& 6019(s.beforeSend.call(callbackContext,jqXHR,s)===false||completed)){ 6020return jqXHR.abort(); 6021} 6022strAbort="abort"; 6023completeDeferred.add(s.complete); 6024jqXHR.done(s.success); 6025jqXHR.fail(s.error); 6026transport=inspectPrefiltersOrTransports(transports,s,options,jqXHR); 6027if(!transport){ 6028done(-1,"No Transport"); 6029}else{ 6030jqXHR.readyState=1; 6031if(fireGlobals){ 6032globalEventContext.trigger("ajaxSend",[jqXHR,s]); 6033} 6034if(completed){ 6035return jqXHR; 6036} 6037if(s.async&&s.timeout>0){ 6038timeoutTimer=window.setTimeout(function(){ 6039jqXHR.abort("timeout"); 6040},s.timeout); 6041} 6042try{ 6043completed=false; 6044transport.send(requestHeaders,done); 6045}catch(e){ 6046if(completed){ 6047throw e; 6048} 6049done(-1,e); 6050} 6051} 6052function done(status,nativeStatusText,responses,headers){ 6053var isSuccess,success,error,response,modified, 6054statusText=nativeStatusText; 6055if(completed){ 6056return; 6057} 6058completed=true; 6059if(timeoutTimer){ 6060window.clearTimeout(timeoutTimer); 6061} 6062transport=undefined; 6063responseHeadersString=headers||""; 6064jqXHR.readyState=status>0?4:0; 6065isSuccess=status>=200&&status<300||status===304; 6066if(responses){ 6067response=ajaxHandleResponses(s,jqXHR,responses); 6068} 6069if(!isSuccess&& 6070jQuery.inArray("script",s.dataTypes)>-1&& 6071jQuery.inArray("json",s.dataTypes)<0){ 6072s.converters["text script"]=function(){}; 6073} 6074response=ajaxConvert(s,response,jqXHR,isSuccess); 6075if(isSuccess){ 6076if(s.ifModified){ 6077modified=jqXHR.getResponseHeader("Last-Modified"); 6078if(modified){ 6079jQuery.lastModified[cacheURL]=modified; 6080} 6081modified=jqXHR.getResponseHeader("etag"); 6082if(modified){ 6083jQuery.etag[cacheURL]=modified; 6084} 6085} 6086if(status===204||s.type==="HEAD"){ 6087statusText="nocontent"; 6088}else if(status===304){ 6089statusText="notmodified"; 6090}else{ 6091statusText=response.state; 6092success=response.data; 6093error=response.error; 6094isSuccess=!error; 6095} 6096}else{ 6097error=statusText; 6098if(status||!statusText){ 6099statusText="error"; 6100if(status<0){ 6101status=0; 6102} 6103} 6104} 6105jqXHR.status=status; 6106jqXHR.statusText=(nativeStatusText||statusText)+""; 6107if(isSuccess){ 6108deferred.resolveWith(callbackContext,[success,statusText,jqXHR]); 6109}else{ 6110deferred.rejectWith(callbackContext,[jqXHR,statusText,error]); 6111} 6112jqXHR.statusCode(statusCode); 6113statusCode=undefined; 6114if(fireGlobals){ 6115globalEventContext.trigger(isSuccess?"ajaxSuccess":"ajaxError", 6116[jqXHR,s,isSuccess?success:error]); 6117} 6118completeDeferred.fireWith(callbackContext,[jqXHR,statusText]); 6119if(fireGlobals){ 6120globalEventContext.trigger("ajaxComplete",[jqXHR,s]); 6121if(!(--jQuery.active)){ 6122jQuery.event.trigger("ajaxStop"); 6123} 6124} 6125} 6126return jqXHR; 6127}, 6128getJSON:function(url,data,callback){ 6129return jQuery.get(url,data,callback,"json"); 6130}, 6131getScript:function(url,callback){ 6132return jQuery.get(url,undefined,callback,"script"); 6133} 6134}); 6135jQuery.each(["get","post"],function(_i,method){ 6136jQuery[method]=function(url,data,callback,type){ 6137if(isFunction(data)){ 6138type=type||callback; 6139callback=data; 6140data=undefined; 6141} 6142return jQuery.ajax(jQuery.extend({ 6143url:url, 6144type:method, 6145dataType:type, 6146data:data, 6147success:callback 6148},jQuery.isPlainObject(url)&&url)); 6149}; 6150}); 6151jQuery.ajaxPrefilter(function(s){ 6152var i; 6153for(i in s.headers){ 6154if(i.toLowerCase()==="content-type"){ 6155s.contentType=s.headers[i]||""; 6156} 6157} 6158}); 6159jQuery._evalUrl=function(url,options,doc){ 6160return jQuery.ajax({ 6161url:url, 6162type:"GET", 6163dataType:"script", 6164cache:true, 6165async:false, 6166global:false, 6167converters:{ 6168"text script":function(){} 6169}, 6170dataFilter:function(response){ 6171jQuery.globalEval(response,options,doc); 6172} 6173}); 6174}; 6175jQuery.fn.extend({ 6176wrapAll:function(html){ 6177var wrap; 6178if(this[0]){ 6179if(isFunction(html)){ 6180html=html.call(this[0]); 6181} 6182wrap=jQuery(html,this[0].ownerDocument).eq(0).clone(true); 6183if(this[0].parentNode){ 6184wrap.insertBefore(this[0]); 6185} 6186wrap.map(function(){ 6187var elem=this; 6188while(elem.firstElementChild){ 6189elem=elem.firstElementChild; 6190} 6191return elem; 6192}).append(this); 6193} 6194return this; 6195}, 6196wrapInner:function(html){ 6197if(isFunction(html)){ 6198return this.each(function(i){ 6199jQuery(this).wrapInner(html.call(this,i)); 6200}); 6201} 6202return this.each(function(){ 6203var self=jQuery(this), 6204contents=self.contents(); 6205if(contents.length){ 6206contents.wrapAll(html); 6207}else{ 6208self.append(html); 6209} 6210}); 6211}, 6212wrap:function(html){ 6213var htmlIsFunction=isFunction(html); 6214return this.each(function(i){ 6215jQuery(this).wrapAll(htmlIsFunction?html.call(this,i):html); 6216}); 6217}, 6218unwrap:function(selector){ 6219this.parent(selector).not("body").each(function(){ 6220jQuery(this).replaceWith(this.childNodes); 6221}); 6222return this; 6223} 6224}); 6225jQuery.expr.pseudos.hidden=function(elem){ 6226return!jQuery.expr.pseudos.visible(elem); 6227}; 6228jQuery.expr.pseudos.visible=function(elem){ 6229return!!(elem.offsetWidth||elem.offsetHeight||elem.getClientRects().length); 6230}; 6231jQuery.ajaxSettings.xhr=function(){ 6232try{ 6233return new window.XMLHttpRequest(); 6234}catch(e){} 6235}; 6236var xhrSuccessStatus={ 62370:200, 62381223:204 6239}, 6240xhrSupported=jQuery.ajaxSettings.xhr(); 6241support.cors=!!xhrSupported&&("withCredentials"in xhrSupported); 6242support.ajax=xhrSupported=!!xhrSupported; 6243jQuery.ajaxTransport(function(options){ 6244var callback,errorCallback; 6245if(support.cors||xhrSupported&&!options.crossDomain){ 6246return{ 6247send:function(headers,complete){ 6248var i, 6249xhr=options.xhr(); 6250xhr.open( 6251options.type, 6252options.url, 6253options.async, 6254options.username, 6255options.password 6256); 6257if(options.xhrFields){ 6258for(i in options.xhrFields){ 6259xhr[i]=options.xhrFields[i]; 6260} 6261} 6262if(options.mimeType&&xhr.overrideMimeType){ 6263xhr.overrideMimeType(options.mimeType); 6264} 6265if(!options.crossDomain&&!headers["X-Requested-With"]){ 6266headers["X-Requested-With"]="XMLHttpRequest"; 6267} 6268for(i in headers){ 6269xhr.setRequestHeader(i,headers[i]); 6270} 6271callback=function(type){ 6272return function(){ 6273if(callback){ 6274callback=errorCallback=xhr.onload= 6275xhr.onerror=xhr.onabort=xhr.ontimeout= 6276xhr.onreadystatechange=null; 6277if(type==="abort"){ 6278xhr.abort(); 6279}else if(type==="error"){ 6280if(typeof xhr.status!=="number"){ 6281complete(0,"error"); 6282}else{ 6283complete( 6284xhr.status, 6285xhr.statusText 6286); 6287} 6288}else{ 6289complete( 6290xhrSuccessStatus[xhr.status]||xhr.status, 6291xhr.statusText, 6292(xhr.responseType||"text")!=="text"|| 6293typeof xhr.responseText!=="string"? 6294{binary:xhr.response}: 6295{text:xhr.responseText}, 6296xhr.getAllResponseHeaders() 6297); 6298} 6299} 6300}; 6301}; 6302xhr.onload=callback(); 6303errorCallback=xhr.onerror=xhr.ontimeout=callback("error"); 6304if(xhr.onabort!==undefined){ 6305xhr.onabort=errorCallback; 6306}else{ 6307xhr.onreadystatechange=function(){ 6308if(xhr.readyState===4){ 6309window.setTimeout(function(){ 6310if(callback){ 6311errorCallback(); 6312} 6313}); 6314} 6315}; 6316} 6317callback=callback("abort"); 6318try{ 6319xhr.send(options.hasContent&&options.data||null); 6320}catch(e){ 6321if(callback){ 6322throw e; 6323} 6324} 6325}, 6326abort:function(){ 6327if(callback){ 6328callback(); 6329} 6330} 6331}; 6332} 6333}); 6334jQuery.ajaxPrefilter(function(s){ 6335if(s.crossDomain){ 6336s.contents.script=false; 6337} 6338}); 6339jQuery.ajaxSetup({ 6340accepts:{ 6341script:"text/javascript, application/javascript, "+ 6342"application/ecmascript, application/x-ecmascript" 6343}, 6344contents:{ 6345script:/\b(?:java|ecma)script\b/ 6346}, 6347converters:{ 6348"text script":function(text){ 6349jQuery.globalEval(text); 6350return text; 6351} 6352} 6353}); 6354jQuery.ajaxPrefilter("script",function(s){ 6355if(s.cache===undefined){ 6356s.cache=false; 6357} 6358if(s.crossDomain){ 6359s.type="GET"; 6360} 6361}); 6362jQuery.ajaxTransport("script",function(s){ 6363if(s.crossDomain||s.scriptAttrs){ 6364var script,callback; 6365return{ 6366send:function(_,complete){ 6367script=jQuery("<script>") 6368.attr(s.scriptAttrs||{}) 6369.prop({charset:s.scriptCharset,src:s.url}) 6370.on("load error",callback=function(evt){ 6371script.remove(); 6372callback=null; 6373if(evt){ 6374complete(evt.type==="error"?404:200,evt.type); 6375} 6376}); 6377document.head.appendChild(script[0]); 6378}, 6379abort:function(){ 6380if(callback){ 6381callback(); 6382} 6383} 6384}; 6385} 6386}); 6387var oldCallbacks=[], 6388rjsonp=/(=)\?(?=&|$)|\?\?/; 6389jQuery.ajaxSetup({ 6390jsonp:"callback", 6391jsonpCallback:function(){ 6392var callback=oldCallbacks.pop()||(jQuery.expando+"_"+(nonce.guid++)); 6393this[callback]=true; 6394return callback; 6395} 6396}); 6397jQuery.ajaxPrefilter("json jsonp",function(s,originalSettings,jqXHR){ 6398var callbackName,overwritten,responseContainer, 6399jsonProp=s.jsonp!==false&&(rjsonp.test(s.url)? 6400"url": 6401typeof s.data==="string"&& 6402(s.contentType||"") 6403.indexOf("application/x-www-form-urlencoded")===0&& 6404rjsonp.test(s.data)&&"data" 6405); 6406if(jsonProp||s.dataTypes[0]==="jsonp"){ 6407callbackName=s.jsonpCallback=isFunction(s.jsonpCallback)? 6408s.jsonpCallback(): 6409s.jsonpCallback; 6410if(jsonProp){ 6411s[jsonProp]=s[jsonProp].replace(rjsonp,"$1"+callbackName); 6412}else if(s.jsonp!==false){ 6413s.url+=(rquery.test(s.url)?"&":"?")+s.jsonp+"="+callbackName; 6414} 6415s.converters["script json"]=function(){ 6416if(!responseContainer){ 6417jQuery.error(callbackName+" was not called"); 6418} 6419return responseContainer[0]; 6420}; 6421s.dataTypes[0]="json"; 6422overwritten=window[callbackName]; 6423window[callbackName]=function(){ 6424responseContainer=arguments; 6425}; 6426jqXHR.always(function(){ 6427if(overwritten===undefined){ 6428jQuery(window).removeProp(callbackName); 6429}else{ 6430window[callbackName]=overwritten; 6431} 6432if(s[callbackName]){ 6433s.jsonpCallback=originalSettings.jsonpCallback; 6434oldCallbacks.push(callbackName); 6435} 6436if(responseContainer&&isFunction(overwritten)){ 6437overwritten(responseContainer[0]); 6438} 6439responseContainer=overwritten=undefined; 6440}); 6441return"script"; 6442} 6443}); 6444support.createHTMLDocument=(function(){ 6445var body=document.implementation.createHTMLDocument("").body; 6446body.innerHTML="<form></form><form></form>"; 6447return body.childNodes.length===2; 6448})(); 6449jQuery.parseHTML=function(data,context,keepScripts){ 6450if(typeof data!=="string"){ 6451return[]; 6452} 6453if(typeof context==="boolean"){ 6454keepScripts=context; 6455context=false; 6456} 6457var base,parsed,scripts; 6458if(!context){ 6459if(support.createHTMLDocument){ 6460context=document.implementation.createHTMLDocument(""); 6461base=context.createElement("base"); 6462base.href=document.location.href; 6463context.head.appendChild(base); 6464}else{ 6465context=document; 6466} 6467} 6468parsed=rsingleTag.exec(data); 6469scripts=!keepScripts&&[]; 6470if(parsed){ 6471return[context.createElement(parsed[1])]; 6472} 6473parsed=buildFragment([data],context,scripts); 6474if(scripts&&scripts.length){ 6475jQuery(scripts).remove(); 6476} 6477return jQuery.merge([],parsed.childNodes); 6478}; 6479jQuery.fn.load=function(url,params,callback){ 6480var selector,type,response, 6481self=this, 6482off=url.indexOf(" "); 6483if(off>-1){ 6484selector=stripAndCollapse(url.slice(off)); 6485url=url.slice(0,off); 6486} 6487if(isFunction(params)){ 6488callback=params; 6489params=undefined; 6490}else if(params&&typeof params==="object"){ 6491type="POST"; 6492} 6493if(self.length>0){ 6494jQuery.ajax({ 6495url:url, 6496type:type||"GET", 6497dataType:"html", 6498data:params 6499}).done(function(responseText){ 6500response=arguments; 6501self.html(selector? 6502jQuery("<div>").append(jQuery.parseHTML(responseText)).find(selector): 6503responseText); 6504}).always(callback&&function(jqXHR,status){ 6505self.each(function(){ 6506callback.apply(this,response||[jqXHR.responseText,status,jqXHR]); 6507}); 6508}); 6509} 6510return this; 6511}; 6512jQuery.expr.pseudos.animated=function(elem){ 6513return jQuery.grep(jQuery.timers,function(fn){ 6514return elem===fn.elem; 6515}).length; 6516}; 6517jQuery.offset={ 6518setOffset:function(elem,options,i){ 6519var curPosition,curLeft,curCSSTop,curTop,curOffset,curCSSLeft,calculatePosition, 6520position=jQuery.css(elem,"position"), 6521curElem=jQuery(elem), 6522props={}; 6523if(position==="static"){ 6524elem.style.position="relative"; 6525} 6526curOffset=curElem.offset(); 6527curCSSTop=jQuery.css(elem,"top"); 6528curCSSLeft=jQuery.css(elem,"left"); 6529calculatePosition=(position==="absolute"||position==="fixed")&& 6530(curCSSTop+curCSSLeft).indexOf("auto")>-1; 6531if(calculatePosition){ 6532curPosition=curElem.position(); 6533curTop=curPosition.top; 6534curLeft=curPosition.left; 6535}else{ 6536curTop=parseFloat(curCSSTop)||0; 6537curLeft=parseFloat(curCSSLeft)||0; 6538} 6539if(isFunction(options)){ 6540options=options.call(elem,i,jQuery.extend({},curOffset)); 6541} 6542if(options.top!=null){ 6543props.top=(options.top-curOffset.top)+curTop; 6544} 6545if(options.left!=null){ 6546props.left=(options.left-curOffset.left)+curLeft; 6547} 6548if("using"in options){ 6549options.using.call(elem,props); 6550}else{ 6551curElem.css(props); 6552} 6553} 6554}; 6555jQuery.fn.extend({ 6556offset:function(options){ 6557if(arguments.length){ 6558return options===undefined? 6559this: 6560this.each(function(i){ 6561jQuery.offset.setOffset(this,options,i); 6562}); 6563} 6564var rect,win, 6565elem=this[0]; 6566if(!elem){ 6567return; 6568} 6569if(!elem.getClientRects().length){ 6570return{top:0,left:0}; 6571} 6572rect=elem.getBoundingClientRect(); 6573win=elem.ownerDocument.defaultView; 6574return{ 6575top:rect.top+win.pageYOffset, 6576left:rect.left+win.pageXOffset 6577}; 6578}, 6579position:function(){ 6580if(!this[0]){ 6581return; 6582} 6583var offsetParent,offset,doc, 6584elem=this[0], 6585parentOffset={top:0,left:0}; 6586if(jQuery.css(elem,"position")==="fixed"){ 6587offset=elem.getBoundingClientRect(); 6588}else{ 6589offset=this.offset(); 6590doc=elem.ownerDocument; 6591offsetParent=elem.offsetParent||doc.documentElement; 6592while(offsetParent&& 6593(offsetParent===doc.body||offsetParent===doc.documentElement)&& 6594jQuery.css(offsetParent,"position")==="static"){ 6595offsetParent=offsetParent.parentNode; 6596} 6597if(offsetParent&&offsetParent!==elem&&offsetParent.nodeType===1){ 6598parentOffset=jQuery(offsetParent).offset(); 6599parentOffset.top+=jQuery.css(offsetParent,"borderTopWidth",true); 6600parentOffset.left+=jQuery.css(offsetParent,"borderLeftWidth",true); 6601} 6602} 6603return{ 6604top:offset.top-parentOffset.top-jQuery.css(elem,"marginTop",true), 6605left:offset.left-parentOffset.left-jQuery.css(elem,"marginLeft",true) 6606}; 6607}, 6608offsetParent:function(){ 6609return this.map(function(){ 6610var offsetParent=this.offsetParent; 6611while(offsetParent&&jQuery.css(offsetParent,"position")==="static"){ 6612offsetParent=offsetParent.offsetParent; 6613} 6614return offsetParent||documentElement; 6615}); 6616} 6617}); 6618jQuery.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(method,prop){ 6619var top="pageYOffset"===prop; 6620jQuery.fn[method]=function(val){ 6621return access(this,function(elem,method,val){ 6622var win; 6623if(isWindow(elem)){ 6624win=elem; 6625}else if(elem.nodeType===9){ 6626win=elem.defaultView; 6627} 6628if(val===undefined){ 6629return win?win[prop]:elem[method]; 6630} 6631if(win){ 6632win.scrollTo( 6633!top?val:win.pageXOffset, 6634top?val:win.pageYOffset 6635); 6636}else{ 6637elem[method]=val; 6638} 6639},method,val,arguments.length); 6640}; 6641});
6642jQuery.each(["top","left"],function(_i,prop){ 6643jQuery.cssHooks[prop]=addGetHookIf(support.pixelPosition, 6644function(elem,computed){ 6645if(computed){ 6646computed=curCSS(elem,prop); 6647return rnumnonpx.test(computed)? 6648jQuery(elem).position()[prop]+"px": 6649computed; 6650} 6651} 6652); 6653}); 6654jQuery.each({Height:"height",Width:"width"},function(name,type){ 6655jQuery.each({ 6656padding:"inner"+name, 6657content:type, 6658"":"outer"+name 6659},function(defaultExtra,funcName){ 6660jQuery.fn[funcName]=function(margin,value){ 6661var chainable=arguments.length&&(defaultExtra||typeof margin!=="boolean"), 6662extra=defaultExtra||(margin===true||value===true?"margin":"border"); 6663return access(this,function(elem,type,value){ 6664var doc; 6665if(isWindow(elem)){ 6666return funcName.indexOf("outer")===0? 6667elem["inner"+name]: 6668elem.document.documentElement["client"+name]; 6669} 6670if(elem.nodeType===9){ 6671doc=elem.documentElement; 6672return Math.max( 6673elem.body["scroll"+name],doc["scroll"+name], 6674elem.body["offset"+name],doc["offset"+name], 6675doc["client"+name] 6676); 6677} 6678return value===undefined? 6679jQuery.css(elem,type,extra): 6680jQuery.style(elem,type,value,extra); 6681},type,chainable?margin:undefined,chainable); 6682}; 6683}); 6684}); 6685jQuery.each([ 6686"ajaxStart", 6687"ajaxStop", 6688"ajaxComplete", 6689"ajaxError", 6690"ajaxSuccess", 6691"ajaxSend" 6692],function(_i,type){ 6693jQuery.fn[type]=function(fn){ 6694return this.on(type,fn); 6695}; 6696}); 6697jQuery.fn.extend({ 6698bind:function(types,data,fn){ 6699return this.on(types,null,data,fn); 6700}, 6701unbind:function(types,fn){ 6702return this.off(types,null,fn); 6703}, 6704delegate:function(selector,types,data,fn){ 6705return this.on(types,selector,data,fn); 6706}, 6707undelegate:function(selector,types,fn){ 6708return arguments.length===1? 6709this.off(selector,"**"): 6710this.off(types,selector||"**",fn); 6711}, 6712hover:function(fnOver,fnOut){ 6713return this 6714.on("mouseenter",fnOver) 6715.on("mouseleave",fnOut||fnOver); 6716} 6717}); 6718jQuery.each( 6719("blur focus focusin focusout resize scroll click dblclick "+ 6720"mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave "+ 6721"change select submit keydown keypress keyup contextmenu").split(" "), 6722function(_i,name){ 6723jQuery.fn[name]=function(data,fn){ 6724return arguments.length>0? 6725this.on(name,null,data,fn): 6726this.trigger(name); 6727}; 6728} 6729); 6730var rtrim=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g; 6731jQuery.proxy=function(fn,context){ 6732var tmp,args,proxy; 6733if(typeof context==="string"){ 6734tmp=fn[context]; 6735context=fn; 6736fn=tmp; 6737} 6738if(!isFunction(fn)){ 6739return undefined; 6740} 6741args=slice.call(arguments,2); 6742proxy=function(){ 6743return fn.apply(context||this,args.concat(slice.call(arguments))); 6744}; 6745proxy.guid=fn.guid=fn.guid||jQuery.guid++; 6746return proxy; 6747}; 6748jQuery.holdReady=function(hold){ 6749if(hold){ 6750jQuery.readyWait++; 6751}else{ 6752jQuery.ready(true); 6753} 6754}; 6755jQuery.isArray=Array.isArray; 6756jQuery.parseJSON=JSON.parse; 6757jQuery.nodeName=nodeName; 6758jQuery.isFunction=isFunction; 6759jQuery.isWindow=isWindow; 6760jQuery.camelCase=camelCase; 6761jQuery.type=toType; 6762jQuery.now=Date.now; 6763jQuery.isNumeric=function(obj){ 6764var type=jQuery.type(obj); 6765return(type==="number"||type==="string")&& 6766!isNaN(obj-parseFloat(obj)); 6767}; 6768jQuery.trim=function(text){ 6769return text==null? 6770"": 6771(text+"").replace(rtrim,"$1"); 6772}; 6773if(typeof define==="function"&&define.amd){ 6774define("jquery",[],function(){ 6775return jQuery; 6776}); 6777} 6778var 6779_jQuery=window.jQuery, 6780_$=window.$; 6781jQuery.noConflict=function(deep){ 6782if(window.$===jQuery){ 6783window.$=_$; 6784} 6785if(deep&&window.jQuery===jQuery){ 6786window.jQuery=_jQuery; 6787} 6788return jQuery; 6789}; 6790if(typeof noGlobal==="undefined"){ 6791window.jQuery=window.$=jQuery; 6792} 6793return jQuery; 6794}); 6795 6796 6797/* prive/javascript/jquery.form.js?1790089484 */ 6798 6799(function(factory){ 6800if(typeof define==='function'&&define.amd){ 6801define(['jquery'],factory); 6802}else if(typeof module==='object'&&module.exports){ 6803module.exports=function(root,jQuery){ 6804if(typeof jQuery==='undefined'){ 6805if(typeof window!=='undefined'){ 6806jQuery=require('jquery'); 6807} 6808else{ 6809jQuery=require('jquery')(root); 6810} 6811} 6812factory(jQuery); 6813return jQuery; 6814}; 6815}else{ 6816factory(jQuery); 6817} 6818}(function($){ 6819'use strict'; 6820var rCRLF=/\r?\n/g; 6821var feature={}; 6822feature.fileapi=$('<input type="file">').get(0).files!==undefined; 6823feature.formdata=(typeof window.FormData!=='undefined'); 6824var hasProp=!!$.fn.prop; 6825$.fn.attr2=function(){ 6826if(!hasProp){ 6827return this.attr.apply(this,arguments); 6828} 6829var val=this.prop.apply(this,arguments); 6830if((val&&val.jquery)||typeof val==='string'){ 6831return val; 6832} 6833return this.attr.apply(this,arguments); 6834}; 6835$.fn.ajaxSubmit=function(options,data,dataType,onSuccess){ 6836if(!this.length){
6837log('ajaxSubmit: skipping submit process - no element selected'); 6838return this; 6839} 6840var method,action,url,isMsie,iframeSrc,$form=this; 6841if(typeof options==='function'){ 6842options={success:options}; 6843}else if(typeof options==='string'||(options===false&&arguments.length>0)){ 6844options={ 6845'url':options, 6846'data':data, 6847'dataType':dataType 6848}; 6849if(typeof onSuccess==='function'){ 6850options.success=onSuccess; 6851} 6852}else if(typeof options==='undefined'){ 6853options={}; 6854} 6855method=options.method||options.type||this.attr2('method'); 6856action=options.url||this.attr2('action'); 6857url=(typeof action==='string')?$.trim(action):''; 6858url=url||window.location.href||''; 6859if(url){ 6860url=(url.match(/^([^#]+)/)||[])[1]; 6861} 6862isMsie=/(MSIE|Trident)/.test(navigator.userAgent||''); 6863iframeSrc=(isMsie&&/^https/i.test(window.location.href||''))?'javascript:false':'about:blank'; 6864options=$.extend(true,{ 6865url:url, 6866success:$.ajaxSettings.success, 6867type:method||$.ajaxSettings.type, 6868iframeSrc:iframeSrc 6869},options); 6870var veto={}; 6871this.trigger('form-pre-serialize',[this,options,veto]); 6872if(veto.veto){ 6873log('ajaxSubmit: submit vetoed via form-pre-serialize trigger'); 6874return this; 6875} 6876if(options.beforeSerialize&&options.beforeSerialize(this,options)===false){ 6877log('ajaxSubmit: submit aborted via beforeSerialize callback'); 6878return this; 6879} 6880var traditional=options.traditional; 6881if(typeof traditional==='undefined'){ 6882traditional=$.ajaxSettings.traditional; 6883} 6884var elements=[]; 6885var qx,a=this.formToArray(options.semantic,elements,options.filtering); 6886if(options.data){ 6887var optionsData=$.isFunction(options.data)?options.data(a):options.data; 6888options.extraData=optionsData; 6889qx=$.param(optionsData,traditional); 6890} 6891if(options.beforeSubmit&&options.beforeSubmit(a,this,options)===false){ 6892log('ajaxSubmit: submit aborted via beforeSubmit callback'); 6893return this; 6894} 6895this.trigger('form-submit-validate',[a,this,options,veto]); 6896if(veto.veto){ 6897log('ajaxSubmit: submit vetoed via form-submit-validate trigger'); 6898return this; 6899} 6900var q=$.param(a,traditional); 6901if(qx){ 6902q=(q?(q+'&'+qx):qx); 6903} 6904if(options.type.toUpperCase()==='GET'){ 6905options.url+=(options.url.indexOf('?')>=0?'&':'?')+q; 6906options.data=null; 6907}else{ 6908options.data=q; 6909} 6910var callbacks=[]; 6911if(options.resetForm){ 6912callbacks.push(function(){ 6913$form.resetForm(); 6914}); 6915} 6916if(options.clearForm){ 6917callbacks.push(function(){ 6918$form.clearForm(options.includeHidden); 6919}); 6920} 6921if(!options.dataType&&options.target){ 6922var oldSuccess=options.success||function(){}; 6923callbacks.push(function(data,textStatus,jqXHR){ 6924var successArguments=arguments, 6925fn=options.replaceTarget?'replaceWith':'html'; 6926if(fn=='html'){ 6927data=$.parseHTML($("<div>").text(data).html()) 6928}; 6929$(options.target)[fn](data).each(function(){ 6930oldSuccess.apply(this,successArguments); 6931}); 6932}); 6933}else if(options.success){ 6934if($.isArray(options.success)){ 6935$.merge(callbacks,options.success); 6936}else{ 6937callbacks.push(options.success); 6938} 6939} 6940options.success=function(data,status,xhr){ 6941var context=options.context||this; 6942for(var i=0,max=callbacks.length;i<max;i++){ 6943callbacks[i].apply(context,[data,status,xhr||$form,$form]); 6944} 6945}; 6946if(options.error){ 6947var oldError=options.error; 6948options.error=function(xhr,status,error){ 6949var context=options.context||this; 6950oldError.apply(context,[xhr,status,error,$form]); 6951}; 6952} 6953if(options.complete){ 6954var oldComplete=options.complete; 6955options.complete=function(xhr,status){ 6956var context=options.context||this; 6957oldComplete.apply(context,[xhr,status,$form]); 6958}; 6959} 6960var fileInputs=$('input[type=file]:enabled',this).filter(function(){ 6961return $(this).val()!==''; 6962}); 6963var hasFileInputs=fileInputs.length>0; 6964var mp='multipart/form-data'; 6965var multipart=($form.attr('enctype')===mp||$form.attr('encoding')===mp); 6966var fileAPI=feature.fileapi&&feature.formdata; 6967log('fileAPI :'+fileAPI); 6968var shouldUseFrame=(hasFileInputs||multipart)&&!fileAPI; 6969var jqxhr; 6970if(options.iframe!==false&&(options.iframe||shouldUseFrame)){ 6971if(options.closeKeepAlive){ 6972$.get(options.closeKeepAlive,function(){ 6973jqxhr=fileUploadIframe(a); 6974}); 6975}else{ 6976jqxhr=fileUploadIframe(a); 6977} 6978}else if((hasFileInputs||multipart)&&fileAPI){ 6979jqxhr=fileUploadXhr(a); 6980}else{ 6981jqxhr=$.ajax(options); 6982} 6983$form.removeData('jqxhr').data('jqxhr',jqxhr); 6984for(var k=0;k<elements.length;k++){ 6985elements[k]=null; 6986} 6987this.trigger('form-submit-notify',[this,options]); 6988return this; 6989function deepSerialize(extraData){ 6990var serialized=$.param(extraData,options.traditional).split('&'); 6991var len=serialized.length; 6992var result=[]; 6993var i,part; 6994for(i=0;i<len;i++){ 6995serialized[i]=serialized[i].replace(/\+/g,' '); 6996part=serialized[i].split('='); 6997result.push([decodeURIComponent(part[0]),decodeURIComponent(part[1])]); 6998} 6999return result; 7000} 7001function fileUploadXhr(a){ 7002var formdata=new FormData(); 7003for(var i=0;i<a.length;i++){ 7004formdata.append(a[i].name,a[i].value); 7005} 7006if(options.extraData){ 7007var serializedData=deepSerialize(options.extraData); 7008for(i=0;i<serializedData.length;i++){ 7009if(serializedData[i]){ 7010formdata.append(serializedData[i][0],serializedData[i][1]); 7011} 7012} 7013} 7014options.data=null; 7015var s=$.extend(true,{},$.ajaxSettings,options,{ 7016contentType:false, 7017processData:false, 7018cache:false, 7019type:method||'POST' 7020}); 7021if(options.uploadProgress){ 7022s.xhr=function(){ 7023var xhr=$.ajaxSettings.xhr(); 7024if(xhr.upload){ 7025xhr.upload.addEventListener('progress',function(event){ 7026var percent=0; 7027var position=event.loaded||event.position; 7028var total=event.total; 7029if(event.lengthComputable){ 7030percent=Math.ceil(position/total*100); 7031} 7032options.uploadProgress(event,position,total,percent); 7033},false); 7034} 7035return xhr; 7036}; 7037} 7038s.data=null; 7039var beforeSend=s.beforeSend; 7040s.beforeSend=function(xhr,o){ 7041if(options.formData){ 7042o.data=options.formData; 7043}else{ 7044o.data=formdata; 7045} 7046if(beforeSend){
7047beforeSend.call(this,xhr,o); 7048} 7049}; 7050return $.ajax(s); 7051} 7052function fileUploadIframe(a){ 7053var form=$form[0],el,i,s,g,id,$io,io,xhr,sub,n,timedOut,timeoutHandle; 7054var deferred=$.Deferred(); 7055deferred.abort=function(status){ 7056xhr.abort(status); 7057}; 7058if(a){ 7059for(i=0;i<elements.length;i++){ 7060el=$(elements[i]); 7061if(hasProp){ 7062el.prop('disabled',false); 7063}else{ 7064el.removeAttr('disabled'); 7065} 7066} 7067} 7068s=$.extend(true,{},$.ajaxSettings,options); 7069s.context=s.context||s; 7070id='jqFormIO'+new Date().getTime(); 7071var ownerDocument=form.ownerDocument; 7072var $body=$form.closest('body'); 7073if(s.iframeTarget){ 7074$io=$(s.iframeTarget,ownerDocument); 7075n=$io.attr2('name'); 7076if(!n){ 7077$io.attr2('name',id); 7078}else{ 7079id=n; 7080} 7081}else{ 7082$io=$('<iframe name="'+id+'" src="'+s.iframeSrc+'">',ownerDocument); 7083$io.css({position:'absolute',top:'-1000px',left:'-1000px'}); 7084} 7085io=$io[0]; 7086xhr={ 7087aborted:0, 7088responseText:null, 7089responseXML:null, 7090status:0, 7091statusText:'n/a', 7092getAllResponseHeaders:function(){}, 7093getResponseHeader:function(){}, 7094setRequestHeader:function(){}, 7095abort:function(status){ 7096var e=(status==='timeout'?'timeout':'aborted'); 7097log('aborting upload... '+e); 7098this.aborted=1; 7099try{ 7100if(io.contentWindow.document.execCommand){ 7101io.contentWindow.document.execCommand('Stop'); 7102} 7103}catch(ignore){} 7104$io.attr('src',s.iframeSrc); 7105xhr.error=e; 7106if(s.error){ 7107s.error.call(s.context,xhr,e,status); 7108} 7109if(g){ 7110$.event.trigger('ajaxError',[xhr,s,e]); 7111} 7112if(s.complete){ 7113s.complete.call(s.context,xhr,e); 7114} 7115} 7116}; 7117g=s.global; 7118if(g&&$.active++===0){ 7119$.event.trigger('ajaxStart'); 7120} 7121if(g){ 7122$.event.trigger('ajaxSend',[xhr,s]); 7123} 7124if(s.beforeSend&&s.beforeSend.call(s.context,xhr,s)===false){ 7125if(s.global){ 7126$.active--; 7127} 7128deferred.reject(); 7129return deferred; 7130} 7131if(xhr.aborted){ 7132deferred.reject(); 7133return deferred; 7134} 7135sub=form.clk; 7136if(sub){ 7137n=sub.name; 7138if(n&&!sub.disabled){ 7139s.extraData=s.extraData||{}; 7140s.extraData[n]=sub.value; 7141if(sub.type==='image'){ 7142s.extraData[n+'.x']=form.clk_x; 7143s.extraData[n+'.y']=form.clk_y; 7144} 7145} 7146} 7147var CLIENT_TIMEOUT_ABORT=1; 7148var SERVER_ABORT=2; 7149function getDoc(frame){ 7150var doc=null; 7151try{ 7152if(frame.contentWindow){ 7153doc=frame.contentWindow.document; 7154} 7155}catch(err){ 7156log('cannot get iframe.contentWindow document: '+err); 7157} 7158if(doc){ 7159return doc; 7160} 7161try{ 7162doc=frame.contentDocument?frame.contentDocument:frame.document; 7163}catch(err){ 7164log('cannot get iframe.contentDocument: '+err); 7165doc=frame.document; 7166} 7167return doc; 7168} 7169var csrf_token=$('meta[name=csrf-token]').attr('content'); 7170var csrf_param=$('meta[name=csrf-param]').attr('content'); 7171if(csrf_param&&csrf_token){ 7172s.extraData=s.extraData||{}; 7173s.extraData[csrf_param]=csrf_token; 7174} 7175function doSubmit(){ 7176var t=$form.attr2('target'), 7177a=$form.attr2('action'), 7178mp='multipart/form-data', 7179et=$form.attr('enctype')||$form.attr('encoding')||mp; 7180form.setAttribute('target',id); 7181if(!method||/post/i.test(method)){ 7182form.setAttribute('method','POST'); 7183} 7184if(a!==s.url){ 7185form.setAttribute('action',s.url); 7186} 7187if(!s.skipEncodingOverride&&(!method||/post/i.test(method))){ 7188$form.attr({ 7189encoding:'multipart/form-data', 7190enctype:'multipart/form-data' 7191}); 7192} 7193if(s.timeout){ 7194timeoutHandle=setTimeout(function(){ 7195timedOut=true;cb(CLIENT_TIMEOUT_ABORT); 7196},s.timeout); 7197} 7198function checkState(){ 7199try{ 7200var state=getDoc(io).readyState; 7201log('state = '+state); 7202if(state&&state.toLowerCase()==='uninitialized'){ 7203setTimeout(checkState,50); 7204} 7205}catch(e){ 7206log('Server abort: ',e,' (',e.name,')'); 7207cb(SERVER_ABORT); 7208if(timeoutHandle){ 7209clearTimeout(timeoutHandle); 7210} 7211timeoutHandle=undefined; 7212} 7213} 7214var extraInputs=[]; 7215try{ 7216if(s.extraData){ 7217for(var n in s.extraData){ 7218if(s.extraData.hasOwnProperty(n)){ 7219if($.isPlainObject(s.extraData[n])&&s.extraData[n].hasOwnProperty('name')&&s.extraData[n].hasOwnProperty('value')){ 7220extraInputs.push( 7221$('<input type="hidden" name="'+s.extraData[n].name+'">',ownerDocument).val(s.extraData[n].value) 7222.appendTo(form)[0]); 7223}else{ 7224extraInputs.push( 7225$('<input type="hidden" name="'+n+'">',ownerDocument).val(s.extraData[n]) 7226.appendTo(form)[0]); 7227} 7228} 7229} 7230} 7231if(!s.iframeTarget){ 7232$io.appendTo($body); 7233} 7234if(io.attachEvent){ 7235io.attachEvent('onload',cb); 7236}else{ 7237io.addEventListener('load',cb,false); 7238} 7239setTimeout(checkState,15); 7240try{ 7241form.submit(); 7242}catch(err){ 7243var submitFn=document.createElement('form').submit; 7244submitFn.apply(form); 7245} 7246}finally{ 7247form.setAttribute('action',a); 7248form.setAttribute('enctype',et); 7249if(t){ 7250form.setAttribute('target',t); 7251}else{ 7252$form.removeAttr('target'); 7253} 7254$(extraInputs).remove(); 7255} 7256} 7257if(s.forceSync){ 7258doSubmit(); 7259}else{ 7260setTimeout(doSubmit,10); 7261} 7262var data,doc,domCheckCount=50,callbackProcessed; 7263function cb(e){ 7264if(xhr.aborted||callbackProcessed){ 7265return; 7266} 7267doc=getDoc(io); 7268if(!doc){ 7269log('cannot access response document'); 7270e=SERVER_ABORT; 7271} 7272if(e===CLIENT_TIMEOUT_ABORT&&xhr){ 7273xhr.abort('timeout'); 7274deferred.reject(xhr,'timeout'); 7275return; 7276} 7277if(e===SERVER_ABORT&&xhr){ 7278xhr.abort('server abort'); 7279deferred.reject(xhr,'error','server abort'); 7280return; 7281} 7282if(!doc||doc.location.href===s.iframeSrc){ 7283if(!timedOut){ 7284return; 7285} 7286} 7287if(io.detachEvent){ 7288io.detachEvent('onload',cb); 7289}else{ 7290io.removeEventListener('load',cb,false); 7291} 7292var status='success',errMsg; 7293try{ 7294if(timedOut){ 7295throw'timeout'; 7296} 7297var isXml=s.dataType==='xml'||doc.XMLDocument||$.isXMLDoc(doc); 7298log('isXml='+isXml); 7299if(!isXml&&window.opera&&(doc.body===null||!doc.body.innerHTML)){ 7300if(--domCheckCount){ 7301log('requeing onLoad callback, DOM not available'); 7302setTimeout(cb,250); 7303return; 7304} 7305} 7306var docRoot=doc.body?doc.body:doc.documentElement; 7307xhr.responseText=docRoot?docRoot.innerHTML:null; 7308xhr.responseXML=doc.XMLDocument?doc.XMLDocument:doc; 7309if(isXml){ 7310s.dataType='xml'; 7311} 7312xhr.getResponseHeader=function(header){ 7313var headers={'content-type':s.dataType}; 7314return headers[header.toLowerCase()]; 7315}; 7316if(docRoot){ 7317xhr.status=Number(docRoot.getAttribute('status'))||xhr.status; 7318xhr.statusText=docRoot.getAttribute('statusText')||xhr.statusText; 7319} 7320var dt=(s.dataType||'').toLowerCase(); 7321var scr=/(json|script|text)/.test(dt); 7322if(scr||s.textarea){ 7323var ta=doc.getElementsByTagName('textarea')[0]; 7324if(ta){ 7325xhr.responseText=ta.value; 7326xhr.status=Number(ta.getAttribute('status'))||xhr.status; 7327xhr.statusText=ta.getAttribute('statusText')||xhr.statusText; 7328}else if(scr){ 7329var pre=doc.getElementsByTagName('pre')[0]; 7330var b=doc.getElementsByTagName('body')[0]; 7331if(pre){ 7332xhr.responseText=pre.textContent?pre.textContent:pre.innerText; 7333}else if(b){ 7334xhr.responseText=b.textContent?b.textContent:b.innerText; 7335} 7336} 7337}else if(dt==='xml'&&!xhr.responseXML&&xhr.responseText){ 7338xhr.responseXML=toXml(xhr.responseText); 7339} 7340try{ 7341data=httpData(xhr,dt,s); 7342}catch(err){ 7343status='parsererror'; 7344xhr.error=errMsg=(err||status); 7345} 7346}catch(err){ 7347log('error caught: ',err); 7348status='error'; 7349xhr.error=errMsg=(err||status); 7350} 7351if(xhr.aborted){ 7352log('upload aborted'); 7353status=null; 7354} 7355if(xhr.status){ 7356status=((xhr.status>=200&&xhr.status<300)||xhr.status===304)?'success':'error'; 7357} 7358if(status==='success'){ 7359if(s.success){ 7360s.success.call(s.context,data,'success',xhr); 7361} 7362deferred.resolve(xhr.responseText,'success',xhr); 7363if(g){
7364$.event.trigger('ajaxSuccess',[xhr,s]); 7365} 7366}else if(status){ 7367if(typeof errMsg==='undefined'){ 7368errMsg=xhr.statusText; 7369} 7370if(s.error){ 7371s.error.call(s.context,xhr,status,errMsg); 7372} 7373deferred.reject(xhr,'error',errMsg); 7374if(g){ 7375$.event.trigger('ajaxError',[xhr,s,errMsg]); 7376} 7377} 7378if(g){ 7379$.event.trigger('ajaxComplete',[xhr,s]); 7380} 7381if(g&&!--$.active){ 7382$.event.trigger('ajaxStop'); 7383} 7384if(s.complete){ 7385s.complete.call(s.context,xhr,status); 7386} 7387callbackProcessed=true; 7388if(s.timeout){ 7389clearTimeout(timeoutHandle); 7390} 7391setTimeout(function(){ 7392if(!s.iframeTarget){ 7393$io.remove(); 7394}else{ 7395$io.attr('src',s.iframeSrc); 7396} 7397xhr.responseXML=null; 7398},100); 7399} 7400var toXml=$.parseXML||function(s,doc){ 7401if(window.ActiveXObject){ 7402doc=new ActiveXObject('Microsoft.XMLDOM'); 7403doc.async='false'; 7404doc.loadXML(s); 7405}else{ 7406doc=(new DOMParser()).parseFromString(s,'text/xml'); 7407} 7408return(doc&&doc.documentElement&&doc.documentElement.nodeName!=='parsererror')?doc:null; 7409}; 7410var parseJSON=$.parseJSON||function(s){ 7411window.console.error('jquery.parseJSON is undefined'); 7412return null; 7413}; 7414var httpData=function(xhr,type,s){ 7415var ct=xhr.getResponseHeader('content-type')||'', 7416xml=((type==='xml'||!type)&&ct.indexOf('xml')>=0), 7417data=xml?xhr.responseXML:xhr.responseText; 7418if(xml&&data.documentElement.nodeName==='parsererror'){ 7419if($.error){ 7420$.error('parsererror'); 7421} 7422} 7423if(s&&s.dataFilter){ 7424data=s.dataFilter(data,type); 7425} 7426if(typeof data==='string'){ 7427if((type==='json'||!type)&&ct.indexOf('json')>=0){ 7428data=parseJSON(data); 7429}else if((type==='script'||!type)&&ct.indexOf('javascript')>=0){ 7430$.globalEval(data); 7431} 7432} 7433return data; 7434}; 7435return deferred; 7436} 7437}; 7438$.fn.ajaxForm=function(options,data,dataType,onSuccess){ 7439if(typeof options==='string'||(options===false&&arguments.length>0)){ 7440options={ 7441'url':options, 7442'data':data, 7443'dataType':dataType 7444}; 7445if(typeof onSuccess==='function'){ 7446options.success=onSuccess; 7447} 7448} 7449options=options||{}; 7450options.delegation=options.delegation&&$.isFunction($.fn.on); 7451if(!options.delegation&&this.length===0){ 7452var o={s:this.selector,c:this.context}; 7453if(!$.isReady&&o.s){ 7454log('DOM not ready, queuing ajaxForm'); 7455$(function(){ 7456$(o.s,o.c).ajaxForm(options); 7457}); 7458return this; 7459} 7460log('terminating; zero elements found by selector'+($.isReady?'':' (DOM not ready)')); 7461return this; 7462} 7463if(options.delegation){ 7464$(document) 7465.off('submit.form-plugin',this.selector,doAjaxSubmit) 7466.off('click.form-plugin',this.selector,captureSubmittingElement) 7467.on('submit.form-plugin',this.selector,options,doAjaxSubmit) 7468.on('click.form-plugin',this.selector,options,captureSubmittingElement); 7469return this; 7470} 7471if(options.beforeFormUnbind){ 7472options.beforeFormUnbind(this,options); 7473} 7474return this.ajaxFormUnbind() 7475.on('submit.form-plugin',options,doAjaxSubmit) 7476.on('click.form-plugin',options,captureSubmittingElement); 7477}; 7478function doAjaxSubmit(e){ 7479var options=e.data; 7480if(!e.isDefaultPrevented()){ 7481e.preventDefault(); 7482$(e.target).closest('form').ajaxSubmit(options); 7483} 7484} 7485function captureSubmittingElement(e){ 7486var target=e.target; 7487var $el=$(target); 7488if(!$el.is('[type=submit],[type=image]')){ 7489var t=$el.closest('[type=submit]'); 7490if(t.length===0){ 7491return; 7492} 7493target=t[0]; 7494} 7495var form=target.form; 7496form.clk=target; 7497if(target.type==='image'){ 7498if(typeof e.offsetX!=='undefined'){ 7499form.clk_x=e.offsetX; 7500form.clk_y=e.offsetY; 7501}else if(typeof $.fn.offset==='function'){ 7502var offset=$el.offset(); 7503form.clk_x=e.pageX-offset.left; 7504form.clk_y=e.pageY-offset.top; 7505}else{ 7506form.clk_x=e.pageX-target.offsetLeft; 7507form.clk_y=e.pageY-target.offsetTop; 7508} 7509} 7510setTimeout(function(){ 7511form.clk=form.clk_x=form.clk_y=null; 7512},100); 7513} 7514$.fn.ajaxFormUnbind=function(){ 7515return this.off('submit.form-plugin click.form-plugin'); 7516}; 7517$.fn.formToArray=function(semantic,elements,filtering){ 7518var a=[]; 7519if(this.length===0){ 7520return a; 7521} 7522var form=this[0]; 7523var formId=this.attr('id'); 7524var els=(semantic||typeof form.elements==='undefined')?form.getElementsByTagName('*'):form.elements; 7525var els2; 7526if(els){ 7527els=$.makeArray(els); 7528} 7529if(formId&&(semantic||/(Edge|Trident)\//.test(navigator.userAgent))){ 7530els2=$(':input[form="'+formId+'"]').get(); 7531if(els2.length){ 7532els=(els||[]).concat(els2); 7533} 7534} 7535if(!els||!els.length){ 7536return a; 7537}
7538if($.isFunction(filtering)){ 7539els=$.map(els,filtering); 7540} 7541var i,j,n,v,el,max,jmax; 7542for(i=0,max=els.length;i<max;i++){ 7543el=els[i]; 7544n=el.name; 7545if(!n||el.disabled){ 7546continue; 7547} 7548if(semantic&&form.clk&&el.type==='image'){ 7549if(form.clk===el){ 7550a.push({name:n,value:$(el).val(),type:el.type}); 7551a.push({name:n+'.x',value:form.clk_x},{name:n+'.y',value:form.clk_y}); 7552} 7553continue; 7554} 7555v=$.fieldValue(el,true); 7556if(v&&v.constructor===Array){ 7557if(elements){ 7558elements.push(el); 7559} 7560for(j=0,jmax=v.length;j<jmax;j++){ 7561a.push({name:n,value:v[j]}); 7562} 7563}else if(feature.fileapi&&el.type==='file'){ 7564if(elements){ 7565elements.push(el); 7566} 7567var files=el.files; 7568if(files.length){ 7569for(j=0;j<files.length;j++){ 7570a.push({name:n,value:files[j],type:el.type}); 7571} 7572}else{ 7573a.push({name:n,value:'',type:el.type}); 7574} 7575}else if(v!==null&&typeof v!=='undefined'){ 7576if(elements){ 7577elements.push(el); 7578} 7579a.push({name:n,value:v,type:el.type,required:el.required}); 7580} 7581} 7582if(!semantic&&form.clk){ 7583var $input=$(form.clk),input=$input[0]; 7584n=input.name; 7585if(n&&!input.disabled&&input.type==='image'){ 7586a.push({name:n,value:$input.val()}); 7587a.push({name:n+'.x',value:form.clk_x},{name:n+'.y',value:form.clk_y}); 7588} 7589} 7590return a; 7591}; 7592$.fn.formSerialize=function(semantic){ 7593return $.param(this.formToArray(semantic)); 7594}; 7595$.fn.fieldSerialize=function(successful){ 7596var a=[]; 7597this.each(function(){ 7598var n=this.name; 7599if(!n){ 7600return; 7601} 7602var v=$.fieldValue(this,successful); 7603if(v&&v.constructor===Array){ 7604for(var i=0,max=v.length;i<max;i++){ 7605a.push({name:n,value:v[i]}); 7606} 7607}else if(v!==null&&typeof v!=='undefined'){ 7608a.push({name:this.name,value:v}); 7609} 7610}); 7611return $.param(a); 7612}; 7613$.fn.fieldValue=function(successful){ 7614for(var val=[],i=0,max=this.length;i<max;i++){ 7615var el=this[i]; 7616var v=$.fieldValue(el,successful); 7617if(v===null||typeof v==='undefined'||(v.constructor===Array&&!v.length)){ 7618continue; 7619} 7620if(v.constructor===Array){ 7621$.merge(val,v); 7622}else{ 7623val.push(v); 7624} 7625} 7626return val; 7627}; 7628$.fieldValue=function(el,successful){ 7629var n=el.name,t=el.type,tag=el.tagName.toLowerCase(); 7630if(typeof successful==='undefined'){ 7631successful=true; 7632} 7633if(successful&&(!n||el.disabled||t==='reset'||t==='button'|| 7634(t==='checkbox'||t==='radio')&&!el.checked|| 7635(t==='submit'||t==='image')&&el.form&&el.form.clk!==el|| 7636tag==='select'&&el.selectedIndex===-1)){ 7637return null; 7638} 7639if(tag==='select'){ 7640var index=el.selectedIndex; 7641if(index<0){ 7642return null; 7643} 7644var a=[],ops=el.options; 7645var one=(t==='select-one'); 7646var max=(one?index+1:ops.length); 7647for(var i=(one?index:0);i<max;i++){ 7648var op=ops[i]; 7649if(op.selected&&!op.disabled){ 7650var v=op.value; 7651if(!v){ 7652v=(op.attributes&&op.attributes.value&&!(op.attributes.value.specified))?op.text:op.value; 7653} 7654if(one){ 7655return v; 7656} 7657a.push(v); 7658} 7659} 7660return a; 7661} 7662return $(el).val().replace(rCRLF,'\r\n'); 7663}; 7664$.fn.clearForm=function(includeHidden){ 7665return this.each(function(){ 7666$('input,select,textarea',this).clearFields(includeHidden); 7667}); 7668}; 7669$.fn.clearFields=$.fn.clearInputs=function(includeHidden){ 7670var re=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i; 7671return this.each(function(){ 7672var t=this.type,tag=this.tagName.toLowerCase(); 7673if(re.test(t)||tag==='textarea'){ 7674this.value=''; 7675}else if(t==='checkbox'||t==='radio'){ 7676this.checked=false; 7677}else if(tag==='select'){ 7678this.selectedIndex=-1; 7679}else if(t==='file'){ 7680if(/MSIE/.test(navigator.userAgent)){ 7681$(this).replaceWith($(this).clone(true)); 7682}else{ 7683$(this).val(''); 7684} 7685}else if(includeHidden){ 7686if((includeHidden===true&&/hidden/.test(t))|| 7687(typeof includeHidden==='string'&&$(this).is(includeHidden))){ 7688this.value=''; 7689} 7690} 7691}); 7692}; 7693$.fn.resetForm=function(){ 7694return this.each(function(){ 7695var el=$(this); 7696var tag=this.tagName.toLowerCase(); 7697switch(tag){ 7698case'input': 7699this.checked=this.defaultChecked; 7700case'textarea': 7701this.value=this.defaultValue; 7702return true; 7703case'option': 7704case'optgroup': 7705var select=el.parents('select'); 7706if(select.length&&select[0].multiple){ 7707if(tag==='option'){ 7708this.selected=this.defaultSelected; 7709}else{ 7710el.find('option').resetForm(); 7711} 7712}else{ 7713select.resetForm(); 7714} 7715return true; 7716case'select': 7717el.find('option').each(function(i){ 7718this.selected=this.defaultSelected; 7719if(this.defaultSelected&&!el[0].multiple){ 7720el[0].selectedIndex=i; 7721return false;
7722} 7723}); 7724return true; 7725case'label': 7726var forEl=$(el.attr('for')); 7727var list=el.find('input,select,textarea'); 7728if(forEl[0]){ 7729list.unshift(forEl[0]); 7730} 7731list.resetForm(); 7732return true; 7733case'form': 7734if(typeof this.reset==='function'||(typeof this.reset==='object'&&!this.reset.nodeType)){ 7735this.reset(); 7736} 7737return true; 7738default: 7739el.find('form,input,label,select,textarea').resetForm(); 7740return true; 7741} 7742}); 7743}; 7744$.fn.enable=function(b){ 7745if(typeof b==='undefined'){ 7746b=true; 7747} 7748return this.each(function(){ 7749this.disabled=!b; 7750}); 7751}; 7752$.fn.selected=function(select){ 7753if(typeof select==='undefined'){ 7754select=true; 7755} 7756return this.each(function(){ 7757var t=this.type; 7758if(t==='checkbox'||t==='radio'){ 7759this.checked=select; 7760}else if(this.tagName.toLowerCase()==='option'){ 7761var $sel=$(this).parent('select'); 7762if(select&&$sel[0]&&$sel[0].type==='select-one'){ 7763$sel.find('option').selected(false); 7764} 7765this.selected=select; 7766} 7767}); 7768}; 7769$.fn.ajaxSubmit.debug=false; 7770function log(){ 7771if(!$.fn.ajaxSubmit.debug){ 7772return; 7773} 7774var msg='[jquery.form] '+Array.prototype.join.call(arguments,''); 7775if(window.console&&window.console.log){ 7776window.console.log(msg); 7777}else if(window.opera&&window.opera.postError){ 7778window.opera.postError(msg); 7779} 7780} 7781})); 7782 7783 7784/* prive/javascript/jquery.autosave.js?1790089484 */ 7785 7786(function($){ 7787$.fn.autosave=function(opt){ 7788opt=$.extend({ 7789url:window.location, 7790confirm:false, 7791confirmstring:'Sauvegarder ?' 7792},opt); 7793var save_changed=function(){ 7794$('form.autosavechanged') 7795.each(function(){ 7796if(!opt.confirm||confirm(opt.confirmstring)){ 7797var contenu=$(this).serialize(); 7798var d=new Date(); 7799contenu=contenu+"&__timestamp="+Math.round(d.getTime()/1000); 7800$.post(opt.url,{ 7801'action':'session', 7802'var':'autosave_'+$('input[name=autosave]',this).val(), 7803'val':contenu 7804}); 7805} 7806}).removeClass('autosavechanged'); 7807}; 7808$(window).on('unload',save_changed); 7809return this 7810.on('keyup',function(){ 7811$(this).addClass('autosavechanged'); 7812}) 7813.on('change',function(){ 7814$(this).addClass('autosavechanged'); 7815save_changed(); 7816}) 7817.on('submit',function(){ 7818save_changed(); 7819}); 7820}; 7821})(jQuery); 7822 7823 7824/* prive/javascript/jquery.placeholder-label.js?1790089484 */ 7825 7826(function($){
7827$.placeholderLabel={ 7828placeholder_class:null, 7829add_placeholder:function(){ 7830if($(this).val()==$(this).attr('placeholder')){ 7831$(this).val('').removeClass($.placeholderLabel.placeholder_class); 7832} 7833}, 7834remove_placeholder:function(){ 7835if($(this).val()==''){ 7836$(this).val($(this).attr('placeholder')).addClass($.placeholderLabel.placeholder_class); 7837} 7838}, 7839disable_placeholder_fields:function(){ 7840$(this).find("input[placeholder]").each(function(){ 7841if($(this).val()==$(this).attr('placeholder')){ 7842$(this).val(''); 7843} 7844}); 7845return true; 7846} 7847}; 7848$.fn.placeholderLabel=function(options){ 7849var dummy=document.createElement('input'); 7850if(dummy.placeholder!=undefined){ 7851return this; 7852} 7853var config={ 7854placeholder_class:'placeholder' 7855}; 7856if(options)$.extend(config,options); 7857$.placeholderLabel.placeholder_class=config.placeholder_class; 7858this.each(function(){ 7859var input=$(this); 7860input.focus($.placeholderLabel.add_placeholder); 7861input.blur($.placeholderLabel.remove_placeholder); 7862input.triggerHandler('focus'); 7863input.triggerHandler('blur'); 7864$(this.form).submit($.placeholderL
7864abel.disable_placeholder_fields); 7865}); 7866return this; 7867} 7868})(jQuery); 7869 7870 7871/* prive/javascript/ajaxCallback.js?1790089484 */ 7872jQuery.spip=jQuery.spip||{}; 7873jQuery.spip.log=function(){ 7874if(jQuery.spip.debug&&window.console&&window.console.log) 7875window.console.log.apply(this,arguments); 7876} 7877jQuery.spip.test_espace_prive=function(){ 7878if(typeof spipConfig.core.test_espace_prive!=undefined&&spipConfig.core.test_espace_prive){ 7879return true; 7880} 7881return false; 7882} 7883if(!jQuery.spip.load_handlers){ 7884jQuery.spip.load_handlers=new Array(); 7885function onAjaxLoad(f){ 7886jQuery.spip.load_handlers.push(f); 7887}; 7888jQuery.spip.triggerAjaxLoad=function(root){ 7889jQuery.spip.log('triggerAjaxLoad'); 7890jQuery.spip.log(root); 7891for(var i=0;i<jQuery.spip.load_handlers.length;i++) 7892jQuery.spip.load_handlers[i].apply(root); 7893}; 7894jQuery.spip.intercepted={}; 7895jQuery.spip.intercepted.load=jQuery.fn.load; 7896jQuery.fn.load=function(url,params,callback){ 7897if(typeof url!=="string"){ 7898return jQuery.spip.intercepted.load.apply(this,arguments); 7899} 7900callback=callback||function(){}; 7901if(params){ 7902if(params.constructor==Function){ 7903callback=params; 7904params=null; 7905} 7906} 7907params=jQuery.extend(params,{triggerAjaxLoad:false}); 7908var callback2=function(){jQuery.spip.log('jQuery.load');jQuery.spip.triggerAjaxLoad(this);callback.apply(this,arguments);}; 7909return jQuery.spip.intercepted.load.apply(this,[url,params,callback2]); 7910}; 7911jQuery.spip.intercepted.ajaxSubmit=jQuery.fn.ajaxSubmit; 7912jQuery.fn.ajaxSubmit=function(options){ 7913options=options||{}; 7914if(typeof options.onAjaxLoad=="undefined"||options.onAjaxLoad!=false){ 7915var me=jQuery(this).parents('div.ajax'); 7916if(me.length) 7917me=me.parent(); 7918else 7919me=document; 7920if(typeof options=='function') 7921options={success:options}; 7922var callback=options.success||function(){}; 7923options.success=function(){callback.apply(this,arguments);jQuery.spip.log('jQuery.ajaxSubmit');jQuery.spip.triggerAjaxLoad(me);} 7924} 7925return jQuery.spip.intercepted.ajaxSubmit.apply(this,[options]); 7926} 7927jQuery.spip.intercepted.ajax=jQuery.ajax; 7928jQuery.ajax=function(url,settings){ 7929if(typeof settings=='undefined'){ 7930settings={}; 7931if(typeof url=='object'){ 7932settings=url; 7933url=null; 7934} 7935} 7936if(typeof url=='string'){ 7937settings['url']=url; 7938} 7939if(settings.data&&settings.data['triggerAjaxLoad']===false){ 7940settings.data['triggerAjaxLoad']=null; 7941return jQuery.spip.intercepted.ajax(settings); 7942} 7943var s=jQuery.extend(true,{},jQuery.ajaxSettings,settings); 7944var callbackContext=s.context||s; 7945try{ 7946if(jQuery.ajax.caller==jQuery.spip.intercepted.load||jQuery.ajax.caller==jQuery.spip.intercepted.ajaxSubmit) 7947return jQuery.spip.intercepted.ajax(settings); 7948} 7949catch(err){} 7950var orig_complete=s.complete||function(){}; 7951settings.complete=function(res,status){
7952var dataType=settings.dataType; 7953var ct=(res&&(typeof res.getResponseHeader=='function')) 7954?res.getResponseHeader("content-type"):''; 7955var xml=!dataType&&ct&&ct.indexOf("xml")>=0; 7956orig_complete.call(callbackContext,res,status); 7957if((!dataType&&!xml)||dataType=="html"){ 7958jQuery.spip.log('jQuery.ajax'); 7959if(typeof s.onAjaxLoad=="undefined"||s.onAjaxLoad!=false) 7960jQuery.spip.triggerAjaxLoad(s.ajaxTarget?s.ajaxTarget:document); 7961} 7962}; 7963return jQuery.spip.intercepted.ajax(settings); 7964}; 7965} 7966jQuery.uaMatch=function(ua){ 7967ua=ua.toLowerCase(); 7968var match=/(chrome)[ \/]([\w.]+)/.exec(ua)||/(webkit)[ \/]([\w.]+)/.exec(ua)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua)||/(msie) ([\w.]+)/.exec(ua)|| 7969ua.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua)|| 7970[]; 7971return{ 7972browser:match[1]||"", 7973version:match[2]||"0" 7974}; 7975}; 7976if(!jQuery.browser){ 7977matched=jQuery.uaMatch(navigator.userAgent); 7978browser={}; 7979if(matched.browser){ 7980browser[matched.browser]=true; 7981browser.version=matched.version; 7982} 7983if(browser.chrome){ 7984browser.webkit=true; 7985}else if(browser.webkit){ 7986browser.safari=true; 7987} 7988jQuery.browser=browser; 7989} 7990jQuery.getScript=function(url,callback){ 7991return $.ajax({ 7992url:url, 7993dataType:"script", 7994success:callback, 7995cache:true 7996}); 7997} 7998jQuery.fn.positionner=function(force,setfocus){ 7999if(!this.length){ 8000return this; 8001} 8002var offset=jQuery(this).offset(); 8003var hauteur=parseInt(jQuery(this).css('height')); 8004var marge=jQuery.spip.positionner_marge||5; 8005var scrolltop=self['pageYOffset']|| 8006jQuery.boxModel&&document.documentElement['scrollTop']|| 8007document.body['scrollTop']; 8008var h=jQuery(window).height(); 8009var scroll=0; 8010if(force||(offset&&offset['top']-marge<=scrolltop)){ 8011scroll=offset['top']-marge; 8012} 8013else if(offset&&offset['top']+hauteur-h+marge>scrolltop){ 8014scroll=Math.min(offset['top']-marge-15,offset['top']+hauteur-h+40); 8015} 8016if(scroll) 8017jQuery('html,body') 8018.animate({scrollTop:scroll},300); 8019if(setfocus!==false) 8020jQuery(jQuery('*',this).filter('input[type=text],textarea')[0]).focus(); 8021return this; 8022} 8023jQuery.spip.virtualbuffer_id='spip_virtualbufferupdate'; 8024jQuery.spip.initReaderBuffer=function(){ 8025if(jQuery('#'+jQuery.spip.virtualbuffer_id).length)return; 8026jQuery('body').append('<div style="float:left;width:0;height:0;position:absolute;left:-5000px;top:-5000px;"><input type="hidden" name="'+jQuery.spip.virtualbuffer_id+'" id="'+jQuery.spip.virtualbuffer_id+'" value="0"></div>'); 8027} 8028jQuery.spip.updateReaderBuffer=function(){ 8029var i=jQuery('#'+jQuery.spip.virtualbuffer_id); 8030if(!i.length)return; 8031i.val(parseInt(i.val())+1); 8032} 8033jQuery.fn.formulaire_setContainer=function(){ 8034if(!this.closest('.ajax-form-container').length){ 8035this.find('script').remove(); 8036var aria=this.data('aria'); 8037var $container=jQuery('<div class="ajax-form-container"></div>'); 8038if(aria&&typeof aria==='object'){ 8039for(var i in aria){ 8040$container=$container.attr(i,aria[i]); 8041} 8042} 8043else{ 8044aria=false; 8045} 8046this.wrap($container); 8047if(aria){ 8048jQuery('form',this).not('[aria-live]').attr('aria-live','off'); 8049} 8050} 8051return this; 8052} 8053jQuery.fn.formulaire_dyn_ajax=function(target){ 8054if(this.length) 8055jQuery.spip.initReaderBuffer(); 8056return this.each(function(){ 8057var scrollwhensubmit=!jQuery(this).is('.noscroll'); 8058var cible=target||this; 8059jQuery(cible).formulaire_setContainer(); 8060jQuery('form:not(.noajax):not(.bouton_action_post)',this).each(function(){ 8061var leform=this; 8062var leclk,leclk_x,leclk_y; 8063var onError=function(xhr,status,error,$form){
8064jQuery(leform).ajaxFormUnbind().find('input[name="var_ajax"]').remove(); 8065var msg="Erreur"; 8066if(typeof(error_on_ajaxform)!=="undefined")msg=error_on_ajaxform; 8067jQuery(leform).prepend("<p class='error ajax-error none'>"+msg+"</p>").find('.ajax-error').show('fast'); 8068jQuery(cible).closest('.ajax-form-container').endLoading(true); 8069} 8070jQuery(this).prepend("<input type='hidden' name='var_ajax' value='form'>") 8071.ajaxForm({ 8072beforeSubmit:function(){ 8073leclk=leform.clk; 8074var scrollwhensubmit_button=true; 8075if(leclk){ 8076scrollwhensubmit_button=!jQuery(leclk).is('.noscroll'); 8077var n=leclk.name; 8078if(n&&!leclk.disabled&&leclk.type==="image"){ 8079leclk_x=leform.clk_x; 8080leclk_y=leform.clk_y; 8081} 8082} 8083jQuery(cible).wrap('<div />'); 8084cible=jQuery(cible).parent(); 8085jQuery(cible).closest('.ajax-form-container').animateLoading(); 8086if(scrollwhensubmit&&scrollwhensubmit_button){ 8087jQuery(cible).positionner(false,false); 8088} 8089}, 8090error:onError, 8091success:function(c,status,xhr,$form){ 8092if(c.match(/^\s*noajax\s*$/)){ 8093jQuery("input[name=var_ajax]",leform).remove(); 8094if(leclk){ 8095var n=leclk.name; 8096if(n&&!leclk.disabled){ 8097jQuery(leform).prepend("<input type='hidden' name='"+n+"' value='"+leclk.value+"'>"); 8098if(leclk.type==="image"){ 8099jQuery(leform).prepend("<input type='hidden' name='"+n+".x' value='"+leform.clk_x+"'>"); 8100jQuery(leform).prepend("<input type='hidden' name='"+n+".y' value='"+leform.clk_y+"'>"); 8101} 8102} 8103}
8104jQuery(leform).ajaxFormUnbind().closest('.formulaire_spip').addClass('resubmit-noajax'); 8105try{ 8106leform.submit(); 8107}catch(err){ 8108var submitFn=document.createElement('form').submit; 8109submitFn.apply(leform); 8110} 8111} 8112else{ 8113if(!c.length||c.indexOf("ajax-form-is-ok")==-1) 8114return onError.apply(this,[status,xhr,$form]); 8115var preloaded=jQuery.spip.preloaded_urls; 8116jQuery.spip.preloaded_urls={}; 8117jQuery(cible).html(c); 8118var a=jQuery('a:first',cible).eq(0); 8119var d=jQuery('div.ajax',cible); 8120if(!d.length){ 8121jQuery(cible).addClass('ajax'); 8122if(!scrollwhensubmit) 8123jQuery(cible).addClass('noscroll'); 8124} 8125else{ 8126d.siblings('br.bugajaxie').remove(); 8127cible=jQuery(":first",cible); 8128cible.unwrap(); 8129} 8130if(a.length 8131&&a.is('a[name=ajax_ancre]') 8132&&jQuery(a.attr('href'),cible).length){ 8133a=a.attr('href'); 8134if(jQuery(a,cible).length) 8135setTimeout(function(){ 8136jQuery(a,cible).positionner(false); 8137},10); 8138jQuery(cible).closest('.ajax-form-container').endLoading(true); 8139} 8140else{ 8141if(a.length&&a.is('a[name=ajax_redirect]')){ 8142a=a.get(0).href; 8143setTimeout(function(){ 8144var cur=window.location.href.split('#'); 8145document.location.replace(a); 8146if(cur[0]==a.split('#')[0]){ 8147window.location.reload(); 8148} 8149},10); 8150jQuery(cible).closest('.ajax-form-container').animateLoading(); 8151} 8152else{ 8153jQuery(cible).closest('.ajax-form-container').endLoading(true); 8154} 8155} 8156if(!jQuery('.reponse_formulaire_ok',cible).length) 8157jQuery.spip.preloaded_urls=preloaded; 8158jQuery.spip.updateReaderBuffer(); 8159} 8160} 8161}) 8162.addClass('noajax hasajax'); 8163}); 8164}); 8165} 8166jQuery.fn.formulaire_verifier=function(callback,champ){ 8167var erreurs={'message_erreur':'form non ajax'}; 8168var me=this; 8169if(jQuery(me).closest('.ajax-form-container').attr('aria-busy')!='true'){ 8170if(jQuery(me).is('form.hasajax')){ 8171jQuery(me).ajaxSubmit({ 8172dataType:"json", 8173data:{formulaire_action_verifier_json:true}, 8174success:function(errs){ 8175var args=[errs,champ] 8176if(jQuery(me).closest('.ajax-form-container').attr('aria-busy')!='true') 8177callback.apply(me,args); 8178} 8179}); 8180} 8181else 8182callback.apply(me,[erreurs,champ]); 8183} 8184return this; 8185} 8186jQuery.fn.formulaire_activer_verif_auto=function(callback){ 8187callback=callback||formulaire_actualiser_erreurs; 8188var me=jQuery(this).closest('.ajax-form-container'); 8189var check=function(){ 8190var name=jQuery(this).attr('name'); 8191setTimeout(function(){me.find('form').formulaire_verifier(callback,name);},50); 8192} 8193var activer=function(){ 8194if(me.find('form').attr('data-verifjson')!='on'){ 8195me 8196.find('form') 8197.attr('data-verifjson','on') 8198.find('input,select,textarea') 8199.on('change',check); 8200} 8201} 8202jQuery(activer); 8203onAjaxLoad(function(){setTimeout(activer,150);}); 8204} 8205function formulaire_actualiser_erreurs(erreurs){ 8206var parent=jQuery(this).closest('.formulaire_spip'); 8207if(!parent.length)return; 8208parent.find('.reponse_formulaire,.erreur_message').fadeOut().remove(); 8209parent.find('.erreur').removeClass('erreur'); 8210if(erreurs['message_ok']) 8211parent.find('form').before('<p class="reponse_formulaire reponse_formulaire_ok">'+erreurs['message_ok']+'</p>'); 8212if(erreurs['message_erreur']) 8213parent.find('form').before('<p class="reponse_formulaire reponse_formulaire_erreur">'+erreurs['message_erreur']+'</p>'); 8214for(var k in erreurs){ 8215var saisie=parent.find('.editer_'+k); 8216if(saisie.length){ 8217saisie.addClass('erreur'); 8218saisie.find('label').after('<span class="erreur_message">'+erreurs[k]+'</span>'); 8219} 8220} 8221} 8222var ajax_confirm=true; 8223var ajax_confirm_date=0; 8224var spip_confirm=window.confirm; 8225function _confirm(message){ 8226ajax_confirm=spip_confirm(message); 8227if(!ajax_confirm){ 8228var d=new Date(); 8229ajax_confirm_date=d.getTime(); 8230} 8231return ajax_confirm; 8232} 8233window.confirm=_confirm; 8234var ajaxbloc_selecteur; 8235jQuery.spip.preloaded_urls={}; 8236jQuery.spip.on_ajax_loaded=function(blocfrag,c,href,history){ 8237history=history||(history==null); 8238if(typeof href==undefined||href==null) 8239history=false; 8240if(history) 8241jQuery.spip.setHistoryState(blocfrag); 8242if(jQuery(blocfrag).attr('data-loaded-callback')){ 8243var callback=eval(jQuery(blocfrag).attr('data-loaded-callback')); 8244callback.call(blocfrag,c,href,history); 8245} 8246else{ 8247jQuery(blocfrag) 8248.html(c) 8249.endLoading(); 8250} 8251if(typeof href!=undefined) 8252jQuery(blocfrag).attr('data-url',href); 8253if(history){ 8254var href_history=href; 8255if(href_history.indexOf('var_nullify')!==-1){ 8256href_history=parametre_url(href_history,'var_nullify',''); 8257} 8258jQuery.spip.pushHistoryState(href_history); 8259jQuery.spip.setHistoryState(blocfrag); 8260} 8261var a=jQuery('a:first',jQuery(blocfrag)).eq(0); 8262if(a.length 8263&&a.is('a[name=ajax_ancre]') 8264&&jQuery(a.attr('href'),blocfrag).length){ 8265a=a.attr('href'); 8266jQuery(a,blocfrag).positionner(false); 8267} 8268jQuery.spip.log('on_ajax_loaded'); 8269jQuery.spip.triggerAjaxLoad(blocfrag); 8270a=jQuery(blocfrag).parents('form.hasajax') 8271if(a.length) 8272a.eq(0).removeClass('noajax').parents('div.ajax').formulaire_dyn_ajax(); 8273jQuery.spip.updateReaderBuffer(); 8274} 8275jQuery.spip.on_ajax_failed=function(blocfrag,statusCode,href,history){ 8276jQuery(blocfrag).addClass('invalid'); 8277jQuery.spip.log("Echec AJAX statusCode "+statusCode) 8278history=history||(history==null); 8279if(history){ 8280if(jQuery.spip.debug){ 8281jQuery.spip.log("On redirige sur sur "+href) 8282} 8283else{ 8284window.location.href=href; 8285} 8286} 8287} 8288jQuery.spip.stateId=0; 8289jQuery.spip.setHistoryState=function(blocfrag){ 8290if(!window.history.replaceState)return; 8291if(!blocfrag.attr('id')){ 8292while(jQuery('#ghsid'+jQuery.spip.stateId).length) 8293jQuery.spip.stateId++; 8294blocfrag.attr('id','ghsid'+jQuery.spip.stateId); 8295} 8296var href=blocfrag.attr('data-url')||blocfrag.attr('data-origin'); 8297href=jQuery("<"+"a href='"+href+"'></a>").get(0).href; 8298var state={ 8299id:blocfrag.attr('id'), 8300href:href 8301}; 8302var ajaxid=blocfrag.attr('class').match(/\bajax-id-[\w-]+\b/); 8303if(ajaxid&&ajaxid.length) 8304state["ajaxid"]=ajaxid[0]; 8305window.history.replaceState(state,window.document.title,window.document.location); 8306} 8307jQuery.spip.pushHistoryState=function(href,title){ 8308if(!window.history.pushState) 8309return false;
8310window.history.pushState({},title,href); 8311} 8312window.onpopstate=function(popState){ 8313if(popState.state&&popState.state.href){ 8314var blocfrag=false; 8315if(popState.state.id){ 8316blocfrag=jQuery('#'+popState.state.id); 8317} 8318if((!blocfrag||!blocfrag.length)&&popState.state.ajaxid){ 8319blocfrag=jQuery('.ajaxbloc.'+popState.state.ajaxid); 8320} 8321if(blocfrag&&blocfrag.length==1){ 8322jQuery.spip.ajaxClick(blocfrag,popState.state.href,{history:false}); 8323return true; 8324} 8325else{ 8326window.location.href=popState.state.href; 8327} 8328} 8329} 8330jQuery.spip.loadAjax=function(blocfrag,url,href,options){ 8331var force=options.force||false; 8332if(jQuery(blocfrag).attr('data-loading-callback')){ 8333var callback=eval(jQuery(blocfrag).attr('data-loading-callback')); 8334callback.call(blocfrag,url,href,options); 8335} 8336else{ 8337jQuery(blocfrag).animateLoading(); 8338} 8339if(jQuery.spip.preloaded_urls[url]&&!force){ 8340if(jQuery.spip.preloaded_urls[url]=="<!--loading-->"){ 8341setTimeout(function(){jQuery.spip.loadAjax(blocfrag,url,href,options);},100); 8342return; 8343} 8344jQuery.spip.on_ajax_loaded(blocfrag,jQuery.spip.preloaded_urls[url],href,options.history); 8345}else{ 8346var d=new Date(); 8347jQuery.spip.preloaded_urls[url]="<!--loading-->"; 8348jQuery.ajax({ 8349url:parametre_url(url,'var_t',d.getTime()), 8350onAjaxLoad:false, 8351success:function(c){ 8352jQuery.spip.on_ajax_loaded(blocfrag,c,href,options.history); 8353jQuery.spip.preloaded_urls[url]=c; 8354if(options.callback&&typeof options.callback=="function") 8355options.callback.apply(blocfrag); 8356}, 8357error:function(e){ 8358jQuery.spip.preloaded_urls[url]=''; 8359jQuery.spip.on_ajax_failed(blocfrag,e.status,href,options.history); 8360} 8361}); 8362} 8363} 8364jQuery.spip.makeAjaxUrl=function(href,ajax_env,origin){ 8365var url=href.split('#'); 8366url[0]=parametre_url(url[0],'var_ajax',1); 8367url[0]=parametre_url(url[0],'var_ajax_env',ajax_env); 8368if(origin){ 8369if(origin.indexOf('var_nullify')!==-1){ 8370origin=parametre_url(origin,'var_nullify',''); 8371} 8372var p=origin.indexOf('?'); 8373var nullify=[]; 8374if(p!==-1){ 8375var args=origin.substring(p+1).split('&'); 8376var val; 8377var arg; 8378for(var n=0;n<args.length;n++){ 8379arg=args[n].split('='); 8380arg=decodeURIComponent(arg[0]); 8381p=arg.indexOf('['); 8382if(p!==-1) 8383arg=arg.substring(0,p); 8384val=parametre_url(href,arg); 8385if((typeof val=="undefined"||val==null)&&nullify.indexOf(arg)===-1){ 8386nullify.push(arg); 8387} 8388} 8389if(nullify.length){ 8390url[0]=url[0]+'&'+'var_nullify='+encodeURIComponent(nullify.join('|')); 8391} 8392} 8393} 8394if(url[1]) 8395url[0]=parametre_url(url[0],'var_ajax_ancre',url[1]); 8396return url[0]; 8397} 8398jQuery.spip.ajaxReload=function(blocfrag,options){ 8399var ajax_env=blocfrag.attr('data-ajax-env'); 8400if(!ajax_env||ajax_env==undefined)return; 8401var href=options.href||blocfrag.attr('data-url')||blocfrag.attr('data-origin'); 8402if(href&&typeof href!=undefined){ 8403if(href.indexOf('var_nullify')!==-1){ 8404href=parametre_url(href,'var_nullify',''); 8405} 8406options=options||{}; 8407var callback=options.callback||null; 8408var history=options.history||false; 8409var args=options.args||{}; 8410for(var key in args){ 8411href=parametre_url(href,key,args[key]==undefined?'':args[key],'&',args[key]==undefined?false:true); 8412} 8413var url=jQuery.spip.makeAjaxUrl(href,ajax_env,blocfrag.attr('data-origin')); 8414jQuery.spip.loadAjax(blocfrag,url,href,{force:true,callback:callback,history:history}); 8415return true; 8416} 8417} 8418jQuery.spip.ajaxClick=function(blocfrag,href,options){ 8419var ajax_env=blocfrag.attr('data-ajax-env'); 8420if(!ajax_env||ajax_env==undefined)return; 8421if(!ajax_confirm){ 8422ajax_confirm=true; 8423var d=new Date(); 8424if((d.getTime()-ajax_confirm_date)<=2) 8425return false; 8426} 8427var url=jQuery.spip.makeAjaxUrl(href,ajax_env,blocfrag.attr('data-origin')); 8428jQuery.spip.loadAjax(blocfrag,url,href,options); 8429return false; 8430} 8431jQuery.fn.ajaxbloc=function(){ 8432if(this.length) 8433jQuery.spip.initReaderBuffer(); 8434if(ajaxbloc_selecteur==undefined) 8435ajaxbloc_selecteur='.pagination a,a.ajax'; 8436return this.each(function(){ 8437jQuery('div.ajaxbloc',this).ajaxbloc(); 8438var blocfrag=jQuery(this); 8439var ajax_env=blocfrag.attr('data-ajax-env'); 8440if(!ajax_env||ajax_env==undefined)return; 8441blocfrag.not('.bind-ajaxReload').on('ajaxReload',function(event,options){ 8442if(jQuery.spip.ajaxReload(blocfrag,options)) 8443event.stopPropagation(); 8444}).addClass('bind-ajaxReload'); 8445jQuery(ajaxbloc_selecteur,this).not('.noajax,.bind-ajax') 8446.click(function(){return jQuery.spip.ajaxClick(blocfrag,this.href,{force:jQuery(this).is('.nocache'),history:!(jQuery(this).is('.nohistory')||jQuery(this).closest('.box_modalbox').length)});}) 8447.addClass('bind-ajax') 8448.filter('.preload').each(function(){ 8449var href=this.href; 8450var url=jQuery.spip.makeAjaxUrl(href,ajax_env,blocfrag.attr('data-origin')); 8451if(!jQuery.spip.preloaded_urls[url]){ 8452jQuery.spip.preloaded_urls[url]='<!--loading-->'; 8453jQuery.ajax({url:url,onAjaxLoad:false,success:function(r){jQuery.spip.preloaded_urls[url]=r;},error:function(){jQuery.spip.preloaded_urls[url]='';}}); 8454} 8455}); 8456jQuery('form.bouton_action_post.ajax',this).not('.noajax,.bind-ajax').each(function(){ 8457var leform=this; 8458var url=jQuery(this).attr('action').split('#'); 8459var scrollwhensubmit=(!jQuery(this).is('.noscroll')&&!jQuery('.submit',this).is('.noscroll')); 8460jQuery(this) 8461.prepend("<input type='hidden' name='var_ajax' value='1'><input type='hidden' name='var_ajax_env' value='"+(ajax_env)+"'>"+(url[1]?"<input type='hidden' name='var_ajax_ancre' value='"+url[1]+"'>":"")) 8462.ajaxForm({ 8463beforeSubmit:function(){ 8464jQuery(blocfrag).animateLoading(); 8465if(scrollwhensubmit){ 8466jQuery(blocfrag).positionner(false); 8467} 8468}, 8469onAjaxLoad:false, 8470success:function(c){ 8471jQuery.spip.on_ajax_loaded(blocfrag,c); 8472jQuery.spip.preloaded_urls={}; 8473}, 8474error:function(e){ 8475jQuery.spip.preloaded_urls={}; 8476var href=parametre_url(url,'redirect'); 8477if(!href){ 8478href=window.location.href; 8479} 8480jQuery.spip.on_ajax_failed(blocfrag,e.status,href,e.status===400); 8481} 8482}) 8483.addClass('bind-ajax'); 8484}); 8485}); 8486}; 8487jQuery.fn.followLink=function(){ 8488$(this).click(); 8489if(!$(this).is('.bind-ajax')) 8490window.location.href=$(this).get(0).href; 8491return this; 8492} 8493function ajaxReload(ajaxid,options){ 8494jQuery('div.ajaxbloc.ajax-id-'+ajaxid).ajaxReload(options); 8495} 8496jQuery.fn.ajaxReload=function(options){ 8497options=options||{};
8498jQuery(this).trigger('ajaxReload',[options]); 8499return this; 8500} 8501jQuery.fn.animateLoading=function(){ 8502this.attr('aria-busy','true').addClass('loading').children().css('opacity',0.5); 8503if(typeof ajax_image_searching!='undefined'){ 8504var i=(this).find('.image_loading'); 8505if(i.length)i.eq(0).html(ajax_image_searching); 8506else this.prepend('<span class="image_loading">'+ajax_image_searching+'</span>'); 8507} 8508return this; 8509} 8510jQuery.fn.animeajax=jQuery.fn.animateLoading; 8511jQuery.fn.endLoading=function(hard){ 8512hard=hard||false; 8513this.attr('aria-busy','false').removeClass('loading'); 8514if(hard){ 8515this.children().css('opacity',''); 8516this.find('.image_loading').html(''); 8517} 8518return this; 8519} 8520jQuery.fn.animateRemove=function(callback){ 8521if(this.length){ 8522var me=this; 8523var color=$("<div class='remove'></div>").css('background-color'); 8524var sel=$(this); 8525if(sel.is('tr')) 8526sel=sel.add('>td',sel); 8527sel.addClass('remove').css({backgroundColor:color}).animate({opacity:"0.0"},'fast',function(){ 8528sel.removeClass('remove').css({backgroundColor:''}); 8529if(callback) 8530callback.apply(me); 8531}); 8532} 8533return this; 8534} 8535jQuery.fn.animateAppend=function(callback){ 8536if(this.length){ 8537var me=this; 8538var color=$("<div class='append'></div>").css('background-color'); 8539var origin=$(this).css('background-color')||'#ffffff'; 8540if(origin=='transparent')origin='#ffffff'; 8541var sel=$(this); 8542if(sel.is('tr')) 8543sel=sel.add('>td',sel); 8544sel.css('opacity','0.0').addClass('append').css({backgroundColor:color}).animate({opacity:"1.0"},1000,function(){ 8545sel.animate({backgroundColor:origin},3000,function(){ 8546sel.removeClass('append').css({backgroundColor:''}); 8547if(callback) 8548callback.apply(me); 8549}); 8550}); 8551} 8552return this; 8553} 8554function parametre_url(url,c,v,sep,force_vide){ 8555if(typeof(url)=='undefined'){ 8556url=''; 8557} 8558var p; 8559var ancre=''; 8560var a='./'; 8561var args=[]; 8562p=url.indexOf('#'); 8563if(p!=-1){ 8564ancre=url.substring(p); 8565url=url.substring(0,p); 8566} 8567p=url.indexOf('?'); 8568if(p!==-1){ 8569if(p>0)a=url.substring(0,p); 8570args=url.substring(p+1).split('&'); 8571} 8572else 8573a=url; 8574var regexp=new RegExp('^('+c.replace('[]','\\[\\]')+'\\[?\\]?)(=.*)?$'); 8575var ajouts=[]; 8576var u=(typeof(v)!=='object')?encodeURIComponent(v):v; 8577var na=[]; 8578var v_read=null; 8579for(var n=0;n<args.length;n++){ 8580var val=args[n]; 8581try{ 8582val=decodeURIComponent(val); 8583}catch(e){} 8584var r=val.match(regexp); 8585if(r&&r.length){ 8586if(v==null){ 8587if(r[1].substr(-2)=='[]'){ 8588if(!v_read)v_read=[]; 8589v_read.push((r.length>2&&typeof r[2]!=='undefined')?r[2].substring(1):''); 8590} 8591else{ 8592return(r.length>2&&typeof r[2]!=='undefined')?r[2].substring(1):''; 8593} 8594} 8595else if(!v.length){ 8596} 8597else if(r[1].substr(-2)!='[]'){ 8598na.push(r[1]+'='+u); 8599ajouts.push(r[1]); 8600} 8601} 8602else 8603na.push(args[n]); 8604} 8605if(v==null)return v_read; 8606if(v||v.length||force_vide){ 8607ajouts="="+ajouts.join("=")+"="; 8608var all=c.split('|'); 8609for(n=0;n<all.length;n++){ 8610if(ajouts.search("="+all[n]+"=")==-1){ 8611if(typeof(v)!=='object'){ 8612na.push(all[n]+'='+u); 8613} 8614else{ 8615var id=((all[n].substring(-2)=='[]')?all[n]:all[n]+"[]"); 8616for(p=0;p<v.length;p++) 8617na.push(id+'='+encodeURIComponent(v[p])); 8618} 8619} 8620} 8621} 8622if(na.length){ 8623if(!sep)sep='&'; 8624a=a+"?"+na.join(sep); 8625} 8626return a+ancre; 8627} 8628function spip_logo_survol_hover(){ 8629var me=jQuery(this); 8630if(me.attr('data-src-hover')){ 8631me.attr('data-src-original',me.attr('src')); 8632me.attr('src',me.attr('data-src-hover')); 8633} 8634} 8635function spip_logo_survol_out(){ 8636var me=jQuery(this); 8637if(me.attr('data-src-original')){ 8638me.attr('src',me.attr('data-src-original')); 8639} 8640} 8641function disableClickAfterFormSubmit(){ 8642if(jQuery(this).is('.processing-submitted-form')){ 8643return false; 8644} 8645jQuery(this) 8646.addClass('processing-submitted-form') 8647.find('button[type="submit"]') 8648.attr('disabled','disabled') 8649.addClass('disabled') 8650} 8651function puce_enable_survol(){ 8652jQuery('span.puce_objet_popup a',this).not('.puce-survol-enabled').click(function(){ 8653selec_statut(jQuery(this).attr('data-puce-id'),jQuery(this).attr('data-puce-type'),jQuery(this).attr('data-puce-decal'),jQuery('img',this).attr('src'),jQuery(this).attr('data-puce-action')); 8654return false; 8655}).addClass('puce-survol-enabled'); 8656jQuery('span.puce_objet',this).not('.puce-survol-enabled').mouseover(function(){ 8657if(!this.puce_loaded){ 8658this.puce_loaded=true;prepare_selec_statut(this,jQuery(this).attr('data-puce-nom'),jQuery(this).attr('data-puce-type'),jQuery(this).attr('data-puce-id'),jQuery(this).attr('data-puce-action')); 8659} 8660}).addClass('puce-survol-enabled'); 8661} 8662if(!window.var_zajax_content) 8663window.var_zajax_content='contenu'; 8664jQuery(function(){ 8665jQuery('form:not(.bouton_action_post)').parents('div.ajax') 8666.formulaire_dyn_ajax();
8667jQuery('div.ajaxbloc').ajaxbloc(); 8668jQuery("input[placeholder]:text").placeholderLabel(); 8669jQuery('.spip_logo_survol').hover(spip_logo_survol_hover,spip_logo_survol_out); 8670puce_enable_survol.apply(this); 8671jQuery('body').on('submit','form.bouton_action_post',disableClickAfterFormSubmit); 8672}); 8673onAjaxLoad(function(){ 8674if(jQuery){ 8675jQuery('form:not(.bouton_action_post)',this).parents('div.ajax') 8676.formulaire_dyn_ajax(); 8677if(jQuery(this).is('div.ajaxbloc')) 8678jQuery(this).ajaxbloc(); 8679else if(jQuery(this).closest('div.ajaxbloc').length) 8680jQuery(this).closest('div.ajaxbloc').ajaxbloc(); 8681else 8682jQuery('div.ajaxbloc',this).ajaxbloc(); 8683jQuery("input[placeholder]:text",this).placeholderLabel(); 8684jQuery('.spip_logo_survol',this).hover(spip_logo_survol_hover,spip_logo_survol_out); 8685puce_enable_survol.apply(this); 8686} 8687}); 8688 8689 8690/* prive/javascript/js.cookie.js?1790089484 */ 8691 8692; 8693(function(global,factory){ 8694typeof exports==='object'&&typeof module!=='undefined'?module.exports=factory(): 8695typeof define==='function'&&define.amd?define(factory): 8696(global=typeof globalThis!=='undefined'?globalThis:global||self,(function(){ 8697var current=global.Cookies; 8698var exports=global.Cookies=factory(); 8699exports.noConflict=function(){global.Cookies=current;return exports;}; 8700})()); 8701})(this,(function(){'use strict'; 8702function assign(target){ 8703for(var i=1;i<arguments.length;i++){ 8704var source=arguments[i]; 8705for(var key in source){ 8706target[key]=source[key]; 8707} 8708} 8709return target 8710} 8711var defaultConverter={ 8712read:function(value){ 8713if(value[0]==='"'){ 8714value=value.slice(1,-1); 8715} 8716return value.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent) 8717}, 8718write:function(value){ 8719return encodeURIComponent(value).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g, 8720decodeURIComponent 8721) 8722} 8723}; 8724function init(converter,defaultAttributes){ 8725function set(name,value,attributes){ 8726if(typeof document==='undefined'){ 8727return 8728} 8729attributes=assign({},defaultAttributes,attributes); 8730if(typeof attributes.expires==='number'){ 8731attributes.expires=new Date(Date.now()+attributes.expires*864e5); 8732} 8733if(attributes.expires){ 8734attributes.expires=attributes.expires.toUTCString(); 8735} 8736name=encodeURIComponent(name) 8737.replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent) 8738.replace(/[()]/g,escape); 8739var stringifiedAttributes=''; 8740for(var attributeName in attributes){ 8741if(!attributes[attributeName]){ 8742continue 8743} 8744stringifiedAttributes+='; '+attributeName; 8745if(attributes[attributeName]===true){ 8746continue 8747} 8748stringifiedAttributes+='='+attributes[attributeName].split(';')[0]; 8749} 8750return(document.cookie= 8751name+'='+converter.write(value,name)+stringifiedAttributes) 8752} 8753function get(name){ 8754if(typeof document==='undefined'||(arguments.length&&!name)){ 8755return 8756} 8757var cookies=document.cookie?document.cookie.split('; '):[]; 8758var jar={}; 8759for(var i=0;i<cookies.length;i++){ 8760var parts=cookies[i].split('='); 8761var value=parts.slice(1).join('='); 8762try{ 8763var found=decodeURIComponent(parts[0]); 8764jar[found]=converter.read(value,found); 8765if(name===found){ 8766break 8767} 8768}catch(e){} 8769} 8770return name?jar[name]:jar 8771} 8772return Object.create( 8773{ 8774set, 8775get, 8776remove:function(name,attributes){ 8777set( 8778name, 8779'', 8780assign({},attributes,{ 8781expires:-1 8782}) 8783); 8784}, 8785withAttributes:function(attributes){ 8786return init(this.converter,assign({},this.attributes,attributes)) 8787}, 8788withConverter:function(converter){ 8789return init(assign({},this.converter,converter),this.attributes) 8790} 8791}, 8792{ 8793attributes:{value:Object.freeze(defaultAttributes)}, 8794converter:{value:Object.freeze(converter)} 8795} 8796) 8797} 8798var api=init(defaultConverter,{path:'/'}); 8799return api; 8800})); 8801 8802 8803/* plugins-dist/mediabox/lib/lity/lity.js?1790089482 */ 8804 8805(function(window,factory){ 8806if(typeof define==='function'&&define.amd){ 8807define(['jquery'],function($){ 8808return factory(window,$); 8809}); 8810}else if(typeof module==='object'&&typeof module.exports==='object'){ 8811module.exports=factory(window,require('jquery')); 8812}else{ 8813window.lity=factory(window,window.jQuery||window.Zepto); 8814} 8815}(typeof window!=="undefined"?window:this,function(window,$){ 8816'use strict'; 8817var document=window.document; 8818var _win=$(window); 8819var _deferred=$.Deferred; 8820var _html=$('html'); 8821var _instances=[]; 8822var _attrAriaHidden='aria-hidden'; 8823var _dataAriaHidden='lity-'+_attrAriaHidden; 8824var _focusableElementsSelector='a[href],area[href],input:not([disabled]),select:not([disabled]),textarea:not([disabled]),button:not([disabled]),iframe,object,embed,[contenteditable],[tabindex]:not
8824([tabindex^="-"])'; 8825var _defaultOptions={ 8826esc:true, 8827handler:null, 8828handlers:{ 8829image:imageHandler, 8830inline:inlineHandler, 8831iframe:iframeHandler 8832}, 8833forceFocusInside:false, 8834template:'<div class="lity" role="dialog" aria-label="Dialog Window (Press escape to close)" tabindex="-1"><div class="lity-wrap" data-lity-close role="document"><div class="lity-loader" aria-hidden="true">Loading...</div><div class="lity-container"><div class="lity-content"></div><button class="lity-close" type="button" aria-label="Close (Press escape to close)" data-lity-close>×</button></div></div></div>' 8835}; 8836var _imageRegexp=/(^data:image\/)|(\.(png|jpe?g|gif|svg|webp|bmp|ico|tiff?)(\?\S*)?$)/i; 8837var _transitionEndEvent=(function(){ 8838var el=document.createElement('div'); 8839var transEndEventNames={ 8840WebkitTransition:'webkitTransitionEnd', 8841MozTransition:'transitionend', 8842OTransition:'oTransitionEnd otransitionend', 8843transition:'transitionend' 8844}; 8845for(var name in transEndEventNames){ 8846if(el.style[name]!==undefined){ 8847return transEndEventNames[name]; 8848} 8849} 8850return false; 8851})(); 8852function transitionEnd(element){ 8853var deferred=_deferred(); 8854if(!_transitionEndEvent||!element.length){ 8855deferred.resolve(); 8856}else{ 8857element.one(_transitionEndEvent,deferred.resolve); 8858setTimeout(deferred.resolve,500); 8859} 8860return deferred.promise(); 8861} 8862function settings(currSettings,key,value){ 8863if(arguments.length===1){ 8864return $.extend({},currSettings); 8865} 8866if(typeof key==='string'){ 8867if(typeof value==='undefined'){ 8868return typeof currSettings[key]==='undefined' 8869?null 8870:currSettings[key]; 8871} 8872currSettings[key]=value; 8873}else{ 8874$.extend(currSettings,key); 8875} 8876return this; 8877} 8878function parseQueryParams(params){ 8879var pos=params.indexOf('?'); 8880if(pos>-1){ 8881params=params.substr(pos+1); 8882} 8883var pairs=decodeURI(params.split('#')[0]).split('&'); 8884var obj={},p; 8885for(var i=0,n=pairs.length;i<n;i++){ 8886if(!pairs[i]){ 8887continue; 8888} 8889p=pairs[i].split('='); 8890obj[p[0]]=p[1]; 8891} 8892return obj; 8893} 8894function appendQueryParams(url,params){ 8895if(!params){ 8896return url; 8897} 8898if('string'===$.type(params)){ 8899params=parseQueryParams(params); 8900} 8901if(url.indexOf('?')>-1){ 8902var split=url.split('?'); 8903url=split.shift(); 8904params=$.extend( 8905{}, 8906parseQueryParams(split[0]), 8907params 8908) 8909} 8910return url+'?'+$.param(params); 8911} 8912function transferHash(originalUrl,newUrl){ 8913var pos=originalUrl.indexOf('#'); 8914if(-1===pos){ 8915return newUrl; 8916} 8917if(pos>0){ 8918originalUrl=originalUrl.substr(pos); 8919} 8920return newUrl+originalUrl; 8921} 8922function iframe(iframeUrl,instance,queryParams,hashUrl){ 8923instance&&instance.element().addClass('lity-iframe'); 8924if(queryParams){ 8925iframeUrl=appendQueryParams(iframeUrl,queryParams); 8926} 8927if(hashUrl){ 8928iframeUrl=transferHash(hashUrl,iframeUrl); 8929} 8930return'<div class="lity-iframe-container"><iframe frameborder="0" allowfullscreen allow="autoplay; fullscreen" src="'+iframeUrl+'"/></div>'; 8931} 8932function error(msg){ 8933return $('<span class="lity-error"></span>').append(msg); 8934} 8935function imageHandler(target,instance){ 8936var desc=(instance.opener()&&instance.opener().data('lity-desc'))||'Image with no description'; 8937var img=$('<img src="'+target+'" alt="'+desc+'"/>'); 8938var deferred=_deferred(); 8939var failed=function(){ 8940deferred.reject(error('Failed loading image')); 8941}; 8942img 8943.on('load',function(){ 8944if(this.naturalWidth===0){ 8945return failed(); 8946} 8947deferred.resolve(img); 8948}) 8949.on('error',failed) 8950; 8951return deferred.promise(); 8952} 8953imageHandler.test=function(target){ 8954return _imageRegexp.test(target); 8955}; 8956function inlineHandler(target,instance){ 8957var el,placeholder,hasHideClass; 8958try{ 8959el=$(target); 8960}catch(e){ 8961return false; 8962} 8963if(!el.length){ 8964return false; 8965} 8966placeholder=$('<i style="display:none !important"></i>'); 8967hasHideClass=el.hasClass('lity-hide'); 8968instance 8969.element() 8970.one('lity:remove',function(){ 8971placeholder 8972.before(el) 8973.remove() 8974; 8975if(hasHideClass&&!el.closest('.lity-content').length){ 8976el.addClass('lity-hide'); 8977} 8978}) 8979; 8980return el 8981.removeClass('lity-hide') 8982.after(placeholder) 8983; 8984} 8985function iframeHandler(target,instance){ 8986return iframe(target,instance); 8987} 8988function winHeight(){ 8989return document.documentElement.clientHeight 8990?document.documentElement.clientHeight 8991:Math.round(_win.height()); 8992} 8993function keydown(e){ 8994var current=currentInstance(); 8995if(!current){ 8996return; 8997} 8998if(e.keyCode===27&&!!current.options('esc')){ 8999current.close(); 9000} 9001if(e.keyCode===9){ 9002handleTabKey(e,current); 9003} 9004} 9005function handleTabKey(e,instance){ 9006var focusableElements=instance.element().find(_focusableElementsSelector); 9007var focusedIndex=focusableElements.index(document.activeElement); 9008if(e.shiftKey&&focusedIndex<=0){ 9009focusableElements.get(focusableElements.length-1).focus(); 9010e.preventDefault(); 9011}else if(!e.shiftKey&&focusedIndex===focusableElements.length-1){ 9012focusableElements.get(0).focus(); 9013e.preventDefault(); 9014} 9015if(focusedIndex===-1&&instance.options().forceFocusInside){ 9016focusableElements.get(0).focus(); 9017e.preventDefault(); 9018} 9019} 9020function resize(){ 9021$.each(_instances,function(i,instance){ 9022instance.resize(); 9023}); 9024} 9025function registerInstance(instanceToRegister){ 9026if(1===_instances.unshift(instanceToRegister)){ 9027_html.addClass('lity-active'); 9028_win 9029.on({ 9030resize:resize, 9031keydown:keydown 9032}) 9033; 9034} 9035$('body > *').not(instanceToRegister.element()) 9036.addClass('lity-hidden') 9037.each(function(){ 9038var el=$(this); 9039if(undefined!==el.data(_dataAriaHidden)){ 9040return; 9041} 9042el.data(_dataAriaHidden,el.attr(_attrAriaHidden)||null); 9043}) 9044.attr(_attrAriaHidden,'true') 9045; 9046} 9047function removeInstance(instanceToRemove){ 9048var show; 9049instanceToRemove
9050.element() 9051.attr(_attrAriaHidden,'true') 9052; 9053if(1===_instances.length){ 9054_html.removeClass('lity-active'); 9055_win 9056.off({ 9057resize:resize, 9058keydown:keydown 9059}) 9060; 9061} 9062_instances=$.grep(_instances,function(instance){ 9063return instanceToRemove!==instance; 9064}); 9065if(!!_instances.length){ 9066show=_instances[0].element(); 9067}else{ 9068show=$('.lity-hidden'); 9069} 9070show 9071.removeClass('lity-hidden') 9072.each(function(){ 9073var el=$(this),oldAttr=el.data(_dataAriaHidden); 9074if(!oldAttr){ 9075el.removeAttr(_attrAriaHidden); 9076}else{ 9077el.attr(_attrAriaHidden,oldAttr); 9078} 9079el.removeData(_dataAriaHidden); 9080}) 9081; 9082} 9083function currentInstance(){ 9084if(0===_instances.length){ 9085return null; 9086} 9087return _instances[0]; 9088} 9089function factory(target,instance,handlers,preferredHandler){ 9090var handler='inline',content; 9091var currentHandlers=$.extend({},handlers); 9092if(preferredHandler&¤tHandlers[preferredHandler]){ 9093content=currentHandlers[preferredHandler](target,instance); 9094handler=preferredHandler; 9095}else{ 9096$.each(['inline','iframe'],function(i,name){ 9097delete currentHandlers[name]; 9098currentHandlers[name]=handlers[name]; 9099}); 9100$.each(currentHandlers,function(name,currentHandler){ 9101if(!currentHandler){ 9102return true; 9103} 9104if( 9105currentHandler.test&& 9106!currentHandler.test(target,instance) 9107){ 9108return true; 9109} 9110content=currentHandler(target,instance); 9111if(false!==content){ 9112handler=name; 9113return false; 9114} 9115}); 9116} 9117return{handler:handler,content:content||''}; 9118} 9119function Lity(target,options,opener,activeElement){ 9120var self=this; 9121var result; 9122var isReady=false; 9123var isClosed=false; 9124var element; 9125var content; 9126options=$.extend( 9127{}, 9128_defaultOptions, 9129options 9130); 9131element=$(options.template); 9132self.element=function(){ 9133return element; 9134}; 9135self.opener=function(){ 9136return opener; 9137}; 9138self.content=function(){ 9139return content; 9140}; 9141self.options=$.proxy(settings,self,options); 9142self.handlers=$.proxy(settings,self,options.handlers); 9143self.resize=function(){ 9144if(!isReady||isClosed){ 9145return; 9146} 9147content 9148.css('max-height',winHeight()+'px') 9149.trigger('lity:resize',[self]) 9150; 9151}; 9152self.close=function(){ 9153if(isClosed){ 9154return; 9155} 9156isClosed=true; 9157removeInstance(self); 9158var deferred=_deferred(); 9159if( 9160activeElement&& 9161( 9162document.activeElement===element[0]|| 9163$.contains(element[0],document.activeElement) 9164) 9165){ 9166try{ 9167activeElement.focus(); 9168}catch(e){ 9169} 9170} 9171var trigerable=(content?content:element); 9172trigerable.trigger('lity:close',[self]); 9173element 9174.removeClass('lity-opened') 9175.addClass('lity-closed') 9176; 9177transitionEnd(trigerable.add(element)) 9178.always(function(){ 9179trigerable.trigger('lity:remove',[self]); 9180element.remove(); 9181element=undefined; 9182deferred.resolve(); 9183}) 9184; 9185return deferred.promise(); 9186}; 9187result=factory(target,self,options.handlers,options.handler); 9188element 9189.attr(_attrAriaHidden,'false') 9190.addClass('lity-loading lity-opened lity-'+result.handler) 9191.appendTo('body') 9192.focus() 9193.on('click','[data-lity-close]',function(e){ 9194if($(e.target).is('[data-lity-close]')){ 9195self.close(); 9196} 9197}) 9198.trigger('lity:open',[self]) 9199; 9200registerInstance(self); 9201$.when(result.content) 9202.always(ready) 9203; 9204function ready(result){ 9205if(isClosed){ 9206return; 9207} 9208content=$(result) 9209.css('max-height',winHeight()+'px') 9210; 9211element 9212.find('.lity-loader') 9213.each(function(){ 9214var loader=$(this); 9215transitionEnd(loader) 9216.always(function(){ 9217loader.remove(); 9218}) 9219; 9220}) 9221; 9222element 9223.removeClass('lity-loading') 9224.find('.lity-content') 9225.empty() 9226.append(content) 9227; 9228isReady=true; 9229content 9230.trigger('lity:ready',[self]) 9231; 9232} 9233} 9234function lity(target,options,opener){ 9235if(!target.preventDefault){ 9236opener=$(opener); 9237}else{ 9238target.preventDefault(); 9239opener=$(this); 9240target=opener.data('lity-target')||opener.attr('href')||opener.attr('src'); 9241} 9242var instance=new Lity( 9243target, 9244$.extend( 9245{}, 9246opener.data('lity-options')||opener.data('lity'), 9247options 9248), 9249opener, 9250document.activeElement 9251); 9252if(!target.preventDefault){ 9253return instance; 9254} 9255} 9256lity.version='3.0.0-dev'; 9257lity.options=$.proxy(settings,lity,_defaultOptions); 9258lity.handlers=$.proxy(settings,lity,_defaultOptions.handlers); 9259lity.current=currentInstance; 9260lity.iframe=iframe; 9261$(document).on('click.lity','[data-lity]',lity); 9262return lity; 9263})); 9264 9265 9266/* plugins-dist/mediabox/lity/js/lity.mediabox.js?1790089482 */ 9267; 9268(function($){ 9269var litySpip={ 9270nameSpace:'mediabox', 9271config:{ 9272forceFocusInside:true, 9273}, 9274strings:{ 9275}, 9276callbacks:{ 9277onOpen:[], 9278onShow:[], 9279onClose:[] 9280}, 9281focusedItem:[], 9282isTransition:false, 9283adjustHeight:function(instance){ 9284var $content=instance.content(); 9285var $containerHeight=instance.element().find('.lity-container').height(); 9286if($containerHeight){ 9287var h=Math.round($containerHeight)+'px'; 9288$content 9289.css('max-height',h) 9290.find('[data-'+litySpip.nameSpace+'-force-max-height]') 9291.css('max-height',h); 9292} 9293}, 9294template:function(cfg,type,groupName,groupPosition,groupLength){ 9295var className=''; 9296if(!!cfg.className){ 9297className=' '+cfg.className; 9298} 9299if(cfg.transitionOnOpen){ 9300className+=' lity-transition-on-open-'+cfg.transitionOnOpen; 9301} 9302if(!!cfg.noTransition){ 9303className+=' lity-no-transition'; 9304} 9305if(!!cfg.slideShow){ 9306className+=' lity-slideshow'; 9307} 9308var styles=[]; 9309var styles_container=''; 9310var styles_content=''; 9311if(cfg.sideBar){ 9312className+=' lity-sidebar lity-sidebar-'+cfg.sideBar; 9313if(cfg.sideBar==='start'||cfg.sideBar==='end'){ 9314className+=' lity-sidebar-inline'; 9315cfg.height='100vh'; 9316cfg.maxHeight='100vh'; 9317} 9318if(cfg.sideBar==='top'||cfg.sideBar==='bottom'){ 9319className+=' lity-sidebar-block'; 9320cfg.width='100vw'; 9321cfg.maxWidth='100vw'; 9322} 9323} 9324if(cfg.maxWidth){ 9325styles.push("max-width:"+cfg.maxWidth.replace("%","vw")); 9326} 9327if(cfg.maxHeight){ 9328styles.push("max-height:"+cfg.maxHeight.replace("%","vh")); 9329} 9330if(cfg.width){ 9331styles.push("width:"+cfg.width.replace("%","vw")); 9332className+=' lity-width-set'; 9333} 9334if(cfg.height){ 9335styles.push("height:"+cfg.height.replace("%","vh")); 9336className+=' lity-height-set'; 9337if(cfg.minHeight){ 9338styles.push("min-height:"+cfg.minHeight.replace("%","vh")); 9339} 9340} 9341if(styles.length){ 9342styles_container=' style="'+styles.join(';')+'"'; 9343} 9344styles=[]; 9345var max; 9346if(cfg.minWidth){ 9347max=(cfg.maxWidth?cfg.maxWidth.replace("%","vw"):'95vw'); 9348styles.push("min-width:min("+max+","+cfg.minWidth.replace("%","vw")+')'); 9349} 9350if(cfg.minHeight&&!cfg.height){ 9351max=(cfg.maxHeight?cfg.maxHeight.replace("%","vw"):'95vh'); 9352styles.push("min-height:min("+max+","+cfg.minHeight.replace("%","vh")+')'); 9353} 9354if(styles.length){ 9355styles_content=' style="'+styles.join(';')+'"'; 9356} 9357var button_next_prev='',
9358button_start_stop='', 9359group_info_text='', 9360group_info=''; 9361if(groupName&&groupLength){ 9362if(groupLength>1){ 9363var newPosition=(groupPosition<=0?groupLength-1:groupPosition-1); 9364button_next_prev+='<button class="lity-previous" type="button" data-group-name="'+groupName+'" data-group-position="'+newPosition+'" aria-label="'+litySpip.strings.previous+'" data-lity-previous' 9365+'><b title="'+litySpip.strings.previous+'">â®</b></button>'; 9366newPosition=(groupPosition>=groupLength-1?0:groupPosition+1); 9367button_next_prev+='<button class="lity-next" type="button" data-group-name="'+groupName+'" data-group-position="'+newPosition+'" aria-label="'+litySpip.strings.next+'" data-lity-next' 9368+'><b title="'+litySpip.strings.next+'">â¯</b></button>'; 9369} 9370group_info_text=" "+litySpip.strings.current; 9371group_info_text=group_info_text.replace('{current}',(groupPosition+1)+''); 9372group_info_text=group_info_text.replace('{total}',groupLength+''); 9373button_start_stop+='<button class="lity-start-stop" type="button" data-lity-stop-start>' 9374+'<b class="lity-start" aria-label="'+litySpip.strings.slideshowStart+'" title="'+litySpip.strings.slideshowStart+'">â¶</b>' 9375+'<b class="lity-stop" aria-label="'+litySpip.strings.slideshowStop+'" title="'+litySpip.strings.slideshowStop+'">â¡</b>' 9376+'</button>'; 9377group_info='<div class="lity-group-caption">' 9378+'<span class="lity-group-start-stop">'+button_start_stop+'</span>' 9379+'<span class="lity-group-current">'+group_info_text+'</span>' 9380+'<span class="lity-group-next-prev">'+button_next_prev+'</span>' 9381+'<span class="lity-group-progress-bar"><span class="lity-group-progress-bar-status" style="width:0"></span></span>' 9382+'</div>'; 9383} 9384var close_button_aria_label=litySpip.strings.close+' ('+litySpip.strings.press_escape+')'; 9385var dialog_title=(type==='image'?litySpip.strings.dialog_title_med:litySpip.strings.dialog_title_def); 9386dialog_title+=group_info_text+' ('+litySpip.strings.press_escape+')'; 9387var t= 9388'<dialog class="box_mediabox box_modalbox lity'+className+'" role="dialog" aria-label="'+dialog_title+'" tabindex="-1">' 9389+'<div class="lity-wrap"'+(cfg.overlayClose===false?'':' data-lity-close')+' role="document">' 9390+'<div class="lity-loader" aria-hidden="true" aria-label="'+litySpip.strings.loading+'"><span class="box-loading"></span></div>' 9391+'<div class="lity-container"'+styles_container+'>' 9392+'<button class="lity-close" type="button" aria-label="'+close_button_aria_label+'" data-lity-close><b data-lity-close title="'+litySpip.strings.close+'">×</b></button>' 9393+'<div class="lity-content"'+styles_content+'></div>' 9394+group_info 9395+'</div>' 9396+'</div>' 9397+'</dialog>'; 9398return t; 9399}, 9400failHandler:function(target,instance){ 9401return'<div class="error lity-error">Failed loading content</div>'; 9402}, 9403ajaxHandler:function(target,instance){ 9404var selector, 9405off=target.indexOf(" "); 9406if(off>-1){ 9407selector=target.slice(off); 9408selector=selector.match(/[^\x20\t\r\n\f]+/g)||[]; 9409selector=selector.join(" "); 9410target=target.slice(0,off); 9411} 9412if(jQuery.spip.preloaded_urls[target]){ 9413var content=jQuery.spip.preloaded_urls[target]; 9414if(selector){ 9415content=$("<div>").append($.parseHTML(content)).find(selector); 9416} 9417return $('<div class="lity-content-inner"></div>').append(content); 9418} 9419var _deferred=$.Deferred; 9420var deferred=_deferred(); 9421var failed=function(){ 9422deferred.reject($('<span class="error lity-error"></span>').append('Failed loading ajax')); 9423}; 9424$.get(target) 9425.done(function(content){ 9426jQuery.spip.preloaded_urls[target]=content; 9427if(selector){ 9428content=$("<div>").append($.parseHTML(content)).find(selector); 9429} 9430deferred.resolve($('<div class="lity-content-inner"></div>').append(content)); 9431}) 9432.fail(failed); 9433return deferred.promise(); 9434}, 9435imageBuildContent:function(img,desc,longdesc,defaultCaptionClass){ 9436img.attr('alt',desc?desc:''); 9437desc=(longdesc?longdesc:desc); 9438if(desc){ 9439defaultCaptionClass=(defaultCaptionClass?defaultCaptionClass:'expanded'); 9440var id='lity-image-caption-'+Date.now().toString(36)+Math.random().toString(36).substr(2); 9441img.attr('aria-describedby',id); 9442img=$('<figure class="lity-image-figure"></figure>').append(img).append('<figcaption id="'+id+'" class="lity-image-caption '+defaultCaptionClass+'"><div class="lity-image-caption-text">'+desc+'</div></figcaption>'); 9443} 9444else{
9445img=$('<figure class="lity-image-figure"></figure>').append(img); 9446} 9447return img; 9448}, 9449imageHandler:function(target,instance){ 9450var _deferred=$.Deferred; 9451var desc=''; 9452var longdesc=''; 9453var defaultCaptionClass=(instance.options().defaultCaptionState==='min'?'min':'expanded'); 9454var opener=instance.opener(); 9455if(opener){ 9456desc=opener.attr('title')||$('img[alt]',opener).eq(0).attr('alt')||''; 9457var by=opener.attr('aria-describedby')||$('img[aria-describedby]',opener).eq(0).attr('aria-describedby')||''; 9458if(by){ 9459longdesc=$('#'+by).html(); 9460longdesc=longdesc.trim(); 9461} 9462if(!desc){ 9463desc=desc||instance.opener().attr('aria-label')||''; 9464} 9465desc=desc.trim(); 9466} 9467var img; 9468var cache=opener.data('lity-image-cache')||{}; 9469if(cache[target]){ 9470img=cache[target]; 9471img=litySpip.imageBuildContent(img,desc,longdesc,defaultCaptionClass); 9472return img; 9473} 9474img=$('<img src="'+target+'" class="lity-image-img" data-'+litySpip.nameSpace+'-force-max-height />'); 9475var deferred=_deferred(); 9476var failed=function(){ 9477deferred.reject($('<span class="error lity-error"></span>').append('Failed loading image')); 9478}; 9479img 9480.on('load',function(){ 9481if(this.naturalWidth===0){ 9482img.attr("style","width:25vw;"); 9483} 9484cache[target]=img; 9485opener.data('lity-image-cache',cache); 9486deferred.resolve(litySpip.imageBuildContent(img,desc,longdesc,defaultCaptionClass)); 9487}) 9488.on('error',failed) 9489; 9490return deferred.promise(); 9491}, 9492groupElements:function(groupName){ 9493return $('.lity-enabled[data-'+litySpip.nameSpace+'-group'+'='+groupName+']'); 9494}, 9495eventSet:{}, 9496setEvents:function(what){ 9497if(!litySpip.eventSet[what]){ 9498switch(what){ 9499case'opener': 9500$(document).on('click','.lity-enabled',litySpip.onClickOpener); 9501break; 9502case'listener': 9503$(document).on('click','.lity-previous,.lity-next',litySpip.onPrevNext); 9504$(document).on('click','.lity-start-stop',litySpip.onSlideShowToggle); 9505$(window).on('keyup',litySpip.onKeyUp); 9506$(document).on('click','.lity-image-caption',litySpip.onCaptionToggle); 9507break; 9508} 9509litySpip.eventSet[what]=true; 9510} 9511}, 9512onKeyUp:function(event){ 9513var c={37:"previous",39:"next"}[event.keyCode]; 9514if(c){ 9515var current=lity.current(); 9516if(current){ 9517jQuery('.lity-'+c,current.element()).trigger('click'); 9518} 9519} 9520}, 9521onCaptionToggle:function(event){ 9522var $caption=$(this); 9523$caption.toggleClass('min expanded'); 9524}, 9525openerFromPrevNext($button){ 9526var groupName=$button.data('group-name'); 9527var groupPosition=$button.data('group-position'); 9528return litySpip.groupElements(groupName).eq(groupPosition); 9529}, 9530onPrevNext:function(event){ 9531var $button=$(this); 9532var newEl=litySpip.openerFromPrevNext($button); 9533if(newEl){ 9534var element=lity.current().element(); 9535litySpip.isTransition={oldClosed:false,newOpened:true}; 9536element.addClass('lity-no-transition').css('visibility','hidden'); 9537litySpip.slideshowStop(element); 9538var options={transitionOnOpen:$button.is('.lity-next')?'slide-from-right':'slide-from-left'}; 9539if(element.is('.lity-slideshow')){ 9540options.slideShow=true; 9541} 9542lity.current().close(); 9543litySpip.elementOpener(newEl,options); 9544} 9545}, 9546slideshowStart:function(element){ 9547var $progress=element.find('.lity-group-progress-bar-status'); 9548$progress.attr('style',''); 9549$progress.css('width','100%'); 9550var delay=litySpip.config.slideshowSpeed; 9551setTimeout(function(){ 9552$progress.css('transition','width '+((delay-200)/1000)+'s linear'); 9553$progress.css('width','0'); 9554},200); 9555timer=setTimeout(function(){element.find('.lity-next').trigger('click')},delay); 9556element.data('lity-timer',timer); 9557$('.lity-start',element).attr('aria-hidden','true'); 9558$('.lity-stop',element).attr('aria-hidden','false'); 9559jQuery('.lity-start-stop',element).focus(); 9560}, 9561slideshowStop:function(element){ 9562timer=element.data('lity-timer'); 9563if(timer){ 9564clearTimeout(timer); 9565} 9566}, 9567onSlideShowToggle:function(event){ 9568var $button=$(this); 9569var element=$button.closest('.lity'); 9570var slideShowState=(element.is('.lity-slideshow')?true:false); 9571var timer; 9572if(!slideShowState){ 9573litySpip.slideshowStart(element); 9574} 9575else{ 9576litySpip.slideshowStop(element); 9577$('.lity-start',element).attr('aria-hidden','false'); 9578$('.lity-stop',element).attr('aria-hidden','true'); 9579} 9580element.toggleClass('lity-slideshow'); 9581}, 9582onClickOpener:function(event){ 9583event.preventDefault(); 9584var opener=$(this); 9585litySpip.elementOpener(opener); 9586}, 9587elementOpener:function(opener,options){ 9588var cfg=opener.data('mediabox-options'); 9589if(options){ 9590cfg=$.extend({},cfg,options); 9591} 9592var target=opener.data('href-popin')||opener.data('href')||opener.attr('href')||opener.attr('src'); 9593litySpip.lityOpener(target,cfg,opener.get(0)); 9594}, 9595lityOpener:function(target,cfg,opener){ 9596litySpip.setEvents('listener'); 9597if(!litySpip.isTransition){ 9598litySpip.callbacks.onOpen.push(cfg.onOpen||false); 9599litySpip.callbacks.onShow.push(cfg.onShow||false); 9600litySpip.callbacks.onClose.push(cfg.onClose||false); 9601litySpip.focusedItem.push($(document.activeElement)); 9602} 9603var type=cfg.type||''; 9604if(!type&&opener){ 9605type=$(opener).data(litySpip.nameSpace+'-type')||''; 9606} 9607var handlers=lity.handlers(); 9608if(type==='ajax'){ 9609handlers.ajax=litySpip.ajaxHandler; 9610} 9611handlers.image=litySpip.imageHandler; 9612if(type==='inline'){ 9613var el=[]; 9614try{ 9615el=$(target); 9616}catch(e){ 9617el=[]; 9618} 9619if(!el.length){ 9620handlers.inline=litySpip.failHandler; 9621} 9622} 9623cfg=$.extend({handlers:handlers},cfg); 9624if(type&&['image','inline','ajax','iframe'].indexOf(type)!==-1){ 9625cfg.handler=type; 9626} 9627if(opener&&typeof($.parseMediaboxOptions)!=="undefined"){
9628cfg=$.extend(cfg,$.parseMediaboxOptions(litySpip.nameSpace,opener)); 9629} 9630if(!!cfg.preloadOnly){ 9631litySpip.lityPreLoader(target,cfg,opener); 9632} 9633else{ 9634var groupPosition=0; 9635var groupLength=0; 9636if(opener){ 9637var groupName=cfg.rel||(opener?$(opener).data(litySpip.nameSpace+'-group'):''); 9638if(groupName){ 9639var elements=litySpip.groupElements(groupName); 9640groupPosition=elements.index($(opener)); 9641groupLength=elements.length; 9642} 9643} 9644cfg=$.extend({template:litySpip.template(cfg,type,groupName,groupPosition,groupLength)},cfg); 9645if(cfg.samePopin){ 9646var l=lity.current(); 9647if(l){ 9648l.close(); 9649} 9650} 9651lity(target,cfg,opener); 9652} 9653}, 9654lityPreLoader:function(target,cfg,opener){ 9655if(cfg.handler&&cfg.handlers[cfg.handler]){ 9656if(cfg.handler==='image'||cfg.handler==='ajax'){ 9657var instance={ 9658opener:function(){return $(opener);}, 9659options:function(){return cfg} 9660}; 9661var content=cfg.handlers[cfg.handler](target,instance); 9662} 9663} 9664}, 9665ajaxReloadElements:function(elements){ 9666const targets=elements 9667.split(',') 9668.map(s=>s.trim()) 9669.filter(Boolean); 9670targets.forEach(function(target){ 9671try{ 9672if(/^[.#[]/.test(target)){ 9673const $element=$(target); 9674if($element.length){ 9675$element.ajaxReload(); 9676} 9677}else{ 9678ajaxReload(target); 9679} 9680}catch(e){ 9681console.warn("Mediabox ajaxReloadElements : erreur lors du traitement de '"+target+"'.",e); 9682} 9683}); 9684} 9685} 9686jQuery.fn.extend({ 9687mediabox:function(options){ 9688var cfg=$.extend({},litySpip.config,options); 9689if(this===jQuery.fn){ 9690var href=cfg.href||""; 9691litySpip.lityOpener(href,cfg,null); 9692return this; 9693}else{ 9694if(cfg.rel){ 9695this.attr('data-'+litySpip.nameSpace+'-group',cfg.rel); 9696} 9697else{ 9698this.each(function(){ 9699var rel=$(this).attr('rel'); 9700if(rel){ 9701$(this).attr('data-'+litySpip.nameSpace+'-group',rel); 9702} 9703}); 9704} 9705litySpip.setEvents('opener'); 9706this 9707.data('mediabox-options',cfg) 9708.addClass('lity-enabled'); 9709(cfg.preload?this:this.filter('[data-'+litySpip.nameSpace+'-preload]')).each(function(){ 9710litySpip.elementOpener($(this),{preloadOnly:true}); 9711}); 9712return this; 9713} 9714}, 9715mediaboxClose:function(){ 9716var $current=lity.current(); 9717if($current){ 9718$current.close(); 9719return true; 9720} 9721return false; 9722} 9723}); 9724var initConfig=function(){ 9725var b=typeof(mediabox_settings)=='object'?mediabox_settings:{}; 9726litySpip.nameSpace=b.ns?b.ns:'mediabox'; 9727litySpip.strings.slideshowStart=b.str_ssStart; 9728litySpip.strings.slideshowStop=b.str_ssStop; 9729litySpip.strings.current=b.str_cur; 9730litySpip.strings.previous=b.str_prev; 9731litySpip.strings.next=b.str_next; 9732litySpip.strings.close=b.str_close; 9733litySpip.strings.loading=b.str_loading; 9734litySpip.strings.press_escape=b.str_petc; 9735litySpip.strings.dialog_title_def=b.str_dialTitDef; 9736litySpip.strings.dialog_title_med=b.str_dialTitMed; 9737litySpip.config.slideshowSpeed=(b.lity.slideshow_speed?b.lity.slideshow_speed:5000); 9738litySpip.config.defaultCaptionState=(b.lity.defaultCaptionState?b.lity.defaultCaptionState:'expanded'); 9739var styles={ 9740'container':'', 9741'content':'', 9742}; 9743var max; 9744if(b.lity.minWidth){ 9745max=(b.lity.maxWidth?b.lity.maxWidth.replace('%','vw'):'95vw'); 9746styles.content+="min-width:min("+max+","+b.lity.minWidth.replace('%','vw')+');'; 9747} 9748if(b.lity.maxWidth){ 9749styles.container+="max-width:"+b.lity.maxWidth.replace('%','vw')+';'; 9750} 9751if(b.lity.minHeight){ 9752max=(b.lity.maxHeight?b.lity.maxHeight.replace('%','vw'):'95vh'); 9753styles.content+="min-height:min("+max+","+b.lity.minHeight.replace('%','vh')+');'; 9754} 9755if(b.lity.maxHeight){ 9756styles.container+="max-height:"+b.lity.maxHeight.replace('%','vh')+';'; 9757} 9758var insert=''; 9759for(let key in styles){ 9760if(styles[key]){ 9761insert+='.box_mediabox .lity-'+key+'{'+styles[key]+'}'; 9762} 9763} 9764if(b.lity.opacite){ 9765insert+='.box_mediabox:before{opacity:'+b.lity.opacite+'}'; 9766} 9767if(insert){ 9768$('head').append($('<style type="text/css">'+insert+'</style>')); 9769} 9770$(document).on('lity:open',function(event,instance){ 9771if(document.fullscreenElement){ 9772document.fullscreenElement.appendChild(instance.element().get(0)); 9773} 9774if(!instance.element().is('.lity-slideshow')){ 9775jQuery('.lity-close',instance.element()).focus(); 9776} 9777if(!litySpip.isTransition){ 9778var callback=litySpip.callbacks.onOpen.pop(); 9779if(callback){ 9780callback(event,instance); 9781} 9782} 9783}); 9784$(document).on('lity:ready',function(event,instance){ 9785litySpip.adjustHeight(instance); 9786if(jQuery.spip){ 9787jQuery.spip.triggerAjaxLoad(instance.element().get(0)) 9788} 9789if(instance.element().addClass('lity-ready').is('.lity-slideshow')){ 9790litySpip.slideshowStart(instance.element()); 9791} 9792if(!litySpip.isTransition){ 9793var callback=litySpip.callbacks.onShow.pop(); 9794if(callback){
9795callback(event,instance); 9796} 9797} 9798else{ 9799litySpip.isTransition.newOpened=true; 9800if(litySpip.isTransition.oldClosed){ 9801litySpip.isTransition=false; 9802} 9803instance.content().trigger('lity:resize',[instance]); 9804} 9805var $next=instance.element().find('.lity-next'); 9806if($next.length){ 9807$next=litySpip.openerFromPrevNext($next); 9808if($next){ 9809litySpip.elementOpener($next,{preloadOnly:true}); 9810} 9811} 9812}); 9813$(document).on('lity:close',function(event,instance){ 9814if(!litySpip.isTransition){ 9815if(litySpip.callbacks.onShow.length>litySpip.callbacks.onOpen.length){ 9816litySpip.callbacks.onShow.pop(); 9817} 9818var callback=litySpip.callbacks.onClose.pop(); 9819if(callback){ 9820callback(event,instance); 9821} 9822let options=instance.options(); 9823let ajaxReloadArgs=options.ajaxReloadOnClose; 9824if(ajaxReloadArgs&&typeof(ajaxReloadArgs)==='string'){ 9825litySpip.ajaxReloadElements(ajaxReloadArgs); 9826} 9827} 9828}); 9829$(document).on('lity:remove',function(event,instance){ 9830if(!litySpip.isTransition){ 9831var focused=litySpip.focusedItem.pop(); 9832if(focused){ 9833try{ 9834focused.focus(); 9835}catch(e){ 9836} 9837} 9838} 9839else{ 9840litySpip.isTransition.oldClosed=true; 9841if(litySpip.isTransition.newOpened){ 9842litySpip.isTransition=false; 9843} 9844} 9845}); 9846$(document).on('lity:resize',function(event,instance){ 9847litySpip.adjustHeight(instance); 9848}); 9849} 9850initConfig(); 9851})(jQuery); 9852 9853 9854/* plugins-dist/mediabox/javascript/spip.mediabox.js?1790089482 */ 9855(function($){ 9856$.mediabox 9857=function(options){ 9858if(typeof(mediabox_autodetect_href)=='function' 9859&&options.href 9860&&!options.type){ 9861options.type=mediabox_autodetect_href(options.href); 9862} 9863$.fn.mediabox(options); 9864}; 9865$.modalboxload=$.modalbox=function(href,options){$.mediabox($.extend({href:href,overlayClose:true},options));}; 9866$.modalboxclose=$.mediaboxClose=$.fn.mediaboxClose; 9867$.parseMediaboxOptions=function(nameSpace,opener){ 9868var options={}; 9869var data2options={ 9870"width":"width", 9871"height":"height", 9872"min-width":"minWidth", 9873"min-height":"minHeight", 9874"max-width":"maxWidth", 9875"max-height":"maxHeight", 9876"caption-state":"defaultCaptionState", 9877"sidebar":"sideBar", 9878"class":"className", 9879"ajaxreload-on-close":"ajaxReloadOnClose", 9880}; 9881var v; 9882for(var o in data2options){ 9883v=($(opener).data(nameSpace+'-'+o)||''); 9884if(v){ 9885options[data2options[o]]=v; 9886} 9887} 9888if(!options.length){ 9889var eltclass=$(opener).prop('class'); 9890if(eltclass){ 9891if(eltclass.indexOf("boxWidth-")!==-1){ 9892var w=eltclass.match(/boxWidth-([^\s'">]*)/); 9893w=w[1].replace(/pc/,'%'); 9894options["width"]=w; 9895} 9896if(eltclass.indexOf("boxHeight-")!==-1){ 9897var h=eltclass.match(/boxHeight-([^\s'">]*)/); 9898h=h[1].replace(/pc/,'%'); 9899options["height"]=h; 9900} 9901if(eltclass.indexOf("boxIframe")!==-1){ 9902options["type"]='iframe'; 9903} 9904if(eltclass.indexOf("boxInline")!==-1){ 9905options["type"]='inline'; 9906} 9907} 9908} 9909data2options={"same-popin":"samePopin","type":"type"}; 9910for(var o in data2options){ 9911v=($(opener).data(nameSpace+'-'+o)||''); 9912if(v){ 9913options[data2options[o]]=v; 9914} 9915} 9916return options; 9917} 9918})(jQuery); 9919var mediaboxInit=function(){ 9920var b=$.extend({},mediabox_settings); 9921if(b.ns!=='box'){ 9922$('[data-box-type]').each(function(i,e){ 9923var $e=$(e); 9924var d=$e.attr('data-box-type'); 9925$e.removeAttr('data-box-type').attr('data-'+b.ns+'-type',d); 9926}); 9927} 9928if(b.auto_detect){ 9929var $popins=$('[data-href-popin],[data-'+b.ns+'-type]'+(window.var_zajax_content?',[data-var_zajax],a.popin':'')) 9930.add(b.sel_c) 9931.not(ajaxbloc_selecteur,'.ajaxbloc','.hasbox'); 9932$popins.each(function(i,e){ 9933var $e=$(e); 9934var url=$e.attr('href')||"./"; 9935var popin=$e.attr('data-href-popin'); 9936var type=$e.attr('data-'+b.ns+'-type')||''; 9937if(!popin){ 9938var env=$e.attr('data-ajax-env'); 9939if(env){ 9940url=parametre_url(parametre_url(url,'var_ajax',1),'var_ajax_env',env) 9941$e.removeAttr('data-ajax-env'); 9942type='ajax'; 9943} 9944var za=$e.attr('data-var_zajax'); 9945if(za!==undefined||$e.hasClass('popin')){ 9946if(za==='content'&&window.var_zajax_content){ 9947za=window.var_zajax_content; 9948} 9949url=parametre_url(url,'var_zajax',za||window.var_zajax_content); 9950$e.removeAttr('data-var_zajax'); 9951type='ajax'; 9952} 9953if((url!==$e.attr('href')||(!popin&&type))&&url!=="./"){ 9954$e.attr('data-href-popin',url); 9955} 9956} 9957url=popin||url; 9958if(!type){ 9959var attrs=$e.data(); 9960var types=['inline','html','iframe','image','ajax']; 9961types.some(function(e){ 9962var k=b.ns+e.charAt(0).toUpperCase()+e.slice(1); 9963if(attrs[k]){ 9964type=e; 9965return true; 9966} 9967}); 9968} 9969if(!type&&typeof(mediabox_autodetect_href)=='function'){ 9970type=mediabox_autodetect_href(url); 9971} 9972if(!type||$e.hasClass('boxIframe')){ 9973type="iframe"; 9974$e.removeClass('boxIframe'); 9975} 9976$e.attr('data-'+b.ns+'-type',type); 9977}); 9978} 9979if(b.sel_g){ 9980var $items=$(); 9981$(b.sel_g).each(function(i,e){ 9982$items=$items.add( 9983$(this).is('a[type^=\'image\']') 9984?$(this) 9985:$(this).find('a[type^=\'image\']') 9986); 9987}); 9988$items 9989.not('.hasbox') 9990.removeAttr('onclick') 9991.mediabox({rel:'galerieauto',slideshow:true,slideshowAuto:false,type:'image'}) 9992.addClass('hasbox'); 9993} 9994if(b.tt_img){ 9995$('a[type^="image"],a[href$=".png"],a[href$=".jpg"],a[href$=".jpeg"],a[href$=".svg"],a[href$=".webp"]') 9996.not('.hasbox') 9997.removeAttr('onclick') 9998.mediabox({type:'image'}) 9999.addClass('hasbox') 10000; 10001} 10002$(b.sel_c) 10003.not('.hasbox') 10004.mediabox() 10005.addClass('hasbox') 10006; 10007$('[data-href-popin]',this) 10008.not('.hasbox') 10009.click(function(){if($.modalbox)$.modalbox($(this).attr('data-href-popin'),$.parseMediaboxOptions(b.ns,this));return false;}) 10010.addClass('hasbox'); 10011}; 10012(function($){ 10013if(typeof onAjaxLoad=='function')onAjaxLoad(mediaboxInit);
10014$(mediaboxInit); 10015})(jQuery); 10016function mediabox_autodetect_href(href,options){ 10017options=$.extend({ 10018breakMode:true, 10019tests:{ 10020image:/\.(gif|png|jp(e|g|eg)|bmp|ico|webp|jxr|svg)((#|\?).*)?$/i, 10021inline:/^[#.]\w/, 10022html:/^\s*<[\w!][^<]*>/, 10023ajax:/((\?|&(amp;)?)var_z?ajax=|cache-ajaxload\/)/i, 10024iframe:/^(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,}))\.?)(?::\d{2,5})?(?:[/?#]\S*)?$/i, 10025}, 10026},options); 10027var matched=options.breakMode?false:[]; 10028$.each(options.tests,function(type,regex){ 10029if(href.match(regex)&&!href.match('/File:[^/]+(\\#|[?]|$)')){ 10030if(options.breakMode){ 10031matched=type; 10032return false; 10033}else{ 10034matched.push(type); 10035} 10036} 10037}); 10038return matched; 10039}; 10040 10041 10042/* plugins-dist/porte_plume/javascript/jquery.markitup_pour_spip.js?1790089483 */ 10043 10044;(function($){ 10045$.fn.markItUp=function(settings,extraSettings){ 10046var method,params,options,ctrlKey,shiftKey,altKey;ctrlKey=shiftKey=altKey=false; 10047markitup_prompt=false; 10048if(typeof settings=='string'){ 10049method=settings; 10050params=extraSettings; 10051} 10052options={id:'', 10053nameSpace:'', 10054root:'', 10055lang:'', 10056previewHandler:false, 10057previewInWindow:'', 10058previewInElement:'', 10059previewAutoRefresh:true, 10060previewPosition:'after', 10061previewTemplatePath:'~/templates/preview.html', 10062previewParser:false, 10063previewParserPath:'', 10064previewParserVar:'data', 10065previewParserAjaxType:'POST', 10066resizeHandle:true, 10067beforeInsert:'', 10068afterInsert:'', 10069onEnter:{}, 10070onShiftEnter:{}, 10071onCtrlEnter:{}, 10072onTab:{}, 10073markupSet:[{}] 10074}; 10075$.extend(options,settings,extraSettings); 10076if(!options.root){ 10077$('script').each(function(a,tag){ 10078var miuScript=$(tag).get(0).src.match(/(.*)jquery\.markitup(\.pack)?\.js$/); 10079if(miuScript!==null){ 10080options.root=miuScript[1]; 10081} 10082}); 10083} 10084var uaMatch=function(ua){ 10085ua=ua.toLowerCase(); 10086var match=/(chrome)[ \/]([\w.]+)/.exec(ua)||/(webkit)[ \/]([\w.]+)/.exec(ua)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua)||/(msie) ([\w.]+)/.exec(ua)|| 10087ua.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua)|| 10088[]; 10089return{ 10090browser:match[1]||"", 10091version:match[2]||"0" 10092}; 10093}; 10094var matched=uaMatch(navigator.userAgent); 10095var browser={}; 10096if(matched.browser){ 10097browser[matched.browser]=true; 10098browser.version=matched.version; 10099} 10100if(browser.chrome){ 10101browser.webkit=true; 10102}else if(browser.webkit){ 10103browser.safari=true; 10104} 10105return this.each(function(){ 10106var $$,textarea,levels,scrollPosition,caretPosition, 10107clicked,hash,header,footer,previewWindow,template,iFrame,abort, 10108before,after; 10109$$=$(this); 10110textarea=this; 10111levels=[]; 10112abort=false; 10113scrollPosition=caretPosition=0; 10114caretOffset=-1; 10115options.previewParserPath=localize(options.previewParserPath); 10116options.previewTemplatePath=localize(options.previewTemplatePath); 10117if(method){ 10118switch(method){ 10119case'remove': 10120remove(); 10121break; 10122case'insert': 10123markup(params); 10124break; 10125default: 10126$.error('Method '+method+' does not exist on jQuery.markItUp'); 10127} 10128return; 10129} 10130function localize(data,inText){ 10131if(inText){ 10132return data.replace(/("|')~\//g,"$1"+options.root); 10133} 10134return data.replace(/^~\//,options.root); 10135} 10136function init(){ 10137id='';nameSpace=''; 10138if(options.id){ 10139id='id="'+options.id+'"'; 10140}else if($$.attr("id")){ 10141id='id="markItUp'+($$.attr("id").substr(0,1).toUpperCase())+($$.attr("id").substr(1))+'"'; 10142} 10143if(options.nameSpace){ 10144nameSpace='class="'+options.nameSpace+'"'; 10145} 10146currentScrollPosition=$$.scrollTop(); 10147$$.wrap('<div '+nameSpace+'></div>'); 10148$$.wrap('<div '+id+' class="markItUp"></div>'); 10149$$.wrap('<div class="markItUpContainer"></div>'); 10150$$.addClass("markItUpEditor"); 10151$$.scrollTop(currentScrollPosition); 10152header=$('<div class="markItUpHeader"></div>').insertBefore($$); 10153$(dropMenus(options.markupSet)).appendTo(header); 10154$(header).find("li.markItUpDropMenu ul:empty").parent().remove(); 10155footer=$('<div class="markItUpFooter"></div>').insertAfter($$); 10156if(options.resizeHandle===true&&browser.safari!==true){ 10157resizeHandle=$('<div class="markItUpResizeHandle"></div>') 10158.insertAfter($$) 10159.on("mousedown.markItUp",function(e){ 10160var h=$$.height(),y=e.clientY,mouseMove,mouseUp; 10161mouseMove=function(e){ 10162$$.css("height",Math.max(20,e.clientY+h-y)+"px"); 10163return false;
10164}; 10165mouseUp=function(e){ 10166$("html").off("mousemove.markItUp",mouseMove).off("mouseup.markItUp",mouseUp); 10167return false; 10168}; 10169$("html").on("mousemove.markItUp",mouseMove).on("mouseup.markItUp",mouseUp); 10170}); 10171footer.append(resizeHandle); 10172} 10173$$.on('keydown.markItUp',keyPressed).on('keyup',keyPressed); 10174$$.on("insertion.markItUp",function(e,settings){ 10175if(settings.target!==false){ 10176get(); 10177} 10178if(textarea===$.markItUp.focused){ 10179markup(settings); 10180} 10181}); 10182$$.on('focus.markItUp',function(){ 10183$.markItUp.focused=this; 10184}); 10185if(options.previewInElement){ 10186refreshPreview(); 10187} 10188} 10189function dropMenus(markupSet){ 10190var ul=$('<ul></ul>'),i=0; 10191var lang=($$.attr('lang')||options.lang); 10192$('li:hover > ul',ul).css('display','block'); 10193$.each(markupSet,function(){ 10194var button=this,t='',title,li,j; 10195if((!lang||!button.lang||($.inArray(lang,button.lang)!=-1)) 10196&&(!button.lang_not||($.inArray(lang,button.lang_not)==-1))){ 10197button.title?title=(button.key)?(button.title||'')+' [Ctrl+'+button.key+']':(button.title||''):title=(button.key)?(button.name||'')+' [Ctrl+'+button.key+']':(button.name||''); 10198key=(button.key)?'accesskey="'+button.key+'"':''; 10199if(button.separator){ 10200li=$('<li class="markItUpSeparator">'+(button.separator||'')+'</li>').appendTo(ul); 10201}else{ 10202i++; 10203for(j=levels.length-1;j>=0;j--){ 10204t+=levels[j]+"-"; 10205} 10206li=$('<li class="markItUpButton markItUpButton'+t+(i)+' '+(button.className||'')+'"><a href="#" '+key+' title="'+title+'"><em>'+(button.name||'')+'</em></a></li>') 10207.on("contextmenu.markItUp",function(){ 10208return false; 10209}).on('click.markItUp',function(e){ 10210e.preventDefault(); 10211}).on("focusin.markItUp",function(){ 10212setTimeout(function(){ 10213$$.focus(); 10214},0); 10215}).on('mouseup',function(e){ 10216if(button.call){ 10217eval(button.call)(e); 10218} 10219setTimeout(function(){markup(button)},1); 10220return false; 10221}).on('mouseenter.markItUp',function(){ 10222$('> a',this).addClass('active'); 10223$('> ul',this).addClass('expanded'); 10224$(document).one('click',function(){ 10225$('ul a',header).removeClass('active'); 10226$('ul ul',header).removeClass('expanded'); 10227} 10228); 10229}).on('mouseleave.markItUp',function(){ 10230$('> a',this).removeClass('active'); 10231$('> ul',this).removeClass('expanded'); 10232}).appendTo(ul); 10233if(button.dropMenu){ 10234levels.push(i); 10235$(li).addClass('markItUpDropMenu').append(dropMenus(button.dropMenu)); 10236} 10237} 10238} 10239}); 10240levels.pop(); 10241return ul; 10242} 10243function magicMarkups(string){ 10244if(string){ 10245string=string.toString(); 10246string=string.replace(/\(\!\(([\s\S]*?)\)\!\)/g, 10247function(x,a){ 10248var b=a.split('|!|'); 10249if(altKey===true){ 10250return(b[1]!==undefined)?b[1]:b[0]; 10251}else{ 10252return(b[1]===undefined)?"":b[0]; 10253} 10254} 10255); 10256string=string.replace(/\[\!\[([\s\S]*?)\]\!\]/g, 10257function(x,a){ 10258var b=a.split(':!:'); 10259if(abort===true){ 10260return false; 10261} 10262markitup_prompt=true; 10263value=prompt(b[0],(b[1])?b[1]:''); 10264if(value===null){ 10265abort=true; 10266} 10267setTimeout(function(){markitup_prompt=false;},500); 10268return value; 10269} 10270); 10271return string; 10272} 10273return""; 10274} 10275function prepare(action){ 10276if($.isFunction(action)){ 10277action=action(hash); 10278} 10279return magicMarkups(action); 10280} 10281function build(string){ 10282var openWith=prepare(clicked.openWith); 10283var placeHolder=prepare(clicked.placeHolder); 10284var replaceWith=prepare(clicked.replaceWith); 10285var closeWith=prepare(clicked.closeWith); 10286var openBlockWith=prepare(clicked.openBlockWith); 10287var closeBlockWith=prepare(clicked.closeBlockWith); 10288var multiline=clicked.multiline; 10289if(replaceWith!==""){ 10290block=openWith+replaceWith+closeWith; 10291}else if(selection===''&&placeHolder!==''){ 10292block=openWith+placeHolder+closeWith; 10293}else if(multiline===true){ 10294string=string||selection; 10295var lines=[string],blocks=[]; 10296if(multiline===true){ 10297lines=string.split(/\r?\n/); 10298} 10299for(var l=0;l<lines.length;l++){ 10300line=lines[l]; 10301var trailingSpaces; 10302if(trailingSpaces=line.match(/ *$/)){ 10303blocks.push(openWith+line.replace(/ *$/g,'')+closeWith+trailingSpaces); 10304}else{ 10305blocks.push(openWith+line+closeWith); 10306} 10307} 10308block=blocks.join("\n"); 10309}else{ 10310block=openWith+(string||selection)+closeWith; 10311} 10312block=openBlockWith+block+closeBlockWith; 10313return{block:block, 10314openBlockWith:openBlockWith, 10315openWith:openWith, 10316replaceWith:replaceWith, 10317placeHolder:placeHolder, 10318closeWith:closeWith, 10319closeBlockWith:closeBlockWith 10320}; 10321} 10322function selectWord(){ 10323selectionBeforeAfter(/\s|[.,;:!¡?¿()]/); 10324selectionSave(); 10325} 10326function selectLine(){ 10327selectionBeforeAfter(/\r?\n/); 10328selectionSave(); 10329} 10330function selectionRemoveLast(pattern){ 10331if(!pattern)pattern=/\s/; 10332last=selection[selection.length-1]; 10333if(last&&last.match(pattern)){ 10334set(caretPosition,selection.length-1); 10335get(); 10336$.extend(hash,{caretPosition:caretPosition,scrollPosition:scrollPosition}); 10337} 10338} 10339function selectionBeforeAfter(pattern){ 10340if(!pattern)pattern=/\s/; 10341sautAvantIE=sautApresIE=0; 10342if(browser.msie){ 10343lenSelection=selection.length-fixIeBug(selection); 10344if(caretPosition){ 10345set(caretPosition-1,2); 10346sautAvantIE=fixIeBug(document.selection.createRange().text); 10347} 10348set(caretPosition,2); 10349sautApresIE=fixIeBug(document.selection.createRange().text); 10350set(0,caretPosition); 10351before=document.selection.createRange().text; 10352set(caretPosition+lenSelection,textarea.value.length);
10353after=document.selection.createRange().text; 10354set(caretPosition,lenSelection); 10355selection=document.selection.createRange().text; 10356}else{ 10357before=textarea.value.substring(0,caretPosition); 10358after=textarea.value.substring(caretPosition+selection.length-fixIeBug(selection)); 10359} 10360before=before.split(pattern); 10361after=after.split(pattern); 10362if(sautAvantIE)before.push(""); 10363if(sautApresIE)after.unshift(""); 10364} 10365function selectionSave(){ 10366nb_before=before?before[before.length-1].length:0; 10367nb_after=after?after[0].length:0; 10368nb=nb_before+selection.length+nb_after-fixIeBug(selection); 10369caretPosition=caretPosition-nb_before; 10370set(caretPosition,nb); 10371get(); 10372$.extend(hash,{selection:selection,caretPosition:caretPosition,scrollPosition:scrollPosition}); 10373} 10374function markup(button){ 10375var len,j,n,i; 10376hash=clicked=button; 10377get(); 10378$.extend(hash,{line:"", 10379root:options.root, 10380textarea:textarea, 10381selection:(selection||''), 10382caretPosition:caretPosition, 10383ctrlKey:ctrlKey, 10384shiftKey:shiftKey, 10385altKey:altKey 10386} 10387); 10388if(button.selectionType){ 10389if(button.selectionType=="word"){ 10390if(!selection){ 10391selectWord(); 10392}else{ 10393selectionRemoveLast(/\s/); 10394} 10395} 10396if(button.selectionType=="line"){ 10397selectLine(); 10398} 10399if(button.selectionType=="return"){ 10400if(!browser.msie){ 10401selectionBeforeAfter(/\r?\n/); 10402before_last=before[before.length-1]; 10403after=''; 10404if(r=before_last.match(/^-([*#]+) ?(.*)$/)){ 10405if(r[2]){ 10406button.replaceWith="\n-"+r[1]+' '; 10407before_last=''; 10408}else{ 10409button.replaceWith="\n"; 10410} 10411}else{ 10412before_last=''; 10413button.replaceWith="\n"; 10414} 10415before[before.length-1]=before_last; 10416selectionSave(); 10417} 10418} 10419} 10420prepare(options.beforeInsert); 10421prepare(clicked.beforeInsert); 10422if((ctrlKey===true&&shiftKey===true)||button.multiline===true){ 10423prepare(clicked.beforeMultiInsert); 10424} 10425$.extend(hash,{line:1}); 10426if((ctrlKey===true&&shiftKey===true)||button.forceMultiline===true){ 10427lines=selection.split(/\r?\n/); 10428for(j=0,n=lines.length,i=0;i<n;i++){ 10429if(n==1||$.trim(lines[i])!==''){ 10430$.extend(hash,{line:++j,selection:lines[i]}); 10431lines[i]=build(lines[i]).block; 10432}else{ 10433lines[i]=""; 10434} 10435} 10436string={block:lines.join('\n')}; 10437start=caretPosition; 10438len=string.block.length+((browser.opera)?n-1:0); 10439}else if(ctrlKey===true){ 10440string=build(selection); 10441start=caretPosition+string.openWith.length; 10442len=string.block.length-string.openWith.length-string.closeWith.length; 10443len=len-(string.block.match(/ $/)?1:0); 10444len-=fixIeBug(string.block); 10445}else if(shiftKey===true){ 10446string=build(selection); 10447start=caretPosition; 10448len=string.block.length; 10449len-=fixIeBug(string.block); 10450}else{ 10451string=build(selection); 10452start=caretPosition+string.block.length; 10453len=0; 10454start-=fixIeBug(string.block); 10455} 10456if((selection===''&&string.replaceWith==='')){ 10457caretOffset+=fixOperaBug(string.block); 10458start=caretPosition+string.openBlockWith.length+string.openWith.length; 10459len=string.block.length-string.openBlockWith.length-string.openWith.length-string.closeWith.length-string.closeBlockWith.length; 10460caretOffset=$$.val().substring(caretPosition,$$.val().length).length; 10461caretOffset-=fixOperaBug($$.val().substring(0,caretPosition)); 10462} 10463$.extend(hash,{caretPosition:caretPosition,scrollPosition:scrollPosition}); 10464if(string.block!==selection&&abort===false){ 10465insert(string.block); 10466set(start,len); 10467}else{ 10468caretOffset=-1; 10469} 10470get(); 10471$.extend(hash,{line:'',selection:selection}); 10472if((ctrlKey===true&&shiftKey===true)||button.multiline===true){ 10473prepare(clicked.afterMultiInsert); 10474} 10475prepare(clicked.afterInsert); 10476prepare(options.afterInsert); 10477if(previewWindow&&options.previewAutoRefresh){ 10478refreshPreview(); 10479} 10480textarea.dispatchEvent(new Event('input')); 10481shiftKey=altKey=ctrlKey=abort=false; 10482} 10483function fixOperaBug(string){ 10484if(browser.opera){ 10485return string.length-string.replace(/\n*/g,'').length; 10486} 10487return 0; 10488} 10489function fixIeBug(string){ 10490if(browser.msie){ 10491return string.length-string.replace(/\r*/g,'').length; 10492} 10493return 0; 10494} 10495function insert(block){ 10496if(document.selection){ 10497var newSelection=document.selection.createRange(); 10498newSelection.text=block; 10499}else{ 10500textarea.value=textarea.value.substring(0,caretPosition)+block+textarea.value.substring(caretPosition+selection.length,textarea.value.length); 10501} 10502} 10503function set(start,len){ 10504if(textarea.createTextRange){ 10505if(browser.opera&&browser.version>=9.5&&len==0){ 10506return false;
10507} 10508range=textarea.createTextRange(); 10509range.collapse(true); 10510range.moveStart('character',start); 10511range.moveEnd('character',len); 10512range.select(); 10513}else if(textarea.setSelectionRange){ 10514textarea.setSelectionRange(start,start+len); 10515} 10516textarea.scrollTop=scrollPosition; 10517textarea.focus(); 10518} 10519function get(){ 10520textarea.focus(); 10521scrollPosition=textarea.scrollTop; 10522if(document.selection){ 10523selection=document.selection.createRange().text; 10524if(browser.msie){ 10525var range=document.selection.createRange(),rangeCopy=range.duplicate(); 10526rangeCopy.moveToElementText(textarea); 10527caretPosition=-1; 10528while(rangeCopy.inRange(range)){ 10529rangeCopy.moveStart('character'); 10530caretPosition++; 10531} 10532}else{ 10533caretPosition=textarea.selectionStart; 10534} 10535}else{ 10536caretPosition=textarea.selectionStart; 10537selection=textarea.value.substring(caretPosition,textarea.selectionEnd); 10538} 10539return selection; 10540} 10541function preview(){ 10542if(typeof options.previewHandler==='function'){ 10543previewWindow=true; 10544}else if(options.previewInElement){ 10545previewWindow=$(options.previewInElement); 10546}else if(!previewWindow||previewWindow.closed){ 10547if(options.previewInWindow){ 10548previewWindow=window.open('','preview',options.previewInWindow); 10549$(window).unload(function(){ 10550previewWindow.close(); 10551}); 10552}else{ 10553iFrame=$('<iframe class="markItUpPreviewFrame"></iframe>'); 10554if(options.previewPosition=='after'){ 10555iFrame.insertAfter(footer); 10556}else{ 10557iFrame.insertBefore(header); 10558} 10559previewWindow=iFrame[iFrame.length-1].contentWindow||frame[iFrame.length-1]; 10560} 10561}else if(altKey===true){ 10562if(iFrame){ 10563iFrame.remove(); 10564}else{ 10565previewWindow.close(); 10566} 10567previewWindow=iFrame=false; 10568} 10569if(!options.previewAutoRefresh){ 10570refreshPreview(); 10571} 10572if(options.previewInWindow){ 10573previewWindow.focus(); 10574} 10575} 10576function refreshPreview(){ 10577renderPreview(); 10578} 10579function renderPreview(){ 10580var phtml; 10581var parsedData=$$.val(); 10582if(options.previewParser&&typeof options.previewParser==='function'){ 10583parsedData=options.previewParser(parsedData); 10584} 10585if(options.previewHandler&&typeof options.previewHandler==='function'){ 10586options.previewHandler(parsedData); 10587}else if(options.previewParserPath!==''){ 10588$.ajax({ 10589type:options.previewParserAjaxType, 10590dataType:'text', 10591global:false, 10592url:options.previewParserPath, 10593data:options.previewParserVar+'='+encodeURIComponent(parsedData), 10594success:function(data){ 10595writeInPreview(localize(data,1)); 10596} 10597}); 10598}else{ 10599if(!template){ 10600$.ajax({ 10601url:options.previewTemplatePath, 10602dataType:'text', 10603global:false, 10604success:function(data){ 10605writeInPreview(localize(data,1).replace(/<!-- content -->/g,parsedData)); 10606} 10607}); 10608} 10609} 10610return false; 10611} 10612function writeInPreview(data){ 10613if(options.previewInElement){ 10614$(options.previewInElement).html(data); 10615}else if(previewWindow&&previewWindow.document){ 10616try{ 10617sp=previewWindow.document.documentElement.scrollTop 10618}catch(e){ 10619sp=0; 10620} 10621previewWindow.document.open(); 10622previewWindow.document.write(data); 10623previewWindow.document.close(); 10624previewWindow.document.documentElement.scrollTop=sp; 10625} 10626} 10627function keyPressed(e){ 10628shiftKey=e.shiftKey; 10629altKey=e.altKey; 10630ctrlKey=(!(e.altKey&&e.ctrlKey))?(e.ctrlKey||e.metaKey):false; 10631if(e.type==='keydown'){ 10632if(ctrlKey===true){ 10633li=$('a[accesskey="'+((e.keyCode==13)?'\\n':String.fromCharCode(e.keyCode))+'"]',header).parent('li'); 10634if(li.length!==0){ 10635ctrlKey=false; 10636setTimeout(function(){ 10637li.triggerHandler('mouseup'); 10638},1); 10639return false; 10640} 10641} 10642if(!browser.opera){ 10643if(e.keyCode===13||e.keyCode===10){ 10644if(ctrlKey===true){ 10645ctrlKey=false; 10646markup(options.onCtrlEnter); 10647if(!options.onCtrlEnter.keepDefault){ 10648textarea.dispatchEvent(new Event('input')); 10649} 10650return options.onCtrlEnter.keepDefault; 10651}else if(shiftKey===true){ 10652shiftKey=false; 10653markup(options.onShiftEnter); 10654if(!options.onShiftEnter.keepDefault){ 10655textarea.dispatchEvent(new Event('input')); 10656} 10657return options.onShiftEnter.keepDefault; 10658}else{ 10659markup(options.onEnter); 10660if(!options.onEnter.keepDefault){ 10661textarea.dispatchEvent(new Event('input')); 10662} 10663return options.onEnter.keepDefault; 10664} 10665} 10666if(e.keyCode===9){ 10667if(shiftKey==true||ctrlKey==true||altKey==true){ 10668return false; 10669} 10670if(caretOffset!==-1){ 10671get(); 10672caretOffset=$$.val().length-caretOffset; 10673set(caretOffset,0); 10674caretOffset=-1; 10675return false; 10676}else{ 10677markup(options.onTab); 10678return options.onTab.keepDefault; 10679} 10680} 10681} 10682} 10683} 10684function remove(){ 10685$$.off(".markItUp").removeClass('markItUpEditor'); 10686$$.parent('div').parent('div.markItUp').parent('div').replaceWith($$); 10687var relativeRef=$$.parent('div').parent('div.markItUp').parent('div'); 10688if(relativeRef.length){ 10689relativeRef.replaceWith($$); 10690} 10691$$.data('markItUp',null); 10692} 10693init(); 10694}); 10695}; 10696$.fn.markItUpRemove=function(){ 10697return this.each(function(){ 10698$(this).markItUp('remove'); 10699} 10700); 10701}; 10702$.markItUp=function(settings){ 10703var options={target:false}; 10704$.extend(options,settings); 10705if(options.target){ 10706return $(options.target).each(function(){ 10707$(this).focus(); 10708$(this).trigger('insertion',[options]); 10709}); 10710}else{ 10711$('textarea').trigger('insertion',[options]); 10712} 10713}; 10714})(jQuery); 10715 10716 10717/* plugins-dist/porte_plume/javascript/jquery.previsu_spip.js?1790089483 */ 10718;(function($){ 10719$.fn.previsu_spip=function(settings){ 10720var options; 10721options={ 10722previewParserPath:'', 10723previewParserVar:'data', 10724textEditer:'Editer', 10725textVoir:'Voir', 10726textFullScreen:'Plein écran' 10727}; 10728$.extend(options,settings); 10729return this.each(function(){ 10730var $$,textarea,tabs,preview; 10731$$=$(this); 10732textarea=this;
10733function init(){ 10734$$.addClass("pp_previsualisation"); 10735if(!$$.parent().has('.markItUpContainer').length){ 10736$$.barre_outils('vide'); 10737} 10738var mark=$$.parent(); 10739tabs=$('<div class="markItUpTabs"></div>').prependTo(mark); 10740$(tabs).append( 10741'<a href="#fullscreen" class="fullscreen">'+options.textFullScreen+'</a>'+ 10742'<a href="#previsuVoir" class="previsuVoir">'+options.textVoir+'</a>'+ 10743'<a href="#previsuEditer" class="previsuEditer on">'+options.textEditer+'</a>' 10744); 10745preview=$('<div class="markItUpPreview"></div>').insertAfter(mark.find('.markItUpHeader')); 10746preview.hide(); 10747var is_full_screen=false; 10748var objet=mark.parents('.formulaire_spip')[0].className.match(/formulaire_editer_(\w+)/); 10749objet=(objet?objet[1]:''); 10750var champ=mark.parents('.editer')[0].className.match(/editer_(\w+)/); 10751champ=(champ?champ[1].toUpperCase():''); 10752var textarea=mark.find('textarea.pp_previsualisation'); 10753var preview=mark.find('.markItUpPreview'); 10754var dir=textarea.attr('dir'); 10755if(dir){ 10756preview.attr('dir',dir); 10757} 10758tabs.find('.fullscreen').click(function(){ 10759if(!mark.is('.fullscreen')){ 10760textarea.data('height-origin',textarea.css('height')); 10761} 10762mark.toggleClass('fullscreen'); 10763if(mark.is('.fullscreen')){ 10764$('body').addClass('markitup-fullscreen'); 10765is_full_screen=true; 10766mark.find('.markItUpHeader a').show(); 10767if(!mark.is('.livepreview')){ 10768var original_texte=""; 10769function refresh_preview(){ 10770var texte=textarea.val(); 10771if(original_texte==texte){ 10772return; 10773} 10774renderPreview(preview.addClass('ajaxLoad'),texte,champ,objet); 10775original_texte=texte; 10776} 10777var timerPreview=null; 10778mark.addClass('livepreview').find('.markItUpEditor').on('keyup click change focus refreshpreview',function(e){ 10779if(is_full_screen){ 10780if(timerPreview)clearTimeout(timerPreview); 10781timerPreview=setTimeout(refresh_preview,500); 10782} 10783}); 10784$(window).on('keyup',function(e){ 10785if(is_full_screen){ 10786if(e.type=='keyup'&&e.keyCode==27&&!markitup_prompt){ 10787mark.removeClass('fullscreen'); 10788$('body').removeClass('markitup-fullscreen'); 10789textarea.css('height',textarea.data('height-origin')); 10790is_full_screen=false; 10791} 10792} 10793}); 10794} 10795mark.find('.markItUpEditor').trigger('refreshpreview'); 10796} 10797else{ 10798$('body').removeClass('markitup-fullscreen'); 10799textarea.css('height',textarea.data('height-origin')); 10800if($(this).next().hasClass('on')){ 10801mark.find('.markItUpHeader a').hide(); 10802} 10803is_full_screen=false; 10804} 10805return false; 10806}); 10807tabs.find('.previsuVoir').click(function(){ 10808preview.height( 10809mark.find('.markItUpEditor').height() 10810+mark.find('.markItUpFooter').height() 10811); 10812mark.find('.markItUpHeader a,.markItUpEditor,.markItUpFooter').hide(); 10813$(this).addClass('on').next().removeClass('on'); 10814renderPreview( 10815preview.show().addClass('ajaxLoad'), 10816mark.find('textarea.pp_previsualisation').val(), 10817champ, 10818objet, 10819false 10820); 10821return false; 10822}); 10823tabs.find('.previsuEditer').click(function(){ 10824mark.find('.markItUpPreview').hide(); 10825mark.find('.markItUpHeader a,.markItUpEditor,.markItUpFooter').show(); 10826$(this).addClass('on').prev().removeClass('on'); 10827return false; 10828}); 10829} 10830function renderPreview(node,val,champ,objet,async){ 10831if(options.previewParserPath!==''){ 10832$.ajax({ 10833type:'POST', 10834async:typeof(async)=="undefined"?true:async, 10835url:options.previewParserPath, 10836data:'champ='+champ 10837+'&objet='+objet 10838+'&'+options.previewParserVar+'='+encodeURIComponent(val), 10839success:function(data){ 10840node.html(data).removeClass('ajaxLoad'); 10841$("a",node).attr("target","blank"); 10842$(":input",node).attr("disabled","disabled"); 10843} 10844}); 10845} 10846} 10847init(); 10848}); 10849}; 10850})(jQuery); 10851 10852 10853/* local/cache-js/jsdyn-javascript_porte_plume_start_js-3b04c1e3.js?1790089482 */ 10854 10855barre_outils_edition={ 10856"nameSpace":"edition", 10857"previewAutoRefresh":false, 10858"onEnter":{ 10859"keepDefault":false, 10860"selectionType":"return", 10861"replaceWith":"\n" 10862}, 10863"onShiftEnter":{ 10864"keepDefault":false, 10865"replaceWith":"\n_ " 10866}, 10867"onCtrlEnter":{ 10868"keepDefault":false, 10869"replaceWith":"\n\n" 10870}, 10871"markupSet":[ 10872{ 10873"name":"In {{{Zwischentitel}}} umwandeln", 10874"key":"H", 10875"className":"outil_header1", 10876"openWith":"\n{{{", 10877"closeWith":"}}}\n", 10878"selectionType":"line" 10879}, 10880{ 10881"name":"{{Fett}} setzen", 10882"key":"B", 10883"className":"outil_bold", 10884"replaceWith":function(h){return espace_si_accolade(h,'{{','}}');}, 10885"selectionType":"word" 10886}, 10887{ 10888"name":"In {kursiv} umwandeln", 10889"key":"I", 10890"className":"outil_italic", 10891"replaceWith":function(h){return espace_si_accolade(h,'{','}');}, 10892"selectionType":"word" 10893}, 10894{ 10895"name":"Als Liste formatieren", 10896"className":"outil_liste_ul separateur_avant", 10897"replaceWith":function(h){return outil_liste(h,'*');}, 10898"selectionType":"line", 10899"forceMultiline":true, 10900"dropMenu":[ 10901{ 10902"id":"liste_ol", 10903"name":"Als nummerierte Liste formatieren", 10904"className":"outil_liste_ol", 10905"replaceWith":function(h){return outil_liste(h,'#');}, 10906"display":true, 10907"selectionType":"line", 10908"forceMultiline":true 10909}, 10910{ 10911"id":"desindenter", 10912"name":"Einr\u00fcckungen aus Liste entfernen", 10913"className":"outil_desindenter", 10914"replaceWith":function(h){return outil_desindenter(h);}, 10915"display":true, 10916"selectionType":"line", 10917"forceMultiline":true 10918}, 10919{ 10920"id":"indenter", 10921"name":"Liste mit Einr\u00fcckungen", 10922"className":"outil_indenter", 10923"replaceWith":function(h){return outil_indenter(h);}, 10924"display":true, 10925"selectionType":"line", 10926"forceMultiline":true 10927} 10928] 10929}, 10930{ 10931"name":"In [Hyperlink->http:\/\/...] umwandeln", 10932"key":"L", 10933"className":"outil_link separateur separateur_apres sepLink", 10934"openWith":"[", 10935"closeWith":"->[![Bitte geben sie die Adresse ihrer Website an (Sie k\u00f6nnen eine Webadresse im Format http:\/\/www.meineseite.de, eine Mailadresse oder die Nummer eines Artikels die
10935ser Website angeben.)]!]]" 10936}, 10937{ 10938"name":"In [[Fu", 10939"className":"outil_notes separateur_avant", 10940"openWith":"[[", 10941"closeWith":"]]", 10942"selectionType":"word" 10943}, 10944{ 10945"name":"<quote>Nachricht zitieren<\/quote>", 10946"key":"Q", 10947"className":"outil_quote separateur separateur_apres sepGuillemets", 10948"openWith":"\n<quote>", 10949"closeWith":"<\/quote>\n", 10950"selectionType":"word", 10951"dropMenu":[ 10952{ 10953"id":"barre_poesie", 10954"name":"Als <Poesie>Po\u00e9sie<\/poesie> formatieren", 10955"className":"outil_poesie", 10956"openWith":"\n<poesie>", 10957"closeWith":"<\/poesie>\n", 10958"display":true, 10959"selectionType":"line" 10960} 10961] 10962}, 10963{ 10964"name":"In \u00ab Anf\u00fchrungszeichen \u00bb setzen.", 10965"className":"outil_guillemets", 10966"openWith":"«", 10967"closeWith":"»", 10968"lang":[ 10969"fr", 10970"eo", 10971"cpf", 10972"ar", 10973"es" 10974], 10975"selectionType":"word", 10976"dropMenu":[ 10977{ 10978"id":"guillemets_simples", 10979"name":"in \u201c doppelte Anf\u00fchrungszeichen \u201d", 10980"className":"outil_guillemets_simples", 10981"openWith":"«", 10982"closeWith":"»", 10983"display":true, 10984"lang":[ 10985"fr", 10986"eo", 10987"cpf", 10988"ar", 10989"es" 10990], 10991"selectionType":"word" 10992} 10993] 10994}, 10995{ 10996"name":"In \u00ab Anf\u00fchrungszeichen \u00bb setzen.", 10997"className":"outil_guillemets_de", 10998"openWith":"«", 10999"closeWith":"»", 11000"lang":[ 11001"bg", 11002"de", 11003"pl", 11004"hr", 11005"src" 11006], 11007"selectionType":"word", 11008"dropMenu":[ 11009{ 11010"id":"guillemets_de_simples", 11011"name":"in \u201c doppelte Anf\u00fchrungszeichen \u201d", 11012"className":"outil_guillemets_de_simples", 11013"openWith":"\u2039", 11014"closeWith":"\u203a", 11015"display":true, 11016"lang":[ 11017"bg", 11018"de", 11019"pl", 11020"hr", 11021"src" 11022], 11023"selectionType":"word" 11024} 11025] 11026}, 11027{ 11028"name":"In \u00ab Anf\u00fchrungszeichen \u00bb setzen.", 11029"className":"outil_guillemets_simples separateur_avant", 11030"openWith":"«", 11031"closeWith":"»", 11032"lang_not":[ 11033"fr", 11034"eo", 11035"cpf", 11036"ar", 11037"es", 11038"bg", 11039"de", 11040"pl", 11041"hr", 11042"src" 11043], 11044"selectionType":"word", 11045"dropMenu":[ 11046{ 11047"id":"guillemets_autres_simples", 11048"name":"in \u201c doppelte Anf\u00fchrungszeichen \u201d", 11049"className":"outil_guillemets_uniques", 11050"openWith":"\u2039", 11051"closeWith":"\u203a", 11052"display":true, 11053"lang_not":[ 11054"fr", 11055"eo", 11056"cpf", 11057"ar", 11058"es", 11059"bg", 11060"de", 11061"pl", 11062"hr", 11063"src" 11064], 11065"selectionType":"word" 11066} 11067] 11068}, 11069{ 11070"name":"Sonderzeichen einf\u00fcgen", 11071"className":"outil_caracteres separateur separateur_apres sepCaracteres separateur_avant", 11072"dropMenu":[ 11073{ 11074"id":"A_grave", 11075"name":"A mit accent grave einf\u00fcgen", 11076"className":"outil_a_maj_grave", 11077"replaceWith":"Ã", 11078"display":true, 11079"lang":[ 11080"fr", 11081"eo", 11082"cpf" 11083] 11084}, 11085{ 11086"id":"E_aigu", 11087"name":"E mit accent aigu einf\u00fcgen", 11088"className":"outil_e_maj_aigu", 11089"replaceWith":"Ã", 11090"display":true, 11091"lang":[ 11092"fr", 11093"eo", 11094"cpf" 11095] 11096}, 11097{ 11098"id":"E_grave", 11099"name":"E mit accent grave einf\u00fcgen", 11100"className":"outil_e_maj_grave", 11101"replaceWith":"Ã", 11102"display":true, 11103"lang":[ 11104"fr", 11105"eo", 11106"cpf" 11107] 11108}, 11109{ 11110"id":"aelig", 11111"name":"\u00e6 einf\u00fcgen", 11112"className":"outil_aelig", 11113"replaceWith":"æ", 11114"display":true, 11115"lang":[ 11116"fr", 11117"eo", 11118"cpf" 11119] 11120}, 11121{ 11122"id":"AElig", 11123"name":"\u00c6 einf\u00fcgen", 11124"className":"outil_aelig_maj", 11125"replaceWith":"Ã", 11126"display":true, 11127"lang":[ 11128"fr", 11129"eo", 11130"cpf" 11131] 11132}, 11133{ 11134"id":"oe", 11135"name":"\u0153 einf\u00fcgen", 11136"className":"outil_oe", 11137"replaceWith":"Å", 11138"display":true, 11139"lang":[ 11140"fr" 11141] 11142}, 11143{ 11144"id":"OE", 11145"name":"\u0152 einf\u00fcgen", 11146"className":"outil_oe_maj", 11147"replaceWith":"Å", 11148"display":true, 11149"lang":[ 11150"fr" 11151] 11152}, 11153{ 11154"id":"Ccedil", 11155"name":"C c\u00e9dille einf\u00fcgen", 11156"className":"outil_ccedil_maj", 11157"replaceWith":"Ã", 11158"display":true, 11159"lang":[ 11160"fr", 11161"eo", 11162"cpf" 11163] 11164}, 11165{ 11166"id":"uppercase", 11167"name":"In Majuskel umwandeln", 11168"className":"outil_uppercase", 11169"replaceWith":function(markitup){return markitup.selection.toUpperCase()}, 11170"display":true, 11171"lang":[ 11172"fr", 11173"en" 11174] 11175}, 11176{ 11177"id":"lowercase", 11178"name":"In Gemeine umwandeln", 11179"className":"outil_lowercase", 11180"replaceWith":function(markitup){return markitup.selection.toLowerCase()}, 11181"display":true, 11182"lang":[ 11183"fr", 11184"en" 11185] 11186} 11187] 11188}, 11189{ 11190"name":"Programmcode einf\u00fcgen (`)", 11191"className":"outil_code separateur separateur_apres sepCode", 11192"openWith":"`", 11193"closeWith":"`", 11194"dropMenu":[ 11195{ 11196"id":"cadre", 11197"name":"Vorformatierten Code einf\u00fcgen (```)", 11198"className":"outil_cadre", 11199"openWith":"```\n", 11200"closeWith":"\n```", 11201"display":true 11202} 11203] 11204} 11205] 11206} 11207function outil_liste(h,c){ 11208if((s=h.selection)&&(r=s.match(/^-([*#]+) (.*)$/))){ 11209r[1]=r[1].replace(/[#*]/g,c); 11210s='-'+r[1]+' '+r[2]; 11211}else{ 11212s='-'+c+' '+s; 11213} 11214return s; 11215} 11216function outil_indenter(h){ 11217if(s=h.selection){ 11218if(s.substr(0,2)=='-*'){ 11219s='-**'+s.substr(2); 11220}else if(s.substr(0,2)=='-#'){ 11221s='-##'+s.substr(2); 11222}else{ 11223s='-* '+s; 11224} 11225} 11226return s; 11227} 11228function outil_desindenter(h){ 11229if(s=h.selection){ 11230if(s.substr(0,3)=='-**'){ 11231s='-*'+s.substr(3); 11232}else if(s.substr(0,3)=='-* '){ 11233s=s.substr(3); 11234}else if(s.substr(0,3)=='-##'){ 11235s='-#'+s.substr(3); 11236}else if(s.substr(0,3)=='-# '){ 11237s=s.substr(3); 11238} 11239} 11240return s; 11241} 11242function espace_si_accolade(h,openWith,closeWith){ 11243if(s=h.selection){ 11244if(s.charAt(0)=='{'){ 11245return openWith+' '+s+' '+closeWith; 11246} 11247else if(c=h.textarea.selectionStart){ 11248if(h.textarea.value.charAt(c-1)=='{'){ 11249return' '+openWith+s+closeWith+' '; 11250} 11251} 11252} 11253return openWith+s+closeWith; 11254} 11255barre_outils_forum={ 11256"nameSpace":"forum", 11257"previewAutoRefresh":false, 11258"onEnter":{ 11259"keepDefault":false, 11260"selectionType":"return", 11261"replaceWith":"\n" 11262}, 11263"onShiftEnter":{ 11264"keepDefault":false, 11265"replaceWith":"\n_ " 11266}, 11267"onCtrlEnter":{ 11268"keepDefault":false, 11269"replaceWith":"\n\n" 11270}, 11271"markupSet":[ 11272{ 11273"name":"{{Fett}} setzen", 11274"key":"B", 11275"className":"outil_bold", 11276"replaceWith":function(h){return espace_si_accolade(h,'{{','}}');}, 11277"selectionType":"word" 11278}, 11279{ 11280"name":"In {kursiv} umwandeln", 11281"key":"I", 11282"className":"outil_italic separateur_avant", 11283"replaceWith":function(h){return espace_si_accolade(h,'{','}');}, 11284"selectionType":"word" 11285}, 11286{ 11287"name":"In [Hyperlink->http:\/\/...] umwandeln", 11288"key":"L", 11289"className":"outil_link separateur separateur_apres sepLink separateur_avant", 11290"openWith":"[", 11291"closeWith":"->[![Bitte geben sie die Adresse ihrer Website an (Sie k\u00f6nnen eine Webadresse im Format http:\/\/www.meineseite.de, eine Mailadresse oder die Nummer eines Artikels die
11291ser Website angeben.)]!]]" 11292}, 11293{ 11294"name":"<quote>Nachricht zitieren<\/quote>", 11295"key":"Q", 11296"className":"outil_quote separateur separateur_apres sepGuillemets", 11297"openWith":"\n<quote>", 11298"closeWith":"<\/quote>\n", 11299"selectionType":"word" 11300}, 11301{ 11302"name":"In \u00ab Anf\u00fchrungszeichen \u00bb setzen.", 11303"className":"outil_guillemets", 11304"openWith":"«", 11305"closeWith":"»", 11306"lang":[ 11307"fr", 11308"eo", 11309"cpf", 11310"ar", 11311"es" 11312], 11313"selectionType":"word", 11314"dropMenu":[ 11315{ 11316"id":"guillemets_simples", 11317"name":"in \u201c doppelte Anf\u00fchrungszeichen \u201d", 11318"className":"outil_guillemets_simples", 11319"openWith":"«", 11320"closeWith":"»", 11321"display":true, 11322"lang":[ 11323"fr", 11324"eo", 11325"cpf", 11326"ar", 11327"es" 11328], 11329"selectionType":"word" 11330} 11331] 11332}, 11333{ 11334"name":"In \u00ab Anf\u00fchrungszeichen \u00bb setzen.", 11335"className":"outil_guillemets_de", 11336"openWith":"«", 11337"closeWith":"»", 11338"lang":[ 11339"bg", 11340"de", 11341"pl", 11342"hr", 11343"src" 11344], 11345"selectionType":"word", 11346"dropMenu":[ 11347{ 11348"id":"guillemets_de_simples", 11349"name":"in \u201c doppelte Anf\u00fchrungszeichen \u201d", 11350"className":"outil_guillemets_de_simples", 11351"openWith":"\u2039", 11352"closeWith":"\u203a", 11353"display":true, 11354"lang":[ 11355"bg", 11356"de", 11357"pl", 11358"hr", 11359"src" 11360], 11361"selectionType":"word" 11362} 11363] 11364}, 11365{ 11366"name":"In \u00ab Anf\u00fchrungszeichen \u00bb setzen.", 11367"className":"outil_guillemets_simples separateur_avant", 11368"openWith":"«", 11369"closeWith":"»", 11370"lang_not":[ 11371"fr", 11372"eo", 11373"cpf", 11374"ar", 11375"es", 11376"bg", 11377"de", 11378"pl", 11379"hr", 11380"src" 11381], 11382"selectionType":"word", 11383"dropMenu":[ 11384{ 11385"id":"guillemets_autres_simples", 11386"name":"in \u201c doppelte Anf\u00fchrungszeichen \u201d", 11387"className":"outil_guillemets_uniques", 11388"openWith":"\u2039", 11389"closeWith":"\u203a", 11390"display":true, 11391"lang_not":[ 11392"fr", 11393"eo", 11394"cpf", 11395"ar", 11396"es", 11397"bg", 11398"de", 11399"pl", 11400"hr", 11401"src" 11402], 11403"selectionType":"word" 11404} 11405] 11406} 11407] 11408} 11409function outil_liste(h,c){ 11410if((s=h.selection)&&(r=s.match(/^-([*#]+) (.*)$/))){ 11411r[1]=r[1].replace(/[#*]/g,c); 11412s='-'+r[1]+' '+r[2]; 11413}else{ 11414s='-'+c+' '+s; 11415} 11416return s; 11417} 11418function outil_indenter(h){ 11419if(s=h.selection){ 11420if(s.substr(0,2)=='-*'){ 11421s='-**'+s.substr(2); 11422}else if(s.substr(0,2)=='-#'){ 11423s='-##'+s.substr(2); 11424}else{ 11425s='-* '+s; 11426} 11427} 11428return s; 11429} 11430function outil_desindenter(h){ 11431if(s=h.selection){ 11432if(s.substr(0,3)=='-**'){ 11433s='-*'+s.substr(3); 11434}else if(s.substr(0,3)=='-* '){ 11435s=s.substr(3); 11436}else if(s.substr(0,3)=='-##'){ 11437s='-#'+s.substr(3); 11438}else if(s.substr(0,3)=='-# '){ 11439s=s.substr(3); 11440} 11441} 11442return s; 11443} 11444function espace_si_accolade(h,openWith,closeWith){ 11445if(s=h.selection){ 11446if(s.charAt(0)=='{'){ 11447return openWith+' '+s+' '+closeWith; 11448} 11449else if(c=h.textarea.selectionStart){ 11450if(h.textarea.value.charAt(c-1)=='{'){ 11451return' '+openWith+s+closeWith+' '; 11452} 11453} 11454} 11455return openWith+s+closeWith; 11456} 11457barre_outils_vide={ 11458"nameSpace":"vide", 11459"previewAutoRefresh":false, 11460"markupSet":[] 11461} 11462;(function($){ 11463$.fn.barre_outils=function(nom,settings){ 11464options={ 11465lang:'de' 11466}; 11467$.extend(options,settings); 11468return $(this) 11469.not('.markItUpEditor, .no_barre') 11470.markItUp(eval('barre_outils_'+nom),{lang:options.lang}) 11471.trigger('markItUpEditor.loaded') 11472.parent().find('.markItUpButton a').attr('tabindex',-1) 11473.end(); 11474}; 11475$.fn.barre_previsualisation=function(settings){ 11476options={ 11477previewParserPath:"index.php?action=porte_plume_previsu", 11478textEditer:"Ãndern", 11479textVoir:"Anzeigen" 11480}; 11481$.extend(options,settings); 11482return $(this) 11483.not('.pp_previsualisation, .no_previsualisation') 11484.previsu_spip(options) 11485.trigger('markItUpPreview.loaded') 11486.parent().find('.markItUpTabs a').attr('tabindex',-1) 11487.end(); 11488}; 11489$(window).on('load',function(){ 11490function barrebouilles(){ 11491$('.formulaire_spip textarea.inserer_barre_forum').barre_outils('forum'); 11492$('.formulaire_spip textarea.inserer_barre_edition').barre_outils('edition'); 11493$('.formulaire_spip textarea.inserer_previsualisation').barre_previsualisation(); 11494$('textarea.textarea_forum').barre_outils('forum'); 11495$('.formulaire_spip:not(#formulaire_forum) textarea[name=texte]') 11496.barre_outils('edition').end() 11497.barre_previsualisation(); 11498} 11499barrebouilles(); 11500onAjaxLoad(barrebouilles); 11501}); 11502})(jQuery); 11503 11504 11505/* squelettes/js/jquery-ui.min.js */ 11506 11507(function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)})(function(t){function e(t){for(var e=t.css("visibility");"inherit"===e;)t=t.parent(),e=t.css("visibility");return"hidden"!==e}function i(t){for(var e,i;t.length&&t[0]!==document;){if(e=t.css("position"),("absolute"===e||"relative"===e||"fixed"===e)&&(i=parseInt(t.css("zIndex"),10),!isNaN(i)&&0!==i))return i;t=t.parent()}return 0}function s(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
11507ay","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},t.extend(this._defaults,this.regional[""]),this.regional.en=t.extend(!0,{},this.regional[""]),this.regional["en-US"]=t.extend(!0,{},this.regional.en),this.dpDiv=n(t("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function n(e){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.on("mouseout",i,function(){t(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",i,o)}function o(){t.datepicker._isDisabledDatepicker(m.inline?m.dpDiv.parent()[0]:m.input[0])||(t(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),t(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).addClass("ui-datepicker-next-hover"))}function a(e,i){t.extend(e,i);for(var s in i)null==i[s]&&(e[s]=i[s]);return e}function r(t){return function(){var e=this.element.val();t.apply(this,arguments),this._refresh(),e!==this.element.val()&&this._trigger("change")}}t.ui=t.ui||{},t.ui.version="1.12.0";var h=0,l=Array.prototype.slice;t.cleanData=function(e){return function(i){var s,n,o;for(o=0;null!=(n=i[o]);o++)try{s=t._data(n,"events"),s&&s.remove&&t(n).triggerHandler("remove")}catch(a){}e(i)}}(t.cleanData),t.widget=function(e,i,s){var n,o,a,r={},h=e.split(".")[0];e=e.split(".")[1];var l=h+"-"+e;return s||(s=i,i=t.Widget),t.isArray(s)&&(s=t.extend.apply(null,[{}].concat(s))),t.expr[":"][l.toLowerCase()]=function(e){return!!t.data(e,l)},t[h]=t[h]||{},n=t[h][e],o=t[h][e]=function(t,e){return this._createWidget?(arguments.length&&this._createWidget(t,e),void 0):new o(t,e)},t.extend(o,n,{version:s.version,_proto:t.extend({},s),_childConstructors:[]}),a=new i,a.options=t.widget.extend({},a.options),t.each(s,function(e,s){return t.isFunction(s)?(r[e]=function(){function t(){return i.prototype[e].apply(this,arguments)}function n(t){return i.prototype[e].apply(this,t)}return function(){var e,i=this._super,o=this._superApply;return this._super=t,this._superApply=n,e=s.apply(this,arguments),this._super=i,this._superApply=o,e}}(),void 0):(r[e]=s,void 0)}),o.prototype=t.widget.extend(a,{widgetEventPrefix:n?a.widgetEventPrefix||e:e},r,{constructor:o,namespace:h,widgetName:e,widgetFullName:l}),n?(t.each(n._childConstructors,function(e,i){var s=i.prototype;t.widget(s.namespace+"."+s.widgetName,o,i._proto)}),delete n._childConstructors):i._childConstructors.push(o),t.widget.bridge(e,o),o},t.widget.extend=function(e){for(var i,s,n=l.call(arguments,1),o=0,a=n.length;a>o;o++)for(i in n[o])s=n[o][i],n[o].hasOwnProperty(i)&&void 0!==s&&(e[i]=t.isPlainObject(s)?t.isPlainObject(e[i])?t.widget.extend({},e[i],s):t.widget.extend({},s):s);return e},t.widget.bridge=function(e,i){var s=i.prototype.widgetFullName||e;t.fn[e]=function(n){var o="string"==typeof n,a=l.call(arguments,1),r=this;return o?this.each(function(){var i,o=t.data(this,s);return"instance"===n?(r=o,!1):o?t.isFunction(o[n])&&"_"!==n.charAt(0)?(i=o[n].apply(o,a),i!==o&&void 0!==i?(r=i&&i.jquery?r.pushStack(i.get()):i,!1):void 0):t.error("no such method '"+n+"' for "+e+" widget instance"):t.error("cannot call methods on "+e+" prior to initialization; "+"attempted to call method '"+n+"'")}):(a.length&&(n=t.widget.extend.apply(null,[n].concat(a))),this.each(function(){var e=t.data(this,s);e?(e.option(n||{}),e._init&&e._init()):t.data(this,s,new i(n,this))})),r}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(e,i){i=t(i||this.defaultElement||this)[0],this.element=t(i),this.uuid=h++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t
vendor: 8,717 bytes, line 11507
11507(),this.classesElementLookup={},i!==this&&(t.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===i&&this.destroy()}}),this.document=t(i.style?i.ownerDocument:i.document||i),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this;this._destroy(),t.each(this.classesElementLookup,function(t,i){e._removeClass(i,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,i){var s,n,o,a=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(a={},s=e.split("."),e=s.shift(),s.length){for(n=a[e]=t.widget.extend({},this.options[e]),o=0;s.length-1>o;o++)n[s[o]]=n[s[o]]||{},n=n[s[o]];if(e=s.pop(),1===arguments.length)return void 0===n[e]?null:n[e];n[e]=i}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];a[e]=i}return this._setOptions(a),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(e){var i,s,n;for(i in e)n=this.classesElementLookup[i],e[i]!==this.options.classes[i]&&n&&n.length&&(s=t(n.get()),this._removeClass(n,i),s.addClass(this._classes({element:s,keys:i,classes:e,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(e){function i(i,o){var a,r;for(r=0;i.length>r;r++)a=n.classesElementLookup[i[r]]||t(),a=e.add?t(t.unique(a.get().concat(e.element.get()))):t(a.not(e.element).get()),n.classesElementLookup[i[r]]=a,s.push(i[r]),o&&e.classes[i[r]]&&s.push(e.classes[i[r]])}var s=[],n=this;return e=t.extend({element:this.element,classes:this.options.classes||{}},e),e.keys&&i(e.keys.match(/\S+/g)||[],!0),e.extra&&i(e.extra.match(/\S+/g)||[]),s.join(" ")},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,s){s="boolean"==typeof s?s:i;var n="string"==typeof t||null===t,o={extra:n?e:i,keys:n?t:e,element:n?this.element:t,add:s};return o.element.toggleClass(this._classes(o),s),this},_on:function(e,i,s){var n,o=this;"boolean"!=typeof e&&(s=i,i=e,e=!1),s?(i=n=t(i),this.bindings=this.bindings.add(i)):(s=i,i=this.element,n=this.widget()),t.each(s,function(s,a){function r(){return e||o.options.disabled!==!0&&!t(this).hasClass("ui-state-disabled")?("string"==typeof a?o[a]:a).apply(o,arguments):void 0}"string"!=typeof a&&(r.guid=a.guid=a.guid||r.guid||t.guid++);var h=s.match(/^([\w:-]*)\s*(.*)$/),l=h[1]+o.eventNamespace,c=h[2];c?n.on(l,c,r):i.on(l,r)})},_off:function(e,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(i).off(i),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){function i(){return("string"==typeof t?s[t]:t).apply(s,arguments)}var s=this;return setTimeout(i,e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){this._addClass(t(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){this._addClass(t(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,i,s){var n,o,a=this.options[e];if(s=s||{},i=t.Event(i),i.type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],o=i.originalEvent)for(n in o)n in i||(i[n]=o[n]);return this.element.trigger(i,s),!(t.isFunction(a)&&a.apply(this.element[0],[i].concat(s))===!1||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,i){t.Widget.prototype["_"+e]=function(s,n,o){"string"==typeof n&&(n={effect:n});var a,r=n?n===!0||"number"==typeof n?i:n.effect||i:e;n=n||{},"number"==typeof n&&(n={duration:n}),a=!t.isEmptyObject(n),n.complete=o,n.delay&&s.delay(n.delay),a&&t.effects&&t.effects.effect[r]?s[e](n):r!==e&&s[r]?s[r](n.duration,n.easing,o):s.queue(function(i){t(this)[e](),o&&o.call(s[0]),i()})}}),t.widget,function(){function e(t,e,i){return[parseFloat(t[0])*(p.test(t[0])?e/100:1),parseFloat(t[1])*(p.test(t[1])?i/100:1)]}function i(e,i){return parseInt(t.css(e,i),10)||0}function s(e){var i=e[0];return 9===i.nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:t.isWindow(i)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()}}var n,o,a=Math.max,r=Math.abs,h=Math.round,l=/left|center|right/,c=/top|center|bottom/,u=/[\+\-]\d+(\.[\d]+)?%?/,d=/^\w+/,p=/%$/,f=t.fn.position;o=function(){var e=t("<div>").css("position","absolute").appendTo("body").offset({top:1.5,left:1.5}),i=1.5===e.offset().top;return e.remove(),o=function(){return i},i},t.position={scrollbarWidth:function(){if(void 0!==n)return n;var e,i,s=t("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),o=s.children()[0];return t("body").append(s),e=o.offsetWidth,s.css("overflow","scroll"),i=o.offsetWidth,e===i&&(i=s[0].clientWidth),s.remove(),n=e-i},getScrollInfo:function(e){var i=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),s=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),n="scroll"===i||"auto"===i&&e.width<e.element[0].scrollWidth,o="scroll"===s||"auto"===s&&e.height<e.element[0].scrollHeight;return{width:o?t.position.scrollbarWidth():0,height:n?t.position.scrollbarWidth():0}},getWithinInfo:function(e){var i=t(e||window),s=t.isWindow(i[0]),n=!!i[0]&&9===i[0].nodeType,o=!s&&!n;return{element:i,isWindow:s,isDocument:n,offset:o?t(e).offset():{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:i.outerWidth(),height:i.outerHeight()}}},t.fn.position=function(n){if(!n||!n.of)return f.apply(this,arguments);n=t.extend({},n);var p,g,m,_,v,b,y=t(n.of),w=t.position.getWithinInfo(n.within),k=t.position.getScrollInfo(w),x=(n.collision||"flip").split(" "),C={};return b=s(y),y[0].preventDefault&&(n.at="left top"),g=b.width,m=b.height,_=b.offset,v=t.extend({},_),t.each(["my","at"],function(){var t,e,i=(n[this]||"").split(" ");1===i.length&&(i=l.test(i[0])?i.concat(["center"]):c.test(i[0])?["center"].concat(i):["center","center"]),i[0]=l.test(i[0])?i[0]:"center",i[1]=c.test(i[1])?i[1]:"center",t=u.exec(i[0]),e=u.exec(i[1]),C[this]=[t?t[0]:0,e?e[0]:0],n[this]=[d.exec(i[0])[0],d.exec(i[1])[0]]}),1===x.length&&(x[1]=x[0]),"right"===n.at[0]?v.left+=g:"center"===n.at[0]&&(v.left+=g/2),"bottom"===n.at[1]?v.top+=m:"center"===n.at[1]&&(v.top+=m/2),p=e(C.at,g,m),v.left+=p[0],v.top+=p[1],this.each(function(){var s,l,c=t(this),u=c.outerWidth(),d=c.outerHeight(),f=i(this,"marginLeft"),b=i(this,"marginTop"),D=u+f+i(this,"marginRight")+k.width,I=d+b+i(this,"marginBottom")+k.height,T=t.extend({},v),P=e(C.my,c.outerWidth(),c.outerHeight());"right"===n.my[0]?T.left-=u:"center"===n.my[0]&&(T.left-=u/2),"bottom"===n.my[1]?T.top-=d:"center"===n.my[1]&&(T.top-=d/2),T.left+=P[0],T.top+=P[1],o()||(T.left=h(T.left),T.top=h(T.top)),s={marginLeft:f,marginTop:b},t.each(["left","top"],function(e,i){t.ui.position[x[e]]&&t.ui.position[x[e]][i](T,{targetWidth:g,targetHeight:m,elemWidth:u,elemHeight:d,collisionPosition:s,collisionWidth:D,collisionHeight:I,offset:[p[0]+P[0],p[1]+P[1]],my:n.my,at:n.at,within:w,elem:c})}),n.using&&(l=function(t){var e=_.left-T.left,i=e+g-u,s=_.top-T.top,o=s+m-d,h={target:{element:y,left:_.left,top:_.top,width:g,height:m},element:{element:c,left:T.left,top:T.top,width:u,height:d},horizontal:0>i?"left":e>0?"right":"center",vertical:0>
vendor: 2,671 bytes, line 11507
11507o?"top":s>0?"bottom":"middle"};u>g&&g>r(e+i)&&(h.horizontal="center"),d>m&&m>r(s+o)&&(h.vertical="middle"),h.important=a(r(e),r(i))>a(r(s),r(o))?"horizontal":"vertical",n.using.call(this,t,h)}),c.offset(t.extend(T,{using:l}))})},t.ui.position={fit:{left:function(t,e){var i,s=e.within,n=s.isWindow?s.scrollLeft:s.offset.left,o=s.width,r=t.left-e.collisionPosition.marginLeft,h=n-r,l=r+e.collisionWidth-o-n;e.collisionWidth>o?h>0&&0>=l?(i=t.left+h+e.collisionWidth-o-n,t.left+=h-i):t.left=l>0&&0>=h?n:h>l?n+o-e.collisionWidth:n:h>0?t.left+=h:l>0?t.left-=l:t.left=a(t.left-r,t.left)},top:function(t,e){var i,s=e.within,n=s.isWindow?s.scrollTop:s.offset.top,o=e.within.height,r=t.top-e.collisionPosition.marginTop,h=n-r,l=r+e.collisionHeight-o-n;e.collisionHeight>o?h>0&&0>=l?(i=t.top+h+e.collisionHeight-o-n,t.top+=h-i):t.top=l>0&&0>=h?n:h>l?n+o-e.collisionHeight:n:h>0?t.top+=h:l>0?t.top-=l:t.top=a(t.top-r,t.top)}},flip:{left:function(t,e){var i,s,n=e.within,o=n.offset.left+n.scrollLeft,a=n.width,h=n.isWindow?n.scrollLeft:n.offset.left,l=t.left-e.collisionPosition.marginLeft,c=l-h,u=l+e.collisionWidth-a-h,d="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,p="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,f=-2*e.offset[0];0>c?(i=t.left+d+p+f+e.collisionWidth-a-o,(0>i||r(c)>i)&&(t.left+=d+p+f)):u>0&&(s=t.left-e.collisionPosition.marginLeft+d+p+f-h,(s>0||u>r(s))&&(t.left+=d+p+f))},top:function(t,e){var i,s,n=e.within,o=n.offset.top+n.scrollTop,a=n.height,h=n.isWindow?n.scrollTop:n.offset.top,l=t.top-e.collisionPosition.marginTop,c=l-h,u=l+e.collisionHeight-a-h,d="top"===e.my[1],p=d?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,f="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,g=-2*e.offset[1];0>c?(s=t.top+p+f+g+e.collisionHeight-a-o,(0>s||r(c)>s)&&(t.top+=p+f+g)):u>0&&(i=t.top-e.collisionPosition.marginTop+p+f+g-h,(i>0||u>r(i))&&(t.top+=p+f+g))}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}}}(),t.ui.position,t.extend(t.expr[":"],{data:t.expr.createPseudo?t.expr.createPseudo(function(e){return function(i){return!!t.data(i,e)}}):function(e,i,s){return!!t.data(e,s[3])}}),t.fn.extend({disableSelection:function(){var t="onselectstart"in document.createElement("div")?"selectstart":"mousedown";return function(){return this.on(t+".ui-disableSelection",function(t){t.preventDefault()})}}(),enableSelection:function(){return this.off(".ui-disableSelection")}});var c="ui-effects-",u="ui-effects-style",d="ui-effects-animated",p
vendor: 6,489 bytes, line 11507
11507=t;t.effects={effect:{}},function(t,e){function i(t,e,i){var s=u[e.type]||{};return null==t?i||!e.def?null:e.def:(t=s.floor?~~t:parseFloat(t),isNaN(t)?e.def:s.mod?(t+s.mod)%s.mod:0>t?0:t>s.max?s.max:t)}function s(i){var s=l(),n=s._rgba=[];return i=i.toLowerCase(),f(h,function(t,o){var a,r=o.re.exec(i),h=r&&o.parse(r),l=o.space||"rgba";return h?(a=s[l](h),s[c[l].cache]=a[c[l].cache],n=s._rgba=a._rgba,!1):e}),n.length?("0,0,0,0"===n.join()&&t.extend(n,o.transparent),s):o[i]}function n(t,e,i){return i=(i+1)%1,1>6*i?t+6*(e-t)*i:1>2*i?e:2>3*i?t+6*(e-t)*(2/3-i):t}var o,a="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",r=/^([\-+])=\s*(\d+\.?\d*)/,h=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[t[1],t[2],t[3],t[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],t[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(t){return[t[1],t[2]/100,t[3]/100,t[4]]}}],l=t.Color=function(e,i,s,n){return new t.Color.fn.parse(e,i,s,n)},c={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},u={"byte":{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},d=l.support={},p=t("<p>")[0],f=t.each;p.style.cssText="background-color:rgba(1,1,1,.5)",d.rgba=p.style.backgroundColor.indexOf("rgba")>-1,f(c,function(t,e){e.cache="_"+t,e.props.alpha={idx:3,type:"percent",def:1}}),l.fn=t.extend(l.prototype,{parse:function(n,a,r,h){if(n===e)return this._rgba=[null,null,null,null],this;(n.jquery||n.nodeType)&&(n=t(n).css(a),a=e);var u=this,d=t.type(n),p=this._rgba=[];return a!==e&&(n=[n,a,r,h],d="array"),"string"===d?this.parse(s(n)||o._default):"array"===d?(f(c.rgba.props,function(t,e){p[e.idx]=i(n[e.idx],e)}),this):"object"===d?(n instanceof l?f(c,function(t,e){n[e.cache]&&(u[e.cache]=n[e.cache].slice())}):f(c,function(e,s){var o=s.cache;f(s.props,function(t,e){if(!u[o]&&s.to){if("alpha"===t||null==n[t])return;u[o]=s.to(u._rgba)}u[o][e.idx]=i(n[t],e,!0)}),u[o]&&0>t.inArray(null,u[o].slice(0,3))&&(u[o][3]=1,s.from&&(u._rgba=s.from(u[o])))}),this):e},is:function(t){var i=l(t),s=!0,n=this;return f(c,function(t,o){var a,r=i[o.cache];return r&&(a=n[o.cache]||o.to&&o.to(n._rgba)||[],f(o.props,function(t,i){return null!=r[i.idx]?s=r[i.idx]===a[i.idx]:e})),s}),s},_space:function(){var t=[],e=this;return f(c,function(i,s){e[s.cache]&&t.push(i)}),t.pop()},transition:function(t,e){var s=l(t),n=s._space(),o=c[n],a=0===this.alpha()?l("transparent"):this,r=a[o.cache]||o.to(a._rgba),h=r.slice();return s=s[o.cache],f(o.props,function(t,n){var o=n.idx,a=r[o],l=s[o],c=u[n.type]||{};null!==l&&(null===a?h[o]=l:(c.mod&&(l-a>c.mod/2?a+=c.mod:a-l>c.mod/2&&(a-=c.mod)),h[o]=i((l-a)*e+a,n)))}),this[n](h)},blend:function(e){if(1===this._rgba[3])return this;var i=this._rgba.slice(),s=i.pop(),n=l(e)._rgba;return l(t.map(i,function(t,e){return(1-s)*n[e]+s*t}))},toRgbaString:function(){var e="rgba(",i=t.map(this._rgba,function(t,e){return null==t?e>2?1:0:t});return 1===i[3]&&(i.pop(),e="rgb("),e+i.join()+")"},toHslaString:function(){var e="hsla(",i=t.map(this.hsla(),function(t,e){return null==t&&(t=e>2?1:0),e&&3>e&&(t=Math.round(100*t)+"%"),t});return 1===i[3]&&(i.pop(),e="hsl("),e+i.join()+")"},toHexString:function(e){var i=this._rgba.slice(),s=i.pop();return e&&i.push(~~(255*s)),"#"+t.map(i,function(t){return t=(t||0).toString(16),1===t.length?"0"+t:t}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),l.fn.parse.prototype=l.fn,c.hsla.to=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e,i,s=t[0]/255,n=t[1]/255,o=t[2]/255,a=t[3],r=Math.max(s,n,o),h=Math.min(s,n,o),l=r-h,c=r+h,u=.5*c;return e=h===r?0:s===r?60*(n-o)/l+360:n===r?60*(o-s)/l+120:60*(s-n)/l+240,i=0===l?0:.5>=u?l/c:l/(2-c),[Math.round(e)%360,i,u,null==a?1:a]},c.hsla.from=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e=t[0]/360,i=t[1],s=t[2],o=t[3],a=.5>=s?s*(1+i):s+i-s*i,r=2*s-a;return[Math.round(255*n(r,a,e+1/3)),Math.round(255*n(r,a,e)),Math.round(255*n(r,a,e-1/3)),o]},f(c,function(s,n){var o=n.props,a=n.cache,h=n.to,c=n.from;l.fn[s]=function(s){if(h&&!this[a]&&(this[a]=h(this._rgba)),s===e)return this[a].slice();var n,r=t.type(s),u="array"===r||"object"===r?s:arguments,d=this[a].slice();return f(o,function(t,e){var s=u["object"===r?t:e.idx];null==s&&(s=d[e.idx]),d[e.idx]=i(s,e)}),c?(n=l(c(d)),n[a]=d,n):l(d)},f(o,function(e,i){l.fn[e]||(l.fn[e]=function(n){var o,a=t.type(n),h="alpha"===e?this._hsla?"hsla":"rgba":s,l=this[h](),c=l[i.idx];return"undefined"===a?c:("function"===a&&(n=n.call(this,c),a=t.type(n)),null==n&&i.empty?this:("string"===a&&(o=r.exec(n),o&&(n=c+parseFloat(o[2])*("+"===o[1]?1:-1))),l[i.idx]=n,this[h](l)))})})}),l.hook=function(e){var i=e.split(" ");f(i,function(e,i){t.cssHooks[i]={set:function(e,n){var o,a,r="";if("transparent"!==n&&("string"!==t.type(n)||(o=s(n)))){if(n=l(o||n),!d.rgba&&1!==n._rgba[3]){for(a="backgroundColor"===i?e.parentNode:e;(""===r||"transparent"===r)&&a&&a.style;)try{r=t.css(a,"backgroundColor"),a=a.parentNode}catch(h){}n=n.blend(r&&"transparent"!==r?r:"_default")}n=n.toRgbaString()}try{e.style[i]=n}catch(h){}}},t.fx.step[i]=function(e){e.colorInit||(e.start=l(e.elem,i),e.end=l(e.end),e.colorInit=!0),t.cssHooks[i].set(e.elem,e.start.transition(e.end,e.pos))}})},l.hook(a),t.cssHooks.borderColor={expand:function(t){var e={};return f(["Top","Right","Bottom","Left"],function(i,s){e["border"+s+"Color"]=t}),e}},o=t.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(
vendor: 10,012 bytes, lines 11507-11508
11507p),function(){function e(e){var i,s,n=e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,null):e.currentStyle,o={};if(n&&n.length&&n[0]&&n[n[0]])for(s=n.length;s--;)i=n[s],"string"==typeof n[i]&&(o[t.camelCase(i)]=n[i]);else for(i in n)"string"==typeof n[i]&&(o[i]=n[i]);return o}function i(e,i){var s,o,a={};for(s in i)o=i[s],e[s]!==o&&(n[s]||(t.fx.step[s]||!isNaN(parseFloat(o)))&&(a[s]=o));return a}var s=["add","remove","toggle"],n={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};t.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(e,i){t.fx.step[i]=function(t){("none"!==t.end&&!t.setAttr||1===t.pos&&!t.setAttr)&&(p.style(t.elem,i,t.end),t.setAttr=!0)}}),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t.effects.animateClass=function(n,o,a,r){var h=t.speed(o,a,r);return this.queue(function(){var o,a=t(this),r=a.attr("class")||"",l=h.children?a.find("*").addBack():a;l=l.map(function(){var i=t(this);return{el:i,start:e(this)}}),o=function(){t.each(s,function(t,e){n[e]&&a[e+"Class"](n[e])})},o(),l=l.map(function(){return this.end=e(this.el[0]),this.diff=i(this.start,this.end),this}),a.attr("class",r),l=l.map(function(){var e=this,i=t.Deferred(),s=t.extend({},h,{queue:!1,complete:function(){i.resolve(e)}});return this.el.animate(this.diff,s),i.promise()}),t.when.apply(t,l.get()).done(function(){o(),t.each(arguments,function(){var e=this.el;t.each(this.diff,function(t){e.css(t,"")})}),h.complete.call(a[0])})})},t.fn.extend({addClass:function(e){return function(i,s,n,o){return s?t.effects.animateClass.call(this,{add:i},s,n,o):e.apply(this,arguments)}}(t.fn.addClass),removeClass:function(e){return function(i,s,n,o){return arguments.length>1?t.effects.animateClass.call(this,{remove:i},s,n,o):e.apply(this,arguments)}}(t.fn.removeClass),toggleClass:function(e){return function(i,s,n,o,a){return"boolean"==typeof s||void 0===s?n?t.effects.animateClass.call(this,s?{add:i}:{remove:i},n,o,a):e.apply(this,arguments):t.effects.animateClass.call(this,{toggle:i},s,n,o)}}(t.fn.toggleClass),switchClass:function(e,i,s,n,o){return t.effects.animateClass.call(this,{add:i,remove:e},s,n,o)}})}(),function(){function e(e,i,s,n){return t.isPlainObject(e)&&(i=e,e=e.effect),e={effect:e},null==i&&(i={}),t.isFunction(i)&&(n=i,s=null,i={}),("number"==typeof i||t.fx.speeds[i])&&(n=s,s=i,i={}),t.isFunction(s)&&(n=s,s=null),i&&t.extend(e,i),s=s||i.duration,e.duration=t.fx.off?0:"number"==typeof s?s:s in t.fx.speeds?t.fx.speeds[s]:t.fx.speeds._default,e.complete=n||i.complete,e}function i(e){return!e||"number"==typeof e||t.fx.speeds[e]?!0:"string"!=typeof e||t.effects.effect[e]?t.isFunction(e)?!0:"object"!=typeof e||e.effect?!1:!0:!0}function s(t,e){var i=e.outerWidth(),s=e.outerHeight(),n=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/,o=n.exec(t)||["",0,i,s,0];return{top:parseFloat(o[1])||0,right:"auto"===o[2]?i:parseFloat(o[2]),bottom:"auto"===o[3]?s:parseFloat(o[3]),left:parseFloat(o[4])||0}}t.expr&&t.expr.filters&&t.expr.filters.animated&&(t.expr.filters.animated=function(e){return function(i){return!!t(i).data(d)||e(i)}}(t.expr.filters.animated)),t.uiBackCompat!==!1&&t.extend(t.effects,{save:function(t,e){for(var i=0,s=e.length;s>i;i++)null!==e[i]&&t.data(c+e[i],t[0].style[e[i]])},restore:function(t,e){for(var i,s=0,n=e.length;n>s;s++)null!==e[s]&&(i=t.data(c+e[s]),t.css(e[s],i))},setMode:function(t,e){return"toggle"===e&&(e=t.is(":hidden")?"show":"hide"),e},createWrapper:function(e){if(e.parent().is(".ui-effects-wrapper"))return e.parent();var i={width:e.outerWidth(!0),height:e.outerHeight(!0),"float":e.css("float")},s=t("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),n={width:e.width(),height:e.height()},o=document.activeElement;try{o.id}catch(a){o=document.body}return e.wrap(s),(e[0]===o||t.contains(e[0],o))&&t(o).trigger("focus"),s=e.parent(),"static"===e.css("position")?(s.css({position:"relative"}),e.css({position:"relative"})):(t.extend(i,{position:e.css("position"),zIndex:e.css("z-index")}),t.each(["top","left","bottom","right"],function(t,s){i[s]=e.css(s),isNaN(parseInt(i[s],10))&&(i[s]="auto")}),e.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),e.css(n),s.css(i).show()},removeWrapper:function(e){var i=document.activeElement;return e.parent().is(".ui-effects-wrapper")&&(e.parent().replaceWith(e),(e[0]===i||t.contains(e[0],i))&&t(i).trigger("focus")),e}}),t.extend(t.effects,{version:"1.12.0",define:function(e,i,s){return s||(s=i,i="effect"),t.effects.effect[e]=s,t.effects.effect[e].mode=i,s},scaledDimensions:function(t,e,i){if(0===e)return{height:0,width:0,outerHeight:0,outerWidth:0};var s="horizontal"!==i?(e||100)/100:1,n="vertical"!==i?(e||100)/100:1;return{height:t.height()*n,width:t.width()*s,outerHeight:t.outerHeight()*n,outerWidth:t.outerWidth()*s}},clipToBox:function(t){return{width:t.clip.right-t.clip.left,height:t.clip.bottom-t.clip.top,left:t.clip.left,top:t.clip.top}},unshift:function(t,e,i){var s=t.queue();e>1&&s.splice.apply(s,[1,0].concat(s.splice(e,i))),t.dequeue()},saveStyle:function(t){t.data(u,t[0].style.cssText)},restoreStyle:function(t){t[0].style.cssText=t.data(u)||"",t.removeData(u)},mode:function(t,e){var i=t.is(":hidden");return"toggle"===e&&(e=i?"show":"hide"),(i?"hide"===e:"show"===e)&&(e="none"),e},getBaseline:function(t,e){var i,s;switch(t[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=t[0]/e.height}switch(t[1]){case"left":s=0;break;case"center":s=.5;break;case"right":s=1;break;default:s=t[1]/e.width}return{x:s,y:i}},createPlaceholder:function(e){var i,s=e.css("position"),n=e.position();return e.css({marginTop:e.css("marginTop"),marginBottom:e.css("marginBottom"),marginLeft:e.css("marginLeft"),marginRight:e.css("marginRight")}).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()),/^(static|relative)/.test(s)&&(s="absolute",i=t("<"+e[0].nodeName+">").insertAfter(e).css({display:/^(inline|ruby)/.test(e.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:e.css("marginTop"),marginBottom:e.css("marginBottom"),marginLeft:e.css("marginLeft"),marginRight:e.css("marginRight"),"float":e.css("float")}).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).addClass("ui-effects-placeholder"),e.data(c+"placeholder",i)),e.css({position:s,left:n.left,top:n.top}),i},removePlaceholder:function(t){var e=c+"placeholder",i=t.data(e);i&&(i.remove(),t.removeData(e))},cleanUp:function(e){t.effects.restoreStyle(e),t.effects.removePlaceholder(e)},setTransition:function(e,i,s,n){return n=n||{},t.each(i,function(t,i){var o=e.cssUnit(i);o[0]>0&&(n[i]=o[0]*s+o[1])}),n}}),t.fn.extend({effect:function(){function i(e){function i(){r.removeData(d),t.effects.cleanUp(r),"hide"===s.mode&&r.hide(),a()}function a(){t.isFunction(h)&&h.call(r[0]),t.isFunction(e)&&e()}var r=t(this);s.mode=c.shift(),t.uiBackCompat===!1||o?"none"===s.mode?(r[l](),a()):n.call(r[0],s,i):(r.is(":hidden")?"hide"===l:"show"===l)?(r[l](),a()):n.call(r[0],s,a)}var s=e.apply(this,arguments),n=t.effects.effect[s.effect],o=n.mode,a=s.queue,r=a||"fx",h=s.complete,l=s.mode,c=[],u=function(e){var i=t(this),s=t.effects.mode(i,l)||o;i.data(d,!0),c.push(s),o&&("show"===s||s===o&&"hide"===s)&&i.show(),o&&"none"===s||t.effects.saveStyle(i),t.isFunction(e)&&e()};return t.fx.off||!n?l?this[l](s.duration,h):this.each(function(){h&&h.call(this)}):a===!1?this.each(u).each(i):this.queue(r,u).queue(r,i)},show:function(t){return function(s){if(i(s))return t.apply(this,arguments);var n=e.apply(this,arguments);return n.mode="show",this.effect.call(this,n)}}(t.fn.show),hide:function(t){return function(s){if(i(s))return t.apply(this,arguments); 11508var n=e.apply(this,arguments);return n.mode="hide",this.effect.call(this,n)}}(t.fn.hide),toggle:function(t){return function(s){if(i(s)||"boolean"==typeof s)return t.apply(this,arguments);var n=e.apply(this,arguments);return n.mode="toggle",this.effect.call(this,n)}}(t.fn.toggle),cssUnit:function(e){var i=this.css(e),s=[];return t.each(["em","px","%","pt"],function(t,e){i.indexOf(e)>0&&(s=[parseFloat(i),e])}),s},cssClip:function(t){return t?this.css("clip","rect("+t.top+"px "+t.right+"px "+t.bottom+"px "+t.left+"px)"):s(this.css("clip"),this)},transfer:function(e,i){var s=t(this),n=t(e.to),o="fixed"===n.css("position"),a=t("body"),r=o?a.scrollTop():0,h=o?a.scrollLeft():0,l=n.offset(),c={top:l.top-r,left:l.left-h,height:n.innerHeight(),width:n.innerWidth()},u=s.offset(),d=t("<div class='ui-effects-transfer'></div>").appendTo("body").addClass(e.className).css({top:u.top-r,left:u.left-h,height:s.innerHeight(),width:s.innerWidth(),position:o?"fixed":"absolute"}).animate(c,e.duration,e.easing,function(){d.remove(),t.isFunction(i)&&i()})}}),t.fx.step.clip=function(e){e.clipInit||(e.start=t(e.elem).cssClip(),"string"==typeof e.end&&(e.end=s(e.end,e.elem)),e.clipInit=!0),t(e.elem).cssClip({top:e.pos*(e.end.top-e.start.top)+e.start.top,right:e.pos*(e.end.right-e.start.right)+e.start.right,bottom:e.pos*(e.end.bottom-e.start.bottom)+e.start.bottom,left:e.pos*(e.end.left-e.start.left)+e.start.left})}}(),function(){var e={};t.each(["Quad","Cubic","Quart","Quint","Expo"],function(t,i){e[i]=function(e){return Math.pow(e,t+2)}}),t.extend(e,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,i=4;((e=Math.pow(2,--i))-1)/11>t;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*e-2)/22-t,2)}}),t.each(e,function(e,i){t.easing["easeIn"+e]=i,t.easing["easeOut"+e]=function(t){return 1-i(1-t)},t.easing["easeInOut"+e]=function(t){return.5>t?i(2*t)/2:1-i(-2*t+2)/2}})}();var f
vendor: 8,108 bytes, line 11508
11508=t.effects;t.effects.define("blind","hide",function(e,i){var s={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},n=t(this),o=e.direction||"up",a=n.cssClip(),r={clip:t.extend({},a)},h=t.effects.createPlaceholder(n);r.clip[s[o][0]]=r.clip[s[o][1]],"show"===e.mode&&(n.cssClip(r.clip),h&&h.css(t.effects.clipToBox(r)),r.clip=a),h&&h.animate(t.effects.clipToBox(r),e.duration,e.easing),n.animate(r,{queue:!1,duration:e.duration,easing:e.easing,complete:i})}),t.effects.define("bounce",function(e,i){var s,n,o,a=t(this),r=e.mode,h="hide"===r,l="show"===r,c=e.direction||"up",u=e.distance,d=e.times||5,p=2*d+(l||h?1:0),f=e.duration/p,g=e.easing,m="up"===c||"down"===c?"top":"left",_="up"===c||"left"===c,v=0,b=a.queue().length;for(t.effects.createPlaceholder(a),o=a.css(m),u||(u=a["top"===m?"outerHeight":"outerWidth"]()/3),l&&(n={opacity:1},n[m]=o,a.css("opacity",0).css(m,_?2*-u:2*u).animate(n,f,g)),h&&(u/=Math.pow(2,d-1)),n={},n[m]=o;d>v;v++)s={},s[m]=(_?"-=":"+=")+u,a.animate(s,f,g).animate(n,f,g),u=h?2*u:u/2;h&&(s={opacity:0},s[m]=(_?"-=":"+=")+u,a.animate(s,f,g)),a.queue(i),t.effects.unshift(a,b,p+1)}),t.effects.define("clip","hide",function(e,i){var s,n={},o=t(this),a=e.direction||"vertical",r="both"===a,h=r||"horizontal"===a,l=r||"vertical"===a;s=o.cssClip(),n.clip={top:l?(s.bottom-s.top)/2:s.top,right:h?(s.right-s.left)/2:s.right,bottom:l?(s.bottom-s.top)/2:s.bottom,left:h?(s.right-s.left)/2:s.left},t.effects.createPlaceholder(o),"show"===e.mode&&(o.cssClip(n.clip),n.clip=s),o.animate(n,{queue:!1,duration:e.duration,easing:e.easing,complete:i})}),t.effects.define("drop","hide",function(e,i){var s,n=t(this),o=e.mode,a="show"===o,r=e.direction||"left",h="up"===r||"down"===r?"top":"left",l="up"===r||"left"===r?"-=":"+=",c="+="===l?"-=":"+=",u={opacity:0};t.effects.createPlaceholder(n),s=e.distance||n["top"===h?"outerHeight":"outerWidth"](!0)/2,u[h]=l+s,a&&(n.css(u),u[h]=c+s,u.opacity=1),n.animate(u,{queue:!1,duration:e.duration,easing:e.easing,complete:i})}),t.effects.define("explode","hide",function(e,i){function s(){b.push(this),b.length===u*d&&n()}function n(){p.css({visibility:"visible"}),t(b).remove(),i()}var o,a,r,h,l,c,u=e.pieces?Math.round(Math.sqrt(e.pieces)):3,d=u,p=t(this),f=e.mode,g="show"===f,m=p.show().css("visibility","hidden").offset(),_=Math.ceil(p.outerWidth()/d),v=Math.ceil(p.outerHeight()/u),b=[];for(o=0;u>o;o++)for(h=m.top+o*v,c=o-(u-1)/2,a=0;d>a;a++)r=m.left+a*_,l=a-(d-1)/2,p.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-a*_,top:-o*v}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:_,height:v,left:r+(g?l*_:0),top:h+(g?c*v:0),opacity:g?0:1}).animate({left:r+(g?0:l*_),top:h+(g?0:c*v),opacity:g?1:0},e.duration||500,e.easing,s)}),t.effects.define("fade","toggle",function(e,i){var s="show"===e.mode;t(this).css("opacity",s?0:1).animate({opacity:s?1:0},{queue:!1,duration:e.duration,easing:e.easing,complete:i})}),t.effects.define("fold","hide",function(e,i){var s=t(this),n=e.mode,o="show"===n,a="hide"===n,r=e.size||15,h=/([0-9]+)%/.exec(r),l=!!e.horizFirst,c=l?["right","bottom"]:["bottom","right"],u=e.duration/2,d=t.effects.createPlaceholder(s),p=s.cssClip(),f={clip:t.extend({},p)},g={clip:t.extend({},p)},m=[p[c[0]],p[c[1]]],_=s.queue().length;h&&(r=parseInt(h[1],10)/100*m[a?0:1]),f.clip[c[0]]=r,g.clip[c[0]]=r,g.clip[c[1]]=0,o&&(s.cssClip(g.clip),d&&d.css(t.effects.clipToBox(g)),g.clip=p),s.queue(function(i){d&&d.animate(t.effects.clipToBox(f),u,e.easing).animate(t.effects.clipToBox(g),u,e.easing),i()}).animate(f,u,e.easing).animate(g,u,e.easing).queue(i),t.effects.unshift(s,_,4)}),t.effects.define("highlight","show",function(e,i){var s=t(this),n={backgroundColor:s.css("backgroundColor")};"hide"===e.mode&&(n.opacity=0),t.effects.saveStyle(s),s.css({backgroundImage:"none",backgroundColor:e.color||"#ffff99"}).animate(n,{queue:!1,duration:e.duration,easing:e.easing,complete:i})}),t.effects.define("size",function(e,i){var s,n,o,a=t(this),r=["fontSize"],h=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],l=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],c=e.mode,u="effect"!==c,d=e.scale||"both",p=e.origin||["middle","center"],f=a.css("position"),g=a.position(),m=t.effects.scaledDimensions(a),_=e.from||m,v=e.to||t.effects.scaledDimensions(a,0);t.effects.createPlaceholder(a),"show"===c&&(o=_,_=v,v=o),n={from:{y:_.height/m.height,x:_.width/m.width},to:{y:v.height/m.height,x:v.width/m.width}},("box"===d||"both"===d)&&(n.from.y!==n.to.y&&(_=t.effects.setTransition(a,h,n.from.y,_),v=t.effects.setTransition(a,h,n.to.y,v)),n.from.x!==n.to.x&&(_=t.effects.setTransition(a,l,n.from.x,_),v=t.effects.setTransition(a,l,n.to.x,v))),("content"===d||"both"===d)&&n.from.y!==n.to.y&&(_=t.effects.setTransition(a,r,n.from.y,_),v=t.effects.setTransition(a,r,n.to.y,v)),p&&(s=t.effects.getBaseline(p,m),_.top=(m.outerHeight-_.outerHeight)*s.y+g.top,_.left=(m.outerWidth-_.outerWidth)*s.x+g.left,v.top=(m.outerHeight-v.outerHeight)*s.y+g.top,v.left=(m.outerWidth-v.outerWidth)*s.x+g.left),a.css(_),("content"===d||"both"===d)&&(h=h.concat(["marginTop","marginBottom"]).concat(r),l=l.concat(["marginLeft","marginRight"]),a.find("*[width]").each(function(){var i=t(this),s=t.effects.scaledDimensions(i),o={height:s.height*n.from.y,width:s.width*n.from.x,outerHeight:s.outerHeight*n.from.y,outerWidth:s.outerWidth*n.from.x},a={height:s.height*n.to.y,width:s.width*n.to.x,outerHeight:s.height*n.to.y,outerWidth:s.width*n.to.x};n.from.y!==n.to.y&&(o=t.effects.setTransition(i,h,n.from.y,o),a=t.effects.setTransition(i,h,n.to.y,a)),n.from.x!==n.to.x&&(o=t.effects.setTransition(i,l,n.from.x,o),a=t.effects.setTransition(i,l,n.to.x,a)),u&&t.effects.saveStyle(i),i.css(o),i.animate(a,e.duration,e.easing,function(){u&&t.effects.restoreStyle(i)})})),a.animate(v,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){var e=a.offset();0===v.opacity&&a.css("opacity",_.opacity),u||(a.css("position","static"===f?"relative":f).offset(e),t.effects.saveStyle(a)),i()}})}),t.effects.define("scale",function(e,i){var s=t(this),n=e.mode,o=parseInt(e.percent,10)||(0===parseInt(e.percent,10)?0:"effect"!==n?0:100),a=t.extend(!0,{from:t.effects.scaledDimensions(s),to:t.effects.scaledDimensions(s,o,e.direction||"both"),origin:e.origin||["middle","center"]},e);e.fade&&(a.from.opacity=1,a.to.opacity=0),t.effects.effect.size.call(this,a,i)}),t.effects.define("puff","hide",function(e,i){var s=t.extend(!0,{},e,{fade:!0,percent:parseInt(e.percent,10)||150});t.effects.effect.scale.call(this,s,i)}),t.effects.define("pulsate","show",function(e,i){var s=t(this),n=e.mode,o="show"===n,a="hide"===n,r=o||a,h=2*(e.times||5)+(r?1:0),l=e.duration/h,c=0,u=1,d=s.queue().length;for((o||!s.is(":visible"))&&(s.css("opacity",0).show(),c=1);h>u;u++)s.animate({opacity:c},l,e.easing),c=1-c;s.animate({opacity:c},l,e.easing),s.queue(i),t.effects.unshift(s,d,h+1)}),t.effects.define("shake",function(e,i){var s=1,n=t(this),o=e.direction||"left",a=e.distance||20,r=e.times||3,h=2*r+1,l=Math.round(e.duration/h),c="up"===o||"down"===o?"top":"left",u="up"===o||"left"===o,d={},p={},f={},g=n.queue().length;for(t.effects.createPlaceholder(n),d[c]=(u?"-=":"+=")+a,p[c]=(u?"+=":"-=")+2*a,f[c]=(u?"-=":"+=")+2*a,n.animate(d,l,e.easing);r>s;s++)n.animate(p,l,e.easing).animate(f,l,e.easing);n.animate(p,l,e.easing).animate(d,l/2,e.easing).queue(i),t.effects.unshift(n,g,h+1)}),t.effects.define("slide","show",function(e,i){var s,n,o=t(this),a={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},r=e.mode,h=e.direction||"left",l="up"===h||"down"===h?"top":"left",c="up"===h||"left"===h,u=e.distance||o["top"===l?"outerHeight":"outerWidth"](!0),d={};t.effects.createPlaceholder(o),s=o.cssClip(),n=o.position()[l],d[l]=(c?-1:1)*u+n,d.clip=o.cssClip(),d.clip[a[h][1]]=d.clip[a[h][0]],"show"===r&&(o.cssClip(d.clip),o.css(l,d[l]),d.clip=s,d[l]=n),o.animate(d,{queue:!1,duration:e.duration,easing:e.easing,complete:i})});var
vendor: 2,690 bytes, line 11508
11508f;t.uiBackCompat!==!1&&(f=t.effects.define("transfer",function(e,i){t(this).transfer(e,i)})),t.ui.focusable=function(i,s){var n,o,a,r,h,l=i.nodeName.toLowerCase();return"area"===l?(n=i.parentNode,o=n.name,i.href&&o&&"map"===n.nodeName.toLowerCase()?(a=t("img[usemap='#"+o+"']"),a.length>0&&a.is(":visible")):!1):(/^(input|select|textarea|button|object)$/.test(l)?(r=!i.disabled,r&&(h=t(i).closest("fieldset")[0],h&&(r=!h.disabled))):r="a"===l?i.href||s:s,r&&t(i).is(":visible")&&e(t(i)))},t.extend(t.expr[":"],{focusable:function(e){return t.ui.focusable(e,null!=t.attr(e,"tabindex"))}}),t.ui.focusable,t.fn.form=function(){return"string"==typeof this[0].form?this.closest("form"):t(this[0].form)},t.ui.formResetMixin={_formResetHandler:function(){var e=t(this);setTimeout(function(){var i=e.data("ui-form-reset-instances");t.each(i,function(){this.refresh()})})},_bindFormResetHandler:function(){if(this.form=this.element.form(),this.form.length){var t=this.form.data("ui-form-reset-instances")||[];t.length||this.form.on("reset.ui-form-reset",this._formResetHandler),t.push(this),this.form.data("ui-form-reset-instances",t)}},_unbindFormResetHandler:function(){if(this.form.length){var e=this.form.data("ui-form-reset-instances");e.splice(t.inArray(this,e),1),e.length?this.form.data("ui-form-reset-instances",e):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset")}}},"1.7"===t.fn.jquery.substring(0,3)&&(t.each(["Width","Height"],function(e,i){function s(e,i,s,o){return t.each(n,function(){i-=parseFloat(t.css(e,"padding"+this))||0,s&&(i-=parseFloat(t.css(e,"border"+this+"Width"))||0),o&&(i-=parseFloat(t.css(e,"margin"+this))||0)}),i}var n="Width"===i?["Left","Right"]:["Top","Bottom"],o=i.toLowerCase(),a={innerWidth:t.fn.innerWidth,innerHeight:t.fn.innerHeight,outerWidth:t.fn.outerWidth,outerHeight:t.fn.outerHeight};t.fn["inner"+i]=function(e){return void 0===e?a["inner"+i].call(this):this.each(function(){t(this).css(o,s(this,e)+"px")})},t.fn["outer"+i]=function(e,n){return"number"!=typeof e?a["outer"+i].call(this,e):this.each(function(){t(this).css(o,s(this,e,!0,n)+"px")})}}),t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},t.ui.escapeSelector=function(){var t=/([!"#$%&'()*+,./:;<=>?@[\]^`{|}~])/g;return function(e){return e.replace(t,"\\$1")}}(),t.fn.labels=function(){var e,i,s,n,o;return this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(n=this.eq(0).parents("label"),s=this.attr("id"),s&&(e=this.eq(0).parents().last(
vendor: 9,383 bytes, line 11508
11508),o=e.add(e.length?e.siblings():this.siblings()),i="label[for='"+t.ui.escapeSelector(s)+"']",n=n.add(o.find(i).addBack(i))),this.pushStack(n))},t.fn.scrollParent=function(e){var i=this.css("position"),s="absolute"===i,n=e?/(auto|scroll|hidden)/:/(auto|scroll)/,o=this.parents().filter(function(){var e=t(this);return s&&"static"===e.css("position")?!1:n.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))}).eq(0);return"fixed"!==i&&o.length?o:t(this[0].ownerDocument||document)},t.extend(t.expr[":"],{tabbable:function(e){var i=t.attr(e,"tabindex"),s=null!=i;return(!s||i>=0)&&t.ui.focusable(e,s)}}),t.fn.extend({uniqueId:function(){var t=0;return function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++t)})}}(),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&t(this).removeAttr("id")})}}),t.widget("ui.accordion",{version:"1.12.0",options:{active:0,animate:{},classes:{"ui-accordion-header":"ui-corner-top","ui-accordion-header-collapsed":"ui-corner-all","ui-accordion-content":"ui-corner-bottom"},collapsible:!1,event:"click",header:"> li > :first-child, > :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var e=this.options;this.prevShow=this.prevHide=t(),this._addClass("ui-accordion","ui-widget ui-helper-reset"),this.element.attr("role","tablist"),e.collapsible||e.active!==!1&&null!=e.active||(e.active=0),this._processPanels(),0>e.active&&(e.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():t()}},_createIcons:function(){var e,i,s=this.options.icons;s&&(e=t("<span>"),this._addClass(e,"ui-accordion-header-icon","ui-icon "+s.header),e.prependTo(this.headers),i=this.active.children(".ui-accordion-header-icon"),this._removeClass(i,s.header)._addClass(i,null,s.activeHeader)._addClass(this.headers,"ui-accordion-icons"))},_destroyIcons:function(){this._removeClass(this.headers,"ui-accordion-icons"),this.headers.children(".ui-accordion-header-icon").remove()},_destroy:function(){var t;this.element.removeAttr("role"),this.headers.removeAttr("role aria-expanded aria-selected aria-controls tabIndex").removeUniqueId(),this._destroyIcons(),t=this.headers.next().css("display","").removeAttr("role aria-hidden aria-labelledby").removeUniqueId(),"content"!==this.options.heightStyle&&t.css("height","")},_setOption:function(t,e){return"active"===t?(this._activate(e),void 0):("event"===t&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(e)),this._super(t,e),"collapsible"!==t||e||this.options.active!==!1||this._activate(0),"icons"===t&&(this._destroyIcons(),e&&this._createIcons()),void 0)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t),this._toggleClass(null,"ui-state-disabled",!!t),this._toggleClass(this.headers.add(this.headers.next()),null,"ui-state-disabled",!!t)},_keydown:function(e){if(!e.altKey&&!e.ctrlKey){var i=t.ui.keyCode,s=this.headers.length,n=this.headers.index(e.target),o=!1;switch(e.keyCode){case i.RIGHT:case i.DOWN:o=this.headers[(n+1)%s];break;case i.LEFT:case i.UP:o=this.headers[(n-1+s)%s];break;case i.SPACE:case i.ENTER:this._eventHandler(e);break;case i.HOME:o=this.headers[0];break;case i.END:o=this.headers[s-1]}o&&(t(e.target).attr("tabIndex",-1),t(o).attr("tabIndex",0),t(o).trigger("focus"),e.preventDefault())}},_panelKeyDown:function(e){e.keyCode===t.ui.keyCode.UP&&e.ctrlKey&&t(e.currentTarget).prev().trigger("focus")},refresh:function(){var e=this.options;this._processPanels(),e.active===!1&&e.collapsible===!0||!this.headers.length?(e.active=!1,this.active=t()):e.active===!1?this._activate(0):this.active.length&&!t.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(e.active=!1,this.active=t()):this._activate(Math.max(0,e.active-1)):e.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){var t=this.headers,e=this.panels;this.headers=this.element.find(this.options.header),this._addClass(this.headers,"ui-accordion-header ui-accordion-header-collapsed","ui-state-default"),this.panels=this.headers.next().filter(":not(.ui-accordion-content-active)").hide(),this._addClass(this.panels,"ui-accordion-content","ui-helper-reset ui-widget-content"),e&&(this._off(t.not(this.headers)),this._off(e.not(this.panels)))},_refresh:function(){var e,i=this.options,s=i.heightStyle,n=this.element.parent();this.active=this._findActive(i.active),this._addClass(this.active,"ui-accordion-header-active","ui-state-active")._removeClass(this.active,"ui-accordion-header-collapsed"),this._addClass(this.active.next(),"ui-accordion-content-active"),this.active.next().show(),this.headers.attr("role","tab").each(function(){var e=t(this),i=e.uniqueId().attr("id"),s=e.next(),n=s.uniqueId().attr("id");e.attr("aria-controls",n),s.attr("aria-labelledby",i)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(i.event),"fill"===s?(e=n.height(),this.element.siblings(":visible").each(function(){var i=t(this),s=i.css("position");"absolute"!==s&&"fixed"!==s&&(e-=i.outerHeight(!0))}),this.headers.each(function(){e-=t(this).outerHeight(!0)}),this.headers.next().each(function(){t(this).height(Math.max(0,e-t(this).innerHeight()+t(this).height()))}).css("overflow","auto")):"auto"===s&&(e=0,this.headers.next().each(function(){var i=t(this).is(":visible");i||t(this).show(),e=Math.max(e,t(this).css("height","").height()),i||t(this).hide()}).height(e))},_activate:function(e){var i=this._findActive(e)[0];i!==this.active[0]&&(i=i||this.active[0],this._eventHandler({target:i,currentTarget:i,preventDefault:t.noop}))},_findActive:function(e){return"number"==typeof e?this.headers.eq(e):t()},_setupEvents:function(e){var i={keydown:"_keydown"};e&&t.each(e.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,i),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(e){var i,s,n=this.options,o=this.active,a=t(e.currentTarget),r=a[0]===o[0],h=r&&n.collapsible,l=h?t():a.next(),c=o.next(),u={oldHeader:o,oldPanel:c,newHeader:h?t():a,newPanel:l};e.preventDefault(),r&&!n.collapsible||this._trigger("beforeActivate",e,u)===!1||(n.active=h?!1:this.headers.index(a),this.active=r?t():a,this._toggle(u),this._removeClass(o,"ui-accordion-header-active","ui-state-active"),n.icons&&(i=o.children(".ui-accordion-header-icon"),this._removeClass(i,null,n.icons.activeHeader)._addClass(i,null,n.icons.header)),r||(this._removeClass(a,"ui-accordion-header-collapsed")._addClass(a,"ui-accordion-header-active","ui-state-active"),n.icons&&(s=a.children(".ui-accordion-header-icon"),this._removeClass(s,null,n.icons.header)._addClass(s,null,n.icons.activeHeader)),this._addClass(a.next(),"ui-accordion-content-active")))},_toggle:function(e){var i=e.newPanel,s=this.prevShow.length?this.prevShow:e.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=i,this.prevHide=s,this.options.animate?this._animate(i,s,e):(s.hide(),i.show(),this._toggleComplete(e)),s.attr({"aria-hidden":"true"}),s.prev().attr({"aria-selected":"false","aria-expanded":"false"}),i.length&&s.length?s.prev().attr({tabIndex:-1,"aria-expanded":"false"}):i.length&&this.headers.filter(function(){return 0===parseInt(t(this).attr("tabIndex"),10)}).attr("tabIndex",-1),i.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(t,e,i){var s,n,o,a=this,r=0,h=t.css("box-sizing"),l=t.length&&(!e.length||t.index()<e.index()),c=this.options.animate||{},u=l&&c.down||c,d=function(){a._toggleComplete(i)};return"number"==typeof u&&(o=u),"string"==typeof u&&(n=u),n=n||u.easing||c.easing,o=o||u.duration||c.duration,e.length?t.length?(s=t.show().outerHeight(),e.animate(this.hideProps,{duration:o,easing:n,step:function(t,e){e.now=Math.round(t)}}),t.hide().animate(this.showProps,{duration:o,easing:n,complete:d,step:function(t,i){i.now=Math.round(t),"height"!==i.prop?"content-box"===h&&(r+=i.now):"content"!==a.options.heightStyle&&(i.now=Math.round(s-e.outerHeight()-r),r=0)}}),void 0):e.animate(this.hideProps,o,n,d):t.animate(this.showProps,o,n,d)},_toggleComplete:function(t){var e=t.oldPanel,i=e.prev();this._removeClass(e,"ui-accordion-content-active"),this._removeClass(i,"ui-accordion-header-active")._addClass(i,"ui-accordion-header-collapsed"),e.length&&(e.parent()[0].className=e.parent()[0].className),this._trigger("activate",null,t)}}),t.ui.safeActiveElement=function(t){var e;try{e=t.activeElement}catch(i){e=t.body}return e||(e=t.body),e.nodeName||(e=t.body),e}
vendor: 9,987 bytes, line 11508
11508,t.widget("ui.menu",{version:"1.12.0",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(t){t.preventDefault()},"click .ui-menu-item":function(e){var i=t(e.target),s=t(t.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&i.not(".ui-state-disabled").length&&(this.select(e),e.isPropagationStopped()||(this.mouseHandled=!0),i.has(".ui-menu").length?this.expand(e):!this.element.is(":focus")&&s.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(e){if(!this.previousFilter){var i=t(e.target).closest(".ui-menu-item"),s=t(e.currentTarget);i[0]===s[0]&&(this._removeClass(s.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(e,s))}},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var i=this.active||this.element.find(this.options.items).eq(0);e||this.focus(t,i)},blur:function(e){this._delay(function(){var i=!t.contains(this.element[0],t.ui.safeActiveElement(this.document[0]));i&&this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t),this.mouseHandled=!1}})},_destroy:function(){var e=this.element.find(".ui-menu-item").removeAttr("role aria-disabled"),i=e.children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),i.children().each(function(){var e=t(this);e.data("ui-menu-submenu-caret")&&e.remove()})},_keydown:function(e){var i,s,n,o,a=!0;switch(e.keyCode){case t.ui.keyCode.PAGE_UP:this.previousPage(e);break;case t.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case t.ui.keyCode.HOME:this._move("first","first",e);break;case t.ui.keyCode.END:this._move("last","last",e);break;case t.ui.keyCode.UP:this.previous(e);break;case t.ui.keyCode.DOWN:this.next(e);break;case t.ui.keyCode.LEFT:this.collapse(e);break;case t.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e);break;case t.ui.keyCode.ENTER:case t.ui.keyCode.SPACE:this._activate(e);break;case t.ui.keyCode.ESCAPE:this.collapse(e);break;default:a=!1,s=this.previousFilter||"",n=String.fromCharCode(e.keyCode),o=!1,clearTimeout(this.filterTimer),n===s?o=!0:n=s+n,i=this._filterMenuItems(n),i=o&&-1!==i.index(this.active.next())?this.active.nextAll(".ui-menu-item"):i,i.length||(n=String.fromCharCode(e.keyCode),i=this._filterMenuItems(n)),i.length?(this.focus(e,i),this.previousFilter=n,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}a&&e.preventDefault()},_activate:function(t){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var e,i,s,n,o,a=this,r=this.options.icons.submenu,h=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),s=h.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var e=t(this),i=e.prev(),s=t("<span>").data("ui-menu-submenu-caret",!0);a._addClass(s,"ui-menu-icon","ui-icon "+r),i.attr("aria-haspopup","true").prepend(s),e.attr("aria-labelledby",i.attr("id"))}),this._addClass(s,"ui-menu","ui-widget ui-widget-content ui-front"),e=h.add(this.element),i=e.find(this.options.items),i.not(".ui-menu-item").each(function(){var e=t(this);a._isDivider(e)&&a._addClass(e,"ui-menu-divider","ui-widget-content")}),n=i.not(".ui-menu-item, .ui-menu-divider"),o=n.children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(n,"ui-menu-item")._addClass(o,"ui-menu-item-wrapper"),i.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!t.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){if("icons"===t){var i=this.element.find(".ui-menu-icon");this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,e.submenu)}this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t+""),this._toggleClass(null,"ui-state-disabled",!!t)},focus:function(t,e){var i,s,n;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),s=this.active.children(".ui-menu-item-wrapper"),this._addClass(s,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",s.attr("id")),n=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(n,null,"ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),i=e.children(".ui-menu"),i.length&&t&&/^mouse/.test(t.type)&&this._startOpening(i),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(e){var i,s,n,o,a,r;this._hasScroll()&&(i=parseFloat(t.css(this.activeMenu[0],"borderTopWidth"))||0,s=parseFloat(t.css(this.activeMenu[0],"paddingTop"))||0,n=e.offset().top-this.activeMenu.offset().top-i-s,o=this.activeMenu.scrollTop(),a=this.activeMenu.height(),r=e.outerHeight(),0>n?this.activeMenu.scrollTop(o+n):n+r>a&&this.activeMenu.scrollTop(o+n-a+r))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",t,{item:this.active}),this.active=null)},_startOpening:function(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(t)},this.delay))},_open:function(e){var i=t.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(i)},collapseAll:function(e,i){clearTimeout(this.timer),this.timer=this._delay(function(){var s=i?this.element:t(e&&e.target).closest(this.element.find(".ui-menu"));s.length||(s=this.element),this._close(s),this.blur(e),this._removeClass(s.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=s},this.delay)},_close:function(t){t||(t=this.active?this.active.parent():this.element),t.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(e){return!t(e.target).closest(".ui-menu").length},_isDivider:function(t){return!/[^\-\u2014\u2013\s]/.test(t.text())},collapse:function(t){var e=this.active&&this.active.parent().closest(".ui-menu-item",this.element);e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&&this.active.children(".ui-menu ").find(this.options.items).first();e&&e.length&&(this._open(e.parent()),this._delay(function(){this.focus(t,e)}))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(t,e,i){var s;this.active&&(s="first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[t+"All"](".ui-menu-item").eq(0)),s&&s.length&&this.active||(s=this.activeMenu.find(this.options.items)[e]()),this.focus(i,s)},nextPage:function(e){var i,s,n;return this.active?(this.isLastItem()||(this._hasScroll()?(s=this.active.offset().top,n=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return i=t(this),0>i.offset().top-s-n}),this.focus(e,i)):this.focus(e,this.activeMenu.find(this.options.items)[this.active?"last":"first"]())),void 0):(this.next(e),void 0)},previousPage:function(e){var i,s,n;return this.active?(this.isFirstItem()||(this._hasScroll()?(s=this.active.offset().top,n=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return i=t(this),i.offset().top-s+n>0}),this.focus(e,i)):this.focus(e,this.activeMenu.find(this.options.items).first())),void 0):(this.next(e),void 0)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(e){this.active=this.active||t(e.target).closest(".ui-menu-item");var i={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(e,!0),this._trigger("select",e,i)},_filterMenuItems:function(e){var i=e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),s=RegExp("^"+i,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return s.test(t.trim(t(this).children(".ui-menu-item-wrapper").text()))})}}),t.widget("ui.autocomplete",{version:"1.12.0",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var e,i,s,n=this.element[0].nodeName.toLowerCase(),o="textarea"===n,a="input"===n;this.isMultiLine=o||!a&&this._isContentEditable(this.element),this.valueMethod=this.element[o||a?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(n){if(this.element.prop("readOnly"))return e=!0,s=!0,i=!0,void 0;
11508
vendor: 7,667 bytes, line 11509
11509e=!1,s=!1,i=!1;var o=t.ui.keyCode;switch(n.keyCode){case o.PAGE_UP:e=!0,this._move("previousPage",n);break;case o.PAGE_DOWN:e=!0,this._move("nextPage",n);break;case o.UP:e=!0,this._keyEvent("previous",n);break;case o.DOWN:e=!0,this._keyEvent("next",n);break;case o.ENTER:this.menu.active&&(e=!0,n.preventDefault(),this.menu.select(n));break;case o.TAB:this.menu.active&&this.menu.select(n);break;case o.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(n),n.preventDefault());break;default:i=!0,this._searchTimeout(n)}},keypress:function(s){if(e)return e=!1,(!this.isMultiLine||this.menu.element.is(":visible"))&&s.preventDefault(),void 0;if(!i){var n=t.ui.keyCode;switch(s.keyCode){case n.PAGE_UP:this._move("previousPage",s);break;case n.PAGE_DOWN:this._move("nextPage",s);break;case n.UP:this._keyEvent("previous",s);break;case n.DOWN:this._keyEvent("next",s)}}},input:function(t){return s?(s=!1,t.preventDefault(),void 0):(this._searchTimeout(t),void 0)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){return this.cancelBlur?(delete this.cancelBlur,void 0):(clearTimeout(this.searching),this.close(t),this._change(t),void 0)}}),this._initSource(),this.menu=t("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,this.element[0]!==t.ui.safeActiveElement(this.document[0])&&this.element.trigger("focus")})},menufocus:function(e,i){var s,n;return this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent&&/^mouse/.test(e.originalEvent.type))?(this.menu.blur(),this.document.one("mousemove",function(){t(e.target).trigger(e.originalEvent)}),void 0):(n=i.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",e,{item:n})&&e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(n.value),s=i.item.attr("aria-label")||n.value,s&&t.trim(s).length&&(this.liveRegion.children().hide(),t("<div>").text(s).appendTo(this.liveRegion)),void 0)},menuselect:function(e,i){var s=i.item.data("ui-autocomplete-item"),n=this.previous;this.element[0]!==t.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=n,this._delay(function(){this.previous=n,this.selectedItem=s})),!1!==this._trigger("select",e,{item:s})&&this._value(s.value),this.term=this._value(),this.close(e),this.selectedItem=s}}),this.liveRegion=t("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.menu.element.appendTo(this._appendTo()),"disabled"===t&&e&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(e){var i=this.menu.element[0];return e.target===this.element[0]||e.target===i||t.contains(i,e.target)},_closeOnClickOutside:function(t){this._isEventTargetInWidget(t)||this.close()},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e&&e[0]||(e=this.element.closest(".ui-front, dialog")),e.length||(e=this.document[0].body),e},_initSource:function(){var e,i,s=this;t.isArray(this.options.source)?(e=this.options.source,this.source=function(i,s){s(t.ui.autocomplete.filter(e,i.term))}):"string"==typeof this.options.source?(i=this.options.source,this.source=function(e,n){s.xhr&&s.xhr.abort(),s.xhr=t.ajax({url:i,data:e,dataType:"json",success:function(t){n(t)},error:function(){n([])}})}):this.source=this.options.source},_searchTimeout:function(t){clearTimeout(this.searching),this.searching=this._delay(function(){var e=this.term===this._value(),i=this.menu.element.is(":visible"),s=t.altKey||t.ctrlKey||t.metaKey||t.shiftKey;(!e||e&&!i&&!s)&&(this.selectedItem=null,this.search(null,t))},this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length<this.options.minLength?this.close(e):this._trigger("search",e)!==!1?this._search(t):void 0},_search:function(t){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:t},this._response())},_response:function(){var e=++this.requestIndex;return t.proxy(function(t){e===this.requestIndex&&this.__response(t),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")},this)},__response:function(t){t&&(t=this._normalize(t)),this._trigger("response",null,{content:t}),!this.options.disabled&&t&&t.length&&!this.cancelSearch?(this._suggest(t),this._trigger("open")):this._close()},close:function(t){this.cancelSearch=!0,this._close(t)},_close:function(t){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",t))},_change:function(t){this.previous!==this._value()&&this._trigger("change",t,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:t.map(e,function(e){return"string"==typeof e?{label:e,value:e}:t.extend({},e,{label:e.label||e.value,value:e.value||e.label})})},_suggest:function(e){var i=this.menu.element.empty();this._renderMenu(i,e),this.isNewMenu=!0,this.menu.refresh(),i.show(),this._resizeMenu(),i.position(t.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var t=this.menu.element;t.outerWidth(Math.max(t.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(e,i){var s=this;t.each(i,function(t,i){s._renderItemData(e,i)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-autocomplete-item",e)},_renderItem:function(e,i){return t("<li>").append(t("<div>").text(i.label)).appendTo(e)},_move:function(t,e){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this.isMultiLine||this._value(this.term),this.menu.blur(),void 0):(this.menu[t](e),void 0):(this.search(null,e),void 0)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){(!this.isMultiLine||this.menu.element.is(":visible"))&&(this._move(t,e),e.preventDefault())},_isContentEditable:function(t){if(!t.length)return!1;var e=t.prop("contentEditable");return"inherit"===e?this._isContentEditable(t.parent()):"true"===e}}),t.extend(t.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,i){var s=RegExp(t.ui.autocomplete.escapeRegex(i),"i");return t.grep(e,function(t){return s.test(t.label||t.value||t)})}}),t.widget("ui.autocomplete",t.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(t>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var i;this._superApply(arguments),this.options.disabled||this.cancelSearch||(i=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,this.liveRegion.children().hide(),t("<div>").text(i).appendTo(this.liveRegion))}}),t.ui.autocomplete;var g=/ui-corner-([a-z]){2,6}/g;t.widget("ui.controlgroup",{version:"1.12.
115090",defaultElement:"<div>",options:{direction:"horizontal",disabled:null,onlyVisible:!0,items:{button:"input[type=button], input[type=submit], input[type=reset], button, a",controlgroupLabel:".ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".ui-spinner-input"}},_create:function(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar"),this.refresh()},_destroy:function(){this._callChildMethod("destroy"),this.childWidgets.removeData("ui-controlgroup-data"),this.element.removeAttr("role"),this.options.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()},_initWidgets:function(){var e=this,i=[];t.each(this.options.items,function(s,n){var o,a={};return n?"controlgroupLabel"===s?(o=e.element.find(n),o.each(function(){var e=t(this);e.children(".ui-controlgroup-label-contents").length||e.contents().wrapAll("<span class='ui-controlgroup-label-contents'></span>")}),e._addClass(o,null,"ui-widget ui-widget-content ui-state-default"),i=i.concat(o.get()),void 0):(t.fn[s]&&(e["_"+s+"Options"]&&(a=e["_"+s+"Options"]("middle")),e.element.find(n).each(function(){var n=t(this),o=n[s]("instance"),r=t.widget.extend({},a);if("button"!==s||!n.parent(".ui-spinner").length){o||(o=n[s]()[s]("instance")),o&&(r.classes=e._resolveClassesValues(r.classes,o)),n[s](r);var h=n[s]("widget");t.data(h[0],"ui-controlgroup-data",o?o:n[s]("instance")),i.push(h[0])}})),void 0):void 0}),this.childWidgets=t(t.unique(i)),this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(e){this.childWidgets.each(function(){var i=t(this),s=i.data("ui-controlgroup-data");s&&s[e]&&s[e]()})},_updateCornerClass:function(t,e){var i="ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all",s=this._buildSimpleOptions(e,"label").classes.label;this._removeClass(t,null,i),this._addClass(t,null,s)},_buildSimpleOptions:function(t,e){var i="vertical"===this.options.direction,s={classes:{}};return s.classes[e]={middle:"",first:"ui-corner-"+(i?"top":"left"),last:"ui-corner-"+(i?"bottom":"right"),only:"ui-corner-all"}[t],s},_spinnerOptions:function(t){var e=this._buildSimpleOptions(t,"ui-spinner");return e.classes["ui-spinner-up"]="",e.classes["ui-spinner-down"]="",e},_buttonOptions:function(t){return this._buildSimpleOptions(t,"ui-button")},_checkboxradioOptions:function(t){return this._buildSimpleOptions(t,"ui-checkboxradio-label")},_selectmenuOptions:function(t){var e="vertical"===this.options.direction;
vendor: 10,818 bytes, line 11509
11509return{width:e?"auto":!1,classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(e?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(e?"top":"left")},last:{"ui-selectmenu-button-open":e?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(e?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[t]}},_resolveClassesValues:function(e,i){var s={};return t.each(e,function(t){var n=i.options.classes[t]||"";n=n.replace(g,"").trim(),s[t]=(n+" "+e[t]).replace(/\s+/g," ")}),s},_setOption:function(t,e){return"direction"===t&&this._removeClass("ui-controlgroup-"+this.options.direction),this._super(t,e),"disabled"===t?(this._callChildMethod(e?"disable":"enable"),void 0):(this.refresh(),void 0)},refresh:function(){var e,i=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction),"horizontal"===this.options.direction&&this._addClass(null,"ui-helper-clearfix"),this._initWidgets(),e=this.childWidgets,this.options.onlyVisible&&(e=e.filter(":visible")),e.length&&(t.each(["first","last"],function(t,s){var n=e[s]().data("ui-controlgroup-data");if(n&&i["_"+n.widgetName+"Options"]){var o=i["_"+n.widgetName+"Options"](1===e.length?"only":s);o.classes=i._resolveClassesValues(o.classes,n),n.element[n.widgetName](o)}else i._updateCornerClass(e[s](),s)}),this._callChildMethod("refresh"))}}),t.widget("ui.checkboxradio",[t.ui.formResetMixin,{version:"1.12.0",options:{disabled:null,label:null,icon:!0,classes:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-all"}},_getCreateOptions:function(){var e,i,s=this,n=this._super()||{};return this._readType(),i=this.element.labels(),this.label=t(i[i.length-1]),this.label.length||t.error("No label found for checkboxradio widget"),this.originalLabel="",this.label.contents().not(this.element).each(function(){s.originalLabel+=3===this.nodeType?t(this).text():this.outerHTML}),this.originalLabel&&(n.label=this.originalLabel),e=this.element[0].disabled,null!=e&&(n.disabled=e),n},_create:function(){var t=this.element[0].checked;this._bindFormResetHandler(),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled),this._setOption("disabled",this.options.disabled),this._addClass("ui-checkboxradio","ui-helper-hidden-accessible"),this._addClass(this.label,"ui-checkboxradio-label","ui-button ui-widget"),"radio"===this.type&&this._addClass(this.label,"ui-checkboxradio-radio-label"),this.options.label&&this.options.label!==this.originalLabel?this._updateLabel():this.originalLabel&&(this.options.label=this.originalLabel),this._enhance(),t&&(this._addClass(this.label,"ui-checkboxradio-checked","ui-state-active"),this.icon&&this._addClass(this.icon,null,"ui-state-hover")),this._on({change:"_toggleClasses",focus:function(){this._addClass(this.label,null,"ui-state-focus ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"ui-state-focus ui-visual-focus")}})},_readType:function(){var e=this.element[0].nodeName.toLowerCase();this.type=this.element[0].type,"input"===e&&/radio|checkbox/.test(this.type)||t.error("Can't create checkboxradio on element.nodeName="+e+" and element.type="+this.type)},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var e,i=this.element[0].name,s="input[name='"+t.ui.escapeSelector(i)+"']";return i?(e=this.form.length?t(this.form[0].elements).filter(s):t(s).filter(function(){return 0===t(this).form().length}),e.not(this.element)):t([])},_toggleClasses:function(){var e=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",e),this.options.icon&&"checkbox"===this.type&&this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",e)._toggleClass(this.icon,null,"ui-icon-blank",!e),"radio"===this.type&&this._getRadioGroup().each(function(){var e=t(this).checkboxradio("instance");e&&e._removeClass(e.label,"ui-checkboxradio-checked","ui-state-active")})},_destroy:function(){this._unbindFormResetHandler(),this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption:function(t,e){return"label"!==t||e?(this._super(t,e),"disabled"===t?(this._toggleClass(this.label,null,"ui-state-disabled",e),this.element[0].disabled=e,void 0):(this.refresh(),void 0)):void 0},_updateIcon:function(e){var i="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=t("<span>"),this.iconSpace=t("<span> </span>"),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),"checkbox"===this.type?(i+=e?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,e?"ui-icon-blank":"ui-icon-check")):i+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",i),e||this._removeClass(this.icon,null,"ui-icon-check ui-state-checked"),this.icon.prependTo(this.label).after(this.iconSpace)):void 0!==this.icon&&(this.icon.remove(),this.iconSpace.remove(),delete this.icon)},_updateLabel:function(){this.label.contents().not(this.element.add(this.icon).add(this.iconSpace)).remove(),this.label.append(this.options.label)},refresh:function(){var t=this.element[0].checked,e=this.element[0].disabled;this._updateIcon(t),this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",t),null!==this.options.label&&this._updateLabel(),e!==this.options.disabled&&this._setOptions({disabled:e})}}]),t.ui.checkboxradio,t.widget("ui.button",{version:"1.12.0",defaultElement:"<button>",options:{classes:{"ui-button":"ui-corner-all"},disabled:null,icon:null,iconPosition:"beginning",label:null,showLabel:!0},_getCreateOptions:function(){var t,e=this._super()||{};return this.isInput=this.element.is("input"),t=this.element[0].disabled,null!=t&&(e.disabled=t),this.originalLabel=this.isInput?this.element.val():this.element.html(),this.originalLabel&&(e.label=this.originalLabel),e},_create:function(){!this.option.showLabel&!this.options.icon&&(this.options.showLabel=!0),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled||!1),this.hasTitle=!!this.element.attr("title"),this.options.label&&this.options.label!==this.originalLabel&&(this.isInput?this.element.val(this.options.label):this.element.html(this.options.label)),this._addClass("ui-button","ui-widget"),this._setOption("disabled",this.options.disabled),this._enhance(),this.element.is("a")&&this._on({keyup:function(e){e.keyCode===t.ui.keyCode.SPACE&&(e.preventDefault(),this.element[0].click?this.element[0].click():this.element.trigger("click"))}})},_enhance:function(){this.element.is("button")||this.element.attr("role","button"),this.options.icon&&(this._updateIcon("icon",this.options.icon),this._updateTooltip())},_updateTooltip:function(){this.title=this.element.attr("title"),this.options.showLabel||this.title||this.element.attr("title",this.options.label)},_updateIcon:function(e,i){var s="iconPosition"!==e,n=s?this.options.iconPosition:i,o="top"===n||"bottom"===n;this.icon?s&&this._removeClass(this.icon,null,this.options.icon):(this.icon=t("<span>"),this._addClass(this.icon,"ui-button-icon","ui-icon"),this.options.showLabel||this._addClass("ui-button-icon-only")),s&&this._addClass(this.icon,null,i),this._attachIcon(n),o?(this._addClass(this.icon,null,"ui-widget-icon-block"),this.iconSpace&&this.iconSpace.remove()):(this.iconSpace||(this.iconSpace=t("<span> </span>"),this._addClass(this.iconSpace,"ui-button-icon-space")),this._removeClass(this.icon,null,"ui-wiget-icon-block"),this._attachIconSpace(n))},_destroy:function(){this.element.removeAttr("role"),this.icon&&this.icon.remove(),this.iconSpace&&this.iconSpace.remove(),this.hasTitle||this.element.removeAttr("title")},_attachIconSpace:function(t){this.icon[/^(?:end|bottom)/.test(t)?"before":"after"](this.iconSpace)},_attachIcon:function(t){this.element[/^(?:end|bottom)/.test(t)?"append":"prepend"](this.icon)},_setOptions:function(t){var e=void 0===t.showLabel?this.options.showLabel:t.showLabel,i=void 0===t.icon?this.options.icon:t.icon;e||i||(t.showLabel=!0),this._super(t)},_setOption:function(t,e){"icon"===t&&(e?this._updateIcon(t,e):this.icon&&(this.icon.remove(),this.iconSpace&&this.iconSpace.remove())),"iconPosition"===t&&this._updateIcon(t,e),"showLabel"===t&&(this._toggleClass("ui-button-icon-only",null,!e),this._updateTooltip()),"label"===t&&(this.isInput?this.element.val(e):(this.element.html(e),this.icon&&(this._attachIcon(this.options.iconPosition),this._attachIconSpace(this.options.iconPosition)))),this._super(t,e),"disabled"===t&&(this._toggleClass(null,"ui-state-disabled",e),this.element[0].disabled=e,e&&this.element.blur())},refresh:function(){var t=this.element.is("input, button")?this.element[0].disabled:this.element.hasClass("ui-button-disabled");t!==this.options.disabled&&this._setOptions({disabled:t}),this._updateTooltip()}}),t.uiBackCompat!==!1&&(t.widget("ui.button",t.ui.button,{options:{text:!0,icons:{primary:null,secondary:null}},_create:function(){this.options.showLabel&&!this.options.text&&(this.options.showLabel=this.options.text),!this.options.showLabel&&this.options.text&&(this.options.text=this.options.showLabel),this.options.icon||!this.options.icons.primary&&!this.options.icons.secondary?this.options.icon&&(this.options.icons.primary=this.options.icon):this.options.icons.primary?this.options.icon=this.options.icons.primary:(this.options.icon=this.options.icons.secondary,this.options.iconPosition="end"),this._super()},_setOption:function(t,e){return"text"===t?(this._super("showLabel",e),void 0):("showLabel"===t&&(this.options.text=e),"icon"===t&&(this.options.icons.primary=e),"icons"===t&&(e.primary?(this._super("icon",e.primary),this._super("iconPosition","beginning")):e.secondary&&(this._super("icon",e.secondary),this._super("iconPosition","end"))),this._superApply(arguments),void 0)}}),t.fn.button=function(e){return function(){return!this.length||this.length&&"INPUT"!==this[0].tagName||this.length&&"INPUT"===this[0].tagName&&"checkbox"!==this.attr("type")&&"radio"!==this.attr("type")?e.apply(this,arguments):(t.ui.checkboxradio||t.error("Checkboxradio widget missing"),0===arguments.length?this.checkboxradio({icon:!1}):this.checkboxradio.apply(this,arguments))}}(t.fn.button),t.fn.buttonset=function(){return t.ui.controlgroup||t.error("Controlgroup widget missing"),"option"===arguments[0]&&"items"===arguments[1]&&arguments[2]?this.controlgroup.apply(this,[arguments[0],"items.button",arguments[2]]):"option"===arguments[0]&&"items"===arguments[1]?this.controlgroup.apply(this,[arguments[0],"items.button"]):("object"==typeof arguments[0]&&arguments[0].items&&(arguments[0].items={button:arguments[0].items}),this.controlgroup.apply(this,arguments))}),t.ui.button,t.extend(t.ui,{datepicker:{version:"1.12.0
vendor: 21,811 bytes, lines 11509-11510
11509"}});var m;t.extend(s.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return a(this._defaults,t||{}),this},_attachDatepicker:function(e,i){var s,n,o;s=e.nodeName.toLowerCase(),n="div"===s||"span"===s,e.id||(this.uuid+=1,e.id="dp"+this.uuid),o=this._newInst(t(e),n),o.settings=t.extend({},i||{}),"input"===s?this._connectDatepicker(e,o):n&&this._inlineDatepicker(e,o)},_newInst:function(e,i){var s=e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1");return{id:s,input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:i,dpDiv:i?n(t("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(e,i){var s=t(e);i.append=t([]),i.trigger=t([]),s.hasClass(this.markerClassName)||(this._attachments(s,i),s.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(i),t.data(e,"datepicker",i),i.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,i){var s,n,o,a=this._get(i,"appendText"),r=this._get(i,"isRTL");i.append&&i.append.remove(),a&&(i.append=t("<span class='"+this._appendClass+"'>"+a+"</span>"),e[r?"before":"after"](i.append)),e.off("focus",this._showDatepicker),i.trigger&&i.trigger.remove(),s=this._get(i,"showOn"),("focus"===s||"both"===s)&&e.on("focus",this._showDatepicker),("button"===s||"both"===s)&&(n=this._get(i,"buttonText"),o=this._get(i,"buttonImage"),i.trigger=t(this._get(i,"buttonImageOnly")?t("<img/>").addClass(this._triggerClass).attr({src:o,alt:n,title:n}):t("<button type='button'></button>").addClass(this._triggerClass).html(o?t("<img/>").attr({src:o,alt:n,title:n}):n)),e[r?"before":"after"](i.trigger),i.trigger.on("click",function(){return t.datepicker._datepickerShowing&&t.datepicker._lastInput===e[0]?t.datepicker._hideDatepicker():t.datepicker._datepickerShowing&&t.datepicker._lastInput!==e[0]?(t.datepicker._hideDatepicker(),t.datepicker._showDatepicker(e[0])):t.datepicker._showDatepicker(e[0]),!1}))},_autoSize:function(t){if(this._get(t,"autoSize")&&!t.inline){var e,i,s,n,o=new Date(2009,11,20),a=this._get(t,"dateFormat");a.match(/[DM]/)&&(e=function(t){for(i=0,s=0,n=0;t.length>n;n++)t[n].length>i&&(i=t[n].length,s=n);return s},o.setMonth(e(this._get(t,a.match(/MM/)?"monthNames":"monthNamesShort"))),o.setDate(e(this._get(t,a.match(/DD/)?"dayNames":"dayNamesShort"))+20-o.getDay())),t.input.attr("size",this._formatDate(t,o).length)}},_inlineDatepicker:function(e,i){var s=t(e);s.hasClass(this.markerClassName)||(s.addClass(this.markerClassName).append(i.dpDiv),t.data(e,"datepicker",i),this._setDate(i,this._getDefaultDate(i),!0),this._updateDatepicker(i),this._updateAlternate(i),i.settings.disabled&&this._disableDatepicker(e),i.dpDiv.css("display","block"))},_dialogDatepicker:function(e,i,s,n,o){var r,h,l,c,u,d=this._dialogInst;return d||(this.uuid+=1,r="dp"+this.uuid,this._dialogInput=t("<input type='text' id='"+r+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),t("body").append(this._dialogInput),d=this._dialogInst=this._newInst(this._dialogInput,!1),d.settings={},t.data(this._dialogInput[0],"datepicker",d)),a(d.settings,n||{}),i=i&&i.constructor===Date?this._formatDate(d,i):i,this._dialogInput.val(i),this._pos=o?o.length?o:[o.pageX,o.pageY]:null,this._pos||(h=document.documentElement.clientWidth,l=document.documentElement.clientHeight,c=document.documentElement.scrollLeft||document.body.scrollLeft,u=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[h/2-100+c,l/2-150+u]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),d.settings.onSelect=s,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),t.blockUI&&t.blockUI(this.dpDiv),t.data(this._dialogInput[0],"datepicker",d),this},_destroyDatepicker:function(e){var i,s=t(e),n=t.data(e,"datepicker");s.hasClass(this.markerClassName)&&(i=e.nodeName.toLowerCase(),t.removeData(e,"datepicker"),"input"===i?(n.append.remove(),n.trigger.remove(),s.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):("div"===i||"span"===i)&&s.removeClass(this.markerClassName).empty(),m===n&&(m=null))},_enableDatepicker:function(e){var i,s,n=t(e),o=t.data(e,"datepicker");n.hasClass(this.markerClassName)&&(i=e.nodeName.toLowerCase(),"input"===i?(e.disabled=!1,o.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):("div"===i||"span"===i)&&(s=n.children("."+this._inlineClass),s.children().removeClass("ui-state-disabled"),s.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=t.map(this._disabledInputs,function(t){return t===e?null:t}))},_disableDatepicker:function(e){var i,s,n=t(e),o=t.data(e,"datepicker");n.hasClass(this.markerClassName)&&(i=e.nodeName.toLowerCase(),"input"===i?(e.disabled=!0,o.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):("div"===i||"span"===i)&&(s=n.children("."+this._inlineClass),s.children().addClass("ui-state-disabled"),s.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=t.map(this._disabledInputs,function(t){return t===e?null:t}),this._disabledInputs[this._disabledInputs.length]=e)},_isDisabledDatepicker:function(t){if(!t)return!1;for(var e=0;this._disabledInputs.length>e;e++)if(this._disabledInputs[e]===t)return!0;return!1},_getInst:function(e){try{return t.data(e,"datepicker")}catch(i){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(e,i,s){var n,o,r,h,l=this._getInst(e);return 2===arguments.length&&"string"==typeof i?"defaults"===i?t.extend({},t.datepicker._defaults):l?"all"===i?t.extend({},l.settings):this._get(l,i):null:(n=i||{},"string"==typeof i&&(n={},n[i]=s),l&&(this._curInst===l&&this._hideDatepicker(),o=this._getDateDatepicker(e,!0),r=this._getMinMaxDate(l,"min"),h=this._getMinMaxDate(l,"max"),a(l.settings,n),null!==r&&void 0!==n.dateFormat&&void 0===n.minDate&&(l.settings.minDate=this._formatDate(l,r)),null!==h&&void 0!==n.dateFormat&&void 0===n.maxDate&&(l.settings.maxDate=this._formatDate(l,h)),"disabled"in n&&(n.disabled?this._disableDatepicker(e):this._enableDatepicker(e)),this._attachments(t(e),l),this._autoSize(l),this._setDate(l,o),this._updateAlternate(l),this._updateDatepicker(l)),void 0)},_changeDatepicker:function(t,e,i){this._optionDatepicker(t,e,i)},_refreshDatepicker:function(t){var e=this._getInst(t);e&&this._updateDatepicker(e)},_setDateDatepicker:function(t,e){var i=this._getInst(t);i&&(this._setDate(i,e),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(t,e){var i=this._getInst(t);return i&&!i.inline&&this._setDateFromField(i,e),i?this._getDate(i):null},_doKeyDown:function(e){var i,s,n,o=t.datepicker._getInst(e.target),a=!0,r=o.dpDiv.is(".ui-datepicker-rtl");if(o._keyEvent=!0,t.datepicker._datepickerShowing)switch(e.keyCode){case 9:t.datepicker._hideDatepicker(),a=!1;break;case 13:return n=t("td."+t.datepicker._dayOverClass+":not(."+t.datepicker._currentClass+")",o.dpDiv),n[0]&&t.datepicker._selectDay(e.target,o.selectedMonth,o.selectedYear,n[0]),i=t.datepicker._get(o,"onSelect"),i?(s=t.datepicker._formatDate(o),i.apply(o.input?o.input[0]:null,[s,o])):t.datepicker._hideDatepicker(),!1;case 27:t.datepicker._hideDatepicker();break;case 33:t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(o,"stepBigMonths"):-t.datepicker._get(o,"stepMonths"),"M");break;case 34:t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(o,"stepBigMonths"):+t.datepicker._get(o,"stepMonths"),"M");break;case 35:(e.ctrlKey||e.metaKey)&&t.datepicker._clearDate(e.target),a=e.ctrlKey||e.metaKey;break;case 36:(e.ctrlKey||e.metaKey)&&t.datepicker._gotoToday(e.target),a=e.ctrlKey||e.metaKey;break;case 37:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,r?1:-1,"D"),a=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(o,"stepBigMonths"):-t.datepicker._get(o,"stepMonths"),"M");break;case 38:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,-7,"D"),a=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,r?-1:1,"D"),a=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(o,"stepBigMonths"):+t.datepicker._get(o,"stepMonths"),"M");break;case 40:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,7,"D"),a=e.ctrlKey||e.metaKey;break;default:a=!1}else 36===e.keyCode&&e.ctrlKey?t.datepicker._showDatepicker(this):a=!1;a&&(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(e){var i,s,n=t.datepicker._getInst(e.target);return t.datepicker._get(n,"constrainInput")?(i=t.datepicker._possibleChars(t.datepicker._get(n,"dateFormat")),s=String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),e.ctrlKey||e.metaKey||" ">s||!i||i.indexOf(s)>-1):void 0},_doKeyUp:function(e){var i,s=t.datepicker._getInst(e.target);if(s.input.val()!==s.lastVal)try{i=t.datepicker.parseDate(t.datepicker._get(s,"dateFormat"),s.input?s.input.val():null,t.datepicker._getFormatConfig(s)),i&&(t.datepicker._setDateFromField(s),t.datepicker._updateAlternate(s),t.datepicker._updateDatepicker(s))}catch(n){}return!0},_showDatepicker:function(e){if(e=e.target||e,"input"!==e.nodeName.toLowerCase()&&(e=t("input",e.parentNode)[0]),!t.datepicker._isDisabledDatepicker(e)&&t.datepicker._lastInput!==e){var s,n,o,r,h,l,c;s=t.datepicker._getInst(e),t.datepicker._curInst&&t.datepicker._curInst!==s&&(t.datepicker._curInst.dpDiv.stop(!0,!0),s&&t.datepicker._datepickerShowing&&t.datepicker._hideDatepicker(t.datepicker._curInst.input[0])),n=t.datepicker._get(s,"beforeShow"),o=n?n.apply(e,[e,s]):{},o!==!1&&(a(s.settings,o),s.lastVal=null,t.datepicker._lastInput=e,t.datepicker._setDateFromField(s),t.datepicker._inDialog&&(e.value=""),t.datepicker._pos||(t.datepicker._pos=t.datepicker._findPos(e),t.datepicker._pos[1]+=e.offsetHeight),r=!1,t(e).parents().each(function(){return r|="fixed"===t(this).css("position"),!r}),h={left:t.datepicker._pos[0],top:t.datepicker._pos[1]},t.datepicker._pos=null,s.dpDiv.empty(),s.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),t.datepicker._updateDatepicker(s),h=t.datepicker._checkOffset(s,h,r),s.dpDiv.css({position:t.datepicker._inDialog&&t.blockUI?"static":r?"fixed":"absolute",display:"none",left:h.left+"px",top:h.top+"px"}),s.inline||(l=t.datepicker._get(s,"showAnim"),c=t.datepicker._get(s,"duration"),s.dpDiv.css("z-index",i(t(e))+1),t.datepicker._datepickerShowing=!0,t.effects&&t.effects.effect[l]?s.dpDiv.show(l,t.datepicker._get(s,"showOptions"),c):s.dpDiv[l||"show"](l?c:null),t.datepicker._shouldFocusInput(s)&&s.input.trigger("focus"),t.datepicker._curInst=s)) 11510}},_updateDatepicker:function(e){this.maxRows=4,m=e,e.dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e);var i,s=this._getNumberOfMonths(e),n=s[1],a=17,r=e.dpDiv.find("."+this._dayOverClass+" a");r.length>0&&o.apply(r.get(0)),e.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),n>1&&e.dpDiv.addClass("ui-datepicker-multi-"+n).css("width",a*n+"em"),e.dpDiv[(1!==s[0]||1!==s[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),e.dpDiv[(this._get(e,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),e===t.datepicker._curInst&&t.datepicker._datepickerShowing&&t.datepicker._shouldFocusInput(e)&&e.input.trigger("focus"),e.yearshtml&&(i=e.yearshtml,setTimeout(function(){i===e.yearshtml&&e.yearshtml&&e.dpDiv.find("select.ui-datepicker-year:first").replaceWith(e.yearshtml),i=e.yearshtml=null},0))},_shouldFocusInput:function(t){return t.input&&t.input.is(":visible")&&!t.input.is(":disabled")&&!t.input.is(":focus")},_checkOffset:function(e,i,s){var n=e.dpDiv.outerWidth(),o=e.dpDiv.outerHeight(),a=e.input?e.input.outerWidth():0,r=e.input?e.input.outerHeight():0,h=document.documentElement.clientWidth+(s?0:t(document).scrollLeft()),l=document.documentElement.clientHeight+(s?0:t(document).scrollTop());return i.left-=this._get(e,"isRTL")?n-a:0,i.left-=s&&i.left===e.input.offset().left?t(document).scrollLeft():0,i.top-=s&&i.top===e.input.offset().top+r?t(document).scrollTop():0,i.left-=Math.min(i.left,i.left+n>h&&h>n?Math.abs(i.left+n-h):0),i.top-=Math.min(i.top,i.top+o>l&&l>o?Math.abs(o+r):0),i},_findPos:function(e){for(var i,s=this._getInst(e),n=this._get(s,"isRTL");e&&("hidden"===e.type||1!==e.nodeType||t.expr.filters.hidden(e));)e=e[n?"previousSibling":"nextSibling"];return i=t(e).offset(),[i.left,i.top]},_hideDatepicker:function(e){var i,s,n,o,a=this._curInst;!a||e&&a!==t.data(e,"datepicker")||this._datepickerShowing&&(i=this._get(a,"showAnim"),s=this._get(a,"duration"),n=function(){t.datepicker._tidyDialog(a)},t.effects&&(t.effects.effect[i]||t.effects[i])?a.dpDiv.hide(i,t.datepicker._get(a,"showOptions"),s,n):a.dpDiv["slideDown"===i?"slideUp":"fadeIn"===i?"fadeOut":"hide"](i?s:null,n),i||n(),this._datepickerShowing=!1,o=this._get(a,"onClose"),o&&o.apply(a.input?a.input[0]:null,[a.input?a.input.val():"",a]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),t.blockUI&&(t.unblockUI(),t("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(e){if(t.datepicker._curInst){var i=t(e.target),s=t.datepicker._getInst(i[0]);(i[0].id!==t.datepicker._mainDivId&&0===i.parents("#"+t.datepicker._mainDivId).length&&!i.hasClass(t.datepicker.markerClassName)&&!i.closest("."+t.datepicker._triggerClass).length&&t.datepicker._datepickerShowing&&(!t.datepicker._inDialog||!t.blockUI)||i.hasClass(t.datepicker.markerClassName)&&t.datepicker._curInst!==s)&&t.datepicker._hideDatepicker()}},_adjustDate:function(e,i,s){var n=t(e),o=this._getInst(n[0]);this._isDisabledDatepicker(n[0])||(this._adjustInstDate(o,i+("M"===s?this._get(o,"showCurrentAtPos"):0),s),this._updateDatepicker(o))},_gotoToday:function(e){var i,s=t(e),n=this._getInst(s[0]);this._get(n,"gotoCurrent")&&n.currentDay?(n.selectedDay=n.currentDay,n.drawMonth=n.selectedMonth=n.currentMonth,n.drawYear=n.selectedYear=n.currentYear):(i=new Date,n.selectedDay=i.getDate(),n.drawMonth=n.selectedMonth=i.getMonth(),n.drawYear=n.selectedYear=i.getFullYear()),this._notifyChange(n),this._adjustDate(s)},_selectMonthYear:function(e,i,s){var n=t(e),o=this._getInst(n[0]);o["selected"+("M"===s?"Month":"Year")]=o["draw"+("M"===s?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10),this._notifyChange(o),this._adjustDate(n)},_selectDay:function(e,i,s,n){var o,a=t(e);t(n).hasClass(this._unselectableClass)||this._isDisabledDatepicker(a[0])||(o=this._getInst(a[0]),o.selectedDay=o.currentDay=t("a",n).html(),o.selectedMonth=o.currentMonth=i,o.selectedYear=o.currentYear=s,this._selectDate(e,this._formatDate(o,o.currentDay,o.currentMonth,o.currentYear)))},_clearDate:function(e){var i=t(e);this._selectDate(i,"")},_selectDate:function(e,i){var s,n=t(e),o=this._getInst(n[0]);i=null!=i?i:this._formatDate(o),o.input&&o.input.val(i),this._updateAlternate(o),s=this._get(o,"onSelect"),s?s.apply(o.input?o.input[0]:null,[i,o]):o.input&&o.input.trigger("change"),o.inline?this._updateDatepicker(o):(this._hideDatepicker(),this._lastInput=o.input[0],"object"!=typeof o.input[0]&&o.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(e){var i,s,n,o=this._get(e,"altField");o&&(i=this._get(e,"altFormat")||this._get(e,"dateFormat"),s=this._getDate(e),n=this.formatDate(i,s,this._getFormatConfig(e)),t(o).val(n))},noWeekends:function(t){var e=t.getDay();return[e>0&&6>e,""]},iso8601Week:function(t){var e,i=new Date(t.getTime());return i.setDate(i.getDate()+4-(i.getDay()||7)),e=i.getTime(),i.setMonth(0),i.setDate(1),Math.floor(Math.round((e-i)/864e5)/7)+1},parseDate:function(e,i,s){if(null==e||null==i)throw"Invalid arguments";if(i="object"==typeof i?""+i:i+"",""===i)return null;var n,o,a,r,h=0,l=(s?s.shortYearCutoff:null)||this._defaults.shortYearCutoff,c="string"!=typeof l?l:(new Date).getFullYear()%100+parseInt(l,10),u=(s?s.dayNamesShort:null)||this._defaults.dayNamesShort,d=(s?s.dayNames:null)||this._defaults.dayNames,p=(s?s.monthNamesShort:null)||this._defaults.monthNamesShort,f=(s?s.monthNames:null)||this._defaults.monthNames,g=-1,m=-1,_=-1,v=-1,b=!1,y=function(t){var i=e.length>n+1&&e.charAt(n+1)===t;return i&&n++,i},w=function(t){var e=y(t),s="@"===t?14:"!"===t?20:"y"===t&&e?4:"o"===t?3:2,n="y"===t?s:1,o=RegExp("^\\d{"+n+","+s+"}"),a=i.substring(h).match(o);if(!a)throw"Missing number at position "+h;return h+=a[0].length,parseInt(a[0],10)},k=function(e,s,n){var o=-1,a=t.map(y(e)?n:s,function(t,e){return[[e,t]]}).sort(function(t,e){return-(t[1].length-e[1].length)});if(t.each(a,function(t,e){var s=e[1];return i.substr(h,s.length).toLowerCase()===s.toLowerCase()?(o=e[0],h+=s.length,!1):void 0}),-1!==o)return o+1;throw"Unknown name at position "+h},x=function(){if(i.charAt(h)!==e.charAt(n))throw"Unexpected literal at position "+h;h++};for(n=0;e.length>n;n++)if(b)"'"!==e.charAt(n)||y("'")?x():b=!1;else switch(e.charAt(n)){case"d":_=w("d");break;case"D":k("D",u,d);break;case"o":v=w("o");break;case"m":m=w("m");break;case"M":m=k("M",p,f);break;case"y":g=w("y");break;case"@":r=new Date(w("@")),g=r.getFullYear(),m=r.getMonth()+1,_=r.getDate();break;case"!":r=new Date((w("!")-this._ticksTo1970)/1e4),g=r.getFullYear(),m=r.getMonth()+1,_=r.getDate();break;case"'":y("'")?x():b=!0;break;default:x()}if(i.length>h&&(a=i.substr(h),!/^\s+/.test(a)))throw"Extra/unparsed characters found in date: "+a;if(-1===g?g=(new Date).getFullYear():100>g&&(g+=(new Date).getFullYear()-(new Date).getFullYear()%100+(c>=g?0:-100)),v>-1)for(m=1,_=v;;){if(o=this._getDaysInMonth(g,m-1),o>=_)break;m++,_-=o}if(r=this._daylightSavingAdjust(new Date(g,m-1,_)),r.getFullYear()!==g||r.getMonth()+1!==m||r.getDate()!==_)throw"Invalid date";return r},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:1e7*60*60*24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925)),formatDate:function(t,e,i){if(!e)return"";var s,n=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,o=(i?i.dayNames:null)||this._defaults.dayNames,a=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,r=(i?i.monthNames:null)||this._defaults.monthNames,h=function(e){var i=t.length>s+1&&t.charAt(s+1)===e;return i&&s++,i},l=function(t,e,i){var s=""+e;if(h(t))for(;i>s.length;)s="0"+s;return s},c=function(t,e,i,s){return h(t)?s[e]:i[e]},u="",d=!1;if(e)for(s=0;t.length>s;s++)if(d)"'"!==t.charAt(s)||h("'")?u+=t.charAt(s):d=!1;else switch(t.charAt(s)){case"d":u+=l("d",e.getDate(),2);break;case"D":u+=c("D",e.getDay(),n,o);break;case"o":u+=l("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":u+=l("m",e.getMonth()+1,2);break;case"M":u+=c("M",e.getMonth(),a,r);break;case"y":u+=h("y")?e.getFullYear():(10>e.getFullYear()%100?"0":"")+e.getFullYear()%100;break;case"@":u+=e.getTime();break;case"!":u+=1e4*e.getTime()+this._ticksTo1970;break;case"'":h("'")?u+="'":d=!0;break;default:u+=t.charAt(s)}return u},_possibleChars:function(t){var e,i="",s=!1,n=function(i){var s=t.length>e+1&&t.charAt(e+1)===i;return s&&e++,s};for(e=0;t.length>e;e++)if(s)"'"!==t.charAt(e)||n("'")?i+=t.charAt(e):s=!1;else switch(t.charAt(e)){case"d":case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"'":n("'")?i+="'":s=!0;break;default:i+=t.charAt(e)}return i},_get:function(t,e){return void 0!==t.settings[e]?t.settings[e]:this._defaults[e]},_setDateFromField:function(t,e){if(t.input.val()!==t.lastVal){var i=this._get(t,"dateFormat"),s=t.lastVal=t.input?t.input.val():null,n=this._getDefaultDate(t),o=n,a=this._getFormatConfig(t);try{o=this.parseDate(i,s,a)||n}catch(r){s=e?"":s}t.selectedDay=o.getDate(),t.drawMonth=t.selectedMonth=o.getMonth(),t.drawYear=t.selectedYear=o.getFullYear(),t.currentDay=s?o.getDate():0,t.currentMonth=s?o.getMonth():0,t.currentYear=s?o.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),new Date))},_determineDate:function(e,i,s){var n=function(t){var e=new Date;return e.setDate(e.getDate()+t),e},o=function(i){try{return t.datepicker.parseDate(t.datepicker._get(e,"dateFormat"),i,t.datepicker._getFormatConfig(e))}catch(s){}for(var n=(i.toLowerCase().match(/^c/)?t.datepicker._getDate(e):null)||new Date,o=n.getFullYear(),a=n.getMonth(),r=n.getDate(),h=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,l=h.exec(i);l;){switch(l[2]||"d"){case"d":case"D":r+=parseInt(l[1],10);break;case"w":case"W":r+=7*parseInt(l[1],10);break;case"m":case"M":a+=parseInt(l[1],10),r=Math.min(r,t.datepicker._getDaysInMonth(o,a));break;case"y":case"Y":o+=parseInt(l[1],10),r=Math.min(r,t.datepicker._getDaysInMonth(o,a))}l=h.exec(i)}return new Date(o,a,r)},a=null==i||""===i?s:"string"==typeof i?o(i):"number"==typeof i?isNaN(i)?s:n(i):new Date(i.getTime());return a=a&&"Invalid Date"==""+a?s:a,a&&(a.setHours(0),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0)),this._daylightSavingAdjust(a)},_daylightSavingAdjust:function(t){return t?(t.setHours(t.getHours()>12?t.getHours()+2:0),t):null}
vendor: 4,457 bytes, line 11510
11510,_setDate:function(t,e,i){var s=!e,n=t.selectedMonth,o=t.selectedYear,a=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=a.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=a.getMonth(),t.drawYear=t.selectedYear=t.currentYear=a.getFullYear(),n===t.selectedMonth&&o===t.selectedYear||i||this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(s?"":this._formatDate(t))},_getDate:function(t){var e=!t.currentYear||t.input&&""===t.input.val()?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return e},_attachHandlers:function(e){var i=this._get(e,"stepMonths"),s="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map(function(){var e={prev:function(){t.datepicker._adjustDate(s,-i,"M")},next:function(){t.datepicker._adjustDate(s,+i,"M")},hide:function(){t.datepicker._hideDatepicker()},today:function(){t.datepicker._gotoToday(s)},selectDay:function(){return t.datepicker._selectDay(s,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return t.datepicker._selectMonthYear(s,this,"M"),!1},selectYear:function(){return t.datepicker._selectMonthYear(s,this,"Y"),!1}};t(this).on(this.getAttribute("data-event"),e[this.getAttribute("data-handler")])})},_generateHTML:function(t){var e,i,s,n,o,a,r,h,l,c,u,d,p,f,g,m,_,v,b,y,w,k,x,C,D,I,T,P,M,S,H,z,O,A,N,W,E,F,R,L=new Date,B=this._daylightSavingAdjust(new Date(L.getFullYear(),L.getMonth(),L.getDate())),Y=this._get(t,"isRTL"),j=this._get(t,"showButtonPanel"),q=this._get(t,"hideIfNoPrevNext"),K=this._get(t,"navigationAsDateFormat"),U=this._getNumberOfMonths(t),V=this._get(t,"showCurrentAtPos"),X=this._get(t,"stepMonths"),$=1!==U[0]||1!==U[1],G=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),Q=this._getMinMaxDate(t,"min"),J=this._getMinMaxDate(t,"max"),Z=t.drawMonth-V,te=t.drawYear;if(0>Z&&(Z+=12,te--),J)for(e=this._daylightSavingAdjust(new Date(J.getFullYear(),J.getMonth()-U[0]*U[1]+1,J.getDate())),e=Q&&Q>e?Q:e;this._daylightSavingAdjust(new Date(te,Z,1))>e;)Z--,0>Z&&(Z=11,te--);for(t.drawMonth=Z,t.drawYear=te,i=this._get(t,"prevText"),i=K?this.formatDate(i,this._daylightSavingAdjust(new Date(te,Z-X,1)),this._getFormatConfig(t)):i,s=this._canAdjustMonth(t,-1,te,Z)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+(Y?"e":"w")+"'>"+i+"</span></a>":q?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+(Y?"e":"w")+"'>"+i+"</span></a>",n=this._get(t,"nextText"),n=K?this.formatDate(n,this._daylightSavingAdjust(new Date(te,Z+X,1)),this._getFormatConfig(t)):n,o=this._canAdjustMonth(t,1,te,Z)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+n+"'><span class='ui-icon ui-icon-circle-triangle-"+(Y?"w":"e")+"'>"+n+"</span></a>":q?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+n+"'><span class='ui-icon ui-icon-circle-triangle-"+(Y?"w":"e")+"'>"+n+"</span></a>",a=this._get(t,"currentText"),r=this._get(t,"gotoCurrent")&&t.currentDay?G:B,a=K?this.formatDate(a,r,this._getFormatConfig(t)):a,h=t.inline?"":"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(t,"closeText")+"</button>",l=j?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(Y?h:"")+(this._isInRange(t,r)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+a+"</button>":"")+(Y?"":h)+"</div>":"",c=parseInt(this._get(t,"firstDay"),10),c=isNaN(c)?0:c,u=this._get(t,"showWeek"),d=this._get(t,"dayNames"),p=this._get(t,"dayNamesMin"),f=this._get(t,"monthNames"),g=this._get(t,"monthNamesShort"),m=this._get(t,"beforeShowDay"),_=this._get(t,"showOtherMonths"),v=this._get(t,"selectOtherMonths"),b=this._getDefaultDate(t),y="",k=0;U[0]>k;k++){for(x="",this.maxRows=4,C=0;U[1]>C;C++){if(D=this._daylightSavingAdjust(new Date(te,Z,t.selectedDay)),I=" ui-corner-all",T="",$){if(T+="<div class='ui-datepicker-group",U[1]>1)switch(C){case 0:T+=" ui-datepicker-group-first",I=" ui-corner-"+(Y?"right":"left");break;case U[1]-1:T+=" ui-datepicker-group-last",I=" ui-corner-"+(Y?"left":"right");
vendor: 4,590 bytes, line 11510
11510break;default:T+=" ui-datepicker-group-middle",I=""}T+="'>"}for(T+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+I+"'>"+(/all|left/.test(I)&&0===k?Y?o:s:"")+(/all|right/.test(I)&&0===k?Y?s:o:"")+this._generateMonthYearHeader(t,Z,te,Q,J,k>0||C>0,f,g)+"</div><table class='ui-datepicker-calendar'><thead>"+"<tr>",P=u?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"</th>":"",w=0;7>w;w++)M=(w+c)%7,P+="<th scope='col'"+((w+c+6)%7>=5?" class='ui-datepicker-week-end'":"")+">"+"<span title='"+d[M]+"'>"+p[M]+"</span></th>";for(T+=P+"</tr></thead><tbody>",S=this._getDaysInMonth(te,Z),te===t.selectedYear&&Z===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,S)),H=(this._getFirstDayOfMonth(te,Z)-c+7)%7,z=Math.ceil((H+S)/7),O=$?this.maxRows>z?this.maxRows:z:z,this.maxRows=O,A=this._daylightSavingAdjust(new Date(te,Z,1-H)),N=0;O>N;N++){for(T+="<tr>",W=u?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(A)+"</td>":"",w=0;7>w;w++)E=m?m.apply(t.input?t.input[0]:null,[A]):[!0,""],F=A.getMonth()!==Z,R=F&&!v||!E[0]||Q&&Q>A||J&&A>J,W+="<td class='"+((w+c+6)%7>=5?" ui-datepicker-week-end":"")+(F?" ui-datepicker-other-month":"")+(A.getTime()===D.getTime()&&Z===t.selectedMonth&&t._keyEvent||b.getTime()===A.getTime()&&b.getTime()===D.getTime()?" "+this._dayOverClass:"")+(R?" "+this._unselectableClass+" ui-state-disabled":"")+(F&&!_?"":" "+E[1]+(A.getTime()===G.getTime()?" "+this._currentClass:"")+(A.getTime()===B.getTime()?" ui-datepicker-today":""))+"'"+(F&&!_||!E[2]?"":" title='"+E[2].replace(/'/g,"'")+"'")+(R?"":" data-handler='selectDay' data-event='click' data-month='"+A.getMonth()+"' data-year='"+A.getFullYear()+"'")+">"+(F&&!_?" ":R?"<span class='ui-state-default'>"+A.getDate()+"</span>":"<a class='ui-state-default"+(A.getTime()===B.getTime()?" ui-state-highlight":"")+(A.getTime()===G.getTime()?" ui-state-active":"")+(F?" ui-priority-secondary":"")+"' href='#'>"+A.getDate()+"</a>")+"</td>",A.setDate(A.getDate()+1),A=this._daylightSavingAdjust(A);T+=W+"</tr>"}Z++,Z>11&&(Z=0,te++),T+="</tbody></table>"+($?"</div>"+(U[0]>0&&C===U[1]-1?"<div class='ui-datepicker-row-break'></div>":""):""),x+=T}y+=x}return y+=l,t._keyEvent=!1,y},_generateMonthYearHeader:function(t,e,i,s,n,o,a,r){var h,l,c,u,d,p,f,g,m=this._get(t,"changeMonth"),_=this._get(t,"changeYear"),v=this._get(t,"showMonthAfterYear"),b="<div class='ui-datepicker-title'>",y="";if(o||!m)y+="<span class='ui-datepicker-month'>"+a[e]+"</span>";else{for(h=s&&s.getFullYear()===i,l=n&&n.getFullYear()===i,y+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",c=0;12>c;c++)(!h||c>=s.getMonth())&&(!l||n.getMonth()>=c)&&(y+="<option value='"+c+"'"+(c===e?" selected='selected'":"")+">"+r[c]+"</option>");y+="</select>"}if(v||(b+=y+(!o&&m&&_?"":" ")),!t.yearshtml)if(t.yearshtml="",o||!_)b+="<span class='ui-datepicker-year'>"+i+"</span>";else{for(u=this._get(t,"yearRange").split(":"),d=(new Date).getFullYear(),p=function(t){var e=t.match(/c[+\-].*/)?i+parseInt(t.substring(1),10):t.match(/[+\-].*/)?d+parseInt(t,10):parseInt(t,10);return isNaN(e)?d:e},f=p(u[0]),g=Math.max(f,p(u[1]||"")),f=s?Math.max(f,s.getFullYear()):f,g=n?Math.min(g,n.getFullYear()):g,t.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";g>=f;f++)t.yearshtml+="<option value='"+f+"'"+(f===i?" selected='selected'":"")+">"+f+"</option>";t.yearshtml+="</select>",b+=t.yearshtml,t.yearshtml=null}return b+=this._get(t,"yearSuffix"),v&&(b+=(!o&&m&&_?"":" ")+y),b+="</div>"},_adjustInstDate:function(t,e,i){var s=t.selectedYear+("Y"===i?e:0),n=t.selectedMonth+("M"===i?e:0),o=Math.min(t.selectedDay,this._getDaysInMonth(s,n))+("D"===i?e:0),a=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(s,n,o)));t.selectedDay=a.getDate(),t.drawMonth=t.selectedMonth=a.getMonth(),t.drawYear=t.selectedYear=a.getFullYear(),("M"===i||"Y"===i)&&this._notifyChange(t)},_restrictMinMax:function(t,e){var i=this._getMinMaxDate(t,"min"),s=this._getMinMaxDate(t,"max"),n=i&&i>e?i:e;return s&&n>s?s:n},_notifyChange:function(t){var e=this._get(t,"onChangeMonthYear");e&&e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){var e=this._get(t,"numberOfMonths");return null==e?[1,1]:"number"==typeof e?[1,e]:e},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+"Date"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()}
vendor: 5,461 bytes, line 11510
11510,_canAdjustMonth:function(t,e,i,s){var n=this._getNumberOfMonths(t),o=this._daylightSavingAdjust(new Date(i,s+(0>e?e:n[0]*n[1]),1));return 0>e&&o.setDate(this._getDaysInMonth(o.getFullYear(),o.getMonth())),this._isInRange(t,o)},_isInRange:function(t,e){var i,s,n=this._getMinMaxDate(t,"min"),o=this._getMinMaxDate(t,"max"),a=null,r=null,h=this._get(t,"yearRange");return h&&(i=h.split(":"),s=(new Date).getFullYear(),a=parseInt(i[0],10),r=parseInt(i[1],10),i[0].match(/[+\-].*/)&&(a+=s),i[1].match(/[+\-].*/)&&(r+=s)),(!n||e.getTime()>=n.getTime())&&(!o||e.getTime()<=o.getTime())&&(!a||e.getFullYear()>=a)&&(!r||r>=e.getFullYear())},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return e="string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),{shortYearCutoff:e,dayNamesShort:this._get(t,"dayNamesShort"),dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort"),monthNames:this._get(t,"monthNames")}},_formatDate:function(t,e,i,s){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);var n=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(s,i,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,"dateFormat"),n,this._getFormatConfig(t))}}),t.fn.datepicker=function(e){if(!this.length)return this;t.datepicker.initialized||(t(document).on("mousedown",t.datepicker._checkExternalClick),t.datepicker.initialized=!0),0===t("#"+t.datepicker._mainDivId).length&&t("body").append(t.datepicker.dpDiv);var i=Array.prototype.slice.call(arguments,1);return"string"!=typeof e||"isDisabled"!==e&&"getDate"!==e&&"widget"!==e?"option"===e&&2===arguments.length&&"string"==typeof arguments[1]?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(i)):this.each(function(){"string"==typeof e?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this].concat(i)):t.datepicker._attachDatepicker(this,e)}):t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(i))},t.datepicker=new s,t.datepicker.initialized=!1,t.datepicker.uuid=(new Date).getTime(),t.datepicker.version="1.12.0",t.datepicker,t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());var _=!1;t(document).on("mouseup",function(){_=!1}),t.widget("ui.mouse",{version:"1.12.0",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.on("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).on("click."+this.widgetName,function(i){return!0===t.data(i.target,e.widgetName+".preventClickEvent")?(t.removeData(i.target,e.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1):void 0}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){if(!_){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(e),this._mouseDownEvent=e;var i=this,s=1===e.which,n="string"==typeof this.options.cancel&&e.target.nodeName?t(e.target).closest(this.options.cancel).length:!1;return s&&!n&&this._mouseCapture(e)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){i.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=this._mouseStart(e)!==!1,!this._mouseStarted)?(e.preventDefault(),!0):(!0===t.data(e.target,this.widgetName+".preventClickEvent")&&t.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return i._mouseMove(t)},this._mouseUpDelegate=function(t){return i._mouseUp(t)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),_=!0,!0)):!0}},_mouseMove:function(e){if(this._mouseMoved){if(t.ui.ie&&(!document.documentMode||9>document.documentMode)&&!e.button)return this._mouseUp(e);if(!e.which)if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e)}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,e)!==!1,this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&t.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,_=!1,e.preventDefault()},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),t.ui.plugin={add:function(e,i,s){var n,o=t.ui[e].prototype;for(n in s)o.plugins[n]=o.plugins[n]||[],o.plugins[n].push([i,s[n]])}
vendor: 1,928 bytes, line 11510
11510,call:function(t,e,i,s){var n,o=t.plugins[e];if(o&&(s||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(n=0;o.length>n;n++)t.options[o[n][0]]&&o[n][1].apply(t.element,i)}},t.ui.safeBlur=function(e){e&&"body"!==e.nodeName.toLowerCase()&&t(e).trigger("blur")},t.widget("ui.draggable",t.ui.mouse,{version:"1.12.0",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(t,e){this._super(t,e),"handle"===t&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){return(this.helper||this.element).is(".ui-draggable-dragging")?(this.destroyOnClear=!0,void 0):(this._removeHandleClassName(),this._mouseDestroy(),void 0)},_mouseCapture:function(e){var i=this.options;return this._blurActiveElement(e),this.helper||i.disabled||t(e.target).closest(".ui-resizable-handle").length>0?!1:(this.handle=this._getHandle(e),this.handle?(this._blockFrames(i.iframeFix===!0?"iframe":i.iframeFix),!0):!1)},_blockFrames:function(e){this.iframeBlocks=this.document.find(e).map(function(){var e=t(this);return t("<div>").css("position","absolute").appendTo(e.parent()).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).offset(e.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(e){var i=t.ui.safeActiveElement(this.document[0]),s=t(e.target);this._getHandle(e)&&
vendor: 16,526 bytes, lines 11510-11511
11510s.closest(i).length||t.ui.safeBlur(i)},_mouseStart:function(e){var i=this.options;return this.helper=this._createHelper(e),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),t.ui.ddmanager&&(t.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter(function(){return"fixed"===t(this).css("position")}).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(e),this.originalPosition=this.position=this._generatePosition(e,!1),this.originalPageX=e.pageX,this.originalPageY=e.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),this._trigger("start",e)===!1?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!i.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),t.ui.ddmanager&&t.ui.ddmanager.dragStart(this,e),!0)},_refreshOffsets:function(t){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:t.pageX-this.offset.left,top:t.pageY-this.offset.top}},_mouseDrag:function(e,i){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e,!0),this.positionAbs=this._convertPositionTo("absolute"),!i){var s=this._uiHash();if(this._trigger("drag",e,s)===!1)return this._mouseUp(new t.Event("mouseup",e)),!1;this.position=s.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var i=this,s=!1;return t.ui.ddmanager&&!this.options.dropBehaviour&&(s=t.ui.ddmanager.drop(this,e)),this.dropped&&(s=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!s||"valid"===this.options.revert&&s||this.options.revert===!0||t.isFunction(this.options.revert)&&this.options.revert.call(this.element,s)?t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){i._trigger("stop",e)!==!1&&i._clear()}):this._trigger("stop",e)!==!1&&this._clear(),!1},_mouseUp:function(e){return this._unblockFrames(),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),this.handleElement.is(e.target)&&this.element.trigger("focus"),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new t.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(e){return this.options.handle?!!t(e.target).closest(this.element.find(this.options.handle)).length:!0},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(e){var i=this.options,s=t.isFunction(i.helper),n=s?t(i.helper.apply(this.element[0],[e])):"clone"===i.helper?this.element.clone().removeAttr("id"):this.element;return n.parents("body").length||n.appendTo("parent"===i.appendTo?this.element[0].parentNode:i.appendTo),s&&n[0]===this.element[0]&&this._setPositionRelative(),n[0]===this.element[0]||/(fixed|absolute)/.test(n.css("position"))||n.css("position","absolute"),n},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_isRootNode:function(t){return/(html|body)/i.test(t.tagName)||t===this.document[0]},_getParentOffset:function(){var e=this.offsetParent.offset(),i=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==i&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var t=this.element.position(),e=this._isRootNode(this.scrollParent[0]);return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+(e?0:this.scrollParent.scrollTop()),left:t.left-(parseInt(this.helper.css("left"),10)||0)+(e?0:this.scrollParent.scrollLeft())} 11511},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,s,n=this.options,o=this.document[0];return this.relativeContainer=null,n.containment?"window"===n.containment?(this.containment=[t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,t(window).scrollLeft()+t(window).width()-this.helperProportions.width-this.margins.left,t(window).scrollTop()+(t(window).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top],void 0):"document"===n.containment?(this.containment=[0,0,t(o).width()-this.helperProportions.width-this.margins.left,(t(o).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top],void 0):n.containment.constructor===Array?(this.containment=n.containment,void 0):("parent"===n.containment&&(n.containment=this.helper[0].parentNode),i=t(n.containment),s=i[0],s&&(e=/(scroll|auto)/.test(i.css("overflow")),this.containment=[(parseInt(i.css("borderLeftWidth"),10)||0)+(parseInt(i.css("paddingLeft"),10)||0),(parseInt(i.css("borderTopWidth"),10)||0)+(parseInt(i.css("paddingTop"),10)||0),(e?Math.max(s.scrollWidth,s.offsetWidth):s.offsetWidth)-(parseInt(i.css("borderRightWidth"),10)||0)-(parseInt(i.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(s.scrollHeight,s.offsetHeight):s.offsetHeight)-(parseInt(i.css("borderBottomWidth"),10)||0)-(parseInt(i.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=i),void 0):(this.containment=null,void 0)},_convertPositionTo:function(t,e){e||(e=this.position);var i="absolute"===t?1:-1,s=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.offset.scroll.top:s?0:this.offset.scroll.top)*i,left:e.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.offset.scroll.left:s?0:this.offset.scroll.left)*i}},_generatePosition:function(t,e){var i,s,n,o,a=this.options,r=this._isRootNode(this.scrollParent[0]),h=t.pageX,l=t.pageY;return r&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),e&&(this.containment&&(this.relativeContainer?(s=this.relativeContainer.offset(),i=[this.containment[0]+s.left,this.containment[1]+s.top,this.containment[2]+s.left,this.containment[3]+s.top]):i=this.containment,t.pageX-this.offset.click.left<i[0]&&(h=i[0]+this.offset.click.left),t.pageY-this.offset.click.top<i[1]&&(l=i[1]+this.offset.click.top),t.pageX-this.offset.click.left>i[2]&&(h=i[2]+this.offset.click.left),t.pageY-this.offset.click.top>i[3]&&(l=i[3]+this.offset.click.top)),a.grid&&(n=a.grid[1]?this.originalPageY+Math.round((l-this.originalPageY)/a.grid[1])*a.grid[1]:this.originalPageY,l=i?n-this.offset.click.top>=i[1]||n-this.offset.click.top>i[3]?n:n-this.offset.click.top>=i[1]?n-a.grid[1]:n+a.grid[1]:n,o=a.grid[0]?this.originalPageX+Math.round((h-this.originalPageX)/a.grid[0])*a.grid[0]:this.originalPageX,h=i?o-this.offset.click.left>=i[0]||o-this.offset.click.left>i[2]?o:o-this.offset.click.left>=i[0]?o-a.grid[0]:o+a.grid[0]:o),"y"===a.axis&&(h=this.originalPageX),"x"===a.axis&&(l=this.originalPageY)),{top:l-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:r?0:this.offset.scroll.top),left:h-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:r?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(e,i,s){return s=s||this._uiHash(),t.ui.plugin.call(this,e,[i,s,this],!0),/^(drag|start|stop)/.test(e)&&(this.positionAbs=this._convertPositionTo("absolute"),s.offset=this.positionAbs),t.Widget.prototype._trigger.call(this,e,i,s)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.ui.plugin.add("draggable","connectToSortable",{start:function(e,i,s){var n=t.extend({},i,{item:s.element});s.sortables=[],t(s.options.connectToSortable).each(function(){var i=t(this).sortable("instance");i&&!i.options.disabled&&(s.sortables.push(i),i.refreshPositions(),i._trigger("activate",e,n))})},stop:function(e,i,s){var n=t.extend({},i,{item:s.element});s.cancelHelperRemoval=!1,t.each(s.sortables,function(){var t=this;t.isOver?(t.isOver=0,s.cancelHelperRemoval=!0,t.cancelHelperRemoval=!1,t._storedCSS={position:t.placeholder.css("position"),top:t.placeholder.css("top"),left:t.placeholder.css("left")},t._mouseStop(e),t.options.helper=t.options._helper):(t.cancelHelperRemoval=!0,t._trigger("deactivate",e,n))})},drag:function(e,i,s){t.each(s.sortables,function(){var n=!1,o=this;o.positionAbs=s.positionAbs,o.helperProportions=s.helperProportions,o.offset.click=s.offset.click,o._intersectsWith(o.containerCache)&&(n=!0,t.each(s.sortables,function(){return this.positionAbs=s.positionAbs,this.helperProportions=s.helperProportions,this.offset.click=s.offset.click,this!==o&&this._intersectsWith(this.containerCache)&&t.contains(o.element[0],this.element[0])&&(n=!1),n})),n?(o.isOver||(o.isOver=1,s._parent=i.helper.parent(),o.currentItem=i.helper.appendTo(o.element).data("ui-sortable-item",!0),o.options._helper=o.options.helper,o.options.helper=function(){return i.helper[0]},e.target=o.currentItem[0],o._mouseCapture(e,!0),o._mouseStart(e,!0,!0),o.offset.click.top=s.offset.click.top,o.offset.click.left=s.offset.click.left,o.offset.parent.left-=s.offset.parent.left-o.offset.parent.left,o.offset.parent.top-=s.offset.parent.top-o.offset.parent.top,s._trigger("toSortable",e),s.dropped=o.element,t.each(s.sortables,function(){this.refreshPositions()}),s.currentItem=s.element,o.fromOutside=s),o.currentItem&&(o._mouseDrag(e),i.position=o.position)):o.isOver&&(o.isOver=0,o.cancelHelperRemoval=!0,o.options._revert=o.options.revert,o.options.revert=!1,o._trigger("out",e,o._uiHash(o)),o._mouseStop(e,!0),o.options.revert=o.options._revert,o.options.helper=o.options._helper,o.placeholder&&o.placeholder.remove(),i.helper.appendTo(s._parent),s._refreshOffsets(e),i.position=s._generatePosition(e,!0),s._trigger("fromSortable",e),s.dropped=!1,t.each(s.sortables,function(){this.refreshPositions()}))})}}),t.ui.plugin.add("draggable","cursor",{start:function(e,i,s){var n=t("body"),o=s.options;n.css("cursor")&&(o._cursor=n.css("cursor")),n.css("cursor",o.cursor)},stop:function(e,i,s){var n=s.options;n._cursor&&t("body").css("cursor",n._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,i,s){var n=t(i.helper),o=s.options;n.css("opacity")&&(o._opacity=n.css("opacity")),n.css("opacity",o.opacity)},stop:function(e,i,s){var n=s.options;n._opacity&&t(i.helper).css("opacity",n._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(t,e,i){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1)),i.scrollParentNotHidden[0]!==i.document[0]&&"HTML"!==i.scrollParentNotHidden[0].tagName&&(i.overflowOffset=i.scrollParentNotHidden.offset())},drag:function(e,i,s){var n=s.options,o=!1,a=s.scrollParentNotHidden[0],r=s.document[0];a!==r&&"HTML"!==a.tagName?(n.axis&&"x"===n.axis||(s.overflowOffset.top+a.offsetHeight-e.pageY<n.scrollSensitivity?a.scrollTop=o=a.scrollTop+n.scrollSpeed:e.pageY-s.overflowOffset.top<n.scrollSensitivity&&(a.scrollTop=o=a.scrollTop-n.scrollSpeed)),n.axis&&"y"===n.axis||(s.overflowOffset.left+a.offsetWidth-e.pageX<n.scrollSensitivity?a.scrollLeft=o=a.scrollLeft+n.scrollSpeed:e.pageX-s.overflowOffset.left<n.scrollSensitivity&&(a.scrollLeft=o=a.scrollLeft-n.scrollSpeed))):(n.axis&&"x"===n.axis||(e.pageY-t(r).scrollTop()<n.scrollSensitivity?o=t(r).scrollTop(t(r).scrollTop()-n.scrollSpeed):t(window).height()-(e.pageY-t(r).scrollTop())<n.scrollSensitivity&&(o=t(r).scrollTop(t(r).scrollTop()+n.scrollSpeed))),n.axis&&"y"===n.axis||(e.pageX-t(r).scrollLeft()<n.scrollSensitivity?o=t(r).scrollLeft(t(r).scrollLeft()-n.scrollSpeed):t(window).width()-(e.pageX-t(r).scrollLeft())<n.scrollSensitivity&&(o=t(r).scrollLeft(t(r).scrollLeft()+n.scrollSpeed)))),o!==!1&&t.ui.ddmanager&&!n.dropBehaviour&&t.ui.ddmanager.prepareOffsets(s,e)}}),t.ui.plugin.add("draggable","snap",{start:function(e,i,s){var n=s.options;s.snapElements=[],t(n.snap.constructor!==String?n.snap.items||":data(ui-draggable)":n.snap).each(function(){var e=t(this),i=e.offset();this!==s.element[0]&&s.snapElements.push({item:this,width:e.outerWidth(),height:e.outerHeight(),top:i.top,left:i.left})})},drag:function(e,i,s){var n,o,a,r,h,l,c,u,d,p,f=s.options,g=f.snapTolerance,m=i.offset.left,_=m+s.helperProportions.width,v=i.offset.top,b=v+s.helperProportions.height;for(d=s.snapElements.length-1;d>=0;d--)h=s.snapElements[d].left-s.margins.left,l=h+s.snapElements[d].width,c=s.snapElements[d].top-s.margins.top,u=c+s.snapElements[d].height,h-g>_||m>l+g||c-g>b||v>u+g||!t.contains(s.snapElements[d].item.ownerDocument,s.snapElements[d].item)?(s.snapElements[d].snapping&&s.options.snap.release&&s.options.snap.release.call(s.element,e,t.extend(s._uiHash(),{snapItem:s.snapElements[d].item})),s.snapElements[d].snapping=!1):("inner"!==f.snapMode&&(n=g>=Math.abs(c-b),o=g>=Math.abs(u-v),a=g>=Math.abs(h-_),r=g>=Math.abs(l-m),n&&(i.position.top=s._convertPositionTo("relative",{top:c-s.helperProportions.height,left:0}).top),o&&(i.position.top=s._convertPositionTo("relative",{top:u,left:0}).top),a&&(i.position.left=s._convertPositionTo("relative",{top:0,left:h-s.helperProportions.width}).left),r&&(i.position.left=s._convertPositionTo("relative",{top:0,left:l}).left)),p=n||o||a||r,"outer"!==f.snapMode&&(n=g>=Math.abs(c-v),o=g>=Math.abs(u-b),a=g>=Math.abs(h-m),r=g>=Math.abs(l-_),n&&(i.position.top=s._convertPositionTo("relative",{top:c,left:0}).top),o&&(i.position.top=s._convertPositionTo("relative",{top:u-s.helperProportions.height,left:0}).top),a&&(i.position.left=s._convertPositionTo("relative",{top:0,left:h}).left),r&&(i.position.left=s._convertPositionTo("relative",{top:0,left:l-s.helperProportions.width}).left)),!s.snapElements[d].snapping&&(n||o||a||r||p)&&s.options.snap.snap&&s.options.snap.snap.call(s.element,e,t.extend(s._uiHash(),{snapItem:s.snapElements[d].item})),s.snapElements[d].snapping=n||o||a||r||p)}}),t.ui.plugin.add("draggable","stack",{start:function(e,i,s){var n,o=s.options,a=t.makeArray(t(o.stack)).sort(function(e,i){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(i).css("zIndex"),10)||0)});a.length&&(n=parseInt(t(a[0]).css("zIndex"),10)||0,t(a).each(function(e){t(this).css("zIndex",n+e)}),this.css("zIndex",n+a.length))}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,i,s){var n=t(i.helper),o=s.options;n.css("zIndex")&&(o._zIndex=n.css("zIndex")),n.css("zIndex",o.zIndex)},stop:function(e,i,s){var n=s.options;n._zIndex&&t(i.helper).css("zIndex",n._zIndex)}}),t.ui.draggable,t.widget("ui.resizable",t.ui.mouse,{version:"1.12.
115110
vendor: 18,233 bytes, line 11511
11511",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(t){return parseFloat(t)||0},_isNumber:function(t){return!isNaN(parseFloat(t))},_hasScroll:function(e,i){if("hidden"===t(e).css("overflow"))return!1;var s=i&&"left"===i?"scrollLeft":"scrollTop",n=!1;return e[s]>0?!0:(e[s]=1,n=e[s]>0,e[s]=0,n)},_create:function(){var e,i=this.options,s=this;this._addClass("ui-resizable"),t.extend(this,{_aspectRatio:!!i.aspectRatio,aspectRatio:i.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:i.helper||i.ghost||i.animate?i.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(t("<div class='ui-wrapper' style='overflow: hidden;'></div>").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,e={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(e),this.originalElement.css("margin",0),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css(e),this._proportionallyResize()),this._setupHandles(),i.autoHide&&t(this.element).on("mouseenter",function(){i.disabled||(s._removeClass("ui-resizable-autohide"),s._handles.show())}).on("mouseleave",function(){i.disabled||s.resizing||(s._addClass("ui-resizable-autohide"),s._handles.hide())}),this._mouseInit()},_destroy:function(){this._mouseDestroy();var e,i=function(e){t(e).removeData("resizable").removeData("ui-resizable").off(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(i(this.element),e=this.element,this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")}).insertAfter(e),e.remove()),this.originalElement.css("resize",this.originalResizeStyle),i(this.originalElement),this},_setOption:function(t,e){switch(this._super(t,e),t){case"handles":this._removeHandles(),this._setupHandles();break;default:}},_setupHandles:function(){var e,i,s,n,o,a=this.options,r=this;if(this.handles=a.handles||(t(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=t(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),s=this.handles.split(","),this.handles={},i=0;s.length>i;i++)e=t.trim(s[i]),n="ui-resizable-"+e,o=t("<div>"),this._addClass(o,"ui-resizable-handle "+n),o.css({zIndex:a.zIndex}),this.handles[e]=".ui-resizable-"+e,this.element.append(o);this._renderAxis=function(e){var i,s,n,o;e=e||this.element;for(i in this.handles)this.handles[i].constructor===String?this.handles[i]=this.element.children(this.handles[i]).first().show():(this.handles[i].jquery||this.handles[i].nodeType)&&(this.handles[i]=t(this.handles[i]),this._on(this.handles[i],{mousedown:r._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(s=t(this.handles[i],this.element),o=/sw|ne|nw|se|n|s/.test(i)?s.outerHeight():s.outerWidth(),n=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),e.css(n,o),this._proportionallyResize()),this._handles=this._handles.add(this.handles[i])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",function(){r.resizing||(this.className&&(o=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),r.axis=o&&o[1]?o[1]:"se")}),a.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._handles.remove()},_mouseCapture:function(e){var i,s,n=!1;for(i in this.handles)s=t(this.handles[i])[0],(s===e.target||t.contains(s,e.target))&&(n=!0);return!this.options.disabled&&n},_mouseStart:function(e){var i,s,n,o=this.options,a=this.element;return this.resizing=!0,this._renderProxy(),i=this._num(this.helper.css("left")),s=this._num(this.helper.css("top")),o.containment&&(i+=t(o.containment).scrollLeft()||0,s+=t(o.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:i,top:s},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:a.width(),height:a.height()},this.originalSize=this._helper?{width:a.outerWidth(),height:a.outerHeight()}:{width:a.width(),height:a.height()},this.sizeDiff={width:a.outerWidth()-a.width(),height:a.outerHeight()-a.height()},this.originalPosition={left:i,top:s},this.originalMousePosition={left:e.pageX,top:e.pageY},this.aspectRatio="number"==typeof o.aspectRatio?o.aspectRatio:this.originalSize.width/this.originalSize.height||1,n=t(".ui-resizable-"+this.axis).css("cursor"),t("body").css("cursor","auto"===n?this.axis+"-resize":n),this._addClass("ui-resizable-resizing"),this._propagate("start",e),!0},_mouseDrag:function(e){var i,s,n=this.originalMousePosition,o=this.axis,a=e.pageX-n.left||0,r=e.pageY-n.top||0,h=this._change[o];return this._updatePrevProperties(),h?(i=h.apply(this,[e,a,r]),this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio||e.shiftKey)&&(i=this._updateRatio(i,e)),i=this._respectSize(i,e),this._updateCache(i),this._propagate("resize",e),s=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),t.isEmptyObject(s)||(this._updatePrevProperties(),this._trigger("resize",e,this.ui()),this._applyChanges()),!1):!1},_mouseStop:function(e){this.resizing=!1;var i,s,n,o,a,r,h,l=this.options,c=this;return this._helper&&(i=this._proportionallyResizeElements,s=i.length&&/textarea/i.test(i[0].nodeName),n=s&&this._hasScroll(i[0],"left")?0:c.sizeDiff.height,o=s?0:c.sizeDiff.width,a={width:c.helper.width()-o,height:c.helper.height()-n},r=parseFloat(c.element.css("left"))+(c.position.left-c.originalPosition.left)||null,h=parseFloat(c.element.css("top"))+(c.position.top-c.originalPosition.top)||null,l.animate||this.element.css(t.extend(a,{top:h,left:r})),c.helper.height(c.size.height),c.helper.width(c.size.width),this._helper&&!l.animate&&this._proportionallyResize()),t("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var t={};return this.position.top!==this.prevPosition.top&&(t.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(t.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(t.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(t.height=this.size.height+"px"),this.helper.css(t),t},_updateVirtualBoundaries:function(t){var e,i,s,n,o,a=this.options;o={minWidth:this._isNumber(a.minWidth)?a.minWidth:0,maxWidth:this._isNumber(a.maxWidth)?a.maxWidth:1/0,minHeight:this._isNumber(a.minHeight)?a.minHeight:0,maxHeight:this._isNumber(a.maxHeight)?a.maxHeight:1/0},(this._aspectRatio||t)&&(e=o.minHeight*this.aspectRatio,s=o.minWidth/this.aspectRatio,i=o.maxHeight*this.aspectRatio,n=o.maxWidth/this.aspectRatio,e>o.minWidth&&(o.minWidth=e),s>o.minHeight&&(o.minHeight=s),o.maxWidth>i&&(o.maxWidth=i),o.maxHeight>n&&(o.maxHeight=n)),this._vBoundaries=o},_updateCache:function(t){this.offset=this.helper.offset(),this._isNumber(t.left)&&(this.position.left=t.left),this._isNumber(t.top)&&(this.position.top=t.top),this._isNumber(t.height)&&(this.size.height=t.height),this._isNumber(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var e=this.position,i=this.size,s=this.axis;return this._isNumber(t.height)?t.width=t.height*this.aspectRatio:this._isNumber(t.width)&&(t.height=t.width/this.aspectRatio),"sw"===s&&(t.left=e.left+(i.width-t.width),t.top=null),"nw"===s&&(t.top=e.top+(i.height-t.height),t.left=e.left+(i.width-t.width)),t},_respectSize:function(t){var e=this._vBoundaries,i=this.axis,s=this._isNumber(t.width)&&e.maxWidth&&e.maxWidth<t.width,n=this._isNumber(t.height)&&e.maxHeight&&e.maxHeight<t.height,o=this._isNumber(t.width)&&e.minWidth&&e.minWidth>t.width,a=this._isNumber(t.height)&&e.minHeight&&e.minHeight>t.height,r=this.originalPosition.left+this.originalSize.width,h=this.originalPosition.top+this.originalSize.height,l=/sw|nw|w/.test(i),c=/nw|ne|n/.test(i);return o&&(t.width=e.minWidth),a&&(t.height=e.minHeight),s&&(t.width=e.maxWidth),n&&(t.height=e.maxHeight),o&&l&&(t.left=r-e.minWidth),s&&l&&(t.left=r-e.maxWidth),a&&c&&(t.top=h-e.minHeight),n&&c&&(t.top=h-e.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_getPaddingPlusBorderDimensions:function(t){for(var e=0,i=[],s=[t.css("borderTopWidth"),t.css("borderRightWidth"),t.css("borderBottomWidth"),t.css("borderLeftWidth")],n=[t.css("paddingTop"),t.css("paddingRight"),t.css("paddingBottom"),t.css("paddingLeft")];4>e;e++)i[e]=parseFloat(s[e])||0,i[e]+=parseFloat(n[e])||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var t,e=0,i=this.helper||this.element;this._proportionallyResizeElements.length>e;e++)t=this._proportionallyResizeElements[e],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(t)),t.css({height:i.height()-this.outerDimensions.height||0,width:i.width()-this.outerDimensions.width||0})},_renderProxy:function(){var e=this.element,i=this.options;this.elementOffset=e.offset(),this._helper?(this.helper=this.helper||t("<div style='overflow:hidden;'></div>"),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++i.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var i=this.originalSize,s=this.originalPosition;return{left:s.left+e,width:i.width-e}},n:function(t,e,i){var s=this.originalSize,n=this.originalPosition;return{top:n.top+i,height:s.height-i}},s:function(t,e,i){return{height:this.originalSize.height+i}},se:function(e,i,s){return t.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,i,s]))},sw:function(e,i,s){return t.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,i,s]))},ne:function(e,i,s){return t.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,i,s]))},nw:function(e,i,s){return t.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,i,s]))}},_propagate:function(e,i){t.ui.plugin.call(this,e,[i,this.ui()]),"resize"!==e&&this._trigger(e,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),t.ui.plugin.add("resizable","animate",{stop:function(e){var i=t(this).resizable("instance"),s=i.options,n=i._proportionallyResizeElements,o=n.length&&/textarea/i.test(n[0].nodeName),a=o&&i._hasScroll(n[0],"left")?0:i.sizeDiff.height,r=o?0:i.sizeDiff.width,h={width:i.size.width-r,height:i.size.height-a},l=parseFloat(i.element.css("left"))+(i.position.left-i.originalPosition.left)||null,c=parseFloat(i.element.css("top"))+(i.position.top-i.originalPosition.top)||null;i.element.animate(t.extend(h,c&&l?{top:c,left:l}:{}),{duration:s.animateDuration,easing:s.animateEasing,step:function(){var s={width:parseFloat(i.element.css("width")),height:parseFloat(i.element.css("height")),top:parseFloat(i.element.css("top")),left:parseFloat(i.element.css("left"))};n&&n.length&&t(n[0]).css({width:s.width,height:s.height}),i._updateCache(s),i._propagate("resize",e)}})}}),t.ui.plugin.add("resizable","containment",{start:function(){var e,i,s,n,o,a,r,h=t(this).resizable("instance"),l=h.options,c=h.element,u=l.containment,d=u instanceof t?u.get(0):/parent/.test(u)?c.parent().get(0):u;d&&(h.containerElement=t(d),/document/.test(u)||u===document?(h.containerOffset={left:0,top:0},h.containerPosition={left:0,top:0},h.parentData={element:t(document),left:0,top:0,width:t(document).width(),height:t(document).height()||document.body.parentNode.scrollHeight}):(e=t(d),i=[],t(["Top","Right","Left","Bottom"]).each(function(t,s){i[t]=h._num(e.css("padding"+s))}),h.containerOffset=e.offset(),h.containerPosition=e.position(),h.containerSize={height:e.innerHeight()-i[3],width:e.innerWidth()-i[1]},s=h.containerOffset,n=h.containerSize.height,o=h.containerSize.width,a=h._hasScroll(d,"left")?d.scrollWidth:o,r=h._hasScroll(d)?d.scrollHeight:n,h.parentData={element:d,left:s.left,top:s.top,width:a,height:r}))},resize:function(e){var i,s,n,o,a=t(this).resizable("instance"),r=a.options,h=a.containerOffset,l=a.position,c=a._aspectRatio||e.shiftKey,u={top:0,left:0},d=a.containerElement,p=!0;d[0]!==document&&/static/.test(d.css("position"))&&(u=h),l.left<(a._helper?h.left:0)&&(a.size.width=a.size.width+(a._helper?a.position.left-h.left:a.position.left-u.left),c&&(a.size.height=a.size.width/a.aspectRatio,p=!1),a.position.left=r.helper?h.left:0),l.top<(a._helper?h.top:0)&&(a.size.height=a.size.height+(a._helper?a.position.top-h.top:a.position.top),c&&(a.size.width=a.size.height*a.aspectRatio,p=!1),a.position.top=a._helper?h.top:0),n=a.containerElement.get(0)===a.element.parent().get(0),o=/relative|absolute/.test(a.containerElement.css("position")),n&&o?(a.offset.left=a.parentData.left+a.position.left,a.offset.top=a.parentData.top+a.position.top):(a.offset.left=a.element.offset().left,a.offset.top=a.element.offset().top),i=Math.abs(a.sizeDiff.width+(a._helper?a.offset.left-u.left:a.offset.left-h.left)),s=Math.abs(a.sizeDiff.height+(a._helper?a.offset.top-u.top:a.offset.top-h.top)),i+a.size.width>=a.parentData.width&&(a.size.width=a.parentData.width-i,c&&(a.size.height=a.size.width/a.aspectRatio,p=!1)),s+a.size.height>=a.parentData.height&&(a.size.height=a.parentData.height-s,c&&(a.size.width=a.size.height*a.aspectRatio,p=!1)),p||(a.position.left=a.prevPosition.left,a.position.top=a.prevPosition.top,a.size.width=a.prevSize.width,a.size.height=a.prevSize.height)},stop:function(){var e=t(this).resizable("instance"),i=e.options,s=e.containerOffset,n=e.containerPosition,o=e.containerElement,a=t(e.helper),r=a.offset(),h=a.outerWidth()-e.sizeDiff.width,l=a.outerHeight()-e.sizeDiff.height;e._helper&&!i.animate&&/relative/.test(o.css("position"))&&t(this).css({left:r.left-n.left-s.left,width:h,height:l}),e._helper&&!i.animate&&/static/.test(o.css("position"))&&t(this).css({left:r.left-n.left-s.left,width:h,height:l})}}),t.ui.plugin.add("resizable","alsoResize",{start:function(){var e=t(this).resizable("instance"),i=e.options;t(i.alsoResize).each(function(){var e=t(this);e.data("ui-resizable-alsoresize",{width:parseFloat(e.width()),height:parseFloat(e.height()),left:parseFloat(e.css("left")),top:parseFloat(e.css("top"))})})},resize:function(e,i){var s=t(this).resizable("instance"),n=s.options,o=s.originalSize,a=s.originalPosition,r={height:s.size.height-o.height||0,width:s.size.width-o.width||0,top:s.position.top-a.top||0,left:s.position.left-a.left||0};t(n.alsoResize).each(function(){var e=t(this),s=t(this).data("ui-resizable-alsoresize"),n={},o=e.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];t.each(o,function(t,e){var i=(s[e]||0)+(r[e]||0);i&&i>=0&&(n[e]=i||null)}),e.css(n)})},stop:function(){t(this).removeData("ui-resizable-alsoresize")}}),t.ui.plugin.add("resizable","ghost",{start:function(){var e=t(this).resizable("instance"),i=e.size;e.ghost=e.originalElement.clone(),e.ghost.css({opacity:.25,display:"block",position:"relative",height:i.height,width:i.width,margin:0,left:0,top:0}),e._addClass(e.ghost,"ui-resizable-ghost"),t.uiBackCompat!==!1&&"string"==typeof e.options.ghost&&e.ghost.addClass(this.options.ghost),e.ghost.appendTo(e.helper)},resize:function(){var e=t(this).resizable("instance");e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=t(this).resizable("instance");e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}}),t.ui.plugin.add("resizable","grid",{resize:function(){var e,i=t(this).resizable("instance"),s=i.options,n=i.size,o=i.originalSize,a=i.originalPosition,r=i.axis,h="number"==typeof s.grid?[s.grid,s.grid]:s.grid,l=h[0]||1,c=h[1]||1,u=Math.round((n.width-o.width)/l)*l,d=Math.round((n.height-o.height)/c)*c,p=o.width+u,f=o.height+d,g=s.maxWidth&&p>s.maxWidth,m=s.maxHeight&&f>s.maxHeight,_=s.minWidth&&s.minWidth>p,v=s.minHeight&&s.minHeight>f;s.grid=h,_&&(p+=l),v&&(f+=c),g&&(p-=l),m&&(f-=c),/^(se|s|e)$/.test(r)?(i.size.width=p,i.size.height=f):/^(ne)$/.test(r)?(i.size.width=p,i.size.height=f,i.position.top=a.top-d):/^(sw)$/.test(r)?(i.size.width=p,i.size.height=f,i.position.left=a.left-u):((0>=f-c||0>=p-l)&&(e=i._getPaddingPlusBorderDimensions(this)),f-c>0?(i.size.height=f,i.position.top=a.top-d):(f=c-e.height,i.size.height=f,i.position.top=a.top+o.height-f),p-l>0?(i.size.width=p,i.position.left=a.left-u):(p=l-e.width,i.size.width=p,i.position.left=a.left+o.width-p))}}),t.ui.resizable,t.widget("ui.dialog",{version:"1.12.
vendor: 12,431 bytes, lines 11511-11512
115110",options:{appendTo:"body",autoOpen:!0,buttons:[],classes:{"ui-dialog":"ui-corner-all","ui-dialog-titlebar":"ui-corner-all"},closeOnEscape:!0,closeText:"Close",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(e){var i=t(this).css(e).offset().top;0>i&&t(this).css("top",e.top-i)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),null==this.options.title&&null!=this.originalTitle&&(this.options.title=this.originalTitle),this.options.disabled&&(this.options.disabled=!1),this._createWrapper(),this.element.show().removeAttr("title").appendTo(this.uiDialog),this._addClass("ui-dialog-content","ui-widget-content"),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&t.fn.draggable&&this._makeDraggable(),this.options.resizable&&t.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var e=this.options.appendTo;return e&&(e.jquery||e.nodeType)?t(e):this.document.find(e||"body").eq(0)},_destroy:function(){var t,e=this.originalPosition;this._untrackInstance(),this._destroyOverlay(),this.element.removeUniqueId().css(this.originalCss).detach(),this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),t=e.parent.children().eq(e.index),t.length&&t[0]!==this.element[0]?t.before(this.element):e.parent.append(this.element)},widget:function(){return this.uiDialog 11512},disable:t.noop,enable:t.noop,close:function(e){var i=this;this._isOpen&&this._trigger("beforeClose",e)!==!1&&(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),this.opener.filter(":focusable").trigger("focus").length||t.ui.safeBlur(t.ui.safeActiveElement(this.document[0])),this._hide(this.uiDialog,this.options.hide,function(){i._trigger("close",e)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(e,i){var s=!1,n=this.uiDialog.siblings(".ui-front:visible").map(function(){return+t(this).css("z-index")}).get(),o=Math.max.apply(null,n);return o>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",o+1),s=!0),s&&!i&&this._trigger("focus",e),s},open:function(){var e=this;return this._isOpen?(this._moveToTop()&&this._focusTabbable(),void 0):(this._isOpen=!0,this.opener=t(t.ui.safeActiveElement(this.document[0])),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,function(){e._focusTabbable(),e._trigger("focus")}),this._makeFocusTarget(),this._trigger("open"),void 0)},_focusTabbable:function(){var t=this._focusedElement;t||(t=this.element.find("[autofocus]")),t.length||(t=this.element.find(":tabbable")),t.length||(t=this.uiDialogButtonPane.find(":tabbable")),t.length||(t=this.uiDialogTitlebarClose.filter(":tabbable")),t.length||(t=this.uiDialog),t.eq(0).trigger("focus")},_keepFocus:function(e){function i(){var e=t.ui.safeActiveElement(this.document[0]),i=this.uiDialog[0]===e||t.contains(this.uiDialog[0],e);i||this._focusTabbable()}e.preventDefault(),i.call(this),this._delay(i)},_createWrapper:function(){this.uiDialog=t("<div>").hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._addClass(this.uiDialog,"ui-dialog","ui-widget ui-widget-content ui-front"),this._on(this.uiDialog,{keydown:function(e){if(this.options.closeOnEscape&&!e.isDefaultPrevented()&&e.keyCode&&e.keyCode===t.ui.keyCode.ESCAPE)return e.preventDefault(),this.close(e),void 0;if(e.keyCode===t.ui.keyCode.TAB&&!e.isDefaultPrevented()){var i=this.uiDialog.find(":tabbable"),s=i.filter(":first"),n=i.filter(":last");e.target!==n[0]&&e.target!==this.uiDialog[0]||e.shiftKey?e.target!==s[0]&&e.target!==this.uiDialog[0]||!e.shiftKey||(this._delay(function(){n.trigger("focus")}),e.preventDefault()):(this._delay(function(){s.trigger("focus")}),e.preventDefault())}},mousedown:function(t){this._moveToTop(t)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var e;this.uiDialogTitlebar=t("<div>"),this._addClass(this.uiDialogTitlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix"),this._on(this.uiDialogTitlebar,{mousedown:function(e){t(e.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}}),this.uiDialogTitlebarClose=t("<button type='button'></button>").button({label:t("<a>").text(this.options.closeText).html(),icon:"ui-icon-closethick",showLabel:!1}).appendTo(this.uiDialogTitlebar),this._addClass(this.uiDialogTitlebarClose,"ui-dialog-titlebar-close"),this._on(this.uiDialogTitlebarClose,{click:function(t){t.preventDefault(),this.close(t)}}),e=t("<span>").uniqueId().prependTo(this.uiDialogTitlebar),this._addClass(e,"ui-dialog-title"),this._title(e),this.uiDialogTitlebar.prependTo(this.uiDialog),this.uiDialog.attr({"aria-labelledby":e.attr("id")})},_title:function(t){this.options.title?t.text(this.options.title):t.html(" ")},_createButtonPane:function(){this.uiDialogButtonPane=t("<div>"),this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix"),this.uiButtonSet=t("<div>").appendTo(this.uiDialogButtonPane),this._addClass(this.uiButtonSet,"ui-dialog-buttonset"),this._createButtons()},_createButtons:function(){var e=this,i=this.options.buttons;return this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),t.isEmptyObject(i)||t.isArray(i)&&!i.length?(this._removeClass(this.uiDialog,"ui-dialog-buttons"),void 0):(t.each(i,function(i,s){var n,o;s=t.isFunction(s)?{click:s,text:i}:s,s=t.extend({type:"button"},s),n=s.click,o={icon:s.icon,iconPosition:s.iconPosition,showLabel:s.showLabel},delete s.click,delete s.icon,delete s.iconPosition,delete s.showLabel,t("<button></button>",s).button(o).appendTo(e.uiButtonSet).on("click",function(){n.apply(e.element[0],arguments)})}),this._addClass(this.uiDialog,"ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog),void 0)},_makeDraggable:function(){function e(t){return{position:t.position,offset:t.offset}}var i=this,s=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(s,n){i._addClass(t(this),"ui-dialog-dragging"),i._blockFrames(),i._trigger("dragStart",s,e(n))},drag:function(t,s){i._trigger("drag",t,e(s))},stop:function(n,o){var a=o.offset.left-i.document.scrollLeft(),r=o.offset.top-i.document.scrollTop();s.position={my:"left top",at:"left"+(a>=0?"+":"")+a+" "+"top"+(r>=0?"+":"")+r,of:i.window},i._removeClass(t(this),"ui-dialog-dragging"),i._unblockFrames(),i._trigger("dragStop",n,e(o))}})},_makeResizable:function(){function e(t){return{originalPosition:t.originalPosition,originalSize:t.originalSize,position:t.position,size:t.size}}var i=this,s=this.options,n=s.resizable,o=this.uiDialog.css("position"),a="string"==typeof n?n:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:s.maxWidth,maxHeight:s.maxHeight,minWidth:s.minWidth,minHeight:this._minHeight(),handles:a,start:function(s,n){i._addClass(t(this),"ui-dialog-resizing"),i._blockFrames(),i._trigger("resizeStart",s,e(n))},resize:function(t,s){i._trigger("resize",t,e(s))},stop:function(n,o){var a=i.uiDialog.offset(),r=a.left-i.document.scrollLeft(),h=a.top-i.document.scrollTop();s.height=i.uiDialog.height(),s.width=i.uiDialog.width(),s.position={my:"left top",at:"left"+(r>=0?"+":"")+r+" "+"top"+(h>=0?"+":"")+h,of:i.window},i._removeClass(t(this),"ui-dialog-resizing"),i._unblockFrames(),i._trigger("resizeStop",n,e(o))}}).css("position",o)},_trackFocus:function(){this._on(this.widget(),{focusin:function(e){this._makeFocusTarget(),this._focusedElement=t(e.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var e=this._trackingInstances(),i=t.inArray(this,e);-1!==i&&e.splice(i,1)},_trackingInstances:function(){var t=this.document.data("ui-dialog-instances");return t||(t=[],this.document.data("ui-dialog-instances",t)),t},_minHeight:function(){var t=this.options;return"auto"===t.height?t.minHeight:Math.min(t.minHeight,t.height)},_position:function(){var t=this.uiDialog.is(":visible");t||this.uiDialog.show(),this.uiDialog.position(this.options.position),t||this.uiDialog.hide()},_setOptions:function(e){var i=this,s=!1,n={};t.each(e,function(t,e){i._setOption(t,e),t in i.sizeRelatedOptions&&(s=!0),t in i.resizableRelatedOptions&&(n[t]=e)}),s&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",n)},_setOption:function(e,i){var s,n,o=this.uiDialog;"disabled"!==e&&(this._super(e,i),"appendTo"===e&&this.uiDialog.appendTo(this._appendTo()),"buttons"===e&&this._createButtons(),"closeText"===e&&this.uiDialogTitlebarClose.button({label:t("<a>").text(""+this.options.closeText).html()}),"draggable"===e&&(s=o.is(":data(ui-draggable)"),s&&!i&&o.draggable("destroy"),!s&&i&&this._makeDraggable()),"position"===e&&this._position(),"resizable"===e&&(n=o.is(":data(ui-resizable)"),n&&!i&&o.resizable("destroy"),n&&"string"==typeof i&&o.resizable("option","handles",i),n||i===!1||this._makeResizable()),"title"===e&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var t,e,i,s=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),s.minWidth>s.width&&(s.width=s.minWidth),t=this.uiDialog.css({height:"auto",width:s.width}).outerHeight(),e=Math.max(0,s.minHeight-t),i="number"==typeof s.maxHeight?Math.max(0,s.maxHeight-t):"none","auto"===s.height?this.element.css({minHeight:e,maxHeight:i,height:"auto"}):this.element.height(Math.max(0,s.height-t)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var e=t(this);return t("<div>").css({position:"absolute",width:e.outerWidth(),height:e.outerHeight()}).appendTo(e.parent()).offset(e.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(e){return t(e.target).closest(".ui-dialog").length?!0:!!t(e.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var e=!0;this._delay(function(){e=!1}),this.document.data("ui-dialog-overlays")||this._on(this.document,{focusin:function(t){e||this._allowInteraction(t)||(t.preventDefault(),this._trackingInstances()[0]._focusTabbable())}}),this.overlay=t("<div>").appendTo(this._appendTo()),this._addClass(this.overlay,null,"ui-widget-overlay ui-front"),this._on(this.overlay,{mousedown:"_keepFocus"}),this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1)}},_destroyOverlay:function(){if(this.options.modal&&this.overlay){var t=this.document.data("ui-dialog-overlays")-1;t?this.document.data("ui-dialog-overlays",t):(this._off(this.document,"focusin"),this.document.removeData("ui-dialog-overlays")),this.overlay.remove(),this.overlay=null}}}),t.uiBackCompat!==!1&&t.widget("ui.dialog",t.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super(),this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(t,e){"dialogClass"===t&&this.uiDialog.removeClass(this.options.dialogClass).addClass(e),this._superApply(arguments)}}),t.ui.dialog,t.widget("ui.droppable",{version:"1.12.0
vendor: 6,308 bytes, line 11512
11512",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var e,i=this.options,s=i.accept;this.isover=!1,this.isout=!0,this.accept=t.isFunction(s)?s:function(t){return t.is(s)},this.proportions=function(){return arguments.length?(e=arguments[0],void 0):e?e:e={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight}},this._addToManager(i.scope),i.addClasses&&this._addClass("ui-droppable")},_addToManager:function(e){t.ui.ddmanager.droppables[e]=t.ui.ddmanager.droppables[e]||[],t.ui.ddmanager.droppables[e].push(this)},_splice:function(t){for(var e=0;t.length>e;e++)t[e]===this&&t.splice(e,1)},_destroy:function(){var e=t.ui.ddmanager.droppables[this.options.scope];this._splice(e)},_setOption:function(e,i){if("accept"===e)this.accept=t.isFunction(i)?i:function(t){return t.is(i)};else if("scope"===e){var s=t.ui.ddmanager.droppables[this.options.scope];this._splice(s),this._addToManager(i)}this._super(e,i)},_activate:function(e){var i=t.ui.ddmanager.current;this._addActiveClass(),i&&this._trigger("activate",e,this.ui(i))},_deactivate:function(e){var i=t.ui.ddmanager.current;this._removeActiveClass(),i&&this._trigger("deactivate",e,this.ui(i))},_over:function(e){var i=t.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this._addHoverClass(),this._trigger("over",e,this.ui(i)))},_out:function(e){var i=t.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this._removeHoverClass(),this._trigger("out",e,this.ui(i)))},_drop:function(e,i){var s=i||t.ui.ddmanager.current,n=!1;return s&&(s.currentItem||s.element)[0]!==this.element[0]?(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var i=t(this).droppable("instance");return i.options.greedy&&!i.options.disabled&&i.options.scope===s.options.scope&&i.accept.call(i.element[0],s.currentItem||s.element)&&v(s,t.extend(i,{offset:i.element.offset()}),i.options.tolerance,e)?(n=!0,!1):void 0}),n?!1:this.accept.call(this.element[0],s.currentItem||s.element)?(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",e,this.ui(s)),this.element):!1):!1},ui:function(t){return{draggable:t.currentItem||t.element,helper:t.helper,position:t.position,offset:t.positionAbs}},_addHoverClass:function(){this._addClass("ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")}});var v=t.ui.intersect=function(){function t(t,e,i){return t>=e&&e+i>t}return function(e,i,s,n){if(!i.offset)return!1;var o=(e.positionAbs||e.position.absolute).left+e.margins.left,a=(e.positionAbs||e.position.absolute).top+e.margins.top,r=o+e.helperProportions.width,h=a+e.helperProportions.height,l=i.offset.left,c=i.offset.top,u=l+i.proportions().width,d=c+i.proportions().height;switch(s){case"fit":return o>=l&&u>=r&&a>=c&&d>=h;case"intersect":return o+e.helperProportions.width/2>l&&u>r-e.helperProportions.width/2&&a+e.helperProportions.height/2>c&&d>h-e.helperProportions.height/2;case"pointer":return t(n.pageY,c,i.proportions().height)&&t(n.pageX,l,i.proportions().width);case"touch":return(a>=c&&d>=a||h>=c&&d>=h||c>a&&h>d)&&(o>=l&&u>=o||r>=l&&u>=r||l>o&&r>u);default:return!1}}}();t.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(e,i){var s,n,o=t.ui.ddmanager.droppables[e.options.scope]||[],a=i?i.type:null,r=(e.currentItem||e.element).find(":data(ui-droppable)").addBack();t:for(s=0;o.length>s;s++)if(!(o[s].options.disabled||e&&!o[s].accept.call(o[s].element[0],e.currentItem||e.element))){for(n=0;r.length>n;n++)if(r[n]===o[s].element[0]){o[s].proportions().height=0;continue t}o[s].visible="none"!==o[s].element.css("display"),o[s].visible&&("mousedown"===a&&o[s]._activate.call(o[s],i),o[s].offset=o[s].element.offset(),o[s].proportions({width:o[s].element[0].offsetWidth,height:o[s].element[0].offsetHeight}))}},drop:function(e,i){var s=!1;return t.each((t.ui.ddmanager.droppables[e.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&v(e,this,this.options.tolerance,i)&&(s=this._drop.call(this,i)||s),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,i)))}),s},dragStart:function(e,i){e.element.parentsUntil("body").on("scroll.droppable",function(){e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)})},drag:function(e,i){e.options.refreshPositions&&t.ui.ddmanager.prepareOffsets(e,i),t.each(t.ui.ddmanager.droppables[e.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var s,n,o,a=v(e,this,this.options.tolerance,i),r=!a&&this.isover?"isout":a&&!this.isover?"isover":null;r&&(this.options.greedy&&(n=this.options.scope,o=this.element.parents(":data(ui-droppable)").filter(function(){return t(this).droppable("instance").options.scope===n}),o.length&&(s=t(o[0]).droppable("instance"),s.greedyChild="isover"===r)),s&&"isover"===r&&(s.isover=!1,s.isout=!0,s._out.call(s,i)),this[r]=!0,this["isout"===r?"isover":"isout"]=!1,this["isover"===r?"_over":"_out"].call(this,i),s&&"isout"===r&&(s.isout=!1,s.isover=!0,s._over.call(s,i)))}})},dragStop:function(e,i){e.element.parentsUntil("body").off("scroll.droppable"),e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)}},t.uiBackCompat!==!1&&t.widget("ui.droppable",t.ui.droppable,{options:{hoverClass:!1,activeClass:!1},_addActiveClass:function(){this._super(),this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super(),this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super(),this.options.hoverClass&&this.element.addClass(this.options.hoverClass)},_removeHoverClass:function(){this._super(),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}}),t.ui.droppable,t.widget("ui.progressbar",{version:"1.12.
115120",options:{classes:{"ui-progressbar":"ui-corner-all","ui-progressbar-value":"ui-corner-left","ui-progressbar-complete":"ui-corner-right"},max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.attr({role:"progressbar","aria-valuemin":this.min}),this._addClass("ui-progressbar","ui-widget ui-widget-content"),this.valueDiv=t("<div>").appendTo(this.element),this._addClass(this.valueDiv,"ui-progressbar-value","ui-widget-header"),this._refreshValue()},_destroy:function(){this.element.removeAttr("role aria-valuemin aria-valuemax aria-valuenow"),this.valueDiv.remove()},value:function(t){return void 0===t?this.options.value:(this.options.value=this._constrainedValue(t),this._refreshValue(),void 0)},_constrainedValue:function(t){return void 0===t&&(t=this.options.value),this.indeterminate=t===!1,"number"!=typeof t&&(t=0),this.indeterminate?!1:Math.min(this.options.max,Math.max(this.min,t))},_setOptions:function(t){var e=t.value;delete t.value,this._super(t),this.options.value=this._constrainedValue(e),this._refreshValue()},_setOption:function(t,e){"max"===t&&(e=Math.max(this.min,e)),this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t),this._toggleClass(null,"ui-state-disabled",!!t)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var e=this.options.value,i=this._percentage();this.valueDiv.toggle(this.indeterminate||e>this.min).width(i.toFixed(0)+"%"),this._toggleClass(this.valueDiv,"ui-progressbar-complete",null,e===this.options.max)._toggleClass("ui-progressbar-indeterminate",null,this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=t("<div>").appendTo(this.valueDiv),this._addClass(this.overlayDiv,"ui-progressbar-overlay"))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":e}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==e&&(this.oldValue=e,this._trigger("change")),e===this.options.max&&this._trigger("complete")}}),t.widget("ui.selectable",t.ui.mouse,{version:"1.12.0",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var e=this;this._addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){e.elementPos=t(e.element[0]).offset(),e.selectees=t(e.options.filter,e.element[0]),e._addClass(e.selectees,"ui-selectee"),e.selectees.each(function(){var i=t(this),s=i.offset(),n={left:s.left-e.elementPos.left,top:s.top-e.elementPos.top};t.data(this,"selectable-item",{element:this,$element:i,left:n.left,top:n.top,right:n.left+i.outerWidth(),bottom:n.top+i.outerHeight(),startselected:!1,selected:i.hasClass("ui-selected"),selecting:i.hasClass("ui-selecting"),unselecting:i.hasClass("ui-unselecting")})})},this.refresh(),this._mouseInit(),this.helper=t("<div>"),this._addClass(this.helper,"ui-selectable-helper")},_destroy:function(){this.selectees.removeData("selectable-item"),this._mouseDestroy()},_mouseStart:function(e){var i=this,s=this.options;this.opos=[e.pageX,e.pageY],this.elementPos=t(this.element[0]).offset(),this.options.disabled||(this.selectees=t(s.filter,this.element[0]),this._trigger("start",e),t(s.appendTo).append(this.helper),this.helper.css({left:e.pageX,top:e.pageY,width:0,height:0}),s.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var s=t.data(this,"selectable-item");s.startselected=!0,e.metaKey||e.ctrlKey||(i._removeClass(s.$element,"ui-selected"),s.selected=!1,i._addClass(s.$element,"ui-unselecting"),s.unselecting=!0,i._trigger("unselecting",e,{unselecting:s.element}))}),t(e.target).parents().addBack().each(function(){var s,n=t.data(this,"selectable-item");return n?(s=!e.metaKey&&!e.ctrlKey||!n.$element.hasClass("ui-selected"),i._removeClass(n.$element,s?"ui-unselecting":"ui-selected")._addClass(n.$element,s?"ui-selecting":"ui-unselecting"),n.unselecting=!s,n.selecting=s,n.selected=s,s?i._trigger("selecting",e,{selecting:n.element}):i._trigger("unselecting",e,{unselecting:n.element}),!1):void 0}))},_mouseDrag:function(e){if(this.dragged=!0,!this.options.disabled){var i,s=this,n=this.options,o=this.opos[0],a=this.opos[1],r=e.pageX,h=e.pageY;return o>r&&(i=r,r=o,o=i),a>h&&(i=h,h=a,a=i),this.helper.css({left:o,top:a,width:r-o,height:h-a}),this.selectees.each(function(){var i=t.data(this,"selectable-item"),l=!1,c={};i&&i.element!==s.element[0]&&(c.left=i.left+s.elementPos.left,c.right=i.right+s.elementPos.left,c.top=i.top+s.elementPos.top,c.bottom=i.bottom+s.elementPos.top,"touch"===n.tolerance?l=!(c.left>r||o>c.right||c.top>h||a>c.bottom):"fit"===n.tolerance&&(l=c.left>o&&r>c.right&&c.top>a&&h>c.bottom),l?(i.selected&&(s._removeClass(i.$element,"ui-selected"),i.selected=!1),i.unselecting&&(s._removeClass(i.$element,"ui-unselecting"),i.unselecting=!1),i.selecting||(s._addClass(i.$element,"ui-selecting"),i.selecting=!0,s._trigger("selecting",e,{selecting:i.element}))):(i.selecting&&((e.metaKey||e.ctrlKey)&&i.startselected?(s._removeClass(i.$element,"ui-selecting"),i.selecting=!1,s._addClass(i.$element,"ui-selected"),i.selected=!0):(s._removeClass(i.$element,"ui-selecting"),i.selecting=!1,i.startselected&&(s._addClass(i.$element,"ui-unselecting"),i.unselecting=!0),s._trigger("unselecting",e,{unselecting:i.element}))),i.selected&&(e.metaKey||e.ctrlKey||i.startselected||(s._removeClass(i.$element,"ui-selected"),i.selected=!1,s._addClass(i.$element,"ui-unselecting"),i.unselecting=!0,s._trigger("unselecting",e,{unselecting:i.element})))))}),!1}},_mouseStop:function(e){var i=this;return this.dragged=!1,t(".ui-unselecting",this.element[0]).each(function(){var s=t.data(this,"selectable-item");i._removeClass(s.$element,"ui-unselecting"),s.unselecting=!1,s.startselected=!1,i._trigger("unselected",e,{unselected:s.element})}),t(".ui-selecting",this.element[0]).each(function(){var s=t.data(this,"selectable-item");i._removeClass(s.$element,"ui-selecting")._addClass(s.$element,"ui-selected"),s.selecting=!1,s.selected=!0,s.startselected=!0,i._trigger("selected",e,{selected:s.element})}),this._trigger("stop",e),this.helper.remove(),!1}}),t.widget("ui.selectmenu",[t.ui.formResetMixin,{version:"1.12.0
vendor: 4,971 bytes, line 11512
11512",defaultElement:"<select>",options:{appendTo:null,classes:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"},disabled:null,icons:{button:"ui-icon-triangle-1-s"},position:{my:"left top",at:"left bottom",collision:"none"},width:!1,change:null,close:null,focus:null,open:null,select:null},_create:function(){var e=this.element.uniqueId().attr("id");this.ids={element:e,button:e+"-button",menu:e+"-menu"},this._drawButton(),this._drawMenu(),this._bindFormResetHandler(),this._rendered=!1,this.menuItems=t()},_drawButton:function(){var e,i=this,s=this._parseOption(this.element.find("option:selected"),this.element[0].selectedIndex);this.labels=this.element.labels().attr("for",this.ids.button),this._on(this.labels,{click:function(t){this.button.focus(),t.preventDefault()}}),this.element.hide(),this.button=t("<span>",{tabindex:this.options.disabled?-1:0,id:this.ids.button,role:"combobox","aria-expanded":"false","aria-autocomplete":"list","aria-owns":this.ids.menu,"aria-haspopup":"true",title:this.element.attr("title")}).insertAfter(this.element),this._addClass(this.button,"ui-selectmenu-button ui-selectmenu-button-closed","ui-button ui-widget"),e=t("<span>").appendTo(this.button),this._addClass(e,"ui-selectmenu-icon","ui-icon "+this.options.icons.button),this.buttonItem=this._renderButtonItem(s).appendTo(this.button),this.options.width!==!1&&this._resizeButton(),this._on(this.button,this._buttonEvents),this.button.one("focusin",function(){i._rendered||i._refreshMenu()})},_drawMenu:function(){var e=this;this.menu=t("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu}),this.menuWrap=t("<div>").append(this.menu),this._addClass(this.menuWrap,"ui-selectmenu-menu","ui-front"),this.menuWrap.appendTo(this._appendTo()),this.menuInstance=this.menu.menu({classes:{"ui-menu":"ui-corner-bottom"},role:"listbox",select:function(t,i){t.preventDefault(),e._setSelection(),e._select(i.item.data("ui-selectmenu-item"),t)},focus:function(t,i){var s=i.item.data("ui-selectmenu-item");null!=e.focusIndex&&s.index!==e.focusIndex&&(e._trigger("focus",t,{item:s}),e.isOpen||e._select(s,t)),e.focusIndex=s.index,e.button.attr("aria-activedescendant",e.menuItems.eq(s.index).attr("id"))}}).menu("instance"),this.menuInstance._off(this.menu,"mouseleave"),this.menuInstance._closeOnDocumentClick=function(){return!1},this.menuInstance._isDivider=function(){return!1}},refresh:function(){this._refreshMenu(),this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(this._getSelectedItem().data("ui-selectmenu-item")||{})),null===this.options.width&&this._resizeButton()},_refreshMenu:function(){var t,e=this.element.find("option");this.menu.empty(),this._parseOptions(e),this._renderMenu(this.menu,this.items),this.menuInstance.refresh(),this.menuItems=this.menu.find("li").not(".ui-selectmenu-optgroup").find(".ui-menu-item-wrapper"),this._rendered=!0,e.length&&(t=this._getSelectedItem(),this.menuInstance.focus(null,t),this._setAria(t.data("ui-selectmenu-item")),this._setOption("disabled",this.element.prop("disabled")))},open:function(t){this.options.disabled||(this._rendered?(this._removeClass(this.menu.find(".ui-state-active"),null,"ui-state-active"),this.menuInstance.focus(null,this._getSelectedItem())):this._refreshMenu(),this.menuItems.length&&(this.isOpen=!0,this._toggleAttr(),this._resizeMenu(),this._position(),this._on(this.document,this._documentClick),this._trigger("open",t)))},_position:function(){this.menuWrap.position(t.extend({of:this.button},this.options.position))},close:function(t){this.isOpen&&(this.isOpen=!1,this._toggleAttr(),this.range=null,this._off(this.document),this._trigger("close",t))},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderButtonItem:function(e){var i=t("<span>");return this._setText(i,e.label),this._addClass(i,"ui-selectmenu-text"),i},_renderMenu:function(e,i){var s=this,n="";t.each(i,function(i,o){var a;o.optgroup!==n&&(a=t("<li>",{text:o.optgroup}),s._addClass(a,"ui-selectmenu-optgroup","ui-menu-divider"+(o.element.parent("optgroup").prop("disabled")?" ui-state-disabled":"")),a.appendTo(e),n=o.optgroup),s._renderItemData(e,o)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-selectmenu-item",e)},_renderItem:function(e,i){var s=t("<li>"),n=t("<div>",{title:i.element.attr("title")});return i.disabled&&this._addClass(s,null,"ui-state-disabled"),this._setText(n,i.label),s.append(n).appendTo(e)},_setText:function(t,e){e?t.text(e):t.html(" ")},_move:function(t,e){var i,s,n=".ui-menu-item";this.isOpen?i=this.menuItems.eq(this.focusIndex).parent("li"):(i=this.menuItems.eq(this.element[0].selectedIndex).parent("li"),n+=":not(.ui-state-disabled)"),s="first"===t||"last"===t?i["first"===t?"prevAll":"nextAll"](n).eq(-1):i[t+"All"](n).eq(0),s.length&&this.menuInstance.focus(e,s)},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex).parent("li")}
vendor: 4,654 bytes, line 11512
11512,_toggle:function(t){this[this.isOpen?"close":"open"](t)},_setSelection:function(){var t;this.range&&(window.getSelection?(t=window.getSelection(),t.removeAllRanges(),t.addRange(this.range)):this.range.select(),this.button.focus())},_documentClick:{mousedown:function(e){this.isOpen&&(t(e.target).closest(".ui-selectmenu-menu, #"+t.ui.escapeSelector(this.ids.button)).length||this.close(e))}},_buttonEvents:{mousedown:function(){var t;window.getSelection?(t=window.getSelection(),t.rangeCount&&(this.range=t.getRangeAt(0))):this.range=document.selection.createRange()},click:function(t){this._setSelection(),this._toggle(t)},keydown:function(e){var i=!0;switch(e.keyCode){case t.ui.keyCode.TAB:case t.ui.keyCode.ESCAPE:this.close(e),i=!1;break;case t.ui.keyCode.ENTER:this.isOpen&&this._selectFocusedItem(e);break;case t.ui.keyCode.UP:e.altKey?this._toggle(e):this._move("prev",e);break;case t.ui.keyCode.DOWN:e.altKey?this._toggle(e):this._move("next",e);break;case t.ui.keyCode.SPACE:this.isOpen?this._selectFocusedItem(e):this._toggle(e);break;case t.ui.keyCode.LEFT:this._move("prev",e);break;case t.ui.keyCode.RIGHT:this._move("next",e);break;case t.ui.keyCode.HOME:case t.ui.keyCode.PAGE_UP:this._move("first",e);break;case t.ui.keyCode.END:case t.ui.keyCode.PAGE_DOWN:this._move("last",e);break;default:this.menu.trigger(e),i=!1}i&&e.preventDefault()}},_selectFocusedItem:function(t){var e=this.menuItems.eq(this.focusIndex).parent("li");e.hasClass("ui-state-disabled")||this._select(e.data("ui-selectmenu-item"),t)},_select:function(t,e){var i=this.element[0].selectedIndex;this.element[0].selectedIndex=t.index,this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(t)),this._setAria(t),this._trigger("select",e,{item:t}),t.index!==i&&this._trigger("change",e,{item:t}),this.close(e)},_setAria:function(t){var e=this.menuItems.eq(t.index).attr("id");this.button.attr({"aria-labelledby":e,"aria-activedescendant":e}),this.menu.attr("aria-activedescendant",e)},_setOption:function(t,e){if("icons"===t){var i=this.button.find("span.ui-icon");this._removeClass(i,null,this.options.icons.button)._addClass(i,null,e.button)}this._super(t,e),"appendTo"===t&&this.menuWrap.appendTo(this._appendTo()),"width"===t&&this._resizeButton()},_setOptionDisabled:function(t){this._super(t),this.menuInstance.option("disabled",t),this.button.attr("aria-disabled",t),this._toggleClass(this.button,null,"ui-state-disabled",t),this.element.prop("disabled",t),t?(this.button.attr("tabindex",-1),this.close()):this.button.attr("tabindex",0)},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e&&e[0]||(e=this.element.closest(".ui-front, dialog")),e.length||(e=this.document[0].body),e},_toggleAttr:function(){this.button.attr("aria-expanded",this.isOpen),this._removeClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"closed":"open"))._addClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"open":"closed"))._toggleClass(this.menuWrap,"ui-selectmenu-open",null,this.isOpen),this.menu.attr("aria-hidden",!this.isOpen)},_resizeButton:function(){var t=this.options.width;return t===!1?(this.button.css("width",""),void 0):(null===t&&(t=this.element.show().outerWidth(),this.element.hide()),this.button.outerWidth(t),void 0)},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()+1))},_getCreateOptions:function(){var t=this._super();return t.disabled=this.element.prop("disabled"),t},_parseOptions:function(e){var i=this,s=[];e.each(function(e,n){s.push(i._parseOption(t(n),e))}),this.items=s},_parseOption:function(t,e){var i=t.parent("optgroup");return{element:t,index:e,value:t.val(),label:t.text(),optgroup:i.attr("label")||"",disabled:i.prop("disabled")||t.prop("disabled")}},_destroy:function(){this._unbindFormResetHandler(),this.menuWrap.remove(),this.button.remove(),this.element.show(),this.element.removeUniqueId(),this.labels.attr("for",this.ids.element)}}]),t.widget("ui.slider",t.ui.mouse,{version:"1.12.0",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1
vendor: 9,870 bytes, lines 11512-11513
11512 11513},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var e,i,s=this.options,n=this.element.find(".ui-slider-handle"),o="<span tabindex='0'></span>",a=[];for(i=s.values&&s.values.length||1,n.length>i&&(n.slice(i).remove(),n=n.slice(0,i)),e=n.length;i>e;e++)a.push(o);this.handles=n.add(t(a.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each(function(e){t(this).data("ui-slider-handle-index",e)})},_createRange:function(){var e=this.options;e.range?(e.range===!0&&(e.values?e.values.length&&2!==e.values.length?e.values=[e.values[0],e.values[0]]:t.isArray(e.values)&&(e.values=e.values.slice(0)):e.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=t("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),("min"===e.range||"max"===e.range)&&this._addClass(this.range,"ui-slider-range-"+e.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(e){var i,s,n,o,a,r,h,l,c=this,u=this.options;return u.disabled?!1:(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),i={x:e.pageX,y:e.pageY},s=this._normValueFromMouse(i),n=this._valueMax()-this._valueMin()+1,this.handles.each(function(e){var i=Math.abs(s-c.values(e));(n>i||n===i&&(e===c._lastChangedValue||c.values(e)===u.min))&&(n=i,o=t(this),a=e)}),r=this._start(e,a),r===!1?!1:(this._mouseSliding=!0,this._handleIndex=a,this._addClass(o,null,"ui-state-active"),o.trigger("focus"),h=o.offset(),l=!t(e.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=l?{left:0,top:0}:{left:e.pageX-h.left-o.width()/2,top:e.pageY-h.top-o.height()/2-(parseInt(o.css("borderTopWidth"),10)||0)-(parseInt(o.css("borderBottomWidth"),10)||0)+(parseInt(o.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(e,a,s),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},i=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,i),!1},_mouseStop:function(t){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(t,this._handleIndex),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(t){var e,i,s,n,o;return"horizontal"===this.orientation?(e=this.elementSize.width,i=t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,i=t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),s=i/e,s>1&&(s=1),0>s&&(s=0),"vertical"===this.orientation&&(s=1-s),n=this._valueMax()-this._valueMin(),o=this._valueMin()+s*n,this._trimAlignValue(o)},_uiHash:function(t,e,i){var s={handle:this.handles[t],handleIndex:t,value:void 0!==e?e:this.value()};return this._hasMultipleValues()&&(s.value=void 0!==e?e:this.values(t),s.values=i||this.values()),s},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(t,e){return this._trigger("start",t,this._uiHash(e))},_slide:function(t,e,i){var s,n,o=this.value(),a=this.values();this._hasMultipleValues()&&(n=this.values(e?0:1),o=this.values(e),2===this.options.values.length&&this.options.range===!0&&(i=0===e?Math.min(n,i):Math.max(n,i)),a[e]=i),i!==o&&(s=this._trigger("slide",t,this._uiHash(e,i,a)),s!==!1&&(this._hasMultipleValues()?this.values(e,i):this.value(i)))},_stop:function(t,e){this._trigger("stop",t,this._uiHash(e))},_change:function(t,e){this._keySliding||this._mouseSliding||(this._lastChangedValue=e,this._trigger("change",t,this._uiHash(e)))},value:function(t){return arguments.length?(this.options.value=this._trimAlignValue(t),this._refreshValue(),this._change(null,0),void 0):this._value()},values:function(e,i){var s,n,o;if(arguments.length>1)return this.options.values[e]=this._trimAlignValue(i),this._refreshValue(),this._change(null,e),void 0;if(!arguments.length)return this._values();if(!t.isArray(arguments[0]))return this._hasMultipleValues()?this._values(e):this.value();for(s=this.options.values,n=arguments[0],o=0;s.length>o;o+=1)s[o]=this._trimAlignValue(n[o]),this._change(null,o);this._refreshValue()},_setOption:function(e,i){var s,n=0;switch("range"===e&&this.options.range===!0&&("min"===i?(this.options.value=this._values(0),this.options.values=null):"max"===i&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),t.isArray(this.options.values)&&(n=this.options.values.length),this._super(e,i),e){case"orientation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(i),this.handles.css("horizontal"===i?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),s=n-1;s>=0;s--)this._change(null,s);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_setOptionDisabled:function(t){this._super(t),this._toggleClass(null,"ui-state-disabled",!!t)},_value:function(){var t=this.options.value;return t=this._trimAlignValue(t)},_values:function(t){var e,i,s;if(arguments.length)return e=this.options.values[t],e=this._trimAlignValue(e);if(this._hasMultipleValues()){for(i=this.options.values.slice(),s=0;i.length>s;s+=1)i[s]=this._trimAlignValue(i[s]);return i}return[]},_trimAlignValue:function(t){if(this._valueMin()>=t)return this._valueMin();if(t>=this._valueMax())return this._valueMax();var e=this.options.step>0?this.options.step:1,i=(t-this._valueMin())%e,s=t-i;return 2*Math.abs(i)>=e&&(s+=i>0?e:-e),parseFloat(s.toFixed(5))},_calculateNewMax:function(){var t=this.options.max,e=this._valueMin(),i=this.options.step,s=Math.round((t-e)/i)*i;t=s+e,t>this.options.max&&(t-=i),this.max=parseFloat(t.toFixed(this._precision()))},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min&&(t=Math.max(t,this._precisionOf(this.options.min))),t},_precisionOf:function(t){var e=""+t,i=e.indexOf(".");return-1===i?0:e.length-i-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(t){"vertical"===t&&this.range.css({width:"",left:""}),"horizontal"===t&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var e,i,s,n,o,a=this.options.range,r=this.options,h=this,l=this._animateOff?!1:r.animate,c={};this._hasMultipleValues()?this.handles.each(function(s){i=100*((h.values(s)-h._valueMin())/(h._valueMax()-h._valueMin())),c["horizontal"===h.orientation?"left":"bottom"]=i+"%",t(this).stop(1,1)[l?"animate":"css"](c,r.animate),h.options.range===!0&&("horizontal"===h.orientation?(0===s&&h.range.stop(1,1)[l?"animate":"css"]({left:i+"%"},r.animate),1===s&&h.range[l?"animate":"css"]({width:i-e+"%"},{queue:!1,duration:r.animate})):(0===s&&h.range.stop(1,1)[l?"animate":"css"]({bottom:i+"%"},r.animate),1===s&&h.range[l?"animate":"css"]({height:i-e+"%"},{queue:!1,duration:r.animate}))),e=i}):(s=this.value(),n=this._valueMin(),o=this._valueMax(),i=o!==n?100*((s-n)/(o-n)):0,c["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[l?"animate":"css"](c,r.animate),"min"===a&&"horizontal"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({width:i+"%"},r.animate),"max"===a&&"horizontal"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({width:100-i+"%"},r.animate),"min"===a&&"vertical"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({height:i+"%"},r.animate),"max"===a&&"vertical"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({height:100-i+"%"},r.animate))},_handleEvents:{keydown:function(e){var i,s,n,o,a=t(e.target).data("ui-slider-handle-index");switch(e.keyCode){case t.ui.keyCode.HOME:case t.ui.keyCode.END:case t.ui.keyCode.PAGE_UP:case t.ui.keyCode.PAGE_DOWN:case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(e.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(t(e.target),null,"ui-state-active"),i=this._start(e,a),i===!1))return}switch(o=this.options.step,s=n=this._hasMultipleValues()?this.values(a):this.value(),e.keyCode){case t.ui.keyCode.HOME:n=this._valueMin();break;case t.ui.keyCode.END:n=this._valueMax();break;case t.ui.keyCode.PAGE_UP:n=this._trimAlignValue(s+(this._valueMax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.PAGE_DOWN:n=this._trimAlignValue(s-(this._valueMax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:if(s===this._valueMax())return;n=this._trimAlignValue(s+o);break;case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(s===this._valueMin())return;n=this._trimAlignValue(s-o)}this._slide(e,a,n)},keyup:function(e){var i=t(e.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(e,i),this._change(e,i),this._removeClass(t(e.target),null,"ui-state-active"))}}}),t.widget("ui.sortable",t.ui.mouse,{version:"1.12.0
vendor: 5,938 bytes, line 11513
11513",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(t,e,i){return t>=e&&e+i>t},_isFloating:function(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(t,e){this._super(t,e),"handle"===t&&this._setHandleClassName()},_setHandleClassName:function(){var e=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),t.each(this.items,function(){e._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")})},_destroy:function(){this._mouseDestroy();for(var t=this.items.length-1;t>=0;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(e,i){var s=null,n=!1,o=this;return this.reverting?!1:this.options.disabled||"static"===this.options.type?!1:(this._refreshItems(e),t(e.target).parents().each(function(){return t.data(this,o.widgetName+"-item")===o?(s=t(this),!1):void 0}),t.data(e.target,o.widgetName+"-item")===o&&(s=t(e.target)),s?!this.options.handle||i||(t(this.options.handle,s).find("*").addBack().each(function(){this===e.target&&(n=!0)}),n)?(this.currentItem=s,this._removeCurrentsFromItems(),!0):!1:!1)},_mouseStart:function(e,i,s){var n,o,a=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(e),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,a.cursorAt&&this._adjustOffsetFromHelper(a.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),a.containment&&this._setContainment(),a.cursor&&"auto"!==a.cursor&&(o=this.document.find("body"),this.storedCursor=o.css("cursor"),o.css("cursor",a.cursor),this.storedStylesheet=t("<style>*{ cursor: "+a.cursor+" !important; }</style>").appendTo(o)),a.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",a.opacity)),a.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",a.zIndex)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!s)for(n=this.containers.length-1;n>=0;n--)this.containers[n]._trigger("activate",e,this._uiHash(this));return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!a.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this._mouseDrag(e),!0},_mouseDrag:function(e){var i,s,n,o,a=this.options,r=!1;for(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY<a.scrollSensitivity?this.scrollParent[0].scrollTop=r=this.scrollParent[0].scrollTop+a.scrollSpeed:e.pageY-this.overflowOffset.top<a.scrollSensitivity&&(this.scrollParent[0].scrollTop=r=this.scrollParent[0].scrollTop-a.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.pageX<a.scrollSensitivity?this.scrollParent[0].scrollLeft=r=this.scrollParent[0].scrollLeft+a.scrollSpeed:e.pageX-this.overflowOffset.left<a.scrollSensitivity&&(this.scrollParent[0].scrollLeft=r=this.scrollParent[0].scrollLeft-a.scrollSpeed)):(e.pageY-this.document.scrollTop()<a.scrollSensitivity?r=this.document.scrollTop(this.document.scrollTop()-a.scrollSpeed):this.window.height()-(e.pageY-this.document.scrollTop())<a.scrollSensitivity&&(r=this.document.scrollTop(this.document.scrollTop()+a.scrollSpeed)),e.pageX-this.document.scrollLeft()<a.scrollSensitivity?r=this.document.scrollLeft(this.document.scrollLeft()-a.scrollSpeed):this.window.width()-(e.pageX-this.document.scrollLeft())<a.scrollSensitivity&&(r=this.document.scrollLeft(this.document.scrollLeft()+a.scrollSpeed))),r!==!1&&t.ui.ddmanager&&!a.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e)),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),i=this.items.length-1;i>=0;i--)if(s=this.items[i],n=s.item[0],o=this._intersectsWithPointer(s),o&&s.instance===this.currentContainer&&n!==this.currentItem[0]&&this.placeholder[1===o?"next":"prev"]()[0]!==n&&!t.contains(this.placeholder[0],n)&&("semi-dynamic"===this.options.type?!t.contains(this.element[0],n):!0)){if
vendor: 4,190 bytes, line 11513
11513(this.direction=1===o?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(s))break;this._rearrange(e,s),this._trigger("change",e,this._uiHash());break}return this._contactContainers(e),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,i){if(e){if(t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e),this.options.revert){var s=this,n=this.placeholder.offset(),o=this.options.axis,a={};o&&"x"!==o||(a.left=n.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),o&&"y"!==o||(a.top=n.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,t(this.helper).animate(a,parseInt(this.options.revert,10)||500,function(){s._clear(e)})}else this._clear(e,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp({target:null}),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("deactivate",null,this._uiHash(this)),this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",null,this._uiHash(this)),this.containers[e].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?t(this.domPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var i=this._getItemsAsjQuery(e&&e.connected),s=[];return e=e||{},t(i).each(function(){var i=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);i&&s.push((e.key||i[1]+"[]")+"="+(e.key&&e.expression?i[1]:i[2]))}),!s.length&&e.key&&s.push(e.key+"="),s.join("&")},toArray:function(e){var i=this._getItemsAsjQuery(e&&e.connected),s=[];return e=e||{},i.each(function(){s.push(t(e.item||this).attr(e.attribute||"id")||"")}),s},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,s=this.positionAbs.top,n=s+this.helperProportions.height,o=t.left,a=o+t.width,r=t.top,h=r+t.height,l=this.offset.click.top,c=this.offset.click.left,u="x"===this.options.axis||s+l>r&&h>s+l,d="y"===this.options.axis||e+c>o&&a>e+c,p=u&&d;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?p:e+this.helperProportions.width/2>o&&a>i-this.helperProportions.width/2&&s+this.helperProportions.height/2>r&&h>n-this.helperProportions.height/2},_intersectsWithPointer:function(t){var e,i,s="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height),n="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width),o=s&&n;return o?(e=this._getDragVerticalDirection(),i=this._getDragHorizontalDirection(),this.floating?"right"===i||"down"===e?2:1:e&&("down"===e?2:1)):!1},_intersectsWithSides:function(t){var e=this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),i=this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),s=this._getDragVerticalDirection(),n=this._getDragHorizontalDirection();return this.floating&&n?"right"===n&&i||"left"===n&&!i:s&&("down"===s&&e||"up"===s&&!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!==t&&(t>0?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!==t&&(t>0?"right":"left")},refresh:function(t){return this._refreshItems(t),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var t=this.options;
vendor: 11,966 bytes, line 11513
11513return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){function i(){r.push(this)}var s,n,o,a,r=[],h=[],l=this._connectWith();if(l&&e)for(s=l.length-1;s>=0;s--)for(o=t(l[s],this.document[0]),n=o.length-1;n>=0;n--)a=t.data(o[n],this.widgetFullName),a&&a!==this&&!a.options.disabled&&h.push([t.isFunction(a.options.items)?a.options.items.call(a.element):t(a.options.items,a.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),a]);for(h.push([t.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):t(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),s=h.length-1;s>=0;s--)h[s][0].each(i);return t(r)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=t.grep(this.items,function(t){for(var i=0;e.length>i;i++)if(e[i]===t.item[0])return!1;return!0})},_refreshItems:function(e){this.items=[],this.containers=[this];var i,s,n,o,a,r,h,l,c=this.items,u=[[t.isFunction(this.options.items)?this.options.items.call(this.element[0],e,{item:this.currentItem}):t(this.options.items,this.element),this]],d=this._connectWith();if(d&&this.ready)for(i=d.length-1;i>=0;i--)for(n=t(d[i],this.document[0]),s=n.length-1;s>=0;s--)o=t.data(n[s],this.widgetFullName),o&&o!==this&&!o.options.disabled&&(u.push([t.isFunction(o.options.items)?o.options.items.call(o.element[0],e,{item:this.currentItem}):t(o.options.items,o.element),o]),this.containers.push(o));for(i=u.length-1;i>=0;i--)for(a=u[i][1],r=u[i][0],s=0,l=r.length;l>s;s++)h=t(r[s]),h.data(this.widgetName+"-item",a),c.push({item:h,instance:a,width:0,height:0,left:0,top:0})},refreshPositions:function(e){this.floating=this.items.length?"x"===this.options.axis||this._isFloating(this.items[0].item):!1,this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset());var i,s,n,o;for(i=this.items.length-1;i>=0;i--)s=this.items[i],s.instance!==this.currentContainer&&this.currentContainer&&s.item[0]!==this.currentItem[0]||(n=this.options.toleranceElement?t(this.options.toleranceElement,s.item):s.item,e||(s.width=n.outerWidth(),s.height=n.outerHeight()),o=n.offset(),s.left=o.left,s.top=o.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(i=this.containers.length-1;i>=0;i--)o=this.containers[i].element.offset(),this.containers[i].containerCache.left=o.left,this.containers[i].containerCache.top=o.top,this.containers[i].containerCache.width=this.containers[i].element.outerWidth(),this.containers[i].containerCache.height=this.containers[i].element.outerHeight();return this},_createPlaceholder:function(e){e=e||this;var i,s=e.options;s.placeholder&&s.placeholder.constructor!==String||(i=s.placeholder,s.placeholder={element:function(){var s=e.currentItem[0].nodeName.toLowerCase(),n=t("<"+s+">",e.document[0]);return e._addClass(n,"ui-sortable-placeholder",i||e.currentItem[0].className)._removeClass(n,"ui-sortable-helper"),"tbody"===s?e._createTrPlaceholder(e.currentItem.find("tr").eq(0),t("<tr>",e.document[0]).appendTo(n)):"tr"===s?e._createTrPlaceholder(e.currentItem,n):"img"===s&&n.attr("src",e.currentItem.attr("src")),i||n.css("visibility","hidden"),n},update:function(t,n){(!i||s.forcePlaceholderSize)&&(n.height()||n.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10)),n.width()||n.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10)))}}),e.placeholder=t(s.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),s.placeholder.update(e,e.placeholder)},_createTrPlaceholder:function(e,i){var s=this;e.children().each(function(){t("<td> </td>",s.document[0]).attr("colspan",t(this).attr("colspan")||1).appendTo(i)})},_contactContainers:function(e){var i,s,n,o,a,r,h,l,c,u,d=null,p=null;for(i=this.containers.length-1;i>=0;i--)if(!t.contains(this.currentItem[0],this.containers[i].element[0]))if(this._intersectsWith(this.containers[i].containerCache)){if(d&&t.contains(this.containers[i].element[0],d.element[0]))continue;d=this.containers[i],p=i}else this.containers[i].containerCache.over&&(this.containers[i]._trigger("out",e,this._uiHash(this)),this.containers[i].containerCache.over=0);if(d)if(1===this.containers.length)this.containers[p].containerCache.over||(this.containers[p]._trigger("over",e,this._uiHash(this)),this.containers[p].containerCache.over=1);else{for(n=1e4,o=null,c=d.floating||this._isFloating(this.currentItem),a=c?"left":"top",r=c?"width":"height",u=c?"pageX":"pageY",s=this.items.length-1;s>=0;s--)t.contains(this.containers[p].element[0],this.items[s].item[0])&&this.items[s].item[0]!==this.currentItem[0]&&(h=this.items[s].item.offset()[a],l=!1,e[u]-h>this.items[s][r]/2&&(l=!0),n>Math.abs(e[u]-h)&&(n=Math.abs(e[u]-h),o=this.items[s],this.direction=l?"up":"down"));if(!o&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[p])return this.currentContainer.containerCache.over||(this.containers[p]._trigger("over",e,this._uiHash()),this.currentContainer.containerCache.over=1),void 0;o?this._rearrange(e,o,null,!0):this._rearrange(e,null,this.containers[p].element,!0),this._trigger("change",e,this._uiHash()),this.containers[p]._trigger("change",e,this._uiHash(this)),this.currentContainer=this.containers[p],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[p]._trigger("over",e,this._uiHash(this)),this.containers[p].containerCache.over=1}},_createHelper:function(e){var i=this.options,s=t.isFunction(i.helper)?t(i.helper.apply(this.element[0],[e,this.currentItem])):"clone"===i.helper?this.currentItem.clone():this.currentItem;return s.parents("body").length||t("parent"!==i.appendTo?i.appendTo:this.currentItem[0].parentNode)[0].appendChild(s[0]),s[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),(!s[0].style.width||i.forceHelperSize)&&s.width(this.currentItem.width()),(!s[0].style.height||i.forceHelperSize)&&s.height(this.currentItem.height()),s},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&t.ui.ie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var t=this.currentItem.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,s,n=this.options;"parent"===n.containment&&(n.containment=this.helper[0].parentNode),("document"===n.containment||"window"===n.containment)&&(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===n.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===n.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(n.containment)||(e=t(n.containment)[0],i=t(n.containment).offset(),s="hidden"!==t(e).css("overflow"),this.containment=[i.left+(parseInt(t(e).css("borderLeftWidth"),10)||0)+(parseInt(t(e).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(t(e).css("borderTopWidth"),10)||0)+(parseInt(t(e).css("paddingTop"),10)||0)-this.margins.top,i.left+(s?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(t(e).css("borderLeftWidth"),10)||0)-(parseInt(t(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(s?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(t(e).css("borderTopWidth"),10)||0)-(parseInt(t(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(e,i){i||(i=this.position);var s="absolute"===e?1:-1,n="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,o=/(html|body)/i.test(n[0].tagName);return{top:i.top+this.offset.relative.top*s+this.offset.parent.top*s-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():o?0:n.scrollTop())*s,left:i.left+this.offset.relative.left*s+this.offset.parent.left*s-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():o?0:n.scrollLeft())*s}},_generatePosition:function(e){var i,s,n=this.options,o=e.pageX,a=e.pageY,r="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,h=/(html|body)/i.test(r[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(e.pageX-this.offset.click.left<this.containment[0]&&(o=this.containment[0]+this.offset.click.left),e.pageY-this.offset.click.top<this.containment[1]&&(a=this.containment[1]+this.offset.click.top),e.pageX-this.offset.click.left>this.containment[2]&&(o=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(a=this.containment[3]+this.offset.click.top)),n.grid&&(i=this.originalPageY+Math.round((a-this.originalPageY)/n.grid[1])*n.grid[1],a=this.containment?i-this.offset.click.top>=this.containment[1]&&i-this.offset.click.top<=this.containment[3]?i:i-this.offset.click.top>=this.containment[1]?i-n.grid[1]:i+n.grid[1]:i,s=this.originalPageX+Math.round((o-this.originalPageX)/n.grid[0])*n.grid[0],o=this.containment?s-this.offset.click.left>=this.containment[0]&&s-this.offset.click.left<=this.containment[2]?s:s-this.offset.click.left>=this.containment[0]?s-n.grid[0]:s+n.grid[0]:s)),{top:a-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():h?0:r.scrollTop()),left:o-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():h?0:r.scrollLeft())}},_rearrange:function(t,e,i,s){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var n=this.counter;
vendor: 2,442 bytes, lines 11513-11514
11513this._delay(function(){n===this.counter&&this.refreshPositions(!s) 11514})},_clear:function(t,e){function i(t,e,i){return function(s){i._trigger(t,s,e._uiHash(e))}}this.reverting=!1;var s,n=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(s in this._storedCSS)("auto"===this._storedCSS[s]||"static"===this._storedCSS[s])&&(this._storedCSS[s]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!e&&n.push(function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||n.push(function(t){this._trigger("update",t,this._uiHash())}),this!==this.currentContainer&&(e||(n.push(function(t){this._trigger("remove",t,this._uiHash())}),n.push(function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}.call(this,this.currentContainer)),n.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}.call(this,this.currentContainer)))),s=this.containers.length-1;s>=0;s--)e||n.push(i("deactivate",this,this.containers[s])),this.containers[s].containerCache.over&&(n.push(i("out",this,this.containers[s])),this.containers[s].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!e){for(s=0;n.length>s;s++)n[s].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){t.Widget.prototype._trigger.apply(this,arguments)===!1&&this.cancel()},_uiHash:function(e){var i=e||this;return{helper:i.helper,placeholder:i.placeholder||t([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:e?e.element:null}}}),t.widget("ui.spinner",{version:"1.12.0
vendor: 6,813 bytes, line 11514
11514",defaultElement:"<input>",widgetEventPrefix:"spin",options:{classes:{"ui-spinner":"ui-corner-all","ui-spinner-down":"ui-corner-br","ui-spinner-up":"ui-corner-tr"},culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),""!==this.value()&&this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var e=this._super(),i=this.element;return t.each(["min","max","step"],function(t,s){var n=i.attr(s);null!=n&&n.length&&(e[s]=n)}),e},_events:{keydown:function(t){this._start(t)&&this._keydown(t)&&t.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(t){return this.cancelBlur?(delete this.cancelBlur,void 0):(this._stop(),this._refresh(),this.previous!==this.element.val()&&this._trigger("change",t),void 0)},mousewheel:function(t,e){if(e){if(!this.spinning&&!this._start(t))return!1;this._spin((e>0?1:-1)*this.options.step,t),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(t)},100),t.preventDefault()}},"mousedown .ui-spinner-button":function(e){function i(){var e=this.element[0]===t.ui.safeActiveElement(this.document[0]);e||(this.element.trigger("focus"),this.previous=s,this._delay(function(){this.previous=s}))}var s;s=this.element[0]===t.ui.safeActiveElement(this.document[0])?this.previous:this.element.val(),e.preventDefault(),i.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,i.call(this)}),this._start(e)!==!1&&this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(e){return t(e.currentTarget).hasClass("ui-state-active")?this._start(e)===!1?!1:(this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e),void 0):void 0},"mouseleave .ui-spinner-button":"_stop"},_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap("<span>").parent().append("<a></a><a></a>")},_draw:function(){this._enhance(),this._addClass(this.uiSpinner,"ui-spinner","ui-widget ui-widget-content"),this._addClass("ui-spinner-input"),this.element.attr("role","spinbutton"),this.buttons=this.uiSpinner.children("a").attr("tabIndex",-1).attr("aria-hidden",!0).button({classes:{"ui-button":""}}),this._removeClass(this.buttons,"ui-corner-all"),this._addClass(this.buttons.first(),"ui-spinner-button ui-spinner-up"),this._addClass(this.buttons.last(),"ui-spinner-button ui-spinner-down"),this.buttons.first().button({icon:this.options.icons.up,showLabel:!1}),this.buttons.last().button({icon:this.options.icons.down,showLabel:!1}),this.buttons.height()>Math.ceil(.5*this.uiSpinner.height())&&this.uiSpinner.height()>0&&this.uiSpinner.height(this.uiSpinner.height())},_keydown:function(e){var i=this.options,s=t.ui.keyCode;switch(e.keyCode){case s.UP:return this._repeat(null,1,e),!0;case s.DOWN:return this._repeat(null,-1,e),!0;case s.PAGE_UP:return this._repeat(null,i.page,e),!0;case s.PAGE_DOWN:return this._repeat(null,-i.page,e),!0}return!1},_start:function(t){return this.spinning||this._trigger("start",t)!==!1?(this.counter||(this.counter=1),this.spinning=!0,!0):!1},_repeat:function(t,e,i){t=t||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,e,i)},t),this._spin(e*this.options.step,i)},_spin:function(t,e){var i=this.value()||0;this.counter||(this.counter=1),i=this._adjustValue(i+t*this._increment(this.counter)),this.spinning&&this._trigger("spin",e,{value:i})===!1||(this._value(i),this.counter++)},_increment:function(e){var i=this.options.incremental;return i?t.isFunction(i)?i(e):Math.floor(e*e*e/5e4-e*e/500+17*e/200+1):1},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min&&(t=Math.max(t,this._precisionOf(this.options.min))),t},_precisionOf:function(t){var e=""+t,i=e.indexOf(".");return-1===i?0:e.length-i-1},_adjustValue:function(t){var e,i,s=this.options;return e=null!==s.min?s.min:0,i=t-e,i=Math.round(i/s.step)*s.step,t=e+i,t=parseFloat(t.toFixed(this._precision())),null!==s.max&&t>s.max?s.max:null!==s.min&&s.min>t?s.min:t},_stop:function(t){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",t))},_setOption:function(t,e){var i,s,n;return"culture"===t||"numberFormat"===t?(i=this._parse(this.element.val()),this.options[t]=e,this.element.val(this._format(i)),void 0):(("max"===t||"min"===t||"step"===t)&&"string"==typeof e&&(e=this._parse(e)),"icons"===t&&(s=this.buttons.first().find(".ui-icon"),this._removeClass(s,null,this.options.icons.up),this._addClass(s,null,e.up),n=this.buttons.last().find(".ui-icon"),this._removeClass(n,null,this.options.icons.down),this._addClass(n,null,e.down)),this._super(t,e),void 0)},_setOptionDisabled:function(t){this._super(t),this._toggleClass(this.uiSpinner,null,"ui-state-disabled",!!t),this.element.prop("disabled",!!t),this.buttons.button(t?"disable":"enable")},_setOptions:r(function(t){this._super(t)}),_parse:function(t){return"string"==typeof t&&""!==t&&(t=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(t,10,this.options.culture):+t),""===t||isNaN(t)?null:t},_format:function(t){return""===t?"":window.Globalize&&this.options.numberFormat?Globalize.format(t,this.options.numberFormat,this.options.culture):t},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:function(){var t=this.value();return null===t?!1:t===this._adjustValue(t)},_value:function(t,e){var i;""!==t&&(i=this._parse(t),null!==i&&(e||(i=this._adjustValue(i)),t=this._format(i))),this.element.val(t),this._refresh()},_destroy:function(){this.element.prop("disabled",!1).removeAttr("autocomplete role aria-valuemin aria-valuemax aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:r(function(t){this._stepUp(t)}),_stepUp:function(t){this._start()&&(this._spin((t||1)*this.options.step),this._stop())},stepDown:r(function(t){this._stepDown(t)}),_stepDown:function(t){this._start()&&(this._spin((t||1)*-this.options.step),this._stop())},pageUp:r(function(t){this._stepUp((t||1)*this.options.page)}),pageDown:r(function(t){this._stepDown((t||1)*this.options.page)}),value:function(t){return arguments.length?(r(this._value).call(this,t),void 0):this._parse(this.element.val())},widget:function(){return this.uiSpinner}}
vendor: 16,649 bytes, line 11514
11514),t.uiBackCompat!==!1&&t.widget("ui.spinner",t.ui.spinner,{_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml())},_uiSpinnerHtml:function(){return"<span>"},_buttonHtml:function(){return"<a></a><a></a>"}}),t.ui.spinner,t.widget("ui.tabs",{version:"1.12.0",delay:300,options:{active:null,classes:{"ui-tabs":"ui-corner-all","ui-tabs-nav":"ui-corner-all","ui-tabs-panel":"ui-corner-bottom","ui-tabs-tab":"ui-corner-top"},collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:function(){var t=/#.*$/;return function(e){var i,s;i=e.href.replace(t,""),s=location.href.replace(t,"");try{i=decodeURIComponent(i)}catch(n){}try{s=decodeURIComponent(s)}catch(n){}return e.hash.length>1&&i===s}}(),_create:function(){var e=this,i=this.options;this.running=!1,this._addClass("ui-tabs","ui-widget ui-widget-content"),this._toggleClass("ui-tabs-collapsible",null,i.collapsible),this._processTabs(),i.active=this._initialActive(),t.isArray(i.disabled)&&(i.disabled=t.unique(i.disabled.concat(t.map(this.tabs.filter(".ui-state-disabled"),function(t){return e.tabs.index(t)}))).sort()),this.active=this.options.active!==!1&&this.anchors.length?this._findActive(i.active):t(),this._refresh(),this.active.length&&this.load(i.active)},_initialActive:function(){var e=this.options.active,i=this.options.collapsible,s=location.hash.substring(1);return null===e&&(s&&this.tabs.each(function(i,n){return t(n).attr("aria-controls")===s?(e=i,!1):void 0}),null===e&&(e=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),(null===e||-1===e)&&(e=this.tabs.length?0:!1)),e!==!1&&(e=this.tabs.index(this.tabs.eq(e)),-1===e&&(e=i?!1:0)),!i&&e===!1&&this.anchors.length&&(e=0),e},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):t()}},_tabKeydown:function(e){var i=t(t.ui.safeActiveElement(this.document[0])).closest("li"),s=this.tabs.index(i),n=!0;if(!this._handlePageNav(e)){switch(e.keyCode){case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:s++;break;case t.ui.keyCode.UP:case t.ui.keyCode.LEFT:n=!1,s--;break;case t.ui.keyCode.END:s=this.anchors.length-1;break;case t.ui.keyCode.HOME:s=0;break;case t.ui.keyCode.SPACE:return e.preventDefault(),clearTimeout(this.activating),this._activate(s),void 0;case t.ui.keyCode.ENTER:return e.preventDefault(),clearTimeout(this.activating),this._activate(s===this.options.active?!1:s),void 0;default:return}e.preventDefault(),clearTimeout(this.activating),s=this._focusNextTab(s,n),e.ctrlKey||e.metaKey||(i.attr("aria-selected","false"),this.tabs.eq(s).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",s)},this.delay))}},_panelKeydown:function(e){this._handlePageNav(e)||e.ctrlKey&&e.keyCode===t.ui.keyCode.UP&&(e.preventDefault(),this.active.trigger("focus"))},_handlePageNav:function(e){return e.altKey&&e.keyCode===t.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):e.altKey&&e.keyCode===t.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(e,i){function s(){return e>n&&(e=0),0>e&&(e=n),e}for(var n=this.tabs.length-1;-1!==t.inArray(s(),this.options.disabled);)e=i?e+1:e-1;return e},_focusNextTab:function(t,e){return t=this._findNextTab(t,e),this.tabs.eq(t).trigger("focus"),t},_setOption:function(t,e){return"active"===t?(this._activate(e),void 0):(this._super(t,e),"collapsible"===t&&(this._toggleClass("ui-tabs-collapsible",null,e),e||this.options.active!==!1||this._activate(0)),"event"===t&&this._setupEvents(e),"heightStyle"===t&&this._setupHeightStyle(e),void 0)},_sanitizeSelector:function(t){return t?t.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var e=this.options,i=this.tablist.children(":has(a[href])");e.disabled=t.map(i.filter(".ui-state-disabled"),function(t){return i.index(t)}),this._processTabs(),e.active!==!1&&this.anchors.length?this.active.length&&!t.contains(this.tablist[0],this.active[0])?this.tabs.length===e.disabled.length?(e.active=!1,this.active=t()):this._activate(this._findNextTab(Math.max(0,e.active-1),!1)):e.active=this.tabs.index(this.active):(e.active=!1,this.active=t()),this._refresh()},_refresh:function(){this._setOptionDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"}),this.active.length?(this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._addClass(this.active,"ui-tabs-active","ui-state-active"),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var e=this,i=this.tabs,s=this.anchors,n=this.panels;this.tablist=this._getList().attr("role","tablist"),this._addClass(this.tablist,"ui-tabs-nav","ui-helper-reset ui-helper-clearfix ui-widget-header"),this.tablist.on("mousedown"+this.eventNamespace,"> li",function(e){t(this).is(".ui-state-disabled")&&e.preventDefault()}).on("focus"+this.eventNamespace,".ui-tabs-anchor",function(){t(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this.tabs=this.tablist.find("> li:has(a[href])").attr({role:"tab",tabIndex:-1}),this._addClass(this.tabs,"ui-tabs-tab","ui-state-default"),this.anchors=this.tabs.map(function(){return t("a",this)[0]}).attr({role:"presentation",tabIndex:-1}),this._addClass(this.anchors,"ui-tabs-anchor"),this.panels=t(),this.anchors.each(function(i,s){var n,o,a,r=t(s).uniqueId().attr("id"),h=t(s).closest("li"),l=h.attr("aria-controls");e._isLocal(s)?(n=s.hash,a=n.substring(1),o=e.element.find(e._sanitizeSelector(n))):(a=h.attr("aria-controls")||t({}).uniqueId()[0].id,n="#"+a,o=e.element.find(n),o.length||(o=e._createPanel(a),o.insertAfter(e.panels[i-1]||e.tablist)),o.attr("aria-live","polite")),o.length&&(e.panels=e.panels.add(o)),l&&h.data("ui-tabs-aria-controls",l),h.attr({"aria-controls":a,"aria-labelledby":r}),o.attr("aria-labelledby",r)}),this.panels.attr("role","tabpanel"),this._addClass(this.panels,"ui-tabs-panel","ui-widget-content"),i&&(this._off(i.not(this.tabs)),this._off(s.not(this.anchors)),this._off(n.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol, ul").eq(0)},_createPanel:function(e){return t("<div>").attr("id",e).data("ui-tabs-destroy",!0)},_setOptionDisabled:function(e){var i,s,n;for(t.isArray(e)&&(e.length?e.length===this.anchors.length&&(e=!0):e=!1),n=0;s=this.tabs[n];n++)i=t(s),e===!0||-1!==t.inArray(n,e)?(i.attr("aria-disabled","true"),this._addClass(i,null,"ui-state-disabled")):(i.removeAttr("aria-disabled"),this._removeClass(i,null,"ui-state-disabled"));this.options.disabled=e,this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,e===!0)},_setupEvents:function(e){var i={};e&&t.each(e.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(t){t.preventDefault()}}),this._on(this.anchors,i),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(e){var i,s=this.element.parent();"fill"===e?(i=s.height(),i-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var e=t(this),s=e.css("position");"absolute"!==s&&"fixed"!==s&&(i-=e.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){i-=t(this).outerHeight(!0)}),this.panels.each(function(){t(this).height(Math.max(0,i-t(this).innerHeight()+t(this).height()))}).css("overflow","auto")):"auto"===e&&(i=0,this.panels.each(function(){i=Math.max(i,t(this).height("").height())}).height(i))},_eventHandler:function(e){var i=this.options,s=this.active,n=t(e.currentTarget),o=n.closest("li"),a=o[0]===s[0],r=a&&i.collapsible,h=r?t():this._getPanelForTab(o),l=s.length?this._getPanelForTab(s):t(),c={oldTab:s,oldPanel:l,newTab:r?t():o,newPanel:h};e.preventDefault(),o.hasClass("ui-state-disabled")||o.hasClass("ui-tabs-loading")||this.running||a&&!i.collapsible||this._trigger("beforeActivate",e,c)===!1||(i.active=r?!1:this.tabs.index(o),this.active=a?t():o,this.xhr&&this.xhr.abort(),l.length||h.length||t.error("jQuery UI Tabs: Mismatching fragment identifier."),h.length&&this.load(this.tabs.index(o),e),this._toggle(e,c))},_toggle:function(e,i){function s(){o.running=!1,o._trigger("activate",e,i)}function n(){o._addClass(i.newTab.closest("li"),"ui-tabs-active","ui-state-active"),a.length&&o.options.show?o._show(a,o.options.show,s):(a.show(),s())}var o=this,a=i.newPanel,r=i.oldPanel;this.running=!0,r.length&&this.options.hide?this._hide(r,this.options.hide,function(){o._removeClass(i.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),n()}):(this._removeClass(i.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),r.hide(),n()),r.attr("aria-hidden","true"),i.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),a.length&&r.length?i.oldTab.attr("tabIndex",-1):a.length&&this.tabs.filter(function(){return 0===t(this).attr("tabIndex")}).attr("tabIndex",-1),a.attr("aria-hidden","false"),i.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(e){var i,s=this._findActive(e);s[0]!==this.active[0]&&(s.length||(s=this.active),i=s.find(".ui-tabs-anchor")[0],this._eventHandler({target:i,currentTarget:i,preventDefault:t.noop}))},_findActive:function(e){return e===!1?t():this.tabs.eq(e)},_getIndex:function(e){return"string"==typeof e&&(e=this.anchors.index(this.anchors.filter("[href$='"+t.ui.escapeSelector(e)+"']"))),e},_destroy:function(){this.xhr&&this.xhr.abort(),this.tablist.removeAttr("role").off(this.eventNamespace),this.anchors.removeAttr("role tabIndex").removeUniqueId(),this.tabs.add(this.panels).each(function(){t.data(this,"ui-tabs-destroy")?t(this).remove():t(this).removeAttr("role tabIndex aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded")}),this.tabs.each(function(){var e=t(this),i=e.data("ui-tabs-aria-controls");i?e.attr("aria-controls",i).removeData("ui-tabs-aria-controls"):e.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(e){var i=this.options.disabled;i!==!1&&(void 0===e?i=!1:(e=this._getIndex(e),i=t.isArray(i)?t.map(i,function(t){return t!==e?t:null}):t.map(this.tabs,function(t,i){return i!==e?i:null})),this._setOptionDisabled(i))},disable:function(e){var i=this.options.disabled;if(i!==!0){if(void 0===e)i=!0;else{if(e=this._getIndex(e),-1!==t.inArray(e,i))return;i=t.isArray(i)?t.merge([e],i).sort():[e]}this._setOptionDisabled(i)}},load:function(e,i){e=this._getIndex(e);var s=this,n=this.tabs.eq(e),o=n.find(".ui-tabs-anchor"),a=this._getPanelForTab(n),r={tab:n,panel:a},h=function(t,e){"abort"===e&&s.panels.stop(!1,!0),s._removeClass(n,"ui-tabs-loading"),a.removeAttr("aria-busy"),t===s.xhr&&delete s.xhr};this._isLocal(o[0])||(this.xhr=t.ajax(this._ajaxSettings(o,i,r)),this.xhr&&"canceled"!==this.xhr.statusText&&(this._addClass(n,"ui-tabs-loading"),a.attr("aria-busy","true"),this.xhr.done(function(t,e,n){setTimeout(function(){a.html(t),s._trigger("load",i,r),h(n,e)},1)}).fail(function(t,e){setTimeout(function(){h(t,e)},1)})))},_ajaxSettings:function(e,i,s){var n=this;return{url:e.attr("href"),beforeSend:function(e,o){return n._trigger("beforeLoad",i,t.extend({jqXHR:e,ajaxSettings:o},s))}}},_getPanelForTab:function(e){var i=t(e).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+i))}}),t.uiBackCompat!==!1&&t.widget("ui.tabs",t.ui.tabs,{_processTabs:function(){this._superApply(arguments),this._addClass(this.tabs,"ui-tab")}}),t.ui.tabs,t.widget("ui.tooltip",{version:"1.12.0",options:{classes:{"ui-tooltip":"ui-corner-all ui-widget-shadow"},content:function(){var e=t(this).attr("title")||"";return t("<a>").text(e).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,track:!1,close:null,open:null},_addDescribedBy:function(e,i){var s=(e.attr("aria-describedby")||"").split(/\s+/);s.push(i),e.data("ui-tooltip-id",i).attr("aria-describedby",t.trim(s.join(" ")))},_removeDescribedBy:function(e){var i=e.data("ui-tooltip-id"),s=(e.attr("aria-describedby")||"").split(/\s+/),n=t.inArray(i,s);-1!==n&&s.splice(n,1),e.removeData("ui-tooltip-id"),s=t.trim(s.join(" ")),s?e.attr("aria-describedby",s):e.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.liveRegion=t("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this.disabledTitles=t([])},_setOption:function(e,i){var s=this;this._super(e,i),"content"===e&&t.each(this.tooltips,function(t,e){s._updateContent(e.element)})},_setOptionDisabled:function(t){this[t?"_disable":"_enable"]()},_disable:function(){var e=this;t.each(this.tooltips,function(i,s){var n=t.Event("blur");n.target=n.currentTarget=s.element[0],e.close(n,!0)}),this.disabledTitles=this.disabledTitles.add(this.element.find(this.options.items).addBack().filter(function(){var e=t(this);return e.is("[title]")?e.data("ui-tooltip-title",e.attr("title")).removeAttr("title"):void 0}))},_enable:function(){this.disabledTitles.each(function(){var e=t(this);e.data("ui-tooltip-title")&&e.attr("title",e.data("ui-tooltip-title"))}),this.disabledTitles=t([])},open:function(e){var i=this,s=t(e?e.target:this.element).closest(this.options.items);s.length&&!s.data("ui-tooltip-id")&&(s.attr("title")&&s.data("ui-tooltip-title",s.attr("title")),s.data("ui-tooltip-open",!0),e&&"mouseover"===e.type&&s.parents().each(function(){var e,s=t(this);s.data("ui-tooltip-open")&&(e=t.Event("blur"),e.target=e.currentTarget=this,i.close(e,!0)),s.attr("title")&&(s.uniqueId(),i.parents[this.id]={element:this,title:s.attr("title")},s.attr("title",""))}),this._registerCloseHandlers(e,s),this._updateContent(s,e))},_updateContent:function(t,e){var i,s=this.options.content,n=this,o=e?e.type:null;return"string"==typeof s||s.nodeType||s.jquery?this._open(e,t,s):(i=s.call(t[0],function(i){n._delay(function(){t.data("ui-tooltip-open")&&(e&&(e.type=o),this._open(e,t,i))})}),i&&this._open(e,t,i),void 0)},_open:function(e,i,s){function n(t){l.of=t,a.is(":hidden")||a.position(l)}var o,a,r,h,l=t.extend({},this.options.position);if(s){if(o=this._find(i))return o.tooltip.find(".ui-tooltip-content").html(s),void 0;i.is("[title]")&&(e&&"mouseover"===e.type?i.attr("title",""):i.removeAttr("title")),o=this._tooltip(i),a=o.tooltip,this._addDescribedBy(i,a.attr("id")),a.find(".ui-tooltip-content").html(s),this.liveRegion.children().hide(),h=t("<div>").html(a.find(".ui-tooltip-content").html()),h.removeAttr("name").find("[name]").removeAttr("name"),h.removeAttr("id").find("[id]").removeAttr("id"),h.appendTo(this.liveRegion),this.options.track&&e&&/^mouse/.test(e.type)?(this._on(this.document,{mousemove:n}),n(e)):a.position(t.extend({of:i},this.options.position)),a.hide(),this._show(a,this.options.show),this.options.track&&this.options.show&&this.options.show.delay&&(r=this.delayedShow=setInterval(function(){a.is(":visible")&&(n(l.of),clearInterval(r))},t.fx.interval)),this._trigger("open",e,{tooltip:a})}},_registerCloseHandlers:function(e,i){var s={keyup:function(e){if(e.keyCode===t.ui.keyCode.ESCAPE){var s=t.Event(e);s.currentTarget=i[0],this.close(s,!0)}}};i[0]!==this.element[0]&&(s.remove=function(){this._removeTooltip(this._find(i).tooltip)}),e&&"mouseover"!==e.type||(s.mouseleave="close"),e&&"focusin"!==e.type||(s.focusout="close"),this._on(!0,i,s)},close:function(e){var i,s=this,n=t(e?e.currentTarget:this.element),o=this._find(n);return o?(i=o.tooltip,o.closing||(clearInterval(this.delayedShow),n.data("ui-tooltip-title")&&!n.attr("title")&&n.attr("title",n.data("ui-tooltip-title")),this._removeDescribedBy(n),o.hiding=!0,i.stop(!0),this._hide(i,this.options.hide,function(){s._removeTooltip(t(this))}),n.removeData("ui-tooltip-open"),this._off(n,"mouseleave focusout keyup"),n[0]!==this.element[0]&&this._off(n,"remove"),this._off(this.document,"mousemove"),e&&"mouseleave"===e.type&&t.each(this.parents,function(e,i){t(i.element).attr("title",i.title),delete s.parents[e]
11514}),o.closing=!0,this._trigger("close",e,{tooltip:i}),o.hiding||(o.closing=!1)),void 0):(n.removeData("ui-tooltip-open"),void 0)},_tooltip:function(e){var i=t("<div>").attr("role","tooltip"),s=t("<div>").appendTo(i),n=i.uniqueId().attr("id");return this._addClass(s,"ui-tooltip-content"),this._addClass(i,"ui-tooltip","ui-widget ui-widget-content"),i.appendTo(this._appendTo(e)),this.tooltips[n]={element:e,tooltip:i}},_find:function(t){var e=t.data("ui-tooltip-id");return e?this.tooltips[e]:null},_removeTooltip:function(t){t.remove(),delete this.tooltips[t.attr("id")]},_appendTo:function(t){var e=t.closest(".ui-front, dialog");return e.length||(e=this.document[0].body),e},_destroy:function(){var e=this;t.each(this.tooltips,function(i,s){var n=t.Event("blur"),o=s.element;n.target=n.currentTarget=o[0],e.close(n,!0),t("#"+i).remove(),o.data("ui-tooltip-title")&&(o.attr("title")||o.attr("title",o.data("ui-tooltip-title")),o.removeData("ui-tooltip-title"))}),this.liveRegion.remove()}}),t.uiBackCompat!==!1&&t.widget("ui.tooltip",t.ui.tooltip,{options:{tooltipClass:null},_tooltip:function(){var t=this._superApply(arguments);return this.options.tooltipClass&&t.tooltip.addClass(this.options.tooltipClass),t}}),t.ui.tooltip}); 11515 11516 11517/* squelettes/js/jquery.caret.min.js */ 11518!function(e){e.fn.caret=function(e){var t=this[0],n=t&&"true"===t.contentEditable;if(0!=arguments.length){if(t){if(-1==e&&(e=this[n?"text":"val"]().length),window.getSelection)n?(t.focus(),window.getSelection().collapse(t.firstChild,e)):t.setSelectionRange(e,e);else if(document.body.createTextRange)if(n){var o=document.body.createTextRange();o.moveToElementText(t),o.moveStart("character",e),o.collapse(!0),o.select()}else{var o=t.createTextRange();o.move("character",e),o.select()}
11518n||t.focus()}return this}if(t){if(window.getSelection){if(n){t.focus();var c=window.getSelection().getRangeAt(0),r=c.cloneRange();return r.selectNodeContents(t),r.setEnd(c.endContainer,c.endOffset),r.toString().length}return t.selectionStart}if(document.selection){if(t.focus(),n){var c=document.selection.createRange(),r=document.body.createTextRange();return r.moveToElementText(t),r.setEndPoint("EndToEnd",c),r.text.length}var e=0,o=t.createTextRange(),r=document.selection.createRange().duplicate(),a=r.getBookmark();for(o.moveToBookmark(a);0!==o.moveStart("character",-1);)e++;return e}if(t.selectionStart)return t.selectionStart}}}(jQuery); 11519 11520 11521/* squelettes/js/jquery.tag-editor.min.js */ 11522 11523!function(t){t.fn.tagEditorInput=function(){var e=" ",i=t(this),a=parseInt(i.css("fontSize")),r=t("<span/>").css({position:"absolute",top:-9999,left:-9999,width:"auto",fontSize:i.css("fontSize"),fontFamily:i.css("fontFamily"),fontWeight:i.css("fontWeight"),letterSpacing:i.css("letterSpacing"),whiteSpace:"nowrap"}),l=function(){if(e!==(e=i.val())){r.text(e);var t=r.width()+a;20>t&&(t=20),t!=i.width()&&i.width(t)}};return r.insertAfter(i),i.bind("keyup keydown focus",l)},t.fn.tagEditor=function(e,a,r){function l(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}var n,o=t.extend({},t.fn.tagEditor.defaults,e),c=this;if(o.dregex=new RegExp("["+o.delimiter.replace("-","-")+"]","g"),"string"==typeof e){var s=[];return c.each(function(){var i=t(this),l=i.data("options"),n=i.next(".tag-editor");if("getTags"==e)s.push({field:i[0],editor:n,tags:n.data("tags")});else if("addTag"==e){if(l.maxTags&&n.data("tags").length>=l.maxTags)return!1;t('<li><div class="tag-editor-spacer"> '+l.delimiter[0]+'</div><div class="tag-editor-tag"></div><div class="tag-editor-delete"><i></i></div></li>').appendTo(n).find(".tag-editor-tag").html('<input type="text" maxlength="'+l.maxLength+'">').addClass("active").find("input").val(a).blur(),r?t(".placeholder",n).remove():n.
11523click()}else"removeTag"==e?(t(".tag-editor-tag",n).filter(function(){return t(this).text()==a}).closest("li").find(".tag-editor-delete").click(),r||n.click()):"destroy"==e&&i.removeClass("tag-editor-hidden-src").removeData("options").off("focus.tag-editor").next(".tag-editor").remove()}),"getTags"==e?s:this}return window.getSelection&&t(document).off("keydown.tag-editor").on("keydown.tag-editor",function(e){if(8==e.which||46==e.which||e.ctrlKey&&88==e.which){try{var a=getSelection(),r="BODY"==document.activeElement.tagName?t(a.getRangeAt(0).startContainer.parentNode).closest(".tag-editor"):0}catch(e){r=0}if(a.rangeCount>0&&r&&r.length){var l=[],n=a.toString().split(r.prev().data("options").dregex);for(i=0;i<n.length;i++){var o=t.trim(n[i]);o&&l.push(o)}return t(".tag-editor-tag",r).each(function(){~t.inArray(t(this).text(),l)&&t(this).closest("li").find(".tag-editor-delete").click()}),!1}}}),c.each(function(){function e(){!o.placeholder||c.length||t(".deleted, .placeholder, input",s).length||s.append('<li class="placeholder"><div>'+o.placeholder+"</div></li>")}function i(i){var a=c.toString();c=t(".tag-editor-tag:not(.deleted)",s).map(function(e,i){var a=t.trim(t(this).hasClass("active")?t(this).find("input").val():t(i).text());return a?a:void 0}).get(),s.data("tags",c),r.val(c.join(o.delimiter[0])),i||a!=c.toString()&&o.onChange(r,s,c),e()}function a(e){for(var a,n=e.closest("li"),d=e.val().replace(/ +/," ").split(o.dregex),g=e.data("old_tag"),f=c.slice(0),h=!1,u=0;u<d.length;u++)if(v=t.trim(d[u]).slice(0,o.maxLength),o.forceLowercase&&(v=v.toLowerCase()),a=o.beforeTagSave(r,s,f,g,v),v=a||v,a!==!1&&v&&(o.removeDuplicates&&~t.inArray(v,f)&&t(".tag-editor-tag",s).each(function(){t(this).text()==v&&t(this).closest("li").remove()}),f.push(v),n.before('<li><div class="tag-editor-spacer"> '+o.delimiter[0]+'</div><div class="tag-editor-tag">'+l(v)+'</div><div class="tag-editor-delete"><i></i></div></li>'),o.maxTags&&f.length>=o.maxTags)){h=!0;break}e.attr("maxlength",o.maxLength).removeData("old_tag").val(""),h?e.blur():e.focus(),i()}var r=t(this),c=[],s=t("<ul "+(o.clickDelete?'oncontextmenu="return false;" ':"")+'class="tag-editor"></ul>').insertAfter(r);r.addClass("tag-editor-hidden-src").data("options",o).on("focus.tag-editor",function(){s.click()}),s.append('<li style="width:1px"> </li>');var d='<li><div class="tag-editor-spacer"> '+o.delimiter[0]+'</div><div class="tag-editor-tag"></div><div class="tag-editor-delete"><i></i></div></li>';s.click(function(e,i){var a,r,l=99999;if(!window.getSelection||""==getSelection())return o.maxTags&&s.data("tags").length>=o.maxTags?(s.find("input").blur(),!1):(n=!0,t("input:focus",s).blur(),n?(n=!0,t(".placeholder",s).remove(),i&&i.length?r="before":t(".tag-editor-tag",s).each(function(){var n=t(this),o=n.offset(),c=o.left,s=o.top;e.pageY>=s&&e.pageY<=s+n.height()&&(e.pageX<c?(r="before",a=c-e.pageX):(r="after",a=e.pageX-c-n.width()),l>a&&(l=a,i=n))}),"before"==r?t(d).insertBefore(i.closest("li")).find(".tag-editor-tag").click():"after"==r?t(d).insertAfter(i.closest("li")).find(".tag-editor-tag").click():t(d).appendTo(s).find(".tag-editor-tag").click(),!1):!1)}),s.on("click",".tag-editor-delete",function(){if(t(this).prev().hasClass("active"))return t(this).closest("li").find("input").caret(-1),!1;var a=t(this).closest("li"),l=a.find(".tag-editor-tag");return o.beforeTagDelete(r,s,c,l.text())===!1?!1:(l.addClass("deleted").animate({width:0},o.animateDelete,function(){a.remove(),e()}),i(),!1)}),o.clickDelete&&s.on("mousedown",".tag-editor-tag",function(a){if(a.ctrlKey||a.which>1){var l=t(this).closest("li"),n=l.find(".tag-editor-tag");return o.beforeTagDelete(r,s,c,n.text())===!1?!1:(n.addClass("deleted").animate({width:0},o.animateDelete,function(){l.remove(),e()}),i(),!1)}}),s.on("click",".tag-editor-tag",function(e){if(o.clickDelete&&(e.ctrlKey||e.which>1))return!1;if(!t(this).hasClass("active")){var i=t(this).text(),a=Math.abs((t(this).offset().left-e.pageX)/t(this).width()),r=parseInt(i.length*a),n=t(this).html('<input type="text" maxlength="'+o.maxLength+'" value="'+l(i)+'">').addClass("active").find("input");if(n.data("old_tag",i).tagEditorInput().focus().caret(r),o.autocomplete){var c=t.extend({},o.autocomplete),d="select"in c?o.autocomplete.select:"";c.select=function(e,i){d&&d(e,i),setTimeout(function(){s.trigger("click",[t(".active",s).find("input").closest("li").next("li").find(".tag-editor-tag")])},20)},n.autocomplete(c)}}return!1}),s.on("blur","input",function(d){d.stopPropagation();var g=t(this),f=g.data("old_tag"),h=t.trim(g.val().replace(/ +/," ").replace(o.dregex,o.delimiter[0]));if(h){if(h.indexOf(o.delimiter[0])>=0)return void a(g);if(h!=f)if(o.forceLowercase&&(h=h.toLowerCase()),cb_val=o.beforeTagSave(r,s,c,f,h),h=cb_val||h,cb_val===!1){if(f)return g.val(f).focus(),n=!1,void i();try{g.closest("li").remove()}catch(d){}f&&i()}
11523else o.removeDuplicates&&t(".tag-editor-tag:not(.active)",s).each(function(){t(this).text()==h&&t(this).closest("li").remove()})}else{if(f&&o.beforeTagDelete(r,s,c,f)===!1)return g.val(f).focus(),n=!1,void i();try{g.closest("li").remove()}catch(d){}f&&i()}g.parent().html(l(h)).removeClass("active"),h!=f&&i(),e()});var g;s.on("paste","input",function(){t(this).removeAttr("maxlength"),g=t(this),setTimeout(function(){a(g)},30)});var f;s.on("keypress","input",function(e){o.delimiter.indexOf(String.fromCharCode(e.which))>=0&&(f=t(this),setTimeout(function(){a(f)},20))}),s.on("keydown","input",function(e){var i=t(this);if((37==e.which||!o.autocomplete&&38==e.which)&&!i.caret()||8==e.which&&!i.val()){var a=i.closest("li").prev("li").find(".tag-editor-tag");return a.length?a.click().find("input").caret(-1):!i.val()||o.maxTags&&s.data("tags").length>=o.maxTags||t(d).insertBefore(i.closest("li")).find(".tag-editor-tag").click(),!1}if((39==e.which||!o.autocomplete&&40==e.which)&&i.caret()==i.val().length){var l=i.closest("li").next("li").find(".tag-editor-tag");return l.length?l.click().find("input").caret(0):i.val()&&s.click(),!1}if(9==e.which){if(e.shiftKey){var a=i.closest("li").prev("li").find(".tag-editor-tag");if(a.length)a.click().find("input").caret(0);else{if(!i.val()||o.maxTags&&s.data("tags").length>=o.maxTags)return r.attr("disabled","disabled"),void setTimeout(function(){r.removeAttr("disabled")},30);t(d).insertBefore(i.closest("li")).find(".tag-editor-tag").click()}return!1}var l=i.closest("li").next("li").find(".tag-editor-tag");if(l.length)l.click().find("input").caret(0);else{if(!i.val())return;s.click()}return!1}if(!(46!=e.which||t.trim(i.val())&&i.caret()!=i.val().length)){var l=i.closest("li").next("li").find(".tag-editor-tag");return l.length?l.click().find("input").caret(0):i.val()&&s.click(),!1}if(13==e.which)return s.trigger("click",[i.closest("li").next("li").find(".tag-editor-tag")]),o.maxTags&&s.data("tags").length>=o.maxTags&&s.find("input").blur(),!1;if(36!=e.which||i.caret()){if(35==e.which&&i.caret()==i.val().length)s.find(".tag-editor-tag").last().click();else if(27==e.which)return i.val(i.data("old_tag")?i.data("old_tag"):"").blur(),!1}else s.find(".tag-editor-tag").first().click()});for(var h=o.initialTags.length?o.initialTags:r.val().split(o.dregex),u=0;u<h.length&&!(o.maxTags&&u>=o.maxTags);u++){var v=t.trim(h[u].replace(/ +/," "));v&&(o.forceLowercase&&(v=v.toLowerCase()),c.push(v),s.append('<li><div class="tag-editor-spacer"> '+o.delimiter[0]+'</div><div class="tag-editor-tag">'+l(v)+'</div><div class="tag-editor-delete"><i></i></div></li>'))}i(!0),o.sortable&&t.fn.sortable&&s.sortable({distance:5,cancel:".tag-editor-spacer, input",helper:"clone",update:function(){i()}})})},t.fn.tagEditor.defaults={initialTags:[],maxTags:0,maxLength:50,delimiter:",;",placeholder:"",forceLowercase:!0,removeDuplicates:!0,clickDelete:!1,animateDelete:175,sortable:!0,autocomplete:null,onChange:function(){},beforeTagSave:function(){},beforeTagDelete:function(){}}}(jQuery); 11524 11525 11526/* squelettes/js/popper.min.js */ 11527(function(e,t){'object'==typeof exports&&'undefined'!=typeof module?module.exports=t():'function'==typeof define&&define.amd?define(t):e.Popper=t()})(this,function(){'use strict';function e(e){return e&&'[object Function]'==={}.toString.call(e)}function t(e,t){if(1!==e.nodeType)return[];var o=getComputedStyle(e,null);return t?o[t]:o}
vendor: 18,515 bytes, line 11527
11527function o(e){return'HTML'===e.nodeName?e:e.parentNode||e.host}function n(e){if(!e)return document.body;switch(e.nodeName){case'HTML':case'BODY':return e.ownerDocument.body;case'#document':return e.body;}var i=t(e),r=i.overflow,p=i.overflowX,s=i.overflowY;return/(auto|scroll|overlay)/.test(r+s+p)?e:n(o(e))}function r(e){return 11===e?re:10===e?pe:re||pe}function p(e){if(!e)return document.documentElement;for(var o=r(10)?document.body:null,n=e.offsetParent;n===o&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&'BODY'!==i&&'HTML'!==i?-1!==['TD','TABLE'].indexOf(n.nodeName)&&'static'===t(n,'position')?p(n):n:e?e.ownerDocument.documentElement:document.documentElement}function s(e){var t=e.nodeName;return'BODY'!==t&&('HTML'===t||p(e.firstElementChild)===e)}function d(e){return null===e.parentNode?e:d(e.parentNode)}function a(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var o=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,n=o?e:t,i=o?t:e,r=document.createRange();r.setStart(n,0),r.setEnd(i,0);var l=r.commonAncestorContainer;if(e!==l&&t!==l||n.contains(i))return s(l)?l:p(l);var f=d(e);return f.host?a(f.host,t):a(e,d(t).host)}function l(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:'top',o='top'===t?'scrollTop':'scrollLeft',n=e.nodeName;if('BODY'===n||'HTML'===n){var i=e.ownerDocument.documentElement,r=e.ownerDocument.scrollingElement||i;return r[o]}return e[o]}function f(e,t){var o=2<arguments.length&&void 0!==arguments[2]&&arguments[2],n=l(t,'top'),i=l(t,'left'),r=o?-1:1;return e.top+=n*r,e.bottom+=n*r,e.left+=i*r,e.right+=i*r,e}function m(e,t){var o='x'===t?'Left':'Top',n='Left'==o?'Right':'Bottom';return parseFloat(e['border'+o+'Width'],10)+parseFloat(e['border'+n+'Width'],10)}function h(e,t,o,n){return $(t['offset'+e],t['scroll'+e],o['client'+e],o['offset'+e],o['scroll'+e],r(10)?o['offset'+e]+n['margin'+('Height'===e?'Top':'Left')]+n['margin'+('Height'===e?'Bottom':'Right')]:0)}function c(){var e=document.body,t=document.documentElement,o=r(10)&&getComputedStyle(t);return{height:h('Height',e,t,o),width:h('Width',e,t,o)}}function g(e){return le({},e,{right:e.left+e.width,bottom:e.top+e.height})}function u(e){var o={};try{if(r(10)){o=e.getBoundingClientRect();var n=l(e,'top'),i=l(e,'left');o.top+=n,o.left+=i,o.bottom+=n,o.right+=i}else o=e.getBoundingClientRect()}catch(t){}var p={left:o.left,top:o.top,width:o.right-o.left,height:o.bottom-o.top},s='HTML'===e.nodeName?c():{},d=s.width||e.clientWidth||p.right-p.left,a=s.height||e.clientHeight||p.bottom-p.top,f=e.offsetWidth-d,h=e.offsetHeight-a;if(f||h){var u=t(e);f-=m(u,'x'),h-=m(u,'y'),p.width-=f,p.height-=h}return g(p)}function b(e,o){var i=2<arguments.length&&void 0!==arguments[2]&&arguments[2],p=r(10),s='HTML'===o.nodeName,d=u(e),a=u(o),l=n(e),m=t(o),h=parseFloat(m.borderTopWidth,10),c=parseFloat(m.borderLeftWidth,10);i&&'HTML'===o.nodeName&&(a.top=$(a.top,0),a.left=$(a.left,0));var b=g({top:d.top-a.top-h,left:d.left-a.left-c,width:d.width,height:d.height});if(b.marginTop=0,b.marginLeft=0,!p&&s){var y=parseFloat(m.marginTop,10),w=parseFloat(m.marginLeft,10);b.top-=h-y,b.bottom-=h-y,b.left-=c-w,b.right-=c-w,b.marginTop=y,b.marginLeft=w}return(p&&!i?o.contains(l):o===l&&'BODY'!==l.nodeName)&&(b=f(b,o)),b}function y(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],o=e.ownerDocument.documentElement,n=b(e,o),i=$(o.clientWidth,window.innerWidth||0),r=$(o.clientHeight,window.innerHeight||0),p=t?0:l(o),s=t?0:l(o,'left'),d={top:p-n.top+n.marginTop,left:s-n.left+n.marginLeft,width:i,height:r};return g(d)}function w(e){var n=e.nodeName;return'BODY'===n||'HTML'===n?!1:'fixed'===t(e,'position')||w(o(e))}function E(e){if(!e||!e.parentElement||r())return document.documentElement;for(var o=e.parentElement;o&&'none'===t(o,'transform');)o=o.parentElement;return o||document.documentElement}function v(e,t,i,r){var p=4<arguments.length&&void 0!==arguments[4]&&arguments[4],s={top:0,left:0},d=p?E(e):a(e,t);if('viewport'===r)s=y(d,p);else{var l;'scrollParent'===r?(l=n(o(t)),'BODY'===l.nodeName&&(l=e.ownerDocument.documentElement)):'window'===r?l=e.ownerDocument.documentElement:l=r;var f=b(l,d,p);if('HTML'===l.nodeName&&!w(d)){var m=c(),h=m.height,g=m.width;s.top+=f.top-f.marginTop,s.bottom=h+f.top,s.left+=f.left-f.marginLeft,s.right=g+f.left}else s=f}return s.left+=i,s.top+=i,s.right-=i,s.bottom-=i,s}function x(e){var t=e.width,o=e.height;return t*o}function O(e,t,o,n,i){var r=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf('auto'))return e;var p=v(o,n,r,i),s={top:{width:p.width,height:t.top-p.top},right:{width:p.right-t.right,height:p.height},bottom:{width:p.width,height:p.bottom-t.bottom},left:{width:t.left-p.left,height:p.height}},d=Object.keys(s).map(function(e){return le({key:e},s[e],{area:x(s[e])})}).sort(function(e,t){return t.area-e.area}),a=d.filter(function(e){var t=e.width,n=e.height;return t>=o.clientWidth&&n>=o.clientHeight}),l=0<a.length?a[0].key:d[0].key,f=e.split('-')[1];return l+(f?'-'+f:'')}function L(e,t,o){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null,i=n?E(t):a(t,o);return b(o,i,n)}function S(e){var t=getComputedStyle(e),o=parseFloat(t.marginTop)+parseFloat(t.marginBottom),n=parseFloat(t.marginLeft)+parseFloat(t.marginRight),i={width:e.offsetWidth+n,height:e.offsetHeight+o};return i}function T(e){var t={left:'right',right:'left',bottom:'top',top:'bottom'};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function C(e,t,o){o=o.split('-')[0];var n=S(e),i={width:n.width,height:n.height},r=-1!==['right','left'].indexOf(o),p=r?'top':'left',s=r?'left':'top',d=r?'height':'width',a=r?'width':'height';return i[p]=t[p]+t[d]/2-n[d]/2,i[s]=o===s?t[s]-n[a]:t[T(s)],i}function D(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function N(e,t,o){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===o});var n=D(e,function(e){return e[t]===o});return e.indexOf(n)}function P(t,o,n){var i=void 0===n?t:t.slice(0,N(t,'name',n));return i.forEach(function(t){t['function']&&console.warn('`modifier.function` is deprecated, use `modifier.fn`!');var n=t['function']||t.fn;t.enabled&&e(n)&&(o.offsets.popper=g(o.offsets.popper),o.offsets.reference=g(o.offsets.reference),o=n(o,t))}),o}function k(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=L(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=O(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=C(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?'fixed':'absolute',e=P(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function W(e,t){return e.some(function(e){var o=e.name,n=e.enabled;return n&&o===t})}function B(e){for(var t=[!1,'ms','Webkit','Moz','O'],o=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<t.length;n++){var i=t[n],r=i?''+i+o:e;if('undefined'!=typeof document.body.style[r])return r}return null}function H(){return this.state.isDestroyed=!0,W(this.modifiers,'applyStyle')&&(this.popper.removeAttribute('x-placement'),this.popper.style.position='',this.popper.style.top='',this.popper.style.left='',this.popper.style.right='',this.popper.style.bottom='',this.popper.style.willChange='',this.popper.style[B('transform')]=''),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function A(e){var t=e.ownerDocument;return t?t.defaultView:window}function M(e,t,o,i){var r='BODY'===e.nodeName,p=r?e.ownerDocument.defaultView:e;p.addEventListener(t,o,{passive:!0}),r||M(n(p.parentNode),t,o,i),i.push(p)}function I(e,t,o,i){o.updateBound=i,A(e).addEventListener('resize',o.updateBound,{passive:!0});var r=n(e);return M(r,'scroll',o.updateBound,o.scrollParents),o.scrollElement=r,o.eventsEnabled=!0,o}function F(){this.state.eventsEnabled||(this.state=I(this.reference,this.options,this.state,this.scheduleUpdate))}function R(e,t){return A(e).removeEventListener('resize',t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener('scroll',t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function U(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=R(this.reference,this.state))}function Y(e){return''!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function j(e,t){Object.keys(t).forEach(function(o){var n='';-1!==['width','height','top','right','bottom','left'].indexOf(o)&&Y(t[o])&&(n='px'),e.style[o]=t[o]+n})}function K(e,t){Object.keys(t).forEach(function(o){var n=t[o];!1===n?e.removeAttribute(o):e.setAttribute(o,t[o])})}function q(e,t,o){var n=D(e,function(e){var o=e.name;return o===t}),i=!!n&&e.some(function(e){return e.name===o&&e.enabled&&e.order<n.order});if(!i){var r='`'+t+'`';console.warn('`'+o+'`'+' modifier is required by '+r+' modifier in order to work, be sure to include it before '+r+'!')}return i}function G(e){return'end'===e?'start':'start'===e?'end':e}function z(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],o=me.indexOf(e),n=me.slice(o+1).concat(me.slice(0,o));return t?n.reverse():n}function V(e,t,o,n){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+i[1],p=i[2];if(!r)return e;if(0===p.indexOf('%')){var s;switch(p){case'%p':s=o;break;case'%':case'%r':default:s=n;}var d=g(s);return d[t]/100*r}if('vh'===p||'vw'===p){var a;return a='vh'===p?$(document.documentElement.clientHeight,window.innerHeight||0):$(document.documentElement.clientWidth,window.innerWidth||0),a/100*r}return r}function _(e,t,o,n){var i=[0,0],r=-1!==['right','left'].indexOf(n),p=e.split(/(\+|\-)/).map(function(e){return e.trim()}),s=p.indexOf(D(p,function(e){return-1!==e.search(/,|\s/)}));p[s]&&-1===p[s].indexOf(',')&&console.warn('Offsets separated by white space(s) are deprecated, use a comma (,) instead.');var d=/\s*,\s*|\s+/,a=-1===s?[p]:[p.slice(0,s).concat([p[s].split(d)[0]]),[p[s].split(d)[1]].concat(p.slice(s+1))];return a=a.map(function(e,n){var i=(1===n?!r:r)?'height':'width',p=!1;return e.reduce(function(e,t){return''===e[e.length-1]&&-1!==['+','-'].indexOf(t)?(e[e.length-1]=t,p=!0,e):p?(e[e.length-1]+=t,p=!1,e):e.concat(t)},[]).map(function(e){return V(e,i,t,o)})}),a.forEach(function(e,t){e.forEach(function(o,n){Y(o)&&(i[t]+=o*('-'===e[n-1]?-1:1))})}),i}function X(e,t){var o,n=t.offset,i=e.placement,r=e.offsets,p=r.popper,s=r.reference,d=i.split('-')[0];return o=Y(+n)?[+n,0]:_(n,p,s,d),'left'===d?(p.top+=o[0],p.left-=o[1]):'right'===d?(p.top+=o[0],p.left+=o[1]):'top'===d?(p.left+=o[0],p.top-=o[1]):'bottom'===d&&(p.left+=o[0],p.top+=o[1]),e.popper=p,e}for(var J=Math.min,Q=Math.round,Z=Math.floor,$=Math.max,ee='undefined'!=typeof window&&'undefined'!=typeof document,te=['Edge','Trident','Firefox'],oe=0,ne=0;ne<te.length;ne+=1)if(ee&&0<=navigator.userAgent.indexOf(te[ne])){oe=1;break}var i=ee&&window.Promise,ie=i?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},oe))}},re=ee&&!!(window.MSInputMethodContext&&document.documentMode),pe=ee&&/MSIE 10/.test(navigator.userAgent),se=function(e,t){if(!(e instanceof t))throw new TypeError('Cannot call a class as a function')},de=function(){function e(e,t){for(var o,n=0;n<t.length;n++)o=t[n],o.enumerable=o.enumerable||!1,o.configurable=!0,'value'in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),ae=function(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e},le=Object.assign||function(e){for(var t,o=1;o<arguments.length;o++)for(var n in t=arguments[o],t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},fe=['auto-start','auto','auto-end','top-start','top','top-end','right-start','right','right-end','bottom-end','bottom','bottom-start','left-end','left','left-start'],me=fe.slice(3),he={FLIP:'flip',CLOCKWISE:'clockwise',COUNTERCLOCKWISE:'counterclockwise'},ce=function(){function t(o,n){var i=this,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};se(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=ie(this.update.bind(this)),this.options=le({},t.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=o&&o.jquery?o[0]:o,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(le({},t.Defaults.modifiers,r.modifiers)).forEach(function(e){i.options.modifiers[e]=le({},t.Defaults.modifiers[e]||{},r.modifiers?r.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return le({name:e},i.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(t){t.enabled&&e(t.onLoad)&&t.onLoad(i.reference,i.popper,i.options,t,i.state)}),this.update();var p=this.options.eventsEnabled;p&&this.enableEventListeners(),this.state.eventsEnabled=p}return de(t,[{key:'update',value:function(){return k.call(this)}},{key:'destroy',value:function(){return H.call(this)}},{key:'enableEventListeners',value:function(){return F.call(this)}},{key:'disableEventListeners',value:function(){return U.call(this)}}]),t}();return ce.Utils=('undefined'==typeof window?global:window).PopperUtils,ce.placements=fe,ce.Defaults={placement:'bottom',positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,o=t.split('-')[0],n=t.split('-')[1];if(n){var i=e.offsets,r=i.reference,p=i.popper,s=-1!==['bottom','top'].indexOf(o),d=s?'left':'top',a=s?'width':'height',l={start:ae({},d,r[d]),end:ae({},d,r[d]+r[a]-p[a])};e.offsets.popper=le({},p,l[n])}return e}},offset:{order:200,enabled:!0,fn:X,offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var o=t.boundariesElement||p(e.instance.popper);e.instance.reference===o&&(o=p(o));var n=B('transform'),i=e.instance.popper.style,r=i.top,s=i.left,d=i[n];i.top='',i.left='',i[n]='';var a=v(e.instance.popper,e.instance.reference,t.padding,o,e.positionFixed);i.top=r,i.left=s,i[n]=d,t.boundaries=a;var l=t.priority,f=e.offsets.popper,m={primary:function(e){var o=f[e];return f[e]<a[e]&&!t.escapeWithReference&&(o=$(f[e],a[e])),ae({},e,o)},secondary:function(e){var o='right'===e?'left':'top',n=f[o];return f[e]>a[e]&&!t.escapeWithReference&&(n=J(f[o],a[e]-('right'===e?f.width:f.height))),ae({},o,n)}};return l.forEach(function(e){var t=-1===['left','top'].indexOf(e)?'secondary':'primary';f=le({},f,m[t](e))}),e.offsets.popper=f,e},priority:['left','right','top','bottom'],padding:5,boundariesElement:'scrollParent'},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,o=t.popper,n=t.reference,i=e.placement.split('-')[0],r=Z,p=-1!==['top','bottom'].indexOf(i),s=p?'right':'bottom',d=p?'left':'top',a=p?'width':'height';return o[s]<r(n[d])&&(e.offsets.popper[d]=r(n[d])-o[a]),o[d]>r(n[s])&&(e.offsets.popper[d]=r(n[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,o){var n;if(!q(e.instance.modifiers,'arrow','keepTogether'))return e;var i=o.element;if('string'==typeof i){if(i=e.instance.popper.querySelector(i),!i)return e;}else if(!e.instance.popper.contains(i))return console.warn('WARNING: `arrow.element` must be child of its popper element!'),e;var r=e.placement.split('-')[0],p=e.offsets,s=p.popper,d=p.reference,a=-1!==['left','right'].indexOf(r),l=a?'height':'width',f=a?'Top':'Left',m=f.toLowerCase(),h=a?'left':'top',c=a?'bottom':'right',u=S(i)[l];d[c]-u<s[m]&&(e.offsets.popper[m]-=s[m]-(d[c]-u)),d[m]+u>s[c]&&(e.offsets.popper[m]+=d[m]+u-s[c]),e.offsets.popper=g(e.offsets.popper);var b=d[m]+d[l]/2-u/2,y=t(e.instance.popper),w=parseFloat(y['margin'+f],10),E=parseFloat(y['border'+f+'Width'],10),v=b-e.offsets.popper[m]-w-E;return v=$(J(s[l]-u,v),0),e.arrowElement=i,e.offsets.arrow=(n={},ae(n,m,Q(v)),ae(n,h,''),n),e},element:'[x-arrow]'},flip:{order:600,enabled:!0,fn:function(e,t){if(W(e.instance.modifiers,'inner'))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var o=v(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),n=e.placement.split('-')[0],i=T(n),r=e.placement.split('-')[1]||'',p=[];switch(t.behavior){case he.FLIP:p=[n,i];break;case he.CLOCKWISE:p=z(n);break;case he.COUNTERCLOCKWISE:p=z(n,!0);break;default:p=t.behavior;}return p.forEach(function(s,d){if(n!==s||p.length===d+1)return e;n=e.placement.split('-')[0],i=T(n);var a=e.offsets.popper,l=e.offsets.reference,f=Z,m='left'===n&&f(a.right)>f(l.left)||'right'===n&&f(a.left)<f(l.right)||'top'===n&&f(a.bottom)>f(l.top)||'bottom'===n&&f(a.top)<f(l.bottom),h=f(a.left)<f(o.left),c=f(a.right)>f(o.right),g=f(a.top)<f(o.top),u=f(a.bottom)>f(o.bottom),b='left'===n&&h||'right'===n&&c||'top'===n&&g||'bottom'===n&&u,y=-1!==['top','bottom'].indexOf(n),w=!!t.flipVariations&&(y&&'start'===r&&h||y&&'end'===r&&c||!y&&'start'===r&&g||!y&&'end'===r&&u);(m||b||w)&&(e.flipped=!0,(m||b)&&(n=p[d+1]),w&&(r=G(r)),e.placement=n+(r?'-'+r:''),e.offsets.popper=le({},e.offsets.popper,C(e.instance.popper,e.offsets.reference,e.placement)),e=P(e.instance.modifiers,e,'flip'))}),e},behavior:'flip',padding:5,boundariesElement:'viewport'},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,o=t.split('-')[0],n=e.offsets,i=n.popper,r=n.reference,p=-1!==['left','right'].indexOf(o),s=-1===['top','left'].indexOf(o);return i[p?'left':'top']=r[o]-(s?i[p?'width':'height']:0),e.placement=T(t),e.offsets.popper=g(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!q(e.instance.modifiers,'hide','preventOverflow'))return e;var t=e.offsets.reference,o=D(e.instance.modifiers,function(e){return'preventOverflow'===e.name}).boundaries;if(t.bottom<o.top||t.left>o.right||t.top>o.bottom||t.right<o.left){if(!0===e.hide)return e;e.hide=!0,e.attributes['x-out-of-boundaries']=''}else{if(!1===e.hide)return e;e.hide=!1,e.attributes['x-out-of-boundaries']=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var o=t.x,n=t.y,i=e.offsets.popper,r=D(e.instance.modifiers,function(e){return'applyStyle'===e.name}).gpuAcceleration;
11527void 0!==r&&console.warn('WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!');var s,d,a=void 0===r?t.gpuAcceleration:r,l=p(e.instance.popper),f=u(l),m={position:i.position},h={left:Z(i.left),top:Q(i.top),bottom:Q(i.bottom),right:Z(i.right)},c='bottom'===o?'top':'bottom',g='right'===n?'left':'right',b=B('transform');if(d='bottom'==c?-f.height+h.bottom:h.top,s='right'==g?-f.width+h.right:h.left,a&&b)m[b]='translate3d('+s+'px, '+d+'px, 0)',m[c]=0,m[g]=0,m.willChange='transform';else{var y='bottom'==c?-1:1,w='right'==g?-1:1;m[c]=d*y,m[g]=s*w,m.willChange=c+', '+g}var E={"x-placement":e.placement};return e.attributes=le({},E,e.attributes),e.styles=le({},m,e.styles),e.arrowStyles=le({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:'bottom',y:'right'},applyStyle:{order:900,enabled:!0,fn:function(e){return j(e.instance.popper,e.styles),K(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&j(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,o,n,i){var r=L(i,t,e,o.positionFixed),p=O(o.placement,r,t,e,o.modifiers.flip.boundariesElement,o.modifiers.flip.padding);return t.setAttribute('x-placement',p),j(t,{position:o.positionFixed?'fixed':'absolute'}),o},gpuAcceleration:void 0}}},ce}); 11528 11529 11530/* squelettes/js/bootstrap.min.js */ 11531 11532!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("popper.js"),require("jquery")):"function"==typeof define&&define.amd?define(["exports","popper.js","jquery"],e):e(t.bootstrap={},t.Popper,t.jQuery)}(this,function(t,u,g){"use strict";function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function s(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}function l(o){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},e=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(e=e.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),e.forEach(function(t){var e,n,i;e=o,i=r[n=t],n in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i})}return o}u=u&&u.hasOwnProperty("default")?u.default:u,g=g&&g.hasOwnProperty("default")?g.default:g;var e="transitionend";function n(t){var e=this,n=!1;return g(this).one(_.TRANSITION_END,function(){n=!0}),setTimeout(function(){n||_.triggerTransitionEnd(e)},t),this}var _={TRANSITION_END:"bsTransitionEnd",getUID:function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},getSelectorFromElement:function(t){var e=t.getAttribute("data-target");if(!e||"#"===e){var n=t.getAttribute("href");e=n&&"#"!==n?n.trim():""}return e&&document.querySelector(e)?e:null},getTransitionDurationFromElement:function(t){if(!t)return 0;var e=g(t).css("transition-duration"),n=g(t).css("transition-delay"),i=parseFloat(e),o=parseFloat(n);return i||o?(e=e.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(e)+parseFloat(n))):0},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(t){g(t).trigger(e)},supportsTransitionEnd:function(){return Boolean(e)},isElement:function(t){return(t[0]||t).nodeType},typeCheckConfig:function(t,e,n){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var o=n[i],r=e[i],s=r&&_.isElement(r)?"element":(a=r,{}.toString.call(a).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(o).test(s))throw new Error(t.toUpperCase()+': Option "'+i+'" provided type "'+s+'" but expected type "'+o+'".')}var a},findShadowRoot:function(t){if(!document.documentElement.attachShadow)return null;if("function"!=typeof t.getRootNode)return t instanceof ShadowRoot?t:t.parentNode?_.findShadowRoot(t.parentNode):null;var e=t.getRootNode();return e instanceof ShadowRoot?e:null}};g.fn.emulateTransitionEnd=n,g.event.special[_.TRANSITION_END]={bindType:e,delegateType:e,handle:function(t){if(g(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}};var o="alert",r="bs.alert",a="."+r,c=g.fn[o],h={CLOSE:"close"+a,CLOSED:"closed"+a,CLICK_DATA_API:"click"+a+".data-api"},f="alert",d="fade",m="show",p=function(){function i(t){this._element=t}var t=i.prototype;return t.close=function(t){var e=this._element;t&&(e=this._getRootElement(t)),this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)}
11532,t.dispose=function(){g.removeData(this._element,r),this._element=null},t._getRootElement=function(t){var e=_.getSelectorFromElement(t),n=!1;return e&&(n=document.querySelector(e)),n||(n=g(t).closest("."+f)[0]),n},t._triggerCloseEvent=function(t){var e=g.Event(h.CLOSE);return g(t).trigger(e),e},t._removeElement=function(e){var n=this;if(g(e).removeClass(m),g(e).hasClass(d)){var t=_.getTransitionDurationFromElement(e);g(e).one(_.TRANSITION_END,function(t){return n._destroyElement(e,t)}).emulateTransitionEnd(t)}else this._destroyElement(e)},t._destroyElement=function(t){g(t).detach().trigger(h.CLOSED).remove()},i._jQueryInterface=function(n){return this.each(function(){var t=g(this),e=t.data(r);e||(e=new i(this),t.data(r,e)),"close"===n&&e[n](this)})},i._handleDismiss=function(e){return function(t){t&&t.preventDefault(),e.close(this)}},s(i,null,[{key:"VERSION",get:function(){return"4.2.1"}}]),i}();g(document).on(h.CLICK_DATA_API,'[data-dismiss="alert"]',p._handleDismiss(new p)),g.fn[o]=p._jQueryInterface,g.fn[o].Constructor=p,g.fn[o].noConflict=function(){return g.fn[o]=c,p._jQueryInterface};var v="button",E="bs.button",y="."+E,C=".data-api",T=g.fn[v],S="active",b="btn",I="focus",D='[data-toggle^="button"]',w='[data-toggle="buttons"]',A='input:not([type="hidden"])',N=".active",O=".btn",k={CLICK_DATA_API:"click"+y+C,FOCUS_BLUR_DATA_API:"focus"+y+C+" blur"+y+C},P=function(){function n(t){this._element=t}var t=n.prototype;return t.toggle=function(){var t=!0,e=!0,n=g(this._element).closest(w)[0];if(n){var i=this._element.querySelector(A);if(i){if("radio"===i.type)if(i.checked&&this._element.classList.contains(S))t=!1;else{var o=n.querySelector(N);o&&g(o).removeClass(S)}if(t){if(i.hasAttribute("disabled")||n.hasAttribute("disabled")||i.classList.contains("disabled")||n.classList.contains("disabled"))return;i.checked=!this._element.classList.contains(S),g(i).trigger("change")}i.focus(),e=!1}}e&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(S)),t&&g(this._element).toggleClass(S)},t.dispose=function(){g.removeData(this._element,E),this._element=null},n._jQueryInterface=function(e){return this.each(function(){var t=g(this).data(E);t||(t=new n(this),g(this).data(E,t)),"toggle"===e&&t[e]()})},s(n,null,[{key:"VERSION",get:function(){return"4.2.1"}}]),n}();g(document).on(k.CLICK_DATA_API,D,function(t){t.preventDefault();var e=t.target;g(e).hasClass(b)||(e=g(e).closest(O)),P._jQueryInterface.call(g(e),"toggle")}).on(k.FOCUS_BLUR_DATA_API,D,function(t){var e=g(t.target).closest(O)[0];g(e).toggleClass(I,/^focus(in)?$/.test(t.type))}),g.fn[v]=P._jQueryInterface,g.fn[v].Constructor=P,g.fn[v].noConflict=function(){return g.fn[v]=T,P._jQueryInterface};var L="carousel",j="bs.carousel",H="."+j,R=".data-api",U=g.fn[L],W={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},x={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},F="next",q="prev",M="left",K="right",Q={SLIDE:"slide"+H,SLID:"slid"+H,KEYDOWN:"keydown"+H,MOUSEENTER:"mouseenter"+H,MOUSELEAVE:"mouseleave"+H,TOUCHSTART:"touchstart"+H,TOUCHMOVE:"touchmove"+H,TOUCHEND:"touchend"+H,POINTERDOWN:"pointerdown"+H,POINTERUP:"pointerup"+H,DRAG_START:"dragstart"+H,LOAD_DATA_API:"load"+H+R,CLICK_DATA_API:"click"+H+R},B="carousel",V="active",Y="slide",X="carousel-item-right",z="carousel-item-left",G="carousel-item-next",J="carousel-item-prev",Z="pointer-event",$=".active",tt=".active.carousel-item",et=".carousel-item",nt=".carousel-item img",it=".carousel-item-next, .carousel-item-prev",ot=".carousel-indicators",rt="[data-slide], [data-slide-to]",st='[data-ride="carousel"]',at={TOUCH:"touch",PEN:"pen"},lt=function(){function r(t,e){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(e),this._element=t,this._indicatorsElement=this._element.querySelector(ot),this._touchSupported="ontouchstart"in document.documentElement||0<navigator.maxTouchPoints,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var t=r.prototype;return t.next=function(){this._isSliding||this._slide(F)},t.nextWhenVisible=function(){!document.hidden&&g(this._element).is(":visible")&&"hidden"
11532!==g(this._element).css("visibility")&&this.next()},t.prev=function(){this._isSliding||this._slide(q)},t.pause=function(t){t||(this._isPaused=!0),this._element.querySelector(it)&&(_.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},t.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},t.to=function(t){var e=this;this._activeElement=this._element.querySelector(tt);var n=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)g(this._element).one(Q.SLID,function(){return e.to(t)});else{if(n===t)return this.pause(),void this.cycle();var i=n<t?F:q;this._slide(i,this._items[t])}},t.dispose=function(){g(this._element).off(H),g.removeData(this._element,j),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},t._getConfig=function(t){return t=l({},W,t),_.typeCheckConfig(L,t,x),t},t._handleSwipe=function(){var t=Math.abs(this.touchDeltaX);if(!(t<=40)){var e=t/this.touchDeltaX;0<e&&this.prev(),e<0&&this.next()}},t._addEventListeners=function(){var e=this;this._config.keyboard&&g(this._element).on(Q.KEYDOWN,function(t){return e._keydown(t)}),"hover"===this._config.pause&&g(this._element).on(Q.MOUSEENTER,function(t){return e.pause(t)}).on(Q.MOUSELEAVE,function(t){return e.cycle(t)}),this._addTouchEventListeners()},t._addTouchEventListeners=function(){var n=this;if(this._touchSupported){var e=function(t){n._pointerEvent&&at[t.originalEvent.pointerType.toUpperCase()]?n.touchStartX=t.originalEvent.clientX:n._pointerEvent||(n.touchStartX=t.originalEvent.touches[0].clientX)},i=function(t){n._pointerEvent&&at[t.originalEvent.pointerType.toUpperCase()]&&(n.touchDeltaX=t.originalEvent.clientX-n.touchStartX),n._handleSwipe(),"hover"===n._config.pause&&(n.pause(),n.touchTimeout&&clearTimeout(n.touchTimeout),n.touchTimeout=setTimeout(function(t){return n.cycle(t)},500+n._config.interval))};g(this._element.querySelectorAll(nt)).on(Q.DRAG_START,function(t){return t.preventDefault()}),this._pointerEvent?(g(this._element).on(Q.POINTERDOWN,function(t){return e(t)}),g(this._element).on(Q.POINTERUP,function(t){return i(t)}),this._element.classList.add(Z)):(g(this._element).on(Q.TOUCHSTART,function(t){return e(t)}),g(this._element).on(Q.TOUCHMOVE,function(t){var e;(e=t).originalEvent.touches&&1<e.originalEvent.touches.length?n.touchDeltaX=0:n.touchDeltaX=e.originalEvent.touches[0].clientX-n.touchStartX}),g(this._element).on(Q.TOUCHEND,function(t){return i(t)}))}},t._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case 37:t.preventDefault(),this.prev();break;case 39:t.preventDefault(),this.next()}},t._getItemIndex=function(t){return this._items=t&&t.parentNode?[].slice.call(t.parentNode.querySelectorAll(et)):[],this._items.indexOf(t)},t._getItemByDirection=function(t,e){var n=t===F,i=t===q,o=this._getItemIndex(e),r=this._items.length-1;if((i&&0===o||n&&o===r)&&!this._config.wrap)return e;var s=(o+(t===q?-1:1))%this._items.length;return-1===s?this._items[this._items.length-1]:this._items[s]},t._triggerSlideEvent=function(t,e){var n=this._getItemIndex(t),i=this._getItemIndex(this._element.querySelector(tt)),o=g.Event(Q.SLIDE,{relatedTarget:t,direction:e,from:i,to:n});return g(this._element).trigger(o),o},t._setActiveIndicatorElement=function(t){if(this._indicatorsElement){var e=[].slice.call(this._indicatorsElement.querySelectorAll($));g(e).removeClass(V);var n=this._indicatorsElement.children[this._getItemIndex(t)];n&&g(n).addClass(V)}},t._slide=function(t,e){var n,i,o,r=this,s=this._element.querySelector(tt),a=this._getItemIndex(s),l=e||s&&this._getItemByDirection(t,s),c=this._getItemIndex(l),h=Boolean(this._interval);if(o=t===F?(n=z,i=G,M):(n=X,i=J,K),l&&g(l).hasClass(V))this._isSliding=!1;else if(!this._triggerSlideEvent(l,o).isDefaultPrevented()&&s&&l){this._isSliding=!0,h&&this.pause(),this._setActiveIndicatorElement(l);var u=g.Event(Q.SLID,{relatedTarget:l,direction:o,from:a,to:c});if(g(this._element).hasClass(Y)){g(l).addClass(i),_.reflow(l),g(s).addClass(n),g(l).addClass(n);var f=parseInt(l.getAttribute("data-interval"),10);this._config.interval=f?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,f):this._config.defaultInterval||this._config.interval;var d=_.getTransitionDurationFromElement(s);g(s).one(_.TRANSITION_END,function(){g(l).removeClass(n+" "+i).addClass(V),g(s).removeClass(V+" "+i+" "+n),r._isSliding=!1,setTimeout(function(){return g(r._element).trigger(u)},0)}).emulateTransitionEnd(d)}else g(s).removeClass(V),g(l).addClass(V),this._isSliding=!1,g(this._element).trigger(u);h&&this.cycle()}},r._jQueryInterface=function(i){return this.each(function(){var t=g(this).data(j),e=l({},W,g(this).data());"object"==typeof i&&(e=l({},e,i));var n="string"==typeof i?i:e.slide;if(t||(t=new r(this,e),g(this).data(j,t)),"number"==typeof i)t.to(i);else if("string"==typeof n){if("undefined"==typeof t[n])throw new TypeError('No method n
11532amed "'+n+'"');t[n]()}else e.interval&&(t.pause(),t.cycle())})},r._dataApiClickHandler=function(t){var e=_.getSelectorFromElement(this);if(e){var n=g(e)[0];if(n&&g(n).hasClass(B)){var i=l({},g(n).data(),g(this).data()),o=this.getAttribute("data-slide-to");o&&(i.interval=!1),r._jQueryInterface.call(g(n),i),o&&g(n).data(j).to(o),t.preventDefault()}}},s(r,null,[{key:"VERSION",get:function(){return"4.2.1"}},{key:"Default",get:function(){return W}}]),r}();g(document).on(Q.CLICK_DATA_API,rt,lt._dataApiClickHandler),g(window).on(Q.LOAD_DATA_API,function(){for(var t=[].slice.call(document.querySelectorAll(st)),e=0,n=t.length;e<n;e++){var i=g(t[e]);lt._jQueryInterface.call(i,i.data())}}),g.fn[L]=lt._jQueryInterface,g.fn[L].Constructor=lt,g.fn[L].noConflict=function(){return g.fn[L]=U,lt._jQueryInterface};var ct="collapse",ht="bs.collapse",ut="."+ht,ft=g.fn[ct],dt={toggle:!0,parent:""},gt={toggle:"boolean",parent:"(string|element)"},_t={SHOW:"show"+ut,SHOWN:"shown"+ut,HIDE:"hide"+ut,HIDDEN:"hidden"+ut,CLICK_DATA_API:"click"+ut+".data-api"},mt="show",pt="collapse",vt="collapsing",Et="collapsed",yt="width",Ct="height",Tt=".show, .collapsing",St='[data-toggle="collapse"]',bt=function(){function a(e,t){this._isTransitioning=!1,this._element=e,this._config=this._getConfig(t),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'));for(var n=[].slice.call(document.querySelectorAll(St)),i=0,o=n.length;i<o;i++){var r=n[i],s=_.getSelectorFromElement(r),a=[].slice.call(document.querySelectorAll(s)).filter(function(t){return t===e});null!==s&&0<a.length&&(this._selector=s,this._triggerArray.push(r))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var t=a.prototype;return t.toggle=function(){g(this._element).hasClass(mt)?this.hide():this.show()},t.show=function(){var t,e,n=this;if(!this._isTransitioning&&!g(this._element).hasClass(mt)&&(this._parent&&0===(t=[].slice.call(this._parent.querySelectorAll(Tt)).filter(function(t){return"string"==typeof n._config.parent?t.getAttribute("data-parent")===n._config.parent:t.classList.contains(pt)})).length&&(t=null),!(t&&(e=g(t).not(this._selector).data(ht))&&e._isTransitioning))){var i=g.Event(_t.SHOW);if(g(this._element).trigger(i),!i.isDefaultPrevented()){t&&(a._jQueryInterface.call(g(t).not(this._selector),"hide"),e||g(t).data(ht,null));var o=this._getDimension();g(this._element).removeClass(pt).addClass(vt),this._element.style[o]=0,this._triggerArray.length&&g(this._triggerArray).removeClass(Et).attr("aria-expanded",!0),this.setTransitioning(!0);var r="scroll"+(o[0].toUpperCase()+o.slice(1)),s=_.getTransitionDurationFromElement(this._element);g(this._element).one(_.TRANSITION_END,function(){g(n._element).removeClass(vt).addClass(pt).addClass(mt),n._element.style[o]="",n.setTransitioning(!1),g(n._element).trigger(_t.SHOWN)}).emulateTransitionEnd(s),this._element.style[o]=this._element[r]+"px"}}},t.hide=function(){var t=this;if(!this._isTransitioning&&g(this._element).hasClass(mt)){var e=g.Event(_t.HIDE);if(g(this._element).trigger(e),!e.isDefaultPrevented()){var n=this._getDimension();this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",_.reflow(this._element),g(this._element).addClass(vt).removeClass(pt).removeClass(mt);var i=this._triggerArray.length;if(0<i)for(var o=0;o<i;o++){var r=this._triggerArray[o],s=_.getSelectorFromElement(r);if(null!==s)g([].slice.call(document.querySelectorAll(s))).hasClass(mt)||g(r).addClass(Et).attr("aria-expanded",!1)}this.setTransitioning(!0);this._element.style[n]="";var a=_.getTransitionDurationFromElement(this._element);g(this._element).one(_.TRANSITION_END,function(){t.setTransitioning(!1),g(t._element).removeClass(vt).addClass(pt).trigger(_t.HIDDEN)}).emulateTransitionEnd(a)}}},t.setTransitioning=function(t){this._isTransitioning=t},t.dispose=function(){g.removeData(this._element,ht),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},t._getConfig=function(t){return(t=l({},dt,t)).toggle=Boolean(t.toggle),_.typeCheckConfig(ct,t,gt),t},t._getDimension=function(){return g(this._element).hasClass(yt)?yt:Ct},t._getParent=function(){var t,n=this;_.isElement(this._config.parent)?(t=this._config.parent,"undefined"!=typeof this._config.parent.jquery&&(t=this._config.parent[0])):t=document.querySelector(this._config.parent);var e='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',i=[].slice.call(t.querySelectorAll(e));return g(i).each(function(t,e){n._addAriaAndCollapsedClass(a._getTargetFromElement(e),[e])}),t},t._addAriaAndCollapsedClass=function(t,e){var n=g(t).hasClass(mt);e.length&&g(e).toggleClass(Et,!n).attr("aria-expanded",n)},a._getTargetFromElement=function(t){var e=_.getSelectorFromElement(t);return e?document.querySelector(e):null},a._jQueryInterface=function(i){return this.each(function(){var t=g(this),e=t.data(ht),n=l({},dt,t.data(),"object"==typeof i&&i?i:{});if(!e&&n.toggle&&/show|hide/.test(i)&&(n.toggle=!1),e||(e=new a(this,n),t.data(ht,e)),"string"==typeof i){if("undefined"==typeof e[i])throw new TypeError('No method n
11532amed "'+i+'"');e[i]()}})},s(a,null,[{key:"VERSION",get:function(){return"4.2.1"}},{key:"Default",get:function(){return dt}}]),a}();g(document).on(_t.CLICK_DATA_API,St,function(t){"A"===t.currentTarget.tagName&&t.preventDefault();var n=g(this),e=_.getSelectorFromElement(this),i=[].slice.call(document.querySelectorAll(e));g(i).each(function(){var t=g(this),e=t.data(ht)?"toggle":n.data();bt._jQueryInterface.call(t,e)})}),g.fn[ct]=bt._jQueryInterface,g.fn[ct].Constructor=bt,g.fn[ct].noConflict=function(){return g.fn[ct]=ft,bt._jQueryInterface};var It="dropdown",Dt="bs.dropdown",wt="."+Dt,At=".data-api",Nt=g.fn[It],Ot=new RegExp("38|40|27"),kt={HIDE:"hide"+wt,HIDDEN:"hidden"+wt,SHOW:"show"+wt,SHOWN:"shown"+wt,CLICK:"click"+wt,CLICK_DATA_API:"click"+wt+At,KEYDOWN_DATA_API:"keydown"+wt+At,KEYUP_DATA_API:"keyup"+wt+At},Pt="disabled",Lt="show",jt="dropup",Ht="dropright",Rt="dropleft",Ut="dropdown-menu-right",Wt="position-static",xt='[data-toggle="dropdown"]',Ft=".dropdown form",qt=".dropdown-menu",Mt=".navbar-nav",Kt=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Qt="top-start",Bt="top-end",Vt="bottom-start",Yt="bottom-end",Xt="right-start",zt="left-start",Gt={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic"},Jt={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string"},Zt=function(){function c(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var t=c.prototype;return t.toggle=function(){if(!this._element.disabled&&!g(this._element).hasClass(Pt)){var t=c._getParentFromElement(this._element),e=g(this._menu).hasClass(Lt);if(c._clearMenus(),!e){var n={relatedTarget:this._element},i=g.Event(kt.SHOW,n);if(g(t).trigger(i),!i.isDefaultPrevented()){if(!this._inNavbar){if("undefined"==typeof u)throw new TypeError("Bootstrap's dropdowns require Popper.js (https://popper.js.org/)");var o=this._element;"parent"===this._config.reference?o=t:_.isElement(this._config.reference)&&(o=this._config.reference,"undefined"!=typeof this._config.reference.jquery&&(o=this._config.reference[0])),"scrollParent"!==this._config.boundary&&g(t).addClass(Wt),this._popper=new u(o,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===g(t).closest(Mt).length&&g(document.body).children().on("mouseover",null,g.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),g(this._menu).toggleClass(Lt),g(t).toggleClass(Lt).trigger(g.Event(kt.SHOWN,n))}}}},t.show=function(){if(!(this._element.disabled||g(this._element).hasClass(Pt)||g(this._menu).hasClass(Lt))){var t={relatedTarget:this._element},e=g.Event(kt.SHOW,t),n=c._getParentFromElement(this._element);g(n).trigger(e),e.isDefaultPrevented()||(g(this._menu).toggleClass(Lt),g(n).toggleClass(Lt).trigger(g.Event(kt.SHOWN,t)))}},t.hide=function(){if(!this._element.disabled&&!g(this._element).hasClass(Pt)&&g(this._menu).hasClass(Lt)){var t={relatedTarget:this._element},e=g.Event(kt.HIDE,t),n=c._getParentFromElement(this._element);g(n).trigger(e),e.isDefaultPrevented()||(g(this._menu).toggleClass(Lt),g(n).toggleClass(Lt).trigger(g.Event(kt.HIDDEN,t)))}},t.dispose=function(){g.removeData(this._element,Dt),g(this._element).off(wt),this._element=null,(this._menu=null)!==this._popper&&(this._popper.destroy(),this._popper=null)},t.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},t._addEventListeners=function(){var e=this;g(this._element).on(kt.CLICK,function(t){t.preventDefault(),t.stopPropagation(),e.toggle()})},t._getConfig=function(t){return t=l({},this.constructor.Default,g(this._element).data(),t),_.typeCheckConfig(It,t,this.constructor.DefaultType),t},t._getMenuElement=function(){if(!this._menu){var t=c._getParentFromElement(this._element);t&&(this._menu=t.querySelector(qt))}return this._menu},t._getPlacement=function(){var t=g(this._element.parentNode),e=Vt;return t.hasClass(jt)?(e=Qt,g(this._menu).hasClass(Ut)&&(e=Bt)):t.hasClass(Ht)?e=Xt:t.hasClass(Rt)?e=zt:g(this._menu).hasClass(Ut)&&(e=Yt),e},t._detectNavbar=function(){return 0<g(this._element).closest(".
11532navbar").length},t._getPopperConfig=function(){var e=this,t={};"function"==typeof this._config.offset?t.fn=function(t){return t.offsets=l({},t.offsets,e._config.offset(t.offsets)||{}),t}:t.offset=this._config.offset;var n={placement:this._getPlacement(),modifiers:{offset:t,flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(n.modifiers.applyStyle={enabled:!1}),n},c._jQueryInterface=function(e){return this.each(function(){var t=g(this).data(Dt);if(t||(t=new c(this,"object"==typeof e?e:null),g(this).data(Dt,t)),"string"==typeof e){if("undefined"==typeof t[e])throw new TypeError('No method named "'+e+'"');t[e]()}})},c._clearMenus=function(t){if(!t||3!==t.which&&("keyup"!==t.type||9===t.which))for(var e=[].slice.call(document.querySelectorAll(xt)),n=0,i=e.length;n<i;n++){var o=c._getParentFromElement(e[n]),r=g(e[n]).data(Dt),s={relatedTarget:e[n]};if(t&&"click"===t.type&&(s.clickEvent=t),r){var a=r._menu;if(g(o).hasClass(Lt)&&!(t&&("click"===t.type&&/input|textarea/i.test(t.target.tagName)||"keyup"===t.type&&9===t.which)&&g.contains(o,t.target))){var l=g.Event(kt.HIDE,s);g(o).trigger(l),l.isDefaultPrevented()||("ontouchstart"in document.documentElement&&g(document.body).children().off("mouseover",null,g.noop),e[n].setAttribute("aria-expanded","false"),g(a).removeClass(Lt),g(o).removeClass(Lt).trigger(g.Event(kt.HIDDEN,s)))}}}},c._getParentFromElement=function(t){var e,n=_.getSelectorFromElement(t);return n&&(e=document.querySelector(n)),e||t.parentNode},c._dataApiKeydownHandler=function(t){if((/input|textarea/i.test(t.target.tagName)?!(32===t.which||27!==t.which&&(40!==t.which&&38!==t.which||g(t.target).closest(qt).length)):Ot.test(t.which))&&(t.preventDefault(),t.stopPropagation(),!this.disabled&&!g(this).hasClass(Pt))){var e=c._getParentFromElement(this),n=g(e).hasClass(Lt);if(n&&(!n||27!==t.which&&32!==t.which)){var i=[].slice.call(e.querySelectorAll(Kt));if(0!==i.length){var o=i.indexOf(t.target);38===t.which&&0<o&&o--,40===t.which&&o<i.length-1&&o++,o<0&&(o=0),i[o].focus()}}else{if(27===t.which){var r=e.querySelector(xt);g(r).trigger("focus")}g(this).trigger("click")}}},s(c,null,[{key:"VERSION",get:function(){return"4.2.1"}},{key:"Default",get:function(){return Gt}},{key:"DefaultType",get:function(){return Jt}}]),c}();g(document).on(kt.KEYDOWN_DATA_API,xt,Zt._dataApiKeydownHandler).on(kt.KEYDOWN_DATA_API,qt,Zt._dataApiKeydownHandler).on(kt.CLICK_DATA_API+" "+kt.KEYUP_DATA_API,Zt._clearMenus).on(kt.CLICK_DATA_API,xt,function(t){t.preventDefault(),t.stopPropagation(),Zt._jQueryInterface.call(g(this),"toggle")}).on(kt.CLICK_DATA_API,Ft,function(t){t.stopPropagation()}),g.fn[It]=Zt._jQueryInterface,g.fn[It].Constructor=Zt,g.fn[It].noConflict=function(){return g.fn[It]=Nt,Zt._jQueryInterface};var $t="modal",te="bs.modal",ee="."+te,ne=g.fn[$t],ie={backdrop:!0,keyboard:!0,focus:!0,show:!0},oe={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},re={HIDE:"hide"+ee,HIDDEN:"hidden"+ee,SHOW:"show"+ee,SHOWN:"shown"+ee,FOCUSIN:"focusin"+ee,RESIZE:"resize"+ee,CLICK_DISMISS:"click.dismiss"+ee,KEYDOWN_DISMISS:"keydown.dismiss"+ee,MOUSEUP_DISMISS:"mouseup.dismiss"+ee,MOUSEDOWN_DISMISS:"mousedown.dismiss"+ee,CLICK_DATA_API:"click"+ee+".data-api"},se="modal-scrollbar-measure",ae="modal-backdrop",le="modal-open",ce="fade",he="show",ue=".modal-dialog",fe='[data-toggle="modal"]',de='[data-dismiss="modal"]',ge=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",_e=".sticky-top",me=function(){function o(t,e){this._config=this._getConfig(e),this._element=t,this._dialog=t.querySelector(ue),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}var t=o.prototype;return t.toggle=function(t){return this._isShown?this.hide():this.show(t)},t.show=function(t){var e=this;if(!this._isShown&&!this._isTransitioning){g(this._element).hasClass(ce)&&(this._isTransitioning=!0);var n=g.Event(re.SHOW,{relatedTarget:t});g(this._element).trigger(n),this._isShown||n.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),g(this._element).on(re.CLICK_DISMISS,de,function(t){return e.hide(t)}),g(this._dialog).on(re.MOUSEDOWN_DISMISS,function(){g(e._element).one(re.MOUSEUP_DISMISS,function(t){g(t.target).is(e._element)&&(e._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return e._showElement(t)}))}},t.hide=function(t){var e=this;if(t&&t.preventDefault(),this._isShown&&!this._isTransitioning){var n=g.Event(re.HIDE);if(g(this._element).trigger(n),this._isShown&&!n.isDefaultPrevented()){this._isShown=!1;var i=g(this._element).hasClass(ce);if(i&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),g(document).off(re.FOCUSIN),g(this._element).removeClass(he),g(this._element).off(re.CLICK_DISMISS),g(this._dialog).off(re.MOUSEDOWN_DISMISS),i){var o=_.getTransitionDurationFromElement(this._element);g(this._element).one(_.TRANSITION_END,function(t){return e._hideModal(t)}).emulateTransitionEnd(o)}else this._hideModal()}}},t.dispose=function(){[window,this._element,this._dialog].forEach(function(t){return g(t).off(ee)}),g(document).off(re.FOCUSIN),g.removeData(this._element,te),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null},t.handleUpdate=function(){this._adjustDialog()},t._getConfig=function(t){return t=l({},ie,t),_.typeCheckConfig($t,t,oe),t},t._showElement=function(t){var e=this,n=g(this._element).hasClass(ce);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.scrollTop=0,n&&_.reflow(this._element),g(this._element).addClass(he),this._config.focus&&this._enforceFocus();
11532var i=g.Event(re.SHOWN,{relatedTarget:t}),o=function(){e._config.focus&&e._element.focus(),e._isTransitioning=!1,g(e._element).trigger(i)};if(n){var r=_.getTransitionDurationFromElement(this._dialog);g(this._dialog).one(_.TRANSITION_END,o).emulateTransitionEnd(r)}else o()},t._enforceFocus=function(){var e=this;g(document).off(re.FOCUSIN).on(re.FOCUSIN,function(t){document!==t.target&&e._element!==t.target&&0===g(e._element).has(t.target).length&&e._element.focus()})},t._setEscapeEvent=function(){var e=this;this._isShown&&this._config.keyboard?g(this._element).on(re.KEYDOWN_DISMISS,function(t){27===t.which&&(t.preventDefault(),e.hide())}):this._isShown||g(this._element).off(re.KEYDOWN_DISMISS)},t._setResizeEvent=function(){var e=this;this._isShown?g(window).on(re.RESIZE,function(t){return e.handleUpdate(t)}):g(window).off(re.RESIZE)},t._hideModal=function(){var t=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._isTransitioning=!1,this._showBackdrop(function(){g(document.body).removeClass(le),t._resetAdjustments(),t._resetScrollbar(),g(t._element).trigger(re.HIDDEN)})},t._removeBackdrop=function(){this._backdrop&&(g(this._backdrop).remove(),this._backdrop=null)},t._showBackdrop=function(t){var e=this,n=g(this._element).hasClass(ce)?ce:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className=ae,n&&this._backdrop.classList.add(n),g(this._backdrop).appendTo(document.body),g(this._element).on(re.CLICK_DISMISS,function(t){e._ignoreBackdropClick?e._ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"===e._config.backdrop?e._element.focus():e.hide())}),n&&_.reflow(this._backdrop),g(this._backdrop).addClass(he),!t)return;if(!n)return void t();var i=_.getTransitionDurationFromElement(this._backdrop);g(this._backdrop).one(_.TRANSITION_END,t).emulateTransitionEnd(i)}else if(!this._isShown&&this._backdrop){g(this._backdrop).removeClass(he);var o=function(){e._removeBackdrop(),t&&t()};if(g(this._element).hasClass(ce)){var r=_.getTransitionDurationFromElement(this._backdrop);g(this._backdrop).one(_.TRANSITION_END,o).emulateTransitionEnd(r)}else o()}else t&&t()},t._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},t._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},t._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=t.left+t.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},t._setScrollbar=function(){var o=this;if(this._isBodyOverflowing){var t=[].slice.call(document.querySelectorAll(ge)),e=[].slice.call(document.querySelectorAll(_e));g(t).each(function(t,e){var n=e.style.paddingRight,i=g(e).css("padding-right");g(e).data("padding-right",n).css("padding-right",parseFloat(i)+o._scrollbarWidth+"px")}),g(e).each(function(t,e){var n=e.style.marginRight,i=g(e).css("margin-right");g(e).data("margin-right",n).css("margin-right",parseFloat(i)-o._scrollbarWidth+"px")});var n=document.body.style.paddingRight,i=g(document.body).css("padding-right");g(document.body).data("padding-right",n).css("padding-right",parseFloat(i)+this._scrollbarWidth+"px")}g(document.body).addClass(le)},t._resetScrollbar=function(){var t=[].slice.call(document.querySelectorAll(ge));g(t).each(function(t,e){var n=g(e).data("padding-right");g(e).removeData("padding-right"),e.style.paddingRight=n||""});var e=[].slice.call(document.querySelectorAll(""+_e));g(e).each(function(t,e){var n=g(e).data("margin-right");"undefined"!=typeof n&&g(e).css("margin-right",n).removeData("margin-right")});var n=g(document.body).data("padding-right");g(document.body).removeData("padding-right"),document.body.style.paddingRight=n||""},t._getScrollbarWidth=function(){var t=document.createElement("div");t.className=se,document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},o._jQueryInterface=function(n,i){return this.each(function(){var t=g(this).data(te),e=l({},ie,g(this).data(),"object"==typeof n&&n?n:{});if(t||(t=new o(this,e),g(this).data(te,t)),"string"==typeof n){if("undefined"==typeof t[n])throw new TypeError('No method n
11532amed "'+n+'"');t[n](i)}else e.show&&t.show(i)})},s(o,null,[{key:"VERSION",get:function(){return"4.2.1"}},{key:"Default",get:function(){return ie}}]),o}();g(document).on(re.CLICK_DATA_API,fe,function(t){var e,n=this,i=_.getSelectorFromElement(this);i&&(e=document.querySelector(i));var o=g(e).data(te)?"toggle":l({},g(e).data(),g(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();var r=g(e).one(re.SHOW,function(t){t.isDefaultPrevented()||r.one(re.HIDDEN,function(){g(n).is(":visible")&&n.focus()})});me._jQueryInterface.call(g(e),o,this)}),g.fn[$t]=me._jQueryInterface,g.fn[$t].Constructor=me,g.fn[$t].noConflict=function(){return g.fn[$t]=ne,me._jQueryInterface};var pe="tooltip",ve="bs.tooltip",Ee="."+ve,ye=g.fn[pe],Ce="bs-tooltip",Te=new RegExp("(^|\\s)"+Ce+"\\S+","g"),Se={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)"},be={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},Ie={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent"},De="show",we="out",Ae={HIDE:"hide"+Ee,HIDDEN:"hidden"+Ee,SHOW:"show"+Ee,SHOWN:"shown"+Ee,INSERTED:"inserted"+Ee,CLICK:"click"+Ee,FOCUSIN:"focusin"+Ee,FOCUSOUT:"focusout"+Ee,MOUSEENTER:"mouseenter"+Ee,MOUSELEAVE:"mouseleave"+Ee},Ne="fade",Oe="show",ke=".tooltip-inner",Pe=".arrow",Le="hover",je="focus",He="click",Re="manual",Ue=function(){function i(t,e){if("undefined"==typeof u)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var t=i.prototype;return t.enable=function(){this._isEnabled=!0},t.disable=function(){this._isEnabled=!1},t.toggleEnabled=function(){this._isEnabled=!this._isEnabled},t.toggle=function(t){if(this._isEnabled)if(t){var e=this.constructor.DATA_KEY,n=g(t.currentTarget).data(e);n||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),g(t.currentTarget).data(e,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(g(this.getTipElement()).hasClass(Oe))return void this._leave(null,this);this._enter(null,this)}},t.dispose=function(){clearTimeout(this._timeout),g.removeData(this.element,this.constructor.DATA_KEY),g(this.element).off(this.constructor.EVENT_KEY),g(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&g(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,(this._activeTrigger=null)!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},t.show=function(){var e=this;if("none"===g(this.element).css("display"))throw new Error("Please use show on visible elements");var t=g.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){g(this.element).trigger(t);var n=_.findShadowRoot(this.element),i=g.contains(null!==n?n:this.element.ownerDocument.documentElement,this.element);if(t.isDefaultPrevented()||!i)return;var o=this.getTipElement(),r=_.getUID(this.constructor.NAME);o.setAttribute("id",r),this.element.setAttribute("aria-describedby",r),this.setContent(),this.config.animation&&g(o).addClass(Ne);var s="function"==typeof this.config.placement?this.config.placement.call(this,o,this.element):this.config.placement,a=this._getAttachment(s);this.addAttachmentClass(a);var l=this._getContainer();g(o).data(this.constructor.DATA_KEY,this),g.contains(this.element.ownerDocument.documentElement,this.tip)||g(o).appendTo(l),g(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new u(this.element,o,{placement:a,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:Pe}
11532,preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){return e._handlePopperPlacementChange(t)}}),g(o).addClass(Oe),"ontouchstart"in document.documentElement&&g(document.body).children().on("mouseover",null,g.noop);var c=function(){e.config.animation&&e._fixTransition();var t=e._hoverState;e._hoverState=null,g(e.element).trigger(e.constructor.Event.SHOWN),t===we&&e._leave(null,e)};if(g(this.tip).hasClass(Ne)){var h=_.getTransitionDurationFromElement(this.tip);g(this.tip).one(_.TRANSITION_END,c).emulateTransitionEnd(h)}else c()}},t.hide=function(t){var e=this,n=this.getTipElement(),i=g.Event(this.constructor.Event.HIDE),o=function(){e._hoverState!==De&&n.parentNode&&n.parentNode.removeChild(n),e._cleanTipClass(),e.element.removeAttribute("aria-describedby"),g(e.element).trigger(e.constructor.Event.HIDDEN),null!==e._popper&&e._popper.destroy(),t&&t()};if(g(this.element).trigger(i),!i.isDefaultPrevented()){if(g(n).removeClass(Oe),"ontouchstart"in document.documentElement&&g(document.body).children().off("mouseover",null,g.noop),this._activeTrigger[He]=!1,this._activeTrigger[je]=!1,this._activeTrigger[Le]=!1,g(this.tip).hasClass(Ne)){var r=_.getTransitionDurationFromElement(n);g(n).one(_.TRANSITION_END,o).emulateTransitionEnd(r)}else o();this._hoverState=""}},t.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},t.isWithContent=function(){return Boolean(this.getTitle())},t.addAttachmentClass=function(t){g(this.getTipElement()).addClass(Ce+"-"+t)},t.getTipElement=function(){return this.tip=this.tip||g(this.config.template)[0],this.tip},t.setContent=function(){var t=this.getTipElement();this.setElementContent(g(t.querySelectorAll(ke)),this.getTitle()),g(t).removeClass(Ne+" "+Oe)},t.setElementContent=function(t,e){var n=this.config.html;"object"==typeof e&&(e.nodeType||e.jquery)?n?g(e).parent().is(t)||t.empty().append(e):t.text(g(e).text()):t[n?"html":"text"](e)},t.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},t._getContainer=function(){return!1===this.config.container?document.body:_.isElement(this.config.container)?g(this.config.container):g(document).find(this.config.container)},t._getAttachment=function(t){return be[t.toUpperCase()]},t._setListeners=function(){var i=this;this.config.trigger.split(" ").forEach(function(t){if("click"===t)g(i.element).on(i.constructor.Event.CLICK,i.config.selector,function(t){return i.toggle(t)});else if(t!==Re){var e=t===Le?i.constructor.Event.MOUSEENTER:i.constructor.Event.FOCUSIN,n=t===Le?i.constructor.Event.MOUSELEAVE:i.constructor.Event.FOCUSOUT;g(i.element).on(e,i.config.selector,function(t){return i._enter(t)}).on(n,i.config.selector,function(t){return i._leave(t)})}}),g(this.element).closest(".modal").on("hide.bs.modal",function(){i.element&&i.hide()}),this.config.selector?this.config=l({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},t._fixTitle=function(){var t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},t._enter=function(t,e){var n=this.constructor.DATA_KEY;(e=e||g(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),g(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusin"===t.type?je:Le]=!0),g(e.getTipElement()).hasClass(Oe)||e._hoverState===De?e._hoverState=De:(clearTimeout(e._timeout),e._hoverState=De,e.config.delay&&e.config.delay.show?e._timeout=setTimeout(function(){e._hoverState===De&&e.show()},e.config.delay.show):e.show())},t._leave=function(t,e){var n=this.constructor.DATA_KEY;(e=e||g(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),g(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusout"===t.type?je:Le]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState=we,e.config.delay&&e.config.delay.hide?e._timeout=setTimeout(function(){e._hoverState===we&&e.hide()},e.config.delay.hide):e.hide())},t._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},t._getConfig=function(t){return"number"==typeof(t=l({},this.constructor.Default,g(this.element).data(),"object"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),_.typeCheckConfig(pe,t,this.constructor.DefaultType),t},t._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},t._cleanTipClass=function(){var t=g(this.getTipElement()),e=t.attr("class").match(Te);null!==e&&e.length&&t.removeClass(e.join(""))},t._handlePopperPlacementChange=function(t){var e=t.instance;this.tip=e.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},t._fixTransition=function(){var t=this.getTipElement(),e=this.config.animation;null===t.getAttribute("x-placement")&&(g(t).removeClass(Ne),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},i._jQueryInterface=function(n){return this.each(function(){var t=g(this).data(ve),e="object"==typeof n&&n;if((t||!/dispose|hide/.test(n))&&(t||(t=new i(this,e),g(this).data(ve,t)),"string"==typeof n)){if("undefined"==typeof t[n])throw new TypeError('No method n
11532amed "'+n+'"');t[n]()}})},s(i,null,[{key:"VERSION",get:function(){return"4.2.1"}},{key:"Default",get:function(){return Ie}},{key:"NAME",get:function(){return pe}},{key:"DATA_KEY",get:function(){return ve}},{key:"Event",get:function(){return Ae}},{key:"EVENT_KEY",get:function(){return Ee}},{key:"DefaultType",get:function(){return Se}}]),i}();g.fn[pe]=Ue._jQueryInterface,g.fn[pe].Constructor=Ue,g.fn[pe].noConflict=function(){return g.fn[pe]=ye,Ue._jQueryInterface};var We="popover",xe="bs.popover",Fe="."+xe,qe=g.fn[We],Me="bs-popover",Ke=new RegExp("(^|\\s)"+Me+"\\S+","g"),Qe=l({},Ue.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),Be=l({},Ue.DefaultType,{content:"(string|element|function)"}),Ve="fade",Ye="show",Xe=".popover-header",ze=".popover-body",Ge={HIDE:"hide"+Fe,HIDDEN:"hidden"+Fe,SHOW:"show"+Fe,SHOWN:"shown"+Fe,INSERTED:"inserted"+Fe,CLICK:"click"+Fe,FOCUSIN:"focusin"+Fe,FOCUSOUT:"focusout"+Fe,MOUSEENTER:"mouseenter"+Fe,MOUSELEAVE:"mouseleave"+Fe},Je=function(t){var e,n;function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=Object.create(n.prototype),(e.prototype.constructor=e).__proto__=n;var o=i.prototype;return o.isWithContent=function(){return this.getTitle()||this._getContent()},o.addAttachmentClass=function(t){g(this.getTipElement()).addClass(Me+"-"+t)},o.getTipElement=function(){return this.tip=this.tip||g(this.config.template)[0],this.tip},o.setContent=function(){var t=g(this.getTipElement());this.setElementContent(t.find(Xe),this.getTitle());var e=this._getContent();"function"==typeof e&&(e=e.call(this.element)),this.setElementContent(t.find(ze),e),t.removeClass(Ve+" "+Ye)},o._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},o._cleanTipClass=function(){var t=g(this.getTipElement()),e=t.attr("class").match(Ke);null!==e&&0<e.length&&t.removeClass(e.join(""))},i._jQueryInterface=function(n){return this.each(function(){var t=g(this).data(xe),e="object"==typeof n?n:null;if((t||!/dispose|hide/.test(n))&&(t||(t=new i(this,e),g(this).data(xe,t)),"string"==typeof n)){if("undefined"==typeof t[n])throw new TypeError('No method named "'+n+'"');t[n]()}})},s(i,null,[{key:"VERSION",get:function(){return"4.2.1"}},{key:"Default",get:function(){return Qe}},{key:"NAME",get:function(){return We}},{key:"DATA_KEY",get:function(){return xe}},{key:"Event",get:function(){return Ge}},{key:"EVENT_KEY",get:function(){return Fe}},{key:"DefaultType",get:function(){return Be}}]),i}(Ue);g.fn[We]=Je._jQueryInterface,g.fn[We].Constructor=Je,g.fn[We].noConflict=function(){return g.fn[We]=qe,Je._jQueryInterface};var Ze="scrollspy",$e="bs.scrollspy",tn="."+$e,en=g.fn[Ze],nn={offset:10,method:"auto",target:""},on={offset:"number",method:"string",target:"(string|element)"},rn={ACTIVATE:"activate"+tn,SCROLL:"scroll"+tn,LOAD_DATA_API:"load"+tn+".data-api"},sn="dropdown-item",an="active",ln='[data-spy="scroll"]',cn=".nav, .list-group",hn=".nav-link",un=".nav-item",fn=".list-group-item",dn=".dropdown",gn=".dropdown-item",_n=".dropdown-toggle",mn="offset",pn="position",vn=function(){function n(t,e){var n=this;this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(e),this._selector=this._config.target+" "+hn+","+this._config.target+" "+fn+","+this._config.target+" "+gn,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,g(this._scrollElement).on(rn.SCROLL,function(t){return n._process(t)}),this.refresh(),this._process()}var t=n.prototype;return t.refresh=function(){var e=this,t=this._scrollElement===this._scrollElement.window?mn:pn,o="auto"===this._config.method?t:this._config.method,r=o===pn?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map(function(t){var e,n=_.getSelectorFromElement(t);if(n&&(e=document.querySelector(n)),e){var i=e.getBoundingClientRect();if(i.width||i.height)return[g(e)[o]().top+r,n]}return null}).filter(function(t){return t}).sort(function(t,e){return t[0]-e[0]}
11532).forEach(function(t){e._offsets.push(t[0]),e._targets.push(t[1])})},t.dispose=function(){g.removeData(this._element,$e),g(this._scrollElement).off(tn),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},t._getConfig=function(t){if("string"!=typeof(t=l({},nn,"object"==typeof t&&t?t:{})).target){var e=g(t.target).attr("id");e||(e=_.getUID(Ze),g(t.target).attr("id",e)),t.target="#"+e}return _.typeCheckConfig(Ze,t,on),t},t._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},t._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},t._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},t._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),n<=t){var i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}else{if(this._activeTarget&&t<this._offsets[0]&&0<this._offsets[0])return this._activeTarget=null,void this._clear();for(var o=this._offsets.length;o--;){this._activeTarget!==this._targets[o]&&t>=this._offsets[o]&&("undefined"==typeof this._offsets[o+1]||t<this._offsets[o+1])&&this._activate(this._targets[o])}}},t._activate=function(e){this._activeTarget=e,this._clear();var t=this._selector.split(",").map(function(t){return t+'[data-target="'+e+'"],'+t+'[href="'+e+'"]'}),n=g([].slice.call(document.querySelectorAll(t.join(","))));n.hasClass(sn)?(n.closest(dn).find(_n).addClass(an),n.addClass(an)):(n.addClass(an),n.parents(cn).prev(hn+", "+fn).addClass(an),n.parents(cn).prev(un).children(hn).addClass(an)),g(this._scrollElement).trigger(rn.ACTIVATE,{relatedTarget:e})},t._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter(function(t){return t.classList.contains(an)}).forEach(function(t){return t.classList.remove(an)})},n._jQueryInterface=function(e){return this.each(function(){var t=g(this).data($e);if(t||(t=new n(this,"object"==typeof e&&e),g(this).data($e,t)),"string"==typeof e){if("undefined"==typeof t[e])throw new TypeError('No method named "'+e+'"');t[e]()}})},s(n,null,[{key:"VERSION",get:function(){return"4.2.1"}},{key:"Default",get:function(){return nn}}]),n}();g(window).on(rn.LOAD_DATA_API,function(){for(var t=[].slice.call(document.querySelectorAll(ln)),e=t.length;e--;){var n=g(t[e]);vn._jQueryInterface.call(n,n.data())}}),g.fn[Ze]=vn._jQueryInterface,g.fn[Ze].Constructor=vn,g.fn[Ze].noConflict=function(){return g.fn[Ze]=en,vn._jQueryInterface};var En="bs.tab",yn="."+En,Cn=g.fn.tab,Tn={HIDE:"hide"+yn,HIDDEN:"hidden"+yn,SHOW:"show"+yn,SHOWN:"shown"+yn,CLICK_DATA_API:"click"+yn+".data-api"},Sn="dropdown-menu",bn="active",In="disabled",Dn="fade",wn="show",An=".dropdown",Nn=".nav, .list-group",On=".active",kn="> li > .active",Pn='[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',Ln=".dropdown-toggle",jn="> .dropdown-menu .active",Hn=function(){function i(t){this._element=t}var t=i.prototype;return t.show=function(){var n=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&g(this._element).hasClass(bn)||g(this._element).hasClass(In))){var t,i,e=g(this._element).closest(Nn)[0],o=_.getSelectorFromElement(this._element);if(e){var r="UL"===e.nodeName||"OL"===e.nodeName?kn:On;i=(i=g.makeArray(g(e).find(r)))[i.length-1]}var s=g.Event(Tn.HIDE,{relatedTarget:this._element}),a=g.Event(Tn.SHOW,{relatedTarget:i});if(i&&g(i).trigger(s),g(this._element).trigger(a),!a.isDefaultPrevented()&&!s.isDefaultPrevented()){o&&(t=document.querySelector(o)),this._activate(this._element,e);var l=function(){var t=g.Event(Tn.HIDDEN,{relatedTarget:n._element}),e=g.Event(Tn.SHOWN,{relatedTarget:i});g(i).trigger(t),g(n._element).trigger(e)};t?this._activate(t,t.parentNode,l):l()}}},t.dispose=function(){g.removeData(this._element,En),this._element=null},t._activate=function(t,e,n){var i=this,o=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?g(e).children(On):g(e).find(kn))[0],r=n&&o&&g(o).hasClass(Dn),s=function(){return i._transitionComplete(t,o,n)};if(o&&r){var a=_.getTransitionDurationFromElement(o);g(o).removeClass(wn).one(_.TRANSITION_END,s).emulateTransitionEnd(a)}else s()},t._transitionComplete=function(t,e,n){if(e){g(e).removeClass(bn);var i=g(e.parentNode).find(jn)[0];i&&g(i).removeClass(bn),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}if(g(t).addClass(bn),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),_.reflow(t),g(t).addClass(wn),t.parentNode&&g(t.parentNode).hasClass(Sn)){var o=g(t).closest(An)[0];if(o){var r=[].slice.call(o.querySelectorAll(Ln));g(r).addClass(bn)}t.setAttribute("aria-expanded",!0)}n&&n()},i._jQueryInterface=function(n){return this.each(function(){var t=g(this),e=t.data(En);if(e||(e=new i(this),t.data(En,e)),"string"==typeof n){if("undefined"==typeof e[n])throw new TypeError('No method n
11532amed "'+n+'"');e[n]()}})},s(i,null,[{key:"VERSION",get:function(){return"4.2.1"}}]),i}();g(document).on(Tn.CLICK_DATA_API,Pn,function(t){t.preventDefault(),Hn._jQueryInterface.call(g(this),"show")}),g.fn.tab=Hn._jQueryInterface,g.fn.tab.Constructor=Hn,g.fn.tab.noConflict=function(){return g.fn.tab=Cn,Hn._jQueryInterface};var Rn="toast",Un="bs.toast",Wn="."+Un,xn=g.fn[Rn],Fn={CLICK_DISMISS:"click.dismiss"+Wn,HIDE:"hide"+Wn,HIDDEN:"hidden"+Wn,SHOW:"show"+Wn,SHOWN:"shown"+Wn},qn="fade",Mn="hide",Kn="show",Qn="showing",Bn={animation:"boolean",autohide:"boolean",delay:"number"},Vn={animation:!0,autohide:!0,delay:500},Yn='[data-dismiss="toast"]',Xn=function(){function i(t,e){this._element=t,this._config=this._getConfig(e),this._timeout=null,this._setListeners()}var t=i.prototype;return t.show=function(){var t=this;g(this._element).trigger(Fn.SHOW),this._config.animation&&this._element.classList.add(qn);var e=function(){t._element.classList.remove(Qn),t._element.classList.add(Kn),g(t._element).trigger(Fn.SHOWN),t._config.autohide&&t.hide()};if(this._element.classList.remove(Mn),this._element.classList.add(Qn),this._config.animation){var n=_.getTransitionDurationFromElement(this._element);g(this._element).one(_.TRANSITION_END,e).emulateTransitionEnd(n)}else e()},t.hide=function(t){var e=this;this._element.classList.contains(Kn)&&(g(this._element).trigger(Fn.HIDE),t?this._close():this._timeout=setTimeout(function(){e._close()},this._config.delay))},t.dispose=function(){clearTimeout(this._timeout),this._timeout=null,this._element.classList.contains(Kn)&&this._element.classList.remove(Kn),g(this._element).off(Fn.CLICK_DISMISS),g.removeData(this._element,Un),this._element=null,this._config=null},t._getConfig=function(t){return t=l({},Vn,g(this._element).data(),"object"==typeof t&&t?t:{}),_.typeCheckConfig(Rn,t,this.constructor.DefaultType),t},t._setListeners=function(){var t=this;g(this._element).on(Fn.CLICK_DISMISS,Yn,function(){return t.hide(!0)})},t._close=function(){var t=this,e=function(){t._element.classList.add(Mn),g(t._element).trigger(Fn.HIDDEN)};if(this._element.classList.remove(Kn),this._config.animation){var n=_.getTransitionDurationFromElement(this._element);g(this._element).one(_.TRANSITION_END,e).emulateTransitionEnd(n)}else e()},i._jQueryInterface=function(n){return this.each(function(){var t=g(this),e=t.data(Un);if(e||(e=new i(this,"object"==typeof n&&n),t.data(Un,e)),"string"==typeof n){if("undefined"==typeof e[n])throw new TypeError('No method named "'+n+'"');e[n](this)}})},s(i,null,[{key:"VERSION",get:function(){return"4.2.1"}},{key:"DefaultType",get:function(){return Bn}}]),i}();g.fn[Rn]=Xn._jQueryInterface,g.fn[Rn].Constructor=Xn,g.fn[Rn].noConflict=function(){return g.fn[Rn]=xn,Xn._jQueryInterface},function(){if("undefined"==typeof g)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var t=g.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1===t[0]&&9===t[1]&&t[2]<1||4<=t[0])throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(),t.Util=_,t.Alert=p,t.Button=P,t.Carousel=lt,t.Collapse=bt,t.Dropdown=Zt,t.Modal=me,t.Popover=Je,t.Scrollspy=vn,t.Tab=Hn,t.Toast=Xn,t.Tooltip=Ue,Object.defineProperty(t,"__esModule",{value:!0})}); 11533 11534 11535/* squelettes/js/slick.min.js */ 11536!function(i){"use strict";"function"==typeof define&&define.amd?define(["jquery"],i):"undefined"!=typeof exports?module.exports=i(require("jquery")):i(jQuery)}(function(i){"use strict";var e=window.Slick||{};(e=function(){var e=0;return function(t,o){var s,n=this;n.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:i(t),appendDots:i(t),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,t){return i('<button type="button" />').text(t+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},n.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,
vendor: 6,594 bytes, line 11536
11536sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},i.extend(n,n.initials),n.activeBreakpoint=null,n.animType=null,n.animProp=null,n.breakpoints=[],n.breakpointSettings=[],n.cssTransitions=!1,n.focussed=!1,n.interrupted=!1,n.hidden="hidden",n.paused=!0,n.positionProp=null,n.respondTo=null,n.rowCount=1,n.shouldClick=!0,n.$slider=i(t),n.$slidesCache=null,n.transformType=null,n.transitionType=null,n.visibilityChange="visibilitychange",n.windowWidth=0,n.windowTimer=null,s=i(t).data("slick")||{},n.options=i.extend({},n.defaults,o,s),n.currentSlide=n.options.initialSlide,n.originalSettings=n.options,void 0!==document.mozHidden?(n.hidden="mozHidden",n.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(n.hidden="webkitHidden",n.visibilityChange="webkitvisibilitychange"),n.autoPlay=i.proxy(n.autoPlay,n),n.autoPlayClear=i.proxy(n.autoPlayClear,n),n.autoPlayIterator=i.proxy(n.autoPlayIterator,n),n.changeSlide=i.proxy(n.changeSlide,n),n.clickHandler=i.proxy(n.clickHandler,n),n.selectHandler=i.proxy(n.selectHandler,n),n.setPosition=i.proxy(n.setPosition,n),n.swipeHandler=i.proxy(n.swipeHandler,n),n.dragHandler=i.proxy(n.dragHandler,n),n.keyHandler=i.proxy(n.keyHandler,n),n.instanceUid=e++,n.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,n.registerBreakpoints(),n.init(!0)}}()).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},e.prototype.addSlide=e.prototype.slickAdd=function(e,t,o){var s=this;if("boolean"==typeof t)o=t,t=null;else if(t<0||t>=s.slideCount)return!1;s.unload(),"number"==typeof t?0===t&&0===s.$slides.length?i(e).appendTo(s.$slideTrack):o?i(e).insertBefore(s.$slides.eq(t)):i(e).insertAfter(s.$slides.eq(t)):!0===o?i(e).prependTo(s.$slideTrack):i(e).appendTo(s.$slideTrack),s.$slides=s.$slideTrack.children(this.options.slide),s.$slideTrack.children(this.options.slide).detach(),s.$slideTrack.append(s.$slides),s.$slides.each(function(e,t){i(t).attr("data-slick-index",e)}),s.$slidesCache=s.$slides,s.reinit()},e.prototype.animateHeight=function(){var i=this;if(1===i.options.slidesToShow&&!0===i.options.adaptiveHeight&&!1===i.options.vertical){var e=i.$slides.eq(i.currentSlide).outerHeight(!0);i.$list.animate({height:e},i.options.speed)}},e.prototype.animateSlide=function(e,t){var o={},s=this;s.animateHeight(),!0===s.options.rtl&&!1===s.options.vertical&&(e=-e),!1===s.transformsEnabled?!1===s.options.vertical?s.$slideTrack.animate({left:e},s.options.speed,s.options.easing,t):s.$slideTrack.animate({top:e},s.options.speed,s.options.easing,t):!1===s.cssTransitions?(!0===s.options.rtl&&(s.currentLeft=-s.currentLeft),i({animStart:s.currentLeft}).animate({animStart:e},{duration:s.options.speed,easing:s.options.easing,step:function(i){i=Math.ceil(i),!1===s.options.vertical?(o[s.animType]="translate("+i+"px, 0px)",s.$slideTrack.css(o)):(o[s.animType]="translate(0px,"+i+"px)",s.$slideTrack.css(o))},complete:function(){t&&t.call()}})):(s.applyTransition(),e=Math.ceil(e),!1===s.options.vertical?o[s.animType]="translate3d("+e+"px, 0px, 0px)":o[s.animType]="translate3d(0px,"+e+"px, 0px)",s.$slideTrack.css(o),t&&setTimeout(function(){s.disableTransition(),t.call()},s.options.speed))},e.prototype.getNavTarget=function(){var e=this,t=e.options.asNavFor;return t&&null!==t&&(t=i(t).not(e.$slider)),t},e.prototype.asNavFor=function(e){var t=this.getNavTarget();null!==t&&"object"==typeof t&&t.each(function(){var t=i(this).slick("getSlick");t.unslicked||t.slideHandler(e,!0)})},e.prototype.applyTransition=function(i){var e=this,t={};!1===e.options.fade?t[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:t[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,!1===e.options.fade?e.$slideTrack.css(t):e.$slides.eq(i).css(t)},e.prototype.autoPlay=function(){var i=this;i.autoPlayClear(),i.slideCount>i.options.slidesToShow&&(i.autoPlayTimer=setInterval(i.autoPlayIterator,i.options.autoplaySpeed))},e.prototype.autoPlayClear=function(){var i=this;i.autoPlayTimer&&clearInterval(i.autoPlayTimer)},e.prototype.autoPlayIterator=function(){var i=this,e=i.currentSlide+i.options.slidesToScroll;i.paused||i.interrupted||i.focussed||(!1===i.options.infinite&&(1===i.direction&&i.currentSlide+1===i.slideCount-1?i.direction=0:0===i.direction&&(e=i.currentSlide-i.options.slidesToScroll,i.currentSlide-1==0&&(i.direction=1))),i.slideHandler(e))},e.prototype.buildArrows=function(){var e=this;!0===e.options.arrows&&(e.$prevArrow=i(e.options.prevArrow).addClass("slick-arrow"),e.$nextArrow=i(e.options.nextArrow).addClass("slick-arrow"),e.slideCount>e.options.slidesToShow?(e.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.prependTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),!0!==e.options.infinite&&e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):e.$prevArrow.add(e.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},e.prototype.buildDots=function(){var e,t,o=this;if(!0===o.options.dots){for(o.$slider.addClass("slick-dotted"),t=i("<ul />").addClass(o.options.dotsClass),e=0;e<=o.getDotCount();e+=1)t.append(i("<li />").append(o.options.customPaging.call(this,o,e)));o.$dots=t.appendTo(o.options.appendDots),o.$dots.find("li").first().addClass("slick-active")}},e.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+":not(.slick-cloned)").addClass("slick-slide"),e.slideCount=e.$slides.length,e.$slides.each(function(e,t){i(t).attr("data-slick-index",e).data("originalStyling",i(t).attr("style")||"")}),e.$slider.addClass("slick-slider"),e.$slideTrack=0===e.slideCount?i('<div class="slick-track"/>').appendTo(e.$slider):e.$slides.wrapAll('<div class="slick-track"/>').parent(),e.$list=e.$slideTrack.wrap('<div class="slick-list"/>').parent(),e.$slideTrack.css("opacity",0),!0!==e.options.centerMode&&!0!==e.options.swipeToSlide||(e.options.slidesToScroll=1),i("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),!0===e.options.draggable&&e.$list.addClass("draggable")},e.prototype.buildRows=function(){var i,e,t,o,s,n,r,l=this;if(o=document.createDocumentFragment(),n=l.$slider.children(),l.o
vendor: 3,442 bytes, line 11536
11536ptions.rows>1){for(r=l.options.slidesPerRow*l.options.rows,s=Math.ceil(n.length/r),i=0;i<s;i++){var d=document.createElement("div");for(e=0;e<l.options.rows;e++){var a=document.createElement("div");for(t=0;t<l.options.slidesPerRow;t++){var c=i*r+(e*l.options.slidesPerRow+t);n.get(c)&&a.appendChild(n.get(c))}d.appendChild(a)}o.appendChild(d)}l.$slider.empty().append(o),l.$slider.children().children().children().css({width:100/l.options.slidesPerRow+"%",display:"inline-block"})}},e.prototype.checkResponsive=function(e,t){var o,s,n,r=this,l=!1,d=r.$slider.width(),a=window.innerWidth||i(window).width();if("window"===r.respondTo?n=a:"slider"===r.respondTo?n=d:"min"===r.respondTo&&(n=Math.min(a,d)),r.options.responsive&&r.options.responsive.length&&null!==r.options.responsive){s=null;for(o in r.breakpoints)r.breakpoints.hasOwnProperty(o)&&(!1===r.originalSettings.mobileFirst?n<r.breakpoints[o]&&(s=r.breakpoints[o]):n>r.breakpoints[o]&&(s=r.breakpoints[o]));null!==s?null!==r.activeBreakpoint?(s!==r.activeBreakpoint||t)&&(r.activeBreakpoint=s,"unslick"===r.breakpointSettings[s]?r.unslick(s):(r.options=i.extend({},r.originalSettings,r.breakpointSettings[s]),!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),l=s):(r.activeBreakpoint=s,"unslick"===r.breakpointSettings[s]?r.unslick(s):(r.options=i.extend({},r.originalSettings,r.breakpointSettings[s]),!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),l=s):null!==r.activeBreakpoint&&(r.activeBreakpoint=null,r.options=r.originalSettings,!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e),l=s),e||!1===l||r.$slider.trigger("breakpoint",[r,l])}},e.prototype.changeSlide=function(e,t){var o,s,n,r=this,l=i(e.currentTarget);switch(l.is("a")&&e.preventDefault(),l.is("li")||(l=l.closest("li")),n=r.slideCount%r.options.slidesToScroll!=0,o=n?0:(r.slideCount-r.currentSlide)%r.options.slidesToScroll,e.data.message){case"previous":s=0===o?r.options.slidesToScroll:r.options.slidesToShow-o,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide-s,!1,t);break;case"next":s=0===o?r.options.slidesToScroll:o,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide+s,!1,t);break;case"index":var d=0===e.data.index?0:e.data.index||l.index()*r.options.slidesToScroll;r.slideHandler(r.checkNavigable(d),!1,t),l.children().trigger("focus");break;default:return}},e.prototype.checkNavigable=function(i){var e,t;if(e=this.getNavigableIndexes(),t=0,i>e[e.length-1])i=e[e.length-1];else for(var o in e){if(i<e[o]){i=t;break}t=e[o]}return i},e.prototype.cleanUpEvents=function(){var e=this;e.options.dots&&null!==e.$dots&&(i("li",e.$dots).off("click.slick",e.changeSlide).off("mouseenter.slick",i.proxy(e.interrupt,e,!0)).off("mouseleave.slick",i.proxy(e.interrupt,e,!1)),!0===e.options.accessibility&&e.$dots.off("keydown.slick",e.keyHandler)),e.$slider.off("focus.slick blur.slick"),!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow&&e.$prevArrow.off("click.slick",e.changeSlide),e.$nextArrow&&e.$nextArrow.off("click.slick",e.changeSlide),!0===e.options.accessibility&&(e.$prevArrow&&e.$prevArrow.off("keydown.slick",e.keyHandler),e.$nextArrow&&e.$nextArrow.off("keydown.slick",e.keyHandler))),e.$list.off("touchstart.slick mousedown.slick",e.swipeHandler),e.$list.off("touchmove.slick mousemove.slick",e.swipeHandler),e.$list.off("touchend.slick mouseup.slick",e.swipeHandler),e.$list.off("touchcancel.slick mouseleave.
11536slick",e.swipeHandler),e.$list.off("click.slick",e.clickHandler),i(document).off(e.visibilityChange,e.visibility),e.cleanUpSlideEvents(),!0===e.options.accessibility&&e.$list.off("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().off("click.slick",e.selectHandler),i(window).off("orientationchange.slick.slick-"+e.instanceUid,e.orientationChange),i(window).off("resize.slick.slick-"+e.instanceUid,e.resize),i("[draggable!=true]",e.$slideTrack).off("dragstart",e.preventDefault),i(window).off("load.slick.slick-"+e.instanceUid,e.setPosition)},e.prototype.cleanUpSlideEvents=function(){var e=this;e.$list.off("mouseenter.slick",i.proxy(e.interrupt,e,!0)),e.$list.off("mouseleave.slick",i.proxy(e.interrupt,e,!1))},e.prototype.cleanUpRows=function(){var i,e=this;e.options.rows>1&&((i=e.$slides.children().children()).removeAttr("style"),e.$slider.empty().append(i))},e.prototype.clickHandler=function(i){!1===this.shouldClick&&(i.stopImmediatePropagation(),i.stopPropagation(),i.preventDefault())},e.prototype.destroy=function(e){var t=this;t.autoPlayClear(),t.touchObject={},t.cleanUpEvents(),i(".slick-cloned",t.$slider).detach(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.$prevArrow.length&&(t.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove()),t.$nextArrow&&t.$nextArrow.length&&(t.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove()),t.$slides&&(t.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){i(this).attr("style",i(this).data("originalStyling"))}),t.$slideTrack.children(this.options.slide).detach(),t.$slideTrack.detach(),t.$list.detach(),t.$slider.append(t.$slides)),t.cleanUpRows(),t.$slider.removeClass("slick-slider"),t.$slider.removeClass("slick-initialized"),t.$slider.removeClass("slick-dotted"),t.unslicked=!0,e||t.$slider.trigger("destroy",[t])},e.prototype.disableTransition=function(i){var e=this,t={};t[e.transitionType]="",!1===e.options.fade?e.$slideTrack.css(t):e.$slides.eq(i).css(t)},e.prototype.fadeSlide=function(i,e){var t=this;!1===t.cssTransitions?(t.$slides.eq(i).css({zIndex:t.options.zIndex}),t.$slides.eq(i).animate({opacity:1},t.options.speed,t.options.easing,e)):(t.applyTransition(i),t.$slides.eq(i).css({opacity:1,zIndex:t.options.zIndex}),e&&setTimeout(function(){t.disableTransition(i),e.call()},t.options.speed))},e.prototype.fadeSlideOut=function(i){var e=this;!1===e.cssTransitions?e.$slides.eq(i).animate({opacity:0,zIndex:e.options.zIndex-2},e.options.speed,e.options.easing):(e.applyTransition(i),e.$slides.eq(i).css({opacity:0,zIndex:e.options.zIndex-2}))},e.prototype.filterSlides=e.prototype.slickFilter=function(i){var e=this;null!==i&&(e.$slidesCache=e.$slides,e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.filter(i).appendTo(e.$slideTrack),e.reinit())},e.prototype.focusHandler=function(){var e=this;e.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",function(t){t.stopImmediatePropagation();var o=i(this);setTimeout(function(){e.options.pauseOnFocus&&(e.focussed=o.is(":focus"),e.autoPlay())},0)})},e.prototype.getCurrent=e.prototype.slickCurrentSlide=function(){return this.currentSlide},e.prototype.getDotCount=function(){var i=this,e=0,t=0,o=0;if(!0===i.options.infinite)if(i.slideCount<=i.options.slidesToShow)++o;else for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else if(!0===i.options.centerMode)o=i.slideCount;else if(i.options.asNavFor)for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else o=1+Math.ceil((i.slideCount-i.options.slidesToShow)/i.options.slidesToScroll);return o-1},e.prototype.getLeft=function(i){var e,t,o,s,n=this,r=0;return n.slideOffset=0,t=n.$slides.first().outerHeight(!0),!0===n.options.infinite?(n.slideCount>n.options.slidesToShow&&(n.slideOffset=n.slideWidth*n.options.slidesToShow*-1,s=-1,!0===n.options.vertical&&!0===n.options.centerMode&&(2===n.options.slidesToShow?s=-1.5:1===n.options.slidesToShow&&(s=-2)),r=t*n.options.slidesToShow*s),n.slideCount%n.options.slidesToScroll!=0&&i+n.options.slidesToScroll>n.slideCount&&n.slideCount>n.options.slidesToShow&&(i>n.slideCount?(n.slideOffset=(n.options.slidesToShow-(i-n.slideCount))*n.slideWidth*-1,r=(n.options.slidesToShow-(i-n.slideCount))*t*-1):(n.slideOffset=n.slideCount%n.options.slidesToScroll*n.slideWidth*-1,r=n.slideCount%n.options.slidesToScroll*t*-1))):i+n.options.slidesToShow>n.slideCount&&(n.slideOffset=(i+n.options.slidesToShow-n.slideCount)*n.slideWidth,r=(i+n.options.slidesToShow-n.slideCount)*t),n.slideCount<=n.options.slidesToShow&&(n.slideOffset=0,r=0),!0===n.options.centerMode&&n.slideCount<=n.options.slidesToShow?n.slideOffset=n.slideWidth*Math.floor(n.options.slidesToShow)/2-n.slideWidth*n.slideCount/2:!0===n.options.centerMode&&!0===n.options.infinite?n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)-n.slideWidth:!0===n.options.centerMode&&(n.slideOffset=0,n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)),e=!1===n.options.vertical?i*n.slideWidth*-1+n.slideOffset:i*t*-1+r,!0===n.options.variableWidth&&(o=n.slideCount<=n.options.slidesToShow||!1===n.options.infinite?n.$slideTrack.children(".slick-slide").eq(i):n.$slideTrack.children(".slick-slide").eq(i+n.options.slidesToShow),e=!0===n.options.rtl?o[0]?-1*(n.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,!0===n.options.centerMode&&(o=n.slideCount<=n.options.slidesToShow||!1===n.options.infinite?n.$slideTrack.children(".slick-slide").eq(i):n.$slideTrack.children(".slick-slide").eq(i+n.options.slidesToShow+1),e=!0===n.options.rtl?o[0]?-1*(n.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,e+=(n.$list.width()-o.outerWidth())/2)),e},e.prototype.getOption=e.prototype.slickGetOption=function(i){return this.options[i]},e.prototype.getNavigableIndexes=function(){var i,e=this,t=0,o=0,s=[];for(!1===e.options.infinite?i=e.slideCount:(t=-1*e.options.slidesToScroll,o=-1*e.options.slidesToScroll,i=2*e.slideCount);t<i;)s.push(t),t=o+e.options.slidesToScroll,o+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return s},e.prototype.getSlick=function(){return this},e.prototype.getSlideCount=function(){var e,t,o=this;return t=!0===o.options.centerMode?o.slideWidth*Math.floor(o.options.slidesToShow/2):0,!0===o.options.swipeToSlide?(o.$slideTrack.find(".slick-slide").each(function(s,n){if(n.offsetLeft-t+i(n).outerWidth()/2>-1*o.swipeLeft)return e=n,!1}),Math.abs(i(e).attr("data-slick-index")-o.currentSlide)||1):o.options.slidesToScroll},e.prototype.goTo=e.prototype.slickGoTo=function(i,e){this.changeSlide({data:{message:"index",index:
11536parseInt(i)}},e)},e.prototype.init=function(e){var t=this;i(t.$slider).hasClass("slick-initialized")||(i(t.$slider).addClass("slick-initialized"),t.buildRows(),t.buildOut(),t.setProps(),t.startLoad(),t.loadSlider(),t.initializeEvents(),t.updateArrows(),t.updateDots(),t.checkResponsive(!0),t.focusHandler()),e&&t.$slider.trigger("init",[t]),!0===t.options.accessibility&&t.initADA(),t.options.autoplay&&(t.paused=!1,t.autoPlay())},e.prototype.initADA=function(){var e=this,t=Math.ceil(e.slideCount/e.options.slidesToShow),o=e.getNavigableIndexes().filter(function(i){return i>=0&&i<e.slideCount});e.$slides.add(e.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==e.$dots&&(e.$slides.not(e.$slideTrack.find(".slick-cloned")).each(function(t){var s=o.indexOf(t);i(this).attr({role:"tabpanel",id:"slick-slide"+e.instanceUid+t,tabindex:-1}),-1!==s&&i(this).attr({"aria-describedby":"slick-slide-control"+e.instanceUid+s})}),e.$dots.attr("role","tablist").find("li").each(function(s){var n=o[s];i(this).attr({role:"presentation"}),i(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+e.instanceUid+s,"aria-controls":"slick-slide"+e.instanceUid+n,"aria-label":s+1+" of "+t,"aria-selected":null,tabindex:"-1"})}).eq(e.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var s=e.currentSlide,n=s+e.options.slidesToShow;s<n;s++)e.$slides.eq(s).attr("tabindex",0);e.activateADA()},e.prototype.initArrowEvents=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},i.changeSlide),i.$nextArrow.off("click.slick").on("click.slick",{message:"next"},i.changeSlide),!0===i.options.accessibility&&(i.$prevArrow.on("keydown.slick",i.keyHandler),i.$nextArrow.on("keydown.slick",i.keyHandler)))},e.prototype.initDotEvents=function(){var e=this;!0===e.options.dots&&(i("li",e.$dots).on("click.slick",{message:"index"},e.changeSlide),!0===e.options.accessibility&&e.$dots.on("keydown.slick",e.keyHandler)),!0===e.options.dots&&!0===e.options.pauseOnDotsHover&&i("li",e.$dots).on("mouseenter.slick",i.proxy(e.interrupt,e,!0)).on("mouseleave.slick",i.proxy(e.interrupt,e,!1))},e.prototype.initSlideEvents=function(){var e=this;e.options.pauseOnHover&&(e.$list.on("mouseenter.slick",i.proxy(e.interrupt,e,!0)),e.$list.on("mouseleave.slick",i.proxy(e.interrupt,e,!1)))},e.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.initSlideEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"}
11536,e.swipeHandler),e.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},e.swipeHandler),e.$list.on("click.slick",e.clickHandler),i(document).on(e.visibilityChange,i.proxy(e.visibility,e)),!0===e.options.accessibility&&e.$list.on("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().on("click.slick",e.selectHandler),i(window).on("orientationchange.slick.slick-"+e.instanceUid,i.proxy(e.orientationChange,e)),i(window).on("resize.slick.slick-"+e.instanceUid,i.proxy(e.resize,e)),i("[draggable!=true]",e.$slideTrack).on("dragstart",e.preventDefault),i(window).on("load.slick.slick-"+e.instanceUid,e.setPosition),i(e.setPosition)},e.prototype.initUI=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.show(),i.$nextArrow.show()),!0===i.options.dots&&i.slideCount>i.options.slidesToShow&&i.$dots.show()},e.prototype.keyHandler=function(i){var e=this;i.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===i.keyCode&&!0===e.options.accessibility?e.changeSlide({data:{message:!0===e.options.rtl?"next":"previous"}}):39===i.keyCode&&!0===e.options.accessibility&&e.changeSlide({data:{message:!0===e.options.rtl?"previous":"next"}}))},e.prototype.lazyLoad=function(){function e(e){i("img[data-lazy]",e).each(function(){var e=i(this),t=i(this).attr("data-lazy"),o=i(this).attr("data-srcset"),s=i(this).attr("data-sizes")||n.$slider.attr("data-sizes"),r=document.createElement("img");r.onload=function(){e.animate({opacity:0}
vendor: 5,619 bytes, line 11536
11536,100,function(){o&&(e.attr("srcset",o),s&&e.attr("sizes",s)),e.attr("src",t).animate({opacity:1},200,function(){e.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")}),n.$slider.trigger("lazyLoaded",[n,e,t])})},r.onerror=function(){e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),n.$slider.trigger("lazyLoadError",[n,e,t])},r.src=t})}var t,o,s,n=this;if(!0===n.options.centerMode?!0===n.options.infinite?s=(o=n.currentSlide+(n.options.slidesToShow/2+1))+n.options.slidesToShow+2:(o=Math.max(0,n.currentSlide-(n.options.slidesToShow/2+1)),s=n.options.slidesToShow/2+1+2+n.currentSlide):(o=n.options.infinite?n.options.slidesToShow+n.currentSlide:n.currentSlide,s=Math.ceil(o+n.options.slidesToShow),!0===n.options.fade&&(o>0&&o--,s<=n.slideCount&&s++)),t=n.$slider.find(".slick-slide").slice(o,s),"anticipated"===n.options.lazyLoad)for(var r=o-1,l=s,d=n.$slider.find(".slick-slide"),a=0;a<n.options.slidesToScroll;a++)r<0&&(r=n.slideCount-1),t=(t=t.add(d.eq(r))).add(d.eq(l)),r--,l++;e(t),n.slideCount<=n.options.slidesToShow?e(n.$slider.find(".slick-slide")):n.currentSlide>=n.slideCount-n.options.slidesToShow?e(n.$slider.find(".slick-cloned").slice(0,n.options.slidesToShow)):0===n.currentSlide&&e(n.$slider.find(".slick-cloned").slice(-1*n.options.slidesToShow))},e.prototype.loadSlider=function(){var i=this;i.setPosition(),i.$slideTrack.css({opacity:1}),i.$slider.removeClass("slick-loading"),i.initUI(),"progressive"===i.options.lazyLoad&&i.progressiveLazyLoad()},e.prototype.next=e.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},e.prototype.orientationChange=function(){var i=this;i.checkResponsive(),i.setPosition()},e.prototype.pause=e.prototype.slickPause=function(){var i=this;i.autoPlayClear(),i.paused=!0},e.prototype.play=e.prototype.slickPlay=function(){var i=this;i.autoPlay(),i.options.autoplay=!0,i.paused=!1,i.focussed=!1,i.interrupted=!1},e.prototype.postSlide=function(e){var t=this;t.unslicked||(t.$slider.trigger("afterChange",[t,e]),t.animating=!1,t.slideCount>t.options.slidesToShow&&t.setPosition(),t.swipeLeft=null,t.options.autoplay&&t.autoPlay(),!0===t.options.accessibility&&(t.initADA(),t.options.focusOnChange&&i(t.$slides.get(t.currentSlide)).attr("tabindex",0).focus()))},e.prototype.prev=e.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},e.prototype.preventDefault=function(i){i.preventDefault()},e.prototype.progressiveLazyLoad=function(e){e=e||1;var t,o,s,n,r,l=this,d=i("img[data-lazy]",l.$slider);d.length?(t=d.first(),o=t.attr("data-lazy"),s=t.attr("data-srcset"),n=t.attr("data-sizes")||l.$slider.attr("data-sizes"),(r=document.createElement("img")).onload=function(){s&&(t.attr("srcset",s),n&&t.attr("sizes",n)),t.attr("src",o).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===l.options.adaptiveHeight&&l.setPosition(),l.$slider.trigger("lazyLoaded",[l,t,o]),l.progressiveLazyLoad()},r.onerror=function(){e<3?setTimeout(function(){l.progressiveLazyLoad(e+1)},500):(t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),l.$slider.trigger("lazyLoadError",[l,t,o]),l.progressiveLazyLoad())},r.src=o):l.$slider.trigger("allImagesLoaded",[l])},e.prototype.refresh=function(e){var t,o,s=this;o=s.slideCount-s.options.slidesToShow,!s.options.infinite&&s.currentSlide>o&&(s.currentSlide=o),s.slideCount<=s.options.slidesToShow&&(s.currentSlide=0),t=s.currentSlide,s.destroy(!0),i.extend(s,s.initials,{currentSlide:t}),s.init(),e||s.changeSlide({data:{message:"index",index:t}},!1)},e.prototype.registerBreakpoints=function(){var e,t,o,s=this,n=s.options.responsive||null;if("array"===i.type(n)&&n.length){s.respondTo=s.options.respondTo||"window";for(e in n)if(o=s.breakpoints.length-1,n.hasOwnProperty(e)){for(t=n[e].breakpoint;o>=0;)s.breakpoints[o]&&s.breakpoints[o]===t&&s.breakpoints.splice(o,1),o--;s.breakpoints.push(t),s.breakpointSettings[t]=n[e].settings}s.breakpoints.sort(function(i,e){return s.options.mobileFirst?i-e:e-i})}},e.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass("slick-slide"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.registerBreakpoints(),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.cleanUpSlideEvents(),e.initSlideEvents(),e.checkResponsive(!1,!0),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().on("click.slick",e.selectHandler),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.setPosition(),e.focusHandler(),e.paused=!e.options.autoplay,e.autoPlay(),e.$slider.trigger("reInit",[e])},e.prototype.resize=function(){var e=this;i(window).width()!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout(function(){e.windowWidth=i(window).width(),e.checkResponsive(),e.unslicked||e.setPosition()},50))},e.prototype.removeSlide=e.prototype.slickRemove=function(i,e,t){var o=this;if(i="boolean"==typeof i?!0===(e=i)?0:o.slideCount-1:!0===e?--i:i,o.slideCount<1||i<0||i>o.slideCount-1)return!1;o.unload(),!0===t?o.$slideTrack.children().remove():o.$slideTrack.children(this.options.slide).eq(i).remove(),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).detach(),o.$slideTrack.append(o.$slides),o.$slidesCache=o.$slides,o.reinit()},e.prototype.setCSS=function(i){var e,t,o=this,s={};
11536!0===o.options.rtl&&(i=-i),e="left"==o.positionProp?Math.ceil(i)+"px":"0px",t="top"==o.positionProp?Math.ceil(i)+"px":"0px",s[o.positionProp]=i,!1===o.transformsEnabled?o.$slideTrack.css(s):(s={},!1===o.cssTransitions?(s[o.animType]="translate("+e+", "+t+")",o.$slideTrack.css(s)):(s[o.animType]="translate3d("+e+", "+t+", 0px)",o.$slideTrack.css(s)))},e.prototype.setDimensions=function(){var i=this;!1===i.options.vertical?!0===i.options.centerMode&&i.$list.css({padding:"0px "+i.options.centerPadding}):(i.$list.height(i.$slides.first().outerHeight(!0)*i.options.slidesToShow),!0===i.options.centerMode&&i.$list.css({padding:i.options.centerPadding+" 0px"})),i.listWidth=i.$list.width(),i.listHeight=i.$list.height(),!1===i.options.vertical&&!1===i.options.variableWidth?(i.slideWidth=Math.ceil(i.listWidth/i.options.slidesToShow),i.$slideTrack.width(Math.ceil(i.slideWidth*i.$slideTrack.children(".slick-slide").length))):!0===i.options.variableWidth?i.$slideTrack.width(5e3*i.slideCount):(i.slideWidth=Math.ceil(i.listWidth),i.$slideTrack.height(Math.ceil(i.$slides.first().outerHeight(!0)*i.$slideTrack.children(".slick-slide").length)));var e=i.$slides.first().outerWidth(!0)-i.$slides.first().width();!1===i.options.variableWidth&&i.$slideTrack.children(".slick-slide").width(i.slideWidth-e)},e.prototype.setFade=function(){var e,t=this;t.$slides.each(function(o,s){e=t.slideWidth*o*-1,!0===t.options.rtl?i(s).css({position:"relative",right:e,top:0,zIndex:t.options.zIndex-2,opacity:0}
11536):i(s).css({position:"relative",left:e,top:0,zIndex:t.options.zIndex-2,opacity:0})}),t.$slides.eq(t.currentSlide).css({zIndex:t.options.zIndex-1,opacity:1})},e.prototype.setHeight=function(){var i=this;if(1===i.options.slidesToShow&&!0===i.options.adaptiveHeight&&!1===i.options.vertical){var e=i.$slides.eq(i.currentSlide).outerHeight(!0);i.$list.css("height",e)}},e.prototype.setOption=e.prototype.slickSetOption=function(){var e,t,o,s,n,r=this,l=!1;if("object"===i.type(arguments[0])?(o=arguments[0],l=arguments[1],n="multiple"):"string"===i.type(arguments[0])&&(o=arguments[0],s=arguments[1],l=arguments[2],"responsive"===arguments[0]&&"array"===i.type(arguments[1])?n="responsive":void 0!==arguments[1]&&(n="single")),"single"===n)r.options[o]=s;else if("multiple"===n)i.each(o,function(i,e){r.options[i]=e});else if("responsive"===n)for(t in s)if("array"!==i.type(r.options.responsive))r.options.responsive=[s[t]];else{for(e=r.options.responsive.length-1;e>=0;)r.options.responsive[e].breakpoint===s[t].breakpoint&&r.options.responsive.splice(e,1),e--;r.options.responsive.push(s[t])}l&&(r.unload(),r.reinit())},e.prototype.setPosition=function(){var i=this;i.setDimensions(),i.setHeight(),!1===i.options.fade?i.setCSS(i.getLeft(i.currentSlide)):i.setFade(),i.$slider.trigger("setPosition",[i])},e.prototype.setProps=function(){var i=this,e=document.body.style;i.positionProp=!0===i.options.vertical?"top":"left","top"===i.positionProp?i.$slider.addClass("slick-vertical"):i.$slider.removeClass("slick-vertical"),void 0===e.WebkitTransition&&void 0===e.MozTransition&&void 0===e.msTransition||!0===i.options.useCSS&&(i.cssTransitions=!0),i.options.fade&&("number"==typeof i.options.zIndex?i.options.zIndex<3&&(i.options.zIndex=3):i.options.zIndex=i.defaults.zIndex),void 0!==e.OTransform&&(i.animType="OTransform",i.transformType="-o-transform",i.transitionType="OTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(i.animType=!1)),void 0!==e.MozTransform&&(i.animType="MozTransform",i.transformType="-moz-transform",i.transitionType="MozTransition",void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(i.animType=!1)),void 0!==e.webkitTransform&&(i.animType="webkitTransform",i.transformType="-webkit-transform",i.transitionType="webkitTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(i.animType=!1)),void 0!==e.msTransform&&(i.animType="msTransform",i.transformType="-ms-transform",i.transitionType="msTransition",void 0===e.msTransform&&(i.animType=!1)),void 0!==e.transform&&!1!==i.animType&&(i.animType="transform",i.transformType="transform",i.transitionType="transition"),i.transformsEnabled=i.options.useTransform&&null!==i.animType&&!1!==i.animType},e.prototype.setSlideClasses=function(i){var e,t,o,s,n=this;if(t=n.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),n.$slides.eq(i).addClass("slick-current"),!0===n.options.centerMode){var r=n.options.slidesToShow%2==0?1:0;e=Math.floor(n.options.slidesToShow/2),!0===n.options.infinite&&(i>=e&&i<=n.slideCount-1-e?n.$slides.slice(i-e+r,i+e+1).addClass("slick-active").attr("aria-hidden","false"):(o=n.options.slidesToShow+i,t.slice(o-e+1+r,o+e+2).addClass("slick-active").attr("aria-hidden","false")),0===i?t.eq(t.length-1-n.options.slidesToShow).addClass("slick-center"):i===n.slideCount-1&&t.eq(n.options.slidesToShow).addClass("slick-center")),n.$slides.eq(i).addClass("slick-center")}else i>=0&&i<=n.slideCount-n.options.slidesToShow?n.$slides.slice(i,i+n.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):t.length<=n.options.slidesToShow?t.addClass("slick-active").attr("aria-hidden","false"):(s=n.slideCount%n.options.slidesToShow,o=!0===n.options.infinite?n.options.slidesToShow+i:i,n.options.slidesToShow==n.options.slidesToScroll&&n.slideCount-i<n.options.slidesToShow?t.slice(o-(n.options.slidesToShow-s),o+s).addClass("slick-active").attr("aria-hidden","false"):t.slice(o,o+n.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"!==n.options.lazyLoad&&"anticipated"!==n.options.lazyLoad||n.lazyLoad()},e.prototype.setupInfinite=function(){var e,t,o,s=this;if(!0===s.options.fade&&(s.options.centerMode=!1),!0===s.options.infinite&&!1===s.options.fade&&(t=null,s.slideCount>s.options.slidesToShow)){for(o=!0===s.options.centerMode?s.options.slidesToShow+1:s.options.slidesToShow,e=s.slideCount;e>s.slideCount-o;e-=1)t=e-1,i(s.$slides[t]).clone(!0).attr("id","").attr("data-slick-index",t-s.slideCount).prependTo(s.$slideTrack).addClass("slick-cloned");for(e=0;e<o+s.slideCount;e+=1)t=e,i(s.$slides[t]).clone(!0).attr("id","").attr("data-slick-index",t+s.slideCount).appendTo(s.$slideTrack).addClass("slick-cloned");s.$slideTrack.find(".slick-cloned").find("[id]").each(function(){i(this).attr("id","")})}},e.prototype.interrupt=function(i){var e=this;i||e.autoPlay(),e.interrupted=i},e.prototype.selectHandler=function(e){var t=this,o=i(e.target).is(".slick-slide")?i(e.target):i(e.target).parents(".slick-slide"),s=parseInt(o.attr("data-slick-index"));s||(s=0),t.slideCount<=t.options.slidesToShow?t.slideHandler(s,!1,!0):t.slideHandler(s)},e.prototype.slideHandler=function(i,e,t){var o,s,n,r,l,d=null,a=this;if(e=e||!1,!(!0===a.animating&&!0===a.options.waitForAnimate||!0===a.options.fade&&a.currentSlide===i))if(!1===e&&a.asNavFor(i),o=i,d=a.getLeft(o),r=a.getLeft(a.currentSlide),a.currentLeft=null===a.swipeLeft?r:a.swipeLeft,!1===a.options.infinite&&!1===a.options.centerMode&&(i<0||i>a.getDotCount()*a.options.slidesToScroll))!1===a.options.fade&&(o=a.currentSlide,!0!==t?a.animateSlide(r,function(){a.postSlide(o)}):a.postSlide(o));else if(!1===a.options.infinite&&!0===a.options.centerMode&&(i<0||i>a.slideCount-a.options.slidesToScroll))!1===a.options.fade&&(o=a.currentSlide,!0!==t?a.animateSlide(r,function(){a.postSlide(o)}):a.postSlide(o));else{if(a.options.autoplay&&clearInterval(a.autoPlayTimer),s=o<0?a.slideCount%a.options.slidesToScroll!=0?a.slideCount-a.slideCount%a.options.slidesToScroll:a.slideCount+
11536o:o>=a.slideCount?a.slideCount%a.options.slidesToScroll!=0?0:o-a.slideCount:o,a.animating=!0,a.$slider.trigger("beforeChange",[a,a.currentSlide,s]),n=a.currentSlide,a.currentSlide=s,a.setSlideClasses(a.currentSlide),a.options.asNavFor&&(l=(l=a.getNavTarget()).slick("getSlick")).slideCount<=l.options.slidesToShow&&l.setSlideClasses(a.currentSlide),a.updateDots(),a.updateArrows(),!0===a.options.fade)return!0!==t?(a.fadeSlideOut(n),a.fadeSlide(s,function(){a.postSlide(s)})):a.postSlide(s),void a.animateHeight();!0!==t?a.animateSlide(d,function(){a.postSlide(s)}):a.postSlide(s)}},e.prototype.startLoad=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.hide(),i.$nextArrow.hide()),!0===i.options.dots&&i.slideCount>i.options.slidesToShow&&i.$dots.hide(),i.$slider.addClass("slick-loading")},e.prototype.swipeDirection=function(){var i,e,t,o,s=this;return i=s.touchObject.startX-s.touchObject.curX,e=s.touchObject.startY-s.touchObject.curY,t=Math.atan2(e,i),(o=Math.round(180*t/Math.PI))<0&&(o=360-Math.abs(o)),o<=45&&o>=0?!1===s.options.rtl?"left":"right":o<=360&&o>=315?!1===s.options.rtl?"left":"right":o>=135&&o<=225?!1===s.options.rtl?"right":"left":!0===s.options.verticalSwiping?o>=35&&o<=135?"down":"up":"vertical"},e.prototype.swipeEnd=function(i){var e,t,o=this;if(o.dragging=!1,o.swiping=!1,o.scrolling)return o.scrolling=!1,!1;if(o.interrupted=!1,o.shouldClick=!(o.touchObject.swipeLength>10),void 0===o.touchObject.curX)return!1;if(!0===o.touchObject.edgeHit&&o.$slider.trigger("edge",[o,o.swipeDirection()]),o.touchObject.swipeLength>=o.touchObject.minSwipe){switch(t=o.swipeDirection()){case"left":case"down":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide+o.getSlideCount()):o.currentSlide+o.getSlideCount(),o.currentDirection=0;break;case"right":case"up":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide-o.getSlideCount()):o.currentSlide-o.getSlideCount(),o.currentDirection=1}"vertical"!=t&&(o.slideHandler(e),o.touchObject={},o.$slider.trigger("swipe",[o,t]))}else o.touchObject.startX!==o.touchObject.curX&&(o.slideHandler(o.currentSlide),o.touchObject={})},e.prototype.swipeHandler=function(i){var e=this;if(!(!1===e.options.swipe||"ontouchend"in document&&!1===e.options.swipe||!1===e.options.draggable&&-1!==i.type.indexOf("mouse")))switch(e.touchObject.fingerCount=i.originalEvent&&void 0!==i.originalEvent.touches?i.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,!0===e.options.verticalSwiping&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),i.data.action){case"start":e.swipeStart(i);break;case"move":e.swipeMove(i);break;case"end":e.swipeEnd(i)}},e.prototype.swipeMove=function(i){var e,t,o,s,n,r,l=this;return n=void 0!==i.originalEvent?i.originalEvent.touches:null,!(!l.dragging||l.scrolling||n&&1!==n.length)&&(e=l.getLeft(l.currentSlide),l.touchObject.curX=void 0!==n?n[0].pageX:i.clientX,l.touchObject.curY=void 0!==n?n[0].pageY:i.clientY,l.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(l.touchObject.curX-l.touchObject.startX,2))),r=Math.round(Math.sqrt(Math.pow(l.touchObject.curY-l.touchObject.startY,2))),!l.options.verticalSwiping&&!l.swiping&&r>4?(l.scrolling=!0,!1):(!0===l.options.verticalSwiping&&(l.touchObject.swipeLength=r),t=l.swipeDirection(),void 0!==i.originalEvent&&l.touchObject.swipeLength>4&&(l.swiping=!0,i.preventDefault()),s=(!1===l.options.rtl?1:-1)*(l.touchObject.curX>l.touchObject.startX?1:-1),!0===l.options.verticalSwiping&&(s=l.touchObject.curY>l.touchObject.startY?1:-1),o=l.touchObject.swipeLength,l.touchObject.edgeHit=!1,!1===l.options.infinite&&(0===l.currentSlide&&"right"===t||l.currentSlide>=l.getDotCount()&&"left"===t)&&(o=l.touchObject.swipeLength*l.options.edgeFriction,l.touchObject.edgeHit=!0),!1===l.options.vertical?l.swipeLeft=e+o*s:l.swipeLeft=e+o*(l.$list.height()/l.listWidth)*s,!0===l.options.verticalSwiping&&(l.swipeLeft=e+o*s),!0!==l.options.fade&&!1!==l.options.touchMove&&(!0===l.animating?(l.swipeLeft=null,!1):void l.setCSS(l.swipeLeft))))},e.prototype.swipeStart=function(i){var e,t=this;if(t.interrupted=!0,1!==t.touchObject.fingerCount||t.slideCount<=t.options.slidesToShow)return t.touchObject={},!1;void 0!==i.originalEvent&&void 0!==i.originalEvent.touches&&(e=i.originalEvent.touches[0]),t.touchObject.startX=t.touchObject.curX=void 0!==e?e.pageX:i.clientX,t.touchObject.startY=t.touchObject.curY=void 0!==e?e.pageY:i.clientY,t.dragging=!0},e.prototype.unfilterSlides=e.prototype.slickUnfilter=function(){var i=this;null!==i.$slidesCache&&(i.unload(),i.$slideTrack.children(this.options.slide).detach(),i.$slidesCache.appendTo(i.$slideTrack),i.reinit())},e.prototype.unload=function(){var e=this;i(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove(),e.$nextArrow&&e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove(),e.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")}
11536,e.prototype.unslick=function(i){var e=this;e.$slider.trigger("unslick",[e,i]),e.destroy()},e.prototype.updateArrows=function(){var i=this;Math.floor(i.options.slidesToShow/2),!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&!i.options.infinite&&(i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),i.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===i.currentSlide?(i.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):i.currentSlide>=i.slideCount-i.options.slidesToShow&&!1===i.options.centerMode?(i.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):i.currentSlide>=i.slideCount-1&&!0===i.options.centerMode&&(i.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},e.prototype.updateDots=function(){var i=this;null!==i.$dots&&(i.$dots.find("li").removeClass("slick-active").end(),i.$dots.find("li").eq(Math.floor(i.currentSlide/i.options.slidesToScroll)).addClass("slick-active"))},e.prototype.visibility=function(){var i=this;i.options.autoplay&&(document[i.hidden]?i.interrupted=!0:i.interrupted=!1)},i.fn.slick=function(){var i,t,o=this,s=arguments[0],n=Array.prototype.slice.call(arguments,1),r=o.length;for(i=0;i<r;i++)if("object"==typeof s||void 0===s?o[i].slick=new e(o[i],s):t=o[i].slick[s].apply(o[i].slick,n),void 0!==t)return t;return o}}); 11537 11538 11539/* squelettes/js/lazyload.js */ 11540function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function _iterableToArray(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function _arrayWithoutHoles(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function _extends(){return(_extends=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(t,e){"object"===("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.LazyLoad=e()}(this,function(){"use strict";var t="undefined"!=typeof window,e=t&&!("onscroll"in window)||"undefined"!=typeof navigator&&/(gle|ing|ro)bot|crawl|spider/i.test(navigator.userAgent),n=t&&"IntersectionObserver"in window,r=t&&"classList"in document.createElement("p"),o={elements_selector:"img",container:e||t?document:null,threshold:300,thresholds:null,data_src:"src",data_srcset:"srcset",data_sizes:"sizes",data_bg:"bg",data_poster:"poster",class_loading:"loading",class_loaded:"loaded",class_error:"error",load_delay:0,auto_unobserve:!0,callback_enter:null,callback_exit:null,callback_reveal:null,callback_loaded:null,callback_error:null,callback_finish:null,use_native:!1},a=function(t,e){var n,r=new t(e);try{n=new CustomEvent("LazyLoad::Initialized",{detail:{instance:r}})}catch(t){(n=document.createEvent("CustomEvent")).initCustomEvent("LazyLoad::Initialized",!1,!1,{instance:r})}window.dispatchEvent(n)};var i=function(t,e){return t.getAttribute("data-"+e)},s=function(t,e,n){var r="data-"+e;null!==n?t.setAttribute(r,n):t.removeAttribute(r)},c=function(t){return"true"===i(t,"was-processed")},l=function(t,e){return s(t,"ll-timeout",e)},u=function(t){return i(t,"ll-timeout")},d=function(t,e,n,r){t&&(void 0===r?void 0===n?t(e):t(e,n):t(e,n,r))},f=function(t,e){t._loadingCount+=e,0===t._elements.length&&0===t._loadingCount&&d(t._settings.callback_finish,t)},_=function(t){for(var e,n=[],r=0;e=t.children[r];r+=1)"SOURCE"===e.tagName&&n.push(e);return n},v=function(t,e,n){n&&t.setAttribute(e,n)},b=function(t,e){v(t,"sizes",i(t,e.data_sizes)),v(t,"srcset",i(t,e.data_srcset)),v(t,"src",i(t,e.data_src))},m={IMG:function(t,e){var n=t.parentNode;
11540n&&"PICTURE"===n.tagName&&_(n).forEach(function(t){b(t,e)});b(t,e)},IFRAME:function(t,e){v(t,"src",i(t,e.data_src))},VIDEO:function(t,e){_(t).forEach(function(t){v(t,"src",i(t,e.data_src))}),v(t,"poster",i(t,e.data_poster)),v(t,"src",i(t,e.data_src)),t.load()}},p=function(t,e){var n,r,o=e._settings,a=t.tagName,s=m[a];if(s)return s(t,o),f(e,1),void(e._elements=(n=e._elements,r=t,n.filter(function(t){return t!==r})));!function(t,e){var n=i(t,e.data_src),r=i(t,e.data_bg);n&&(t.style.backgroundImage='url("'.concat(n,'")')),r&&(t.style.backgroundImage=r)}(t,o)},g=function(t,e){r?t.classList.add(e):t.className+=(t.className?" ":"")+e},y=function(t,e){r?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\s+)"+e+"(\\s+|$)")," ").replace(/^\s+/,"").replace(/\s+$/,"")},h=function(t,e,n){t.addEventListener(e,n)},E=function(t,e,n){t.removeEventListener(e,n)},w=function(t,e,n){E(t,"load",e),E(t,"loadeddata",e),E(t,"error",n)},A=function(t,e,n){var r=n._settings,o=e?r.class_loaded:r.class_error,a=e?r.callback_loaded:r.callback_error,i=t.target;y(i,r.class_loading),g(i,o),d(a,i,n),f(n,-1)},I=function(t,e){var n=function n(o){A(o,!0,e),w(t,n,r)},r=function r(o){A(o,!1,e),w(t,n,r)};!function(t,e,n){h(t,"load",e),h(t,"loadeddata",e),h(t,"error",n)}(t,n,r)},k=["IMG","IFRAME","VIDEO"],L=function(t,e){var n=e._observer;S(t,e),n&&e._settings.auto_unobserve&&n.unobserve(t)},O=function(t){var e=u(t);e&&(clearTimeout(e),l(t,null))},x=function(t,e){var n=e._settings.load_delay,r=u(t);r||(r=setTimeout(function(){L(t,e),O(t)},n),l(t,r))},S=function(t,e,n){var r=e._settings;!n&&c(t)||(k.indexOf(t.tagName)>-1&&(I(t,e),g(t,r.class_loading)),p(t,e),function(t){s(t,"was-processed","true")}(t),d(r.callback_reveal,t,e),d(r.callback_set,t,e))},z=function(t){return!!n&&(t._observer=new IntersectionObserver(function(e){e.forEach(function(e){return function(t){return t.isIntersecting||t.intersectionRatio>0}(e)?function(t,e,n){var r=n._settings;d(r.callback_enter,t,e,n),r.load_delay?x(t,n):L(t,n)}(e.target,e,t):function(t,e,n){var r=n._settings;d(r.callback_exit,t,e,n),r.load_delay&&O(t)}(e.target,e,t)})},{root:(e=t._settings).container===document?null:e.container,rootMargin:e.thresholds||e.threshold+"px"}),!0);var e},C=["IMG","IFRAME"],N=function(t,e){return function(t){return t.filter(function(t){return!c(t)})}((n=t||function(t){return t.container.querySelectorAll(t.elements_selector)}(e),Array.prototype.slice.call(n)));var n},M=function(t){var e=t._settings;_toConsumableArray(e.container.querySelectorAll("."+e.class_error)).forEach(function(t){y(t,e.class_error),function(t){s(t,"was-processed",null)}(t)}),t.update()},R=function(e,n){var r;this._settings=function(t){return _extends({},o,t)}(e),this._loadingCount=0,z(this),this.update(n),r=this,t&&window.addEventListener("online",function(t){M(r)})};return R.prototype={update:function(t){var n,r=this,o=this._settings;(this._elements=N(t,o),!e&&this._observer)?(function(t){return t.use_native&&"loading"in HTMLImageElement.prototype}(o)&&((n=this)._elements.forEach(function(t){-1!==C.indexOf(t.tagName)&&(t.setAttribute("loading","lazy"),S(t,n))}),this._elements=N(t,o)),this._elements.forEach(function(t){r._observer.observe(t)})):this.loadAll()},destroy:function(){var t=this;this._observer&&(this._elements.forEach(function(e){t._observer.unobserve(e)}),this._observer=null),this._elements=null,this._settings=null},load:function(t,e){S(t,this,e)},loadAll:function(){var t=this;this._elements.forEach(function(e){L(e,t)})}},t&&function(t,e){if(e)if(e.length)for(var n,r=0;n=e[r];r+=1)a(t,n);else a(t,e)}(R,window.lazyLoadOptions),R}); 11541 11542 11543/* squelettes/js/masonry.js
vendor: 23,971 bytes, lines 11543-11545
11543 */ 11544 11545!function(t,e){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){"use strict";function i(i,r,a){function h(t,e,n){var o,r="$()."+i+'("'+e+'")';return t.each(function(t,h){var u=a.data(h,i);if(!u)return void s(i+" not initialized. Cannot call methods, i.e. "+r);var d=u[e];if(!d||"_"==e.charAt(0))return void s(r+" is not a valid method");var l=d.apply(u,n);o=void 0===o?l:o}),void 0!==o?o:t}function u(t,e){t.each(function(t,n){var o=a.data(n,i);o?(o.option(e),o._init()):(o=new r(n,e),a.data(n,i,o))})}a=a||e||t.jQuery,a&&(r.prototype.option||(r.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[i]=function(t){if("string"==typeof t){var e=o.call(arguments,1);return h(this,t,e)}return u(this,t),this},n(a))}function n(t){!t||t&&t.bridget||(t.bridget=i)}var o=Array.prototype.slice,r=t.console,s="undefined"==typeof r?function(){}:function(t){r.error(t)};return n(e||t.jQuery),i}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return-1==n.indexOf(e)&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},n=i[t]=i[t]||{};return n[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return-1!=n&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],o=0;o<i.length;o++){var r=i[o],s=n&&n[r];s&&(this.off(t,r),delete n[r]),r.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t}),function(t,e){"function"==typeof define&&define.amd?define("get-size/get-size",e):"object"==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,function(){"use strict";function t(t){var e=parseFloat(t),i=-1==t.indexOf("%")&&!isNaN(e);return i&&e}function e(){}function i(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;u>e;e++){var i=h[e];t[i]=0}return t}function n(t){var e=getComputedStyle(t);return e||a("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),e}function o(){if(!d){d=!0;var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style.boxSizing="border-box";var i=document.body||document.documentElement;i.appendChild(e);var o=n(e);s=200==Math.round(t(o.width)),r.isBoxSizeOuter=s,i.removeChild(e)}}function r(e){if(o(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var r=n(e);if("none"==r.display)return i();var a={};a.width=e.offsetWidth,a.height=e.offsetHeight;for(var d=a.isBorderBox="border-box"==r.boxSizing,l=0;u>l;l++){var c=h[l],f=r[c],m=parseFloat(f);a[c]=isNaN(m)?0:m}var p=a.paddingLeft+a.paddingRight,g=a.paddingTop+a.paddingBottom,y=a.marginLeft+a.marginRight,v=a.marginTop+a.marginBottom,_=a.borderLeftWidth+a.borderRightWidth,z=a.borderTopWidth+a.borderBottomWidth,E=d&&s,b=t(r.width);b!==!1&&(a.width=b+(E?0:p+_));var x=t(r.height);return x!==!1&&(a.height=x+(E?0:g+z)),a.innerWidth=a.width-(p+_),a.innerHeight=a.height-(g+z),a.outerWidth=a.width+y,a.outerHeight=a.height+v,a}}var s,a="undefined"==typeof console?e:function(t){console.error(t)},h=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],u=h.length,d=!1;return r}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(window,function(){"use strict";var t=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var n=e[i],o=n+"MatchesSelector";if(t[o])return o}}();return function(e,i){return e[t](i)}}),function(t,e){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("desandro-matches-selector")):t.fizzyUIUtils=e(t,t.matchesSelector)}(window,function(t,e){var i={};i.extend=function(t,e){for(var i in e)t[i]=e[i];return t},i.modulo=function(t,e){return(t%e+e)%e};var n=Array.prototype.slice;i.makeArray=function(t){if(Array.isArray(t))return t;if(null===t||void 0===t)return[];var e="object"==typeof t&&"number"==typeof t.length;return e?n.call(t):[t]},i.removeFrom=function(t,e){var i=t.indexOf(e);-1!=i&&t.splice(i,1)},i.getParent=function(t,i){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,e(t,i))return t},i.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},i.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.filterFindElements=function(t,n){t=i.makeArray(t);var o=[];return t.forEach(function(t){if(t instanceof HTMLElement){if(!n)return void o.push(t);e(t,n)&&o.push(t);for(var i=t.querySelectorAll(n),r=0;r<i.length;r++)o.push(i[r])}}),o},i.debounceMethod=function(t,e,i){i=i||100;var n=t.prototype[e],o=e+"Timeout";t.prototype[e]=function(){var t=this[o];clearTimeout(t);var e=arguments,r=this;this[o]=setTimeout(function(){n.apply(r,e),delete r[o]},i)}},i.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},i.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var o=t.console;return i.htmlInit=function(e,n){i.docReady(function(){var r=i.toDashed(n),s="data-"+r,a=document.querySelectorAll("["+s+"]"),h=document.querySelectorAll(".js-"+r),u=i.makeArray(a).concat(i.makeArray(h)),d=s+"-options",l=t.jQuery;u.forEach(function(t){var i,r=t.getAttribute(s)||t.getAttribute(d);try{i=r&&JSON.parse(r)}catch(a){return void(o&&o.error("Error parsing "+s+" on "+t.className+": "+a))}var h=new e(t,i);l&&l.data(t,n,h)})})},i}),function(t,e){"function"==typeof define&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("ev-emitter"),require("get-size")):(t.Outlayer={},t.Outlayer.Item=e(t.EvEmitter,t.getSize))}(window,function(t,e){"use strict";function i(t){for(var e in t)return!1;return e=null,!0}function n(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}function o(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}var r=document.documentElement.style,s="string"==typeof r.transition?"transition":"WebkitTransition",a="string"==typeof r.transform?"transform":"WebkitTransform",h={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[s],u={transform:a,transition:s,transitionDuration:s+"Duration",transitionProperty:s+"Property",transitionDelay:s+"Delay"},d=n.prototype=Object.create(t.prototype);d.constructor=n,d._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},d.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},d.getSize=function(){this.size=e(this.element)},d.css=function(t){var e=this.element.style;for(var i in t){var n=u[i]||i;e[n]=t[i]}},d.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),n=t[e?"left":"right"],o=t[i?"top":"bottom"],r=parseFloat(n),s=parseFloat(o),a=this.layout.size;-1!=n.indexOf("%")&&(r=r/100*a.width),-1!=o.indexOf("%")&&(s=s/100*a.height),r=isNaN(r)?0:r,s=isNaN(s)?0:s,r-=e?a.paddingLeft:a.paddingRight,s-=i?a.paddingTop:a.paddingBottom,this.position.x=r,this.position.y=s},d.layoutPosition=function(){var t=this.layout.size,e={},i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),o=i?"paddingLeft":"paddingRight",r=i?"left":"right",s=i?"right":"left",a=this.position.x+t[o];e[r]=this.getXValue(a),e[s]="";var h=n?"paddingTop":"paddingBottom",u=n?"top":"bottom",d=n?"bottom":"top",l=this.position.y+t[h];e[u]=this.getYValue(l),e[d]="",this.css(e),this.emitEvent("layout",[this])},d.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},d.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},d._transitionTo=function(t,e){this.getPosition();var i=this.position.x,n=this.position.y,o=t==this.position.x&&e==this.position.y;if(this.setPosition(t,e),o&&!this.isTransitioning)return void this.layoutPosition();var r=t-i,s=e-n,a={};a.transform=this.getTranslate(r,s),this.transition({to:a,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},d.getTranslate=function(t,e){var i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop");return t=i?t:-t,e=n?e:-e,"translate3d("+t+"px, "+e+"px, 0)"},d.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},d.moveTo=d._transitionTo,d.setPosition=function(t,e){this.position.x=parseFloat(t),this.position.y=parseFloat(e)},d._nonTransition=function(t){this.css(t.to),t.isCleaning&&this._removeStyles(t.to);for(var e in t.onTransitionEnd)t.onTransitionEnd[e].call(this)},d.transition=function(t){if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(t);var e=this._transn;for(var i in t.onTransitionEnd)e.onEnd[i]=t.onTransitionEnd[i];for(i in t.to)e.ingProperties[i]=!0,t.isCleaning&&(e.clean[i]=!0);if(t.from){this.css(t.from);var n=this.element.offsetHeight;n=null}this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0};var l="opacity,"+o(a);d.enableTransition=function(){if(!this.isTransitioning){var t=this.layout.options.transitionDuration;t="number"==typeof t?t+"ms":t,this.css({transitionProperty:l,transitionDuration:t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(h,this,!1)}},d.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},d.onotransitionend=function(t){this.ontransitionend(t)};var c={"-webkit-transform":"transform"};d.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,n=c[t.propertyName]||t.propertyName;if(delete e.ingProperties[n],i(e.ingProperties)&&this.disableTransition(),n in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[n]),n in e.onEnd){var o=e.onEnd[n];o.call(this),delete e.onEnd[n]}this.emitEvent("transitionEnd",[this])}},d.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(h,this,!1),this.isTransitioning=!1},d._removeStyles=function(t){var e={};for(var i in t)e[i]="";this.css(e)};var f={transitionProperty:"",transitionDuration:"",transitionDelay:""};return d.removeTransitionStyles=function(){this.css(f)},d.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},d.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},d.remove=function(){return s&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),void this.hide()):void this.removeElem()},d.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty("visibleStyle");e[i]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},d.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},d.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var i in e)return i},d.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty("hiddenStyle");e[i]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},d.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},d.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},n}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(i,n,o,r){return e(t,i,n,o,r)}):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):t.Outlayer=e(t,t.EvEmitter,t.getSize,t.fizzyUIUtils,t.Outlayer.Item)}(window,function(t,e,i,n,o){"use strict";function r(t,e){var i=n.getQueryElement(t);if(!i)return void(h&&h.error("Bad element for "+this.constructor.namespace+": "+(i||t)));this.element=i,u&&(this.$element=u(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(e);var o=++l;this.element.outlayerGUID=o,c[o]=this,this._create();var r=this._getOption("initLayout");r&&this.layout()}function s(t){function e(){t.apply(this,arguments)}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e}function a(t){if("number"==typeof t)return t;var e=t.match(/(^\d*\.?\d*)(\w*)/),i=e&&e[1],n=e&&e[2];if(!i.length)return 0;i=parseFloat(i);var o=m[n]||1;return i*o}var h=t.console,u=t.jQuery,d=function(){},l=0,c={};r.namespace="outlayer",r.Item=o,r.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var f=r.prototype;n.extend(f,e.prototype),f.option=function(t){n.extend(this.options,t)},f._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},r.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},f._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),n.extend(this.element.style,this.options.containerStyle);var t=this._getOption("resize");t&&this.bindResize()},f.reloadItems=function(){this.items=this._itemize(this.element.children)},f._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,n=[],o=0;o<e.length;o++){var r=e[o],s=new i(r,this);n.push(s)}return n},f._filterFindItemElements=function(t){return n.filterFindElements(t,this.options.itemSelector)},f.getItemElements=function(){return this.items.map(function(t){return t.element})},f.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,e),this._isLayoutInited=!0},f._init=f.layout,f._resetLayout=function(){this.getSize()},f.getSize=function(){this.size=i(this.element)},f._getMeasurement=function(t,e){var n,o=this.options[t];o?("string"==typeof o?n=this.element.querySelector(o):o instanceof HTMLElement&&(n=o),this[t]=n?i(n)[e]:o):this[t]=0},f.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},f._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},f._layoutItems=function(t,e){if(this._emitCompleteOnItems("layout",t),t&&t.length){var i=[];t.forEach(function(t){var n=this._getItemLayoutPosition(t);n.item=t,n.isInstant=e||t.isLayoutInstant,i.push(n)},this),this._processLayoutQueue(i)}},f._getItemLayoutPosition=function(){return{x:0,y:0}},f._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},f.updateStagger=function(){var t=this.options.stagger;return null===t||void 0===t?void(this.stagger=0):(this.stagger=a(t),this.stagger)},f._positionItem=function(t,e,i,n,o){n?t.goTo(e,i):(t.stagger(o*this.stagger),t.moveTo(e,i))},f._postLayout=function(){this.resizeContainer()},f.resizeContainer=function(){var t=this._getOption("resizeContainer");if(t){var e=this._getContainerSize();e&&(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))}},f._getContainerSize=d,f._setContainerMeasure=function(t,e){if(void 0!==t){var i=this.size;i.isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px"}},f._emitCompleteOnItems=function(t,e){function i(){o.dispatchEvent(t+"Complete",null,[e])}function n(){s++,s==r&&i()}var o=this,r=e.length;if(!e||!r)return void i();var s=0;e.forEach(function(e){e.once(t,n)})},f.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;if(this.emitEvent(t,n),u)if(this.$element=this.$element||u(this.element),e){var o=u.Event(e);o.type=t,this.$element.trigger(o,i)}else this.$element.trigger(t,i)},f.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},f.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},f.stamp=function(t){t=this._find(t),t&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},f.unstamp=function(t){t=this._find(t),t&&t.forEach(function(t){n.removeFrom(this.stamps,t),this.unignore(t)},this)},f._find=function(t){return t?("string"==typeof t&&(t=this.element.querySelectorAll(t)),t=n.makeArray(t)):void 0},f._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},f._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},f._manageStamp=d,f._getElementOffset=function(t){var e=t.getBoundingClientRect(),n=this._boundingRect,o=i(t),r={left:e.left-n.left-o.marginLeft,top:e.top-n.top-o.marginTop,right:n.right-e.right-o.marginRight,bottom:n.bottom-e.bottom-o.marginBottom};return r},f.handleEvent=n.handleEvent,f.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},f.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},f.onresize=function(){this.resize()},n.debounceMethod(r,"onresize",100),f.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},f.needsResizeLayout=function(){var t=i(this.element),e=this.size&&t;return e&&t.innerWidth!==this.size.innerWidth},f.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},f.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},f.prepended=function(t){var e=this._itemize(t);if(e.length){var i=this.items.slice(0);this.items=e.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(i)}},f.reveal=function(t){if(this._emitCompleteOnItems("reveal",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.reveal()})}},f.hide=function(t){if(this._emitCompleteOnItems("hide",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.hide()})}},f.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},f.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},f.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},f.getItems=function(t){t=n.makeArray(t);var e=[];return t.forEach(function(t){var i=this.getItem(t);i&&e.push(i)},this),e},f.remove=function(t){var e=this.getItems(t);this._emitCompleteOnItems("remove",e),e&&e.length&&e.forEach(function(t){t.remove(),n.removeFrom(this.items,t)},this)},f.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="",this.items.forEach(function(t){t.destroy()}),this.unbindResize();var e=this.element.outlayerGUID;delete c[e],delete this.element.outlayerGUID,u&&u.removeData(this.element,this.constructor.namespace)},r.data=function(t){t=n.getQueryElement(t);var e=t&&t.outlayerGUID;return e&&c[e]},r.create=function(t,e){var i=s(r);return i.defaults=n.extend({},r.defaults),n.extend(i.defaults,e),i.compatOptions=n.extend({},r.compatOptions),i.namespace=t,i.data=r.data,i.Item=s(o),n.htmlInit(i,t),u&&u.bridget&&u.bridget(t,i),i};var m={ms:1,s:1e3};return r.Item=o,r}),function(t,e){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer"),require("get-size")):t.Masonry=e(t.Outlayer,t.getSize)}(window,function(t,e){var i=t.create("masonry");i.compatOptions.fitWidth="isFitWidth";var n=i.prototype;return n._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},n.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var t=this.items[0],i=t&&t.element;this.columnWidth=i&&e(i).outerWidth||this.containerWidth}var n=this.columnWidth+=this.gutter,o=this.containerWidth+this.gutter,r=o/n,s=n-o%n,a=s&&1>s?"round":"floor";r=Math[a](r),this.cols=Math.max(r,1)},n.getContainerWidth=function(){var t=this._getOption("fitWidth"),i=t?this.element.parentNode:this.element,n=e(i);this.containerWidth=n&&n.innerWidth},n._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,i=e&&1>e?"round":"ceil",n=Math[i](t.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);for(var o=this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition",r=this[o](n,t),s={x:this.columnWidth*r.col,y:r.y},a=r.y+t.size.outerHeight,h=n+r.col,u=r.col;h>u;u++)this.colYs[u]=a;return s},n._getTopColPosition=function(t){var e=this._getTopColGroup(t),i=Math.min.apply(Math,e);return{col:e.indexOf(i),y:i}},n._getTopColGroup=function(t){if(2>t)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;i>n;n++)e[n]=this._getColGroupY(n,t);return e},n._getColGroupY=function(t,e){if(2>e)return this.colYs[t];var i=this.colYs.slice(t,t+e);return Math.max.apply(Math,i)},n._getHorizontalColPosition=function(t,e){var i=this.horizontalColIndex%this.cols,n=t>1&&i+t>this.cols;i=n?0:i;var o=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=o?i+t:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,t)}},n._manageStamp=function(t){var i=e(t),n=this._getElementOffset(t),o=this._getOption("originLeft"),r=o?n.left:n.right,s=r+i.outerWidth,a=Math.floor(r/this.columnWidth);a=Math.max(0,a);var h=Math.floor(s/this.columnWidth);h-=s%this.columnWidth?0:1,h=Math.min(this.cols-1,h);for(var u=this._getOption("originTop"),d=(u?n.top:n.bottom)+i.outerHeight,l=a;h>=l;l++)this.colYs[l]=Math.max(d,this.colYs[l])},n._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},n._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},n.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},i});
vendor: 2,107 bytes, lines 11545-11550
11545 11546 11547 11548/* squelettes/js/imagesloaded.js */ 11549 11550!function(e,t){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",t):"object"==typeof module&&module.exports?module.exports=t():e.EvEmitter=t()}("undefined"!=typeof window?window:this,function(){function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var i=this._events=this._events||{},n=i[e]=i[e]||[];return n.indexOf(t)==-1&&n.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var i=this._onceEvents=this._onceEvents||{},n=i[e]=i[e]||{};return n[t]=!0,this}},t.off=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){var n=i.indexOf(t);return n!=-1&&i.splice(n,1),this}},t.emitEvent=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){i=i.slice(0),t=t||[];for(var n=this._onceEvents&&this._onceEvents[e],o=0;o<i.length;o++){var r=i[o],s=n&&n[r];s&&(this.off(e,r),delete n[r]),r.apply(this,t)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e}),function(e,t){"use strict";"function"==typeof define&&define.amd?define(["ev-emitter/ev-emitter"],function(i){return t(e,i)}):"object"==typeof module&&module.exports?module.exports=t(e,require("ev-emitter")):e.imagesLoaded=t(e,e.EvEmitter)}("undefined"!=typeof window?window:this,function(e,t){function i(e,t){for(var i in t)e[i]=t[i];return e}function n(e){if(Array.isArray(e))return e;var t="object"==typeof e&&"number"==typeof e.length;return t?d.call(e):[e]}function o(e,t,r){if(!(this instanceof o))return new o(e,t,r);var s=e;return"string"==typeof e&&(s=document.querySelectorAll(e)),s?(this.elements=n(s),this.options=i({},this.options),"function"==typeof t?r=t:i(this.options,t),r&&this.on("always",r),this.getImages(),h&&(this.jqDeferred=new h.Deferred),void setTimeout(this.check.bind(this))):void a.error("Bad element for imagesLoaded "+(s||e))}function r(e){this.img=e}function s(e,t){this.url=e,this.element=t,this.img=new Image}var h=e.jQuery,a=e.console,d=Array.prototype.slice;o.prototype=Object.create(t.prototype),o.prototype.options={},o.prototype.getImages=function(){this.images=[],this.elements.forEac
11550h(this.addElementImages,this)},o.prototype.addElementImages=function(e){"IMG"==e.nodeName&&this.addImage(e),this.options.background===!0&&this.addElementBackgroundImages(e);var t=e.nodeType;if(t&&u[t]){for(var i=e.querySelectorAll("img"),n=0;n<i.length;n++){var o=i[n];this.addImage(o)}if("string"==typeof this.options.background){var r=e.querySelectorAll(this.options.background);for(n=0;n<r.length;n++){var s=r[n];this.addElementBackgroundImages(s)}}}};var u={1:!0,9:!0,11:!0};return o.prototype.addElementBackgroundImages=function(e){var t=getComputedStyle(e);if(t)for(var i=/url\((['"])?(.*?)\1\)/gi,n=i.exec(t.backgroundImage);null!==n;){var o=n&&n[2];o&&this.addBackground(o,e),n=i.exec(t.backgroundImage)}},o.prototype.addImage=function(e){var t=new r(e);this.images.push(t)},o.prototype.addBackground=function(e,t){var i=new s(e,t);this.images.push(i)},o.prototype.check=function(){function e(e,i,n){setTimeout(function(){t.progress(e,i,n)})}var t=this;return this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?void this.images.forEach(function(t){t.once("progress",e),t.check()}):void this.complete()},o.prototype.progress=function(e,t,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded,this.emitEvent("progress",[this,e,t]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,e),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&a&&a.log("progress: "+i,e,t)},o.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(e,[this]),this.emitEvent("always",[this]),this.jqDeferred){var t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},r.prototype=Object.create(t.prototype),r.prototype.check=function(){var e=this.getIsImageComplete();return e?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),void(this.proxyImage.src=this.img.src))},r.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},r.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.img,t])},r.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},r.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},r.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},r.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},s.prototype=Object.create(r.prototype),s.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url;var e=this.getIsImageComplete();e&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},s.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},s.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.element,t])},o.makeJQueryPlugin=function(t){t=t||e.jQuery,t&&(h=t,h.fn.imagesLoaded=function(e,t){var i=new o(this,e,t);return i.jqDeferred.promise(h(this))})},o.makeJQueryPlugin(),o}); 11551 11552 11553/* squelettes/js/fluidify.js */ 11554 11555$(document).ready(function(){ 11556if(typeof YOUTUBE_VIDEO_MARGIN=='undefined'){ 11557YOUTUBE_VIDEO_MARGIN=0; 11558} 11559$('iframe').each(function(index,item){ 11560if($(item).attr('src').match(/(https?:)?\/\/www\.youtube\.com/)||$(item).attr('src').match(/(https?:)?\/\/odysee\.com/)||$(item).attr('src').match(/(https?:)?\/\/odysee\.com/)){ 11561console.log($(item).attr('src')); 11562var w=$(item).attr('width'); 11563var h=$(item).attr('height'); 11564var ar=h/w*100; 11565ar=ar.toFixed(2); 11566$(item).css('position','absolute'); 11567$(item).css('top','0'); 11568$(item).css('left','0'); 11569$(item).css('width','100%'); 11570$(item).css('height','100%'); 11571$(item).css('max-width',w+'px'); 11572$(item).css('max-height',h+'px'); 11573$(item).wrap('<div style="max-width:'+w+'px;margin:0 auto; padding:'+YOUTUBE_VIDEO_MARGIN+'px;" />'); 11574$(item).wrap('<div style="position: relative;padding-bottom: '+ar+'%; height: 0; overflow: hidden;" />'); 11575} 11576}); 11577}); 11578 11579
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.