rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
}E=this.endContainer;F=this.endOffset;y=z=null;A=B=false;if(E.type==3){E=!e.trim(E.substring(F)).length&&E;B=!(E&&E.getLength());if(E)if(!(z=E.getNext()))y=E.getParent();}else{z=E.getChild(F);if(!z)y=E;}while(y||z){if(y&&!z){if(!A&&y.equals(u))A=true;if(!v.contains(y))break;if(!B||y.getComputedStyle('display')!='inline'){B=false;if(A)x=y;else if(y)this.setEndAfter(y);}z=y.getNext();}while(z){C=false;if(z.type==3){D=z.getText();if(/[^\s\ufeff]/.test(D))z=null;C=/^[\s\ufeff]/.test(D);}else if(z.$.offsetWidth>0&&!z.getAttribute('_fck_bookmark'))if(B&&f.$removeEmpty[z.getName()]){D=z.getText();if(/[^\s\ufeff]/.test(D))z=null;else{G=z.$.all||z.$.getElementsByTagName('*');for(H=0;I=G[H++];){if(!f.$removeEmpty[I.nodeName.toLowerCase()]){z=null;break;}}}if(z)C=!!D.length;}else z=null;if(C)if(B)if(A)x=y;else this.setEndAfter(y);if(z){J=z.getNext();if(!y&&!J){y=z;z=null;break;}z=J;}else y=null;}if(y)y=y.getParent();}if(w&&x){u=w.contains(x)?x:w;this.setStartBefore(u);this.setEndAfter(u);}break;case 2:case 3:var K=new d.range(this.document);v=this.document.getBody();K.setStartAt(v,1);K.setEnd(this.startContainer,this.startOffset);var L=new d.walker(K),M,N,O=d.walker.blockBoundary(t==3?{br:1}:null),P=function(R){var S=O(R);if(!S)M=R;return S;},Q=function(R){var S=P(R);if(!S&&R.is&&R.is('br'))N=R;return S;};L.guard=P;y=L.lastBackward();M=M||v;this.setStartAt(M,!M.is('br')&&(!y&&this.checkStartOfBlock()||y&&M.contains(y))?1:4);K=this.clone();K.collapse();K.setEndAt(v,2);L=new d.walker(K);L.guard=t==3?Q:P;M=null;y=L.lastForward();M=M||v;this.setEndAt(M,!y&&this.checkEndOfBlock()||y&&M.contains(y)?2:3);if(N)this.setEndAfter(N);}},shrink:function(t){if(!this.collapsed){t=t||a.SHRINK_TEXT;var u=this.clone(),v=this.startContainer,w=this.endContainer,x=this.startOffset,y=this.endOffset,z=this.collapsed,A=1,B=1;if(v&&v.type==3)if(!x)u.setStartBefore(v);else if(x>=v.getLength())u.setStartAfter(v);else{u.setStartBefore(v);A=0;}if(w&&w.type==3)if(!y)u.setEndBefore(w);else if(y>=w.getLength())u.setEndAfter(w);else{u.setEndAfter(w);B=0;}var C=new d.walker(u);C.evaluator=function(G){return G.type==(t==a.SHRINK_ELEMENT?1:3);};var D;C.guard=function(G,H){if(t==a.SHRINK_ELEMENT&&G.type==3)return false;if(H&&G.equals(D))return false;if(!H&&G.type==1)D=G;return true;};if(A){var E=C[t==a.SHRINK_ELEMENT?'lastForward':'next']();E&&this.setStartBefore(E);}if(B){C.reset();var F=C[t==a.SHRINK_ELEMENT?'lastBackward':'previous']();F&&this.setEndAfter(F);}return!!(A||B);}},insertNode:function(t){var x=this;
if(v&&v.length){var w=v[0].getEnclosedNode();if(!w||w&&!(w.type==1&&w.getName() in m))w=p(t,l);if(w){if(!w.isReadOnly())o(w,r,s);}else{var x=t.createBookmarks(),y,z;for(var A=v.length-1;A>=0;A--){var B=[],C=new d.walker(v[A]);C.evaluator=function(G){return G.type==1&&G.getName() in l&&!(G.getName()==(u==1)?'p':'div'&&G.getParent().type==1&&G.getParent().getName()=='blockquote');};while(z=C.next()){o(z,r,s);B.push(z);}y=v[A].createIterator();y.enlargeBr=u!=2;while(z=y.getNextParagraph(u==1?'p':'div')){if(z.isReadOnly())continue;var D=0;for(var E=0;E<B.length;E++){var F=z.getParent();while(F&&F.getName()!='body'){if(F.$.isSameNode&&F.$.isSameNode(B[E].$)||F.$==B[E].$){D=1;break;}F=F.getParent();}if(D)break;}if(!D)o(z,r,s);}}s.forceNextSelectionCheck();t.selectBookmarks(x);}s.focus();}};};j.add('bidi',{requires:['styles','button'],init:function(r){var s=function(u,v,w,x){r.addCommand(w,new a.command(r,{exec:x}));r.ui.addButton(u,{label:v,command:w});},t=r.lang.bidi;s('BidiLtr',t.ltr,'bidiltr',q('ltr'));s('BidiRtl',t.rtl,'bidirtl',q('rtl'));r.on('selectionChange',n);}});})();(function(){function l(p,q){var r=q.block||q.blockLimit;if(!r||r.getName()=='body')return 2;if(r.getAscendant('blockquote',true))return 1;return 2;};function m(p){var q=p.editor,r=q.getCommand('blockquote');r.state=l(q,p.data.path);r.fire('state');};function n(p){for(var q=0,r=p.getChildCount(),s;q<r&&(s=p.getChild(q));q++){if(s.type==1&&s.isBlockBoundary())return false;}return true;};var o={exec:function(p){var q=p.getCommand('blockquote').state,r=p.getSelection(),s=r&&r.getRanges(true)[0];if(!s)return;var t=r.createBookmarks();if(c){var u=t[0].startNode,v=t[0].endNode,w;if(u&&u.getParent().getName()=='blockquote'){w=u;while(w=w.getNext()){if(w.type==1&&w.isBlockBoundary()){u.move(w,true);break;}}}if(v&&v.getParent().getName()=='blockquote'){w=v;while(w=w.getPrevious()){if(w.type==1&&w.isBlockBoundary()){v.move(w);break;}}}}var x=s.createIterator(),y;if(q==2){var z=[];while(y=x.getNextParagraph())z.push(y);if(z.length<1){var A=p.document.createElement(p.config.enterMode==1?'p':'div'),B=t.shift();s.insertNode(A);A.append(new d.text('\ufeff',p.document));s.moveToBookmark(B);s.selectNodeContents(A);s.collapse(true);B=s.createBookmark();z.push(A);t.unshift(B);}var C=z[0].getParent(),D=[];for(var E=0;E<z.length;E++){y=z[E];C=C.getCommonAncestor(y.getParent());}var F={table:1,tbody:1,tr:1,ol:1,ul:1};while(F[C.getName()])C=C.getParent();var G=null;while(z.length>0){y=z.shift();while(!y.getParent().equals(C))y=y.getParent();
}E=this.endContainer;F=this.endOffset;y=z=null;A=B=false;if(E.type==3){E=!e.trim(E.substring(F)).length&&E;B=!(E&&E.getLength());if(E)if(!(z=E.getNext()))y=E.getParent();}else{z=E.getChild(F);if(!z)y=E;}while(y||z){if(y&&!z){if(!A&&y.equals(u))A=true;if(!v.contains(y))break;if(!B||y.getComputedStyle('display')!='inline'){B=false;if(A)x=y;else if(y)this.setEndAfter(y);}z=y.getNext();}while(z){C=false;if(z.type==3){D=z.getText();if(/[^\s\ufeff]/.test(D))z=null;C=/^[\s\ufeff]/.test(D);}else if(z.$.offsetWidth>0&&!z.getAttribute('_fck_bookmark'))if(B&&f.$removeEmpty[z.getName()]){D=z.getText();if(/[^\s\ufeff]/.test(D))z=null;else{G=z.$.all||z.$.getElementsByTagName('*');for(H=0;I=G[H++];){if(!f.$removeEmpty[I.nodeName.toLowerCase()]){z=null;break;}}}if(z)C=!!D.length;}else z=null;if(C)if(B)if(A)x=y;else this.setEndAfter(y);if(z){J=z.getNext();if(!y&&!J){y=z;z=null;break;}z=J;}else y=null;}if(y)y=y.getParent();}if(w&&x){u=w.contains(x)?x:w;this.setStartBefore(u);this.setEndAfter(u);}break;case 2:case 3:var K=new d.range(this.document);v=this.document.getBody();K.setStartAt(v,1);K.setEnd(this.startContainer,this.startOffset);var L=new d.walker(K),M,N,O=d.walker.blockBoundary(t==3?{br:1}:null),P=function(R){var S=O(R);if(!S)M=R;return S;},Q=function(R){var S=P(R);if(!S&&R.is&&R.is('br'))N=R;return S;};L.guard=P;y=L.lastBackward();M=M||v;this.setStartAt(M,!M.is('br')&&(!y&&this.checkStartOfBlock()||y&&M.contains(y))?1:4);K=this.clone();K.collapse();K.setEndAt(v,2);L=new d.walker(K);L.guard=t==3?Q:P;M=null;y=L.lastForward();M=M||v;this.setEndAt(M,!y&&this.checkEndOfBlock()||y&&M.contains(y)?2:3);if(N)this.setEndAfter(N);}},shrink:function(t){if(!this.collapsed){t=t||a.SHRINK_TEXT;var u=this.clone(),v=this.startContainer,w=this.endContainer,x=this.startOffset,y=this.endOffset,z=this.collapsed,A=1,B=1;if(v&&v.type==3)if(!x)u.setStartBefore(v);else if(x>=v.getLength())u.setStartAfter(v);else{u.setStartBefore(v);A=0;}if(w&&w.type==3)if(!y)u.setEndBefore(w);else if(y>=w.getLength())u.setEndAfter(w);else{u.setEndAfter(w);B=0;}var C=new d.walker(u);C.evaluator=function(G){return G.type==(t==a.SHRINK_ELEMENT?1:3);};var D;C.guard=function(G,H){if(t==a.SHRINK_ELEMENT&&G.type==3)return false;if(H&&G.equals(D))return false;if(!H&&G.type==1)D=G;return true;};if(A){var E=C[t==a.SHRINK_ELEMENT?'lastForward':'next']();E&&this.setStartBefore(E);}if(B){C.reset();var F=C[t==a.SHRINK_ELEMENT?'lastBackward':'previous']();F&&this.setEndAfter(F);}return!!(A||B);}},insertNode:function(t){var x=this;
return a=this._type?Xmla.Rowset.KEYS[this._type]:this.getFieldNames()}};Xmla.Exception=function(a,b,d,c,e,f){this.type=a;this.code=b;this.message=d;this.source=e;this.helpfile=c;this.data=f;return this};Xmla.Exception.TYPE_WARNING="warning";Xmla.Exception.TYPE_ERROR="error";var l="http:
return a=this._type?Xmla.Rowset.KEYS[this._type]:this.getFieldNames()}};Xmla.Exception=function(a,b,d,c,e,h){this.type=a;this.code=b;this.message=d;this.source=e;this.helpfile=c;this.data=h;return this};Xmla.Exception.TYPE_WARNING="warning";Xmla.Exception.TYPE_ERROR="error";var m="http:
return a=this._type?Xmla.Rowset.KEYS[this._type]:this.getFieldNames()}};Xmla.Exception=function(a,b,d,c,e,f){this.type=a;this.code=b;this.message=d;this.source=e;this.helpfile=c;this.data=f;return this};Xmla.Exception.TYPE_WARNING="warning";Xmla.Exception.TYPE_ERROR="error";var l="http://code.google.com/p/xmla4js/wiki/ExceptionCodes";Xmla.Exception.MISSING_REQUEST_TYPE_CDE=-1;Xmla.Exception.MISSING_REQUEST_TYPE_MSG="Missing_Request_Type";Xmla.Exception.MISSING_REQUEST_TYPE_HLP=l+"#"+Xmla.Exception.MISSING_REQUEST_TYPE_CDE+
l.on('selectionChange',function(m){var n=l.getCommand('unlink'),o=m.data.path.lastElement.getAscendant('a',true);if(o&&o.getName()=='a'&&o.getAttribute('href'))n.setState(2);else n.setState(0);});if(l.addMenuItems)l.addMenuItems({anchor:{label:l.lang.anchor.menu,command:'anchor',group:'anchor'},link:{label:l.lang.link.menu,command:'link',group:'link',order:1},unlink:{label:l.lang.unlink,command:'unlink',group:'link',order:5}});if(l.contextMenu)l.contextMenu.addListener(function(m,n){if(!m)return null;var o=m.is('img')&&m.getAttribute('_cke_real_element_type')=='anchor';if(!o){if(!(m=j.link.getSelectedLink(l)))return null;o=m.getAttribute('name')&&!m.getAttribute('href');}return o?{anchor:2}:{link:2,unlink:2};});},afterInit:function(l){var m=l.dataProcessor,n=m&&m.dataFilter;if(n)n.addRules({elements:{a:function(o){var p=o.attributes;if(p.name&&!p.href)return l.createFakeParserElement(o,'cke_anchor','anchor');}}});},requires:['fakeobjects']});j.link={getSelectedLink:function(l){var m;try{m=l.getSelection().getRanges()[0];}catch(o){return null;}m.shrink(a.SHRINK_TEXT);var n=m.getCommonAncestor();return n.getAscendant('a',true);}};a.unlinkCommand=function(){};a.unlinkCommand.prototype={exec:function(l){var m=l.getSelection(),n=m.createBookmarks(),o=m.getRanges(),p,q;for(var r=0;r<o.length;r++){p=o[r].getCommonAncestor(true);q=p.getAscendant('a',true);if(!q)continue;o[r].selectNodeContents(q);}m.selectRanges(o);l.document.$.execCommand('unlink',false,null);m.selectBookmarks(n);},startDisabled:true};e.extend(i,{linkShowAdvancedTab:true,linkShowTargetTab:true});(function(){var l={ol:1,ul:1},m=/^[\n\r\t ]*$/;j.list={listToArray:function(A,B,C,D,E){if(!l[A.getName()])return[];if(!D)D=0;if(!C)C=[];for(var F=0,G=A.getChildCount();F<G;F++){var H=A.getChild(F);if(H.$.nodeName.toLowerCase()!='li')continue;var I={parent:A,indent:D,element:H,contents:[]};if(!E){I.grandparent=A.getParent();if(I.grandparent&&I.grandparent.$.nodeName.toLowerCase()=='li')I.grandparent=I.grandparent.getParent();}else I.grandparent=E;if(B)h.setMarker(B,H,'listarray_index',C.length);C.push(I);for(var J=0,K=H.getChildCount(),L;J<K;J++){L=H.getChild(J);if(L.type==1&&l[L.getName()])j.list.listToArray(L,B,C,D+1,I.grandparent);else I.contents.push(L);}}return C;},arrayToList:function(A,B,C,D){if(!C)C=0;if(!A||A.length<C+1)return null;var E=A[C].parent.getDocument(),F=new d.documentFragment(E),G=null,H=C,I=Math.max(A[C].indent,0),J=null,K=D==1?'p':'div';for(;;){var L=A[H];if(L.indent==I){if(!G||A[H].parent.getName()!=G.getName()){G=A[H].parent.clone(false,true);
}}});}});a.on('dialogDefinition',function(p){var q=p.data.name;if(q=='table'||q=='tableProperties'){var r=p.data.definition,s=r.getContents('info'),t=s.get('txtBorder'),u=t.commit;t.commit=e.override(u,function(v){return function(w,x){v.apply(this,arguments);var y=parseInt(this.getValue(),10);x[!y||y<=0?'addClass':'removeClass'](l);};});}});})();j.add('sourcearea',{requires:['editingblock'],init:function(l){var m=j.sourcearea,n=a.document.getWindow();l.on('editingBlockReady',function(){var o,p;l.addMode('source',{load:function(q,r){if(c&&b.version<8)q.setStyle('position','relative');l.textarea=o=new h('textarea');o.setAttributes({dir:'ltr',tabIndex:l.tabIndex,role:'textbox','aria-label':l.lang.editorTitle.replace('%1',l.name)});o.addClass('cke_source');o.addClass('cke_enable_context_menu');var s={width:b.ie7Compat?'99%':'100%',height:'100%',resize:'none',outline:'none','text-align':'left'};if(c){p=function(){o.hide();o.setStyle('height',q.$.clientHeight+'px');o.setStyle('width',q.$.clientWidth+'px');o.show();};l.on('resize',p);n.on('resize',p);setTimeout(p,0);}else o.on('mousedown',function(u){u.data.stopPropagation();});q.setHtml('');q.append(o);o.setStyles(s);l.fire('ariaWidget',o);o.on('blur',function(){l.focusManager.blur();});o.on('focus',function(){l.focusManager.focus();});l.mayBeDirty=true;this.loadData(r);var t=l.keystrokeHandler;if(t)t.attach(o);setTimeout(function(){l.mode='source';l.fire('mode');},b.gecko||b.webkit?100:0);},loadData:function(q){o.setValue(q);l.fire('dataReady');},getData:function(){return o.getValue();},getSnapshotData:function(){return o.getValue();},unload:function(q){o.clearCustomData();l.textarea=o=null;if(p){l.removeListener('resize',p);n.removeListener('resize',p);}if(c&&b.version<8)q.removeStyle('position');},focus:function(){o.focus();}});});l.addCommand('source',m.commands.source);if(l.ui.addButton)l.ui.addButton('Source',{label:l.lang.source,command:'source'});l.on('mode',function(){l.getCommand('source').setState(l.mode=='source'?1:2);});}});j.sourcearea={commands:{source:{modes:{wysiwyg:1,source:1},exec:function(l){if(l.mode=='wysiwyg')l.fire('saveSnapshot');l.getCommand('source').setState(0);l.setMode(l.mode=='source'?'wysiwyg':'source');},canUndo:false}}};(function(){j.add('stylescombo',{requires:['richcombo','styles'],init:function(m){var n=m.config,o=m.lang.stylesCombo,p={},q=[];function r(s){m.getStylesSet(function(t){if(!q.length){var u,v;for(var w=0;w<t.length;w++){var x=t[w];v=x.name;u=p[v]=new a.style(x);u._name=v;
l.on('selectionChange',function(m){var n=l.getCommand('unlink'),o=m.data.path.lastElement.getAscendant('a',true);if(o&&o.getName()=='a'&&o.getAttribute('href'))n.setState(2);else n.setState(0);});if(l.addMenuItems)l.addMenuItems({anchor:{label:l.lang.anchor.menu,command:'anchor',group:'anchor'},link:{label:l.lang.link.menu,command:'link',group:'link',order:1},unlink:{label:l.lang.unlink,command:'unlink',group:'link',order:5}});if(l.contextMenu)l.contextMenu.addListener(function(m,n){if(!m)return null;var o=m.is('img')&&m.getAttribute('_cke_real_element_type')=='anchor';if(!o){if(!(m=j.link.getSelectedLink(l)))return null;o=m.getAttribute('name')&&!m.getAttribute('href');}return o?{anchor:2}:{link:2,unlink:2};});},afterInit:function(l){var m=l.dataProcessor,n=m&&m.dataFilter;if(n)n.addRules({elements:{a:function(o){var p=o.attributes;if(p.name&&!p.href)return l.createFakeParserElement(o,'cke_anchor','anchor');}}});},requires:['fakeobjects']});j.link={getSelectedLink:function(l){var m;try{m=l.getSelection().getRanges()[0];}catch(o){return null;}m.shrink(a.SHRINK_TEXT);var n=m.getCommonAncestor();return n.getAscendant('a',true);}};a.unlinkCommand=function(){};a.unlinkCommand.prototype={exec:function(l){var m=l.getSelection(),n=m.createBookmarks(),o=m.getRanges(),p,q;for(var r=0;r<o.length;r++){p=o[r].getCommonAncestor(true);q=p.getAscendant('a',true);if(!q)continue;o[r].selectNodeContents(q);}m.selectRanges(o);l.document.$.execCommand('unlink',false,null);m.selectBookmarks(n);},startDisabled:true};e.extend(i,{linkShowAdvancedTab:true,linkShowTargetTab:true});(function(){var l={ol:1,ul:1},m=/^[\n\r\t ]*$/;j.list={listToArray:function(A,B,C,D,E){if(!l[A.getName()])return[];if(!D)D=0;if(!C)C=[];for(var F=0,G=A.getChildCount();F<G;F++){var H=A.getChild(F);if(H.$.nodeName.toLowerCase()!='li')continue;var I={parent:A,indent:D,element:H,contents:[]};if(!E){I.grandparent=A.getParent();if(I.grandparent&&I.grandparent.$.nodeName.toLowerCase()=='li')I.grandparent=I.grandparent.getParent();}else I.grandparent=E;if(B)h.setMarker(B,H,'listarray_index',C.length);C.push(I);for(var J=0,K=H.getChildCount(),L;J<K;J++){L=H.getChild(J);if(L.type==1&&l[L.getName()])j.list.listToArray(L,B,C,D+1,I.grandparent);else I.contents.push(L);}}return C;},arrayToList:function(A,B,C,D){if(!C)C=0;if(!A||A.length<C+1)return null;var E=A[C].parent.getDocument(),F=new d.documentFragment(E),G=null,H=C,I=Math.max(A[C].indent,0),J=null,K=D==1?'p':'div';for(;;){var L=A[H];if(L.indent==I){if(!G||A[H].parent.getName()!=G.getName()){G=A[H].parent.clone(false,true);
if(q.index)k.button._.instances[q.index]=null;}}}if(r.contextMenu)e.removeFunction(r.contextMenu._.functionId);if(r._.filebrowserFn)e.removeFunction(r._.filebrowserFn);r.fire('destroy');a.remove(r);a.fire('instanceDestroyed',null,r);},execCommand:function(l,m){var n=this.getCommand(l),o={name:l,commandData:m,command:n};if(n&&n.state!=0)if(this.fire('beforeCommandExec',o)!==true){o.returnValue=n.exec(o.commandData);if(!n.async&&this.fire('afterCommandExec',o)!==true)return o.returnValue;}return false;},getCommand:function(l){return this._.commands[l];},getData:function(){var n=this;n.fire('beforeGetData');var l=n._.data;if(typeof l!='string'){var m=n.element;if(m&&n.elementMode==1)l=m.is('textarea')?m.getValue():m.getHtml();else l='';}l={dataValue:l};n.fire('getData',l);return l.dataValue;},getSnapshot:function(){var l=this.fire('getSnapshot');if(typeof l!='string'){var m=this.element;if(m&&this.elementMode==1)l=m.is('textarea')?m.getValue():m.getHtml();}return l;},loadSnapshot:function(l){this.fire('loadSnapshot',l);},setData:function(l,m){if(m)this.on('dataReady',function(o){o.removeListener();m.call(o.editor);});var n={dataValue:l};this.fire('setData',n);this._.data=n.dataValue;this.fire('afterSetData',n);},insertHtml:function(l){this.fire('insertHtml',l);},insertElement:function(l){this.fire('insertElement',l);},checkDirty:function(){return this.mayBeDirty&&this._.previousValue!==this.getSnapshot();},resetDirty:function(){if(this.mayBeDirty)this._.previousValue=this.getSnapshot();},updateElement:function(){var n=this;var l=n.element;if(l&&n.elementMode==1){var m=n.getData();if(n.config.htmlEncodeOutput)m=e.htmlEncode(m);if(l.is('textarea'))l.setValue(m);else l.setHtml(m);}}});a.on('loaded',function(){var l=a.editor._pending;if(l){delete a.editor._pending;for(var m=0;m<l.length;m++)l[m]._init();}});a.htmlParser=function(){this._={htmlPartsRegex:new RegExp("<(?:(?:\\/([^>]+)>)|(?:!--([\\S|\\s]*?)-->)|(?:([^\\s>]+)\\s*((?:(?:[^\"'>]+)|(?:\"[^\"]*\")|(?:'[^']*'))*)\\/?>))",'g')};};(function(){var l=/([\w\-:.]+)(?:(?:\s*=\s*(?:(?:"([^"]*)")|(?:'([^']*)')|([^\s>]+)))|(?=\s|$))/g,m={checked:1,compact:1,declare:1,defer:1,disabled:1,ismap:1,multiple:1,nohref:1,noresize:1,noshade:1,nowrap:1,readonly:1,selected:1};a.htmlParser.prototype={onTagOpen:function(){},onTagClose:function(){},onText:function(){},onCDATA:function(){},onComment:function(){},parse:function(n){var A=this;var o,p,q=0,r;while(o=A._.htmlPartsRegex.exec(n)){var s=o.index;if(s>q){var t=n.substring(q,s);
x.plugins=D;for(var H in D){var I=D[H],J=I.lang,K=j.getPath(H),L=null;I.path=K;if(J){L=e.indexOf(J,x.langCode)>=0?x.langCode:J[0];if(!I.lang[L])G.push(a.getUrl(K+'lang/'+L+'.js'));else{e.extend(x.lang,I.lang[L]);L=null;}}F.push(L);E.push(I);}a.scriptLoader.load(G,function(){var M=['beforeInit','init','afterInit'];for(var N=0;N<M.length;N++)for(var O=0;O<E.length;O++){var P=E[O];if(N===0&&F[O]&&P.lang)e.extend(x.lang,P.lang[F[O]]);if(P[M[N]])P[M[N]](x);}x.fire('pluginsLoaded');u(x);});});},t=function(x){a.skins.load(x,'editor',function(){r(x);});},u=function(x){var y=x.config.theme;a.themes.load(y,function(){var z=x.theme=a.themes.get(y);z.path=a.themes.getPath(y);z.build(x);if(x.config.autoUpdateElement)v(x);});},v=function(x){var y=x.element;if(x.elementMode==1&&y.is('textarea')){var z=y.$.form&&new h(y.$.form);if(z){function A(){x.updateElement();};z.on('submit',A);if(!z.$.submit.nodeName)z.$.submit=e.override(z.$.submit,function(B){return function(){x.updateElement();if(B.apply)B.apply(this,arguments);else B();};});x.on('destroy',function(){z.removeListener('submit',A);});}}};function w(){var x,y=this._.commands,z=this.mode;for(var A in y){x=y[A];x[x.startDisabled?'disable':x.modes[z]?'enable':'disable']();}};a.editor.prototype._init=function(){var z=this;var x=h.get(z._.element),y=z._.instanceConfig;delete z._.element;delete z._.instanceConfig;z._.commands={};z._.styles=[];z.element=x;z.name=x&&z.elementMode==1&&(x.getId()||x.getNameAtt())||m();if(z.name in a.instances)throw '[CKEDITOR.editor] The instance "'+z.name+'" already exists.';z.config=e.prototypedCopy(i);z.ui=new k(z);z.focusManager=new a.focusManager(z);a.fire('instanceCreated',null,z);z.on('mode',w,null,null,1);p(z,y);};})();e.extend(a.editor.prototype,{addCommand:function(l,m){return this._.commands[l]=new a.command(this,m);},addCss:function(l){this._.styles.push(l);},destroy:function(l){var r=this;if(!l)r.updateElement();if(r.mode)r._.modes[r.mode].unload(r.getThemeSpace('contents'));r.theme.destroy(r);var m,n=0,o,p,q;if(r.toolbox){m=r.toolbox.toolbars;for(;n<m.length;n++){p=m[n].items;for(o=0;o<p.length;o++){q=p[o];if(q.clickFn)e.removeFunction(q.clickFn);if(q.keyDownFn)e.removeFunction(q.keyDownFn);if(q.index)k.button._.instances[q.index]=null;}}}if(r.contextMenu)e.removeFunction(r.contextMenu._.functionId);if(r._.filebrowserFn)e.removeFunction(r._.filebrowserFn);r.fire('destroy');a.remove(r);a.fire('instanceDestroyed',null,r);},execCommand:function(l,m){var n=this.getCommand(l),o={name:l,commandData:m,command:n}; if(n&&n.state!=0)if(this.fire('beforeCommandExec',o)!==true){o.returnValue=n.exec(o.commandData);if(!n.async&&this.fire('afterCommandExec',o)!==true)return o.returnValue;}return false;},getCommand:function(l){return this._.commands[l];},getData:function(){var n=this;n.fire('beforeGetData');var l=n._.data;if(typeof l!='string'){var m=n.element;if(m&&n.elementMode==1)l=m.is('textarea')?m.getValue():m.getHtml();else l='';}l={dataValue:l};n.fire('getData',l);return l.dataValue;},getSnapshot:function(){var l=this.fire('getSnapshot');if(typeof l!='string'){var m=this.element;if(m&&this.elementMode==1)l=m.is('textarea')?m.getValue():m.getHtml();}return l;},loadSnapshot:function(l){this.fire('loadSnapshot',l);},setData:function(l,m){if(m)this.on('dataReady',function(o){o.removeListener();m.call(o.editor);});var n={dataValue:l};this.fire('setData',n);this._.data=n.dataValue;this.fire('afterSetData',n);},insertHtml:function(l){this.fire('insertHtml',l);},insertElement:function(l){this.fire('insertElement',l);},checkDirty:function(){return this.mayBeDirty&&this._.previousValue!==this.getSnapshot();},resetDirty:function(){if(this.mayBeDirty)this._.previousValue=this.getSnapshot();},updateElement:function(){var n=this;var l=n.element;if(l&&n.elementMode==1){var m=n.getData();if(n.config.htmlEncodeOutput)m=e.htmlEncode(m);if(l.is('textarea'))l.setValue(m);else l.setHtml(m);}}});a.on('loaded',function(){var l=a.editor._pending;if(l){delete a.editor._pending;for(var m=0;m<l.length;m++)l[m]._init();}});a.htmlParser=function(){this._={htmlPartsRegex:new RegExp("<(?:(?:\\/([^>]+)>)|(?:!--([\\S|\\s]*?)-->)|(?:([^\\s>]+)\\s*((?:(?:[^\"'>]+)|(?:\"[^\"]*\")|(?:'[^']*'))*)\\/?>))",'g')};};(function(){var l=/([\w\-:.]+)(?:(?:\s*=\s*(?:(?:"([^"]*)")|(?:'([^']*)')|([^\s>]+)))|(?=\s|$))/g,m={checked:1,compact:1,declare:1,defer:1,disabled:1,ismap:1,multiple:1,nohref:1,noresize:1,noshade:1,nowrap:1,readonly:1,selected:1};a.htmlParser.prototype={onTagOpen:function(){},onTagClose:function(){},onText:function(){},onCDATA:function(){},onComment:function(){},parse:function(n){var A=this;var o,p,q=0,r;while(o=A._.htmlPartsRegex.exec(n)){var s=o.index;if(s>q){var t=n.substring(q,s);if(r)r.push(t);else A.onText(t);}q=A._.htmlPartsRegex.lastIndex;if(p=o[1]){p=p.toLowerCase();if(r&&f.$cdata[p]){A.onCDATA(r.join(''));r=null;}if(!r){A.onTagClose(p);continue;}}if(r){r.push(o[0]);continue;}if(p=o[3]){p=p.toLowerCase();if(/="/.test(p))continue;var u={},v,w=o[4],x=!!(w&&w.charAt(w.length-1)=='/');if(w)while(v=l.exec(w)){var y=v[1].toLowerCase(),z=v[2]||v[3]||v[4]||'';
if(q.index)k.button._.instances[q.index]=null;}}}if(r.contextMenu)e.removeFunction(r.contextMenu._.functionId);if(r._.filebrowserFn)e.removeFunction(r._.filebrowserFn);r.fire('destroy');a.remove(r);a.fire('instanceDestroyed',null,r);},execCommand:function(l,m){var n=this.getCommand(l),o={name:l,commandData:m,command:n};if(n&&n.state!=0)if(this.fire('beforeCommandExec',o)!==true){o.returnValue=n.exec(o.commandData);if(!n.async&&this.fire('afterCommandExec',o)!==true)return o.returnValue;}return false;},getCommand:function(l){return this._.commands[l];},getData:function(){var n=this;n.fire('beforeGetData');var l=n._.data;if(typeof l!='string'){var m=n.element;if(m&&n.elementMode==1)l=m.is('textarea')?m.getValue():m.getHtml();else l='';}l={dataValue:l};n.fire('getData',l);return l.dataValue;},getSnapshot:function(){var l=this.fire('getSnapshot');if(typeof l!='string'){var m=this.element;if(m&&this.elementMode==1)l=m.is('textarea')?m.getValue():m.getHtml();}return l;},loadSnapshot:function(l){this.fire('loadSnapshot',l);},setData:function(l,m){if(m)this.on('dataReady',function(o){o.removeListener();m.call(o.editor);});var n={dataValue:l};this.fire('setData',n);this._.data=n.dataValue;this.fire('afterSetData',n);},insertHtml:function(l){this.fire('insertHtml',l);},insertElement:function(l){this.fire('insertElement',l);},checkDirty:function(){return this.mayBeDirty&&this._.previousValue!==this.getSnapshot();},resetDirty:function(){if(this.mayBeDirty)this._.previousValue=this.getSnapshot();},updateElement:function(){var n=this;var l=n.element;if(l&&n.elementMode==1){var m=n.getData();if(n.config.htmlEncodeOutput)m=e.htmlEncode(m);if(l.is('textarea'))l.setValue(m);else l.setHtml(m);}}});a.on('loaded',function(){var l=a.editor._pending;if(l){delete a.editor._pending;for(var m=0;m<l.length;m++)l[m]._init();}});a.htmlParser=function(){this._={htmlPartsRegex:new RegExp("<(?:(?:\\/([^>]+)>)|(?:!--([\\S|\\s]*?)-->)|(?:([^\\s>]+)\\s*((?:(?:[^\"'>]+)|(?:\"[^\"]*\")|(?:'[^']*'))*)\\/?>))",'g')};};(function(){var l=/([\w\-:.]+)(?:(?:\s*=\s*(?:(?:"([^"]*)")|(?:'([^']*)')|([^\s>]+)))|(?=\s|$))/g,m={checked:1,compact:1,declare:1,defer:1,disabled:1,ismap:1,multiple:1,nohref:1,noresize:1,noshade:1,nowrap:1,readonly:1,selected:1};a.htmlParser.prototype={onTagOpen:function(){},onTagClose:function(){},onText:function(){},onCDATA:function(){},onComment:function(){},parse:function(n){var A=this;var o,p,q=0,r;while(o=A._.htmlPartsRegex.exec(n)){var s=o.index;if(s>q){var t=n.substring(q,s);
break;case Xmla.PROP_FORMAT_MULTIDIMENSIONAL:break}this.response=a.resultset=c;this._fireEvent(Xmla.EVENT_EXECUTE_SUCCESS,a);break}this._fireEvent(Xmla.EVENT_SUCCESS,a)}},execute:function(a){var b=a.properties;if(j(b)){b={};a.properties=b}if(j(b[Xmla.PROP_CONTENT]))b[Xmla.PROP_CONTENT]=Xmla.PROP_CONTENT_SCHEMADATA;if(j(b[Xmla.PROP_FORMAT]))a.properties[Xmla.PROP_FORMAT]=Xmla.PROP_FORMAT_MULTIDIMENSIONAL;a=h(a,{method:Xmla.METHOD_EXECUTE},true);return this.request(a)},executeTabular:function(a){if(!a.properties)a.properties=
break;case Xmla.PROP_FORMAT_MULTIDIMENSIONAL:break}this.response=a.resultset=c;this._fireEvent(Xmla.EVENT_EXECUTE_SUCCESS,a);break}this._fireEvent(Xmla.EVENT_SUCCESS,a)}},execute:function(a){var b=a.properties;if(j(b)){b={};a.properties=b}if(j(b[Xmla.PROP_CONTENT]))b[Xmla.PROP_CONTENT]=Xmla.PROP_CONTENT_SCHEMADATA;if(j(b[Xmla.PROP_FORMAT]))a.properties[Xmla.PROP_FORMAT]=Xmla.PROP_FORMAT_MULTIDIMENSIONAL;a=g(a,{method:Xmla.METHOD_EXECUTE},true);return this.request(a)},executeTabular:function(a){if(!a.properties)a.properties=
break;case Xmla.PROP_FORMAT_MULTIDIMENSIONAL:break}this.response=a.resultset=c;this._fireEvent(Xmla.EVENT_EXECUTE_SUCCESS,a);break}this._fireEvent(Xmla.EVENT_SUCCESS,a)}},execute:function(a){var b=a.properties;if(j(b)){b={};a.properties=b}if(j(b[Xmla.PROP_CONTENT]))b[Xmla.PROP_CONTENT]=Xmla.PROP_CONTENT_SCHEMADATA;if(j(b[Xmla.PROP_FORMAT]))a.properties[Xmla.PROP_FORMAT]=Xmla.PROP_FORMAT_MULTIDIMENSIONAL;a=h(a,{method:Xmla.METHOD_EXECUTE},true);return this.request(a)},executeTabular:function(a){if(!a.properties)a.properties=
break;case Xmla.PROP_FORMAT_MULTIDIMENSIONAL:break}this.response=a.resultset=c;this._fireEvent(Xmla.EVENT_EXECUTE_SUCCESS,a);break}this._fireEvent(Xmla.EVENT_SUCCESS,a)}},execute:function(a){var b=a.properties;if(j(b)){b={};a.properties=b}if(j(b[Xmla.PROP_CONTENT]))b[Xmla.PROP_CONTENT]=Xmla.PROP_CONTENT_SCHEMADATA;if(j(b[Xmla.PROP_FORMAT]))a.properties[Xmla.PROP_FORMAT]=Xmla.PROP_FORMAT_MULTIDIMENSIONAL;a=h(a,{method:Xmla.METHOD_EXECUTE},true);return this.request(a)},executeTabular:function(a){if(!a.properties)a.properties= {};a.properties[Xmla.PROP_FORMAT]=Xmla.PROP_FORMAT_TABULAR;return this.execute(a)},executeMultiDimensional:function(a){if(!a.properties)a.properties={};a.properties[Xmla.PROP_FORMAT]=Xmla.PROP_FORMAT_MULTIDIMENSIONAL;return this.execute(a)},discover:function(a){a=h(a,{method:Xmla.METHOD_DISCOVER},true);return this.request(a)},discoverDataSources:function(a){a=h(a,{requestType:Xmla.DISCOVER_DATASOURCES},true);return this.discover(a)},discoverProperties:function(a){a=h(a,{requestType:Xmla.DISCOVER_PROPERTIES},
break;case Xmla.PROP_FORMAT_MULTIDIMENSIONAL:break}this.response=a.resultset=c;this._fireEvent(Xmla.EVENT_EXECUTE_SUCCESS,a);break}this._fireEvent(Xmla.EVENT_SUCCESS,a)}},execute:function(a){var b=a.properties;if(j(b)){b={};a.properties=b}if(j(b[Xmla.PROP_CONTENT]))b[Xmla.PROP_CONTENT]=Xmla.PROP_CONTENT_SCHEMADATA;if(j(b[Xmla.PROP_FORMAT]))a.properties[Xmla.PROP_FORMAT]=Xmla.PROP_FORMAT_MULTIDIMENSIONAL;a=g(a,{method:Xmla.METHOD_EXECUTE},true);return this.request(a)},executeTabular:function(a){if(!a.properties)a.properties= {};a.properties[Xmla.PROP_FORMAT]=Xmla.PROP_FORMAT_TABULAR;return this.execute(a)},executeMultiDimensional:function(a){if(!a.properties)a.properties={};a.properties[Xmla.PROP_FORMAT]=Xmla.PROP_FORMAT_MULTIDIMENSIONAL;return this.execute(a)},discover:function(a){a=g(a,{method:Xmla.METHOD_DISCOVER},true);return this.request(a)},discoverDataSources:function(a){a=g(a,{requestType:Xmla.DISCOVER_DATASOURCES},true);return this.discover(a)},discoverProperties:function(a){a=g(a,{requestType:Xmla.DISCOVER_PROPERTIES},
break;case Xmla.PROP_FORMAT_MULTIDIMENSIONAL:break}this.response=a.resultset=c;this._fireEvent(Xmla.EVENT_EXECUTE_SUCCESS,a);break}this._fireEvent(Xmla.EVENT_SUCCESS,a)}},execute:function(a){var b=a.properties;if(j(b)){b={};a.properties=b}if(j(b[Xmla.PROP_CONTENT]))b[Xmla.PROP_CONTENT]=Xmla.PROP_CONTENT_SCHEMADATA;if(j(b[Xmla.PROP_FORMAT]))a.properties[Xmla.PROP_FORMAT]=Xmla.PROP_FORMAT_MULTIDIMENSIONAL;a=h(a,{method:Xmla.METHOD_EXECUTE},true);return this.request(a)},executeTabular:function(a){if(!a.properties)a.properties={};a.properties[Xmla.PROP_FORMAT]=Xmla.PROP_FORMAT_TABULAR;return this.execute(a)},executeMultiDimensional:function(a){if(!a.properties)a.properties={};a.properties[Xmla.PROP_FORMAT]=Xmla.PROP_FORMAT_MULTIDIMENSIONAL;return this.execute(a)},discover:function(a){a=h(a,{method:Xmla.METHOD_DISCOVER},true);return this.request(a)},discoverDataSources:function(a){a=h(a,{requestType:Xmla.DISCOVER_DATASOURCES},true);return this.discover(a)},discoverProperties:function(a){a=h(a,{requestType:Xmla.DISCOVER_PROPERTIES},
let foundWord = text.substring(0, currStart).replace(/.*\n/gm, '').match(RegExp('(' + abbreviations._match + ')$'));
let foundWord = text.substring(0, currStart).replace(/.*[\s\n]/gm, '').match(RegExp('(' + abbreviations._match + ')$'));
expandAbbreviation: function (mode) { let textbox = Editor.getEditor(); if (!textbox) return false; let text = textbox.value; let currStart = textbox.selectionStart; let currEnd = textbox.selectionEnd; let foundWord = text.substring(0, currStart).replace(/.*\n/gm, '').match(RegExp('(' + abbreviations._match + ')$')); if (!foundWord) return true; foundWord = foundWord[0]; let abbrev = abbreviations.get(mode, foundWord); if (abbrev) { let len = foundWord.length; let abbrText = abbrev.text; text = text.substring(0, currStart - len) + abbrText + text.substring(currStart); textbox.value = text; textbox.selectionStart = currStart - len + abbrText.length; textbox.selectionEnd = currEnd - len + abbrText.length; } return true; },
$.fn.mask = $.fn.expose = function(conf) { $.mask.load(this, conf); return this; };
$.fn.expose = function(conf) { $.mask.load(conf, this); return this; }
$.fn.mask = $.fn.expose = function(conf) { $.mask.load(this, conf); return this; };
splice:[].splice};d.fn.init.prototype=d.fn;d.extend=d.fn.extend=function(){var a=arguments[0]||{},b=1,e=arguments.length,g=false,h,k,l,q;if(typeof a==="boolean"){g=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!d.isFunction(a))a={};if(e===b){a=this;--b}for(;b<e;b++)if((h=arguments[b])!=null)for(k in h){l=a[k];q=h[k];if(a!==q)if(g&&q&&(d.isPlainObject(q)||d.isArray(q))){l=l&&(d.isPlainObject(l)||d.isArray(l))?l:d.isArray(q)?[]:{};a[k]=d.extend(g,l,q)}else if(q!==v)a[k]=q}return a};d.extend({noConflict:function(a){x.$=
splice:[].splice};c.fn.init.prototype=c.fn;c.extend=c.fn.extend=function(){var a=arguments[0]||{},b=1,e=arguments.length,f=false,h,k,l,q;if(typeof a==="boolean"){f=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!c.isFunction(a))a={};if(e===b){a=this;--b}for(;b<e;b++)if((h=arguments[b])!=null)for(k in h){l=a[k];q=h[k];if(a!==q)if(f&&q&&(c.isPlainObject(q)||c.isArray(q))){l=l&&(c.isPlainObject(l)||c.isArray(l))?l:c.isArray(q)?[]:{};a[k]=c.extend(f,l,q)}else if(q!==v)a[k]=q}return a};c.extend({noConflict:function(a){x.$=
splice:[].splice};d.fn.init.prototype=d.fn;d.extend=d.fn.extend=function(){var a=arguments[0]||{},b=1,e=arguments.length,g=false,h,k,l,q;if(typeof a==="boolean"){g=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!d.isFunction(a))a={};if(e===b){a=this;--b}for(;b<e;b++)if((h=arguments[b])!=null)for(k in h){l=a[k];q=h[k];if(a!==q)if(g&&q&&(d.isPlainObject(q)||d.isArray(q))){l=l&&(d.isPlainObject(l)||d.isArray(l))?l:d.isArray(q)?[]:{};a[k]=d.extend(g,l,q)}else if(q!==v)a[k]=q}return a};d.extend({noConflict:function(a){x.$=
type = Zotero.Utilities.cleanString(type).toLowerCase(); citation = Zotero.Utilities.cleanString(citation);
type = Zotero.Utilities.trimInternal(type).toLowerCase(); citation = Zotero.Utilities.trimInternal(citation);
function extractCitation(type, citation) { type = Zotero.Utilities.cleanString(type).toLowerCase(); citation = Zotero.Utilities.cleanString(citation); if(type == "book article") { var item = new Zotero.Item("bookSection"); } else if(type == "book" || type == "book collection") { var item = new Zotero.Item("book"); } else if(type == "dissertation abstract") { var item = new Zotero.Item("thesis"); } else { var item = new Zotero.Item("journalArticle"); } var m; if(item.itemType == "journalArticle" || item.itemType == "thesis") { m = citation.match(/^(.+)\. "([^"]+)" (.+), ([0-9\:]*) ?\(([^\)]+)\)(?:, (?:pp\. ([\-0-9]+)|([\-0-9A-Z]+)))?/); if(!m) return false; item.publicationTitle = m[3]; var parts = m[4].split(":"); if(parts.length == 2) { item.volume = parts[0]; item.issue = parts[1]; } else { item.issue = m[4]; } item.date = m[5]; item.pages = m[6] ? m[6] : m[7]; } else if(item.itemType == "book") { m = citation.match(/^(.+)\. "([^"]+)" ([^:]+): ([^,]+), ([0-9]{4})\..*?(?:([0-9]+) pp\.)/); if(!m) return false; item.place = m[3]; item.publisher = m[4]; item.date = m[5]; item.pages = m[6]; } else if(item.itemType == "bookSection") { m = citation.match(/^(.+)\. "([^"]+)" pp\. ([\-0-9]+)\. (?:((?:[^\.]*|\([^\)]+\)| [A-Z]\.)*)\.)? ([^\(\)]+). ([^:]+): ([^,]+), ([0-9]{4})/); if(!m) return false; Zotero.debug(m); item.pages = m[3]; var bookAuthors = m[4].split(" and "); for each(var bookAuthor in bookAuthors) { var n = bookAuthor.match(/^([^,]+), ([^\(]+)(?: \(([^\)]+)\)?)?$/); if(n) { var type = (n[3] && n[3].toLowerCase().indexOf("ed.") != -1) ? "editor" : "author"; item.creators.push({lastName:n[1], firstName:n[2], creatorType:type}) } } item.publicationTitle = m[5]; item.place = m[6]; item.publisher = m[7]; item.date = m[8]; } // add creators var creators = m[1].split("; "); for each(var creator in creators) { item.creators.push(Zotero.Utilities.cleanAuthor(creator, "author", true)); } if(m[2][m[2].length-1] == ".") { item.title = m[2].substr(0, m[2].length-1); } else { item.title = m[2]; } return item;}
console.dir(fields);
extractPropertyFields: function (parent) { var fields = { }; var to_delete = []; for (name in $this.plugin_properties) { if ($this.plugin_properties.hasOwnProperty(name)) { var prop = $this.plugin_properties[name], val = parent.find('*[name='+name+']').val(); if ('' === val || 'undefined' == val) { continue; } // Allow one level of data structure depth, specified by // 'parent' in property definition. (eg. platform') if (prop.parent) { if (!fields[prop.parent]) { fields[prop.parent] = {}; } fields[prop.parent][name] = val; } else { fields[name] = val; } } } console.dir(fields); return fields; },
flashembed(this,f,e)});return f.api===false?this:a}})();(function(A,o){function v(j,n){for(var t=[],w=0;w<j.length;w++)t.push(j[w]);for(w=0;w<t.length;w++)n(t[w])}function s(){v([x,f],function(j){v(o.getElementsByTagName(j),function(n){var t=true;if(n.canPlayType)if(n.src&&n.canPlayType(F(j,n.src)))t=false;else v(n.getElementsByTagName("source"),function(w){if(n.canPlayType(F(j,w.src,w.type)))t=false});t&&s.createFallback(j,n)})})}function F(j,n,t){return t||k[j][n.split(".").slice(-1)[0]]||C[j]}function y(j,n){var t=j.getAttribute(n);return t==true||
flashembed(this,f,e)});return f.api===false?this:a}})();(function(A,o){function v(j,n){for(var t=[],w=0;w<j.length;w++)t.push(j[w]);for(w=0;w<t.length;w++)n(t[w])}function s(){v([x,f],function(j){v(o.getElementsByTagName(j),function(n){var t=true;if(n.canPlayType)if(n.src&&n.canPlayType(F(j,n.src)))t=false;else v(n.getElementsByTagName("source"),function(w){if(n.canPlayType(F(j,w.src,w.type)))t=false});if(t)s.createFallback(j,n);else navigator.userAgent.search("android")>-1&&n.addEventListener("click",function(){n.play()},false)})})}function F(j,n,t){return t|| k[j][n.split(".").slice(-1)[0]]||C[j]}function y(j,n){var t=j.getAttribute(n);return t==true||typeof t=="string"}function B(j){if(j.substr(0,1)=="/")return q+j;if(j.substr(0,1)=="."||!j.match(/^\s*\w+:\/\
flashembed(this,f,e)});return f.api===false?this:a}})();(function(A,o){function v(j,n){for(var t=[],w=0;w<j.length;w++)t.push(j[w]);for(w=0;w<t.length;w++)n(t[w])}function s(){v([x,f],function(j){v(o.getElementsByTagName(j),function(n){var t=true;if(n.canPlayType)if(n.src&&n.canPlayType(F(j,n.src)))t=false;else v(n.getElementsByTagName("source"),function(w){if(n.canPlayType(F(j,w.src,w.type)))t=false});t&&s.createFallback(j,n)})})}function F(j,n,t){return t||k[j][n.split(".").slice(-1)[0]]||C[j]}function y(j,n){var t=j.getAttribute(n);return t==true||
b=b.getAttribute("sug");k.focus();s.emit(f,"select",a.id,k.id);x(k,l,b);d();i=null}function z(a,b){for(a=b?a.nextSibling:a.previousSibling;a;a=b?a.nextSibling:a.previousSibling)if(e.hasTag(a,"DIV"))if(a.style.display!="none")return a;return null}function F(a){var b=a.parentNode;if(a.offsetTop+a.offsetHeight>b.scrollTop+b.clientHeight)b.scrollTop=a.offsetTop+a.offsetHeight-b.clientHeight;else if(a.offsetTop<b.scrollTop)b.scrollTop=a.offsetTop}$(".Wt-domRoot").add(f);jQuery.data(f,"obj",this);var A=
k.focus();s.emit(f,"select",a.id,k.id);w(k,l,b);d();i=null}function z(a,b){for(a=b?a.nextSibling:a.previousSibling;a;a=b?a.nextSibling:a.previousSibling)if(e.hasTag(a,"DIV"))if(a.style.display!="none")return a;return null}function F(a){var b=a.parentNode;if(a.offsetTop+a.offsetHeight>b.scrollTop+b.clientHeight)b.scrollTop=a.offsetTop+a.offsetHeight-b.clientHeight;else if(a.offsetTop<b.scrollTop)b.scrollTop=a.offsetTop}$(".Wt-domRoot").add(f);jQuery.data(f,"obj",this);var A=this,e=s.WT,n=null,i=null,
b=b.getAttribute("sug");k.focus();s.emit(f,"select",a.id,k.id);x(k,l,b);d();i=null}function z(a,b){for(a=b?a.nextSibling:a.previousSibling;a;a=b?a.nextSibling:a.previousSibling)if(e.hasTag(a,"DIV"))if(a.style.display!="none")return a;return null}function F(a){var b=a.parentNode;if(a.offsetTop+a.offsetHeight>b.scrollTop+b.clientHeight)b.scrollTop=a.offsetTop+a.offsetHeight-b.clientHeight;else if(a.offsetTop<b.scrollTop)b.scrollTop=a.offsetTop}$(".Wt-domRoot").add(f);jQuery.data(f,"obj",this);var A=
a.getElement(s).dirty=true;window.onresize()}function f(){var e,k=0;for(e=0;;++e){var m=b(e);if(m)k+=a.pctself(m,"width");else break}if(k!=0)for(e=0;;++e)if(m=b(e)){var n=a.pctself(m,"width");if(n)m.style.width=n*100/k+"%"}else break}function q(e,k,m){e=b(k);var n=p(e,k),r=b(k+1),u=p(r,k+1);if(a.pctself(e,"width")>0&&a.pctself(r,"width")>0){e.style.width="";f()}a.pctself(e,"width")==0&&c(k,n+m);a.pctself(r,"width")==0&&c(k+1,u-m);window.onresize()}var d=this,b=d.getColumn,l=a.getElement(s);if(l)if(!d.resizeInitialized){var t=
F;++B){w=v.childNodes[B];if(w.className!="Wt-vrh"){if(w.colSpan==1&&D==e&&w.childNodes.length==1){v=w.firstChild;w=k-d.marginH(v);v.style.width=w+"px";break}D+=w.colSpan}}++r}}}function f(e,k,m){var n=e.firstChild;new a.SizeHandle(a,"v",n.offsetHeight,n.offsetWidth,-e.parentNode.previousSibling.offsetHeight,e.parentNode.nextSibling.offsetHeight,"Wt-vsh",function(r){j(e,k,r)},n,l,m,0,0)}function i(e,k,m){var n=-e.previousSibling.offsetWidth,r=e.nextSibling.offsetWidth,u=e.firstChild,v=a.pxself(t.rows[0].childNodes[0],
a.getElement(s).dirty=true;window.onresize()}function f(){var e,k=0;for(e=0;;++e){var m=b(e);if(m)k+=a.pctself(m,"width");else break}if(k!=0)for(e=0;;++e)if(m=b(e)){var n=a.pctself(m,"width");if(n)m.style.width=n*100/k+"%"}else break}function q(e,k,m){e=b(k);var n=p(e,k),r=b(k+1),u=p(r,k+1);if(a.pctself(e,"width")>0&&a.pctself(r,"width")>0){e.style.width="";f()}a.pctself(e,"width")==0&&c(k,n+m);a.pctself(r,"width")==0&&c(k+1,u-m);window.onresize()}var d=this,b=d.getColumn,l=a.getElement(s);if(l)if(!d.resizeInitialized){var t=
ia=(new Date).getTime()}else if(X){clearTimeout(Q);v()}else if((new Date).getTime()-ia>m.updateDelay){clearTimeout(Q);v()}}function F(d){ea=d;q._p_.comm.responseReceived(d)}function v(){Q=null;if(P){if(!ja){if(confirm("The application was quited, do you want to restart?"))document.location=document.location;ja=true}}else{var d,c,e,j="&rand="+Math.round(Math.random(ka)*1E5);if(A.length>0){d=S();c=d.feedback?setTimeout(h,_$_INDICATOR_TIMEOUT_$_):null;e=false}else{d={result:"signal=poll"};c=null;e=true}K=
function y(){if(K!=null&&L!=null){clearTimeout(L);K.abort();K=null}if(K==null)if(Q==null){Q=setTimeout(function(){w()},m.updateDelay);ia=(new Date).getTime()}else if(Y){clearTimeout(Q);w()}else if((new Date).getTime()-ia>m.updateDelay){clearTimeout(Q);w()}}function F(d){ea=d;r._p_.comm.responseReceived(d)}function w(){Q=null;if(P){if(!ja){if(confirm("The application was quited, do you want to restart?"))document.location=document.location;ja=true}}else{var d,c,e,j="&rand="+Math.round(Math.random(ka)*
ia=(new Date).getTime()}else if(X){clearTimeout(Q);v()}else if((new Date).getTime()-ia>m.updateDelay){clearTimeout(Q);v()}}function F(d){ea=d;q._p_.comm.responseReceived(d)}function v(){Q=null;if(P){if(!ja){if(confirm("The application was quited, do you want to restart?"))document.location=document.location;ja=true}}else{var d,c,e,j="&rand="+Math.round(Math.random(ka)*1E5);if(A.length>0){d=S();c=d.feedback?setTimeout(h,_$_INDICATOR_TIMEOUT_$_):null;e=false}else{d={result:"signal=poll"};c=null;e=true}K=
F;++B){w=v.childNodes[B];if(w.className!="Wt-vrh"){if(w.colSpan==1&&D==e&&w.childNodes.length==1){v=w.firstChild;w=j-g.marginH(v);v.style.width=w+"px";break}D+=w.colSpan}}++r}}}function c(e,j,m){var n=e.firstChild;new a.SizeHandle(a,"v",n.offsetHeight,n.offsetWidth,-e.parentNode.previousSibling.offsetHeight,e.parentNode.nextSibling.offsetHeight,"Wt-vsh",function(r){d(e,j,r)},n,l,m,0,0)}function f(e,j,m){var n=-e.previousSibling.offsetWidth,r=e.nextSibling.offsetWidth,u=e.firstChild,v=a.pxself(q.rows[0].childNodes[0], "paddingTop"),w=a.pxself(q.rows[q.rows.length-1].childNodes[0],"paddingBottom");new a.SizeHandle(a,"h",u.offsetWidth,q.offsetHeight-v-w,n,r,"Wt-hsh",function(B){k(e,j,B)},u,l,m,0,-e.offsetTop+v-a.pxself(e,"paddingTop"))}function d(e,j,m){var n=e.parentNode.previousSibling;e=e.parentNode.nextSibling;var r=n.offsetHeight,u=e.offsetHeight;if(h.stretch[j]>0&&h.stretch[j+1]>0)h.stretch[j]=-1;if(h.stretch[j+1]==0)h.stretch[j+1]=-1;h.stretch[j]<=0&&g.adjustRow(n,r+m);h.stretch[j+1]<=0&&g.adjustRow(e,u-m);
F;++B){x=w.childNodes[B];if(x.className!="Wt-vrh"){if(x.colSpan==1&&D==e&&x.childNodes.length==1){w=x.firstChild;x=j-g.marginH(w);w.style.width=x+"px";break}D+=x.colSpan}}++r}}}function c(e,j,m){var n=e.firstChild;new a.SizeHandle(a,"v",n.offsetHeight,n.offsetWidth,-e.parentNode.previousSibling.offsetHeight,e.parentNode.nextSibling.offsetHeight,"Wt-vsh",function(r){i(e,j,r)},n,l,m,0,0)}function f(e,j,m){var n=-e.previousSibling.offsetWidth,r=e.nextSibling.offsetWidth,u=e.firstChild,w=a.pxself(s.rows[0].childNodes[0], "paddingTop"),x=a.pxself(s.rows[s.rows.length-1].childNodes[0],"paddingBottom");new a.SizeHandle(a,"h",u.offsetWidth,s.offsetHeight-w-x,n,r,"Wt-hsh",function(B){k(e,j,B)},u,l,m,0,-e.offsetTop+w-a.pxself(e,"paddingTop"))}function i(e,j,m){var n=e.parentNode.previousSibling;e=e.parentNode.nextSibling;var r=n.offsetHeight,u=e.offsetHeight;if(h.stretch[j]>0&&h.stretch[j+1]>0)h.stretch[j]=-1;if(h.stretch[j+1]==0)h.stretch[j+1]=-1;h.stretch[j]<=0&&g.adjustRow(n,r+m);h.stretch[j+1]<=0&&g.adjustRow(e,u-m);
F;++B){w=v.childNodes[B];if(w.className!="Wt-vrh"){if(w.colSpan==1&&D==e&&w.childNodes.length==1){v=w.firstChild;w=j-g.marginH(v);v.style.width=w+"px";break}D+=w.colSpan}}++r}}}function c(e,j,m){var n=e.firstChild;new a.SizeHandle(a,"v",n.offsetHeight,n.offsetWidth,-e.parentNode.previousSibling.offsetHeight,e.parentNode.nextSibling.offsetHeight,"Wt-vsh",function(r){d(e,j,r)},n,l,m,0,0)}function f(e,j,m){var n=-e.previousSibling.offsetWidth,r=e.nextSibling.offsetWidth,u=e.firstChild,v=a.pxself(q.rows[0].childNodes[0],"paddingTop"),w=a.pxself(q.rows[q.rows.length-1].childNodes[0],"paddingBottom");new a.SizeHandle(a,"h",u.offsetWidth,q.offsetHeight-v-w,n,r,"Wt-hsh",function(B){k(e,j,B)},u,l,m,0,-e.offsetTop+v-a.pxself(e,"paddingTop"))}function d(e,j,m){var n=e.parentNode.previousSibling;e=e.parentNode.nextSibling;var r=n.offsetHeight,u=e.offsetHeight;if(h.stretch[j]>0&&h.stretch[j+1]>0)h.stretch[j]=-1;if(h.stretch[j+1]==0)h.stretch[j+1]=-1;h.stretch[j]<=0&&g.adjustRow(n,r+m);h.stretch[j+1]<=0&&g.adjustRow(e,u-m);
O=null}J=null;if(d>0)++W;else W=0;if(!Q)if(ga||z.length>0)if(d==1){d=Math.min(12E4,Math.exp(W)*500);R=setTimeout(function(){G()},d)}else G()}}function x(){J.abort();O=J=null;Q||G()}function A(d,c,f,j){o.checkReleaseCapture(d,f);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!J){_$_$endif_$_();var m={},g=z.length;m.object=d;m.signal=c;m.event=f;m.feedback=j;z[g]=T(m,g);F();q();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function F(){if(J!=null&&O!=null){clearTimeout(O);J.abort();J=null}if(J== null)if(R==null){R=setTimeout(function(){G()},o.updateDelay);ha=(new Date).getTime()}else if(W){clearTimeout(R);G()}else if((new Date).getTime()-ha>o.updateDelay){clearTimeout(R);G()}}function I(d){da=d;y._p_.comm.responseReceived(d)}function G(){R=null;if(Q){if(!ia){if(confirm("The application was quited, do you want to restart?"))document.location=document.location;ia=true}}else{var d,c,f,j="&rand="+Math.round(Math.random(ja)*1E5);if(z.length>0){d=a();c=d.feedback?setTimeout(K,_$_INDICATOR_TIMEOUT_$_):
ha>o.updateDelay){clearTimeout(Q);F()}}function H(d){ca=d;x._p_.comm.responseReceived(d)}function F(){Q=null;if(P){if(!ia){if(confirm("The application was quited, do you want to restart?"))document.location=document.location;ia=true}}else{var d,c,f,k="&rand="+Math.round(Math.random(ja)*1E5);if(y.length>0){d=a();c=d.feedback?setTimeout(J,_$_INDICATOR_TIMEOUT_$_):null;f=false}else{d={result:"signal=poll"};c=null;f=true}I=x._p_.comm.sendUpdate(ka+k,"request=jsupdate&"+d.result+"&ackId="+ca,c,ca,-1); N=f?setTimeout(w,_$_SERVER_PUSH_TIMEOUT_$_):null}}function L(d,c){var f={},k=y.length;f.signal="user";f.id=typeof d==="string"?d:d==_$_APP_CLASS_$_?"app":d.id;if(typeof c==="object"){f.name=c.name;f.object=c.eventObject;f.event=c.event}else{f.name=c;f.object=f.event=null}f.args=[];for(var h=2;h<arguments.length;++h){var m=arguments[h];m=m===false?0:m===true?1:m.toDateString?m.toDateString():m;f.args[h-2]=m}f.feedback=true;y[k]=S(f,k);E()}function K(d,c,f){var k=function(){var m=o.getElement(d);if(m){if(f)m.timer=
O=null}J=null;if(d>0)++W;else W=0;if(!Q)if(ga||z.length>0)if(d==1){d=Math.min(12E4,Math.exp(W)*500);R=setTimeout(function(){G()},d)}else G()}}function x(){J.abort();O=J=null;Q||G()}function A(d,c,f,j){o.checkReleaseCapture(d,f);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!J){_$_$endif_$_();var m={},g=z.length;m.object=d;m.signal=c;m.event=f;m.feedback=j;z[g]=T(m,g);F();q();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function F(){if(J!=null&&O!=null){clearTimeout(O);J.abort();J=null}if(J==null)if(R==null){R=setTimeout(function(){G()},o.updateDelay);ha=(new Date).getTime()}else if(W){clearTimeout(R);G()}else if((new Date).getTime()-ha>o.updateDelay){clearTimeout(R);G()}}function I(d){da=d;y._p_.comm.responseReceived(d)}function G(){R=null;if(Q){if(!ia){if(confirm("The application was quited, do you want to restart?"))document.location=document.location;ia=true}}else{var d,c,f,j="&rand="+Math.round(Math.random(ja)*1E5);if(z.length>0){d=a();c=d.feedback?setTimeout(K,_$_INDICATOR_TIMEOUT_$_):
d)}else G()}}function x(){J.abort();O=J=null;Q||G()}function A(d,c,f,j){o.checkReleaseCapture(d,f);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!J){_$_$endif_$_();var m={},h=z.length;m.object=d;m.signal=c;m.event=f;m.feedback=j;z[h]=T(m,h);F();q();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function F(){if(J!=null&&O!=null){clearTimeout(O);J.abort();J=null}if(J==null)if(R==null){R=setTimeout(function(){G()},o.updateDelay);ha=(new Date).getTime()}else if(W){clearTimeout(R);G()}else if((new Date).getTime()-
d)}else G()}}function x(){J.abort();O=J=null;Q||G()}function A(d,c,f,j){o.checkReleaseCapture(d,f);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!J){_$_$endif_$_();var m={},g=z.length;m.object=d;m.signal=c;m.event=f;m.feedback=j;z[g]=T(m,g);F();q();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function F(){if(J!=null&&O!=null){clearTimeout(O);J.abort();J=null}if(J==null)if(R==null){R=setTimeout(function(){G()},o.updateDelay);ha=(new Date).getTime()}else if(W){clearTimeout(R);G()}else if((new Date).getTime()-
d)}else G()}}function x(){J.abort();O=J=null;Q||G()}function A(d,c,f,j){o.checkReleaseCapture(d,f);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!J){_$_$endif_$_();var m={},h=z.length;m.object=d;m.signal=c;m.event=f;m.feedback=j;z[h]=T(m,h);F();q();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function F(){if(J!=null&&O!=null){clearTimeout(O);J.abort();J=null}if(J==null)if(R==null){R=setTimeout(function(){G()},o.updateDelay);ha=(new Date).getTime()}else if(W){clearTimeout(R);G()}else if((new Date).getTime()-ha>o.updateDelay){clearTimeout(R);G()}}function I(d){da=d;y._p_.comm.responseReceived(d)}function G(){R=null;if(Q){if(!ia){if(confirm("The application was quited, do you want to restart?"))document.location=document.location;ia=true}}else{var d,c,f,j="&rand="+Math.round(Math.random(ja)*1E5);if(z.length>0){d=a();c=d.feedback?setTimeout(K,_$_INDICATOR_TIMEOUT_$_):null;f=false}else{d={result:"signal=poll"};c=null;f=true}J=y._p_.comm.sendUpdate(ka+j,"request=jsupdate&"+d.result+"&ackId="+da,c,da,-1);
l.offsetWidth,-c.parentNode.previousSibling.offsetHeight,c.parentNode.nextSibling.offsetHeight,"Wt-vsh",function(q){f(c,g,q)},l,n,j,0,0)}function m(c,g,j){var l=-c.previousSibling.offsetWidth,q=c.nextSibling.offsetWidth,s=c.firstChild,v=a.pxself(u.rows[0].childNodes[0],"paddingTop"),w=a.pxself(u.rows[u.rows.length-1].childNodes[0],"paddingBottom");new a.SizeHandle(a,"h",s.offsetWidth,u.offsetHeight-v-w,l,q,"Wt-hsh",function(B){b(c,g,B)},s,n,j,0,-c.offsetTop+v-a.pxself(c,"paddingTop"))}function f(c, g,j){var l=c.parentNode.previousSibling;c=c.parentNode.nextSibling;var q=l.offsetHeight,s=c.offsetHeight;if(i.stretch[g]>0&&i.stretch[g+1]>0)i.stretch[g]=-1;if(i.stretch[g+1]==0)i.stretch[g+1]=-1;i.stretch[g]<=0&&r.adjustRow(l,q+j);i.stretch[g+1]<=0&&r.adjustRow(c,s-j);a.getElement(t).dirty=true;window.onresize()}function k(){var c,g=0;for(c=0;;++c){var j=o(c);if(j)g+=a.pctself(j,"width");else break}if(g!=0)for(c=0;;++c)if(j=o(c)){var l=a.pctself(j,"width");if(l)j.style.width=l*100/g+"%"}else break}
a.getElement(s).dirty=true;window.onresize()}function f(){var e,k=0;for(e=0;;++e){var m=b(e);if(m)k+=a.pctself(m,"width");else break}if(k!=0)for(e=0;;++e)if(m=b(e)){var n=a.pctself(m,"width");if(n)m.style.width=n*100/k+"%"}else break}function q(e,k,m){e=b(k);var n=p(e,k),r=b(k+1),u=p(r,k+1);if(a.pctself(e,"width")>0&&a.pctself(r,"width")>0){e.style.width="";f()}a.pctself(e,"width")==0&&c(k,n+m);a.pctself(r,"width")==0&&c(k+1,u-m);window.onresize()}var d=this,b=d.getColumn,l=a.getElement(s);if(l)if(!d.resizeInitialized){var t=
l.offsetWidth,-c.parentNode.previousSibling.offsetHeight,c.parentNode.nextSibling.offsetHeight,"Wt-vsh",function(q){f(c,g,q)},l,n,j,0,0)}function m(c,g,j){var l=-c.previousSibling.offsetWidth,q=c.nextSibling.offsetWidth,s=c.firstChild,v=a.pxself(u.rows[0].childNodes[0],"paddingTop"),w=a.pxself(u.rows[u.rows.length-1].childNodes[0],"paddingBottom");new a.SizeHandle(a,"h",s.offsetWidth,u.offsetHeight-v-w,l,q,"Wt-hsh",function(B){b(c,g,B)},s,n,j,0,-c.offsetTop+v-a.pxself(c,"paddingTop"))}function f(c,g,j){var l=c.parentNode.previousSibling;c=c.parentNode.nextSibling;var q=l.offsetHeight,s=c.offsetHeight;if(i.stretch[g]>0&&i.stretch[g+1]>0)i.stretch[g]=-1;if(i.stretch[g+1]==0)i.stretch[g+1]=-1;i.stretch[g]<=0&&r.adjustRow(l,q+j);i.stretch[g+1]<=0&&r.adjustRow(c,s-j);a.getElement(t).dirty=true;window.onresize()}function k(){var c,g=0;for(c=0;;++c){var j=o(c);if(j)g+=a.pctself(j,"width");else break}if(g!=0)for(c=0;;++c)if(j=o(c)){var l=a.pctself(j,"width");if(l)j.style.width=l*100/g+"%"}else break}
function(a,b,f){a=g.getElement(a);b=g.getElement(b);var h=g.widgetPageCoordinates(b),k,o;a.style.display="block";if(f==g.Horizontal){f=h.x+b.offsetWidth;k=h.y;o=h.x;b=h.y+b.offsetHeight}else{f=h.x;k=h.y+b.offsetHeight;o=h.x+b.offsetWidth;b=h.y}g.fitToWindow(a,f,k,o,b)};this.hasFocus=function(a){return a==document.activeElement};this.history=function(){function a(){var l,p;p=location.href;l=p.indexOf("#");return l>=0?p.substr(l+1):null}function b(){v.value=G+"|"+C;if(u)v.value+="|"+M.join(",")}function f(l){if(l){if(!l|| C!==l){C=l||G;H(unescape(C))}}else{C=G;H(unescape(C))}}function h(l){var p;l='<html><body><div id="state">'+l+"</div></body></html>";try{p=F.contentWindow.document;p.open();p.write(l);p.close();return true}catch(q){return false}}function k(){var l,p,q,n;if(!F.contentWindow||!F.contentWindow.document)setTimeout(k,10);else{l=F.contentWindow.document;q=(p=l.getElementById("state"))?p.innerText:null;n=a();setInterval(function(){var N,J;l=F.contentWindow.document;N=(p=l.getElementById("state"))?p.innerText:
document.activeElement};this.history=function(){function a(){var l,p;p=location.href;l=p.indexOf("#");return l>=0?p.substr(l+1):null}function b(){v.value=G+"|"+C;if(u)v.value+="|"+M.join(",")}function f(l){if(l){if(!l||C!==l){C=l||G;H(unescape(C))}}else{C=G;H(unescape(C))}}function h(l){var p;l='<html><body><div id="state">'+l+"</div></body></html>";try{p=F.contentWindow.document;p.open();p.write(l);p.close();return true}catch(q){return false}}function k(){var l,p,q,n;if(!F.contentWindow||!F.contentWindow.document)setTimeout(k,
function(a,b,f){a=g.getElement(a);b=g.getElement(b);var h=g.widgetPageCoordinates(b),k,o;a.style.display="block";if(f==g.Horizontal){f=h.x+b.offsetWidth;k=h.y;o=h.x;b=h.y+b.offsetHeight}else{f=h.x;k=h.y+b.offsetHeight;o=h.x+b.offsetWidth;b=h.y}g.fitToWindow(a,f,k,o,b)};this.hasFocus=function(a){return a==document.activeElement};this.history=function(){function a(){var l,p;p=location.href;l=p.indexOf("#");return l>=0?p.substr(l+1):null}function b(){v.value=G+"|"+C;if(u)v.value+="|"+M.join(",")}function f(l){if(l){if(!l||C!==l){C=l||G;H(unescape(C))}}else{C=G;H(unescape(C))}}function h(l){var p;l='<html><body><div id="state">'+l+"</div></body></html>";try{p=F.contentWindow.document;p.open();p.write(l);p.close();return true}catch(q){return false}}function k(){var l,p,q,n;if(!F.contentWindow||!F.contentWindow.document)setTimeout(k,10);else{l=F.contentWindow.document;q=(p=l.getElementById("state"))?p.innerText:null;n=a();setInterval(function(){var N,J;l=F.contentWindow.document;N=(p=l.getElementById("state"))?p.innerText:
if(!K){_$_$endif_$_();var m={},i=A.length;m.object=d;m.signal=c;m.event=e;m.feedback=j;A[i]=B(m,i);x();E();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function x(){if(K!=null&&L!=null){clearTimeout(L);K.abort();K=null}if(K==null)if(Q==null){Q=setTimeout(function(){v()},n.updateDelay);ia=(new Date).getTime()}else if(X){clearTimeout(Q);v()}else if((new Date).getTime()-ia>n.updateDelay){clearTimeout(Q);v()}}function F(d){ea=d;q._p_.comm.responseReceived(d)}function v(){Q=null;if(P){if(!ja){if(confirm("The application was quited, do you want to restart?"))document.location=
v()}}function F(d){ea=d;q._p_.comm.responseReceived(d)}function v(){Q=null;if(P){if(!ja){if(confirm("The application was quited, do you want to restart?"))document.location=document.location;ja=true}}else{var d,c,e,j="&rand="+Math.round(Math.random(ka)*1E5);if(A.length>0){d=S();c=d.feedback?setTimeout(k,_$_INDICATOR_TIMEOUT_$_):null;e=false}else{d={result:"signal=poll"};c=null;e=true}K=q._p_.comm.sendUpdate(la+j,"request=jsupdate&"+d.result+"&ackId="+ea,c,ea,-1);L=e?setTimeout(r,_$_SERVER_PUSH_TIMEOUT_$_):
if(!K){_$_$endif_$_();var m={},i=A.length;m.object=d;m.signal=c;m.event=e;m.feedback=j;A[i]=B(m,i);x();E();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function x(){if(K!=null&&L!=null){clearTimeout(L);K.abort();K=null}if(K==null)if(Q==null){Q=setTimeout(function(){v()},n.updateDelay);ia=(new Date).getTime()}else if(X){clearTimeout(Q);v()}else if((new Date).getTime()-ia>n.updateDelay){clearTimeout(Q);v()}}function F(d){ea=d;q._p_.comm.responseReceived(d)}function v(){Q=null;if(P){if(!ja){if(confirm("The application was quited, do you want to restart?"))document.location=
Math.exp(T)*500);P=setTimeout(function(){w()},d)}else w()}}function H(){G.abort();M=G=null;w()}function A(d,c,e,h){g.checkReleaseCapture(d,e);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!G){_$_$endif_$_();var i={},j=z.length;i.object=d;i.signal=c;i.event=e;i.feedback=h;z[j]=R(i,j);F();q();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function F(){if(G!=null&&M!=null){clearTimeout(M);G.abort();G=null}if(G==null)if(P==null){P=setTimeout(function(){w()},g.updateDelay);fa=(new Date).getTime()}else if(T){clearTimeout(P);
500);P=setTimeout(function(){w()},d)}else w()}}function H(){G.abort();M=G=null;w()}function A(d,c,e,h){g.checkReleaseCapture(d,e);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!G){_$_$endif_$_();var i={},j=z.length;i.object=d;i.signal=c;i.event=e;i.feedback=h;z[j]=R(i,j);F();q();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function F(){if(G!=null&&M!=null){clearTimeout(M);G.abort();G=null}if(G==null)if(P==null){P=setTimeout(function(){w()},g.updateDelay);fa=(new Date).getTime()}else if(T){clearTimeout(P);
Math.exp(T)*500);P=setTimeout(function(){w()},d)}else w()}}function H(){G.abort();M=G=null;w()}function A(d,c,e,h){g.checkReleaseCapture(d,e);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!G){_$_$endif_$_();var i={},j=z.length;i.object=d;i.signal=c;i.event=e;i.feedback=h;z[j]=R(i,j);F();q();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function F(){if(G!=null&&M!=null){clearTimeout(M);G.abort();G=null}if(G==null)if(P==null){P=setTimeout(function(){w()},g.updateDelay);fa=(new Date).getTime()}else if(T){clearTimeout(P);w()}else if((new Date).getTime()-fa>g.updateDelay){clearTimeout(P);w()}}function L(d){ca=d;V._p_.comm.responseReceived(d)}function w(){P=null;if(ba){if(!ga){if(confirm("The application was quited, do you want to restart?"))document.location=document.location;ga=true}}else{var d,c,e,h="&rand="+Math.round(Math.random(ha)*1E5);if(z.length>0){d=a();c=d.feedback?setTimeout(n,_$_INDICATOR_TIMEOUT_$_):null;e=false}else{d={result:"signal=poll"};c=null;e=true}G=V._p_.comm.sendUpdate(ia+h,"request=jsupdate&"+
function(a,b,f){a=k.getElement(a);b=k.getElement(b);var m=k.widgetPageCoordinates(b),l,o;a.style.display="block";if(f==k.Horizontal){f=m.x+b.offsetWidth;l=m.y;o=m.x;b=m.y+b.offsetHeight}else{f=m.x;l=m.y+b.offsetHeight;o=m.x+b.offsetWidth;b=m.y}k.fitToWindow(a,f,l,o,b)};this.hasFocus=function(a){return a==document.activeElement};this.history=function(){function a(){var g,p;p=location.href;g=p.indexOf("#");return g>=0?p.substr(g+1):null}function b(){H.value=I+"|"+z;if(r)H.value+="|"+A.join(",")}function f(g){if(g){if(!g|| z!==g){z=g||I;Q(unescape(z))}}else{z=I;Q(unescape(z))}}function m(g){var p;g='<html><body><div id="state">'+g+"</div></body></html>";try{p=K.contentWindow.document;p.open();p.write(g);p.close();return true}catch(n){return false}}function l(){var g,p,n,y;if(!K.contentWindow||!K.contentWindow.document)setTimeout(l,10);else{g=K.contentWindow.document;n=(p=g.getElementById("state"))?p.innerText:null;y=a();setInterval(function(){var M,w;g=K.contentWindow.document;M=(p=g.getElementById("state"))?p.innerText:
k.Horizontal){f=m.x+b.offsetWidth;l=m.y;n=m.x;b=m.y+b.offsetHeight}else{f=m.x;l=m.y+b.offsetHeight;n=m.x+b.offsetWidth;b=m.y}k.fitToWindow(a,f,l,n,b)};this.hasFocus=function(a){return a==document.activeElement};this.history=function(){function a(){var g,o;o=location.href;g=o.indexOf("#");return g>=0?o.substr(g+1):null}function b(){L.value=I+"|"+y;if(q)L.value+="|"+N.join(",")}function f(g){if(g){if(!g||y!==g){y=g||I;S(unescape(y))}}else{y=I;S(unescape(y))}}function m(g){var o;g='<html><body><div id="state">'+
function(a,b,f){a=k.getElement(a);b=k.getElement(b);var m=k.widgetPageCoordinates(b),l,o;a.style.display="block";if(f==k.Horizontal){f=m.x+b.offsetWidth;l=m.y;o=m.x;b=m.y+b.offsetHeight}else{f=m.x;l=m.y+b.offsetHeight;o=m.x+b.offsetWidth;b=m.y}k.fitToWindow(a,f,l,o,b)};this.hasFocus=function(a){return a==document.activeElement};this.history=function(){function a(){var g,p;p=location.href;g=p.indexOf("#");return g>=0?p.substr(g+1):null}function b(){H.value=I+"|"+z;if(r)H.value+="|"+A.join(",")}function f(g){if(g){if(!g||z!==g){z=g||I;Q(unescape(z))}}else{z=I;Q(unescape(z))}}function m(g){var p;g='<html><body><div id="state">'+g+"</div></body></html>";try{p=K.contentWindow.document;p.open();p.write(g);p.close();return true}catch(n){return false}}function l(){var g,p,n,y;if(!K.contentWindow||!K.contentWindow.document)setTimeout(l,10);else{g=K.contentWindow.document;n=(p=g.getElementById("state"))?p.innerText:null;y=a();setInterval(function(){var M,w;g=K.contentWindow.document;M=(p=g.getElementById("state"))?p.innerText:
var _$_WT_CLASS_$_=new (function(){function v(a){if(G!=null){if(!a)a=window.event;k.condCall(G,"onmousemove",a);return false}else return true}function s(a){if(G!=null){var b=G;k.capture(null);if(!a)a=window.event;k.condCall(b,"onmouseup",a);k.cancelEvent(a,k.CancelPropagate);return false}else return true}function F(){if(!P){P=true;if(document.body.addEventListener){var a=document.body;a.addEventListener("mousemove",v,true);a.addEventListener("mouseup",s,true);k.isGecko&&window.addEventListener("mouseout", function(b){!b.relatedTarget&&k.hasTag(b.target,"HTML")&&s(b)},true)}else{a=document.body;a.attachEvent("onmousemove",v);a.attachEvent("onmouseup",s)}}}var k=this;this.arrayRemove=function(a,b,f){f=a.slice((f||b)+1||a.length);a.length=b<0?a.length+b:b;return a.push.apply(a,f)};this.isIE6=(this.isIE=navigator.userAgent.toLowerCase().indexOf("msie")!=-1&&navigator.userAgent.toLowerCase().indexOf("opera")==-1)&&navigator.userAgent.toLowerCase().indexOf("msie 6")!=-1;this.isGecko=navigator.userAgent.toLowerCase().indexOf("gecko")!=
d)}else w()}}function H(){G.abort();M=G=null;w()}function A(d,c,e,h){g.checkReleaseCapture(d,e);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!G){_$_$endif_$_();var i={},j=z.length;i.object=d;i.signal=c;i.event=e;i.feedback=h;z[j]=R(i,j);F();q();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function F(){if(G!=null&&M!=null){clearTimeout(M);G.abort();G=null}if(G==null)if(P==null){P=setTimeout(function(){w()},g.updateDelay);fa=(new Date).getTime()}else if(T){clearTimeout(P);w()}else if((new Date).getTime()- fa>g.updateDelay){clearTimeout(P);w()}}function L(d){ca=d;V._p_.comm.responseReceived(d)}function w(){P=null;if(ba){if(!ga){if(confirm("The application was quited, do you want to restart?"))document.location=document.location;ga=true}}else{var d,c,e,h="&rand="+Math.round(Math.random(ha)*1E5);if(z.length>0){d=a();c=d.feedback?setTimeout(n,_$_INDICATOR_TIMEOUT_$_):null;e=false}else{d={result:"signal=poll"};c=null;e=true}G=V._p_.comm.sendUpdate(ia+h,"request=jsupdate&"+d.result+"&ackId="+ca,c,ca,-1);
var _$_WT_CLASS_$_=new (function(){function v(a){if(G!=null){if(!a)a=window.event;k.condCall(G,"onmousemove",a);return false}else return true}function s(a){if(G!=null){var b=G;k.capture(null);if(!a)a=window.event;k.condCall(b,"onmouseup",a);k.cancelEvent(a,k.CancelPropagate);return false}else return true}function F(){if(!P){P=true;if(document.body.addEventListener){var a=document.body;a.addEventListener("mousemove",v,true);a.addEventListener("mouseup",s,true);k.isGecko&&window.addEventListener("mouseout",function(b){!b.relatedTarget&&k.hasTag(b.target,"HTML")&&s(b)},true)}else{a=document.body;a.attachEvent("onmousemove",v);a.attachEvent("onmouseup",s)}}}var k=this;this.arrayRemove=function(a,b,f){f=a.slice((f||b)+1||a.length);a.length=b<0?a.length+b:b;return a.push.apply(a,f)};this.isIE6=(this.isIE=navigator.userAgent.toLowerCase().indexOf("msie")!=-1&&navigator.userAgent.toLowerCase().indexOf("opera")==-1)&&navigator.userAgent.toLowerCase().indexOf("msie 6")!=-1;this.isGecko=navigator.userAgent.toLowerCase().indexOf("gecko")!=
delete u._.commands[A];}for(A in w){delete u._.menuItems[A];delete u._.commands[A];}v={};w={};var M=u.config.scayt_moreSuggestions||'on',N=false,O=u.config.scayt_maxSuggestions;typeof O!='number'&&(O=5);!O&&(O=L.length);var P=u.config.scayt_contextCommands||'all';P=P.split('|');for(var Q=0,R=L.length;Q<R;Q+=1){var S='scayt_suggestion_'+L[Q].replace(' ','_'),T=(function(X,Y){return{exec:function(){G.replace(X,Y);}};})(H,L[Q]);if(Q<O){s(u,'button_'+S,L[Q],S,T,'scayt_suggest',Q+1);K[S]=2;w[S]=2;}else if(M=='on'){s(u,'button_'+S,L[Q],S,T,'scayt_moresuggest',Q+1);v[S]=2;N=true;}}if(N){u.addMenuItem('scayt_moresuggest',{label:u.lang.scayt.moreSuggestions,group:'scayt_moresuggest',order:10,getItems:function(){return v;}});w.scayt_moresuggest=2;}if(p('all',P)||p('ignore',P)){var U={exec:function(){G.ignore(H);}};s(u,'ignore',u.lang.scayt.ignore,'scayt_ignore',U,'scayt_control',1);w.scayt_ignore=2;}if(p('all',P)||p('ignoreall',P)){var V={exec:function(){G.ignoreAll(H);}};s(u,'ignore_all',u.lang.scayt.ignoreAll,'scayt_ignore_all',V,'scayt_control',2);w.scayt_ignore_all=2;}if(p('all',P)||p('add',P)){var W={exec:function(){window.scayt.addWordToUserDictionary(H);}};s(u,'add_word',u.lang.scayt.addWord,'scayt_add_word',W,'scayt_control',3);w.scayt_add_word=2;}if(G.fireOnContextMenu)G.fireOnContextMenu(u);return w;});if(u.config.scayt_autoStartup){var F=function(){u.removeListener('showScaytState',F);x.setState(r.isScaytEnabled(u)?1:2);};u.on('showScaytState',F);u.on('instanceReady',function(){r.loadEngine(u);});}},afterInit:function(u){var v;if(u._.elementsPath&&(v=u._.elementsPath.filters))v.push(function(w){if(w.hasAttribute('scaytid'))return false;});}});})();j.add('smiley',{requires:['dialog'],init:function(l){l.config.smiley_path=l.config.smiley_path||this.path+'images/';l.addCommand('smiley',new a.dialogCommand('smiley'));l.ui.addButton('Smiley',{label:l.lang.smiley.toolbar,command:'smiley'});a.dialog.add('smiley',this.path+'dialogs/smiley.js');}});i.smiley_images=['regular_smile.gif','sad_smile.gif','wink_smile.gif','teeth_smile.gif','confused_smile.gif','tounge_smile.gif','embaressed_smile.gif','omg_smile.gif','whatchutalkingabout_smile.gif','angry_smile.gif','angel_smile.gif','shades_smile.gif','devil_smile.gif','cry_smile.gif','lightbulb.gif','thumbs_down.gif','thumbs_up.gif','heart.gif','broken_heart.gif','kiss.gif','envelope.gif'];i.smiley_descriptions=['smiley','sad','wink','laugh','frown','cheeky','blush','surprise','indecision','angry','angle','cool','devil','crying','enlightened','no','yes','heart','broken heart','kiss','mail'];
if(s.addMenuItems)s.addMenuItem(y,{label:B,command:y,group:'clipboard',order:A});};t('Cut','cut',new n('cut'),1);t('Copy','copy',new n('copy'),4);t('Paste','paste',o,8);a.dialog.add('paste',a.getUrl(this.path+'dialogs/paste.js'));s.on('key',p,s);var u=s.config.forcePasteAsPlainText?'text':'html';s.on('contentDom',function(){var x=s.document.getBody();x.on(u=='text'&&c||b.webkit?'paste':'beforepaste',function(y){if(v)return;q.call(s,y,u,function(z){if(!z)return;var A={};A[u]=z;s.fire('paste',A);});});x.on('beforecut',function(){!v&&r(s);});});if(s.contextMenu){var v;function w(x){c&&(v=1);var y=s.document.$.queryCommandEnabled(x)?2:0;v=0;return y;};s.contextMenu.addListener(function(x,y){var z=y.getCommonAncestor().isReadOnly();return{cut:!z&&w('Cut'),copy:w('Copy'),paste:!z&&(b.webkit?2:w('Paste'))};});}}});})();j.add('colorbutton',{requires:['panelbutton','floatpanel','styles'],init:function(l){var m=l.config,n=l.lang.colorButton,o;if(!b.hc){p('TextColor','fore',n.textColorTitle);p('BGColor','back',n.bgColorTitle);}function p(r,s,t){l.ui.add(r,4,{label:t,title:t,className:'cke_button_'+r.toLowerCase(),modes:{wysiwyg:1},panel:{css:l.skin.editor.css,attributes:{role:'listbox','aria-label':n.panelTitle}},onBlock:function(u,v){v.autoSize=true;v.element.addClass('cke_colorblock');v.element.setHtml(q(u,s));v.element.getDocument().getBody().setStyle('overflow','hidden');var w=v.keys,x=l.lang.dir=='rtl';w[x?37:39]='next';w[40]='next';w[9]='next';w[x?39:37]='prev';w[38]='prev';w[2000+9]='prev';w[32]='click';}});};function q(r,s){var t=[],u=m.colorButton_colors.split(','),v=u.length+(m.colorButton_enableMore?2:1),w=e.addFunction(function(C,D){if(C=='?'){var E=arguments.callee;function F(H){this.removeListener('ok',F);this.removeListener('cancel',F);H.name=='ok'&&E(this.getContentElement('picker','selectedColor').getValue(),D);};l.openDialog('colordialog',function(){this.on('ok',F);this.on('cancel',F);});return;}l.focus();r.hide();l.fire('saveSnapshot');new a.style(m['colorButton_'+D+'Style'],{color:'inherit'}).remove(l.document);if(C){var G=m['colorButton_'+D+'Style'];G.childRule=D=='back'?function(){return false;}:function(H){return H.getName()!='a';};new a.style(G,{color:C}).apply(l.document);}l.fire('saveSnapshot');});t.push('<a class="cke_colorauto" _cke_focus=1 hidefocus=true title="',n.auto,'" onclick="CKEDITOR.tools.callFunction(',w,",null,'",s,"');return false;\" href=\"javascript:void('",n.auto,'\')" role="option" aria-posinset="1" aria-setsize="',v,'"><table role="presentation" cellspacing=0 cellpadding=0 width="100%"><tr><td><span class="cke_colorbox" style="background-color:#000"></span></td><td colspan=7 align=center>',n.auto,'</td></tr></table></a><table role="presentation" cellspacing=0 cellpadding=0 width="100%">');
delete u._.commands[A];}for(A in w){delete u._.menuItems[A];delete u._.commands[A];}v={};w={};var M=u.config.scayt_moreSuggestions||'on',N=false,O=u.config.scayt_maxSuggestions;typeof O!='number'&&(O=5);!O&&(O=L.length);var P=u.config.scayt_contextCommands||'all';P=P.split('|');for(var Q=0,R=L.length;Q<R;Q+=1){var S='scayt_suggestion_'+L[Q].replace(' ','_'),T=(function(X,Y){return{exec:function(){G.replace(X,Y);}};})(H,L[Q]);if(Q<O){s(u,'button_'+S,L[Q],S,T,'scayt_suggest',Q+1);K[S]=2;w[S]=2;}else if(M=='on'){s(u,'button_'+S,L[Q],S,T,'scayt_moresuggest',Q+1);v[S]=2;N=true;}}if(N){u.addMenuItem('scayt_moresuggest',{label:u.lang.scayt.moreSuggestions,group:'scayt_moresuggest',order:10,getItems:function(){return v;}});w.scayt_moresuggest=2;}if(p('all',P)||p('ignore',P)){var U={exec:function(){G.ignore(H);}};s(u,'ignore',u.lang.scayt.ignore,'scayt_ignore',U,'scayt_control',1);w.scayt_ignore=2;}if(p('all',P)||p('ignoreall',P)){var V={exec:function(){G.ignoreAll(H);}};s(u,'ignore_all',u.lang.scayt.ignoreAll,'scayt_ignore_all',V,'scayt_control',2);w.scayt_ignore_all=2;}if(p('all',P)||p('add',P)){var W={exec:function(){window.scayt.addWordToUserDictionary(H);}};s(u,'add_word',u.lang.scayt.addWord,'scayt_add_word',W,'scayt_control',3);w.scayt_add_word=2;}if(G.fireOnContextMenu)G.fireOnContextMenu(u);return w;});if(u.config.scayt_autoStartup){var F=function(){u.removeListener('showScaytState',F);x.setState(r.isScaytEnabled(u)?1:2);};u.on('showScaytState',F);u.on('instanceReady',function(){r.loadEngine(u);});}},afterInit:function(u){var v;if(u._.elementsPath&&(v=u._.elementsPath.filters))v.push(function(w){if(w.hasAttribute('scaytid'))return false;});}});})();j.add('smiley',{requires:['dialog'],init:function(l){l.config.smiley_path=l.config.smiley_path||this.path+'images/';l.addCommand('smiley',new a.dialogCommand('smiley'));l.ui.addButton('Smiley',{label:l.lang.smiley.toolbar,command:'smiley'});a.dialog.add('smiley',this.path+'dialogs/smiley.js');}});i.smiley_images=['regular_smile.gif','sad_smile.gif','wink_smile.gif','teeth_smile.gif','confused_smile.gif','tounge_smile.gif','embaressed_smile.gif','omg_smile.gif','whatchutalkingabout_smile.gif','angry_smile.gif','angel_smile.gif','shades_smile.gif','devil_smile.gif','cry_smile.gif','lightbulb.gif','thumbs_down.gif','thumbs_up.gif','heart.gif','broken_heart.gif','kiss.gif','envelope.gif'];i.smiley_descriptions=['smiley','sad','wink','laugh','frown','cheeky','blush','surprise','indecision','angry','angle','cool','devil','crying','enlightened','no','yes','heart','broken heart','kiss','mail'];
if (panes.eq(i).is(":visible")) { return; }
fade: function(i, done) { var conf = this.getConf(), speed = conf.fadeOutSpeed, panes = this.getPanes(); if (panes.eq(i).is(":visible")) { return; } if (speed) { panes.fadeOut(speed); } else { panes.hide(); } panes.eq(i).fadeIn(conf.fadeInSpeed, done); },
if (panes.eq(i).is(":visible")) { return; }
fade: function(i, done) { var conf = this.getConf(), speed = conf.fadeOutSpeed, panes = this.getPanes(); if (speed) { panes.fadeOut(speed); } else { panes.hide(); } panes.eq(i).fadeIn(conf.fadeInSpeed, done); },
var errorOptions = { hideErrorStatus : true }; Sonatype.utils.connectionError(response, 'There is a problem retrieving your username.', false, errorOptions) }
Sonatype.utils.clearCookie('JSESSIONID'); Sonatype.utils.authToken = null; if (activeWindow) { activeWindow.getEl().unmask(); } if (Sonatype.repoServer.RepoServer.loginWindow.isVisible()) { Sonatype.repoServer.RepoServer.loginForm.find('name', 'password')[0].focus(true); } }
failure : function(response, options) { var errorOptions = { hideErrorStatus : true }; Sonatype.utils.connectionError(response, 'There is a problem retrieving your username.', false, errorOptions) }
Sonatype.MessageBox.hide();
failure : function(response){ this.response = response; if (response.status == 400 && this.options.autoValidation){ //validation error this.success(response); Sonatype.MessageBox.hide(); return; } this.failureType = Ext.form.Action.CONNECT_FAILURE; this.form.afterAction(this, false); },
if(x.type!=CKEDITOR.NODE_ELEMENT)x=x.getParent();x.scrollIntoView();y.updateFromDomRange(w);},removeHighlight:function(){var w=this;if(!w._.highlightRange)return;j.removeFromRange(w._.highlightRange);w.updateFromDomRange(w._.highlightRange);w._.highlightRange=null;},moveBack:function(){var y=this;var w=y._.walker.back(),x=y._.cursors;if(w.hitMatchBoundary)y._.cursors=x=[];x.unshift(w);if(x.length>y._.rangeLength)x.pop();return w;},moveNext:function(){var y=this;var w=y._.walker.next(),x=y._.cursors;if(w.hitMatchBoundary)y._.cursors=x=[];x.push(w);if(x.length>y._.rangeLength)x.shift();return w;},getEndCharacter:function(){var w=this._.cursors;if(w.length<1)return null;return w[w.length-1].character;},getNextCharacterRange:function(w){var x,y,z=this._.cursors;if(x=z[z.length-1])y=new k(m(x));else y=this._.walker;return new l(y,w);},getCursors:function(){return this._.cursors;}};function m(w,x){var y=new CKEDITOR.dom.range();y.setStart(w.textNode,x?w.offset:w.offset+1);y.setEndAt(h.document.getBody(),CKEDITOR.POSITION_BEFORE_END);return y;};function n(w){var x=new CKEDITOR.dom.range();x.setStartAt(h.document.getBody(),CKEDITOR.POSITION_AFTER_START);x.setEnd(w.textNode,w.offset);return x;};var o=0,p=1,q=2,r=function(w,x){var y=[-1];if(x)w=w.toLowerCase();for(var z=0;z<w.length;z++){y.push(y[z]+1);while(y[z+1]>0&&w.charAt(z)!=w.charAt(y[z+1]-1))y[z+1]=y[y[z+1]-1]+1;}this._={overlap:y,state:0,ignoreCase:!!x,pattern:w};};r.prototype={feedCharacter:function(w){var x=this;if(x._.ignoreCase)w=w.toLowerCase();for(;;){if(w==x._.pattern.charAt(x._.state)){x._.state++;if(x._.state==x._.pattern.length){x._.state=0;return q;}return p;}else if(!x._.state)return o;else x._.state=x._.overlap[x._.state];}return null;},reset:function(){this._.state=0;}};var s=/[.,"'?!;: \u0085\u00a0\u1680\u280e\u2028\u2029\u202f\u205f\u3000]/,t=function(w){if(!w)return true;var x=w.charCodeAt(0);return x>=9&&x<=13||x>=8192&&x<=8202||s.test(w);},u={searchRange:null,matchRange:null,find:function(w,x,y,z,A,B){var K=this;if(!K.matchRange)K.matchRange=new l(new k(K.searchRange),w.length);else{K.matchRange.removeHighlight();K.matchRange=K.matchRange.getNextCharacterRange(w.length);}var C=new r(w,!x),D=o,E='%';while(E!==null){K.matchRange.moveNext();while(E=K.matchRange.getEndCharacter()){D=C.feedCharacter(E);if(D==q)break;if(K.matchRange.moveNext().hitMatchBoundary)C.reset();}if(D==q){if(y){var F=K.matchRange.getCursors(),G=F[F.length-1],H=F[0],I=new k(n(H),true),J=new k(m(G),true);if(!(t(I.back().character)&&t(J.next().character)))continue;
k.applyToRange(x);x.moveToBookmark(y);A._.highlightRange=x;var z=x.startContainer;if(z.type!=CKEDITOR.NODE_ELEMENT)z=z.getParent();z.scrollIntoView();A.updateFromDomRange(x);},removeHighlight:function(){var y=this;if(!y._.highlightRange)return;var x=y._.highlightRange.createBookmark();k.removeFromRange(y._.highlightRange);y._.highlightRange.moveToBookmark(x);y.updateFromDomRange(y._.highlightRange);y._.highlightRange=null;},isReadOnly:function(){if(!this._.highlightRange)return 0;return this._.highlightRange.startContainer.isReadOnly();},moveBack:function(){var z=this;var x=z._.walker.back(),y=z._.cursors;if(x.hitMatchBoundary)z._.cursors=y=[];y.unshift(x);if(y.length>z._.rangeLength)y.pop();return x;},moveNext:function(){var z=this;var x=z._.walker.next(),y=z._.cursors;if(x.hitMatchBoundary)z._.cursors=y=[];y.push(x);if(y.length>z._.rangeLength)y.shift();return x;},getEndCharacter:function(){var x=this._.cursors;if(x.length<1)return null;return x[x.length-1].character;},getNextCharacterRange:function(x){var y,z,A=this._.cursors;if((y=A[A.length-1])&&y.textNode)z=new l(n(y));else z=this._.walker;return new m(z,x);},getCursors:function(){return this._.cursors;}};function n(x,y){var z=new CKEDITOR.dom.range();z.setStart(x.textNode,y?x.offset:x.offset+1);z.setEndAt(i.document.getBody(),CKEDITOR.POSITION_BEFORE_END);return z;};function o(x){var y=new CKEDITOR.dom.range();y.setStartAt(i.document.getBody(),CKEDITOR.POSITION_AFTER_START);y.setEnd(x.textNode,x.offset);return y;};var p=0,q=1,r=2,s=function(x,y){var z=[-1];if(y)x=x.toLowerCase();for(var A=0;A<x.length;A++){z.push(z[A]+1);while(z[A+1]>0&&x.charAt(A)!=x.charAt(z[A+1]-1))z[A+1]=z[z[A+1]-1]+1;}this._={overlap:z,state:0,ignoreCase:!!y,pattern:x};};s.prototype={feedCharacter:function(x){var y=this;if(y._.ignoreCase)x=x.toLowerCase();for(;;){if(x==y._.pattern.charAt(y._.state)){y._.state++;if(y._.state==y._.pattern.length){y._.state=0;return r;}return q;}else if(!y._.state)return p;else y._.state=y._.overlap[y._.state];}return null;},reset:function(){this._.state=0;}};var t=/[.,"'?!;: \u0085\u00a0\u1680\u280e\u2028\u2029\u202f\u205f\u3000]/,u=function(x){if(!x)return true;var y=x.charCodeAt(0);return y>=9&&y<=13||y>=8192&&y<=8202||t.test(x);},v={searchRange:null,matchRange:null,find:function(x,y,z,A,B,C){var L=this;if(!L.matchRange)L.matchRange=new m(new l(L.searchRange),x.length);else{L.matchRange.removeHighlight();L.matchRange=L.matchRange.getNextCharacterRange(x.length);}var D=new s(x,!y),E=p,F='%';while(F!==null){L.matchRange.moveNext();
if(x.type!=CKEDITOR.NODE_ELEMENT)x=x.getParent();x.scrollIntoView();y.updateFromDomRange(w);},removeHighlight:function(){var w=this;if(!w._.highlightRange)return;j.removeFromRange(w._.highlightRange);w.updateFromDomRange(w._.highlightRange);w._.highlightRange=null;},moveBack:function(){var y=this;var w=y._.walker.back(),x=y._.cursors;if(w.hitMatchBoundary)y._.cursors=x=[];x.unshift(w);if(x.length>y._.rangeLength)x.pop();return w;},moveNext:function(){var y=this;var w=y._.walker.next(),x=y._.cursors;if(w.hitMatchBoundary)y._.cursors=x=[];x.push(w);if(x.length>y._.rangeLength)x.shift();return w;},getEndCharacter:function(){var w=this._.cursors;if(w.length<1)return null;return w[w.length-1].character;},getNextCharacterRange:function(w){var x,y,z=this._.cursors;if(x=z[z.length-1])y=new k(m(x));else y=this._.walker;return new l(y,w);},getCursors:function(){return this._.cursors;}};function m(w,x){var y=new CKEDITOR.dom.range();y.setStart(w.textNode,x?w.offset:w.offset+1);y.setEndAt(h.document.getBody(),CKEDITOR.POSITION_BEFORE_END);return y;};function n(w){var x=new CKEDITOR.dom.range();x.setStartAt(h.document.getBody(),CKEDITOR.POSITION_AFTER_START);x.setEnd(w.textNode,w.offset);return x;};var o=0,p=1,q=2,r=function(w,x){var y=[-1];if(x)w=w.toLowerCase();for(var z=0;z<w.length;z++){y.push(y[z]+1);while(y[z+1]>0&&w.charAt(z)!=w.charAt(y[z+1]-1))y[z+1]=y[y[z+1]-1]+1;}this._={overlap:y,state:0,ignoreCase:!!x,pattern:w};};r.prototype={feedCharacter:function(w){var x=this;if(x._.ignoreCase)w=w.toLowerCase();for(;;){if(w==x._.pattern.charAt(x._.state)){x._.state++;if(x._.state==x._.pattern.length){x._.state=0;return q;}return p;}else if(!x._.state)return o;else x._.state=x._.overlap[x._.state];}return null;},reset:function(){this._.state=0;}};var s=/[.,"'?!;: \u0085\u00a0\u1680\u280e\u2028\u2029\u202f\u205f\u3000]/,t=function(w){if(!w)return true;var x=w.charCodeAt(0);return x>=9&&x<=13||x>=8192&&x<=8202||s.test(w);},u={searchRange:null,matchRange:null,find:function(w,x,y,z,A,B){var K=this;if(!K.matchRange)K.matchRange=new l(new k(K.searchRange),w.length);else{K.matchRange.removeHighlight();K.matchRange=K.matchRange.getNextCharacterRange(w.length);}var C=new r(w,!x),D=o,E='%';while(E!==null){K.matchRange.moveNext();while(E=K.matchRange.getEndCharacter()){D=C.feedCharacter(E);if(D==q)break;if(K.matchRange.moveNext().hitMatchBoundary)C.reset();}if(D==q){if(y){var F=K.matchRange.getCursors(),G=F[F.length-1],H=F[0],I=new k(n(H),true),J=new k(m(G),true);if(!(t(I.back().character)&&t(J.next().character)))continue;
this.next()}else a=false;return a},readAsObject:function(){var a={},b=this.fields,d,c;for(d in b)if(b.hasOwnProperty(d)){c=b[d];a[d]=c.getter.call(this)}return a},fetchAsObject:function(){var a;if(this.hasMoreRows()){a=this.readAsObject();this.next()}else a=false;return a},fetchCustom:function(a){if(this.hasMoreRows()){a=a.call(this);this.next()}else a=false;return a},fetchAllAsArray:function(a){var b;for(a||(a=[]);b=this.fetchAsArray();)a.push(b);return a},fetchAllAsObject:function(a){var b;for(a||
this.readAsArray();this.next()}else a=false;return a},readAsObject:function(){var a={},b=this.fields,d,c;for(d in b)if(b.hasOwnProperty(d)){c=b[d];a[d]=c.getter.call(this)}return a},fetchAsObject:function(){var a;if(this.hasMoreRows()){a=this.readAsObject();this.next()}else a=false;return a},fetchCustom:function(a){if(this.hasMoreRows()){a=a.call(this);this.next()}else a=false;return a},fetchAllAsArray:function(a){var b;for(a||(a=[]);b=this.fetchAsArray();)a.push(b);return a},fetchAllAsObject:function(a){var b;
this.next()}else a=false;return a},readAsObject:function(){var a={},b=this.fields,d,c;for(d in b)if(b.hasOwnProperty(d)){c=b[d];a[d]=c.getter.call(this)}return a},fetchAsObject:function(){var a;if(this.hasMoreRows()){a=this.readAsObject();this.next()}else a=false;return a},fetchCustom:function(a){if(this.hasMoreRows()){a=a.call(this);this.next()}else a=false;return a},fetchAllAsArray:function(a){var b;for(a||(a=[]);b=this.fetchAsArray();)a.push(b);return a},fetchAllAsObject:function(a){var b;for(a||
this.next()}else a=false;return a},readAsObject:function(){var a={},b=this.fields,d,c;for(d in b)if(b.hasOwnProperty(d)){c=b[d];a[d]=c.getter.call(this)}return a},fetchAsObject:function(){var a;if(this.hasMoreRows()){a=this.readAsObject();this.next()}else a=false;return a},fetchCustom:function(a){if(this.hasMoreRows()){a=a.call(this);this.next()}else a=false;return a},fetchAllAsArray:function(a){var b;for(a||(a=[]);b=this.fetchAsArray();)a.push(b);return a},fetchAllAsObject:function(a){var b;for(a|| (a=[]);b=this.fetchAsObject();)a.push(b);return a},fetchAllCustom:function(a,b){var d;for(a||(a=[]);d=this.fetchCustom(b);)a.push(d);return a},mapAsObject:function(a,b,d){var c,e;a=a;for(var f=0,g=b.length,i=g-1;f<g;f++){c=b[f];c=d[c];if(e=a[c])if(f===i)if(e instanceof Array)e.push(d);else a[c]=[e,d];else a=e;else if(f===i)a[c]=d;else a=a[c]={}}},mapAllAsObject:function(a,b){b||(b={});a||(a=this.getKey());for(var d;d=this.fetchAsObject();)this.mapAsObject(b,a,d);return b},getKey:function(){var a;
this.readAsArray();this.next()}else a=false;return a},readAsObject:function(){var a={},b=this.fields,d,c;for(d in b)if(b.hasOwnProperty(d)){c=b[d];a[d]=c.getter.call(this)}return a},fetchAsObject:function(){var a;if(this.hasMoreRows()){a=this.readAsObject();this.next()}else a=false;return a},fetchCustom:function(a){if(this.hasMoreRows()){a=a.call(this);this.next()}else a=false;return a},fetchAllAsArray:function(a){var b;for(a||(a=[]);b=this.fetchAsArray();)a.push(b);return a},fetchAllAsObject:function(a){var b; for(a||(a=[]);b=this.fetchAsObject();)a.push(b);return a},fetchAllCustom:function(a,b){var d;for(a||(a=[]);d=this.fetchCustom(b);)a.push(d);return a},mapAsObject:function(a,b,d){var c,e,h=b.length,f=h-1,i=a;for(a=0;a<h;a+=1){c=b[a];c=d[c];if(e=i[c])if(a===f)if(e instanceof Array)e.push(d);else i[c]=[e,d];else i=e;else if(a===f)i[c]=d;else i=i[c]={}}},mapAllAsObject:function(a,b){b||(b={});a||(a=this.getKey());for(var d;d=this.fetchAsObject();)this.mapAsObject(b,a,d);return b},getKey:function(){var a;
this.next()}else a=false;return a},readAsObject:function(){var a={},b=this.fields,d,c;for(d in b)if(b.hasOwnProperty(d)){c=b[d];a[d]=c.getter.call(this)}return a},fetchAsObject:function(){var a;if(this.hasMoreRows()){a=this.readAsObject();this.next()}else a=false;return a},fetchCustom:function(a){if(this.hasMoreRows()){a=a.call(this);this.next()}else a=false;return a},fetchAllAsArray:function(a){var b;for(a||(a=[]);b=this.fetchAsArray();)a.push(b);return a},fetchAllAsObject:function(a){var b;for(a||(a=[]);b=this.fetchAsObject();)a.push(b);return a},fetchAllCustom:function(a,b){var d;for(a||(a=[]);d=this.fetchCustom(b);)a.push(d);return a},mapAsObject:function(a,b,d){var c,e;a=a;for(var f=0,g=b.length,i=g-1;f<g;f++){c=b[f];c=d[c];if(e=a[c])if(f===i)if(e instanceof Array)e.push(d);else a[c]=[e,d];else a=e;else if(f===i)a[c]=d;else a=a[c]={}}},mapAllAsObject:function(a,b){b||(b={});a||(a=this.getKey());for(var d;d=this.fetchAsObject();)this.mapAsObject(b,a,d);return b},getKey:function(){var a;
(a=[]);b=this.fetchAsObject();)a.push(b);return a},fetchAllCustom:function(a,b){var d;for(a||(a=[]);d=this.fetchCustom(b);)a.push(d);return a},mapAsObject:function(a,b,d){var c,e;a=a;for(var f=0,g=b.length,i=g-1;f<g;f++){c=b[f];c=d[c];if(e=a[c])if(f===i)if(e instanceof Array)e.push(d);else a[c]=[e,d];else a=e;else if(f===i)a[c]=d;else a=a[c]={}}},mapAllAsObject:function(a,b){b||(b={});a||(a=this.getKey());for(var d;d=this.fetchAsObject();)this.mapAsObject(b,a,d);return b},getKey:function(){var a;
for(a||(a=[]);b=this.fetchAsObject();)a.push(b);return a},fetchAllCustom:function(a,b){var d;for(a||(a=[]);d=this.fetchCustom(b);)a.push(d);return a},mapAsObject:function(a,b,d){var c,e,h=b.length,f=h-1,i=a;for(a=0;a<h;a+=1){c=b[a];c=d[c];if(e=i[c])if(a===f)if(e instanceof Array)e.push(d);else i[c]=[e,d];else i=e;else if(a===f)i[c]=d;else i=i[c]={}}},mapAllAsObject:function(a,b){b||(b={});a||(a=this.getKey());for(var d;d=this.fetchAsObject();)this.mapAsObject(b,a,d);return b},getKey:function(){var a;
(a=[]);b=this.fetchAsObject();)a.push(b);return a},fetchAllCustom:function(a,b){var d;for(a||(a=[]);d=this.fetchCustom(b);)a.push(d);return a},mapAsObject:function(a,b,d){var c,e;a=a;for(var f=0,g=b.length,i=g-1;f<g;f++){c=b[f];c=d[c];if(e=a[c])if(f===i)if(e instanceof Array)e.push(d);else a[c]=[e,d];else a=e;else if(f===i)a[c]=d;else a=a[c]={}}},mapAllAsObject:function(a,b){b||(b={});a||(a=this.getKey());for(var d;d=this.fetchAsObject();)this.mapAsObject(b,a,d);return b},getKey:function(){var a;
this.fieldOrder[a];j(b)&&Xmla.Exception._newError("INVALID_FIELD","Xmla.Rowset.fieldDef",a)._throw();return b},fieldVal:function(a){if(O(a))a=this.fieldName(a);a=this.fieldDef(a);return a.getter.call(this)},fieldCount:function(){return this._fieldCount},close:function(){this.rows=this.row=null},readAsArray:function(){var a=[],b=this.fields,d,c;for(d in b)if(b.hasOwnProperty(d)){c=b[d];a[c.index]=c.getter.call(this)}return a},fetchAsArray:function(){var a;if(this.hasMoreRows()){a=this.readAsArray(); this.next()}else a=false;return a},readAsObject:function(){var a={},b=this.fields,d,c;for(d in b)if(b.hasOwnProperty(d)){c=b[d];a[d]=c.getter.call(this)}return a},fetchAsObject:function(){var a;if(this.hasMoreRows()){a=this.readAsObject();this.next()}else a=false;return a},fetchCustom:function(a){if(this.hasMoreRows()){a=a.call(this);this.next()}else a=false;return a},fetchAllAsArray:function(a){var b;for(a||(a=[]);b=this.fetchAsArray();)a.push(b);return a},fetchAllAsObject:function(a){var b;for(a||
fieldName:function(a){var b=this.fieldOrder[a];j(b)&&Xmla.Exception._newError("INVALID_FIELD","Xmla.Rowset.fieldDef",a)._throw();return b},fieldVal:function(a){if(O(a))a=this.fieldName(a);a=this.fieldDef(a);return a.getter.call(this)},fieldCount:function(){return this._fieldCount},close:function(){this.rows=this.row=null},readAsArray:function(){var a=[],b=this.fields,d,c;for(d in b)if(b.hasOwnProperty(d)){c=b[d];a[c.index]=c.getter.call(this)}return a},fetchAsArray:function(){var a;if(this.hasMoreRows()){a= this.readAsArray();this.next()}else a=false;return a},readAsObject:function(){var a={},b=this.fields,d,c;for(d in b)if(b.hasOwnProperty(d)){c=b[d];a[d]=c.getter.call(this)}return a},fetchAsObject:function(){var a;if(this.hasMoreRows()){a=this.readAsObject();this.next()}else a=false;return a},fetchCustom:function(a){if(this.hasMoreRows()){a=a.call(this);this.next()}else a=false;return a},fetchAllAsArray:function(a){var b;for(a||(a=[]);b=this.fetchAsArray();)a.push(b);return a},fetchAllAsObject:function(a){var b;
this.fieldOrder[a];j(b)&&Xmla.Exception._newError("INVALID_FIELD","Xmla.Rowset.fieldDef",a)._throw();return b},fieldVal:function(a){if(O(a))a=this.fieldName(a);a=this.fieldDef(a);return a.getter.call(this)},fieldCount:function(){return this._fieldCount},close:function(){this.rows=this.row=null},readAsArray:function(){var a=[],b=this.fields,d,c;for(d in b)if(b.hasOwnProperty(d)){c=b[d];a[c.index]=c.getter.call(this)}return a},fetchAsArray:function(){var a;if(this.hasMoreRows()){a=this.readAsArray();this.next()}else a=false;return a},readAsObject:function(){var a={},b=this.fields,d,c;for(d in b)if(b.hasOwnProperty(d)){c=b[d];a[d]=c.getter.call(this)}return a},fetchAsObject:function(){var a;if(this.hasMoreRows()){a=this.readAsObject();this.next()}else a=false;return a},fetchCustom:function(a){if(this.hasMoreRows()){a=a.call(this);this.next()}else a=false;return a},fetchAllAsArray:function(a){var b;for(a||(a=[]);b=this.fetchAsArray();)a.push(b);return a},fetchAllAsObject:function(a){var b;for(a||
panel.grid.store.on( 'load', function( store, records, options ) { store.sort( 'version', 'desc' ); }, this );
panel.grid.store.on( 'load', this.sortResults, this ); } else { panel.grid.store.un( 'load', this.sortResults, this );
fetchRecords : function(panel, reverse) { panel.artifactContainer.collapsePanel(); panel.grid.totalRecords = 0; panel.grid.store.load(); if ( reverse ) { panel.grid.store.on( 'load', function( store, records, options ) { store.sort( 'version', 'desc' ); }, this ); } },
bboxSrs : 'http:
bboxSrs : 'EPSG:4326',
var fetchVisibleMapBounds = function(gMapInstance) { var mapBounds = gMapInstance.getBounds(); var sw = mapBounds.getSouthWest(); var ne = mapBounds.getNorthEast(); var center = mapBounds.getCenter(); var adjustedSWLng = sw.lng(); var adjustedNELng = ne.lng(); //this is so we can fetch data when our bbox is crossing the anti meridian //Otherwise our bbox wraps around the WRONG side of the planet if (adjustedSWLng <= 0 && adjustedNELng >= 0 || adjustedSWLng >= 0 && adjustedNELng <= 0) { adjustedSWLng = (sw.lng() < 0) ? (180 - sw.lng()) : sw.lng(); adjustedNELng = (ne.lng() < 0) ? (180 - ne.lng()) : ne.lng(); } return { bboxSrs : 'http://www.opengis.net/gml/srs/epsg.xml#4326', lowerCornerPoints : [Math.min(adjustedSWLng, adjustedNELng), Math.min(sw.lat(), ne.lat())], upperCornerPoints : [Math.max(adjustedSWLng, adjustedNELng), Math.max(sw.lat(), ne.lat())] }; };
bboxSrs : 'EPSG:4326',
bboxSrs : 'http:
var fetchVisibleMapBounds = function(gMapInstance) { var mapBounds = gMapInstance.getBounds(); var sw = mapBounds.getSouthWest(); var ne = mapBounds.getNorthEast(); var center = mapBounds.getCenter(); var adjustedSWLng = sw.lng(); var adjustedNELng = ne.lng(); //this is so we can fetch data when our bbox is crossing the anti meridian //Otherwise our bbox wraps around the WRONG side of the planet if (adjustedSWLng <= 0 && adjustedNELng >= 0 || adjustedSWLng >= 0 && adjustedNELng <= 0) { adjustedSWLng = (sw.lng() < 0) ? (180 - sw.lng()) : sw.lng(); adjustedNELng = (ne.lng() < 0) ? (180 - ne.lng()) : ne.lng(); } return { bboxSrs : 'EPSG:4326', lowerCornerPoints : [Math.min(adjustedSWLng, adjustedNELng), Math.min(sw.lat(), ne.lat())], upperCornerPoints : [Math.max(adjustedSWLng, adjustedNELng), Math.max(sw.lat(), ne.lat())] }; };
$this.updateReleaseSummary($(this).parents('fieldset:first'));
if ($(this).parents('#meta-fields').length == 0) { $this.updateReleaseSummary($(this).parents('fieldset:first')); }
fieldChanged: function (ev) { $this.updateReleaseSummary($(this).parents('fieldset:first')); $this.scheduleSavePlugin(); return true; },
hasMoreRows:function(){return this.numRows>this.rowIndex},next:function(){this.row=this.rows.item(++this.rowIndex)},curr:function(){return this.rowIndex},rowCount:function(){return this.numRows},reset:function(){this.rowIndex=0;this.row=this.hasMoreRows()?this.rows.item(this.rowIndex):null},fieldDef:function(a){var b=this.fields[a];j(b)&&Xmla.Exception._newError("INVALID_FIELD","Xmla.Rowset.fieldDef",a)._throw();return b},fieldIndex:function(a){a=this.fieldDef(a);return a.index},fieldName:function(a){var b= this.fieldOrder[a];j(b)&&Xmla.Exception._newError("INVALID_FIELD","Xmla.Rowset.fieldDef",a)._throw();return b},fieldVal:function(a){if(O(a))a=this.fieldName(a);a=this.fieldDef(a);return a.getter.call(this)},fieldCount:function(){return this._fieldCount},close:function(){this.rows=this.row=null},readAsArray:function(){var a=[],b=this.fields,d,c;for(d in b)if(b.hasOwnProperty(d)){c=b[d];a[c.index]=c.getter.call(this)}return a},fetchAsArray:function(){var a;if(this.hasMoreRows()){a=this.readAsArray();
fieldName:function(a){var b=this.fieldOrder[a];j(b)&&Xmla.Exception._newError("INVALID_FIELD","Xmla.Rowset.fieldDef",a)._throw();return b},fieldVal:function(a){if(O(a))a=this.fieldName(a);a=this.fieldDef(a);return a.getter.call(this)},fieldCount:function(){return this._fieldCount},close:function(){this.rows=this.row=null},readAsArray:function(){var a=[],b=this.fields,d,c;for(d in b)if(b.hasOwnProperty(d)){c=b[d];a[c.index]=c.getter.call(this)}return a},fetchAsArray:function(){var a;if(this.hasMoreRows()){a=
hasMoreRows:function(){return this.numRows>this.rowIndex},next:function(){this.row=this.rows.item(++this.rowIndex)},curr:function(){return this.rowIndex},rowCount:function(){return this.numRows},reset:function(){this.rowIndex=0;this.row=this.hasMoreRows()?this.rows.item(this.rowIndex):null},fieldDef:function(a){var b=this.fields[a];j(b)&&Xmla.Exception._newError("INVALID_FIELD","Xmla.Rowset.fieldDef",a)._throw();return b},fieldIndex:function(a){a=this.fieldDef(a);return a.index},fieldName:function(a){var b=this.fieldOrder[a];j(b)&&Xmla.Exception._newError("INVALID_FIELD","Xmla.Rowset.fieldDef",a)._throw();return b},fieldVal:function(a){if(O(a))a=this.fieldName(a);a=this.fieldDef(a);return a.getter.call(this)},fieldCount:function(){return this._fieldCount},close:function(){this.rows=this.row=null},readAsArray:function(){var a=[],b=this.fields,d,c;for(d in b)if(b.hasOwnProperty(d)){c=b[d];a[c.index]=c.getter.call(this)}return a},fetchAsArray:function(){var a;if(this.hasMoreRows()){a=this.readAsArray();
Application.activeWindow.activeTab.document.defaultView, docURI);
gBrowser.contentDocument.defaultView, docURI);
KFILM.prototype.fill = function (usernameName,usernameValue, actionURL,usernameID,formID,uniqueID,docURI){ var fillDocumentDataStorage = {}; fillDocumentDataStorage.usernameName = usernameName; fillDocumentDataStorage.usernameValue = usernameValue; fillDocumentDataStorage.actionURL = actionURL; fillDocumentDataStorage.usernameID = usernameID; fillDocumentDataStorage.formID = formID; fillDocumentDataStorage.uniqueID = uniqueID; fillDocumentDataStorage.docURI = docURI; fillDocumentDataStorage.gBrowser = keefox_org.toolbar._currentWindow.gBrowser; fillDocumentDataStorage.doc = this._findDocumentByURI( Application.activeWindow.activeTab.document.defaultView, docURI); //TODO:FF4: Application use this.findLogins(fillDocumentDataStorage.URL, fillDocumentDataStorage.actionURL, null, fillDocumentDataStorage.uniqueID, this.fillFindLoginsComplete, fillDocumentDataStorage);};
KFLog.debug("fillCurrentDocument start");
fillCurrentDocument : function () { var currentGBrowser = this._currentWindow.gBrowser; //var currentTab = currentGBrowser.mTabs[currentGBrowser.getBrowserIndexForDocument(currentGBrowser.selectedBrowser.contentDocument)]; this.setLogins(null, null); this._currentWindow.keefox_org.ILM._fillDocument(currentGBrowser.selectedBrowser.contentDocument, false); },
this.setLogins(null, null);
fillCurrentDocument : function () { var currentGBrowser = this._currentWindow.gBrowser; //var currentTab = currentGBrowser.mTabs[currentGBrowser.getBrowserIndexForDocument(currentGBrowser.selectedBrowser.contentDocument)]; this._currentWindow.keeFoxILM._fillDocument(currentGBrowser.selectedBrowser.contentDocument, false); }
}
},
fillCurrentDocument : function () { var currentGBrowser = this._currentWindow.gBrowser; //var currentTab = currentGBrowser.mTabs[currentGBrowser.getBrowserIndexForDocument(currentGBrowser.selectedBrowser.contentDocument)]; this.setLogins(null, null); this._currentWindow.keeFoxILM._fillDocument(currentGBrowser.selectedBrowser.contentDocument, false); }
"");j=o.find[s](n,f,i);if(j!=null){c=c.replace(o.match[s],"");break}}}}j||(j=f.getElementsByTagName("*"));return{set:j,expr:c}};p.filter=function(c,f,i,j){for(var n=c,m=[],t=f,s,u,J=f&&f[0]&&P(f[0]);c&&f.length;){for(var C in o.filter)if((s=o.match[C].exec(c))!=null){var F=o.filter[C],D,z;u=false;if(t===m)m=[];if(o.preFilter[C])if(s=o.preFilter[C](s,t,i,m,j,J)){if(s===true)continue}else u=D=true;if(s)for(var Q=0;(z=t[Q])!=null;Q++)if(z){D=F(z,s,Q,t);var ga=j^!!D;if(i&&D!=null)if(ga)u=true;else t[Q]= false;else if(ga){m.push(z);u=true}}if(D!==v){i||(t=m);c=c.replace(o.match[C],"");if(!u)return[];break}}if(c===n)if(u==null)throw"Syntax error, unrecognized expression: "+c;else break;n=c}return t};var o=p.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,
"");j=o.find[s](n,g,i);if(j!=null){d=d.replace(o.match[s],"");break}}}}j||(j=g.getElementsByTagName("*"));return{set:j,expr:d}};p.filter=function(d,g,i,j){for(var n=d,m=[],t=g,s,u,J=g&&g[0]&&P(g[0]);d&&g.length;){for(var C in o.filter)if((s=o.leftMatch[C].exec(d))!=null&&s[2]){var F=o.filter[C],D,y;y=s[1];u=false;s.splice(1,1);if(y.substr(y.length-1)!=="\\"){if(t===m)m=[];if(o.preFilter[C])if(s=o.preFilter[C](s,t,i,m,j,J)){if(s===true)continue}else u=D=true;if(s)for(var Q=0;(y=t[Q])!=null;Q++)if(y){D= F(y,s,Q,t);var ga=j^!!D;if(i&&D!=null)if(ga)u=true;else t[Q]=false;else if(ga){m.push(y);u=true}}if(D!==v){i||(t=m);d=d.replace(o.match[C],"");if(!u)return[];break}}}if(d===n)if(u==null)throw"Syntax error, unrecognized expression: "+d;else break;n=d}return t};var o=p.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,
"");j=o.find[s](n,f,i);if(j!=null){c=c.replace(o.match[s],"");break}}}}j||(j=f.getElementsByTagName("*"));return{set:j,expr:c}};p.filter=function(c,f,i,j){for(var n=c,m=[],t=f,s,u,J=f&&f[0]&&P(f[0]);c&&f.length;){for(var C in o.filter)if((s=o.match[C].exec(c))!=null){var F=o.filter[C],D,z;u=false;if(t===m)m=[];if(o.preFilter[C])if(s=o.preFilter[C](s,t,i,m,j,J)){if(s===true)continue}else u=D=true;if(s)for(var Q=0;(z=t[Q])!=null;Q++)if(z){D=F(z,s,Q,t);var ga=j^!!D;if(i&&D!=null)if(ga)u=true;else t[Q]=false;else if(ga){m.push(z);u=true}}if(D!==v){i||(t=m);c=c.replace(o.match[C],"");if(!u)return[];break}}if(c===n)if(u==null)throw"Syntax error, unrecognized expression: "+c;else break;n=c}return t};var o=p.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,
};(function(){var l=function(m,n){m=m[0];n=n[0];return m<n?-1:m>n?1:0;};a.htmlParser.element.prototype={type:1,add:a.htmlParser.fragment.prototype.add,clone:function(){return new a.htmlParser.element(this.name,this.attributes);},writeHtml:function(m,n){var o=this.attributes,p=this,q=p.name,r,s,t,u;p.filterChildren=function(){if(!u){var z=new a.htmlParser.basicWriter();a.htmlParser.fragment.prototype.writeChildrenHtml.call(p,z,n);p.children=new a.htmlParser.fragment.fromHtml(z.getHtml()).children;u=1;}};if(n){for(;;){if(!(q=n.onElementName(q)))return;p.name=q;if(!(p=n.onElement(p)))return;p.parent=this.parent;if(p.name==q)break;if(p.type!=1){p.writeHtml(m,n);return;}q=p.name;if(!q){this.writeChildrenHtml.call(p,m,u?null:n);return;}}o=p.attributes;}m.openTag(q,o);var v=[];for(var w=0;w<2;w++)for(r in o){s=r;t=o[r];if(w==1)v.push([r,t]);else if(n){for(;;){if(!(s=n.onAttributeName(r))){delete o[r];break;}else if(s!=r){delete o[r];r=s;continue;}else break;}if(s)if((t=n.onAttribute(p,s,t))===false)delete o[s];else o[s]=t;}}if(m.sortAttributes)v.sort(l);var x=v.length;for(w=0;w<x;w++){var y=v[w];m.attribute(y[0],y[1]);}m.openTagClose(q,p.isEmpty);if(!p.isEmpty){this.writeChildrenHtml.call(p,m,u?null:n);m.closeTag(q);}},writeChildrenHtml:function(m,n){a.htmlParser.fragment.prototype.writeChildrenHtml.apply(this,arguments);}};})();(function(){a.htmlParser.filter=e.createClass({$:function(q){this._={elementNames:[],attributeNames:[],elements:{$length:0},attributes:{$length:0}};if(q)this.addRules(q,10);},proto:{addRules:function(q,r){var s=this;if(typeof r!='number')r=10;m(s._.elementNames,q.elementNames,r);m(s._.attributeNames,q.attributeNames,r);n(s._.elements,q.elements,r);n(s._.attributes,q.attributes,r);s._.text=o(s._.text,q.text,r)||s._.text;s._.comment=o(s._.comment,q.comment,r)||s._.comment;s._.root=o(s._.root,q.root,r)||s._.root;},onElementName:function(q){return l(q,this._.elementNames);},onAttributeName:function(q){return l(q,this._.attributeNames);},onText:function(q){var r=this._.text;return r?r.filter(q):q;},onComment:function(q,r){var s=this._.comment;return s?s.filter(q,r):q;},onFragment:function(q){var r=this._.root;return r?r.filter(q):q;},onElement:function(q){var v=this;var r=[v._.elements['^'],v._.elements[q.name],v._.elements.$],s,t;for(var u=0;u<3;u++){s=r[u];if(s){t=s.filter(q,v);if(t===false)return null;if(t&&t!=q)return v.onNode(t);if(q.parent&&!q.name)break;}}return q;},onNode:function(q){var r=q.type;return r==1?this.onElement(q):r==3?new a.htmlParser.text(this.onText(q.value)):r==8?new a.htmlParser.comment(this.onComment(q.value)):null;
}else{B(w,w.parent,true);if(!l[I])u.unshift(w);}K=true;}if(L)w=L;else w=w.returnPoint||w.parent;if(K){r.onTagOpen.apply(this,arguments);return;}}z(E);A();H.parent=w;H.returnPoint=y;y=0;if(H.isEmpty)B(H);else w=H;};r.onTagClose=function(E){for(var F=u.length-1;F>=0;F--){if(E==u[F].name){u.splice(F,1);return;}}var G=[],H=[],I=w;while(I.type&&I.name!=E){if(!I._.isBlockLike)H.unshift(I);G.push(I);I=I.parent;}if(I.type){for(F=0;F<G.length;F++){var J=G[F];B(J,J.parent);}w=I;if(w.name=='pre')x=false;if(I._.isBlockLike)A();B(I,I.parent);if(I==w)w=w.parent;u=u.concat(H);}if(E=='body')q=false;};r.onText=function(E){if(!w._.hasInlineStarted&&!x){E=e.ltrim(E);if(E.length===0)return;}A();z();if(q&&(!w.type||w.name=='body')&&e.trim(E))this.onTagOpen(q,{});if(!x)E=E.replace(/[\t\r\n ]{2,}|[\t\r\n]/g,' ');w.add(new a.htmlParser.text(E));};r.onCDATA=function(E){w.add(new a.htmlParser.cdata(E));};r.onComment=function(E){w.add(new a.htmlParser.comment(E));};r.parse(p);A(!c&&1);while(w.type){var C=w.parent,D=w;if(q&&(!C.type||C.name=='body')&&!f.$body[D.name]){w=C;r.onTagOpen(q,{});C=w;}C.add(D);w=C;}return t;};a.htmlParser.fragment.prototype={add:function(p){var s=this;var q=s.children.length,r=q>0&&s.children[q-1]||null;if(r){if(p._.isBlockLike&&r.type==3){r.value=e.rtrim(r.value);if(r.value.length===0){s.children.pop();s.add(p);return;}}r.next=p;}p.previous=r;p.parent=s;s.children.push(p);s._.hasInlineStarted=p.type==3||p.type==1&&!p._.isBlockLike;},writeHtml:function(p,q){var r;this.filterChildren=function(){var s=new a.htmlParser.basicWriter();this.writeChildrenHtml.call(this,s,q,true);var t=s.getHtml();this.children=new a.htmlParser.fragment.fromHtml(t).children;r=1;};!this.name&&q&&q.onFragment(this);this.writeChildrenHtml(p,r?null:q);},writeChildrenHtml:function(p,q){for(var r=0;r<this.children.length;r++)this.children[r].writeHtml(p,q);}};})();a.htmlParser.element=function(l,m){var r=this;r.name=l;r.attributes=m||(m={});r.children=[];var n=m._cke_real_element_type||l,o=f,p=!!(o.$nonBodyContent[n]||o.$block[n]||o.$listItem[n]||o.$tableContent[n]||o.$nonEditable[n]||n=='br'),q=!!o.$empty[l];r.isEmpty=q;r.isUnknown=!o[l];r._={isBlockLike:p,hasInlineStarted:q||!p};};(function(){var l=function(m,n){m=m[0];n=n[0];return m<n?-1:m>n?1:0;};a.htmlParser.element.prototype={type:1,add:a.htmlParser.fragment.prototype.add,clone:function(){return new a.htmlParser.element(this.name,this.attributes);},writeHtml:function(m,n){var o=this.attributes,p=this,q=p.name,r,s,t,u;p.filterChildren=function(){if(!u){var z=new a.htmlParser.basicWriter();
};(function(){var l=function(m,n){m=m[0];n=n[0];return m<n?-1:m>n?1:0;};a.htmlParser.element.prototype={type:1,add:a.htmlParser.fragment.prototype.add,clone:function(){return new a.htmlParser.element(this.name,this.attributes);},writeHtml:function(m,n){var o=this.attributes,p=this,q=p.name,r,s,t,u;p.filterChildren=function(){if(!u){var z=new a.htmlParser.basicWriter();a.htmlParser.fragment.prototype.writeChildrenHtml.call(p,z,n);p.children=new a.htmlParser.fragment.fromHtml(z.getHtml()).children;u=1;}};if(n){for(;;){if(!(q=n.onElementName(q)))return;p.name=q;if(!(p=n.onElement(p)))return;p.parent=this.parent;if(p.name==q)break;if(p.type!=1){p.writeHtml(m,n);return;}q=p.name;if(!q){this.writeChildrenHtml.call(p,m,u?null:n);return;}}o=p.attributes;}m.openTag(q,o);var v=[];for(var w=0;w<2;w++)for(r in o){s=r;t=o[r];if(w==1)v.push([r,t]);else if(n){for(;;){if(!(s=n.onAttributeName(r))){delete o[r];break;}else if(s!=r){delete o[r];r=s;continue;}else break;}if(s)if((t=n.onAttribute(p,s,t))===false)delete o[s];else o[s]=t;}}if(m.sortAttributes)v.sort(l);var x=v.length;for(w=0;w<x;w++){var y=v[w];m.attribute(y[0],y[1]);}m.openTagClose(q,p.isEmpty);if(!p.isEmpty){this.writeChildrenHtml.call(p,m,u?null:n);m.closeTag(q);}},writeChildrenHtml:function(m,n){a.htmlParser.fragment.prototype.writeChildrenHtml.apply(this,arguments);}};})();(function(){a.htmlParser.filter=e.createClass({$:function(q){this._={elementNames:[],attributeNames:[],elements:{$length:0},attributes:{$length:0}};if(q)this.addRules(q,10);},proto:{addRules:function(q,r){var s=this;if(typeof r!='number')r=10;m(s._.elementNames,q.elementNames,r);m(s._.attributeNames,q.attributeNames,r);n(s._.elements,q.elements,r);n(s._.attributes,q.attributes,r);s._.text=o(s._.text,q.text,r)||s._.text;s._.comment=o(s._.comment,q.comment,r)||s._.comment;s._.root=o(s._.root,q.root,r)||s._.root;},onElementName:function(q){return l(q,this._.elementNames);},onAttributeName:function(q){return l(q,this._.attributeNames);},onText:function(q){var r=this._.text;return r?r.filter(q):q;},onComment:function(q,r){var s=this._.comment;return s?s.filter(q,r):q;},onFragment:function(q){var r=this._.root;return r?r.filter(q):q;},onElement:function(q){var v=this;var r=[v._.elements['^'],v._.elements[q.name],v._.elements.$],s,t;for(var u=0;u<3;u++){s=r[u];if(s){t=s.filter(q,v);if(t===false)return null;if(t&&t!=q)return v.onNode(t);if(q.parent&&!q.name)break;}}return q;},onNode:function(q){var r=q.type;return r==1?this.onElement(q):r==3?new a.htmlParser.text(this.onText(q.value)):r==8?new a.htmlParser.comment(this.onComment(q.value)):null;
t==true){c.cancelEvent(b);return false}var f=i,j=b.keyCode==40||b.keyCode==34;b=b.keyCode==34||b.keyCode==33?d.clientHeight/i.offsetHeight:1;var h;for(h=0;f&&h<b;++h){var l=B(f,j);if(!l)break;f=l}if(f&&c.hasTag(f,"DIV")){i.className="";f.className="sel";m=f.id}return false}return b.keyCode!=13&&b.keyCode!=9};this.filtered=function(a){u=a;n.refilter()};this.refilter=function(){var a=m?c.getElement(m):null,b=c.getElement(e),i=y(b),f=!$(b).hasClass("Wt-suggest-dropdown"),j=d.lastChild.childNodes,h=i(null);
b.keyCode==34||b.keyCode==33){if(b.type.toUpperCase()=="KEYDOWN"){u=true;c.cancelEvent(b,c.CancelDefaultAction)}if(b.type.toUpperCase()=="KEYPRESS"&&u==true){c.cancelEvent(b);return false}var e=h,p=b.keyCode==40||b.keyCode==34;b=b.keyCode==34||b.keyCode==33?d.clientHeight/h.offsetHeight:1;var j;for(j=0;e&&j<b;++j){var g=C(e,p);if(!g)break;e=g}if(e&&c.hasTag(e,"DIV")){h.className="";e.className="sel";l=e.id}return false}return b.keyCode!=13&&b.keyCode!=9};this.filtered=function(a){v=a;n.refilter()};
t==true){c.cancelEvent(b);return false}var f=i,j=b.keyCode==40||b.keyCode==34;b=b.keyCode==34||b.keyCode==33?d.clientHeight/i.offsetHeight:1;var h;for(h=0;f&&h<b;++h){var l=B(f,j);if(!l)break;f=l}if(f&&c.hasTag(f,"DIV")){i.className="";f.className="sel";m=f.id}return false}return b.keyCode!=13&&b.keyCode!=9};this.filtered=function(a){u=a;n.refilter()};this.refilter=function(){var a=m?c.getElement(m):null,b=c.getElement(e),i=y(b),f=!$(b).hasClass("Wt-suggest-dropdown"),j=d.lastChild.childNodes,h=i(null);
40||b.keyCode==34;b=b.keyCode==34||b.keyCode==33?f.clientHeight/k.offsetHeight:1;var j;for(j=0;l&&j<b;++j){var v=z(l,p);if(!v)break;l=v}if(l&&e.hasTag(l,"DIV")){k.className="";l.className="sel";n=l.id}return false}return b.keyCode!=13&&b.keyCode!=9};this.filtered=function(a){H=a;A.refilter()};this.refilter=function(){var a=n?e.getElement(n):null,b=e.getElement(i),k=C(b),l=f.lastChild.childNodes,p=k(null);D=b.value;if(q)if(p.length<q&&!r){d();return}else{var j=p.substring(0,q);if(j!=H){if(j!=I){I=
k.offsetHeight:1;var j;for(j=0;l&&j<b;++j){var u=z(l,p);if(!u)break;l=u}if(l&&e.hasTag(l,"DIV")){k.className="";l.className="sel";n=l.id}return false}return b.keyCode!=13&&b.keyCode!=9};this.filtered=function(a){H=a;A.refilter()};this.refilter=function(){var a=n?e.getElement(n):null,b=e.getElement(i),k=C(b),l=f.lastChild.childNodes,p=k(null);D=b.value;if(q)if(p.length<q&&!r){d();return}else{var j=p.substring(0,q);if(j!=H){if(j!=I){I=j;s.emit(f,"filter",j)}if(!r){d();return}}}var u=j=null;p=r&&p.length==
40||b.keyCode==34;b=b.keyCode==34||b.keyCode==33?f.clientHeight/k.offsetHeight:1;var j;for(j=0;l&&j<b;++j){var v=z(l,p);if(!v)break;l=v}if(l&&e.hasTag(l,"DIV")){k.className="";l.className="sel";n=l.id}return false}return b.keyCode!=13&&b.keyCode!=9};this.filtered=function(a){H=a;A.refilter()};this.refilter=function(){var a=n?e.getElement(n):null,b=e.getElement(i),k=C(b),l=f.lastChild.childNodes,p=k(null);D=b.value;if(q)if(p.length<q&&!r){d();return}else{var j=p.substring(0,q);if(j!=H){if(j!=I){I=
b.keyCode==34||b.keyCode==33){if(b.type.toUpperCase()=="KEYDOWN"){u=true;c.cancelEvent(b,c.CancelDefaultAction)}if(b.type.toUpperCase()=="KEYPRESS"&&u==true){c.cancelEvent(b);return false}var e=h,p=b.keyCode==40||b.keyCode==34;b=b.keyCode==34||b.keyCode==33?d.clientHeight/h.offsetHeight:1;var j;for(j=0;e&&j<b;++j){var g=C(e,p);if(!g)break;e=g}if(e&&c.hasTag(e,"DIV")){h.className="";e.className="sel";l=e.id}return false}return b.keyCode!=13&&b.keyCode!=9};this.filtered=function(a){v=a;n.refilter()};
1;var j;for(j=0;e&&j<b;++j){var g=E(e,p);if(!g)break;e=g}if(e&&c.hasTag(e,"DIV")){h.className="";e.className="sel";k=e.id}return false}return b.keyCode!=13&&b.keyCode!=9};this.filtered=function(a){x=a;n.refilter()};this.refilter=function(){var a=k?c.getElement(k):null,b=c.getElement(f),h=B(b),e=!$(b).hasClass("Wt-suggest-dropdown"),p=d.lastChild.childNodes,j=h(null);s=b.value;if(r)if(e&&j.length<r){l();return}else{var g=j.substring(0,r);if(g!=x){if(g!=y){y=g;q.emit(d,"filter",g)}if(e){l();return}}}g=
b.keyCode==34||b.keyCode==33){if(b.type.toUpperCase()=="KEYDOWN"){u=true;c.cancelEvent(b,c.CancelDefaultAction)}if(b.type.toUpperCase()=="KEYPRESS"&&u==true){c.cancelEvent(b);return false}var e=h,p=b.keyCode==40||b.keyCode==34;b=b.keyCode==34||b.keyCode==33?d.clientHeight/h.offsetHeight:1;var j;for(j=0;e&&j<b;++j){var g=C(e,p);if(!g)break;e=g}if(e&&c.hasTag(e,"DIV")){h.className="";e.className="sel";l=e.id}return false}return b.keyCode!=13&&b.keyCode!=9};this.filtered=function(a){v=a;n.refilter()};
if(x.type!=CKEDITOR.NODE_ELEMENT)x=x.getParent();x.scrollIntoView();y.updateFromDomRange(w);},removeHighlight:function(){var w=this;if(!w._.highlightRange)return;j.removeFromRange(w._.highlightRange);w.updateFromDomRange(w._.highlightRange);w._.highlightRange=null;},moveBack:function(){var y=this;var w=y._.walker.back(),x=y._.cursors;if(w.hitMatchBoundary)y._.cursors=x=[];x.unshift(w);if(x.length>y._.rangeLength)x.pop();return w;},moveNext:function(){var y=this;var w=y._.walker.next(),x=y._.cursors;if(w.hitMatchBoundary)y._.cursors=x=[];x.push(w);if(x.length>y._.rangeLength)x.shift();return w;},getEndCharacter:function(){var w=this._.cursors;if(w.length<1)return null;return w[w.length-1].character;},getNextCharacterRange:function(w){var x,y,z=this._.cursors;if(x=z[z.length-1])y=new k(m(x));else y=this._.walker;return new l(y,w);},getCursors:function(){return this._.cursors;}};function m(w,x){var y=new CKEDITOR.dom.range();y.setStart(w.textNode,x?w.offset:w.offset+1);y.setEndAt(h.document.getBody(),CKEDITOR.POSITION_BEFORE_END);return y;};function n(w){var x=new CKEDITOR.dom.range();x.setStartAt(h.document.getBody(),CKEDITOR.POSITION_AFTER_START);x.setEnd(w.textNode,w.offset);return x;};var o=0,p=1,q=2,r=function(w,x){var y=[-1];if(x)w=w.toLowerCase();for(var z=0;z<w.length;z++){y.push(y[z]+1);while(y[z+1]>0&&w.charAt(z)!=w.charAt(y[z+1]-1))y[z+1]=y[y[z+1]-1]+1;}this._={overlap:y,state:0,ignoreCase:!!x,pattern:w};};r.prototype={feedCharacter:function(w){var x=this;if(x._.ignoreCase)w=w.toLowerCase();for(;;){if(w==x._.pattern.charAt(x._.state)){x._.state++;if(x._.state==x._.pattern.length){x._.state=0;return q;}return p;}else if(!x._.state)return o;else x._.state=x._.overlap[x._.state];}return null;},reset:function(){this._.state=0;}};var s=/[.,"'?!;: \u0085\u00a0\u1680\u280e\u2028\u2029\u202f\u205f\u3000]/,t=function(w){if(!w)return true;var x=w.charCodeAt(0);return x>=9&&x<=13||x>=8192&&x<=8202||s.test(w);},u={searchRange:null,matchRange:null,find:function(w,x,y,z,A,B){var K=this;if(!K.matchRange)K.matchRange=new l(new k(K.searchRange),w.length);else{K.matchRange.removeHighlight();K.matchRange=K.matchRange.getNextCharacterRange(w.length);}var C=new r(w,!x),D=o,E='%';while(E!==null){K.matchRange.moveNext();while(E=K.matchRange.getEndCharacter()){D=C.feedCharacter(E);if(D==q)break;if(K.matchRange.moveNext().hitMatchBoundary)C.reset();}if(D==q){if(y){var F=K.matchRange.getCursors(),G=F[F.length-1],H=F[0],I=new k(n(H),true),J=new k(m(G),true);if(!(t(I.back().character)&&t(J.next().character)))continue; }K.matchRange.setMatched();if(A!==false)K.matchRange.highlight();return true;}}K.matchRange.clearMatched();K.matchRange.removeHighlight();if(z&&!B){K.searchRange=v(true);K.matchRange=null;return arguments.callee.apply(K,Array.prototype.slice.call(arguments).concat([true]));}return false;},replaceCounter:0,replace:function(w,x,y,z,A,B,C){var H=this;var D=false;if(H.matchRange&&H.matchRange.isMatched()&&!H.matchRange._.isReplaced){H.matchRange.removeHighlight();var E=H.matchRange.toDomRange(),F=h.document.createText(y);if(!C){var G=h.getSelection();G.selectRanges([E]);h.fire('saveSnapshot');}E.deleteContents();E.insertNode(F);if(!C){G.selectRanges([E]);h.fire('saveSnapshot');}H.matchRange.updateFromDomRange(E);if(!C)H.matchRange.highlight();H.matchRange._.isReplaced=true;H.replaceCounter++;D=true;}else D=H.find(x,z,A,B,!C);return D;}};function v(w){var x,y=h.getSelection(),z=h.document.getBody();if(y&&!w){x=y.getRanges()[0].clone();x.collapse(true);}else{x=new CKEDITOR.dom.range();x.setStartAt(z,CKEDITOR.POSITION_AFTER_START);}x.setEndAt(z,CKEDITOR.POSITION_BEFORE_END);return x;};return{title:h.lang.findAndReplace.title,resizable:CKEDITOR.DIALOG_RESIZE_NONE,minWidth:350,minHeight:165,buttons:[CKEDITOR.dialog.cancelButton],contents:[{id:'find',label:h.lang.findAndReplace.find,title:h.lang.findAndReplace.find,accessKey:'',elements:[{type:'hbox',widths:['230px','90px'],children:[{type:'text',id:'txtFindFind',label:h.lang.findAndReplace.findWhat,isChanged:false,labelLayout:'horizontal',accessKey:'F'},{type:'button',align:'left',style:'width:100%',label:h.lang.findAndReplace.find,onClick:function(){var w=this.getDialog();if(!u.find(w.getValueOf('find','txtFindFind'),w.getValueOf('find','txtFindCaseChk'),w.getValueOf('find','txtFindWordChk'),w.getValueOf('find','txtFindCyclic')))alert(h.lang.findAndReplace.notFoundMsg);}}]},{type:'vbox',padding:0,children:[{type:'checkbox',id:'txtFindCaseChk',isChanged:false,style:'margin-top:28px',label:h.lang.findAndReplace.matchCase},{type:'checkbox',id:'txtFindWordChk',isChanged:false,label:h.lang.findAndReplace.matchWord},{type:'checkbox',id:'txtFindCyclic',isChanged:false,'default':true,label:h.lang.findAndReplace.matchCyclic}]}]},{id:'replace',label:h.lang.findAndReplace.replace,accessKey:'M',elements:[{type:'hbox',widths:['230px','90px'],children:[{type:'text',id:'txtFindReplace',label:h.lang.findAndReplace.findWhat,isChanged:false,labelLayout:'horizontal',accessKey:'F'},{type:'button',align:'left',style:'width:100%',label:h.lang.findAndReplace.replace,onClick:function(){var w=this.getDialog();
k.applyToRange(x);x.moveToBookmark(y);A._.highlightRange=x;var z=x.startContainer;if(z.type!=CKEDITOR.NODE_ELEMENT)z=z.getParent();z.scrollIntoView();A.updateFromDomRange(x);},removeHighlight:function(){var y=this;if(!y._.highlightRange)return;var x=y._.highlightRange.createBookmark();k.removeFromRange(y._.highlightRange);y._.highlightRange.moveToBookmark(x);y.updateFromDomRange(y._.highlightRange);y._.highlightRange=null;},isReadOnly:function(){if(!this._.highlightRange)return 0;return this._.highlightRange.startContainer.isReadOnly();},moveBack:function(){var z=this;var x=z._.walker.back(),y=z._.cursors;if(x.hitMatchBoundary)z._.cursors=y=[];y.unshift(x);if(y.length>z._.rangeLength)y.pop();return x;},moveNext:function(){var z=this;var x=z._.walker.next(),y=z._.cursors;if(x.hitMatchBoundary)z._.cursors=y=[];y.push(x);if(y.length>z._.rangeLength)y.shift();return x;},getEndCharacter:function(){var x=this._.cursors;if(x.length<1)return null;return x[x.length-1].character;},getNextCharacterRange:function(x){var y,z,A=this._.cursors;if((y=A[A.length-1])&&y.textNode)z=new l(n(y));else z=this._.walker;return new m(z,x);},getCursors:function(){return this._.cursors;}};function n(x,y){var z=new CKEDITOR.dom.range();z.setStart(x.textNode,y?x.offset:x.offset+1);z.setEndAt(i.document.getBody(),CKEDITOR.POSITION_BEFORE_END);return z;};function o(x){var y=new CKEDITOR.dom.range();y.setStartAt(i.document.getBody(),CKEDITOR.POSITION_AFTER_START);y.setEnd(x.textNode,x.offset);return y;};var p=0,q=1,r=2,s=function(x,y){var z=[-1];if(y)x=x.toLowerCase();for(var A=0;A<x.length;A++){z.push(z[A]+1);while(z[A+1]>0&&x.charAt(A)!=x.charAt(z[A+1]-1))z[A+1]=z[z[A+1]-1]+1;}this._={overlap:z,state:0,ignoreCase:!!y,pattern:x};};s.prototype={feedCharacter:function(x){var y=this;if(y._.ignoreCase)x=x.toLowerCase();for(;;){if(x==y._.pattern.charAt(y._.state)){y._.state++;if(y._.state==y._.pattern.length){y._.state=0;return r;}return q;}else if(!y._.state)return p;else y._.state=y._.overlap[y._.state];}return null;},reset:function(){this._.state=0;}};var t=/[.,"'?!;: \u0085\u00a0\u1680\u280e\u2028\u2029\u202f\u205f\u3000]/,u=function(x){if(!x)return true;var y=x.charCodeAt(0);return y>=9&&y<=13||y>=8192&&y<=8202||t.test(x);},v={searchRange:null,matchRange:null,find:function(x,y,z,A,B,C){var L=this;if(!L.matchRange)L.matchRange=new m(new l(L.searchRange),x.length);else{L.matchRange.removeHighlight();L.matchRange=L.matchRange.getNextCharacterRange(x.length);}var D=new s(x,!y),E=p,F='%';while(F!==null){L.matchRange.moveNext(); while(F=L.matchRange.getEndCharacter()){E=D.feedCharacter(F);if(E==r)break;if(L.matchRange.moveNext().hitMatchBoundary)D.reset();}if(E==r){if(z){var G=L.matchRange.getCursors(),H=G[G.length-1],I=G[0],J=new l(o(I),true),K=new l(n(H),true);if(!(u(J.back().character)&&u(K.next().character)))continue;}L.matchRange.setMatched();if(B!==false)L.matchRange.highlight();return true;}}L.matchRange.clearMatched();L.matchRange.removeHighlight();if(A&&!C){L.searchRange=w(true);L.matchRange=null;return arguments.callee.apply(L,Array.prototype.slice.call(arguments).concat([true]));}return false;},replaceCounter:0,replace:function(x,y,z,A,B,C,D){var I=this;a=1;var E=false;if(I.matchRange&&I.matchRange.isMatched()&&!I.matchRange._.isReplaced&&!I.matchRange.isReadOnly()){I.matchRange.removeHighlight();var F=I.matchRange.toDomRange(),G=i.document.createText(z);if(!D){var H=i.getSelection();H.selectRanges([F]);i.fire('saveSnapshot');}F.deleteContents();F.insertNode(G);if(!D){H.selectRanges([F]);i.fire('saveSnapshot');}I.matchRange.updateFromDomRange(F);if(!D)I.matchRange.highlight();I.matchRange._.isReplaced=true;I.replaceCounter++;E=true;}else E=I.find(y,A,B,C,!D);a=0;return E;}};function w(x){var y,z=i.getSelection(),A=i.document.getBody();if(z&&!x){y=z.getRanges()[0].clone();y.collapse(true);}else{y=new CKEDITOR.dom.range();y.setStartAt(A,CKEDITOR.POSITION_AFTER_START);}y.setEndAt(A,CKEDITOR.POSITION_BEFORE_END);return y;};return{title:i.lang.findAndReplace.title,resizable:CKEDITOR.DIALOG_RESIZE_NONE,minWidth:350,minHeight:165,buttons:[CKEDITOR.dialog.cancelButton],contents:[{id:'find',label:i.lang.findAndReplace.find,title:i.lang.findAndReplace.find,accessKey:'',elements:[{type:'hbox',widths:['230px','90px'],children:[{type:'text',id:'txtFindFind',label:i.lang.findAndReplace.findWhat,isChanged:false,labelLayout:'horizontal',accessKey:'F'},{type:'button',align:'left',style:'width:100%',label:i.lang.findAndReplace.find,onClick:function(){var x=this.getDialog();if(!v.find(x.getValueOf('find','txtFindFind'),x.getValueOf('find','txtFindCaseChk'),x.getValueOf('find','txtFindWordChk'),x.getValueOf('find','txtFindCyclic')))alert(i.lang.findAndReplace.notFoundMsg);}}]},{type:'vbox',padding:0,children:[{type:'checkbox',id:'txtFindCaseChk',isChanged:false,style:'margin-top:28px',label:i.lang.findAndReplace.matchCase},{type:'checkbox',id:'txtFindWordChk',isChanged:false,label:i.lang.findAndReplace.matchWord},{type:'checkbox',id:'txtFindCyclic',isChanged:false,'default':true,label:i.lang.findAndReplace.matchCyclic}]}]},{id:'replace',label:i.lang.findAndReplace.replace,accessKey:'M',elements:[{type:'hbox',widths:['230px','90px'],children:[{type:'text',id:'txtFindReplace',label:i.lang.findAndReplace.findWhat,isChanged:false,labelLayout:'horizontal',accessKey:'F'},{type:'button',align:'left',style:'width:100%',label:i.lang.findAndReplace.replace,onClick:function(){var x=this.getDialog();
if(x.type!=CKEDITOR.NODE_ELEMENT)x=x.getParent();x.scrollIntoView();y.updateFromDomRange(w);},removeHighlight:function(){var w=this;if(!w._.highlightRange)return;j.removeFromRange(w._.highlightRange);w.updateFromDomRange(w._.highlightRange);w._.highlightRange=null;},moveBack:function(){var y=this;var w=y._.walker.back(),x=y._.cursors;if(w.hitMatchBoundary)y._.cursors=x=[];x.unshift(w);if(x.length>y._.rangeLength)x.pop();return w;},moveNext:function(){var y=this;var w=y._.walker.next(),x=y._.cursors;if(w.hitMatchBoundary)y._.cursors=x=[];x.push(w);if(x.length>y._.rangeLength)x.shift();return w;},getEndCharacter:function(){var w=this._.cursors;if(w.length<1)return null;return w[w.length-1].character;},getNextCharacterRange:function(w){var x,y,z=this._.cursors;if(x=z[z.length-1])y=new k(m(x));else y=this._.walker;return new l(y,w);},getCursors:function(){return this._.cursors;}};function m(w,x){var y=new CKEDITOR.dom.range();y.setStart(w.textNode,x?w.offset:w.offset+1);y.setEndAt(h.document.getBody(),CKEDITOR.POSITION_BEFORE_END);return y;};function n(w){var x=new CKEDITOR.dom.range();x.setStartAt(h.document.getBody(),CKEDITOR.POSITION_AFTER_START);x.setEnd(w.textNode,w.offset);return x;};var o=0,p=1,q=2,r=function(w,x){var y=[-1];if(x)w=w.toLowerCase();for(var z=0;z<w.length;z++){y.push(y[z]+1);while(y[z+1]>0&&w.charAt(z)!=w.charAt(y[z+1]-1))y[z+1]=y[y[z+1]-1]+1;}this._={overlap:y,state:0,ignoreCase:!!x,pattern:w};};r.prototype={feedCharacter:function(w){var x=this;if(x._.ignoreCase)w=w.toLowerCase();for(;;){if(w==x._.pattern.charAt(x._.state)){x._.state++;if(x._.state==x._.pattern.length){x._.state=0;return q;}return p;}else if(!x._.state)return o;else x._.state=x._.overlap[x._.state];}return null;},reset:function(){this._.state=0;}};var s=/[.,"'?!;: \u0085\u00a0\u1680\u280e\u2028\u2029\u202f\u205f\u3000]/,t=function(w){if(!w)return true;var x=w.charCodeAt(0);return x>=9&&x<=13||x>=8192&&x<=8202||s.test(w);},u={searchRange:null,matchRange:null,find:function(w,x,y,z,A,B){var K=this;if(!K.matchRange)K.matchRange=new l(new k(K.searchRange),w.length);else{K.matchRange.removeHighlight();K.matchRange=K.matchRange.getNextCharacterRange(w.length);}var C=new r(w,!x),D=o,E='%';while(E!==null){K.matchRange.moveNext();while(E=K.matchRange.getEndCharacter()){D=C.feedCharacter(E);if(D==q)break;if(K.matchRange.moveNext().hitMatchBoundary)C.reset();}if(D==q){if(y){var F=K.matchRange.getCursors(),G=F[F.length-1],H=F[0],I=new k(n(H),true),J=new k(m(G),true);if(!(t(I.back().character)&&t(J.next().character)))continue;}K.matchRange.setMatched();if(A!==false)K.matchRange.highlight();return true;}}K.matchRange.clearMatched();K.matchRange.removeHighlight();if(z&&!B){K.searchRange=v(true);K.matchRange=null;return arguments.callee.apply(K,Array.prototype.slice.call(arguments).concat([true]));}return false;},replaceCounter:0,replace:function(w,x,y,z,A,B,C){var H=this;var D=false;if(H.matchRange&&H.matchRange.isMatched()&&!H.matchRange._.isReplaced){H.matchRange.removeHighlight();var E=H.matchRange.toDomRange(),F=h.document.createText(y);if(!C){var G=h.getSelection();G.selectRanges([E]);h.fire('saveSnapshot');}E.deleteContents();E.insertNode(F);if(!C){G.selectRanges([E]);h.fire('saveSnapshot');}H.matchRange.updateFromDomRange(E);if(!C)H.matchRange.highlight();H.matchRange._.isReplaced=true;H.replaceCounter++;D=true;}else D=H.find(x,z,A,B,!C);return D;}};function v(w){var x,y=h.getSelection(),z=h.document.getBody();if(y&&!w){x=y.getRanges()[0].clone();x.collapse(true);}else{x=new CKEDITOR.dom.range();x.setStartAt(z,CKEDITOR.POSITION_AFTER_START);}x.setEndAt(z,CKEDITOR.POSITION_BEFORE_END);return x;};return{title:h.lang.findAndReplace.title,resizable:CKEDITOR.DIALOG_RESIZE_NONE,minWidth:350,minHeight:165,buttons:[CKEDITOR.dialog.cancelButton],contents:[{id:'find',label:h.lang.findAndReplace.find,title:h.lang.findAndReplace.find,accessKey:'',elements:[{type:'hbox',widths:['230px','90px'],children:[{type:'text',id:'txtFindFind',label:h.lang.findAndReplace.findWhat,isChanged:false,labelLayout:'horizontal',accessKey:'F'},{type:'button',align:'left',style:'width:100%',label:h.lang.findAndReplace.find,onClick:function(){var w=this.getDialog();if(!u.find(w.getValueOf('find','txtFindFind'),w.getValueOf('find','txtFindCaseChk'),w.getValueOf('find','txtFindWordChk'),w.getValueOf('find','txtFindCyclic')))alert(h.lang.findAndReplace.notFoundMsg);}}]},{type:'vbox',padding:0,children:[{type:'checkbox',id:'txtFindCaseChk',isChanged:false,style:'margin-top:28px',label:h.lang.findAndReplace.matchCase},{type:'checkbox',id:'txtFindWordChk',isChanged:false,label:h.lang.findAndReplace.matchWord},{type:'checkbox',id:'txtFindCyclic',isChanged:false,'default':true,label:h.lang.findAndReplace.matchCyclic}]}]},{id:'replace',label:h.lang.findAndReplace.replace,accessKey:'M',elements:[{type:'hbox',widths:['230px','90px'],children:[{type:'text',id:'txtFindReplace',label:h.lang.findAndReplace.findWhat,isChanged:false,labelLayout:'horizontal',accessKey:'F'},{type:'button',align:'left',style:'width:100%',label:h.lang.findAndReplace.replace,onClick:function(){var w=this.getDialog();
0;u[c]!=null;c++)u[c]&&u[c].nodeType===1&&i.push(s[c]);else i.push.apply(i,u);else K(u,i);if(J){p(J,n,i,j);p.uniqueSort(i)}return i};p.uniqueSort=function(c){if(L){l=q;c.sort(L);if(l)for(var f=1;f<c.length;f++)c[f]===c[f-1]&&c.splice(f--,1)}return c};p.matches=function(c,f){return p(c,null,null,f)};p.find=function(c,f,i){var j,n;if(!c)return[];for(var m=0,t=o.order.length;m<t;m++){var s=o.order[m];if(n=o.leftMatch[s].exec(c)){var u=n[1];n.splice(1,1);if(u.substr(u.length-1)!=="\\"){n[1]=(n[1]||"").replace(/\\/g, "");j=o.find[s](n,f,i);if(j!=null){c=c.replace(o.match[s],"");break}}}}j||(j=f.getElementsByTagName("*"));return{set:j,expr:c}};p.filter=function(c,f,i,j){for(var n=c,m=[],t=f,s,u,J=f&&f[0]&&P(f[0]);c&&f.length;){for(var C in o.filter)if((s=o.match[C].exec(c))!=null){var F=o.filter[C],D,z;u=false;if(t===m)m=[];if(o.preFilter[C])if(s=o.preFilter[C](s,t,i,m,j,J)){if(s===true)continue}else u=D=true;if(s)for(var Q=0;(z=t[Q])!=null;Q++)if(z){D=F(z,s,Q,t);var ga=j^!!D;if(i&&D!=null)if(ga)u=true;else t[Q]=
0;u[d]!=null;d++)u[d]&&u[d].nodeType===1&&i.push(s[d]);else i.push.apply(i,u);else K(u,i);if(J){p(J,n,i,j);p.uniqueSort(i)}return i};p.uniqueSort=function(d){if(L){l=q;d.sort(L);if(l)for(var g=1;g<d.length;g++)d[g]===d[g-1]&&d.splice(g--,1)}return d};p.matches=function(d,g){return p(d,null,null,g)};p.find=function(d,g,i){var j,n;if(!d)return[];for(var m=0,t=o.order.length;m<t;m++){var s=o.order[m];if(n=o.leftMatch[s].exec(d)){var u=n[1];n.splice(1,1);if(u.substr(u.length-1)!=="\\"){n[1]=(n[1]||"").replace(/\\/g, "");j=o.find[s](n,g,i);if(j!=null){d=d.replace(o.match[s],"");break}}}}j||(j=g.getElementsByTagName("*"));return{set:j,expr:d}};p.filter=function(d,g,i,j){for(var n=d,m=[],t=g,s,u,J=g&&g[0]&&P(g[0]);d&&g.length;){for(var C in o.filter)if((s=o.leftMatch[C].exec(d))!=null&&s[2]){var F=o.filter[C],D,y;y=s[1];u=false;s.splice(1,1);if(y.substr(y.length-1)!=="\\"){if(t===m)m=[];if(o.preFilter[C])if(s=o.preFilter[C](s,t,i,m,j,J)){if(s===true)continue}else u=D=true;if(s)for(var Q=0;(y=t[Q])!=null;Q++)if(y){D=
0;u[c]!=null;c++)u[c]&&u[c].nodeType===1&&i.push(s[c]);else i.push.apply(i,u);else K(u,i);if(J){p(J,n,i,j);p.uniqueSort(i)}return i};p.uniqueSort=function(c){if(L){l=q;c.sort(L);if(l)for(var f=1;f<c.length;f++)c[f]===c[f-1]&&c.splice(f--,1)}return c};p.matches=function(c,f){return p(c,null,null,f)};p.find=function(c,f,i){var j,n;if(!c)return[];for(var m=0,t=o.order.length;m<t;m++){var s=o.order[m];if(n=o.leftMatch[s].exec(c)){var u=n[1];n.splice(1,1);if(u.substr(u.length-1)!=="\\"){n[1]=(n[1]||"").replace(/\\/g,"");j=o.find[s](n,f,i);if(j!=null){c=c.replace(o.match[s],"");break}}}}j||(j=f.getElementsByTagName("*"));return{set:j,expr:c}};p.filter=function(c,f,i,j){for(var n=c,m=[],t=f,s,u,J=f&&f[0]&&P(f[0]);c&&f.length;){for(var C in o.filter)if((s=o.match[C].exec(c))!=null){var F=o.filter[C],D,z;u=false;if(t===m)m=[];if(o.preFilter[C])if(s=o.preFilter[C](s,t,i,m,j,J)){if(s===true)continue}else u=D=true;if(s)for(var Q=0;(z=t[Q])!=null;Q++)if(z){D=F(z,s,Q,t);var ga=j^!!D;if(i&&D!=null)if(ga)u=true;else t[Q]=
return len == 1 ? $(query) : root.parent().find(query);
var el = $(query); return el.length < 2 ? el : root.parent().find(query);
function find(query) { return len == 1 ? $(query) : root.parent().find(query); }
v1 = v1 == 0 ? lang.title : v1; v2 = v2 == 0 ? lang.title : v2;
v1 = v1 === 0 ? lang.title : v1; v2 = v2 === 0 ? lang.title : v2;
function find_current_range() { ///TODO: Determine if there is a better way to calculate the topBar offset. var b1, b2, bottom_pos = scroll_pos + doc_docEl.clientHeight - 14, bottom_verse_block, c1, c2, new_title, ref_range, top_pos = scroll_pos + topLoader.offsetHeight + 8, top_verse_block, v1, v2, verse1_el, verse1, verse2_el, verse2; /// Allow for this function to be called again via setTimeout(). See scrolling(). looking_up_verse_range = false; top_verse_block = find_element_at_scroll_pos(top_pos, page); /// Is the top verse block not found? if (top_verse_block === null) { ///NOTE: There appears to be no verses displayed on the screen. /// Since they may still be being retrieved, so run this function again a little later. looking_up_verse_range = true; setTimeout(find_current_range, lookup_range_speed); return null; } bottom_verse_block = find_element_at_scroll_pos(bottom_pos, null, top_verse_block); /// Is the bottom verse block not found? if (bottom_verse_block === null) { ///NOTE: There are no verses at the bottom of the screen. /// Since they may still be being retrieved, so run this function again a little later. looking_up_verse_range = true; setTimeout(find_current_range, lookup_range_speed); return null; } /// Find the verse elements. verse1_el = find_element_at_scroll_pos(top_pos, top_verse_block); verse2_el = find_element_at_scroll_pos(bottom_pos, bottom_verse_block); /// Are either of the verses not found? if (verse1_el === null || verse2_el === null) { ///NOTE: It is possible for some padding to separate the verses. /// This is probably a temporary issue, so run this function again a little later. looking_up_verse_range = true; setTimeout(find_current_range, lookup_range_speed); return null; } /// parseInt() is used to keep the number and remove the trailing string from the id. See write_verses(). verse1 = parseInt(verse1_el.id); v1 = verse1 % 1000; c1 = ((verse1 - v1) % 1000000) / 1000; b1 = (verse1 - v1 - c1 * 1000) / 1000000; verse2 = parseInt(verse2_el.id); v2 = verse2 % 1000; c2 = ((verse2 - v2) % 1000000) / 1000; b2 = (verse2 - v2 - c2 * 1000) / 1000000; /// The titles in the book of Psalms are referenced as verse zero (cf. Psalm 3). v1 = v1 == 0 ? lang.title : v1; v2 = v2 == 0 ? lang.title : v2; ///NOTE: \u2013 is Unicode for the en dash (–) (HTML: &ndash;). ///TODO: Determine if the colons should be language specified. /// Are the books the same? if (b1 == b2) { /// The book of Psalms is refereed to differently (e.g., Psalm 1:1, rather than Chapter 1:1). b1 = b1 == 19 ? lang.psalm : lang.books_short[b1]; /// Are the chapters the same? if (c1 == c2) { /// Are the verses the same? if (v1 == v2) { ref_range = b1 + " " + c1 + ":" + v1; } else { ref_range = b1 + " " + c1 + ":" + v1 + "\u2013" + v2; } } else { ref_range = b1 + " " + c1 + ":" + v1 + "\u2013" + c2 + ":" + v2; } } else { /// The book of Psalms is refereed to differently (e.g., Psalm 1:1, rather than Chapter 1:1). b1 = b1 == 19 ? lang.psalm : lang.books_short[b1]; b2 = b2 == 19 ? lang.psalm : lang.books_short[b2]; ref_range = b1 + " " + c1 + ":" + v1 + "\u2013" + b2 + " " + c2 + ":" + v2; } /// last_type is set in prepare_new_search(). /// The verse range is displayed differently based on the type of search (i.e., a verse look up or a regular search). if (last_type == VERSE_LOOKUP) { new_title = ref_range + " - " + lang.app_name; } else { new_title = last_search + " (" + ref_range + ") - " + lang.app_name; } /// Is the new verse range the same as the old one? /// If they are the same, updating it would just waste resources. if (doc.title != new_title) { doc.title = new_title; /// Display the verse range on the page if looking up verses. ///FIXME: There should be a variable that shows the current view mode and not rely on last_type. if (last_type == VERSE_LOOKUP) { ///TODO: Find a better way to clear infoBar than innerHTML. infoBar.innerHTML = ""; infoBar.appendChild(doc.createTextNode(ref_range)); } } return null; }
el = el.previousSibling; looked_previous = true
el = el.previousSibling; looked_previous = true;
function find_element_at_scroll_pos(the_pos, parent_el, el) { var el_offset_height, el_offset_top, el_start_at, looked_next, looked_previous; /// Is the starting element unknown? if (!el) { /// Make an educated guess as to which element to start with to save time. el_start_at = Math.round(parent_el.childNodes.length * (the_pos / doc_docEl.scrollHeight)); if (el_start_at < 1) el_start_at = 1; el = parent_el.childNodes[el_start_at - 1]; } else { /// We may need the parent_el if the_pos is below all of the elements. parent_el = el.parentNode; } /// Were no elements found? (If so, then there is nothing to do.) if (!el) return null; looked_next = false; looked_previous = false; do { el_offset_top = el.offsetTop; el_offset_height = el.offsetHeight + el_offset_top; /// Is the element somewhere between the position in question? if (the_pos >= el_offset_top && the_pos <= el_offset_height) { /// The element was found. return el; } else { /// Is the position in question lower? if (the_pos > el_offset_top) { el = el.nextSibling; looked_next = true; } else { el = el.previousSibling; looked_previous = true } /// Is it stuck in an infinite loop? (If so, then give up.) if (looked_next && looked_previous) return null; } } while (el !== null); /// Was the position in question to high for all of the elements? if (looked_next) { /// If there are no elements left (e.g., by scrolling all the way to the bottom) return the last element. return parent_el.lastChild; } ///TODO: Determine if we should return parent_el.firstChild if looked_previous or if that might cause bugs. return null; }
return $(this).text().match(/^X:/m);
return $(this).text().match(/^\s*X:/m);
function findABC(currentset) { var cont = false; var newcurrentset = currentset.map(function(i,elem){ var children = $(elem).children().filter(function() { return $(this).text().match(/^X:/m); }); if (children.length===0) { return elem; } else { cont = true; return children.get(); } }); return (cont) ? findABC(newcurrentset) : currentset;}
return $(this).text().match(/^\s*X:/m);
var str = getABCText(this); return getABCText(this).match(/^\s*X:/m);
function findABC(currentset) { var cont = false; var newcurrentset = currentset.map(function(i,elem){ var children = $(elem).children().filter(function() { return $(this).text().match(/^\s*X:/m); }); if (children.length===0) { return elem; } else { cont = true; return children.get(); } }); return (cont) ? findABC(newcurrentset) : currentset;}
} else { console.log(" findActiveTextArea: focusedEdit not set"); }
}
findActiveTextArea = function() { var text; if (focusedEdit) { text = focusedEdit; } else { console.log(" findActiveTextArea: focusedEdit not set"); } tagTextArea(text); // And spawn the request var text_edit_id = text.getAttribute("edit_id"); var edit_msg = { msg: "edit", text: text.value, id: text_edit_id }; console.log(" findActiveTextArea:"+JSON.stringify(edit_msg)); port.postMessage(edit_msg); };
console.log(" findActiveTextArea:"+JSON.stringify(edit_msg));
findActiveTextArea = function() { var text; if (focusedEdit) { text = focusedEdit; } else { console.log(" findActiveTextArea: focusedEdit not set"); } tagTextArea(text); // And spawn the request var text_edit_id = text.getAttribute("edit_id"); var edit_msg = { msg: "edit", text: text.value, id: text_edit_id }; console.log(" findActiveTextArea:"+JSON.stringify(edit_msg)); port.postMessage(edit_msg); };
this.request(this, "FindLogins", [hostname, formSubmitURL, httpRealm, lst, false, uniqueID], callback, newId, callbackData);
this.request(this, "FindLogins", [[hostname], formSubmitURL, httpRealm, lst, false, uniqueID], callback, newId, callbackData);
this.findLogins = function(hostname, formSubmitURL, httpRealm, uniqueID, callback, callbackData) { // now returns ID of async JSON-RPC request so calling functions can track if desired var lst = "LSTall"; if (httpRealm == undefined || httpRealm == null || httpRealm == "") lst = "LSTnoRealms"; else if (formSubmitURL == undefined || formSubmitURL == null || formSubmitURL == "") lst = "LSTnoForms"; var newId = ++this.requestId; // slight chance IDs may be sent out of order but at least this way // they are consistent for any given request/response cycle this.request(this, "FindLogins", [hostname, formSubmitURL, httpRealm, lst, false, uniqueID], callback, newId, callbackData); return newId; }
console.log("findTextAreas() running");
function findTextAreas() { console.log("findTextAreas() running"); var texts = document.getElementsByTagName('textarea'); for (var i=0; i<texts.length; i++) { var text = texts[i]; tagTextArea(text); } console.log("findTextAreas: page_edit_id now "+page_edit_id); return true;}
console.log("findTextAreas: page_edit_id now "+page_edit_id);
function findTextAreas() { console.log("findTextAreas() running"); var texts = document.getElementsByTagName('textarea'); for (var i=0; i<texts.length; i++) { var text = texts[i]; tagTextArea(text); } console.log("findTextAreas: page_edit_id now "+page_edit_id); return true;}
if (findingTextAreas) return; findingTextAreas = true; findTextAreasInDocument(document);
findTextAreasIn(document);
function findTextAreas() { // Don't run through this if already finding stuff, lest we trigger events if (findingTextAreas) return; findingTextAreas = true; findTextAreasInDocument(document); // IFRAMEs var iframes = document.getElementsByTagName('iframe'); for (i = 0; i < iframes.length; i++) { findTextAreasInDocument(iframes[i].contentDocument); } // FRAMEs var frames = document.getElementsByTagName('frame'); for (i = 0; i < frames.length; i++) { findTextAreasInDocument(frames[i].contentDocument); } /* This may not be needed // And finally lets update any events and ensure they have event listeners for (var i=0; i<pageTextAreas.length; i++) { pageTextAreas[i].updateEvents(); } */ findingTextAreas = false; return true;}
findTextAreasInDocument(iframes[i].contentDocument);
findTextAreasIn(iframes[i].contentDocument);
function findTextAreas() { // Don't run through this if already finding stuff, lest we trigger events if (findingTextAreas) return; findingTextAreas = true; findTextAreasInDocument(document); // IFRAMEs var iframes = document.getElementsByTagName('iframe'); for (i = 0; i < iframes.length; i++) { findTextAreasInDocument(iframes[i].contentDocument); } // FRAMEs var frames = document.getElementsByTagName('frame'); for (i = 0; i < frames.length; i++) { findTextAreasInDocument(frames[i].contentDocument); } /* This may not be needed // And finally lets update any events and ensure they have event listeners for (var i=0; i<pageTextAreas.length; i++) { pageTextAreas[i].updateEvents(); } */ findingTextAreas = false; return true;}
findTextAreasInDocument(frames[i].contentDocument);
findTextAreasIn(frames[i].contentDocument);
function findTextAreas() { // Don't run through this if already finding stuff, lest we trigger events if (findingTextAreas) return; findingTextAreas = true; findTextAreasInDocument(document); // IFRAMEs var iframes = document.getElementsByTagName('iframe'); for (i = 0; i < iframes.length; i++) { findTextAreasInDocument(iframes[i].contentDocument); } // FRAMEs var frames = document.getElementsByTagName('frame'); for (i = 0; i < frames.length; i++) { findTextAreasInDocument(frames[i].contentDocument); } /* This may not be needed // And finally lets update any events and ensure they have event listeners for (var i=0; i<pageTextAreas.length; i++) { pageTextAreas[i].updateEvents(); } */ findingTextAreas = false; return true;}
findingTextAreas = false;
function findTextAreas() { // Don't run through this if already finding stuff, lest we trigger events if (findingTextAreas) return; findingTextAreas = true; findTextAreasInDocument(document); // IFRAMEs var iframes = document.getElementsByTagName('iframe'); for (i = 0; i < iframes.length; i++) { findTextAreasInDocument(iframes[i].contentDocument); } // FRAMEs var frames = document.getElementsByTagName('frame'); for (i = 0; i < frames.length; i++) { findTextAreasInDocument(frames[i].contentDocument); } /* This may not be needed // And finally lets update any events and ensure they have event listeners for (var i=0; i<pageTextAreas.length; i++) { pageTextAreas[i].updateEvents(); } */ findingTextAreas = false; return true;}
"")+y;else if(r)z.selector=this.selector+"."+r+"("+y+")";return z},each:function(i,r){return b.each(this,i,r)},ready:function(i){b.bindReady();if(b.isReady)i.call(u,b);else q&&q.push(i);return this},eq:function(i){return i===-1?this.slice(i):this.slice(i,+i+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(N.apply(this,arguments),"slice",N.call(arguments).join(","))},map:function(i){return this.pushStack(b.map(this,function(r,y){return i.call(r,
g.type},image:function(g){return"image"===g.type},reset:function(g){return"reset"===g.type},button:function(g){return"button"===g.type||g.nodeName.toLowerCase()==="button"},input:function(g){return/input|select|textarea|button/i.test(g.nodeName)}},setFilters:{first:function(g,i){return i===0},last:function(g,i,n,m){return i===m.length-1},even:function(g,i){return i%2===0},odd:function(g,i){return i%2===1},lt:function(g,i,n){return i<n[3]-0},gt:function(g,i,n){return i>n[3]-0},nth:function(g,i,n){return n[3]-
"")+y;else if(r)z.selector=this.selector+"."+r+"("+y+")";return z},each:function(i,r){return b.each(this,i,r)},ready:function(i){b.bindReady();if(b.isReady)i.call(u,b);else q&&q.push(i);return this},eq:function(i){return i===-1?this.slice(i):this.slice(i,+i+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(N.apply(this,arguments),"slice",N.call(arguments).join(","))},map:function(i){return this.pushStack(b.map(this,function(r,y){return i.call(r,
b){return d.each(this,a,b)},ready:function(a){d.bindReady();if(d.isReady)a.call(r,d);else H&&H.push(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(I.apply(this,arguments),"slice",I.call(arguments).join(","))},map:function(a){return this.pushStack(d.map(this,function(b,e){return a.call(b,e,b)}))},end:function(){return this.prevObject||d(null)},push:V,sort:[].sort,
first: function(a,i){return i==0;},
b){return d.each(this,a,b)},ready:function(a){d.bindReady();if(d.isReady)a.call(r,d);else H&&H.push(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(I.apply(this,arguments),"slice",I.call(arguments).join(","))},map:function(a){return this.pushStack(d.map(this,function(b,e){return a.call(b,e,b)}))},end:function(){return this.prevObject||d(null)},push:V,sort:[].sort,
b);document.getElementsByTagName("head")[0].appendChild(f)}};this.windowSize=function(){var a,b;if(typeof window.innerWidth==="number"){a=window.innerWidth;b=window.innerHeight}else{a=document.documentElement.clientWidth;b=document.documentElement.clientHeight}return{x:a,y:b}};this.fitToWindow=function(a,b,f,l,n){var o=g.windowSize(),L=document.body.scrollLeft+document.documentElement.scrollLeft,u=document.body.scrollTop+document.documentElement.scrollTop,q=g.widgetPageCoordinates(a.offsetParent), B=["left","right"],r=["top","bottom"],C=g.px(a,"maxWidth")||a.offsetWidth,J=g.px(a,"maxHeight")||a.offsetHeight;if(b+C>L+o.x){l-=q.x;b=a.offsetParent.offsetWidth-(l+g.px(a,"marginRight"));l=1}else{b-=q.x;b-=g.px(a,"marginLeft");l=0}if(f+J>u+o.y){if(n>u+o.y)n=u+o.y;n-=q.y;f=a.offsetParent.offsetHeight-(n+g.px(a,"marginBottom"));n=1}else{f-=q.y;f-=g.px(a,"marginTop");n=0}a.style[B[l]]=b+"px";a.style[B[1-l]]="";a.style[r[n]]=f+"px";a.style[r[1-n]]=""};this.positionXY=function(a,b,f){a=g.getElement(a);
a);f.setAttribute("type","text/css");f.setAttribute("rel","stylesheet");b!=""&&b!="all"&&f.setAttribute("media",b);document.getElementsByTagName("head")[0].appendChild(f)}};this.windowSize=function(){var a,b;if(typeof window.innerWidth==="number"){a=window.innerWidth;b=window.innerHeight}else{a=document.documentElement.clientWidth;b=document.documentElement.clientHeight}return{x:a,y:b}};this.fitToWindow=function(a,b,f,l,n){var o=g.windowSize(),L=document.body.scrollLeft+document.documentElement.scrollLeft, u=document.body.scrollTop+document.documentElement.scrollTop,q=g.widgetPageCoordinates(a.offsetParent),B=["left","right"],r=["top","bottom"],C=g.px(a,"maxWidth")||a.offsetWidth,J=g.px(a,"maxHeight")||a.offsetHeight;if(b+C>L+o.x){l-=q.x;b=a.offsetParent.offsetWidth-(l+g.px(a,"marginRight"));l=1}else{b-=q.x;b-=g.px(a,"marginLeft");l=0}if(f+J>u+o.y){if(n>u+o.y)n=u+o.y;n-=q.y;f=a.offsetParent.offsetHeight-(n+g.px(a,"marginBottom"));n=1}else{f-=q.y;f-=g.px(a,"marginTop");n=0}a.style[B[l]]=b+"px";a.style[B[1- l]]="";a.style[r[n]]=f+"px";a.style[r[1-n]]=""};this.positionXY=function(a,b,f){a=g.getElement(a);g.isHidden(a)||g.fitToWindow(a,b,f,b,f)};this.Horizontal=1;this.Vertical=2;this.positionAtWidget=function(a,b,f,l){a=g.getElement(a);b=g.getElement(b);var n=g.widgetPageCoordinates(b),o;if(l){a.parentNode.removeChild(a);$(".Wt-domRoot").get(0).appendChild(a)}a.style.position="absolute";a.style.display="block";if(f==g.Horizontal){f=n.x+b.offsetWidth;l=n.y;o=n.x;b=n.y+b.offsetHeight}else{f=n.x;l=n.y+b.offsetHeight;
b);document.getElementsByTagName("head")[0].appendChild(f)}};this.windowSize=function(){var a,b;if(typeof window.innerWidth==="number"){a=window.innerWidth;b=window.innerHeight}else{a=document.documentElement.clientWidth;b=document.documentElement.clientHeight}return{x:a,y:b}};this.fitToWindow=function(a,b,f,l,n){var o=g.windowSize(),L=document.body.scrollLeft+document.documentElement.scrollLeft,u=document.body.scrollTop+document.documentElement.scrollTop,q=g.widgetPageCoordinates(a.offsetParent),B=["left","right"],r=["top","bottom"],C=g.px(a,"maxWidth")||a.offsetWidth,J=g.px(a,"maxHeight")||a.offsetHeight;if(b+C>L+o.x){l-=q.x;b=a.offsetParent.offsetWidth-(l+g.px(a,"marginRight"));l=1}else{b-=q.x;b-=g.px(a,"marginLeft");l=0}if(f+J>u+o.y){if(n>u+o.y)n=u+o.y;n-=q.y;f=a.offsetParent.offsetHeight-(n+g.px(a,"marginBottom"));n=1}else{f-=q.y;f-=g.px(a,"marginTop");n=0}a.style[B[l]]=b+"px";a.style[B[1-l]]="";a.style[r[n]]=f+"px";a.style[r[1-n]]=""};this.positionXY=function(a,b,f){a=g.getElement(a);
"stylesheet");b!=""&&b!="all"&&f.setAttribute("media",b);document.getElementsByTagName("head")[0].appendChild(f)}};this.windowSize=function(){var a,b;if(typeof window.innerWidth==="number"){a=window.innerWidth;b=window.innerHeight}else{a=document.documentElement.clientWidth;b=document.documentElement.clientHeight}return{x:a,y:b}};this.fitToWindow=function(a,b,f,k,h){var o=g.windowSize(),E=document.body.scrollLeft+document.documentElement.scrollLeft,u=document.body.scrollTop+document.documentElement.scrollTop, s=g.widgetPageCoordinates(a.offsetParent),z=["left","right"],x=["top","bottom"],F=g.px(a,"maxWidth")||a.offsetWidth,v=g.px(a,"maxHeight")||a.offsetHeight;if(b+F>E+o.x){k-=s.x;b=a.offsetParent.offsetWidth-(k+g.px(a,"marginRight"));k=1}else{b-=s.x;b-=g.px(a,"marginLeft");k=0}if(f+v>u+o.y){if(h>u+o.y)h=u+o.y;h-=s.y;f=a.offsetParent.offsetHeight-(h+g.px(a,"marginBottom"));h=1}else{f-=s.y;f-=g.px(a,"marginTop");h=0}a.style[z[k]]=b+"px";a.style[z[1-k]]="";a.style[x[h]]=f+"px";a.style[x[1-h]]=""};this.positionXY=
"stylesheet");b!=""&&b!="all"&&f.setAttribute("media",b);document.getElementsByTagName("head")[0].appendChild(f)}};this.windowSize=function(){var a,b;if(typeof window.innerWidth==="number"){a=window.innerWidth;b=window.innerHeight}else{a=document.documentElement.clientWidth;b=document.documentElement.clientHeight}return{x:a,y:b}};this.fitToWindow=function(a,b,f,k,h){var o=g.windowSize(),E=document.body.scrollLeft+document.documentElement.scrollLeft,v=document.body.scrollTop+document.documentElement.scrollTop, s=g.widgetPageCoordinates(a.offsetParent),z=["left","right"],y=["top","bottom"],F=g.px(a,"maxWidth")||a.offsetWidth,w=g.px(a,"maxHeight")||a.offsetHeight;if(b+F>E+o.x){k-=s.x;b=a.offsetParent.offsetWidth-(k+g.px(a,"marginRight"));k=1}else{b-=s.x;b-=g.px(a,"marginLeft");k=0}if(f+w>v+o.y){if(h>v+o.y)h=v+o.y;h-=s.y;f=a.offsetParent.offsetHeight-(h+g.px(a,"marginBottom"));h=1}else{f-=s.y;f-=g.px(a,"marginTop");h=0}a.style[z[k]]=b+"px";a.style[z[1-k]]="";a.style[y[h]]=f+"px";a.style[y[1-h]]=""};this.positionXY=
"stylesheet");b!=""&&b!="all"&&f.setAttribute("media",b);document.getElementsByTagName("head")[0].appendChild(f)}};this.windowSize=function(){var a,b;if(typeof window.innerWidth==="number"){a=window.innerWidth;b=window.innerHeight}else{a=document.documentElement.clientWidth;b=document.documentElement.clientHeight}return{x:a,y:b}};this.fitToWindow=function(a,b,f,k,h){var o=g.windowSize(),E=document.body.scrollLeft+document.documentElement.scrollLeft,u=document.body.scrollTop+document.documentElement.scrollTop,s=g.widgetPageCoordinates(a.offsetParent),z=["left","right"],x=["top","bottom"],F=g.px(a,"maxWidth")||a.offsetWidth,v=g.px(a,"maxHeight")||a.offsetHeight;if(b+F>E+o.x){k-=s.x;b=a.offsetParent.offsetWidth-(k+g.px(a,"marginRight"));k=1}else{b-=s.x;b-=g.px(a,"marginLeft");k=0}if(f+v>u+o.y){if(h>u+o.y)h=u+o.y;h-=s.y;f=a.offsetParent.offsetHeight-(h+g.px(a,"marginBottom"));h=1}else{f-=s.y;f-=g.px(a,"marginTop");h=0}a.style[z[k]]=b+"px";a.style[z[1-k]]="";a.style[x[h]]=f+"px";a.style[x[1-h]]=""};this.positionXY=
s=["left","right"],y=["top","bottom"],I=h.px(a,"maxWidth")||a.offsetWidth,J=h.px(a,"maxHeight")||a.offsetHeight;if(b+I>H+n.x){j-=q.x;b=a.offsetParent.offsetWidth-(j+h.px(a,"marginRight"));j=1}else{b-=q.x;b-=h.px(a,"marginLeft");j=0}if(e+J>u+n.y){if(l>u+n.y)l=u+n.y;l-=q.y;e=a.offsetParent.offsetHeight-(l+h.px(a,"marginBottom"));l=1}else{e-=q.y;e-=h.px(a,"marginTop");l=0}a.style[s[j]]=b+"px";a.style[s[1-j]]="";a.style[y[l]]=e+"px";a.style[y[1-l]]=""};this.positionXY=function(a,b,e){a=h.getElement(a);
s=["left","right"],y=["top","bottom"],I=h.px(a,"maxWidth")||a.offsetWidth,K=h.px(a,"maxHeight")||a.offsetHeight;if(b+I>H+n.x){j-=q.x;b=a.offsetParent.offsetWidth-(j+h.px(a,"marginRight"));j=1}else{b-=q.x;b-=h.px(a,"marginLeft");j=0}if(e+K>u+n.y){if(l>u+n.y)l=u+n.y;l-=q.y;e=a.offsetParent.offsetHeight-(l+h.px(a,"marginBottom"));l=1}else{e-=q.y;e-=h.px(a,"marginTop");l=0}a.style[s[j]]=b+"px";a.style[s[1-j]]="";a.style[y[l]]=e+"px";a.style[y[1-l]]=""};this.positionXY=function(a,b,e){a=h.getElement(a);
b);document.getElementsByTagName("head")[0].appendChild(e)}};this.windowSize=function(){var a,b;if(typeof window.innerWidth==="number"){a=window.innerWidth;b=window.innerHeight}else{a=document.documentElement.clientWidth;b=document.documentElement.clientHeight}return{x:a,y:b}};this.fitToWindow=function(a,b,e,j,l){var n=h.windowSize(),H=document.body.scrollLeft+document.documentElement.scrollLeft,u=document.body.scrollTop+document.documentElement.scrollTop,q=h.widgetPageCoordinates(a.offsetParent),s=["left","right"],y=["top","bottom"],I=h.px(a,"maxWidth")||a.offsetWidth,J=h.px(a,"maxHeight")||a.offsetHeight;if(b+I>H+n.x){j-=q.x;b=a.offsetParent.offsetWidth-(j+h.px(a,"marginRight"));j=1}else{b-=q.x;b-=h.px(a,"marginLeft");j=0}if(e+J>u+n.y){if(l>u+n.y)l=u+n.y;l-=q.y;e=a.offsetParent.offsetHeight-(l+h.px(a,"marginBottom"));l=1}else{e-=q.y;e-=h.px(a,"marginTop");l=0}a.style[s[j]]=b+"px";a.style[s[1-j]]="";a.style[y[l]]=e+"px";a.style[y[1-l]]=""};this.positionXY=function(a,b,e){a=h.getElement(a);
b=document.documentElement.clientHeight}return{x:a,y:b}};this.fitToWindow=function(a,b,e,k,i){var n=h.windowSize(),K=document.body.scrollLeft+document.documentElement.scrollLeft,u=document.body.scrollTop+document.documentElement.scrollTop,q=h.widgetPageCoordinates(a.offsetParent),D=["left","right"],x=["top","bottom"],A=h.px(a,"maxWidth")||a.offsetWidth,F=h.px(a,"maxHeight")||a.offsetHeight;if(b+A>K+n.x){k-=q.x;b=a.offsetParent.offsetWidth-(k+h.px(a,"marginRight"));k=1}else{b-=q.x;b-=h.px(a,"marginLeft"); k=0}if(e+F>u+n.y){if(i>u+n.y)i=u+n.y;i-=q.y;e=a.offsetParent.offsetHeight-(i+h.px(a,"marginBottom"));i=1}else{e-=q.y;e-=h.px(a,"marginTop");i=0}a.style[D[k]]=b+"px";a.style[D[1-k]]="";a.style[x[i]]=e+"px";a.style[x[1-i]]=""};this.positionXY=function(a,b,e){a=h.getElement(a);h.isHidden(a)||h.fitToWindow(a,b,e,b,e)};this.Horizontal=1;this.Vertical=2;this.positionAtWidget=function(a,b,e){a=h.getElement(a);b=h.getElement(b);var k=h.widgetPageCoordinates(b),i,n;a.style.display="block";if(e==h.Horizontal){e=
document.documentElement.clientWidth;b=document.documentElement.clientHeight}return{x:a,y:b}};this.fitToWindow=function(a,b,e,j,i){var n=g.windowSize(),J=document.body.scrollLeft+document.documentElement.scrollLeft,u=document.body.scrollTop+document.documentElement.scrollTop,q=g.widgetPageCoordinates(a.offsetParent),C=["left","right"],w=["top","bottom"],z=g.px(a,"maxWidth")||a.offsetWidth,E=g.px(a,"maxHeight")||a.offsetHeight;if(b+z>J+n.x){j-=q.x;b=a.offsetParent.offsetWidth-(j+g.px(a,"marginRight")); j=1}else{b-=q.x;b-=g.px(a,"marginLeft");j=0}if(e+E>u+n.y){if(i>u+n.y)i=u+n.y;i-=q.y;e=a.offsetParent.offsetHeight-(i+g.px(a,"marginBottom"));i=1}else{e-=q.y;e-=g.px(a,"marginTop");i=0}a.style[C[j]]=b+"px";a.style[C[1-j]]="";a.style[w[i]]=e+"px";a.style[w[1-i]]=""};this.positionXY=function(a,b,e){a=g.getElement(a);g.isHidden(a)||g.fitToWindow(a,b,e,b,e)};this.Horizontal=1;this.Vertical=2;this.positionAtWidget=function(a,b,e){a=g.getElement(a);b=g.getElement(b);var j=g.widgetPageCoordinates(b),i,n;
b=document.documentElement.clientHeight}return{x:a,y:b}};this.fitToWindow=function(a,b,e,k,i){var n=h.windowSize(),K=document.body.scrollLeft+document.documentElement.scrollLeft,u=document.body.scrollTop+document.documentElement.scrollTop,q=h.widgetPageCoordinates(a.offsetParent),D=["left","right"],x=["top","bottom"],A=h.px(a,"maxWidth")||a.offsetWidth,F=h.px(a,"maxHeight")||a.offsetHeight;if(b+A>K+n.x){k-=q.x;b=a.offsetParent.offsetWidth-(k+h.px(a,"marginRight"));k=1}else{b-=q.x;b-=h.px(a,"marginLeft");k=0}if(e+F>u+n.y){if(i>u+n.y)i=u+n.y;i-=q.y;e=a.offsetParent.offsetHeight-(i+h.px(a,"marginBottom"));i=1}else{e-=q.y;e-=h.px(a,"marginTop");i=0}a.style[D[k]]=b+"px";a.style[D[1-k]]="";a.style[x[i]]=e+"px";a.style[x[1-i]]=""};this.positionXY=function(a,b,e){a=h.getElement(a);h.isHidden(a)||h.fitToWindow(a,b,e,b,e)};this.Horizontal=1;this.Vertical=2;this.positionAtWidget=function(a,b,e){a=h.getElement(a);b=h.getElement(b);var k=h.widgetPageCoordinates(b),i,n;a.style.display="block";if(e==h.Horizontal){e=
function(a,b,e,k,i){var n=g.windowSize(),K=document.body.scrollLeft+document.documentElement.scrollLeft,u=document.body.scrollTop+document.documentElement.scrollTop,q=g.widgetPageCoordinates(a.offsetParent),D=["left","right"],x=["top","bottom"],A=g.px(a,"maxWidth")||a.offsetWidth,F=g.px(a,"maxHeight")||a.offsetHeight;if(b+A>K+n.x){k-=q.x;b=a.offsetParent.offsetWidth-(k+g.px(a,"marginRight"));k=1}else{b-=q.x;b-=g.px(a,"marginLeft");k=0}if(e+F>u+n.y){if(i>u+n.y)i=u+n.y;i-=q.y;e=a.offsetParent.offsetHeight- (i+g.px(a,"marginBottom"));i=1}else{e-=q.y;e-=g.px(a,"marginTop");i=0}a.style[D[k]]=b+"px";a.style[D[1-k]]="";a.style[x[i]]=e+"px";a.style[x[1-i]]=""};this.positionXY=function(a,b,e){a=g.getElement(a);g.isHidden(a)||g.fitToWindow(a,b,e,b,e)};this.Horizontal=1;this.Vertical=2;this.positionAtWidget=function(a,b,e){a=g.getElement(a);b=g.getElement(b);var k=g.widgetPageCoordinates(b),i,n;a.style.display="block";if(e==g.Horizontal){e=k.x+b.offsetWidth;i=k.y;n=k.x;b=k.y+b.offsetHeight}else{e=k.x;i=k.y+
function(a,b,e,k,i){var n=h.windowSize(),K=document.body.scrollLeft+document.documentElement.scrollLeft,u=document.body.scrollTop+document.documentElement.scrollTop,q=h.widgetPageCoordinates(a.offsetParent),D=["left","right"],x=["top","bottom"],A=h.px(a,"maxWidth")||a.offsetWidth,F=h.px(a,"maxHeight")||a.offsetHeight;if(b+A>K+n.x){k-=q.x;b=a.offsetParent.offsetWidth-(k+h.px(a,"marginRight"));k=1}else{b-=q.x;b-=h.px(a,"marginLeft");k=0}if(e+F>u+n.y){if(i>u+n.y)i=u+n.y;i-=q.y;e=a.offsetParent.offsetHeight- (i+h.px(a,"marginBottom"));i=1}else{e-=q.y;e-=h.px(a,"marginTop");i=0}a.style[D[k]]=b+"px";a.style[D[1-k]]="";a.style[x[i]]=e+"px";a.style[x[1-i]]=""};this.positionXY=function(a,b,e){a=h.getElement(a);h.isHidden(a)||h.fitToWindow(a,b,e,b,e)};this.Horizontal=1;this.Vertical=2;this.positionAtWidget=function(a,b,e){a=h.getElement(a);b=h.getElement(b);var k=h.widgetPageCoordinates(b),i,n;a.style.display="block";if(e==h.Horizontal){e=k.x+b.offsetWidth;i=k.y;n=k.x;b=k.y+b.offsetHeight}else{e=k.x;i=k.y+
else{var e=document.createElement("link");e.setAttribute("type","text/css");e.setAttribute("href",a);e.setAttribute("type","text/css");e.setAttribute("rel","stylesheet");b!=""&&b!="all"&&e.setAttribute("media",b);document.getElementsByTagName("head")[0].appendChild(e)}};this.windowSize=function(){var a,b;if(typeof window.innerWidth==="number"){a=window.innerWidth;b=window.innerHeight}else{a=document.documentElement.clientWidth;b=document.documentElement.clientHeight}return{x:a,y:b}};this.fitToWindow=function(a,b,e,k,i){var n=g.windowSize(),K=document.body.scrollLeft+document.documentElement.scrollLeft,u=document.body.scrollTop+document.documentElement.scrollTop,q=g.widgetPageCoordinates(a.offsetParent),D=["left","right"],x=["top","bottom"],A=g.px(a,"maxWidth")||a.offsetWidth,F=g.px(a,"maxHeight")||a.offsetHeight;if(b+A>K+n.x){k-=q.x;b=a.offsetParent.offsetWidth-(k+g.px(a,"marginRight"));k=1}else{b-=q.x;b-=g.px(a,"marginLeft");k=0}if(e+F>u+n.y){if(i>u+n.y)i=u+n.y;i-=q.y;e=a.offsetParent.offsetHeight-(i+g.px(a,"marginBottom"));i=1}else{e-=q.y;e-=g.px(a,"marginTop");i=0}a.style[D[k]]=b+"px";a.style[D[1-k]]="";a.style[x[i]]=e+"px";a.style[x[1-i]]=""};this.positionXY=function(a,b,e){a=g.getElement(a);g.isHidden(a)||g.fitToWindow(a,b,e,b,e)};this.Horizontal=1;this.Vertical=2;this.positionAtWidget=function(a,b,e){a=g.getElement(a);b=g.getElement(b);var k=g.widgetPageCoordinates(b),i,n;a.style.display="block";if(e==g.Horizontal){e=k.x+b.offsetWidth;i=k.y;n=k.x;b=k.y+b.offsetHeight}else{e=k.x;i=k.y+
b;if(typeof window.innerWidth==="number"){a=window.innerWidth;b=window.innerHeight}else{a=document.documentElement.clientWidth;b=document.documentElement.clientHeight}return{x:a,y:b}};this.fitToWindow=function(a,b,f,h,k){var o=g.windowSize(),E=document.body.scrollLeft+document.documentElement.scrollLeft,u=document.body.scrollTop+document.documentElement.scrollTop,r=g.widgetPageCoordinates(a.offsetParent),y=["left","right"],x=["top","bottom"],F=g.px(a,"maxWidth")||a.offsetWidth,v=g.px(a,"maxHeight")|| a.offsetHeight;if(b+F>E+o.x){h-=r.x;b=a.offsetParent.offsetWidth-(h+g.px(a,"marginRight"));h=1}else{b-=r.x;b-=g.px(a,"marginLeft");h=0}if(f+v>u+o.y){if(k>u+o.y)k=u+o.y;k-=r.y;f=a.offsetParent.offsetHeight-(k+g.px(a,"marginBottom"));k=1}else{f-=r.y;f-=g.px(a,"marginTop");k=0}a.style[y[h]]=b+"px";a.style[y[1-h]]="";a.style[x[k]]=f+"px";a.style[x[1-k]]=""};this.positionXY=function(a,b,f){a=g.getElement(a);g.isHidden(a)||g.fitToWindow(a,b,f,b,f)};this.Horizontal=1;this.Vertical=2;this.positionAtWidget=
a);f.setAttribute("type","text/css");f.setAttribute("rel","stylesheet");b!=""&&b!="all"&&f.setAttribute("media",b);document.getElementsByTagName("head")[0].appendChild(f)}};this.windowSize=function(){var a,b;if(typeof window.innerWidth==="number"){a=window.innerWidth;b=window.innerHeight}else{a=document.documentElement.clientWidth;b=document.documentElement.clientHeight}return{x:a,y:b}};this.fitToWindow=function(a,b,f,h,k){var o=g.windowSize(),E=document.body.scrollLeft+document.documentElement.scrollLeft, u=document.body.scrollTop+document.documentElement.scrollTop,r=g.widgetPageCoordinates(a.offsetParent),y=["left","right"],x=["top","bottom"],F=g.px(a,"maxWidth")||a.offsetWidth,v=g.px(a,"maxHeight")||a.offsetHeight;if(b+F>E+o.x){h-=r.x;b=a.offsetParent.offsetWidth-(h+g.px(a,"marginRight"));h=1}else{b-=r.x;b-=g.px(a,"marginLeft");h=0}if(f+v>u+o.y){if(k>u+o.y)k=u+o.y;k-=r.y;f=a.offsetParent.offsetHeight-(k+g.px(a,"marginBottom"));k=1}else{f-=r.y;f-=g.px(a,"marginTop");k=0}a.style[y[h]]=b+"px";a.style[y[1- h]]="";a.style[x[k]]=f+"px";a.style[x[1-k]]=""};this.positionXY=function(a,b,f){a=g.getElement(a);g.isHidden(a)||g.fitToWindow(a,b,f,b,f)};this.Horizontal=1;this.Vertical=2;this.positionAtWidget=function(a,b,f){a=g.getElement(a);b=g.getElement(b);var h=g.widgetPageCoordinates(b),k,o;a.style.display="block";if(f==g.Horizontal){f=h.x+b.offsetWidth;k=h.y;o=h.x;b=h.y+b.offsetHeight}else{f=h.x;k=h.y+b.offsetHeight;o=h.x+b.offsetWidth;b=h.y}g.fitToWindow(a,f,k,o,b)};this.hasFocus=function(a){return a==
b;if(typeof window.innerWidth==="number"){a=window.innerWidth;b=window.innerHeight}else{a=document.documentElement.clientWidth;b=document.documentElement.clientHeight}return{x:a,y:b}};this.fitToWindow=function(a,b,f,h,k){var o=g.windowSize(),E=document.body.scrollLeft+document.documentElement.scrollLeft,u=document.body.scrollTop+document.documentElement.scrollTop,r=g.widgetPageCoordinates(a.offsetParent),y=["left","right"],x=["top","bottom"],F=g.px(a,"maxWidth")||a.offsetWidth,v=g.px(a,"maxHeight")||a.offsetHeight;if(b+F>E+o.x){h-=r.x;b=a.offsetParent.offsetWidth-(h+g.px(a,"marginRight"));h=1}else{b-=r.x;b-=g.px(a,"marginLeft");h=0}if(f+v>u+o.y){if(k>u+o.y)k=u+o.y;k-=r.y;f=a.offsetParent.offsetHeight-(k+g.px(a,"marginBottom"));k=1}else{f-=r.y;f-=g.px(a,"marginTop");k=0}a.style[y[h]]=b+"px";a.style[y[1-h]]="";a.style[x[k]]=f+"px";a.style[x[1-k]]=""};this.positionXY=function(a,b,f){a=g.getElement(a);g.isHidden(a)||g.fitToWindow(a,b,f,b,f)};this.Horizontal=1;this.Vertical=2;this.positionAtWidget=
"text/css");b.setAttribute("rel","stylesheet");document.getElementsByTagName("head")[0].appendChild(b)}};this.windowSize=function(){var a,b;if(typeof window.innerWidth==="number"){a=window.innerWidth;b=window.innerHeight}else{a=document.documentElement.clientWidth;b=document.documentElement.clientHeight}return{x:a,y:b}};this.fitToWindow=function(a,b,f,m,l){var o=k.windowSize(),B=document.body.scrollLeft+document.documentElement.scrollLeft,r=document.body.scrollTop+document.documentElement.scrollTop; if(b+a.offsetWidth>B+o.x)b=m-a.offsetWidth-k.px(a,"marginRight");else b-=k.px(a,"marginLeft");if(f+a.offsetHeight>r+o.y){if(l>r+o.y)l=r+o.y;f=l-a.offsetHeight-k.px(a,"marginBottom")}else f-=k.px(a,"marginTop");if(b<B)b=B+o.x-a.offsetWidth-3;if(f<r)f=r+o.y-a.offsetHeight-3;m=k.widgetPageCoordinates(a.offsetParent);a.style.left=b-m.x+"px";a.style.top=f-m.y+"px"};this.positionXY=function(a,b,f){a=k.getElement(a);k.isHidden(a)||k.fitToWindow(a,b,f,b,f)};this.Horizontal=1;this.Vertical=2;this.positionAtWidget=
function(){var a,b;if(typeof window.innerWidth==="number"){a=window.innerWidth;b=window.innerHeight}else{a=document.documentElement.clientWidth;b=document.documentElement.clientHeight}return{x:a,y:b}};this.fitToWindow=function(a,b,f,m,l){var n=k.windowSize(),E=document.body.scrollLeft+document.documentElement.scrollLeft,q=document.body.scrollTop+document.documentElement.scrollTop;if(b+a.offsetWidth>E+n.x)b=m-a.offsetWidth-k.px(a,"marginRight");else b-=k.px(a,"marginLeft");if(f+a.offsetHeight>q+n.y){if(l> q+n.y)l=q+n.y;f=l-a.offsetHeight-k.px(a,"marginBottom")}else f-=k.px(a,"marginTop");if(b<E)b=E+n.x-a.offsetWidth-3;if(f<q)f=q+n.y-a.offsetHeight-3;m=k.widgetPageCoordinates(a.offsetParent);a.style.left=b-m.x+"px";a.style.top=f-m.y+"px"};this.positionXY=function(a,b,f){a=k.getElement(a);k.isHidden(a)||k.fitToWindow(a,b,f,b,f)};this.Horizontal=1;this.Vertical=2;this.positionAtWidget=function(a,b,f){a=k.getElement(a);b=k.getElement(b);var m=k.widgetPageCoordinates(b),l,n;a.style.display="block";if(f==
"text/css");b.setAttribute("rel","stylesheet");document.getElementsByTagName("head")[0].appendChild(b)}};this.windowSize=function(){var a,b;if(typeof window.innerWidth==="number"){a=window.innerWidth;b=window.innerHeight}else{a=document.documentElement.clientWidth;b=document.documentElement.clientHeight}return{x:a,y:b}};this.fitToWindow=function(a,b,f,m,l){var o=k.windowSize(),B=document.body.scrollLeft+document.documentElement.scrollLeft,r=document.body.scrollTop+document.documentElement.scrollTop;if(b+a.offsetWidth>B+o.x)b=m-a.offsetWidth-k.px(a,"marginRight");else b-=k.px(a,"marginLeft");if(f+a.offsetHeight>r+o.y){if(l>r+o.y)l=r+o.y;f=l-a.offsetHeight-k.px(a,"marginBottom")}else f-=k.px(a,"marginTop");if(b<B)b=B+o.x-a.offsetWidth-3;if(f<r)f=r+o.y-a.offsetHeight-3;m=k.widgetPageCoordinates(a.offsetParent);a.style.left=b-m.x+"px";a.style.top=f-m.y+"px"};this.positionXY=function(a,b,f){a=k.getElement(a);k.isHidden(a)||k.fitToWindow(a,b,f,b,f)};this.Horizontal=1;this.Vertical=2;this.positionAtWidget=
x.optimizeBookmark();x.trim(false,true);var u=x.startContainer,v=x.startOffset,w=u.getChild(v);if(w)t.insertBefore(w);else u.append(t);if(t.getParent().equals(x.endContainer))x.endOffset++;x.setStartBefore(t);},moveToPosition:function(t,u){this.setStartAt(t,u);this.collapse(true);},selectNodeContents:function(t){this.setStart(t,0);this.setEnd(t,t.type==3?t.getLength():t.getChildCount());},setStart:function(t,u){var v=this;v.startContainer=t;v.startOffset=u;if(!v.endContainer){v.endContainer=t;v.endOffset=u;}l(v);},setEnd:function(t,u){var v=this;v.endContainer=t;v.endOffset=u;if(!v.startContainer){v.startContainer=t;v.startOffset=u;}l(v);},setStartAfter:function(t){this.setStart(t.getParent(),t.getIndex()+1);},setStartBefore:function(t){this.setStart(t.getParent(),t.getIndex());},setEndAfter:function(t){this.setEnd(t.getParent(),t.getIndex()+1);},setEndBefore:function(t){this.setEnd(t.getParent(),t.getIndex());},setStartAt:function(t,u){var v=this;switch(u){case 1:v.setStart(t,0);break;case 2:if(t.type==3)v.setStart(t,t.getLength());else v.setStart(t,t.getChildCount());break;case 3:v.setStartBefore(t);break;case 4:v.setStartAfter(t);}l(v);},setEndAt:function(t,u){var v=this;switch(u){case 1:v.setEnd(t,0);break;case 2:if(t.type==3)v.setEnd(t,t.getLength());else v.setEnd(t,t.getChildCount());break;case 3:v.setEndBefore(t);break;case 4:v.setEndAfter(t);}l(v);},fixBlock:function(t,u){var x=this;var v=x.createBookmark(),w=x.document.createElement(u);x.collapse(t);x.enlarge(2);x.extractContents().appendTo(w);w.trim();if(!c)w.appendBogus();x.insertNode(w);x.moveToBookmark(v);return w;},splitBlock:function(t){var D=this;var u=new d.elementPath(D.startContainer),v=new d.elementPath(D.endContainer),w=u.blockLimit,x=v.blockLimit,y=u.block,z=v.block,A=null;if(!w.equals(x))return null;if(t!='br'){if(!y){y=D.fixBlock(true,t);z=new d.elementPath(D.endContainer).block;}if(!z)z=D.fixBlock(false,t);}var B=y&&D.checkStartOfBlock(),C=z&&D.checkEndOfBlock();D.deleteContents();if(y&&y.equals(z))if(C){A=new d.elementPath(D.startContainer);D.moveToPosition(z,4);z=null;}else if(B){A=new d.elementPath(D.startContainer);D.moveToPosition(y,3);y=null;}else{z=D.splitElement(y);if(!c&&!y.is('ul','ol'))y.appendBogus();}return{previousBlock:y,nextBlock:z,wasStartOfBlock:B,wasEndOfBlock:C,elementPath:A};},splitElement:function(t){var w=this;if(!w.collapsed)return null;w.setEndAt(t,2);var u=w.extractContents(),v=t.clone(false);u.appendTo(v);v.insertAfter(t);w.moveToPosition(t,4);return v;},checkBoundaryOfElement:function(t,u){var v=this.clone();
x.trim(false,true);var u=x.startContainer,v=x.startOffset,w=u.getChild(v);if(w)t.insertBefore(w);else u.append(t);if(t.getParent().equals(x.endContainer))x.endOffset++;x.setStartBefore(t);},moveToPosition:function(t,u){this.setStartAt(t,u);this.collapse(true);},selectNodeContents:function(t){this.setStart(t,0);this.setEnd(t,t.type==3?t.getLength():t.getChildCount());},setStart:function(t,u){var v=this;if(t.type==1&&f.$empty[t.getName()])t=t.getParent(),u=t.getIndex();v.startContainer=t;v.startOffset=u;if(!v.endContainer){v.endContainer=t;v.endOffset=u;}l(v);},setEnd:function(t,u){var v=this;if(t.type==1&&f.$empty[t.getName()])t=t.getParent(),u=t.getIndex()+1;v.endContainer=t;v.endOffset=u;if(!v.startContainer){v.startContainer=t;v.startOffset=u;}l(v);},setStartAfter:function(t){this.setStart(t.getParent(),t.getIndex()+1);},setStartBefore:function(t){this.setStart(t.getParent(),t.getIndex());},setEndAfter:function(t){this.setEnd(t.getParent(),t.getIndex()+1);},setEndBefore:function(t){this.setEnd(t.getParent(),t.getIndex());},setStartAt:function(t,u){var v=this;switch(u){case 1:v.setStart(t,0);break;case 2:if(t.type==3)v.setStart(t,t.getLength());else v.setStart(t,t.getChildCount());break;case 3:v.setStartBefore(t);break;case 4:v.setStartAfter(t);}l(v);},setEndAt:function(t,u){var v=this;switch(u){case 1:v.setEnd(t,0);break;case 2:if(t.type==3)v.setEnd(t,t.getLength());else v.setEnd(t,t.getChildCount());break;case 3:v.setEndBefore(t);break;case 4:v.setEndAfter(t);}l(v);},fixBlock:function(t,u){var x=this;var v=x.createBookmark(),w=x.document.createElement(u);x.collapse(t);x.enlarge(2);x.extractContents().appendTo(w);w.trim();if(!c)w.appendBogus();x.insertNode(w);x.moveToBookmark(v);return w;},splitBlock:function(t){var D=this;var u=new d.elementPath(D.startContainer),v=new d.elementPath(D.endContainer),w=u.blockLimit,x=v.blockLimit,y=u.block,z=v.block,A=null;if(!w.equals(x))return null;if(t!='br'){if(!y){y=D.fixBlock(true,t);z=new d.elementPath(D.endContainer).block;}if(!z)z=D.fixBlock(false,t);}var B=y&&D.checkStartOfBlock(),C=z&&D.checkEndOfBlock();D.deleteContents();if(y&&y.equals(z))if(C){A=new d.elementPath(D.startContainer);D.moveToPosition(z,4);z=null;}else if(B){A=new d.elementPath(D.startContainer);D.moveToPosition(y,3);y=null;}else{z=D.splitElement(y);if(!c&&!y.is('ul','ol'))y.appendBogus();}return{previousBlock:y,nextBlock:z,wasStartOfBlock:B,wasEndOfBlock:C,elementPath:A};},splitElement:function(t){var w=this;if(!w.collapsed)return null;w.setEndAt(t,2);
x.optimizeBookmark();x.trim(false,true);var u=x.startContainer,v=x.startOffset,w=u.getChild(v);if(w)t.insertBefore(w);else u.append(t);if(t.getParent().equals(x.endContainer))x.endOffset++;x.setStartBefore(t);},moveToPosition:function(t,u){this.setStartAt(t,u);this.collapse(true);},selectNodeContents:function(t){this.setStart(t,0);this.setEnd(t,t.type==3?t.getLength():t.getChildCount());},setStart:function(t,u){var v=this;v.startContainer=t;v.startOffset=u;if(!v.endContainer){v.endContainer=t;v.endOffset=u;}l(v);},setEnd:function(t,u){var v=this;v.endContainer=t;v.endOffset=u;if(!v.startContainer){v.startContainer=t;v.startOffset=u;}l(v);},setStartAfter:function(t){this.setStart(t.getParent(),t.getIndex()+1);},setStartBefore:function(t){this.setStart(t.getParent(),t.getIndex());},setEndAfter:function(t){this.setEnd(t.getParent(),t.getIndex()+1);},setEndBefore:function(t){this.setEnd(t.getParent(),t.getIndex());},setStartAt:function(t,u){var v=this;switch(u){case 1:v.setStart(t,0);break;case 2:if(t.type==3)v.setStart(t,t.getLength());else v.setStart(t,t.getChildCount());break;case 3:v.setStartBefore(t);break;case 4:v.setStartAfter(t);}l(v);},setEndAt:function(t,u){var v=this;switch(u){case 1:v.setEnd(t,0);break;case 2:if(t.type==3)v.setEnd(t,t.getLength());else v.setEnd(t,t.getChildCount());break;case 3:v.setEndBefore(t);break;case 4:v.setEndAfter(t);}l(v);},fixBlock:function(t,u){var x=this;var v=x.createBookmark(),w=x.document.createElement(u);x.collapse(t);x.enlarge(2);x.extractContents().appendTo(w);w.trim();if(!c)w.appendBogus();x.insertNode(w);x.moveToBookmark(v);return w;},splitBlock:function(t){var D=this;var u=new d.elementPath(D.startContainer),v=new d.elementPath(D.endContainer),w=u.blockLimit,x=v.blockLimit,y=u.block,z=v.block,A=null;if(!w.equals(x))return null;if(t!='br'){if(!y){y=D.fixBlock(true,t);z=new d.elementPath(D.endContainer).block;}if(!z)z=D.fixBlock(false,t);}var B=y&&D.checkStartOfBlock(),C=z&&D.checkEndOfBlock();D.deleteContents();if(y&&y.equals(z))if(C){A=new d.elementPath(D.startContainer);D.moveToPosition(z,4);z=null;}else if(B){A=new d.elementPath(D.startContainer);D.moveToPosition(y,3);y=null;}else{z=D.splitElement(y);if(!c&&!y.is('ul','ol'))y.appendBogus();}return{previousBlock:y,nextBlock:z,wasStartOfBlock:B,wasEndOfBlock:C,elementPath:A};},splitElement:function(t){var w=this;if(!w.collapsed)return null;w.setEndAt(t,2);var u=w.extractContents(),v=t.clone(false);u.appendTo(v);v.insertAfter(t);w.moveToPosition(t,4);return v;},checkBoundaryOfElement:function(t,u){var v=this.clone();
words=Zotero.Utilities.cleanString(s).toLowerCase().split(" ");
words=Zotero.Utilities.trimInternal(s).toLowerCase().split(" ");
function fixCaps(s){ if(s!='') { words=Zotero.Utilities.cleanString(s).toLowerCase().split(" "); for (var j = 0 ; j < words.length ; j++) { if (j==0||(words[j][0] ==words[j][0].toLowerCase()&&words[j]!="or"&&words[j]!="and"&&words[j]!="of"&&words[j]!="in")) { words[j]= words[j][0].toUpperCase() +words[j].substr(1); } } return words.join(" "); } return '';}
case 'tenor': el.verticalPos+=2; min += 6; max += 6; break; case 'bass': el.verticalPos--; min += 6; max += 6; break; case 'alto': el.verticalPos-=2; min += 4; max += 4; break; case 'treble+8': break; case 'tenor+8': el.verticalPos+=2; min += 6; max += 6; break; case 'bass+8': el.verticalPos--; min += 6; max += 6; break; case 'alto+8': el.verticalPos-=2; min += 4; max += 4; break; case 'treble-8': break; case 'tenor-8': el.verticalPos+=2; min += 6; max += 6; break; case 'bass-8': el.verticalPos--; min += 6; max += 6; break; case 'alto-8': el.verticalPos-=2; min += 4; max += 4; break;
case 'treble+8': case 'treble-8': break; case 'bass': case 'bass+8': case 'bass-8': el.verticalPos--; min += 6; max += 6; break; case 'tenor': case 'tenor+8': case 'tenor-8': el.verticalPos = - el.verticalPos; min = -40; max = 40; break; case 'alto': case 'alto+8': case 'alto-8': el.verticalPos = - el.verticalPos; min = -40; max = 40;
function fixClefPlacement(el) { //if (el.el_type === 'clef') { var min = -2; var max = 5; switch(el.type) { case 'tenor': el.verticalPos+=2; min += 6; max += 6; break; case 'bass': el.verticalPos--; min += 6; max += 6; break; case 'alto': el.verticalPos-=2; min += 4; max += 4; break; case 'treble+8': break; case 'tenor+8': el.verticalPos+=2; min += 6; max += 6; break; case 'bass+8': el.verticalPos--; min += 6; max += 6; break; case 'alto+8': el.verticalPos-=2; min += 4; max += 4; break; case 'treble-8': break; case 'tenor-8': el.verticalPos+=2; min += 6; max += 6; break; case 'bass-8': el.verticalPos--; min += 6; max += 6; break; case 'alto-8': el.verticalPos-=2; min += 4; max += 4; break; } if (el.verticalPos < min) { while (el.verticalPos < min) el.verticalPos += 7; } else if (el.verticalPos > max) { while (el.verticalPos > max) el.verticalPos -= 7; } //} }
var fixedKey = Object.clone(key); this.addPosToKey(clef, fixedKey); return fixedKey; }
var fixedKey = Object.clone(key); this.addPosToKey(clef, fixedKey); return fixedKey; };
this.fixKey = function(clef, key) { var fixedKey = Object.clone(key); this.addPosToKey(clef, fixedKey); return fixedKey; }
flashItem: function (flashyItem, numberOfTimes, theWindow) {
flashItem: function (flashyItem, numberOfTimes, theWindow) { if (flashyItem === undefined || flashyItem == null) return;
flashItem: function (flashyItem, numberOfTimes, theWindow) { if (numberOfTimes < 1) return; if (numberOfTimes % 2 == 1) flashyItem.setAttribute("class", ""); else flashyItem.setAttribute("class", "highlight"); theWindow.setTimeout(arguments.callee, 600 - (numberOfTimes * 40), flashyItem, numberOfTimes-1, theWindow); },
fn : function(btnName) { if (btnName == 'yes' || btnName == 'ok') { Ext.Ajax.request({ callback : this.resetPasswordCallback, cbPassThru : { resourceId : rec.id }, scope : this, method : 'DELETE', url : Sonatype.config.repos.urls.usersReset + '/' + rec.data.userId }); } }
fn : function(control, newValue, oldValue) { if (newValue != this.lastLoadedId) { this.loadUserId(); } },
fn : function(btnName) { if (btnName == 'yes' || btnName == 'ok') { Ext.Ajax.request({ callback : this.resetPasswordCallback, cbPassThru : { resourceId : rec.id }, scope : this, method : 'DELETE', url : Sonatype.config.repos.urls.usersReset + '/' + rec.data.userId }); } }
}if(f<e-1){for(;f<e-1;f++)j.push('<td></td>');j.push('</tr>');}j.push('</tbody></table></div>');var l={type:'html',html:j.join(''),onLoad:function(m){g=m.sender;},focus:function(){var m=this.getElement().getElementsByTag('a').getItem(0);m.focus();},onClick:h,style:'width: 100%; border-collapse: separate;'};return{title:a.lang.smiley.title,minWidth:270,minHeight:120,contents:[{id:'tab1',label:'',title:'',expand:true,padding:0,elements:[l]}],buttons:[CKEDITOR.dialog.cancelButton]};});
if(f%e==e-1)k.push('</tr>');}if(f<e-1){for(;f<e-1;f++)k.push('<td></td>');k.push('</tr>');}k.push('</tbody></table></div>');var n={type:'html',html:k.join(''),onLoad:function(o){g=o.sender;},focus:function(){var o=this.getElement().getElementsByTag('a').getItem(0);o.focus();},onClick:h,style:'width: 100%; border-collapse: separate;'};return{title:a.lang.smiley.title,minWidth:270,minHeight:120,contents:[{id:'tab1',label:'',title:'',expand:true,padding:0,elements:[n]}],buttons:[CKEDITOR.dialog.cancelButton]};});
}if(f<e-1){for(;f<e-1;f++)j.push('<td></td>');j.push('</tr>');}j.push('</tbody></table></div>');var l={type:'html',html:j.join(''),onLoad:function(m){g=m.sender;},focus:function(){var m=this.getElement().getElementsByTag('a').getItem(0);m.focus();},onClick:h,style:'width: 100%; border-collapse: separate;'};return{title:a.lang.smiley.title,minWidth:270,minHeight:120,contents:[{id:'tab1',label:'',title:'',expand:true,padding:0,elements:[l]}],buttons:[CKEDITOR.dialog.cancelButton]};});
if (win && win.document instanceof HTMLDocument || liberator.focus instanceof HTMLAnchorElement) {
if (win && (win.document instanceof HTMLDocument || win.document instanceof XMLDocument) || liberator.focus instanceof HTMLAnchorElement) {
focusChange: function (win) { // we switch to -- MESSAGE -- mode for Muttator, when the main HTML widget gets focus if (win && win.document instanceof HTMLDocument || liberator.focus instanceof HTMLAnchorElement) { if (config.isComposeWindow) modes.set(modes.INSERT, modes.TEXTAREA); else if (liberator.mode != modes.MESSAGE) liberator.mode = modes.MESSAGE; } },
var i=a.config;a.focusManager=function(j){if(j.focusManager)return j.focusManager;this.hasFocus=false;this._={editor:j};return this;};a.focusManager.prototype={focus:function(){var k=this;if(k._.timer)clearTimeout(k._.timer);if(!k.hasFocus){if(a.currentInstance)a.currentInstance.focusManager.forceBlur();var j=k._.editor;j.container.getChild(1).addClass('cke_focus');k.hasFocus=true;j.fire('focus');}},blur:function(){var j=this;if(j._.timer)clearTimeout(j._.timer);j._.timer=setTimeout(function(){delete j._.timer;j.forceBlur();},100);},forceBlur:function(){if(this.hasFocus){var j=this._.editor;j.container.getChild(1).removeClass('cke_focus');this.hasFocus=false;j.fire('blur');}}};(function(){var j={};a.lang={languages:{af:1,ar:1,bg:1,bn:1,bs:1,ca:1,cs:1,cy:1,da:1,de:1,el:1,'en-au':1,'en-ca':1,'en-gb':1,en:1,eo:1,es:1,et:1,eu:1,fa:1,fi:1,fo:1,'fr-ca':1,fr:1,gl:1,gu:1,he:1,hi:1,hr:1,hu:1,is:1,it:1,ja:1,km:1,ko:1,lt:1,lv:1,mn:1,ms:1,nb:1,nl:1,no:1,pl:1,'pt-br':1,pt:1,ro:1,ru:1,sk:1,sl:1,'sr-latn':1,sr:1,sv:1,th:1,tr:1,uk:1,vi:1,'zh-cn':1,zh:1},load:function(k,l,m){if(!k||!a.lang.languages[k])k=this.detect(l,k);if(!this[k])a.scriptLoader.load(a.getUrl('lang/'+k+'.js'),function(){m(k,this[k]);},this);else m(k,this[k]);},detect:function(k,l){var m=this.languages;l=l||navigator.userLanguage||navigator.language;var n=l.toLowerCase().match(/([a-z]+)(?:-([a-z]+))?/),o=n[1],p=n[2];if(m[o+'-'+p])o=o+'-'+p;else if(!m[o])o=null;a.lang.detect=o?function(){return o;}:function(q){return q;};return o||k;}};})();a.scriptLoader=(function(){var j={},k={};return{load:function(l,m,n,o,p){var q=typeof l=='string';if(q)l=[l];if(!n)n=a;var r=l.length,s=[],t=[],u=function(z){if(m)if(q)m.call(n,z);else m.call(n,s,t);};if(r===0){u(true);return;}var v=function(z,A){(A?s:t).push(z);if(--r<=0){p&&a.document.getDocumentElement().removeStyle('cursor');u(A);}},w=function(z,A){j[z]=1;var B=k[z];delete k[z];for(var C=0;C<B.length;C++)B[C](z,A);},x=function(z){if(o!==true&&j[z]){v(z,true);return;}var A=k[z]||(k[z]=[]);A.push(v);if(A.length>1)return;var B=new h('script');B.setAttributes({type:'text/javascript',src:z});if(m)if(c)B.$.onreadystatechange=function(){if(B.$.readyState=='loaded'||B.$.readyState=='complete'){B.$.onreadystatechange=null;w(z,true);}};else{B.$.onload=function(){setTimeout(function(){w(z,true);},0);};B.$.onerror=function(){w(z,false);};}B.appendTo(a.document.getHead());};p&&a.document.getDocumentElement().setStyle('cursor','wait');for(var y=0;y<r;y++)x(l[y]);},loadCode:function(l){var m=new h('script');
return function(j,k,l){if(typeof k=='number'){if(l&&!(c&&b.quirks)){var m=0;for(var n=0,o=i[j].length;n<o;n++)m+=parseInt(this.getComputedStyle(i[j][n])||0,10);k-=m;}this.setStyle(j,k+'px');}};})()});a.command=function(i,j){this.uiItems=[];this.exec=function(k){if(this.state==0)return false;if(this.editorFocus)i.focus();return j.exec.call(this,i,k)!==false;};e.extend(this,j,{modes:{wysiwyg:1},editorFocus:true,state:2});a.event.call(this);};a.command.prototype={enable:function(){var i=this;if(i.state==0)i.setState(!i.preserveState||typeof i.previousState=='undefined'?2:i.previousState);},disable:function(){this.setState(0);},setState:function(i){var j=this;if(j.state==i)return false;j.previousState=j.state;j.state=i;j.fire('state');return true;},toggleState:function(){var i=this;if(i.state==2)i.setState(1);else if(i.state==1)i.setState(2);}};a.event.implementOn(a.command.prototype,true);a.ENTER_P=1;a.ENTER_BR=2;a.ENTER_DIV=3;a.config={customConfig:'config.js',autoUpdateElement:true,baseHref:'',contentsCss:a.basePath+'contents.css',contentsLangDirection:'ui',contentsLanguage:'',language:'',defaultLanguage:'en',enterMode:1,forceEnterMode:false,shiftEnterMode:2,corePlugins:'',docType:'<!DOCTYPE html PUBLIC "-
var i=a.config;a.focusManager=function(j){if(j.focusManager)return j.focusManager;this.hasFocus=false;this._={editor:j};return this;};a.focusManager.prototype={focus:function(){var k=this;if(k._.timer)clearTimeout(k._.timer);if(!k.hasFocus){if(a.currentInstance)a.currentInstance.focusManager.forceBlur();var j=k._.editor;j.container.getChild(1).addClass('cke_focus');k.hasFocus=true;j.fire('focus');}},blur:function(){var j=this;if(j._.timer)clearTimeout(j._.timer);j._.timer=setTimeout(function(){delete j._.timer;j.forceBlur();},100);},forceBlur:function(){if(this.hasFocus){var j=this._.editor;j.container.getChild(1).removeClass('cke_focus');this.hasFocus=false;j.fire('blur');}}};(function(){var j={};a.lang={languages:{af:1,ar:1,bg:1,bn:1,bs:1,ca:1,cs:1,cy:1,da:1,de:1,el:1,'en-au':1,'en-ca':1,'en-gb':1,en:1,eo:1,es:1,et:1,eu:1,fa:1,fi:1,fo:1,'fr-ca':1,fr:1,gl:1,gu:1,he:1,hi:1,hr:1,hu:1,is:1,it:1,ja:1,km:1,ko:1,lt:1,lv:1,mn:1,ms:1,nb:1,nl:1,no:1,pl:1,'pt-br':1,pt:1,ro:1,ru:1,sk:1,sl:1,'sr-latn':1,sr:1,sv:1,th:1,tr:1,uk:1,vi:1,'zh-cn':1,zh:1},load:function(k,l,m){if(!k||!a.lang.languages[k])k=this.detect(l,k);if(!this[k])a.scriptLoader.load(a.getUrl('lang/'+k+'.js'),function(){m(k,this[k]);},this);else m(k,this[k]);},detect:function(k,l){var m=this.languages;l=l||navigator.userLanguage||navigator.language;var n=l.toLowerCase().match(/([a-z]+)(?:-([a-z]+))?/),o=n[1],p=n[2];if(m[o+'-'+p])o=o+'-'+p;else if(!m[o])o=null;a.lang.detect=o?function(){return o;}:function(q){return q;};return o||k;}};})();a.scriptLoader=(function(){var j={},k={};return{load:function(l,m,n,o,p){var q=typeof l=='string';if(q)l=[l];if(!n)n=a;var r=l.length,s=[],t=[],u=function(z){if(m)if(q)m.call(n,z);else m.call(n,s,t);};if(r===0){u(true);return;}var v=function(z,A){(A?s:t).push(z);if(--r<=0){p&&a.document.getDocumentElement().removeStyle('cursor');u(A);}},w=function(z,A){j[z]=1;var B=k[z];delete k[z];for(var C=0;C<B.length;C++)B[C](z,A);},x=function(z){if(o!==true&&j[z]){v(z,true);return;}var A=k[z]||(k[z]=[]);A.push(v);if(A.length>1)return;var B=new h('script');B.setAttributes({type:'text/javascript',src:z});if(m)if(c)B.$.onreadystatechange=function(){if(B.$.readyState=='loaded'||B.$.readyState=='complete'){B.$.onreadystatechange=null;w(z,true);}};else{B.$.onload=function(){setTimeout(function(){w(z,true);},0);};B.$.onerror=function(){w(z,false);};}B.appendTo(a.document.getHead());};p&&a.document.getDocumentElement().setStyle('cursor','wait');for(var y=0;y<r;y++)x(l[y]);},loadCode:function(l){var m=new h('script');
let frames = buffer.allFrames.slice(1)
let frames = buffer.getAllFrames().slice(1)
followDocumentRelationship: function (rel) { let regexes = options.get(rel + "pattern").values .map(function (re) RegExp(re, "i")); function followFrame(frame) { function iter(elems) { for (let i = 0; i < elems.length; i++) if (elems[i].rel.toLowerCase() == rel || elems[i].rev.toLowerCase() == rel) yield elems[i]; } // <link>s have higher priority than normal <a> hrefs let elems = frame.document.getElementsByTagName("link"); for (let elem in iter(elems)) { liberator.open(elem.href); return true; } // no links? ok, look for hrefs elems = frame.document.getElementsByTagName("a"); for (let elem in iter(elems)) { buffer.followLink(elem, liberator.CURRENT_TAB); return true; } let res = util.evaluateXPath(options.get("hinttags").value, frame.document); for (let [, regex] in Iterator(regexes)) { for (let i in util.range(res.snapshotLength, 0, -1)) { let elem = res.snapshotItem(i); if (regex.test(elem.textContent) || regex.test(elem.title) || Array.some(elem.childNodes, function (child) regex.test(child.alt))) { buffer.followLink(elem, liberator.CURRENT_TAB); return true; } } } return false; } let ret = followFrame(window.content); if (!ret) { // only loop through frames (ordered by size) if the main content didn't match let frames = buffer.allFrames.slice(1) .sort( function(a, b) { return ((b.scrollMaxX+b.innerWidth)*(b.scrollMaxY+b.innerHeight)) - ((a.scrollMaxX+a.innerWidth)*(a.scrollMaxY+a.innerHeight)) } ); ret = Array.some(frames, followFrame); } if (!ret) liberator.beep(); },
}
};
BF.format_number = function (num){ var rgx; if (num < 1000) { return num; } /// Quickly converts a number to a string quickly. num += ""; rgx = /^([0-9]+)([0-9][0-9][0-9])/; while (rgx.test(num)) { num = num.replace(rgx, "$1,$2"); } return num;}
var classifierStr = record.get( 'classifier' ); return classifierStr;
return store.grid.formatCellLink( record, store, 'classifier' );
formatClassifierLink : function( value, p, record, rowIndex, colIndex, store) { var classifierStr = record.get( 'classifier' ); //if ( 'ALL' == classifierStr ) { //} //else { return classifierStr; //} },
for (var i = 0; i < record.data.hits[0].artifactLinks.length; i++)
for (var i = 0; i < record.data.artifactHits[0].artifactLinks.length; i++)
formatDownloadLinks : function(value, p, record, rowIndex, colIndex, store) { value = '' for (var i = 0; i < record.data.hits[0].artifactLinks.length; i++) { if (i > 0) { value += ', '; } var cls = record.data.hits[0].artifactLinks[i].classifier; var ext = record.data.hits[0].artifactLinks[i].extension; var link = record.data.hits[0].artifactLinks[i].artifactLink; value += '<a href="' + link + '" onmousedown="cancel_bubble(event)" onclick="cancel_bubble(event); return true;" target="_blank">' + (cls ? (cls + '.' + ext) : ext) + '</a>'; } return value; },
var cls = record.data.hits[0].artifactLinks[i].classifier; var ext = record.data.hits[0].artifactLinks[i].extension; var link = record.data.hits[0].artifactLinks[i].artifactLink;
var cls = record.data.artifactHits[0].artifactLinks[i].classifier; var ext = record.data.artifactHits[0].artifactLinks[i].extension; var link = record.data.artifactHits[0].artifactLinks[i].artifactLink;
formatDownloadLinks : function(value, p, record, rowIndex, colIndex, store) { value = '' for (var i = 0; i < record.data.hits[0].artifactLinks.length; i++) { if (i > 0) { value += ', '; } var cls = record.data.hits[0].artifactLinks[i].classifier; var ext = record.data.hits[0].artifactLinks[i].extension; var link = record.data.hits[0].artifactLinks[i].artifactLink; value += '<a href="' + link + '" onmousedown="cancel_bubble(event)" onclick="cancel_bubble(event); return true;" target="_blank">' + (cls ? (cls + '.' + ext) : ext) + '</a>'; } return value; },
var packagingStr = record.get( 'packaging' ); return packagingStr;
return store.grid.formatCellLink( record, store, 'packaging' );
formatPackagingLink : function( value, p, record, rowIndex, colIndex, store) { var packagingStr = record.get( 'packaging' ); //if ( 'ALL' == packagingStr ) { //} //else { return packagingStr; //} },
var versionStr = record.get( 'version' ); if ( 'LATEST' == versionStr ) { var gid = record.get( 'groupId' ); var aid = record.get( 'artifactId' ); var pac = record.get( 'packaging' ); var clas = record.get( 'classifier' ); return '<a href="#nexus-search;gav~'+gid+'~'+aid+'~~'+pac+'~'+ clas + '~kw " onmousedown="cancel_bubble(event)" onclick="cancel_bubble(event); return true;">Drill Down</a>'; } else { return versionStr; }
return store.grid.formatCellLink( record, store, 'version' );
formatVersionLink : function(value, p, record, rowIndex, colIndex, store) { var versionStr = record.get( 'version' ); if ( 'LATEST' == versionStr ) { var gid = record.get( 'groupId' ); var aid = record.get( 'artifactId' ); var pac = record.get( 'packaging' ); var clas = record.get( 'classifier' ); return '<a href="#nexus-search;gav~'+gid+'~'+aid+'~~'+pac+'~'+ clas + '~kw " onmousedown="cancel_bubble(event)" onclick="cancel_bubble(event); return true;">Drill Down</a>'; } else { return versionStr; } },
var ver = record.get('version');
formatVersionLink : function(value, p, record, rowIndex, colIndex, store) { if ('COLLAPSED' != record.get('version')) { return record.get('version'); } var ver = record.get('version'); var gid = record.get('groupId'); var aid = record.get('artifactId'); var extras = '~kw,versionexpand'; return '<a href="#nexus-search;gav~' + gid + '~' + aid + '~' + ver + '~~~kw,versionexpand' + ' " onmousedown="cancel_bubble(event)" onclick="cancel_bubble(event); return true;">Drill Down</a>'; },
return '<a href="#nexus-search;gav~' + gid + '~' + aid + '~' + ver + '~~~kw,versionexpand' + ' " onmousedown="cancel_bubble(event)" onclick="cancel_bubble(event); return true;">Drill Down</a>';
return '<a href="#nexus-search;gav~' + gid + '~' + aid + '~~~~kw,versionexpand' + ' " onmousedown="cancel_bubble(event)" onclick="cancel_bubble(event); return true;">Drill Down</a>';
formatVersionLink : function(value, p, record, rowIndex, colIndex, store) { if ('COLLAPSED' != record.get('version')) { return record.get('version'); } var ver = record.get('version'); var gid = record.get('groupId'); var aid = record.get('artifactId'); var extras = '~kw,versionexpand'; return '<a href="#nexus-search;gav~' + gid + '~' + aid + '~' + ver + '~~~kw,versionexpand' + ' " onmousedown="cancel_bubble(event)" onclick="cancel_bubble(event); return true;">Drill Down</a>'; },
if ('COLLAPSED' != record.get('version'))
if (!store.reader.jsonData.collapsed)
formatVersionLink : function(value, p, record, rowIndex, colIndex, store) { if ('COLLAPSED' != record.get('version')) { return record.get('version'); } var gid = record.get('groupId'); var aid = record.get('artifactId'); var extras = '~kw,versionexpand'; return '<a href="#nexus-search;gav~' + gid + '~' + aid + '~~~~kw,versionexpand' + ' " onmousedown="cancel_bubble(event)" onclick="cancel_bubble(event); return true;">Drill Down</a>'; },
var gid = record.get('groupId'); var aid = record.get('artifactId'); var extras = '~kw,versionexpand'; return '<a href="#nexus-search;gav~' + gid + '~' + aid + '~~~~kw,versionexpand' + ' " onmousedown="cancel_bubble(event)" onclick="cancel_bubble(event); return true;">Drill Down</a>';
return record.get('version') + ' <a href="#nexus-search;gav~' + record.get('groupId') + '~' + record.get('artifactId') + '~~~~kw,versionexpand " onmousedown="cancel_bubble(event)" onclick="cancel_bubble(event); return true;">(Expand All Versions)</a>';
formatVersionLink : function(value, p, record, rowIndex, colIndex, store) { if ('COLLAPSED' != record.get('version')) { return record.get('version'); } var gid = record.get('groupId'); var aid = record.get('artifactId'); var extras = '~kw,versionexpand'; return '<a href="#nexus-search;gav~' + gid + '~' + aid + '~~~~kw,versionexpand' + ' " onmousedown="cancel_bubble(event)" onclick="cancel_bubble(event); return true;">Drill Down</a>'; },
if(r)r.push(t);else A.onText(t);}q=A._.htmlPartsRegex.lastIndex;if(p=o[1]){p=p.toLowerCase();if(r&&f.$cdata[p]){A.onCDATA(r.join(''));r=null;}if(!r){A.onTagClose(p);continue;}}if(r){r.push(o[0]);continue;}if(p=o[3]){p=p.toLowerCase();var u={},v,w=o[4],x=!!(w&&w.charAt(w.length-1)=='/');if(w)while(v=l.exec(w)){var y=v[1].toLowerCase(),z=v[2]||v[3]||v[4]||'';if(!z&&m[y])u[y]=y;else u[y]=z;}A.onTagOpen(p,u,x);if(!r&&f.$cdata[p])r=[];continue;}if(p=o[2])A.onComment(p);}if(n.length>q)A.onText(n.substring(q,n.length));}};})();a.htmlParser.comment=function(l){this.value=l;this._={isBlockLike:false};};a.htmlParser.comment.prototype={type:8,writeHtml:function(l,m){var n=this.value;if(m){if(!(n=m.onComment(n,this)))return;if(typeof n!='string'){n.parent=this.parent;n.writeHtml(l,m);return;}}l.comment(n);}};(function(){var l=/[\t\r\n ]{2,}|[\t\r\n]/g;a.htmlParser.text=function(m){this.value=m;this._={isBlockLike:false};};a.htmlParser.text.prototype={type:3,writeHtml:function(m,n){var o=this.value;if(n&&!(o=n.onText(o,this)))return;m.text(o);}};})();(function(){a.htmlParser.cdata=function(l){this.value=l;};a.htmlParser.cdata.prototype={type:3,writeHtml:function(l){l.write(this.value);}};})();a.htmlParser.fragment=function(){this.children=[];this.parent=null;this._={isBlockLike:true,hasInlineStarted:false};};(function(){var l={colgroup:1,dd:1,dt:1,li:1,option:1,p:1,td:1,tfoot:1,th:1,thead:1,tr:1},m=e.extend({table:1,ul:1,ol:1,dl:1},f.table,f.ul,f.ol,f.dl),n=f.$list,o=f.$listItem;a.htmlParser.fragment.fromHtml=function(p,q){var r=new a.htmlParser(),s=[],t=new a.htmlParser.fragment(),u=[],v=[],w=t,x=false,y;function z(E){var F;if(u.length>0)for(var G=0;G<u.length;G++){var H=u[G],I=H.name,J=f[I],K=w.name&&f[w.name];if((!K||K[I])&&(!E||!J||J[E]||!f[E])){if(!F){A();F=1;}H=H.clone();H.parent=w;w=H;u.splice(G,1);G--;}}};function A(){while(v.length)w.add(v.shift());};function B(E,F,G){F=F||w||t;if(q&&!F.type){var H,I;if(E.attributes&&(I=E.attributes._cke_real_element_type))H=I;else H=E.name;if(H&&!(H in f.$body)&&!(H in f.$nonBodyContent)){var J=w;w=F;r.onTagOpen(q,{});F=w;if(G)w=J;}}if(E._.isBlockLike&&E.name!='pre'){var K=E.children.length,L=E.children[K-1],M;if(L&&L.type==3)if(!(M=e.rtrim(L.value)))E.children.length=K-1;else L.value=M;}F.add(E);if(E.returnPoint){w=E.returnPoint;delete E.returnPoint;}};r.onTagOpen=function(E,F,G){var H=new a.htmlParser.element(E,F);if(H.isUnknown&&G)H.isEmpty=true;if(f.$removeEmpty[E]){u.push(H);return;}else if(E=='pre')x=true;else if(E=='br'&&x){w.add(new a.htmlParser.text('\n')); return;}if(E=='br'){v.push(H);return;}var I=w.name,J=I&&(f[I]||(w._.isBlockLike?f.div:f.span));if(J&&!H.isUnknown&&!w.isUnknown&&!J[E]){var K=false,L;if(E in n&&I in n){var M=w.children,N=M[M.length-1];if(!(N&&N.name in o))B(N=new a.htmlParser.element('li'),w);y=w,L=N;}else if(E==I)B(w,w.parent);else{if(m[I]){if(!y)y=w;}else{B(w,w.parent,true);if(!l[I])u.unshift(w);}K=true;}if(L)w=L;else w=w.returnPoint||w.parent;if(K){r.onTagOpen.apply(this,arguments);return;}}z(E);A();H.parent=w;H.returnPoint=y;y=0;if(H.isEmpty)B(H);else w=H;};r.onTagClose=function(E){for(var F=u.length-1;F>=0;F--){if(E==u[F].name){u.splice(F,1);return;}}var G=[],H=[],I=w;while(I.type&&I.name!=E){if(!I._.isBlockLike)H.unshift(I);G.push(I);I=I.parent;}if(I.type){for(F=0;F<G.length;F++){var J=G[F];B(J,J.parent);}w=I;if(w.name=='pre')x=false;if(I._.isBlockLike)A();B(I,I.parent);if(I==w)w=w.parent;u=u.concat(H);}if(E=='body')q=false;};r.onText=function(E){if(!w._.hasInlineStarted&&!x){E=e.ltrim(E);if(E.length===0)return;}A();z();if(q&&(!w.type||w.name=='body')&&e.trim(E))this.onTagOpen(q,{});if(!x)E=E.replace(/[\t\r\n ]{2,}|[\t\r\n]/g,' ');w.add(new a.htmlParser.text(E));};r.onCDATA=function(E){w.add(new a.htmlParser.cdata(E));};r.onComment=function(E){w.add(new a.htmlParser.comment(E));};r.parse(p);A();while(w.type){var C=w.parent,D=w;if(q&&(!C.type||C.name=='body')&&!f.$body[D.name]){w=C;r.onTagOpen(q,{});C=w;}C.add(D);w=C;}return t;};a.htmlParser.fragment.prototype={add:function(p){var s=this;var q=s.children.length,r=q>0&&s.children[q-1]||null;if(r){if(p._.isBlockLike&&r.type==3){r.value=e.rtrim(r.value);if(r.value.length===0){s.children.pop();s.add(p);return;}}r.next=p;}p.previous=r;p.parent=s;s.children.push(p);s._.hasInlineStarted=p.type==3||p.type==1&&!p._.isBlockLike;},writeHtml:function(p,q){var r;this.filterChildren=function(){var s=new a.htmlParser.basicWriter();this.writeChildrenHtml.call(this,s,q,true);var t=s.getHtml();this.children=new a.htmlParser.fragment.fromHtml(t).children;r=1;};!this.name&&q&&q.onFragment(this);this.writeChildrenHtml(p,r?null:q);},writeChildrenHtml:function(p,q){for(var r=0;r<this.children.length;r++)this.children[r].writeHtml(p,q);}};})();a.htmlParser.element=function(l,m){var r=this;r.name=l;r.attributes=m||(m={});r.children=[];var n=m._cke_real_element_type||l,o=f,p=!!(o.$nonBodyContent[n]||o.$block[n]||o.$listItem[n]||o.$tableContent[n]||o.$nonEditable[n]||n=='br'),q=!!o.$empty[l];r.isEmpty=q;r.isUnknown=!o[l];r._={isBlockLike:p,hasInlineStarted:q||!p};
if(!z&&m[y])u[y]=y;else u[y]=z;}A.onTagOpen(p,u,x);if(!r&&f.$cdata[p])r=[];continue;}if(p=o[2])A.onComment(p);}if(n.length>q)A.onText(n.substring(q,n.length));}};})();a.htmlParser.comment=function(l){this.value=l;this._={isBlockLike:false};};a.htmlParser.comment.prototype={type:8,writeHtml:function(l,m){var n=this.value;if(m){if(!(n=m.onComment(n,this)))return;if(typeof n!='string'){n.parent=this.parent;n.writeHtml(l,m);return;}}l.comment(n);}};(function(){var l=/[\t\r\n ]{2,}|[\t\r\n]/g;a.htmlParser.text=function(m){this.value=m;this._={isBlockLike:false};};a.htmlParser.text.prototype={type:3,writeHtml:function(m,n){var o=this.value;if(n&&!(o=n.onText(o,this)))return;m.text(o);}};})();(function(){a.htmlParser.cdata=function(l){this.value=l;};a.htmlParser.cdata.prototype={type:3,writeHtml:function(l){l.write(this.value);}};})();a.htmlParser.fragment=function(){this.children=[];this.parent=null;this._={isBlockLike:true,hasInlineStarted:false};};(function(){var l={colgroup:1,dd:1,dt:1,li:1,option:1,p:1,td:1,tfoot:1,th:1,thead:1,tr:1},m=e.extend({table:1,ul:1,ol:1,dl:1},f.table,f.ul,f.ol,f.dl),n=f.$list,o=f.$listItem;a.htmlParser.fragment.fromHtml=function(p,q){var r=new a.htmlParser(),s=[],t=new a.htmlParser.fragment(),u=[],v=[],w=t,x=false,y;function z(E){var F;if(u.length>0)for(var G=0;G<u.length;G++){var H=u[G],I=H.name,J=f[I],K=w.name&&f[w.name];if((!K||K[I])&&(!E||!J||J[E]||!f[E])){if(!F){A();F=1;}H=H.clone();H.parent=w;w=H;u.splice(G,1);G--;}}};function A(E){while(v.length-(E||0)>0)w.add(v.shift());};function B(E,F,G){F=F||w||t;if(q&&!F.type){var H,I;if(E.attributes&&(I=E.attributes._cke_real_element_type))H=I;else H=E.name;if(H&&!(H in f.$body)&&!(H in f.$nonBodyContent)){var J=w;w=F;r.onTagOpen(q,{});F=w;if(G)w=J;}}if(E._.isBlockLike&&E.name!='pre'){var K=E.children.length,L=E.children[K-1],M;if(L&&L.type==3)if(!(M=e.rtrim(L.value)))E.children.length=K-1;else L.value=M;}F.add(E);if(E.returnPoint){w=E.returnPoint;delete E.returnPoint;}};r.onTagOpen=function(E,F,G){var H=new a.htmlParser.element(E,F);if(H.isUnknown&&G)H.isEmpty=true;if(f.$removeEmpty[E]){u.push(H);return;}else if(E=='pre')x=true;else if(E=='br'&&x){w.add(new a.htmlParser.text('\n'));return;}if(E=='br'){v.push(H);return;}var I=w.name,J=I&&(f[I]||(w._.isBlockLike?f.div:f.span));if(J&&!H.isUnknown&&!w.isUnknown&&!J[E]){var K=false,L;if(E in n&&I in n){var M=w.children,N=M[M.length-1];if(!(N&&N.name in o))B(N=new a.htmlParser.element('li'),w);y=w,L=N;}else if(E==I)B(w,w.parent);else{if(m[I]){if(!y)y=w; }else{B(w,w.parent,true);if(!l[I])u.unshift(w);}K=true;}if(L)w=L;else w=w.returnPoint||w.parent;if(K){r.onTagOpen.apply(this,arguments);return;}}z(E);A();H.parent=w;H.returnPoint=y;y=0;if(H.isEmpty)B(H);else w=H;};r.onTagClose=function(E){for(var F=u.length-1;F>=0;F--){if(E==u[F].name){u.splice(F,1);return;}}var G=[],H=[],I=w;while(I.type&&I.name!=E){if(!I._.isBlockLike)H.unshift(I);G.push(I);I=I.parent;}if(I.type){for(F=0;F<G.length;F++){var J=G[F];B(J,J.parent);}w=I;if(w.name=='pre')x=false;if(I._.isBlockLike)A();B(I,I.parent);if(I==w)w=w.parent;u=u.concat(H);}if(E=='body')q=false;};r.onText=function(E){if(!w._.hasInlineStarted&&!x){E=e.ltrim(E);if(E.length===0)return;}A();z();if(q&&(!w.type||w.name=='body')&&e.trim(E))this.onTagOpen(q,{});if(!x)E=E.replace(/[\t\r\n ]{2,}|[\t\r\n]/g,' ');w.add(new a.htmlParser.text(E));};r.onCDATA=function(E){w.add(new a.htmlParser.cdata(E));};r.onComment=function(E){w.add(new a.htmlParser.comment(E));};r.parse(p);A(!c&&1);while(w.type){var C=w.parent,D=w;if(q&&(!C.type||C.name=='body')&&!f.$body[D.name]){w=C;r.onTagOpen(q,{});C=w;}C.add(D);w=C;}return t;};a.htmlParser.fragment.prototype={add:function(p){var s=this;var q=s.children.length,r=q>0&&s.children[q-1]||null;if(r){if(p._.isBlockLike&&r.type==3){r.value=e.rtrim(r.value);if(r.value.length===0){s.children.pop();s.add(p);return;}}r.next=p;}p.previous=r;p.parent=s;s.children.push(p);s._.hasInlineStarted=p.type==3||p.type==1&&!p._.isBlockLike;},writeHtml:function(p,q){var r;this.filterChildren=function(){var s=new a.htmlParser.basicWriter();this.writeChildrenHtml.call(this,s,q,true);var t=s.getHtml();this.children=new a.htmlParser.fragment.fromHtml(t).children;r=1;};!this.name&&q&&q.onFragment(this);this.writeChildrenHtml(p,r?null:q);},writeChildrenHtml:function(p,q){for(var r=0;r<this.children.length;r++)this.children[r].writeHtml(p,q);}};})();a.htmlParser.element=function(l,m){var r=this;r.name=l;r.attributes=m||(m={});r.children=[];var n=m._cke_real_element_type||l,o=f,p=!!(o.$nonBodyContent[n]||o.$block[n]||o.$listItem[n]||o.$tableContent[n]||o.$nonEditable[n]||n=='br'),q=!!o.$empty[l];r.isEmpty=q;r.isUnknown=!o[l];r._={isBlockLike:p,hasInlineStarted:q||!p};};(function(){var l=function(m,n){m=m[0];n=n[0];return m<n?-1:m>n?1:0;};a.htmlParser.element.prototype={type:1,add:a.htmlParser.fragment.prototype.add,clone:function(){return new a.htmlParser.element(this.name,this.attributes);},writeHtml:function(m,n){var o=this.attributes,p=this,q=p.name,r,s,t,u;p.filterChildren=function(){if(!u){var z=new a.htmlParser.basicWriter();
if(r)r.push(t);else A.onText(t);}q=A._.htmlPartsRegex.lastIndex;if(p=o[1]){p=p.toLowerCase();if(r&&f.$cdata[p]){A.onCDATA(r.join(''));r=null;}if(!r){A.onTagClose(p);continue;}}if(r){r.push(o[0]);continue;}if(p=o[3]){p=p.toLowerCase();var u={},v,w=o[4],x=!!(w&&w.charAt(w.length-1)=='/');if(w)while(v=l.exec(w)){var y=v[1].toLowerCase(),z=v[2]||v[3]||v[4]||'';if(!z&&m[y])u[y]=y;else u[y]=z;}A.onTagOpen(p,u,x);if(!r&&f.$cdata[p])r=[];continue;}if(p=o[2])A.onComment(p);}if(n.length>q)A.onText(n.substring(q,n.length));}};})();a.htmlParser.comment=function(l){this.value=l;this._={isBlockLike:false};};a.htmlParser.comment.prototype={type:8,writeHtml:function(l,m){var n=this.value;if(m){if(!(n=m.onComment(n,this)))return;if(typeof n!='string'){n.parent=this.parent;n.writeHtml(l,m);return;}}l.comment(n);}};(function(){var l=/[\t\r\n ]{2,}|[\t\r\n]/g;a.htmlParser.text=function(m){this.value=m;this._={isBlockLike:false};};a.htmlParser.text.prototype={type:3,writeHtml:function(m,n){var o=this.value;if(n&&!(o=n.onText(o,this)))return;m.text(o);}};})();(function(){a.htmlParser.cdata=function(l){this.value=l;};a.htmlParser.cdata.prototype={type:3,writeHtml:function(l){l.write(this.value);}};})();a.htmlParser.fragment=function(){this.children=[];this.parent=null;this._={isBlockLike:true,hasInlineStarted:false};};(function(){var l={colgroup:1,dd:1,dt:1,li:1,option:1,p:1,td:1,tfoot:1,th:1,thead:1,tr:1},m=e.extend({table:1,ul:1,ol:1,dl:1},f.table,f.ul,f.ol,f.dl),n=f.$list,o=f.$listItem;a.htmlParser.fragment.fromHtml=function(p,q){var r=new a.htmlParser(),s=[],t=new a.htmlParser.fragment(),u=[],v=[],w=t,x=false,y;function z(E){var F;if(u.length>0)for(var G=0;G<u.length;G++){var H=u[G],I=H.name,J=f[I],K=w.name&&f[w.name];if((!K||K[I])&&(!E||!J||J[E]||!f[E])){if(!F){A();F=1;}H=H.clone();H.parent=w;w=H;u.splice(G,1);G--;}}};function A(){while(v.length)w.add(v.shift());};function B(E,F,G){F=F||w||t;if(q&&!F.type){var H,I;if(E.attributes&&(I=E.attributes._cke_real_element_type))H=I;else H=E.name;if(H&&!(H in f.$body)&&!(H in f.$nonBodyContent)){var J=w;w=F;r.onTagOpen(q,{});F=w;if(G)w=J;}}if(E._.isBlockLike&&E.name!='pre'){var K=E.children.length,L=E.children[K-1],M;if(L&&L.type==3)if(!(M=e.rtrim(L.value)))E.children.length=K-1;else L.value=M;}F.add(E);if(E.returnPoint){w=E.returnPoint;delete E.returnPoint;}};r.onTagOpen=function(E,F,G){var H=new a.htmlParser.element(E,F);if(H.isUnknown&&G)H.isEmpty=true;if(f.$removeEmpty[E]){u.push(H);return;}else if(E=='pre')x=true;else if(E=='br'&&x){w.add(new a.htmlParser.text('\n'));return;}if(E=='br'){v.push(H);return;}var I=w.name,J=I&&(f[I]||(w._.isBlockLike?f.div:f.span));if(J&&!H.isUnknown&&!w.isUnknown&&!J[E]){var K=false,L;if(E in n&&I in n){var M=w.children,N=M[M.length-1];if(!(N&&N.name in o))B(N=new a.htmlParser.element('li'),w);y=w,L=N;}else if(E==I)B(w,w.parent);else{if(m[I]){if(!y)y=w;}else{B(w,w.parent,true);if(!l[I])u.unshift(w);}K=true;}if(L)w=L;else w=w.returnPoint||w.parent;if(K){r.onTagOpen.apply(this,arguments);return;}}z(E);A();H.parent=w;H.returnPoint=y;y=0;if(H.isEmpty)B(H);else w=H;};r.onTagClose=function(E){for(var F=u.length-1;F>=0;F--){if(E==u[F].name){u.splice(F,1);return;}}var G=[],H=[],I=w;while(I.type&&I.name!=E){if(!I._.isBlockLike)H.unshift(I);G.push(I);I=I.parent;}if(I.type){for(F=0;F<G.length;F++){var J=G[F];B(J,J.parent);}w=I;if(w.name=='pre')x=false;if(I._.isBlockLike)A();B(I,I.parent);if(I==w)w=w.parent;u=u.concat(H);}if(E=='body')q=false;};r.onText=function(E){if(!w._.hasInlineStarted&&!x){E=e.ltrim(E);if(E.length===0)return;}A();z();if(q&&(!w.type||w.name=='body')&&e.trim(E))this.onTagOpen(q,{});if(!x)E=E.replace(/[\t\r\n ]{2,}|[\t\r\n]/g,' ');w.add(new a.htmlParser.text(E));};r.onCDATA=function(E){w.add(new a.htmlParser.cdata(E));};r.onComment=function(E){w.add(new a.htmlParser.comment(E));};r.parse(p);A();while(w.type){var C=w.parent,D=w;if(q&&(!C.type||C.name=='body')&&!f.$body[D.name]){w=C;r.onTagOpen(q,{});C=w;}C.add(D);w=C;}return t;};a.htmlParser.fragment.prototype={add:function(p){var s=this;var q=s.children.length,r=q>0&&s.children[q-1]||null;if(r){if(p._.isBlockLike&&r.type==3){r.value=e.rtrim(r.value);if(r.value.length===0){s.children.pop();s.add(p);return;}}r.next=p;}p.previous=r;p.parent=s;s.children.push(p);s._.hasInlineStarted=p.type==3||p.type==1&&!p._.isBlockLike;},writeHtml:function(p,q){var r;this.filterChildren=function(){var s=new a.htmlParser.basicWriter();this.writeChildrenHtml.call(this,s,q,true);var t=s.getHtml();this.children=new a.htmlParser.fragment.fromHtml(t).children;r=1;};!this.name&&q&&q.onFragment(this);this.writeChildrenHtml(p,r?null:q);},writeChildrenHtml:function(p,q){for(var r=0;r<this.children.length;r++)this.children[r].writeHtml(p,q);}};})();a.htmlParser.element=function(l,m){var r=this;r.name=l;r.attributes=m||(m={});r.children=[];var n=m._cke_real_element_type||l,o=f,p=!!(o.$nonBodyContent[n]||o.$block[n]||o.$listItem[n]||o.$tableContent[n]||o.$nonEditable[n]||n=='br'),q=!!o.$empty[l];r.isEmpty=q;r.isUnknown=!o[l];r._={isBlockLike:p,hasInlineStarted:q||!p};
false&&f.load();return B(i)}if($f(a)){$f(a).getParent().innerHTML="";u=$f(a).getIndex();e[u]=f}else{e.push(f);u=e.length-1}I=parseInt(a.style.height,10)||a.clientHeight;if(typeof b=="string")b={src:b};j=a.id||"fp"+C();n=b.id||j+"_api";b.id=n;c.playerId=j;if(typeof c=="string")c={clip:{url:c}};if(typeof c.clip=="string")c.clip={url:c.clip};c.clip=c.clip||{};if(a.getAttribute("href",2)&&!c.clip.url)c.clip.url=a.getAttribute("href",2);h=new p(c.clip,-1,f);c.playlist=c.playlist||[c.clip];var q=0;o(c.playlist,
false&&f.load();return B(i)}if($f(a)){$f(a).getParent().innerHTML="";u=$f(a).getIndex();e[u]=f}else{e.push(f);u=e.length-1}G=parseInt(a.style.height,10)||a.clientHeight;if(typeof b=="string")b={src:b};j=a.id||"fp"+C();n=b.id||j+"_api";b.id=n;c.playerId=j;if(typeof c=="string")c={clip:{url:c}};if(typeof c.clip=="string")c.clip={url:c.clip};c.clip=c.clip||{};if(a.getAttribute("href",2)&&!c.clip.url)c.clip.url=a.getAttribute("href",2);h=new p(c.clip,-1,f);c.playlist=c.playlist||[c.clip];var q=0;o(c.playlist,
b)||"*",m=a.substring(b+1,a.length),f=[];o(document.getElementsByTagName(c),function(){this.className&&this.className.indexOf(m)!=-1&&f.push(this)});return f}}function B(a){a=a||window.event;if(a.preventDefault){a.stopPropagation();a.preventDefault()}else{a.returnValue=false;a.cancelBubble=true}return false}function y(a,b,c){a[b]=a[b]||[];a[b].push(c)}function C(){return"_"+(""+Math.random()).substring(2,10)}function A(a,b,c){function m(){function g(i){!f.isLoaded()&&f._fireEvent("onBeforeClick")!==false&&f.load();return B(i)}if($f(a)){$f(a).getParent().innerHTML="";u=$f(a).getIndex();e[u]=f}else{e.push(f);u=e.length-1}I=parseInt(a.style.height,10)||a.clientHeight;if(typeof b=="string")b={src:b};j=a.id||"fp"+C();n=b.id||j+"_api";b.id=n;c.playerId=j;if(typeof c=="string")c={clip:{url:c}};if(typeof c.clip=="string")c.clip={url:c.clip};c.clip=c.clip||{};if(a.getAttribute("href",2)&&!c.clip.url)c.clip.url=a.getAttribute("href",2);h=new p(c.clip,-1,f);c.playlist=c.playlist||[c.clip];var q=0;o(c.playlist,
(function(){function a(h){return h.type==CKEDITOR.NODE_TEXT&&h.getLength()>0;};function b(h){return!(h.type==CKEDITOR.NODE_ELEMENT&&h.isBlockBoundary(CKEDITOR.tools.extend({},CKEDITOR.dtd.$empty,CKEDITOR.dtd.$nonEditable)));};var c=function(){var h=this;return{textNode:h.textNode,offset:h.offset,character:h.textNode?h.textNode.getText().charAt(h.offset):null,hitMatchBoundary:h._.matchBoundary};},d=['find','replace'],e=[['txtFindFind','txtFindReplace'],['txtFindCaseChk','txtReplaceCaseChk'],['txtFindWordChk','txtReplaceWordChk'],['txtFindCyclic','txtReplaceCyclic']];function f(h){var i,j,k,l;i=h==='find'?1:0;j=1-i;var m,n=e.length;for(m=0;m<n;m++){k=this.getContentElement(d[i],e[m][i]);l=this.getContentElement(d[j],e[m][j]);l.setValue(k.getValue());}};var g=function(h,i){var j=new CKEDITOR.style(CKEDITOR.tools.extend({fullMatch:true,childRule:function(){return false;}},h.config.find_highlight)),k=function(w,x){var y=new CKEDITOR.dom.walker(w);y.guard=x?b:null;y.evaluator=a;y.breakOnFalse=true;this._={matchWord:x,walker:y,matchBoundary:false};};k.prototype={next:function(){return this.move();},back:function(){return this.move(true);},move:function(w){var y=this;var x=y.textNode;if(x===null)return c.call(y);y._.matchBoundary=false;if(x&&w&&y.offset>0){y.offset--;return c.call(y);}else if(x&&y.offset<x.getLength()-1){y.offset++;return c.call(y);}else{x=null;while(!x){x=y._.walker[w?'previous':'next'].call(y._.walker);if(y._.matchWord&&!x||y._.walker._.end)break;if(!x&&!b(y._.walker.current))y._.matchBoundary=true;}y.textNode=x;if(x)y.offset=w?x.getLength()-1:0;else y.offset=0;}return c.call(y);}};var l=function(w,x){this._={walker:w,cursors:[],rangeLength:x,highlightRange:null,isMatched:false};};l.prototype={toDomRange:function(){var w=new CKEDITOR.dom.range(h.document),x=this._.cursors;if(x.length<1){var y=this._.walker.textNode;if(y)w.setStartAfter(y);else return null;}else{var z=x[0],A=x[x.length-1];w.setStart(z.textNode,z.offset);w.setEnd(A.textNode,A.offset+1);}return w;},updateFromDomRange:function(w){var z=this;var x,y=new k(w);z._.cursors=[];do{x=y.next();if(x.character)z._.cursors.push(x);}while(x.character)z._.rangeLength=z._.cursors.length;},setMatched:function(){this._.isMatched=true;},clearMatched:function(){this._.isMatched=false;},isMatched:function(){return this._.isMatched;},highlight:function(){var y=this;if(y._.cursors.length<1)return;if(y._.highlightRange)y.removeHighlight();var w=y.toDomRange();j.applyToRange(w);y._.highlightRange=w;var x=w.startContainer; if(x.type!=CKEDITOR.NODE_ELEMENT)x=x.getParent();x.scrollIntoView();y.updateFromDomRange(w);},removeHighlight:function(){var w=this;if(!w._.highlightRange)return;j.removeFromRange(w._.highlightRange);w.updateFromDomRange(w._.highlightRange);w._.highlightRange=null;},moveBack:function(){var y=this;var w=y._.walker.back(),x=y._.cursors;if(w.hitMatchBoundary)y._.cursors=x=[];x.unshift(w);if(x.length>y._.rangeLength)x.pop();return w;},moveNext:function(){var y=this;var w=y._.walker.next(),x=y._.cursors;if(w.hitMatchBoundary)y._.cursors=x=[];x.push(w);if(x.length>y._.rangeLength)x.shift();return w;},getEndCharacter:function(){var w=this._.cursors;if(w.length<1)return null;return w[w.length-1].character;},getNextCharacterRange:function(w){var x,y,z=this._.cursors;if(x=z[z.length-1])y=new k(m(x));else y=this._.walker;return new l(y,w);},getCursors:function(){return this._.cursors;}};function m(w,x){var y=new CKEDITOR.dom.range();y.setStart(w.textNode,x?w.offset:w.offset+1);y.setEndAt(h.document.getBody(),CKEDITOR.POSITION_BEFORE_END);return y;};function n(w){var x=new CKEDITOR.dom.range();x.setStartAt(h.document.getBody(),CKEDITOR.POSITION_AFTER_START);x.setEnd(w.textNode,w.offset);return x;};var o=0,p=1,q=2,r=function(w,x){var y=[-1];if(x)w=w.toLowerCase();for(var z=0;z<w.length;z++){y.push(y[z]+1);while(y[z+1]>0&&w.charAt(z)!=w.charAt(y[z+1]-1))y[z+1]=y[y[z+1]-1]+1;}this._={overlap:y,state:0,ignoreCase:!!x,pattern:w};};r.prototype={feedCharacter:function(w){var x=this;if(x._.ignoreCase)w=w.toLowerCase();for(;;){if(w==x._.pattern.charAt(x._.state)){x._.state++;if(x._.state==x._.pattern.length){x._.state=0;return q;}return p;}else if(!x._.state)return o;else x._.state=x._.overlap[x._.state];}return null;},reset:function(){this._.state=0;}};var s=/[.,"'?!;: \u0085\u00a0\u1680\u280e\u2028\u2029\u202f\u205f\u3000]/,t=function(w){if(!w)return true;var x=w.charCodeAt(0);return x>=9&&x<=13||x>=8192&&x<=8202||s.test(w);},u={searchRange:null,matchRange:null,find:function(w,x,y,z,A,B){var K=this;if(!K.matchRange)K.matchRange=new l(new k(K.searchRange),w.length);else{K.matchRange.removeHighlight();K.matchRange=K.matchRange.getNextCharacterRange(w.length);}var C=new r(w,!x),D=o,E='%';while(E!==null){K.matchRange.moveNext();while(E=K.matchRange.getEndCharacter()){D=C.feedCharacter(E);if(D==q)break;if(K.matchRange.moveNext().hitMatchBoundary)C.reset();}if(D==q){if(y){var F=K.matchRange.getCursors(),G=F[F.length-1],H=F[0],I=new k(n(H),true),J=new k(m(G),true);if(!(t(I.back().character)&&t(J.next().character)))continue; }K.matchRange.setMatched();if(A!==false)K.matchRange.highlight();return true;}}K.matchRange.clearMatched();K.matchRange.removeHighlight();if(z&&!B){K.searchRange=v(true);K.matchRange=null;return arguments.callee.apply(K,Array.prototype.slice.call(arguments).concat([true]));}return false;},replaceCounter:0,replace:function(w,x,y,z,A,B,C){var H=this;var D=false;if(H.matchRange&&H.matchRange.isMatched()&&!H.matchRange._.isReplaced){H.matchRange.removeHighlight();var E=H.matchRange.toDomRange(),F=h.document.createText(y);if(!C){var G=h.getSelection();G.selectRanges([E]);h.fire('saveSnapshot');}E.deleteContents();E.insertNode(F);if(!C){G.selectRanges([E]);h.fire('saveSnapshot');}H.matchRange.updateFromDomRange(E);if(!C)H.matchRange.highlight();H.matchRange._.isReplaced=true;H.replaceCounter++;D=true;}else D=H.find(x,z,A,B,!C);return D;}};function v(w){var x,y=h.getSelection(),z=h.document.getBody();if(y&&!w){x=y.getRanges()[0].clone();x.collapse(true);}else{x=new CKEDITOR.dom.range();x.setStartAt(z,CKEDITOR.POSITION_AFTER_START);}x.setEndAt(z,CKEDITOR.POSITION_BEFORE_END);return x;};return{title:h.lang.findAndReplace.title,resizable:CKEDITOR.DIALOG_RESIZE_NONE,minWidth:350,minHeight:165,buttons:[CKEDITOR.dialog.cancelButton],contents:[{id:'find',label:h.lang.findAndReplace.find,title:h.lang.findAndReplace.find,accessKey:'',elements:[{type:'hbox',widths:['230px','90px'],children:[{type:'text',id:'txtFindFind',label:h.lang.findAndReplace.findWhat,isChanged:false,labelLayout:'horizontal',accessKey:'F'},{type:'button',align:'left',style:'width:100%',label:h.lang.findAndReplace.find,onClick:function(){var w=this.getDialog();if(!u.find(w.getValueOf('find','txtFindFind'),w.getValueOf('find','txtFindCaseChk'),w.getValueOf('find','txtFindWordChk'),w.getValueOf('find','txtFindCyclic')))alert(h.lang.findAndReplace.notFoundMsg);}}]},{type:'vbox',padding:0,children:[{type:'checkbox',id:'txtFindCaseChk',isChanged:false,style:'margin-top:28px',label:h.lang.findAndReplace.matchCase},{type:'checkbox',id:'txtFindWordChk',isChanged:false,label:h.lang.findAndReplace.matchWord},{type:'checkbox',id:'txtFindCyclic',isChanged:false,'default':true,label:h.lang.findAndReplace.matchCyclic}]}]},{id:'replace',label:h.lang.findAndReplace.replace,accessKey:'M',elements:[{type:'hbox',widths:['230px','90px'],children:[{type:'text',id:'txtFindReplace',label:h.lang.findAndReplace.findWhat,isChanged:false,labelLayout:'horizontal',accessKey:'F'},{type:'button',align:'left',style:'width:100%',label:h.lang.findAndReplace.replace,onClick:function(){var w=this.getDialog(); if(!u.replace(w,w.getValueOf('replace','txtFindReplace'),w.getValueOf('replace','txtReplace'),w.getValueOf('replace','txtReplaceCaseChk'),w.getValueOf('replace','txtReplaceWordChk'),w.getValueOf('replace','txtReplaceCyclic')))alert(h.lang.findAndReplace.notFoundMsg);}}]},{type:'hbox',widths:['230px','90px'],children:[{type:'text',id:'txtReplace',label:h.lang.findAndReplace.replaceWith,isChanged:false,labelLayout:'horizontal',accessKey:'R'},{type:'button',align:'left',style:'width:100%',label:h.lang.findAndReplace.replaceAll,isChanged:false,onClick:function(){var w=this.getDialog(),x;u.replaceCounter=0;u.searchRange=v(true);if(u.matchRange){u.matchRange.removeHighlight();u.matchRange=null;}h.fire('saveSnapshot');while(u.replace(w,w.getValueOf('replace','txtFindReplace'),w.getValueOf('replace','txtReplace'),w.getValueOf('replace','txtReplaceCaseChk'),w.getValueOf('replace','txtReplaceWordChk'),false,true)){}if(u.replaceCounter){alert(h.lang.findAndReplace.replaceSuccessMsg.replace(/%1/,u.replaceCounter));h.fire('saveSnapshot');}else alert(h.lang.findAndReplace.notFoundMsg);}}]},{type:'vbox',padding:0,children:[{type:'checkbox',id:'txtReplaceCaseChk',isChanged:false,label:h.lang.findAndReplace.matchCase},{type:'checkbox',id:'txtReplaceWordChk',isChanged:false,label:h.lang.findAndReplace.matchWord},{type:'checkbox',id:'txtReplaceCyclic',isChanged:false,'default':true,label:h.lang.findAndReplace.matchCyclic}]}]}],onLoad:function(){var w=this,x,y,z=false;this.on('hide',function(){z=false;});this.on('show',function(){z=true;});this.selectPage=CKEDITOR.tools.override(this.selectPage,function(A){return function(B){A.call(w,B);var C=w._.tabs[B],D,E,F;E=B==='find'?'txtFindFind':'txtFindReplace';F=B==='find'?'txtFindWordChk':'txtReplaceWordChk';x=w.getContentElement(B,E);y=w.getContentElement(B,F);if(!C.initialized){D=CKEDITOR.document.getById(x._.inputId);C.initialized=true;}if(z)f.call(this,B);};});},onShow:function(){u.searchRange=v();this.selectPage(i);},onHide:function(){var w;if(u.matchRange&&u.matchRange.isMatched()){u.matchRange.removeHighlight();h.focus();w=u.matchRange.toDomRange();if(w)h.getSelection().selectRanges([w]);}delete u.matchRange;},onFocus:function(){if(i=='replace')return this.getContentElement('replace','txtFindReplace');else return this.getContentElement('find','txtFindFind');}};};CKEDITOR.dialog.add('find',function(h){return g(h,'find');});CKEDITOR.dialog.add('replace',function(h){return g(h,'replace');});})();
(function(){var a;function b(i){return i.type==CKEDITOR.NODE_TEXT&&i.getLength()>0&&(!a||!i.isReadOnly());};function c(i){return!(i.type==CKEDITOR.NODE_ELEMENT&&i.isBlockBoundary(CKEDITOR.tools.extend({},CKEDITOR.dtd.$empty,CKEDITOR.dtd.$nonEditable)));};var d=function(){var i=this;return{textNode:i.textNode,offset:i.offset,character:i.textNode?i.textNode.getText().charAt(i.offset):null,hitMatchBoundary:i._.matchBoundary};},e=['find','replace'],f=[['txtFindFind','txtFindReplace'],['txtFindCaseChk','txtReplaceCaseChk'],['txtFindWordChk','txtReplaceWordChk'],['txtFindCyclic','txtReplaceCyclic']];function g(i){var j,k,l,m;j=i==='find'?1:0;k=1-j;var n,o=f.length;for(n=0;n<o;n++){l=this.getContentElement(e[j],f[n][j]);m=this.getContentElement(e[k],f[n][k]);m.setValue(l.getValue());}};var h=function(i,j){var k=new CKEDITOR.style(CKEDITOR.tools.extend({fullMatch:true,childRule:function(){return false;}},i.config.find_highlight)),l=function(x,y){var z=new CKEDITOR.dom.walker(x);z.guard=y?c:null;z.evaluator=b;z.breakOnFalse=true;this._={matchWord:y,walker:z,matchBoundary:false};};l.prototype={next:function(){return this.move();},back:function(){return this.move(true);},move:function(x){var z=this;var y=z.textNode;if(y===null)return d.call(z);z._.matchBoundary=false;if(y&&x&&z.offset>0){z.offset--;return d.call(z);}else if(y&&z.offset<y.getLength()-1){z.offset++;return d.call(z);}else{y=null;while(!y){y=z._.walker[x?'previous':'next'].call(z._.walker);if(z._.matchWord&&!y||z._.walker._.end)break;if(!y&&!c(z._.walker.current))z._.matchBoundary=true;}z.textNode=y;if(y)z.offset=x?y.getLength()-1:0;else z.offset=0;}return d.call(z);}};var m=function(x,y){this._={walker:x,cursors:[],rangeLength:y,highlightRange:null,isMatched:false};};m.prototype={toDomRange:function(){var x=new CKEDITOR.dom.range(i.document),y=this._.cursors;if(y.length<1){var z=this._.walker.textNode;if(z)x.setStartAfter(z);else return null;}else{var A=y[0],B=y[y.length-1];x.setStart(A.textNode,A.offset);x.setEnd(B.textNode,B.offset+1);}return x;},updateFromDomRange:function(x){var A=this;var y,z=new l(x);A._.cursors=[];do{y=z.next();if(y.character)A._.cursors.push(y);}while(y.character)A._.rangeLength=A._.cursors.length;},setMatched:function(){this._.isMatched=true;},clearMatched:function(){this._.isMatched=false;},isMatched:function(){return this._.isMatched;},highlight:function(){var A=this;if(A._.cursors.length<1)return;if(A._.highlightRange)A.removeHighlight();var x=A.toDomRange(),y=x.createBookmark();
(function(){function a(h){return h.type==CKEDITOR.NODE_TEXT&&h.getLength()>0;};function b(h){return!(h.type==CKEDITOR.NODE_ELEMENT&&h.isBlockBoundary(CKEDITOR.tools.extend({},CKEDITOR.dtd.$empty,CKEDITOR.dtd.$nonEditable)));};var c=function(){var h=this;return{textNode:h.textNode,offset:h.offset,character:h.textNode?h.textNode.getText().charAt(h.offset):null,hitMatchBoundary:h._.matchBoundary};},d=['find','replace'],e=[['txtFindFind','txtFindReplace'],['txtFindCaseChk','txtReplaceCaseChk'],['txtFindWordChk','txtReplaceWordChk'],['txtFindCyclic','txtReplaceCyclic']];function f(h){var i,j,k,l;i=h==='find'?1:0;j=1-i;var m,n=e.length;for(m=0;m<n;m++){k=this.getContentElement(d[i],e[m][i]);l=this.getContentElement(d[j],e[m][j]);l.setValue(k.getValue());}};var g=function(h,i){var j=new CKEDITOR.style(CKEDITOR.tools.extend({fullMatch:true,childRule:function(){return false;}},h.config.find_highlight)),k=function(w,x){var y=new CKEDITOR.dom.walker(w);y.guard=x?b:null;y.evaluator=a;y.breakOnFalse=true;this._={matchWord:x,walker:y,matchBoundary:false};};k.prototype={next:function(){return this.move();},back:function(){return this.move(true);},move:function(w){var y=this;var x=y.textNode;if(x===null)return c.call(y);y._.matchBoundary=false;if(x&&w&&y.offset>0){y.offset--;return c.call(y);}else if(x&&y.offset<x.getLength()-1){y.offset++;return c.call(y);}else{x=null;while(!x){x=y._.walker[w?'previous':'next'].call(y._.walker);if(y._.matchWord&&!x||y._.walker._.end)break;if(!x&&!b(y._.walker.current))y._.matchBoundary=true;}y.textNode=x;if(x)y.offset=w?x.getLength()-1:0;else y.offset=0;}return c.call(y);}};var l=function(w,x){this._={walker:w,cursors:[],rangeLength:x,highlightRange:null,isMatched:false};};l.prototype={toDomRange:function(){var w=new CKEDITOR.dom.range(h.document),x=this._.cursors;if(x.length<1){var y=this._.walker.textNode;if(y)w.setStartAfter(y);else return null;}else{var z=x[0],A=x[x.length-1];w.setStart(z.textNode,z.offset);w.setEnd(A.textNode,A.offset+1);}return w;},updateFromDomRange:function(w){var z=this;var x,y=new k(w);z._.cursors=[];do{x=y.next();if(x.character)z._.cursors.push(x);}while(x.character)z._.rangeLength=z._.cursors.length;},setMatched:function(){this._.isMatched=true;},clearMatched:function(){this._.isMatched=false;},isMatched:function(){return this._.isMatched;},highlight:function(){var y=this;if(y._.cursors.length<1)return;if(y._.highlightRange)y.removeHighlight();var w=y.toDomRange();j.applyToRange(w);y._.highlightRange=w;var x=w.startContainer;if(x.type!=CKEDITOR.NODE_ELEMENT)x=x.getParent();x.scrollIntoView();y.updateFromDomRange(w);},removeHighlight:function(){var w=this;if(!w._.highlightRange)return;j.removeFromRange(w._.highlightRange);w.updateFromDomRange(w._.highlightRange);w._.highlightRange=null;},moveBack:function(){var y=this;var w=y._.walker.back(),x=y._.cursors;if(w.hitMatchBoundary)y._.cursors=x=[];x.unshift(w);if(x.length>y._.rangeLength)x.pop();return w;},moveNext:function(){var y=this;var w=y._.walker.next(),x=y._.cursors;if(w.hitMatchBoundary)y._.cursors=x=[];x.push(w);if(x.length>y._.rangeLength)x.shift();return w;},getEndCharacter:function(){var w=this._.cursors;if(w.length<1)return null;return w[w.length-1].character;},getNextCharacterRange:function(w){var x,y,z=this._.cursors;if(x=z[z.length-1])y=new k(m(x));else y=this._.walker;return new l(y,w);},getCursors:function(){return this._.cursors;}};function m(w,x){var y=new CKEDITOR.dom.range();y.setStart(w.textNode,x?w.offset:w.offset+1);y.setEndAt(h.document.getBody(),CKEDITOR.POSITION_BEFORE_END);return y;};function n(w){var x=new CKEDITOR.dom.range();x.setStartAt(h.document.getBody(),CKEDITOR.POSITION_AFTER_START);x.setEnd(w.textNode,w.offset);return x;};var o=0,p=1,q=2,r=function(w,x){var y=[-1];if(x)w=w.toLowerCase();for(var z=0;z<w.length;z++){y.push(y[z]+1);while(y[z+1]>0&&w.charAt(z)!=w.charAt(y[z+1]-1))y[z+1]=y[y[z+1]-1]+1;}this._={overlap:y,state:0,ignoreCase:!!x,pattern:w};};r.prototype={feedCharacter:function(w){var x=this;if(x._.ignoreCase)w=w.toLowerCase();for(;;){if(w==x._.pattern.charAt(x._.state)){x._.state++;if(x._.state==x._.pattern.length){x._.state=0;return q;}return p;}else if(!x._.state)return o;else x._.state=x._.overlap[x._.state];}return null;},reset:function(){this._.state=0;}};var s=/[.,"'?!;: \u0085\u00a0\u1680\u280e\u2028\u2029\u202f\u205f\u3000]/,t=function(w){if(!w)return true;var x=w.charCodeAt(0);return x>=9&&x<=13||x>=8192&&x<=8202||s.test(w);},u={searchRange:null,matchRange:null,find:function(w,x,y,z,A,B){var K=this;if(!K.matchRange)K.matchRange=new l(new k(K.searchRange),w.length);else{K.matchRange.removeHighlight();K.matchRange=K.matchRange.getNextCharacterRange(w.length);}var C=new r(w,!x),D=o,E='%';while(E!==null){K.matchRange.moveNext();while(E=K.matchRange.getEndCharacter()){D=C.feedCharacter(E);if(D==q)break;if(K.matchRange.moveNext().hitMatchBoundary)C.reset();}if(D==q){if(y){var F=K.matchRange.getCursors(),G=F[F.length-1],H=F[0],I=new k(n(H),true),J=new k(m(G),true);if(!(t(I.back().character)&&t(J.next().character)))continue;}K.matchRange.setMatched();if(A!==false)K.matchRange.highlight();return true;}}K.matchRange.clearMatched();K.matchRange.removeHighlight();if(z&&!B){K.searchRange=v(true);K.matchRange=null;return arguments.callee.apply(K,Array.prototype.slice.call(arguments).concat([true]));}return false;},replaceCounter:0,replace:function(w,x,y,z,A,B,C){var H=this;var D=false;if(H.matchRange&&H.matchRange.isMatched()&&!H.matchRange._.isReplaced){H.matchRange.removeHighlight();var E=H.matchRange.toDomRange(),F=h.document.createText(y);if(!C){var G=h.getSelection();G.selectRanges([E]);h.fire('saveSnapshot');}E.deleteContents();E.insertNode(F);if(!C){G.selectRanges([E]);h.fire('saveSnapshot');}H.matchRange.updateFromDomRange(E);if(!C)H.matchRange.highlight();H.matchRange._.isReplaced=true;H.replaceCounter++;D=true;}else D=H.find(x,z,A,B,!C);return D;}};function v(w){var x,y=h.getSelection(),z=h.document.getBody();if(y&&!w){x=y.getRanges()[0].clone();x.collapse(true);}else{x=new CKEDITOR.dom.range();x.setStartAt(z,CKEDITOR.POSITION_AFTER_START);}x.setEndAt(z,CKEDITOR.POSITION_BEFORE_END);return x;};return{title:h.lang.findAndReplace.title,resizable:CKEDITOR.DIALOG_RESIZE_NONE,minWidth:350,minHeight:165,buttons:[CKEDITOR.dialog.cancelButton],contents:[{id:'find',label:h.lang.findAndReplace.find,title:h.lang.findAndReplace.find,accessKey:'',elements:[{type:'hbox',widths:['230px','90px'],children:[{type:'text',id:'txtFindFind',label:h.lang.findAndReplace.findWhat,isChanged:false,labelLayout:'horizontal',accessKey:'F'},{type:'button',align:'left',style:'width:100%',label:h.lang.findAndReplace.find,onClick:function(){var w=this.getDialog();if(!u.find(w.getValueOf('find','txtFindFind'),w.getValueOf('find','txtFindCaseChk'),w.getValueOf('find','txtFindWordChk'),w.getValueOf('find','txtFindCyclic')))alert(h.lang.findAndReplace.notFoundMsg);}}]},{type:'vbox',padding:0,children:[{type:'checkbox',id:'txtFindCaseChk',isChanged:false,style:'margin-top:28px',label:h.lang.findAndReplace.matchCase},{type:'checkbox',id:'txtFindWordChk',isChanged:false,label:h.lang.findAndReplace.matchWord},{type:'checkbox',id:'txtFindCyclic',isChanged:false,'default':true,label:h.lang.findAndReplace.matchCyclic}]}]},{id:'replace',label:h.lang.findAndReplace.replace,accessKey:'M',elements:[{type:'hbox',widths:['230px','90px'],children:[{type:'text',id:'txtFindReplace',label:h.lang.findAndReplace.findWhat,isChanged:false,labelLayout:'horizontal',accessKey:'F'},{type:'button',align:'left',style:'width:100%',label:h.lang.findAndReplace.replace,onClick:function(){var w=this.getDialog();if(!u.replace(w,w.getValueOf('replace','txtFindReplace'),w.getValueOf('replace','txtReplace'),w.getValueOf('replace','txtReplaceCaseChk'),w.getValueOf('replace','txtReplaceWordChk'),w.getValueOf('replace','txtReplaceCyclic')))alert(h.lang.findAndReplace.notFoundMsg);}}]},{type:'hbox',widths:['230px','90px'],children:[{type:'text',id:'txtReplace',label:h.lang.findAndReplace.replaceWith,isChanged:false,labelLayout:'horizontal',accessKey:'R'},{type:'button',align:'left',style:'width:100%',label:h.lang.findAndReplace.replaceAll,isChanged:false,onClick:function(){var w=this.getDialog(),x;u.replaceCounter=0;u.searchRange=v(true);if(u.matchRange){u.matchRange.removeHighlight();u.matchRange=null;}h.fire('saveSnapshot');while(u.replace(w,w.getValueOf('replace','txtFindReplace'),w.getValueOf('replace','txtReplace'),w.getValueOf('replace','txtReplaceCaseChk'),w.getValueOf('replace','txtReplaceWordChk'),false,true)){}if(u.replaceCounter){alert(h.lang.findAndReplace.replaceSuccessMsg.replace(/%1/,u.replaceCounter));h.fire('saveSnapshot');}else alert(h.lang.findAndReplace.notFoundMsg);}}]},{type:'vbox',padding:0,children:[{type:'checkbox',id:'txtReplaceCaseChk',isChanged:false,label:h.lang.findAndReplace.matchCase},{type:'checkbox',id:'txtReplaceWordChk',isChanged:false,label:h.lang.findAndReplace.matchWord},{type:'checkbox',id:'txtReplaceCyclic',isChanged:false,'default':true,label:h.lang.findAndReplace.matchCyclic}]}]}],onLoad:function(){var w=this,x,y,z=false;this.on('hide',function(){z=false;});this.on('show',function(){z=true;});this.selectPage=CKEDITOR.tools.override(this.selectPage,function(A){return function(B){A.call(w,B);var C=w._.tabs[B],D,E,F;E=B==='find'?'txtFindFind':'txtFindReplace';F=B==='find'?'txtFindWordChk':'txtReplaceWordChk';x=w.getContentElement(B,E);y=w.getContentElement(B,F);if(!C.initialized){D=CKEDITOR.document.getById(x._.inputId);C.initialized=true;}if(z)f.call(this,B);};});},onShow:function(){u.searchRange=v();this.selectPage(i);},onHide:function(){var w;if(u.matchRange&&u.matchRange.isMatched()){u.matchRange.removeHighlight();h.focus();w=u.matchRange.toDomRange();if(w)h.getSelection().selectRanges([w]);}delete u.matchRange;},onFocus:function(){if(i=='replace')return this.getContentElement('replace','txtFindReplace');else return this.getContentElement('find','txtFindFind');}};};CKEDITOR.dialog.add('find',function(h){return g(h,'find');});CKEDITOR.dialog.add('replace',function(h){return g(h,'replace');});})();
})();var f=a.dtd;d.event=function(g){this.$=g;};d.event.prototype={getKey:function(){return this.$.keyCode||this.$.which;},getKeystroke:function(){var h=this;var g=h.getKey();if(h.$.ctrlKey||h.$.metaKey)g+=1000;if(h.$.shiftKey)g+=2000;if(h.$.altKey)g+=4000;return g;},preventDefault:function(g){var h=this.$;if(h.preventDefault)h.preventDefault();else h.returnValue=false;if(g)this.stopPropagation();},stopPropagation:function(){var g=this.$;if(g.stopPropagation)g.stopPropagation();else g.cancelBubble=true;},getTarget:function(){var g=this.$.target||this.$.srcElement;return g?new d.node(g):null;}};a.CTRL=1000;a.SHIFT=2000;a.ALT=4000;d.domObject=function(g){if(g)this.$=g;};d.domObject.prototype=(function(){var g=function(h,i){return function(j){if(typeof a!='undefined')h.fire(i,new d.event(j));};};return{getPrivate:function(){var h;if(!(h=this.getCustomData('_')))this.setCustomData('_',h={});return h;},on:function(h){var k=this;var i=k.getCustomData('_cke_nativeListeners');if(!i){i={};k.setCustomData('_cke_nativeListeners',i);}if(!i[h]){var j=i[h]=g(k,h);if(k.$.addEventListener)k.$.addEventListener(h,j,!!a.event.useCapture);else if(k.$.attachEvent)k.$.attachEvent('on'+h,j);}return a.event.prototype.on.apply(k,arguments);},removeListener:function(h){var k=this;a.event.prototype.removeListener.apply(k,arguments);if(!k.hasListeners(h)){var i=k.getCustomData('_cke_nativeListeners'),j=i&&i[h];if(j){if(k.$.removeEventListener)k.$.removeEventListener(h,j,false);else if(k.$.detachEvent)k.$.detachEvent('on'+h,j);delete i[h];}}},removeAllListeners:function(){var k=this;var h=k.getCustomData('_cke_nativeListeners');for(var i in h){var j=h[i];if(k.$.removeEventListener)k.$.removeEventListener(i,j,false);else if(k.$.detachEvent)k.$.detachEvent('on'+i,j);delete h[i];}}};})();(function(g){var h={};g.equals=function(i){return i&&i.$===this.$;};g.setCustomData=function(i,j){var k=this.getUniqueId(),l=h[k]||(h[k]={});l[i]=j;return this;};g.getCustomData=function(i){var j=this.$._cke_expando,k=j&&h[j];return k&&k[i];};g.removeCustomData=function(i){var j=this.$._cke_expando,k=j&&h[j],l=k&&k[i];if(typeof l!='undefined')delete k[i];return l||null;};g.clearCustomData=function(){this.removeAllListeners();var i=this.$._cke_expando;i&&delete h[i];};g.getUniqueId=function(){return this.$._cke_expando||(this.$._cke_expando=e.getNextNumber());};a.event.implementOn(g);})(d.domObject.prototype);d.window=function(g){d.domObject.call(this,g);};d.window.prototype=new d.domObject();e.extend(d.window.prototype,{focus:function(){if(b.webkit&&this.$.parent)this.$.parent.focus();
(function(){if(!window.CKEDITOR)window.CKEDITOR=(function(){var a={timestamp:'A8LE4JO',version:'3.4.1',revision:'5892',_:{},status:'unloaded',basePath:(function(){var d=window.CKEDITOR_BASEPATH||'';if(!d){var e=document.getElementsByTagName('script');for(var f=0;f<e.length;f++){var g=e[f].src.match(/(^|.*[\\\/])ckeditor(?:_basic)?(?:_source)?.js(?:\?.*)?$/i);if(g){d=g[1];break;}}}if(d.indexOf(':
})();var f=a.dtd;d.event=function(g){this.$=g;};d.event.prototype={getKey:function(){return this.$.keyCode||this.$.which;},getKeystroke:function(){var h=this;var g=h.getKey();if(h.$.ctrlKey||h.$.metaKey)g+=1000;if(h.$.shiftKey)g+=2000;if(h.$.altKey)g+=4000;return g;},preventDefault:function(g){var h=this.$;if(h.preventDefault)h.preventDefault();else h.returnValue=false;if(g)this.stopPropagation();},stopPropagation:function(){var g=this.$;if(g.stopPropagation)g.stopPropagation();else g.cancelBubble=true;},getTarget:function(){var g=this.$.target||this.$.srcElement;return g?new d.node(g):null;}};a.CTRL=1000;a.SHIFT=2000;a.ALT=4000;d.domObject=function(g){if(g)this.$=g;};d.domObject.prototype=(function(){var g=function(h,i){return function(j){if(typeof a!='undefined')h.fire(i,new d.event(j));};};return{getPrivate:function(){var h;if(!(h=this.getCustomData('_')))this.setCustomData('_',h={});return h;},on:function(h){var k=this;var i=k.getCustomData('_cke_nativeListeners');if(!i){i={};k.setCustomData('_cke_nativeListeners',i);}if(!i[h]){var j=i[h]=g(k,h);if(k.$.addEventListener)k.$.addEventListener(h,j,!!a.event.useCapture);else if(k.$.attachEvent)k.$.attachEvent('on'+h,j);}return a.event.prototype.on.apply(k,arguments);},removeListener:function(h){var k=this;a.event.prototype.removeListener.apply(k,arguments);if(!k.hasListeners(h)){var i=k.getCustomData('_cke_nativeListeners'),j=i&&i[h];if(j){if(k.$.removeEventListener)k.$.removeEventListener(h,j,false);else if(k.$.detachEvent)k.$.detachEvent('on'+h,j);delete i[h];}}},removeAllListeners:function(){var k=this;var h=k.getCustomData('_cke_nativeListeners');for(var i in h){var j=h[i];if(k.$.removeEventListener)k.$.removeEventListener(i,j,false);else if(k.$.detachEvent)k.$.detachEvent('on'+i,j);delete h[i];}}};})();(function(g){var h={};g.equals=function(i){return i&&i.$===this.$;};g.setCustomData=function(i,j){var k=this.getUniqueId(),l=h[k]||(h[k]={});l[i]=j;return this;};g.getCustomData=function(i){var j=this.$._cke_expando,k=j&&h[j];return k&&k[i];};g.removeCustomData=function(i){var j=this.$._cke_expando,k=j&&h[j],l=k&&k[i];if(typeof l!='undefined')delete k[i];return l||null;};g.clearCustomData=function(){this.removeAllListeners();var i=this.$._cke_expando;i&&delete h[i];};g.getUniqueId=function(){return this.$._cke_expando||(this.$._cke_expando=e.getNextNumber());};a.event.implementOn(g);})(d.domObject.prototype);d.window=function(g){d.domObject.call(this,g);};d.window.prototype=new d.domObject();e.extend(d.window.prototype,{focus:function(){if(b.webkit&&this.$.parent)this.$.parent.focus();
a.getElement(s).dirty=true;window.onresize()}function g(){var e,k=0;for(e=0;;++e){var m=b(e);if(m)k+=a.pctself(m,"width");else break}if(k!=0)for(e=0;;++e)if(m=b(e)){var n=a.pctself(m,"width");if(n)m.style.width=n*100/k+"%"}else break}function q(e,k,m){e=b(k);var n=p(e,k),r=b(k+1),u=p(r,k+1);if(a.pctself(e,"width")>0&&a.pctself(r,"width")>0){e.style.width="";g()}a.pctself(e,"width")==0&&c(k,n+m);a.pctself(r,"width")==0&&c(k+1,u-m);window.onresize()}var d=this,b=d.getColumn,l=a.getElement(s);if(l)if(!d.resizeInitialized){var t=
F;++B){w=v.childNodes[B];if(w.className!="Wt-vrh"){if(w.colSpan==1&&D==e&&w.childNodes.length==1){v=w.firstChild;w=k-d.marginH(v);v.style.width=w+"px";break}D+=w.colSpan}}++r}}}function f(e,k,m){var n=e.firstChild;new a.SizeHandle(a,"v",n.offsetHeight,n.offsetWidth,-e.parentNode.previousSibling.offsetHeight,e.parentNode.nextSibling.offsetHeight,"Wt-vsh",function(r){j(e,k,r)},n,l,m,0,0)}function g(e,k,m){var n=-e.previousSibling.offsetWidth,r=e.nextSibling.offsetWidth,u=e.firstChild,v=a.pxself(t.rows[0].childNodes[0], "paddingTop"),w=a.pxself(t.rows[t.rows.length-1].childNodes[0],"paddingBottom");new a.SizeHandle(a,"h",u.offsetWidth,t.offsetHeight-v-w,n,r,"Wt-hsh",function(B){q(e,k,B)},u,l,m,0,-e.offsetTop+v-a.pxself(e,"paddingTop"))}function j(e,k,m){var n=e.parentNode.previousSibling;e=e.parentNode.nextSibling;var r=n.offsetHeight,u=e.offsetHeight;if(i.stretch[k]>0&&i.stretch[k+1]>0)i.stretch[k]=-1;if(i.stretch[k+1]==0)i.stretch[k+1]=-1;i.stretch[k]<=0&&d.adjustRow(n,r+m);i.stretch[k+1]<=0&&d.adjustRow(e,u-m);
a.getElement(s).dirty=true;window.onresize()}function g(){var e,k=0;for(e=0;;++e){var m=b(e);if(m)k+=a.pctself(m,"width");else break}if(k!=0)for(e=0;;++e)if(m=b(e)){var n=a.pctself(m,"width");if(n)m.style.width=n*100/k+"%"}else break}function q(e,k,m){e=b(k);var n=p(e,k),r=b(k+1),u=p(r,k+1);if(a.pctself(e,"width")>0&&a.pctself(r,"width")>0){e.style.width="";g()}a.pctself(e,"width")==0&&c(k,n+m);a.pctself(r,"width")==0&&c(k+1,u-m);window.onresize()}var d=this,b=d.getColumn,l=a.getElement(s);if(l)if(!d.resizeInitialized){var t=
F;++B){w=v.childNodes[B];if(w.className!="Wt-vrh"){if(w.colSpan==1&&D==e&&w.childNodes.length==1){v=w.firstChild;w=k-d.marginH(v);v.style.width=w+"px";break}D+=w.colSpan}}++r}}}function h(e,k,m){var n=e.firstChild;new a.SizeHandle(a,"v",n.offsetHeight,n.offsetWidth,-e.parentNode.previousSibling.offsetHeight,e.parentNode.nextSibling.offsetHeight,"Wt-vsh",function(r){j(e,k,r)},n,l,m,0,0)}function g(e,k,m){var n=-e.previousSibling.offsetWidth,r=e.nextSibling.offsetWidth,u=e.firstChild,v=a.pxself(t.rows[0].childNodes[0], "paddingTop"),w=a.pxself(t.rows[t.rows.length-1].childNodes[0],"paddingBottom");new a.SizeHandle(a,"h",u.offsetWidth,t.offsetHeight-v-w,n,r,"Wt-hsh",function(B){q(e,k,B)},u,l,m,0,-e.offsetTop+v-a.pxself(e,"paddingTop"))}function j(e,k,m){var n=e.parentNode.previousSibling;e=e.parentNode.nextSibling;var r=n.offsetHeight,u=e.offsetHeight;if(i.stretch[k]>0&&i.stretch[k+1]>0)i.stretch[k]=-1;if(i.stretch[k+1]==0)i.stretch[k+1]=-1;i.stretch[k]<=0&&d.adjustRow(n,r+m);i.stretch[k+1]<=0&&d.adjustRow(e,u-m);
a.getElement(s).dirty=true;window.onresize()}function g(){var e,k=0;for(e=0;;++e){var m=b(e);if(m)k+=a.pctself(m,"width");else break}if(k!=0)for(e=0;;++e)if(m=b(e)){var n=a.pctself(m,"width");if(n)m.style.width=n*100/k+"%"}else break}function q(e,k,m){e=b(k);var n=p(e,k),r=b(k+1),u=p(r,k+1);if(a.pctself(e,"width")>0&&a.pctself(r,"width")>0){e.style.width="";g()}a.pctself(e,"width")==0&&c(k,n+m);a.pctself(r,"width")==0&&c(k+1,u-m);window.onresize()}var d=this,b=d.getColumn,l=a.getElement(s);if(l)if(!d.resizeInitialized){var t=
F;++B){w=v.childNodes[B];if(w.className!="Wt-vrh"){if(w.colSpan==1&&D==e&&w.childNodes.length==1){v=w.firstChild;w=k-d.marginH(v);v.style.width=w+"px";break}D+=w.colSpan}}++r}}}function h(e,k,m){var n=e.firstChild;new a.SizeHandle(a,"v",n.offsetHeight,n.offsetWidth,-e.parentNode.previousSibling.offsetHeight,e.parentNode.nextSibling.offsetHeight,"Wt-vsh",function(r){j(e,k,r)},n,l,m,0,0)}function g(e,k,m){var n=-e.previousSibling.offsetWidth,r=e.nextSibling.offsetWidth,u=e.firstChild,v=a.pxself(t.rows[0].childNodes[0],"paddingTop"),w=a.pxself(t.rows[t.rows.length-1].childNodes[0],"paddingBottom");new a.SizeHandle(a,"h",u.offsetWidth,t.offsetHeight-v-w,n,r,"Wt-hsh",function(B){q(e,k,B)},u,l,m,0,-e.offsetTop+v-a.pxself(e,"paddingTop"))}function j(e,k,m){var n=e.parentNode.previousSibling;e=e.parentNode.nextSibling;var r=n.offsetHeight,u=e.offsetHeight;if(i.stretch[k]>0&&i.stretch[k+1]>0)i.stretch[k]=-1;if(i.stretch[k+1]==0)i.stretch[k+1]=-1;i.stretch[k]<=0&&d.adjustRow(n,r+m);i.stretch[k+1]<=0&&d.adjustRow(e,u-m);
e.xy=m.pageCoordinates(c);m.cancelEvent(c);return false}function g(d){if(aa.object!=null){var c=aa,e=m.pageCoordinates(d);if(c.object.style.display!=""&&c.xy.x!=e.x&&c.xy.y!=e.y)c.object.style.display="";c.object.style.left=e.x-c.offsetX+"px";c.object.style.top=e.y-c.offsetY+"px";e=c.dropTarget;var j=m.target(d),n="{"+c.mimeType+":",i=null;for(c.dropTarget=null;j;){i=j.getAttribute("amts");if(i!=null&&i.indexOf(n)!=-1){c.dropTarget=j;break}j=j.parentNode;if(!j.tagName||m.hasTag(j,"HTML"))break}if(c.dropTarget!= e){if(c.dropTarget){j=i.indexOf(n)+n.length;var r=i.indexOf("}",j);i=i.substring(j,r);if(i.length!=0){c.dropTarget.setAttribute("dos",c.dropTarget.className);c.dropTarget.className=c.dropTarget.className+" "+i}}else c.object.styleClass="";if(e!=null){e.handleDragDrop&&e.handleDragDrop("end",c.object,d,"",n);i=e.getAttribute("dos");if(i!=null)e.className=i}}if(c.dropTarget)if(c.dropTarget.handleDragDrop)c.dropTarget.handleDragDrop("drag",c.object,d,"",n);else c.object.className="Wt-valid-drop";return false}return true}
-4;e.offsetY=-4;e.dropTarget=null;e.mimeType=d.getAttribute("dmt");e.xy=m.pageCoordinates(c);m.cancelEvent(c);return false}function g(d){if(aa.object!=null){var c=aa,e=m.pageCoordinates(d);if(c.object.style.display!=""&&c.xy.x!=e.x&&c.xy.y!=e.y)c.object.style.display="";c.object.style.left=e.x-c.offsetX+"px";c.object.style.top=e.y-c.offsetY+"px";e=c.dropTarget;var j=m.target(d),n="{"+c.mimeType+":",i=null;for(c.dropTarget=null;j;){i=j.getAttribute("amts");if(i!=null&&i.indexOf(n)!=-1){c.dropTarget= j;break}j=j.parentNode;if(!j.tagName||m.hasTag(j,"HTML"))break}if(c.dropTarget!=e){if(c.dropTarget){j=i.indexOf(n)+n.length;var p=i.indexOf("}",j);i=i.substring(j,p);if(i.length!=0){c.dropTarget.setAttribute("dos",c.dropTarget.className);c.dropTarget.className=c.dropTarget.className+" "+i}}else c.object.styleClass="";if(e!=null){e.handleDragDrop&&e.handleDragDrop("end",c.object,d,"",n);i=e.getAttribute("dos");if(i!=null)e.className=i}}if(c.dropTarget)if(c.dropTarget.handleDragDrop)c.dropTarget.handleDragDrop("drag", c.object,d,"",n);else c.object.className="Wt-valid-drop";return false}return true}function Z(d){m.capture(null);var c=aa;if(c.object){if(c.dropTarget){var e=c.dropTarget.getAttribute("dos");if(e!=null)c.dropTarget.className=e;c.dropTarget.handleDragDrop?c.dropTarget.handleDragDrop("drop",c.object,d,c.sourceId,c.mimeType):I(c.dropTarget,{name:"_drop",eventObject:c.dropTarget,event:d},c.sourceId,c.mimeType)}c.object.style.position=c.objectPrevStyle.position;c.object.style.display=c.objectPrevStyle.display;
e.xy=m.pageCoordinates(c);m.cancelEvent(c);return false}function g(d){if(aa.object!=null){var c=aa,e=m.pageCoordinates(d);if(c.object.style.display!=""&&c.xy.x!=e.x&&c.xy.y!=e.y)c.object.style.display="";c.object.style.left=e.x-c.offsetX+"px";c.object.style.top=e.y-c.offsetY+"px";e=c.dropTarget;var j=m.target(d),n="{"+c.mimeType+":",i=null;for(c.dropTarget=null;j;){i=j.getAttribute("amts");if(i!=null&&i.indexOf(n)!=-1){c.dropTarget=j;break}j=j.parentNode;if(!j.tagName||m.hasTag(j,"HTML"))break}if(c.dropTarget!=e){if(c.dropTarget){j=i.indexOf(n)+n.length;var r=i.indexOf("}",j);i=i.substring(j,r);if(i.length!=0){c.dropTarget.setAttribute("dos",c.dropTarget.className);c.dropTarget.className=c.dropTarget.className+" "+i}}else c.object.styleClass="";if(e!=null){e.handleDragDrop&&e.handleDragDrop("end",c.object,d,"",n);i=e.getAttribute("dos");if(i!=null)e.className=i}}if(c.dropTarget)if(c.dropTarget.handleDragDrop)c.dropTarget.handleDragDrop("drag",c.object,d,"",n);else c.object.className="Wt-valid-drop";return false}return true}