PageSourceSearch

https://histoire-genealogie.com/local/cache-js/e470c019a92c7d96bac0fb3bb2ab386d.js?1790329255

js histoire-genealogie.com collected 2026-10-01 12:07:53 UTC 299,361 bytes, 12,853 lines download raw bytes

vendor: 144,635 bytes, lines 1-6633
1/* compact [
2	prive/javascript/jquery.js?1790327464
3	prive/javascript/jquery.form.js?1790327464
4	prive/javascript/jquery.autosave.js?1790327464
5	prive/javascript/jquery.placeholder-label.js?1790327464
6	prive/javascript/ajaxCallback.js?1790327464
7	prive/javascript/js.cookie.js?1790327464
8	plugins-dist/mediabox/lib/lity/lity.js?1790327464
9	plugins-dist/mediabox/lity/js/lity.mediabox.js?1790327464
10	plugins-dist/mediabox/javascript/spip.mediabox.js?1790327464
11	plugins-dist/porte_plume/javascript/jquery.markitup_pour_spip.js?1790327464
12	plugins-dist/porte_plume/javascript/jquery.previsu_spip.js?1790327464
13	local/cache-js/jsdyn-javascript_porte_plume_start_js-d2ea892a.js?1790181764
14	plugins/auto/inserer_modeles/v2.4.1/javascript/autosize.min.js
15	local/couteau-suisse/header.js
16] 55.5% */
17
18/* prive/javascript/jquery.js?1790327464 */
19
20(function(global,factory){
21"use strict";
22if(typeof module==="object"&&typeof module.exports==="object"){
23module.exports=global.document?
24factory(global,true):
25function(w){
26if(!w.document){
27throw new Error("jQuery requires a window with a document");
28}
29return factory(w);
30};
31}else{
32factory(global);
33}
34})(typeof window!=="undefined"?window:this,function(window,noGlobal){
35"use strict";
36var arr=[];
37var getProto=Object.getPrototypeOf;
38var slice=arr.slice;
39var flat=arr.flat?function(array){
40return arr.flat.call(array);
41}:function(array){
42return arr.concat.apply([],array);
43};
44var push=arr.push;
45var indexOf=arr.indexOf;
46var class2type={};
47var toString=class2type.toString;
48var hasOwn=class2type.hasOwnProperty;
49var fnToString=hasOwn.toString;
50var ObjectFunctionString=fnToString.call(Object);
51var support={};
52var isFunction=function isFunction(obj){
53return typeof obj==="function"&&typeof obj.nodeType!=="number"&&
54typeof obj.item!=="function";
55};
56var isWindow=function isWindow(obj){
57return obj!=null&&obj===obj.window;
58};
59var document=window.document;
60var preservedScriptAttributes={
61type:true,
62src:true,
63nonce:true,
64noModule:true
65};
66function DOMEval(code,node,doc){
67doc=doc||document;
68var i,val,
69script=doc.createElement("script");
70script.text=code;
71if(node){
72for(i in preservedScriptAttributes){
73val=node[i]||node.getAttribute&&node.getAttribute(i);
74if(val){
75script.setAttribute(i,val);
76}
77}
78}
79doc.head.appendChild(script).parentNode.removeChild(script);
80}
81function toType(obj){
82if(obj==null){
83return obj+"";
84}
85return typeof obj==="object"||typeof obj==="function"?
86class2type[toString.call(obj)]||"object":
87typeof obj;
88}
89var version="3.7.1",
90rhtmlSuffix=/HTML$/i,
91jQuery=function(selector,context){
92return new jQuery.fn.init(selector,context);
93};
94jQuery.fn=jQuery.prototype={
95jquery:version,
96constructor:jQuery,
97length:0,
98toArray:function(){
99return slice.call(this);
100},
101get:function(num){
102if(num==null){
103return slice.call(this);
104}
105return num<0?this[num+this.length]:this[num];
106},
107pushStack:function(elems){
108var ret=jQuery.merge(this.constructor(),elems);
109ret.prevObject=this;
110return ret;
111},
112each:function(callback){
113return jQuery.each(this,callback);
114},
115map:function(callback){
116return this.pushStack(jQuery.map(this,function(elem,i){
117return callback.call(elem,i,elem);
118}));
119},
120slice:function(){
121return this.pushStack(slice.apply(this,arguments));
122},
123first:function(){
124return this.eq(0);
125},
126last:function(){
127return this.eq(-1);
128},
129even:function(){
130return this.pushStack(jQuery.grep(this,function(_elem,i){
131return(i+1)%2;
132}));
133},
134odd:function(){
135return this.pushStack(jQuery.grep(this,function(_elem,i){
136return i%2;
137}));
138},
139eq:function(i){
140var len=this.length,
141j=+i+(i<0?len:0);
142return this.pushStack(j>=0&&j<len?[this[j]]:[]);
143},
144end:function(){
145return this.prevObject||this.constructor();
146},
147push:push,
148sort:arr.sort,
149splice:arr.splice
150};
151jQuery.extend=jQuery.fn.extend=function(){
152var options,name,src,copy,copyIsArray,clone,
153target=arguments[0]||{},
154i=1,
155length=arguments.length,
156deep=false;
157if(typeof target==="boolean"){
158deep=target;
159target=arguments[i]||{};
160i++;
161}
162if(typeof target!=="object"&&!isFunction(target)){
163target={};
164}
165if(i===length){
166target=this;
167i--;
168}
169for(;i<length;i++){
170if((options=arguments[i])!=null){
171for(name in options){
172copy=options[name];
173if(name==="__proto__"||target===copy){
174continue;
175}
176if(deep&&copy&&(jQuery.isPlainObject(copy)||
177(copyIsArray=Array.isArray(copy)))){
178src=target[name];
179if(copyIsArray&&!Array.isArray(src)){
180clone=[];
181}else if(!copyIsArray&&!jQuery.isPlainObject(src)){
182clone={};
183}else{
184clone=src;
185}
186copyIsArray=false;
187target[name]=jQuery.extend(deep,clone,copy);
188}else if(copy!==undefined){
189target[name]=copy;
190}
191}
192}
193}
194return target;
195};
196jQuery.extend({
197expando:"jQuery"+(version+Math.random()).replace(/\D/g,""),
198isReady:true,
199error:function(msg){
200throw new Error(msg);
201},
202noop:function(){},
203isPlainObject:function(obj){
204var proto,Ctor;
205if(!obj||toString.call(obj)!=="[object Object]"){
206return false;
207}
208proto=getProto(obj);
209if(!proto){
210return true;
211}
212Ctor=hasOwn.call(proto,"constructor")&&proto.constructor;
213return typeof Ctor==="function"&&fnToString.call(Ctor)===ObjectFunctionString;
214},
215isEmptyObject:function(obj){
216var name;
217for(name in obj){
218return false;
219}
220return true;
221},
222globalEval:function(code,options,doc){
223DOMEval(code,{nonce:options&&options.nonce},doc);
224},
225each:function(obj,callback){
226var length,i=0;
227if(isArrayLike(obj)){
228length=obj.length;
229for(;i<length;i++){
230if(callback.call(obj[i],i,obj[i])===false){
231break;
232}
233}
234}else{
235for(i in obj){
236if(callback.call(obj[i],i,obj[i])===false){
237break;
238}
239}
240}
241return obj;
242},
243text:function(elem){
244var node,
245ret="",
246i=0,
247nodeType=elem.nodeType;
248if(!nodeType){
249while((node=elem[i++])){
250ret+=jQuery.text(node);
251}
252}
253if(nodeType===1||nodeType===11){
254return elem.textContent;
255}
256if(nodeType===9){
257return elem.documentElement.textContent;
258}
259if(nodeType===3||nodeType===4){
260return elem.nodeValue;
261}
262return ret;
263},
264makeArray:function(arr,results){
265var ret=results||[];
266if(arr!=null){
267if(isArrayLike(Object(arr))){
268jQuery.merge(ret,
269typeof arr==="string"?
270[arr]:arr
271);
272}else{
273push.call(ret,arr);
274}
275}
276return ret;
277},
278inArray:function(elem,arr,i){
279return arr==null?-1:indexOf.call(arr,elem,i);
280},
281isXMLDoc:function(elem){
282var namespace=elem&&elem.namespaceURI,
283docElem=elem&&(elem.ownerDocument||elem).documentElement;
284return!rhtmlSuffix.test(namespace||docElem&&docElem.nodeName||"HTML");
285},
286merge:function(first,second){
287var len=+second.length,
288j=0,
289i=first.length;
290for(;j<len;j++){
291first[i++]=second[j];
292}
293first.length=i;
294return first;
295},
296grep:function(elems,callback,invert){
297var callbackInverse,
298matches=[],
299i=0,
300length=elems.length,
301callbackExpect=!invert;
302for(;i<length;i++){
303callbackInverse=!callback(elems[i],i);
304if(callbackInverse!==callbackExpect){
305matches.push(elems[i]);
306}
307}
308return matches;
309},
310map:function(elems,callback,arg){
311var length,value,
312i=0,
313ret=[];
314if(isArrayLike(elems)){
315length=elems.length;
316for(;i<length;i++){
317value=callback(elems[i],i,arg);
318if(value!=null){
319ret.push(value);
320}
321}
322}else{
323for(i in elems){
324value=callback(elems[i],i,arg);
325if(value!=null){
326ret.push(value);
327}
328}
329}
330return flat(ret);
331},
332guid:1,
333support:support
334});
335if(typeof Symbol==="function"){
336jQuery.fn[Symbol.iterator]=arr[Symbol.iterator];
337}
338jQuery.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),
339function(_i,name){
340class2type["[object "+name+"]"]=name.toLowerCase();
341});
342function isArrayLike(obj){
343var length=!!obj&&"length"in obj&&obj.length,
344type=toType(obj);
345if(isFunction(obj)||isWindow(obj)){
346return false;
347}
348return type==="array"||length===0||
349typeof length==="number"&&length>0&&(length-1)in obj;
350}
351function nodeName(elem,name){
352return elem.nodeName&&elem.nodeName.toLowerCase()===name.toLowerCase();
353}
354var pop=arr.pop;
355var sort=arr.sort;
356var splice=arr.splice;
357var whitespace="[\\x20\\t\\r\\n\\f]";
358var rtrimCSS=new RegExp(
359"^"+whitespace+"+|((?:^|[^\\\\])(?:\\\\.)*)"+whitespace+"+$",
360"g"
361);
362jQuery.contains=function(a,b){
363var bup=b&&b.parentNode;
364return a===bup||!!(bup&&bup.nodeType===1&&(
365a.contains?
366a.contains(bup):
367a.compareDocumentPosition&&a.compareDocumentPosition(bup)&16
368));
369};
370var rcssescape=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;
371function fcssescape(ch,asCodePoint){
372if(asCodePoint){
373if(ch==="\0"){
374return"\uFFFD";
375}
376return ch.slice(0,-1)+"\\"+ch.charCodeAt(ch.length-1).toString(16)+" ";
377}
378return"\\"+ch;
379}
380jQuery.escapeSelector=function(sel){
381return(sel+"").replace(rcssescape,fcssescape);
382};
383var preferredDoc=document,
384pushNative=push;
385(function(){
386var i,
387Expr,
388outermostContext,
389sortInput,
390hasDuplicate,
391push=pushNative,
392document,
393documentElement,
394documentIsHTML,
395rbuggyQSA,
396matches,
397expando=jQuery.expando,
398dirruns=0,
399done=0,
400classCache=createCache(),
401tokenCache=createCache(),
402compilerCache=createCache(),
403nonnativeSelectorCache=createCache(),
404sortOrder=function(a,b){
405if(a===b){
406hasDuplicate=true;
407}
408return 0;
409},
410booleans="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|"+
411"loop|multiple|open|readonly|required|scoped",
412identifier="(?:\\\\[\\da-fA-F]{1,6}"+whitespace+
413"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",
414attributes="\\["+whitespace+"*("+identifier+")(?:"+whitespace+
415"*([*^$|!~]?=)"+whitespace+
416"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+identifier+"))|)"+
417whitespace+"*\\]",
418pseudos=":("+identifier+")(?:\\(("+
419"('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|"+
420"((?:\\\\.|[^\\\\()[\\]]|"+attributes+")*)|"+
421".*"+
422")\\)|)",
423rwhitespace=new RegExp(whitespace+"+","g"),
424rcomma=new RegExp("^"+whitespace+"*,"+whitespace+"*"),
425rleadingCombinator=new RegExp("^"+whitespace+"*([>+~]|"+whitespace+")"+
426whitespace+"*"),
427rdescend=new RegExp(whitespace+"|>"),
428rpseudo=new RegExp(pseudos),
429ridentifier=new RegExp("^"+identifier+"$"),
430matchExpr={
431ID:new RegExp("^#("+identifier+")"),
432CLASS:new RegExp("^\\.("+identifier+")"),
433TAG:new RegExp("^("+identifier+"|[*])"),
434ATTR:new RegExp("^"+attributes),
435PSEUDO:new RegExp("^"+pseudos),
436CHILD:new RegExp(
437"^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+
438whitespace+"*(even|odd|(([+-]|)(\\d*)n|)"+whitespace+"*(?:([+-]|)"+
439whitespace+"*(\\d+)|))"+whitespace+"*\\)|)","i"),
440bool:new RegExp("^(?:"+booleans+")$","i"),
441needsContext:new RegExp("^"+whitespace+
442"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+whitespace+
443"*((?:-\\d)?\\d*)"+whitespace+"*\\)|)(?=[^-]|$)","i")
444},
445rinputs=/^(?:input|select|textarea|button)$/i,
446rheader=/^h\d$/i,
447rquickExpr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,
448rsibling=/[+~]/,
449runescape=new RegExp("\\\\[\\da-fA-F]{1,6}"+whitespace+
450"?|\\\\([^\\r\\n\\f])","g"),
451funescape=function(escape,nonHex){
452var high="0x"+escape.slice(1)-0x10000;
453if(nonHex){
454return nonHex;
455}
456return high<0?
457String.fromCharCode(high+0x10000):
458String.fromCharCode(high>>10|0xD800,high&0x3FF|0xDC00);
459},
460unloadHandler=function(){
461setDocument();
462},
463inDisabledFieldset=addCombinator(
464function(elem){
465return elem.disabled===true&&nodeName(elem,"fieldset");
466},
467{dir:"parentNode",next:"legend"}
468);
469function safeActiveElement(){
470try{
471return document.activeElement;
472}catch(err){}
473}
474try{
475push.apply(
476(arr=slice.call(preferredDoc.childNodes)),
477preferredDoc.childNodes
478);
479arr[preferredDoc.childNodes.length].nodeType;
480}catch(e){
481push={
482apply:function(target,els){
483pushNative.apply(target,slice.call(els));
484},
485call:function(target){
486pushNative.apply(target,slice.call(arguments,1));
487}
488};
489}
490function find(selector,context,results,seed){
491var m,i,elem,nid,match,groups,newSelector,
492newContext=context&&context.ownerDocument,
493nodeType=context?context.nodeType:9;
494results=results||[];
495if(typeof selector!=="string"||!selector||
496nodeType!==1&&nodeType!==9&&nodeType!==11){
497return results;
498}
499if(!seed){
500setDocument(context);
501context=context||document;
502if(documentIsHTML){
503if(nodeType!==11&&(match=rquickExpr.exec(selector))){
504if((m=match[1])){
505if(nodeType===9){
506if((elem=context.getElementById(m))){
507if(elem.id===m){
508push.call(results,elem);
509return results;
510}
511}else{
512return results;
513}
514}else{
515if(newContext&&(elem=newContext.getElementById(m))&&
516find.contains(context,elem)&&
517elem.id===m){
518push.call(results,elem);
519return results;
520}
521}
522}else if(match[2]){
523push.apply(results,context.getElementsByTagName(selector));
524return results;
525}else if((m=match[3])&&context.getElementsByClassName){
526push.apply(results,context.getElementsByClassName(m));
527return results;
528}
529}
530if(!nonnativeSelectorCache[selector+" "]&&
531(!rbuggyQSA||!rbuggyQSA.test(selector))){
532newSelector=selector;
533newContext=context;
534if(nodeType===1&&
535(rdescend.test(selector)||rleadingCombinator.test(selector))){
536newContext=rsibling.test(selector)&&testContext(context.parentNode)||
537context;
538if(newContext!=context||!support.scope){
539if((nid=context.getAttribute("id"))){
540nid=jQuery.escapeSelector(nid);
541}else{
542context.setAttribute("id",(nid=expando));
543}
544}
545groups=tokenize(selector);
546i=groups.length;
547while(i--){
548groups[i]=(nid?"#"+nid:":scope")+" "+
549toSelector(groups[i]);
550}
551newSelector=groups.join(",");
552}
553try{
554push.apply(results,
555newContext.querySelectorAll(newSelector)
556);
557return results;
558}catch(qsaError){
559nonnativeSelectorCache(selector,true);
560}finally{
561if(nid===expando){
562context.removeAttribute("id");
563}
564}
565}
566}
567}
568return select(selector.replace(rtrimCSS,"$1"),context,results,seed);
569}
570function createCache(){
571var keys=[];
572function cache(key,value){
573if(keys.push(key+" ")>Expr.cacheLength){
574delete cache[keys.shift()];
575}
576return(cache[key+" "]=value);
577}
578return cache;
579}
580function markFunction(fn){
581fn[expando]=true;
582return fn;
583}
584function assert(fn){
585var el=document.createElement("fieldset");
586try{
587return!!fn(el);
588}catch(e){
589return false;
590}finally{
591if(el.parentNode){
592el.parentNode.removeChild(el);
593}
594el=null;
595}
596}
597function createInputPseudo(type){
598return function(elem){
599return nodeName(elem,"input")&&elem.type===type;
600};
601}
602function createButtonPseudo(type){
603return function(elem){
604return(nodeName(elem,"input")||nodeName(elem,"button"))&&
605elem.type===type;
606};
607}
608function createDisabledPseudo(disabled){
609return function(elem){
610if("form"in elem){
611if(elem.parentNode&&elem.disabled===false){
612if("label"in elem){
613if("label"in elem.parentNode){
614return elem.parentNode.disabled===disabled;
615}else{
616return elem.disabled===disabled;
617}
618}
619return elem.isDisabled===disabled||
620elem.isDisabled!==!disabled&&
621inDisabledFieldset(elem)===disabled;
622}
623return elem.disabled===disabled;
624}else if("label"in elem){
625return elem.disabled===disabled;
626}
627return false;
628};
629}
630function createPositionalPseudo(fn){
631return markFunction(function(argument){
632argument=+argument;
633return markFunction(function(seed,matches){
634var j,
635matchIndexes=fn([],seed.length,argument),
636i=matchIndexes.length;
637while(i--){
638if(seed[(j=matchIndexes[i])]){
639seed[j]=!(matches[j]=seed[j]);
640}
641}
642});
643});
644}
645function testContext(context){
646return context&&typeof context.getElementsByTagName!=="undefined"&&context;
647}
648function setDocument(node){
649var subWindow,
650doc=node?node.ownerDocument||node:preferredDoc;
651if(doc==document||doc.nodeType!==9||!doc.documentElement){
652return document;
653}
654document=doc;
655documentElement=document.documentElement;
656documentIsHTML=!jQuery.isXMLDoc(document);
657matches=documentElement.matches||
658documentElement.webkitMatchesSelector||
659documentElement.msMatchesSelector;
660if(documentElement.msMatchesSelector&&
661preferredDoc!=document&&
662(subWindow=document.defaultView)&&subWindow.top!==subWindow){
663subWindow.addEventListener("unload",unloadHandler);
664}
665support.getById=assert(function(el){
666documentElement.appendChild(el).id=jQuery.expando;
667return!document.getElementsByName||
668!document.getElementsByName(jQuery.expando).length;
669});
670support.disconnectedMatch=assert(function(el){
671return matches.call(el,"*");
672});
673support.scope=assert(function(){
674return document.querySelectorAll(":scope");
675});
676support.cssHas=assert(function(){
677try{
678document.querySelector(":has(*,:jqfake)");
679return false;
680}catch(e){
681return true;
682}
683});
684if(support.getById){
685Expr.filter.ID=function(id){
686var attrId=id.replace(runescape,funescape);
687return function(elem){
688return elem.getAttribute("id")===attrId;
689};
690};
691Expr.find.ID=function(id,context){
692if(typeof context.getElementById!=="undefined"&&documentIsHTML){
693var elem=context.getElementById(id);
694return elem?[elem]:[];
695}
696};
697}else{
698Expr.filter.ID=function(id){
699var attrId=id.replace(runescape,funescape);
700return function(elem){
701var node=typeof elem.getAttributeNode!=="undefined"&&
702elem.getAttributeNode("id");
703return node&&node.value===attrId;
704};
705};
706Expr.find.ID=function(id,context){
707if(typeof context.getElementById!=="undefined"&&documentIsHTML){
708var node,i,elems,
709elem=context.getElementById(id);
710if(elem){
711node=elem.getAttributeNode("id");
712if(node&&node.value===id){
713return[elem];
714}
715elems=context.getElementsByName(id);
716i=0;
717while((elem=elems[i++])){
718node=elem.getAttributeNode("id");
719if(node&&node.value===id){
720return[elem];
721}
722}
723}
724return[];
725}
726};
727}
728Expr.find.TAG=function(tag,context){
729if(typeof context.getElementsByTagName!=="undefined"){
730return context.getElementsByTagName(tag);
731}else{
732return context.querySelectorAll(tag);
733}
734};
735Expr.find.CLASS=function(className,context){
736if(typeof context.getElementsByClassName!=="undefined"&&documentIsHTML){
737return context.getElementsByClassName(className);
738}
739};
740rbuggyQSA=[];
741assert(function(el){
742var input;
743documentElement.appendChild(el).innerHTML=
744"<a id='"+expando+"' href='' disabled='disabled'></a>"+
745"<select id='"+expando+"-\r\\' disabled='disabled'>"+
746"<option selected=''></option></select>";
747if(!el.querySelectorAll("[selected]").length){
748rbuggyQSA.push("\\["+whitespace+"*(?:value|"+booleans+")");
749}
750if(!el.querySelectorAll("[id~="+expando+"-]").length){
751rbuggyQSA.push("~=");
752}
753if(!el.querySelectorAll("a#"+expando+"+*").length){
754rbuggyQSA.push(".#.+[+~]");
755}
756if(!el.querySelectorAll(":checked").length){
757rbuggyQSA.push(":checked");
758}
759input=document.createElement("input");
760input.setAttribute("type","hidden");
761el.appendChild(input).setAttribute("name","D");
762documentElement.appendChild(el).disabled=true;
763if(el.querySelectorAll(":disabled").length!==2){
764rbuggyQSA.push(":enabled",":disabled");
765}
766input=document.createElement("input");
767input.setAttribute("name","");
768el.appendChild(input);
769if(!el.querySelectorAll("[name='']").length){
770rbuggyQSA.push("\\["+whitespace+"*name"+whitespace+"*="+
771whitespace+"*(?:''|\"\")");
772}
773});
774if(!support.cssHas){
775rbuggyQSA.push(":has");
776}
777rbuggyQSA=rbuggyQSA.length&&new RegExp(rbuggyQSA.join("|"));
778sortOrder=function(a,b){
779if(a===b){
780hasDuplicate=true;
781return 0;
782}
783var compare=!a.compareDocumentPosition-!b.compareDocumentPosition;
784if(compare){
785return compare;
786}
787compare=(a.ownerDocument||a)==(b.ownerDocument||b)?
788a.compareDocumentPosition(b):
7891;
790if(compare&1||
791(!support.sortDetached&&b.compareDocumentPosition(a)===compare)){
792if(a===document||a.ownerDocument==preferredDoc&&
793find.contains(preferredDoc,a)){
794return-1;
795}
796if(b===document||b.ownerDocument==preferredDoc&&
797find.contains(preferredDoc,b)){
798return 1;
799}
800return sortInput?
801(indexOf.call(sortInput,a)-indexOf.call(sortInput,b)):
8020;
803}
804return compare&4?-1:1;
805};
806return document;
807}
808find.matches=function(expr,elements){
809return find(expr,null,null,elements);
810};
811find.matchesSelector=function(elem,expr){
812setDocument(elem);
813if(documentIsHTML&&
814!nonnativeSelectorCache[expr+" "]&&
815(!rbuggyQSA||!rbuggyQSA.test(expr))){
816try{
817var ret=matches.call(elem,expr);
818if(ret||support.disconnectedMatch||
819elem.document&&elem.document.nodeType!==11){
820return ret;
821}
822}catch(e){
823nonnativeSelectorCache(expr,true);
824}
825}
826return find(expr,document,null,[elem]).length>0;
827};
828find.contains=function(context,elem){
829if((context.ownerDocument||context)!=document){
830setDocument(context);
831}
832return jQuery.contains(context,elem);
833};
834find.attr=function(elem,name){
835if((elem.ownerDocument||elem)!=document){
836setDocument(elem);
837}
838var fn=Expr.attrHandle[name.toLowerCase()],
839val=fn&&hasOwn.call(Expr.attrHandle,name.toLowerCase())?
840fn(elem,name,!documentIsHTML):
841undefined;
842if(val!==undefined){
843return val;
844}
845return elem.getAttribute(name);
846};
847find.error=function(msg){
848throw new Error("Syntax error, unrecognized expression: "+msg);
849};
850jQuery.uniqueSort=function(results){
851var elem,
852duplicates=[],
853j=0,
854i=0;
855hasDuplicate=!support.sortStable;
856sortInput=!support.sortStable&&slice.call(results,0);
857sort.call(results,sortOrder);
858if(hasDuplicate){
859while((elem=results[i++])){
860if(elem===results[i]){
861j=duplicates.push(i);
862}
863}
864while(j--){
865splice.call(results,duplicates[j],1);
866}
867}
868sortInput=null;
869return results;
870};
871jQuery.fn.uniqueSort=function(){
872return this.pushStack(jQuery.uniqueSort(slice.apply(this)));
873};
874Expr=jQuery.expr={
875cacheLength:50,
876createPseudo:markFunction,
877match:matchExpr,
878attrHandle:{},
879find:{},
880relative:{
881">":{dir:"parentNode",first:true},
882" ":{dir:"parentNode"},
883"+":{dir:"previousSibling",first:true},
884"~":{dir:"previousSibling"}
885},
886preFilter:{
887ATTR:function(match){
888match[1]=match[1].replace(runescape,funescape);
889match[3]=(match[3]||match[4]||match[5]||"")
890.replace(runescape,funescape);
891if(match[2]==="~="){
892match[3]=" "+match[3]+" ";
893}
894return match.slice(0,4);
895},
896CHILD:function(match){
897match[1]=match[1].toLowerCase();
898if(match[1].slice(0,3)==="nth"){
899if(!match[3]){
900find.error(match[0]);
901}
902match[4]=+(match[4]?
903match[5]+(match[6]||1):
9042*(match[3]==="even"||match[3]==="odd")
905);
906match[5]=+((match[7]+match[8])||match[3]==="odd");
907}else if(match[3]){
908find.error(match[0]);
909}
910return match;
911},
912PSEUDO:function(match){
913var excess,
914unquoted=!match[6]&&match[2];
915if(matchExpr.CHILD.test(match[0])){
916return null;
917}
918if(match[3]){
919match[2]=match[4]||match[5]||"";
920}else if(unquoted&&rpseudo.test(unquoted)&&
921(excess=tokenize(unquoted,true))&&
922(excess=unquoted.indexOf(")",unquoted.length-excess)-unquoted.length)){
923match[0]=match[0].slice(0,excess);
924match[2]=unquoted.slice(0,excess);
925}
926return match.slice(0,3);
927}
928},
929filter:{
930TAG:function(nodeNameSelector){
931var expectedNodeName=nodeNameSelector.replace(runescape,funescape).toLowerCase();
932return nodeNameSelector==="*"?
933function(){
934return true;
935}:
936function(elem){
937return nodeName(elem,expectedNodeName);
938};
939},
940CLASS:function(className){
941var pattern=classCache[className+" "];
942return pattern||
943(pattern=new RegExp("(^|"+whitespace+")"+className+
944"("+whitespace+"|$)"))&&
945classCache(className,function(elem){
946return pattern.test(
947typeof elem.className==="string"&&elem.className||
948typeof elem.getAttribute!=="undefined"&&
949elem.getAttribute("class")||
950""
951);
952});
953},
954ATTR:function(name,operator,check){
955return function(elem){
956var result=find.attr(elem,name);
957if(result==null){
958return operator==="!=";
959}
960if(!operator){
961return true;
962}
963result+="";
964if(operator==="="){
965return result===check;
966}
967if(operator==="!="){
968return result!==check;
969}
970if(operator==="^="){
971return check&&result.indexOf(check)===0;
972}
973if(operator==="*="){
974return check&&result.indexOf(check)>-1;
975}
976if(operator==="$="){
977return check&&result.slice(-check.length)===check;
978}
979if(operator==="~="){
980return(" "+result.replace(rwhitespace," ")+" ")
981.indexOf(check)>-1;
982}
983if(operator==="|="){
984return result===check||result.slice(0,check.length+1)===check+"-";
985}
986return false;
987};
988},
989CHILD:function(type,what,_argument,first,last){
990var simple=type.slice(0,3)!=="nth",
991forward=type.slice(-4)!=="last",
992ofType=what==="of-type";
993return first===1&&last===0?
994function(elem){
995return!!elem.parentNode;
996}:
997function(elem,_context,xml){
998var cache,outerCache,node,nodeIndex,start,
999dir=simple!==forward?"nextSibling":"previousSibling",
1000parent=elem.parentNode,
1001name=ofType&&elem.nodeName.toLowerCase(),
1002useCache=!xml&&!ofType,
1003diff=false;
1004if(parent){
1005if(simple){
1006while(dir){
1007node=elem;
1008while((node=node[dir])){
1009if(ofType?
1010nodeName(node,name):
1011node.nodeType===1){
1012return false;
1013}
1014}
1015start=dir=type==="only"&&!start&&"nextSibling";
1016}
1017return true;
1018}
1019start=[forward?parent.firstChild:parent.lastChild];
1020if(forward&&useCache){
1021outerCache=parent[expando]||(parent[expando]={});
1022cache=outerCache[type]||[];
1023nodeIndex=cache[0]===dirruns&&cache[1];
1024diff=nodeIndex&&cache[2];
1025node=nodeIndex&&parent.childNodes[nodeIndex];
1026while((node=++nodeIndex&&node&&node[dir]||
1027(diff=nodeIndex=0)||start.pop())){
1028if(node.nodeType===1&&++diff&&node===elem){
1029outerCache[type]=[dirruns,nodeIndex,diff];
1030break;
1031}
1032}
1033}else{
1034if(useCache){
1035outerCache=elem[expando]||(elem[expando]={});
1036cache=outerCache[type]||[];
1037nodeIndex=cache[0]===dirruns&&cache[1];
1038diff=nodeIndex;
1039}
1040if(diff===false){
1041while((node=++nodeIndex&&node&&node[dir]||
1042(diff=nodeIndex=0)||start.pop())){
1043if((ofType?
1044nodeName(node,name):
1045node.nodeType===1)&&
1046++diff){
1047if(useCache){
1048outerCache=node[expando]||
1049(node[expando]={});
1050outerCache[type]=[dirruns,diff];
1051}
1052if(node===elem){
1053break;
1054}
1055}
1056}
1057}
1058}
1059diff-=last;
1060return diff===first||(diff%first===0&&diff/first>=0);
1061}
1062};
1063},
1064PSEUDO:function(pseudo,argument){
1065var args,
1066fn=Expr.pseudos[pseudo]||Expr.setFilters[pseudo.toLowerCase()]||
1067find.error("unsupported pseudo: "+pseudo);
1068if(fn[expando]){
1069return fn(argument);
1070}
1071if(fn.length>1){
1072args=[pseudo,pseudo,"",argument];
1073return Expr.setFilters.hasOwnProperty(pseudo.toLowerCase())?
1074markFunction(function(seed,matches){
1075var idx,
1076matched=fn(seed,argument),
1077i=matched.length;
1078while(i--){
1079idx=indexOf.call(seed,matched[i]);
1080seed[idx]=!(matches[idx]=matched[i]);
1081}
1082}):
1083function(elem){
1084return fn(elem,0,args);
1085};
1086}
1087return fn;
1088}
1089},
1090pseudos:{
1091not:markFunction(function(selector){
1092var input=[],
1093results=[],
1094matcher=compile(selector.replace(rtrimCSS,"$1"));
1095return matcher[expando]?
1096markFunction(function(seed,matches,_context,xml){
1097var elem,
1098unmatched=matcher(seed,null,xml,[]),
1099i=seed.length;
1100while(i--){
1101if((elem=unmatched[i])){
1102seed[i]=!(matches[i]=elem);
1103}
1104}
1105}):
1106function(elem,_context,xml){
1107input[0]=elem;
1108matcher(input,null,xml,results);
1109input[0]=null;
1110return!results.pop();
1111};
1112}),
1113has:markFunction(function(selector){
1114return function(elem){
1115return find(selector,elem).length>0;
1116};
1117}),
1118contains:markFunction(function(text){
1119text=text.replace(runescape,funescape);
1120return function(elem){
1121return(elem.textContent||jQuery.text(elem)).indexOf(text)>-1;
1122};
1123}),
1124lang:markFunction(function(lang){
1125if(!ridentifier.test(lang||"")){
1126find.error("unsupported lang: "+lang);
1127}
1128lang=lang.replace(runescape,funescape).toLowerCase();
1129return function(elem){
1130var elemLang;
1131do{
1132if((elemLang=documentIsHTML?
1133elem.lang:
1134elem.getAttribute("xml:lang")||elem.getAttribute("lang"))){
1135elemLang=elemLang.toLowerCase();
1136return elemLang===lang||elemLang.indexOf(lang+"-")===0;
1137}
1138}while((elem=elem.parentNode)&&elem.nodeType===1);
1139return false;
1140};
1141}),
1142target:function(elem){
1143var hash=window.location&&window.location.hash;
1144return hash&&hash.slice(1)===elem.id;
1145},
1146root:function(elem){
1147return elem===documentElement;
1148},
1149focus:function(elem){
1150return elem===safeActiveElement()&&
1151document.hasFocus()&&
1152!!(elem.type||elem.href||~elem.tabIndex);
1153},
1154enabled:createDisabledPseudo(false),
1155disabled:createDisabledPseudo(true),
1156checked:function(elem){
1157return(nodeName(elem,"input")&&!!elem.checked)||
1158(nodeName(elem,"option")&&!!elem.selected);
1159},
1160selected:function(elem){
1161if(elem.parentNode){
1162elem.parentNode.selectedIndex;
1163}
1164return elem.selected===true;
1165},
1166empty:function(elem){
1167for(elem=elem.firstChild;elem;elem=elem.nextSibling){
1168if(elem.nodeType<6){
1169return false;
1170}
1171}
1172return true;
1173},
1174parent:function(elem){
1175return!Expr.pseudos.empty(elem);
1176},
1177header:function(elem){
1178return rheader.test(elem.nodeName);
1179},
1180input:function(elem){
1181return rinputs.test(elem.nodeName);
1182},
1183button:function(elem){
1184return nodeName(elem,"input")&&elem.type==="button"||
1185nodeName(elem,"button");
1186},
1187text:function(elem){
1188var attr;
1189return nodeName(elem,"input")&&elem.type==="text"&&
1190((attr=elem.getAttribute("type"))==null||
1191attr.toLowerCase()==="text");
1192},
1193first:createPositionalPseudo(function(){
1194return[0];
1195}),
1196last:createPositionalPseudo(function(_matchIndexes,length){
1197return[length-1];
1198}),
1199eq:createPositionalPseudo(function(_matchIndexes,length,argument){
1200return[argument<0?argument+length:argument];
1201}),
1202even:createPositionalPseudo(function(matchIndexes,length){
1203var i=0;
1204for(;i<length;i+=2){
1205matchIndexes.push(i);
1206}
1207return matchIndexes;
1208}),
1209odd:createPositionalPseudo(function(matchIndexes,length){
1210var i=1;
1211for(;i<length;i+=2){
1212matchIndexes.push(i);
1213}
1214return matchIndexes;
1215}),
1216lt:createPositionalPseudo(function(matchIndexes,length,argument){
1217var i;
1218if(argument<0){
1219i=argument+length;
1220}else if(argument>length){
1221i=length;
1222}else{
1223i=argument;
1224}
1225for(;--i>=0;){
1226matchIndexes.push(i);
1227}
1228return matchIndexes;
1229}),
1230gt:createPositionalPseudo(function(matchIndexes,length,argument){
1231var i=argument<0?argument+length:argument;
1232for(;++i<length;){
1233matchIndexes.push(i);
1234}
1235return matchIndexes;
1236})
1237}
1238};
1239Expr.pseudos.nth=Expr.pseudos.eq;
1240for(i in{radio:true,checkbox:true,file:true,password:true,image:true}){
1241Expr.pseudos[i]=createInputPseudo(i);
1242}
1243for(i in{submit:true,reset:true}){
1244Expr.pseudos[i]=createButtonPseudo(i);
1245}
1246function setFilters(){}
1247setFilters.prototype=Expr.filters=Expr.pseudos;
1248Expr.setFilters=new setFilters();
1249function tokenize(selector,parseOnly){
1250var matched,match,tokens,type,
1251soFar,groups,preFilters,
1252cached=tokenCache[selector+" "];
1253if(cached){
1254return parseOnly?0:cached.slice(0);
1255}
1256soFar=selector;
1257groups=[];
1258preFilters=Expr.preFilter;
1259while(soFar){
1260if(!matched||(match=rcomma.exec(soFar))){
1261if(match){
1262soFar=soFar.slice(match[0].length)||soFar;
1263}
1264groups.push((tokens=[]));
1265}
1266matched=false;
1267if((match=rleadingCombinator.exec(soFar))){
1268matched=match.shift();
1269tokens.push({
1270value:matched,
1271type:match[0].replace(rtrimCSS," ")
1272});
1273soFar=soFar.slice(matched.length);
1274}
1275for(type in Expr.filter){
1276if((match=matchExpr[type].exec(soFar))&&(!preFilters[type]||
1277(match=preFilters[type](match)))){
1278matched=match.shift();
1279tokens.push({
1280value:matched,
1281type:type,
1282matches:match
1283});
1284soFar=soFar.slice(matched.length);
1285}
1286}
1287if(!matched){
1288break;
1289}
1290}
1291if(parseOnly){
1292return soFar.length;
1293}
1294return soFar?
1295find.error(selector):
1296tokenCache(selector,groups).slice(0);
1297}
1298function toSelector(tokens){
1299var i=0,
1300len=tokens.length,
1301selector="";
1302for(;i<len;i++){
1303selector+=tokens[i].value;
1304}
1305return selector;
1306}
1307function addCombinator(matcher,combinator,base){
1308var dir=combinator.dir,
1309skip=combinator.next,
1310key=skip||dir,
1311checkNonElements=base&&key==="parentNode",
1312doneName=done++;
1313return combinator.first?
1314function(elem,context,xml){
1315while((elem=elem[dir])){
1316if(elem.nodeType===1||checkNonElements){
1317return matcher(elem,context,xml);
1318}
1319}
1320return false;
1321}:
1322function(elem,context,xml){
1323var oldCache,outerCache,
1324newCache=[dirruns,doneName];
1325if(xml){
1326while((elem=elem[dir])){
1327if(elem.nodeType===1||checkNonElements){
1328if(matcher(elem,context,xml)){
1329return true;
1330}
1331}
1332}
1333}else{
1334while((elem=elem[dir])){
1335if(elem.nodeType===1||checkNonElements){
1336outerCache=elem[expando]||(elem[expando]={});
1337if(skip&&nodeName(elem,skip)){
1338elem=elem[dir]||elem;
1339}else if((oldCache=outerCache[key])&&
1340oldCache[0]===dirruns&&oldCache[1]===doneName){
1341return(newCache[2]=oldCache[2]);
1342}else{
1343outerCache[key]=newCache;
1344if((newCache[2]=matcher(elem,context,xml))){
1345return true;
1346}
1347}
1348}
1349}
1350}
1351return false;
1352};
1353}
1354function elementMatcher(matchers){
1355return matchers.length>1?
1356function(elem,context,xml){
1357var i=matchers.length;
1358while(i--){
1359if(!matchers[i](elem,context,xml)){
1360return false;
1361}
1362}
1363return true;
1364}:
1365matchers[0];
1366}
1367function multipleContexts(selector,contexts,results){
1368var i=0,
1369len=contexts.length;
1370for(;i<len;i++){
1371find(selector,contexts[i],results);
1372}
1373return results;
1374}
1375function condense(unmatched,map,filter,context,xml){
1376var elem,
1377newUnmatched=[],
1378i=0,
1379len=unmatched.length,
1380mapped=map!=null;
1381for(;i<len;i++){
1382if((elem=unmatched[i])){
1383if(!filter||filter(elem,context,xml)){
1384newUnmatched.push(elem);
1385if(mapped){
1386map.push(i);
1387}
1388}
1389}
1390}
1391return newUnmatched;
1392}
1393function setMatcher(preFilter,selector,matcher,postFilter,postFinder,postSelector){
1394if(postFilter&&!postFilter[expando]){
1395postFilter=setMatcher(postFilter);
1396}
1397if(postFinder&&!postFinder[expando]){
1398postFinder=setMatcher(postFinder,postSelector);
1399}
1400return markFunction(function(seed,results,context,xml){
1401var temp,i,elem,matcherOut,
1402preMap=[],
1403postMap=[],
1404preexisting=results.length,
1405elems=seed||
1406multipleContexts(selector||"*",
1407context.nodeType?[context]:context,[]),
1408matcherIn=preFilter&&(seed||!selector)?
1409condense(elems,preMap,preFilter,context,xml):
1410elems;
1411if(matcher){
1412matcherOut=postFinder||(seed?preFilter:preexisting||postFilter)?
1413[]:
1414results;
1415matcher(matcherIn,matcherOut,context,xml);
1416}else{
1417matcherOut=matcherIn;
1418}
1419if(postFilter){
1420temp=condense(matcherOut,postMap);
1421postFilter(temp,[],context,xml);
1422i=temp.length;
1423while(i--){
1424if((elem=temp[i])){
1425matcherOut[postMap[i]]=!(matcherIn[postMap[i]]=elem);
1426}
1427}
1428}
1429if(seed){
1430if(postFinder||preFilter){
1431if(postFinder){
1432temp=[];
1433i=matcherOut.length;
1434while(i--){
1435if((elem=matcherOut[i])){
1436temp.push((matcherIn[i]=elem));
1437}
1438}
1439postFinder(null,(matcherOut=[]),temp,xml);
1440}
1441i=matcherOut.length;
1442while(i--){
1443if((elem=matcherOut[i])&&
1444(temp=postFinder?indexOf.call(seed,elem):preMap[i])>-1){
1445seed[temp]=!(results[temp]=elem);
1446}
1447}
1448}
1449}else{
1450matcherOut=condense(
1451matcherOut===results?
1452matcherOut.splice(preexisting,matcherOut.length):
1453matcherOut
1454);
1455if(postFinder){
1456postFinder(null,results,matcherOut,xml);
1457}else{
1458push.apply(results,matcherOut);
1459}
1460}
1461});
1462}
1463function matcherFromTokens(tokens){
1464var checkContext,matcher,j,
1465len=tokens.length,
1466leadingRelative=Expr.relative[tokens[0].type],
1467implicitRelative=leadingRelative||Expr.relative[" "],
1468i=leadingRelative?1:0,
1469matchContext=addCombinator(function(elem){
1470return elem===checkContext;
1471},implicitRelative,true),
1472matchAnyContext=addCombinator(function(elem){
1473return indexOf.call(checkContext,elem)>-1;
1474},implicitRelative,true),
1475matchers=[function(elem,context,xml){
1476var ret=(!leadingRelative&&(xml||context!=outermostContext))||(
1477(checkContext=context).nodeType?
1478matchContext(elem,context,xml):
1479matchAnyContext(elem,context,xml));
1480checkContext=null;
1481return ret;
1482}];
1483for(;i<len;i++){
1484if((matcher=Expr.relative[tokens[i].type])){
1485matchers=[addCombinator(elementMatcher(matchers),matcher)];
1486}else{
1487matcher=Expr.filter[tokens[i].type].apply(null,tokens[i].matches);
1488if(matcher[expando]){
1489j=++i;
1490for(;j<len;j++){
1491if(Expr.relative[tokens[j].type]){
1492break;
1493}
1494}
1495return setMatcher(
1496i>1&&elementMatcher(matchers),
1497i>1&&toSelector(
1498tokens.slice(0,i-1)
1499.concat({value:tokens[i-2].type===" "?"*":""})
1500).replace(rtrimCSS,"$1"),
1501matcher,
1502i<j&&matcherFromTokens(tokens.slice(i,j)),
1503j<len&&matcherFromTokens((tokens=tokens.slice(j))),
1504j<len&&toSelector(tokens)
1505);
1506}
1507matchers.push(matcher);
1508}
1509}
1510return elementMatcher(matchers);
1511}
1512function matcherFromGroupMatchers(elementMatchers,setMatchers){
1513var bySet=setMatchers.length>0,
1514byElement=elementMatchers.length>0,
1515superMatcher=function(seed,context,xml,results,outermost){
1516var elem,j,matcher,
1517matchedCount=0,
1518i="0",
1519unmatched=seed&&[],
1520setMatched=[],
1521contextBackup=outermostContext,
1522elems=seed||byElement&&Expr.find.TAG("*",outermost),
1523dirrunsUnique=(dirruns+=contextBackup==null?1:Math.random()||0.1),
1524len=elems.length;
1525if(outermost){
1526outermostContext=context==document||context||outermost;
1527}
1528for(;i!==len&&(elem=elems[i])!=null;i++){
1529if(byElement&&elem){
1530j=0;
1531if(!context&&elem.ownerDocument!=document){
1532setDocument(elem);
1533xml=!documentIsHTML;
1534}
1535while((matcher=elementMatchers[j++])){
1536if(matcher(elem,context||document,xml)){
1537push.call(results,elem);
1538break;
1539}
1540}
1541if(outermost){
1542dirruns=dirrunsUnique;
1543}
1544}
1545if(bySet){
1546if((elem=!matcher&&elem)){
1547matchedCount--;
1548}
1549if(seed){
1550unmatched.push(elem);
1551}
1552}
1553}
1554matchedCount+=i;
1555if(bySet&&i!==matchedCount){
1556j=0;
1557while((matcher=setMatchers[j++])){
1558matcher(unmatched,setMatched,context,xml);
1559}
1560if(seed){
1561if(matchedCount>0){
1562while(i--){
1563if(!(unmatched[i]||setMatched[i])){
1564setMatched[i]=pop.call(results);
1565}
1566}
1567}
1568setMatched=condense(setMatched);
1569}
1570push.apply(results,setMatched);
1571if(outermost&&!seed&&setMatched.length>0&&
1572(matchedCount+setMatchers.length)>1){
1573jQuery.uniqueSort(results);
1574}
1575}
1576if(outermost){
1577dirruns=dirrunsUnique;
1578outermostContext=contextBackup;
1579}
1580return unmatched;
1581};
1582return bySet?
1583markFunction(superMatcher):
1584superMatcher;
1585}
1586function compile(selector,match){
1587var i,
1588setMatchers=[],
1589elementMatchers=[],
1590cached=compilerCache[selector+" "];
1591if(!cached){
1592if(!match){
1593match=tokenize(selector);
1594}
1595i=match.length;
1596while(i--){
1597cached=matcherFromTokens(match[i]);
1598if(cached[expando]){
1599setMatchers.push(cached);
1600}else{
1601elementMatchers.push(cached);
1602}
1603}
1604cached=compilerCache(selector,
1605matcherFromGroupMatchers(elementMatchers,setMatchers));
1606cached.selector=selector;
1607}
1608return cached;
1609}
1610function select(selector,context,results,seed){
1611var i,tokens,token,type,find,
1612compiled=typeof selector==="function"&&selector,
1613match=!seed&&tokenize((selector=compiled.selector||selector));
1614results=results||[];
1615if(match.length===1){
1616tokens=match[0]=match[0].slice(0);
1617if(tokens.length>2&&(token=tokens[0]).type==="ID"&&
1618context.nodeType===9&&documentIsHTML&&Expr.relative[tokens[1].type]){
1619context=(Expr.find.ID(
1620token.matches[0].replace(runescape,funescape),
1621context
1622)||[])[0];
1623if(!context){
1624return results;
1625}else if(compiled){
1626context=context.parentNode;
1627}
1628selector=selector.slice(tokens.shift().value.length);
1629}
1630i=matchExpr.needsContext.test(selector)?0:tokens.length;
1631while(i--){
1632token=tokens[i];
1633if(Expr.relative[(type=token.type)]){
1634break;
1635}
1636if((find=Expr.find[type])){
1637if((seed=find(
1638token.matches[0].replace(runescape,funescape),
1639rsibling.test(tokens[0].type)&&
1640testContext(context.parentNode)||context
1641))){
1642tokens.splice(i,1);
1643selector=seed.length&&toSelector(tokens);
1644if(!selector){
1645push.apply(results,seed);
1646return results;
1647}
1648break;
1649}
1650}
1651}
1652}
1653(compiled||compile(selector,match))(
1654seed,
1655context,
1656!documentIsHTML,
1657results,
1658!context||rsibling.test(selector)&&testContext(context.parentNode)||context
1659);
1660return results;
1661}
1662support.sortStable=expando.split("").sort(sortOrder).join("")===expando;
1663setDocument();
1664support.sortDetached=assert(function(el){
1665return el.compareDocumentPosition(document.createElement("fieldset"))&1;
1666});
1667jQuery.find=find;
1668jQuery.expr[":"]=jQuery.expr.pseudos;
1669jQuery.unique=jQuery.uniqueSort;
1670find.compile=compile;
1671find.select=select;
1672find.setDocument=setDocument;
1673find.tokenize=tokenize;
1674find.escape=jQuery.escapeSelector;
1675find.getText=jQuery.text;
1676find.isXML=jQuery.isXMLDoc;
1677find.selectors=jQuery.expr;
1678find.support=jQuery.support;
1679find.uniqueSort=jQuery.uniqueSort;
1680})();
1681var dir=function(elem,dir,until){
1682var matched=[],
1683truncate=until!==undefined;
1684while((elem=elem[dir])&&elem.nodeType!==9){
1685if(elem.nodeType===1){
1686if(truncate&&jQuery(elem).is(until)){
1687break;
1688}
1689matched.push(elem);
1690}
1691}
1692return matched;
1693};
1694var siblings=function(n,elem){
1695var matched=[];
1696for(;n;n=n.nextSibling){
1697if(n.nodeType===1&&n!==elem){
1698matched.push(n);
1699}
1700}
1701return matched;
1702};
1703var rneedsContext=jQuery.expr.match.needsContext;
1704var rsingleTag=(/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i);
1705function winnow(elements,qualifier,not){
1706if(isFunction(qualifier)){
1707return jQuery.grep(elements,function(elem,i){
1708return!!qualifier.call(elem,i,elem)!==not;
1709});
1710}
1711if(qualifier.nodeType){
1712return jQuery.grep(elements,function(elem){
1713return(elem===qualifier)!==not;
1714});
1715}
1716if(typeof qualifier!=="string"){
1717return jQuery.grep(elements,function(elem){
1718return(indexOf.call(qualifier,elem)>-1)!==not;
1719});
1720}
1721return jQuery.filter(qualifier,elements,not);
1722}
1723jQuery.filter=function(expr,elems,not){
1724var elem=elems[0];
1725if(not){
1726expr=":not("+expr+")";
1727}
1728if(elems.length===1&&elem.nodeType===1){
1729return jQuery.find.matchesSelector(elem,expr)?[elem]:[];
1730}
1731return jQuery.find.matches(expr,jQuery.grep(elems,function(elem){
1732return elem.nodeType===1;
1733}));
1734};
1735jQuery.fn.extend({
1736find:function(selector){
1737var i,ret,
1738len=this.length,
1739self=this;
1740if(typeof selector!=="string"){
1741return this.pushStack(jQuery(selector).filter(function(){
1742for(i=0;i<len;i++){
1743if(jQuery.contains(self[i],this)){
1744return true;
1745}
1746}
1747}));
1748}
1749ret=this.pushStack([]);
1750for(i=0;i<len;i++){
1751jQuery.find(selector,self[i],ret);
1752}
1753return len>1?jQuery.uniqueSort(ret):ret;
1754},
1755filter:function(selector){
1756return this.pushStack(winnow(this,selector||[],false));
1757},
1758not:function(selector){
1759return this.pushStack(winnow(this,selector||[],true));
1760},
1761is:function(selector){
1762return!!winnow(
1763this,
1764typeof selector==="string"&&rneedsContext.test(selector)?
1765jQuery(selector):
1766selector||[],
1767false
1768).length;
1769}
1770});
1771var rootjQuery,
1772rquickExpr=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,
1773init=jQuery.fn.init=function(selector,context,root){
1774var match,elem;
1775if(!selector){
1776return this;
1777}
1778root=root||rootjQuery;
1779if(typeof selector==="string"){
1780if(selector[0]==="<"&&
1781selector[selector.length-1]===">"&&
1782selector.length>=3){
1783match=[null,selector,null];
1784}else{
1785match=rquickExpr.exec(selector);
1786}
1787if(match&&(match[1]||!context)){
1788if(match[1]){
1789context=context instanceof jQuery?context[0]:context;
1790jQuery.merge(this,jQuery.parseHTML(
1791match[1],
1792context&&context.nodeType?context.ownerDocument||context:document,
1793true
1794));
1795if(rsingleTag.test(match[1])&&jQuery.isPlainObject(context)){
1796for(match in context){
1797if(isFunction(this[match])){
1798this[match](context[match]);
1799}else{
1800this.attr(match,context[match]);
1801}
1802}
1803}
1804return this;
1805}else{
1806elem=document.getElementById(match[2]);
1807if(elem){
1808this[0]=elem;
1809this.length=1;
1810}
1811return this;
1812}
1813}else if(!context||context.jquery){
1814return(context||root).find(selector);
1815}else{
1816return this.constructor(context).find(selector);
1817}
1818}else if(selector.nodeType){
1819this[0]=selector;
1820this.length=1;
1821return this;
1822}else if(isFunction(selector)){
1823return root.ready!==undefined?
1824root.ready(selector):
1825selector(jQuery);
1826}
1827return jQuery.makeArray(selector,this);
1828};
1829init.prototype=jQuery.fn;
1830rootjQuery=jQuery(document);
1831var rparentsprev=/^(?:parents|prev(?:Until|All))/,
1832guaranteedUnique={
1833children:true,
1834contents:true,
1835next:true,
1836prev:true
1837};
1838jQuery.fn.extend({
1839has:function(target){
1840var targets=jQuery(target,this),
1841l=targets.length;
1842return this.filter(function(){
1843var i=0;
1844for(;i<l;i++){
1845if(jQuery.contains(this,targets[i])){
1846return true;
1847}
1848}
1849});
1850},
1851closest:function(selectors,context){
1852var cur,
1853i=0,
1854l=this.length,
1855matched=[],
1856targets=typeof selectors!=="string"&&jQuery(selectors);
1857if(!rneedsContext.test(selectors)){
1858for(;i<l;i++){
1859for(cur=this[i];cur&&cur!==context;cur=cur.parentNode){
1860if(cur.nodeType<11&&(targets?
1861targets.index(cur)>-1:
1862cur.nodeType===1&&
1863jQuery.find.matchesSelector(cur,selectors))){
1864matched.push(cur);
1865break;
1866}
1867}
1868}
1869}
1870return this.pushStack(matched.length>1?jQuery.uniqueSort(matched):matched);
1871},
1872index:function(elem){
1873if(!elem){
1874return(this[0]&&this[0].parentNode)?this.first().prevAll().length:-1;
1875}
1876if(typeof elem==="string"){
1877return indexOf.call(jQuery(elem),this[0]);
1878}
1879return indexOf.call(this,
1880elem.jquery?elem[0]:elem
1881);
1882},
1883add:function(selector,context){
1884return this.pushStack(
1885jQuery.uniqueSort(
1886jQuery.merge(this.get(),jQuery(selector,context))
1887)
1888);
1889},
1890addBack:function(selector){
1891return this.add(selector==null?
1892this.prevObject:this.prevObject.filter(selector)
1893);
1894}
1895});
1896function sibling(cur,dir){
1897while((cur=cur[dir])&&cur.nodeType!==1){}
1898return cur;
1899}
1900jQuery.each({
1901parent:function(elem){
1902var parent=elem.parentNode;
1903return parent&&parent.nodeType!==11?parent:null;
1904},
1905parents:function(elem){
1906return dir(elem,"parentNode");
1907},
1908parentsUntil:function(elem,_i,until){
1909return dir(elem,"parentNode",until);
1910},
1911next:function(elem){
1912return sibling(elem,"nextSibling");
1913},
1914prev:function(elem){
1915return sibling(elem,"previousSibling");
1916},
1917nextAll:function(elem){
1918return dir(elem,"nextSibling");
1919},
1920prevAll:function(elem){
1921return dir(elem,"previousSibling");
1922},
1923nextUntil:function(elem,_i,until){
1924return dir(elem,"nextSibling",until);
1925},
1926prevUntil:function(elem,_i,until){
1927return dir(elem,"previousSibling",until);
1928},
1929siblings:function(elem){
1930return siblings((elem.parentNode||{}).firstChild,elem);
1931},
1932children:function(elem){
1933return siblings(elem.firstChild);
1934},
1935contents:function(elem){
1936if(elem.contentDocument!=null&&
1937getProto(elem.contentDocument)){
1938return elem.contentDocument;
1939}
1940if(nodeName(elem,"template")){
1941elem=elem.content||elem;
1942}
1943return jQuery.merge([],elem.childNodes);
1944}
1945},function(name,fn){
1946jQuery.fn[name]=function(until,selector){
1947var matched=jQuery.map(this,fn,until);
1948if(name.slice(-5)!=="Until"){
1949selector=until;
1950}
1951if(selector&&typeof selector==="string"){
1952matched=jQuery.filter(selector,matched);
1953}
1954if(this.length>1){
1955if(!guaranteedUnique[name]){
1956jQuery.uniqueSort(matched);
1957}
1958if(rparentsprev.test(name)){
1959matched.reverse();
1960}
1961}
1962return this.pushStack(matched);
1963};
1964});
1965var rnothtmlwhite=(/[^\x20\t\r\n\f]+/g);
1966function createOptions(options){
1967var object={};
1968jQuery.each(options.match(rnothtmlwhite)||[],function(_,flag){
1969object[flag]=true;
1970});
1971return object;
1972}
1973jQuery.Callbacks=function(options){
1974options=typeof options==="string"?
1975createOptions(options):
1976jQuery.extend({},options);
1977var
1978firing,
1979memory,
1980fired,
1981locked,
1982list=[],
1983queue=[],
1984firingIndex=-1,
1985fire=function(){
1986locked=locked||options.once;
1987fired=firing=true;
1988for(;queue.length;firingIndex=-1){
1989memory=queue.shift();
1990while(++firingIndex<list.length){
1991if(list[firingIndex].apply(memory[0],memory[1])===false&&
1992options.stopOnFalse){
1993firingIndex=list.length;
1994memory=false;
1995}
1996}
1997}
1998if(!options.memory){
1999memory=false;
2000}
2001firing=false;
2002if(locked){
2003if(memory){
2004list=[];
2005}else{
2006list="";
2007}
2008}
2009},
2010self={
2011add:function(){
2012if(list){
2013if(memory&&!firing){
2014firingIndex=list.length-1;
2015queue.push(memory);
2016}
2017(function add(args){
2018jQuery.each(args,function(_,arg){
2019if(isFunction(arg)){
2020if(!options.unique||!self.has(arg)){
2021list.push(arg);
2022}
2023}else if(arg&&arg.length&&toType(arg)!=="string"){
2024add(arg);
2025}
2026});
2027})(arguments);
2028if(memory&&!firing){
2029fire();
2030}
2031}
2032return this;
2033},
2034remove:function(){
2035jQuery.each(arguments,function(_,arg){
2036var index;
2037while((index=jQuery.inArray(arg,list,index))>-1){
2038list.splice(index,1);
2039if(index<=firingIndex){
2040firingIndex--;
2041}
2042}
2043});
2044return this;
2045},
2046has:function(fn){
2047return fn?
2048jQuery.inArray(fn,list)>-1:
2049list.length>0;
2050},
2051empty:function(){
2052if(list){
2053list=[];
2054}
2055return this;
2056},
2057disable:function(){
2058locked=queue=[];
2059list=memory="";
2060return this;
2061},
2062disabled:function(){
2063return!list;
2064},
2065lock:function(){
2066locked=queue=[];
2067if(!memory&&!firing){
2068list=memory="";
2069}
2070return this;
2071},
2072locked:function(){
2073return!!locked;
2074},
2075fireWith:function(context,args){
2076if(!locked){
2077args=args||[];
2078args=[context,args.slice?args.slice():args];
2079queue.push(args);
2080if(!firing){
2081fire();
2082}
2083}
2084return this;
2085},
2086fire:function(){
2087self.fireWith(this,arguments);
2088return this;
2089},
2090fired:function(){
2091return!!fired;
2092}
2093};
2094return self;
2095};
2096function Identity(v){
2097return v;
2098}
2099function Thrower(ex){
2100throw ex;
2101}
2102function adoptValue(value,resolve,reject,noValue){
2103var method;
2104try{
2105if(value&&isFunction((method=value.promise))){
2106method.call(value).done(resolve).fail(reject);
2107}else if(value&&isFunction((method=value.then))){
2108method.call(value,resolve,reject);
2109}else{
2110resolve.apply(undefined,[value].slice(noValue));
2111}
2112}catch(value){
2113reject.apply(undefined,[value]);
2114}
2115}
2116jQuery.extend({
2117Deferred:function(func){
2118var tuples=[
2119["notify","progress",jQuery.Callbacks("memory"),
2120jQuery.Callbacks("memory"),2],
2121["resolve","done",jQuery.Callbacks("once memory"),
2122jQuery.Callbacks("once memory"),0,"resolved"],
2123["reject","fail",jQuery.Callbacks("once memory"),
2124jQuery.Callbacks("once memory"),1,"rejected"]
2125],
2126state="pending",
2127promise={
2128state:function(){
2129return state;
2130},
2131always:function(){
2132deferred.done(arguments).fail(arguments);
2133return this;
2134},
2135"catch":function(fn){
2136return promise.then(null,fn);
2137},
2138pipe:function(){
2139var fns=arguments;
2140return jQuery.Deferred(function(newDefer){
2141jQuery.each(tuples,function(_i,tuple){
2142var fn=isFunction(fns[tuple[4]])&&fns[tuple[4]];
2143deferred[tuple[1]](function(){
2144var returned=fn&&fn.apply(this,arguments);
2145if(returned&&isFunction(returned.promise)){
2146returned.promise()
2147.progress(newDefer.notify)
2148.done(newDefer.resolve)
2149.fail(newDefer.reject);
2150}else{
2151newDefer[tuple[0]+"With"](
2152this,
2153fn?[returned]:arguments
2154);
2155}
2156});
2157});
2158fns=null;
2159}).promise();
2160},
2161then:function(onFulfilled,onRejected,onProgress){
2162var maxDepth=0;
2163function resolve(depth,deferred,handler,special){
2164return function(){
2165var that=this,
2166args=arguments,
2167mightThrow=function(){
2168var returned,then;
2169if(depth<maxDepth){
2170return;
2171}
2172returned=handler.apply(that,args);
2173if(returned===deferred.promise()){
2174throw new TypeError("Thenable self-resolution");
2175}
2176then=returned&&
2177(typeof returned==="object"||
2178typeof returned==="function")&&
2179returned.then;
2180if(isFunction(then)){
2181if(special){
2182then.call(
2183returned,
2184resolve(maxDepth,deferred,Identity,special),
2185resolve(maxDepth,deferred,Thrower,special)
2186);
2187}else{
2188maxDepth++;
2189then.call(
2190returned,
2191resolve(maxDepth,deferred,Identity,special),
2192resolve(maxDepth,deferred,Thrower,special),
2193resolve(maxDepth,deferred,Identity,
2194deferred.notifyWith)
2195);
2196}
2197}else{
2198if(handler!==Identity){
2199that=undefined;
2200args=[returned];
2201}
2202(special||deferred.resolveWith)(that,args);
2203}
2204},
2205process=special?
2206mightThrow:
2207function(){
2208try{
2209mightThrow();
2210}catch(e){
2211if(jQuery.Deferred.exceptionHook){
2212jQuery.Deferred.exceptionHook(e,
2213process.error);
2214}
2215if(depth+1>=maxDepth){
2216if(handler!==Thrower){
2217that=undefined;
2218args=[e];
2219}
2220deferred.rejectWith(that,args);
2221}
2222}
2223};
2224if(depth){
2225process();
2226}else{
2227if(jQuery.Deferred.getErrorHook){
2228process.error=jQuery.Deferred.getErrorHook();
2229}else if(jQuery.Deferred.getStackHook){
2230process.error=jQuery.Deferred.getStackHook();
2231}
2232window.setTimeout(process);
2233}
2234};
2235}
2236return jQuery.Deferred(function(newDefer){
2237tuples[0][3].add(
2238resolve(
22390,
2240newDefer,
2241isFunction(onProgress)?
2242onProgress:
2243Identity,
2244newDefer.notifyWith
2245)
2246);
2247tuples[1][3].add(
2248resolve(
22490,
2250newDefer,
2251isFunction(onFulfilled)?
2252onFulfilled:
2253Identity
2254)
2255);
2256tuples[2][3].add(
2257resolve(
22580,
2259newDefer,
2260isFunction(onRejected)?
2261onRejected:
2262Thrower
2263)
2264);
2265}).promise();
2266},
2267promise:function(obj){
2268return obj!=null?jQuery.extend(obj,promise):promise;
2269}
2270},
2271deferred={};
2272jQuery.each(tuples,function(i,tuple){
2273var list=tuple[2],
2274stateString=tuple[5];
2275promise[tuple[1]]=list.add;
2276if(stateString){
2277list.add(
2278function(){
2279state=stateString;
2280},
2281tuples[3-i][2].disable,
2282tuples[3-i][3].disable,
2283tuples[0][2].lock,
2284tuples[0][3].lock
2285);
2286}
2287list.add(tuple[3].fire);
2288deferred[tuple[0]]=function(){
2289deferred[tuple[0]+"With"](this===deferred?undefined:this,arguments);
2290return this;
2291};
2292deferred[tuple[0]+"With"]=list.fireWith;
2293});
2294promise.promise(deferred);
2295if(func){
2296func.call(deferred,deferred);
2297}
2298return deferred;
2299},
2300when:function(singleValue){
2301var
2302remaining=arguments.length,
2303i=remaining,
2304resolveContexts=Array(i),
2305resolveValues=slice.call(arguments),
2306primary=jQuery.Deferred(),
2307updateFunc=function(i){
2308return function(value){
2309resolveContexts[i]=this;
2310resolveValues[i]=arguments.length>1?slice.call(arguments):value;
2311if(!(--remaining)){
2312primary.resolveWith(resolveContexts,resolveValues);
2313}
2314};
2315};
2316if(remaining<=1){
2317adoptValue(singleValue,primary.done(updateFunc(i)).resolve,primary.reject,
2318!remaining);
2319if(primary.state()==="pending"||
2320isFunction(resolveValues[i]&&resolveValues[i].then)){
2321return primary.then();
2322}
2323}
2324while(i--){
2325adoptValue(resolveValues[i],updateFunc(i),primary.reject);
2326}
2327return primary.promise();
2328}
2329});
2330var rerrorNames=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;
2331jQuery.Deferred.exceptionHook=function(error,asyncError){
2332if(window.console&&window.console.warn&&error&&rerrorNames.test(error.name)){
2333window.console.warn("jQuery.Deferred exception: "+error.message,
2334error.stack,asyncError);
2335}
2336};
2337jQuery.readyException=function(error){
2338window.setTimeout(function(){
2339throw error;
2340});
2341};
2342var readyList=jQuery.Deferred();
2343jQuery.fn.ready=function(fn){
2344readyList
2345.then(fn)
2346.catch(function(error){
2347jQuery.readyException(error);
2348});
2349return this;
2350};
2351jQuery.extend({
2352isReady:false,
2353readyWait:1,
2354ready:function(wait){
2355if(wait===true?--jQuery.readyWait:jQuery.isReady){
2356return;
2357}
2358jQuery.isReady=true;
2359if(wait!==true&&--jQuery.readyWait>0){
2360return;
2361}
2362readyList.resolveWith(document,[jQuery]);
2363}
2364});
2365jQuery.ready.then=readyList.then;
2366function completed(){
2367document.removeEventListener("DOMContentLoaded",completed);
2368window.removeEventListener("load",completed);
2369jQuery.ready();
2370}
2371if(document.readyState==="complete"||
2372(document.readyState!=="loading"&&!document.documentElement.doScroll)){
2373window.setTimeout(jQuery.ready);
2374}else{
2375document.addEventListener("DOMContentLoaded",completed);
2376window.addEventListener("load",completed);
2377}
2378var access=function(elems,fn,key,value,chainable,emptyGet,raw){
2379var i=0,
2380len=elems.length,
2381bulk=key==null;
2382if(toType(key)==="object"){
2383chainable=true;
2384for(i in key){
2385access(elems,fn,i,key[i],true,emptyGet,raw);
2386}
2387}else if(value!==undefined){
2388chainable=true;
2389if(!isFunction(value)){
2390raw=true;
2391}
2392if(bulk){
2393if(raw){
2394fn.call(elems,value);
2395fn=null;
2396}else{
2397bulk=fn;
2398fn=function(elem,_key,value){
2399return bulk.call(jQuery(elem),value);
2400};
2401}
2402}
2403if(fn){
2404for(;i<len;i++){
2405fn(
2406elems[i],key,raw?
2407value:
2408value.call(elems[i],i,fn(elems[i],key))
2409);
2410}
2411}
2412}
2413if(chainable){
2414return elems;
2415}
2416if(bulk){
2417return fn.call(elems);
2418}
2419return len?fn(elems[0],key):emptyGet;
2420};
2421var rmsPrefix=/^-ms-/,
2422rdashAlpha=/-([a-z])/g;
2423function fcamelCase(_all,letter){
2424return letter.toUpperCase();
2425}
2426function camelCase(string){
2427return string.replace(rmsPrefix,"ms-").replace(rdashAlpha,fcamelCase);
2428}
2429var acceptData=function(owner){
2430return owner.nodeType===1||owner.nodeType===9||!(+owner.nodeType);
2431};
2432function Data(){
2433this.expando=jQuery.expando+Data.uid++;
2434}
2435Data.uid=1;
2436Data.prototype={
2437cache:function(owner){
2438var value=owner[this.expando];
2439if(!value){
2440value={};
2441if(acceptData(owner)){
2442if(owner.nodeType){
2443owner[this.expando]=value;
2444}else{
2445Object.defineProperty(owner,this.expando,{
2446value:value,
2447configurable:true
2448});
2449}
2450}
2451}
2452return value;
2453},
2454set:function(owner,data,value){
2455var prop,
2456cache=this.cache(owner);
2457if(typeof data==="string"){
2458cache[camelCase(data)]=value;
2459}else{
2460for(prop in data){
2461cache[camelCase(prop)]=data[prop];
2462}
2463}
2464return cache;
2465},
2466get:function(owner,key){
2467return key===undefined?
2468this.cache(owner):
2469owner[this.expando]&&owner[this.expando][camelCase(key)];
2470},
2471access:function(owner,key,value){
2472if(key===undefined||
2473((key&&typeof key==="string")&&value===undefined)){
2474return this.get(owner,key);
2475}
2476this.set(owner,key,value);
2477return value!==undefined?value:key;
2478},
2479remove:function(owner,key){
2480var i,
2481cache=owner[this.expando];
2482if(cache===undefined){
2483return;
2484}
2485if(key!==undefined){
2486if(Array.isArray(key)){
2487key=key.map(camelCase);
2488}else{
2489key=camelCase(key);
2490key=key in cache?
2491[key]:
2492(key.match(rnothtmlwhite)||[]);
2493}
2494i=key.length;
2495while(i--){
2496delete cache[key[i]];
2497}
2498}
2499if(key===undefined||jQuery.isEmptyObject(cache)){
2500if(owner.nodeType){
2501owner[this.expando]=undefined;
2502}else{
2503delete owner[this.expando];
2504}
2505}
2506},
2507hasData:function(owner){
2508var cache=owner[this.expando];
2509return cache!==undefined&&!jQuery.isEmptyObject(cache);
2510}
2511};
2512var dataPriv=new Data();
2513var dataUser=new Data();
2514var rbrace=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,
2515rmultiDash=/[A-Z]/g;
2516function getData(data){
2517if(data==="true"){
2518return true;
2519}
2520if(data==="false"){
2521return false;
2522}
2523if(data==="null"){
2524return null;
2525}
2526if(data===+data+""){
2527return+data;
2528}
2529if(rbrace.test(data)){
2530return JSON.parse(data);
2531}
2532return data;
2533}
2534function dataAttr(elem,key,data){
2535var name;
2536if(data===undefined&&elem.nodeType===1){
2537name="data-"+key.replace(rmultiDash,"-$&").toLowerCase();
2538data=elem.getAttribute(name);
2539if(typeof data==="string"){
2540try{
2541data=getData(data);
2542}catch(e){}
2543dataUser.set(elem,key,data);
2544}else{
2545data=undefined;
2546}
2547}
2548return data;
2549}
2550jQuery.extend({
2551hasData:function(elem){
2552return dataUser.hasData(elem)||dataPriv.hasData(elem);
2553},
2554data:function(elem,name,data){
2555return dataUser.access(elem,name,data);
2556},
2557removeData:function(elem,name){
2558dataUser.remove(elem,name);
2559},
2560_data:function(elem,name,data){
2561return dataPriv.access(elem,name,data);
2562},
2563_removeData:function(elem,name){
2564dataPriv.remove(elem,name);
2565}
2566});
2567jQuery.fn.extend({
2568data:function(key,value){
2569var i,name,data,
2570elem=this[0],
2571attrs=elem&&elem.attributes;
2572if(key===undefined){
2573if(this.length){
2574data=dataUser.get(elem);
2575if(elem.nodeType===1&&!dataPriv.get(elem,"hasDataAttrs")){
2576i=attrs.length;
2577while(i--){
2578if(attrs[i]){
2579name=attrs[i].name;
2580if(name.indexOf("data-")===0){
2581name=camelCase(name.slice(5));
2582dataAttr(elem,name,data[name]);
2583}
2584}
2585}
2586dataPriv.set(elem,"hasDataAttrs",true);
2587}
2588}
2589return data;
2590}
2591if(typeof key==="object"){
2592return this.each(function(){
2593dataUser.set(this,key);
2594});
2595}
2596return access(this,function(value){
2597var data;
2598if(elem&&value===undefined){
2599data=dataUser.get(elem,key);
2600if(data!==undefined){
2601return data;
2602}
2603data=dataAttr(elem,key);
2604if(data!==undefined){
2605return data;
2606}
2607return;
2608}
2609this.each(function(){
2610dataUser.set(this,key,value);
2611});
2612},null,value,arguments.length>1,null,true);
2613},
2614removeData:function(key){
2615return this.each(function(){
2616dataUser.remove(this,key);
2617});
2618}
2619});
2620jQuery.extend({
2621queue:function(elem,type,data){
2622var queue;
2623if(elem){
2624type=(type||"fx")+"queue";
2625queue=dataPriv.get(elem,type);
2626if(data){
2627if(!queue||Array.isArray(data)){
2628queue=dataPriv.access(elem,type,jQuery.makeArray(data));
2629}else{
2630queue.push(data);
2631}
2632}
2633return queue||[];
2634}
2635},
2636dequeue:function(elem,type){
2637type=type||"fx";
2638var queue=jQuery.queue(elem,type),
2639startLength=queue.length,
2640fn=queue.shift(),
2641hooks=jQuery._queueHooks(elem,type),
2642next=function(){
2643jQuery.dequeue(elem,type);
2644};
2645if(fn==="inprogress"){
2646fn=queue.shift();
2647startLength--;
2648}
2649if(fn){
2650if(type==="fx"){
2651queue.unshift("inprogress");
2652}
2653delete hooks.stop;
2654fn.call(elem,next,hooks);
2655}
2656if(!startLength&&hooks){
2657hooks.empty.fire();
2658}
2659},
2660_queueHooks:function(elem,type){
2661var key=type+"queueHooks";
2662return dataPriv.get(elem,key)||dataPriv.access(elem,key,{
2663empty:jQuery.Callbacks("once memory").add(function(){
2664dataPriv.remove(elem,[type+"queue",key]);
2665})
2666});
2667}
2668});
2669jQuery.fn.extend({
2670queue:function(type,data){
2671var setter=2;
2672if(typeof type!=="string"){
2673data=type;
2674type="fx";
2675setter--;
2676}
2677if(arguments.length<setter){
2678return jQuery.queue(this[0],type);
2679}
2680return data===undefined?
2681this:
2682this.each(function(){
2683var queue=jQuery.queue(this,type,data);
2684jQuery._queueHooks(this,type);
2685if(type==="fx"&&queue[0]!=="inprogress"){
2686jQuery.dequeue(this,type);
2687}
2688});
2689},
2690dequeue:function(type){
2691return this.each(function(){
2692jQuery.dequeue(this,type);
2693});
2694},
2695clearQueue:function(type){
2696return this.queue(type||"fx",[]);
2697},
2698promise:function(type,obj){
2699var tmp,
2700count=1,
2701defer=jQuery.Deferred(),
2702elements=this,
2703i=this.length,
2704resolve=function(){
2705if(!(--count)){
2706defer.resolveWith(elements,[elements]);
2707}
2708};
2709if(typeof type!=="string"){
2710obj=type;
2711type=undefined;
2712}
2713type=type||"fx";
2714while(i--){
2715tmp=dataPriv.get(elements[i],type+"queueHooks");
2716if(tmp&&tmp.empty){
2717count++;
2718tmp.empty.add(resolve);
2719}
2720}
2721resolve();
2722return defer.promise(obj);
2723}
2724});
2725var pnum=(/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/).source;
2726var rcssNum=new RegExp("^(?:([+-])=|)("+pnum+")([a-z%]*)$","i");
2727var cssExpand=["Top","Right","Bottom","Left"];
2728var documentElement=document.documentElement;
2729var isAttached=function(elem){
2730return jQuery.contains(elem.ownerDocument,elem);
2731},
2732composed={composed:true};
2733if(documentElement.getRootNode){
2734isAttached=function(elem){
2735return jQuery.contains(elem.ownerDocument,elem)||
2736elem.getRootNode(composed)===elem.ownerDocument;
2737};
2738}
2739var isHiddenWithinTree=function(elem,el){
2740elem=el||elem;
2741return elem.style.display==="none"||
2742elem.style.display===""&&
2743isAttached(elem)&&
2744jQuery.css(elem,"display")==="none";
2745};
2746function adjustCSS(elem,prop,valueParts,tween){
2747var adjusted,scale,
2748maxIterations=20,
2749currentValue=tween?
2750function(){
2751return tween.cur();
2752}:
2753function(){
2754return jQuery.css(elem,prop,"");
2755},
2756initial=currentValue(),
2757unit=valueParts&&valueParts[3]||(jQuery.cssNumber[prop]?"":"px"),
2758initialInUnit=elem.nodeType&&
2759(jQuery.cssNumber[prop]||unit!=="px"&&+initial)&&
2760rcssNum.exec(jQuery.css(elem,prop));
2761if(initialInUnit&&initialInUnit[3]!==unit){
2762initial=initial/2;
2763unit=unit||initialInUnit[3];
2764initialInUnit=+initial||1;
2765while(maxIterations--){
2766jQuery.style(elem,prop,initialInUnit+unit);
2767if((1-scale)*(1-(scale=currentValue()/initial||0.5))<=0){
2768maxIterations=0;
2769}
2770initialInUnit=initialInUnit/scale;
2771}
2772initialInUnit=initialInUnit*2;
2773jQuery.style(elem,prop,initialInUnit+unit);
2774valueParts=valueParts||[];
2775}
2776if(valueParts){
2777initialInUnit=+initialInUnit||+initial||0;
2778adjusted=valueParts[1]?
2779initialInUnit+(valueParts[1]+1)*valueParts[2]:
2780+valueParts[2];
2781if(tween){
2782tween.unit=unit;
2783tween.start=initialInUnit;
2784tween.end=adjusted;
2785}
2786}
2787return adjusted;
2788}
2789var defaultDisplayMap={};
2790function getDefaultDisplay(elem){
2791var temp,
2792doc=elem.ownerDocument,
2793nodeName=elem.nodeName,
2794display=defaultDisplayMap[nodeName];
2795if(display){
2796return display;
2797}
2798temp=doc.body.appendChild(doc.createElement(nodeName));
2799display=jQuery.css(temp,"display");
2800temp.parentNode.removeChild(temp);
2801if(display==="none"){
2802display="block";
2803}
2804defaultDisplayMap[nodeName]=display;
2805return display;
2806}
2807function showHide(elements,show){
2808var display,elem,
2809values=[],
2810index=0,
2811length=elements.length;
2812for(;index<length;index++){
2813elem=elements[index];
2814if(!elem.style){
2815continue;
2816}
2817display=elem.style.display;
2818if(show){
2819if(display==="none"){
2820values[index]=dataPriv.get(elem,"display")||null;
2821if(!values[index]){
2822elem.style.display="";
2823}
2824}
2825if(elem.style.display===""&&isHiddenWithinTree(elem)){
2826values[index]=getDefaultDisplay(elem);
2827}
2828}else{
2829if(display!=="none"){
2830values[index]="none";
2831dataPriv.set(elem,"display",display);
2832}
2833}
2834}
2835for(index=0;index<length;index++){
2836if(values[index]!=null){
2837elements[index].style.display=values[index];
2838}
2839}
2840return elements;
2841}
2842jQuery.fn.extend({
2843show:function(){
2844return showHide(this,true);
2845},
2846hide:function(){
2847return showHide(this);
2848},
2849toggle:function(state){
2850if(typeof state==="boolean"){
2851return state?this.show():this.hide();
2852}
2853return this.each(function(){
2854if(isHiddenWithinTree(this)){
2855jQuery(this).show();
2856}else{
2857jQuery(this).hide();
2858}
2859});
2860}
2861});
2862var rcheckableType=(/^(?:checkbox|radio)$/i);
2863var rtagName=(/<([a-z][^\/\0>\x20\t\r\n\f]*)/i);
2864var rscriptType=(/^$|^module$|\/(?:java|ecma)script/i);
2865(function(){
2866var fragment=document.createDocumentFragment(),
2867div=fragment.appendChild(document.createElement("div")),
2868input=document.createElement("input");
2869input.setAttribute("type","radio");
2870input.setAttribute("checked","checked");
2871input.setAttribute("name","t");
2872div.appendChild(input);
2873support.checkClone=div.cloneNode(true).cloneNode(true).lastChild.checked;
2874div.innerHTML="<textarea>x</textarea>";
2875support.noCloneChecked=!!div.cloneNode(true).lastChild.defaultValue;
2876div.innerHTML="<option></option>";
2877support.option=!!div.lastChild;
2878})();
2879var wrapMap={
2880thead:[1,"<table>","</table>"],
2881col:[2,"<table><colgroup>","</colgroup></table>"],
2882tr:[2,"<table><tbody>","</tbody></table>"],
2883td:[3,"<table><tbody><tr>","</tr></tbody></table>"],
2884_default:[0,"",""]
2885};
2886wrapMap.tbody=wrapMap.tfoot=wrapMap.colgroup=wrapMap.caption=wrapMap.thead;
2887wrapMap.th=wrapMap.td;
2888if(!support.option){
2889wrapMap.optgroup=wrapMap.option=[1,"<select multiple='multiple'>","</select>"];
2890}
2891function getAll(context,tag){
2892var ret;
2893if(typeof context.getElementsByTagName!=="undefined"){
2894ret=context.getElementsByTagName(tag||"*");
2895}else if(typeof context.querySelectorAll!=="undefined"){
2896ret=context.querySelectorAll(tag||"*");
2897}else{
2898ret=[];
2899}
2900if(tag===undefined||tag&&nodeName(context,tag)){
2901return jQuery.merge([context],ret);
2902}
2903return ret;
2904}
2905function setGlobalEval(elems,refElements){
2906var i=0,
2907l=elems.length;
2908for(;i<l;i++){
2909dataPriv.set(
2910elems[i],
2911"globalEval",
2912!refElements||dataPriv.get(refElements[i],"globalEval")
2913);
2914}
2915}
2916var rhtml=/<|&#?\w+;/;
2917function buildFragment(elems,context,scripts,selection,ignored){
2918var elem,tmp,tag,wrap,attached,j,
2919fragment=context.createDocumentFragment(),
2920nodes=[],
2921i=0,
2922l=elems.length;
2923for(;i<l;i++){
2924elem=elems[i];
2925if(elem||elem===0){
2926if(toType(elem)==="object"){
2927jQuery.merge(nodes,elem.nodeType?[elem]:elem);
2928}else if(!rhtml.test(elem)){
2929nodes.push(context.createTextNode(elem));
2930}else{
2931tmp=tmp||fragment.appendChild(context.createElement("div"));
2932tag=(rtagName.exec(elem)||["",""])[1].toLowerCase();
2933wrap=wrapMap[tag]||wrapMap._default;
2934tmp.innerHTML=wrap[1]+jQuery.htmlPrefilter(elem)+wrap[2];
2935j=wrap[0];
2936while(j--){
2937tmp=tmp.lastChild;
2938}
2939jQuery.merge(nodes,tmp.childNodes);
2940tmp=fragment.firstChild;
2941tmp.textContent="";
2942}
2943}
2944}
2945fragment.textContent="";
2946i=0;
2947while((elem=nodes[i++])){
2948if(selection&&jQuery.inArray(elem,selection)>-1){
2949if(ignored){
2950ignored.push(elem);
2951}
2952continue;
2953}
2954attached=isAttached(elem);
2955tmp=getAll(fragment.appendChild(elem),"script");
2956if(attached){
2957setGlobalEval(tmp);
2958}
2959if(scripts){
2960j=0;
2961while((elem=tmp[j++])){
2962if(rscriptType.test(elem.type||"")){
2963scripts.push(elem);
2964}
2965}
2966}
2967}
2968return fragment;
2969}
2970var rtypenamespace=/^([^.]*)(?:\.(.+)|)/;
2971function returnTrue(){
2972return true;
2973}
2974function returnFalse(){
2975return false;
2976}
2977function on(elem,types,selector,data,fn,one){
2978var origFn,type;
2979if(typeof types==="object"){
2980if(typeof selector!=="string"){
2981data=data||selector;
2982selector=undefined;
2983}
2984for(type in types){
2985on(elem,type,selector,data,types[type],one);
2986}
2987return elem;
2988}
2989if(data==null&&fn==null){
2990fn=selector;
2991data=selector=undefined;
2992}else if(fn==null){
2993if(typeof selector==="string"){
2994fn=data;
2995data=undefined;
2996}else{
2997fn=data;
2998data=selector;
2999selector=undefined;
3000}
3001}
3002if(fn===false){
3003fn=returnFalse;
3004}else if(!fn){
3005return elem;
3006}
3007if(one===1){
3008origFn=fn;
3009fn=function(event){
3010jQuery().off(event);
3011return origFn.apply(this,arguments);
3012};
3013fn.guid=origFn.guid||(origFn.guid=jQuery.guid++);
3014}
3015return elem.each(function(){
3016jQuery.event.add(this,types,fn,data,selector);
3017});
3018}
3019jQuery.event={
3020global:{},
3021add:function(elem,types,handler,data,selector){
3022var handleObjIn,eventHandle,tmp,
3023events,t,handleObj,
3024special,handlers,type,namespaces,origType,
3025elemData=dataPriv.get(elem);
3026if(!acceptData(elem)){
3027return;
3028}
3029if(handler.handler){
3030handleObjIn=handler;
3031handler=handleObjIn.handler;
3032selector=handleObjIn.selector;
3033}
3034if(selector){
3035jQuery.find.matchesSelector(documentElement,selector);
3036}
3037if(!handler.guid){
3038handler.guid=jQuery.guid++;
3039}
3040if(!(events=elemData.events)){
3041events=elemData.events=Object.create(null);
3042}
3043if(!(eventHandle=elemData.handle)){
3044eventHandle=elemData.handle=function(e){
3045return typeof jQuery!=="undefined"&&jQuery.event.triggered!==e.type?
3046jQuery.event.dispatch.apply(elem,arguments):undefined;
3047};
3048}
3049types=(types||"").match(rnothtmlwhite)||[""];
3050t=types.length;
3051while(t--){
3052tmp=rtypenamespace.exec(types[t])||[];
3053type=origType=tmp[1];
3054namespaces=(tmp[2]||"").split(".").sort();
3055if(!type){
3056continue;
3057}
3058special=jQuery.event.special[type]||{};
3059type=(selector?special.delegateType:special.bindType)||type;
3060special=jQuery.event.special[type]||{};
3061handleObj=jQuery.extend({
3062type:type,
3063origType:origType,
3064data:data,
3065handler:handler,
3066guid:handler.guid,
3067selector:selector,
3068needsContext:selector&&jQuery.expr.match.needsContext.test(selector),
3069namespace:namespaces.join(".")
3070},handleObjIn);
3071if(!(handlers=events[type])){
3072handlers=events[type]=[];
3073handlers.delegateCount=0;
3074if(!special.setup||
3075special.setup.call(elem,data,namespaces,eventHandle)===false){
3076if(elem.addEventListener){
3077elem.addEventListener(type,eventHandle);
3078}
3079}
3080}
3081if(special.add){
3082special.add.call(elem,handleObj);
3083if(!handleObj.handler.guid){
3084handleObj.handler.guid=handler.guid;
3085}
3086}
3087if(selector){
3088handlers.splice(handlers.delegateCount++,0,handleObj);
3089}else{
3090handlers.push(handleObj);
3091}
3092jQuery.event.global[type]=true;
3093}
3094},
3095remove:function(elem,types,handler,selector,mappedTypes){
3096var j,origCount,tmp,
3097events,t,handleObj,
3098special,handlers,type,namespaces,origType,
3099elemData=dataPriv.hasData(elem)&&dataPriv.get(elem);
3100if(!elemData||!(events=elemData.events)){
3101return;
3102}
3103types=(types||"").match(rnothtmlwhite)||[""];
3104t=types.length;
3105while(t--){
3106tmp=rtypenamespace.exec(types[t])||[];
3107type=origType=tmp[1];
3108namespaces=(tmp[2]||"").split(".").sort();
3109if(!type){
3110for(type in events){
3111jQuery.event.remove(elem,type+types[t],handler,selector,true);
3112}
3113continue;
3114}
3115special=jQuery.event.special[type]||{};
3116type=(selector?special.delegateType:special.bindType)||type;
3117handlers=events[type]||[];
3118tmp=tmp[2]&&
3119new RegExp("(^|\\.)"+namespaces.join("\\.(?:.*\\.|)")+"(\\.|$)");
3120origCount=j=handlers.length;
3121while(j--){
3122handleObj=handlers[j];
3123if((mappedTypes||origType===handleObj.origType)&&
3124(!handler||handler.guid===handleObj.guid)&&
3125(!tmp||tmp.test(handleObj.namespace))&&
3126(!selector||selector===handleObj.selector||
3127selector==="**"&&handleObj.selector)){
3128handlers.splice(j,1);
3129if(handleObj.selector){
3130handlers.delegateCount--;
3131}
3132if(special.remove){
3133special.remove.call(elem,handleObj);
3134}
3135}
3136}
3137if(origCount&&!handlers.length){
3138if(!special.teardown||
3139special.teardown.call(elem,namespaces,elemData.handle)===false){
3140jQuery.removeEvent(elem,type,elemData.handle);
3141}
3142delete events[type];
3143}
3144}
3145if(jQuery.isEmptyObject(events)){
3146dataPriv.remove(elem,"handle events");
3147}
3148},
3149dispatch:function(nativeEvent){
3150var i,j,ret,matched,handleObj,handlerQueue,
3151args=new Array(arguments.length),
3152event=jQuery.event.fix(nativeEvent),
3153handlers=(
3154dataPriv.get(this,"events")||Object.create(null)
3155)[event.type]||[],
3156special=jQuery.event.special[event.type]||{};
3157args[0]=event;
3158for(i=1;i<arguments.length;i++){
3159args[i]=arguments[i];
3160}
3161event.delegateTarget=this;
3162if(special.preDispatch&&special.preDispatch.call(this,event)===false){
3163return;
3164}
3165handlerQueue=jQuery.event.handlers.call(this,event,handlers);
3166i=0;
3167while((matched=handlerQueue[i++])&&!event.isPropagationStopped()){
3168event.currentTarget=matched.elem;
3169j=0;
3170while((handleObj=matched.handlers[j++])&&
3171!event.isImmediatePropagationStopped()){
3172if(!event.rnamespace||handleObj.namespace===false||
3173event.rnamespace.test(handleObj.namespace)){
3174event.handleObj=handleObj;
3175event.data=handleObj.data;
3176ret=((jQuery.event.special[handleObj.origType]||{}).handle||
3177handleObj.handler).apply(matched.elem,args);
3178if(ret!==undefined){
3179if((event.result=ret)===false){
3180event.preventDefault();
3181event.stopPropagation();
3182}
3183}
3184}
3185}
3186}
3187if(special.postDispatch){
3188special.postDispatch.call(this,event);
3189}
3190return event.result;
3191},
3192handlers:function(event,handlers){
3193var i,handleObj,sel,matchedHandlers,matchedSelectors,
3194handlerQueue=[],
3195delegateCount=handlers.delegateCount,
3196cur=event.target;
3197if(delegateCount&&
3198cur.nodeType&&
3199!(event.type==="click"&&event.button>=1)){
3200for(;cur!==this;cur=cur.parentNode||this){
3201if(cur.nodeType===1&&!(event.type==="click"&&cur.disabled===true)){
3202matchedHandlers=[];
3203matchedSelectors={};
3204for(i=0;i<delegateCount;i++){
3205handleObj=handlers[i];
3206sel=handleObj.selector+" ";
3207if(matchedSelectors[sel]===undefined){
3208matchedSelectors[sel]=handleObj.needsContext?
3209jQuery(sel,this).index(cur)>-1:
3210jQuery.find(sel,this,null,[cur]).length;
3211}
3212if(matchedSelectors[sel]){
3213matchedHandlers.push(handleObj);
3214}
3215}
3216if(matchedHandlers.length){
3217handlerQueue.push({elem:cur,handlers:matchedHandlers});
3218}
3219}
3220}
3221}
3222cur=this;
3223if(delegateCount<handlers.length){
3224handlerQueue.push({elem:cur,handlers:handlers.slice(delegateCount)});
3225}
3226return handlerQueue;
3227},
3228addProp:function(name,hook){
3229Object.defineProperty(jQuery.Event.prototype,name,{
3230enumerable:true,
3231configurable:true,
3232get:isFunction(hook)?
3233function(){
3234if(this.originalEvent){
3235return hook(this.originalEvent);
3236}
3237}:
3238function(){
3239if(this.originalEvent){
3240return this.originalEvent[name];
3241}
3242},
3243set:function(value){
3244Object.defineProperty(this,name,{
3245enumerable:true,
3246configurable:true,
3247writable:true,
3248value:value
3249});
3250}
3251});
3252},
3253fix:function(originalEvent){
3254return originalEvent[jQuery.expando]?
3255originalEvent:
3256new jQuery.Event(originalEvent);
3257},
3258special:{
3259load:{
3260noBubble:true
3261},
3262click:{
3263setup:function(data){
3264var el=this||data;
3265if(rcheckableType.test(el.type)&&
3266el.click&&nodeName(el,"input")){
3267leverageNative(el,"click",true);
3268}
3269return false;
3270},
3271trigger:function(data){
3272var el=this||data;
3273if(rcheckableType.test(el.type)&&
3274el.click&&nodeName(el,"input")){
3275leverageNative(el,"click");
3276}
3277return true;
3278},
3279_default:function(event){
3280var target=event.target;
3281return rcheckableType.test(target.type)&&
3282target.click&&nodeName(target,"input")&&
3283dataPriv.get(target,"click")||
3284nodeName(target,"a");
3285}
3286},
3287beforeunload:{
3288postDispatch:function(event){
3289if(event.result!==undefined&&event.originalEvent){
3290event.originalEvent.returnValue=event.result;
3291}
3292}
3293}
3294}
3295};
3296function leverageNative(el,type,isSetup){
3297if(!isSetup){
3298if(dataPriv.get(el,type)===undefined){
3299jQuery.event.add(el,type,returnTrue);
3300}
3301return;
3302}
3303dataPriv.set(el,type,false);
3304jQuery.event.add(el,type,{
3305namespace:false,
3306handler:function(event){
3307var result,
3308saved=dataPriv.get(this,type);
3309if((event.isTrigger&1)&&this[type]){
3310if(!saved){
3311saved=slice.call(arguments);
3312dataPriv.set(this,type,saved);
3313this[type]();
3314result=dataPriv.get(this,type);
3315dataPriv.set(this,type,false);
3316if(saved!==result){
3317event.stopImmediatePropagation();
3318event.preventDefault();
3319return result;
3320}
3321}else if((jQuery.event.special[type]||{}).delegateType){
3322event.stopPropagation();
3323}
3324}else if(saved){
3325dataPriv.set(this,type,jQuery.event.trigger(
3326saved[0],
3327saved.slice(1),
3328this
3329));
3330event.stopPropagation();
3331event.isImmediatePropagationStopped=returnTrue;
3332}
3333}
3334});
3335}
3336jQuery.removeEvent=function(elem,type,handle){
3337if(elem.removeEventListener){
3338elem.removeEventListener(type,handle);
3339}
3340};
3341jQuery.Event=function(src,props){
3342if(!(this instanceof jQuery.Event)){
3343return new jQuery.Event(src,props);
3344}
3345if(src&&src.type){
3346this.originalEvent=src;
3347this.type=src.type;
3348this.isDefaultPrevented=src.defaultPrevented||
3349src.defaultPrevented===undefined&&
3350src.returnValue===false?
3351returnTrue:
3352returnFalse;
3353this.target=(src.target&&src.target.nodeType===3)?
3354src.target.parentNode:
3355src.target;
3356this.currentTarget=src.currentTarget;
3357this.relatedTarget=src.relatedTarget;
3358}else{
3359this.type=src;
3360}
3361if(props){
3362jQuery.extend(this,props);
3363}
3364this.timeStamp=src&&src.timeStamp||Date.now();
3365this[jQuery.expando]=true;
3366};
3367jQuery.Event.prototype={
3368constructor:jQuery.Event,
3369isDefaultPrevented:returnFalse,
3370isPropagationStopped:returnFalse,
3371isImmediatePropagationStopped:returnFalse,
3372isSimulated:false,
3373preventDefault:function(){
3374var e=this.originalEvent;
3375this.isDefaultPrevented=returnTrue;
3376if(e&&!this.isSimulated){
3377e.preventDefault();
3378}
3379},
3380stopPropagation:function(){
3381var e=this.originalEvent;
3382this.isPropagationStopped=returnTrue;
3383if(e&&!this.isSimulated){
3384e.stopPropagation();
3385}
3386},
3387stopImmediatePropagation:function(){
3388var e=this.originalEvent;
3389this.isImmediatePropagationStopped=returnTrue;
3390if(e&&!this.isSimulated){
3391e.stopImmediatePropagation();
3392}
3393this.stopPropagation();
3394}
3395};
3396jQuery.each({
3397altKey:true,
3398bubbles:true,
3399cancelable:true,
3400changedTouches:true,
3401ctrlKey:true,
3402detail:true,
3403eventPhase:true,
3404metaKey:true,
3405pageX:true,
3406pageY:true,
3407shiftKey:true,
3408view:true,
3409"char":true,
3410code:true,
3411charCode:true,
3412key:true,
3413keyCode:true,
3414button:true,
3415buttons:true,
3416clientX:true,
3417clientY:true,
3418offsetX:true,
3419offsetY:true,
3420pointerId:true,
3421pointerType:true,
3422screenX:true,
3423screenY:true,
3424targetTouches:true,
3425toElement:true,
3426touches:true,
3427which:true
3428},jQuery.event.addProp);
3429jQuery.each({focus:"focusin",blur:"focusout"},function(type,delegateType){
3430function focusMappedHandler(nativeEvent){
3431if(document.documentMode){
3432var handle=dataPriv.get(this,"handle"),
3433event=jQuery.event.fix(nativeEvent);
3434event.type=nativeEvent.type==="focusin"?"focus":"blur";
3435event.isSimulated=true;
3436handle(nativeEvent);
3437if(event.target===event.currentTarget){
3438handle(event);
3439}
3440}else{
3441jQuery.event.simulate(delegateType,nativeEvent.target,
3442jQuery.event.fix(nativeEvent));
3443}
3444}
3445jQuery.event.special[type]={
3446setup:function(){
3447var attaches;
3448leverageNative(this,type,true);
3449if(document.documentMode){
3450attaches=dataPriv.get(this,delegateType);
3451if(!attaches){
3452this.addEventListener(delegateType,focusMappedHandler);
3453}
3454dataPriv.set(this,delegateType,(attaches||0)+1);
3455}else{
3456return false;
3457}
3458},
3459trigger:function(){
3460leverageNative(this,type);
3461return true;
3462},
3463teardown:function(){
3464var attaches;
3465if(document.documentMode){
3466attaches=dataPriv.get(this,delegateType)-1;
3467if(!attaches){
3468this.removeEventListener(delegateType,focusMappedHandler);
3469dataPriv.remove(this,delegateType);
3470}else{
3471dataPriv.set(this,delegateType,attaches);
3472}
3473}else{
3474return false;
3475}
3476},
3477_default:function(event){
3478return dataPriv.get(event.target,type);
3479},
3480delegateType:delegateType
3481};
3482jQuery.event.special[delegateType]={
3483setup:function(){
3484var doc=this.ownerDocument||this.document||this,
3485dataHolder=document.documentMode?this:doc,
3486attaches=dataPriv.get(dataHolder,delegateType);
3487if(!attaches){
3488if(document.documentMode){
3489this.addEventListener(delegateType,focusMappedHandler);
3490}else{
3491doc.addEventListener(type,focusMappedHandler,true);
3492}
3493}
3494dataPriv.set(dataHolder,delegateType,(attaches||0)+1);
3495},
3496teardown:function(){
3497var doc=this.ownerDocument||this.document||this,
3498dataHolder=document.documentMode?this:doc,
3499attaches=dataPriv.get(dataHolder,delegateType)-1;
3500if(!attaches){
3501if(document.documentMode){
3502this.removeEventListener(delegateType,focusMappedHandler);
3503}else{
3504doc.removeEventListener(type,focusMappedHandler,true);
3505}
3506dataPriv.remove(dataHolder,delegateType);
3507}else{
3508dataPriv.set(dataHolder,delegateType,attaches);
3509}
3510}
3511};
3512});
3513jQuery.each({
3514mouseenter:"mouseover",
3515mouseleave:"mouseout",
3516pointerenter:"pointerover",
3517pointerleave:"pointerout"
3518},function(orig,fix){
3519jQuery.event.special[orig]={
3520delegateType:fix,
3521bindType:fix,
3522handle:function(event){
3523var ret,
3524target=this,
3525related=event.relatedTarget,
3526handleObj=event.handleObj;
3527if(!related||(related!==target&&!jQuery.contains(target,related))){
3528event.type=handleObj.origType;
3529ret=handleObj.handler.apply(this,arguments);
3530event.type=fix;
3531}
3532return ret;
3533}
3534};
3535});
3536jQuery.fn.extend({
3537on:function(types,selector,data,fn){
3538return on(this,types,selector,data,fn);
3539},
3540one:function(types,selector,data,fn){
3541return on(this,types,selector,data,fn,1);
3542},
3543off:function(types,selector,fn){
3544var handleObj,type;
3545if(types&&types.preventDefault&&types.handleObj){
3546handleObj=types.handleObj;
3547jQuery(types.delegateTarget).off(
3548handleObj.namespace?
3549handleObj.origType+"."+handleObj.namespace:
3550handleObj.origType,
3551handleObj.selector,
3552handleObj.handler
3553);
3554return this;
3555}
3556if(typeof types==="object"){
3557for(type in types){
3558this.off(type,selector,types[type]);
3559}
3560return this;
3561}
3562if(selector===false||typeof selector==="function"){
3563fn=selector;
3564selector=undefined;
3565}
3566if(fn===false){
3567fn=returnFalse;
3568}
3569return this.each(function(){
3570jQuery.event.remove(this,types,fn,selector);
3571});
3572}
3573});
3574var
3575rnoInnerhtml=/<script|<style|<link/i,
3576rchecked=/checked\s*(?:[^=]|=\s*.checked.)/i,
3577rcleanScript=/^\s*<!\[CDATA\[|\]\]>\s*$/g;
3578function manipulationTarget(elem,content){
3579if(nodeName(elem,"table")&&
3580nodeName(content.nodeType!==11?content:content.firstChild,"tr")){
3581return jQuery(elem).children("tbody")[0]||elem;
3582}
3583return elem;
3584}
3585function disableScript(elem){
3586elem.type=(elem.getAttribute("type")!==null)+"/"+elem.type;
3587return elem;
3588}
3589function restoreScript(elem){
3590if((elem.type||"").slice(0,5)==="true/"){
3591elem.type=elem.type.slice(5);
3592}else{
3593elem.removeAttribute("type");
3594}
3595return elem;
3596}
3597function cloneCopyEvent(src,dest){
3598var i,l,type,pdataOld,udataOld,udataCur,events;
3599if(dest.nodeType!==1){
3600return;
3601}
3602if(dataPriv.hasData(src)){
3603pdataOld=dataPriv.get(src);
3604events=pdataOld.events;
3605if(events){
3606dataPriv.remove(dest,"handle events");
3607for(type in events){
3608for(i=0,l=events[type].length;i<l;i++){
3609jQuery.event.add(dest,type,events[type][i]);
3610}
3611}
3612}
3613}
3614if(dataUser.hasData(src)){
3615udataOld=dataUser.access(src);
3616udataCur=jQuery.extend({},udataOld);
3617dataUser.set(dest,udataCur);
3618}
3619}
3620function fixInput(src,dest){
3621var nodeName=dest.nodeName.toLowerCase();
3622if(nodeName==="input"&&rcheckableType.test(src.type)){
3623dest.checked=src.checked;
3624}else if(nodeName==="input"||nodeName==="textarea"){
3625dest.defaultValue=src.defaultValue;
3626}
3627}
3628function domManip(collection,args,callback,ignored){
3629args=flat(args);
3630var fragment,first,scripts,hasScripts,node,doc,
3631i=0,
3632l=collection.length,
3633iNoClone=l-1,
3634value=args[0],
3635valueIsFunction=isFunction(value);
3636if(valueIsFunction||
3637(l>1&&typeof value==="string"&&
3638!support.checkClone&&rchecked.test(value))){
3639return collection.each(function(index){
3640var self=collection.eq(index);
3641if(valueIsFunction){
3642args[0]=value.call(this,index,self.html());
3643}
3644domManip(self,args,callback,ignored);
3645});
3646}
3647if(l){
3648fragment=buildFragment(args,collection[0].ownerDocument,false,collection,ignored);
3649first=fragment.firstChild;
3650if(fragment.childNodes.length===1){
3651fragment=first;
3652}
3653if(first||ignored){
3654scripts=jQuery.map(getAll(fragment,"script"),disableScript);
3655hasScripts=scripts.length;
3656for(;i<l;i++){
3657node=fragment;
3658if(i!==iNoClone){
3659node=jQuery.clone(node,true,true);
3660if(hasScripts){
3661jQuery.merge(scripts,getAll(node,"script"));
3662}
3663}
3664callback.call(collection[i],node,i);
3665}
3666if(hasScripts){
3667doc=scripts[scripts.length-1].ownerDocument;
3668jQuery.map(scripts,restoreScript);
3669for(i=0;i<hasScripts;i++){
3670node=scripts[i];
3671if(rscriptType.test(node.type||"")&&
3672!dataPriv.access(node,"globalEval")&&
3673jQuery.contains(doc,node)){
3674if(node.src&&(node.type||"").toLowerCase()!=="module"){
3675if(jQuery._evalUrl&&!node.noModule){
3676jQuery._evalUrl(node.src,{
3677nonce:node.nonce||node.getAttribute("nonce")
3678},doc);
3679}
3680}else{
3681DOMEval(node.textContent.replace(rcleanScript,""),node,doc);
3682}
3683}
3684}
3685}
3686}
3687}
3688return collection;
3689}
3690function remove(elem,selector,keepData){
3691var node,
3692nodes=selector?jQuery.filter(selector,elem):elem,
3693i=0;
3694for(;(node=nodes[i])!=null;i++){
3695if(!keepData&&node.nodeType===1){
3696jQuery.cleanData(getAll(node));
3697}
3698if(node.parentNode){
3699if(keepData&&isAttached(node)){
3700setGlobalEval(getAll(node,"script"));
3701}
3702node.parentNode.removeChild(node);
3703}
3704}
3705return elem;
3706}
3707jQuery.extend({
3708htmlPrefilter:function(html){
3709return html;
3710},
3711clone:function(elem,dataAndEvents,deepDataAndEvents){
3712var i,l,srcElements,destElements,
3713clone=elem.cloneNode(true),
3714inPage=isAttached(elem);
3715if(!support.noCloneChecked&&(elem.nodeType===1||elem.nodeType===11)&&
3716!jQuery.isXMLDoc(elem)){
3717destElements=getAll(clone);
3718srcElements=getAll(elem);
3719for(i=0,l=srcElements.length;i<l;i++){
3720fixInput(srcElements[i],destElements[i]);
3721}
3722}
3723if(dataAndEvents){
3724if(deepDataAndEvents){
3725srcElements=srcElements||getAll(elem);
3726destElements=destElements||getAll(clone);
3727for(i=0,l=srcElements.length;i<l;i++){
3728cloneCopyEvent(srcElements[i],destElements[i]);
3729}
3730}else{
3731cloneCopyEvent(elem,clone);
3732}
3733}
3734destElements=getAll(clone,"script");
3735if(destElements.length>0){
3736setGlobalEval(destElements,!inPage&&getAll(elem,"script"));
3737}
3738return clone;
3739},
3740cleanData:function(elems){
3741var data,elem,type,
3742special=jQuery.event.special,
3743i=0;
3744for(;(elem=elems[i])!==undefined;i++){
3745if(acceptData(elem)){
3746if((data=elem[dataPriv.expando])){
3747if(data.events){
3748for(type in data.events){
3749if(special[type]){
3750jQuery.event.remove(elem,type);
3751}else{
3752jQuery.removeEvent(elem,type,data.handle);
3753}
3754}
3755}
3756elem[dataPriv.expando]=undefined;
3757}
3758if(elem[dataUser.expando]){
3759elem[dataUser.expando]=undefined;
3760}
3761}
3762}
3763}
3764});
3765jQuery.fn.extend({
3766detach:function(selector){
3767return remove(this,selector,true);
3768},
3769remove:function(selector){
3770return remove(this,selector);
3771},
3772text:function(value){
3773return access(this,function(value){
3774return value===undefined?
3775jQuery.text(this):
3776this.empty().each(function(){
3777if(this.nodeType===1||this.nodeType===11||this.nodeType===9){
3778this.textContent=value;
3779}
3780});
3781},null,value,arguments.length);
3782},
3783append:function(){
3784return domManip(this,arguments,function(elem){
3785if(this.nodeType===1||this.nodeType===11||this.nodeType===9){
3786var target=manipulationTarget(this,elem);
3787target.appendChild(elem);
3788}
3789});
3790},
3791prepend:function(){
3792return domManip(this,arguments,function(elem){
3793if(this.nodeType===1||this.nodeType===11||this.nodeType===9){
3794var target=manipulationTarget(this,elem);
3795target.insertBefore(elem,target.firstChild);
3796}
3797});
3798},
3799before:function(){
3800return domManip(this,arguments,function(elem){
3801if(this.parentNode){
3802this.parentNode.insertBefore(elem,this);
3803}
3804});
3805},
3806after:function(){
3807return domManip(this,arguments,function(elem){
3808if(this.parentNode){
3809this.parentNode.insertBefore(elem,this.nextSibling);
3810}
3811});
3812},
3813empty:function(){
3814var elem,
3815i=0;
3816for(;(elem=this[i])!=null;i++){
3817if(elem.nodeType===1){
3818jQuery.cleanData(getAll(elem,false));
3819elem.textContent="";
3820}
3821}
3822return this;
3823},
3824clone:function(dataAndEvents,deepDataAndEvents){
3825dataAndEvents=dataAndEvents==null?false:dataAndEvents;
3826deepDataAndEvents=deepDataAndEvents==null?dataAndEvents:deepDataAndEvents;
3827return this.map(function(){
3828return jQuery.clone(this,dataAndEvents,deepDataAndEvents);
3829});
3830},
3831html:function(value){
3832return access(this,function(value){
3833var elem=this[0]||{},
3834i=0,
3835l=this.length;
3836if(value===undefined&&elem.nodeType===1){
3837return elem.innerHTML;
3838}
3839if(typeof value==="string"&&!rnoInnerhtml.test(value)&&
3840!wrapMap[(rtagName.exec(value)||["",""])[1].toLowerCase()]){
3841value=jQuery.htmlPrefilter(value);
3842try{
3843for(;i<l;i++){
3844elem=this[i]||{};
3845if(elem.nodeType===1){
3846jQuery.cleanData(getAll(elem,false));
3847elem.innerHTML=value;
3848}
3849}
3850elem=0;
3851}catch(e){}
3852}
3853if(elem){
3854this.empty().append(value);
3855}
3856},null,value,arguments.length);
3857},
3858replaceWith:function(){
3859var ignored=[];
3860return domManip(this,arguments,function(elem){
3861var parent=this.parentNode;
3862if(jQuery.inArray(this,ignored)<0){
3863jQuery.cleanData(getAll(this));
3864if(parent){
3865parent.replaceChild(elem,this);
3866}
3867}
3868},ignored);
3869}
3870});
3871jQuery.each({
3872appendTo:"append",
3873prependTo:"prepend",
3874insertBefore:"before",
3875insertAfter:"after",
3876replaceAll:"replaceWith"
3877},function(name,original){
3878jQuery.fn[name]=function(selector){
3879var elems,
3880ret=[],
3881insert=jQuery(selector),
3882last=insert.length-1,
3883i=0;
3884for(;i<=last;i++){
3885elems=i===last?this:this.clone(true);
3886jQuery(insert[i])[original](elems);
3887push.apply(ret,elems.get());
3888}
3889return this.pushStack(ret);
3890};
3891});
3892var rnumnonpx=new RegExp("^("+pnum+")(?!px)[a-z%]+$","i");
3893var rcustomProp=/^--/;
3894var getStyles=function(elem){
3895var view=elem.ownerDocument.defaultView;
3896if(!view||!view.opener){
3897view=window;
3898}
3899return view.getComputedStyle(elem);
3900};
3901var swap=function(elem,options,callback){
3902var ret,name,
3903old={};
3904for(name in options){
3905old[name]=elem.style[name];
3906elem.style[name]=options[name];
3907}
3908ret=callback.call(elem);
3909for(name in options){
3910elem.style[name]=old[name];
3911}
3912return ret;
3913};
3914var rboxStyle=new RegExp(cssExpand.join("|"),"i");
3915(function(){
3916function computeStyleTests(){
3917if(!div){
3918return;
3919}
3920container.style.cssText="position:absolute;left:-11111px;width:60px;"+
3921"margin-top:1px;padding:0;border:0";
3922div.style.cssText=
3923"position:relative;display:block;box-sizing:border-box;overflow:scroll;"+
3924"margin:auto;border:1px;padding:1px;"+
3925"width:60%;top:1%";
3926documentElement.appendChild(container).appendChild(div);
3927var divStyle=window.getComputedStyle(div);
3928pixelPositionVal=divStyle.top!=="1%";
3929reliableMarginLeftVal=roundPixelMeasures(divStyle.marginLeft)===12;
3930div.style.right="60%";
3931pixelBoxStylesVal=roundPixelMeasures(divStyle.right)===36;
3932boxSizingReliableVal=roundPixelMeasures(divStyle.width)===36;
3933div.style.position="absolute";
3934scrollboxSizeVal=roundPixelMeasures(div.offsetWidth/3)===12;
3935documentElement.removeChild(container);
3936div=null;
3937}
3938function roundPixelMeasures(measure){
3939return Math.round(parseFloat(measure));
3940}
3941var pixelPositionVal,boxSizingReliableVal,scrollboxSizeVal,pixelBoxStylesVal,
3942reliableTrDimensionsVal,reliableMarginLeftVal,
3943container=document.createElement("div"),
3944div=document.createElement("div");
3945if(!div.style){
3946return;
3947}
3948div.style.backgroundClip="content-box";
3949div.cloneNode(true).style.backgroundClip="";
3950support.clearCloneStyle=div.style.backgroundClip==="content-box";
3951jQuery.extend(support,{
3952boxSizingReliable:function(){
3953computeStyleTests();
3954return boxSizingReliableVal;
3955},
3956pixelBoxStyles:function(){
3957computeStyleTests();
3958return pixelBoxStylesVal;
3959},
3960pixelPosition:function(){
3961computeStyleTests();
3962return pixelPositionVal;
3963},
3964reliableMarginLeft:function(){
3965computeStyleTests();
3966return reliableMarginLeftVal;
3967},
3968scrollboxSize:function(){
3969computeStyleTests();
3970return scrollboxSizeVal;
3971},
3972reliableTrDimensions:function(){
3973var table,tr,trChild,trStyle;
3974if(reliableTrDimensionsVal==null){
3975table=document.createElement("table");
3976tr=document.createElement("tr");
3977trChild=document.createElement("div");
3978table.style.cssText="position:absolute;left:-11111px;border-collapse:separate";
3979tr.style.cssText="box-sizing:content-box;border:1px solid";
3980tr.style.height="1px";
3981trChild.style.height="9px";
3982trChild.style.display="block";
3983documentElement
3984.appendChild(table)
3985.appendChild(tr)
3986.appendChild(trChild);
3987trStyle=window.getComputedStyle(tr);
3988reliableTrDimensionsVal=(parseInt(trStyle.height,10)+
3989parseInt(trStyle.borderTopWidth,10)+
3990parseInt(trStyle.borderBottomWidth,10))===tr.offsetHeight;
3991documentElement.removeChild(table);
3992}
3993return reliableTrDimensionsVal;
3994}
3995});
3996})();
3997function curCSS(elem,name,computed){
3998var width,minWidth,maxWidth,ret,
3999isCustomProp=rcustomProp.test(name),
4000style=elem.style;
4001computed=computed||getStyles(elem);
4002if(computed){
4003ret=computed.getPropertyValue(name)||computed[name];
4004if(isCustomProp&&ret){
4005ret=ret.replace(rtrimCSS,"$1")||undefined;
4006}
4007if(ret===""&&!isAttached(elem)){
4008ret=jQuery.style(elem,name);
4009}
4010if(!support.pixelBoxStyles()&&rnumnonpx.test(ret)&&rboxStyle.test(name)){
4011width=style.width;
4012minWidth=style.minWidth;
4013maxWidth=style.maxWidth;
4014style.minWidth=style.maxWidth=style.width=ret;
4015ret=computed.width;
4016style.width=width;
4017style.minWidth=minWidth;
4018style.maxWidth=maxWidth;
4019}
4020}
4021return ret!==undefined?
4022ret+"":
4023ret;
4024}
4025function addGetHookIf(conditionFn,hookFn){
4026return{
4027get:function(){
4028if(conditionFn()){
4029delete this.get;
4030return;
4031}
4032return(this.get=hookFn).apply(this,arguments);
4033}
4034};
4035}
4036var cssPrefixes=["Webkit","Moz","ms"],
4037emptyStyle=document.createElement("div").style,
4038vendorProps={};
4039function vendorPropName(name){
4040var capName=name[0].toUpperCase()+name.slice(1),
4041i=cssPrefixes.length;
4042while(i--){
4043name=cssPrefixes[i]+capName;
4044if(name in emptyStyle){
4045return name;
4046}
4047}
4048}
4049function finalPropName(name){
4050var final=jQuery.cssProps[name]||vendorProps[name];
4051if(final){
4052return final;
4053}
4054if(name in emptyStyle){
4055return name;
4056}
4057return vendorProps[name]=vendorPropName(name)||name;
4058}
4059var
4060rdisplayswap=/^(none|table(?!-c[ea]).+)/,
4061cssShow={position:"absolute",visibility:"hidden",display:"block"},
4062cssNormalTransform={
4063letterSpacing:"0",
4064fontWeight:"400"
4065};
4066function setPositiveNumber(_elem,value,subtract){
4067var matches=rcssNum.exec(value);
4068return matches?
4069Math.max(0,matches[2]-(subtract||0))+(matches[3]||"px"):
4070value;
4071}
4072function boxModelAdjustment(elem,dimension,box,isBorderBox,styles,computedVal){
4073var i=dimension==="width"?1:0,
4074extra=0,
4075delta=0,
4076marginDelta=0;
4077if(box===(isBorderBox?"border":"content")){
4078return 0;
4079}
4080for(;i<4;i+=2){
4081if(box==="margin"){
4082marginDelta+=jQuery.css(elem,box+cssExpand[i],true,styles);
4083}
4084if(!isBorderBox){
4085delta+=jQuery.css(elem,"padding"+cssExpand[i],true,styles);
4086if(box!=="padding"){
4087delta+=jQuery.css(elem,"border"+cssExpand[i]+"Width",true,styles);
4088}else{
4089extra+=jQuery.css(elem,"border"+cssExpand[i]+"Width",true,styles);
4090}
4091}else{
4092if(box==="content"){
4093delta-=jQuery.css(elem,"padding"+cssExpand[i],true,styles);
4094}
4095if(box!=="margin"){
4096delta-=jQuery.css(elem,"border"+cssExpand[i]+"Width",true,styles);
4097}
4098}
4099}
4100if(!isBorderBox&&computedVal>=0){
4101delta+=Math.max(0,Math.ceil(
4102elem["offset"+dimension[0].toUpperCase()+dimension.slice(1)]-
4103computedVal-
4104delta-
4105extra-
41060.5
4107))||0;
4108}
4109return delta+marginDelta;
4110}
4111function getWidthOrHeight(elem,dimension,extra){
4112var styles=getStyles(elem),
4113boxSizingNeeded=!support.boxSizingReliable()||extra,
4114isBorderBox=boxSizingNeeded&&
4115jQuery.css(elem,"boxSizing",false,styles)==="border-box",
4116valueIsBorderBox=isBorderBox,
4117val=curCSS(elem,dimension,styles),
4118offsetProp="offset"+dimension[0].toUpperCase()+dimension.slice(1);
4119if(rnumnonpx.test(val)){
4120if(!extra){
4121return val;
4122}
4123val="auto";
4124}
4125if((!support.boxSizingReliable()&&isBorderBox||
4126!support.reliableTrDimensions()&&nodeName(elem,"tr")||
4127val==="auto"||
4128!parseFloat(val)&&jQuery.css(elem,"display",false,styles)==="inline")&&
4129elem.getClientRects().length){
4130isBorderBox=jQuery.css(elem,"boxSizing",false,styles)==="border-box";
4131valueIsBorderBox=offsetProp in elem;
4132if(valueIsBorderBox){
4133val=elem[offsetProp];
4134}
4135}
4136val=parseFloat(val)||0;
4137return(val+
4138boxModelAdjustment(
4139elem,
4140dimension,
4141extra||(isBorderBox?"border":"content"),
4142valueIsBorderBox,
4143styles,
4144val
4145)
4146)+"px";
4147}
4148jQuery.extend({
4149cssHooks:{
4150opacity:{
4151get:function(elem,computed){
4152if(computed){
4153var ret=curCSS(elem,"opacity");
4154return ret===""?"1":ret;
4155}
4156}
4157}
4158},
4159cssNumber:{
4160animationIterationCount:true,
4161aspectRatio:true,
4162borderImageSlice:true,
4163columnCount:true,
4164flexGrow:true,
4165flexShrink:true,
4166fontWeight:true,
4167gridArea:true,
4168gridColumn:true,
4169gridColumnEnd:true,
4170gridColumnStart:true,
4171gridRow:true,
4172gridRowEnd:true,
4173gridRowStart:true,
4174lineHeight:true,
4175opacity:true,
4176order:true,
4177orphans:true,
4178scale:true,
4179widows:true,
4180zIndex:true,
4181zoom:true,
4182fillOpacity:true,
4183floodOpacity:true,
4184stopOpacity:true,
4185strokeMiterlimit:true,
4186strokeOpacity:true
4187},
4188cssProps:{},
4189style:function(elem,name,value,extra){
4190if(!elem||elem.nodeType===3||elem.nodeType===8||!elem.style){
4191return;
4192}
4193var ret,type,hooks,
4194origName=camelCase(name),
4195isCustomProp=rcustomProp.test(name),
4196style=elem.style;
4197if(!isCustomProp){
4198name=finalPropName(origName);
4199}
4200hooks=jQuery.cssHooks[name]||jQuery.cssHooks[origName];
4201if(value!==undefined){
4202type=typeof value;
4203if(type==="string"&&(ret=rcssNum.exec(value))&&ret[1]){
4204value=adjustCSS(elem,name,ret);
4205type="number";
4206}
4207if(value==null||value!==value){
4208return;
4209}
4210if(type==="number"&&!isCustomProp){
4211value+=ret&&ret[3]||(jQuery.cssNumber[origName]?"":"px");
4212}
4213if(!support.clearCloneStyle&&value===""&&name.indexOf("background")===0){
4214style[name]="inherit";
4215}
4216if(!hooks||!("set"in hooks)||
4217(value=hooks.set(elem,value,extra))!==undefined){
4218if(isCustomProp){
4219style.setProperty(name,value);
4220}else{
4221style[name]=value;
4222}
4223}
4224}else{
4225if(hooks&&"get"in hooks&&
4226(ret=hooks.get(elem,false,extra))!==undefined){
4227return ret;
4228}
4229return style[name];
4230}
4231},
4232css:function(elem,name,extra,styles){
4233var val,num,hooks,
4234origName=camelCase(name),
4235isCustomProp=rcustomProp.test(name);
4236if(!isCustomProp){
4237name=finalPropName(origName);
4238}
4239hooks=jQuery.cssHooks[name]||jQuery.cssHooks[origName];
4240if(hooks&&"get"in hooks){
4241val=hooks.get(elem,true,extra);
4242}
4243if(val===undefined){
4244val=curCSS(elem,name,styles);
4245}
4246if(val==="normal"&&name in cssNormalTransform){
4247val=cssNormalTransform[name];
4248}
4249if(extra===""||extra){
4250num=parseFloat(val);
4251return extra===true||isFinite(num)?num||0:val;
4252}
4253return val;
4254}
4255});
4256jQuery.each(["height","width"],function(_i,dimension){
4257jQuery.cssHooks[dimension]={
4258get:function(elem,computed,extra){
4259if(computed){
4260return rdisplayswap.test(jQuery.css(elem,"display"))&&
4261(!elem.getClientRects().length||!elem.getBoundingClientRect().width)?
4262swap(elem,cssShow,function(){
4263return getWidthOrHeight(elem,dimension,extra);
4264}):
4265getWidthOrHeight(elem,dimension,extra);
4266}
4267},
4268set:function(elem,value,extra){
4269var matches,
4270styles=getStyles(elem),
4271scrollboxSizeBuggy=!support.scrollboxSize()&&
4272styles.position==="absolute",
4273boxSizingNeeded=scrollboxSizeBuggy||extra,
4274isBorderBox=boxSizingNeeded&&
4275jQuery.css(elem,"boxSizing",false,styles)==="border-box",
4276subtract=extra?
4277boxModelAdjustment(
4278elem,
4279dimension,
4280extra,
4281isBorderBox,
4282styles
4283):
42840;
4285if(isBorderBox&&scrollboxSizeBuggy){
4286subtract-=Math.ceil(
4287elem["offset"+dimension[0].toUpperCase()+dimension.slice(1)]-
4288parseFloat(styles[dimension])-
4289boxModelAdjustment(elem,dimension,"border",false,styles)-
42900.5
4291);
4292}
4293if(subtract&&(matches=rcssNum.exec(value))&&
4294(matches[3]||"px")!=="px"){
4295elem.style[dimension]=value;
4296value=jQuery.css(elem,dimension);
4297}
4298return setPositiveNumber(elem,value,subtract);
4299}
4300};
4301});
4302jQuery.cssHooks.marginLeft=addGetHookIf(support.reliableMarginLeft,
4303function(elem,computed){
4304if(computed){
4305return(parseFloat(curCSS(elem,"marginLeft"))||
4306elem.getBoundingClientRect().left-
4307swap(elem,{marginLeft:0},function(){
4308return elem.getBoundingClientRect().left;
4309})
4310)+"px";
4311}
4312}
4313);
4314jQuery.each({
4315margin:"",
4316padding:"",
4317border:"Width"
4318},function(prefix,suffix){
4319jQuery.cssHooks[prefix+suffix]={
4320expand:function(value){
4321var i=0,
4322expanded={},
4323parts=typeof value==="string"?value.split(" "):[value];
4324for(;i<4;i++){
4325expanded[prefix+cssExpand[i]+suffix]=
4326parts[i]||parts[i-2]||parts[0];
4327}
4328return expanded;
4329}
4330};
4331if(prefix!=="margin"){
4332jQuery.cssHooks[prefix+suffix].set=setPositiveNumber;
4333}
4334});
4335jQuery.fn.extend({
4336css:function(name,value){
4337return access(this,function(elem,name,value){
4338var styles,len,
4339map={},
4340i=0;
4341if(Array.isArray(name)){
4342styles=getStyles(elem);
4343len=name.length;
4344for(;i<len;i++){
4345map[name[i]]=jQuery.css(elem,name[i],false,styles);
4346}
4347return map;
4348}
4349return value!==undefined?
4350jQuery.style(elem,name,value):
4351jQuery.css(elem,name);
4352},name,value,arguments.length>1);
4353}
4354});
4355function Tween(elem,options,prop,end,easing){
4356return new Tween.prototype.init(elem,options,prop,end,easing);
4357}
4358jQuery.Tween=Tween;
4359Tween.prototype={
4360constructor:Tween,
4361init:function(elem,options,prop,end,easing,unit){
4362this.elem=elem;
4363this.prop=prop;
4364this.easing=easing||jQuery.easing._default;
4365this.options=options;
4366this.start=this.now=this.cur();
4367this.end=end;
4368this.unit=unit||(jQuery.cssNumber[prop]?"":"px");
4369},
4370cur:function(){
4371var hooks=Tween.propHooks[this.prop];
4372return hooks&&hooks.get?
4373hooks.get(this):
4374Tween.propHooks._default.get(this);
4375},
4376run:function(percent){
4377var eased,
4378hooks=Tween.propHooks[this.prop];
4379if(this.options.duration){
4380this.pos=eased=jQuery.easing[this.easing](
4381percent,this.options.duration*percent,0,1,this.options.duration
4382);
4383}else{
4384this.pos=eased=percent;
4385}
4386this.now=(this.end-this.start)*eased+this.start;
4387if(this.options.step){
4388this.options.step.call(this.elem,this.now,this);
4389}
4390if(hooks&&hooks.set){
4391hooks.set(this);
4392}else{
4393Tween.propHooks._default.set(this);
4394}
4395return this;
4396}
4397};
4398Tween.prototype.init.prototype=Tween.prototype;
4399Tween.propHooks={
4400_default:{
4401get:function(tween){
4402var result;
4403if(tween.elem.nodeType!==1||
4404tween.elem[tween.prop]!=null&&tween.elem.style[tween.prop]==null){
4405return tween.elem[tween.prop];
4406}
4407result=jQuery.css(tween.elem,tween.prop,"");
4408return!result||result==="auto"?0:result;
4409},
4410set:function(tween){
4411if(jQuery.fx.step[tween.prop]){
4412jQuery.fx.step[tween.prop](tween);
4413}else if(tween.elem.nodeType===1&&(
4414jQuery.cssHooks[tween.prop]||
4415tween.elem.style[finalPropName(tween.prop)]!=null)){
4416jQuery.style(tween.elem,tween.prop,tween.now+tween.unit);
4417}else{
4418tween.elem[tween.prop]=tween.now;
4419}
4420}
4421}
4422};
4423Tween.propHooks.scrollTop=Tween.propHooks.scrollLeft={
4424set:function(tween){
4425if(tween.elem.nodeType&&tween.elem.parentNode){
4426tween.elem[tween.prop]=tween.now;
4427}
4428}
4429};
4430jQuery.easing={
4431linear:function(p){
4432return p;
4433},
4434swing:function(p){
4435return 0.5-Math.cos(p*Math.PI)/2;
4436},
4437_default:"swing"
4438};
4439jQuery.fx=Tween.prototype.init;
4440jQuery.fx.step={};
4441var
4442fxNow,inProgress,
4443rfxtypes=/^(?:toggle|show|hide)$/,
4444rrun=/queueHooks$/;
4445function schedule(){
4446if(inProgress){
4447if(document.hidden===false&&window.requestAnimationFrame){
4448window.requestAnimationFrame(schedule);
4449}else{
4450window.setTimeout(schedule,jQuery.fx.interval);
4451}
4452jQuery.fx.tick();
4453}
4454}
4455function createFxNow(){
4456window.setTimeout(function(){
4457fxNow=undefined;
4458});
4459return(fxNow=Date.now());
4460}
4461function genFx(type,includeWidth){
4462var which,
4463i=0,
4464attrs={height:type};
4465includeWidth=includeWidth?1:0;
4466for(;i<4;i+=2-includeWidth){
4467which=cssExpand[i];
4468attrs["margin"+which]=attrs["padding"+which]=type;
4469}
4470if(includeWidth){
4471attrs.opacity=attrs.width=type;
4472}
4473return attrs;
4474}
4475function createTween(value,prop,animation){
4476var tween,
4477collection=(Animation.tweeners[prop]||[]).concat(Animation.tweeners["*"]),
4478index=0,
4479length=collection.length;
4480for(;index<length;index++){
4481if((tween=collection[index].call(animation,prop,value))){
4482return tween;
4483}
4484}
4485}
4486function defaultPrefilter(elem,props,opts){
4487var prop,value,toggle,hooks,oldfire,propTween,restoreDisplay,display,
4488isBox="width"in props||"height"in props,
4489anim=this,
4490orig={},
4491style=elem.style,
4492hidden=elem.nodeType&&isHiddenWithinTree(elem),
4493dataShow=dataPriv.get(elem,"fxshow");
4494if(!opts.queue){
4495hooks=jQuery._queueHooks(elem,"fx");
4496if(hooks.unqueued==null){
4497hooks.unqueued=0;
4498oldfire=hooks.empty.fire;
4499hooks.empty.fire=function(){
4500if(!hooks.unqueued){
4501oldfire();
4502}
4503};
4504}
4505hooks.unqueued++;
4506anim.always(function(){
4507anim.always(function(){
4508hooks.unqueued--;
4509if(!jQuery.queue(elem,"fx").length){
4510hooks.empty.fire();
4511}
4512});
4513});
4514}
4515for(prop in props){
4516value=props[prop];
4517if(rfxtypes.test(value)){
4518delete props[prop];
4519toggle=toggle||value==="toggle";
4520if(value===(hidden?"hide":"show")){
4521if(value==="show"&&dataShow&&dataShow[prop]!==undefined){
4522hidden=true;
4523}else{
4524continue;
4525}
4526}
4527orig[prop]=dataShow&&dataShow[prop]||jQuery.style(elem,prop);
4528}
4529}
4530propTween=!jQuery.isEmptyObject(props);
4531if(!propTween&&jQuery.isEmptyObject(orig)){
4532return;
4533}
4534if(isBox&&elem.nodeType===1){
4535opts.overflow=[style.overflow,style.overflowX,style.overflowY];
4536restoreDisplay=dataShow&&dataShow.display;
4537if(restoreDisplay==null){
4538restoreDisplay=dataPriv.get(elem,"display");
4539}
4540display=jQuery.css(elem,"display");
4541if(display==="none"){
4542if(restoreDisplay){
4543display=restoreDisplay;
4544}else{
4545showHide([elem],true);
4546restoreDisplay=elem.style.display||restoreDisplay;
4547display=jQuery.css(elem,"display");
4548showHide([elem]);
4549}
4550}
4551if(display==="inline"||display==="inline-block"&&restoreDisplay!=null){
4552if(jQuery.css(elem,"float")==="none"){
4553if(!propTween){
4554anim.done(function(){
4555style.display=restoreDisplay;
4556});
4557if(restoreDisplay==null){
4558display=style.display;
4559restoreDisplay=display==="none"?"":display;
4560}
4561}
4562style.display="inline-block";
4563}
4564}
4565}
4566if(opts.overflow){
4567style.overflow="hidden";
4568anim.always(function(){
4569style.overflow=opts.overflow[0];
4570style.overflowX=opts.overflow[1];
4571style.overflowY=opts.overflow[2];
4572});
4573}
4574propTween=false;
4575for(prop in orig){
4576if(!propTween){
4577if(dataShow){
4578if("hidden"in dataShow){
4579hidden=dataShow.hidden;
4580}
4581}else{
4582dataShow=dataPriv.access(elem,"fxshow",{display:restoreDisplay});
4583}
4584if(toggle){
4585dataShow.hidden=!hidden;
4586}
4587if(hidden){
4588showHide([elem],true);
4589}
4590anim.done(function(){
4591if(!hidden){
4592showHide([elem]);
4593}
4594dataPriv.remove(elem,"fxshow");
4595for(prop in orig){
4596jQuery.style(elem,prop,orig[prop]);
4597}
4598});
4599}
4600propTween=createTween(hidden?dataShow[prop]:0,prop,anim);
4601if(!(prop in dataShow)){
4602dataShow[prop]=propTween.start;
4603if(hidden){
4604propTween.end=propTween.start;
4605propTween.start=0;
4606}
4607}
4608}
4609}
4610function propFilter(props,specialEasing){
4611var index,name,easing,value,hooks;
4612for(index in props){
4613name=camelCase(index);
4614easing=specialEasing[name];
4615value=props[index];
4616if(Array.isArray(value)){
4617easing=value[1];
4618value=props[index]=value[0];
4619}
4620if(index!==name){
4621props[name]=value;
4622delete props[index];
4623}
4624hooks=jQuery.cssHooks[name];
4625if(hooks&&"expand"in hooks){
4626value=hooks.expand(value);
4627delete props[name];
4628for(index in value){
4629if(!(index in props)){
4630props[index]=value[index];
4631specialEasing[index]=easing;
4632}
4633}
4634}else{
4635specialEasing[name]=easing;
4636}
4637}
4638}
4639function Animation(elem,properties,options){
4640var result,
4641stopped,
4642index=0,
4643length=Animation.prefilters.length,
4644deferred=jQuery.Deferred().always(function(){
4645delete tick.elem;
4646}),
4647tick=function(){
4648if(stopped){
4649return false;
4650}
4651var currentTime=fxNow||createFxNow(),
4652remaining=Math.max(0,animation.startTime+animation.duration-currentTime),
4653temp=remaining/animation.duration||0,
4654percent=1-temp,
4655index=0,
4656length=animation.tweens.length;
4657for(;index<length;index++){
4658animation.tweens[index].run(percent);
4659}
4660deferred.notifyWith(elem,[animation,percent,remaining]);
4661if(percent<1&&length){
4662return remaining;
4663}
4664if(!length){
4665deferred.notifyWith(elem,[animation,1,0]);
4666}
4667deferred.resolveWith(elem,[animation]);
4668return false;
4669},
4670animation=deferred.promise({
4671elem:elem,
4672props:jQuery.extend({},properties),
4673opts:jQuery.extend(true,{
4674specialEasing:{},
4675easing:jQuery.easing._default
4676},options),
4677originalProperties:properties,
4678originalOptions:options,
4679startTime:fxNow||createFxNow(),
4680duration:options.duration,
4681tweens:[],
4682createTween:function(prop,end){
4683var tween=jQuery.Tween(elem,animation.opts,prop,end,
4684animation.opts.specialEasing[prop]||animation.opts.easing);
4685animation.tweens.push(tween);
4686return tween;
4687},
4688stop:function(gotoEnd){
4689var index=0,
4690length=gotoEnd?animation.tweens.length:0;
4691if(stopped){
4692return this;
4693}
4694stopped=true;
4695for(;index<length;index++){
4696animation.tweens[index].run(1);
4697}
4698if(gotoEnd){
4699deferred.notifyWith(elem,[animation,1,0]);
4700deferred.resolveWith(elem,[animation,gotoEnd]);
4701}else{
4702deferred.rejectWith(elem,[animation,gotoEnd]);
4703}
4704return this;
4705}
4706}),
4707props=animation.props;
4708propFilter(props,animation.opts.specialEasing);
4709for(;index<length;index++){
4710result=Animation.prefilters[index].call(animation,elem,props,animation.opts);
4711if(result){
4712if(isFunction(result.stop)){
4713jQuery._queueHooks(animation.elem,animation.opts.queue).stop=
4714result.stop.bind(result);
4715}
4716return result;
4717}
4718}
4719jQuery.map(props,createTween,animation);
4720if(isFunction(animation.opts.start)){
4721animation.opts.start.call(elem,animation);
4722}
4723animation
4724.progress(animation.opts.progress)
4725.done(animation.opts.done,animation.opts.complete)
4726.fail(animation.opts.fail)
4727.always(animation.opts.always);
4728jQuery.fx.timer(
4729jQuery.extend(tick,{
4730elem:elem,
4731anim:animation,
4732queue:animation.opts.queue
4733})
4734);
4735return animation;
4736}
4737jQuery.Animation=jQuery.extend(Animation,{
4738tweeners:{
4739"*":[function(prop,value){
4740var tween=this.createTween(prop,value);
4741adjustCSS(tween.elem,prop,rcssNum.exec(value),tween);
4742return tween;
4743}]
4744},
4745tweener:function(props,callback){
4746if(isFunction(props)){
4747callback=props;
4748props=["*"];
4749}else{
4750props=props.match(rnothtmlwhite);
4751}
4752var prop,
4753index=0,
4754length=props.length;
4755for(;index<length;index++){
4756prop=props[index];
4757Animation.tweeners[prop]=Animation.tweeners[prop]||[];
4758Animation.tweeners[prop].unshift(callback);
4759}
4760},
4761prefilters:[defaultPrefilter],
4762prefilter:function(callback,prepend){
4763if(prepend){
4764Animation.prefilters.unshift(callback);
4765}else{
4766Animation.prefilters.push(callback);
4767}
4768}
4769});
4770jQuery.speed=function(speed,easing,fn){
4771var opt=speed&&typeof speed==="object"?jQuery.extend({},speed):{
4772complete:fn||!fn&&easing||
4773isFunction(speed)&&speed,
4774duration:speed,
4775easing:fn&&easing||easing&&!isFunction(easing)&&easing
4776};
4777if(jQuery.fx.off){
4778opt.duration=0;
4779}else{
4780if(typeof opt.duration!=="number"){
4781if(opt.duration in jQuery.fx.speeds){
4782opt.duration=jQuery.fx.speeds[opt.duration];
4783}else{
4784opt.duration=jQuery.fx.speeds._default;
4785}
4786}
4787}
4788if(opt.queue==null||opt.queue===true){
4789opt.queue="fx";
4790}
4791opt.old=opt.complete;
4792opt.complete=function(){
4793if(isFunction(opt.old)){
4794opt.old.call(this);
4795}
4796if(opt.queue){
4797jQuery.dequeue(this,opt.queue);
4798}
4799};
4800return opt;
4801};
4802jQuery.fn.extend({
4803fadeTo:function(speed,to,easing,callback){
4804return this.filter(isHiddenWithinTree).css("opacity",0).show()
4805.end().animate({opacity:to},speed,easing,callback);
4806},
4807animate:function(prop,speed,easing,callback){
4808var empty=jQuery.isEmptyObject(prop),
4809optall=jQuery.speed(speed,easing,callback),
4810doAnimation=function(){
4811var anim=Animation(this,jQuery.extend({},prop),optall);
4812if(empty||dataPriv.get(this,"finish")){
4813anim.stop(true);
4814}
4815};
4816doAnimation.finish=doAnimation;
4817return empty||optall.queue===false?
4818this.each(doAnimation):
4819this.queue(optall.queue,doAnimation);
4820},
4821stop:function(type,clearQueue,gotoEnd){
4822var stopQueue=function(hooks){
4823var stop=hooks.stop;
4824delete hooks.stop;
4825stop(gotoEnd);
4826};
4827if(typeof type!=="string"){
4828gotoEnd=clearQueue;
4829clearQueue=type;
4830type=undefined;
4831}
4832if(clearQueue){
4833this.queue(type||"fx",[]);
4834}
4835return this.each(function(){
4836var dequeue=true,
4837index=type!=null&&type+"queueHooks",
4838timers=jQuery.timers,
4839data=dataPriv.get(this);
4840if(index){
4841if(data[index]&&data[index].stop){
4842stopQueue(data[index]);
4843}
4844}else{
4845for(index in data){
4846if(data[index]&&data[index].stop&&rrun.test(index)){
4847stopQueue(data[index]);
4848}
4849}
4850}
4851for(index=timers.length;index--;){
4852if(timers[index].elem===this&&
4853(type==null||timers[index].queue===type)){
4854timers[index].anim.stop(gotoEnd);
4855dequeue=false;
4856timers.splice(index,1);
4857}
4858}
4859if(dequeue||!gotoEnd){
4860jQuery.dequeue(this,type);
4861}
4862});
4863},
4864finish:function(type){
4865if(type!==false){
4866type=type||"fx";
4867}
4868return this.each(function(){
4869var index,
4870data=dataPriv.get(this),
4871queue=data[type+"queue"],
4872hooks=data[type+"queueHooks"],
4873timers=jQuery.timers,
4874length=queue?queue.length:0;
4875data.finish=true;
4876jQuery.queue(this,type,[]);
4877if(hooks&&hooks.stop){
4878hooks.stop.call(this,true);
4879}
4880for(index=timers.length;index--;){
4881if(timers[index].elem===this&&timers[index].queue===type){
4882timers[index].anim.stop(true);
4883timers.splice(index,1);
4884}
4885}
4886for(index=0;index<length;index++){
4887if(queue[index]&&queue[index].finish){
4888queue[index].finish.call(this);
4889}
4890}
4891delete data.finish;
4892});
4893}
4894});
4895jQuery.each(["toggle","show","hide"],function(_i,name){
4896var cssFn=jQuery.fn[name];
4897jQuery.fn[name]=function(speed,easing,callback){
4898return speed==null||typeof speed==="boolean"?
4899cssFn.apply(this,arguments):
4900this.animate(genFx(name,true),speed,easing,callback);
4901};
4902});
4903jQuery.each({
4904slideDown:genFx("show"),
4905slideUp:genFx("hide"),
4906slideToggle:genFx("toggle"),
4907fadeIn:{opacity:"show"},
4908fadeOut:{opacity:"hide"},
4909fadeToggle:{opacity:"toggle"}
4910},function(name,props){
4911jQuery.fn[name]=function(speed,easing,callback){
4912return this.animate(props,speed,easing,callback);
4913};
4914});
4915jQuery.timers=[];
4916jQuery.fx.tick=function(){
4917var timer,
4918i=0,
4919timers=jQuery.timers;
4920fxNow=Date.now();
4921for(;i<timers.length;i++){
4922timer=timers[i];
4923if(!timer()&&timers[i]===timer){
4924timers.splice(i--,1);
4925}
4926}
4927if(!timers.length){
4928jQuery.fx.stop();
4929}
4930fxNow=undefined;
4931};
4932jQuery.fx.timer=function(timer){
4933jQuery.timers.push(timer);
4934jQuery.fx.start();
4935};
4936jQuery.fx.interval=13;
4937jQuery.fx.start=function(){
4938if(inProgress){
4939return;
4940}
4941inProgress=true;
4942schedule();
4943};
4944jQuery.fx.stop=function(){
4945inProgress=null;
4946};
4947jQuery.fx.speeds={
4948slow:600,
4949fast:200,
4950_default:400
4951};
4952jQuery.fn.delay=function(time,type){
4953time=jQuery.fx?jQuery.fx.speeds[time]||time:time;
4954type=type||"fx";
4955return this.queue(type,function(next,hooks){
4956var timeout=window.setTimeout(next,time);
4957hooks.stop=function(){
4958window.clearTimeout(timeout);
4959};
4960});
4961};
4962(function(){
4963var input=document.createElement("input"),
4964select=document.createElement("select"),
4965opt=select.appendChild(document.createElement("option"));
4966input.type="checkbox";
4967support.checkOn=input.value!=="";
4968support.optSelected=opt.selected;
4969input=document.createElement("input");
4970input.value="t";
4971input.type="radio";
4972support.radioValue=input.value==="t";
4973})();
4974var boolHook,
4975attrHandle=jQuery.expr.attrHandle;
4976jQuery.fn.extend({
4977attr:function(name,value){
4978return access(this,jQuery.attr,name,value,arguments.length>1);
4979},
4980removeAttr:function(name){
4981return this.each(function(){
4982jQuery.removeAttr(this,name);
4983});
4984}
4985});
4986jQuery.extend({
4987attr:function(elem,name,value){
4988var ret,hooks,
4989nType=elem.nodeType;
4990if(nType===3||nType===8||nType===2){
4991return;
4992}
4993if(typeof elem.getAttribute==="undefined"){
4994return jQuery.prop(elem,name,value);
4995}
4996if(nType!==1||!jQuery.isXMLDoc(elem)){
4997hooks=jQuery.attrHooks[name.toLowerCase()]||
4998(jQuery.expr.match.bool.test(name)?boolHook:undefined);
4999}
5000if(value!==undefined){
5001if(value===null){
5002jQuery.removeAttr(elem,name);
5003return;
5004}
5005if(hooks&&"set"in hooks&&
5006(ret=hooks.set(elem,value,name))!==undefined){
5007return ret;
5008}
5009elem.setAttribute(name,value+"");
5010return value;
5011}
5012if(hooks&&"get"in hooks&&(ret=hooks.get(elem,name))!==null){
5013return ret;
5014}
5015ret=jQuery.find.attr(elem,name);
5016return ret==null?undefined:ret;
5017},
5018attrHooks:{
5019type:{
5020set:function(elem,value){
5021if(!support.radioValue&&value==="radio"&&
5022nodeName(elem,"input")){
5023var val=elem.value;
5024elem.setAttribute("type",value);
5025if(val){
5026elem.value=val;
5027}
5028return value;
5029}
5030}
5031}
5032},
5033removeAttr:function(elem,value){
5034var name,
5035i=0,
5036attrNames=value&&value.match(rnothtmlwhite);
5037if(attrNames&&elem.nodeType===1){
5038while((name=attrNames[i++])){
5039elem.removeAttribute(name);
5040}
5041}
5042}
5043});
5044boolHook={
5045set:function(elem,value,name){
5046if(value===false){
5047jQuery.removeAttr(elem,name);
5048}else{
5049elem.setAttribute(name,name);
5050}
5051return name;
5052}
5053};
5054jQuery.each(jQuery.expr.match.bool.source.match(/\w+/g),function(_i,name){
5055var getter=attrHandle[name]||jQuery.find.attr;
5056attrHandle[name]=function(elem,name,isXML){
5057var ret,handle,
5058lowercaseName=name.toLowerCase();
5059if(!isXML){
5060handle=attrHandle[lowercaseName];
5061attrHandle[lowercaseName]=ret;
5062ret=getter(elem,name,isXML)!=null?
5063lowercaseName:
5064null;
5065attrHandle[lowercaseName]=handle;
5066}
5067return ret;
5068};
5069});
5070var rfocusable=/^(?:input|select|textarea|button)$/i,
5071rclickable=/^(?:a|area)$/i;
5072jQuery.fn.extend({
5073prop:function(name,value){
5074return access(this,jQuery.prop,name,value,arguments.length>1);
5075},
5076removeProp:function(name){
5077return this.each(function(){
5078delete this[jQuery.propFix[name]||name];
5079});
5080}
5081});
5082jQuery.extend({
5083prop:function(elem,name,value){
5084var ret,hooks,
5085nType=elem.nodeType;
5086if(nType===3||nType===8||nType===2){
5087return;
5088}
5089if(nType!==1||!jQuery.isXMLDoc(elem)){
5090name=jQuery.propFix[name]||name;
5091hooks=jQuery.propHooks[name];
5092}
5093if(value!==undefined){
5094if(hooks&&"set"in hooks&&
5095(ret=hooks.set(elem,value,name))!==undefined){
5096return ret;
5097}
5098return(elem[name]=value);
5099}
5100if(hooks&&"get"in hooks&&(ret=hooks.get(elem,name))!==null){
5101return ret;
5102}
5103return elem[name];
5104},
5105propHooks:{
5106tabIndex:{
5107get:function(elem){
5108var tabindex=jQuery.find.attr(elem,"tabindex");
5109if(tabindex){
5110return parseInt(tabindex,10);
5111}
5112if(
5113rfocusable.test(elem.nodeName)||
5114rclickable.test(elem.nodeName)&&
5115elem.href
5116){
5117return 0;
5118}
5119return-1;
5120}
5121}
5122},
5123propFix:{
5124"for":"htmlFor",
5125"class":"className"
5126}
5127});
5128if(!support.optSelected){
5129jQuery.propHooks.selected={
5130get:function(elem){
5131var parent=elem.parentNode;
5132if(parent&&parent.parentNode){
5133parent.parentNode.selectedIndex;
5134}
5135return null;
5136},
5137set:function(elem){
5138var parent=elem.parentNode;
5139if(parent){
5140parent.selectedIndex;
5141if(parent.parentNode){
5142parent.parentNode.selectedIndex;
5143}
5144}
5145}
5146};
5147}
5148jQuery.each([
5149"tabIndex",
5150"readOnly",
5151"maxLength",
5152"cellSpacing",
5153"cellPadding",
5154"rowSpan",
5155"colSpan",
5156"useMap",
5157"frameBorder",
5158"contentEditable"
5159],function(){
5160jQuery.propFix[this.toLowerCase()]=this;
5161});
5162function stripAndCollapse(value){
5163var tokens=value.match(rnothtmlwhite)||[];
5164return tokens.join(" ");
5165}
5166function getClass(elem){
5167return elem.getAttribute&&elem.getAttribute("class")||"";
5168}
5169function classesToArray(value){
5170if(Array.isArray(value)){
5171return value;
5172}
5173if(typeof value==="string"){
5174return value.match(rnothtmlwhite)||[];
5175}
5176return[];
5177}
5178jQuery.fn.extend({
5179addClass:function(value){
5180var classNames,cur,curValue,className,i,finalValue;
5181if(isFunction(value)){
5182return this.each(function(j){
5183jQuery(this).addClass(value.call(this,j,getClass(this)));
5184});
5185}
5186classNames=classesToArray(value);
5187if(classNames.length){
5188return this.each(function(){
5189curValue=getClass(this);
5190cur=this.nodeType===1&&(" "+stripAndCollapse(curValue)+" ");
5191if(cur){
5192for(i=0;i<classNames.length;i++){
5193className=classNames[i];
5194if(cur.indexOf(" "+className+" ")<0){
5195cur+=className+" ";
5196}
5197}
5198finalValue=stripAndCollapse(cur);
5199if(curValue!==finalValue){
5200this.setAttribute("class",finalValue);
5201}
5202}
5203});
5204}
5205return this;
5206},
5207removeClass:function(value){
5208var classNames,cur,curValue,className,i,finalValue;
5209if(isFunction(value)){
5210return this.each(function(j){
5211jQuery(this).removeClass(value.call(this,j,getClass(this)));
5212});
5213}
5214if(!arguments.length){
5215return this.attr("class","");
5216}
5217classNames=classesToArray(value);
5218if(classNames.length){
5219return this.each(function(){
5220curValue=getClass(this);
5221cur=this.nodeType===1&&(" "+stripAndCollapse(curValue)+" ");
5222if(cur){
5223for(i=0;i<classNames.length;i++){
5224className=classNames[i];
5225while(cur.indexOf(" "+className+" ")>-1){
5226cur=cur.replace(" "+className+" "," ");
5227}
5228}
5229finalValue=stripAndCollapse(cur);
5230if(curValue!==finalValue){
5231this.setAttribute("class",finalValue);
5232}
5233}
5234});
5235}
5236return this;
5237},
5238toggleClass:function(value,stateVal){
5239var classNames,className,i,self,
5240type=typeof value,
5241isValidValue=type==="string"||Array.isArray(value);
5242if(isFunction(value)){
5243return this.each(function(i){
5244jQuery(this).toggleClass(
5245value.call(this,i,getClass(this),stateVal),
5246stateVal
5247);
5248});
5249}
5250if(typeof stateVal==="boolean"&&isValidValue){
5251return stateVal?this.addClass(value):this.removeClass(value);
5252}
5253classNames=classesToArray(value);
5254return this.each(function(){
5255if(isValidValue){
5256self=jQuery(this);
5257for(i=0;i<classNames.length;i++){
5258className=classNames[i];
5259if(self.hasClass(className)){
5260self.removeClass(className);
5261}else{
5262self.addClass(className);
5263}
5264}
5265}else if(value===undefined||type==="boolean"){
5266className=getClass(this);
5267if(className){
5268dataPriv.set(this,"__className__",className);
5269}
5270if(this.setAttribute){
5271this.setAttribute("class",
5272className||value===false?
5273"":
5274dataPriv.get(this,"__className__")||""
5275);
5276}
5277}
5278});
5279},
5280hasClass:function(selector){
5281var className,elem,
5282i=0;
5283className=" "+selector+" ";
5284while((elem=this[i++])){
5285if(elem.nodeType===1&&
5286(" "+stripAndCollapse(getClass(elem))+" ").indexOf(className)>-1){
5287return true;
5288}
5289}
5290return false;
5291}
5292});
5293var rreturn=/\r/g;
5294jQuery.fn.extend({
5295val:function(value){
5296var hooks,ret,valueIsFunction,
5297elem=this[0];
5298if(!arguments.length){
5299if(elem){
5300hooks=jQuery.valHooks[elem.type]||
5301jQuery.valHooks[elem.nodeName.toLowerCase()];
5302if(hooks&&
5303"get"in hooks&&
5304(ret=hooks.get(elem,"value"))!==undefined
5305){
5306return ret;
5307}
5308ret=elem.value;
5309if(typeof ret==="string"){
5310return ret.replace(rreturn,"");
5311}
5312return ret==null?"":ret;
5313}
5314return;
5315}
5316valueIsFunction=isFunction(value);
5317return this.each(function(i){
5318var val;
5319if(this.nodeType!==1){
5320return;
5321}
5322if(valueIsFunction){
5323val=value.call(this,i,jQuery(this).val());
5324}else{
5325val=value;
5326}
5327if(val==null){
5328val="";
5329}else if(typeof val==="number"){
5330val+="";
5331}else if(Array.isArray(val)){
5332val=jQuery.map(val,function(value){
5333return value==null?"":value+"";
5334});
5335}
5336hooks=jQuery.valHooks[this.type]||jQuery.valHooks[this.nodeName.toLowerCase()];
5337if(!hooks||!("set"in hooks)||hooks.set(this,val,"value")===undefined){
5338this.value=val;
5339}
5340});
5341}
5342});
5343jQuery.extend({
5344valHooks:{
5345option:{
5346get:function(elem){
5347var val=jQuery.find.attr(elem,"value");
5348return val!=null?
5349val:
5350stripAndCollapse(jQuery.text(elem));
5351}
5352},
5353select:{
5354get:function(elem){
5355var value,option,i,
5356options=elem.options,
5357index=elem.selectedIndex,
5358one=elem.type==="select-one",
5359values=one?null:[],
5360max=one?index+1:options.length;
5361if(index<0){
5362i=max;
5363}else{
5364i=one?index:0;
5365}
5366for(;i<max;i++){
5367option=options[i];
5368if((option.selected||i===index)&&
5369!option.disabled&&
5370(!option.parentNode.disabled||
5371!nodeName(option.parentNode,"optgroup"))){
5372value=jQuery(option).val();
5373if(one){
5374return value;
5375}
5376values.push(value);
5377}
5378}
5379return values;
5380},
5381set:function(elem,value){
5382var optionSet,option,
5383options=elem.options,
5384values=jQuery.makeArray(value),
5385i=options.length;
5386while(i--){
5387option=options[i];
5388if(option.selected=
5389jQuery.inArray(jQuery.valHooks.option.get(option),values)>-1
5390){
5391optionSet=true;
5392}
5393}
5394if(!optionSet){
5395elem.selectedIndex=-1;
5396}
5397return values;
5398}
5399}
5400}
5401});
5402jQuery.each(["radio","checkbox"],function(){
5403jQuery.valHooks[this]={
5404set:function(elem,value){
5405if(Array.isArray(value)){
5406return(elem.checked=jQuery.inArray(jQuery(elem).val(),value)>-1);
5407}
5408}
5409};
5410if(!support.checkOn){
5411jQuery.valHooks[this].get=function(elem){
5412return elem.getAttribute("value")===null?"on":elem.value;
5413};
5414}
5415});
5416var location=window.location;
5417var nonce={guid:Date.now()};
5418var rquery=(/\?/);
5419jQuery.parseXML=function(data){
5420var xml,parserErrorElem;
5421if(!data||typeof data!=="string"){
5422return null;
5423}
5424try{
5425xml=(new window.DOMParser()).parseFromString(data,"text/xml");
5426}catch(e){}
5427parserErrorElem=xml&&xml.getElementsByTagName("parsererror")[0];
5428if(!xml||parserErrorElem){
5429jQuery.error("Invalid XML: "+(
5430parserErrorElem?
5431jQuery.map(parserErrorElem.childNodes,function(el){
5432return el.textContent;
5433}).join("\n"):
5434data
5435));
5436}
5437return xml;
5438};
5439var rfocusMorph=/^(?:focusinfocus|focusoutblur)$/,
5440stopPropagationCallback=function(e){
5441e.stopPropagation();
5442};
5443jQuery.extend(jQuery.event,{
5444trigger:function(event,data,elem,onlyHandlers){
5445var i,cur,tmp,bubbleType,ontype,handle,special,lastElement,
5446eventPath=[elem||document],
5447type=hasOwn.call(event,"type")?event.type:event,
5448namespaces=hasOwn.call(event,"namespace")?event.namespace.split("."):[];
5449cur=lastElement=tmp=elem=elem||document;
5450if(elem.nodeType===3||elem.nodeType===8){
5451return;
5452}
5453if(rfocusMorph.test(type+jQuery.event.triggered)){
5454return;
5455}
5456if(type.indexOf(".")>-1){
5457namespaces=type.split(".");
5458type=namespaces.shift();
5459namespaces.sort();
5460}
5461ontype=type.indexOf(":")<0&&"on"+type;
5462event=event[jQuery.expando]?
5463event:
5464new jQuery.Event(type,typeof event==="object"&&event);
5465event.isTrigger=onlyHandlers?2:3;
5466event.namespace=namespaces.join(".");
5467event.rnamespace=event.namespace?
5468new RegExp("(^|\\.)"+namespaces.join("\\.(?:.*\\.|)")+"(\\.|$)"):
5469null;
5470event.result=undefined;
5471if(!event.target){
5472event.target=elem;
5473}
5474data=data==null?
5475[event]:
5476jQuery.makeArray(data,[event]);
5477special=jQuery.event.special[type]||{};
5478if(!onlyHandlers&&special.trigger&&special.trigger.apply(elem,data)===false){
5479return;
5480}
5481if(!onlyHandlers&&!special.noBubble&&!isWindow(elem)){
5482bubbleType=special.delegateType||type;
5483if(!rfocusMorph.test(bubbleType+type)){
5484cur=cur.parentNode;
5485}
5486for(;cur;cur=cur.parentNode){
5487eventPath.push(cur);
5488tmp=cur;
5489}
5490if(tmp===(elem.ownerDocument||document)){
5491eventPath.push(tmp.defaultView||tmp.parentWindow||window);
5492}
5493}
5494i=0;
5495while((cur=eventPath[i++])&&!event.isPropagationStopped()){
5496lastElement=cur;
5497event.type=i>1?
5498bubbleType:
5499special.bindType||type;
5500handle=(dataPriv.get(cur,"events")||Object.create(null))[event.type]&&
5501dataPriv.get(cur,"handle");
5502if(handle){
5503handle.apply(cur,data);
5504}
5505handle=ontype&&cur[ontype];
5506if(handle&&handle.apply&&acceptData(cur)){
5507event.result=handle.apply(cur,data);
5508if(event.result===false){
5509event.preventDefault();
5510}
5511}
5512}
5513event.type=type;
5514if(!onlyHandlers&&!event.isDefaultPrevented()){
5515if((!special._default||
5516special._default.apply(eventPath.pop(),data)===false)&&
5517acceptData(elem)){
5518if(ontype&&isFunction(elem[type])&&!isWindow(elem)){
5519tmp=elem[ontype];
5520if(tmp){
5521elem[ontype]=null;
5522}
5523jQuery.event.triggered=type;
5524if(event.isPropagationStopped()){
5525lastElement.addEventListener(type,stopPropagationCallback);
5526}
5527elem[type]();
5528if(event.isPropagationStopped()){
5529lastElement.removeEventListener(type,stopPropagationCallback);
5530}
5531jQuery.event.triggered=undefined;
5532if(tmp){
5533elem[ontype]=tmp;
5534}
5535}
5536}
5537}
5538return event.result;
5539},
5540simulate:function(type,elem,event){
5541var e=jQuery.extend(
5542new jQuery.Event(),
5543event,
5544{
5545type:type,
5546isSimulated:true
5547}
5548);
5549jQuery.event.trigger(e,null,elem);
5550}
5551});
5552jQuery.fn.extend({
5553trigger:function(type,data){
5554return this.each(function(){
5555jQuery.event.trigger(type,data,this);
5556});
5557},
5558triggerHandler:function(type,data){
5559var elem=this[0];
5560if(elem){
5561return jQuery.event.trigger(type,data,elem,true);
5562}
5563}
5564});
5565var
5566rbracket=/\[\]$/,
5567rCRLF=/\r?\n/g,
5568rsubmitterTypes=/^(?:submit|button|image|reset|file)$/i,
5569rsubmittable=/^(?:input|select|textarea|keygen)/i;
5570function buildParams(prefix,obj,traditional,add){
5571var name;
5572if(Array.isArray(obj)){
5573jQuery.each(obj,function(i,v){
5574if(traditional||rbracket.test(prefix)){
5575add(prefix,v);
5576}else{
5577buildParams(
5578prefix+"["+(typeof v==="object"&&v!=null?i:"")+"]",
5579v,
5580traditional,
5581add
5582);
5583}
5584});
5585}else if(!traditional&&toType(obj)==="object"){
5586for(name in obj){
5587buildParams(prefix+"["+name+"]",obj[name],traditional,add);
5588}
5589}else{
5590add(prefix,obj);
5591}
5592}
5593jQuery.param=function(a,traditional){
5594var prefix,
5595s=[],
5596add=function(key,valueOrFunction){
5597var value=isFunction(valueOrFunction)?
5598valueOrFunction():
5599valueOrFunction;
5600s[s.length]=encodeURIComponent(key)+"="+
5601encodeURIComponent(value==null?"":value);
5602};
5603if(a==null){
5604return"";
5605}
5606if(Array.isArray(a)||(a.jquery&&!jQuery.isPlainObject(a))){
5607jQuery.each(a,function(){
5608add(this.name,this.value);
5609});
5610}else{
5611for(prefix in a){
5612buildParams(prefix,a[prefix],traditional,add);
5613}
5614}
5615return s.join("&");
5616};
5617jQuery.fn.extend({
5618serialize:function(){
5619return jQuery.param(this.serializeArray());
5620},
5621serializeArray:function(){
5622return this.map(function(){
5623var elements=jQuery.prop(this,"elements");
5624return elements?jQuery.makeArray(elements):this;
5625}).filter(function(){
5626var type=this.type;
5627return this.name&&!jQuery(this).is(":disabled")&&
5628rsubmittable.test(this.nodeName)&&!rsubmitterTypes.test(type)&&
5629(this.checked||!rcheckableType.test(type));
5630}).map(function(_i,elem){
5631var val=jQuery(this).val();
5632if(val==null){
5633return null;
5634}
5635if(Array.isArray(val)){
5636return jQuery.map(val,function(val){
5637return{name:elem.name,value:val.replace(rCRLF,"\r\n")};
5638});
5639}
5640return{name:elem.name,value:val.replace(rCRLF,"\r\n")};
5641}).get();
5642}
5643});
5644var
5645r20=/%20/g,
5646rhash=/#.*$/,
5647rantiCache=/([?&])_=[^&]*/,
5648rheaders=/^(.*?):[ \t]*([^\r\n]*)$/mg,
5649rlocalProtocol=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,
5650rnoContent=/^(?:GET|HEAD)$/,
5651rprotocol=/^\/\//,
5652prefilters={},
5653transports={},
5654allTypes="*/".concat("*"),
5655originAnchor=document.createElement("a");
5656originAnchor.href=location.href;
5657function addToPrefiltersOrTransports(structure){
5658return function(dataTypeExpression,func){
5659if(typeof dataTypeExpression!=="string"){
5660func=dataTypeExpression;
5661dataTypeExpression="*";
5662}
5663var dataType,
5664i=0,
5665dataTypes=dataTypeExpression.toLowerCase().match(rnothtmlwhite)||[];
5666if(isFunction(func)){
5667while((dataType=dataTypes[i++])){
5668if(dataType[0]==="+"){
5669dataType=dataType.slice(1)||"*";
5670(structure[dataType]=structure[dataType]||[]).unshift(func);
5671}else{
5672(structure[dataType]=structure[dataType]||[]).push(func);
5673}
5674}
5675}
5676};
5677}
5678function inspectPrefiltersOrTransports(structure,options,originalOptions,jqXHR){
5679var inspected={},
5680seekingTransport=(structure===transports);
5681function inspect(dataType){
5682var selected;
5683inspected[dataType]=true;
5684jQuery.each(structure[dataType]||[],function(_,prefilterOrFactory){
5685var dataTypeOrTransport=prefilterOrFactory(options,originalOptions,jqXHR);
5686if(typeof dataTypeOrTransport==="string"&&
5687!seekingTransport&&!inspected[dataTypeOrTransport]){
5688options.dataTypes.unshift(dataTypeOrTransport);
5689inspect(dataTypeOrTransport);
5690return false;
5691}else if(seekingTransport){
5692return!(selected=dataTypeOrTransport);
5693}
5694});
5695return selected;
5696}
5697return inspect(options.dataTypes[0])||!inspected["*"]&&inspect("*");
5698}
5699function ajaxExtend(target,src){
5700var key,deep,
5701flatOptions=jQuery.ajaxSettings.flatOptions||{};
5702for(key in src){
5703if(src[key]!==undefined){
5704(flatOptions[key]?target:(deep||(deep={})))[key]=src[key];
5705}
5706}
5707if(deep){
5708jQuery.extend(true,target,deep);
5709}
5710return target;
5711}
5712function ajaxHandleResponses(s,jqXHR,responses){
5713var ct,type,finalDataType,firstDataType,
5714contents=s.contents,
5715dataTypes=s.dataTypes;
5716while(dataTypes[0]==="*"){
5717dataTypes.shift();
5718if(ct===undefined){
5719ct=s.mimeType||jqXHR.getResponseHeader("Content-Type");
5720}
5721}
5722if(ct){
5723for(type in contents){
5724if(contents[type]&&contents[type].test(ct)){
5725dataTypes.unshift(type);
5726break;
5727}
5728}
5729}
5730if(dataTypes[0]in responses){
5731finalDataType=dataTypes[0];
5732}else{
5733for(type in responses){
5734if(!dataTypes[0]||s.converters[type+" "+dataTypes[0]]){
5735finalDataType=type;
5736break;
5737}
5738if(!firstDataType){
5739firstDataType=type;
5740}
5741}
5742finalDataType=finalDataType||firstDataType;
5743}
5744if(finalDataType){
5745if(finalDataType!==dataTypes[0]){
5746dataTypes.unshift(finalDataType);
5747}
5748return responses[finalDataType];
5749}
5750}
5751function ajaxConvert(s,response,jqXHR,isSuccess){
5752var conv2,current,conv,tmp,prev,
5753converters={},
5754dataTypes=s.dataTypes.slice();
5755if(dataTypes[1]){
5756for(conv in s.converters){
5757converters[conv.toLowerCase()]=s.converters[conv];
5758}
5759}
5760current=dataTypes.shift();
5761while(current){
5762if(s.responseFields[current]){
5763jqXHR[s.responseFields[current]]=response;
5764}
5765if(!prev&&isSuccess&&s.dataFilter){
5766response=s.dataFilter(response,s.dataType);
5767}
5768prev=current;
5769current=dataTypes.shift();
5770if(current){
5771if(current==="*"){
5772current=prev;
5773}else if(prev!=="*"&&prev!==current){
5774conv=converters[prev+" "+current]||converters["* "+current];
5775if(!conv){
5776for(conv2 in converters){
5777tmp=conv2.split(" ");
5778if(tmp[1]===current){
5779conv=converters[prev+" "+tmp[0]]||
5780converters["* "+tmp[0]];
5781if(conv){
5782if(conv===true){
5783conv=converters[conv2];
5784}else if(converters[conv2]!==true){
5785current=tmp[0];
5786dataTypes.unshift(tmp[1]);
5787}
5788break;
5789}
5790}
5791}
5792}
5793if(conv!==true){
5794if(conv&&s.throws){
5795response=conv(response);
5796}else{
5797try{
5798response=conv(response);
5799}catch(e){
5800return{
5801state:"parsererror",
5802error:conv?e:"No conversion from "+prev+" to "+current
5803};
5804}
5805}
5806}
5807}
5808}
5809}
5810return{state:"success",data:response};
5811}
5812jQuery.extend({
5813active:0,
5814lastModified:{},
5815etag:{},
5816ajaxSettings:{
5817url:location.href,
5818type:"GET",
5819isLocal:rlocalProtocol.test(location.protocol),
5820global:true,
5821processData:true,
5822async:true,
5823contentType:"application/x-www-form-urlencoded; charset=UTF-8",
5824accepts:{
5825"*":allTypes,
5826text:"text/plain",
5827html:"text/html",
5828xml:"application/xml, text/xml",
5829json:"application/json, text/javascript"
5830},
5831contents:{
5832xml:/\bxml\b/,
5833html:/\bhtml/,
5834json:/\bjson\b/
5835},
5836responseFields:{
5837xml:"responseXML",
5838text:"responseText",
5839json:"responseJSON"
5840},
5841converters:{
5842"* text":String,
5843"text html":true,
5844"text json":JSON.parse,
5845"text xml":jQuery.parseXML
5846},
5847flatOptions:{
5848url:true,
5849context:true
5850}
5851},
5852ajaxSetup:function(target,settings){
5853return settings?
5854ajaxExtend(ajaxExtend(target,jQuery.ajaxSettings),settings):
5855ajaxExtend(jQuery.ajaxSettings,target);
5856},
5857ajaxPrefilter:addToPrefiltersOrTransports(prefilters),
5858ajaxTransport:addToPrefiltersOrTransports(transports),
5859ajax:function(url,options){
5860if(typeof url==="object"){
5861options=url;
5862url=undefined;
5863}
5864options=options||{};
5865var transport,
5866cacheURL,
5867responseHeadersString,
5868responseHeaders,
5869timeoutTimer,
5870urlAnchor,
5871completed,
5872fireGlobals,
5873i,
5874uncached,
5875s=jQuery.ajaxSetup({},options),
5876callbackContext=s.context||s,
5877globalEventContext=s.context&&
5878(callbackContext.nodeType||callbackContext.jquery)?
5879jQuery(callbackContext):
5880jQuery.event,
5881deferred=jQuery.Deferred(),
5882completeDeferred=jQuery.Callbacks("once memory"),
5883statusCode=s.statusCode||{},
5884requestHeaders={},
5885requestHeadersNames={},
5886strAbort="canceled",
5887jqXHR={
5888readyState:0,
5889getResponseHeader:function(key){
5890var match;
5891if(completed){
5892if(!responseHeaders){
5893responseHeaders={};
5894while((match=rheaders.exec(responseHeadersString))){
5895responseHeaders[match[1].toLowerCase()+" "]=
5896(responseHeaders[match[1].toLowerCase()+" "]||[])
5897.concat(match[2]);
5898}
5899}
5900match=responseHeaders[key.toLowerCase()+" "];
5901}
5902return match==null?null:match.join(", ");
5903},
5904getAllResponseHeaders:function(){
5905return completed?responseHeadersString:null;
5906},
5907setRequestHeader:function(name,value){
5908if(completed==null){
5909name=requestHeadersNames[name.toLowerCase()]=
5910requestHeadersNames[name.toLowerCase()]||name;
5911requestHeaders[name]=value;
5912}
5913return this;
5914},
5915overrideMimeType:function(type){
5916if(completed==null){
5917s.mimeType=type;
5918}
5919return this;
5920},
5921statusCode:function(map){
5922var code;
5923if(map){
5924if(completed){
5925jqXHR.always(map[jqXHR.status]);
5926}else{
5927for(code in map){
5928statusCode[code]=[statusCode[code],map[code]];
5929}
5930}
5931}
5932return this;
5933},
5934abort:function(statusText){
5935var finalText=statusText||strAbort;
5936if(transport){
5937transport.abort(finalText);
5938}
5939done(0,finalText);
5940return this;
5941}
5942};
5943deferred.promise(jqXHR);
5944s.url=((url||s.url||location.href)+"")
5945.replace(rprotocol,location.protocol+"//");
5946s.type=options.method||options.type||s.method||s.type;
5947s.dataTypes=(s.dataType||"*").toLowerCase().match(rnothtmlwhite)||[""];
5948if(s.crossDomain==null){
5949urlAnchor=document.createElement("a");
5950try{
5951urlAnchor.href=s.url;
5952urlAnchor.href=urlAnchor.href;
5953s.crossDomain=originAnchor.protocol+"//"+originAnchor.host!==
5954urlAnchor.protocol+"//"+urlAnchor.host;
5955}catch(e){
5956s.crossDomain=true;
5957}
5958}
5959if(s.data&&s.processData&&typeof s.data!=="string"){
5960s.data=jQuery.param(s.data,s.traditional);
5961}
5962inspectPrefiltersOrTransports(prefilters,s,options,jqXHR);
5963if(completed){
5964return jqXHR;
5965}
5966fireGlobals=jQuery.event&&s.global;
5967if(fireGlobals&&jQuery.active++===0){
5968jQuery.event.trigger("ajaxStart");
5969}
5970s.type=s.type.toUpperCase();
5971s.hasContent=!rnoContent.test(s.type);
5972cacheURL=s.url.replace(rhash,"");
5973if(!s.hasContent){
5974uncached=s.url.slice(cacheURL.length);
5975if(s.data&&(s.processData||typeof s.data==="string")){
5976cacheURL+=(rquery.test(cacheURL)?"&":"?")+s.data;
5977delete s.data;
5978}
5979if(s.cache===false){
5980cacheURL=cacheURL.replace(rantiCache,"$1");
5981uncached=(rquery.test(cacheURL)?"&":"?")+"_="+(nonce.guid++)+
5982uncached;
5983}
5984s.url=cacheURL+uncached;
5985}else if(s.data&&s.processData&&
5986(s.contentType||"").indexOf("application/x-www-form-urlencoded")===0){
5987s.data=s.data.replace(r20,"+");
5988}
5989if(s.ifModified){
5990if(jQuery.lastModified[cacheURL]){
5991jqXHR.setRequestHeader("If-Modified-Since",jQuery.lastModified[cacheURL]);
5992}
5993if(jQuery.etag[cacheURL]){
5994jqXHR.setRequestHeader("If-None-Match",jQuery.etag[cacheURL]);
5995}
5996}
5997if(s.data&&s.hasContent&&s.contentType!==false||options.contentType){
5998jqXHR.setRequestHeader("Content-Type",s.contentType);
5999}
6000jqXHR.setRequestHeader(
6001"Accept",
6002s.dataTypes[0]&&s.accepts[s.dataTypes[0]]?
6003s.accepts[s.dataTypes[0]]+
6004(s.dataTypes[0]!=="*"?", "+allTypes+"; q=0.01":""):
6005s.accepts["*"]
6006);
6007for(i in s.headers){
6008jqXHR.setRequestHeader(i,s.headers[i]);
6009}
6010if(s.beforeSend&&
6011(s.beforeSend.call(callbackContext,jqXHR,s)===false||completed)){
6012return jqXHR.abort();
6013}
6014strAbort="abort";
6015completeDeferred.add(s.complete);
6016jqXHR.done(s.success);
6017jqXHR.fail(s.error);
6018transport=inspectPrefiltersOrTransports(transports,s,options,jqXHR);
6019if(!transport){
6020done(-1,"No Transport");
6021}else{
6022jqXHR.readyState=1;
6023if(fireGlobals){
6024globalEventContext.trigger("ajaxSend",[jqXHR,s]);
6025}
6026if(completed){
6027return jqXHR;
6028}
6029if(s.async&&s.timeout>0){
6030timeoutTimer=window.setTimeout(function(){
6031jqXHR.abort("timeout");
6032},s.timeout);
6033}
6034try{
6035completed=false;
6036transport.send(requestHeaders,done);
6037}catch(e){
6038if(completed){
6039throw e;
6040}
6041done(-1,e);
6042}
6043}
6044function done(status,nativeStatusText,responses,headers){
6045var isSuccess,success,error,response,modified,
6046statusText=nativeStatusText;
6047if(completed){
6048return;
6049}
6050completed=true;
6051if(timeoutTimer){
6052window.clearTimeout(timeoutTimer);
6053}
6054transport=undefined;
6055responseHeadersString=headers||"";
6056jqXHR.readyState=status>0?4:0;
6057isSuccess=status>=200&&status<300||status===304;
6058if(responses){
6059response=ajaxHandleResponses(s,jqXHR,responses);
6060}
6061if(!isSuccess&&
6062jQuery.inArray("script",s.dataTypes)>-1&&
6063jQuery.inArray("json",s.dataTypes)<0){
6064s.converters["text script"]=function(){};
6065}
6066response=ajaxConvert(s,response,jqXHR,isSuccess);
6067if(isSuccess){
6068if(s.ifModified){
6069modified=jqXHR.getResponseHeader("Last-Modified");
6070if(modified){
6071jQuery.lastModified[cacheURL]=modified;
6072}
6073modified=jqXHR.getResponseHeader("etag");
6074if(modified){
6075jQuery.etag[cacheURL]=modified;
6076}
6077}
6078if(status===204||s.type==="HEAD"){
6079statusText="nocontent";
6080}else if(status===304){
6081statusText="notmodified";
6082}else{
6083statusText=response.state;
6084success=response.data;
6085error=response.error;
6086isSuccess=!error;
6087}
6088}else{
6089error=statusText;
6090if(status||!statusText){
6091statusText="error";
6092if(status<0){
6093status=0;
6094}
6095}
6096}
6097jqXHR.status=status;
6098jqXHR.statusText=(nativeStatusText||statusText)+"";
6099if(isSuccess){
6100deferred.resolveWith(callbackContext,[success,statusText,jqXHR]);
6101}else{
6102deferred.rejectWith(callbackContext,[jqXHR,statusText,error]);
6103}
6104jqXHR.statusCode(statusCode);
6105statusCode=undefined;
6106if(fireGlobals){
6107globalEventContext.trigger(isSuccess?"ajaxSuccess":"ajaxError",
6108[jqXHR,s,isSuccess?success:error]);
6109}
6110completeDeferred.fireWith(callbackContext,[jqXHR,statusText]);
6111if(fireGlobals){
6112globalEventContext.trigger("ajaxComplete",[jqXHR,s]);
6113if(!(--jQuery.active)){
6114jQuery.event.trigger("ajaxStop");
6115}
6116}
6117}
6118return jqXHR;
6119},
6120getJSON:function(url,data,callback){
6121return jQuery.get(url,data,callback,"json");
6122},
6123getScript:function(url,callback){
6124return jQuery.get(url,undefined,callback,"script");
6125}
6126});
6127jQuery.each(["get","post"],function(_i,method){
6128jQuery[method]=function(url,data,callback,type){
6129if(isFunction(data)){
6130type=type||callback;
6131callback=data;
6132data=undefined;
6133}
6134return jQuery.ajax(jQuery.extend({
6135url:url,
6136type:method,
6137dataType:type,
6138data:data,
6139success:callback
6140},jQuery.isPlainObject(url)&&url));
6141};
6142});
6143jQuery.ajaxPrefilter(function(s){
6144var i;
6145for(i in s.headers){
6146if(i.toLowerCase()==="content-type"){
6147s.contentType=s.headers[i]||"";
6148}
6149}
6150});
6151jQuery._evalUrl=function(url,options,doc){
6152return jQuery.ajax({
6153url:url,
6154type:"GET",
6155dataType:"script",
6156cache:true,
6157async:false,
6158global:false,
6159converters:{
6160"text script":function(){}
6161},
6162dataFilter:function(response){
6163jQuery.globalEval(response,options,doc);
6164}
6165});
6166};
6167jQuery.fn.extend({
6168wrapAll:function(html){
6169var wrap;
6170if(this[0]){
6171if(isFunction(html)){
6172html=html.call(this[0]);
6173}
6174wrap=jQuery(html,this[0].ownerDocument).eq(0).clone(true);
6175if(this[0].parentNode){
6176wrap.insertBefore(this[0]);
6177}
6178wrap.map(function(){
6179var elem=this;
6180while(elem.firstElementChild){
6181elem=elem.firstElementChild;
6182}
6183return elem;
6184}).append(this);
6185}
6186return this;
6187},
6188wrapInner:function(html){
6189if(isFunction(html)){
6190return this.each(function(i){
6191jQuery(this).wrapInner(html.call(this,i));
6192});
6193}
6194return this.each(function(){
6195var self=jQuery(this),
6196contents=self.contents();
6197if(contents.length){
6198contents.wrapAll(html);
6199}else{
6200self.append(html);
6201}
6202});
6203},
6204wrap:function(html){
6205var htmlIsFunction=isFunction(html);
6206return this.each(function(i){
6207jQuery(this).wrapAll(htmlIsFunction?html.call(this,i):html);
6208});
6209},
6210unwrap:function(selector){
6211this.parent(selector).not("body").each(function(){
6212jQuery(this).replaceWith(this.childNodes);
6213});
6214return this;
6215}
6216});
6217jQuery.expr.pseudos.hidden=function(elem){
6218return!jQuery.expr.pseudos.visible(elem);
6219};
6220jQuery.expr.pseudos.visible=function(elem){
6221return!!(elem.offsetWidth||elem.offsetHeight||elem.getClientRects().length);
6222};
6223jQuery.ajaxSettings.xhr=function(){
6224try{
6225return new window.XMLHttpRequest();
6226}catch(e){}
6227};
6228var xhrSuccessStatus={
62290:200,
62301223:204
6231},
6232xhrSupported=jQuery.ajaxSettings.xhr();
6233support.cors=!!xhrSupported&&("withCredentials"in xhrSupported);
6234support.ajax=xhrSupported=!!xhrSupported;
6235jQuery.ajaxTransport(function(options){
6236var callback,errorCallback;
6237if(support.cors||xhrSupported&&!options.crossDomain){
6238return{
6239send:function(headers,complete){
6240var i,
6241xhr=options.xhr();
6242xhr.open(
6243options.type,
6244options.url,
6245options.async,
6246options.username,
6247options.password
6248);
6249if(options.xhrFields){
6250for(i in options.xhrFields){
6251xhr[i]=options.xhrFields[i];
6252}
6253}
6254if(options.mimeType&&xhr.overrideMimeType){
6255xhr.overrideMimeType(options.mimeType);
6256}
6257if(!options.crossDomain&&!headers["X-Requested-With"]){
6258headers["X-Requested-With"]="XMLHttpRequest";
6259}
6260for(i in headers){
6261xhr.setRequestHeader(i,headers[i]);
6262}
6263callback=function(type){
6264return function(){
6265if(callback){
6266callback=errorCallback=xhr.onload=
6267xhr.onerror=xhr.onabort=xhr.ontimeout=
6268xhr.onreadystatechange=null;
6269if(type==="abort"){
6270xhr.abort();
6271}else if(type==="error"){
6272if(typeof xhr.status!=="number"){
6273complete(0,"error");
6274}else{
6275complete(
6276xhr.status,
6277xhr.statusText
6278);
6279}
6280}else{
6281complete(
6282xhrSuccessStatus[xhr.status]||xhr.status,
6283xhr.statusText,
6284(xhr.responseType||"text")!=="text"||
6285typeof xhr.responseText!=="string"?
6286{binary:xhr.response}:
6287{text:xhr.responseText},
6288xhr.getAllResponseHeaders()
6289);
6290}
6291}
6292};
6293};
6294xhr.onload=callback();
6295errorCallback=xhr.onerror=xhr.ontimeout=callback("error");
6296if(xhr.onabort!==undefined){
6297xhr.onabort=errorCallback;
6298}else{
6299xhr.onreadystatechange=function(){
6300if(xhr.readyState===4){
6301window.setTimeout(function(){
6302if(callback){
6303errorCallback();
6304}
6305});
6306}
6307};
6308}
6309callback=callback("abort");
6310try{
6311xhr.send(options.hasContent&&options.data||null);
6312}catch(e){
6313if(callback){
6314throw e;
6315}
6316}
6317},
6318abort:function(){
6319if(callback){
6320callback();
6321}
6322}
6323};
6324}
6325});
6326jQuery.ajaxPrefilter(function(s){
6327if(s.crossDomain){
6328s.contents.script=false;
6329}
6330});
6331jQuery.ajaxSetup({
6332accepts:{
6333script:"text/javascript, application/javascript, "+
6334"application/ecmascript, application/x-ecmascript"
6335},
6336contents:{
6337script:/\b(?:java|ecma)script\b/
6338},
6339converters:{
6340"text script":function(text){
6341jQuery.globalEval(text);
6342return text;
6343}
6344}
6345});
6346jQuery.ajaxPrefilter("script",function(s){
6347if(s.cache===undefined){
6348s.cache=false;
6349}
6350if(s.crossDomain){
6351s.type="GET";
6352}
6353});
6354jQuery.ajaxTransport("script",function(s){
6355if(s.crossDomain||s.scriptAttrs){
6356var script,callback;
6357return{
6358send:function(_,complete){
6359script=jQuery("<script>")
6360.attr(s.scriptAttrs||{})
6361.prop({charset:s.scriptCharset,src:s.url})
6362.on("load error",callback=function(evt){
6363script.remove();
6364callback=null;
6365if(evt){
6366complete(evt.type==="error"?404:200,evt.type);
6367}
6368});
6369document.head.appendChild(script[0]);
6370},
6371abort:function(){
6372if(callback){
6373callback();
6374}
6375}
6376};
6377}
6378});
6379var oldCallbacks=[],
6380rjsonp=/(=)\?(?=&|$)|\?\?/;
6381jQuery.ajaxSetup({
6382jsonp:"callback",
6383jsonpCallback:function(){
6384var callback=oldCallbacks.pop()||(jQuery.expando+"_"+(nonce.guid++));
6385this[callback]=true;
6386return callback;
6387}
6388});
6389jQuery.ajaxPrefilter("json jsonp",function(s,originalSettings,jqXHR){
6390var callbackName,overwritten,responseContainer,
6391jsonProp=s.jsonp!==false&&(rjsonp.test(s.url)?
6392"url":
6393typeof s.data==="string"&&
6394(s.contentType||"")
6395.indexOf("application/x-www-form-urlencoded")===0&&
6396rjsonp.test(s.data)&&"data"
6397);
6398if(jsonProp||s.dataTypes[0]==="jsonp"){
6399callbackName=s.jsonpCallback=isFunction(s.jsonpCallback)?
6400s.jsonpCallback():
6401s.jsonpCallback;
6402if(jsonProp){
6403s[jsonProp]=s[jsonProp].replace(rjsonp,"$1"+callbackName);
6404}else if(s.jsonp!==false){
6405s.url+=(rquery.test(s.url)?"&":"?")+s.jsonp+"="+callbackName;
6406}
6407s.converters["script json"]=function(){
6408if(!responseContainer){
6409jQuery.error(callbackName+" was not called");
6410}
6411return responseContainer[0];
6412};
6413s.dataTypes[0]="json";
6414overwritten=window[callbackName];
6415window[callbackName]=function(){
6416responseContainer=arguments;
6417};
6418jqXHR.always(function(){
6419if(overwritten===undefined){
6420jQuery(window).removeProp(callbackName);
6421}else{
6422window[callbackName]=overwritten;
6423}
6424if(s[callbackName]){
6425s.jsonpCallback=originalSettings.jsonpCallback;
6426oldCallbacks.push(callbackName);
6427}
6428if(responseContainer&&isFunction(overwritten)){
6429overwritten(responseContainer[0]);
6430}
6431responseContainer=overwritten=undefined;
6432});
6433return"script";
6434}
6435});
6436support.createHTMLDocument=(function(){
6437var body=document.implementation.createHTMLDocument("").body;
6438body.innerHTML="<form></form><form></form>";
6439return body.childNodes.length===2;
6440})();
6441jQuery.parseHTML=function(data,context,keepScripts){
6442if(typeof data!=="string"){
6443return[];
6444}
6445if(typeof context==="boolean"){
6446keepScripts=context;
6447context=false;
6448}
6449var base,parsed,scripts;
6450if(!context){
6451if(support.createHTMLDocument){
6452context=document.implementation.createHTMLDocument("");
6453base=context.createElement("base");
6454base.href=document.location.href;
6455context.head.appendChild(base);
6456}else{
6457context=document;
6458}
6459}
6460parsed=rsingleTag.exec(data);
6461scripts=!keepScripts&&[];
6462if(parsed){
6463return[context.createElement(parsed[1])];
6464}
6465parsed=buildFragment([data],context,scripts);
6466if(scripts&&scripts.length){
6467jQuery(scripts).remove();
6468}
6469return jQuery.merge([],parsed.childNodes);
6470};
6471jQuery.fn.load=function(url,params,callback){
6472var selector,type,response,
6473self=this,
6474off=url.indexOf(" ");
6475if(off>-1){
6476selector=stripAndCollapse(url.slice(off));
6477url=url.slice(0,off);
6478}
6479if(isFunction(params)){
6480callback=params;
6481params=undefined;
6482}else if(params&&typeof params==="object"){
6483type="POST";
6484}
6485if(self.length>0){
6486jQuery.ajax({
6487url:url,
6488type:type||"GET",
6489dataType:"html",
6490data:params
6491}).done(function(responseText){
6492response=arguments;
6493self.html(selector?
6494jQuery("<div>").append(jQuery.parseHTML(responseText)).find(selector):
6495responseText);
6496}).always(callback&&function(jqXHR,status){
6497self.each(function(){
6498callback.apply(this,response||[jqXHR.responseText,status,jqXHR]);
6499});
6500});
6501}
6502return this;
6503};
6504jQuery.expr.pseudos.animated=function(elem){
6505return jQuery.grep(jQuery.timers,function(fn){
6506return elem===fn.elem;
6507}).length;
6508};
6509jQuery.offset={
6510setOffset:function(elem,options,i){
6511var curPosition,curLeft,curCSSTop,curTop,curOffset,curCSSLeft,calculatePosition,
6512position=jQuery.css(elem,"position"),
6513curElem=jQuery(elem),
6514props={};
6515if(position==="static"){
6516elem.style.position="relative";
6517}
6518curOffset=curElem.offset();
6519curCSSTop=jQuery.css(elem,"top");
6520curCSSLeft=jQuery.css(elem,"left");
6521calculatePosition=(position==="absolute"||position==="fixed")&&
6522(curCSSTop+curCSSLeft).indexOf("auto")>-1;
6523if(calculatePosition){
6524curPosition=curElem.position();
6525curTop=curPosition.top;
6526curLeft=curPosition.left;
6527}else{
6528curTop=parseFloat(curCSSTop)||0;
6529curLeft=parseFloat(curCSSLeft)||0;
6530}
6531if(isFunction(options)){
6532options=options.call(elem,i,jQuery.extend({},curOffset));
6533}
6534if(options.top!=null){
6535props.top=(options.top-curOffset.top)+curTop;
6536}
6537if(options.left!=null){
6538props.left=(options.left-curOffset.left)+curLeft;
6539}
6540if("using"in options){
6541options.using.call(elem,props);
6542}else{
6543curElem.css(props);
6544}
6545}
6546};
6547jQuery.fn.extend({
6548offset:function(options){
6549if(arguments.length){
6550return options===undefined?
6551this:
6552this.each(function(i){
6553jQuery.offset.setOffset(this,options,i);
6554});
6555}
6556var rect,win,
6557elem=this[0];
6558if(!elem){
6559return;
6560}
6561if(!elem.getClientRects().length){
6562return{top:0,left:0};
6563}
6564rect=elem.getBoundingClientRect();
6565win=elem.ownerDocument.defaultView;
6566return{
6567top:rect.top+win.pageYOffset,
6568left:rect.left+win.pageXOffset
6569};
6570},
6571position:function(){
6572if(!this[0]){
6573return;
6574}
6575var offsetParent,offset,doc,
6576elem=this[0],
6577parentOffset={top:0,left:0};
6578if(jQuery.css(elem,"position")==="fixed"){
6579offset=elem.getBoundingClientRect();
6580}else{
6581offset=this.offset();
6582doc=elem.ownerDocument;
6583offsetParent=elem.offsetParent||doc.documentElement;
6584while(offsetParent&&
6585(offsetParent===doc.body||offsetParent===doc.documentElement)&&
6586jQuery.css(offsetParent,"position")==="static"){
6587offsetParent=offsetParent.parentNode;
6588}
6589if(offsetParent&&offsetParent!==elem&&offsetParent.nodeType===1){
6590parentOffset=jQuery(offsetParent).offset();
6591parentOffset.top+=jQuery.css(offsetParent,"borderTopWidth",true);
6592parentOffset.left+=jQuery.css(offsetParent,"borderLeftWidth",true);
6593}
6594}
6595return{
6596top:offset.top-parentOffset.top-jQuery.css(elem,"marginTop",true),
6597left:offset.left-parentOffset.left-jQuery.css(elem,"marginLeft",true)
6598};
6599},
6600offsetParent:function(){
6601return this.map(function(){
6602var offsetParent=this.offsetParent;
6603while(offsetParent&&jQuery.css(offsetParent,"position")==="static"){
6604offsetParent=offsetParent.offsetParent;
6605}
6606return offsetParent||documentElement;
6607});
6608}
6609});
6610jQuery.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(method,prop){
6611var top="pageYOffset"===prop;
6612jQuery.fn[method]=function(val){
6613return access(this,function(elem,method,val){
6614var win;
6615if(isWindow(elem)){
6616win=elem;
6617}else if(elem.nodeType===9){
6618win=elem.defaultView;
6619}
6620if(val===undefined){
6621return win?win[prop]:elem[method];
6622}
6623if(win){
6624win.scrollTo(
6625!top?val:win.pageXOffset,
6626top?val:win.pageYOffset
6627);
6628}else{
6629elem[method]=val;
6630}
6631},method,val,arguments.length);
6632};
6633});
6634jQuery.each(["top","left"],function(_i,prop){
6635jQuery.cssHooks[prop]=addGetHookIf(support.pixelPosition,
6636function(elem,computed){
6637if(computed){
6638computed=curCSS(elem,prop);
6639return rnumnonpx.test(computed)?
6640jQuery(elem).position()[prop]+"px":
6641computed;
6642}
6643}
6644);
6645});
6646jQuery.each({Height:"height",Width:"width"},function(name,type){
6647jQuery.each({
6648padding:"inner"+name,
6649content:type,
6650"":"outer"+name
6651},function(defaultExtra,funcName){
6652jQuery.fn[funcName]=function(margin,value){
6653var chainable=arguments.length&&(defaultExtra||typeof margin!=="boolean"),
6654extra=defaultExtra||(margin===true||value===true?"margin":"border");
6655return access(this,function(elem,type,value){
6656var doc;
6657if(isWindow(elem)){
6658return funcName.indexOf("outer")===0?
6659elem["inner"+name]:
6660elem.document.documentElement["client"+name];
6661}
6662if(elem.nodeType===9){
6663doc=elem.documentElement;
6664return Math.max(
6665elem.body["scroll"+name],doc["scroll"+name],
6666elem.body["offset"+name],doc["offset"+name],
6667doc["client"+name]
6668);
6669}
6670return value===undefined?
6671jQuery.css(elem,type,extra):
6672jQuery.style(elem,type,value,extra);
6673},type,chainable?margin:undefined,chainable);
6674};
6675});
6676});
6677jQuery.each([
6678"ajaxStart",
6679"ajaxStop",
6680"ajaxComplete",
6681"ajaxError",
6682"ajaxSuccess",
6683"ajaxSend"
6684],function(_i,type){
6685jQuery.fn[type]=function(fn){
6686return this.on(type,fn);
6687};
6688});
6689jQuery.fn.extend({
6690bind:function(types,data,fn){
6691return this.on(types,null,data,fn);
6692},
6693unbind:function(types,fn){
6694return this.off(types,null,fn);
6695},
6696delegate:function(selector,types,data,fn){
6697return this.on(types,selector,data,fn);
6698},
6699undelegate:function(selector,types,fn){
6700return arguments.length===1?
6701this.off(selector,"**"):
6702this.off(types,selector||"**",fn);
6703},
6704hover:function(fnOver,fnOut){
6705return this
6706.on("mouseenter",fnOver)
6707.on("mouseleave",fnOut||fnOver);
6708}
6709});
6710jQuery.each(
6711("blur focus focusin focusout resize scroll click dblclick "+
6712"mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave "+
6713"change select submit keydown keypress keyup contextmenu").split(" "),
6714function(_i,name){
6715jQuery.fn[name]=function(data,fn){
6716return arguments.length>0?
6717this.on(name,null,data,fn):
6718this.trigger(name);
6719};
6720}
6721);
6722var rtrim=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;
6723jQuery.proxy=function(fn,context){
6724var tmp,args,proxy;
6725if(typeof context==="string"){
6726tmp=fn[context];
6727context=fn;
6728fn=tmp;
6729}
6730if(!isFunction(fn)){
6731return undefined;
6732}
6733args=slice.call(arguments,2);
6734proxy=function(){
6735return fn.apply(context||this,args.concat(slice.call(arguments)));
6736};
6737proxy.guid=fn.guid=fn.guid||jQuery.guid++;
6738return proxy;
6739};
6740jQuery.holdReady=function(hold){
6741if(hold){
6742jQuery.readyWait++;
6743}else{
6744jQuery.ready(true);
6745}
6746};
6747jQuery.isArray=Array.isArray;
6748jQuery.parseJSON=JSON.parse;
6749jQuery.nodeName=nodeName;
6750jQuery.isFunction=isFunction;
6751jQuery.isWindow=isWindow;
6752jQuery.camelCase=camelCase;
6753jQuery.type=toType;
6754jQuery.now=Date.now;
6755jQuery.isNumeric=function(obj){
6756var type=jQuery.type(obj);
6757return(type==="number"||type==="string")&&
6758!isNaN(obj-parseFloat(obj));
6759};
6760jQuery.trim=function(text){
6761return text==null?
6762"":
6763(text+"").replace(rtrim,"$1");
6764};
6765if(typeof define==="function"&&define.amd){
6766define("jquery",[],function(){
6767return jQuery;
6768});
6769}
6770var
6771_jQuery=window.jQuery,
6772_$=window.$;
6773jQuery.noConflict=function(deep){
6774if(window.$===jQuery){
6775window.$=_$;
6776}
6777if(deep&&window.jQuery===jQuery){
6778window.jQuery=_jQuery;
6779}
6780return jQuery;
6781};
6782if(typeof noGlobal==="undefined"){
6783window.jQuery=window.$=jQuery;
6784}
6785return jQuery;
6786});
6787
6788
6789/* prive/javascript/jquery.form.js?1790327464 */
6790
6791(function(factory){
6792if(typeof define==='function'&&define.amd){
6793define(['jquery'],factory);
6794}else if(typeof module==='object'&&module.exports){
6795module.exports=function(root,jQuery){
6796if(typeof jQuery==='undefined'){
6797if(typeof window!=='undefined'){
6798jQuery=require('jquery');
6799}
6800else{
6801jQuery=require('jquery')(root);
6802}
6803}
6804factory(jQuery);
6805return jQuery;
6806};
6807}else{
6808factory(jQuery);
6809}
6810}(function($){
6811'use strict';
6812var rCRLF=/\r?\n/g;
6813var feature={};
6814feature.fileapi=$('<input type="file">').get(0).files!==undefined;
6815feature.formdata=(typeof window.FormData!=='undefined');
6816var hasProp=!!$.fn.prop;
6817$.fn.attr2=function(){
6818if(!hasProp){
6819return this.attr.apply(this,arguments);
6820}
6821var val=this.prop.apply(this,arguments);
6822if((val&&val.jquery)||typeof val==='string'){
6823return val;
6824}
6825return this.attr.apply(this,arguments);
6826};
6827$.fn.ajaxSubmit=function(options,data,dataType,onSuccess){
6828if(!this.length){
6829log('ajaxSubmit: skipping submit process - no element selected');
6830return this;
6831}
6832var method,action,url,isMsie,iframeSrc,$form=this;
6833if(typeof options==='function'){
6834options={success:options};
6835}else if(typeof options==='string'||(options===false&&arguments.length>0)){
6836options={
6837'url':options,
6838'data':data,
6839'dataType':dataType
6840};
6841if(typeof onSuccess==='function'){
6842options.success=onSuccess;
6843}
6844}else if(typeof options==='undefined'){
6845options={};
6846}
6847method=options.method||options.type||this.attr2('method');
6848action=options.url||this.attr2('action');
6849url=(typeof action==='string')?$.trim(action):'';
6850url=url||window.location.href||'';
6851if(url){
6852url=(url.match(/^([^#]+)/)||[])[1];
6853}
6854isMsie=/(MSIE|Trident)/.test(navigator.userAgent||'');
6855iframeSrc=(isMsie&&/^https/i.test(window.location.href||''))?'javascript:false':'about:blank';
6856options=$.extend(true,{
6857url:url,
6858success:$.ajaxSettings.success,
6859type:method||$.ajaxSettings.type,
6860iframeSrc:iframeSrc
6861},options);
6862var veto={};
6863this.trigger('form-pre-serialize',[this,options,veto]);
6864if(veto.veto){
6865log('ajaxSubmit: submit vetoed via form-pre-serialize trigger');
6866return this;
6867}
6868if(options.beforeSerialize&&options.beforeSerialize(this,options)===false){
6869log('ajaxSubmit: submit aborted via beforeSerialize callback');
6870return this;
6871}
6872var traditional=options.traditional;
6873if(typeof traditional==='undefined'){
6874traditional=$.ajaxSettings.traditional;
6875}
6876var elements=[];
6877var qx,a=this.formToArray(options.semantic,elements,options.filtering);
6878if(options.data){
6879var optionsData=$.isFunction(options.data)?options.data(a):options.data;
6880options.extraData=optionsData;
6881qx=$.param(optionsData,traditional);
6882}
6883if(options.beforeSubmit&&options.beforeSubmit(a,this,options)===false){
6884log('ajaxSubmit: submit aborted via beforeSubmit callback');
6885return this;
6886}
6887this.trigger('form-submit-validate',[a,this,options,veto]);
6888if(veto.veto){
6889log('ajaxSubmit: submit vetoed via form-submit-validate trigger');
6890return this;
6891}
6892var q=$.param(a,traditional);
6893if(qx){
6894q=(q?(q+'&'+qx):qx);
6895}
6896if(options.type.toUpperCase()==='GET'){
6897options.url+=(options.url.indexOf('?')>=0?'&':'?')+q;
6898options.data=null;
6899}else{
6900options.data=q;
6901}
6902var callbacks=[];
6903if(options.resetForm){
6904callbacks.push(function(){
6905$form.resetForm();
6906});
6907}
6908if(options.clearForm){
6909callbacks.push(function(){
6910$form.clearForm(options.includeHidden);
6911});
6912}
6913if(!options.dataType&&options.target){
6914var oldSuccess=options.success||function(){};
6915callbacks.push(function(data,textStatus,jqXHR){
6916var successArguments=arguments,
6917fn=options.replaceTarget?'replaceWith':'html';
6918if(fn=='html'){
6919data=$.parseHTML($("<div>").text(data).html())
6920};
6921$(options.target)[fn](data).each(function(){
6922oldSuccess.apply(this,successArguments);
6923});
6924});
6925}else if(options.success){
6926if($.isArray(options.success)){
6927$.merge(callbacks,options.success);
6928}else{
6929callbacks.push(options.success);
6930}
6931}
6932options.success=function(data,status,xhr){
6933var context=options.context||this;
6934for(var i=0,max=callbacks.length;i<max;i++){
6935callbacks[i].apply(context,[data,status,xhr||$form,$form]);
6936}
6937};
6938if(options.error){
6939var oldError=options.error;
6940options.error=function(xhr,status,error){
6941var context=options.context||this;
6942oldError.apply(context,[xhr,status,error,$form]);
6943};
6944}
6945if(options.complete){
6946var oldComplete=options.complete;
6947options.complete=function(xhr,status){
6948var context=options.context||this;
6949oldComplete.apply(context,[xhr,status,$form]);
6950};
6951}
6952var fileInputs=$('input[type=file]:enabled',this).filter(function(){
6953return $(this).val()!=='';
6954});
6955var hasFileInputs=fileInputs.length>0;
6956var mp='multipart/form-data';
6957var multipart=($form.attr('enctype')===mp||$form.attr('encoding')===mp);
6958var fileAPI=feature.fileapi&&feature.formdata;
6959log('fileAPI :'+fileAPI);
6960var shouldUseFrame=(hasFileInputs||multipart)&&!fileAPI;
6961var jqxhr;
6962if(options.iframe!==false&&(options.iframe||shouldUseFrame)){
6963if(options.closeKeepAlive){
6964$.get(options.closeKeepAlive,function(){
6965jqxhr=fileUploadIframe(a);
6966});
6967}else{
6968jqxhr=fileUploadIframe(a);
6969}
6970}else if((hasFileInputs||multipart)&&fileAPI){
6971jqxhr=fileUploadXhr(a);
6972}else{
6973jqxhr=$.ajax(options);
6974}
6975$form.removeData('jqxhr').data('jqxhr',jqxhr);
6976for(var k=0;k<elements.length;k++){
6977elements[k]=null;
6978}
6979this.trigger('form-submit-notify',[this,options]);
6980return this;
6981function deepSerialize(extraData){
6982var serialized=$.param(extraData,options.traditional).split('&');
6983var len=serialized.length;
6984var result=[];
6985var i,part;
6986for(i=0;i<len;i++){
6987serialized[i]=serialized[i].replace(/\+/g,' ');
6988part=serialized[i].split('=');
6989result.push([decodeURIComponent(part[0]),decodeURIComponent(part[1])]);
6990}
6991return result;
6992}
6993function fileUploadXhr(a){
6994var formdata=new FormData();
6995for(var i=0;i<a.length;i++){
6996formdata.append(a[i].name,a[i].value);
6997}
6998if(options.extraData){
6999var serializedData=deepSerialize(options.extraData);
7000for(i=0;i<serializedData.length;i++){
7001if(serializedData[i]){
7002formdata.append(serializedData[i][0],serializedData[i][1]);
7003}
7004}
7005}
7006options.data=null;
7007var s=$.extend(true,{},$.ajaxSettings,options,{
7008contentType:false,
7009processData:false,
7010cache:false,
7011type:method||'POST'
7012});
7013if(options.uploadProgress){
7014s.xhr=function(){
7015var xhr=$.ajaxSettings.xhr();
7016if(xhr.upload){
7017xhr.upload.addEventListener('progress',function(event){
7018var percent=0;
7019var position=event.loaded||event.position;
7020var total=event.total;
7021if(event.lengthComputable){
7022percent=Math.ceil(position/total*100);
7023}
7024options.uploadProgress(event,position,total,percent);
7025},false);
7026}
7027return xhr;
7028};
7029}
7030s.data=null;
7031var beforeSend=s.beforeSend;
7032s.beforeSend=function(xhr,o){
7033if(options.formData){
7034o.data=options.formData;
7035}else{
7036o.data=formdata;
7037}
7038if(beforeSend){
7039beforeSend.call(this,xhr,o);
7040}
7041};
7042return $.ajax(s);
7043}
7044function fileUploadIframe(a){
7045var form=$form[0],el,i,s,g,id,$io,io,xhr,sub,n,timedOut,timeoutHandle;
7046var deferred=$.Deferred();
7047deferred.abort=function(status){
7048xhr.abort(status);
7049};
7050if(a){
7051for(i=0;i<elements.length;i++){
7052el=$(elements[i]);
7053if(hasProp){
7054el.prop('disabled',false);
7055}else{
7056el.removeAttr('disabled');
7057}
7058}
7059}
7060s=$.extend(true,{},$.ajaxSettings,options);
7061s.context=s.context||s;
7062id='jqFormIO'+new Date().getTime();
7063var ownerDocument=form.ownerDocument;
7064var $body=$form.closest('body');
7065if(s.iframeTarget){
7066$io=$(s.iframeTarget,ownerDocument);
7067n=$io.attr2('name');
7068if(!n){
7069$io.attr2('name',id);
7070}else{
7071id=n;
7072}
7073}else{
7074$io=$('<iframe name="'+id+'" src="'+s.iframeSrc+'">',ownerDocument);
7075$io.css({position:'absolute',top:'-1000px',left:'-1000px'});
7076}
7077io=$io[0];
7078xhr={
7079aborted:0,
7080responseText:null,
7081responseXML:null,
7082status:0,
7083statusText:'n/a',
7084getAllResponseHeaders:function(){},
7085getResponseHeader:function(){},
7086setRequestHeader:function(){},
7087abort:function(status){
7088var e=(status==='timeout'?'timeout':'aborted');
7089log('aborting upload... '+e);
7090this.aborted=1;
7091try{
7092if(io.contentWindow.document.execCommand){
7093io.contentWindow.document.execCommand('Stop');
7094}
7095}catch(ignore){}
7096$io.attr('src',s.iframeSrc);
7097xhr.error=e;
7098if(s.error){
7099s.error.call(s.context,xhr,e,status);
7100}
7101if(g){
7102$.event.trigger('ajaxError',[xhr,s,e]);
7103}
7104if(s.complete){
7105s.complete.call(s.context,xhr,e);
7106}
7107}
7108};
7109g=s.global;
7110if(g&&$.active++===0){
7111$.event.trigger('ajaxStart');
7112}
7113if(g){
7114$.event.trigger('ajaxSend',[xhr,s]);
7115}
7116if(s.beforeSend&&s.beforeSend.call(s.context,xhr,s)===false){
7117if(s.global){
7118$.active--;
7119}
7120deferred.reject();
7121return deferred;
7122}
7123if(xhr.aborted){
7124deferred.reject();
7125return deferred;
7126}
7127sub=form.clk;
7128if(sub){
7129n=sub.name;
7130if(n&&!sub.disabled){
7131s.extraData=s.extraData||{};
7132s.extraData[n]=sub.value;
7133if(sub.type==='image'){
7134s.extraData[n+'.x']=form.clk_x;
7135s.extraData[n+'.y']=form.clk_y;
7136}
7137}
7138}
7139var CLIENT_TIMEOUT_ABORT=1;
7140var SERVER_ABORT=2;
7141function getDoc(frame){
7142var doc=null;
7143try{
7144if(frame.contentWindow){
7145doc=frame.contentWindow.document;
7146}
7147}catch(err){
7148log('cannot get iframe.contentWindow document: '+err);
7149}
7150if(doc){
7151return doc;
7152}
7153try{
7154doc=frame.contentDocument?frame.contentDocument:frame.document;
7155}catch(err){
7156log('cannot get iframe.contentDocument: '+err);
7157doc=frame.document;
7158}
7159return doc;
7160}
7161var csrf_token=$('meta[name=csrf-token]').attr('content');
7162var csrf_param=$('meta[name=csrf-param]').attr('content');
7163if(csrf_param&&csrf_token){
7164s.extraData=s.extraData||{};
7165s.extraData[csrf_param]=csrf_token;
7166}
7167function doSubmit(){
7168var t=$form.attr2('target'),
7169a=$form.attr2('action'),
7170mp='multipart/form-data',
7171et=$form.attr('enctype')||$form.attr('encoding')||mp;
7172form.setAttribute('target',id);
7173if(!method||/post/i.test(method)){
7174form.setAttribute('method','POST');
7175}
7176if(a!==s.url){
7177form.setAttribute('action',s.url);
7178}
7179if(!s.skipEncodingOverride&&(!method||/post/i.test(method))){
7180$form.attr({
7181encoding:'multipart/form-data',
7182enctype:'multipart/form-data'
7183});
7184}
7185if(s.timeout){
7186timeoutHandle=setTimeout(function(){
7187timedOut=true;cb(CLIENT_TIMEOUT_ABORT);
7188},s.timeout);
7189}
7190function checkState(){
7191try{
7192var state=getDoc(io).readyState;
7193log('state = '+state);
7194if(state&&state.toLowerCase()==='uninitialized'){
7195setTimeout(checkState,50);
7196}
7197}catch(e){
7198log('Server abort: ',e,' (',e.name,')');
7199cb(SERVER_ABORT);
7200if(timeoutHandle){
7201clearTimeout(timeoutHandle);
7202}
7203timeoutHandle=undefined;
7204}
7205}
7206var extraInputs=[];
7207try{
7208if(s.extraData){
7209for(var n in s.extraData){
7210if(s.extraData.hasOwnProperty(n)){
7211if($.isPlainObject(s.extraData[n])&&s.extraData[n].hasOwnProperty('name')&&s.extraData[n].hasOwnProperty('value')){
7212extraInputs.push(
7213$('<input type="hidden" name="'+s.extraData[n].name+'">',ownerDocument).val(s.extraData[n].value)
7214.appendTo(form)[0]);
7215}else{
7216extraInputs.push(
7217$('<input type="hidden" name="'+n+'">',ownerDocument).val(s.extraData[n])
7218.appendTo(form)[0]);
7219}
7220}
7221}
7222}
7223if(!s.iframeTarget){
7224$io.appendTo($body);
7225}
7226if(io.attachEvent){
7227io.attachEvent('onload',cb);
7228}else{
7229io.addEventListener('load',cb,false);
7230}
7231setTimeout(checkState,15);
7232try{
7233form.submit();
7234}catch(err){
7235var submitFn=document.createElement('form').submit;
7236submitFn.apply(form);
7237}
7238}finally{
7239form.setAttribute('action',a);
7240form.setAttribute('enctype',et);
7241if(t){
7242form.setAttribute('target',t);
7243}else{
7244$form.removeAttr('target');
7245}
7246$(extraInputs).remove();
7247}
7248}
7249if(s.forceSync){
7250doSubmit();
7251}else{
7252setTimeout(doSubmit,10);
7253}
7254var data,doc,domCheckCount=50,callbackProcessed;
7255function cb(e){
7256if(xhr.aborted||callbackProcessed){
7257return;
7258}
7259doc=getDoc(io);
7260if(!doc){
7261log('cannot access response document');
7262e=SERVER_ABORT;
7263}
7264if(e===CLIENT_TIMEOUT_ABORT&&xhr){
7265xhr.abort('timeout');
7266deferred.reject(xhr,'timeout');
7267return;
7268}
7269if(e===SERVER_ABORT&&xhr){
7270xhr.abort('server abort');
7271deferred.reject(xhr,'error','server abort');
7272return;
7273}
7274if(!doc||doc.location.href===s.iframeSrc){
7275if(!timedOut){
7276return;
7277}
7278}
7279if(io.detachEvent){
7280io.detachEvent('onload',cb);
7281}else{
7282io.removeEventListener('load',cb,false);
7283}
7284var status='success',errMsg;
7285try{
7286if(timedOut){
7287throw'timeout';
7288}
7289var isXml=s.dataType==='xml'||doc.XMLDocument||$.isXMLDoc(doc);
7290log('isXml='+isXml);
7291if(!isXml&&window.opera&&(doc.body===null||!doc.body.innerHTML)){
7292if(--domCheckCount){
7293log('requeing onLoad callback, DOM not available');
7294setTimeout(cb,250);
7295return;
7296}
7297}
7298var docRoot=doc.body?doc.body:doc.documentElement;
7299xhr.responseText=docRoot?docRoot.innerHTML:null;
7300xhr.responseXML=doc.XMLDocument?doc.XMLDocument:doc;
7301if(isXml){
7302s.dataType='xml';
7303}
7304xhr.getResponseHeader=function(header){
7305var headers={'content-type':s.dataType};
7306return headers[header.toLowerCase()];
7307};
7308if(docRoot){
7309xhr.status=Number(docRoot.getAttribute('status'))||xhr.status;
7310xhr.statusText=docRoot.getAttribute('statusText')||xhr.statusText;
7311}
7312var dt=(s.dataType||'').toLowerCase();
7313var scr=/(json|script|text)/.test(dt);
7314if(scr||s.textarea){
7315var ta=doc.getElementsByTagName('textarea')[0];
7316if(ta){
7317xhr.responseText=ta.value;
7318xhr.status=Number(ta.getAttribute('status'))||xhr.status;
7319xhr.statusText=ta.getAttribute('statusText')||xhr.statusText;
7320}else if(scr){
7321var pre=doc.getElementsByTagName('pre')[0];
7322var b=doc.getElementsByTagName('body')[0];
7323if(pre){
7324xhr.responseText=pre.textContent?pre.textContent:pre.innerText;
7325}else if(b){
7326xhr.responseText=b.textContent?b.textContent:b.innerText;
7327}
7328}
7329}else if(dt==='xml'&&!xhr.responseXML&&xhr.responseText){
7330xhr.responseXML=toXml(xhr.responseText);
7331}
7332try{
7333data=httpData(xhr,dt,s);
7334}catch(err){
7335status='parsererror';
7336xhr.error=errMsg=(err||status);
7337}
7338}catch(err){
7339log('error caught: ',err);
7340status='error';
7341xhr.error=errMsg=(err||status);
7342}
7343if(xhr.aborted){
7344log('upload aborted');
7345status=null;
7346}
7347if(xhr.status){
7348status=((xhr.status>=200&&xhr.status<300)||xhr.status===304)?'success':'error';
7349}
7350if(status==='success'){
7351if(s.success){
7352s.success.call(s.context,data,'success',xhr);
7353}
7354deferred.resolve(xhr.responseText,'success',xhr);
7355if(g){
7356$.event.trigger('ajaxSuccess',[xhr,s]);
7357}
7358}else if(status){
7359if(typeof errMsg==='undefined'){
7360errMsg=xhr.statusText;
7361}
7362if(s.error){
7363s.error.call(s.context,xhr,status,errMsg);
7364}
7365deferred.reject(xhr,'error',errMsg);
7366if(g){
7367$.event.trigger('ajaxError',[xhr,s,errMsg]);
7368}
7369}
7370if(g){
7371$.event.trigger('ajaxComplete',[xhr,s]);
7372}
7373if(g&&!--$.active){
7374$.event.trigger('ajaxStop');
7375}
7376if(s.complete){
7377s.complete.call(s.context,xhr,status);
7378}
7379callbackProcessed=true;
7380if(s.timeout){
7381clearTimeout(timeoutHandle);
7382}
7383setTimeout(function(){
7384if(!s.iframeTarget){
7385$io.remove();
7386}else{
7387$io.attr('src',s.iframeSrc);
7388}
7389xhr.responseXML=null;
7390},100);
7391}
7392var toXml=$.parseXML||function(s,doc){
7393if(window.ActiveXObject){
7394doc=new ActiveXObject('Microsoft.XMLDOM');
7395doc.async='false';
7396doc.loadXML(s);
7397}else{
7398doc=(new DOMParser()).parseFromString(s,'text/xml');
7399}
7400return(doc&&doc.documentElement&&doc.documentElement.nodeName!=='parsererror')?doc:null;
7401};
7402var parseJSON=$.parseJSON||function(s){
7403window.console.error('jquery.parseJSON is undefined');
7404return null;
7405};
7406var httpData=function(xhr,type,s){
7407var ct=xhr.getResponseHeader('content-type')||'',
7408xml=((type==='xml'||!type)&&ct.indexOf('xml')>=0),
7409data=xml?xhr.responseXML:xhr.responseText;
7410if(xml&&data.documentElement.nodeName==='parsererror'){
7411if($.error){
7412$.error('parsererror');
7413}
7414}
7415if(s&&s.dataFilter){
7416data=s.dataFilter(data,type);
7417}
7418if(typeof data==='string'){
7419if((type==='json'||!type)&&ct.indexOf('json')>=0){
7420data=parseJSON(data);
7421}else if((type==='script'||!type)&&ct.indexOf('javascript')>=0){
7422$.globalEval(data);
7423}
7424}
7425return data;
7426};
7427return deferred;
7428}
7429};
7430$.fn.ajaxForm=function(options,data,dataType,onSuccess){
7431if(typeof options==='string'||(options===false&&arguments.length>0)){
7432options={
7433'url':options,
7434'data':data,
7435'dataType':dataType
7436};
7437if(typeof onSuccess==='function'){
7438options.success=onSuccess;
7439}
7440}
7441options=options||{};
7442options.delegation=options.delegation&&$.isFunction($.fn.on);
7443if(!options.delegation&&this.length===0){
7444var o={s:this.selector,c:this.context};
7445if(!$.isReady&&o.s){
7446log('DOM not ready, queuing ajaxForm');
7447$(function(){
7448$(o.s,o.c).ajaxForm(options);
7449});
7450return this;
7451}
7452log('terminating; zero elements found by selector'+($.isReady?'':' (DOM not ready)'));
7453return this;
7454}
7455if(options.delegation){
7456$(document)
7457.off('submit.form-plugin',this.selector,doAjaxSubmit)
7458.off('click.form-plugin',this.selector,captureSubmittingElement)
7459.on('submit.form-plugin',this.selector,options,doAjaxSubmit)
7460.on('click.form-plugin',this.selector,options,captureSubmittingElement);
7461return this;
7462}
7463if(options.beforeFormUnbind){
7464options.beforeFormUnbind(this,options);
7465}
7466return this.ajaxFormUnbind()
7467.on('submit.form-plugin',options,doAjaxSubmit)
7468.on('click.form-plugin',options,captureSubmittingElement);
7469};
7470function doAjaxSubmit(e){
7471var options=e.data;
7472if(!e.isDefaultPrevented()){
7473e.preventDefault();
7474$(e.target).closest('form').ajaxSubmit(options);
7475}
7476}
7477function captureSubmittingElement(e){
7478var target=e.target;
7479var $el=$(target);
7480if(!$el.is('[type=submit],[type=image]')){
7481var t=$el.closest('[type=submit]');
7482if(t.length===0){
7483return;
7484}
7485target=t[0];
7486}
7487var form=target.form;
7488form.clk=target;
7489if(target.type==='image'){
7490if(typeof e.offsetX!=='undefined'){
7491form.clk_x=e.offsetX;
7492form.clk_y=e.offsetY;
7493}else if(typeof $.fn.offset==='function'){
7494var offset=$el.offset();
7495form.clk_x=e.pageX-offset.left;
7496form.clk_y=e.pageY-offset.top;
7497}else{
7498form.clk_x=e.pageX-target.offsetLeft;
7499form.clk_y=e.pageY-target.offsetTop;
7500}
7501}
7502setTimeout(function(){
7503form.clk=form.clk_x=form.clk_y=null;
7504},100);
7505}
7506$.fn.ajaxFormUnbind=function(){
7507return this.off('submit.form-plugin click.form-plugin');
7508};
7509$.fn.formToArray=function(semantic,elements,filtering){
7510var a=[];
7511if(this.length===0){
7512return a;
7513}
7514var form=this[0];
7515var formId=this.attr('id');
7516var els=(semantic||typeof form.elements==='undefined')?form.getElementsByTagName('*'):form.elements;
7517var els2;
7518if(els){
7519els=$.makeArray(els);
7520}
7521if(formId&&(semantic||/(Edge|Trident)\//.test(navigator.userAgent))){
7522els2=$(':input[form="'+formId+'"]').get();
7523if(els2.length){
7524els=(els||[]).concat(els2);
7525}
7526}
7527if(!els||!els.length){
7528return a;
7529}
7530if($.isFunction(filtering)){
7531els=$.map(els,filtering);
7532}
7533var i,j,n,v,el,max,jmax;
7534for(i=0,max=els.length;i<max;i++){
7535el=els[i];
7536n=el.name;
7537if(!n||el.disabled){
7538continue;
7539}
7540if(semantic&&form.clk&&el.type==='image'){
7541if(form.clk===el){
7542a.push({name:n,value:$(el).val(),type:el.type});
7543a.push({name:n+'.x',value:form.clk_x},{name:n+'.y',value:form.clk_y});
7544}
7545continue;
7546}
7547v=$.fieldValue(el,true);
7548if(v&&v.constructor===Array){
7549if(elements){
7550elements.push(el);
7551}
7552for(j=0,jmax=v.length;j<jmax;j++){
7553a.push({name:n,value:v[j]});
7554}
7555}else if(feature.fileapi&&el.type==='file'){
7556if(elements){
7557elements.push(el);
7558}
7559var files=el.files;
7560if(files.length){
7561for(j=0;j<files.length;j++){
7562a.push({name:n,value:files[j],type:el.type});
7563}
7564}else{
7565a.push({name:n,value:'',type:el.type});
7566}
7567}else if(v!==null&&typeof v!=='undefined'){
7568if(elements){
7569elements.push(el);
7570}
7571a.push({name:n,value:v,type:el.type,required:el.required});
7572}
7573}
7574if(!semantic&&form.clk){
7575var $input=$(form.clk),input=$input[0];
7576n=input.name;
7577if(n&&!input.disabled&&input.type==='image'){
7578a.push({name:n,value:$input.val()});
7579a.push({name:n+'.x',value:form.clk_x},{name:n+'.y',value:form.clk_y});
7580}
7581}
7582return a;
7583};
7584$.fn.formSerialize=function(semantic){
7585return $.param(this.formToArray(semantic));
7586};
7587$.fn.fieldSerialize=function(successful){
7588var a=[];
7589this.each(function(){
7590var n=this.name;
7591if(!n){
7592return;
7593}
7594var v=$.fieldValue(this,successful);
7595if(v&&v.constructor===Array){
7596for(var i=0,max=v.length;i<max;i++){
7597a.push({name:n,value:v[i]});
7598}
7599}else if(v!==null&&typeof v!=='undefined'){
7600a.push({name:this.name,value:v});
7601}
7602});
7603return $.param(a);
7604};
7605$.fn.fieldValue=function(successful){
7606for(var val=[],i=0,max=this.length;i<max;i++){
7607var el=this[i];
7608var v=$.fieldValue(el,successful);
7609if(v===null||typeof v==='undefined'||(v.constructor===Array&&!v.length)){
7610continue;
7611}
7612if(v.constructor===Array){
7613$.merge(val,v);
7614}else{
7615val.push(v);
7616}
7617}
7618return val;
7619};
7620$.fieldValue=function(el,successful){
7621var n=el.name,t=el.type,tag=el.tagName.toLowerCase();
7622if(typeof successful==='undefined'){
7623successful=true;
7624}
7625if(successful&&(!n||el.disabled||t==='reset'||t==='button'||
7626(t==='checkbox'||t==='radio')&&!el.checked||
7627(t==='submit'||t==='image')&&el.form&&el.form.clk!==el||
7628tag==='select'&&el.selectedIndex===-1)){
7629return null;
7630}
7631if(tag==='select'){
7632var index=el.selectedIndex;
7633if(index<0){
7634return null;
7635}
7636var a=[],ops=el.options;
7637var one=(t==='select-one');
7638var max=(one?index+1:ops.length);
7639for(var i=(one?index:0);i<max;i++){
7640var op=ops[i];
7641if(op.selected&&!op.disabled){
7642var v=op.value;
7643if(!v){
7644v=(op.attributes&&op.attributes.value&&!(op.attributes.value.specified))?op.text:op.value;
7645}
7646if(one){
7647return v;
7648}
7649a.push(v);
7650}
7651}
7652return a;
7653}
7654return $(el).val().replace(rCRLF,'\r\n');
7655};
7656$.fn.clearForm=function(includeHidden){
7657return this.each(function(){
7658$('input,select,textarea',this).clearFields(includeHidden);
7659});
7660};
7661$.fn.clearFields=$.fn.clearInputs=function(includeHidden){
7662var re=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;
7663return this.each(function(){
7664var t=this.type,tag=this.tagName.toLowerCase();
7665if(re.test(t)||tag==='textarea'){
7666this.value='';
7667}else if(t==='checkbox'||t==='radio'){
7668this.checked=false;
7669}else if(tag==='select'){
7670this.selectedIndex=-1;
7671}else if(t==='file'){
7672if(/MSIE/.test(navigator.userAgent)){
7673$(this).replaceWith($(this).clone(true));
7674}else{
7675$(this).val('');
7676}
7677}else if(includeHidden){
7678if((includeHidden===true&&/hidden/.test(t))||
7679(typeof includeHidden==='string'&&$(this).is(includeHidden))){
7680this.value='';
7681}
7682}
7683});
7684};
7685$.fn.resetForm=function(){
7686return this.each(function(){
7687var el=$(this);
7688var tag=this.tagName.toLowerCase();
7689switch(tag){
7690case'input':
7691this.checked=this.defaultChecked;
7692case'textarea':
7693this.value=this.defaultValue;
7694return true;
7695case'option':
7696case'optgroup':
7697var select=el.parents('select');
7698if(select.length&&select[0].multiple){
7699if(tag==='option'){
7700this.selected=this.defaultSelected;
7701}else{
7702el.find('option').resetForm();
7703}
7704}else{
7705select.resetForm();
7706}
7707return true;
7708case'select':
7709el.find('option').each(function(i){
7710this.selected=this.defaultSelected;
7711if(this.defaultSelected&&!el[0].multiple){
7712el[0].selectedIndex=i;
7713return false;
7714}
7715});
7716return true;
7717case'label':
7718var forEl=$(el.attr('for'));
7719var list=el.find('input,select,textarea');
7720if(forEl[0]){
7721list.unshift(forEl[0]);
7722}
7723list.resetForm();
7724return true;
7725case'form':
7726if(typeof this.reset==='function'||(typeof this.reset==='object'&&!this.reset.nodeType)){
7727this.reset();
7728}
7729return true;
7730default:
7731el.find('form,input,label,select,textarea').resetForm();
7732return true;
7733}
7734});
7735};
7736$.fn.enable=function(b){
7737if(typeof b==='undefined'){
7738b=true;
7739}
7740return this.each(function(){
7741this.disabled=!b;
7742});
7743};
7744$.fn.selected=function(select){
7745if(typeof select==='undefined'){
7746select=true;
7747}
7748return this.each(function(){
7749var t=this.type;
7750if(t==='checkbox'||t==='radio'){
7751this.checked=select;
7752}else if(this.tagName.toLowerCase()==='option'){
7753var $sel=$(this).parent('select');
7754if(select&&$sel[0]&&$sel[0].type==='select-one'){
7755$sel.find('option').selected(false);
7756}
7757this.selected=select;
7758}
7759});
7760};
7761$.fn.ajaxSubmit.debug=false;
7762function log(){
7763if(!$.fn.ajaxSubmit.debug){
7764return;
7765}
7766var msg='[jquery.form] '+Array.prototype.join.call(arguments,'');
7767if(window.console&&window.console.log){
7768window.console.log(msg);
7769}else if(window.opera&&window.opera.postError){
7770window.opera.postError(msg);
7771}
7772}
7773}));
7774
7775
7776/* prive/javascript/jquery.autosave.js?1790327464 */
7777
7778(function($){
7779$.fn.autosave=function(opt){
7780opt=$.extend({
7781url:window.location,
7782confirm:false,
7783confirmstring:'Sauvegarder ?'
7784},opt);
7785var save_changed=function(){
7786$('form.autosavechanged')
7787.each(function(){
7788if(!opt.confirm||confirm(opt.confirmstring)){
7789var contenu=$(this).serialize();
7790var d=new Date();
7791contenu=contenu+"&__timestamp="+Math.round(d.getTime()/1000);
7792$.post(opt.url,{
7793'action':'session',
7794'var':'autosave_'+$('input[name=autosave]',this).val(),
7795'val':contenu
7796});
7797}
7798}).removeClass('autosavechanged');
7799};
7800$(window).on('unload',save_changed);
7801return this
7802.on('keyup',function(){
7803$(this).addClass('autosavechanged');
7804})
7805.on('change',function(){
7806$(this).addClass('autosavechanged');
7807save_changed();
7808})
7809.on('submit',function(){
7810save_changed();
7811});
7812};
7813})(jQuery);
7814
7815
7816/* prive/javascript/jquery.placeholder-label.js?1790327464 */
7817
7818(function($){
7819$.placeholderLabel={
7820placeholder_class:null,
7821add_placeholder:function(){
7822if($(this).val()==$(this).attr('placeholder')){
7823$(this).val('').removeClass($.placeholderLabel.placeholder_class);
7824}
7825},
7826remove_placeholder:function(){
7827if($(this).val()==''){
7828$(this).val($(this).attr('placeholder')).addClass($.placeholderLabel.placeholder_class);
7829}
7830},
7831disable_placeholder_fields:function(){
7832$(this).find("input[placeholder]").each(function(){
7833if($(this).val()==$(this).attr('placeholder')){
7834$(this).val('');
7835}
7836});
7837return true;
7838}
7839};
7840$.fn.placeholderLabel=function(options){
7841var dummy=document.createElement('input');
7842if(dummy.placeholder!=undefined){
7843return this;
7844}
7845var config={
7846placeholder_class:'placeholder'
7847};
7848if(options)$.extend(config,options);
7849$.placeholderLabel.placeholder_class=config.placeholder_class;
7850this.each(function(){
7851var input=$(this);
7852input.focus($.placeholderLabel.add_placeholder);
7853input.blur($.placeholderLabel.remove_placeholder);
7854input.triggerHandler('focus');
7855input.triggerHandler('blur');
7856$(this.form).submit($.placeholderL
7856abel.disable_placeholder_fields);
7857});
7858return this;
7859}
7860})(jQuery);
7861
7862
7863/* prive/javascript/ajaxCallback.js?1790327464 */
7864jQuery.spip=jQuery.spip||{};
7865jQuery.spip.log=function(){
7866if(jQuery.spip.debug&&window.console&&window.console.log)
7867window.console.log.apply(this,arguments);
7868}
7869jQuery.spip.test_espace_prive=function(){
7870if(typeof spipConfig.core.test_espace_prive!=undefined&&spipConfig.core.test_espace_prive){
7871return true;
7872}
7873return false;
7874}
7875if(!jQuery.spip.load_handlers){
7876jQuery.spip.load_handlers=new Array();
7877function onAjaxLoad(f){
7878jQuery.spip.load_handlers.push(f);
7879};
7880jQuery.spip.triggerAjaxLoad=function(root){
7881jQuery.spip.log('triggerAjaxLoad');
7882jQuery.spip.log(root);
7883for(var i=0;i<jQuery.spip.load_handlers.length;i++)
7884jQuery.spip.load_handlers[i].apply(root);
7885};
7886jQuery.spip.intercepted={};
7887jQuery.spip.intercepted.load=jQuery.fn.load;
7888jQuery.fn.load=function(url,params,callback){
7889if(typeof url!=="string"){
7890return jQuery.spip.intercepted.load.apply(this,arguments);
7891}
7892callback=callback||function(){};
7893if(params){
7894if(params.constructor==Function){
7895callback=params;
7896params=null;
7897}
7898}
7899params=jQuery.extend(params,{triggerAjaxLoad:false});
7900var callback2=function(){jQuery.spip.log('jQuery.load');jQuery.spip.triggerAjaxLoad(this);callback.apply(this,arguments);};
7901return jQuery.spip.intercepted.load.apply(this,[url,params,callback2]);
7902};
7903jQuery.spip.intercepted.ajaxSubmit=jQuery.fn.ajaxSubmit;
7904jQuery.fn.ajaxSubmit=function(options){
7905options=options||{};
7906if(typeof options.onAjaxLoad=="undefined"||options.onAjaxLoad!=false){
7907var me=jQuery(this).parents('div.ajax');
7908if(me.length)
7909me=me.parent();
7910else
7911me=document;
7912if(typeof options=='function')
7913options={success:options};
7914var callback=options.success||function(){};
7915options.success=function(){callback.apply(this,arguments);jQuery.spip.log('jQuery.ajaxSubmit');jQuery.spip.triggerAjaxLoad(me);}
7916}
7917return jQuery.spip.intercepted.ajaxSubmit.apply(this,[options]);
7918}
7919jQuery.spip.intercepted.ajax=jQuery.ajax;
7920jQuery.ajax=function(url,settings){
7921if(typeof settings=='undefined'){
7922settings={};
7923if(typeof url=='object'){
7924settings=url;
7925url=null;
7926}
7927}
7928if(typeof url=='string'){
7929settings['url']=url;
7930}
7931if(settings.data&&settings.data['triggerAjaxLoad']===false){
7932settings.data['triggerAjaxLoad']=null;
7933return jQuery.spip.intercepted.ajax(settings);
7934}
7935var s=jQuery.extend(true,{},jQuery.ajaxSettings,settings);
7936var callbackContext=s.context||s;
7937try{
7938if(jQuery.ajax.caller==jQuery.spip.intercepted.load||jQuery.ajax.caller==jQuery.spip.intercepted.ajaxSubmit)
7939return jQuery.spip.intercepted.ajax(settings);
7940}
7941catch(err){}
7942var orig_complete=s.complete||function(){};
7943settings.complete=function(res,status){
7944var dataType=settings.dataType;
7945var ct=(res&&(typeof res.getResponseHeader=='function'))
7946?res.getResponseHeader("content-type"):'';
7947var xml=!dataType&&ct&&ct.indexOf("xml")>=0;
7948orig_complete.call(callbackContext,res,status);
7949if((!dataType&&!xml)||dataType=="html"){
7950jQuery.spip.log('jQuery.ajax');
7951if(typeof s.onAjaxLoad=="undefined"||s.onAjaxLoad!=false)
7952jQuery.spip.triggerAjaxLoad(s.ajaxTarget?s.ajaxTarget:document);
7953}
7954};
7955return jQuery.spip.intercepted.ajax(settings);
7956};
7957}
7958jQuery.uaMatch=function(ua){
7959ua=ua.toLowerCase();
7960var match=/(chrome)[ \/]([\w.]+)/.exec(ua)||/(webkit)[ \/]([\w.]+)/.exec(ua)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua)||/(msie) ([\w.]+)/.exec(ua)||
7961ua.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua)||
7962[];
7963return{
7964browser:match[1]||"",
7965version:match[2]||"0"
7966};
7967};
7968if(!jQuery.browser){
7969matched=jQuery.uaMatch(navigator.userAgent);
7970browser={};
7971if(matched.browser){
7972browser[matched.browser]=true;
7973browser.version=matched.version;
7974}
7975if(browser.chrome){
7976browser.webkit=true;
7977}else if(browser.webkit){
7978browser.safari=true;
7979}
7980jQuery.browser=browser;
7981}
7982jQuery.getScript=function(url,callback){
7983return $.ajax({
7984url:url,
7985dataType:"script",
7986success:callback,
7987cache:true
7988});
7989}
7990jQuery.fn.positionner=function(force,setfocus){
7991if(!this.length){
7992return this;
7993}
7994var offset=jQuery(this).offset();
7995var hauteur=parseInt(jQuery(this).css('height'));
7996var marge=jQuery.spip.positionner_marge||5;
7997var scrolltop=self['pageYOffset']||
7998jQuery.boxModel&&document.documentElement['scrollTop']||
7999document.body['scrollTop'];
8000var h=jQuery(window).height();
8001var scroll=0;
8002if(force||(offset&&offset['top']-marge<=scrolltop)){
8003scroll=offset['top']-marge;
8004}
8005else if(offset&&offset['top']+hauteur-h+marge>scrolltop){
8006scroll=Math.min(offset['top']-marge-15,offset['top']+hauteur-h+40);
8007}
8008if(scroll)
8009jQuery('html,body')
8010.animate({scrollTop:scroll},300);
8011if(setfocus!==false)
8012jQuery(jQuery('*',this).filter('input[type=text],textarea')[0]).focus();
8013return this;
8014}
8015jQuery.spip.virtualbuffer_id='spip_virtualbufferupdate';
8016jQuery.spip.initReaderBuffer=function(){
8017if(jQuery('#'+jQuery.spip.virtualbuffer_id).length)return;
8018jQuery('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>');
8019}
8020jQuery.spip.updateReaderBuffer=function(){
8021var i=jQuery('#'+jQuery.spip.virtualbuffer_id);
8022if(!i.length)return;
8023i.val(parseInt(i.val())+1);
8024}
8025jQuery.fn.formulaire_setContainer=function(){
8026if(!this.closest('.ajax-form-container').length){
8027this.find('script').remove();
8028var aria=this.data('aria');
8029var $container=jQuery('<div class="ajax-form-container"></div>');
8030if(aria&&typeof aria==='object'){
8031for(var i in aria){
8032$container=$container.attr(i,aria[i]);
8033}
8034}
8035else{
8036aria=false;
8037}
8038this.wrap($container);
8039if(aria){
8040jQuery('form',this).not('[aria-live]').attr('aria-live','off');
8041}
8042}
8043return this;
8044}
8045jQuery.fn.formulaire_dyn_ajax=function(target){
8046if(this.length)
8047jQuery.spip.initReaderBuffer();
8048return this.each(function(){
8049var scrollwhensubmit=!jQuery(this).is('.noscroll');
8050var cible=target||this;
8051jQuery(cible).formulaire_setContainer();
8052jQuery('form:not(.noajax):not(.bouton_action_post)',this).each(function(){
8053var leform=this;
8054var leclk,leclk_x,leclk_y;
8055var onError=function(xhr,status,error,$form){
8056jQuery(leform).ajaxFormUnbind().find('input[name="var_ajax"]').remove();
8057var msg="Erreur";
8058if(typeof(error_on_ajaxform)!=="undefined")msg=error_on_ajaxform;
8059jQuery(leform).prepend("<p class='error ajax-error none'>"+msg+"</p>").find('.ajax-error').show('fast');
8060jQuery(cible).closest('.ajax-form-container').endLoading(true);
8061}
8062jQuery(this).prepend("<input type='hidden' name='var_ajax' value='form'>")
8063.ajaxForm({
8064beforeSubmit:function(){
8065leclk=leform.clk;
8066var scrollwhensubmit_button=true;
8067if(leclk){
8068scrollwhensubmit_button=!jQuery(leclk).is('.noscroll');
8069var n=leclk.name;
8070if(n&&!leclk.disabled&&leclk.type==="image"){
8071leclk_x=leform.clk_x;
8072leclk_y=leform.clk_y;
8073}
8074}
8075jQuery(cible).wrap('<div />');
8076cible=jQuery(cible).parent();
8077jQuery(cible).closest('.ajax-form-container').animateLoading();
8078if(scrollwhensubmit&&scrollwhensubmit_button){
8079jQuery(cible).positionner(false,false);
8080}
8081},
8082error:onError,
8083success:function(c,status,xhr,$form){
8084if(c.match(/^\s*noajax\s*$/)){
8085jQuery("input[name=var_ajax]",leform).remove();
8086if(leclk){
8087var n=leclk.name;
8088if(n&&!leclk.disabled){
8089jQuery(leform).prepend("<input type='hidden' name='"+n+"' value='"+leclk.value+"'>");
8090if(leclk.type==="image"){
8091jQuery(leform).prepend("<input type='hidden' name='"+n+".x' value='"+leform.clk_x+"'>");
8092jQuery(leform).prepend("<input type='hidden' name='"+n+".y' value='"+leform.clk_y+"'>");
8093}
8094}
8095}
8096jQuery(leform).ajaxFormUnbind().closest('.formulaire_spip').addClass('resubmit-noajax');
8097try{
8098leform.submit();
8099}catch(err){
8100var submitFn=document.createElement('form').submit;
8101submitFn.apply(leform);
8102}
8103}
8104else{
8105if(!c.length||c.indexOf("ajax-form-is-ok")==-1)
8106return onError.apply(this,[status,xhr,$form]);
8107var preloaded=jQuery.spip.preloaded_urls;
8108jQuery.spip.preloaded_urls={};
8109jQuery(cible).html(c);
8110var a=jQuery('a:first',cible).eq(0);
8111var d=jQuery('div.ajax',cible);
8112if(!d.length){
8113jQuery(cible).addClass('ajax');
8114if(!scrollwhensubmit)
8115jQuery(cible).addClass('noscroll');
8116}
8117else{
8118d.siblings('br.bugajaxie').remove();
8119cible=jQuery(":first",cible);
8120cible.unwrap();
8121}
8122if(a.length
8123&&a.is('a[name=ajax_ancre]')
8124&&jQuery(a.attr('href'),cible).length){
8125a=a.attr('href');
8126if(jQuery(a,cible).length)
8127setTimeout(function(){
8128jQuery(a,cible).positionner(false);
8129},10);
8130jQuery(cible).closest('.ajax-form-container').endLoading(true);
8131}
8132else{
8133if(a.length&&a.is('a[name=ajax_redirect]')){
8134a=a.get(0).href;
8135setTimeout(function(){
8136var cur=window.location.href.split('#');
8137document.location.replace(a);
8138if(cur[0]==a.split('#')[0]){
8139window.location.reload();
8140}
8141},10);
8142jQuery(cible).closest('.ajax-form-container').animateLoading();
8143}
8144else{
8145jQuery(cible).closest('.ajax-form-container').endLoading(true);
8146}
8147}
8148if(!jQuery('.reponse_formulaire_ok',cible).length)
8149jQuery.spip.preloaded_urls=preloaded;
8150jQuery.spip.updateReaderBuffer();
8151}
8152}
8153})
8154.addClass('noajax hasajax');
8155});
8156});
8157}
8158jQuery.fn.formulaire_verifier=function(callback,champ){
8159var erreurs={'message_erreur':'form non ajax'};
8160var me=this;
8161if(jQuery(me).closest('.ajax-form-container').attr('aria-busy')!='true'){
8162if(jQuery(me).is('form.hasajax')){
8163jQuery(me).ajaxSubmit({
8164dataType:"json",
8165data:{formulaire_action_verifier_json:true},
8166success:function(errs){
8167var args=[errs,champ]
8168if(jQuery(me).closest('.ajax-form-container').attr('aria-busy')!='true')
8169callback.apply(me,args);
8170}
8171});
8172}
8173else
8174callback.apply(me,[erreurs,champ]);
8175}
8176return this;
8177}
8178jQuery.fn.formulaire_activer_verif_auto=function(callback){
8179callback=callback||formulaire_actualiser_erreurs;
8180var me=jQuery(this).closest('.ajax-form-container');
8181var check=function(){
8182var name=jQuery(this).attr('name');
8183setTimeout(function(){me.find('form').formulaire_verifier(callback,name);},50);
8184}
8185var activer=function(){
8186if(me.find('form').attr('data-verifjson')!='on'){
8187me
8188.find('form')
8189.attr('data-verifjson','on')
8190.find('input,select,textarea')
8191.on('change',check);
8192}
8193}
8194jQuery(activer);
8195onAjaxLoad(function(){setTimeout(activer,150);});
8196}
8197function formulaire_actualiser_erreurs(erreurs){
8198var parent=jQuery(this).closest('.formulaire_spip');
8199if(!parent.length)return;
8200parent.find('.reponse_formulaire,.erreur_message').fadeOut().remove();
8201parent.find('.erreur').removeClass('erreur');
8202if(erreurs['message_ok'])
8203parent.find('form').before('<p class="reponse_formulaire reponse_formulaire_ok">'+erreurs['message_ok']+'</p>');
8204if(erreurs['message_erreur'])
8205parent.find('form').before('<p class="reponse_formulaire reponse_formulaire_erreur">'+erreurs['message_erreur']+'</p>');
8206for(var k in erreurs){
8207var saisie=parent.find('.editer_'+k);
8208if(saisie.length){
8209saisie.addClass('erreur');
8210saisie.find('label').after('<span class="erreur_message">'+erreurs[k]+'</span>');
8211}
8212}
8213}
8214var ajax_confirm=true;
8215var ajax_confirm_date=0;
8216var spip_confirm=window.confirm;
8217function _confirm(message){
8218ajax_confirm=spip_confirm(message);
8219if(!ajax_confirm){
8220var d=new Date();
8221ajax_confirm_date=d.getTime();
8222}
8223return ajax_confirm;
8224}
8225window.confirm=_confirm;
8226var ajaxbloc_selecteur;
8227jQuery.spip.preloaded_urls={};
8228jQuery.spip.on_ajax_loaded=function(blocfrag,c,href,history){
8229history=history||(history==null);
8230if(typeof href==undefined||href==null)
8231history=false;
8232if(history)
8233jQuery.spip.setHistoryState(blocfrag);
8234if(jQuery(blocfrag).attr('data-loaded-callback')){
8235var callback=eval(jQuery(blocfrag).attr('data-loaded-callback'));
8236callback.call(blocfrag,c,href,history);
8237}
8238else{
8239jQuery(blocfrag)
8240.html(c)
8241.endLoading();
8242}
8243if(typeof href!=undefined)
8244jQuery(blocfrag).attr('data-url',href);
8245if(history){
8246var href_history=href;
8247if(href_history.indexOf('var_nullify')!==-1){
8248href_history=parametre_url(href_history,'var_nullify','');
8249}
8250jQuery.spip.pushHistoryState(href_history);
8251jQuery.spip.setHistoryState(blocfrag);
8252}
8253var a=jQuery('a:first',jQuery(blocfrag)).eq(0);
8254if(a.length
8255&&a.is('a[name=ajax_ancre]')
8256&&jQuery(a.attr('href'),blocfrag).length){
8257a=a.attr('href');
8258jQuery(a,blocfrag).positionner(false);
8259}
8260jQuery.spip.log('on_ajax_loaded');
8261jQuery.spip.triggerAjaxLoad(blocfrag);
8262a=jQuery(blocfrag).parents('form.hasajax')
8263if(a.length)
8264a.eq(0).removeClass('noajax').parents('div.ajax').formulaire_dyn_ajax();
8265jQuery.spip.updateReaderBuffer();
8266}
8267jQuery.spip.on_ajax_failed=function(blocfrag,statusCode,href,history){
8268jQuery(blocfrag).addClass('invalid');
8269jQuery.spip.log("Echec AJAX statusCode "+statusCode)
8270history=history||(history==null);
8271if(history){
8272if(jQuery.spip.debug){
8273jQuery.spip.log("On redirige sur sur "+href)
8274}
8275else{
8276window.location.href=href;
8277}
8278}
8279}
8280jQuery.spip.stateId=0;
8281jQuery.spip.setHistoryState=function(blocfrag){
8282if(!window.history.replaceState)return;
8283if(!blocfrag.attr('id')){
8284while(jQuery('#ghsid'+jQuery.spip.stateId).length)
8285jQuery.spip.stateId++;
8286blocfrag.attr('id','ghsid'+jQuery.spip.stateId);
8287}
8288var href=blocfrag.attr('data-url')||blocfrag.attr('data-origin');
8289href=jQuery("<"+"a href='"+href+"'></a>").get(0).href;
8290var state={
8291id:blocfrag.attr('id'),
8292href:href
8293};
8294var ajaxid=blocfrag.attr('class').match(/\bajax-id-[\w-]+\b/);
8295if(ajaxid&&ajaxid.length)
8296state["ajaxid"]=ajaxid[0];
8297window.history.replaceState(state,window.document.title,window.document.location);
8298}
8299jQuery.spip.pushHistoryState=function(href,title){
8300if(!window.history.pushState)
8301return false;
8302window.history.pushState({},title,href);
8303}
8304window.onpopstate=function(popState){
8305if(popState.state&&popState.state.href){
8306var blocfrag=false;
8307if(popState.state.id){
8308blocfrag=jQuery('#'+popState.state.id);
8309}
8310if((!blocfrag||!blocfrag.length)&&popState.state.ajaxid){
8311blocfrag=jQuery('.ajaxbloc.'+popState.state.ajaxid);
8312}
8313if(blocfrag&&blocfrag.length==1){
8314jQuery.spip.ajaxClick(blocfrag,popState.state.href,{history:false});
8315return true;
8316}
8317else{
8318window.location.href=popState.state.href;
8319}
8320}
8321}
8322jQuery.spip.loadAjax=function(blocfrag,url,href,options){
8323var force=options.force||false;
8324if(jQuery(blocfrag).attr('data-loading-callback')){
8325var callback=eval(jQuery(blocfrag).attr('data-loading-callback'));
8326callback.call(blocfrag,url,href,options);
8327}
8328else{
8329jQuery(blocfrag).animateLoading();
8330}
8331if(jQuery.spip.preloaded_urls[url]&&!force){
8332if(jQuery.spip.preloaded_urls[url]=="<!--loading-->"){
8333setTimeout(function(){jQuery.spip.loadAjax(blocfrag,url,href,options);},100);
8334return;
8335}
8336jQuery.spip.on_ajax_loaded(blocfrag,jQuery.spip.preloaded_urls[url],href,options.history);
8337}else{
8338var d=new Date();
8339jQuery.spip.preloaded_urls[url]="<!--loading-->";
8340jQuery.ajax({
8341url:parametre_url(url,'var_t',d.getTime()),
8342onAjaxLoad:false,
8343success:function(c){
8344jQuery.spip.on_ajax_loaded(blocfrag,c,href,options.history);
8345jQuery.spip.preloaded_urls[url]=c;
8346if(options.callback&&typeof options.callback=="function")
8347options.callback.apply(blocfrag);
8348},
8349error:function(e){
8350jQuery.spip.preloaded_urls[url]='';
8351jQuery.spip.on_ajax_failed(blocfrag,e.status,href,options.history);
8352}
8353});
8354}
8355}
8356jQuery.spip.makeAjaxUrl=function(href,ajax_env,origin){
8357var url=href.split('#');
8358url[0]=parametre_url(url[0],'var_ajax',1);
8359url[0]=parametre_url(url[0],'var_ajax_env',ajax_env);
8360if(origin){
8361if(origin.indexOf('var_nullify')!==-1){
8362origin=parametre_url(origin,'var_nullify','');
8363}
8364var p=origin.indexOf('?');
8365var nullify=[];
8366if(p!==-1){
8367var args=origin.substring(p+1).split('&');
8368var val;
8369var arg;
8370for(var n=0;n<args.length;n++){
8371arg=args[n].split('=');
8372arg=decodeURIComponent(arg[0]);
8373p=arg.indexOf('[');
8374if(p!==-1)
8375arg=arg.substring(0,p);
8376val=parametre_url(href,arg);
8377if((typeof val=="undefined"||val==null)&&nullify.indexOf(arg)===-1){
8378nullify.push(arg);
8379}
8380}
8381if(nullify.length){
8382url[0]=url[0]+'&'+'var_nullify='+encodeURIComponent(nullify.join('|'));
8383}
8384}
8385}
8386if(url[1])
8387url[0]=parametre_url(url[0],'var_ajax_ancre',url[1]);
8388return url[0];
8389}
8390jQuery.spip.ajaxReload=function(blocfrag,options){
8391var ajax_env=blocfrag.attr('data-ajax-env');
8392if(!ajax_env||ajax_env==undefined)return;
8393var href=options.href||blocfrag.attr('data-url')||blocfrag.attr('data-origin');
8394if(href&&typeof href!=undefined){
8395if(href.indexOf('var_nullify')!==-1){
8396href=parametre_url(href,'var_nullify','');
8397}
8398options=options||{};
8399var callback=options.callback||null;
8400var history=options.history||false;
8401var args=options.args||{};
8402for(var key in args){
8403href=parametre_url(href,key,args[key]==undefined?'':args[key],'&',args[key]==undefined?false:true);
8404}
8405var url=jQuery.spip.makeAjaxUrl(href,ajax_env,blocfrag.attr('data-origin'));
8406jQuery.spip.loadAjax(blocfrag,url,href,{force:true,callback:callback,history:history});
8407return true;
8408}
8409}
8410jQuery.spip.ajaxClick=function(blocfrag,href,options){
8411var ajax_env=blocfrag.attr('data-ajax-env');
8412if(!ajax_env||ajax_env==undefined)return;
8413if(!ajax_confirm){
8414ajax_confirm=true;
8415var d=new Date();
8416if((d.getTime()-ajax_confirm_date)<=2)
8417return false;
8418}
8419var url=jQuery.spip.makeAjaxUrl(href,ajax_env,blocfrag.attr('data-origin'));
8420jQuery.spip.loadAjax(blocfrag,url,href,options);
8421return false;
8422}
8423jQuery.fn.ajaxbloc=function(){
8424if(this.length)
8425jQuery.spip.initReaderBuffer();
8426if(ajaxbloc_selecteur==undefined)
8427ajaxbloc_selecteur='.pagination a,a.ajax';
8428return this.each(function(){
8429jQuery('div.ajaxbloc',this).ajaxbloc();
8430var blocfrag=jQuery(this);
8431var ajax_env=blocfrag.attr('data-ajax-env');
8432if(!ajax_env||ajax_env==undefined)return;
8433blocfrag.not('.bind-ajaxReload').on('ajaxReload',function(event,options){
8434if(jQuery.spip.ajaxReload(blocfrag,options))
8435event.stopPropagation();
8436}).addClass('bind-ajaxReload');
8437jQuery(ajaxbloc_selecteur,this).not('.noajax,.bind-ajax')
8438.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)});})
8439.addClass('bind-ajax')
8440.filter('.preload').each(function(){
8441var href=this.href;
8442var url=jQuery.spip.makeAjaxUrl(href,ajax_env,blocfrag.attr('data-origin'));
8443if(!jQuery.spip.preloaded_urls[url]){
8444jQuery.spip.preloaded_urls[url]='<!--loading-->';
8445jQuery.ajax({url:url,onAjaxLoad:false,success:function(r){jQuery.spip.preloaded_urls[url]=r;},error:function(){jQuery.spip.preloaded_urls[url]='';}});
8446}
8447});
8448jQuery('form.bouton_action_post.ajax',this).not('.noajax,.bind-ajax').each(function(){
8449var leform=this;
8450var url=jQuery(this).attr('action').split('#');
8451var scrollwhensubmit=(!jQuery(this).is('.noscroll')&&!jQuery('.submit',this).is('.noscroll'));
8452jQuery(this)
8453.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]+"'>":""))
8454.ajaxForm({
8455beforeSubmit:function(){
8456jQuery(blocfrag).animateLoading();
8457if(scrollwhensubmit){
8458jQuery(blocfrag).positionner(false);
8459}
8460},
8461onAjaxLoad:false,
8462success:function(c){
8463jQuery.spip.on_ajax_loaded(blocfrag,c);
8464jQuery.spip.preloaded_urls={};
8465},
8466error:function(e){
8467jQuery.spip.preloaded_urls={};
8468var href=parametre_url(url,'redirect');
8469if(!href){
8470href=window.location.href;
8471}
8472jQuery.spip.on_ajax_failed(blocfrag,e.status,href,e.status===400);
8473}
8474})
8475.addClass('bind-ajax');
8476});
8477});
8478};
8479jQuery.fn.followLink=function(){
8480$(this).click();
8481if(!$(this).is('.bind-ajax'))
8482window.location.href=$(this).get(0).href;
8483return this;
8484}
8485function ajaxReload(ajaxid,options){
8486jQuery('div.ajaxbloc.ajax-id-'+ajaxid).ajaxReload(options);
8487}
8488jQuery.fn.ajaxReload=function(options){
8489options=options||{};
8490jQuery(this).trigger('ajaxReload',[options]);
8491return this;
8492}
8493jQuery.fn.animateLoading=function(){
8494this.attr('aria-busy','true').addClass('loading').children().css('opacity',0.5);
8495if(typeof ajax_image_searching!='undefined'){
8496var i=(this).find('.image_loading');
8497if(i.length)i.eq(0).html(ajax_image_searching);
8498else this.prepend('<span class="image_loading">'+ajax_image_searching+'</span>');
8499}
8500return this;
8501}
8502jQuery.fn.animeajax=jQuery.fn.animateLoading;
8503jQuery.fn.endLoading=function(hard){
8504hard=hard||false;
8505this.attr('aria-busy','false').removeClass('loading');
8506if(hard){
8507this.children().css('opacity','');
8508this.find('.image_loading').html('');
8509}
8510return this;
8511}
8512jQuery.fn.animateRemove=function(callback){
8513if(this.length){
8514var me=this;
8515var color=$("<div class='remove'></div>").css('background-color');
8516var sel=$(this);
8517if(sel.is('tr'))
8518sel=sel.add('>td',sel);
8519sel.addClass('remove').css({backgroundColor:color}).animate({opacity:"0.0"},'fast',function(){
8520sel.removeClass('remove').css({backgroundColor:''});
8521if(callback)
8522callback.apply(me);
8523});
8524}
8525return this;
8526}
8527jQuery.fn.animateAppend=function(callback){
8528if(this.length){
8529var me=this;
8530var color=$("<div class='append'></div>").css('background-color');
8531var origin=$(this).css('background-color')||'#ffffff';
8532if(origin=='transparent')origin='#ffffff';
8533var sel=$(this);
8534if(sel.is('tr'))
8535sel=sel.add('>td',sel);
8536sel.css('opacity','0.0').addClass('append').css({backgroundColor:color}).animate({opacity:"1.0"},1000,function(){
8537sel.animate({backgroundColor:origin},3000,function(){
8538sel.removeClass('append').css({backgroundColor:''});
8539if(callback)
8540callback.apply(me);
8541});
8542});
8543}
8544return this;
8545}
8546function parametre_url(url,c,v,sep,force_vide){
8547if(typeof(url)=='undefined'){
8548url='';
8549}
8550var p;
8551var ancre='';
8552var a='./';
8553var args=[];
8554p=url.indexOf('#');
8555if(p!=-1){
8556ancre=url.substring(p);
8557url=url.substring(0,p);
8558}
8559p=url.indexOf('?');
8560if(p!==-1){
8561if(p>0)a=url.substring(0,p);
8562args=url.substring(p+1).split('&');
8563}
8564else
8565a=url;
8566var regexp=new RegExp('^('+c.replace('[]','\\[\\]')+'\\[?\\]?)(=.*)?$');
8567var ajouts=[];
8568var u=(typeof(v)!=='object')?encodeURIComponent(v):v;
8569var na=[];
8570var v_read=null;
8571for(var n=0;n<args.length;n++){
8572var val=args[n];
8573try{
8574val=decodeURIComponent(val);
8575}catch(e){}
8576var r=val.match(regexp);
8577if(r&&r.length){
8578if(v==null){
8579if(r[1].substr(-2)=='[]'){
8580if(!v_read)v_read=[];
8581v_read.push((r.length>2&&typeof r[2]!=='undefined')?r[2].substring(1):'');
8582}
8583else{
8584return(r.length>2&&typeof r[2]!=='undefined')?r[2].substring(1):'';
8585}
8586}
8587else if(!v.length){
8588}
8589else if(r[1].substr(-2)!='[]'){
8590na.push(r[1]+'='+u);
8591ajouts.push(r[1]);
8592}
8593}
8594else
8595na.push(args[n]);
8596}
8597if(v==null)return v_read;
8598if(v||v.length||force_vide){
8599ajouts="="+ajouts.join("=")+"=";
8600var all=c.split('|');
8601for(n=0;n<all.length;n++){
8602if(ajouts.search("="+all[n]+"=")==-1){
8603if(typeof(v)!=='object'){
8604na.push(all[n]+'='+u);
8605}
8606else{
8607var id=((all[n].substring(-2)=='[]')?all[n]:all[n]+"[]");
8608for(p=0;p<v.length;p++)
8609na.push(id+'='+encodeURIComponent(v[p]));
8610}
8611}
8612}
8613}
8614if(na.length){
8615if(!sep)sep='&';
8616a=a+"?"+na.join(sep);
8617}
8618return a+ancre;
8619}
8620function spip_logo_survol_hover(){
8621var me=jQuery(this);
8622if(me.attr('data-src-hover')){
8623me.attr('data-src-original',me.attr('src'));
8624me.attr('src',me.attr('data-src-hover'));
8625}
8626}
8627function spip_logo_survol_out(){
8628var me=jQuery(this);
8629if(me.attr('data-src-original')){
8630me.attr('src',me.attr('data-src-original'));
8631}
8632}
8633function disableClickAfterFormSubmit(){
8634if(jQuery(this).is('.processing-submitted-form')){
8635return false;
8636}
8637jQuery(this)
8638.addClass('processing-submitted-form')
8639.find('button[type="submit"]')
8640.attr('disabled','disabled')
8641.addClass('disabled')
8642}
8643function puce_enable_survol(){
8644jQuery('span.puce_objet_popup a',this).not('.puce-survol-enabled').click(function(){
8645selec_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'));
8646return false;
8647}).addClass('puce-survol-enabled');
8648jQuery('span.puce_objet',this).not('.puce-survol-enabled').mouseover(function(){
8649if(!this.puce_loaded){
8650this.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'));
8651}
8652}).addClass('puce-survol-enabled');
8653}
8654if(!window.var_zajax_content)
8655window.var_zajax_content='contenu';
8656jQuery(function(){
8657jQuery('form:not(.bouton_action_post)').parents('div.ajax')
8658.formulaire_dyn_ajax();
8659jQuery('div.ajaxbloc').ajaxbloc();
8660jQuery("input[placeholder]:text").placeholderLabel();
8661jQuery('.spip_logo_survol').hover(spip_logo_survol_hover,spip_logo_survol_out);
8662puce_enable_survol.apply(this);
8663jQuery('body').on('submit','form.bouton_action_post',disableClickAfterFormSubmit);
8664});
8665onAjaxLoad(function(){
8666if(jQuery){
8667jQuery('form:not(.bouton_action_post)',this).parents('div.ajax')
8668.formulaire_dyn_ajax();
8669if(jQuery(this).is('div.ajaxbloc'))
8670jQuery(this).ajaxbloc();
8671else if(jQuery(this).closest('div.ajaxbloc').length)
8672jQuery(this).closest('div.ajaxbloc').ajaxbloc();
8673else
8674jQuery('div.ajaxbloc',this).ajaxbloc();
8675jQuery("input[placeholder]:text",this).placeholderLabel();
8676jQuery('.spip_logo_survol',this).hover(spip_logo_survol_hover,spip_logo_survol_out);
8677puce_enable_survol.apply(this);
8678}
8679});
8680
8681
8682/* prive/javascript/js.cookie.js?1790327464 */
8683
8684;
8685(function(global,factory){
8686typeof exports==='object'&&typeof module!=='undefined'?module.exports=factory():
8687typeof define==='function'&&define.amd?define(factory):
8688(global=typeof globalThis!=='undefined'?globalThis:global||self,(function(){
8689var current=global.Cookies;
8690var exports=global.Cookies=factory();
8691exports.noConflict=function(){global.Cookies=current;return exports;};
8692})());
8693})(this,(function(){'use strict';
8694function assign(target){
8695for(var i=1;i<arguments.length;i++){
8696var source=arguments[i];
8697for(var key in source){
8698target[key]=source[key];
8699}
8700}
8701return target
8702}
8703var defaultConverter={
8704read:function(value){
8705if(value[0]==='"'){
8706value=value.slice(1,-1);
8707}
8708return value.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)
8709},
8710write:function(value){
8711return encodeURIComponent(value).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
8712decodeURIComponent
8713)
8714}
8715};
8716function init(converter,defaultAttributes){
8717function set(name,value,attributes){
8718if(typeof document==='undefined'){
8719return
8720}
8721attributes=assign({},defaultAttributes,attributes);
8722if(typeof attributes.expires==='number'){
8723attributes.expires=new Date(Date.now()+attributes.expires*864e5);
8724}
8725if(attributes.expires){
8726attributes.expires=attributes.expires.toUTCString();
8727}
8728name=encodeURIComponent(name)
8729.replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent)
8730.replace(/[()]/g,escape);
8731var stringifiedAttributes='';
8732for(var attributeName in attributes){
8733if(!attributes[attributeName]){
8734continue
8735}
8736stringifiedAttributes+='; '+attributeName;
8737if(attributes[attributeName]===true){
8738continue
8739}
8740stringifiedAttributes+='='+attributes[attributeName].split(';')[0];
8741}
8742return(document.cookie=
8743name+'='+converter.write(value,name)+stringifiedAttributes)
8744}
8745function get(name){
8746if(typeof document==='undefined'||(arguments.length&&!name)){
8747return
8748}
8749var cookies=document.cookie?document.cookie.split('; '):[];
8750var jar={};
8751for(var i=0;i<cookies.length;i++){
8752var parts=cookies[i].split('=');
8753var value=parts.slice(1).join('=');
8754try{
8755var found=decodeURIComponent(parts[0]);
8756jar[found]=converter.read(value,found);
8757if(name===found){
8758break
8759}
8760}catch(e){}
8761}
8762return name?jar[name]:jar
8763}
8764return Object.create(
8765{
8766set,
8767get,
8768remove:function(name,attributes){
8769set(
8770name,
8771'',
8772assign({},attributes,{
8773expires:-1
8774})
8775);
8776},
8777withAttributes:function(attributes){
8778return init(this.converter,assign({},this.attributes,attributes))
8779},
8780withConverter:function(converter){
8781return init(assign({},this.converter,converter),this.attributes)
8782}
8783},
8784{
8785attributes:{value:Object.freeze(defaultAttributes)},
8786converter:{value:Object.freeze(converter)}
8787}
8788)
8789}
8790var api=init(defaultConverter,{path:'/'});
8791return api;
8792}));
8793
8794
8795/* plugins-dist/mediabox/lib/lity/lity.js?1790327464 */
8796
8797(function(window,factory){
8798if(typeof define==='function'&&define.amd){
8799define(['jquery'],function($){
8800return factory(window,$);
8801});
8802}else if(typeof module==='object'&&typeof module.exports==='object'){
8803module.exports=factory(window,require('jquery'));
8804}else{
8805window.lity=factory(window,window.jQuery||window.Zepto);
8806}
8807}(typeof window!=="undefined"?window:this,function(window,$){
8808'use strict';
8809var document=window.document;
8810var _win=$(window);
8811var _deferred=$.Deferred;
8812var _html=$('html');
8813var _instances=[];
8814var _attrAriaHidden='aria-hidden';
8815var _dataAriaHidden='lity-'+_attrAriaHidden;
8816var _focusableElementsSelector='a[href],area[href],input:not([disabled]),select:not([disabled]),textarea:not([disabled]),button:not([disabled]),iframe,object,embed,[contenteditable],[tabindex]:not
8816([tabindex^="-"])';
8817var _defaultOptions={
8818esc:true,
8819handler:null,
8820handlers:{
8821image:imageHandler,
8822inline:inlineHandler,
8823iframe:iframeHandler
8824},
8825forceFocusInside:false,
8826template:'<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>&times;</button></div></div></div>'
8827};
8828var _imageRegexp=/(^data:image\/)|(\.(png|jpe?g|gif|svg|webp|bmp|ico|tiff?)(\?\S*)?$)/i;
8829var _transitionEndEvent=(function(){
8830var el=document.createElement('div');
8831var transEndEventNames={
8832WebkitTransition:'webkitTransitionEnd',
8833MozTransition:'transitionend',
8834OTransition:'oTransitionEnd otransitionend',
8835transition:'transitionend'
8836};
8837for(var name in transEndEventNames){
8838if(el.style[name]!==undefined){
8839return transEndEventNames[name];
8840}
8841}
8842return false;
8843})();
8844function transitionEnd(element){
8845var deferred=_deferred();
8846if(!_transitionEndEvent||!element.length){
8847deferred.resolve();
8848}else{
8849element.one(_transitionEndEvent,deferred.resolve);
8850setTimeout(deferred.resolve,500);
8851}
8852return deferred.promise();
8853}
8854function settings(currSettings,key,value){
8855if(arguments.length===1){
8856return $.extend({},currSettings);
8857}
8858if(typeof key==='string'){
8859if(typeof value==='undefined'){
8860return typeof currSettings[key]==='undefined'
8861?null
8862:currSettings[key];
8863}
8864currSettings[key]=value;
8865}else{
8866$.extend(currSettings,key);
8867}
8868return this;
8869}
8870function parseQueryParams(params){
8871var pos=params.indexOf('?');
8872if(pos>-1){
8873params=params.substr(pos+1);
8874}
8875var pairs=decodeURI(params.split('#')[0]).split('&');
8876var obj={},p;
8877for(var i=0,n=pairs.length;i<n;i++){
8878if(!pairs[i]){
8879continue;
8880}
8881p=pairs[i].split('=');
8882obj[p[0]]=p[1];
8883}
8884return obj;
8885}
8886function appendQueryParams(url,params){
8887if(!params){
8888return url;
8889}
8890if('string'===$.type(params)){
8891params=parseQueryParams(params);
8892}
8893if(url.indexOf('?')>-1){
8894var split=url.split('?');
8895url=split.shift();
8896params=$.extend(
8897{},
8898parseQueryParams(split[0]),
8899params
8900)
8901}
8902return url+'?'+$.param(params);
8903}
8904function transferHash(originalUrl,newUrl){
8905var pos=originalUrl.indexOf('#');
8906if(-1===pos){
8907return newUrl;
8908}
8909if(pos>0){
8910originalUrl=originalUrl.substr(pos);
8911}
8912return newUrl+originalUrl;
8913}
8914function iframe(iframeUrl,instance,queryParams,hashUrl){
8915instance&&instance.element().addClass('lity-iframe');
8916if(queryParams){
8917iframeUrl=appendQueryParams(iframeUrl,queryParams);
8918}
8919if(hashUrl){
8920iframeUrl=transferHash(hashUrl,iframeUrl);
8921}
8922return'<div class="lity-iframe-container"><iframe frameborder="0" allowfullscreen allow="autoplay; fullscreen" src="'+iframeUrl+'"/></div>';
8923}
8924function error(msg){
8925return $('<span class="lity-error"></span>').append(msg);
8926}
8927function imageHandler(target,instance){
8928var desc=(instance.opener()&&instance.opener().data('lity-desc'))||'Image with no description';
8929var img=$('<img src="'+target+'" alt="'+desc+'"/>');
8930var deferred=_deferred();
8931var failed=function(){
8932deferred.reject(error('Failed loading image'));
8933};
8934img
8935.on('load',function(){
8936if(this.naturalWidth===0){
8937return failed();
8938}
8939deferred.resolve(img);
8940})
8941.on('error',failed)
8942;
8943return deferred.promise();
8944}
8945imageHandler.test=function(target){
8946return _imageRegexp.test(target);
8947};
8948function inlineHandler(target,instance){
8949var el,placeholder,hasHideClass;
8950try{
8951el=$(target);
8952}catch(e){
8953return false;
8954}
8955if(!el.length){
8956return false;
8957}
8958placeholder=$('<i style="display:none !important"></i>');
8959hasHideClass=el.hasClass('lity-hide');
8960instance
8961.element()
8962.one('lity:remove',function(){
8963placeholder
8964.before(el)
8965.remove()
8966;
8967if(hasHideClass&&!el.closest('.lity-content').length){
8968el.addClass('lity-hide');
8969}
8970})
8971;
8972return el
8973.removeClass('lity-hide')
8974.after(placeholder)
8975;
8976}
8977function iframeHandler(target,instance){
8978return iframe(target,instance);
8979}
8980function winHeight(){
8981return document.documentElement.clientHeight
8982?document.documentElement.clientHeight
8983:Math.round(_win.height());
8984}
8985function keydown(e){
8986var current=currentInstance();
8987if(!current){
8988return;
8989}
8990if(e.keyCode===27&&!!current.options('esc')){
8991current.close();
8992}
8993if(e.keyCode===9){
8994handleTabKey(e,current);
8995}
8996}
8997function handleTabKey(e,instance){
8998var focusableElements=instance.element().find(_focusableElementsSelector);
8999var focusedIndex=focusableElements.index(document.activeElement);
9000if(e.shiftKey&&focusedIndex<=0){
9001focusableElements.get(focusableElements.length-1).focus();
9002e.preventDefault();
9003}else if(!e.shiftKey&&focusedIndex===focusableElements.length-1){
9004focusableElements.get(0).focus();
9005e.preventDefault();
9006}
9007if(focusedIndex===-1&&instance.options().forceFocusInside){
9008focusableElements.get(0).focus();
9009e.preventDefault();
9010}
9011}
9012function resize(){
9013$.each(_instances,function(i,instance){
9014instance.resize();
9015});
9016}
9017function registerInstance(instanceToRegister){
9018if(1===_instances.unshift(instanceToRegister)){
9019_html.addClass('lity-active');
9020_win
9021.on({
9022resize:resize,
9023keydown:keydown
9024})
9025;
9026}
9027$('body > *').not(instanceToRegister.element())
9028.addClass('lity-hidden')
9029.each(function(){
9030var el=$(this);
9031if(undefined!==el.data(_dataAriaHidden)){
9032return;
9033}
9034el.data(_dataAriaHidden,el.attr(_attrAriaHidden)||null);
9035})
9036.attr(_attrAriaHidden,'true')
9037;
9038}
9039function removeInstance(instanceToRemove){
9040var show;
9041instanceToRemove
9042.element()
9043.attr(_attrAriaHidden,'true')
9044;
9045if(1===_instances.length){
9046_html.removeClass('lity-active');
9047_win
9048.off({
9049resize:resize,
9050keydown:keydown
9051})
9052;
9053}
9054_instances=$.grep(_instances,function(instance){
9055return instanceToRemove!==instance;
9056});
9057if(!!_instances.length){
9058show=_instances[0].element();
9059}else{
9060show=$('.lity-hidden');
9061}
9062show
9063.removeClass('lity-hidden')
9064.each(function(){
9065var el=$(this),oldAttr=el.data(_dataAriaHidden);
9066if(!oldAttr){
9067el.removeAttr(_attrAriaHidden);
9068}else{
9069el.attr(_attrAriaHidden,oldAttr);
9070}
9071el.removeData(_dataAriaHidden);
9072})
9073;
9074}
9075function currentInstance(){
9076if(0===_instances.length){
9077return null;
9078}
9079return _instances[0];
9080}
9081function factory(target,instance,handlers,preferredHandler){
9082var handler='inline',content;
9083var currentHandlers=$.extend({},handlers);
9084if(preferredHandler&&currentHandlers[preferredHandler]){
9085content=currentHandlers[preferredHandler](target,instance);
9086handler=preferredHandler;
9087}else{
9088$.each(['inline','iframe'],function(i,name){
9089delete currentHandlers[name];
9090currentHandlers[name]=handlers[name];
9091});
9092$.each(currentHandlers,function(name,currentHandler){
9093if(!currentHandler){
9094return true;
9095}
9096if(
9097currentHandler.test&&
9098!currentHandler.test(target,instance)
9099){
9100return true;
9101}
9102content=currentHandler(target,instance);
9103if(false!==content){
9104handler=name;
9105return false;
9106}
9107});
9108}
9109return{handler:handler,content:content||''};
9110}
9111function Lity(target,options,opener,activeElement){
9112var self=this;
9113var result;
9114var isReady=false;
9115var isClosed=false;
9116var element;
9117var content;
9118options=$.extend(
9119{},
9120_defaultOptions,
9121options
9122);
9123element=$(options.template);
9124self.element=function(){
9125return element;
9126};
9127self.opener=function(){
9128return opener;
9129};
9130self.content=function(){
9131return content;
9132};
9133self.options=$.proxy(settings,self,options);
9134self.handlers=$.proxy(settings,self,options.handlers);
9135self.resize=function(){
9136if(!isReady||isClosed){
9137return;
9138}
9139content
9140.css('max-height',winHeight()+'px')
9141.trigger('lity:resize',[self])
9142;
9143};
9144self.close=function(){
9145if(isClosed){
9146return;
9147}
9148isClosed=true;
9149removeInstance(self);
9150var deferred=_deferred();
9151if(
9152activeElement&&
9153(
9154document.activeElement===element[0]||
9155$.contains(element[0],document.activeElement)
9156)
9157){
9158try{
9159activeElement.focus();
9160}catch(e){
9161}
9162}
9163var trigerable=(content?content:element);
9164trigerable.trigger('lity:close',[self]);
9165element
9166.removeClass('lity-opened')
9167.addClass('lity-closed')
9168;
9169transitionEnd(trigerable.add(element))
9170.always(function(){
9171trigerable.trigger('lity:remove',[self]);
9172element.remove();
9173element=undefined;
9174deferred.resolve();
9175})
9176;
9177return deferred.promise();
9178};
9179result=factory(target,self,options.handlers,options.handler);
9180element
9181.attr(_attrAriaHidden,'false')
9182.addClass('lity-loading lity-opened lity-'+result.handler)
9183.appendTo('body')
9184.focus()
9185.on('click','[data-lity-close]',function(e){
9186if($(e.target).is('[data-lity-close]')){
9187self.close();
9188}
9189})
9190.trigger('lity:open',[self])
9191;
9192registerInstance(self);
9193$.when(result.content)
9194.always(ready)
9195;
9196function ready(result){
9197if(isClosed){
9198return;
9199}
9200content=$(result)
9201.css('max-height',winHeight()+'px')
9202;
9203element
9204.find('.lity-loader')
9205.each(function(){
9206var loader=$(this);
9207transitionEnd(loader)
9208.always(function(){
9209loader.remove();
9210})
9211;
9212})
9213;
9214element
9215.removeClass('lity-loading')
9216.find('.lity-content')
9217.empty()
9218.append(content)
9219;
9220isReady=true;
9221content
9222.trigger('lity:ready',[self])
9223;
9224}
9225}
9226function lity(target,options,opener){
9227if(!target.preventDefault){
9228opener=$(opener);
9229}else{
9230target.preventDefault();
9231opener=$(this);
9232target=opener.data('lity-target')||opener.attr('href')||opener.attr('src');
9233}
9234var instance=new Lity(
9235target,
9236$.extend(
9237{},
9238opener.data('lity-options')||opener.data('lity'),
9239options
9240),
9241opener,
9242document.activeElement
9243);
9244if(!target.preventDefault){
9245return instance;
9246}
9247}
9248lity.version='3.0.0-dev';
9249lity.options=$.proxy(settings,lity,_defaultOptions);
9250lity.handlers=$.proxy(settings,lity,_defaultOptions.handlers);
9251lity.current=currentInstance;
9252lity.iframe=iframe;
9253$(document).on('click.lity','[data-lity]',lity);
9254return lity;
9255}));
9256
9257
9258/* plugins-dist/mediabox/lity/js/lity.mediabox.js?1790327464 */
9259;
9260(function($){
9261var litySpip={
9262nameSpace:'mediabox',
9263config:{
9264forceFocusInside:true,
9265},
9266strings:{
9267},
9268callbacks:{
9269onOpen:[],
9270onShow:[],
9271onClose:[]
9272},
9273focusedItem:[],
9274isTransition:false,
9275adjustHeight:function(instance){
9276var $content=instance.content();
9277var $containerHeight=instance.element().find('.lity-container').height();
9278if($containerHeight){
9279var h=Math.round($containerHeight)+'px';
9280$content
9281.css('max-height',h)
9282.find('[data-'+litySpip.nameSpace+'-force-max-height]')
9283.css('max-height',h);
9284}
9285},
9286template:function(cfg,type,groupName,groupPosition,groupLength){
9287var className='';
9288if(!!cfg.className){
9289className=' '+cfg.className;
9290}
9291if(cfg.transitionOnOpen){
9292className+=' lity-transition-on-open-'+cfg.transitionOnOpen;
9293}
9294if(!!cfg.noTransition){
9295className+=' lity-no-transition';
9296}
9297if(!!cfg.slideShow){
9298className+=' lity-slideshow';
9299}
9300var styles=[];
9301var styles_container='';
9302var styles_content='';
9303if(cfg.sideBar){
9304className+=' lity-sidebar lity-sidebar-'+cfg.sideBar;
9305if(cfg.sideBar==='start'||cfg.sideBar==='end'){
9306className+=' lity-sidebar-inline';
9307cfg.height='100vh';
9308cfg.maxHeight='100vh';
9309}
9310if(cfg.sideBar==='top'||cfg.sideBar==='bottom'){
9311className+=' lity-sidebar-block';
9312cfg.width='100vw';
9313cfg.maxWidth='100vw';
9314}
9315}
9316if(cfg.maxWidth){
9317styles.push("max-width:"+cfg.maxWidth.replace("%","vw"));
9318}
9319if(cfg.maxHeight){
9320styles.push("max-height:"+cfg.maxHeight.replace("%","vh"));
9321}
9322if(cfg.width){
9323styles.push("width:"+cfg.width.replace("%","vw"));
9324className+=' lity-width-set';
9325}
9326if(cfg.height){
9327styles.push("height:"+cfg.height.replace("%","vh"));
9328className+=' lity-height-set';
9329if(cfg.minHeight){
9330styles.push("min-height:"+cfg.minHeight.replace("%","vh"));
9331}
9332}
9333if(styles.length){
9334styles_container=' style="'+styles.join(';')+'"';
9335}
9336styles=[];
9337var max;
9338if(cfg.minWidth){
9339max=(cfg.maxWidth?cfg.maxWidth.replace("%","vw"):'95vw');
9340styles.push("min-width:min("+max+","+cfg.minWidth.replace("%","vw")+')');
9341}
9342if(cfg.minHeight&&!cfg.height){
9343max=(cfg.maxHeight?cfg.maxHeight.replace("%","vw"):'95vh');
9344styles.push("min-height:min("+max+","+cfg.minHeight.replace("%","vh")+')');
9345}
9346if(styles.length){
9347styles_content=' style="'+styles.join(';')+'"';
9348}
9349var button_next_prev='',
9350button_start_stop='',
9351group_info_text='',
9352group_info='';
9353if(groupName&&groupLength){
9354if(groupLength>1){
9355var newPosition=(groupPosition<=0?groupLength-1:groupPosition-1);
9356button_next_prev+='<button class="lity-previous" type="button" data-group-name="'+groupName+'" data-group-position="'+newPosition+'" aria-label="'+litySpip.strings.previous+'" data-lity-previous'
9357+'><b title="'+litySpip.strings.previous+'">❮</b></button>';
9358newPosition=(groupPosition>=groupLength-1?0:groupPosition+1);
9359button_next_prev+='<button class="lity-next" type="button" data-group-name="'+groupName+'" data-group-position="'+newPosition+'"  aria-label="'+litySpip.strings.next+'" data-lity-next'
9360+'><b title="'+litySpip.strings.next+'">❯</b></button>';
9361}
9362group_info_text=" "+litySpip.strings.current;
9363group_info_text=group_info_text.replace('{current}',(groupPosition+1)+'');
9364group_info_text=group_info_text.replace('{total}',groupLength+'');
9365button_start_stop+='<button class="lity-start-stop" type="button" data-lity-stop-start>'
9366+'<b class="lity-start" aria-label="'+litySpip.strings.slideshowStart+'" title="'+litySpip.strings.slideshowStart+'">▶</b>'
9367+'<b class="lity-stop" aria-label="'+litySpip.strings.slideshowStop+'" title="'+litySpip.strings.slideshowStop+'">□</b>'
9368+'</button>';
9369group_info='<div class="lity-group-caption">'
9370+'<span class="lity-group-start-stop">'+button_start_stop+'</span>'
9371+'<span class="lity-group-current">'+group_info_text+'</span>'
9372+'<span class="lity-group-next-prev">'+button_next_prev+'</span>'
9373+'<span class="lity-group-progress-bar"><span class="lity-group-progress-bar-status" style="width:0"></span></span>'
9374+'</div>';
9375}
9376var close_button_aria_label=litySpip.strings.close+' ('+litySpip.strings.press_escape+')';
9377var dialog_title=(type==='image'?litySpip.strings.dialog_title_med:litySpip.strings.dialog_title_def);
9378dialog_title+=group_info_text+' ('+litySpip.strings.press_escape+')';
9379var t=
9380'<dialog class="box_mediabox box_modalbox lity'+className+'" role="dialog" aria-label="'+dialog_title+'" tabindex="-1">'
9381+'<div class="lity-wrap"'+(cfg.overlayClose===false?'':' data-lity-close')+' role="document">'
9382+'<div class="lity-loader" aria-hidden="true" aria-label="'+litySpip.strings.loading+'"><span class="box-loading"></span></div>'
9383+'<div class="lity-container"'+styles_container+'>'
9384+'<button class="lity-close" type="button" aria-label="'+close_button_aria_label+'" data-lity-close><b data-lity-close title="'+litySpip.strings.close+'">&times;</b></button>'
9385+'<div class="lity-content"'+styles_content+'></div>'
9386+group_info
9387+'</div>'
9388+'</div>'
9389+'</dialog>';
9390return t;
9391},
9392failHandler:function(target,instance){
9393return'<div class="error lity-error">Failed loading content</div>';
9394},
9395ajaxHandler:function(target,instance){
9396var selector,
9397off=target.indexOf(" ");
9398if(off>-1){
9399selector=target.slice(off);
9400selector=selector.match(/[^\x20\t\r\n\f]+/g)||[];
9401selector=selector.join(" ");
9402target=target.slice(0,off);
9403}
9404if(jQuery.spip.preloaded_urls[target]){
9405var content=jQuery.spip.preloaded_urls[target];
9406if(selector){
9407content=$("<div>").append($.parseHTML(content)).find(selector);
9408}
9409return $('<div class="lity-content-inner"></div>').append(content);
9410}
9411var _deferred=$.Deferred;
9412var deferred=_deferred();
9413var failed=function(){
9414deferred.reject($('<span class="error lity-error"></span>').append('Failed loading ajax'));
9415};
9416$.get(target)
9417.done(function(content){
9418jQuery.spip.preloaded_urls[target]=content;
9419if(selector){
9420content=$("<div>").append($.parseHTML(content)).find(selector);
9421}
9422deferred.resolve($('<div class="lity-content-inner"></div>').append(content));
9423})
9424.fail(failed);
9425return deferred.promise();
9426},
9427imageBuildContent:function(img,desc,longdesc,defaultCaptionClass){
9428img.attr('alt',desc?desc:'');
9429desc=(longdesc?longdesc:desc);
9430if(desc){
9431defaultCaptionClass=(defaultCaptionClass?defaultCaptionClass:'expanded');
9432var id='lity-image-caption-'+Date.now().toString(36)+Math.random().toString(36).substr(2);
9433img.attr('aria-describedby',id);
9434img=$('<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>');
9435}
9436else{
9437img=$('<figure class="lity-image-figure"></figure>').append(img);
9438}
9439return img;
9440},
9441imageHandler:function(target,instance){
9442var _deferred=$.Deferred;
9443var desc='';
9444var longdesc='';
9445var defaultCaptionClass=(instance.options().defaultCaptionState==='min'?'min':'expanded');
9446var opener=instance.opener();
9447if(opener){
9448desc=opener.attr('title')||$('img[alt]',opener).eq(0).attr('alt')||'';
9449var by=opener.attr('aria-describedby')||$('img[aria-describedby]',opener).eq(0).attr('aria-describedby')||'';
9450if(by){
9451longdesc=$('#'+by).html();
9452longdesc=longdesc.trim();
9453}
9454if(!desc){
9455desc=desc||instance.opener().attr('aria-label')||'';
9456}
9457desc=desc.trim();
9458}
9459var img;
9460var cache=opener.data('lity-image-cache')||{};
9461if(cache[target]){
9462img=cache[target];
9463img=litySpip.imageBuildContent(img,desc,longdesc,defaultCaptionClass);
9464return img;
9465}
9466img=$('<img src="'+target+'" class="lity-image-img" data-'+litySpip.nameSpace+'-force-max-height />');
9467var deferred=_deferred();
9468var failed=function(){
9469deferred.reject($('<span class="error lity-error"></span>').append('Failed loading image'));
9470};
9471img
9472.on('load',function(){
9473if(this.naturalWidth===0){
9474img.attr("style","width:25vw;");
9475}
9476cache[target]=img;
9477opener.data('lity-image-cache',cache);
9478deferred.resolve(litySpip.imageBuildContent(img,desc,longdesc,defaultCaptionClass));
9479})
9480.on('error',failed)
9481;
9482return deferred.promise();
9483},
9484groupElements:function(groupName){
9485return $('.lity-enabled[data-'+litySpip.nameSpace+'-group'+'='+groupName+']');
9486},
9487eventSet:{},
9488setEvents:function(what){
9489if(!litySpip.eventSet[what]){
9490switch(what){
9491case'opener':
9492$(document).on('click','.lity-enabled',litySpip.onClickOpener);
9493break;
9494case'listener':
9495$(document).on('click','.lity-previous,.lity-next',litySpip.onPrevNext);
9496$(document).on('click','.lity-start-stop',litySpip.onSlideShowToggle);
9497$(window).on('keyup',litySpip.onKeyUp);
9498$(document).on('click','.lity-image-caption',litySpip.onCaptionToggle);
9499break;
9500}
9501litySpip.eventSet[what]=true;
9502}
9503},
9504onKeyUp:function(event){
9505var c={37:"previous",39:"next"}[event.keyCode];
9506if(c){
9507var current=lity.current();
9508if(current){
9509jQuery('.lity-'+c,current.element()).trigger('click');
9510}
9511}
9512},
9513onCaptionToggle:function(event){
9514var $caption=$(this);
9515$caption.toggleClass('min expanded');
9516},
9517openerFromPrevNext($button){
9518var groupName=$button.data('group-name');
9519var groupPosition=$button.data('group-position');
9520return litySpip.groupElements(groupName).eq(groupPosition);
9521},
9522onPrevNext:function(event){
9523var $button=$(this);
9524var newEl=litySpip.openerFromPrevNext($button);
9525if(newEl){
9526var element=lity.current().element();
9527litySpip.isTransition={oldClosed:false,newOpened:true};
9528element.addClass('lity-no-transition').css('visibility','hidden');
9529litySpip.slideshowStop(element);
9530var options={transitionOnOpen:$button.is('.lity-next')?'slide-from-right':'slide-from-left'};
9531if(element.is('.lity-slideshow')){
9532options.slideShow=true;
9533}
9534lity.current().close();
9535litySpip.elementOpener(newEl,options);
9536}
9537},
9538slideshowStart:function(element){
9539var $progress=element.find('.lity-group-progress-bar-status');
9540$progress.attr('style','');
9541$progress.css('width','100%');
9542var delay=litySpip.config.slideshowSpeed;
9543setTimeout(function(){
9544$progress.css('transition','width '+((delay-200)/1000)+'s linear');
9545$progress.css('width','0');
9546},200);
9547timer=setTimeout(function(){element.find('.lity-next').trigger('click')},delay);
9548element.data('lity-timer',timer);
9549$('.lity-start',element).attr('aria-hidden','true');
9550$('.lity-stop',element).attr('aria-hidden','false');
9551jQuery('.lity-start-stop',element).focus();
9552},
9553slideshowStop:function(element){
9554timer=element.data('lity-timer');
9555if(timer){
9556clearTimeout(timer);
9557}
9558},
9559onSlideShowToggle:function(event){
9560var $button=$(this);
9561var element=$button.closest('.lity');
9562var slideShowState=(element.is('.lity-slideshow')?true:false);
9563var timer;
9564if(!slideShowState){
9565litySpip.slideshowStart(element);
9566}
9567else{
9568litySpip.slideshowStop(element);
9569$('.lity-start',element).attr('aria-hidden','false');
9570$('.lity-stop',element).attr('aria-hidden','true');
9571}
9572element.toggleClass('lity-slideshow');
9573},
9574onClickOpener:function(event){
9575event.preventDefault();
9576var opener=$(this);
9577litySpip.elementOpener(opener);
9578},
9579elementOpener:function(opener,options){
9580var cfg=opener.data('mediabox-options');
9581if(options){
9582cfg=$.extend({},cfg,options);
9583}
9584var target=opener.data('href-popin')||opener.data('href')||opener.attr('href')||opener.attr('src');
9585litySpip.lityOpener(target,cfg,opener.get(0));
9586},
9587lityOpener:function(target,cfg,opener){
9588litySpip.setEvents('listener');
9589if(!litySpip.isTransition){
9590litySpip.callbacks.onOpen.push(cfg.onOpen||false);
9591litySpip.callbacks.onShow.push(cfg.onShow||false);
9592litySpip.callbacks.onClose.push(cfg.onClose||false);
9593litySpip.focusedItem.push($(document.activeElement));
9594}
9595var type=cfg.type||'';
9596if(!type&&opener){
9597type=$(opener).data(litySpip.nameSpace+'-type')||'';
9598}
9599var handlers=lity.handlers();
9600if(type==='ajax'){
9601handlers.ajax=litySpip.ajaxHandler;
9602}
9603handlers.image=litySpip.imageHandler;
9604if(type==='inline'){
9605var el=[];
9606try{
9607el=$(target);
9608}catch(e){
9609el=[];
9610}
9611if(!el.length){
9612handlers.inline=litySpip.failHandler;
9613}
9614}
9615cfg=$.extend({handlers:handlers},cfg);
9616if(type&&['image','inline','ajax','iframe'].indexOf(type)!==-1){
9617cfg.handler=type;
9618}
9619if(opener&&typeof($.parseMediaboxOptions)!=="undefined"){
9620cfg=$.extend(cfg,$.parseMediaboxOptions(litySpip.nameSpace,opener));
9621}
9622if(!!cfg.preloadOnly){
9623litySpip.lityPreLoader(target,cfg,opener);
9624}
9625else{
9626var groupPosition=0;
9627var groupLength=0;
9628if(opener){
9629var groupName=cfg.rel||(opener?$(opener).data(litySpip.nameSpace+'-group'):'');
9630if(groupName){
9631var elements=litySpip.groupElements(groupName);
9632groupPosition=elements.index($(opener));
9633groupLength=elements.length;
9634}
9635}
9636cfg=$.extend({template:litySpip.template(cfg,type,groupName,groupPosition,groupLength)},cfg);
9637if(cfg.samePopin){
9638var l=lity.current();
9639if(l){
9640l.close();
9641}
9642}
9643lity(target,cfg,opener);
9644}
9645},
9646lityPreLoader:function(target,cfg,opener){
9647if(cfg.handler&&cfg.handlers[cfg.handler]){
9648if(cfg.handler==='image'||cfg.handler==='ajax'){
9649var instance={
9650opener:function(){return $(opener);},
9651options:function(){return cfg}
9652};
9653var content=cfg.handlers[cfg.handler](target,instance);
9654}
9655}
9656},
9657ajaxReloadElements:function(elements){
9658const targets=elements
9659.split(',')
9660.map(s=>s.trim())
9661.filter(Boolean);
9662targets.forEach(function(target){
9663try{
9664if(/^[.#[]/.test(target)){
9665const $element=$(target);
9666if($element.length){
9667$element.ajaxReload();
9668}
9669}else{
9670ajaxReload(target);
9671}
9672}catch(e){
9673console.warn("Mediabox ajaxReloadElements : erreur lors du traitement de '"+target+"'.",e);
9674}
9675});
9676}
9677}
9678jQuery.fn.extend({
9679mediabox:function(options){
9680var cfg=$.extend({},litySpip.config,options);
9681if(this===jQuery.fn){
9682var href=cfg.href||"";
9683litySpip.lityOpener(href,cfg,null);
9684return this;
9685}else{
9686if(cfg.rel){
9687this.attr('data-'+litySpip.nameSpace+'-group',cfg.rel);
9688}
9689else{
9690this.each(function(){
9691var rel=$(this).attr('rel');
9692if(rel){
9693$(this).attr('data-'+litySpip.nameSpace+'-group',rel);
9694}
9695});
9696}
9697litySpip.setEvents('opener');
9698this
9699.data('mediabox-options',cfg)
9700.addClass('lity-enabled');
9701(cfg.preload?this:this.filter('[data-'+litySpip.nameSpace+'-preload]')).each(function(){
9702litySpip.elementOpener($(this),{preloadOnly:true});
9703});
9704return this;
9705}
9706},
9707mediaboxClose:function(){
9708var $current=lity.current();
9709if($current){
9710$current.close();
9711return true;
9712}
9713return false;
9714}
9715});
9716var initConfig=function(){
9717var b=typeof(mediabox_settings)=='object'?mediabox_settings:{};
9718litySpip.nameSpace=b.ns?b.ns:'mediabox';
9719litySpip.strings.slideshowStart=b.str_ssStart;
9720litySpip.strings.slideshowStop=b.str_ssStop;
9721litySpip.strings.current=b.str_cur;
9722litySpip.strings.previous=b.str_prev;
9723litySpip.strings.next=b.str_next;
9724litySpip.strings.close=b.str_close;
9725litySpip.strings.loading=b.str_loading;
9726litySpip.strings.press_escape=b.str_petc;
9727litySpip.strings.dialog_title_def=b.str_dialTitDef;
9728litySpip.strings.dialog_title_med=b.str_dialTitMed;
9729litySpip.config.slideshowSpeed=(b.lity.slideshow_speed?b.lity.slideshow_speed:5000);
9730litySpip.config.defaultCaptionState=(b.lity.defaultCaptionState?b.lity.defaultCaptionState:'expanded');
9731var styles={
9732'container':'',
9733'content':'',
9734};
9735var max;
9736if(b.lity.minWidth){
9737max=(b.lity.maxWidth?b.lity.maxWidth.replace('%','vw'):'95vw');
9738styles.content+="min-width:min("+max+","+b.lity.minWidth.replace('%','vw')+');';
9739}
9740if(b.lity.maxWidth){
9741styles.container+="max-width:"+b.lity.maxWidth.replace('%','vw')+';';
9742}
9743if(b.lity.minHeight){
9744max=(b.lity.maxHeight?b.lity.maxHeight.replace('%','vw'):'95vh');
9745styles.content+="min-height:min("+max+","+b.lity.minHeight.replace('%','vh')+');';
9746}
9747if(b.lity.maxHeight){
9748styles.container+="max-height:"+b.lity.maxHeight.replace('%','vh')+';';
9749}
9750var insert='';
9751for(let key in styles){
9752if(styles[key]){
9753insert+='.box_mediabox .lity-'+key+'{'+styles[key]+'}';
9754}
9755}
9756if(b.lity.opacite){
9757insert+='.box_mediabox:before{opacity:'+b.lity.opacite+'}';
9758}
9759if(insert){
9760$('head').append($('<style type="text/css">'+insert+'</style>'));
9761}
9762$(document).on('lity:open',function(event,instance){
9763if(document.fullscreenElement){
9764document.fullscreenElement.appendChild(instance.element().get(0));
9765}
9766if(!instance.element().is('.lity-slideshow')){
9767jQuery('.lity-close',instance.element()).focus();
9768}
9769if(!litySpip.isTransition){
9770var callback=litySpip.callbacks.onOpen.pop();
9771if(callback){
9772callback(event,instance);
9773}
9774}
9775});
9776$(document).on('lity:ready',function(event,instance){
9777litySpip.adjustHeight(instance);
9778if(jQuery.spip){
9779jQuery.spip.triggerAjaxLoad(instance.element().get(0))
9780}
9781if(instance.element().addClass('lity-ready').is('.lity-slideshow')){
9782litySpip.slideshowStart(instance.element());
9783}
9784if(!litySpip.isTransition){
9785var callback=litySpip.callbacks.onShow.pop();
9786if(callback){
9787callback(event,instance);
9788}
9789}
9790else{
9791litySpip.isTransition.newOpened=true;
9792if(litySpip.isTransition.oldClosed){
9793litySpip.isTransition=false;
9794}
9795instance.content().trigger('lity:resize',[instance]);
9796}
9797var $next=instance.element().find('.lity-next');
9798if($next.length){
9799$next=litySpip.openerFromPrevNext($next);
9800if($next){
9801litySpip.elementOpener($next,{preloadOnly:true});
9802}
9803}
9804});
9805$(document).on('lity:close',function(event,instance){
9806if(!litySpip.isTransition){
9807if(litySpip.callbacks.onShow.length>litySpip.callbacks.onOpen.length){
9808litySpip.callbacks.onShow.pop();
9809}
9810var callback=litySpip.callbacks.onClose.pop();
9811if(callback){
9812callback(event,instance);
9813}
9814let options=instance.options();
9815let ajaxReloadArgs=options.ajaxReloadOnClose;
9816if(ajaxReloadArgs&&typeof(ajaxReloadArgs)==='string'){
9817litySpip.ajaxReloadElements(ajaxReloadArgs);
9818}
9819}
9820});
9821$(document).on('lity:remove',function(event,instance){
9822if(!litySpip.isTransition){
9823var focused=litySpip.focusedItem.pop();
9824if(focused){
9825try{
9826focused.focus();
9827}catch(e){
9828}
9829}
9830}
9831else{
9832litySpip.isTransition.oldClosed=true;
9833if(litySpip.isTransition.newOpened){
9834litySpip.isTransition=false;
9835}
9836}
9837});
9838$(document).on('lity:resize',function(event,instance){
9839litySpip.adjustHeight(instance);
9840});
9841}
9842initConfig();
9843})(jQuery);
9844
9845
9846/* plugins-dist/mediabox/javascript/spip.mediabox.js?1790327464 */
9847(function($){
9848$.mediabox
9849=function(options){
9850if(typeof(mediabox_autodetect_href)=='function'
9851&&options.href
9852&&!options.type){
9853options.type=mediabox_autodetect_href(options.href);
9854}
9855$.fn.mediabox(options);
9856};
9857$.modalboxload=$.modalbox=function(href,options){$.mediabox($.extend({href:href,overlayClose:true},options));};
9858$.modalboxclose=$.mediaboxClose=$.fn.mediaboxClose;
9859$.parseMediaboxOptions=function(nameSpace,opener){
9860var options={};
9861var data2options={
9862"width":"width",
9863"height":"height",
9864"min-width":"minWidth",
9865"min-height":"minHeight",
9866"max-width":"maxWidth",
9867"max-height":"maxHeight",
9868"caption-state":"defaultCaptionState",
9869"sidebar":"sideBar",
9870"class":"className",
9871"ajaxreload-on-close":"ajaxReloadOnClose",
9872};
9873var v;
9874for(var o in data2options){
9875v=($(opener).data(nameSpace+'-'+o)||'');
9876if(v){
9877options[data2options[o]]=v;
9878}
9879}
9880if(!options.length){
9881var eltclass=$(opener).prop('class');
9882if(eltclass){
9883if(eltclass.indexOf("boxWidth-")!==-1){
9884var w=eltclass.match(/boxWidth-([^\s'">]*)/);
9885w=w[1].replace(/pc/,'%');
9886options["width"]=w;
9887}
9888if(eltclass.indexOf("boxHeight-")!==-1){
9889var h=eltclass.match(/boxHeight-([^\s'">]*)/);
9890h=h[1].replace(/pc/,'%');
9891options["height"]=h;
9892}
9893if(eltclass.indexOf("boxIframe")!==-1){
9894options["type"]='iframe';
9895}
9896if(eltclass.indexOf("boxInline")!==-1){
9897options["type"]='inline';
9898}
9899}
9900}
9901data2options={"same-popin":"samePopin","type":"type"};
9902for(var o in data2options){
9903v=($(opener).data(nameSpace+'-'+o)||'');
9904if(v){
9905options[data2options[o]]=v;
9906}
9907}
9908return options;
9909}
9910})(jQuery);
9911var mediaboxInit=function(){
9912var b=$.extend({},mediabox_settings);
9913if(b.ns!=='box'){
9914$('[data-box-type]').each(function(i,e){
9915var $e=$(e);
9916var d=$e.attr('data-box-type');
9917$e.removeAttr('data-box-type').attr('data-'+b.ns+'-type',d);
9918});
9919}
9920if(b.auto_detect){
9921var $popins=$('[data-href-popin],[data-'+b.ns+'-type]'+(window.var_zajax_content?',[data-var_zajax],a.popin':''))
9922.add(b.sel_c)
9923.not(ajaxbloc_selecteur,'.ajaxbloc','.hasbox');
9924$popins.each(function(i,e){
9925var $e=$(e);
9926var url=$e.attr('href')||"./";
9927var popin=$e.attr('data-href-popin');
9928var type=$e.attr('data-'+b.ns+'-type')||'';
9929if(!popin){
9930var env=$e.attr('data-ajax-env');
9931if(env){
9932url=parametre_url(parametre_url(url,'var_ajax',1),'var_ajax_env',env)
9933$e.removeAttr('data-ajax-env');
9934type='ajax';
9935}
9936var za=$e.attr('data-var_zajax');
9937if(za!==undefined||$e.hasClass('popin')){
9938if(za==='content'&&window.var_zajax_content){
9939za=window.var_zajax_content;
9940}
9941url=parametre_url(url,'var_zajax',za||window.var_zajax_content);
9942$e.removeAttr('data-var_zajax');
9943type='ajax';
9944}
9945if((url!==$e.attr('href')||(!popin&&type))&&url!=="./"){
9946$e.attr('data-href-popin',url);
9947}
9948}
9949url=popin||url;
9950if(!type){
9951var attrs=$e.data();
9952var types=['inline','html','iframe','image','ajax'];
9953types.some(function(e){
9954var k=b.ns+e.charAt(0).toUpperCase()+e.slice(1);
9955if(attrs[k]){
9956type=e;
9957return true;
9958}
9959});
9960}
9961if(!type&&typeof(mediabox_autodetect_href)=='function'){
9962type=mediabox_autodetect_href(url);
9963}
9964if(!type||$e.hasClass('boxIframe')){
9965type="iframe";
9966$e.removeClass('boxIframe');
9967}
9968$e.attr('data-'+b.ns+'-type',type);
9969});
9970}
9971if(b.sel_g){
9972var $items=$();
9973$(b.sel_g).each(function(i,e){
9974$items=$items.add(
9975$(this).is('a[type^=\'image\']')
9976?$(this)
9977:$(this).find('a[type^=\'image\']')
9978);
9979});
9980$items
9981.not('.hasbox')
9982.removeAttr('onclick')
9983.mediabox({rel:'galerieauto',slideshow:true,slideshowAuto:false,type:'image'})
9984.addClass('hasbox');
9985}
9986if(b.tt_img){
9987$('a[type^="image"],a[href$=".png"],a[href$=".jpg"],a[href$=".jpeg"],a[href$=".svg"],a[href$=".webp"]')
9988.not('.hasbox')
9989.removeAttr('onclick')
9990.mediabox({type:'image'})
9991.addClass('hasbox')
9992;
9993}
9994$(b.sel_c)
9995.not('.hasbox')
9996.mediabox()
9997.addClass('hasbox')
9998;
9999$('[data-href-popin]',this)
10000.not('.hasbox')
10001.click(function(){if($.modalbox)$.modalbox($(this).attr('data-href-popin'),$.parseMediaboxOptions(b.ns,this));return false;})
10002.addClass('hasbox');
10003};
10004(function($){
10005if(typeof onAjaxLoad=='function')onAjaxLoad(mediaboxInit);
10006$(mediaboxInit);
10007})(jQuery);
10008function mediabox_autodetect_href(href,options){
10009options=$.extend({
10010breakMode:true,
10011tests:{
10012image:/\.(gif|png|jp(e|g|eg)|bmp|ico|webp|jxr|svg)((#|\?).*)?$/i,
10013inline:/^[#.]\w/,
10014html:/^\s*<[\w!][^<]*>/,
10015ajax:/((\?|&(amp;)?)var_z?ajax=|cache-ajaxload\/)/i,
10016iframe:/^(?:(?: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,
10017},
10018},options);
10019var matched=options.breakMode?false:[];
10020$.each(options.tests,function(type,regex){
10021if(href.match(regex)&&!href.match('/File:[^/]+(\\#|[?]|$)')){
10022if(options.breakMode){
10023matched=type;
10024return false;
10025}else{
10026matched.push(type);
10027}
10028}
10029});
10030return matched;
10031};
10032
10033
10034/* plugins-dist/porte_plume/javascript/jquery.markitup_pour_spip.js?1790327464 */
10035
10036;(function($){
10037$.fn.markItUp=function(settings,extraSettings){
10038var method,params,options,ctrlKey,shiftKey,altKey;ctrlKey=shiftKey=altKey=false;
10039markitup_prompt=false;
10040if(typeof settings=='string'){
10041method=settings;
10042params=extraSettings;
10043}
10044options={id:'',
10045nameSpace:'',
10046root:'',
10047lang:'',
10048previewHandler:false,
10049previewInWindow:'',
10050previewInElement:'',
10051previewAutoRefresh:true,
10052previewPosition:'after',
10053previewTemplatePath:'~/templates/preview.html',
10054previewParser:false,
10055previewParserPath:'',
10056previewParserVar:'data',
10057previewParserAjaxType:'POST',
10058resizeHandle:true,
10059beforeInsert:'',
10060afterInsert:'',
10061onEnter:{},
10062onShiftEnter:{},
10063onCtrlEnter:{},
10064onTab:{},
10065markupSet:[{}]
10066};
10067$.extend(options,settings,extraSettings);
10068if(!options.root){
10069$('script').each(function(a,tag){
10070var miuScript=$(tag).get(0).src.match(/(.*)jquery\.markitup(\.pack)?\.js$/);
10071if(miuScript!==null){
10072options.root=miuScript[1];
10073}
10074});
10075}
10076var uaMatch=function(ua){
10077ua=ua.toLowerCase();
10078var match=/(chrome)[ \/]([\w.]+)/.exec(ua)||/(webkit)[ \/]([\w.]+)/.exec(ua)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua)||/(msie) ([\w.]+)/.exec(ua)||
10079ua.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua)||
10080[];
10081return{
10082browser:match[1]||"",
10083version:match[2]||"0"
10084};
10085};
10086var matched=uaMatch(navigator.userAgent);
10087var browser={};
10088if(matched.browser){
10089browser[matched.browser]=true;
10090browser.version=matched.version;
10091}
10092if(browser.chrome){
10093browser.webkit=true;
10094}else if(browser.webkit){
10095browser.safari=true;
10096}
10097return this.each(function(){
10098var $$,textarea,levels,scrollPosition,caretPosition,
10099clicked,hash,header,footer,previewWindow,template,iFrame,abort,
10100before,after;
10101$$=$(this);
10102textarea=this;
10103levels=[];
10104abort=false;
10105scrollPosition=caretPosition=0;
10106caretOffset=-1;
10107options.previewParserPath=localize(options.previewParserPath);
10108options.previewTemplatePath=localize(options.previewTemplatePath);
10109if(method){
10110switch(method){
10111case'remove':
10112remove();
10113break;
10114case'insert':
10115markup(params);
10116break;
10117default:
10118$.error('Method '+method+' does not exist on jQuery.markItUp');
10119}
10120return;
10121}
10122function localize(data,inText){
10123if(inText){
10124return data.replace(/("|')~\//g,"$1"+options.root);
10125}
10126return data.replace(/^~\//,options.root);
10127}
10128function init(){
10129id='';nameSpace='';
10130if(options.id){
10131id='id="'+options.id+'"';
10132}else if($$.attr("id")){
10133id='id="markItUp'+($$.attr("id").substr(0,1).toUpperCase())+($$.attr("id").substr(1))+'"';
10134}
10135if(options.nameSpace){
10136nameSpace='class="'+options.nameSpace+'"';
10137}
10138currentScrollPosition=$$.scrollTop();
10139$$.wrap('<div '+nameSpace+'></div>');
10140$$.wrap('<div '+id+' class="markItUp"></div>');
10141$$.wrap('<div class="markItUpContainer"></div>');
10142$$.addClass("markItUpEditor");
10143$$.scrollTop(currentScrollPosition);
10144header=$('<div class="markItUpHeader"></div>').insertBefore($$);
10145$(dropMenus(options.markupSet)).appendTo(header);
10146$(header).find("li.markItUpDropMenu ul:empty").parent().remove();
10147footer=$('<div class="markItUpFooter"></div>').insertAfter($$);
10148if(options.resizeHandle===true&&browser.safari!==true){
10149resizeHandle=$('<div class="markItUpResizeHandle"></div>')
10150.insertAfter($$)
10151.on("mousedown.markItUp",function(e){
10152var h=$$.height(),y=e.clientY,mouseMove,mouseUp;
10153mouseMove=function(e){
10154$$.css("height",Math.max(20,e.clientY+h-y)+"px");
10155return false;
10156};
10157mouseUp=function(e){
10158$("html").off("mousemove.markItUp",mouseMove).off("mouseup.markItUp",mouseUp);
10159return false;
10160};
10161$("html").on("mousemove.markItUp",mouseMove).on("mouseup.markItUp",mouseUp);
10162});
10163footer.append(resizeHandle);
10164}
10165$$.on('keydown.markItUp',keyPressed).on('keyup',keyPressed);
10166$$.on("insertion.markItUp",function(e,settings){
10167if(settings.target!==false){
10168get();
10169}
10170if(textarea===$.markItUp.focused){
10171markup(settings);
10172}
10173});
10174$$.on('focus.markItUp',function(){
10175$.markItUp.focused=this;
10176});
10177if(options.previewInElement){
10178refreshPreview();
10179}
10180}
10181function dropMenus(markupSet){
10182var ul=$('<ul></ul>'),i=0;
10183var lang=($$.attr('lang')||options.lang);
10184$('li:hover > ul',ul).css('display','block');
10185$.each(markupSet,function(){
10186var button=this,t='',title,li,j;
10187if((!lang||!button.lang||($.inArray(lang,button.lang)!=-1))
10188&&(!button.lang_not||($.inArray(lang,button.lang_not)==-1))){
10189button.title?title=(button.key)?(button.title||'')+' [Ctrl+'+button.key+']':(button.title||''):title=(button.key)?(button.name||'')+' [Ctrl+'+button.key+']':(button.name||'');
10190key=(button.key)?'accesskey="'+button.key+'"':'';
10191if(button.separator){
10192li=$('<li class="markItUpSeparator">'+(button.separator||'')+'</li>').appendTo(ul);
10193}else{
10194i++;
10195for(j=levels.length-1;j>=0;j--){
10196t+=levels[j]+"-";
10197}
10198li=$('<li class="markItUpButton markItUpButton'+t+(i)+' '+(button.className||'')+'"><a href="#" '+key+' title="'+title+'"><em>'+(button.name||'')+'</em></a></li>')
10199.on("contextmenu.markItUp",function(){
10200return false;
10201}).on('click.markItUp',function(e){
10202e.preventDefault();
10203}).on("focusin.markItUp",function(){
10204setTimeout(function(){
10205$$.focus();
10206},0);
10207}).on('mouseup',function(e){
10208if(button.call){
10209eval(button.call)(e);
10210}
10211setTimeout(function(){markup(button)},1);
10212return false;
10213}).on('mouseenter.markItUp',function(){
10214$('> a',this).addClass('active');
10215$('> ul',this).addClass('expanded');
10216$(document).one('click',function(){
10217$('ul a',header).removeClass('active');
10218$('ul ul',header).removeClass('expanded');
10219}
10220);
10221}).on('mouseleave.markItUp',function(){
10222$('> a',this).removeClass('active');
10223$('> ul',this).removeClass('expanded');
10224}).appendTo(ul);
10225if(button.dropMenu){
10226levels.push(i);
10227$(li).addClass('markItUpDropMenu').append(dropMenus(button.dropMenu));
10228}
10229}
10230}
10231});
10232levels.pop();
10233return ul;
10234}
10235function magicMarkups(string){
10236if(string){
10237string=string.toString();
10238string=string.replace(/\(\!\(([\s\S]*?)\)\!\)/g,
10239function(x,a){
10240var b=a.split('|!|');
10241if(altKey===true){
10242return(b[1]!==undefined)?b[1]:b[0];
10243}else{
10244return(b[1]===undefined)?"":b[0];
10245}
10246}
10247);
10248string=string.replace(/\[\!\[([\s\S]*?)\]\!\]/g,
10249function(x,a){
10250var b=a.split(':!:');
10251if(abort===true){
10252return false;
10253}
10254markitup_prompt=true;
10255value=prompt(b[0],(b[1])?b[1]:'');
10256if(value===null){
10257abort=true;
10258}
10259setTimeout(function(){markitup_prompt=false;},500);
10260return value;
10261}
10262);
10263return string;
10264}
10265return"";
10266}
10267function prepare(action){
10268if($.isFunction(action)){
10269action=action(hash);
10270}
10271return magicMarkups(action);
10272}
10273function build(string){
10274var openWith=prepare(clicked.openWith);
10275var placeHolder=prepare(clicked.placeHolder);
10276var replaceWith=prepare(clicked.replaceWith);
10277var closeWith=prepare(clicked.closeWith);
10278var openBlockWith=prepare(clicked.openBlockWith);
10279var closeBlockWith=prepare(clicked.closeBlockWith);
10280var multiline=clicked.multiline;
10281if(replaceWith!==""){
10282block=openWith+replaceWith+closeWith;
10283}else if(selection===''&&placeHolder!==''){
10284block=openWith+placeHolder+closeWith;
10285}else if(multiline===true){
10286string=string||selection;
10287var lines=[string],blocks=[];
10288if(multiline===true){
10289lines=string.split(/\r?\n/);
10290}
10291for(var l=0;l<lines.length;l++){
10292line=lines[l];
10293var trailingSpaces;
10294if(trailingSpaces=line.match(/ *$/)){
10295blocks.push(openWith+line.replace(/ *$/g,'')+closeWith+trailingSpaces);
10296}else{
10297blocks.push(openWith+line+closeWith);
10298}
10299}
10300block=blocks.join("\n");
10301}else{
10302block=openWith+(string||selection)+closeWith;
10303}
10304block=openBlockWith+block+closeBlockWith;
10305return{block:block,
10306openBlockWith:openBlockWith,
10307openWith:openWith,
10308replaceWith:replaceWith,
10309placeHolder:placeHolder,
10310closeWith:closeWith,
10311closeBlockWith:closeBlockWith
10312};
10313}
10314function selectWord(){
10315selectionBeforeAfter(/\s|[.,;:!¡?¿()]/);
10316selectionSave();
10317}
10318function selectLine(){
10319selectionBeforeAfter(/\r?\n/);
10320selectionSave();
10321}
10322function selectionRemoveLast(pattern){
10323if(!pattern)pattern=/\s/;
10324last=selection[selection.length-1];
10325if(last&&last.match(pattern)){
10326set(caretPosition,selection.length-1);
10327get();
10328$.extend(hash,{caretPosition:caretPosition,scrollPosition:scrollPosition});
10329}
10330}
10331function selectionBeforeAfter(pattern){
10332if(!pattern)pattern=/\s/;
10333sautAvantIE=sautApresIE=0;
10334if(browser.msie){
10335lenSelection=selection.length-fixIeBug(selection);
10336if(caretPosition){
10337set(caretPosition-1,2);
10338sautAvantIE=fixIeBug(document.selection.createRange().text);
10339}
10340set(caretPosition,2);
10341sautApresIE=fixIeBug(document.selection.createRange().text);
10342set(0,caretPosition);
10343before=document.selection.createRange().text;
10344set(caretPosition+lenSelection,textarea.value.length);
10345after=document.selection.createRange().text;
10346set(caretPosition,lenSelection);
10347selection=document.selection.createRange().text;
10348}else{
10349before=textarea.value.substring(0,caretPosition);
10350after=textarea.value.substring(caretPosition+selection.length-fixIeBug(selection));
10351}
10352before=before.split(pattern);
10353after=after.split(pattern);
10354if(sautAvantIE)before.push("");
10355if(sautApresIE)after.unshift("");
10356}
10357function selectionSave(){
10358nb_before=before?before[before.length-1].length:0;
10359nb_after=after?after[0].length:0;
10360nb=nb_before+selection.length+nb_after-fixIeBug(selection);
10361caretPosition=caretPosition-nb_before;
10362set(caretPosition,nb);
10363get();
10364$.extend(hash,{selection:selection,caretPosition:caretPosition,scrollPosition:scrollPosition});
10365}
10366function markup(button){
10367var len,j,n,i;
10368hash=clicked=button;
10369get();
10370$.extend(hash,{line:"",
10371root:options.root,
10372textarea:textarea,
10373selection:(selection||''),
10374caretPosition:caretPosition,
10375ctrlKey:ctrlKey,
10376shiftKey:shiftKey,
10377altKey:altKey
10378}
10379);
10380if(button.selectionType){
10381if(button.selectionType=="word"){
10382if(!selection){
10383selectWord();
10384}else{
10385selectionRemoveLast(/\s/);
10386}
10387}
10388if(button.selectionType=="line"){
10389selectLine();
10390}
10391if(button.selectionType=="return"){
10392if(!browser.msie){
10393selectionBeforeAfter(/\r?\n/);
10394before_last=before[before.length-1];
10395after='';
10396if(r=before_last.match(/^-([*#]+) ?(.*)$/)){
10397if(r[2]){
10398button.replaceWith="\n-"+r[1]+' ';
10399before_last='';
10400}else{
10401button.replaceWith="\n";
10402}
10403}else{
10404before_last='';
10405button.replaceWith="\n";
10406}
10407before[before.length-1]=before_last;
10408selectionSave();
10409}
10410}
10411}
10412prepare(options.beforeInsert);
10413prepare(clicked.beforeInsert);
10414if((ctrlKey===true&&shiftKey===true)||button.multiline===true){
10415prepare(clicked.beforeMultiInsert);
10416}
10417$.extend(hash,{line:1});
10418if((ctrlKey===true&&shiftKey===true)||button.forceMultiline===true){
10419lines=selection.split(/\r?\n/);
10420for(j=0,n=lines.length,i=0;i<n;i++){
10421if(n==1||$.trim(lines[i])!==''){
10422$.extend(hash,{line:++j,selection:lines[i]});
10423lines[i]=build(lines[i]).block;
10424}else{
10425lines[i]="";
10426}
10427}
10428string={block:lines.join('\n')};
10429start=caretPosition;
10430len=string.block.length+((browser.opera)?n-1:0);
10431}else if(ctrlKey===true){
10432string=build(selection);
10433start=caretPosition+string.openWith.length;
10434len=string.block.length-string.openWith.length-string.closeWith.length;
10435len=len-(string.block.match(/ $/)?1:0);
10436len-=fixIeBug(string.block);
10437}else if(shiftKey===true){
10438string=build(selection);
10439start=caretPosition;
10440len=string.block.length;
10441len-=fixIeBug(string.block);
10442}else{
10443string=build(selection);
10444start=caretPosition+string.block.length;
10445len=0;
10446start-=fixIeBug(string.block);
10447}
10448if((selection===''&&string.replaceWith==='')){
10449caretOffset+=fixOperaBug(string.block);
10450start=caretPosition+string.openBlockWith.length+string.openWith.length;
10451len=string.block.length-string.openBlockWith.length-string.openWith.length-string.closeWith.length-string.closeBlockWith.length;
10452caretOffset=$$.val().substring(caretPosition,$$.val().length).length;
10453caretOffset-=fixOperaBug($$.val().substring(0,caretPosition));
10454}
10455$.extend(hash,{caretPosition:caretPosition,scrollPosition:scrollPosition});
10456if(string.block!==selection&&abort===false){
10457insert(string.block);
10458set(start,len);
10459}else{
10460caretOffset=-1;
10461}
10462get();
10463$.extend(hash,{line:'',selection:selection});
10464if((ctrlKey===true&&shiftKey===true)||button.multiline===true){
10465prepare(clicked.afterMultiInsert);
10466}
10467prepare(clicked.afterInsert);
10468prepare(options.afterInsert);
10469if(previewWindow&&options.previewAutoRefresh){
10470refreshPreview();
10471}
10472textarea.dispatchEvent(new Event('input'));
10473shiftKey=altKey=ctrlKey=abort=false;
10474}
10475function fixOperaBug(string){
10476if(browser.opera){
10477return string.length-string.replace(/\n*/g,'').length;
10478}
10479return 0;
10480}
10481function fixIeBug(string){
10482if(browser.msie){
10483return string.length-string.replace(/\r*/g,'').length;
10484}
10485return 0;
10486}
10487function insert(block){
10488if(document.selection){
10489var newSelection=document.selection.createRange();
10490newSelection.text=block;
10491}else{
10492textarea.value=textarea.value.substring(0,caretPosition)+block+textarea.value.substring(caretPosition+selection.length,textarea.value.length);
10493}
10494}
10495function set(start,len){
10496if(textarea.createTextRange){
10497if(browser.opera&&browser.version>=9.5&&len==0){
10498return false;
10499}
10500range=textarea.createTextRange();
10501range.collapse(true);
10502range.moveStart('character',start);
10503range.moveEnd('character',len);
10504range.select();
10505}else if(textarea.setSelectionRange){
10506textarea.setSelectionRange(start,start+len);
10507}
10508textarea.scrollTop=scrollPosition;
10509textarea.focus();
10510}
10511function get(){
10512textarea.focus();
10513scrollPosition=textarea.scrollTop;
10514if(document.selection){
10515selection=document.selection.createRange().text;
10516if(browser.msie){
10517var range=document.selection.createRange(),rangeCopy=range.duplicate();
10518rangeCopy.moveToElementText(textarea);
10519caretPosition=-1;
10520while(rangeCopy.inRange(range)){
10521rangeCopy.moveStart('character');
10522caretPosition++;
10523}
10524}else{
10525caretPosition=textarea.selectionStart;
10526}
10527}else{
10528caretPosition=textarea.selectionStart;
10529selection=textarea.value.substring(caretPosition,textarea.selectionEnd);
10530}
10531return selection;
10532}
10533function preview(){
10534if(typeof options.previewHandler==='function'){
10535previewWindow=true;
10536}else if(options.previewInElement){
10537previewWindow=$(options.previewInElement);
10538}else if(!previewWindow||previewWindow.closed){
10539if(options.previewInWindow){
10540previewWindow=window.open('','preview',options.previewInWindow);
10541$(window).unload(function(){
10542previewWindow.close();
10543});
10544}else{
10545iFrame=$('<iframe class="markItUpPreviewFrame"></iframe>');
10546if(options.previewPosition=='after'){
10547iFrame.insertAfter(footer);
10548}else{
10549iFrame.insertBefore(header);
10550}
10551previewWindow=iFrame[iFrame.length-1].contentWindow||frame[iFrame.length-1];
10552}
10553}else if(altKey===true){
10554if(iFrame){
10555iFrame.remove();
10556}else{
10557previewWindow.close();
10558}
10559previewWindow=iFrame=false;
10560}
10561if(!options.previewAutoRefresh){
10562refreshPreview();
10563}
10564if(options.previewInWindow){
10565previewWindow.focus();
10566}
10567}
10568function refreshPreview(){
10569renderPreview();
10570}
10571function renderPreview(){
10572var phtml;
10573var parsedData=$$.val();
10574if(options.previewParser&&typeof options.previewParser==='function'){
10575parsedData=options.previewParser(parsedData);
10576}
10577if(options.previewHandler&&typeof options.previewHandler==='function'){
10578options.previewHandler(parsedData);
10579}else if(options.previewParserPath!==''){
10580$.ajax({
10581type:options.previewParserAjaxType,
10582dataType:'text',
10583global:false,
10584url:options.previewParserPath,
10585data:options.previewParserVar+'='+encodeURIComponent(parsedData),
10586success:function(data){
10587writeInPreview(localize(data,1));
10588}
10589});
10590}else{
10591if(!template){
10592$.ajax({
10593url:options.previewTemplatePath,
10594dataType:'text',
10595global:false,
10596success:function(data){
10597writeInPreview(localize(data,1).replace(/<!-- content -->/g,parsedData));
10598}
10599});
10600}
10601}
10602return false;
10603}
10604function writeInPreview(data){
10605if(options.previewInElement){
10606$(options.previewInElement).html(data);
10607}else if(previewWindow&&previewWindow.document){
10608try{
10609sp=previewWindow.document.documentElement.scrollTop
10610}catch(e){
10611sp=0;
10612}
10613previewWindow.document.open();
10614previewWindow.document.write(data);
10615previewWindow.document.close();
10616previewWindow.document.documentElement.scrollTop=sp;
10617}
10618}
10619function keyPressed(e){
10620shiftKey=e.shiftKey;
10621altKey=e.altKey;
10622ctrlKey=(!(e.altKey&&e.ctrlKey))?(e.ctrlKey||e.metaKey):false;
10623if(e.type==='keydown'){
10624if(ctrlKey===true){
10625li=$('a[accesskey="'+((e.keyCode==13)?'\\n':String.fromCharCode(e.keyCode))+'"]',header).parent('li');
10626if(li.length!==0){
10627ctrlKey=false;
10628setTimeout(function(){
10629li.triggerHandler('mouseup');
10630},1);
10631return false;
10632}
10633}
10634if(!browser.opera){
10635if(e.keyCode===13||e.keyCode===10){
10636if(ctrlKey===true){
10637ctrlKey=false;
10638markup(options.onCtrlEnter);
10639if(!options.onCtrlEnter.keepDefault){
10640textarea.dispatchEvent(new Event('input'));
10641}
10642return options.onCtrlEnter.keepDefault;
10643}else if(shiftKey===true){
10644shiftKey=false;
10645markup(options.onShiftEnter);
10646if(!options.onShiftEnter.keepDefault){
10647textarea.dispatchEvent(new Event('input'));
10648}
10649return options.onShiftEnter.keepDefault;
10650}else{
10651markup(options.onEnter);
10652if(!options.onEnter.keepDefault){
10653textarea.dispatchEvent(new Event('input'));
10654}
10655return options.onEnter.keepDefault;
10656}
10657}
10658if(e.keyCode===9){
10659if(shiftKey==true||ctrlKey==true||altKey==true){
10660return false;
10661}
10662if(caretOffset!==-1){
10663get();
10664caretOffset=$$.val().length-caretOffset;
10665set(caretOffset,0);
10666caretOffset=-1;
10667return false;
10668}else{
10669markup(options.onTab);
10670return options.onTab.keepDefault;
10671}
10672}
10673}
10674}
10675}
10676function remove(){
10677$$.off(".markItUp").removeClass('markItUpEditor');
10678$$.parent('div').parent('div.markItUp').parent('div').replaceWith($$);
10679var relativeRef=$$.parent('div').parent('div.markItUp').parent('div');
10680if(relativeRef.length){
10681relativeRef.replaceWith($$);
10682}
10683$$.data('markItUp',null);
10684}
10685init();
10686});
10687};
10688$.fn.markItUpRemove=function(){
10689return this.each(function(){
10690$(this).markItUp('remove');
10691}
10692);
10693};
10694$.markItUp=function(settings){
10695var options={target:false};
10696$.extend(options,settings);
10697if(options.target){
10698return $(options.target).each(function(){
10699$(this).focus();
10700$(this).trigger('insertion',[options]);
10701});
10702}else{
10703$('textarea').trigger('insertion',[options]);
10704}
10705};
10706})(jQuery);
10707
10708
10709/* plugins-dist/porte_plume/javascript/jquery.previsu_spip.js?1790327464 */
10710;(function($){
10711$.fn.previsu_spip=function(settings){
10712var options;
10713options={
10714previewParserPath:'',
10715previewParserVar:'data',
10716textEditer:'Editer',
10717textVoir:'Voir',
10718textFullScreen:'Plein écran'
10719};
10720$.extend(options,settings);
10721return this.each(function(){
10722var $$,textarea,tabs,preview;
10723$$=$(this);
10724textarea=this;
10725function init(){
10726$$.addClass("pp_previsualisation");
10727if(!$$.parent().has('.markItUpContainer').length){
10728$$.barre_outils('vide');
10729}
10730var mark=$$.parent();
10731tabs=$('<div class="markItUpTabs"></div>').prependTo(mark);
10732$(tabs).append(
10733'<a href="#fullscreen" class="fullscreen">'+options.textFullScreen+'</a>'+
10734'<a href="#previsuVoir" class="previsuVoir">'+options.textVoir+'</a>'+
10735'<a href="#previsuEditer" class="previsuEditer on">'+options.textEditer+'</a>'
10736);
10737preview=$('<div class="markItUpPreview"></div>').insertAfter(mark.find('.markItUpHeader'));
10738preview.hide();
10739var is_full_screen=false;
10740var objet=mark.parents('.formulaire_spip')[0].className.match(/formulaire_editer_(\w+)/);
10741objet=(objet?objet[1]:'');
10742var champ=mark.parents('.editer')[0].className.match(/editer_(\w+)/);
10743champ=(champ?champ[1].toUpperCase():'');
10744var textarea=mark.find('textarea.pp_previsualisation');
10745var preview=mark.find('.markItUpPreview');
10746var dir=textarea.attr('dir');
10747if(dir){
10748preview.attr('dir',dir);
10749}
10750tabs.find('.fullscreen').click(function(){
10751if(!mark.is('.fullscreen')){
10752textarea.data('height-origin',textarea.css('height'));
10753}
10754mark.toggleClass('fullscreen');
10755if(mark.is('.fullscreen')){
10756$('body').addClass('markitup-fullscreen');
10757is_full_screen=true;
10758mark.find('.markItUpHeader a').show();
10759if(!mark.is('.livepreview')){
10760var original_texte="";
10761function refresh_preview(){
10762var texte=textarea.val();
10763if(original_texte==texte){
10764return;
10765}
10766renderPreview(preview.addClass('ajaxLoad'),texte,champ,objet);
10767original_texte=texte;
10768}
10769var timerPreview=null;
10770mark.addClass('livepreview').find('.markItUpEditor').on('keyup click change focus refreshpreview',function(e){
10771if(is_full_screen){
10772if(timerPreview)clearTimeout(timerPreview);
10773timerPreview=setTimeout(refresh_preview,500);
10774}
10775});
10776$(window).on('keyup',function(e){
10777if(is_full_screen){
10778if(e.type=='keyup'&&e.keyCode==27&&!markitup_prompt){
10779mark.removeClass('fullscreen');
10780$('body').removeClass('markitup-fullscreen');
10781textarea.css('height',textarea.data('height-origin'));
10782is_full_screen=false;
10783}
10784}
10785});
10786}
10787mark.find('.markItUpEditor').trigger('refreshpreview');
10788}
10789else{
10790$('body').removeClass('markitup-fullscreen');
10791textarea.css('height',textarea.data('height-origin'));
10792if($(this).next().hasClass('on')){
10793mark.find('.markItUpHeader a').hide();
10794}
10795is_full_screen=false;
10796}
10797return false;
10798});
10799tabs.find('.previsuVoir').click(function(){
10800preview.height(
10801mark.find('.markItUpEditor').height()
10802+mark.find('.markItUpFooter').height()
10803);
10804mark.find('.markItUpHeader a,.markItUpEditor,.markItUpFooter').hide();
10805$(this).addClass('on').next().removeClass('on');
10806renderPreview(
10807preview.show().addClass('ajaxLoad'),
10808mark.find('textarea.pp_previsualisation').val(),
10809champ,
10810objet,
10811false
10812);
10813return false;
10814});
10815tabs.find('.previsuEditer').click(function(){
10816mark.find('.markItUpPreview').hide();
10817mark.find('.markItUpHeader a,.markItUpEditor,.markItUpFooter').show();
10818$(this).addClass('on').prev().removeClass('on');
10819return false;
10820});
10821}
10822function renderPreview(node,val,champ,objet,async){
10823if(options.previewParserPath!==''){
10824$.ajax({
10825type:'POST',
10826async:typeof(async)=="undefined"?true:async,
10827url:options.previewParserPath,
10828data:'champ='+champ
10829+'&objet='+objet
10830+'&'+options.previewParserVar+'='+encodeURIComponent(val),
10831success:function(data){
10832node.html(data).removeClass('ajaxLoad');
10833$("a",node).attr("target","blank");
10834$(":input",node).attr("disabled","disabled");
10835}
10836});
10837}
10838}
10839init();
10840});
10841};
10842})(jQuery);
10843
10844
10845/* local/cache-js/jsdyn-javascript_porte_plume_start_js-d2ea892a.js?1790181764 */
10846
10847barre_outils_edition={
10848"nameSpace":"edition",
10849"previewAutoRefresh":false,
10850"onEnter":{
10851"keepDefault":false,
10852"selectionType":"return",
10853"replaceWith":"\n"
10854},
10855"onShiftEnter":{
10856"keepDefault":false,
10857"replaceWith":"\n_ "
10858},
10859"onCtrlEnter":{
10860"keepDefault":false,
10861"replaceWith":"\n\n"
10862},
10863"markupSet":[
10864{
10865"name":"Transformer en {{{intertitre}}}",
10866"key":"H",
10867"className":"outil_header1",
10868"openWith":"\n{{{",
10869"closeWith":"}}}\n",
10870"selectionType":"line",
10871"dropMenu":[
10872{
10873"id":"intertitre",
10874"name":"Transformer en {{{intertitre}}}",
10875"className":"outil_intertitre1",
10876"openWith":"\n{{{",
10877"closeWith":"}}}\n",
10878"display":true,
10879"selectionType":"line"
10880},
10881{
10882"id":"intertitre2",
10883"name":"Transformer en {{{**intertitre niveau deux}}}",
10884"className":"outil_intertitre2",
10885"openWith":"\n{{{**",
10886"closeWith":"}}}\n",
10887"display":true,
10888"selectionType":"line"
10889},
10890{
10891"id":"intertitre3",
10892"name":"Transformer en {{{***intertitre niveau trois}}}",
10893"className":"outil_intertitre3",
10894"openWith":"\n{{{***",
10895"closeWith":"}}}\n",
10896"display":true,
10897"selectionType":"line"
10898},
10899{
10900"id":"alignerdroite",
10901"name":"[\/Aligne \u00e0 droite\/] le paragraphe",
10902"className":"outil_alignerdroite",
10903"openWith":"\n[\/",
10904"closeWith":"\/]\n",
10905"display":true,
10906"selectionType":"line"
10907},
10908{
10909"id":"alignergauche",
10910"name":"[!Aligne \u00e0 gauche\u00a0!] le paragraphe",
10911"className":"outil_alignergauche",
10912"openWith":"\n[!",
10913"closeWith":"!]\n",
10914"display":true,
10915"lang":[
10916"ar",
10917"fa"
10918],
10919"selectionType":"line"
10920},
10921{
10922"id":"cadretexte",
10923"name":"[(Encadrer)] le paragraphe",
10924"className":"outil_cadretexte",
10925"openWith":"\n[(",
10926"closeWith":")]\n",
10927"display":true,
10928"selectionType":"line"
10929},
10930{
10931"id":"barre_cadre",
10932"name":"Placer dans une <cadre>zone de saisie de texte<\/cadre>",
10933"className":"outil_barre_cadre",
10934"openWith":"\n<cadre>",
10935"closeWith":"<\/cadre>\n",
10936"display":true,
10937"selectionType":"line"
10938}
10939]
10940},
10941{
10942"name":"Mettre en {{gras}}",
10943"key":"B",
10944"className":"outil_bold",
10945"replaceWith":function(h){return espace_si_accolade(h,'{{','}}');},
10946"selectionType":"word",
10947"dropMenu":[
10948{
10949"id":"italic",
10950"name":"Mettre en {italique}",
10951"key":"I",
10952"className":"outil_italic",
10953"replaceWith":function(h){return espace_si_accolade(h,'{','}');},
10954"display":true,
10955"selectionType":"word"
10956},
10957{
10958"id":"petitescapitales",
10959"name":"Mettre le texte en <sc>petites capitales<\/sc>",
10960"className":"outil_petitescapitales",
10961"openWith":"<sc>",
10962"closeWith":"<\/sc>",
10963"display":true,
10964"selectionType":"word"
10965},
10966{
10967"id":"stroke_through_et",
10968"name":"<del>Barrer<\/del> le texte",
10969"className":"outil_stroke_through_et",
10970"openWith":"<del>",
10971"closeWith":"<\/del>",
10972"display":true,
10973"selectionType":"word"
10974},
10975{
10976"id":"miseenevidence",
10977"name":"Mettre le texte en [*\u00e9vidence*]",
10978"className":"outil_miseenevidence",
10979"openWith":"[*",
10980"closeWith":"*]",
10981"display":true,
10982"selectionType":"word"
10983},
10984{
10985"id":"miseenevidence2",
10986"name":"Mettre le texte en [**\u00e9vidence*] (2e couleur)",
10987"className":"outil_miseenevidence2",
10988"openWith":"[**",
10989"closeWith":"*]",
10990"display":true,
10991"selectionType":"word"
10992},
10993{
10994"id":"exposant",
10995"name":"Mettre le texte en <sup>exposant<\/sup>",
10996"className":"outil_exposant",
10997"openWith":"<sup>",
10998"closeWith":"<\/sup>",
10999"display":true,
11000"selectionType":"word"
11001},
11002{
11003"id":"indice",
11004"name":"Mettre le texte en <sub>indice<\/sub>",
11005"className":"outil_indice",
11006"openWith":"<sub>",
11007"closeWith":"<\/sub>",
11008"display":true,
11009"selectionType":"word"
11010},
11011{
11012"id":"barre_code",
11013"name":"Mettre en forme un <code>code informatique<\/code>",
11014"className":"outil_barre_code",
11015"openWith":"<code>",
11016"closeWith":"<\/code>",
11017"display":true,
11018"selectionType":"word"
11019}
11020]
11021},
11022{
11023"name":"Appliquer au texte une \u00ab\u00a0d\u00e9coration\u00a0\u00bb personnalis\u00e9e",
11024"className":"cs_decoration_drop",
11025"replaceWith":"",
11026"dropMenu":[
11027{
11028"id":"decoration_sc",
11029"name":"D\u00e9coration \u00ab\u00a0span.sc\u00a0\u00bb",
11030"className":"decoration_sc",
11031"selectionType":"word",
11032"replaceWith":function(h){return outil_decoration(h.selection,'sc','span','<sc/>');},
11033"display":true
11034},
11035{
11036"id":"decoration_souligne",
11037"name":"D\u00e9coration \u00ab\u00a0span.souligne\u00a0\u00bb",
11038"className":"decoration_souligne",
11039"selectionType":"word",
11040"replaceWith":function(h){return outil_decoration(h.selection,'souligne','span','<souligne/>');},
11041"display":true
11042},
11043{
11044"id":"decoration_barre",
11045"name":"D\u00e9coration \u00ab\u00a0span.barre\u00a0\u00bb",
11046"className":"decoration_barre",
11047"selectionType":"word",
11048"replaceWith":function(h){return outil_decoration(h.selection,'barre','span','<barre/>');},
11049"display":true
11050},
11051{
11052"id":"decoration_dessus",
11053"name":"D\u00e9coration \u00ab\u00a0span.dessus\u00a0\u00bb",
11054"className":"decoration_dessus",
11055"selectionType":"word",
11056"replaceWith":function(h){return outil_decoration(h.selection,'dessus','span','<dessus/>');},
11057"display":true
11058},
11059{
11060"id":"decoration_clignote",
11061"name":"D\u00e9coration \u00ab\u00a0span.clignote\u00a0\u00bb",
11062"className":"decoration_clignote",
11063"selectionType":"word",
11064"replaceWith":function(h){return outil_decoration(h.selection,'clignote','span','<clignote/>');},
11065"display":true
11066},
11067{
11068"id":"decoration_surfluo",
11069"name":"D\u00e9coration \u00ab\u00a0span.surfluo\u00a0\u00bb",
11070"className":"decoration_surfluo",
11071"selectionType":"word",
11072"replaceWith":function(h){return outil_decoration(h.selection,'surfluo','span','<surfluo/>');},
11073"display":true
11074},
11075{
11076"id":"decoration_surgris",
11077"name":"D\u00e9coration \u00ab\u00a0span.surgris\u00a0\u00bb",
11078"className":"decoration_surgris",
11079"selectionType":"word",
11080"replaceWith":function(h){return outil_decoration(h.selection,'surgris','span','<surgris/>');},
11081"display":true
11082}
11083]
11084},
11085{
11086"name":"Colorer le texte",
11087"className":"cs_couleur_texte",
11088"replaceWith":"",
11089"dropMenu":[
11090{
11091"id":"couleur_texte_noir",
11092"name":"Texte noir",
11093"className":"couleur_texte_noir",
11094"openWith":"[noir]",
11095"closeWith":"[\/noir]",
11096"selectionType":"word",
11097"display":true
11098},
11099{
11100"id":"couleur_texte_rouge",
11101"name":"Texte rouge",
11102"className":"couleur_texte_rouge",
11103"openWith":"[rouge]",
11104"closeWith":"[\/rouge]",
11105"selectionType":"word",
11106"display":true
11107},
11108{
11109"id":"couleur_texte_marron",
11110"name":"Texte marron",
11111"className":"couleur_texte_marron",
11112"openWith":"[marron]",
11113"closeWith":"[\/marron]",
11114"selectionType":"word",
11115"display":true
11116},
11117{
11118"id":"couleur_texte_vert",
11119"name":"Texte vert",
11120"className":"couleur_texte_vert",
11121"openWith":"[vert]",
11122"closeWith":"[\/vert]",
11123"selectionType":"word",
11124"display":true
11125},
11126{
11127"id":"couleur_texte_vertolive",
11128"name":"Texte vert olive",
11129"className":"couleur_texte_vertolive",
11130"openWith":"[vert olive]",
11131"closeWith":"[\/vert olive]",
11132"selectionType":"word",
11133"display":true
11134},
11135{
11136"id":"couleur_texte_bleumarine",
11137"name":"Texte bleu marine",
11138"className":"couleur_texte_bleumarine",
11139"openWith":"[bleu marine]",
11140"closeWith":"[\/bleu marine]",
11141"selectionType":"word",
11142"display":true
11143},
11144{
11145"id":"couleur_texte_violet",
11146"name":"Texte violet",
11147"className":"couleur_texte_violet",
11148"openWith":"[violet]",
11149"closeWith":"[\/violet]",
11150"selectionType":"word",
11151"display":true
11152},
11153{
11154"id":"couleur_texte_gris",
11155"name":"Texte gris",
11156"className":"couleur_texte_gris",
11157"openWith":"[gris]",
11158"closeWith":"[\/gris]",
11159"selectionType":"word",
11160"display":true
11161},
11162{
11163"id":"couleur_texte_argent",
11164"name":"Texte argent",
11165"className":"couleur_texte_argent",
11166"openWith":"[argent]",
11167"closeWith":"[\/argent]",
11168"selectionType":"word",
11169"display":true
11170},
11171{
11172"id":"couleur_texte_vertclair",
11173"name":"Texte vert clair",
11174"className":"couleur_texte_vertclair",
11175"openWith":"[vert clair]",
11176"closeWith":"[\/vert clair]",
11177"selectionType":"word",
11178"display":true
11179},
11180{
11181"id":"couleur_texte_bleu",
11182"name":"Texte bleu",
11183"className":"couleur_texte_bleu",
11184"openWith":"[bleu]",
11185"closeWith":"[\/bleu]",
11186"selectionType":"word",
11187"display":true
11188},
11189{
11190"id":"couleur_texte_fuchia",
11191"name":"Texte fuchia",
11192"className":"couleur_texte_fuchia",
11193"openWith":"[fuchia]",
11194"closeWith":"[\/fuchia]",
11195"selectionType":"word",
11196"display":true
11197},
11198{
11199"id":"couleur_texte_bleuclair",
11200"name":"Texte bleu clair",
11201"className":"couleur_texte_bleuclair",
11202"openWith":"[bleu clair]",
11203"closeWith":"[\/bleu clair]",
11204"selectionType":"word",
11205"display":true
11206},
11207{
11208"id":"couleur_texte_blanc",
11209"name":"Texte blanc",
11210"className":"couleur_texte_blanc",
11211"openWith":"[blanc]",
11212"closeWith":"[\/blanc]",
11213"selectionType":"word",
11214"display":true
11215},
11216{
11217"id":"couleur_texte_bleuazur",
11218"name":"Texte bleu azur",
11219"className":"couleur_texte_bleuazur",
11220"openWith":"[bleu azur]",
11221"closeWith":"[\/bleu azur]",
11222"selectionType":"word",
11223"display":true
11224},
11225{
11226"id":"couleur_texte_beige",
11227"name":"Texte beige",
11228"className":"couleur_texte_beige",
11229"openWith":"[beige]",
11230"closeWith":"[\/beige]",
11231"selectionType":"word",
11232"display":true
11233},
11234{
11235"id":"couleur_texte_brun",
11236"name":"Texte brun",
11237"className":"couleur_texte_brun",
11238"openWith":"[brun]",
11239"closeWith":"[\/brun]",
11240"selectionType":"word",
11241"display":true
11242},
11243{
11244"id":"couleur_texte_bleuviolet",
11245"name":"Texte bleu violet",
11246"className":"couleur_texte_bleuviolet",
11247"openWith":"[bleu violet]",
11248"closeWith":"[\/bleu violet]",
11249"selectionType":"word",
11250"display":true
11251},
11252{
11253"id":"couleur_texte_brunclair",
11254"name":"Texte brun clair",
11255"className":"couleur_texte_brunclair",
11256"openWith":"[brun clair]",
11257"closeWith":"[\/brun clair]",
11258"selectionType":"word",
11259"display":true
11260},
11261{
11262"id":"couleur_texte_roseclair",
11263"name":"Texte rose clair",
11264"className":"couleur_texte_roseclair",
11265"openWith":"[rose clair]",
11266"closeWith":"[\/rose clair]",
11267"selectionType":"word",
11268"display":true
11269},
11270{
11271"id":"couleur_texte_vertfonce",
11272"name":"Texte vert fonce",
11273"className":"couleur_texte_vertfonce",
11274"openWith":"[vert fonce]",
11275"closeWith":"[\/vert fonce]",
11276"selectionType":"word",
11277"display":true
11278},
11279{
11280"id":"couleur_texte_orangefonce",
11281"name":"Texte orange fonce",
11282"className":"couleur_texte_orangefonce",
11283"openWith":"[orange fonce]",
11284"closeWith":"[\/orange fonce]",
11285"selectionType":"word",
11286"display":true
11287},
11288{
11289"id":"couleur_texte_mauvefonce",
11290"name":"Texte mauve fonce",
11291"className":"couleur_texte_mauvefonce",
11292"openWith":"[mauve fonce]",
11293"closeWith":"[\/mauve fonce]",
11294"selectionType":"word",
11295"display":true
11296},
11297{
11298"id":"couleur_texte_bleuciel",
11299"name":"Texte bleu ciel",
11300"className":"couleur_texte_bleuciel",
11301"openWith":"[bleu ciel]",
11302"closeWith":"[\/bleu ciel]",
11303"selectionType":"word",
11304"display":true
11305},
11306{
11307"id":"couleur_texte_or",
11308"name":"Texte or",
11309"className":"couleur_texte_or",
11310"openWith":"[or]",
11311"closeWith":"[\/or]",
11312"selectionType":"word",
11313"display":true
11314},
11315{
11316"id":"couleur_texte_ivoire",
11317"name":"Texte ivoire",
11318"className":"couleur_texte_ivoire",
11319"openWith":"[ivoire]",
11320"closeWith":"[\/ivoire]",
11321"selectionType":"word",
11322"display":true
11323},
11324{
11325"id":"couleur_texte_orange",
11326"name":"Texte orange",
11327"className":"couleur_texte_orange",
11328"openWith":"[orange]",
11329"closeWith":"[\/orange]",
11330"selectionType":"word",
11331"display":true
11332},
11333{
11334"id":"couleur_texte_lavande",
11335"name":"Texte lavande",
11336"className":"couleur_texte_lavande",
11337"openWith":"[lavande]",
11338"closeWith":"[\/lavande]",
11339"selectionType":"word",
11340"display":true
11341},
11342{
11343"id":"couleur_texte_rose",
11344"name":"Texte rose",
11345"className":"couleur_texte_rose",
11346"openWith":"[rose]",
11347"closeWith":"[\/rose]",
11348"selectionType":"word",
11349"display":true
11350},
11351{
11352"id":"couleur_texte_prune",
11353"name":"Texte prune",
11354"className":"couleur_texte_prune",
11355"openWith":"[prune]",
11356"closeWith":"[\/prune]",
11357"selectionType":"word",
11358"display":true
11359},
11360{
11361"id":"couleur_texte_saumon",
11362"name":"Texte saumon",
11363"className":"couleur_texte_saumon",
11364"openWith":"[saumon]",
11365"closeWith":"[\/saumon]",
11366"selectionType":"word",
11367"display":true
11368},
11369{
11370"id":"couleur_texte_neige",
11371"name":"Texte neige",
11372"className":"couleur_texte_neige",
11373"openWith":"[neige]",
11374"closeWith":"[\/neige]",
11375"selectionType":"word",
11376"display":true
11377},
11378{
11379"id":"couleur_texte_turquoise",
11380"name":"Texte turquoise",
11381"className":"couleur_texte_turquoise",
11382"openWith":"[turquoise]",
11383"closeWith":"[\/turquoise]",
11384"selectionType":"word",
11385"display":true
11386},
11387{
11388"id":"couleur_texte_jaunepaille",
11389"name":"Texte jaune paille",
11390"className":"couleur_texte_jaunepaille",
11391"openWith":"[jaune paille]",
11392"closeWith":"[\/jaune paille]",
11393"selectionType":"word",
11394"display":true
11395},
11396{
11397"id":"couleur_texte_jaune",
11398"name":"Texte jaune",
11399"className":"couleur_texte_jaune",
11400"openWith":"[jaune]",
11401"closeWith":"[\/jaune]",
11402"selectionType":"word",
11403"display":true
11404}
11405]
11406},
11407{
11408"name":"Colorer le fond",
11409"className":"cs_couleur_fond",
11410"replaceWith":"",
11411"dropMenu":[
11412{
11413"id":"couleur_fond_noir",
11414"name":"Fond noir",
11415"className":"couleur_fond_noir",
11416"openWith":"[fond noir]",
11417"closeWith":"[\/fond noir]",
11418"selectionType":"word",
11419"display":true
11420},
11421{
11422"id":"couleur_fond_rouge",
11423"name":"Fond rouge",
11424"className":"couleur_fond_rouge",
11425"openWith":"[fond rouge]",
11426"closeWith":"[\/fond rouge]",
11427"selectionType":"word",
11428"display":true
11429},
11430{
11431"id":"couleur_fond_marron",
11432"name":"Fond marron",
11433"className":"couleur_fond_marron",
11434"openWith":"[fond marron]",
11435"closeWith":"[\/fond marron]",
11436"selectionType":"word",
11437"display":true
11438},
11439{
11440"id":"couleur_fond_vert",
11441"name":"Fond vert",
11442"className":"couleur_fond_vert",
11443"openWith":"[fond vert]",
11444"closeWith":"[\/fond vert]",
11445"selectionType":"word",
11446"display":true
11447},
11448{
11449"id":"couleur_fond_vertolive",
11450"name":"Fond vert olive",
11451"className":"couleur_fond_vertolive",
11452"openWith":"[fond vert olive]",
11453"closeWith":"[\/fond vert olive]",
11454"selectionType":"word",
11455"display":true
11456},
11457{
11458"id":"couleur_fond_bleumarine",
11459"name":"Fond bleu marine",
11460"className":"couleur_fond_bleumarine",
11461"openWith":"[fond bleu marine]",
11462"closeWith":"[\/fond bleu marine]",
11463"selectionType":"word",
11464"display":true
11465},
11466{
11467"id":"couleur_fond_violet",
11468"name":"Fond violet",
11469"className":"couleur_fond_violet",
11470"openWith":"[fond violet]",
11471"closeWith":"[\/fond violet]",
11472"selectionType":"word",
11473"display":true
11474},
11475{
11476"id":"couleur_fond_gris",
11477"name":"Fond gris",
11478"className":"couleur_fond_gris",
11479"openWith":"[fond gris]",
11480"closeWith":"[\/fond gris]",
11481"selectionType":"word",
11482"display":true
11483},
11484{
11485"id":"couleur_fond_argent",
11486"name":"Fond argent",
11487"className":"couleur_fond_argent",
11488"openWith":"[fond argent]",
11489"closeWith":"[\/fond argent]",
11490"selectionType":"word",
11491"display":true
11492},
11493{
11494"id":"couleur_fond_vertclair",
11495"name":"Fond vert clair",
11496"className":"couleur_fond_vertclair",
11497"openWith":"[fond vert clair]",
11498"closeWith":"[\/fond vert clair]",
11499"selectionType":"word",
11500"display":true
11501},
11502{
11503"id":"couleur_fond_bleu",
11504"name":"Fond bleu",
11505"className":"couleur_fond_bleu",
11506"openWith":"[fond bleu]",
11507"closeWith":"[\/fond bleu]",
11508"selectionType":"word",
11509"display":true
11510},
11511{
11512"id":"couleur_fond_fuchia",
11513"name":"Fond fuchia",
11514"className":"couleur_fond_fuchia",
11515"openWith":"[fond fuchia]",
11516"closeWith":"[\/fond fuchia]",
11517"selectionType":"word",
11518"display":true
11519},
11520{
11521"id":"couleur_fond_bleuclair",
11522"name":"Fond bleu clair",
11523"className":"couleur_fond_bleuclair",
11524"openWith":"[fond bleu clair]",
11525"closeWith":"[\/fond bleu clair]",
11526"selectionType":"word",
11527"display":true
11528},
11529{
11530"id":"couleur_fond_blanc",
11531"name":"Fond blanc",
11532"className":"couleur_fond_blanc",
11533"openWith":"[fond blanc]",
11534"closeWith":"[\/fond blanc]",
11535"selectionType":"word",
11536"display":true
11537},
11538{
11539"id":"couleur_fond_bleuazur",
11540"name":"Fond bleu azur",
11541"className":"couleur_fond_bleuazur",
11542"openWith":"[fond bleu azur]",
11543"closeWith":"[\/fond bleu azur]",
11544"selectionType":"word",
11545"display":true
11546},
11547{
11548"id":"couleur_fond_beige",
11549"name":"Fond beige",
11550"className":"couleur_fond_beige",
11551"openWith":"[fond beige]",
11552"closeWith":"[\/fond beige]",
11553"selectionType":"word",
11554"display":true
11555},
11556{
11557"id":"couleur_fond_brun",
11558"name":"Fond brun",
11559"className":"couleur_fond_brun",
11560"openWith":"[fond brun]",
11561"closeWith":"[\/fond brun]",
11562"selectionType":"word",
11563"display":true
11564},
11565{
11566"id":"couleur_fond_bleuviolet",
11567"name":"Fond bleu violet",
11568"className":"couleur_fond_bleuviolet",
11569"openWith":"[fond bleu violet]",
11570"closeWith":"[\/fond bleu violet]",
11571"selectionType":"word",
11572"display":true
11573},
11574{
11575"id":"couleur_fond_brunclair",
11576"name":"Fond brun clair",
11577"className":"couleur_fond_brunclair",
11578"openWith":"[fond brun clair]",
11579"closeWith":"[\/fond brun clair]",
11580"selectionType":"word",
11581"display":true
11582},
11583{
11584"id":"couleur_fond_roseclair",
11585"name":"Fond rose clair",
11586"className":"couleur_fond_roseclair",
11587"openWith":"[fond rose clair]",
11588"closeWith":"[\/fond rose clair]",
11589"selectionType":"word",
11590"display":true
11591},
11592{
11593"id":"couleur_fond_vertfonce",
11594"name":"Fond vert fonce",
11595"className":"couleur_fond_vertfonce",
11596"openWith":"[fond vert fonce]",
11597"closeWith":"[\/fond vert fonce]",
11598"selectionType":"word",
11599"display":true
11600},
11601{
11602"id":"couleur_fond_orangefonce",
11603"name":"Fond orange fonce",
11604"className":"couleur_fond_orangefonce",
11605"openWith":"[fond orange fonce]",
11606"closeWith":"[\/fond orange fonce]",
11607"selectionType":"word",
11608"display":true
11609},
11610{
11611"id":"couleur_fond_mauvefonce",
11612"name":"Fond mauve fonce",
11613"className":"couleur_fond_mauvefonce",
11614"openWith":"[fond mauve fonce]",
11615"closeWith":"[\/fond mauve fonce]",
11616"selectionType":"word",
11617"display":true
11618},
11619{
11620"id":"couleur_fond_bleuciel",
11621"name":"Fond bleu ciel",
11622"className":"couleur_fond_bleuciel",
11623"openWith":"[fond bleu ciel]",
11624"closeWith":"[\/fond bleu ciel]",
11625"selectionType":"word",
11626"display":true
11627},
11628{
11629"id":"couleur_fond_or",
11630"name":"Fond or",
11631"className":"couleur_fond_or",
11632"openWith":"[fond or]",
11633"closeWith":"[\/fond or]",
11634"selectionType":"word",
11635"display":true
11636},
11637{
11638"id":"couleur_fond_ivoire",
11639"name":"Fond ivoire",
11640"className":"couleur_fond_ivoire",
11641"openWith":"[fond ivoire]",
11642"closeWith":"[\/fond ivoire]",
11643"selectionType":"word",
11644"display":true
11645},
11646{
11647"id":"couleur_fond_orange",
11648"name":"Fond orange",
11649"className":"couleur_fond_orange",
11650"openWith":"[fond orange]",
11651"closeWith":"[\/fond orange]",
11652"selectionType":"word",
11653"display":true
11654},
11655{
11656"id":"couleur_fond_lavande",
11657"name":"Fond lavande",
11658"className":"couleur_fond_lavande",
11659"openWith":"[fond lavande]",
11660"closeWith":"[\/fond lavande]",
11661"selectionType":"word",
11662"display":true
11663},
11664{
11665"id":"couleur_fond_rose",
11666"name":"Fond rose",
11667"className":"couleur_fond_rose",
11668"openWith":"[fond rose]",
11669"closeWith":"[\/fond rose]",
11670"selectionType":"word",
11671"display":true
11672},
11673{
11674"id":"couleur_fond_prune",
11675"name":"Fond prune",
11676"className":"couleur_fond_prune",
11677"openWith":"[fond prune]",
11678"closeWith":"[\/fond prune]",
11679"selectionType":"word",
11680"display":true
11681},
11682{
11683"id":"couleur_fond_saumon",
11684"name":"Fond saumon",
11685"className":"couleur_fond_saumon",
11686"openWith":"[fond saumon]",
11687"closeWith":"[\/fond saumon]",
11688"selectionType":"word",
11689"display":true
11690},
11691{
11692"id":"couleur_fond_neige",
11693"name":"Fond neige",
11694"className":"couleur_fond_neige",
11695"openWith":"[fond neige]",
11696"closeWith":"[\/fond neige]",
11697"selectionType":"word",
11698"display":true
11699},
11700{
11701"id":"couleur_fond_turquoise",
11702"name":"Fond turquoise",
11703"className":"couleur_fond_turquoise",
11704"openWith":"[fond turquoise]",
11705"closeWith":"[\/fond turquoise]",
11706"selectionType":"word",
11707"display":true
11708},
11709{
11710"id":"couleur_fond_jaunepaille",
11711"name":"Fond jaune paille",
11712"className":"couleur_fond_jaunepaille",
11713"openWith":"[fond jaune paille]",
11714"closeWith":"[\/fond jaune paille]",
11715"selectionType":"word",
11716"display":true
11717},
11718{
11719"id":"couleur_fond_jaune",
11720"name":"Fond jaune",
11721"className":"couleur_fond_jaune",
11722"openWith":"[fond jaune]",
11723"closeWith":"[\/fond jaune]",
11724"selectionType":"word",
11725"display":true
11726}
11727]
11728},
11729{
11730"name":"Mettre en liste",
11731"className":"outil_liste_ul separateur_avant",
11732"replaceWith":function(h){return outil_liste(h,'*');},
11733"selectionType":"line",
11734"forceMultiline":true,
11735"dropMenu":[
11736{
11737"id":"liste_ol",
11738"name":"Mettre en liste num\u00e9rot\u00e9e",
11739"className":"outil_liste_ol",
11740"replaceWith":function(h){return outil_liste(h,'#');},
11741"display":true,
11742"selectionType":"line",
11743"forceMultiline":true
11744},
11745{
11746"id":"desindenter",
11747"name":"D\u00e9sindenter une liste",
11748"className":"outil_desindenter",
11749"replaceWith":function(h){return outil_desindenter(h);},
11750"display":true,
11751"selectionType":"line",
11752"forceMultiline":true
11753},
11754{
11755"id":"indenter",
11756"name":"Indenter une liste",
11757"className":"outil_indenter",
11758"replaceWith":function(h){return outil_indenter(h);},
11759"display":true,
11760"selectionType":"line",
11761"forceMultiline":true
11762}
11763]
11764},
11765{
11766"name":"Transformer en [lien hypertexte->http:\/\/...]",
11767"key":"L",
11768"className":"outil_link separateur separateur_apres sepLink",
11769"openWith":"[",
11770"closeWith":"->[![Veuillez indiquer l\u2019adresse de votre lien (vous pouvez indiquer une adresse Internet sous la forme http:\/\/www.monsite.com, une adresse courriel, ou simplement indiquer le num\u00e9ro d\u2019un article de ce site.]!]]",
11771"dropMenu":[
11772{
11773"id":"notes",
11774"name":"Transformer en [[Note de bas de page]]",
11775"className":"outil_notes",
11776"openWith":"[[",
11777"closeWith":"]]",
11778"display":true,
11779"selectionType":"word"
11780}
11781]
11782},
11783{
11784"name":"Ins\u00e9rer\/modifier (le s\u00e9lectionner avant) un tableau",
11785"className":"outil_barre_tableau separateur_avant",
11786"replaceWith":function(markitup){zone_selection=markitup.textarea;jQuery.modalboxload('https://histoire-genealogie.com/spip.php?page=typoenluminee_tableau_edit&modalbox=oui',{minWidth:'90%',minHeight:'90%',iframe:true,type:'iframe'});},
11787"selectionType":"line"
11788},
11789{
11790"name":"<quote>Citer un message<\/quote>",
11791"key":"Q",
11792"className":"outil_quote separateur separateur_apres sepGuillemets",
11793"openWith":"<quote>",
11794"closeWith":"<\/quote>",
11795"selectionType":"word",
11796"dropMenu":[
11797{
11798"id":"barre_poesie",
11799"name":"Mettre en forme comme une <poesie>po\u00e9sie<\/poesie>",
11800"className":"outil_barre_poesie",
11801"openWith":"\n<poesie>\n",
11802"closeWith":"\n<\/poesie>\n",
11803"display":true,
11804"selectionType":"word"
11805}
11806]
11807},
11808{
11809"name":"Entourer de \u00ab\u00a0guillemets\u00a0\u00bb",
11810"className":"outil_guillemets",
11811"openWith":"«",
11812"closeWith":"»",
11813"lang":[
11814"fr",
11815"eo",
11816"cpf",
11817"ar",
11818"es"
11819],
11820"selectionType":"word",
11821"dropMenu":[
11822{
11823"id":"guillemets_simples",
11824"name":"Entourer de \u201cguillemets de second niveau\u201d",
11825"className":"outil_guillemets_simples",
11826"openWith":"“",
11827"closeWith":"”",
11828"display":true,
11829"lang":[
11830"fr",
11831"eo",
11832"cpf",
11833"ar",
11834"es"
11835],
11836"selectionType":"word"
11837}
11838]
11839},
11840{
11841"name":"Entourer de \u00ab\u00a0guillemets\u00a0\u00bb",
11842"className":"outil_guillemets_de",
11843"openWith":"„",
11844"closeWith":"“",
11845"lang":[
11846"bg",
11847"de",
11848"pl",
11849"hr",
11850"src"
11851],
11852"selectionType":"word",
11853"dropMenu":[
11854{
11855"id":"guillemets_de_simples",
11856"name":"Entourer de \u201cguillemets de second niveau\u201d",
11857"className":"outil_guillemets_de_simples",
11858"openWith":"&sbquo;",
11859"closeWith":"‘",
11860"display":true,
11861"lang":[
11862"bg",
11863"de",
11864"pl",
11865"hr",
11866"src"
11867],
11868"selectionType":"word"
11869}
11870]
11871},
11872{
11873"name":"Entourer de \u00ab\u00a0guillemets\u00a0\u00bb",
11874"className":"outil_guillemets_simples separateur_avant",
11875"openWith":"“",
11876"closeWith":"”",
11877"lang_not":[
11878"fr",
11879"eo",
11880"cpf",
11881"ar",
11882"es",
11883"bg",
11884"de",
11885"pl",
11886"hr",
11887"src"
11888],
11889"selectionType":"word",
11890"dropMenu":[
11891{
11892"id":"guillemets_autres_simples",
11893"name":"Entourer de \u201cguillemets de second niveau\u201d",
11894"className":"outil_guillemets_uniques",
11895"openWith":"‘",
11896"closeWith":"’",
11897"display":true,
11898"lang_not":[
11899"fr",
11900"eo",
11901"cpf",
11902"ar",
11903"es",
11904"bg",
11905"de",
11906"pl",
11907"hr",
11908"src"
11909],
11910"selectionType":"word"
11911}
11912]
11913},
11914{
11915"name":"Ins\u00e9rer des caract\u00e8res sp\u00e9cifiques",
11916"className":"outil_caracteres separateur separateur_apres sepCaracteres",
11917"dropMenu":[
11918{
11919"id":"A_grave",
11920"name":"Ins\u00e9rer un \u00c0",
11921"className":"outil_a_maj_grave",
11922"replaceWith":"À",
11923"display":true,
11924"lang":[
11925"fr",
11926"eo",
11927"cpf"
11928]
11929},
11930{
11931"id":"E_aigu",
11932"name":"Ins\u00e9rer un \u00c9",
11933"className":"outil_e_maj_aigu",
11934"replaceWith":"É",
11935"display":true,
11936"lang":[
11937"fr",
11938"eo",
11939"cpf"
11940]
11941},
11942{
11943"id":"E_grave",
11944"name":"Ins\u00e9rer un \u00c8",
11945"className":"outil_e_maj_grave",
11946"replaceWith":"È",
11947"display":true,
11948"lang":[
11949"fr",
11950"eo",
11951"cpf"
11952]
11953},
11954{
11955"id":"aelig",
11956"name":"Ins\u00e9rer un \u00e6",
11957"className":"outil_aelig",
11958"replaceWith":"æ",
11959"display":true,
11960"lang":[
11961"fr",
11962"eo",
11963"cpf"
11964]
11965},
11966{
11967"id":"AElig",
11968"name":"Ins\u00e9rer un \u00c6",
11969"className":"outil_aelig_maj",
11970"replaceWith":"Æ",
11971"display":true,
11972"lang":[
11973"fr",
11974"eo",
11975"cpf"
11976]
11977},
11978{
11979"id":"oe",
11980"name":"Ins\u00e9rer un \u0153",
11981"className":"outil_oe",
11982"replaceWith":"œ",
11983"display":true,
11984"lang":[
11985"fr"
11986]
11987},
11988{
11989"id":"OE",
11990"name":"Ins\u00e9rer un \u0152",
11991"className":"outil_oe_maj",
11992"replaceWith":"Œ",
11993"display":true,
11994"lang":[
11995"fr"
11996]
11997},
11998{
11999"id":"Ccedil",
12000"name":"Ins\u00e9rer un \u00c7",
12001"className":"outil_ccedil_maj",
12002"replaceWith":"Ç",
12003"display":true,
12004"lang":[
12005"fr",
12006"eo",
12007"cpf"
12008]
12009},
12010{
12011"id":"uppercase",
12012"name":"Passer en majuscules",
12013"className":"outil_uppercase",
12014"replaceWith":function(markitup){return markitup.selection.toUpperCase()},
12015"display":true,
12016"lang":[
12017"fr",
12018"en"
12019]
12020},
12021{
12022"id":"lowercase",
12023"name":"Passer en minuscules",
12024"className":"outil_lowercase",
12025"replaceWith":function(markitup){return markitup.selection.toLowerCase()},
12026"display":true,
12027"lang":[
12028"fr",
12029"en"
12030]
12031}
12032]
12033},
12034{
12035"name":"Ins\u00e9rer un filet de s\u00e9paration",
12036"className":"cs_filets_drop",
12037"replaceWith":"",
12038"dropMenu":[
12039{
12040"id":"filet_0",
12041"name":"Ins\u00e9rer un filet de style \u00ab\u00a00\u00a0\u00bb",
12042"className":"filet_0",
12043"replaceWith":"\n__0__\n",
12044"display":true
12045},
12046{
12047"id":"filet_1",
12048"name":"Ins\u00e9rer un filet de style \u00ab\u00a01\u00a0\u00bb",
12049"className":"filet_1",
12050"replaceWith":"\n__1__\n",
12051"display":true
12052},
12053{
12054"id":"filet_2",
12055"name":"Ins\u00e9rer un filet de style \u00ab\u00a02\u00a0\u00bb",
12056"className":"filet_2",
12057"replaceWith":"\n__2__\n",
12058"display":true
12059},
12060{
12061"id":"filet_3",
12062"name":"Ins\u00e9rer un filet de style \u00ab\u00a03\u00a0\u00bb",
12063"className":"filet_3",
12064"replaceWith":"\n__3__\n",
12065"display":true
12066},
12067{
12068"id":"filet_4",
12069"name":"Ins\u00e9rer un filet de style \u00ab\u00a04\u00a0\u00bb",
12070"className":"filet_4",
12071"replaceWith":"\n__4__\n",
12072"display":true
12073},
12074{
12075"id":"filet_5",
12076"name":"Ins\u00e9rer un filet de style \u00ab\u00a05\u00a0\u00bb",
12077"className":"filet_5",
12078"replaceWith":"\n__5__\n",
12079"display":true
12080},
12081{
12082"id":"filet_6",
12083"name":"Ins\u00e9rer un filet de style \u00ab\u00a06\u00a0\u00bb",
12084"className":"filet_6",
12085"replaceWith":"\n__6__\n",
12086"display":true
12087},
12088{
12089"id":"filet_7",
12090"name":"Ins\u00e9rer un filet de style \u00ab\u00a07\u00a0\u00bb",
12091"className":"filet_7",
12092"replaceWith":"\n__7__\n",
12093"display":true
12094},
12095{
12096"id":"filet_degrade_png",
12097"name":"Ins\u00e9rer un filet de style \u00ab\u00a0degrade\u00a0\u00bb",
12098"className":"filet_degrade_png",
12099"replaceWith":"\n__degrade.png__\n",
12100"display":true
12101},
12102{
12103"id":"filet_ornement_png",
12104"name":"Ins\u00e9rer un filet de style \u00ab\u00a0ornement\u00a0\u00bb",
12105"className":"filet_ornement_png",
12106"replaceWith":"\n__ornement.png__\n",
12107"display":true
12108}
12109]
12110},
12111{
12112"name":"TarteAuCitron",
12113"className":"tac_drop",
12114"replaceWith":"",
12115"dropMenu":[
12116{
12117"id":"facebook_video",
12118"name":"facebook_video",
12119"className":"tac_facebook_video",
12120"openWith":"<tac_facebook_video",
12121"closeWith":">",
12122"display":true
12123}
12124]
12125},
12126{
12127"name":"sourire :-)",
12128"className":"outil_frimousses",
12129"replaceWith":" :-) ",
12130"dropMenu":[
12131{
12132"id":"barre_frimousse0",
12133"name":"PTDR :-)) :-D :))",
12134"className":"outil_frimousses0",
12135"replaceWith":" :-)) ",
12136"display":true
12137},
12138{
12139"id":"barre_frimousse1",
12140"name":"bisou :-)* :-*",
12141"className":"outil_frimousses1",
12142"replaceWith":" :-)* ",
12143"display":true
12144},
12145{
12146"id":"barre_frimousse2",
12147"name":"sourire :-) :O) :o) :0)",
12148"className":"outil_frimousses2",
12149"replaceWith":" :-) ",
12150"display":true
12151},
12152{
12153"id":"barre_frimousse3",
12154"name":"ange o:) O:) 0:)",
12155"className":"outil_frimousses3",
12156"replaceWith":" o:) ",
12157"display":true
12158},
12159{
12160"id":"barre_frimousse4",
12161"name":"sid\u00e9r\u00e9 %-) 8-)",
12162"className":"outil_frimousses4",
12163"replaceWith":" %-) ",
12164"display":true
12165},
12166{
12167"id":"barre_frimousse5",
12168"name":"clin d'\u0153il ;-)",
12169"className":"outil_frimousses5",
12170"replaceWith":" ;-) ",
12171"display":true
12172},
12173{
12174"id":"barre_frimousse6",
12175"name":"triste :-(( :-(",
12176"className":"outil_frimousses6",
12177"replaceWith":" :-(( ",
12178"display":true
12179},
12180{
12181"id":"barre_frimousse7",
12182"name":"col\u00e8re :-O :-0",
12183"className":"outil_frimousses7",
12184"replaceWith":" :-O ",
12185"display":true
12186},
12187{
12188"id":"barre_frimousse8",
12189"name":"sans voix :-| |-)",
12190"className":"outil_frimousses8",
12191"replaceWith":" :-| ",
12192"display":true
12193},
12194{
12195"id":"barre_frimousse9",
12196"name":"perplexe :-\/",
12197"className":"outil_frimousses9",
12198"replaceWith":" :-\/ ",
12199"display":true
12200},
12201{
12202"id":"barre_frimousse10",
12203"name":"langue tir\u00e9e :-p :-P",
12204"className":"outil_frimousses10",
12205"replaceWith":" :-p ",
12206"display":true
12207},
12208{
12209"id":"barre_frimousse11",
12210"name":"pleure :'-( :'( :~(",
12211"className":"outil_frimousses11",
12212"replaceWith":" :'-( ",
12213"display":true
12214},
12215{
12216"id":"barre_frimousse12",
12217"name":"timide :-... :... :-.. :.. :-. :.",
12218"className":"outil_frimousses12",
12219"replaceWith":" :-... ",
12220"display":true
12221},
12222{
12223"id":"barre_frimousse13",
12224"name":"muet :-x",
12225"className":"outil_frimousses13",
12226"replaceWith":" :-x ",
12227"display":true
12228},
12229{
12230"id":"barre_frimousse14",
12231"name":"lunettes de soleil B-)",
12232"className":"outil_frimousses14",
12233"replaceWith":" B-) ",
12234"display":true
12235},
12236{
12237"id":"barre_frimousse15",
12238"name":"endormi :-@",
12239"className":"outil_frimousses15",
12240"replaceWith":" :-@ ",
12241"display":true
12242},
12243{
12244"id":"barre_frimousse16",
12245"name":"avide :-$",
12246"className":"outil_frimousses16",
12247"replaceWith":" :-$ ",
12248"display":true
12249},
12250{
12251"id":"barre_frimousse17",
12252"name":"ind\u00e9cis :-!",
12253"className":"outil_frimousses17",
12254"replaceWith":" :-! ",
12255"display":true
12256}
12257]
12258}
12259]
12260}
12261function outil_liste(h,c){
12262if((s=h.selection)&&(r=s.match(/^-([*#]+) (.*)$/))){
12263r[1]=r[1].replace(/[#*]/g,c);
12264s='-'+r[1]+' '+r[2];
12265}else{
12266s='-'+c+' '+s;
12267}
12268return s;
12269}
12270function outil_indenter(h){
12271if(s=h.selection){
12272if(s.substr(0,2)=='-*'){
12273s='-**'+s.substr(2);
12274}else if(s.substr(0,2)=='-#'){
12275s='-##'+s.substr(2);
12276}else{
12277s='-* '+s;
12278}
12279}
12280return s;
12281}
12282function outil_desindenter(h){
12283if(s=h.selection){
12284if(s.substr(0,3)=='-**'){
12285s='-*'+s.substr(3);
12286}else if(s.substr(0,3)=='-* '){
12287s=s.substr(3);
12288}else if(s.substr(0,3)=='-##'){
12289s='-#'+s.substr(3);
12290}else if(s.substr(0,3)=='-# '){
12291s=s.substr(3);
12292}
12293}
12294return s;
12295}
12296function espace_si_accolade(h,openWith,closeWith){
12297if(s=h.selection){
12298if(s.charAt(0)=='{'){
12299return openWith+' '+s+' '+closeWith;
12300}
12301else if(c=h.textarea.selectionStart){
12302if(h.textarea.value.charAt(c-1)=='{'){
12303return' '+openWith+s+closeWith+' ';
12304}
12305}
12306}
12307return openWith+s+closeWith;
12308}
12309function outil_decoration(sel,racc,balise,defaut){
12310if(sel){
12311r='<'+racc+'>'+sel+'</'+racc+'>';
12312return balise=='span'?r.replace(/(\n\n|\r\n\r\n|\r\r)/g,'</'+racc+'>$1<'+racc+'>'):r;
12313}
12314return defaut;
12315}
12316barre_outils_forum={
12317"nameSpace":"forum",
12318"previewAutoRefresh":false,
12319"onEnter":{
12320"keepDefault":false,
12321"selectionType":"return",
12322"replaceWith":"\n"
12323},
12324"onShiftEnter":{
12325"keepDefault":false,
12326"replaceWith":"\n_ "
12327},
12328"onCtrlEnter":{
12329"keepDefault":false,
12330"replaceWith":"\n\n"
12331},
12332"markupSet":[
12333{
12334"name":"Mettre en {{gras}}",
12335"key":"B",
12336"className":"outil_bold",
12337"replaceWith":function(h){return espace_si_accolade(h,'{{','}}');},
12338"selectionType":"word"
12339},
12340{
12341"name":"Mettre en {italique}",
12342"key":"I",
12343"className":"outil_italic",
12344"replaceWith":function(h){return espace_si_accolade(h,'{','}');},
12345"selectionType":"word"
12346},
12347{
12348"name":"Appliquer au texte une \u00ab\u00a0d\u00e9coration\u00a0\u00bb personnalis\u00e9e",
12349"className":"cs_decoration_drop separateur_avant",
12350"replaceWith":"",
12351"dropMenu":[
12352{
12353"id":"decoration_sc",
12354"name":"D\u00e9coration \u00ab\u00a0span.sc\u00a0\u00bb",
12355"className":"decoration_sc",
12356"selectionType":"word",
12357"replaceWith":function(h){return outil_decoration(h.selection,'sc','span','<sc/>');},
12358"display":true
12359},
12360{
12361"id":"decoration_souligne",
12362"name":"D\u00e9coration \u00ab\u00a0span.souligne\u00a0\u00bb",
12363"className":"decoration_souligne",
12364"selectionType":"word",
12365"replaceWith":function(h){return outil_decoration(h.selection,'souligne','span','<souligne/>');},
12366"display":true
12367},
12368{
12369"id":"decoration_barre",
12370"name":"D\u00e9coration \u00ab\u00a0span.barre\u00a0\u00bb",
12371"className":"decoration_barre",
12372"selectionType":"word",
12373"replaceWith":function(h){return outil_decoration(h.selection,'barre','span','<barre/>');},
12374"display":true
12375},
12376{
12377"id":"decoration_dessus",
12378"name":"D\u00e9coration \u00ab\u00a0span.dessus\u00a0\u00bb",
12379"className":"decoration_dessus",
12380"selectionType":"word",
12381"replaceWith":function(h){return outil_decoration(h.selection,'dessus','span','<dessus/>');},
12382"display":true
12383},
12384{
12385"id":"decoration_clignote",
12386"name":"D\u00e9coration \u00ab\u00a0span.clignote\u00a0\u00bb",
12387"className":"decoration_clignote",
12388"selectionType":"word",
12389"replaceWith":function(h){return outil_decoration(h.selection,'clignote','span','<clignote/>');},
12390"display":true
12391},
12392{
12393"id":"decoration_surfluo",
12394"name":"D\u00e9coration \u00ab\u00a0span.surfluo\u00a0\u00bb",
12395"className":"decoration_surfluo",
12396"selectionType":"word",
12397"replaceWith":function(h){return outil_decoration(h.selection,'surfluo','span','<surfluo/>');},
12398"display":true
12399},
12400{
12401"id":"decoration_surgris",
12402"name":"D\u00e9coration \u00ab\u00a0span.surgris\u00a0\u00bb",
12403"className":"decoration_surgris",
12404"selectionType":"word",
12405"replaceWith":function(h){return outil_decoration(h.selection,'surgris','span','<surgris/>');},
12406"display":true
12407}
12408]
12409},
12410{
12411"name":"Transformer en [lien hypertexte->http:\/\/...]",
12412"key":"L",
12413"className":"outil_link separateur separateur_apres sepLink separateur_avant",
12414"openWith":"[",
12415"closeWith":"->[![Veuillez indiquer l\u2019adresse de votre lien (vous pouvez indiquer une adresse Internet sous la forme http:\/\/www.monsite.com, une adresse courriel, ou simplement indiquer le num\u00e9ro d\u2019un article de ce site.]!]]"
12416},
12417{
12418"name":"<quote>Citer un message<\/quote>",
12419"key":"Q",
12420"className":"outil_quote separateur separateur_apres sepGuillemets",
12421"openWith":"\n<quote>",
12422"closeWith":"<\/quote>\n",
12423"selectionType":"word"
12424},
12425{
12426"name":"Entourer de \u00ab\u00a0guillemets\u00a0\u00bb",
12427"className":"outil_guillemets",
12428"openWith":"«",
12429"closeWith":"»",
12430"lang":[
12431"fr",
12432"eo",
12433"cpf",
12434"ar",
12435"es"
12436],
12437"selectionType":"word",
12438"dropMenu":[
12439{
12440"id":"guillemets_simples",
12441"name":"Entourer de \u201cguillemets de second niveau\u201d",
12442"className":"outil_guillemets_simples",
12443"openWith":"“",
12444"closeWith":"”",
12445"display":true,
12446"lang":[
12447"fr",
12448"eo",
12449"cpf",
12450"ar",
12451"es"
12452],
12453"selectionType":"word"
12454}
12455]
12456},
12457{
12458"name":"Entourer de \u00ab\u00a0guillemets\u00a0\u00bb",
12459"className":"outil_guillemets_de",
12460"openWith":"„",
12461"closeWith":"“",
12462"lang":[
12463"bg",
12464"de",
12465"pl",
12466"hr",
12467"src"
12468],
12469"selectionType":"word",
12470"dropMenu":[
12471{
12472"id":"guillemets_de_simples",
12473"name":"Entourer de \u201cguillemets de second niveau\u201d",
12474"className":"outil_guillemets_de_simples",
12475"openWith":"&sbquo;",
12476"closeWith":"‘",
12477"display":true,
12478"lang":[
12479"bg",
12480"de",
12481"pl",
12482"hr",
12483"src"
12484],
12485"selectionType":"word"
12486}
12487]
12488},
12489{
12490"name":"Entourer de \u00ab\u00a0guillemets\u00a0\u00bb",
12491"className":"outil_guillemets_simples separateur_avant",
12492"openWith":"“",
12493"closeWith":"”",
12494"lang_not":[
12495"fr",
12496"eo",
12497"cpf",
12498"ar",
12499"es",
12500"bg",
12501"de",
12502"pl",
12503"hr",
12504"src"
12505],
12506"selectionType":"word",
12507"dropMenu":[
12508{
12509"id":"guillemets_autres_simples",
12510"name":"Entourer de \u201cguillemets de second niveau\u201d",
12511"className":"outil_guillemets_uniques",
12512"openWith":"‘",
12513"closeWith":"’",
12514"display":true,
12515"lang_not":[
12516"fr",
12517"eo",
12518"cpf",
12519"ar",
12520"es",
12521"bg",
12522"de",
12523"pl",
12524"hr",
12525"src"
12526],
12527"selectionType":"word"
12528}
12529]
12530},
12531{
12532"name":"sourire :-)",
12533"className":"outil_frimousses separateur separateur_apres sepCaracteres",
12534"replaceWith":" :-) ",
12535"dropMenu":[
12536{
12537"id":"barre_frimousse0",
12538"name":"PTDR :-)) :-D :))",
12539"className":"outil_frimousses0",
12540"replaceWith":" :-)) ",
12541"display":true
12542},
12543{
12544"id":"barre_frimousse1",
12545"name":"bisou :-)* :-*",
12546"className":"outil_frimousses1",
12547"replaceWith":" :-)* ",
12548"display":true
12549},
12550{
12551"id":"barre_frimousse2",
12552"name":"sourire :-) :O) :o) :0)",
12553"className":"outil_frimousses2",
12554"replaceWith":" :-) ",
12555"display":true
12556},
12557{
12558"id":"barre_frimousse3",
12559"name":"ange o:) O:) 0:)",
12560"className":"outil_frimousses3",
12561"replaceWith":" o:) ",
12562"display":true
12563},
12564{
12565"id":"barre_frimousse4",
12566"name":"sid\u00e9r\u00e9 %-) 8-)",
12567"className":"outil_frimousses4",
12568"replaceWith":" %-) ",
12569"display":true
12570},
12571{
12572"id":"barre_frimousse5",
12573"name":"clin d'\u0153il ;-)",
12574"className":"outil_frimousses5",
12575"replaceWith":" ;-) ",
12576"display":true
12577},
12578{
12579"id":"barre_frimousse6",
12580"name":"triste :-(( :-(",
12581"className":"outil_frimousses6",
12582"replaceWith":" :-(( ",
12583"display":true
12584},
12585{
12586"id":"barre_frimousse7",
12587"name":"col\u00e8re :-O :-0",
12588"className":"outil_frimousses7",
12589"replaceWith":" :-O ",
12590"display":true
12591},
12592{
12593"id":"barre_frimousse8",
12594"name":"sans voix :-| |-)",
12595"className":"outil_frimousses8",
12596"replaceWith":" :-| ",
12597"display":true
12598},
12599{
12600"id":"barre_frimousse9",
12601"name":"perplexe :-\/",
12602"className":"outil_frimousses9",
12603"replaceWith":" :-\/ ",
12604"display":true
12605},
12606{
12607"id":"barre_frimousse10",
12608"name":"langue tir\u00e9e :-p :-P",
12609"className":"outil_frimousses10",
12610"replaceWith":" :-p ",
12611"display":true
12612},
12613{
12614"id":"barre_frimousse11",
12615"name":"pleure :'-( :'( :~(",
12616"className":"outil_frimousses11",
12617"replaceWith":" :'-( ",
12618"display":true
12619},
12620{
12621"id":"barre_frimousse12",
12622"name":"timide :-... :... :-.. :.. :-. :.",
12623"className":"outil_frimousses12",
12624"replaceWith":" :-... ",
12625"display":true
12626},
12627{
12628"id":"barre_frimousse13",
12629"name":"muet :-x",
12630"className":"outil_frimousses13",
12631"replaceWith":" :-x ",
12632"display":true
12633},
12634{
12635"id":"barre_frimousse14",
12636"name":"lunettes de soleil B-)",
12637"className":"outil_frimousses14",
12638"replaceWith":" B-) ",
12639"display":true
12640},
12641{
12642"id":"barre_frimousse15",
12643"name":"endormi :-@",
12644"className":"outil_frimousses15",
12645"replaceWith":" :-@ ",
12646"display":true
12647},
12648{
12649"id":"barre_frimousse16",
12650"name":"avide :-$",
12651"className":"outil_frimousses16",
12652"replaceWith":" :-$ ",
12653"display":true
12654},
12655{
12656"id":"barre_frimousse17",
12657"name":"ind\u00e9cis :-!",
12658"className":"outil_frimousses17",
12659"replaceWith":" :-! ",
12660"display":true
12661}
12662]
12663}
12664]
12665}
12666function outil_liste(h,c){
12667if((s=h.selection)&&(r=s.match(/^-([*#]+) (.*)$/))){
12668r[1]=r[1].replace(/[#*]/g,c);
12669s='-'+r[1]+' '+r[2];
12670}else{
12671s='-'+c+' '+s;
12672}
12673return s;
12674}
12675function outil_indenter(h){
12676if(s=h.selection){
12677if(s.substr(0,2)=='-*'){
12678s='-**'+s.substr(2);
12679}else if(s.substr(0,2)=='-#'){
12680s='-##'+s.substr(2);
12681}else{
12682s='-* '+s;
12683}
12684}
12685return s;
12686}
12687function outil_desindenter(h){
12688if(s=h.selection){
12689if(s.substr(0,3)=='-**'){
12690s='-*'+s.substr(3);
12691}else if(s.substr(0,3)=='-* '){
12692s=s.substr(3);
12693}else if(s.substr(0,3)=='-##'){
12694s='-#'+s.substr(3);
12695}else if(s.substr(0,3)=='-# '){
12696s=s.substr(3);
12697}
12698}
12699return s;
12700}
12701function espace_si_accolade(h,openWith,closeWith){
12702if(s=h.selection){
12703if(s.charAt(0)=='{'){
12704return openWith+' '+s+' '+closeWith;
12705}
12706else if(c=h.textarea.selectionStart){
12707if(h.textarea.value.charAt(c-1)=='{'){
12708return' '+openWith+s+closeWith+' ';
12709}
12710}
12711}
12712return openWith+s+closeWith;
12713}
12714function outil_decoration(sel,racc,balise,defaut){
12715if(sel){
12716r='<'+racc+'>'+sel+'</'+racc+'>';
12717return balise=='span'?r.replace(/(\n\n|\r\n\r\n|\r\r)/g,'</'+racc+'>$1<'+racc+'>'):r;
12718}
12719return defaut;
12720}
12721barre_outils_vide={
12722"nameSpace":"vide",
12723"previewAutoRefresh":false,
12724"markupSet":[]
12725}
12726function outil_decoration(sel,racc,balise,defaut){
12727if(sel){
12728r='<'+racc+'>'+sel+'</'+racc+'>';
12729return balise=='span'?r.replace(/(\n\n|\r\n\r\n|\r\r)/g,'</'+racc+'>$1<'+racc+'>'):r;
12730}
12731return defaut;
12732}
12733;(function($){
12734$.fn.barre_outils=function(nom,settings){
12735options={
12736lang:'fr'
12737};
12738$.extend(options,settings);
12739return $(this)
12740.not('.markItUpEditor, .no_barre')
12741.markItUp(eval('barre_outils_'+nom),{lang:options.lang})
12742.trigger('markItUpEditor.loaded')
12743.parent().find('.markItUpButton a').attr('tabindex',-1)
12744.end();
12745};
12746$.fn.barre_previsualisation=function(settings){
12747options={
12748previewParserPath:"index.php?action=porte_plume_previsu",
12749textEditer:"Modifier",
12750textVoir:"Voir"
12751};
12752$.extend(options,settings);
12753return $(this)
12754.not('.pp_previsualisation, .no_previsualisation')
12755.previsu_spip(options)
12756.trigger('markItUpPreview.loaded')
12757.parent().find('.markItUpTabs a').attr('tabindex',-1)
12758.end();
12759};
12760$(window).on('load',function(){
12761function barrebouilles(){
12762$('.formulaire_spip textarea.inserer_barre_forum').barre_outils('forum');
12763$('.formulaire_spip textarea.inserer_barre_edition').barre_outils('edition');
12764$('.formulaire_spip textarea.inserer_previsualisation').barre_previsualisation();
12765$('textarea.textarea_forum').barre_outils('forum');
12766$('.formulaire_forum textarea[name=texte]').barre_outils('forum');
12767$('.formulaire_spip textarea[name=texte]')
12768.barre_outils('edition').end()
12769.barre_previsualisation();
12770}
12771barrebouilles();
12772onAjaxLoad(barrebouilles);
12773});
12774})(jQuery);
12775
12776
12777/* plugins/auto/inserer_modeles/v2.4.1/javascript/autosize.min.js */
12778
12779!function(e,t){if("function"==typeof define&&define.amd)define(["module","exports"],t);
12779else if("undefined"!=typeof exports)t(module,exports);else{var n={exports:{}};t(n,n.exports),e.autosize=n.exports}}(this,function(e,t){"use strict";var n,o,p="function"==typeof Map?new Map:(n=[],o=[],{has:function(e){return-1<n.indexOf(e)},get:function(e){return o[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),o.push(t))},delete:function(e){var t=n.indexOf(e);-1<t&&(n.splice(t,1),o.splice(t,1))}}),c=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){c=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function r(r){if(r&&r.nodeName&&"TEXTAREA"===r.nodeName&&!p.has(r)){var e,n=null,o=null,i=null,d=function(){r.clientWidth!==o&&a()},l=function(t){window.removeEventListener("resize",d,!1),r.removeEventListener("input",a,!1),r.removeEventListener("keyup",a,!1),r.removeEventListener("autosize:destroy",l,!1),r.removeEventListener("autosize:update",a,!1),Object.keys(t).forEach(function(e){r.style[e]=t[e]}),p.delete(r)}.bind(r,{height:r.style.height,resize:r.style.resize,overflowY:r.style.overflowY,overflowX:r.style.overflowX,wordWrap:r.style.wordWrap});r.addEventListener("autosize:destroy",l,!1),"onpropertychange"in r&&"oninput"in r&&r.addEventListener("keyup",a,!1),window.addEventListener("resize",d,!1),r.addEventListener("input",a,!1),r.addEventListener("autosize:update",a,!1),r.style.overflowX="hidden",r.style.wordWrap="break-word",p.set(r,{destroy:l,update:a}),"vertical"===(e=window.getComputedStyle(r,null)).resize?r.style.resize="none":"both"===e.resize&&(r.style.resize="horizontal"),n="content-box"===e.boxSizing?-(parseFloat(e.paddingTop)+parseFloat(e.paddingBottom)):parseFloat(e.borderTopWidth)+parseFloat(e.borderBottomWidth),isNaN(n)&&(n=0),a()}function s(e){var t=r.style.width;r.style.width="0px",r.offsetWidth,r.style.width=t,r.style.overflowY=e}function u(){if(0!==r.scrollHeight){var e=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(r),t=document.documentElement&&document.documentElement.scrollTop;r.style.height="",r.style.height=r.scrollHeight+n+"px",o=r.clientWidth,e.forEach(function(e){e.node.scrollTop=e.scrollTop}),t&&(document.documentElement.scrollTop=t)}}function a(){u();var e=Math.round(parseFloat(r.style.height)),t=window.getComputedStyle(r,null),n="content-box"===t.boxSizing?Math.round(parseFloat(t.height)):r.offsetHeight;if(n<e?"hidden"===t.overflowY&&(s("scroll"),u(),n="content-box"===t.boxSizing?Math.round(parseFloat(window.getComputedStyle(r,null).height)):r.offsetHeight):"hidden"!==t.overflowY&&(s("hidden"),u(),n="content-box"===t.boxSizing?Math.round(parseFloat(window.getComputedStyle(r,null).height)):r.offsetHeight),i!==n){i=n;var o=c("autosize:resized");try{r.dispatchEvent(o)}catch(e){}}}}function i(e){var t=p.get(e);t&&t.destroy()}function d(e){var t=p.get(e);t&&t.update()}var l=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((l=function(e){return e}).destroy=function(e){return e},l.update=function(e){return e}):((l=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],function(e){return r(e)}),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],i),e},l.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],d),e}),t.default=l,e.exports=t.default});
12780
12781
12782/* local/couteau-suisse/header.js */
12783var cs_prive=window.location.pathname.match(/\/ecrire\/$/)!=null;
12784jQuery.fn.cs_todo=function(){return this.not('.cs_done').addClass('cs_done');};
12785var cs_verif_email=0;
12786var cs_verif_nom=1;
12787var cs_verif_deux=0;
12788function cs_auteur_forum(){
12789var t=" (obligatoire)";
12790if(cs_verif_deux){
12791jQuery('label[for=session_nom]').cs_todo().append("<br /><i>Merci de spécifier votre nom ou votre email !</i>");
12792cs_verif_nom=cs_verif_email=0;
12793}else{
12794if(cs_verif_nom)jQuery('label[for=session_nom]').cs_todo().append(t);
12795if(cs_verif_email)jQuery('label[for=session_email]').cs_todo().append(t);
12796}
12797var sel=jQuery('fieldset.previsu',this);
12798if(!sel.length)return;
12799var form=sel.parents('form').eq(0);
12800if(!form.length)return;
12801var auteur=jQuery('#session_nom',this);
12802if(!auteur.length)auteur=jQuery('#auteur',this);
12803var email=jQuery('#session_email',this);
12804if(!email.length)email=jQuery('#email_auteur',this);
12805if(auteur.length||email.length)
12806form.cs_todo().bind('submit',function(event){
12807var alert_nom=auteur.length&&!auteur.val().length;
12808var alert_email=email.length&&!email.val().length;
12809var alert_deux=cs_verif_deux&&alert_nom&&alert_email;
12810if(!cs_verif_deux){
12811alert_nom=alert_nom&&cs_verif_nom;
12812alert_email=alert_email&&cs_verif_email;
12813}else if(!alert_deux)
12814alert_nom=alert_email=false;
12815auteur.css('background-color','').css('border','');
12816email.css('background-color','').css('border','');
12817if(alert_email){
12818email.focus();
12819email.css('background-color','#FCC').css('border','solid #C30');
12820}
12821if(alert_nom){
12822auteur.focus();
12823auteur.css('background-color','#FCC').css('border','solid #C30');
12824}
12825if(alert_deux){
12826alert("Merci de spécifier votre nom ou votre email !");
12827return false;
12828}
12829if(alert_nom){
12830alert("Merci de spécifier votre nom !");
12831return false;
12832}
12833if(alert_email){
12834alert("Merci de spécifier votre email !");
12835return false;
12836}
12837return true;
12838});
12839}
12840var cs_init=function(){
12841cs_auteur_forum.apply(this);
12842if(!cs_prive)jQuery("a.spip_out,a.spip_url,a.spip_glossaire",this).attr("target","_blank");
12843}
12844if(typeof onAjaxLoad=='function')onAjaxLoad(cs_init);
12845if(window.jQuery){
12846var cs_sel_jQuery='';
12847var cs_CookiePlugin="prive/javascript/js.cookie.js";
12848jQuery(document).ready(function(){
12849cs_init.apply(document);
12850});
12851}
12852
12853

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.